@graphysdk/react-renderer 1.9.0-beta.1790717670997 → 1.9.0-beta.1790717902028

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.
@@ -23,11 +23,11 @@ import './history-chords.css';var Tn = Object.defineProperty, fl = (e, t) => {
23
23
  });
24
24
  return t || Tn(r, Symbol.toStringTag, { value: "Module" }), r;
25
25
  };
26
- typeof window < "u" && (window.__GRAPHY_SDK__ ??= {}, window.__GRAPHY_SDK__.reactRenderer = "1.9.0-beta.1790717670997");
26
+ typeof window < "u" && (window.__GRAPHY_SDK__ ??= {}, window.__GRAPHY_SDK__.reactRenderer = "1.9.0-beta.1790717902028");
27
27
  function pl(e) {
28
28
  for (const t of e) (t.severity === "error" ? console.error : console.warn)(`[graphy] ${t.code}: ${t.message}`, t);
29
29
  }
30
- var Wo = Y(null), eA = Wo.Provider, ml = null, Yr = () => U(Wo) ?? (ml ??= ms());
30
+ var Wo = Y(null), _m = Wo.Provider, ml = null, Yr = () => U(Wo) ?? (ml ??= ms());
31
31
  var Uo = Y(null), ne = () => {
32
32
  const e = U(Uo);
33
33
  if (!e) throw new Error("useGraph* hooks must be used inside a <GraphProvider>");
@@ -197,7 +197,7 @@ var Uo = Y(null), ne = () => {
197
197
  "data-testid": "companion-point"
198
198
  });
199
199
  };
