@graphysdk/react-renderer 1.9.0-beta.1789480282040 → 1.9.0-beta.1789545386500

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,15 +1,15 @@
1
1
  import { n as p } from "./theme.contract.css-DaZ5UPN0.js";
2
- import { ANNOTATION_TOOLTIP_MARKER_GAP as Ca, AXIS_KEYS as tn, CachedTextMeasurer as Sr, DATA_LABEL_POSITIONS as Pa, DATA_LABEL_ROLES as Ba, DEFAULT_GEOM_COLOR as rn, DEFAULT_HOVER_AFFORDANCE_COLOR as mt, DEFAULT_POINT_SIZE as nn, GROUP_VARIABLES as pe, HeuristicTextMeasurer as Ia, HoverEngine as Ma, InternalError as La, LayoutCompiler as Ta, NAMED_WEIGHTS as Ge, POLAR_RIM_LABEL_GAP_PX as Na, RESTING_HOVER_STATE as ct, TAU as wr, alignUnitFractions as on, areAnchorsEqual as Ha, areEditMenuTriggersEqual as Fa, areEndpointsComparable as Rr, arePointerRegionListsEqual as Da, buildAverageLineSymbols as Oa, buildCalloutHitRegions as Wa, buildColumnKey as Xt, buildDataLabelsContent as Ga, buildFontString as Ua, buildLayerIntroPlan as Va, buildLayerYValueFormatter as za, buildPinnedNumberValueFormatter as Qa, buildPolarBarArcPath as Se, buildSliceGroupKey as qt, buildTooltipContent as Ka, compositeColor as Ya, computeArrow as ja, computeDifferenceArrow as Xa, computeDirectLabelsLayout as qa, computeLineBoxHeight as we, computePanelBorderPaths as Ja, computePanelBorderSizes as Za, countLayerGeoms as $a, createAreaPathGenerators as an, createHeadlineItemRows as sn, createLineFillAreaGenerator as _a, createLinePathGenerator as ln, createSegmentYReader as ei, createStableCellKeyGenerator as ti, createStableKeyGenerator as ce, createStyleResolver as dn, ensureReadableTextColor as ri, findAnnotation as ni, findLayerById as oi, findPointerRegion as kr, formatHeadline as ai, formatLegends as ii, formatRuleValue as si, getAestheticFromScaleAestheticKey as Le, getAlpha as cn, getAngleExtent as Jt, getBarRectBounds as Xe, getBoundingRect as un, getChromeDashArray as At, getColor as hn, getDashArray as Te, getDifferenceArrowLabelBox as li, getGroup as yt, getHoverGuideLineProps as di, getHoverGuideRectProps as ci, getInsetTileRect as gn, getPolarHoverGuideArcProps as ui, getRadiusExtent as xt, getRuleDashPattern as hi, getShapeAnnotationStroke as gi, getSize as vi, getStackRole as fi, getUnionExtent as pi, getX as _, getXMax as mi, getY as se, getYMax as vn, isAnnotationMovable as Ai, isDefined as fn, isFullTurnSweep as pn, isSafeUrl as Zt, orderPointerRegions as yi, paintsInDonutHole as xi, pickReadableTextColor as mn, placeCallouts as bi, polarToUnit as Si, positionToAngle as wi, prepareAreaObservations as An, prepareLineObservations as yn, projectAnchorToPanel as Ye, projectRegionToPanel as $t, readAnchoredObservation as xn, readColorGroupObservation as Ri, resolveArrowAnnotationStyle as ki, resolveArrowColor as Ei, resolveAxisLabelStyle as Ci, resolveBarBorderRadiusPx as bn, resolveBarBorderTreatment as qe, resolveBarCornerRadiiPx as Pi, resolveCalloutAnnotationStyle as Bi, resolveCaptionStyle as Ii, resolveChromeMargins as Mi, resolveDataLabelStyle as Li, resolveDeferredAnchors as Ti, resolveDifferenceArrowAnnotationStyle as Ni, resolveDirectLabelStyle as Hi, resolveGraphChromeStyle as Sn, resolveGraphPadding as Fi, resolveGridLineStyle as Wt, resolveHeadingFontFamily as Di, resolveHeadingStyle as Oi, resolveHeadlineFigure as wn, resolveHeadlineItemStyle as lt, resolveHeadlinePlacement as Wi, resolveHeadlineStyle as Rn, resolveHoverGuideStyle as Gi, resolveImageAnnotationStyle as Ui, resolveLegendItemStyle as Vi, resolveLegendStyle as zi, resolvePanelBorderStyle as kn, resolvePolarBarCornerRadiusUnit as En, resolveRuleLabelStyle as Qi, resolveShapeAnnotationStyle as Cn, resolveSourceStyle as Ki, resolveSubtitleStyle as Yi, resolveSwatchGeomPaint as Pn, resolveTextAnnotationStyle as ji, resolveTickLabelStyle as Xi, resolveTickLineStyle as qi, resolveTooltipStyle as Ji, toFontSpec as j, toPanelCursor as Zi, toPercent as R, toViewBoxX as Bn, toViewBoxY as In, truncateToWidth as Mn } from "@graphysdk/viz-engine";
2
+ import { ANNOTATION_TOOLTIP_MARKER_GAP as Ca, AXIS_KEYS as tn, CachedTextMeasurer as Sr, DATA_LABEL_POSITIONS as Pa, DATA_LABEL_ROLES as Ba, DEFAULT_GEOM_COLOR as rn, DEFAULT_HOVER_AFFORDANCE_COLOR as At, DEFAULT_POINT_SIZE as nn, GROUP_VARIABLES as pe, HeuristicTextMeasurer as Ia, HoverEngine as Ma, InternalError as La, LayoutCompiler as Ta, NAMED_WEIGHTS as Ge, POLAR_RIM_LABEL_GAP_PX as Na, RESTING_HOVER_STATE as ut, TAU as wr, alignUnitFractions as on, areAnchorsEqual as Ha, areEditMenuTriggersEqual as Fa, areEndpointsComparable as Rr, arePointerRegionListsEqual as Da, buildAverageLineSymbols as Oa, buildCalloutHitRegions as Wa, buildColumnKey as Xt, buildDataLabelsContent as Ga, buildFontString as Ua, buildLayerIntroPlan as Va, buildLayerYValueFormatter as za, buildPinnedNumberValueFormatter as Qa, buildPolarBarArcPath as Se, buildSliceGroupKey as qt, buildTooltipContent as Ka, compositeColor as Ya, computeArrow as ja, computeDifferenceArrow as Xa, computeDirectLabelsLayout as qa, computeLineBoxHeight as we, computePanelBorderPaths as Ja, computePanelBorderSizes as Za, countLayerGeoms as $a, createAreaPathGenerators as an, createHeadlineItemRows as sn, createLineFillAreaGenerator as _a, createLinePathGenerator as ln, createSegmentYReader as ei, createStableCellKeyGenerator as ti, createStableKeyGenerator as ce, createStyleResolver as dn, ensureReadableTextColor as ri, findAnnotation as ni, findLayerById as oi, findPointerRegion as kr, formatHeadline as ai, formatLegends as ii, formatRuleValue as si, getAestheticFromScaleAestheticKey as Le, getAlpha as cn, getAngleExtent as Jt, getBarRectBounds as Xe, getBoundingRect as un, getChromeDashArray as yt, getColor as hn, getDashArray as Te, getDifferenceArrowLabelBox as li, getGroup as xt, getHoverGuideLineProps as di, getHoverGuideRectProps as ci, getInsetTileRect as gn, getPolarHoverGuideArcProps as ui, getRadiusExtent as bt, getRuleDashPattern as hi, getShapeAnnotationStroke as gi, getSize as vi, getStackRole as fi, getUnionExtent as pi, getX as _, getXMax as mi, getY as se, getYMax as vn, isAnnotationMovable as Ai, isDefined as fn, isFullTurnSweep as pn, isSafeUrl as Zt, orderPointerRegions as yi, paintsInDonutHole as xi, pickReadableTextColor as mn, placeCallouts as bi, polarToUnit as Si, positionToAngle as wi, prepareAreaObservations as An, prepareLineObservations as yn, projectAnchorToPanel as Ye, projectRegionToPanel as $t, readAnchoredObservation as xn, readColorGroupObservation as Ri, resolveArrowAnnotationStyle as ki, resolveArrowColor as Ei, resolveAxisLabelStyle as Ci, resolveBarBorderRadiusPx as bn, resolveBarBorderTreatment as qe, resolveBarCornerRadiiPx as Pi, resolveCalloutAnnotationStyle as Bi, resolveCaptionStyle as Ii, resolveChromeMargins as Mi, resolveDataLabelStyle as Li, resolveDeferredAnchors as Ti, resolveDifferenceArrowAnnotationStyle as Ni, resolveDirectLabelStyle as Hi, resolveGraphChromeStyle as Sn, resolveGraphPadding as Fi, resolveGridLineStyle as Wt, resolveHeadingFontFamily as Di, resolveHeadingStyle as Oi, resolveHeadlineFigure as wn, resolveHeadlineItemStyle as dt, resolveHeadlinePlacement as Wi, resolveHeadlineStyle as Rn, resolveHoverGuideStyle as Gi, resolveImageAnnotationStyle as Ui, resolveLegendItemStyle as Vi, resolveLegendStyle as zi, resolvePanelBorderStyle as kn, resolvePolarBarCornerRadiusUnit as En, resolveRuleLabelStyle as Qi, resolveShapeAnnotationStyle as Cn, resolveSourceStyle as Ki, resolveSubtitleStyle as Yi, resolveSwatchGeomPaint as Pn, resolveTextAnnotationStyle as ji, resolveTickLabelStyle as Xi, resolveTickLineStyle as qi, resolveTooltipStyle as Ji, toFontSpec as j, toPanelCursor as Zi, toPercent as R, toViewBoxX as Bn, toViewBoxY as In, truncateToWidth as Mn } from "@graphysdk/viz-engine";
3
3
  import { Fragment as _t, createContext as z, memo as te, useCallback as ge, useContext as D, useEffect as F, useId as Q, useMemo as y, useRef as M, useState as V, useSyncExternalStore as $i } from "react";
4
4
  import { Fragment as B, jsx as s, jsxs as S } from "react/jsx-runtime";
5
5
  import { useStore as Je } from "zustand";
6
- import { animate as he, motion as G, useMotionValue as ae, useReducedMotion as _i, useTransform as ot } from "motion/react";
6
+ import { animate as he, motion as G, useMotionValue as ae, useReducedMotion as _i, useTransform as at } from "motion/react";
7
7
  import { interpolatePath as es } from "d3-interpolate-path";
8
8
  import { useShallow as X } from "zustand/react/shallow";
9
9
  import { assignInlineVars as er } from "@vanilla-extract/dynamic";
10
10
  import { createStore as Ln } from "zustand/vanilla";
11
11
  import { createPortal as Tn } from "react-dom";
12
- import je, { clsx as ut } from "clsx";
12
+ import je, { clsx as ht } from "clsx";
13
13
  import ts from "lodash-es/merge";
14
14
  import { IntlProvider as rs } from "react-intl";
