@genome-spy/core 0.42.1 → 0.42.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -151,7 +151,7 @@ function lc(t) {
151
151
  return t;
152
152
  }
153
153
  const Lp = Object.prototype.hasOwnProperty;
154
- function en(t, e) {
154
+ function tn(t, e) {
155
155
  return Lp.call(t, e);
156
156
  }
157
157
  function Ei(t) {
@@ -528,7 +528,7 @@ function rg() {
528
528
  function Sf(t) {
529
529
  return t === null ? NaN : +t;
530
530
  }
531
- const Df = Ks(Mr), St = Df.right;
531
+ const Df = Ks(Mr), Et = Df.right;
532
532
  Df.left;
533
533
  Ks(Sf).center;
534
534
  function ig(t, e) {
@@ -543,7 +543,7 @@ function ig(t, e) {
543
543
  }
544
544
  return [n, r];
545
545
  }
546
- class Dt extends Map {
546
+ class St extends Map {
547
547
  constructor(e, n = ag) {
548
548
  if (super(), Object.defineProperties(this, { _intern: { value: /* @__PURE__ */ new Map() }, _key: { value: n } }), e != null)
549
549
  for (const [r, i] of e)
@@ -590,7 +590,7 @@ function Bf(t, e, n, r) {
590
590
  return function i(s, o) {
591
591
  if (o >= r.length)
592
592
  return n(s);
593
- const a = new Dt(), c = r[o++];
593
+ const a = new St(), c = r[o++];
594
594
  let u = -1;
595
595
  for (const f of s) {
596
596
  const l = c(f, ++u, s), h = a.get(l);
@@ -624,7 +624,7 @@ function Ff(t, e, n) {
624
624
  var r = (e - t) / Math.max(0, n), i = Math.floor(Math.log(r) / Math.LN10), s = r / Math.pow(10, i);
625
625
  return i >= 0 ? (s >= fa ? 10 : s >= ha ? 5 : s >= da ? 2 : 1) * Math.pow(10, i) : -Math.pow(10, -i) / (s >= fa ? 10 : s >= ha ? 5 : s >= da ? 2 : 1);
626
626
  }
627
- function bn(t, e, n) {
627
+ function wn(t, e, n) {
628
628
  var r = Math.abs(e - t) / Math.max(0, n), i = Math.pow(10, Math.floor(Math.log(r) / Math.LN10)), s = r / i;
629
629
  return s >= fa ? i *= 10 : s >= ha ? i *= 5 : s >= da && (i *= 2), e < t ? -i : i;
630
630
  }
@@ -686,7 +686,7 @@ function fg(t) {
686
686
  };
687
687
  }
688
688
  var hg = /^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;
689
- function Bt(t) {
689
+ function Dt(t) {
690
690
  if (!(e = hg.exec(t)))
691
691
  throw new Error("invalid format: " + t);
692
692
  var e;
@@ -703,7 +703,7 @@ function Bt(t) {
703
703
  type: e[10]
704
704
  });
705
705
  }
706
- Bt.prototype = fc.prototype;
706
+ Dt.prototype = fc.prototype;
707
707
  function fc(t) {
708
708
  this.fill = t.fill === void 0 ? " " : t.fill + "", this.align = t.align === void 0 ? ">" : t.align + "", this.sign = t.sign === void 0 ? "-" : t.sign + "", this.symbol = t.symbol === void 0 ? "" : t.symbol + "", this.zero = !!t.zero, this.width = t.width === void 0 ? void 0 : +t.width, this.comma = !!t.comma, this.precision = t.precision === void 0 ? void 0 : +t.precision, this.trim = !!t.trim, this.type = t.type === void 0 ? "" : t.type + "";
709
709
  }
@@ -765,7 +765,7 @@ var Pu = Array.prototype.map, Ru = ["y", "z", "a", "f", "p", "n", "µ", "m", "",
765
765
  function gg(t) {
766
766
  var e = t.grouping === void 0 || t.thousands === void 0 ? Mu : lg(Pu.call(t.grouping, Number), t.thousands + ""), n = t.currency === void 0 ? "" : t.currency[0] + "", r = t.currency === void 0 ? "" : t.currency[1] + "", i = t.decimal === void 0 ? "." : t.decimal + "", s = t.numerals === void 0 ? Mu : fg(Pu.call(t.numerals, String)), o = t.percent === void 0 ? "%" : t.percent + "", a = t.minus === void 0 ? "−" : t.minus + "", c = t.nan === void 0 ? "NaN" : t.nan + "";
767
767
  function u(l) {
768
- l = Bt(l);
768
+ l = Dt(l);
769
769
  var h = l.fill, p = l.align, d = l.sign, g = l.symbol, m = l.zero, A = l.width, y = l.comma, b = l.precision, w = l.trim, S = l.type;
770
770
  S === "n" ? (y = !0, S = "g") : Iu[S] || (b === void 0 && (b = 12), w = !0, S = "g"), (m || h === "0" && p === "=") && (m = !0, h = "0", p = "=");
771
771
  var E = g === "$" ? n : g === "#" && /[boxX]/.test(S) ? "0" + S.toLowerCase() : "", D = g === "$" ? r : /[%p]/.test(S) ? o : "", O = Iu[S], P = /[defgprs%]/.test(S);
@@ -786,7 +786,7 @@ function gg(t) {
786
786
  }
787
787
  }
788
788
  y && !m && (R = e(R, 1 / 0));
789
- var bt = Oe.length + R.length + le.length, Fe = bt < A ? new Array(A - bt + 1).join(h) : "";
789
+ var xt = Oe.length + R.length + le.length, Fe = xt < A ? new Array(A - xt + 1).join(h) : "";
790
790
  switch (y && m && (R = e(Fe + R, Fe.length ? A - le.length : 1 / 0), Fe = ""), p) {
791
791
  case "<":
792
792
  R = Oe + R + le + Fe;
@@ -795,7 +795,7 @@ function gg(t) {
795
795
  R = Oe + Fe + R + le;
796
796
  break;
797
797
  case "^":
798
- R = Fe.slice(0, bt = Fe.length >> 1) + Oe + R + le + Fe.slice(bt);
798
+ R = Fe.slice(0, xt = Fe.length >> 1) + Oe + R + le + Fe.slice(xt);
799
799
  break;
800
800
  default:
801
801
  R = Fe + Oe + R + le;
@@ -808,7 +808,7 @@ function gg(t) {
808
808
  }, J;
809
809
  }
810
810
  function f(l, h) {
811
- var p = u((l = Bt(l), l.type = "f", l)), d = Math.max(-8, Math.min(8, Math.floor(nr(h) / 3))) * 3, g = Math.pow(10, -d), m = Ru[8 + d / 3];
811
+ var p = u((l = Dt(l), l.type = "f", l)), d = Math.max(-8, Math.min(8, Math.floor(nr(h) / 3))) * 3, g = Math.pow(10, -d), m = Ru[8 + d / 3];
812
812
  return function(A) {
813
813
  return p(g * A) + m;
814
814
  };
@@ -901,7 +901,7 @@ bs.every = function(t) {
901
901
  };
902
902
  const dc = bs;
903
903
  bs.range;
904
- const dt = 1e3, ke = dt * 60, pt = ke * 60, wn = pt * 24, pc = wn * 7, ku = wn * 30, zo = wn * 365;
904
+ const dt = 1e3, ke = dt * 60, pt = ke * 60, vn = pt * 24, pc = vn * 7, ku = vn * 30, zo = vn * 365;
905
905
  var kf = re(function(t) {
906
906
  t.setTime(t - t.getMilliseconds());
907
907
  }, function(t, e) {
@@ -911,7 +911,7 @@ var kf = re(function(t) {
911
911
  }, function(t) {
912
912
  return t.getUTCSeconds();
913
913
  });
914
- const Et = kf;
914
+ const Ct = kf;
915
915
  kf.range;
916
916
  var Lf = re(function(t) {
917
917
  t.setTime(t - t.getMilliseconds() - t.getSeconds() * dt);
@@ -938,12 +938,12 @@ Of.range;
938
938
  var zf = re(
939
939
  (t) => t.setHours(0, 0, 0, 0),
940
940
  (t, e) => t.setDate(t.getDate() + e),
941
- (t, e) => (e - t - (e.getTimezoneOffset() - t.getTimezoneOffset()) * ke) / wn,
941
+ (t, e) => (e - t - (e.getTimezoneOffset() - t.getTimezoneOffset()) * ke) / vn,
942
942
  (t) => t.getDate() - 1
943
943
  );
944
- const dn = zf;
944
+ const pn = zf;
945
945
  zf.range;
946
- function Tn(t) {
946
+ function In(t) {
947
947
  return re(function(e) {
948
948
  e.setDate(e.getDate() - (e.getDay() + 7 - t) % 7), e.setHours(0, 0, 0, 0);
949
949
  }, function(e, n) {
@@ -952,7 +952,7 @@ function Tn(t) {
952
952
  return (n - e - (n.getTimezoneOffset() - e.getTimezoneOffset()) * ke) / pc;
953
953
  });
954
954
  }
955
- var Si = Tn(0), ws = Tn(1), Ag = Tn(2), yg = Tn(3), rr = Tn(4), xg = Tn(5), bg = Tn(6);
955
+ var Si = In(0), ws = In(1), Ag = In(2), yg = In(3), rr = In(4), xg = In(5), bg = In(6);
956
956
  Si.range;
957
957
  ws.range;
958
958
  Ag.range;
@@ -986,7 +986,7 @@ Ac.every = function(t) {
986
986
  e.setFullYear(e.getFullYear() + n * t);
987
987
  });
988
988
  };
989
- const Ft = Ac;
989
+ const Bt = Ac;
990
990
  Ac.range;
991
991
  var Nf = re(function(t) {
992
992
  t.setUTCSeconds(0, 0);
@@ -1015,13 +1015,13 @@ var Gf = re(function(t) {
1015
1015
  }, function(t, e) {
1016
1016
  t.setUTCDate(t.getUTCDate() + e);
1017
1017
  }, function(t, e) {
1018
- return (e - t) / wn;
1018
+ return (e - t) / vn;
1019
1019
  }, function(t) {
1020
1020
  return t.getUTCDate() - 1;
1021
1021
  });
1022
- const pn = Gf;
1022
+ const gn = Gf;
1023
1023
  Gf.range;
1024
- function In(t) {
1024
+ function Mn(t) {
1025
1025
  return re(function(e) {
1026
1026
  e.setUTCDate(e.getUTCDate() - (e.getUTCDay() + 7 - t) % 7), e.setUTCHours(0, 0, 0, 0);
1027
1027
  }, function(e, n) {
@@ -1030,7 +1030,7 @@ function In(t) {
1030
1030
  return (n - e) / pc;
1031
1031
  });
1032
1032
  }
1033
- var Di = In(0), vs = In(1), wg = In(2), vg = In(3), ir = In(4), Cg = In(5), Eg = In(6);
1033
+ var Di = Mn(0), vs = Mn(1), wg = Mn(2), vg = Mn(3), ir = Mn(4), Cg = Mn(5), Eg = Mn(6);
1034
1034
  Di.range;
1035
1035
  vs.range;
1036
1036
  wg.range;
@@ -1064,14 +1064,14 @@ bc.every = function(t) {
1064
1064
  e.setUTCFullYear(e.getUTCFullYear() + n * t);
1065
1065
  });
1066
1066
  };
1067
- const Tt = bc;
1067
+ const Ft = bc;
1068
1068
  bc.range;
1069
1069
  function Hf(t, e, n, r, i, s) {
1070
1070
  const o = [
1071
- [Et, 1, dt],
1072
- [Et, 5, 5 * dt],
1073
- [Et, 15, 15 * dt],
1074
- [Et, 30, 30 * dt],
1071
+ [Ct, 1, dt],
1072
+ [Ct, 5, 5 * dt],
1073
+ [Ct, 15, 15 * dt],
1074
+ [Ct, 30, 30 * dt],
1075
1075
  [s, 1, ke],
1076
1076
  [s, 5, 5 * ke],
1077
1077
  [s, 15, 15 * ke],
@@ -1080,8 +1080,8 @@ function Hf(t, e, n, r, i, s) {
1080
1080
  [i, 3, 3 * pt],
1081
1081
  [i, 6, 6 * pt],
1082
1082
  [i, 12, 12 * pt],
1083
- [r, 1, wn],
1084
- [r, 2, 2 * wn],
1083
+ [r, 1, vn],
1084
+ [r, 2, 2 * vn],
1085
1085
  [n, 1, pc],
1086
1086
  [e, 1, ku],
1087
1087
  [e, 3, 3 * ku],
@@ -1096,39 +1096,39 @@ function Hf(t, e, n, r, i, s) {
1096
1096
  function c(u, f, l) {
1097
1097
  const h = Math.abs(f - u) / l, p = Ks(([, , m]) => m).right(o, h);
1098
1098
  if (p === o.length)
1099
- return t.every(bn(u / zo, f / zo, l));
1099
+ return t.every(wn(u / zo, f / zo, l));
1100
1100
  if (p === 0)
1101
- return dc.every(Math.max(bn(u, f, l), 1));
1101
+ return dc.every(Math.max(wn(u, f, l), 1));
1102
1102
  const [d, g] = o[h / o[p - 1][2] < o[p][2] / h ? p - 1 : p];
1103
1103
  return d.every(g);
1104
1104
  }
1105
1105
  return [a, c];
1106
1106
  }
1107
- const [Sg, Dg] = Hf(Tt, Gr, Di, pn, xc, yc), [Bg, Fg] = Hf(Ft, Ur, Si, dn, mc, gc), Hr = "year", Vr = "quarter", Qr = "month", Wr = "week", Yr = "date", Js = "day", wc = "dayofyear", jr = "hours", Xr = "minutes", Zr = "seconds", _s = "milliseconds", Tg = [Hr, Vr, Qr, Wr, Yr, Js, wc, jr, Xr, Zr, _s];
1107
+ const [Sg, Dg] = Hf(Ft, Gr, Di, gn, xc, yc), [Bg, Fg] = Hf(Bt, Ur, Si, pn, mc, gc), Hr = "year", Vr = "quarter", Qr = "month", Wr = "week", Yr = "date", Js = "day", wc = "dayofyear", jr = "hours", Xr = "minutes", Zr = "seconds", _s = "milliseconds", Tg = [Hr, Vr, Qr, Wr, Yr, Js, wc, jr, Xr, Zr, _s];
1108
1108
  Tg.reduce((t, e, n) => (t[e] = 1 + n, t), {});
1109
1109
  const Ig = {
1110
- [Hr]: Ft,
1110
+ [Hr]: Bt,
1111
1111
  [Vr]: Ur.every(3),
1112
1112
  [Qr]: Ur,
1113
1113
  [Wr]: Si,
1114
- [Yr]: dn,
1115
- [Js]: dn,
1116
- [wc]: dn,
1114
+ [Yr]: pn,
1115
+ [Js]: pn,
1116
+ [wc]: pn,
1117
1117
  [jr]: mc,
1118
1118
  [Xr]: gc,
1119
- [Zr]: Et,
1119
+ [Zr]: Ct,
1120
1120
  [_s]: dc
1121
1121
  }, Mg = {
1122
- [Hr]: Tt,
1122
+ [Hr]: Ft,
1123
1123
  [Vr]: Gr.every(3),
1124
1124
  [Qr]: Gr,
1125
1125
  [Wr]: Di,
1126
- [Yr]: pn,
1127
- [Js]: pn,
1128
- [wc]: pn,
1126
+ [Yr]: gn,
1127
+ [Js]: gn,
1128
+ [wc]: gn,
1129
1129
  [jr]: xc,
1130
1130
  [Xr]: yc,
1131
- [Zr]: Et,
1131
+ [Zr]: Ct,
1132
1132
  [_s]: dc
1133
1133
  };
1134
1134
  function Pg(t) {
@@ -1157,7 +1157,7 @@ function wr(t, e, n) {
1157
1157
  function Vf(t) {
1158
1158
  var e = t.dateTime, n = t.date, r = t.time, i = t.periods, s = t.days, o = t.shortDays, a = t.months, c = t.shortMonths, u = vr(i), f = Cr(i), l = vr(s), h = Cr(s), p = vr(o), d = Cr(o), g = vr(a), m = Cr(a), A = vr(c), y = Cr(c), b = {
1159
1159
  a: ot,
1160
- A: bt,
1160
+ A: xt,
1161
1161
  b: Fe,
1162
1162
  B: Te,
1163
1163
  c: null,
@@ -1276,7 +1276,7 @@ function Vf(t) {
1276
1276
  if (k && !("Z" in v) && (v.Z = 0), "p" in v && (v.H = v.H % 12 + v.p * 12), v.m === void 0 && (v.m = "q" in v ? v.q : 0), "V" in v) {
1277
1277
  if (v.V < 1 || v.V > 53)
1278
1278
  return null;
1279
- "w" in v || (v.w = 1), "Z" in v ? (V = Uo(wr(v.y, 0, 1)), Ie = V.getUTCDay(), V = Ie > 4 || Ie === 0 ? vs.ceil(V) : vs(V), V = pn.offset(V, (v.V - 1) * 7), v.y = V.getUTCFullYear(), v.m = V.getUTCMonth(), v.d = V.getUTCDate() + (v.w + 6) % 7) : (V = No(wr(v.y, 0, 1)), Ie = V.getDay(), V = Ie > 4 || Ie === 0 ? ws.ceil(V) : ws(V), V = dn.offset(V, (v.V - 1) * 7), v.y = V.getFullYear(), v.m = V.getMonth(), v.d = V.getDate() + (v.w + 6) % 7);
1279
+ "w" in v || (v.w = 1), "Z" in v ? (V = Uo(wr(v.y, 0, 1)), Ie = V.getUTCDay(), V = Ie > 4 || Ie === 0 ? vs.ceil(V) : vs(V), V = gn.offset(V, (v.V - 1) * 7), v.y = V.getUTCFullYear(), v.m = V.getUTCMonth(), v.d = V.getUTCDate() + (v.w + 6) % 7) : (V = No(wr(v.y, 0, 1)), Ie = V.getDay(), V = Ie > 4 || Ie === 0 ? ws.ceil(V) : ws(V), V = pn.offset(V, (v.V - 1) * 7), v.y = V.getFullYear(), v.m = V.getMonth(), v.d = V.getDate() + (v.w + 6) % 7);
1280
1280
  } else
1281
1281
  ("W" in v || "U" in v) && ("w" in v || (v.w = "u" in v ? v.u % 7 : "W" in v ? 1 : 0), Ie = "Z" in v ? Uo(wr(v.y, 0, 1)).getUTCDay() : No(wr(v.y, 0, 1)).getDay(), v.m = 0, v.d = "W" in v ? (v.w + 6) % 7 + v.W * 7 - (Ie + 5) % 7 : v.w + v.U * 7 - (Ie + 6) % 7);
1282
1282
  return "Z" in v ? (v.H += v.Z / 100 | 0, v.M += v.Z % 100, Uo(v)) : No(v);
@@ -1326,7 +1326,7 @@ function Vf(t) {
1326
1326
  function ot(B) {
1327
1327
  return o[B.getDay()];
1328
1328
  }
1329
- function bt(B) {
1329
+ function xt(B) {
1330
1330
  return s[B.getDay()];
1331
1331
  }
1332
1332
  function Fe(B) {
@@ -1490,7 +1490,7 @@ function em(t, e) {
1490
1490
  return N(t.getHours() % 12 || 12, e, 2);
1491
1491
  }
1492
1492
  function tm(t, e) {
1493
- return N(1 + dn.count(Ft(t), t), e, 3);
1493
+ return N(1 + pn.count(Bt(t), t), e, 3);
1494
1494
  }
1495
1495
  function Qf(t, e) {
1496
1496
  return N(t.getMilliseconds(), e, 3);
@@ -1512,20 +1512,20 @@ function om(t) {
1512
1512
  return e === 0 ? 7 : e;
1513
1513
  }
1514
1514
  function am(t, e) {
1515
- return N(Si.count(Ft(t) - 1, t), e, 2);
1515
+ return N(Si.count(Bt(t) - 1, t), e, 2);
1516
1516
  }
1517
1517
  function Wf(t) {
1518
1518
  var e = t.getDay();
1519
1519
  return e >= 4 || e === 0 ? rr(t) : rr.ceil(t);
1520
1520
  }
1521
1521
  function cm(t, e) {
1522
- return t = Wf(t), N(rr.count(Ft(t), t) + (Ft(t).getDay() === 4), e, 2);
1522
+ return t = Wf(t), N(rr.count(Bt(t), t) + (Bt(t).getDay() === 4), e, 2);
1523
1523
  }
1524
1524
  function um(t) {
1525
1525
  return t.getDay();
1526
1526
  }
1527
1527
  function lm(t, e) {
1528
- return N(ws.count(Ft(t) - 1, t), e, 2);
1528
+ return N(ws.count(Bt(t) - 1, t), e, 2);
1529
1529
  }
1530
1530
  function fm(t, e) {
1531
1531
  return N(t.getFullYear() % 100, e, 2);
@@ -1554,7 +1554,7 @@ function Am(t, e) {
1554
1554
  return N(t.getUTCHours() % 12 || 12, e, 2);
1555
1555
  }
1556
1556
  function ym(t, e) {
1557
- return N(1 + pn.count(Tt(t), t), e, 3);
1557
+ return N(1 + gn.count(Ft(t), t), e, 3);
1558
1558
  }
1559
1559
  function Yf(t, e) {
1560
1560
  return N(t.getUTCMilliseconds(), e, 3);
@@ -1576,20 +1576,20 @@ function Cm(t) {
1576
1576
  return e === 0 ? 7 : e;
1577
1577
  }
1578
1578
  function Em(t, e) {
1579
- return N(Di.count(Tt(t) - 1, t), e, 2);
1579
+ return N(Di.count(Ft(t) - 1, t), e, 2);
1580
1580
  }
1581
1581
  function jf(t) {
1582
1582
  var e = t.getUTCDay();
1583
1583
  return e >= 4 || e === 0 ? ir(t) : ir.ceil(t);
1584
1584
  }
1585
1585
  function Sm(t, e) {
1586
- return t = jf(t), N(ir.count(Tt(t), t) + (Tt(t).getUTCDay() === 4), e, 2);
1586
+ return t = jf(t), N(ir.count(Ft(t), t) + (Ft(t).getUTCDay() === 4), e, 2);
1587
1587
  }
1588
1588
  function Dm(t) {
1589
1589
  return t.getUTCDay();
1590
1590
  }
1591
1591
  function Bm(t, e) {
1592
- return N(vs.count(Tt(t) - 1, t), e, 2);
1592
+ return N(vs.count(Ft(t) - 1, t), e, 2);
1593
1593
  }
1594
1594
  function Fm(t, e) {
1595
1595
  return N(t.getUTCFullYear() % 100, e, 2);
@@ -1616,7 +1616,7 @@ function Qu(t) {
1616
1616
  function Wu(t) {
1617
1617
  return Math.floor(+t / 1e3);
1618
1618
  }
1619
- var kn, vc, Xf, Cc, Zf;
1619
+ var Ln, vc, Xf, Cc, Zf;
1620
1620
  Rm({
1621
1621
  dateTime: "%x, %X",
1622
1622
  date: "%-m/%-d/%Y",
@@ -1628,7 +1628,7 @@ Rm({
1628
1628
  shortMonths: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"]
1629
1629
  });
1630
1630
  function Rm(t) {
1631
- return kn = Vf(t), vc = kn.format, Xf = kn.parse, Cc = kn.utcFormat, Zf = kn.utcParse, kn;
1631
+ return Ln = Vf(t), vc = Ln.format, Xf = Ln.parse, Cc = Ln.utcFormat, Zf = Ln.utcParse, Ln;
1632
1632
  }
1633
1633
  function Br(t) {
1634
1634
  const e = {};
@@ -1663,7 +1663,7 @@ function Om(t) {
1663
1663
  format: e,
1664
1664
  formatPrefix: n,
1665
1665
  formatFloat(r) {
1666
- const i = Bt(r || ",");
1666
+ const i = Dt(r || ",");
1667
1667
  if (i.precision == null) {
1668
1668
  switch (i.precision = 12, i.type) {
1669
1669
  case "%":
@@ -1683,8 +1683,8 @@ function Om(t) {
1683
1683
  return e(i);
1684
1684
  },
1685
1685
  formatSpan(r, i, s, o) {
1686
- o = Bt(o ?? ",f");
1687
- const a = bn(r, i, s), c = Math.max(Math.abs(r), Math.abs(i));
1686
+ o = Dt(o ?? ",f");
1687
+ const a = wn(r, i, s), c = Math.max(Math.abs(r), Math.abs(i));
1688
1688
  let u;
1689
1689
  if (o.precision == null)
1690
1690
  switch (o.type) {
@@ -1855,12 +1855,12 @@ const Go = {
1855
1855
  topojson: Jf
1856
1856
  };
1857
1857
  function _f(t, e) {
1858
- return arguments.length > 1 ? (Go[t] = e, this) : en(Go, t) ? Go[t] : null;
1858
+ return arguments.length > 1 ? (Go[t] = e, this) : tn(Go, t) ? Go[t] : null;
1859
1859
  }
1860
1860
  function $f(t, e, n, r) {
1861
1861
  e = e || {};
1862
1862
  const i = _f(e.type || "json");
1863
- return i || X("Unknown data format type: " + e.type), t = i(t, e), e.parse && a1(t, e.parse, n, r), en(t, "columns") && delete t.columns, t;
1863
+ return i || X("Unknown data format type: " + e.type), t = i(t, e), e.parse && a1(t, e.parse, n, r), tn(t, "columns") && delete t.columns, t;
1864
1864
  }
1865
1865
  function a1(t, e, n, r) {
1866
1866
  if (!t.length)
@@ -1893,9 +1893,9 @@ const $s = Wm(
1893
1893
  * Copyright 2017 Google LLC
1894
1894
  * SPDX-License-Identifier: BSD-3-Clause
1895
1895
  */
1896
- const Pr = globalThis, Cs = Pr.trustedTypes, Ku = Cs ? Cs.createPolicy("lit-html", { createHTML: (t) => t }) : void 0, e0 = "$lit$", Ct = `lit$${(Math.random() + "").slice(9)}$`, t0 = "?" + Ct, c1 = `<${t0}>`, vn = document, Kr = () => vn.createComment(""), qr = (t) => t === null || typeof t != "object" && typeof t != "function", n0 = Array.isArray, u1 = (t) => n0(t) || typeof (t == null ? void 0 : t[Symbol.iterator]) == "function", Ho = `[
1896
+ const Pr = globalThis, Cs = Pr.trustedTypes, Ku = Cs ? Cs.createPolicy("lit-html", { createHTML: (t) => t }) : void 0, e0 = "$lit$", vt = `lit$${(Math.random() + "").slice(9)}$`, t0 = "?" + vt, c1 = `<${t0}>`, Cn = document, Kr = () => Cn.createComment(""), qr = (t) => t === null || typeof t != "object" && typeof t != "function", n0 = Array.isArray, u1 = (t) => n0(t) || typeof (t == null ? void 0 : t[Symbol.iterator]) == "function", Ho = `[
1897
1897
  \f\r]`, Er = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, qu = /-->/g, Ju = />/g, Kt = RegExp(`>|${Ho}(?:([^\\s"'>=/]+)(${Ho}*=${Ho}*(?:[^
1898
- \f\r"'\`<>=]|("|')|))|$)`, "g"), _u = /'/g, $u = /"/g, r0 = /^(?:script|style|textarea|title)$/i, l1 = (t) => (e, ...n) => ({ _$litType$: t, strings: e, values: n }), Je = l1(1), sr = Symbol.for("lit-noChange"), _ = Symbol.for("lit-nothing"), el = /* @__PURE__ */ new WeakMap(), tn = vn.createTreeWalker(vn, 129);
1898
+ \f\r"'\`<>=]|("|')|))|$)`, "g"), _u = /'/g, $u = /"/g, r0 = /^(?:script|style|textarea|title)$/i, l1 = (t) => (e, ...n) => ({ _$litType$: t, strings: e, values: n }), Je = l1(1), sr = Symbol.for("lit-noChange"), _ = Symbol.for("lit-nothing"), el = /* @__PURE__ */ new WeakMap(), nn = Cn.createTreeWalker(Cn, 129);
1899
1899
  function i0(t, e) {
1900
1900
  if (!Array.isArray(t) || !t.hasOwnProperty("raw"))
1901
1901
  throw Error("invalid template strings array");
@@ -1910,7 +1910,7 @@ const f1 = (t, e) => {
1910
1910
  for (; h < c.length && (o.lastIndex = h, f = o.exec(c), f !== null); )
1911
1911
  h = o.lastIndex, o === Er ? f[1] === "!--" ? o = qu : f[1] !== void 0 ? o = Ju : f[2] !== void 0 ? (r0.test(f[2]) && (i = RegExp("</" + f[2], "g")), o = Kt) : f[3] !== void 0 && (o = Kt) : o === Kt ? f[0] === ">" ? (o = i ?? Er, l = -1) : f[1] === void 0 ? l = -2 : (l = o.lastIndex - f[2].length, u = f[1], o = f[3] === void 0 ? Kt : f[3] === '"' ? $u : _u) : o === $u || o === _u ? o = Kt : o === qu || o === Ju ? o = Er : (o = Kt, i = void 0);
1912
1912
  const p = o === Kt && t[a + 1].startsWith("/>") ? " " : "";
1913
- s += o === Er ? c + c1 : l >= 0 ? (r.push(u), c.slice(0, l) + e0 + c.slice(l) + Ct + p) : c + Ct + (l === -2 ? a : p);
1913
+ s += o === Er ? c + c1 : l >= 0 ? (r.push(u), c.slice(0, l) + e0 + c.slice(l) + vt + p) : c + vt + (l === -2 ? a : p);
1914
1914
  }
1915
1915
  return [i0(t, s + (t[n] || "<?>") + (e === 2 ? "</svg>" : "")), r];
1916
1916
  };
@@ -1920,25 +1920,25 @@ class Jr {
1920
1920
  this.parts = [];
1921
1921
  let s = 0, o = 0;
1922
1922
  const a = e.length - 1, c = this.parts, [u, f] = f1(e, n);
1923
- if (this.el = Jr.createElement(u, r), tn.currentNode = this.el.content, n === 2) {
1923
+ if (this.el = Jr.createElement(u, r), nn.currentNode = this.el.content, n === 2) {
1924
1924
  const l = this.el.content.firstChild;
1925
1925
  l.replaceWith(...l.childNodes);
1926
1926
  }
1927
- for (; (i = tn.nextNode()) !== null && c.length < a; ) {
1927
+ for (; (i = nn.nextNode()) !== null && c.length < a; ) {
1928
1928
  if (i.nodeType === 1) {
1929
1929
  if (i.hasAttributes())
1930
1930
  for (const l of i.getAttributeNames())
1931
1931
  if (l.endsWith(e0)) {
1932
- const h = f[o++], p = i.getAttribute(l).split(Ct), d = /([.?@])?(.*)/.exec(h);
1932
+ const h = f[o++], p = i.getAttribute(l).split(vt), d = /([.?@])?(.*)/.exec(h);
1933
1933
  c.push({ type: 1, index: s, name: d[2], strings: p, ctor: d[1] === "." ? d1 : d[1] === "?" ? p1 : d[1] === "@" ? g1 : eo }), i.removeAttribute(l);
1934
1934
  } else
1935
- l.startsWith(Ct) && (c.push({ type: 6, index: s }), i.removeAttribute(l));
1935
+ l.startsWith(vt) && (c.push({ type: 6, index: s }), i.removeAttribute(l));
1936
1936
  if (r0.test(i.tagName)) {
1937
- const l = i.textContent.split(Ct), h = l.length - 1;
1937
+ const l = i.textContent.split(vt), h = l.length - 1;
1938
1938
  if (h > 0) {
1939
1939
  i.textContent = Cs ? Cs.emptyScript : "";
1940
1940
  for (let p = 0; p < h; p++)
1941
- i.append(l[p], Kr()), tn.nextNode(), c.push({ type: 2, index: ++s });
1941
+ i.append(l[p], Kr()), nn.nextNode(), c.push({ type: 2, index: ++s });
1942
1942
  i.append(l[h], Kr());
1943
1943
  }
1944
1944
  }
@@ -1947,14 +1947,14 @@ class Jr {
1947
1947
  c.push({ type: 2, index: s });
1948
1948
  else {
1949
1949
  let l = -1;
1950
- for (; (l = i.data.indexOf(Ct, l + 1)) !== -1; )
1951
- c.push({ type: 7, index: s }), l += Ct.length - 1;
1950
+ for (; (l = i.data.indexOf(vt, l + 1)) !== -1; )
1951
+ c.push({ type: 7, index: s }), l += vt.length - 1;
1952
1952
  }
1953
1953
  s++;
1954
1954
  }
1955
1955
  }
1956
1956
  static createElement(e, n) {
1957
- const r = vn.createElement("template");
1957
+ const r = Cn.createElement("template");
1958
1958
  return r.innerHTML = e, r;
1959
1959
  }
1960
1960
  }
@@ -1977,17 +1977,17 @@ class h1 {
1977
1977
  return this._$AM._$AU;
1978
1978
  }
1979
1979
  u(e) {
1980
- const { el: { content: n }, parts: r } = this._$AD, i = ((e == null ? void 0 : e.creationScope) ?? vn).importNode(n, !0);
1981
- tn.currentNode = i;
1982
- let s = tn.nextNode(), o = 0, a = 0, c = r[0];
1980
+ const { el: { content: n }, parts: r } = this._$AD, i = ((e == null ? void 0 : e.creationScope) ?? Cn).importNode(n, !0);
1981
+ nn.currentNode = i;
1982
+ let s = nn.nextNode(), o = 0, a = 0, c = r[0];
1983
1983
  for (; c !== void 0; ) {
1984
1984
  if (o === c.index) {
1985
1985
  let u;
1986
1986
  c.type === 2 ? u = new Bi(s, s.nextSibling, this, e) : c.type === 1 ? u = new c.ctor(s, c.name, c.strings, this, e) : c.type === 6 && (u = new m1(s, this, e)), this._$AV.push(u), c = r[++a];
1987
1987
  }
1988
- o !== (c == null ? void 0 : c.index) && (s = tn.nextNode(), o++);
1988
+ o !== (c == null ? void 0 : c.index) && (s = nn.nextNode(), o++);
1989
1989
  }
1990
- return tn.currentNode = vn, i;
1990
+ return nn.currentNode = Cn, i;
1991
1991
  }
1992
1992
  p(e) {
1993
1993
  let n = 0;
@@ -2024,7 +2024,7 @@ class Bi {
2024
2024
  this._$AH !== e && (this._$AR(), this._$AH = this.k(e));
2025
2025
  }
2026
2026
  _(e) {
2027
- this._$AH !== _ && qr(this._$AH) ? this._$AA.nextSibling.data = e : this.$(vn.createTextNode(e)), this._$AH = e;
2027
+ this._$AH !== _ && qr(this._$AH) ? this._$AA.nextSibling.data = e : this.$(Cn.createTextNode(e)), this._$AH = e;
2028
2028
  }
2029
2029
  g(e) {
2030
2030
  var s;
@@ -2471,14 +2471,14 @@ function U1(t) {
2471
2471
  return [];
2472
2472
  }
2473
2473
  }
2474
- var nt, F, x, de, G, to = 1, Ti = 2, Cn = 3, zt = 4, no = 5, Mn = 6, be = 7, Ii = 8, G1 = 9;
2474
+ var nt, F, x, de, G, to = 1, Ti = 2, En = 3, zt = 4, no = 5, Pn = 6, be = 7, Ii = 8, G1 = 9;
2475
2475
  nt = {};
2476
2476
  nt[to] = "Boolean";
2477
2477
  nt[Ti] = "<end>";
2478
- nt[Cn] = "Identifier";
2478
+ nt[En] = "Identifier";
2479
2479
  nt[zt] = "Keyword";
2480
2480
  nt[no] = "Null";
2481
- nt[Mn] = "Numeric";
2481
+ nt[Pn] = "Numeric";
2482
2482
  nt[be] = "Punctuator";
2483
2483
  nt[Ii] = "String";
2484
2484
  nt[G1] = "RegularExpression";
@@ -2593,7 +2593,7 @@ function c2() {
2593
2593
  }
2594
2594
  function u2() {
2595
2595
  var t, e, n;
2596
- return t = x, e = F.charCodeAt(x) === 92 ? u0() : c2(), e.length === 1 ? n = Cn : o2.hasOwnProperty(e) ? n = zt : e === "null" ? n = no : e === "true" || e === "false" ? n = to : n = Cn, {
2596
+ return t = x, e = F.charCodeAt(x) === 92 ? u0() : c2(), e.length === 1 ? n = En : o2.hasOwnProperty(e) ? n = zt : e === "null" ? n = no : e === "true" || e === "false" ? n = to : n = En, {
2597
2597
  type: n,
2598
2598
  value: e,
2599
2599
  start: t,
@@ -2685,7 +2685,7 @@ function l2(t) {
2685
2685
  for (; x < de && Dc(F[x]); )
2686
2686
  e += F[x++];
2687
2687
  return e.length === 0 && z({}, ee, ce), Mi(F.charCodeAt(x)) && z({}, ee, ce), {
2688
- type: Mn,
2688
+ type: Pn,
2689
2689
  value: parseInt("0x" + e, 16),
2690
2690
  start: t,
2691
2691
  end: x
@@ -2696,7 +2696,7 @@ function f2(t) {
2696
2696
  for (; x < de && Rr(F[x]); )
2697
2697
  e += F[x++];
2698
2698
  return (Mi(F.charCodeAt(x)) || ct(F.charCodeAt(x))) && z({}, ee, ce), {
2699
- type: Mn,
2699
+ type: Pn,
2700
2700
  value: parseInt(e, 8),
2701
2701
  octal: !0,
2702
2702
  start: t,
@@ -2729,7 +2729,7 @@ function tl() {
2729
2729
  else
2730
2730
  z({}, ee, ce);
2731
2731
  return Mi(F.charCodeAt(x)) && z({}, ee, ce), {
2732
- type: Mn,
2732
+ type: Pn,
2733
2733
  value: parseFloat(t),
2734
2734
  start: e,
2735
2735
  end: x
@@ -2847,7 +2847,7 @@ function m2() {
2847
2847
  };
2848
2848
  }
2849
2849
  function A2(t) {
2850
- return t.type === Cn || t.type === zt || t.type === to || t.type === no;
2850
+ return t.type === En || t.type === zt || t.type === to || t.type === no;
2851
2851
  }
2852
2852
  function l0() {
2853
2853
  if (c0(), x >= de)
@@ -2912,7 +2912,7 @@ function z(t, e) {
2912
2912
  throw n = new Error(i), n.index = x, n.description = i, n;
2913
2913
  }
2914
2914
  function io(t) {
2915
- t.type === Ti && z(t, t2), t.type === Mn && z(t, J1), t.type === Ii && z(t, _1), t.type === Cn && z(t, $1), t.type === zt && z(t, e2), z(t, ee, t.value);
2915
+ t.type === Ti && z(t, t2), t.type === Pn && z(t, J1), t.type === Ii && z(t, _1), t.type === En && z(t, $1), t.type === zt && z(t, e2), z(t, ee, t.value);
2916
2916
  }
2917
2917
  function pe(t) {
2918
2918
  const e = we();
@@ -2927,22 +2927,22 @@ function Yo(t) {
2927
2927
  function C2() {
2928
2928
  const t = [];
2929
2929
  for (x = G.start, pe("["); !W("]"); )
2930
- W(",") ? (we(), t.push(null)) : (t.push(En()), W("]") || pe(","));
2930
+ W(",") ? (we(), t.push(null)) : (t.push(Sn()), W("]") || pe(","));
2931
2931
  return we(), y2(t);
2932
2932
  }
2933
2933
  function sl() {
2934
2934
  x = G.start;
2935
2935
  const t = we();
2936
- return t.type === Ii || t.type === Mn ? (t.octal && z(t, a0), Fr(t)) : Bc(t.value);
2936
+ return t.type === Ii || t.type === Pn ? (t.octal && z(t, a0), Fr(t)) : Bc(t.value);
2937
2937
  }
2938
2938
  function E2() {
2939
2939
  var t, e, n, r;
2940
- if (x = G.start, t = G, t.type === Cn)
2941
- return n = sl(), pe(":"), r = En(), il("init", n, r);
2940
+ if (x = G.start, t = G, t.type === En)
2941
+ return n = sl(), pe(":"), r = Sn(), il("init", n, r);
2942
2942
  if (t.type === Ti || t.type === be)
2943
2943
  io(t);
2944
2944
  else
2945
- return e = sl(), pe(":"), r = En(), il("init", e, r);
2945
+ return e = sl(), pe(":"), r = Sn(), il("init", e, r);
2946
2946
  }
2947
2947
  function S2() {
2948
2948
  var t = [], e, n, r, i = {}, s = String;
@@ -2966,9 +2966,9 @@ function F2() {
2966
2966
  return C2();
2967
2967
  if (W("{"))
2968
2968
  return S2();
2969
- if (t = G.type, x = G.start, t === Cn || B2[G.value])
2969
+ if (t = G.type, x = G.start, t === En || B2[G.value])
2970
2970
  n = Bc(we().value);
2971
- else if (t === Ii || t === Mn)
2971
+ else if (t === Ii || t === Pn)
2972
2972
  G.octal && z(G, a0), n = Fr(we());
2973
2973
  else {
2974
2974
  if (t === zt)
@@ -2980,7 +2980,7 @@ function F2() {
2980
2980
  function T2() {
2981
2981
  const t = [];
2982
2982
  if (pe("("), !W(")"))
2983
- for (; x < de && (t.push(En()), !W(")")); )
2983
+ for (; x < de && (t.push(Sn()), !W(")")); )
2984
2984
  pe(",");
2985
2985
  return pe(")"), t;
2986
2986
  }
@@ -3097,12 +3097,12 @@ function k2() {
3097
3097
  e.pop(), n = nl(s[u - 1].value, s[u - 2], n), u -= 2;
3098
3098
  return n;
3099
3099
  }
3100
- function En() {
3100
+ function Sn() {
3101
3101
  var t, e, n;
3102
- return t = k2(), W("?") && (we(), e = En(), pe(":"), n = En(), t = b2(t, e, n)), t;
3102
+ return t = k2(), W("?") && (we(), e = Sn(), pe(":"), n = Sn(), t = b2(t, e, n)), t;
3103
3103
  }
3104
3104
  function Fc() {
3105
- const t = En();
3105
+ const t = Sn();
3106
3106
  if (W(","))
3107
3107
  throw new Error(_r);
3108
3108
  return t;
@@ -3224,7 +3224,7 @@ function N2(t) {
3224
3224
  Literal: (d) => d.raw,
3225
3225
  Identifier: (d) => {
3226
3226
  const g = d.name;
3227
- return f > 0 ? g : en(n, g) ? X("Illegal identifier: " + g) : en(r, g) ? r[g] : en(e, g) ? g : (c[g] = 1, a(g));
3227
+ return f > 0 ? g : tn(n, g) ? X("Illegal identifier: " + g) : tn(r, g) ? r[g] : tn(e, g) ? g : (c[g] = 1, a(g));
3228
3228
  },
3229
3229
  MemberExpression: (d) => {
3230
3230
  const g = !d.computed, m = l(d.object);
@@ -3234,7 +3234,7 @@ function N2(t) {
3234
3234
  },
3235
3235
  CallExpression: (d) => {
3236
3236
  d.callee.type !== "Identifier" && X("Illegal callee type: " + d.callee.type);
3237
- const g = d.callee.name, m = d.arguments, A = en(i, g) && i[g];
3237
+ const g = d.callee.name, m = d.arguments, A = tn(i, g) && i[g];
3238
3238
  return A || X("Unrecognized function: " + g), Ee(A) ? A(m) : A + "(" + m.map(l).join(",") + ")";
3239
3239
  },
3240
3240
  ArrayExpression: (d) => "[" + d.elements.map(l).join(",") + "]",
@@ -3344,7 +3344,7 @@ function Nt(t, e) {
3344
3344
  }
3345
3345
  const ya = Symbol("implicit");
3346
3346
  function Tc() {
3347
- var t = new Dt(), e = [], n = [], r = ya;
3347
+ var t = new St(), e = [], n = [], r = ya;
3348
3348
  function i(s) {
3349
3349
  let o = t.get(s);
3350
3350
  if (o === void 0) {
@@ -3357,7 +3357,7 @@ function Tc() {
3357
3357
  return i.domain = function(s) {
3358
3358
  if (!arguments.length)
3359
3359
  return e.slice();
3360
- e = [], t = new Dt();
3360
+ e = [], t = new St();
3361
3361
  for (const o of s)
3362
3362
  t.has(o) || t.set(o, e.push(o) - 1);
3363
3363
  return i;
@@ -3380,7 +3380,7 @@ function Pi(t, e) {
3380
3380
  }
3381
3381
  function Ut() {
3382
3382
  }
3383
- var Sn = 0.7, ar = 1 / Sn, Vn = "\\s*([+-]?\\d+)\\s*", ti = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*", _e = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*", V2 = /^#([0-9a-f]{3,8})$/, Q2 = new RegExp(`^rgb\\(${Vn},${Vn},${Vn}\\)$`), W2 = new RegExp(`^rgb\\(${_e},${_e},${_e}\\)$`), Y2 = new RegExp(`^rgba\\(${Vn},${Vn},${Vn},${ti}\\)$`), j2 = new RegExp(`^rgba\\(${_e},${_e},${_e},${ti}\\)$`), X2 = new RegExp(`^hsl\\(${ti},${_e},${_e}\\)$`), Z2 = new RegExp(`^hsla\\(${ti},${_e},${_e},${ti}\\)$`), cl = {
3383
+ var Dn = 0.7, ar = 1 / Dn, Vn = "\\s*([+-]?\\d+)\\s*", ti = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*", _e = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*", V2 = /^#([0-9a-f]{3,8})$/, Q2 = new RegExp(`^rgb\\(${Vn},${Vn},${Vn}\\)$`), W2 = new RegExp(`^rgb\\(${_e},${_e},${_e}\\)$`), Y2 = new RegExp(`^rgba\\(${Vn},${Vn},${Vn},${ti}\\)$`), j2 = new RegExp(`^rgba\\(${_e},${_e},${_e},${ti}\\)$`), X2 = new RegExp(`^hsl\\(${ti},${_e},${_e}\\)$`), Z2 = new RegExp(`^hsla\\(${ti},${_e},${_e},${ti}\\)$`), cl = {
3384
3384
  aliceblue: 15792383,
3385
3385
  antiquewhite: 16444375,
3386
3386
  aqua: 65535,
@@ -3530,7 +3530,7 @@ var Sn = 0.7, ar = 1 / Sn, Vn = "\\s*([+-]?\\d+)\\s*", ti = "\\s*([+-]?(?:\\d*\\
3530
3530
  yellow: 16776960,
3531
3531
  yellowgreen: 10145074
3532
3532
  };
3533
- dr(Ut, It, {
3533
+ dr(Ut, Tt, {
3534
3534
  copy(t) {
3535
3535
  return Object.assign(new this.constructor(), this, t);
3536
3536
  },
@@ -3557,7 +3557,7 @@ function q2() {
3557
3557
  function ll() {
3558
3558
  return this.rgb().formatRgb();
3559
3559
  }
3560
- function It(t) {
3560
+ function Tt(t) {
3561
3561
  var e, n;
3562
3562
  return t = (t + "").trim().toLowerCase(), (e = V2.exec(t)) ? (n = e[1].length, e = parseInt(e[1], 16), n === 6 ? fl(e) : n === 3 ? new te(e >> 8 & 15 | e >> 4 & 240, e >> 4 & 15 | e & 240, (e & 15) << 4 | e & 15, 1) : n === 8 ? es(e >> 24 & 255, e >> 16 & 255, e >> 8 & 255, (e & 255) / 255) : n === 4 ? es(e >> 12 & 15 | e >> 8 & 240, e >> 8 & 15 | e >> 4 & 240, e >> 4 & 15 | e & 240, ((e & 15) << 4 | e & 15) / 255) : null) : (e = Q2.exec(t)) ? new te(e[1], e[2], e[3], 1) : (e = W2.exec(t)) ? new te(e[1] * 255 / 100, e[2] * 255 / 100, e[3] * 255 / 100, 1) : (e = Y2.exec(t)) ? es(e[1], e[2], e[3], e[4]) : (e = j2.exec(t)) ? es(e[1] * 255 / 100, e[2] * 255 / 100, e[3] * 255 / 100, e[4]) : (e = X2.exec(t)) ? pl(e[1], e[2] / 100, e[3] / 100, 1) : (e = Z2.exec(t)) ? pl(e[1], e[2] / 100, e[3] / 100, e[4]) : cl.hasOwnProperty(t) ? fl(cl[t]) : t === "transparent" ? new te(NaN, NaN, NaN, 0) : null;
3563
3563
  }
@@ -3568,7 +3568,7 @@ function es(t, e, n, r) {
3568
3568
  return r <= 0 && (t = e = n = NaN), new te(t, e, n, r);
3569
3569
  }
3570
3570
  function Ic(t) {
3571
- return t instanceof Ut || (t = It(t)), t ? (t = t.rgb(), new te(t.r, t.g, t.b, t.opacity)) : new te();
3571
+ return t instanceof Ut || (t = Tt(t)), t ? (t = t.rgb(), new te(t.r, t.g, t.b, t.opacity)) : new te();
3572
3572
  }
3573
3573
  function Ds(t, e, n, r) {
3574
3574
  return arguments.length === 1 ? Ic(t) : new te(t, e, n, r ?? 1);
@@ -3581,13 +3581,13 @@ dr(te, Ds, Pi(Ut, {
3581
3581
  return t = t == null ? ar : Math.pow(ar, t), new te(this.r * t, this.g * t, this.b * t, this.opacity);
3582
3582
  },
3583
3583
  darker(t) {
3584
- return t = t == null ? Sn : Math.pow(Sn, t), new te(this.r * t, this.g * t, this.b * t, this.opacity);
3584
+ return t = t == null ? Dn : Math.pow(Dn, t), new te(this.r * t, this.g * t, this.b * t, this.opacity);
3585
3585
  },
3586
3586
  rgb() {
3587
3587
  return this;
3588
3588
  },
3589
3589
  clamp() {
3590
- return new te(gn(this.r), gn(this.g), gn(this.b), Bs(this.opacity));
3590
+ return new te(mn(this.r), mn(this.g), mn(this.b), Bs(this.opacity));
3591
3591
  },
3592
3592
  displayable() {
3593
3593
  return -0.5 <= this.r && this.r < 255.5 && -0.5 <= this.g && this.g < 255.5 && -0.5 <= this.b && this.b < 255.5 && 0 <= this.opacity && this.opacity <= 1;
@@ -3600,23 +3600,23 @@ dr(te, Ds, Pi(Ut, {
3600
3600
  toString: dl
3601
3601
  }));
3602
3602
  function hl() {
3603
- return `#${nn(this.r)}${nn(this.g)}${nn(this.b)}`;
3603
+ return `#${rn(this.r)}${rn(this.g)}${rn(this.b)}`;
3604
3604
  }
3605
3605
  function J2() {
3606
- return `#${nn(this.r)}${nn(this.g)}${nn(this.b)}${nn((isNaN(this.opacity) ? 1 : this.opacity) * 255)}`;
3606
+ return `#${rn(this.r)}${rn(this.g)}${rn(this.b)}${rn((isNaN(this.opacity) ? 1 : this.opacity) * 255)}`;
3607
3607
  }
3608
3608
  function dl() {
3609
3609
  const t = Bs(this.opacity);
3610
- return `${t === 1 ? "rgb(" : "rgba("}${gn(this.r)}, ${gn(this.g)}, ${gn(this.b)}${t === 1 ? ")" : `, ${t})`}`;
3610
+ return `${t === 1 ? "rgb(" : "rgba("}${mn(this.r)}, ${mn(this.g)}, ${mn(this.b)}${t === 1 ? ")" : `, ${t})`}`;
3611
3611
  }
3612
3612
  function Bs(t) {
3613
3613
  return isNaN(t) ? 1 : Math.max(0, Math.min(1, t));
3614
3614
  }
3615
- function gn(t) {
3615
+ function mn(t) {
3616
3616
  return Math.max(0, Math.min(255, Math.round(t) || 0));
3617
3617
  }
3618
- function nn(t) {
3619
- return t = gn(t), (t < 16 ? "0" : "") + t.toString(16);
3618
+ function rn(t) {
3619
+ return t = mn(t), (t < 16 ? "0" : "") + t.toString(16);
3620
3620
  }
3621
3621
  function pl(t, e, n, r) {
3622
3622
  return r <= 0 ? t = e = n = NaN : n <= 0 || n >= 1 ? t = e = NaN : e <= 0 && (t = NaN), new Ve(t, e, n, r);
@@ -3624,7 +3624,7 @@ function pl(t, e, n, r) {
3624
3624
  function g0(t) {
3625
3625
  if (t instanceof Ve)
3626
3626
  return new Ve(t.h, t.s, t.l, t.opacity);
3627
- if (t instanceof Ut || (t = It(t)), !t)
3627
+ if (t instanceof Ut || (t = Tt(t)), !t)
3628
3628
  return new Ve();
3629
3629
  if (t instanceof Ve)
3630
3630
  return t;
@@ -3643,7 +3643,7 @@ dr(Ve, xa, Pi(Ut, {
3643
3643
  return t = t == null ? ar : Math.pow(ar, t), new Ve(this.h, this.s, this.l * t, this.opacity);
3644
3644
  },
3645
3645
  darker(t) {
3646
- return t = t == null ? Sn : Math.pow(Sn, t), new Ve(this.h, this.s, this.l * t, this.opacity);
3646
+ return t = t == null ? Dn : Math.pow(Dn, t), new Ve(this.h, this.s, this.l * t, this.opacity);
3647
3647
  },
3648
3648
  rgb() {
3649
3649
  var t = this.h % 360 + (this.h < 0) * 360, e = isNaN(t) || isNaN(this.s) ? 0 : this.s, n = this.l, r = n + (n < 0.5 ? n : 1 - n) * e, i = 2 * n - r;
@@ -3752,24 +3752,24 @@ dr(gt, wa, Pi(Ut, {
3752
3752
  }));
3753
3753
  var S0 = -0.14861, Mc = 1.78277, Pc = -0.29227, oo = -0.90649, ni = 1.97294, ml = ni * oo, Al = ni * Mc, yl = Mc * Pc - oo * S0;
3754
3754
  function eA(t) {
3755
- if (t instanceof mn)
3756
- return new mn(t.h, t.s, t.l, t.opacity);
3755
+ if (t instanceof An)
3756
+ return new An(t.h, t.s, t.l, t.opacity);
3757
3757
  t instanceof te || (t = Ic(t));
3758
3758
  var e = t.r / 255, n = t.g / 255, r = t.b / 255, i = (yl * r + ml * e - Al * n) / (yl + ml - Al), s = r - i, o = (ni * (n - i) - Pc * s) / oo, a = Math.sqrt(o * o + s * s) / (ni * i * (1 - i)), c = a ? Math.atan2(o, s) * A0 - 120 : NaN;
3759
- return new mn(c < 0 ? c + 360 : c, a, i, t.opacity);
3759
+ return new An(c < 0 ? c + 360 : c, a, i, t.opacity);
3760
3760
  }
3761
3761
  function va(t, e, n, r) {
3762
- return arguments.length === 1 ? eA(t) : new mn(t, e, n, r ?? 1);
3762
+ return arguments.length === 1 ? eA(t) : new An(t, e, n, r ?? 1);
3763
3763
  }
3764
- function mn(t, e, n, r) {
3764
+ function An(t, e, n, r) {
3765
3765
  this.h = +t, this.s = +e, this.l = +n, this.opacity = +r;
3766
3766
  }
3767
- dr(mn, va, Pi(Ut, {
3767
+ dr(An, va, Pi(Ut, {
3768
3768
  brighter(t) {
3769
- return t = t == null ? ar : Math.pow(ar, t), new mn(this.h, this.s, this.l * t, this.opacity);
3769
+ return t = t == null ? ar : Math.pow(ar, t), new An(this.h, this.s, this.l * t, this.opacity);
3770
3770
  },
3771
3771
  darker(t) {
3772
- return t = t == null ? Sn : Math.pow(Sn, t), new mn(this.h, this.s, this.l * t, this.opacity);
3772
+ return t = t == null ? Dn : Math.pow(Dn, t), new An(this.h, this.s, this.l * t, this.opacity);
3773
3773
  },
3774
3774
  rgb() {
3775
3775
  var t = isNaN(this.h) ? 0 : (this.h + 120) * m0, e = +this.l, n = isNaN(this.s) ? 0 : this.s * e * (1 - e), r = Math.cos(t), i = Math.sin(t);
@@ -3916,7 +3916,7 @@ function L0(t, e) {
3916
3916
  }
3917
3917
  function Gt(t, e) {
3918
3918
  var n = typeof e, r;
3919
- return e == null || n === "boolean" ? ao(e) : (n === "number" ? He : n === "string" ? (r = It(e)) ? (e = r, Ca) : L0 : e instanceof It ? Ca : e instanceof Date ? R0 : M0(e) ? Rc : Array.isArray(e) ? P0 : typeof e.valueOf != "function" && typeof e.toString != "function" || isNaN(e) ? k0 : He)(t, e);
3919
+ return e == null || n === "boolean" ? ao(e) : (n === "number" ? He : n === "string" ? (r = Tt(e)) ? (e = r, Ca) : L0 : e instanceof Tt ? Ca : e instanceof Date ? R0 : M0(e) ? Rc : Array.isArray(e) ? P0 : typeof e.valueOf != "function" && typeof e.toString != "function" || isNaN(e) ? k0 : He)(t, e);
3920
3920
  }
3921
3921
  function cA(t) {
3922
3922
  var e = t.length;
@@ -4153,7 +4153,7 @@ function IA(t, e, n) {
4153
4153
  for (t[r] < t[0] && (t = t.slice().reverse(), e = e.slice().reverse()); ++o < r; )
4154
4154
  i[o] = Ba(t[o], t[o + 1]), s[o] = n(e[o], e[o + 1]);
4155
4155
  return function(a) {
4156
- var c = St(t, a, 1, r) - 1;
4156
+ var c = Et(t, a, 1, r) - 1;
4157
4157
  return s[c](i[c](a));
4158
4158
  };
4159
4159
  }
@@ -4191,8 +4191,8 @@ function H0() {
4191
4191
  return uo()(ve, ve);
4192
4192
  }
4193
4193
  function V0(t, e, n, r) {
4194
- var i = bn(t, e, n), s;
4195
- switch (r = Bt(r ?? ",f"), r.type) {
4194
+ var i = wn(t, e, n), s;
4195
+ switch (r = Dt(r ?? ",f"), r.type) {
4196
4196
  case "s": {
4197
4197
  var o = Math.max(Math.abs(t), Math.abs(e));
4198
4198
  return r.precision == null && !isNaN(s = Pf(i, o)) && (r.precision = s), hc(r, o);
@@ -4213,7 +4213,7 @@ function V0(t, e, n, r) {
4213
4213
  }
4214
4214
  return ue(r);
4215
4215
  }
4216
- function Pn(t) {
4216
+ function Rn(t) {
4217
4217
  var e = t.domain;
4218
4218
  return t.ticks = function(n) {
4219
4219
  var r = e();
@@ -4242,7 +4242,7 @@ function Q0() {
4242
4242
  var t = H0();
4243
4243
  return t.copy = function() {
4244
4244
  return ki(t, Q0());
4245
- }, rt.apply(t, arguments), Pn(t);
4245
+ }, rt.apply(t, arguments), Rn(t);
4246
4246
  }
4247
4247
  function W0(t) {
4248
4248
  var e;
@@ -4255,7 +4255,7 @@ function W0(t) {
4255
4255
  return arguments.length ? (e = r, n) : e;
4256
4256
  }, n.copy = function() {
4257
4257
  return W0(t).unknown(e);
4258
- }, t = arguments.length ? Array.from(t, Da) : [0, 1], Pn(n);
4258
+ }, t = arguments.length ? Array.from(t, Da) : [0, 1], Rn(n);
4259
4259
  }
4260
4260
  function Y0(t, e) {
4261
4261
  t = t.slice();
@@ -4326,7 +4326,7 @@ function Lc(t) {
4326
4326
  A = ys(h, p, Math.min(p - h, m)).map(s);
4327
4327
  return l ? A.reverse() : A;
4328
4328
  }, e.tickFormat = (a, c) => {
4329
- if (a == null && (a = 10), c == null && (c = r === 10 ? "s" : ","), typeof c != "function" && (!(r % 1) && (c = Bt(c)).precision == null && (c.trim = !0), c = ue(c)), a === 1 / 0)
4329
+ if (a == null && (a = 10), c == null && (c = r === 10 ? "s" : ","), typeof c != "function" && (!(r % 1) && (c = Dt(c)).precision == null && (c.trim = !0), c = ue(c)), a === 1 / 0)
4330
4330
  return c;
4331
4331
  const u = Math.max(1, r * a / e.ticks().length);
4332
4332
  return (f) => {
@@ -4356,7 +4356,7 @@ function zc(t) {
4356
4356
  var e = 1, n = t(Sl(e), Dl(e));
4357
4357
  return n.constant = function(r) {
4358
4358
  return arguments.length ? t(Sl(e = +r), Dl(e)) : e;
4359
- }, Pn(n);
4359
+ }, Rn(n);
4360
4360
  }
4361
4361
  function j0() {
4362
4362
  var t = zc(uo());
@@ -4382,7 +4382,7 @@ function Nc(t) {
4382
4382
  }
4383
4383
  return e.exponent = function(i) {
4384
4384
  return arguments.length ? (n = +i, r()) : n;
4385
- }, Pn(e);
4385
+ }, Rn(e);
4386
4386
  }
4387
4387
  function Uc() {
4388
4388
  var t = Nc(uo());
@@ -4402,7 +4402,7 @@ function X0() {
4402
4402
  return s;
4403
4403
  }
4404
4404
  function s(o) {
4405
- return o == null || isNaN(o = +o) ? r : e[St(n, o)];
4405
+ return o == null || isNaN(o = +o) ? r : e[Et(n, o)];
4406
4406
  }
4407
4407
  return s.invertExtent = function(o) {
4408
4408
  var a = e.indexOf(o);
@@ -4430,7 +4430,7 @@ function X0() {
4430
4430
  function Z0() {
4431
4431
  var t = 0, e = 1, n = 1, r = [0.5], i = [0, 1], s;
4432
4432
  function o(c) {
4433
- return c != null && c <= c ? i[St(r, c, 0, n)] : s;
4433
+ return c != null && c <= c ? i[Et(r, c, 0, n)] : s;
4434
4434
  }
4435
4435
  function a() {
4436
4436
  var c = -1;
@@ -4451,12 +4451,12 @@ function Z0() {
4451
4451
  return r.slice();
4452
4452
  }, o.copy = function() {
4453
4453
  return Z0().domain([t, e]).range(i).unknown(s);
4454
- }, rt.apply(Pn(o), arguments);
4454
+ }, rt.apply(Rn(o), arguments);
4455
4455
  }
4456
4456
  function K0() {
4457
4457
  var t = [0.5], e = [0, 1], n, r = 1;
4458
4458
  function i(s) {
4459
- return s != null && s <= s ? e[St(t, s, 0, r)] : n;
4459
+ return s != null && s <= s ? e[Et(t, s, 0, r)] : n;
4460
4460
  }
4461
4461
  return i.domain = function(s) {
4462
4462
  return arguments.length ? (t = Array.from(s), r = Math.min(t.length, e.length - 1), i) : t.slice();
@@ -4499,10 +4499,10 @@ function Gc(t, e, n, r, i, s, o, a, c, u) {
4499
4499
  }, f;
4500
4500
  }
4501
4501
  function HA() {
4502
- return rt.apply(Gc(Bg, Fg, Ft, Ur, Si, dn, mc, gc, Et, vc).domain([new Date(2e3, 0, 1), new Date(2e3, 0, 2)]), arguments);
4502
+ return rt.apply(Gc(Bg, Fg, Bt, Ur, Si, pn, mc, gc, Ct, vc).domain([new Date(2e3, 0, 1), new Date(2e3, 0, 2)]), arguments);
4503
4503
  }
4504
4504
  function VA() {
4505
- return rt.apply(Gc(Sg, Dg, Tt, Gr, Di, pn, xc, yc, Et, Cc).domain([Date.UTC(2e3, 0, 1), Date.UTC(2e3, 0, 2)]), arguments);
4505
+ return rt.apply(Gc(Sg, Dg, Ft, Gr, Di, gn, xc, yc, Ct, Cc).domain([Date.UTC(2e3, 0, 1), Date.UTC(2e3, 0, 2)]), arguments);
4506
4506
  }
4507
4507
  function lo() {
4508
4508
  var t = 0, e = 1, n, r, i, s, o = ve, a = !1, c;
@@ -4532,7 +4532,7 @@ function Ht(t, e) {
4532
4532
  return e.domain(t.domain()).interpolator(t.interpolator()).clamp(t.clamp()).unknown(t.unknown());
4533
4533
  }
4534
4534
  function Hc() {
4535
- var t = Pn(lo()(ve));
4535
+ var t = Rn(lo()(ve));
4536
4536
  return t.copy = function() {
4537
4537
  return Ht(t, Hc());
4538
4538
  }, Nt.apply(t, arguments);
@@ -4583,7 +4583,7 @@ function fo() {
4583
4583
  };
4584
4584
  }
4585
4585
  function _0() {
4586
- var t = Pn(fo()(ve));
4586
+ var t = Rn(fo()(ve));
4587
4587
  return t.copy = function() {
4588
4588
  return Ht(t, _0());
4589
4589
  }, Nt.apply(t, arguments);
@@ -4613,7 +4613,7 @@ function Wc(t, e, n) {
4613
4613
  const r = t - e + n * 2;
4614
4614
  return t ? r > 0 ? r : 1 : 0;
4615
4615
  }
4616
- const YA = "identity", cr = "linear", Mt = "log", Li = "pow", Oi = "sqrt", ho = "symlog", th = "time", nh = "utc", et = "sequential", pr = "diverging", Fa = "quantile", rh = "quantize", ih = "threshold", Yc = "ordinal", Ta = "point", sh = "band", jc = "bin-ordinal", $ = "continuous", zi = "discrete", Ni = "discretizing", Le = "interpolating", oh = "temporal";
4616
+ const YA = "identity", cr = "linear", It = "log", Li = "pow", Oi = "sqrt", ho = "symlog", th = "time", nh = "utc", et = "sequential", pr = "diverging", Fa = "quantile", rh = "quantize", ih = "threshold", Yc = "ordinal", Ta = "point", sh = "band", jc = "bin-ordinal", $ = "continuous", zi = "discrete", Ni = "discretizing", Le = "interpolating", oh = "temporal";
4617
4617
  function jA(t) {
4618
4618
  return function(e) {
4619
4619
  let n = e[0], r = e[1], i;
@@ -4667,7 +4667,7 @@ function Xc() {
4667
4667
  const h = r[1] < r[0], p = h ? n().reverse() : n(), d = p.length - 1;
4668
4668
  let g = +l[0], m = +l[1], A, y, b;
4669
4669
  if (!(g !== g || m !== m) && (m < g && (b = g, g = m, m = b), !(m < p[0] || g > r[1 - h])))
4670
- return A = Math.max(0, St(p, g) - 1), y = g === m ? A : St(p, m) - 1, g - p[A] > s + 1e-10 && ++A, h && (b = A, A = d - y, y = d - b), A > y ? void 0 : e().slice(A, y + 1);
4670
+ return A = Math.max(0, Et(p, g) - 1), y = g === m ? A : Et(p, m) - 1, g - p[A] > s + 1e-10 && ++A, h && (b = A, A = d - y, y = d - b), A > y ? void 0 : e().slice(A, y + 1);
4671
4671
  }, t.invert = function(l) {
4672
4672
  const h = t.invertRange([l, l]);
4673
4673
  return h && h[0];
@@ -4692,7 +4692,7 @@ const JA = Array.prototype.slice;
4692
4692
  function ch() {
4693
4693
  let t = [], e = [];
4694
4694
  function n(r) {
4695
- return r == null || r !== r ? void 0 : e[(St(t, r) - 1) % e.length];
4695
+ return r == null || r !== r ? void 0 : e[(Et(t, r) - 1) % e.length];
4696
4696
  }
4697
4697
  return n.domain = function(r) {
4698
4698
  return arguments.length ? (t = qA(r), n) : t.slice();
@@ -4717,7 +4717,7 @@ function U(t, e, n) {
4717
4717
  }
4718
4718
  U(YA, W0);
4719
4719
  U(cr, Q0, $);
4720
- U(Mt, Oc, [$, Mt]);
4720
+ U(It, Oc, [$, It]);
4721
4721
  U(Li, Uc, $);
4722
4722
  U(Oi, NA, $);
4723
4723
  U(ho, j0, $);
@@ -4725,12 +4725,12 @@ U(th, HA, [$, oh]);
4725
4725
  U(nh, VA, [$, oh]);
4726
4726
  U(et, Hc, [$, Le]);
4727
4727
  U("".concat(et, "-").concat(cr), Hc, [$, Le]);
4728
- U("".concat(et, "-").concat(Mt), q0, [$, Le, Mt]);
4728
+ U("".concat(et, "-").concat(It), q0, [$, Le, It]);
4729
4729
  U("".concat(et, "-").concat(Li), Vc, [$, Le]);
4730
4730
  U("".concat(et, "-").concat(Oi), QA, [$, Le]);
4731
4731
  U("".concat(et, "-").concat(ho), J0, [$, Le]);
4732
4732
  U("".concat(pr, "-").concat(cr), _0, [$, Le]);
4733
- U("".concat(pr, "-").concat(Mt), $0, [$, Le, Mt]);
4733
+ U("".concat(pr, "-").concat(It), $0, [$, Le, It]);
4734
4734
  U("".concat(pr, "-").concat(Li), Qc, [$, Le]);
4735
4735
  U("".concat(pr, "-").concat(Oi), WA, [$, Le]);
4736
4736
  U("".concat(pr, "-").concat(ho), eh, [$, Le]);
@@ -4742,7 +4742,7 @@ U(Yc, Tc, zi);
4742
4742
  U(sh, Xc, zi);
4743
4743
  U(Ta, ZA, zi);
4744
4744
  function $A(t) {
4745
- return en(Ts, t);
4745
+ return tn(Ts, t);
4746
4746
  }
4747
4747
  function Ui(t, e) {
4748
4748
  const n = Ts[t];
@@ -4751,14 +4751,14 @@ function Ui(t, e) {
4751
4751
  function ae(t) {
4752
4752
  return Ui(t, $);
4753
4753
  }
4754
- function At(t) {
4754
+ function Mt(t) {
4755
4755
  return Ui(t, zi);
4756
4756
  }
4757
- function Gn(t) {
4757
+ function en(t) {
4758
4758
  return Ui(t, Ni);
4759
4759
  }
4760
4760
  function uh(t) {
4761
- return Ui(t, Mt);
4761
+ return Ui(t, It);
4762
4762
  }
4763
4763
  function po(t) {
4764
4764
  return Ui(t, Le);
@@ -4894,7 +4894,7 @@ function oy(t, e) {
4894
4894
  for (const [r, i] of Object.entries(e)) {
4895
4895
  if (!i)
4896
4896
  continue;
4897
- const s = ((Ce(i) && i.resolutionChannel) ?? (yn(r) && r)) || void 0, o = t.unitView.getScaleResolution(s);
4897
+ const s = ((Ce(i) && i.resolutionChannel) ?? (xn(r) && r)) || void 0, o = t.unitView.getScaleResolution(s);
4898
4898
  n[r] = ay(
4899
4899
  e[r],
4900
4900
  o == null ? void 0 : o.getScale(),
@@ -4917,7 +4917,7 @@ function ay(t, e, n, r) {
4917
4917
  }, i.accessor = n, i.constant = n.constant;
4918
4918
  else {
4919
4919
  if (!e)
4920
- if (!yn(r))
4920
+ if (!xn(r))
4921
4921
  e = mo();
4922
4922
  else
4923
4923
  throw new Error(
@@ -4926,7 +4926,7 @@ function ay(t, e, n, r) {
4926
4926
  )}`
4927
4927
  );
4928
4928
  if (i = /** @type {Encoder} */
4929
- (s) => e(n(s)), At(e.type)) {
4929
+ (s) => e(n(s)), Mt(e.type)) {
4930
4930
  const s = sy();
4931
4931
  s.addAll(e.domain()), i.indexer = s;
4932
4932
  }
@@ -4951,14 +4951,14 @@ function ay(t, e, n, r) {
4951
4951
  function We(t) {
4952
4952
  return t && "value" in t;
4953
4953
  }
4954
- function Rn(t) {
4954
+ function kn(t) {
4955
4955
  return t && "field" in t;
4956
4956
  }
4957
4957
  function Gi(t) {
4958
4958
  return t && "datum" in t;
4959
4959
  }
4960
4960
  function Ce(t) {
4961
- return Rn(t) || Gi(t) || Kc(t) || dh(t);
4961
+ return kn(t) || Gi(t) || Kc(t) || dh(t);
4962
4962
  }
4963
4963
  function Ia(t, e) {
4964
4964
  const n = t.mark.encoding[e];
@@ -4997,16 +4997,16 @@ function ly(t) {
4997
4997
  return e;
4998
4998
  throw new Error(`${t} has no secondary channel!`);
4999
4999
  }
5000
- function Dn(t) {
5000
+ function Bn(t) {
5001
5001
  return gh[t] ?? t;
5002
5002
  }
5003
- function An(t) {
5004
- return ["color", "fill", "stroke"].includes(Dn(t));
5003
+ function yn(t) {
5004
+ return ["color", "fill", "stroke"].includes(Bn(t));
5005
5005
  }
5006
5006
  function Ao(t) {
5007
5007
  return ["shape", "squeeze"].includes(t);
5008
5008
  }
5009
- function yn(t) {
5009
+ function xn(t) {
5010
5010
  return [
5011
5011
  "x",
5012
5012
  "y",
@@ -5075,7 +5075,7 @@ class hy {
5075
5075
  */
5076
5076
  constructor() {
5077
5077
  this.accessorCreators = [], this.register((e) => {
5078
- if (Rn(e))
5078
+ if (kn(e))
5079
5079
  try {
5080
5080
  const n = (
5081
5081
  /** @type {Accessor} */
@@ -5333,12 +5333,12 @@ const Ma = function() {
5333
5333
  return function() {
5334
5334
  return t = t || (typeof document < "u" && document.createElement ? document.createElement("canvas").getContext("2d") : null), t;
5335
5335
  };
5336
- }(), Tl = 6406, Ke = 6407, j = 6408, Il = 6409, Ml = 6410, Sr = 6402, Pl = 34041, Ms = 33071, Zy = 9728, Ky = 9729, xt = 3553, yt = 34067, Pt = 32879, Rt = 35866, xo = 34069, qy = 34070, Jy = 34071, _y = 34072, $y = 34073, ex = 34074, Pa = 10241, Ra = 10240, Ps = 10242, Rs = 10243, Rl = 32882, tx = 33082, nx = 33083, rx = 33084, ix = 33085, su = 3317, Bh = 3314, Fh = 32878, Th = 3316, Ih = 3315, Mh = 32877, sx = 37443, ox = 37441, ax = 37440, cx = 33321, ux = 36756, lx = 33325, fx = 33326, hx = 33330, dx = 33329, px = 33338, gx = 33337, mx = 33340, Ax = 33339, yx = 33323, xx = 36757, bx = 33327, wx = 33328, vx = 33336, Cx = 33335, Ex = 33332, Sx = 33331, Dx = 33334, Bx = 33333, Fx = 32849, Tx = 35905, Ix = 36194, Mx = 36758, Px = 35898, Rx = 35901, kx = 34843, Lx = 34837, Ox = 36221, zx = 36239, Nx = 36215, Ux = 36233, Gx = 36209, Hx = 36227, Vx = 32856, Qx = 35907, Wx = 36759, Yx = 32855, jx = 32854, Xx = 32857, Zx = 34842, Kx = 34836, qx = 36220, Jx = 36238, _x = 36975, $x = 36214, e3 = 36232, t3 = 36226, n3 = 36208, r3 = 33189, i3 = 33190, s3 = 36012, o3 = 36013, a3 = 35056, wt = 5120, Y = 5121, rs = 5122, Ln = 5123, is = 5124, qt = 5125, fe = 5126, kl = 32819, Ll = 32820, Ol = 33635, Ue = 5131, Dr = 36193, $o = 33640, c3 = 35899, u3 = 35902, l3 = 36269, f3 = 34042, ss = 33319, On = 33320, os = 6403, zn = 36244, Nn = 36248, Jt = 36249;
5336
+ }(), Tl = 6406, Ke = 6407, j = 6408, Il = 6409, Ml = 6410, Sr = 6402, Pl = 34041, Ms = 33071, Zy = 9728, Ky = 9729, yt = 3553, At = 34067, Pt = 32879, Rt = 35866, xo = 34069, qy = 34070, Jy = 34071, _y = 34072, $y = 34073, ex = 34074, Pa = 10241, Ra = 10240, Ps = 10242, Rs = 10243, Rl = 32882, tx = 33082, nx = 33083, rx = 33084, ix = 33085, su = 3317, Bh = 3314, Fh = 32878, Th = 3316, Ih = 3315, Mh = 32877, sx = 37443, ox = 37441, ax = 37440, cx = 33321, ux = 36756, lx = 33325, fx = 33326, hx = 33330, dx = 33329, px = 33338, gx = 33337, mx = 33340, Ax = 33339, yx = 33323, xx = 36757, bx = 33327, wx = 33328, vx = 33336, Cx = 33335, Ex = 33332, Sx = 33331, Dx = 33334, Bx = 33333, Fx = 32849, Tx = 35905, Ix = 36194, Mx = 36758, Px = 35898, Rx = 35901, kx = 34843, Lx = 34837, Ox = 36221, zx = 36239, Nx = 36215, Ux = 36233, Gx = 36209, Hx = 36227, Vx = 32856, Qx = 35907, Wx = 36759, Yx = 32855, jx = 32854, Xx = 32857, Zx = 34842, Kx = 34836, qx = 36220, Jx = 36238, _x = 36975, $x = 36214, e3 = 36232, t3 = 36226, n3 = 36208, r3 = 33189, i3 = 33190, s3 = 36012, o3 = 36013, a3 = 35056, bt = 5120, Y = 5121, rs = 5122, On = 5123, is = 5124, qt = 5125, fe = 5126, kl = 32819, Ll = 32820, Ol = 33635, Ue = 5131, Dr = 36193, $o = 33640, c3 = 35899, u3 = 35902, l3 = 36269, f3 = 34042, ss = 33319, zn = 33320, os = 6403, Nn = 36244, Un = 36248, Jt = 36249;
5337
5337
  let ea;
5338
5338
  function bo(t) {
5339
5339
  if (!ea) {
5340
5340
  const e = {};
5341
- e[Tl] = { textureFormat: Tl, colorRenderable: !0, textureFilterable: !0, bytesPerElement: [1, 2, 2, 4], type: [Y, Ue, Dr, fe] }, e[Il] = { textureFormat: Il, colorRenderable: !0, textureFilterable: !0, bytesPerElement: [1, 2, 2, 4], type: [Y, Ue, Dr, fe] }, e[Ml] = { textureFormat: Ml, colorRenderable: !0, textureFilterable: !0, bytesPerElement: [2, 4, 4, 8], type: [Y, Ue, Dr, fe] }, e[Ke] = { textureFormat: Ke, colorRenderable: !0, textureFilterable: !0, bytesPerElement: [3, 6, 6, 12, 2], type: [Y, Ue, Dr, fe, Ol] }, e[j] = { textureFormat: j, colorRenderable: !0, textureFilterable: !0, bytesPerElement: [4, 8, 8, 16, 2, 2], type: [Y, Ue, Dr, fe, kl, Ll] }, e[Sr] = { textureFormat: Sr, colorRenderable: !0, textureFilterable: !1, bytesPerElement: [2, 4], type: [qt, Ln] }, e[cx] = { textureFormat: os, colorRenderable: !0, textureFilterable: !0, bytesPerElement: [1], type: [Y] }, e[ux] = { textureFormat: os, colorRenderable: !1, textureFilterable: !0, bytesPerElement: [1], type: [wt] }, e[lx] = { textureFormat: os, colorRenderable: !1, textureFilterable: !0, bytesPerElement: [4, 2], type: [fe, Ue] }, e[fx] = { textureFormat: os, colorRenderable: !1, textureFilterable: !1, bytesPerElement: [4], type: [fe] }, e[hx] = { textureFormat: zn, colorRenderable: !0, textureFilterable: !1, bytesPerElement: [1], type: [Y] }, e[dx] = { textureFormat: zn, colorRenderable: !0, textureFilterable: !1, bytesPerElement: [1], type: [wt] }, e[Ex] = { textureFormat: zn, colorRenderable: !0, textureFilterable: !1, bytesPerElement: [2], type: [Ln] }, e[Sx] = { textureFormat: zn, colorRenderable: !0, textureFilterable: !1, bytesPerElement: [2], type: [rs] }, e[Dx] = { textureFormat: zn, colorRenderable: !0, textureFilterable: !1, bytesPerElement: [4], type: [qt] }, e[Bx] = { textureFormat: zn, colorRenderable: !0, textureFilterable: !1, bytesPerElement: [4], type: [is] }, e[yx] = { textureFormat: ss, colorRenderable: !0, textureFilterable: !0, bytesPerElement: [2], type: [Y] }, e[xx] = { textureFormat: ss, colorRenderable: !1, textureFilterable: !0, bytesPerElement: [2], type: [wt] }, e[bx] = { textureFormat: ss, colorRenderable: !1, textureFilterable: !0, bytesPerElement: [8, 4], type: [fe, Ue] }, e[wx] = { textureFormat: ss, colorRenderable: !1, textureFilterable: !1, bytesPerElement: [8], type: [fe] }, e[vx] = { textureFormat: On, colorRenderable: !0, textureFilterable: !1, bytesPerElement: [2], type: [Y] }, e[Cx] = { textureFormat: On, colorRenderable: !0, textureFilterable: !1, bytesPerElement: [2], type: [wt] }, e[px] = { textureFormat: On, colorRenderable: !0, textureFilterable: !1, bytesPerElement: [4], type: [Ln] }, e[gx] = { textureFormat: On, colorRenderable: !0, textureFilterable: !1, bytesPerElement: [4], type: [rs] }, e[mx] = { textureFormat: On, colorRenderable: !0, textureFilterable: !1, bytesPerElement: [8], type: [qt] }, e[Ax] = { textureFormat: On, colorRenderable: !0, textureFilterable: !1, bytesPerElement: [8], type: [is] }, e[Fx] = { textureFormat: Ke, colorRenderable: !0, textureFilterable: !0, bytesPerElement: [3], type: [Y] }, e[Tx] = { textureFormat: Ke, colorRenderable: !1, textureFilterable: !0, bytesPerElement: [3], type: [Y] }, e[Ix] = { textureFormat: Ke, colorRenderable: !0, textureFilterable: !0, bytesPerElement: [3, 2], type: [Y, Ol] }, e[Mx] = { textureFormat: Ke, colorRenderable: !1, textureFilterable: !0, bytesPerElement: [3], type: [wt] }, e[Px] = { textureFormat: Ke, colorRenderable: !1, textureFilterable: !0, bytesPerElement: [12, 6, 4], type: [fe, Ue, c3] }, e[Rx] = { textureFormat: Ke, colorRenderable: !1, textureFilterable: !0, bytesPerElement: [12, 6, 4], type: [fe, Ue, u3] }, e[kx] = { textureFormat: Ke, colorRenderable: !1, textureFilterable: !0, bytesPerElement: [12, 6], type: [fe, Ue] }, e[Lx] = { textureFormat: Ke, colorRenderable: !1, textureFilterable: !1, bytesPerElement: [12], type: [fe] }, e[Ox] = { textureFormat: Nn, colorRenderable: !1, textureFilterable: !1, bytesPerElement: [3], type: [Y] }, e[zx] = { textureFormat: Nn, colorRenderable: !1, textureFilterable: !1, bytesPerElement: [3], type: [wt] }, e[Nx] = { textureFormat: Nn, colorRenderable: !1, textureFilterable: !1, bytesPerElement: [6], type: [Ln] }, e[Ux] = { textureFormat: Nn, colorRenderable: !1, textureFilterable: !1, bytesPerElement: [6], type: [rs] }, e[Gx] = { textureFormat: Nn, colorRenderable: !1, textureFilterable: !1, bytesPerElement: [12], type: [qt] }, e[Hx] = { textureFormat: Nn, colorRenderable: !1, textureFilterable: !1, bytesPerElement: [12], type: [is] }, e[Vx] = { textureFormat: j, colorRenderable: !0, textureFilterable: !0, bytesPerElement: [4], type: [Y] }, e[Qx] = { textureFormat: j, colorRenderable: !0, textureFilterable: !0, bytesPerElement: [4], type: [Y] }, e[Wx] = { textureFormat: j, colorRenderable: !1, textureFilterable: !0, bytesPerElement: [4], type: [wt] }, e[Yx] = { textureFormat: j, colorRenderable: !0, textureFilterable: !0, bytesPerElement: [4, 2, 4], type: [Y, Ll, $o] }, e[jx] = { textureFormat: j, colorRenderable: !0, textureFilterable: !0, bytesPerElement: [4, 2], type: [Y, kl] }, e[Xx] = { textureFormat: j, colorRenderable: !0, textureFilterable: !0, bytesPerElement: [4], type: [$o] }, e[Zx] = { textureFormat: j, colorRenderable: !1, textureFilterable: !0, bytesPerElement: [16, 8], type: [fe, Ue] }, e[Kx] = { textureFormat: j, colorRenderable: !1, textureFilterable: !1, bytesPerElement: [16], type: [fe] }, e[qx] = { textureFormat: Jt, colorRenderable: !0, textureFilterable: !1, bytesPerElement: [4], type: [Y] }, e[Jx] = { textureFormat: Jt, colorRenderable: !0, textureFilterable: !1, bytesPerElement: [4], type: [wt] }, e[_x] = { textureFormat: Jt, colorRenderable: !0, textureFilterable: !1, bytesPerElement: [4], type: [$o] }, e[$x] = { textureFormat: Jt, colorRenderable: !0, textureFilterable: !1, bytesPerElement: [8], type: [Ln] }, e[e3] = { textureFormat: Jt, colorRenderable: !0, textureFilterable: !1, bytesPerElement: [8], type: [rs] }, e[t3] = { textureFormat: Jt, colorRenderable: !0, textureFilterable: !1, bytesPerElement: [16], type: [is] }, e[n3] = { textureFormat: Jt, colorRenderable: !0, textureFilterable: !1, bytesPerElement: [16], type: [qt] }, e[r3] = { textureFormat: Sr, colorRenderable: !0, textureFilterable: !1, bytesPerElement: [2, 4], type: [Ln, qt] }, e[i3] = { textureFormat: Sr, colorRenderable: !0, textureFilterable: !1, bytesPerElement: [4], type: [qt] }, e[s3] = { textureFormat: Sr, colorRenderable: !0, textureFilterable: !1, bytesPerElement: [4], type: [fe] }, e[a3] = { textureFormat: Pl, colorRenderable: !0, textureFilterable: !1, bytesPerElement: [4], type: [f3] }, e[o3] = { textureFormat: Pl, colorRenderable: !0, textureFilterable: !1, bytesPerElement: [4], type: [l3] }, Object.keys(e).forEach(function(n) {
5341
+ e[Tl] = { textureFormat: Tl, colorRenderable: !0, textureFilterable: !0, bytesPerElement: [1, 2, 2, 4], type: [Y, Ue, Dr, fe] }, e[Il] = { textureFormat: Il, colorRenderable: !0, textureFilterable: !0, bytesPerElement: [1, 2, 2, 4], type: [Y, Ue, Dr, fe] }, e[Ml] = { textureFormat: Ml, colorRenderable: !0, textureFilterable: !0, bytesPerElement: [2, 4, 4, 8], type: [Y, Ue, Dr, fe] }, e[Ke] = { textureFormat: Ke, colorRenderable: !0, textureFilterable: !0, bytesPerElement: [3, 6, 6, 12, 2], type: [Y, Ue, Dr, fe, Ol] }, e[j] = { textureFormat: j, colorRenderable: !0, textureFilterable: !0, bytesPerElement: [4, 8, 8, 16, 2, 2], type: [Y, Ue, Dr, fe, kl, Ll] }, e[Sr] = { textureFormat: Sr, colorRenderable: !0, textureFilterable: !1, bytesPerElement: [2, 4], type: [qt, On] }, e[cx] = { textureFormat: os, colorRenderable: !0, textureFilterable: !0, bytesPerElement: [1], type: [Y] }, e[ux] = { textureFormat: os, colorRenderable: !1, textureFilterable: !0, bytesPerElement: [1], type: [bt] }, e[lx] = { textureFormat: os, colorRenderable: !1, textureFilterable: !0, bytesPerElement: [4, 2], type: [fe, Ue] }, e[fx] = { textureFormat: os, colorRenderable: !1, textureFilterable: !1, bytesPerElement: [4], type: [fe] }, e[hx] = { textureFormat: Nn, colorRenderable: !0, textureFilterable: !1, bytesPerElement: [1], type: [Y] }, e[dx] = { textureFormat: Nn, colorRenderable: !0, textureFilterable: !1, bytesPerElement: [1], type: [bt] }, e[Ex] = { textureFormat: Nn, colorRenderable: !0, textureFilterable: !1, bytesPerElement: [2], type: [On] }, e[Sx] = { textureFormat: Nn, colorRenderable: !0, textureFilterable: !1, bytesPerElement: [2], type: [rs] }, e[Dx] = { textureFormat: Nn, colorRenderable: !0, textureFilterable: !1, bytesPerElement: [4], type: [qt] }, e[Bx] = { textureFormat: Nn, colorRenderable: !0, textureFilterable: !1, bytesPerElement: [4], type: [is] }, e[yx] = { textureFormat: ss, colorRenderable: !0, textureFilterable: !0, bytesPerElement: [2], type: [Y] }, e[xx] = { textureFormat: ss, colorRenderable: !1, textureFilterable: !0, bytesPerElement: [2], type: [bt] }, e[bx] = { textureFormat: ss, colorRenderable: !1, textureFilterable: !0, bytesPerElement: [8, 4], type: [fe, Ue] }, e[wx] = { textureFormat: ss, colorRenderable: !1, textureFilterable: !1, bytesPerElement: [8], type: [fe] }, e[vx] = { textureFormat: zn, colorRenderable: !0, textureFilterable: !1, bytesPerElement: [2], type: [Y] }, e[Cx] = { textureFormat: zn, colorRenderable: !0, textureFilterable: !1, bytesPerElement: [2], type: [bt] }, e[px] = { textureFormat: zn, colorRenderable: !0, textureFilterable: !1, bytesPerElement: [4], type: [On] }, e[gx] = { textureFormat: zn, colorRenderable: !0, textureFilterable: !1, bytesPerElement: [4], type: [rs] }, e[mx] = { textureFormat: zn, colorRenderable: !0, textureFilterable: !1, bytesPerElement: [8], type: [qt] }, e[Ax] = { textureFormat: zn, colorRenderable: !0, textureFilterable: !1, bytesPerElement: [8], type: [is] }, e[Fx] = { textureFormat: Ke, colorRenderable: !0, textureFilterable: !0, bytesPerElement: [3], type: [Y] }, e[Tx] = { textureFormat: Ke, colorRenderable: !1, textureFilterable: !0, bytesPerElement: [3], type: [Y] }, e[Ix] = { textureFormat: Ke, colorRenderable: !0, textureFilterable: !0, bytesPerElement: [3, 2], type: [Y, Ol] }, e[Mx] = { textureFormat: Ke, colorRenderable: !1, textureFilterable: !0, bytesPerElement: [3], type: [bt] }, e[Px] = { textureFormat: Ke, colorRenderable: !1, textureFilterable: !0, bytesPerElement: [12, 6, 4], type: [fe, Ue, c3] }, e[Rx] = { textureFormat: Ke, colorRenderable: !1, textureFilterable: !0, bytesPerElement: [12, 6, 4], type: [fe, Ue, u3] }, e[kx] = { textureFormat: Ke, colorRenderable: !1, textureFilterable: !0, bytesPerElement: [12, 6], type: [fe, Ue] }, e[Lx] = { textureFormat: Ke, colorRenderable: !1, textureFilterable: !1, bytesPerElement: [12], type: [fe] }, e[Ox] = { textureFormat: Un, colorRenderable: !1, textureFilterable: !1, bytesPerElement: [3], type: [Y] }, e[zx] = { textureFormat: Un, colorRenderable: !1, textureFilterable: !1, bytesPerElement: [3], type: [bt] }, e[Nx] = { textureFormat: Un, colorRenderable: !1, textureFilterable: !1, bytesPerElement: [6], type: [On] }, e[Ux] = { textureFormat: Un, colorRenderable: !1, textureFilterable: !1, bytesPerElement: [6], type: [rs] }, e[Gx] = { textureFormat: Un, colorRenderable: !1, textureFilterable: !1, bytesPerElement: [12], type: [qt] }, e[Hx] = { textureFormat: Un, colorRenderable: !1, textureFilterable: !1, bytesPerElement: [12], type: [is] }, e[Vx] = { textureFormat: j, colorRenderable: !0, textureFilterable: !0, bytesPerElement: [4], type: [Y] }, e[Qx] = { textureFormat: j, colorRenderable: !0, textureFilterable: !0, bytesPerElement: [4], type: [Y] }, e[Wx] = { textureFormat: j, colorRenderable: !1, textureFilterable: !0, bytesPerElement: [4], type: [bt] }, e[Yx] = { textureFormat: j, colorRenderable: !0, textureFilterable: !0, bytesPerElement: [4, 2, 4], type: [Y, Ll, $o] }, e[jx] = { textureFormat: j, colorRenderable: !0, textureFilterable: !0, bytesPerElement: [4, 2], type: [Y, kl] }, e[Xx] = { textureFormat: j, colorRenderable: !0, textureFilterable: !0, bytesPerElement: [4], type: [$o] }, e[Zx] = { textureFormat: j, colorRenderable: !1, textureFilterable: !0, bytesPerElement: [16, 8], type: [fe, Ue] }, e[Kx] = { textureFormat: j, colorRenderable: !1, textureFilterable: !1, bytesPerElement: [16], type: [fe] }, e[qx] = { textureFormat: Jt, colorRenderable: !0, textureFilterable: !1, bytesPerElement: [4], type: [Y] }, e[Jx] = { textureFormat: Jt, colorRenderable: !0, textureFilterable: !1, bytesPerElement: [4], type: [bt] }, e[_x] = { textureFormat: Jt, colorRenderable: !0, textureFilterable: !1, bytesPerElement: [4], type: [$o] }, e[$x] = { textureFormat: Jt, colorRenderable: !0, textureFilterable: !1, bytesPerElement: [8], type: [On] }, e[e3] = { textureFormat: Jt, colorRenderable: !0, textureFilterable: !1, bytesPerElement: [8], type: [rs] }, e[t3] = { textureFormat: Jt, colorRenderable: !0, textureFilterable: !1, bytesPerElement: [16], type: [is] }, e[n3] = { textureFormat: Jt, colorRenderable: !0, textureFilterable: !1, bytesPerElement: [16], type: [qt] }, e[r3] = { textureFormat: Sr, colorRenderable: !0, textureFilterable: !1, bytesPerElement: [2, 4], type: [On, qt] }, e[i3] = { textureFormat: Sr, colorRenderable: !0, textureFilterable: !1, bytesPerElement: [4], type: [qt] }, e[s3] = { textureFormat: Sr, colorRenderable: !0, textureFilterable: !1, bytesPerElement: [4], type: [fe] }, e[a3] = { textureFormat: Pl, colorRenderable: !0, textureFilterable: !1, bytesPerElement: [4], type: [f3] }, e[o3] = { textureFormat: Pl, colorRenderable: !0, textureFilterable: !1, bytesPerElement: [4], type: [l3] }, Object.keys(e).forEach(function(n) {
5342
5342
  const r = e[n];
5343
5343
  r.bytesPerElementMap = {}, r.bytesPerElement.forEach(function(i, s) {
5344
5344
  const o = r.type[s];
@@ -5390,7 +5390,7 @@ function as(t, e, n, r, i) {
5390
5390
  if (i % 1 !== 0)
5391
5391
  throw "can't guess dimensions";
5392
5392
  if (!n && !r) {
5393
- const s = Math.sqrt(i / (e === yt ? 6 : 1));
5393
+ const s = Math.sqrt(i / (e === At ? 6 : 1));
5394
5394
  s % 1 === 0 ? (n = s, r = s) : (n = i, r = 1);
5395
5395
  } else if (r) {
5396
5396
  if (!n && (n = i / r, n % 1))
@@ -5412,7 +5412,7 @@ function g3(t, e, n, r) {
5412
5412
  r.minMag && (n.call(t, e, Pa, r.minMag), n.call(t, e, Ra, r.minMag)), r.min && n.call(t, e, Pa, r.min), r.mag && n.call(t, e, Ra, r.mag), r.wrap && (n.call(t, e, Ps, r.wrap), n.call(t, e, Rs, r.wrap), (e === Pt || By(t, e)) && n.call(t, e, Rl, r.wrap)), r.wrapR && n.call(t, e, Rl, r.wrapR), r.wrapS && n.call(t, e, Ps, r.wrapS), r.wrapT && n.call(t, e, Rs, r.wrapT), r.minLod && n.call(t, e, tx, r.minLod), r.maxLod && n.call(t, e, nx, r.maxLod), r.baseLevel && n.call(t, e, rx, r.baseLevel), r.maxLevel && n.call(t, e, ix, r.maxLevel);
5413
5413
  }
5414
5414
  function kh(t, e, n) {
5415
- const r = n.target || xt;
5415
+ const r = n.target || yt;
5416
5416
  t.bindTexture(r, e), g3(t, r, t.texParameteri, n);
5417
5417
  }
5418
5418
  function m3(t) {
@@ -5420,7 +5420,7 @@ function m3(t) {
5420
5420
  }
5421
5421
  function ka(t, e, n, r, i, s) {
5422
5422
  n = n || Vt.textureOptions, s = s || j;
5423
- const o = n.target || xt;
5423
+ const o = n.target || yt;
5424
5424
  if (r = r || n.width, i = i || n.height, t.bindTexture(o, e), d3(t, r, i, s))
5425
5425
  t.generateMipmap(o);
5426
5426
  else {
@@ -5451,10 +5451,10 @@ function Oa(t, e) {
5451
5451
  }
5452
5452
  function Lh(t, e, n, r) {
5453
5453
  r = r || Vt.textureOptions;
5454
- const i = r.target || xt, s = r.level || 0;
5454
+ const i = r.target || yt, s = r.level || 0;
5455
5455
  let o = n.width, a = n.height;
5456
5456
  const c = r.internalFormat || r.format || j, u = Ar(c), f = r.format || u.format, l = r.type || u.type;
5457
- if (lr(t, r), t.bindTexture(i, e), i === yt) {
5457
+ if (lr(t, r), t.bindTexture(i, e), i === At) {
5458
5458
  const h = n.width, p = n.height;
5459
5459
  let d, g;
5460
5460
  if (h / 6 === p)
@@ -5555,11 +5555,11 @@ function ou(t, e, n) {
5555
5555
  }
5556
5556
  function au(t, e, n) {
5557
5557
  n = n || Vt.textureOptions;
5558
- const r = n.target || xt;
5558
+ const r = n.target || yt;
5559
5559
  if (t.bindTexture(r, e), n.color === !1)
5560
5560
  return;
5561
5561
  const i = m3(n.color);
5562
- if (r === yt)
5562
+ if (r === At)
5563
5563
  for (let s = 0; s < 6; ++s)
5564
5564
  t.texImage2D(xo + s, 0, j, 1, 1, 0, j, Y, i);
5565
5565
  else
@@ -5575,8 +5575,8 @@ function w3(t, e, n, r) {
5575
5575
  const i = n.src;
5576
5576
  if (i.length !== 6)
5577
5577
  throw "there must be 6 urls for a cubemap";
5578
- const s = n.level || 0, o = n.internalFormat || n.format || j, a = Ar(o), c = n.format || a.format, u = n.type || Y, f = n.target || xt;
5579
- if (f !== yt)
5578
+ const s = n.level || 0, o = n.internalFormat || n.format || j, a = Ar(o), c = n.format || a.format, u = n.type || Y, f = n.target || yt;
5579
+ if (f !== At)
5580
5580
  throw "target must be TEXTURE_CUBE_MAP";
5581
5581
  au(t, e, n), n = Object.assign({}, n);
5582
5582
  let l = 6;
@@ -5630,7 +5630,7 @@ function v3(t, e, n, r) {
5630
5630
  }
5631
5631
  function zh(t, e, n, r) {
5632
5632
  r = r || Vt.textureOptions;
5633
- const i = r.target || xt;
5633
+ const i = r.target || yt;
5634
5634
  t.bindTexture(i, e);
5635
5635
  let s = r.width, o = r.height, a = r.depth;
5636
5636
  const c = r.level || 0, u = r.internalFormat || r.format || j, f = Ar(u), l = r.format || f.format, h = r.type || Ph(t, n, f.type);
@@ -5654,7 +5654,7 @@ function zh(t, e, n, r) {
5654
5654
  s && (!o || !a) ? (g = as(t, i, o, a, d / s), o = g.width, a = g.height) : o && (!s || !a) ? (g = as(t, i, s, a, d / o), s = g.width, a = g.height) : (g = as(t, i, s, o, d / a), s = g.width, o = g.height);
5655
5655
  else
5656
5656
  g = as(t, i, s, o, d), s = g.width, o = g.height;
5657
- if (Rh(t), t.pixelStorei(su, r.unpackAlignment || 1), lr(t, r), i === yt) {
5657
+ if (Rh(t), t.pixelStorei(su, r.unpackAlignment || 1), lr(t, r), i === At) {
5658
5658
  const m = p / n.BYTES_PER_ELEMENT, A = d / 6 * m;
5659
5659
  Oa(t, r).forEach((y) => {
5660
5660
  const b = A * y.ndx, w = n.subarray(b, b + A);
@@ -5670,10 +5670,10 @@ function zh(t, e, n, r) {
5670
5670
  };
5671
5671
  }
5672
5672
  function C3(t, e, n) {
5673
- const r = n.target || xt;
5673
+ const r = n.target || yt;
5674
5674
  t.bindTexture(r, e);
5675
5675
  const i = n.level || 0, s = n.internalFormat || n.format || j, o = Ar(s), a = n.format || o.format, c = n.type || o.type;
5676
- if (lr(t, n), r === yt)
5676
+ if (lr(t, n), r === At)
5677
5677
  for (let u = 0; u < 6; ++u)
5678
5678
  t.texImage2D(xo + u, i, s, n.width, n.height, 0, a, c, null);
5679
5679
  else
@@ -5681,10 +5681,10 @@ function C3(t, e, n) {
5681
5681
  }
5682
5682
  function oi(t, e, n) {
5683
5683
  n = n || Hi, e = e || Vt.textureOptions;
5684
- const r = t.createTexture(), i = e.target || xt;
5684
+ const r = t.createTexture(), i = e.target || yt;
5685
5685
  let s = e.width || 1, o = e.height || 1;
5686
5686
  const a = e.internalFormat || j;
5687
- t.bindTexture(i, r), i === yt && (t.texParameteri(i, Ps, Ms), t.texParameteri(i, Rs, Ms));
5687
+ t.bindTexture(i, r), i === At && (t.texParameteri(i, Ps, Ms), t.texParameteri(i, Rs, Ms));
5688
5688
  let c = e.src;
5689
5689
  if (c)
5690
5690
  if (typeof c == "function" && (c = c(t, e)), typeof c == "string")
@@ -5693,19 +5693,19 @@ function oi(t, e, n) {
5693
5693
  const u = zh(t, r, c, e);
5694
5694
  s = u.width, o = u.height;
5695
5695
  } else
5696
- Array.isArray(c) && (typeof c[0] == "string" || Oh(c[0])) ? i === yt ? w3(t, r, e, n) : v3(t, r, e, n) : (Lh(t, r, c, e), s = c.width, o = c.height);
5696
+ Array.isArray(c) && (typeof c[0] == "string" || Oh(c[0])) ? i === At ? w3(t, r, e, n) : v3(t, r, e, n) : (Lh(t, r, c, e), s = c.width, o = c.height);
5697
5697
  else
5698
5698
  C3(t, r, e);
5699
5699
  return si(e) && ka(t, r, e, s, o, a), kh(t, r, e), r;
5700
5700
  }
5701
5701
  function E3(t, e, n, r, i, s) {
5702
5702
  r = r || n.width, i = i || n.height, s = s || n.depth;
5703
- const o = n.target || xt;
5703
+ const o = n.target || yt;
5704
5704
  t.bindTexture(o, e);
5705
5705
  const a = n.level || 0, c = n.internalFormat || n.format || j, u = Ar(c), f = n.format || u.format;
5706
5706
  let l;
5707
5707
  const h = n.src;
5708
- if (h && (ur(h) || Array.isArray(h) && typeof h[0] == "number") ? l = n.type || Ph(t, h, u.type) : l = n.type || u.type, o === yt)
5708
+ if (h && (ur(h) || Array.isArray(h) && typeof h[0] == "number") ? l = n.type || Ph(t, h, u.type) : l = n.type || u.type, o === At)
5709
5709
  for (let p = 0; p < 6; ++p)
5710
5710
  t.texImage2D(xo + p, a, c, r, i, 0, f, l, null);
5711
5711
  else
@@ -6181,14 +6181,14 @@ function ld(t, e) {
6181
6181
  typeof r == "function" ? r(e[n]) : ld(t[n], e[n]);
6182
6182
  }
6183
6183
  }
6184
- function rn(t, ...e) {
6184
+ function sn(t, ...e) {
6185
6185
  const n = t.uniformSetters || t, r = e.length;
6186
6186
  for (let i = 0; i < r; ++i) {
6187
6187
  const s = e[i];
6188
6188
  if (Array.isArray(s)) {
6189
6189
  const o = s.length;
6190
6190
  for (let a = 0; a < o; ++a)
6191
- rn(n, s[a]);
6191
+ sn(n, s[a]);
6192
6192
  } else
6193
6193
  for (const o in s) {
6194
6194
  const a = n[o];
@@ -6213,7 +6213,7 @@ function Ib(t, e) {
6213
6213
  r && r(e[n]);
6214
6214
  }
6215
6215
  }
6216
- function Bn(t, e, n) {
6216
+ function Fn(t, e, n) {
6217
6217
  n.vertexArrayObject ? t.bindVertexArray(n.vertexArrayObject) : (Ib(e.attribSetters || e, n.attribs), n.indices && t.bindBuffer(B3, n.indices));
6218
6218
  }
6219
6219
  function Mb(t, e) {
@@ -6230,7 +6230,7 @@ function Fo(t, e, n, r, i, s) {
6230
6230
  const o = e.indices, a = e.elementType, c = r === void 0 ? e.numElements : r;
6231
6231
  i = i === void 0 ? 0 : i, a || o ? s !== void 0 ? t.drawElementsInstanced(n, c, a === void 0 ? Ul : e.elementType, i, s) : t.drawElements(n, c, a === void 0 ? Ul : e.elementType, i) : s !== void 0 ? t.drawArraysInstanced(n, i, c, s) : t.drawArrays(n, i, c);
6232
6232
  }
6233
- const Rb = 36160, sn = 36161, kb = 3553, Lb = 5121, Ob = 6402, zb = 6408, Nb = 33190, Ub = 36012, Gb = 35056, Hb = 36013, Vb = 32854, Qb = 32855, Wb = 36194, fd = 33189, hd = 6401, dd = 36168, du = 34041, Yb = 36064, To = 36096, pd = 36128, pu = 33306, za = 33071, Na = 9729, gd = [
6233
+ const Rb = 36160, on = 36161, kb = 3553, Lb = 5121, Ob = 6402, zb = 6408, Nb = 33190, Ub = 36012, Gb = 35056, Hb = 36013, Vb = 32854, Qb = 32855, Wb = 36194, fd = 33189, hd = 6401, dd = 36168, du = 34041, Yb = 36064, To = 36096, pd = 36128, pu = 33306, za = 33071, Na = 9729, gd = [
6234
6234
  { format: zb, type: Lb, min: Na, wrap: za },
6235
6235
  { format: du }
6236
6236
  ], Ye = {};
@@ -6273,13 +6273,13 @@ function Zb(t, e, n, r) {
6273
6273
  let h = c.attachmentPoint || jb(l, c.internalFormat);
6274
6274
  if (h || (h = Yb + o++), !u)
6275
6275
  if (f !== void 0 || Xb(l))
6276
- u = t.createRenderbuffer(), t.bindRenderbuffer(sn, u), f > 1 ? t.renderbufferStorageMultisample(sn, f, l, n, r) : t.renderbufferStorage(sn, l, n, r);
6276
+ u = t.createRenderbuffer(), t.bindRenderbuffer(on, u), f > 1 ? t.renderbufferStorageMultisample(on, f, l, n, r) : t.renderbufferStorage(on, l, n, r);
6277
6277
  else {
6278
6278
  const p = Object.assign({}, c);
6279
6279
  p.width = n, p.height = r, p.auto === void 0 && (p.auto = !1, p.min = p.min || p.minMag || Na, p.mag = p.mag || p.minMag || Na, p.wrapS = p.wrapS || p.wrap || za, p.wrapT = p.wrapT || p.wrap || za), u = oi(t, p);
6280
6280
  }
6281
6281
  if (xh(t, u))
6282
- t.framebufferRenderbuffer(i, h, sn, u);
6282
+ t.framebufferRenderbuffer(i, h, on, u);
6283
6283
  else if (yo(t, u))
6284
6284
  c.layer !== void 0 ? t.framebufferTextureLayer(
6285
6285
  i,
@@ -6303,7 +6303,7 @@ function Kb(t, e, n, r, i) {
6303
6303
  r = r || t.drawingBufferWidth, i = i || t.drawingBufferHeight, e.width = r, e.height = i, n = n || gd, n.forEach(function(s, o) {
6304
6304
  const a = e.attachments[o], c = s.format, u = s.samples;
6305
6305
  if (u !== void 0 || xh(t, a))
6306
- t.bindRenderbuffer(sn, a), u > 1 ? t.renderbufferStorageMultisample(sn, u, c, r, i) : t.renderbufferStorage(sn, c, r, i);
6306
+ t.bindRenderbuffer(on, a), u > 1 ? t.renderbufferStorageMultisample(on, u, c, r, i) : t.renderbufferStorage(on, c, r, i);
6307
6307
  else if (yo(t, a))
6308
6308
  E3(t, a, s, r, i);
6309
6309
  else
@@ -6313,7 +6313,7 @@ function Kb(t, e, n, r, i) {
6313
6313
  function qb(t, e, n) {
6314
6314
  const r = t.createVertexArray();
6315
6315
  return t.bindVertexArray(r), e.length || (e = [e]), e.forEach(function(i) {
6316
- Bn(t, i, n);
6316
+ Fn(t, i, n);
6317
6317
  }), t.bindVertexArray(null), {
6318
6318
  numElements: n.numElements,
6319
6319
  elementType: n.elementType,
@@ -6420,25 +6420,25 @@ function iw(t) {
6420
6420
  function sw(t, e) {
6421
6421
  let n;
6422
6422
  if (Ao(t))
6423
- n = on(mh(t)(e));
6423
+ n = an(mh(t)(e));
6424
6424
  else if (Q(e))
6425
- if (An(t))
6425
+ if (yn(t))
6426
6426
  n = aw(e);
6427
6427
  else
6428
6428
  throw new Error(
6429
6429
  `String values are not supported on the "${t}" channel: ${e}`
6430
6430
  );
6431
6431
  else if (Ei(e))
6432
- n = on(e ? 1 : 0);
6432
+ n = an(e ? 1 : 0);
6433
6433
  else if (e === null)
6434
- if (An(t))
6435
- n = on([0, 0, 0]);
6434
+ if (yn(t))
6435
+ n = an([0, 0, 0]);
6436
6436
  else
6437
6437
  throw new Error(
6438
6438
  `null value is not supported on the "${t}" chanel.`
6439
6439
  );
6440
6440
  else
6441
- n = on(e);
6441
+ n = an(e);
6442
6442
  return `
6443
6443
  #define ${t}_DEFINED
6444
6444
  ${n.type} ${yd}${t}() {
@@ -6453,7 +6453,7 @@ function ow(t, e, n, r = [t]) {
6453
6453
  );
6454
6454
  if (!e)
6455
6455
  throw new Error("Scale is undefined");
6456
- const i = Dn(t), s = gu + vd(r), o = Ad + i, a = rw + i, c = Ls(e.type), u = c ? "vec2" : "float", f = e.domain ? e.domain().length : void 0;
6456
+ const i = Bn(t), s = gu + vd(r), o = Ad + i, a = rw + i, c = Ls(e.type), u = c ? "vec2" : "float", f = e.domain ? e.domain().length : void 0;
6457
6457
  let l;
6458
6458
  const h = [];
6459
6459
  h.push(""), h.push("/".repeat(70)), h.push(`// Channel: ${t}`), h.push(""), h.push(`#define ${t}_DEFINED`);
@@ -6529,35 +6529,35 @@ function ow(t, e, n, r = [t]) {
6529
6529
  `Unsupported scale type: ${e.type}! ${t}: ${JSON.stringify(n)}`
6530
6530
  );
6531
6531
  }
6532
- const m = po(e.type) || ae(e.type) && An(t) ? [0, 1] : e.range ? e.range() : void 0;
6532
+ const m = po(e.type) || ae(e.type) && yn(t) ? [0, 1] : e.range ? e.range() : void 0;
6533
6533
  if (m && t == i && m.length && m.every(ge)) {
6534
6534
  const P = Ql(m);
6535
6535
  h.push(
6536
6536
  `const ${P.type} ${a} = ${P};`
6537
6537
  );
6538
6538
  }
6539
- const A = An(t) ? "vec3" : "float";
6539
+ const A = yn(t) ? "vec3" : "float";
6540
6540
  let y;
6541
- if (An(t)) {
6541
+ if (yn(t)) {
6542
6542
  const P = Ua + i;
6543
6543
  if (t == i && h.push(`uniform sampler2D ${P};`), ae(e.type))
6544
6544
  y = `getInterpolatedColor(${P}, transformed)`;
6545
- else if (At(e.type) || Gn(e.type))
6545
+ else if (Mt(e.type) || en(e.type))
6546
6546
  y = `getDiscreteColor(${P}, int(transformed))`;
6547
6547
  else
6548
6548
  throw new Error("Problem with color scale!");
6549
- } else if (e.type === "ordinal" || Gn(e.type)) {
6549
+ } else if (e.type === "ordinal" || en(e.type)) {
6550
6550
  const P = Ua + i;
6551
6551
  t == i && h.push(`uniform sampler2D ${P};`), y = `getDiscreteColor(${P}, int(transformed)).r`;
6552
6552
  }
6553
- const b = Gi(n) ? `uniform highp ${u} ${s};` : `in highp ${u} ${s};`, w = [], S = ae(e.type) && f > 2, E = Gn(e.type) || S;
6553
+ const b = Gi(n) ? `uniform highp ${u} ${s};` : `in highp ${u} ${s};`, w = [], S = ae(e.type) && f > 2, E = en(e.type) || S;
6554
6554
  if (w.push("int slot = 0;"), E) {
6555
6555
  const P = o;
6556
6556
  w.push(
6557
6557
  S ? `while (slot < ${P}.length() - 2 && value >= ${P}[slot + 1]) { slot++; }` : `while (slot < ${P}.length() && value >= ${P}[slot]) { slot++; }`
6558
6558
  );
6559
6559
  }
6560
- const D = ae(e.type) || Gn(e.type) || ["band", "point"].includes(e.type);
6560
+ const D = ae(e.type) || en(e.type) || ["band", "point"].includes(e.type);
6561
6561
  if (g) {
6562
6562
  const P = o;
6563
6563
  D && (c ? w.push(`vec3 domain = ${P};`) : w.push(
@@ -6580,7 +6580,7 @@ ${A} ${yd}${t}() {
6580
6580
  const O = h.join(`
6581
6581
  `);
6582
6582
  if (D && t == i) {
6583
- const P = ae(e.type) || Gn(e.type) ? f : 2;
6583
+ const P = ae(e.type) || en(e.type) ? f : 2;
6584
6584
  l = c ? `highp vec3 ${o};` : `mediump float ${o}[${P}];`;
6585
6585
  }
6586
6586
  return {
@@ -6601,7 +6601,7 @@ function Ga(t) {
6601
6601
  return /^(-)?\d+$/.test(e) && (e += ".0"), e;
6602
6602
  }
6603
6603
  }
6604
- function on(t) {
6604
+ function an(t) {
6605
6605
  typeof t == "number" && (t = [t]);
6606
6606
  const e = t.length;
6607
6607
  if (e < 1 || e > 4)
@@ -6610,16 +6610,16 @@ function on(t) {
6610
6610
  return e > 1 ? (n = `vec${e}`, r = `${n}(${t.map(Ga).join(", ")})`) : (n = "float", r = Ga(t[0])), Object.assign(r, { type: n, numComponents: e });
6611
6611
  }
6612
6612
  function aw(t) {
6613
- const e = It(t).rgb();
6614
- return on([e.r, e.g, e.b].map((n) => n / 255));
6613
+ const e = Tt(t).rgb();
6614
+ return an([e.r, e.g, e.b].map((n) => n / 255));
6615
6615
  }
6616
6616
  function Ql(t) {
6617
- return on([t[0], Fi(t)]);
6617
+ return an([t[0], Fi(t)]);
6618
6618
  }
6619
6619
  function cw(t, ...e) {
6620
6620
  const n = [];
6621
6621
  for (const r of e)
6622
- ge(r) ? n.push(Ga(r)) : Be(r) ? n.push(on(r)) : n.push(r);
6622
+ ge(r) ? n.push(Ga(r)) : Be(r) ? n.push(an(r)) : n.push(r);
6623
6623
  return `${t}(${n.join(", ")})`;
6624
6624
  }
6625
6625
  function Ls(t) {
@@ -6638,13 +6638,13 @@ function fw(t) {
6638
6638
  return [...lw(t[0]), t[1] - t[0]];
6639
6639
  }
6640
6640
  function wd(t) {
6641
- const e = new Dt([], JSON.stringify);
6641
+ const e = new St([], JSON.stringify);
6642
6642
  for (const [n, r] of Object.entries(t)) {
6643
6643
  const i = r.channelDef;
6644
- if (Rn(i)) {
6644
+ if (kn(i)) {
6645
6645
  const o = [
6646
6646
  i.field,
6647
- r.scale ? ae(r.scale.type) ?? !1 : !1
6647
+ r.scale ? (ae(r.scale.type) || en(r.scale.type)) ?? !1 : !1
6648
6648
  ];
6649
6649
  e.set(o, [...e.get(o) ?? [], n]);
6650
6650
  }
@@ -6921,7 +6921,7 @@ class Vi {
6921
6921
  arrayReference: f ? u : void 0
6922
6922
  });
6923
6923
  }
6924
- this.lastOffset = 0, this.rangeMap = new Dt([], JSON.stringify);
6924
+ this.lastOffset = 0, this.rangeMap = new St([], JSON.stringify);
6925
6925
  }
6926
6926
  /**
6927
6927
  * Must be called at the end of `addBatch`
@@ -7327,7 +7327,7 @@ function Sd(t, { extent: e = [0, 1], reverse: n = !1, count: r = 256 } = {}) {
7327
7327
  function Dd(t, e) {
7328
7328
  const n = Math.max(t.length, e || 0), r = new Uint8Array(n * 3);
7329
7329
  for (let i = 0; i < n; i++) {
7330
- const s = It(t[i % t.length]).rgb();
7330
+ const s = Tt(t[i % t.length]).rgb();
7331
7331
  r[i * 3 + 0] = s.r, r[i * 3 + 1] = s.g, r[i * 3 + 2] = s.b;
7332
7332
  }
7333
7333
  return r;
@@ -7376,7 +7376,7 @@ class Bw {
7376
7376
  s,
7377
7377
  this._pickingAttachmentOptions
7378
7378
  ), s.bindFramebuffer(s.FRAMEBUFFER, null), this.adjustGl(), this._updateDpr(), this._clearColor = [0, 0, 0, 0], r) {
7379
- const o = It(r).rgb();
7379
+ const o = Tt(r).rgb();
7380
7380
  this._clearColor = [o.r / 255, o.g / 255, o.b / 255, o.opacity];
7381
7381
  }
7382
7382
  }
@@ -7478,10 +7478,10 @@ class Bw {
7478
7478
  if (!n && r)
7479
7479
  return;
7480
7480
  function i(o, a) {
7481
- return At(a.type) ? a.domain().length : a.type == "threshold" ? a.domain().length + 1 : a.type == "quantize" || a.type == "quantile" ? o ?? 4 : o;
7481
+ return Mt(a.type) ? a.domain().length : a.type == "threshold" ? a.domain().length + 1 : a.type == "quantize" || a.type == "quantile" ? o ?? 4 : o;
7482
7482
  }
7483
7483
  const s = e.channel;
7484
- if (An(s)) {
7484
+ if (yn(s)) {
7485
7485
  const o = e.getScaleProps(), a = e.getScale(), c = (
7486
7486
  /** @type {any[]} */
7487
7487
  a.range()
@@ -7521,7 +7521,7 @@ class Bw {
7521
7521
  this.rangeTextures.set(e, u);
7522
7522
  } else {
7523
7523
  const o = e.getScale();
7524
- if (o.type === "ordinal" || Gn(o.type)) {
7524
+ if (o.type === "ordinal" || en(o.type)) {
7525
7525
  const a = Ao(s) ? mh(s) : (u) => u, c = (
7526
7526
  /** @type {any[]} */
7527
7527
  e.getScale().range()
@@ -7612,7 +7612,7 @@ function Iw(...t) {
7612
7612
  function Mw(t) {
7613
7613
  return Q(t) || ge(t) || Ei(t);
7614
7614
  }
7615
- class xn extends Error {
7615
+ class bn extends Error {
7616
7616
  /**
7617
7617
  * @param {string} message
7618
7618
  * @param {import("./view.js").default} view
@@ -7810,7 +7810,7 @@ class Qi {
7810
7810
  if (We(A))
7811
7811
  o.push(sw(m, A.value));
7812
7812
  else {
7813
- const y = Ce(A) && A.resolutionChannel || m, b = yn(y) ? this.unitView.getScaleResolution(y).getScale() : mo(), w = Rn(A) && !At(b.type) ? c.get([A.field, !0]) : [m], S = ow(
7813
+ const y = Ce(A) && A.resolutionChannel || m, b = xn(y) ? this.unitView.getScaleResolution(y).getScale() : mo(), w = kn(A) ? c.get([A.field, !0]) : [m], S = ow(
7814
7814
  m,
7815
7815
  b,
7816
7816
  A,
@@ -7878,7 +7878,7 @@ class Qi {
7878
7878
  this.gl,
7879
7879
  this.programInfo,
7880
7880
  "Mark"
7881
- ), this.gl.useProgram(this.programInfo.program), this._setDatums(), rn(this.programInfo, {
7881
+ ), this.gl.useProgram(this.programInfo.program), this._setDatums(), sn(this.programInfo, {
7882
7882
  // left pos, left height, right pos, right height
7883
7883
  uSampleFacet: [0, 1, 0, 1],
7884
7884
  uTransitionOffset: 0,
@@ -7917,7 +7917,7 @@ class Qi {
7917
7917
  for (const [e, n] of Object.entries(this.encoding))
7918
7918
  if (Gi(n)) {
7919
7919
  const r = this.encoders[e], i = r.indexer ? r.indexer(n.datum) : Ls(r.scale.type) ? bd(+n.datum) : +n.datum;
7920
- rn(this.programInfo, {
7920
+ sn(this.programInfo, {
7921
7921
  [gu + e]: i
7922
7922
  });
7923
7923
  }
@@ -8018,10 +8018,10 @@ class Qi {
8018
8018
  /** @type {Channel} */
8019
8019
  o.substring(Ad.length)
8020
8020
  ), u = this.encoding[c], f = Ce(u) && u.resolutionChannel || c;
8021
- if (yn(f)) {
8021
+ if (xn(f)) {
8022
8022
  const l = this.unitView.getScaleResolution(f).getScale();
8023
8023
  i.push(() => {
8024
- const h = At(l.type) ? [0, l.domain().length] : l.domain();
8024
+ const h = Mt(l.type) ? [0, l.domain().length] : l.domain();
8025
8025
  a(
8026
8026
  Ls(l.type) ? fw(h) : h
8027
8027
  );
@@ -8035,10 +8035,10 @@ class Qi {
8035
8035
  for (const [o, a] of Object.entries(this.encoding))
8036
8036
  if (Ce(a)) {
8037
8037
  const c = Ce(a) && a.resolutionChannel || o;
8038
- if (yn(c)) {
8038
+ if (xn(c)) {
8039
8039
  const u = this.unitView.getScaleResolution(c), f = n.rangeTextures.get(u);
8040
8040
  f && i.push(
8041
- () => rn(this.programInfo, {
8041
+ () => sn(this.programInfo, {
8042
8042
  [Ua + o]: f
8043
8043
  })
8044
8044
  );
@@ -8051,7 +8051,7 @@ class Qi {
8051
8051
  break;
8052
8052
  if (!o)
8053
8053
  throw new Error("No facet texture available. This is bug.");
8054
- rn(this.programInfo, {
8054
+ sn(this.programInfo, {
8055
8055
  uSampleFacetTexture: o
8056
8056
  });
8057
8057
  });
@@ -8106,7 +8106,7 @@ class Qi {
8106
8106
  createRenderCallback(e, n) {
8107
8107
  var l;
8108
8108
  if (!this.bufferInfo)
8109
- throw new xn(
8109
+ throw new bn(
8110
8110
  `${this.getType()} mark has no data. This is bug.`,
8111
8111
  this.unitView
8112
8112
  );
@@ -8206,7 +8206,7 @@ class Qi {
8206
8206
  findDatumAt(e, n) {
8207
8207
  }
8208
8208
  }
8209
- class Rw extends Dt {
8209
+ class Rw extends St {
8210
8210
  constructor() {
8211
8211
  super([], JSON.stringify);
8212
8212
  }
@@ -8397,7 +8397,7 @@ class kw extends Qi {
8397
8397
  prepareRender(n) {
8398
8398
  const r = super.prepareRender(n);
8399
8399
  return r.push(() => this.bindOrSetMarkUniformBlock()), r.push(
8400
- () => Bn(
8400
+ () => Fn(
8401
8401
  this.gl,
8402
8402
  this.programInfo,
8403
8403
  this.vertexArrayInfo
@@ -8436,7 +8436,7 @@ class kw extends Qi {
8436
8436
  if (!i)
8437
8437
  return;
8438
8438
  const s = this.encoders, o = s.x.scale.type;
8439
- if (At(o)) {
8439
+ if (Mt(o)) {
8440
8440
  const a = s.x.accessor;
8441
8441
  return i.find((c) => r == a(c));
8442
8442
  } else {
@@ -8847,7 +8847,7 @@ class Vw extends Qi {
8847
8847
  uSemanticThreshold: this.getSemanticThreshold()
8848
8848
  }), this.markUniformsAltered = !0;
8849
8849
  }), n.push(() => this.bindOrSetMarkUniformBlock()), n.push(
8850
- () => Bn(
8850
+ () => Fn(
8851
8851
  this.gl,
8852
8852
  this.programInfo,
8853
8853
  this.vertexArrayInfo
@@ -8988,11 +8988,11 @@ class jw extends Qi {
8988
8988
  prepareRender(e) {
8989
8989
  const n = super.prepareRender(e);
8990
8990
  return n.push(() => this.bindOrSetMarkUniformBlock()), this.dashTexture && n.push(
8991
- () => rn(this.programInfo, {
8991
+ () => sn(this.programInfo, {
8992
8992
  uDashTexture: this.dashTexture
8993
8993
  })
8994
8994
  ), n.push(
8995
- () => Bn(
8995
+ () => Fn(
8996
8996
  this.gl,
8997
8997
  this.programInfo,
8998
8998
  this.vertexArrayInfo
@@ -9131,7 +9131,7 @@ class _w extends Qi {
9131
9131
  prepareRender(e) {
9132
9132
  const n = super.prepareRender(e);
9133
9133
  return n.push(() => this.bindOrSetMarkUniformBlock()), this._baseInstanceExt ? n.push(
9134
- () => Bn(
9134
+ () => Fn(
9135
9135
  this.gl,
9136
9136
  this.programInfo,
9137
9137
  this.vertexArrayInfo
@@ -9158,7 +9158,7 @@ class _w extends Qi {
9158
9158
  const [a, c] = o;
9159
9159
  c.buffer && c.numComponents && c.divisor && (c.offset = i * this.arrays[a].numComponents * 4);
9160
9160
  }
9161
- Bn(
9161
+ Fn(
9162
9162
  n,
9163
9163
  this.programInfo,
9164
9164
  this.bufferInfo
@@ -9353,11 +9353,11 @@ class sv extends Qi {
9353
9353
  prepareRender(e) {
9354
9354
  const n = super.prepareRender(e);
9355
9355
  return n.push(() => {
9356
- rn(this.programInfo, {
9356
+ sn(this.programInfo, {
9357
9357
  uTexture: this.font.texture
9358
9358
  });
9359
9359
  }), n.push(() => this.bindOrSetMarkUniformBlock()), n.push(
9360
- () => Bn(
9360
+ () => Fn(
9361
9361
  this.gl,
9362
9362
  this.programInfo,
9363
9363
  this.vertexArrayInfo
@@ -9624,7 +9624,7 @@ function uv(t, e) {
9624
9624
  return n && e ? n.endsWith("/") ? n + e : n + "/" + e : n ?? e;
9625
9625
  }
9626
9626
  const lv = "VISIT_SKIP", Or = "VISIT_STOP", Kl = (t) => t;
9627
- var Wn, fi, hi, an, Tr, di, Za;
9627
+ var Wn, fi, hi, cn, Tr, di, Za;
9628
9628
  class fv {
9629
9629
  /**
9630
9630
  *
@@ -9641,7 +9641,7 @@ class fv {
9641
9641
  * @param {"width" | "height" | "viewportWidth" | "viewportHeight"} dimension
9642
9642
  * @return {import("./layout/flexLayout.js").SizeDef}
9643
9643
  */
9644
- I(this, an);
9644
+ I(this, cn);
9645
9645
  /**
9646
9646
  * @param {"dataParent" | "layoutParent"} prop
9647
9647
  * @returns {View[]}
@@ -9715,8 +9715,8 @@ class fv {
9715
9715
  return this._cache(
9716
9716
  "size/size",
9717
9717
  () => this.isConfiguredVisible() ? new kt(
9718
- T(this, an, Tr).call(this, "width"),
9719
- T(this, an, Tr).call(this, "height")
9718
+ T(this, cn, Tr).call(this, "width"),
9719
+ T(this, cn, Tr).call(this, "height")
9720
9720
  ) : Zl
9721
9721
  );
9722
9722
  }
@@ -9730,8 +9730,8 @@ class fv {
9730
9730
  return Zl;
9731
9731
  const e = this.getSize();
9732
9732
  return new kt(
9733
- T(this, an, Tr).call(this, "viewportWidth") ?? e.width,
9734
- T(this, an, Tr).call(this, "viewportHeight") ?? e.height
9733
+ T(this, cn, Tr).call(this, "viewportWidth") ?? e.width,
9734
+ T(this, cn, Tr).call(this, "viewportHeight") ?? e.height
9735
9735
  );
9736
9736
  }
9737
9737
  isConfiguredVisible() {
@@ -9911,7 +9911,7 @@ class fv {
9911
9911
  getFacetFields(e) {
9912
9912
  var r;
9913
9913
  const n = this.getEncoding().sample;
9914
- return Rn(n) ? [n.field] : (r = this.layoutParent) == null ? void 0 : r.getFacetFields(this);
9914
+ return kn(n) ? [n.field] : (r = this.layoutParent) == null ? void 0 : r.getFacetFields(this);
9915
9915
  }
9916
9916
  /**
9917
9917
  * Returns a texture that has a mapping for the sample locations. This is implemented
@@ -9937,7 +9937,7 @@ class fv {
9937
9937
  getScaleResolution(e) {
9938
9938
  const n = (
9939
9939
  /** @type {import("../spec/channel.js").ChannelWithScale} */
9940
- Dn(e)
9940
+ Bn(e)
9941
9941
  );
9942
9942
  return this.getDataAncestors().map((r) => r.resolutions.scale[n]).find((r) => r);
9943
9943
  }
@@ -9947,7 +9947,7 @@ class fv {
9947
9947
  getAxisResolution(e) {
9948
9948
  const n = (
9949
9949
  /** @type {import("../spec/channel.js").PrimaryPositionalChannel} */
9950
- Dn(e)
9950
+ Bn(e)
9951
9951
  );
9952
9952
  return this.getDataAncestors().map((r) => r.resolutions.axis[n]).find((r) => r);
9953
9953
  }
@@ -10040,13 +10040,13 @@ class fv {
10040
10040
  propagateInteractionEvent(e) {
10041
10041
  }
10042
10042
  }
10043
- Wn = new WeakMap(), fi = new WeakMap(), hi = new WeakMap(), an = new WeakSet(), Tr = function(e) {
10043
+ Wn = new WeakMap(), fi = new WeakMap(), hi = new WeakMap(), cn = new WeakSet(), Tr = function(e) {
10044
10044
  var i;
10045
10045
  let n = this.spec[e];
10046
10046
  const r = e == "viewportWidth" || e == "viewportHeight";
10047
10047
  if (Rd(n)) {
10048
10048
  if (r)
10049
- throw new xn(
10049
+ throw new bn(
10050
10050
  `Cannot use step-based size with "${e}"!`,
10051
10051
  this
10052
10052
  );
@@ -10055,13 +10055,13 @@ Wn = new WeakMap(), fi = new WeakMap(), hi = new WeakMap(), an = new WeakSet(),
10055
10055
  )) == null ? void 0 : i.getScale();
10056
10056
  if (o) {
10057
10057
  let a = 0;
10058
- if (At(o.type))
10058
+ if (Mt(o.type))
10059
10059
  a = o.domain().length;
10060
10060
  else if (["locus", "index"].includes(o.type)) {
10061
10061
  const u = o.domain();
10062
10062
  a = Fi(u) - u[0];
10063
10063
  } else
10064
- throw new xn(
10064
+ throw new bn(
10065
10065
  `Cannot use step-based size with "${o.type}" scale!`,
10066
10066
  this
10067
10067
  );
@@ -10075,7 +10075,7 @@ Wn = new WeakMap(), fi = new WeakMap(), hi = new WeakMap(), an = new WeakSet(),
10075
10075
  c.paddingOuter()
10076
10076
  ), { px: a * s, grow: 0 };
10077
10077
  } else
10078
- throw new xn(
10078
+ throw new bn(
10079
10079
  "Cannot use 'step' size with missing scale!",
10080
10080
  this
10081
10081
  );
@@ -10108,7 +10108,7 @@ function dv(t) {
10108
10108
  return o;
10109
10109
  }, r = e.channel ? n(e.channel) : n("x") ?? n("y");
10110
10110
  if (!r)
10111
- throw new xn(
10111
+ throw new bn(
10112
10112
  "Cannot find a resolved quantitative scale for dynamic opacity!",
10113
10113
  t
10114
10114
  );
@@ -10127,7 +10127,7 @@ function dv(t) {
10127
10127
  return (n) => n;
10128
10128
  }
10129
10129
  const Rd = (t) => !!(t != null && t.step);
10130
- class Fn extends fv {
10130
+ class Tn extends fv {
10131
10131
  /**
10132
10132
  *
10133
10133
  * @param {import("../spec/view.js").ContainerSpec} spec
@@ -10192,7 +10192,7 @@ class Fn extends fv {
10192
10192
  if (n.name === e[0]) {
10193
10193
  if (e.length == 1)
10194
10194
  return n;
10195
- if (n instanceof Fn)
10195
+ if (n instanceof Tn)
10196
10196
  return n.findDescendantByPath(e.slice(1));
10197
10197
  }
10198
10198
  }
@@ -10271,7 +10271,7 @@ function Au() {
10271
10271
  throw new Error(
10272
10272
  "Index scale's tickFormat does not support a specifier!"
10273
10273
  );
10274
- const p = bn(
10274
+ const p = wn(
10275
10275
  t[0],
10276
10276
  t[1],
10277
10277
  Math.min(f, Math.ceil(n))
@@ -10296,7 +10296,7 @@ function pv() {
10296
10296
  const i = t.domain(), s = t.numberingOffset(), [o, a] = [
10297
10297
  Math.max(i[0], 0),
10298
10298
  Math.min(i[1], e.totalSize - 1)
10299
- ].map((f) => e.toChromosome(f)), c = Math.max(1, bn(i[0], i[1], r)), u = [];
10299
+ ].map((f) => e.toChromosome(f)), c = Math.max(1, wn(i[0], i[1], r)), u = [];
10300
10300
  for (let f = o.index; f <= a.index; f++) {
10301
10301
  const l = e.chromosomes[f], h = Math.max(
10302
10302
  l.continuousStart + c,
@@ -10315,7 +10315,7 @@ function pv() {
10315
10315
  throw new Error(
10316
10316
  "Locus scale's tickFormat does not support a specifier!"
10317
10317
  );
10318
- const s = t.domain(), o = s[1] - s[0], a = t.numberingOffset(), u = bn(
10318
+ const s = t.domain(), o = s[1] - s[0], a = t.numberingOffset(), u = wn(
10319
10319
  s[0],
10320
10320
  s[1],
10321
10321
  Math.min(r, Math.ceil(o))
@@ -10337,7 +10337,7 @@ function Os(t, e, n) {
10337
10337
  return null;
10338
10338
  throw console.warn(t), new Error("Cannot merge objects with nulls!");
10339
10339
  }
10340
- const r = {}, i = (o, a) => o === a || Un(o) && Un(a) || Un(o) && a === !0 || o === !0 && De(a), s = (o) => {
10340
+ const r = {}, i = (o, a) => o === a || Gn(o) && Gn(a) || Gn(o) && a === !0 || o === !0 && De(a), s = (o) => {
10341
10341
  for (let a in o) {
10342
10342
  const c = o[a];
10343
10343
  if (!n.includes(a) && c !== void 0)
@@ -10351,12 +10351,12 @@ function Os(t, e, n) {
10351
10351
  );
10352
10352
  else {
10353
10353
  const u = r[a];
10354
- if (Un(u))
10355
- Un(c) && (r[a] = Os(
10354
+ if (Gn(u))
10355
+ Gn(c) && (r[a] = Os(
10356
10356
  [u, c],
10357
10357
  a
10358
10358
  ));
10359
- else if (Un(c)) {
10359
+ else if (Gn(c)) {
10360
10360
  if (!(u === !0 || u === void 0))
10361
10361
  throw new Error(
10362
10362
  "Bug in merge! Target is: " + u
@@ -10371,7 +10371,7 @@ function Os(t, e, n) {
10371
10371
  s(o);
10372
10372
  return r;
10373
10373
  }
10374
- function Un(t) {
10374
+ function Gn(t) {
10375
10375
  return De(t) && !Array.isArray(t);
10376
10376
  }
10377
10377
  /*!
@@ -10422,7 +10422,7 @@ function xv(t, e) {
10422
10422
  };
10423
10423
  }
10424
10424
  function bv(t) {
10425
- var e = Bt(t || ",");
10425
+ var e = Dt(t || ",");
10426
10426
  if (e.precision == null) {
10427
10427
  switch (e.precision = 12, e.type) {
10428
10428
  case "%":
@@ -10562,7 +10562,7 @@ function Pv(t, e, n) {
10562
10562
  return e ? (t.domain(Ud(t.type, e, n)), e.length) : -1;
10563
10563
  }
10564
10564
  function Rv(t, e, n, r, i, s) {
10565
- var o = Math.abs(Qe(n) - n[0]), a = o / (o - 2 * r), c = t === Mt ? yf(e, null, a) : t === Oi ? ca(e, null, a, 0.5) : t === Li ? ca(e, null, a, i || 1) : t === ho ? Fp(e, null, a, s || 1) : Af(e, null, a);
10565
+ var o = Math.abs(Qe(n) - n[0]), a = o / (o - 2 * r), c = t === It ? yf(e, null, a) : t === Oi ? ca(e, null, a, 0.5) : t === Li ? ca(e, null, a, i || 1) : t === ho ? Fp(e, null, a, s || 1) : Af(e, null, a);
10566
10566
  return e = e.slice(), e[0] = c[0], e[e.length - 1] = c[1], e;
10567
10567
  }
10568
10568
  function Ud(t, e, n) {
@@ -10723,7 +10723,7 @@ class Gv {
10723
10723
  if (e > this.totalSize)
10724
10724
  return;
10725
10725
  e = Math.floor(e);
10726
- const n = St(this.startByIndex, e) - 1;
10726
+ const n = Et(this.startByIndex, e) - 1;
10727
10727
  if (n > 0 && n <= this.chromosomes.length)
10728
10728
  return this.chromosomes[n - 1];
10729
10729
  }
@@ -10992,7 +10992,7 @@ U("index", Au, ["continuous"]);
10992
10992
  U("locus", pv, ["continuous"]);
10993
10993
  U("null", mo, []);
10994
10994
  const tf = "quantitative", Qd = "ordinal", Wd = "nominal", Yd = "locus", Xv = "index";
10995
- var ut, Yn, oe, qe, vt, Gs, jd, jn, hs, lt, _t, pi, qa, Hs, Xd, cc, Kv, gi, Ja;
10995
+ var ut, Yn, oe, qe, wt, Gs, jd, jn, hs, lt, _t, pi, qa, Hs, Xd, cc, Kv, gi, Ja;
10996
10996
  class Zv {
10997
10997
  /**
10998
10998
  * @param {Channel} channel
@@ -11127,7 +11127,7 @@ class Zv {
11127
11127
  };
11128
11128
  n.type || (n.type = qv(this.channel, this.type));
11129
11129
  const r = T(this, jn, hs).call(this);
11130
- return r && r.length > 0 ? n.domain = r : At(n.type) && (n.domain = new Vd()), !n.domain && n.domainMid !== void 0 && (n.domain = [n.domainMin ?? 0, n.domainMax ?? 1]), this.channel == "y" && At(n.type) && n.reverse == null && (n.reverse = !0), n.range && n.scheme && delete n.scheme, !("zoom" in n) && ["index", "locus"].includes(n.type) && (n.zoom = !0), Jv(n, this.channel), n;
11130
+ return r && r.length > 0 ? n.domain = r : Mt(n.type) && (n.domain = new Vd()), !n.domain && n.domainMid !== void 0 && (n.domain = [n.domainMin ?? 0, n.domainMax ?? 1]), this.channel == "y" && Mt(n.type) && n.reverse == null && (n.reverse = !0), n.range && n.scheme && delete n.scheme, !("zoom" in n) && ["index", "locus"].includes(n.type) && (n.zoom = !0), Jv(n, this.channel), n;
11131
11131
  });
11132
11132
  }
11133
11133
  /**
@@ -11155,11 +11155,11 @@ class Zv {
11155
11155
  Cd(this, "scaleProps");
11156
11156
  const r = this.getScaleProps();
11157
11157
  if (Nd(r, C(this, oe)), ae(C(this, oe).type) && Z(this, ut, T(this, pi, qa).call(this)), !e) {
11158
- T(this, qe, vt).call(this);
11158
+ T(this, qe, wt).call(this);
11159
11159
  return;
11160
11160
  }
11161
11161
  const i = C(this, oe).domain();
11162
- Es(i, n) || (this.isZoomable() ? C(this, oe).domain(n) : T(this, lt, _t).call(this) ? (C(this, oe).domain(n), this.zoomTo(i, 500)) : T(this, qe, vt).call(this));
11162
+ Es(i, n) || (this.isZoomable() ? C(this, oe).domain(n) : T(this, lt, _t).call(this) ? (C(this, oe).domain(n), this.zoomTo(i, 500)) : T(this, qe, wt).call(this));
11163
11163
  }
11164
11164
  }
11165
11165
  /**
@@ -11240,7 +11240,7 @@ class Zv {
11240
11240
  o,
11241
11241
  C(this, ut)[0],
11242
11242
  C(this, ut)[1]
11243
- )), [0, 1].some((c) => o[c] != s[c]) ? (i.domain(o), T(this, qe, vt).call(this), !0) : !1;
11243
+ )), [0, 1].some((c) => o[c] != s[c]) ? (i.domain(o), T(this, qe, wt).call(this), !0) : !1;
11244
11244
  }
11245
11245
  /**
11246
11246
  * Immediately zooms to the given interval.
@@ -11264,11 +11264,11 @@ class Zv {
11264
11264
  easingFunction: Yv,
11265
11265
  onUpdate: (h) => {
11266
11266
  const p = jv(c, f, h), d = (c - p) / (c - f), g = d * l + (1 - d) * u;
11267
- s.domain([g - p / 2, g + p / 2]), T(this, qe, vt).call(this);
11267
+ s.domain([g - p / 2, g + p / 2]), T(this, qe, wt).call(this);
11268
11268
  }
11269
- }), s.domain(r), T(this, qe, vt).call(this);
11269
+ }), s.domain(r), T(this, qe, wt).call(this);
11270
11270
  } else
11271
- s.domain(r), i == null || i.requestRender(), T(this, qe, vt).call(this);
11271
+ s.domain(r), i == null || i.requestRender(), T(this, qe, wt).call(this);
11272
11272
  }
11273
11273
  /**
11274
11274
  * Resets the current domain to the initial one
@@ -11279,7 +11279,7 @@ class Zv {
11279
11279
  if (!T(this, lt, _t).call(this))
11280
11280
  throw new Error("Not a zoomable scale!");
11281
11281
  const e = this.getDomain(), n = T(this, jn, hs).call(this);
11282
- return [0, 1].some((r) => n[r] != e[r]) ? (C(this, oe).domain(n), T(this, qe, vt).call(this), !0) : !1;
11282
+ return [0, 1].some((r) => n[r] != e[r]) ? (C(this, oe).domain(n), T(this, qe, wt).call(this), !0) : !1;
11283
11283
  }
11284
11284
  /**
11285
11285
  * Returns the zoom level with respect to the reference domain span (the original domain).
@@ -11346,7 +11346,7 @@ class Zv {
11346
11346
  );
11347
11347
  }
11348
11348
  }
11349
- ut = new WeakMap(), Yn = new WeakMap(), oe = new WeakMap(), qe = new WeakSet(), vt = function() {
11349
+ ut = new WeakMap(), Yn = new WeakMap(), oe = new WeakMap(), qe = new WeakSet(), wt = function() {
11350
11350
  for (const e of C(this, Yn).values())
11351
11351
  e({
11352
11352
  type: "domain",
@@ -11372,7 +11372,7 @@ ut = new WeakMap(), Yn = new WeakMap(), oe = new WeakMap(), qe = new WeakSet(),
11372
11372
  return e.type == "locus" ? this.getGenome().getExtent() : C(this, oe).domain();
11373
11373
  }, Hs = new WeakSet(), Xd = function(e) {
11374
11374
  const n = this.channel, r = {};
11375
- return this.isExplicitDomain() && (r.zero = !1), ri(n) ? r.nice = !this.isExplicitDomain() : An(n) ? r.scheme = e == Wd ? "tableau10" : e == Qd ? "blues" : "viridis" : Ao(n) ? r.range = n == "shape" ? ["circle", "square", "triangle-up", "cross", "diamond"] : [] : n == "size" ? r.range = [0, 400] : n == "angle" && (r.range = [0, 360]), r;
11375
+ return this.isExplicitDomain() && (r.zero = !1), ri(n) ? r.nice = !this.isExplicitDomain() : yn(n) ? r.scheme = e == Wd ? "tableau10" : e == Qd ? "blues" : "viridis" : Ao(n) ? r.range = n == "shape" ? ["circle", "square", "triangle-up", "cross", "diamond"] : [] : n == "size" ? r.range = [0, 400] : n == "angle" && (r.range = [0, 360]), r;
11376
11376
  }, cc = new WeakSet(), Kv = function() {
11377
11377
  return this.members.map((e) => e.view.getPathString()).join(", ");
11378
11378
  }, gi = new WeakSet(), Ja = function(e) {
@@ -11500,14 +11500,14 @@ class $v {
11500
11500
  o.title
11501
11501
  ),
11502
11502
  implicitTitle: oa(
11503
- Rn(o) ? o.field : void 0,
11503
+ kn(o) ? o.field : void 0,
11504
11504
  Kc(o) ? o.expr : void 0
11505
11505
  )
11506
11506
  };
11507
11507
  }, n = this.members.map(e), r = n.filter((s) => {
11508
11508
  var o;
11509
11509
  if (kr(s.member.channel) && !s.explicitTitle) {
11510
- const a = Dn(s.member.channel);
11510
+ const a = Bn(s.member.channel);
11511
11511
  return ((o = n.find(
11512
11512
  (c) => c.member.view == s.member.view && c.member.channel == a
11513
11513
  )) == null ? void 0 : o.explicitTitle) === void 0;
@@ -11528,7 +11528,7 @@ const e4 = {
11528
11528
  link: _w,
11529
11529
  text: sv
11530
11530
  };
11531
- class Re extends Fn {
11531
+ class Re extends Tn {
11532
11532
  /**
11533
11533
  * @typedef {import("../spec/channel.js").Channel} Channel
11534
11534
  * @typedef {import("./view.js").default} View
@@ -11578,13 +11578,13 @@ class Re extends Fn {
11578
11578
  for (const [r, i] of Object.entries(n)) {
11579
11579
  if (!Ce(i))
11580
11580
  continue;
11581
- const s = Dn(
11581
+ const s = Bn(
11582
11582
  i.resolutionChannel ?? r
11583
11583
  );
11584
- if (!yn(s) || e == "axis" && !ri(s))
11584
+ if (!xn(s) || e == "axis" && !ri(s))
11585
11585
  continue;
11586
11586
  let o = this;
11587
- for (; (o.getConfiguredOrDefaultResolution(s, e) == "forced" || o.dataParent instanceof Fn && ["shared", "excluded", "forced"].includes(
11587
+ for (; (o.getConfiguredOrDefaultResolution(s, e) == "forced" || o.dataParent instanceof Tn && ["shared", "excluded", "forced"].includes(
11588
11588
  o.dataParent.getConfiguredOrDefaultResolution(
11589
11589
  s,
11590
11590
  e
@@ -11596,7 +11596,7 @@ class Re extends Fn {
11596
11596
  )), o.resolutions[e][s].pushUnitView(
11597
11597
  this,
11598
11598
  r
11599
- )) : e == "scale" && yn(r) && (o.resolutions[e][s] || (o.resolutions[e][s] = new Zv(
11599
+ )) : e == "scale" && xn(r) && (o.resolutions[e][s] || (o.resolutions[e][s] = new Zv(
11600
11600
  s
11601
11601
  )), o.resolutions[e][s].pushUnitView(
11602
11602
  this,
@@ -11745,7 +11745,7 @@ class Zd extends K {
11745
11745
  super(), this.params = e ?? { type: "collect" }, this.observers = [], this.facetBatches = void 0, this._init();
11746
11746
  }
11747
11747
  _init() {
11748
- this._data = [], this.facetBatches = new Dt([], JSON.stringify), this.facetBatches.set(void 0, this._data);
11748
+ this._data = [], this.facetBatches = new St([], JSON.stringify), this.facetBatches.set(void 0, this._data);
11749
11749
  }
11750
11750
  reset() {
11751
11751
  super.reset(), this._init();
@@ -14562,7 +14562,7 @@ class Q4 extends Xi {
14562
14562
  r && this.publishData(r);
14563
14563
  }
14564
14564
  }
14565
- var cn;
14565
+ var un;
14566
14566
  class W4 extends Xi {
14567
14567
  /**
14568
14568
  * @param {import("../../../spec/data.js").BamData} params
@@ -14578,7 +14578,7 @@ class W4 extends Xi {
14578
14578
  };
14579
14579
  super(r, i.channel);
14580
14580
  /** @type {import("@gmod/bam").BamFile} */
14581
- I(this, cn, void 0);
14581
+ I(this, un, void 0);
14582
14582
  /**
14583
14583
  * Some BAM files lack the "chr" prefix on their reference names. For example:
14584
14584
  * http://genome.ucsc.edu/goldenPath/help/examples/bamExample.bam
@@ -14597,14 +14597,14 @@ class W4 extends Xi {
14597
14597
  import("./index-UyrC0vvF.js")
14598
14598
  ]).then(([{ BamFile: o }, { RemoteFile: a }]) => {
14599
14599
  const c = (u) => new a(ji(u, this.view.getBaseUrl()));
14600
- Z(this, cn, new o({
14600
+ Z(this, un, new o({
14601
14601
  bamFilehandle: c(this.params.url),
14602
14602
  baiFilehandle: c(
14603
14603
  this.params.indexUrl ?? this.params.url + ".bai"
14604
14604
  )
14605
- })), C(this, cn).getHeader().then((u) => {
14605
+ })), C(this, un).getHeader().then((u) => {
14606
14606
  var h, p;
14607
- const f = this.genome.hasChrPrefix(), l = (p = (h = C(this, cn).indexToChr) == null ? void 0 : h[0]) == null ? void 0 : p.refName.startsWith("chr");
14607
+ const f = this.genome.hasChrPrefix(), l = (p = (h = C(this, un).indexToChr) == null ? void 0 : h[0]) == null ? void 0 : p.refName.startsWith("chr");
14608
14608
  f && !l ? this.chrPrefixFixer = (d) => d.replace("chr", "") : !f && l && (this.chrPrefixFixer = (d) => "chr" + d), s();
14609
14609
  });
14610
14610
  });
@@ -14616,7 +14616,7 @@ class W4 extends Xi {
14616
14616
  async loadInterval(n) {
14617
14617
  const r = await this.discretizeAndLoad(
14618
14618
  n,
14619
- async (i, s) => C(this, cn).getRecordsForRange(
14619
+ async (i, s) => C(this, un).getRecordsForRange(
14620
14620
  this.chrPrefixFixer(i.chrom),
14621
14621
  i.startPos,
14622
14622
  i.endPos,
@@ -14637,7 +14637,7 @@ class W4 extends Xi {
14637
14637
  r && this.publishData(r);
14638
14638
  }
14639
14639
  }
14640
- cn = new WeakMap();
14640
+ un = new WeakMap();
14641
14641
  var Ai;
14642
14642
  class Y4 extends Xi {
14643
14643
  /**
@@ -15087,7 +15087,7 @@ function cC(t) {
15087
15087
  r,
15088
15088
  (o) => (
15089
15089
  /** @type {"x" | "y"} */
15090
- Dn(o.channel)
15090
+ Bn(o.channel)
15091
15091
  ),
15092
15092
  (o) => o.chromPosDef.chrom
15093
15093
  );
@@ -15139,7 +15139,7 @@ function uC(t, e) {
15139
15139
  var r;
15140
15140
  const n = { ...t.getEncoding(), ...e }.x;
15141
15141
  if (Ce(n) && (r = t.getScaleResolution("x")) != null && r.isZoomable()) {
15142
- if (Rn(n))
15142
+ if (kn(n))
15143
15143
  return { field: n.field };
15144
15144
  if (!Gi(n))
15145
15145
  throw new Error(
@@ -15782,7 +15782,7 @@ class DC {
15782
15782
  * @param {import("../gl/webGLHelper.js").default} [webGLHelper]
15783
15783
  */
15784
15784
  constructor(e) {
15785
- this._webGLHelper = e, this.fontRepository = "https://raw.githubusercontent.com/etiennepinchon/aframe-fonts/master/fonts/", this._fonts = new Dt([], JSON.stringify), this._metadataPromises = /* @__PURE__ */ new Map(), this._fontPromises = /* @__PURE__ */ new Map(), this._promises = [], this._defaultFontEntry = {
15785
+ this._webGLHelper = e, this.fontRepository = "https://raw.githubusercontent.com/etiennepinchon/aframe-fonts/master/fonts/", this._fonts = new St([], JSON.stringify), this._metadataPromises = /* @__PURE__ */ new Map(), this._fontPromises = /* @__PURE__ */ new Map(), this._promises = [], this._defaultFontEntry = {
15786
15786
  metrics: Ha(qd),
15787
15787
  texture: e ? this._createTextureNow(EC) : void 0
15788
15788
  };
@@ -16090,7 +16090,7 @@ async function NC(t, e, n) {
16090
16090
  return Je`${a}${s}`;
16091
16091
  }
16092
16092
  var ft;
16093
- class Zi extends Fn {
16093
+ class Zi extends Tn {
16094
16094
  /**
16095
16095
  *
16096
16096
  * @param {import("../spec/view.js").LayerSpec} spec
@@ -16124,7 +16124,7 @@ class Zi extends Fn {
16124
16124
  "grid" + r,
16125
16125
  (i) => {
16126
16126
  if (!oc(i) && !sc(i))
16127
- throw new xn(
16127
+ throw new bn(
16128
16128
  "LayerView accepts only unit or layer specs as children!",
16129
16129
  this
16130
16130
  );
@@ -16944,8 +16944,8 @@ function t8(t, e, n, r) {
16944
16944
  document.addEventListener("mouseup", a, !1), document.addEventListener("mousemove", o, !1);
16945
16945
  }
16946
16946
  }
16947
- var qn, Jn, Pe, un, _n, ht, $t, Vs, fp, ln, Ir, bi, nc, wi, rc, vi, ic, Qs, hp, $n, ds, Ws, dp;
16948
- class n8 extends Fn {
16947
+ var qn, Jn, Pe, ln, _n, ht, $t, Vs, fp, fn, Ir, bi, nc, wi, rc, vi, ic, Qs, hp, $n, ds, Ws, dp;
16948
+ class n8 extends Tn {
16949
16949
  /**
16950
16950
  *
16951
16951
  * @param {import("../spec/view.js").AnyConcatSpec} spec
@@ -16963,7 +16963,7 @@ class n8 extends Fn {
16963
16963
  /**
16964
16964
  * @param {Direction} direction
16965
16965
  */
16966
- I(this, ln);
16966
+ I(this, fn);
16967
16967
  /**
16968
16968
  * An example layout with two children, either column or row-based direction:
16969
16969
  *
@@ -17024,7 +17024,7 @@ class n8 extends Fn {
17024
17024
  *
17025
17025
  * @type { Partial<Record<import("../spec/channel.js").PrimaryPositionalChannel, AxisView>> } }
17026
17026
  */
17027
- I(this, un, {});
17027
+ I(this, ln, {});
17028
17028
  I(this, _n, 0);
17029
17029
  this.spec = n, Z(this, Jn, n.spacing ?? 10), Z(this, qn, a), Z(this, Pe, []), this.wrappingFacet = !1;
17030
17030
  }
@@ -17089,7 +17089,7 @@ class n8 extends Fn {
17089
17089
  this,
17090
17090
  this
17091
17091
  );
17092
- n.push(a.initializeChildren()), C(this, un)[r] = a;
17092
+ n.push(a.initializeChildren()), C(this, ln)[r] = a;
17093
17093
  }
17094
17094
  }
17095
17095
  }
@@ -17104,7 +17104,7 @@ class n8 extends Fn {
17104
17104
  *[Symbol.iterator]() {
17105
17105
  for (const n of C(this, Pe))
17106
17106
  yield* n.getChildren();
17107
- for (const n of Object.values(C(this, un)))
17107
+ for (const n of Object.values(C(this, ln)))
17108
17108
  yield n;
17109
17109
  }
17110
17110
  /**
@@ -17157,13 +17157,13 @@ class n8 extends Fn {
17157
17157
  background: g,
17158
17158
  backgroundStroke: m,
17159
17159
  title: A
17160
- } = l, [y, b] = c.getCellCoords(f), w = o[T(this, vi, ic).call(this, "column", y)], S = a[T(this, vi, ic).call(this, "row", b)], E = h.getViewportSize(), D = h.getSize(), O = h.getOverhang(), P = w.location - O.left, J = S.location - O.top, R = (se, Xe) => (se[Xe].grow ? (Xe == "width" ? w : S).size : se[Xe].px) + O[Xe], Oe = R(E, "width"), le = R(E, "height"), ze = R(D, "width"), jt = R(D, "height"), st = l.scrollbars.horizontal, ot = l.scrollbars.vertical, bt = st ? () => u(st.viewportOffset) : () => 0, Fe = ot ? () => u(ot.viewportOffset) : () => 0, Te = new mt(
17160
+ } = l, [y, b] = c.getCellCoords(f), w = o[T(this, vi, ic).call(this, "column", y)], S = a[T(this, vi, ic).call(this, "row", b)], E = h.getViewportSize(), D = h.getSize(), O = h.getOverhang(), P = w.location - O.left, J = S.location - O.top, R = (se, Xe) => (se[Xe].grow ? (Xe == "width" ? w : S).size : se[Xe].px) + O[Xe], Oe = R(E, "width"), le = R(E, "height"), ze = R(D, "width"), jt = R(D, "height"), st = l.scrollbars.horizontal, ot = l.scrollbars.vertical, xt = st ? () => u(st.viewportOffset) : () => 0, Fe = ot ? () => u(ot.viewportOffset) : () => 0, Te = new mt(
17161
17161
  () => r.x + P,
17162
17162
  () => r.y + J,
17163
17163
  () => Oe,
17164
17164
  () => le
17165
17165
  ), Ki = h.isScrollable(), Xt = Ki ? new mt(
17166
- () => r.x + P - bt(),
17166
+ () => r.x + P - xt(),
17167
17167
  () => r.y + J - Fe(),
17168
17168
  () => ze,
17169
17169
  () => jt
@@ -17215,7 +17215,7 @@ class n8 extends Fn {
17215
17215
  clipRect: L
17216
17216
  });
17217
17217
  }
17218
- for (const se of Object.values(C(this, un))) {
17218
+ for (const se of Object.values(C(this, ln))) {
17219
17219
  const Ne = se.axisProps.orient;
17220
17220
  (Ne == "left" && y == 0 || Ne == "right" && y == c.nCols - 1 || Ne == "top" && b == 0 || Ne == "bottom" && b == c.nRows - 1) && se.render(
17221
17221
  n,
@@ -17263,7 +17263,7 @@ class n8 extends Fn {
17263
17263
  return "independent";
17264
17264
  }
17265
17265
  }
17266
- qn = new WeakMap(), Jn = new WeakMap(), Pe = new WeakMap(), un = new WeakMap(), _n = new WeakMap(), ht = new WeakSet(), $t = function() {
17266
+ qn = new WeakMap(), Jn = new WeakMap(), Pe = new WeakMap(), ln = new WeakMap(), _n = new WeakMap(), ht = new WeakSet(), $t = function() {
17267
17267
  return C(this, Pe).filter(
17268
17268
  (n) => n.view.isConfiguredVisible()
17269
17269
  );
@@ -17272,7 +17272,7 @@ qn = new WeakMap(), Jn = new WeakMap(), Pe = new WeakMap(), un = new WeakMap(),
17272
17272
  C(this, ht, $t).length,
17273
17273
  C(this, qn) ?? 1 / 0
17274
17274
  );
17275
- }, ln = new WeakSet(), Ir = function(n) {
17275
+ }, fn = new WeakSet(), Ir = function(n) {
17276
17276
  const r = n == "column" ? "width" : "height", i = (s, o) => s.map((a) => {
17277
17277
  const u = C(this, ht, $t)[a].getOverhangAndPadding();
17278
17278
  return n == "column" ? o ? u.right : u.left : o ? u.bottom : u.top;
@@ -17292,7 +17292,7 @@ qn = new WeakMap(), Jn = new WeakMap(), Pe = new WeakMap(), un = new WeakMap(),
17292
17292
  )
17293
17293
  );
17294
17294
  }, bi = new WeakSet(), nc = function(n) {
17295
- const r = T(this, ln, Ir).call(this, n), i = [];
17295
+ const r = T(this, fn, Ir).call(this, n), i = [];
17296
17296
  i.push(Lr);
17297
17297
  for (const [s, o] of r.entries())
17298
17298
  s > 0 && i.push({ px: C(this, Jn), grow: 0 }), (s == 0 || this.wrappingFacet) && i.push(Lr), i.push({ px: o.axisBefore, grow: 0 }), i.push(o.view), i.push({ px: o.axisAfter, grow: 0 }), (s == r.length - 1 || this.wrappingFacet) && i.push(Lr);
@@ -17302,7 +17302,7 @@ qn = new WeakMap(), Jn = new WeakMap(), Pe = new WeakMap(), un = new WeakMap(),
17302
17302
  const s = n == "row" ? this.spec.height : this.spec.width;
17303
17303
  if (s || s === 0)
17304
17304
  return Pd(s);
17305
- const o = T(this, ln, Ir).call(this, n);
17305
+ const o = T(this, fn, Ir).call(this, n);
17306
17306
  for (const [a, c] of o.entries())
17307
17307
  a > 0 && (i += C(this, Jn)), (a == 0 || this.wrappingFacet) && (i += 0), i += c.axisBefore, i += c.view.px ?? 0, r += c.view.grow ?? 0, i += c.axisAfter, (a == o.length - 1 || this.wrappingFacet) && (i += 0);
17308
17308
  return { px: i, grow: r };
@@ -17315,7 +17315,7 @@ qn = new WeakMap(), Jn = new WeakMap(), Pe = new WeakMap(), un = new WeakMap(),
17315
17315
  2 + 4 * r + 1
17316
17316
  );
17317
17317
  }, Qs = new WeakSet(), hp = function() {
17318
- const n = T(this, ln, Ir).call(this, "column"), r = T(this, ln, Ir).call(this, "row");
17318
+ const n = T(this, fn, Ir).call(this, "column"), r = T(this, fn, Ir).call(this, "row");
17319
17319
  return !n.length || !r.length ? he.zero() : new he(
17320
17320
  r.at(0).axisBefore,
17321
17321
  n.at(-1).axisAfter,
@@ -17324,7 +17324,7 @@ qn = new WeakMap(), Jn = new WeakMap(), Pe = new WeakMap(), un = new WeakMap(),
17324
17324
  );
17325
17325
  }, $n = new WeakSet(), ds = function() {
17326
17326
  const n = (r) => {
17327
- const i = bu[r], s = C(this, un)[i];
17327
+ const i = bu[r], s = C(this, ln)[i];
17328
17328
  return (s == null ? void 0 : s.axisProps.orient) !== r ? 0 : Math.max(
17329
17329
  s.getPerpendicularSize() + s.axisProps.offset,
17330
17330
  0
@@ -17857,7 +17857,7 @@ class a8 {
17857
17857
  n
17858
17858
  ), o && o(a);
17859
17859
  else
17860
- throw new xn(
17860
+ throw new bn(
17861
17861
  "Importing views is not allowed!",
17862
17862
  r
17863
17863
  );
@@ -17874,7 +17874,7 @@ class a8 {
17874
17874
  i,
17875
17875
  s
17876
17876
  );
17877
- return c instanceof Fn && await c.initializeChildren(), c;
17877
+ return c instanceof Tn && await c.initializeChildren(), c;
17878
17878
  }
17879
17879
  }
17880
17880
  er = new WeakMap();
@@ -17899,18 +17899,18 @@ function ac(t) {
17899
17899
  function u8(t) {
17900
17900
  return "samples" in t && De(t.samples) && "spec" in t && De(t.spec);
17901
17901
  }
17902
- var tr, fn, Ci, hn;
17902
+ var tr, hn, Ci, dn;
17903
17903
  class l8 {
17904
17904
  constructor() {
17905
17905
  /** @type {Map<string, any>} */
17906
17906
  I(this, tr, void 0);
17907
17907
  /** @type {Set<string>} */
17908
- I(this, fn, void 0);
17908
+ I(this, hn, void 0);
17909
17909
  /** @type {Record<string, any>} */
17910
17910
  I(this, Ci, void 0);
17911
17911
  /** @type {Map<string, Set<() => void>>} */
17912
- I(this, hn, void 0);
17913
- Z(this, tr, /* @__PURE__ */ new Map()), Z(this, fn, /* @__PURE__ */ new Set()), Z(this, hn, /* @__PURE__ */ new Map()), Z(this, Ci, new Proxy(C(this, tr), {
17912
+ I(this, dn, void 0);
17913
+ Z(this, tr, /* @__PURE__ */ new Map()), Z(this, hn, /* @__PURE__ */ new Set()), Z(this, dn, /* @__PURE__ */ new Map()), Z(this, Ci, new Proxy(C(this, tr), {
17914
17914
  get(e, n) {
17915
17915
  return Q(n) ? e.get(n) : void 0;
17916
17916
  }
@@ -17922,13 +17922,13 @@ class l8 {
17922
17922
  * @returns {(value: any) => void}
17923
17923
  */
17924
17924
  allocateSetter(e) {
17925
- if (C(this, fn).has(e))
17925
+ if (C(this, hn).has(e))
17926
17926
  throw new Error(
17927
17927
  "Setter already allocated for parameter: " + e
17928
17928
  );
17929
- return C(this, fn).add(e), (n) => {
17929
+ return C(this, hn).add(e), (n) => {
17930
17930
  C(this, tr).set(e, n);
17931
- const r = C(this, hn).get(e);
17931
+ const r = C(this, dn).get(e);
17932
17932
  if (r)
17933
17933
  for (const i of r)
17934
17934
  i();
@@ -17946,19 +17946,19 @@ class l8 {
17946
17946
  so(e, C(this, Ci))
17947
17947
  );
17948
17948
  for (const r of n.globals)
17949
- if (!C(this, fn).has(r))
17949
+ if (!C(this, hn).has(r))
17950
17950
  throw new Error(
17951
17951
  `Unknown variable "${r}" in expression: ${e}`
17952
17952
  );
17953
17953
  return n.addListener = (r) => {
17954
17954
  for (const i of n.globals) {
17955
- const s = C(this, hn).get(i) ?? /* @__PURE__ */ new Set();
17956
- C(this, hn).set(i, s), s.add(r);
17955
+ const s = C(this, dn).get(i) ?? /* @__PURE__ */ new Set();
17956
+ C(this, dn).set(i, s), s.add(r);
17957
17957
  }
17958
17958
  }, n;
17959
17959
  }
17960
17960
  }
17961
- tr = new WeakMap(), fn = new WeakMap(), Ci = new WeakMap(), hn = new WeakMap();
17961
+ tr = new WeakMap(), hn = new WeakMap(), Ci = new WeakMap(), dn = new WeakMap();
17962
17962
  _f("fasta", TC);
17963
17963
  class f8 {
17964
17964
  /**