200
- var Ln = 10 ** 2, z = (e) => Math.round(e * Ln) / Ln, tA = (e) => e.map(({ x: t, y: r }) => `M${z(t)},${z(r)}h0`).join(""), Sl = (e, t, r) => {
200
+ var Ln = 10 ** 2, z = (e) => Math.round(e * Ln) / Ln, eA = (e) => e.map(({ x: t, y: r }) => `M${z(t)},${z(r)}h0`).join(""), Sl = (e, t, r) => {
201
201
  const n = r.axis === "x", o = n ? e.y : e.x, a = n ? e.x : e.y, i = n ? e.height : e.width, l = n ? e.width : e.height, c = Math.max(Math.min(r.from, r.to), a), d = Math.min(Math.max(r.from, r.to), a + l);
202
202
  if (d - c <= 0 || i <= 0) return "";
203
203
  const u = Math.max(0, Math.min(t, i / 2)), h = Math.max(0, Math.min(t, l / 2)), g = a + h, f = a + l - h, v = o + i, m = n ? 0 : 1, p = (P, O) => {
@@ -1798,7 +1798,7 @@ var sr = 3, mc = ({ layer: e, coordSystem: t, primary: r, panelRect: n }) => {
1798
1798
  fontEditorCaption: N(A.fontWeightMedium, A.fontSizeXxs, A.fontLineHeightXxs)
1799
1799
  }, Ic = le.sm;
1800
1800
  var Tc = 0.6;
1801
- var Lc = (e, t) => ({ familyDefault: lr(t) ?? lr(e.fontFamily) ?? lr(qt) ?? "" }), lr = (e) => e === void 0 || e.includes("var(") ? null : e.replace(/\s+/g, " ").trim(), te = (e, t) => `color-mix(in srgb, transparent, ${e} ${t * 100}%)`, Mc = (e, t) => `hsl(from ${e} h s calc(l * ${1 - t}))`, rA = (e, t) => `hsl(from ${e} h s calc(l * ${1 + t}))`, nA = (e) => /^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$/.test(e), oA = (e) => e.length === 0 ? !1 : typeof CSS < "u" && typeof CSS.supports == "function" ? CSS.supports("color", e) : /^#([0-9a-fA-F]{3}|[0-9a-fA-F]{4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/.test(e), cr = (e) => `${e}px`, ca = {
1801
+ var Lc = (e, t) => ({ familyDefault: lr(t) ?? lr(e.fontFamily) ?? lr(qt) ?? "" }), lr = (e) => e === void 0 || e.includes("var(") ? null : e.replace(/\s+/g, " ").trim(), te = (e, t) => `color-mix(in srgb, transparent, ${e} ${t * 100}%)`, Mc = (e, t) => `hsl(from ${e} h s calc(l * ${1 - t}))`, tA = (e, t) => `hsl(from ${e} h s calc(l * ${1 + t}))`, rA = (e) => /^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$/.test(e), nA = (e) => e.length === 0 ? !1 : typeof CSS < "u" && typeof CSS.supports == "function" ? CSS.supports("color", e) : /^#([0-9a-fA-F]{3}|[0-9a-fA-F]{4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/.test(e), cr = (e) => `${e}px`, ca = {
1802
1802
  tooltipRowGap: "4px",
1803
1803
  editorControlHeight: cr(32),
1804
1804
  legendSwatchGap: cr(8),
@@ -2125,7 +2125,7 @@ var fa = Y(Yc), Kc = ({ metrics: e, children: t }) => /* @__PURE__ */ s(fa.Provi
2125
2125
  } catch {
2126
2126
  return new Pn(new Yi());
2127
2127
  }
2128
- }, ya = Y(null), aA = ya.Provider, ed = null, Re = () => U(ya) ?? (ed ??= hu()), td = 11.7, rd = 0.75, Vn = 21.6, nd = "0 0 10 18", od = "M2.48935 16.9323L9.07098 9.82964C9.51595 9.34944 9.51504 8.60728 9.0689 8.12818L2.48866 1.06172C1.85811 0.384586 0.974477 0 0.049217 0H0V18H0.0443689C0.972463 18 1.85854 17.6131 2.48935 16.9323Z", ad = "_16vokpr0", id = (e, t) => e.mapping.y !== void 0 != (t.mainAxis === "y"), sd = (e, t) => {
2128
+ }, ya = Y(null), oA = ya.Provider, ed = null, Re = () => U(ya) ?? (ed ??= hu()), td = 11.7, rd = 0.75, Vn = 21.6, nd = "0 0 10 18", od = "M2.48935 16.9323L9.07098 9.82964C9.51595 9.34944 9.51504 8.60728 9.0689 8.12818L2.48866 1.06172C1.85811 0.384586 0.974477 0 0.049217 0H0V18H0.0443689C0.972463 18 1.85854 17.6131 2.48935 16.9323Z", ad = "_16vokpr0", id = (e, t) => e.mapping.y !== void 0 != (t.mainAxis === "y"), sd = (e, t) => {
2129
2129
  const r = R(e ? 1 - t : t);
2130
2130
  return e ? {
2131
2131
  x1: "0%",
@@ -2322,7 +2322,7 @@ var pd = "_2qyyu60", md = 2, Ad = 12, yd = 12, zn = 1, jn = 2, xd = 4, bd = 3, w
2322
2322
  ...e.textTransform === void 0 ? {} : { textTransform: e.textTransform },
2323
2323
  ...wa(e),
2324
2324
  ...ba(e)
2325
- }), iA = (e, t) => zr({
2325
+ }), aA = (e, t) => zr({
2326
2326
  [e.fontFamily]: t.fontFamily ?? A.fontFamily,
2327
2327
  [e.fontSize]: `${t.fontSize}px`,
2328
2328
  [e.fontWeight]: String(t.fontWeight),
@@ -3490,7 +3490,7 @@ function _t(e) {
3490
3490
  function uu(e) {
3491
3491
  return e ? _t(e.render).overlay : !1;
3492
3492
  }
3493
- function sA(e, t) {
3493
+ function iA(e, t) {
3494
3494
  return typeof e == "string" ? {
3495
3495
  ...t,
3496
3496
  geom: e
@@ -3511,7 +3511,7 @@ var vu = [
3511
3511
  "right",
3512
3512
  "bottom",
3513
3513
  "left"
3514
- ], lA = () => jr((e) => ({
3514
+ ], sA = () => jr((e) => ({
3515
3515
  boundary: null,
3516
3516
  setBoundary: (t) => e((r) => gu(r.boundary, t) ? r : { boundary: t })
3517
3517
  })), wr = (e, t) => e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height, Sr = (e, t) => vu.every((r) => e[r].from === t[r].from && e[r].to === t[r].to), gu = (e, t) => e === t ? !0 : e === null || t === null ? !1 : wr(e.frame, t.frame) && wr(e.client, t.client) && Sr(e.frameSpans, t.frameSpans) && Sr(e.clientSpans, t.clientSpans), kr = (e) => {
@@ -4283,7 +4283,8 @@ function ht(e) {
4283
4283
  return Je(t, e);
4284
4284
  }
4285
4285
  var mh = "_19519k80";
4286
- var Ah = "_19519k82", yh = "_19519k83", xh = "_19519k85", bh = "_19519k86", wh = "_19519k87", Sh = "_19519k88", kh = (e) => {
4286
+ var Ah = "_19519k82", yh = "_19519k83";
4287
+ var xh = "_19519k86", bh = "_19519k87", wh = "_19519k88", Sh = (e) => {
4287
4288
  const { overlayRef: t } = ze(), r = H(null), [n, o] = j(!1), a = kr(e);
4288
4289
  return F(() => {
4289
4290
  const i = t.current;
@@ -4303,7 +4304,7 @@ var Ah = "_19519k82", yh = "_19519k83", xh = "_19519k85", bh = "_19519k86", wh =
4303
4304
  cursorRef: r,
4304
4305
  isInside: n
4305
4306
  };
4306
- }, Eh = 24, Ph = 8, Rh = {
4307
+ }, kh = 24, Eh = 8, Ph = {
4307
4308
  x: 0,
4308
4309
  y: 0,
4309
4310
  top: 0,
@@ -4315,8 +4316,8 @@ var Ah = "_19519k82", yh = "_19519k83", xh = "_19519k85", bh = "_19519k86", wh =
4315
4316
  toJSON: () => ({})
4316
4317
  }, Tt = {
4317
4318
  boundary: [],
4318
- padding: Ph
4319
- }, Ch = () => {
4319
+ padding: Eh
4320
+ }, Rh = () => {
4320
4321
  const e = D(ae((y) => ({
4321
4322
  layers: y.layers,
4322
4323
  coordSystem: y.coordSystem,
@@ -4325,8 +4326,8 @@ var Ah = "_19519k82", yh = "_19519k83", xh = "_19519k85", bh = "_19519k86", wh =
4325
4326
  numberFormat: y.config.numberFormat,
4326
4327
  parsingLocale: y.config.parsingLocale,
4327
4328
  comments: y.annotations.comments
4328
- }))), { formattingLocale: t } = ne(), r = M(), n = ht((y) => y.hover), o = ht((y) => y.tooltipAnchor), a = ht((y) => y.isPointerSuspended), i = Ae("Tooltip", Bh), l = H(() => {
4329
- }), { cursorRef: c, isInside: d } = kh(() => l.current()), u = b(() => cs({
4329
+ }))), { formattingLocale: t } = ne(), r = M(), n = ht((y) => y.hover), o = ht((y) => y.tooltipAnchor), a = ht((y) => y.isPointerSuspended), i = Ae("Tooltip", Ch), l = H(() => {
4330
+ }), { cursorRef: c, isInside: d } = Sh(() => l.current()), u = b(() => cs({
4330
4331
  ...e,
4331
4332
  hover: n,
4332
4333
  readers: r,
@@ -4339,10 +4340,10 @@ var Ah = "_19519k82", yh = "_19519k83", xh = "_19519k85", bh = "_19519k86", wh =
4339
4340
  t,
4340
4341
  o
4341
4342
  ]), h = !a && u !== null && (d || o !== null), g = b(() => ({ getBoundingClientRect: () => {
4342
- if (o !== null) return Lh(o);
4343
+ if (o !== null) return Th(o);
4343
4344
  const y = c.current;
4344
- return y === null ? Rh : Th(y);
4345
- } }), [c, o]), { refs: f, floatingStyles: v, update: m } = Go(Mh({
4345
+ return y === null ? Ph : Ih(y);
4346
+ } }), [c, o]), { refs: f, floatingStyles: v, update: m } = Go(Lh({
4346
4347
  isOpen: h,
4347
4348
  tooltipAnchor: o,
4348
4349
  virtualReference: g
@@ -4351,17 +4352,17 @@ var Ah = "_19519k82", yh = "_19519k83", xh = "_19519k85", bh = "_19519k86", wh =
4351
4352
  const p = /* @__PURE__ */ s("div", {
4352
4353
  ref: f.setFloating,
4353
4354
  role: "tooltip",
4354
- className: Sh,
4355
+ className: wh,
4355
4356
  style: v,
4356
4357
  "data-testid": "chart-tooltip",
4357
4358
  children: /* @__PURE__ */ s(i, { content: u })
4358
4359
  }), x = Oa();
4359
4360
  return x ? Fo(/* @__PURE__ */ s(ih, { children: p }), x) : p;
4360
- }, Bh = ({ content: e }) => {
4361
- const t = Re(), r = D((d) => d.coordSystem), n = I(il, M()), o = bt([n.box.fill]), a = K(n.heading), i = K(n.label), l = K(n.value), c = { paddingInline: n.box.paddingInline };
4361
+ }, Ch = ({ content: e }) => {
4362
+ const t = Re(), r = D((u) => u.coordSystem), n = I(il, M()), o = bt([n.box.fill]), a = K(n.heading), i = K(n.label), l = K(n.value), c = { paddingInline: n.box.paddingInline }, d = e.rows.some((u) => u.swatchColor !== null);
4362
4363
  return /* @__PURE__ */ w("div", {
4363
4364
  className: mh,
4364
- style: Ih(n.box, o(n.box.fill)),
4365
+ style: Bh(n.box, o(n.box.fill)),
4365
4366
  "data-testid": "chart-tooltip-body",
4366
4367
  children: [
4367
4368
  e.comment !== null && /* @__PURE__ */ s("div", {
@@ -4384,29 +4385,30 @@ var Ah = "_19519k82", yh = "_19519k83", xh = "_19519k85", bh = "_19519k86", wh =
4384
4385
  }),
4385
4386
  /* @__PURE__ */ s("div", {
4386
4387
  className: Ah,
4387
- children: e.rows.map((d) => {
4388
- const u = t(d.geom, r.type);
4389
- return /* @__PURE__ */ s(Nh, {
4390
- row: d,
4391
- swatchShape: u?.swatchShape ?? "square",
4392
- shouldHighlight: d.isPrimary && e.rows.length > 1,
4388
+ children: e.rows.map((u) => {
4389
+ const h = t(u.geom, r.type);
4390
+ return /* @__PURE__ */ s(Mh, {
4391
+ row: u,
4392
+ swatchShape: h?.swatchShape ?? "square",
4393
+ hasSwatches: d,
4394
+ shouldHighlight: u.isPrimary && e.rows.length > 1,
4393
4395
  labelStyle: i,
4394
4396
  valueStyle: l,
4395
4397
  paddingInline: n.box.paddingInline,
4396
4398
  highlightBackground: W(n.primaryRow.fill)
4397
- }, d.key);
4399
+ }, u.key);
4398
4400
  })
4399
4401
  })
4400
4402
  ]
4401
4403
  });
4402
- }, Ih = (e, t) => ({
4404
+ }, Bh = (e, t) => ({
4403
4405
  ...tr(e.fill, t),
4404
4406
  borderRadius: St(e.cornerRadius),
4405
4407
  paddingBlock: e.paddingBlock,
4406
4408
  boxShadow: $e(e.shadow),
4407
4409
  ...e.alpha === void 0 ? {} : { opacity: e.alpha },
4408
4410
  ...e.strokeWidth > 0 ? { border: `${e.strokeWidth}px solid ${e.stroke}` } : {}
4409
- }), Th = (e) => ({
4411
+ }), Ih = (e) => ({
4410
4412
  x: e.clientX,
4411
4413
  y: e.clientY,
4412
4414
  top: e.clientY,
@@ -4416,7 +4418,7 @@ var Ah = "_19519k82", yh = "_19519k83", xh = "_19519k85", bh = "_19519k86", wh =
4416
4418
  width: 0,
4417
4419
  height: 0,
4418
4420
  toJSON: () => ({})
4419
- }), Lh = (e) => ({
4421
+ }), Th = (e) => ({
4420
4422
  x: e.x,
4421
4423
  y: e.y,
4422
4424
  top: e.y,
@@ -4426,7 +4428,7 @@ var Ah = "_19519k82", yh = "_19519k83", xh = "_19519k85", bh = "_19519k86", wh =
4426
4428
  width: 0,
4427
4429
  height: 0,
4428
4430
  toJSON: () => ({})
4429
- }), Mh = ({ isOpen: e, tooltipAnchor: t, virtualReference: r }) => ({
4431
+ }), Lh = ({ isOpen: e, tooltipAnchor: t, virtualReference: r }) => ({
4430
4432
  open: e,
4431
4433
  placement: t !== null ? t.placement : "right",
4432
4434
  middleware: t !== null ? [
@@ -4434,21 +4436,21 @@ var Ah = "_19519k82", yh = "_19519k83", xh = "_19519k85", bh = "_19519k86", wh =
4434
4436
  mr(Tt),
4435
4437
  fr(Tt)
4436
4438
  ] : [
4437
- pr(Eh),
4439
+ pr(kh),
4438
4440
  fr(Tt),
4439
4441
  mr(Tt)
4440
4442
  ],
4441
4443
  elements: { reference: r }
4442
- }), Nh = ({ row: e, swatchShape: t, shouldHighlight: r, labelStyle: n, valueStyle: o, paddingInline: a, highlightBackground: i }) => /* @__PURE__ */ w("div", {
4444
+ }), Mh = ({ row: e, swatchShape: t, hasSwatches: r, shouldHighlight: n, labelStyle: o, valueStyle: a, paddingInline: i, highlightBackground: l }) => /* @__PURE__ */ w("div", {
4443
4445
  className: yh,
4444
4446
  style: {
4445
- paddingInline: a,
4446
- ...r ? { backgroundColor: i } : {}
4447
+ paddingInline: i,
4448
+ ...n ? { backgroundColor: l } : {}
4447
4449
  },
4448
4450
  "data-testid": "chart-tooltip-row",
4449
4451
  children: [
4450
- e.swatchColor === null ? /* @__PURE__ */ s("span", {
4451
- className: xh,
4452
+ e.swatchColor === null ? r && /* @__PURE__ */ s("span", {
4453
+ className: "_19519k85",
4452
4454
  "aria-hidden": !0
4453
4455
  }) : /* @__PURE__ */ s(wt, {
4454
4456
  shape: t,
@@ -4462,14 +4464,14 @@ var Ah = "_19519k82", yh = "_19519k83", xh = "_19519k85", bh = "_19519k86", wh =
4462
4464
  symbol: e.swatchSymbol
4463
4465
  }),
4464
4466
  /* @__PURE__ */ s("span", {
4465
- className: bh,
4466
- style: n,
4467
+ className: xh,
4468
+ style: o,
4467
4469
  "data-testid": "chart-tooltip-label",
4468
4470
  children: e.label
4469
4471
  }),
4470
4472
  /* @__PURE__ */ s("span", {
4471
- className: wh,
4472
- style: o,
4473
+ className: bh,
4474
+ style: a,
4473
4475
  "data-testid": "chart-tooltip-value",
4474
4476
  children: e.value
4475
4477
  })
@@ -4478,12 +4480,12 @@ var Ah = "_19519k82", yh = "_19519k83", xh = "_19519k85", bh = "_19519k86", wh =
4478
4480
  plansByLayerId: null,
4479
4481
  coordKey: null,
4480
4482
  introEndsAtMs: 0
4481
- }, ln = Y(Er), Oh = ({ intro: e, children: t }) => {
4483
+ }, ln = Y(Er), Nh = ({ intro: e, children: t }) => {
4482
4484
  const { layers: r, coordSystem: n, scales: o } = D(ae((i) => ({
4483
4485
  layers: i.layers,
4484
4486
  coordSystem: i.coordSystem,
4485
4487
  scales: i.scales
4486
- }))), [a] = j(() => Fh({
4488
+ }))), [a] = j(() => Dh({
4487
4489
  layers: r,
4488
4490
  coordSystem: n,
4489
4491
  scales: o,
@@ -4493,13 +4495,13 @@ var Ah = "_19519k82", yh = "_19519k83", xh = "_19519k85", bh = "_19519k86", wh =
4493
4495
  value: a,
4494
4496
  children: t
4495
4497
  });
4496
- }, Hh = () => {
4497
- const { introEndsAtMs: e } = U(ln), [t] = j(() => Gh(e) / 1e3);
4498
+ }, Oh = () => {
4499
+ const { introEndsAtMs: e } = U(ln), [t] = j(() => Fh(e) / 1e3);
4498
4500
  return t;
4499
- }, Dh = (e) => {
4501
+ }, Hh = (e) => {
4500
4502
  const { plansByLayerId: t, coordKey: r } = U(ln), n = D((o) => ja(o.coordSystem));
4501
4503
  return t === null || r !== n ? null : t.get(e) ?? null;
4502
- }, Fh = ({ layers: e, coordSystem: t, scales: r, intro: n }) => {
4504
+ }, Dh = ({ layers: e, coordSystem: t, scales: r, intro: n }) => {
4503
4505
  if (!n.enabled) return Er;
4504
4506
  const o = {
4505
4507
  durationScale: n.durationScale,
@@ -4522,13 +4524,13 @@ var Ah = "_19519k82", yh = "_19519k83", xh = "_19519k85", bh = "_19519k86", wh =
4522
4524
  coordKey: ja(t),
4523
4525
  introEndsAtMs: performance.now() + i * 1e3
4524
4526
  };
4525
- }, Gh = (e) => Math.max(0, e - performance.now()), ja = (e) => e.type === "cartesian" ? `cartesian-${e.mainAxis}` : e.type, Ya = (e) => ({
4527
+ }, Fh = (e) => Math.max(0, e - performance.now()), ja = (e) => e.type === "cartesian" ? `cartesian-${e.mainAxis}` : e.type, Ya = (e) => ({
4526
4528
  x: e.axisLabel.x().resolve(),
4527
4529
  y: e.axisLabel.y().resolve()
4528
4530
  }), Ka = (e) => ({
4529
4531
  x: e.tickLine.x().resolve(),
4530
4532
  y: e.tickLine.y().resolve()
4531
- }), Wh = (e) => {
4533
+ }), Gh = (e) => {
4532
4534
  const t = e.graph();
4533
4535
  return ll(W(t.get("fill")), t.get("alpha") ?? 1);
4534
4536
  }, cn = (e) => (t, r) => r === void 0 ? e.tickLabel[t]().resolve() : e.tickLabel[r](t).resolve(), rr = (e) => {
@@ -4542,7 +4544,7 @@ var Ah = "_19519k82", yh = "_19519k83", xh = "_19519k85", bh = "_19519k86", wh =
4542
4544
  }, Qa = (e) => ({
4543
4545
  gap: e.legend().resolve().gap,
4544
4546
  popover: e.legend.popover().resolve()
4545
- }), dn = (e) => e.headline().resolve(), Uh = ({ textMeasurer: e, tickLabelStyles: t, tickLineStyles: r, familyDefault: n }) => (o) => {
4547
+ }), dn = (e) => e.headline().resolve(), Wh = ({ textMeasurer: e, tickLabelStyles: t, tickLineStyles: r, familyDefault: n }) => (o) => {
4546
4548
  const a = o.position === "top" || o.position === "bottom", i = ye(o.scaleAestheticKey), { offset: l, ...c } = t(i, o.position), d = o.ticksVisible ? Math.max(l, r[i].length) : l, u = ee(c, n), h = o.ticks.map((f) => e.measureText(f.formattedLabel, u)), g = o.labelMaxWidthPx ?? Number.POSITIVE_INFINITY;
4547
4549
  if (a) {
4548
4550
  if (o.labelRotation !== 0) {
@@ -4552,30 +4554,30 @@ var Ah = "_19519k82", yh = "_19519k83", xh = "_19519k85", bh = "_19519k86", wh =
4552
4554
  return Math.max(...h.map((f) => f.height)) + d;
4553
4555
  }
4554
4556
  return to(h.map((f) => f.width), g) + d;
4555
- }, to = (e, t) => Math.min(Math.max(...e), t), Vh = ({ axisLabelStyles: e }) => (t) => Fe(e[ye(t.scaleAestheticKey)]), Xa = ({ textMeasurer: e, dataLabelStyles: t, familyDefault: r }) => (n, o, a) => {
4557
+ }, to = (e, t) => Math.min(Math.max(...e), t), Uh = ({ axisLabelStyles: e }) => (t) => Fe(e[ye(t.scaleAestheticKey)]), Xa = ({ textMeasurer: e, dataLabelStyles: t, familyDefault: r }) => (n, o, a) => {
4556
4558
  const i = t[n][o], l = e.measureText(a, ee(i, r));
4557
4559
  return {
4558
4560
  ...l,
4559
4561
  width: l.width + i.paddingInline * 2,
4560
4562
  height: l.height + i.paddingBlock * 2
4561
4563
  };
4562
- }, zh = ({ textMeasurer: e, familyDefault: t }) => (r, n) => e.measureText(r, ee(n, t)), jh = ({ textMeasurer: e, familyDefault: t, headlineRowGap: r, itemGap: n, headlineItemStyles: o }) => (a, i) => {
4564
+ }, Vh = ({ textMeasurer: e, familyDefault: t }) => (r, n) => e.measureText(r, ee(n, t)), zh = ({ textMeasurer: e, familyDefault: t, headlineRowGap: r, itemGap: n, headlineItemStyles: o }) => (a, i) => {
4563
4565
  const l = qa(a, o[i], e, t, r);
4564
4566
  return {
4565
4567
  width: Ja(l.map((c) => c.width)) + Math.max(0, l.length - 1) * n,
4566
4568
  height: Math.max(0, ...l.map((c) => c.height))
4567
4569
  };
4568
- }, Yh = ({ textMeasurer: e, familyDefault: t, headlineRowGap: r, headlineItemStyles: n }) => (o, a) => qa(o, n[a], e, t, r).map((i) => i.width), Kh = ({ textMeasurer: e, familyDefault: t, headlineItemStyles: r }) => (n, o, a = !1) => {
4570
+ }, jh = ({ textMeasurer: e, familyDefault: t, headlineRowGap: r, headlineItemStyles: n }) => (o, a) => qa(o, n[a], e, t, r).map((i) => i.width), Yh = ({ textMeasurer: e, familyDefault: t, headlineItemStyles: r }) => (n, o, a = !1) => {
4569
4571
  const i = Lo(r[o], a);
4570
4572
  return {
4571
4573
  width: e.measureText(n, ee(i, t)).width,
4572
4574
  height: Fe(i)
4573
4575
  };
4574
- }, Qh = (e) => {
4575
- const t = jh(e), r = Kh(e);
4576
+ }, Kh = (e) => {
4577
+ const t = zh(e), r = Yh(e);
4576
4578
  return (n, o, a = !1) => n.kind === "perGroup" ? t(n, o) : r(n.value, o, a);
4577
4579
  }, qa = (e, t, r, n, o) => {
4578
- const a = (i) => Xh(i, t, r, n);
4580
+ const a = (i) => Qh(i, t, r, n);
4579
4581
  return e.items.map((i) => {
4580
4582
  const l = bo(i, t).map(a), c = Math.max(0, l.length - 1) * o;
4581
4583
  return {
@@ -4583,18 +4585,18 @@ var Ah = "_19519k82", yh = "_19519k83", xh = "_19519k85", bh = "_19519k86", wh =
4583
4585
  height: Ja(l.map((d) => d.height)) + c
4584
4586
  };
4585
4587
  });
4586
- }, Xh = (e, t, r, n) => {
4588
+ }, Qh = (e, t, r, n) => {
4587
4589
  let o = 0, a = 0;
4588
4590
  for (const i of e.segments) if (i.kind === "text") {
4589
- const l = qh(t, i.textRole);
4590
- o += r.measureText(i.text, ee(l, n)).width, a = Math.max(a, Jh(l));
4591
+ const l = Xh(t, i.textRole);
4592
+ o += r.measureText(i.text, ee(l, n)).width, a = Math.max(a, qh(l));
4591
4593
  } else
4592
4594
  o += i.size, a = Math.max(a, i.size);
4593
4595
  return {
4594
4596
  width: o + Math.max(0, e.segments.length - 1) * e.gap,
4595
4597
  height: a
4596
4598
  };
4597
- }, qh = (e, t) => {
4599
+ }, Xh = (e, t) => {
4598
4600
  switch (t) {
4599
4601
  case "value":
4600
4602
  return e.number;
@@ -4608,13 +4610,13 @@ var Ah = "_19519k82", yh = "_19519k83", xh = "_19519k85", bh = "_19519k86", wh =
4608
4610
  default:
4609
4611
  return t;
4610
4612
  }
4611
- }, Jh = (e) => e.fontSize * (e.lineHeight ?? Ic), Ja = (e) => e.reduce((t, r) => t + r, 0), Zh = (e, t) => e ? t : 0, Gt = (e, t, r) => {
4613
+ }, qh = (e) => e.fontSize * (e.lineHeight ?? Ic), Ja = (e) => e.reduce((t, r) => t + r, 0), Jh = (e, t) => e ? t : 0, Gt = (e, t, r) => {
4612
4614
  if (r) {
4613
4615
  const n = Number(e.size);
4614
4616
  return Number.isFinite(n) && n > 0 ? n : 0;
4615
4617
  }
4616
- return Zh(e.color, t);
4617
- }, $h = ({ textMeasurer: e, familyDefault: t, legendItemStyle: r, directLabelStyle: n, legendSwatchGap: o }) => (a) => {
4618
+ return Jh(e.color, t);
4619
+ }, Zh = ({ textMeasurer: e, familyDefault: t, legendItemStyle: r, directLabelStyle: n, legendSwatchGap: o }) => (a) => {
4618
4620
  const i = a.position === "top" || a.position === "bottom";
4619
4621
  if (a.display === "direct") {
4620
4622
  const m = Fe(n);
@@ -4632,7 +4634,7 @@ var Ah = "_19519k82", yh = "_19519k83", xh = "_19519k85", bh = "_19519k86", wh =
4632
4634
  return x + (x > 0 ? o : 0) + p;
4633
4635
  });
4634
4636
  return Math.max(...v) + g;
4635
- }, _h = ({ textMeasurer: e, tickLabelStyles: t, familyDefault: r }) => (n, o) => e.measureText(n, ee(t(o), r)), ev = Object.freeze({}), tv = ({ textMeasurer: e, metrics: t, overrides: r = ev }) => {
4637
+ }, $h = ({ textMeasurer: e, tickLabelStyles: t, familyDefault: r }) => (n, o) => e.measureText(n, ee(t(o), r)), _h = Object.freeze({}), ev = ({ textMeasurer: e, metrics: t, overrides: r = _h }) => {
4636
4638
  const n = M(), o = I(Ya, n), a = I(rr, n), i = I(To, n), l = I(jt, n), c = I(cn, n), d = I(Ka, n), u = H(r);
4637
4639
  return u.current = r, b(() => {
4638
4640
  if (!e) return null;
@@ -4646,24 +4648,24 @@ var Ah = "_19519k82", yh = "_19519k83", xh = "_19519k85", bh = "_19519k86", wh =
4646
4648
  medium: Mt(n, "medium"),
4647
4649
  large: Mt(n, "large")
4648
4650
  }
4649
- }, v = Uh({
4651
+ }, v = Wh({
4650
4652
  textMeasurer: e,
4651
4653
  tickLabelStyles: c,
4652
4654
  tickLineStyles: d,
4653
4655
  familyDefault: h
4654
- }), m = Vh({ axisLabelStyles: o }), p = $h({
4656
+ }), m = Uh({ axisLabelStyles: o }), p = Zh({
4655
4657
  textMeasurer: e,
4656
4658
  familyDefault: h,
4657
4659
  legendItemStyle: l,
4658
4660
  directLabelStyle: i,
4659
4661
  legendSwatchGap: t.legendSwatchGap
4660
- }), x = Qh(f), y = Yh(f), S = {
4662
+ }), x = Kh(f), y = jh(f), S = {
4661
4663
  measureText: (k, C) => e.measureText(k, C),
4662
4664
  textScale: g
4663
4665
  };
4664
4666
  return {
4665
4667
  measureAxis: (k) => {
4666
- if (nv(k)) return 0;
4668
+ if (rv(k)) return 0;
4667
4669
  const C = u.current.measureAxis;
4668
4670
  return C ? C(k, S) : v(k);
4669
4671
  },
@@ -4672,18 +4674,18 @@ var Ah = "_19519k82", yh = "_19519k83", xh = "_19519k85", bh = "_19519k86", wh =
4672
4674
  return C ? C(k, S) : m(k);
4673
4675
  },
4674
4676
  measureLegend: (k) => {
4675
- if (ov(k)) return 0;
4677
+ if (nv(k)) return 0;
4676
4678
  const C = u.current.measureLegend;
4677
4679
  return C ? C(k, S) : p(k);
4678
4680
  },
4679
4681
  measureHeadline: (k, C, E) => (u.current.measureHeadline ?? x)(k, C, E),
4680
4682
  measureHeadlineItemWidths: (k, C) => (u.current.measureHeadlineItemWidths ?? y)(k, C),
4681
- measureTickLabel: _h({
4683
+ measureTickLabel: $h({
4682
4684
  textMeasurer: e,
4683
4685
  tickLabelStyles: c,
4684
4686
  familyDefault: h
4685
4687
  }),
4686
- measureDifferenceArrowLabel: zh({
4688
+ measureDifferenceArrowLabel: Vh({
4687
4689
  textMeasurer: e,
4688
4690
  familyDefault: h
4689
4691
  }),
@@ -4704,7 +4706,7 @@ var Ah = "_19519k82", yh = "_19519k83", xh = "_19519k85", bh = "_19519k86", wh =
4704
4706
  d,
4705
4707
  n
4706
4708
  ]);
4707
- }, rv = ({ measurer: e, axes: t, numberFormat: r, parsingLocale: n, formattedLegends: o, containerSize: a, externalMeasurements: i, headline: l, formattingLocale: c, annotations: d, layers: u, coordSystem: h, overflowStrategy: g, panelBorder: f, padding: v, margins: m }) => {
4709
+ }, tv = ({ measurer: e, axes: t, numberFormat: r, parsingLocale: n, formattedLegends: o, containerSize: a, externalMeasurements: i, headline: l, formattingLocale: c, annotations: d, layers: u, coordSystem: h, overflowStrategy: g, panelBorder: f, padding: v, margins: m }) => {
4708
4710
  const p = M(), x = Yr(), y = b(() => (S) => Io(p, S), [p]);
4709
4711
  return b(() => e ? new Xi(e).compile({
4710
4712
  axes: t,
@@ -4746,18 +4748,18 @@ var Ah = "_19519k82", yh = "_19519k83", xh = "_19519k85", bh = "_19519k86", wh =
4746
4748
  m,
4747
4749
  e
4748
4750
  ]);
4749
- }, nv = (e) => !e.isVisible || e.ticks.length === 0, ov = (e) => e.items.length === 0, av = () => {
4751
+ }, rv = (e) => !e.isVisible || e.ticks.length === 0, nv = (e) => e.items.length === 0, ov = () => {
4750
4752
  const { formattingLocale: e } = ne(), t = D((r) => r.config.parsingLocale);
4751
4753
  return e ?? t;
4752
4754
  }, ro = 0.5, Za = Y(/* @__PURE__ */ new Map()), $a = Y(() => {
4753
- }), _a = Y(/* @__PURE__ */ new Set()), iv = ({ children: e }) => {
4755
+ }), _a = Y(/* @__PURE__ */ new Set()), av = ({ children: e }) => {
4754
4756
  const [t, r] = j(() => /* @__PURE__ */ new Map()), [n] = j(() => /* @__PURE__ */ new Set()), o = H(/* @__PURE__ */ new Map()), a = ce((i, l, c) => {
4755
4757
  const d = o.current.get(i) ?? /* @__PURE__ */ new Set();
4756
4758
  if (c !== null) {
4757
- d.add(l), o.current.set(i, d), r((u) => uv(u, i, c));
4759
+ d.add(l), o.current.set(i, d), r((u) => dv(u, i, c));
4758
4760
  return;
4759
4761
  }
4760
- d.delete(l), !(d.size > 0) && (o.current.delete(i), r((u) => hv(u, i)));
4762
+ d.delete(l), !(d.size > 0) && (o.current.delete(i), r((u) => uv(u, i)));
4761
4763
  }, []);
4762
4764
  return /* @__PURE__ */ s($a.Provider, {
4763
4765
  value: a,
@@ -4769,8 +4771,8 @@ var Ah = "_19519k82", yh = "_19519k83", xh = "_19519k85", bh = "_19519k86", wh =
4769
4771
  })
4770
4772
  })
4771
4773
  });
4772
- }, sv = () => U(Za), lv = () => U($a), cv = (e) => {
4773
- const t = lv(), r = $(), n = H(null);
4774
+ }, iv = () => U(Za), sv = () => U($a), lv = (e) => {
4775
+ const t = sv(), r = $(), n = H(null);
4774
4776
  return F(() => {
4775
4777
  if (typeof ResizeObserver > "u") return;
4776
4778
  const o = n.current;
@@ -4789,44 +4791,44 @@ var Ah = "_19519k82", yh = "_19519k83", xh = "_19519k85", bh = "_19519k86", wh =
4789
4791
  r,
4790
4792
  t
4791
4793
  ]), n;
4792
- }, dv = () => U(_a), uv = (e, t, r) => {
4794
+ }, cv = () => U(_a), dv = (e, t, r) => {
4793
4795
  const n = e.get(t);
4794
4796
  if (n !== void 0 && Math.abs(n.width - r.width) < ro && Math.abs(n.height - r.height) < ro) return e;
4795
4797
  const o = new Map(e);
4796
4798
  return o.set(t, r), o;
4797
- }, hv = (e, t) => {
4799
+ }, uv = (e, t) => {
4798
4800
  if (!e.has(t)) return e;
4799
4801
  const r = new Map(e);
4800
4802
  return r.delete(t), r;
4801
- }, cA = (e, t) => e !== null && e.annotationId === t ? e : null, vv = (e, t) => e.annotationId === t.annotationId && e.translation.x === t.translation.x && e.translation.y === t.translation.y, dA = (e, t, r) => e !== null && e.annotationId === t && e.endpoint === r ? e : null, gv = (e, t) => e.annotationId === t.annotationId && e.endpoint === t.endpoint && e.anchor.x === t.anchor.x && e.anchor.y === t.anchor.y, uA = (e, t, r) => e !== null && e.annotationId === t && e.endpoint === r ? e : null, fv = (e, t) => e.annotationId === t.annotationId && e.endpoint === t.endpoint && Zi(e.point.anchor, t.point.anchor), hA = (e, t) => e !== null && e.annotationId === t ? e : null, pv = (e, t) => e.annotationId === t.annotationId && e.region.x === t.region.x && e.region.y === t.region.y && e.region.width === t.region.width && e.region.height === t.region.height, vA = (e, t) => e !== null && e.annotationId === t ? e : null, mv = (e, t) => e.annotationId === t.annotationId && e.at.x === t.at.x && e.width === t.width && e.shift === t.shift, vt = ({ standingInteraction: e }, t) => e !== null && Oe(e, t) ? e : null, Av = (e, t) => {
4803
+ }, lA = (e, t) => e !== null && e.annotationId === t ? e : null, hv = (e, t) => e.annotationId === t.annotationId && e.translation.x === t.translation.x && e.translation.y === t.translation.y, cA = (e, t, r) => e !== null && e.annotationId === t && e.endpoint === r ? e : null, vv = (e, t) => e.annotationId === t.annotationId && e.endpoint === t.endpoint && e.anchor.x === t.anchor.x && e.anchor.y === t.anchor.y, dA = (e, t, r) => e !== null && e.annotationId === t && e.endpoint === r ? e : null, gv = (e, t) => e.annotationId === t.annotationId && e.endpoint === t.endpoint && Zi(e.point.anchor, t.point.anchor), uA = (e, t) => e !== null && e.annotationId === t ? e : null, fv = (e, t) => e.annotationId === t.annotationId && e.region.x === t.region.x && e.region.y === t.region.y && e.region.width === t.region.width && e.region.height === t.region.height, hA = (e, t) => e !== null && e.annotationId === t ? e : null, pv = (e, t) => e.annotationId === t.annotationId && e.at.x === t.at.x && e.width === t.width && e.shift === t.shift, vt = ({ standingInteraction: e }, t) => e !== null && Oe(e, t) ? e : null, mv = (e, t) => {
4802
4804
  if (e === null) return !1;
4803
4805
  switch (t.kind) {
4804
4806
  case "difference-arrow-endpoint-drag":
4805
- return Oe(e, t.kind) && fv(e, t);
4806
- case "arrow-endpoint-drag":
4807
4807
  return Oe(e, t.kind) && gv(e, t);
4808
- case "move-drag":
4808
+ case "arrow-endpoint-drag":
4809
4809
  return Oe(e, t.kind) && vv(e, t);
4810
+ case "move-drag":
4811
+ return Oe(e, t.kind) && hv(e, t);
4810
4812
  case "shape-resize-drag":
4811
- return Oe(e, t.kind) && pv(e, t);
4813
+ return Oe(e, t.kind) && fv(e, t);
4812
4814
  case "text-resize-drag":
4813
- return Oe(e, t.kind) && mv(e, t);
4815
+ return Oe(e, t.kind) && pv(e, t);
4814
4816
  case "chrome-popup":
4815
4817
  return Oe(e, t.kind);
4816
4818
  case "menu":
4817
4819
  return !1;
4818
4820
  }
4819
- }, Oe = (e, t) => e.kind === t, gA = (e, t, r, n) => {
4821
+ }, Oe = (e, t) => e.kind === t, vA = (e, t, r, n) => {
4820
4822
  const o = ei(r.layerId, e, t, n);
4821
4823
  return o === null ? null : {
4822
4824
  observationIndex: e,
4823
4825
  predicate: o.predicate,
4824
4826
  selectedFor: r
4825
4827
  };
4826
- }, fA = ({ observationIndex: e, predicate: t, selectedFor: r }, n, o) => {
4828
+ }, gA = ({ observationIndex: e, predicate: t, selectedFor: r }, n, o) => {
4827
4829
  const a = ei(r.layerId, e, n, o);
4828
4830
  return a !== null && xo(a.predicate, t) ? a.standing : null;
4829
- }, yv = (e, t) => e === t ? !0 : e === null || t === null ? !1 : e.observationIndex === t.observationIndex && xo(e.predicate, t.predicate) && dt(e.selectedFor, t.selectedFor), ei = (e, t, r, n) => {
4831
+ }, Av = (e, t) => e === t ? !0 : e === null || t === null ? !1 : e.observationIndex === t.observationIndex && xo(e.predicate, t.predicate) && dt(e.selectedFor, t.selectedFor), ei = (e, t, r, n) => {
4830
4832
  const o = wo(r, e), a = o?.data.getAt(t) ?? null;
4831
4833
  if (o === void 0 || a === null) return null;
4832
4834
  const i = is({
@@ -4842,10 +4844,10 @@ var Ah = "_19519k82", yh = "_19519k83", xh = "_19519k85", bh = "_19519k86", wh =
4842
4844
  },
4843
4845
  predicate: i.predicate
4844
4846
  };
4845
- }, pA = ({ isMenuTrigger: e, stamped: t, observations: r }) => e ? { kind: "menu-trigger" } : t !== null && t.kind !== "grid" ? t : r !== null ? {
4847
+ }, fA = ({ isMenuTrigger: e, stamped: t, observations: r }) => e ? { kind: "menu-trigger" } : t !== null && t.kind !== "grid" ? t : r !== null ? {
4846
4848
  kind: "observations",
4847
4849
  observations: r
4848
- } : t, xv = (e, t) => {
4850
+ } : t, yv = (e, t) => {
4849
4851
  if (e === t) return !0;
4850
4852
  if (e === null || t === null) return !1;
4851
4853
  if (e.kind === "annotation" && t.kind === "annotation") return dt(e.target, t.target);
@@ -4860,7 +4862,7 @@ var Ah = "_19519k82", yh = "_19519k83", xh = "_19519k85", bh = "_19519k86", wh =
4860
4862
  }, ti = (e) => {
4861
4863
  const t = e.editTargetUnderPointer;
4862
4864
  return t?.kind === "annotation" ? t.target.id : null;
4863
- }, bv = (e) => {
4865
+ }, xv = (e) => {
4864
4866
  const t = e.editTargetUnderPointer;
4865
4867
  return t !== null && t.kind !== "menu-trigger";
4866
4868
  }, ri = () => jr((e) => ({
@@ -4871,10 +4873,10 @@ var Ah = "_19519k82", yh = "_19519k83", xh = "_19519k85", bh = "_19519k86", wh =
4871
4873
  caret: null,
4872
4874
  pressedObservation: null,
4873
4875
  setMenuTrigger: (t) => e((r) => $i(r.menuTrigger, t) ? r : { menuTrigger: t }),
4874
- setEditTargetUnderPointer: (t) => e((r) => xv(r.editTargetUnderPointer, t) ? r : { editTargetUnderPointer: t }),
4875
- claimInteraction: (t) => e((r) => Av(r.standingInteraction, t) ? r : { standingInteraction: t }),
4876
+ setEditTargetUnderPointer: (t) => e((r) => yv(r.editTargetUnderPointer, t) ? r : { editTargetUnderPointer: t }),
4877
+ claimInteraction: (t) => e((r) => mv(r.standingInteraction, t) ? r : { standingInteraction: t }),
4876
4878
  releaseInteraction: (t) => e((r) => r.standingInteraction?.kind === t ? { standingInteraction: null } : r),
4877
- setSelectedOutline: (t) => e((r) => wv(r.selectedOutline, t) ? r : { selectedOutline: t }),
4879
+ setSelectedOutline: (t) => e((r) => bv(r.selectedOutline, t) ? r : { selectedOutline: t }),
4878
4880
  setCaret: (t) => e((r) => (r.caret?.annotationId ?? null) === t ? r : { caret: t === null ? null : {
4879
4881
  annotationId: t,
4880
4882
  editor: null
@@ -4883,35 +4885,35 @@ var Ah = "_19519k82", yh = "_19519k83", xh = "_19519k85", bh = "_19519k86", wh =
4883
4885
  ...r.caret,
4884
4886
  editor: t
4885
4887
  } }),
4886
- setPressedObservation: (t) => e((r) => yv(r.pressedObservation, t) ? r : { pressedObservation: t })
4887
- })), wv = (e, t) => e === t ? !0 : e === null || t === null ? !1 : dt(e.target, t.target) && e.frameScale === t.frameScale && wr(e.frame, t.frame) && Sr(e.frameSpans, t.frameSpans), un = Y(null), Sv = ri(), mA = ({ children: e }) => {
4888
+ setPressedObservation: (t) => e((r) => Av(r.pressedObservation, t) ? r : { pressedObservation: t })
4889
+ })), bv = (e, t) => e === t ? !0 : e === null || t === null ? !1 : dt(e.target, t.target) && e.frameScale === t.frameScale && wr(e.frame, t.frame) && Sr(e.frameSpans, t.frameSpans), un = Y(null), wv = ri(), pA = ({ children: e }) => {
4888
4890
  const [t] = j(() => ri());
4889
4891
  return /* @__PURE__ */ s(un.Provider, {
4890
4892
  value: t,
4891
4893
  children: e
4892
4894
  });
4893
- }, AA = () => {
4895
+ }, mA = () => {
4894
4896
  const e = U(un);
4895
4897
  if (e === null) throw new Error("useEditorStore must be used inside an <EditorProvider>.");
4896
4898
  return e;
4897
4899
  };
4898
4900
  function Ie(e) {
4899
- return Je(U(un) ?? Sv, e);
4901
+ return Je(U(un) ?? wv, e);
4900
4902
  }
4901
- var ni = Y(null), kv = ({ panelRect: e, children: t }) => {
4902
- const r = Pv(e);
4903
+ var ni = Y(null), Sv = ({ panelRect: e, children: t }) => {
4904
+ const r = Ev(e);
4903
4905
  return /* @__PURE__ */ s(ni.Provider, {
4904
4906
  value: r,
4905
4907
  children: t
4906
4908
  });
4907
- }, Ev = () => {
4909
+ }, kv = () => {
4908
4910
  const e = U(ni);
4909
4911
  if (e === null) throw new Error("Difference arrows read outside a <DifferenceArrowsProvider>.");
4910
4912
  return e;
4911
4913
  }, no = (e, t, r) => t.isStrokeAuthored ? t.stroke : Js(e.start, e.end, {
4912
4914
  start: r(e.start),
4913
4915
  end: r(e.end)
4914
- }) ?? t.stroke, Pv = (e) => {
4916
+ }) ?? t.stroke, Ev = (e) => {
4915
4917
  const { formattingLocale: t } = ne(), r = Le(), { fonts: n } = Ve(), o = Ie((p) => vt(p, "difference-arrow-endpoint-drag")), a = Al(), i = M(), { differenceArrows: l, mainAxis: c, parsingLocale: d } = D(ae((p) => ({
4916
4918
  differenceArrows: p.annotations.differenceArrows,
4917
4919
  mainAxis: Qs(p.coordSystem),
@@ -4926,7 +4928,7 @@ var ni = Y(null), kv = ({ panelRect: e, children: t }) => {
4926
4928
  h,
4927
4929
  g,
4928
4930
  u
4929
- ]), v = b(() => Rv(r, n.familyDefault), [r, n.familyDefault]), m = b(() => l.map((p) => {
4931
+ ]), v = b(() => Pv(r, n.familyDefault), [r, n.familyDefault]), m = b(() => l.map((p) => {
4930
4932
  const x = Io(i, p.id), y = oo(p, x, f, v);
4931
4933
  return {
4932
4934
  ...y,
@@ -4948,7 +4950,7 @@ var ni = Y(null), kv = ({ panelRect: e, children: t }) => {
4948
4950
  ]);
4949
4951
  return b(() => o === null ? m : m.map((p) => {
4950
4952
  if (p.id !== o.annotationId) return p;
4951
- const x = Cv(p.committedArrow, o);
4953
+ const x = Rv(p.committedArrow, o);
4952
4954
  return {
4953
4955
  ...oo(x, p.style, f, v),
4954
4956
  style: p.style,
@@ -4981,7 +4983,7 @@ var ni = Y(null), kv = ({ panelRect: e, children: t }) => {
4981
4983
  label: t.label
4982
4984
  })
4983
4985
  };
4984
- }, Rv = (e, t) => {
4986
+ }, Pv = (e, t) => {
4985
4987
  const r = /* @__PURE__ */ new Map();
4986
4988
  return (n, o) => {
4987
4989
  const a = ee(o, t), i = [
@@ -4997,24 +4999,24 @@ var ni = Y(null), kv = ({ panelRect: e, children: t }) => {
4997
4999
  const { width: c } = e.measureText(n, a);
4998
5000
  return r.set(i, c), c;
4999
5001
  };
5000
- }, Cv = (e, t) => ({
5002
+ }, Rv = (e, t) => ({
5001
5003
  ...e,
5002
5004
  start: t.endpoint === "start" ? t.point : e.start,
5003
5005
  end: t.endpoint === "end" ? t.point : e.end
5004
- }), Bv = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEoAAABgCAYAAAC65+QhAAAKo0lEQVR42u2de4wdVR3HPzN32+oSUQSsikEoosR3iko08oovEkwMpmiIr/KHIomgUYyPiBofkRjjE+MjEk3RQ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px949JcNpV1NraW7wKxxhWj2ezIi+7VxJrq1o2DivhNr0OS9qUBFCkvN4XgDO6lazdphrvVJUFD5j1jmV5+QdMOFExzD3jGdKOGLcud1Gv0P/rGVyH29B6MiWcmBbARiVAHBNg9srvsqQdV3cDIXuz9ut88Tpp4cSi5I77RSWLGdKOGxUoBXq0Z8cW2C7D8X+n0XFXUtz9nJRhz1lt3xJkFxdvUMV7b7/K5tuAdEStpWgr8MpeVbNGVoHPwG20n6lBs21DhiGVLK9agOrZrwtxq7ePGm48X5PfgeuJWdvN381CG7+pIlBbfryEXCJpxlqRtBG10oHa6NXVx/8Ba+cluUx5B18AAAAASUVORK5CYII=", Iv = ({ className: e }) => /* @__PURE__ */ s("img", {
5005
- src: Bv,
5006
+ }), Cv = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEoAAABgCAYAAAC65+QhAAAKo0lEQVR42u2de4wdVR3HPzN32+oSUQSsikEoosR3iko08oovEkwMpmiIr/KHIomgUYyPiBofkRjjE+MjEk3RQNIYTdUotKkoaql0Wyympbtl2XbLtrW71n3v3ntnrn+c38n98cvcOzP3tfcud5LJ5u7Ozpz5nt/7nN/3QncfAVBQn18LfBd4GJgFYvm5B/iW/N0fBfn/VX9ogF4K3A0sAhV1xubzIrBFrk+6z6oDyEvCmcBXgTkFRgkoA5E6y/J7f80s8GXg2Uoyw9UCUGhm/wPAYQNQJFJkJUmDpgEbkfusCnW0dujNwM4aAEVGak4aaYvVdRqwHcAbexkwDdCLgZ8mqJgFaBo4BowD/wQOAbuBCSNhsVHJGPgJ8KJesl+hshnPBD4LTKqXLCUANAPsF0CKRvWm5W+Pi6RZwErqXqeA24DBhLF0rZptkhfUUhQbO7QEHBUJmjZqFhl7NQ/sEsCWjf2KjTo+AlzXbeoYAAPq80Zgmxp0McEOxQLOiNiiSsqpATsK3A+MJUhXZCTyd8Cr1dgGVgowLUEvAL6tZrtcww7NAAeAg3VipjTAisAR4CEDtLZfZRV/fQdYbya34+6+ANwiElJ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AdxK0CZe2uWzQt5HpVWNTLWA0rXrHzaMZnAm5J2LovK7DdEXUmsiaclcj8zbyf84+amscxK3EagLK/Be6hyouQlzhrHUYKcSOHhrIikbmi0N3lrAupHzINbBVSgCmfg2lb/2CCV0bxUVZ803FJJduhBsXlNMSNeZwYZKUq142oQjUqYv997eSp74p0JXJlZ7jeDYxCqZYdKhhbuw4Z2pOHYcQ1V1gxLbXRUim/TTXSo+3v5ZPUTRlqz0q0VxQ4dMgQ5SXSRC1IwPLfVdLdX1mF4Lkr5Ybfii8rLixlLcvlgg2o2JaFCLXevpejXEnm3fLOcR/rTNUizYsU2OCxiP9+EhOUByIcqRxUYtSi595o2/7a00nqwblHiW4t25Jh4mZM5wcpjhxZkUg4qd2/tUKzA/LhyEm1fJvM3v5ynklIVE8gjYgkrdhp67EaZfjTj4XEce8eJFDtUxNFLnrcStNsFBdpNhpRYq2OkOOw8RdtCE7y+3psNSVwUp9ih+2gduU1L2Fmfh/t2jIUUNrJJkbBhxQIU5+Dy3SdSVEpx949JcNpV1NraW7wKxxhWj2ezIi+7VxJrq1o2DivhNr0OS9qUBFCkvN4XgDO6lazdphrvVJUFD5j1jmV5+QdMOFExzD3jGdKOGLcud1Gv0P/rGVyH29B6MiWcmBbARiVAHBNg9srvsqQdV3cDIXuz9ut88Tpp4cSi5I77RSWLGdKOGxUoBXq0Z8cW2C7D8X+n0XFXUtz9nJRhz1lt3xJkFxdvUMV7b7/K5tuAdEStpWgr8MpeVbNGVoHPwG20n6lBs21DhiGVLK9agOrZrwtxq7ePGm48X5PfgeuJWdvN381CG7+pIlBbfryEXCJpxlqRtBG10oHa6NXVx/8Ba+cluUx5B18AAAAASUVORK5CYII=", Bv = ({ className: e }) => /* @__PURE__ */ s("img", {
5007
+ src: Cv,
5006
5008
  alt: "",
5007
5009
  "aria-hidden": "true",
5008
5010
  className: e,
5009
5011
  draggable: !1
5010
- }), Tv = "https://graphy.app/?utm_source=chart-mark&utm_medium=embed", Lv = "Made with Graphy — open graphy.app";
5011
- var Mv = "vultop0";
5012
- var Nv = "vultop2", Ov = "vultop3", Hv = "vultop4", Dv = "vultop5", Fv = "vultop6", Gv = "vultop7", Wv = (e) => {
5013
- const t = Uv(e.trim());
5012
+ }), Iv = "https://graphy.app/?utm_source=chart-mark&utm_medium=embed", Tv = "Made with Graphy — open graphy.app";
5013
+ var Lv = "vultop0";
5014
+ var Mv = "vultop2", Nv = "vultop3", Ov = "vultop4", Hv = "vultop5", Dv = "vultop6", Fv = "vultop7", Gv = (e) => {
5015
+ const t = Wv(e.trim());
5014
5016
  if (t === null) return "light";
5015
- const r = Vv(t);
5017
+ const r = Uv(t);
5016
5018
  return r <= 0.22 ? "dark" : r <= 0.65 ? "mid" : "light";
5017
- }, Uv = (e) => {
5019
+ }, Wv = (e) => {
5018
5020
  if (!e.startsWith("#")) return null;
5019
5021
  const t = e.slice(1);
5020
5022
  if (t.length === 3) {
@@ -5030,29 +5032,29 @@ var Nv = "vultop2", Ov = "vultop3", Hv = "vultop4", Dv = "vultop5", Fv = "vultop
5030
5032
  green: Number.parseInt(t.slice(2, 4), 16),
5031
5033
  blue: Number.parseInt(t.slice(4, 6), 16)
5032
5034
  } : null;
5033
- }, Vv = ({ red: e, green: t, blue: r }) => {
5035
+ }, Uv = ({ red: e, green: t, blue: r }) => {
5034
5036
  const n = (o) => {
5035
5037
  const a = o / 255;
5036
5038
  return a <= 0.03928 ? a / 12.92 : ((a + 0.055) / 1.055) ** 2.4;
5037
5039
  };
5038
5040
  return 0.2126 * n(e) + 0.7152 * n(t) + 0.0722 * n(r);
5039
- }, zv = (e, t, r = "full") => !e || t.width < 120 || t.height < 80 ? "hidden" : t.width < 200 || r === "mini" ? "mini" : "full", oi = ({ visual: e, placement: t }) => {
5040
- const r = Wv(W(M().graph().get("fill")));
5041
+ }, Vv = (e, t, r = "full") => !e || t.width < 120 || t.height < 80 ? "hidden" : t.width < 200 || r === "mini" ? "mini" : "full", oi = ({ visual: e, placement: t }) => {
5042
+ const r = Gv(W(M().graph().get("fill")));
5041
5043
  return /* @__PURE__ */ w("a", {
5042
- className: ft(Mv, e === "mini" && "vultop1", t === "footer" ? Fv : Gv),
5043
- href: Tv,
5044
+ className: ft(Lv, e === "mini" && "vultop1", t === "footer" ? Dv : Fv),
5045
+ href: Iv,
5044
5046
  target: "_blank",
5045
5047
  rel: "noopener noreferrer",
5046
- "aria-label": Lv,
5048
+ "aria-label": Tv,
5047
5049
  "data-visual": e,
5048
5050
  "data-zone": r,
5049
5051
  children: [/* @__PURE__ */ s("span", {
5050
- className: Nv,
5051
- children: /* @__PURE__ */ s(Iv, { className: Ov })
5052
+ className: Mv,
5053
+ children: /* @__PURE__ */ s(Bv, { className: Nv })
5052
5054
  }), /* @__PURE__ */ w("span", {
5053
- className: Hv,
5055
+ className: Ov,
5054
5056
  children: [/* @__PURE__ */ s("span", { children: "Made with" }), /* @__PURE__ */ s("span", {
5055
- className: Dv,
5057
+ className: Hv,
5056
5058
  children: "Graphy"
5057
5059
  })]
5058
5060
  })]
@@ -5061,15 +5063,15 @@ var Nv = "vultop2", Ov = "vultop3", Hv = "vultop4", Dv = "vultop5", Fv = "vultop
5061
5063
  Title: null,
5062
5064
  Caption: null,
5063
5065
  TextAnnotation: null
5064
- }), yA = ({ editors: e, children: t }) => /* @__PURE__ */ s(ai.Provider, {
5066
+ }), AA = ({ editors: e, children: t }) => /* @__PURE__ */ s(ai.Provider, {
5065
5067
  value: e,
5066
5068
  children: t
5067
- }), hn = () => U(ai), ao = "_4dlrid0", jv = "xfz7dq0";
5068
- var Yv = "xfz7dq2", Kv = "xfz7dq3", Qv = "xfz7dq4", Xv = "xfz7dq5", qv = ({ ref: e, footerRect: t, mode: r = Pe.readonly, caption: n, isCaptionVisible: o, source: a, isSourceVisible: i, captionStyle: l, sourceStyle: c, brandMark: d }) => {
5069
- const { Caption: u } = hn(), h = Me[rn(r)].inlineTextEditing ? u : null, g = o && (h !== null || n !== null), f = i && a !== null && _v(a), v = d !== "hidden";
5069
+ }), hn = () => U(ai), ao = "_4dlrid0", zv = "xfz7dq0";
5070
+ var jv = "xfz7dq2", Yv = "xfz7dq3", Kv = "xfz7dq4", Qv = "xfz7dq5", Xv = ({ ref: e, footerRect: t, mode: r = Pe.readonly, caption: n, isCaptionVisible: o, source: a, isSourceVisible: i, captionStyle: l, sourceStyle: c, brandMark: d }) => {
5071
+ const { Caption: u } = hn(), h = Me[rn(r)].inlineTextEditing ? u : null, g = o && (h !== null || n !== null), f = i && a !== null && $v(a), v = d !== "hidden";
5070
5072
  return !g && !f && !v ? null : /* @__PURE__ */ w("div", {
5071
5073
  ref: e,
5072
- className: jv,
5074
+ className: zv,
5073
5075
  style: {
5074
5076
  left: t.x,
5075
5077
  top: t.y,
@@ -5078,12 +5080,12 @@ var Yv = "xfz7dq2", Kv = "xfz7dq3", Qv = "xfz7dq4", Xv = "xfz7dq5", qv = ({ ref:
5078
5080
  children: [g ? h ? /* @__PURE__ */ s(h, {
5079
5081
  caption: n,
5080
5082
  captionStyle: l
5081
- }) : /* @__PURE__ */ s(Jv, {
5083
+ }) : /* @__PURE__ */ s(qv, {
5082
5084
  caption: n,
5083
5085
  captionStyle: l
5084
5086
  }) : null, (f || v) && /* @__PURE__ */ w("div", {
5085
5087
  className: "xfz7dq1",
5086
- children: [f && /* @__PURE__ */ s(Zv, {
5088
+ children: [f && /* @__PURE__ */ s(Jv, {
5087
5089
  source: a,
5088
5090
  sourceStyle: c
5089
5091
  }), d !== "hidden" ? /* @__PURE__ */ s(oi, {
@@ -5092,7 +5094,7 @@ var Yv = "xfz7dq2", Kv = "xfz7dq3", Qv = "xfz7dq4", Xv = "xfz7dq5", qv = ({ ref:
5092
5094
  }) : null]
5093
5095
  })]
5094
5096
  });
5095
- }, Jv = ({ caption: e, captionStyle: t }) => e === null ? null : typeof e == "string" ? /* @__PURE__ */ s("p", {
5097
+ }, qv = ({ caption: e, captionStyle: t }) => e === null ? null : typeof e == "string" ? /* @__PURE__ */ s("p", {
5096
5098
  className: ao,
5097
5099
  style: K(t),
5098
5100
  children: e
@@ -5100,43 +5102,43 @@ var Yv = "xfz7dq2", Kv = "xfz7dq3", Qv = "xfz7dq4", Xv = "xfz7dq5", qv = ({ ref:
5100
5102
  className: ao,
5101
5103
  style: K(t),
5102
5104
  children: /* @__PURE__ */ s(Xe, { content: e })
5103
- }), Zv = ({ source: e, sourceStyle: t }) => {
5104
- const r = Dr(e.url) ? e.url : void 0, n = e.label ?? (r !== void 0 ? $v(r) : "");
5105
+ }), Jv = ({ source: e, sourceStyle: t }) => {
5106
+ const r = Dr(e.url) ? e.url : void 0, n = e.label ?? (r !== void 0 ? Zv(r) : "");
5105
5107
  return n === "" && r === void 0 ? null : /* @__PURE__ */ w("span", {
5106
- className: Yv,
5108
+ className: jv,
5107
5109
  style: K(t.label),
5108
5110
  children: [/* @__PURE__ */ s("span", {
5109
- className: Qv,
5111
+ className: Kv,
5110
5112
  children: "Source:"
5111
5113
  }), r !== void 0 ? /* @__PURE__ */ s("a", {
5112
- className: Kv,
5114
+ className: Yv,
5113
5115
  href: r,
5114
5116
  target: "_blank",
5115
5117
  rel: "noopener noreferrer",
5116
5118
  style: K(t.link),
5117
5119
  children: n
5118
5120
  }) : /* @__PURE__ */ s("span", {
5119
- className: Xv,
5121
+ className: Qv,
5120
5122
  children: n
5121
5123
  })]
5122
5124
  });
5123
- }, $v = (e) => {
5125
+ }, Zv = (e) => {
5124
5126
  try {
5125
5127
  return new URL(e).hostname;
5126
5128
  } catch {
5127
5129
  return e;
5128
5130
  }
5129
- }, _v = (e) => e.label !== void 0 && e.label !== "" || e.url !== void 0 && e.url !== "" && Dr(e.url), eg = "_1k4qtbg0";
5130
- var tg = 22, rg = ({ ref: e, headerRect: t, mode: r = Pe.readonly, title: n, isTitleVisible: o, subtitle: a, isSubtitleVisible: i, headingStyle: l, subtitleStyle: c, brandMark: d }) => {
5131
+ }, $v = (e) => e.label !== void 0 && e.label !== "" || e.url !== void 0 && e.url !== "" && Dr(e.url), _v = "_1k4qtbg0";
5132
+ var eg = 22, tg = ({ ref: e, headerRect: t, mode: r = Pe.readonly, title: n, isTitleVisible: o, subtitle: a, isSubtitleVisible: i, headingStyle: l, subtitleStyle: c, brandMark: d }) => {
5131
5133
  const { Title: u } = hn(), h = Me[rn(r)].inlineTextEditing ? u : null, g = h !== null, f = o && (g || n !== null), v = i && (g || a !== null), m = d !== "hidden";
5132
5134
  return !f && !v && !m ? null : /* @__PURE__ */ w("div", {
5133
5135
  ref: e,
5134
- className: ft(eg, m && "_1k4qtbg1"),
5136
+ className: ft(_v, m && "_1k4qtbg1"),
5135
5137
  style: {
5136
5138
  left: t.x,
5137
5139
  top: t.y,
5138
5140
  width: t.width,
5139
- ...m && !f && !v ? { minHeight: tg } : {}
5141
+ ...m && !f && !v ? { minHeight: eg } : {}
5140
5142
  },
5141
5143
  children: [h ? /* @__PURE__ */ s(h, {
5142
5144
  title: n,
@@ -5145,7 +5147,7 @@ var tg = 22, rg = ({ ref: e, headerRect: t, mode: r = Pe.readonly, title: n, isT
5145
5147
  subtitle: a,
5146
5148
  headingStyle: l,
5147
5149
  subtitleStyle: c
5148
- }, [o ? "title" : "", i ? "subtitle" : ""].join("-")) : /* @__PURE__ */ s(ng, {
5150
+ }, [o ? "title" : "", i ? "subtitle" : ""].join("-")) : /* @__PURE__ */ s(rg, {
5149
5151
  title: n,
5150
5152
  isTitleVisible: o,
5151
5153
  isSubtitleVisible: i,
@@ -5157,7 +5159,7 @@ var tg = 22, rg = ({ ref: e, headerRect: t, mode: r = Pe.readonly, title: n, isT
5157
5159
  placement: "header"
5158
5160
  }) : null]
5159
5161
  });
5160
- }, ng = ({ title: e, isTitleVisible: t, isSubtitleVisible: r, subtitle: n, headingStyle: o, subtitleStyle: a }) => {
5162
+ }, rg = ({ title: e, isTitleVisible: t, isSubtitleVisible: r, subtitle: n, headingStyle: o, subtitleStyle: a }) => {
5161
5163
  const i = t && e !== null, l = r && n !== null;
5162
5164
  return /* @__PURE__ */ w(T, { children: [i && (typeof e == "string" ? /* @__PURE__ */ s("h1", {
5163
5165
  className: "_4dlrid0",
@@ -5176,25 +5178,25 @@ var tg = 22, rg = ({ ref: e, headerRect: t, mode: r = Pe.readonly, title: n, isT
5176
5178
  style: K(a),
5177
5179
  children: /* @__PURE__ */ s(Xe, { content: n })
5178
5180
  }))] });
5179
- }, og = "_1u9qprb0", ag = "_1u9qprb1", ig = /* @__PURE__ */ fl({
5180
- group: () => cg,
5181
+ }, ng = "_1u9qprb0", og = "_1u9qprb1", ag = /* @__PURE__ */ fl({
5182
+ group: () => lg,
5181
5183
  item: () => ii,
5182
- trend: () => lg,
5183
- value: () => sg
5184
- }), sg = "_9aen060", lg = "_9aen061", cg = "_9aen062", ii = "_9aen063", dg = {
5184
+ trend: () => sg,
5185
+ value: () => ig
5186
+ }), ig = "_9aen060", sg = "_9aen061", lg = "_9aen062", ii = "_9aen063", cg = {
5185
5187
  xxs: 8,
5186
5188
  xs: 12,
5187
5189
  sm: 16,
5188
5190
  md: 20,
5189
5191
  lg: 24,
5190
5192
  xl: 36
5191
- }, ug = {
5193
+ }, dg = {
5192
5194
  primary: "asohov1 asohov0",
5193
5195
  secondary: "asohov2 asohov0"
5194
5196
  }, si = ({ children: e, title: t, variant: r = "primary", size: n = "sm", ...o }) => {
5195
- const a = $(), i = dg[n];
5197
+ const a = $(), i = cg[n];
5196
5198
  return /* @__PURE__ */ w("svg", {
5197
- className: ug[r],
5199
+ className: dg[r],
5198
5200
  "aria-labelledby": t ? a : void 0,
5199
5201
  height: i,
5200
5202
  width: i,
@@ -5207,7 +5209,7 @@ var tg = 22, rg = ({ ref: e, headerRect: t, mode: r = Pe.readonly, title: n, isT
5207
5209
  children: t
5208
5210
  }), e]
5209
5211
  });
5210
- }, hg = (e) => /* @__PURE__ */ s(si, {
5212
+ }, ug = (e) => /* @__PURE__ */ s(si, {
5211
5213
  ...e,
5212
5214
  children: /* @__PURE__ */ w("g", {
5213
5215
  stroke: "currentColor",
@@ -5216,7 +5218,7 @@ var tg = 22, rg = ({ ref: e, headerRect: t, mode: r = Pe.readonly, title: n, isT
5216
5218
  strokeLinejoin: "round",
5217
5219
  children: [/* @__PURE__ */ s("path", { d: "m5 12 7-7 7 7" }), /* @__PURE__ */ s("path", { d: "M12 19V5" })]
5218
5220
  })
5219
- }), vg = (e) => /* @__PURE__ */ s(si, {
5221
+ }), hg = (e) => /* @__PURE__ */ s(si, {
5220
5222
  ...e,
5221
5223
  children: /* @__PURE__ */ s("g", {
5222
5224
  stroke: "currentColor",
@@ -5225,36 +5227,36 @@ var tg = 22, rg = ({ ref: e, headerRect: t, mode: r = Pe.readonly, title: n, isT
5225
5227
  strokeLinejoin: "round",
5226
5228
  children: /* @__PURE__ */ s("path", { d: "M5 12h14" })
5227
5229
  })
5228
- }), gg = "n7clvo0", fg = "n7clvo1", pg = "n7clvo2";
5229
- var mg = ({ segment: e, itemStyle: t }) => {
5230
- if (e.kind === "swatch") return /* @__PURE__ */ s(Ag, {
5230
+ }), vg = "n7clvo0", gg = "n7clvo1", fg = "n7clvo2";
5231
+ var pg = ({ segment: e, itemStyle: t }) => {
5232
+ if (e.kind === "swatch") return /* @__PURE__ */ s(mg, {
5231
5233
  swatch: e.swatch,
5232
5234
  size: e.size
5233
5235
  });
5234
5236
  if (e.kind === "trendArrow") {
5235
5237
  const o = li(t, e.direction);
5236
5238
  return /* @__PURE__ */ s("div", {
5237
- className: He(pg, e.direction === "down" && "n7clvo3"),
5239
+ className: He(fg, e.direction === "down" && "n7clvo3"),
5238
5240
  style: {
5239
5241
  color: o,
5240
5242
  backgroundColor: e.direction === "flat" ? te(A.textPrimary, 0.1) : te(o, 0.2)
5241
5243
  },
5242
- children: e.direction === "flat" ? /* @__PURE__ */ s(vg, {
5244
+ children: e.direction === "flat" ? /* @__PURE__ */ s(hg, {
5243
5245
  size: "xs",
5244
5246
  title: ""
5245
- }) : /* @__PURE__ */ s(hg, {
5247
+ }) : /* @__PURE__ */ s(ug, {
5246
5248
  size: "xs",
5247
5249
  title: ""
5248
5250
  })
5249
5251
  });
5250
5252
  }
5251
- const { className: r, style: n } = yg(e, t);
5253
+ const { className: r, style: n } = Ag(e, t);
5252
5254
  return /* @__PURE__ */ s("span", {
5253
5255
  className: r,
5254
5256
  style: n,
5255
5257
  children: e.text
5256
5258
  });
5257
- }, Ag = ({ swatch: e, size: t }) => {
5259
+ }, mg = ({ swatch: e, size: t }) => {
5258
5260
  const r = Re(), n = Jt(e.layerId, e.value, t);
5259
5261
  return /* @__PURE__ */ s(wt, {
5260
5262
  shape: r(e.geom, "cartesian")?.swatchShape ?? "square",
@@ -5267,18 +5269,18 @@ var mg = ({ segment: e, itemStyle: t }) => {
5267
5269
  cornerRadius: n.cornerRadius,
5268
5270
  symbol: n.symbol
5269
5271
  });
5270
- }, yg = (e, t) => {
5272
+ }, Ag = (e, t) => {
5271
5273
  switch (e.textRole) {
5272
5274
  case "value":
5273
5275
  return { style: Qe(t.number) };
5274
5276
  case "caption":
5275
5277
  return {
5276
- className: gg,
5278
+ className: vg,
5277
5279
  style: Qe(t.caption)
5278
5280
  };
5279
5281
  case "label":
5280
5282
  return {
5281
- className: fg,
5283
+ className: gg,
5282
5284
  style: Qe(t.label)
5283
5285
  };
5284
5286
  case "trendPercentage":
@@ -5302,30 +5304,30 @@ var mg = ({ segment: e, itemStyle: t }) => {
5302
5304
  default:
5303
5305
  return t;
5304
5306
  }
5305
- }, xg = ({ item: e, itemStyle: t }) => /* @__PURE__ */ s("div", {
5307
+ }, yg = ({ item: e, itemStyle: t }) => /* @__PURE__ */ s("div", {
5306
5308
  className: ii,
5307
- children: bo(e, t).map((r) => /* @__PURE__ */ s(bg, {
5309
+ children: bo(e, t).map((r) => /* @__PURE__ */ s(xg, {
5308
5310
  row: r,
5309
5311
  itemStyle: t
5310
5312
  }, r.role))
5311
- }), bg = ({ row: e, itemStyle: t }) => {
5313
+ }), xg = ({ row: e, itemStyle: t }) => {
5312
5314
  const r = e.role === "trend";
5313
5315
  return /* @__PURE__ */ s("div", {
5314
- className: ig[e.role],
5316
+ className: ag[e.role],
5315
5317
  style: { gap: e.gap },
5316
5318
  "data-testid": r ? "headline-trend" : void 0,
5317
- "data-direction": r ? wg(e) : void 0,
5319
+ "data-direction": r ? bg(e) : void 0,
5318
5320
  role: r ? "img" : void 0,
5319
5321
  "aria-label": r ? e.ariaLabel : void 0,
5320
- children: e.segments.map((n, o) => /* @__PURE__ */ s(mg, {
5322
+ children: e.segments.map((n, o) => /* @__PURE__ */ s(pg, {
5321
5323
  segment: n,
5322
5324
  itemStyle: t
5323
5325
  }, o))
5324
5326
  });
5325
- }, wg = (e) => {
5327
+ }, bg = (e) => {
5326
5328
  const t = e.segments.find((r) => r.kind === "trendArrow");
5327
5329
  return t?.kind === "trendArrow" ? t.direction : void 0;
5328
- }, Sg = ({ headline: e, rect: t, resolvedSize: r, visibleItemCount: n, isInDonutHole: o = !1 }) => {
5330
+ }, wg = ({ headline: e, rect: t, resolvedSize: r, visibleItemCount: n, isInDonutHole: o = !1 }) => {
5329
5331
  const a = M(), i = I(dn, a), l = I(Mt, a, r), c = {
5330
5332
  left: t.x,
5331
5333
  top: t.y,
@@ -5335,7 +5337,7 @@ var mg = ({ segment: e, itemStyle: t }) => {
5335
5337
  if (e.kind === "grandTotal") {
5336
5338
  const d = Lo(l, o);
5337
5339
  return /* @__PURE__ */ s("div", {
5338
- className: ag,
5340
+ className: og,
5339
5341
  style: c,
5340
5342
  children: /* @__PURE__ */ s("span", {
5341
5343
  style: Qe(d),
@@ -5344,12 +5346,12 @@ var mg = ({ segment: e, itemStyle: t }) => {
5344
5346
  });
5345
5347
  }
5346
5348
  return /* @__PURE__ */ s("div", {
5347
- className: og,
5349
+ className: ng,
5348
5350
  style: {
5349
5351
  ...c,
5350
5352
  gap: i.gap
5351
5353
  },
5352
- children: e.items.slice(0, n).map((d, u) => /* @__PURE__ */ s(xg, {
5354
+ children: e.items.slice(0, n).map((d, u) => /* @__PURE__ */ s(yg, {
5353
5355
  item: d,
5354
5356
  itemStyle: l
5355
5357
  }, `${d.label}-${u}`))
@@ -5357,7 +5359,7 @@ var mg = ({ segment: e, itemStyle: t }) => {
5357
5359
  }, ci = "data-legend-index", di = "data-legend-item-index", ui = ({ legendIndex: e, itemIndex: t }) => ({
5358
5360
  [ci]: String(e),
5359
5361
  [di]: String(t)
5360
- }), kg = (e) => {
5362
+ }), Sg = (e) => {
5361
5363
  const t = Pr(e, ci), r = Pr(e, di);
5362
5364
  return t === null || r === null ? null : {
5363
5365
  legendIndex: t,
@@ -5368,7 +5370,7 @@ var mg = ({ segment: e, itemStyle: t }) => {
5368
5370
  if (r === null || !/^(0|[1-9]\d*)$/.test(r)) return null;
5369
5371
  const n = Number(r);
5370
5372
  return Number.isSafeInteger(n) ? n : null;
5371
- }, je = "data-edit-kind", hi = "data-edit-id", Wt = "data-edit-axis", vi = "data-edit-tick-index", gi = "data-legend-overflow-control", xA = `[${gi}]`, Eg = "observations", Pg = `[${je}]`, kt = (e) => ({
5373
+ }, je = "data-edit-kind", hi = "data-edit-id", Wt = "data-edit-axis", vi = "data-edit-tick-index", gi = "data-legend-overflow-control", yA = `[${gi}]`, kg = "observations", Eg = `[${je}]`, kt = (e) => ({
5372
5374
  [je]: e.kind,
5373
5375
  [hi]: e.id
5374
5376
  }), vn = (e, t) => ({
@@ -5381,16 +5383,16 @@ var mg = ({ segment: e, itemStyle: t }) => {
5381
5383
  }), fi = (e) => ({
5382
5384
  [je]: "grid",
5383
5385
  [Wt]: e
5384
- }), bA = (e, t) => {
5386
+ }), xA = (e, t) => {
5385
5387
  for (const r of e) {
5386
- const n = r.closest(Pg);
5388
+ const n = r.closest(Eg);
5387
5389
  if (n === null || !t.contains(n)) continue;
5388
- const o = Cg(n);
5390
+ const o = Rg(n);
5389
5391
  if (o !== null) return o;
5390
5392
  if (n !== r) return null;
5391
5393
  }
5392
5394
  return null;
5393
- }, Rg = () => ({ [je]: Eg }), Cg = (e) => {
5395
+ }, Pg = () => ({ [je]: kg }), Rg = (e) => {
5394
5396
  const t = e.getAttribute(je);
5395
5397
  switch (t) {
5396
5398
  case "annotation": {
@@ -5425,7 +5427,7 @@ var mg = ({ segment: e, itemStyle: t }) => {
5425
5427
  };
5426
5428
  }
5427
5429
  case "legend": {
5428
- const r = kg(e);
5430
+ const r = Sg(e);
5429
5431
  return r === null ? null : {
5430
5432
  kind: t,
5431
5433
  target: { kind: t },
@@ -5449,19 +5451,19 @@ var mg = ({ segment: e, itemStyle: t }) => {
5449
5451
  function Et() {
5450
5452
  return U(pi);
5451
5453
  }
5452
- var Ne = () => Me[Et()].guidePress, Bg = (e, t) => e.isTextColorAuthored ? e.textColor : t ?? e.textColor, Ig = "_1oj6yix0";
5453
- var Tg = "_1oj6yix2";
5454
- var Lg = 8, Mg = 16, Ng = 2, Og = ({ indexedLegends: e, containerRect: t }) => {
5455
- const r = I(To, M()), n = Fe(r), { placements: o, hasOverlap: a } = Hg(e, t, n), i = Ne(), l = K(r);
5454
+ var Ne = () => Me[Et()].guidePress, Cg = (e, t) => e.isTextColorAuthored ? e.textColor : t ?? e.textColor, Bg = "_1oj6yix0";
5455
+ var Ig = "_1oj6yix2";
5456
+ var Tg = 8, Lg = 16, Mg = 2, Ng = ({ indexedLegends: e, containerRect: t }) => {
5457
+ const r = I(To, M()), n = Fe(r), { placements: o, hasOverlap: a } = Og(e, t, n), i = Ne(), l = K(r);
5456
5458
  if (o.length === 0) return null;
5457
- const c = a ? Mg : Lg, d = c - Ng, u = ue(r.dashArray, r.strokeWidth);
5459
+ const c = a ? Lg : Tg, d = c - Mg, u = ue(r.dashArray, r.strokeWidth);
5458
5460
  return /* @__PURE__ */ w("div", {
5459
- className: Ig,
5461
+ className: Bg,
5460
5462
  children: [a && /* @__PURE__ */ s("svg", {
5461
5463
  className: "_1oj6yix1",
5462
5464
  width: t.width,
5463
5465
  height: t.height,
5464
- children: o.map((h) => /* @__PURE__ */ s(Dg, {
5466
+ children: o.map((h) => /* @__PURE__ */ s(Hg, {
5465
5467
  anchorY: h.anchorY,
5466
5468
  labelY: h.y,
5467
5469
  endX: d,
@@ -5470,18 +5472,18 @@ var Lg = 8, Mg = 16, Ng = 2, Og = ({ indexedLegends: e, containerRect: t }) => {
5470
5472
  dashArray: u
5471
5473
  }, h.payload.key))
5472
5474
  }), o.map((h) => /* @__PURE__ */ s("span", {
5473
- className: He(Tg, i && "_1oj6yix3"),
5475
+ className: He(Ig, i && "_1oj6yix3"),
5474
5476
  style: {
5475
5477
  ...l,
5476
5478
  left: c,
5477
5479
  top: h.y,
5478
- color: Bg(r, h.payload.color)
5480
+ color: Cg(r, h.payload.color)
5479
5481
  },
5480
5482
  ...i ? gn(h.payload.address) : ui(h.payload.address),
5481
5483
  children: h.payload.label
5482
5484
  }, h.payload.key))]
5483
5485
  });
5484
- }, Hg = (e, t, r) => b(() => {
5486
+ }, Og = (e, t, r) => b(() => {
5485
5487
  const n = [];
5486
5488
  for (const { legend: o, legendIndex: a } of e) o.items.forEach((i, l) => {
5487
5489
  if (i.normalizedY === null) return;
@@ -5511,7 +5513,7 @@ var Lg = 8, Mg = 16, Ng = 2, Og = ({ indexedLegends: e, containerRect: t }) => {
5511
5513
  e,
5512
5514
  t.height,
5513
5515
  r
5514
- ]), Dg = ({ anchorY: e, labelY: t, endX: r, color: n, strokeWidth: o, dashArray: a }) => {
5516
+ ]), Hg = ({ anchorY: e, labelY: t, endX: r, color: n, strokeWidth: o, dashArray: a }) => {
5515
5517
  const i = r / 2;
5516
5518
  return /* @__PURE__ */ s("path", {
5517
5519
  d: `M0,${e} C${i},${e} ${i},${t} ${r},${t}`,
@@ -5520,7 +5522,7 @@ var Lg = 8, Mg = 16, Ng = 2, Og = ({ indexedLegends: e, containerRect: t }) => {
5520
5522
  strokeWidth: o,
5521
5523
  strokeDasharray: a
5522
5524
  });
5523
- }, Fg = "_6a636s0", mi = (e, t) => ({
5525
+ }, Dg = "_6a636s0", mi = (e, t) => ({
5524
5526
  ...e.fill === void 0 ? {} : tr(e.fill, t),
5525
5527
  ...e.cornerRadius === void 0 ? {} : { borderRadius: St(e.cornerRadius) },
5526
5528
  ...e.shadow === void 0 ? {} : { boxShadow: $e(e.shadow) },
@@ -5531,7 +5533,7 @@ var Lg = 8, Mg = 16, Ng = 2, Og = ({ indexedLegends: e, containerRect: t }) => {
5531
5533
  ...e.alpha === void 0 ? {} : { opacity: e.alpha },
5532
5534
  paddingInline: e.paddingInline,
5533
5535
  paddingBlock: e.paddingBlock
5534
- }), yi = (e) => e.fill !== void 0 || e.strokeWidth > 0, Gg = (e, t, r) => ({
5536
+ }), yi = (e) => e.fill !== void 0 || e.strokeWidth > 0, Fg = (e, t, r) => ({
5535
5537
  ...tr(e.fill, r),
5536
5538
  borderRadius: St(e.cornerRadius),
5537
5539
  paddingInline: e.paddingInline,
@@ -5540,21 +5542,21 @@ var Lg = 8, Mg = 16, Ng = 2, Og = ({ indexedLegends: e, containerRect: t }) => {
5540
5542
  ...e.alpha === void 0 ? {} : { opacity: e.alpha },
5541
5543
  ...xi(e.strokeWidth, e.stroke),
5542
5544
  ...K(t)
5543
- }), xi = (e, t) => e > 0 && t !== void 0 ? { border: `${e}px solid ${t}` } : {}, Wg = "_1kjk02r0", Ug = {
5545
+ }), xi = (e, t) => e > 0 && t !== void 0 ? { border: `${e}px solid ${t}` } : {}, Gg = "_1kjk02r0", Wg = {
5544
5546
  1: "_1kjk02r1",
5545
5547
  2: "_1kjk02r2"
5546
- }, Vg = {
5548
+ }, Ug = {
5547
5549
  1: "_1kjk02r3",
5548
5550
  2: "_1kjk02r4"
5549
5551
  };
5550
- var zg = {
5552
+ var Vg = {
5551
5553
  1: "_1kjk02r6",
5552
5554
  2: "_1kjk02r7"
5553
- }, jg = {
5555
+ }, zg = {
5554
5556
  1: "_1kjk02r8",
5555
5557
  2: "_1kjk02r9"
5556
- }, Yg = "_1kjk02ra", Kg = "_1kjk02rb";
5557
- var Qg = "_1dw9dgx0", dr = "\0", Xg = (e, t) => {
5558
+ }, jg = "_1kjk02ra", Yg = "_1kjk02rb";
5559
+ var Kg = "_1dw9dgx0", dr = "\0", Qg = (e, t) => {
5558
5560
  const r = [];
5559
5561
  for (const { legend: n, legendIndex: o } of e) {
5560
5562
  const a = n.aesthetics.includes("size");
@@ -5581,7 +5583,7 @@ var Qg = "_1dw9dgx0", dr = "\0", Xg = (e, t) => {
5581
5583
  });
5582
5584
  }
5583
5585
  return r;
5584
- }, bi = ({ pill: e }) => e.isBubble ? /* @__PURE__ */ s(Zg, { pill: e }) : /* @__PURE__ */ s(Jg, { pill: e }), qg = ({ color: e, lineType: t, shape: r, label: n, layerId: o, groupValue: a }) => {
5586
+ }, bi = ({ pill: e }) => e.isBubble ? /* @__PURE__ */ s(Jg, { pill: e }) : /* @__PURE__ */ s(qg, { pill: e }), Xg = ({ color: e, lineType: t, shape: r, label: n, layerId: o, groupValue: a }) => {
5585
5587
  const { swatch: i } = I(jt, M()), l = Jt(o, a, i.size);
5586
5588
  return e ? /* @__PURE__ */ s(wt, {
5587
5589
  shape: r,
@@ -5597,17 +5599,17 @@ var Qg = "_1dw9dgx0", dr = "\0", Xg = (e, t) => {
5597
5599
  cornerRadius: l.cornerRadius,
5598
5600
  symbol: l.symbol
5599
5601
  }) : null;
5600
- }, Jg = ({ pill: e }) => /* @__PURE__ */ w(T, { children: [/* @__PURE__ */ s(qg, {
5602
+ }, qg = ({ pill: e }) => /* @__PURE__ */ w(T, { children: [/* @__PURE__ */ s(Xg, {
5601
5603
  color: e.visual.color,
5602
5604
  lineType: e.primaryLineType,
5603
5605
  shape: e.swatchShape,
5604
5606
  label: e.formattedLabel,
5605
5607
  layerId: e.layerId,
5606
5608
  groupValue: e.groupValue
5607
- }), /* @__PURE__ */ s("span", { children: e.formattedLabel })] }), Zg = ({ pill: e }) => {
5609
+ }), /* @__PURE__ */ s("span", { children: e.formattedLabel })] }), Jg = ({ pill: e }) => {
5608
5610
  const t = Number(e.visual.size), r = Jt(e.layerId, e.groupValue, t);
5609
5611
  return /* @__PURE__ */ w(T, { children: [/* @__PURE__ */ s("span", {
5610
- className: Qg,
5612
+ className: Kg,
5611
5613
  style: {
5612
5614
  width: t,
5613
5615
  height: t,
@@ -5615,8 +5617,8 @@ var Qg = "_1dw9dgx0", dr = "\0", Xg = (e, t) => {
5615
5617
  opacity: r.alpha
5616
5618
  }
5617
5619
  }), /* @__PURE__ */ s("span", { children: e.formattedLabel })] });
5618
- }, io = { [gi]: "" }, $g = ({ hiddenPills: e, placement: t }) => {
5619
- const r = Fa(), [n, o] = j(!1), a = M(), i = I(jt, a), l = I(Qa, a), c = Ne(), d = bt([i.item.fill, l.popover.fill]), u = d(i.item.fill), h = Ai(i.item, u), g = _g(e.length, i.item), f = g === null ? void 0 : {
5620
+ }, io = { [gi]: "" }, Zg = ({ hiddenPills: e, placement: t }) => {
5621
+ const r = Fa(), [n, o] = j(!1), a = M(), i = I(jt, a), l = I(Qa, a), c = Ne(), d = bt([i.item.fill, l.popover.fill]), u = d(i.item.fill), h = Ai(i.item, u), g = $g(e.length, i.item), f = g === null ? void 0 : {
5620
5622
  ...mi(i.item, u),
5621
5623
  opacity: Tc * (i.item.alpha ?? 1)
5622
5624
  }, { refs: v, floatingStyles: m } = Go({
@@ -5649,25 +5651,25 @@ var Qg = "_1dw9dgx0", dr = "\0", Xg = (e, t) => {
5649
5651
  const p = t === "left" || t === "right", x = g === null ? [] : Array.from({ length: g }, (y, S) => g - S);
5650
5652
  return /* @__PURE__ */ w(T, { children: [/* @__PURE__ */ w("div", {
5651
5653
  ref: v.setReference,
5652
- className: He(Wg, g !== null && p && Vg[g], g !== null && !p && Ug[g]),
5654
+ className: He(Gg, g !== null && p && Ug[g], g !== null && !p && Wg[g]),
5653
5655
  ...io,
5654
5656
  children: [g !== null && x.map((y) => /* @__PURE__ */ s("span", {
5655
- className: He("_1kjk02r5", p ? jg[g] : zg[g]),
5657
+ className: He("_1kjk02r5", p ? zg[g] : Vg[g]),
5656
5658
  style: {
5657
5659
  ...f,
5658
- ...ef(y, p)
5660
+ ..._g(y, p)
5659
5661
  },
5660
5662
  "aria-hidden": !0
5661
5663
  }, y)), /* @__PURE__ */ s("button", {
5662
5664
  type: "button",
5663
- className: Yg,
5665
+ className: jg,
5664
5666
  style: h,
5665
5667
  onClick: () => o((y) => !y),
5666
5668
  "aria-haspopup": "dialog",
5667
5669
  "aria-expanded": n,
5668
5670
  "aria-label": `Show ${e.length} hidden legend ${e.length === 1 ? "item" : "items"}`,
5669
5671
  children: /* @__PURE__ */ w("span", {
5670
- className: Kg,
5672
+ className: Yg,
5671
5673
  children: ["+", e.length]
5672
5674
  })
5673
5675
  })]
@@ -5678,7 +5680,7 @@ var Qg = "_1dw9dgx0", dr = "\0", Xg = (e, t) => {
5678
5680
  className: "_1kjk02rc",
5679
5681
  style: {
5680
5682
  ...m,
5681
- ...Gg(l.popover, i.item, d(l.popover.fill))
5683
+ ...Fg(l.popover, i.item, d(l.popover.fill))
5682
5684
  },
5683
5685
  ...io,
5684
5686
  children: /* @__PURE__ */ s("ul", {
@@ -5690,23 +5692,23 @@ var Qg = "_1dw9dgx0", dr = "\0", Xg = (e, t) => {
5690
5692
  }, y.key))
5691
5693
  })
5692
5694
  })] });
5693
- }, _g = (e, t) => {
5695
+ }, $g = (e, t) => {
5694
5696
  if (!yi(t)) return null;
5695
5697
  const r = Math.min(e - 1, 2);
5696
5698
  return r === 1 ? 1 : r === 2 ? 2 : null;
5697
- }, ef = (e, t) => {
5699
+ }, _g = (e, t) => {
5698
5700
  const r = -e * 4;
5699
5701
  return { transform: t ? `translateY(${r}px)` : `translateX(${r}px)` };
5700
- }, tf = "_1cecisi0", rf = "_1cecisi1", nf = "_1cecisi2", of = {
5702
+ }, ef = "_1cecisi0", tf = "_1cecisi1", rf = "_1cecisi2", nf = {
5701
5703
  start: "_1cecisi3",
5702
5704
  center: "_1cecisi4",
5703
5705
  end: "_1cecisi5"
5704
- }, af = {
5706
+ }, of = {
5705
5707
  right: "_1cecisi6",
5706
5708
  left: "_1cecisi7"
5707
- }, sf = "_1cecisi8";
5708
- var lf = ({ edge: e, indexedLegends: t, containerWidth: r, containerHeight: n }) => {
5709
- const o = Le(), a = Ve(), i = M(), l = I(Qa, i), c = I(jt, i), d = Re(), u = D((E) => E.coordSystem.type), h = Ne(), g = b(() => Xg(t, (E) => d(E, u)?.swatchShape ?? "square"), [
5709
+ }, af = "_1cecisi8";
5710
+ var sf = ({ edge: e, indexedLegends: t, containerWidth: r, containerHeight: n }) => {
5711
+ const o = Le(), a = Ve(), i = M(), l = I(Qa, i), c = I(jt, i), d = Re(), u = D((E) => E.coordSystem.type), h = Ne(), g = b(() => Qg(t, (E) => d(E, u)?.swatchShape ?? "square"), [
5710
5712
  t,
5711
5713
  d,
5712
5714
  u
@@ -5719,9 +5721,9 @@ var lf = ({ edge: e, indexedLegends: t, containerWidth: r, containerHeight: n })
5719
5721
  visibleCount: g.length,
5720
5722
  hasOverflow: !1
5721
5723
  };
5722
- const E = ee(c.item, a.fonts.familyDefault), B = Fe(c.item), P = 2 * (c.item.paddingInline + c.item.strokeWidth), O = 2 * (c.item.paddingBlock + c.item.strokeWidth), L = (we) => f ? cf(we, B, c.swatch.size, O) : so({
5724
+ const E = ee(c.item, a.fonts.familyDefault), B = Fe(c.item), P = 2 * (c.item.paddingInline + c.item.strokeWidth), O = 2 * (c.item.paddingBlock + c.item.strokeWidth), L = (we) => f ? lf(we, B, c.swatch.size, O) : so({
5723
5725
  label: we.formattedLabel,
5724
- swatchInlineSize: df(we, c.swatch.size),
5726
+ swatchInlineSize: cf(we, c.swatch.size),
5725
5727
  textMeasurer: o,
5726
5728
  font: E,
5727
5729
  swatchGap: a.legendSwatchGap,
@@ -5734,7 +5736,7 @@ var lf = ({ edge: e, indexedLegends: t, containerWidth: r, containerHeight: n })
5734
5736
  swatchGap: a.legendSwatchGap,
5735
5737
  horizontalChrome: P
5736
5738
  })) + (yi(c.item) ? 8 : 0);
5737
- return hf({
5739
+ return uf({
5738
5740
  pillSizes: J,
5739
5741
  overflowPillSize: Z,
5740
5742
  containerSize: v,
@@ -5752,29 +5754,29 @@ var lf = ({ edge: e, indexedLegends: t, containerWidth: r, containerHeight: n })
5752
5754
  if (g.length === 0) return null;
5753
5755
  const y = g.slice(0, p.visibleCount), S = g.slice(p.visibleCount), k = p.hasOverflow && S.length > 0, C = Ai(c.item, x(c.item.fill));
5754
5756
  return /* @__PURE__ */ w("div", {
5755
- className: He(of[m], tf, {
5756
- [nf]: f,
5757
- [rf]: !f,
5758
- [af[e === "left" ? "left" : "right"]]: f
5757
+ className: He(nf[m], ef, {
5758
+ [rf]: f,
5759
+ [tf]: !f,
5760
+ [of[e === "left" ? "left" : "right"]]: f
5759
5761
  }),
5760
5762
  style: { gap: l.gap },
5761
5763
  children: [y.map((E) => /* @__PURE__ */ s("div", {
5762
- className: He(sf, h && "_1cecisi9"),
5764
+ className: He(af, h && "_1cecisi9"),
5763
5765
  style: C,
5764
5766
  ...h ? gn(E.address) : void 0,
5765
5767
  children: /* @__PURE__ */ s(bi, { pill: E })
5766
- }, E.key)), k && /* @__PURE__ */ s($g, {
5768
+ }, E.key)), k && /* @__PURE__ */ s(Zg, {
5767
5769
  hiddenPills: S,
5768
- placement: vf(e)
5770
+ placement: hf(e)
5769
5771
  })]
5770
5772
  });
5771
5773
  }, so = ({ label: e, swatchInlineSize: t, textMeasurer: r, font: n, swatchGap: o, horizontalChrome: a }) => {
5772
5774
  const i = r.measureText(e, n).width;
5773
5775
  return t + (t > 0 ? o : 0) + i + a;
5774
- }, cf = (e, t, r, n) => {
5775
- const o = uf(e, r);
5776
+ }, lf = (e, t, r, n) => {
5777
+ const o = df(e, r);
5776
5778
  return Math.max(t, o) + n;
5777
- }, df = (e, t) => Gt(e.visual, t, e.isBubble), uf = (e, t) => e.isBubble ? Gt(e.visual, t, !0) : t, hf = ({ pillSizes: e, overflowPillSize: t, containerSize: r, gap: n }) => {
5779
+ }, cf = (e, t) => Gt(e.visual, t, e.isBubble), df = (e, t) => e.isBubble ? Gt(e.visual, t, !0) : t, uf = ({ pillSizes: e, overflowPillSize: t, containerSize: r, gap: n }) => {
5778
5780
  if (e.length === 0) return {
5779
5781
  visibleCount: 0,
5780
5782
  hasOverflow: !1
@@ -5796,7 +5798,7 @@ var lf = ({ edge: e, indexedLegends: t, containerWidth: r, containerHeight: n })
5796
5798
  visibleCount: i,
5797
5799
  hasOverflow: !0
5798
5800
  };
5799
- }, vf = (e) => {
5801
+ }, hf = (e) => {
5800
5802
  switch (e) {
5801
5803
  case "top":
5802
5804
  return "bottom";
@@ -5807,7 +5809,7 @@ var lf = ({ edge: e, indexedLegends: t, containerWidth: r, containerHeight: n })
5807
5809
  case "right":
5808
5810
  return "left";
5809
5811
  }
5810
- }, gf = he(function({ formattedLegends: t, rects: r }) {
5812
+ }, vf = he(function({ formattedLegends: t, rects: r }) {
5811
5813
  const n = b(() => {
5812
5814
  const o = /* @__PURE__ */ new Map();
5813
5815
  return t.forEach((a, i) => {
@@ -5826,25 +5828,25 @@ var lf = ({ edge: e, indexedLegends: t, containerWidth: r, containerHeight: n })
5826
5828
  return /* @__PURE__ */ s(T, { children: Array.from(n, ([o, a]) => {
5827
5829
  const i = r[o];
5828
5830
  return i === void 0 ? null : /* @__PURE__ */ w("div", {
5829
- className: Fg,
5831
+ className: Dg,
5830
5832
  style: {
5831
5833
  left: i.x,
5832
5834
  top: i.y,
5833
5835
  width: i.width,
5834
5836
  height: i.height
5835
5837
  },
5836
- children: [/* @__PURE__ */ s(lf, {
5838
+ children: [/* @__PURE__ */ s(sf, {
5837
5839
  edge: o,
5838
5840
  indexedLegends: a.pill,
5839
5841
  containerWidth: i.width,
5840
5842
  containerHeight: i.height
5841
- }), /* @__PURE__ */ s(Og, {
5843
+ }), /* @__PURE__ */ s(Ng, {
5842
5844
  indexedLegends: a.direct,
5843
5845
  containerRect: i
5844
5846
  })]
5845
5847
  }, o);
5846
5848
  }) });
5847
- }), ff = (e, t, r) => {
5849
+ }), gf = (e, t, r) => {
5848
5850
  if (e.type === "cartesian") return Ts(e, t);
5849
5851
  const n = Ze(r), o = oe(t.x, e.innerRadius, n), a = oe(t.x, 1, n);
5850
5852
  return {
@@ -5853,43 +5855,43 @@ var lf = ({ edge: e, indexedLegends: t, containerWidth: r, containerHeight: n })
5853
5855
  x2: a.x,
5854
5856
  y2: a.y
5855
5857
  };
5856
- }, pf = ({ layers: e, primaryLayerId: t, coordSystem: r, resolveRenderer: n }) => {
5858
+ }, ff = ({ layers: e, primaryLayerId: t, coordSystem: r, resolveRenderer: n }) => {
5857
5859
  const o = e.find((i) => i.id === t);
5858
5860
  if (!o) return null;
5859
5861
  const a = n(o.geom, r.type);
5860
5862
  return a ? a.guideMode ?? null : null;
5861
- }, mf = ({ panelRect: e }) => {
5863
+ }, pf = ({ panelRect: e }) => {
5862
5864
  const { coordSystem: t, layers: r, scales: n } = D(ae((c) => ({
5863
5865
  coordSystem: c.coordSystem,
5864
5866
  layers: c.layers,
5865
5867
  scales: c.scales
5866
- }))), o = ht((c) => c.hover.primary), a = Re(), i = I(bf, M());
5868
+ }))), o = ht((c) => c.hover.primary), a = Re(), i = I(xf, M());
5867
5869
  if (!Me[Et()].hoverPaint || r.length === 0 || o === null || !o.anchored) return null;
5868
- const l = pf({
5870
+ const l = ff({
5869
5871
  layers: r,
5870
5872
  primaryLayerId: o.layerId,
5871
5873
  coordSystem: t,
5872
5874
  resolveRenderer: a
5873
5875
  });
5874
- return l === null ? null : l === "crosshair" ? /* @__PURE__ */ s(Af, {
5876
+ return l === null ? null : l === "crosshair" ? /* @__PURE__ */ s(mf, {
5875
5877
  coordSystem: t,
5876
5878
  primary: o,
5877
5879
  panelRect: e,
5878
5880
  guide: i
5879
- }) : t.type === "polar" ? /* @__PURE__ */ s(xf, {
5881
+ }) : t.type === "polar" ? /* @__PURE__ */ s(yf, {
5880
5882
  coordSystem: t,
5881
5883
  primary: o,
5882
5884
  panelRect: e,
5883
5885
  guide: i
5884
- }) : /* @__PURE__ */ s(yf, {
5886
+ }) : /* @__PURE__ */ s(Af, {
5885
5887
  coordSystem: t,
5886
5888
  scales: n,
5887
5889
  primary: o,
5888
5890
  panelRect: e,
5889
5891
  guide: i
5890
5892
  });
5891
- }, Af = ({ coordSystem: e, primary: t, panelRect: r, guide: n }) => {
5892
- const o = ff(e, t, r);
5893
+ }, mf = ({ coordSystem: e, primary: t, panelRect: r, guide: n }) => {
5894
+ const o = gf(e, t, r);
5893
5895
  return /* @__PURE__ */ s(fn, {
5894
5896
  panelRect: r,
5895
5897
  children: /* @__PURE__ */ s("line", {
@@ -5901,7 +5903,7 @@ var lf = ({ edge: e, indexedLegends: t, containerWidth: r, containerHeight: n })
5901
5903
  "data-testid": "hover-guide-line"
5902
5904
  })
5903
5905
  });
5904
- }, yf = ({ coordSystem: e, scales: t, primary: r, panelRect: n, guide: o }) => {
5906
+ }, Af = ({ coordSystem: e, scales: t, primary: r, panelRect: n, guide: o }) => {
5905
5907
  const a = Ls(e, t, r);
5906
5908
  return a === null ? null : /* @__PURE__ */ s(fn, {
5907
5909
  panelRect: n,
@@ -5911,7 +5913,7 @@ var lf = ({ edge: e, indexedLegends: t, containerWidth: r, containerHeight: n })
5911
5913
  "data-testid": "hover-guide-rect"
5912
5914
  })
5913
5915
  });
5914
- }, xf = ({ coordSystem: e, primary: t, panelRect: r, guide: n }) => {
5916
+ }, yf = ({ coordSystem: e, primary: t, panelRect: r, guide: n }) => {
5915
5917
  const o = Ns(e, t);
5916
5918
  if (o === null) return null;
5917
5919
  const a = De(o);
@@ -5941,20 +5943,20 @@ var lf = ({ edge: e, indexedLegends: t, containerWidth: r, containerHeight: n })
5941
5943
  },
5942
5944
  "data-testid": "hover-guide",
5943
5945
  children: t
5944
- }), bf = (e) => e.hoverGuide().resolve(), wA = (e, t, r) => {
5946
+ }), xf = (e) => e.hoverGuide().resolve(), bA = (e, t, r) => {
5945
5947
  for (const n of Object.values(Si)) {
5946
5948
  const o = n(e, t, r);
5947
5949
  if (o !== null) return o;
5948
5950
  }
5949
5951
  return null;
5950
- }, wf = (e) => Si[e] !== void 0, Sf = (e, t, r) => wi(e, r, t / 2), kf = (e, t) => {
5952
+ }, bf = (e) => Si[e] !== void 0, wf = (e, t, r) => wi(e, r, t / 2), Sf = (e, t) => {
5951
5953
  const r = gt(e.start, t), n = gt(e.end, t);
5952
5954
  return r.x === n.x && r.y === n.y ? null : {
5953
5955
  shape: "segment",
5954
5956
  start: r,
5955
5957
  end: n
5956
5958
  };
5957
- }, Ef = (e, { panel: t, measuredBoxes: r }) => {
5959
+ }, kf = (e, { panel: t, measuredBoxes: r }) => {
5958
5960
  const n = r.get(e.id);
5959
5961
  if (n === void 0) return null;
5960
5962
  const o = yo(e.align), a = gt(e.at, t);
@@ -5982,19 +5984,19 @@ var lf = ({ edge: e, indexedLegends: t, containerWidth: r, containerHeight: n })
5982
5984
  }
5983
5985
  };
5984
5986
  }, Si = {
5985
- text: Lt((e) => e.textAnnotations, Ef),
5986
- shape: Lt((e) => e.shapes, (e, t) => Sf(e.region, t.readers.annotation.shape(e.id).get("strokeWidth"), t.panel)),
5987
+ text: Lt((e) => e.textAnnotations, kf),
5988
+ shape: Lt((e) => e.shapes, (e, t) => wf(e.region, t.readers.annotation.shape(e.id).get("strokeWidth"), t.panel)),
5987
5989
  image: Lt((e) => e.images, (e, t) => wi(e.region, t.panel)),
5988
- arrow: Lt((e) => e.arrows, (e, t) => kf(e, t.panel))
5989
- }, Pf = (e, t) => {
5990
+ arrow: Lt((e) => e.arrows, (e, t) => Sf(e, t.panel))
5991
+ }, Ef = (e, t) => {
5990
5992
  const r = ks(e, t);
5991
- return r !== null && wf(r.kind) && Fs(r);
5992
- }, Rf = 200, Cf = ({ engine: e, store: t, overlayRef: r }) => {
5993
+ return r !== null && bf(r.kind) && Fs(r);
5994
+ }, Pf = 200, Rf = ({ engine: e, store: t, overlayRef: r }) => {
5993
5995
  const { tolerance: n } = Me[Et()], o = Je(t, (a) => a.isQueryOwnedByEditor);
5994
5996
  F(() => {
5995
5997
  const a = r.current;
5996
5998
  if (!a) return;
5997
- const i = Bf(a, e), l = o ? void 0 : Tf(a, e, t, n ?? void 0);
5999
+ const i = Cf(a, e), l = o ? void 0 : If(a, e, t, n ?? void 0);
5998
6000
  return () => {
5999
6001
  l?.(), i();
6000
6002
  };
@@ -6005,7 +6007,7 @@ var lf = ({ edge: e, indexedLegends: t, containerWidth: r, containerHeight: n })
6005
6007
  n,
6006
6008
  o
6007
6009
  ]);
6008
- }, Bf = (e, t) => {
6010
+ }, Cf = (e, t) => {
6009
6011
  const r = () => {
6010
6012
  const i = e.getBoundingClientRect();
6011
6013
  i.width === 0 || i.height === 0 || t.setViewport({
@@ -6017,17 +6019,17 @@ var lf = ({ edge: e, indexedLegends: t, containerWidth: r, containerHeight: n })
6017
6019
  const o = () => {
6018
6020
  n !== null && clearTimeout(n), n = setTimeout(() => {
6019
6021
  n = null, r();
6020
- }, Rf);
6022
+ }, Pf);
6021
6023
  }, a = new ResizeObserver(o);
6022
6024
  return a.observe(e), r(), () => {
6023
6025
  a.disconnect(), n !== null && clearTimeout(n);
6024
6026
  };
6025
- }, If = (e, t) => e.kind === "cursor" ? null : {
6027
+ }, Bf = (e, t) => e.kind === "cursor" ? null : {
6026
6028
  x: t.left + e.point.x,
6027
6029
  y: t.top + e.point.y,
6028
6030
  placement: e.placement,
6029
6031
  annotationId: e.annotationId
6030
- }, Tf = (e, t, r, n) => {
6032
+ }, If = (e, t, r, n) => {
6031
6033
  let o = null, a = null;
6032
6034
  const i = () => {
6033
6035
  const v = e.getBoundingClientRect();
@@ -6045,7 +6047,7 @@ var lf = ({ edge: e, indexedLegends: t, containerWidth: r, containerHeight: n })
6045
6047
  if (x.isPointerSuspended) return;
6046
6048
  const y = Cn(p, x.pointerRegions);
6047
6049
  if (y !== null) {
6048
- x.setHoverState(t.query(y.cursor, n)), x.setTooltipAnchor(If(y.tooltip, m));
6050
+ x.setHoverState(t.query(y.cursor, n)), x.setTooltipAnchor(Bf(y.tooltip, m));
6049
6051
  return;
6050
6052
  }
6051
6053
  const S = sl(p, m);
@@ -6074,14 +6076,14 @@ var lf = ({ edge: e, indexedLegends: t, containerWidth: r, containerHeight: n })
6074
6076
  return e.addEventListener("pointermove", g), e.addEventListener("pointerleave", f), () => {
6075
6077
  e.removeEventListener("pointermove", g), e.removeEventListener("pointerleave", f), document.removeEventListener("pointermove", h), a !== null && cancelAnimationFrame(a), o = null;
6076
6078
  };
6077
- }, Lf = ({ panelRect: e }) => {
6078
- const { engine: t, store: r, overlayRef: n } = ze(), o = Ie(ti), a = Ie(bv), i = Ie((c) => c.caret !== null);
6079
- Cf({
6079
+ }, Tf = ({ panelRect: e }) => {
6080
+ const { engine: t, store: r, overlayRef: n } = ze(), o = Ie(ti), a = Ie(xv), i = Ie((c) => c.caret !== null);
6081
+ Rf({
6080
6082
  engine: t,
6081
6083
  store: r,
6082
6084
  overlayRef: n
6083
6085
  });
6084
- const l = D((c) => o !== null && Pf(c.spec.annotations, o));
6086
+ const l = D((c) => o !== null && Ef(c.spec.annotations, o));
6085
6087
  return /* @__PURE__ */ s("rect", {
6086
6088
  ref: n,
6087
6089
  x: e.x,
@@ -6090,10 +6092,10 @@ var lf = ({ edge: e, indexedLegends: t, containerWidth: r, containerHeight: n })
6090
6092
  height: e.height,
6091
6093
  fill: "transparent",
6092
6094
  pointerEvents: i ? "none" : "all",
6093
- cursor: Mf(l, a),
6095
+ cursor: Lf(l, a),
6094
6096
  "data-testid": "pointer-capture-layer"
6095
6097
  });
6096
- }, Mf = (e, t) => e ? "move" : t ? "pointer" : void 0, ur = "data-hover-active", Nf = (e) => {
6098
+ }, Lf = (e, t) => e ? "move" : t ? "pointer" : void 0, ur = "data-hover-active", Mf = (e) => {
6097
6099
  const { store: t } = ze(), r = Me[Et()].hoverPaint, n = Je(t, (a) => a.hover.primary !== null), o = r && n;
6098
6100
  F(() => {
6099
6101
  const a = e.current;
@@ -6103,7 +6105,7 @@ var lf = ({ edge: e, indexedLegends: t, containerWidth: r, containerHeight: n })
6103
6105
  };
6104
6106
  }, [e, o]);
6105
6107
  }, nr = () => Ie((e) => vt(e, "move-drag")?.annotationId ?? vt(e, "shape-resize-drag")?.annotationId ?? vt(e, "arrow-endpoint-drag")?.annotationId ?? null), Pt = (e) => {
6106
- const t = D((i) => i.annotations), r = sv(), n = dv(), o = ce((i) => lo(n, "cycle", i, `Annotation reference cycle detected; dropping annotation(s): ${i.join(", ")}`), [n]), a = ce((i) => lo(n, "missing-ref", i, `Annotation reference target(s) no longer exist (dropped during compilation); dropping annotations referencing: ${i.join(", ")}`), [n]);
6108
+ const t = D((i) => i.annotations), r = iv(), n = cv(), o = ce((i) => lo(n, "cycle", i, `Annotation reference cycle detected; dropping annotation(s): ${i.join(", ")}`), [n]), a = ce((i) => lo(n, "missing-ref", i, `Annotation reference target(s) no longer exist (dropped during compilation); dropping annotations referencing: ${i.join(", ")}`), [n]);
6107
6109
  return b(() => tl({
6108
6110
  annotations: t,
6109
6111
  panelRect: e,
@@ -6120,13 +6122,13 @@ var lf = ({ edge: e, indexedLegends: t, containerWidth: r, containerHeight: n })
6120
6122
  }, lo = (e, t, r, n) => {
6121
6123
  const o = [t, ...[...r].sort()].join("\0");
6122
6124
  e.has(o) || (e.add(o), console.warn(n));
6123
- }, Of = 16, ki = ({ linePath: e, strokeWidth: t }) => /* @__PURE__ */ s("path", {
6125
+ }, Nf = 16, ki = ({ linePath: e, strokeWidth: t }) => /* @__PURE__ */ s("path", {
6124
6126
  d: e,
6125
6127
  stroke: "transparent",
6126
- strokeWidth: Math.max(t, Of),
6128
+ strokeWidth: Math.max(t, Nf),
6127
6129
  fill: "none",
6128
6130
  pointerEvents: "stroke"
6129
- }), Hf = 1.4, Df = {
6131
+ }), Of = 1.4, Hf = {
6130
6132
  light: {
6131
6133
  primary: "#1D2129",
6132
6134
  inverse: "#FFFFFF"
@@ -6135,11 +6137,11 @@ var lf = ({ edge: e, indexedLegends: t, containerWidth: r, containerHeight: n })
6135
6137
  primary: "#FFFFFF",
6136
6138
  inverse: "#1D2129"
6137
6139
  }
6138
- }, Ff = ({ computed: e, style: t, isAddressable: r }) => {
6140
+ }, Df = ({ computed: e, style: t, isAddressable: r }) => {
6139
6141
  const n = $(), { colorScheme: o } = an(), a = e.dashArray ? {
6140
6142
  strokeDasharray: e.dashArray,
6141
6143
  strokeDashoffset: e.dashOffset
6142
- } : {}, i = t.outline.shadow === "none" ? null : t.outline.shadow, l = t.outline.strokeWidth > 0, c = Df[o], d = t.outline.stroke ?? Uf(t.stroke, c.primary, c.inverse), u = i === null ? null : Wf(e, t.outline.strokeWidth, i.blur);
6144
+ } : {}, i = t.outline.shadow === "none" ? null : t.outline.shadow, l = t.outline.strokeWidth > 0, c = Hf[o], d = t.outline.stroke ?? Wf(t.stroke, c.primary, c.inverse), u = i === null ? null : Gf(e, t.outline.strokeWidth, i.blur);
6143
6145
  return /* @__PURE__ */ w("g", {
6144
6146
  pointerEvents: r ? void 0 : "none",
6145
6147
  children: [
@@ -6162,7 +6164,7 @@ var lf = ({ edge: e, indexedLegends: t, containerWidth: r, containerHeight: n })
6162
6164
  filter: i === null ? void 0 : `url(#${n})`,
6163
6165
  children: [
6164
6166
  l && /* @__PURE__ */ s("path", {
6165
- d: Gf(e),
6167
+ d: Ff(e),
6166
6168
  stroke: d,
6167
6169
  strokeWidth: e.strokeWidth + 2 * t.outline.strokeWidth,
6168
6170
  strokeLinecap: "round",
@@ -6194,11 +6196,11 @@ var lf = ({ edge: e, indexedLegends: t, containerWidth: r, containerHeight: n })
6194
6196
  })
6195
6197
  ]
6196
6198
  });
6197
- }, Gf = (e) => [
6199
+ }, Ff = (e) => [
6198
6200
  e.linePath,
6199
6201
  e.startArrowheadPath,
6200
6202
  e.endArrowheadPath
6201
- ].filter((t) => t.length > 0).join(" "), Wf = (e, t, r) => {
6203
+ ].filter((t) => t.length > 0).join(" "), Gf = (e, t, r) => {
6202
6204
  const n = e.arrowheadExtent + e.strokeWidth + t + r;
6203
6205
  return {
6204
6206
  x: Math.min(e.startX, e.endX) - n,
@@ -6206,13 +6208,13 @@ var lf = ({ edge: e, indexedLegends: t, containerWidth: r, containerHeight: n })
6206
6208
  width: Math.abs(e.endX - e.startX) + 2 * n,
6207
6209
  height: Math.abs(e.endY - e.startY) + 2 * n
6208
6210
  };
6209
- }, Uf = (e, t, r) => {
6211
+ }, Wf = (e, t, r) => {
6210
6212
  try {
6211
- return gl(e, t) < Hf ? r : t;
6213
+ return gl(e, t) < Of ? r : t;
6212
6214
  } catch {
6213
6215
  return r;
6214
6216
  }
6215
- }, Vf = ({ panelRect: e, isEditable: t }) => {
6217
+ }, Uf = ({ panelRect: e, isEditable: t }) => {
6216
6218
  const { arrows: r } = Pt(e), n = nr(), o = M(), a = b(() => r.filter((i) => i.id !== n).flatMap((i) => {
6217
6219
  const l = qs(o, i.id), c = ds({
6218
6220
  arrow: i,
@@ -6239,17 +6241,17 @@ var lf = ({ edge: e, indexedLegends: t, containerWidth: r, containerHeight: n })
6239
6241
  kind: "annotation",
6240
6242
  id: i.id
6241
6243
  }),
6242
- children: /* @__PURE__ */ s(Ff, {
6244
+ children: /* @__PURE__ */ s(Df, {
6243
6245
  computed: i,
6244
6246
  style: l,
6245
6247
  isAddressable: t
6246
6248
  })
6247
6249
  }, i.id))
6248
6250
  });
6249
- }, zf = () => {
6251
+ }, Vf = () => {
6250
6252
  const { selectionStore: e } = ne();
6251
6253
  return Je(e, (t) => t.selection);
6252
- }, jf = ({ linePath: e, arrowheadPath: t, stroke: r, strokeWidth: n, isAddressable: o }) => {
6254
+ }, zf = ({ linePath: e, arrowheadPath: t, stroke: r, strokeWidth: n, isAddressable: o }) => {
6253
6255
  const a = {
6254
6256
  stroke: r,
6255
6257
  strokeWidth: n,
@@ -6274,7 +6276,7 @@ var lf = ({ edge: e, indexedLegends: t, containerWidth: r, containerHeight: n })
6274
6276
  })
6275
6277
  ]
6276
6278
  });
6277
- }, Yf = ({ x: e, y: t, text: r, box: n, label: o, arrowColor: a, isAddressable: i }) => {
6279
+ }, jf = ({ x: e, y: t, text: r, box: n, label: o, arrowColor: a, isAddressable: i }) => {
6278
6280
  const { fonts: l } = Ve(), c = er(o.cornerRadius), d = o.shadow === void 0 ? void 0 : _e(o.shadow), u = {
6279
6281
  fill: W(o.fill),
6280
6282
  stroke: o.stroke ?? a,
@@ -6308,27 +6310,27 @@ var lf = ({ edge: e, indexedLegends: t, containerWidth: r, containerHeight: n })
6308
6310
  children: pt(r, o.textTransform)
6309
6311
  })]
6310
6312
  });
6311
- }, Kf = "_1i8rg6j0", Qf = "75%", Xf = ({ panelRect: e, isEditable: t }) => {
6312
- const r = Ev(), n = Ie(ti), o = zf(), a = b(() => new Set(o.filter((i) => i.kind === "annotation").map((i) => i.id)), [o]);
6313
+ }, Yf = "_1i8rg6j0", Kf = "75%", Qf = ({ panelRect: e, isEditable: t }) => {
6314
+ const r = kv(), n = Ie(ti), o = Vf(), a = b(() => new Set(o.filter((i) => i.kind === "annotation").map((i) => i.id)), [o]);
6313
6315
  return r.length === 0 ? null : /* @__PURE__ */ s("g", {
6314
6316
  transform: `translate(${e.x}, ${e.y})`,
6315
6317
  "data-testid": "difference-arrows",
6316
6318
  children: r.map(({ color: i, style: l, id: c, linePath: d, arrowheadPath: u, labelPosition: h, labelBox: g, labelText: f, isDragged: v, hasComparableEndpoints: m }) => {
6317
- const p = n === c || a.has(c), x = v && !m, y = x ? A.alert : i, S = p && !x ? qf(y) : y;
6319
+ const p = n === c || a.has(c), x = v && !m, y = x ? A.alert : i, S = p && !x ? Xf(y) : y;
6318
6320
  return /* @__PURE__ */ w("g", {
6319
- className: n === c ? Kf : void 0,
6321
+ className: n === c ? Yf : void 0,
6320
6322
  "data-warning": x || void 0,
6321
6323
  ...kt({
6322
6324
  kind: "annotation",
6323
6325
  id: c
6324
6326
  }),
6325
- children: [/* @__PURE__ */ s(jf, {
6327
+ children: [/* @__PURE__ */ s(zf, {
6326
6328
  linePath: d,
6327
6329
  arrowheadPath: u,
6328
6330
  stroke: S,
6329
6331
  strokeWidth: l.strokeWidth,
6330
6332
  isAddressable: t
6331
- }), /* @__PURE__ */ s(Yf, {
6333
+ }), /* @__PURE__ */ s(jf, {
6332
6334
  x: h.x,
6333
6335
  y: h.y,
6334
6336
  text: f,
@@ -6340,11 +6342,11 @@ var lf = ({ edge: e, indexedLegends: t, containerWidth: r, containerHeight: n })
6340
6342
  }, c);
6341
6343
  })
6342
6344
  });
6343
- }, qf = (e) => `color-mix(in srgb, ${e} ${Qf}, ${A.textPrimary})`, Jf = {
6345
+ }, Xf = (e) => `color-mix(in srgb, ${e} ${Kf}, ${A.textPrimary})`, qf = {
6344
6346
  fill: "none",
6345
6347
  contain: "xMidYMid meet",
6346
6348
  cover: "xMidYMid slice"
6347
- }, Zf = ({ image: e, panel: t, style: r }) => {
6349
+ }, Jf = ({ image: e, panel: t, style: r }) => {
6348
6350
  const n = $(), { src: o, region: a, fit: i } = e, l = Wr(a, t), c = Ju(r.cornerRadius), d = er(r.cornerRadius), u = r.shadow === void 0 ? void 0 : _e(r.shadow);
6349
6351
  return /* @__PURE__ */ w("g", {
6350
6352
  opacity: r.alpha,
@@ -6358,7 +6360,7 @@ var lf = ({ edge: e, indexedLegends: t, containerWidth: r, containerHeight: n })
6358
6360
  }), /* @__PURE__ */ s("image", {
6359
6361
  href: o,
6360
6362
  ...l,
6361
- preserveAspectRatio: Jf[i],
6363
+ preserveAspectRatio: qf[i],
6362
6364
  clipPath: c ? `url(#${n})` : void 0
6363
6365
  })]
6364
6366
  });
@@ -6376,14 +6378,14 @@ var lf = ({ edge: e, indexedLegends: t, containerWidth: r, containerHeight: n })
6376
6378
  kind: "annotation",
6377
6379
  id: i.id
6378
6380
  }),
6379
- children: /* @__PURE__ */ s(Zf, {
6381
+ children: /* @__PURE__ */ s(Jf, {
6380
6382
  image: i,
6381
6383
  panel: e,
6382
6384
  style: n.annotation.image(i.id).resolve()
6383
6385
  })
6384
6386
  }, i.id))
6385
6387
  });
6386
- }, $f = ({ shape: e, style: t, panel: r }) => {
6388
+ }, Zf = ({ shape: e, style: t, panel: r }) => {
6387
6389
  const n = Wr(e.region, r);
6388
6390
  return /* @__PURE__ */ s("rect", {
6389
6391
  x: n.x,
@@ -6410,14 +6412,14 @@ var lf = ({ edge: e, indexedLegends: t, containerWidth: r, containerHeight: n })
6410
6412
  kind: "annotation",
6411
6413
  id: i.id
6412
6414
  }),
6413
- children: /* @__PURE__ */ s($f, {
6415
+ children: /* @__PURE__ */ s(Zf, {
6414
6416
  shape: i,
6415
6417
  style: n.annotation.shape(i.id).resolve(),
6416
6418
  panel: e
6417
6419
  })
6418
6420
  }, i.id))
6419
6421
  });
6420
- }, _f = "_1aj6s5s0", SA = "_1aj6s5s1", ep = 0.1, kA = ({ annotation: e, panel: t, style: r, blockRef: n }) => /* @__PURE__ */ s(Ei, {
6422
+ }, $f = "_1aj6s5s0", wA = "_1aj6s5s1", _f = 0.1, SA = ({ annotation: e, panel: t, style: r, blockRef: n }) => /* @__PURE__ */ s(Ei, {
6421
6423
  annotation: e,
6422
6424
  panel: t,
6423
6425
  style: r,
@@ -6434,19 +6436,19 @@ var lf = ({ edge: e, indexedLegends: t, containerWidth: r, containerHeight: n })
6434
6436
  pointerEvents: "none",
6435
6437
  children: /* @__PURE__ */ s("div", {
6436
6438
  ref: n,
6437
- className: _f,
6439
+ className: $f,
6438
6440
  style: {
6439
- ...rp(r),
6440
- transform: tp(e.align)
6441
+ ...tp(r),
6442
+ transform: ep(e.align)
6441
6443
  },
6442
6444
  children: o
6443
6445
  })
6444
6446
  });
6445
- }, tp = (e) => {
6447
+ }, ep = (e) => {
6446
6448
  const t = yo(e);
6447
6449
  return `translate(${-t.x * 100}%, ${-(1 - t.y) * 100}%)`;
6448
- }, rp = (e) => {
6449
- const { backgroundColor: t, borderShadow: r } = np(e), n = [r, e.shadow === void 0 || e.shadow === "none" ? void 0 : $e(e.shadow)].filter((o) => o !== void 0);
6450
+ }, tp = (e) => {
6451
+ const { backgroundColor: t, borderShadow: r } = rp(e), n = [r, e.shadow === void 0 || e.shadow === "none" ? void 0 : $e(e.shadow)].filter((o) => o !== void 0);
6450
6452
  return {
6451
6453
  ...K(e),
6452
6454
  padding: `${e.paddingBlock}px ${e.paddingInline}px`,
@@ -6455,27 +6457,27 @@ var lf = ({ edge: e, indexedLegends: t, containerWidth: r, containerHeight: n })
6455
6457
  ...t === void 0 ? {} : { backgroundColor: t },
6456
6458
  ...n.length === 0 ? {} : { boxShadow: n.join(", ") }
6457
6459
  };
6458
- }, np = (e) => {
6460
+ }, rp = (e) => {
6459
6461
  if (e.fill === "transparent") return {};
6460
6462
  const t = W(e.fill), r = e.fillAlpha < 1 ? te(t, e.fillAlpha) : t;
6461
6463
  if (e.strokeWidth <= 0) return { backgroundColor: r };
6462
- const n = e.stroke ?? Mc(t, ep);
6464
+ const n = e.stroke ?? Mc(t, _f);
6463
6465
  return {
6464
6466
  backgroundColor: r,
6465
6467
  borderShadow: `0 0 0 ${e.strokeWidth}px ${n}`
6466
6468
  };
6467
- }, op = (e) => {
6469
+ }, np = (e) => {
6468
6470
  const t = Pt(e).textAnnotations, r = Ie((n) => vt(n, "text-resize-drag"));
6469
- return b(() => t.map((n) => ap(n, r)), [t, r]);
6470
- }, ap = (e, t) => t === null || t.annotationId !== e.id ? e : {
6471
+ return b(() => t.map((n) => op(n, r)), [t, r]);
6472
+ }, op = (e, t) => t === null || t.annotationId !== e.id ? e : {
6471
6473
  ...e,
6472
6474
  at: {
6473
6475
  ...e.at,
6474
6476
  x: e.at.x + t.shift
6475
6477
  },
6476
6478
  width: t.width
6477
- }, ip = ({ panelRect: e }) => {
6478
- const t = op(e), r = M(), n = nr(), o = t.filter((a) => a.id !== n);
6479
+ }, ap = ({ panelRect: e }) => {
6480
+ const t = np(e), r = M(), n = nr(), o = t.filter((a) => a.id !== n);
6479
6481
  return o.length === 0 ? null : /* @__PURE__ */ s("svg", {
6480
6482
  x: e.x,
6481
6483
  y: e.y,
@@ -6483,14 +6485,14 @@ var lf = ({ edge: e, indexedLegends: t, containerWidth: r, containerHeight: n })
6483
6485
  height: e.height,
6484
6486
  overflow: "visible",
6485
6487
  "data-testid": "text-annotations",
6486
- children: o.map((a) => /* @__PURE__ */ s(sp, {
6488
+ children: o.map((a) => /* @__PURE__ */ s(ip, {
6487
6489
  annotation: a,
6488
6490
  panel: e,
6489
6491
  style: r.annotation.text(a.id).resolve()
6490
6492
  }, a.id))
6491
6493
  });
6492
- }, sp = ({ annotation: e, panel: t, style: r }) => {
6493
- const n = cv(e.id), o = Ie((i) => i.caret?.annotationId === e.id), { TextAnnotation: a } = hn();
6494
+ }, ip = ({ annotation: e, panel: t, style: r }) => {
6495
+ const n = lv(e.id), o = Ie((i) => i.caret?.annotationId === e.id), { TextAnnotation: a } = hn();
6494
6496
  return /* @__PURE__ */ s("g", {
6495
6497
  ...kt({
6496
6498
  kind: "annotation",
@@ -6504,11 +6506,11 @@ var lf = ({ edge: e, indexedLegends: t, containerWidth: r, containerHeight: n })
6504
6506
  children: o && a ? /* @__PURE__ */ s(a, { annotation: e }) : /* @__PURE__ */ s(Xe, { content: e.content })
6505
6507
  })
6506
6508
  });
6507
- }, lp = "ph8bdc0";
6508
- var cp = "ph8bdc2", ho = {
6509
+ }, sp = "ph8bdc0";
6510
+ var lp = "ph8bdc2", ho = {
6509
6511
  hittable: "ph8bdc4 ph8bdc3",
6510
6512
  inert: "ph8bdc5 ph8bdc3"
6511
- }, dp = ({ cx: e, cy: t, color: r, style: n }) => {
6513
+ }, cp = ({ cx: e, cy: t, color: r, style: n }) => {
6512
6514
  const o = _e(n.shadow);
6513
6515
  return /* @__PURE__ */ s("circle", {
6514
6516
  cx: e,
@@ -6522,7 +6524,7 @@ var cp = "ph8bdc2", ho = {
6522
6524
  }
6523
6525
  });
6524
6526
  };
6525
- function up(e) {
6527
+ function dp(e) {
6526
6528
  const t = Le(), { formattingLocale: r } = ne(), n = M(), o = D(ae((c) => ({
6527
6529
  pinnedNumbers: c.annotations.pinnedNumbers,
6528
6530
  comments: c.annotations.comments,
@@ -6533,7 +6535,7 @@ function up(e) {
6533
6535
  numberFormat: o.numberFormat,
6534
6536
  locale: a
6535
6537
  }), [o.numberFormat, a]), l = b(() => (c, d, u) => {
6536
- const h = gr(n, c === "pinned-number" ? "pinnedNumber" : "comment", d).label, g = ee(h, qt), f = hp(t, c, u, g), v = t.measureText(f, g), m = c === "pinned-number" ? 15 : 0;
6538
+ const h = gr(n, c === "pinned-number" ? "pinnedNumber" : "comment", d).label, g = ee(h, qt), f = up(t, c, u, g), v = t.measureText(f, g), m = c === "pinned-number" ? 15 : 0;
6537
6539
  return {
6538
6540
  width: v.width + m + (h.paddingInline + h.strokeWidth) * 2,
6539
6541
  height: Math.max(v.height, 10) + (h.paddingBlock + h.strokeWidth) * 2,
@@ -6556,11 +6558,11 @@ function up(e) {
6556
6558
  i
6557
6559
  ]);
6558
6560
  }
6559
- var hp = (e, t, r, n) => t !== "comment" ? r : Do(r, 140, (o) => e.measureText(o, n).width), vo = "callouts", vp = ({ panelRect: e }) => {
6561
+ var up = (e, t, r, n) => t !== "comment" ? r : Do(r, 140, (o) => e.measureText(o, n).width), vo = "callouts", hp = ({ panelRect: e }) => {
6560
6562
  const { pinnedNumbers: t, comments: r } = D(ae((v) => ({
6561
6563
  pinnedNumbers: v.annotations.pinnedNumbers,
6562
6564
  comments: v.annotations.comments
6563
- }))), n = D((v) => v.coordSystem), o = Re(), a = yl(10), i = M(), l = up(e), { store: c } = ze(), d = b(() => {
6565
+ }))), n = D((v) => v.coordSystem), o = Re(), a = yl(10), i = M(), l = dp(e), { store: c } = ze(), d = b(() => {
6564
6566
  const v = /* @__PURE__ */ new Map();
6565
6567
  for (const m of t) v.set(m.id, m.at);
6566
6568
  for (const m of r) v.set(m.id, m.at);
@@ -6590,7 +6592,7 @@ var hp = (e, t, r, n) => t !== "comment" ? r : Do(r, 140, (o) => e.measureText(o
6590
6592
  width: e.width,
6591
6593
  height: e.height,
6592
6594
  overflow: "visible",
6593
- className: lp,
6595
+ className: sp,
6594
6596
  "data-testid": "callouts",
6595
6597
  children: l.map((v) => {
6596
6598
  if (!v.inView) return null;
@@ -6607,7 +6609,7 @@ var hp = (e, t, r, n) => t !== "comment" ? r : Do(r, 140, (o) => e.measureText(o
6607
6609
  overflow: "visible",
6608
6610
  children: /* @__PURE__ */ w("div", {
6609
6611
  className: S ? ho.hittable : ho.inert,
6610
- style: pp(p.label, f(p.label.fill)),
6612
+ style: fp(p.label, f(p.label.fill)),
6611
6613
  children: [v.kind === "pinned-number" && /* @__PURE__ */ s("span", {
6612
6614
  className: "ph8bdc1",
6613
6615
  children: /* @__PURE__ */ s(wt, {
@@ -6622,31 +6624,31 @@ var hp = (e, t, r, n) => t !== "comment" ? r : Do(r, 140, (o) => e.measureText(o
6622
6624
  symbol: x?.symbol
6623
6625
  })
6624
6626
  }), /* @__PURE__ */ s("span", {
6625
- className: cp,
6626
- style: mp(p.label),
6627
+ className: lp,
6628
+ style: pp(p.label),
6627
6629
  children: v.text
6628
6630
  })]
6629
6631
  })
6630
- }), /* @__PURE__ */ s(dp, {
6632
+ }), /* @__PURE__ */ s(cp, {
6631
6633
  cx: v.anchorPx.x,
6632
6634
  cy: v.anchorPx.y,
6633
- color: gp(p.marker, y),
6635
+ color: vp(p.marker, y),
6634
6636
  style: p.marker
6635
6637
  })]
6636
6638
  }, v.id);
6637
6639
  })
6638
6640
  });
6639
- }, gp = (e, t) => e.isFillAuthored ? W(e.fill) : t ?? W(e.fill), fp = (e) => e.isTextColorAuthored ? e.textColor : Ss(e.textColor, W(e.fill)), pp = (e, t) => ({
6641
+ }, vp = (e, t) => e.isFillAuthored ? W(e.fill) : t ?? W(e.fill), gp = (e) => e.isTextColorAuthored ? e.textColor : Ss(e.textColor, W(e.fill)), fp = (e, t) => ({
6640
6642
  ...tr(e.fill, t),
6641
6643
  borderRadius: St(e.cornerRadius),
6642
6644
  padding: `${e.paddingBlock}px ${e.paddingInline}px`,
6643
6645
  boxShadow: $e(e.shadow),
6644
6646
  ...e.alpha === void 0 ? {} : { opacity: e.alpha },
6645
6647
  ...e.strokeWidth > 0 ? { border: `${e.strokeWidth}px solid ${e.stroke}` } : {}
6646
- }), mp = (e) => ({
6648
+ }), pp = (e) => ({
6647
6649
  ...K(e),
6648
- color: fp(e)
6649
- }), Ap = (e, t) => e * 10 * t, yp = {
6650
+ color: gp(e)
6651
+ }), mp = (e, t) => e * 10 * t, Ap = {
6650
6652
  "clapping-hands": {
6651
6653
  aspectRatio: 1.059,
6652
6654
  src: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEQAAABICAYAAABP0VPJAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAABipSURBVHgB7VwJfFTVuf/uMvtMlplJJiEhBEhYwiIYNgExUBSQ6qMqblWrz5/WtfBa67NiH1iftbW1VqWghWqt+opFfajFBRcSUMImEBISspCFSTIh++zbXfqdO3cmswWSSPVHf/1+ub977znfPfec//m28507Afg3/ZvORsxwmEVRpJDo0tISCqA0XEzJBx06bwjXUXAB0lA7TZWUlDCtra3Mtm3vjCUF1113dbNWqxXItcfjod966718igpSubm5ow8fPnx8zZo1fQ0NMzlR/JuAIIrwL0LU6tWrmfz8fLXD4XgYJaRPlEkQhH6v1/s6lj9FrsU44nm+BevuAihWbNiwgYZ/ASLSw5aXfzU5EAjuFUdICNr/ElDgAlWhCBHJ2L//SFGy2R8uWa3ty9G2XNBSQhUVFSmJ2IvngdDGvEHaS/YeUZQkhykuLlaEeIoV5JpMCEiGWgKSHTg2yMb7GyTSmZqamksGG6DP1ZdQhqpha6jcd7Tp6MdOjuMc0XUEWDS2mriBEEPNfvrppxa32/2k3+9/H/kqgsHgHp/Pt7Gzs+cGi8Wis1qty8k9sVfk3N5+ZllBQYFKBugbAUaSjra2tgfiB+040yS+u75E/PDpVVGz77VJdZ1N4ubVIP5uFf2VyTR9bmVl7ZYwTyDAWdPT01Mh5JojYDQ1Nc07mxRinT1ZObFp9fVN8wCKlHh7XkGJ0Wu5cbasrOw/s7Kynkzgx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L3ZXLjFxzhTDswS9cWTEubiYPmUQLSfCoVeO32dk9BAeWbM2dKoLq6TP7l0vDoQjYyUUnXUDqe0Nf9f0f/APDc5Dseec9LAAAAAElFTkSuQmCC"
@@ -6667,10 +6669,10 @@ var hp = (e, t, r, n) => t !== "comment" ? r : Do(r, 140, (o) => e.measureText(o
6667
6669
  aspectRatio: 1.063,
6668
6670
  src: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABECAYAAAAx+DPIAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAABSHSURBVHgB7VwLcFzVef7PfezefWklZEl+BQQSGGQsMMa0vFXStCRAaQsaEpoyZTINTMkwHaAloWlRTcNQZkImSTNTmoG4YEoTOhkTkjF1gYgE6leEjQ0yorIs23pYLySttK/7Ov3/c+5Ku3uv1qJIUGfyjw93d+8595z/P//zO1cA/IZ+Qx8nMc45A+hQ8LMG0KZt2rRJpyvd89rHuyD4+IjmUpqbP6v94hdPtcXj8YvC4XCr4zjTuVzuYF/fwOuXXtrah30cbC42Dr8u1NHRobS0tISGhoauR4aP8QUom81u6+rqugBgk05j4BPQiCUnqfKb9HQ6/Q2+SKK+zc3NYRyuwOlMyAtdtEOHDl/BPyRls/ltjY2NBpzOQpC732hUUvvKQshuI9OB09UUyI7J7gO5Sx3kfPBJzoeeQU6HFxRCKpV6UEaK05Bo96amph7zcZUb4fytGzh/53PY8PrW73N+fGugAFzXndq+fftqL3QuOS2rfeHuqbquX+S7MfqinJmpwBUdeDgCMPFDgMPf8HVljCWvueaaO9rbO5bFDJZVAPl8lcqYkvTdyPQJq+aKhi0KoBrAdTT1yVcBhn7m6445w427dq0NSZ+ytLScAsCsb5TYrLBoFf9FgKtxXAkKIIaacOyHvl6oRVdu2bJlBWrD6SWAine4vHImtYCuoKBAzKMAM+/7hlx33WeubW9vP30EQA6surqamaZ1wnczVE8dMOF1gbl5VBUTWKES0FAQ0z2+IYYRPquvr2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+77bann/7mge7ubvKOvFL/hQQAmDioP//5ldFs1ozZdi4aj+vhfN6RJQqTBbJpauJqGOKtJ8wk8zpWk8ZLL239w02bLrz7kxDEa6/tvve2277yH+Pj2QmAbvNU/Vnl2+3q2rUDoYGBbDged0PIqJbJkAAshzHdVRQDr7NYQ0QFyGBZdsi2LUPXlYjj5IydO5/940su2fCxaASV8fv2vfP49dff8ZyqZiY+/emNaaxwnVONY6d+NLC2tjYVsTStv38V9h9GlboA26hLKFJnZ6enYgSkvKs2NGh6JmOiEBLRdDodjkY148knH/2tyy7beF1tbdXmeDx+Liwhob3/z+Dg6GsPPPD4v/7yl10jnOtTqZSJzq/LWsz4xQigvH9FmyK0bP16ekWtPnTixIxh23YYj6YM153VNC2sY0qrPvroX62rr1+RoJMPjv/QpOglcPHcX/2qexi1ZtUFFzSuQ81JGEYoiS1Gf1xCfoc6ou8Z3rfv0Huvv757sLNz95SqGmY6zTKhkJ6uq0tkent3VHwzrJyh5SDvuZsoylCBrJMJIRN6OKxorququZzL8HAHMLJhve4q+TxBwfJgW353WSiEJ6SQxRPrqGJZGdeDlKmmcNEfoflpDsIBFh54mOHwmvz4+E9y9LYotkW/VL1cAph7PiU/TPxFRAv6k6RqWWnFNHWNi+Se/iQuoszMzHqMUZ5cjVo0wVwXqyHMkriotYkcFo8nEbbLoMZkUYQRR9OyzthYEu18Gtt6bC/8//6z+/m3S0H1XnrW0L+QlhSaWtS8/7kCaVBLSP4NMTXxmxi/FH9i/7+rT2twf4PgbQAAAABJRU5ErkJggg=="
6669
6671
  }
6670
- }, xp = 3.2, bp = ({ panelRect: e }) => {
6672
+ }, yp = 3.2, xp = ({ panelRect: e }) => {
6671
6673
  const t = Pt(e).stickers, r = M().graph().get("textScale");
6672
6674
  if (t.length === 0) return null;
6673
- const n = Ap(xp, r);
6675
+ const n = mp(yp, r);
6674
6676
  return /* @__PURE__ */ s("svg", {
6675
6677
  x: e.x,
6676
6678
  y: e.y,
@@ -6680,7 +6682,7 @@ var hp = (e, t, r, n) => t !== "comment" ? r : Do(r, 140, (o) => e.measureText(o
6680
6682
  "data-testid": "stickers",
6681
6683
  children: t.map((o) => {
6682
6684
  const a = gt(o.at, e);
6683
- return /* @__PURE__ */ s(wp, {
6685
+ return /* @__PURE__ */ s(bp, {
6684
6686
  sticker: o,
6685
6687
  sizePx: n,
6686
6688
  x: a.x,
@@ -6688,10 +6690,10 @@ var hp = (e, t, r, n) => t !== "comment" ? r : Do(r, 140, (o) => e.measureText(o
6688
6690
  }, o.id);
6689
6691
  })
6690
6692
  });
6691
- }, wp = ({ sticker: e, sizePx: t, x: r, y: n }) => {
6692
- const o = yp[e.sticker];
6693
+ }, bp = ({ sticker: e, sizePx: t, x: r, y: n }) => {
6694
+ const o = Ap[e.sticker];
6693
6695
  if (!o) return null;
6694
- const { width: a, height: i } = Sp(o.aspectRatio, t);
6696
+ const { width: a, height: i } = wp(o.aspectRatio, t);
6695
6697
  return /* @__PURE__ */ s("image", {
6696
6698
  href: o.src,
6697
6699
  x: r,
@@ -6700,14 +6702,14 @@ var hp = (e, t, r, n) => t !== "comment" ? r : Do(r, 140, (o) => e.measureText(o
6700
6702
  height: i,
6701
6703
  transform: `translate(${-a / 2}, ${-i / 2})`
6702
6704
  });
6703
- }, Sp = (e, t) => e >= 1 ? {
6705
+ }, wp = (e, t) => e >= 1 ? {
6704
6706
  width: t,
6705
6707
  height: t / e
6706
6708
  } : {
6707
6709
  width: t * e,
6708
6710
  height: t
6709
- }, kp = 0.25, Pi = ({ children: e, ...t }) => {
6710
- const r = Hh();
6711
+ }, Sp = 0.25, Pi = ({ children: e, ...t }) => {
6712
+ const r = Oh();
6711
6713
  return r <= 0 ? /* @__PURE__ */ s("g", {
6712
6714
  ...t,
6713
6715
  children: e
@@ -6716,19 +6718,19 @@ var hp = (e, t, r, n) => t !== "comment" ? r : Do(r, 140, (o) => e.measureText(o
6716
6718
  initial: { opacity: 0 },
6717
6719
  animate: { opacity: 1 },
6718
6720
  transition: {
6719
- duration: kp,
6721
+ duration: Sp,
6720
6722
  delay: r
6721
6723
  },
6722
6724
  children: e
6723
6725
  });
6724
- }, Ep = "_1agclyl0", Pp = "_1agclyl1", Rp = "_1agclyl2", Ri = ({ x: e, y: t, width: r, height: n, text: o, isRotated: a, labelRole: i, position: l, coordType: c, backdropColor: d }) => {
6725
- const u = M(), h = I(rr, u), g = I(Wh, u), f = a ? `rotate(-90 ${e} ${t})` : void 0, v = h[i][l], m = v.stroke !== void 0 && (v.strokeWidth ?? 0) > 0, p = Ip(i, c, v), x = Bp(v, p, d, g), y = {
6726
+ }, kp = "_1agclyl0", Ep = "_1agclyl1", Pp = "_1agclyl2", Ri = ({ x: e, y: t, width: r, height: n, text: o, isRotated: a, labelRole: i, position: l, coordType: c, backdropColor: d }) => {
6727
+ const u = M(), h = I(rr, u), g = I(Gh, u), f = a ? `rotate(-90 ${e} ${t})` : void 0, v = h[i][l], m = v.stroke !== void 0 && (v.strokeWidth ?? 0) > 0, p = Bp(i, c, v), x = Cp(v, p, d, g), y = {
6726
6728
  x: e - r / 2,
6727
6729
  y: t - n / 2,
6728
6730
  width: r,
6729
6731
  height: n
6730
6732
  }, S = er(v.cornerRadius), k = v.shadow === void 0 ? void 0 : _e(v.shadow), C = {
6731
- className: Pp,
6733
+ className: Ep,
6732
6734
  fill: v.fill === void 0 ? void 0 : W(v.fill),
6733
6735
  style: k === void 0 ? void 0 : { filter: k },
6734
6736
  ...m ? {
@@ -6748,11 +6750,11 @@ var hp = (e, t, r, n) => t !== "comment" ? r : Do(r, 140, (o) => e.measureText(o
6748
6750
  ry: S,
6749
6751
  ...C
6750
6752
  })), /* @__PURE__ */ s("text", {
6751
- className: Rp,
6753
+ className: Pp,
6752
6754
  style: {
6753
6755
  ...tt(v),
6754
6756
  ...$t(v),
6755
- fill: Cp(v, x)
6757
+ fill: Rp(v, x)
6756
6758
  },
6757
6759
  ...Zt(v),
6758
6760
  x: e,
@@ -6762,14 +6764,14 @@ var hp = (e, t, r, n) => t !== "comment" ? r : Do(r, 140, (o) => e.measureText(o
6762
6764
  children: pt(o, v.textTransform)
6763
6765
  })]
6764
6766
  });
6765
- }, Cp = (e, t) => e.isTextColorAuthored || t === void 0 ? e.textColor : Co(t), Bp = (e, t, r, n) => {
6767
+ }, Rp = (e, t) => e.isTextColorAuthored || t === void 0 ? e.textColor : Co(t), Cp = (e, t, r, n) => {
6766
6768
  if (r === void 0) return;
6767
6769
  const o = t && e.fill !== void 0 ? W(e.fill) : void 0, a = o === void 0 ? void 0 : ir(void 0, o);
6768
6770
  if (a !== void 0) return a;
6769
6771
  const i = ir(r, n) ?? Xs(r);
6770
6772
  if (i !== void 0)
6771
6773
  return ir(o, i);
6772
- }, Ip = (e, t, r) => r.fill === void 0 ? !1 : e === "aggregate" || t === "cartesian", Tp = ({ panelRect: e, formattingLocale: t, plotBottomY: r, isFooterChromeReserved: n }) => {
6774
+ }, Bp = (e, t, r) => r.fill === void 0 ? !1 : e === "aggregate" || t === "cartesian", Ip = ({ panelRect: e, formattingLocale: t, plotBottomY: r, isFooterChromeReserved: n }) => {
6773
6775
  const o = Le(), a = Ve(), i = D(ae((v) => ({
6774
6776
  layers: v.layers,
6775
6777
  coordSystem: v.coordSystem,
@@ -6824,12 +6826,12 @@ var hp = (e, t, r, n) => t !== "comment" ? r : Do(r, 140, (o) => e.measureText(o
6824
6826
  backdropColor: v.backdropColor
6825
6827
  }, `${v.layerId}:${m}`));
6826
6828
  return /* @__PURE__ */ s(Pi, {
6827
- className: Ep,
6829
+ className: kp,
6828
6830
  transform: `translate(${e.x}, ${e.y})`,
6829
6831
  "data-testid": "data-labels",
6830
6832
  children: f
6831
6833
  });
6832
- }, Lp = ({ edge: e, position: t, labelRotation: r, offset: n, axisSize: o }) => {
6834
+ }, Tp = ({ edge: e, position: t, labelRotation: r, offset: n, axisSize: o }) => {
6833
6835
  if (r !== 0 && (e === "top" || e === "bottom")) {
6834
6836
  const a = e === "top", i = a ? -n : n;
6835
6837
  return {
@@ -6874,7 +6876,7 @@ var hp = (e, t, r, n) => t !== "comment" ? r : Do(r, 140, (o) => e.measureText(o
6874
6876
  transform: void 0
6875
6877
  };
6876
6878
  }
6877
- }, Mp = (e, t) => {
6879
+ }, Lp = (e, t) => {
6878
6880
  const r = t.height / 2;
6879
6881
  switch (e) {
6880
6882
  case "left":
@@ -6903,8 +6905,8 @@ var hp = (e, t, r, n) => t !== "comment" ? r : Do(r, 140, (o) => e.measureText(o
6903
6905
  transform: void 0
6904
6906
  };
6905
6907
  }
6906
- }, Np = (e, t, r, n) => {
6907
- const { width: o, ascent: a, descent: i } = t, l = a + i, c = Gp(e, o), d = Wp(e, a, l), u = Hp(r, e, n, {
6908
+ }, Mp = (e, t, r, n) => {
6909
+ const { width: o, ascent: a, descent: i } = t, l = a + i, c = Fp(e, o), d = Gp(e, a, l), u = Op(r, e, n, {
6908
6910
  x: c,
6909
6911
  y: d,
6910
6912
  width: o,
@@ -6917,7 +6919,7 @@ var hp = (e, t, r, n) => t !== "comment" ? r : Do(r, 140, (o) => e.measureText(o
6917
6919
  height: l + u.top + u.bottom,
6918
6920
  transform: e.transform
6919
6921
  };
6920
- }, Op = (e, t) => {
6922
+ }, Np = (e, t) => {
6921
6923
  const r = e.map((o, a) => ({
6922
6924
  position: o,
6923
6925
  index: a
@@ -6926,12 +6928,12 @@ var hp = (e, t, r, n) => t !== "comment" ? r : Do(r, 140, (o) => e.measureText(o
6926
6928
  const i = r[a - 1], l = r[a + 1], c = i === void 0 ? 1 / 0 : o.position - i.position, d = l === void 0 ? 1 / 0 : l.position - o.position, u = Math.min(c, d);
6927
6929
  n[o.index] = Number.isFinite(u) ? u * t : 1 / 0;
6928
6930
  }), n;
6929
- }, Hp = (e, t, r, n) => r === void 0 ? {
6931
+ }, Op = (e, t, r, n) => r === void 0 ? {
6930
6932
  left: e,
6931
6933
  right: e,
6932
6934
  top: e,
6933
6935
  bottom: e
6934
- } : t.transform !== void 0 ? Dp(e, t) : Fp(e, r, n), Dp = (e, { y: t, textAnchor: r }) => {
6936
+ } : t.transform !== void 0 ? Hp(e, t) : Dp(e, r, n), Hp = (e, { y: t, textAnchor: r }) => {
6935
6937
  const n = ct(e, Math.abs(t));
6936
6938
  return r === "end" ? {
6937
6939
  left: e,
@@ -6944,7 +6946,7 @@ var hp = (e, t, r, n) => t !== "comment" ? r : Do(r, 140, (o) => e.measureText(o
6944
6946
  top: e,
6945
6947
  bottom: e
6946
6948
  };
6947
- }, Fp = (e, { edge: t, stepPx: r, axisSize: n }, o) => {
6949
+ }, Dp = (e, { edge: t, stepPx: r, axisSize: n }, o) => {
6948
6950
  const a = go(e, r, o.width), i = go(e, r, o.height);
6949
6951
  switch (t) {
6950
6952
  case "bottom":
@@ -6976,7 +6978,7 @@ var hp = (e, t, r, n) => t !== "comment" ? r : Do(r, 140, (o) => e.measureText(o
6976
6978
  bottom: i
6977
6979
  };
6978
6980
  }
6979
- }, ct = (e, t) => Math.max(0, Math.min(e, t)), go = (e, t, r) => Math.min(e, Math.max(0, (t - r) / 2)), Gp = ({ x: e, textAnchor: t }, r) => {
6981
+ }, ct = (e, t) => Math.max(0, Math.min(e, t)), go = (e, t, r) => Math.min(e, Math.max(0, (t - r) / 2)), Fp = ({ x: e, textAnchor: t }, r) => {
6980
6982
  switch (t) {
6981
6983
  case "start":
6982
6984
  return e;
@@ -6985,7 +6987,7 @@ var hp = (e, t, r, n) => t !== "comment" ? r : Do(r, 140, (o) => e.measureText(o
6985
6987
  case "end":
6986
6988
  return e - r;
6987
6989
  }
6988
- }, Wp = ({ y: e, dominantBaseline: t }, r, n) => {
6990
+ }, Gp = ({ y: e, dominantBaseline: t }, r, n) => {
6989
6991
  switch (t) {
6990
6992
  case "hanging":
6991
6993
  return e;
@@ -6995,10 +6997,10 @@ var hp = (e, t, r, n) => t !== "comment" ? r : Do(r, 140, (o) => e.measureText(o
6995
6997
  case "auto":
6996
6998
  return e - r;
6997
6999
  }
6998
- }, Up = {
7000
+ }, Wp = {
6999
7001
  fill: "transparent",
7000
7002
  pointerEvents: "all"
7001
- }, pn = ({ placement: e, text: t, style: r, isHitTestable: n, bounds: o }) => /* @__PURE__ */ w(T, { children: [n && /* @__PURE__ */ s(Vp, {
7003
+ }, pn = ({ placement: e, text: t, style: r, isHitTestable: n, bounds: o }) => /* @__PURE__ */ w(T, { children: [n && /* @__PURE__ */ s(Up, {
7002
7004
  placement: e,
7003
7005
  text: t,
7004
7006
  style: r,
@@ -7012,10 +7014,10 @@ var hp = (e, t, r, n) => t !== "comment" ? r : Do(r, 140, (o) => e.measureText(o
7012
7014
  ...Zt(r),
7013
7015
  fill: r.textColor,
7014
7016
  children: pt(t, r.textTransform)
7015
- })] }), Vp = ({ placement: e, text: t, style: r, bounds: n }) => {
7017
+ })] }), Up = ({ placement: e, text: t, style: r, bounds: n }) => {
7016
7018
  const o = Le(), { fonts: a } = Ve();
7017
7019
  return /* @__PURE__ */ s("rect", {
7018
- ...b(() => Np(e, o.measureText(t, ee(r, a.familyDefault)), 3, n), [
7020
+ ...b(() => Mp(e, o.measureText(t, ee(r, a.familyDefault)), 3, n), [
7019
7021
  e,
7020
7022
  o,
7021
7023
  t,
@@ -7023,10 +7025,10 @@ var hp = (e, t, r, n) => t !== "comment" ? r : Do(r, 140, (o) => e.measureText(o
7023
7025
  a.familyDefault,
7024
7026
  n
7025
7027
  ]),
7026
- ...Up
7028
+ ...Wp
7027
7029
  });
7028
- }, zp = ({ edge: e, position: t, labelRotation: r, label: n, tickLabelStyle: o, axisSize: a, stepPx: i = 1 / 0, isHitTestable: l = !1 }) => {
7029
- const { offset: c } = o, d = b(() => Lp({
7030
+ }, Vp = ({ edge: e, position: t, labelRotation: r, label: n, tickLabelStyle: o, axisSize: a, stepPx: i = 1 / 0, isHitTestable: l = !1 }) => {
7031
+ const { offset: c } = o, d = b(() => Tp({
7030
7032
  edge: e,
7031
7033
  position: t,
7032
7034
  labelRotation: r,
@@ -7059,11 +7061,11 @@ var hp = (e, t, r, n) => t !== "comment" ? r : Do(r, 140, (o) => e.measureText(o
7059
7061
  style: { overflow: "visible" },
7060
7062
  children: u
7061
7063
  });
7062
- }, jp = ({ formattedAxis: e, rect: t }) => {
7064
+ }, zp = ({ formattedAxis: e, rect: t }) => {
7063
7065
  const r = e.position === "bottom" || e.position === "top", n = ye(e.scaleAestheticKey), o = M(), a = I(cn, o)(n, e.position), i = I(Ka, o)[n], l = Ne(), c = b(() => ({
7064
7066
  width: t.width,
7065
7067
  height: t.height
7066
- }), [t.width, t.height]), d = r ? t.width : t.height, u = b(() => l ? Op(e.ticks.map((h) => h.position), d) : void 0, [
7068
+ }), [t.width, t.height]), d = r ? t.width : t.height, u = b(() => l ? Np(e.ticks.map((h) => h.position), d) : void 0, [
7067
7069
  l,
7068
7070
  e.ticks,
7069
7071
  d
@@ -7075,7 +7077,7 @@ var hp = (e, t, r, n) => t !== "comment" ? r : Do(r, 140, (o) => e.measureText(o
7075
7077
  height: t.height,
7076
7078
  style: { overflow: "visible" },
7077
7079
  children: [!1, e.ticks.map((h, g) => {
7078
- const f = h.formattedLabel, v = r ? h.position : 1 - h.position, m = Yp(e.position, v, t, i.length), p = l && f !== "";
7080
+ const f = h.formattedLabel, v = r ? h.position : 1 - h.position, m = jp(e.position, v, t, i.length), p = l && f !== "";
7079
7081
  return /* @__PURE__ */ w("g", {
7080
7082
  ...p ? vn(e.scaleAestheticKey, g) : void 0,
7081
7083
  cursor: p ? "pointer" : void 0,
@@ -7085,7 +7087,7 @@ var hp = (e, t, r, n) => t !== "comment" ? r : Do(r, 140, (o) => e.measureText(o
7085
7087
  strokeWidth: i.strokeWidth,
7086
7088
  strokeDasharray: ue(i.dashArray, i.strokeWidth),
7087
7089
  pointerEvents: l ? "none" : void 0
7088
- }), /* @__PURE__ */ s(zp, {
7090
+ }), /* @__PURE__ */ s(Vp, {
7089
7091
  edge: e.position,
7090
7092
  position: v,
7091
7093
  labelRotation: e.labelRotation,
@@ -7098,7 +7100,7 @@ var hp = (e, t, r, n) => t !== "comment" ? r : Do(r, 140, (o) => e.measureText(o
7098
7100
  }, g);
7099
7101
  })]
7100
7102
  });
7101
- }, Yp = (e, t, r, n) => {
7103
+ }, jp = (e, t, r, n) => {
7102
7104
  const o = R(t);
7103
7105
  switch (e) {
7104
7106
  case "bottom":
@@ -7130,19 +7132,19 @@ var hp = (e, t, r, n) => t !== "comment" ? r : Do(r, 140, (o) => e.measureText(o
7130
7132
  y2: o
7131
7133
  };
7132
7134
  }
7133
- }, Kp = ({ axes: e, rects: t }) => {
7135
+ }, Yp = ({ axes: e, rects: t }) => {
7134
7136
  const r = I(Ya, M()), n = Ne();
7135
7137
  return /* @__PURE__ */ s(T, { children: e.map((o) => {
7136
7138
  const a = t[o.position];
7137
- return !a || !o.isVisible ? null : /* @__PURE__ */ s(Qp, {
7139
+ return !a || !o.isVisible ? null : /* @__PURE__ */ s(Kp, {
7138
7140
  axis: o,
7139
7141
  rect: a,
7140
7142
  labelStyle: r[ye(o.scaleAestheticKey)],
7141
7143
  isHitTestable: n
7142
7144
  }, `axis-label-${o.position}`);
7143
7145
  }) });
7144
- }, Qp = ({ axis: e, rect: t, labelStyle: r, isHitTestable: n }) => {
7145
- const o = b(() => Mp(e.position, t), [e.position, t]), a = n && e.label !== null && e.label !== "", i = a ? vn(e.scaleAestheticKey) : void 0;
7146
+ }, Kp = ({ axis: e, rect: t, labelStyle: r, isHitTestable: n }) => {
7147
+ const o = b(() => Lp(e.position, t), [e.position, t]), a = n && e.label !== null && e.label !== "", i = a ? vn(e.scaleAestheticKey) : void 0;
7146
7148
  return /* @__PURE__ */ w("g", {
7147
7149
  transform: `translate(${t.x}, ${t.y})`,
7148
7150
  ...i,
@@ -7154,20 +7156,20 @@ var hp = (e, t, r, n) => t !== "comment" ? r : Do(r, 140, (o) => e.measureText(o
7154
7156
  isHitTestable: a
7155
7157
  })]
7156
7158
  });
7157
- }, Xp = ({ formattedAxes: e, tickRects: t }) => /* @__PURE__ */ s(T, { children: e.map((r) => {
7159
+ }, Qp = ({ formattedAxes: e, tickRects: t }) => /* @__PURE__ */ s(T, { children: e.map((r) => {
7158
7160
  if (r.geometry !== "linear") return null;
7159
7161
  const n = t[r.position];
7160
- return !n || !r.isVisible ? null : /* @__PURE__ */ s(jp, {
7162
+ return !n || !r.isVisible ? null : /* @__PURE__ */ s(zp, {
7161
7163
  formattedAxis: r,
7162
7164
  rect: n
7163
7165
  }, r.scaleAestheticKey);
7164
- }) }), qp = ({ formattedAxes: e, labelRects: t }) => /* @__PURE__ */ s(Kp, {
7166
+ }) }), Xp = ({ formattedAxes: e, labelRects: t }) => /* @__PURE__ */ s(Yp, {
7165
7167
  axes: e.filter((r) => r.geometry === "linear"),
7166
7168
  rects: t
7167
7169
  }), Ci = {
7168
7170
  strokeDashoffset: "0",
7169
7171
  strokeLinecap: "round"
7170
- }, Ut = (e, t) => e.gridLine[t]().resolve(), Jp = ({ axes: e, panelBorderSizes: t, panelFrameRect: r, panelRect: n }) => {
7172
+ }, Ut = (e, t) => e.gridLine[t]().resolve(), qp = ({ axes: e, panelBorderSizes: t, panelFrameRect: r, panelRect: n }) => {
7171
7173
  const o = M(), a = Ne(), i = I(Ut, o, "x"), l = I(Ut, o, "y"), c = n.x - r.x, d = n.y - r.y;
7172
7174
  return /* @__PURE__ */ s("svg", {
7173
7175
  "data-testid": "grid",
@@ -7180,7 +7182,7 @@ var hp = (e, t, r, n) => t !== "comment" ? r : Do(r, 140, (o) => e.measureText(o
7180
7182
  if (u.geometry !== "linear" || !u.gridVisible) return null;
7181
7183
  const h = u.position === "bottom" || u.position === "top", g = ye(u.scaleAestheticKey) === "x" ? i : l, f = ue(g.dashArray, g.strokeWidth);
7182
7184
  return /* @__PURE__ */ s("g", { children: u.ticks.map((v, m) => {
7183
- const p = Zp(h, v.position);
7185
+ const p = Jp(h, v.position);
7184
7186
  if (p !== null && t[p] > 0) return null;
7185
7187
  const x = h ? v.position : 1 - v.position;
7186
7188
  let y;
@@ -7221,7 +7223,7 @@ var hp = (e, t, r, n) => t !== "comment" ? r : Do(r, 140, (o) => e.measureText(o
7221
7223
  }) }, u.scaleAestheticKey);
7222
7224
  })
7223
7225
  });
7224
- }, Zp = (e, t) => t <= 0 ? e ? "left" : "bottom" : t >= 1 ? e ? "right" : "top" : null, $p = ({ sizes: e, panelFrameRect: t }) => {
7226
+ }, Jp = (e, t) => t <= 0 ? e ? "left" : "bottom" : t >= 1 ? e ? "right" : "top" : null, Zp = ({ sizes: e, panelFrameRect: t }) => {
7225
7227
  const r = D((a) => a.coordSystem.type === "polar"), n = I(Mo, M());
7226
7228
  if (r) return null;
7227
7229
  const o = gs(n, {
@@ -7238,7 +7240,7 @@ var hp = (e, t, r, n) => t !== "comment" ? r : Do(r, 140, (o) => e.measureText(o
7238
7240
  height: t.height,
7239
7241
  style: { overflow: "visible" },
7240
7242
  children: o.map((a, i) => /* @__PURE__ */ s("path", {
7241
- d: _p(a.segments),
7243
+ d: $p(a.segments),
7242
7244
  fill: "none",
7243
7245
  stroke: a.stroke,
7244
7246
  strokeDasharray: ue(a.dashArray, a.strokeWidth),
@@ -7246,7 +7248,7 @@ var hp = (e, t, r, n) => t !== "comment" ? r : Do(r, 140, (o) => e.measureText(o
7246
7248
  ...Ci
7247
7249
  }, i))
7248
7250
  });
7249
- }, _p = (e) => e.map((t) => {
7251
+ }, $p = (e) => e.map((t) => {
7250
7252
  switch (t.type) {
7251
7253
  case "move":
7252
7254
  return `M ${t.x} ${t.y}`;
@@ -7275,10 +7277,10 @@ var Bi = (e, t) => {
7275
7277
  angleFor: (c) => Ys(c, a, i),
7276
7278
  radiusNormFor: (c) => o + c * (1 - o)
7277
7279
  };
7278
- }, em = 16, tm = ({ formattedAxes: e, panelRect: t }) => {
7280
+ }, _p = 16, em = ({ formattedAxes: e, panelRect: t }) => {
7279
7281
  const r = I(cn, M()), n = Ne(), o = Bi(t, e);
7280
7282
  if (!o) return null;
7281
- const { circle: a, circularAxis: i, radialAxis: l, startAngle: c, angleFor: d, radiusNormFor: u } = o, h = rm(l, u, a.radius), g = (f) => r(ye(f.scaleAestheticKey));
7283
+ const { circle: a, circularAxis: i, radialAxis: l, startAngle: c, angleFor: d, radiusNormFor: u } = o, h = tm(l, u, a.radius), g = (f) => r(ye(f.scaleAestheticKey));
7282
7284
  return /* @__PURE__ */ w("svg", {
7283
7285
  x: t.x,
7284
7286
  y: t.y,
@@ -7299,7 +7301,7 @@ var Bi = (e, t) => {
7299
7301
  return /* @__PURE__ */ s(fo, {
7300
7302
  scaleAestheticKey: i.scaleAestheticKey,
7301
7303
  tickIndex: v,
7302
- placement: po(p, nm(m)),
7304
+ placement: po(p, rm(m)),
7303
7305
  label: f.formattedLabel,
7304
7306
  labelStyle: g(i),
7305
7307
  isHitTestable: n
@@ -7318,7 +7320,7 @@ var Bi = (e, t) => {
7318
7320
  cursor: "pointer",
7319
7321
  children: i
7320
7322
  }) : i;
7321
- }, rm = (e, t, r) => {
7323
+ }, tm = (e, t, r) => {
7322
7324
  if (!e) return [];
7323
7325
  const n = [];
7324
7326
  let o = Number.NEGATIVE_INFINITY;
@@ -7326,7 +7328,7 @@ var Bi = (e, t) => {
7326
7328
  const l = t(i.position);
7327
7329
  if (l <= 0) continue;
7328
7330
  const c = l * r;
7329
- c - o < em || (n.push({
7331
+ c - o < _p || (n.push({
7330
7332
  tick: i,
7331
7333
  tickIndex: a,
7332
7334
  radiusNorm: l
@@ -7339,10 +7341,10 @@ var Bi = (e, t) => {
7339
7341
  textAnchor: t,
7340
7342
  dominantBaseline: "central",
7341
7343
  transform: void 0
7342
- }), nm = (e) => {
7344
+ }), rm = (e) => {
7343
7345
  const t = Math.sin(e);
7344
7346
  return Math.abs(t) < 0.01 ? "middle" : t > 0 ? "start" : "end";
7345
- }, om = ({ formattedAxes: e, panelRect: t }) => {
7347
+ }, nm = ({ formattedAxes: e, panelRect: t }) => {
7346
7348
  const r = M(), n = Ne(), o = I(Ut, r, "y"), a = I(Ut, r, "x"), i = Bi(t, e);
7347
7349
  if (!i) return null;
7348
7350
  const { circle: l, circularAxis: c, radialAxis: d, innerRadius: u, angleFor: h, radiusNormFor: g } = i;
@@ -7413,8 +7415,8 @@ var Bi = (e, t) => {
7413
7415
  "data-testid": "grid-line-hit-area"
7414
7416
  })]
7415
7417
  }) : o;
7416
- }, am = ({ layer: e, coordSystem: t, shouldAnimateTransitions: r, isDimmed: n, dimStyle: o, formattingLocale: a, panelRect: i }) => {
7417
- const l = Re(), c = Dh(e.id), { colorScheme: d } = ne(), u = G(e), h = l(e.geom, t.type);
7418
+ }, om = ({ layer: e, coordSystem: t, shouldAnimateTransitions: r, isDimmed: n, dimStyle: o, formattingLocale: a, panelRect: i }) => {
7419
+ const l = Re(), c = Hh(e.id), { colorScheme: d } = ne(), u = G(e), h = l(e.geom, t.type);
7418
7420
  if (h === null) return null;
7419
7421
  const g = _t(h.render);
7420
7422
  return g.overlay ? null : /* @__PURE__ */ s("g", {
@@ -7434,7 +7436,7 @@ var Bi = (e, t) => {
7434
7436
  })
7435
7437
  });
7436
7438
  };
7437
- function im({ renderer: e, layer: t, coordSystem: r, candidates: n }) {
7439
+ function am({ renderer: e, layer: t, coordSystem: r, candidates: n }) {
7438
7440
  if (e?.getOverlayAnchor === void 0 || n.length === 0) return [];
7439
7441
  const o = [];
7440
7442
  for (const { observation: a, observationIndex: i } of n) {
@@ -7451,8 +7453,8 @@ function im({ renderer: e, layer: t, coordSystem: r, candidates: n }) {
7451
7453
  }
7452
7454
  return o;
7453
7455
  }
7454
- var sm = 4, lm = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n, coordSystem: o, shouldAnimateTransitions: a, panelRect: i, formattingLocale: l }) => {
7455
- const c = D((S) => S.config.numberFormat), d = b(() => im({
7456
+ var im = 4, sm = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n, coordSystem: o, shouldAnimateTransitions: a, panelRect: i, formattingLocale: l }) => {
7457
+ const c = D((S) => S.config.numberFormat), d = b(() => am({
7456
7458
  renderer: e,
7457
7459
  layer: t,
7458
7460
  coordSystem: o,
@@ -7487,7 +7489,7 @@ var sm = 4, lm = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
7487
7489
  };
7488
7490
  y = e.renderHighlight ? e.renderHighlight(S) : x.fn(S);
7489
7491
  }
7490
- return /* @__PURE__ */ w(Pi, { children: [y, d.map(({ observation: S, observationIndex: k, anchor: C }) => /* @__PURE__ */ s(cm, {
7492
+ return /* @__PURE__ */ w(Pi, { children: [y, d.map(({ observation: S, observationIndex: k, anchor: C }) => /* @__PURE__ */ s(lm, {
7491
7493
  observation: S,
7492
7494
  anchor: C,
7493
7495
  panelRect: i,
@@ -7498,8 +7500,8 @@ var sm = 4, lm = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
7498
7500
  formatYValue: v,
7499
7501
  labelStyle: p.observation.outside,
7500
7502
  familyDefault: m.familyDefault
7501
- }, dm(S, k)))] });
7502
- }, cm = ({ observation: e, anchor: t, panelRect: r, fill: n, symbol: o, dotRadius: a, readSegmentY: i, formatYValue: l, labelStyle: c, familyDefault: d }) => {
7503
+ }, cm(S, k)))] });
7504
+ }, lm = ({ observation: e, anchor: t, panelRect: r, fill: n, symbol: o, dotRadius: a, readSegmentY: i, formatYValue: l, labelStyle: c, familyDefault: d }) => {
7503
7505
  const u = Le(), h = Oo(t.x), g = Ho(t.y), f = i(e) ?? null, v = f !== null ? l(f, e) : null, m = b(() => {
7504
7506
  if (v === null) return null;
7505
7507
  const p = u.measureText(v, ee(c, d));
@@ -7522,7 +7524,7 @@ var sm = 4, lm = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
7522
7524
  "data-testid": "highlight-overlay-dot"
7523
7525
  }), v !== null && m !== null && /* @__PURE__ */ s(Ri, {
7524
7526
  x: h * r.width,
7525
- y: g * r.height - a - sm - m.height / 2,
7527
+ y: g * r.height - a - im - m.height / 2,
7526
7528
  width: m.width,
7527
7529
  height: m.height,
7528
7530
  text: v,
@@ -7531,10 +7533,10 @@ var sm = 4, lm = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
7531
7533
  position: "outside",
7532
7534
  coordType: "cartesian"
7533
7535
  })] });
7534
- }, dm = (e, t) => {
7536
+ }, cm = (e, t) => {
7535
7537
  const r = e[re.group];
7536
7538
  return `${String(r ?? "")}\0${t}`;
7537
- }, um = ({ layer: e, coordSystem: t, panelRect: r }) => {
7539
+ }, dm = ({ layer: e, coordSystem: t, panelRect: r }) => {
7538
7540
  const { primary: n, group: o, related: a } = ht(ae((h) => ({
7539
7541
  primary: h.hover.primary,
7540
7542
  group: h.hover.group,
@@ -7560,7 +7562,7 @@ var sm = 4, lm = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
7560
7562
  colorScheme: l,
7561
7563
  styleReaders: c
7562
7564
  });
7563
- }, hm = (e) => {
7565
+ }, um = (e) => {
7564
7566
  const t = G(e);
7565
7567
  return b(() => {
7566
7568
  const [r] = e.data;
@@ -7574,7 +7576,7 @@ var sm = 4, lm = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
7574
7576
  filter: Ko(Vs(n))
7575
7577
  };
7576
7578
  }, [e, t]);
7577
- }, vm = "var(--to1jkx0)", gm = "var(--to1jkx1)", fm = "to1jkx2", pm = "to1jkx3", mm = ({ shouldAnimateTransitions: e, panelRect: t, formattingLocale: r }) => {
7579
+ }, hm = "var(--to1jkx0)", vm = "var(--to1jkx1)", gm = "to1jkx2", fm = "to1jkx3", pm = ({ shouldAnimateTransitions: e, panelRect: t, formattingLocale: r }) => {
7578
7580
  const { layers: n, coordSystem: o } = D(ae((a) => ({
7579
7581
  layers: a.layers,
7580
7582
  coordSystem: a.coordSystem
@@ -7584,30 +7586,30 @@ var sm = 4, lm = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
7584
7586
  y: t.y,
7585
7587
  width: t.width,
7586
7588
  height: t.height,
7587
- className: fm,
7589
+ className: gm,
7588
7590
  "data-testid": "geom-layers",
7589
- ...Rg(),
7590
- children: n.map((a) => /* @__PURE__ */ w(Yt, { children: [/* @__PURE__ */ s(xm, {
7591
+ ...Pg(),
7592
+ children: n.map((a) => /* @__PURE__ */ w(Yt, { children: [/* @__PURE__ */ s(ym, {
7591
7593
  layer: a,
7592
7594
  coordSystem: o,
7593
7595
  shouldAnimateTransitions: e,
7594
7596
  panelRect: t,
7595
7597
  formattingLocale: r
7596
- }), /* @__PURE__ */ s(um, {
7598
+ }), /* @__PURE__ */ s(dm, {
7597
7599
  layer: a,
7598
7600
  coordSystem: o,
7599
7601
  panelRect: t
7600
- })] }, `${a.id}-${Am(o)}`))
7602
+ })] }, `${a.id}-${mm(o)}`))
7601
7603
  });
7602
- }, Am = (e) => e.type === "cartesian" ? `cartesian-${e.mainAxis}` : e.type, ym = (e) => zr({
7603
- ...e.opacity === void 0 ? {} : { [vm]: String(e.opacity) },
7604
- ...e.filter === void 0 ? {} : { [gm]: e.filter }
7605
- }), xm = ({ layer: e, coordSystem: t, shouldAnimateTransitions: r, panelRect: n, formattingLocale: o }) => {
7604
+ }, mm = (e) => e.type === "cartesian" ? `cartesian-${e.mainAxis}` : e.type, Am = (e) => zr({
7605
+ ...e.opacity === void 0 ? {} : { [hm]: String(e.opacity) },
7606
+ ...e.filter === void 0 ? {} : { [vm]: e.filter }
7607
+ }), ym = ({ layer: e, coordSystem: t, shouldAnimateTransitions: r, panelRect: n, formattingLocale: o }) => {
7606
7608
  const a = Re(), i = b(() => a(e.geom, t.type), [
7607
7609
  a,
7608
7610
  e,
7609
7611
  t
7610
- ]), l = e.highlight, c = hm(e), { colorScheme: d } = ne(), u = {
7612
+ ]), l = e.highlight, c = um(e), { colorScheme: d } = ne(), u = {
7611
7613
  layer: e,
7612
7614
  coordSystem: t,
7613
7615
  shouldAnimateTransitions: r,
@@ -7617,10 +7619,10 @@ var sm = 4, lm = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
7617
7619
  styleReaders: G(e)
7618
7620
  }, h = i ? _t(i.render) : null, g = e.spatialKind === "render-hit-test", f = c.opacity !== void 0 || c.filter !== void 0;
7619
7621
  return /* @__PURE__ */ w("g", {
7620
- className: f ? pm : void 0,
7621
- style: f ? ym(c) : void 0,
7622
+ className: f ? fm : void 0,
7623
+ style: f ? Am(c) : void 0,
7622
7624
  children: [
7623
- /* @__PURE__ */ s(am, {
7625
+ /* @__PURE__ */ s(om, {
7624
7626
  layer: e,
7625
7627
  coordSystem: t,
7626
7628
  shouldAnimateTransitions: r,
@@ -7637,7 +7639,7 @@ var sm = 4, lm = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
7637
7639
  render: h.fn,
7638
7640
  input: u
7639
7641
  }),
7640
- l !== null && /* @__PURE__ */ s(lm, {
7642
+ l !== null && /* @__PURE__ */ s(sm, {
7641
7643
  renderer: i,
7642
7644
  layer: e,
7643
7645
  matchedLayer: l.composition.matchedLayer,
@@ -7649,13 +7651,13 @@ var sm = 4, lm = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
7649
7651
  })
7650
7652
  ]
7651
7653
  });
7652
- }, bm = "_17uhij30", wm = ({ formattedAxes: e, plotRect: t, panelBorder: r, panelFrameRect: n, panelRect: o, axisRects: a, axisLabelRects: i, shouldAnimateTransitions: l, formattingLocale: c, plotBottomY: d, isFooterChromeReserved: u, isEditable: h, showAnnotations: g }) => {
7654
+ }, xm = "_17uhij30", bm = ({ formattedAxes: e, plotRect: t, panelBorder: r, panelFrameRect: n, panelRect: o, axisRects: a, axisLabelRects: i, shouldAnimateTransitions: l, formattingLocale: c, plotBottomY: d, isFooterChromeReserved: u, isEditable: h, showAnnotations: g }) => {
7653
7655
  const f = H(null);
7654
- Nf(f);
7655
- const v = Ae("Grid", Jp), m = Ae("AxisTicks", Xp), p = Ae("AxisLabel", qp), x = b(() => Rr(n, t), [n, t]), y = b(() => Rr(o, t), [o, t]), S = b(() => mo(a, t), [a, t]), k = b(() => mo(i, t), [i, t]);
7656
+ Mf(f);
7657
+ const v = Ae("Grid", qp), m = Ae("AxisTicks", Qp), p = Ae("AxisLabel", Xp), x = b(() => Rr(n, t), [n, t]), y = b(() => Rr(o, t), [o, t]), S = b(() => mo(a, t), [a, t]), k = b(() => mo(i, t), [i, t]);
7656
7658
  return /* @__PURE__ */ w("svg", {
7657
7659
  ref: f,
7658
- className: bm,
7660
+ className: xm,
7659
7661
  width: t.width,
7660
7662
  height: t.height,
7661
7663
  style: { transform: `translate(${t.x}px, ${t.y}px)` },
@@ -7675,11 +7677,11 @@ var sm = 4, lm = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
7675
7677
  formattedAxes: e,
7676
7678
  labelRects: k
7677
7679
  }),
7678
- /* @__PURE__ */ s(om, {
7680
+ /* @__PURE__ */ s(nm, {
7679
7681
  formattedAxes: e,
7680
7682
  panelRect: y
7681
7683
  }),
7682
- /* @__PURE__ */ s(mf, { panelRect: y }),
7684
+ /* @__PURE__ */ s(pf, { panelRect: y }),
7683
7685
  g && /* @__PURE__ */ w(T, { children: [/* @__PURE__ */ s(uo, {
7684
7686
  panelRect: y,
7685
7687
  zOrder: "background"
@@ -7687,27 +7689,27 @@ var sm = 4, lm = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
7687
7689
  panelRect: y,
7688
7690
  zOrder: "background"
7689
7691
  })] }),
7690
- /* @__PURE__ */ s($p, {
7692
+ /* @__PURE__ */ s(Zp, {
7691
7693
  sizes: r,
7692
7694
  panelFrameRect: x
7693
7695
  }),
7694
- /* @__PURE__ */ s(mm, {
7696
+ /* @__PURE__ */ s(pm, {
7695
7697
  shouldAnimateTransitions: l,
7696
7698
  panelRect: y,
7697
7699
  formattingLocale: c
7698
7700
  }),
7699
- /* @__PURE__ */ s(tm, {
7701
+ /* @__PURE__ */ s(em, {
7700
7702
  formattedAxes: e,
7701
7703
  panelRect: y
7702
7704
  }),
7703
- /* @__PURE__ */ s(Tp, {
7705
+ /* @__PURE__ */ s(Ip, {
7704
7706
  panelRect: y,
7705
7707
  formattingLocale: c,
7706
7708
  plotBottomY: d,
7707
7709
  isFooterChromeReserved: u
7708
7710
  }),
7709
7711
  g && /* @__PURE__ */ w(T, { children: [
7710
- /* @__PURE__ */ s(Xf, {
7712
+ /* @__PURE__ */ s(Qf, {
7711
7713
  panelRect: y,
7712
7714
  isEditable: h
7713
7715
  }),
@@ -7719,15 +7721,15 @@ var sm = 4, lm = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
7719
7721
  panelRect: y,
7720
7722
  zOrder: "foreground"
7721
7723
  }),
7722
- /* @__PURE__ */ s(Vf, {
7724
+ /* @__PURE__ */ s(Uf, {
7723
7725
  panelRect: y,
7724
7726
  isEditable: h
7725
7727
  }),
7726
- /* @__PURE__ */ s(ip, { panelRect: y }),
7727
- /* @__PURE__ */ s(bp, { panelRect: y }),
7728
- /* @__PURE__ */ s(vp, { panelRect: y })
7728
+ /* @__PURE__ */ s(ap, { panelRect: y }),
7729
+ /* @__PURE__ */ s(xp, { panelRect: y }),
7730
+ /* @__PURE__ */ s(hp, { panelRect: y })
7729
7731
  ] }),
7730
- /* @__PURE__ */ s(Lf, { panelRect: y })
7732
+ /* @__PURE__ */ s(Tf, { panelRect: y })
7731
7733
  ]
7732
7734
  });
7733
7735
  }, Rr = (e, t) => ({
@@ -7739,7 +7741,7 @@ var sm = 4, lm = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
7739
7741
  const r = {};
7740
7742
  for (const [n, o] of Object.entries(e)) r[n] = Rr(o, t);
7741
7743
  return r;
7742
- }, Sm = (e) => {
7744
+ }, wm = (e) => {
7743
7745
  let t, r;
7744
7746
  return "aspectRatio" in e ? "intrinsicWidth" in e ? (t = e.intrinsicWidth, r = t / e.aspectRatio) : (r = e.intrinsicHeight, t = r * e.aspectRatio) : (t = e.intrinsicWidth, r = e.intrinsicHeight), {
7745
7747
  width: Ao(t, "width"),
@@ -7748,7 +7750,7 @@ var sm = 4, lm = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
7748
7750
  }, Ao = (e, t) => {
7749
7751
  if (e <= 0 || Number.isNaN(e) || !Number.isFinite(e)) throw new Qi({ message: `Expected ${t} to be a positive, finite number, but got ${e}.` });
7750
7752
  return e;
7751
- }, km = ({ sizing: e, onResize: t, children: r }) => {
7753
+ }, Sm = ({ sizing: e, onResize: t, children: r }) => {
7752
7754
  const n = Ha({ onResize: t }), o = H(!1);
7753
7755
  if (F(() => {
7754
7756
  e.mode === "responsive" && (n.isDefault || n.width > 0 && n.height > 0 || o.current || (o.current = !0, console.warn(`[graphy] ZERO_SIZE_CONTAINER: GraphRenderer measured ${n.width}×${n.height}; the chart will not paint until the host has a positive width and height.`)));
@@ -7758,7 +7760,7 @@ var sm = 4, lm = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
7758
7760
  n.width,
7759
7761
  n.height
7760
7762
  ]), e.mode === "keepAspectRatio") {
7761
- const { intrinsicSize: i, canRender: l, outerStyles: c, innerStyles: d } = Em(e, n.width, !n.isDefault);
7763
+ const { intrinsicSize: i, canRender: l, outerStyles: c, innerStyles: d } = km(e, n.width, !n.isDefault);
7762
7764
  return /* @__PURE__ */ s("div", {
7763
7765
  ref: n.setElement,
7764
7766
  style: c,
@@ -7794,8 +7796,8 @@ var sm = 4, lm = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
7794
7796
  height: n.height
7795
7797
  })
7796
7798
  });
7797
- }, Em = (e, t, r) => {
7798
- const n = Sm(e), o = t > 0 && n.width > 0 ? t / n.width : 1;
7799
+ }, km = (e, t, r) => {
7800
+ const n = wm(e), o = t > 0 && n.width > 0 ? t / n.width : 1;
7799
7801
  return {
7800
7802
  intrinsicSize: n,
7801
7803
  canRender: r,
@@ -7810,7 +7812,7 @@ var sm = 4, lm = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
7810
7812
  height: n.height
7811
7813
  }
7812
7814
  };
7813
- }, Pm = { mode: "responsive" }, vr = {
7815
+ }, Em = { mode: "responsive" }, vr = {
7814
7816
  headerSize: {
7815
7817
  width: 0,
7816
7818
  height: 0
@@ -7819,7 +7821,7 @@ var sm = 4, lm = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
7819
7821
  width: 0,
7820
7822
  height: 0
7821
7823
  }
7822
- }, Rm = () => {
7824
+ }, Pm = () => {
7823
7825
  const [e, t] = j(null), [r, n] = j(null), [o, a] = j(vr);
7824
7826
  return F(() => {
7825
7827
  const i = () => {
@@ -7830,7 +7832,7 @@ var sm = 4, lm = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
7830
7832
  width: r.offsetWidth,
7831
7833
  height: r.offsetHeight
7832
7834
  } : vr.footerSize;
7833
- a((u) => Cm(u, {
7835
+ a((u) => Rm(u, {
7834
7836
  headerSize: c,
7835
7837
  footerSize: d
7836
7838
  }) ? {
@@ -7846,7 +7848,7 @@ var sm = 4, lm = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
7846
7848
  footerRef: n,
7847
7849
  measurements: o
7848
7850
  };
7849
- }, Cm = (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, Bm = () => null, Im = ({ graphChrome: e, isEditable: t, mode: r, style: n, contentRef: o, children: a }) => {
7851
+ }, Rm = (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, Cm = () => null, Bm = ({ graphChrome: e, isEditable: t, mode: r, style: n, contentRef: o, children: a }) => {
7850
7852
  const { themeClass: i, inlineVarsStyle: l } = an(), c = e.strokeWidth, d = c > 0 ? e.stroke : void 0, u = Math.max(0, e.cornerRadius), h = u === 0 ? 0 : u + c, { shadow: g, alpha: f, blendMode: v, fill: m } = e, p = b(() => ({
7851
7853
  ...n,
7852
7854
  borderRadius: `${h}px`,
@@ -7890,21 +7892,21 @@ var sm = 4, lm = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
7890
7892
  children: a
7891
7893
  })
7892
7894
  });
7893
- }, EA = (e) => /* @__PURE__ */ s(Xu, {
7894
- locale: av(),
7895
- children: /* @__PURE__ */ s(Tm, { ...e })
7896
- }), Tm = ({ slots: e, sizing: t = Pm, onResize: r, ...n }) => /* @__PURE__ */ s(Au, { children: /* @__PURE__ */ s($c, { children: /* @__PURE__ */ s(vd, {
7895
+ }, kA = (e) => /* @__PURE__ */ s(Xu, {
7896
+ locale: ov(),
7897
+ children: /* @__PURE__ */ s(Im, { ...e })
7898
+ }), Im = ({ slots: e, sizing: t = Em, onResize: r, ...n }) => /* @__PURE__ */ s(Au, { children: /* @__PURE__ */ s($c, { children: /* @__PURE__ */ s(vd, {
7897
7899
  slots: e,
7898
- children: /* @__PURE__ */ s(km, {
7900
+ children: /* @__PURE__ */ s(Sm, {
7899
7901
  sizing: t,
7900
7902
  onResize: r,
7901
- children: ({ width: o, height: a }) => /* @__PURE__ */ s(Lm, {
7903
+ children: ({ width: o, height: a }) => /* @__PURE__ */ s(Tm, {
7902
7904
  width: o,
7903
7905
  height: a,
7904
7906
  ...n
7905
7907
  })
7906
7908
  })
7907
- }) }) }), Lm = ({ width: e, height: t, animation: r, showTooltips: n = !0, mode: o = Pe.readonly }) => {
7909
+ }) }) }), Tm = ({ width: e, height: t, animation: r, showTooltips: n = !0, mode: o = Pe.readonly }) => {
7908
7910
  const a = Fa(), i = rn(o), { axes: l, legends: c, layers: d, numberFormat: u, parsingLocale: h, annotations: g, coordSystem: f, headline: v, headlineConfig: m, content: p, overflowStrategy: x } = D(ae((se) => ({
7909
7911
  axes: se.guides.axes,
7910
7912
  legends: se.guides.legends.drawn,
@@ -7917,7 +7919,7 @@ var sm = 4, lm = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
7917
7919
  headlineConfig: se.config.headline,
7918
7920
  content: se.config.content,
7919
7921
  overflowStrategy: se.config.panel.overflow
7920
- }))), { intro: y, transitions: S } = Ou(r, d), { headerRef: k, footerRef: C, measurements: E } = Rm(), { formattingLocale: B, colorScheme: P } = ne(), O = Me[i], L = O.editorSurface, [J, Z] = j(null), we = Ae("Header", rg), Ce = Ae("Footer", qv), Ii = Ae("Legend", gf), Ti = Ae("Headline", Sg), Li = Ae("EditorSurface", Bm), mn = b(() => Ps({
7922
+ }))), { intro: y, transitions: S } = Ou(r, d), { headerRef: k, footerRef: C, measurements: E } = Pm(), { formattingLocale: B, colorScheme: P } = ne(), O = Me[i], L = O.editorSurface, [J, Z] = j(null), we = Ae("Header", tg), Ce = Ae("Footer", Xv), Ii = Ae("Legend", vf), Ti = Ae("Headline", wg), Li = Ae("EditorSurface", Cm), mn = b(() => Ps({
7921
7923
  legends: c,
7922
7924
  numberFormat: u,
7923
7925
  parsingLocale: h,
@@ -7941,14 +7943,14 @@ var sm = 4, lm = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
7941
7943
  h,
7942
7944
  B,
7943
7945
  a
7944
- ]), Mi = Le(), Se = M(), An = I(Mm, Se), yn = I(Mo, Se), xn = I(dn, Se), bn = I(Nm, Se), Ni = I(Om, Se), Oi = I(Hm, Se), Hi = I(Dm, Se), { fontFamily: or, textScale: Di, strokeWidth: ar, fill: Fi } = An, wn = b(() => ga(P, {}, or), [P, or]), nt = b(() => ({
7946
+ ]), Mi = Le(), Se = M(), An = I(Lm, Se), yn = I(Mo, Se), xn = I(dn, Se), bn = I(Mm, Se), Ni = I(Nm, Se), Oi = I(Om, Se), Hi = I(Hm, Se), { fontFamily: or, textScale: Di, strokeWidth: ar, fill: Fi } = An, wn = b(() => ga(P, {}, or), [P, or]), nt = b(() => ({
7945
7947
  width: Math.max(0, e - 2 * ar),
7946
7948
  height: Math.max(0, t - 2 * ar)
7947
7949
  }), [
7948
7950
  e,
7949
7951
  t,
7950
7952
  ar
7951
- ]), Sn = b(() => zv(p.brandMark.enabled, nt, p.brandMark.variant), [
7953
+ ]), Sn = b(() => Vv(p.brandMark.enabled, nt, p.brandMark.variant), [
7952
7954
  p.brandMark.enabled,
7953
7955
  p.brandMark.variant,
7954
7956
  nt
@@ -7962,11 +7964,11 @@ var sm = 4, lm = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
7962
7964
  m.size,
7963
7965
  m.position,
7964
7966
  f
7965
- ]), Rt = tv({
7967
+ ]), Rt = ev({
7966
7968
  textMeasurer: Mi,
7967
7969
  metrics: wn,
7968
7970
  overrides: gd()
7969
- }), kn = b(() => fs(yn), [yn]), ot = rv({
7971
+ }), kn = b(() => fs(yn), [yn]), ot = tv({
7970
7972
  measurer: Rt,
7971
7973
  axes: l,
7972
7974
  numberFormat: u,
@@ -8008,9 +8010,9 @@ var sm = 4, lm = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
8008
8010
  headingFontFamily: bn.fontFamily,
8009
8011
  children: /* @__PURE__ */ s(Kc, {
8010
8012
  metrics: wn,
8011
- children: /* @__PURE__ */ s(iv, { children: /* @__PURE__ */ s(kv, {
8013
+ children: /* @__PURE__ */ s(av, { children: /* @__PURE__ */ s(Sv, {
8012
8014
  panelRect: ie.panel,
8013
- children: /* @__PURE__ */ s(Im, {
8015
+ children: /* @__PURE__ */ s(Bm, {
8014
8016
  graphChrome: An,
8015
8017
  isEditable: L,
8016
8018
  mode: i,
@@ -8019,7 +8021,7 @@ var sm = 4, lm = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
8019
8021
  width: "100%",
8020
8022
  height: "100%"
8021
8023
  },
8022
- children: /* @__PURE__ */ w(Oh, {
8024
+ children: /* @__PURE__ */ w(Nh, {
8023
8025
  intro: y,
8024
8026
  children: [
8025
8027
  /* @__PURE__ */ s(we, {
@@ -8034,7 +8036,7 @@ var sm = 4, lm = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
8034
8036
  subtitleStyle: Ni,
8035
8037
  brandMark: Wi
8036
8038
  }),
8037
- /* @__PURE__ */ s(wm, {
8039
+ /* @__PURE__ */ s(bm, {
8038
8040
  formattedAxes: En,
8039
8041
  plotRect: ie.plot,
8040
8042
  panelBorder: kn,
@@ -8078,7 +8080,7 @@ var sm = 4, lm = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
8078
8080
  formattedAxes: En,
8079
8081
  shouldAnimateTransitions: S
8080
8082
  }),
8081
- n && O.tooltips && /* @__PURE__ */ s(Ch, {})
8083
+ n && O.tooltips && /* @__PURE__ */ s(Rh, {})
8082
8084
  ]
8083
8085
  })
8084
8086
  })
@@ -8086,10 +8088,10 @@ var sm = 4, lm = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
8086
8088
  })
8087
8089
  })
8088
8090
  });
8089
- }, Mm = (e) => e.graph().resolve(), Nm = (e) => e.heading.h1().resolve(), Om = (e) => e.heading.h2().resolve(), Hm = (e) => e.caption().resolve(), Dm = (e) => ({
8091
+ }, Lm = (e) => e.graph().resolve(), Mm = (e) => e.heading.h1().resolve(), Nm = (e) => e.heading.h2().resolve(), Om = (e) => e.caption().resolve(), Hm = (e) => ({
8090
8092
  label: e.source().resolve(),
8091
8093
  link: e.source.link().resolve()
8092
- }), PA = (e) => {
8094
+ }), EA = (e) => {
8093
8095
  const t = U(Uo), r = Yr();
8094
8096
  return b(() => e || (t ? {
8095
8097
  commands: t.commands,
@@ -8107,22 +8109,22 @@ var sm = 4, lm = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
8107
8109
  t,
8108
8110
  r
8109
8111
  ]);
8110
- }, RA = (e) => cl(e.subscribe, e.getScene, e.getScene), CA = () => {
8112
+ }, PA = (e) => cl(e.subscribe, e.getScene, e.getScene), RA = () => {
8111
8113
  const { commands: e } = ne();
8112
8114
  return e;
8113
- }, BA = (e) => {
8115
+ }, CA = (e) => {
8114
8116
  if (e.altKey || !e.metaKey && !e.ctrlKey) return null;
8115
8117
  const t = e.key.toLowerCase();
8116
8118
  return t === "z" ? e.shiftKey ? "redo" : "undo" : t === "y" && e.ctrlKey && !e.shiftKey ? "redo" : null;
8117
8119
  };
8118
8120
  export {
8119
- dA as $,
8121
+ cA as $,
8120
8122
  Dn as $t,
8121
8123
  vn as A,
8122
8124
  wr as At,
8123
- zv as B,
8124
- aA as Bt,
8125
- ff as C,
8125
+ Vv as B,
8126
+ oA as Bt,
8127
+ gf as C,
8126
8128
  Su as Ct,
8127
8129
  je as D,
8128
8130
  ze as Dt,
@@ -8132,111 +8134,111 @@ export {
8132
8134
  du as Ft,
8133
8135
  ti as G,
8134
8136
  I as Gt,
8135
- mA as H,
8137
+ pA as H,
8136
8138
  $c as Ht,
8137
- rg as I,
8139
+ tg as I,
8138
8140
  Hd as It,
8139
- gA as J,
8140
- nA as Jt,
8141
- pA as K,
8141
+ vA as J,
8142
+ rA as Jt,
8143
+ fA as K,
8142
8144
  lt as Kt,
8143
- qv as L,
8144
- iA as Lt,
8145
+ Xv as L,
8146
+ aA as Lt,
8145
8147
  gn as M,
8146
8148
  hu as Mt,
8147
- kg as N,
8148
- sA as Nt,
8149
- xA as O,
8149
+ Sg as N,
8150
+ iA as Nt,
8151
+ yA as O,
8150
8152
  kr as Ot,
8151
- vg as P,
8153
+ hg as P,
8152
8154
  uu as Pt,
8153
- uA as Q,
8155
+ dA as Q,
8154
8156
  Be as Qt,
8155
- yA as R,
8157
+ AA as R,
8156
8158
  K as Rt,
8157
- wA as S,
8159
+ bA as S,
8158
8160
  Eu as St,
8159
8161
  Et as T,
8160
8162
  yu as Tt,
8161
8163
  Ie as U,
8162
8164
  Le as Ut,
8163
- Ev as V,
8165
+ kv as V,
8164
8166
  Re as Vt,
8165
- AA as W,
8167
+ mA as W,
8166
8168
  Xc as Wt,
8167
- vA as X,
8168
- rA as Xt,
8169
+ hA as X,
8170
+ tA as Xt,
8169
8171
  vt as Y,
8170
- oA as Yt,
8171
- hA as Z,
8172
+ nA as Yt,
8173
+ uA as Z,
8172
8174
  qt as Zt,
8173
8175
  Pt as _,
8174
8176
  nn as _t,
8175
- EA as a,
8176
- tA as an,
8177
+ kA as a,
8178
+ eA as an,
8177
8179
  ht as at,
8178
- Sf as b,
8180
+ wf as b,
8179
8181
  Cu as bt,
8180
8182
  Ut as c,
8181
8183
  At as cn,
8182
8184
  _n as ct,
8183
- kA as d,
8185
+ SA as d,
8184
8186
  Vo as dn,
8185
8187
  an as dt,
8186
8188
  ge as en,
8187
- cA as et,
8188
- SA as f,
8189
+ lA as et,
8190
+ wA as f,
8189
8191
  D as fn,
8190
8192
  oh as ft,
8191
- Ff as g,
8193
+ Df as g,
8192
8194
  pl as gn,
8193
8195
  Fa as gt,
8194
- zf as h,
8195
- eA as hn,
8196
+ Vf as h,
8197
+ _m as hn,
8196
8198
  Xu as ht,
8197
- PA as i,
8199
+ EA as i,
8198
8200
  kl as in,
8199
- Bh as it,
8201
+ Ch as it,
8200
8202
  fi as j,
8201
- lA as jt,
8202
- bA as k,
8203
+ sA as jt,
8204
+ xA as k,
8203
8205
  vu as kt,
8204
- yp as l,
8206
+ Ap as l,
8205
8207
  G as ln,
8206
8208
  ih as lt,
8207
- Zf as m,
8209
+ Jf as m,
8208
8210
  ne as mn,
8209
8211
  St as mt,
8210
- CA as n,
8212
+ RA as n,
8211
8213
  yr as nn,
8212
- sv as nt,
8213
- Tm as o,
8214
+ iv as nt,
8215
+ Im as o,
8214
8216
  Ot as on,
8215
8217
  sh as ot,
8216
- $f as p,
8218
+ Zf as p,
8217
8219
  Uo as pn,
8218
8220
  Wa as pt,
8219
- fA as q,
8221
+ gA as q,
8220
8222
  Mc as qt,
8221
- RA as r,
8223
+ PA as r,
8222
8224
  xe as rn,
8223
- av as rt,
8224
- Jp as s,
8225
+ ov as rt,
8226
+ qp as s,
8225
8227
  Ge as sn,
8226
8228
  lh as st,
8227
- BA as t,
8229
+ CA as t,
8228
8230
  Xo as tn,
8229
- cv as tt,
8230
- ap as u,
8231
+ lv as tt,
8232
+ op as u,
8231
8233
  M as un,
8232
8234
  ah as ut,
8233
- Pf as v,
8235
+ Ef as v,
8234
8236
  Pe as vt,
8235
8237
  Ne as w,
8236
8238
  Oa as wt,
8237
- Ef as x,
8239
+ kf as x,
8238
8240
  Ru as xt,
8239
- kf as y,
8241
+ Sf as y,
8240
8242
  Me as yt,
8241
8243
  oi as z,
8242
8244
  kd as zt