@graphysdk/react 1.9.0-beta.1792505847409 → 1.9.0-beta.1792506850788

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.
@@ -127,7 +127,7 @@ function m1(e, t, r, n) {
127
127
  return `rgba(${Po(0, 255, e).toFixed()}, ${Po(0, 255, t).toFixed()}, ${Po(0, 255, r).toFixed()}, ${parseFloat(Po(0, 1, n).toFixed(3))})`;
128
128
  }
129
129
  function YR(e, t, r) {
130
- const n = (v, y) => y === 3 ? v : v / 255, [i, o, a, s] = bn(e).map(n), [l, c, u, d] = bn(t).map(n), h = d - s, f = r * 2 - 1, m = ((f * h === -1 ? f : f + h / (1 + f * h)) + 1) / 2, p = 1 - m;
130
+ const n = (v, b) => b === 3 ? v : v / 255, [i, o, a, s] = bn(e).map(n), [l, c, u, d] = bn(t).map(n), h = d - s, f = r * 2 - 1, m = ((f * h === -1 ? f : f + h / (1 + f * h)) + 1) / 2, p = 1 - m;
131
131
  return m1((i * p + l * m) * 255, (o * p + c * m) * 255, (a * p + u * m) * 255, d * r + s * (1 - r));
132
132
  }