15
15
  import { flip as Gt, offset as Ut, shift as Vt, useFloating as Nn } from "@floating-ui/react-dom";
@@ -23,7 +23,7 @@ import './history-chords.css';var Er = Object.defineProperty, os = (e, t) => {
23
23
  });
24
24
  return t || Er(r, Symbol.toStringTag, { value: "Module" }), r;
25
25
  };
26
- typeof window < "u" && (window.__GRAPHY_SDK__ ??= {}, window.__GRAPHY_SDK__.reactRenderer = "1.9.0-beta.1789480282040");
26
+ typeof window < "u" && (window.__GRAPHY_SDK__ ??= {}, window.__GRAPHY_SDK__.reactRenderer = "1.9.0-beta.1789545386500");
27
27
  function as(e) {
28
28
  for (const t of e) (t.severity === "error" ? console.error : console.warn)(`[graphy] ${t.code}: ${t.message}`, t);
29
29
  }
@@ -34,18 +34,21 @@ var Hn = z(null), K = () => {
34
34
  }, I = (e) => {
35
35
  const { store: t } = K();
36
36
  return Je(t, (r) => e(r.scene));
37
- }, bt = () => K().styleResolver, T = (e) => bt().geomReaders(e), Fn = (e) => {
38
- const t = bt(), r = I((n) => n.layers).find((n) => n.id === e);
37
+ }, Ze = () => K().styleResolver, T = (e) => Ze().geomReaders(e), Yf = () => {
38
+ const e = Ze(), t = I((r) => r.chrome);
39
+ return e.readers({ chrome: t });
40
+ }, Fn = (e) => {
41
+ const t = Ze(), r = I((n) => n.layers).find((n) => n.id === e);
39
42
  return r === void 0 ? null : t.geomReaders(r);
40
43
  }, is = () => {
41
- const e = bt(), t = I((r) => r.layers);
44
+ const e = Ze(), t = I((r) => r.layers);
42
45
  return y(() => (r) => {
43
46
  const n = xn(t, r);
44
47
  if (n !== null)
45
48
  return e.geomReaders(n.layer).get("color", n.observation);
46
49
  }, [t, e]);
47
50
  }, ss = (e) => {
48
- const t = bt(), r = I((n) => n.layers);
51
+ const t = Ze(), r = I((n) => n.layers);
49
52
  return y(() => (n) => {
50
53
  const o = xn(r, n);
51
54
  if (o === null) return {};
@@ -92,7 +95,7 @@ var Hn = z(null), K = () => {
92
95
  }, ds = 2, cs = 0.7, xe = ({ hit: e, project: t = tr }) => {
93
96
  const r = Fn(e.layerId);
94
97
  if (!e.anchored) return null;
95
- const n = r?.get("color", e.observation) ?? rn, o = (cn(e.observation) ?? 1) * cs, a = (r?.get("size", e.observation) ?? nn) / 2, i = r?.get("borderColor", e.observation, "hovered") ?? mt, l = t(e.x, e.y);
98
+ const n = r?.get("color", e.observation) ?? rn, o = (cn(e.observation) ?? 1) * cs, a = (r?.get("size", e.observation) ?? nn) / 2, i = r?.get("borderColor", e.observation, "hovered") ?? At, l = t(e.x, e.y);
96
99
  return /* @__PURE__ */ s("circle", {
97
100
  cx: R(l.x),
98
101
  cy: R(l.y),
@@ -261,7 +264,7 @@ var Hn = z(null), K = () => {
261
264
  }), bs = "_324dw20", Gn = 1, Ss = 0.4, ws = 0.2, Rs = 1, ks = 0.5, Es = 2.25, Ne = ({ hit: e, project: t = tr, ...r }) => {
262
265
  const n = Fn(e.layerId);
263
266
  if (!e.anchored) return null;
264
- const o = n?.get("color", e.observation) ?? rn, a = cn(e.observation) ?? 1, i = n?.get("borderColor", e.observation, "hovered") ?? mt, l = t(e.x, e.y), d = R(l.x), c = R(l.y), u = Cs(e.observation, n), { ringRadius: h, ringWidth: g } = Ps(u);
267
+ const o = n?.get("color", e.observation) ?? rn, a = cn(e.observation) ?? 1, i = n?.get("borderColor", e.observation, "hovered") ?? At, l = t(e.x, e.y), d = R(l.x), c = R(l.y), u = Cs(e.observation, n), { ringRadius: h, ringWidth: g } = Ps(u);
265
268
  return /* @__PURE__ */ S("g", {
266
269
  ...r,
267
270
  className: bs,
@@ -292,7 +295,7 @@ var Hn = z(null), K = () => {
292
295
  ringWidth: t
293
296
  };
294
297
  }, Bs = ({ layer: e, coordSystem: t, primary: r, companions: n }) => {
295
- const o = T(e), a = yt(r.observation), i = y(() => An([...e.data.filter(pe.group, "eq", a)], e.params.missingValues), [
298
+ const o = T(e), a = xt(r.observation), i = y(() => An([...e.data.filter(pe.group, "eq", a)], e.params.missingValues), [
296
299
  e.data,
297
300
  e.params.missingValues,
298
301
  a
@@ -458,7 +461,7 @@ var Hn = z(null), K = () => {
458
461
  const [c] = d.bars;
459
462
  if (!c) return null;
460
463
  const { key: u, ...h } = c;
461
- return /* @__PURE__ */ s(ht, {
464
+ return /* @__PURE__ */ s(gt, {
462
465
  ...h,
463
466
  ...d.radii,
464
467
  animation: l,
@@ -487,7 +490,7 @@ var Hn = z(null), K = () => {
487
490
  const { key: g, ...v } = h;
488
491
  return /* @__PURE__ */ S(B, { children: [u, /* @__PURE__ */ s("g", {
489
492
  clipPath: `url(#${r})`,
490
- children: /* @__PURE__ */ s(ht, {
493
+ children: /* @__PURE__ */ s(gt, {
491
494
  ...v,
492
495
  ...o,
493
496
  stroke: a,
@@ -500,7 +503,7 @@ var Hn = z(null), K = () => {
500
503
  clipPath: `url(#${r})`,
501
504
  children: [n.map((h) => {
502
505
  const { key: g, ...v } = h;
503
- return /* @__PURE__ */ s(ht, {
506
+ return /* @__PURE__ */ s(gt, {
504
507
  ...v,
505
508
  stroke: a,
506
509
  strokeWidth: d,
@@ -547,7 +550,7 @@ var Hn = z(null), K = () => {
547
550
  clipPath: `url(#${r})`,
548
551
  children: [n.map((v) => {
549
552
  const { key: f, ...A } = v;
550
- return /* @__PURE__ */ s(ht, {
553
+ return /* @__PURE__ */ s(gt, {
551
554
  ...A,
552
555
  stroke: a,
553
556
  strokeWidth: d,
@@ -562,7 +565,7 @@ var Hn = z(null), K = () => {
562
565
  opacity: i
563
566
  })]
564
567
  })] });
565
- }, ht = ({ animation: e, introKey: t, rx: r, ry: n, stroke: o, strokeWidth: a, ...i }) => {
568
+ }, gt = ({ animation: e, introKey: t, rx: r, ry: n, stroke: o, strokeWidth: a, ...i }) => {
566
569
  const { isAnimated: l, activeIntro: d, shouldAnimateTransitions: c } = e;
567
570
  if (l) {
568
571
  const u = d ? Un(i, d) : null;
@@ -638,10 +641,10 @@ var Hn = z(null), K = () => {
638
641
  e.height,
639
642
  d
640
643
  ]), {
641
- x: ot(o, R),
642
- y: ot(a, R),
643
- width: ot(i, R),
644
- height: ot(l, R)
644
+ x: at(o, R),
645
+ y: at(a, R),
646
+ width: at(i, R),
647
+ height: at(l, R)
645
648
  };
646
649
  };
647
650
  function Hs(e) {
@@ -673,7 +676,7 @@ var Fs = "_1suo8ub0", Vn = (e, t, r) => {
673
676
  style: He(r, n),
674
677
  bounds: o
675
678
  } : null;
676
- }, gt = (e, t) => ({
679
+ }, vt = (e, t) => ({
677
680
  x: e.x * t.width,
678
681
  y: e.y * t.height,
679
682
  width: e.width * t.width,
@@ -700,7 +703,7 @@ var Fs = "_1suo8ub0", Vn = (e, t, r) => {
700
703
  }, Ds = ({ observation: e, mainAxis: t, styleReaders: r, column: n, panelRect: o }) => {
701
704
  const a = Q(), i = Q(), l = Xe(t, e);
702
705
  if (!l) return null;
703
- const d = gt(l, o), c = gt(n.bounds, o), { borderColor: u, borderWidth: h, borderRadius: g, borderAlpha: v } = n.style, f = bn({
706
+ const d = vt(l, o), c = vt(n.bounds, o), { borderColor: u, borderWidth: h, borderRadius: g, borderAlpha: v } = n.style, f = bn({
704
707
  borderRadius: g,
705
708
  mainAxis: t,
706
709
  bounds: c
@@ -764,11 +767,11 @@ var Fs = "_1suo8ub0", Vn = (e, t, r) => {
764
767
  o
765
768
  ]), c = Xe(t.mainAxis, r.observation), u = zn(d, t.mainAxis, o, r.observation);
766
769
  if (!c || u === null) return null;
767
- const h = gt(c, n), g = gt(u.bounds, n), { borderColor: v, borderWidth: f, borderRadius: A, borderAlpha: m } = u.style, b = bn({
770
+ const h = vt(c, n), g = vt(u.bounds, n), { borderColor: v, borderWidth: f, borderRadius: A, borderAlpha: m } = u.style, b = bn({
768
771
  borderRadius: A,
769
772
  mainAxis: t.mainAxis,
770
773
  bounds: g
771
- }), x = Be(h, 0), w = Be(g, b), k = Be(Ir(h, Lt), 0), C = Be(Ir(g, Lt), b > 0 ? b + Lt : 0), E = o.get("color", r.observation), N = o.get("alpha", r.observation), H = o.get("borderColor", r.observation, "hovered") ?? mt, U = qe(f);
774
+ }), x = Be(h, 0), w = Be(g, b), k = Be(Ir(h, Lt), 0), C = Be(Ir(g, Lt), b > 0 ? b + Lt : 0), E = o.get("color", r.observation), N = o.get("alpha", r.observation), H = o.get("borderColor", r.observation, "hovered") ?? At, U = qe(f);
772
775
  return /* @__PURE__ */ S("g", {
773
776
  "data-testid": "hovered-bar",
774
777
  children: [
@@ -963,7 +966,7 @@ var Fs = "_1suo8ub0", Vn = (e, t, r) => {
963
966
  vectorEffect: "non-scaling-stroke"
964
967
  });
965
968
  }, Ks = ({ layer: e, primary: t, companions: r }) => {
966
- const n = T(e), o = yt(t.observation), a = y(() => yn([...e.data.filter(pe.group, "eq", o)], e.params.missingValues), [
969
+ const n = T(e), o = xt(t.observation), a = y(() => yn([...e.data.filter(pe.group, "eq", o)], e.params.missingValues), [
967
970
  e.data,
968
971
  e.params.missingValues,
969
972
  o
@@ -1188,7 +1191,7 @@ var Fs = "_1suo8ub0", Vn = (e, t, r) => {
1188
1191
  fontEditorControlValue: P(p.fontWeightMedium, p.fontSizeSm, p.fontLineHeightSm),
1189
1192
  fontEditorSectionTitle: P(p.fontWeightSemibold, p.fontSizeSm, p.fontLineHeightSm),
1190
1193
  fontEditorCaption: P(p.fontWeightMedium, p.fontSizeXxs, p.fontLineHeightXxs)
1191
- }, Js = $.sm, Zs = (e, t) => ({ familyDefault: Tt(t) ?? Tt(e.fontFamily) ?? Tt(wt) ?? "" }), Tt = (e) => e === void 0 || e.includes("var(") ? null : e.replace(/\s+/g, " ").trim(), Y = (e, t) => `color-mix(in srgb, transparent, ${e} ${t * 100}%)`, $s = (e, t) => `hsl(from ${e} h s calc(l * ${1 - t}))`, Yf = (e, t) => `hsl(from ${e} h s calc(l * ${1 + t}))`, jf = (e) => /^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$/.test(e), Xf = (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), Nt = (e) => `${e}px`, Xn = {
1194
+ }, Js = $.sm, Zs = (e, t) => ({ familyDefault: Tt(t) ?? Tt(e.fontFamily) ?? Tt(wt) ?? "" }), Tt = (e) => e === void 0 || e.includes("var(") ? null : e.replace(/\s+/g, " ").trim(), Y = (e, t) => `color-mix(in srgb, transparent, ${e} ${t * 100}%)`, $s = (e, t) => `hsl(from ${e} h s calc(l * ${1 - t}))`, jf = (e, t) => `hsl(from ${e} h s calc(l * ${1 + t}))`, Xf = (e) => /^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$/.test(e), qf = (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), Nt = (e) => `${e}px`, Xn = {
1192
1195
  tooltipRowGap: "4px",
1193
1196
  editorControlHeight: Nt(32),
1194
1197
  legendSwatchGap: Nt(8),
@@ -1519,7 +1522,7 @@ var eo = z(cl), ul = ({ metrics: e, children: t }) => /* @__PURE__ */ s(eo.Provi
1519
1522
  } catch {
1520
1523
  return new Sr(new Ia());
1521
1524
  }
1522
- }, oo = z(null), qf = oo.Provider, xl = null, me = () => D(oo) ?? (xl ??= yd()), bl = 11.7, Sl = 0.5, Nr = 21.6, wl = "0 0 10 18", Rl = "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", kl = "_16vokpr0", El = (e, t) => e.mapping.y !== void 0 != (t.mainAxis === "y"), Cl = (e, t) => {
1525
+ }, oo = z(null), Jf = oo.Provider, xl = null, me = () => D(oo) ?? (xl ??= yd()), bl = 11.7, Sl = 0.5, Nr = 21.6, wl = "0 0 10 18", Rl = "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", kl = "_16vokpr0", El = (e, t) => e.mapping.y !== void 0 != (t.mainAxis === "y"), Cl = (e, t) => {
1523
1526
  const r = R(e ? 1 - t : t);
1524
1527
  return e ? {
1525
1528
  x1: "0%",
@@ -1539,10 +1542,10 @@ var eo = z(cl), ul = ({ metrics: e, children: t }) => /* @__PURE__ */ s(eo.Provi
1539
1542
  strokeLinecap: "round",
1540
1543
  ...e === "dashed" ? { strokeMiterlimit: 16 } : {}
1541
1544
  };
1542
- }, Bl = (e, t) => at(e) && at(t) ? `${e}: ${t}` : at(e) ? e : at(t) ? t : null, Il = (e) => e ? 14 : 0, Ml = (e, t) => e * Sl - Il(t) - 10, Ll = (e, t, r) => {
1545
+ }, Bl = (e, t) => it(e) && it(t) ? `${e}: ${t}` : it(e) ? e : it(t) ? t : null, Il = (e) => e ? 14 : 0, Ml = (e, t) => e * Sl - Il(t) - 10, Ll = (e, t, r) => {
1543
1546
  const n = e * r, o = -13 - n, a = r + 13 - n - t;
1544
1547
  return a < o ? o : Math.min(Math.max(-t / 2, o), a);
1545
- }, at = (e) => e != null && e.trim() !== "", ao = Object.freeze({}), ar = z(ao), Tl = ({ slots: e, children: t }) => /* @__PURE__ */ s(ar.Provider, {
1548
+ }, it = (e) => e != null && e.trim() !== "", ao = Object.freeze({}), ar = z(ao), Tl = ({ slots: e, children: t }) => /* @__PURE__ */ s(ar.Provider, {
1546
1549
  value: e ?? ao,
1547
1550
  children: t
1548
1551
  });
@@ -1563,7 +1566,7 @@ function Nl() {
1563
1566
  function Hl(e) {
1564
1567
  return "render" in e && "measure" in e;
1565
1568
  }
1566
- var Fl = "_2qyyu60", Dl = 2, Ol = 12, Wl = 12, Hr = 1, Fr = 2, Gl = 4, Ze = (e) => /* @__PURE__ */ s(ie("Swatch", Ul), { ...e }), Ul = ({ shape: e, color: t, lineType: r = "solid", width: n = Ol, height: o = Wl, strokeWidth: a = Dl, alpha: i, cornerRadius: l }) => /* @__PURE__ */ s("svg", {
1569
+ var Fl = "_2qyyu60", Dl = 2, Ol = 12, Wl = 12, Hr = 1, Fr = 2, Gl = 4, $e = (e) => /* @__PURE__ */ s(ie("Swatch", Ul), { ...e }), Ul = ({ shape: e, color: t, lineType: r = "solid", width: n = Ol, height: o = Wl, strokeWidth: a = Dl, alpha: i, cornerRadius: l }) => /* @__PURE__ */ s("svg", {
1567
1570
  className: Fl,
1568
1571
  width: n,
1569
1572
  height: o,
@@ -1676,7 +1679,7 @@ var Fl = "_2qyyu60", Dl = 2, Ol = 12, Wl = 12, Hr = 1, Fr = 2, Gl = 4, Ze = (e)
1676
1679
  fontWeight: e.fontWeight,
1677
1680
  lineHeight: e.lineHeight,
1678
1681
  color: e.textColor
1679
- }), Jf = (e, t) => er({
1682
+ }), Zf = (e, t) => er({
1680
1683
  [e.fontFamily]: t.fontFamily ?? p.fontFamily,
1681
1684
  [e.fontSize]: `${t.fontSize}px`,
1682
1685
  [e.fontWeight]: String(t.fontWeight),
@@ -1761,7 +1764,7 @@ var Fl = "_2qyyu60", Dl = 2, Ol = 12, Wl = 12, Hr = 1, Fr = 2, Gl = 4, Ze = (e)
1761
1764
  }, Yl = ({ label: e, textStyle: t, textWidth: r, labelPosition: n, isHorizontalLine: o, position: a, color: i, textColor: l, symbolShape: d, symbolColor: c, symbolAlpha: u, symbolCornerRadius: h, panelWidth: g, shouldAnimateTransitions: v }) => {
1762
1765
  const f = d === null ? 0 : 14, A = r + f + 10, m = Math.max(bl, we(t)) + 10, b = /* @__PURE__ */ S(B, { children: [d !== null && c !== null && /* @__PURE__ */ s("g", {
1763
1766
  transform: `translate(0, ${-10 / 2})`,
1764
- children: /* @__PURE__ */ s(Ze, {
1767
+ children: /* @__PURE__ */ s($e, {
1765
1768
  shape: d,
1766
1769
  color: c,
1767
1770
  surface: "rule-label",
@@ -1949,7 +1952,7 @@ var Fl = "_2qyyu60", Dl = 2, Ol = 12, Wl = 12, Hr = 1, Fr = 2, Gl = 4, Ze = (e)
1949
1952
  }), $l = ({ layer: e, primary: t, panelRect: r }) => {
1950
1953
  const n = T(e), o = gn(t.observation);
1951
1954
  if (!o || !hn(t.observation)) return null;
1952
- const a = n.get("color", t.observation), i = n.get("alpha", t.observation), l = n.get("borderColor", t.observation, "hovered") ?? mt, d = n.get("borderWidth", t.observation, "hovered"), c = n.get("borderRadius", t.observation, "hovered"), u = o.x * r.width, h = o.y * r.height, g = o.width * r.width, v = o.height * r.height;
1955
+ const a = n.get("color", t.observation), i = n.get("alpha", t.observation), l = n.get("borderColor", t.observation, "hovered") ?? At, d = n.get("borderWidth", t.observation, "hovered"), c = n.get("borderRadius", t.observation, "hovered"), u = o.x * r.width, h = o.y * r.height, g = o.width * r.width, v = o.height * r.height;
1953
1956
  return /* @__PURE__ */ S("g", {
1954
1957
  "data-testid": "hovered-tile",
1955
1958
  children: [/* @__PURE__ */ s("rect", {
@@ -1987,7 +1990,7 @@ var Fl = "_2qyyu60", Dl = 2, Ol = 12, Wl = 12, Hr = 1, Fr = 2, Gl = 4, Ze = (e)
1987
1990
  panelRect: r
1988
1991
  }),
1989
1992
  renderHoverCompanions: () => null
1990
- }, vt = ({ primary: e, companions: t }) => {
1993
+ }, ft = ({ primary: e, companions: t }) => {
1991
1994
  const r = /* @__PURE__ */ S(B, { children: [t.map((n) => /* @__PURE__ */ s(xe, {
1992
1995
  hit: n,
1993
1996
  project: le
@@ -2051,7 +2054,7 @@ var Fl = "_2qyyu60", Dl = 2, Ol = 12, Wl = 12, Hr = 1, Fr = 2, Gl = 4, Ze = (e)
2051
2054
  }), io = (e) => {
2052
2055
  const t = [];
2053
2056
  for (const a of e) {
2054
- const i = _(a), { innerRadius: l, outerRadius: d } = xt(a);
2057
+ const i = _(a), { innerRadius: l, outerRadius: d } = bt(a);
2055
2058
  i === null || l === null || d === null || t.push({
2056
2059
  angle: i,
2057
2060
  outer: ee(i, d),
@@ -2066,7 +2069,7 @@ var Fl = "_2qyyu60", Dl = 2, Ol = 12, Wl = 12, Hr = 1, Fr = 2, Gl = 4, Ze = (e)
2066
2069
  outlinePath: o
2067
2070
  };
2068
2071
  }, td = ({ layer: e, primary: t, companions: r }) => {
2069
- const n = T(e), o = yt(t.observation), a = y(() => io([...e.data.filter(pe.group, "eq", o)]), [e.data, o]);
2072
+ const n = T(e), o = xt(t.observation), a = y(() => io([...e.data.filter(pe.group, "eq", o)]), [e.data, o]);
2070
2073
  if (!a) return null;
2071
2074
  const i = n.get("color", t.observation), l = n.get("alpha", t.observation), d = n.get("strokeAlpha", t.observation), c = n.get("strokeWidth", t.observation);
2072
2075
  return /* @__PURE__ */ S(B, { children: [
@@ -2115,7 +2118,7 @@ var Fl = "_2qyyu60", Dl = 2, Ol = 12, Wl = 12, Hr = 1, Fr = 2, Gl = 4, Ze = (e)
2115
2118
  primary: t,
2116
2119
  companions: [...r, ...n]
2117
2120
  }),
2118
- renderHoverCompanions: ({ related: e }) => /* @__PURE__ */ s(vt, { companions: e }),
2121
+ renderHoverCompanions: ({ related: e }) => /* @__PURE__ */ s(ft, { companions: e }),
2119
2122
  getOverlayAnchor: ({ observation: e }) => {
2120
2123
  const t = _(e), r = vn(e) ?? se(e);
2121
2124
  if (t === null || r === null) return null;
@@ -2133,7 +2136,7 @@ var Fl = "_2qyyu60", Dl = 2, Ol = 12, Wl = 12, Hr = 1, Fr = 2, Gl = 4, Ze = (e)
2133
2136
  const a = Q(), i = St(o?.type === "grow" && (o.growAxis === "angle" || o.growAxis === "radius") ? o : null, n), l = r.bandAxis !== "x", d = T(t), c = y(() => {
2134
2137
  const u = ce(t.data, t.mapping, t.id), h = /* @__PURE__ */ new Map();
2135
2138
  for (const g of t.data) {
2136
- const v = u(g), { startAngle: f, endAngle: A } = Jt(g), { innerRadius: m, outerRadius: b } = xt(g);
2139
+ const v = u(g), { startAngle: f, endAngle: A } = Jt(g), { innerRadius: m, outerRadius: b } = bt(g);
2137
2140
  if (f === null || A === null || m === null || b === null) continue;
2138
2141
  const x = {
2139
2142
  key: v,
@@ -2348,7 +2351,7 @@ var Fl = "_2qyyu60", Dl = 2, Ol = 12, Wl = 12, Hr = 1, Fr = 2, Gl = 4, Ze = (e)
2348
2351
  radialSpan: o === null ? 0 : o.outerRadius - o.innerRadius
2349
2352
  };
2350
2353
  }, uo = ({ observation: e, bandAxis: t, styleReaders: r, group: n }) => {
2351
- const o = Q(), a = Q(), { startAngle: i, endAngle: l } = Jt(e), { innerRadius: d, outerRadius: c } = xt(e);
2354
+ const o = Q(), a = Q(), { startAngle: i, endAngle: l } = Jt(e), { innerRadius: d, outerRadius: c } = bt(e);
2352
2355
  if (i === null || l === null || d === null || c === null) return null;
2353
2356
  const u = {
2354
2357
  startAngle: i,
@@ -2441,7 +2444,7 @@ var Fl = "_2qyyu60", Dl = 2, Ol = 12, Wl = 12, Hr = 1, Fr = 2, Gl = 4, Ze = (e)
2441
2444
  outerRadius: i
2442
2445
  };
2443
2446
  }, ho = (e) => {
2444
- const { startAngle: t, endAngle: r } = Jt(e), { innerRadius: n, outerRadius: o } = xt(e);
2447
+ const { startAngle: t, endAngle: r } = Jt(e), { innerRadius: n, outerRadius: o } = bt(e);
2445
2448
  return t === null || r === null || n === null || o === null ? null : {
2446
2449
  startAngle: t,
2447
2450
  endAngle: r,
@@ -2563,7 +2566,7 @@ var Fl = "_2qyyu60", Dl = 2, Ol = 12, Wl = 12, Hr = 1, Fr = 2, Gl = 4, Ze = (e)
2563
2566
  }
2564
2567
  return t.length === 0 ? null : (t.sort((r, n) => r.angle - n.angle), Kt(t.map((r) => r.point)));
2565
2568
  }, gd = ({ layer: e, primary: t, companions: r }) => {
2566
- const n = T(e), o = yt(t.observation), a = y(() => go([...e.data.filter(pe.group, "eq", o)]), [e.data, o]);
2569
+ const n = T(e), o = xt(t.observation), a = y(() => go([...e.data.filter(pe.group, "eq", o)]), [e.data, o]);
2567
2570
  if (!a) return null;
2568
2571
  const i = n.get("color", t.observation), l = n.get("alpha", t.observation), d = n.get("strokeWidth", t.observation), c = Te(n.get("lineType", t.observation));
2569
2572
  return /* @__PURE__ */ S(B, { children: [
@@ -2607,7 +2610,7 @@ var Fl = "_2qyyu60", Dl = 2, Ol = 12, Wl = 12, Hr = 1, Fr = 2, Gl = 4, Ze = (e)
2607
2610
  primary: t,
2608
2611
  companions: [...r, ...n]
2609
2612
  }),
2610
- renderHoverCompanions: ({ related: e }) => /* @__PURE__ */ s(vt, { companions: e }),
2613
+ renderHoverCompanions: ({ related: e }) => /* @__PURE__ */ s(ft, { companions: e }),
2611
2614
  getOverlayAnchor: ({ observation: e }) => {
2612
2615
  const t = _(e), r = se(e);
2613
2616
  if (t === null || r === null) return null;
@@ -2646,11 +2649,11 @@ var Fl = "_2qyyu60", Dl = 2, Ol = 12, Wl = 12, Hr = 1, Fr = 2, Gl = 4, Ze = (e)
2646
2649
  shouldAnimateTransitions: t,
2647
2650
  intro: r
2648
2651
  }),
2649
- renderHover: ({ primary: e, group: t, related: r }) => /* @__PURE__ */ s(vt, {
2652
+ renderHover: ({ primary: e, group: t, related: r }) => /* @__PURE__ */ s(ft, {
2650
2653
  primary: e,
2651
2654
  companions: [...t, ...r]
2652
2655
  }),
2653
- renderHoverCompanions: ({ related: e }) => /* @__PURE__ */ s(vt, { companions: e }),
2656
+ renderHoverCompanions: ({ related: e }) => /* @__PURE__ */ s(ft, { companions: e }),
2654
2657
  getOverlayAnchor: ({ observation: e }) => {
2655
2658
  const t = _(e), r = se(e);
2656
2659
  if (t === null || r === null) return null;
@@ -2692,7 +2695,7 @@ function kt(e) {
2692
2695
  function Ad(e) {
2693
2696
  return e ? kt(e.render).overlay : !1;
2694
2697
  }
2695
- function Zf(e, t) {
2698
+ function $f(e, t) {
2696
2699
  return typeof e == "string" ? {
2697
2700
  ...t,
2698
2701
  geom: e
@@ -2714,7 +2717,7 @@ var Yt = (e) => {
2714
2717
  }, xd = () => {
2715
2718
  const e = /* @__PURE__ */ new Map();
2716
2719
  return Ln((t) => ({
2717
- hover: ct,
2720
+ hover: ut,
2718
2721
  tooltipAnchor: null,
2719
2722
  pointerRegions: [],
2720
2723
  isPointerSuspended: !1,
@@ -2877,9 +2880,9 @@ function Ld() {
2877
2880
  function Td(e) {
2878
2881
  const { engine: t, store: r } = ke();
2879
2882
  return ge((n, o) => {
2880
- const { hover: a, setHoverState: i, setTooltipAnchor: l } = r.getState(), d = n === null ? ct : t.resolveHoverByKey(e, n);
2883
+ const { hover: a, setHoverState: i, setTooltipAnchor: l } = r.getState(), d = n === null ? ut : t.resolveHoverByKey(e, n);
2881
2884
  if (d.primary === null) {
2882
- a.primary?.layerId === e && (i(ct), l(null));
2885
+ a.primary?.layerId === e && (i(ut), l(null));
2883
2886
  return;
2884
2887
  }
2885
2888
  i(d), l(o ? {
@@ -2922,7 +2925,7 @@ var Nd = ({ render: e, input: t }) => {
2922
2925
  readonly: "readonly",
2923
2926
  editable: "editable",
2924
2927
  pointAndEdit: "point-and-edit"
2925
- }, $e = {
2928
+ }, _e = {
2926
2929
  [ve.readonly]: {
2927
2930
  tooltips: !0,
2928
2931
  annotations: !0,
@@ -2966,7 +2969,7 @@ var Nd = ({ render: e, input: t }) => {
2966
2969
  editorSurface: !0,
2967
2970
  inlineTextEditing: !1
2968
2971
  }
2969
- }, Fd = new Set(Object.values(ve)), Dd = (e) => Fd.has(e), ir = (e) => Dd(e) ? e : ve.readonly, ft = {
2972
+ }, Fd = new Set(Object.values(ve)), Dd = (e) => Fd.has(e), ir = (e) => Dd(e) ? e : ve.readonly, pt = {
2970
2973
  enabled: !0,
2971
2974
  durationScale: 1,
2972
2975
  stagger: !0,
@@ -2974,13 +2977,13 @@ var Nd = ({ render: e, input: t }) => {
2974
2977
  maxAnimatedGeoms: 1500
2975
2978
  }, Od = (e, t) => t ? {
2976
2979
  intro: {
2977
- ...ft,
2980
+ ...pt,
2978
2981
  enabled: !1
2979
2982
  },
2980
2983
  transitions: !1
2981
2984
  } : typeof e == "boolean" ? {
2982
2985
  intro: {
2983
- ...ft,
2986
+ ...pt,
2984
2987
  enabled: e
2985
2988
  },
2986
2989
  transitions: e
@@ -2988,9 +2991,9 @@ var Nd = ({ render: e, input: t }) => {
2988
2991
  intro: Wd(e?.intro),
2989
2992
  transitions: e?.transitions ?? !0
2990
2993
  }, Wd = (e) => typeof e == "boolean" ? {
2991
- ...ft,
2994
+ ...pt,
2992
2995
  enabled: e
2993
- } : ts({}, ft, e), Gd = {
2996
+ } : ts({}, pt, e), Gd = {
2994
2997
  loading: "جاري التحميل",
2995
2998
  error: "حدث خطأ ما",
2996
2999
  axisLabels: { placeholder: "إضافة تسمية" },
@@ -3406,7 +3409,7 @@ var bc = "_19519k82", Sc = "_19519k83", wc = "_19519k85", Rc = "_19519k86", kc =
3406
3409
  width: 0,
3407
3410
  height: 0,
3408
3411
  toJSON: () => ({})
3409
- }, it = {
3412
+ }, st = {
3410
3413
  boundary: [],
3411
3414
  padding: Bc
3412
3415
  }, Mc = () => {
@@ -3527,12 +3530,12 @@ var bc = "_19519k82", Sc = "_19519k83", wc = "_19519k85", Rc = "_19519k86", kc =
3527
3530
  placement: t !== null ? t.placement : "right",
3528
3531
  middleware: t !== null ? [
3529
3532
  Ut(Ca),
3530
- Vt(it),
3531
- Gt(it)
3533
+ Vt(st),
3534
+ Gt(st)
3532
3535
  ] : [
3533
3536
  Ut(Pc),
3534
- Gt(it),
3535
- Vt(it)
3537
+ Gt(st),
3538
+ Vt(st)
3536
3539
  ],
3537
3540
  elements: { reference: r }
3538
3541
  }), Dc = ({ row: e, swatchShape: t, shouldHighlight: r, labelStyle: n, valueStyle: o, paddingInline: a, highlightBackground: i }) => /* @__PURE__ */ S("div", {
@@ -3546,7 +3549,7 @@ var bc = "_19519k82", Sc = "_19519k83", wc = "_19519k85", Rc = "_19519k86", kc =
3546
3549
  e.swatchColor === null ? /* @__PURE__ */ s("span", {
3547
3550
  className: wc,
3548
3551
  "aria-hidden": !0
3549
- }) : /* @__PURE__ */ s(Ze, {
3552
+ }) : /* @__PURE__ */ s($e, {
3550
3553
  shape: t,
3551
3554
  color: e.swatchColor,
3552
3555
  surface: "tooltip",
@@ -3568,11 +3571,11 @@ var bc = "_19519k82", Sc = "_19519k83", wc = "_19519k85", Rc = "_19519k86", kc =
3568
3571
  children: e.value
3569
3572
  })
3570
3573
  ]
3571
- }), dt = {
3574
+ }), ct = {
3572
3575
  plansByLayerId: null,
3573
3576
  coordKey: null,
3574
3577
  introEndsAtMs: 0
3575
- }, ur = z(dt), Oc = ({ intro: e, children: t }) => {
3578
+ }, ur = z(ct), Oc = ({ intro: e, children: t }) => {
3576
3579
  const { layers: r, coordSystem: n, scales: o } = I(X((i) => ({
3577
3580
  layers: i.layers,
3578
3581
  coordSystem: i.coordSystem,
@@ -3594,7 +3597,7 @@ var bc = "_19519k82", Sc = "_19519k83", wc = "_19519k85", Rc = "_19519k86", kc =
3594
3597
  const { plansByLayerId: t, coordKey: r } = D(ur), n = I((o) => wo(o.coordSystem));
3595
3598
  return t === null || r !== n ? null : t.get(e) ?? null;
3596
3599
  }, Uc = ({ layers: e, coordSystem: t, scales: r, intro: n }) => {
3597
- if (!n.enabled || e.reduce((l, d) => l + $a(d), 0) > n.maxAnimatedGeoms) return dt;
3600
+ if (!n.enabled || e.reduce((l, d) => l + $a(d), 0) > n.maxAnimatedGeoms) return ct;
3598
3601
  const o = {
3599
3602
  durationScale: n.durationScale,
3600
3603
  stagger: n.stagger,
@@ -3609,7 +3612,7 @@ var bc = "_19519k82", Sc = "_19519k83", wc = "_19519k85", Rc = "_19519k86", kc =
3609
3612
  });
3610
3613
  d !== null && a.set(l.id, d);
3611
3614
  }
3612
- if (a.size === 0) return dt;
3615
+ if (a.size === 0) return ct;
3613
3616
  const i = [...a.values()].reduce((l, d) => Math.max(l, ps(d)), 0);
3614
3617
  return {
3615
3618
  plansByLayerId: a,
@@ -3719,7 +3722,7 @@ var bc = "_19519k82", Sc = "_19519k83", wc = "_19519k85", Rc = "_19519k86", kc =
3719
3722
  default:
3720
3723
  return t;
3721
3724
  }
3722
- }, $c = (e) => e.fontSize * (e.lineHeight ?? Js), Io = (e) => e.reduce((t, r) => t + r, 0), _c = (e, t) => e ? t : 0, pt = (e, t, r) => {
3725
+ }, $c = (e) => e.fontSize * (e.lineHeight ?? Js), Io = (e) => e.reduce((t, r) => t + r, 0), _c = (e, t) => e ? t : 0, mt = (e, t, r) => {
3723
3726
  if (r) {
3724
3727
  const n = Number(e.size);
3725
3728
  return Number.isFinite(n) && n > 0 ? n : 0;
@@ -3735,11 +3738,11 @@ var bc = "_19519k82", Sc = "_19519k83", wc = "_19519k85", Rc = "_19519k86", kc =
3735
3738
  }
3736
3739
  const { item: l, swatch: d } = r, c = we(l), u = j(l, t), h = 2 * (l.paddingBlock + l.borderWidth), g = 2 * (l.paddingInline + l.borderWidth), v = a.aesthetics.includes("size");
3737
3740
  if (i) {
3738
- const A = v ? Math.max(0, ...a.items.map((m) => pt(m.visual, d.size, !0))) : d.size;
3741
+ const A = v ? Math.max(0, ...a.items.map((m) => mt(m.visual, d.size, !0))) : d.size;
3739
3742
  return Math.max(c, A) + h;
3740
3743
  }
3741
3744
  const f = a.items.map((A) => {
3742
- const m = e.measureText(A.formattedLabel, u).width, b = pt(A.visual, d.size, v);
3745
+ const m = e.measureText(A.formattedLabel, u).width, b = mt(A.visual, d.size, v);
3743
3746
  return b + (b > 0 ? o : 0) + m;
3744
3747
  });
3745
3748
  return Math.max(...f) + g;
@@ -3753,9 +3756,9 @@ var bc = "_19519k82", Sc = "_19519k83", wc = "_19519k85", Rc = "_19519k86", kc =
3753
3756
  headlineRowGap: t.headlineRowGap,
3754
3757
  itemGap: Rn(c).gap,
3755
3758
  headlineItemStyles: {
3756
- small: lt(c, "small"),
3757
- medium: lt(c, "medium"),
3758
- large: lt(c, "large")
3759
+ small: dt(c, "small"),
3760
+ medium: dt(c, "medium"),
3761
+ large: dt(c, "large")
3759
3762
  }
3760
3763
  }, f = zc({
3761
3764
  textMeasurer: e,
@@ -3905,10 +3908,10 @@ var bc = "_19519k82", Sc = "_19519k83", wc = "_19519k85", Rc = "_19519k86", kc =
3905
3908
  if (!e.has(t)) return e;
3906
3909
  const r = new Map(e);
3907
3910
  return r.delete(t), r;
3908
- }, No = "data-edit-kind", fu = "data-edit-id", pu = "observations", mu = /* @__PURE__ */ new Set(["annotation"]), Au = (e) => mu.has(e.kind), yu = (e, t) => e === t ? !0 : e === null || t === null || e.kind !== t.kind ? !1 : e.id === t.id, _e = (e) => ({
3911
+ }, No = "data-edit-kind", fu = "data-edit-id", pu = "observations", mu = /* @__PURE__ */ new Set(["annotation"]), Au = (e) => mu.has(e.kind), yu = (e, t) => e === t ? !0 : e === null || t === null || e.kind !== t.kind ? !1 : e.id === t.id, et = (e) => ({
3909
3912
  [No]: e.kind,
3910
3913
  [fu]: e.id
3911
- }), xu = () => ({ [No]: pu }), $f = (e, t) => e !== null && e.annotationId === t ? e : null, bu = (e, t) => e.annotationId === t.annotationId && e.translation.x === t.translation.x && e.translation.y === t.translation.y, _f = (e, t, r) => e !== null && e.annotationId === t && e.endpoint === r ? e : null, Su = (e, t) => e.annotationId === t.annotationId && e.endpoint === t.endpoint && e.anchor.x === t.anchor.x && e.anchor.y === t.anchor.y, ep = (e, t, r) => e !== null && e.annotationId === t && e.endpoint === r ? e : null, wu = (e, t) => e.annotationId === t.annotationId && e.endpoint === t.endpoint && Ha(e.point.anchor, t.point.anchor), tp = (e, t) => e !== null && e.annotationId === t ? e : null, Ru = (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, rp = (e, t) => e !== null && e.annotationId === t ? e : null, ku = (e, t) => e.annotationId === t.annotationId && e.at.x === t.at.x && e.width === t.width && e.shift === t.shift, Ke = ({ standingInteraction: e }, t) => e !== null && be(e, t) ? e : null, Eu = (e, t) => {
3914
+ }), xu = () => ({ [No]: pu }), _f = (e, t) => e !== null && e.annotationId === t ? e : null, bu = (e, t) => e.annotationId === t.annotationId && e.translation.x === t.translation.x && e.translation.y === t.translation.y, ep = (e, t, r) => e !== null && e.annotationId === t && e.endpoint === r ? e : null, Su = (e, t) => e.annotationId === t.annotationId && e.endpoint === t.endpoint && e.anchor.x === t.anchor.x && e.anchor.y === t.anchor.y, tp = (e, t, r) => e !== null && e.annotationId === t && e.endpoint === r ? e : null, wu = (e, t) => e.annotationId === t.annotationId && e.endpoint === t.endpoint && Ha(e.point.anchor, t.point.anchor), rp = (e, t) => e !== null && e.annotationId === t ? e : null, Ru = (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, np = (e, t) => e !== null && e.annotationId === t ? e : null, ku = (e, t) => e.annotationId === t.annotationId && e.at.x === t.at.x && e.width === t.width && e.shift === t.shift, Ke = ({ standingInteraction: e }, t) => e !== null && be(e, t) ? e : null, Eu = (e, t) => {
3912
3915
  if (e === null) return !1;
3913
3916
  switch (t.kind) {
3914
3917
  case "difference-arrow-endpoint-drag":
@@ -3947,13 +3950,13 @@ var bc = "_19519k82", Sc = "_19519k83", wc = "_19519k85", Rc = "_19519k86", kc =
3947
3950
  ...r.caret,
3948
3951
  editor: t
3949
3952
  } })
3950
- })), gr = z(null), Cu = Ho(), np = ({ children: e }) => {
3953
+ })), gr = z(null), Cu = Ho(), op = ({ children: e }) => {
3951
3954
  const [t] = V(() => Ho());
3952
3955
  return /* @__PURE__ */ s(gr.Provider, {
3953
3956
  value: t,
3954
3957
  children: e
3955
3958
  });
3956
- }, op = () => {
3959
+ }, ap = () => {
3957
3960
  const e = D(gr);
3958
3961
  if (e === null) throw new Error("useEditorStore must be used inside an <EditorProvider>.");
3959
3962
  return e;
@@ -4116,12 +4119,12 @@ var Ou = "vultop2", Wu = "vultop3", Gu = "vultop4", Uu = "vultop5", Vu = "vultop
4116
4119
  Title: null,
4117
4120
  Caption: null,
4118
4121
  TextAnnotation: null
4119
- }), ap = ({ editors: e, children: t }) => /* @__PURE__ */ s(Oo.Provider, {
4122
+ }), ip = ({ editors: e, children: t }) => /* @__PURE__ */ s(Oo.Provider, {
4120
4123
  value: e,
4121
4124
  children: t
4122
4125
  }), vr = () => D(Oo), Yr = "_4dlrid0", Xu = "xfz7dq0";
4123
4126
  var qu = "xfz7dq2", Ju = "xfz7dq3", Zu = "xfz7dq4", $u = "xfz7dq5", _u = ({ ref: e, footerRect: t, mode: r = ve.readonly, caption: n, isCaptionVisible: o, source: a, isSourceVisible: i, captionStyle: l, sourceStyle: d, brandMark: c }) => {
4124
- const { Caption: u } = vr(), h = $e[ir(r)].inlineTextEditing ? u : null, g = o && (h !== null || n !== null), v = i && a !== null && nh(a), f = c !== "hidden";
4127
+ const { Caption: u } = vr(), h = _e[ir(r)].inlineTextEditing ? u : null, g = o && (h !== null || n !== null), v = i && a !== null && nh(a), f = c !== "hidden";
4125
4128
  return !g && !v && !f ? null : /* @__PURE__ */ S("div", {
4126
4129
  ref: e,
4127
4130
  className: Xu,
@@ -4183,7 +4186,7 @@ var qu = "xfz7dq2", Ju = "xfz7dq3", Zu = "xfz7dq4", $u = "xfz7dq5", _u = ({ ref:
4183
4186
  }
4184
4187
  }, nh = (e) => e.label !== void 0 && e.label !== "" || e.url !== void 0 && e.url !== "" && Zt(e.url), oh = "_1k4qtbg0";
4185
4188
  var ah = 22, ih = ({ ref: e, headerRect: t, mode: r = ve.readonly, title: n, isTitleVisible: o, subtitle: a, isSubtitleVisible: i, headingStyle: l, subtitleStyle: d, brandMark: c }) => {
4186
- const { Title: u } = vr(), h = $e[ir(r)].inlineTextEditing ? u : null, g = h !== null, v = o && (g || n !== null), f = i && (g || a !== null), A = c !== "hidden";
4189
+ const { Title: u } = vr(), h = _e[ir(r)].inlineTextEditing ? u : null, g = h !== null, v = o && (g || n !== null), f = i && (g || a !== null), A = c !== "hidden";
4187
4190
  return !v && !f && !A ? null : /* @__PURE__ */ S("div", {
4188
4191
  ref: e,
4189
4192
  className: je(oh, A && "_1k4qtbg1"),
@@ -4233,7 +4236,7 @@ var ah = 22, ih = ({ ref: e, headerRect: t, mode: r = ve.readonly, title: n, isT
4233
4236
  }))] });
4234
4237
  }, lh = (e) => {
4235
4238
  const t = L();
4236
- return y(() => lt(t, e), [t, e]);
4239
+ return y(() => dt(t, e), [t, e]);
4237
4240
  }, Wo = () => {
4238
4241
  const e = L();
4239
4242
  return y(() => Rn(e), [e]);
@@ -4295,7 +4298,7 @@ var wh = ({ segment: e, itemStyle: t }) => {
4295
4298
  if (e.kind === "trendArrow") {
4296
4299
  const o = Vo(t, e.direction);
4297
4300
  return /* @__PURE__ */ s("div", {
4298
- className: ut(Sh, e.direction === "down" && "n7clvo4"),
4301
+ className: ht(Sh, e.direction === "down" && "n7clvo4"),
4299
4302
  style: {
4300
4303
  color: o,
4301
4304
  backgroundColor: e.direction === "flat" ? Y(p.textPrimary, 0.1) : Y(o, 0.2)
@@ -4317,7 +4320,7 @@ var wh = ({ segment: e, itemStyle: t }) => {
4317
4320
  });
4318
4321
  }, Rh = ({ swatch: e, size: t }) => {
4319
4322
  const r = me(), n = Rt(e.layerId, e.value, t);
4320
- return /* @__PURE__ */ s(Ze, {
4323
+ return /* @__PURE__ */ s($e, {
4321
4324
  shape: r(e.geom, "cartesian")?.swatchShape ?? "square",
4322
4325
  color: e.color,
4323
4326
  surface: "headline",
@@ -4422,7 +4425,7 @@ var wh = ({ segment: e, itemStyle: t }) => {
4422
4425
  var Lh = "_1oj6yix2", Th = 8, Nh = 16, Hh = 2, Fh = ({ legends: e, containerRect: t }) => {
4423
4426
  const r = Eo(), n = we(r), { placements: o, hasOverlap: a } = Dh(e, t, n), i = Wh(r);
4424
4427
  if (o.length === 0) return null;
4425
- const l = a ? Nh : Th, d = l - Hh, c = At(r.lineType);
4428
+ const l = a ? Nh : Th, d = l - Hh, c = yt(r.lineType);
4426
4429
  return /* @__PURE__ */ S("div", {
4427
4430
  className: Mh,
4428
4431
  children: [a && /* @__PURE__ */ s("svg", {
@@ -4548,7 +4551,7 @@ var qh = "_1dw9dgx0", Ft = "\0", Jh = (e, t) => {
4548
4551
  }), r;
4549
4552
  }, qo = ({ pill: e }) => e.isBubble ? /* @__PURE__ */ s(_h, { pill: e }) : /* @__PURE__ */ s($h, { pill: e }), Zh = ({ color: e, lineType: t, shape: r, label: n, layerId: o, groupValue: a }) => {
4550
4553
  const { swatch: i } = Ct(), l = Rt(o, a, i.size);
4551
- return e ? /* @__PURE__ */ s(Ze, {
4554
+ return e ? /* @__PURE__ */ s($e, {
4552
4555
  shape: r,
4553
4556
  color: e,
4554
4557
  surface: "legend",
@@ -4609,9 +4612,9 @@ var qh = "_1dw9dgx0", Ft = "\0", Jh = (e, t) => {
4609
4612
  const g = t === "left" || t === "right", v = d === null ? [] : Array.from({ length: d }, (f, A) => d - A);
4610
4613
  return /* @__PURE__ */ S(B, { children: [/* @__PURE__ */ S("div", {
4611
4614
  ref: u.setReference,
4612
- className: ut(Vh, d !== null && g && Qh[d], d !== null && !g && zh[d]),
4615
+ className: ht(Vh, d !== null && g && Qh[d], d !== null && !g && zh[d]),
4613
4616
  children: [d !== null && v.map((f) => /* @__PURE__ */ s("span", {
4614
- className: ut("_1kjk02r5", g ? Yh[d] : Kh[d]),
4617
+ className: ht("_1kjk02r5", g ? Yh[d] : Kh[d]),
4615
4618
  style: {
4616
4619
  ...c,
4617
4620
  ...rg(f, g)
@@ -4708,7 +4711,7 @@ var qh = "_1dw9dgx0", Ft = "\0", Jh = (e, t) => {
4708
4711
  if (u.length === 0) return null;
4709
4712
  const A = u.slice(0, f.visibleCount), m = u.slice(f.visibleCount), b = f.hasOverflow && m.length > 0, x = Ko(l.item);
4710
4713
  return /* @__PURE__ */ S("div", {
4711
- className: ut(ig[v], ng, {
4714
+ className: ht(ig[v], ng, {
4712
4715
  [ag]: h,
4713
4716
  [og]: !h,
4714
4717
  [sg[e === "left" ? "left" : "right"]]: h
@@ -4729,7 +4732,7 @@ var qh = "_1dw9dgx0", Ft = "\0", Jh = (e, t) => {
4729
4732
  }, cg = (e, t, r, n) => {
4730
4733
  const o = hg(e, r);
4731
4734
  return Math.max(t, o) + n;
4732
- }, ug = (e, t) => pt(e.visual, t, e.isBubble), hg = (e, t) => e.isBubble ? pt(e.visual, t, !0) : t, gg = ({ pillSizes: e, overflowPillSize: t, containerSize: r, gap: n }) => {
4735
+ }, ug = (e, t) => mt(e.visual, t, e.isBubble), hg = (e, t) => e.isBubble ? mt(e.visual, t, !0) : t, gg = ({ pillSizes: e, overflowPillSize: t, containerSize: r, gap: n }) => {
4733
4736
  if (e.length === 0) return {
4734
4737
  visibleCount: 0,
4735
4738
  hasOverflow: !1
@@ -4908,7 +4911,7 @@ var qh = "_1dw9dgx0", Ft = "\0", Jh = (e, t) => {
4908
4911
  function _o() {
4909
4912
  return D($o);
4910
4913
  }
4911
- var ip = (e, t, r) => {
4914
+ var sp = (e, t, r) => {
4912
4915
  for (const n of Object.values(ta)) {
4913
4916
  const o = n(e, t, r);
4914
4917
  if (o !== null) return o;
@@ -4934,7 +4937,7 @@ var ip = (e, t, r) => {
4934
4937
  height: n.height
4935
4938
  }
4936
4939
  };
4937
- }, st = (e, t) => (r, n, o) => {
4940
+ }, lt = (e, t) => (r, n, o) => {
4938
4941
  const a = e(r).find((i) => i.id === n);
4939
4942
  return a === void 0 ? null : t(a, o);
4940
4943
  }, ea = (e, t, r = 0) => {
@@ -4949,15 +4952,15 @@ var ip = (e, t, r) => {
4949
4952
  }
4950
4953
  };
4951
4954
  }, ta = {
4952
- text: st((e) => e.textAnnotations, kg),
4953
- shape: st((e) => e.shapes, (e, t) => wg(e.region, Cn(t.chromeReaders, e.id).borderWidth, t.panel)),
4954
- image: st((e) => e.images, (e, t) => ea(e.region, t.panel)),
4955
- arrow: st((e) => e.arrows, (e, t) => Rg(e, t.panel))
4955
+ text: lt((e) => e.textAnnotations, kg),
4956
+ shape: lt((e) => e.shapes, (e, t) => wg(e.region, Cn(t.chromeReaders, e.id).borderWidth, t.panel)),
4957
+ image: lt((e) => e.images, (e, t) => ea(e.region, t.panel)),
4958
+ arrow: lt((e) => e.arrows, (e, t) => Rg(e, t.panel))
4956
4959
  }, Eg = (e, t) => {
4957
4960
  const r = ni(e, t);
4958
4961
  return r !== null && Sg(r.kind) && Ai(r);
4959
4962
  }, Cg = 200, Pg = ({ engine: e, store: t, overlayRef: r }) => {
4960
- const n = $e[_o()].tolerance;
4963
+ const n = _e[_o()].tolerance;
4961
4964
  F(() => {
4962
4965
  const o = r.current;
4963
4966
  if (!o) return;
@@ -5018,7 +5021,7 @@ var ip = (e, t, r) => {
5018
5021
  b.setHoverState(t.query(w, n)), b.setTooltipAnchor(null);
5019
5022
  }, c = () => {
5020
5023
  const f = r.getState();
5021
- f.hover.primary === null && f.tooltipAnchor === null || (f.setHoverState(ct), f.setTooltipAnchor(null));
5024
+ f.hover.primary === null && f.tooltipAnchor === null || (f.setHoverState(ut), f.setTooltipAnchor(null));
5022
5025
  }, u = (f) => {
5023
5026
  const A = r.getState();
5024
5027
  if (A.pointerRegions.length === 0) return !1;
@@ -5041,7 +5044,7 @@ var ip = (e, t, r) => {
5041
5044
  e.removeEventListener("pointermove", g), e.removeEventListener("pointerleave", v), document.removeEventListener("pointermove", h), a !== null && cancelAnimationFrame(a), o = null;
5042
5045
  };
5043
5046
  }, Lg = ({ panelRect: e }) => {
5044
- const { engine: t, store: r, overlayRef: n } = ke(), o = $e[_o()].observationsPress, a = ye((u) => {
5047
+ const { engine: t, store: r, overlayRef: n } = ke(), o = _e[_o()].observationsPress, a = ye((u) => {
5045
5048
  const h = u.editTargetUnderPointer;
5046
5049
  return h?.kind === "annotation" ? h.id : null;
5047
5050
  }), i = ye((u) => {
@@ -5077,7 +5080,7 @@ var ip = (e, t, r) => {
5077
5080
  }, Hg = () => {
5078
5081
  const e = L();
5079
5082
  return y(() => (t) => ki(e, t), [e]);
5080
- }, Bt = () => ye((e) => Ke(e, "move-drag")?.annotationId ?? Ke(e, "shape-resize-drag")?.annotationId ?? Ke(e, "arrow-endpoint-drag")?.annotationId ?? null), et = (e) => {
5083
+ }, Bt = () => ye((e) => Ke(e, "move-drag")?.annotationId ?? Ke(e, "shape-resize-drag")?.annotationId ?? Ke(e, "arrow-endpoint-drag")?.annotationId ?? null), tt = (e) => {
5081
5084
  const t = I((i) => i.annotations), r = du(), n = hu(), o = ge((i) => Xr(n, "cycle", i, `Annotation reference cycle detected; dropping annotation(s): ${i.join(", ")}`), [n]), a = ge((i) => Xr(n, "missing-ref", i, `Annotation reference target(s) no longer exist (dropped during compilation); dropping annotations referencing: ${i.join(", ")}`), [n]);
5082
5085
  return y(() => Ti({
5083
5086
  annotations: t,
@@ -5188,7 +5191,7 @@ var ip = (e, t, r) => {
5188
5191
  return r;
5189
5192
  }
5190
5193
  }, zg = ({ panelRect: e, isEditable: t }) => {
5191
- const { arrows: r } = et(e), n = Bt(), o = Hg(), a = y(() => r.filter((i) => i.id !== n).flatMap((i) => {
5194
+ const { arrows: r } = tt(e), n = Bt(), o = Hg(), a = y(() => r.filter((i) => i.id !== n).flatMap((i) => {
5192
5195
  const l = o(i.id), d = ja({
5193
5196
  arrow: i,
5194
5197
  style: l,
@@ -5210,7 +5213,7 @@ var ip = (e, t, r) => {
5210
5213
  transform: `translate(${e.x}, ${e.y})`,
5211
5214
  "data-testid": "arrows",
5212
5215
  children: a.map(({ computed: i, style: l }) => /* @__PURE__ */ s("g", {
5213
- ..._e({
5216
+ ...et({
5214
5217
  kind: "annotation",
5215
5218
  id: i.id
5216
5219
  }),
@@ -5289,7 +5292,7 @@ var ip = (e, t, r) => {
5289
5292
  return /* @__PURE__ */ S("g", {
5290
5293
  className: n === d ? jg : void 0,
5291
5294
  "data-warning": b || void 0,
5292
- ..._e({
5295
+ ...et({
5293
5296
  kind: "annotation",
5294
5297
  id: d
5295
5298
  }),
@@ -5334,7 +5337,7 @@ var ip = (e, t, r) => {
5334
5337
  clipPath: d ? `url(#${n})` : void 0
5335
5338
  })] });
5336
5339
  }, qr = ({ panelRect: e, zOrder: t }) => {
5337
- const r = et(e).images, n = Zg(), o = Bt(), a = r.filter((i) => i.zOrder === t && i.id !== o);
5340
+ const r = tt(e).images, n = Zg(), o = Bt(), a = r.filter((i) => i.zOrder === t && i.id !== o);
5338
5341
  return a.length === 0 ? null : /* @__PURE__ */ s("svg", {
5339
5342
  x: e.x,
5340
5343
  y: e.y,
@@ -5343,7 +5346,7 @@ var ip = (e, t, r) => {
5343
5346
  overflow: "visible",
5344
5347
  "data-testid": `image-annotations-${t}`,
5345
5348
  children: a.map((i) => /* @__PURE__ */ s("g", {
5346
- ..._e({
5349
+ ...et({
5347
5350
  kind: "annotation",
5348
5351
  id: i.id
5349
5352
  }),
@@ -5370,7 +5373,7 @@ var ip = (e, t, r) => {
5370
5373
  strokeWidth: t.borderWidth
5371
5374
  });
5372
5375
  }, Jr = ({ panelRect: e, zOrder: t }) => {
5373
- const r = et(e).shapes, n = ev(), o = Bt(), a = r.filter((i) => i.zOrder === t && i.id !== o);
5376
+ const r = tt(e).shapes, n = ev(), o = Bt(), a = r.filter((i) => i.zOrder === t && i.id !== o);
5374
5377
  return a.length === 0 ? null : /* @__PURE__ */ s("svg", {
5375
5378
  x: e.x,
5376
5379
  y: e.y,
@@ -5379,7 +5382,7 @@ var ip = (e, t, r) => {
5379
5382
  overflow: "visible",
5380
5383
  "data-testid": `shapes-${t}`,
5381
5384
  children: a.map((i) => /* @__PURE__ */ s("g", {
5382
- ..._e({
5385
+ ...et({
5383
5386
  kind: "annotation",
5384
5387
  id: i.id
5385
5388
  }),
@@ -5393,7 +5396,7 @@ var ip = (e, t, r) => {
5393
5396
  }, rv = () => {
5394
5397
  const e = L();
5395
5398
  return y(() => (t) => ji(e, t), [e]);
5396
- }, nv = "_1aj6s5s0", sp = "_1aj6s5s1", ov = 0.1, lp = ({ annotation: e, panel: t, style: r, blockRef: n }) => /* @__PURE__ */ s(na, {
5399
+ }, nv = "_1aj6s5s0", lp = "_1aj6s5s1", ov = 0.1, dp = ({ annotation: e, panel: t, style: r, blockRef: n }) => /* @__PURE__ */ s(na, {
5397
5400
  annotation: e,
5398
5401
  panel: t,
5399
5402
  style: r,
@@ -5440,7 +5443,7 @@ var ip = (e, t, r) => {
5440
5443
  boxShadow: `0 0 0 ${e.borderWidth}px ${r}`
5441
5444
  };
5442
5445
  }, lv = (e) => {
5443
- const t = et(e).textAnnotations, r = ye((n) => Ke(n, "text-resize-drag"));
5446
+ const t = tt(e).textAnnotations, r = ye((n) => Ke(n, "text-resize-drag"));
5444
5447
  return y(() => t.map((n) => dv(n, r)), [t, r]);
5445
5448
  }, dv = (e, t) => t === null || t.annotationId !== e.id ? e : {
5446
5449
  ...e,
@@ -5467,7 +5470,7 @@ var ip = (e, t, r) => {
5467
5470
  }, uv = ({ annotation: e, panel: t, style: r }) => {
5468
5471
  const n = uu(e.id), o = ye((i) => i.caret?.annotationId === e.id), { TextAnnotation: a } = vr();
5469
5472
  return /* @__PURE__ */ s("g", {
5470
- ..._e({
5473
+ ...et({
5471
5474
  kind: "annotation",
5472
5475
  id: e.id
5473
5476
  }),
@@ -5592,7 +5595,7 @@ var pv = (e, t, r, n) => t !== "comment" ? r : Mn(r, 140, (o) => e.measureText(o
5592
5595
  style: xv(A.label),
5593
5596
  children: [v.kind === "pinned-number" && /* @__PURE__ */ s("span", {
5594
5597
  className: "ph8bdc1",
5595
- children: /* @__PURE__ */ s(Ze, {
5598
+ children: /* @__PURE__ */ s($e, {
5596
5599
  shape: o(f.geom, n.type)?.swatchShape ?? "square",
5597
5600
  surface: "callout",
5598
5601
  color: b ?? "currentColor",
@@ -5650,7 +5653,7 @@ var pv = (e, t, r, n) => t !== "comment" ? r : Mn(r, 140, (o) => e.measureText(o
5650
5653
  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+S7MfqinJmpwBUdeDgCMPFDgMPf8HVljCWvueaaO9rbO5bF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) => {
5653
- const t = et(e).stickers, r = L().graph.get("textScale");
5656
+ const t = tt(e).stickers, r = L().graph.get("textScale");
5654
5657
  if (t.length === 0) return null;
5655
5658
  const n = Sv(Rv, r);
5656
5659
  return /* @__PURE__ */ s("svg", {
@@ -5868,7 +5871,7 @@ var Iv = "_1agclyl2", ia = ({ x: e, y: t, width: r, height: n, text: o, isRotate
5868
5871
  ...u,
5869
5872
  stroke: a.color,
5870
5873
  strokeWidth: a.strokeWidth,
5871
- strokeDasharray: At(a.lineType)
5874
+ strokeDasharray: yt(a.lineType)
5872
5875
  }), /* @__PURE__ */ s(Hv, {
5873
5876
  edge: e.position,
5874
5877
  position: c,
@@ -5958,7 +5961,7 @@ var Iv = "_1agclyl2", ia = ({ x: e, y: t, width: r, height: n, text: o, isRotate
5958
5961
  style: { overflow: "visible" },
5959
5962
  children: e.map((l) => {
5960
5963
  if (l.geometry !== "linear" || !l.gridVisible) return null;
5961
- const d = l.position === "bottom" || l.position === "top", c = Wt(o, Le(l.scaleAestheticKey)), u = At(c.lineType);
5964
+ const d = l.position === "bottom" || l.position === "top", c = Wt(o, Le(l.scaleAestheticKey)), u = yt(c.lineType);
5962
5965
  return /* @__PURE__ */ s("g", { children: l.ticks.map((h, g) => {
5963
5966
  const v = Kv(d, h.position);
5964
5967
  if (v !== null && t[v] > 0) return null;
@@ -6011,7 +6014,7 @@ var Iv = "_1agclyl2", ia = ({ x: e, y: t, width: r, height: n, text: o, isRotate
6011
6014
  d: jv(i.segments),
6012
6015
  fill: "none",
6013
6016
  stroke: i.color,
6014
- strokeDasharray: At(i.lineType),
6017
+ strokeDasharray: yt(i.lineType),
6015
6018
  strokeWidth: i.strokeWidth,
6016
6019
  ...sa
6017
6020
  }, l))
@@ -6612,7 +6615,7 @@ var rf = 4, nf = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
6612
6615
  children: a
6613
6616
  })
6614
6617
  });
6615
- }, dp = (e) => /* @__PURE__ */ s($d, {
6618
+ }, cp = (e) => /* @__PURE__ */ s($d, {
6616
6619
  locale: su(),
6617
6620
  children: /* @__PURE__ */ s(Pf, { ...e })
6618
6621
  }), Pf = ({ slots: e, sizing: t = wf, onResize: r, ...n }) => /* @__PURE__ */ s(wd, { children: /* @__PURE__ */ s(Al, { children: /* @__PURE__ */ s(Tl, {
@@ -6639,7 +6642,7 @@ var rf = 4, nf = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
6639
6642
  headlineConfig: Z.config.headline,
6640
6643
  content: Z.config.content,
6641
6644
  overflowStrategy: Z.config.panel.overflow
6642
- }))), x = _i(), { intro: w, transitions: k } = y(() => Od(r, x ?? !1), [r, x]), { headerRef: C, footerRef: E, measurements: N } = Rf(), { formattingLocale: H, colorScheme: U } = K(), W = $e[i], q = W.editorSurface, [fr, da] = V(null), ca = ie("Header", ih), ua = ie("Footer", _u), ha = ie("Legend", fg), ga = ie("Headline", Bh), va = ie("EditorSurface", Ef), pr = y(() => ii({
6645
+ }))), x = _i(), { intro: w, transitions: k } = y(() => Od(r, x ?? !1), [r, x]), { headerRef: C, footerRef: E, measurements: N } = Rf(), { formattingLocale: H, colorScheme: U } = K(), W = _e[i], q = W.editorSurface, [fr, da] = V(null), ca = ie("Header", ih), ua = ie("Footer", _u), ha = ie("Legend", fg), ga = ie("Headline", Bh), va = ie("EditorSurface", Ef), pr = y(() => ii({
6643
6646
  legends: d,
6644
6647
  numberFormat: u,
6645
6648
  parsingLocale: h,
@@ -6663,7 +6666,7 @@ var rf = 4, nf = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
6663
6666
  h,
6664
6667
  H,
6665
6668
  a
6666
- ]), fa = Re(), O = L(), tt = y(() => Sn(O), [O]), mr = y(() => kn(O), [O]), Ar = Wo(), It = O.graph.get("fontFamily"), pa = Di(O), ma = O.graph.get("textScale"), Aa = y(() => Oi(O), [O]), ya = y(() => Yi(O), [O]), xa = y(() => Ii(O), [O]), ba = y(() => Ki(O), [O]), yr = y(() => _n(U, {}, It), [U, It]), Mt = tt.borderColor === void 0 ? 0 : tt.borderWidth, Oe = y(() => ({
6669
+ ]), fa = Re(), O = L(), rt = y(() => Sn(O), [O]), mr = y(() => kn(O), [O]), Ar = Wo(), It = O.graph.get("fontFamily"), pa = Di(O), ma = O.graph.get("textScale"), Aa = y(() => Oi(O), [O]), ya = y(() => Yi(O), [O]), xa = y(() => Ii(O), [O]), ba = y(() => Ki(O), [O]), yr = y(() => _n(U, {}, It), [U, It]), Mt = rt.borderColor === void 0 ? 0 : rt.borderWidth, Oe = y(() => ({
6667
6670
  width: Math.max(0, e - 2 * Mt),
6668
6671
  height: Math.max(0, t - 2 * Mt)
6669
6672
  }), [
@@ -6684,12 +6687,12 @@ var rf = 4, nf = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
6684
6687
  A.size,
6685
6688
  A.position,
6686
6689
  v
6687
- ]), rt = nu({
6690
+ ]), nt = nu({
6688
6691
  textMeasurer: fa,
6689
6692
  metrics: yr,
6690
6693
  overrides: Nl()
6691
6694
  }), br = y(() => Za(mr), [mr]), We = ou({
6692
- measurer: rt,
6695
+ measurer: nt,
6693
6696
  axes: l,
6694
6697
  numberFormat: u,
6695
6698
  parsingLocale: h,
@@ -6705,16 +6708,16 @@ var rf = 4, nf = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
6705
6708
  panelBorder: br,
6706
6709
  padding: y(() => Fi(O), [O]),
6707
6710
  margins: y(() => Mi(O), [O])
6708
- }), nt = y(() => !We || !Ee || !rt ? null : Wi({
6711
+ }), ot = y(() => !We || !Ee || !nt ? null : Wi({
6709
6712
  headline: Ee,
6710
6713
  layout: We.layout,
6711
6714
  containerSize: Oe,
6712
- measurer: rt,
6715
+ measurer: nt,
6713
6716
  itemGap: Ar.gap
6714
6717
  }), [
6715
6718
  We,
6716
6719
  Ee,
6717
- rt,
6720
+ nt,
6718
6721
  Oe,
6719
6722
  Ar.gap
6720
6723
  ]);
@@ -6725,7 +6728,7 @@ var rf = 4, nf = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
6725
6728
  children: /* @__PURE__ */ s(lc, {
6726
6729
  colorScheme: U,
6727
6730
  textScale: ma,
6728
- graphBackground: tt.background,
6731
+ graphBackground: rt.background,
6729
6732
  graphFontFamily: It,
6730
6733
  headingFontFamily: pa,
6731
6734
  children: /* @__PURE__ */ s(ul, {
@@ -6733,7 +6736,7 @@ var rf = 4, nf = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
6733
6736
  children: /* @__PURE__ */ s(lu, { children: /* @__PURE__ */ s(Pu, {
6734
6737
  panelRect: J.panel,
6735
6738
  children: /* @__PURE__ */ s(Cf, {
6736
- graphChrome: tt,
6739
+ graphChrome: rt,
6737
6740
  isEditable: q,
6738
6741
  mode: i,
6739
6742
  contentRef: q ? da : void 0,
@@ -6787,11 +6790,11 @@ var rf = 4, nf = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
6787
6790
  formattedLegends: pr,
6788
6791
  rects: J.legends
6789
6792
  }),
6790
- De && nt && /* @__PURE__ */ s(ga, {
6793
+ De && ot && /* @__PURE__ */ s(ga, {
6791
6794
  headline: De,
6792
- rect: nt.rect,
6793
- resolvedSize: nt.resolvedSize,
6794
- visibleItemCount: nt.visibleItemCount,
6795
+ rect: ot.rect,
6796
+ resolvedSize: ot.resolvedSize,
6797
+ visibleItemCount: ot.visibleItemCount,
6795
6798
  isInDonutHole: Ee !== void 0 && xi(Ee)
6796
6799
  }),
6797
6800
  q && fr !== null && /* @__PURE__ */ s(va, {
@@ -6806,7 +6809,7 @@ var rf = 4, nf = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
6806
6809
  })
6807
6810
  })
6808
6811
  });
6809
- }, cp = (e) => {
6812
+ }, up = (e) => {
6810
6813
  const t = D(Hn);
6811
6814
  return y(() => e || (t ? {
6812
6815
  commands: t.commands,
@@ -6818,10 +6821,10 @@ var rf = 4, nf = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
6818
6821
  setSelection: (r) => t.selectionStore.getState().setSelection(r),
6819
6822
  subscribeSelection: t.selectionStore.subscribe
6820
6823
  } : null), [e, t]);
6821
- }, up = (e) => $i(e.subscribe, e.getScene, e.getScene), hp = () => {
6824
+ }, hp = (e) => $i(e.subscribe, e.getScene, e.getScene), gp = () => {
6822
6825
  const { commands: e } = K();
6823
6826
  return e;
6824
- }, gp = (e) => {
6827
+ }, vp = (e) => {
6825
6828
  if (e.altKey || !e.metaKey && !e.ctrlKey) return null;
6826
6829
  const t = e.key.toLowerCase();
6827
6830
  return t === "z" ? e.shiftKey ? "redo" : "undo" : t === "y" && e.ctrlKey && !e.shiftKey ? "redo" : null;
@@ -6830,24 +6833,24 @@ export {
6830
6833
  uc as $,
6831
6834
  _u as A,
6832
6835
  vl as At,
6833
- tp as B,
6834
- I as Bt,
6836
+ rp as B,
6837
+ Ze as Bt,
6835
6838
  wg as C,
6836
6839
  md as Ct,
6837
6840
  Ah as D,
6838
- qf as Dt,
6841
+ Jf as Dt,
6839
6842
  _o as E,
6840
6843
  Ul as Et,
6841
- np as F,
6842
- Xf as Ft,
6844
+ op as F,
6845
+ qf as Ft,
6843
6846
  No as G,
6844
- _f as H,
6845
- K as Ht,
6847
+ ep as H,
6848
+ Hn as Ht,
6846
6849
  ye as I,
6847
- Yf as It,
6850
+ jf as It,
6848
6851
  su as J,
6849
6852
  uu as K,
6850
- op as L,
6853
+ ap as L,
6851
6854
  wt as Lt,
6852
6855
  Do as M,
6853
6856
  Ve as Mt,
@@ -6856,31 +6859,32 @@ export {
6856
6859
  Uo as O,
6857
6860
  Al as Ot,
6858
6861
  Bu as P,
6859
- jf as Pt,
6862
+ Xf as Pt,
6860
6863
  cc as Q,
6861
6864
  Ke as R,
6862
- T as Rt,
6865
+ Yf as Rt,
6863
6866
  Rg as S,
6864
6867
  Ad as St,
6865
- ip as T,
6868
+ sp as T,
6866
6869
  Ae as Tt,
6867
- $f as U,
6868
- as as Ut,
6869
- ep as V,
6870
- Hn as Vt,
6870
+ _f as U,
6871
+ K as Ut,
6872
+ tp as V,
6873
+ I as Vt,
6871
6874
  fu as W,
6875
+ as as Wt,
6872
6876
  Lc as X,
6873
6877
  ko as Y,
6874
6878
  Ie as Z,
6875
6879
  Qg as _,
6876
6880
  wd as _t,
6877
- dp as a,
6881
+ cp as a,
6878
6882
  yo as at,
6879
6883
  Hg as b,
6880
6884
  yd as bt,
6881
6885
  wv as c,
6882
6886
  sr as ct,
6883
- sp as d,
6887
+ lp as d,
6884
6888
  Td as dt,
6885
6889
  Gr as et,
6886
6890
  rv as f,
@@ -6889,9 +6893,9 @@ export {
6889
6893
  Rd as gt,
6890
6894
  _g as h,
6891
6895
  fo as ht,
6892
- cp as i,
6896
+ up as i,
6893
6897
  sc as it,
6894
- ap as j,
6898
+ ip as j,
6895
6899
  L as jt,
6896
6900
  ih as k,
6897
6901
  Re as kt,
@@ -6899,29 +6903,29 @@ export {
6899
6903
  ve as lt,
6900
6904
  ev as m,
6901
6905
  Pd as mt,
6902
- hp as n,
6906
+ gp as n,
6903
6907
  lc as nt,
6904
6908
  Pf as o,
6905
6909
  $d as ot,
6906
6910
  tv as p,
6907
6911
  Id as pt,
6908
6912
  du as q,
6909
- up as r,
6913
+ hp as r,
6910
6914
  dr as rt,
6911
6915
  Qv as s,
6912
6916
  Ao as st,
6913
- gp as t,
6917
+ vp as t,
6914
6918
  dc as tt,
6915
- lp as u,
6916
- $e as ut,
6919
+ dp as u,
6920
+ _e as ut,
6917
6921
  Wg as v,
6918
6922
  ke as vt,
6919
6923
  kg as w,
6920
- Jf as wt,
6924
+ Zf as wt,
6921
6925
  Eg as x,
6922
- Zf as xt,
6923
- et as y,
6926
+ $f as xt,
6927
+ tt as y,
6924
6928
  Yt as yt,
6925
- rp as z,
6926
- bt as zt
6929
+ np as z,
6930
+ T as zt
6927
6931
  };