@graphysdk/react-renderer 1.9.0-beta.1789721177023 → 1.9.0-beta.1789731663685

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.
@@ -1,5 +1,5 @@
1
1
  import { n as p } from "./theme.contract.css-DRIwwcHW.js";
2
- import { ANNOTATION_TOOLTIP_MARKER_GAP_PX as ii, AXIS_KEYS as Hn, CachedTextMeasurer as Jr, DATA_LABEL_ROLES as si, DEFAULT_GEOM_COLOR as On, DEFAULT_HOVER_AFFORDANCE_COLOR as Pt, DEFAULT_POINT_SIZE_PX as Ve, GROUP_VARIABLES as $, HeuristicTextMeasurer as li, HoverEngine as ci, InternalError as di, LayoutCompiler as ui, NAMED_WEIGHTS as Xe, POLAR_RIM_LABEL_GAP_PX as hi, POSITION_VARIABLES as qe, RESOLVED_DATA_LABEL_POSITIONS as gi, RESTING_HOVER_STATE as xt, alignUnitFractions as Dn, areAnchorsEqual as vi, areEditMenuTriggersEqual as fi, areEditTargetsEqual as zt, areEndpointsComparable as Zr, arePointerRegionListsEqual as pi, buildAverageLineSymbols as mi, buildBarRectBounds as yi, buildCalloutHitRegions as Ai, buildColumnKey as cr, buildDataLabelsContent as xi, buildFontString as bi, buildHeadlineItemRows as Fn, buildLayerIntroPlan as Si, buildPolarBarArcPath as Pe, buildSliceGroupKey as dr, buildTooltipContent as wi, compositeColor as ki, computeArrow as Ei, computeDifferenceArrow as Ri, computeDirectLabelsLayout as Ci, computeLineBoxHeight as Be, computePanelBorderPaths as Pi, computePanelBorderSizes as Bi, countLayerGeoms as Ii, createAreaPathGenerators as ur, createLayerYValueFormatter as Ti, createLineFillAreaGenerator as Mi, createLinePathGenerator as hr, createPinnedNumberValueFormatter as Li, createSegmentYReader as Ni, createStableCellKeyGenerator as Hi, createStableKeyGenerator as ge, createStyleResolver as Wn, ensureReadableTextColor as Oi, findAnnotation as Di, findLayerById as Fi, findPointerRegion as $r, formatHeadline as Wi, formatLegends as Gi, formatRuleValue as Vi, getAestheticFromScaleAestheticKey as ue, getAlpha as Gn, getAngleExtent as Ui, getBarRectBounds as Bt, getBoundingRect as zi, getChromeDashArray as It, getDashArray as Ue, getDifferenceArrowLabelBox as Qi, getGroup as Le, getHoverGuideLineProps as Ki, getHoverGuideRectProps as Yi, getPaintedTileRect as gr, getPolarHoverGuideArcProps as ji, getRadiusExtent as Vn, getRuleDashArray as Xi, getShapeAnnotationStroke as qi, getSize as Ji, getStackRole as Zi, getUnionExtent as Un, getX as K, getXMax as zn, getY as j, getYMax as Tt, isAnnotationMovable as $i, isFullTurnSweep as vr, isPositionScale as _r, isSafeUrl as fr, orderPointerRegions as _i, paintsInDonutHole as es, pickReadableTextColor as Qn, placeCallouts as ts, polarToUnit as rs, positionToAngle as ns, prepareAreaObservations as pr, prepareLineObservations as mr, projectAnchorToPanel as rt, projectRegionToPanel as yr, readAnchoredObservation as Kn, readColorGroupObservation as os, resolveArrowAnnotationStyle as as, resolveArrowColor as is, resolveAxisLabelStyle as ss, resolveBarBorderRadiusPx as Ar, resolveBarBorderTreatment as ot, resolveBarCornerRadiiPx as ls, resolveCalloutAnnotationStyle as cs, resolveCaptionStyle as ds, resolveChromeMargins as us, resolveDataLabelStyle as hs, resolveDeferredAnchors as gs, resolveDifferenceArrowAnnotationStyle as vs, resolveDirectLabelStyle as fs, resolveGraphFrameStyle as Yn, resolveGraphPadding as ps, resolveGridLineStyle as $t, resolveHeadingFontFamily as ms, resolveHeadingStyle as ys, resolveHeadlineItemStyle as yt, resolveHeadlineNumberStyle as jn, resolveHeadlinePlacement as As, resolveHeadlineStyle as Xn, resolveHoverGuideStyle as xs, resolveImageAnnotationStyle as bs, resolveLegendItemStyle as Ss, resolveLegendStyle as ws, resolvePanelBorderStyle as qn, resolvePolarBarCornerRadiusUnit as ks, resolveRuleLabelStyle as Es, resolveShapeAnnotationStyle as Jn, resolveSourceStyle as Rs, resolveSubtitleStyle as Cs, resolveSwatchGeomPaint as Zn, resolveTextAnnotationStyle as Ps, resolveTickLabelStyle as Bs, resolveTickLineStyle as Is, resolveTooltipStyle as Ts, toFontSpec as Z, toPanelCursor as Ms, toPercent as R, toViewBoxX as $n, toViewBoxY as _n, truncateToWidth as eo } from "@graphysdk/viz-engine";
2
+ import { ANNOTATION_TOOLTIP_MARKER_GAP_PX as ii, AXIS_KEYS as Hn, CachedTextMeasurer as Jr, DATA_LABEL_ROLES as si, DEFAULT_GEOM_COLOR as On, DEFAULT_HOVER_AFFORDANCE_COLOR as Ct, DEFAULT_POINT_SIZE_PX as Ve, GROUP_VARIABLES as $, HeuristicTextMeasurer as li, HoverEngine as ci, InternalError as di, LayoutCompiler as ui, NAMED_WEIGHTS as Xe, POLAR_RIM_LABEL_GAP_PX as hi, POSITION_VARIABLES as qe, RESOLVED_DATA_LABEL_POSITIONS as gi, RESTING_HOVER_STATE as xt, alignUnitFractions as Dn, areAnchorsEqual as vi, areEditMenuTriggersEqual as fi, areEditTargetsEqual as zt, areEndpointsComparable as Zr, arePointerRegionListsEqual as pi, buildAverageLineSymbols as mi, buildBarRectBounds as yi, buildCalloutHitRegions as Ai, buildColumnKey as cr, buildDataLabelsContent as xi, buildFontString as bi, buildHeadlineItemRows as Fn, buildLayerIntroPlan as Si, buildPolarBarArcPath as Ce, buildSliceGroupKey as dr, buildTooltipContent as wi, compositeColor as ki, computeArrow as Ei, computeDifferenceArrow as Ri, computeDirectLabelsLayout as Pi, computeLineBoxHeight as Be, computePanelBorderPaths as Ci, computePanelBorderSizes as Bi, countLayerGeoms as Ii, createAreaPathGenerators as ur, createLayerYValueFormatter as Ti, createLineFillAreaGenerator as Mi, createLinePathGenerator as hr, createPinnedNumberValueFormatter as Li, createSegmentYReader as Ni, createStableCellKeyGenerator as Hi, createStableKeyGenerator as ge, createStyleResolver as Wn, ensureReadableTextColor as Oi, findAnnotation as Di, findLayerById as Fi, findPointerRegion as $r, formatHeadline as Wi, formatLegends as Gi, formatRuleValue as Vi, getAestheticFromScaleAestheticKey as ue, getAlpha as Gn, getAngleExtent as Ui, getBarRectBounds as Bt, getBoundingRect as zi, getChromeDashArray as It, getDashArray as Ue, getDifferenceArrowLabelBox as Qi, getGroup as Le, getHoverGuideLineProps as Ki, getHoverGuideRectProps as Yi, getPaintedTileRect as gr, getPolarHoverGuideArcProps as ji, getRadiusExtent as Vn, getRuleDashArray as Xi, getShapeAnnotationStroke as qi, getSize as Ji, getStackRole as Zi, getUnionExtent as Un, getX as K, getXMax as zn, getY as j, getYMax as Tt, isAnnotationMovable as $i, isFullTurnSweep as vr, isPositionScale as _r, isSafeUrl as fr, orderPointerRegions as _i, paintsInDonutHole as es, pickReadableTextColor as Qn, placeCallouts as ts, polarToUnit as rs, positionToAngle as ns, prepareAreaObservations as pr, prepareLineObservations as mr, projectAnchorToPanel as rt, projectRegionToPanel as yr, readAnchoredObservation as Kn, readColorGroupObservation as os, resolveArrowAnnotationStyle as as, resolveArrowColor as is, resolveAxisLabelStyle as ss, resolveBarBorderRadiusPx as Ar, resolveBarBorderTreatment as ot, resolveBarCornerRadiiPx as ls, resolveCalloutAnnotationStyle as cs, resolveCaptionStyle as ds, resolveChromeMargins as us, resolveDataLabelStyle as hs, resolveDeferredAnchors as gs, resolveDifferenceArrowAnnotationStyle as vs, resolveDirectLabelStyle as fs, resolveGraphFrameStyle as Yn, resolveGraphPadding as ps, resolveGridLineStyle as $t, resolveHeadingFontFamily as ms, resolveHeadingStyle as ys, resolveHeadlineItemStyle as yt, resolveHeadlineNumberStyle as jn, resolveHeadlinePlacement as As, resolveHeadlineStyle as Xn, resolveHoverGuideStyle as xs, resolveImageAnnotationStyle as bs, resolveLegendItemStyle as Ss, resolveLegendStyle as ws, resolvePanelBorderStyle as qn, resolvePolarBarCornerRadiusUnit as ks, resolveRuleLabelStyle as Es, resolveShapeAnnotationStyle as Jn, resolveSourceStyle as Rs, resolveSubtitleStyle as Ps, resolveSwatchGeomPaint as Zn, resolveTextAnnotationStyle as Cs, resolveTickLabelStyle as Bs, resolveTickLineStyle as Is, resolveTooltipStyle as Ts, toFontSpec as Z, toPanelCursor as Ms, toPercent as R, toViewBoxX as $n, toViewBoxY as _n, truncateToWidth as eo } from "@graphysdk/viz-engine";
3
3
  import { Fragment as Mt, createContext as Y, memo as ae, useCallback as pe, useContext as W, useEffect as F, useId as q, useMemo as A, useRef as L, useState as Q, useSyncExternalStore as Ls } from "react";
4
4
  import { Fragment as I, jsx as s, jsxs as S } from "react/jsx-runtime";
5
5
  import { useStore as ze } from "zustand";
@@ -9,7 +9,7 @@ import { useShallow as ee } from "zustand/react/shallow";
9
9
  import { assignInlineVars as xr } from "@vanilla-extract/dynamic";
10
10
  import { createStore as to } from "zustand/vanilla";
11
11
  import { createPortal as ro } from "react-dom";
12
- import nt, { clsx as Ce } from "clsx";
12
+ import nt, { clsx as Pe } from "clsx";
13
13
  import Os from "lodash-es/merge";
14
14
  import { IntlProvider as Ds } from "react-intl";
15
15
  import { flip as _t, offset as er, shift as tr, useFloating as no } from "@floating-ui/react-dom";
@@ -23,7 +23,7 @@ import './history-chords.css';var en = Object.defineProperty, Ws = (e, t) => {
23
23
  });
24
24
  return t || en(r, Symbol.toStringTag, { value: "Module" }), r;
25
25
  };
26
- typeof window < "u" && (window.__GRAPHY_SDK__ ??= {}, window.__GRAPHY_SDK__.reactRenderer = "1.9.0-beta.1789721177023");
26
+ typeof window < "u" && (window.__GRAPHY_SDK__ ??= {}, window.__GRAPHY_SDK__.reactRenderer = "1.9.0-beta.1789731663685");
27
27
  function Gs(e) {
28
28
  for (const t of e) (t.severity === "error" ? console.error : console.warn)(`[graphy] ${t.code}: ${t.message}`, t);
29
29
  }