133
133
  function KR(e, t) {
@@ -2304,25 +2304,25 @@ function Xo(e, t, r, n) {
2304
2304
  }, c = [new d2()], u = t.match(q2).map((p) => {
2305
2305
  const v = p[0];
2306
2306
  if (v in Pv) {
2307
- const y = Pv[v];
2308
- return y(p, o.formatLong);
2307
+ const b = Pv[v];
2308
+ return b(p, o.formatLong);
2309
2309
  }
2310
2310
  return p;
2311
2311
  }).join("").match(X2), d = [];
2312
2312
  for (let p of u) {
2313
2313
  !n?.useAdditionalWeekYearTokens && t2(p) && _v(p, t, e), !n?.useAdditionalDayOfYearTokens && e2(p) && _v(p, t, e);
2314
- const v = p[0], y = K2[v];
2315
- if (y) {
2316
- const { incompatibleTokens: x } = y;
2314
+ const v = p[0], b = K2[v];
2315
+ if (b) {
2316
+ const { incompatibleTokens: x } = b;
2317
2317
  if (Array.isArray(x)) {
2318
- const S = d.find((k) => x.includes(k.token) || k.token === v);
2319
- if (S) throw new RangeError(`The format string mustn't contain \`${S.fullToken}\` and \`${p}\` at the same time`);
2320
- } else if (y.incompatibleTokens === "*" && d.length > 0) throw new RangeError(`The format string mustn't contain \`${p}\` and any other token at the same time`);
2318
+ const A = d.find((k) => x.includes(k.token) || k.token === v);
2319
+ if (A) throw new RangeError(`The format string mustn't contain \`${A.fullToken}\` and \`${p}\` at the same time`);
2320
+ } else if (b.incompatibleTokens === "*" && d.length > 0) throw new RangeError(`The format string mustn't contain \`${p}\` and any other token at the same time`);
2321
2321
  d.push({
2322
2322
  token: v,
2323
2323
  fullToken: p
2324
2324
  });
2325
- const w = y.run(e, p, o.match, l);
2325
+ const w = b.run(e, p, o.match, l);
2326
2326
  if (!w) return Ze(r, NaN);
2327
2327
  c.push(w.setter), e = w.rest;
2328
2328
  } else {
@@ -2332,7 +2332,7 @@ function Xo(e, t, r, n) {
2332
2332
  }
2333
2333
  }
2334
2334
  if (e.length > 0 && Z2.test(e)) return Ze(r, NaN);
2335
- const h = c.map((p) => p.priority).sort((p, v) => v - p).filter((p, v, y) => y.indexOf(p) === v).map((p) => c.filter((v) => v.priority === p).sort((v, y) => y.subPriority - v.subPriority)).map((p) => p[0]);
2335
+ const h = c.map((p) => p.priority).sort((p, v) => v - p).filter((p, v, b) => b.indexOf(p) === v).map((p) => c.filter((v) => v.priority === p).sort((v, b) => b.subPriority - v.subPriority)).map((p) => p[0]);
2336
2336
  let f = Ye(r);
2337
2337
  if (isNaN(f.getTime())) return Ze(r, NaN);
2338
2338
  const m = {};
@@ -2399,35 +2399,35 @@ var Dt = (e) => e instanceof Date && Ht(e), nD = (e) => Dt(e) || e === null, Au
2399
2399
  }, P1 = (e, t) => {
2400
2400
  const { x: r, y: n } = Cm(e, t);
2401
2401
  return _m(r, n);
2402
- }, _1 = "\0graphy\0_", ye = (e) => `${_1}${e}`, jn = { x: ye("constantX") }, cpe = {
2403
- bar: ye("barSeriesLabel"),
2404
- line: ye("lineSeriesLabel")
2402
+ }, _1 = "\0graphy\0_", xe = (e) => `${_1}${e}`, jn = { x: xe("constantX") }, cpe = {
2403
+ bar: xe("barSeriesLabel"),
2404
+ line: xe("lineSeriesLabel")
2405
2405
  }, At = {
2406
- count: ye("count"),
2407
- mean: ye("mean"),
2408
- sum: ye("sum"),
2409
- summaryEstimate: ye("summaryEstimate"),
2410
- summaryLower: ye("summaryLower"),
2411
- summaryUpper: ye("summaryUpper")
2412
- }, we = { group: ye("group") }, O = {
2413
- x: ye("x"),
2414
- y: ye("y"),
2415
- xBand: ye("xBand"),
2416
- yBand: ye("yBand"),
2417
- xMin: ye("xMin"),
2418
- xMax: ye("xMax"),
2419
- yMin: ye("yMin"),
2420
- yMax: ye("yMax"),
2421
- yRaw: ye("yRaw")
2422
- }, Su = { role: ye("stackRole") }, An = {
2423
- color: ye("color"),
2424
- size: ye("size"),
2425
- alpha: ye("alpha"),
2426
- strokeWidth: ye("strokeWidth"),
2427
- lineType: ye("lineType")
2406
+ count: xe("count"),
2407
+ mean: xe("mean"),
2408
+ sum: xe("sum"),
2409
+ summaryEstimate: xe("summaryEstimate"),
2410
+ summaryLower: xe("summaryLower"),
2411
+ summaryUpper: xe("summaryUpper")
2412
+ }, we = { group: xe("group") }, O = {
2413
+ x: xe("x"),
2414
+ y: xe("y"),
2415
+ xBand: xe("xBand"),
2416
+ yBand: xe("yBand"),
2417
+ xMin: xe("xMin"),
2418
+ xMax: xe("xMax"),
2419
+ yMin: xe("yMin"),
2420
+ yMax: xe("yMax"),
2421
+ yRaw: xe("yRaw")
2422
+ }, Su = { role: xe("stackRole") }, An = {
2423
+ color: xe("color"),
2424
+ size: xe("size"),
2425
+ alpha: xe("alpha"),
2426
+ strokeWidth: xe("strokeWidth"),
2427
+ lineType: xe("lineType")
2428
2428
  }, Qa = {
2429
- y: ye("ruleY"),
2430
- x: ye("ruleX")
2429
+ y: xe("ruleY"),
2430
+ x: xe("ruleX")
2431
2431
  }, upe = {
2432
2432
  ...jn,
2433
2433
  ...At,
@@ -2436,11 +2436,11 @@ var Dt = (e) => e instanceof Date && Ht(e), nD = (e) => Dt(e) || e === null, Au
2436
2436
  ...Su,
2437
2437
  ...An,
2438
2438
  ...Qa
2439
- }, lD = new Set(Object.values(At)), C1 = (e) => ye(`scaled_${e}`), Tu = (e) => e.startsWith(_1), cD = (e) => lD.has(e);
2440
- function be(e) {
2439
+ }, lD = new Set(Object.values(At)), C1 = (e) => xe(`scaled_${e}`), Tu = (e) => e.startsWith(_1), cD = (e) => lD.has(e);
2440
+ function ve(e) {
2441
2441
  return e[O.x] ?? null;
2442
2442
  }
2443
- function xe(e) {
2443
+ function ye(e) {
2444
2444
  return e[O.y] ?? null;
2445
2445
  }
2446
2446
  function uD(e) {
@@ -2473,7 +2473,7 @@ var hD = {
2473
2473
  yMin: 0,
2474
2474
  yMax: 1
2475
2475
  }, Im = (e, t) => {
2476
- const r = dr(e) ?? be(e), n = Gt(e) ?? be(e), i = $t(e) ?? xe(e), o = ht(e) ?? xe(e);
2476
+ const r = dr(e) ?? ve(e), n = Gt(e) ?? ve(e), i = $t(e) ?? ye(e), o = ht(e) ?? ye(e);
2477
2477
  return !Oe(r) || !Oe(n) || !Oe(i) || !Oe(o) ? null : t.type !== "polar" ? {
2478
2478
  xMin: r,
2479
2479
  xMax: n,
@@ -3191,8 +3191,8 @@ function eS(e, t, r, n, i, o) {
3191
3191
  break;
3192
3192
  }
3193
3193
  if (f) {
3194
- if (!oB(t, function(y, x) {
3195
- if (!aB(f, x) && (m === y || i(m, y, r, n, o))) return f.push(x);
3194
+ if (!oB(t, function(b, x) {
3195
+ if (!aB(f, x) && (m === b || i(m, b, r, n, o))) return f.push(x);
3196
3196
  })) {
3197
3197
  h = !1;
3198
3198
  break;
@@ -3263,8 +3263,8 @@ function kB(e, t, r, n, i, o) {
3263
3263
  for (var m = a; ++c < l; ) {
3264
3264
  u = s[c];
3265
3265
  var p = e[u], v = t[u];
3266
- if (n) var y = a ? n(v, p, u, t, e, o) : n(p, v, u, e, t, o);
3267
- if (!(y === void 0 ? p === v || i(p, v, r, n, o) : y)) {
3266
+ if (n) var b = a ? n(v, p, u, t, e, o) : n(p, v, u, e, t, o);
3267
+ if (!(b === void 0 ? p === v || i(p, v, r, n, o) : b)) {
3268
3268
  f = !1;
3269
3269
  break;
3270
3270
  }
@@ -4466,7 +4466,7 @@ var Wm = (e, t) => {
4466
4466
  const r = K(t.x);
4467
4467
  return !r || !["numeric", "temporal"].includes(e.getType(r)) ? e : e.orderBy(r, "asc");
4468
4468
  }, jm = (e, { coordSystem: t }) => {
4469
- const r = be(e), n = xe(e);
4469
+ const r = ve(e), n = ye(e);
4470
4470
  return !Oe(r) || !Oe(n) ? null : t.type === "polar" ? Ti(r, n) : {
4471
4471
  x: r,
4472
4472
  y: n
@@ -4879,16 +4879,16 @@ var iF = (e, t) => {
4879
4879
  if (p === null) continue;
4880
4880
  const v = cF(a, m, c);
4881
4881
  if (v === null) continue;
4882
- const y = d(m);
4883
- if (y !== null)
4882
+ const b = d(m);
4883
+ if (b !== null)
4884
4884
  return {
4885
4885
  point: {
4886
4886
  ...p,
4887
4887
  ...v,
4888
4888
  space: NS(r),
4889
4889
  observationIndex: f,
4890
- anchor: i.align === void 0 ? y : {
4891
- ...y,
4890
+ anchor: i.align === void 0 ? b : {
4891
+ ...b,
4892
4892
  align: i.align
4893
4893
  }
4894
4894
  },
@@ -5793,7 +5793,7 @@ var FF = class extends ri {
5793
5793
  if (Nu(n)) continue;
5794
5794
  const i = en(r[n]);
5795
5795
  if (i === void 0) continue;
5796
- const o = ye(`const_${n}`);
5796
+ const o = xe(`const_${n}`);
5797
5797
  t = t.addConstantVariable(o, VF(i), i), r = {
5798
5798
  ...r,
5799
5799
  [n]: o
@@ -5949,7 +5949,7 @@ var FF = class extends ri {
5949
5949
  [O.xMin, O.yMin],
5950
5950
  [O.xMax, O.yMax],
5951
5951
  [O.xBand, O.yBand]
5952
- ], Ey = ye("flipSwap"), zF = (e, t) => YF(t) ? e.map((r) => r.scaledAesthetic !== "x" || r.scaleType !== "continuous" && r.scaleType !== "datetime" && r.scaleType !== "discrete" ? r : {
5952
+ ], Ey = xe("flipSwap"), zF = (e, t) => YF(t) ? e.map((r) => r.scaledAesthetic !== "x" || r.scaleType !== "continuous" && r.scaleType !== "datetime" && r.scaleType !== "discrete" ? r : {
5953
5953
  ...r,
5954
5954
  reverse: !r.reverse
5955
5955
  }) : e, YF = (e) => {
@@ -6041,7 +6041,7 @@ var tT = (e, t) => XF(t.domain !== null && t.domain.length > 0 ? t.domain : e),
6041
6041
  [O.xMin, O.yMin],
6042
6042
  [O.xMax, O.yMax],
6043
6043
  [O.xBand, O.yBand]
6044
- ], ky = ye("polarSwap");
6044
+ ], ky = xe("polarSwap");
6045
6045
  function eH(e, t) {
6046
6046
  return (r) => k1(r, e, t);
6047
6047
  }
@@ -6821,7 +6821,7 @@ function JH(e, t) {
6821
6821
  return d;
6822
6822
  }
6823
6823
  function ZH(e) {
6824
- const { scaleAestheticKey: t, scale: r, config: n, layers: i, axisMapping: o, resolvedYPosition: a, gridOverrides: s, variableLabels: l, geomRegistry: c, isFlipped: u } = e, { axisConfig: d, position: h, geometry: f } = r5(t, n, o, a), m = Gi(i, t), p = o5(t, i, c), v = a5(p), y = s5({
6824
+ const { scaleAestheticKey: t, scale: r, config: n, layers: i, axisMapping: o, resolvedYPosition: a, gridOverrides: s, variableLabels: l, geomRegistry: c, isFlipped: u } = e, { axisConfig: d, position: h, geometry: f } = r5(t, n, o, a), m = Gi(i, t), p = o5(t, i, c), v = a5(p), b = s5({
6825
6825
  scale: r,
6826
6826
  scaleAestheticKey: t,
6827
6827
  layers: i,
@@ -6839,11 +6839,11 @@ function ZH(e) {
6839
6839
  scale: r,
6840
6840
  spanLayers: p,
6841
6841
  isFlipped: u,
6842
- scaleValueFormat: y,
6842
+ scaleValueFormat: b,
6843
6843
  categoryValueFormat: v,
6844
6844
  tickMode: d.ticks.mode
6845
6845
  }),
6846
- valueFormat: y,
6846
+ valueFormat: b,
6847
6847
  categorySpan: v === null ? void 0 : {
6848
6848
  valueFormat: v,
6849
6849
  layerIds: p.map((x) => x.id)
@@ -7213,17 +7213,17 @@ function P5({ group: e, show: t, compareWith: r, layers: n, scales: i }) {
7213
7213
  layers: [o],
7214
7214
  scaleType: d ? "datetime" : i.x?.spec.scaleType ?? "discrete",
7215
7215
  variableName: s
7216
- }), f = R5(o.data, s), m = f.getValues(a, { type: "numeric" }), p = s !== null ? f.getValues(s) : [], v = l !== null ? f.getValues(l) : null, y = Dy(m, v, e.value), x = Dy(p, v, e.value);
7216
+ }), f = R5(o.data, s), m = f.getValues(a, { type: "numeric" }), p = s !== null ? f.getValues(s) : [], v = l !== null ? f.getValues(l) : null, b = Dy(m, v, e.value), x = Dy(p, v, e.value);
7217
7217
  return {
7218
7218
  value: e.value,
7219
7219
  swatch: e.swatch,
7220
- aggregate: S5(y, t),
7220
+ aggregate: S5(b, t),
7221
7221
  valueFormat: u,
7222
7222
  groupLabelFormat: e.groupLabelFormat,
7223
7223
  mainValueFormat: h,
7224
7224
  label: e.label,
7225
7225
  caption: _5(t, d, x),
7226
- comparison: C5(t, r, d, x, y)
7226
+ comparison: C5(t, r, d, x, b)
7227
7227
  };
7228
7228
  }
7229
7229
  function _5(e, t, r) {
@@ -7276,19 +7276,19 @@ function N5({ scales: e, config: t, layers: r, coordSystem: n, variableLabels: i
7276
7276
  drawn: [],
7277
7277
  position: "none"
7278
7278
  };
7279
- const c = new Map(o.map((y) => [Ae(y.value), y])), u = j5(H5({
7279
+ const c = new Map(o.map((b) => [Ae(b.value), b])), u = j5(H5({
7280
7280
  scales: e,
7281
7281
  layers: r
7282
- })), d = Gi(r, "x"), h = u.map((y) => {
7283
- if ($5(y, d, r)) return null;
7282
+ })), d = Gi(r, "x"), h = u.map((b) => {
7283
+ if ($5(b, d, r)) return null;
7284
7284
  const x = z5({
7285
- group: y,
7285
+ group: b,
7286
7286
  variableLabels: i,
7287
7287
  layers: r,
7288
7288
  colorGroupsByValue: c
7289
7289
  });
7290
7290
  return x.items.length === 0 ? null : {
7291
- group: y,
7291
+ group: b,
7292
7292
  built: x
7293
7293
  };
7294
7294
  }).filter(H), f = B5(h), m = Z5(a, l, f, s, n);
@@ -7306,7 +7306,7 @@ function N5({ scales: e, config: t, layers: r, coordSystem: n, variableLabels: i
7306
7306
  layers: r
7307
7307
  }), v = p === "direct" ? i3(s[0]) : null;
7308
7308
  return {
7309
- drawn: h.map(({ built: y }) => V5(y, {
7309
+ drawn: h.map(({ built: b }) => V5(b, {
7310
7310
  position: m,
7311
7311
  display: p,
7312
7312
  align: t.legend.align
@@ -7487,11 +7487,11 @@ function i3(e) {
7487
7487
  if (!e) return /* @__PURE__ */ new Map();
7488
7488
  const t = /* @__PURE__ */ new Map();
7489
7489
  return e.data.groupBy(we.group).forEach((r) => {
7490
- const n = r.findLast((l) => H(ht(l)) || H(xe(l)));
7490
+ const n = r.findLast((l) => H(ht(l)) || H(ye(l)));
7491
7491
  if (!n) return;
7492
7492
  const i = Zt(n);
7493
7493
  if (!H(i)) return;
7494
- const o = $t(n), a = ht(n) ?? xe(n);
7494
+ const o = $t(n), a = ht(n) ?? ye(n);
7495
7495
  if (!H(a)) return;
7496
7496
  const s = H(o) ? (o + a) / 2 : a;
7497
7497
  t.set(String(i), s);
@@ -7605,54 +7605,54 @@ function d3({ layer: e, highlights: t, parsingLocale: r, strategy: n, warnings:
7605
7605
  }), a = s3(e.mapping), s = Ym(e, r), l = o.map((T) => ({
7606
7606
  predicate: Bo(T.predicate, s),
7607
7607
  scope: T.scope
7608
- })), c = l.some(({ scope: T }) => T === "series"), u = l.some(({ scope: T }) => T === "x-value"), d = n === "overlay-anchor", h = e.data.size(), f = c ? new Array(h) : null, m = u ? new Array(h) : null, p = d ? new Array(h) : null, v = new Uint8Array(h), y = /* @__PURE__ */ new Set(), x = /* @__PURE__ */ new Set();
7609
- let w = !1, S = 0;
7608
+ })), c = l.some(({ scope: T }) => T === "series"), u = l.some(({ scope: T }) => T === "x-value"), d = n === "overlay-anchor", h = e.data.size(), f = c ? new Array(h) : null, m = u ? new Array(h) : null, p = d ? new Array(h) : null, v = new Uint8Array(h), b = /* @__PURE__ */ new Set(), x = /* @__PURE__ */ new Set();
7609
+ let w = !1, A = 0;
7610
7610
  for (const T of e.data) {
7611
7611
  let R, I;
7612
- f !== null && (R = Ny("series", T, a), f[S] = R), m !== null && (I = Ny("x-value", T, a), m[S] = I), p !== null && (p[S] = T);
7612
+ f !== null && (R = Ny("series", T, a), f[A] = R), m !== null && (I = Ny("x-value", T, a), m[A] = I), p !== null && (p[A] = T);
7613
7613
  for (const { predicate: V, scope: M } of l)
7614
7614
  if (V(T))
7615
7615
  switch (M) {
7616
7616
  case "series":
7617
- R !== void 0 && y.add(R);
7617
+ R !== void 0 && b.add(R);
7618
7618
  break;
7619
7619
  case "x-value":
7620
7620
  I !== void 0 && x.add(I);
7621
7621
  break;
7622
7622
  case "data-point":
7623
- v[S] = 1, w = !0;
7623
+ v[A] = 1, w = !0;
7624
7624
  break;
7625
7625
  }
7626
- S++;
7626
+ A++;
7627
7627
  }
7628
- if (y.size === 0 && x.size === 0 && !w) return yT();
7629
- const k = new Uint8Array(h), A = [];
7628
+ if (b.size === 0 && x.size === 0 && !w) return yT();
7629
+ const k = new Uint8Array(h), S = [];
7630
7630
  let D = 0;
7631
7631
  for (let T = 0; T < h; T++) {
7632
- const R = f?.[T], I = m?.[T], V = R !== void 0 && y.has(R), M = I !== void 0 && x.has(I), L = v[T] === 1;
7632
+ const R = f?.[T], I = m?.[T], V = R !== void 0 && b.has(R), M = I !== void 0 && x.has(I), L = v[T] === 1;
7633
7633
  if (n === "observation-rerender")
7634
7634
  (V || L || M) && (k[T] = 1, D++);
7635
7635
  else if (V)
7636
7636
  k[T] = 1, D++;
7637
7637
  else if (L || M) {
7638
7638
  const N = p?.[T];
7639
- N !== void 0 && A.push({
7639
+ N !== void 0 && S.push({
7640
7640
  observation: N,
7641
7641
  observationIndex: T
7642
7642
  });
7643
7643
  }
7644
7644
  }
7645
- const b = D > 0 ? {
7645
+ const y = D > 0 ? {
7646
7646
  ...e,
7647
7647
  data: e.data.filterByMask(k)
7648
7648
  } : null;
7649
7649
  return {
7650
- isDimmed: (n === "observation-rerender" || y.size > 0) && b !== null,
7651
- matchedLayer: b,
7652
- overlayCandidates: A
7650
+ isDimmed: (n === "observation-rerender" || b.size > 0) && y !== null,
7651
+ matchedLayer: y,
7652
+ overlayCandidates: S
7653
7653
  };
7654
7654
  }
7655
- var h3 = ye("__ungrouped__");
7655
+ var h3 = xe("__ungrouped__");
7656
7656
  function f3(e) {
7657
7657
  const t = e.getVariableNames().filter((i) => e.getType(i) === "temporal" && aS(e.getValueFormat(i)));
7658
7658
  if (t.length === 0) return e;
@@ -9573,19 +9573,19 @@ var K3 = (e) => e.observation?.aesthetics ?? Pe.geom.aesthetics, DT = (e) => e.o
9573
9573
  anchor: Q3(o),
9574
9574
  placement: d ? n : "inside",
9575
9575
  offset: d ? s ?? a : 0
9576
- }, m = u ? t : e, p = r.valueAxis === "x" ? m : e, v = r.valueAxis === "y" ? m : e, y = r.valueAxis === "x" ? h : f, x = r.valueAxis === "x" ? f : h, w = Qy(y, {
9576
+ }, m = u ? t : e, p = r.valueAxis === "x" ? m : e, v = r.valueAxis === "y" ? m : e, b = r.valueAxis === "x" ? h : f, x = r.valueAxis === "x" ? f : h, w = Qy(b, {
9577
9577
  min: p.x,
9578
9578
  max: p.x + p.width,
9579
9579
  halfExtent: l / 2
9580
- }), S = Qy(x, {
9580
+ }), A = Qy(x, {
9581
9581
  min: v.y,
9582
9582
  max: v.y + v.height,
9583
9583
  halfExtent: c / 2
9584
9584
  });
9585
9585
  return {
9586
9586
  x: w,
9587
- y: S,
9588
- position: X3(e, w, S, l, c)
9587
+ y: A,
9588
+ position: X3(e, w, A, l, c)
9589
9589
  };
9590
9590
  }, qy = (e, t, r, n) => r - n >= e - Xy && r + n <= t + Xy, X3 = (e, t, r, n, i) => {
9591
9591
  if (e.width === 0 && e.height === 0) return "outside";
@@ -9604,7 +9604,7 @@ var K3 = (e) => e.observation?.aesthetics ?? Pe.geom.aesthetics, DT = (e) => e.o
9604
9604
  };
9605
9605
  const { offset: r } = e.layer.dataLabels, n = tG(e.layer);
9606
9606
  for (const i of e.layer.data) {
9607
- const o = be(i), a = ht(i) ?? xe(i);
9607
+ const o = ve(i), a = ht(i) ?? ye(i);
9608
9608
  if (o === null || a === null || !ra(o, a)) continue;
9609
9609
  const s = e.formatLabel(i);
9610
9610
  if (s === "") continue;
@@ -9720,7 +9720,10 @@ var K3 = (e) => e.observation?.aesthetics ?? Pe.geom.aesthetics, DT = (e) => e.o
9720
9720
  kind: "visual",
9721
9721
  name: "alpha"
9722
9722
  }
9723
- ], this.summaries = { perGroupHeadline: !0 }, this.dataLabels = {
9723
+ ], this.summaries = {
9724
+ stackTotals: !0,
9725
+ perGroupHeadline: !0
9726
+ }, this.dataLabels = {
9724
9727
  cartesian: { offset: 8 },
9725
9728
  flip: { offset: 8 }
9726
9729
  }, this.dataLabelCoordTypes = ["cartesian", "flip"], this.resolvePercentageValueStrategy = Z3, this.isComposite = !0, this.legend = {
@@ -9797,7 +9800,7 @@ var K3 = (e) => e.observation?.aesthetics ?? Pe.geom.aesthetics, DT = (e) => e.o
9797
9800
  xMax: Gt(t),
9798
9801
  yMin: $t(t),
9799
9802
  yMax: ht(t),
9800
- y: xe(t)
9803
+ y: ye(t)
9801
9804
  }), ap = (e, { xMin: t, xMax: r, yMin: n, yMax: i, y: o }) => {
9802
9805
  const a = i ?? o;
9803
9806
  if (t === null || r === null || n === null || a === null) return null;
@@ -10020,8 +10023,8 @@ var K3 = (e) => e.observation?.aesthetics ?? Pe.geom.aesthetics, DT = (e) => e.o
10020
10023
  if (f === null) continue;
10021
10024
  const m = e.formatCategory(h);
10022
10025
  if (m === null || m === "") continue;
10023
- const p = ip(e.measureDataLabel, "category", m), v = p[l], y = lp(f, e.panelRect), x = d === null ? null : h[d], w = Oe(x) && x < 0, S = il({
10024
- box: y,
10026
+ const p = ip(e.measureDataLabel, "category", m), v = p[l], b = lp(f, e.panelRect), x = d === null ? null : h[d], w = Oe(x) && x < 0, A = il({
10027
+ box: b,
10025
10028
  panel: u,
10026
10029
  orientation: FT(c, w),
10027
10030
  placement: l,
@@ -10030,17 +10033,17 @@ var K3 = (e) => e.observation?.aesthetics ?? Pe.geom.aesthetics, DT = (e) => e.o
10030
10033
  offset: s,
10031
10034
  labelWidth: v.width,
10032
10035
  labelHeight: v.height
10033
- }), k = p[S.position];
10036
+ }), k = p[A.position];
10034
10037
  n.push({
10035
10038
  layerId: e.layer.id,
10036
- x: S.x,
10037
- y: S.y,
10039
+ x: A.x,
10040
+ y: A.y,
10038
10041
  text: m,
10039
10042
  width: k.width,
10040
10043
  height: k.height,
10041
10044
  isRotated: !1,
10042
10045
  role: "category",
10043
- position: S.position
10046
+ position: A.position
10044
10047
  });
10045
10048
  }
10046
10049
  return n;
@@ -10080,7 +10083,7 @@ var K3 = (e) => e.observation?.aesthetics ?? Pe.geom.aesthetics, DT = (e) => e.o
10080
10083
  };
10081
10084
  }
10082
10085
  }, SG = ({ edge: e, bounds: t, boxes: r, isRotated: n, panelWidth: i, panelHeight: o, offset: a }) => {
10083
- const s = e === "top" || e === "bottom", l = t.x + t.width / 2, c = t.y + t.height / 2, u = s ? t.height : t.width, d = s ? t.width : t.height, { edgeCoord: h, outwardSign: f, panelExtent: m } = AG(e, t, i, o), p = cf(r.inside.width, r.inside.height, n), v = s ? p.height : p.width, y = s ? p.width : p.height, x = v + a < u, w = y <= d;
10086
+ const s = e === "top" || e === "bottom", l = t.x + t.width / 2, c = t.y + t.height / 2, u = s ? t.height : t.width, d = s ? t.width : t.height, { edgeCoord: h, outwardSign: f, panelExtent: m } = AG(e, t, i, o), p = cf(r.inside.width, r.inside.height, n), v = s ? p.height : p.width, b = s ? p.width : p.height, x = v + a < u, w = b <= d;
10084
10087
  if (s ? x : x && w) {
10085
10088
  if (s && !w) return null;
10086
10089
  if (n) return {
@@ -10102,13 +10105,13 @@ var K3 = (e) => e.observation?.aesthetics ?? Pe.geom.aesthetics, DT = (e) => e.o
10102
10105
  position: "inside"
10103
10106
  };
10104
10107
  }
10105
- const S = cf(r.outside.width, r.outside.height, n), k = (s ? S.height : S.width) / 2, A = h + f * (k + a);
10106
- return A - k < 0 || A + k > m ? null : {
10108
+ const A = cf(r.outside.width, r.outside.height, n), k = (s ? A.height : A.width) / 2, S = h + f * (k + a);
10109
+ return S - k < 0 || S + k > m ? null : {
10107
10110
  ...s ? {
10108
10111
  x: l,
10109
- y: A
10112
+ y: S
10110
10113
  } : {
10111
- x: A,
10114
+ x: S,
10112
10115
  y: c
10113
10116
  },
10114
10117
  isRotated: n,
@@ -10162,39 +10165,39 @@ var MG = " · ", mn = 2, EG = (e) => {
10162
10165
  for (const h of e.layer.data) {
10163
10166
  const { startAngle: f, endAngle: m } = cp(h), { innerRadius: p, outerRadius: v } = $u(h);
10164
10167
  if (f === null || m === null || v === null) continue;
10165
- const y = e.formatLabel(h);
10166
- if (y === "") continue;
10167
- const x = a ? e.formatCategory(h) : null, w = x === null ? y : `${x}${MG}${y}`, S = {
10168
+ const b = e.formatLabel(h);
10169
+ if (b === "") continue;
10170
+ const x = a ? e.formatCategory(h) : null, w = x === null ? b : `${x}${MG}${b}`, A = {
10168
10171
  startAngle: f,
10169
10172
  endAngle: m,
10170
10173
  midAngle: (f + m) / 2,
10171
10174
  innerRadiusPx: (p ?? 0) * u,
10172
10175
  outerRadiusPx: v * u
10173
10176
  };
10174
- let k, A;
10177
+ let k, S;
10175
10178
  if (r === "auto") {
10176
10179
  const T = e.measureDataLabel("observation", "inside", w), R = {
10177
10180
  width: T.width,
10178
10181
  height: T.height
10179
10182
  }, I = e0({
10180
- wedge: S,
10183
+ wedge: A,
10181
10184
  position: "inside",
10182
10185
  offset: o,
10183
10186
  labelWidth: R.width,
10184
10187
  labelHeight: R.height
10185
10188
  }), V = s || PG({
10186
- wedge: S,
10189
+ wedge: A,
10187
10190
  labelRadius: I.labelRadius,
10188
10191
  labelAngle: I.labelAngle,
10189
10192
  labelWidth: R.width,
10190
10193
  labelHeight: R.height
10191
10194
  });
10192
- if (k = I, A = R, !V) {
10195
+ if (k = I, S = R, !V) {
10193
10196
  const M = e.measureDataLabel("observation", "outside", w), L = {
10194
10197
  width: M.width,
10195
10198
  height: M.height
10196
10199
  }, N = e0({
10197
- wedge: S,
10200
+ wedge: A,
10198
10201
  position: "outside",
10199
10202
  offset: o,
10200
10203
  labelWidth: L.width,
@@ -10206,28 +10209,28 @@ var MG = " · ", mn = 2, EG = (e) => {
10206
10209
  labelWidth: L.width,
10207
10210
  labelHeight: L.height,
10208
10211
  panelRect: e.panelRect
10209
- }) && (k = N, A = L);
10212
+ }) && (k = N, S = L);
10210
10213
  }
10211
10214
  } else {
10212
10215
  const T = ip(e.measureDataLabel, "observation", w), R = T[r];
10213
10216
  k = IG({
10214
- wedge: S,
10217
+ wedge: A,
10215
10218
  placement: r,
10216
10219
  justify: np(n),
10217
10220
  align: i,
10218
10221
  offset: o,
10219
10222
  labelWidth: R.width,
10220
10223
  labelHeight: R.height
10221
- }), A = T[k.position];
10224
+ }), S = T[k.position];
10222
10225
  }
10223
- const D = l + Math.sin(k.labelAngle) * k.labelRadius, b = c - Math.cos(k.labelAngle) * k.labelRadius;
10226
+ const D = l + Math.sin(k.labelAngle) * k.labelRadius, y = c - Math.cos(k.labelAngle) * k.labelRadius;
10224
10227
  t.push({
10225
10228
  layerId: e.layer.id,
10226
10229
  x: D,
10227
- y: b,
10230
+ y,
10228
10231
  text: w,
10229
- width: A.width,
10230
- height: A.height,
10232
+ width: S.width,
10233
+ height: S.height,
10231
10234
  isRotated: !1,
10232
10235
  role: "observation",
10233
10236
  position: k.position,
@@ -10398,7 +10401,7 @@ var MG = " · ", mn = 2, EG = (e) => {
10398
10401
  if (r.mainAxis === "x") {
10399
10402
  const d = dr(t), h = Gt(t), f = r0({
10400
10403
  lowerBound: $t(t),
10401
- upperBound: ht(t) ?? xe(t),
10404
+ upperBound: ht(t) ?? ye(t),
10402
10405
  options: s
10403
10406
  });
10404
10407
  return d === null || h === null || f === null ? null : {
@@ -10408,7 +10411,7 @@ var MG = " · ", mn = 2, EG = (e) => {
10408
10411
  }
10409
10412
  const l = $t(t), c = ht(t), u = r0({
10410
10413
  lowerBound: dr(t),
10411
- upperBound: Gt(t) ?? be(t),
10414
+ upperBound: Gt(t) ?? ve(t),
10412
10415
  options: s
10413
10416
  });
10414
10417
  return l === null || c === null || u === null ? null : {
@@ -10470,7 +10473,7 @@ var MG = " · ", mn = 2, EG = (e) => {
10470
10473
  };
10471
10474
  const { offset: r } = e.layer.dataLabels, n = NG(e.layer);
10472
10475
  for (const i of e.layer.data) {
10473
- const o = be(i), a = xe(i);
10476
+ const o = ve(i), a = ye(i);
10474
10477
  if (o === null || a === null || !ra(o, a)) continue;
10475
10478
  const s = e.formatLabel(i);
10476
10479
  if (s === "") continue;
@@ -10598,7 +10601,7 @@ var MG = " · ", mn = 2, EG = (e) => {
10598
10601
  };
10599
10602
  const { offset: r } = e.layer.dataLabels, n = FG(e.layer), i = n.justify === "panel-start" || n.justify === "panel-end", o = e.styleReaders;
10600
10603
  for (const a of e.layer.data) {
10601
- const s = be(a), l = xe(a);
10604
+ const s = ve(a), l = ye(a);
10602
10605
  if (s === null || l === null || !ra(s, l)) continue;
10603
10606
  const c = e.formatLabel(a);
10604
10607
  if (c === "") continue;
@@ -11190,7 +11193,7 @@ var WG = (e) => {
11190
11193
  var L = M.length / 2;
11191
11194
  return L % 1 === 0 ? (M[L - 1] + M[L]) / 2 : M[Math.floor(L)];
11192
11195
  }
11193
- var y = 2, x = 1e-12;
11196
+ var b = 2, x = 1e-12;
11194
11197
  function w() {
11195
11198
  var M = function(P) {
11196
11199
  return P[0];
@@ -11198,22 +11201,22 @@ var WG = (e) => {
11198
11201
  return P[1];
11199
11202
  }, N = 0.3;
11200
11203
  function C(E) {
11201
- for (var P = n(s(E, M, L, !0), 4), _ = P[0], j = P[1], X = P[2], ee = P[3], ne = _.length, oe = Math.max(2, ~~(N * ne)), te = new Float64Array(ne), ae = new Float64Array(ne), ie = new Float64Array(ne).fill(1), le = -1; ++le <= y; ) {
11204
+ for (var P = n(s(E, M, L, !0), 4), _ = P[0], j = P[1], X = P[2], ee = P[3], ne = _.length, oe = Math.max(2, ~~(N * ne)), te = new Float64Array(ne), ae = new Float64Array(ne), ie = new Float64Array(ne).fill(1), le = -1; ++le <= b; ) {
11202
11205
  for (var $ = [0, oe - 1], Y = 0; Y < ne; ++Y) {
11203
11206
  for (var q = _[Y], F = $[0], ce = $[1], J = q - _[F] > _[ce] - q ? F : ce, Se = 0, Te = 0, qe = 0, at = 0, st = 0, rr = 1 / Math.abs(_[J] - q || 1), lt = F; lt <= ce; ++lt) {
11204
- var ft = _[lt], Ce = j[lt], Pt = S(Math.abs(q - ft) * rr) * ie[lt], Ut = ft * Pt;
11207
+ var ft = _[lt], Ce = j[lt], Pt = A(Math.abs(q - ft) * rr) * ie[lt], Ut = ft * Pt;
11205
11208
  Se += Pt, Te += Ut, qe += Ce * Pt, at += Ce * Ut, st += ft * Ut;
11206
11209
  }
11207
11210
  var Il = n(f(Te / Se, qe / Se, at / Se, st / Se), 2);
11208
11211
  te[Y] = Il[0] + Il[1] * q, ae[Y] = Math.abs(j[Y] - te[Y]), k(_, Y + 1, $);
11209
11212
  }
11210
- if (le === y) break;
11213
+ if (le === b) break;
11211
11214
  var Bt = v(ae);
11212
11215
  if (Math.abs(Bt) < x) break;
11213
11216
  for (var Rl = 0, Ll, xv; Rl < ne; ++Rl)
11214
11217
  Ll = ae[Rl] / (6 * Bt), ie[Rl] = Ll >= 1 ? x : (xv = 1 - Ll * Ll) * xv;
11215
11218
  }
11216
- return A(_, te, X, ee);
11219
+ return S(_, te, X, ee);
11217
11220
  }
11218
11221
  return C.bandwidth = function(E) {
11219
11222
  return arguments.length ? (N = E, C) : N;
@@ -11223,7 +11226,7 @@ var WG = (e) => {
11223
11226
  return arguments.length ? (L = E, C) : L;
11224
11227
  }, C;
11225
11228
  }
11226
- function S(M) {
11229
+ function A(M) {
11227
11230
  return (M = 1 - M * M * M) * M * M;
11228
11231
  }
11229
11232
  function k(M, L, N) {
@@ -11232,7 +11235,7 @@ var WG = (e) => {
11232
11235
  for (; L > E && M[P] - C <= C - M[E]; )
11233
11236
  N[0] = ++E, N[1] = P, ++P;
11234
11237
  }
11235
- function A(M, L, N, C) {
11238
+ function S(M, L, N, C) {
11236
11239
  for (var E = M.length, P = [], _ = 0, j = 0, X = [], ee; _ < E; ++_)
11237
11240
  ee = M[_] + N, X[0] === ee ? X[1] += (L[_] - X[1]) / ++j : (j = 0, X[1] += C, X = [ee, L[_]], P.push(X));
11238
11241
  return X[1] += C, P;
@@ -11264,7 +11267,7 @@ var WG = (e) => {
11264
11267
  return arguments.length ? (N = P, E) : N;
11265
11268
  }, E;
11266
11269
  }
11267
- function b() {
11270
+ function y() {
11268
11271
  var M = function(P) {
11269
11272
  return P[0];
11270
11273
  }, L = function(P) {
@@ -11303,7 +11306,7 @@ var WG = (e) => {
11303
11306
  return _.coefficients = [_.b, _.a], delete _.a, delete _.b, _;
11304
11307
  }
11305
11308
  if (N === 2) {
11306
- var j = b().x(M).y(L).domain(C)(P);
11309
+ var j = y().x(M).y(L).domain(C)(P);
11307
11310
  return j.coefficients = [
11308
11311
  j.c,
11309
11312
  j.b,
@@ -11391,7 +11394,7 @@ var WG = (e) => {
11391
11394
  return arguments.length ? (L = E, C) : L;
11392
11395
  }, C;
11393
11396
  }
11394
- r.regressionExp = m, r.regressionLinear = p, r.regressionLoess = w, r.regressionLog = D, r.regressionPoly = T, r.regressionPow = V, r.regressionQuad = b, Object.defineProperty(r, "__esModule", { value: !0 });
11397
+ r.regressionExp = m, r.regressionLinear = p, r.regressionLoess = w, r.regressionLog = D, r.regressionPoly = T, r.regressionPow = V, r.regressionQuad = y, Object.defineProperty(r, "__esModule", { value: !0 });
11395
11398
  }));
11396
11399
  })), yi = QG(), JG = 2, jT = 1440 * 60 * 1e3, ZG = class extends io {
11397
11400
  constructor(...e) {
@@ -12109,8 +12112,8 @@ function fp() {
12109
12112
  function d() {
12110
12113
  var h = t().length, f = i < n, m = f ? i : n, p = f ? n : i;
12111
12114
  o = (p - m) / Math.max(1, h - l + c * 2), s && (o = Math.floor(o)), m += (p - m - o * (h - l)) * u, a = o * (1 - l), s && (m = Math.round(m), a = Math.round(a));
12112
- var v = HH(h).map(function(y) {
12113
- return m + o * y;
12115
+ var v = HH(h).map(function(b) {
12116
+ return m + o * b;
12114
12117
  });
12115
12118
  return r(f ? v.reverse() : v);
12116
12119
  }
@@ -12854,18 +12857,18 @@ function C4(e) {
12854
12857
  var t = e.grouping === void 0 || e.thousands === void 0 ? w0 : M4(A0.call(e.grouping, Number), e.thousands + ""), r = e.currency === void 0 ? "" : e.currency[0] + "", n = e.currency === void 0 ? "" : e.currency[1] + "", i = e.decimal === void 0 ? "." : e.decimal + "", o = e.numerals === void 0 ? w0 : E4(A0.call(e.numerals, String)), a = e.percent === void 0 ? "%" : e.percent + "", s = e.minus === void 0 ? "−" : e.minus + "", l = e.nan === void 0 ? "NaN" : e.nan + "";
12855
12858
  function c(d) {
12856
12859
  d = Os(d);
12857
- var h = d.fill, f = d.align, m = d.sign, p = d.symbol, v = d.zero, y = d.width, x = d.comma, w = d.precision, S = d.trim, k = d.type;
12858
- k === "n" ? (x = !0, k = "g") : x0[k] || (w === void 0 && (w = 12), S = !0, k = "g"), (v || h === "0" && f === "=") && (v = !0, h = "0", f = "=");
12859
- var A = p === "$" ? r : p === "#" && /[boxX]/.test(k) ? "0" + k.toLowerCase() : "", D = p === "$" ? n : /[%p]/.test(k) ? a : "", b = x0[k], T = /[defgprs%]/.test(k);
12860
+ var h = d.fill, f = d.align, m = d.sign, p = d.symbol, v = d.zero, b = d.width, x = d.comma, w = d.precision, A = d.trim, k = d.type;
12861
+ k === "n" ? (x = !0, k = "g") : x0[k] || (w === void 0 && (w = 12), A = !0, k = "g"), (v || h === "0" && f === "=") && (v = !0, h = "0", f = "=");
12862
+ var S = p === "$" ? r : p === "#" && /[boxX]/.test(k) ? "0" + k.toLowerCase() : "", D = p === "$" ? n : /[%p]/.test(k) ? a : "", y = x0[k], T = /[defgprs%]/.test(k);
12860
12863
  w = w === void 0 ? 6 : /[gprs]/.test(k) ? Math.max(1, Math.min(21, w)) : Math.max(0, Math.min(20, w));
12861
12864
  function R(I) {
12862
- var V = A, M = D, L, N, C;
12865
+ var V = S, M = D, L, N, C;
12863
12866
  if (k === "c")
12864
- M = b(I) + M, I = "";
12867
+ M = y(I) + M, I = "";
12865
12868
  else {
12866
12869
  I = +I;
12867
12870
  var E = I < 0 || 1 / I < 0;
12868
- if (I = isNaN(I) ? l : b(Math.abs(I), w), S && (I = P4(I)), E && +I == 0 && m !== "+" && (E = !1), V = (E ? m === "(" ? m : s : m === "-" || m === "(" ? "" : m) + V, M = (k === "s" ? S0[8 + vM / 3] : "") + M + (E && m === "(" ? ")" : ""), T) {
12871
+ if (I = isNaN(I) ? l : y(Math.abs(I), w), A && (I = P4(I)), E && +I == 0 && m !== "+" && (E = !1), V = (E ? m === "(" ? m : s : m === "-" || m === "(" ? "" : m) + V, M = (k === "s" ? S0[8 + vM / 3] : "") + M + (E && m === "(" ? ")" : ""), T) {
12869
12872
  for (L = -1, N = I.length; ++L < N; ) if (C = I.charCodeAt(L), 48 > C || C > 57) {
12870
12873
  M = (C === 46 ? i + I.slice(L + 1) : I.slice(L)) + M, I = I.slice(0, L);
12871
12874
  break;
@@ -12873,8 +12876,8 @@ function C4(e) {
12873
12876
  }
12874
12877
  }
12875
12878
  x && !v && (I = t(I, 1 / 0));
12876
- var P = V.length + I.length + M.length, _ = P < y ? new Array(y - P + 1).join(h) : "";
12877
- switch (x && v && (I = t(_ + I, _.length ? y - M.length : 1 / 0), _ = ""), f) {
12879
+ var P = V.length + I.length + M.length, _ = P < b ? new Array(b - P + 1).join(h) : "";
12880
+ switch (x && v && (I = t(_ + I, _.length ? b - M.length : 1 / 0), _ = ""), f) {
12878
12881
  case "<":
12879
12882
  I = V + I + M + _;
12880
12883
  break;
@@ -12896,8 +12899,8 @@ function C4(e) {
12896
12899
  }
12897
12900
  function u(d, h) {
12898
12901
  var f = c((d = Os(d), d.type = "f", d)), m = Math.max(-8, Math.min(8, Math.floor(la(h) / 3))) * 3, p = Math.pow(10, -m), v = S0[8 + m / 3];
12899
- return function(y) {
12900
- return f(p * y) + v;
12902
+ return function(b) {
12903
+ return f(p * b) + v;
12901
12904
  };
12902
12905
  }
12903
12906
  return {
@@ -13019,22 +13022,22 @@ function G4(e) {
13019
13022
  d && ([c, u] = [u, c]);
13020
13023
  let h = i(c), f = i(u), m, p;
13021
13024
  const v = s == null ? 10 : +s;
13022
- let y = [];
13025
+ let b = [];
13023
13026
  if (!(n % 1) && f - h < v) {
13024
13027
  if (h = Math.floor(h), f = Math.ceil(f), c > 0) {
13025
13028
  for (; h <= f; ++h) for (m = 1; m < n; ++m)
13026
13029
  if (p = h < 0 ? m / o(-h) : m * o(h), !(p < c)) {
13027
13030
  if (p > u) break;
13028
- y.push(p);
13031
+ b.push(p);
13029
13032
  }
13030
13033
  } else for (; h <= f; ++h) for (m = n - 1; m >= 1; --m)
13031
13034
  if (p = h > 0 ? m / o(-h) : m * o(h), !(p < c)) {
13032
13035
  if (p > u) break;
13033
- y.push(p);
13036
+ b.push(p);
13034
13037
  }
13035
- y.length * 2 < v && (y = rf(c, u, v));
13036
- } else y = rf(h, f, Math.min(f - h, v)).map(o);
13037
- return d ? y.reverse() : y;
13038
+ b.length * 2 < v && (b = rf(c, u, v));
13039
+ } else b = rf(h, f, Math.min(f - h, v)).map(o);
13040
+ return d ? b.reverse() : b;
13038
13041
  }, t.tickFormat = (s, l) => {
13039
13042
  if (s == null && (s = 10), l == null && (l = n === 10 ? "s" : ","), typeof l != "function" && (!(n % 1) && (l = Os(l)).precision == null && (l.trim = !0), l = gp(l)), s === 1 / 0) return l;
13040
13043
  const c = Math.max(1, n * s / t.ticks().length);
@@ -13106,7 +13109,7 @@ function Fa(e, t, r) {
13106
13109
  };
13107
13110
  }
13108
13111
  function z4(e) {
13109
- var t = e.dateTime, r = e.date, n = e.time, i = e.periods, o = e.days, a = e.shortDays, s = e.months, l = e.shortMonths, c = Ha(i), u = Ga(i), d = Ha(o), h = Ga(o), f = Ha(a), m = Ga(a), p = Ha(s), v = Ga(s), y = Ha(l), x = Ga(l), w = {
13112
+ var t = e.dateTime, r = e.date, n = e.time, i = e.periods, o = e.days, a = e.shortDays, s = e.months, l = e.shortMonths, c = Ha(i), u = Ga(i), d = Ha(o), h = Ga(o), f = Ha(a), m = Ga(a), p = Ha(s), v = Ga(s), b = Ha(l), x = Ga(l), w = {
13110
13113
  a: E,
13111
13114
  A: P,
13112
13115
  b: _,
@@ -13139,7 +13142,7 @@ function z4(e) {
13139
13142
  Y: EW,
13140
13143
  Z: PW,
13141
13144
  "%": O0
13142
- }, S = {
13145
+ }, A = {
13143
13146
  a: ne,
13144
13147
  A: oe,
13145
13148
  b: te,
@@ -13206,8 +13209,8 @@ function z4(e) {
13206
13209
  Z: tW,
13207
13210
  "%": cW
13208
13211
  };
13209
- w.x = A(r, w), w.X = A(n, w), w.c = A(t, w), S.x = A(r, S), S.X = A(n, S), S.c = A(t, S);
13210
- function A($, Y) {
13212
+ w.x = S(r, w), w.X = S(n, w), w.c = S(t, w), A.x = S(r, A), A.X = S(n, A), A.c = S(t, A);
13213
+ function S($, Y) {
13211
13214
  return function(q) {
13212
13215
  var F = [], ce = -1, J = 0, Se = $.length, Te, qe, at;
13213
13216
  for (q instanceof Date || (q = /* @__PURE__ */ new Date(+q)); ++ce < Se; ) $.charCodeAt(ce) === 37 && (F.push($.slice(J, ce)), (qe = P0[Te = $.charAt(++ce)]) != null ? Te = $.charAt(++ce) : qe = Te === "e" ? " " : "0", (at = Y[Te]) && (Te = at(q, qe)), F.push(Te), J = ce + 1);
@@ -13216,7 +13219,7 @@ function z4(e) {
13216
13219
  }
13217
13220
  function D($, Y) {
13218
13221
  return function(q) {
13219
- var F = Fa(1900, void 0, 1), ce = b(F, $, q += "", 0), J, Se;
13222
+ var F = Fa(1900, void 0, 1), ce = y(F, $, q += "", 0), J, Se;
13220
13223
  if (ce != q.length) return null;
13221
13224
  if ("Q" in F) return new Date(F.Q);
13222
13225
  if ("s" in F) return new Date(F.s * 1e3 + ("L" in F ? F.L : 0));
@@ -13227,7 +13230,7 @@ function z4(e) {
13227
13230
  return "Z" in F ? (F.H += F.Z / 100 | 0, F.M += F.Z % 100, rh(F)) : th(F);
13228
13231
  };
13229
13232
  }
13230
- function b($, Y, q, F) {
13233
+ function y($, Y, q, F) {
13231
13234
  for (var ce = 0, J = Y.length, Se = q.length, Te, qe; ce < J; ) {
13232
13235
  if (F >= Se) return -1;
13233
13236
  if (Te = Y.charCodeAt(ce++), Te === 37) {
@@ -13249,7 +13252,7 @@ function z4(e) {
13249
13252
  return F ? ($.w = h.get(F[0].toLowerCase()), q + F[0].length) : -1;
13250
13253
  }
13251
13254
  function V($, Y, q) {
13252
- var F = y.exec(Y.slice(q));
13255
+ var F = b.exec(Y.slice(q));
13253
13256
  return F ? ($.m = x.get(F[0].toLowerCase()), q + F[0].length) : -1;
13254
13257
  }
13255
13258
  function M($, Y, q) {
@@ -13257,13 +13260,13 @@ function z4(e) {
13257
13260
  return F ? ($.m = v.get(F[0].toLowerCase()), q + F[0].length) : -1;
13258
13261
  }
13259
13262
  function L($, Y, q) {
13260
- return b($, t, Y, q);
13263
+ return y($, t, Y, q);
13261
13264
  }
13262
13265
  function N($, Y, q) {
13263
- return b($, r, Y, q);
13266
+ return y($, r, Y, q);
13264
13267
  }
13265
13268
  function C($, Y, q) {
13266
- return b($, n, Y, q);
13269
+ return y($, n, Y, q);
13267
13270
  }
13268
13271
  function E($) {
13269
13272
  return a[$.getDay()];
@@ -13303,7 +13306,7 @@ function z4(e) {
13303
13306
  }
13304
13307
  return {
13305
13308
  format: function($) {
13306
- var Y = A($ += "", w);
13309
+ var Y = S($ += "", w);
13307
13310
  return Y.toString = function() {
13308
13311
  return $;
13309
13312
  }, Y;
@@ -13315,7 +13318,7 @@ function z4(e) {
13315
13318
  }, Y;
13316
13319
  },
13317
13320
  utcFormat: function($) {
13318
- var Y = A($ += "", S);
13321
+ var Y = S($ += "", A);
13319
13322
  return Y.toString = function() {
13320
13323
  return $;
13321
13324
  }, Y;
@@ -13625,22 +13628,22 @@ function QW(e) {
13625
13628
  return e instanceof Date ? +e : +/* @__PURE__ */ new Date(+e);
13626
13629
  }
13627
13630
  function PM(e, t, r, n, i, o, a, s, l, c) {
13628
- var u = gM(), d = u.invert, h = u.domain, f = c(".%L"), m = c(":%S"), p = c("%I:%M"), v = c("%I %p"), y = c("%a %d"), x = c("%b %d"), w = c("%B"), S = c("%Y");
13629
- function k(A) {
13630
- return (l(A) < A ? f : s(A) < A ? m : a(A) < A ? p : o(A) < A ? v : n(A) < A ? i(A) < A ? y : x : r(A) < A ? w : S)(A);
13631
- }
13632
- return u.invert = function(A) {
13633
- return new Date(d(A));
13634
- }, u.domain = function(A) {
13635
- return arguments.length ? h(Array.from(A, QW)) : h().map(qW);
13636
- }, u.ticks = function(A) {
13631
+ var u = gM(), d = u.invert, h = u.domain, f = c(".%L"), m = c(":%S"), p = c("%I:%M"), v = c("%I %p"), b = c("%a %d"), x = c("%b %d"), w = c("%B"), A = c("%Y");
13632
+ function k(S) {
13633
+ return (l(S) < S ? f : s(S) < S ? m : a(S) < S ? p : o(S) < S ? v : n(S) < S ? i(S) < S ? b : x : r(S) < S ? w : A)(S);
13634
+ }
13635
+ return u.invert = function(S) {
13636
+ return new Date(d(S));
13637
+ }, u.domain = function(S) {
13638
+ return arguments.length ? h(Array.from(S, QW)) : h().map(qW);
13639
+ }, u.ticks = function(S) {
13637
13640
  var D = h();
13638
- return e(D[0], D[D.length - 1], A ?? 10);
13639
- }, u.tickFormat = function(A, D) {
13641
+ return e(D[0], D[D.length - 1], S ?? 10);
13642
+ }, u.tickFormat = function(S, D) {
13640
13643
  return D == null ? k : c(D);
13641
- }, u.nice = function(A) {
13644
+ }, u.nice = function(S) {
13642
13645
  var D = h();
13643
- return (!A || typeof A.range != "function") && (A = t(D[0], D[D.length - 1], A ?? 10)), A ? h(xM(D, A)) : u;
13646
+ return (!S || typeof S.range != "function") && (S = t(D[0], D[D.length - 1], S ?? 10)), S ? h(xM(D, S)) : u;
13644
13647
  }, u.copy = function() {
13645
13648
  return Ku(u, PM(e, t, r, n, i, o, a, s, l, c));
13646
13649
  }, u;
@@ -13682,7 +13685,7 @@ var Xu = class {
13682
13685
  }, e6 = (e) => {
13683
13686
  const t = e.getConstant(O.xMin)?.value, r = e.getConstant(O.xMax)?.value;
13684
13687
  return typeof t != "number" || typeof r != "number" ? null : [t, r];
13685
- }, V0 = ye("__ungrouped__"), _M = (e, t) => {
13688
+ }, V0 = xe("__ungrouped__"), _M = (e, t) => {
13686
13689
  const r = K(t.x), n = K(t.y);
13687
13690
  if (!r || !n) return null;
13688
13691
  const i = e.getValues(we.group, {
@@ -13695,8 +13698,8 @@ var Xu = class {
13695
13698
  if (!H(p)) continue;
13696
13699
  let v = d.get(f);
13697
13700
  v || (v = /* @__PURE__ */ new Map(), d.set(f, v));
13698
- let y = v.get(p);
13699
- y || (y = [], v.set(p, y)), y.push(h);
13701
+ let b = v.get(p);
13702
+ b || (b = [], v.set(p, b)), b.push(h);
13700
13703
  }
13701
13704
  return {
13702
13705
  yValues: l,
@@ -13730,31 +13733,31 @@ var Xu = class {
13730
13733
  for (const [, d] of o) {
13731
13734
  let h = 0, f = 0;
13732
13735
  for (const v of a) {
13733
- const y = d.get(v);
13734
- if (y !== void 0)
13735
- for (const x of y) {
13736
+ const b = d.get(v);
13737
+ if (b !== void 0)
13738
+ for (const x of b) {
13736
13739
  const w = i[x];
13737
13740
  w != null && (w >= 0 ? h += w : f -= w);
13738
13741
  }
13739
13742
  }
13740
13743
  let m = 0, p = 0;
13741
13744
  for (const v of a) {
13742
- const y = d.get(v);
13743
- if (y !== void 0)
13744
- for (const x of y) {
13745
+ const b = d.get(v);
13746
+ if (b !== void 0)
13747
+ for (const x of b) {
13745
13748
  const w = i[x];
13746
13749
  if (w === void 0) continue;
13747
13750
  if (w === null) {
13748
- const A = r ? m : null;
13749
- c[x] = A, l[x] = A;
13751
+ const S = r ? m : null;
13752
+ c[x] = S, l[x] = S;
13750
13753
  continue;
13751
13754
  }
13752
- const S = w >= 0 ? h : f;
13753
- if (S === 0) {
13755
+ const A = w >= 0 ? h : f;
13756
+ if (A === 0) {
13754
13757
  c[x] = 0, l[x] = 0;
13755
13758
  continue;
13756
13759
  }
13757
- const k = w / S;
13760
+ const k = w / A;
13758
13761
  w >= 0 ? (c[x] = m, l[x] = m += k) : (l[x] = p, c[x] = p += k);
13759
13762
  }
13760
13763
  }
@@ -13789,14 +13792,14 @@ var Xu = class {
13789
13792
  for (const [, f] of o) {
13790
13793
  let m = 0, p = 0;
13791
13794
  for (const v of a) {
13792
- const y = f.get(v);
13793
- if (y !== void 0)
13794
- for (const x of y) {
13795
+ const b = f.get(v);
13796
+ if (b !== void 0)
13797
+ for (const x of b) {
13795
13798
  const w = i[x];
13796
13799
  if (w !== void 0) {
13797
13800
  if (w === null) {
13798
- const S = r ? m : null;
13799
- c[x] = S, l[x] = S;
13801
+ const A = r ? m : null;
13802
+ c[x] = A, l[x] = A;
13800
13803
  continue;
13801
13804
  }
13802
13805
  w >= 0 ? (c[x] = m, l[x] = m += w) : (l[x] = p, c[x] = p += w);
@@ -15656,26 +15659,26 @@ var Yj = class extends to {
15656
15659
  actual: String(f),
15657
15660
  ...h
15658
15661
  },
15659
- suggestion: `Set 'target' to one of ${[...Sp].map((S) => `'${S}'`).join(", ")}.`
15662
+ suggestion: `Set 'target' to one of ${[...Sp].map((A) => `'${A}'`).join(", ")}.`
15660
15663
  });
15661
15664
  return;
15662
15665
  }
15663
15666
  if (m.status === "unknown-partition") {
15664
- const { key: S, value: k, node: A } = m, D = xf(A, S);
15667
+ const { key: A, value: k, node: S } = m, D = xf(S, A);
15665
15668
  i.push({
15666
15669
  code: "INVALID_STYLE_RULE",
15667
- message: `Style ${u} addresses unknown ${S} '${k}'.`,
15670
+ message: `Style ${u} addresses unknown ${A} '${k}'.`,
15668
15671
  context: {
15669
- param: S,
15672
+ param: A,
15670
15673
  actual: k,
15671
15674
  ...h
15672
15675
  },
15673
- suggestion: D.length === 0 ? `Remove '${S}' — this target has none.` : `Set '${S}' to one of ${D.map((b) => `'${b}'`).join(", ")}, or omit it.`
15676
+ suggestion: D.length === 0 ? `Remove '${A}' — this target has none.` : `Set '${A}' to one of ${D.map((y) => `'${y}'`).join(", ")}, or omit it.`
15674
15677
  });
15675
15678
  return;
15676
15679
  }
15677
15680
  if (m.status === "namespace") {
15678
- const S = xf(m.node, "part");
15681
+ const A = xf(m.node, "part");
15679
15682
  i.push({
15680
15683
  code: "INVALID_STYLE_RULE",
15681
15684
  message: `Style ${u} ignored: ${l.select.target} entries need a part.`,
@@ -15684,7 +15687,7 @@ var Yj = class extends to {
15684
15687
  actual: String(l.select.part),
15685
15688
  ...h
15686
15689
  },
15687
- suggestion: `Set 'part' to one of ${S.map((k) => `'${k}'`).join(", ")}.`
15690
+ suggestion: `Set 'part' to one of ${A.map((k) => `'${k}'`).join(", ")}.`
15688
15691
  });
15689
15692
  return;
15690
15693
  }
@@ -15701,41 +15704,41 @@ var Yj = class extends to {
15701
15704
  });
15702
15705
  return;
15703
15706
  }
15704
- const v = p.options ?? [], y = l.select;
15705
- if (y.layer !== void 0) {
15707
+ const v = p.options ?? [], b = l.select;
15708
+ if (b.layer !== void 0) {
15706
15709
  i.push({
15707
15710
  code: "INVALID_STYLE_RULE",
15708
15711
  message: `Style ${u} does not take a layer.`,
15709
15712
  context: {
15710
15713
  param: "layer",
15711
- actual: On(y.layer),
15714
+ actual: On(b.layer),
15712
15715
  ...h
15713
15716
  },
15714
15717
  suggestion: "Remove 'layer' — this target is not layer-scoped."
15715
15718
  });
15716
15719
  return;
15717
15720
  }
15718
- if (y.annotation !== void 0) {
15721
+ if (b.annotation !== void 0) {
15719
15722
  if (!v.includes("annotation")) {
15720
15723
  i.push({
15721
15724
  code: "INVALID_STYLE_RULE",
15722
15725
  message: `Style ${u} does not take an annotation.`,
15723
15726
  context: {
15724
15727
  param: "annotation",
15725
- actual: On(y.annotation),
15728
+ actual: On(b.annotation),
15726
15729
  ...h
15727
15730
  },
15728
15731
  suggestion: "Remove 'annotation' — this target is not annotation-scoped."
15729
15732
  });
15730
15733
  return;
15731
15734
  }
15732
- if (typeof y.annotation != "string") {
15735
+ if (typeof b.annotation != "string") {
15733
15736
  i.push({
15734
15737
  code: "INVALID_STYLE_RULE",
15735
- message: `Style ${u} addresses an invalid annotation ${On(y.annotation)}.`,
15738
+ message: `Style ${u} addresses an invalid annotation ${On(b.annotation)}.`,
15736
15739
  context: {
15737
15740
  param: "annotation",
15738
- actual: On(y.annotation),
15741
+ actual: On(b.annotation),
15739
15742
  ...h
15740
15743
  },
15741
15744
  suggestion: "Set 'annotation' to the id of an annotation in the spec, or omit it to address every one of the kind."
@@ -15781,16 +15784,16 @@ var Yj = class extends to {
15781
15784
  }), a;
15782
15785
  }, eU = (e) => {
15783
15786
  const { layer: t, layerIndex: r, styles: n, parsingLocale: i, styleTarget: o, coord: a = "cartesian", theme: s, geomColor: l } = e, c = Ym(t, i), u = [], d = eE(n, s, l), h = (m) => m === t.geom ? o : void 0, f = (m, p, v = "spec") => {
15784
- const y = [];
15787
+ const b = [];
15785
15788
  return m.forEach((x, w) => {
15786
15789
  if (!cl(x) || !QM(x.select, a)) return;
15787
- const S = x.select.kind;
15788
- if (S !== void 0 && S !== t.geom || x.select.layer !== void 0 && x.select.layer !== t.id) return;
15790
+ const A = x.select.kind;
15791
+ if (A !== void 0 && A !== t.geom || x.select.layer !== void 0 && x.select.layer !== t.id) return;
15789
15792
  const k = Vs(v, p, w);
15790
15793
  if (JM(x, k, h) !== void 0) return;
15791
- const A = x.when?.state;
15792
- if (A !== void 0 && !qM(A)) return;
15793
- const D = x.id === void 0 ? {} : { styleEntryId: x.id }, b = v === "theme" ? wf(x, w) : {
15794
+ const S = x.when?.state;
15795
+ if (S !== void 0 && !qM(S)) return;
15796
+ const D = x.id === void 0 ? {} : { styleEntryId: x.id }, y = v === "theme" ? wf(x, w) : {
15794
15797
  list: p,
15795
15798
  index: w,
15796
15799
  ...x.id === void 0 ? {} : { id: x.id }
@@ -15818,10 +15821,10 @@ var Yj = class extends to {
15818
15821
  styleTarget: o,
15819
15822
  tokens: d,
15820
15823
  location: k,
15821
- origin: b,
15824
+ origin: y,
15822
15825
  warnings: u
15823
15826
  });
15824
- if (A === "dimmed" && R.overpaint !== void 0 && (u.push({
15827
+ if (S === "dimmed" && R.overpaint !== void 0 && (u.push({
15825
15828
  code: "INVALID_STYLE_RULE",
15826
15829
  message: `Style ${k}: 'overpaint' is not supported in the 'dimmed' state; the declaration is ignored.`,
15827
15830
  context: {
@@ -15841,17 +15844,17 @@ var Yj = class extends to {
15841
15844
  suggestion: "Remove 'where': an overpaint covers the layer's shapes as one, so it cannot vary by observation."
15842
15845
  }), delete R.overpaint), Object.keys(R).length === 0) return;
15843
15846
  const { part: I } = x.select;
15844
- y.push({
15847
+ b.push({
15845
15848
  declarations: R,
15846
15849
  ...T === void 0 ? {} : {
15847
15850
  matches: Bo(T, c),
15848
15851
  where: T
15849
15852
  },
15850
- ...A === void 0 ? {} : { state: A },
15853
+ ...S === void 0 ? {} : { state: S },
15851
15854
  ...I === void 0 ? {} : { part: I },
15852
- origin: b
15855
+ origin: y
15853
15856
  });
15854
- }), y;
15857
+ }), b;
15855
15858
  };
15856
15859
  return {
15857
15860
  defaults: [
@@ -16203,7 +16206,7 @@ var Yj = class extends to {
16203
16206
  suggestion: `Declare '${p}' in the stylesheet's tokens.`
16204
16207
  });
16205
16208
  }, f = (m) => {
16206
- const p = qj.has(m), v = oU(s, m), y = v === void 0 ? `Declare '${m}' on a target whose vocabulary carries it.` : `Declare '${m}' on an entry whose kind supports it (e.g. ${v}).`;
16209
+ const p = qj.has(m), v = oU(s, m), b = v === void 0 ? `Declare '${m}' on a target whose vocabulary carries it.` : `Declare '${m}' on an entry whose kind supports it (e.g. ${v}).`;
16207
16210
  a.push({
16208
16211
  code: "INVALID_STYLE_RULE",
16209
16212
  message: `Style ${i} declaration '${m}' ignored: ${p ? "not in this entry's vocabulary" : "not a style property"}.`,
@@ -16211,7 +16214,7 @@ var Yj = class extends to {
16211
16214
  param: m,
16212
16215
  ...c
16213
16216
  },
16214
- suggestion: p ? y : `Remove the unknown declaration '${m}'.`
16217
+ suggestion: p ? b : `Remove the unknown declaration '${m}'.`
16215
16218
  });
16216
16219
  };
16217
16220
  for (const m of Object.keys(t)) {
@@ -16222,16 +16225,16 @@ var Yj = class extends to {
16222
16225
  f(m);
16223
16226
  continue;
16224
16227
  }
16225
- const y = CV[v](p, n);
16226
- switch (y.status) {
16228
+ const b = CV[v](p, n);
16229
+ switch (b.status) {
16227
16230
  case "accepted":
16228
- u(m, y.value);
16231
+ u(m, b.value);
16229
16232
  break;
16230
16233
  case "rejected":
16231
- d(m, y.expected, y.actual);
16234
+ d(m, b.expected, b.actual);
16232
16235
  break;
16233
16236
  case "unknownToken":
16234
- h(m, y.token);
16237
+ h(m, b.token);
16235
16238
  break;
16236
16239
  case "dropped":
16237
16240
  break;
@@ -16261,45 +16264,47 @@ var Yj = class extends to {
16261
16264
  }, AU = ({ layer: e, mainAxis: t }) => {
16262
16265
  if (e.position !== "stack") return;
16263
16266
  const r = K(e.mapping.x);
16264
- if (r === null || !e.data.hasVariable(O.yMin) || !e.data.hasVariable(O.yMax)) return;
16265
- const n = (s) => t === "y" ? s.xMax : s.yMax, i = (s) => t === "y" ? s.xMin : s.yMin, o = /* @__PURE__ */ new Map();
16266
- for (const s of e.data) {
16267
- const l = s[r], c = $t(s), u = ht(s), d = dr(s), h = Gt(s), f = I1(s);
16268
- if (!H(l) || !H(c) || !H(u) || !H(d) || !H(h) || !H(f)) continue;
16269
- const m = f >= 0;
16270
- if (Math.abs(f) === 0) continue;
16271
- const p = Zm(s, r), v = {
16272
- xMin: d,
16273
- xMax: h,
16274
- yMin: c,
16275
- yMax: u
16276
- }, y = o.get(p);
16277
- if (y === void 0) {
16278
- o.set(p, {
16279
- total: f,
16280
- topPositive: m ? v : null,
16281
- bottomNegative: m ? null : v
16267
+ if (r === null) return;
16268
+ const [n, i] = t === "y" ? [O.xMin, O.xMax] : [O.yMin, O.yMax];
16269
+ if (!e.data.hasVariable(n) || !e.data.hasVariable(i)) return;
16270
+ const o = (c) => t === "y" ? c.xMax : c.yMax, a = (c) => t === "y" ? c.xMin : c.yMin, s = /* @__PURE__ */ new Map();
16271
+ for (const c of e.data) {
16272
+ const u = c[r], d = t === "y" ? ye(c) : ve(c), h = $t(c) ?? (t === "y" ? d : null), f = ht(c) ?? (t === "y" ? d : null), m = dr(c) ?? (t === "x" ? d : null), p = Gt(c) ?? (t === "x" ? d : null), v = I1(c);
16273
+ if (!H(u) || !H(h) || !H(f) || !H(m) || !H(p) || !H(v)) continue;
16274
+ const b = v >= 0;
16275
+ if (Math.abs(v) === 0) continue;
16276
+ const x = Zm(c, r), w = {
16277
+ xMin: m,
16278
+ xMax: p,
16279
+ yMin: h,
16280
+ yMax: f
16281
+ }, A = s.get(x);
16282
+ if (A === void 0) {
16283
+ s.set(x, {
16284
+ total: v,
16285
+ topPositive: b ? w : null,
16286
+ bottomNegative: b ? null : w
16282
16287
  });
16283
16288
  continue;
16284
16289
  }
16285
- y.total += f, m ? (y.topPositive === null || n(v) > n(y.topPositive)) && (y.topPositive = v) : (y.bottomNegative === null || i(v) < i(y.bottomNegative)) && (y.bottomNegative = v);
16290
+ A.total += v, b ? (A.topPositive === null || o(w) > o(A.topPositive)) && (A.topPositive = w) : (A.bottomNegative === null || a(w) < a(A.bottomNegative)) && (A.bottomNegative = w);
16286
16291
  }
16287
- const a = [];
16288
- for (const [s, l] of o) {
16289
- const c = l.topPositive ?? l.bottomNegative;
16290
- c !== null && a.push({
16291
- xKey: s,
16292
- total: l.total,
16292
+ const l = [];
16293
+ for (const [c, u] of s) {
16294
+ const d = u.topPositive ?? u.bottomNegative;
16295
+ d !== null && l.push({
16296
+ xKey: c,
16297
+ total: u.total,
16293
16298
  anchor: {
16294
- xMin: c.xMin,
16295
- xMax: c.xMax,
16296
- yMin: c.yMin,
16297
- yMax: c.yMax,
16298
- direction: l.topPositive !== null ? "positive" : "negative"
16299
+ xMin: d.xMin,
16300
+ xMax: d.xMax,
16301
+ yMin: d.yMin,
16302
+ yMax: d.yMax,
16303
+ direction: u.topPositive !== null ? "positive" : "negative"
16299
16304
  }
16300
16305
  });
16301
16306
  }
16302
- return a;
16307
+ return l;
16303
16308
  }, SU = class extends to {
16304
16309
  constructor(e) {
16305
16310
  super(), this.container = e;
@@ -17001,65 +17006,65 @@ var Mt = { timeZone: "UTC" }, xt = (e) => (t) => {
17001
17006
  }
17002
17007
  }, ii = (e) => (t) => Oe(t) ? e(t) : "–", kp = (e) => (t) => Au(t) ? t : "–", i8 = /* @__PURE__ */ nn(((e, t) => {
17003
17008
  (function() {
17004
- var r = Object.assign || function(b) {
17009
+ var r = Object.assign || function(y) {
17005
17010
  for (var T, R = 1; R < arguments.length; R++) {
17006
17011
  T = arguments[R];
17007
- for (var I in T) y(T, I) && (b[I] = T[I]);
17012
+ for (var I in T) b(T, I) && (y[I] = T[I]);
17008
17013
  }
17009
- return b;
17010
- }, n = Array.isArray || function(b) {
17011
- return Object.prototype.toString.call(b) === "[object Array]";
17014
+ return y;
17015
+ }, n = Array.isArray || function(y) {
17016
+ return Object.prototype.toString.call(y) === "[object Array]";
17012
17017
  }, i = l(["χρόνος", "χρόνια"], ["μήνας", "μήνες"], ["εβδομάδα", "εβδομάδες"], ["μέρα", "μέρες"], ["ώρα", "ώρες"], ["λεπτό", "λεπτά"], ["δευτερόλεπτο", "δευτερόλεπτα"], ["χιλιοστό του δευτερολέπτου", "χιλιοστά του δευτερολέπτου"], ","), o = {
17013
17018
  af: l(["jaar", "jaar"], ["maand", "maande"], ["week", "weke"], ["dag", "dae"], ["uur", "ure"], ["minuut", "minute"], ["sekonde", "sekondes"], ["millisekonde", "millisekondes"], ","),
17014
17019
  am: a("ዓመት", "ወር", "ሳምንት", "ቀን", "ሰዓት", "ደቂቃ", "ሰከንድ", "ሚሊሰከንድ"),
17015
- ar: r(a(function(b) {
17020
+ ar: r(a(function(y) {
17016
17021
  return [
17017
17022
  "سنة",
17018
17023
  "سنتان",
17019
17024
  "سنوات"
17020
- ][h(b)];
17021
- }, function(b) {
17025
+ ][h(y)];
17026
+ }, function(y) {
17022
17027
  return [
17023
17028
  "شهر",
17024
17029
  "شهران",
17025
17030
  "أشهر"
17026
- ][h(b)];
17027
- }, function(b) {
17031
+ ][h(y)];
17032
+ }, function(y) {
17028
17033
  return [
17029
17034
  "أسبوع",
17030
17035
  "أسبوعين",
17031
17036
  "أسابيع"
17032
- ][h(b)];
17033
- }, function(b) {
17037
+ ][h(y)];
17038
+ }, function(y) {
17034
17039
  return [
17035
17040
  "يوم",
17036
17041
  "يومين",
17037
17042
  "أيام"
17038
- ][h(b)];
17039
- }, function(b) {
17043
+ ][h(y)];
17044
+ }, function(y) {
17040
17045
  return [
17041
17046
  "ساعة",
17042
17047
  "ساعتين",
17043
17048
  "ساعات"
17044
- ][h(b)];
17045
- }, function(b) {
17049
+ ][h(y)];
17050
+ }, function(y) {
17046
17051
  return [
17047
17052
  "دقيقة",
17048
17053
  "دقيقتان",
17049
17054
  "دقائق"
17050
- ][h(b)];
17051
- }, function(b) {
17055
+ ][h(y)];
17056
+ }, function(y) {
17052
17057
  return [
17053
17058
  "ثانية",
17054
17059
  "ثانيتان",
17055
17060
  "ثواني"
17056
- ][h(b)];
17057
- }, function(b) {
17061
+ ][h(y)];
17062
+ }, function(y) {
17058
17063
  return [
17059
17064
  "جزء من الثانية",
17060
17065
  "جزآن من الثانية",
17061
17066
  "أجزاء من الثانية"
17062
- ][h(b)];
17067
+ ][h(y)];
17063
17068
  }, ","), {
17064
17069
  delimiter: " ﻭ ",
17065
17070
  _hideCountIf2: !0,
@@ -17112,62 +17117,62 @@ var Mt = { timeZone: "UTC" }, xt = (e) => (t) => {
17112
17117
  bn: a("বছর", "মাস", "সপ্তাহ", "দিন", "ঘন্টা", "মিনিট", "সেকেন্ড", "মিলিসেকেন্ড"),
17113
17118
  ca: l(["any", "anys"], ["mes", "mesos"], ["setmana", "setmanes"], ["dia", "dies"], ["hora", "hores"], ["minut", "minuts"], ["segon", "segons"], ["milisegon", "milisegons"], ","),
17114
17119
  ckb: a("ساڵ", "مانگ", "هەفتە", "ڕۆژ", "کاژێر", "خولەک", "چرکە", "میلی چرکە", "."),
17115
- cs: a(function(b) {
17120
+ cs: a(function(y) {
17116
17121
  return [
17117
17122
  "rok",
17118
17123
  "roku",
17119
17124
  "roky",
17120
17125
  "let"
17121
- ][m(b)];
17122
- }, function(b) {
17126
+ ][m(y)];
17127
+ }, function(y) {
17123
17128
  return [
17124
17129
  "měsíc",
17125
17130
  "měsíce",
17126
17131
  "měsíce",
17127
17132
  "měsíců"
17128
- ][m(b)];
17129
- }, function(b) {
17133
+ ][m(y)];
17134
+ }, function(y) {
17130
17135
  return [
17131
17136
  "týden",
17132
17137
  "týdne",
17133
17138
  "týdny",
17134
17139
  "týdnů"
17135
- ][m(b)];
17136
- }, function(b) {
17140
+ ][m(y)];
17141
+ }, function(y) {
17137
17142
  return [
17138
17143
  "den",
17139
17144
  "dne",
17140
17145
  "dny",
17141
17146
  "dní"
17142
- ][m(b)];
17143
- }, function(b) {
17147
+ ][m(y)];
17148
+ }, function(y) {
17144
17149
  return [
17145
17150
  "hodina",
17146
17151
  "hodiny",
17147
17152
  "hodiny",
17148
17153
  "hodin"
17149
- ][m(b)];
17150
- }, function(b) {
17154
+ ][m(y)];
17155
+ }, function(y) {
17151
17156
  return [
17152
17157
  "minuta",
17153
17158
  "minuty",
17154
17159
  "minuty",
17155
17160
  "minut"
17156
- ][m(b)];
17157
- }, function(b) {
17161
+ ][m(y)];
17162
+ }, function(y) {
17158
17163
  return [
17159
17164
  "sekunda",
17160
17165
  "sekundy",
17161
17166
  "sekundy",
17162
17167
  "sekund"
17163
- ][m(b)];
17164
- }, function(b) {
17168
+ ][m(y)];
17169
+ }, function(y) {
17165
17170
  return [
17166
17171
  "milisekunda",
17167
17172
  "milisekundy",
17168
17173
  "milisekundy",
17169
17174
  "milisekund"
17170
- ][m(b)];
17175
+ ][m(y)];
17171
17176
  }, ","),
17172
17177
  cy: a("flwyddyn", "mis", "wythnos", "diwrnod", "awr", "munud", "eiliad", "milieiliad"),
17173
17178
  da: l(["år", "år"], ["måned", "måneder"], ["uge", "uger"], ["dag", "dage"], ["time", "timer"], ["minut", "minutter"], ["sekund", "sekunder"], ["millisekund", "millisekunder"], ","),
@@ -17181,39 +17186,39 @@ var Mt = { timeZone: "UTC" }, xt = (e) => (t) => {
17181
17186
  fa: a("سال", "ماه", "هفته", "روز", "ساعت", "دقیقه", "ثانیه", "میلی ثانیه"),
17182
17187
  fi: l(["vuosi", "vuotta"], ["kuukausi", "kuukautta"], ["viikko", "viikkoa"], ["päivä", "päivää"], ["tunti", "tuntia"], ["minuutti", "minuuttia"], ["sekunti", "sekuntia"], ["millisekunti", "millisekuntia"], ","),
17183
17188
  fo: l(["ár", "ár"], ["mánaður", "mánaðir"], ["vika", "vikur"], ["dagur", "dagar"], ["tími", "tímar"], ["minuttur", "minuttir"], ["sekund", "sekund"], ["millisekund", "millisekund"], ","),
17184
- fr: a(function(b) {
17185
- return "an" + (b >= 2 ? "s" : "");
17186
- }, "mois", function(b) {
17187
- return "semaine" + (b >= 2 ? "s" : "");
17188
- }, function(b) {
17189
- return "jour" + (b >= 2 ? "s" : "");
17190
- }, function(b) {
17191
- return "heure" + (b >= 2 ? "s" : "");
17192
- }, function(b) {
17193
- return "minute" + (b >= 2 ? "s" : "");
17194
- }, function(b) {
17195
- return "seconde" + (b >= 2 ? "s" : "");
17196
- }, function(b) {
17197
- return "milliseconde" + (b >= 2 ? "s" : "");
17189
+ fr: a(function(y) {
17190
+ return "an" + (y >= 2 ? "s" : "");
17191
+ }, "mois", function(y) {
17192
+ return "semaine" + (y >= 2 ? "s" : "");
17193
+ }, function(y) {
17194
+ return "jour" + (y >= 2 ? "s" : "");
17195
+ }, function(y) {
17196
+ return "heure" + (y >= 2 ? "s" : "");
17197
+ }, function(y) {
17198
+ return "minute" + (y >= 2 ? "s" : "");
17199
+ }, function(y) {
17200
+ return "seconde" + (y >= 2 ? "s" : "");
17201
+ }, function(y) {
17202
+ return "milliseconde" + (y >= 2 ? "s" : "");
17198
17203
  }, ","),
17199
17204
  gr: i,
17200
17205
  he: l(["שנה", "שנים"], ["חודש", "חודשים"], ["שבוע", "שבועות"], ["יום", "ימים"], ["שעה", "שעות"], ["דקה", "דקות"], ["שניה", "שניות"], ["מילישנייה", "מילישניות"]),
17201
- hr: a(function(b) {
17202
- return b % 10 === 2 || b % 10 === 3 || b % 10 === 4 ? "godine" : "godina";
17203
- }, function(b) {
17204
- return b === 1 ? "mjesec" : b === 2 || b === 3 || b === 4 ? "mjeseca" : "mjeseci";
17205
- }, function(b) {
17206
- return b % 10 === 1 && b !== 11 ? "tjedan" : "tjedna";
17207
- }, s(["dan", "dana"]), function(b) {
17208
- return b === 1 ? "sat" : b === 2 || b === 3 || b === 4 ? "sata" : "sati";
17209
- }, function(b) {
17210
- var T = b % 10;
17211
- return (T === 2 || T === 3 || T === 4) && (b < 10 || b > 14) ? "minute" : "minuta";
17212
- }, function(b) {
17213
- var T = b % 10;
17214
- return T === 5 || Math.floor(b) === b && b >= 10 && b <= 19 ? "sekundi" : T === 1 ? "sekunda" : T === 2 || T === 3 || T === 4 ? "sekunde" : "sekundi";
17215
- }, function(b) {
17216
- return b === 1 ? "milisekunda" : b % 10 === 2 || b % 10 === 3 || b % 10 === 4 ? "milisekunde" : "milisekundi";
17206
+ hr: a(function(y) {
17207
+ return y % 10 === 2 || y % 10 === 3 || y % 10 === 4 ? "godine" : "godina";
17208
+ }, function(y) {
17209
+ return y === 1 ? "mjesec" : y === 2 || y === 3 || y === 4 ? "mjeseca" : "mjeseci";
17210
+ }, function(y) {
17211
+ return y % 10 === 1 && y !== 11 ? "tjedan" : "tjedna";
17212
+ }, s(["dan", "dana"]), function(y) {
17213
+ return y === 1 ? "sat" : y === 2 || y === 3 || y === 4 ? "sata" : "sati";
17214
+ }, function(y) {
17215
+ var T = y % 10;
17216
+ return (T === 2 || T === 3 || T === 4) && (y < 10 || y > 14) ? "minute" : "minuta";
17217
+ }, function(y) {
17218
+ var T = y % 10;
17219
+ return T === 5 || Math.floor(y) === y && y >= 10 && y <= 19 ? "sekundi" : T === 1 ? "sekunda" : T === 2 || T === 3 || T === 4 ? "sekunde" : "sekundi";
17220
+ }, function(y) {
17221
+ return y === 1 ? "milisekunda" : y % 10 === 2 || y % 10 === 3 || y % 10 === 4 ? "milisekunde" : "milisekundi";
17217
17222
  }, ","),
17218
17223
  hi: a("साल", s(["महीना", "महीने"]), s(["हफ़्ता", "हफ्ते"]), "दिन", s(["घंटा", "घंटे"]), "मिनट", "सेकंड", "मिलीसेकंड"),
17219
17224
  hu: a("év", "hónap", "hét", "nap", "óra", "perc", "másodperc", "ezredmásodperc", ","),
@@ -17226,67 +17231,67 @@ var Mt = { timeZone: "UTC" }, xt = (e) => (t) => {
17226
17231
  ko: a("년", "개월", "주일", "일", "시간", "분", "초", "밀리 초"),
17227
17232
  ku: a("sal", "meh", "hefte", "roj", "seet", "deqe", "saniye", "mîlîçirk", ","),
17228
17233
  lo: a("ປີ", "ເດືອນ", "ອາທິດ", "ມື້", "ຊົ່ວໂມງ", "ນາທີ", "ວິນາທີ", "ມິນລິວິນາທີ", ","),
17229
- lt: a(function(b) {
17230
- return b % 10 === 0 || b % 100 >= 10 && b % 100 <= 20 ? "metų" : "metai";
17231
- }, function(b) {
17234
+ lt: a(function(y) {
17235
+ return y % 10 === 0 || y % 100 >= 10 && y % 100 <= 20 ? "metų" : "metai";
17236
+ }, function(y) {
17232
17237
  return [
17233
17238
  "mėnuo",
17234
17239
  "mėnesiai",
17235
17240
  "mėnesių"
17236
- ][p(b)];
17237
- }, function(b) {
17241
+ ][p(y)];
17242
+ }, function(y) {
17238
17243
  return [
17239
17244
  "savaitė",
17240
17245
  "savaitės",
17241
17246
  "savaičių"
17242
- ][p(b)];
17243
- }, function(b) {
17247
+ ][p(y)];
17248
+ }, function(y) {
17244
17249
  return [
17245
17250
  "diena",
17246
17251
  "dienos",
17247
17252
  "dienų"
17248
- ][p(b)];
17249
- }, function(b) {
17253
+ ][p(y)];
17254
+ }, function(y) {
17250
17255
  return [
17251
17256
  "valanda",
17252
17257
  "valandos",
17253
17258
  "valandų"
17254
- ][p(b)];
17255
- }, function(b) {
17259
+ ][p(y)];
17260
+ }, function(y) {
17256
17261
  return [
17257
17262
  "minutė",
17258
17263
  "minutės",
17259
17264
  "minučių"
17260
- ][p(b)];
17261
- }, function(b) {
17265
+ ][p(y)];
17266
+ }, function(y) {
17262
17267
  return [
17263
17268
  "sekundė",
17264
17269
  "sekundės",
17265
17270
  "sekundžių"
17266
- ][p(b)];
17267
- }, function(b) {
17271
+ ][p(y)];
17272
+ }, function(y) {
17268
17273
  return [
17269
17274
  "milisekundė",
17270
17275
  "milisekundės",
17271
17276
  "milisekundžių"
17272
- ][p(b)];
17277
+ ][p(y)];
17273
17278
  }, ","),
17274
- lv: a(function(b) {
17275
- return v(b) ? "gads" : "gadi";
17276
- }, function(b) {
17277
- return v(b) ? "mēnesis" : "mēneši";
17278
- }, function(b) {
17279
- return v(b) ? "nedēļa" : "nedēļas";
17280
- }, function(b) {
17281
- return v(b) ? "diena" : "dienas";
17282
- }, function(b) {
17283
- return v(b) ? "stunda" : "stundas";
17284
- }, function(b) {
17285
- return v(b) ? "minūte" : "minūtes";
17286
- }, function(b) {
17287
- return v(b) ? "sekunde" : "sekundes";
17288
- }, function(b) {
17289
- return v(b) ? "milisekunde" : "milisekundes";
17279
+ lv: a(function(y) {
17280
+ return v(y) ? "gads" : "gadi";
17281
+ }, function(y) {
17282
+ return v(y) ? "mēnesis" : "mēneši";
17283
+ }, function(y) {
17284
+ return v(y) ? "nedēļa" : "nedēļas";
17285
+ }, function(y) {
17286
+ return v(y) ? "diena" : "dienas";
17287
+ }, function(y) {
17288
+ return v(y) ? "stunda" : "stundas";
17289
+ }, function(y) {
17290
+ return v(y) ? "minūte" : "minūtes";
17291
+ }, function(y) {
17292
+ return v(y) ? "sekunde" : "sekundes";
17293
+ }, function(y) {
17294
+ return v(y) ? "milisekunde" : "milisekundes";
17290
17295
  }, ","),
17291
17296
  mk: l(["година", "години"], ["месец", "месеци"], ["недела", "недели"], ["ден", "дена"], ["час", "часа"], ["минута", "минути"], ["секунда", "секунди"], ["милисекунда", "милисекунди"], ","),
17292
17297
  mn: a("жил", "сар", "долоо хоног", "өдөр", "цаг", "минут", "секунд", "миллисекунд"),
@@ -17294,62 +17299,62 @@ var Mt = { timeZone: "UTC" }, xt = (e) => (t) => {
17294
17299
  ms: a("tahun", "bulan", "minggu", "hari", "jam", "minit", "saat", "milisaat"),
17295
17300
  nl: l(["jaar", "jaar"], ["maand", "maanden"], ["week", "weken"], ["dag", "dagen"], ["uur", "uur"], ["minuut", "minuten"], ["seconde", "seconden"], ["milliseconde", "milliseconden"], ","),
17296
17301
  no: l(["år", "år"], ["måned", "måneder"], ["uke", "uker"], ["dag", "dager"], ["time", "timer"], ["minutt", "minutter"], ["sekund", "sekunder"], ["millisekund", "millisekunder"], ","),
17297
- pl: a(function(b) {
17302
+ pl: a(function(y) {
17298
17303
  return [
17299
17304
  "rok",
17300
17305
  "roku",
17301
17306
  "lata",
17302
17307
  "lat"
17303
- ][f(b)];
17304
- }, function(b) {
17308
+ ][f(y)];
17309
+ }, function(y) {
17305
17310
  return [
17306
17311
  "miesiąc",
17307
17312
  "miesiąca",
17308
17313
  "miesiące",
17309
17314
  "miesięcy"
17310
- ][f(b)];
17311
- }, function(b) {
17315
+ ][f(y)];
17316
+ }, function(y) {
17312
17317
  return [
17313
17318
  "tydzień",
17314
17319
  "tygodnia",
17315
17320
  "tygodnie",
17316
17321
  "tygodni"
17317
- ][f(b)];
17318
- }, function(b) {
17322
+ ][f(y)];
17323
+ }, function(y) {
17319
17324
  return [
17320
17325
  "dzień",
17321
17326
  "dnia",
17322
17327
  "dni",
17323
17328
  "dni"
17324
- ][f(b)];
17325
- }, function(b) {
17329
+ ][f(y)];
17330
+ }, function(y) {
17326
17331
  return [
17327
17332
  "godzina",
17328
17333
  "godziny",
17329
17334
  "godziny",
17330
17335
  "godzin"
17331
- ][f(b)];
17332
- }, function(b) {
17336
+ ][f(y)];
17337
+ }, function(y) {
17333
17338
  return [
17334
17339
  "minuta",
17335
17340
  "minuty",
17336
17341
  "minuty",
17337
17342
  "minut"
17338
- ][f(b)];
17339
- }, function(b) {
17343
+ ][f(y)];
17344
+ }, function(y) {
17340
17345
  return [
17341
17346
  "sekunda",
17342
17347
  "sekundy",
17343
17348
  "sekundy",
17344
17349
  "sekund"
17345
- ][f(b)];
17346
- }, function(b) {
17350
+ ][f(y)];
17351
+ }, function(y) {
17347
17352
  return [
17348
17353
  "milisekunda",
17349
17354
  "milisekundy",
17350
17355
  "milisekundy",
17351
17356
  "milisekund"
17352
- ][f(b)];
17357
+ ][f(y)];
17353
17358
  }, ","),
17354
17359
  pt: l(["ano", "anos"], ["mês", "meses"], ["semana", "semanas"], ["dia", "dias"], ["hora", "horas"], ["minuto", "minutos"], ["segundo", "segundos"], ["milissegundo", "milissegundos"], ","),
17355
17360
  ro: a(c("an", "ani", "de ani"), c("lună", "luni", "de luni"), c("săptămână", "săptămâni", "de săptămâni"), c("zi", "zile", "de zile"), c("oră", "ore", "de ore"), c("minut", "minute", "de minute"), c("secundă", "secunde", "de secunde"), c("milisecundă", "milisecunde", "de milisecunde"), ","),
@@ -17386,12 +17391,12 @@ var Mt = { timeZone: "UTC" }, xt = (e) => (t) => {
17386
17391
  "миллисекунда",
17387
17392
  "миллисекунды"
17388
17393
  ]),
17389
- sq: a(s(["vit", "vjet"]), "muaj", "javë", "ditë", "orë", function(b) {
17390
- return "minut" + (b === 1 ? "ë" : "a");
17391
- }, function(b) {
17392
- return "sekond" + (b === 1 ? "ë" : "a");
17393
- }, function(b) {
17394
- return "milisekond" + (b === 1 ? "ë" : "a");
17394
+ sq: a(s(["vit", "vjet"]), "muaj", "javë", "ditë", "orë", function(y) {
17395
+ return "minut" + (y === 1 ? "ë" : "a");
17396
+ }, function(y) {
17397
+ return "sekond" + (y === 1 ? "ë" : "a");
17398
+ }, function(y) {
17399
+ return "milisekond" + (y === 1 ? "ë" : "a");
17395
17400
  }, ","),
17396
17401
  sr: d([
17397
17402
  "години",
@@ -17495,79 +17500,79 @@ var Mt = { timeZone: "UTC" }, xt = (e) => (t) => {
17495
17500
  "мілісекунди"
17496
17501
  ]),
17497
17502
  ur: a("سال", s(["مہینہ", "مہینے"]), s(["ہفتہ", "ہفتے"]), "دن", s(["گھنٹہ", "گھنٹے"]), "منٹ", "سیکنڈ", "ملی سیکنڈ"),
17498
- sk: a(function(b) {
17503
+ sk: a(function(y) {
17499
17504
  return [
17500
17505
  "rok",
17501
17506
  "roky",
17502
17507
  "roky",
17503
17508
  "rokov"
17504
- ][m(b)];
17505
- }, function(b) {
17509
+ ][m(y)];
17510
+ }, function(y) {
17506
17511
  return [
17507
17512
  "mesiac",
17508
17513
  "mesiace",
17509
17514
  "mesiace",
17510
17515
  "mesiacov"
17511
- ][m(b)];
17512
- }, function(b) {
17516
+ ][m(y)];
17517
+ }, function(y) {
17513
17518
  return [
17514
17519
  "týždeň",
17515
17520
  "týždne",
17516
17521
  "týždne",
17517
17522
  "týždňov"
17518
- ][m(b)];
17519
- }, function(b) {
17523
+ ][m(y)];
17524
+ }, function(y) {
17520
17525
  return [
17521
17526
  "deň",
17522
17527
  "dni",
17523
17528
  "dni",
17524
17529
  "dní"
17525
- ][m(b)];
17526
- }, function(b) {
17530
+ ][m(y)];
17531
+ }, function(y) {
17527
17532
  return [
17528
17533
  "hodina",
17529
17534
  "hodiny",
17530
17535
  "hodiny",
17531
17536
  "hodín"
17532
- ][m(b)];
17533
- }, function(b) {
17537
+ ][m(y)];
17538
+ }, function(y) {
17534
17539
  return [
17535
17540
  "minúta",
17536
17541
  "minúty",
17537
17542
  "minúty",
17538
17543
  "minút"
17539
- ][m(b)];
17540
- }, function(b) {
17544
+ ][m(y)];
17545
+ }, function(y) {
17541
17546
  return [
17542
17547
  "sekunda",
17543
17548
  "sekundy",
17544
17549
  "sekundy",
17545
17550
  "sekúnd"
17546
- ][m(b)];
17547
- }, function(b) {
17551
+ ][m(y)];
17552
+ }, function(y) {
17548
17553
  return [
17549
17554
  "milisekunda",
17550
17555
  "milisekundy",
17551
17556
  "milisekundy",
17552
17557
  "milisekúnd"
17553
- ][m(b)];
17558
+ ][m(y)];
17554
17559
  }, ","),
17555
- sl: a(function(b) {
17556
- return b % 10 === 1 ? "leto" : b % 100 === 2 ? "leti" : b % 100 === 3 || b % 100 === 4 || Math.floor(b) !== b && b % 100 <= 5 ? "leta" : "let";
17557
- }, function(b) {
17558
- return b % 10 === 1 ? "mesec" : b % 100 === 2 || Math.floor(b) !== b && b % 100 <= 5 ? "meseca" : b % 10 === 3 || b % 10 === 4 ? "mesece" : "mesecev";
17559
- }, function(b) {
17560
- return b % 10 === 1 ? "teden" : b % 10 === 2 || Math.floor(b) !== b && b % 100 <= 4 ? "tedna" : b % 10 === 3 || b % 10 === 4 ? "tedne" : "tednov";
17561
- }, function(b) {
17562
- return b % 100 === 1 ? "dan" : "dni";
17563
- }, function(b) {
17564
- return b % 10 === 1 ? "ura" : b % 100 === 2 ? "uri" : b % 10 === 3 || b % 10 === 4 || Math.floor(b) !== b ? "ure" : "ur";
17565
- }, function(b) {
17566
- return b % 10 === 1 ? "minuta" : b % 10 === 2 ? "minuti" : b % 10 === 3 || b % 10 === 4 || Math.floor(b) !== b && b % 100 <= 4 ? "minute" : "minut";
17567
- }, function(b) {
17568
- return b % 10 === 1 ? "sekunda" : b % 100 === 2 ? "sekundi" : b % 100 === 3 || b % 100 === 4 || Math.floor(b) !== b ? "sekunde" : "sekund";
17569
- }, function(b) {
17570
- return b % 10 === 1 ? "milisekunda" : b % 100 === 2 ? "milisekundi" : b % 100 === 3 || b % 100 === 4 || Math.floor(b) !== b ? "milisekunde" : "milisekund";
17560
+ sl: a(function(y) {
17561
+ return y % 10 === 1 ? "leto" : y % 100 === 2 ? "leti" : y % 100 === 3 || y % 100 === 4 || Math.floor(y) !== y && y % 100 <= 5 ? "leta" : "let";
17562
+ }, function(y) {
17563
+ return y % 10 === 1 ? "mesec" : y % 100 === 2 || Math.floor(y) !== y && y % 100 <= 5 ? "meseca" : y % 10 === 3 || y % 10 === 4 ? "mesece" : "mesecev";
17564
+ }, function(y) {
17565
+ return y % 10 === 1 ? "teden" : y % 10 === 2 || Math.floor(y) !== y && y % 100 <= 4 ? "tedna" : y % 10 === 3 || y % 10 === 4 ? "tedne" : "tednov";
17566
+ }, function(y) {
17567
+ return y % 100 === 1 ? "dan" : "dni";
17568
+ }, function(y) {
17569
+ return y % 10 === 1 ? "ura" : y % 100 === 2 ? "uri" : y % 10 === 3 || y % 10 === 4 || Math.floor(y) !== y ? "ure" : "ur";
17570
+ }, function(y) {
17571
+ return y % 10 === 1 ? "minuta" : y % 10 === 2 ? "minuti" : y % 10 === 3 || y % 10 === 4 || Math.floor(y) !== y && y % 100 <= 4 ? "minute" : "minut";
17572
+ }, function(y) {
17573
+ return y % 10 === 1 ? "sekunda" : y % 100 === 2 ? "sekundi" : y % 100 === 3 || y % 100 === 4 || Math.floor(y) !== y ? "sekunde" : "sekund";
17574
+ }, function(y) {
17575
+ return y % 10 === 1 ? "milisekunda" : y % 100 === 2 ? "milisekundi" : y % 100 === 3 || y % 100 === 4 || Math.floor(y) !== y ? "milisekunde" : "milisekund";
17571
17576
  }, ","),
17572
17577
  sv: l(["år", "år"], ["månad", "månader"], ["vecka", "veckor"], ["dag", "dagar"], ["timme", "timmar"], ["minut", "minuter"], ["sekund", "sekunder"], ["millisekund", "millisekunder"], ","),
17573
17578
  sw: r(l(["mwaka", "miaka"], ["mwezi", "miezi"], ["wiki", "wiki"], ["siku", "masiku"], ["saa", "masaa"], ["dakika", "dakika"], ["sekunde", "sekunde"], ["milisekunde", "milisekunde"]), { _numberFirst: !0 }),
@@ -17579,9 +17584,9 @@ var Mt = { timeZone: "UTC" }, xt = (e) => (t) => {
17579
17584
  zh_CN: a("年", "个月", "周", "天", "小时", "分钟", "秒", "毫秒"),
17580
17585
  zh_TW: a("年", "個月", "周", "天", "小時", "分鐘", "秒", "毫秒")
17581
17586
  };
17582
- function a(b, T, R, I, V, M, L, N, C) {
17587
+ function a(y, T, R, I, V, M, L, N, C) {
17583
17588
  var E = {
17584
- y: b,
17589
+ y,
17585
17590
  mo: T,
17586
17591
  w: R,
17587
17592
  d: I,
@@ -17592,62 +17597,62 @@ var Mt = { timeZone: "UTC" }, xt = (e) => (t) => {
17592
17597
  };
17593
17598
  return C && (E.decimal = C), E;
17594
17599
  }
17595
- function s(b) {
17600
+ function s(y) {
17596
17601
  return function(T) {
17597
- return T === 1 ? b[0] : b[1];
17602
+ return T === 1 ? y[0] : y[1];
17598
17603
  };
17599
17604
  }
17600
- function l(b, T, R, I, V, M, L, N, C) {
17601
- return a(s(b), s(T), s(R), s(I), s(V), s(M), s(L), s(N), C);
17605
+ function l(y, T, R, I, V, M, L, N, C) {
17606
+ return a(s(y), s(T), s(R), s(I), s(V), s(M), s(L), s(N), C);
17602
17607
  }
17603
- function c(b, T, R) {
17608
+ function c(y, T, R) {
17604
17609
  return function(I) {
17605
- if (I === 1) return b;
17610
+ if (I === 1) return y;
17606
17611
  if (Math.floor(I) !== I || I === 0) return T;
17607
17612
  var V = I % 100;
17608
17613
  return V >= 1 && V <= 19 ? T : R;
17609
17614
  };
17610
17615
  }
17611
- function u(b) {
17616
+ function u(y) {
17612
17617
  return function(T) {
17613
- return Math.floor(T) !== T ? b[2] : T % 100 >= 5 && T % 100 <= 20 || T % 10 >= 5 && T % 10 <= 9 || T % 10 === 0 ? b[0] : T % 10 === 1 ? b[1] : T > 1 ? b[2] : b[1];
17618
+ return Math.floor(T) !== T ? y[2] : T % 100 >= 5 && T % 100 <= 20 || T % 10 >= 5 && T % 10 <= 9 || T % 10 === 0 ? y[0] : T % 10 === 1 ? y[1] : T > 1 ? y[2] : y[1];
17614
17619
  };
17615
17620
  }
17616
- function d(b, T, R, I, V, M, L, N) {
17617
- return a(u(b), u(T), u(R), u(I), u(V), u(M), u(L), u(N), ",");
17621
+ function d(y, T, R, I, V, M, L, N) {
17622
+ return a(u(y), u(T), u(R), u(I), u(V), u(M), u(L), u(N), ",");
17618
17623
  }
17619
- function h(b) {
17620
- return b === 2 ? 1 : b > 2 && b < 11 ? 2 : 0;
17624
+ function h(y) {
17625
+ return y === 2 ? 1 : y > 2 && y < 11 ? 2 : 0;
17621
17626
  }
17622
- function f(b) {
17623
- return b === 1 ? 0 : Math.floor(b) !== b ? 1 : b % 10 >= 2 && b % 10 <= 4 && !(b % 100 > 10 && b % 100 < 20) ? 2 : 3;
17627
+ function f(y) {
17628
+ return y === 1 ? 0 : Math.floor(y) !== y ? 1 : y % 10 >= 2 && y % 10 <= 4 && !(y % 100 > 10 && y % 100 < 20) ? 2 : 3;
17624
17629
  }
17625
- function m(b) {
17626
- return b === 1 ? 0 : Math.floor(b) !== b ? 1 : b % 10 >= 2 && b % 10 <= 4 && b % 100 < 10 ? 2 : 3;
17630
+ function m(y) {
17631
+ return y === 1 ? 0 : Math.floor(y) !== y ? 1 : y % 10 >= 2 && y % 10 <= 4 && y % 100 < 10 ? 2 : 3;
17627
17632
  }
17628
- function p(b) {
17629
- return b === 1 || b % 10 === 1 && b % 100 > 20 ? 0 : Math.floor(b) !== b || b % 10 >= 2 && b % 100 > 20 || b % 10 >= 2 && b % 100 < 10 ? 1 : 2;
17633
+ function p(y) {
17634
+ return y === 1 || y % 10 === 1 && y % 100 > 20 ? 0 : Math.floor(y) !== y || y % 10 >= 2 && y % 100 > 20 || y % 10 >= 2 && y % 100 < 10 ? 1 : 2;
17630
17635
  }
17631
- function v(b) {
17632
- return b % 10 === 1 && b % 100 !== 11;
17636
+ function v(y) {
17637
+ return y % 10 === 1 && y % 100 !== 11;
17633
17638
  }
17634
- function y(b, T) {
17635
- return Object.prototype.hasOwnProperty.call(b, T);
17639
+ function b(y, T) {
17640
+ return Object.prototype.hasOwnProperty.call(y, T);
17636
17641
  }
17637
- function x(b) {
17638
- var T = [b.language];
17639
- if (y(b, "fallbacks")) if (n(b.fallbacks) && b.fallbacks.length) T = T.concat(b.fallbacks);
17642
+ function x(y) {
17643
+ var T = [y.language];
17644
+ if (b(y, "fallbacks")) if (n(y.fallbacks) && y.fallbacks.length) T = T.concat(y.fallbacks);
17640
17645
  else throw new Error("fallbacks must be an array with at least one element");
17641
17646
  for (var R = 0; R < T.length; R++) {
17642
17647
  var I = T[R];
17643
- if (y(b.languages, I)) return b.languages[I];
17644
- if (y(o, I)) return o[I];
17648
+ if (b(y.languages, I)) return y.languages[I];
17649
+ if (b(o, I)) return o[I];
17645
17650
  }
17646
17651
  throw new Error("No language found.");
17647
17652
  }
17648
- function w(b, T, R) {
17649
- var I = b.unitName, V = b.unitCount, M = R.spacer, L = R.maxDecimalPoints, N;
17650
- y(R, "decimal") ? N = R.decimal : y(T, "decimal") ? N = T.decimal : N = ".";
17653
+ function w(y, T, R) {
17654
+ var I = y.unitName, V = y.unitCount, M = R.spacer, L = R.maxDecimalPoints, N;
17655
+ b(R, "decimal") ? N = R.decimal : b(T, "decimal") ? N = T.decimal : N = ".";
17651
17656
  var C;
17652
17657
  "digitReplacements" in R ? C = R.digitReplacements : "_digitReplacements" in T && (C = T._digitReplacements);
17653
17658
  var E, P = (L === void 0 ? V : Math.floor(V * Math.pow(10, L)) / Math.pow(10, L)).toString();
@@ -17663,11 +17668,11 @@ var Mt = { timeZone: "UTC" }, xt = (e) => (t) => {
17663
17668
  var X = T[I], ee;
17664
17669
  return typeof X == "function" ? ee = X(V) : ee = X, T._numberFirst ? ee + M + E : E + M + ee;
17665
17670
  }
17666
- function S(b, T) {
17671
+ function A(y, T) {
17667
17672
  var R, I, V, M, L = T.units, N = T.unitMeasures, C = "largest" in T ? T.largest : 1 / 0;
17668
17673
  if (!L.length) return [];
17669
17674
  var E = {};
17670
- for (M = b, I = 0; I < L.length; I++) {
17675
+ for (M = y, I = 0; I < L.length; I++) {
17671
17676
  R = L[I];
17672
17677
  var P = N[R];
17673
17678
  V = I === L.length - 1 ? M / P : Math.floor(M / P), E[R] = V, M -= V * P;
@@ -17700,9 +17705,9 @@ var Mt = { timeZone: "UTC" }, xt = (e) => (t) => {
17700
17705
  });
17701
17706
  return ie;
17702
17707
  }
17703
- function k(b, T) {
17708
+ function k(y, T) {
17704
17709
  var R = x(T);
17705
- if (!b.length) {
17710
+ if (!y.length) {
17706
17711
  var I = T.units, V = I[I.length - 1];
17707
17712
  return w({
17708
17713
  unitName: V,
@@ -17710,15 +17715,15 @@ var Mt = { timeZone: "UTC" }, xt = (e) => (t) => {
17710
17715
  }, R, T);
17711
17716
  }
17712
17717
  var M = T.conjunction, L = T.serialComma, N;
17713
- y(T, "delimiter") ? N = T.delimiter : y(R, "delimiter") ? N = R.delimiter : N = ", ";
17714
- for (var C = [], E = 0; E < b.length; E++) C.push(w(b[E], R, T));
17715
- return !M || b.length === 1 ? C.join(N) : b.length === 2 ? C.join(M) : C.slice(0, -1).join(N) + (L ? "," : "") + M + C.slice(-1);
17718
+ b(T, "delimiter") ? N = T.delimiter : b(R, "delimiter") ? N = R.delimiter : N = ", ";
17719
+ for (var C = [], E = 0; E < y.length; E++) C.push(w(y[E], R, T));
17720
+ return !M || y.length === 1 ? C.join(N) : y.length === 2 ? C.join(M) : C.slice(0, -1).join(N) + (L ? "," : "") + M + C.slice(-1);
17716
17721
  }
17717
- function A(b) {
17722
+ function S(y) {
17718
17723
  var T = function(I, V) {
17719
17724
  I = Math.abs(I);
17720
17725
  var M = r({}, T, V || {});
17721
- return k(S(I, M), M);
17726
+ return k(A(I, M), M);
17722
17727
  };
17723
17728
  return r(T, {
17724
17729
  language: "en",
@@ -17746,15 +17751,15 @@ var Mt = { timeZone: "UTC" }, xt = (e) => (t) => {
17746
17751
  s: 1e3,
17747
17752
  ms: 1
17748
17753
  }
17749
- }, b);
17754
+ }, y);
17750
17755
  }
17751
- var D = r(A({}), {
17756
+ var D = r(S({}), {
17752
17757
  getSupportedLanguages: function() {
17753
17758
  var T = [];
17754
- for (var R in o) y(o, R) && R !== "gr" && T.push(R);
17759
+ for (var R in o) b(o, R) && R !== "gr" && T.push(R);
17755
17760
  return T;
17756
17761
  },
17757
- humanizer: A
17762
+ humanizer: S
17758
17763
  });
17759
17764
  typeof define == "function" && define.amd ? define(function() {
17760
17765
  return D;
@@ -20168,8 +20173,8 @@ var C7 = ({ layers: e, coordSystem: t, axes: r, numberFormat: n, parsingLocale:
20168
20173
  let p = 0;
20169
20174
  for (const v of e) {
20170
20175
  if (!v.dataLabels.showDataLabels && !v.dataLabels.showStackTotals && !v.dataLabels.showCategoryLabels) continue;
20171
- const y = d.resolve(v.geom, m);
20172
- if (y === null) continue;
20176
+ const b = d.resolve(v.geom, m);
20177
+ if (b === null) continue;
20173
20178
  const x = xE({
20174
20179
  layer: v,
20175
20180
  coordSystem: t,
@@ -20179,11 +20184,11 @@ var C7 = ({ layers: e, coordSystem: t, axes: r, numberFormat: n, parsingLocale:
20179
20184
  measureDataLabel: a,
20180
20185
  readers: s,
20181
20186
  formattingLocale: f,
20182
- percentageValueStrategy: y.getPercentageValueStrategy(v)
20183
- }), w = y.place(x);
20187
+ percentageValueStrategy: b.getPercentageValueStrategy(v)
20188
+ }), w = b.place(x);
20184
20189
  p += w.droppedCount;
20185
- for (const S of w.labels)
20186
- R7(S, m, c, u) || h.push(S);
20190
+ for (const A of w.labels)
20191
+ R7(A, m, c, u) || h.push(A);
20187
20192
  }
20188
20193
  return {
20189
20194
  labels: h,
@@ -20461,8 +20466,8 @@ var $p = class {
20461
20466
  if (this._x1 === null) this._append`M${this._x1 = e},${this._y1 = t}`;
20462
20467
  else if (d > bi) if (!(Math.abs(u * s - l * c) > bi) || !i) this._append`L${this._x1 = e},${this._y1 = t}`;
20463
20468
  else {
20464
- let h = r - o, f = n - a, m = s * s + l * l, p = h * h + f * f, v = Math.sqrt(m), y = Math.sqrt(d), x = i * Math.tan((kf - Math.acos((m + d - p) / (2 * v * y))) / 2), w = x / y, S = x / v;
20465
- Math.abs(w - 1) > bi && this._append`L${e + w * c},${t + w * u}`, this._append`A${i},${i},0,0,${+(u * h > c * f)},${this._x1 = e + S * s},${this._y1 = t + S * l}`;
20469
+ let h = r - o, f = n - a, m = s * s + l * l, p = h * h + f * f, v = Math.sqrt(m), b = Math.sqrt(d), x = i * Math.tan((kf - Math.acos((m + d - p) / (2 * v * b))) / 2), w = x / b, A = x / v;
20470
+ Math.abs(w - 1) > bi && this._append`L${e + w * c},${t + w * u}`, this._append`A${i},${i},0,0,${+(u * h > c * f)},${this._x1 = e + A * s},${this._y1 = t + A * l}`;
20466
20471
  }
20467
20472
  }
20468
20473
  arc(e, t, r, n, i, o) {
@@ -20561,15 +20566,15 @@ function jE(e, t, r) {
20561
20566
  var n = null, i = Qe(!0), o = null, a = jp, s = null, l = Wp(c);
20562
20567
  e = typeof e == "function" ? e : e === void 0 ? $E : Qe(+e), t = typeof t == "function" ? t : Qe(t === void 0 ? 0 : +t), r = typeof r == "function" ? r : r === void 0 ? WE : Qe(+r);
20563
20568
  function c(d) {
20564
- var h, f, m, p = (d = HE(d)).length, v, y = !1, x, w = new Array(p), S = new Array(p);
20569
+ var h, f, m, p = (d = HE(d)).length, v, b = !1, x, w = new Array(p), A = new Array(p);
20565
20570
  for (o == null && (s = a(x = l())), h = 0; h <= p; ++h) {
20566
- if (!(h < p && i(v = d[h], h, d)) === y) if (y = !y)
20571
+ if (!(h < p && i(v = d[h], h, d)) === b) if (b = !b)
20567
20572
  f = h, s.areaStart(), s.lineStart();
20568
20573
  else {
20569
- for (s.lineEnd(), s.lineStart(), m = h - 1; m >= f; --m) s.point(w[m], S[m]);
20574
+ for (s.lineEnd(), s.lineStart(), m = h - 1; m >= f; --m) s.point(w[m], A[m]);
20570
20575
  s.lineEnd(), s.areaEnd();
20571
20576
  }
20572
- y && (w[h] = +e(v, h, d), S[h] = +t(v, h, d), s.point(n ? +n(v, h, d) : w[h], r ? +r(v, h, d) : S[h]));
20577
+ b && (w[h] = +e(v, h, d), A[h] = +t(v, h, d), s.point(n ? +n(v, h, d) : w[h], r ? +r(v, h, d) : A[h]));
20573
20578
  }
20574
20579
  if (x) return s = null, x + "" || null;
20575
20580
  }
@@ -20763,27 +20768,27 @@ var MY = (function e(t) {
20763
20768
  })(0.5), Yp = (e) => e === "smooth" ? MY : jp, Kp = (e, t) => {
20764
20769
  const r = Yp(t.curve), n = jE().curve(r), i = Up().curve(r);
20765
20770
  if (e.mainAxis === "y") {
20766
- const o = (l) => Tr(xe(l) ?? 0), a = (l) => dr(l) ?? 0, s = (l) => Gt(l) ?? be(l) ?? 0;
20771
+ const o = (l) => Tr(ye(l) ?? 0), a = (l) => dr(l) ?? 0, s = (l) => Gt(l) ?? ve(l) ?? 0;
20767
20772
  n.y(o).x0(a).x1(s), i.y(o).x(s);
20768
20773
  } else {
20769
- const o = (l) => be(l) ?? 0, a = (l) => Tr($t(l) ?? 0), s = (l) => Tr(ht(l) ?? xe(l) ?? 0);
20774
+ const o = (l) => ve(l) ?? 0, a = (l) => Tr($t(l) ?? 0), s = (l) => Tr(ht(l) ?? ye(l) ?? 0);
20770
20775
  n.x(o).y0(a).y1(s), i.x(o).y(s);
20771
20776
  }
20772
20777
  if (t.missingValues === "gap") {
20773
- const o = (a) => be(a) !== null && xe(a) !== null;
20778
+ const o = (a) => ve(a) !== null && ye(a) !== null;
20774
20779
  n.defined(o), i.defined(o);
20775
20780
  }
20776
20781
  return {
20777
20782
  lineGenerator: i,
20778
20783
  areaGenerator: n
20779
20784
  };
20780
- }, Xp = (e, t) => t !== "connect" ? e : e.filter((r) => be(r) !== null && xe(r) !== null), qp = (e) => {
20781
- const t = Up().x((r) => be(r) ?? 0).y((r) => Tr(xe(r) ?? 0)).curve(Yp(e.curve));
20785
+ }, Xp = (e, t) => t !== "connect" ? e : e.filter((r) => ve(r) !== null && ye(r) !== null), qp = (e) => {
20786
+ const t = Up().x((r) => ve(r) ?? 0).y((r) => Tr(ye(r) ?? 0)).curve(Yp(e.curve));
20782
20787
  return e.missingValues === "gap" && t.defined(qE), t;
20783
20788
  }, EY = (e) => {
20784
- const t = jE().x((r) => be(r) ?? 0).y0(() => 1).y1((r) => Tr(xe(r) ?? 0)).curve(Yp(e.curve));
20789
+ const t = jE().x((r) => ve(r) ?? 0).y0(() => 1).y1((r) => Tr(ye(r) ?? 0)).curve(Yp(e.curve));
20785
20790
  return e.missingValues === "gap" && t.defined(qE), t;
20786
- }, Qp = (e, t) => t !== "connect" ? e : e.filter((r) => be(r) !== null && xe(r) !== null), qE = (e) => be(e) !== null && xe(e) !== null, Jp = {
20791
+ }, Qp = (e, t) => t !== "connect" ? e : e.filter((r) => ve(r) !== null && ye(r) !== null), qE = (e) => ve(e) !== null && ye(e) !== null, Jp = {
20787
20792
  circle: UE,
20788
20793
  square: gY,
20789
20794
  diamond: pY,
@@ -21418,10 +21423,10 @@ function h9(e, t) {
21418
21423
  u++;
21419
21424
  continue;
21420
21425
  }
21421
- const v = s ? (m + p) / 2 : (h + f) / 2, y = l?.[u] ?? v;
21426
+ const v = s ? (m + p) / 2 : (h + f) / 2, b = l?.[u] ?? v;
21422
21427
  c.push({
21423
21428
  mainMid: v,
21424
- bandCenter: y,
21429
+ bandCenter: b,
21425
21430
  entry: {
21426
21431
  pointIndex: u,
21427
21432
  xMin: Math.min(h, f),
@@ -21478,17 +21483,17 @@ function uk(e, t) {
21478
21483
  function p9(e, t, r) {
21479
21484
  const { data: n, spatialKind: i, position: o } = e, a = Wa(n, O.x), s = Wa(n, O.y);
21480
21485
  if (!a || !s) return [];
21481
- const l = t === "y", c = i === "spanned-buckets", u = Ot(o), d = l ? s : a, h = Wa(n, l ? O.yBand : O.xBand) ?? d, f = l ? a : s, m = Wa(n, l ? O.xMin : O.yMin), p = Wa(n, l ? O.xMax : O.yMax), v = n.hasVariable(we.group) ? n.getValues(we.group, { type: "categorical" }) : null, y = c ? null : new v9(y9(e)), x = /* @__PURE__ */ new Map(), w = [];
21482
- let S = -1;
21486
+ const l = t === "y", c = i === "spanned-buckets", u = Ot(o), d = l ? s : a, h = Wa(n, l ? O.yBand : O.xBand) ?? d, f = l ? a : s, m = Wa(n, l ? O.xMin : O.yMin), p = Wa(n, l ? O.xMax : O.yMax), v = n.hasVariable(we.group) ? n.getValues(we.group, { type: "categorical" }) : null, b = c ? null : new v9(y9(e)), x = /* @__PURE__ */ new Map(), w = [];
21487
+ let A = -1;
21483
21488
  for (const k of n) {
21484
- S += 1;
21485
- const A = v?.[S] ?? null, D = b9(x, A), b = h[S], T = m?.[S], R = p?.[S], I = g9(f[S], T, R, u);
21486
- if (!H(b) || I === null) {
21487
- y?.skip(A);
21489
+ A += 1;
21490
+ const S = v?.[A] ?? null, D = b9(x, S), y = h[A], T = m?.[A], R = p?.[A], I = g9(f[A], T, R, u);
21491
+ if (!H(y) || I === null) {
21492
+ b?.skip(S);
21488
21493
  continue;
21489
21494
  }
21490
- const V = d[S] ?? b, M = {
21491
- pointIndex: S,
21495
+ const V = d[A] ?? y, M = {
21496
+ pointIndex: A,
21492
21497
  ...l ? {
21493
21498
  x: I,
21494
21499
  y: V
@@ -21496,7 +21501,7 @@ function p9(e, t, r) {
21496
21501
  x: V,
21497
21502
  y: I
21498
21503
  },
21499
- groupKey: A,
21504
+ groupKey: S,
21500
21505
  paintOrder: D,
21501
21506
  ...i === "filled-buckets" && H(T) && { fill: x9(T, I) },
21502
21507
  ...c && { extent: w9(I, T, R) },
@@ -21504,15 +21509,15 @@ function p9(e, t, r) {
21504
21509
  nextAt: Bb,
21505
21510
  observation: k
21506
21511
  };
21507
- y?.append(A, {
21512
+ b?.append(S, {
21508
21513
  entry: M,
21509
21514
  at: w.length
21510
21515
  }), w.push({
21511
- main: b,
21516
+ main: y,
21512
21517
  entry: M
21513
21518
  });
21514
21519
  }
21515
- return r === "polar" && y?.close(), w;
21520
+ return r === "polar" && b?.close(), w;
21516
21521
  }
21517
21522
  function Wa(e, t) {
21518
21523
  return e.hasVariable(t) ? e.getValues(t, { type: "numeric" }) : null;
@@ -21637,16 +21642,16 @@ function z(e) {
21637
21642
  }
21638
21643
  var M9 = (3 + 16 * Le) * Le, E9 = (2 + 12 * Le) * Le, k9 = (9 + 64 * Le) * Le * Le, wo = z(4), Vb = z(8), Fb = z(12), Hb = z(16), _t = z(4);
21639
21644
  function P9(e, t, r, n, i, o, a) {
21640
- let s, l, c, u, d, h, f, m, p, v, y, x, w, S, k, A, D, b;
21645
+ let s, l, c, u, d, h, f, m, p, v, b, x, w, A, k, S, D, y;
21641
21646
  const T = e - i, R = r - i, I = t - o, V = n - o;
21642
- S = T * V, h = wt * T, f = h - (h - T), m = T - f, h = wt * V, p = h - (h - V), v = V - p, k = m * v - (S - f * p - m * p - f * v), A = I * R, h = wt * I, f = h - (h - I), m = I - f, h = wt * R, p = h - (h - R), v = R - p, D = m * v - (A - f * p - m * p - f * v), y = k - D, d = k - y, wo[0] = k - (y + d) + (d - D), x = S + y, d = x - S, w = S - (x - d) + (y - d), y = w - A, d = w - y, wo[1] = w - (y + d) + (d - A), b = x + y, d = b - x, wo[2] = x - (b - d) + (y - d), wo[3] = b;
21647
+ A = T * V, h = wt * T, f = h - (h - T), m = T - f, h = wt * V, p = h - (h - V), v = V - p, k = m * v - (A - f * p - m * p - f * v), S = I * R, h = wt * I, f = h - (h - I), m = I - f, h = wt * R, p = h - (h - R), v = R - p, D = m * v - (S - f * p - m * p - f * v), b = k - D, d = k - b, wo[0] = k - (b + d) + (d - D), x = A + b, d = x - A, w = A - (x - d) + (b - d), b = w - S, d = w - b, wo[1] = w - (b + d) + (d - S), y = x + b, d = y - x, wo[2] = x - (y - d) + (b - d), wo[3] = y;
21643
21648
  let M = T9(4, wo), L = E9 * a;
21644
21649
  if (M >= L || -M >= L || (d = e - T, s = e - (T + d) + (d - i), d = r - R, c = r - (R + d) + (d - i), d = t - I, l = t - (I + d) + (d - o), d = n - V, u = n - (V + d) + (d - o), s === 0 && l === 0 && c === 0 && u === 0) || (L = k9 * a + S9 * Math.abs(M), M += T * u + V * s - (I * c + R * l), M >= L || -M >= L)) return M;
21645
- S = s * V, h = wt * s, f = h - (h - s), m = s - f, h = wt * V, p = h - (h - V), v = V - p, k = m * v - (S - f * p - m * p - f * v), A = l * R, h = wt * l, f = h - (h - l), m = l - f, h = wt * R, p = h - (h - R), v = R - p, D = m * v - (A - f * p - m * p - f * v), y = k - D, d = k - y, _t[0] = k - (y + d) + (d - D), x = S + y, d = x - S, w = S - (x - d) + (y - d), y = w - A, d = w - y, _t[1] = w - (y + d) + (d - A), b = x + y, d = b - x, _t[2] = x - (b - d) + (y - d), _t[3] = b;
21650
+ A = s * V, h = wt * s, f = h - (h - s), m = s - f, h = wt * V, p = h - (h - V), v = V - p, k = m * v - (A - f * p - m * p - f * v), S = l * R, h = wt * l, f = h - (h - l), m = l - f, h = wt * R, p = h - (h - R), v = R - p, D = m * v - (S - f * p - m * p - f * v), b = k - D, d = k - b, _t[0] = k - (b + d) + (d - D), x = A + b, d = x - A, w = A - (x - d) + (b - d), b = w - S, d = w - b, _t[1] = w - (b + d) + (d - S), y = x + b, d = y - x, _t[2] = x - (y - d) + (b - d), _t[3] = y;
21646
21651
  const N = dh(4, wo, 4, _t, Vb);
21647
- S = T * u, h = wt * T, f = h - (h - T), m = T - f, h = wt * u, p = h - (h - u), v = u - p, k = m * v - (S - f * p - m * p - f * v), A = I * c, h = wt * I, f = h - (h - I), m = I - f, h = wt * c, p = h - (h - c), v = c - p, D = m * v - (A - f * p - m * p - f * v), y = k - D, d = k - y, _t[0] = k - (y + d) + (d - D), x = S + y, d = x - S, w = S - (x - d) + (y - d), y = w - A, d = w - y, _t[1] = w - (y + d) + (d - A), b = x + y, d = b - x, _t[2] = x - (b - d) + (y - d), _t[3] = b;
21652
+ A = T * u, h = wt * T, f = h - (h - T), m = T - f, h = wt * u, p = h - (h - u), v = u - p, k = m * v - (A - f * p - m * p - f * v), S = I * c, h = wt * I, f = h - (h - I), m = I - f, h = wt * c, p = h - (h - c), v = c - p, D = m * v - (S - f * p - m * p - f * v), b = k - D, d = k - b, _t[0] = k - (b + d) + (d - D), x = A + b, d = x - A, w = A - (x - d) + (b - d), b = w - S, d = w - b, _t[1] = w - (b + d) + (d - S), y = x + b, d = y - x, _t[2] = x - (y - d) + (b - d), _t[3] = y;
21648
21653
  const C = dh(N, Vb, 4, _t, Fb);
21649
- S = s * u, h = wt * s, f = h - (h - s), m = s - f, h = wt * u, p = h - (h - u), v = u - p, k = m * v - (S - f * p - m * p - f * v), A = l * c, h = wt * l, f = h - (h - l), m = l - f, h = wt * c, p = h - (h - c), v = c - p, D = m * v - (A - f * p - m * p - f * v), y = k - D, d = k - y, _t[0] = k - (y + d) + (d - D), x = S + y, d = x - S, w = S - (x - d) + (y - d), y = w - A, d = w - y, _t[1] = w - (y + d) + (d - A), b = x + y, d = b - x, _t[2] = x - (b - d) + (y - d), _t[3] = b;
21654
+ A = s * u, h = wt * s, f = h - (h - s), m = s - f, h = wt * u, p = h - (h - u), v = u - p, k = m * v - (A - f * p - m * p - f * v), S = l * c, h = wt * l, f = h - (h - l), m = l - f, h = wt * c, p = h - (h - c), v = c - p, D = m * v - (S - f * p - m * p - f * v), b = k - D, d = k - b, _t[0] = k - (b + d) + (d - D), x = A + b, d = x - A, w = A - (x - d) + (b - d), b = w - S, d = w - b, _t[1] = w - (b + d) + (d - S), y = x + b, d = y - x, _t[2] = x - (y - d) + (b - d), _t[3] = y;
21650
21655
  const E = dh(C, Fb, 4, _t, Hb);
21651
21656
  return Hb[E - 1];
21652
21657
  }
@@ -21683,20 +21688,20 @@ var cge = (7 + 56 * Le) * Le, uge = (3 + 28 * Le) * Le, dge = (26 + 288 * Le) *
21683
21688
  const I = hh(d, h, t[2 * T], t[2 * T + 1]);
21684
21689
  I < R && (f = T, R = I);
21685
21690
  }
21686
- const v = t[2 * f], y = t[2 * f + 1];
21691
+ const v = t[2 * f], b = t[2 * f + 1];
21687
21692
  for (let T = 0, R = 1 / 0; T < a; T++) {
21688
21693
  if (T === f) continue;
21689
- const I = hh(v, y, t[2 * T], t[2 * T + 1]);
21694
+ const I = hh(v, b, t[2 * T], t[2 * T + 1]);
21690
21695
  I < R && I > 0 && (m = T, R = I);
21691
21696
  }
21692
- let x = t[2 * m], w = t[2 * m + 1], S = 1 / 0;
21697
+ let x = t[2 * m], w = t[2 * m + 1], A = 1 / 0;
21693
21698
  for (let T = 0; T < a; T++) {
21694
21699
  if (T === f || T === m) continue;
21695
- const R = I9(v, y, x, w, t[2 * T], t[2 * T + 1]);
21696
- R < S && (p = T, S = R);
21700
+ const R = I9(v, b, x, w, t[2 * T], t[2 * T + 1]);
21701
+ R < A && (p = T, A = R);
21697
21702
  }
21698
- let k = t[2 * p], A = t[2 * p + 1];
21699
- if (S === 1 / 0) {
21703
+ let k = t[2 * p], S = t[2 * p + 1];
21704
+ if (A === 1 / 0) {
21700
21705
  for (let I = 0; I < a; I++) this._dists[I] = t[2 * I] - t[0] || t[2 * I + 1] - t[1];
21701
21706
  Io(this._ids, this._dists, 0, a - 1);
21702
21707
  const T = new Uint32Array(a);
@@ -21708,16 +21713,16 @@ var cge = (7 + 56 * Le) * Le, uge = (3 + 28 * Le) * Le, dge = (26 + 288 * Le) *
21708
21713
  this.hull = T.subarray(0, R), this.triangles = /* @__PURE__ */ new Uint32Array(0), this.halfedges = /* @__PURE__ */ new Int32Array(0);
21709
21714
  return;
21710
21715
  }
21711
- if (Ql(v, y, x, w, k, A) < 0) {
21716
+ if (Ql(v, b, x, w, k, S) < 0) {
21712
21717
  const T = m, R = x, I = w;
21713
- m = p, x = k, w = A, p = T, k = R, A = I;
21718
+ m = p, x = k, w = S, p = T, k = R, S = I;
21714
21719
  }
21715
- const D = R9(v, y, x, w, k, A);
21720
+ const D = R9(v, b, x, w, k, S);
21716
21721
  this._cx = D.x, this._cy = D.y;
21717
21722
  for (let T = 0; T < a; T++) this._dists[T] = hh(t[2 * T], t[2 * T + 1], D.x, D.y);
21718
21723
  Io(this._ids, this._dists, 0, a - 1), this._hullStart = f;
21719
- let b = 3;
21720
- n[f] = r[p] = m, n[m] = r[f] = p, n[p] = r[m] = f, i[f] = 0, i[m] = 1, i[p] = 2, o.fill(-1), o[this._hashKey(v, y)] = f, o[this._hashKey(x, w)] = m, o[this._hashKey(k, A)] = p, this.trianglesLen = 0, this._addTriangle(f, m, p, -1, -1, -1);
21724
+ let y = 3;
21725
+ n[f] = r[p] = m, n[m] = r[f] = p, n[p] = r[m] = f, i[f] = 0, i[m] = 1, i[p] = 2, o.fill(-1), o[this._hashKey(v, b)] = f, o[this._hashKey(x, w)] = m, o[this._hashKey(k, S)] = p, this.trianglesLen = 0, this._addTriangle(f, m, p, -1, -1, -1);
21721
21726
  for (let T = 0, R = 0, I = 0; T < this._ids.length; T++) {
21722
21727
  const V = this._ids[T], M = t[2 * V], L = t[2 * V + 1];
21723
21728
  if (T > 0 && Math.abs(M - R) <= Gb && Math.abs(L - I) <= Gb || (R = M, I = L, V === f || V === m || V === p)) continue;
@@ -21733,16 +21738,16 @@ var cge = (7 + 56 * Le) * Le, uge = (3 + 28 * Le) * Le, dge = (26 + 288 * Le) *
21733
21738
  }
21734
21739
  if (C === -1) continue;
21735
21740
  let P = this._addTriangle(C, V, n[C], -1, -1, i[C]);
21736
- i[V] = this._legalize(P + 2), i[C] = P, b++;
21741
+ i[V] = this._legalize(P + 2), i[C] = P, y++;
21737
21742
  let _ = n[C];
21738
21743
  for (; E = n[_], Ql(M, L, t[2 * _], t[2 * _ + 1], t[2 * E], t[2 * E + 1]) < 0; )
21739
- P = this._addTriangle(_, V, E, i[V], -1, i[_]), i[V] = this._legalize(P + 2), n[_] = _, b--, _ = E;
21744
+ P = this._addTriangle(_, V, E, i[V], -1, i[_]), i[V] = this._legalize(P + 2), n[_] = _, y--, _ = E;
21740
21745
  if (C === N) for (; E = r[C], Ql(M, L, t[2 * E], t[2 * E + 1], t[2 * C], t[2 * C + 1]) < 0; )
21741
- P = this._addTriangle(E, V, C, -1, i[C], i[E]), this._legalize(P + 2), i[E] = P, n[C] = C, b--, C = E;
21746
+ P = this._addTriangle(E, V, C, -1, i[C], i[E]), this._legalize(P + 2), i[E] = P, n[C] = C, y--, C = E;
21742
21747
  this._hullStart = r[V] = C, n[C] = r[_] = V, n[V] = _, o[this._hashKey(M, L)] = V, o[this._hashKey(t[2 * C], t[2 * C + 1])] = C;
21743
21748
  }
21744
- this.hull = new Uint32Array(b);
21745
- for (let T = 0, R = this._hullStart; T < b; T++)
21749
+ this.hull = new Uint32Array(y);
21750
+ for (let T = 0, R = this._hullStart; T < y; T++)
21746
21751
  this.hull[T] = R, R = n[R];
21747
21752
  this.triangles = this._triangles.subarray(0, this.trianglesLen), this.halfedges = this._halfedges.subarray(0, this.trianglesLen);
21748
21753
  }
@@ -21774,8 +21779,8 @@ var cge = (7 + 56 * Le) * Le, uge = (3 + 28 * Le) * Le, dge = (26 + 288 * Le) *
21774
21779
  } while (x !== this._hullStart);
21775
21780
  }
21776
21781
  this._link(t, v), this._link(s, n[a]), this._link(a, d);
21777
- const y = c + (s + 1) % 3;
21778
- o < Jl.length && (Jl[o++] = y);
21782
+ const b = c + (s + 1) % 3;
21783
+ o < Jl.length && (Jl[o++] = b);
21779
21784
  } else {
21780
21785
  if (o === 0) break;
21781
21786
  t = Jl[--o];
@@ -21907,21 +21912,21 @@ var Wb = 1e-6, _i = class {
21907
21912
  const { delaunay: { points: e, hull: t, triangles: r }, vectors: n } = this;
21908
21913
  let i, o;
21909
21914
  const a = this.circumcenters = this._circumcenters.subarray(0, r.length / 3 * 2);
21910
- for (let m = 0, p = 0, v = r.length, y, x; m < v; m += 3, p += 2) {
21911
- const w = r[m] * 2, S = r[m + 1] * 2, k = r[m + 2] * 2, A = e[w], D = e[w + 1], b = e[S], T = e[S + 1], R = e[k], I = e[k + 1], V = b - A, M = T - D, L = R - A, N = I - D, C = (V * N - M * L) * 2;
21915
+ for (let m = 0, p = 0, v = r.length, b, x; m < v; m += 3, p += 2) {
21916
+ const w = r[m] * 2, A = r[m + 1] * 2, k = r[m + 2] * 2, S = e[w], D = e[w + 1], y = e[A], T = e[A + 1], R = e[k], I = e[k + 1], V = y - S, M = T - D, L = R - S, N = I - D, C = (V * N - M * L) * 2;
21912
21917
  if (Math.abs(C) < 1e-9) {
21913
21918
  if (i === void 0) {
21914
21919
  i = o = 0;
21915
21920
  for (const P of t) i += e[P * 2], o += e[P * 2 + 1];
21916
21921
  i /= t.length, o /= t.length;
21917
21922
  }
21918
- const E = 1e9 * Math.sign((i - A) * N - (o - D) * L);
21919
- y = (A + R) / 2 - E * N, x = (D + I) / 2 + E * L;
21923
+ const E = 1e9 * Math.sign((i - S) * N - (o - D) * L);
21924
+ b = (S + R) / 2 - E * N, x = (D + I) / 2 + E * L;
21920
21925
  } else {
21921
21926
  const E = 1 / C, P = V * V + M * M, _ = L * L + N * N;
21922
- y = A + (N * P - M * _) * E, x = D + (V * _ - L * P) * E;
21927
+ b = S + (N * P - M * _) * E, x = D + (V * _ - L * P) * E;
21923
21928
  }
21924
- a[p] = y, a[p + 1] = x;
21929
+ a[p] = b, a[p + 1] = x;
21925
21930
  }
21926
21931
  let s = t[t.length - 1], l, c = s * 4, u, d = e[2 * s], h, f = e[2 * s + 1];
21927
21932
  n.fill(0);
@@ -21934,8 +21939,8 @@ var Wb = 1e-6, _i = class {
21934
21939
  for (let c = 0, u = r.length; c < u; ++c) {
21935
21940
  const d = r[c];
21936
21941
  if (d < c) continue;
21937
- const h = Math.floor(c / 3) * 2, f = Math.floor(d / 3) * 2, m = o[h], p = o[h + 1], v = o[f], y = o[f + 1];
21938
- this._renderSegment(m, p, v, y, e);
21942
+ const h = Math.floor(c / 3) * 2, f = Math.floor(d / 3) * 2, m = o[h], p = o[h + 1], v = o[f], b = o[f + 1];
21943
+ this._renderSegment(m, p, v, b, e);
21939
21944
  }
21940
21945
  let s, l = i[i.length - 1];
21941
21946
  for (let c = 0; c < i.length; ++c) {
@@ -22024,15 +22029,15 @@ var Wb = 1e-6, _i = class {
22024
22029
  if (i = a, o = s, a = t[h], s = t[h + 1], l = c, c = this._regioncode(a, s), l === 0 && c === 0)
22025
22030
  u = d, d = 0, n ? n.push(a, s) : n = [a, s];
22026
22031
  else {
22027
- let f, m, p, v, y;
22032
+ let f, m, p, v, b;
22028
22033
  if (l === 0) {
22029
22034
  if ((f = this._clipSegment(i, o, a, s, l, c)) === null) continue;
22030
- [m, p, v, y] = f;
22035
+ [m, p, v, b] = f;
22031
22036
  } else {
22032
22037
  if ((f = this._clipSegment(a, s, i, o, c, l)) === null) continue;
22033
- [v, y, m, p] = f, u = d, d = this._edgecode(m, p), u && d && this._edge(e, u, d, n, n.length), n ? n.push(m, p) : n = [m, p];
22038
+ [v, b, m, p] = f, u = d, d = this._edgecode(m, p), u && d && this._edge(e, u, d, n, n.length), n ? n.push(m, p) : n = [m, p];
22034
22039
  }
22035
- u = d, d = this._edgecode(v, y), u && d && this._edge(e, u, d, n, n.length), n ? n.push(v, y) : n = [v, y];
22040
+ u = d, d = this._edgecode(v, b), u && d && this._edge(e, u, d, n, n.length), n ? n.push(v, b) : n = [v, b];
22036
22041
  }
22037
22042
  if (n)
22038
22043
  u = d, d = this._edgecode(n[0], n[1]), u && d && this._edge(e, u, d, n, n.length);
@@ -23211,8 +23216,8 @@ var id = 0.5, WK = 0.3, jK = 0.4, UK = 10, zK = ({ layer: e, coordSystem: t, sca
23211
23216
  }
23212
23217
  return rg(n, t);
23213
23218
  }, tX = (e, t) => {
23214
- if (t === "main-axis") return be(e);
23215
- const r = dp(e) ?? be(e);
23219
+ if (t === "main-axis") return ve(e);
23220
+ const r = dp(e) ?? ve(e);
23216
23221
  return r === null ? null : t === "value-descending" ? -r : r;
23217
23222
  }, rX = (e, t, r) => {
23218
23223
  const n = er(e.data, e.mapping, e.id), i = /* @__PURE__ */ new Map();
@@ -23980,11 +23985,11 @@ var CX = (e, t) => ({
23980
23985
  origin: w.origin,
23981
23986
  state: m
23982
23987
  };
23983
- const S = xi(e.defaults, h, f, m);
23984
- if (S !== void 0) return {
23985
- value: Mo(S, h, t),
23988
+ const A = xi(e.defaults, h, f, m);
23989
+ if (A !== void 0) return {
23990
+ value: Mo(A, h, t),
23986
23991
  tier: "default",
23987
- origin: S.origin,
23992
+ origin: A.origin,
23988
23993
  state: m
23989
23994
  };
23990
23995
  }
@@ -23999,11 +24004,11 @@ var CX = (e, t) => ({
23999
24004
  value: v,
24000
24005
  tier: "data"
24001
24006
  };
24002
- const y = xi(e.defaults, h, f, void 0);
24003
- if (y !== void 0) return {
24004
- value: Mo(y, h, t),
24007
+ const b = xi(e.defaults, h, f, void 0);
24008
+ if (b !== void 0) return {
24009
+ value: Mo(b, h, t),
24005
24010
  tier: "default",
24006
- origin: y.origin
24011
+ origin: b.origin
24007
24012
  };
24008
24013
  const x = o[h];
24009
24014
  return x !== void 0 ? {
@@ -24015,8 +24020,8 @@ var CX = (e, t) => ({
24015
24020
  };
24016
24021
  }, l = (h, f, m) => {
24017
24022
  if (m !== void 0) {
24018
- const y = Zl(e.overrides, h, f, m, t);
24019
- if (y !== void 0) return y;
24023
+ const b = Zl(e.overrides, h, f, m, t);
24024
+ if (b !== void 0) return b;
24020
24025
  const x = Zl(e.defaults, h, f, m, t);
24021
24026
  if (x !== void 0) return x;
24022
24027
  }
@@ -24032,9 +24037,9 @@ var CX = (e, t) => ({
24032
24037
  collectAll: (h, f, m) => {
24033
24038
  const p = [];
24034
24039
  for (const v of [e.defaults, e.overrides]) {
24035
- const y = v[h]?.[m ?? "stateless"];
24036
- if (y !== void 0)
24037
- for (const x of y) {
24040
+ const b = v[h]?.[m ?? "stateless"];
24041
+ if (b !== void 0)
24042
+ for (const x of b) {
24038
24043
  const w = x.declarations[h];
24039
24044
  w !== void 0 && Nk(x, f) && p.push(Fn(w, t));
24040
24045
  }
@@ -24052,8 +24057,8 @@ var CX = (e, t) => ({
24052
24057
  resolveState: (h, f) => {
24053
24058
  const m = {};
24054
24059
  for (const p of Object.keys(r)) {
24055
- const v = xi(e.overrides, p, f, h) ?? xi(e.defaults, p, f, h), y = Mo(v, p, t);
24056
- y !== void 0 && Object.assign(m, { [p]: y });
24060
+ const v = xi(e.overrides, p, f, h) ?? xi(e.defaults, p, f, h), b = Mo(v, p, t);
24061
+ b !== void 0 && Object.assign(m, { [p]: b });
24057
24062
  }
24058
24063
  return m;
24059
24064
  },
@@ -24990,19 +24995,19 @@ function uP(e, t) {
24990
24995
  delta: 0,
24991
24996
  timestamp: 0,
24992
24997
  isProcessing: !1
24993
- }, o = () => r = !0, a = ec.reduce((w, S) => (w[S] = Dq(o, t ? S : void 0), w), {}), { setup: s, read: l, resolveKeyframes: c, preUpdate: u, update: d, preRender: h, render: f, postRender: m } = a, p = () => {
24998
+ }, o = () => r = !0, a = ec.reduce((w, A) => (w[A] = Dq(o, t ? A : void 0), w), {}), { setup: s, read: l, resolveKeyframes: c, preUpdate: u, update: d, preRender: h, render: f, postRender: m } = a, p = () => {
24994
24999
  const w = En.useManualTiming ? i.timestamp : performance.now();
24995
25000
  r = !1, En.useManualTiming || (i.delta = n ? 1e3 / 60 : Math.max(Math.min(w - i.timestamp, Oq), 1)), i.timestamp = w, i.isProcessing = !0, s.process(i), l.process(i), c.process(i), u.process(i), d.process(i), h.process(i), f.process(i), m.process(i), i.isProcessing = !1, r && t && (n = !1, e(p));
24996
25001
  }, v = () => {
24997
25002
  r = !0, n = !0, i.isProcessing || e(p);
24998
25003
  };
24999
25004
  return {
25000
- schedule: ec.reduce((w, S) => {
25001
- const k = a[S];
25002
- return w[S] = (A, D = !1, b = !1) => (r || v(), k.schedule(A, D, b)), w;
25005
+ schedule: ec.reduce((w, A) => {
25006
+ const k = a[A];
25007
+ return w[A] = (S, D = !1, y = !1) => (r || v(), k.schedule(S, D, y)), w;
25003
25008
  }, {}),
25004
25009
  cancel: (w) => {
25005
- for (let S = 0; S < ec.length; S++) a[ec[S]].cancel(w);
25010
+ for (let A = 0; A < ec.length; A++) a[ec[A]].cancel(w);
25006
25011
  },
25007
25012
  state: i,
25008
25013
  steps: a
@@ -25362,45 +25367,45 @@ function Us(e = Ue.visualDuration, t = Ue.bounce) {
25362
25367
  }, { stiffness: l, damping: c, mass: u, duration: d, velocity: h, isResolvedFromDuration: f } = fQ({
25363
25368
  ...r,
25364
25369
  velocity: -cr(r.velocity || 0)
25365
- }), m = h || 0, p = c / (2 * Math.sqrt(l * u)), v = a - o, y = cr(Math.sqrt(l / u)), x = Math.abs(v) < 5;
25370
+ }), m = h || 0, p = c / (2 * Math.sqrt(l * u)), v = a - o, b = cr(Math.sqrt(l / u)), x = Math.abs(v) < 5;
25366
25371
  n || (n = x ? Ue.restSpeed.granular : Ue.restSpeed.default), i || (i = x ? Ue.restDelta.granular : Ue.restDelta.default);
25367
25372
  let w;
25368
25373
  if (p < 1) {
25369
- const k = Vf(y, p);
25370
- w = (A) => {
25371
- const D = Math.exp(-p * y * A);
25372
- return a - D * ((m + p * y * v) / k * Math.sin(k * A) + v * Math.cos(k * A));
25374
+ const k = Vf(b, p);
25375
+ w = (S) => {
25376
+ const D = Math.exp(-p * b * S);
25377
+ return a - D * ((m + p * b * v) / k * Math.sin(k * S) + v * Math.cos(k * S));
25373
25378
  };
25374
- } else if (p === 1) w = (k) => a - Math.exp(-y * k) * (v + (m + y * v) * k);
25379
+ } else if (p === 1) w = (k) => a - Math.exp(-b * k) * (v + (m + b * v) * k);
25375
25380
  else {
25376
- const k = y * Math.sqrt(p * p - 1);
25377
- w = (A) => {
25378
- const D = Math.exp(-p * y * A), b = Math.min(k * A, 300);
25379
- return a - D * ((m + p * y * v) * Math.sinh(b) + k * v * Math.cosh(b)) / k;
25381
+ const k = b * Math.sqrt(p * p - 1);
25382
+ w = (S) => {
25383
+ const D = Math.exp(-p * b * S), y = Math.min(k * S, 300);
25384
+ return a - D * ((m + p * b * v) * Math.sinh(y) + k * v * Math.cosh(y)) / k;
25380
25385
  };
25381
25386
  }
25382
- const S = {
25387
+ const A = {
25383
25388
  calculatedDuration: f && d || null,
25384
25389
  next: (k) => {
25385
- const A = w(k);
25390
+ const S = w(k);
25386
25391
  if (f)
25387
25392
  s.done = k >= d;
25388
25393
  else {
25389
25394
  let D = k === 0 ? m : 0;
25390
- p < 1 && (D = k === 0 ? qt(m) : SP(w, k, A));
25391
- const b = Math.abs(D) <= n, T = Math.abs(a - A) <= i;
25392
- s.done = b && T;
25395
+ p < 1 && (D = k === 0 ? qt(m) : SP(w, k, S));
25396
+ const y = Math.abs(D) <= n, T = Math.abs(a - S) <= i;
25397
+ s.done = y && T;
25393
25398
  }
25394
- return s.value = s.done ? a : A, s;
25399
+ return s.value = s.done ? a : S, s;
25395
25400
  },
25396
25401
  toString: () => {
25397
- const k = Math.min(vg(S), wP), A = xP((D) => S.next(k * D).value, k, 30);
25398
- return k + "ms " + A;
25402
+ const k = Math.min(vg(A), wP), S = xP((D) => A.next(k * D).value, k, 30);
25403
+ return k + "ms " + S;
25399
25404
  },
25400
25405
  toTransition: () => {
25401
25406
  }
25402
25407
  };
25403
- return S;
25408
+ return A;
25404
25409
  }
25405
25410
  Us.applyToOptions = (e) => {
25406
25411
  const t = AP(e, 100, Us);
@@ -25410,19 +25415,19 @@ function Ff({ keyframes: e, velocity: t = 0, power: r = 0.8, timeConstant: n = 3
25410
25415
  const d = e[0], h = {
25411
25416
  done: !1,
25412
25417
  value: d
25413
- }, f = (b) => s !== void 0 && b < s || l !== void 0 && b > l, m = (b) => s === void 0 ? l : l === void 0 || Math.abs(s - b) < Math.abs(l - b) ? s : l;
25418
+ }, f = (y) => s !== void 0 && y < s || l !== void 0 && y > l, m = (y) => s === void 0 ? l : l === void 0 || Math.abs(s - y) < Math.abs(l - y) ? s : l;
25414
25419
  let p = r * t;
25415
- const v = d + p, y = a === void 0 ? v : a(v);
25416
- y !== v && (p = y - d);
25417
- const x = (b) => -p * Math.exp(-b / n), w = (b) => y + x(b), S = (b) => {
25418
- const T = x(b), R = w(b);
25419
- h.done = Math.abs(T) <= c, h.value = h.done ? y : R;
25420
- };
25421
- let k, A;
25422
- const D = (b) => {
25423
- f(h.value) && (k = b, A = Us({
25420
+ const v = d + p, b = a === void 0 ? v : a(v);
25421
+ b !== v && (p = b - d);
25422
+ const x = (y) => -p * Math.exp(-y / n), w = (y) => b + x(y), A = (y) => {
25423
+ const T = x(y), R = w(y);
25424
+ h.done = Math.abs(T) <= c, h.value = h.done ? b : R;
25425
+ };
25426
+ let k, S;
25427
+ const D = (y) => {
25428
+ f(h.value) && (k = y, S = Us({
25424
25429
  keyframes: [h.value, m(h.value)],
25425
- velocity: SP(w, b, h.value),
25430
+ velocity: SP(w, y, h.value),
25426
25431
  damping: i,
25427
25432
  stiffness: o,
25428
25433
  restDelta: c,
@@ -25431,9 +25436,9 @@ function Ff({ keyframes: e, velocity: t = 0, power: r = 0.8, timeConstant: n = 3
25431
25436
  };
25432
25437
  return D(0), {
25433
25438
  calculatedDuration: null,
25434
- next: (b) => {
25439
+ next: (y) => {
25435
25440
  let T = !1;
25436
- return !A && k === void 0 && (T = !0, S(b), D(b)), k !== void 0 && b >= k ? A.next(b - k) : (!T && S(b), h);
25441
+ return !S && k === void 0 && (T = !0, A(y), D(y)), k !== void 0 && y >= k ? S.next(y - k) : (!T && A(y), h);
25437
25442
  }
25438
25443
  };
25439
25444
  }
@@ -25556,23 +25561,23 @@ var bg = class {
25556
25561
  if (this.startTime === null) return r.next(0);
25557
25562
  const { delay: l = 0, keyframes: c, repeat: u, repeatType: d, repeatDelay: h, type: f, onUpdate: m, finalKeyframe: p } = this.options;
25558
25563
  this.speed > 0 ? this.startTime = Math.min(this.startTime, e) : this.speed < 0 && (this.startTime = Math.min(e - n / this.speed, this.startTime)), t ? this.currentTime = e : this.updateTime(e);
25559
- const v = this.currentTime - l * (this.playbackSpeed >= 0 ? 1 : -1), y = this.playbackSpeed >= 0 ? v < 0 : v > n;
25564
+ const v = this.currentTime - l * (this.playbackSpeed >= 0 ? 1 : -1), b = this.playbackSpeed >= 0 ? v < 0 : v > n;
25560
25565
  this.currentTime = Math.max(v, 0), this.state === "finished" && this.holdTime === null && (this.currentTime = n);
25561
25566
  let x = this.currentTime, w = r;
25562
25567
  if (u) {
25563
25568
  const D = Math.min(this.currentTime, n) / a;
25564
- let b = Math.floor(D), T = D % 1;
25565
- !T && D >= 1 && (T = 1), T === 1 && b--, b = Math.min(b, u + 1), b % 2 && (d === "reverse" ? (T = 1 - T, h && (T -= h / a)) : d === "mirror" && (w = o)), x = rn(0, 1, T) * a;
25569
+ let y = Math.floor(D), T = D % 1;
25570
+ !T && D >= 1 && (T = 1), T === 1 && y--, y = Math.min(y, u + 1), y % 2 && (d === "reverse" ? (T = 1 - T, h && (T -= h / a)) : d === "mirror" && (w = o)), x = rn(0, 1, T) * a;
25566
25571
  }
25567
- const S = y ? {
25572
+ const A = b ? {
25568
25573
  done: !1,
25569
25574
  value: c[0]
25570
25575
  } : w.next(x);
25571
- i && (S.value = i(S.value));
25572
- let { done: k } = S;
25573
- !y && s !== null && (k = this.playbackSpeed >= 0 ? this.currentTime >= n : this.currentTime <= 0);
25574
- const A = this.holdTime === null && (this.state === "finished" || this.state === "running" && k);
25575
- return A && f !== Ff && (S.value = yg(c, this.options, p, this.speed)), m && m(S.value), A && this.finish(), S;
25576
+ i && (A.value = i(A.value));
25577
+ let { done: k } = A;
25578
+ !b && s !== null && (k = this.playbackSpeed >= 0 ? this.currentTime >= n : this.currentTime <= 0);
25579
+ const S = this.holdTime === null && (this.state === "finished" || this.state === "running" && k);
25580
+ return S && f !== Ff && (A.value = yg(c, this.options, p, this.speed)), m && m(A.value), S && this.finish(), A;
25576
25581
  }
25577
25582
  then(e, t) {
25578
25583
  return this.finished.then(e, t);
@@ -26426,17 +26431,17 @@ function kg(e, t, { delay: r = 0, transitionOverride: n, type: i } = {}) {
26426
26431
  ...Sg(o || {}, h)
26427
26432
  }, v = f.get();
26428
26433
  if (v !== void 0 && !f.isAnimating && !Array.isArray(m) && m === v && !p.velocity) continue;
26429
- let y = !1;
26434
+ let b = !1;
26430
26435
  if (window.MotionHandoffAnimation) {
26431
- const S = HP(e);
26432
- if (S) {
26433
- const k = window.MotionHandoffAnimation(S, h, Ne);
26434
- k !== null && (p.startTime = k, y = !0);
26436
+ const A = HP(e);
26437
+ if (A) {
26438
+ const k = window.MotionHandoffAnimation(A, h, Ne);
26439
+ k !== null && (p.startTime = k, b = !0);
26435
26440
  }
26436
26441
  }
26437
26442
  Xf(e, h);
26438
26443
  const x = c ?? e.shouldReduceMotion;
26439
- f.start(Tg(h, f, m, x && VP.has(h) ? { type: !1 } : p, e, y));
26444
+ f.start(Tg(h, f, m, x && VP.has(h) ? { type: !1 } : p, e, b));
26440
26445
  const w = f.animation;
26441
26446
  w && u.push(w);
26442
26447
  }
@@ -26771,8 +26776,8 @@ function _J(e, t, r = {}) {
26771
26776
  }, p = (v) => {
26772
26777
  if (!PJ(v)) return;
26773
26778
  l = !1;
26774
- const y = t(a, v);
26775
- typeof y == "function" && (c = y, a.addEventListener("pointerleave", m, i));
26779
+ const b = t(a, v);
26780
+ typeof b == "function" && (c = b, a.addEventListener("pointerleave", m, i));
26776
26781
  };
26777
26782
  a.addEventListener("pointerenter", p, i), a.addEventListener("pointerdown", f, i);
26778
26783
  }), o;
@@ -27562,11 +27567,11 @@ function gZ(e) {
27562
27567
  const { props: c } = e, u = m_(e.parent) || {}, d = [], h = /* @__PURE__ */ new Set();
27563
27568
  let f = {}, m = 1 / 0;
27564
27569
  for (let v = 0; v < mZ; v++) {
27565
- const y = fZ[v], x = r[y], w = c[y] !== void 0 ? c[y] : u[y], S = Ys(w), k = y === l ? x.isActive : null;
27570
+ const b = fZ[v], x = r[b], w = c[b] !== void 0 ? c[b] : u[b], A = Ys(w), k = b === l ? x.isActive : null;
27566
27571
  k === !1 && (m = v);
27567
- let A = w === u[y] && w !== c[y] && S;
27568
- if (A && n && e.manuallyAnimateOnMount && (A = !1), x.protectedKeys = { ...f }, !x.isActive && k === null || !w && !x.prevProp || ld(w) || typeof w == "boolean") continue;
27569
- if (y === "exit" && x.isActive && k !== !0) {
27572
+ let S = w === u[b] && w !== c[b] && A;
27573
+ if (S && n && e.manuallyAnimateOnMount && (S = !1), x.protectedKeys = { ...f }, !x.isActive && k === null || !w && !x.prevProp || ld(w) || typeof w == "boolean") continue;
27574
+ if (b === "exit" && x.isActive && k !== !0) {
27570
27575
  x.prevResolvedValues && (f = {
27571
27576
  ...f,
27572
27577
  ...x.prevResolvedValues
@@ -27574,15 +27579,15 @@ function gZ(e) {
27574
27579
  continue;
27575
27580
  }
27576
27581
  const D = vZ(x.prevProp, w);
27577
- let b = D || y === l && x.isActive && !A && S || v > m && S, T = !1;
27582
+ let y = D || b === l && x.isActive && !S && A || v > m && A, T = !1;
27578
27583
  const R = Array.isArray(w) ? w : [w];
27579
- let I = R.reduce(i(y), {});
27584
+ let I = R.reduce(i(b), {});
27580
27585
  k === !1 && (I = {});
27581
27586
  const { prevResolvedValues: V = {} } = x, M = {
27582
27587
  ...V,
27583
27588
  ...I
27584
27589
  }, L = (C) => {
27585
- b = !0, h.has(C) && (T = !0, h.delete(C)), x.needsAnimating[C] = !0;
27590
+ y = !0, h.has(C) && (T = !0, h.delete(C)), x.needsAnimating[C] = !0;
27586
27591
  const E = e.getValue(C);
27587
27592
  E && (E.liveStyle = !1);
27588
27593
  };
@@ -27595,10 +27600,10 @@ function gZ(e) {
27595
27600
  x.prevProp = w, x.prevResolvedValues = I, x.isActive && (f = {
27596
27601
  ...f,
27597
27602
  ...I
27598
- }), n && e.blockInitialAnimation && (b = !1);
27599
- const N = A && D;
27600
- b && (!N || T) && d.push(...R.map((C) => {
27601
- const E = { type: y };
27603
+ }), n && e.blockInitialAnimation && (y = !1);
27604
+ const N = S && D;
27605
+ y && (!N || T) && d.push(...R.map((C) => {
27606
+ const E = { type: b };
27602
27607
  if (typeof C == "string" && n && !N && e.manuallyAnimateOnMount && e.parent) {
27603
27608
  const { parent: P } = e, _ = $o(P, C);
27604
27609
  if (P.enteringChildren && _) {
@@ -27615,12 +27620,12 @@ function gZ(e) {
27615
27620
  if (h.size) {
27616
27621
  const v = {};
27617
27622
  if (typeof c.initial != "boolean") {
27618
- const y = $o(e, Array.isArray(c.initial) ? c.initial[0] : c.initial);
27619
- y && y.transition && (v.transition = y.transition);
27623
+ const b = $o(e, Array.isArray(c.initial) ? c.initial[0] : c.initial);
27624
+ b && b.transition && (v.transition = b.transition);
27620
27625
  }
27621
- h.forEach((y) => {
27622
- const x = e.getBaseTarget(y), w = e.getValue(y);
27623
- w && (w.liveStyle = !0), v[y] = x ?? null;
27626
+ h.forEach((b) => {
27627
+ const x = e.getBaseTarget(b), w = e.getValue(b);
27628
+ w && (w.liveStyle = !0), v[b] = x ?? null;
27624
27629
  }), d.push({ animation: v });
27625
27630
  }
27626
27631
  let p = !!d.length;
@@ -27944,8 +27949,8 @@ function A_({ attachResizeListener: e, defaultParent: t, measureScroll: r, check
27944
27949
  this.target = void 0, this.relativeTarget = void 0;
27945
27950
  return;
27946
27951
  }
27947
- const m = this.options.transition || c.getDefaultTransition() || QZ, { onLayoutAnimationStart: p, onLayoutAnimationComplete: v } = c.getProps(), y = !this.targetLayout || !v_(this.targetLayout, f), x = !d && h;
27948
- if (this.options.layoutRoot || this.resumeFrom || x || d && (y || !this.currentAnimation)) {
27952
+ const m = this.options.transition || c.getDefaultTransition() || QZ, { onLayoutAnimationStart: p, onLayoutAnimationComplete: v } = c.getProps(), b = !this.targetLayout || !v_(this.targetLayout, f), x = !d && h;
27953
+ if (this.options.layoutRoot || this.resumeFrom || x || d && (b || !this.currentAnimation)) {
27949
27954
  this.resumeFrom && (this.resumingFrom = this.resumeFrom, this.resumingFrom.resumingFrom = void 0);
27950
27955
  const w = {
27951
27956
  ...Sg(m, "layout"),
@@ -28185,10 +28190,10 @@ function A_({ attachResizeListener: e, defaultParent: t, measureScroll: r, check
28185
28190
  (!this.relativeParent || !this.relativeParent.options.layoutRoot) && (this.relativeTarget = this.relativeTargetOrigin = void 0), this.attemptToResolveRelativeTarget = !s;
28186
28191
  const h = nt(), f = (l ? l.source : void 0) !== (this.layout ? this.layout.source : void 0), m = this.getStack(), p = !m || m.members.length <= 1, v = !!(f && !p && this.options.crossfade === !0 && !this.path.some(qZ));
28187
28192
  this.animationProgress = 0;
28188
- let y;
28193
+ let b;
28189
28194
  this.mixTargetDelta = (x) => {
28190
28195
  const w = x / 1e3;
28191
- mw(d.x, a.x, w), mw(d.y, a.y, w), this.setTargetDelta(d), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (ou(h, this.layout.layoutBox, this.relativeParent.layout.layoutBox), XZ(this.relativeTarget, this.relativeTargetOrigin, h, w), y && kZ(this.relativeTarget, y) && (this.isProjectionDirty = !1), y || (y = nt()), vr(y, this.relativeTarget)), f && (this.animationValues = u, CZ(u, c, this.latestValues, w, v, p)), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = w;
28196
+ mw(d.x, a.x, w), mw(d.y, a.y, w), this.setTargetDelta(d), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (ou(h, this.layout.layoutBox, this.relativeParent.layout.layoutBox), XZ(this.relativeTarget, this.relativeTargetOrigin, h, w), b && kZ(this.relativeTarget, b) && (this.isProjectionDirty = !1), b || (b = nt()), vr(b, this.relativeTarget)), f && (this.animationValues = u, CZ(u, c, this.latestValues, w, v, p)), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = w;
28192
28197
  }, this.mixTargetDelta(this.options.layoutRoot ? 1e3 : 0);
28193
28198
  }
28194
28199
  startAnimation(a) {
@@ -28303,11 +28308,11 @@ function A_({ attachResizeListener: e, defaultParent: t, measureScroll: r, check
28303
28308
  a.transformOrigin = `${h.origin * 100}% ${f.origin * 100}% 0`, c.animationValues ? a.opacity = c === this ? u.opacity ?? this.latestValues.opacity ?? 1 : this.preserveOpacity ? this.latestValues.opacity : u.opacityExit : a.opacity = c === this ? u.opacity !== void 0 ? u.opacity : "" : u.opacityExit !== void 0 ? u.opacityExit : 0;
28304
28309
  for (const m in tm) {
28305
28310
  if (u[m] === void 0) continue;
28306
- const { correct: p, applyTo: v, isCSSVariable: y } = tm[m], x = d === "none" ? u[m] : p(u[m], c);
28311
+ const { correct: p, applyTo: v, isCSSVariable: b } = tm[m], x = d === "none" ? u[m] : p(u[m], c);
28307
28312
  if (v) {
28308
28313
  const w = v.length;
28309
- for (let S = 0; S < w; S++) a[v[S]] = x;
28310
- } else y ? this.options.visualElement.renderState.vars[m] = x : a[m] = x;
28314
+ for (let A = 0; A < w; A++) a[v[A]] = x;
28315
+ } else b ? this.options.visualElement.renderState.vars[m] = x : a[m] = x;
28311
28316
  }
28312
28317
  this.options.layoutId && (a.pointerEvents = c === this ? Tc(s?.pointerEvents) || "" : "none");
28313
28318
  }
@@ -28726,12 +28731,12 @@ function bee(e, t, r, n) {
28726
28731
  for (let f = 0; f < h.length; f++) {
28727
28732
  const m = Mg(e, h[f]);
28728
28733
  if (m) {
28729
- const { transitionEnd: p, transition: v, ...y } = m;
28730
- for (const x in y) {
28731
- let w = y[x];
28734
+ const { transitionEnd: p, transition: v, ...b } = m;
28735
+ for (const x in b) {
28736
+ let w = b[x];
28732
28737
  if (Array.isArray(w)) {
28733
- const S = u ? w.length - 1 : 0;
28734
- w = w[S];
28738
+ const A = u ? w.length - 1 : 0;
28739
+ w = w[A];
28735
28740
  }
28736
28741
  w !== null && (i[x] = w);
28737
28742
  }
@@ -28789,12 +28794,12 @@ function Tee(e, t, r, n, i, o) {
28789
28794
  l1(() => {
28790
28795
  m && v.current && m.update(r, l);
28791
28796
  });
28792
- const y = r[FP], x = de(!!y && !window.MotionHandoffIsComplete?.(y) && window.MotionHasOptimisedAnimation?.(y));
28797
+ const b = r[FP], x = de(!!b && !window.MotionHandoffIsComplete?.(b) && window.MotionHasOptimisedAnimation?.(b));
28793
28798
  return zk(() => {
28794
28799
  f.current = !0, m && (v.current = !0, window.MotionIsMounted = !0, m.updateFeatures(), m.scheduleRenderMicrotask(), x.current && m.animationState && m.animationState.animateChanges());
28795
28800
  }), ge(() => {
28796
28801
  m && (!x.current && m.animationState && m.animationState.animateChanges(), x.current && (queueMicrotask(() => {
28797
- window.MotionHandoffMarkAsComplete?.(y);
28802
+ window.MotionHandoffMarkAsComplete?.(b);
28798
28803
  }), x.current = !1), m.enteringChildren = void 0);
28799
28804
  }), m;
28800
28805
  }
@@ -28941,8 +28946,8 @@ var Sw = /* @__PURE__ */ new Set(["auto", "scroll"]), D_ = class {
28941
28946
  ...m,
28942
28947
  timestamp: p
28943
28948
  });
28944
- const { onStart: v, onMove: y } = this.handlers;
28945
- h || (v && v(this.lastMoveEvent, d), this.startEvent = this.lastMoveEvent), y && y(this.lastMoveEvent, d);
28949
+ const { onStart: v, onMove: b } = this.handlers;
28950
+ h || (v && v(this.lastMoveEvent, d), this.startEvent = this.lastMoveEvent), b && b(this.lastMoveEvent, d);
28946
28951
  }, this.handlePointerMove = (d, h) => {
28947
28952
  this.lastMoveEvent = d, this.lastMoveEventInfo = Th(h, this.transformPagePoint), Ne.update(this.updatePoint, !0);
28948
28953
  }, this.handlePointerUp = (d, h) => {
@@ -29120,15 +29125,15 @@ var Uee = /* @__PURE__ */ new WeakMap(), zee = class {
29120
29125
  if (h && !f && (this.openDragLock && this.openDragLock(), this.openDragLock = kJ(h), !this.openDragLock))
29121
29126
  return;
29122
29127
  this.latestPointerEvent = u, this.latestPanInfo = d, this.isDragging = !0, this.currentDirection = null, this.resolveConstraints(), this.visualElement.projection && (this.visualElement.projection.isAnimationBlocked = !0, this.visualElement.projection.target = void 0), Or((v) => {
29123
- let y = this.getAxisMotionValue(v).get() || 0;
29124
- if (Qr.test(y)) {
29128
+ let b = this.getAxisMotionValue(v).get() || 0;
29129
+ if (Qr.test(b)) {
29125
29130
  const { projection: x } = this.visualElement;
29126
29131
  if (x && x.layout) {
29127
29132
  const w = x.layout.layoutBox[v];
29128
- w && (y = Lt(w) * (parseFloat(y) / 100));
29133
+ w && (b = Lt(w) * (parseFloat(b) / 100));
29129
29134
  }
29130
29135
  }
29131
- this.originPoint[v] = y;
29136
+ this.originPoint[v] = b;
29132
29137
  }), m && Ne.update(() => m(u, d), !1, !0), Xf(this.visualElement, "transform");
29133
29138
  const { animationState: p } = this.visualElement;
29134
29139
  p && p.setActive("whileDrag", !0);
@@ -29672,13 +29677,13 @@ function Ate(e, { defaultTransition: t = {}, ...r } = {}, n, i) {
29672
29677
  c.set(m.name, Lw(d, m.at, u, c));
29673
29678
  continue;
29674
29679
  }
29675
- let [p, v, y = {}] = m;
29676
- y.at !== void 0 && (d = Lw(d, y.at, u, c));
29680
+ let [p, v, b = {}] = m;
29681
+ b.at !== void 0 && (d = Lw(d, b.at, u, c));
29677
29682
  let x = 0;
29678
- const w = (S, k, A, D = 0, b = 0) => {
29679
- const T = Ste(S), { delay: R = 0, times: I = EP(T), type: V = t.type || "keyframes", repeat: M, repeatType: L, repeatDelay: N = 0, ...C } = k;
29683
+ const w = (A, k, S, D = 0, y = 0) => {
29684
+ const T = Ste(A), { delay: R = 0, times: I = EP(T), type: V = t.type || "keyframes", repeat: M, repeatType: L, repeatDelay: N = 0, ...C } = k;
29680
29685
  let { ease: E = t.ease || "easeOut", duration: P } = k;
29681
- const _ = typeof R == "function" ? R(D, b) : R, j = T.length, X = Ag(V) ? V : i?.[V || "keyframes"];
29686
+ const _ = typeof R == "function" ? R(D, y) : R, j = T.length, X = Ag(V) ? V : i?.[V || "keyframes"];
29682
29687
  if (j <= 2 && X) {
29683
29688
  let te = 100;
29684
29689
  if (j === 2 && Ete(T)) {
@@ -29710,17 +29715,17 @@ function Ate(e, { defaultTransition: t = {}, ...r } = {}, n, i) {
29710
29715
  yte(I, M);
29711
29716
  }
29712
29717
  const oe = ee + P;
29713
- vte(A, T, E, I, ee, oe), x = Math.max(_ + P, x), h = Math.max(oe, h);
29718
+ vte(S, T, E, I, ee, oe), x = Math.max(_ + P, x), h = Math.max(oe, h);
29714
29719
  };
29715
29720
  if (pt(p)) {
29716
- const S = Dw(p, s);
29717
- w(v, y, Ow("default", S));
29721
+ const A = Dw(p, s);
29722
+ w(v, b, Ow("default", A));
29718
29723
  } else {
29719
- const S = V_(p, v, n, l), k = S.length;
29720
- for (let A = 0; A < k; A++) {
29721
- v = v, y = y;
29722
- const D = S[A], b = Dw(D, s);
29723
- for (const T in v) w(v[T], Tte(y, T), Ow(T, b), A, k);
29724
+ const A = V_(p, v, n, l), k = A.length;
29725
+ for (let S = 0; S < k; S++) {
29726
+ v = v, b = b;
29727
+ const D = A[S], y = Dw(D, s);
29728
+ for (const T in v) w(v[T], Tte(b, T), Ow(T, y), S, k);
29724
29729
  }
29725
29730
  }
29726
29731
  u = d, d += x;
@@ -29729,20 +29734,20 @@ function Ate(e, { defaultTransition: t = {}, ...r } = {}, n, i) {
29729
29734
  for (const p in f) {
29730
29735
  const v = f[p];
29731
29736
  v.sort(bte);
29732
- const y = [], x = [], w = [];
29737
+ const b = [], x = [], w = [];
29733
29738
  for (let D = 0; D < v.length; D++) {
29734
- const { at: b, value: T, easing: R } = v[D];
29735
- y.push(T), x.push(da(0, h, b)), w.push(R || "easeOut");
29739
+ const { at: y, value: T, easing: R } = v[D];
29740
+ b.push(T), x.push(da(0, h, y)), w.push(R || "easeOut");
29736
29741
  }
29737
- x[0] !== 0 && (x.unshift(0), y.unshift(y[0]), w.unshift(xte)), x[x.length - 1] !== 1 && (x.push(1), y.push(null)), a.has(m) || a.set(m, {
29742
+ x[0] !== 0 && (x.unshift(0), b.unshift(b[0]), w.unshift(xte)), x[x.length - 1] !== 1 && (x.push(1), b.push(null)), a.has(m) || a.set(m, {
29738
29743
  keyframes: {},
29739
29744
  transition: {}
29740
29745
  });
29741
- const S = a.get(m);
29742
- S.keyframes[p] = y;
29743
- const { type: k, ...A } = t;
29744
- S.transition[p] = {
29745
- ...A,
29746
+ const A = a.get(m);
29747
+ A.keyframes[p] = b;
29748
+ const { type: k, ...S } = t;
29749
+ A.transition[p] = {
29750
+ ...S,
29746
29751
  duration: h,
29747
29752
  ease: w,
29748
29753
  times: x,
@@ -29872,7 +29877,7 @@ var yn = Rte(), dd = ({ symbol: e, cx: t, cy: r, size: n, fill: i, fillOpacity:
29872
29877
  style: u
29873
29878
  }, m = d?.fadesIn ? { opacity: 0 } : {};
29874
29879
  if (e === "circle") {
29875
- const y = n / 2;
29880
+ const b = n / 2;
29876
29881
  return d ? /* @__PURE__ */ g($e.circle, {
29877
29882
  initial: d.intro ? {
29878
29883
  cx: t,
@@ -29884,7 +29889,7 @@ var yn = Rte(), dd = ({ symbol: e, cx: t, cy: r, size: n, fill: i, fillOpacity:
29884
29889
  animate: {
29885
29890
  cx: t,
29886
29891
  cy: r,
29887
- r: y,
29892
+ r: b,
29888
29893
  opacity: a
29889
29894
  },
29890
29895
  "data-testid": h,
@@ -29892,7 +29897,7 @@ var yn = Rte(), dd = ({ symbol: e, cx: t, cy: r, size: n, fill: i, fillOpacity:
29892
29897
  }) : /* @__PURE__ */ g("circle", {
29893
29898
  cx: t,
29894
29899
  cy: r,
29895
- r: y,
29900
+ r: b,
29896
29901
  opacity: a,
29897
29902
  "data-testid": h,
29898
29903
  ...f
@@ -29958,26 +29963,26 @@ var yn = Rte(), dd = ({ symbol: e, cx: t, cy: r, size: n, fill: i, fillOpacity:
29958
29963
  var Nw = 10 ** 2, It = (e) => Math.round(e * Nw) / Nw, Ote = (e, t, r) => {
29959
29964
  const n = r.axis === "x", i = n ? e.y : e.x, o = n ? e.x : e.y, a = n ? e.height : e.width, s = n ? e.width : e.height, l = Math.max(Math.min(r.from, r.to), o), c = Math.min(Math.max(r.from, r.to), o + s);
29960
29965
  if (c - l <= 0 || a <= 0) return "";
29961
- const u = Math.max(0, Math.min(t, a / 2)), d = Math.max(0, Math.min(t, s / 2)), h = o + d, f = o + s - d, m = i + a, p = n ? 0 : 1, v = (b, T) => {
29962
- const [R, I] = n ? [T, b] : [b, T];
29966
+ const u = Math.max(0, Math.min(t, a / 2)), d = Math.max(0, Math.min(t, s / 2)), h = o + d, f = o + s - d, m = i + a, p = n ? 0 : 1, v = (y, T) => {
29967
+ const [R, I] = n ? [T, y] : [y, T];
29963
29968
  return `${It(R)},${It(I)}`;
29964
- }, [y, x] = (n ? [d, u] : [u, d]).map(It), w = (b, T) => `A${y},${x} 0 0 ${p} ${v(b, T)}`, S = (b) => {
29969
+ }, [b, x] = (n ? [d, u] : [u, d]).map(It), w = (y, T) => `A${b},${x} 0 0 ${p} ${v(y, T)}`, A = (y) => {
29965
29970
  if (u <= 0 || d <= 0) return 0;
29966
- const T = b < h ? h - b : b > f ? b - f : 0, R = Math.min(1, T / d);
29971
+ const T = y < h ? h - y : y > f ? y - f : 0, R = Math.min(1, T / d);
29967
29972
  return u * (1 - Math.sqrt(1 - R * R));
29968
- }, k = (b, T) => u > 0 && d > 0 && (Math.max(b, T) <= h || Math.min(b, T) >= f), A = [
29973
+ }, k = (y, T) => u > 0 && d > 0 && (Math.max(y, T) <= h || Math.min(y, T) >= f), S = [
29969
29974
  l,
29970
- ...new Set([h, f].filter((b) => b > l && b < c)),
29975
+ ...new Set([h, f].filter((y) => y > l && y < c)),
29971
29976
  c
29972
- ], D = [`M${v(i + S(l), l)}`, `L${v(m - S(l), l)}`];
29973
- for (let b = 1; b < A.length; b++) {
29974
- const T = A[b - 1] ?? l, R = A[b] ?? c;
29975
- D.push(k(T, R) ? w(m - S(R), R) : `L${v(m, R)}`);
29977
+ ], D = [`M${v(i + A(l), l)}`, `L${v(m - A(l), l)}`];
29978
+ for (let y = 1; y < S.length; y++) {
29979
+ const T = S[y - 1] ?? l, R = S[y] ?? c;
29980
+ D.push(k(T, R) ? w(m - A(R), R) : `L${v(m, R)}`);
29976
29981
  }
29977
- D.push(`L${v(i + S(c), c)}`);
29978
- for (let b = A.length - 1; b > 0; b--) {
29979
- const T = A[b] ?? c, R = A[b - 1] ?? l;
29980
- D.push(k(T, R) ? w(i + S(R), R) : `L${v(i, R)}`);
29982
+ D.push(`L${v(i + A(c), c)}`);
29983
+ for (let y = S.length - 1; y > 0; y--) {
29984
+ const T = S[y] ?? c, R = S[y - 1] ?? l;
29985
+ D.push(k(T, R) ? w(i + A(R), R) : `L${v(i, R)}`);
29981
29986
  }
29982
29987
  return `${D.join("")}Z`;
29983
29988
  }, H_ = (e, t, r) => {
@@ -30052,10 +30057,10 @@ var Nw = 10 ** 2, It = (e) => Math.round(e * Nw) / Nw, Ote = (e, t, r) => {
30052
30057
  }), l;
30053
30058
  }, Vte = (e, t, r) => {
30054
30059
  if (t.mainAxis === "y") {
30055
- const o = xe(e), a = Gt(e) ?? be(e);
30060
+ const o = ye(e), a = Gt(e) ?? ve(e);
30056
30061
  return o === null || a === null ? null : su(ji(a, o), r);
30057
30062
  }
30058
- const n = be(e), i = ht(e) ?? xe(e);
30063
+ const n = ve(e), i = ht(e) ?? ye(e);
30059
30064
  return n === null || i === null ? null : su(ji(n, i), r);
30060
30065
  }, Fte = 1.5, $_ = (e, t) => W_(e, t) ? Math.max(t, Fte) : t, si = (e, t, r) => {
30061
30066
  const n = $_(e, t);
@@ -30350,10 +30355,10 @@ function Jte(e, t, r) {
30350
30355
  if (d === 1 && s) return t ?? [];
30351
30356
  if (d === 0) return n;
30352
30357
  for (var h = 0; h < c.length; ++h) {
30353
- var f = n[h], m = i[h], p = c[h], v = U_(Wo[p.type]), y;
30358
+ var f = n[h], m = i[h], p = c[h], v = U_(Wo[p.type]), b;
30354
30359
  try {
30355
- for (v.s(); !(y = v.n()).done; ) {
30356
- var x = y.value;
30360
+ for (v.s(); !(b = v.n()).done; ) {
30361
+ var x = b.value;
30357
30362
  p[x] = (1 - d) * f[x] + d * m[x], (x === "largeArcFlag" || x === "sweepFlag") && (p[x] = Math.round(p[x]));
30358
30363
  }
30359
30364
  } catch (w) {
@@ -30542,19 +30547,19 @@ var cu = (e, t, r) => {
30542
30547
  if (!m || !p) return;
30543
30548
  const v = f[0];
30544
30549
  if (!v) return;
30545
- const y = Fe(l.get("fill", v)), x = l.get("stroke", v) ?? y, { strokeWidth: w, strokeDasharray: S, strokeLinecap: k } = si(l.get("dashArray", v), l.get("strokeWidth", v), l.get("lineCap", v)), A = l.get("lineJoin", v);
30550
+ const b = Fe(l.get("fill", v)), x = l.get("stroke", v) ?? b, { strokeWidth: w, strokeDasharray: A, strokeLinecap: k } = si(l.get("dashArray", v), l.get("strokeWidth", v), l.get("lineCap", v)), S = l.get("lineJoin", v);
30546
30551
  d.push({
30547
30552
  key: u(v),
30548
30553
  areaPath: m,
30549
30554
  linePath: p,
30550
- fill: y,
30555
+ fill: b,
30551
30556
  stroke: x,
30552
30557
  fillOpacity: l.get("fillAlpha", v) * l.get("alpha", v),
30553
30558
  strokeWidth: w,
30554
30559
  strokeOpacity: l.get("strokeAlpha", v) * l.get("alpha", v),
30555
- strokeDasharray: S,
30560
+ strokeDasharray: A,
30556
30561
  lineCap: k,
30557
- lineJoin: A
30562
+ lineJoin: S
30558
30563
  });
30559
30564
  }), d;
30560
30565
  }, [
@@ -30654,7 +30659,7 @@ var cu = (e, t, r) => {
30654
30659
  a
30655
30660
  ]);
30656
30661
  if (!s || !l) return null;
30657
- const c = Fe(i.get("fill", r.observation, "hovered")), u = i.get("stroke", r.observation, "hovered") ?? c, d = i.get("alpha", r.observation, "hovered"), h = i.get("fillAlpha", r.observation, "hovered") * d, f = i.get("strokeAlpha", r.observation, "hovered") * d, { strokeWidth: m, strokeDasharray: p, strokeLinecap: v } = si(i.get("dashArray", r.observation, "hovered"), i.get("strokeWidth", r.observation, "hovered"), i.get("lineCap", r.observation, "hovered")), y = i.get("lineJoin", r.observation, "hovered");
30662
+ const c = Fe(i.get("fill", r.observation, "hovered")), u = i.get("stroke", r.observation, "hovered") ?? c, d = i.get("alpha", r.observation, "hovered"), h = i.get("fillAlpha", r.observation, "hovered") * d, f = i.get("strokeAlpha", r.observation, "hovered") * d, { strokeWidth: m, strokeDasharray: p, strokeLinecap: v } = si(i.get("dashArray", r.observation, "hovered"), i.get("strokeWidth", r.observation, "hovered"), i.get("lineCap", r.observation, "hovered")), b = i.get("lineJoin", r.observation, "hovered");
30658
30663
  return /* @__PURE__ */ W("g", {
30659
30664
  "data-testid": "hovered-area",
30660
30665
  children: [
@@ -30680,7 +30685,7 @@ var cu = (e, t, r) => {
30680
30685
  strokeOpacity: f,
30681
30686
  strokeDasharray: p,
30682
30687
  strokeLinecap: v,
30683
- strokeLinejoin: y,
30688
+ strokeLinejoin: b,
30684
30689
  vectorEffect: "non-scaling-stroke",
30685
30690
  "data-testid": "hovered-area-edge"
30686
30691
  })]
@@ -30713,13 +30718,13 @@ var cu = (e, t, r) => {
30713
30718
  getEditOutlineShapes: Bte,
30714
30719
  getOverlayAnchor: ({ observation: e, coordSystem: t }) => {
30715
30720
  if (t.mainAxis === "x") {
30716
- const i = be(e), o = ht(e) ?? xe(e);
30721
+ const i = ve(e), o = ht(e) ?? ye(e);
30717
30722
  return i === null || o === null ? null : {
30718
30723
  x: i,
30719
30724
  y: o
30720
30725
  };
30721
30726
  }
30722
- const r = xe(e), n = Gt(e) ?? be(e);
30727
+ const r = ye(e), n = Gt(e) ?? ve(e);
30723
30728
  return r === null || n === null ? null : {
30724
30729
  x: n,
30725
30730
  y: r
@@ -31034,7 +31039,7 @@ var xre = 1 / 3, wre = {
31034
31039
  cornerRadius: f,
31035
31040
  mainAxis: t,
31036
31041
  bounds: u
31037
- }), v = Bn(c, 0), y = Bn(u, p), x = r.get("alpha", e) * r.get("fillAlpha", e), w = al(h);
31042
+ }), v = Bn(c, 0), b = Bn(u, p), x = r.get("alpha", e) * r.get("fillAlpha", e), w = al(h);
31038
31043
  return /* @__PURE__ */ W("g", {
31039
31044
  clipPath: `url(#${s})`,
31040
31045
  children: [
@@ -31044,7 +31049,7 @@ var xre = 1 / 3, wre = {
31044
31049
  }),
31045
31050
  /* @__PURE__ */ g("clipPath", {
31046
31051
  id: l,
31047
- children: /* @__PURE__ */ g("path", { d: y })
31052
+ children: /* @__PURE__ */ g("path", { d: b })
31048
31053
  }),
31049
31054
  /* @__PURE__ */ W("g", {
31050
31055
  clipPath: `url(#${l})`,
@@ -31061,7 +31066,7 @@ var xre = 1 / 3, wre = {
31061
31066
  opacity: x,
31062
31067
  "data-testid": "highlight-bar-segment-border"
31063
31068
  }), /* @__PURE__ */ g("path", {
31064
- d: y,
31069
+ d: b,
31065
31070
  fill: "none",
31066
31071
  stroke: d,
31067
31072
  strokeWidth: w.outlineWidth,
@@ -31185,11 +31190,11 @@ var xre = 1 / 3, wre = {
31185
31190
  fill: d(u(v)),
31186
31191
  opacity: s.get("alpha", m) * s.get("fillAlpha", m),
31187
31192
  effects: ot(kt(s, m))
31188
- }), o).values()].map(({ segments: m, style: p, bounds: v }, y) => {
31193
+ }), o).values()].map(({ segments: m, style: p, bounds: v }, b) => {
31189
31194
  const x = p.stroke === void 0 ? void 0 : al(p.strokeWidth);
31190
31195
  return {
31191
- key: m[0]?.key ?? String(y),
31192
- id: `${a}${y}`,
31196
+ key: m[0]?.key ?? String(b),
31197
+ id: `${a}${b}`,
31193
31198
  bars: m,
31194
31199
  effects: Gre(m),
31195
31200
  ...v,
@@ -31217,7 +31222,7 @@ var xre = 1 / 3, wre = {
31217
31222
  if (f.bars.length === 1 && f.stroke === void 0) {
31218
31223
  const [p] = f.bars;
31219
31224
  if (!p) return null;
31220
- const { key: v, effects: y, ...x } = p, w = /* @__PURE__ */ g(Yg, {
31225
+ const { key: v, effects: b, ...x } = p, w = /* @__PURE__ */ g(Yg, {
31221
31226
  ...x,
31222
31227
  ...f.radii,
31223
31228
  animation: l,
@@ -31418,11 +31423,11 @@ var _h = 3, jre = ({ layer: e, coordSystem: t, primary: r, panelRect: n }) => {
31418
31423
  origin: zg(e, t)
31419
31424
  }), h = nC(l, t.mainAxis, i, r.observation);
31420
31425
  if (h === null) return null;
31421
- const { column: f, bounds: m } = h, p = ei(m, n), v = ei(f.bounds, n), { stroke: y, strokeWidth: x, cornerRadius: w, strokeAlpha: S } = f.style, k = ol({
31426
+ const { column: f, bounds: m } = h, p = ei(m, n), v = ei(f.bounds, n), { stroke: b, strokeWidth: x, cornerRadius: w, strokeAlpha: A } = f.style, k = ol({
31422
31427
  cornerRadius: w,
31423
31428
  mainAxis: t.mainAxis,
31424
31429
  bounds: v
31425
- }), A = Bn(p, 0), D = Bn(v, k), b = Bn(Uw(p, _h), 0), T = Bn(Uw(v, _h), k > 0 ? k + _h : 0), R = u(c), I = i.get("alpha", r.observation, "hovered") * i.get("fillAlpha", r.observation, "hovered"), V = i.get("stroke", r.observation, "hovered"), M = al(x);
31430
+ }), S = Bn(p, 0), D = Bn(v, k), y = Bn(Uw(p, _h), 0), T = Bn(Uw(v, _h), k > 0 ? k + _h : 0), R = u(c), I = i.get("alpha", r.observation, "hovered") * i.get("fillAlpha", r.observation, "hovered"), V = i.get("stroke", r.observation, "hovered"), M = al(x);
31426
31431
  return /* @__PURE__ */ W("g", {
31427
31432
  "data-testid": "hovered-bar",
31428
31433
  style: ot(kt(i, r.observation, "hovered")),
@@ -31434,7 +31439,7 @@ var _h = 3, jre = ({ layer: e, coordSystem: t, primary: r, panelRect: n }) => {
31434
31439
  }),
31435
31440
  /* @__PURE__ */ g("clipPath", {
31436
31441
  id: a,
31437
- children: /* @__PURE__ */ g("path", { d: A })
31442
+ children: /* @__PURE__ */ g("path", { d: S })
31438
31443
  }),
31439
31444
  /* @__PURE__ */ g("clipPath", {
31440
31445
  id: s,
@@ -31443,7 +31448,7 @@ var _h = 3, jre = ({ layer: e, coordSystem: t, primary: r, panelRect: n }) => {
31443
31448
  /* @__PURE__ */ g("g", {
31444
31449
  clipPath: `url(#${o})`,
31445
31450
  children: /* @__PURE__ */ g("path", {
31446
- d: b,
31451
+ d: y,
31447
31452
  fill: V,
31448
31453
  "data-testid": "hovered-bar-border"
31449
31454
  })
@@ -31453,23 +31458,23 @@ var _h = 3, jre = ({ layer: e, coordSystem: t, primary: r, panelRect: n }) => {
31453
31458
  children: /* @__PURE__ */ W("g", {
31454
31459
  clipPath: `url(#${s})`,
31455
31460
  children: [/* @__PURE__ */ g("path", {
31456
- d: A,
31461
+ d: S,
31457
31462
  fill: R,
31458
31463
  opacity: I,
31459
31464
  "data-testid": "hovered-bar-fill"
31460
- }), y !== void 0 && /* @__PURE__ */ W(fe, { children: [/* @__PURE__ */ g("path", {
31461
- d: A,
31465
+ }), b !== void 0 && /* @__PURE__ */ W(fe, { children: [/* @__PURE__ */ g("path", {
31466
+ d: S,
31462
31467
  fill: "none",
31463
- stroke: y,
31468
+ stroke: b,
31464
31469
  strokeWidth: M.separatorWidth,
31465
31470
  opacity: I,
31466
31471
  "data-testid": "hovered-bar-inner-border"
31467
31472
  }), /* @__PURE__ */ g("path", {
31468
31473
  d: D,
31469
31474
  fill: "none",
31470
- stroke: y,
31475
+ stroke: b,
31471
31476
  strokeWidth: M.outlineWidth,
31472
- opacity: S
31477
+ opacity: A
31473
31478
  })] })]
31474
31479
  })
31475
31480
  })
@@ -31533,7 +31538,7 @@ var _h = 3, jre = ({ layer: e, coordSystem: t, primary: r, panelRect: n }) => {
31533
31538
  size: 8
31534
31539
  }), a;
31535
31540
  }, Kre = (e, t) => {
31536
- const r = be(e), n = xe(e);
31541
+ const r = ve(e), n = ye(e);
31537
31542
  return r === null || n === null ? null : su(ji(r, n), t);
31538
31543
  }, Xre = Cr(function({ layer: t, shouldAnimateTransitions: r, intro: n }) {
31539
31544
  const i = n?.type === "wipe" ? n : null, o = G(() => qp(t.params), [t.params]), a = G(() => EY(t.params), [t.params]), s = He(t), l = G(() => {
@@ -31543,19 +31548,19 @@ var _h = 3, jre = ({ layer: e, coordSystem: t, primary: r, panelRect: n }) => {
31543
31548
  if (!f) return;
31544
31549
  const m = h[0];
31545
31550
  if (!m) return;
31546
- const p = s.get("fillAlpha", m), v = p === void 0 ? void 0 : a(h) ?? void 0, y = s.get("stroke", m), x = s.get("fill", m), w = x === void 0 ? y : Fe(x), { strokeWidth: S, strokeDasharray: k, strokeLinecap: A } = si(s.get("dashArray", m), s.get("strokeWidth", m), s.get("lineCap", m)), D = s.get("lineJoin", m);
31551
+ const p = s.get("fillAlpha", m), v = p === void 0 ? void 0 : a(h) ?? void 0, b = s.get("stroke", m), x = s.get("fill", m), w = x === void 0 ? b : Fe(x), { strokeWidth: A, strokeDasharray: k, strokeLinecap: S } = si(s.get("dashArray", m), s.get("strokeWidth", m), s.get("lineCap", m)), D = s.get("lineJoin", m);
31547
31552
  u.push({
31548
31553
  key: c(m),
31549
31554
  pathData: f,
31550
31555
  fillPath: v,
31551
31556
  fillAlpha: p,
31552
- stroke: y,
31557
+ stroke: b,
31553
31558
  fill: w,
31554
31559
  opacity: s.get("alpha", m),
31555
31560
  strokeAlpha: s.get("strokeAlpha", m),
31556
- strokeWidth: S,
31561
+ strokeWidth: A,
31557
31562
  strokeDasharray: k,
31558
- lineCap: A,
31563
+ lineCap: S,
31559
31564
  lineJoin: D
31560
31565
  });
31561
31566
  }), u;
@@ -31734,7 +31739,7 @@ var _h = 3, jre = ({ layer: e, coordSystem: t, primary: r, panelRect: n }) => {
31734
31739
  renderHoverCompanions: ({ related: e }) => /* @__PURE__ */ g(fe, { children: e.map((t) => /* @__PURE__ */ g(ai, { hit: t }, `companion-${t.layerId}-${t.pointIndex}`)) }),
31735
31740
  getEditOutlineShapes: Yre,
31736
31741
  getOverlayAnchor: ({ observation: e }) => {
31737
- const t = be(e), r = xe(e);
31742
+ const t = ve(e), r = ye(e);
31738
31743
  return t === null || r === null ? null : {
31739
31744
  x: t,
31740
31745
  y: r
@@ -31763,7 +31768,7 @@ var _h = 3, jre = ({ layer: e, coordSystem: t, primary: r, panelRect: n }) => {
31763
31768
  motion: u
31764
31769
  });
31765
31770
  }, sC = (e, t) => {
31766
- const r = be(e), n = xe(e);
31771
+ const r = ve(e), n = ye(e);
31767
31772
  return r === null || n === null ? null : t(r, n);
31768
31773
  }, lC = ({ layer: e, panelRect: t, styleReaders: r, project: n }) => {
31769
31774
  const i = [];
@@ -31820,7 +31825,7 @@ var _h = 3, jre = ({ layer: e, coordSystem: t, primary: r, panelRect: n }) => {
31820
31825
  project: ji
31821
31826
  }),
31822
31827
  getOverlayAnchor: ({ observation: e }) => {
31823
- const t = be(e), r = xe(e);
31828
+ const t = ve(e), r = ye(e);
31824
31829
  return t === null || r === null ? null : {
31825
31830
  x: t,
31826
31831
  y: r
@@ -32749,7 +32754,7 @@ var cie = DR((() => {
32749
32754
  children: h
32750
32755
  });
32751
32756
  }, mie = ({ label: e, textStyle: t, textWidth: r, labelPosition: n, isHorizontalLine: i, position: o, color: a, textColor: s, symbolShape: l, symbolColor: c, symbolPaint: u, symbolAlpha: d, symbolCornerRadius: h, symbolGlyph: f, symbolMainAxis: m, panelWidth: p, shouldAnimateTransitions: v }) => {
32752
- const y = l === null ? 0 : 14, x = r + y + 10, w = Math.max(Ine, qn(t)) + 10, S = /* @__PURE__ */ W(fe, { children: [l !== null && c !== null && /* @__PURE__ */ g("g", {
32757
+ const b = l === null ? 0 : 14, x = r + b + 10, w = Math.max(Ine, qn(t)) + 10, A = /* @__PURE__ */ W(fe, { children: [l !== null && c !== null && /* @__PURE__ */ g("g", {
32753
32758
  transform: `translate(0, ${-10 / 2})`,
32754
32759
  children: /* @__PURE__ */ g(Al, {
32755
32760
  shape: l,
@@ -32764,7 +32769,7 @@ var cie = DR((() => {
32764
32769
  mainAxis: m
32765
32770
  })
32766
32771
  }), /* @__PURE__ */ g("text", {
32767
- x: y,
32772
+ x: b,
32768
32773
  textAnchor: "start",
32769
32774
  dominantBaseline: "central",
32770
32775
  fill: s,
@@ -32781,7 +32786,7 @@ var cie = DR((() => {
32781
32786
  color: a,
32782
32787
  pillWidth: x,
32783
32788
  pillHeight: w,
32784
- text: S,
32789
+ text: A,
32785
32790
  shouldAnimateTransitions: v
32786
32791
  }) : /* @__PURE__ */ g(fie, {
32787
32792
  labelPosition: n,
@@ -32790,7 +32795,7 @@ var cie = DR((() => {
32790
32795
  pillWidth: x,
32791
32796
  pillHeight: w,
32792
32797
  panelWidth: p,
32793
- text: S,
32798
+ text: A,
32794
32799
  shouldAnimateTransitions: v
32795
32800
  });
32796
32801
  }, pie = ({ strokeWidth: e, dashArray: t, lineCap: r, lineJoin: n, isHorizontalLine: i, position: o, lineColor: a, effects: s, shouldAnimateTransitions: l }) => {
@@ -32837,36 +32842,36 @@ var cie = DR((() => {
32837
32842
  c,
32838
32843
  n,
32839
32844
  t
32840
- ]), { fonts: y } = co(), x = ke(), w = ue(wz, x.geom.rule.label(t), x.graph()), S = G(() => Wt(w, y.familyDefault), [w, y.familyDefault]), k = G(() => v === null ? null : Ep(v, Gne(o, f !== null), (M) => a.measureText(M, S).width), [
32845
+ ]), { fonts: b } = co(), x = ke(), w = ue(wz, x.geom.rule.label(t), x.graph()), A = G(() => Wt(w, b.familyDefault), [w, b.familyDefault]), k = G(() => v === null ? null : Ep(v, Gne(o, f !== null), (M) => a.measureText(M, A).width), [
32841
32846
  v,
32842
32847
  o,
32843
32848
  f,
32844
- S,
32849
+ A,
32845
32850
  a
32846
- ]), A = G(() => k === null ? 0 : a.measureText(k, S).width, [
32851
+ ]), S = G(() => k === null ? 0 : a.measureText(k, A).width, [
32847
32852
  k,
32848
- S,
32853
+ A,
32849
32854
  a
32850
- ]), D = He(t), b = t.data.getFirst();
32851
- if (!b) return null;
32852
- const T = D.get("stroke", b), R = vie(w, T), I = Nne(t, r), V = I ? xe(b) : be(b);
32855
+ ]), D = He(t), y = t.data.getFirst();
32856
+ if (!y) return null;
32857
+ const T = D.get("stroke", y), R = vie(w, T), I = Nne(t, r), V = I ? ye(y) : ve(y);
32853
32858
  return V === null ? null : /* @__PURE__ */ W("g", {
32854
32859
  "data-geom": "rule",
32855
32860
  className: One,
32856
32861
  children: [/* @__PURE__ */ g(pie, {
32857
- strokeWidth: D.get("strokeWidth", b),
32858
- dashArray: D.get("dashArray", b),
32859
- lineCap: D.get("lineCap", b),
32860
- lineJoin: D.get("lineJoin", b),
32862
+ strokeWidth: D.get("strokeWidth", y),
32863
+ dashArray: D.get("dashArray", y),
32864
+ lineCap: D.get("lineCap", y),
32865
+ lineJoin: D.get("lineJoin", y),
32861
32866
  isHorizontalLine: I,
32862
32867
  position: V,
32863
32868
  lineColor: T,
32864
- effects: ot(kt(D, b)),
32869
+ effects: ot(kt(D, y)),
32865
32870
  shouldAnimateTransitions: i
32866
32871
  }), k !== null && k !== "" && /* @__PURE__ */ g(mie, {
32867
32872
  label: k,
32868
32873
  textStyle: w,
32869
- textWidth: A,
32874
+ textWidth: S,
32870
32875
  labelPosition: t.params.labelPosition,
32871
32876
  isHorizontalLine: I,
32872
32877
  position: V,
@@ -33115,7 +33120,7 @@ var cie = DR((() => {
33115
33120
  }, RC = (e) => {
33116
33121
  const t = [];
33117
33122
  for (const i of e) {
33118
- const o = be(i), { innerRadius: a, outerRadius: s } = $u(i);
33123
+ const o = ve(i), { innerRadius: a, outerRadius: s } = $u(i);
33119
33124
  o === null || a === null || s === null || t.push({
33120
33125
  angle: o,
33121
33126
  outer: fr(o, s),
@@ -33135,7 +33140,7 @@ var cie = DR((() => {
33135
33140
  const a = [...o], [s] = a;
33136
33141
  if (s === void 0) return;
33137
33142
  if (a.length === 1) {
33138
- const u = be(s), d = ht(s) ?? xe(s);
33143
+ const u = ve(s), d = ht(s) ?? ye(s);
33139
33144
  u !== null && d !== null && i.push(CC(u, d, t));
33140
33145
  return;
33141
33146
  }
@@ -33192,10 +33197,10 @@ var cie = DR((() => {
33192
33197
  })
33193
33198
  ]
33194
33199
  }),
33195
- r.map((y) => /* @__PURE__ */ g(ai, {
33196
- hit: y,
33200
+ r.map((b) => /* @__PURE__ */ g(ai, {
33201
+ hit: b,
33197
33202
  project: kr
33198
- }, `companion-${y.layerId}-${y.pointIndex}`)),
33203
+ }, `companion-${b.layerId}-${b.pointIndex}`)),
33199
33204
  /* @__PURE__ */ g(ka, {
33200
33205
  hit: t,
33201
33206
  project: kr,
@@ -33220,7 +33225,7 @@ var cie = DR((() => {
33220
33225
  renderHoverCompanions: ({ related: e }) => /* @__PURE__ */ g(uu, { companions: e }),
33221
33226
  getEditOutlineShapes: kie,
33222
33227
  getOverlayAnchor: ({ observation: e }) => {
33223
- const t = be(e), r = ht(e) ?? xe(e);
33228
+ const t = ve(e), r = ht(e) ?? ye(e);
33224
33229
  if (t === null || r === null) return null;
33225
33230
  const { x: n, y: i } = kr(t, r);
33226
33231
  return {
@@ -33302,14 +33307,14 @@ var cie = DR((() => {
33302
33307
  unitsPerPixel: ml(o)
33303
33308
  }), m = G(() => {
33304
33309
  const p = er(t.data, t.mapping, t.id);
33305
- return [...LC(t, r.bandAxis, c, (v, y, x) => ({
33310
+ return [...LC(t, r.bandAxis, c, (v, b, x) => ({
33306
33311
  key: p(v),
33307
- ...y,
33312
+ ...b,
33308
33313
  fill: h(d(x)),
33309
33314
  opacity: c.get("alpha", v) * c.get("fillAlpha", v)
33310
- })).values()].map((v, y) => ({
33315
+ })).values()].map((v, b) => ({
33311
33316
  ...v,
33312
- key: v.members[0]?.key ?? String(y)
33317
+ key: v.members[0]?.key ?? String(b)
33313
33318
  }));
33314
33319
  }, [
33315
33320
  t,
@@ -33327,7 +33332,7 @@ var cie = DR((() => {
33327
33332
  effects: ot(kt(c, t.data.getFirst() ?? void 0)),
33328
33333
  className: Lr,
33329
33334
  children: [f, m.map((p, v) => {
33330
- const { stroke: y, strokeWidth: x, strokeAlpha: w } = p.style, S = y !== void 0, k = al(x), A = y === void 0 ? {} : du(y, k.separatorWidth), D = y === void 0 ? void 0 : du(y, k.outlineWidth), b = p.members.map((V) => {
33335
+ const { stroke: b, strokeWidth: x, strokeAlpha: w } = p.style, A = b !== void 0, k = al(x), S = b === void 0 ? {} : du(b, k.separatorWidth), D = b === void 0 ? void 0 : du(b, k.outlineWidth), y = p.members.map((V) => {
33331
33336
  const { key: M, ...L } = V;
33332
33337
  return s.isAnimated ? /* @__PURE__ */ g(Die, {
33333
33338
  ...L,
@@ -33337,16 +33342,16 @@ var cie = DR((() => {
33337
33342
  pathProps: {
33338
33343
  fill: L.fill,
33339
33344
  opacity: L.opacity,
33340
- ...A
33345
+ ...S
33341
33346
  }
33342
33347
  }, M) : /* @__PURE__ */ g("path", {
33343
33348
  d: Wi(L) ?? void 0,
33344
33349
  fill: L.fill,
33345
33350
  opacity: L.opacity,
33346
- ...A
33351
+ ...S
33347
33352
  }, M);
33348
33353
  }), T = Zg(p);
33349
- if (!S && T <= 0) return /* @__PURE__ */ g(zi, { children: b }, p.key);
33354
+ if (!A && T <= 0) return /* @__PURE__ */ g(zi, { children: y }, p.key);
33350
33355
  const R = `${a}${v}`;
33351
33356
  if (s.isAnimated) return /* @__PURE__ */ g("g", {
33352
33357
  clipPath: `url(#${R})`,
@@ -33359,7 +33364,7 @@ var cie = DR((() => {
33359
33364
  clipId: R,
33360
33365
  outlineProps: D,
33361
33366
  outlineOpacity: w,
33362
- children: b
33367
+ children: y
33363
33368
  })
33364
33369
  }, p.key);
33365
33370
  const I = Wi({
@@ -33373,7 +33378,7 @@ var cie = DR((() => {
33373
33378
  id: R,
33374
33379
  children: /* @__PURE__ */ g("path", { d: I })
33375
33380
  }),
33376
- b,
33381
+ y,
33377
33382
  D !== void 0 && /* @__PURE__ */ g("path", {
33378
33383
  d: I,
33379
33384
  fill: "none",
@@ -33385,61 +33390,61 @@ var cie = DR((() => {
33385
33390
  })]
33386
33391
  });
33387
33392
  }), OC = ({ startAngle: e, endAngle: t, innerRadius: r, outerRadius: n, cornerRadius: i, animation: o, sweepsInOnLateMount: a, introKey: s }) => {
33388
- const l = o.activeIntro?.growAxis === "angle" ? o.activeIntro : null, c = o.activeIntro?.growAxis === "radius" ? o.activeIntro : null, u = a && !o.isLayerEntrance, d = l?.baseline ?? (u ? rA : e), h = l?.baseline ?? (u ? rA : t), f = c ? c.baseline : r, m = c ? c.baseline : n, p = Ar(d), v = Ar(h), y = Ar(f), x = Ar(m), w = Ar(Wi({
33393
+ const l = o.activeIntro?.growAxis === "angle" ? o.activeIntro : null, c = o.activeIntro?.growAxis === "radius" ? o.activeIntro : null, u = a && !o.isLayerEntrance, d = l?.baseline ?? (u ? rA : e), h = l?.baseline ?? (u ? rA : t), f = c ? c.baseline : r, m = c ? c.baseline : n, p = Ar(d), v = Ar(h), b = Ar(f), x = Ar(m), w = Ar(Wi({
33389
33394
  startAngle: d,
33390
33395
  endAngle: h,
33391
33396
  innerRadius: f,
33392
33397
  outerRadius: m,
33393
33398
  cornerRadius: i
33394
- }) ?? ""), S = am(o, s, l);
33399
+ }) ?? ""), A = am(o, s, l);
33395
33400
  ge(() => {
33396
- const A = S(), D = [yn(p, e, A), yn(v, t, A)];
33401
+ const S = A(), D = [yn(p, e, S), yn(v, t, S)];
33397
33402
  return () => {
33398
- for (const b of D) b.stop();
33403
+ for (const y of D) y.stop();
33399
33404
  };
33400
33405
  }, [
33401
33406
  p,
33402
33407
  v,
33403
33408
  e,
33404
33409
  t,
33405
- S
33410
+ A
33406
33411
  ]);
33407
33412
  const k = am(o, s, c);
33408
33413
  return ge(() => {
33409
- const A = k(), D = [yn(y, r, A), yn(x, n, A)];
33414
+ const S = k(), D = [yn(b, r, S), yn(x, n, S)];
33410
33415
  return () => {
33411
- for (const b of D) b.stop();
33416
+ for (const y of D) y.stop();
33412
33417
  };
33413
33418
  }, [
33414
- y,
33419
+ b,
33415
33420
  x,
33416
33421
  r,
33417
33422
  n,
33418
33423
  k
33419
33424
  ]), ge(() => {
33420
- const A = () => {
33425
+ const S = () => {
33421
33426
  w.set(Wi({
33422
33427
  startAngle: p.get(),
33423
33428
  endAngle: v.get(),
33424
- innerRadius: y.get(),
33429
+ innerRadius: b.get(),
33425
33430
  outerRadius: x.get(),
33426
33431
  cornerRadius: i
33427
33432
  }) ?? "");
33428
33433
  };
33429
- A();
33434
+ S();
33430
33435
  const D = [
33431
33436
  p,
33432
33437
  v,
33433
- y,
33438
+ b,
33434
33439
  x
33435
- ].map((b) => b.on("change", A));
33440
+ ].map((y) => y.on("change", S));
33436
33441
  return () => {
33437
- for (const b of D) b();
33442
+ for (const y of D) y();
33438
33443
  };
33439
33444
  }, [
33440
33445
  p,
33441
33446
  v,
33442
- y,
33447
+ b,
33443
33448
  x,
33444
33449
  i,
33445
33450
  w
@@ -33492,7 +33497,7 @@ var cie = DR((() => {
33492
33497
  opacity: u,
33493
33498
  "data-testid": "arc-segment"
33494
33499
  });
33495
- const m = al(h), p = Nie(NT(e), t, l.union), v = Vie(s, Fie(p)), y = Wi({
33500
+ const m = al(h), p = Nie(NT(e), t, l.union), v = Vie(s, Fie(p)), b = Wi({
33496
33501
  ...l.union,
33497
33502
  cornerRadius: Zg(l)
33498
33503
  });
@@ -33516,7 +33521,7 @@ var cie = DR((() => {
33516
33521
  ...du(d, m.separatorWidth)
33517
33522
  }),
33518
33523
  /* @__PURE__ */ g("path", {
33519
- d: y,
33524
+ d: b,
33520
33525
  fill: "none",
33521
33526
  opacity: f,
33522
33527
  ...du(d, m.outlineWidth)
@@ -33675,7 +33680,7 @@ var cie = DR((() => {
33675
33680
  }, VC = (e) => {
33676
33681
  const t = [];
33677
33682
  for (const r of e) {
33678
- const n = be(r), i = xe(r);
33683
+ const n = ve(r), i = ye(r);
33679
33684
  n === null || i === null || t.push({
33680
33685
  angle: n,
33681
33686
  point: fr(n, i)
@@ -33688,7 +33693,7 @@ var cie = DR((() => {
33688
33693
  const s = [...a], [l] = s;
33689
33694
  if (l === void 0) return;
33690
33695
  if (s.length === 1) {
33691
- const u = be(l), d = xe(l);
33696
+ const u = ve(l), d = ye(l);
33692
33697
  u !== null && d !== null && o.push(CC(u, d, t));
33693
33698
  return;
33694
33699
  }
@@ -33756,7 +33761,7 @@ var cie = DR((() => {
33756
33761
  renderHoverCompanions: ({ related: e }) => /* @__PURE__ */ g(uu, { companions: e }),
33757
33762
  getEditOutlineShapes: Wie,
33758
33763
  getOverlayAnchor: ({ observation: e }) => {
33759
- const t = be(e), r = xe(e);
33764
+ const t = ve(e), r = ye(e);
33760
33765
  if (t === null || r === null) return null;
33761
33766
  const { x: n, y: i } = kr(t, r);
33762
33767
  return {
@@ -33803,7 +33808,7 @@ var cie = DR((() => {
33803
33808
  project: kr
33804
33809
  }),
33805
33810
  getOverlayAnchor: ({ observation: e }) => {
33806
- const t = be(e), r = xe(e);
33811
+ const t = ve(e), r = ye(e);
33807
33812
  if (t === null || r === null) return null;
33808
33813
  const { x: n, y: i } = kr(t, r);
33809
33814
  return {
@@ -34131,21 +34136,21 @@ var goe = (e) => wa((t) => ({
34131
34136
  errors: [...j.errors, ..._.errors],
34132
34137
  warnings: [...j.warnings, ..._.warnings]
34133
34138
  };
34134
- }), v = de(null), [y] = Me(yoe), x = de(null), w = Re((_) => p.errors.length === 0 ? _ : [...p.errors, ..._ ?? []], [p]), S = Re((_) => {
34139
+ }), v = de(null), [b] = Me(yoe), x = de(null), w = Re((_) => p.errors.length === 0 ? _ : [...p.errors, ..._ ?? []], [p]), A = Re((_) => {
34135
34140
  if (!_.ok) return _.errors;
34136
34141
  if (x.current) x.current.getState().setScene(_.scene);
34137
34142
  else {
34138
34143
  const j = goe(_.scene);
34139
- j.subscribe(y.notify), x.current = j, y.notify();
34144
+ j.subscribe(b.notify), x.current = j, b.notify();
34140
34145
  }
34141
34146
  return null;
34142
- }, [y]), [k, A] = Me(() => {
34147
+ }, [b]), [k, S] = Me(() => {
34143
34148
  const _ = f.compile({
34144
34149
  spec: e,
34145
34150
  data: t,
34146
34151
  colorScheme: r
34147
34152
  });
34148
- return v.current = _, w(S(_));
34153
+ return v.current = _, w(A(_));
34149
34154
  }), D = Re((_) => _.ok ? [
34150
34155
  ..._.warnings,
34151
34156
  ...soe(_.scene, o),
@@ -34155,17 +34160,17 @@ var goe = (e) => wa((t) => ({
34155
34160
  ...hoe(_.scene, o),
34156
34161
  ...foe(_.scene, o),
34157
34162
  ...doe(_.scene, a)
34158
- ] : _.warnings, [o, a]), b = Re((_) => {
34163
+ ] : _.warnings, [o, a]), y = Re((_) => {
34159
34164
  _.length !== 0 && (eu(_), d.current?.(_));
34160
34165
  }, [d]), T = Re((_) => {
34161
34166
  _.length !== 0 && (eu(_), h.current?.(_));
34162
34167
  }, [h]);
34163
34168
  ge(() => {
34164
34169
  const _ = v.current;
34165
- _ && (b([...p.errors, ..._.ok ? [] : _.errors]), T([...p.warnings, ...D(_)]), _.ok && m.emit({ kind: "init" }));
34170
+ _ && (y([...p.errors, ..._.ok ? [] : _.errors]), T([...p.warnings, ...D(_)]), _.ok && m.emit({ kind: "init" }));
34166
34171
  }, [
34167
34172
  m,
34168
- b,
34173
+ y,
34169
34174
  T,
34170
34175
  p,
34171
34176
  D
@@ -34177,23 +34182,23 @@ var goe = (e) => wa((t) => ({
34177
34182
  });
34178
34183
  if (!_) return;
34179
34184
  _.committedSpec && u.current?.(_.committedSpec);
34180
- const j = S(_.result);
34181
- A(w(j)), j && b(j), T(D(_.result)), j || m.emit({ kind: _.specChanged ? "spec" : "data" });
34185
+ const j = A(_.result);
34186
+ S(w(j)), j && y(j), T(D(_.result)), j || m.emit({ kind: _.specChanged ? "spec" : "data" });
34182
34187
  }, [
34183
34188
  e,
34184
34189
  t,
34185
34190
  r,
34186
34191
  f,
34187
34192
  m,
34188
- S,
34189
- b,
34193
+ A,
34194
+ y,
34190
34195
  T,
34191
34196
  w,
34192
34197
  D,
34193
34198
  u
34194
34199
  ]);
34195
34200
  const R = Re((_) => {
34196
- A((j) => j === null ? j : w(null)), T(D(_));
34201
+ S((j) => j === null ? j : w(null)), T(D(_));
34197
34202
  }, [
34198
34203
  w,
34199
34204
  T,
@@ -34202,12 +34207,12 @@ var goe = (e) => wa((t) => ({
34202
34207
  _.scene && x.current?.getState().setScene(_.scene), _.result && R(_.result), _.command && m.emit({
34203
34208
  kind: "command",
34204
34209
  command: _.command
34205
- }), _.spec && u.current?.(_.spec), _.errors && b([..._.errors]);
34210
+ }), _.spec && u.current?.(_.spec), _.errors && y([..._.errors]);
34206
34211
  }, [
34207
34212
  R,
34208
34213
  m,
34209
34214
  u,
34210
- b
34215
+ y
34211
34216
  ]), V = Re((_) => {
34212
34217
  for (const j of _) I(j);
34213
34218
  return _.some((j) => !!j.scene);
@@ -34229,7 +34234,7 @@ var goe = (e) => wa((t) => ({
34229
34234
  dispatch: M,
34230
34235
  commit: L,
34231
34236
  history: E,
34232
- subscribe: y.subscribe,
34237
+ subscribe: b.subscribe,
34233
34238
  getScene: P,
34234
34239
  compileBus: m,
34235
34240
  compileErrors: k
@@ -34243,7 +34248,7 @@ var goe = (e) => wa((t) => ({
34243
34248
  notify: () => e.forEach((t) => t())
34244
34249
  };
34245
34250
  }, WC = ({ data: e, spec: t, plugins: r = [], theme: n, formattingLocale: i, handleRef: o, onSpecChange: a, onError: s, onWarnings: l, colorScheme: c = "light", children: u }) => {
34246
- const [d] = Me(() => n), h = d?.colorScheme ?? c, [f] = Me(() => HC([...d?.plugins ?? [], ...r].filter(GC))), m = ut(), [p] = Me(() => Qz(r)), [v] = Me(() => Vp(r)), [y] = Me(() => qie()), [x] = Me(() => Zie()), w = G(() => Ok({ colorScheme: h }), [h]), { store: S, dispatch: k, commit: A, history: D, subscribe: b, getScene: T, compileBus: R, compileErrors: I } = voe({
34251
+ const [d] = Me(() => n), h = d?.colorScheme ?? c, [f] = Me(() => HC([...d?.plugins ?? [], ...r].filter(GC))), m = ut(), [p] = Me(() => Qz(r)), [v] = Me(() => Vp(r)), [b] = Me(() => qie()), [x] = Me(() => Zie()), w = G(() => Ok({ colorScheme: h }), [h]), { store: A, dispatch: k, commit: S, history: D, subscribe: y, getScene: T, compileBus: R, compileErrors: I } = voe({
34247
34252
  spec: t,
34248
34253
  data: e,
34249
34254
  colorScheme: h,
@@ -34256,40 +34261,40 @@ var goe = (e) => wa((t) => ({
34256
34261
  onWarnings: l
34257
34262
  });
34258
34263
  ge(() => {
34259
- if (S)
34260
- return S.subscribe((L, N) => {
34264
+ if (A)
34265
+ return A.subscribe((L, N) => {
34261
34266
  if (L.scene.spec === N.scene.spec) return;
34262
- const { selection: C, setSelection: E } = y.getState();
34267
+ const { selection: C, setSelection: E } = b.getState();
34263
34268
  C.length !== 0 && E(Kie(C, L.scene.spec));
34264
34269
  });
34265
- }, [S, y]);
34270
+ }, [A, b]);
34266
34271
  const V = G(() => ({
34267
34272
  dispatch: k,
34268
- commit: A
34269
- }), [k, A]);
34273
+ commit: S
34274
+ }), [k, S]);
34270
34275
  kR(o, () => ({
34271
34276
  commands: V,
34272
34277
  undo: D.undo,
34273
34278
  redo: D.redo,
34274
- subscribe: b,
34279
+ subscribe: y,
34275
34280
  getScene: T,
34276
- getSelection: () => y.getState().selection,
34277
- setSelection: (L) => y.getState().setSelection(L),
34278
- subscribeSelection: y.subscribe,
34281
+ getSelection: () => b.getState().selection,
34282
+ setSelection: (L) => b.getState().setSelection(L),
34283
+ subscribeSelection: b.subscribe,
34279
34284
  canPlaceDataLabels: v.hasCapability,
34280
34285
  canFormatDataLabelsAsPercentages: v.hasPercentageFormat
34281
34286
  }), [
34282
34287
  V,
34283
34288
  D,
34284
- b,
34285
- T,
34286
34289
  y,
34290
+ T,
34291
+ b,
34287
34292
  v
34288
34293
  ]);
34289
- const M = G(() => S ? {
34294
+ const M = G(() => A ? {
34290
34295
  chartId: m,
34291
- store: S,
34292
- selectionStore: y,
34296
+ store: A,
34297
+ selectionStore: b,
34293
34298
  targetBoundaryStore: x,
34294
34299
  commands: V,
34295
34300
  history: D,
@@ -34300,8 +34305,8 @@ var goe = (e) => wa((t) => ({
34300
34305
  anchorResolver: p
34301
34306
  } : null, [
34302
34307
  m,
34303
- S,
34304
- y,
34308
+ A,
34309
+ b,
34305
34310
  x,
34306
34311
  V,
34307
34312
  D,
@@ -35408,7 +35413,7 @@ function aI(e) {
35408
35413
  function um(e) {
35409
35414
  return !!(e && typeof e == "object" && e.type === fu.dateTime);
35410
35415
  }
35411
- var ve = /* @__PURE__ */ (function(e) {
35416
+ var be = /* @__PURE__ */ (function(e) {
35412
35417
  return e[e.EXPECT_ARGUMENT_CLOSING_BRACE = 1] = "EXPECT_ARGUMENT_CLOSING_BRACE", e[e.EMPTY_ARGUMENT = 2] = "EMPTY_ARGUMENT", e[e.MALFORMED_ARGUMENT = 3] = "MALFORMED_ARGUMENT", e[e.EXPECT_ARGUMENT_TYPE = 4] = "EXPECT_ARGUMENT_TYPE", e[e.INVALID_ARGUMENT_TYPE = 5] = "INVALID_ARGUMENT_TYPE", e[e.EXPECT_ARGUMENT_STYLE = 6] = "EXPECT_ARGUMENT_STYLE", e[e.INVALID_NUMBER_SKELETON = 7] = "INVALID_NUMBER_SKELETON", e[e.INVALID_DATE_TIME_SKELETON = 8] = "INVALID_DATE_TIME_SKELETON", e[e.EXPECT_NUMBER_SKELETON = 9] = "EXPECT_NUMBER_SKELETON", e[e.EXPECT_DATE_TIME_SKELETON = 10] = "EXPECT_DATE_TIME_SKELETON", e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE = 11] = "UNCLOSED_QUOTE_IN_ARGUMENT_STYLE", e[e.EXPECT_SELECT_ARGUMENT_OPTIONS = 12] = "EXPECT_SELECT_ARGUMENT_OPTIONS", e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE = 13] = "EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE", e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE = 14] = "INVALID_PLURAL_ARGUMENT_OFFSET_VALUE", e[e.EXPECT_SELECT_ARGUMENT_SELECTOR = 15] = "EXPECT_SELECT_ARGUMENT_SELECTOR", e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR = 16] = "EXPECT_PLURAL_ARGUMENT_SELECTOR", e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT = 17] = "EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT", e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT = 18] = "EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT", e[e.INVALID_PLURAL_ARGUMENT_SELECTOR = 19] = "INVALID_PLURAL_ARGUMENT_SELECTOR", e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR = 20] = "DUPLICATE_PLURAL_ARGUMENT_SELECTOR", e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR = 21] = "DUPLICATE_SELECT_ARGUMENT_SELECTOR", e[e.MISSING_OTHER_CLAUSE = 22] = "MISSING_OTHER_CLAUSE", e[e.INVALID_TAG = 23] = "INVALID_TAG", e[e.INVALID_TAG_NAME = 25] = "INVALID_TAG_NAME", e[e.UNMATCHED_CLOSING_TAG = 26] = "UNMATCHED_CLOSING_TAG", e[e.UNCLOSED_TAG = 27] = "UNCLOSED_TAG", e;
35413
35418
  })({}), sI = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, ac = {
35414
35419
  "001": ["H", "h"],
@@ -36659,7 +36664,7 @@ var Oae = class {
36659
36664
  });
36660
36665
  } else if (i === 60 && !this.ignoreTag && this.peek() === 47) {
36661
36666
  if (r) break;
36662
- return this.error(ve.UNMATCHED_CLOSING_TAG, pe(this.clonePosition(), this.clonePosition()));
36667
+ return this.error(be.UNMATCHED_CLOSING_TAG, pe(this.clonePosition(), this.clonePosition()));
36663
36668
  } else if (i === 60 && !this.ignoreTag && dm(this.peek() || 0)) {
36664
36669
  const o = this.parseTag(e, t);
36665
36670
  if (o.err) return o;
@@ -36693,9 +36698,9 @@ var Oae = class {
36693
36698
  if (i.err) return i;
36694
36699
  const o = i.val, a = this.clonePosition();
36695
36700
  if (this.bumpIf("</")) {
36696
- if (this.isEOF() || !dm(this.char())) return this.error(ve.INVALID_TAG, pe(a, this.clonePosition()));
36701
+ if (this.isEOF() || !dm(this.char())) return this.error(be.INVALID_TAG, pe(a, this.clonePosition()));
36697
36702
  const s = this.clonePosition();
36698
- return n !== this.parseTagName() ? this.error(ve.UNMATCHED_CLOSING_TAG, pe(s, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
36703
+ return n !== this.parseTagName() ? this.error(be.UNMATCHED_CLOSING_TAG, pe(s, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
36699
36704
  val: {
36700
36705
  type: je.tag,
36701
36706
  value: n,
@@ -36703,9 +36708,9 @@ var Oae = class {
36703
36708
  location: pe(r, this.clonePosition())
36704
36709
  },
36705
36710
  err: null
36706
- } : this.error(ve.INVALID_TAG, pe(a, this.clonePosition())));
36707
- } else return this.error(ve.UNCLOSED_TAG, pe(r, this.clonePosition()));
36708
- } else return this.error(ve.INVALID_TAG, pe(r, this.clonePosition()));
36711
+ } : this.error(be.INVALID_TAG, pe(a, this.clonePosition())));
36712
+ } else return this.error(be.UNCLOSED_TAG, pe(r, this.clonePosition()));
36713
+ } else return this.error(be.INVALID_TAG, pe(r, this.clonePosition()));
36709
36714
  }
36710
36715
  parseTagName() {
36711
36716
  const e = this.offset();
@@ -36784,12 +36789,12 @@ var Oae = class {
36784
36789
  }
36785
36790
  parseArgument(e, t) {
36786
36791
  const r = this.clonePosition();
36787
- if (this.bump(), this.bumpSpace(), this.isEOF()) return this.error(ve.EXPECT_ARGUMENT_CLOSING_BRACE, pe(r, this.clonePosition()));
36792
+ if (this.bump(), this.bumpSpace(), this.isEOF()) return this.error(be.EXPECT_ARGUMENT_CLOSING_BRACE, pe(r, this.clonePosition()));
36788
36793
  if (this.char() === 125)
36789
- return this.bump(), this.error(ve.EMPTY_ARGUMENT, pe(r, this.clonePosition()));
36794
+ return this.bump(), this.error(be.EMPTY_ARGUMENT, pe(r, this.clonePosition()));
36790
36795
  let n = this.parseIdentifierIfPossible().value;
36791
- if (!n) return this.error(ve.MALFORMED_ARGUMENT, pe(r, this.clonePosition()));
36792
- if (this.bumpSpace(), this.isEOF()) return this.error(ve.EXPECT_ARGUMENT_CLOSING_BRACE, pe(r, this.clonePosition()));
36796
+ if (!n) return this.error(be.MALFORMED_ARGUMENT, pe(r, this.clonePosition()));
36797
+ if (this.bumpSpace(), this.isEOF()) return this.error(be.EXPECT_ARGUMENT_CLOSING_BRACE, pe(r, this.clonePosition()));
36793
36798
  switch (this.char()) {
36794
36799
  case 125:
36795
36800
  return this.bump(), {
@@ -36801,9 +36806,9 @@ var Oae = class {
36801
36806
  err: null
36802
36807
  };
36803
36808
  case 44:
36804
- return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(ve.EXPECT_ARGUMENT_CLOSING_BRACE, pe(r, this.clonePosition())) : this.parseArgumentOptions(e, t, n, r);
36809
+ return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(be.EXPECT_ARGUMENT_CLOSING_BRACE, pe(r, this.clonePosition())) : this.parseArgumentOptions(e, t, n, r);
36805
36810
  default:
36806
- return this.error(ve.MALFORMED_ARGUMENT, pe(r, this.clonePosition()));
36811
+ return this.error(be.MALFORMED_ARGUMENT, pe(r, this.clonePosition()));
36807
36812
  }
36808
36813
  }
36809
36814
  parseIdentifierIfPossible() {
@@ -36817,7 +36822,7 @@ var Oae = class {
36817
36822
  let i = this.clonePosition(), o = this.parseIdentifierIfPossible().value, a = this.clonePosition();
36818
36823
  switch (o) {
36819
36824
  case "":
36820
- return this.error(ve.EXPECT_ARGUMENT_TYPE, pe(i, a));
36825
+ return this.error(be.EXPECT_ARGUMENT_TYPE, pe(i, a));
36821
36826
  case "number":
36822
36827
  case "date":
36823
36828
  case "time": {
@@ -36828,7 +36833,7 @@ var Oae = class {
36828
36833
  const u = this.clonePosition(), d = this.parseSimpleArgStyleIfPossible();
36829
36834
  if (d.err) return d;
36830
36835
  const h = Lae(d.val);
36831
- if (h.length === 0) return this.error(ve.EXPECT_ARGUMENT_STYLE, pe(this.clonePosition(), this.clonePosition()));
36836
+ if (h.length === 0) return this.error(be.EXPECT_ARGUMENT_STYLE, pe(this.clonePosition(), this.clonePosition()));
36832
36837
  s = {
36833
36838
  style: h,
36834
36839
  styleLocation: pe(u, this.clonePosition())
@@ -36851,7 +36856,7 @@ var Oae = class {
36851
36856
  err: null
36852
36857
  };
36853
36858
  } else {
36854
- if (u.length === 0) return this.error(ve.EXPECT_DATE_TIME_SKELETON, c);
36859
+ if (u.length === 0) return this.error(be.EXPECT_DATE_TIME_SKELETON, c);
36855
36860
  let d = u;
36856
36861
  this.locale && (d = Mae(u, this.locale));
36857
36862
  const h = {
@@ -36885,13 +36890,13 @@ var Oae = class {
36885
36890
  case "selectordinal":
36886
36891
  case "select": {
36887
36892
  const s = this.clonePosition();
36888
- if (this.bumpSpace(), !this.bumpIf(",")) return this.error(ve.EXPECT_SELECT_ARGUMENT_OPTIONS, pe(s, { ...s }));
36893
+ if (this.bumpSpace(), !this.bumpIf(",")) return this.error(be.EXPECT_SELECT_ARGUMENT_OPTIONS, pe(s, { ...s }));
36889
36894
  this.bumpSpace();
36890
36895
  let l = this.parseIdentifierIfPossible(), c = 0;
36891
36896
  if (o !== "select" && l.value === "offset") {
36892
- if (!this.bumpIf(":")) return this.error(ve.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, pe(this.clonePosition(), this.clonePosition()));
36897
+ if (!this.bumpIf(":")) return this.error(be.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, pe(this.clonePosition(), this.clonePosition()));
36893
36898
  this.bumpSpace();
36894
- const f = this.tryParseDecimalInteger(ve.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, ve.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
36899
+ const f = this.tryParseDecimalInteger(be.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, be.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
36895
36900
  if (f.err) return f;
36896
36901
  this.bumpSpace(), l = this.parseIdentifierIfPossible(), c = f.val;
36897
36902
  }
@@ -36921,11 +36926,11 @@ var Oae = class {
36921
36926
  };
36922
36927
  }
36923
36928
  default:
36924
- return this.error(ve.INVALID_ARGUMENT_TYPE, pe(i, a));
36929
+ return this.error(be.INVALID_ARGUMENT_TYPE, pe(i, a));
36925
36930
  }
36926
36931
  }
36927
36932
  tryParseArgumentClose(e) {
36928
- return this.isEOF() || this.char() !== 125 ? this.error(ve.EXPECT_ARGUMENT_CLOSING_BRACE, pe(e, this.clonePosition())) : (this.bump(), {
36933
+ return this.isEOF() || this.char() !== 125 ? this.error(be.EXPECT_ARGUMENT_CLOSING_BRACE, pe(e, this.clonePosition())) : (this.bump(), {
36929
36934
  val: !0,
36930
36935
  err: null
36931
36936
  });
@@ -36937,7 +36942,7 @@ var Oae = class {
36937
36942
  case 39: {
36938
36943
  this.bump();
36939
36944
  let r = this.clonePosition();
36940
- if (!this.bumpUntil("'")) return this.error(ve.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, pe(r, this.clonePosition()));
36945
+ if (!this.bumpUntil("'")) return this.error(be.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, pe(r, this.clonePosition()));
36941
36946
  this.bump();
36942
36947
  break;
36943
36948
  }
@@ -36965,7 +36970,7 @@ var Oae = class {
36965
36970
  try {
36966
36971
  r = yae(e);
36967
36972
  } catch {
36968
- return this.error(ve.INVALID_NUMBER_SKELETON, t);
36973
+ return this.error(be.INVALID_NUMBER_SKELETON, t);
36969
36974
  }
36970
36975
  return {
36971
36976
  val: {
@@ -36985,15 +36990,15 @@ var Oae = class {
36985
36990
  if (s.length === 0) {
36986
36991
  const h = this.clonePosition();
36987
36992
  if (t !== "select" && this.bumpIf("=")) {
36988
- const f = this.tryParseDecimalInteger(ve.EXPECT_PLURAL_ARGUMENT_SELECTOR, ve.INVALID_PLURAL_ARGUMENT_SELECTOR);
36993
+ const f = this.tryParseDecimalInteger(be.EXPECT_PLURAL_ARGUMENT_SELECTOR, be.INVALID_PLURAL_ARGUMENT_SELECTOR);
36989
36994
  if (f.err) return f;
36990
36995
  l = pe(h, this.clonePosition()), s = this.message.slice(h.offset, this.offset());
36991
36996
  } else break;
36992
36997
  }
36993
- if (a.has(s)) return this.error(t === "select" ? ve.DUPLICATE_SELECT_ARGUMENT_SELECTOR : ve.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, l);
36998
+ if (a.has(s)) return this.error(t === "select" ? be.DUPLICATE_SELECT_ARGUMENT_SELECTOR : be.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, l);
36994
36999
  s === "other" && (i = !0), this.bumpSpace();
36995
37000
  const c = this.clonePosition();
36996
- if (!this.bumpIf("{")) return this.error(t === "select" ? ve.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : ve.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, pe(this.clonePosition(), this.clonePosition()));
37001
+ if (!this.bumpIf("{")) return this.error(t === "select" ? be.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : be.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, pe(this.clonePosition(), this.clonePosition()));
36997
37002
  const u = this.parseMessage(e + 1, t, r);
36998
37003
  if (u.err) return u;
36999
37004
  const d = this.tryParseArgumentClose(c);
@@ -37003,7 +37008,7 @@ var Oae = class {
37003
37008
  location: pe(c, this.clonePosition())
37004
37009
  }]), a.add(s), this.bumpSpace(), { value: s, location: l } = this.parseIdentifierIfPossible();
37005
37010
  }
37006
- return o.length === 0 ? this.error(t === "select" ? ve.EXPECT_SELECT_ARGUMENT_SELECTOR : ve.EXPECT_PLURAL_ARGUMENT_SELECTOR, pe(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !i ? this.error(ve.MISSING_OTHER_CLAUSE, pe(this.clonePosition(), this.clonePosition())) : {
37011
+ return o.length === 0 ? this.error(t === "select" ? be.EXPECT_SELECT_ARGUMENT_SELECTOR : be.EXPECT_PLURAL_ARGUMENT_SELECTOR, pe(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !i ? this.error(be.MISSING_OTHER_CLAUSE, pe(this.clonePosition(), this.clonePosition())) : {
37007
37012
  val: o,
37008
37013
  err: null
37009
37014
  };
@@ -37116,7 +37121,7 @@ function Fae(e, t = {}) {
37116
37121
  };
37117
37122
  const r = new Oae(e, t).parse();
37118
37123
  if (r.err) {
37119
- const n = SyntaxError(ve[r.err.kind]);
37124
+ const n = SyntaxError(be[r.err.kind]);
37120
37125
  throw n.location = r.err.location, n.originalMessage = r.err.message, n;
37121
37126
  }
37122
37127
  return t?.captureLocation || hm(r.val), r.val;
@@ -37545,8 +37550,8 @@ var fm = ({ locale: e, formats: t, messages: r, defaultLocale: n, defaultFormats
37545
37550
  if (o === !1 && v === "") return v;
37546
37551
  if ((!m || e && e.toLowerCase() !== n.toLowerCase()) && a(new Kae(u, e)), m) try {
37547
37552
  return c.getMessageFormat(m, n, i, h).format(d);
37548
- } catch (y) {
37549
- return a(new Rh(`Error formatting default message for: "${p}", rendering default message verbatim`, e, u, y)), typeof m == "string" ? m : p;
37553
+ } catch (b) {
37554
+ return a(new Rh(`Error formatting default message for: "${p}", rendering default message verbatim`, e, u, b)), typeof m == "string" ? m : p;
37550
37555
  }
37551
37556
  return p;
37552
37557
  }
@@ -37555,13 +37560,13 @@ var fm = ({ locale: e, formats: t, messages: r, defaultLocale: n, defaultFormats
37555
37560
  formatters: c,
37556
37561
  ...h
37557
37562
  }).format(d);
37558
- } catch (y) {
37559
- a(new Rh(`Error formatting message: "${p}", using ${m ? "default message" : "id"} as fallback.`, e, u, y));
37563
+ } catch (b) {
37564
+ a(new Rh(`Error formatting message: "${p}", using ${m ? "default message" : "id"} as fallback.`, e, u, b));
37560
37565
  }
37561
37566
  if (m) try {
37562
37567
  return c.getMessageFormat(m, n, i, h).format(d);
37563
- } catch (y) {
37564
- a(new Rh(`Error formatting the default message for: "${p}", rendering message verbatim`, e, u, y));
37568
+ } catch (b) {
37569
+ a(new Rh(`Error formatting the default message for: "${p}", rendering message verbatim`, e, u, b));
37565
37570
  }
37566
37571
  return typeof v == "string" ? v : typeof m == "string" ? m : p;
37567
37572
  }, Zae = [
@@ -37823,28 +37828,28 @@ function Tse(e, t) {
37823
37828
  return !0;
37824
37829
  }
37825
37830
  var Mse = /* @__PURE__ */ nn(((e) => {
37826
- var t = typeof Symbol == "function" && Symbol.for, r = t ? /* @__PURE__ */ Symbol.for("react.element") : 60103, n = t ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, i = t ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, o = t ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, a = t ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, s = t ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, l = t ? /* @__PURE__ */ Symbol.for("react.context") : 60110, c = t ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, u = t ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, d = t ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, h = t ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113, f = t ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, m = t ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, p = t ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, v = t ? /* @__PURE__ */ Symbol.for("react.block") : 60121, y = t ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, x = t ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, w = t ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
37827
- function S(A) {
37828
- if (typeof A == "object" && A !== null) {
37829
- var D = A.$$typeof;
37831
+ var t = typeof Symbol == "function" && Symbol.for, r = t ? /* @__PURE__ */ Symbol.for("react.element") : 60103, n = t ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, i = t ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, o = t ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, a = t ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, s = t ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, l = t ? /* @__PURE__ */ Symbol.for("react.context") : 60110, c = t ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, u = t ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, d = t ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, h = t ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113, f = t ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, m = t ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, p = t ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, v = t ? /* @__PURE__ */ Symbol.for("react.block") : 60121, b = t ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, x = t ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, w = t ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
37832
+ function A(S) {
37833
+ if (typeof S == "object" && S !== null) {
37834
+ var D = S.$$typeof;
37830
37835
  switch (D) {
37831
37836
  case r:
37832
- switch (A = A.type, A) {
37837
+ switch (S = S.type, S) {
37833
37838
  case c:
37834
37839
  case u:
37835
37840
  case i:
37836
37841
  case a:
37837
37842
  case o:
37838
37843
  case h:
37839
- return A;
37844
+ return S;
37840
37845
  default:
37841
- switch (A = A && A.$$typeof, A) {
37846
+ switch (S = S && S.$$typeof, S) {
37842
37847
  case l:
37843
37848
  case d:
37844
37849
  case p:
37845
37850
  case m:
37846
37851
  case s:
37847
- return A;
37852
+ return S;
37848
37853
  default:
37849
37854
  return D;
37850
37855
  }
@@ -37854,36 +37859,36 @@ var Mse = /* @__PURE__ */ nn(((e) => {
37854
37859
  }
37855
37860
  }
37856
37861
  }
37857
- function k(A) {
37858
- return S(A) === u;
37859
- }
37860
- e.AsyncMode = c, e.ConcurrentMode = u, e.ContextConsumer = l, e.ContextProvider = s, e.Element = r, e.ForwardRef = d, e.Fragment = i, e.Lazy = p, e.Memo = m, e.Portal = n, e.Profiler = a, e.StrictMode = o, e.Suspense = h, e.isAsyncMode = function(A) {
37861
- return k(A) || S(A) === c;
37862
- }, e.isConcurrentMode = k, e.isContextConsumer = function(A) {
37863
- return S(A) === l;
37864
- }, e.isContextProvider = function(A) {
37865
- return S(A) === s;
37866
- }, e.isElement = function(A) {
37867
- return typeof A == "object" && A !== null && A.$$typeof === r;
37868
- }, e.isForwardRef = function(A) {
37869
- return S(A) === d;
37870
- }, e.isFragment = function(A) {
37871
- return S(A) === i;
37872
- }, e.isLazy = function(A) {
37873
- return S(A) === p;
37874
- }, e.isMemo = function(A) {
37875
- return S(A) === m;
37876
- }, e.isPortal = function(A) {
37877
- return S(A) === n;
37878
- }, e.isProfiler = function(A) {
37879
- return S(A) === a;
37880
- }, e.isStrictMode = function(A) {
37881
- return S(A) === o;
37882
- }, e.isSuspense = function(A) {
37883
- return S(A) === h;
37884
- }, e.isValidElementType = function(A) {
37885
- return typeof A == "string" || typeof A == "function" || A === i || A === u || A === a || A === o || A === h || A === f || typeof A == "object" && A !== null && (A.$$typeof === p || A.$$typeof === m || A.$$typeof === s || A.$$typeof === l || A.$$typeof === d || A.$$typeof === y || A.$$typeof === x || A.$$typeof === w || A.$$typeof === v);
37886
- }, e.typeOf = S;
37862
+ function k(S) {
37863
+ return A(S) === u;
37864
+ }
37865
+ e.AsyncMode = c, e.ConcurrentMode = u, e.ContextConsumer = l, e.ContextProvider = s, e.Element = r, e.ForwardRef = d, e.Fragment = i, e.Lazy = p, e.Memo = m, e.Portal = n, e.Profiler = a, e.StrictMode = o, e.Suspense = h, e.isAsyncMode = function(S) {
37866
+ return k(S) || A(S) === c;
37867
+ }, e.isConcurrentMode = k, e.isContextConsumer = function(S) {
37868
+ return A(S) === l;
37869
+ }, e.isContextProvider = function(S) {
37870
+ return A(S) === s;
37871
+ }, e.isElement = function(S) {
37872
+ return typeof S == "object" && S !== null && S.$$typeof === r;
37873
+ }, e.isForwardRef = function(S) {
37874
+ return A(S) === d;
37875
+ }, e.isFragment = function(S) {
37876
+ return A(S) === i;
37877
+ }, e.isLazy = function(S) {
37878
+ return A(S) === p;
37879
+ }, e.isMemo = function(S) {
37880
+ return A(S) === m;
37881
+ }, e.isPortal = function(S) {
37882
+ return A(S) === n;
37883
+ }, e.isProfiler = function(S) {
37884
+ return A(S) === a;
37885
+ }, e.isStrictMode = function(S) {
37886
+ return A(S) === o;
37887
+ }, e.isSuspense = function(S) {
37888
+ return A(S) === h;
37889
+ }, e.isValidElementType = function(S) {
37890
+ return typeof S == "string" || typeof S == "function" || S === i || S === u || S === a || S === o || S === h || S === f || typeof S == "object" && S !== null && (S.$$typeof === p || S.$$typeof === m || S.$$typeof === s || S.$$typeof === l || S.$$typeof === d || S.$$typeof === b || S.$$typeof === x || S.$$typeof === w || S.$$typeof === v);
37891
+ }, e.typeOf = A;
37887
37892
  })), Ese = /* @__PURE__ */ nn(((e, t) => {
37888
37893
  t.exports = Mse();
37889
37894
  })), kse = /* @__PURE__ */ nn(((e, t) => {
@@ -37926,20 +37931,20 @@ var Mse = /* @__PURE__ */ nn(((e) => {
37926
37931
  return r.isMemo(v) ? a : s[v.$$typeof] || n;
37927
37932
  }
37928
37933
  var c = Object.defineProperty, u = Object.getOwnPropertyNames, d = Object.getOwnPropertySymbols, h = Object.getOwnPropertyDescriptor, f = Object.getPrototypeOf, m = Object.prototype;
37929
- function p(v, y, x) {
37930
- if (typeof y != "string") {
37934
+ function p(v, b, x) {
37935
+ if (typeof b != "string") {
37931
37936
  if (m) {
37932
- var w = f(y);
37937
+ var w = f(b);
37933
37938
  w && w !== m && p(v, w, x);
37934
37939
  }
37935
- var S = u(y);
37936
- d && (S = S.concat(d(y)));
37937
- for (var k = l(v), A = l(y), D = 0; D < S.length; ++D) {
37938
- var b = S[D];
37939
- if (!i[b] && !(x && x[b]) && !(A && A[b]) && !(k && k[b])) {
37940
- var T = h(y, b);
37940
+ var A = u(b);
37941
+ d && (A = A.concat(d(b)));
37942
+ for (var k = l(v), S = l(b), D = 0; D < A.length; ++D) {
37943
+ var y = A[D];
37944
+ if (!i[y] && !(x && x[y]) && !(S && S[y]) && !(k && k[y])) {
37945
+ var T = h(b, y);
37941
37946
  try {
37942
- c(v, b, T);
37947
+ c(v, y, T);
37943
37948
  } catch {
37944
37949
  }
37945
37950
  }
@@ -38396,7 +38401,7 @@ async function ele(e, t) {
38396
38401
  boundary: c,
38397
38402
  rootBoundary: u,
38398
38403
  strategy: l
38399
- })), y = d === "floating" ? {
38404
+ })), b = d === "floating" ? {
38400
38405
  x: n,
38401
38406
  y: i,
38402
38407
  width: a.floating.width,
@@ -38407,17 +38412,17 @@ async function ele(e, t) {
38407
38412
  } : {
38408
38413
  x: 1,
38409
38414
  y: 1
38410
- }, S = gu(o.convertOffsetParentRelativeRectToViewportRelativeRect ? await o.convertOffsetParentRelativeRectToViewportRelativeRect({
38415
+ }, A = gu(o.convertOffsetParentRelativeRectToViewportRelativeRect ? await o.convertOffsetParentRelativeRectToViewportRelativeRect({
38411
38416
  elements: s,
38412
- rect: y,
38417
+ rect: b,
38413
38418
  offsetParent: x,
38414
38419
  strategy: l
38415
- }) : y);
38420
+ }) : b);
38416
38421
  return {
38417
- top: (v.top - S.top + m.top) / w.y,
38418
- bottom: (S.bottom - v.bottom + m.bottom) / w.y,
38419
- left: (v.left - S.left + m.left) / w.x,
38420
- right: (S.right - v.right + m.right) / w.x
38422
+ top: (v.top - A.top + m.top) / w.y,
38423
+ bottom: (A.bottom - v.bottom + m.bottom) / w.y,
38424
+ left: (v.left - A.left + m.left) / w.x,
38425
+ right: (A.right - v.right + m.right) / w.x
38421
38426
  };
38422
38427
  }
38423
38428
  var tle = 50, rle = async (e, t, r) => {
@@ -38434,7 +38439,7 @@ var tle = 50, rle = async (e, t, r) => {
38434
38439
  for (let p = 0; p < o.length; p++) {
38435
38440
  const v = o[p];
38436
38441
  if (!v) continue;
38437
- const { name: y, fn: x } = v, { x: w, y: S, data: k, reset: A } = await x({
38442
+ const { name: b, fn: x } = v, { x: w, y: A, data: k, reset: S } = await x({
38438
38443
  x: u,
38439
38444
  y: d,
38440
38445
  initialPlacement: n,
@@ -38448,14 +38453,14 @@ var tle = 50, rle = async (e, t, r) => {
38448
38453
  floating: t
38449
38454
  }
38450
38455
  });
38451
- u = w ?? u, d = S ?? d, m[y] = {
38452
- ...m[y],
38456
+ u = w ?? u, d = A ?? d, m[b] = {
38457
+ ...m[b],
38453
38458
  ...k
38454
- }, A && f < tle && (f++, typeof A == "object" && (A.placement && (h = A.placement), A.rects && (c = A.rects === !0 ? await a.getElementRects({
38459
+ }, S && f < tle && (f++, typeof S == "object" && (S.placement && (h = S.placement), S.rects && (c = S.rects === !0 ? await a.getElementRects({
38455
38460
  reference: e,
38456
38461
  floating: t,
38457
38462
  strategy: i
38458
- }) : A.rects), { x: u, y: d } = CA(c, h, l)), p = -1);
38463
+ }) : S.rects), { x: u, y: d } = CA(c, h, l)), p = -1);
38459
38464
  }
38460
38465
  return {
38461
38466
  x: u,
@@ -38472,13 +38477,13 @@ var tle = 50, rle = async (e, t, r) => {
38472
38477
  var r, n;
38473
38478
  const { placement: i, middlewareData: o, rects: a, initialPlacement: s, platform: l, elements: c } = t, { mainAxis: u = !0, crossAxis: d = !0, fallbackPlacements: h, fallbackStrategy: f = "bestFit", fallbackAxisSideDirection: m = "none", flipAlignment: p = !0, ...v } = Ad(e, t);
38474
38479
  if ((r = o.arrow) != null && r.alignmentOffset) return {};
38475
- const y = Ui(i), x = Vn(s), w = Ui(s) === s, S = await (l.isRTL == null ? void 0 : l.isRTL(c.floating)), k = h || (w || !p ? [pu(s)] : Yse(s)), A = m !== "none";
38476
- !h && A && k.push(...Qse(s, p, m, S));
38477
- const D = [s, ...k], b = await l.detectOverflow(t, v), T = [];
38480
+ const b = Ui(i), x = Vn(s), w = Ui(s) === s, A = await (l.isRTL == null ? void 0 : l.isRTL(c.floating)), k = h || (w || !p ? [pu(s)] : Yse(s)), S = m !== "none";
38481
+ !h && S && k.push(...Qse(s, p, m, A));
38482
+ const D = [s, ...k], y = await l.detectOverflow(t, v), T = [];
38478
38483
  let R = ((n = o.flip) == null ? void 0 : n.overflows) || [];
38479
- if (u && T.push(b[y]), d) {
38480
- const L = zse(i, a, S);
38481
- T.push(b[L[0]], b[L[1]]);
38484
+ if (u && T.push(y[b]), d) {
38485
+ const L = zse(i, a, A);
38486
+ T.push(y[L[0]], y[L[1]]);
38482
38487
  }
38483
38488
  if (R = [...R, {
38484
38489
  placement: i,
@@ -38499,7 +38504,7 @@ var tle = 50, rle = async (e, t, r) => {
38499
38504
  case "bestFit": {
38500
38505
  var M;
38501
38506
  const E = (M = R.filter((P) => {
38502
- if (A) {
38507
+ if (S) {
38503
38508
  const _ = Vn(P.placement);
38504
38509
  return _ === x || _ === "y";
38505
38510
  }
@@ -38559,8 +38564,8 @@ var ale = function(e) {
38559
38564
  name: "shift",
38560
38565
  options: e,
38561
38566
  async fn(t) {
38562
- const { x: r, y: n, placement: i, platform: o } = t, { mainAxis: a = !0, crossAxis: s = !1, limiter: l = { fn: (y) => {
38563
- let { x, y: w } = y;
38567
+ const { x: r, y: n, placement: i, platform: o } = t, { mainAxis: a = !0, crossAxis: s = !1, limiter: l = { fn: (b) => {
38568
+ let { x, y: w } = b;
38564
38569
  return {
38565
38570
  x,
38566
38571
  y: w
@@ -38571,12 +38576,12 @@ var ale = function(e) {
38571
38576
  }, d = await o.detectOverflow(t, c), h = Vn(Ui(i)), f = bI(h);
38572
38577
  let m = u[f], p = u[h];
38573
38578
  if (a) {
38574
- const y = f === "y" ? "top" : "left", x = f === "y" ? "bottom" : "right", w = m + d[y], S = m - d[x];
38575
- m = kA(w, m, S);
38579
+ const b = f === "y" ? "top" : "left", x = f === "y" ? "bottom" : "right", w = m + d[b], A = m - d[x];
38580
+ m = kA(w, m, A);
38576
38581
  }
38577
38582
  if (s) {
38578
- const y = h === "y" ? "top" : "left", x = h === "y" ? "bottom" : "right", w = p + d[y], S = p - d[x];
38579
- p = kA(w, p, S);
38583
+ const b = h === "y" ? "top" : "left", x = h === "y" ? "bottom" : "right", w = p + d[b], A = p - d[x];
38584
+ p = kA(w, p, A);
38580
38585
  }
38581
38586
  const v = l.fn({
38582
38587
  ...t,
@@ -38739,8 +38744,8 @@ function Xs(e, t, r, n) {
38739
38744
  const h = Jt(o), f = n && Pr(n) ? Jt(n) : n;
38740
38745
  let m = h, p = vm(m);
38741
38746
  for (; p && n && f !== m; ) {
38742
- const v = zo(p), y = p.getBoundingClientRect(), x = _r(p), w = y.left + (p.clientLeft + parseFloat(x.paddingLeft)) * v.x, S = y.top + (p.clientTop + parseFloat(x.paddingTop)) * v.y;
38743
- l *= v.x, c *= v.y, u *= v.x, d *= v.y, l += w, c += S, m = Jt(p), p = vm(m);
38747
+ const v = zo(p), b = p.getBoundingClientRect(), x = _r(p), w = b.left + (p.clientLeft + parseFloat(x.paddingLeft)) * v.x, A = b.top + (p.clientTop + parseFloat(x.paddingTop)) * v.y;
38748
+ l *= v.x, c *= v.y, u *= v.x, d *= v.y, l += w, c += A, m = Jt(p), p = vm(m);
38744
38749
  }
38745
38750
  }
38746
38751
  return gu({
@@ -39014,23 +39019,23 @@ function II(e) {
39014
39019
  isPositioned: !1
39015
39020
  }), [h, f] = We.useState(n);
39016
39021
  vu(h, n) || f(n);
39017
- const [m, p] = We.useState(null), [v, y] = We.useState(null), x = We.useCallback((P) => {
39018
- P !== A.current && (A.current = P, p(P));
39022
+ const [m, p] = We.useState(null), [v, b] = We.useState(null), x = We.useCallback((P) => {
39023
+ P !== S.current && (S.current = P, p(P));
39019
39024
  }, []), w = We.useCallback((P) => {
39020
- P !== D.current && (D.current = P, y(P));
39021
- }, []), S = o || m, k = a || v, A = We.useRef(null), D = We.useRef(null), b = We.useRef(u), T = l != null, R = Nh(l), I = Nh(i), V = Nh(c), M = We.useCallback(() => {
39022
- if (!A.current || !D.current) return;
39025
+ P !== D.current && (D.current = P, b(P));
39026
+ }, []), A = o || m, k = a || v, S = We.useRef(null), D = We.useRef(null), y = We.useRef(u), T = l != null, R = Nh(l), I = Nh(i), V = Nh(c), M = We.useCallback(() => {
39027
+ if (!S.current || !D.current) return;
39023
39028
  const P = {
39024
39029
  placement: t,
39025
39030
  strategy: r,
39026
39031
  middleware: h
39027
39032
  };
39028
- I.current && (P.platform = I.current), _le(A.current, D.current, P).then((_) => {
39033
+ I.current && (P.platform = I.current), _le(S.current, D.current, P).then((_) => {
39029
39034
  const j = {
39030
39035
  ..._,
39031
39036
  isPositioned: V.current !== !1
39032
39037
  };
39033
- L.current && !vu(b.current, j) && (b.current = j, PR.flushSync(() => {
39038
+ L.current && !vu(y.current, j) && (y.current = j, PR.flushSync(() => {
39034
39039
  d(j);
39035
39040
  }));
39036
39041
  });
@@ -39042,7 +39047,7 @@ function II(e) {
39042
39047
  V
39043
39048
  ]);
39044
39049
  kc(() => {
39045
- c === !1 && b.current.isPositioned && (b.current.isPositioned = !1, d((P) => ({
39050
+ c === !1 && y.current.isPositioned && (y.current.isPositioned = !1, d((P) => ({
39046
39051
  ...P,
39047
39052
  isPositioned: !1
39048
39053
  })));
@@ -39051,26 +39056,26 @@ function II(e) {
39051
39056
  kc(() => (L.current = !0, () => {
39052
39057
  L.current = !1;
39053
39058
  }), []), kc(() => {
39054
- if (S && (A.current = S), k && (D.current = k), S && k) {
39055
- if (R.current) return R.current(S, k, M);
39059
+ if (A && (S.current = A), k && (D.current = k), A && k) {
39060
+ if (R.current) return R.current(A, k, M);
39056
39061
  M();
39057
39062
  }
39058
39063
  }, [
39059
- S,
39064
+ A,
39060
39065
  k,
39061
39066
  M,
39062
39067
  R,
39063
39068
  T
39064
39069
  ]);
39065
39070
  const N = We.useMemo(() => ({
39066
- reference: A,
39071
+ reference: S,
39067
39072
  floating: D,
39068
39073
  setReference: x,
39069
39074
  setFloating: w
39070
39075
  }), [x, w]), C = We.useMemo(() => ({
39071
- reference: S,
39076
+ reference: A,
39072
39077
  floating: k
39073
- }), [S, k]), E = We.useMemo(() => {
39078
+ }), [A, k]), E = We.useMemo(() => {
39074
39079
  const P = {
39075
39080
  position: r,
39076
39081
  left: 0,
@@ -39533,8 +39538,8 @@ var yu = {
39533
39538
  style: m,
39534
39539
  "data-testid": "chart-tooltip",
39535
39540
  children: /* @__PURE__ */ g(a, { content: u })
39536
- }), y = jle();
39537
- return y ? _R(/* @__PURE__ */ g($le, { children: v }), y) : v;
39541
+ }), b = jle();
39542
+ return b ? _R(/* @__PURE__ */ g($le, { children: v }), b) : v;
39538
39543
  }, yce = ({ content: e }) => {
39539
39544
  const t = pr(), r = me((d) => d.coordSystem), n = ue(Az, ke()), i = Pa([n.box.fill]), o = Tt(n.heading), a = Tt(n.label), s = Tt(n.value), l = { paddingInline: n.box.paddingInline }, c = e.rows.some((d) => d.swatchColor !== null), u = e.rows.some((d) => !d.isPrimary);
39540
39545
  return /* @__PURE__ */ W("div", {
@@ -39758,7 +39763,7 @@ var yu = {
39758
39763
  if (i.display === "direct") {
39759
39764
  const m = qn(n);
39760
39765
  if (o) return m;
39761
- const p = Wt(n, t), v = i.items.map((y) => e.measureText(y.formattedLabel, p).width);
39766
+ const p = Wt(n, t), v = i.items.map((b) => e.measureText(b.formattedLabel, p).width);
39762
39767
  return Math.max(...v);
39763
39768
  }
39764
39769
  const { item: a, swatch: s } = r, l = qn(a), c = Wt(a, t), u = 2 * (a.paddingBlock + a.strokeWidth), d = 2 * (a.paddingInline + a.strokeWidth), h = i.aesthetics.includes("size");
@@ -39794,27 +39799,27 @@ var yu = {
39794
39799
  familyDefault: d,
39795
39800
  legendItemStyle: s,
39796
39801
  directLabelStyle: a
39797
- }), y = Rce(f), x = Cce(f), w = {
39798
- measureText: (S, k) => e.measureText(S, k),
39802
+ }), b = Rce(f), x = Cce(f), w = {
39803
+ measureText: (A, k) => e.measureText(A, k),
39799
39804
  textScale: h
39800
39805
  };
39801
39806
  return {
39802
- measureAxis: (S) => {
39803
- if ($ce(S)) return 0;
39807
+ measureAxis: (A) => {
39808
+ if ($ce(A)) return 0;
39804
39809
  const k = u.current.measureAxis;
39805
- return k ? k(S, w) : m(S);
39810
+ return k ? k(A, w) : m(A);
39806
39811
  },
39807
- measureAxisLabel: (S) => {
39812
+ measureAxisLabel: (A) => {
39808
39813
  const k = u.current.measureAxisLabel;
39809
- return k ? k(S, w) : p(S);
39814
+ return k ? k(A, w) : p(A);
39810
39815
  },
39811
- measureLegend: (S) => {
39812
- if (Wce(S)) return 0;
39816
+ measureLegend: (A) => {
39817
+ if (Wce(A)) return 0;
39813
39818
  const k = u.current.measureLegend;
39814
- return k ? k(S, w) : v(S);
39819
+ return k ? k(A, w) : v(A);
39815
39820
  },
39816
- measureHeadline: (S, k, A) => (u.current.measureHeadline ?? y)(S, k, A),
39817
- measureHeadlineItemWidths: (S, k) => (u.current.measureHeadlineItemWidths ?? x)(S, k),
39821
+ measureHeadline: (A, k, S) => (u.current.measureHeadline ?? b)(A, k, S),
39822
+ measureHeadlineItemWidths: (A, k) => (u.current.measureHeadlineItemWidths ?? x)(A, k),
39818
39823
  measureTickLabel: Vce({
39819
39824
  textMeasurer: e,
39820
39825
  tickLabelStyles: l,
@@ -39842,7 +39847,7 @@ var yu = {
39842
39847
  n
39843
39848
  ]);
39844
39849
  }, Gce = ({ measurer: e, axes: t, numberFormat: r, parsingLocale: n, formattedLegends: i, containerSize: o, externalMeasurements: a, headline: s, formattingLocale: l, annotations: c, layers: u, coordSystem: d, overflowStrategy: h, panelBorder: f, padding: m, margins: p }) => {
39845
- const v = ke(), y = ag(), x = G(() => (w) => Lk(v, w), [v]);
39850
+ const v = ke(), b = ag(), x = G(() => (w) => Lk(v, w), [v]);
39846
39851
  return G(() => e ? new Kz(e).compile({
39847
39852
  axes: t,
39848
39853
  numberFormat: r,
@@ -39856,7 +39861,7 @@ var yu = {
39856
39861
  resolveDifferenceArrowStyle: x,
39857
39862
  layers: u,
39858
39863
  readers: v,
39859
- resolvePlacement: y,
39864
+ resolvePlacement: b,
39860
39865
  coordSystem: d,
39861
39866
  overflowStrategy: h,
39862
39867
  panelBorder: f,
@@ -39876,7 +39881,7 @@ var yu = {
39876
39881
  x,
39877
39882
  u,
39878
39883
  v,
39879
- y,
39884
+ b,
39880
39885
  d,
39881
39886
  f,
39882
39887
  m,
@@ -40025,12 +40030,12 @@ var qI = Be(null), due = ({ panelRect: e, children: t }) => {
40025
40030
  h,
40026
40031
  u
40027
40032
  ]), m = G(() => mue(r, n.familyDefault), [r, n.familyDefault]), p = G(() => s.map((v) => {
40028
- const y = Lk(a, v.id), x = YA(v, y, f, m);
40033
+ const b = Lk(a, v.id), x = YA(v, b, f, m);
40029
40034
  return {
40030
40035
  ...x,
40031
40036
  arrow: v,
40032
- style: y,
40033
- color: zA(v, y, o),
40037
+ style: b,
40038
+ color: zA(v, b, o),
40034
40039
  committedArrow: v,
40035
40040
  committedLabelBox: x.labelBox,
40036
40041
  committedLabelText: x.labelText,
@@ -40046,17 +40051,17 @@ var qI = Be(null), due = ({ panelRect: e, children: t }) => {
40046
40051
  ]);
40047
40052
  return G(() => i === null ? p : p.map((v) => {
40048
40053
  if (v.id !== i.annotationId) return v;
40049
- const y = pue(v.committedArrow, i);
40054
+ const b = pue(v.committedArrow, i);
40050
40055
  return {
40051
- ...YA(y, v.style, f, m),
40056
+ ...YA(b, v.style, f, m),
40052
40057
  style: v.style,
40053
- color: zA(y, v.style, o),
40054
- arrow: y,
40058
+ color: zA(b, v.style, o),
40059
+ arrow: b,
40055
40060
  committedArrow: v.committedArrow,
40056
40061
  committedLabelBox: v.committedLabelBox,
40057
40062
  committedLabelText: v.committedLabelText,
40058
40063
  isDragged: !0,
40059
- hasComparableEndpoints: $h(y.start, y.end)
40064
+ hasComparableEndpoints: $h(b.start, b.end)
40060
40065
  };
40061
40066
  }), [
40062
40067
  p,
@@ -40699,13 +40704,13 @@ var Hde = "pill-content_bubble__1rqnt0m0", Bh = "\0", Gde = (e, t) => {
40699
40704
  });
40700
40705
  ge(() => {
40701
40706
  if (!n) return;
40702
- const x = (S) => {
40703
- const k = S.target;
40707
+ const x = (A) => {
40708
+ const k = A.target;
40704
40709
  if (!k) return;
40705
- const A = m.reference.current, D = m.floating.current;
40706
- A instanceof Element && A.contains(k) || D instanceof Element && D.contains(k) || i(!1);
40707
- }, w = (S) => {
40708
- S.key === "Escape" && i(!1);
40710
+ const S = m.reference.current, D = m.floating.current;
40711
+ S instanceof Element && S.contains(k) || D instanceof Element && D.contains(k) || i(!1);
40712
+ }, w = (A) => {
40713
+ A.key === "Escape" && i(!1);
40709
40714
  };
40710
40715
  return document.addEventListener("pointerdown", x), document.addEventListener("keydown", w), () => {
40711
40716
  document.removeEventListener("pointerdown", x), document.removeEventListener("keydown", w);
@@ -40715,12 +40720,12 @@ var Hde = "pill-content_bubble__1rqnt0m0", Bh = "\0", Gde = (e, t) => {
40715
40720
  m.floating,
40716
40721
  m.reference
40717
40722
  ]);
40718
- const v = t === "left" || t === "right", y = h === null ? [] : Array.from({ length: h }, (x, w) => h - w);
40723
+ const v = t === "left" || t === "right", b = h === null ? [] : Array.from({ length: h }, (x, w) => h - w);
40719
40724
  return /* @__PURE__ */ W(fe, { children: [/* @__PURE__ */ W("div", {
40720
40725
  ref: m.setReference,
40721
40726
  className: Qt(Lde, h !== null && v && Ode[h], h !== null && !v && Dde[h]),
40722
40727
  ...XA,
40723
- children: [h !== null && y.map((x) => /* @__PURE__ */ g("span", {
40728
+ children: [h !== null && b.map((x) => /* @__PURE__ */ g("span", {
40724
40729
  className: Qt("legend-overflow_triggerGhost__h68bv36", v ? Bde[h] : Nde[h]),
40725
40730
  style: {
40726
40731
  ...f,
@@ -40779,7 +40784,7 @@ var Hde = "pill-content_bubble__1rqnt0m0", Bh = "\0", Gde = (e, t) => {
40779
40784
  left: "pill-legends_verticalPlotHug_left__1unrqh47"
40780
40785
  }, ehe = "pill-legends_item__1unrqh48";
40781
40786
  var the = ({ edge: e, indexedLegends: t, containerWidth: r, containerHeight: n }) => {
40782
- const i = li(), o = co(), a = ke(), s = ue($I, a), l = ue(hl, a), c = pr(), u = me((A) => A.coordSystem.type), d = hi(), h = G(() => Gde(t, (A) => c(A, u)?.swatchShape ?? "square"), [
40787
+ const i = li(), o = co(), a = ke(), s = ue($I, a), l = ue(hl, a), c = pr(), u = me((S) => S.coordSystem.type), d = hi(), h = G(() => Gde(t, (S) => c(S, u)?.swatchShape ?? "square"), [
40783
40788
  t,
40784
40789
  c,
40785
40790
  u
@@ -40792,20 +40797,20 @@ var the = ({ edge: e, indexedLegends: t, containerWidth: r, containerHeight: n }
40792
40797
  visibleCount: h.length,
40793
40798
  hasOverflow: !1
40794
40799
  };
40795
- const A = Wt(l.item, o.fonts.familyDefault), D = qn(l.item), b = 2 * (l.item.paddingInline + l.item.strokeWidth), T = 2 * (l.item.paddingBlock + l.item.strokeWidth), R = (M) => f ? rhe(M, D, l.swatch.size, T) : qA({
40800
+ const S = Wt(l.item, o.fonts.familyDefault), D = qn(l.item), y = 2 * (l.item.paddingInline + l.item.strokeWidth), T = 2 * (l.item.paddingBlock + l.item.strokeWidth), R = (M) => f ? rhe(M, D, l.swatch.size, T) : qA({
40796
40801
  label: M.formattedLabel,
40797
40802
  swatchInlineSize: nhe(M, l.swatch.size),
40798
40803
  textMeasurer: i,
40799
- font: A,
40804
+ font: S,
40800
40805
  swatchGap: l.item.gap,
40801
- horizontalChrome: b
40806
+ horizontalChrome: y
40802
40807
  }), I = h.map(R), V = (f ? D + T : qA({
40803
40808
  label: `+${h.length}`,
40804
40809
  swatchInlineSize: 0,
40805
40810
  textMeasurer: i,
40806
- font: A,
40811
+ font: S,
40807
40812
  swatchGap: l.item.gap,
40808
- horizontalChrome: b
40813
+ horizontalChrome: y
40809
40814
  })) + (cR(l.item) ? 8 : 0);
40810
40815
  return ohe({
40811
40816
  pillSizes: I,
@@ -40821,9 +40826,9 @@ var the = ({ edge: e, indexedLegends: t, containerWidth: r, containerHeight: n }
40821
40826
  o,
40822
40827
  s,
40823
40828
  l
40824
- ]), y = Pa([l.item.fill]);
40829
+ ]), b = Pa([l.item.fill]);
40825
40830
  if (h.length === 0) return null;
40826
- const x = h.slice(0, v.visibleCount), w = h.slice(v.visibleCount), S = v.hasOverflow && w.length > 0, k = lR(l.item, y(l.item.fill));
40831
+ const x = h.slice(0, v.visibleCount), w = h.slice(v.visibleCount), A = v.hasOverflow && w.length > 0, k = lR(l.item, b(l.item.fill));
40827
40832
  return /* @__PURE__ */ W("div", {
40828
40833
  className: Qt(Jde[p], Xde, {
40829
40834
  [Qde]: f,
@@ -40831,15 +40836,15 @@ var the = ({ edge: e, indexedLegends: t, containerWidth: r, containerHeight: n }
40831
40836
  [Zde[e === "left" ? "left" : "right"]]: f
40832
40837
  }),
40833
40838
  style: { gap: s.gap },
40834
- children: [x.map((A) => /* @__PURE__ */ g("div", {
40839
+ children: [x.map((S) => /* @__PURE__ */ g("div", {
40835
40840
  className: Qt(ehe, d && "pill-legends_hitTestableItem__1unrqh49"),
40836
40841
  style: {
40837
40842
  ...k,
40838
40843
  gap: l.item.gap
40839
40844
  },
40840
- ...d ? gv(A.address) : void 0,
40841
- children: /* @__PURE__ */ g(dR, { pill: A })
40842
- }, A.key)), S && /* @__PURE__ */ g(zde, {
40845
+ ...d ? gv(S.address) : void 0,
40846
+ children: /* @__PURE__ */ g(dR, { pill: S })
40847
+ }, S.key)), A && /* @__PURE__ */ g(zde, {
40843
40848
  hiddenPills: w,
40844
40849
  placement: ahe(e)
40845
40850
  })]
@@ -41112,15 +41117,15 @@ var the = ({ edge: e, indexedLegends: t, containerWidth: r, containerHeight: n }
41112
41117
  if (i = null, !m) return;
41113
41118
  const p = a();
41114
41119
  if (p === null) return;
41115
- const v = s(m, p), y = r.getState();
41116
- if (y.isPointerSuspended) return;
41117
- const x = Pb(v, y.pointerRegions);
41120
+ const v = s(m, p), b = r.getState();
41121
+ if (b.isPointerSuspended) return;
41122
+ const x = Pb(v, b.pointerRegions);
41118
41123
  if (x !== null) {
41119
- y.setHoverState(t.query(x.cursor, { tolerance: n })), y.setTooltipAnchor(The(x.tooltip, p));
41124
+ b.setHoverState(t.query(x.cursor, { tolerance: n })), b.setTooltipAnchor(The(x.tooltip, p));
41120
41125
  return;
41121
41126
  }
41122
41127
  const w = LE(v, p);
41123
- y.setHoverState(t.query(w, { tolerance: n })), y.setTooltipAnchor(null);
41128
+ b.setHoverState(t.query(w, { tolerance: n })), b.setTooltipAnchor(null);
41124
41129
  }, c = () => {
41125
41130
  const m = r.getState();
41126
41131
  m.hover.primary === null && m.tooltipAnchor === null || (m.setHoverState(or), m.setTooltipAnchor(null));
@@ -41406,10 +41411,10 @@ var the = ({ edge: e, indexedLegends: t, containerWidth: r, containerHeight: n }
41406
41411
  transform: `translate(${e.x}, ${e.y})`,
41407
41412
  "data-testid": "difference-arrows",
41408
41413
  children: r.map(({ color: a, style: s, id: l, linePath: c, arrowheadPath: u, labelPosition: d, labelBox: h, labelText: f, isDragged: m, hasComparableEndpoints: p }) => {
41409
- const v = n === l || o.has(l), y = m && !p, x = y ? B.alert : a, w = v && !y ? jhe(x) : x;
41414
+ const v = n === l || o.has(l), b = m && !p, x = b ? B.alert : a, w = v && !b ? jhe(x) : x;
41410
41415
  return /* @__PURE__ */ W("g", {
41411
41416
  className: n === l ? Ghe : void 0,
41412
- "data-warning": y || void 0,
41417
+ "data-warning": b || void 0,
41413
41418
  ...Pl({
41414
41419
  kind: "annotation",
41415
41420
  id: l
@@ -41682,7 +41687,7 @@ var lfe = (e, t, r, n) => t !== "comment" ? r : Ep(r, 140, (i) => e.measureText(
41682
41687
  if (!m.inView) return null;
41683
41688
  const p = c.get(m.id), v = d.get(m.id);
41684
41689
  if (p === void 0 || v === void 0) return null;
41685
- const y = u.get(m.id), x = y?.color, w = m.miniRect.width <= e.width && m.miniRect.height <= e.height;
41690
+ const b = u.get(m.id), x = b?.color, w = m.miniRect.width <= e.width && m.miniRect.height <= e.height;
41686
41691
  return /* @__PURE__ */ W("g", {
41687
41692
  "data-testid": m.kind,
41688
41693
  children: [/* @__PURE__ */ g("foreignObject", {
@@ -41700,12 +41705,12 @@ var lfe = (e, t, r, n) => t !== "comment" ? r : Ep(r, 140, (i) => e.measureText(
41700
41705
  shape: i(p.geom, n.type)?.swatchShape ?? "square",
41701
41706
  surface: "callout",
41702
41707
  color: x ?? "currentColor",
41703
- paint: y?.fill,
41708
+ paint: b?.fill,
41704
41709
  width: 10,
41705
41710
  height: 10,
41706
- alpha: y?.alpha,
41707
- cornerRadius: y?.cornerRadius,
41708
- symbol: y?.symbol,
41711
+ alpha: b?.alpha,
41712
+ cornerRadius: b?.cornerRadius,
41713
+ symbol: b?.symbol,
41709
41714
  mainAxis: ni(n)
41710
41715
  })
41711
41716
  }), /* @__PURE__ */ g("span", {
@@ -41794,15 +41799,15 @@ var lfe = (e, t, r, n) => t !== "comment" ? r : Ep(r, 140, (i) => e.measureText(
41794
41799
  width: t * e,
41795
41800
  height: t
41796
41801
  }, xfe = "data-labels_overlay__15wb5l30", wfe = "data-labels_background__15wb5l31", Afe = "data-labels_label__15wb5l32", mR = ({ x: e, y: t, width: r, height: n, text: i, isRotated: o, labelRole: a, position: s, coordType: l, backdropColor: c }) => {
41797
- const u = ke(), d = ue(Cd, u), h = ue(Tce, u), f = o ? `rotate(-90 ${e} ${t})` : void 0, m = d[a][s], p = m.stroke !== void 0 && (m.strokeWidth ?? 0) > 0, v = Efe(a, l, m), y = Tfe(m, v, c, h), x = {
41802
+ const u = ke(), d = ue(Cd, u), h = ue(Tce, u), f = o ? `rotate(-90 ${e} ${t})` : void 0, m = d[a][s], p = m.stroke !== void 0 && (m.strokeWidth ?? 0) > 0, v = Efe(a, l, m), b = Tfe(m, v, c, h), x = {
41798
41803
  x: e - r / 2,
41799
41804
  y: t - n / 2,
41800
41805
  width: r,
41801
41806
  height: n
41802
- }, w = Pd(m.cornerRadius), S = m.shadow === void 0 ? void 0 : so(m.shadow), k = {
41807
+ }, w = Pd(m.cornerRadius), A = m.shadow === void 0 ? void 0 : so(m.shadow), k = {
41803
41808
  className: wfe,
41804
41809
  fill: m.fill === void 0 ? void 0 : Fe(m.fill),
41805
- style: S === void 0 ? void 0 : { filter: S },
41810
+ style: A === void 0 ? void 0 : { filter: A },
41806
41811
  ...p ? {
41807
41812
  stroke: m.stroke,
41808
41813
  strokeWidth: m.strokeWidth
@@ -41824,7 +41829,7 @@ var lfe = (e, t, r, n) => t !== "comment" ? r : Ep(r, 140, (i) => e.measureText(
41824
41829
  style: {
41825
41830
  ..._a(m),
41826
41831
  ...xd(m),
41827
- fill: Sfe(m, y)
41832
+ fill: Sfe(m, b)
41828
41833
  },
41829
41834
  ...bd(m),
41830
41835
  x: e,
@@ -42259,8 +42264,8 @@ var lfe = (e, t, r, n) => t !== "comment" ? r : Ep(r, 140, (i) => e.measureText(
42259
42264
  if (d.strokeWidth <= 0) return null;
42260
42265
  const h = u.position === "bottom" || u.position === "top", f = $_(d.dashArray, d.strokeWidth), m = ao(d.dashArray, f);
42261
42266
  return /* @__PURE__ */ g("g", { children: u.ticks.map((p, v) => {
42262
- const y = Yfe(h, p.position);
42263
- if (y !== null && t[y] > 0) return null;
42267
+ const b = Yfe(h, p.position);
42268
+ if (b !== null && t[b] > 0) return null;
42264
42269
  const x = h ? p.position : 1 - p.position;
42265
42270
  let w;
42266
42271
  if (h) {
@@ -42280,7 +42285,7 @@ var lfe = (e, t, r, n) => t !== "comment" ? r : Ep(r, 140, (i) => e.measureText(
42280
42285
  y2: k
42281
42286
  };
42282
42287
  }
42283
- const S = /* @__PURE__ */ g("line", {
42288
+ const A = /* @__PURE__ */ g("line", {
42284
42289
  ...w,
42285
42290
  ...pR,
42286
42291
  strokeDasharray: m,
@@ -42289,14 +42294,14 @@ var lfe = (e, t, r, n) => t !== "comment" ? r : Ep(r, 140, (i) => e.measureText(
42289
42294
  });
42290
42295
  return o ? /* @__PURE__ */ W("g", {
42291
42296
  ...iR(u.scaleAestheticKey),
42292
- children: [S, /* @__PURE__ */ g("line", {
42297
+ children: [A, /* @__PURE__ */ g("line", {
42293
42298
  ...w,
42294
42299
  stroke: "transparent",
42295
42300
  strokeWidth: 7,
42296
42301
  pointerEvents: "stroke",
42297
42302
  "data-testid": "grid-line-hit-area"
42298
42303
  })]
42299
- }, v) : /* @__PURE__ */ g(zi, { children: S }, v);
42304
+ }, v) : /* @__PURE__ */ g(zi, { children: A }, v);
42300
42305
  }) }, u.scaleAestheticKey);
42301
42306
  })
42302
42307
  });
@@ -42462,7 +42467,7 @@ var gR = (e, t) => {
42462
42467
  }),
42463
42468
  l.gridVisible && l.ticks.map((f, m) => {
42464
42469
  if (f.position >= 1 - 1e-9) return null;
42465
- const p = d(f.position), v = fr(p, u, s), y = fr(p, 1, s);
42470
+ const p = d(f.position), v = fr(p, u, s), b = fr(p, 1, s);
42466
42471
  return /* @__PURE__ */ g(Fh, {
42467
42472
  axis: Xe(l.scaleAestheticKey),
42468
42473
  lineStyle: o,
@@ -42470,8 +42475,8 @@ var gR = (e, t) => {
42470
42475
  draw: (x) => /* @__PURE__ */ g("line", {
42471
42476
  x1: v.x,
42472
42477
  y1: v.y,
42473
- x2: y.x,
42474
- y2: y.y,
42478
+ x2: b.x,
42479
+ y2: b.y,
42475
42480
  ...x
42476
42481
  })
42477
42482
  }, `spoke-${m}`);
@@ -42591,9 +42596,9 @@ var ime = 4, ome = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates:
42591
42596
  s
42592
42597
  ]), { fonts: p } = co(), v = ue(Cd, ke());
42593
42598
  if (e === null || r === null && c.length === 0) return null;
42594
- const y = wd(e.render);
42599
+ const b = wd(e.render);
42595
42600
  let x = null;
42596
- if (r && !y.live) {
42601
+ if (r && !b.live) {
42597
42602
  const w = {
42598
42603
  layer: r,
42599
42604
  sourceLayer: t,
@@ -42607,10 +42612,10 @@ var ime = 4, ome = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates:
42607
42612
  x = /* @__PURE__ */ g(wu, {
42608
42613
  renderer: e,
42609
42614
  styleReaders: d,
42610
- children: e.renderHighlight ? e.renderHighlight(w) : y.fn(w)
42615
+ children: e.renderHighlight ? e.renderHighlight(w) : b.fn(w)
42611
42616
  });
42612
42617
  }
42613
- return /* @__PURE__ */ W(vv, { children: [x, c.map(({ observation: w, observationIndex: S, anchor: k }) => /* @__PURE__ */ g(ame, {
42618
+ return /* @__PURE__ */ W(vv, { children: [x, c.map(({ observation: w, observationIndex: A, anchor: k }) => /* @__PURE__ */ g(ame, {
42614
42619
  observation: w,
42615
42620
  anchor: k,
42616
42621
  panelRect: a,
@@ -42621,7 +42626,7 @@ var ime = 4, ome = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates:
42621
42626
  formatYValue: m,
42622
42627
  labelStyle: v.observation.outside,
42623
42628
  familyDefault: p.familyDefault
42624
- }, sme(w, S)))] });
42629
+ }, sme(w, A)))] });
42625
42630
  }, ame = ({ observation: e, anchor: t, panelRect: r, fill: n, symbol: i, dotRadius: o, readSegmentY: a, formatYValue: s, labelStyle: l, familyDefault: c }) => {
42626
42631
  const u = li(), d = t.x, h = Tr(t.y), f = a(e) ?? null, m = f !== null ? s(f, e) : null, p = G(() => {
42627
42632
  if (m === null) return null;
@@ -42843,7 +42848,7 @@ var ime = 4, ome = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates:
42843
42848
  }, bme = "plot.renderer_root__1ts0j5d0", xme = ({ formattedAxes: e, plotRect: t, panelBorder: r, panelFrameRect: n, panelRect: i, axisRects: o, axisLabelRects: a, shouldAnimateTransitions: s, formattingLocale: l, plotBottomY: c, isFooterChromeReserved: u, isEditable: d, showAnnotations: h }) => {
42844
42849
  const f = de(null);
42845
42850
  Phe(f);
42846
- const m = Wr("Grid", zfe), p = Wr("AxisTicks", jfe), v = Wr("AxisLabel", Ufe), y = G(() => Am(n, t), [n, t]), x = G(() => Am(i, t), [i, t]), w = G(() => o1(o, t), [o, t]), S = G(() => o1(a, t), [a, t]), k = ho(), A = h && !k;
42851
+ const m = Wr("Grid", zfe), p = Wr("AxisTicks", jfe), v = Wr("AxisLabel", Ufe), b = G(() => Am(n, t), [n, t]), x = G(() => Am(i, t), [i, t]), w = G(() => o1(o, t), [o, t]), A = G(() => o1(a, t), [a, t]), k = ho(), S = h && !k;
42847
42852
  return /* @__PURE__ */ W("svg", {
42848
42853
  ref: f,
42849
42854
  className: bme,
@@ -42855,7 +42860,7 @@ var ime = 4, ome = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates:
42855
42860
  /* @__PURE__ */ g(m, {
42856
42861
  axes: e,
42857
42862
  panelBorderSizes: r,
42858
- panelFrameRect: y,
42863
+ panelFrameRect: b,
42859
42864
  panelRect: x
42860
42865
  }),
42861
42866
  /* @__PURE__ */ g(p, {
@@ -42864,14 +42869,14 @@ var ime = 4, ome = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates:
42864
42869
  }),
42865
42870
  /* @__PURE__ */ g(v, {
42866
42871
  formattedAxes: e,
42867
- labelRects: S
42872
+ labelRects: A
42868
42873
  }),
42869
42874
  /* @__PURE__ */ g(eme, {
42870
42875
  formattedAxes: e,
42871
42876
  panelRect: x
42872
42877
  }),
42873
42878
  /* @__PURE__ */ g(uhe, { panelRect: x }),
42874
- A && /* @__PURE__ */ W(fe, { children: [/* @__PURE__ */ g(ZA, {
42879
+ S && /* @__PURE__ */ W(fe, { children: [/* @__PURE__ */ g(ZA, {
42875
42880
  panelRect: x,
42876
42881
  zOrder: "background"
42877
42882
  }), /* @__PURE__ */ g(JA, {
@@ -42880,7 +42885,7 @@ var ime = 4, ome = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates:
42880
42885
  })] }),
42881
42886
  /* @__PURE__ */ g(Kfe, {
42882
42887
  sizes: r,
42883
- panelFrameRect: y
42888
+ panelFrameRect: b
42884
42889
  }),
42885
42890
  /* @__PURE__ */ g(fme, {
42886
42891
  shouldAnimateTransitions: s,
@@ -42897,7 +42902,7 @@ var ime = 4, ome = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates:
42897
42902
  plotBottomY: c,
42898
42903
  isFooterChromeReserved: u
42899
42904
  }),
42900
- A && /* @__PURE__ */ W(fe, { children: [
42905
+ S && /* @__PURE__ */ W(fe, { children: [
42901
42906
  /* @__PURE__ */ g(Whe, {
42902
42907
  panelRect: x,
42903
42908
  isEditable: d
@@ -43044,7 +43049,7 @@ var ime = 4, ome = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates:
43044
43049
  };
43045
43050
  }, Eme = (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, kme = () => null, Pme = "graph-frame_overpaint__fzk2ns0", _me = "graph-frame_backgroundScope__fzk2ns1";
43046
43051
  var Cme = [], Ime = ({ graphChrome: e, isEditable: t, mode: r, style: n, contentRef: i, children: o }) => {
43047
- const { themeClass: a, inlineVarsStyle: s } = uv(), 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: m, fill: p, overpaint: v = Cme } = e, y = Pa([p, ...v]), x = y(p), w = typeof p != "string", S = G(() => ({
43052
+ const { themeClass: a, inlineVarsStyle: s } = uv(), 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: m, fill: p, overpaint: v = Cme } = e, b = Pa([p, ...v]), x = b(p), w = typeof p != "string", A = G(() => ({
43048
43053
  ...n,
43049
43054
  borderRadius: `${d}px`,
43050
43055
  ...s,
@@ -43070,7 +43075,7 @@ var Cme = [], Ime = ({ graphChrome: e, isEditable: t, mode: r, style: n, content
43070
43075
  m,
43071
43076
  w,
43072
43077
  f
43073
- ]), A = G(() => typeof p == "string" ? void 0 : {
43078
+ ]), S = G(() => typeof p == "string" ? void 0 : {
43074
43079
  ...fa(p, x),
43075
43080
  opacity: f
43076
43081
  }, [
@@ -43081,7 +43086,7 @@ var Cme = [], Ime = ({ graphChrome: e, isEditable: t, mode: r, style: n, content
43081
43086
  return /* @__PURE__ */ g("div", {
43082
43087
  "data-testid": "graph-wrapper",
43083
43088
  className: Qt(Dle, a),
43084
- style: S,
43089
+ style: A,
43085
43090
  children: /* @__PURE__ */ W("div", {
43086
43091
  ref: i,
43087
43092
  "data-testid": "graph-inner",
@@ -43094,18 +43099,18 @@ var Cme = [], Ime = ({ graphChrome: e, isEditable: t, mode: r, style: n, content
43094
43099
  }),
43095
43100
  style: k,
43096
43101
  children: [
43097
- A && /* @__PURE__ */ g("div", {
43102
+ S && /* @__PURE__ */ g("div", {
43098
43103
  "aria-hidden": !0,
43099
43104
  "data-testid": "graph-fill",
43100
43105
  className: "graph-frame_background__fzk2ns2",
43101
- style: A
43106
+ style: S
43102
43107
  }),
43103
43108
  o,
43104
- [...v].reverse().map((b, T) => /* @__PURE__ */ g("div", {
43109
+ [...v].reverse().map((y, T) => /* @__PURE__ */ g("div", {
43105
43110
  "aria-hidden": !0,
43106
43111
  "data-testid": "graph-overpaint",
43107
43112
  className: Pme,
43108
- style: fa(b, y(b))
43113
+ style: fa(y, b(y))
43109
43114
  }, T))
43110
43115
  ]
43111
43116
  })
@@ -43125,7 +43130,7 @@ var Cme = [], Ime = ({ graphChrome: e, isEditable: t, mode: r, style: n, content
43125
43130
  })
43126
43131
  })
43127
43132
  }) }) }), Dme = ({ width: e, height: t, animation: r, showTooltips: n = !0, mode: i = wn.readonly }) => {
43128
- const o = yI(), a = tv(i), { axes: s, legends: l, layers: c, numberFormat: u, parsingLocale: d, annotations: h, coordSystem: f, headline: m, headlineConfig: p, content: v, overflowStrategy: y } = me(tr((Bt) => ({
43133
+ const o = yI(), a = tv(i), { axes: s, legends: l, layers: c, numberFormat: u, parsingLocale: d, annotations: h, coordSystem: f, headline: m, headlineConfig: p, content: v, overflowStrategy: b } = me(tr((Bt) => ({
43129
43134
  axes: Bt.guides.axes,
43130
43135
  legends: Bt.guides.legends.drawn,
43131
43136
  layers: Bt.layers,
@@ -43137,7 +43142,7 @@ var Cme = [], Ime = ({ graphChrome: e, isEditable: t, mode: r, style: n, content
43137
43142
  headlineConfig: Bt.config.headline,
43138
43143
  content: Bt.config.content,
43139
43144
  overflowStrategy: Bt.config.panel.overflow
43140
- }))), { intro: x, transitions: w } = sae(r, c), { headerRef: S, footerRef: k, measurements: A } = Mme(), { formattingLocale: D, colorScheme: b } = yt(), T = ci[a], R = T.editorSurface, [I, V] = Me(null), M = Wr("Header", jue), L = Wr("Footer", Bue), N = Wr("Legend", she), C = Wr("Headline", dde), E = Wr("EditorSurface", kme), P = G(() => eY({
43145
+ }))), { intro: x, transitions: w } = sae(r, c), { headerRef: A, footerRef: k, measurements: S } = Mme(), { formattingLocale: D, colorScheme: y } = yt(), T = ci[a], R = T.editorSurface, [I, V] = Me(null), M = Wr("Header", jue), L = Wr("Footer", Bue), N = Wr("Legend", she), C = Wr("Headline", dde), E = Wr("EditorSurface", kme), P = G(() => eY({
43141
43146
  legends: l,
43142
43147
  numberFormat: u,
43143
43148
  parsingLocale: d,
@@ -43161,7 +43166,7 @@ var Cme = [], Ime = ({ graphChrome: e, isEditable: t, mode: r, style: n, content
43161
43166
  d,
43162
43167
  D,
43163
43168
  o
43164
- ]), j = li(), X = ke(), ee = ue(Ome, X), ne = ue(Dk, X), oe = ue(fv, X), te = ue(Nme, X), ae = ue(Bme, X), ie = ue(Vme, X), le = ue(Fme, X), { fontFamily: $, textScale: Y, strokeWidth: q, fill: F } = ee, ce = G(() => vC(b, {}, $), [b, $]), J = G(() => ({
43169
+ ]), j = li(), X = ke(), ee = ue(Ome, X), ne = ue(Dk, X), oe = ue(fv, X), te = ue(Nme, X), ae = ue(Bme, X), ie = ue(Vme, X), le = ue(Fme, X), { fontFamily: $, textScale: Y, strokeWidth: q, fill: F } = ee, ce = G(() => vC(y, {}, $), [y, $]), J = G(() => ({
43165
43170
  width: Math.max(0, e - 2 * q),
43166
43171
  height: Math.max(0, t - 2 * q)
43167
43172
  }), [
@@ -43193,13 +43198,13 @@ var Cme = [], Ime = ({ graphChrome: e, isEditable: t, mode: r, style: n, content
43193
43198
  parsingLocale: d,
43194
43199
  formattedLegends: P,
43195
43200
  containerSize: J,
43196
- externalMeasurements: A,
43201
+ externalMeasurements: S,
43197
43202
  headline: at,
43198
43203
  formattingLocale: D,
43199
43204
  annotations: h,
43200
43205
  layers: c,
43201
43206
  coordSystem: f,
43202
- overflowStrategy: y,
43207
+ overflowStrategy: b,
43203
43208
  panelBorder: rr,
43204
43209
  padding: ue(RX, X),
43205
43210
  margins: ue(LX, X)
@@ -43221,7 +43226,7 @@ var Cme = [], Ime = ({ graphChrome: e, isEditable: t, mode: r, style: n, content
43221
43226
  return /* @__PURE__ */ g(aR.Provider, {
43222
43227
  value: a,
43223
43228
  children: /* @__PURE__ */ g(Gle, {
43224
- colorScheme: b,
43229
+ colorScheme: y,
43225
43230
  textScale: Y,
43226
43231
  graphBackground: Fe(F),
43227
43232
  graphFontFamily: $,
@@ -43244,7 +43249,7 @@ var Cme = [], Ime = ({ graphChrome: e, isEditable: t, mode: r, style: n, content
43244
43249
  panelRect: Ce.panel,
43245
43250
  children: [
43246
43251
  /* @__PURE__ */ g(M, {
43247
- ref: S,
43252
+ ref: A,
43248
43253
  headerRect: Ce.header,
43249
43254
  mode: a,
43250
43255
  title: v.title,
@@ -43417,7 +43422,7 @@ var zme = (e) => [...new Set(e)], Yme = (e) => ({
43417
43422
  stickers: e.stickers.length,
43418
43423
  pinnedNumbers: e.pinnedNumbers.length,
43419
43424
  comments: e.comments.length
43420
- }), Kme = "", Xme = "1.9.0-beta.1792505847409", qme = /^(https?):\/\/([^@]+)@([^/]+)\/(\d+)\/?$/;
43425
+ }), Kme = "", Xme = "1.9.0-beta.1792506850788", qme = /^(https?):\/\/([^@]+)@([^/]+)\/(\d+)\/?$/;
43421
43426
  function wR() {
43422
43427
  return Kme;
43423
43428
  }
@@ -43610,11 +43615,11 @@ export {
43610
43615
  NT as getStackRole,
43611
43616
  $G as getStrokeWidth,
43612
43617
  WG as getTileRectBounds,
43613
- be as getX,
43618
+ ve as getX,
43614
43619
  uD as getXBand,
43615
43620
  Gt as getXMax,
43616
43621
  dr as getXMin,
43617
- xe as getY,
43622
+ ye as getY,
43618
43623
  dD as getYBand,
43619
43624
  ht as getYMax,
43620
43625
  $t as getYMin,