@graphysdk/react-renderer 1.9.0-beta.1790021834668 → 1.9.0-beta.1790062857454

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.
package/dist/editable.mjs CHANGED
@@ -1,43 +1,43 @@
1
- import { $ as lt, $t as Q, A as st, Bt as $o, C as Wo, D as Uo, E as Se, Et as j, F as Ko, G as $, H as qo, Ht as Xo, I as T, It as Zo, J as V, Jt as Ne, K as jo, Kt as xr, Mt as Yo, Nt as wr, O as Jo, P as Qo, Q as Vt, Qt as Tr, S as ei, St as ce, Tt as He, U as ti, Ut as ni, Vt as ri, W as X, Wt as ai, X as $t, Xt as oi, Y as Wt, Yt as ii, Z as Ar, Zt as li, _ as kr, _t as ke, a as si, at as ci, b as di, bt as ui, ct as re, d as hi, et as pi, f as mi, g as Ut, h as gi, ht as vi, i as W, in as F, it as fi, k as Lr, l as Pr, m as Ir, mt as I, n as bi, nn as z, nt as yi, ot as fn, p as Si, pt as Ci, q as bn, qt as Kt, r as de, s as xi, st as wi, t as Ti, tt as Er, u as Ai, ut as qt, v as Le, w as ki, x as Or, xt as Li, y as Pi, yt as Ii, z as Ei } from "./use-target-boundary-SrbUBtYI.js";
2
- import { n as he, t as Mr } from "./theme.contract.css-AyXDNf0F.js";
3
- import { ARROW_DEFAULTS as Oi, ARROW_STICKER_DECLARATIONS as Mi, ARROW_STROKE_WIDTHS_PX as xt, AddAnnotationCommand as fe, AddHighlightCommand as Ni, BORDER_RADIUS_TOKENS as yn, COMBO_TYPES as Sn, CONSTANT_VARIABLES as Ri, DEFAULT_BAR_BORDER_RADIUS as Di, DEFAULT_POINT_SIZE_PX as _i, DEFAULT_STROKE_WIDTH_PX as zi, DIFFERENCE_ARROW_DEFAULTS as Nr, DIFFERENCE_ARROW_SIZE_DECLARATIONS as Cn, InternalError as Fi, MAX_BAR_WIDTH_FRACTION as Bi, MIN_BAR_WIDTH_FRACTION as Hi, MoveAnnotationCommand as Gi, RESTING_HOVER_STATE as Xt, RemoveAnnotationCommand as De, RemoveHighlightCommand as Vi, SHAPE_DEFAULTS as $i, SetAxisLabelCommand as Wi, SetAxisPositionCommand as Ui, SetAxisTickModeCommand as Ki, SetAxisTicksVisibilityCommand as qi, SetAxisVisibilityCommand as Xi, SetBarBorderRadiusCommand as Zi, SetBarWidthCommand as ji, SetChartTypeCommand as Rr, SetContentCaptionCommand as Dr, SetContentSourceCommand as Yi, SetContentSubtitleCommand as _r, SetContentTitleCommand as zr, SetDataLabelsFormatCommand as Ji, SetDifferenceArrowStyleCommand as Qi, SetGridLineStyleCommand as el, SetGridLineWidthCommand as tl, SetGridVisibilityCommand as nl, SetHeadlineCompareWithCommand as rl, SetHeadlinePositionCommand as al, SetHeadlineShowCommand as xn, SetHeadlineSizeCommand as ol, SetHighlightDimStyleCommand as il, SetLayerYScaleTypeCommand as ll, SetLegendAlignCommand as sl, SetLegendDisplayCommand as cl, SetLegendPositionCommand as dl, SetLineCurveCommand as ul, SetLineMissingValuesCommand as hl, SetLineWidthCommand as wn, SetMappingCommand as pl, SetNumberFormatAbbreviationCommand as ml, SetNumberFormatDecimalsCommand as Tn, SetPointSizeCommand as gl, SetPolarInnerRadiusCommand as vl, SetPolarStartAngleCommand as fl, SetRuleLabelCommand as bl, SetRuleValueCommand as yl, SetScaleDomainCommand as Ke, SetScaleReverseCommand as Sl, SetScaleTransformCommand as Cl, SetScaleZeroCommand as An, SetStatLineCommand as xl, SetStyleRuleCommand as we, TEXT_ANNOTATION_DEFAULTS as wl, TEXT_ANNOTATION_FADE_ALPHA as Tl, ToggleCategoryLabelsCommand as Al, ToggleContentVisibilityCommand as ct, ToggleDataLabelsCommand as kl, ToggleGoalLineCommand as Ll, ToggleLineFillCommand as Pl, ToggleLinePointsCommand as Il, ToggleStackTotalsCommand as El, UpdateAnnotationCommand as ie, alignUnitFractions as Ol, areAnchorsEqual as Fr, areEditTargetsEqual as Ml, areEndpointsComparable as Nl, buildEditMenuTriggerRegion as Rl, buildLayerStyleAddress as Dl, buildObservationPredicate as _l, buildObservationsTarget as Zt, buildObservationsTargetAtValue as Br, canAnchorDirectLabels as zl, canBecomeCombo as Fl, canBecomeHeatmap as Bl, canPlaceDataLabels as Hl, clampAnnotationTranslation as Gl, computeArrow as Hr, createObservationAnchorBuilder as Vl, createObservationAnchorParser as $l, createStyleResolver as Wl, createValueFormatter as Ul, filterLayersByGeoms as Pt, findAnnotation as Kl, findAverageLineLayer as ql, findCompanionLayers as Gr, findGoalLineLayer as Xl, findHighlightsAtObservation as Zl, findKindStyleDeclarations as jl, findLayerByGeom as Vr, findLayerById as Pe, findObservationAttachment as Yl, findStyleRule as ye, findTrendLineLayer as Jl, formatDifferenceLabel as Ql, getBoundingRect as It, getX as es, getY as ts, hasMultipleGroups as ns, inferDefaultDifferenceArrowEndpoints as rs, inferDifferenceArrowEndpoints as as, isComboChartType as xe, isCompanionLayer as $r, isObservationAttachmentKind as os, isPointWithinEditMenuTrigger as jt, isSafeUrl as is, measureObservationsBoxes as ls, projectAnchorToPanel as Je, readBroadestObservationsScope as ss, readChartType as Wr, readComboLineLayerId as cs, readCompanionRowsAtScopeKey as ds, readConstantValue as us, readHighlightDimStyle as hs, readMappableAesthetics as ps, readMappedVariable as ms, readObservationIndex as Ur, readRowScopeKey as gs, readRowsAtScopeKey as vs, readScopeXVariable as fs, readVariableName as Kr, resolveArrowAnnotationStyle as Yt, resolveBarBandFraction as bs, resolveComparisonBasis as ys, resolveDifferenceArrowAnnotationStyle as Ss, resolveEditOutlineStyle as Cs, resolveObservationPoint as qr, resolveObservationsTarget as kn, stepDifferenceArrowEndpoint as xs, toPanelCursor as dt } from "@graphysdk/viz-engine";
4
- import { createContext as Ge, memo as Xr, useCallback as ae, useContext as _e, useEffect as _, useId as Te, useLayoutEffect as Ae, useMemo as O, useRef as ne, useState as ee } from "react";
1
+ import { $ as it, $t as Q, A as lt, Bt as Vo, C as $o, D as Wo, E as Se, Et as j, F as Uo, G as $, H as Ko, Ht as qo, I as T, It as Xo, J as V, Jt as Ne, K as Zo, Kt as Cr, Mt as jo, Nt as xr, O as Yo, P as Jo, Q as Vt, Qt as wr, S as Qo, St as de, Tt as He, U as ei, Ut as ti, Vt as ni, W as X, Wt as ri, X as $t, Xt as ai, Y as Wt, Yt as oi, Z as Tr, Zt as ii, _ as Ar, _t as ke, a as li, at as si, b as ci, bt as di, ct as re, d as ui, et as hi, f as pi, g as Ut, h as mi, ht as gi, i as W, in as F, it as vi, k as kr, l as Lr, m as Pr, mt as I, n as fi, nn as z, nt as bi, ot as fn, p as yi, pt as Si, q as bn, qt as Kt, r as ue, s as Ci, st as xi, t as wi, tt as Ir, u as Ti, ut as qt, v as Le, w as Ai, x as Er, xt as ki, y as Li, yt as Pi, z as Ii } from "./use-target-boundary-DRERENTi.js";
2
+ import { n as pe, t as Or } from "./theme.contract.css-AyXDNf0F.js";
3
+ import { ARROW_DEFAULTS as Ei, ARROW_STICKER_DECLARATIONS as Oi, ARROW_STROKE_WIDTHS_PX as Ct, AddAnnotationCommand as fe, AddHighlightCommand as Mi, BORDER_RADIUS_TOKENS as yn, COMBO_TYPES as Sn, CONSTANT_VARIABLES as Ni, DEFAULT_BAR_BORDER_RADIUS as Ri, DEFAULT_POINT_SIZE_PX as Di, DEFAULT_STROKE_WIDTH_PX as _i, DIFFERENCE_ARROW_DEFAULTS as Mr, DIFFERENCE_ARROW_SIZE_DECLARATIONS as Cn, InternalError as zi, MAX_BAR_WIDTH_FRACTION as Fi, MIN_BAR_WIDTH_FRACTION as Bi, MoveAnnotationCommand as Hi, RESTING_HOVER_STATE as Xt, RemoveAnnotationCommand as De, RemoveHighlightCommand as Gi, SHAPE_DEFAULTS as Vi, SetAxisLabelCommand as $i, SetAxisPositionCommand as Wi, SetAxisTickModeCommand as Ui, SetAxisTicksVisibilityCommand as Ki, SetAxisVisibilityCommand as qi, SetBarBorderRadiusCommand as Xi, SetBarWidthCommand as Zi, SetChartTypeCommand as Nr, SetContentCaptionCommand as Rr, SetContentSourceCommand as ji, SetContentSubtitleCommand as Dr, SetContentTitleCommand as _r, SetDataLabelsFormatCommand as Yi, SetDifferenceArrowStyleCommand as Ji, SetGridLineStyleCommand as Qi, SetGridLineWidthCommand as el, SetGridVisibilityCommand as tl, SetHeadlineCompareWithCommand as nl, SetHeadlinePositionCommand as rl, SetHeadlineShowCommand as xn, SetHeadlineSizeCommand as al, SetHighlightDimStyleCommand as ol, SetLayerYScaleTypeCommand as il, SetLegendAlignCommand as ll, SetLegendDisplayCommand as sl, SetLegendPositionCommand as cl, SetLineCurveCommand as dl, SetLineMissingValuesCommand as ul, SetLineWidthCommand as wn, SetMappingCommand as hl, SetNumberFormatAbbreviationCommand as pl, SetNumberFormatDecimalsCommand as Tn, SetPointSizeCommand as ml, SetPolarInnerRadiusCommand as gl, SetPolarStartAngleCommand as vl, SetRuleLabelCommand as fl, SetRuleValueCommand as bl, SetScaleDomainCommand as xt, SetScaleReverseCommand as yl, SetScaleTransformCommand as Sl, SetStatLineCommand as Cl, SetStyleRuleCommand as we, TEXT_ANNOTATION_DEFAULTS as xl, TEXT_ANNOTATION_FADE_ALPHA as wl, ToggleCategoryLabelsCommand as Tl, ToggleContentVisibilityCommand as st, ToggleDataLabelsCommand as Al, ToggleGoalLineCommand as kl, ToggleLineFillCommand as Ll, ToggleLinePointsCommand as Pl, ToggleStackTotalsCommand as Il, UpdateAnnotationCommand as ie, alignUnitFractions as El, areAnchorsEqual as zr, areEditTargetsEqual as Ol, areEndpointsComparable as Ml, buildEditMenuTriggerRegion as Nl, buildLayerStyleAddress as Rl, buildObservationPredicate as Dl, buildObservationsTarget as Zt, buildObservationsTargetAtValue as Fr, canAnchorDirectLabels as _l, canBecomeCombo as zl, canBecomeHeatmap as Fl, canPlaceDataLabels as Bl, clampAnnotationTranslation as Hl, computeArrow as Br, createObservationAnchorBuilder as Gl, createObservationAnchorParser as Vl, createStyleResolver as $l, createValueFormatter as Wl, filterLayersByGeoms as Pt, findAnnotation as Ul, findAverageLineLayer as Kl, findCompanionLayers as Hr, findGoalLineLayer as ql, findHighlightsAtObservation as Xl, findKindStyleDeclarations as Zl, findLayerByGeom as Gr, findLayerById as Pe, findObservationAttachment as jl, findStyleRule as ye, findTrendLineLayer as Yl, formatDifferenceLabel as Jl, getBoundingRect as It, getX as Ql, getY as es, hasMultipleGroups as ts, inferDefaultDifferenceArrowEndpoints as ns, inferDifferenceArrowEndpoints as rs, isComboChartType as xe, isCompanionLayer as Vr, isObservationAttachmentKind as as, isPointWithinEditMenuTrigger as jt, isSafeUrl as os, isZeroAnchoredAxis as is, measureObservationsBoxes as ls, projectAnchorToPanel as Ye, readBroadestObservationsScope as ss, readChartType as $r, readComboLineLayerId as cs, readCompanionRowsAtScopeKey as ds, readConstantValue as us, readHighlightDimStyle as hs, readMappableAesthetics as ps, readMappedVariable as ms, readObservationIndex as Wr, readRowScopeKey as gs, readRowsAtScopeKey as vs, readScopeXVariable as fs, readVariableName as Ur, resolveArrowAnnotationStyle as Yt, resolveBarBandFraction as bs, resolveComparisonBasis as ys, resolveDifferenceArrowAnnotationStyle as Ss, resolveEditOutlineStyle as Cs, resolveObservationPoint as Kr, resolveObservationsTarget as An, stepDifferenceArrowEndpoint as xs, toPanelCursor as ct } from "@graphysdk/viz-engine";
4
+ import { createContext as Ge, memo as qr, useCallback as ae, useContext as _e, useEffect as _, useId as Te, useLayoutEffect as Ae, useMemo as O, useRef as ne, useState as ee } from "react";
5
5
  import { Fragment as Y, jsx as n, jsxs as m } from "react/jsx-runtime";
6
6
  import { motion as ws } from "motion/react";
7
- import { useShallow as me } from "zustand/react/shallow";
8
- import { assignInlineVars as ut } from "@vanilla-extract/dynamic";
9
- import { createPortal as Zr } from "react-dom";
10
- import pe from "clsx";
7
+ import { useShallow as ge } from "zustand/react/shallow";
8
+ import { assignInlineVars as dt } from "@vanilla-extract/dynamic";
9
+ import { createPortal as Xr } from "react-dom";
10
+ import me from "clsx";
11
11
  import { autoUpdate as Ts, flip as As, offset as ks, shift as Ls, useFloating as Ps } from "@floating-ui/react-dom";
12
- import { Extension as jr } from "@tiptap/core";
12
+ import { Extension as Zr } from "@tiptap/core";
13
13
  import { Bold as Is } from "@tiptap/extension-bold";
14
- import { Document as Qe } from "@tiptap/extension-document";
14
+ import { Document as Je } from "@tiptap/extension-document";
15
15
  import { HardBreak as Es } from "@tiptap/extension-hard-break";
16
16
  import { Heading as Os } from "@tiptap/extension-heading";
17
17
  import { Italic as Ms } from "@tiptap/extension-italic";
18
18
  import { Link as Ns } from "@tiptap/extension-link";
19
19
  import { Text as Rs } from "@tiptap/extension-text";
20
20
  import { TextAlign as Ds } from "@tiptap/extension-text-align";
21
- import { Color as _s, FontFamily as Yr, TextStyle as zs } from "@tiptap/extension-text-style";
21
+ import { Color as _s, FontFamily as jr, TextStyle as zs } from "@tiptap/extension-text-style";
22
22
  import { Underline as Fs } from "@tiptap/extension-underline";
23
23
  import { Placeholder as Jt, UndoRedo as Bs } from "@tiptap/extensions";
24
- import { Paragraph as Jr } from "@tiptap/extension-paragraph";
25
- import { EditorContent as Qr, useEditor as Hs, useEditorState as Gs } from "@tiptap/react";
26
- import { Toolbar as ge } from "@base-ui/react/toolbar";
24
+ import { Paragraph as Yr } from "@tiptap/extension-paragraph";
25
+ import { EditorContent as Jr, useEditor as Hs, useEditorState as Gs } from "@tiptap/react";
26
+ import { Toolbar as ve } from "@base-ui/react/toolbar";
27
27
  import { Tooltip as Me } from "@base-ui/react/tooltip";
28
28
  import { Popover as Z } from "@base-ui/react/popover";
29
29
  import { HexColorInput as Vs, HexColorPicker as $s } from "react-colorful";
30
- import { Slider as se } from "@base-ui/react/slider";
30
+ import { Slider as ce } from "@base-ui/react/slider";
31
31
  import { Menu as B } from "@base-ui/react/menu";
32
32
  import { Toggle as Ws } from "@base-ui/react/toggle";
33
33
  import { Menu as be } from "@base-ui/react";
34
- import et from "lodash-es/clamp";
34
+ import Qe from "lodash-es/clamp";
35
35
  import { Accordion as Fe } from "@base-ui/react/accordion";
36
- import { NumberField as Ln } from "@base-ui/react/number-field";
37
- import { Radio as ea } from "@base-ui/react/radio";
38
- import { RadioGroup as ta } from "@base-ui/react/radio-group";
39
- import { Select as le } from "@base-ui/react/select";
40
- import { Switch as Pn } from "@base-ui/react/switch";
36
+ import { NumberField as kn } from "@base-ui/react/number-field";
37
+ import { Radio as Qr } from "@base-ui/react/radio";
38
+ import { RadioGroup as ea } from "@base-ui/react/radio-group";
39
+ import { Select as se } from "@base-ui/react/select";
40
+ import { Switch as Ln } from "@base-ui/react/switch";
41
41
  import { Input as Us } from "@base-ui/react/input";
42
42
  import './editable.css';var Ks = {
43
43
  save: "حفظ",
@@ -2387,17 +2387,17 @@ import './editable.css';var Ks = {
2387
2387
  "en-US": tc,
2388
2388
  ar: Zs,
2389
2389
  "pt-PT": oc
2390
- }, lc = [ic, vi], sc = ({ children: e, ...t }) => /* @__PURE__ */ n(Ci, {
2390
+ }, lc = [ic, gi], sc = ({ children: e, ...t }) => /* @__PURE__ */ n(Si, {
2391
2391
  dictionaries: lc,
2392
2392
  ...t,
2393
2393
  children: e
2394
- }), cc = "data-variant", na = Jr.extend({ addAttributes() {
2394
+ }), cc = "data-variant", ta = Yr.extend({ addAttributes() {
2395
2395
  return { variant: {
2396
2396
  default: null,
2397
2397
  parseHTML: (e) => e.getAttribute("data-variant") ?? null,
2398
2398
  renderHTML: (e) => e.variant ? { [cc]: e.variant } : {}
2399
2399
  } };
2400
- } }), dc = jr.create({
2400
+ } }), dc = Zr.create({
2401
2401
  name: "preventBackspaceAcrossTitleBoundary",
2402
2402
  addOptions() {
2403
2403
  return { isTitleVisible: !0 };
@@ -2435,9 +2435,9 @@ import './editable.css';var Ks = {
2435
2435
  isTitleVisible: r,
2436
2436
  isSubtitleVisible: a
2437
2437
  }),
2438
- na,
2438
+ ta,
2439
2439
  ...Qt(),
2440
- Yr,
2440
+ jr,
2441
2441
  dc.configure({ isTitleVisible: r }),
2442
2442
  Jt.configure({
2443
2443
  showOnlyCurrent: !1,
@@ -2448,41 +2448,41 @@ import './editable.css';var Ks = {
2448
2448
  }
2449
2449
  })
2450
2450
  ], hc = ({ placeholder: e }) => [
2451
- Qe,
2452
- na,
2451
+ Je,
2452
+ ta,
2453
2453
  ...Qt(),
2454
- Yr,
2454
+ jr,
2455
2455
  Jt.configure({
2456
2456
  showOnlyCurrent: !1,
2457
2457
  placeholder: ({ pos: t }) => t === 0 ? e : ""
2458
2458
  })
2459
- ], pc = ({ isTitleVisible: e, isSubtitleVisible: t }) => e && t ? Qe.extend({ content: "block{2,}" }) : Qe, ra = "linear-gradient(to top right, transparent calc(50% - 1px), var(--graphy-alert) calc(50% - 1px), var(--graphy-alert) calc(50% + 1px), transparent calc(50% + 1px))", mc = "d0bl00";
2460
- var aa = "d0bl03", gc = "d0bl04", oa = "d0bl05", Et = "d0bl06", vc = "d0bl07", fc = "d0bl08", ia = "d0bl09", bc = "d0bl0a", yc = "d0bl0b", Sc = "d0bl0c", Cc = "d0bl0d", xc = "d0bl0e", wc = "owf1yg0", Tc = "owf1yg1", Ac = "owf1yg2", kc = "owf1yg3", Lc = "owf1yg4", Pc = 0.01, Ic = ({ value: e, onChange: t, label: r }) => /* @__PURE__ */ n(se.Root, {
2459
+ ], pc = ({ isTitleVisible: e, isSubtitleVisible: t }) => e && t ? Je.extend({ content: "block{2,}" }) : Je, na = "linear-gradient(to top right, transparent calc(50% - 1px), var(--graphy-alert) calc(50% - 1px), var(--graphy-alert) calc(50% + 1px), transparent calc(50% + 1px))", mc = "d0bl00";
2460
+ var ra = "d0bl03", gc = "d0bl04", aa = "d0bl05", Et = "d0bl06", vc = "d0bl07", fc = "d0bl08", oa = "d0bl09", bc = "d0bl0a", yc = "d0bl0b", Sc = "d0bl0c", Cc = "d0bl0d", xc = "d0bl0e", wc = "owf1yg0", Tc = "owf1yg1", Ac = "owf1yg2", kc = "owf1yg3", Lc = "owf1yg4", Pc = 0.01, Ic = ({ value: e, onChange: t, label: r }) => /* @__PURE__ */ n(ce.Root, {
2461
2461
  className: wc,
2462
2462
  value: e,
2463
2463
  onValueChange: (a) => t(a),
2464
2464
  min: 0,
2465
2465
  max: 1,
2466
2466
  step: Pc,
2467
- children: /* @__PURE__ */ n(se.Control, {
2467
+ children: /* @__PURE__ */ n(ce.Control, {
2468
2468
  className: Tc,
2469
- children: /* @__PURE__ */ m(se.Track, {
2469
+ children: /* @__PURE__ */ m(ce.Track, {
2470
2470
  className: Ac,
2471
- children: [/* @__PURE__ */ n(se.Indicator, { className: kc }), /* @__PURE__ */ n(se.Thumb, {
2471
+ children: [/* @__PURE__ */ n(ce.Indicator, { className: kc }), /* @__PURE__ */ n(ce.Thumb, {
2472
2472
  className: Lc,
2473
2473
  "aria-label": r
2474
2474
  })]
2475
2475
  })
2476
2476
  })
2477
- }), la = "transparent", Ot = Mr.map((e) => he[e]), Ec = Object.fromEntries(Mr.map((e) => [he[e], e])), Oc = (e) => Ot.some((t) => ca(t, e)), Mc = ({ color: e, onChange: t, isOpen: r, onOpenChange: a, children: o, label: i, popupAttributes: l, opacity: s, onOpacityChange: c, hasTransparentOption: u = !1 }) => {
2478
- const d = I(), h = Rc(), p = u ? [la, ...Ot] : Ot, g = (v) => {
2477
+ }), ia = "transparent", Ot = Or.map((e) => pe[e]), Ec = Object.fromEntries(Or.map((e) => [pe[e], e])), Oc = (e) => Ot.some((t) => sa(t, e)), Mc = ({ color: e, onChange: t, isOpen: r, onOpenChange: a, children: o, label: i, popupAttributes: l, opacity: s, onOpacityChange: c, hasTransparentOption: u = !1 }) => {
2478
+ const d = I(), h = Rc(), p = u ? [ia, ...Ot] : Ot, g = (v) => {
2479
2479
  t(v), a(!1);
2480
2480
  };
2481
2481
  return /* @__PURE__ */ m(Z.Root, {
2482
2482
  open: r,
2483
2483
  onOpenChange: a,
2484
2484
  children: [/* @__PURE__ */ n(Z.Trigger, {
2485
- render: /* @__PURE__ */ n(ge.Button, {}),
2485
+ render: /* @__PURE__ */ n(ve.Button, {}),
2486
2486
  "aria-label": i ?? d("graph.toolbar.color.label"),
2487
2487
  className: mc,
2488
2488
  onMouseDown: (v) => v.preventDefault(),
@@ -2491,23 +2491,23 @@ var aa = "d0bl03", gc = "d0bl04", oa = "d0bl05", Et = "d0bl06", vc = "d0bl07", f
2491
2491
  style: { background: e ?? "transparent" }
2492
2492
  })
2493
2493
  }), /* @__PURE__ */ n(Z.Portal, {
2494
- container: ce(),
2494
+ container: de(),
2495
2495
  children: /* @__PURE__ */ n(re, { children: /* @__PURE__ */ n(Z.Positioner, {
2496
2496
  sideOffset: 6,
2497
2497
  align: "start",
2498
- className: aa,
2498
+ className: ra,
2499
2499
  children: /* @__PURE__ */ m(Z.Popup, {
2500
2500
  className: gc,
2501
2501
  onMouseDown: (v) => v.preventDefault(),
2502
2502
  ...l,
2503
2503
  children: [
2504
- /* @__PURE__ */ n(In, {
2504
+ /* @__PURE__ */ n(Pn, {
2505
2505
  title: d("graph.colorDropdown.colors"),
2506
2506
  colors: p,
2507
2507
  currentColor: e,
2508
2508
  onPick: g
2509
2509
  }),
2510
- h.length > 0 && /* @__PURE__ */ n(In, {
2510
+ h.length > 0 && /* @__PURE__ */ n(Pn, {
2511
2511
  title: d("graph.colorDropdown.chartColors"),
2512
2512
  colors: h,
2513
2513
  currentColor: e,
@@ -2534,10 +2534,10 @@ var aa = "d0bl03", gc = "d0bl04", oa = "d0bl05", Et = "d0bl06", vc = "d0bl07", f
2534
2534
  }) })
2535
2535
  })]
2536
2536
  });
2537
- }, In = ({ title: e, colors: t, currentColor: r, onPick: a }) => {
2537
+ }, Pn = ({ title: e, colors: t, currentColor: r, onPick: a }) => {
2538
2538
  const o = I();
2539
2539
  return /* @__PURE__ */ m("div", {
2540
- className: oa,
2540
+ className: aa,
2541
2541
  children: [/* @__PURE__ */ n("div", {
2542
2542
  className: Et,
2543
2543
  children: e
@@ -2547,23 +2547,23 @@ var aa = "d0bl03", gc = "d0bl04", oa = "d0bl05", Et = "d0bl06", vc = "d0bl07", f
2547
2547
  type: "button",
2548
2548
  "aria-label": i === "transparent" ? o("graph.colorDropdown.transparent") : i,
2549
2549
  className: fc,
2550
- "data-active": ca(i, r),
2550
+ "data-active": sa(i, r),
2551
2551
  onMouseDown: (l) => l.preventDefault(),
2552
2552
  onClick: () => a(i),
2553
2553
  children: /* @__PURE__ */ n("span", {
2554
- className: ia,
2555
- style: sa(i)
2554
+ className: oa,
2555
+ style: la(i)
2556
2556
  })
2557
2557
  }, i))
2558
2558
  })]
2559
2559
  });
2560
2560
  }, Nc = ({ value: e, onChange: t, popupAttributes: r }) => {
2561
- const a = I(), [o, i] = ee(!1), l = ai(e) ? e : "#000000", s = Dc(l);
2561
+ const a = I(), [o, i] = ee(!1), l = ri(e) ? e : "#000000", s = Dc(l);
2562
2562
  return /* @__PURE__ */ m(Z.Root, {
2563
2563
  open: o,
2564
2564
  onOpenChange: i,
2565
2565
  children: [/* @__PURE__ */ m("div", {
2566
- className: oa,
2566
+ className: aa,
2567
2567
  children: [/* @__PURE__ */ n("div", {
2568
2568
  className: Et,
2569
2569
  children: a("graph.colorDropdown.custom")
@@ -2572,20 +2572,20 @@ var aa = "d0bl03", gc = "d0bl04", oa = "d0bl05", Et = "d0bl06", vc = "d0bl07", f
2572
2572
  onMouseDown: (c) => c.preventDefault(),
2573
2573
  "aria-label": a("graph.colorDropdown.pickCustom"),
2574
2574
  children: [/* @__PURE__ */ n("span", {
2575
- className: ia,
2576
- style: sa(l)
2575
+ className: oa,
2576
+ style: la(l)
2577
2577
  }), /* @__PURE__ */ n("span", {
2578
2578
  className: yc,
2579
2579
  children: s
2580
2580
  })]
2581
2581
  })]
2582
2582
  }), /* @__PURE__ */ n(Z.Portal, {
2583
- container: ce(),
2583
+ container: de(),
2584
2584
  children: /* @__PURE__ */ n(re, { children: /* @__PURE__ */ n(Z.Positioner, {
2585
2585
  side: "right",
2586
2586
  align: "start",
2587
2587
  sideOffset: 18,
2588
- className: aa,
2588
+ className: ra,
2589
2589
  children: /* @__PURE__ */ m(Z.Popup, {
2590
2590
  className: Sc,
2591
2591
  onMouseDown: (c) => c.preventDefault(),
@@ -2623,19 +2623,19 @@ var aa = "d0bl03", gc = "d0bl04", oa = "d0bl05", Et = "d0bl06", vc = "d0bl07", f
2623
2623
  }
2624
2624
  return [...t];
2625
2625
  }, [e]);
2626
- }, sa = (e) => e === "transparent" ? {
2627
- background: ra,
2628
- border: `1px solid ${he.border100}`
2626
+ }, la = (e) => e === "transparent" ? {
2627
+ background: na,
2628
+ border: `1px solid ${pe.border100}`
2629
2629
  } : {
2630
2630
  background: e,
2631
- border: `1px solid ${Xo(e, 0.1)}`
2631
+ border: `1px solid ${qo(e, 0.1)}`
2632
2632
  }, Dc = (e) => {
2633
2633
  const { themeValues: t } = qt();
2634
- if (ni(e)) return e.toUpperCase();
2634
+ if (ti(e)) return e.toUpperCase();
2635
2635
  const r = Ec[e];
2636
2636
  return r ? t[r].toUpperCase() : "#000000";
2637
- }, ca = (e, t) => t === null ? !1 : e.toLowerCase() === t.toLowerCase(), _c = "l9kff0", zc = "l9kff1", Fc = "l9kff2", Bc = "xn24px0", Hc = "xn24px1", Gc = "xn24px2", Vc = ({ children: e, popupAttributes: t }) => /* @__PURE__ */ n(B.Portal, {
2638
- container: ce(),
2637
+ }, sa = (e, t) => t === null ? !1 : e.toLowerCase() === t.toLowerCase(), _c = "l9kff0", zc = "l9kff1", Fc = "l9kff2", Bc = "xn24px0", Hc = "xn24px1", Gc = "xn24px2", Vc = ({ children: e, popupAttributes: t }) => /* @__PURE__ */ n(B.Portal, {
2638
+ container: de(),
2639
2639
  children: /* @__PURE__ */ n(re, { children: /* @__PURE__ */ n(B.Positioner, {
2640
2640
  side: "bottom",
2641
2641
  align: "start",
@@ -2654,24 +2654,24 @@ var aa = "d0bl03", gc = "d0bl04", oa = "d0bl05", Et = "d0bl06", vc = "d0bl07", f
2654
2654
  disabled: r,
2655
2655
  onClick: a,
2656
2656
  children: e
2657
- }), Wc = ({ className: e, ...t }) => /* @__PURE__ */ n(Me.Provider, { children: /* @__PURE__ */ n(ge.Root, {
2657
+ }), Wc = ({ className: e, ...t }) => /* @__PURE__ */ n(Me.Provider, { children: /* @__PURE__ */ n(ve.Root, {
2658
2658
  ...t,
2659
- className: pe(_c, e)
2660
- }) }), Uc = ({ className: e, ...t }) => /* @__PURE__ */ n(ge.Group, {
2659
+ className: me(_c, e)
2660
+ }) }), Uc = ({ className: e, ...t }) => /* @__PURE__ */ n(ve.Group, {
2661
2661
  ...t,
2662
- className: pe(zc, e)
2663
- }), Kc = ({ className: e, ...t }) => /* @__PURE__ */ n(ge.Separator, {
2662
+ className: me(zc, e)
2663
+ }), Kc = ({ className: e, ...t }) => /* @__PURE__ */ n(ve.Separator, {
2664
2664
  ...t,
2665
- className: pe(Fc, e)
2665
+ className: me(Fc, e)
2666
2666
  }), qc = ({ children: e }) => {
2667
- const t = ce();
2668
- return t === null ? null : Zr(/* @__PURE__ */ n(re, { children: e }), t);
2667
+ const t = de();
2668
+ return t === null ? null : Xr(/* @__PURE__ */ n(re, { children: e }), t);
2669
2669
  }, q = {
2670
2670
  Portal: qc,
2671
2671
  Root: Wc,
2672
2672
  Group: Uc,
2673
2673
  Separator: Kc,
2674
- Button: ge.Button,
2674
+ Button: ve.Button,
2675
2675
  ColorPicker: Mc,
2676
2676
  MenuPopup: Vc,
2677
2677
  MenuItem: $c
@@ -2684,12 +2684,12 @@ var aa = "d0bl03", gc = "d0bl04", oa = "d0bl05", Et = "d0bl06", vc = "d0bl07", f
2684
2684
  strokeLinejoin: "round",
2685
2685
  children: /* @__PURE__ */ n("path", { d: "m6 9 6 6 6-6" })
2686
2686
  })
2687
- }), Xc = "'Noto Serif', Georgia, 'Times New Roman', serif, 'Apple Color Emoji', 'NotoColorEmoji'", Zc = `'Aeonik', 'Aeonik Fallback', ${xr}`, jc = "'PT Mono', 'Courier New', monospace, 'Apple Color Emoji', 'NotoColorEmoji'", Yc = "'Intruding Cat', cursive, 'Apple Color Emoji', 'NotoColorEmoji'", Mt = [
2687
+ }), Xc = "'Noto Serif', Georgia, 'Times New Roman', serif, 'Apple Color Emoji', 'NotoColorEmoji'", Zc = `'Aeonik', 'Aeonik Fallback', ${Cr}`, jc = "'PT Mono', 'Courier New', monospace, 'Apple Color Emoji', 'NotoColorEmoji'", Yc = "'Intruding Cat', cursive, 'Apple Color Emoji', 'NotoColorEmoji'", Mt = [
2688
2688
  {
2689
2689
  id: "modern",
2690
2690
  label: "Modern",
2691
2691
  preview: "Aa",
2692
- fontFamily: xr
2692
+ fontFamily: Cr
2693
2693
  },
2694
2694
  {
2695
2695
  id: "fresh",
@@ -2715,7 +2715,7 @@ var aa = "d0bl03", gc = "d0bl04", oa = "d0bl05", Et = "d0bl06", vc = "d0bl07", f
2715
2715
  preview: "Aa",
2716
2716
  fontFamily: Yc
2717
2717
  }
2718
- ], Jc = (e) => e ? Mt.find((t) => t.fontFamily === e) ?? null : null, da = "_70l3rt0", ua = "_70l3rt1", ha = "_70l3rt3", pa = "_70l3rt4", ma = "_70l3rt5", Qc = ({ editor: e, currentFontFamily: t, isOpen: r, onOpenChange: a }) => {
2718
+ ], Jc = (e) => e ? Mt.find((t) => t.fontFamily === e) ?? null : null, ca = "_70l3rt0", da = "_70l3rt1", ua = "_70l3rt3", ha = "_70l3rt4", pa = "_70l3rt5", Qc = ({ editor: e, currentFontFamily: t, isOpen: r, onOpenChange: a }) => {
2719
2719
  const o = I(), i = Jc(t) ?? Mt[0], l = (s) => {
2720
2720
  e.chain().focus().setFontFamily(s.fontFamily).run();
2721
2721
  };
@@ -2723,27 +2723,27 @@ var aa = "d0bl03", gc = "d0bl04", oa = "d0bl05", Et = "d0bl06", vc = "d0bl07", f
2723
2723
  open: r,
2724
2724
  onOpenChange: a,
2725
2725
  children: [/* @__PURE__ */ m(B.Trigger, {
2726
- render: /* @__PURE__ */ n(ge.Button, {}),
2726
+ render: /* @__PURE__ */ n(ve.Button, {}),
2727
2727
  "aria-label": o("graph.toolbar.font.ariaLabel"),
2728
- className: da,
2728
+ className: ca,
2729
2729
  onMouseDown: (s) => s.preventDefault(),
2730
2730
  children: [/* @__PURE__ */ n("span", {
2731
- className: ua,
2731
+ className: da,
2732
2732
  style: { fontFamily: i?.fontFamily },
2733
2733
  children: i?.preview
2734
2734
  }), /* @__PURE__ */ n(Ve, { size: "sm" })]
2735
2735
  }), /* @__PURE__ */ n(B.Portal, {
2736
- container: ce(),
2736
+ container: de(),
2737
2737
  children: /* @__PURE__ */ n(re, { children: /* @__PURE__ */ n(B.Positioner, {
2738
2738
  side: "bottom",
2739
2739
  align: "start",
2740
2740
  sideOffset: 6,
2741
- className: ha,
2741
+ className: ua,
2742
2742
  children: /* @__PURE__ */ n(B.Popup, {
2743
- className: pa,
2743
+ className: ha,
2744
2744
  onMouseDown: (s) => s.preventDefault(),
2745
2745
  children: Mt.map((s) => /* @__PURE__ */ n(B.Item, {
2746
- className: ma,
2746
+ className: pa,
2747
2747
  "data-selected": s.id === i?.id,
2748
2748
  onClick: () => l(s),
2749
2749
  children: /* @__PURE__ */ n("span", {
@@ -2755,58 +2755,58 @@ var aa = "d0bl03", gc = "d0bl04", oa = "d0bl05", Et = "d0bl06", vc = "d0bl07", f
2755
2755
  }) })
2756
2756
  })]
2757
2757
  });
2758
- }, ga = {
2758
+ }, ma = {
2759
2759
  id: "text",
2760
2760
  translationKey: "graph.toolbar.heading.text",
2761
- previewFont: he.fontTextEditorBody
2762
- }, En = [
2761
+ previewFont: pe.fontTextEditorBody
2762
+ }, In = [
2763
2763
  {
2764
2764
  id: "caption",
2765
2765
  translationKey: "graph.toolbar.heading.caption",
2766
- previewFont: he.fontTextEditorH6
2766
+ previewFont: pe.fontTextEditorH6
2767
2767
  },
2768
- ga,
2768
+ ma,
2769
2769
  {
2770
2770
  id: "h3",
2771
2771
  translationKey: "graph.toolbar.heading.heading3",
2772
- previewFont: he.fontTextEditorH3
2772
+ previewFont: pe.fontTextEditorH3
2773
2773
  },
2774
2774
  {
2775
2775
  id: "h2",
2776
2776
  translationKey: "graph.toolbar.heading.heading2",
2777
- previewFont: he.fontTextEditorH2
2777
+ previewFont: pe.fontTextEditorH2
2778
2778
  },
2779
2779
  {
2780
2780
  id: "h1",
2781
2781
  translationKey: "graph.toolbar.heading.heading1",
2782
- previewFont: he.fontTextEditorH1
2782
+ previewFont: pe.fontTextEditorH1
2783
2783
  }
2784
2784
  ], ed = ({ editor: e, activeStyle: t, isOpen: r, onOpenChange: a }) => {
2785
- const o = I(), i = En.find((l) => l.id === t) ?? ga;
2785
+ const o = I(), i = In.find((l) => l.id === t) ?? ma;
2786
2786
  return /* @__PURE__ */ m(B.Root, {
2787
2787
  open: r,
2788
2788
  onOpenChange: a,
2789
2789
  children: [/* @__PURE__ */ m(B.Trigger, {
2790
- render: /* @__PURE__ */ n(ge.Button, {}),
2790
+ render: /* @__PURE__ */ n(ve.Button, {}),
2791
2791
  "aria-label": o("graph.toolbar.heading.ariaLabel"),
2792
- className: da,
2792
+ className: ca,
2793
2793
  onMouseDown: (l) => l.preventDefault(),
2794
2794
  children: [/* @__PURE__ */ n("span", {
2795
- className: ua,
2795
+ className: da,
2796
2796
  children: o(i.translationKey)
2797
2797
  }), /* @__PURE__ */ n(Ve, { size: "sm" })]
2798
2798
  }), /* @__PURE__ */ n(B.Portal, {
2799
- container: ce(),
2799
+ container: de(),
2800
2800
  children: /* @__PURE__ */ n(re, { children: /* @__PURE__ */ n(B.Positioner, {
2801
2801
  side: "bottom",
2802
2802
  align: "start",
2803
2803
  sideOffset: 6,
2804
- className: ha,
2804
+ className: ua,
2805
2805
  children: /* @__PURE__ */ n(B.Popup, {
2806
- className: pa,
2806
+ className: ha,
2807
2807
  onMouseDown: (l) => l.preventDefault(),
2808
- children: En.map((l) => /* @__PURE__ */ n(B.Item, {
2809
- className: ma,
2808
+ children: In.map((l) => /* @__PURE__ */ n(B.Item, {
2809
+ className: pa,
2810
2810
  "data-selected": l.id === i.id,
2811
2811
  onClick: () => td(e, l.id),
2812
2812
  children: /* @__PURE__ */ n(nd, {
@@ -2841,7 +2841,7 @@ var aa = "d0bl03", gc = "d0bl04", oa = "d0bl05", Et = "d0bl06", vc = "d0bl07", f
2841
2841
  margin: 0
2842
2842
  },
2843
2843
  children: t
2844
- }), va = (e) => /* @__PURE__ */ n(T, {
2844
+ }), ga = (e) => /* @__PURE__ */ n(T, {
2845
2845
  ...e,
2846
2846
  children: /* @__PURE__ */ n("g", {
2847
2847
  stroke: "currentColor",
@@ -2871,14 +2871,14 @@ var aa = "d0bl03", gc = "d0bl04", oa = "d0bl05", Et = "d0bl06", vc = "d0bl07", f
2871
2871
  }), od = (e) => !e.content || e.content.length === 0 ? !0 : e.content.every((t) => !t.content || t.content.length === 0), id = (e) => {
2872
2872
  const { $from: t } = e.state.selection, r = t.parent.textContent, a = t.parentOffset, o = t.start();
2873
2873
  let i = a;
2874
- for (; i > 0 && On(r[i - 1]); ) i -= 1;
2874
+ for (; i > 0 && En(r[i - 1]); ) i -= 1;
2875
2875
  let l = a;
2876
- for (; l < r.length && On(r[l]); ) l += 1;
2876
+ for (; l < r.length && En(r[l]); ) l += 1;
2877
2877
  return {
2878
2878
  from: o + i,
2879
2879
  to: o + l
2880
2880
  };
2881
- }, On = (e) => e !== void 0 && /\S/.test(e), ld = "fop13s0", sd = "fop13s1", cd = "fop13s2", dd = "fop13s3", Mn = "fop13s4", ud = ({ editor: e, currentUrl: t, isActive: r, isOpen: a, onOpenChange: o }) => {
2881
+ }, En = (e) => e !== void 0 && /\S/.test(e), ld = "fop13s0", sd = "fop13s1", cd = "fop13s2", dd = "fop13s3", On = "fop13s4", ud = ({ editor: e, currentUrl: t, isActive: r, isOpen: a, onOpenChange: o }) => {
2882
2882
  const i = I(), [l, s] = ee(""), c = ne(null);
2883
2883
  _(() => {
2884
2884
  a && s(t ?? "");
@@ -2896,14 +2896,14 @@ var aa = "d0bl03", gc = "d0bl04", oa = "d0bl05", Et = "d0bl06", vc = "d0bl07", f
2896
2896
  open: a,
2897
2897
  onOpenChange: o,
2898
2898
  children: [/* @__PURE__ */ n(Z.Trigger, {
2899
- render: /* @__PURE__ */ n(ge.Button, {}),
2899
+ render: /* @__PURE__ */ n(ve.Button, {}),
2900
2900
  "aria-label": i("graph.toolbar.formatting.link"),
2901
2901
  "data-active": r,
2902
2902
  className: ld,
2903
2903
  onMouseDown: (g) => g.preventDefault(),
2904
2904
  children: /* @__PURE__ */ n(rd, {})
2905
2905
  }), /* @__PURE__ */ n(Z.Portal, {
2906
- container: ce(),
2906
+ container: de(),
2907
2907
  children: /* @__PURE__ */ n(re, { children: /* @__PURE__ */ n(Z.Positioner, {
2908
2908
  sideOffset: 6,
2909
2909
  align: "end",
@@ -2927,16 +2927,16 @@ var aa = "d0bl03", gc = "d0bl04", oa = "d0bl05", Et = "d0bl06", vc = "d0bl07", f
2927
2927
  /* @__PURE__ */ n("button", {
2928
2928
  type: "button",
2929
2929
  "aria-label": i("common.cancel"),
2930
- className: Mn,
2930
+ className: On,
2931
2931
  onClick: d,
2932
2932
  children: /* @__PURE__ */ n(ad, {})
2933
2933
  }),
2934
2934
  /* @__PURE__ */ n("button", {
2935
2935
  type: "button",
2936
2936
  "aria-label": i("graph.toolbar.link.apply"),
2937
- className: Mn,
2937
+ className: On,
2938
2938
  onClick: u,
2939
- children: /* @__PURE__ */ n(va, {})
2939
+ children: /* @__PURE__ */ n(ga, {})
2940
2940
  })
2941
2941
  ]
2942
2942
  })
@@ -2959,7 +2959,7 @@ var aa = "d0bl03", gc = "d0bl04", oa = "d0bl05", Et = "d0bl06", vc = "d0bl07", f
2959
2959
  }
2960
2960
  const o = id(e);
2961
2961
  e.chain().focus().setTextSelection(o).setLink({ href: r }).run();
2962
- }, fa = (e) => /* @__PURE__ */ n(T, {
2962
+ }, va = (e) => /* @__PURE__ */ n(T, {
2963
2963
  ...e,
2964
2964
  children: /* @__PURE__ */ m("g", {
2965
2965
  stroke: "currentColor",
@@ -2972,7 +2972,7 @@ var aa = "d0bl03", gc = "d0bl04", oa = "d0bl05", Et = "d0bl06", vc = "d0bl07", f
2972
2972
  /* @__PURE__ */ n("path", { d: "M19 19H5" })
2973
2973
  ]
2974
2974
  })
2975
- }), ba = (e) => /* @__PURE__ */ n(T, {
2975
+ }), fa = (e) => /* @__PURE__ */ n(T, {
2976
2976
  ...e,
2977
2977
  children: /* @__PURE__ */ m("g", {
2978
2978
  stroke: "currentColor",
@@ -2985,7 +2985,7 @@ var aa = "d0bl03", gc = "d0bl04", oa = "d0bl05", Et = "d0bl06", vc = "d0bl07", f
2985
2985
  /* @__PURE__ */ n("path", { d: "M21 19H7" })
2986
2986
  ]
2987
2987
  })
2988
- }), ya = (e) => /* @__PURE__ */ n(T, {
2988
+ }), ba = (e) => /* @__PURE__ */ n(T, {
2989
2989
  ...e,
2990
2990
  children: /* @__PURE__ */ m("g", {
2991
2991
  stroke: "currentColor",
@@ -3002,7 +3002,7 @@ var aa = "d0bl03", gc = "d0bl04", oa = "d0bl05", Et = "d0bl06", vc = "d0bl07", f
3002
3002
  const o = (i) => i.preventDefault();
3003
3003
  return /* @__PURE__ */ m(Me.Root, { children: [/* @__PURE__ */ n(Me.Trigger, {
3004
3004
  render: /* @__PURE__ */ n(Ws, {
3005
- render: /* @__PURE__ */ n(ge.Button, {}),
3005
+ render: /* @__PURE__ */ n(ve.Button, {}),
3006
3006
  pressed: t,
3007
3007
  onPressedChange: () => r()
3008
3008
  }),
@@ -3011,7 +3011,7 @@ var aa = "d0bl03", gc = "d0bl04", oa = "d0bl05", Et = "d0bl06", vc = "d0bl07", f
3011
3011
  onMouseDown: o,
3012
3012
  children: a
3013
3013
  }), /* @__PURE__ */ n(Me.Portal, {
3014
- container: ce(),
3014
+ container: de(),
3015
3015
  children: /* @__PURE__ */ n(re, { children: /* @__PURE__ */ n(Me.Positioner, {
3016
3016
  sideOffset: gd,
3017
3017
  children: /* @__PURE__ */ n(Me.Popup, {
@@ -3027,19 +3027,19 @@ var aa = "d0bl03", gc = "d0bl04", oa = "d0bl05", Et = "d0bl06", vc = "d0bl07", f
3027
3027
  label: r("graph.toolbar.textAlign.left"),
3028
3028
  isActive: t === "left",
3029
3029
  onToggle: () => e.chain().focus().setTextAlign("left").run(),
3030
- children: /* @__PURE__ */ n(ya, {})
3030
+ children: /* @__PURE__ */ n(ba, {})
3031
3031
  }),
3032
3032
  /* @__PURE__ */ n(Re, {
3033
3033
  label: r("graph.toolbar.textAlign.center"),
3034
3034
  isActive: t === "center",
3035
3035
  onToggle: () => e.chain().focus().setTextAlign("center").run(),
3036
- children: /* @__PURE__ */ n(fa, {})
3036
+ children: /* @__PURE__ */ n(va, {})
3037
3037
  }),
3038
3038
  /* @__PURE__ */ n(Re, {
3039
3039
  label: r("graph.toolbar.textAlign.right"),
3040
3040
  isActive: t === "right",
3041
3041
  onToggle: () => e.chain().focus().setTextAlign("right").run(),
3042
- children: /* @__PURE__ */ n(ba, {})
3042
+ children: /* @__PURE__ */ n(fa, {})
3043
3043
  })
3044
3044
  ] });
3045
3045
  }, fd = "_1u34vl40", bd = ({ editor: e }) => ({
@@ -3075,8 +3075,8 @@ var aa = "d0bl03", gc = "d0bl04", oa = "d0bl05", Et = "d0bl06", vc = "d0bl07", f
3075
3075
  }, [e, c]), _(() => {
3076
3076
  if (!e) return;
3077
3077
  const g = () => a(!0), v = ({ event: f }) => {
3078
- const { relatedTarget: S, currentTarget: L } = f, x = S instanceof Node && d.current?.contains(S), P = S instanceof Node && L instanceof Node && L.contains(S);
3079
- !x && !P && a(!1);
3078
+ const { relatedTarget: S, currentTarget: k } = f, x = S instanceof Node && d.current?.contains(S), L = S instanceof Node && k instanceof Node && k.contains(S);
3079
+ !x && !L && a(!1);
3080
3080
  };
3081
3081
  return e.on("focus", g), e.on("blur", v), () => {
3082
3082
  e.off("focus", g), e.off("blur", v);
@@ -3140,14 +3140,14 @@ var aa = "d0bl03", gc = "d0bl04", oa = "d0bl05", Et = "d0bl06", vc = "d0bl07", f
3140
3140
  }) })
3141
3141
  ]
3142
3142
  }) });
3143
- }, Td = "_1uy50v30", Sa = ({ editor: e, ariaLabel: t }) => /* @__PURE__ */ m("div", {
3143
+ }, Td = "_1uy50v30", ya = ({ editor: e, ariaLabel: t }) => /* @__PURE__ */ m("div", {
3144
3144
  className: Td,
3145
- children: [/* @__PURE__ */ n(wd, { editor: e }), /* @__PURE__ */ n(Qr, {
3145
+ children: [/* @__PURE__ */ n(wd, { editor: e }), /* @__PURE__ */ n(Jr, {
3146
3146
  editor: e,
3147
3147
  "aria-label": t
3148
3148
  })]
3149
3149
  }), Ad = 200, en = ({ content: e, extensions: t, isEditable: r, onUpdate: a, updateDebounceMs: o = Ad }) => {
3150
- const i = ne(Nn(e)), l = ne(i.current), s = ui((u) => {
3150
+ const i = ne(Mn(e)), l = ne(i.current), s = di((u) => {
3151
3151
  l.current = u, a?.(u);
3152
3152
  }, o), c = Hs({
3153
3153
  extensions: t,
@@ -3164,14 +3164,14 @@ var aa = "d0bl03", gc = "d0bl04", oa = "d0bl05", Et = "d0bl06", vc = "d0bl07", f
3164
3164
  c?.setEditable(r);
3165
3165
  }, [c, r]), _(() => {
3166
3166
  if (!c) return;
3167
- const u = Nn(e);
3167
+ const u = Mn(e);
3168
3168
  wt(l.current, u) || (l.current = u, !wt(c.getJSON(), u) && (s.cancel(), kd(c, u)));
3169
3169
  }, [
3170
3170
  c,
3171
3171
  e,
3172
3172
  s
3173
3173
  ]), _(() => () => s.flush(), [s]), c;
3174
- }, Nn = (e) => e === null ? {
3174
+ }, Mn = (e) => e === null ? {
3175
3175
  type: "doc",
3176
3176
  content: []
3177
3177
  } : typeof e == "string" ? {
@@ -3191,27 +3191,27 @@ var aa = "d0bl03", gc = "d0bl04", oa = "d0bl05", Et = "d0bl06", vc = "d0bl07", f
3191
3191
  from: Math.min(r, o),
3192
3192
  to: Math.min(a, o)
3193
3193
  });
3194
- }, wt = (e, t) => JSON.stringify(tt(e)) === JSON.stringify(tt(t)), tt = (e) => Array.isArray(e) ? e.map(tt) : e === null || typeof e != "object" ? e : Object.fromEntries(Object.entries(e).map(([t, r]) => [t, tt(r)]).filter(([, t]) => !Ld(t)).sort(([t], [r]) => String(t).localeCompare(String(r)))), Ld = (e) => e == null || typeof e == "object" && Object.keys(e).length === 0, Pd = ({ caption: e, captionStyle: t }) => {
3195
- const { dispatch: r } = de(), a = en({
3194
+ }, wt = (e, t) => JSON.stringify(et(e)) === JSON.stringify(et(t)), et = (e) => Array.isArray(e) ? e.map(et) : e === null || typeof e != "object" ? e : Object.fromEntries(Object.entries(e).map(([t, r]) => [t, et(r)]).filter(([, t]) => !Ld(t)).sort(([t], [r]) => String(t).localeCompare(String(r)))), Ld = (e) => e == null || typeof e == "object" && Object.keys(e).length === 0, Pd = ({ caption: e, captionStyle: t }) => {
3195
+ const { dispatch: r } = ue(), a = en({
3196
3196
  content: e,
3197
3197
  extensions: O(() => hc({ placeholder: "Add caption" }), []),
3198
3198
  isEditable: !0,
3199
3199
  onUpdate: (o) => {
3200
3200
  const i = od(o) ? null : o;
3201
- r(new Dr({ caption: i }));
3201
+ r(new Rr({ caption: i }));
3202
3202
  }
3203
3203
  });
3204
3204
  return /* @__PURE__ */ n("div", {
3205
3205
  "data-testid": "caption-editor",
3206
- style: wr(t),
3207
- children: /* @__PURE__ */ n(Sa, {
3206
+ style: xr(t),
3207
+ children: /* @__PURE__ */ n(ya, {
3208
3208
  editor: a,
3209
3209
  ariaLabel: "Chart caption"
3210
3210
  })
3211
3211
  });
3212
3212
  }, Id = (e) => [
3213
- Qe,
3214
- Jr,
3213
+ Je,
3214
+ Yr,
3215
3215
  ...Qt(),
3216
3216
  Od,
3217
3217
  Jt.configure({
@@ -3219,7 +3219,7 @@ var aa = "d0bl03", gc = "d0bl04", oa = "d0bl05", Et = "d0bl06", vc = "d0bl07", f
3219
3219
  placeholder: ({ pos: t }) => t === 0 ? e : ""
3220
3220
  })
3221
3221
  ], Ed = ({ annotation: e }) => {
3222
- const t = I(), { dispatch: r } = de(), a = $(), o = O(() => Id(t("graph.annotations.text.placeholder")), [t]), i = en({
3222
+ const t = I(), { dispatch: r } = ue(), a = $(), o = O(() => Id(t("graph.annotations.text.placeholder")), [t]), i = en({
3223
3223
  content: e.content,
3224
3224
  extensions: o,
3225
3225
  isEditable: !0,
@@ -3236,16 +3236,16 @@ var aa = "d0bl03", gc = "d0bl04", oa = "d0bl05", Et = "d0bl06", vc = "d0bl07", f
3236
3236
  return l(i), () => l(null);
3237
3237
  }, [i, a]), _(() => {
3238
3238
  i?.commands.focus("end", { scrollIntoView: !1 });
3239
- }, [i]), /* @__PURE__ */ n(Qr, {
3239
+ }, [i]), /* @__PURE__ */ n(Jr, {
3240
3240
  "aria-label": t("graph.annotations.text.editLabel"),
3241
- className: Si,
3241
+ className: yi,
3242
3242
  editor: i,
3243
3243
  "data-testid": "text-annotation-editor"
3244
3244
  });
3245
- }, Rn = (e) => {
3246
- const t = wi(e);
3245
+ }, Nn = (e) => {
3246
+ const t = xi(e);
3247
3247
  return t === void 0 ? {} : { style: `font-family: ${t}` };
3248
- }, Od = jr.create({
3248
+ }, Od = Zr.create({
3249
3249
  name: "annotationTextStyleAttributes",
3250
3250
  addGlobalAttributes() {
3251
3251
  return [{
@@ -3253,15 +3253,15 @@ var aa = "d0bl03", gc = "d0bl04", oa = "d0bl05", Et = "d0bl06", vc = "d0bl07", f
3253
3253
  attributes: {
3254
3254
  fontFamily: {
3255
3255
  default: null,
3256
- renderHTML: (e) => Rn(e.fontFamily)
3256
+ renderHTML: (e) => Nn(e.fontFamily)
3257
3257
  },
3258
3258
  font: {
3259
3259
  default: null,
3260
- renderHTML: (e) => Rn(e.font)
3260
+ renderHTML: (e) => Nn(e.font)
3261
3261
  },
3262
3262
  fontSize: {
3263
3263
  default: null,
3264
- renderHTML: (e) => typeof e.fontSize == "number" && Number.isFinite(e.fontSize) ? { style: `font-size: calc(${e.fontSize}px * ${he.textScale})` } : {}
3264
+ renderHTML: (e) => typeof e.fontSize == "number" && Number.isFinite(e.fontSize) ? { style: `font-size: calc(${e.fontSize}px * ${pe.textScale})` } : {}
3265
3265
  }
3266
3266
  }
3267
3267
  }];
@@ -3297,7 +3297,7 @@ var aa = "d0bl03", gc = "d0bl04", oa = "d0bl05", Et = "d0bl06", vc = "d0bl07", f
3297
3297
  type: "text",
3298
3298
  text: e
3299
3299
  }]
3300
- }] : e.type === "doc" && e.content ? e.content.length === 0 ? [{ type: "paragraph" }] : e.content.map(Dn) : [Dn(e)], Dn = (e) => e.type === "paragraph" ? e : {
3300
+ }] : e.type === "doc" && e.content ? e.content.length === 0 ? [{ type: "paragraph" }] : e.content.map(Rn) : [Rn(e)], Rn = (e) => e.type === "paragraph" ? e : {
3301
3301
  type: "paragraph",
3302
3302
  content: e.content ?? [e]
3303
3303
  }, zd = (e) => {
@@ -3326,7 +3326,7 @@ var aa = "d0bl03", gc = "d0bl04", oa = "d0bl05", Et = "d0bl06", vc = "d0bl07", f
3326
3326
  lineHeight: "var(--uwf6lt3)",
3327
3327
  textColor: "var(--uwf6lt4)"
3328
3328
  }, Hd = "uwf6lt5", Gd = ({ title: e, isTitleVisible: t, isSubtitleVisible: r, subtitle: a, headingStyle: o, subtitleStyle: i }) => {
3329
- const { dispatch: l } = de(), s = O(() => uc({
3329
+ const { dispatch: l } = ue(), s = O(() => uc({
3330
3330
  titlePlaceholder: "Untitled",
3331
3331
  subtitlePlaceholder: "Untitled",
3332
3332
  isTitleVisible: t,
@@ -3347,17 +3347,17 @@ var aa = "d0bl03", gc = "d0bl04", oa = "d0bl05", Et = "d0bl06", vc = "d0bl07", f
3347
3347
  isEditable: !0,
3348
3348
  onUpdate: (u) => {
3349
3349
  const d = Rd(u);
3350
- t && l(new zr({ title: d.title })), r && l(new _r({ subtitle: d.subtitle }));
3350
+ t && l(new _r({ title: d.title })), r && l(new Dr({ subtitle: d.subtitle }));
3351
3351
  }
3352
3352
  });
3353
3353
  return /* @__PURE__ */ n("div", {
3354
3354
  className: Hd,
3355
3355
  "data-testid": "title-editor",
3356
3356
  style: {
3357
- ...wr(o),
3358
- ...Yo(Bd, i)
3357
+ ...xr(o),
3358
+ ...jo(Bd, i)
3359
3359
  },
3360
- children: /* @__PURE__ */ n(Sa, {
3360
+ children: /* @__PURE__ */ n(ya, {
3361
3361
  editor: c,
3362
3362
  ariaLabel: "Chart title and subtitle"
3363
3363
  })
@@ -3366,16 +3366,16 @@ var aa = "d0bl03", gc = "d0bl04", oa = "d0bl05", Et = "d0bl06", vc = "d0bl07", f
3366
3366
  Title: Gd,
3367
3367
  Caption: Pd,
3368
3368
  TextAnnotation: Ed
3369
- }, Ca = (e, t) => {
3369
+ }, Sa = (e, t) => {
3370
3370
  const { offsetWidth: r } = e;
3371
3371
  return r <= 0 || t <= 0 ? 1 : t / r;
3372
- }, xa = (e) => Ca(e, e.getBoundingClientRect().width), _n = (e, t) => {
3372
+ }, Ca = (e) => Sa(e, e.getBoundingClientRect().width), Dn = (e, t) => {
3373
3373
  const { offsetWidth: r, offsetHeight: a } = e;
3374
3374
  return r <= 0 || a <= 0 ? t : {
3375
3375
  width: r,
3376
3376
  height: a
3377
3377
  };
3378
- }, zn = "http://www.w3.org/2000/svg", Fn = /* @__PURE__ */ new WeakMap(), $d = (e, t) => {
3378
+ }, _n = "http://www.w3.org/2000/svg", zn = /* @__PURE__ */ new WeakMap(), $d = (e, t) => {
3379
3379
  const r = Wd(e);
3380
3380
  r.setAttribute("d", t);
3381
3381
  const { x: a, y: o, width: i, height: l } = r.getBBox();
@@ -3386,12 +3386,12 @@ var aa = "d0bl03", gc = "d0bl04", oa = "d0bl05", Et = "d0bl06", vc = "d0bl07", f
3386
3386
  height: l
3387
3387
  };
3388
3388
  }, Wd = (e) => {
3389
- const t = Fn.get(e);
3389
+ const t = zn.get(e);
3390
3390
  if (t?.isConnected) return t;
3391
- const r = e.createElementNS(zn, "svg");
3391
+ const r = e.createElementNS(_n, "svg");
3392
3392
  r.setAttribute("aria-hidden", "true"), r.style.cssText = "position:absolute;width:0;height:0;overflow:hidden;visibility:hidden;pointer-events:none";
3393
- const a = e.createElementNS(zn, "path");
3394
- return r.append(a), e.body.append(r), Fn.set(e, a), a;
3393
+ const a = e.createElementNS(_n, "path");
3394
+ return r.append(a), e.body.append(r), zn.set(e, a), a;
3395
3395
  }, nn = (e) => e.offset + e.strokeWidth, Ud = (e, t) => {
3396
3396
  const { panelRect: r, look: a, readGridLineWidth: o, measurePathBox: i } = t, l = nn(a);
3397
3397
  switch (e.kind) {
@@ -3461,14 +3461,14 @@ var aa = "d0bl03", gc = "d0bl04", oa = "d0bl05", Et = "d0bl06", vc = "d0bl07", f
3461
3461
  const d = l.current, h = /* @__PURE__ */ new Map(), g = Ud(c, {
3462
3462
  panelRect: r,
3463
3463
  look: a,
3464
- readGridLineWidth: (f) => Pr(i, f).strokeWidth,
3464
+ readGridLineWidth: (f) => Lr(i, f).strokeWidth,
3465
3465
  measurePathBox: (f) => {
3466
3466
  const S = d.get(f) ?? $d(t.ownerDocument, f);
3467
3467
  return h.set(f, S), S;
3468
3468
  }
3469
3469
  });
3470
3470
  l.current = h;
3471
- const v = xa(t);
3471
+ const v = Ca(t);
3472
3472
  o.getState().setSelectedOutline(g === null ? null : {
3473
3473
  target: s,
3474
3474
  frame: g,
@@ -3485,7 +3485,7 @@ var aa = "d0bl03", gc = "d0bl04", oa = "d0bl05", Et = "d0bl06", vc = "d0bl07", f
3485
3485
  ]);
3486
3486
  const u = e !== null;
3487
3487
  Ae(() => u ? () => o.getState().setSelectedOutline(null) : void 0, [o, u]);
3488
- }, jd = "var(--_10d2ycx0)", Yd = "_10d2ycx1", Jd = "_10d2ycx2", Bn = ({ pathData: e, shouldAnimateTransitions: t, source: r, ...a }) => t ? /* @__PURE__ */ n(Qd, {
3488
+ }, jd = "var(--_10d2ycx0)", Yd = "_10d2ycx1", Jd = "_10d2ycx2", Fn = ({ pathData: e, shouldAnimateTransitions: t, source: r, ...a }) => t ? /* @__PURE__ */ n(Qd, {
3489
3489
  pathData: e,
3490
3490
  source: r,
3491
3491
  ...a
@@ -3493,22 +3493,22 @@ var aa = "d0bl03", gc = "d0bl04", oa = "d0bl05", Et = "d0bl06", vc = "d0bl07", f
3493
3493
  d: e,
3494
3494
  ...a
3495
3495
  }), Qd = ({ pathData: e, source: t, ...r }) => {
3496
- const a = ii(e, oi, t);
3496
+ const a = oi(e, ai, t);
3497
3497
  return /* @__PURE__ */ n(ws.path, {
3498
3498
  d: a,
3499
3499
  ...r
3500
3500
  });
3501
3501
  }, eu = "var(--n5vlnq0)", tu = "data-edit-outline-stroke", Nt = (e) => ({
3502
3502
  [tu]: "",
3503
- style: ut({ [eu]: `${e}px` })
3503
+ style: dt({ [eu]: `${e}px` })
3504
3504
  });
3505
- var Hn = (e, t) => {
3505
+ var Bn = (e, t) => {
3506
3506
  if (e.kind === "observations" && t.kind === "observations") {
3507
3507
  if (e.layerId !== t.layerId || e.scope !== t.scope) return !1;
3508
3508
  const r = e.parts[0]?.rows[0];
3509
3509
  return r !== void 0 && (t.parts[0]?.rows.includes(r) ?? !1);
3510
3510
  }
3511
- return e.kind === "guide" && t.kind === "guide" ? Ml(e.target, t.target) : e.kind === "graph" && t.kind === "graph";
3511
+ return e.kind === "guide" && t.kind === "guide" ? Ol(e.target, t.target) : e.kind === "graph" && t.kind === "graph";
3512
3512
  }, nu = (e, t) => {
3513
3513
  const r = Math.max(e.width, 8), a = Math.max(e.height, 8), o = Math.max(0, e.x + e.width / 2 - r / 2), i = Math.max(0, e.y + e.height / 2 - a / 2), l = Math.min(t.width, e.x + e.width / 2 + r / 2), s = Math.min(t.height, e.y + e.height / 2 + a / 2);
3514
3514
  return {
@@ -3518,7 +3518,7 @@ var Hn = (e, t) => {
3518
3518
  height: Math.max(0, s - i)
3519
3519
  };
3520
3520
  }, ru = [], au = (e) => {
3521
- const { layers: t, parsingLocale: r } = z(me((h) => ({
3521
+ const { layers: t, parsingLocale: r } = z(ge((h) => ({
3522
3522
  layers: h.layers,
3523
3523
  parsingLocale: h.config.parsingLocale
3524
3524
  }))), a = X((h) => h.editTargetUnderPointer), o = a?.kind === "observations" ? a.observations : null, i = o === null ? void 0 : Pe(t, o.layerId), l = o?.target.scope ?? null, s = o === null || i === void 0 ? null : gs(i, o.target.scope, o.observationIndex), c = O(() => i === void 0 || l === null || s === null ? null : ou(t, i, l, s), [
@@ -3526,7 +3526,7 @@ var Hn = (e, t) => {
3526
3526
  i,
3527
3527
  l,
3528
3528
  s
3529
- ]), u = O(() => c !== null && e !== null && Hn(c, e), [c, e]), d = o !== null && i !== void 0 && iu(o, i, r) ? o.observationIndex : null;
3529
+ ]), u = O(() => c !== null && e !== null && Bn(c, e), [c, e]), d = o !== null && i !== void 0 && iu(o, i, r) ? o.observationIndex : null;
3530
3530
  return O(() => {
3531
3531
  switch (a?.kind) {
3532
3532
  case "observations": {
@@ -3553,7 +3553,7 @@ var Hn = (e, t) => {
3553
3553
  key: JSON.stringify(a.target),
3554
3554
  target: a.target
3555
3555
  };
3556
- return e !== null && Hn(h, e) ? null : h;
3556
+ return e !== null && Bn(h, e) ? null : h;
3557
3557
  }
3558
3558
  default:
3559
3559
  return null;
@@ -3570,7 +3570,7 @@ var Hn = (e, t) => {
3570
3570
  layer: t,
3571
3571
  rows: vs(t, r, a)
3572
3572
  }];
3573
- for (const i of Gr(t, e)) {
3573
+ for (const i of Hr(t, e)) {
3574
3574
  const l = ds(i, t, r, a);
3575
3575
  l.length > 0 && o.push({
3576
3576
  layer: i,
@@ -3613,23 +3613,23 @@ var Hn = (e, t) => {
3613
3613
  return At([...cu(i.filter((s) => !du(s)))].flatMap(([s, c]) => a[s] === "direct" ? c.map(l) : [It(c.map(l))]));
3614
3614
  case "grid":
3615
3615
  return i.flatMap((s) => {
3616
- const c = st([s], e);
3616
+ const c = lt([s], e);
3617
3617
  if (c?.kind !== "grid" || c.target.axis === "both") return [];
3618
3618
  const { axis: u } = c.target;
3619
3619
  return t.axis === "both" || u === t.axis ? [uu(s, l(s), u)] : [];
3620
3620
  });
3621
3621
  }
3622
3622
  }, su = (e) => {
3623
- const t = `[${Jo}="${e.kind}"]`;
3624
- return e.kind !== "axis" ? t : `${t}[${Uo}="${e.axis}"]`;
3623
+ const t = `[${Yo}="${e.kind}"]`;
3624
+ return e.kind !== "axis" ? t : `${t}[${Wo}="${e.axis}"]`;
3625
3625
  }, cu = (e) => {
3626
3626
  const t = /* @__PURE__ */ new Map();
3627
3627
  for (const r of e) {
3628
- const a = Qo(r);
3628
+ const a = Jo(r);
3629
3629
  a !== null && t.set(a.legendIndex, [...t.get(a.legendIndex) ?? [], r]);
3630
3630
  }
3631
3631
  return t;
3632
- }, du = (e) => e.closest(Lr) !== null, At = (e) => e.map((t) => ({
3632
+ }, du = (e) => e.closest(kr) !== null, At = (e) => e.map((t) => ({
3633
3633
  kind: "box",
3634
3634
  rect: t
3635
3635
  })), uu = (e, { x: t, y: r, width: a, height: o }, i) => e.querySelector("circle") !== null ? {
@@ -3688,7 +3688,7 @@ var Hn = (e, t) => {
3688
3688
  const t = (r) => Number(e?.getAttribute(r) ?? 0);
3689
3689
  return (t("x2") - t("x1")) * (t("y2") - t("y1")) >= 0;
3690
3690
  }, pu = [], mu = (e, { frameElement: t, frameSize: r, panelRect: a, shouldAnimateTransitions: o }) => {
3691
- const i = z((f) => f.coordSystem), l = Zo(), s = Tr(), c = vu(e.kind === "guide" ? e.target : null, {
3691
+ const i = z((f) => f.coordSystem), l = Xo(), s = wr(), c = vu(e.kind === "guide" ? e.target : null, {
3692
3692
  frameElement: t,
3693
3693
  frameSize: r
3694
3694
  }), u = gu(t, r), d = O(() => ({
@@ -3701,11 +3701,11 @@ var Hn = (e, t) => {
3701
3701
  a,
3702
3702
  l,
3703
3703
  s
3704
- ]), h = e.kind === "observations" ? e.parts : null, p = e.kind === "observations" ? e.vertex : null, g = O(() => h?.map((f) => Gn(f, d, o)) ?? pu, [
3704
+ ]), h = e.kind === "observations" ? e.parts : null, p = e.kind === "observations" ? e.vertex : null, g = O(() => h?.map((f) => Hn(f, d, o)) ?? pu, [
3705
3705
  h,
3706
3706
  d,
3707
3707
  o
3708
- ]), v = O(() => p === null ? null : Gn(p, d, !1), [p, d]);
3708
+ ]), v = O(() => p === null ? null : Hn(p, d, !1), [p, d]);
3709
3709
  return O(() => {
3710
3710
  switch (e.kind) {
3711
3711
  case "observations":
@@ -3734,10 +3734,10 @@ var Hn = (e, t) => {
3734
3734
  u
3735
3735
  ]);
3736
3736
  }, gu = (e, t) => {
3737
- const [r, a] = ee(() => _n(e, t));
3737
+ const [r, a] = ee(() => Dn(e, t));
3738
3738
  return Ae(() => {
3739
3739
  a((o) => {
3740
- const i = _n(e, {
3740
+ const i = Dn(e, {
3741
3741
  width: t.width,
3742
3742
  height: t.height
3743
3743
  });
@@ -3748,7 +3748,7 @@ var Hn = (e, t) => {
3748
3748
  t.width,
3749
3749
  t.height
3750
3750
  ]), r;
3751
- }, Gn = ({ layer: e, rows: t }, { coordSystem: r, panelRect: a, resolveRenderer: o, geomReaders: i }, l) => {
3751
+ }, Hn = ({ layer: e, rows: t }, { coordSystem: r, panelRect: a, resolveRenderer: o, geomReaders: i }, l) => {
3752
3752
  const s = {
3753
3753
  ...e,
3754
3754
  data: e.data.take(t)
@@ -3776,7 +3776,7 @@ var Hn = (e, t) => {
3776
3776
  })
3777
3777
  };
3778
3778
  }, vu = (e, { frameElement: t, frameSize: r }) => {
3779
- const a = z((d) => d.coordSystem.type), o = z(me((d) => d.guides.legends.drawn.map((h) => h.display))), i = z((d) => e === null ? null : d), [l, s] = ee([]), c = j(e), u = ne(!1);
3779
+ const a = z((d) => d.coordSystem.type), o = z(ge((d) => d.guides.legends.drawn.map((h) => h.display))), i = z((d) => e === null ? null : d), [l, s] = ee([]), c = j(e), u = ne(!1);
3780
3780
  return Ae(() => {
3781
3781
  const d = c.current;
3782
3782
  if (d === null) return;
@@ -3786,7 +3786,7 @@ var Hn = (e, t) => {
3786
3786
  target: d,
3787
3787
  coordType: a,
3788
3788
  legendDisplays: o
3789
- }), g = xa(t);
3789
+ }), g = Ca(t);
3790
3790
  s(p.map((v) => fu(v, 1 / g)));
3791
3791
  };
3792
3792
  if (u.current) {
@@ -3840,7 +3840,7 @@ var Hn = (e, t) => {
3840
3840
  };
3841
3841
  }
3842
3842
  }, bu = () => {
3843
- const e = Ut()[0] ?? null, { layers: t, parsingLocale: r } = z(me((a) => ({
3843
+ const e = Ut()[0] ?? null, { layers: t, parsingLocale: r } = z(ge((a) => ({
3844
3844
  layers: a.layers,
3845
3845
  parsingLocale: a.config.parsingLocale
3846
3846
  })));
@@ -3872,7 +3872,7 @@ var Hn = (e, t) => {
3872
3872
  }, Su = (e, t, r) => {
3873
3873
  const a = Pe(t, e.layerId);
3874
3874
  if (a === void 0) return null;
3875
- const o = kn({
3875
+ const o = An({
3876
3876
  layer: a,
3877
3877
  target: e,
3878
3878
  parsingLocale: r
@@ -3882,8 +3882,8 @@ var Hn = (e, t) => {
3882
3882
  layer: a,
3883
3883
  rows: o
3884
3884
  }];
3885
- for (const l of Gr(a, t)) {
3886
- const s = kn({
3885
+ for (const l of Hr(a, t)) {
3886
+ const s = An({
3887
3887
  layer: l,
3888
3888
  host: a,
3889
3889
  target: e,
@@ -3902,8 +3902,8 @@ var Hn = (e, t) => {
3902
3902
  parts: i,
3903
3903
  vertex: null
3904
3904
  };
3905
- }, Cu = ["x", "y"], xu = Xr(function({ frameElement: t, frameSize: r, panelRect: a, shouldAnimateTransitions: o }) {
3906
- const i = $o(Cs, Q()), l = bu(), s = au(l);
3905
+ }, Cu = ["x", "y"], xu = qr(function({ frameElement: t, frameSize: r, panelRect: a, shouldAnimateTransitions: o }) {
3906
+ const i = Vo(Cs, Q()), l = bu(), s = au(l);
3907
3907
  if (l === null && s === null) return null;
3908
3908
  const c = {
3909
3909
  frameElement: t,
@@ -3917,19 +3917,19 @@ var Hn = (e, t) => {
3917
3917
  height: r.height,
3918
3918
  "aria-hidden": !0,
3919
3919
  "data-testid": "edit-outline",
3920
- children: [s !== null && /* @__PURE__ */ n(Vn, {
3920
+ children: [s !== null && /* @__PURE__ */ n(Gn, {
3921
3921
  part: "hover",
3922
3922
  target: s,
3923
3923
  look: i.hover,
3924
3924
  ...c
3925
- }, s.key), l !== null && /* @__PURE__ */ n(Vn, {
3925
+ }, s.key), l !== null && /* @__PURE__ */ n(Gn, {
3926
3926
  part: "selected",
3927
3927
  target: l,
3928
3928
  look: i.selected,
3929
3929
  ...c
3930
3930
  }, l.key)]
3931
3931
  });
3932
- }), Vn = ({ part: e, target: t, look: r, frameSize: a, panelRect: o, frameElement: i, shouldAnimateTransitions: l }) => {
3932
+ }), Gn = ({ part: e, target: t, look: r, frameSize: a, panelRect: o, frameElement: i, shouldAnimateTransitions: l }) => {
3933
3933
  const s = Te(), c = `${s}-shapes`, u = `${s}-hole`, d = mu(t, {
3934
3934
  frameElement: i,
3935
3935
  frameSize: a,
@@ -3970,13 +3970,13 @@ var Hn = (e, t) => {
3970
3970
  fill: "white"
3971
3971
  }), /* @__PURE__ */ n("use", {
3972
3972
  href: `#${c}`,
3973
- style: $n("black", r.offset)
3973
+ style: Vn("black", r.offset)
3974
3974
  })]
3975
3975
  })] }),
3976
3976
  /* @__PURE__ */ n("use", {
3977
3977
  href: `#${c}`,
3978
3978
  mask: `url(#${u})`,
3979
- style: $n(r.color, nn(r)),
3979
+ style: Vn(r.color, nn(r)),
3980
3980
  "data-testid": `edit-outline-${e}-ring`
3981
3981
  }),
3982
3982
  t.kind === "observations" && /* @__PURE__ */ n(Iu, {
@@ -3986,10 +3986,10 @@ var Hn = (e, t) => {
3986
3986
  })
3987
3987
  ]
3988
3988
  });
3989
- }, $n = (e, t) => ({
3989
+ }, Vn = (e, t) => ({
3990
3990
  fill: e,
3991
3991
  stroke: e,
3992
- ...ut({ [jd]: `${2 * t}px` })
3992
+ ...dt({ [jd]: `${2 * t}px` })
3993
3993
  }), wu = (e, t, r) => {
3994
3994
  const a = r.offset + nn(r);
3995
3995
  return Kt(Ne({
@@ -4003,10 +4003,10 @@ var Hn = (e, t) => {
4003
4003
  case "observations":
4004
4004
  return /* @__PURE__ */ m("g", {
4005
4005
  transform: `translate(${r.x} ${r.y})`,
4006
- children: [e.parts.map((i) => /* @__PURE__ */ n(Wn, {
4006
+ children: [e.parts.map((i) => /* @__PURE__ */ n($n, {
4007
4007
  part: i,
4008
4008
  borderRadius: o
4009
- }, i.layer.id)), e.vertex !== null && /* @__PURE__ */ n(Wn, {
4009
+ }, i.layer.id)), e.vertex !== null && /* @__PURE__ */ n($n, {
4010
4010
  part: e.vertex,
4011
4011
  borderRadius: o
4012
4012
  }, `vertex-${e.vertex.rows.join()}`)]
@@ -4020,7 +4020,7 @@ var Hn = (e, t) => {
4020
4020
  case "graph":
4021
4021
  return /* @__PURE__ */ n("path", { d: wu(e.frameSize, a, t) });
4022
4022
  }
4023
- }, Wn = Xr(function({ part: t, borderRadius: r }) {
4023
+ }, $n = qr(function({ part: t, borderRadius: r }) {
4024
4024
  return t.kind === "boxes" ? /* @__PURE__ */ n(ku, {
4025
4025
  boxes: t.boxes,
4026
4026
  borderRadius: r
@@ -4032,7 +4032,7 @@ var Hn = (e, t) => {
4032
4032
  const o = r.kind === "dots" || r.key === void 0 ? String(a) : `${r.kind}:${r.key}`;
4033
4033
  switch (r.kind) {
4034
4034
  case "region":
4035
- return r.pathData === "" ? null : /* @__PURE__ */ n(Bn, {
4035
+ return r.pathData === "" ? null : /* @__PURE__ */ n(Fn, {
4036
4036
  pathData: r.pathData,
4037
4037
  fillRule: r.fillRule,
4038
4038
  shouldAnimateTransitions: r.shouldAnimateTransitions ?? !1,
@@ -4040,7 +4040,7 @@ var Hn = (e, t) => {
4040
4040
  "data-geom": t.geom
4041
4041
  }, o);
4042
4042
  case "stroke":
4043
- return r.pathData === "" ? null : /* @__PURE__ */ n(Bn, {
4043
+ return r.pathData === "" ? null : /* @__PURE__ */ n(Fn, {
4044
4044
  pathData: r.pathData,
4045
4045
  shouldAnimateTransitions: r.shouldAnimateTransitions ?? !1,
4046
4046
  source: t,
@@ -4049,7 +4049,7 @@ var Hn = (e, t) => {
4049
4049
  }, o);
4050
4050
  case "dots":
4051
4051
  return r.centers.length === 0 ? null : /* @__PURE__ */ n("path", {
4052
- d: li(r.centers),
4052
+ d: ii(r.centers),
4053
4053
  "data-geom": t.geom,
4054
4054
  ...Nt(r.size)
4055
4055
  }, o);
@@ -4066,7 +4066,7 @@ var Hn = (e, t) => {
4066
4066
  const l = t.map((s) => Pu(s, i)).join("");
4067
4067
  return l === "" ? null : /* @__PURE__ */ n("path", {
4068
4068
  d: l,
4069
- ...Nt(Pr(a, i).strokeWidth)
4069
+ ...Nt(Lr(a, i).strokeWidth)
4070
4070
  }, i);
4071
4071
  });
4072
4072
  const o = t.map((i) => i.kind === "box" ? Kt(i.rect, r) : "").join("");
@@ -4092,7 +4092,7 @@ var Hn = (e, t) => {
4092
4092
  height: r.height,
4093
4093
  overflow: "visible",
4094
4094
  children: /* @__PURE__ */ n("line", {
4095
- ...ki(a, i, r),
4095
+ ...Ai(a, i, r),
4096
4096
  stroke: t.color,
4097
4097
  strokeWidth: t.strokeWidth,
4098
4098
  strokeDasharray: "4 3",
@@ -4102,33 +4102,33 @@ var Hn = (e, t) => {
4102
4102
  });
4103
4103
  }, Eu = ({ layer: e, rows: t }) => {
4104
4104
  for (const r of t) {
4105
- const a = e.data.getAt(r), o = a === null ? null : es(a), i = a === null ? null : ts(a);
4105
+ const a = e.data.getAt(r), o = a === null ? null : Ql(a), i = a === null ? null : es(a);
4106
4106
  if (o !== null && i !== null) return {
4107
4107
  x: o,
4108
4108
  y: i
4109
4109
  };
4110
4110
  }
4111
4111
  return null;
4112
- }, Ou = "data-graphy-chart-chrome", Mu = "data-graphy-chart-menu", rn = { [Mu]: "" }, ht = (e) => ({ [Ou]: e }), Ye = (e, t) => e instanceof Element && e.closest(`[data-graphy-chart-chrome="${CSS.escape(t)}"]`) !== null, wa = (e) => e instanceof Element && e.closest("[data-graphy-chart-menu]") !== null, Rt = (e) => e instanceof Element && e.closest("[data-graphy-chart-chrome]") !== null, Ta = (e, t, r) => r !== null && jt({
4112
+ }, Ou = "data-graphy-chart-chrome", Mu = "data-graphy-chart-menu", rn = { [Mu]: "" }, ut = (e) => ({ [Ou]: e }), je = (e, t) => e instanceof Element && e.closest(`[data-graphy-chart-chrome="${CSS.escape(t)}"]`) !== null, xa = (e) => e instanceof Element && e.closest("[data-graphy-chart-menu]") !== null, Rt = (e) => e instanceof Element && e.closest("[data-graphy-chart-chrome]") !== null, wa = (e, t, r) => r !== null && jt({
4113
4113
  x: e.clientX - t.x,
4114
4114
  y: e.clientY - t.y
4115
- }, r), Be = (e, t, r) => e instanceof Node && (t.contains(e) || Ye(e, r)), Nu = "cml7ha0", Aa = Ge(null), Ru = ({ children: e }) => {
4116
- const { chartId: t } = F(), [r] = ee(ce), [a, o] = ee(null);
4117
- return r === null ? null : /* @__PURE__ */ m(Y, { children: [Zr(/* @__PURE__ */ n("div", {
4115
+ }, r), Be = (e, t, r) => e instanceof Node && (t.contains(e) || je(e, r)), Nu = "cml7ha0", Ta = Ge(null), Ru = ({ children: e }) => {
4116
+ const { chartId: t } = F(), [r] = ee(de), [a, o] = ee(null);
4117
+ return r === null ? null : /* @__PURE__ */ m(Y, { children: [Xr(/* @__PURE__ */ n("div", {
4118
4118
  ref: o,
4119
4119
  className: Nu,
4120
- ...ht(t)
4121
- }), r), /* @__PURE__ */ n(Aa.Provider, {
4120
+ ...ut(t)
4121
+ }), r), /* @__PURE__ */ n(Ta.Provider, {
4122
4122
  value: a,
4123
4123
  children: e
4124
4124
  })] });
4125
- }, pt = () => _e(Aa), Du = "kwvn4c0", _u = "kwvn4c1", ka = (e, t) => ({
4125
+ }, ht = () => _e(Ta), Du = "kwvn4c0", _u = "kwvn4c1", Aa = (e, t) => ({
4126
4126
  contextElement: e,
4127
4127
  getBoundingClientRect: () => {
4128
- const r = e.getBoundingClientRect(), a = Ca(e, r.width);
4128
+ const r = e.getBoundingClientRect(), a = Sa(e, r.width);
4129
4129
  return new DOMRect(r.left + t.x * a, r.top + t.y * a, t.width * a, t.height * a);
4130
4130
  }
4131
- }), La = () => {
4131
+ }), ka = () => {
4132
4132
  const [e, t] = ee(!1);
4133
4133
  return _(() => {
4134
4134
  t(!0);
@@ -4141,11 +4141,11 @@ var Hn = (e, t) => {
4141
4141
  align: "shift",
4142
4142
  fallbackAxisSide: "end"
4143
4143
  }, Bu = ({ frameElement: e, boundary: t, clearance: r = zu, onEscape: a, children: o }) => {
4144
- const i = pt(), l = La(), [s, c] = ee(null);
4144
+ const i = ht(), l = ka(), [s, c] = ee(null);
4145
4145
  Ae(() => () => {
4146
4146
  s?.contains(document.activeElement) && e.focus({ preventScroll: !0 });
4147
4147
  }, [s, e]);
4148
- const { x: u, y: d, width: h, height: p } = t, g = O(() => ka(e, {
4148
+ const { x: u, y: d, width: h, height: p } = t, g = O(() => Aa(e, {
4149
4149
  x: u,
4150
4150
  y: d,
4151
4151
  width: h,
@@ -4218,7 +4218,7 @@ var Hn = (e, t) => {
4218
4218
  return e;
4219
4219
  }
4220
4220
  }, Wu = ({ frameElement: e }) => {
4221
- const t = I(), { selectionStore: r } = F(), a = X((l) => l.selectedOutline === null ? null : Gu(l.selectedOutline.target, t)), o = Ti();
4221
+ const t = I(), { selectionStore: r } = F(), a = X((l) => l.selectedOutline === null ? null : Gu(l.selectedOutline.target, t)), o = wi();
4222
4222
  if (a === null || o === null) return null;
4223
4223
  const i = () => {
4224
4224
  r.getState().clearSelection();
@@ -4254,7 +4254,7 @@ var Hn = (e, t) => {
4254
4254
  return Ae(() => {
4255
4255
  t.getState().setBoundary(i);
4256
4256
  }, [t, i]), Ae(() => () => t.getState().setBoundary(null), [t]), null;
4257
- }, Pa = (e) => /* @__PURE__ */ m(T, {
4257
+ }, La = (e) => /* @__PURE__ */ m(T, {
4258
4258
  viewBox: "0 0 16 16",
4259
4259
  ...e,
4260
4260
  children: [
@@ -4280,7 +4280,7 @@ var Hn = (e, t) => {
4280
4280
  })
4281
4281
  ]
4282
4282
  });
4283
- var Ia = "efjmb40", Ea = "efjmb41", Ie = "efjmb42", Ee = "efjmb43", Ku = "efjmb44", qu = "efjmb45", Xu = /* @__PURE__ */ new Set([
4283
+ var Pa = "efjmb40", Ia = "efjmb41", Ie = "efjmb42", Ee = "efjmb43", Ku = "efjmb44", qu = "efjmb45", Xu = /* @__PURE__ */ new Set([
4284
4284
  "item-press",
4285
4285
  "escape-key",
4286
4286
  "outside-press",
@@ -4288,7 +4288,7 @@ var Ia = "efjmb40", Ea = "efjmb41", Ie = "efjmb42", Ee = "efjmb43", Ku = "efjmb4
4288
4288
  "sibling-open",
4289
4289
  "trigger-press"
4290
4290
  ]), an = ({ label: e, icon: t, onOpened: r, children: a }) => {
4291
- const o = pt(), [i, l] = ee(!1), s = (c, u) => {
4291
+ const o = ht(), [i, l] = ee(!1), s = (c, u) => {
4292
4292
  c ? (l(!0), r?.()) : Xu.has(u.reason) && l(!1);
4293
4293
  };
4294
4294
  return /* @__PURE__ */ m(be.SubmenuRoot, {
@@ -4303,10 +4303,10 @@ var Ia = "efjmb40", Ea = "efjmb41", Ie = "efjmb42", Ee = "efjmb43", Ku = "efjmb4
4303
4303
  side: "right",
4304
4304
  align: "start",
4305
4305
  sideOffset: 4,
4306
- className: Ia,
4306
+ className: Pa,
4307
4307
  ...rn,
4308
4308
  children: /* @__PURE__ */ n(be.Popup, {
4309
- className: Ea,
4309
+ className: Ia,
4310
4310
  children: a
4311
4311
  })
4312
4312
  }) })
@@ -4327,7 +4327,7 @@ var Ia = "efjmb40", Ea = "efjmb41", Ie = "efjmb42", Ee = "efjmb43", Ku = "efjmb4
4327
4327
  })
4328
4328
  ]
4329
4329
  }), ju = "_1qe7q450", Yu = "_1qe7q451", Ju = "_1qe7q452", Qu = ({ label: e, placeholder: t, addLabel: r, at: a, onRequestClose: o }) => {
4330
- const i = ne(null), [l, s] = ee(""), { dispatch: c } = de(), u = l.trim(), d = () => {
4330
+ const i = ne(null), [l, s] = ee(""), { dispatch: c } = ue(), u = l.trim(), d = () => {
4331
4331
  u.length !== 0 && (c(new fe({
4332
4332
  kind: "comment",
4333
4333
  annotation: {
@@ -4338,7 +4338,7 @@ var Ia = "efjmb40", Ea = "efjmb41", Ie = "efjmb42", Ee = "efjmb43", Ku = "efjmb4
4338
4338
  };
4339
4339
  return /* @__PURE__ */ n(an, {
4340
4340
  label: e,
4341
- icon: /* @__PURE__ */ n(Pa, {}),
4341
+ icon: /* @__PURE__ */ n(La, {}),
4342
4342
  onOpened: () => {
4343
4343
  requestAnimationFrame(() => i.current?.focus());
4344
4344
  },
@@ -4382,7 +4382,7 @@ var Ia = "efjmb40", Ea = "efjmb41", Ie = "efjmb42", Ee = "efjmb43", Ku = "efjmb4
4382
4382
  fillOpacity: "0.8"
4383
4383
  })
4384
4384
  }), nh = "relative-difference", rh = ({ label: e, layer: t, at: r, onRequestClose: a }) => {
4385
- const { dispatch: o } = de(), i = z((c) => c.coordSystem), l = O(() => as({
4385
+ const { dispatch: o } = ue(), i = z((c) => c.coordSystem), l = O(() => rs({
4386
4386
  layer: t,
4387
4387
  at: r,
4388
4388
  coordSystem: i
@@ -4396,7 +4396,7 @@ var Ia = "efjmb40", Ea = "efjmb41", Ie = "efjmb42", Ee = "efjmb43", Ku = "efjmb4
4396
4396
  o(new fe({
4397
4397
  kind: "differenceArrow",
4398
4398
  annotation: {
4399
- ...Nr,
4399
+ ...Mr,
4400
4400
  ...l,
4401
4401
  label: nh
4402
4402
  }
@@ -4416,7 +4416,7 @@ function ah(e, t) {
4416
4416
  scope: "series",
4417
4417
  labelKey: "pieSlice"
4418
4418
  }];
4419
- const r = ns(t.data, t.mapping);
4419
+ const r = ts(t.data, t.mapping);
4420
4420
  switch (t.geom) {
4421
4421
  case "bar": {
4422
4422
  const a = [{
@@ -4461,8 +4461,8 @@ function ah(e, t) {
4461
4461
  }
4462
4462
  }
4463
4463
  var oh = (e) => {
4464
- const t = Kr(e.mapping.x);
4465
- return t !== null && t !== Ri.x;
4464
+ const t = Ur(e.mapping.x);
4465
+ return t !== null && t !== Ni.x;
4466
4466
  }, ih = (e) => /* @__PURE__ */ m(T, {
4467
4467
  viewBox: "0 0 16 16",
4468
4468
  ...e,
@@ -4829,10 +4829,10 @@ var oh = (e) => {
4829
4829
  scatterPoint: ph,
4830
4830
  scatterSeries: mh,
4831
4831
  pieSlice: hh
4832
- }, Oa = ({ labelKey: e }) => {
4832
+ }, Ea = ({ labelKey: e }) => {
4833
4833
  const t = gh[e];
4834
4834
  return /* @__PURE__ */ n(t, {});
4835
- }, Ma = (e) => /* @__PURE__ */ m(T, {
4835
+ }, Oa = (e) => /* @__PURE__ */ m(T, {
4836
4836
  viewBox: "0 0 16 16",
4837
4837
  ...e,
4838
4838
  children: [/* @__PURE__ */ n("path", {
@@ -4849,24 +4849,24 @@ var oh = (e) => {
4849
4849
  const a = I();
4850
4850
  return /* @__PURE__ */ n(an, {
4851
4851
  label: e,
4852
- icon: /* @__PURE__ */ n(Ma, {}),
4852
+ icon: /* @__PURE__ */ n(Oa, {}),
4853
4853
  children: t.map((o) => /* @__PURE__ */ m(be.Item, {
4854
4854
  className: Ie,
4855
4855
  onClick: () => r(o.scope),
4856
- children: [/* @__PURE__ */ n(Oa, { labelKey: o.labelKey }), /* @__PURE__ */ n("span", {
4856
+ children: [/* @__PURE__ */ n(Ea, { labelKey: o.labelKey }), /* @__PURE__ */ n("span", {
4857
4857
  className: Ee,
4858
4858
  children: a(`graph.annotations.highlights.labels.${o.labelKey}`)
4859
4859
  })]
4860
4860
  }, o.scope))
4861
4861
  });
4862
4862
  }, fh = ({ label: e, layer: t, observation: r, highlights: a, onRequestClose: o }) => {
4863
- const i = I(), { dispatch: l } = de(), s = z((g) => g.coordSystem), c = O(() => _l(t, r), [t, r]), u = O(() => ah(s, t), [s, t]), d = O(() => {
4863
+ const i = I(), { dispatch: l } = ue(), s = z((g) => g.coordSystem), c = O(() => Dl(t, r), [t, r]), u = O(() => ah(s, t), [s, t]), d = O(() => {
4864
4864
  const g = new Set(a.map((v) => v.scope));
4865
4865
  return u.filter((v) => !g.has(v.scope));
4866
4866
  }, [u, a]), [h] = d;
4867
4867
  if (c === null || h === void 0) return null;
4868
4868
  const p = (g) => {
4869
- l(new Ni({
4869
+ l(new Mi({
4870
4870
  predicate: c,
4871
4871
  scope: g,
4872
4872
  layerId: t.id
@@ -4877,7 +4877,7 @@ var oh = (e) => {
4877
4877
  return /* @__PURE__ */ m(be.Item, {
4878
4878
  className: Ie,
4879
4879
  onClick: () => p(h.scope),
4880
- children: [/* @__PURE__ */ n(Oa, { labelKey: h.labelKey }), /* @__PURE__ */ n("span", {
4880
+ children: [/* @__PURE__ */ n(Ea, { labelKey: h.labelKey }), /* @__PURE__ */ n("span", {
4881
4881
  className: Ee,
4882
4882
  children: g
4883
4883
  })]
@@ -4888,27 +4888,27 @@ var oh = (e) => {
4888
4888
  options: d,
4889
4889
  onSelect: p
4890
4890
  });
4891
- }, bh = "_1aafi1g0", yh = "_1aafi1g1", Na = ({ children: e }) => /* @__PURE__ */ m("span", {
4891
+ }, bh = "_1aafi1g0", yh = "_1aafi1g1", Ma = ({ children: e }) => /* @__PURE__ */ m("span", {
4892
4892
  className: bh,
4893
4893
  "aria-hidden": "true",
4894
4894
  children: [e, /* @__PURE__ */ n("span", { className: yh })]
4895
4895
  }), Sh = ({ label: e, highlights: t, onRequestClose: r }) => {
4896
- const { dispatch: a } = de(), o = t.at(-1);
4896
+ const { dispatch: a } = ue(), o = t.at(-1);
4897
4897
  if (o === void 0) return null;
4898
4898
  const i = () => {
4899
- a(new Vi({ id: o.id })), r();
4899
+ a(new Gi({ id: o.id })), r();
4900
4900
  };
4901
4901
  return /* @__PURE__ */ m(B.Item, {
4902
4902
  className: Ie,
4903
4903
  onClick: i,
4904
- children: [/* @__PURE__ */ n(Na, { children: /* @__PURE__ */ n(Ma, {}) }), /* @__PURE__ */ n("span", {
4904
+ children: [/* @__PURE__ */ n(Ma, { children: /* @__PURE__ */ n(Oa, {}) }), /* @__PURE__ */ n("span", {
4905
4905
  className: Ee,
4906
4906
  children: e
4907
4907
  })]
4908
4908
  });
4909
4909
  }, Ch = (e, t) => {
4910
4910
  const r = z((o) => o.spec.highlights), a = z((o) => o.config.parsingLocale);
4911
- return O(() => Zl({
4911
+ return O(() => Xl({
4912
4912
  layer: e,
4913
4913
  highlights: r,
4914
4914
  observation: t,
@@ -4919,7 +4919,7 @@ var oh = (e) => {
4919
4919
  t,
4920
4920
  a
4921
4921
  ]);
4922
- }, Ra = (e) => /* @__PURE__ */ m(T, {
4922
+ }, Na = (e) => /* @__PURE__ */ m(T, {
4923
4923
  viewBox: "0 0 16 16",
4924
4924
  ...e,
4925
4925
  children: [
@@ -4943,7 +4943,7 @@ var oh = (e) => {
4943
4943
  })
4944
4944
  ]
4945
4945
  }), xh = ({ label: e, at: t, onRequestClose: r }) => {
4946
- const { dispatch: a } = de(), o = () => {
4946
+ const { dispatch: a } = ue(), o = () => {
4947
4947
  a(new fe({
4948
4948
  kind: "pinnedNumber",
4949
4949
  annotation: { at: t }
@@ -4952,12 +4952,12 @@ var oh = (e) => {
4952
4952
  return /* @__PURE__ */ m(B.Item, {
4953
4953
  className: Ie,
4954
4954
  onClick: o,
4955
- children: [/* @__PURE__ */ n(Ra, {}), /* @__PURE__ */ n("span", {
4955
+ children: [/* @__PURE__ */ n(Na, {}), /* @__PURE__ */ n("span", {
4956
4956
  className: Ee,
4957
4957
  children: e
4958
4958
  })]
4959
4959
  });
4960
- }, Da = (e) => /* @__PURE__ */ m(T, {
4960
+ }, Ra = (e) => /* @__PURE__ */ m(T, {
4961
4961
  viewBox: "0 0 16 16",
4962
4962
  ...e,
4963
4963
  children: [
@@ -4990,34 +4990,34 @@ var oh = (e) => {
4990
4990
  fillOpacity: "0.8"
4991
4991
  })
4992
4992
  ]
4993
- }), _a = {
4993
+ }), Da = {
4994
4994
  pinnedNumber: {
4995
- icon: Ra,
4995
+ icon: Na,
4996
4996
  labelKey: "graph.annotations.baseMenu.unpinNumber"
4997
4997
  },
4998
4998
  comment: {
4999
- icon: Pa,
4999
+ icon: La,
5000
5000
  labelKey: "graph.annotations.baseMenu.removeAnnotation"
5001
5001
  },
5002
5002
  sticker: {
5003
- icon: Da,
5003
+ icon: Ra,
5004
5004
  labelKey: "graph.annotations.baseMenu.removeSticker"
5005
5005
  },
5006
5006
  image: null
5007
- }, wh = (e) => os(e.kind) && _a[e.kind] !== null, Th = ({ attachment: e, onRequestClose: t }) => {
5008
- const r = I(), { dispatch: a } = de(), { icon: o, labelKey: i } = _a[e.kind], l = () => {
5007
+ }, wh = (e) => as(e.kind) && Da[e.kind] !== null, Th = ({ attachment: e, onRequestClose: t }) => {
5008
+ const r = I(), { dispatch: a } = ue(), { icon: o, labelKey: i } = Da[e.kind], l = () => {
5009
5009
  a(new De({ id: e.annotation.id })), t();
5010
5010
  };
5011
5011
  return /* @__PURE__ */ m(B.Item, {
5012
5012
  className: Ie,
5013
5013
  onClick: l,
5014
- children: [/* @__PURE__ */ n(Na, { children: /* @__PURE__ */ n(o, {}) }), /* @__PURE__ */ n("span", {
5014
+ children: [/* @__PURE__ */ n(Ma, { children: /* @__PURE__ */ n(o, {}) }), /* @__PURE__ */ n("span", {
5015
5015
  className: Ee,
5016
5016
  children: r(i)
5017
5017
  })]
5018
5018
  });
5019
5019
  }, Ah = "ceeojg0", kh = "ceeojg1", Lh = "ceeojg2", Ph = ({ label: e, at: t, onRequestClose: r }) => {
5020
- const { dispatch: a } = de(), o = (i) => {
5020
+ const { dispatch: a } = ue(), o = (i) => {
5021
5021
  a(new fe({
5022
5022
  kind: "sticker",
5023
5023
  annotation: {
@@ -5031,10 +5031,10 @@ var oh = (e) => {
5031
5031
  };
5032
5032
  return /* @__PURE__ */ n(an, {
5033
5033
  label: e,
5034
- icon: /* @__PURE__ */ n(Da, {}),
5034
+ icon: /* @__PURE__ */ n(Ra, {}),
5035
5035
  children: /* @__PURE__ */ n("div", {
5036
5036
  className: Ah,
5037
- children: Object.entries(Ai).map(([i, l]) => /* @__PURE__ */ n(be.Item, {
5037
+ children: Object.entries(Ti).map(([i, l]) => /* @__PURE__ */ n(be.Item, {
5038
5038
  className: kh,
5039
5039
  "aria-label": i,
5040
5040
  onClick: () => o(i),
@@ -5066,7 +5066,7 @@ var oh = (e) => {
5066
5066
  onClose: i
5067
5067
  });
5068
5068
  }, Eh = ({ frameElement: e, trigger: t, layer: r, at: a, observation: o, onClose: i }) => {
5069
- const l = I(), s = pt(), c = z((C) => C.spec.annotations), u = z((C) => C.config.parsingLocale), d = La(), { x: h, y: p, width: g, height: v } = t, f = O(() => ka(e, {
5069
+ const l = I(), s = ht(), c = z((C) => C.spec.annotations), u = z((C) => C.config.parsingLocale), d = ka(), { x: h, y: p, width: g, height: v } = t, f = O(() => Aa(e, {
5070
5070
  x: h,
5071
5071
  y: p,
5072
5072
  width: g,
@@ -5077,13 +5077,13 @@ var oh = (e) => {
5077
5077
  p,
5078
5078
  g,
5079
5079
  v
5080
- ]), S = Yl(c, a, O(() => $l(r, u), [r, u])), L = S !== null && wh(S) ? S : null, x = Ch(r, o), P = (C, M) => {
5080
+ ]), S = jl(c, a, O(() => Vl(r, u), [r, u])), k = S !== null && wh(S) ? S : null, x = Ch(r, o), L = (C, M) => {
5081
5081
  !C && Oh(M.reason) && i();
5082
5082
  };
5083
5083
  return /* @__PURE__ */ n(B.Root, {
5084
5084
  open: d,
5085
5085
  modal: !1,
5086
- onOpenChange: P,
5086
+ onOpenChange: L,
5087
5087
  children: /* @__PURE__ */ n(B.Portal, {
5088
5088
  container: s,
5089
5089
  children: /* @__PURE__ */ n(re, { children: /* @__PURE__ */ n(B.Positioner, {
@@ -5091,14 +5091,14 @@ var oh = (e) => {
5091
5091
  side: "right",
5092
5092
  align: "start",
5093
5093
  sideOffset: 8,
5094
- className: Ia,
5094
+ className: Pa,
5095
5095
  ...rn,
5096
5096
  children: /* @__PURE__ */ m(B.Popup, {
5097
- className: Ea,
5097
+ className: Ia,
5098
5098
  "data-testid": "observation-menu",
5099
5099
  children: [
5100
- L !== null && /* @__PURE__ */ n(Th, {
5101
- attachment: L,
5100
+ k !== null && /* @__PURE__ */ n(Th, {
5101
+ attachment: k,
5102
5102
  onRequestClose: i
5103
5103
  }),
5104
5104
  /* @__PURE__ */ n(Sh, {
@@ -5107,7 +5107,7 @@ var oh = (e) => {
5107
5107
  onRequestClose: i
5108
5108
  }),
5109
5109
  /* @__PURE__ */ n(B.Separator, { className: Ku }),
5110
- L === null && /* @__PURE__ */ m(Y, { children: [
5110
+ k === null && /* @__PURE__ */ m(Y, { children: [
5111
5111
  /* @__PURE__ */ n(xh, {
5112
5112
  label: l("graph.annotations.baseMenu.pinNumber"),
5113
5113
  at: a,
@@ -5144,10 +5144,10 @@ var oh = (e) => {
5144
5144
  }) })
5145
5145
  })
5146
5146
  });
5147
- }, Oh = (e) => e === "outside-press" || e === "escape-key" || e === "item-press", on = "l8tsqe0", za = ["start", "end"], Fa = ({ anchor: e, point: t, delta: r }) => {
5147
+ }, Oh = (e) => e === "outside-press" || e === "escape-key" || e === "item-press", on = "l8tsqe0", _a = ["start", "end"], za = ({ anchor: e, point: t, delta: r }) => {
5148
5148
  const a = {
5149
- x: Un(t.x, r.x),
5150
- y: Un(1 - t.y, r.y)
5149
+ x: Wn(t.x, r.x),
5150
+ y: Wn(1 - t.y, r.y)
5151
5151
  };
5152
5152
  return {
5153
5153
  anchor: {
@@ -5166,26 +5166,26 @@ var oh = (e) => {
5166
5166
  ...e[t.endpoint],
5167
5167
  ...t.point
5168
5168
  }
5169
- }), Ba = (e, t) => e.x === t.x && e.y === t.y, Mh = (e, t) => {
5170
- const r = Je(e, t);
5169
+ }), Fa = (e, t) => e.x === t.x && e.y === t.y, Mh = (e, t) => {
5170
+ const r = Ye(e, t);
5171
5171
  return {
5172
5172
  x: t.x + r.x,
5173
5173
  y: t.y + r.y
5174
5174
  };
5175
5175
  }, Nh = (e, t, r) => {
5176
- const a = Je(e, r), o = Je(t, r);
5176
+ const a = Ye(e, r), o = Ye(t, r);
5177
5177
  return {
5178
5178
  x: Math.min(a.x, o.x),
5179
5179
  y: Math.min(a.y, o.y),
5180
5180
  width: Math.abs(o.x - a.x),
5181
5181
  height: Math.abs(o.y - a.y)
5182
5182
  };
5183
- }, Un = (e, t) => !Number.isFinite(t) || !Number.isFinite(e) ? 0 : et(t, Math.min(-e, 0), Math.max(1 - e, 0)), Rh = ({ panelRect: e }) => {
5183
+ }, Wn = (e, t) => !Number.isFinite(t) || !Number.isFinite(e) ? 0 : Qe(t, Math.min(-e, 0), Math.max(1 - e, 0)), Rh = ({ panelRect: e }) => {
5184
5184
  const t = X((s) => V(s, "arrow-endpoint-drag")), r = Le(e).arrows, a = Q();
5185
5185
  if (t === null) return null;
5186
5186
  const o = r.find((s) => s.id === t.annotationId);
5187
5187
  if (o === void 0) return null;
5188
- const i = Yt(a, o.id), l = Hr({
5188
+ const i = Yt(a, o.id), l = Br({
5189
5189
  arrow: ln(o, t),
5190
5190
  style: i,
5191
5191
  panelWidth: e.width,
@@ -5202,7 +5202,7 @@ var oh = (e) => {
5202
5202
  },
5203
5203
  "data-testid": "arrow-endpoint-preview",
5204
5204
  "data-annotation-id": t.annotationId,
5205
- children: /* @__PURE__ */ n(kr, {
5205
+ children: /* @__PURE__ */ n(Ar, {
5206
5206
  computed: l,
5207
5207
  style: i,
5208
5208
  isAddressable: !1
@@ -5224,7 +5224,7 @@ var oh = (e) => {
5224
5224
  strokeLinejoin: "round",
5225
5225
  children: [/* @__PURE__ */ n("path", { d: "m12 19-7-7 7-7" }), /* @__PURE__ */ n("path", { d: "M19 12H5" })]
5226
5226
  })
5227
- }), Ha = (e) => /* @__PURE__ */ n(T, {
5227
+ }), Ba = (e) => /* @__PURE__ */ n(T, {
5228
5228
  ...e,
5229
5229
  children: /* @__PURE__ */ m("g", {
5230
5230
  stroke: "currentColor",
@@ -5242,7 +5242,7 @@ var oh = (e) => {
5242
5242
  strokeLinejoin: "round",
5243
5243
  children: [/* @__PURE__ */ n("path", { d: "M7 17 17 7" }), /* @__PURE__ */ n("path", { d: "M7 7h10v10" })]
5244
5244
  })
5245
- }), Ga = (e) => /* @__PURE__ */ n(T, {
5245
+ }), Ha = (e) => /* @__PURE__ */ n(T, {
5246
5246
  ...e,
5247
5247
  children: /* @__PURE__ */ m("g", {
5248
5248
  fill: "currentColor",
@@ -5270,7 +5270,7 @@ var oh = (e) => {
5270
5270
  })
5271
5271
  ]
5272
5272
  })
5273
- }), mt = (e) => /* @__PURE__ */ n(T, {
5273
+ }), pt = (e) => /* @__PURE__ */ n(T, {
5274
5274
  ...e,
5275
5275
  children: /* @__PURE__ */ m("g", {
5276
5276
  stroke: "currentColor",
@@ -5285,7 +5285,7 @@ var oh = (e) => {
5285
5285
  ]
5286
5286
  })
5287
5287
  }), zh = "var(--pvjfpx0)", Fh = "var(--pvjfpx1)", Bh = "pvjfpx2", Hh = "pvjfpx3", Gh = "pvjfpx4", Vh = "pvjfpx6 pvjfpx5", $h = "pvjfpx7 pvjfpx6 pvjfpx5", Wh = "pvjfpx8 pvjfpx5", ze = 8, Uh = ({ anchorBox: e, panelRect: t, frameWidth: r, frameHeight: a }) => {
5288
- const o = t.y + e.y, i = o + e.height, l = o - 8 - 36, s = i + 8, c = et(l >= ze ? l : s, ze, a - ze - 36), u = ze;
5288
+ const o = t.y + e.y, i = o + e.height, l = o - 8 - 36, s = i + 8, c = Qe(l >= ze ? l : s, ze, a - ze - 36), u = ze;
5289
5289
  return {
5290
5290
  top: c,
5291
5291
  left: u,
@@ -5310,8 +5310,8 @@ var oh = (e) => {
5310
5310
  "aria-label": o,
5311
5311
  className: Hh,
5312
5312
  "data-testid": i,
5313
- ...ht(s),
5314
- style: ut({
5313
+ ...ut(s),
5314
+ style: dt({
5315
5315
  [zh]: `${c.centre}px`,
5316
5316
  [Fh]: `${c.available}px`
5317
5317
  }),
@@ -5332,7 +5332,7 @@ var oh = (e) => {
5332
5332
  onMouseDown: (s) => s.preventDefault(),
5333
5333
  children: [t, /* @__PURE__ */ n(Ve, { size: "sm" })]
5334
5334
  }), /* @__PURE__ */ n(q.MenuPopup, {
5335
- popupAttributes: ht(l),
5335
+ popupAttributes: ut(l),
5336
5336
  children: i
5337
5337
  })]
5338
5338
  });
@@ -5340,7 +5340,7 @@ var oh = (e) => {
5340
5340
  const { chartId: t } = F();
5341
5341
  return /* @__PURE__ */ n(q.ColorPicker, {
5342
5342
  ...e,
5343
- popupAttributes: ht(t)
5343
+ popupAttributes: ut(t)
5344
5344
  });
5345
5345
  }, Zh = ({ color: e, opacity: t }) => /* @__PURE__ */ n("span", {
5346
5346
  className: Gh,
@@ -5369,7 +5369,7 @@ var oh = (e) => {
5369
5369
  ToggleButton: Yh,
5370
5370
  Button: q.Button,
5371
5371
  Separator: q.Separator
5372
- }, Jh = { kind: "chrome-popup" }, gt = () => {
5372
+ }, Jh = { kind: "chrome-popup" }, mt = () => {
5373
5373
  const { commands: e } = F(), t = $(), [r, a] = ee(null);
5374
5374
  _(() => () => e.commit(), [e]), _(() => {
5375
5375
  const { claimInteraction: i, releaseInteraction: l } = t.getState();
@@ -5421,26 +5421,26 @@ var oh = (e) => {
5421
5421
  })
5422
5422
  }), n1 = [
5423
5423
  {
5424
- value: xt.thin,
5424
+ value: Ct.thin,
5425
5425
  key: "graph.annotations.arrowToolbar.thickness.thin"
5426
5426
  },
5427
5427
  {
5428
- value: xt.medium,
5428
+ value: Ct.medium,
5429
5429
  key: "graph.annotations.arrowToolbar.thickness.medium"
5430
5430
  },
5431
5431
  {
5432
- value: xt.thick,
5432
+ value: Ct.thick,
5433
5433
  key: "graph.annotations.arrowToolbar.thickness.thick"
5434
5434
  }
5435
- ], Kn = [{
5435
+ ], Un = [{
5436
5436
  value: "line-arrow",
5437
5437
  key: "graph.annotations.arrowToolbar.arrowhead.lineArrow",
5438
- Icon: Ha
5438
+ Icon: Ba
5439
5439
  }, {
5440
5440
  value: "none",
5441
5441
  key: "graph.annotations.arrowToolbar.arrowhead.none",
5442
- Icon: Ko
5443
- }], qn = [
5442
+ Icon: Uo
5443
+ }], Kn = [
5444
5444
  {
5445
5445
  value: "solid",
5446
5446
  key: "graph.annotations.arrowToolbar.lineStyle.solid",
@@ -5458,7 +5458,7 @@ var oh = (e) => {
5458
5458
  }
5459
5459
  ], r1 = (e, t) => e.find((r) => r.value === t) ?? e[0];
5460
5460
  var a1 = ({ arrow: e, arrowBox: t, panelRect: r, frameWidth: a, frameHeight: o, frameElement: i }) => {
5461
- const l = I(), { commands: s } = F(), c = z((y) => y.spec.styles.overrides), u = gt(), d = Yt(Q(), e.id), h = r1(qn, d.lineType), p = d.outline.strokeWidth > 0 || d.outline.shadow !== "none", g = O(() => ({
5461
+ const l = I(), { commands: s } = F(), c = z((y) => y.spec.styles.overrides), u = mt(), d = Yt(Q(), e.id), h = r1(Kn, d.lineType), p = d.outline.strokeWidth > 0 || d.outline.shadow !== "none", g = O(() => ({
5462
5462
  target: "annotation",
5463
5463
  kind: "arrow",
5464
5464
  annotation: e.id
@@ -5489,7 +5489,7 @@ var a1 = ({ arrow: e, arrowBox: t, panelRect: r, frameWidth: a, frameHeight: o,
5489
5489
  }
5490
5490
  }
5491
5491
  }));
5492
- }, L = (y) => {
5492
+ }, k = (y) => {
5493
5493
  f(y), u.close();
5494
5494
  }, x = (y) => {
5495
5495
  s.dispatch(new ie({
@@ -5497,12 +5497,12 @@ var a1 = ({ arrow: e, arrowBox: t, panelRect: r, frameWidth: a, frameHeight: o,
5497
5497
  id: e.id,
5498
5498
  patch: y
5499
5499
  })), u.close();
5500
- }, P = () => {
5500
+ }, L = () => {
5501
5501
  s.dispatch(new De({ id: e.id })), i.focus({ preventScroll: !0 });
5502
- }, C = (y) => f({ color: y }, { transient: !0 }), M = (y) => L({ strokeWidth: y }), A = (y) => x({ startArrowheadStyle: y }), E = (y) => L({ lineType: y }), R = (y) => x({ endArrowheadStyle: y }), D = () => S(p ? {
5502
+ }, C = (y) => f({ color: y }, { transient: !0 }), M = (y) => k({ strokeWidth: y }), A = (y) => x({ startArrowheadStyle: y }), E = (y) => k({ lineType: y }), R = (y) => x({ endArrowheadStyle: y }), D = () => S(p ? {
5503
5503
  strokeWidth: 0,
5504
5504
  shadow: "none"
5505
- } : Mi);
5505
+ } : Oi);
5506
5506
  return /* @__PURE__ */ m(N.Root, {
5507
5507
  anchorBox: t,
5508
5508
  panelRect: r,
@@ -5520,12 +5520,12 @@ var a1 = ({ arrow: e, arrowBox: t, panelRect: r, frameWidth: a, frameHeight: o,
5520
5520
  }),
5521
5521
  /* @__PURE__ */ n(N.Dropdown, {
5522
5522
  label: l("graph.annotations.arrowToolbar.thickness.ariaLabel"),
5523
- trigger: /* @__PURE__ */ n(Ga, {
5523
+ trigger: /* @__PURE__ */ n(Ha, {
5524
5524
  size: "sm",
5525
5525
  title: ""
5526
5526
  }),
5527
5527
  ...u.bind("thickness"),
5528
- children: /* @__PURE__ */ n(qe, {
5528
+ children: /* @__PURE__ */ n(Ke, {
5529
5529
  options: n1,
5530
5530
  current: d.strokeWidth,
5531
5531
  onPick: M
@@ -5538,8 +5538,8 @@ var a1 = ({ arrow: e, arrowBox: t, panelRect: r, frameWidth: a, frameHeight: o,
5538
5538
  title: ""
5539
5539
  }),
5540
5540
  ...u.bind("startArrowhead"),
5541
- children: /* @__PURE__ */ n(qe, {
5542
- options: Kn,
5541
+ children: /* @__PURE__ */ n(Ke, {
5542
+ options: Un,
5543
5543
  current: e.startArrowheadStyle,
5544
5544
  onPick: A
5545
5545
  })
@@ -5551,21 +5551,21 @@ var a1 = ({ arrow: e, arrowBox: t, panelRect: r, frameWidth: a, frameHeight: o,
5551
5551
  title: ""
5552
5552
  }),
5553
5553
  ...u.bind("lineStyle"),
5554
- children: /* @__PURE__ */ n(qe, {
5555
- options: qn,
5554
+ children: /* @__PURE__ */ n(Ke, {
5555
+ options: Kn,
5556
5556
  current: d.lineType,
5557
5557
  onPick: E
5558
5558
  })
5559
5559
  }),
5560
5560
  /* @__PURE__ */ n(N.Dropdown, {
5561
5561
  label: l("graph.annotations.arrowToolbar.endArrowhead"),
5562
- trigger: /* @__PURE__ */ n(Ha, {
5562
+ trigger: /* @__PURE__ */ n(Ba, {
5563
5563
  size: "sm",
5564
5564
  title: ""
5565
5565
  }),
5566
5566
  ...u.bind("endArrowhead"),
5567
- children: /* @__PURE__ */ n(qe, {
5568
- options: Kn,
5567
+ children: /* @__PURE__ */ n(Ke, {
5568
+ options: Un,
5569
5569
  current: e.endArrowheadStyle,
5570
5570
  onPick: R
5571
5571
  })
@@ -5582,15 +5582,15 @@ var a1 = ({ arrow: e, arrowBox: t, panelRect: r, frameWidth: a, frameHeight: o,
5582
5582
  /* @__PURE__ */ n(N.Separator, {}),
5583
5583
  /* @__PURE__ */ n(N.IconButton, {
5584
5584
  label: l("graph.annotations.arrowToolbar.remove"),
5585
- onClick: P,
5586
- children: /* @__PURE__ */ n(mt, {
5585
+ onClick: L,
5586
+ children: /* @__PURE__ */ n(pt, {
5587
5587
  size: "sm",
5588
5588
  title: ""
5589
5589
  })
5590
5590
  })
5591
5591
  ]
5592
5592
  });
5593
- }, qe = ({ options: e, current: t, onPick: r }) => {
5593
+ }, Ke = ({ options: e, current: t, onPick: r }) => {
5594
5594
  const a = I(), o = (i) => () => r(i);
5595
5595
  return /* @__PURE__ */ n(Y, { children: e.map((i) => /* @__PURE__ */ m(N.MenuItem, {
5596
5596
  isSelected: i.value === t,
@@ -5603,10 +5603,10 @@ var a1 = ({ arrow: e, arrowBox: t, panelRect: r, frameWidth: a, frameHeight: o,
5603
5603
  })
5604
5604
  })]
5605
5605
  }, String(i.value))) });
5606
- }, o1 = "_1me29t10", oe = (e, t) => t > 0 ? e / t : 0, vt = (e, t, r) => ({
5606
+ }, o1 = "_1me29t10", oe = (e, t) => t > 0 ? e / t : 0, gt = (e, t, r) => ({
5607
5607
  x: oe(t.x - e.x, r.width),
5608
5608
  y: oe(t.y - e.y, r.height)
5609
- }), i1 = (e) => e.x !== 0 || e.y !== 0, Va = (e, t) => ({
5609
+ }), i1 = (e) => e.x !== 0 || e.y !== 0, Ga = (e, t) => ({
5610
5610
  x: e.x * t.width,
5611
5611
  y: e.y * t.height
5612
5612
  });
@@ -5656,12 +5656,12 @@ var l1 = (e, t) => Math.hypot(t.x - e.x, t.y - e.y) >= 3, We = class {
5656
5656
  cancelFrame() {
5657
5657
  this.scheduledFrame !== null && (cancelAnimationFrame(this.scheduledFrame), this.scheduledFrame = null);
5658
5658
  }
5659
- }, nt = (e, t, r) => {
5659
+ }, tt = (e, t, r) => {
5660
5660
  const a = e.arrows.find((i) => i.id === t);
5661
5661
  if (a === void 0) return null;
5662
5662
  const o = a[r];
5663
5663
  return o.anchorType === "panel" ? o : null;
5664
- }, $a = (e, t) => e === "start" ? { start: t } : { end: t }, s1 = class extends We {
5664
+ }, Va = (e, t) => e === "start" ? { start: t } : { end: t }, s1 = class extends We {
5665
5665
  constructor(...e) {
5666
5666
  super(...e), this.kind = "arrow-endpoint-drag";
5667
5667
  }
@@ -5670,24 +5670,24 @@ var l1 = (e, t) => Math.hypot(t.x - e.x, t.y - e.y) >= 3, We = class {
5670
5670
  return Vt(V(e, "arrow-endpoint-drag"), t, r);
5671
5671
  }
5672
5672
  resolvePreview(e) {
5673
- const { annotationId: t, endpoint: r, press: a, readInputs: o } = this.params, { annotations: i, arrow: l, panelRect: s } = o(), c = nt(i, t, r);
5673
+ const { annotationId: t, endpoint: r, press: a, readInputs: o } = this.params, { annotations: i, arrow: l, panelRect: s } = o(), c = tt(i, t, r);
5674
5674
  return c === null ? null : {
5675
5675
  kind: "arrow-endpoint-drag",
5676
5676
  annotationId: t,
5677
5677
  endpoint: r,
5678
- ...Fa({
5678
+ ...za({
5679
5679
  anchor: c,
5680
5680
  point: l[r],
5681
- delta: vt(a, e, s)
5681
+ delta: gt(a, e, s)
5682
5682
  })
5683
5683
  };
5684
5684
  }
5685
5685
  commit({ anchor: e }) {
5686
- const { annotationId: t, endpoint: r, dispatch: a, readInputs: o } = this.params, i = nt(o().annotations, t, r);
5687
- i === null || Ba(i, e) || a(new ie({
5686
+ const { annotationId: t, endpoint: r, dispatch: a, readInputs: o } = this.params, i = tt(o().annotations, t, r);
5687
+ i === null || Fa(i, e) || a(new ie({
5688
5688
  kind: "arrow",
5689
5689
  id: t,
5690
- patch: $a(r, e)
5690
+ patch: Va(r, e)
5691
5691
  }));
5692
5692
  }
5693
5693
  }, c1 = ({ annotationId: e, arrow: t, panelRect: r }) => {
@@ -5726,10 +5726,10 @@ var l1 = (e, t) => Math.hypot(t.x - e.x, t.y - e.y) >= 3, We = class {
5726
5726
  o,
5727
5727
  a
5728
5728
  ]);
5729
- }, d1 = [" ", "Enter"], Xn = 4, u1 = ({ annotationId: e, arrow: t, panelRect: r }) => {
5729
+ }, d1 = [" ", "Enter"], qn = 4, u1 = ({ annotationId: e, arrow: t, panelRect: r }) => {
5730
5730
  const { commands: a } = F(), o = $(), i = z((c) => c.spec.annotations), l = j(i), s = j(a.dispatch);
5731
5731
  return _(() => () => {
5732
- for (const c of za) Zn({
5732
+ for (const c of _a) Xn({
5733
5733
  editorStore: o,
5734
5734
  annotationId: e,
5735
5735
  endpoint: c,
@@ -5747,7 +5747,7 @@ var l1 = (e, t) => Math.hypot(t.x - e.x, t.y - e.y) >= 3, We = class {
5747
5747
  if (d1.includes(u.key)) {
5748
5748
  if (u.preventDefault(), u.repeat) return;
5749
5749
  if (h !== null) {
5750
- Zn({
5750
+ Xn({
5751
5751
  editorStore: o,
5752
5752
  annotationId: e,
5753
5753
  endpoint: c,
@@ -5756,7 +5756,7 @@ var l1 = (e, t) => Math.hypot(t.x - e.x, t.y - e.y) >= 3, We = class {
5756
5756
  });
5757
5757
  return;
5758
5758
  }
5759
- const g = nt(i, e, c);
5759
+ const g = tt(i, e, c);
5760
5760
  if (g === null) return;
5761
5761
  d.claimInteraction({
5762
5762
  kind: "arrow-endpoint-drag",
@@ -5773,7 +5773,7 @@ var l1 = (e, t) => Math.hypot(t.x - e.x, t.y - e.y) >= 3, We = class {
5773
5773
  kind: "arrow-endpoint-drag",
5774
5774
  annotationId: e,
5775
5775
  endpoint: c,
5776
- ...Fa({
5776
+ ...za({
5777
5777
  anchor: h.anchor,
5778
5778
  point: h.point,
5779
5779
  delta: p
@@ -5787,18 +5787,18 @@ var l1 = (e, t) => Math.hypot(t.x - e.x, t.y - e.y) >= 3, We = class {
5787
5787
  o,
5788
5788
  a
5789
5789
  ]);
5790
- }, Zn = ({ editorStore: e, annotationId: t, endpoint: r, annotations: a, dispatch: o }) => {
5790
+ }, Xn = ({ editorStore: e, annotationId: t, endpoint: r, annotations: a, dispatch: o }) => {
5791
5791
  const i = e.getState(), l = Vt(V(i, "arrow-endpoint-drag"), t, r);
5792
5792
  if (l === null) return;
5793
5793
  i.releaseInteraction("arrow-endpoint-drag");
5794
- const s = nt(a, t, r);
5795
- s === null || Ba(s, l.anchor) || o(new ie({
5794
+ const s = tt(a, t, r);
5795
+ s === null || Fa(s, l.anchor) || o(new ie({
5796
5796
  kind: "arrow",
5797
5797
  id: t,
5798
- patch: $a(r, l.anchor)
5798
+ patch: Va(r, l.anchor)
5799
5799
  }));
5800
5800
  }, h1 = (e, t) => {
5801
- const r = oe(Xn, t.width), a = oe(Xn, t.height);
5801
+ const r = oe(qn, t.width), a = oe(qn, t.height);
5802
5802
  switch (e) {
5803
5803
  case "ArrowLeft":
5804
5804
  return {
@@ -5855,7 +5855,7 @@ var l1 = (e, t) => Math.hypot(t.x - e.x, t.y - e.y) >= 3, We = class {
5855
5855
  frameWidth: l.width,
5856
5856
  frameHeight: l.height,
5857
5857
  frameElement: s
5858
- }), !o && za.filter((h) => e[h].anchorType === "panel").map((h) => /* @__PURE__ */ n(g1, {
5858
+ }), !o && _a.filter((h) => e[h].anchorType === "panel").map((h) => /* @__PURE__ */ n(g1, {
5859
5859
  endpoint: h,
5860
5860
  point: Mh(r[h], i),
5861
5861
  label: c(`graph.annotations.arrowToolbar.moveEndpoint.${h}`),
@@ -5882,7 +5882,7 @@ var l1 = (e, t) => Math.hypot(t.x - e.x, t.y - e.y) >= 3, We = class {
5882
5882
  }, f1 = (e, t) => {
5883
5883
  const r = Le(e).arrows;
5884
5884
  return t === null ? null : r.find((a) => a.id === t) ?? null;
5885
- }, b1 = (e) => X(me((t) => {
5885
+ }, b1 = (e) => X(ge((t) => {
5886
5886
  if (e === null) return {
5887
5887
  dragged: null,
5888
5888
  isMoved: !1
@@ -5890,7 +5890,7 @@ var l1 = (e, t) => Math.hypot(t.x - e.x, t.y - e.y) >= 3, We = class {
5890
5890
  const r = V(t, "arrow-endpoint-drag");
5891
5891
  return {
5892
5892
  dragged: r?.annotationId === e ? r : null,
5893
- isMoved: lt(V(t, "move-drag"), e) !== null
5893
+ isMoved: it(V(t, "move-drag"), e) !== null
5894
5894
  };
5895
5895
  })), y1 = (e) => /* @__PURE__ */ n(T, {
5896
5896
  ...e,
@@ -5906,29 +5906,29 @@ var w1 = [
5906
5906
  "absolute-difference",
5907
5907
  "relative-difference",
5908
5908
  "proportion"
5909
- ], jn = ["absolute-difference", "relative-difference"], T1 = ["relative-difference", "proportion"], A1 = {
5909
+ ], Zn = ["absolute-difference", "relative-difference"], T1 = ["relative-difference", "proportion"], A1 = {
5910
5910
  "absolute-difference": "graph.annotations.differenceArrowToolbar.labelKind.absoluteDifference",
5911
5911
  "relative-difference": "graph.annotations.differenceArrowToolbar.labelKind.relativeDifference",
5912
5912
  proportion: "graph.annotations.differenceArrowToolbar.labelKind.proportion"
5913
5913
  }, k1 = (e) => {
5914
5914
  const { formattingLocale: t } = F(), r = z((o) => o.config.parsingLocale), a = t ?? r;
5915
5915
  return O(() => {
5916
- const o = Nl(e.start, e.end);
5917
- return w1.filter((i) => o || !jn.includes(i) || i === e.label).map((i) => ({
5916
+ const o = Ml(e.start, e.end);
5917
+ return w1.filter((i) => o || !Zn.includes(i) || i === e.label).map((i) => ({
5918
5918
  kind: i,
5919
5919
  key: A1[i],
5920
- preview: Ql({
5920
+ preview: Jl({
5921
5921
  locale: a,
5922
5922
  kind: i,
5923
5923
  startValue: e.start.measurementValue,
5924
5924
  endValue: e.end.measurementValue,
5925
5925
  valueFormat: e.start.valueFormat
5926
5926
  }),
5927
- isPickable: o || !jn.includes(i),
5927
+ isPickable: o || !Zn.includes(i),
5928
5928
  isSuspect: T1.includes(i) && e.start.measurementValue === 0
5929
5929
  }));
5930
5930
  }, [e, a]);
5931
- }, Yn = [
5931
+ }, jn = [
5932
5932
  {
5933
5933
  id: "small",
5934
5934
  key: "graph.annotations.differenceArrowToolbar.size.small"
@@ -5942,20 +5942,20 @@ var w1 = [
5942
5942
  key: "graph.annotations.differenceArrowToolbar.size.large"
5943
5943
  }
5944
5944
  ], L1 = ({ arrow: e, color: t, labelBox: r, panelRect: a, frameWidth: o, frameHeight: i, frameElement: l }) => {
5945
- const s = I(), { commands: c } = F(), u = z((b) => b.spec.styles.overrides), d = gt(), h = k1(e), p = Ss(Q(), e.id), g = O(() => ({
5945
+ const s = I(), { commands: c } = F(), u = z((b) => b.spec.styles.overrides), d = mt(), h = k1(e), p = Ss(Q(), e.id), g = O(() => ({
5946
5946
  target: "annotation",
5947
5947
  kind: "differenceArrow",
5948
5948
  annotation: e.id
5949
5949
  }), [e.id]), v = O(() => ({
5950
5950
  ...g,
5951
5951
  part: "label"
5952
- }), [g]), f = h.find((b) => b.kind === e.label), S = h.some((b) => b.isPickable && b.kind !== e.label), L = Yn.find((b) => Cn[b.id].arrow.strokeWidth === p.strokeWidth), x = (b, U) => {
5952
+ }), [g]), f = h.find((b) => b.kind === e.label), S = h.some((b) => b.isPickable && b.kind !== e.label), k = jn.find((b) => Cn[b.id].arrow.strokeWidth === p.strokeWidth), x = (b, U) => {
5953
5953
  c.dispatch(new ie({
5954
5954
  kind: "differenceArrow",
5955
5955
  id: e.id,
5956
5956
  patch: b
5957
5957
  }), U);
5958
- }, P = (b) => ({
5958
+ }, L = (b) => ({
5959
5959
  ...ye(u, { select: g })?.declarations,
5960
5960
  ...b
5961
5961
  }), C = (b) => ({
@@ -5969,16 +5969,16 @@ var w1 = [
5969
5969
  list: "overrides",
5970
5970
  rule: {
5971
5971
  select: g,
5972
- declarations: P({ color: b })
5972
+ declarations: L({ color: b })
5973
5973
  }
5974
5974
  }), { transient: !0 }), R = () => x({
5975
5975
  start: e.end.anchor,
5976
5976
  end: e.start.anchor
5977
5977
  }), D = (b) => () => M({ label: b }), y = (b) => () => {
5978
5978
  const U = Cn[b];
5979
- c.dispatch(new Qi({
5979
+ c.dispatch(new Ji({
5980
5980
  annotationId: e.id,
5981
- arrow: P(U.arrow),
5981
+ arrow: L(U.arrow),
5982
5982
  label: C(U.label)
5983
5983
  })), d.close();
5984
5984
  };
@@ -6024,10 +6024,10 @@ var w1 = [
6024
6024
  }),
6025
6025
  /* @__PURE__ */ n(N.Dropdown, {
6026
6026
  label: s("graph.annotations.differenceArrowToolbar.size.ariaLabel"),
6027
- trigger: L === void 0 ? "" : s(L.key),
6027
+ trigger: k === void 0 ? "" : s(k.key),
6028
6028
  ...d.bind("size"),
6029
- children: Yn.map((b) => /* @__PURE__ */ n(N.MenuItem, {
6030
- isSelected: b.id === L?.id,
6029
+ children: jn.map((b) => /* @__PURE__ */ n(N.MenuItem, {
6030
+ isSelected: b.id === k?.id,
6031
6031
  onClick: y(b.id),
6032
6032
  children: s(b.key)
6033
6033
  }, b.id))
@@ -6044,7 +6044,7 @@ var w1 = [
6044
6044
  /* @__PURE__ */ n(N.IconButton, {
6045
6045
  label: s("graph.annotations.differenceArrowToolbar.remove"),
6046
6046
  onClick: A,
6047
- children: /* @__PURE__ */ n(mt, {
6047
+ children: /* @__PURE__ */ n(pt, {
6048
6048
  size: "sm",
6049
6049
  title: ""
6050
6050
  })
@@ -6069,24 +6069,24 @@ var I1 = "ydgo3h0", E1 = "ydgo3h1", O1 = "ydgo3h2", M1 = ({ clientPoint: e, pane
6069
6069
  const u = N1({
6070
6070
  x: e.x - t.x,
6071
6071
  y: e.y - t.y
6072
- }, r), { primary: d } = a.query(dt(u, r));
6072
+ }, r), { primary: d } = a.query(ct(u, r));
6073
6073
  if (d === null) return null;
6074
6074
  const h = o.find((g) => g.id === d.layerId);
6075
6075
  if (h === void 0) return null;
6076
- const p = qr({
6076
+ const p = Kr({
6077
6077
  resolver: l,
6078
6078
  layer: h,
6079
6079
  observation: d.observation,
6080
- observationIndex: Ur(d),
6080
+ observationIndex: Wr(d),
6081
6081
  coordSystem: i,
6082
6082
  align: c
6083
6083
  });
6084
- return p === null || Fr(p.anchor, s) ? null : p;
6084
+ return p === null || zr(p.anchor, s) ? null : p;
6085
6085
  }, N1 = (e, t) => ({
6086
6086
  x: Math.max(0, Math.min(e.x, t.width)),
6087
6087
  y: Math.max(0, Math.min(e.y, t.height))
6088
- }), Wa = (e) => e === "start" ? "end" : "start", Ua = ({ dispatch: e, arrow: t, endpoint: r, anchor: a }) => {
6089
- Fr(a, t[r].anchor) || e(new ie({
6088
+ }), $a = (e) => e === "start" ? "end" : "start", Wa = ({ dispatch: e, arrow: t, endpoint: r, anchor: a }) => {
6089
+ zr(a, t[r].anchor) || e(new ie({
6090
6090
  kind: "differenceArrow",
6091
6091
  id: t.id,
6092
6092
  patch: { [r]: a }
@@ -6100,7 +6100,7 @@ var I1 = "ydgo3h0", E1 = "ydgo3h1", O1 = "ydgo3h2", M1 = ({ clientPoint: e, pane
6100
6100
  }
6101
6101
  readOwn(e) {
6102
6102
  const { endpoint: t, readInputs: r } = this.params;
6103
- return Ar(V(e, "difference-arrow-endpoint-drag"), r().arrow.id, t);
6103
+ return Tr(V(e, "difference-arrow-endpoint-drag"), r().arrow.id, t);
6104
6104
  }
6105
6105
  resolvePreview(e) {
6106
6106
  const { endpoint: t, readInputs: r, engine: a, anchorResolver: o } = this.params, { arrow: i, panelOrigin: l, panelRect: s, layers: c, coordSystem: u } = r(), d = M1({
@@ -6111,7 +6111,7 @@ var I1 = "ydgo3h0", E1 = "ydgo3h1", O1 = "ydgo3h2", M1 = ({ clientPoint: e, pane
6111
6111
  layers: c,
6112
6112
  coordSystem: u,
6113
6113
  resolver: o,
6114
- fixedAnchor: i[Wa(t)].anchor,
6114
+ fixedAnchor: i[$a(t)].anchor,
6115
6115
  align: i[t].anchor.align
6116
6116
  });
6117
6117
  return d === null ? null : {
@@ -6123,7 +6123,7 @@ var I1 = "ydgo3h0", E1 = "ydgo3h1", O1 = "ydgo3h2", M1 = ({ clientPoint: e, pane
6123
6123
  }
6124
6124
  commit({ point: e, endpoint: t }) {
6125
6125
  const { dispatch: r, readInputs: a } = this.params;
6126
- Ua({
6126
+ Wa({
6127
6127
  dispatch: r,
6128
6128
  arrow: a().arrow,
6129
6129
  endpoint: t,
@@ -6135,7 +6135,7 @@ var I1 = "ydgo3h0", E1 = "ydgo3h1", O1 = "ydgo3h2", M1 = ({ clientPoint: e, pane
6135
6135
  arrow: e,
6136
6136
  panelOrigin: t,
6137
6137
  panelRect: r,
6138
- ...z(me((u) => ({
6138
+ ...z(ge((u) => ({
6139
6139
  layers: u.layers,
6140
6140
  coordSystem: u.coordSystem
6141
6141
  })))
@@ -6173,7 +6173,7 @@ var I1 = "ydgo3h0", E1 = "ydgo3h1", O1 = "ydgo3h2", M1 = ({ clientPoint: e, pane
6173
6173
  a
6174
6174
  ]);
6175
6175
  }, _1 = [" ", "Enter"], z1 = ({ arrow: e }) => {
6176
- const { commands: t, anchorResolver: r } = F(), a = $(), { layers: o, coordSystem: i, mainAxis: l } = z(me((c) => ({
6176
+ const { commands: t, anchorResolver: r } = F(), a = $(), { layers: o, coordSystem: i, mainAxis: l } = z(ge((c) => ({
6177
6177
  layers: c.layers,
6178
6178
  coordSystem: c.coordSystem,
6179
6179
  mainAxis: c.coordSystem.type === "cartesian" ? c.coordSystem.mainAxis : "x"
@@ -6183,7 +6183,7 @@ var I1 = "ydgo3h0", E1 = "ydgo3h1", O1 = "ydgo3h2", M1 = ({ clientPoint: e, pane
6183
6183
  V(c, "difference-arrow-endpoint-drag")?.annotationId === s && c.releaseInteraction("difference-arrow-endpoint-drag");
6184
6184
  }, [a, s]), ae((c) => ({ onKeyDown: (u) => {
6185
6185
  if (u.altKey || u.ctrlKey || u.metaKey || u.shiftKey) return;
6186
- const d = a.getState(), h = Ar(V(d, "difference-arrow-endpoint-drag"), e.id, c);
6186
+ const d = a.getState(), h = Tr(V(d, "difference-arrow-endpoint-drag"), e.id, c);
6187
6187
  if (_1.includes(u.key)) {
6188
6188
  if (u.preventDefault(), u.repeat) return;
6189
6189
  if (h === null) return d.claimInteraction({
@@ -6192,7 +6192,7 @@ var I1 = "ydgo3h0", E1 = "ydgo3h1", O1 = "ydgo3h2", M1 = ({ clientPoint: e, pane
6192
6192
  endpoint: c,
6193
6193
  point: e[c]
6194
6194
  });
6195
- d.releaseInteraction("difference-arrow-endpoint-drag"), Ua({
6195
+ d.releaseInteraction("difference-arrow-endpoint-drag"), Wa({
6196
6196
  dispatch: t.dispatch,
6197
6197
  arrow: e,
6198
6198
  endpoint: c,
@@ -6243,10 +6243,10 @@ var I1 = "ydgo3h0", E1 = "ydgo3h1", O1 = "ydgo3h2", M1 = ({ clientPoint: e, pane
6243
6243
  return xs({
6244
6244
  layer: s,
6245
6245
  from: r,
6246
- partner: e[Wa(t)].anchor,
6246
+ partner: e[$a(t)].anchor,
6247
6247
  axis: a.axis,
6248
6248
  step: a.step,
6249
- getObservationPoint: (d, h) => qr({
6249
+ getObservationPoint: (d, h) => Kr({
6250
6250
  resolver: l,
6251
6251
  layer: s,
6252
6252
  observation: d,
@@ -6263,7 +6263,7 @@ var I1 = "ydgo3h0", E1 = "ydgo3h1", O1 = "ydgo3h2", M1 = ({ clientPoint: e, pane
6263
6263
  ...e
6264
6264
  });
6265
6265
  }, G1 = ({ annotationId: e, ...t }) => {
6266
- const r = qo(), a = O(() => r.find((o) => o.id === e), [r, e]);
6266
+ const r = Ko(), a = O(() => r.find((o) => o.id === e), [r, e]);
6267
6267
  return a === void 0 ? null : /* @__PURE__ */ n(V1, {
6268
6268
  committedArrow: a.committedArrow,
6269
6269
  color: a.color,
@@ -6305,14 +6305,14 @@ var I1 = "ydgo3h0", E1 = "ydgo3h1", O1 = "ydgo3h2", M1 = ({ clientPoint: e, pane
6305
6305
  borderRadius: r + 2
6306
6306
  }
6307
6307
  }),
6308
- /* @__PURE__ */ n(Jn, {
6308
+ /* @__PURE__ */ n(Yn, {
6309
6309
  endpoint: "start",
6310
6310
  point: i,
6311
6311
  panelRect: s,
6312
6312
  dragHandlers: p("start"),
6313
6313
  keyboardHandlers: g("start")
6314
6314
  }),
6315
- /* @__PURE__ */ n(Jn, {
6315
+ /* @__PURE__ */ n(Yn, {
6316
6316
  endpoint: "end",
6317
6317
  point: l,
6318
6318
  panelRect: s,
@@ -6321,7 +6321,7 @@ var I1 = "ydgo3h0", E1 = "ydgo3h1", O1 = "ydgo3h2", M1 = ({ clientPoint: e, pane
6321
6321
  })
6322
6322
  ]
6323
6323
  });
6324
- }, Jn = ({ endpoint: e, point: t, panelRect: r, dragHandlers: a, keyboardHandlers: o }) => /* @__PURE__ */ n("div", {
6324
+ }, Yn = ({ endpoint: e, point: t, panelRect: r, dragHandlers: a, keyboardHandlers: o }) => /* @__PURE__ */ n("div", {
6325
6325
  className: I1,
6326
6326
  "data-testid": "difference-arrow-selection-handle",
6327
6327
  "data-endpoint": e,
@@ -6344,7 +6344,7 @@ var I1 = "ydgo3h0", E1 = "ydgo3h1", O1 = "ydgo3h2", M1 = ({ clientPoint: e, pane
6344
6344
  };
6345
6345
  const i = e + t, l = Math.min(o, t);
6346
6346
  if (r) {
6347
- const u = Math.min(0, e), d = Math.min(Math.max(1, e), i - l), h = et(e + a, u, d);
6347
+ const u = Math.min(0, e), d = Math.min(Math.max(1, e), i - l), h = Qe(e + a, u, d);
6348
6348
  return {
6349
6349
  start: h,
6350
6350
  extent: i - h
@@ -6353,7 +6353,7 @@ var I1 = "ydgo3h0", E1 = "ydgo3h1", O1 = "ydgo3h2", M1 = ({ clientPoint: e, pane
6353
6353
  const s = Math.max(Math.min(0, i), e + l), c = Math.max(1, i);
6354
6354
  return {
6355
6355
  start: e,
6356
- extent: et(i + a, s, c) - e
6356
+ extent: Qe(i + a, s, c) - e
6357
6357
  };
6358
6358
  }, $1 = [
6359
6359
  "top-left",
@@ -6361,28 +6361,28 @@ var I1 = "ydgo3h0", E1 = "ydgo3h1", O1 = "ydgo3h2", M1 = ({ clientPoint: e, pane
6361
6361
  "bottom-right",
6362
6362
  "bottom-left"
6363
6363
  ];
6364
- var Ka = ({ width: e, height: t }) => ({
6364
+ var Ua = ({ width: e, height: t }) => ({
6365
6365
  x: oe(16, e),
6366
6366
  y: oe(16, t)
6367
6367
  }), W1 = (e, t) => ({
6368
- x: Za(t) ? e.x : e.x + e.width,
6369
- y: ja(t) ? e.y : e.y + e.height
6368
+ x: Xa(t) ? e.x : e.x + e.width,
6369
+ y: Za(t) ? e.y : e.y + e.height
6370
6370
  }), sn = (e) => ({
6371
6371
  x: e.x,
6372
6372
  y: 1 - e.y - e.height,
6373
6373
  width: e.width,
6374
6374
  height: e.height
6375
- }), qa = ({ region: e, corner: t, delta: r, minSize: a }) => {
6375
+ }), Ka = ({ region: e, corner: t, delta: r, minSize: a }) => {
6376
6376
  const o = _t({
6377
6377
  start: e.x,
6378
6378
  extent: e.width,
6379
- isStartMoving: Za(t),
6379
+ isStartMoving: Xa(t),
6380
6380
  delta: r.x,
6381
6381
  minExtent: a.x
6382
6382
  }), i = _t({
6383
6383
  start: e.y,
6384
6384
  extent: e.height,
6385
- isStartMoving: ja(t),
6385
+ isStartMoving: Za(t),
6386
6386
  delta: r.y,
6387
6387
  minExtent: a.y
6388
6388
  });
@@ -6393,9 +6393,9 @@ var Ka = ({ width: e, height: t }) => ({
6393
6393
  width: o.extent,
6394
6394
  height: i.extent
6395
6395
  };
6396
- }, Xa = (e, t) => e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height, Za = (e) => e === "top-left" || e === "bottom-left", ja = (e) => e === "top-left" || e === "top-right", Ya = (e, t, r, a) => {
6396
+ }, qa = (e, t) => e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height, Xa = (e) => e === "top-left" || e === "bottom-left", Za = (e) => e === "top-left" || e === "top-right", ja = (e, t, r, a) => {
6397
6397
  const o = e.textAnnotations.find((i) => i.id === t);
6398
- return o === void 0 ? null : ei(hi(o, r), a);
6398
+ return o === void 0 ? null : Qo(ui(o, r), a);
6399
6399
  };
6400
6400
  var U1 = {
6401
6401
  hovered: "_1ee8fau1 _1ee8fau0",
@@ -6404,7 +6404,7 @@ var U1 = {
6404
6404
  hovered: "_1ee8fau4 _1ee8fau3",
6405
6405
  selected: "_1ee8fau5 _1ee8fau3"
6406
6406
  }, q1 = ({ panelRect: e }) => {
6407
- const t = Le(e), r = Er(), a = Q(), o = $e(), i = X((f) => V(f, "move-drag")), l = X((f) => V(f, "shape-resize-drag")), s = X((f) => V(f, "arrow-endpoint-drag")), c = X((f) => V(f, "text-resize-drag")), u = X(jo), d = O(() => ({
6407
+ const t = Le(e), r = Ir(), a = Q(), o = $e(), i = X((f) => V(f, "move-drag")), l = X((f) => V(f, "shape-resize-drag")), s = X((f) => V(f, "arrow-endpoint-drag")), c = X((f) => V(f, "text-resize-drag")), u = X(Zo), d = O(() => ({
6408
6408
  panel: {
6409
6409
  width: e.width,
6410
6410
  height: e.height
@@ -6416,52 +6416,52 @@ var U1 = {
6416
6416
  e.height,
6417
6417
  r,
6418
6418
  a
6419
- ]), h = Qn(t, o, d), p = Qn(t, u === o ? null : u, d), g = (f) => {
6419
+ ]), h = Jn(t, o, d), p = Jn(t, u === o ? null : u, d), g = (f) => {
6420
6420
  if (l?.annotationId === f.id) {
6421
- const S = t.shapes.find((L) => L.id === f.id);
6422
- return S === void 0 ? f.geometry : Or(sn(l.region), a.annotation.shape(S.id).get("strokeWidth"), d.panel);
6421
+ const S = t.shapes.find((k) => k.id === f.id);
6422
+ return S === void 0 ? f.geometry : Er(sn(l.region), a.annotation.shape(S.id).get("strokeWidth"), d.panel);
6423
6423
  }
6424
6424
  if (s?.annotationId === f.id) {
6425
- const S = t.arrows.find((L) => L.id === f.id);
6426
- return S === void 0 ? f.geometry : di(ln(S, s), d.panel) ?? f.geometry;
6425
+ const S = t.arrows.find((k) => k.id === f.id);
6426
+ return S === void 0 ? f.geometry : ci(ln(S, s), d.panel) ?? f.geometry;
6427
6427
  }
6428
- return c?.annotationId === f.id ? Ya(t, f.id, c, d) ?? f.geometry : f.geometry;
6428
+ return c?.annotationId === f.id ? ja(t, f.id, c, d) ?? f.geometry : f.geometry;
6429
6429
  }, v = (f) => {
6430
6430
  if (i?.annotationId !== f) return e;
6431
- const S = Va(i.translation, e);
6431
+ const S = Ga(i.translation, e);
6432
6432
  return {
6433
6433
  x: e.x + S.x,
6434
6434
  y: e.y + S.y
6435
6435
  };
6436
6436
  };
6437
- return /* @__PURE__ */ m(Y, { children: [p !== null && /* @__PURE__ */ n(er, {
6437
+ return /* @__PURE__ */ m(Y, { children: [p !== null && /* @__PURE__ */ n(Qn, {
6438
6438
  annotationId: p.id,
6439
6439
  geometry: g(p),
6440
6440
  state: "hovered",
6441
6441
  origin: v(p.id)
6442
- }), h !== null && /* @__PURE__ */ n(er, {
6442
+ }), h !== null && /* @__PURE__ */ n(Qn, {
6443
6443
  annotationId: h.id,
6444
6444
  geometry: g(h),
6445
6445
  state: "selected",
6446
6446
  origin: v(h.id)
6447
6447
  })] });
6448
- }, Qn = (e, t, r) => {
6448
+ }, Jn = (e, t, r) => {
6449
6449
  if (t === null) return null;
6450
- const a = Wo(e, t, r);
6450
+ const a = $o(e, t, r);
6451
6451
  return a === null ? null : {
6452
6452
  id: t,
6453
6453
  geometry: a
6454
6454
  };
6455
- }, er = ({ annotationId: e, geometry: t, state: r, origin: a }) => t.shape === "segment" ? /* @__PURE__ */ m("div", {
6455
+ }, Qn = ({ annotationId: e, geometry: t, state: r, origin: a }) => t.shape === "segment" ? /* @__PURE__ */ m("div", {
6456
6456
  "aria-hidden": "true",
6457
6457
  "data-testid": "annotation-chrome",
6458
6458
  "data-annotation-id": e,
6459
6459
  "data-state": r,
6460
- children: [/* @__PURE__ */ n(tr, {
6460
+ children: [/* @__PURE__ */ n(er, {
6461
6461
  point: t.start,
6462
6462
  state: r,
6463
6463
  origin: a
6464
- }), /* @__PURE__ */ n(tr, {
6464
+ }), /* @__PURE__ */ n(er, {
6465
6465
  point: t.end,
6466
6466
  state: r,
6467
6467
  origin: a
@@ -6478,7 +6478,7 @@ var U1 = {
6478
6478
  width: t.rect.width + 4,
6479
6479
  height: t.rect.height + 4
6480
6480
  }
6481
- }), tr = ({ point: e, state: t, origin: r }) => /* @__PURE__ */ n("span", {
6481
+ }), er = ({ point: e, state: t, origin: r }) => /* @__PURE__ */ n("span", {
6482
6482
  className: K1[t],
6483
6483
  style: {
6484
6484
  left: r.x + e.x,
@@ -6487,7 +6487,7 @@ var U1 = {
6487
6487
  }), X1 = ({ panelRect: e }) => {
6488
6488
  const t = X((o) => V(o, "move-drag")), r = Le(e);
6489
6489
  if (t === null) return null;
6490
- const a = Va(t.translation, e);
6490
+ const a = Ga(t.translation, e);
6491
6491
  return /* @__PURE__ */ n("svg", {
6492
6492
  "aria-hidden": "true",
6493
6493
  className: on,
@@ -6502,30 +6502,30 @@ var U1 = {
6502
6502
  children: Y1(r, t.annotationId, e)
6503
6503
  });
6504
6504
  }, Z1 = ({ annotation: e, panel: t }) => {
6505
- const r = pi(e.id);
6506
- return /* @__PURE__ */ n(mi, {
6505
+ const r = hi(e.id);
6506
+ return /* @__PURE__ */ n(pi, {
6507
6507
  annotation: e,
6508
6508
  panel: t,
6509
6509
  style: Q().annotation.text(e.id).resolve(),
6510
6510
  blockRef: r
6511
6511
  });
6512
- }, Xe = (e, t, r) => {
6512
+ }, qe = (e, t, r) => {
6513
6513
  const a = e.find((o) => o.id === t);
6514
6514
  return a === void 0 ? null : r(a);
6515
6515
  }, j1 = {
6516
- text: (e, t, r) => Xe(e.textAnnotations, t, (a) => /* @__PURE__ */ n(Z1, {
6516
+ text: (e, t, r) => qe(e.textAnnotations, t, (a) => /* @__PURE__ */ n(Z1, {
6517
6517
  annotation: a,
6518
6518
  panel: r
6519
6519
  })),
6520
- shape: (e, t, r) => Xe(e.shapes, t, (a) => /* @__PURE__ */ n(Q1, {
6520
+ shape: (e, t, r) => qe(e.shapes, t, (a) => /* @__PURE__ */ n(Q1, {
6521
6521
  shape: a,
6522
6522
  panelSize: r
6523
6523
  })),
6524
- image: (e, t, r) => Xe(e.images, t, (a) => /* @__PURE__ */ n(ep, {
6524
+ image: (e, t, r) => qe(e.images, t, (a) => /* @__PURE__ */ n(ep, {
6525
6525
  image: a,
6526
6526
  panelSize: r
6527
6527
  })),
6528
- arrow: (e, t, r) => Xe(e.arrows, t, (a) => /* @__PURE__ */ n(J1, {
6528
+ arrow: (e, t, r) => qe(e.arrows, t, (a) => /* @__PURE__ */ n(J1, {
6529
6529
  arrow: a,
6530
6530
  panelSize: r
6531
6531
  }))
@@ -6536,22 +6536,22 @@ var U1 = {
6536
6536
  }
6537
6537
  return null;
6538
6538
  }, J1 = ({ arrow: e, panelSize: t }) => {
6539
- const r = Yt(Q(), e.id), a = Hr({
6539
+ const r = Yt(Q(), e.id), a = Br({
6540
6540
  arrow: e,
6541
6541
  style: r,
6542
6542
  panelWidth: t.width,
6543
6543
  panelHeight: t.height
6544
6544
  });
6545
- return a === null ? null : /* @__PURE__ */ n(kr, {
6545
+ return a === null ? null : /* @__PURE__ */ n(Ar, {
6546
6546
  computed: a,
6547
6547
  style: r,
6548
6548
  isAddressable: !1
6549
6549
  });
6550
- }, Q1 = ({ shape: e, panelSize: t }) => /* @__PURE__ */ n(Ir, {
6550
+ }, Q1 = ({ shape: e, panelSize: t }) => /* @__PURE__ */ n(Pr, {
6551
6551
  shape: e,
6552
6552
  style: Q().annotation.shape(e.id).resolve(),
6553
6553
  panel: t
6554
- }), ep = ({ image: e, panelSize: t }) => /* @__PURE__ */ n(gi, {
6554
+ }), ep = ({ image: e, panelSize: t }) => /* @__PURE__ */ n(mi, {
6555
6555
  image: e,
6556
6556
  panel: t,
6557
6557
  style: Q().annotation.image(e.id).resolve()
@@ -6570,7 +6570,7 @@ var U1 = {
6570
6570
  },
6571
6571
  "data-testid": "shape-resize-preview",
6572
6572
  "data-annotation-id": t.annotationId,
6573
- children: /* @__PURE__ */ n(Ir, {
6573
+ children: /* @__PURE__ */ n(Pr, {
6574
6574
  shape: {
6575
6575
  ...o,
6576
6576
  region: sn(t.region)
@@ -6586,7 +6586,7 @@ var U1 = {
6586
6586
  horizontal: "o49ib42",
6587
6587
  diagonalDown: "o49ib43",
6588
6588
  diagonalUp: "o49ib44"
6589
- }, Ja = ({ point: e, label: t, pull: r, size: a, attributes: o, dragHandlers: i, keyboardHandlers: l }) => /* @__PURE__ */ n("div", {
6589
+ }, Ya = ({ point: e, label: t, pull: r, size: a, attributes: o, dragHandlers: i, keyboardHandlers: l }) => /* @__PURE__ */ n("div", {
6590
6590
  "aria-label": t,
6591
6591
  className: rp[r],
6592
6592
  role: "button",
@@ -6620,11 +6620,11 @@ var U1 = {
6620
6620
  key: "graph.annotations.shapeToolbar.border.thick"
6621
6621
  }
6622
6622
  ], ap = (e) => [...zt].reverse().find((t) => t.width <= e) ?? zt[0], op = ({ shape: e, shapeBox: t, panelRect: r, frameWidth: a, frameHeight: o, frameElement: i }) => {
6623
- const l = I(), { commands: s } = F(), c = z((x) => x.spec.styles.overrides), u = gt(), d = Q().annotation.shape(e.id).resolve(), h = ap(d.strokeWidth), p = O(() => ({
6623
+ const l = I(), { commands: s } = F(), c = z((x) => x.spec.styles.overrides), u = mt(), d = Q().annotation.shape(e.id).resolve(), h = ap(d.strokeWidth), p = O(() => ({
6624
6624
  target: "annotation",
6625
6625
  kind: "shape",
6626
6626
  annotation: e.id
6627
- }), [e.id]), g = (x, P) => {
6627
+ }), [e.id]), g = (x, L) => {
6628
6628
  const C = ye(c, { select: p })?.declarations ?? {};
6629
6629
  s.dispatch(new we({
6630
6630
  list: "overrides",
@@ -6635,10 +6635,10 @@ var U1 = {
6635
6635
  ...x
6636
6636
  }
6637
6637
  }
6638
- }), P);
6638
+ }), L);
6639
6639
  }, v = () => {
6640
6640
  s.dispatch(new De({ id: e.id })), i.focus({ preventScroll: !0 });
6641
- }, f = (x) => g({ color: x }, { transient: !0 }), S = (x) => g({ alpha: x }, { transient: !0 }), L = (x) => () => {
6641
+ }, f = (x) => g({ color: x }, { transient: !0 }), S = (x) => g({ alpha: x }, { transient: !0 }), k = (x) => () => {
6642
6642
  g({ strokeWidth: x }), u.close();
6643
6643
  };
6644
6644
  return /* @__PURE__ */ m(N.Root, {
@@ -6663,14 +6663,14 @@ var U1 = {
6663
6663
  }),
6664
6664
  /* @__PURE__ */ n(N.Dropdown, {
6665
6665
  label: l("graph.annotations.shapeToolbar.border.ariaLabel"),
6666
- trigger: /* @__PURE__ */ n(Ga, {
6666
+ trigger: /* @__PURE__ */ n(Ha, {
6667
6667
  size: "sm",
6668
6668
  title: ""
6669
6669
  }),
6670
6670
  ...u.bind("border"),
6671
6671
  children: zt.map((x) => /* @__PURE__ */ n(N.MenuItem, {
6672
6672
  isSelected: x.width === h?.width,
6673
- onClick: L(x.width),
6673
+ onClick: k(x.width),
6674
6674
  children: l(x.key)
6675
6675
  }, x.width))
6676
6676
  }),
@@ -6678,14 +6678,14 @@ var U1 = {
6678
6678
  /* @__PURE__ */ n(N.IconButton, {
6679
6679
  label: l("graph.annotations.shapeToolbar.remove"),
6680
6680
  onClick: v,
6681
- children: /* @__PURE__ */ n(mt, {
6681
+ children: /* @__PURE__ */ n(pt, {
6682
6682
  size: "sm",
6683
6683
  title: ""
6684
6684
  })
6685
6685
  })
6686
6686
  ]
6687
6687
  });
6688
- }, Qa = (e) => {
6688
+ }, Ja = (e) => {
6689
6689
  const t = j(e), r = ne(null);
6690
6690
  return _(() => () => r.current?.finish(!1), []), ae((a) => ({ onPointerDown: (o) => {
6691
6691
  if (o.button !== 0 || r.current !== null) return;
@@ -6708,7 +6708,7 @@ var U1 = {
6708
6708
  });
6709
6709
  r.current = i, i.start();
6710
6710
  } }), [t]);
6711
- }, rt = (e, t) => {
6711
+ }, nt = (e, t) => {
6712
6712
  const r = e.shapes.find((a) => a.id === t);
6713
6713
  return r === void 0 || r.region.anchorType !== "panel" ? null : r.region;
6714
6714
  }, ip = class extends We {
@@ -6719,21 +6719,21 @@ var U1 = {
6719
6719
  return $t(V(e, "shape-resize-drag"), this.params.annotationId);
6720
6720
  }
6721
6721
  resolvePreview(e) {
6722
- const { annotationId: t, corner: r, press: a, readInputs: o } = this.params, { annotations: i, panelRect: l } = o(), s = rt(i, t);
6722
+ const { annotationId: t, corner: r, press: a, readInputs: o } = this.params, { annotations: i, panelRect: l } = o(), s = nt(i, t);
6723
6723
  return s === null ? null : {
6724
6724
  kind: "shape-resize-drag",
6725
6725
  annotationId: t,
6726
- region: qa({
6726
+ region: Ka({
6727
6727
  region: s,
6728
6728
  corner: r,
6729
- delta: vt(a, e, l),
6730
- minSize: Ka(l)
6729
+ delta: gt(a, e, l),
6730
+ minSize: Ua(l)
6731
6731
  })
6732
6732
  };
6733
6733
  }
6734
6734
  commit({ region: e }) {
6735
- const { annotationId: t, dispatch: r, readInputs: a } = this.params, o = rt(a().annotations, t);
6736
- o === null || Xa(o, e) || r(new ie({
6735
+ const { annotationId: t, dispatch: r, readInputs: a } = this.params, o = nt(a().annotations, t);
6736
+ o === null || qa(o, e) || r(new ie({
6737
6737
  kind: "shape",
6738
6738
  id: t,
6739
6739
  patch: { region: e }
@@ -6744,7 +6744,7 @@ var U1 = {
6744
6744
  annotations: z((i) => i.spec.annotations),
6745
6745
  panelRect: t
6746
6746
  });
6747
- return Qa((i, l) => new ip({
6747
+ return Ja((i, l) => new ip({
6748
6748
  ...l,
6749
6749
  annotationId: e,
6750
6750
  corner: i,
@@ -6752,15 +6752,15 @@ var U1 = {
6752
6752
  editorStore: a,
6753
6753
  dispatch: r.dispatch
6754
6754
  }));
6755
- }, sp = [" ", "Enter"], eo = (e) => {
6755
+ }, sp = [" ", "Enter"], Qa = (e) => {
6756
6756
  const t = $(), r = j(e);
6757
- return _(() => () => nr(t, r.current), [t, r]), ae((a) => ({ onKeyDown: (o) => {
6757
+ return _(() => () => tr(t, r.current), [t, r]), ae((a) => ({ onKeyDown: (o) => {
6758
6758
  if (o.altKey || o.ctrlKey || o.metaKey || o.shiftKey) return;
6759
6759
  const i = t.getState(), l = r.current.readHeld();
6760
6760
  if (sp.includes(o.key)) {
6761
6761
  if (o.preventDefault(), o.repeat) return;
6762
6762
  if (l !== null) {
6763
- nr(t, r.current);
6763
+ tr(t, r.current);
6764
6764
  return;
6765
6765
  }
6766
6766
  const c = r.current.claim(a);
@@ -6772,15 +6772,15 @@ var U1 = {
6772
6772
  const s = r.current.step(l, a, o.key);
6773
6773
  s !== null && (o.preventDefault(), i.claimInteraction(s));
6774
6774
  } }), [t, r]);
6775
- }, nr = (e, t) => {
6775
+ }, tr = (e, t) => {
6776
6776
  const r = t.readHeld();
6777
6777
  r !== null && (e.getState().releaseInteraction(r.kind), t.commit(r));
6778
- }, rr = 4, cp = ({ annotationId: e, panelRect: t }) => {
6778
+ }, nr = 4, cp = ({ annotationId: e, panelRect: t }) => {
6779
6779
  const { commands: r } = F(), a = $(), o = z((i) => i.spec.annotations);
6780
- return eo({
6780
+ return Qa({
6781
6781
  readHeld: () => $t(V(a.getState(), "shape-resize-drag"), e),
6782
6782
  claim: () => {
6783
- const i = rt(o, e);
6783
+ const i = nt(o, e);
6784
6784
  return i === null ? null : {
6785
6785
  kind: "shape-resize-drag",
6786
6786
  annotationId: e,
@@ -6792,17 +6792,17 @@ var U1 = {
6792
6792
  return c === null ? null : {
6793
6793
  kind: "shape-resize-drag",
6794
6794
  annotationId: e,
6795
- region: qa({
6795
+ region: Ka({
6796
6796
  region: i.region,
6797
6797
  corner: l,
6798
6798
  delta: c,
6799
- minSize: Ka(t)
6799
+ minSize: Ua(t)
6800
6800
  })
6801
6801
  };
6802
6802
  },
6803
6803
  commit: ({ region: i }) => {
6804
- const l = rt(o, e);
6805
- l === null || Xa(l, i) || r.dispatch(new ie({
6804
+ const l = nt(o, e);
6805
+ l === null || qa(l, i) || r.dispatch(new ie({
6806
6806
  kind: "shape",
6807
6807
  id: e,
6808
6808
  patch: { region: i }
@@ -6810,7 +6810,7 @@ var U1 = {
6810
6810
  }
6811
6811
  });
6812
6812
  }, dp = (e, t) => {
6813
- const r = oe(rr, t.width), a = oe(rr, t.height);
6813
+ const r = oe(nr, t.width), a = oe(nr, t.height);
6814
6814
  switch (e) {
6815
6815
  case "ArrowLeft":
6816
6816
  return {
@@ -6858,7 +6858,7 @@ var U1 = {
6858
6858
  }), u = cp({
6859
6859
  annotationId: e.id,
6860
6860
  panelRect: o
6861
- }), d = Q().annotation.shape(e.id).resolve(), { rect: h } = Or(sn(t), d.strokeWidth, o);
6861
+ }), d = Q().annotation.shape(e.id).resolve(), { rect: h } = Er(sn(t), d.strokeWidth, o);
6862
6862
  return /* @__PURE__ */ m("div", {
6863
6863
  "data-testid": "shape-selection",
6864
6864
  "data-annotation-id": e.id,
@@ -6871,7 +6871,7 @@ var U1 = {
6871
6871
  frameElement: l
6872
6872
  }), !a && $1.map((p) => {
6873
6873
  const g = W1(h, p);
6874
- return /* @__PURE__ */ n(Ja, {
6874
+ return /* @__PURE__ */ n(Ya, {
6875
6875
  point: {
6876
6876
  x: o.x + g.x,
6877
6877
  y: o.y + g.y
@@ -6891,12 +6891,12 @@ var U1 = {
6891
6891
  }, mp = (e) => {
6892
6892
  const t = z((r) => r.spec.annotations.shapes);
6893
6893
  return e === null ? null : t.find((r) => r.id === e) ?? null;
6894
- }, gp = (e) => X(me((t) => e === null ? {
6894
+ }, gp = (e) => X(ge((t) => e === null ? {
6895
6895
  resizedRegion: null,
6896
6896
  isMoved: !1
6897
6897
  } : {
6898
6898
  resizedRegion: $t(V(t, "shape-resize-drag"), e)?.region ?? null,
6899
- isMoved: lt(V(t, "move-drag"), e) !== null
6899
+ isMoved: it(V(t, "move-drag"), e) !== null
6900
6900
  })), vp = ({ textColor: e, ...t }) => /* @__PURE__ */ m(T, {
6901
6901
  ...t,
6902
6902
  children: [/* @__PURE__ */ m("g", {
@@ -6911,15 +6911,15 @@ var U1 = {
6911
6911
  strokeLinecap: "round"
6912
6912
  })]
6913
6913
  });
6914
- var at = "textStyle", to = /* @__PURE__ */ new Set(["paragraph", "heading"]), fp = (e) => {
6915
- const t = no(e), r = wp(e);
6914
+ var rt = "textStyle", eo = /* @__PURE__ */ new Set(["paragraph", "heading"]), fp = (e) => {
6915
+ const t = to(e), r = wp(e);
6916
6916
  return {
6917
- color: Ze(t.map((a) => Tp(kt(a)?.color))),
6918
- font: Ze(t.map((a) => xp(kt(a)))),
6919
- fontSize: Ze(t.map((a) => Ap(kt(a)?.fontSize))),
6920
- alignment: Ze(r.map((a) => kp(a.attrs?.textAlign)))
6917
+ color: Xe(t.map((a) => Tp(kt(a)?.color))),
6918
+ font: Xe(t.map((a) => xp(kt(a)))),
6919
+ fontSize: Xe(t.map((a) => Ap(kt(a)?.fontSize))),
6920
+ alignment: Xe(r.map((a) => kp(a.attrs?.textAlign)))
6921
6921
  };
6922
- }, bp = (e, t) => cn(e, (r) => r.type === "text" ? Cp(r, t) : r), yp = (e) => no(e).length > 0, Sp = (e, t) => cn(e, (r) => to.has(r.type ?? "") ? {
6922
+ }, bp = (e, t) => cn(e, (r) => r.type === "text" ? Cp(r, t) : r), yp = (e) => to(e).length > 0, Sp = (e, t) => cn(e, (r) => eo.has(r.type ?? "") ? {
6923
6923
  ...r,
6924
6924
  attrs: {
6925
6925
  ...r.attrs,
@@ -6929,8 +6929,8 @@ var at = "textStyle", to = /* @__PURE__ */ new Set(["paragraph", "heading"]), fp
6929
6929
  ...e,
6930
6930
  content: e.content.map((r) => cn(r, t))
6931
6931
  }), Cp = (e, t) => {
6932
- const r = e.marks ?? [], a = r.find((i) => i.type === at), o = {
6933
- type: at,
6932
+ const r = e.marks ?? [], a = r.find((i) => i.type === rt), o = {
6933
+ type: rt,
6934
6934
  attrs: {
6935
6935
  ...a?.attrs,
6936
6936
  ...t
@@ -6940,11 +6940,11 @@ var at = "textStyle", to = /* @__PURE__ */ new Set(["paragraph", "heading"]), fp
6940
6940
  ...e,
6941
6941
  marks: a === void 0 ? [...r, o] : r.map((i) => i === a ? o : i)
6942
6942
  };
6943
- }, kt = (e) => e.marks?.find((t) => t.type === at)?.attrs, xp = (e) => fn(e?.font) ?? fn(e?.fontFamily), no = (e) => dn(e, (t) => t.type === "text"), wp = (e) => dn(e, (t) => to.has(t.type ?? "")), dn = (e, t) => [...t(e) ? [e] : [], ...(e.content ?? []).flatMap((r) => dn(r, t))], Ze = (e) => {
6943
+ }, kt = (e) => e.marks?.find((t) => t.type === rt)?.attrs, xp = (e) => fn(e?.font) ?? fn(e?.fontFamily), to = (e) => dn(e, (t) => t.type === "text"), wp = (e) => dn(e, (t) => eo.has(t.type ?? "")), dn = (e, t) => [...t(e) ? [e] : [], ...(e.content ?? []).flatMap((r) => dn(r, t))], Xe = (e) => {
6944
6944
  const [t, ...r] = e;
6945
6945
  return t === void 0 ? null : r.every((a) => a === t) ? t : null;
6946
6946
  }, Tp = (e) => typeof e == "string" && e.length > 0 ? e : void 0, Ap = (e) => typeof e == "number" && Number.isFinite(e) ? e : void 0, kp = (e) => e === "left" || e === "center" || e === "right" ? e : void 0;
6947
- var ro = [
6947
+ var no = [
6948
6948
  {
6949
6949
  id: "modern",
6950
6950
  key: "graph.annotations.textToolbar.font.modern"
@@ -6968,9 +6968,9 @@ var ro = [
6968
6968
  ].map(({ id: e, key: t }) => ({
6969
6969
  id: e,
6970
6970
  key: t,
6971
- fontFamily: ci[e] ?? e
6972
- })), Lp = (e) => ro.find((t) => t.id === (e ?? "modern")) ?? null;
6973
- var ao = [
6971
+ fontFamily: si[e] ?? e
6972
+ })), Lp = (e) => no.find((t) => t.id === (e ?? "modern")) ?? null;
6973
+ var ro = [
6974
6974
  {
6975
6975
  size: 12,
6976
6976
  key: "graph.annotations.textToolbar.fontSize.small"
@@ -6991,25 +6991,25 @@ var ao = [
6991
6991
  size: 30,
6992
6992
  key: "graph.annotations.textToolbar.fontSize.huge"
6993
6993
  }
6994
- ], Pp = (e) => ao.find((t) => t.size === (e ?? 15)) ?? null, Ip = (e) => `${e}px`, Ep = [
6994
+ ], Pp = (e) => ro.find((t) => t.size === (e ?? 15)) ?? null, Ip = (e) => `${e}px`, Ep = [
6995
6995
  {
6996
6996
  alignment: "left",
6997
- Icon: ya
6997
+ Icon: ba
6998
6998
  },
6999
6999
  {
7000
7000
  alignment: "center",
7001
- Icon: fa
7001
+ Icon: va
7002
7002
  },
7003
7003
  {
7004
7004
  alignment: "right",
7005
- Icon: ba
7005
+ Icon: fa
7006
7006
  }
7007
7007
  ], Op = ({ annotation: e, textBox: t, panelRect: r, frameWidth: a, frameHeight: o, frameElement: i }) => {
7008
- const l = I(), { commands: s } = F(), c = z((b) => b.spec.styles.overrides), u = $(), d = gt(), h = Q().annotation.text(e.id).resolve(), p = fp(e.content), g = Lp(p.font), v = Pp(p.fontSize), f = p.color ?? h.textColor, S = O(() => ({
7008
+ const l = I(), { commands: s } = F(), c = z((b) => b.spec.styles.overrides), u = $(), d = mt(), h = Q().annotation.text(e.id).resolve(), p = fp(e.content), g = Lp(p.font), v = Pp(p.fontSize), f = p.color ?? h.textColor, S = O(() => ({
7009
7009
  target: "annotation",
7010
7010
  kind: "text",
7011
7011
  annotation: e.id
7012
- }), [e.id]), L = (b, U) => {
7012
+ }), [e.id]), k = (b, U) => {
7013
7013
  const te = ye(c, { select: S })?.declarations ?? {};
7014
7014
  s.dispatch(new we({
7015
7015
  list: "overrides",
@@ -7027,20 +7027,20 @@ var ao = [
7027
7027
  id: e.id,
7028
7028
  patch: b
7029
7029
  }), U);
7030
- }, P = () => u.getState().caret?.editor?.getJSON() ?? e.content, C = (b, U) => {
7031
- const te = P(), ue = u.getState().caret?.editor ?? null;
7032
- if (ue !== null && !yp(te)) {
7033
- ue.chain().focus().setMark(at, b).run();
7030
+ }, L = () => u.getState().caret?.editor?.getJSON() ?? e.content, C = (b, U) => {
7031
+ const te = L(), he = u.getState().caret?.editor ?? null;
7032
+ if (he !== null && !yp(te)) {
7033
+ he.chain().focus().setMark(rt, b).run();
7034
7034
  return;
7035
7035
  }
7036
7036
  x({ content: bp(te, b) }, U);
7037
7037
  }, M = () => {
7038
7038
  s.dispatch(new De({ id: e.id })), i.focus({ preventScroll: !0 });
7039
- }, A = (b) => L(Mp(b), { transient: !0 }), E = (b) => C({ color: b }, { transient: !0 }), R = (b) => () => {
7039
+ }, A = (b) => k(Mp(b), { transient: !0 }), E = (b) => C({ color: b }, { transient: !0 }), R = (b) => () => {
7040
7040
  C({ font: b }), d.close();
7041
7041
  }, D = (b) => () => {
7042
7042
  C({ fontSize: b }), d.close();
7043
- }, y = (b) => x({ content: Sp(P(), b) });
7043
+ }, y = (b) => x({ content: Sp(L(), b) });
7044
7044
  return /* @__PURE__ */ m(N.Root, {
7045
7045
  anchorBox: t,
7046
7046
  panelRect: r,
@@ -7055,7 +7055,7 @@ var ao = [
7055
7055
  hasTransparentOption: !0,
7056
7056
  onChange: A,
7057
7057
  ...d.bind("background"),
7058
- children: /* @__PURE__ */ n(N.Swatch, { color: h.fill === "transparent" ? ra : h.fill })
7058
+ children: /* @__PURE__ */ n(N.Swatch, { color: h.fill === "transparent" ? na : h.fill })
7059
7059
  }),
7060
7060
  /* @__PURE__ */ n(N.ColorPicker, {
7061
7061
  color: f,
@@ -7075,7 +7075,7 @@ var ao = [
7075
7075
  children: "Aa"
7076
7076
  }),
7077
7077
  ...d.bind("font"),
7078
- children: ro.map((b) => /* @__PURE__ */ n(N.MenuItem, {
7078
+ children: no.map((b) => /* @__PURE__ */ n(N.MenuItem, {
7079
7079
  isSelected: b.id === g?.id,
7080
7080
  onClick: R(b.id),
7081
7081
  children: /* @__PURE__ */ n("span", {
@@ -7088,7 +7088,7 @@ var ao = [
7088
7088
  label: l("graph.annotations.textToolbar.fontSize.ariaLabel"),
7089
7089
  trigger: v === null ? "" : l(v.key),
7090
7090
  ...d.bind("fontSize"),
7091
- children: ao.map((b) => /* @__PURE__ */ n(N.MenuItem, {
7091
+ children: ro.map((b) => /* @__PURE__ */ n(N.MenuItem, {
7092
7092
  isSelected: b.size === v?.size,
7093
7093
  onClick: D(b.size),
7094
7094
  children: /* @__PURE__ */ n("span", {
@@ -7106,16 +7106,16 @@ var ao = [
7106
7106
  /* @__PURE__ */ n(N.IconButton, {
7107
7107
  label: l("graph.annotations.textToolbar.remove"),
7108
7108
  onClick: M,
7109
- children: /* @__PURE__ */ n(mt, {
7109
+ children: /* @__PURE__ */ n(pt, {
7110
7110
  size: "sm",
7111
7111
  title: ""
7112
7112
  })
7113
7113
  })
7114
7114
  ]
7115
7115
  });
7116
- }, Mp = (e) => e === "transparent" ? { fill: la } : {
7116
+ }, Mp = (e) => e === "transparent" ? { fill: ia } : {
7117
7117
  fill: e,
7118
- alpha: Oc(e) ? Tl : 1
7118
+ alpha: Oc(e) ? wl : 1
7119
7119
  }, Np = ({ current: e, onPick: t }) => {
7120
7120
  const r = I(), a = (o) => () => t(o);
7121
7121
  return /* @__PURE__ */ n(Y, { children: Ep.map((o) => /* @__PURE__ */ n(N.ToggleButton, {
@@ -7128,16 +7128,16 @@ var ao = [
7128
7128
  })
7129
7129
  }, o.alignment)) });
7130
7130
  }, Rp = ["left", "right"];
7131
- var oo = ({ width: e }) => oe(60, e), Dp = (e, t) => ({
7131
+ var ao = ({ width: e }) => oe(60, e), Dp = (e, t) => ({
7132
7132
  x: t === "left" ? e.x : e.x + e.width,
7133
7133
  y: e.y + e.height / 2
7134
- }), io = ({ at: e, width: t, align: r, edge: a, delta: o, minWidth: i, panelWidth: l }) => {
7134
+ }), oo = ({ at: e, width: t, align: r, edge: a, delta: o, minWidth: i, panelWidth: l }) => {
7135
7135
  if (o === 0) return {
7136
7136
  at: e,
7137
7137
  width: t,
7138
7138
  shift: 0
7139
7139
  };
7140
- const s = Ol(r).x, c = _p(e.offset, l), u = _t({
7140
+ const s = El(r).x, c = _p(e.offset, l), u = _t({
7141
7141
  start: e.x + c - s * t,
7142
7142
  extent: t,
7143
7143
  isStartMoving: a === "left",
@@ -7152,7 +7152,7 @@ var oo = ({ width: e }) => oe(60, e), Dp = (e, t) => ({
7152
7152
  width: u.extent,
7153
7153
  shift: d - e.x
7154
7154
  };
7155
- }, lo = (e, t) => e.at.x === t.at.x && e.width === t.width, _p = (e, t) => e?.x === void 0 ? 0 : e.unit === "px" ? oe(e.x, t) : e.x, ot = (e, t) => {
7155
+ }, io = (e, t) => e.at.x === t.at.x && e.width === t.width, _p = (e, t) => e?.x === void 0 ? 0 : e.unit === "px" ? oe(e.x, t) : e.x, at = (e, t) => {
7156
7156
  const r = e.textAnnotations.find((a) => a.id === t);
7157
7157
  return r === void 0 || r.at.anchorType !== "panel" ? null : {
7158
7158
  at: r.at,
@@ -7167,25 +7167,25 @@ var oo = ({ width: e }) => oe(60, e), Dp = (e, t) => ({
7167
7167
  return Wt(V(e, "text-resize-drag"), this.params.annotationId);
7168
7168
  }
7169
7169
  resolvePreview(e) {
7170
- const { annotationId: t, edge: r, press: a, readInputs: o } = this.params, { annotations: i, panelRect: l } = o(), s = ot(i, t);
7170
+ const { annotationId: t, edge: r, press: a, readInputs: o } = this.params, { annotations: i, panelRect: l } = o(), s = at(i, t);
7171
7171
  if (s === null) return null;
7172
- const c = vt(a, e, l).x;
7172
+ const c = gt(a, e, l).x;
7173
7173
  return {
7174
7174
  kind: "text-resize-drag",
7175
7175
  annotationId: t,
7176
7176
  delta: c,
7177
- ...io({
7177
+ ...oo({
7178
7178
  ...s,
7179
7179
  edge: r,
7180
7180
  delta: c,
7181
- minWidth: oo(l),
7181
+ minWidth: ao(l),
7182
7182
  panelWidth: l.width
7183
7183
  })
7184
7184
  };
7185
7185
  }
7186
7186
  commit(e) {
7187
- const { annotationId: t, dispatch: r, readInputs: a } = this.params, o = ot(a().annotations, t);
7188
- o === null || lo(o, e) || r(new ie({
7187
+ const { annotationId: t, dispatch: r, readInputs: a } = this.params, o = at(a().annotations, t);
7188
+ o === null || io(o, e) || r(new ie({
7189
7189
  kind: "text",
7190
7190
  id: t,
7191
7191
  patch: {
@@ -7199,7 +7199,7 @@ var oo = ({ width: e }) => oe(60, e), Dp = (e, t) => ({
7199
7199
  annotations: z((i) => i.spec.annotations),
7200
7200
  panelRect: t
7201
7201
  });
7202
- return Qa((i, l) => new zp({
7202
+ return Ja((i, l) => new zp({
7203
7203
  ...l,
7204
7204
  annotationId: e,
7205
7205
  edge: i,
@@ -7209,21 +7209,21 @@ var oo = ({ width: e }) => oe(60, e), Dp = (e, t) => ({
7209
7209
  }));
7210
7210
  }, Bp = 4, Hp = ({ annotationId: e, panelRect: t }) => {
7211
7211
  const { commands: r } = F(), a = $(), o = z((l) => l.spec.annotations), i = (l, s) => {
7212
- const c = ot(o, e);
7212
+ const c = at(o, e);
7213
7213
  return c === null ? null : {
7214
7214
  kind: "text-resize-drag",
7215
7215
  annotationId: e,
7216
7216
  delta: s,
7217
- ...io({
7217
+ ...oo({
7218
7218
  ...c,
7219
7219
  edge: l,
7220
7220
  delta: s,
7221
- minWidth: oo(t),
7221
+ minWidth: ao(t),
7222
7222
  panelWidth: t.width
7223
7223
  })
7224
7224
  };
7225
7225
  };
7226
- return eo({
7226
+ return Qa({
7227
7227
  readHeld: () => Wt(V(a.getState(), "text-resize-drag"), e),
7228
7228
  claim: (l) => i(l, 0),
7229
7229
  step: (l, s, c) => {
@@ -7231,8 +7231,8 @@ var oo = ({ width: e }) => oe(60, e), Dp = (e, t) => ({
7231
7231
  return u === null ? null : i(s, l.delta + u);
7232
7232
  },
7233
7233
  commit: (l) => {
7234
- const s = ot(o, e);
7235
- s === null || lo(s, l) || r.dispatch(new ie({
7234
+ const s = at(o, e);
7235
+ s === null || io(s, l) || r.dispatch(new ie({
7236
7236
  kind: "text",
7237
7237
  id: e,
7238
7238
  patch: {
@@ -7283,7 +7283,7 @@ var oo = ({ width: e }) => oe(60, e), Dp = (e, t) => ({
7283
7283
  frameElement: c
7284
7284
  }), o && !a && !i && Rp.map((p) => {
7285
7285
  const g = Dp(t, p);
7286
- return /* @__PURE__ */ n(Ja, {
7286
+ return /* @__PURE__ */ n(Ya, {
7287
7287
  point: {
7288
7288
  x: l.x + g.x,
7289
7289
  y: l.y + g.y
@@ -7303,14 +7303,14 @@ var oo = ({ width: e }) => oe(60, e), Dp = (e, t) => ({
7303
7303
  }, Wp = (e) => {
7304
7304
  const t = z((r) => r.spec.annotations.textAnnotations);
7305
7305
  return e === null ? null : t.find((r) => r.id === e) ?? null;
7306
- }, Up = (e) => X(me((t) => e === null ? {
7306
+ }, Up = (e) => X(ge((t) => e === null ? {
7307
7307
  resized: null,
7308
7308
  isMoved: !1
7309
7309
  } : {
7310
7310
  resized: Wt(V(t, "text-resize-drag"), e),
7311
- isMoved: lt(V(t, "move-drag"), e) !== null
7311
+ isMoved: it(V(t, "move-drag"), e) !== null
7312
7312
  })), Kp = (e, t, r) => {
7313
- const a = Le(e), o = Er(), i = Q(), l = O(() => ({
7313
+ const a = Le(e), o = Ir(), i = Q(), l = O(() => ({
7314
7314
  panel: {
7315
7315
  width: e.width,
7316
7316
  height: e.height
@@ -7323,7 +7323,7 @@ var oo = ({ width: e }) => oe(60, e), Dp = (e, t) => ({
7323
7323
  o,
7324
7324
  i
7325
7325
  ]);
7326
- return t === null ? null : Ya(a, t, r, l)?.rect ?? null;
7326
+ return t === null ? null : ja(a, t, r, l)?.rect ?? null;
7327
7327
  }, qp = (e) => /* @__PURE__ */ n(T, {
7328
7328
  ...e,
7329
7329
  children: /* @__PURE__ */ m("g", {
@@ -7348,13 +7348,13 @@ var jp = "_1tyillx1", Yp = {
7348
7348
  }, e2 = ({ interaction: e, panelRect: t }) => {
7349
7349
  const r = $(), a = e.kind === "trigger" || e.kind === "menu" ? e.anchor : null, o = t2(e), i = O(() => {
7350
7350
  if (a === null) return null;
7351
- const l = Je(a.position, t);
7351
+ const l = Ye(a.position, t);
7352
7352
  return {
7353
7353
  center: l,
7354
7354
  radius: 19 * Zp[o],
7355
7355
  target: {
7356
7356
  kind: "observation",
7357
- cursor: dt(l, t)
7357
+ cursor: ct(l, t)
7358
7358
  }
7359
7359
  };
7360
7360
  }, [
@@ -7368,14 +7368,14 @@ var jp = "_1tyillx1", Yp = {
7368
7368
  "aria-hidden": "true",
7369
7369
  "data-testid": "observation-menu-trigger",
7370
7370
  "data-state": o,
7371
- className: pe(jp, Yp[o]),
7371
+ className: me(jp, Yp[o]),
7372
7372
  style: {
7373
7373
  left: t.x + i.center.x,
7374
7374
  top: t.y + i.center.y,
7375
- ...ut({ [Xp]: a.color })
7375
+ ...dt({ [Xp]: a.color })
7376
7376
  },
7377
7377
  children: /* @__PURE__ */ n("span", {
7378
- className: pe(Jp, Qp[o === "open" ? "open" : "closed"]),
7378
+ className: me(Jp, Qp[o === "open" ? "open" : "closed"]),
7379
7379
  children: /* @__PURE__ */ n(qp, { size: "lg" })
7380
7380
  })
7381
7381
  });
@@ -7384,7 +7384,7 @@ var jp = "_1tyillx1", Yp = {
7384
7384
  _(() => {
7385
7385
  if (t === null) return;
7386
7386
  const o = (i) => {
7387
- if (i.key !== "Tab" || i.defaultPrevented || !Be(i.target, e, r) || wa(i.target) || a.getState().standingInteraction?.kind === "chrome-popup") return;
7387
+ if (i.key !== "Tab" || i.defaultPrevented || !Be(i.target, e, r) || xa(i.target) || a.getState().standingInteraction?.kind === "chrome-popup") return;
7388
7388
  const l = [...t.querySelectorAll(n2)];
7389
7389
  if (l.length === 0) return;
7390
7390
  i.preventDefault();
@@ -7398,12 +7398,12 @@ var jp = "_1tyillx1", Yp = {
7398
7398
  r,
7399
7399
  a
7400
7400
  ]);
7401
- }, a2 = (e, t) => typeof document.elementsFromPoint == "function" ? document.elementsFromPoint(e, t) : [], so = (e, t, r) => st(a2(e, t), r), o2 = (e) => {
7401
+ }, a2 = (e, t) => typeof document.elementsFromPoint == "function" ? document.elementsFromPoint(e, t) : [], lo = (e, t, r) => lt(a2(e, t), r), o2 = (e) => {
7402
7402
  const { selectionStore: t, chartId: r } = F(), a = $();
7403
7403
  _(() => {
7404
7404
  let o = null;
7405
7405
  const i = (c) => {
7406
- const { caret: u } = a.getState(), d = u === null ? null : so(c.clientX, c.clientY, e);
7406
+ const { caret: u } = a.getState(), d = u === null ? null : lo(c.clientX, c.clientY, e);
7407
7407
  d?.kind === "annotation" && d.target.id === u?.annotationId || e.focus({ preventScroll: !0 });
7408
7408
  }, l = (c) => {
7409
7409
  const { selection: u, clearSelection: d } = t.getState();
@@ -7428,7 +7428,7 @@ var jp = "_1tyillx1", Yp = {
7428
7428
  const r = t.legends[e.part.legendIndex], a = r?.items[e.part.itemIndex];
7429
7429
  if (r === void 0 || a === void 0) return null;
7430
7430
  const o = l2(r, a.layerId, t.layers);
7431
- return o === null ? null : Br({
7431
+ return o === null ? null : Fr({
7432
7432
  layer: o.layer,
7433
7433
  scope: "series",
7434
7434
  variable: o.variable,
@@ -7457,7 +7457,7 @@ var jp = "_1tyillx1", Yp = {
7457
7457
  return null;
7458
7458
  }, s2 = (e, t) => {
7459
7459
  for (const r of e) {
7460
- const a = Kr(r.mapping[t]);
7460
+ const a = Ur(r.mapping[t]);
7461
7461
  if (a !== null && c2(r, a)) return {
7462
7462
  layer: r,
7463
7463
  variable: a
@@ -7470,7 +7470,7 @@ var jp = "_1tyillx1", Yp = {
7470
7470
  if (!o.interactive) continue;
7471
7471
  const i = fs(o.mapping);
7472
7472
  if (i === null) continue;
7473
- const l = Br({
7473
+ const l = Fr({
7474
7474
  layer: o,
7475
7475
  scope: "x-value",
7476
7476
  variable: i,
@@ -7488,7 +7488,7 @@ var jp = "_1tyillx1", Yp = {
7488
7488
  if (o === null) return null;
7489
7489
  const l = Pe(t, o.layerId);
7490
7490
  if (l === void 0) return null;
7491
- const s = Ur(o), c = i?.intersects !== !1, u = ss(l), d = c || !m2(r) ? [u] : ["x-value", u];
7491
+ const s = Wr(o), c = i?.intersects !== !1, u = ss(l), d = c || !m2(r) ? [u] : ["x-value", u];
7492
7492
  for (const h of d) {
7493
7493
  const p = Zt({
7494
7494
  layer: l,
@@ -7516,7 +7516,7 @@ var jp = "_1tyillx1", Yp = {
7516
7516
  }, m2 = (e) => {
7517
7517
  const t = e.x;
7518
7518
  return t?.kind !== "position" ? !1 : u2.has(t.spec.scaleType);
7519
- }, co = (e, t) => {
7519
+ }, so = (e, t) => {
7520
7520
  const { target: r, clientX: a, clientY: o } = e, { frameElement: i, captureRect: l, menuTrigger: s, panelOrigin: c, resolvesObservations: u, scene: d } = t, h = s !== null && jt({
7521
7521
  x: a - c.x,
7522
7522
  y: o - c.y
@@ -7524,7 +7524,7 @@ var jp = "_1tyillx1", Yp = {
7524
7524
  if (!(r instanceof Element && i.contains(r))) return {
7525
7525
  targetAtPoint: bn({
7526
7526
  isMenuTrigger: h,
7527
- stamped: ar(!1, !1, e, t),
7527
+ stamped: rr(!1, !1, e, t),
7528
7528
  observations: null
7529
7529
  }),
7530
7530
  hover: null
@@ -7536,7 +7536,7 @@ var jp = "_1tyillx1", Yp = {
7536
7536
  parsingLocale: d.config.parsingLocale
7537
7537
  }), S = bn({
7538
7538
  isMenuTrigger: h,
7539
- stamped: ar(p, f !== null, e, t),
7539
+ stamped: rr(p, f !== null, e, t),
7540
7540
  observations: f
7541
7541
  });
7542
7542
  return {
@@ -7546,27 +7546,27 @@ var jp = "_1tyillx1", Yp = {
7546
7546
  }, g2 = (e) => {
7547
7547
  const t = e.getBoundingClientRect();
7548
7548
  return t.width > 0 && t.height > 0 ? t : null;
7549
- }, ar = (e, t, r, { paintsAnnotations: a, resolvesGuides: o, frameElement: i, scene: l }) => {
7549
+ }, rr = (e, t, r, { paintsAnnotations: a, resolvesGuides: o, frameElement: i, scene: l }) => {
7550
7550
  if (!a && l.coordSystem.type === "cartesian" && e && t) return null;
7551
- const s = e || a ? so(r.clientX, r.clientY, i) : v2(r.target, i);
7551
+ const s = e || a ? lo(r.clientX, r.clientY, i) : v2(r.target, i);
7552
7552
  return s === null ? null : (s.kind === "annotation" ? a : o) ? s : null;
7553
- }, v2 = (e, t) => e instanceof Element ? st([e], t) : null, f2 = (e, t, r) => {
7553
+ }, v2 = (e, t) => e instanceof Element ? lt([e], t) : null, f2 = (e, t, r) => {
7554
7554
  const a = {
7555
7555
  x: e.clientX - t.left,
7556
7556
  y: e.clientY - t.top
7557
7557
  };
7558
- return r.engine.query(dt(a, t), r.tolerance, t);
7558
+ return r.engine.query(ct(a, t), r.tolerance, t);
7559
7559
  }, b2 = class extends We {
7560
7560
  constructor(...e) {
7561
7561
  super(...e), this.kind = "move-drag";
7562
7562
  }
7563
7563
  readOwn(e) {
7564
- return lt(V(e, "move-drag"), this.params.annotationId);
7564
+ return it(V(e, "move-drag"), this.params.annotationId);
7565
7565
  }
7566
7566
  resolvePreview(e) {
7567
- const { annotationId: t, press: r, readInputs: a } = this.params, { annotations: o, panelRect: i } = a(), l = Kl(o, t);
7567
+ const { annotationId: t, press: r, readInputs: a } = this.params, { annotations: o, panelRect: i } = a(), l = Ul(o, t);
7568
7568
  if (l === null) return null;
7569
- const s = Gl(l, vt(r, e, i));
7569
+ const s = Hl(l, gt(r, e, i));
7570
7570
  return s === null ? null : {
7571
7571
  kind: "move-drag",
7572
7572
  annotationId: t,
@@ -7575,7 +7575,7 @@ var jp = "_1tyillx1", Yp = {
7575
7575
  }
7576
7576
  commit({ translation: e }) {
7577
7577
  const { annotationId: t, dispatch: r } = this.params;
7578
- i1(e) && r(new Gi({
7578
+ i1(e) && r(new Hi({
7579
7579
  id: t,
7580
7580
  translation: e
7581
7581
  }));
@@ -7616,16 +7616,16 @@ var jp = "_1tyillx1", Yp = {
7616
7616
  panelRect: r
7617
7617
  }), g = j(t), v = j(o), f = ne(null);
7618
7618
  _(() => () => f.current?.finish(!1), []), _(() => {
7619
- const S = (A) => co({
7619
+ const S = (A) => so({
7620
7620
  target: A.target,
7621
7621
  clientX: A.clientX,
7622
7622
  clientY: A.clientY
7623
- }, a()).targetAtPoint, L = (A) => {
7623
+ }, a()).targetAtPoint, k = (A) => {
7624
7624
  if (!(A.target instanceof Element)) return !1;
7625
- const E = A.target.closest(Lr);
7626
- return E !== null && e.contains(E) && st([A.target], e) === null;
7625
+ const E = A.target.closest(kr);
7626
+ return E !== null && e.contains(E) && lt([A.target], e) === null;
7627
7627
  }, x = (A, E) => {
7628
- if (f.current !== null || !Pi(p.current.annotations, E.id)) return;
7628
+ if (f.current !== null || !Li(p.current.annotations, E.id)) return;
7629
7629
  try {
7630
7630
  e.setPointerCapture(A.pointerId);
7631
7631
  } catch {
@@ -7648,7 +7648,7 @@ var jp = "_1tyillx1", Yp = {
7648
7648
  }
7649
7649
  });
7650
7650
  f.current = R, R.start();
7651
- }, P = (A, E) => {
7651
+ }, L = (A, E) => {
7652
7652
  const R = l.getState();
7653
7653
  switch (E.kind) {
7654
7654
  case "select-annotation":
@@ -7664,24 +7664,24 @@ var jp = "_1tyillx1", Yp = {
7664
7664
  R.clearSelection();
7665
7665
  return;
7666
7666
  default:
7667
- throw new Fi({ message: `No press outcome for: ${JSON.stringify(E)}` });
7667
+ throw new zi({ message: `No press outcome for: ${JSON.stringify(E)}` });
7668
7668
  }
7669
7669
  }, C = (A) => {
7670
- if (A.button !== 0 || Rt(A.target) || Ta(A, g.current, c.getState().menuTrigger) || L(A)) return;
7670
+ if (A.button !== 0 || Rt(A.target) || wa(A, g.current, c.getState().menuTrigger) || k(A)) return;
7671
7671
  const E = y2(S(A), {
7672
7672
  canSelectGraph: h.current,
7673
7673
  isWithinFrame: A.target instanceof Node && e.contains(A.target),
7674
7674
  caretAnnotationId: c.getState().caret?.annotationId ?? null
7675
7675
  });
7676
- E.kind !== "keep-caret" && (c.getState().setCaret(null), P(A, E));
7676
+ E.kind !== "keep-caret" && (c.getState().setCaret(null), L(A, E));
7677
7677
  }, M = (A) => {
7678
- if (Rt(A.target) || L(A)) return;
7678
+ if (Rt(A.target) || k(A)) return;
7679
7679
  const E = S(A), { layers: R, guides: D, config: y } = s.getState().scene, b = l.getState(), U = c.getState();
7680
7680
  switch (E?.kind) {
7681
7681
  case "observations": {
7682
- const { observations: te } = E, ue = p2(te, R, y.parsingLocale);
7683
- if (ue === null) return;
7684
- b.setSelection([ue]);
7682
+ const { observations: te } = E, he = p2(te, R, y.parsingLocale);
7683
+ if (he === null) return;
7684
+ b.setSelection([he]);
7685
7685
  return;
7686
7686
  }
7687
7687
  case "axis":
@@ -7698,7 +7698,7 @@ var jp = "_1tyillx1", Yp = {
7698
7698
  }
7699
7699
  case "annotation": {
7700
7700
  const { target: te } = E;
7701
- if (!p.current.annotations.textAnnotations.some((ue) => ue.id === te.id)) return;
7701
+ if (!p.current.annotations.textAnnotations.some((he) => he.id === te.id)) return;
7702
7702
  b.setSelection([te]), U.setCaret(te.id);
7703
7703
  return;
7704
7704
  }
@@ -7733,7 +7733,7 @@ var jp = "_1tyillx1", Yp = {
7733
7733
  t,
7734
7734
  l
7735
7735
  ]), c = ae((d) => {
7736
- if (Ye(d.target, a)) return;
7736
+ if (je(d.target, a)) return;
7737
7737
  const h = l ? Dt(t.getState().selection) : null;
7738
7738
  h !== null && i.current.some((p) => p.id === h) && (d.preventDefault(), o.getState().setCaret(h));
7739
7739
  }, [
@@ -7752,7 +7752,7 @@ var jp = "_1tyillx1", Yp = {
7752
7752
  h.setCaret(null), e.focus({ preventScroll: !0 });
7753
7753
  return;
7754
7754
  }
7755
- return Ye(d.target, a) ? e.focus({ preventScroll: !0 }) : t.getState().clearSelection();
7755
+ return je(d.target, a) ? e.focus({ preventScroll: !0 }) : t.getState().clearSelection();
7756
7756
  }, [
7757
7757
  o,
7758
7758
  t,
@@ -7761,8 +7761,8 @@ var jp = "_1tyillx1", Yp = {
7761
7761
  ]);
7762
7762
  _(() => {
7763
7763
  const d = (h) => {
7764
- if (!Be(h.target, e, a) || wa(h.target)) return;
7765
- const p = w2(h.target), g = o.getState().caret !== null && !Ye(h.target, a);
7764
+ if (!Be(h.target, e, a) || xa(h.target)) return;
7765
+ const p = w2(h.target), g = o.getState().caret !== null && !je(h.target, a);
7766
7766
  if (!(p && !g))
7767
7767
  switch (h.key) {
7768
7768
  case "Escape":
@@ -7811,10 +7811,10 @@ var jp = "_1tyillx1", Yp = {
7811
7811
  a
7812
7812
  ]);
7813
7813
  }, A2 = () => {
7814
- const e = ke[Se()].observationMenu, t = fi((l) => e ? l.hover.primary : null), { layers: r, coordSystem: a } = z(me((l) => ({
7814
+ const e = ke[Se()].observationMenu, t = vi((l) => e ? l.hover.primary : null), { layers: r, coordSystem: a } = z(ge((l) => ({
7815
7815
  layers: l.layers,
7816
7816
  coordSystem: l.coordSystem
7817
- }))), { anchorResolver: o } = F(), i = Tr();
7817
+ }))), { anchorResolver: o } = F(), i = wr();
7818
7818
  return O(() => {
7819
7819
  if (t === null) return null;
7820
7820
  const l = r.find((u) => u.id === t.layerId);
@@ -7825,7 +7825,7 @@ var jp = "_1tyillx1", Yp = {
7825
7825
  purpose: "pin"
7826
7826
  });
7827
7827
  if (s === null) return null;
7828
- const c = Vl(l)(t.observation);
7828
+ const c = Gl(l)(t.observation);
7829
7829
  return c === null ? null : {
7830
7830
  position: s,
7831
7831
  color: i(l).get("color", t.observation),
@@ -7840,7 +7840,7 @@ var jp = "_1tyillx1", Yp = {
7840
7840
  o,
7841
7841
  i
7842
7842
  ]);
7843
- }, k2 = { kind: "idle" }, uo = () => {
7843
+ }, k2 = { kind: "idle" }, co = () => {
7844
7844
  const e = X((a) => a.standingInteraction), t = X((a) => a.editTargetUnderPointer?.kind === "menu-trigger"), r = A2();
7845
7845
  return O(() => e !== null ? e : r === null ? k2 : {
7846
7846
  kind: "trigger",
@@ -7854,22 +7854,22 @@ var jp = "_1tyillx1", Yp = {
7854
7854
  }, L2 = (e, t) => e.x >= 0 && e.x <= t.width && e.y >= 0 && e.y <= t.height, P2 = (e, t, r) => {
7855
7855
  const a = $(), { selectionStore: o } = F(), { store: i, engine: l } = He(), s = j(e), c = j(t), u = j(r);
7856
7856
  _(() => {
7857
- const d = (f) => Ta(f, c.current, a.getState().menuTrigger), h = (f) => {
7857
+ const d = (f) => wa(f, c.current, a.getState().menuTrigger), h = (f) => {
7858
7858
  if (d(f) || o.getState().selection.length > 0) return;
7859
- const S = u.current, L = c.current, x = {
7860
- x: f.clientX - L.x,
7861
- y: f.clientY - L.y
7862
- }, P = L2(x, S) ? l.query(dt(x, S)) : Xt;
7863
- i.getState().setHoverState(P);
7859
+ const S = u.current, k = c.current, x = {
7860
+ x: f.clientX - k.x,
7861
+ y: f.clientY - k.y
7862
+ }, L = L2(x, S) ? l.query(ct(x, S)) : Xt;
7863
+ i.getState().setHoverState(L);
7864
7864
  };
7865
7865
  let p = !1;
7866
7866
  const g = () => {
7867
7867
  p = s.current.kind === "menu";
7868
7868
  }, v = (f) => {
7869
7869
  if (Rt(f.target)) return;
7870
- const { claimInteraction: S, releaseInteraction: L } = a.getState();
7870
+ const { claimInteraction: S, releaseInteraction: k } = a.getState();
7871
7871
  if (!d(f) || p) {
7872
- L("menu"), p && h(f);
7872
+ k("menu"), p && h(f);
7873
7873
  return;
7874
7874
  }
7875
7875
  const x = s.current;
@@ -7901,7 +7901,7 @@ var jp = "_1tyillx1", Yp = {
7901
7901
  }, p = () => {
7902
7902
  if (c = null, u === null) return;
7903
7903
  const C = a.getState();
7904
- if (je(C.standingInteraction)) {
7904
+ if (Ze(C.standingInteraction)) {
7905
7905
  const E = C.menuTrigger !== null && jt({
7906
7906
  x: u.clientX - l.current.x,
7907
7907
  y: u.clientY - l.current.y
@@ -7913,7 +7913,7 @@ var jp = "_1tyillx1", Yp = {
7913
7913
  ...u,
7914
7914
  target: E2(u)
7915
7915
  });
7916
- const { targetAtPoint: M, hover: A } = co(u, r());
7916
+ const { targetAtPoint: M, hover: A } = so(u, r());
7917
7917
  C.setEditTargetUnderPointer(M), h(A);
7918
7918
  }, g = () => {
7919
7919
  c === null && (c = requestAnimationFrame(p));
@@ -7927,15 +7927,15 @@ var jp = "_1tyillx1", Yp = {
7927
7927
  clientX: C.clientX,
7928
7928
  clientY: C.clientY
7929
7929
  }, d = !1, g();
7930
- }, L = () => {
7930
+ }, k = () => {
7931
7931
  u = null, c !== null && (cancelAnimationFrame(c), c = null), f();
7932
7932
  }, x = a.subscribe((C, M) => {
7933
- je(M.standingInteraction) && !je(C.standingInteraction) && v();
7934
- }), P = o.subscribe((C, M) => {
7935
- C.scene !== M.scene && (je(a.getState().standingInteraction) || v());
7933
+ Ze(M.standingInteraction) && !Ze(C.standingInteraction) && v();
7934
+ }), L = o.subscribe((C, M) => {
7935
+ C.scene !== M.scene && (Ze(a.getState().standingInteraction) || v());
7936
7936
  });
7937
- return e.addEventListener("pointermove", S), e.addEventListener("pointerleave", L), () => {
7938
- c !== null && cancelAnimationFrame(c), x(), P(), e.removeEventListener("pointermove", S), e.removeEventListener("pointerleave", L), f();
7937
+ return e.addEventListener("pointermove", S), e.addEventListener("pointerleave", k), () => {
7938
+ c !== null && cancelAnimationFrame(c), x(), L(), e.removeEventListener("pointermove", S), e.removeEventListener("pointerleave", k), f();
7939
7939
  };
7940
7940
  }, [
7941
7941
  e,
@@ -7946,7 +7946,7 @@ var jp = "_1tyillx1", Yp = {
7946
7946
  s,
7947
7947
  r
7948
7948
  ]);
7949
- }, E2 = (e) => typeof document.elementFromPoint == "function" ? document.elementFromPoint(e.clientX, e.clientY) : e.target, je = (e) => {
7949
+ }, E2 = (e) => typeof document.elementFromPoint == "function" ? document.elementFromPoint(e.clientX, e.clientY) : e.target, Ze = (e) => {
7950
7950
  if (e === null) return !1;
7951
7951
  switch (e.kind) {
7952
7952
  case "menu":
@@ -7959,9 +7959,9 @@ var jp = "_1tyillx1", Yp = {
7959
7959
  case "chrome-popup":
7960
7960
  return !1;
7961
7961
  }
7962
- }, or = "editor", ir = [], O2 = (e, t, r, a, o) => {
7963
- const i = uo(), { store: l } = He(), s = Ut().length > 0, c = ke[Se()].holdsHoverWhileSelected, u = X((v) => v.menuTrigger), d = i.kind === "menu", h = O(() => u === null ? ir : [Rl(u)], [u]), p = T2(e, t);
7964
- I2(e, t, p), C2(e, t, r, p, o), P2(i, t, r), o2(e), x2(e), r2(e, a), _(() => (l.getState().publishPointerRegions(or, h), () => l.getState().publishPointerRegions(or, ir)), [l, h]);
7962
+ }, ar = "editor", or = [], O2 = (e, t, r, a, o) => {
7963
+ const i = co(), { store: l } = He(), s = Ut().length > 0, c = ke[Se()].holdsHoverWhileSelected, u = X((v) => v.menuTrigger), d = i.kind === "menu", h = O(() => u === null ? or : [Nl(u)], [u]), p = T2(e, t);
7964
+ I2(e, t, p), C2(e, t, r, p, o), P2(i, t, r), o2(e), x2(e), r2(e, a), _(() => (l.getState().publishPointerRegions(ar, h), () => l.getState().publishPointerRegions(ar, or)), [l, h]);
7965
7965
  const g = d || s && c;
7966
7966
  _(() => (l.getState().setPointerSuspended(g), () => l.getState().setPointerSuspended(!1)), [l, g]), _(() => {
7967
7967
  if (!s || !c) return;
@@ -7973,7 +7973,7 @@ var jp = "_1tyillx1", Yp = {
7973
7973
  c
7974
7974
  ]);
7975
7975
  }, M2 = ({ frameElement: e, panelRect: t, formattedAxes: r, shouldAnimateTransitions: a }) => {
7976
- const { measureRef: o, screenRect: i } = Ii(), { selectionStore: l } = F(), s = $(), c = X((h) => h.caret?.annotationId ?? null), u = Se(), d = ne(u);
7976
+ const { measureRef: o, screenRect: i } = Pi(), { selectionStore: l } = F(), s = $(), c = X((h) => h.caret?.annotationId ?? null), u = Se(), d = ne(u);
7977
7977
  return _(() => (o(e), () => o(null)), [o, e]), _(() => () => {
7978
7978
  const h = s.getState();
7979
7979
  h.releaseInteraction("menu"), h.setCaret(null);
@@ -8024,7 +8024,7 @@ var jp = "_1tyillx1", Yp = {
8024
8024
  shouldAnimateTransitions: o
8025
8025
  });
8026
8026
  }, D2 = ({ frameElement: e, frameRect: t, panelOrigin: r, panelRect: a, boxRef: o, shouldAnimateTransitions: i }) => {
8027
- const l = pt(), s = uo(), { annotations: c, editOutline: u, overlayMenu: d } = ke[Se()], h = O(() => ({
8027
+ const l = ht(), s = co(), { annotations: c, editOutline: u, overlayMenu: d } = ke[Se()], h = O(() => ({
8028
8028
  width: t.width,
8029
8029
  height: t.height
8030
8030
  }), [t.width, t.height]);
@@ -8033,9 +8033,9 @@ var jp = "_1tyillx1", Yp = {
8033
8033
  frameSize: h,
8034
8034
  panelRect: a,
8035
8035
  shouldAnimateTransitions: i
8036
- }), /* @__PURE__ */ n(Uu, { frameRect: t })] }), /* @__PURE__ */ n(Li, {
8036
+ }), /* @__PURE__ */ n(Uu, { frameRect: t })] }), /* @__PURE__ */ n(ki, {
8037
8037
  rect: t,
8038
- zIndex: ri.editorOverlay,
8038
+ zIndex: ni.editorOverlay,
8039
8039
  container: l,
8040
8040
  "data-testid": "editor-overlay",
8041
8041
  boxRef: o,
@@ -8080,10 +8080,10 @@ var jp = "_1tyillx1", Yp = {
8080
8080
  ] })
8081
8081
  })] });
8082
8082
  }, p5 = ({ slots: e, mode: t, ...r }) => /* @__PURE__ */ n(sc, {
8083
- locale: yi(),
8084
- children: /* @__PURE__ */ n(ti, { children: /* @__PURE__ */ n(Ei, {
8083
+ locale: bi(),
8084
+ children: /* @__PURE__ */ n(ei, { children: /* @__PURE__ */ n(Ii, {
8085
8085
  editors: Vd,
8086
- children: /* @__PURE__ */ n(xi, {
8086
+ children: /* @__PURE__ */ n(Ci, {
8087
8087
  slots: O(() => ({
8088
8088
  EditorSurface: M2,
8089
8089
  ...e
@@ -8092,7 +8092,7 @@ var jp = "_1tyillx1", Yp = {
8092
8092
  ...r
8093
8093
  })
8094
8094
  }) })
8095
- }), ho = Ge(null), po = ({ labelId: e, controlId: t, children: r }) => {
8095
+ }), uo = Ge(null), ho = ({ labelId: e, controlId: t, children: r }) => {
8096
8096
  const a = O(() => {
8097
8097
  let o = null;
8098
8098
  return {
@@ -8101,12 +8101,12 @@ var jp = "_1tyillx1", Yp = {
8101
8101
  claimControlId: (i) => (o ??= i, o === i)
8102
8102
  };
8103
8103
  }, [e, t]);
8104
- return /* @__PURE__ */ n(ho.Provider, {
8104
+ return /* @__PURE__ */ n(uo.Provider, {
8105
8105
  value: a,
8106
8106
  children: r
8107
8107
  });
8108
8108
  }, Ce = ({ id: e, ariaLabel: t, ariaLabelledBy: r }, a = !0) => {
8109
- const o = _e(ho), i = Te(), [l] = ee(() => a ? o?.claimControlId(i) ?? !1 : !1), s = e ?? (l ? o?.controlId : void 0), c = r ?? (t === void 0 ? o?.labelId : void 0);
8109
+ const o = _e(uo), i = Te(), [l] = ee(() => a ? o?.claimControlId(i) ?? !1 : !1), s = e ?? (l ? o?.controlId : void 0), c = r ?? (t === void 0 ? o?.labelId : void 0);
8110
8110
  return {
8111
8111
  ...s !== void 0 && { id: s },
8112
8112
  ...t !== void 0 && { "aria-label": t },
@@ -8140,18 +8140,18 @@ var _2 = {
8140
8140
  const e = _e(un);
8141
8141
  if (!e) throw new Error("An editing section must sit inside an <EditorPanel.Root> bound to a graph — pass it a `handle`, or render the panel inside a <GraphProvider>.");
8142
8142
  return e;
8143
- }, mo = ({ children: e, onKeyDown: t, ...r }) => {
8143
+ }, po = ({ children: e, onKeyDown: t, ...r }) => {
8144
8144
  const a = _e(un);
8145
8145
  return /* @__PURE__ */ n("div", {
8146
8146
  onKeyDown: (i) => {
8147
8147
  if (t?.(i), !a || i.defaultPrevented) return;
8148
- const l = bi(i.nativeEvent);
8148
+ const l = fi(i.nativeEvent);
8149
8149
  l && (i.preventDefault(), l === "undo" ? a.undo() : a.redo());
8150
8150
  },
8151
8151
  ...r,
8152
8152
  children: e
8153
8153
  });
8154
- }, go = "keyboard", ft = (e) => {
8154
+ }, mo = "keyboard", vt = (e) => {
8155
8155
  const t = ne(!1), r = ne(!1), a = () => {
8156
8156
  t.current = !1, r.current && (r.current = !1, e?.());
8157
8157
  };
@@ -8186,19 +8186,19 @@ var G2 = ({ value: e, onChange: t, onCommit: r, min: a, max: o, step: i, placeho
8186
8186
  id: g,
8187
8187
  ariaLabel: h,
8188
8188
  ariaLabelledBy: p
8189
- }), { commitUnlessHeldKey: f, gestureHandlers: S } = ft(r);
8190
- return /* @__PURE__ */ n(Ln.Root, {
8189
+ }), { commitUnlessHeldKey: f, gestureHandlers: S } = vt(r);
8190
+ return /* @__PURE__ */ n(kn.Root, {
8191
8191
  className: F2,
8192
8192
  value: e,
8193
- onValueChange: (L) => t(L),
8194
- onValueCommitted: (L, x) => {
8195
- f(x.reason === go);
8193
+ onValueChange: (k) => t(k),
8194
+ onValueCommitted: (k, x) => {
8195
+ f(x.reason === mo);
8196
8196
  },
8197
8197
  min: a,
8198
8198
  max: o,
8199
8199
  step: i,
8200
8200
  disabled: u,
8201
- children: /* @__PURE__ */ m(mo, {
8201
+ children: /* @__PURE__ */ m(po, {
8202
8202
  className: B2,
8203
8203
  "data-error": d === !0,
8204
8204
  "data-disabled": u === !0 ? "" : void 0,
@@ -8207,7 +8207,7 @@ var G2 = ({ value: e, onChange: t, onCommit: r, min: a, max: o, step: i, placeho
8207
8207
  className: "eh8dvc3",
8208
8208
  children: s
8209
8209
  }),
8210
- /* @__PURE__ */ n(Ln.Input, {
8210
+ /* @__PURE__ */ n(kn.Input, {
8211
8211
  className: H2,
8212
8212
  placeholder: l,
8213
8213
  ...S,
@@ -8234,9 +8234,9 @@ var W2 = 6, U2 = ({ options: e, value: t, onChange: r, onCommit: a, columns: o,
8234
8234
  id: u,
8235
8235
  ariaLabel: s,
8236
8236
  ariaLabelledBy: c
8237
- }), h = i === "swatch", { commitAfterChange: p, gestureHandlers: g } = ft(a);
8238
- return /* @__PURE__ */ n(ta, {
8239
- className: pe(V2, K2(o ?? e.length)),
8237
+ }), h = i === "swatch", { commitAfterChange: p, gestureHandlers: g } = vt(a);
8238
+ return /* @__PURE__ */ n(ea, {
8239
+ className: me(V2, K2(o ?? e.length)),
8240
8240
  value: t,
8241
8241
  onValueChange: (v) => {
8242
8242
  r(v), p();
@@ -8244,10 +8244,10 @@ var W2 = 6, U2 = ({ options: e, value: t, onChange: r, onCommit: a, columns: o,
8244
8244
  ...g,
8245
8245
  disabled: l,
8246
8246
  ...d,
8247
- children: e.map((v) => /* @__PURE__ */ m(ea.Root, {
8247
+ children: e.map((v) => /* @__PURE__ */ m(Qr.Root, {
8248
8248
  value: v.value,
8249
8249
  disabled: v.isDisabled,
8250
- className: pe($2, h && "_1b7s5f8"),
8250
+ className: me($2, h && "_1b7s5f8"),
8251
8251
  "aria-label": h ? v.label : void 0,
8252
8252
  children: [v.icon, !h && /* @__PURE__ */ n("span", {
8253
8253
  className: "_1b7s5f9",
@@ -8270,14 +8270,14 @@ var W2 = 6, U2 = ({ options: e, value: t, onChange: r, onCommit: a, columns: o,
8270
8270
  default:
8271
8271
  return Oe[6];
8272
8272
  }
8273
- }, q2 = "_1g5x15w0 uz3g760", X2 = "_1g5x15w1", Z2 = "_1g5x15w2", lr = "_1g5x15w3", j2 = "_1g5x15w4", Y2 = "_1g5x15w5", J2 = "_1g5x15w6", Q2 = "_1g5x15w7";
8273
+ }, q2 = "_1g5x15w0 uz3g760", X2 = "_1g5x15w1", Z2 = "_1g5x15w2", ir = "_1g5x15w3", j2 = "_1g5x15w4", Y2 = "_1g5x15w5", J2 = "_1g5x15w6", Q2 = "_1g5x15w7";
8274
8274
  var em = ({ options: e, value: t, onChange: r, placeholder: a, isDisabled: o, hasError: i, ariaLabel: l, ariaLabelledBy: s, id: c }) => {
8275
8275
  const u = Ce({
8276
8276
  id: c,
8277
8277
  ariaLabel: l,
8278
8278
  ariaLabelledBy: s
8279
8279
  });
8280
- return /* @__PURE__ */ m(le.Root, {
8280
+ return /* @__PURE__ */ m(se.Root, {
8281
8281
  value: t,
8282
8282
  onValueChange: (d) => d !== null && r(d),
8283
8283
  disabled: o,
@@ -8285,26 +8285,26 @@ var em = ({ options: e, value: t, onChange: r, placeholder: a, isDisabled: o, ha
8285
8285
  value: d.value,
8286
8286
  label: d.label
8287
8287
  })),
8288
- children: [/* @__PURE__ */ m(le.Trigger, {
8288
+ children: [/* @__PURE__ */ m(se.Trigger, {
8289
8289
  className: q2,
8290
8290
  "data-error": i === !0,
8291
8291
  ...u,
8292
- children: [/* @__PURE__ */ n(le.Value, {
8292
+ children: [/* @__PURE__ */ n(se.Value, {
8293
8293
  className: X2,
8294
8294
  children: (d) => tm(e, d, a)
8295
- }), /* @__PURE__ */ n(le.Icon, {
8296
- className: lr,
8295
+ }), /* @__PURE__ */ n(se.Icon, {
8296
+ className: ir,
8297
8297
  children: /* @__PURE__ */ n(Ve, { size: "sm" })
8298
8298
  })]
8299
- }), /* @__PURE__ */ n(le.Portal, {
8300
- container: ce(),
8301
- children: /* @__PURE__ */ n(re, { children: /* @__PURE__ */ n(le.Positioner, {
8299
+ }), /* @__PURE__ */ n(se.Portal, {
8300
+ container: de(),
8301
+ children: /* @__PURE__ */ n(re, { children: /* @__PURE__ */ n(se.Positioner, {
8302
8302
  className: j2,
8303
8303
  sideOffset: 4,
8304
8304
  alignItemWithTrigger: !1,
8305
- children: /* @__PURE__ */ n(le.Popup, {
8305
+ children: /* @__PURE__ */ n(se.Popup, {
8306
8306
  className: Y2,
8307
- children: e.map((d) => /* @__PURE__ */ m(le.Item, {
8307
+ children: e.map((d) => /* @__PURE__ */ m(se.Item, {
8308
8308
  value: d.value,
8309
8309
  disabled: d.isDisabled,
8310
8310
  className: J2,
@@ -8312,14 +8312,14 @@ var em = ({ options: e, value: t, onChange: r, placeholder: a, isDisabled: o, ha
8312
8312
  d.icon,
8313
8313
  /* @__PURE__ */ m("span", {
8314
8314
  className: Q2,
8315
- children: [/* @__PURE__ */ n(le.ItemText, { children: d.label }), d.description !== void 0 && /* @__PURE__ */ n("span", {
8315
+ children: [/* @__PURE__ */ n(se.ItemText, { children: d.label }), d.description !== void 0 && /* @__PURE__ */ n("span", {
8316
8316
  className: "_1g5x15w8",
8317
8317
  children: d.description
8318
8318
  })]
8319
8319
  }),
8320
- /* @__PURE__ */ n(le.ItemIndicator, {
8321
- className: lr,
8322
- children: /* @__PURE__ */ n(va, { size: "sm" })
8320
+ /* @__PURE__ */ n(se.ItemIndicator, {
8321
+ className: ir,
8322
+ children: /* @__PURE__ */ n(ga, { size: "sm" })
8323
8323
  })
8324
8324
  ]
8325
8325
  }, d.value))
@@ -8335,25 +8335,25 @@ var cm = ({ value: e, onChange: t, onCommit: r, min: a, max: o, step: i, suffix:
8335
8335
  const h = Ce({
8336
8336
  ariaLabel: u,
8337
8337
  ariaLabelledBy: d
8338
- }, !1), p = dm(e, l, s), { commitUnlessHeldKey: g, gestureHandlers: v } = ft(r);
8338
+ }, !1), p = dm(e, l, s), { commitUnlessHeldKey: g, gestureHandlers: v } = vt(r);
8339
8339
  return /* @__PURE__ */ m("div", {
8340
8340
  className: rm,
8341
- children: [/* @__PURE__ */ n(se.Root, {
8341
+ children: [/* @__PURE__ */ n(ce.Root, {
8342
8342
  className: am,
8343
8343
  value: e,
8344
8344
  onValueChange: (f) => t(f),
8345
8345
  onValueCommitted: (f, S) => {
8346
- g(S.reason === go);
8346
+ g(S.reason === mo);
8347
8347
  },
8348
8348
  min: a,
8349
8349
  max: o,
8350
8350
  step: i,
8351
8351
  disabled: c,
8352
- children: /* @__PURE__ */ n(se.Control, {
8352
+ children: /* @__PURE__ */ n(ce.Control, {
8353
8353
  className: om,
8354
- children: /* @__PURE__ */ m(se.Track, {
8354
+ children: /* @__PURE__ */ m(ce.Track, {
8355
8355
  className: im,
8356
- children: [/* @__PURE__ */ n(se.Indicator, { className: lm }), /* @__PURE__ */ n(se.Thumb, {
8356
+ children: [/* @__PURE__ */ n(ce.Indicator, { className: lm }), /* @__PURE__ */ n(ce.Thumb, {
8357
8357
  className: sm,
8358
8358
  ...v,
8359
8359
  ...h
@@ -8371,13 +8371,13 @@ var cm = ({ value: e, onChange: t, onCommit: r, min: a, max: o, step: i, suffix:
8371
8371
  ariaLabel: a,
8372
8372
  ariaLabelledBy: o
8373
8373
  });
8374
- return /* @__PURE__ */ n(Pn.Root, {
8374
+ return /* @__PURE__ */ n(Ln.Root, {
8375
8375
  checked: e,
8376
8376
  onCheckedChange: (s) => t(s),
8377
8377
  disabled: r,
8378
8378
  className: um,
8379
8379
  ...l,
8380
- children: /* @__PURE__ */ n(Pn.Thumb, { className: hm })
8380
+ children: /* @__PURE__ */ n(Ln.Thumb, { className: hm })
8381
8381
  });
8382
8382
  }, mm = "uz3g761", gm = "tpcnun0 uz3g760", vm = ({ value: e, onChange: t, onCommit: r, placeholder: a, isDisabled: o, hasError: i, ariaLabel: l, ariaLabelledBy: s, id: c }) => {
8383
8383
  const u = Ce({
@@ -8385,7 +8385,7 @@ var cm = ({ value: e, onChange: t, onCommit: r, min: a, max: o, step: i, suffix:
8385
8385
  ariaLabel: l,
8386
8386
  ariaLabelledBy: s
8387
8387
  });
8388
- return /* @__PURE__ */ n(mo, {
8388
+ return /* @__PURE__ */ n(po, {
8389
8389
  className: gm,
8390
8390
  "data-error": i === !0,
8391
8391
  children: /* @__PURE__ */ n(Us, {
@@ -8405,8 +8405,8 @@ var ym = ({ options: e, value: t, onChange: r, onCommit: a, itemLayout: o = "inl
8405
8405
  id: c,
8406
8406
  ariaLabel: l,
8407
8407
  ariaLabelledBy: s
8408
- }), d = o === "stacked", { commitAfterChange: h, gestureHandlers: p } = ft(a);
8409
- return /* @__PURE__ */ n(ta, {
8408
+ }), d = o === "stacked", { commitAfterChange: h, gestureHandlers: p } = vt(a);
8409
+ return /* @__PURE__ */ n(ea, {
8410
8410
  className: fm,
8411
8411
  value: t,
8412
8412
  onValueChange: (g) => {
@@ -8415,21 +8415,21 @@ var ym = ({ options: e, value: t, onChange: r, onCommit: a, itemLayout: o = "inl
8415
8415
  ...p,
8416
8416
  disabled: i,
8417
8417
  ...u,
8418
- children: e.map((g) => /* @__PURE__ */ m(ea.Root, {
8418
+ children: e.map((g) => /* @__PURE__ */ m(Qr.Root, {
8419
8419
  value: g.value,
8420
8420
  disabled: g.isDisabled,
8421
- className: pe(bm, d && "cnu9yl2"),
8421
+ className: me(bm, d && "cnu9yl2"),
8422
8422
  "aria-label": Sm(g, d),
8423
- children: [g.icon, vo(g, d) && /* @__PURE__ */ n("span", {
8423
+ children: [g.icon, go(g, d) && /* @__PURE__ */ n("span", {
8424
8424
  className: "cnu9yl3",
8425
8425
  children: g.label
8426
8426
  })]
8427
8427
  }, g.value))
8428
8428
  });
8429
- }, vo = (e, t) => e.icon === void 0 || t, Sm = (e, t) => {
8430
- if (!vo(e, t))
8429
+ }, go = (e, t) => e.icon === void 0 || t, Sm = (e, t) => {
8430
+ if (!go(e, t))
8431
8431
  return e.label;
8432
- }, fo = {
8432
+ }, vo = {
8433
8433
  ToggleGroup: ym,
8434
8434
  Switch: pm,
8435
8435
  Slider: cm,
@@ -8438,28 +8438,28 @@ var ym = ({ options: e, value: t, onChange: r, onCommit: a, itemLayout: o = "inl
8438
8438
  TextField: vm,
8439
8439
  NumberField: G2,
8440
8440
  Select: em
8441
- }, bo = Ge(fo), Cm = ({ controls: e, children: t }) => {
8441
+ }, fo = Ge(vo), Cm = ({ controls: e, children: t }) => {
8442
8442
  const r = O(() => ({
8443
- ...fo,
8443
+ ...vo,
8444
8444
  ...e
8445
8445
  }), [e]);
8446
- return /* @__PURE__ */ n(bo.Provider, {
8446
+ return /* @__PURE__ */ n(fo.Provider, {
8447
8447
  value: r,
8448
8448
  children: t
8449
8449
  });
8450
- }, G = () => _e(bo), xm = "_12lhx9e0", yo = ({ children: e }) => /* @__PURE__ */ n("div", {
8450
+ }, G = () => _e(fo), xm = "_12lhx9e0", bo = ({ children: e }) => /* @__PURE__ */ n("div", {
8451
8451
  className: xm,
8452
8452
  children: e
8453
8453
  }), wm = "_139ohwv0", J = ({ children: e }) => /* @__PURE__ */ n("div", {
8454
8454
  className: wm,
8455
8455
  children: e
8456
- }), So = Ge(null), Tm = So.Provider, Am = () => {
8457
- const e = _e(So);
8456
+ }), yo = Ge(null), Tm = yo.Provider, Am = () => {
8457
+ const e = _e(yo);
8458
8458
  if (!e) throw new Error("A section must be rendered inside <EditorPanel.Root>.");
8459
8459
  return e;
8460
8460
  }, km = "_1jlczkt0", Lm = "data-graphy-editor-panel", Pm = {
8461
8461
  List: J,
8462
- Grid: yo
8462
+ Grid: bo
8463
8463
  };
8464
8464
  function Im(e) {
8465
8465
  if (e === void 0) return !1;
@@ -8467,7 +8467,7 @@ function Im(e) {
8467
8467
  return t.includes("_1ii3bsb0") || t.includes("_1ii3bsb1");
8468
8468
  }
8469
8469
  var Em = ({ handle: e, children: t, controls: r, defaultExpandedSection: a = void 0, className: o }) => {
8470
- const i = si(e), { themeClass: l, inlineVarsStyle: s } = qt(), [c, u] = ee(() => a ? [a] : []), d = O(() => ({
8470
+ const i = li(e), { themeClass: l, inlineVarsStyle: s } = qt(), [c, u] = ee(() => a ? [a] : []), d = O(() => ({
8471
8471
  expandSection: (h) => u([h]),
8472
8472
  collapseAllSections: () => u([])
8473
8473
  }), []);
@@ -8479,7 +8479,7 @@ var Em = ({ handle: e, children: t, controls: r, defaultExpandedSection: a = voi
8479
8479
  value: d,
8480
8480
  children: /* @__PURE__ */ n(Fe.Root, {
8481
8481
  [Lm]: "",
8482
- className: pe(km, o, { [l]: !Im(o) }),
8482
+ className: me(km, o, { [l]: !Im(o) }),
8483
8483
  style: s,
8484
8484
  value: c,
8485
8485
  onValueChange: (h) => u(h),
@@ -8488,25 +8488,25 @@ var Em = ({ handle: e, children: t, controls: r, defaultExpandedSection: a = voi
8488
8488
  })
8489
8489
  })
8490
8490
  });
8491
- }, Co = {
8491
+ }, So = {
8492
8492
  Root: Em,
8493
8493
  Controls: Pm
8494
- }, sr = {
8494
+ }, lr = {
8495
8495
  stack: "pr583x0",
8496
8496
  grid: "pr583x1"
8497
- }, cr = "pr583x2", Om = {
8497
+ }, sr = "pr583x2", Om = {
8498
8498
  plain: "pr583x4 pr583x3",
8499
8499
  withIcon: "pr583x5 pr583x3"
8500
8500
  }, w = ({ label: e, layout: t = "grid", icon: r, children: a }) => {
8501
8501
  const o = Te(), i = Te();
8502
8502
  return e === void 0 ? /* @__PURE__ */ n("div", {
8503
- className: sr[t],
8503
+ className: lr[t],
8504
8504
  children: /* @__PURE__ */ n("div", {
8505
- className: cr,
8505
+ className: sr,
8506
8506
  children: a
8507
8507
  })
8508
8508
  }) : /* @__PURE__ */ m("div", {
8509
- className: sr[t],
8509
+ className: lr[t],
8510
8510
  children: [/* @__PURE__ */ m("label", {
8511
8511
  id: o,
8512
8512
  htmlFor: i,
@@ -8516,8 +8516,8 @@ var Em = ({ handle: e, children: t, controls: r, defaultExpandedSection: a = voi
8516
8516
  children: r
8517
8517
  }), e]
8518
8518
  }), /* @__PURE__ */ n("div", {
8519
- className: cr,
8520
- children: /* @__PURE__ */ n(po, {
8519
+ className: sr,
8520
+ children: /* @__PURE__ */ n(ho, {
8521
8521
  labelId: o,
8522
8522
  controlId: i,
8523
8523
  children: a
@@ -8533,7 +8533,7 @@ var Em = ({ handle: e, children: t, controls: r, defaultExpandedSection: a = voi
8533
8533
  strokeLinejoin: "round",
8534
8534
  children: /* @__PURE__ */ n("path", { d: "m9 6 6 6-6 6" })
8535
8535
  })
8536
- }), hn = "_40zvwv0", pn = "_40zvwv1", Nm = "_40zvwv2", xo = "_40zvwv3", Rm = "_40zvwv4 _40zvwv3";
8536
+ }), hn = "_40zvwv0", pn = "_40zvwv1", Nm = "_40zvwv2", Co = "_40zvwv3", Rm = "_40zvwv4 _40zvwv3";
8537
8537
  var Dm = "_40zvwv6";
8538
8538
  var _m = "_40zvwv8", K = ({ title: e, layout: t = "fixed", preview: r, accessory: a, onOpenChange: o, children: i }) => t === "collapsible" ? /* @__PURE__ */ n(Fm, {
8539
8539
  title: e,
@@ -8551,7 +8551,7 @@ var _m = "_40zvwv8", K = ({ title: e, layout: t = "fixed", preview: r, accessory
8551
8551
  className: pn,
8552
8552
  children: [
8553
8553
  /* @__PURE__ */ n("span", {
8554
- className: xo,
8554
+ className: Co,
8555
8555
  children: e
8556
8556
  }),
8557
8557
  r !== void 0 && /* @__PURE__ */ n("span", {
@@ -8579,7 +8579,7 @@ var _m = "_40zvwv8", K = ({ title: e, layout: t = "fixed", preview: r, accessory
8579
8579
  }),
8580
8580
  /* @__PURE__ */ n("span", {
8581
8581
  className: Dm,
8582
- children: /* @__PURE__ */ n(po, {
8582
+ children: /* @__PURE__ */ n(ho, {
8583
8583
  labelId: a,
8584
8584
  controlId: o,
8585
8585
  children: r
@@ -8607,7 +8607,7 @@ var _m = "_40zvwv8", K = ({ title: e, layout: t = "fixed", preview: r, accessory
8607
8607
  "aria-label": i("editor.accessibility.toggleSection", { title: e })
8608
8608
  }),
8609
8609
  /* @__PURE__ */ n("span", {
8610
- className: xo,
8610
+ className: Co,
8611
8611
  children: e
8612
8612
  }),
8613
8613
  t !== void 0 && /* @__PURE__ */ n("span", {
@@ -8655,96 +8655,82 @@ var _m = "_40zvwv8", K = ({ title: e, layout: t = "fixed", preview: r, accessory
8655
8655
  }, Vm = {
8656
8656
  x: "editor.axesPanel.mainAxisSection.xAxis",
8657
8657
  y: "editor.axesPanel.mainAxisSection.yAxis"
8658
- }, dr = ({ axis: e, title: t, layout: r = "collapsible", preview: a }) => {
8658
+ }, cr = ({ axis: e, title: t, layout: r = "collapsible", preview: a }) => {
8659
8659
  const o = H(), i = W(o), l = I(), { NumberField: s, Switch: c, TextField: u, ToggleGroup: d } = G();
8660
8660
  if (!i) return null;
8661
8661
  const h = i.coordSystem.type === "polar" ? i.coordSystem.axisMapping[e].geometry : "linear", p = i.config.axes[e], g = i.scales[e], v = g?.spec, f = v?.scaleType === "continuous" ? v : void 0;
8662
8662
  if (h === "circular" || h === "radial" && f === void 0) return null;
8663
- const S = v !== void 0 && "reverse" in v ? v : void 0, L = v?.scaleType === "continuous" || v?.scaleType === "datetime", x = e === "y" && f !== void 0 && i.layers.some((k) => k.yScaleType === "primary" && k.geom === "bar"), P = f?.transform === "log", C = f?.domainMax ?? null, M = $m(f), A = (k, ve) => k.map((Ue) => ({
8663
+ const S = v !== void 0 && "reverse" in v ? v : void 0, k = v?.scaleType === "continuous" || v?.scaleType === "datetime", x = f !== void 0 && is(i, e), L = f?.transform === "log", C = f?.domainMax ?? null, M = $m(f), A = (P, le) => P.map((Ue) => ({
8664
8664
  value: Ue,
8665
- label: ve(Ue)
8666
- })), E = i.guides.axes.find((k) => k.scaleAestheticKey === e)?.position, R = Hm[E === "bottom" || E === "top" || E === void 0 && e === "x" ? "horizontal" : "vertical"], D = e === "y" ? cs(i.spec) : null, y = D === null ? void 0 : Pe(i.spec.layers, D), b = i.guides.legends.drawn.some((k) => R.some((ve) => ve === k.position)), U = R.map((k) => ({
8667
- value: k,
8668
- label: l(Gm[k])
8669
- })), te = A(["auto", "edges"], (k) => l(k === "edges" ? "editor.axesPanel.labelMode.edges" : "editor.axesPanel.labelMode.auto")), ue = A(["linear", "log"], (k) => l(k === "log" ? "editor.axesPanel.scale.log" : "editor.axesPanel.scale.auto")), Lo = A([
8665
+ label: le(Ue)
8666
+ })), E = i.guides.axes.find((P) => P.scaleAestheticKey === e)?.position, R = Hm[E === "bottom" || E === "top" || E === void 0 && e === "x" ? "horizontal" : "vertical"], D = e === "y" ? cs(i.spec) : null, y = D === null ? void 0 : Pe(i.spec.layers, D), b = i.guides.legends.drawn.some((P) => R.some((le) => le === P.position)), U = R.map((P) => ({
8667
+ value: P,
8668
+ label: l(Gm[P])
8669
+ })), te = A(["auto", "edges"], (P) => l(P === "edges" ? "editor.axesPanel.labelMode.edges" : "editor.axesPanel.labelMode.auto")), he = A(["linear", "log"], (P) => l(P === "log" ? "editor.axesPanel.scale.log" : "editor.axesPanel.scale.auto")), ko = A([
8670
8670
  "auto",
8671
8671
  "zero",
8672
8672
  "custom"
8673
- ], (k) => l(k === "zero" ? "editor.axesPanel.startFrom.zero" : k === "custom" ? "editor.axesPanel.startFrom.custom" : "editor.axesPanel.startFrom.auto")), Po = A(["auto", "custom"], (k) => l(k === "custom" ? "editor.axesPanel.endAt.custom" : "editor.axesPanel.endAt.auto")), Io = A(["no", "yes"], (k) => l(k === "yes" ? "editor.axesPanel.yesNo.yes" : "editor.axesPanel.yesNo.no")), Eo = A(["single", "double"], (k) => l(k === "double" ? "editor.axesPanel.axisCount.double" : "editor.axesPanel.axisCount.single")), Oo = (k) => {
8674
- o.commands.dispatch(new Xi({
8673
+ ], (P) => l(P === "zero" ? "editor.axesPanel.startFrom.zero" : P === "custom" ? "editor.axesPanel.startFrom.custom" : "editor.axesPanel.startFrom.auto")), Lo = A(["auto", "custom"], (P) => l(P === "custom" ? "editor.axesPanel.endAt.custom" : "editor.axesPanel.endAt.auto")), Po = A(["no", "yes"], (P) => l(P === "yes" ? "editor.axesPanel.yesNo.yes" : "editor.axesPanel.yesNo.no")), Io = A(["single", "double"], (P) => l(P === "double" ? "editor.axesPanel.axisCount.double" : "editor.axesPanel.axisCount.single")), Eo = (P) => {
8674
+ o.commands.dispatch(new qi({
8675
8675
  axis: e,
8676
- isVisible: k
8676
+ isVisible: P
8677
8677
  }));
8678
- }, Mo = (k) => {
8679
- o.commands.dispatch(new Wi({
8678
+ }, Oo = (P) => {
8679
+ o.commands.dispatch(new $i({
8680
8680
  axis: e,
8681
- label: k === "" ? null : k
8681
+ label: P === "" ? null : P
8682
8682
  }), { transient: !0 });
8683
- }, No = (k) => {
8684
- o.commands.dispatch(new qi({
8683
+ }, Mo = (P) => {
8684
+ o.commands.dispatch(new Ki({
8685
8685
  axis: e,
8686
- isVisible: k
8686
+ isVisible: P
8687
8687
  }));
8688
- }, Ro = (k) => {
8689
- o.commands.dispatch(new Ki({
8688
+ }, No = (P) => {
8689
+ o.commands.dispatch(new Ui({
8690
8690
  axis: e,
8691
- tickMode: k === "edges" ? "edges" : "auto"
8691
+ tickMode: P === "edges" ? "edges" : "auto"
8692
8692
  }));
8693
- }, Do = (k) => {
8694
- o.commands.dispatch(new Sl({
8693
+ }, Ro = (P) => {
8694
+ o.commands.dispatch(new yl({
8695
8695
  scaledAesthetic: e,
8696
- reverse: k === "yes"
8696
+ reverse: P === "yes"
8697
8697
  }));
8698
- }, _o = (k) => {
8699
- o.commands.dispatch(new Cl({
8698
+ }, Do = (P) => {
8699
+ o.commands.dispatch(new Sl({
8700
8700
  scaledAesthetic: e,
8701
- transform: k === "log" ? "log" : "linear"
8701
+ transform: P === "log" ? "log" : "linear"
8702
8702
  }));
8703
- }, vn = (k) => {
8704
- o.commands.dispatch(new Ke({
8703
+ }, vn = (P) => {
8704
+ o.commands.dispatch(new xt({
8705
8705
  scaledAesthetic: e,
8706
- ...k
8706
+ ...P
8707
8707
  }), { transient: !0 });
8708
- }, zo = (k) => {
8709
- k !== null && vn({ domainMin: k });
8710
- }, Fo = (k) => {
8711
- k !== null && vn({ domainMax: k });
8712
- }, Bo = (k) => {
8713
- if (f) {
8714
- if (k === "custom") {
8715
- f.zero && o.commands.dispatch(new An({
8716
- scaledAesthetic: e,
8717
- zero: !1
8718
- })), o.commands.dispatch(new Ke({
8719
- scaledAesthetic: e,
8720
- domainMin: ur(g?.domain, "start")
8721
- }));
8722
- return;
8723
- }
8724
- f.domainMin !== null && o.commands.dispatch(new Ke({
8725
- scaledAesthetic: e,
8726
- domainMin: null
8727
- })), o.commands.dispatch(new An({
8728
- scaledAesthetic: e,
8729
- zero: k === "zero"
8730
- }));
8731
- }
8732
- }, Ho = (k) => {
8733
- const ve = k === "custom" ? ur(g?.domain, "end") : null;
8734
- o.commands.dispatch(new Ke({
8708
+ }, _o = (P) => {
8709
+ P !== null && vn({ domainMin: P });
8710
+ }, zo = (P) => {
8711
+ P !== null && vn({ domainMax: P });
8712
+ }, Fo = (P) => {
8713
+ const le = P === "auto" ? null : P === "zero" ? 0 : dr(g?.domain, "start");
8714
+ o.commands.dispatch(new xt({
8735
8715
  scaledAesthetic: e,
8736
- domainMax: ve
8716
+ domainMin: le
8737
8717
  }));
8738
- }, Go = (k) => {
8739
- y !== void 0 && o.commands.dispatch(new ll({
8718
+ }, Bo = (P) => {
8719
+ const le = P === "custom" ? dr(g?.domain, "end") : null;
8720
+ o.commands.dispatch(new xt({
8721
+ scaledAesthetic: e,
8722
+ domainMax: le
8723
+ }));
8724
+ }, Ho = (P) => {
8725
+ y !== void 0 && o.commands.dispatch(new il({
8740
8726
  layerId: y.id,
8741
- yScaleType: k === "double" ? "secondary" : "primary"
8727
+ yScaleType: P === "double" ? "secondary" : "primary"
8742
8728
  }));
8743
- }, Vo = (k) => {
8744
- const ve = R.find((Ue) => Ue === k);
8745
- ve && o.commands.dispatch(new Ui({
8729
+ }, Go = (P) => {
8730
+ const le = R.find((Ue) => Ue === P);
8731
+ le && o.commands.dispatch(new Wi({
8746
8732
  axis: e,
8747
- position: ve
8733
+ position: le
8748
8734
  }));
8749
8735
  };
8750
8736
  return /* @__PURE__ */ n(K, {
@@ -8756,37 +8742,37 @@ var _m = "_40zvwv8", K = ({ title: e, layout: t = "fixed", preview: r, accessory
8756
8742
  label: l("editor.axesPanel.controls.visible"),
8757
8743
  children: /* @__PURE__ */ n(c, {
8758
8744
  isChecked: p.isVisible,
8759
- onChange: Oo
8745
+ onChange: Eo
8760
8746
  })
8761
8747
  }),
8762
8748
  y !== void 0 && /* @__PURE__ */ n(w, {
8763
8749
  label: l("editor.axesPanel.controls.numberOfAxes"),
8764
8750
  children: /* @__PURE__ */ n(d, {
8765
8751
  value: y.yScaleType === "secondary" ? "double" : "single",
8766
- options: Eo,
8767
- onChange: Go
8752
+ options: Io,
8753
+ onChange: Ho
8768
8754
  })
8769
8755
  }),
8770
8756
  h === "linear" && /* @__PURE__ */ m(Y, { children: [/* @__PURE__ */ n(w, {
8771
8757
  label: l("editor.axesPanel.controls.title"),
8772
8758
  children: /* @__PURE__ */ n(u, {
8773
8759
  value: p.label ?? "",
8774
- onChange: Mo,
8760
+ onChange: Oo,
8775
8761
  onCommit: o.commands.commit
8776
8762
  })
8777
8763
  }), /* @__PURE__ */ n(w, {
8778
8764
  label: l("editor.axesPanel.controls.ticks"),
8779
8765
  children: /* @__PURE__ */ n(c, {
8780
8766
  isChecked: p.ticks.isVisible,
8781
- onChange: No
8767
+ onChange: Mo
8782
8768
  })
8783
8769
  })] }),
8784
- L && /* @__PURE__ */ n(w, {
8770
+ k && /* @__PURE__ */ n(w, {
8785
8771
  label: l("editor.axesPanel.controls.labels"),
8786
8772
  children: /* @__PURE__ */ n(d, {
8787
8773
  value: p.ticks.mode,
8788
8774
  options: te,
8789
- onChange: Ro
8775
+ onChange: No
8790
8776
  })
8791
8777
  }),
8792
8778
  f && h === "linear" && !b && /* @__PURE__ */ n(w, {
@@ -8794,38 +8780,38 @@ var _m = "_40zvwv8", K = ({ title: e, layout: t = "fixed", preview: r, accessory
8794
8780
  children: /* @__PURE__ */ n(d, {
8795
8781
  value: E ?? p.position,
8796
8782
  options: U,
8797
- onChange: Vo
8783
+ onChange: Go
8798
8784
  })
8799
8785
  }),
8800
8786
  S !== void 0 && /* @__PURE__ */ n(w, {
8801
8787
  label: l("editor.axesPanel.controls.reverse"),
8802
8788
  children: /* @__PURE__ */ n(d, {
8803
8789
  value: S.reverse === !0 ? "yes" : "no",
8804
- options: Io,
8805
- onChange: Do
8790
+ options: Po,
8791
+ onChange: Ro
8806
8792
  })
8807
8793
  }),
8808
8794
  f && !x && /* @__PURE__ */ n(w, {
8809
8795
  label: l("editor.axesPanel.controls.scale"),
8810
8796
  children: /* @__PURE__ */ n(d, {
8811
- value: P ? "log" : "linear",
8812
- options: ue,
8813
- onChange: _o
8797
+ value: L ? "log" : "linear",
8798
+ options: he,
8799
+ onChange: Do
8814
8800
  })
8815
8801
  }),
8816
- f && !P && /* @__PURE__ */ m(Y, { children: [
8802
+ f && !L && /* @__PURE__ */ m(Y, { children: [
8817
8803
  !x && /* @__PURE__ */ m(Y, { children: [/* @__PURE__ */ n(w, {
8818
8804
  label: l("editor.axesPanel.controls.startFrom"),
8819
8805
  children: /* @__PURE__ */ n(d, {
8820
8806
  value: M,
8821
- options: Lo,
8822
- onChange: Bo
8807
+ options: ko,
8808
+ onChange: Fo
8823
8809
  })
8824
- }), M === "custom" && /* @__PURE__ */ n(w, {
8810
+ }), M !== "auto" && /* @__PURE__ */ n(w, {
8825
8811
  label: l("editor.axesPanel.controls.value"),
8826
8812
  children: /* @__PURE__ */ n(s, {
8827
8813
  value: f.domainMin ?? null,
8828
- onChange: zo,
8814
+ onChange: _o,
8829
8815
  onCommit: o.commands.commit
8830
8816
  })
8831
8817
  })] }),
@@ -8833,22 +8819,25 @@ var _m = "_40zvwv8", K = ({ title: e, layout: t = "fixed", preview: r, accessory
8833
8819
  label: l("editor.axesPanel.controls.endAt"),
8834
8820
  children: /* @__PURE__ */ n(d, {
8835
8821
  value: C === null ? "auto" : "custom",
8836
- options: Po,
8837
- onChange: Ho
8822
+ options: Lo,
8823
+ onChange: Bo
8838
8824
  })
8839
8825
  }),
8840
8826
  C !== null && /* @__PURE__ */ n(w, {
8841
8827
  label: l("editor.axesPanel.controls.value"),
8842
8828
  children: /* @__PURE__ */ n(s, {
8843
8829
  value: C,
8844
- onChange: Fo,
8830
+ onChange: zo,
8845
8831
  onCommit: o.commands.commit
8846
8832
  })
8847
8833
  })
8848
8834
  ] })
8849
8835
  ] })
8850
8836
  });
8851
- }, $m = (e) => e === void 0 ? "auto" : e.domainMin !== null && e.domainMin !== void 0 ? "custom" : e.zero === !0 ? "zero" : "auto", ur = (e, t) => {
8837
+ }, $m = (e) => {
8838
+ const t = e?.domainMin ?? null;
8839
+ return t === null ? "auto" : t === 0 ? "zero" : "custom";
8840
+ }, dr = (e, t) => {
8852
8841
  const r = t === "start" ? e?.[0] : e?.[e.length - 1];
8853
8842
  return typeof r == "number" ? r : 0;
8854
8843
  }, mn = ({ value: e, onChange: t }) => {
@@ -8866,12 +8855,12 @@ var _m = "_40zvwv8", K = ({ title: e, layout: t = "fixed", preview: r, accessory
8866
8855
  const a = H(), o = W(a), i = I(), { Switch: l } = G();
8867
8856
  if (!o) return null;
8868
8857
  const s = o.config.content, c = (d) => {
8869
- a.commands.dispatch(new ct({
8858
+ a.commands.dispatch(new st({
8870
8859
  part: "caption",
8871
8860
  isVisible: d
8872
8861
  }));
8873
8862
  }, u = (d) => {
8874
- a.commands.dispatch(new Dr({ caption: d }), { transient: !0 });
8863
+ a.commands.dispatch(new Rr({ caption: d }), { transient: !0 });
8875
8864
  };
8876
8865
  return /* @__PURE__ */ n(K, {
8877
8866
  title: e ?? i("editor.elementsPanel.footerSection.caption"),
@@ -8888,11 +8877,11 @@ var _m = "_40zvwv8", K = ({ title: e, layout: t = "fixed", preview: r, accessory
8888
8877
  onChange: u
8889
8878
  })] })
8890
8879
  });
8891
- }, hr = /^[a-z][a-z\d+.-]*:/i, Um = {}, Km = ({ title: e, layout: t = "collapsible", preview: r }) => {
8880
+ }, ur = /^[a-z][a-z\d+.-]*:/i, Um = {}, Km = ({ title: e, layout: t = "collapsible", preview: r }) => {
8892
8881
  const a = H(), o = W(a), i = I(), { Switch: l } = G();
8893
8882
  if (!o) return null;
8894
8883
  const s = o.config.content, c = (u) => {
8895
- a.commands.dispatch(new ct({
8884
+ a.commands.dispatch(new st({
8896
8885
  part: "source",
8897
8886
  isVisible: u
8898
8887
  }));
@@ -8912,10 +8901,10 @@ var _m = "_40zvwv8", K = ({ title: e, layout: t = "fixed", preview: r, accessory
8912
8901
  }, qm = ({ source: e }) => {
8913
8902
  const t = H(), r = I(), { TextField: a } = G(), o = (c) => {
8914
8903
  const u = (c.label ?? "") !== "" || (c.url ?? "") !== "";
8915
- t.commands.dispatch(new Yi({ source: u ? c : null }), { transient: !0 });
8904
+ t.commands.dispatch(new ji({ source: u ? c : null }), { transient: !0 });
8916
8905
  }, i = () => {
8917
8906
  const c = e.url ?? "";
8918
- c !== "" && !hr.test(c) && o({
8907
+ c !== "" && !ur.test(c) && o({
8919
8908
  ...e,
8920
8909
  url: `https://${c}`
8921
8910
  }), t.commands.commit();
@@ -8932,7 +8921,7 @@ var _m = "_40zvwv8", K = ({ title: e, layout: t = "fixed", preview: r, accessory
8932
8921
  value: e.url ?? "",
8933
8922
  onChange: l,
8934
8923
  onCommit: i,
8935
- hasError: hr.test(e.url ?? "") && !is(e.url)
8924
+ hasError: ur.test(e.url ?? "") && !os(e.url)
8936
8925
  })
8937
8926
  }), /* @__PURE__ */ n(w, {
8938
8927
  label: r("editor.elementsPanel.sourceSection.name"),
@@ -8946,12 +8935,12 @@ var _m = "_40zvwv8", K = ({ title: e, layout: t = "fixed", preview: r, accessory
8946
8935
  const a = H(), o = W(a), i = I(), { Switch: l } = G();
8947
8936
  if (!o) return null;
8948
8937
  const s = o.config.content, c = (d) => {
8949
- a.commands.dispatch(new ct({
8938
+ a.commands.dispatch(new st({
8950
8939
  part: "subtitle",
8951
8940
  isVisible: d
8952
8941
  }));
8953
8942
  }, u = (d) => {
8954
- a.commands.dispatch(new _r({ subtitle: d }), { transient: !0 });
8943
+ a.commands.dispatch(new Dr({ subtitle: d }), { transient: !0 });
8955
8944
  };
8956
8945
  return /* @__PURE__ */ n(K, {
8957
8946
  title: e ?? i("editor.elementsPanel.headerSection.subtitle"),
@@ -8968,11 +8957,11 @@ var _m = "_40zvwv8", K = ({ title: e, layout: t = "fixed", preview: r, accessory
8968
8957
  onChange: u
8969
8958
  })] })
8970
8959
  });
8971
- }, bt = (e) => {
8972
- const { colorScheme: t } = qt(), r = O(() => Wl({ colorScheme: t }), [t]);
8960
+ }, ft = (e) => {
8961
+ const { colorScheme: t } = qt(), r = O(() => $l({ colorScheme: t }), [t]);
8973
8962
  return O(() => e === null ? null : r.readers(e), [e, r]);
8974
8963
  }, gn = (e, t, r) => {
8975
- const a = bt(e);
8964
+ const a = ft(e);
8976
8965
  return O(() => {
8977
8966
  if (a === null || e === null || t === null) return null;
8978
8967
  const o = Pe(e.layers, t);
@@ -8995,7 +8984,7 @@ var _m = "_40zvwv8", K = ({ title: e, layout: t = "fixed", preview: r, accessory
8995
8984
  3,
8996
8985
  4
8997
8986
  ], Zm = Ft.length / 2, jm = { select: { target: "graph" } }, Ym = ({ title: e, layout: t = "collapsible", preview: r }) => {
8998
- const a = H(), o = W(a), i = I(), { RadioGrid: l } = G(), s = bt(o);
8987
+ const a = H(), o = W(a), i = I(), { RadioGrid: l } = G(), s = ft(o);
8999
8988
  if (!o || !s) return null;
9000
8989
  const c = s.graph().get("textScale"), u = (p) => i("editor.elementsPanel.textSizeSection.scaleFormat", { value: `${p}` }), d = Ft.map((p) => ({
9001
8990
  value: `${p}`,
@@ -9031,12 +9020,12 @@ var _m = "_40zvwv8", K = ({ title: e, layout: t = "fixed", preview: r, accessory
9031
9020
  const a = H(), o = W(a), i = I(), { Switch: l } = G();
9032
9021
  if (!o) return null;
9033
9022
  const s = o.config.content, c = (d) => {
9034
- a.commands.dispatch(new ct({
9023
+ a.commands.dispatch(new st({
9035
9024
  part: "title",
9036
9025
  isVisible: d
9037
9026
  }));
9038
9027
  }, u = (d) => {
9039
- a.commands.dispatch(new zr({ title: d }), { transient: !0 });
9028
+ a.commands.dispatch(new _r({ title: d }), { transient: !0 });
9040
9029
  };
9041
9030
  return /* @__PURE__ */ n(K, {
9042
9031
  title: e ?? i("editor.elementsPanel.headerSection.toggleTitle"),
@@ -9053,7 +9042,7 @@ var _m = "_40zvwv8", K = ({ title: e, layout: t = "fixed", preview: r, accessory
9053
9042
  onChange: u
9054
9043
  })] })
9055
9044
  });
9056
- }, m5 = ({ children: e, ...t }) => /* @__PURE__ */ n(Co.Root, {
9045
+ }, m5 = ({ children: e, ...t }) => /* @__PURE__ */ n(So.Root, {
9057
9046
  ...t,
9058
9047
  children: e ?? /* @__PURE__ */ m(Y, { children: [
9059
9048
  /* @__PURE__ */ n(Jm, {}),
@@ -9062,13 +9051,13 @@ var _m = "_40zvwv8", K = ({ title: e, layout: t = "fixed", preview: r, accessory
9062
9051
  /* @__PURE__ */ n(Km, {}),
9063
9052
  /* @__PURE__ */ n(Ym, {})
9064
9053
  ] })
9065
- }), g5 = ({ children: e, ...t }) => /* @__PURE__ */ n(Co.Root, {
9054
+ }), g5 = ({ children: e, ...t }) => /* @__PURE__ */ n(So.Root, {
9066
9055
  ...t,
9067
- children: e ?? /* @__PURE__ */ m(Y, { children: [/* @__PURE__ */ n(dr, { axis: "x" }), /* @__PURE__ */ n(dr, { axis: "y" })] })
9068
- }), yt = (e) => `${e}px`, wo = (e) => `${Math.round(e * 100)}%`, Qm = (e) => `${e}°`, eg = 24, tg = { select: { target: "graph" } }, pr = ["dim", "desaturate"], v5 = ({ title: e, layout: t = "collapsible", preview: r }) => {
9069
- const a = H(), o = W(a), i = I(), { Slider: l, ToggleGroup: s } = G(), c = bt(o);
9056
+ children: e ?? /* @__PURE__ */ m(Y, { children: [/* @__PURE__ */ n(cr, { axis: "x" }), /* @__PURE__ */ n(cr, { axis: "y" })] })
9057
+ }), bt = (e) => `${e}px`, xo = (e) => `${Math.round(e * 100)}%`, Qm = (e) => `${e}°`, eg = 24, tg = { select: { target: "graph" } }, hr = ["dim", "desaturate"], v5 = ({ title: e, layout: t = "collapsible", preview: r }) => {
9058
+ const a = H(), o = W(a), i = I(), { Slider: l, ToggleGroup: s } = G(), c = ft(o);
9070
9059
  if (!o || !c) return null;
9071
- const u = c.graph().get("cornerRadius"), d = hs(o.spec), h = pr.map((v) => ({
9060
+ const u = c.graph().get("cornerRadius"), d = hs(o.spec), h = hr.map((v) => ({
9072
9061
  value: v,
9073
9062
  label: i(v === "dim" ? "editor.highlighting.highlightStyle.tint" : "editor.highlighting.highlightStyle.gray")
9074
9063
  })), p = (v) => {
@@ -9084,8 +9073,8 @@ var _m = "_40zvwv8", K = ({ title: e, layout: t = "fixed", preview: r, accessory
9084
9073
  }
9085
9074
  }), { transient: !0 });
9086
9075
  }, g = (v) => {
9087
- const f = pr.find((S) => S === v);
9088
- f && a.commands.dispatch(new il({ dimStyle: f }));
9076
+ const f = hr.find((S) => S === v);
9077
+ f && a.commands.dispatch(new ol({ dimStyle: f }));
9089
9078
  };
9090
9079
  return /* @__PURE__ */ n(K, {
9091
9080
  title: e ?? i("editor.colorPanel.appearanceSection.title"),
@@ -9098,7 +9087,7 @@ var _m = "_40zvwv8", K = ({ title: e, layout: t = "fixed", preview: r, accessory
9098
9087
  min: 0,
9099
9088
  max: eg,
9100
9089
  step: 1,
9101
- formatValue: yt,
9090
+ formatValue: bt,
9102
9091
  onChange: p,
9103
9092
  onCommit: a.commands.commit
9104
9093
  })
@@ -9112,16 +9101,16 @@ var _m = "_40zvwv8", K = ({ title: e, layout: t = "fixed", preview: r, accessory
9112
9101
  })] })
9113
9102
  });
9114
9103
  }, ng = 0.05, f5 = ({ title: e, layout: t = "collapsible", preview: r }) => {
9115
- const a = H(), o = W(a), i = I(), { Slider: l, ToggleGroup: s } = G(), c = o ? Vr(o.spec.layers, "bar") : void 0, u = gn(o, c?.id ?? null, "bar");
9104
+ const a = H(), o = W(a), i = I(), { Slider: l, ToggleGroup: s } = G(), c = o ? Gr(o.spec.layers, "bar") : void 0, u = gn(o, c?.id ?? null, "bar");
9116
9105
  if (!o || !c || o.coordSystem.type === "polar" && o.coordSystem.bandAxis === null) return null;
9117
9106
  const d = (v) => {
9118
- a.commands.dispatch(new ji({
9107
+ a.commands.dispatch(new Zi({
9119
9108
  layerId: c.id,
9120
9109
  width: v
9121
9110
  }), { transient: !0 });
9122
9111
  }, h = (v) => {
9123
9112
  const f = yn.find((S) => S === v);
9124
- f && a.commands.dispatch(new Zi({
9113
+ f && a.commands.dispatch(new Xi({
9125
9114
  layerId: c.id,
9126
9115
  borderRadius: f
9127
9116
  }));
@@ -9137,10 +9126,10 @@ var _m = "_40zvwv8", K = ({ title: e, layout: t = "fixed", preview: r, accessory
9137
9126
  label: i("editor.graphPanel.barSection.thickness"),
9138
9127
  children: /* @__PURE__ */ n(l, {
9139
9128
  value: g,
9140
- min: Hi,
9141
- max: Bi,
9129
+ min: Bi,
9130
+ max: Fi,
9142
9131
  step: ng,
9143
- formatValue: wo,
9132
+ formatValue: xo,
9144
9133
  onChange: d,
9145
9134
  onCommit: a.commands.commit
9146
9135
  })
@@ -9148,13 +9137,13 @@ var _m = "_40zvwv8", K = ({ title: e, layout: t = "fixed", preview: r, accessory
9148
9137
  label: i("editor.graphPanel.barSection.rounding"),
9149
9138
  layout: "stack",
9150
9139
  children: /* @__PURE__ */ n(s, {
9151
- value: u?.get("borderRadius") ?? Di,
9140
+ value: u?.get("borderRadius") ?? Ri,
9152
9141
  options: p,
9153
9142
  onChange: h
9154
9143
  })
9155
9144
  })] })
9156
9145
  });
9157
- }, St = ({ children: e }) => {
9146
+ }, yt = ({ children: e }) => {
9158
9147
  const t = Te();
9159
9148
  return /* @__PURE__ */ m(Y, { children: [/* @__PURE__ */ n("g", {
9160
9149
  filter: `url(#${t})`,
@@ -9179,11 +9168,11 @@ var _m = "_40zvwv8", K = ({ title: e, layout: t = "fixed", preview: r, accessory
9179
9168
  floodOpacity: "0.16"
9180
9169
  })]
9181
9170
  }) })] });
9182
- }, Ct = "qdaoth0", rg = (e) => /* @__PURE__ */ m(T, {
9171
+ }, St = "qdaoth0", rg = (e) => /* @__PURE__ */ m(T, {
9183
9172
  viewBox: "0 0 31 33",
9184
9173
  ...e,
9185
- children: [/* @__PURE__ */ n(St, { children: /* @__PURE__ */ n("path", {
9186
- className: Ct,
9174
+ children: [/* @__PURE__ */ n(yt, { children: /* @__PURE__ */ n("path", {
9175
+ className: St,
9187
9176
  fillRule: "evenodd",
9188
9177
  clipRule: "evenodd",
9189
9178
  d: "M25.7417 6.23664C25.7417 6.09417 25.7076 5.95967 25.6471 5.84086C25.5633 5.67624 25.4288 5.54173 25.2641 5.4579C25.1453 5.39739 25.0108 5.36328 24.8684 5.36328H12.0591C11.5767 5.36328 11.1857 5.7543 11.1857 6.23664C11.1857 6.71899 11.5767 7.11 12.0591 7.11H22.7599L5.61908 24.2508C5.27801 24.5919 5.27801 25.1448 5.61908 25.4859C5.96015 25.827 6.51313 25.827 6.8542 25.4859L23.995 8.34513V19.0459C23.995 19.5283 24.386 19.9193 24.8684 19.9193C25.3507 19.9193 25.7417 19.5283 25.7417 19.0459V6.23664ZM20.995 15.5878V19.0459C20.995 21.1851 22.7292 22.9193 24.8684 22.9193C27.0076 22.9193 28.7417 21.1851 28.7417 19.0459V6.23664C28.7417 4.09744 27.0076 2.36328 24.8684 2.36328H12.0591C9.91985 2.36328 8.18569 4.09744 8.18569 6.23664C8.18569 8.37584 9.91985 10.11 12.0591 10.11H15.5172L3.49777 22.1295C1.98512 23.6421 1.98513 26.0946 3.49776 27.6072C5.0104 29.1199 7.46288 29.1199 8.97552 27.6072L20.995 15.5878Z"
@@ -9194,8 +9183,8 @@ var _m = "_40zvwv8", K = ({ title: e, layout: t = "fixed", preview: r, accessory
9194
9183
  }), ag = (e) => /* @__PURE__ */ n(T, {
9195
9184
  viewBox: "0 0 32 32",
9196
9185
  ...e,
9197
- children: /* @__PURE__ */ m(St, { children: [/* @__PURE__ */ n("path", {
9198
- className: Ct,
9186
+ children: /* @__PURE__ */ m(yt, { children: [/* @__PURE__ */ n("path", {
9187
+ className: St,
9199
9188
  d: "M11 21H21V11H11V21ZM29 23C29 26.3137 26.3137 29 23 29H9C5.68629 29 3 26.3137 3 23V9C3 5.68629 5.68629 3 9 3H23C26.3137 3 29 5.68629 29 9V23Z"
9200
9189
  }), /* @__PURE__ */ n("path", {
9201
9190
  fill: "currentColor",
@@ -9204,8 +9193,8 @@ var _m = "_40zvwv8", K = ({ title: e, layout: t = "fixed", preview: r, accessory
9204
9193
  }), og = (e) => /* @__PURE__ */ m(T, {
9205
9194
  viewBox: "0 0 32 33",
9206
9195
  ...e,
9207
- children: [/* @__PURE__ */ n(St, { children: /* @__PURE__ */ n("path", {
9208
- className: Ct,
9196
+ children: [/* @__PURE__ */ n(yt, { children: /* @__PURE__ */ n("path", {
9197
+ className: St,
9209
9198
  fillRule: "evenodd",
9210
9199
  clipRule: "evenodd",
9211
9200
  d: "M4.89961 14.7968C3.08522 13.5116 1.89961 11.3966 1.89961 9.00039C1.89961 5.07917 5.07839 1.90039 8.99961 1.90039C10.7798 1.90039 12.4069 2.55553 13.6531 3.63785C14.3179 3.17306 15.1269 2.90039 15.9996 2.90039L22.9996 2.90039C25.264 2.90039 27.0996 4.73602 27.0996 7.00039L27.0996 9.7243C27.5717 9.92414 28.014 10.2165 28.3987 10.6013C29.9999 12.2024 29.9999 14.7984 28.3987 16.3995L27.9182 16.8801C29.2628 18.172 30.0996 19.9885 30.0996 22.0004C30.0996 25.9216 26.9208 29.1004 22.9996 29.1004C21.2195 29.1004 19.5923 28.4453 18.3461 27.3629C17.6813 27.8277 16.8723 28.1004 15.9996 28.1004L8.99961 28.1004C6.73524 28.1004 4.89961 26.2648 4.89961 24.0004L4.89961 14.7968Z"
@@ -9218,8 +9207,8 @@ var _m = "_40zvwv8", K = ({ title: e, layout: t = "fixed", preview: r, accessory
9218
9207
  }), ig = (e) => /* @__PURE__ */ m(T, {
9219
9208
  viewBox: "0 0 32 33",
9220
9209
  ...e,
9221
- children: [/* @__PURE__ */ n(St, { children: /* @__PURE__ */ n("path", {
9222
- className: Ct,
9210
+ children: [/* @__PURE__ */ n(yt, { children: /* @__PURE__ */ n("path", {
9211
+ className: St,
9223
9212
  d: "M20.7271 2C21.4372 2 21.7114 2.00463 22.0841 2.03504C22.8228 2.0954 23.4839 2.25122 24.1592 2.59527C25.1865 3.1188 26.0219 3.9541 26.5458 4.98208C26.8896 5.65706 27.0454 6.31812 27.1057 7.05672C27.1301 7.35469 27.1379 7.58979 27.14 8.03558L27.1408 9.10155C27.1408 11.2114 25.4304 12.922 23.3205 12.922C21.4083 12.922 19.8243 11.5172 19.5441 9.68336L19.538 9.64H18.39V21.687L20.0392 21.6877C22.149 21.6877 23.8595 23.398 23.8595 25.508C23.8595 27.6178 22.149 29.3283 20.0392 29.3283H9.10159C6.99169 29.3283 5.28127 27.6178 5.28127 25.508C5.28127 23.398 6.99172 21.6877 9.10159 21.6877L10.75 21.687V9.64H9.601L9.59661 9.68334C9.32609 11.4539 7.84018 12.8246 6.01692 12.917L5.82032 12.922C3.71035 12.922 2 11.2114 2 9.10155V8.41371C2 7.70349 2.00463 7.42929 2.03504 7.05674C2.09538 6.31803 2.25122 5.65681 2.59521 4.98173C3.11877 3.95419 3.95418 3.11876 4.98174 2.5952C5.65683 2.25122 6.31798 2.09539 7.057 2.03501C7.42935 2.00463 7.70354 2 8.41371 2H20.7271Z"
9224
9213
  }) }), /* @__PURE__ */ n("path", {
9225
9214
  fill: "currentColor",
@@ -9246,7 +9235,7 @@ var _m = "_40zvwv8", K = ({ title: e, layout: t = "fixed", preview: r, accessory
9246
9235
  a.commands.dispatch(new fe({
9247
9236
  kind: "text",
9248
9237
  annotation: {
9249
- ...wl,
9238
+ ...xl,
9250
9239
  content: mg(i("editor.annotatePanel.callOutSection.text")),
9251
9240
  at: {
9252
9241
  anchorType: "panel",
@@ -9259,7 +9248,7 @@ var _m = "_40zvwv8", K = ({ title: e, layout: t = "fixed", preview: r, accessory
9259
9248
  a.commands.dispatch(new fe({
9260
9249
  kind: "arrow",
9261
9250
  annotation: {
9262
- ...Oi,
9251
+ ...Ei,
9263
9252
  start: {
9264
9253
  anchorType: "panel",
9265
9254
  ...ug
@@ -9274,7 +9263,7 @@ var _m = "_40zvwv8", K = ({ title: e, layout: t = "fixed", preview: r, accessory
9274
9263
  a.commands.dispatch(new fe({
9275
9264
  kind: "shape",
9276
9265
  annotation: {
9277
- ...$i,
9266
+ ...Vi,
9278
9267
  ...dg,
9279
9268
  region: {
9280
9269
  anchorType: "panel",
@@ -9283,11 +9272,11 @@ var _m = "_40zvwv8", K = ({ title: e, layout: t = "fixed", preview: r, accessory
9283
9272
  }
9284
9273
  }));
9285
9274
  }, d = () => {
9286
- const p = rs(o);
9275
+ const p = ns(o);
9287
9276
  p !== null && a.commands.dispatch(new fe({
9288
9277
  kind: "differenceArrow",
9289
9278
  annotation: {
9290
- ...Nr,
9279
+ ...Mr,
9291
9280
  ...p,
9292
9281
  label: pg
9293
9282
  }
@@ -9297,7 +9286,7 @@ var _m = "_40zvwv8", K = ({ title: e, layout: t = "fixed", preview: r, accessory
9297
9286
  title: e ?? i("editor.annotatePanel.callOutSection.title"),
9298
9287
  layout: t,
9299
9288
  preview: r,
9300
- children: /* @__PURE__ */ m(yo, { children: [
9289
+ children: /* @__PURE__ */ m(bo, { children: [
9301
9290
  /* @__PURE__ */ n(l, {
9302
9291
  variant: "tile",
9303
9292
  icon: /* @__PURE__ */ n(ig, { size: "xl" }),
@@ -9336,14 +9325,14 @@ var _m = "_40zvwv8", K = ({ title: e, layout: t = "fixed", preview: r, accessory
9336
9325
  }), y5 = ({ title: e, layout: t = "collapsible", preview: r }) => {
9337
9326
  const a = H(), o = W(a), i = I(), { ToggleGroup: l } = G();
9338
9327
  if (!o) return null;
9339
- const s = Wr(o.spec);
9328
+ const s = $r(o.spec);
9340
9329
  if (s === null || !xe(s)) return null;
9341
9330
  const c = Sn.map((d) => ({
9342
9331
  value: d,
9343
9332
  label: i(`editor.graphPanel.comboSection.types.${d}`)
9344
9333
  })), u = (d) => {
9345
9334
  const h = Sn.find((p) => p === d);
9346
- h && a.commands.dispatch(new Rr({
9335
+ h && a.commands.dispatch(new Nr({
9347
9336
  coordType: "cartesian",
9348
9337
  comboType: h
9349
9338
  }));
@@ -9362,8 +9351,8 @@ var _m = "_40zvwv8", K = ({ title: e, layout: t = "fixed", preview: r, accessory
9362
9351
  }, gg = 0.1, vg = 20, S5 = ({ title: e, preview: t }) => {
9363
9352
  const r = H(), a = W(r), o = I(), { NumberField: i, TextField: l } = G();
9364
9353
  if (!a || a.coordSystem.type === "polar") return null;
9365
- const s = Xl(a.spec.layers), c = e ?? o("editor.annotationsPanel.goalSection.title"), u = us(s?.mapping.y), d = typeof u == "number" ? u : null, h = (v) => {
9366
- const f = new Ll({
9354
+ const s = ql(a.spec.layers), c = e ?? o("editor.annotationsPanel.goalSection.title"), u = us(s?.mapping.y), d = typeof u == "number" ? u : null, h = (v) => {
9355
+ const f = new kl({
9367
9356
  showGoalLine: v,
9368
9357
  value: fg(a),
9369
9358
  ...s !== void 0 && { layerId: s.id }
@@ -9371,14 +9360,14 @@ var _m = "_40zvwv8", K = ({ title: e, layout: t = "fixed", preview: r, accessory
9371
9360
  r.commands.dispatch(f);
9372
9361
  }, p = (v) => {
9373
9362
  if (s === void 0) return;
9374
- const f = new bl({
9363
+ const f = new fl({
9375
9364
  layerId: s.id,
9376
9365
  label: v === "" ? null : v
9377
9366
  });
9378
9367
  r.commands.dispatch(f, { transient: !0 });
9379
9368
  }, g = (v) => {
9380
9369
  if (s === void 0 || v === null) return;
9381
- const f = new yl({
9370
+ const f = new bl({
9382
9371
  layerId: s.id,
9383
9372
  value: v
9384
9373
  });
@@ -9421,28 +9410,28 @@ var _m = "_40zvwv8", K = ({ title: e, layout: t = "fixed", preview: r, accessory
9421
9410
  if (!i) return null;
9422
9411
  const c = e === void 0 ? i.spec.layers[0] : Pe(i.spec.layers, e);
9423
9412
  if (!c) return null;
9424
- const { showDataLabels: u, format: d, showStackTotals: h, showCategoryLabels: p } = c.dataLabels, g = i.coordSystem.type === "polar", v = c.geom === "bar", f = c.position === "stack" || c.position === "fill", S = v && !g && c.position === "stack", L = v && (!g || u), x = v || c.geom === "area" && f;
9425
- if (!Hl(c.geom, i.coordSystem.type)) return null;
9426
- const P = (E) => {
9427
- const R = new kl({
9413
+ const { showDataLabels: u, format: d, showStackTotals: h, showCategoryLabels: p } = c.dataLabels, g = i.coordSystem.type === "polar", v = c.geom === "bar", f = c.position === "stack" || c.position === "fill", S = v && !g && c.position === "stack", k = v && (!g || u), x = v || c.geom === "area" && f;
9414
+ if (!Bl(c.geom, i.coordSystem.type)) return null;
9415
+ const L = (E) => {
9416
+ const R = new Al({
9428
9417
  layerId: c.id,
9429
9418
  showDataLabels: E
9430
9419
  });
9431
9420
  o.commands.dispatch(R);
9432
9421
  }, C = (E) => {
9433
- const R = new Ji({
9422
+ const R = new Yi({
9434
9423
  layerId: c.id,
9435
9424
  format: E ? "percentage" : "absolute"
9436
9425
  });
9437
9426
  o.commands.dispatch(R);
9438
9427
  }, M = (E) => {
9439
- const R = new El({
9428
+ const R = new Il({
9440
9429
  layerId: c.id,
9441
9430
  showStackTotals: E
9442
9431
  });
9443
9432
  o.commands.dispatch(R);
9444
9433
  }, A = (E) => {
9445
- const R = new Al({
9434
+ const R = new Tl({
9446
9435
  layerId: c.id,
9447
9436
  showCategoryLabels: E
9448
9437
  });
@@ -9457,7 +9446,7 @@ var _m = "_40zvwv8", K = ({ title: e, layout: t = "fixed", preview: r, accessory
9457
9446
  label: l("editor.graphPanel.graphOptions.dataLabels"),
9458
9447
  children: /* @__PURE__ */ n(s, {
9459
9448
  isChecked: u,
9460
- onChange: P
9449
+ onChange: L
9461
9450
  })
9462
9451
  }),
9463
9452
  u && x && /* @__PURE__ */ n(w, {
@@ -9474,7 +9463,7 @@ var _m = "_40zvwv8", K = ({ title: e, layout: t = "fixed", preview: r, accessory
9474
9463
  onChange: M
9475
9464
  })
9476
9465
  }),
9477
- L && /* @__PURE__ */ n(w, {
9466
+ k && /* @__PURE__ */ n(w, {
9478
9467
  label: l("editor.graphPanel.graphOptions.categoryLabels"),
9479
9468
  children: /* @__PURE__ */ n(s, {
9480
9469
  isChecked: p,
@@ -10245,28 +10234,28 @@ var _m = "_40zvwv8", K = ({ title: e, layout: t = "fixed", preview: r, accessory
10245
10234
  }
10246
10235
  ], Fg = 0.05, Bg = (e) => e === null ? null : Bt.find((t) => Gg(t.summary, e)) ?? null, Hg = (e, t) => {
10247
10236
  const { summary: r } = e;
10248
- return t === null || xe(r) ? r : r.position === "dodge" && To(t) ? {
10237
+ return t === null || xe(r) ? r : r.position === "dodge" && wo(t) ? {
10249
10238
  ...r,
10250
10239
  position: "identity"
10251
- } : r.coordType !== "polar" || !it(r.innerRadius) || t.coordType !== "polar" || !it(t.innerRadius) ? r : {
10240
+ } : r.coordType !== "polar" || !ot(r.innerRadius) || t.coordType !== "polar" || !ot(t.innerRadius) ? r : {
10252
10241
  ...r,
10253
10242
  innerRadius: t.innerRadius
10254
10243
  };
10255
- }, To = (e) => !xe(e) && e.geom === "bar" && e.position === "identity", Gg = (e, t) => {
10244
+ }, wo = (e) => !xe(e) && e.geom === "bar" && e.position === "identity", Gg = (e, t) => {
10256
10245
  if (xe(e) || xe(t)) return xe(e) && xe(t);
10257
- const r = e.position === t.position || e.position === "dodge" && To(t);
10258
- return e.coordType !== t.coordType || e.geom !== t.geom || !r ? !1 : e.coordType !== "polar" || t.coordType !== "polar" ? !0 : e.theta === t.theta && it(e.innerRadius) === it(t.innerRadius);
10259
- }, it = (e) => e >= Fg, Vg = 3, x5 = ({ title: e, layout: t = "collapsible", preview: r }) => {
10246
+ const r = e.position === t.position || e.position === "dodge" && wo(t);
10247
+ return e.coordType !== t.coordType || e.geom !== t.geom || !r ? !1 : e.coordType !== "polar" || t.coordType !== "polar" ? !0 : e.theta === t.theta && ot(e.innerRadius) === ot(t.innerRadius);
10248
+ }, ot = (e) => e >= Fg, Vg = 3, x5 = ({ title: e, layout: t = "collapsible", preview: r }) => {
10260
10249
  const a = H(), o = W(a), i = I(), { RadioGrid: l } = G(), s = O(() => Bt.map(({ name: h, icon: p }) => ({
10261
10250
  value: h,
10262
10251
  label: i(`editor.graphTypes.${h}`),
10263
10252
  icon: /* @__PURE__ */ n(p, { size: "md" }),
10264
- isDisabled: h === "combo" && !Fl(o?.spec) || h === "heatmap" && !Bl(o?.spec)
10253
+ isDisabled: h === "combo" && !zl(o?.spec) || h === "heatmap" && !Fl(o?.spec)
10265
10254
  })), [i, o]);
10266
10255
  if (!o) return null;
10267
- const c = Wr(o.spec), u = Bg(c), d = (h) => {
10256
+ const c = $r(o.spec), u = Bg(c), d = (h) => {
10268
10257
  const p = Bt.find((g) => g.name === h);
10269
- p && a.commands.dispatch(new Rr(Hg(p, c)));
10258
+ p && a.commands.dispatch(new Nr(Hg(p, c)));
10270
10259
  };
10271
10260
  return /* @__PURE__ */ n(K, {
10272
10261
  title: e ?? i("editor.graphPanel.graphTypeSection.title"),
@@ -10280,31 +10269,31 @@ var _m = "_40zvwv8", K = ({ title: e, layout: t = "fixed", preview: r, accessory
10280
10269
  ariaLabel: i("editor.graphPanel.graphTypeSection.title")
10281
10270
  })
10282
10271
  });
10283
- }, mr = [
10272
+ }, pr = [
10284
10273
  "solid",
10285
10274
  "dashed",
10286
10275
  "dotted"
10287
10276
  ], $g = 8, Wg = 0, w5 = ({ title: e, layout: t = "collapsible", preview: r }) => {
10288
- const a = H(), o = W(a), i = I(), { Slider: l, Switch: s, ToggleGroup: c } = G(), u = bt(o);
10277
+ const a = H(), o = W(a), i = I(), { Slider: l, Switch: s, ToggleGroup: c } = G(), u = ft(o);
10289
10278
  if (!o || !u) return null;
10290
10279
  const d = o.guides.axes.filter(Ug);
10291
10280
  if (d.length === 0) return null;
10292
- const h = o.coordSystem.type !== "polar", p = d.some((x) => x.gridVisible), g = u.gridLine.y().resolve(), v = mr.map((x) => ({
10281
+ const h = o.coordSystem.type !== "polar", p = d.some((x) => x.gridVisible), g = u.gridLine.y().resolve(), v = pr.map((x) => ({
10293
10282
  value: x,
10294
10283
  label: i(`editor.graphPanel.gridSection.lineStyles.${x}`)
10295
- })), f = (x) => (P) => {
10296
- a.commands.dispatch(new nl({
10284
+ })), f = (x) => (L) => {
10285
+ a.commands.dispatch(new tl({
10297
10286
  axis: x,
10298
- isVisible: P
10287
+ isVisible: L
10299
10288
  }));
10300
10289
  }, S = (x) => {
10301
- const P = mr.find((C) => C === x);
10302
- P && a.commands.dispatch(new el({
10290
+ const L = pr.find((C) => C === x);
10291
+ L && a.commands.dispatch(new Qi({
10303
10292
  axis: "both",
10304
- lineStyle: P
10293
+ lineStyle: L
10305
10294
  }));
10306
- }, L = (x) => {
10307
- a.commands.dispatch(new tl({
10295
+ }, k = (x) => {
10296
+ a.commands.dispatch(new el({
10308
10297
  axis: "both",
10309
10298
  lineWidth: x
10310
10299
  }), { transient: !0 });
@@ -10333,17 +10322,17 @@ var _m = "_40zvwv8", K = ({ title: e, layout: t = "fixed", preview: r, accessory
10333
10322
  min: Wg,
10334
10323
  max: $g,
10335
10324
  step: 0.5,
10336
- formatValue: yt,
10337
- onChange: L,
10325
+ formatValue: bt,
10326
+ onChange: k,
10338
10327
  onCommit: a.commands.commit
10339
10328
  })
10340
10329
  })] })] })
10341
10330
  });
10342
- }, Ug = (e) => e.scaleAestheticKey === "x" || e.scaleAestheticKey === "y", Kg = (e) => e.geometry === "radial" ? "editor.graphPanel.gridSection.rings" : e.geometry === "circular" ? "editor.graphPanel.gridSection.spokes" : e.scaleAestheticKey === "x" ? "editor.graphPanel.gridSection.verticalGridLines" : "editor.graphPanel.gridSection.horizontalGridLines", qg = "total", Ao = [
10331
+ }, Ug = (e) => e.scaleAestheticKey === "x" || e.scaleAestheticKey === "y", Kg = (e) => e.geometry === "radial" ? "editor.graphPanel.gridSection.rings" : e.geometry === "circular" ? "editor.graphPanel.gridSection.spokes" : e.scaleAestheticKey === "x" ? "editor.graphPanel.gridSection.verticalGridLines" : "editor.graphPanel.gridSection.horizontalGridLines", qg = "total", To = [
10343
10332
  "total",
10344
10333
  "average",
10345
10334
  "current"
10346
- ], Xg = ["total"], gr = ["previous", "first"], vr = [
10335
+ ], Xg = ["total"], mr = ["previous", "first"], gr = [
10347
10336
  "auto",
10348
10337
  "small",
10349
10338
  "medium",
@@ -10353,13 +10342,13 @@ var _m = "_40zvwv8", K = ({ title: e, layout: t = "fixed", preview: r, accessory
10353
10342
  if (!o) return null;
10354
10343
  const c = o.config.headline, u = c.show !== "none", d = o.coordSystem, h = d.type === "polar", p = d.type === "polar" && d.innerRadius > 0, g = o.layers.some((y) => y.summary.grandTotal !== void 0);
10355
10344
  if (h && !g) return null;
10356
- const v = h ? Xg : Ao, f = o.guides.headline, S = f?.kind === "perGroup" && f.items.some((y) => y.comparison !== null), L = v.map((y) => ({
10345
+ const v = h ? Xg : To, f = o.guides.headline, S = f?.kind === "perGroup" && f.items.some((y) => y.comparison !== null), k = v.map((y) => ({
10357
10346
  value: y,
10358
10347
  label: i(`editor.graphPanel.headlineNumberSection.metrics.${y}`)
10359
- })), x = gr.map((y) => ({
10348
+ })), x = mr.map((y) => ({
10360
10349
  value: y,
10361
10350
  label: i(`editor.graphPanel.headlineNumberSection.comparison.${y}`)
10362
- })), P = vr.map((y) => ({
10351
+ })), L = gr.map((y) => ({
10363
10352
  value: y,
10364
10353
  label: i(y === "auto" ? "editor.graphPanel.numberFormat.options.auto" : `editor.graphPanel.headlineNumberSize.sizes.${y}`)
10365
10354
  })), C = [{
@@ -10374,13 +10363,13 @@ var _m = "_40zvwv8", K = ({ title: e, layout: t = "fixed", preview: r, accessory
10374
10363
  const b = v.find((U) => U === y);
10375
10364
  b && a.commands.dispatch(new xn({ show: b }));
10376
10365
  }, E = (y) => {
10377
- const b = gr.find((U) => U === y);
10378
- b && a.commands.dispatch(new rl({ compareWith: b }));
10366
+ const b = mr.find((U) => U === y);
10367
+ b && a.commands.dispatch(new nl({ compareWith: b }));
10379
10368
  }, R = (y) => {
10380
- const b = vr.find((U) => U === y);
10381
- b && a.commands.dispatch(new ol({ size: b }));
10369
+ const b = gr.find((U) => U === y);
10370
+ b && a.commands.dispatch(new al({ size: b }));
10382
10371
  }, D = (y) => {
10383
- a.commands.dispatch(new al({ position: y === "center" ? "center" : "above" }));
10372
+ a.commands.dispatch(new rl({ position: y === "center" ? "center" : "above" }));
10384
10373
  };
10385
10374
  return /* @__PURE__ */ n(K, {
10386
10375
  title: e ?? i("editor.graphPanel.headlineNumberSection.title"),
@@ -10393,12 +10382,12 @@ var _m = "_40zvwv8", K = ({ title: e, layout: t = "fixed", preview: r, accessory
10393
10382
  onChange: M
10394
10383
  })
10395
10384
  }), u && /* @__PURE__ */ m(Y, { children: [
10396
- L.length > 1 && /* @__PURE__ */ n(w, {
10385
+ k.length > 1 && /* @__PURE__ */ n(w, {
10397
10386
  label: i("editor.graphPanel.headlineNumberSection.metricLabel"),
10398
10387
  layout: "stack",
10399
10388
  children: /* @__PURE__ */ n(s, {
10400
10389
  value: c.show,
10401
- options: L,
10390
+ options: k,
10402
10391
  onChange: A
10403
10392
  })
10404
10393
  }),
@@ -10415,7 +10404,7 @@ var _m = "_40zvwv8", K = ({ title: e, layout: t = "fixed", preview: r, accessory
10415
10404
  label: i("editor.graphPanel.headlineNumberSize.sizeLabel"),
10416
10405
  children: /* @__PURE__ */ n(s, {
10417
10406
  value: c.size,
10418
- options: P,
10407
+ options: L,
10419
10408
  onChange: R
10420
10409
  })
10421
10410
  }),
@@ -10430,7 +10419,7 @@ var _m = "_40zvwv8", K = ({ title: e, layout: t = "fixed", preview: r, accessory
10430
10419
  ] })] })
10431
10420
  });
10432
10421
  }, Zg = (e, t) => {
10433
- const r = Ao.find((a) => a === t);
10422
+ const r = To.find((a) => a === t);
10434
10423
  return r && e(`editor.graphPanel.headlineNumberSection.metrics.${r}`);
10435
10424
  }, Lt = [
10436
10425
  "top",
@@ -10438,19 +10427,19 @@ var _m = "_40zvwv8", K = ({ title: e, layout: t = "fixed", preview: r, accessory
10438
10427
  "left",
10439
10428
  "right",
10440
10429
  "none"
10441
- ], fr = [
10430
+ ], vr = [
10442
10431
  "auto",
10443
10432
  "start",
10444
10433
  "center",
10445
10434
  "end"
10446
- ], br = [
10435
+ ], fr = [
10447
10436
  "auto",
10448
10437
  "pill",
10449
10438
  "direct"
10450
10439
  ], A5 = ({ positions: e, title: t, layout: r = "collapsible", preview: a }) => {
10451
10440
  const o = H(), i = W(o), l = I(), { ToggleGroup: s } = G();
10452
10441
  if (!i) return null;
10453
- const c = i.config.legend.position, u = e ?? Lt, d = i.guides.legends.drawn[0], h = zl({
10442
+ const c = i.config.legend.position, u = e ?? Lt, d = i.guides.legends.drawn[0], h = _l({
10454
10443
  legendPosition: i.guides.legends.position,
10455
10444
  coordSystem: i.coordSystem,
10456
10445
  layers: i.layers
@@ -10459,19 +10448,19 @@ var _m = "_40zvwv8", K = ({ title: e, layout: t = "fixed", preview: r, accessory
10459
10448
  const v = d?.position ?? "none", f = c === "auto" ? v : c, S = Lt.filter((D) => D === f || u.includes(D)).map((D) => ({
10460
10449
  value: D,
10461
10450
  label: l(`editor.graphPanel.legendSection.${D}`)
10462
- })), L = (D) => {
10451
+ })), k = (D) => {
10463
10452
  const y = Lt.find((b) => b === D);
10464
- y && o.commands.dispatch(new dl({ position: y }));
10453
+ y && o.commands.dispatch(new cl({ position: y }));
10465
10454
  }, x = (D) => {
10455
+ const y = vr.find((b) => b === D);
10456
+ y && o.commands.dispatch(new ll({ align: y }));
10457
+ }, L = (D) => {
10466
10458
  const y = fr.find((b) => b === D);
10467
- y && o.commands.dispatch(new sl({ align: y }));
10468
- }, P = (D) => {
10469
- const y = br.find((b) => b === D);
10470
- y && o.commands.dispatch(new cl({ display: y }));
10471
- }, C = fr.map((D) => ({
10459
+ y && o.commands.dispatch(new sl({ display: y }));
10460
+ }, C = vr.map((D) => ({
10472
10461
  value: D,
10473
10462
  label: l(`editor.graphPanel.legendSection.align.${D}`)
10474
- })), M = br.map((D) => ({
10463
+ })), M = fr.map((D) => ({
10475
10464
  value: D,
10476
10465
  label: l(`editor.graphPanel.legendSection.display.${D}`)
10477
10466
  })), A = t ?? l("editor.graphPanel.legendSection.title"), E = S.find((D) => D.value === f)?.label, R = d !== void 0;
@@ -10486,7 +10475,7 @@ var _m = "_40zvwv8", K = ({ title: e, layout: t = "fixed", preview: r, accessory
10486
10475
  children: /* @__PURE__ */ n(s, {
10487
10476
  value: f,
10488
10477
  options: S,
10489
- onChange: L
10478
+ onChange: k
10490
10479
  })
10491
10480
  }),
10492
10481
  R && /* @__PURE__ */ n(w, {
@@ -10504,27 +10493,27 @@ var _m = "_40zvwv8", K = ({ title: e, layout: t = "fixed", preview: r, accessory
10504
10493
  children: /* @__PURE__ */ n(s, {
10505
10494
  value: i.config.legend.display,
10506
10495
  options: M,
10507
- onChange: P
10496
+ onChange: L
10508
10497
  })
10509
10498
  })
10510
10499
  ] })
10511
10500
  });
10512
- }, jg = 1, Yg = 20, Jg = 0.5, ko = ({ layerId: e }) => {
10501
+ }, jg = 1, Yg = 20, Jg = 0.5, Ao = ({ layerId: e }) => {
10513
10502
  const t = H(), r = W(t), { Slider: a } = G(), o = gn(r, e, "point");
10514
10503
  if (!r) return null;
10515
10504
  const i = (l) => {
10516
- const s = new gl({
10505
+ const s = new ml({
10517
10506
  layerId: e,
10518
10507
  size: l
10519
10508
  });
10520
10509
  t.commands.dispatch(s, { transient: !0 });
10521
10510
  };
10522
10511
  return /* @__PURE__ */ n(a, {
10523
- value: o?.get("size") ?? _i,
10512
+ value: o?.get("size") ?? Di,
10524
10513
  min: jg,
10525
10514
  max: Yg,
10526
10515
  step: Jg,
10527
- formatValue: yt,
10516
+ formatValue: bt,
10528
10517
  onChange: i,
10529
10518
  onCommit: t.commands.commit
10530
10519
  });
@@ -10533,31 +10522,31 @@ var _m = "_40zvwv8", K = ({ title: e, layout: t = "fixed", preview: r, accessory
10533
10522
  "zero",
10534
10523
  "connect"
10535
10524
  ], k5 = ({ title: e, layout: t = "collapsible", preview: r }) => {
10536
- const a = H(), o = W(a), i = I(), { Select: l, Slider: s, Switch: c, ToggleGroup: u } = G(), d = o?.spec.layers ?? [], h = Vr(d, "line", "area"), p = gn(o, h?.id ?? null, "line");
10525
+ const a = H(), o = W(a), i = I(), { Select: l, Slider: s, Switch: c, ToggleGroup: u } = G(), d = o?.spec.layers ?? [], h = Gr(d, "line", "area"), p = gn(o, h?.id ?? null, "line");
10537
10526
  if (!o || !h) return null;
10538
- const g = o.coordSystem.type === "polar", v = o0(i, h), f = a0(h, d), S = yr(o.spec, h.geom, "strokeWidth", h.id), L = typeof S == "number", x = h.geom === "line" ? h : void 0, P = [{
10527
+ const g = o.coordSystem.type === "polar", v = o0(i, h), f = a0(h, d), S = br(o.spec, h.geom, "strokeWidth", h.id), k = typeof S == "number", x = h.geom === "line" ? h : void 0, L = [{
10539
10528
  value: "auto",
10540
10529
  label: i("editor.graphPanel.numberFormat.options.auto")
10541
10530
  }, {
10542
10531
  value: "custom",
10543
10532
  label: i("editor.graphPanel.numberFormat.options.custom")
10544
10533
  }], C = (y) => {
10545
- a.commands.dispatch(new Il({
10534
+ a.commands.dispatch(new Pl({
10546
10535
  layerId: h.id,
10547
10536
  showPoints: y
10548
10537
  }));
10549
10538
  }, M = (y) => {
10550
- x && a.commands.dispatch(new Pl({
10539
+ x && a.commands.dispatch(new Ll({
10551
10540
  layerId: x.id,
10552
10541
  showFill: y
10553
10542
  }));
10554
10543
  }, A = (y) => {
10555
- a.commands.dispatch(new ul({
10544
+ a.commands.dispatch(new dl({
10556
10545
  layerId: h.id,
10557
10546
  curve: y ? "smooth" : "linear"
10558
10547
  }));
10559
10548
  }, E = (y) => {
10560
- const b = p?.get("strokeWidth") ?? zi;
10549
+ const b = p?.get("strokeWidth") ?? _i;
10561
10550
  a.commands.dispatch(new wn({
10562
10551
  layerId: h.id,
10563
10552
  lineWidth: y === "custom" ? b : null
@@ -10569,7 +10558,7 @@ var _m = "_40zvwv8", K = ({ title: e, layout: t = "fixed", preview: r, accessory
10569
10558
  }), { transient: !0 });
10570
10559
  }, D = (y) => {
10571
10560
  const b = r0(y);
10572
- b && a.commands.dispatch(new hl({
10561
+ b && a.commands.dispatch(new ul({
10573
10562
  layerId: h.id,
10574
10563
  missingValues: b
10575
10564
  }));
@@ -10588,12 +10577,12 @@ var _m = "_40zvwv8", K = ({ title: e, layout: t = "fixed", preview: r, accessory
10588
10577
  }),
10589
10578
  f && /* @__PURE__ */ n(w, {
10590
10579
  label: i("editor.graphPanel.pointSize.label"),
10591
- children: /* @__PURE__ */ n(ko, { layerId: f.id })
10580
+ children: /* @__PURE__ */ n(Ao, { layerId: f.id })
10592
10581
  }),
10593
10582
  x && !g && /* @__PURE__ */ n(w, {
10594
10583
  label: i("editor.graphPanel.graphOptions.lineFill"),
10595
10584
  children: /* @__PURE__ */ n(c, {
10596
- isChecked: yr(o.spec, "line", "fillAlpha", x.id) !== void 0,
10585
+ isChecked: br(o.spec, "line", "fillAlpha", x.id) !== void 0,
10597
10586
  onChange: M
10598
10587
  })
10599
10588
  }),
@@ -10607,19 +10596,19 @@ var _m = "_40zvwv8", K = ({ title: e, layout: t = "fixed", preview: r, accessory
10607
10596
  /* @__PURE__ */ n(w, {
10608
10597
  label: i("editor.graphPanel.lineThickness.label"),
10609
10598
  children: /* @__PURE__ */ n(u, {
10610
- value: L ? "custom" : "auto",
10611
- options: P,
10599
+ value: k ? "custom" : "auto",
10600
+ options: L,
10612
10601
  onChange: E
10613
10602
  })
10614
10603
  }),
10615
- L && /* @__PURE__ */ n(w, {
10604
+ k && /* @__PURE__ */ n(w, {
10616
10605
  label: i("editor.graphPanel.numberFormat.valueLabel"),
10617
10606
  children: /* @__PURE__ */ n(s, {
10618
10607
  value: S,
10619
10608
  min: Qg,
10620
10609
  max: e0,
10621
10610
  step: t0,
10622
- formatValue: yt,
10611
+ formatValue: bt,
10623
10612
  onChange: R,
10624
10613
  onCommit: a.commands.commit
10625
10614
  })
@@ -10634,7 +10623,7 @@ var _m = "_40zvwv8", K = ({ title: e, layout: t = "fixed", preview: r, accessory
10634
10623
  })
10635
10624
  ] })
10636
10625
  });
10637
- }, r0 = (e) => n0.find((t) => t === e), yr = (e, t, r, a) => jl(e.styles.overrides, Dl(t, a))?.[r], a0 = (e, t) => Pt(t, "point").find((r) => $r(r, [e])), o0 = (e, t) => {
10626
+ }, r0 = (e) => n0.find((t) => t === e), br = (e, t, r, a) => Zl(e.styles.overrides, Rl(t, a))?.[r], a0 = (e, t) => Pt(t, "point").find((r) => Vr(r, [e])), o0 = (e, t) => {
10638
10627
  const r = [{
10639
10628
  value: "gap",
10640
10629
  label: e("editor.graphPanel.treatEmptyValues.leaveGap.label")
@@ -10667,7 +10656,7 @@ var _m = "_40zvwv8", K = ({ title: e, layout: t = "fixed", preview: r, accessory
10667
10656
  value: p ?? (h ? null : Ht),
10668
10657
  options: s0(d, p, h ? null : l),
10669
10658
  chooseColumn: (g) => {
10670
- r.commands.dispatch(new pl({
10659
+ r.commands.dispatch(new hl({
10671
10660
  aesthetic: u,
10672
10661
  variable: g === Ht ? null : g
10673
10662
  }));
@@ -10717,24 +10706,24 @@ var _m = "_40zvwv8", K = ({ title: e, layout: t = "fixed", preview: r, accessory
10717
10706
  ], p0 = ["auto", "none"], P5 = ({ title: e, layout: t = "collapsible", preview: r }) => {
10718
10707
  const a = H(), o = W(a), i = I(), { NumberField: l, ToggleGroup: s } = G();
10719
10708
  if (!o) return null;
10720
- const { abbreviation: c, decimals: u } = o.config.numberFormat, d = m0(c) !== void 0, h = u !== "auto", p = (P) => P.map((C) => ({
10709
+ const { abbreviation: c, decimals: u } = o.config.numberFormat, d = m0(c) !== void 0, h = u !== "auto", p = (L) => L.map((C) => ({
10721
10710
  value: C,
10722
10711
  label: i(`editor.graphPanel.numberFormat.options.${C}`)
10723
- })), g = Gt.map(({ value: P, labelKey: C }) => ({
10724
- value: P,
10712
+ })), g = Gt.map(({ value: L, labelKey: C }) => ({
10713
+ value: L,
10725
10714
  label: i(`common.abbreviations.${C}`)
10726
- })), v = (P) => {
10727
- a.commands.dispatch(new ml({ abbreviation: P }));
10728
- }, f = (P) => {
10729
- const C = p0.find((M) => M === P);
10715
+ })), v = (L) => {
10716
+ a.commands.dispatch(new pl({ abbreviation: L }));
10717
+ }, f = (L) => {
10718
+ const C = p0.find((M) => M === L);
10730
10719
  v(C ?? c0);
10731
- }, S = (P) => {
10732
- const C = Gt.find((M) => M.value === P);
10720
+ }, S = (L) => {
10721
+ const C = Gt.find((M) => M.value === L);
10733
10722
  C && v(C.value);
10734
- }, L = (P) => {
10735
- a.commands.dispatch(new Tn({ decimals: P === "custom" ? d0 : "auto" }));
10736
- }, x = (P) => {
10737
- P !== null && a.commands.dispatch(new Tn({ decimals: P }), { transient: !0 });
10723
+ }, k = (L) => {
10724
+ a.commands.dispatch(new Tn({ decimals: L === "custom" ? d0 : "auto" }));
10725
+ }, x = (L) => {
10726
+ L !== null && a.commands.dispatch(new Tn({ decimals: L }), { transient: !0 });
10738
10727
  };
10739
10728
  return /* @__PURE__ */ n(K, {
10740
10729
  title: e ?? i("editor.graphPanel.numberFormatSection.title"),
@@ -10766,7 +10755,7 @@ var _m = "_40zvwv8", K = ({ title: e, layout: t = "fixed", preview: r, accessory
10766
10755
  children: /* @__PURE__ */ n(s, {
10767
10756
  value: h ? "custom" : "auto",
10768
10757
  options: p(["auto", "custom"]),
10769
- onChange: L
10758
+ onChange: k
10770
10759
  })
10771
10760
  }),
10772
10761
  h && /* @__PURE__ */ n(w, {
@@ -10791,19 +10780,19 @@ var _m = "_40zvwv8", K = ({ title: e, layout: t = "fixed", preview: r, accessory
10791
10780
  preview: r,
10792
10781
  children: /* @__PURE__ */ n(J, { children: /* @__PURE__ */ n(w, {
10793
10782
  label: o("editor.graphPanel.numberFormat.valueLabel"),
10794
- children: /* @__PURE__ */ n(ko, { layerId: i.id })
10783
+ children: /* @__PURE__ */ n(Ao, { layerId: i.id })
10795
10784
  }) })
10796
10785
  }) : null;
10797
10786
  }, g0 = (e) => {
10798
10787
  const t = Pt(e, "line", "area");
10799
- return Pt(e, "point").find((r) => !$r(r, t));
10788
+ return Pt(e, "point").find((r) => !Vr(r, t));
10800
10789
  }, v0 = 0.9, f0 = 360, b0 = 0.05, y0 = 15, E5 = ({ title: e, layout: t = "collapsible", preview: r }) => {
10801
10790
  const a = H(), o = W(a), i = I(), { Slider: l } = G();
10802
10791
  if (!o || o.spec.coords.coordType !== "polar") return null;
10803
10792
  const { innerRadius: s, startAngle: c } = o.spec.coords.params, u = (h) => {
10804
- a.commands.dispatch(new vl({ innerRadius: h }), { transient: !0 });
10793
+ a.commands.dispatch(new gl({ innerRadius: h }), { transient: !0 });
10805
10794
  }, d = (h) => {
10806
- a.commands.dispatch(new fl({ startAngle: h }), { transient: !0 });
10795
+ a.commands.dispatch(new vl({ startAngle: h }), { transient: !0 });
10807
10796
  };
10808
10797
  return /* @__PURE__ */ n(K, {
10809
10798
  title: e ?? i("editor.graphPanel.polarSection.title"),
@@ -10816,7 +10805,7 @@ var _m = "_40zvwv8", K = ({ title: e, layout: t = "fixed", preview: r, accessory
10816
10805
  min: 0,
10817
10806
  max: v0,
10818
10807
  step: b0,
10819
- formatValue: wo,
10808
+ formatValue: xo,
10820
10809
  onChange: u,
10821
10810
  onCommit: a.commands.commit
10822
10811
  })
@@ -10856,7 +10845,7 @@ var _m = "_40zvwv8", K = ({ title: e, layout: t = "fixed", preview: r, accessory
10856
10845
  fill: "currentColor"
10857
10846
  })
10858
10847
  ]
10859
- }), Sr = (e) => /* @__PURE__ */ m(T, {
10848
+ }), yr = (e) => /* @__PURE__ */ m(T, {
10860
10849
  ...e,
10861
10850
  children: [
10862
10851
  /* @__PURE__ */ n("path", {
@@ -10886,7 +10875,7 @@ var _m = "_40zvwv8", K = ({ title: e, layout: t = "fixed", preview: r, accessory
10886
10875
  }
10887
10876
  };
10888
10877
  const { parsingLocale: t, numberFormat: r } = e.config, a = e.guides.colorGroups.map((o) => {
10889
- const i = Ul({
10878
+ const i = Wl({
10890
10879
  valueFormat: o.valueFormat,
10891
10880
  locale: t,
10892
10881
  numberFormat: r
@@ -10903,7 +10892,7 @@ var _m = "_40zvwv8", K = ({ title: e, layout: t = "fixed", preview: r, accessory
10903
10892
  options: a.map(({ option: o }) => o),
10904
10893
  findValue: (o) => a.find((i) => i.option.value === o)?.value
10905
10894
  };
10906
- }, [e]), Cr = [
10895
+ }, [e]), Sr = [
10907
10896
  "linear",
10908
10897
  "exponential",
10909
10898
  "quadratic",
@@ -10914,32 +10903,32 @@ var _m = "_40zvwv8", K = ({ title: e, layout: t = "fixed", preview: r, accessory
10914
10903
  ], x0 = "linear", O5 = ({ title: e, layout: t = "collapsible", preview: r }) => {
10915
10904
  const a = H(), o = W(a), i = I(), { Select: l, Switch: s } = G(), { options: c, findValue: u } = C0(o);
10916
10905
  if (!o || o.coordSystem.type === "polar") return null;
10917
- const d = Jl(o.spec.layers), h = ql(o.spec.layers), p = d?.stat.type === "smooth" ? d.stat.method : x0, g = w0(h), v = Cr.map((C) => ({
10906
+ const d = Yl(o.spec.layers), h = Kl(o.spec.layers), p = d?.stat.type === "smooth" ? d.stat.method : x0, g = w0(h), v = Sr.map((C) => ({
10918
10907
  value: C,
10919
10908
  label: i(`editor.annotationsPanel.trendType.options.${C}`)
10920
10909
  })), f = (C, M = {}) => {
10921
- const A = d ?? h, E = new xl({
10910
+ const A = d ?? h, E = new Cl({
10922
10911
  line: C,
10923
10912
  ...M,
10924
10913
  ...A !== void 0 && { layerId: A.id },
10925
10914
  label: i("editor.annotationsPanel.trendsAndAveragesSection.average")
10926
10915
  });
10927
10916
  a.commands.dispatch(E);
10928
- }, S = (C) => f(C ? "trend" : "none", { method: p }), L = (C) => f(C ? "average" : "none", { group: g ?? u(c[0]?.value ?? "") }), x = (C) => {
10929
- const M = Cr.find((A) => A === C);
10917
+ }, S = (C) => f(C ? "trend" : "none", { method: p }), k = (C) => f(C ? "average" : "none", { group: g ?? u(c[0]?.value ?? "") }), x = (C) => {
10918
+ const M = Sr.find((A) => A === C);
10930
10919
  M !== void 0 && f("trend", { method: M });
10931
- }, P = (C) => {
10920
+ }, L = (C) => {
10932
10921
  const M = C === null ? void 0 : u(C);
10933
10922
  M !== void 0 && f("average", { group: M });
10934
10923
  };
10935
10924
  return /* @__PURE__ */ n(K, {
10936
10925
  title: e ?? i("editor.annotationsPanel.trendsAndAveragesSection.title"),
10937
10926
  layout: t,
10938
- preview: r ?? /* @__PURE__ */ n(Sr, { size: "lg" }),
10927
+ preview: r ?? /* @__PURE__ */ n(yr, { size: "lg" }),
10939
10928
  children: /* @__PURE__ */ m(J, { children: [
10940
10929
  /* @__PURE__ */ n(w, {
10941
10930
  label: i("editor.annotationsPanel.trendsAndAveragesSection.trend"),
10942
- icon: /* @__PURE__ */ n(Sr, { size: "lg" }),
10931
+ icon: /* @__PURE__ */ n(yr, { size: "lg" }),
10943
10932
  children: /* @__PURE__ */ n(s, {
10944
10933
  isChecked: d !== void 0,
10945
10934
  onChange: S
@@ -10959,7 +10948,7 @@ var _m = "_40zvwv8", K = ({ title: e, layout: t = "fixed", preview: r, accessory
10959
10948
  icon: /* @__PURE__ */ n(S0, { size: "lg" }),
10960
10949
  children: /* @__PURE__ */ n(s, {
10961
10950
  isChecked: h !== void 0,
10962
- onChange: L
10951
+ onChange: k
10963
10952
  })
10964
10953
  }),
10965
10954
  h !== void 0 && c.length > 0 && /* @__PURE__ */ n(w, {
@@ -10967,7 +10956,7 @@ var _m = "_40zvwv8", K = ({ title: e, layout: t = "fixed", preview: r, accessory
10967
10956
  children: /* @__PURE__ */ n(l, {
10968
10957
  value: g === void 0 ? null : String(g),
10969
10958
  options: c,
10970
- onChange: P,
10959
+ onChange: L,
10971
10960
  placeholder: i("editor.annotationsPanel.averageLineSeries.placeholder"),
10972
10961
  ariaLabel: i("editor.annotationsPanel.averageLineSeries.ariaLabel")
10973
10962
  })
@@ -10981,14 +10970,14 @@ var _m = "_40zvwv8", K = ({ title: e, layout: t = "fixed", preview: r, accessory
10981
10970
  export {
10982
10971
  v5 as AppearanceSection,
10983
10972
  g5 as AxesPanel,
10984
- dr as AxisSection,
10973
+ cr as AxisSection,
10985
10974
  f5 as BarSection,
10986
10975
  z2 as Button,
10987
10976
  b5 as CalloutsSection,
10988
10977
  Wm as CaptionSection,
10989
10978
  y5 as ComboSection,
10990
10979
  p5 as EditableGraphRenderer,
10991
- Co as EditorPanel,
10980
+ So as EditorPanel,
10992
10981
  m5 as ElementsPanel,
10993
10982
  S5 as GoalSection,
10994
10983
  C5 as GraphOptionsSection,