@@ -34,7 +34,7 @@ var oo = Y(null), X = () => {
34
34
  }, M = (e) => {
35
35
  const { store: t } = X();
36
36
  return ze(t, (r) => e(r.scene));
37
- }, at = () => X().styleResolver, D = (e) => at().geomReaders(e), em = () => {
37
+ }, at = () => X().styleResolver, D = (e) => at().geomReaders(e), _p = () => {
38
38
  const e = at(), t = M((r) => r.chrome);
39
39
  return e.readers({ chrome: t });
40
40
  }, ao = (e) => {
@@ -95,7 +95,7 @@ var oo = Y(null), X = () => {
95
95
  }, Qs = 2, Ks = 0.7, Se = ({ hit: e, project: t = Ie }) => {
96
96
  const r = ao(e.layerId);
97
97
  if (!e.anchored) return null;
98
- const n = r?.get("color", e.observation) ?? On, o = (Gn(e.observation) ?? 1) * Ks, a = (r?.get("size", e.observation) ?? Ve) / 2, i = r?.get("borderColor", e.observation, "hovered") ?? Pt, l = t(e.x, e.y);
98
+ const n = r?.get("color", e.observation) ?? On, o = (Gn(e.observation) ?? 1) * Ks, a = (r?.get("size", e.observation) ?? Ve) / 2, i = r?.get("borderColor", e.observation, "hovered") ?? Ct, l = t(e.x, e.y);
99
99
  return /* @__PURE__ */ s("circle", {
100
100
  cx: R(l.x),
101
101
  cy: R(l.y),
@@ -107,7 +107,7 @@ var oo = Y(null), X = () => {
107
107
  "data-testid": "companion-point"
108
108
  });
109
109
  };
110
- var tn = 10 ** 2, z = (e) => Math.round(e * tn) / tn, tm = (e) => e.map(({ x: t, y: r }) => `M${z(t)},${z(r)}h0`).join(""), Ys = (e, t, r) => {
110
+ var tn = 10 ** 2, z = (e) => Math.round(e * tn) / tn, em = (e) => e.map(({ x: t, y: r }) => `M${z(t)},${z(r)}h0`).join(""), Ys = (e, t, r) => {
111
111
  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);
112
112
  if (d - c <= 0 || i <= 0) return "";
113
113
  const u = Math.max(0, Math.min(t, i / 2)), h = Math.max(0, Math.min(t, l / 2)), v = a + h, g = a + l - h, f = o + i, m = n ? 0 : 1, y = (E, B) => {
@@ -117,19 +117,19 @@ var tn = 10 ** 2, z = (e) => Math.round(e * tn) / tn, tm = (e) => e.map(({ x: t,
117
117
  if (u <= 0 || h <= 0) return 0;
118
118
  const B = E < v ? v - E : E > g ? E - g : 0, O = Math.min(1, B / h);
119
119
  return u * (1 - Math.sqrt(1 - O * O));
120
- }, C = (E, B) => u > 0 && h > 0 && (Math.max(E, B) <= v || Math.min(E, B) >= g), P = [
120
+ }, P = (E, B) => u > 0 && h > 0 && (Math.max(E, B) <= v || Math.min(E, B) >= g), C = [
121
121
  c,
122
122
  ...new Set([v, g].filter((E) => E > c && E < d)),
123
123
  d
124
124
  ], H = [`M${y(o + w(c), c)}`, `L${y(f - w(c), c)}`];
125
- for (let E = 1; E < P.length; E++) {
126
- const B = P[E - 1] ?? c, O = P[E] ?? d;
127
- H.push(C(B, O) ? k(f - w(O), O) : `L${y(f, O)}`);
125
+ for (let E = 1; E < C.length; E++) {
126
+ const B = C[E - 1] ?? c, O = C[E] ?? d;
127
+ H.push(P(B, O) ? k(f - w(O), O) : `L${y(f, O)}`);
128
128
  }
129
129
  H.push(`L${y(o + w(d), d)}`);
130
- for (let E = P.length - 1; E > 0; E--) {
131
- const B = P[E] ?? d, O = P[E - 1] ?? c;
132
- H.push(C(B, O) ? k(o + w(O), O) : `L${y(o, O)}`);
130
+ for (let E = C.length - 1; E > 0; E--) {
131
+ const B = C[E] ?? d, O = C[E - 1] ?? c;
132
+ H.push(P(B, O) ? k(o + w(O), O) : `L${y(o, O)}`);
133
133
  }
134
134
  return `${H.join("")}Z`;
135
135
  }, io = (e, t, r) => {
@@ -360,7 +360,7 @@ var tn = 10 ** 2, z = (e) => Math.round(e * tn) / tn, tm = (e) => e.map(({ x: t,
360
360
  }), al = "_324dw20", uo = 1, il = 0.4, sl = 0.2, ll = 1, cl = 0.5, dl = 2.25, Qe = ({ hit: e, project: t = Ie, ...r }) => {
361
361
  const n = ao(e.layerId);
362
362
  if (!e.anchored) return null;
363
- const o = n?.get("color", e.observation) ?? On, a = Gn(e.observation) ?? 1, i = n?.get("borderColor", e.observation, "hovered") ?? Pt, l = t(e.x, e.y), c = R(l.x), d = R(l.y), u = ul(e.observation, n), { ringRadius: h, ringWidth: v } = hl(u);
363
+ const o = n?.get("color", e.observation) ?? On, a = Gn(e.observation) ?? 1, i = n?.get("borderColor", e.observation, "hovered") ?? Ct, l = t(e.x, e.y), c = R(l.x), d = R(l.y), u = ul(e.observation, n), { ringRadius: h, ringWidth: v } = hl(u);
364
364
  return /* @__PURE__ */ S("g", {
365
365
  ...r,
366
366
  className: al,
@@ -906,7 +906,7 @@ function Rl(e) {
906
906
  const r = {};
907
907
  return t.rx !== void 0 && (r.rx = R(t.rx)), t.ry !== void 0 && (r.ry = R(t.ry)), r;
908
908
  }
909
- var Cl = "_1suo8ub0", Qt = 3, Pl = ({ layer: e, coordSystem: t, primary: r, panelRect: n }) => {
909
+ var Pl = "_1suo8ub0", Qt = 3, Cl = ({ layer: e, coordSystem: t, primary: r, panelRect: n }) => {
910
910
  const o = D(e), a = q(), i = q(), l = q(), c = A(() => wr(e, t.mainAxis, o), [
911
911
  e,
912
912
  t.mainAxis,
@@ -917,13 +917,13 @@ var Cl = "_1suo8ub0", Qt = 3, Pl = ({ layer: e, coordSystem: t, primary: r, pane
917
917
  borderRadius: m,
918
918
  mainAxis: t.mainAxis,
919
919
  bounds: v
920
- }), x = Ae(h, 0), k = Ae(v, b), w = Ae(on(h, Qt), 0), C = Ae(on(v, Qt), b > 0 ? b + Qt : 0), P = o.get("color", r.observation), H = o.get("alpha", r.observation), E = o.get("borderColor", r.observation, "hovered") ?? Pt, B = ot(f);
920
+ }), x = Ae(h, 0), k = Ae(v, b), w = Ae(on(h, Qt), 0), P = Ae(on(v, Qt), b > 0 ? b + Qt : 0), C = o.get("color", r.observation), H = o.get("alpha", r.observation), E = o.get("borderColor", r.observation, "hovered") ?? Ct, B = ot(f);
921
921
  return /* @__PURE__ */ S("g", {
922
922
  "data-testid": "hovered-bar",
923
923
  children: [
924
924
  /* @__PURE__ */ s("clipPath", {
925
925
  id: a,
926
- children: /* @__PURE__ */ s("path", { d: C })
926
+ children: /* @__PURE__ */ s("path", { d: P })
927
927
  }),
928
928
  /* @__PURE__ */ s("clipPath", {
929
929
  id: i,
@@ -934,7 +934,7 @@ var Cl = "_1suo8ub0", Qt = 3, Pl = ({ layer: e, coordSystem: t, primary: r, pane
934
934
  children: /* @__PURE__ */ s("path", { d: k })
935
935
  }),
936
936
  /* @__PURE__ */ s("g", {
937
- className: Cl,
937
+ className: Pl,
938
938
  children: /* @__PURE__ */ s("g", {
939
939
  clipPath: `url(#${a})`,
940
940
  children: /* @__PURE__ */ s("path", {
@@ -950,7 +950,7 @@ var Cl = "_1suo8ub0", Qt = 3, Pl = ({ layer: e, coordSystem: t, primary: r, pane
950
950
  clipPath: `url(#${l})`,
951
951
  children: [/* @__PURE__ */ s("path", {
952
952
  d: x,
953
- fill: P,
953
+ fill: C,
954
954
  opacity: H,
955
955
  "data-testid": "hovered-bar-fill"
956
956
  }), g !== void 0 && /* @__PURE__ */ S(I, { children: [/* @__PURE__ */ s("path", {
@@ -988,7 +988,7 @@ var Cl = "_1suo8ub0", Qt = 3, Pl = ({ layer: e, coordSystem: t, primary: r, pane
988
988
  coordSystem: r,
989
989
  panelRect: n
990
990
  }),
991
- renderHover: ({ layer: e, coordSystem: t, primary: r, panelRect: n }) => /* @__PURE__ */ s(Pl, {
991
+ renderHover: ({ layer: e, coordSystem: t, primary: r, panelRect: n }) => /* @__PURE__ */ s(Cl, {
992
992
  layer: e,
993
993
  coordSystem: t,
994
994
  primary: r,
@@ -1392,7 +1392,7 @@ var Cl = "_1suo8ub0", Qt = 3, Pl = ({ layer: e, coordSystem: t, primary: r, pane
1392
1392
  fontEditorControlValue: T(p.fontWeightMedium, p.fontSizeSm, p.fontLineHeightSm),
1393
1393
  fontEditorSectionTitle: T(p.fontWeightSemibold, p.fontSizeSm, p.fontLineHeightSm),
1394
1394
  fontEditorCaption: T(p.fontWeightMedium, p.fontSizeXxs, p.fontLineHeightXxs)
1395
- }, Vl = ne.sm, Ul = (e, t) => ({ familyDefault: Kt(t) ?? Kt(e.fontFamily) ?? Kt(Ht) ?? "" }), Kt = (e) => e === void 0 || e.includes("var(") ? null : e.replace(/\s+/g, " ").trim(), J = (e, t) => `color-mix(in srgb, transparent, ${e} ${t * 100}%)`, zl = (e, t) => `hsl(from ${e} h s calc(l * ${1 - t}))`, rm = (e, t) => `hsl(from ${e} h s calc(l * ${1 + t}))`, nm = (e) => /^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$/.test(e), om = (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), Yt = (e) => `${e}px`, So = {
1395
+ }, Vl = ne.sm, Ul = (e, t) => ({ familyDefault: Kt(t) ?? Kt(e.fontFamily) ?? Kt(Ht) ?? "" }), Kt = (e) => e === void 0 || e.includes("var(") ? null : e.replace(/\s+/g, " ").trim(), J = (e, t) => `color-mix(in srgb, transparent, ${e} ${t * 100}%)`, zl = (e, t) => `hsl(from ${e} h s calc(l * ${1 - t}))`, tm = (e, t) => `hsl(from ${e} h s calc(l * ${1 + t}))`, rm = (e) => /^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$/.test(e), nm = (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), Yt = (e) => `${e}px`, So = {
1396
1396
  tooltipRowGap: "4px",
1397
1397
  editorControlHeight: Yt(32),
1398
1398
  legendSwatchGap: Yt(8),
@@ -1598,24 +1598,24 @@ var Cl = "_1suo8ub0", Qt = 3, Pl = ({ layer: e, coordSystem: t, primary: r, pane
1598
1598
  ...e === "dark" ? ql : ec,
1599
1599
  ...r
1600
1600
  };
1601
- }, Co = (e, t = {}, r) => {
1601
+ }, Po = (e, t = {}, r) => {
1602
1602
  const n = kr(e, t);
1603
1603
  return {
1604
1604
  legendSwatchGap: ln(n.legendSwatchGap, 8),
1605
1605
  headlineRowGap: ln(n.headlineRowGap, 2),
1606
1606
  fonts: Ul(n, r)
1607
1607
  };
1608
- }, tc = Object.freeze(Co("light"));
1608
+ }, tc = Object.freeze(Po("light"));
1609
1609
  function ln(e, t) {
1610
1610
  const r = e.trim();
1611
1611
  if (!/^-?\d*\.?\d+(px)?$/.test(r)) return t;
1612
1612
  const n = Number.parseFloat(r);
1613
1613
  return Number.isFinite(n) ? n : t;
1614
1614
  }
1615
- var Po = Y(tc), rc = ({ metrics: e, children: t }) => /* @__PURE__ */ s(Po.Provider, {
1615
+ var Co = Y(tc), rc = ({ metrics: e, children: t }) => /* @__PURE__ */ s(Co.Provider, {
1616
1616
  value: e,
1617
1617
  children: t
1618
- }), Ne = () => W(Po), N = () => {
1618
+ }), Ne = () => W(Co), N = () => {
1619
1619
  const { colorScheme: e } = X(), t = M((r) => r.chrome);
1620
1620
  return A(() => Wn({ colorScheme: e }).chromeReaders(t), [t, e]);
1621
1621
  }, nc = (e) => {
@@ -1723,7 +1723,7 @@ var Po = Y(tc), rc = ({ metrics: e, children: t }) => /* @__PURE__ */ s(Po.Provi
1723
1723
  } catch {
1724
1724
  return new Jr(new li());
1725
1725
  }
1726
- }, Mo = Y(null), am = Mo.Provider, uc = null, ye = () => W(Mo) ?? (uc ??= md()), hc = 11.7, gc = 0.5, dn = 21.6, vc = "0 0 10 18", fc = "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", pc = "_16vokpr0", mc = (e, t) => e.mapping.y !== void 0 != (t.mainAxis === "y"), yc = (e, t) => {
1726
+ }, Mo = Y(null), om = Mo.Provider, uc = null, ye = () => W(Mo) ?? (uc ??= md()), hc = 11.7, gc = 0.5, dn = 21.6, vc = "0 0 10 18", fc = "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", pc = "_16vokpr0", mc = (e, t) => e.mapping.y !== void 0 != (t.mainAxis === "y"), yc = (e, t) => {
1727
1727
  const r = R(e ? 1 - t : t);
1728
1728
  return e ? {
1729
1729
  x1: "0%",
@@ -1767,8 +1767,8 @@ function Ec() {
1767
1767
  function Rc(e) {
1768
1768
  return "render" in e && "measure" in e;
1769
1769
  }
1770
- var Cc = "_2qyyu60", Pc = 2, Bc = 12, Ic = 12, un = 1, hn = 2, Tc = 4, st = (e) => /* @__PURE__ */ s(de("Swatch", Mc), { ...e }), Mc = ({ shape: e, color: t, lineType: r = "solid", width: n = Bc, height: o = Ic, strokeWidth: a = Pc, alpha: i, cornerRadius: l }) => /* @__PURE__ */ s("svg", {
1771
- className: Cc,
1770
+ var Pc = "_2qyyu60", Cc = 2, Bc = 12, Ic = 12, un = 1, hn = 2, Tc = 4, st = (e) => /* @__PURE__ */ s(de("Swatch", Mc), { ...e }), Mc = ({ shape: e, color: t, lineType: r = "solid", width: n = Bc, height: o = Ic, strokeWidth: a = Cc, alpha: i, cornerRadius: l }) => /* @__PURE__ */ s("svg", {
1771
+ className: Pc,
1772
1772
  width: n,
1773
1773
  height: o,
1774
1774
  viewBox: `0 0 ${n} ${o}`,
@@ -1880,7 +1880,7 @@ var Cc = "_2qyyu60", Pc = 2, Bc = 12, Ic = 12, un = 1, hn = 2, Tc = 4, st = (e)
1880
1880
  fontWeight: e.fontWeight,
1881
1881
  lineHeight: e.lineHeight,
1882
1882
  color: e.textColor
1883
- }), im = (e, t) => xr({
1883
+ }), am = (e, t) => xr({
1884
1884
  [e.fontFamily]: t.fontFamily ?? p.fontFamily,
1885
1885
  [e.fontSize]: `${t.fontSize}px`,
1886
1886
  [e.fontWeight]: String(t.fontWeight),
@@ -2052,15 +2052,15 @@ var Cc = "_2qyyu60", Pc = 2, Bc = 12, Ic = 12, un = 1, hn = 2, Tc = 4, st = (e)
2052
2052
  k,
2053
2053
  x,
2054
2054
  i
2055
- ]), C = D(t), P = t.data.getFirst();
2056
- if (!P) return null;
2057
- const H = C.get("color", P), E = b.textColor ?? Qn(H), B = mc(t, r), O = B ? j(P) : K(P);
2055
+ ]), P = D(t), C = t.data.getFirst();
2056
+ if (!C) return null;
2057
+ const H = P.get("color", C), E = b.textColor ?? Qn(H), B = mc(t, r), O = B ? j(C) : K(C);
2058
2058
  return O === null ? null : /* @__PURE__ */ S("g", {
2059
2059
  "data-geom": "rule",
2060
2060
  className: pc,
2061
2061
  children: [/* @__PURE__ */ s(Fc, {
2062
- strokeWidth: C.get("strokeWidth", P),
2063
- lineType: C.get("lineType", P),
2062
+ strokeWidth: P.get("strokeWidth", C),
2063
+ lineType: P.get("lineType", C),
2064
2064
  isHorizontalLine: B,
2065
2065
  position: O,
2066
2066
  lineColor: H,
@@ -2164,7 +2164,7 @@ var Cc = "_2qyyu60", Pc = 2, Bc = 12, Ic = 12, un = 1, hn = 2, Tc = 4, st = (e)
2164
2164
  }), Qc = ({ layer: e, primary: t, panelRect: r }) => {
2165
2165
  const n = D(e), o = gr(t.observation);
2166
2166
  if (!o) return null;
2167
- const a = n.get("color", t.observation), i = n.get("alpha", t.observation), l = n.get("borderColor", t.observation, "hovered") ?? Pt, c = n.get("borderWidth", t.observation, "hovered"), d = n.get("borderRadius", t.observation, "hovered"), u = o.x * r.width, h = o.y * r.height, v = o.width * r.width, g = o.height * r.height;
2167
+ const a = n.get("color", t.observation), i = n.get("alpha", t.observation), l = n.get("borderColor", t.observation, "hovered") ?? Ct, c = n.get("borderWidth", t.observation, "hovered"), d = n.get("borderRadius", t.observation, "hovered"), u = o.x * r.width, h = o.y * r.height, v = o.width * r.width, g = o.height * r.height;
2168
2168
  return /* @__PURE__ */ S("g", {
2169
2169
  "data-testid": "hovered-tile",
2170
2170
  children: [/* @__PURE__ */ s("rect", {
@@ -2413,7 +2413,7 @@ var Cc = "_2qyyu60", Pc = 2, Bc = 12, Ic = 12, un = 1, hn = 2, Tc = 4, st = (e)
2413
2413
  members: c
2414
2414
  });
2415
2415
  return a;
2416
- }, Cr = (e, t, r) => {
2416
+ }, Pr = (e, t, r) => {
2417
2417
  const n = Fo(e, t, r, (a, i) => i), o = /* @__PURE__ */ new Map();
2418
2418
  for (const [a, { style: i, union: l }] of n) o.set(a, {
2419
2419
  style: i,
@@ -2423,9 +2423,9 @@ var Cc = "_2qyyu60", Pc = 2, Bc = 12, Ic = 12, un = 1, hn = 2, Tc = 4, st = (e)
2423
2423
  }, Zc = (e, t, r, n, o) => e.get(dr(t, o)) ?? {
2424
2424
  style: Lt(r, n),
2425
2425
  union: Un([o])
2426
- }, Pr = ({ style: e, union: t }) => ks(e.borderRadius, t.outerRadius - t.innerRadius), Wo = (e, t, r, n) => Pe({
2426
+ }, Cr = ({ style: e, union: t }) => ks(e.borderRadius, t.outerRadius - t.innerRadius), Wo = (e, t, r, n) => Ce({
2427
2427
  ...t.union,
2428
- cornerRadius: Pr(t),
2428
+ cornerRadius: Cr(t),
2429
2429
  slice: r === "x" ? {
2430
2430
  axis: "radius",
2431
2431
  from: e.innerRadius,
@@ -2435,7 +2435,7 @@ var Cc = "_2qyyu60", Pc = 2, Bc = 12, Ic = 12, un = 1, hn = 2, Tc = 4, st = (e)
2435
2435
  from: e.startAngle,
2436
2436
  to: e.endAngle
2437
2437
  }
2438
- }, n), $c = ho(Cr), _c = ({ layer: e, sourceLayer: t, coordSystem: r, panelRect: n, styleReaders: o, shouldAnimateTransitions: a }) => {
2438
+ }, n), $c = ho(Pr), _c = ({ layer: e, sourceLayer: t, coordSystem: r, panelRect: n, styleReaders: o, shouldAnimateTransitions: a }) => {
2439
2439
  const { bandAxis: i } = r, l = $c(t, i, o), c = Yc(n);
2440
2440
  let d = "";
2441
2441
  for (const u of e.data) {
@@ -2491,42 +2491,42 @@ var Cc = "_2qyyu60", Pc = 2, Bc = 12, Ic = 12, un = 1, hn = 2, Tc = 4, st = (e)
2491
2491
  ...b
2492
2492
  }
2493
2493
  }, E) : /* @__PURE__ */ s("path", {
2494
- d: Pe(B) ?? void 0,
2494
+ d: Ce(B) ?? void 0,
2495
2495
  fill: B.fill,
2496
2496
  opacity: B.opacity,
2497
2497
  ...b
2498
2498
  }, E);
2499
- }), w = Pr(u);
2499
+ }), w = Cr(u);
2500
2500
  if (!m && w <= 0) return /* @__PURE__ */ s(Mt, { children: k }, u.key);
2501
- const C = `${a}${h}`;
2501
+ const P = `${a}${h}`;
2502
2502
  if (i.isAnimated) return /* @__PURE__ */ s("g", {
2503
- clipPath: `url(#${C})`,
2503
+ clipPath: `url(#${P})`,
2504
2504
  children: /* @__PURE__ */ s(rd, {
2505
2505
  ...u.union,
2506
2506
  cornerRadius: w,
2507
2507
  animation: i,
2508
2508
  sweepsInOnLateMount: l,
2509
2509
  introKey: u.members[0]?.key,
2510
- clipId: C,
2510
+ clipId: P,
2511
2511
  outlineProps: x,
2512
2512
  outlineOpacity: f,
2513
2513
  children: k
2514
2514
  })
2515
2515
  }, u.key);
2516
- const P = Pe({
2516
+ const C = Ce({
2517
2517
  ...u.union,
2518
2518
  cornerRadius: w
2519
2519
  });
2520
2520
  return /* @__PURE__ */ S("g", {
2521
- clipPath: `url(#${C})`,
2521
+ clipPath: `url(#${P})`,
2522
2522
  children: [
2523
2523
  /* @__PURE__ */ s("clipPath", {
2524
- id: C,
2525
- children: /* @__PURE__ */ s("path", { d: P })
2524
+ id: P,
2525
+ children: /* @__PURE__ */ s("path", { d: C })
2526
2526
  }),
2527
2527
  k,
2528
2528
  x !== void 0 && /* @__PURE__ */ s("path", {
2529
- d: P,
2529
+ d: C,
2530
2530
  fill: "none",
2531
2531
  opacity: f,
2532
2532
  ...x
@@ -2536,7 +2536,7 @@ var Cc = "_2qyyu60", Pc = 2, Bc = 12, Ic = 12, un = 1, hn = 2, Tc = 4, st = (e)
2536
2536
  })
2537
2537
  });
2538
2538
  }), Go = ({ startAngle: e, endAngle: t, innerRadius: r, outerRadius: n, cornerRadius: o, animation: a, sweepsInOnLateMount: i, introKey: l }) => {
2539
- const c = a.activeIntro?.growAxis === "angle" ? a.activeIntro : null, d = a.activeIntro?.growAxis === "radius" ? a.activeIntro : null, u = i && !a.isLayerEntrance, h = c?.baseline ?? (u ? gn : e), v = c?.baseline ?? (u ? gn : t), g = d ? d.baseline : r, f = d ? d.baseline : n, m = ce(h), y = ce(v), b = ce(g), x = ce(f), k = ce(Pe({
2539
+ const c = a.activeIntro?.growAxis === "angle" ? a.activeIntro : null, d = a.activeIntro?.growAxis === "radius" ? a.activeIntro : null, u = i && !a.isLayerEntrance, h = c?.baseline ?? (u ? gn : e), v = c?.baseline ?? (u ? gn : t), g = d ? d.baseline : r, f = d ? d.baseline : n, m = ce(h), y = ce(v), b = ce(g), x = ce(f), k = ce(Ce({
2540
2540
  startAngle: h,
2541
2541
  endAngle: v,
2542
2542
  innerRadius: g,
@@ -2544,7 +2544,7 @@ var Cc = "_2qyyu60", Pc = 2, Bc = 12, Ic = 12, un = 1, hn = 2, Tc = 4, st = (e)
2544
2544
  cornerRadius: o
2545
2545
  }) ?? ""), w = or(a, l, c);
2546
2546
  F(() => {
2547
- const P = w(), H = [fe(m, e, P), fe(y, t, P)];
2547
+ const C = w(), H = [fe(m, e, C), fe(y, t, C)];
2548
2548
  return () => {
2549
2549
  for (const E of H) E.stop();
2550
2550
  };
@@ -2555,9 +2555,9 @@ var Cc = "_2qyyu60", Pc = 2, Bc = 12, Ic = 12, un = 1, hn = 2, Tc = 4, st = (e)
2555
2555
  t,
2556
2556
  w
2557
2557
  ]);
2558
- const C = or(a, l, d);
2558
+ const P = or(a, l, d);
2559
2559
  return F(() => {
2560
- const P = C(), H = [fe(b, r, P), fe(x, n, P)];
2560
+ const C = P(), H = [fe(b, r, C), fe(x, n, C)];
2561
2561
  return () => {
2562
2562
  for (const E of H) E.stop();
2563
2563
  };
@@ -2566,10 +2566,10 @@ var Cc = "_2qyyu60", Pc = 2, Bc = 12, Ic = 12, un = 1, hn = 2, Tc = 4, st = (e)
2566
2566
  x,
2567
2567
  r,
2568
2568
  n,
2569
- C
2569
+ P
2570
2570
  ]), F(() => {
2571
- const P = () => {
2572
- k.set(Pe({
2571
+ const C = () => {
2572
+ k.set(Ce({
2573
2573
  startAngle: m.get(),
2574
2574
  endAngle: y.get(),
2575
2575
  innerRadius: b.get(),
@@ -2577,13 +2577,13 @@ var Cc = "_2qyyu60", Pc = 2, Bc = 12, Ic = 12, un = 1, hn = 2, Tc = 4, st = (e)
2577
2577
  cornerRadius: o
2578
2578
  }) ?? "");
2579
2579
  };
2580
- P();
2580
+ C();
2581
2581
  const H = [
2582
2582
  m,
2583
2583
  y,
2584
2584
  b,
2585
2585
  x
2586
- ].map((E) => E.on("change", P));
2586
+ ].map((E) => E.on("change", C));
2587
2587
  return () => {
2588
2588
  for (const E of H) E();
2589
2589
  };
@@ -2643,9 +2643,9 @@ var Cc = "_2qyyu60", Pc = 2, Bc = 12, Ic = 12, un = 1, hn = 2, Tc = 4, st = (e)
2643
2643
  opacity: d,
2644
2644
  "data-testid": "arc-segment"
2645
2645
  });
2646
- const g = ot(h), f = nd(Zi(e), t, i.union), m = ad(a, id(f)), y = Pe({
2646
+ const g = ot(h), f = nd(Zi(e), t, i.union), m = ad(a, id(f)), y = Ce({
2647
2647
  ...i.union,
2648
- cornerRadius: Pr(i)
2648
+ cornerRadius: Cr(i)
2649
2649
  });
2650
2650
  return /* @__PURE__ */ S("g", {
2651
2651
  clipPath: `url(#${o})`,
@@ -2675,7 +2675,7 @@ var Cc = "_2qyyu60", Pc = 2, Bc = 12, Ic = 12, un = 1, hn = 2, Tc = 4, st = (e)
2675
2675
  ]
2676
2676
  });
2677
2677
  }, od = ({ layer: e, sourceLayer: t, coordSystem: r }) => {
2678
- const n = D(t), o = A(() => Cr(t, r.bandAxis, n), [
2678
+ const n = D(t), o = A(() => Pr(t, r.bandAxis, n), [
2679
2679
  t,
2680
2680
  r.bandAxis,
2681
2681
  n
@@ -2718,7 +2718,7 @@ var Cc = "_2qyyu60", Pc = 2, Bc = 12, Ic = 12, un = 1, hn = 2, Tc = 4, st = (e)
2718
2718
  startSpoke: !e.startSpoke,
2719
2719
  endSpoke: !e.endSpoke
2720
2720
  }), sd = ({ layer: e, coordSystem: t, primary: r }) => {
2721
- const n = D(e), o = A(() => Cr(e, t.bandAxis, n), [
2721
+ const n = D(e), o = A(() => Pr(e, t.bandAxis, n), [
2722
2722
  e,
2723
2723
  t.bandAxis,
2724
2724
  n
@@ -2970,7 +2970,7 @@ function Dt(e) {
2970
2970
  function pd(e) {
2971
2971
  return e ? Dt(e.render).overlay : !1;
2972
2972
  }
2973
- function sm(e, t) {
2973
+ function im(e, t) {
2974
2974
  return typeof e == "string" ? {
2975
2975
  ...t,
2976
2976
  geom: e
@@ -3066,7 +3066,7 @@ var wd = ({ hitTest: e, input: t }) => {
3066
3066
  zIndex: t
3067
3067
  },
3068
3068
  children: o
3069
- }), r), Cd = ({ rect: e, children: t }) => {
3069
+ }), r), Pd = ({ rect: e, children: t }) => {
3070
3070
  const [r] = Q(Ko);
3071
3071
  return /* @__PURE__ */ s(Rd, {
3072
3072
  rect: e,
@@ -3074,7 +3074,7 @@ var wd = ({ hitTest: e, input: t }) => {
3074
3074
  container: r,
3075
3075
  children: t
3076
3076
  });
3077
- }, Pd = (e, t) => {
3077
+ }, Cd = (e, t) => {
3078
3078
  const r = ir(e), n = ir(t), o = L(null), a = L(null), i = A(() => {
3079
3079
  const l = () => {
3080
3080
  a.current !== null && (clearTimeout(a.current), a.current = null), o.current = null;
@@ -3103,7 +3103,7 @@ var wd = ({ hitTest: e, input: t }) => {
3103
3103
  height: 0,
3104
3104
  isDefault: !0
3105
3105
  }, Yo = ({ debounce: e = 0, onResize: t } = {}) => {
3106
- const [r, n] = Q(Bd), o = L(null), a = Pd((d) => {
3106
+ const [r, n] = Q(Bd), o = L(null), a = Cd((d) => {
3107
3107
  const u = o.current;
3108
3108
  u && u.width === d.width && u.height === d.height || (o.current = {
3109
3109
  width: d.width,
@@ -3183,7 +3183,7 @@ var Md = ({ render: e, input: t }) => {
3183
3183
  height: "100%",
3184
3184
  fill: "none",
3185
3185
  pointerEvents: "none"
3186
- }), o && /* @__PURE__ */ s(Cd, {
3186
+ }), o && /* @__PURE__ */ s(Pd, {
3187
3187
  rect: o,
3188
3188
  children: /* @__PURE__ */ s(Ld, {
3189
3189
  render: e,
@@ -3685,7 +3685,7 @@ var Au = "_19519k82", xu = "_19519k83", bu = "_19519k85", Su = "_19519k86", wu =
3685
3685
  cursorRef: r,
3686
3686
  isInside: n
3687
3687
  };
3688
- }, Ru = 24, Cu = 8, Pu = {
3688
+ }, Ru = 24, Pu = 8, Cu = {
3689
3689
  x: 0,
3690
3690
  y: 0,
3691
3691
  top: 0,
@@ -3697,7 +3697,7 @@ var Au = "_19519k82", xu = "_19519k83", bu = "_19519k85", Su = "_19519k86", wu =
3697
3697
  toJSON: () => ({})
3698
3698
  }, pt = {
3699
3699
  boundary: [],
3700
- padding: Cu
3700
+ padding: Pu
3701
3701
  }, Bu = () => {
3702
3702
  const e = M(ee((x) => ({
3703
3703
  layers: x.layers,
@@ -3723,7 +3723,7 @@ var Au = "_19519k82", xu = "_19519k83", bu = "_19519k85", Su = "_19519k86", wu =
3723
3723
  ]), h = !a && u !== null && (d || o !== null), v = A(() => ({ getBoundingClientRect: () => {
3724
3724
  if (o !== null) return Lu(o);
3725
3725
  const x = c.current;
3726
- return x === null ? Pu : Mu(x);
3726
+ return x === null ? Cu : Mu(x);
3727
3727
  } }), [c, o]), { refs: g, floatingStyles: f, update: m } = no(Nu({
3728
3728
  isOpen: h,
3729
3729
  tooltipAnchor: o,
@@ -4066,26 +4066,26 @@ var Au = "_19519k82", xu = "_19519k83", bu = "_19519k85", Su = "_19519k86", wu =
4066
4066
  directLabelStyle: a,
4067
4067
  legendSwatchGap: t.legendSwatchGap
4068
4068
  }), b = ju(g), x = Ku(g), k = {
4069
- measureText: (w, C) => e.measureText(w, C),
4069
+ measureText: (w, P) => e.measureText(w, P),
4070
4070
  textScale: v
4071
4071
  };
4072
4072
  return {
4073
4073
  measureAxis: (w) => {
4074
4074
  if (nh(w)) return 0;
4075
- const C = u.current.measureAxis;
4076
- return C ? C(w, k) : f(w);
4075
+ const P = u.current.measureAxis;
4076
+ return P ? P(w, k) : f(w);
4077
4077
  },
4078
4078
  measureAxisLabel: (w) => {
4079
- const C = u.current.measureAxisLabel;
4080
- return C ? C(w, k) : m(w);
4079
+ const P = u.current.measureAxisLabel;
4080
+ return P ? P(w, k) : m(w);
4081
4081
  },
4082
4082
  measureLegend: (w) => {
4083
4083
  if (oh(w)) return 0;
4084
- const C = u.current.measureLegend;
4085
- return C ? C(w, k) : y(w);
4084
+ const P = u.current.measureLegend;
4085
+ return P ? P(w, k) : y(w);
4086
4086
  },
4087
- measureHeadline: (w, C, P) => (u.current.measureHeadline ?? b)(w, C, P),
4088
- measureHeadlineItemWidths: (w, C) => (u.current.measureHeadlineItemWidths ?? x)(w, C),
4087
+ measureHeadline: (w, P, C) => (u.current.measureHeadline ?? b)(w, P, C),
4088
+ measureHeadlineItemWidths: (w, P) => (u.current.measureHeadlineItemWidths ?? x)(w, P),
4089
4089
  measureTickLabel: _u({
4090
4090
  textMeasurer: e,
4091
4091
  tickLabelStyles: l,
@@ -4202,7 +4202,7 @@ var Au = "_19519k82", xu = "_19519k83", bu = "_19519k85", Su = "_19519k86", wu =
4202
4202
  if (!e.has(t)) return e;
4203
4203
  const r = new Map(e);
4204
4204
  return r.delete(t), r;
4205
- }, lm = (e, t) => e !== null && e.annotationId === t ? e : null, gh = (e, t) => e.annotationId === t.annotationId && e.translation.x === t.translation.x && e.translation.y === t.translation.y, cm = (e, t, r) => e !== null && e.annotationId === t && e.endpoint === r ? e : null, vh = (e, t) => e.annotationId === t.annotationId && e.endpoint === t.endpoint && e.anchor.x === t.anchor.x && e.anchor.y === t.anchor.y, dm = (e, t, r) => e !== null && e.annotationId === t && e.endpoint === r ? e : null, fh = (e, t) => e.annotationId === t.annotationId && e.endpoint === t.endpoint && vi(e.point.anchor, t.point.anchor), um = (e, t) => e !== null && e.annotationId === t ? e : null, ph = (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, hm = (e, t) => e !== null && e.annotationId === t ? e : null, mh = (e, t) => e.annotationId === t.annotationId && e.at.x === t.at.x && e.width === t.width && e.shift === t.shift, tt = ({ standingInteraction: e }, t) => e !== null && Re(e, t) ? e : null, yh = (e, t) => {
4205
+ }, sm = (e, t) => e !== null && e.annotationId === t ? e : null, gh = (e, t) => e.annotationId === t.annotationId && e.translation.x === t.translation.x && e.translation.y === t.translation.y, lm = (e, t, r) => e !== null && e.annotationId === t && e.endpoint === r ? e : null, vh = (e, t) => e.annotationId === t.annotationId && e.endpoint === t.endpoint && e.anchor.x === t.anchor.x && e.anchor.y === t.anchor.y, cm = (e, t, r) => e !== null && e.annotationId === t && e.endpoint === r ? e : null, fh = (e, t) => e.annotationId === t.annotationId && e.endpoint === t.endpoint && vi(e.point.anchor, t.point.anchor), dm = (e, t) => e !== null && e.annotationId === t ? e : null, ph = (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, um = (e, t) => e !== null && e.annotationId === t ? e : null, mh = (e, t) => e.annotationId === t.annotationId && e.at.x === t.at.x && e.width === t.width && e.shift === t.shift, tt = ({ standingInteraction: e }, t) => e !== null && Re(e, t) ? e : null, yh = (e, t) => {
4206
4206
  if (e === null) return !1;
4207
4207
  switch (t.kind) {
4208
4208
  case "difference-arrow-endpoint-drag":
@@ -4220,7 +4220,7 @@ var Au = "_19519k82", xu = "_19519k83", bu = "_19519k85", Su = "_19519k86", wu =
4220
4220
  case "menu":
4221
4221
  return !1;
4222
4222
  }
4223
- }, Re = (e, t) => e.kind === t, gm = ({ isMenuTrigger: e, stamped: t, observations: r }) => e ? { kind: "menu-trigger" } : t !== null && t.kind !== "grid" ? t : r !== null ? {
4223
+ }, Re = (e, t) => e.kind === t, hm = ({ isMenuTrigger: e, stamped: t, observations: r }) => e ? { kind: "menu-trigger" } : t !== null && t.kind !== "grid" ? t : r !== null ? {
4224
4224
  kind: "observations",
4225
4225
  observations: r
4226
4226
  } : t, Ah = (e, t) => {
@@ -4260,13 +4260,13 @@ var Au = "_19519k82", xu = "_19519k83", bu = "_19519k85", Su = "_19519k86", wu =
4260
4260
  ...r.caret,
4261
4261
  editor: t
4262
4262
  } })
4263
- })), Or = Y(null), bh = ua(), vm = ({ children: e }) => {
4263
+ })), Or = Y(null), bh = ua(), gm = ({ children: e }) => {
4264
4264
  const [t] = Q(() => ua());
4265
4265
  return /* @__PURE__ */ s(Or.Provider, {
4266
4266
  value: t,
4267
4267
  children: e
4268
4268
  });
4269
- }, fm = () => {
4269
+ }, vm = () => {
4270
4270
  const e = W(Or);
4271
4271
  if (e === null) throw new Error("useEditorStore must be used inside an <EditorProvider>.");
4272
4272
  return e;
@@ -4369,8 +4369,8 @@ var ha = Y(null), Sh = ({ panelRect: e, children: t }) => {
4369
4369
  ...e,
4370
4370
  start: t.endpoint === "start" ? t.point : e.start,
4371
4371
  end: t.endpoint === "end" ? t.point : e.end
4372
- }), Ch = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEoAAABgCAYAAAC65+QhAAAKo0lEQVR42u2de4wdVR3HPzN32+oSUQSsikEoosR3iko08oovEkwMpmiIr/KHIomgUYyPiBofkRjjE+MjEk3RQNIYTdUotKkoaql0Wyympbtl2XbLtrW71n3v3ntnrn+c38n98cvcOzP3tfcud5LJ5u7Ozpz5nt/7nN/3QncfAVBQn18LfBd4GJgFYvm5B/iW/N0fBfn/VX9ogF4K3A0sAhV1xubzIrBFrk+6z6oDyEvCmcBXgTkFRgkoA5E6y/J7f80s8GXg2Uoyw9UCUGhm/wPAYQNQJFJkJUmDpgEbkfusCnW0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V7b7/K5tuAdEStpWgr8MpeVbNGVoHPwG20n6lBs21DhiGVLK9agOrZrwtxq7ePGm48X5PfgeuJWdvN381CG7+pIlBbfryEXCJpxlqRtBG10oHa6NXVx/8Ba+cluUx5B18AAAAASUVORK5CYII=", Ph = ({ className: e }) => /* @__PURE__ */ s("img", {
4373
- src: Ch,
4372
+ }), Ph = "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+ANwiElJRamABmhdVPGxmPStISdefFjUbVfYrrqGO48DNymaFnVSza8QrJalZrGzTmHiz/2UESIOdBbBJ4G/ynCgh/tITcz/wwnaCpdXsEuDeDPHQmLj4YzkkppzyOQ2wIfO8JPt1ADiv1WBpj3EW8BUl5lEdO3RQVK2UUcU0ICeAH4q7zwKYluBFUcW/q7BEA+Zt6G4JX8JWpx2bZQBp7v4A8KgaUBpIkQI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XRUim/TTXSo+3v5ZPUTRlqz0q0VxQ4dMgQ5SXSRC1IwPLfVdLdX1mF4Lkr5Ybfii8rLixlLcvlgg2o2JaFCLXevpejXEnm3fLOcR/rTNUizYsU2OCxiP9+EhOUByIcqRxUYtSi595o2/7a00nqwblHiW4t25Jh4mZM5wcpjhxZkUg4qd2/tUKzA/LhyEm1fJvM3v5ynklIVE8gjYgkrdhp67EaZfjTj4XEce8eJFDtUxNFLnrcStNsFBdpNhpRYq2OkOOw8RdtCE7y+3psNSVwUp9ih+2gduU1L2Fmfh/t2jIUUNrJJkbBhxQIU5+Dy3SdSVEpx949JcNpV1NraW7wKxxhWj2ezIi+7VxJrq1o2DivhNr0OS9qUBFCkvN4XgDO6lazdphrvVJUFD5j1jmV5+QdMOFExzD3jGdKOGLcud1Gv0P/rGVyH29B6MiWcmBbARiVAHBNg9srvsqQdV3cDIXuz9ut88Tpp4cSi5I77RSWLGdKOGxUoBXq0Z8cW2C7D8X+n0XFXUtz9nJRhz1lt3xJkFxdvUMV7b7/K5tuAdEStpWgr8MpeVbNGVoHPwG20n6lBs21DhiGVLK9agOrZrwtxq7ePGm48X5PfgeuJWdvN381CG7+pIlBbfryEXCJpxlqRtBG10oHa6NXVx/8Ba+cluUx5B18AAAAASUVORK5CYII=", Ch = ({ className: e }) => /* @__PURE__ */ s("img", {
4373
+ src: Ph,
4374
4374
  alt: "",
4375
4375
  "aria-hidden": "true",
4376
4376
  className: e,
@@ -4416,7 +4416,7 @@ var Mh = "vultop2", Lh = "vultop3", Nh = "vultop4", Hh = "vultop5", Oh = "vultop
4416
4416
  "data-zone": n,
4417
4417
  children: [/* @__PURE__ */ s("span", {
4418
4418
  className: Mh,
4419
- children: /* @__PURE__ */ s(Ph, { className: Lh })
4419
+ children: /* @__PURE__ */ s(Ch, { className: Lh })
4420
4420
  }), /* @__PURE__ */ S("span", {
4421
4421
  className: Nh,
4422
4422
  children: [/* @__PURE__ */ s("span", { children: "Made with" }), /* @__PURE__ */ s("span", {
@@ -4429,7 +4429,7 @@ var Mh = "vultop2", Lh = "vultop3", Nh = "vultop4", Hh = "vultop5", Oh = "vultop
4429
4429
  Title: null,
4430
4430
  Caption: null,
4431
4431
  TextAnnotation: null
4432
- }), pm = ({ editors: e, children: t }) => /* @__PURE__ */ s(va.Provider, {
4432
+ }), fm = ({ editors: e, children: t }) => /* @__PURE__ */ s(va.Provider, {
4433
4433
  value: e,
4434
4434
  children: t
4435
4435
  }), Dr = () => W(va), Sn = "_4dlrid0", Uh = "xfz7dq0";
@@ -4608,7 +4608,7 @@ var mg = ({ segment: e, itemStyle: t }) => {
4608
4608
  if (e.kind === "trendArrow") {
4609
4609
  const o = ya(t, e.direction);
4610
4610
  return /* @__PURE__ */ s("div", {
4611
- className: Ce(pg, e.direction === "down" && "n7clvo4"),
4611
+ className: Pe(pg, e.direction === "down" && "n7clvo4"),
4612
4612
  style: {
4613
4613
  color: o,
4614
4614
  backgroundColor: e.direction === "flat" ? J(p.textPrimary, 0.1) : J(o, 0.2)
@@ -4745,29 +4745,29 @@ var mg = ({ segment: e, itemStyle: t }) => {
4745
4745
  if (r === null || !/^(0|[1-9]\d*)$/.test(r)) return null;
4746
4746
  const n = Number(r);
4747
4747
  return Number.isSafeInteger(n) ? n : null;
4748
- }, Oe = "data-edit-kind", Sa = "data-edit-id", Ct = "data-edit-axis", wa = "data-edit-tick-index", ka = "data-legend-overflow-control", mm = `[${ka}]`, Eg = "observations", Rg = `[${Oe}]`, lt = (e) => ({
4748
+ }, Oe = "data-edit-kind", Sa = "data-edit-id", Pt = "data-edit-axis", wa = "data-edit-tick-index", ka = "data-legend-overflow-control", pm = `[${ka}]`, Eg = "observations", Rg = `[${Oe}]`, lt = (e) => ({
4749
4749
  [Oe]: e.kind,
4750
4750
  [Sa]: e.id
4751
4751
  }), Fr = (e, t) => ({
4752
4752
  [Oe]: "axis",
4753
- [Ct]: e,
4753
+ [Pt]: e,
4754
4754
  ...t === void 0 ? {} : { [wa]: String(t) }
4755
4755
  }), Wr = (e) => ({
4756
4756
  [Oe]: "legend",
4757
4757
  ...ba(e)
4758
4758
  }), Ea = (e) => ({
4759
4759
  [Oe]: "grid",
4760
- [Ct]: e
4761
- }), ym = (e, t) => {
4760
+ [Pt]: e
4761
+ }), mm = (e, t) => {
4762
4762
  for (const r of e) {
4763
4763
  const n = r.closest(Rg);
4764
4764
  if (n === null || !t.contains(n)) continue;
4765
- const o = Pg(n);
4765
+ const o = Cg(n);
4766
4766
  if (o !== null) return o;
4767
4767
  if (n !== r) return null;
4768
4768
  }
4769
4769
  return null;
4770
- }, Cg = () => ({ [Oe]: Eg }), Pg = (e) => {
4770
+ }, Pg = () => ({ [Oe]: Eg }), Cg = (e) => {
4771
4771
  const t = e.getAttribute(Oe);
4772
4772
  switch (t) {
4773
4773
  case "annotation": {
@@ -4781,7 +4781,7 @@ var mg = ({ segment: e, itemStyle: t }) => {
4781
4781
  };
4782
4782
  }
4783
4783
  case "axis": {
4784
- const r = e.getAttribute(Ct);
4784
+ const r = e.getAttribute(Pt);
4785
4785
  if (!_r(r)) return null;
4786
4786
  if (!e.hasAttribute("data-edit-tick-index")) return {
4787
4787
  kind: t,
@@ -4810,7 +4810,7 @@ var mg = ({ segment: e, itemStyle: t }) => {
4810
4810
  };
4811
4811
  }
4812
4812
  case "grid": {
4813
- const r = e.getAttribute(Ct);
4813
+ const r = e.getAttribute(Pt);
4814
4814
  return _r(r) ? {
4815
4815
  kind: t,
4816
4816
  target: {
@@ -4847,7 +4847,7 @@ var Mg = 8, Lg = 16, Ng = 2, Hg = ({ indexedLegends: e, containerRect: t }) => {
4847
4847
  dashArray: u
4848
4848
  }, h.payload.key))
4849
4849
  }), o.map((h) => /* @__PURE__ */ s("span", {
4850
- className: Ce(Tg, i && "_1oj6yix3"),
4850
+ className: Pe(Tg, i && "_1oj6yix3"),
4851
4851
  style: {
4852
4852
  ...l,
4853
4853
  left: c,
@@ -4879,7 +4879,7 @@ var Mg = 8, Lg = 16, Ng = 2, Hg = ({ indexedLegends: e, containerRect: t }) => {
4879
4879
  return n.length === 0 || t.height <= 0 ? {
4880
4880
  placements: [],
4881
4881
  hasOverlap: !1
4882
- } : Ci({
4882
+ } : Pi({
4883
4883
  items: n,
4884
4884
  containerHeight: t.height,
4885
4885
  labelHeight: r
@@ -4900,16 +4900,16 @@ var Mg = 8, Lg = 16, Ng = 2, Hg = ({ indexedLegends: e, containerRect: t }) => {
4900
4900
  }, Fg = (e) => ({
4901
4901
  ...Me(e),
4902
4902
  lineHeight: e.lineHeight
4903
- }), Wg = "_6a636s0", Ca = () => {
4903
+ }), Wg = "_6a636s0", Pa = () => {
4904
4904
  const e = N();
4905
4905
  return A(() => ws(e), [e]);
4906
- }, Pa = (e) => ({
4906
+ }, Ca = (e) => ({
4907
4907
  background: e.background,
4908
4908
  borderRadius: e.borderRadius,
4909
4909
  ...Ma(e.borderWidth, e.borderColor)
4910
4910
  }), Ba = (e) => ({
4911
4911
  ...Ta(e),
4912
- ...Pa(e),
4912
+ ...Ca(e),
4913
4913
  paddingInline: e.paddingInline,
4914
4914
  paddingBlock: e.paddingBlock
4915
4915
  }), Ia = (e) => e.background !== void 0 || e.borderWidth > 0, Gg = (e, t) => ({
@@ -4998,7 +4998,7 @@ var Xg = "_1dw9dgx0", Xt = "\0", qg = (e, t) => {
4998
4998
  }
4999
4999
  }), /* @__PURE__ */ s("span", { children: e.formattedLabel })] });
5000
5000
  }, wn = { [ka]: "" }, _g = ({ hiddenPills: e, placement: t }) => {
5001
- const r = Xo(), [n, o] = Q(!1), a = Wt(), i = Ca(), l = Ee(), c = Ba(a.item), d = ev(e.length, a.item), u = d === null ? void 0 : Pa(a.item), { refs: h, floatingStyles: v } = no({
5001
+ const r = Xo(), [n, o] = Q(!1), a = Wt(), i = Pa(), l = Ee(), c = Ba(a.item), d = ev(e.length, a.item), u = d === null ? void 0 : Ca(a.item), { refs: h, floatingStyles: v } = no({
5002
5002
  open: n,
5003
5003
  placement: t,
5004
5004
  middleware: [
@@ -5028,10 +5028,10 @@ var Xg = "_1dw9dgx0", Xt = "\0", qg = (e, t) => {
5028
5028
  const g = t === "left" || t === "right", f = d === null ? [] : Array.from({ length: d }, (m, y) => d - y);
5029
5029
  return /* @__PURE__ */ S(I, { children: [/* @__PURE__ */ S("div", {
5030
5030
  ref: h.setReference,
5031
- className: Ce(Vg, d !== null && g && zg[d], d !== null && !g && Ug[d]),
5031
+ className: Pe(Vg, d !== null && g && zg[d], d !== null && !g && Ug[d]),
5032
5032
  ...wn,
5033
5033
  children: [d !== null && f.map((m) => /* @__PURE__ */ s("span", {
5034
- className: Ce("_1kjk02r5", g ? Kg[d] : Qg[d]),
5034
+ className: Pe("_1kjk02r5", g ? Kg[d] : Qg[d]),
5035
5035
  style: {
5036
5036
  ...u,
5037
5037
  ...tv(m, g)
@@ -5063,7 +5063,7 @@ var Xg = "_1dw9dgx0", Xt = "\0", qg = (e, t) => {
5063
5063
  children: /* @__PURE__ */ s("ul", {
5064
5064
  className: "_1kjk02rd",
5065
5065
  children: e.map((m) => /* @__PURE__ */ s("li", {
5066
- className: Ce("_1kjk02re", l && "_1kjk02rf"),
5066
+ className: Pe("_1kjk02re", l && "_1kjk02rf"),
5067
5067
  ...l ? Wr(m.address) : void 0,
5068
5068
  children: /* @__PURE__ */ s(La, { pill: m })
5069
5069
  }, m.key))
@@ -5085,7 +5085,7 @@ var Xg = "_1dw9dgx0", Xt = "\0", qg = (e, t) => {
5085
5085
  left: "_1cecisi7"
5086
5086
  }, sv = "_1cecisi8";
5087
5087
  var lv = ({ edge: e, indexedLegends: t, containerWidth: r, containerHeight: n }) => {
5088
- const o = we(), a = Ne(), i = Ca(), l = Wt(), c = ye(), d = M((w) => w.coordSystem.type), u = Ee(), h = A(() => qg(t, (w) => c(w, d)?.swatchShape ?? "square"), [
5088
+ const o = we(), a = Ne(), i = Pa(), l = Wt(), c = ye(), d = M((w) => w.coordSystem.type), u = Ee(), h = A(() => qg(t, (w) => c(w, d)?.swatchShape ?? "square"), [
5089
5089
  t,
5090
5090
  c,
5091
5091
  d
@@ -5098,20 +5098,20 @@ var lv = ({ edge: e, indexedLegends: t, containerWidth: r, containerHeight: n })
5098
5098
  visibleCount: h.length,
5099
5099
  hasOverflow: !1
5100
5100
  };
5101
- const w = Z(l.item, a.fonts.familyDefault), C = Be(l.item), P = 2 * (l.item.paddingInline + l.item.borderWidth), H = 2 * (l.item.paddingBlock + l.item.borderWidth), E = (U) => v ? cv(U, C, l.swatch.size, H) : kn({
5101
+ const w = Z(l.item, a.fonts.familyDefault), P = Be(l.item), C = 2 * (l.item.paddingInline + l.item.borderWidth), H = 2 * (l.item.paddingBlock + l.item.borderWidth), E = (U) => v ? cv(U, P, l.swatch.size, H) : kn({
5102
5102
  label: U.formattedLabel,
5103
5103
  swatchInlineSize: dv(U, l.swatch.size),
5104
5104
  textMeasurer: o,
5105
5105
  font: w,
5106
5106
  swatchGap: a.legendSwatchGap,
5107
- horizontalChrome: P
5108
- }), B = h.map(E), O = (v ? C + H : kn({
5107
+ horizontalChrome: C
5108
+ }), B = h.map(E), O = (v ? P + H : kn({
5109
5109
  label: `+${h.length}`,
5110
5110
  swatchInlineSize: 0,
5111
5111
  textMeasurer: o,
5112
5112
  font: w,
5113
5113
  swatchGap: a.legendSwatchGap,
5114
- horizontalChrome: P
5114
+ horizontalChrome: C
5115
5115
  })) + (Ia(l.item) ? 8 : 0);
5116
5116
  return hv({
5117
5117
  pillSizes: B,
@@ -5131,14 +5131,14 @@ var lv = ({ edge: e, indexedLegends: t, containerWidth: r, containerHeight: n })
5131
5131
  if (h.length === 0) return null;
5132
5132
  const y = h.slice(0, m.visibleCount), b = h.slice(m.visibleCount), x = m.hasOverflow && b.length > 0, k = Ba(l.item);
5133
5133
  return /* @__PURE__ */ S("div", {
5134
- className: Ce(av[f], rv, {
5134
+ className: Pe(av[f], rv, {
5135
5135
  [ov]: v,
5136
5136
  [nv]: !v,
5137
5137
  [iv[e === "left" ? "left" : "right"]]: v
5138
5138
  }),
5139
5139
  style: { gap: i.gap },
5140
5140
  children: [y.map((w) => /* @__PURE__ */ s("div", {
5141
- className: Ce(sv, u && "_1cecisi9"),
5141
+ className: Pe(sv, u && "_1cecisi9"),
5142
5142
  style: k,
5143
5143
  ...u ? Wr(w.address) : void 0,
5144
5144
  children: /* @__PURE__ */ s(La, { pill: w })
@@ -5293,7 +5293,7 @@ var lv = ({ edge: e, indexedLegends: t, containerWidth: r, containerHeight: n })
5293
5293
  }, xv = ({ coordSystem: e, primary: t, panelRect: r, guide: n }) => {
5294
5294
  const o = ji(e, t);
5295
5295
  if (o === null) return null;
5296
- const a = Pe(o);
5296
+ const a = Ce(o);
5297
5297
  return a ? /* @__PURE__ */ s(Gr, {
5298
5298
  panelRect: r,
5299
5299
  children: /* @__PURE__ */ s("svg", {
@@ -5320,7 +5320,7 @@ var lv = ({ edge: e, indexedLegends: t, containerWidth: r, containerHeight: n })
5320
5320
  },
5321
5321
  "data-testid": "hover-guide",
5322
5322
  children: t
5323
- }), Am = (e, t, r) => {
5323
+ }), ym = (e, t, r) => {
5324
5324
  for (const n of Object.values(Ha)) {
5325
5325
  const o = n(e, t, r);
5326
5326
  if (o !== null) return o;
@@ -5368,12 +5368,12 @@ var lv = ({ edge: e, indexedLegends: t, containerWidth: r, containerHeight: n })
5368
5368
  }, Ev = (e, t) => {
5369
5369
  const r = Di(e, t);
5370
5370
  return r !== null && bv(r.kind) && $i(r);
5371
- }, Rv = 200, Cv = ({ engine: e, store: t, overlayRef: r }) => {
5371
+ }, Rv = 200, Pv = ({ engine: e, store: t, overlayRef: r }) => {
5372
5372
  const { tolerance: n } = ke[ct()], o = ze(t, (a) => a.isQueryOwnedByEditor);
5373
5373
  F(() => {
5374
5374
  const a = r.current;
5375
5375
  if (!a) return;
5376
- const i = Pv(a, e), l = o ? void 0 : Iv(a, e, t, n ?? void 0);
5376
+ const i = Cv(a, e), l = o ? void 0 : Iv(a, e, t, n ?? void 0);
5377
5377
  return () => {
5378
5378
  l?.(), i();
5379
5379
  };
@@ -5384,7 +5384,7 @@ var lv = ({ edge: e, indexedLegends: t, containerWidth: r, containerHeight: n })
5384
5384
  n,
5385
5385
  o
5386
5386
  ]);
5387
- }, Pv = (e, t) => {
5387
+ }, Cv = (e, t) => {
5388
5388
  const r = () => {
5389
5389
  const i = e.getBoundingClientRect();
5390
5390
  i.width === 0 || i.height === 0 || t.setViewport({
@@ -5455,7 +5455,7 @@ var lv = ({ edge: e, indexedLegends: t, containerWidth: r, containerHeight: n })
5455
5455
  };
5456
5456
  }, Tv = ({ panelRect: e }) => {
5457
5457
  const { engine: t, store: r, overlayRef: n } = He(), o = be(da), a = be(xh), i = be((c) => c.caret !== null);
5458
- Cv({
5458
+ Pv({
5459
5459
  engine: t,
5460
5460
  store: r,
5461
5461
  overlayRef: n
@@ -5773,7 +5773,7 @@ var lv = ({ edge: e, indexedLegends: t, containerWidth: r, containerHeight: n })
5773
5773
  stroke: qi(t) ?? "none",
5774
5774
  strokeWidth: t.borderWidth
5775
5775
  });
5776
- }, Cn = ({ panelRect: e, zOrder: t }) => {
5776
+ }, Pn = ({ panelRect: e, zOrder: t }) => {
5777
5777
  const r = dt(e).shapes, n = _v(), o = Gt(), a = r.filter((i) => i.zOrder === t && i.id !== o);
5778
5778
  return a.length === 0 ? null : /* @__PURE__ */ s("svg", {
5779
5779
  x: e.x,
@@ -5796,8 +5796,8 @@ var lv = ({ edge: e, indexedLegends: t, containerWidth: r, containerHeight: n })
5796
5796
  });
5797
5797
  }, tf = () => {
5798
5798
  const e = N();
5799
- return A(() => (t) => Ps(e, t), [e]);
5800
- }, rf = "_1aj6s5s0", xm = "_1aj6s5s1", nf = 0.1, bm = ({ annotation: e, panel: t, style: r, blockRef: n }) => /* @__PURE__ */ s(Da, {
5799
+ return A(() => (t) => Cs(e, t), [e]);
5800
+ }, rf = "_1aj6s5s0", Am = "_1aj6s5s1", nf = 0.1, xm = ({ annotation: e, panel: t, style: r, blockRef: n }) => /* @__PURE__ */ s(Da, {
5801
5801
  annotation: e,
5802
5802
  panel: t,
5803
5803
  style: r,
@@ -5887,7 +5887,7 @@ var lv = ({ edge: e, indexedLegends: t, containerWidth: r, containerHeight: n })
5887
5887
  const e = N();
5888
5888
  return A(() => (t, r) => cs(e, t, r), [e]);
5889
5889
  }, hf = "ph8bdc0";
5890
- var gf = "ph8bdc2", Pn = {
5890
+ var gf = "ph8bdc2", Cn = {
5891
5891
  hittable: "ph8bdc4 ph8bdc3",
5892
5892
  inert: "ph8bdc5 ph8bdc3"
5893
5893
  }, vf = ({ cx: e, cy: t, color: r, style: n }) => {
@@ -5992,7 +5992,7 @@ var pf = (e, t, r, n) => t !== "comment" ? r : eo(r, 140, (o) => e.measureText(o
5992
5992
  height: g.miniRect.height,
5993
5993
  overflow: "visible",
5994
5994
  children: /* @__PURE__ */ S("div", {
5995
- className: x ? Pn.hittable : Pn.inert,
5995
+ className: x ? Cn.hittable : Cn.inert,
5996
5996
  style: xf(m.label),
5997
5997
  children: [g.kind === "pinned-number" && /* @__PURE__ */ s("span", {
5998
5998
  className: "ph8bdc1",
@@ -6077,7 +6077,7 @@ var pf = (e, t, r, n) => t !== "comment" ? r : eo(r, 140, (o) => e.measureText(o
6077
6077
  }, Rf = ({ sticker: e, sizePx: t, x: r, y: n }) => {
6078
6078
  const o = wf[e.sticker];
6079
6079
  if (!o) return null;
6080
- const { width: a, height: i } = Cf(o.aspectRatio, t);
6080
+ const { width: a, height: i } = Pf(o.aspectRatio, t);
6081
6081
  return /* @__PURE__ */ s("image", {
6082
6082
  href: o.src,
6083
6083
  x: r,
@@ -6086,13 +6086,13 @@ var pf = (e, t, r, n) => t !== "comment" ? r : eo(r, 140, (o) => e.measureText(o
6086
6086
  height: i,
6087
6087
  transform: `translate(${-a / 2}, ${-i / 2})`
6088
6088
  });
6089
- }, Cf = (e, t) => e >= 1 ? {
6089
+ }, Pf = (e, t) => e >= 1 ? {
6090
6090
  width: t,
6091
6091
  height: t / e
6092
6092
  } : {
6093
6093
  width: t * e,
6094
6094
  height: t
6095
- }, Pf = 0.25, Wa = ({ children: e, ...t }) => {
6095
+ }, Cf = 0.25, Wa = ({ children: e, ...t }) => {
6096
6096
  const r = Du();
6097
6097
  return r <= 0 ? /* @__PURE__ */ s("g", {
6098
6098
  ...t,
@@ -6102,7 +6102,7 @@ var pf = (e, t, r, n) => t !== "comment" ? r : eo(r, 140, (o) => e.measureText(o
6102
6102
  initial: { opacity: 0 },
6103
6103
  animate: { opacity: 1 },
6104
6104
  transition: {
6105
- duration: Pf,
6105
+ duration: Cf,
6106
6106
  delay: r
6107
6107
  },
6108
6108
  children: e
@@ -6593,7 +6593,7 @@ var If = "_1agclyl2", Ga = ({ x: e, y: t, width: r, height: n, text: o, isRotate
6593
6593
  }, tp = (e, t) => t <= 0 ? e ? "left" : "bottom" : t >= 1 ? e ? "right" : "top" : null, rp = ({ sizes: e, panelFrameRect: t }) => {
6594
6594
  const r = M((i) => i.coordSystem.type === "polar"), n = N(), o = A(() => qn(n), [n]);
6595
6595
  if (r) return null;
6596
- const a = Pi(o, {
6596
+ const a = Ci(o, {
6597
6597
  x: e.left / 2,
6598
6598
  y: e.top / 2,
6599
6599
  width: t.width - (e.left + e.right) / 2,
@@ -6953,8 +6953,8 @@ var up = 4, hp = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
6953
6953
  height: t.height,
6954
6954
  className: Ap,
6955
6955
  "data-testid": "geom-layers",
6956
- ...Cg(),
6957
- children: n.map((a) => /* @__PURE__ */ S(Mt, { children: [/* @__PURE__ */ s(Ep, {
6956
+ ...Pg(),
6957
+ children: n.map((a) => /* @__PURE__ */ S(Mt, { children: [/* @__PURE__ */ s(kp, {
6958
6958
  layer: a,
6959
6959
  coordSystem: o,
6960
6960
  shouldAnimateTransitions: e,
@@ -6966,13 +6966,10 @@ var up = 4, hp = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
6966
6966
  panelRect: t
6967
6967
  })] }, `${a.id}-${Sp(o)}`))
6968
6968
  });
6969
- }, Sp = (e) => e.type === "cartesian" ? `cartesian-${e.mainAxis}` : e.type, wp = (e) => {
6970
- if (e.geom !== "rule")
6971
- return xp;
6972
- }, kp = (e) => xr({
6969
+ }, Sp = (e) => e.type === "cartesian" ? `cartesian-${e.mainAxis}` : e.type, wp = (e) => xr({
6973
6970
  ...e.opacity === void 0 ? {} : { [mp]: String(e.opacity) },
6974
6971
  ...e.saturation === void 0 ? {} : { [yp]: `saturate(${e.saturation})` }
6975
- }), Ep = ({ layer: e, coordSystem: t, shouldAnimateTransitions: r, panelRect: n, formattingLocale: o }) => {
6972
+ }), kp = ({ layer: e, coordSystem: t, shouldAnimateTransitions: r, panelRect: n, formattingLocale: o }) => {
6976
6973
  const a = ye(), i = A(() => a(e.geom, t.type), [
6977
6974
  a,
6978
6975
  e,
@@ -6985,10 +6982,10 @@ var up = 4, hp = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
6985
6982
  panelRect: n,
6986
6983
  colorScheme: d,
6987
6984
  styleReaders: D(e)
6988
- }, h = i ? Dt(i.render) : null, v = e.spatialKind === "render-hit-test", g = wp(e);
6985
+ }, h = i ? Dt(i.render) : null, v = e.spatialKind === "render-hit-test", g = c.opacity !== void 0 || c.saturation !== void 0;
6989
6986
  return /* @__PURE__ */ S("g", {
6990
- className: g,
6991
- style: g === void 0 ? void 0 : kp(c),
6987
+ className: g ? xp : void 0,
6988
+ style: g ? wp(c) : void 0,
6992
6989
  children: [
6993
6990
  /* @__PURE__ */ s(cp, {
6994
6991
  layer: e,
@@ -7019,13 +7016,13 @@ var up = 4, hp = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
7019
7016
  })
7020
7017
  ]
7021
7018
  });
7022
- }, Rp = "_17uhij30", Cp = ({ 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: v }) => {
7019
+ }, Ep = "_17uhij30", Rp = ({ 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: v }) => {
7023
7020
  const g = L(null);
7024
7021
  Lv(g);
7025
7022
  const f = de("Grid", ep), m = de("AxisTicks", $f), y = de("AxisLabel", _f), b = A(() => lr(n, t), [n, t]), x = A(() => lr(o, t), [o, t]), k = A(() => Ln(a, t), [a, t]), w = A(() => Ln(i, t), [i, t]);
7026
7023
  return /* @__PURE__ */ S("svg", {
7027
7024
  ref: g,
7028
- className: Rp,
7025
+ className: Ep,
7029
7026
  width: t.width,
7030
7027
  height: t.height,
7031
7028
  style: { transform: `translate(${t.x}px, ${t.y}px)` },
@@ -7050,7 +7047,7 @@ var up = 4, hp = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
7050
7047
  panelRect: x
7051
7048
  }),
7052
7049
  /* @__PURE__ */ s(mv, { panelRect: x }),
7053
- v && /* @__PURE__ */ S(I, { children: [/* @__PURE__ */ s(Cn, {
7050
+ v && /* @__PURE__ */ S(I, { children: [/* @__PURE__ */ s(Pn, {
7054
7051
  panelRect: x,
7055
7052
  zOrder: "background"
7056
7053
  }), /* @__PURE__ */ s(Rn, {
@@ -7081,7 +7078,7 @@ var up = 4, hp = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
7081
7078
  panelRect: x,
7082
7079
  isEditable: h
7083
7080
  }),
7084
- /* @__PURE__ */ s(Cn, {
7081
+ /* @__PURE__ */ s(Pn, {
7085
7082
  panelRect: x,
7086
7083
  zOrder: "foreground"
7087
7084
  }),
@@ -7118,7 +7115,7 @@ var up = 4, hp = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
7118
7115
  }, Nn = (e, t) => {
7119
7116
  if (e <= 0 || Number.isNaN(e) || !Number.isFinite(e)) throw new di({ message: `Expected ${t} to be a positive, finite number, but got ${e}.` });
7120
7117
  return e;
7121
- }, Bp = ({ sizing: e, onResize: t, children: r }) => {
7118
+ }, Cp = ({ sizing: e, onResize: t, children: r }) => {
7122
7119
  const n = Yo({ onResize: t }), o = L(!1);
7123
7120
  if (F(() => {
7124
7121
  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.`)));
@@ -7128,7 +7125,7 @@ var up = 4, hp = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
7128
7125
  n.width,
7129
7126
  n.height
7130
7127
  ]), e.mode === "keepAspectRatio") {
7131
- const { intrinsicSize: i, canRender: l, outerStyles: c, innerStyles: d } = Ip(e, n.width, !n.isDefault);
7128
+ const { intrinsicSize: i, canRender: l, outerStyles: c, innerStyles: d } = Bp(e, n.width, !n.isDefault);
7132
7129
  return /* @__PURE__ */ s("div", {
7133
7130
  ref: n.setElement,
7134
7131
  style: c,
@@ -7164,7 +7161,7 @@ var up = 4, hp = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
7164
7161
  height: n.height
7165
7162
  })
7166
7163
  });
7167
- }, Ip = (e, t, r) => {
7164
+ }, Bp = (e, t, r) => {
7168
7165
  const n = Pp(e), o = t > 0 && n.width > 0 ? t / n.width : 1;
7169
7166
  return {
7170
7167
  intrinsicSize: n,
@@ -7180,7 +7177,7 @@ var up = 4, hp = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
7180
7177
  height: n.height
7181
7178
  }
7182
7179
  };
7183
- }, Tp = { mode: "responsive" }, Zt = {
7180
+ }, Ip = { mode: "responsive" }, Zt = {
7184
7181
  headerSize: {
7185
7182
  width: 0,
7186
7183
  height: 0
@@ -7189,7 +7186,7 @@ var up = 4, hp = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
7189
7186
  width: 0,
7190
7187
  height: 0
7191
7188
  }
7192
- }, Mp = () => {
7189
+ }, Tp = () => {
7193
7190
  const [e, t] = Q(null), [r, n] = Q(null), [o, a] = Q(Zt);
7194
7191
  return F(() => {
7195
7192
  const i = () => {
@@ -7200,7 +7197,7 @@ var up = 4, hp = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
7200
7197
  width: r.offsetWidth,
7201
7198
  height: r.offsetHeight
7202
7199
  } : Zt.footerSize;
7203
- a((u) => Lp(u, {
7200
+ a((u) => Mp(u, {
7204
7201
  headerSize: c,
7205
7202
  footerSize: d
7206
7203
  }) ? {
@@ -7216,7 +7213,7 @@ var up = 4, hp = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
7216
7213
  footerRef: n,
7217
7214
  measurements: o
7218
7215
  };
7219
- }, Lp = (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, Np = () => null, Hp = ({ graphChrome: e, isEditable: t, mode: r, style: n, contentRef: o, children: a }) => {
7216
+ }, Mp = (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, Lp = () => null, Np = ({ graphChrome: e, isEditable: t, mode: r, style: n, contentRef: o, children: a }) => {
7220
7217
  const { themeClass: i, inlineVarsStyle: l } = Mr(), c = e.borderColor === void 0 ? 0 : e.borderWidth, d = c > 0 ? e.borderColor : void 0, u = Math.max(0, e.borderRadius), h = u === 0 ? 0 : u + c, v = A(() => ({
7221
7218
  ...n,
7222
7219
  borderRadius: `${h}px`,
@@ -7248,21 +7245,21 @@ var up = 4, hp = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
7248
7245
  children: a
7249
7246
  })
7250
7247
  });
7251
- }, Sm = (e) => /* @__PURE__ */ s(Jd, {
7248
+ }, bm = (e) => /* @__PURE__ */ s(Jd, {
7252
7249
  locale: ah(),
7253
- children: /* @__PURE__ */ s(Op, { ...e })
7254
- }), Op = ({ slots: e, sizing: t = Tp, onResize: r, ...n }) => /* @__PURE__ */ s(bd, { children: /* @__PURE__ */ s(cc, { children: /* @__PURE__ */ s(kc, {
7250
+ children: /* @__PURE__ */ s(Hp, { ...e })
7251
+ }), Hp = ({ slots: e, sizing: t = Ip, onResize: r, ...n }) => /* @__PURE__ */ s(bd, { children: /* @__PURE__ */ s(cc, { children: /* @__PURE__ */ s(kc, {
7255
7252
  slots: e,
7256
- children: /* @__PURE__ */ s(Bp, {
7253
+ children: /* @__PURE__ */ s(Cp, {
7257
7254
  sizing: t,
7258
7255
  onResize: r,
7259
- children: ({ width: o, height: a }) => /* @__PURE__ */ s(Dp, {
7256
+ children: ({ width: o, height: a }) => /* @__PURE__ */ s(Op, {
7260
7257
  width: o,
7261
7258
  height: a,
7262
7259
  ...n
7263
7260
  })
7264
7261
  })
7265
- }) }) }), Dp = ({ width: e, height: t, animation: r, showTooltips: n = !0, mode: o = me.readonly }) => {
7262
+ }) }) }), Op = ({ width: e, height: t, animation: r, showTooltips: n = !0, mode: o = me.readonly }) => {
7266
7263
  const a = Xo(), i = Br(o), { axes: l, legends: c, layers: d, numberFormat: u, parsingLocale: h, annotations: v, coordSystem: g, headline: f, headlineConfig: m, content: y, overflowStrategy: b } = M(ee((re) => ({
7267
7264
  axes: re.guides.axes,
7268
7265
  legends: re.guides.legends.drawn,
@@ -7275,7 +7272,7 @@ var up = 4, hp = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
7275
7272
  headlineConfig: re.config.headline,
7276
7273
  content: re.config.content,
7277
7274
  overflowStrategy: re.config.panel.overflow
7278
- }))), x = Ns(), { intro: k, transitions: w } = A(() => Od(r, x ?? !1), [r, x]), { headerRef: C, footerRef: P, measurements: H } = Mp(), { formattingLocale: E, colorScheme: B } = X(), O = ke[i], U = O.editorSurface, [Ur, za] = Q(null), Qa = de("Header", eg), Ka = de("Footer", jh), Ya = de("Legend", vv), ja = de("Headline", wg), Xa = de("EditorSurface", Np), zr = A(() => Gi({
7275
+ }))), x = Ns(), { intro: k, transitions: w } = A(() => Od(r, x ?? !1), [r, x]), { headerRef: P, footerRef: C, measurements: H } = Tp(), { formattingLocale: E, colorScheme: B } = X(), O = ke[i], U = O.editorSurface, [Ur, za] = Q(null), Qa = de("Header", eg), Ka = de("Footer", jh), Ya = de("Legend", vv), ja = de("Headline", wg), Xa = de("EditorSurface", Lp), zr = A(() => Gi({
7279
7276
  legends: c,
7280
7277
  numberFormat: u,
7281
7278
  parsingLocale: h,
@@ -7299,7 +7296,7 @@ var up = 4, hp = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
7299
7296
  h,
7300
7297
  E,
7301
7298
  a
7302
- ]), qa = we(), G = N(), ut = A(() => Yn(G), [G]), Qr = A(() => qn(G), [G]), Kr = fa(), Vt = G.graph.get("fontFamily"), Ja = ms(G), Za = G.graph.get("textScale"), $a = A(() => ys(G), [G]), _a = A(() => Cs(G), [G]), ei = A(() => ds(G), [G]), ti = A(() => Rs(G), [G]), Yr = A(() => Co(B, {}, Vt), [B, Vt]), Ut = ut.borderColor === void 0 ? 0 : ut.borderWidth, Ye = A(() => ({
7299
+ ]), qa = we(), G = N(), ut = A(() => Yn(G), [G]), Qr = A(() => qn(G), [G]), Kr = fa(), Vt = G.graph.get("fontFamily"), Ja = ms(G), Za = G.graph.get("textScale"), $a = A(() => ys(G), [G]), _a = A(() => Ps(G), [G]), ei = A(() => ds(G), [G]), ti = A(() => Rs(G), [G]), Yr = A(() => Po(B, {}, Vt), [B, Vt]), Ut = ut.borderColor === void 0 ? 0 : ut.borderWidth, Ye = A(() => ({
7303
7300
  width: Math.max(0, e - 2 * Ut),
7304
7301
  height: Math.max(0, t - 2 * Ut)
7305
7302
  }), [
@@ -7368,7 +7365,7 @@ var up = 4, hp = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
7368
7365
  metrics: Yr,
7369
7366
  children: /* @__PURE__ */ s(ih, { children: /* @__PURE__ */ s(Sh, {
7370
7367
  panelRect: te.panel,
7371
- children: /* @__PURE__ */ s(Hp, {
7368
+ children: /* @__PURE__ */ s(Np, {
7372
7369
  graphChrome: ut,
7373
7370
  isEditable: U,
7374
7371
  mode: i,
@@ -7381,7 +7378,7 @@ var up = 4, hp = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
7381
7378
  intro: k,
7382
7379
  children: [
7383
7380
  /* @__PURE__ */ s(Qa, {
7384
- ref: C,
7381
+ ref: P,
7385
7382
  headerRect: te.header,
7386
7383
  mode: i,
7387
7384
  title: y.title,
@@ -7392,7 +7389,7 @@ var up = 4, hp = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
7392
7389
  subtitleStyle: _a,
7393
7390
  brandMark: ni
7394
7391
  }),
7395
- /* @__PURE__ */ s(Cp, {
7392
+ /* @__PURE__ */ s(Rp, {
7396
7393
  formattedAxes: qr,
7397
7394
  plotRect: te.plot,
7398
7395
  panelBorder: Xr,
@@ -7408,7 +7405,7 @@ var up = 4, hp = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
7408
7405
  showAnnotations: O.annotations
7409
7406
  }),
7410
7407
  /* @__PURE__ */ s(Ka, {
7411
- ref: P,
7408
+ ref: C,
7412
7409
  footerRect: te.footer,
7413
7410
  mode: i,
7414
7411
  caption: y.caption,
@@ -7444,7 +7441,7 @@ var up = 4, hp = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
7444
7441
  })
7445
7442
  })
7446
7443
  });
7447
- }, wm = (e) => {
7444
+ }, Sm = (e) => {
7448
7445
  const t = W(oo);
7449
7446
  return A(() => e || (t ? {
7450
7447
  commands: t.commands,
@@ -7456,31 +7453,31 @@ var up = 4, hp = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
7456
7453
  setSelection: (r) => t.selectionStore.getState().setSelection(r),
7457
7454
  subscribeSelection: t.selectionStore.subscribe
7458
7455
  } : null), [e, t]);
7459
- }, km = (e) => Ls(e.subscribe, e.getScene, e.getScene), Em = () => {
7456
+ }, wm = (e) => Ls(e.subscribe, e.getScene, e.getScene), km = () => {
7460
7457
  const { commands: e } = X();
7461
7458
  return e;
7462
- }, Rm = (e) => {
7459
+ }, Em = (e) => {
7463
7460
  if (e.altKey || !e.metaKey && !e.ctrlKey) return null;
7464
7461
  const t = e.key.toLowerCase();
7465
7462
  return t === "z" ? e.shiftKey ? "redo" : "undo" : t === "y" && e.ctrlKey && !e.shiftKey ? "redo" : null;
7466
7463
  };
7467
7464
  export {
7468
- dm as $,
7469
- tm as $t,
7465
+ cm as $,
7466
+ em as $t,
7470
7467
  Oe as A,
7471
7468
  md as At,
7472
7469
  jh as B,
7473
7470
  we as Bt,
7474
7471
  Sv as C,
7475
- Pd as Ct,
7472
+ Cd as Ct,
7476
7473
  Ee as D,
7477
7474
  bd as Dt,
7478
7475
  fv as E,
7479
7476
  Sd as Et,
7480
7477
  Wr as F,
7481
7478
  xe as Ft,
7482
- vm as G,
7483
- nm as Gt,
7479
+ gm as G,
7480
+ rm as Gt,
7484
7481
  ga as H,
7485
7482
  N as Ht,
7486
7483
  kg as I,
@@ -7488,86 +7485,86 @@ export {
7488
7485
  da as J,
7489
7486
  Ht as Jt,
7490
7487
  be as K,
7491
- om as Kt,
7488
+ nm as Kt,
7492
7489
  hg as L,
7493
- am as Lt,
7494
- ym as M,
7490
+ om as Lt,
7491
+ mm as M,
7495
7492
  pd as Mt,
7496
7493
  Fr as N,
7497
7494
  fd as Nt,
7498
7495
  ct as O,
7499
7496
  He as Ot,
7500
7497
  Ea as P,
7501
- im as Pt,
7502
- um as Q,
7498
+ am as Pt,
7499
+ dm as Q,
7503
7500
  he as Qt,
7504
7501
  ma as R,
7505
7502
  ye as Rt,
7506
7503
  wv as S,
7507
7504
  Id as St,
7508
- Am as T,
7505
+ ym as T,
7509
7506
  Ko as Tt,
7510
7507
  Vh as U,
7511
7508
  Ze as Ut,
7512
- pm as V,
7509
+ fm as V,
7513
7510
  ac as Vt,
7514
7511
  wh as W,
7515
7512
  zl as Wt,
7516
7513
  tt as X,
7517
7514
  on as Xt,
7518
- gm as Y,
7515
+ hm as Y,
7519
7516
  Ae as Yt,
7520
- hm as Z,
7517
+ um as Z,
7521
7518
  nr as Zt,
7522
7519
  zv as _,
7523
7520
  Xo as _t,
7524
- Sm as a,
7521
+ bm as a,
7525
7522
  X as an,
7526
7523
  ta as at,
7527
7524
  Nv as b,
7528
7525
  ke as bt,
7529
7526
  wf as c,
7530
7527
  lu as ct,
7531
- xm as d,
7528
+ Am as d,
7532
7529
  su as dt,
7533
- em as en,
7534
- cm as et,
7530
+ _p as en,
7531
+ lm as et,
7535
7532
  tf as f,
7536
7533
  iu as ft,
7537
7534
  Jv as g,
7538
7535
  Jd as gt,
7539
7536
  $v as h,
7540
7537
  qo as ht,
7541
- wm as i,
7538
+ Sm as i,
7542
7539
  oo as in,
7543
7540
  ah as it,
7544
- mm as j,
7545
- sm as jt,
7546
- Ct as k,
7541
+ pm as j,
7542
+ im as jt,
7543
+ Pt as k,
7547
7544
  ir as kt,
7548
7545
  cf as l,
7549
7546
  cu as lt,
7550
7547
  _v as m,
7551
7548
  au as mt,
7552
- Em as n,
7549
+ km as n,
7553
7550
  at as nn,
7554
7551
  ch as nt,
7555
- Op as o,
7552
+ Hp as o,
7556
7553
  Gs as on,
7557
7554
  Iu as ot,
7558
7555
  ef as p,
7559
7556
  Mr as pt,
7560
- fm as q,
7561
- rm as qt,
7562
- km as r,
7557
+ vm as q,
7558
+ tm as qt,
7559
+ wm as r,
7563
7560
  M as rn,
7564
7561
  sh as rt,
7565
7562
  ep as s,
7566
7563
  et as st,
7567
- Rm as t,
7564
+ Em as t,
7568
7565
  D as tn,
7569
- lm as tt,
7570
- bm as u,
7566
+ sm as tt,
7567
+ xm as u,
7571
7568
  pn as ut,
7572
7569
  Fv as v,
7573
7570
  Ir as vt,