@graphysdk/react 1.9.0-beta.1793880532798 → 1.9.0-beta.1793882432228

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.
@@ -182,7 +182,7 @@ var bD = [
182
182
  } catch {
183
183
  return e;
184
184
  }
185
- }, zT = (e) => wl(e) ? e.stops.every((t) => qa(t.color)) : Ta(e) ? e.background !== void 0 && qa(e.color) && qa(e.background) : fm(e) ? qa(e.fallback) : qa(e), qa = (e) => {
185
+ }, zT = (e) => wl(e) ? e.stops.every((t) => Xa(t.color)) : Ta(e) ? e.background !== void 0 && Xa(e.color) && Xa(e.background) : fm(e) ? Xa(e.fallback) : Xa(e), Xa = (e) => {
186
186
  try {
187
187
  return En(Xi(e))[3] >= 1;
188
188
  } catch {
@@ -375,7 +375,7 @@ var FD = {
375
375
  nextWeek: "eeee 'at' p",
376
376
  other: "P"
377
377
  }, WD = (e, t, r, n) => $D[e];
378
- function Qa(e) {
378
+ function qa(e) {
379
379
  return (t, r) => {
380
380
  const n = r?.context ? String(r.context) : "standalone";
381
381
  let i;
@@ -568,31 +568,31 @@ var UD = {
568
568
  return r + "th";
569
569
  }, QD = {
570
570
  ordinalNumber: qD,
571
- era: Qa({
571
+ era: qa({
572
572
  values: UD,
573
573
  defaultWidth: "wide"
574
574
  }),
575
- quarter: Qa({
575
+ quarter: qa({
576
576
  values: jD,
577
577
  defaultWidth: "wide",
578
578
  argumentCallback: (e) => e - 1
579
579
  }),
580
- month: Qa({
580
+ month: qa({
581
581
  values: zD,
582
582
  defaultWidth: "wide"
583
583
  }),
584
- day: Qa({
584
+ day: qa({
585
585
  values: YD,
586
586
  defaultWidth: "wide"
587
587
  }),
588
- dayPeriod: Qa({
588
+ dayPeriod: qa({
589
589
  values: KD,
590
590
  defaultWidth: "wide",
591
591
  formattingValues: XD,
592
592
  defaultFormattingWidth: "wide"
593
593
  })
594
594
  };
595
- function Za(e) {
595
+ function Qa(e) {
596
596
  return (t, r = {}) => {
597
597
  const n = r.width, i = n && e.matchPatterns[n] || e.matchPatterns[e.defaultMatchWidth], o = t.match(i);
598
598
  if (!o) return null;
@@ -715,32 +715,32 @@ var tO = /^(\d+)(th|st|nd|rd)?/i, rO = /\d+/i, nO = {
715
715
  parsePattern: rO,
716
716
  valueCallback: (e) => parseInt(e, 10)
717
717
  }),
718
- era: Za({
718
+ era: Qa({
719
719
  matchPatterns: nO,
720
720
  defaultMatchWidth: "wide",
721
721
  parsePatterns: iO,
722
722
  defaultParseWidth: "any"
723
723
  }),
724
- quarter: Za({
724
+ quarter: Qa({
725
725
  matchPatterns: oO,
726
726
  defaultMatchWidth: "wide",
727
727
  parsePatterns: aO,
728
728
  defaultParseWidth: "any",
729
729
  valueCallback: (e) => e + 1
730
730
  }),
731
- month: Za({
731
+ month: Qa({
732
732
  matchPatterns: sO,
733
733
  defaultMatchWidth: "wide",
734
734
  parsePatterns: lO,
735
735
  defaultParseWidth: "any"
736
736
  }),
737
- day: Za({
737
+ day: Qa({
738
738
  matchPatterns: cO,
739
739
  defaultMatchWidth: "wide",
740
740
  parsePatterns: uO,
741
741
  defaultParseWidth: "any"
742
742
  }),
743
- dayPeriod: Za({
743
+ dayPeriod: Qa({
744
744
  matchPatterns: dO,
745
745
  defaultMatchWidth: "any",
746
746
  parsePatterns: hO,
@@ -2660,16 +2660,16 @@ function Ea(e) {
2660
2660
  var ed = (e) => {
2661
2661
  const t = X(e.mapping.x);
2662
2662
  return t !== null && t !== Zn.x ? t : d1(e) ?? xe.group;
2663
- }, l1 = (e) => $N(e) ? X(e.mapping.y) : null, c1 = (e) => l1(e) === null ? null : Ea(e), u1 = (e) => e.spatialKind !== "cells" && ed(e) !== d1(e), d1 = (e) => typeof e.identityKey == "object" ? e.identityKey.variable : null, $N = (e) => e.spatialKind === "points" || e.spatialKind === "cells", If = (e, t) => e.yScaleType === t.yScaleType && Rf(e.valueFormat) === Rf(t.valueFormat), Vy = (e) => `${e.yScaleType} y axis, ${Rf(e.valueFormat)}`, Rf = (e) => e.type === "currency" ? `${e.type}:${e.iso}` : e.type, h1 = typeof global == "object" && global && global.Object === Object && global, WN = typeof self == "object" && self && self.Object === Object && self, fn = h1 || WN || Function("return this")(), cn = fn.Symbol, f1 = Object.prototype, UN = f1.hasOwnProperty, jN = f1.toString, Ja = cn ? cn.toStringTag : void 0;
2663
+ }, l1 = (e) => $N(e) ? X(e.mapping.y) : null, c1 = (e) => l1(e) === null ? null : Ea(e), u1 = (e) => e.spatialKind !== "cells" && ed(e) !== d1(e), d1 = (e) => typeof e.identityKey == "object" ? e.identityKey.variable : null, $N = (e) => e.spatialKind === "points" || e.spatialKind === "cells", If = (e, t) => e.yScaleType === t.yScaleType && Rf(e.valueFormat) === Rf(t.valueFormat), Vy = (e) => `${e.yScaleType} y axis, ${Rf(e.valueFormat)}`, Rf = (e) => e.type === "currency" ? `${e.type}:${e.iso}` : e.type, h1 = typeof global == "object" && global && global.Object === Object && global, WN = typeof self == "object" && self && self.Object === Object && self, fn = h1 || WN || Function("return this")(), cn = fn.Symbol, f1 = Object.prototype, UN = f1.hasOwnProperty, jN = f1.toString, Za = cn ? cn.toStringTag : void 0;
2664
2664
  function zN(e) {
2665
- var t = UN.call(e, Ja), r = e[Ja];
2665
+ var t = UN.call(e, Za), r = e[Za];
2666
2666
  try {
2667
- e[Ja] = void 0;
2667
+ e[Za] = void 0;
2668
2668
  var n = !0;
2669
2669
  } catch {
2670
2670
  }
2671
2671
  var i = jN.call(e);
2672
- return n && (t ? e[Ja] = r : delete e[Ja]), i;
2672
+ return n && (t ? e[Za] = r : delete e[Za]), i;
2673
2673
  }
2674
2674
  var YN = Object.prototype.toString;
2675
2675
  function KN(e) {
@@ -3380,11 +3380,11 @@ function cH(e, t, r, n, i, o) {
3380
3380
  }
3381
3381
  return o.delete(e), o.delete(t), f;
3382
3382
  }
3383
- var uH = 1, h0 = "[object Arguments]", f0 = "[object Array]", ic = "[object Object]", p0 = Object.prototype.hasOwnProperty;
3383
+ var uH = 1, h0 = "[object Arguments]", f0 = "[object Array]", oc = "[object Object]", p0 = Object.prototype.hasOwnProperty;
3384
3384
  function dH(e, t, r, n, i, o) {
3385
3385
  var a = kr(e), s = kr(t), l = a ? f0 : u0(e), c = s ? f0 : u0(t);
3386
- l = l == h0 ? ic : l, c = c == h0 ? ic : c;
3387
- var u = l == ic, d = c == ic, h = l == c;
3386
+ l = l == h0 ? oc : l, c = c == h0 ? oc : c;
3387
+ var u = l == oc, d = c == oc, h = l == c;
3388
3388
  if (h && su(e)) {
3389
3389
  if (!su(t)) return !1;
3390
3390
  a = !0, u = !1;
@@ -3500,7 +3500,7 @@ function AH(e, t) {
3500
3500
  }
3501
3501
  var TH = uV(function(e, t) {
3502
3502
  return e == null ? {} : AH(e, t);
3503
- }), ka = "en-GB", Im = class extends Error {
3503
+ }), Cl = "en-US", Im = class extends Error {
3504
3504
  constructor(e) {
3505
3505
  super(e.message, e.cause !== void 0 ? { cause: e.cause } : void 0), this.name = new.target.name, this.code = e.code, this.context = e.context, this.suggestion = e.suggestion;
3506
3506
  }
@@ -3515,9 +3515,9 @@ var TH = uV(function(e, t) {
3515
3515
  code: e.code ?? "INTERNAL_INVARIANT"
3516
3516
  }), this.kind = "internal";
3517
3517
  }
3518
- }, Rm = (e) => e.type === "lookup", MH = (e) => e.type === "text", Pa = (e) => e.type === "date" || e.type === "datetime" || e.type === "year" || e.type === "monthYear" || e.type === "month" || e.type === "dayMonth" || e.type === "weeklyDateRange" || e.type === "weeklyDateRangeWithYear" || e.type === "quarter" || e.type === "time", D1 = (e) => e.type === "decimal" || e.type === "integer" || e.type === "percentage" || e.type === "duration" || e.type === "currency", O1 = (e) => e.type === "currency", N1 = (e) => e.type === "month" || e.type === "dayMonth" || e.type === "weeklyDateRange", B1 = (e) => {
3518
+ }, Rm = (e) => e.type === "lookup", MH = (e) => e.type === "text", ka = (e) => e.type === "date" || e.type === "datetime" || e.type === "year" || e.type === "monthYear" || e.type === "month" || e.type === "dayMonth" || e.type === "weeklyDateRange" || e.type === "weeklyDateRangeWithYear" || e.type === "quarter" || e.type === "time", D1 = (e) => e.type === "decimal" || e.type === "integer" || e.type === "percentage" || e.type === "duration" || e.type === "currency", O1 = (e) => e.type === "currency", N1 = (e) => e.type === "month" || e.type === "dayMonth" || e.type === "weeklyDateRange", B1 = (e) => {
3519
3519
  if (Rm(e)) return B1(e.fallback);
3520
- if (Pa(e)) return "temporal";
3520
+ if (ka(e)) return "temporal";
3521
3521
  if (D1(e)) return "numeric";
3522
3522
  if (MH(e)) return "categorical";
3523
3523
  throw new he({ message: `No data type found for value format: ${e.type}` });
@@ -3772,20 +3772,20 @@ var TH = uV(function(e, t) {
3772
3772
  let t = e;
3773
3773
  for (const [r, n] of _H) t = t.replace(r, n);
3774
3774
  return t;
3775
- }, j1 = (e, t = ka) => {
3775
+ }, j1 = (e, t = Cl) => {
3776
3776
  const r = zs(e);
3777
- return ld(r) ? { type: "datetime" } : z1(t).find((n) => !Pa(n) || n.type === "month" && r.length < LH ? !1 : n.dateFormat && Gt(la(r, n.dateFormat, /* @__PURE__ */ new Date())));
3777
+ return ld(r) ? { type: "datetime" } : z1(t).find((n) => !ka(n) || n.type === "month" && r.length < LH ? !1 : n.dateFormat && Gt(la(r, n.dateFormat, /* @__PURE__ */ new Date())));
3778
3778
  }, ld = (e) => PH.test(e.trim()), HH = (e) => {
3779
3779
  if (e instanceof Date) return Gt(e) ? e : null;
3780
3780
  if (typeof e != "string" || !ld(e)) return null;
3781
3781
  const t = new Date(e.trim());
3782
3782
  return Gt(t) ? t : null;
3783
- }, GH = (e, t = ka) => {
3783
+ }, GH = (e, t = Cl) => {
3784
3784
  const [r, n] = e.split(FH);
3785
3785
  if (!r || !n) return;
3786
3786
  const i = zs(r).trim(), o = zs(n).trim();
3787
3787
  return $H(t).find((a) => {
3788
- if (!Pa(a) || !a.dateFormat) return !1;
3788
+ if (!ka(a) || !a.dateFormat) return !1;
3789
3789
  const s = la(i, a.dateFormat, /* @__PURE__ */ new Date()), l = la(o, a.dateFormat, /* @__PURE__ */ new Date());
3790
3790
  if (!Gt(s) || !Gt(l)) return !1;
3791
3791
  const c = new F1(), u = c.incrementYearIfNeeded(s), d = c.incrementYearIfNeeded(l), h = qT(d, u);
@@ -3922,7 +3922,7 @@ var TH = uV(function(e, t) {
3922
3922
  return Gt(a) ? Mh(a) : null;
3923
3923
  }
3924
3924
  for (const a of z1(r)) {
3925
- if (!Pa(a) || !a.dateFormat) continue;
3925
+ if (!ka(a) || !a.dateFormat) continue;
3926
3926
  const s = la(n, a.dateFormat, i);
3927
3927
  if (Gt(s)) return Mh(s);
3928
3928
  }
@@ -3957,7 +3957,7 @@ var TH = uV(function(e, t) {
3957
3957
  }, XH = (e) => String(e).trim(), Mh = (e) => new Date(Date.UTC(e.getFullYear(), e.getMonth(), e.getDate(), e.getHours(), e.getMinutes(), e.getSeconds(), e.getMilliseconds())), $i = (e, t, r) => {
3958
3958
  if (t.type === "text" && typeof e == "string") return e;
3959
3959
  const n = J1(e, t, r);
3960
- return n !== null || !Pa(t) ? n : HH(e);
3960
+ return n !== null || !ka(t) ? n : HH(e);
3961
3961
  }, qH = (e, t) => {
3962
3962
  const r = As(e.data.getValueFormat(ed(e))), n = l1(e);
3963
3963
  return (i) => ({
@@ -3985,7 +3985,7 @@ function Vf(e) {
3985
3985
  function QH(e, t) {
3986
3986
  return nM(e, t);
3987
3987
  }
3988
- function oc(e, t) {
3988
+ function Ja(e, t) {
3989
3989
  for (const r of Object.keys(t)) {
3990
3990
  const n = t[r];
3991
3991
  if (n !== void 0 && n !== e[r]) return {
@@ -4183,13 +4183,13 @@ var a5 = [
4183
4183
  if (typeof e != "object" || e === null) return !1;
4184
4184
  const t = Object.keys(e);
4185
4185
  return t.length === 1 && t[0] === "image" && typeof e.image == "string";
4186
- }, Cl = (e) => typeof e == "object" && e !== null && typeof e.light == "string" && typeof e.dark == "string", lM = (e) => typeof e == "object" && e !== null && typeof e.token == "string", cM = (e) => typeof e == "string" ? e.trim().length > 0 : Cl(e) && e.light.trim().length > 0 && e.dark.trim().length > 0;
4186
+ }, _l = (e) => typeof e == "object" && e !== null && typeof e.light == "string" && typeof e.dark == "string", lM = (e) => typeof e == "object" && e !== null && typeof e.token == "string", cM = (e) => typeof e == "string" ? e.trim().length > 0 : _l(e) && e.light.trim().length > 0 && e.dark.trim().length > 0;
4187
4187
  function te(e) {
4188
4188
  return { token: e };
4189
4189
  }
4190
4190
  var Yn = (e, t) => {
4191
4191
  if (typeof e != "object" || e === null) return e;
4192
- if (Cl(e)) return e[t];
4192
+ if (_l(e)) return e[t];
4193
4193
  if (Array.isArray(e)) {
4194
4194
  if (e.every((i) => typeof i == "number")) return e;
4195
4195
  const n = e.map((i) => Yn(i, t));
@@ -4262,7 +4262,7 @@ var Yn = (e, t) => {
4262
4262
  }
4263
4263
  } : { status: "dropped" };
4264
4264
  }
4265
- return Cl(e) && e.light.trim().length > 0 && e.dark.trim().length > 0 ? {
4265
+ return _l(e) && e.light.trim().length > 0 && e.dark.trim().length > 0 ? {
4266
4266
  status: "accepted",
4267
4267
  value: {
4268
4268
  light: e.light,
@@ -4270,7 +4270,7 @@ var Yn = (e, t) => {
4270
4270
  }
4271
4271
  } : pe(S0, e);
4272
4272
  }, uM = (e, t) => {
4273
- if (typeof e != "object" || e === null || Cl(e) || lM(e)) return $n(e, t);
4273
+ if (typeof e != "object" || e === null || _l(e) || lM(e)) return $n(e, t);
4274
4274
  const r = e;
4275
4275
  if (wl(r)) {
4276
4276
  const n = r.gradient;
@@ -5680,13 +5680,17 @@ var T3 = "value", Es = {
5680
5680
  if (r === "count") return new Array(e.rowCount);
5681
5681
  throw new he({ message: `Variable '${t}' not defined` });
5682
5682
  }, Kn = class Ft {
5683
- constructor(t = {}) {
5684
- const { table: r, variableMetadata: n } = this.parseVariableMap(t);
5685
- this.table = r, this.variableMetadata = n;
5686
- }
5687
- static fromTrusted(t, r) {
5688
- const n = Object.create(Ft.prototype);
5689
- return n.table = t, n.variableMetadata = r, n;
5683
+ constructor(t = {}, r = Cl) {
5684
+ const { table: n, variableMetadata: i } = this.parseVariableMap(t);
5685
+ this.table = n, this.variableMetadata = i, this.parsingLocale = r;
5686
+ }
5687
+ static fromTrusted(t, r, n) {
5688
+ const i = Object.create(Ft.prototype);
5689
+ return Object.assign(i, {
5690
+ table: t,
5691
+ variableMetadata: r,
5692
+ parsingLocale: n
5693
+ });
5690
5694
  }
5691
5695
  size() {
5692
5696
  return this.table.rowCount;
@@ -5706,7 +5710,7 @@ var T3 = "value", Es = {
5706
5710
  valueFormat: this.resolveAddedVariableFormat(t, r, i)
5707
5711
  }
5708
5712
  }, a = this.normalizeRawValues(r, n), s = this.table.assign(t, a);
5709
- return Ft.fromTrusted(s, o);
5713
+ return Ft.fromTrusted(s, o, this.parsingLocale);
5710
5714
  }
5711
5715
  addConstantVariable(t, r, n, i) {
5712
5716
  const o = {
@@ -5717,7 +5721,7 @@ var T3 = "value", Es = {
5717
5721
  constant: { value: n }
5718
5722
  }
5719
5723
  }, [a = null] = this.normalizeRawValues(r, [n]), s = this.table.assign(t, new Array(this.size()).fill(a));
5720
- return Ft.fromTrusted(s, o);
5724
+ return Ft.fromTrusted(s, o, this.parsingLocale);
5721
5725
  }
5722
5726
  getConstant(t) {
5723
5727
  return this.variableMetadata[t]?.constant;
@@ -5737,11 +5741,11 @@ var T3 = "value", Es = {
5737
5741
  ...a,
5738
5742
  [r]: n
5739
5743
  };
5740
- return Ft.fromTrusted(i, s);
5744
+ return Ft.fromTrusted(i, s, this.parsingLocale);
5741
5745
  }
5742
5746
  selectVariables(...t) {
5743
5747
  const r = this.table.select(t), n = Object.fromEntries(Object.entries(this.variableMetadata).filter(([i]) => t.includes(i)));
5744
- return Ft.fromTrusted(r, n);
5748
+ return Ft.fromTrusted(r, n, this.parsingLocale);
5745
5749
  }
5746
5750
  getType(t) {
5747
5751
  const r = this.variableMetadata[t];
@@ -5776,20 +5780,20 @@ var T3 = "value", Es = {
5776
5780
  if (this.hasVariable(t) && this.getType(t) === "temporal") return this.filterByTimestamp(t, r, n);
5777
5781
  const i = F0[r], o = this.table.values(t) ?? [], a = [];
5778
5782
  for (let s = 0; s < o.length; s++) i(o[s] ?? null, n) && a.push(s);
5779
- return Ft.fromTrusted(this.table.take(a), this.variableMetadata);
5783
+ return Ft.fromTrusted(this.table.take(a), this.variableMetadata, this.parsingLocale);
5780
5784
  }
5781
5785
  filterByMask(t) {
5782
5786
  if (t.length !== this.size()) throw new he({ message: `Row mask length ${t.length} does not match dataset size ${this.size()}` });
5783
5787
  const r = [];
5784
5788
  for (let n = 0; n < t.length; n++) t[n] === 1 && r.push(n);
5785
- return Ft.fromTrusted(this.table.take(r), this.variableMetadata);
5789
+ return Ft.fromTrusted(this.table.take(r), this.variableMetadata, this.parsingLocale);
5786
5790
  }
5787
5791
  take(t) {
5788
- return Ft.fromTrusted(this.table.take(t), this.variableMetadata);
5792
+ return Ft.fromTrusted(this.table.take(t), this.variableMetadata, this.parsingLocale);
5789
5793
  }
5790
5794
  orderBy(t, r = "asc") {
5791
5795
  const n = this.table.take(this.table.sortedIndices(t, r));
5792
- return Ft.fromTrusted(n, this.variableMetadata);
5796
+ return Ft.fromTrusted(n, this.variableMetadata, this.parsingLocale);
5793
5797
  }
5794
5798
  getAt(t) {
5795
5799
  return t < 0 || t >= this.size() ? null : this.table.objectAt(t);
@@ -5816,7 +5820,7 @@ var T3 = "value", Es = {
5816
5820
  return null;
5817
5821
  }
5818
5822
  groupBy(...t) {
5819
- return new M3(t, this.table, this.variableMetadata);
5823
+ return new M3(t, this.table, this.variableMetadata, this.parsingLocale);
5820
5824
  }
5821
5825
  rollup(t) {
5822
5826
  const r = Hf.from(Object.fromEntries(Object.entries(t).map(([i, { variableName: o, aggregation: a }]) => [i, [RM(a, DM(this.table, o, a), void 0, {
@@ -5830,7 +5834,7 @@ var T3 = "value", Es = {
5830
5834
  valueFormat: LM(a, c)
5831
5835
  };
5832
5836
  }
5833
- return Ft.fromTrusted(r, n);
5837
+ return Ft.fromTrusted(r, n, this.parsingLocale);
5834
5838
  }
5835
5839
  reshapeFromWideToLong({ keep: t, reshape: r, keyName: n = "key", valueName: i = T3 } = {}) {
5836
5840
  const { numeric: o, categorical: a, temporal: s } = this.groupVariableNamesByType(), l = t ?? [...a, ...s], c = r ?? o.filter((h) => !l.includes(h));
@@ -5873,7 +5877,7 @@ var T3 = "value", Es = {
5873
5877
  }, d[i] = {
5874
5878
  type: "numeric",
5875
5879
  valueFormat: E3(this.variableMetadata, c, n)
5876
- }, Ft.fromTrusted(u, d);
5880
+ }, Ft.fromTrusted(u, d, this.parsingLocale);
5877
5881
  }
5878
5882
  print() {
5879
5883
  console.table(this.variableMetadata), console.table([...this.table]);
@@ -5882,9 +5886,9 @@ var T3 = "value", Es = {
5882
5886
  return this.table[Symbol.iterator]();
5883
5887
  }
5884
5888
  filterByTimestamp(t, r, n) {
5885
- const i = F0[r], o = $i(n, this.getValueFormat(t), ka), a = V0(o ?? n), s = this.getValues(t, { type: "temporal" }), l = [];
5889
+ const i = F0[r], o = $i(n, this.getValueFormat(t), this.parsingLocale), a = V0(o ?? n), s = this.getValues(t, { type: "temporal" }), l = [];
5886
5890
  for (let c = 0; c < s.length; c++) i(V0(s[c] ?? null), a) && l.push(c);
5887
- return Ft.fromTrusted(this.table.take(l), this.variableMetadata);
5891
+ return Ft.fromTrusted(this.table.take(l), this.variableMetadata, this.parsingLocale);
5888
5892
  }
5889
5893
  resolveAddedVariableFormat(t, r, n) {
5890
5894
  if (n !== void 0) return n;
@@ -5927,12 +5931,12 @@ var T3 = "value", Es = {
5927
5931
  return o;
5928
5932
  }
5929
5933
  }, M3 = class {
5930
- constructor(e, t, r) {
5931
- this.groupedBy = e, this.table = t, this.variableMetadata = r;
5934
+ constructor(e, t, r, n) {
5935
+ this.groupedBy = e, this.table = t, this.variableMetadata = r, this.parsingLocale = n;
5932
5936
  }
5933
5937
  forEach(e) {
5934
5938
  this.readPartitions().forEach(({ key: t, indices: r }, n) => {
5935
- e(Kn.fromTrusted(this.table.take(r), this.variableMetadata), t, n);
5939
+ e(Kn.fromTrusted(this.table.take(r), this.variableMetadata, this.parsingLocale), t, n);
5936
5940
  });
5937
5941
  }
5938
5942
  rollup(e) {
@@ -5960,7 +5964,7 @@ var T3 = "value", Es = {
5960
5964
  valueFormat: LM(a, u)
5961
5965
  };
5962
5966
  }
5963
- return Kn.fromTrusted(Hf.from(r), n);
5967
+ return Kn.fromTrusted(Hf.from(r), n, this.parsingLocale);
5964
5968
  }
5965
5969
  readPartitions() {
5966
5970
  return this.partitions ??= this.table.partition(this.groupedBy), this.partitions;
@@ -6078,7 +6082,7 @@ var P3 = class extends ui {
6078
6082
  transform(e) {
6079
6083
  return this.transformStage.compile(e);
6080
6084
  }
6081
- }, Ca = class {
6085
+ }, Pa = class {
6082
6086
  constructor(e) {
6083
6087
  this.label = e, this.items = /* @__PURE__ */ new Map();
6084
6088
  }
@@ -6331,7 +6335,7 @@ function Q3(e) {
6331
6335
  data: t
6332
6336
  };
6333
6337
  }
6334
- var Z3 = class extends Ca {
6338
+ var Z3 = class extends Pa {
6335
6339
  constructor() {
6336
6340
  super("coord"), this.register("cartesian", new R3()), this.register("flip", new L3()), this.register("polar", new G3());
6337
6341
  }
@@ -6349,15 +6353,15 @@ var Z3 = class extends Ca {
6349
6353
  type: "year",
6350
6354
  dateFormat: "yyyy"
6351
6355
  }, tG = { type: "text" }, rG = (e) => {
6352
- const t = e._metadata?.parsingLocale ?? "en-GB", r = {}, n = aG(e), i = iG(e), o = n.size > 0;
6356
+ const t = e.parsingLocale ?? "en-US", r = {}, n = aG(e), i = iG(e), o = n.size > 0;
6353
6357
  for (const [a, s] of e.columns.entries()) {
6354
- if (s._metadata?.hidden) continue;
6358
+ if (s.visible === !1) continue;
6355
6359
  const l = n.get(s.key);
6356
6360
  if (da(l) && o) continue;
6357
6361
  const c = s.valueFormat ?? (da(l) ? tG : a === i ? eG : J3(l, t)), u = B1(c);
6358
6362
  r[s.key] = oG(s.key, e.rows, c, u, t);
6359
6363
  }
6360
- return new Kn(r);
6364
+ return new Kn(r, t);
6361
6365
  }, nG = class extends ui {
6362
6366
  dependencies(e) {
6363
6367
  return [e];
@@ -6465,7 +6469,7 @@ var Ch = (e) => {
6465
6469
  case "continuous":
6466
6470
  return D1(e);
6467
6471
  case "datetime":
6468
- return Pa(e);
6472
+ return ka(e);
6469
6473
  case "discrete":
6470
6474
  case "identity":
6471
6475
  return !0;
@@ -6597,7 +6601,7 @@ var E0e = ii.range, Um = mt(function(e) {
6597
6601
  return (t - e) / Sn;
6598
6602
  }, function(e) {
6599
6603
  return e.getUTCHours();
6600
- }), P0e = md.range, _a = mt(function(e) {
6604
+ }), P0e = md.range, Ca = mt(function(e) {
6601
6605
  e.setUTCHours(0, 0, 0, 0);
6602
6606
  }, function(e, t) {
6603
6607
  e.setUTCDate(e.getUTCDate() + t);
@@ -6605,7 +6609,7 @@ var E0e = ii.range, Um = mt(function(e) {
6605
6609
  return (t - e) / ro;
6606
6610
  }, function(e) {
6607
6611
  return e.getUTCDate() - 1;
6608
- }), C0e = _a.range;
6612
+ }), C0e = Ca.range;
6609
6613
  function go(e) {
6610
6614
  return mt(function(t) {
6611
6615
  t.setUTCDate(t.getUTCDate() - (t.getUTCDay() + 7 - e) % 7), t.setUTCHours(0, 0, 0, 0);
@@ -6848,7 +6852,7 @@ function UM(e, t, r, n, i, o) {
6848
6852
  }
6849
6853
  return [s, l];
6850
6854
  }
6851
- var [_G, IG] = UM(un, vd, gd, _a, md, Um), [G0e, $0e] = UM(ii, HM, Wm, pd, VM, FM), RG = [
6855
+ var [_G, IG] = UM(un, vd, gd, Ca, md, Um), [G0e, $0e] = UM(ii, HM, Wm, pd, VM, FM), RG = [
6852
6856
  {
6853
6857
  unit: "year",
6854
6858
  step: 1e3
@@ -6975,7 +6979,7 @@ var [_G, IG] = UM(un, vd, gd, _a, md, Um), [G0e, $0e] = UM(ii, HM, Wm, pd, VM, F
6975
6979
  case "hour":
6976
6980
  return md;
6977
6981
  case "day":
6978
- return _a;
6982
+ return Ca;
6979
6983
  case "week":
6980
6984
  return Xs;
6981
6985
  case "month":
@@ -9819,12 +9823,12 @@ var N4 = (e) => e.observation?.aesthetics ?? Te.geom.aesthetics, pE = (e) => e.o
9819
9823
  resolveParams(e) {
9820
9824
  return uo({}, this.defaultParams, e.params);
9821
9825
  }
9822
- }, cb = 0.5, _l = (e) => ({
9826
+ }, cb = 0.5, Il = (e) => ({
9823
9827
  x: 0,
9824
9828
  y: 0,
9825
9829
  width: e.width,
9826
9830
  height: e.height
9827
- }), Zm = (e) => e === "panelEnd" ? "end" : e === "panelStart" ? "start" : e, Il = ({ box: e, panel: t, orientation: r, placement: n, justify: i, align: o, offset: a, alignOffset: s, labelWidth: l, labelHeight: c }) => {
9831
+ }), Zm = (e) => e === "panelEnd" ? "end" : e === "panelStart" ? "start" : e, Rl = ({ box: e, panel: t, orientation: r, placement: n, justify: i, align: o, offset: a, alignOffset: s, labelWidth: l, labelHeight: c }) => {
9828
9832
  const u = i === "panelStart" || i === "panelEnd", d = (r.valueAxis === "x" ? e.height : e.width) === 0, h = {
9829
9833
  anchor: F4(i, r.valueDirectionSign),
9830
9834
  placement: u ? "inside" : n,
@@ -9872,9 +9876,9 @@ var N4 = (e) => e.observation?.aesthetics ?? Te.geom.aesthetics, pE = (e) => e.o
9872
9876
  slice: a,
9873
9877
  mainAxis: i,
9874
9878
  panelRect: e.panelRect
9875
- }), h = Il({
9879
+ }), h = Rl({
9876
9880
  box: u,
9877
- panel: _l(e.panelRect),
9881
+ panel: Il(e.panelRect),
9878
9882
  orientation: d,
9879
9883
  ...n,
9880
9884
  offset: r,
@@ -10264,7 +10268,7 @@ var N4 = (e) => e.observation?.aesthetics ?? Te.geom.aesthetics, pE = (e) => e.o
10264
10268
  panelWidth: e.panelRect.width,
10265
10269
  panelHeight: e.panelRect.height,
10266
10270
  offset: e.layer.dataLabels.offset
10267
- }) : uW(e.layer.dataLabels, e.coordSystem.mainAxis, n, s, _l(e.panelRect));
10271
+ }) : uW(e.layer.dataLabels, e.coordSystem.mainAxis, n, s, Il(e.panelRect));
10268
10272
  if (l === null) {
10269
10273
  r += 1;
10270
10274
  continue;
@@ -10354,7 +10358,7 @@ var N4 = (e) => e.observation?.aesthetics ?? Te.geom.aesthetics, pE = (e) => e.o
10354
10358
  valueDirectionSign: e === "right" ? 1 : -1
10355
10359
  }, cW = (e) => e === "panelStart" || e === "panelEnd", uW = (e, t, r, n, i) => {
10356
10360
  if (e.position === "auto") return null;
10357
- const o = r && e.position === "outside" ? "inside" : e.position, a = n.boxes[o], s = Il({
10361
+ const o = r && e.position === "outside" ? "inside" : e.position, a = n.boxes[o], s = Rl({
10358
10362
  box: n.bounds,
10359
10363
  panel: i,
10360
10364
  orientation: bE(n.tipEdge),
@@ -10381,13 +10385,13 @@ var N4 = (e) => e.observation?.aesthetics ?? Te.geom.aesthetics, pE = (e) => e.o
10381
10385
  position: s.position
10382
10386
  };
10383
10387
  }, dW = (e, t, r) => {
10384
- const n = [], { categoryPosition: i, categoryJustify: o, categoryAlign: a, categoryOffset: s } = e.layer.dataLabels, l = t && i === "outside" ? "inside" : i, c = e.coordSystem.mainAxis, u = _l(e.panelRect);
10388
+ const n = [], { categoryPosition: i, categoryJustify: o, categoryAlign: a, categoryOffset: s } = e.layer.dataLabels, l = t && i === "outside" ? "inside" : i, c = e.coordSystem.mainAxis, u = Il(e.panelRect);
10385
10389
  for (const d of e.layer.data) {
10386
10390
  const h = r(d);
10387
10391
  if (h === null) continue;
10388
10392
  const f = e.formatCategory(d);
10389
10393
  if (f === null || f === "") continue;
10390
- const p = eg(e.measureDataLabel, "category", f), m = p[l], g = Il({
10394
+ const p = eg(e.measureDataLabel, "category", f), m = p[l], g = Rl({
10391
10395
  box: ag(h, e.panelRect),
10392
10396
  panel: u,
10393
10397
  orientation: bE(Ml(d, c)),
@@ -10853,14 +10857,14 @@ var vW = " · ", xn = 2, yW = (e) => {
10853
10857
  if (o === null || a === null || !eo(o, a)) continue;
10854
10858
  const s = e.formatLabel(i);
10855
10859
  if (s === "") continue;
10856
- const { width: l, height: c } = e.measureDataLabel("observation", "outside", s), u = Il({
10860
+ const { width: l, height: c } = e.measureDataLabel("observation", "outside", s), u = Rl({
10857
10861
  box: {
10858
10862
  x: o * e.panelRect.width,
10859
10863
  y: (1 - a) * e.panelRect.height,
10860
10864
  width: 0,
10861
10865
  height: 0
10862
10866
  },
10863
- panel: _l(e.panelRect),
10867
+ panel: Il(e.panelRect),
10864
10868
  orientation: {
10865
10869
  valueAxis: "y",
10866
10870
  valueDirectionSign: -1
@@ -10981,14 +10985,14 @@ var vW = " · ", xn = 2, yW = (e) => {
10981
10985
  if (s === null || l === null || !eo(s, l)) continue;
10982
10986
  const c = e.formatLabel(a);
10983
10987
  if (c === "") continue;
10984
- const { width: u, height: d } = e.measureDataLabel("observation", "outside", c), h = o.get("size", a) / 2, f = Il({
10988
+ const { width: u, height: d } = e.measureDataLabel("observation", "outside", c), h = o.get("size", a) / 2, f = Rl({
10985
10989
  box: {
10986
10990
  x: s * e.panelRect.width,
10987
10991
  y: (1 - l) * e.panelRect.height,
10988
10992
  width: 0,
10989
10993
  height: 0
10990
10994
  },
10991
- panel: _l(e.panelRect),
10995
+ panel: Il(e.panelRect),
10992
10996
  orientation: {
10993
10997
  valueAxis: "y",
10994
10998
  valueDirectionSign: -1
@@ -11150,7 +11154,7 @@ var vW = " · ", xn = 2, yW = (e) => {
11150
11154
  type: "numeric",
11151
11155
  values: [r.value],
11152
11156
  valueFormat: r.sourceFormat
11153
- } }),
11157
+ } }, e.parsingLocale),
11154
11158
  mapping: {
11155
11159
  y: fs.y,
11156
11160
  x: void 0
@@ -11162,7 +11166,7 @@ var vW = " · ", xn = 2, yW = (e) => {
11162
11166
  type: "numeric",
11163
11167
  values: [n.value],
11164
11168
  valueFormat: n.sourceFormat
11165
- } }),
11169
+ } }, e.parsingLocale),
11166
11170
  mapping: {
11167
11171
  x: fs.x,
11168
11172
  y: void 0
@@ -11338,7 +11342,7 @@ var DW = (e) => {
11338
11342
  new z4(),
11339
11343
  new RW(),
11340
11344
  new FW()
11341
- ], Rl = class extends Ca {
11345
+ ], Ll = class extends Pa {
11342
11346
  constructor() {
11343
11347
  super("geom");
11344
11348
  for (const e of AE) this.register(e.type, e);
@@ -11416,7 +11420,7 @@ var DW = (e) => {
11416
11420
  data: e.size() === 0 ? new Kn({ [Mt.mean]: {
11417
11421
  type: "numeric",
11418
11422
  values: []
11419
- } }) : e.rollup({ [Mt.mean]: {
11423
+ } }, e.parsingLocale) : e.rollup({ [Mt.mean]: {
11420
11424
  variableName: r,
11421
11425
  aggregation: "mean"
11422
11426
  } }),
@@ -11581,14 +11585,14 @@ var DW = (e) => {
11581
11585
  var St = F[vt], Ue = N[vt], yt = S(Math.abs(q - St) * jt) * ie[vt], Ge = St * yt;
11582
11586
  Se += yt, Ae += Ge, Qe += Ue * yt, ut += Ue * Ge, dt += St * Ge;
11583
11587
  }
11584
- var Xa = n(f(Ae / Se, Qe / Se, ut / Se, dt / Se), 2);
11585
- re[K] = Xa[0] + Xa[1] * q, se[K] = Math.abs(N[K] - re[K]), M(F, K + 1, W);
11588
+ var Ka = n(f(Ae / Se, Qe / Se, ut / Se, dt / Se), 2);
11589
+ re[K] = Ka[0] + Ka[1] * q, se[K] = Math.abs(N[K] - re[K]), M(F, K + 1, W);
11586
11590
  }
11587
11591
  if (le === y) break;
11588
- var nc = g(se);
11589
- if (Math.abs(nc) < x) break;
11592
+ var ic = g(se);
11593
+ if (Math.abs(ic) < x) break;
11590
11594
  for (var To = 0, At, My; To < ne; ++To)
11591
- At = se[To] / (6 * nc), ie[To] = At >= 1 ? x : (My = 1 - At * At) * My;
11595
+ At = se[To] / (6 * ic), ie[To] = At >= 1 ? x : (My = 1 - At * At) * My;
11592
11596
  }
11593
11597
  return A(F, re, j, ee);
11594
11598
  }
@@ -11975,7 +11979,7 @@ var DW = (e) => {
11975
11979
  values: s[c] ?? [],
11976
11980
  valueFormat: i.getValueFormat(c)
11977
11981
  };
11978
- return new Kn(l);
11982
+ return new Kn(l, i.parsingLocale);
11979
11983
  }
11980
11984
  };
11981
11985
  }, ZW = (e, t) => {
@@ -12255,7 +12259,7 @@ var b6 = [
12255
12259
  new GW(),
12256
12260
  new JW(),
12257
12261
  new u6()
12258
- ], _E = class extends Ca {
12262
+ ], _E = class extends Pa {
12259
12263
  constructor() {
12260
12264
  super("stat");
12261
12265
  for (const e of b6) this.register(e.type, e);
@@ -12281,7 +12285,7 @@ var b6 = [
12281
12285
  this.transformType = "constant";
12282
12286
  }
12283
12287
  apply(e, t) {
12284
- const { options: r } = t, n = $i(r.value, w6[r.type], ka);
12288
+ const { options: r } = t, n = $i(r.value, w6[r.type], e.parsingLocale);
12285
12289
  if (r.value !== null && n === null) throw new qe({
12286
12290
  code: "INCOMPATIBLE_TYPE",
12287
12291
  message: `Constant '${r.variableName}' cannot be read as ${r.type}`,
@@ -12335,14 +12339,14 @@ var b6 = [
12335
12339
  new A6(),
12336
12340
  new T6(),
12337
12341
  new M6()
12338
- ], IE = class extends Ca {
12342
+ ], IE = class extends Pa {
12339
12343
  constructor() {
12340
12344
  super("transform");
12341
12345
  for (const e of E6) this.register(e.transformType, e);
12342
12346
  }
12343
12347
  };
12344
12348
  function k6({ geoms: e, stats: t, transforms: r }) {
12345
- const n = new Rl(), i = new _E(), o = new IE();
12349
+ const n = new Ll(), i = new _E(), o = new IE();
12346
12350
  for (const a of e) n.register(a.type, a);
12347
12351
  for (const a of t) i.register(a.type, a);
12348
12352
  for (const a of r) o.register(a.transformType, a);
@@ -12442,7 +12446,7 @@ var LE = (e) => e instanceof pn, DE = (e) => e instanceof vo, OE = (e) => "trans
12442
12446
  return this.registry.get(e).adjust(t);
12443
12447
  }
12444
12448
  };
12445
- function Ia(e, t) {
12449
+ function _a(e, t) {
12446
12450
  switch (arguments.length) {
12447
12451
  case 0:
12448
12452
  break;
@@ -12478,7 +12482,7 @@ function dg() {
12478
12482
  return arguments.length ? (n = o, i) : n;
12479
12483
  }, i.copy = function() {
12480
12484
  return dg(t, r).unknown(n);
12481
- }, Ia.apply(i, arguments), i;
12485
+ }, _a.apply(i, arguments), i;
12482
12486
  }
12483
12487
  function hg() {
12484
12488
  var e = dg().unknown(void 0), t = e.domain, r = e.range, n = 0, i = 1, o, a, s = !1, l = 0, c = 0, u = 0.5;
@@ -12513,9 +12517,9 @@ function hg() {
12513
12517
  return arguments.length ? (u = Math.max(0, Math.min(1, h)), d()) : u;
12514
12518
  }, e.copy = function() {
12515
12519
  return hg(t(), [n, i]).round(s).paddingInner(l).paddingOuter(c).align(u);
12516
- }, Ia.apply(d(), arguments);
12520
+ }, _a.apply(d(), arguments);
12517
12521
  }
12518
- function Ll(e, t, r) {
12522
+ function Dl(e, t, r) {
12519
12523
  e.prototype = t.prototype = r, r.constructor = e;
12520
12524
  }
12521
12525
  function Ed(e, t) {
@@ -12675,7 +12679,7 @@ var Zs = 0.7, mu = 1 / Zs, Jo = "\\s*([+-]?\\d+)\\s*", Js = "\\s*([+-]?(?:\\d*\\
12675
12679
  yellow: 16776960,
12676
12680
  yellowgreen: 10145074
12677
12681
  };
12678
- Ll(yo, el, {
12682
+ Dl(yo, el, {
12679
12683
  copy(e) {
12680
12684
  return Object.assign(new this.constructor(), this, e);
12681
12685
  },
@@ -12720,7 +12724,7 @@ function gu(e, t, r, n) {
12720
12724
  function Et(e, t, r, n) {
12721
12725
  this.r = +e, this.g = +t, this.b = +r, this.opacity = +n;
12722
12726
  }
12723
- Ll(Et, gu, Ed(yo, {
12727
+ Dl(Et, gu, Ed(yo, {
12724
12728
  brighter(e) {
12725
12729
  return e = e == null ? mu : Math.pow(mu, e), new Et(this.r * e, this.g * e, this.b * e, this.opacity);
12726
12730
  },
@@ -12778,7 +12782,7 @@ function ep(e, t, r, n) {
12778
12782
  function Sr(e, t, r, n) {
12779
12783
  this.h = +e, this.s = +t, this.l = +r, this.opacity = +n;
12780
12784
  }
12781
- Ll(Sr, ep, Ed(yo, {
12785
+ Dl(Sr, ep, Ed(yo, {
12782
12786
  brighter(e) {
12783
12787
  return e = e == null ? mu : Math.pow(mu, e), new Sr(this.h, this.s, this.l * e, this.opacity);
12784
12788
  },
@@ -12823,7 +12827,7 @@ function tp(e, t, r, n) {
12823
12827
  function nn(e, t, r, n) {
12824
12828
  this.l = +e, this.a = +t, this.b = +r, this.opacity = +n;
12825
12829
  }
12826
- Ll(nn, tp, Ed(yo, {
12830
+ Dl(nn, tp, Ed(yo, {
12827
12831
  brighter(e) {
12828
12832
  return new nn(this.l + yu * (e ?? 1), this.a, this.b, this.opacity);
12829
12833
  },
@@ -12864,7 +12868,7 @@ function UE(e) {
12864
12868
  var t = e.h * $6;
12865
12869
  return new nn(e.l, Math.cos(t) * e.c, Math.sin(t) * e.c, e.opacity);
12866
12870
  }
12867
- Ll(An, rp, Ed(yo, {
12871
+ Dl(An, rp, Ed(yo, {
12868
12872
  brighter(e) {
12869
12873
  return new An(this.h, this.c, this.l + yu * (e ?? 1), this.opacity);
12870
12874
  },
@@ -13348,7 +13352,7 @@ function $c() {
13348
13352
  var e = QE();
13349
13353
  return e.copy = function() {
13350
13354
  return Cd(e, $c());
13351
- }, Ia.apply(e, arguments), ek(e);
13355
+ }, _a.apply(e, arguments), ek(e);
13352
13356
  }
13353
13357
  function tk(e, t) {
13354
13358
  e = e.slice();
@@ -13426,7 +13430,7 @@ function IU(e) {
13426
13430
  }
13427
13431
  function rk() {
13428
13432
  const e = IU(fg()).domain([1, 10]);
13429
- return e.copy = () => Cd(e, rk()).base(e.base()), Ia.apply(e, arguments), e;
13433
+ return e.copy = () => Cd(e, rk()).base(e.base()), _a.apply(e, arguments), e;
13430
13434
  }
13431
13435
  function Gb(e) {
13432
13436
  return function(t) {
@@ -13452,7 +13456,7 @@ function nk() {
13452
13456
  var e = DU(fg());
13453
13457
  return e.copy = function() {
13454
13458
  return Cd(e, nk()).exponent(e.exponent());
13455
- }, Ia.apply(e, arguments), e;
13459
+ }, _a.apply(e, arguments), e;
13456
13460
  }
13457
13461
  function OU() {
13458
13462
  return nk.apply(null, arguments).exponent(0.5);
@@ -13599,7 +13603,7 @@ function NU(e) {
13599
13603
  if ("s" in H) return new Date(H.s * 1e3 + ("L" in H ? H.L : 0));
13600
13604
  if (K && !("Z" in H) && (H.Z = 0), "p" in H && (H.H = H.H % 12 + H.p * 12), H.m === void 0 && (H.m = "q" in H ? H.q : 0), "V" in H) {
13601
13605
  if (H.V < 1 || H.V > 53) return null;
13602
- "w" in H || (H.w = 1), "Z" in H ? (J = jh(es(H.y, 0, 1)), Se = J.getUTCDay(), J = Se > 4 || Se === 0 ? Xs.ceil(J) : Xs(J), J = _a.offset(J, (H.V - 1) * 7), H.y = J.getUTCFullYear(), H.m = J.getUTCMonth(), H.d = J.getUTCDate() + (H.w + 6) % 7) : (J = Uh(es(H.y, 0, 1)), Se = J.getDay(), J = Se > 4 || Se === 0 ? pu.ceil(J) : pu(J), J = pd.offset(J, (H.V - 1) * 7), H.y = J.getFullYear(), H.m = J.getMonth(), H.d = J.getDate() + (H.w + 6) % 7);
13606
+ "w" in H || (H.w = 1), "Z" in H ? (J = jh(es(H.y, 0, 1)), Se = J.getUTCDay(), J = Se > 4 || Se === 0 ? Xs.ceil(J) : Xs(J), J = Ca.offset(J, (H.V - 1) * 7), H.y = J.getUTCFullYear(), H.m = J.getUTCMonth(), H.d = J.getUTCDate() + (H.w + 6) % 7) : (J = Uh(es(H.y, 0, 1)), Se = J.getDay(), J = Se > 4 || Se === 0 ? pu.ceil(J) : pu(J), J = pd.offset(J, (H.V - 1) * 7), H.y = J.getFullYear(), H.m = J.getMonth(), H.d = J.getDate() + (H.w + 6) % 7);
13603
13607
  } else ("W" in H || "U" in H) && ("w" in H || (H.w = "u" in H ? H.u % 7 : "W" in H ? 1 : 0), Se = "Z" in H ? jh(es(H.y, 0, 1)).getUTCDay() : Uh(es(H.y, 0, 1)).getDay(), H.m = 0, H.d = "W" in H ? (H.w + 6) % 7 + H.W * 7 - (Se + 5) % 7 : H.w + H.U * 7 - (Se + 6) % 7);
13604
13608
  return "Z" in H ? (H.H += H.Z / 100 | 0, H.M += H.Z % 100, jh(H)) : Uh(H);
13605
13609
  };
@@ -13877,7 +13881,7 @@ function xj(e, t) {
13877
13881
  return Ee(e.getUTCHours() % 12 || 12, t, 2);
13878
13882
  }
13879
13883
  function wj(e, t) {
13880
- return Ee(1 + _a.count(un(e), e), t, 3);
13884
+ return Ee(1 + Ca.count(un(e), e), t, 3);
13881
13885
  }
13882
13886
  function ak(e, t) {
13883
13887
  return Ee(e.getUTCMilliseconds(), t, 3);
@@ -14023,7 +14027,7 @@ function ck(e, t, r, n, i, o, a, s, l, c) {
14023
14027
  }, u;
14024
14028
  }
14025
14029
  function $j() {
14026
- return Ia.apply(ck(_G, IG, un, vd, gd, _a, md, Um, $o, lk).domain([Date.UTC(2e3, 0, 1), Date.UTC(2e3, 0, 2)]), arguments);
14030
+ return _a.apply(ck(_G, IG, un, vd, gd, Ca, md, Um, $o, lk).domain([Date.UTC(2e3, 0, 1), Date.UTC(2e3, 0, 2)]), arguments);
14027
14031
  }
14028
14032
  var _d = class {
14029
14033
  }, Wj = class extends _d {
@@ -14204,7 +14208,7 @@ var Jb = (e, t) => e && t ? "solo" : e ? "base" : t ? "tip" : "middle", jj = cla
14204
14208
  mapping: {}
14205
14209
  };
14206
14210
  }
14207
- }, Kj = class extends Ca {
14211
+ }, Kj = class extends Pa {
14208
14212
  constructor() {
14209
14213
  super("position"), this.register("identity", new zj()), this.register("stack", new Yj()), this.register("fill", new jj()), this.register("dodge", new Wj());
14210
14214
  }
@@ -14852,7 +14856,7 @@ var xz = class extends Id {
14852
14856
  generateTicks: () => []
14853
14857
  };
14854
14858
  }
14855
- }, Mz = class extends Ca {
14859
+ }, Mz = class extends Pa {
14856
14860
  constructor(e) {
14857
14861
  super("scale"), this.register("continuous", new gz(e)), this.register("discrete", new Sz()), this.register("datetime", new xz()), this.register("identity", new Tz());
14858
14862
  }
@@ -15361,7 +15365,6 @@ var Wz = {
15361
15365
  endArrowheadStyle: t.endArrowheadStyle ?? sx.endArrowheadStyle
15362
15366
  };
15363
15367
  }, i8 = {
15364
- parsingLocale: "en-US",
15365
15368
  legend: {
15366
15369
  position: "auto",
15367
15370
  display: "auto",
@@ -15426,8 +15429,11 @@ var Wz = {
15426
15429
  }
15427
15430
  }
15428
15431
  };
15429
- function o8(e, t) {
15430
- return uo({}, i8, t, e);
15432
+ function o8(e, t, r) {
15433
+ return {
15434
+ ...uo({}, i8, t, e),
15435
+ parsingLocale: r
15436
+ };
15431
15437
  }
15432
15438
  var a8 = {
15433
15439
  xLimits: null,
@@ -15725,7 +15731,7 @@ function A8(e, t) {
15725
15731
  layers: i,
15726
15732
  mapping: t.mapping,
15727
15733
  coords: r
15728
- }), a = o8(t.config, e.theme?.config), s = l8(e, t.highlights, i), l = Uz(e, t.annotations, i), c = Tk(t.styles);
15734
+ }), a = o8(t.config, e.theme?.config, t.data.parsingLocale), s = l8(e, t.highlights, i), l = Uz(e, t.annotations, i), c = Tk(t.styles);
15729
15735
  return {
15730
15736
  data: t.data,
15731
15737
  mapping: t.mapping,
@@ -16066,7 +16072,7 @@ var F8 = class extends po {
16066
16072
  geomColor: e.geomColor
16067
16073
  });
16068
16074
  }
16069
- }, H8 = new Rl(), G8 = new Set(f5), $8 = /* @__PURE__ */ new WeakMap(), W8 = /* @__PURE__ */ new WeakMap(), hx = {
16075
+ }, H8 = new Ll(), G8 = new Set(f5), $8 = /* @__PURE__ */ new WeakMap(), W8 = /* @__PURE__ */ new WeakMap(), hx = {
16070
16076
  stateless: 0,
16071
16077
  dimmed: 1,
16072
16078
  hovered: 2
@@ -16084,7 +16090,7 @@ var F8 = class extends po {
16084
16090
  ...K8(),
16085
16091
  warnings: i
16086
16092
  }, s = (l, c, u, d) => {
16087
- if (Dl(l) || !Bk(l.select, t)) return;
16093
+ if (Ol(l) || !Bk(l.select, t)) return;
16088
16094
  const h = l.id === void 0 ? {} : { styleEntryId: l.id }, f = l.select.target, p = X8(l.select);
16089
16095
  if (p.status === "unknown-target") {
16090
16096
  i.push({
@@ -16222,7 +16228,7 @@ var F8 = class extends po {
16222
16228
  const { layer: t, layerIndex: r, styles: n, parsingLocale: i, styleTarget: o, coord: a = "cartesian", theme: s, geomColor: l } = e, c = Gm(t, i), u = [], d = Hk(n, s, l), h = (p) => p === t.geom ? o : void 0, f = (p, m, g = "spec") => {
16223
16229
  const y = [];
16224
16230
  return p.forEach((x, w) => {
16225
- if (!Dl(x) || !Bk(x.select, a)) return;
16231
+ if (!Ol(x) || !Bk(x.select, a)) return;
16226
16232
  const S = x.select.kind;
16227
16233
  if (S !== void 0 && S !== t.geom || x.select.layer !== void 0 && x.select.layer !== t.id) return;
16228
16234
  const M = il(g, m, w);
@@ -16365,7 +16371,7 @@ var F8 = class extends po {
16365
16371
  }, q8 = (e, t) => {
16366
16372
  const r = e === "geom" ? H8.getAll().find((n) => n.styleTarget !== void 0 && pE(n.styleTarget)[t] !== void 0)?.type : e === "annotation" ? Object.entries(Te.annotation.children).find(([, n]) => n.vocabulary[t] !== void 0)?.[0] : void 0;
16367
16373
  return r === void 0 ? void 0 : `style.${e}.${r}`;
16368
- }, Dl = (e) => e.select.target === "geom", Q8 = (e, t) => e !== void 0 && Object.hasOwn(e, t) ? e[t] : void 0, Rk = (e, t, r, n) => {
16374
+ }, Ol = (e) => e.select.target === "geom", Q8 = (e, t) => e !== void 0 && Object.hasOwn(e, t) ? e[t] : void 0, Rk = (e, t, r, n) => {
16369
16375
  const i = e.get(r) ?? /* @__PURE__ */ new Map();
16370
16376
  e.set(r, i);
16371
16377
  const o = i.get(t);
@@ -16465,15 +16471,15 @@ var F8 = class extends po {
16465
16471
  });
16466
16472
  };
16467
16473
  if (xg.defaults.forEach((s, l) => {
16468
- Dl(s) && a(s.select, s.declarations, s.when?.state, `builtin[${l}]`);
16474
+ Ol(s) && a(s.select, s.declarations, s.when?.state, `builtin[${l}]`);
16469
16475
  }), t === void 0) return i;
16470
16476
  for (const s of tY(e, t)) a(s.select, s.declarations, s.when?.state, nY(e, s.select.part));
16471
16477
  return i.sort(rY);
16472
- }, il = (e, t, r) => `${e === "theme" ? "theme " : ""}${t}[${r}]`, Ol = (e, t, r) => {
16478
+ }, il = (e, t, r) => `${e === "theme" ? "theme " : ""}${t}[${r}]`, Nl = (e, t, r) => {
16473
16479
  e.defaults.forEach((n, i) => r(n, il(t, "defaults", i))), e.overrides.forEach((n, i) => r(n, il(t, "overrides", i)));
16474
16480
  }, oY = (e, t, r = "spec") => {
16475
16481
  const n = new Set(t.map((o) => o.id)), i = [];
16476
- return Ol(e, r, (o, a) => {
16482
+ return Nl(e, r, (o, a) => {
16477
16483
  const s = o.select;
16478
16484
  if (s.target !== "geom") return;
16479
16485
  const l = s.layer;
@@ -16490,7 +16496,7 @@ var F8 = class extends po {
16490
16496
  }), i;
16491
16497
  }, mx = (e, t, r = "spec") => {
16492
16498
  const n = new Map(Mk.flatMap((o) => t[bg[o]].map((a) => [a.id, o]))), i = [];
16493
- return Ol(e, r, (o, a) => {
16499
+ return Nl(e, r, (o, a) => {
16494
16500
  const s = o.select;
16495
16501
  if (s.target !== "annotation") return;
16496
16502
  const l = s.annotation;
@@ -16528,8 +16534,8 @@ var F8 = class extends po {
16528
16534
  }), i;
16529
16535
  }, aY = (e, t = "spec") => {
16530
16536
  const r = [];
16531
- return Ol(e, t, (n, i) => {
16532
- if (!Dl(n)) return;
16537
+ return Nl(e, t, (n, i) => {
16538
+ if (!Ol(n)) return;
16533
16539
  const o = n.when?.state;
16534
16540
  o === void 0 || Nk(o) || r.push({
16535
16541
  code: "INVALID_STYLE_RULE",
@@ -16548,7 +16554,7 @@ var F8 = class extends po {
16548
16554
  ...e.id === void 0 ? {} : { id: e.id }
16549
16555
  }), sY = (e, t = "spec") => {
16550
16556
  const r = [];
16551
- return Ol(e, t, (n, i) => {
16557
+ return Nl(e, t, (n, i) => {
16552
16558
  const o = n.select.coord;
16553
16559
  o === void 0 || Z0.includes(o) || r.push({
16554
16560
  code: "INVALID_STYLE_RULE",
@@ -16611,8 +16617,8 @@ var F8 = class extends po {
16611
16617
  const t = Y8(e);
16612
16618
  return (r, n = "spec") => {
16613
16619
  const i = [];
16614
- return Ol(r, n, (o, a) => {
16615
- if (!Dl(o)) return;
16620
+ return Nl(r, n, (o, a) => {
16621
+ if (!Ol(o)) return;
16616
16622
  const s = cY(o, a, e) ?? Fk(o, a, t);
16617
16623
  s !== void 0 && i.push(s);
16618
16624
  }), i;
@@ -16807,7 +16813,7 @@ var F8 = class extends po {
16807
16813
  };
16808
16814
  }
16809
16815
  }, vY = (e) => (t) => G(t) ? e.map(t) : null;
16810
- function yY(e = new Rl(), t, r = new _E()) {
16816
+ function yY(e = new Ll(), t, r = new _E()) {
16811
16817
  return {
16812
16818
  diagnostics: new c8(),
16813
16819
  geomRegistry: e,
@@ -17314,7 +17320,10 @@ var UY = {
17314
17320
  colorScheme: r
17315
17321
  });
17316
17322
  this.lastData = e.data;
17317
- const n = this.dataCompiler.compile(e.data), i = this.reResolveInferredScalesIfNeeded(e.spec.data, oc(e.spec, { data: n }));
17323
+ const n = this.dataCompiler.compile(e.data), i = this.reResolveInferredScalesIfNeeded(e.spec.data, Ja(e.spec, {
17324
+ data: n,
17325
+ config: Ja(e.spec.config, { parsingLocale: n.parsingLocale })
17326
+ }));
17318
17327
  return this.runPipeline({
17319
17328
  spec: i,
17320
17329
  colorScheme: r
@@ -17343,7 +17352,7 @@ var UY = {
17343
17352
  layers: t.layers,
17344
17353
  mapping: t.mapping
17345
17354
  });
17346
- return oc(t, { scales: rM(t.scales, (n) => {
17355
+ return Ja(t, { scales: rM(t.scales, (n) => {
17347
17356
  const i = n.inferredFrom;
17348
17357
  if (i === void 0) return n;
17349
17358
  const o = vg(r, i);
@@ -17378,7 +17387,7 @@ var UY = {
17378
17387
  }
17379
17388
  runPipeline({ spec: e, colorScheme: t }) {
17380
17389
  return {
17381
- ...cd({ spec: e }).pipe(({ spec: r }) => ({ spec: oc(r, { data: this.transformCompiler.compile({
17390
+ ...cd({ spec: e }).pipe(({ spec: r }) => ({ spec: Ja(r, { data: this.transformCompiler.compile({
17382
17391
  data: r.data,
17383
17392
  transforms: r.transforms
17384
17393
  }) }) })).pipe(({ spec: r }) => {
@@ -17386,7 +17395,7 @@ var UY = {
17386
17395
  data: r.data,
17387
17396
  mapping: r.mapping
17388
17397
  });
17389
- return { spec: oc(r, {
17398
+ return { spec: Ja(r, {
17390
17399
  data: n.data,
17391
17400
  mapping: n.mapping
17392
17401
  }) };
@@ -18260,7 +18269,7 @@ var Pt = {
18260
18269
  "group",
18261
18270
  "decimal",
18262
18271
  "fraction"
18263
- ]), Ra = (e, t) => {
18272
+ ]), Ia = (e, t) => {
18264
18273
  const r = zk(e, t), n = pc.get(r);
18265
18274
  if (n !== void 0) return n;
18266
18275
  pc.size >= Uk && pc.clear();
@@ -18282,7 +18291,7 @@ var Pt = {
18282
18291
  } catch {
18283
18292
  return;
18284
18293
  }
18285
- }, Rd = (e) => jk(e) ?? "en-GB", zk = (e, t) => `${e}\0${JSON.stringify(t)}`, JY = /* @__PURE__ */ GT(QY(), 1), e7 = JY.default.humanizer({
18294
+ }, Rd = (e) => jk(e) ?? "en-US", zk = (e, t) => `${e}\0${JSON.stringify(t)}`, JY = /* @__PURE__ */ GT(QY(), 1), e7 = JY.default.humanizer({
18286
18295
  language: "en",
18287
18296
  spacer: "",
18288
18297
  delimiter: " ",
@@ -18298,7 +18307,7 @@ var Pt = {
18298
18307
  } }
18299
18308
  }), Ld = { signDisplay: "negative" }, Yk = ({ valueFormat: e, locale: t, numberFormat: r, intlOptions: n }) => hi((i) => {
18300
18309
  const o = typeof r.decimals == "number" ? r.decimals : 2, a = Cg(i, o), { base: s, suffix: l } = Dd(i, r.abbreviation);
18301
- return kg(Ra(t, {
18310
+ return kg(Ia(t, {
18302
18311
  ...a,
18303
18312
  ...Ld,
18304
18313
  ...O1(e) ? {
@@ -18310,7 +18319,7 @@ var Pt = {
18310
18319
  }), s, l);
18311
18320
  }), Kk = ({ locale: e, numberFormat: t, intlOptions: r }) => hi((n) => {
18312
18321
  const { base: i, suffix: o } = Dd(n, t.abbreviation);
18313
- return kg(Ra(e, {
18322
+ return kg(Ia(e, {
18314
18323
  ...Cg(i, t.decimals),
18315
18324
  ...Ld,
18316
18325
  ...r
@@ -18319,13 +18328,13 @@ var Pt = {
18319
18328
  const r = e7(Math.abs(t));
18320
18329
  return t < 0 ? `-${r}` : r;
18321
18330
  }), Xk = ({ locale: e, intlOptions: t }) => {
18322
- const r = Ra(e, {
18331
+ const r = Ia(e, {
18323
18332
  maximumFractionDigits: 0,
18324
18333
  ...Ld,
18325
18334
  ...t
18326
18335
  });
18327
18336
  return hi((n) => r.format(n));
18328
- }, qk = ({ locale: e, numberFormat: t, intlOptions: r }) => hi((n) => Ra(e, {
18337
+ }, qk = ({ locale: e, numberFormat: t, intlOptions: r }) => hi((n) => Ia(e, {
18329
18338
  ...Cg(n, t.decimals),
18330
18339
  ...Ld,
18331
18340
  ...r,
@@ -18457,9 +18466,9 @@ var Pt = {
18457
18466
  return Lg(n, e, i);
18458
18467
  }), Lg = (e, t, r) => {
18459
18468
  const { base: n, suffix: i } = Dd(e, c7(e, r));
18460
- return kg(Ra(t, r), n, i);
18469
+ return kg(Ia(t, r), n, i);
18461
18470
  }, c7 = (e, t) => {
18462
- const r = Ra("en-US", {
18471
+ const r = Ia("en-US", {
18463
18472
  ...t,
18464
18473
  notation: "compact"
18465
18474
  }).formatToParts(e).find((n) => n.type === "compact")?.value.toLowerCase();
@@ -18955,7 +18964,7 @@ function cP() {
18955
18964
  return j7 ??= Bg();
18956
18965
  }
18957
18966
  function z7(e) {
18958
- const t = new Rl();
18967
+ const t = new Ll();
18959
18968
  for (const r of e) {
18960
18969
  const n = Md(r);
18961
18970
  n instanceof pn && t.register(n.type, n);
@@ -19298,7 +19307,7 @@ var Kh = {
19298
19307
  label: e.tooltip.label().resolve(),
19299
19308
  value: e.tooltip.value().resolve(),
19300
19309
  primaryRow: e.tooltip.primaryRow().resolve()
19301
- }), Nl = (e) => ({
19310
+ }), Bl = (e) => ({
19302
19311
  item: e.legendItem().resolve(),
19303
19312
  swatch: e.legendItem.swatch().resolve()
19304
19313
  }), fP = (e) => {
@@ -20123,7 +20132,7 @@ var fp = [
20123
20132
  createLayerMeasurement: (r) => t.has(r.geom) ? MM(r, t.get(r.geom)) : null
20124
20133
  };
20125
20134
  }, Y9 = (e) => {
20126
- const t = new Rl();
20135
+ const t = new Ll();
20127
20136
  for (const r of e) {
20128
20137
  const n = Md(r);
20129
20138
  n instanceof pn && t.register(n.type, n);
@@ -20782,7 +20791,7 @@ var MK = ({ layers: e, coordSystem: t, axes: r, numberFormat: n, parsingLocale:
20782
20791
  }, HK = /* @__PURE__ */ new Set(["line", "rule"]), Hg = (e) => HK.has(e), AP = (e) => e === "transparent" || e === "none", GK = (e, t) => {
20783
20792
  const r = e.styles.colorPartVariable, n = r === void 0 ? void 0 : t?.[r];
20784
20793
  return typeof n == "string" ? n : void 0;
20785
- }, La = (e, t, r, n) => {
20794
+ }, Ra = (e, t, r, n) => {
20786
20795
  const i = e.geom(t), o = GK(t, r), a = o === void 0 ? void 0 : i.part(o);
20787
20796
  if (a !== void 0) {
20788
20797
  const l = a.get("fill", r, n) ?? a.get("stroke", r, n);
@@ -21592,7 +21601,7 @@ var wX = (function e(t) {
21592
21601
  return WX(s.declarations, n, r);
21593
21602
  }
21594
21603
  }, GX = (e) => e.state === void 0 && e.part === void 0, $X = (e, t, r) => e === void 0 ? !0 : t === null || r === void 0 ? !1 : Ms(e).every((n) => n === t) && jP(e, r), jP = (e, t) => "eq" in e ? Mr(e.eq, t) : "and" in e ? e.and.every((r) => jP(r, t)) : !1, WX = (e, t, r) => {
21595
- const n = e[t], i = Cl(n) ? Yn(n, r) : n;
21604
+ const n = e[t], i = _l(n) ? Yn(n, r) : n;
21596
21605
  return typeof i == "string" && !AP(i) ? i : void 0;
21597
21606
  }, rr = (e, t, r) => {
21598
21607
  const n = El(e, t);
@@ -21719,7 +21728,7 @@ function KX(e, t) {
21719
21728
  polar: Jx(e, n)
21720
21729
  };
21721
21730
  }
21722
- function Bl(e, t) {
21731
+ function Fl(e, t) {
21723
21732
  return e <= t.on.point;
21724
21733
  }
21725
21734
  function sl({ mainDistance: e, crossDistance: t }, r) {
@@ -21745,7 +21754,7 @@ function XX(e, t, r, n, i) {
21745
21754
  const a = o.find(t.x * r, t.y, n ?? void 0), s = e.points[a];
21746
21755
  if (!s) return null;
21747
21756
  const l = KP(e, s, t, r);
21748
- return i === void 0 || Bl(l.distance, i) || sl(l, i) ? l : ZX(e, t, r, i) ?? l;
21757
+ return i === void 0 || Fl(l.distance, i) || sl(l, i) ? l : ZX(e, t, r, i) ?? l;
21749
21758
  }
21750
21759
  function qX(e, t) {
21751
21760
  if (e.projection === "polar" || e.points.length === 0 || !e.delaunay || e.delaunayAspectRatio === null) return null;
@@ -23360,7 +23369,7 @@ function hw(e, t, r) {
23360
23369
  function yQ(e, t, r, n) {
23361
23370
  if (!sn(e.points)) return null;
23362
23371
  const i = ym(t, r), o = fw(e, hr(e.points, (s) => pC(s, i)), i);
23363
- if (n === void 0 || Bl(o.distance, n) || sl(o, n)) return o;
23372
+ if (n === void 0 || Fl(o.distance, n) || sl(o, n)) return o;
23364
23373
  const a = e.points.map((s) => fw(e, s, i)).filter((s) => sl(s, n));
23365
23374
  return sn(a) ? hr(a, (s) => s.crossDistance) : o;
23366
23375
  }
@@ -23442,7 +23451,7 @@ function wQ(e, t) {
23442
23451
  intersects: !0,
23443
23452
  onPoint: !1
23444
23453
  };
23445
- const r = AQ(e, t), n = e.kind === "buckets" && Bl(e.match.vertexDistance, r);
23454
+ const r = AQ(e, t), n = e.kind === "buckets" && Fl(e.match.vertexDistance, r);
23446
23455
  return {
23447
23456
  intersects: gC(e, r),
23448
23457
  onPoint: n
@@ -23462,14 +23471,14 @@ function gC(e, t) {
23462
23471
  case "buckets":
23463
23472
  return TQ(e.match, t);
23464
23473
  case "points":
23465
- return Bl(e.match.distance, t);
23474
+ return Fl(e.match.distance, t);
23466
23475
  }
23467
23476
  }
23468
23477
  function AQ(e, t) {
23469
23478
  return e.match.index.projection === "polar" ? t.polar : t.cartesian;
23470
23479
  }
23471
23480
  function TQ(e, t) {
23472
- return e.strokeDistance <= t.on.stroke ? !0 : Bl(e.vertexDistance, t);
23481
+ return e.strokeDistance <= t.on.stroke ? !0 : Fl(e.vertexDistance, t);
23473
23482
  }
23474
23483
  function pw(e, t) {
23475
23484
  return t === void 0 ? !1 : !gC(e, t) && !sl(e.match, t);
@@ -24334,7 +24343,7 @@ function yw(e, t, r, n, i) {
24334
24343
  const d = Vd(e.readers.geom, t, u.observation, xC), { label: h, qualifier: f } = SC(nv(t, u, e.resolveColorLabel), l, e.headingGroup), p = c(u.observation);
24335
24344
  return {
24336
24345
  row: {
24337
- swatchColor: La(e.readers, t, u.observation) ?? null,
24346
+ swatchColor: Ra(e.readers, t, u.observation) ?? null,
24338
24347
  geom: t.geom,
24339
24348
  swatchLineType: eK(pZ(e.readers, t, u.observation)),
24340
24349
  swatchFill: d.fill,
@@ -24362,7 +24371,7 @@ function SZ({ input: e, layer: t, field: r, hit: n, key: i, namesGroup: o, prima
24362
24371
  } : AZ(t, r, n, e);
24363
24372
  return {
24364
24373
  row: {
24365
- swatchColor: c ? La(e.readers, t, n.observation) ?? null : null,
24374
+ swatchColor: c ? Ra(e.readers, t, n.observation) ?? null : null,
24366
24375
  geom: t.geom,
24367
24376
  swatchLineType: "solid",
24368
24377
  swatchFill: l.fill,
@@ -25108,7 +25117,7 @@ var Oi = {
25108
25117
  }, ZZ = (e) => {
25109
25118
  const t = e.style ?? "normal", r = e.weight ?? 500, n = e.family.includes(",") ? e.family : `'${e.family}'`;
25110
25119
  return `${t} ${r} ${e.size}px ${n}`;
25111
- }, IC = (e) => typeof e != "string" ? e ?? 500 : Oi[e], Da = (e, t) => {
25120
+ }, IC = (e) => typeof e != "string" ? e ?? 500 : Oi[e], La = (e, t) => {
25112
25121
  switch (t) {
25113
25122
  case "uppercase":
25114
25123
  return e.toUpperCase();
@@ -25239,7 +25248,7 @@ var Oi = {
25239
25248
  };
25240
25249
  var tJ = 1.05, rJ = 0.84, nJ = 0.21, iJ = class {
25241
25250
  measureText(e, t) {
25242
- const r = Da(e, t.textTransform);
25251
+ const r = La(e, t.textTransform);
25243
25252
  let n = RC(r, t.letterSpacing);
25244
25253
  for (const a of r) n += (eJ[a] ?? 0.55) * t.size;
25245
25254
  IC(t.weight) >= Oi.semiBold && (n *= tJ);
@@ -25330,7 +25339,7 @@ var _w = (e) => {
25330
25339
  subscribe: (c) => (r.add(c), () => r.delete(c))
25331
25340
  }, l = t = e(n, i, s);
25332
25341
  return s;
25333
- }, Oa = ((e) => e ? _w(e) : _w), pJ = (e) => e;
25342
+ }, Da = ((e) => e ? _w(e) : _w), pJ = (e) => e;
25334
25343
  function _n(e, t = pJ) {
25335
25344
  const r = ds.useSyncExternalStore(e.subscribe, ds.useCallback(() => t(e.getState()), [e, t]), ds.useCallback(() => t(e.getInitialState()), [e, t]));
25336
25345
  return ds.useDebugValue(r), r;
@@ -25342,14 +25351,14 @@ var ov = De(null), ct = () => {
25342
25351
  }, ge = (e) => {
25343
25352
  const { store: t } = ct();
25344
25353
  return _n(t, (r) => e(r.scene));
25345
- }, Fl = (e, t, r) => e.get("alpha", t, r) * e.get("fillAlpha", t, r), av = (e, t) => {
25354
+ }, Vl = (e, t, r) => e.get("alpha", t, r) * e.get("fillAlpha", t, r), av = (e, t) => {
25346
25355
  const r = _f(e);
25347
25356
  let n = t.get(r);
25348
25357
  return n === void 0 && (n = zT(e), t.set(r, n)), n;
25349
- }, Na = (e) => e === "none" ? "none" : `${e.offsetX}px ${e.offsetY}px ${e.blur}px ${e.color}`, mJ = (e) => e === "none" ? "none" : `${e.offsetX}px ${e.offsetY}px ${e.blur}px ${e.color}`, bo = (e) => {
25358
+ }, Oa = (e) => e === "none" ? "none" : `${e.offsetX}px ${e.offsetY}px ${e.blur}px ${e.color}`, mJ = (e) => e === "none" ? "none" : `${e.offsetX}px ${e.offsetY}px ${e.blur}px ${e.color}`, bo = (e) => {
25350
25359
  if (e !== "none")
25351
25360
  return `drop-shadow(${e.offsetX}px ${e.offsetY}px ${e.blur}px ${e.color})`;
25352
- }, Vl = De(null), Iw = [
25361
+ }, Hl = De(null), Iw = [
25353
25362
  "shadow",
25354
25363
  "blendMode",
25355
25364
  "alpha",
@@ -25380,7 +25389,7 @@ var ov = De(null), ct = () => {
25380
25389
  if (!Iw.filter((c) => !l.includes(c)).some((c) => !a(r, c)))
25381
25390
  return l.length === 0 || e.data.findFirst((c) => l.some((u) => !a(c, u))) === null ? i : void 0;
25382
25391
  }, [e, t]), gJ = (e, t) => {
25383
- const r = ae(Vl), n = r?.layerId === e.id && r.paintsShadow;
25392
+ const r = ae(Hl), n = r?.layerId === e.id && r.paintsShadow;
25384
25393
  return V(() => n ? xJ(t) : t, [n, t]);
25385
25394
  }, vJ = (e) => {
25386
25395
  const t = /* @__PURE__ */ new Set();
@@ -25409,13 +25418,13 @@ var ov = De(null), ct = () => {
25409
25418
  return r === void 0 ? null : t(r);
25410
25419
  }, BC = (e) => {
25411
25420
  const t = xo(), r = ge((n) => n.layers).find((n) => n.id === e.layerId);
25412
- return r === void 0 ? void 0 : La({ geom: t }, r, e.observation);
25421
+ return r === void 0 ? void 0 : Ra({ geom: t }, r, e.observation);
25413
25422
  }, wJ = () => {
25414
25423
  const e = xo(), t = ge((r) => r.layers);
25415
25424
  return V(() => (r) => {
25416
25425
  const n = SP(t, r);
25417
25426
  if (n !== null)
25418
- return La({ geom: e }, n.layer, n.observation);
25427
+ return Ra({ geom: e }, n.layer, n.observation);
25419
25428
  }, [t, e]);
25420
25429
  }, SJ = (e) => {
25421
25430
  const t = xo(), r = ge((n) => n.layers);
@@ -25427,7 +25436,7 @@ var ov = De(null), ct = () => {
25427
25436
  height: e
25428
25437
  });
25429
25438
  return {
25430
- color: La({ geom: t }, i.layer, i.observation),
25439
+ color: Ra({ geom: t }, i.layer, i.observation),
25431
25440
  fill: o.fill,
25432
25441
  alpha: o.alpha,
25433
25442
  cornerRadius: o.cornerRadiusPx,
@@ -25445,15 +25454,15 @@ var ov = De(null), ct = () => {
25445
25454
  centerX: 0,
25446
25455
  centerY: 0,
25447
25456
  radius: 1
25448
- }, Ba = (e) => {
25457
+ }, Na = (e) => {
25449
25458
  const t = Math.min(e.width, e.height);
25450
25459
  return {
25451
25460
  centerX: (e.width - t) / 2 + t / 2,
25452
25461
  centerY: (e.height - t) / 2 + t / 2,
25453
25462
  radius: t / 2
25454
25463
  };
25455
- }, Hl = (e) => {
25456
- const { radius: t } = Ba(e), r = t > 0 ? 1 / t : 1;
25464
+ }, Gl = (e) => {
25465
+ const { radius: t } = Na(e), r = t > 0 ? 1 / t : 1;
25457
25466
  return {
25458
25467
  x: r,
25459
25468
  y: r
@@ -25498,7 +25507,7 @@ function UC(e) {
25498
25507
  let t;
25499
25508
  return () => (t === void 0 && (t = e()), t);
25500
25509
  }
25501
- var dr = /* @__NO_SIDE_EFFECTS__ */ (e) => e, TJ = (e, t) => (r) => t(e(r)), Gl = (...e) => e.reduce(TJ), wa = /* @__NO_SIDE_EFFECTS__ */ (e, t, r) => {
25510
+ var dr = /* @__NO_SIDE_EFFECTS__ */ (e) => e, TJ = (e, t) => (r) => t(e(r)), $l = (...e) => e.reduce(TJ), wa = /* @__NO_SIDE_EFFECTS__ */ (e, t, r) => {
25502
25511
  const n = t - e;
25503
25512
  return n === 0 ? 1 : (r - e) / n;
25504
25513
  }, cv = class {
@@ -25538,12 +25547,12 @@ function PJ(e, t, r, n, i) {
25538
25547
  while (Math.abs(o) > EJ && ++s < kJ);
25539
25548
  return a;
25540
25549
  }
25541
- function $l(e, t, r, n) {
25550
+ function Wl(e, t, r, n) {
25542
25551
  if (e === t && r === n) return dr;
25543
25552
  const i = (o) => PJ(o, 0, 1, e, r);
25544
25553
  return (o) => o === 0 || o === 1 ? o : zC(i(o), t, n);
25545
25554
  }
25546
- var YC = (e) => (t) => t <= 0.5 ? e(2 * t) / 2 : (2 - e(2 * (1 - t))) / 2, KC = (e) => (t) => 1 - e(1 - t), XC = /* @__PURE__ */ $l(0.33, 1.53, 0.69, 0.99), uv = /* @__PURE__ */ KC(XC), qC = /* @__PURE__ */ YC(uv), QC = (e) => (e *= 2) < 1 ? 0.5 * uv(e) : 0.5 * (2 - Math.pow(2, -10 * (e - 1))), dv = (e) => 1 - Math.sin(Math.acos(e)), ZC = KC(dv), JC = YC(dv), CJ = /* @__PURE__ */ $l(0.42, 0, 1, 1), _J = /* @__PURE__ */ $l(0, 0, 0.58, 1), e_ = /* @__PURE__ */ $l(0.42, 0, 0.58, 1), t_ = (e) => Array.isArray(e) && typeof e[0] != "number";
25555
+ var YC = (e) => (t) => t <= 0.5 ? e(2 * t) / 2 : (2 - e(2 * (1 - t))) / 2, KC = (e) => (t) => 1 - e(1 - t), XC = /* @__PURE__ */ Wl(0.33, 1.53, 0.69, 0.99), uv = /* @__PURE__ */ KC(XC), qC = /* @__PURE__ */ YC(uv), QC = (e) => (e *= 2) < 1 ? 0.5 * uv(e) : 0.5 * (2 - Math.pow(2, -10 * (e - 1))), dv = (e) => 1 - Math.sin(Math.acos(e)), ZC = KC(dv), JC = YC(dv), CJ = /* @__PURE__ */ Wl(0.42, 0, 1, 1), _J = /* @__PURE__ */ Wl(0, 0, 0.58, 1), e_ = /* @__PURE__ */ Wl(0.42, 0, 0.58, 1), t_ = (e) => Array.isArray(e) && typeof e[0] != "number";
25547
25556
  function r_(e, t) {
25548
25557
  return t_(e) ? e[MJ(0, e.length, t)] : e;
25549
25558
  }
@@ -25563,7 +25572,7 @@ var n_ = (e) => Array.isArray(e) && typeof e[0] == "number", Rw = {
25563
25572
  if (n_(e)) {
25564
25573
  si(e.length === 4, "Cubic bezier arrays must contain four numerical values.", "cubic-bezier-length");
25565
25574
  const [t, r, n, i] = e;
25566
- return $l(t, r, n, i);
25575
+ return Wl(t, r, n, i);
25567
25576
  } else if (IJ(e))
25568
25577
  return si(Rw[e] !== void 0, `Invalid easing type '${e}'`, "invalid-easing-type"), Rw[e];
25569
25578
  return e;
@@ -25651,15 +25660,15 @@ var Rt = {
25651
25660
  function Dw(e) {
25652
25661
  return typeof e != "string" ? !1 : e.split("/*")[0].includes("var(--");
25653
25662
  }
25654
- var Fa = {
25663
+ var Ba = {
25655
25664
  test: (e) => typeof e == "number",
25656
25665
  parse: parseFloat,
25657
25666
  transform: (e) => e
25658
25667
  }, ul = {
25659
- ...Fa,
25668
+ ...Ba,
25660
25669
  transform: (e) => dn(0, 1, e)
25661
25670
  }, Ec = {
25662
- ...Fa,
25671
+ ...Ba,
25663
25672
  default: 1
25664
25673
  }, Cs = (e) => Math.round(e * 1e5) / 1e5, fv = /-?(?:\d+(?:\.\d+)?|\.\d+)/gu;
25665
25674
  function BJ(e) {
@@ -25675,7 +25684,7 @@ var FJ = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(
25675
25684
  alpha: s !== void 0 ? parseFloat(s) : 1
25676
25685
  };
25677
25686
  }, VJ = (e) => dn(0, 255, e), nf = {
25678
- ...Fa,
25687
+ ...Ba,
25679
25688
  transform: (e) => Math.round(VJ(e))
25680
25689
  }, Vi = {
25681
25690
  test: /* @__PURE__ */ pv("rgb", "red"),
@@ -25695,11 +25704,11 @@ var Tp = {
25695
25704
  test: /* @__PURE__ */ pv("#"),
25696
25705
  parse: HJ,
25697
25706
  transform: Vi.transform
25698
- }, Wl = /* @__NO_SIDE_EFFECTS__ */ (e) => ({
25707
+ }, Ul = /* @__NO_SIDE_EFFECTS__ */ (e) => ({
25699
25708
  test: (t) => typeof t == "string" && t.endsWith(e) && t.split(" ").length === 1,
25700
25709
  parse: parseFloat,
25701
25710
  transform: (t) => `${t}${e}`
25702
- }), Hn = /* @__PURE__ */ Wl("deg"), on = /* @__PURE__ */ Wl("%"), Q = /* @__PURE__ */ Wl("px"), GJ = /* @__PURE__ */ Wl("vh"), $J = /* @__PURE__ */ Wl("vw"), Ow = {
25711
+ }), Hn = /* @__PURE__ */ Ul("deg"), on = /* @__PURE__ */ Ul("%"), Q = /* @__PURE__ */ Ul("px"), GJ = /* @__PURE__ */ Ul("vh"), $J = /* @__PURE__ */ Ul("vw"), Ow = {
25703
25712
  ...on,
25704
25713
  parse: (e) => on.parse(e) / 100,
25705
25714
  transform: (e) => on.transform(e * 100)
@@ -25842,7 +25851,7 @@ function ree(e, t) {
25842
25851
  }
25843
25852
  var nee = (e, t) => {
25844
25853
  const r = Er.createTransformer(t), n = dl(e), i = dl(t);
25845
- return n.indexes.var.length === i.indexes.var.length && n.indexes.color.length === i.indexes.color.length && n.indexes.number.length >= i.indexes.number.length ? Mp.has(e) && !i.values.length || Mp.has(t) && !n.values.length ? JJ(e, t) : Gl(h_(ree(n, i), i.values), r) : (Wd(!0, `Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`, "complex-values-different"), Pu(e, t));
25854
+ return n.indexes.var.length === i.indexes.var.length && n.indexes.color.length === i.indexes.color.length && n.indexes.number.length >= i.indexes.number.length ? Mp.has(e) && !i.values.length || Mp.has(t) && !n.values.length ? JJ(e, t) : $l(h_(ree(n, i), i.values), r) : (Wd(!0, `Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`, "complex-values-different"), Pu(e, t));
25846
25855
  };
25847
25856
  function f_(e, t, r) {
25848
25857
  return typeof e == "number" && typeof t == "number" && typeof r == "number" ? $e(e, t, r) : mv(e)(e, t);
@@ -26067,7 +26076,7 @@ function hee(e, t, r) {
26067
26076
  const n = [], i = r || In.mix || f_, o = e.length - 1;
26068
26077
  for (let a = 0; a < o; a++) {
26069
26078
  let s = i(e[a], e[a + 1]);
26070
- t && (s = Gl(Array.isArray(t) ? t[a] || dr : t, s)), n.push(s);
26079
+ t && (s = $l(Array.isArray(t) ? t[a] || dr : t, s)), n.push(s);
26071
26080
  }
26072
26081
  return n;
26073
26082
  }
@@ -26160,7 +26169,7 @@ var yv = class {
26160
26169
  const { type: t = _s, repeat: r = 0, repeatDelay: n = 0, repeatType: i, velocity: o = 0 } = e;
26161
26170
  let { keyframes: a } = e;
26162
26171
  const s = t || _s;
26163
- s !== _s && typeof a[0] != "number" && (this.mixKeyframes = Gl(vee, f_(a[0], a[1])), a = [0, 100]);
26172
+ s !== _s && typeof a[0] != "number" && (this.mixKeyframes = $l(vee, f_(a[0], a[1])), a = [0, 100]);
26164
26173
  const l = s({
26165
26174
  ...e,
26166
26175
  keyframes: a
@@ -26317,7 +26326,7 @@ var wee = (e, t) => {
26317
26326
  function See(e) {
26318
26327
  return parseFloat(e.trim());
26319
26328
  }
26320
- var Va = [
26329
+ var Fa = [
26321
26330
  "transformPerspective",
26322
26331
  "x",
26323
26332
  "y",
@@ -26335,11 +26344,11 @@ var Va = [
26335
26344
  "skew",
26336
26345
  "skewX",
26337
26346
  "skewY"
26338
- ], Ha = new Set(Va), Uw = (e) => e === Fa || e === Q, Aee = /* @__PURE__ */ new Set([
26347
+ ], Va = new Set(Fa), Uw = (e) => e === Ba || e === Q, Aee = /* @__PURE__ */ new Set([
26339
26348
  "x",
26340
26349
  "y",
26341
26350
  "z"
26342
- ]), Tee = Va.filter((e) => !Aee.has(e));
26351
+ ]), Tee = Fa.filter((e) => !Aee.has(e));
26343
26352
  function Mee(e) {
26344
26353
  const t = [];
26345
26354
  return Tee.forEach((r) => {
@@ -26830,7 +26839,7 @@ var Kee = {
26830
26839
  1
26831
26840
  ],
26832
26841
  duration: 0.3
26833
- }, Zee = (e, { keyframes: t }) => t.length > 2 ? qee : Ha.has(e) ? e.startsWith("scale") ? Xee(t[1]) : Kee : Qee, Jee = (e) => e !== null;
26842
+ }, Zee = (e, { keyframes: t }) => t.length > 2 ? qee : Va.has(e) ? e.startsWith("scale") ? Xee(t[1]) : Kee : Qee, Jee = (e) => e !== null;
26834
26843
  function ete(e, { repeat: t, repeatType: r = "loop" }, n) {
26835
26844
  const i = e.filter(Jee), o = t && r !== "loop" && t % 2 === 1 ? 0 : i.length - 1;
26836
26845
  return !o || n === void 0 ? i[o] : n;
@@ -26913,7 +26922,7 @@ var R_ = /* @__PURE__ */ new Set([
26913
26922
  "left",
26914
26923
  "right",
26915
26924
  "bottom",
26916
- ...Va
26925
+ ...Fa
26917
26926
  ]), Xw = 30, rte = (e) => !isNaN(parseFloat(e)), Is = { current: void 0 }, nte = class {
26918
26927
  constructor(e, t = {}) {
26919
26928
  this.canTrackVelocity = null, this.events = {}, this.updateAndNotify = (r) => {
@@ -27115,7 +27124,7 @@ var hte = {
27115
27124
  test: (e) => e === "auto",
27116
27125
  parse: (e) => e
27117
27126
  }, O_ = (e) => (t) => t.test(e), N_ = [
27118
- Fa,
27127
+ Ba,
27119
27128
  Q,
27120
27129
  on,
27121
27130
  Hn,
@@ -27157,7 +27166,7 @@ var gte = /\b([a-z-]*)\(.*?\)/gu, Vp = {
27157
27166
  } : r));
27158
27167
  }
27159
27168
  }, Qw = {
27160
- ...Fa,
27169
+ ...Ba,
27161
27170
  transform: Math.round
27162
27171
  }, vte = {
27163
27172
  rotate: Hn,
@@ -27665,7 +27674,7 @@ var K_ = class {
27665
27674
  });
27666
27675
  return;
27667
27676
  }
27668
- const r = Ha.has(e);
27677
+ const r = Va.has(e);
27669
27678
  r && this.onBindTransform && this.onBindTransform();
27670
27679
  const n = t.on("change", (o) => {
27671
27680
  this.latestValues[e] = o, this.props.onUpdate && Ne.preRender(this.notifyUpdate), r && this.projection && (this.projection.isTransformDirty = !0), this.scheduleRender();
@@ -27904,11 +27913,11 @@ var Zte = {
27904
27913
  y: "translateY",
27905
27914
  z: "translateZ",
27906
27915
  transformPerspective: "perspective"
27907
- }, Jte = Va.length;
27916
+ }, Jte = Fa.length;
27908
27917
  function ere(e, t, r) {
27909
27918
  let n = "", i = !0;
27910
27919
  for (let o = 0; o < Jte; o++) {
27911
- const a = Va[o], s = e[a];
27920
+ const a = Fa[o], s = e[a];
27912
27921
  if (s === void 0) continue;
27913
27922
  let l = !0;
27914
27923
  if (typeof s == "number") l = s === (a.startsWith("scale") ? 1 : 0);
@@ -27933,7 +27942,7 @@ function Dv(e, t, r) {
27933
27942
  let a = !1, s = !1;
27934
27943
  for (const l in t) {
27935
27944
  const c = t[l];
27936
- if (Ha.has(l)) {
27945
+ if (Va.has(l)) {
27937
27946
  a = !0;
27938
27947
  continue;
27939
27948
  } else if (a_(l)) {
@@ -27988,7 +27997,7 @@ var ss = { correct: (e, t) => {
27988
27997
  boxShadow: tre
27989
27998
  };
27990
27999
  function tI(e, { layout: t, layoutId: r }) {
27991
- return Ha.has(e) || e.startsWith("origin") || (t || r !== void 0) && (!!Wp[e] || e === "opacity");
28000
+ return Va.has(e) || e.startsWith("origin") || (t || r !== void 0) && (!!Wp[e] || e === "opacity");
27992
28001
  }
27993
28002
  function Ov(e, t, r) {
27994
28003
  const n = e.style, i = t?.style, o = {};
@@ -28004,7 +28013,7 @@ var rI = class extends X_ {
28004
28013
  super(...arguments), this.type = "html", this.renderInstance = eI;
28005
28014
  }
28006
28015
  readValueFromInstance(e, t) {
28007
- if (Ha.has(t)) return this.projection?.isProjecting ? _p(t) : wee(e, t);
28016
+ if (Va.has(t)) return this.projection?.isProjecting ? _p(t) : wee(e, t);
28008
28017
  {
28009
28018
  const r = rre(e), n = (a_(t) ? r.getPropertyValue(t) : r[t]) || 0;
28010
28019
  return typeof n == "string" ? n.trim() : n;
@@ -28111,7 +28120,7 @@ function cre(e, t, r, n) {
28111
28120
  function aI(e, t, r) {
28112
28121
  const n = Ov(e, t, r);
28113
28122
  for (const i in e) if (pt(e[i]) || pt(t[i])) {
28114
- const o = Va.indexOf(i) !== -1 ? "attr" + i.charAt(0).toUpperCase() + i.substring(1) : i;
28123
+ const o = Fa.indexOf(i) !== -1 ? "attr" + i.charAt(0).toUpperCase() + i.substring(1) : i;
28115
28124
  n[o] = e[i];
28116
28125
  }
28117
28126
  return n;
@@ -28124,7 +28133,7 @@ var sI = class extends X_ {
28124
28133
  return e[t];
28125
28134
  }
28126
28135
  readValueFromInstance(e, t) {
28127
- if (Ha.has(t)) {
28136
+ if (Va.has(t)) {
28128
28137
  const r = B_(t);
28129
28138
  return r && r.default || 0;
28130
28139
  }
@@ -29534,13 +29543,13 @@ var Pne = (e, t) => t.isSVG ?? Fv(e) ? new sI(t) : new rI(t, { allowProjection:
29534
29543
  animation: { Feature: Cne },
29535
29544
  exit: { Feature: Ine }
29536
29545
  };
29537
- function Ul(e) {
29546
+ function jl(e) {
29538
29547
  return { point: {
29539
29548
  x: e.pageX,
29540
29549
  y: e.pageY
29541
29550
  } };
29542
29551
  }
29543
- var Lne = (e) => (t) => _v(t) && e(t, Ul(t));
29552
+ var Lne = (e) => (t) => _v(t) && e(t, jl(t));
29544
29553
  function Ls(e, t, r, n) {
29545
29554
  return ml(e, t, Lne(r), n);
29546
29555
  }
@@ -29579,13 +29588,13 @@ var HS = /* @__PURE__ */ new Set(["auto", "scroll"]), PI = class {
29579
29588
  this.startEvent && f && f(d, g), p && p(d, g);
29580
29589
  }, !_v(e)) return;
29581
29590
  this.dragSnapToOrigin = i, this.handlers = t, this.transformPagePoint = r, this.distanceThreshold = o, this.contextWindow = n || window;
29582
- const s = pf(Ul(e), this.transformPagePoint), { point: l } = s, { timestamp: c } = bt;
29591
+ const s = pf(jl(e), this.transformPagePoint), { point: l } = s, { timestamp: c } = bt;
29583
29592
  this.history = [{
29584
29593
  ...l,
29585
29594
  timestamp: c
29586
29595
  }];
29587
29596
  const { onSessionStart: u } = t;
29588
- u && u(e, mf(s, this.history)), this.removeListeners = Gl(Ls(this.contextWindow, "pointermove", this.handlePointerMove), Ls(this.contextWindow, "pointerup", this.handlePointerUp), Ls(this.contextWindow, "pointercancel", this.handlePointerUp)), a && this.startScrollTracking(a);
29597
+ u && u(e, mf(s, this.history)), this.removeListeners = $l(Ls(this.contextWindow, "pointermove", this.handlePointerMove), Ls(this.contextWindow, "pointerup", this.handlePointerUp), Ls(this.contextWindow, "pointercancel", this.handlePointerUp)), a && this.startScrollTracking(a);
29589
29598
  }
29590
29599
  startScrollTracking(e) {
29591
29600
  let t = e.parentElement;
@@ -29740,7 +29749,7 @@ var Wne = /* @__PURE__ */ new WeakMap(), Une = class {
29740
29749
  const { presenceContext: n } = this.visualElement;
29741
29750
  if (n && n.isPresent === !1) return;
29742
29751
  const i = (u) => {
29743
- t && this.snapToCursor(Ul(u).point), this.stopAnimation();
29752
+ t && this.snapToCursor(jl(u).point), this.stopAnimation();
29744
29753
  }, o = (u, d) => {
29745
29754
  const { drag: h, dragPropagation: f, onDragStart: p } = this.getProps();
29746
29755
  if (h && !f && (this.openDragLock && this.openDragLock(), this.openDragLock = Mte(h), !this.openDragLock))
@@ -30075,7 +30084,7 @@ function YS(e, t, r) {
30075
30084
  const { props: n } = e;
30076
30085
  e.animationState && n.whileHover && e.animationState.setActive("whileHover", r === "Start");
30077
30086
  const i = n["onHover" + r];
30078
- i && Ne.postRender(() => i(t, Ul(t)));
30087
+ i && Ne.postRender(() => i(t, jl(t)));
30079
30088
  }
30080
30089
  var Qne = class extends pi {
30081
30090
  mount() {
@@ -30101,7 +30110,7 @@ var Qne = class extends pi {
30101
30110
  !this.isActive || !this.node.animationState || (this.node.animationState.setActive("whileFocus", !1), this.isActive = !1);
30102
30111
  }
30103
30112
  mount() {
30104
- this.unmount = Gl(ml(this.node.current, "focus", () => this.onFocus()), ml(this.node.current, "blur", () => this.onBlur()));
30113
+ this.unmount = $l(ml(this.node.current, "focus", () => this.onFocus()), ml(this.node.current, "blur", () => this.onBlur()));
30105
30114
  }
30106
30115
  unmount() {
30107
30116
  }
@@ -30111,7 +30120,7 @@ function KS(e, t, r) {
30111
30120
  if (e.current instanceof HTMLButtonElement && e.current.disabled) return;
30112
30121
  e.animationState && n.whileTap && e.animationState.setActive("whileTap", r === "Start");
30113
30122
  const i = n["onTap" + (r === "End" ? "" : r)];
30114
- i && Ne.postRender(() => i(t, Ul(t)));
30123
+ i && Ne.postRender(() => i(t, jl(t)));
30115
30124
  }
30116
30125
  var Jne = class extends pi {
30117
30126
  mount() {
@@ -30613,7 +30622,7 @@ var DI = De(/* @__PURE__ */ new Map()), vs = /* @__PURE__ */ new Map(), Ds = [],
30613
30622
  strokeWidth: a === void 0 ? void 0 : a / h
30614
30623
  })
30615
30624
  });
30616
- }, jl = ({ symbol: e, cx: t, cy: r, size: n, fill: i, fillOpacity: o, opacity: a, stroke: s, strokeOpacity: l, strokeWidth: c, style: u, motion: d, "data-testid": h }) => {
30625
+ }, zl = ({ symbol: e, cx: t, cy: r, size: n, fill: i, fillOpacity: o, opacity: a, stroke: s, strokeOpacity: l, strokeWidth: c, style: u, motion: d, "data-testid": h }) => {
30617
30626
  const f = Kd(), p = {
30618
30627
  fill: i,
30619
30628
  fillOpacity: o,
@@ -30739,7 +30748,7 @@ var DI = De(/* @__PURE__ */ new Map()), vs = /* @__PURE__ */ new Map(), Ds = [],
30739
30748
  const r = NC(e.layerId), n = BC(e) ?? yd;
30740
30749
  if (!e.anchored) return null;
30741
30750
  const i = (cg(e.observation) ?? 1) * zie, o = r?.get("size", e.observation) ?? 8, a = r?.get("stroke", e.observation, "hovered") ?? "#ffffff", s = t(e.x, e.y);
30742
- return /* @__PURE__ */ v(jl, {
30751
+ return /* @__PURE__ */ v(zl, {
30743
30752
  symbol: r?.get("symbol", e.observation) ?? "circle",
30744
30753
  cx: Z(s.x),
30745
30754
  cy: Z(s.y),
@@ -31310,7 +31319,7 @@ var Nu = (e, t, r) => {
31310
31319
  }, jI = {}, zI = De(jI), boe = {
31311
31320
  x: 1,
31312
31321
  y: 1
31313
- }, gl = De(null), zl = ({ shapes: e = jI, children: t }) => /* @__PURE__ */ v(zI.Provider, {
31322
+ }, gl = De(null), Yl = ({ shapes: e = jI, children: t }) => /* @__PURE__ */ v(zI.Provider, {
31314
31323
  value: e,
31315
31324
  children: t
31316
31325
  }), Qd = () => ae(zI), YI = ({ size: e, children: t }) => {
@@ -31341,21 +31350,21 @@ var Nu = (e, t, r) => {
31341
31350
  value: i,
31342
31351
  children: r
31343
31352
  });
31344
- }, Yl = () => ae(gl)?.viewport ?? null, Zd = () => {
31345
- const e = Yl();
31353
+ }, Kl = () => ae(gl)?.viewport ?? null, Zd = () => {
31354
+ const e = Kl();
31346
31355
  return e?.space === "pixels" ? e.size : null;
31347
31356
  }, Nr = () => {
31348
31357
  const e = ae(gl);
31349
31358
  if (e === null) throw new Error("useGeomPanelSize ran outside a geom layer.");
31350
31359
  return e.panel.size;
31351
31360
  }, xoe = () => {
31352
- const e = Yl();
31361
+ const e = Kl();
31353
31362
  return e?.space !== "unit" ? boe : {
31354
31363
  x: e.size.width,
31355
31364
  y: e.size.height
31356
31365
  };
31357
31366
  }, mn = ({ effects: e, children: t, ...r }) => {
31358
- const n = Yl()?.size ?? null, i = r.viewBox === "0 0 1 1" && r.preserveAspectRatio === "none";
31367
+ const n = Kl()?.size ?? null, i = r.viewBox === "0 0 1 1" && r.preserveAspectRatio === "none";
31359
31368
  return /* @__PURE__ */ v("g", {
31360
31369
  style: e,
31361
31370
  children: /* @__PURE__ */ v("svg", {
@@ -31436,7 +31445,7 @@ var Nu = (e, t, r) => {
31436
31445
  lineCap: l,
31437
31446
  lineJoin: c,
31438
31447
  animateTransitions: u
31439
- }), KI = 1, Aoe = 0.4, Toe = 0.2, Moe = 1, Eoe = 0.5, koe = 2.25, Ga = ({ hit: e, project: t = io, ...r }) => {
31448
+ }), KI = 1, Aoe = 0.4, Toe = 0.2, Moe = 1, Eoe = 0.5, koe = 2.25, Ha = ({ hit: e, project: t = io, ...r }) => {
31440
31449
  const n = NC(e.layerId), i = BC(e) ?? yd;
31441
31450
  if (!e.anchored) return null;
31442
31451
  const o = cg(e.observation) ?? 1, a = n?.get("stroke", e.observation, "hovered") ?? "#ffffff", s = n?.get("symbol", e.observation) ?? "circle", l = t(e.x, e.y), c = Z(l.x), u = Z(l.y), d = Poe(e.observation, n), h = ei(s) ? TX(s, d * 2) : d * Math.SQRT2, { strokeRadius: f, strokeWidth: p } = Coe(d, h), m = n ? et(wt(n, e.observation, "hovered")) : void 0;
@@ -31450,7 +31459,7 @@ var Nu = (e, t, r) => {
31450
31459
  fill: "none",
31451
31460
  stroke: a,
31452
31461
  strokeWidth: p
31453
- }), /* @__PURE__ */ v(jl, {
31462
+ }), /* @__PURE__ */ v(zl, {
31454
31463
  symbol: s,
31455
31464
  cx: c,
31456
31465
  cy: u,
@@ -31519,7 +31528,7 @@ var Nu = (e, t, r) => {
31519
31528
  })]
31520
31529
  }),
31521
31530
  n.map((x) => /* @__PURE__ */ v(mi, { hit: x }, `companion-${x.layerId}-${x.pointIndex}`)),
31522
- /* @__PURE__ */ v(Ga, {
31531
+ /* @__PURE__ */ v(Ha, {
31523
31532
  hit: r,
31524
31533
  "data-testid": "hovered-area-point"
31525
31534
  })
@@ -31606,7 +31615,7 @@ var sA = "\0", qI = (e, t) => {
31606
31615
  height: i
31607
31616
  } : null);
31608
31617
  }, r.onerror = () => t(null), r.src = e;
31609
- }), $a = (e) => {
31618
+ }), Ga = (e) => {
31610
31619
  const t = [...new Set(e.map(lA).filter((a) => a !== void 0))].join(sA), [r, n] = be(() => /* @__PURE__ */ new Map()), i = de(/* @__PURE__ */ new Set()), o = de(/* @__PURE__ */ new Set());
31611
31620
  return fe(() => () => {
31612
31621
  i.current = /* @__PURE__ */ new Set();
@@ -31673,7 +31682,7 @@ var Doe = 1 / 3, Ooe = {
31673
31682
  t ^= e.charCodeAt(r), t = Math.imul(t, 16777619);
31674
31683
  return (t >>> 0).toString(36);
31675
31684
  }, Foe = ({ entries: e, unitsPerPixel: t, origin: r }) => {
31676
- const n = $a(e.map(({ paint: i }) => i));
31685
+ const n = Ga(e.map(({ paint: i }) => i));
31677
31686
  return e.length === 0 ? null : /* @__PURE__ */ v("defs", { children: e.map(({ id: i, paint: o }) => /* @__PURE__ */ v(Voe, {
31678
31687
  id: i,
31679
31688
  paint: o,
@@ -32092,7 +32101,7 @@ var Qoe = 9999, Zoe = Jd(rW), iR = (e) => e === "full", oR = (e, t, r) => {
32092
32101
  t,
32093
32102
  n
32094
32103
  ]);
32095
- }, Kl = (e, t) => V(() => {
32104
+ }, Xl = (e, t) => V(() => {
32096
32105
  const r = Array.from(e.data, (i) => t.get("fill", i));
32097
32106
  return {
32098
32107
  paints: r,
@@ -32277,7 +32286,7 @@ var Qoe = 9999, Zoe = Jd(rW), iR = (e) => e === "full", oR = (e, t, r) => {
32277
32286
  width: e.width,
32278
32287
  height: 0
32279
32288
  }, vae = Jt(function({ layer: t, coordSystem: r, animateTransitions: n, intro: i }) {
32280
- const o = Oe(t), a = Yv(), s = nh(i?.type === "grow" && (i.growAxis === "x" || i.growAxis === "y") ? i : null, n), { paints: l, paintAt: c } = Kl(t, o), { fillFor: u, defs: d } = gr({
32289
+ const o = Oe(t), a = Yv(), s = nh(i?.type === "grow" && (i.growAxis === "x" || i.growAxis === "y") ? i : null, n), { paints: l, paintAt: c } = Xl(t, o), { fillFor: u, defs: d } = gr({
32281
32290
  paints: l,
32282
32291
  origin: zv(t, r)
32283
32292
  }), { mainAxis: h } = r, f = V(() => {
@@ -32287,7 +32296,7 @@ var Qoe = 9999, Zoe = Jd(rW), iR = (e) => e === "full", oR = (e, t, r) => {
32287
32296
  mainAxis: h,
32288
32297
  styleReaders: o,
32289
32298
  buildSegment: (g, y, x) => {
32290
- const w = c(x), S = Fl(o, g);
32299
+ const w = c(x), S = Vl(o, g);
32291
32300
  return {
32292
32301
  key: m(g),
32293
32302
  ...y,
@@ -32655,7 +32664,7 @@ var Qoe = 9999, Zoe = Jd(rW), iR = (e) => e === "full", oR = (e, t, r) => {
32655
32664
  }, l));
32656
32665
  }) })] });
32657
32666
  }, _ae = (e, t, r) => {
32658
- const { mainAxis: n } = r, i = Yv(), o = Oe(t), a = jv(t, n, o, i), { paints: s, paintAt: l } = Kl(e, o), { fillFor: c, defs: u } = gr({
32667
+ const { mainAxis: n } = r, i = Yv(), o = Oe(t), a = jv(t, n, o, i), { paints: s, paintAt: l } = Xl(e, o), { fillFor: c, defs: u } = gr({
32659
32668
  paints: s,
32660
32669
  origin: zv(t, r)
32661
32670
  }), d = rr(e.data, e.mapping, e.id), h = /* @__PURE__ */ new Map(), f = /* @__PURE__ */ new Map(), p = Xv(n);
@@ -32664,7 +32673,7 @@ var Qoe = 9999, Zoe = Jd(rW), iR = (e) => e === "full", oR = (e, t, r) => {
32664
32673
  m += 1;
32665
32674
  const y = cR(a, n, o, g);
32666
32675
  if (y === null) continue;
32667
- const x = d(g), w = l(m), S = Fl(o, g), M = i ? Kv : p(y.column, () => S >= 1 && av(w, f)), A = {
32676
+ const x = d(g), w = l(m), S = Vl(o, g), M = i ? Kv : p(y.column, () => S >= 1 && av(w, f)), A = {
32668
32677
  key: x,
32669
32678
  effects: et(wt(o, g)),
32670
32679
  node: /* @__PURE__ */ v(MR, {
@@ -32687,7 +32696,7 @@ var Qoe = 9999, Zoe = Jd(rW), iR = (e) => e === "full", oR = (e, t, r) => {
32687
32696
  const { mainAxis: n } = t, i = Yv(), o = Oe(e), a = jv(e, n, o, i), s = o.get("fill", r.observation, "hovered"), { fillFor: l, defs: c } = gr({
32688
32697
  paints: [s],
32689
32698
  origin: zv(e, t)
32690
- }), u = cR(a, n, o, r.observation), d = Fl(o, r.observation, "hovered"), h = u && (i ? Kv : Xv(n)(u.column, () => d >= 1 && zT(s)));
32699
+ }), u = cR(a, n, o, r.observation), d = Vl(o, r.observation, "hovered"), h = u && (i ? Kv : Xv(n)(u.column, () => d >= 1 && zT(s)));
32691
32700
  if (u === null || h === null) return null;
32692
32701
  const { column: f, bounds: p } = u, m = o.get("stroke", r.observation, "hovered");
32693
32702
  return /* @__PURE__ */ U("g", {
@@ -32948,7 +32957,7 @@ var Qoe = 9999, Zoe = Jd(rW), iR = (e) => e === "full", oR = (e, t, r) => {
32948
32957
  })
32949
32958
  }),
32950
32959
  r.map((p) => /* @__PURE__ */ v(mi, { hit: p }, `companion-${p.layerId}-${p.pointIndex}`)),
32951
- /* @__PURE__ */ v(Ga, {
32960
+ /* @__PURE__ */ v(Ha, {
32952
32961
  hit: t,
32953
32962
  "data-testid": "hovered-line-point"
32954
32963
  })
@@ -32979,14 +32988,14 @@ var Qoe = 9999, Zoe = Jd(rW), iR = (e) => e === "full", oR = (e, t, r) => {
32979
32988
  };
32980
32989
  }
32981
32990
  }, ER = ({ observation: e, project: t, styleReaders: r, animation: n, introKey: i }) => {
32982
- const o = ae(Vl)?.paintsShadow === !0, a = kR(e, t);
32991
+ const o = ae(Hl)?.paintsShadow === !0, a = kR(e, t);
32983
32992
  if (a === null) return null;
32984
32993
  const { animated: s, activeIntro: l, animateTransitions: c } = n, u = s ? {
32985
32994
  intro: l !== null,
32986
32995
  fadesIn: !o,
32987
32996
  transition: l ? qd(l, i) : Xd(c)
32988
32997
  } : null;
32989
- return /* @__PURE__ */ v(jl, {
32998
+ return /* @__PURE__ */ v(zl, {
32990
32999
  symbol: r.get("symbol", e),
32991
33000
  cx: Z(a.x),
32992
33001
  cy: Z(a.y),
@@ -33044,7 +33053,7 @@ var Qoe = 9999, Zoe = Jd(rW), iR = (e) => e === "full", oR = (e, t, r) => {
33044
33053
  o
33045
33054
  ]);
33046
33055
  }), vA = ({ primary: e, companions: t }) => {
33047
- const r = /* @__PURE__ */ U(Me, { children: [t.map((n) => /* @__PURE__ */ v(mi, { hit: n }, `companion-${n.layerId}-${n.pointIndex}`)), e ? /* @__PURE__ */ v(Ga, { hit: e }) : null] });
33056
+ const r = /* @__PURE__ */ U(Me, { children: [t.map((n) => /* @__PURE__ */ v(mi, { hit: n }, `companion-${n.layerId}-${n.pointIndex}`)), e ? /* @__PURE__ */ v(Ha, { hit: e }) : null] });
33048
33057
  return e ? /* @__PURE__ */ v("g", {
33049
33058
  "data-testid": "hovered-point",
33050
33059
  children: r
@@ -33577,7 +33586,7 @@ var ls = "var(--graphy-editor-font-family, var(--graphy-font-family))", B = {
33577
33586
  return typeof document < "u" && "fonts" in document && await document.fonts.ready, new HR();
33578
33587
  }
33579
33588
  measureText(t, r) {
33580
- const n = Da(t, r.textTransform), i = ZZ(r);
33589
+ const n = La(t, r.textTransform), i = ZZ(r);
33581
33590
  this.setFont(i);
33582
33591
  const { width: o, fontBoundingBoxAscent: a, fontBoundingBoxDescent: s } = this.ctx.measureText(n);
33583
33592
  let l = o + RC(n, r.letterSpacing);
@@ -33698,7 +33707,7 @@ function Ise() {
33698
33707
  function Rse(e) {
33699
33708
  return "render" in e && "measure" in e;
33700
33709
  }
33701
- var Lse = "swatch_root__1uv26hu0", Dse = 2, Ose = 12, Nse = 12, AA = 1, TA = 2, Bse = 4, Fse = 3, Vse = 2, Hse = /* @__PURE__ */ new Set(["square", "slice"]), MA = 0.375, UR = 1, Xl = (e) => /* @__PURE__ */ v(Xr("Swatch", Gse), { ...e }), Gse = ({ shape: e, color: t, paint: r, lineType: n = "solid", width: i = Ose, height: o = Nse, strokeWidth: a = Dse, alpha: s, cornerRadius: l, symbol: c, mainAxis: u = "x" }) => {
33710
+ var Lse = "swatch_root__1uv26hu0", Dse = 2, Ose = 12, Nse = 12, AA = 1, TA = 2, Bse = 4, Fse = 3, Vse = 2, Hse = /* @__PURE__ */ new Set(["square", "slice"]), MA = 0.375, UR = 1, ql = (e) => /* @__PURE__ */ v(Xr("Swatch", Gse), { ...e }), Gse = ({ shape: e, color: t, paint: r, lineType: n = "solid", width: i = Ose, height: o = Nse, strokeWidth: a = Dse, alpha: s, cornerRadius: l, symbol: c, mainAxis: u = "x" }) => {
33702
33711
  const d = Kd(), h = Use(e, t, r, Math.min(i, o)), f = gr({ paints: [h] }), p = f.fillFor(h);
33703
33712
  return /* @__PURE__ */ U("svg", {
33704
33713
  className: Lse,
@@ -33903,7 +33912,7 @@ var qse = iD((() => {
33903
33912
  e.assignInlineVars = r;
33904
33913
  })), Zse = /* @__PURE__ */ hn(((e, t) => {
33905
33914
  t.exports = Qse();
33906
- })), Wa = (e, t = B.fontFamily) => ({
33915
+ })), $a = (e, t = B.fontFamily) => ({
33907
33916
  fontFamily: e.fontFamily ?? t,
33908
33917
  fontSize: e.fontSize,
33909
33918
  fontWeight: e.fontWeight,
@@ -33922,14 +33931,14 @@ var qse = iD((() => {
33922
33931
  WebkitTextStroke: `${e.textOutlineWidth * 2}px ${e.textOutlineColor}`,
33923
33932
  paintOrder: "stroke"
33924
33933
  } : {}, Ho = (e) => ({
33925
- ...Wa(e),
33934
+ ...$a(e),
33926
33935
  lineHeight: e.lineHeight,
33927
33936
  color: e.textColor,
33928
33937
  ...e.textTransform === void 0 ? {} : { textTransform: e.textTransform },
33929
33938
  ...YR(e),
33930
33939
  ...zR(e)
33931
33940
  }), kt = (e) => ({
33932
- ...Wa(e),
33941
+ ...$a(e),
33933
33942
  lineHeight: e.lineHeight,
33934
33943
  color: e.textColor,
33935
33944
  ...e.textTransform === void 0 ? {} : { textTransform: e.textTransform },
@@ -34014,7 +34023,7 @@ var qse = iD((() => {
34014
34023
  }, tle = ({ label: e, textStyle: t, textWidth: r, labelPosition: n, horizontal: i, position: o, color: a, textColor: s, symbolShape: l, symbolColor: c, symbolPaint: u, symbolAlpha: d, symbolCornerRadius: h, symbolGlyph: f, symbolMainAxis: p, panelWidth: m, animateTransitions: g }) => {
34015
34024
  const y = l === null ? 0 : 14, x = r + y + 10, w = Math.max(yse, oi(t)) + 10, S = /* @__PURE__ */ U(Me, { children: [l !== null && c !== null && /* @__PURE__ */ v("g", {
34016
34025
  transform: `translate(0, ${-10 / 2})`,
34017
- children: /* @__PURE__ */ v(Xl, {
34026
+ children: /* @__PURE__ */ v(ql, {
34018
34027
  shape: l,
34019
34028
  color: c,
34020
34029
  paint: u,
@@ -34032,11 +34041,11 @@ var qse = iD((() => {
34032
34041
  dominantBaseline: "central",
34033
34042
  fill: s,
34034
34043
  style: {
34035
- ...Wa(t),
34044
+ ...$a(t),
34036
34045
  ...lh(t)
34037
34046
  },
34038
34047
  ...sh(t),
34039
- children: Da(e, t.textTransform)
34048
+ children: La(e, t.textTransform)
34040
34049
  })] });
34041
34050
  return i ? /* @__PURE__ */ v(Jse, {
34042
34051
  labelPosition: n,
@@ -34169,13 +34178,13 @@ var qse = iD((() => {
34169
34178
  pathData: i,
34170
34179
  animateTransitions: n
34171
34180
  }];
34172
- }, sle = ({ intro: e, children: t }) => ae(Vl)?.fading ? t : /* @__PURE__ */ v(Be.g, {
34181
+ }, sle = ({ intro: e, children: t }) => ae(Hl)?.fading ? t : /* @__PURE__ */ v(Be.g, {
34173
34182
  initial: { opacity: 0 },
34174
34183
  animate: { opacity: 1 },
34175
34184
  transition: WI(e),
34176
34185
  children: t
34177
34186
  }), lle = Jt(function({ layer: t, animateTransitions: r, intro: n }) {
34178
- const i = Nr(), o = n?.type === "fade" ? n : null, a = Oe(t), { paints: s, paintAt: l } = Kl(t, a), { fillFor: c, defs: u } = gr({ paints: s }), d = V(() => {
34187
+ const i = Nr(), o = n?.type === "fade" ? n : null, a = Oe(t), { paints: s, paintAt: l } = Xl(t, a), { fillFor: c, defs: u } = gr({ paints: s }), d = V(() => {
34179
34188
  const h = UX(t.data, t.mapping, t.id), f = [];
34180
34189
  let p = -1;
34181
34190
  for (const m of t.data) {
@@ -34282,7 +34291,7 @@ var qse = iD((() => {
34282
34291
  const r = /* @__PURE__ */ U(Me, { children: [t.map((n) => /* @__PURE__ */ v(mi, {
34283
34292
  hit: n,
34284
34293
  project: _r
34285
- }, `companion-${n.layerId}-${n.pointIndex}`)), e ? /* @__PURE__ */ v(Ga, {
34294
+ }, `companion-${n.layerId}-${n.pointIndex}`)), e ? /* @__PURE__ */ v(Ha, {
34286
34295
  hit: e,
34287
34296
  project: _r
34288
34297
  }) : null] });
@@ -34291,7 +34300,7 @@ var qse = iD((() => {
34291
34300
  children: r
34292
34301
  }) : r;
34293
34302
  }, XR = (e) => {
34294
- const t = Ba(e);
34303
+ const t = Na(e);
34295
34304
  return {
34296
34305
  origin: {
34297
34306
  x: t.centerX,
@@ -34301,9 +34310,9 @@ var qse = iD((() => {
34301
34310
  scaleY: t.radius
34302
34311
  };
34303
34312
  }, hle = (e) => ({
34304
- ...Ba(e),
34313
+ ...Na(e),
34305
34314
  digits: 2
34306
- }), qR = (e, t, r) => fr(e, t, Ba(r)), Zp = (e) => {
34315
+ }), qR = (e, t, r) => fr(e, t, Na(r)), Zp = (e) => {
34307
34316
  const [t, ...r] = e;
34308
34317
  if (!t) return "";
34309
34318
  const n = r.map((i) => `L ${i.x} ${i.y}`).join(" ");
@@ -34335,7 +34344,7 @@ var qse = iD((() => {
34335
34344
  n
34336
34345
  ]), { fillFor: o, defs: a } = gr({
34337
34346
  paints: V(() => i.map((s) => s.paint), [i]),
34338
- unitsPerPixel: Hl(r)
34347
+ unitsPerPixel: Gl(r)
34339
34348
  });
34340
34349
  return /* @__PURE__ */ U(mn, {
34341
34350
  viewBox: "-1 -1 2 2",
@@ -34413,7 +34422,7 @@ var qse = iD((() => {
34413
34422
  }, mle = ({ layer: e, primary: t, companions: r }) => {
34414
34423
  const n = Nr(), i = Oe(e), o = tr(t.observation), a = i.get("fill", t.observation, "hovered"), { fillFor: s, defs: l } = gr({
34415
34424
  paints: [a],
34416
- unitsPerPixel: Hl(n)
34425
+ unitsPerPixel: Gl(n)
34417
34426
  }), c = V(() => QR([...e.data.filter(xe.group, "eq", o)]), [e.data, o]);
34418
34427
  if (!c) return null;
34419
34428
  const u = i.get("stroke", t.observation, "hovered") ?? Fe(a), d = i.get("alpha", t.observation, "hovered"), h = i.get("fillAlpha", t.observation, "hovered") * d, f = i.get("strokeAlpha", t.observation, "hovered") * d, { strokeWidth: p, strokeDasharray: m, strokeLinecap: g } = gi(i.get("dashArray", t.observation, "hovered"), i.get("strokeWidth", t.observation, "hovered"));
@@ -34453,7 +34462,7 @@ var qse = iD((() => {
34453
34462
  hit: y,
34454
34463
  project: _r
34455
34464
  }, `companion-${y.layerId}-${y.pointIndex}`)),
34456
- /* @__PURE__ */ v(Ga, {
34465
+ /* @__PURE__ */ v(Ha, {
34457
34466
  hit: t,
34458
34467
  project: _r,
34459
34468
  "data-testid": "hovered-area-point"
@@ -34564,16 +34573,16 @@ var qse = iD((() => {
34564
34573
  strokeWidth: t,
34565
34574
  vectorEffect: "non-scaling-stroke"
34566
34575
  }), xle = Jt(function({ layer: t, coordSystem: r, animateTransitions: n, intro: i }) {
34567
- const o = Nr(), a = Zt(), s = nh(i?.type === "grow" && (i.growAxis === "angle" || i.growAxis === "radius") ? i : null, n), l = r.bandAxis !== "x", c = Oe(t), { paints: u, paintAt: d } = Kl(t, c), { fillFor: h, defs: f } = gr({
34576
+ const o = Nr(), a = Zt(), s = nh(i?.type === "grow" && (i.growAxis === "angle" || i.growAxis === "radius") ? i : null, n), l = r.bandAxis !== "x", c = Oe(t), { paints: u, paintAt: d } = Xl(t, c), { fillFor: h, defs: f } = gr({
34568
34577
  paints: u,
34569
- unitsPerPixel: Hl(o)
34578
+ unitsPerPixel: Gl(o)
34570
34579
  }), p = V(() => {
34571
34580
  const g = rr(t.data, t.mapping, t.id);
34572
34581
  return [...JR(t, r, c, (y, x, w) => ({
34573
34582
  key: g(y),
34574
34583
  ...x,
34575
34584
  fill: h(d(w)),
34576
- opacity: Fl(c, y)
34585
+ opacity: Vl(c, y)
34577
34586
  })).values()].map((y, x) => ({
34578
34587
  ...y,
34579
34588
  key: y.members[0]?.key ?? String(x)
@@ -34757,7 +34766,7 @@ var qse = iD((() => {
34757
34766
  if (s === null) return null;
34758
34767
  const l = vle(n, t, r, e, s), c = eL(s, l, t);
34759
34768
  if (c === void 0) return null;
34760
- const u = Fl(r, e, i), { stroke: d, strokeWidth: h, strokeAlpha: f } = l.style;
34769
+ const u = Vl(r, e, i), { stroke: d, strokeWidth: h, strokeAlpha: f } = l.style;
34761
34770
  if (d === void 0) return /* @__PURE__ */ v("path", {
34762
34771
  d: c,
34763
34772
  fill: o,
@@ -34800,9 +34809,9 @@ var qse = iD((() => {
34800
34809
  t,
34801
34810
  r,
34802
34811
  i
34803
- ]), { paints: a, paintAt: s } = Kl(e, i), { fillFor: l, defs: c } = gr({
34812
+ ]), { paints: a, paintAt: s } = Xl(e, i), { fillFor: l, defs: c } = gr({
34804
34813
  paints: a,
34805
- unitsPerPixel: Hl(n)
34814
+ unitsPerPixel: Gl(n)
34806
34815
  }), { bandAxis: u } = r, d = V(() => {
34807
34816
  const h = rr(e.data, e.mapping, e.id), f = [];
34808
34817
  let p = -1;
@@ -34861,7 +34870,7 @@ var qse = iD((() => {
34861
34870
  i
34862
34871
  ]), a = i.get("fill", r.observation, "hovered"), { fillFor: s, defs: l } = gr({
34863
34872
  paints: [a],
34864
- unitsPerPixel: Hl(n)
34873
+ unitsPerPixel: Gl(n)
34865
34874
  });
34866
34875
  return /* @__PURE__ */ U(mn, {
34867
34876
  viewBox: "-1 -1 2 2",
@@ -35014,7 +35023,7 @@ var qse = iD((() => {
35014
35023
  hit: f,
35015
35024
  project: _r
35016
35025
  }, `companion-${f.layerId}-${f.pointIndex}`)),
35017
- /* @__PURE__ */ v(Ga, {
35026
+ /* @__PURE__ */ v(Ha, {
35018
35027
  hit: t,
35019
35028
  project: _r,
35020
35029
  "data-testid": "hovered-line-point"
@@ -35119,7 +35128,7 @@ function ch(e) {
35119
35128
  fn: e.fn
35120
35129
  };
35121
35130
  }
35122
- function Ua(e) {
35131
+ function Wa(e) {
35123
35132
  return e ? ch(e.render).live : !1;
35124
35133
  }
35125
35134
  function cwe(e, t) {
@@ -35145,7 +35154,7 @@ var aL = (e) => typeof e == "object" && "geom" in e && "render" in e, sL = (e) =
35145
35154
  }, Ole = (e, t) => {
35146
35155
  const r = e.filter((n) => Nle(n, t));
35147
35156
  return r.length === e.length ? e : r;
35148
- }, Nle = (e, t) => e.kind === "annotation" ? Ek(t.annotations, e.id) !== null : e.kind === "observations" || e.kind === "layer" && e.layerId !== void 0 ? qs(t.layers, e.layerId) !== void 0 : !0, CA = [], Ble = () => Oa((e) => ({
35157
+ }, Nle = (e, t) => e.kind === "annotation" ? Ek(t.annotations, e.id) !== null : e.kind === "observations" || e.kind === "layer" && e.layerId !== void 0 ? qs(t.layers, e.layerId) !== void 0 : !0, CA = [], Ble = () => Da((e) => ({
35149
35158
  selection: CA,
35150
35159
  setSelection: (t) => e((r) => Fle(r.selection, t) ? r : { selection: t }),
35151
35160
  clearSelection: () => e((t) => t.selection.length === 0 ? t : { selection: CA })
@@ -35157,7 +35166,7 @@ var aL = (e) => typeof e == "object" && "geom" in e && "render" in e, sL = (e) =
35157
35166
  "right",
35158
35167
  "bottom",
35159
35168
  "left"
35160
- ], Hle = () => Oa((e) => ({
35169
+ ], Hle = () => Da((e) => ({
35161
35170
  boundary: null,
35162
35171
  setBoundary: (t) => e((r) => Gle(r.boundary, t) ? r : { boundary: t })
35163
35172
  })), Jp = (e, t) => e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height, em = (e, t) => Vle.every((r) => e[r].from === t[r].from && e[r].to === t[r].to), Gle = (e, t) => e === t ? !0 : e === null || t === null ? !1 : Jp(e.frame, t.frame) && Jp(e.client, t.client) && em(e.frameSpans, t.frameSpans) && em(e.clientSpans, t.clientSpans), Ki = (e) => {
@@ -35170,7 +35179,7 @@ var aL = (e) => typeof e == "object" && "geom" in e && "render" in e, sL = (e) =
35170
35179
  getLastTrigger: () => null,
35171
35180
  getLastCompile: () => null,
35172
35181
  getCacheStats: () => e.getCacheStats()
35173
- }), Ule = () => Oa((e) => ({
35182
+ }), Ule = () => Da((e) => ({
35174
35183
  lastCompile: null,
35175
35184
  history: [],
35176
35185
  nextId: 1,
@@ -35272,7 +35281,7 @@ function Xle(e, t) {
35272
35281
  for (const a of n) {
35273
35282
  if (a.interactive === !1 || a.spatialKind !== "renderHitTest" || i.has(a.geom)) continue;
35274
35283
  const s = t(a.geom, r.type);
35275
- s === null || s.hitTest || Ua(s) || (i.add(a.geom), o.push({
35284
+ s === null || s.hitTest || Wa(s) || (i.add(a.geom), o.push({
35276
35285
  kind: "userInput",
35277
35286
  severity: "warning",
35278
35287
  code: "MISSING_RENDER_HIT_TEST",
@@ -35309,7 +35318,7 @@ function Qle(e, t) {
35309
35318
  for (const a of n) {
35310
35319
  if (a.interactive === !1 || a.spatialKind !== "renderHitTest" || i.has(a.geom)) continue;
35311
35320
  const s = t(a.geom, r.type);
35312
- s === null || !s.hitTest || !Ua(s) || (i.add(a.geom), o.push({
35321
+ s === null || !s.hitTest || !Wa(s) || (i.add(a.geom), o.push({
35313
35322
  kind: "userInput",
35314
35323
  severity: "warning",
35315
35324
  code: "CONFLICTING_RENDER_HIT_TEST",
@@ -35344,7 +35353,7 @@ function Jle(e, t) {
35344
35353
  for (const a of n) {
35345
35354
  if (a.interactive === !1 || a.spatialKind === "renderHitTest" || i.has(a.geom)) continue;
35346
35355
  const s = t(a.geom, r.type);
35347
- s === null || !Ua(s) || (i.add(a.geom), o.push({
35356
+ s === null || !Wa(s) || (i.add(a.geom), o.push({
35348
35357
  kind: "userInput",
35349
35358
  severity: "warning",
35350
35359
  code: "LIVE_RENDER_REQUIRES_RENDER_HIT_TEST",
@@ -35360,7 +35369,7 @@ function Jle(e, t) {
35360
35369
  }
35361
35370
  function ece(e, t) {
35362
35371
  let r;
35363
- return e.layers.flatMap((n, i) => Ua(t(n.geom, e.coordSystem.type)) ? tce(n) ? (r ??= PC().readers(e), (r.geom(n).get("overpaint", void 0, "hovered")?.length ?? 0) === 0 ? [] : [{
35372
+ return e.layers.flatMap((n, i) => Wa(t(n.geom, e.coordSystem.type)) ? tce(n) ? (r ??= PC().readers(e), (r.geom(n).get("overpaint", void 0, "hovered")?.length ?? 0) === 0 ? [] : [{
35364
35373
  kind: "userInput",
35365
35374
  severity: "warning",
35366
35375
  code: "INVALID_STYLE_RULE",
@@ -35392,7 +35401,7 @@ function rce(e) {
35392
35401
  }
35393
35402
  return r;
35394
35403
  }
35395
- var nce = (e) => Oa((t) => ({
35404
+ var nce = (e) => Da((t) => ({
35396
35405
  scene: e,
35397
35406
  setScene: (r) => t((n) => n.scene === r ? n : { scene: r })
35398
35407
  })), ice = ({ spec: e, data: t, colorScheme: r, plugins: n, theme: i, resolveRenderer: o, anchorResolver: a, onSpecChange: s, onError: l, onWarnings: c }) => {
@@ -35613,7 +35622,7 @@ var nce = (e) => Oa((t) => ({
35613
35622
  value: g,
35614
35623
  children: /* @__PURE__ */ v(hJ, {
35615
35624
  value: w,
35616
- children: /* @__PURE__ */ v(zl, {
35625
+ children: /* @__PURE__ */ v(Yl, {
35617
35626
  shapes: f?.shapes,
35618
35627
  children: /* @__PURE__ */ v(Rie, {
35619
35628
  glyphs: p,
@@ -35635,7 +35644,7 @@ var nce = (e) => Oa((t) => ({
35635
35644
  severity: "warning",
35636
35645
  kind: "userInput",
35637
35646
  code: "INVALID_FORMATTING_LOCALE",
35638
- message: `formattingLocale '${e}' is not a tag Intl can format in, so the chart formats in ${ka}.`
35647
+ message: `formattingLocale '${e}' is not a tag Intl can format in, so the chart formats in ${Cl}.`
35639
35648
  }];
35640
35649
  ll(n), r.current?.(n);
35641
35650
  }, [e, r]), e === void 0 ? void 0 : Rd(e);
@@ -35654,7 +35663,7 @@ function uce({ theme: e, glyphs: t, ...r } = {}) {
35654
35663
  }
35655
35664
  var dce = () => {
35656
35665
  const e = /* @__PURE__ */ new Map();
35657
- return Oa((t) => ({
35666
+ return Da((t) => ({
35658
35667
  hover: ar,
35659
35668
  tooltipAnchor: null,
35660
35669
  pointerRegions: [],
@@ -35852,7 +35861,7 @@ var gce = ({ hitTest: e, input: t }) => {
35852
35861
  return r !== void 0 && r !== "circle" ? /* @__PURE__ */ v("g", {
35853
35862
  style: et(e.effects),
35854
35863
  "data-testid": e["data-testid"],
35855
- children: /* @__PURE__ */ v(jl, {
35864
+ children: /* @__PURE__ */ v(zl, {
35856
35865
  symbol: r,
35857
35866
  cx: RA(e.cx),
35858
35867
  cy: RA(e.cy),
@@ -35869,19 +35878,19 @@ var gce = ({ hitTest: e, input: t }) => {
35869
35878
  fadesIn: !1
35870
35879
  } : null
35871
35880
  })
35872
- }) : t === void 0 ? xce(n) : /* @__PURE__ */ v(zl, { children: /* @__PURE__ */ v(t, { ...n }) });
35881
+ }) : t === void 0 ? xce(n) : /* @__PURE__ */ v(Yl, { children: /* @__PURE__ */ v(t, { ...n }) });
35873
35882
  }, fwe = (e) => {
35874
35883
  const { Line: t } = Qd();
35875
- return t === void 0 ? wce(e) : /* @__PURE__ */ v(zl, { children: /* @__PURE__ */ v(t, { ...e }) });
35884
+ return t === void 0 ? wce(e) : /* @__PURE__ */ v(Yl, { children: /* @__PURE__ */ v(t, { ...e }) });
35876
35885
  }, pwe = ({ cornerRadius: e, ...t }) => {
35877
- const { Rect: r } = Qd(), n = Yl()?.size ?? null, i = xoe(), o = {
35886
+ const { Rect: r } = Qd(), n = Kl()?.size ?? null, i = xoe(), o = {
35878
35887
  ...t,
35879
35888
  ...Mce(e, t, n, i)
35880
35889
  };
35881
- return r === void 0 ? Sce(o) : /* @__PURE__ */ v(zl, { children: /* @__PURE__ */ v(r, { ...o }) });
35890
+ return r === void 0 ? Sce(o) : /* @__PURE__ */ v(Yl, { children: /* @__PURE__ */ v(r, { ...o }) });
35882
35891
  }, mwe = (e) => {
35883
35892
  const { Path: t } = Qd();
35884
- return t === void 0 ? Ace(e) : /* @__PURE__ */ v(zl, { children: /* @__PURE__ */ v(t, { ...e }) });
35893
+ return t === void 0 ? Ace(e) : /* @__PURE__ */ v(Yl, { children: /* @__PURE__ */ v(t, { ...e }) });
35885
35894
  }, RA = (e) => typeof e == "number" ? `${e}px` : e, Tce = ({ d: e, source: t, ...r }) => {
35886
35895
  const n = Nu(e, Nt, t);
35887
35896
  return /* @__PURE__ */ v(Be.path, {
@@ -36045,7 +36054,7 @@ function _ce(e) {
36045
36054
  ]);
36046
36055
  }
36047
36056
  var vwe = ({ children: e, ...t }) => {
36048
- const r = Yl()?.size ?? null;
36057
+ const r = Kl()?.size ?? null;
36049
36058
  return /* @__PURE__ */ v("svg", {
36050
36059
  viewBox: "0 0 1 1",
36051
36060
  preserveAspectRatio: "none",
@@ -38675,7 +38684,7 @@ function Fue(e = {
38675
38684
  })
38676
38685
  };
38677
38686
  }
38678
- var ja = class yn {
38687
+ var Ua = class yn {
38679
38688
  constructor(t, r = yn.defaultLocale, n, i) {
38680
38689
  if (z(this, "ast", void 0), z(this, "locales", void 0), z(this, "resolvedLocale", void 0), z(this, "formatters", void 0), z(this, "formats", void 0), z(this, "message", void 0), z(this, "formatterCache", {
38681
38690
  number: {},
@@ -38701,14 +38710,14 @@ var ja = class yn {
38701
38710
  return yn.memoizedDefaultLocale || (yn.memoizedDefaultLocale = new Intl.NumberFormat().resolvedOptions().locale), yn.memoizedDefaultLocale;
38702
38711
  }
38703
38712
  };
38704
- z(ja, "memoizedDefaultLocale", null);
38705
- z(ja, "resolveLocale", (e) => {
38713
+ z(Ua, "memoizedDefaultLocale", null);
38714
+ z(Ua, "resolveLocale", (e) => {
38706
38715
  if (typeof Intl.Locale > "u") return;
38707
38716
  const t = Intl.NumberFormat.supportedLocalesOf(e);
38708
38717
  return t.length > 0 ? new Intl.Locale(t[0]) : new Intl.Locale(typeof e == "string" ? e : e[0]);
38709
38718
  });
38710
- z(ja, "__parse", Rue);
38711
- z(ja, "formats", {
38719
+ z(Ua, "__parse", Rue);
38720
+ z(Ua, "formats", {
38712
38721
  number: {
38713
38722
  integer: { maximumFractionDigits: 0 },
38714
38723
  currency: { style: "currency" },
@@ -38761,9 +38770,9 @@ z(ja, "formats", {
38761
38770
  }
38762
38771
  }
38763
38772
  });
38764
- var ql = /* @__PURE__ */ (function(e) {
38773
+ var Ql = /* @__PURE__ */ (function(e) {
38765
38774
  return e.FORMAT_ERROR = "FORMAT_ERROR", e.UNSUPPORTED_FORMATTER = "UNSUPPORTED_FORMATTER", e.INVALID_CONFIG = "INVALID_CONFIG", e.MISSING_DATA = "MISSING_DATA", e.MISSING_TRANSLATION = "MISSING_TRANSLATION", e;
38766
- })({}), Ql = class PL extends Error {
38775
+ })({}), Zl = class PL extends Error {
38767
38776
  constructor(t, r, n) {
38768
38777
  const i = n ? n instanceof Error ? n : new Error(String(n)) : void 0;
38769
38778
  super(`[@formatjs/intl Error ${t}] ${r}
@@ -38771,21 +38780,21 @@ ${i ? `
38771
38780
  ${i.message}
38772
38781
  ${i.stack}` : ""}`), z(this, "code", void 0), this.code = t, typeof Error.captureStackTrace == "function" && Error.captureStackTrace(this, PL);
38773
38782
  }
38774
- }, Vue = class extends Ql {
38783
+ }, Vue = class extends Zl {
38775
38784
  constructor(e, t) {
38776
- super(ql.UNSUPPORTED_FORMATTER, e, t);
38785
+ super(Ql.UNSUPPORTED_FORMATTER, e, t);
38777
38786
  }
38778
- }, Hue = class extends Ql {
38787
+ }, Hue = class extends Zl {
38779
38788
  constructor(e, t) {
38780
- super(ql.INVALID_CONFIG, e, t);
38789
+ super(Ql.INVALID_CONFIG, e, t);
38781
38790
  }
38782
- }, jA = class extends Ql {
38791
+ }, jA = class extends Zl {
38783
38792
  constructor(e, t) {
38784
- super(ql.MISSING_DATA, e, t);
38793
+ super(Ql.MISSING_DATA, e, t);
38785
38794
  }
38786
- }, vr = class extends Ql {
38795
+ }, vr = class extends Zl {
38787
38796
  constructor(e, t, r) {
38788
- super(ql.FORMAT_ERROR, `${e}
38797
+ super(Ql.FORMAT_ERROR, `${e}
38789
38798
  Locale: ${t}
38790
38799
  `, r), z(this, "descriptor", void 0), z(this, "locale", void 0), this.locale = t;
38791
38800
  }
@@ -38797,15 +38806,15 @@ Default Message: ${r?.defaultMessage}
38797
38806
  Description: ${r?.description}
38798
38807
  `, t, n), z(this, "descriptor", void 0), z(this, "locale", void 0), this.descriptor = r, this.locale = t;
38799
38808
  }
38800
- }, Gue = class extends Ql {
38809
+ }, Gue = class extends Zl {
38801
38810
  constructor(e, t) {
38802
- super(ql.MISSING_TRANSLATION, `Missing message: "${e.id}" for locale "${t}", using ${e.defaultMessage ? `default message (${typeof e.defaultMessage == "string" ? e.defaultMessage : e.defaultMessage.map((r) => r.value ?? JSON.stringify(r)).join()})` : "id"} as fallback.`), z(this, "descriptor", void 0), this.descriptor = e;
38811
+ super(Ql.MISSING_TRANSLATION, `Missing message: "${e.id}" for locale "${t}", using ${e.defaultMessage ? `default message (${typeof e.defaultMessage == "string" ? e.defaultMessage : e.defaultMessage.map((r) => r.value ?? JSON.stringify(r)).join()})` : "id"} as fallback.`), z(this, "descriptor", void 0), this.descriptor = e;
38803
38812
  }
38804
38813
  };
38805
38814
  function $ue(e, t, r = Error) {
38806
38815
  if (!e) throw new r(t);
38807
38816
  }
38808
- function za(e, t, r = {}) {
38817
+ function ja(e, t, r = {}) {
38809
38818
  return t.reduce((n, i) => (i in e ? n[i] = e[i] : i in r && (n[i] = r[i]), n), {});
38810
38819
  }
38811
38820
  var Wue = (e) => {
@@ -38857,7 +38866,7 @@ function jue(e = _L()) {
38857
38866
  return {
38858
38867
  getDateTimeFormat: i,
38859
38868
  getNumberFormat: o,
38860
- getMessageFormat: $r((s, l, c, u) => new ja(s, l, c, {
38869
+ getMessageFormat: $r((s, l, c, u) => new Ua(s, l, c, {
38861
38870
  formatters: {
38862
38871
  getNumberFormat: o,
38863
38872
  getDateTimeFormat: i,
@@ -38906,7 +38915,7 @@ function zA(e, t) {
38906
38915
  }
38907
38916
  function YA(e, t) {
38908
38917
  if (!t) return e;
38909
- const r = ja.formats;
38918
+ const r = Ua.formats;
38910
38919
  return {
38911
38920
  ...r,
38912
38921
  ...e,
@@ -38965,12 +38974,12 @@ var im = ({ locale: e, formats: t, messages: r, defaultLocale: n, defaultFormats
38965
38974
  "numberingSystem",
38966
38975
  "fractionalSecondDigits"
38967
38976
  ];
38968
- function Zl({ locale: e, formats: t, onError: r, timeZone: n }, i, o, a = {}) {
38977
+ function Jl({ locale: e, formats: t, onError: r, timeZone: n }, i, o, a = {}) {
38969
38978
  const { format: s } = a, l = {
38970
38979
  ...n && { timeZone: n },
38971
38980
  ...s && sy(t, i, s, r)
38972
38981
  };
38973
- let c = za(a, zue, l);
38982
+ let c = ja(a, zue, l);
38974
38983
  return i === "time" && !c.hour && !c.minute && !c.second && !c.timeStyle && !c.dateStyle && (c = {
38975
38984
  ...c,
38976
38985
  hour: "numeric",
@@ -38980,7 +38989,7 @@ function Zl({ locale: e, formats: t, onError: r, timeZone: n }, i, o, a = {}) {
38980
38989
  function Yue(e, t, r, n = {}) {
38981
38990
  const i = typeof r == "string" ? new Date(r || 0) : r;
38982
38991
  try {
38983
- return Zl(e, "date", t, n).format(i);
38992
+ return Jl(e, "date", t, n).format(i);
38984
38993
  } catch (o) {
38985
38994
  e.onError(new vr("Error formatting date.", e.locale, o));
38986
38995
  }
@@ -38989,7 +38998,7 @@ function Yue(e, t, r, n = {}) {
38989
38998
  function Kue(e, t, r, n = {}) {
38990
38999
  const i = typeof r == "string" ? new Date(r || 0) : r;
38991
39000
  try {
38992
- return Zl(e, "time", t, n).format(i);
39001
+ return Jl(e, "time", t, n).format(i);
38993
39002
  } catch (o) {
38994
39003
  e.onError(new vr("Error formatting time.", e.locale, o));
38995
39004
  }
@@ -38998,7 +39007,7 @@ function Kue(e, t, r, n = {}) {
38998
39007
  function Xue(e, t, r, n, i = {}) {
38999
39008
  const o = typeof r == "string" ? new Date(r || 0) : r, a = typeof n == "string" ? new Date(n || 0) : n;
39000
39009
  try {
39001
- return Zl(e, "dateTimeRange", t, i).formatRange(o, a);
39010
+ return Jl(e, "dateTimeRange", t, i).formatRange(o, a);
39002
39011
  } catch (s) {
39003
39012
  e.onError(new vr("Error formatting date time range.", e.locale, s));
39004
39013
  }
@@ -39007,7 +39016,7 @@ function Xue(e, t, r, n, i = {}) {
39007
39016
  function que(e, t, r, n = {}) {
39008
39017
  const i = typeof r == "string" ? new Date(r || 0) : r;
39009
39018
  try {
39010
- return Zl(e, "date", t, n).formatToParts(i);
39019
+ return Jl(e, "date", t, n).formatToParts(i);
39011
39020
  } catch (o) {
39012
39021
  e.onError(new vr("Error formatting date.", e.locale, o));
39013
39022
  }
@@ -39016,7 +39025,7 @@ function que(e, t, r, n = {}) {
39016
39025
  function Que(e, t, r, n = {}) {
39017
39026
  const i = typeof r == "string" ? new Date(r || 0) : r;
39018
39027
  try {
39019
- return Zl(e, "time", t, n).formatToParts(i);
39028
+ return Jl(e, "time", t, n).formatToParts(i);
39020
39029
  } catch (o) {
39021
39030
  e.onError(new vr("Error formatting time.", e.locale, o));
39022
39031
  }
@@ -39032,7 +39041,7 @@ function Jue({ locale: e, onError: t }, r, n, i) {
39032
39041
  Intl.DisplayNames || t(new xi(`Intl.DisplayNames is not available in this environment.
39033
39042
  Try polyfilling it using "@formatjs/intl-displaynames"
39034
39043
  `, bi.MISSING_INTL_API));
39035
- const o = za(i, Zue);
39044
+ const o = ja(i, Zue);
39036
39045
  try {
39037
39046
  return r(e, o).of(n);
39038
39047
  } catch (a) {
@@ -39054,7 +39063,7 @@ function IL({ locale: e, onError: t }, r, n, i = {}) {
39054
39063
  Intl.ListFormat || t(new xi(`Intl.ListFormat is not available in this environment.
39055
39064
  Try polyfilling it using "@formatjs/intl-listformat"
39056
39065
  `, bi.MISSING_INTL_API));
39057
- const o = za(i, ede);
39066
+ const o = ja(i, ede);
39058
39067
  try {
39059
39068
  const a = {}, s = Array.from(n).map((l, c) => {
39060
39069
  if (typeof l == "object" && l !== null) {
@@ -39077,7 +39086,7 @@ function ide({ locale: e, onError: t }, r, n, i = {}) {
39077
39086
  Intl.PluralRules || t(new xi(`Intl.PluralRules is not available in this environment.
39078
39087
  Try polyfilling it using "@formatjs/intl-pluralrules"
39079
39088
  `, bi.MISSING_INTL_API));
39080
- const o = za(i, nde);
39089
+ const o = ja(i, nde);
39081
39090
  try {
39082
39091
  return r(e, o).select(n);
39083
39092
  } catch (a) {
@@ -39088,7 +39097,7 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
39088
39097
  var ode = ["numeric", "style"];
39089
39098
  function ade({ locale: e, formats: t, onError: r }, n, i = {}) {
39090
39099
  const { format: o } = i, a = !!o && sy(t, "relative", o, r) || {};
39091
- return n(e, za(i, ode, a));
39100
+ return n(e, ja(i, ode, a));
39092
39101
  }
39093
39102
  function sde(e, t, r, n, i = {}) {
39094
39103
  n || (n = "second"), Intl.RelativeTimeFormat || e.onError(new xi(`Intl.RelativeTimeFormat is not available in this environment.
@@ -39127,7 +39136,7 @@ var lde = [
39127
39136
  ];
39128
39137
  function RL({ locale: e, formats: t, onError: r }, n, i = {}) {
39129
39138
  const { format: o } = i, a = o && sy(t, "number", o, r) || {};
39130
- return n(e, za(i, lde, a));
39139
+ return n(e, ja(i, lde, a));
39131
39140
  }
39132
39141
  function cde(e, t, r, n = {}) {
39133
39142
  try {
@@ -39587,9 +39596,9 @@ var Tde = {
39587
39596
  r = r[n];
39588
39597
  }
39589
39598
  if (typeof r == "string" || typeof r == "function") return r;
39590
- }, NL = (e = ka) => {
39599
+ }, NL = (e = Cl) => {
39591
39600
  const { language: t, region: r } = new Intl.Locale(Rd(e));
39592
- return [`${t}-${r}`, t].find(Dde) ?? "en-GB";
39601
+ return [`${t}-${r}`, t].find(Dde) ?? "en-US";
39593
39602
  }, Dde = (e) => e in cy, uy = De(null), Ode = [cy], BL = () => Bde().translator, Nde = (e) => {
39594
39603
  const t = ae(uy)?.requested;
39595
39604
  return {
@@ -39990,7 +39999,7 @@ var the = function(e) {
39990
39999
  function hh() {
39991
40000
  return typeof window < "u";
39992
40001
  }
39993
- function Ya(e) {
40002
+ function za(e) {
39994
40003
  return $L(e) ? (e.nodeName || "").toLowerCase() : "#document";
39995
40004
  }
39996
40005
  function Qt(e) {
@@ -40013,12 +40022,12 @@ function Bn(e) {
40013
40022
  function nT(e) {
40014
40023
  return !hh() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof Qt(e).ShadowRoot;
40015
40024
  }
40016
- function Jl(e) {
40025
+ function ec(e) {
40017
40026
  const { overflow: t, overflowX: r, overflowY: n, display: i } = Rr(e);
40018
40027
  return /auto|scroll|overlay|hidden|clip/.test(t + n + r) && i !== "inline" && i !== "contents";
40019
40028
  }
40020
40029
  function nhe(e) {
40021
- return /^(table|td|th)$/.test(Ya(e));
40030
+ return /^(table|td|th)$/.test(za(e));
40022
40031
  }
40023
40032
  function fh(e) {
40024
40033
  try {
@@ -40049,7 +40058,7 @@ function hy() {
40049
40058
  return Af == null && (Af = typeof CSS < "u" && CSS.supports && CSS.supports("-webkit-backdrop-filter", "none")), Af;
40050
40059
  }
40051
40060
  function Sa(e) {
40052
- return /^(html|body|#document)$/.test(Ya(e));
40061
+ return /^(html|body|#document)$/.test(za(e));
40053
40062
  }
40054
40063
  function Rr(e) {
40055
40064
  return Qt(e).getComputedStyle(e);
@@ -40064,13 +40073,13 @@ function ph(e) {
40064
40073
  };
40065
40074
  }
40066
40075
  function ci(e) {
40067
- if (Ya(e) === "html") return e;
40076
+ if (za(e) === "html") return e;
40068
40077
  const t = e.assignedSlot || e.parentNode || nT(e) && e.host || Nn(e);
40069
40078
  return nT(t) ? t.host : t;
40070
40079
  }
40071
40080
  function WL(e) {
40072
40081
  const t = ci(e);
40073
- return Sa(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : Bn(t) && Jl(t) ? t : WL(t);
40082
+ return Sa(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : Bn(t) && ec(t) ? t : WL(t);
40074
40083
  }
40075
40084
  function am(e, t, r) {
40076
40085
  var n;
@@ -40078,7 +40087,7 @@ function am(e, t, r) {
40078
40087
  const i = WL(e), o = i === ((n = e.ownerDocument) == null ? void 0 : n.body), a = Qt(i);
40079
40088
  if (o) {
40080
40089
  const s = sm(a);
40081
- return t.concat(a, a.visualViewport || [], Jl(i) ? i : [], s && r ? am(s) : []);
40090
+ return t.concat(a, a.visualViewport || [], ec(i) ? i : [], s && r ? am(s) : []);
40082
40091
  } else return t.concat(i, am(i, [], r));
40083
40092
  }
40084
40093
  function sm(e) {
@@ -40160,7 +40169,7 @@ function che(e) {
40160
40169
  scrollTop: 0
40161
40170
  }, c = an(1);
40162
40171
  const u = an(0), d = Bn(n);
40163
- if ((d || !d && !o) && ((Ya(n) !== "body" || Jl(a)) && (l = ph(n)), d)) {
40172
+ if ((d || !d && !o) && ((za(n) !== "body" || ec(a)) && (l = ph(n)), d)) {
40164
40173
  const f = yl(n);
40165
40174
  c = oa(n), u.x = f.x + n.clientLeft, u.y = f.y + n.clientTop;
40166
40175
  }
@@ -40239,12 +40248,12 @@ function KL(e, t) {
40239
40248
  function phe(e, t) {
40240
40249
  const r = t.get(e);
40241
40250
  if (r) return r;
40242
- let n = am(e, [], !1).filter((s) => Ir(s) && Ya(s) !== "body"), i = null;
40251
+ let n = am(e, [], !1).filter((s) => Ir(s) && za(s) !== "body"), i = null;
40243
40252
  const o = Rr(e).position === "fixed";
40244
40253
  let a = o ? ci(e) : e;
40245
40254
  for (; Ir(a) && !Sa(a); ) {
40246
40255
  const s = Rr(a), l = dy(a);
40247
- !l && s.position === "fixed" && (i = null), (o ? !l && !i : !l && s.position === "static" && i && (i.position === "absolute" || i.position === "fixed") || Jl(a) && !l && KL(e, a)) ? n = n.filter((c) => c !== a) : i = s, a = ci(a);
40256
+ !l && s.position === "fixed" && (i = null), (o ? !l && !i : !l && s.position === "static" && i && (i.position === "absolute" || i.position === "fixed") || ec(a) && !l && KL(e, a)) ? n = n.filter((c) => c !== a) : i = s, a = ci(a);
40248
40257
  }
40249
40258
  return t.set(e, n), n;
40250
40259
  }
@@ -40281,7 +40290,7 @@ function vhe(e, t, r) {
40281
40290
  l.x = mh(i);
40282
40291
  }
40283
40292
  if (n || !n && !o)
40284
- if ((Ya(t) !== "body" || Jl(i)) && (s = ph(t)), n) {
40293
+ if ((za(t) !== "body" || ec(i)) && (s = ph(t)), n) {
40285
40294
  const d = yl(t, !0, o, t);
40286
40295
  l.x = d.x + t.clientLeft, l.y = d.y + t.clientTop;
40287
40296
  } else i && c();
@@ -40531,7 +40540,7 @@ var lm = (e, t) => {
40531
40540
  }, Mhe = (e) => {
40532
40541
  const { topLeft: t, topRight: r, bottomRight: n, bottomLeft: i } = ZL(e);
40533
40542
  return t > 0 || r > 0 || n > 0 || i > 0;
40534
- }, ec = (e, t = 0) => {
40543
+ }, tc = (e, t = 0) => {
40535
40544
  const r = gh(e);
40536
40545
  if (r !== null) return `${lT(r, t)}px`;
40537
40546
  const { topLeft: n, topRight: i, bottomRight: o, bottomLeft: a } = e;
@@ -40922,7 +40931,7 @@ var zu = {
40922
40931
  }), y = Vhe();
40923
40932
  return y ? J2(/* @__PURE__ */ v(Bhe, { children: g }), y) : g;
40924
40933
  }, ffe = ({ content: e }) => {
40925
- const t = Bt(), r = ge((d) => d.coordSystem), n = ue(v9, ke()), i = $a([n.box.fill]), o = kt(n.heading), a = kt(n.label), s = kt(n.value), l = { paddingInline: n.box.paddingInline }, c = e.rows.some((d) => d.swatchColor !== null), u = e.rows.some((d) => !d.primary);
40934
+ const t = Bt(), r = ge((d) => d.coordSystem), n = ue(v9, ke()), i = Ga([n.box.fill]), o = kt(n.heading), a = kt(n.label), s = kt(n.value), l = { paddingInline: n.box.paddingInline }, c = e.rows.some((d) => d.swatchColor !== null), u = e.rows.some((d) => !d.primary);
40926
40935
  return /* @__PURE__ */ U("div", {
40927
40936
  className: qhe,
40928
40937
  style: pfe(n.box, i(n.box.fill)),
@@ -40968,9 +40977,9 @@ var zu = {
40968
40977
  });
40969
40978
  }, pfe = (e, t) => ({
40970
40979
  ...Aa(e.fill, t),
40971
- borderRadius: ec(e.cornerRadius),
40980
+ borderRadius: tc(e.cornerRadius),
40972
40981
  paddingBlock: e.paddingBlock,
40973
- boxShadow: Na(e.shadow),
40982
+ boxShadow: Oa(e.shadow),
40974
40983
  ...e.alpha === void 0 ? {} : { opacity: e.alpha },
40975
40984
  ...e.strokeWidth > 0 ? { border: `${e.strokeWidth}px solid ${e.stroke}` } : {}
40976
40985
  }), mfe = (e) => ({
@@ -41018,7 +41027,7 @@ var zu = {
41018
41027
  e.swatchColor === null ? n && /* @__PURE__ */ v("span", {
41019
41028
  className: "tooltip_swatchPlaceholder__1aumv55",
41020
41029
  "aria-hidden": !0
41021
- }) : /* @__PURE__ */ v(Xl, {
41030
+ }) : /* @__PURE__ */ v(ql, {
41022
41031
  shape: t,
41023
41032
  color: e.swatchColor,
41024
41033
  paint: e.swatchFill,
@@ -41162,7 +41171,7 @@ var zu = {
41162
41171
  });
41163
41172
  return Math.max(...f) + d;
41164
41173
  }, Lfe = ({ textMeasurer: e, tickLabelStyles: t, familyDefault: r }) => (n, i) => e.measureText(n, Ut(t(i), r)), Dfe = Object.freeze({}), Ofe = ({ textMeasurer: e, metrics: t, overrides: r = Dfe }) => {
41165
- const n = ke(), i = ue(a2, n), o = ue(yh, n), a = ue(fP, n), s = ue(Nl, n), l = ue(vy, n), c = ue(s2, n), u = de(r);
41174
+ const n = ke(), i = ue(a2, n), o = ue(yh, n), a = ue(fP, n), s = ue(Bl, n), l = ue(vy, n), c = ue(s2, n), u = de(r);
41166
41175
  return u.current = r, V(() => {
41167
41176
  if (!e) return null;
41168
41177
  const d = t.fonts.familyDefault, h = n.graph().get("textScale"), f = {
@@ -41359,7 +41368,7 @@ var zu = {
41359
41368
  }, epe = (e) => {
41360
41369
  const t = e.editTargetUnderPointer;
41361
41370
  return t !== null && t.kind !== "menu-trigger";
41362
- }, tpe = () => Oa((e) => ({
41371
+ }, tpe = () => Da((e) => ({
41363
41372
  menuTrigger: null,
41364
41373
  editTargetUnderPointer: null,
41365
41374
  standingInteraction: null,
@@ -41757,7 +41766,7 @@ var Jpe = ({ segment: e, itemStyle: t }) => {
41757
41766
  });
41758
41767
  }, eme = ({ swatch: e, size: t }) => {
41759
41768
  const r = Bt(), n = ah(e.layerId, e.value, t), i = oh(e.layerId, e.value, e.color) ?? e.color;
41760
- return /* @__PURE__ */ v(Xl, {
41769
+ return /* @__PURE__ */ v(ql, {
41761
41770
  shape: r(e.geom, "cartesian")?.swatchShape ?? "square",
41762
41771
  color: i,
41763
41772
  paint: n.fill,
@@ -41859,21 +41868,21 @@ var Jpe = ({ segment: e, itemStyle: t }) => {
41859
41868
  }, ame = "data-legend-index", sme = "data-legend-item-index", A2 = ({ legendIndex: e, itemIndex: t }) => ({
41860
41869
  [ame]: String(e),
41861
41870
  [sme]: String(t)
41862
- }), Ka = "data-edit-kind", lme = "data-edit-id", T2 = "data-edit-axis", cme = "data-edit-tick-index", M2 = "data-legend-overflow-control", Mwe = `[${M2}]`, ume = "observations", dme = "data-live-geom", Ewe = `[${Ka}]`, tc = (e) => ({
41863
- [Ka]: e.kind,
41871
+ }), Ya = "data-edit-kind", lme = "data-edit-id", T2 = "data-edit-axis", cme = "data-edit-tick-index", M2 = "data-legend-overflow-control", Mwe = `[${M2}]`, ume = "observations", dme = "data-live-geom", Ewe = `[${Ya}]`, rc = (e) => ({
41872
+ [Ya]: e.kind,
41864
41873
  [lme]: e.id
41865
41874
  }), xy = (e, t) => ({
41866
- [Ka]: "axis",
41875
+ [Ya]: "axis",
41867
41876
  [T2]: e,
41868
41877
  ...t === void 0 ? {} : { [cme]: String(t) }
41869
41878
  }), wy = (e) => ({
41870
- [Ka]: "legend",
41879
+ [Ya]: "legend",
41871
41880
  ...A2(e)
41872
41881
  }), E2 = (e) => ({
41873
- [Ka]: "grid",
41882
+ [Ya]: "grid",
41874
41883
  [T2]: e
41875
41884
  }), k2 = ({ live: e = !1 } = {}) => ({
41876
- [Ka]: ume,
41885
+ [Ya]: ume,
41877
41886
  ...e ? { [dme]: "" } : {}
41878
41887
  }), wi = () => Br[yi()].selectGuidesOnPress, hme = 0.25, Sy = (e) => Ao() ? null : /* @__PURE__ */ v(fme, { ...e }), fme = ({ children: e, as: t = "g", ...r }) => {
41879
41888
  const n = ife(), i = t;
@@ -41990,8 +41999,8 @@ var vme = 8, yme = 16, bme = 2, xme = ({ indexedLegends: e, containerRect: t })
41990
41999
  var kme = 0.6;
41991
42000
  var P2 = (e, t) => ({
41992
42001
  ...e.fill === void 0 ? {} : Aa(e.fill, t),
41993
- ...e.cornerRadius === void 0 ? {} : { borderRadius: ec(e.cornerRadius) },
41994
- ...e.shadow === void 0 ? {} : { boxShadow: Na(e.shadow) },
42002
+ ...e.cornerRadius === void 0 ? {} : { borderRadius: tc(e.cornerRadius) },
42003
+ ...e.shadow === void 0 ? {} : { boxShadow: Oa(e.shadow) },
41995
42004
  ...I2(e.strokeWidth, e.stroke)
41996
42005
  }), C2 = (e, t) => ({
41997
42006
  ...kt(e),
@@ -42001,10 +42010,10 @@ var P2 = (e, t) => ({
42001
42010
  paddingBlock: e.paddingBlock
42002
42011
  }), _2 = (e) => e.fill !== void 0 || e.strokeWidth > 0, Pme = (e, t, r) => ({
42003
42012
  ...Aa(e.fill, r),
42004
- borderRadius: ec(e.cornerRadius),
42013
+ borderRadius: tc(e.cornerRadius),
42005
42014
  paddingInline: e.paddingInline,
42006
42015
  paddingBlock: e.paddingBlock,
42007
- boxShadow: Na(e.shadow),
42016
+ boxShadow: Oa(e.shadow),
42008
42017
  ...e.alpha === void 0 ? {} : { opacity: e.alpha },
42009
42018
  ...I2(e.strokeWidth, e.stroke),
42010
42019
  ...kt(t)
@@ -42051,8 +42060,8 @@ var Nme = "pill-content_bubble__1rqnt0m0", Ef = "\0", Bme = (e, t) => {
42051
42060
  }
42052
42061
  return r;
42053
42062
  }, R2 = ({ pill: e }) => e.hasBubbleSwatch ? /* @__PURE__ */ v(Hme, { pill: e }) : /* @__PURE__ */ v(Vme, { pill: e }), Fme = ({ color: e, lineType: t, shape: r, label: n, layerId: i, groupValue: o }) => {
42054
- const { swatch: a } = ue(Nl, ke()), s = ah(i, o, a.size), l = oh(i, o, e), c = ge((d) => di(d.coordSystem)), u = Gme(e, l);
42055
- return u ? /* @__PURE__ */ v(Xl, {
42063
+ const { swatch: a } = ue(Bl, ke()), s = ah(i, o, a.size), l = oh(i, o, e), c = ge((d) => di(d.coordSystem)), u = Gme(e, l);
42064
+ return u ? /* @__PURE__ */ v(ql, {
42056
42065
  shape: r,
42057
42066
  color: u,
42058
42067
  paint: s.fill,
@@ -42075,7 +42084,7 @@ var Nme = "pill-content_bubble__1rqnt0m0", Ef = "\0", Bme = (e, t) => {
42075
42084
  layerId: e.layerId,
42076
42085
  groupValue: e.groupValue
42077
42086
  }), /* @__PURE__ */ v("span", { children: e.formattedLabel })] }), Hme = ({ pill: e }) => {
42078
- const t = Number(e.visual.size), { item: r } = ue(Nl, ke()), n = ah(e.layerId, e.groupValue, t), i = oh(e.layerId, e.groupValue, r.textColor), o = n.fill === void 0 ? i : Fe(n.fill);
42087
+ const t = Number(e.visual.size), { item: r } = ue(Bl, ke()), n = ah(e.layerId, e.groupValue, t), i = oh(e.layerId, e.groupValue, r.textColor), o = n.fill === void 0 ? i : Fe(n.fill);
42079
42088
  return /* @__PURE__ */ U(Me, { children: [/* @__PURE__ */ v("span", {
42080
42089
  className: Nme,
42081
42090
  style: {
@@ -42086,7 +42095,7 @@ var Nme = "pill-content_bubble__1rqnt0m0", Ef = "\0", Bme = (e, t) => {
42086
42095
  }
42087
42096
  }), /* @__PURE__ */ v("span", { children: e.formattedLabel })] });
42088
42097
  }, Gme = (e, t) => e === void 0 ? void 0 : t, AT = { [M2]: "" }, $me = ({ hiddenPills: e, placement: t }) => {
42089
- const r = BL(), [n, i] = be(!1), o = ke(), a = ue(Nl, o), s = ue(c2, o), l = wi(), { openLegendOverflow: c } = Br[yi()], u = $a([a.item.fill, s.popover.fill]), d = u(a.item.fill), h = C2(a.item, d), f = Wme(e.length, a.item), p = f === null ? void 0 : {
42098
+ const r = BL(), [n, i] = be(!1), o = ke(), a = ue(Bl, o), s = ue(c2, o), l = wi(), { openLegendOverflow: c } = Br[yi()], u = Ga([a.item.fill, s.popover.fill]), d = u(a.item.fill), h = C2(a.item, d), f = Wme(e.length, a.item), p = f === null ? void 0 : {
42090
42099
  ...P2(a.item, d),
42091
42100
  opacity: kme * (a.item.alpha ?? 1)
42092
42101
  }, { refs: m, floatingStyles: g } = QL({
@@ -42189,7 +42198,7 @@ var Nme = "pill-content_bubble__1rqnt0m0", Ef = "\0", Bme = (e, t) => {
42189
42198
  left: "pill-legends_verticalPlotHug_left__1unrqh47"
42190
42199
  }, qme = "pill-legends_item__1unrqh48";
42191
42200
  var Qme = ({ edge: e, indexedLegends: t, containerWidth: r, containerHeight: n }) => {
42192
- const i = vi(), o = wo(), a = ke(), s = ue(c2, a), l = ue(Nl, a), c = Bt(), u = ge((A) => A.coordSystem.type), d = wi(), h = V(() => Bme(t, (A) => c(A, u)?.swatchShape ?? "square"), [
42201
+ const i = vi(), o = wo(), a = ke(), s = ue(c2, a), l = ue(Bl, a), c = Bt(), u = ge((A) => A.coordSystem.type), d = wi(), h = V(() => Bme(t, (A) => c(A, u)?.swatchShape ?? "square"), [
42193
42202
  t,
42194
42203
  c,
42195
42204
  u
@@ -42231,7 +42240,7 @@ var Qme = ({ edge: e, indexedLegends: t, containerWidth: r, containerHeight: n }
42231
42240
  o,
42232
42241
  s,
42233
42242
  l
42234
- ]), y = $a([l.item.fill]);
42243
+ ]), y = Ga([l.item.fill]);
42235
42244
  if (h.length === 0) return null;
42236
42245
  const x = h.slice(0, g.visibleCount), w = h.slice(g.visibleCount), S = g.hasOverflow && w.length > 0, M = C2(l.item, y(l.item.fill));
42237
42246
  return /* @__PURE__ */ U("div", {
@@ -42332,7 +42341,7 @@ var Qme = ({ edge: e, indexedLegends: t, containerWidth: r, containerHeight: n }
42332
42341
  }) });
42333
42342
  }), ige = (e, t, r) => {
42334
42343
  if (e.type === "cartesian") return LQ(e, t);
42335
- const n = Ba(r), i = fr(t.x, e.innerRadius, n), o = fr(t.x, 1, n);
42344
+ const n = Na(r), i = fr(t.x, e.innerRadius, n), o = fr(t.x, 1, n);
42336
42345
  return {
42337
42346
  x1: i.x,
42338
42347
  y1: i.y,
@@ -42589,7 +42598,7 @@ var Qme = ({ edge: e, indexedLegends: t, containerWidth: r, containerHeight: n }
42589
42598
  o.removeAttribute(kf);
42590
42599
  };
42591
42600
  }, [e, i]);
42592
- }, bh = () => Xn((e) => Vs(e, "move-drag")?.annotationId ?? Vs(e, "shape-resize-drag")?.annotationId ?? Vs(e, "arrow-endpoint-drag")?.annotationId ?? null), rc = (e) => {
42601
+ }, bh = () => Xn((e) => Vs(e, "move-drag")?.annotationId ?? Vs(e, "shape-resize-drag")?.annotationId ?? Vs(e, "arrow-endpoint-drag")?.annotationId ?? null), nc = (e) => {
42593
42602
  const t = ge((s) => s.annotations), r = Hfe(), n = Wfe(), i = Mge(e), o = _e((s) => MT(n, "cycle", s, `Annotation reference cycle detected; dropping annotation(s): ${s.join(", ")}`), [n]), a = _e((s) => MT(n, "missing-ref", s, `Annotation reference target(s) no longer exist (dropped during compilation); dropping annotations referencing: ${s.join(", ")}`), [n]);
42594
42603
  return V(() => Z9({
42595
42604
  annotations: t,
@@ -42721,7 +42730,7 @@ var Qme = ({ edge: e, indexedLegends: t, containerWidth: r, containerHeight: n }
42721
42730
  return r;
42722
42731
  }
42723
42732
  }, Lge = ({ panelRect: e, editable: t }) => {
42724
- const { arrows: r } = rc(e), n = bh(), i = ke(), o = V(() => r.filter((a) => a.id !== n).flatMap((a) => {
42733
+ const { arrows: r } = nc(e), n = bh(), i = ke(), o = V(() => r.filter((a) => a.id !== n).flatMap((a) => {
42725
42734
  const s = PZ(i, a.id), l = uK({
42726
42735
  arrow: a,
42727
42736
  style: s,
@@ -42743,7 +42752,7 @@ var Qme = ({ edge: e, indexedLegends: t, containerWidth: r, containerHeight: n }
42743
42752
  transform: `translate(${e.x}, ${e.y})`,
42744
42753
  "data-testid": "arrows",
42745
42754
  children: o.map(({ computed: a, style: s }) => /* @__PURE__ */ v("g", {
42746
- ...tc({
42755
+ ...rc({
42747
42756
  kind: "annotation",
42748
42757
  id: a.id
42749
42758
  }),
@@ -42809,11 +42818,11 @@ var Qme = ({ edge: e, indexedLegends: t, containerWidth: r, containerHeight: n }
42809
42818
  textAnchor: "middle",
42810
42819
  fill: i.textColor,
42811
42820
  style: {
42812
- ...Wa(i, s.familyDefault),
42821
+ ...$a(i, s.familyDefault),
42813
42822
  ...lh(i)
42814
42823
  },
42815
42824
  ...sh(i),
42816
- children: Da(r, i.textTransform)
42825
+ children: La(r, i.textTransform)
42817
42826
  })]
42818
42827
  });
42819
42828
  }, Bge = "difference-arrows_pointer__1lwhbn50", Fge = "75%", Vge = ({ panelRect: e, editable: t }) => {
@@ -42826,7 +42835,7 @@ var Qme = ({ edge: e, indexedLegends: t, containerWidth: r, containerHeight: n }
42826
42835
  return /* @__PURE__ */ U("g", {
42827
42836
  className: n === l ? Bge : void 0,
42828
42837
  "data-warning": y || void 0,
42829
- ...tc({
42838
+ ...rc({
42830
42839
  kind: "annotation",
42831
42840
  id: l
42832
42841
  }),
@@ -42871,7 +42880,7 @@ var Qme = ({ edge: e, indexedLegends: t, containerWidth: r, containerHeight: n }
42871
42880
  })]
42872
42881
  });
42873
42882
  }, ET = ({ panelRect: e, zOrder: t }) => {
42874
- const r = rc(e).images, n = ke(), i = bh(), o = r.filter((a) => a.zOrder === t && a.id !== i);
42883
+ const r = nc(e).images, n = ke(), i = bh(), o = r.filter((a) => a.zOrder === t && a.id !== i);
42875
42884
  return o.length === 0 ? null : /* @__PURE__ */ v("svg", {
42876
42885
  x: e.x,
42877
42886
  y: e.y,
@@ -42880,7 +42889,7 @@ var Qme = ({ edge: e, indexedLegends: t, containerWidth: r, containerHeight: n }
42880
42889
  overflow: "visible",
42881
42890
  "data-testid": `image-annotations-${t}`,
42882
42891
  children: o.map((a) => /* @__PURE__ */ v("g", {
42883
- ...tc({
42892
+ ...rc({
42884
42893
  kind: "annotation",
42885
42894
  id: a.id
42886
42895
  }),
@@ -42905,7 +42914,7 @@ var Qme = ({ edge: e, indexedLegends: t, containerWidth: r, containerHeight: n }
42905
42914
  strokeWidth: t.strokeWidth
42906
42915
  });
42907
42916
  }, kT = ({ panelRect: e, zOrder: t }) => {
42908
- const r = rc(e).shapes, n = ke(), i = bh(), o = r.filter((a) => a.zOrder === t && a.id !== i);
42917
+ const r = nc(e).shapes, n = ke(), i = bh(), o = r.filter((a) => a.zOrder === t && a.id !== i);
42909
42918
  return o.length === 0 ? null : /* @__PURE__ */ v("svg", {
42910
42919
  x: e.x,
42911
42920
  y: e.y,
@@ -42914,7 +42923,7 @@ var Qme = ({ edge: e, indexedLegends: t, containerWidth: r, containerHeight: n }
42914
42923
  overflow: "visible",
42915
42924
  "data-testid": `shapes-${t}`,
42916
42925
  children: o.map((a) => /* @__PURE__ */ v("g", {
42917
- ...tc({
42926
+ ...rc({
42918
42927
  kind: "annotation",
42919
42928
  id: a.id
42920
42929
  }),
@@ -42948,11 +42957,11 @@ var Qme = ({ edge: e, indexedLegends: t, containerWidth: r, containerHeight: n }
42948
42957
  const t = wm(e);
42949
42958
  return `translate(${-t.x * 100}%, ${-(1 - t.y) * 100}%)`;
42950
42959
  }, Kge = (e) => {
42951
- const { backgroundColor: t, borderShadow: r } = Xge(e), n = [r, e.shadow === void 0 || e.shadow === "none" ? void 0 : Na(e.shadow)].filter((i) => i !== void 0);
42960
+ const { backgroundColor: t, borderShadow: r } = Xge(e), n = [r, e.shadow === void 0 || e.shadow === "none" ? void 0 : Oa(e.shadow)].filter((i) => i !== void 0);
42952
42961
  return {
42953
42962
  ...kt(e),
42954
42963
  padding: `${e.paddingBlock}px ${e.paddingInline}px`,
42955
- borderRadius: ec(e.cornerRadius),
42964
+ borderRadius: tc(e.cornerRadius),
42956
42965
  opacity: e.alpha,
42957
42966
  ...t === void 0 ? {} : { backgroundColor: t },
42958
42967
  ...n.length === 0 ? {} : { boxShadow: n.join(", ") }
@@ -42967,7 +42976,7 @@ var Qme = ({ edge: e, indexedLegends: t, containerWidth: r, containerHeight: n }
42967
42976
  borderShadow: `0 0 0 ${e.strokeWidth}px ${n}`
42968
42977
  };
42969
42978
  }, qge = (e) => {
42970
- const t = rc(e).textAnnotations, r = Xn((n) => Vs(n, "text-resize-drag"));
42979
+ const t = nc(e).textAnnotations, r = Xn((n) => Vs(n, "text-resize-drag"));
42971
42980
  return V(() => t.map((n) => Qge(n, r)), [t, r]);
42972
42981
  }, Qge = (e, t) => t === null || t.annotationId !== e.id ? e : {
42973
42982
  ...e,
@@ -42994,7 +43003,7 @@ var Qme = ({ edge: e, indexedLegends: t, containerWidth: r, containerHeight: n }
42994
43003
  }, Jge = ({ annotation: e, panel: t, style: r }) => {
42995
43004
  const n = $fe(e.id), i = Xn((a) => a.caret?.annotationId === e.id), { TextAnnotation: o } = by();
42996
43005
  return /* @__PURE__ */ v("g", {
42997
- ...tc({
43006
+ ...rc({
42998
43007
  kind: "annotation",
42999
43008
  id: e.id
43000
43009
  }),
@@ -43080,7 +43089,7 @@ var ive = (e, t, r, n) => t !== "comment" ? r : Mg(r, 140, (i) => e.measureText(
43080
43089
  t,
43081
43090
  r,
43082
43091
  a
43083
- ]), h = V(() => gK(s, e), [s, e]), f = $a([...d.values()].map((p) => p.label.fill));
43092
+ ]), h = V(() => gK(s, e), [s, e]), f = Ga([...d.values()].map((p) => p.label.fill));
43084
43093
  return fe(() => {
43085
43094
  const p = l.getState();
43086
43095
  return p.publishPointerRegions(CT, h), () => {
@@ -43112,7 +43121,7 @@ var ive = (e, t, r, n) => t !== "comment" ? r : Mg(r, 140, (i) => e.measureText(
43112
43121
  style: lve(g.label, f(g.label.fill)),
43113
43122
  children: [p.kind === "pinnedNumber" && /* @__PURE__ */ v("span", {
43114
43123
  className: "callouts_miniSwatch__1rlvxtx1",
43115
- children: /* @__PURE__ */ v(Xl, {
43124
+ children: /* @__PURE__ */ v(ql, {
43116
43125
  shape: i(m.geom, n.type)?.swatchShape ?? "square",
43117
43126
  surface: "callout",
43118
43127
  color: x ?? "currentColor",
@@ -43141,9 +43150,9 @@ var ive = (e, t, r, n) => t !== "comment" ? r : Mg(r, 140, (i) => e.measureText(
43141
43150
  });
43142
43151
  }, ave = (e, t) => e.hasAuthoredFill ? Fe(e.fill) : t ?? Fe(e.fill), sve = (e) => e.hasAuthoredTextColor ? e.textColor : Sl(e.textColor, Fe(e.fill)), lve = (e, t) => ({
43143
43152
  ...Aa(e.fill, t),
43144
- borderRadius: ec(e.cornerRadius),
43153
+ borderRadius: tc(e.cornerRadius),
43145
43154
  padding: `${e.paddingBlock}px ${e.paddingInline}px`,
43146
- boxShadow: Na(e.shadow),
43155
+ boxShadow: Oa(e.shadow),
43147
43156
  ...e.alpha === void 0 ? {} : { opacity: e.alpha },
43148
43157
  ...e.strokeWidth > 0 ? { border: `${e.strokeWidth}px solid ${e.stroke}` } : {}
43149
43158
  }), cve = (e) => ({
@@ -43171,7 +43180,7 @@ var ive = (e, t, r, n) => t !== "comment" ? r : Mg(r, 140, (i) => e.measureText(
43171
43180
  src: "data:image/png;base64,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"
43172
43181
  }
43173
43182
  }, hve = 3.2, fve = ({ panelRect: e }) => {
43174
- const t = rc(e).stickers, r = ke().graph().get("textScale");
43183
+ const t = nc(e).stickers, r = ke().graph().get("textScale");
43175
43184
  if (t.length === 0) return null;
43176
43185
  const n = uve(hve, r);
43177
43186
  return /* @__PURE__ */ v("svg", {
@@ -43238,7 +43247,7 @@ var ive = (e, t, r, n) => t !== "comment" ? r : Mg(r, 140, (i) => e.measureText(
43238
43247
  })), /* @__PURE__ */ v("text", {
43239
43248
  className: yve,
43240
43249
  style: {
43241
- ...Wa(g),
43250
+ ...$a(g),
43242
43251
  ...lh(g),
43243
43252
  fill: c === void 0 ? xve(g) : bve(g, x)
43244
43253
  },
@@ -43247,7 +43256,7 @@ var ive = (e, t, r, n) => t !== "comment" ? r : Mg(r, 140, (i) => e.measureText(
43247
43256
  y: t,
43248
43257
  textAnchor: "middle",
43249
43258
  dominantBaseline: "central",
43250
- children: Da(i, g.textTransform)
43259
+ children: La(i, g.textTransform)
43251
43260
  })]
43252
43261
  });
43253
43262
  }, bve = (e, t) => e.hasAuthoredTextColor || t === void 0 ? e.textColor : e.hasThemedTextColor ? Sl(e.textColor, t) : qu(t), xve = (e) => {
@@ -43509,12 +43518,12 @@ var ive = (e, t, r, n) => t !== "comment" ? r : Mg(r, 140, (i) => e.measureText(
43509
43518
  }), /* @__PURE__ */ v("text", {
43510
43519
  ...e,
43511
43520
  style: {
43512
- ...Wa(r),
43521
+ ...$a(r),
43513
43522
  ...lh(r)
43514
43523
  },
43515
43524
  ...sh(r),
43516
43525
  fill: r.textColor,
43517
- children: Da(t, r.textTransform)
43526
+ children: La(t, r.textTransform)
43518
43527
  })] }), Ove = ({ placement: e, text: t, style: r, bounds: n }) => {
43519
43528
  const i = vi(), { fonts: o } = wo();
43520
43529
  return /* @__PURE__ */ v("rect", {
@@ -43817,7 +43826,7 @@ var H2 = (e, t) => {
43817
43826
  if (r.type !== "polar") return null;
43818
43827
  const n = t.find((l) => l.geometry === "circular");
43819
43828
  if (!n) return null;
43820
- const { innerRadius: i, startAngle: o, spokeRotation: a } = r, s = Ba(e);
43829
+ const { innerRadius: i, startAngle: o, spokeRotation: a } = r, s = Na(e);
43821
43830
  return s.radius <= 0 ? null : {
43822
43831
  circle: s,
43823
43832
  circularAxis: n,
@@ -43983,7 +43992,7 @@ var H2 = (e, t) => {
43983
43992
  opacity: t ? r.opacity : void 0,
43984
43993
  filter: s
43985
43994
  },
43986
- children: /* @__PURE__ */ v(Vl.Provider, {
43995
+ children: /* @__PURE__ */ v(Hl.Provider, {
43987
43996
  value: c,
43988
43997
  children: /* @__PURE__ */ v(Jve, {
43989
43998
  layer: e,
@@ -44086,7 +44095,7 @@ var tye = 4, rye = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates:
44086
44095
  })), /* @__PURE__ */ U(Sy, { children: [y, l.map(({ observation: x, observationIndex: w, anchor: S }) => /* @__PURE__ */ v(oye, {
44087
44096
  observation: x,
44088
44097
  anchor: S,
44089
- fill: La(d, t, x) ?? yd,
44098
+ fill: Ra(d, t, x) ?? yd,
44090
44099
  symbol: u.get("symbol", x) ?? "circle",
44091
44100
  dotRadius: (u.get("size", x) ?? 8) / 2,
44092
44101
  readSegmentY: h,
@@ -44102,7 +44111,7 @@ var tye = 4, rye = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates:
44102
44111
  }), [e.id, r]);
44103
44112
  return /* @__PURE__ */ v("g", {
44104
44113
  style: { filter: r },
44105
- children: /* @__PURE__ */ v(Vl.Provider, {
44114
+ children: /* @__PURE__ */ v(Hl.Provider, {
44106
44115
  value: n,
44107
44116
  children: /* @__PURE__ */ v(iye, {
44108
44117
  layer: e,
@@ -44136,7 +44145,7 @@ var tye = 4, rye = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates:
44136
44145
  s,
44137
44146
  l
44138
44147
  ]);
44139
- return /* @__PURE__ */ U(Me, { children: [/* @__PURE__ */ v(jl, {
44148
+ return /* @__PURE__ */ U(Me, { children: [/* @__PURE__ */ v(zl, {
44140
44149
  symbol: n,
44141
44150
  cx: Z(d),
44142
44151
  cy: Z(h),
@@ -44280,7 +44289,7 @@ var tye = 4, rye = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates:
44280
44289
  });
44281
44290
  }), fye = (e, t) => {
44282
44291
  const r = Bt();
44283
- return Ao() ? [] : e.filter((n) => !Ua(r(n.geom, t.type)));
44292
+ return Ao() ? [] : e.filter((n) => !Wa(r(n.geom, t.type)));
44284
44293
  }, pye = (e) => (0, py.assignInlineVars)({
44285
44294
  ...e.opacity === void 0 ? {} : { [cye]: String(e.opacity) },
44286
44295
  ...e.filter === void 0 ? {} : { [uye]: e.filter }
@@ -44339,7 +44348,7 @@ var tye = 4, rye = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates:
44339
44348
  });
44340
44349
  }, vye = (e, t) => {
44341
44350
  const r = Bt();
44342
- return Ao() ? [] : e.filter((n) => Ua(r(n.geom, t.type)));
44351
+ return Ao() ? [] : e.filter((n) => Wa(r(n.geom, t.type)));
44343
44352
  }, yye = "plot.renderer_root__1ts0j5d0", bye = ({ formattedAxes: e, plotRect: t, panelBorder: r, axisLines: n, axisLineCornerRadius: i, panelEdges: o, panelFrameRect: a, panelRect: s, axisRects: l, axisLabelRects: c, animateTransitions: u, formattingLocale: d, plotBottomY: h, hasReservedFooterSpace: f, editable: p, showAnnotations: m }) => {
44344
44353
  const g = de(null);
44345
44354
  Tge(g);
@@ -44549,7 +44558,7 @@ var tye = 4, rye = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates:
44549
44558
  };
44550
44559
  }, Mye = (e, t) => e.headerSize.width !== t.headerSize.width || e.headerSize.height !== t.headerSize.height || e.footerSize.width !== t.footerSize.width || e.footerSize.height !== t.footerSize.height, Eye = () => null, kye = "graph-frame_overpaint__fzk2ns0", Pye = "graph-frame_backgroundScope__fzk2ns1";
44551
44560
  var Cye = [], _ye = ({ graphChrome: e, editable: t, mode: r, style: n, contentRef: i, children: o }) => {
44552
- const { themeClass: a, inlineVarsStyle: s } = my(), l = e.strokeWidth, c = l > 0 ? e.stroke : void 0, u = Math.max(0, e.cornerRadius), d = u === 0 ? 0 : u + l, { shadow: h, alpha: f, blendMode: p, fill: m, overpaint: g = Cye } = e, y = $a([m, ...g]), x = y(m), w = typeof m != "string", S = V(() => ({
44561
+ const { themeClass: a, inlineVarsStyle: s } = my(), l = e.strokeWidth, c = l > 0 ? e.stroke : void 0, u = Math.max(0, e.cornerRadius), d = u === 0 ? 0 : u + l, { shadow: h, alpha: f, blendMode: p, fill: m, overpaint: g = Cye } = e, y = Ga([m, ...g]), x = y(m), w = typeof m != "string", S = V(() => ({
44553
44562
  ...n,
44554
44563
  borderRadius: `${d}px`,
44555
44564
  ...s,
@@ -44558,7 +44567,7 @@ var Cye = [], _ye = ({ graphChrome: e, editable: t, mode: r, style: n, contentRe
44558
44567
  borderStyle: "solid",
44559
44568
  borderColor: c
44560
44569
  },
44561
- ...h === void 0 ? {} : { boxShadow: Na(h) }
44570
+ ...h === void 0 ? {} : { boxShadow: Oa(h) }
44562
44571
  }), [
44563
44572
  n,
44564
44573
  d,
@@ -44722,7 +44731,7 @@ var Cye = [], _ye = ({ graphChrome: e, editable: t, mode: r, style: n, contentRe
44722
44731
  oe.gap
44723
44732
  ]);
44724
44733
  if (!Ue) return null;
44725
- const { layout: Ge, formattedAxes: Xa, plotBottomY: nc } = Ue, To = Ge.footer.height > 0;
44734
+ const { layout: Ge, formattedAxes: Ka, plotBottomY: ic } = Ue, To = Ge.footer.height > 0;
44726
44735
  return /* @__PURE__ */ v(uL.Provider, {
44727
44736
  value: o,
44728
44737
  children: /* @__PURE__ */ v(Nhe, {
@@ -44761,7 +44770,7 @@ var Cye = [], _ye = ({ graphChrome: e, editable: t, mode: r, style: n, contentRe
44761
44770
  graphyBadge: Qe
44762
44771
  }),
44763
44772
  /* @__PURE__ */ v(bye, {
44764
- formattedAxes: Xa,
44773
+ formattedAxes: Ka,
44765
44774
  plotRect: Ge.plot,
44766
44775
  panelBorder: jt,
44767
44776
  axisLines: vt,
@@ -44773,7 +44782,7 @@ var Cye = [], _ye = ({ graphChrome: e, editable: t, mode: r, style: n, contentRe
44773
44782
  axisLabelRects: Ge.axisLabels,
44774
44783
  animateTransitions: S,
44775
44784
  formattingLocale: b ?? u,
44776
- plotBottomY: nc,
44785
+ plotBottomY: ic,
44777
44786
  hasReservedFooterSpace: To,
44778
44787
  editable: x,
44779
44788
  showAnnotations: y.showAnnotations
@@ -44804,7 +44813,7 @@ var Cye = [], _ye = ({ graphChrome: e, editable: t, mode: r, style: n, contentRe
44804
44813
  x && L !== null && /* @__PURE__ */ v(C, {
44805
44814
  frameElement: L,
44806
44815
  panelRect: Ge.panel,
44807
- formattedAxes: Xa,
44816
+ formattedAxes: Ka,
44808
44817
  animateTransitions: S
44809
44818
  }),
44810
44819
  y.showTooltip && /* @__PURE__ */ v(hfe, {})
@@ -44929,7 +44938,7 @@ var jye = (e) => [...new Set(e)], zye = (e) => ({
44929
44938
  stickers: e.stickers.length,
44930
44939
  pinnedNumbers: e.pinnedNumbers.length,
44931
44940
  comments: e.comments.length
44932
- }), Yye = "https://3b76a42331a1e27a2adb223278bf1b48@o4505108638597120.ingest.us.sentry.io/4512260250992640", Kye = "1.9.0-beta.1793880532798", Xye = /^(https?):\/\/([^@]+)@([^/]+)\/(\d+)\/?$/;
44941
+ }), Yye = "https://3b76a42331a1e27a2adb223278bf1b48@o4505108638597120.ingest.us.sentry.io/4512260250992640", Kye = "1.9.0-beta.1793882432228", Xye = /^(https?):\/\/([^@]+)@([^/]+)\/(\d+)\/?$/;
44933
44942
  function z2() {
44934
44943
  return Yye;
44935
44944
  }
@@ -45093,7 +45102,7 @@ export {
45093
45102
  Pn as VISUAL_VARIABLES,
45094
45103
  P8 as annotation,
45095
45104
  Xie as buildDotsEditOutlineShapes,
45096
- _l as buildPanelAnchorBox,
45105
+ Il as buildPanelAnchorBox,
45097
45106
  no as buildPolarBarArcPath,
45098
45107
  og as clampBarThickness,
45099
45108
  D0 as composePoint,
@@ -45166,7 +45175,7 @@ export {
45166
45175
  dwe as readRectPixels,
45167
45176
  Ml as readTipEdge,
45168
45177
  X as readVariableName,
45169
- Il as resolveAnchoredLabelCenter,
45178
+ Rl as resolveAnchoredLabelCenter,
45170
45179
  Ad as resolveBarBaseline,
45171
45180
  eW as resolveBarCornersPx,
45172
45181
  va as resolveGeomCornerRadiusPx,