@graphysdk/react-renderer 1.8.1-beta.1787827928296 → 1.8.1-beta.1787831204964

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,27 +1,27 @@
1
- import { $ as Ee, B as Ze, C as eo, Ct as $n, Dt as to, Et as no, F as V, G as ro, H as Un, I as kt, J as ao, L as Lt, M as oo, N as X, O as io, P as U, R as Wn, S as lo, T as A, Tt as so, U as co, V as uo, W as Kn, X as ho, Y as Yt, Z as Q, _ as fe, b as po, c as mo, ct as go, d as vo, f as qn, ft as Pt, g as Xn, h as jn, i as fo, it as bo, j as Co, jt as G, kt as _, l as yo, lt as ie, m as So, n as le, nt as xo, o as wo, ot as To, p as Ye, pt as Y, q as Ao, r as $, rt as k, st as ko, t as Lo, u as Po, v as It, w as Io, wt as Eo, x as Zn, y as Mo, z as Et } from "./history-chords-BCo5Hd7M.js";
2
- import { m as ue, n as Yn, p as Jn } from "./dev.utils-t0mzc-gy.js";
3
- import { ARROW_DEFAULTS as No, ARROW_STICKER_DECLARATIONS as Oo, ARROW_STROKE_WIDTHS as st, AddAnnotationCommand as he, AddHighlightCommand as Do, BORDER_RADIUS_TOKENS as Jt, COMBO_TYPES as Qt, CONSTANT_VARIABLES as Ro, DEFAULT_BAR_BORDER_RADIUS as zo, DEFAULT_POINT_SIZE as _o, DEFAULT_STROKE_WIDTH as Fo, DIFFERENCE_ARROW_DEFAULTS as Qn, MAX_BAR_WIDTH as Ho, MIN_BAR_WIDTH as Bo, MoveAnnotationCommand as Vo, RESTING_HOVER_STATE as er, RemoveAnnotationCommand as Te, RemoveHighlightCommand as Go, SHAPE_DEFAULTS as $o, SetAppearanceTextScaleCommand as Uo, SetAxisLabelCommand as Wo, SetAxisPositionCommand as Ko, SetAxisTickModeCommand as qo, SetAxisTicksVisibilityCommand as Xo, SetAxisVisibilityCommand as jo, SetBarBorderRadiusCommand as Zo, SetBarWidthCommand as Yo, SetChartTypeCommand as tr, SetContentCaptionCommand as nr, SetContentSourceCommand as Jo, SetContentSubtitleCommand as rr, SetContentTitleCommand as ar, SetDataLabelsFormatCommand as Qo, SetGridLineStyleCommand as ei, SetGridLineWidthCommand as ti, SetGridVisibilityCommand as ni, SetHeadlineCompareWithCommand as ri, SetHeadlinePositionCommand as ai, SetHeadlineShowCommand as en, SetHeadlineSizeCommand as oi, SetHighlightDimStyleCommand as ii, SetLayerYScaleTypeCommand as li, SetLegendAlignCommand as si, SetLegendDisplayCommand as ci, SetLegendPositionCommand as di, SetLineInterpolationCommand as ui, SetLineMissingValuesCommand as hi, SetLineWidthCommand as tn, SetMappingCommand as pi, SetNumberFormatAbbreviationCommand as mi, SetNumberFormatDecimalsCommand as nn, SetPointSizeCommand as gi, SetPolarInnerRadiusCommand as vi, SetPolarStartAngleCommand as fi, SetRuleLabelCommand as bi, SetRuleValueCommand as Ci, SetScaleDomainCommand as ze, SetScaleReverseCommand as yi, SetScaleTransformCommand as Si, SetScaleZeroCommand as rn, SetStatLineCommand as xi, SetStyleRuleCommand as Mt, TEXT_ANNOTATION_DEFAULTS as wi, ToggleCategoryLabelsCommand as Ti, ToggleContentVisibilityCommand as Je, ToggleDataLabelsCommand as Ai, ToggleGoalLineCommand as ki, ToggleLineFillCommand as Li, ToggleLinePointsVisibilityCommand as Pi, ToggleStackTotalsCommand as Ii, UpdateAnnotationCommand as ne, alignUnitFractions as Ei, areAnchorsEqual as or, areEndpointsComparable as Mi, buildEditMenuTriggerRegion as Ni, buildLayerStyleAddress as Oi, buildObservationPredicate as Di, canAnchorDirectLabels as Ri, canBecomeCombo as zi, canBecomeHeatmap as _i, canPlaceDataLabels as Fi, clampAnnotationTranslation as Hi, computeArrow as ir, createObservationAnchorBuilder as Bi, createObservationAnchorParser as Vi, createStyleResolver as Qe, createValueFormatter as Gi, extractConstantValue as $i, extractVariableName as Ui, filterLayersByGeoms as mt, findAnnotation as Wi, findAverageLineLayer as Ki, findGoalLineLayer as qi, findHighlightsAtObservation as Xi, findKindStyleDeclarations as ji, findLayerByGeom as lr, findObservationAttachment as Zi, findStyleRule as Nt, findTrendLineLayer as Yi, formatDifferenceLabel as Ji, hasMultipleGroups as Qi, inferDefaultDifferenceArrowEndpoints as el, inferDifferenceArrowEndpoints as tl, isComboChartType as ve, isCompanionLayer as sr, isObservationAttachmentKind as nl, isPointWithinEditMenuTrigger as cr, isSafeUrl as rl, projectAnchorToPanel as al, readChartType as dr, readComboLineLayerId as ol, readHighlightDimStyle as il, readMappableAesthetics as ll, readMappedVariable as sl, readObservationIndex as cl, resolveBarBandFraction as dl, resolveComparisonBasis as ul, resolveGridLineStyle as hl, resolveObservationPoint as ur, resolveShapeAnnotationStyle as pl, stepDifferenceArrowEndpoint as ml, toPanelCursor as Ot } from "@graphysdk/viz-engine";
1
+ import { $ as Ee, B as Ye, C as to, Ct as Un, Dt as no, Et as ro, F as B, G as ao, H as Wn, I as Lt, J as oo, L as Pt, M as io, N as j, O as lo, P as U, R as Kn, S as so, T as A, Tt as co, U as uo, V as ho, W as qn, X as po, Y as Jt, Z as Q, _ as fe, b as mo, c as go, ct as vo, d as fo, f as jn, ft as It, g as Xn, h as Zn, i as bo, it as Co, j as yo, jt as G, kt as V, l as So, lt as ie, m as xo, n as le, nt as wo, o as To, ot as Ao, p as Je, pt as Y, q as ko, r as $, rt as k, st as Lo, t as Po, u as Io, v as Et, w as Eo, wt as Mo, x as Yn, y as No, z as Mt } from "./history-chords-DvubQLZZ.js";
2
+ import { m as ue, n as Jn, p as Qn } from "./dev.utils-t0mzc-gy.js";
3
+ import { ARROW_DEFAULTS as Oo, ARROW_STICKER_DECLARATIONS as Do, ARROW_STROKE_WIDTHS as ct, AddAnnotationCommand as he, AddHighlightCommand as Ro, BORDER_RADIUS_TOKENS as Qt, COMBO_TYPES as en, CONSTANT_VARIABLES as zo, DEFAULT_BAR_BORDER_RADIUS as _o, DEFAULT_POINT_SIZE as Fo, DEFAULT_STROKE_WIDTH as Ho, DIFFERENCE_ARROW_DEFAULTS as er, MAX_BAR_WIDTH as Bo, MIN_BAR_WIDTH as Vo, MoveAnnotationCommand as Go, RESTING_HOVER_STATE as tr, RemoveAnnotationCommand as Te, RemoveHighlightCommand as $o, SHAPE_DEFAULTS as Uo, SetAppearanceTextScaleCommand as Wo, SetAxisLabelCommand as Ko, SetAxisPositionCommand as qo, SetAxisTickModeCommand as jo, SetAxisTicksVisibilityCommand as Xo, SetAxisVisibilityCommand as Zo, SetBarBorderRadiusCommand as Yo, SetBarWidthCommand as Jo, SetChartTypeCommand as nr, SetContentCaptionCommand as rr, SetContentSourceCommand as Qo, SetContentSubtitleCommand as ar, SetContentTitleCommand as or, SetDataLabelsFormatCommand as ei, SetGridLineStyleCommand as ti, SetGridLineWidthCommand as ni, SetGridVisibilityCommand as ri, SetHeadlineCompareWithCommand as ai, SetHeadlinePositionCommand as oi, SetHeadlineShowCommand as tn, SetHeadlineSizeCommand as ii, SetHighlightDimStyleCommand as li, SetLayerYScaleTypeCommand as si, SetLegendAlignCommand as ci, SetLegendDisplayCommand as di, SetLegendPositionCommand as ui, SetLineInterpolationCommand as hi, SetLineMissingValuesCommand as pi, SetLineWidthCommand as nn, SetMappingCommand as mi, SetNumberFormatAbbreviationCommand as gi, SetNumberFormatDecimalsCommand as rn, SetPointSizeCommand as vi, SetPolarInnerRadiusCommand as fi, SetPolarStartAngleCommand as bi, SetRuleLabelCommand as Ci, SetRuleValueCommand as yi, SetScaleDomainCommand as ze, SetScaleReverseCommand as Si, SetScaleTransformCommand as xi, SetScaleZeroCommand as an, SetStatLineCommand as wi, SetStyleRuleCommand as Nt, TEXT_ANNOTATION_DEFAULTS as Ti, ToggleCategoryLabelsCommand as Ai, ToggleContentVisibilityCommand as Qe, ToggleDataLabelsCommand as ki, ToggleGoalLineCommand as Li, ToggleLineFillCommand as Pi, ToggleLinePointsVisibilityCommand as Ii, ToggleStackTotalsCommand as Ei, UpdateAnnotationCommand as ne, alignUnitFractions as Mi, areAnchorsEqual as ir, areEndpointsComparable as Ni, buildEditMenuTriggerRegion as Oi, buildLayerStyleAddress as Di, buildObservationPredicate as Ri, canAnchorDirectLabels as zi, canBecomeCombo as _i, canBecomeHeatmap as Fi, canPlaceDataLabels as Hi, clampAnnotationTranslation as Bi, computeArrow as lr, createObservationAnchorBuilder as Vi, createObservationAnchorParser as Gi, createStyleResolver as et, createValueFormatter as $i, extractConstantValue as Ui, extractVariableName as Wi, filterLayersByGeoms as gt, findAnnotation as Ki, findAverageLineLayer as qi, findGoalLineLayer as ji, findHighlightsAtObservation as Xi, findKindStyleDeclarations as Zi, findLayerByGeom as sr, findObservationAttachment as Yi, findStyleRule as Ot, findTrendLineLayer as Ji, formatDifferenceLabel as Qi, hasMultipleGroups as el, inferDefaultDifferenceArrowEndpoints as tl, inferDifferenceArrowEndpoints as nl, isComboChartType as ve, isCompanionLayer as cr, isObservationAttachmentKind as rl, isPointWithinEditMenuTrigger as dr, isSafeUrl as al, projectAnchorToPanel as Ve, readChartType as ur, readComboLineLayerId as ol, readHighlightDimStyle as il, readMappableAesthetics as ll, readMappedVariable as sl, readObservationIndex as cl, resolveBarBandFraction as dl, resolveComparisonBasis as ul, resolveGridLineStyle as hl, resolveObservationPoint as hr, resolveShapeAnnotationStyle as pl, stepDifferenceArrowEndpoint as ml, toPanelCursor as Dt } from "@graphysdk/viz-engine";
4
4
  import { createContext as Me, useCallback as oe, useContext as Ae, useEffect as N, useId as we, useMemo as O, useRef as ee, useState as J } from "react";
5
- import { Fragment as j, jsx as n, jsxs as m } from "react/jsx-runtime";
5
+ import { Fragment as X, jsx as n, jsxs as m } from "react/jsx-runtime";
6
6
  import { useShallow as ke } from "zustand/react/shallow";
7
- import { createPortal as hr } from "react-dom";
7
+ import { createPortal as pr } from "react-dom";
8
8
  import se from "clsx";
9
9
  import { autoUpdate as gl, flip as vl, offset as fl, shift as bl, useFloating as Cl } from "@floating-ui/react-dom";
10
- import { assignInlineVars as pr } from "@vanilla-extract/dynamic";
11
- import { Extension as mr } from "@tiptap/core";
10
+ import { assignInlineVars as mr } from "@vanilla-extract/dynamic";
11
+ import { Extension as gr } from "@tiptap/core";
12
12
  import { Bold as yl } from "@tiptap/extension-bold";
13
- import { Document as Ve } from "@tiptap/extension-document";
13
+ import { Document as Ge } from "@tiptap/extension-document";
14
14
  import { HardBreak as Sl } from "@tiptap/extension-hard-break";
15
15
  import { Heading as xl } from "@tiptap/extension-heading";
16
16
  import { Italic as wl } from "@tiptap/extension-italic";
17
17
  import { Link as Tl } from "@tiptap/extension-link";
18
18
  import { Text as Al } from "@tiptap/extension-text";
19
19
  import { TextAlign as kl } from "@tiptap/extension-text-align";
20
- import { Color as Ll, FontFamily as gr, TextStyle as Pl } from "@tiptap/extension-text-style";
20
+ import { Color as Ll, FontFamily as vr, TextStyle as Pl } from "@tiptap/extension-text-style";
21
21
  import { Underline as Il } from "@tiptap/extension-underline";
22
- import { Placeholder as Dt, UndoRedo as El } from "@tiptap/extensions";
23
- import { Paragraph as vr } from "@tiptap/extension-paragraph";
24
- import { EditorContent as fr, useEditor as Ml, useEditorState as Nl } from "@tiptap/react";
22
+ import { Placeholder as Rt, UndoRedo as El } from "@tiptap/extensions";
23
+ import { Paragraph as fr } from "@tiptap/extension-paragraph";
24
+ import { EditorContent as br, useEditor as Ml, useEditorState as Nl } from "@tiptap/react";
25
25
  import { Toolbar as ce } from "@base-ui/react/toolbar";
26
26
  import { Tooltip as Se } from "@base-ui/react/tooltip";
27
27
  import { Popover as Z } from "@base-ui/react/popover";
@@ -30,13 +30,13 @@ import { Slider as ae } from "@base-ui/react/slider";
30
30
  import { Menu as D } from "@base-ui/react/menu";
31
31
  import { Toggle as Rl } from "@base-ui/react/toggle";
32
32
  import { Menu as pe } from "@base-ui/react";
33
- import Ge from "lodash-es/clamp";
33
+ import $e from "lodash-es/clamp";
34
34
  import { Accordion as Pe } from "@base-ui/react/accordion";
35
- import { NumberField as an } from "@base-ui/react/number-field";
36
- import { Radio as br } from "@base-ui/react/radio";
37
- import { RadioGroup as Cr } from "@base-ui/react/radio-group";
35
+ import { NumberField as on } from "@base-ui/react/number-field";
36
+ import { Radio as Cr } from "@base-ui/react/radio";
37
+ import { RadioGroup as yr } from "@base-ui/react/radio-group";
38
38
  import { Select as re } from "@base-ui/react/select";
39
- import { Switch as on } from "@base-ui/react/switch";
39
+ import { Switch as ln } from "@base-ui/react/switch";
40
40
  import { Input as zl } from "@base-ui/react/input";
41
41
  import './editable.css';var _l = {
42
42
  save: "حفظ",
@@ -1588,7 +1588,7 @@ import './editable.css';var _l = {
1588
1588
  millions: "M",
1589
1589
  billions: "MM"
1590
1590
  }
1591
- }, Xl = {
1591
+ }, jl = {
1592
1592
  title: "Editor Graphy",
1593
1593
  description: "Edite o seu conteúdo aqui",
1594
1594
  graphTypes: {
@@ -2100,7 +2100,7 @@ import './editable.css';var _l = {
2100
2100
  light: "Claro",
2101
2101
  dark: "Escuro"
2102
2102
  } }
2103
- }, jl = {
2103
+ }, Xl = {
2104
2104
  titleEditor: {
2105
2105
  titlePlaceholder: "Sem título",
2106
2106
  subtitlePlaceholder: "Adicionar subtítulo"
@@ -2342,24 +2342,24 @@ import './editable.css';var _l = {
2342
2342
  }
2343
2343
  }, Zl = {
2344
2344
  common: ql,
2345
- editor: Xl,
2346
- graph: jl
2345
+ editor: jl,
2346
+ graph: Xl
2347
2347
  }, Yl = {
2348
2348
  "en-GB": Ul,
2349
2349
  "en-US": Kl,
2350
2350
  ar: Bl,
2351
2351
  "pt-PT": Zl
2352
- }, Jl = [Yl, bo], Ql = ({ children: e, ...t }) => /* @__PURE__ */ n(xo, {
2352
+ }, Jl = [Yl, Co], Ql = ({ children: e, ...t }) => /* @__PURE__ */ n(wo, {
2353
2353
  dictionaries: Jl,
2354
2354
  ...t,
2355
2355
  children: e
2356
- }), es = "data-variant", yr = vr.extend({ addAttributes() {
2356
+ }), es = "data-variant", Sr = fr.extend({ addAttributes() {
2357
2357
  return { variant: {
2358
2358
  default: null,
2359
2359
  parseHTML: (e) => e.getAttribute("data-variant") ?? null,
2360
2360
  renderHTML: (e) => e.variant ? { [es]: e.variant } : {}
2361
2361
  } };
2362
- } }), ts = mr.create({
2362
+ } }), ts = gr.create({
2363
2363
  name: "preventBackspaceAcrossTitleBoundary",
2364
2364
  addOptions() {
2365
2365
  return { isTitleVisible: !0 };
@@ -2373,7 +2373,7 @@ import './editable.css';var _l = {
2373
2373
  return r.depth !== 1 || r.parentOffset !== 0 ? !1 : r.index(0) === 1;
2374
2374
  } };
2375
2375
  }
2376
- }), Rt = () => [
2376
+ }), zt = () => [
2377
2377
  Al,
2378
2378
  El,
2379
2379
  xl.configure({ levels: [
@@ -2397,11 +2397,11 @@ import './editable.css';var _l = {
2397
2397
  isTitleVisible: r,
2398
2398
  isSubtitleVisible: a
2399
2399
  }),
2400
- yr,
2401
- ...Rt(),
2402
- gr,
2400
+ Sr,
2401
+ ...zt(),
2402
+ vr,
2403
2403
  ts.configure({ isTitleVisible: r }),
2404
- Dt.configure({
2404
+ Rt.configure({
2405
2405
  showOnlyCurrent: !1,
2406
2406
  placeholder: ({ pos: o, editor: i }) => {
2407
2407
  if (r && o === 0) return e;
@@ -2410,16 +2410,16 @@ import './editable.css';var _l = {
2410
2410
  }
2411
2411
  })
2412
2412
  ], rs = ({ placeholder: e }) => [
2413
- Ve,
2414
- yr,
2415
- ...Rt(),
2416
- gr,
2417
- Dt.configure({
2413
+ Ge,
2414
+ Sr,
2415
+ ...zt(),
2416
+ vr,
2417
+ Rt.configure({
2418
2418
  showOnlyCurrent: !1,
2419
2419
  placeholder: ({ pos: t }) => t === 0 ? e : ""
2420
2420
  })
2421
- ], as = ({ isTitleVisible: e, isSubtitleVisible: t }) => e && t ? Ve.extend({ content: "block{2,}" }) : Ve, os = "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))", is = "d0bl00";
2422
- var Sr = "d0bl03", ls = "d0bl04", xr = "d0bl05", gt = "d0bl06", ss = "d0bl07", cs = "d0bl08", wr = "d0bl09", ds = "d0bl0a", us = "d0bl0b", hs = "d0bl0c", ps = "d0bl0d", ms = "d0bl0e", gs = "owf1yg0", vs = "owf1yg1", fs = "owf1yg2", bs = "owf1yg3", Cs = "owf1yg4", ys = 0.01, Ss = ({ value: e, onChange: t, label: r }) => /* @__PURE__ */ n(ae.Root, {
2421
+ ], as = ({ isTitleVisible: e, isSubtitleVisible: t }) => e && t ? Ge.extend({ content: "block{2,}" }) : Ge, os = "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))", is = "d0bl00";
2422
+ var xr = "d0bl03", ls = "d0bl04", wr = "d0bl05", vt = "d0bl06", ss = "d0bl07", cs = "d0bl08", Tr = "d0bl09", ds = "d0bl0a", us = "d0bl0b", hs = "d0bl0c", ps = "d0bl0d", ms = "d0bl0e", gs = "owf1yg0", vs = "owf1yg1", fs = "owf1yg2", bs = "owf1yg3", Cs = "owf1yg4", ys = 0.01, Ss = ({ value: e, onChange: t, label: r }) => /* @__PURE__ */ n(ae.Root, {
2423
2423
  className: gs,
2424
2424
  value: e,
2425
2425
  onValueChange: (a) => t(a),
@@ -2436,8 +2436,8 @@ var Sr = "d0bl03", ls = "d0bl04", xr = "d0bl05", gt = "d0bl06", ss = "d0bl07", c
2436
2436
  })]
2437
2437
  })
2438
2438
  })
2439
- }), xs = "transparent", vt = Jn.map((e) => ue[e]), ws = Object.fromEntries(Jn.map((e) => [ue[e], e])), Ts = (e) => vt.some((t) => Ar(t, e)), As = ({ color: e, onChange: t, isOpen: r, onOpenChange: a, children: o, label: i, popupAttributes: l, opacity: s, onOpacityChange: c, hasTransparentOption: u = !1 }) => {
2440
- const d = k(), h = Ls(), v = u ? [xs, ...vt] : vt, p = (g) => {
2439
+ }), xs = "transparent", ft = Qn.map((e) => ue[e]), ws = Object.fromEntries(Qn.map((e) => [ue[e], e])), Ts = (e) => ft.some((t) => kr(t, e)), As = ({ color: e, onChange: t, isOpen: r, onOpenChange: a, children: o, label: i, popupAttributes: l, opacity: s, onOpacityChange: c, hasTransparentOption: u = !1 }) => {
2440
+ const d = k(), h = Ls(), v = u ? [xs, ...ft] : ft, p = (g) => {
2441
2441
  t(g), a(!1);
2442
2442
  };
2443
2443
  return /* @__PURE__ */ m(Z.Root, {
@@ -2457,19 +2457,19 @@ var Sr = "d0bl03", ls = "d0bl04", xr = "d0bl05", gt = "d0bl06", ss = "d0bl07", c
2457
2457
  children: /* @__PURE__ */ n(Q, { children: /* @__PURE__ */ n(Z.Positioner, {
2458
2458
  sideOffset: 6,
2459
2459
  align: "start",
2460
- className: Sr,
2460
+ className: xr,
2461
2461
  children: /* @__PURE__ */ m(Z.Popup, {
2462
2462
  className: ls,
2463
2463
  onMouseDown: (g) => g.preventDefault(),
2464
2464
  ...l,
2465
2465
  children: [
2466
- /* @__PURE__ */ n(ln, {
2466
+ /* @__PURE__ */ n(sn, {
2467
2467
  title: d("graph.colorDropdown.colors"),
2468
2468
  colors: v,
2469
2469
  currentColor: e,
2470
2470
  onPick: p
2471
2471
  }),
2472
- h.length > 0 && /* @__PURE__ */ n(ln, {
2472
+ h.length > 0 && /* @__PURE__ */ n(sn, {
2473
2473
  title: d("graph.colorDropdown.chartColors"),
2474
2474
  colors: h,
2475
2475
  currentColor: e,
@@ -2496,12 +2496,12 @@ var Sr = "d0bl03", ls = "d0bl04", xr = "d0bl05", gt = "d0bl06", ss = "d0bl07", c
2496
2496
  }) })
2497
2497
  })]
2498
2498
  });
2499
- }, ln = ({ title: e, colors: t, currentColor: r, onPick: a }) => {
2499
+ }, sn = ({ title: e, colors: t, currentColor: r, onPick: a }) => {
2500
2500
  const o = k();
2501
2501
  return /* @__PURE__ */ m("div", {
2502
- className: xr,
2502
+ className: wr,
2503
2503
  children: [/* @__PURE__ */ n("div", {
2504
- className: gt,
2504
+ className: vt,
2505
2505
  children: e
2506
2506
  }), /* @__PURE__ */ n("div", {
2507
2507
  className: ss,
@@ -2509,33 +2509,33 @@ var Sr = "d0bl03", ls = "d0bl04", xr = "d0bl05", gt = "d0bl06", ss = "d0bl07", c
2509
2509
  type: "button",
2510
2510
  "aria-label": i === "transparent" ? o("graph.colorDropdown.transparent") : i,
2511
2511
  className: cs,
2512
- "data-active": Ar(i, r),
2512
+ "data-active": kr(i, r),
2513
2513
  onMouseDown: (l) => l.preventDefault(),
2514
2514
  onClick: () => a(i),
2515
2515
  children: /* @__PURE__ */ n("span", {
2516
- className: wr,
2517
- style: Tr(i)
2516
+ className: Tr,
2517
+ style: Ar(i)
2518
2518
  })
2519
2519
  }, i))
2520
2520
  })]
2521
2521
  });
2522
2522
  }, ks = ({ value: e, onChange: t, popupAttributes: r }) => {
2523
- const a = k(), [o, i] = J(!1), l = to(e) ? e : "#000000", s = Ps(l);
2523
+ const a = k(), [o, i] = J(!1), l = no(e) ? e : "#000000", s = Ps(l);
2524
2524
  return /* @__PURE__ */ m(Z.Root, {
2525
2525
  open: o,
2526
2526
  onOpenChange: i,
2527
2527
  children: [/* @__PURE__ */ m("div", {
2528
- className: xr,
2528
+ className: wr,
2529
2529
  children: [/* @__PURE__ */ n("div", {
2530
- className: gt,
2530
+ className: vt,
2531
2531
  children: a("graph.colorDropdown.custom")
2532
2532
  }), /* @__PURE__ */ m(Z.Trigger, {
2533
2533
  className: ds,
2534
2534
  onMouseDown: (c) => c.preventDefault(),
2535
2535
  "aria-label": a("graph.colorDropdown.pickCustom"),
2536
2536
  children: [/* @__PURE__ */ n("span", {
2537
- className: wr,
2538
- style: Tr(l)
2537
+ className: Tr,
2538
+ style: Ar(l)
2539
2539
  }), /* @__PURE__ */ n("span", {
2540
2540
  className: us,
2541
2541
  children: s
@@ -2547,14 +2547,14 @@ var Sr = "d0bl03", ls = "d0bl04", xr = "d0bl05", gt = "d0bl06", ss = "d0bl07", c
2547
2547
  side: "right",
2548
2548
  align: "start",
2549
2549
  sideOffset: 18,
2550
- className: Sr,
2550
+ className: xr,
2551
2551
  children: /* @__PURE__ */ m(Z.Popup, {
2552
2552
  className: hs,
2553
2553
  onMouseDown: (c) => c.preventDefault(),
2554
2554
  ...r,
2555
2555
  children: [
2556
2556
  /* @__PURE__ */ n("div", {
2557
- className: gt,
2557
+ className: vt,
2558
2558
  children: a("graph.colorDropdown.pickColor")
2559
2559
  }),
2560
2560
  /* @__PURE__ */ n(Dl, {
@@ -2575,7 +2575,7 @@ var Sr = "d0bl03", ls = "d0bl04", xr = "d0bl05", gt = "d0bl06", ss = "d0bl07", c
2575
2575
  })]
2576
2576
  });
2577
2577
  }, Ls = () => {
2578
- const e = _((t) => t.scales.color);
2578
+ const e = V((t) => t.scales.color);
2579
2579
  return O(() => {
2580
2580
  if (!e || e.kind !== "visual") return [];
2581
2581
  const t = /* @__PURE__ */ new Set();
@@ -2585,18 +2585,18 @@ var Sr = "d0bl03", ls = "d0bl04", xr = "d0bl05", gt = "d0bl06", ss = "d0bl07", c
2585
2585
  }
2586
2586
  return [...t];
2587
2587
  }, [e]);
2588
- }, Tr = (e) => e === "transparent" ? {
2588
+ }, Ar = (e) => e === "transparent" ? {
2589
2589
  background: os,
2590
2590
  border: `1px solid ${ue.border100}`
2591
2591
  } : {
2592
2592
  background: e,
2593
- border: `1px solid ${so(e, 0.1)}`
2593
+ border: `1px solid ${co(e, 0.1)}`
2594
2594
  }, Ps = (e) => {
2595
2595
  const { themeValues: t } = Ee();
2596
- if (no(e)) return e.toUpperCase();
2596
+ if (ro(e)) return e.toUpperCase();
2597
2597
  const r = ws[e];
2598
2598
  return r ? t[r].toUpperCase() : "#000000";
2599
- }, Ar = (e, t) => t === null ? !1 : e.toLowerCase() === t.toLowerCase(), Is = "l9kff0", Es = "l9kff1", Ms = "l9kff2", Ns = "xn24px0", Os = "xn24px1", Ds = "xn24px2", Rs = ({ children: e, popupAttributes: t }) => /* @__PURE__ */ n(D.Portal, {
2599
+ }, kr = (e, t) => t === null ? !1 : e.toLowerCase() === t.toLowerCase(), Is = "l9kff0", Es = "l9kff1", Ms = "l9kff2", Ns = "xn24px0", Os = "xn24px1", Ds = "xn24px2", Rs = ({ children: e, popupAttributes: t }) => /* @__PURE__ */ n(D.Portal, {
2600
2600
  container: ie(),
2601
2601
  children: /* @__PURE__ */ n(Q, { children: /* @__PURE__ */ n(D.Positioner, {
2602
2602
  side: "bottom",
@@ -2627,7 +2627,7 @@ var Sr = "d0bl03", ls = "d0bl04", xr = "d0bl05", gt = "d0bl06", ss = "d0bl07", c
2627
2627
  className: se(Ms, e)
2628
2628
  }), Bs = ({ children: e }) => {
2629
2629
  const t = ie();
2630
- return t === null ? null : hr(/* @__PURE__ */ n(Q, { children: e }), t);
2630
+ return t === null ? null : pr(/* @__PURE__ */ n(Q, { children: e }), t);
2631
2631
  }, K = {
2632
2632
  Portal: Bs,
2633
2633
  Root: _s,
@@ -2646,12 +2646,12 @@ var Sr = "d0bl03", ls = "d0bl04", xr = "d0bl05", gt = "d0bl06", ss = "d0bl07", c
2646
2646
  strokeLinejoin: "round",
2647
2647
  children: /* @__PURE__ */ n("path", { d: "m6 9 6 6 6-6" })
2648
2648
  })
2649
- }), Vs = "'Noto Serif', Georgia, 'Times New Roman', serif, 'Apple Color Emoji', 'NotoColorEmoji'", Gs = `'Aeonik', 'Aeonik Fallback', ${Yn}`, $s = "'PT Mono', 'Courier New', monospace, 'Apple Color Emoji', 'NotoColorEmoji'", Us = "'Intruding Cat', cursive, 'Apple Color Emoji', 'NotoColorEmoji'", ft = [
2649
+ }), Vs = "'Noto Serif', Georgia, 'Times New Roman', serif, 'Apple Color Emoji', 'NotoColorEmoji'", Gs = `'Aeonik', 'Aeonik Fallback', ${Jn}`, $s = "'PT Mono', 'Courier New', monospace, 'Apple Color Emoji', 'NotoColorEmoji'", Us = "'Intruding Cat', cursive, 'Apple Color Emoji', 'NotoColorEmoji'", bt = [
2650
2650
  {
2651
2651
  id: "modern",
2652
2652
  label: "Modern",
2653
2653
  preview: "Aa",
2654
- fontFamily: Yn
2654
+ fontFamily: Jn
2655
2655
  },
2656
2656
  {
2657
2657
  id: "fresh",
@@ -2677,8 +2677,8 @@ var Sr = "d0bl03", ls = "d0bl04", xr = "d0bl05", gt = "d0bl06", ss = "d0bl07", c
2677
2677
  preview: "Aa",
2678
2678
  fontFamily: Us
2679
2679
  }
2680
- ], Ws = (e) => e ? ft.find((t) => t.fontFamily === e) ?? null : null, kr = "_70l3rt0", Lr = "_70l3rt1", Pr = "_70l3rt3", Ir = "_70l3rt4", Er = "_70l3rt5", Ks = ({ editor: e, currentFontFamily: t, isOpen: r, onOpenChange: a }) => {
2681
- const o = k(), i = Ws(t) ?? ft[0], l = (s) => {
2680
+ ], Ws = (e) => e ? bt.find((t) => t.fontFamily === e) ?? null : null, Lr = "_70l3rt0", Pr = "_70l3rt1", Ir = "_70l3rt3", Er = "_70l3rt4", Mr = "_70l3rt5", Ks = ({ editor: e, currentFontFamily: t, isOpen: r, onOpenChange: a }) => {
2681
+ const o = k(), i = Ws(t) ?? bt[0], l = (s) => {
2682
2682
  e.chain().focus().setFontFamily(s.fontFamily).run();
2683
2683
  };
2684
2684
  return /* @__PURE__ */ m(D.Root, {
@@ -2687,10 +2687,10 @@ var Sr = "d0bl03", ls = "d0bl04", xr = "d0bl05", gt = "d0bl06", ss = "d0bl07", c
2687
2687
  children: [/* @__PURE__ */ m(D.Trigger, {
2688
2688
  render: /* @__PURE__ */ n(ce.Button, {}),
2689
2689
  "aria-label": o("graph.toolbar.font.ariaLabel"),
2690
- className: kr,
2690
+ className: Lr,
2691
2691
  onMouseDown: (s) => s.preventDefault(),
2692
2692
  children: [/* @__PURE__ */ n("span", {
2693
- className: Lr,
2693
+ className: Pr,
2694
2694
  style: { fontFamily: i?.fontFamily },
2695
2695
  children: i?.preview
2696
2696
  }), /* @__PURE__ */ n(Ne, { size: "sm" })]
@@ -2700,12 +2700,12 @@ var Sr = "d0bl03", ls = "d0bl04", xr = "d0bl05", gt = "d0bl06", ss = "d0bl07", c
2700
2700
  side: "bottom",
2701
2701
  align: "start",
2702
2702
  sideOffset: 6,
2703
- className: Pr,
2703
+ className: Ir,
2704
2704
  children: /* @__PURE__ */ n(D.Popup, {
2705
- className: Ir,
2705
+ className: Er,
2706
2706
  onMouseDown: (s) => s.preventDefault(),
2707
- children: ft.map((s) => /* @__PURE__ */ n(D.Item, {
2708
- className: Er,
2707
+ children: bt.map((s) => /* @__PURE__ */ n(D.Item, {
2708
+ className: Mr,
2709
2709
  "data-selected": s.id === i?.id,
2710
2710
  onClick: () => l(s),
2711
2711
  children: /* @__PURE__ */ n("span", {
@@ -2717,17 +2717,17 @@ var Sr = "d0bl03", ls = "d0bl04", xr = "d0bl05", gt = "d0bl06", ss = "d0bl07", c
2717
2717
  }) })
2718
2718
  })]
2719
2719
  });
2720
- }, Mr = {
2720
+ }, Nr = {
2721
2721
  id: "text",
2722
2722
  translationKey: "graph.toolbar.heading.text",
2723
2723
  previewFont: ue.fontTextEditorBody
2724
- }, sn = [
2724
+ }, cn = [
2725
2725
  {
2726
2726
  id: "caption",
2727
2727
  translationKey: "graph.toolbar.heading.caption",
2728
2728
  previewFont: ue.fontTextEditorH6
2729
2729
  },
2730
- Mr,
2730
+ Nr,
2731
2731
  {
2732
2732
  id: "h3",
2733
2733
  translationKey: "graph.toolbar.heading.heading3",
@@ -2744,17 +2744,17 @@ var Sr = "d0bl03", ls = "d0bl04", xr = "d0bl05", gt = "d0bl06", ss = "d0bl07", c
2744
2744
  previewFont: ue.fontTextEditorH1
2745
2745
  }
2746
2746
  ], qs = ({ editor: e, activeStyle: t, isOpen: r, onOpenChange: a }) => {
2747
- const o = k(), i = sn.find((l) => l.id === t) ?? Mr;
2747
+ const o = k(), i = cn.find((l) => l.id === t) ?? Nr;
2748
2748
  return /* @__PURE__ */ m(D.Root, {
2749
2749
  open: r,
2750
2750
  onOpenChange: a,
2751
2751
  children: [/* @__PURE__ */ m(D.Trigger, {
2752
2752
  render: /* @__PURE__ */ n(ce.Button, {}),
2753
2753
  "aria-label": o("graph.toolbar.heading.ariaLabel"),
2754
- className: kr,
2754
+ className: Lr,
2755
2755
  onMouseDown: (l) => l.preventDefault(),
2756
2756
  children: [/* @__PURE__ */ n("span", {
2757
- className: Lr,
2757
+ className: Pr,
2758
2758
  children: o(i.translationKey)
2759
2759
  }), /* @__PURE__ */ n(Ne, { size: "sm" })]
2760
2760
  }), /* @__PURE__ */ n(D.Portal, {
@@ -2763,15 +2763,15 @@ var Sr = "d0bl03", ls = "d0bl04", xr = "d0bl05", gt = "d0bl06", ss = "d0bl07", c
2763
2763
  side: "bottom",
2764
2764
  align: "start",
2765
2765
  sideOffset: 6,
2766
- className: Pr,
2766
+ className: Ir,
2767
2767
  children: /* @__PURE__ */ n(D.Popup, {
2768
- className: Ir,
2768
+ className: Er,
2769
2769
  onMouseDown: (l) => l.preventDefault(),
2770
- children: sn.map((l) => /* @__PURE__ */ n(D.Item, {
2771
- className: Er,
2770
+ children: cn.map((l) => /* @__PURE__ */ n(D.Item, {
2771
+ className: Mr,
2772
2772
  "data-selected": l.id === i.id,
2773
- onClick: () => Xs(e, l.id),
2774
- children: /* @__PURE__ */ n(js, {
2773
+ onClick: () => js(e, l.id),
2774
+ children: /* @__PURE__ */ n(Xs, {
2775
2775
  font: l.previewFont,
2776
2776
  children: o(l.translationKey)
2777
2777
  })
@@ -2780,7 +2780,7 @@ var Sr = "d0bl03", ls = "d0bl04", xr = "d0bl05", gt = "d0bl06", ss = "d0bl07", c
2780
2780
  }) })
2781
2781
  })]
2782
2782
  });
2783
- }, Xs = (e, t) => {
2783
+ }, js = (e, t) => {
2784
2784
  switch (t) {
2785
2785
  case "caption":
2786
2786
  e.chain().focus().setNode("paragraph", { variant: "caption" }).run();
@@ -2797,13 +2797,13 @@ var Sr = "d0bl03", ls = "d0bl04", xr = "d0bl05", gt = "d0bl06", ss = "d0bl07", c
2797
2797
  case "h3":
2798
2798
  e.chain().focus().setHeading({ level: 3 }).run();
2799
2799
  }
2800
- }, js = ({ font: e, children: t }) => /* @__PURE__ */ n("span", {
2800
+ }, Xs = ({ font: e, children: t }) => /* @__PURE__ */ n("span", {
2801
2801
  style: {
2802
2802
  font: e,
2803
2803
  margin: 0
2804
2804
  },
2805
2805
  children: t
2806
- }), Nr = (e) => /* @__PURE__ */ n(A, {
2806
+ }), Or = (e) => /* @__PURE__ */ n(A, {
2807
2807
  ...e,
2808
2808
  children: /* @__PURE__ */ n("g", {
2809
2809
  stroke: "currentColor",
@@ -2833,14 +2833,14 @@ var Sr = "d0bl03", ls = "d0bl04", xr = "d0bl05", gt = "d0bl06", ss = "d0bl07", c
2833
2833
  }), Js = (e) => !e.content || e.content.length === 0 ? !0 : e.content.every((t) => !t.content || t.content.length === 0), Qs = (e) => {
2834
2834
  const { $from: t } = e.state.selection, r = t.parent.textContent, a = t.parentOffset, o = t.start();
2835
2835
  let i = a;
2836
- for (; i > 0 && cn(r[i - 1]); ) i -= 1;
2836
+ for (; i > 0 && dn(r[i - 1]); ) i -= 1;
2837
2837
  let l = a;
2838
- for (; l < r.length && cn(r[l]); ) l += 1;
2838
+ for (; l < r.length && dn(r[l]); ) l += 1;
2839
2839
  return {
2840
2840
  from: o + i,
2841
2841
  to: o + l
2842
2842
  };
2843
- }, cn = (e) => e !== void 0 && /\S/.test(e), ec = "fop13s0", tc = "fop13s1", nc = "fop13s2", rc = "fop13s3", dn = "fop13s4", ac = ({ editor: e, currentUrl: t, isActive: r, isOpen: a, onOpenChange: o }) => {
2843
+ }, dn = (e) => e !== void 0 && /\S/.test(e), ec = "fop13s0", tc = "fop13s1", nc = "fop13s2", rc = "fop13s3", un = "fop13s4", ac = ({ editor: e, currentUrl: t, isActive: r, isOpen: a, onOpenChange: o }) => {
2844
2844
  const i = k(), [l, s] = J(""), c = ee(null);
2845
2845
  N(() => {
2846
2846
  a && s(t ?? "");
@@ -2889,16 +2889,16 @@ var Sr = "d0bl03", ls = "d0bl04", xr = "d0bl05", gt = "d0bl06", ss = "d0bl07", c
2889
2889
  /* @__PURE__ */ n("button", {
2890
2890
  type: "button",
2891
2891
  "aria-label": i("common.cancel"),
2892
- className: dn,
2892
+ className: un,
2893
2893
  onClick: d,
2894
2894
  children: /* @__PURE__ */ n(Ys, {})
2895
2895
  }),
2896
2896
  /* @__PURE__ */ n("button", {
2897
2897
  type: "button",
2898
2898
  "aria-label": i("graph.toolbar.link.apply"),
2899
- className: dn,
2899
+ className: un,
2900
2900
  onClick: u,
2901
- children: /* @__PURE__ */ n(Nr, {})
2901
+ children: /* @__PURE__ */ n(Or, {})
2902
2902
  })
2903
2903
  ]
2904
2904
  })
@@ -2921,7 +2921,7 @@ var Sr = "d0bl03", ls = "d0bl04", xr = "d0bl05", gt = "d0bl06", ss = "d0bl07", c
2921
2921
  }
2922
2922
  const o = Qs(e);
2923
2923
  e.chain().focus().setTextSelection(o).setLink({ href: r }).run();
2924
- }, Or = (e) => /* @__PURE__ */ n(A, {
2924
+ }, Dr = (e) => /* @__PURE__ */ n(A, {
2925
2925
  ...e,
2926
2926
  children: /* @__PURE__ */ m("g", {
2927
2927
  stroke: "currentColor",
@@ -2934,7 +2934,7 @@ var Sr = "d0bl03", ls = "d0bl04", xr = "d0bl05", gt = "d0bl06", ss = "d0bl07", c
2934
2934
  /* @__PURE__ */ n("path", { d: "M19 19H5" })
2935
2935
  ]
2936
2936
  })
2937
- }), Dr = (e) => /* @__PURE__ */ n(A, {
2937
+ }), Rr = (e) => /* @__PURE__ */ n(A, {
2938
2938
  ...e,
2939
2939
  children: /* @__PURE__ */ m("g", {
2940
2940
  stroke: "currentColor",
@@ -2947,7 +2947,7 @@ var Sr = "d0bl03", ls = "d0bl04", xr = "d0bl05", gt = "d0bl06", ss = "d0bl07", c
2947
2947
  /* @__PURE__ */ n("path", { d: "M21 19H7" })
2948
2948
  ]
2949
2949
  })
2950
- }), Rr = (e) => /* @__PURE__ */ n(A, {
2950
+ }), zr = (e) => /* @__PURE__ */ n(A, {
2951
2951
  ...e,
2952
2952
  children: /* @__PURE__ */ m("g", {
2953
2953
  stroke: "currentColor",
@@ -2984,24 +2984,24 @@ var Sr = "d0bl03", ls = "d0bl04", xr = "d0bl05", gt = "d0bl06", ss = "d0bl07", c
2984
2984
  })] });
2985
2985
  }, cc = ({ editor: e, activeAlignment: t = "left" }) => {
2986
2986
  const r = k();
2987
- return /* @__PURE__ */ m(j, { children: [
2987
+ return /* @__PURE__ */ m(X, { children: [
2988
2988
  /* @__PURE__ */ n(xe, {
2989
2989
  label: r("graph.toolbar.textAlign.left"),
2990
2990
  isActive: t === "left",
2991
2991
  onToggle: () => e.chain().focus().setTextAlign("left").run(),
2992
- children: /* @__PURE__ */ n(Rr, {})
2992
+ children: /* @__PURE__ */ n(zr, {})
2993
2993
  }),
2994
2994
  /* @__PURE__ */ n(xe, {
2995
2995
  label: r("graph.toolbar.textAlign.center"),
2996
2996
  isActive: t === "center",
2997
2997
  onToggle: () => e.chain().focus().setTextAlign("center").run(),
2998
- children: /* @__PURE__ */ n(Or, {})
2998
+ children: /* @__PURE__ */ n(Dr, {})
2999
2999
  }),
3000
3000
  /* @__PURE__ */ n(xe, {
3001
3001
  label: r("graph.toolbar.textAlign.right"),
3002
3002
  isActive: t === "right",
3003
3003
  onToggle: () => e.chain().focus().setTextAlign("right").run(),
3004
- children: /* @__PURE__ */ n(Dr, {})
3004
+ children: /* @__PURE__ */ n(Rr, {})
3005
3005
  })
3006
3006
  ] });
3007
3007
  }, dc = "_1u34vl40", uc = ({ editor: e }) => ({
@@ -3102,14 +3102,14 @@ var Sr = "d0bl03", ls = "d0bl04", xr = "d0bl05", gt = "d0bl06", ss = "d0bl07", c
3102
3102
  }) })
3103
3103
  ]
3104
3104
  }) });
3105
- }, fc = "_1uy50v30", zr = ({ editor: e, ariaLabel: t }) => /* @__PURE__ */ m("div", {
3105
+ }, fc = "_1uy50v30", _r = ({ editor: e, ariaLabel: t }) => /* @__PURE__ */ m("div", {
3106
3106
  className: fc,
3107
- children: [/* @__PURE__ */ n(vc, { editor: e }), /* @__PURE__ */ n(fr, {
3107
+ children: [/* @__PURE__ */ n(vc, { editor: e }), /* @__PURE__ */ n(br, {
3108
3108
  editor: e,
3109
3109
  "aria-label": t
3110
3110
  })]
3111
- }), bc = 200, zt = ({ content: e, extensions: t, isEditable: r, onUpdate: a, updateDebounceMs: o = bc }) => {
3112
- const i = ee(un(e)), l = ee(i.current), s = ko((u) => {
3111
+ }), bc = 200, _t = ({ content: e, extensions: t, isEditable: r, onUpdate: a, updateDebounceMs: o = bc }) => {
3112
+ const i = ee(hn(e)), l = ee(i.current), s = Lo((u) => {
3113
3113
  l.current = u, a?.(u);
3114
3114
  }, o), c = Ml({
3115
3115
  extensions: t,
@@ -3118,7 +3118,7 @@ var Sr = "d0bl03", ls = "d0bl04", xr = "d0bl05", gt = "d0bl06", ss = "d0bl07", c
3118
3118
  immediatelyRender: !1,
3119
3119
  onUpdate: ({ editor: u }) => {
3120
3120
  const d = u.getJSON();
3121
- if (ct(l.current, d)) return s.cancel();
3121
+ if (dt(l.current, d)) return s.cancel();
3122
3122
  s.run(d);
3123
3123
  }
3124
3124
  });
@@ -3126,14 +3126,14 @@ var Sr = "d0bl03", ls = "d0bl04", xr = "d0bl05", gt = "d0bl06", ss = "d0bl07", c
3126
3126
  c?.setEditable(r);
3127
3127
  }, [c, r]), N(() => {
3128
3128
  if (!c) return;
3129
- const u = un(e);
3130
- ct(l.current, u) || (l.current = u, !ct(c.getJSON(), u) && (s.cancel(), Cc(c, u)));
3129
+ const u = hn(e);
3130
+ dt(l.current, u) || (l.current = u, !dt(c.getJSON(), u) && (s.cancel(), Cc(c, u)));
3131
3131
  }, [
3132
3132
  c,
3133
3133
  e,
3134
3134
  s
3135
3135
  ]), N(() => () => s.flush(), [s]), c;
3136
- }, un = (e) => e === null ? {
3136
+ }, hn = (e) => e === null ? {
3137
3137
  type: "doc",
3138
3138
  content: []
3139
3139
  } : typeof e == "string" ? {
@@ -3153,31 +3153,31 @@ var Sr = "d0bl03", ls = "d0bl04", xr = "d0bl05", gt = "d0bl06", ss = "d0bl07", c
3153
3153
  from: Math.min(r, o),
3154
3154
  to: Math.min(a, o)
3155
3155
  });
3156
- }, ct = (e, t) => JSON.stringify($e(e)) === JSON.stringify($e(t)), $e = (e) => Array.isArray(e) ? e.map($e) : e === null || typeof e != "object" ? e : Object.fromEntries(Object.entries(e).map(([t, r]) => [t, $e(r)]).filter(([, t]) => !yc(t)).sort(([t], [r]) => String(t).localeCompare(String(r)))), yc = (e) => e == null || typeof e == "object" && Object.keys(e).length === 0, Sc = ({ caption: e }) => {
3156
+ }, dt = (e, t) => JSON.stringify(Ue(e)) === JSON.stringify(Ue(t)), Ue = (e) => Array.isArray(e) ? e.map(Ue) : e === null || typeof e != "object" ? e : Object.fromEntries(Object.entries(e).map(([t, r]) => [t, Ue(r)]).filter(([, t]) => !yc(t)).sort(([t], [r]) => String(t).localeCompare(String(r)))), yc = (e) => e == null || typeof e == "object" && Object.keys(e).length === 0, Sc = ({ caption: e }) => {
3157
3157
  const { dispatch: t } = le();
3158
- return /* @__PURE__ */ n(zr, {
3159
- editor: zt({
3158
+ return /* @__PURE__ */ n(_r, {
3159
+ editor: _t({
3160
3160
  content: e,
3161
3161
  extensions: O(() => rs({ placeholder: "Add caption" }), []),
3162
3162
  isEditable: !0,
3163
3163
  onUpdate: (r) => {
3164
3164
  const a = Js(r) ? null : r;
3165
- t(new nr({ caption: a }));
3165
+ t(new rr({ caption: a }));
3166
3166
  }
3167
3167
  }),
3168
3168
  ariaLabel: "Chart caption"
3169
3169
  });
3170
3170
  }, xc = (e) => [
3171
- Ve,
3172
- vr,
3173
- ...Rt(),
3171
+ Ge,
3172
+ fr,
3173
+ ...zt(),
3174
3174
  Tc,
3175
- Dt.configure({
3175
+ Rt.configure({
3176
3176
  showOnlyCurrent: !1,
3177
3177
  placeholder: ({ pos: t }) => t === 0 ? e : ""
3178
3178
  })
3179
3179
  ], wc = ({ annotation: e }) => {
3180
- const t = k(), { dispatch: r } = le(), a = U(), o = O(() => xc(t("graph.annotations.text.placeholder")), [t]), i = zt({
3180
+ const t = k(), { dispatch: r } = le(), a = U(), o = O(() => xc(t("graph.annotations.text.placeholder")), [t]), i = _t({
3181
3181
  content: e.content,
3182
3182
  extensions: o,
3183
3183
  isEditable: !0,
@@ -3194,16 +3194,16 @@ var Sr = "d0bl03", ls = "d0bl04", xr = "d0bl05", gt = "d0bl06", ss = "d0bl07", c
3194
3194
  return l(i), () => l(null);
3195
3195
  }, [i, a]), N(() => {
3196
3196
  i?.commands.focus("end", { scrollIntoView: !1 });
3197
- }, [i]), /* @__PURE__ */ n(fr, {
3197
+ }, [i]), /* @__PURE__ */ n(br, {
3198
3198
  "aria-label": t("graph.annotations.text.editLabel"),
3199
- className: vo,
3199
+ className: fo,
3200
3200
  editor: i,
3201
3201
  "data-testid": "text-annotation-editor"
3202
3202
  });
3203
- }, hn = (e) => {
3204
- const t = ho(e);
3203
+ }, pn = (e) => {
3204
+ const t = po(e);
3205
3205
  return t === void 0 ? {} : { style: `font-family: ${t}` };
3206
- }, Tc = mr.create({
3206
+ }, Tc = gr.create({
3207
3207
  name: "annotationTextStyleAttributes",
3208
3208
  addGlobalAttributes() {
3209
3209
  return [{
@@ -3211,11 +3211,11 @@ var Sr = "d0bl03", ls = "d0bl04", xr = "d0bl05", gt = "d0bl06", ss = "d0bl07", c
3211
3211
  attributes: {
3212
3212
  fontFamily: {
3213
3213
  default: null,
3214
- renderHTML: (e) => hn(e.fontFamily)
3214
+ renderHTML: (e) => pn(e.fontFamily)
3215
3215
  },
3216
3216
  font: {
3217
3217
  default: null,
3218
- renderHTML: (e) => hn(e.font)
3218
+ renderHTML: (e) => pn(e.font)
3219
3219
  },
3220
3220
  fontSize: {
3221
3221
  default: null,
@@ -3240,9 +3240,9 @@ var Sr = "d0bl03", ls = "d0bl04", xr = "d0bl05", gt = "d0bl06", ss = "d0bl07", c
3240
3240
  title: Ec(t?.content ?? []),
3241
3241
  subtitle: Mc(r)
3242
3242
  };
3243
- }, _t = (e) => ({
3243
+ }, Ft = (e) => ({
3244
3244
  type: e.type ?? "text",
3245
- ...e.content !== void 0 ? { content: e.content.map(_t) } : {},
3245
+ ...e.content !== void 0 ? { content: e.content.map(Ft) } : {},
3246
3246
  ...e.text !== void 0 ? { text: e.text } : {},
3247
3247
  ...e.marks !== void 0 ? { marks: e.marks } : {},
3248
3248
  ...e.attrs !== void 0 ? { attrs: e.attrs } : {}
@@ -3255,7 +3255,7 @@ var Sr = "d0bl03", ls = "d0bl04", xr = "d0bl05", gt = "d0bl06", ss = "d0bl07", c
3255
3255
  type: "text",
3256
3256
  text: e
3257
3257
  }]
3258
- }] : e.type === "doc" && e.content ? e.content.length === 0 ? [{ type: "paragraph" }] : e.content.map(pn) : [pn(e)], pn = (e) => e.type === "paragraph" ? e : {
3258
+ }] : e.type === "doc" && e.content ? e.content.length === 0 ? [{ type: "paragraph" }] : e.content.map(mn) : [mn(e)], mn = (e) => e.type === "paragraph" ? e : {
3259
3259
  type: "paragraph",
3260
3260
  content: e.content ?? [e]
3261
3261
  }, Ec = (e) => {
@@ -3263,7 +3263,7 @@ var Sr = "d0bl03", ls = "d0bl04", xr = "d0bl05", gt = "d0bl06", ss = "d0bl07", c
3263
3263
  const [t] = e;
3264
3264
  return t && e.length === 1 && t.type === "text" && (!t.marks || t.marks.length === 0) ? t.text ?? null : {
3265
3265
  type: "paragraph",
3266
- content: e.map(_t)
3266
+ content: e.map(Ft)
3267
3267
  };
3268
3268
  }, Mc = (e) => {
3269
3269
  const t = e.filter((a) => (a.content ?? []).length > 0);
@@ -3275,7 +3275,7 @@ var Sr = "d0bl03", ls = "d0bl04", xr = "d0bl05", gt = "d0bl06", ss = "d0bl07", c
3275
3275
  }
3276
3276
  return {
3277
3277
  type: "doc",
3278
- content: t.map(_t)
3278
+ content: t.map(Ft)
3279
3279
  };
3280
3280
  }, Nc = ({ title: e, isTitleVisible: t, isSubtitleVisible: r, subtitle: a }) => {
3281
3281
  const { dispatch: o } = le(), i = O(() => ns({
@@ -3284,8 +3284,8 @@ var Sr = "d0bl03", ls = "d0bl04", xr = "d0bl05", gt = "d0bl06", ss = "d0bl07", c
3284
3284
  isTitleVisible: t,
3285
3285
  isSubtitleVisible: r
3286
3286
  }), [t, r]);
3287
- return /* @__PURE__ */ n(zr, {
3288
- editor: zt({
3287
+ return /* @__PURE__ */ n(_r, {
3288
+ editor: _t({
3289
3289
  content: O(() => kc({
3290
3290
  title: e,
3291
3291
  isTitleVisible: t,
@@ -3301,7 +3301,7 @@ var Sr = "d0bl03", ls = "d0bl04", xr = "d0bl05", gt = "d0bl06", ss = "d0bl07", c
3301
3301
  isEditable: !0,
3302
3302
  onUpdate: (l) => {
3303
3303
  const s = Lc(l);
3304
- t && o(new ar({ title: s.title })), r && o(new rr({ subtitle: s.subtitle }));
3304
+ t && o(new or({ title: s.title })), r && o(new ar({ subtitle: s.subtitle }));
3305
3305
  }
3306
3306
  }),
3307
3307
  ariaLabel: "Chart title and subtitle"
@@ -3310,20 +3310,20 @@ var Sr = "d0bl03", ls = "d0bl04", xr = "d0bl05", gt = "d0bl06", ss = "d0bl07", c
3310
3310
  Title: Nc,
3311
3311
  Caption: Sc,
3312
3312
  TextAnnotation: wc
3313
- }, Dc = "data-graphy-chart-chrome", Rc = "data-graphy-chart-menu", _r = { [Rc]: "" }, et = (e) => ({ [Dc]: e }), Be = (e, t) => e instanceof Element && e.closest(`[data-graphy-chart-chrome="${CSS.escape(t)}"]`) !== null, zc = (e) => e instanceof Element && e.closest("[data-graphy-chart-menu]") !== null, bt = (e) => e instanceof Element && e.closest("[data-graphy-chart-chrome]") !== null, Fr = (e, t, r) => r !== null && cr({
3313
+ }, Dc = "data-graphy-chart-chrome", Rc = "data-graphy-chart-menu", Fr = { [Rc]: "" }, tt = (e) => ({ [Dc]: e }), Be = (e, t) => e instanceof Element && e.closest(`[data-graphy-chart-chrome="${CSS.escape(t)}"]`) !== null, zc = (e) => e instanceof Element && e.closest("[data-graphy-chart-menu]") !== null, Ct = (e) => e instanceof Element && e.closest("[data-graphy-chart-chrome]") !== null, Hr = (e, t, r) => r !== null && dr({
3314
3314
  x: e.clientX - t.x,
3315
3315
  y: e.clientY - t.y
3316
- }, r), Ie = (e, t, r) => e instanceof Node && (t.contains(e) || Be(e, r)), _c = "cml7ha0", Hr = Me(null), Fc = ({ children: e }) => {
3316
+ }, r), Ie = (e, t, r) => e instanceof Node && (t.contains(e) || Be(e, r)), _c = "cml7ha0", Br = Me(null), Fc = ({ children: e }) => {
3317
3317
  const { chartId: t } = G(), [r] = J(ie), [a, o] = J(null);
3318
- return r === null ? null : /* @__PURE__ */ m(j, { children: [hr(/* @__PURE__ */ n("div", {
3318
+ return r === null ? null : /* @__PURE__ */ m(X, { children: [pr(/* @__PURE__ */ n("div", {
3319
3319
  ref: o,
3320
3320
  className: _c,
3321
- ...et(t)
3322
- }), r), /* @__PURE__ */ n(Hr.Provider, {
3321
+ ...tt(t)
3322
+ }), r), /* @__PURE__ */ n(Br.Provider, {
3323
3323
  value: a,
3324
3324
  children: e
3325
3325
  })] });
3326
- }, Ft = () => Ae(Hr), Br = (e) => /* @__PURE__ */ m(A, {
3326
+ }, Ht = () => Ae(Br), Vr = (e) => /* @__PURE__ */ m(A, {
3327
3327
  viewBox: "0 0 16 16",
3328
3328
  ...e,
3329
3329
  children: [
@@ -3349,15 +3349,15 @@ var Sr = "d0bl03", ls = "d0bl04", xr = "d0bl05", gt = "d0bl06", ss = "d0bl07", c
3349
3349
  })
3350
3350
  ]
3351
3351
  });
3352
- var Vr = "efjmb40", Gr = "efjmb41", be = "efjmb42", Ce = "efjmb43", Hc = "efjmb44", Bc = "efjmb45", Vc = /* @__PURE__ */ new Set([
3352
+ var Gr = "efjmb40", $r = "efjmb41", be = "efjmb42", Ce = "efjmb43", Hc = "efjmb44", Bc = "efjmb45", Vc = /* @__PURE__ */ new Set([
3353
3353
  "item-press",
3354
3354
  "escape-key",
3355
3355
  "outside-press",
3356
3356
  "close-press",
3357
3357
  "sibling-open",
3358
3358
  "trigger-press"
3359
- ]), Ht = ({ label: e, icon: t, onOpened: r, children: a }) => {
3360
- const o = Ft(), [i, l] = J(!1), s = (c, u) => {
3359
+ ]), Bt = ({ label: e, icon: t, onOpened: r, children: a }) => {
3360
+ const o = Ht(), [i, l] = J(!1), s = (c, u) => {
3361
3361
  c ? (l(!0), r?.()) : Vc.has(u.reason) && l(!1);
3362
3362
  };
3363
3363
  return /* @__PURE__ */ m(pe.SubmenuRoot, {
@@ -3372,10 +3372,10 @@ var Vr = "efjmb40", Gr = "efjmb41", be = "efjmb42", Ce = "efjmb43", Hc = "efjmb4
3372
3372
  side: "right",
3373
3373
  align: "start",
3374
3374
  sideOffset: 4,
3375
- className: Vr,
3376
- ..._r,
3375
+ className: Gr,
3376
+ ...Fr,
3377
3377
  children: /* @__PURE__ */ n(pe.Popup, {
3378
- className: Gr,
3378
+ className: $r,
3379
3379
  children: a
3380
3380
  })
3381
3381
  }) })
@@ -3405,9 +3405,9 @@ var Vr = "efjmb40", Gr = "efjmb41", be = "efjmb42", Ce = "efjmb43", Hc = "efjmb4
3405
3405
  }
3406
3406
  })), o());
3407
3407
  };
3408
- return /* @__PURE__ */ n(Ht, {
3408
+ return /* @__PURE__ */ n(Bt, {
3409
3409
  label: e,
3410
- icon: /* @__PURE__ */ n(Br, {}),
3410
+ icon: /* @__PURE__ */ n(Vr, {}),
3411
3411
  onOpened: () => {
3412
3412
  requestAnimationFrame(() => i.current?.focus());
3413
3413
  },
@@ -3442,7 +3442,7 @@ var Vr = "efjmb40", Gr = "efjmb41", be = "efjmb42", Ce = "efjmb43", Hc = "efjmb4
3442
3442
  text: e
3443
3443
  }]
3444
3444
  }]
3445
- }), Xc = (e) => /* @__PURE__ */ n(A, {
3445
+ }), jc = (e) => /* @__PURE__ */ n(A, {
3446
3446
  viewBox: "0 0 15 14",
3447
3447
  ...e,
3448
3448
  children: /* @__PURE__ */ n("path", {
@@ -3450,8 +3450,8 @@ var Vr = "efjmb40", Gr = "efjmb41", be = "efjmb42", Ce = "efjmb43", Hc = "efjmb4
3450
3450
  fill: "currentColor",
3451
3451
  fillOpacity: "0.8"
3452
3452
  })
3453
- }), jc = "relative-difference", Zc = ({ label: e, layer: t, at: r, onRequestClose: a }) => {
3454
- const { dispatch: o } = le(), i = _((c) => c.coordSystem), l = O(() => tl({
3453
+ }), Xc = "relative-difference", Zc = ({ label: e, layer: t, at: r, onRequestClose: a }) => {
3454
+ const { dispatch: o } = le(), i = V((c) => c.coordSystem), l = O(() => nl({
3455
3455
  layer: t,
3456
3456
  at: r,
3457
3457
  coordSystem: i
@@ -3465,16 +3465,16 @@ var Vr = "efjmb40", Gr = "efjmb41", be = "efjmb42", Ce = "efjmb43", Hc = "efjmb4
3465
3465
  o(new he({
3466
3466
  kind: "differenceArrow",
3467
3467
  annotation: {
3468
- ...Qn,
3468
+ ...er,
3469
3469
  ...l,
3470
- label: jc
3470
+ label: Xc
3471
3471
  }
3472
3472
  })), a();
3473
3473
  };
3474
3474
  return /* @__PURE__ */ m(D.Item, {
3475
3475
  className: be,
3476
3476
  onClick: s,
3477
- children: [/* @__PURE__ */ n(Xc, {}), /* @__PURE__ */ n("span", {
3477
+ children: [/* @__PURE__ */ n(jc, {}), /* @__PURE__ */ n("span", {
3478
3478
  className: Ce,
3479
3479
  children: e
3480
3480
  })]
@@ -3485,7 +3485,7 @@ function Yc(e, t) {
3485
3485
  scope: "series",
3486
3486
  labelKey: "pieSlice"
3487
3487
  }];
3488
- const r = Qi(t.data, t.mapping);
3488
+ const r = el(t.data, t.mapping);
3489
3489
  switch (t.geom) {
3490
3490
  case "bar": {
3491
3491
  const a = [{
@@ -3530,8 +3530,8 @@ function Yc(e, t) {
3530
3530
  }
3531
3531
  }
3532
3532
  var Jc = (e) => {
3533
- const t = Ui(e.mapping.x);
3534
- return t !== null && t !== Ro.x;
3533
+ const t = Wi(e.mapping.x);
3534
+ return t !== null && t !== zo.x;
3535
3535
  }, Qc = (e) => /* @__PURE__ */ m(A, {
3536
3536
  viewBox: "0 0 16 16",
3537
3537
  ...e,
@@ -3898,10 +3898,10 @@ var Jc = (e) => {
3898
3898
  scatterPoint: id,
3899
3899
  scatterSeries: ld,
3900
3900
  pieSlice: od
3901
- }, $r = ({ labelKey: e }) => {
3901
+ }, Ur = ({ labelKey: e }) => {
3902
3902
  const t = sd[e];
3903
3903
  return /* @__PURE__ */ n(t, {});
3904
- }, Ur = (e) => /* @__PURE__ */ m(A, {
3904
+ }, Wr = (e) => /* @__PURE__ */ m(A, {
3905
3905
  viewBox: "0 0 16 16",
3906
3906
  ...e,
3907
3907
  children: [/* @__PURE__ */ n("path", {
@@ -3916,26 +3916,26 @@ var Jc = (e) => {
3916
3916
  })]
3917
3917
  }), cd = ({ label: e, options: t, onSelect: r }) => {
3918
3918
  const a = k();
3919
- return /* @__PURE__ */ n(Ht, {
3919
+ return /* @__PURE__ */ n(Bt, {
3920
3920
  label: e,
3921
- icon: /* @__PURE__ */ n(Ur, {}),
3921
+ icon: /* @__PURE__ */ n(Wr, {}),
3922
3922
  children: t.map((o) => /* @__PURE__ */ m(pe.Item, {
3923
3923
  className: be,
3924
3924
  onClick: () => r(o.scope),
3925
- children: [/* @__PURE__ */ n($r, { labelKey: o.labelKey }), /* @__PURE__ */ n("span", {
3925
+ children: [/* @__PURE__ */ n(Ur, { labelKey: o.labelKey }), /* @__PURE__ */ n("span", {
3926
3926
  className: Ce,
3927
3927
  children: a(`graph.annotations.highlights.labels.${o.labelKey}`)
3928
3928
  })]
3929
3929
  }, o.scope))
3930
3930
  });
3931
3931
  }, dd = ({ label: e, layer: t, observation: r, highlights: a, onRequestClose: o }) => {
3932
- const i = k(), { dispatch: l } = le(), s = _((p) => p.coordSystem), c = O(() => Di(t, r), [t, r]), u = O(() => Yc(s, t), [s, t]), d = O(() => {
3932
+ const i = k(), { dispatch: l } = le(), s = V((p) => p.coordSystem), c = O(() => Ri(t, r), [t, r]), u = O(() => Yc(s, t), [s, t]), d = O(() => {
3933
3933
  const p = new Set(a.map((g) => g.scope));
3934
3934
  return u.filter((g) => !p.has(g.scope));
3935
3935
  }, [u, a]), [h] = d;
3936
3936
  if (c === null || h === void 0) return null;
3937
3937
  const v = (p) => {
3938
- l(new Do({
3938
+ l(new Ro({
3939
3939
  predicate: c,
3940
3940
  scope: p,
3941
3941
  layerId: t.id
@@ -3946,7 +3946,7 @@ var Jc = (e) => {
3946
3946
  return /* @__PURE__ */ m(pe.Item, {
3947
3947
  className: be,
3948
3948
  onClick: () => v(h.scope),
3949
- children: [/* @__PURE__ */ n($r, { labelKey: h.labelKey }), /* @__PURE__ */ n("span", {
3949
+ children: [/* @__PURE__ */ n(Ur, { labelKey: h.labelKey }), /* @__PURE__ */ n("span", {
3950
3950
  className: Ce,
3951
3951
  children: p
3952
3952
  })]
@@ -3957,7 +3957,7 @@ var Jc = (e) => {
3957
3957
  options: d,
3958
3958
  onSelect: v
3959
3959
  });
3960
- }, ud = "_1aafi1g0", hd = "_1aafi1g1", Wr = ({ children: e }) => /* @__PURE__ */ m("span", {
3960
+ }, ud = "_1aafi1g0", hd = "_1aafi1g1", Kr = ({ children: e }) => /* @__PURE__ */ m("span", {
3961
3961
  className: ud,
3962
3962
  "aria-hidden": "true",
3963
3963
  children: [e, /* @__PURE__ */ n("span", { className: hd })]
@@ -3965,18 +3965,18 @@ var Jc = (e) => {
3965
3965
  const { dispatch: a } = le(), o = t.at(-1);
3966
3966
  if (o === void 0) return null;
3967
3967
  const i = () => {
3968
- a(new Go({ id: o.id })), r();
3968
+ a(new $o({ id: o.id })), r();
3969
3969
  };
3970
3970
  return /* @__PURE__ */ m(D.Item, {
3971
3971
  className: be,
3972
3972
  onClick: i,
3973
- children: [/* @__PURE__ */ n(Wr, { children: /* @__PURE__ */ n(Ur, {}) }), /* @__PURE__ */ n("span", {
3973
+ children: [/* @__PURE__ */ n(Kr, { children: /* @__PURE__ */ n(Wr, {}) }), /* @__PURE__ */ n("span", {
3974
3974
  className: Ce,
3975
3975
  children: e
3976
3976
  })]
3977
3977
  });
3978
3978
  }, md = (e, t) => {
3979
- const r = _((o) => o.spec.highlights), a = _((o) => o.config.parsingLocale);
3979
+ const r = V((o) => o.spec.highlights), a = V((o) => o.config.parsingLocale);
3980
3980
  return O(() => Xi({
3981
3981
  layer: e,
3982
3982
  highlights: r,
@@ -3988,7 +3988,7 @@ var Jc = (e) => {
3988
3988
  t,
3989
3989
  a
3990
3990
  ]);
3991
- }, Kr = (e) => /* @__PURE__ */ m(A, {
3991
+ }, qr = (e) => /* @__PURE__ */ m(A, {
3992
3992
  viewBox: "0 0 16 16",
3993
3993
  ...e,
3994
3994
  children: [
@@ -4021,12 +4021,12 @@ var Jc = (e) => {
4021
4021
  return /* @__PURE__ */ m(D.Item, {
4022
4022
  className: be,
4023
4023
  onClick: o,
4024
- children: [/* @__PURE__ */ n(Kr, {}), /* @__PURE__ */ n("span", {
4024
+ children: [/* @__PURE__ */ n(qr, {}), /* @__PURE__ */ n("span", {
4025
4025
  className: Ce,
4026
4026
  children: e
4027
4027
  })]
4028
4028
  });
4029
- }, qr = (e) => /* @__PURE__ */ m(A, {
4029
+ }, jr = (e) => /* @__PURE__ */ m(A, {
4030
4030
  viewBox: "0 0 16 16",
4031
4031
  ...e,
4032
4032
  children: [
@@ -4061,26 +4061,26 @@ var Jc = (e) => {
4061
4061
  ]
4062
4062
  }), Xr = {
4063
4063
  pinnedNumber: {
4064
- icon: Kr,
4064
+ icon: qr,
4065
4065
  labelKey: "graph.annotations.baseMenu.unpinNumber"
4066
4066
  },
4067
4067
  comment: {
4068
- icon: Br,
4068
+ icon: Vr,
4069
4069
  labelKey: "graph.annotations.baseMenu.removeAnnotation"
4070
4070
  },
4071
4071
  sticker: {
4072
- icon: qr,
4072
+ icon: jr,
4073
4073
  labelKey: "graph.annotations.baseMenu.removeSticker"
4074
4074
  },
4075
4075
  image: null
4076
- }, vd = (e) => nl(e.kind) && Xr[e.kind] !== null, fd = ({ attachment: e, onRequestClose: t }) => {
4076
+ }, vd = (e) => rl(e.kind) && Xr[e.kind] !== null, fd = ({ attachment: e, onRequestClose: t }) => {
4077
4077
  const r = k(), { dispatch: a } = le(), { icon: o, labelKey: i } = Xr[e.kind], l = () => {
4078
4078
  a(new Te({ id: e.annotation.id })), t();
4079
4079
  };
4080
4080
  return /* @__PURE__ */ m(D.Item, {
4081
4081
  className: be,
4082
4082
  onClick: l,
4083
- children: [/* @__PURE__ */ n(Wr, { children: /* @__PURE__ */ n(o, {}) }), /* @__PURE__ */ n("span", {
4083
+ children: [/* @__PURE__ */ n(Kr, { children: /* @__PURE__ */ n(o, {}) }), /* @__PURE__ */ n("span", {
4084
4084
  className: Ce,
4085
4085
  children: r(i)
4086
4086
  })]
@@ -4098,12 +4098,12 @@ var Jc = (e) => {
4098
4098
  }
4099
4099
  })), r();
4100
4100
  };
4101
- return /* @__PURE__ */ n(Ht, {
4101
+ return /* @__PURE__ */ n(Bt, {
4102
4102
  label: e,
4103
- icon: /* @__PURE__ */ n(qr, {}),
4103
+ icon: /* @__PURE__ */ n(jr, {}),
4104
4104
  children: /* @__PURE__ */ n("div", {
4105
4105
  className: bd,
4106
- children: Object.entries(mo).map(([i, l]) => /* @__PURE__ */ n(pe.Item, {
4106
+ children: Object.entries(go).map(([i, l]) => /* @__PURE__ */ n(pe.Item, {
4107
4107
  className: Cd,
4108
4108
  "aria-label": i,
4109
4109
  onClick: () => o(i),
@@ -4116,7 +4116,7 @@ var Jc = (e) => {
4116
4116
  })
4117
4117
  });
4118
4118
  }, xd = ({ interaction: e, panelOrigin: t }) => {
4119
- const r = U(), a = X((i) => i.menuTrigger);
4119
+ const r = U(), a = j((i) => i.menuTrigger);
4120
4120
  if (e.kind !== "menu" || a === null) return null;
4121
4121
  const o = () => {
4122
4122
  r.getState().releaseInteraction("menu");
@@ -4133,11 +4133,11 @@ var Jc = (e) => {
4133
4133
  onClose: o
4134
4134
  });
4135
4135
  }, wd = ({ trigger: e, layer: t, at: r, observation: a, onClose: o }) => {
4136
- const i = k(), l = Ft(), s = _((b) => b.spec.annotations), c = _((b) => b.config.parsingLocale), u = Ad(), { x: d, y: h, radius: v } = e, p = O(() => Td(d, h, v), [
4136
+ const i = k(), l = Ht(), s = V((b) => b.spec.annotations), c = V((b) => b.config.parsingLocale), u = Ad(), { x: d, y: h, radius: v } = e, p = O(() => Td(d, h, v), [
4137
4137
  d,
4138
4138
  h,
4139
4139
  v
4140
- ]), g = Zi(s, r, O(() => Vi(t, c), [t, c])), f = g !== null && vd(g) ? g : null, C = md(t, a), L = (b, P) => {
4140
+ ]), g = Yi(s, r, O(() => Gi(t, c), [t, c])), f = g !== null && vd(g) ? g : null, C = md(t, a), L = (b, P) => {
4141
4141
  !b && kd(P.reason) && o();
4142
4142
  };
4143
4143
  return /* @__PURE__ */ n(D.Root, {
@@ -4151,10 +4151,10 @@ var Jc = (e) => {
4151
4151
  side: "right",
4152
4152
  align: "start",
4153
4153
  sideOffset: 8,
4154
- className: Vr,
4155
- ..._r,
4154
+ className: Gr,
4155
+ ...Fr,
4156
4156
  children: /* @__PURE__ */ m(D.Popup, {
4157
- className: Gr,
4157
+ className: $r,
4158
4158
  "data-testid": "observation-menu",
4159
4159
  children: [
4160
4160
  f !== null && /* @__PURE__ */ n(fd, {
@@ -4167,7 +4167,7 @@ var Jc = (e) => {
4167
4167
  onRequestClose: o
4168
4168
  }),
4169
4169
  /* @__PURE__ */ n(D.Separator, { className: Hc }),
4170
- f === null && /* @__PURE__ */ m(j, { children: [
4170
+ f === null && /* @__PURE__ */ m(X, { children: [
4171
4171
  /* @__PURE__ */ n(gd, {
4172
4172
  label: i("graph.annotations.baseMenu.pinNumber"),
4173
4173
  at: r,
@@ -4209,10 +4209,10 @@ var Jc = (e) => {
4209
4209
  return N(() => {
4210
4210
  t(!0);
4211
4211
  }, []), e;
4212
- }, kd = (e) => e === "outside-press" || e === "escape-key" || e === "item-press", Bt = "l8tsqe0", jr = ["start", "end"], Zr = ({ anchor: e, point: t, delta: r }) => {
4212
+ }, kd = (e) => e === "outside-press" || e === "escape-key" || e === "item-press", Vt = "l8tsqe0", Zr = ["start", "end"], Yr = ({ anchor: e, point: t, delta: r }) => {
4213
4213
  const a = {
4214
- x: mn(t.x, r.x),
4215
- y: mn(1 - t.y, r.y)
4214
+ x: gn(t.x, r.x),
4215
+ y: gn(1 - t.y, r.y)
4216
4216
  };
4217
4217
  return {
4218
4218
  anchor: {
@@ -4225,37 +4225,40 @@ var Jc = (e) => {
4225
4225
  y: t.y - a.y
4226
4226
  }
4227
4227
  };
4228
- }, Vt = (e, t) => ({
4228
+ }, Gt = (e, t) => ({
4229
4229
  ...e,
4230
4230
  [t.endpoint]: {
4231
4231
  ...e[t.endpoint],
4232
4232
  ...t.point
4233
4233
  }
4234
- }), Yr = (e, t) => e.x === t.x && e.y === t.y, Ld = (e, t) => ({
4235
- x: t.x + e.x * t.width,
4236
- y: t.y + (1 - e.y) * t.height
4237
- }), Pd = (e, t, r) => {
4238
- const a = e.x * r.width, o = t.x * r.width, i = (1 - e.y) * r.height, l = (1 - t.y) * r.height;
4234
+ }), Jr = (e, t) => e.x === t.x && e.y === t.y, Ld = (e, t) => {
4235
+ const r = Ve(e, t);
4236
+ return {
4237
+ x: t.x + r.x,
4238
+ y: t.y + r.y
4239
+ };
4240
+ }, Pd = (e, t, r) => {
4241
+ const a = Ve(e, r), o = Ve(t, r);
4239
4242
  return {
4240
- x: Math.min(a, o),
4241
- y: Math.min(i, l),
4242
- width: Math.abs(o - a),
4243
- height: Math.abs(l - i)
4243
+ x: Math.min(a.x, o.x),
4244
+ y: Math.min(a.y, o.y),
4245
+ width: Math.abs(o.x - a.x),
4246
+ height: Math.abs(o.y - a.y)
4244
4247
  };
4245
- }, mn = (e, t) => !Number.isFinite(t) || !Number.isFinite(e) ? 0 : Ge(t, Math.min(-e, 0), Math.max(1 - e, 0)), Id = ({ panelRect: e }) => {
4246
- const t = X((s) => V(s, "arrow-endpoint-drag")), r = fe(e).arrows, a = It();
4248
+ }, gn = (e, t) => !Number.isFinite(t) || !Number.isFinite(e) ? 0 : $e(t, Math.min(-e, 0), Math.max(1 - e, 0)), Id = ({ panelRect: e }) => {
4249
+ const t = j((s) => B(s, "arrow-endpoint-drag")), r = fe(e).arrows, a = Et();
4247
4250
  if (t === null) return null;
4248
4251
  const o = r.find((s) => s.id === t.annotationId);
4249
4252
  if (o === void 0) return null;
4250
- const i = a(o.id), l = ir({
4251
- arrow: Vt(o, t),
4253
+ const i = a(o.id), l = lr({
4254
+ arrow: Gt(o, t),
4252
4255
  style: i,
4253
4256
  panelWidth: e.width,
4254
4257
  panelHeight: e.height
4255
4258
  });
4256
4259
  return l === null ? null : /* @__PURE__ */ n("svg", {
4257
4260
  "aria-hidden": "true",
4258
- className: Bt,
4261
+ className: Vt,
4259
4262
  width: e.width,
4260
4263
  height: e.height,
4261
4264
  style: {
@@ -4271,9 +4274,9 @@ var Jc = (e) => {
4271
4274
  })
4272
4275
  });
4273
4276
  }, Oe = () => {
4274
- const e = jn();
4275
- return Ct(e);
4276
- }, Ct = (e) => {
4277
+ const e = Zn();
4278
+ return yt(e);
4279
+ }, yt = (e) => {
4277
4280
  if (e.length !== 1) return null;
4278
4281
  const [t] = e;
4279
4282
  return t?.kind === "annotation" ? t.id : null;
@@ -4286,7 +4289,7 @@ var Jc = (e) => {
4286
4289
  strokeLinejoin: "round",
4287
4290
  children: [/* @__PURE__ */ n("path", { d: "m12 19-7-7 7-7" }), /* @__PURE__ */ n("path", { d: "M19 12H5" })]
4288
4291
  })
4289
- }), Jr = (e) => /* @__PURE__ */ n(A, {
4292
+ }), Qr = (e) => /* @__PURE__ */ n(A, {
4290
4293
  ...e,
4291
4294
  children: /* @__PURE__ */ m("g", {
4292
4295
  stroke: "currentColor",
@@ -4304,7 +4307,7 @@ var Jc = (e) => {
4304
4307
  strokeLinejoin: "round",
4305
4308
  children: [/* @__PURE__ */ n("path", { d: "M7 17 17 7" }), /* @__PURE__ */ n("path", { d: "M7 7h10v10" })]
4306
4309
  })
4307
- }), Qr = (e) => /* @__PURE__ */ n(A, {
4310
+ }), ea = (e) => /* @__PURE__ */ n(A, {
4308
4311
  ...e,
4309
4312
  children: /* @__PURE__ */ m("g", {
4310
4313
  fill: "currentColor",
@@ -4332,7 +4335,7 @@ var Jc = (e) => {
4332
4335
  })
4333
4336
  ]
4334
4337
  })
4335
- }), tt = (e) => /* @__PURE__ */ n(A, {
4338
+ }), nt = (e) => /* @__PURE__ */ n(A, {
4336
4339
  ...e,
4337
4340
  children: /* @__PURE__ */ m("g", {
4338
4341
  stroke: "currentColor",
@@ -4347,7 +4350,7 @@ var Jc = (e) => {
4347
4350
  ]
4348
4351
  })
4349
4352
  }), Nd = "var(--pvjfpx0)", Od = "var(--pvjfpx1)", Dd = "pvjfpx2", Rd = "pvjfpx3", zd = "pvjfpx4", _d = "pvjfpx6 pvjfpx5", Fd = "pvjfpx7 pvjfpx6 pvjfpx5", Hd = "pvjfpx8 pvjfpx5", Le = 8, Bd = ({ anchorBox: e, panelRect: t, frameWidth: r, frameHeight: a }) => {
4350
- const o = t.y + e.y, i = o + e.height, l = o - 8 - 36, s = i + 8, c = Ge(l >= Le ? l : s, Le, a - Le - 36), u = Le;
4353
+ const o = t.y + e.y, i = o + e.height, l = o - 8 - 36, s = i + 8, c = $e(l >= Le ? l : s, Le, a - Le - 36), u = Le;
4351
4354
  return {
4352
4355
  top: c,
4353
4356
  left: u,
@@ -4372,8 +4375,8 @@ var Jc = (e) => {
4372
4375
  "aria-label": o,
4373
4376
  className: Rd,
4374
4377
  "data-testid": i,
4375
- ...et(s),
4376
- style: pr({
4378
+ ...tt(s),
4379
+ style: mr({
4377
4380
  [Nd]: `${c.centre}px`,
4378
4381
  [Od]: `${c.available}px`
4379
4382
  }),
@@ -4394,7 +4397,7 @@ var Jc = (e) => {
4394
4397
  onMouseDown: (s) => s.preventDefault(),
4395
4398
  children: [t, /* @__PURE__ */ n(Ne, { size: "sm" })]
4396
4399
  }), /* @__PURE__ */ n(K.MenuPopup, {
4397
- popupAttributes: et(l),
4400
+ popupAttributes: tt(l),
4398
4401
  children: i
4399
4402
  })]
4400
4403
  });
@@ -4402,7 +4405,7 @@ var Jc = (e) => {
4402
4405
  const { chartId: t } = G();
4403
4406
  return /* @__PURE__ */ n(K.ColorPicker, {
4404
4407
  ...e,
4405
- popupAttributes: et(t)
4408
+ popupAttributes: tt(t)
4406
4409
  });
4407
4410
  }, Ud = ({ color: e, opacity: t }) => /* @__PURE__ */ n("span", {
4408
4411
  className: zd,
@@ -4431,7 +4434,7 @@ var Jc = (e) => {
4431
4434
  ToggleButton: Kd,
4432
4435
  Button: K.Button,
4433
4436
  Separator: K.Separator
4434
- }, qd = { kind: "chrome-popup" }, nt = () => {
4437
+ }, qd = { kind: "chrome-popup" }, rt = () => {
4435
4438
  const { commands: e } = G(), t = U(), [r, a] = J(null);
4436
4439
  N(() => () => e.seal(), [e]), N(() => {
4437
4440
  const { claimInteraction: i, releaseInteraction: l } = t.getState();
@@ -4447,7 +4450,7 @@ var Jc = (e) => {
4447
4450
  }),
4448
4451
  close: o
4449
4452
  };
4450
- }, Xd = (e) => /* @__PURE__ */ n(A, {
4453
+ }, jd = (e) => /* @__PURE__ */ n(A, {
4451
4454
  ...e,
4452
4455
  children: /* @__PURE__ */ m("g", {
4453
4456
  stroke: "currentColor",
@@ -4459,7 +4462,7 @@ var Jc = (e) => {
4459
4462
  /* @__PURE__ */ n("path", { d: "M16 8 19 5" })
4460
4463
  ]
4461
4464
  })
4462
- }), jd = (e) => /* @__PURE__ */ n(A, {
4465
+ }), Xd = (e) => /* @__PURE__ */ n(A, {
4463
4466
  ...e,
4464
4467
  children: /* @__PURE__ */ m("g", {
4465
4468
  stroke: "currentColor",
@@ -4483,26 +4486,26 @@ var Jc = (e) => {
4483
4486
  })
4484
4487
  }), Yd = [
4485
4488
  {
4486
- value: st.thin,
4489
+ value: ct.thin,
4487
4490
  key: "graph.annotations.arrowToolbar.thickness.thin"
4488
4491
  },
4489
4492
  {
4490
- value: st.medium,
4493
+ value: ct.medium,
4491
4494
  key: "graph.annotations.arrowToolbar.thickness.medium"
4492
4495
  },
4493
4496
  {
4494
- value: st.thick,
4497
+ value: ct.thick,
4495
4498
  key: "graph.annotations.arrowToolbar.thickness.thick"
4496
4499
  }
4497
- ], gn = [{
4500
+ ], vn = [{
4498
4501
  value: "line-arrow",
4499
4502
  key: "graph.annotations.arrowToolbar.arrowhead.lineArrow",
4500
- Icon: Jr
4503
+ Icon: Qr
4501
4504
  }, {
4502
4505
  value: "none",
4503
4506
  key: "graph.annotations.arrowToolbar.arrowhead.none",
4504
- Icon: Io
4505
- }], vn = [
4507
+ Icon: Eo
4508
+ }], fn = [
4506
4509
  {
4507
4510
  value: "solid",
4508
4511
  key: "graph.annotations.arrowToolbar.lineStyle.solid",
@@ -4511,22 +4514,22 @@ var Jc = (e) => {
4511
4514
  {
4512
4515
  value: "dashed",
4513
4516
  key: "graph.annotations.arrowToolbar.lineStyle.dashed",
4514
- Icon: Xd
4517
+ Icon: jd
4515
4518
  },
4516
4519
  {
4517
4520
  value: "dotted",
4518
4521
  key: "graph.annotations.arrowToolbar.lineStyle.dotted",
4519
- Icon: jd
4522
+ Icon: Xd
4520
4523
  }
4521
4524
  ], Jd = (e, t) => e.find((r) => r.value === t) ?? e[0];
4522
4525
  var Qd = ({ arrow: e, arrowBox: t, panelRect: r, frameWidth: a, frameHeight: o, frameElement: i }) => {
4523
- const l = k(), { commands: s } = G(), c = _((y) => y.spec.styles.overrides), u = nt(), d = It()(e.id), h = Jd(vn, d.lineType), v = d.borderWidth > 0 || d.shadow !== "none", p = O(() => ({
4526
+ const l = k(), { commands: s } = G(), c = V((y) => y.spec.styles.overrides), u = rt(), d = Et()(e.id), h = Jd(fn, d.lineType), v = d.borderWidth > 0 || d.shadow !== "none", p = O(() => ({
4524
4527
  target: "annotation",
4525
4528
  kind: "arrow",
4526
4529
  annotation: e.id
4527
4530
  }), [e.id]), g = (y, M) => {
4528
- const T = Nt(c, { select: p })?.declarations ?? {};
4529
- s.dispatch(new Mt({
4531
+ const T = Ot(c, { select: p })?.declarations ?? {};
4532
+ s.dispatch(new Nt({
4530
4533
  list: "overrides",
4531
4534
  rule: {
4532
4535
  select: p,
@@ -4549,7 +4552,7 @@ var Qd = ({ arrow: e, arrowBox: t, panelRect: r, frameWidth: a, frameHeight: o,
4549
4552
  }, b = (y) => g({ color: y }, { transient: !0 }), P = (y) => f({ strokeWidth: y }), I = (y) => C({ startArrowheadStyle: y }), x = (y) => f({ lineType: y }), z = (y) => C({ endArrowheadStyle: y }), R = () => g(v ? {
4550
4553
  borderWidth: 0,
4551
4554
  shadow: "none"
4552
- } : Oo);
4555
+ } : Do);
4553
4556
  return /* @__PURE__ */ m(E.Root, {
4554
4557
  anchorBox: t,
4555
4558
  panelRect: r,
@@ -4567,7 +4570,7 @@ var Qd = ({ arrow: e, arrowBox: t, panelRect: r, frameWidth: a, frameHeight: o,
4567
4570
  }),
4568
4571
  /* @__PURE__ */ n(E.Dropdown, {
4569
4572
  label: l("graph.annotations.arrowToolbar.thickness.ariaLabel"),
4570
- trigger: /* @__PURE__ */ n(Qr, {
4573
+ trigger: /* @__PURE__ */ n(ea, {
4571
4574
  size: "sm",
4572
4575
  title: ""
4573
4576
  }),
@@ -4586,7 +4589,7 @@ var Qd = ({ arrow: e, arrowBox: t, panelRect: r, frameWidth: a, frameHeight: o,
4586
4589
  }),
4587
4590
  ...u.bind("startArrowhead"),
4588
4591
  children: /* @__PURE__ */ n(_e, {
4589
- options: gn,
4592
+ options: vn,
4590
4593
  current: e.startArrowheadStyle,
4591
4594
  onPick: I
4592
4595
  })
@@ -4599,20 +4602,20 @@ var Qd = ({ arrow: e, arrowBox: t, panelRect: r, frameWidth: a, frameHeight: o,
4599
4602
  }),
4600
4603
  ...u.bind("lineStyle"),
4601
4604
  children: /* @__PURE__ */ n(_e, {
4602
- options: vn,
4605
+ options: fn,
4603
4606
  current: d.lineType,
4604
4607
  onPick: x
4605
4608
  })
4606
4609
  }),
4607
4610
  /* @__PURE__ */ n(E.Dropdown, {
4608
4611
  label: l("graph.annotations.arrowToolbar.endArrowhead"),
4609
- trigger: /* @__PURE__ */ n(Jr, {
4612
+ trigger: /* @__PURE__ */ n(Qr, {
4610
4613
  size: "sm",
4611
4614
  title: ""
4612
4615
  }),
4613
4616
  ...u.bind("endArrowhead"),
4614
4617
  children: /* @__PURE__ */ n(_e, {
4615
- options: gn,
4618
+ options: vn,
4616
4619
  current: e.endArrowheadStyle,
4617
4620
  onPick: z
4618
4621
  })
@@ -4630,7 +4633,7 @@ var Qd = ({ arrow: e, arrowBox: t, panelRect: r, frameWidth: a, frameHeight: o,
4630
4633
  /* @__PURE__ */ n(E.IconButton, {
4631
4634
  label: l("graph.annotations.arrowToolbar.remove"),
4632
4635
  onClick: L,
4633
- children: /* @__PURE__ */ n(tt, {
4636
+ children: /* @__PURE__ */ n(nt, {
4634
4637
  size: "sm",
4635
4638
  title: ""
4636
4639
  })
@@ -4639,7 +4642,7 @@ var Qd = ({ arrow: e, arrowBox: t, panelRect: r, frameWidth: a, frameHeight: o,
4639
4642
  });
4640
4643
  }, _e = ({ options: e, current: t, onPick: r }) => {
4641
4644
  const a = k(), o = (i) => () => r(i);
4642
- return /* @__PURE__ */ n(j, { children: e.map((i) => /* @__PURE__ */ m(E.MenuItem, {
4645
+ return /* @__PURE__ */ n(X, { children: e.map((i) => /* @__PURE__ */ m(E.MenuItem, {
4643
4646
  isSelected: i.value === t,
4644
4647
  onClick: o(i.value),
4645
4648
  children: [/* @__PURE__ */ n("span", { children: a(i.key) }), i.Icon !== void 0 && /* @__PURE__ */ n("span", {
@@ -4650,10 +4653,10 @@ var Qd = ({ arrow: e, arrowBox: t, panelRect: r, frameWidth: a, frameHeight: o,
4650
4653
  })
4651
4654
  })]
4652
4655
  }, String(i.value))) });
4653
- }, eu = "_1me29t10", te = (e, t) => t > 0 ? e / t : 0, rt = (e, t, r) => ({
4656
+ }, eu = "_1me29t10", te = (e, t) => t > 0 ? e / t : 0, at = (e, t, r) => ({
4654
4657
  x: te(t.x - e.x, r.width),
4655
4658
  y: te(t.y - e.y, r.height)
4656
- }), tu = (e) => e.x !== 0 || e.y !== 0, ea = (e, t) => ({
4659
+ }), tu = (e) => e.x !== 0 || e.y !== 0, ta = (e, t) => ({
4657
4660
  x: e.x * t.width,
4658
4661
  y: e.y * t.height
4659
4662
  });
@@ -4703,43 +4706,43 @@ var nu = (e, t) => Math.hypot(t.x - e.x, t.y - e.y) >= 3, De = class {
4703
4706
  cancelFrame() {
4704
4707
  this.scheduledFrame !== null && (cancelAnimationFrame(this.scheduledFrame), this.scheduledFrame = null);
4705
4708
  }
4706
- }, Ue = (e, t, r) => {
4709
+ }, We = (e, t, r) => {
4707
4710
  const a = e.arrows.find((i) => i.id === t);
4708
4711
  if (a === void 0) return null;
4709
4712
  const o = a[r];
4710
4713
  return o.anchorType === "panel" ? o : null;
4711
- }, ta = (e, t) => e === "start" ? { start: t } : { end: t }, ru = class extends De {
4714
+ }, na = (e, t) => e === "start" ? { start: t } : { end: t }, ru = class extends De {
4712
4715
  constructor(...e) {
4713
4716
  super(...e), this.kind = "arrow-endpoint-drag";
4714
4717
  }
4715
4718
  readOwn(e) {
4716
4719
  const { annotationId: t, endpoint: r } = this.params;
4717
- return Et(V(e, "arrow-endpoint-drag"), t, r);
4720
+ return Mt(B(e, "arrow-endpoint-drag"), t, r);
4718
4721
  }
4719
4722
  resolvePreview(e) {
4720
- const { annotationId: t, endpoint: r, press: a, readInputs: o } = this.params, { annotations: i, arrow: l, panelRect: s } = o(), c = Ue(i, t, r);
4723
+ const { annotationId: t, endpoint: r, press: a, readInputs: o } = this.params, { annotations: i, arrow: l, panelRect: s } = o(), c = We(i, t, r);
4721
4724
  return c === null ? null : {
4722
4725
  kind: "arrow-endpoint-drag",
4723
4726
  annotationId: t,
4724
4727
  endpoint: r,
4725
- ...Zr({
4728
+ ...Yr({
4726
4729
  anchor: c,
4727
4730
  point: l[r],
4728
- delta: rt(a, e, s)
4731
+ delta: at(a, e, s)
4729
4732
  })
4730
4733
  };
4731
4734
  }
4732
4735
  commit({ anchor: e }) {
4733
- const { annotationId: t, endpoint: r, dispatch: a, readInputs: o } = this.params, i = Ue(o().annotations, t, r);
4734
- i === null || Yr(i, e) || a(new ne({
4736
+ const { annotationId: t, endpoint: r, dispatch: a, readInputs: o } = this.params, i = We(o().annotations, t, r);
4737
+ i === null || Jr(i, e) || a(new ne({
4735
4738
  kind: "arrow",
4736
4739
  id: t,
4737
- patch: ta(r, e)
4740
+ patch: na(r, e)
4738
4741
  }));
4739
4742
  }
4740
4743
  }, au = ({ annotationId: e, arrow: t, panelRect: r }) => {
4741
4744
  const { commands: a } = G(), o = U(), i = Y({
4742
- annotations: _((s) => s.spec.annotations),
4745
+ annotations: V((s) => s.spec.annotations),
4743
4746
  arrow: t,
4744
4747
  panelRect: r
4745
4748
  }), l = ee(null);
@@ -4773,10 +4776,10 @@ var nu = (e, t) => Math.hypot(t.x - e.x, t.y - e.y) >= 3, De = class {
4773
4776
  o,
4774
4777
  a
4775
4778
  ]);
4776
- }, ou = [" ", "Enter"], fn = 4, iu = ({ annotationId: e, arrow: t, panelRect: r }) => {
4777
- const { commands: a } = G(), o = U(), i = _((c) => c.spec.annotations), l = Y(i), s = Y(a.dispatch);
4779
+ }, ou = [" ", "Enter"], bn = 4, iu = ({ annotationId: e, arrow: t, panelRect: r }) => {
4780
+ const { commands: a } = G(), o = U(), i = V((c) => c.spec.annotations), l = Y(i), s = Y(a.dispatch);
4778
4781
  return N(() => () => {
4779
- for (const c of jr) bn({
4782
+ for (const c of Zr) Cn({
4780
4783
  editorStore: o,
4781
4784
  annotationId: e,
4782
4785
  endpoint: c,
@@ -4790,11 +4793,11 @@ var nu = (e, t) => Math.hypot(t.x - e.x, t.y - e.y) >= 3, De = class {
4790
4793
  s
4791
4794
  ]), oe((c) => ({ onKeyDown: (u) => {
4792
4795
  if (u.altKey || u.ctrlKey || u.metaKey || u.shiftKey) return;
4793
- const d = o.getState(), h = Et(V(d, "arrow-endpoint-drag"), e, c);
4796
+ const d = o.getState(), h = Mt(B(d, "arrow-endpoint-drag"), e, c);
4794
4797
  if (ou.includes(u.key)) {
4795
4798
  if (u.preventDefault(), u.repeat) return;
4796
4799
  if (h !== null) {
4797
- bn({
4800
+ Cn({
4798
4801
  editorStore: o,
4799
4802
  annotationId: e,
4800
4803
  endpoint: c,
@@ -4803,7 +4806,7 @@ var nu = (e, t) => Math.hypot(t.x - e.x, t.y - e.y) >= 3, De = class {
4803
4806
  });
4804
4807
  return;
4805
4808
  }
4806
- const p = Ue(i, e, c);
4809
+ const p = We(i, e, c);
4807
4810
  if (p === null) return;
4808
4811
  d.claimInteraction({
4809
4812
  kind: "arrow-endpoint-drag",
@@ -4820,7 +4823,7 @@ var nu = (e, t) => Math.hypot(t.x - e.x, t.y - e.y) >= 3, De = class {
4820
4823
  kind: "arrow-endpoint-drag",
4821
4824
  annotationId: e,
4822
4825
  endpoint: c,
4823
- ...Zr({
4826
+ ...Yr({
4824
4827
  anchor: h.anchor,
4825
4828
  point: h.point,
4826
4829
  delta: v
@@ -4834,18 +4837,18 @@ var nu = (e, t) => Math.hypot(t.x - e.x, t.y - e.y) >= 3, De = class {
4834
4837
  o,
4835
4838
  a
4836
4839
  ]);
4837
- }, bn = ({ editorStore: e, annotationId: t, endpoint: r, annotations: a, dispatch: o }) => {
4838
- const i = e.getState(), l = Et(V(i, "arrow-endpoint-drag"), t, r);
4840
+ }, Cn = ({ editorStore: e, annotationId: t, endpoint: r, annotations: a, dispatch: o }) => {
4841
+ const i = e.getState(), l = Mt(B(i, "arrow-endpoint-drag"), t, r);
4839
4842
  if (l === null) return;
4840
4843
  i.releaseInteraction("arrow-endpoint-drag");
4841
- const s = Ue(a, t, r);
4842
- s === null || Yr(s, l.anchor) || o(new ne({
4844
+ const s = We(a, t, r);
4845
+ s === null || Jr(s, l.anchor) || o(new ne({
4843
4846
  kind: "arrow",
4844
4847
  id: t,
4845
- patch: ta(r, l.anchor)
4848
+ patch: na(r, l.anchor)
4846
4849
  }));
4847
4850
  }, lu = (e, t) => {
4848
- const r = te(fn, t.width), a = te(fn, t.height);
4851
+ const r = te(bn, t.width), a = te(bn, t.height);
4849
4852
  switch (e) {
4850
4853
  case "ArrowLeft":
4851
4854
  return {
@@ -4873,7 +4876,7 @@ var nu = (e, t) => Math.hypot(t.x - e.x, t.y - e.y) >= 3, De = class {
4873
4876
  }, su = (e) => {
4874
4877
  const t = Oe(), r = uu(t), a = hu(e.panelRect, t), o = pu(t);
4875
4878
  if (r === null || a === null) return null;
4876
- const i = o.dragged === null ? a : Vt(a, o.dragged);
4879
+ const i = o.dragged === null ? a : Gt(a, o.dragged);
4877
4880
  return /* @__PURE__ */ n(cu, {
4878
4881
  arrow: r,
4879
4882
  committed: a,
@@ -4902,7 +4905,7 @@ var nu = (e, t) => Math.hypot(t.x - e.x, t.y - e.y) >= 3, De = class {
4902
4905
  frameWidth: l.width,
4903
4906
  frameHeight: l.height,
4904
4907
  frameElement: s
4905
- }), !o && jr.filter((h) => e[h].anchorType === "panel").map((h) => /* @__PURE__ */ n(du, {
4908
+ }), !o && Zr.filter((h) => e[h].anchorType === "panel").map((h) => /* @__PURE__ */ n(du, {
4906
4909
  endpoint: h,
4907
4910
  point: Ld(r[h], i),
4908
4911
  label: c(`graph.annotations.arrowToolbar.moveEndpoint.${h}`),
@@ -4924,20 +4927,20 @@ var nu = (e, t) => Math.hypot(t.x - e.x, t.y - e.y) >= 3, De = class {
4924
4927
  ...a,
4925
4928
  ...o
4926
4929
  }), uu = (e) => {
4927
- const t = _((r) => r.spec.annotations.arrows);
4930
+ const t = V((r) => r.spec.annotations.arrows);
4928
4931
  return e === null ? null : t.find((r) => r.id === e) ?? null;
4929
4932
  }, hu = (e, t) => {
4930
4933
  const r = fe(e).arrows;
4931
4934
  return t === null ? null : r.find((a) => a.id === t) ?? null;
4932
- }, pu = (e) => X(ke((t) => {
4935
+ }, pu = (e) => j(ke((t) => {
4933
4936
  if (e === null) return {
4934
4937
  dragged: null,
4935
4938
  isMoved: !1
4936
4939
  };
4937
- const r = V(t, "arrow-endpoint-drag");
4940
+ const r = B(t, "arrow-endpoint-drag");
4938
4941
  return {
4939
4942
  dragged: r?.annotationId === e ? r : null,
4940
- isMoved: Ze(V(t, "move-drag"), e) !== null
4943
+ isMoved: Ye(B(t, "move-drag"), e) !== null
4941
4944
  };
4942
4945
  })), mu = (e) => /* @__PURE__ */ n(A, {
4943
4946
  ...e,
@@ -4953,29 +4956,29 @@ var bu = [
4953
4956
  "absolute-difference",
4954
4957
  "relative-difference",
4955
4958
  "proportion"
4956
- ], Cn = ["absolute-difference", "relative-difference"], Cu = ["relative-difference", "proportion"], yu = {
4959
+ ], yn = ["absolute-difference", "relative-difference"], Cu = ["relative-difference", "proportion"], yu = {
4957
4960
  "absolute-difference": "graph.annotations.differenceArrowToolbar.labelKind.absoluteDifference",
4958
4961
  "relative-difference": "graph.annotations.differenceArrowToolbar.labelKind.relativeDifference",
4959
4962
  proportion: "graph.annotations.differenceArrowToolbar.labelKind.proportion"
4960
4963
  }, Su = (e) => {
4961
- const { formattingLocale: t } = G(), r = _((o) => o.config.parsingLocale), a = t ?? r;
4964
+ const { formattingLocale: t } = G(), r = V((o) => o.config.parsingLocale), a = t ?? r;
4962
4965
  return O(() => {
4963
- const o = Mi(e.start, e.end);
4964
- return bu.filter((i) => o || !Cn.includes(i) || i === e.label).map((i) => ({
4966
+ const o = Ni(e.start, e.end);
4967
+ return bu.filter((i) => o || !yn.includes(i) || i === e.label).map((i) => ({
4965
4968
  kind: i,
4966
4969
  key: yu[i],
4967
- preview: Ji({
4970
+ preview: Qi({
4968
4971
  locale: a,
4969
4972
  kind: i,
4970
4973
  startValue: e.start.measurementValue,
4971
4974
  endValue: e.end.measurementValue,
4972
4975
  valueFormat: e.start.valueFormat
4973
4976
  }),
4974
- isPickable: o || !Cn.includes(i),
4977
+ isPickable: o || !yn.includes(i),
4975
4978
  isSuspect: Cu.includes(i) && e.start.measurementValue === 0
4976
4979
  }));
4977
4980
  }, [e, a]);
4978
- }, dt = [
4981
+ }, ut = [
4979
4982
  {
4980
4983
  id: "small",
4981
4984
  key: "graph.annotations.differenceArrowToolbar.size.small"
@@ -4989,7 +4992,7 @@ var bu = [
4989
4992
  key: "graph.annotations.differenceArrowToolbar.size.large"
4990
4993
  }
4991
4994
  ], xu = ({ arrow: e, color: t, labelBox: r, panelRect: a, frameWidth: o, frameHeight: i, frameElement: l }) => {
4992
- const s = k(), { commands: c } = G(), u = nt(), d = Su(e), h = d.find((x) => x.kind === e.label), v = d.some((x) => x.isPickable && x.kind !== e.label), p = dt.find((x) => x.id === e.size) ?? dt[0], g = (x, z) => {
4995
+ const s = k(), { commands: c } = G(), u = rt(), d = Su(e), h = d.find((x) => x.kind === e.label), v = d.some((x) => x.isPickable && x.kind !== e.label), p = ut.find((x) => x.id === e.size) ?? ut[0], g = (x, z) => {
4993
4996
  c.dispatch(new ne({
4994
4997
  kind: "differenceArrow",
4995
4998
  id: e.id,
@@ -5047,7 +5050,7 @@ var bu = [
5047
5050
  label: s("graph.annotations.differenceArrowToolbar.size.ariaLabel"),
5048
5051
  trigger: p === void 0 ? "" : s(p.key),
5049
5052
  ...u.bind("size"),
5050
- children: dt.map((x) => /* @__PURE__ */ n(E.MenuItem, {
5053
+ children: ut.map((x) => /* @__PURE__ */ n(E.MenuItem, {
5051
5054
  isSelected: x.id === e.size,
5052
5055
  onClick: I(x.id),
5053
5056
  children: s(x.key)
@@ -5065,7 +5068,7 @@ var bu = [
5065
5068
  /* @__PURE__ */ n(E.IconButton, {
5066
5069
  label: s("graph.annotations.differenceArrowToolbar.remove"),
5067
5070
  onClick: C,
5068
- children: /* @__PURE__ */ n(tt, {
5071
+ children: /* @__PURE__ */ n(nt, {
5069
5072
  size: "sm",
5070
5073
  title: ""
5071
5074
  })
@@ -5074,7 +5077,7 @@ var bu = [
5074
5077
  });
5075
5078
  }, wu = ({ option: e }) => {
5076
5079
  const t = k();
5077
- return e === void 0 ? null : /* @__PURE__ */ m(j, { children: [/* @__PURE__ */ n("span", {
5080
+ return e === void 0 ? null : /* @__PURE__ */ m(X, { children: [/* @__PURE__ */ n("span", {
5078
5081
  className: vu,
5079
5082
  children: t(e.key)
5080
5083
  }), /* @__PURE__ */ m("span", {
@@ -5090,11 +5093,11 @@ var Tu = "ydgo3h0", Au = "ydgo3h1", ku = "ydgo3h2", Lu = ({ clientPoint: e, pane
5090
5093
  const u = Pu({
5091
5094
  x: e.x - t.x,
5092
5095
  y: e.y - t.y
5093
- }, r), { primary: d } = a.query(Ot(u, r));
5096
+ }, r), { primary: d } = a.query(Dt(u, r));
5094
5097
  if (d === null) return null;
5095
5098
  const h = o.find((p) => p.id === d.layerId);
5096
5099
  if (h === void 0) return null;
5097
- const v = ur({
5100
+ const v = hr({
5098
5101
  resolver: l,
5099
5102
  layer: h,
5100
5103
  observation: d.observation,
@@ -5102,12 +5105,12 @@ var Tu = "ydgo3h0", Au = "ydgo3h1", ku = "ydgo3h2", Lu = ({ clientPoint: e, pane
5102
5105
  coordSystem: i,
5103
5106
  align: c
5104
5107
  });
5105
- return v === null || or(v.anchor, s) ? null : v;
5108
+ return v === null || ir(v.anchor, s) ? null : v;
5106
5109
  }, Pu = (e, t) => ({
5107
5110
  x: Math.max(0, Math.min(e.x, t.width)),
5108
5111
  y: Math.max(0, Math.min(e.y, t.height))
5109
- }), na = (e) => e === "start" ? "end" : "start", ra = ({ dispatch: e, arrow: t, endpoint: r, anchor: a }) => {
5110
- or(a, t[r].anchor) || e(new ne({
5112
+ }), ra = (e) => e === "start" ? "end" : "start", aa = ({ dispatch: e, arrow: t, endpoint: r, anchor: a }) => {
5113
+ ir(a, t[r].anchor) || e(new ne({
5111
5114
  kind: "differenceArrow",
5112
5115
  id: t.id,
5113
5116
  patch: { [r]: a }
@@ -5121,7 +5124,7 @@ var Tu = "ydgo3h0", Au = "ydgo3h1", ku = "ydgo3h2", Lu = ({ clientPoint: e, pane
5121
5124
  }
5122
5125
  readOwn(e) {
5123
5126
  const { endpoint: t, readInputs: r } = this.params;
5124
- return Wn(V(e, "difference-arrow-endpoint-drag"), r().arrow.id, t);
5127
+ return Kn(B(e, "difference-arrow-endpoint-drag"), r().arrow.id, t);
5125
5128
  }
5126
5129
  resolvePreview(e) {
5127
5130
  const { endpoint: t, readInputs: r, engine: a, anchorResolver: o } = this.params, { arrow: i, panelOrigin: l, panelRect: s, layers: c, coordSystem: u } = r(), d = Lu({
@@ -5132,7 +5135,7 @@ var Tu = "ydgo3h0", Au = "ydgo3h1", ku = "ydgo3h2", Lu = ({ clientPoint: e, pane
5132
5135
  layers: c,
5133
5136
  coordSystem: u,
5134
5137
  resolver: o,
5135
- fixedAnchor: i[na(t)].anchor,
5138
+ fixedAnchor: i[ra(t)].anchor,
5136
5139
  align: i[t].anchor.align
5137
5140
  });
5138
5141
  return d === null ? null : {
@@ -5144,7 +5147,7 @@ var Tu = "ydgo3h0", Au = "ydgo3h1", ku = "ydgo3h2", Lu = ({ clientPoint: e, pane
5144
5147
  }
5145
5148
  commit({ point: e, endpoint: t }) {
5146
5149
  const { dispatch: r, readInputs: a } = this.params;
5147
- ra({
5150
+ aa({
5148
5151
  dispatch: r,
5149
5152
  arrow: a().arrow,
5150
5153
  endpoint: t,
@@ -5152,11 +5155,11 @@ var Tu = "ydgo3h0", Au = "ydgo3h1", ku = "ydgo3h2", Lu = ({ clientPoint: e, pane
5152
5155
  });
5153
5156
  }
5154
5157
  }, Eu = ({ arrow: e, panelOrigin: t, panelRect: r }) => {
5155
- const { commands: a, anchorResolver: o } = G(), { engine: i } = Pt(), l = U(), s = Y({
5158
+ const { commands: a, anchorResolver: o } = G(), { engine: i } = It(), l = U(), s = Y({
5156
5159
  arrow: e,
5157
5160
  panelOrigin: t,
5158
5161
  panelRect: r,
5159
- ..._(ke((u) => ({
5162
+ ...V(ke((u) => ({
5160
5163
  layers: u.layers,
5161
5164
  coordSystem: u.coordSystem
5162
5165
  })))
@@ -5194,17 +5197,17 @@ var Tu = "ydgo3h0", Au = "ydgo3h1", ku = "ydgo3h2", Lu = ({ clientPoint: e, pane
5194
5197
  a
5195
5198
  ]);
5196
5199
  }, Mu = [" ", "Enter"], Nu = ({ arrow: e }) => {
5197
- const { commands: t, anchorResolver: r } = G(), a = U(), { layers: o, coordSystem: i, mainAxis: l } = _(ke((c) => ({
5200
+ const { commands: t, anchorResolver: r } = G(), a = U(), { layers: o, coordSystem: i, mainAxis: l } = V(ke((c) => ({
5198
5201
  layers: c.layers,
5199
5202
  coordSystem: c.coordSystem,
5200
5203
  mainAxis: c.coordSystem.type === "cartesian" ? c.coordSystem.mainAxis : "x"
5201
5204
  }))), s = e.id;
5202
5205
  return N(() => () => {
5203
5206
  const c = a.getState();
5204
- V(c, "difference-arrow-endpoint-drag")?.annotationId === s && c.releaseInteraction("difference-arrow-endpoint-drag");
5207
+ B(c, "difference-arrow-endpoint-drag")?.annotationId === s && c.releaseInteraction("difference-arrow-endpoint-drag");
5205
5208
  }, [a, s]), oe((c) => ({ onKeyDown: (u) => {
5206
5209
  if (u.altKey || u.ctrlKey || u.metaKey || u.shiftKey) return;
5207
- const d = a.getState(), h = Wn(V(d, "difference-arrow-endpoint-drag"), e.id, c);
5210
+ const d = a.getState(), h = Kn(B(d, "difference-arrow-endpoint-drag"), e.id, c);
5208
5211
  if (Mu.includes(u.key)) {
5209
5212
  if (u.preventDefault(), u.repeat) return;
5210
5213
  if (h === null) return d.claimInteraction({
@@ -5213,7 +5216,7 @@ var Tu = "ydgo3h0", Au = "ydgo3h1", ku = "ydgo3h2", Lu = ({ clientPoint: e, pane
5213
5216
  endpoint: c,
5214
5217
  point: e[c]
5215
5218
  });
5216
- d.releaseInteraction("difference-arrow-endpoint-drag"), ra({
5219
+ d.releaseInteraction("difference-arrow-endpoint-drag"), aa({
5217
5220
  dispatch: t.dispatch,
5218
5221
  arrow: e,
5219
5222
  endpoint: c,
@@ -5264,10 +5267,10 @@ var Tu = "ydgo3h0", Au = "ydgo3h1", ku = "ydgo3h2", Lu = ({ clientPoint: e, pane
5264
5267
  return ml({
5265
5268
  layer: s,
5266
5269
  from: r,
5267
- partner: e[na(t)].anchor,
5270
+ partner: e[ra(t)].anchor,
5268
5271
  axis: a.axis,
5269
5272
  step: a.step,
5270
- getObservationPoint: (d, h) => ur({
5273
+ getObservationPoint: (d, h) => hr({
5271
5274
  resolver: l,
5272
5275
  layer: s,
5273
5276
  observation: d,
@@ -5284,7 +5287,7 @@ var Tu = "ydgo3h0", Au = "ydgo3h1", ku = "ydgo3h2", Lu = ({ clientPoint: e, pane
5284
5287
  ...e
5285
5288
  });
5286
5289
  }, zu = ({ annotationId: e, ...t }) => {
5287
- const r = Co(), a = O(() => r.find((o) => o.id === e), [r, e]);
5290
+ const r = yo(), a = O(() => r.find((o) => o.id === e), [r, e]);
5288
5291
  return a === void 0 ? null : /* @__PURE__ */ n(_u, {
5289
5292
  committedArrow: a.committedArrow,
5290
5293
  color: a.color,
@@ -5324,14 +5327,14 @@ var Tu = "ydgo3h0", Au = "ydgo3h1", ku = "ydgo3h2", Lu = ({ clientPoint: e, pane
5324
5327
  height: a.height + 4
5325
5328
  }
5326
5329
  }),
5327
- /* @__PURE__ */ n(yn, {
5330
+ /* @__PURE__ */ n(Sn, {
5328
5331
  endpoint: "start",
5329
5332
  point: o,
5330
5333
  panelRect: l,
5331
5334
  dragHandlers: h("start"),
5332
5335
  keyboardHandlers: v("start")
5333
5336
  }),
5334
- /* @__PURE__ */ n(yn, {
5337
+ /* @__PURE__ */ n(Sn, {
5335
5338
  endpoint: "end",
5336
5339
  point: i,
5337
5340
  panelRect: l,
@@ -5340,7 +5343,7 @@ var Tu = "ydgo3h0", Au = "ydgo3h1", ku = "ydgo3h2", Lu = ({ clientPoint: e, pane
5340
5343
  })
5341
5344
  ]
5342
5345
  });
5343
- }, yn = ({ endpoint: e, point: t, panelRect: r, dragHandlers: a, keyboardHandlers: o }) => /* @__PURE__ */ n("div", {
5346
+ }, Sn = ({ endpoint: e, point: t, panelRect: r, dragHandlers: a, keyboardHandlers: o }) => /* @__PURE__ */ n("div", {
5344
5347
  className: Tu,
5345
5348
  "data-testid": "difference-arrow-selection-handle",
5346
5349
  "data-endpoint": e,
@@ -5356,14 +5359,14 @@ var Tu = "ydgo3h0", Au = "ydgo3h1", ku = "ydgo3h2", Lu = ({ clientPoint: e, pane
5356
5359
  "aria-hidden": "true",
5357
5360
  className: Au
5358
5361
  })
5359
- }), yt = ({ start: e, extent: t, isStartMoving: r, delta: a, minExtent: o }) => {
5362
+ }), St = ({ start: e, extent: t, isStartMoving: r, delta: a, minExtent: o }) => {
5360
5363
  if (!Number.isFinite(a)) return {
5361
5364
  start: e,
5362
5365
  extent: t
5363
5366
  };
5364
5367
  const i = e + t, l = Math.min(o, t);
5365
5368
  if (r) {
5366
- const u = Math.min(0, e), d = Math.min(Math.max(1, e), i - l), h = Ge(e + a, u, d);
5369
+ const u = Math.min(0, e), d = Math.min(Math.max(1, e), i - l), h = $e(e + a, u, d);
5367
5370
  return {
5368
5371
  start: h,
5369
5372
  extent: i - h
@@ -5372,7 +5375,7 @@ var Tu = "ydgo3h0", Au = "ydgo3h1", ku = "ydgo3h2", Lu = ({ clientPoint: e, pane
5372
5375
  const s = Math.max(Math.min(0, i), e + l), c = Math.max(1, i);
5373
5376
  return {
5374
5377
  start: e,
5375
- extent: Ge(i + a, s, c) - e
5378
+ extent: $e(i + a, s, c) - e
5376
5379
  };
5377
5380
  }, Fu = [
5378
5381
  "top-left",
@@ -5380,28 +5383,28 @@ var Tu = "ydgo3h0", Au = "ydgo3h1", ku = "ydgo3h2", Lu = ({ clientPoint: e, pane
5380
5383
  "bottom-right",
5381
5384
  "bottom-left"
5382
5385
  ];
5383
- var aa = ({ width: e, height: t }) => ({
5386
+ var oa = ({ width: e, height: t }) => ({
5384
5387
  x: te(16, e),
5385
5388
  y: te(16, t)
5386
5389
  }), Hu = (e, t) => ({
5387
- x: la(t) ? e.x : e.x + e.width,
5388
- y: sa(t) ? e.y : e.y + e.height
5389
- }), Gt = (e) => ({
5390
+ x: sa(t) ? e.x : e.x + e.width,
5391
+ y: ca(t) ? e.y : e.y + e.height
5392
+ }), $t = (e) => ({
5390
5393
  x: e.x,
5391
5394
  y: 1 - e.y - e.height,
5392
5395
  width: e.width,
5393
5396
  height: e.height
5394
- }), oa = ({ region: e, corner: t, delta: r, minSize: a }) => {
5395
- const o = yt({
5397
+ }), ia = ({ region: e, corner: t, delta: r, minSize: a }) => {
5398
+ const o = St({
5396
5399
  start: e.x,
5397
5400
  extent: e.width,
5398
- isStartMoving: la(t),
5401
+ isStartMoving: sa(t),
5399
5402
  delta: r.x,
5400
5403
  minExtent: a.x
5401
- }), i = yt({
5404
+ }), i = St({
5402
5405
  start: e.y,
5403
5406
  extent: e.height,
5404
- isStartMoving: sa(t),
5407
+ isStartMoving: ca(t),
5405
5408
  delta: r.y,
5406
5409
  minExtent: a.y
5407
5410
  });
@@ -5412,9 +5415,9 @@ var aa = ({ width: e, height: t }) => ({
5412
5415
  width: o.extent,
5413
5416
  height: i.extent
5414
5417
  };
5415
- }, ia = (e, t) => e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height, la = (e) => e === "top-left" || e === "bottom-left", sa = (e) => e === "top-left" || e === "top-right", ca = (e, t, r, a) => {
5418
+ }, la = (e, t) => e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height, sa = (e) => e === "top-left" || e === "bottom-left", ca = (e) => e === "top-left" || e === "top-right", da = (e, t, r, a) => {
5416
5419
  const o = e.textAnnotations.find((i) => i.id === t);
5417
- return o === void 0 ? null : lo(yo(o, r), a);
5420
+ return o === void 0 ? null : so(So(o, r), a);
5418
5421
  };
5419
5422
  var Bu = {
5420
5423
  hovered: "_1ee8fau1 _1ee8fau0",
@@ -5423,7 +5426,7 @@ var Bu = {
5423
5426
  hovered: "_1ee8fau4 _1ee8fau3",
5424
5427
  selected: "_1ee8fau5 _1ee8fau3"
5425
5428
  }, Gu = ({ panelRect: e }) => {
5426
- const t = fe(e), r = Kn(), a = $n(), o = Oe(), 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((f) => {
5429
+ const t = fe(e), r = qn(), a = Un(), o = Oe(), i = j((f) => B(f, "move-drag")), l = j((f) => B(f, "shape-resize-drag")), s = j((f) => B(f, "arrow-endpoint-drag")), c = j((f) => B(f, "text-resize-drag")), u = j((f) => {
5427
5430
  const C = f.editTargetUnderPointer;
5428
5431
  return C?.kind === "annotation" ? C.id : null;
5429
5432
  }), d = O(() => ({
@@ -5438,52 +5441,52 @@ var Bu = {
5438
5441
  e.height,
5439
5442
  r,
5440
5443
  a
5441
- ]), h = Sn(t, o, d), v = Sn(t, u === o ? null : u, d), p = (f) => {
5444
+ ]), h = xn(t, o, d), v = xn(t, u === o ? null : u, d), p = (f) => {
5442
5445
  if (l?.annotationId === f.id) {
5443
5446
  const C = t.shapes.find((L) => L.id === f.id);
5444
- return C === void 0 ? f.geometry : Zn(Gt(l.region), pl(a, C.id).borderWidth, d.panel);
5447
+ return C === void 0 ? f.geometry : Yn($t(l.region), pl(a, C.id).borderWidth, d.panel);
5445
5448
  }
5446
5449
  if (s?.annotationId === f.id) {
5447
5450
  const C = t.arrows.find((L) => L.id === f.id);
5448
- return C === void 0 ? f.geometry : po(Vt(C, s), d.panel) ?? f.geometry;
5451
+ return C === void 0 ? f.geometry : mo(Gt(C, s), d.panel) ?? f.geometry;
5449
5452
  }
5450
- return c?.annotationId === f.id ? ca(t, f.id, c, d) ?? f.geometry : f.geometry;
5453
+ return c?.annotationId === f.id ? da(t, f.id, c, d) ?? f.geometry : f.geometry;
5451
5454
  }, g = (f) => {
5452
5455
  if (i?.annotationId !== f) return e;
5453
- const C = ea(i.translation, e);
5456
+ const C = ta(i.translation, e);
5454
5457
  return {
5455
5458
  x: e.x + C.x,
5456
5459
  y: e.y + C.y
5457
5460
  };
5458
5461
  };
5459
- return /* @__PURE__ */ m(j, { children: [v !== null && /* @__PURE__ */ n(xn, {
5462
+ return /* @__PURE__ */ m(X, { children: [v !== null && /* @__PURE__ */ n(wn, {
5460
5463
  annotationId: v.id,
5461
5464
  geometry: p(v),
5462
5465
  state: "hovered",
5463
5466
  origin: g(v.id)
5464
- }), h !== null && /* @__PURE__ */ n(xn, {
5467
+ }), h !== null && /* @__PURE__ */ n(wn, {
5465
5468
  annotationId: h.id,
5466
5469
  geometry: p(h),
5467
5470
  state: "selected",
5468
5471
  origin: g(h.id)
5469
5472
  })] });
5470
- }, Sn = (e, t, r) => {
5473
+ }, xn = (e, t, r) => {
5471
5474
  if (t === null) return null;
5472
- const a = eo(e, t, r);
5475
+ const a = to(e, t, r);
5473
5476
  return a === null ? null : {
5474
5477
  id: t,
5475
5478
  geometry: a
5476
5479
  };
5477
- }, xn = ({ annotationId: e, geometry: t, state: r, origin: a }) => t.shape === "segment" ? /* @__PURE__ */ m("div", {
5480
+ }, wn = ({ annotationId: e, geometry: t, state: r, origin: a }) => t.shape === "segment" ? /* @__PURE__ */ m("div", {
5478
5481
  "aria-hidden": "true",
5479
5482
  "data-testid": "annotation-chrome",
5480
5483
  "data-annotation-id": e,
5481
5484
  "data-state": r,
5482
- children: [/* @__PURE__ */ n(wn, {
5485
+ children: [/* @__PURE__ */ n(Tn, {
5483
5486
  point: t.start,
5484
5487
  state: r,
5485
5488
  origin: a
5486
- }), /* @__PURE__ */ n(wn, {
5489
+ }), /* @__PURE__ */ n(Tn, {
5487
5490
  point: t.end,
5488
5491
  state: r,
5489
5492
  origin: a
@@ -5500,19 +5503,19 @@ var Bu = {
5500
5503
  width: t.rect.width + 4,
5501
5504
  height: t.rect.height + 4
5502
5505
  }
5503
- }), wn = ({ point: e, state: t, origin: r }) => /* @__PURE__ */ n("span", {
5506
+ }), Tn = ({ point: e, state: t, origin: r }) => /* @__PURE__ */ n("span", {
5504
5507
  className: Vu[t],
5505
5508
  style: {
5506
5509
  left: r.x + e.x,
5507
5510
  top: r.y + e.y
5508
5511
  }
5509
5512
  }), $u = ({ panelRect: e }) => {
5510
- const t = X((o) => V(o, "move-drag")), r = fe(e);
5513
+ const t = j((o) => B(o, "move-drag")), r = fe(e);
5511
5514
  if (t === null) return null;
5512
- const a = ea(t.translation, e);
5515
+ const a = ta(t.translation, e);
5513
5516
  return /* @__PURE__ */ n("svg", {
5514
5517
  "aria-hidden": "true",
5515
- className: Bt,
5518
+ className: Vt,
5516
5519
  width: e.width,
5517
5520
  height: e.height,
5518
5521
  style: {
@@ -5523,16 +5526,26 @@ var Bu = {
5523
5526
  "data-annotation-id": t.annotationId,
5524
5527
  children: Ku(r, t.annotationId, e)
5525
5528
  });
5526
- }, Uu = ({ annotation: e }) => /* @__PURE__ */ n(Po, {
5529
+ }, Uu = ({ annotation: e, panel: t }) => /* @__PURE__ */ n(Io, {
5527
5530
  annotation: e,
5528
- blockRef: co(e.id)
5531
+ panel: t,
5532
+ blockRef: uo(e.id)
5529
5533
  }), Fe = (e, t, r) => {
5530
5534
  const a = e.find((o) => o.id === t);
5531
5535
  return a === void 0 ? null : r(a);
5532
5536
  }, Wu = {
5533
- text: (e, t) => Fe(e.textAnnotations, t, (r) => /* @__PURE__ */ n(Uu, { annotation: r })),
5534
- shape: (e, t) => Fe(e.shapes, t, (r) => /* @__PURE__ */ n(Xu, { shape: r })),
5535
- image: (e, t) => Fe(e.images, t, (r) => /* @__PURE__ */ n(So, { image: r })),
5537
+ text: (e, t, r) => Fe(e.textAnnotations, t, (a) => /* @__PURE__ */ n(Uu, {
5538
+ annotation: a,
5539
+ panel: r
5540
+ })),
5541
+ shape: (e, t, r) => Fe(e.shapes, t, (a) => /* @__PURE__ */ n(ju, {
5542
+ shape: a,
5543
+ panelSize: r
5544
+ })),
5545
+ image: (e, t, r) => Fe(e.images, t, (a) => /* @__PURE__ */ n(xo, {
5546
+ image: a,
5547
+ panel: r
5548
+ })),
5536
5549
  arrow: (e, t, r) => Fe(e.arrows, t, (a) => /* @__PURE__ */ n(qu, {
5537
5550
  arrow: a,
5538
5551
  panelSize: r
@@ -5544,7 +5557,7 @@ var Bu = {
5544
5557
  }
5545
5558
  return null;
5546
5559
  }, qu = ({ arrow: e, panelSize: t }) => {
5547
- const r = It()(e.id), a = ir({
5560
+ const r = Et()(e.id), a = lr({
5548
5561
  arrow: e,
5549
5562
  style: r,
5550
5563
  panelWidth: t.width,
@@ -5555,16 +5568,17 @@ var Bu = {
5555
5568
  style: r,
5556
5569
  isAddressable: !1
5557
5570
  });
5558
- }, Xu = ({ shape: e }) => /* @__PURE__ */ n(qn, {
5571
+ }, ju = ({ shape: e, panelSize: t }) => /* @__PURE__ */ n(jn, {
5559
5572
  shape: e,
5560
- style: Ye()(e.id)
5561
- }), ju = ({ panelRect: e }) => {
5562
- const t = X((i) => V(i, "shape-resize-drag")), r = fe(e).shapes, a = Ye();
5573
+ style: Je()(e.id),
5574
+ panel: t
5575
+ }), Xu = ({ panelRect: e }) => {
5576
+ const t = j((i) => B(i, "shape-resize-drag")), r = fe(e).shapes, a = Je();
5563
5577
  if (t === null) return null;
5564
5578
  const o = r.find((i) => i.id === t.annotationId);
5565
5579
  return o === void 0 ? null : /* @__PURE__ */ n("svg", {
5566
5580
  "aria-hidden": "true",
5567
- className: Bt,
5581
+ className: Vt,
5568
5582
  width: e.width,
5569
5583
  height: e.height,
5570
5584
  style: {
@@ -5573,12 +5587,13 @@ var Bu = {
5573
5587
  },
5574
5588
  "data-testid": "shape-resize-preview",
5575
5589
  "data-annotation-id": t.annotationId,
5576
- children: /* @__PURE__ */ n(qn, {
5590
+ children: /* @__PURE__ */ n(jn, {
5577
5591
  shape: {
5578
5592
  ...o,
5579
- region: Gt(t.region)
5593
+ region: $t(t.region)
5580
5594
  },
5581
- style: a(o.id)
5595
+ style: a(o.id),
5596
+ panel: e
5582
5597
  })
5583
5598
  });
5584
5599
  }, Zu = {
@@ -5588,7 +5603,7 @@ var Bu = {
5588
5603
  horizontal: "o49ib42",
5589
5604
  diagonalDown: "o49ib43",
5590
5605
  diagonalUp: "o49ib44"
5591
- }, da = ({ point: e, label: t, pull: r, size: a, attributes: o, dragHandlers: i, keyboardHandlers: l }) => /* @__PURE__ */ n("div", {
5606
+ }, ua = ({ point: e, label: t, pull: r, size: a, attributes: o, dragHandlers: i, keyboardHandlers: l }) => /* @__PURE__ */ n("div", {
5592
5607
  "aria-label": t,
5593
5608
  className: Yu[r],
5594
5609
  role: "button",
@@ -5604,7 +5619,7 @@ var Bu = {
5604
5619
  "aria-hidden": "true",
5605
5620
  className: Zu[a]
5606
5621
  })
5607
- }), St = [
5622
+ }), xt = [
5608
5623
  {
5609
5624
  width: 0,
5610
5625
  key: "graph.annotations.shapeToolbar.border.none"
@@ -5621,14 +5636,14 @@ var Bu = {
5621
5636
  width: 16,
5622
5637
  key: "graph.annotations.shapeToolbar.border.thick"
5623
5638
  }
5624
- ], Ju = (e) => [...St].reverse().find((t) => t.width <= e) ?? St[0], Qu = ({ shape: e, shapeBox: t, panelRect: r, frameWidth: a, frameHeight: o, frameElement: i }) => {
5625
- const l = k(), { commands: s } = G(), c = _((b) => b.spec.styles.overrides), u = nt(), d = Ye()(e.id), h = Ju(d.borderWidth), v = O(() => ({
5639
+ ], Ju = (e) => [...xt].reverse().find((t) => t.width <= e) ?? xt[0], Qu = ({ shape: e, shapeBox: t, panelRect: r, frameWidth: a, frameHeight: o, frameElement: i }) => {
5640
+ const l = k(), { commands: s } = G(), c = V((b) => b.spec.styles.overrides), u = rt(), d = Je()(e.id), h = Ju(d.borderWidth), v = O(() => ({
5626
5641
  target: "annotation",
5627
5642
  kind: "shape",
5628
5643
  annotation: e.id
5629
5644
  }), [e.id]), p = (b, P) => {
5630
- const I = Nt(c, { select: v })?.declarations ?? {};
5631
- s.dispatch(new Mt({
5645
+ const I = Ot(c, { select: v })?.declarations ?? {};
5646
+ s.dispatch(new Nt({
5632
5647
  list: "overrides",
5633
5648
  rule: {
5634
5649
  select: v,
@@ -5665,12 +5680,12 @@ var Bu = {
5665
5680
  }),
5666
5681
  /* @__PURE__ */ n(E.Dropdown, {
5667
5682
  label: l("graph.annotations.shapeToolbar.border.ariaLabel"),
5668
- trigger: /* @__PURE__ */ n(Qr, {
5683
+ trigger: /* @__PURE__ */ n(ea, {
5669
5684
  size: "sm",
5670
5685
  title: ""
5671
5686
  }),
5672
5687
  ...u.bind("border"),
5673
- children: St.map((b) => /* @__PURE__ */ n(E.MenuItem, {
5688
+ children: xt.map((b) => /* @__PURE__ */ n(E.MenuItem, {
5674
5689
  isSelected: b.width === h?.width,
5675
5690
  onClick: L(b.width),
5676
5691
  children: l(b.key)
@@ -5680,14 +5695,14 @@ var Bu = {
5680
5695
  /* @__PURE__ */ n(E.IconButton, {
5681
5696
  label: l("graph.annotations.shapeToolbar.remove"),
5682
5697
  onClick: g,
5683
- children: /* @__PURE__ */ n(tt, {
5698
+ children: /* @__PURE__ */ n(nt, {
5684
5699
  size: "sm",
5685
5700
  title: ""
5686
5701
  })
5687
5702
  })
5688
5703
  ]
5689
5704
  });
5690
- }, ua = (e) => {
5705
+ }, ha = (e) => {
5691
5706
  const t = Y(e), r = ee(null);
5692
5707
  return N(() => () => r.current?.finish(!1), []), oe((a) => ({ onPointerDown: (o) => {
5693
5708
  if (o.button !== 0 || r.current !== null) return;
@@ -5710,7 +5725,7 @@ var Bu = {
5710
5725
  });
5711
5726
  r.current = i, i.start();
5712
5727
  } }), [t]);
5713
- }, We = (e, t) => {
5728
+ }, Ke = (e, t) => {
5714
5729
  const r = e.shapes.find((a) => a.id === t);
5715
5730
  return r === void 0 || r.region.anchorType !== "panel" ? null : r.region;
5716
5731
  }, eh = class extends De {
@@ -5718,24 +5733,24 @@ var Bu = {
5718
5733
  super(...e), this.kind = "shape-resize-drag";
5719
5734
  }
5720
5735
  readOwn(e) {
5721
- return Lt(V(e, "shape-resize-drag"), this.params.annotationId);
5736
+ return Pt(B(e, "shape-resize-drag"), this.params.annotationId);
5722
5737
  }
5723
5738
  resolvePreview(e) {
5724
- const { annotationId: t, corner: r, press: a, readInputs: o } = this.params, { annotations: i, panelRect: l } = o(), s = We(i, t);
5739
+ const { annotationId: t, corner: r, press: a, readInputs: o } = this.params, { annotations: i, panelRect: l } = o(), s = Ke(i, t);
5725
5740
  return s === null ? null : {
5726
5741
  kind: "shape-resize-drag",
5727
5742
  annotationId: t,
5728
- region: oa({
5743
+ region: ia({
5729
5744
  region: s,
5730
5745
  corner: r,
5731
- delta: rt(a, e, l),
5732
- minSize: aa(l)
5746
+ delta: at(a, e, l),
5747
+ minSize: oa(l)
5733
5748
  })
5734
5749
  };
5735
5750
  }
5736
5751
  commit({ region: e }) {
5737
- const { annotationId: t, dispatch: r, readInputs: a } = this.params, o = We(a().annotations, t);
5738
- o === null || ia(o, e) || r(new ne({
5752
+ const { annotationId: t, dispatch: r, readInputs: a } = this.params, o = Ke(a().annotations, t);
5753
+ o === null || la(o, e) || r(new ne({
5739
5754
  kind: "shape",
5740
5755
  id: t,
5741
5756
  patch: { region: e }
@@ -5743,10 +5758,10 @@ var Bu = {
5743
5758
  }
5744
5759
  }, th = ({ annotationId: e, panelRect: t }) => {
5745
5760
  const { commands: r } = G(), a = U(), o = Y({
5746
- annotations: _((i) => i.spec.annotations),
5761
+ annotations: V((i) => i.spec.annotations),
5747
5762
  panelRect: t
5748
5763
  });
5749
- return ua((i, l) => new eh({
5764
+ return ha((i, l) => new eh({
5750
5765
  ...l,
5751
5766
  annotationId: e,
5752
5767
  corner: i,
@@ -5754,15 +5769,15 @@ var Bu = {
5754
5769
  editorStore: a,
5755
5770
  dispatch: r.dispatch
5756
5771
  }));
5757
- }, nh = [" ", "Enter"], ha = (e) => {
5772
+ }, nh = [" ", "Enter"], pa = (e) => {
5758
5773
  const t = U(), r = Y(e);
5759
- return N(() => () => Tn(t, r.current), [t, r]), oe((a) => ({ onKeyDown: (o) => {
5774
+ return N(() => () => An(t, r.current), [t, r]), oe((a) => ({ onKeyDown: (o) => {
5760
5775
  if (o.altKey || o.ctrlKey || o.metaKey || o.shiftKey) return;
5761
5776
  const i = t.getState(), l = r.current.readHeld();
5762
5777
  if (nh.includes(o.key)) {
5763
5778
  if (o.preventDefault(), o.repeat) return;
5764
5779
  if (l !== null) {
5765
- Tn(t, r.current);
5780
+ An(t, r.current);
5766
5781
  return;
5767
5782
  }
5768
5783
  const c = r.current.claim(a);
@@ -5774,15 +5789,15 @@ var Bu = {
5774
5789
  const s = r.current.step(l, a, o.key);
5775
5790
  s !== null && (o.preventDefault(), i.claimInteraction(s));
5776
5791
  } }), [t, r]);
5777
- }, Tn = (e, t) => {
5792
+ }, An = (e, t) => {
5778
5793
  const r = t.readHeld();
5779
5794
  r !== null && (e.getState().releaseInteraction(r.kind), t.commit(r));
5780
- }, An = 4, rh = ({ annotationId: e, panelRect: t }) => {
5781
- const { commands: r } = G(), a = U(), o = _((i) => i.spec.annotations);
5782
- return ha({
5783
- readHeld: () => Lt(V(a.getState(), "shape-resize-drag"), e),
5795
+ }, kn = 4, rh = ({ annotationId: e, panelRect: t }) => {
5796
+ const { commands: r } = G(), a = U(), o = V((i) => i.spec.annotations);
5797
+ return pa({
5798
+ readHeld: () => Pt(B(a.getState(), "shape-resize-drag"), e),
5784
5799
  claim: () => {
5785
- const i = We(o, e);
5800
+ const i = Ke(o, e);
5786
5801
  return i === null ? null : {
5787
5802
  kind: "shape-resize-drag",
5788
5803
  annotationId: e,
@@ -5794,17 +5809,17 @@ var Bu = {
5794
5809
  return c === null ? null : {
5795
5810
  kind: "shape-resize-drag",
5796
5811
  annotationId: e,
5797
- region: oa({
5812
+ region: ia({
5798
5813
  region: i.region,
5799
5814
  corner: l,
5800
5815
  delta: c,
5801
- minSize: aa(t)
5816
+ minSize: oa(t)
5802
5817
  })
5803
5818
  };
5804
5819
  },
5805
5820
  commit: ({ region: i }) => {
5806
- const l = We(o, e);
5807
- l === null || ia(l, i) || r.dispatch(new ne({
5821
+ const l = Ke(o, e);
5822
+ l === null || la(l, i) || r.dispatch(new ne({
5808
5823
  kind: "shape",
5809
5824
  id: e,
5810
5825
  patch: { region: i }
@@ -5812,7 +5827,7 @@ var Bu = {
5812
5827
  }
5813
5828
  });
5814
5829
  }, ah = (e, t) => {
5815
- const r = te(An, t.width), a = te(An, t.height);
5830
+ const r = te(kn, t.width), a = te(kn, t.height);
5816
5831
  switch (e) {
5817
5832
  case "ArrowLeft":
5818
5833
  return {
@@ -5860,7 +5875,7 @@ var Bu = {
5860
5875
  }), u = rh({
5861
5876
  annotationId: e.id,
5862
5877
  panelRect: o
5863
- }), d = Ye()(e.id), { rect: h } = Zn(Gt(t), d.borderWidth, o);
5878
+ }), d = Je()(e.id), { rect: h } = Yn($t(t), d.borderWidth, o);
5864
5879
  return /* @__PURE__ */ m("div", {
5865
5880
  "data-testid": "shape-selection",
5866
5881
  "data-annotation-id": e.id,
@@ -5873,7 +5888,7 @@ var Bu = {
5873
5888
  frameElement: l
5874
5889
  }), !a && Fu.map((v) => {
5875
5890
  const p = Hu(h, v);
5876
- return /* @__PURE__ */ n(da, {
5891
+ return /* @__PURE__ */ n(ua, {
5877
5892
  point: {
5878
5893
  x: o.x + p.x,
5879
5894
  y: o.y + p.y
@@ -5891,14 +5906,14 @@ var Bu = {
5891
5906
  })]
5892
5907
  });
5893
5908
  }, sh = (e) => {
5894
- const t = _((r) => r.spec.annotations.shapes);
5909
+ const t = V((r) => r.spec.annotations.shapes);
5895
5910
  return e === null ? null : t.find((r) => r.id === e) ?? null;
5896
- }, ch = (e) => X(ke((t) => e === null ? {
5911
+ }, ch = (e) => j(ke((t) => e === null ? {
5897
5912
  resizedRegion: null,
5898
5913
  isMoved: !1
5899
5914
  } : {
5900
- resizedRegion: Lt(V(t, "shape-resize-drag"), e)?.region ?? null,
5901
- isMoved: Ze(V(t, "move-drag"), e) !== null
5915
+ resizedRegion: Pt(B(t, "shape-resize-drag"), e)?.region ?? null,
5916
+ isMoved: Ye(B(t, "move-drag"), e) !== null
5902
5917
  })), dh = ({ textColor: e, ...t }) => /* @__PURE__ */ m(A, {
5903
5918
  ...t,
5904
5919
  children: [/* @__PURE__ */ m("g", {
@@ -5913,26 +5928,26 @@ var Bu = {
5913
5928
  strokeLinecap: "round"
5914
5929
  })]
5915
5930
  });
5916
- var Ke = "textStyle", pa = /* @__PURE__ */ new Set(["paragraph", "heading"]), uh = (e) => {
5917
- const t = ma(e), r = fh(e);
5931
+ var qe = "textStyle", ma = /* @__PURE__ */ new Set(["paragraph", "heading"]), uh = (e) => {
5932
+ const t = ga(e), r = fh(e);
5918
5933
  return {
5919
- color: He(t.map((a) => bh(ut(a)?.color))),
5920
- font: He(t.map((a) => vh(ut(a)))),
5921
- fontSize: He(t.map((a) => Ch(ut(a)?.fontSize))),
5934
+ color: He(t.map((a) => bh(ht(a)?.color))),
5935
+ font: He(t.map((a) => vh(ht(a)))),
5936
+ fontSize: He(t.map((a) => Ch(ht(a)?.fontSize))),
5922
5937
  alignment: He(r.map((a) => yh(a.attrs?.textAlign)))
5923
5938
  };
5924
- }, hh = (e, t) => $t(e, (r) => r.type === "text" ? gh(r, t) : r), ph = (e) => ma(e).length > 0, mh = (e, t) => $t(e, (r) => pa.has(r.type ?? "") ? {
5939
+ }, hh = (e, t) => Ut(e, (r) => r.type === "text" ? gh(r, t) : r), ph = (e) => ga(e).length > 0, mh = (e, t) => Ut(e, (r) => ma.has(r.type ?? "") ? {
5925
5940
  ...r,
5926
5941
  attrs: {
5927
5942
  ...r.attrs,
5928
5943
  textAlign: t
5929
5944
  }
5930
- } : r), $t = (e, t) => t(e.content === void 0 ? e : {
5945
+ } : r), Ut = (e, t) => t(e.content === void 0 ? e : {
5931
5946
  ...e,
5932
- content: e.content.map((r) => $t(r, t))
5947
+ content: e.content.map((r) => Ut(r, t))
5933
5948
  }), gh = (e, t) => {
5934
- const r = e.marks ?? [], a = r.find((i) => i.type === Ke), o = {
5935
- type: Ke,
5949
+ const r = e.marks ?? [], a = r.find((i) => i.type === qe), o = {
5950
+ type: qe,
5936
5951
  attrs: {
5937
5952
  ...a?.attrs,
5938
5953
  ...t
@@ -5942,11 +5957,11 @@ var Ke = "textStyle", pa = /* @__PURE__ */ new Set(["paragraph", "heading"]), uh
5942
5957
  ...e,
5943
5958
  marks: a === void 0 ? [...r, o] : r.map((i) => i === a ? o : i)
5944
5959
  };
5945
- }, ut = (e) => e.marks?.find((t) => t.type === Ke)?.attrs, vh = (e) => Yt(e?.font) ?? Yt(e?.fontFamily), ma = (e) => Ut(e, (t) => t.type === "text"), fh = (e) => Ut(e, (t) => pa.has(t.type ?? "")), Ut = (e, t) => [...t(e) ? [e] : [], ...(e.content ?? []).flatMap((r) => Ut(r, t))], He = (e) => {
5960
+ }, ht = (e) => e.marks?.find((t) => t.type === qe)?.attrs, vh = (e) => Jt(e?.font) ?? Jt(e?.fontFamily), ga = (e) => Wt(e, (t) => t.type === "text"), fh = (e) => Wt(e, (t) => ma.has(t.type ?? "")), Wt = (e, t) => [...t(e) ? [e] : [], ...(e.content ?? []).flatMap((r) => Wt(r, t))], He = (e) => {
5946
5961
  const [t, ...r] = e;
5947
5962
  return t === void 0 ? null : r.every((a) => a === t) ? t : null;
5948
5963
  }, bh = (e) => typeof e == "string" && e.length > 0 ? e : void 0, Ch = (e) => typeof e == "number" && Number.isFinite(e) ? e : void 0, yh = (e) => e === "left" || e === "center" || e === "right" ? e : void 0;
5949
- var ga = [
5964
+ var va = [
5950
5965
  {
5951
5966
  id: "modern",
5952
5967
  key: "graph.annotations.textToolbar.font.modern"
@@ -5970,9 +5985,9 @@ var ga = [
5970
5985
  ].map(({ id: e, key: t }) => ({
5971
5986
  id: e,
5972
5987
  key: t,
5973
- fontFamily: ao[e] ?? e
5974
- })), Sh = (e) => ga.find((t) => t.id === (e ?? "modern")) ?? null;
5975
- var va = [
5988
+ fontFamily: oo[e] ?? e
5989
+ })), Sh = (e) => va.find((t) => t.id === (e ?? "modern")) ?? null;
5990
+ var fa = [
5976
5991
  {
5977
5992
  size: 12,
5978
5993
  key: "graph.annotations.textToolbar.fontSize.small"
@@ -5993,30 +6008,30 @@ var va = [
5993
6008
  size: 32,
5994
6009
  key: "graph.annotations.textToolbar.fontSize.huge"
5995
6010
  }
5996
- ], xh = (e) => va.find((t) => t.size === (e ?? 16)) ?? null, wh = (e) => `${e / 10}em`, Th = [
6011
+ ], xh = (e) => fa.find((t) => t.size === (e ?? 16)) ?? null, wh = (e) => `${e / 10}em`, Th = [
5997
6012
  {
5998
6013
  alignment: "left",
5999
- Icon: Rr
6014
+ Icon: zr
6000
6015
  },
6001
6016
  {
6002
6017
  alignment: "center",
6003
- Icon: Or
6018
+ Icon: Dr
6004
6019
  },
6005
6020
  {
6006
6021
  alignment: "right",
6007
- Icon: Dr
6022
+ Icon: Rr
6008
6023
  }
6009
6024
  ], Ah = ({ annotation: e, textBox: t, panelRect: r, frameWidth: a, frameHeight: o, frameElement: i }) => {
6010
- const l = k(), { commands: s } = G(), { themeValues: c } = Ee(), u = U(), d = nt(), h = uh(e.content), v = Sh(h.font), p = xh(h.fontSize), g = h.color ?? c.textPrimary, f = (y, M) => {
6025
+ const l = k(), { commands: s } = G(), { themeValues: c } = Ee(), u = U(), d = rt(), h = uh(e.content), v = Sh(h.font), p = xh(h.fontSize), g = h.color ?? c.textPrimary, f = (y, M) => {
6011
6026
  s.dispatch(new ne({
6012
6027
  kind: "text",
6013
6028
  id: e.id,
6014
6029
  patch: y
6015
6030
  }), M);
6016
6031
  }, C = () => u.getState().caret?.editor?.getJSON() ?? e.content, L = (y, M) => {
6017
- const T = C(), B = u.getState().caret?.editor ?? null;
6018
- if (B !== null && !ph(T)) {
6019
- B.chain().focus().setMark(Ke, y).run();
6032
+ const T = C(), H = u.getState().caret?.editor ?? null;
6033
+ if (H !== null && !ph(T)) {
6034
+ H.chain().focus().setMark(qe, y).run();
6020
6035
  return;
6021
6036
  }
6022
6037
  f({ content: hh(T, y) }, M);
@@ -6061,7 +6076,7 @@ var va = [
6061
6076
  children: "Aa"
6062
6077
  }),
6063
6078
  ...d.bind("font"),
6064
- children: ga.map((y) => /* @__PURE__ */ n(E.MenuItem, {
6079
+ children: va.map((y) => /* @__PURE__ */ n(E.MenuItem, {
6065
6080
  isSelected: y.id === v?.id,
6066
6081
  onClick: x(y.id),
6067
6082
  children: /* @__PURE__ */ n("span", {
@@ -6074,7 +6089,7 @@ var va = [
6074
6089
  label: l("graph.annotations.textToolbar.fontSize.ariaLabel"),
6075
6090
  trigger: p === null ? "" : l(p.key),
6076
6091
  ...d.bind("fontSize"),
6077
- children: va.map((y) => /* @__PURE__ */ n(E.MenuItem, {
6092
+ children: fa.map((y) => /* @__PURE__ */ n(E.MenuItem, {
6078
6093
  isSelected: y.size === p?.size,
6079
6094
  onClick: z(y.size),
6080
6095
  children: /* @__PURE__ */ n("span", {
@@ -6092,7 +6107,7 @@ var va = [
6092
6107
  /* @__PURE__ */ n(E.IconButton, {
6093
6108
  label: l("graph.annotations.textToolbar.remove"),
6094
6109
  onClick: b,
6095
- children: /* @__PURE__ */ n(tt, {
6110
+ children: /* @__PURE__ */ n(nt, {
6096
6111
  size: "sm",
6097
6112
  title: ""
6098
6113
  })
@@ -6104,7 +6119,7 @@ var va = [
6104
6119
  backgroundColorStyle: Ts(e) ? "fade" : "opaque"
6105
6120
  }, Lh = ({ current: e, onPick: t }) => {
6106
6121
  const r = k(), a = (o) => () => t(o);
6107
- return /* @__PURE__ */ n(j, { children: Th.map((o) => /* @__PURE__ */ n(E.ToggleButton, {
6122
+ return /* @__PURE__ */ n(X, { children: Th.map((o) => /* @__PURE__ */ n(E.ToggleButton, {
6108
6123
  label: r(`graph.annotations.textToolbar.align.${o.alignment}`),
6109
6124
  isPressed: o.alignment === e,
6110
6125
  onClick: a(o.alignment),
@@ -6114,16 +6129,16 @@ var va = [
6114
6129
  })
6115
6130
  }, o.alignment)) });
6116
6131
  }, Ph = ["left", "right"];
6117
- var fa = ({ width: e }) => te(60, e), Ih = (e, t) => ({
6132
+ var ba = ({ width: e }) => te(60, e), Ih = (e, t) => ({
6118
6133
  x: t === "left" ? e.x : e.x + e.width,
6119
6134
  y: e.y + e.height / 2
6120
- }), ba = ({ at: e, width: t, align: r, edge: a, delta: o, minWidth: i, panelWidth: l }) => {
6135
+ }), Ca = ({ at: e, width: t, align: r, edge: a, delta: o, minWidth: i, panelWidth: l }) => {
6121
6136
  if (o === 0) return {
6122
6137
  at: e,
6123
6138
  width: t,
6124
6139
  shift: 0
6125
6140
  };
6126
- const s = Ei(r).x, c = Eh(e.offset, l), u = yt({
6141
+ const s = Mi(r).x, c = Eh(e.offset, l), u = St({
6127
6142
  start: e.x + c - s * t,
6128
6143
  extent: t,
6129
6144
  isStartMoving: a === "left",
@@ -6138,7 +6153,7 @@ var fa = ({ width: e }) => te(60, e), Ih = (e, t) => ({
6138
6153
  width: u.extent,
6139
6154
  shift: d - e.x
6140
6155
  };
6141
- }, Ca = (e, t) => e.at.x === t.at.x && e.width === t.width, Eh = (e, t) => e?.x === void 0 ? 0 : e.unit === "px" ? te(e.x, t) : e.x, qe = (e, t) => {
6156
+ }, ya = (e, t) => e.at.x === t.at.x && e.width === t.width, Eh = (e, t) => e?.x === void 0 ? 0 : e.unit === "px" ? te(e.x, t) : e.x, je = (e, t) => {
6142
6157
  const r = e.textAnnotations.find((a) => a.id === t);
6143
6158
  return r === void 0 || r.at.anchorType !== "panel" ? null : {
6144
6159
  at: r.at,
@@ -6150,28 +6165,28 @@ var fa = ({ width: e }) => te(60, e), Ih = (e, t) => ({
6150
6165
  super(...e), this.kind = "text-resize-drag";
6151
6166
  }
6152
6167
  readOwn(e) {
6153
- return kt(V(e, "text-resize-drag"), this.params.annotationId);
6168
+ return Lt(B(e, "text-resize-drag"), this.params.annotationId);
6154
6169
  }
6155
6170
  resolvePreview(e) {
6156
- const { annotationId: t, edge: r, press: a, readInputs: o } = this.params, { annotations: i, panelRect: l } = o(), s = qe(i, t);
6171
+ const { annotationId: t, edge: r, press: a, readInputs: o } = this.params, { annotations: i, panelRect: l } = o(), s = je(i, t);
6157
6172
  if (s === null) return null;
6158
- const c = rt(a, e, l).x;
6173
+ const c = at(a, e, l).x;
6159
6174
  return {
6160
6175
  kind: "text-resize-drag",
6161
6176
  annotationId: t,
6162
6177
  delta: c,
6163
- ...ba({
6178
+ ...Ca({
6164
6179
  ...s,
6165
6180
  edge: r,
6166
6181
  delta: c,
6167
- minWidth: fa(l),
6182
+ minWidth: ba(l),
6168
6183
  panelWidth: l.width
6169
6184
  })
6170
6185
  };
6171
6186
  }
6172
6187
  commit(e) {
6173
- const { annotationId: t, dispatch: r, readInputs: a } = this.params, o = qe(a().annotations, t);
6174
- o === null || Ca(o, e) || r(new ne({
6188
+ const { annotationId: t, dispatch: r, readInputs: a } = this.params, o = je(a().annotations, t);
6189
+ o === null || ya(o, e) || r(new ne({
6175
6190
  kind: "text",
6176
6191
  id: t,
6177
6192
  patch: {
@@ -6182,10 +6197,10 @@ var fa = ({ width: e }) => te(60, e), Ih = (e, t) => ({
6182
6197
  }
6183
6198
  }, Nh = ({ annotationId: e, panelRect: t }) => {
6184
6199
  const { commands: r } = G(), a = U(), o = Y({
6185
- annotations: _((i) => i.spec.annotations),
6200
+ annotations: V((i) => i.spec.annotations),
6186
6201
  panelRect: t
6187
6202
  });
6188
- return ua((i, l) => new Mh({
6203
+ return ha((i, l) => new Mh({
6189
6204
  ...l,
6190
6205
  annotationId: e,
6191
6206
  edge: i,
@@ -6194,31 +6209,31 @@ var fa = ({ width: e }) => te(60, e), Ih = (e, t) => ({
6194
6209
  dispatch: r.dispatch
6195
6210
  }));
6196
6211
  }, Oh = 4, Dh = ({ annotationId: e, panelRect: t }) => {
6197
- const { commands: r } = G(), a = U(), o = _((l) => l.spec.annotations), i = (l, s) => {
6198
- const c = qe(o, e);
6212
+ const { commands: r } = G(), a = U(), o = V((l) => l.spec.annotations), i = (l, s) => {
6213
+ const c = je(o, e);
6199
6214
  return c === null ? null : {
6200
6215
  kind: "text-resize-drag",
6201
6216
  annotationId: e,
6202
6217
  delta: s,
6203
- ...ba({
6218
+ ...Ca({
6204
6219
  ...c,
6205
6220
  edge: l,
6206
6221
  delta: s,
6207
- minWidth: fa(t),
6222
+ minWidth: ba(t),
6208
6223
  panelWidth: t.width
6209
6224
  })
6210
6225
  };
6211
6226
  };
6212
- return ha({
6213
- readHeld: () => kt(V(a.getState(), "text-resize-drag"), e),
6227
+ return pa({
6228
+ readHeld: () => Lt(B(a.getState(), "text-resize-drag"), e),
6214
6229
  claim: (l) => i(l, 0),
6215
6230
  step: (l, s, c) => {
6216
6231
  const u = Rh(c, t);
6217
6232
  return u === null ? null : i(s, l.delta + u);
6218
6233
  },
6219
6234
  commit: (l) => {
6220
- const s = qe(o, e);
6221
- s === null || Ca(s, l) || r.dispatch(new ne({
6235
+ const s = je(o, e);
6236
+ s === null || ya(s, l) || r.dispatch(new ne({
6222
6237
  kind: "text",
6223
6238
  id: e,
6224
6239
  patch: {
@@ -6239,7 +6254,7 @@ var fa = ({ width: e }) => te(60, e), Ih = (e, t) => ({
6239
6254
  return null;
6240
6255
  }
6241
6256
  }, zh = (e) => {
6242
- const t = Oe(), r = Fh(t), a = Hh(t), o = X((l) => l.caret?.annotationId === t), i = Bh(e.panelRect, t, a.resized);
6257
+ const t = Oe(), r = Fh(t), a = Hh(t), o = j((l) => l.caret?.annotationId === t), i = Bh(e.panelRect, t, a.resized);
6243
6258
  return r === null || i === null ? null : /* @__PURE__ */ n(_h, {
6244
6259
  annotation: r,
6245
6260
  textBox: i,
@@ -6269,7 +6284,7 @@ var fa = ({ width: e }) => te(60, e), Ih = (e, t) => ({
6269
6284
  frameElement: c
6270
6285
  }), o && !a && !i && Ph.map((v) => {
6271
6286
  const p = Ih(t, v);
6272
- return /* @__PURE__ */ n(da, {
6287
+ return /* @__PURE__ */ n(ua, {
6273
6288
  point: {
6274
6289
  x: l.x + p.x,
6275
6290
  y: l.y + p.y
@@ -6287,16 +6302,16 @@ var fa = ({ width: e }) => te(60, e), Ih = (e, t) => ({
6287
6302
  })]
6288
6303
  });
6289
6304
  }, Fh = (e) => {
6290
- const t = _((r) => r.spec.annotations.textAnnotations);
6305
+ const t = V((r) => r.spec.annotations.textAnnotations);
6291
6306
  return e === null ? null : t.find((r) => r.id === e) ?? null;
6292
- }, Hh = (e) => X(ke((t) => e === null ? {
6307
+ }, Hh = (e) => j(ke((t) => e === null ? {
6293
6308
  resized: null,
6294
6309
  isMoved: !1
6295
6310
  } : {
6296
- resized: kt(V(t, "text-resize-drag"), e),
6297
- isMoved: Ze(V(t, "move-drag"), e) !== null
6311
+ resized: Lt(B(t, "text-resize-drag"), e),
6312
+ isMoved: Ye(B(t, "move-drag"), e) !== null
6298
6313
  })), Bh = (e, t, r) => {
6299
- const a = fe(e), o = Kn(), i = $n(), l = O(() => ({
6314
+ const a = fe(e), o = qn(), i = Un(), l = O(() => ({
6300
6315
  panel: {
6301
6316
  width: e.width,
6302
6317
  height: e.height
@@ -6309,7 +6324,7 @@ var fa = ({ width: e }) => te(60, e), Ih = (e, t) => ({
6309
6324
  o,
6310
6325
  i
6311
6326
  ]);
6312
- return t === null ? null : ca(a, t, r, l)?.rect ?? null;
6327
+ return t === null ? null : da(a, t, r, l)?.rect ?? null;
6313
6328
  }, Vh = (e) => /* @__PURE__ */ n(A, {
6314
6329
  ...e,
6315
6330
  children: /* @__PURE__ */ m("g", {
@@ -6331,42 +6346,41 @@ var Uh = "_1tyillx1", Wh = {
6331
6346
  }, Kh = "_1tyillx5", qh = {
6332
6347
  closed: "_1tyillx6",
6333
6348
  open: "_1tyillx7"
6334
- }, Xh = ({ interaction: e, panelRect: t }) => {
6335
- const r = U(), a = _((s) => s.coordSystem), o = e.kind === "trigger" || e.kind === "menu" ? e.anchor : null, i = jh(e), l = O(() => {
6336
- if (o === null) return null;
6337
- const s = al(o.position, t, a);
6349
+ }, jh = ({ interaction: e, panelRect: t }) => {
6350
+ const r = U(), a = e.kind === "trigger" || e.kind === "menu" ? e.anchor : null, o = Xh(e), i = O(() => {
6351
+ if (a === null) return null;
6352
+ const l = Ve(a.position, t);
6338
6353
  return {
6339
- center: s,
6340
- radius: 19 * $h[i],
6354
+ center: l,
6355
+ radius: 19 * $h[o],
6341
6356
  target: {
6342
6357
  kind: "observation",
6343
- cursor: Ot(s, t)
6358
+ cursor: Dt(l, t)
6344
6359
  }
6345
6360
  };
6346
6361
  }, [
6347
- o,
6348
- t,
6349
6362
  a,
6350
- i
6363
+ t,
6364
+ o
6351
6365
  ]);
6352
6366
  return N(() => {
6353
- r.getState().setMenuTrigger(l);
6354
- }, [r, l]), N(() => () => r.getState().setMenuTrigger(null), [r]), o === null || l === null ? null : /* @__PURE__ */ n("div", {
6367
+ r.getState().setMenuTrigger(i);
6368
+ }, [r, i]), N(() => () => r.getState().setMenuTrigger(null), [r]), a === null || i === null ? null : /* @__PURE__ */ n("div", {
6355
6369
  "aria-hidden": "true",
6356
6370
  "data-testid": "observation-menu-trigger",
6357
- "data-state": i,
6358
- className: se(Uh, Wh[i]),
6371
+ "data-state": o,
6372
+ className: se(Uh, Wh[o]),
6359
6373
  style: {
6360
- left: t.x + l.center.x,
6361
- top: t.y + l.center.y,
6362
- ...pr({ [Gh]: o.color })
6374
+ left: t.x + i.center.x,
6375
+ top: t.y + i.center.y,
6376
+ ...mr({ [Gh]: a.color })
6363
6377
  },
6364
6378
  children: /* @__PURE__ */ n("span", {
6365
- className: se(Kh, qh[i === "open" ? "open" : "closed"]),
6379
+ className: se(Kh, qh[o === "open" ? "open" : "closed"]),
6366
6380
  children: /* @__PURE__ */ n(Vh, { size: "lg" })
6367
6381
  })
6368
6382
  });
6369
- }, jh = (e) => e.kind === "menu" ? "open" : e.kind === "trigger" && e.isEngaged ? "hovered" : "rest", Zh = 'button:not([disabled]):not([tabindex="-1"]), [tabindex]:not([tabindex="-1"])', Yh = (e, t) => {
6383
+ }, Xh = (e) => e.kind === "menu" ? "open" : e.kind === "trigger" && e.isEngaged ? "hovered" : "rest", Zh = 'button:not([disabled]):not([tabindex="-1"]), [tabindex]:not([tabindex="-1"])', Yh = (e, t) => {
6370
6384
  const { chartId: r } = G(), a = U();
6371
6385
  N(() => {
6372
6386
  if (t === null) return;
@@ -6385,7 +6399,7 @@ var Uh = "_1tyillx1", Wh = {
6385
6399
  r,
6386
6400
  a
6387
6401
  ]);
6388
- }, Jh = `[${Un}]`, Xe = (e, t, r) => {
6402
+ }, Jh = `[${Wn}]`, Xe = (e, t, r) => {
6389
6403
  if (typeof document.elementsFromPoint != "function") return null;
6390
6404
  const a = document.elementsFromPoint(e, t);
6391
6405
  return Qh(a, r);
@@ -6399,9 +6413,9 @@ var Uh = "_1tyillx1", Wh = {
6399
6413
  }
6400
6414
  return null;
6401
6415
  }, e1 = (e) => {
6402
- const t = e.getAttribute(Un);
6416
+ const t = e.getAttribute(Wn);
6403
6417
  if (t !== "annotation") return null;
6404
- const r = e.getAttribute(uo);
6418
+ const r = e.getAttribute(ho);
6405
6419
  return r === null || r === "" ? null : {
6406
6420
  kind: t,
6407
6421
  id: r
@@ -6435,12 +6449,12 @@ var Uh = "_1tyillx1", Wh = {
6435
6449
  super(...e), this.kind = "move-drag";
6436
6450
  }
6437
6451
  readOwn(e) {
6438
- return Ze(V(e, "move-drag"), this.params.annotationId);
6452
+ return Ye(B(e, "move-drag"), this.params.annotationId);
6439
6453
  }
6440
6454
  resolvePreview(e) {
6441
- const { annotationId: t, press: r, readInputs: a } = this.params, { annotations: o, panelRect: i } = a(), l = Wi(o, t);
6455
+ const { annotationId: t, press: r, readInputs: a } = this.params, { annotations: o, panelRect: i } = a(), l = Ki(o, t);
6442
6456
  if (l === null) return null;
6443
- const s = Hi(l, rt(r, e, i));
6457
+ const s = Bi(l, at(r, e, i));
6444
6458
  return s === null ? null : {
6445
6459
  kind: "move-drag",
6446
6460
  annotationId: t,
@@ -6449,14 +6463,14 @@ var Uh = "_1tyillx1", Wh = {
6449
6463
  }
6450
6464
  commit({ translation: e }) {
6451
6465
  const { annotationId: t, dispatch: r } = this.params;
6452
- tu(e) && r(new Vo({
6466
+ tu(e) && r(new Go({
6453
6467
  id: t,
6454
6468
  translation: e
6455
6469
  }));
6456
6470
  }
6457
6471
  }, r1 = (e, t, r) => {
6458
6472
  const { commands: a, selectionStore: o } = G(), i = U(), l = Y({
6459
- annotations: _((u) => u.spec.annotations),
6473
+ annotations: V((u) => u.spec.annotations),
6460
6474
  panelRect: r
6461
6475
  }), s = Y(t), c = ee(null);
6462
6476
  N(() => () => c.current?.finish(!1), []), N(() => {
@@ -6464,7 +6478,7 @@ var Uh = "_1tyillx1", Wh = {
6464
6478
  const { editTargetUnderPointer: g, standingInteraction: f } = i.getState();
6465
6479
  return g !== null && f === null && p.pointerType === "mouse" && a1(p.target, e) ? g : Xe(p.clientX, p.clientY, e);
6466
6480
  }, d = (p, g) => {
6467
- if (c.current !== null || !Mo(l.current.annotations, g.id)) return;
6481
+ if (c.current !== null || !No(l.current.annotations, g.id)) return;
6468
6482
  try {
6469
6483
  e.setPointerCapture(p.pointerId);
6470
6484
  } catch {
@@ -6488,7 +6502,7 @@ var Uh = "_1tyillx1", Wh = {
6488
6502
  });
6489
6503
  c.current = f, f.start();
6490
6504
  }, h = (p) => {
6491
- if (p.button !== 0 || bt(p.target) || Fr(p, s.current, i.getState().menuTrigger)) return;
6505
+ if (p.button !== 0 || Ct(p.target) || Hr(p, s.current, i.getState().menuTrigger)) return;
6492
6506
  const g = u(p), f = o.getState(), { caret: C, setCaret: L } = i.getState();
6493
6507
  if (!(C !== null && g?.id === C.annotationId)) {
6494
6508
  if (L(null), g === null) {
@@ -6498,7 +6512,7 @@ var Uh = "_1tyillx1", Wh = {
6498
6512
  f.setSelection([g]), d(p, g);
6499
6513
  }
6500
6514
  }, v = (p) => {
6501
- if (bt(p.target)) return;
6515
+ if (Ct(p.target)) return;
6502
6516
  const g = Xe(p.clientX, p.clientY, e);
6503
6517
  g !== null && l.current.annotations.textAnnotations.some((f) => f.id === g.id) && (o.getState().setSelection([g]), i.getState().setCaret(g.id));
6504
6518
  };
@@ -6514,8 +6528,8 @@ var Uh = "_1tyillx1", Wh = {
6514
6528
  s
6515
6529
  ]);
6516
6530
  }, a1 = (e, t) => e instanceof Node && t.contains(e), o1 = (e) => {
6517
- const { selectionStore: t, commands: r, chartId: a } = G(), o = U(), i = Y(_((u) => u.spec.annotations.textAnnotations)), l = oe((u) => {
6518
- const { selection: d } = t.getState(), h = Ct(d);
6531
+ const { selectionStore: t, commands: r, chartId: a } = G(), o = U(), i = Y(V((u) => u.spec.annotations.textAnnotations)), l = oe((u) => {
6532
+ const { selection: d } = t.getState(), h = yt(d);
6519
6533
  h !== null && (u.preventDefault(), r.dispatch(new Te({ id: h })), e.focus({ preventScroll: !0 }));
6520
6534
  }, [
6521
6535
  e,
@@ -6523,7 +6537,7 @@ var Uh = "_1tyillx1", Wh = {
6523
6537
  t
6524
6538
  ]), s = oe((u) => {
6525
6539
  if (Be(u.target, a)) return;
6526
- const d = Ct(t.getState().selection);
6540
+ const d = yt(t.getState().selection);
6527
6541
  d !== null && i.current.some((h) => h.id === d) && (u.preventDefault(), o.getState().setCaret(d));
6528
6542
  }, [
6529
6543
  o,
@@ -6574,10 +6588,10 @@ var Uh = "_1tyillx1", Wh = {
6574
6588
  o
6575
6589
  ]);
6576
6590
  }, i1 = (e) => e instanceof HTMLElement && (e.isContentEditable || e instanceof HTMLInputElement || e instanceof HTMLTextAreaElement), l1 = () => {
6577
- const e = Ao((l) => l.hover.primary), { layers: t, coordSystem: r } = _(ke((l) => ({
6591
+ const e = ko((l) => l.hover.primary), { layers: t, coordSystem: r } = V(ke((l) => ({
6578
6592
  layers: l.layers,
6579
6593
  coordSystem: l.coordSystem
6580
- }))), { anchorResolver: a, colorScheme: o } = G(), i = O(() => Qe({ colorScheme: o }), [o]);
6594
+ }))), { anchorResolver: a, colorScheme: o } = G(), i = O(() => et({ colorScheme: o }), [o]);
6581
6595
  return O(() => {
6582
6596
  if (e === null) return null;
6583
6597
  const l = t.find((u) => u.id === e.layerId);
@@ -6588,7 +6602,7 @@ var Uh = "_1tyillx1", Wh = {
6588
6602
  purpose: "pin"
6589
6603
  });
6590
6604
  if (s === null) return null;
6591
- const c = Bi(l)(e.observation);
6605
+ const c = Vi(l)(e.observation);
6592
6606
  return c === null ? null : {
6593
6607
  position: s,
6594
6608
  color: i.geomReaders(l).get("color", e.observation),
@@ -6603,8 +6617,8 @@ var Uh = "_1tyillx1", Wh = {
6603
6617
  a,
6604
6618
  i
6605
6619
  ]);
6606
- }, s1 = { kind: "idle" }, ya = () => {
6607
- const e = X((a) => a.standingInteraction), t = X((a) => a.chromeUnderPointer), r = l1();
6620
+ }, s1 = { kind: "idle" }, Sa = () => {
6621
+ const e = j((a) => a.standingInteraction), t = j((a) => a.chromeUnderPointer), r = l1();
6608
6622
  return O(() => e !== null ? e : r === null ? s1 : {
6609
6623
  kind: "trigger",
6610
6624
  anchor: r,
@@ -6615,21 +6629,21 @@ var Uh = "_1tyillx1", Wh = {
6615
6629
  t
6616
6630
  ]);
6617
6631
  }, c1 = (e, t, r) => {
6618
- const a = U(), { selectionStore: o } = G(), { store: i, engine: l } = Pt(), s = Y(e), c = Y(t), u = Y(r);
6632
+ const a = U(), { selectionStore: o } = G(), { store: i, engine: l } = It(), s = Y(e), c = Y(t), u = Y(r);
6619
6633
  N(() => {
6620
- const d = (f) => Fr(f, c.current, a.getState().menuTrigger), h = (f) => {
6634
+ const d = (f) => Hr(f, c.current, a.getState().menuTrigger), h = (f) => {
6621
6635
  if (d(f) || o.getState().selection.length > 0) return;
6622
6636
  const C = u.current, L = c.current, b = {
6623
6637
  x: f.clientX - L.x,
6624
6638
  y: f.clientY - L.y
6625
- }, P = d1(b, C) ? l.query(Ot(b, C)) : er;
6639
+ }, P = d1(b, C) ? l.query(Dt(b, C)) : tr;
6626
6640
  i.getState().setHoverState(P);
6627
6641
  };
6628
6642
  let v = !1;
6629
6643
  const p = () => {
6630
6644
  v = s.current.kind === "menu";
6631
6645
  }, g = (f) => {
6632
- if (bt(f.target)) return;
6646
+ if (Ct(f.target)) return;
6633
6647
  const { claimInteraction: C, releaseInteraction: L } = a.getState();
6634
6648
  if (!d(f) || v) {
6635
6649
  L("menu"), v && h(f);
@@ -6659,7 +6673,7 @@ var Uh = "_1tyillx1", Wh = {
6659
6673
  let o = null, i = null;
6660
6674
  const l = (p) => {
6661
6675
  const { menuTrigger: g } = r.getState();
6662
- return g === null ? null : cr(p, g) ? "menu-trigger" : null;
6676
+ return g === null ? null : dr(p, g) ? "menu-trigger" : null;
6663
6677
  }, s = () => {
6664
6678
  o = null;
6665
6679
  const p = i;
@@ -6668,7 +6682,7 @@ var Uh = "_1tyillx1", Wh = {
6668
6682
  if (f.setChromeUnderPointer(l({
6669
6683
  x: p.x - g.x,
6670
6684
  y: p.y - g.y
6671
- })), ht(f.standingInteraction)) return;
6685
+ })), pt(f.standingInteraction)) return;
6672
6686
  const C = Xe(p.x, p.y, e);
6673
6687
  f.setEditTargetUnderPointer(C);
6674
6688
  }, c = () => {
@@ -6684,7 +6698,7 @@ var Uh = "_1tyillx1", Wh = {
6684
6698
  }, h = () => {
6685
6699
  i = null, o !== null && (cancelAnimationFrame(o), o = null), u();
6686
6700
  }, v = r.subscribe((p, g) => {
6687
- !ht(g.standingInteraction) || ht(p.standingInteraction) || i !== null && c();
6701
+ !pt(g.standingInteraction) || pt(p.standingInteraction) || i !== null && c();
6688
6702
  });
6689
6703
  return e.addEventListener("pointermove", d), e.addEventListener("pointerleave", h), () => {
6690
6704
  o !== null && cancelAnimationFrame(o), v(), e.removeEventListener("pointermove", d), e.removeEventListener("pointerleave", h), u();
@@ -6694,7 +6708,7 @@ var Uh = "_1tyillx1", Wh = {
6694
6708
  r,
6695
6709
  a
6696
6710
  ]);
6697
- }, ht = (e) => {
6711
+ }, pt = (e) => {
6698
6712
  if (e === null) return !1;
6699
6713
  switch (e.kind) {
6700
6714
  case "menu":
@@ -6707,19 +6721,19 @@ var Uh = "_1tyillx1", Wh = {
6707
6721
  case "chrome-popup":
6708
6722
  return !1;
6709
6723
  }
6710
- }, kn = "editor", Ln = [], h1 = (e, t, r, a) => {
6711
- const o = ya(), { store: i } = Pt(), l = jn().length > 0, s = X((d) => d.menuTrigger), c = o.kind === "menu", u = O(() => s === null ? Ln : [Ni(s)], [s]);
6712
- u1(e, t), r1(e, t, r), c1(o, t, r), t1(e), o1(e), Yh(e, a), N(() => (i.getState().publishPointerRegions(kn, u), () => i.getState().publishPointerRegions(kn, Ln)), [i, u]), N(() => (i.getState().setPointerSuspended(c || l), () => i.getState().setPointerSuspended(!1)), [
6724
+ }, Ln = "editor", Pn = [], h1 = (e, t, r, a) => {
6725
+ const o = Sa(), { store: i } = It(), l = Zn().length > 0, s = j((d) => d.menuTrigger), c = o.kind === "menu", u = O(() => s === null ? Pn : [Oi(s)], [s]);
6726
+ u1(e, t), r1(e, t, r), c1(o, t, r), t1(e), o1(e), Yh(e, a), N(() => (i.getState().publishPointerRegions(Ln, u), () => i.getState().publishPointerRegions(Ln, Pn)), [i, u]), N(() => (i.getState().setPointerSuspended(c || l), () => i.getState().setPointerSuspended(!1)), [
6713
6727
  i,
6714
6728
  c,
6715
6729
  l
6716
6730
  ]), N(() => {
6717
6731
  if (!l) return;
6718
6732
  const d = i.getState();
6719
- d.setHoverState(er), d.setTooltipAnchor(null);
6733
+ d.setHoverState(tr), d.setTooltipAnchor(null);
6720
6734
  }, [i, l]);
6721
6735
  }, p1 = ({ frameElement: e, panelRect: t }) => {
6722
- const { measureRef: r, screenRect: a } = To(), o = U(), i = X((l) => l.caret?.annotationId ?? null);
6736
+ const { measureRef: r, screenRect: a } = Ao(), o = U(), i = j((l) => l.caret?.annotationId ?? null);
6723
6737
  return N(() => (r(e), () => r(null)), [r, e]), N(() => () => {
6724
6738
  const l = o.getState();
6725
6739
  l.releaseInteraction("menu"), l.setCaret(null);
@@ -6758,10 +6772,10 @@ var Uh = "_1tyillx1", Wh = {
6758
6772
  boxRef: i
6759
6773
  });
6760
6774
  }, v1 = ({ frameElement: e, frameRect: t, panelOrigin: r, panelRect: a, boxRef: o }) => {
6761
- const i = Ft(), l = ya();
6762
- return /* @__PURE__ */ n(go, {
6775
+ const i = Ht(), l = Sa();
6776
+ return /* @__PURE__ */ n(vo, {
6763
6777
  rect: t,
6764
- zIndex: Eo.editorOverlay,
6778
+ zIndex: Mo.editorOverlay,
6765
6779
  container: i,
6766
6780
  "data-testid": "editor-overlay",
6767
6781
  boxRef: o,
@@ -6788,10 +6802,10 @@ var Uh = "_1tyillx1", Wh = {
6788
6802
  frameElement: e
6789
6803
  }),
6790
6804
  /* @__PURE__ */ n($u, { panelRect: a }),
6791
- /* @__PURE__ */ n(ju, { panelRect: a }),
6805
+ /* @__PURE__ */ n(Xu, { panelRect: a }),
6792
6806
  /* @__PURE__ */ n(Id, { panelRect: a }),
6793
6807
  /* @__PURE__ */ n(Gu, { panelRect: a }),
6794
- /* @__PURE__ */ n(Xh, {
6808
+ /* @__PURE__ */ n(jh, {
6795
6809
  interaction: l,
6796
6810
  panelRect: a
6797
6811
  }),
@@ -6802,10 +6816,10 @@ var Uh = "_1tyillx1", Wh = {
6802
6816
  ] })
6803
6817
  });
6804
6818
  }, Bm = ({ slots: e, ...t }) => /* @__PURE__ */ n(Ql, {
6805
- locale: ro(),
6806
- children: /* @__PURE__ */ n(oo, { children: /* @__PURE__ */ n(io, {
6819
+ locale: ao(),
6820
+ children: /* @__PURE__ */ n(io, { children: /* @__PURE__ */ n(lo, {
6807
6821
  editors: Oc,
6808
- children: /* @__PURE__ */ n(wo, {
6822
+ children: /* @__PURE__ */ n(To, {
6809
6823
  slots: O(() => ({
6810
6824
  EditorSurface: p1,
6811
6825
  ...e
@@ -6813,7 +6827,7 @@ var Uh = "_1tyillx1", Wh = {
6813
6827
  ...t
6814
6828
  })
6815
6829
  }) })
6816
- }), Sa = Me(null), xa = ({ labelId: e, controlId: t, children: r }) => {
6830
+ }), xa = Me(null), wa = ({ labelId: e, controlId: t, children: r }) => {
6817
6831
  const a = O(() => {
6818
6832
  let o = null;
6819
6833
  return {
@@ -6822,12 +6836,12 @@ var Uh = "_1tyillx1", Wh = {
6822
6836
  claimControlId: (i) => (o ??= i, o === i)
6823
6837
  };
6824
6838
  }, [e, t]);
6825
- return /* @__PURE__ */ n(Sa.Provider, {
6839
+ return /* @__PURE__ */ n(xa.Provider, {
6826
6840
  value: a,
6827
6841
  children: r
6828
6842
  });
6829
6843
  }, me = ({ id: e, ariaLabel: t, ariaLabelledBy: r }, a = !0) => {
6830
- const o = Ae(Sa), i = we(), [l] = J(() => a ? o?.claimControlId(i) ?? !1 : !1), s = e ?? (l ? o?.controlId : void 0), c = r ?? (t === void 0 ? o?.labelId : void 0);
6844
+ const o = Ae(xa), i = we(), [l] = J(() => a ? o?.claimControlId(i) ?? !1 : !1), s = e ?? (l ? o?.controlId : void 0), c = r ?? (t === void 0 ? o?.labelId : void 0);
6831
6845
  return {
6832
6846
  ...s !== void 0 && { id: s },
6833
6847
  ...t !== void 0 && { "aria-label": t },
@@ -6857,22 +6871,22 @@ var f1 = {
6857
6871
  children: e
6858
6872
  })]
6859
6873
  });
6860
- }, Wt = Me(null), F = () => {
6861
- const e = Ae(Wt);
6874
+ }, Kt = Me(null), _ = () => {
6875
+ const e = Ae(Kt);
6862
6876
  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>.");
6863
6877
  return e;
6864
- }, wa = ({ children: e, onKeyDown: t, ...r }) => {
6865
- const a = Ae(Wt);
6878
+ }, Ta = ({ children: e, onKeyDown: t, ...r }) => {
6879
+ const a = Ae(Kt);
6866
6880
  return /* @__PURE__ */ n("div", {
6867
6881
  onKeyDown: (i) => {
6868
6882
  if (t?.(i), !a || i.defaultPrevented) return;
6869
- const l = Lo(i.nativeEvent);
6883
+ const l = Po(i.nativeEvent);
6870
6884
  l && (i.preventDefault(), l === "undo" ? a.undo() : a.redo());
6871
6885
  },
6872
6886
  ...r,
6873
6887
  children: e
6874
6888
  });
6875
- }, Ta = "keyboard", at = (e) => {
6889
+ }, Aa = "keyboard", ot = (e) => {
6876
6890
  const t = ee(!1), r = ee(!1), a = () => {
6877
6891
  t.current = !1, r.current && (r.current = !1, e?.());
6878
6892
  };
@@ -6907,19 +6921,19 @@ var x1 = ({ value: e, onChange: t, onCommit: r, min: a, max: o, step: i, placeho
6907
6921
  id: p,
6908
6922
  ariaLabel: h,
6909
6923
  ariaLabelledBy: v
6910
- }), { commitUnlessHeldKey: f, gestureHandlers: C } = at(r);
6911
- return /* @__PURE__ */ n(an.Root, {
6924
+ }), { commitUnlessHeldKey: f, gestureHandlers: C } = ot(r);
6925
+ return /* @__PURE__ */ n(on.Root, {
6912
6926
  className: C1,
6913
6927
  value: e,
6914
6928
  onValueChange: (L) => t(L),
6915
6929
  onValueCommitted: (L, b) => {
6916
- f(b.reason === Ta);
6930
+ f(b.reason === Aa);
6917
6931
  },
6918
6932
  min: a,
6919
6933
  max: o,
6920
6934
  step: i,
6921
6935
  disabled: u,
6922
- children: /* @__PURE__ */ m(wa, {
6936
+ children: /* @__PURE__ */ m(Ta, {
6923
6937
  className: y1,
6924
6938
  "data-error": d === !0,
6925
6939
  "data-disabled": u === !0 ? "" : void 0,
@@ -6928,7 +6942,7 @@ var x1 = ({ value: e, onChange: t, onCommit: r, min: a, max: o, step: i, placeho
6928
6942
  className: "eh8dvc3",
6929
6943
  children: s
6930
6944
  }),
6931
- /* @__PURE__ */ n(an.Input, {
6945
+ /* @__PURE__ */ n(on.Input, {
6932
6946
  className: S1,
6933
6947
  placeholder: l,
6934
6948
  ...C,
@@ -6955,8 +6969,8 @@ var A1 = 6, k1 = ({ options: e, value: t, onChange: r, onCommit: a, columns: o,
6955
6969
  id: u,
6956
6970
  ariaLabel: s,
6957
6971
  ariaLabelledBy: c
6958
- }), h = i === "swatch", { commitAfterChange: v, gestureHandlers: p } = at(a);
6959
- return /* @__PURE__ */ n(Cr, {
6972
+ }), h = i === "swatch", { commitAfterChange: v, gestureHandlers: p } = ot(a);
6973
+ return /* @__PURE__ */ n(yr, {
6960
6974
  className: se(w1, L1(o ?? e.length)),
6961
6975
  value: t,
6962
6976
  onValueChange: (g) => {
@@ -6965,7 +6979,7 @@ var A1 = 6, k1 = ({ options: e, value: t, onChange: r, onCommit: a, columns: o,
6965
6979
  ...p,
6966
6980
  disabled: l,
6967
6981
  ...d,
6968
- children: e.map((g) => /* @__PURE__ */ m(br.Root, {
6982
+ children: e.map((g) => /* @__PURE__ */ m(Cr.Root, {
6969
6983
  value: g.value,
6970
6984
  disabled: g.isDisabled,
6971
6985
  className: se(T1, h && "_1b7s5f8"),
@@ -6991,7 +7005,7 @@ var A1 = 6, k1 = ({ options: e, value: t, onChange: r, onCommit: a, columns: o,
6991
7005
  default:
6992
7006
  return ye[6];
6993
7007
  }
6994
- }, P1 = "_1g5x15w0 uz3g760", I1 = "_1g5x15w1", E1 = "_1g5x15w2", Pn = "_1g5x15w3", M1 = "_1g5x15w4", N1 = "_1g5x15w5", O1 = "_1g5x15w6", D1 = "_1g5x15w7";
7008
+ }, P1 = "_1g5x15w0 uz3g760", I1 = "_1g5x15w1", E1 = "_1g5x15w2", In = "_1g5x15w3", M1 = "_1g5x15w4", N1 = "_1g5x15w5", O1 = "_1g5x15w6", D1 = "_1g5x15w7";
6995
7009
  var R1 = ({ options: e, value: t, onChange: r, placeholder: a, isDisabled: o, hasError: i, ariaLabel: l, ariaLabelledBy: s, id: c }) => {
6996
7010
  const u = me({
6997
7011
  id: c,
@@ -7014,7 +7028,7 @@ var R1 = ({ options: e, value: t, onChange: r, placeholder: a, isDisabled: o, ha
7014
7028
  className: I1,
7015
7029
  children: (d) => z1(e, d, a)
7016
7030
  }), /* @__PURE__ */ n(re.Icon, {
7017
- className: Pn,
7031
+ className: In,
7018
7032
  children: /* @__PURE__ */ n(Ne, { size: "sm" })
7019
7033
  })]
7020
7034
  }), /* @__PURE__ */ n(re.Portal, {
@@ -7039,8 +7053,8 @@ var R1 = ({ options: e, value: t, onChange: r, placeholder: a, isDisabled: o, ha
7039
7053
  })]
7040
7054
  }),
7041
7055
  /* @__PURE__ */ n(re.ItemIndicator, {
7042
- className: Pn,
7043
- children: /* @__PURE__ */ n(Nr, { size: "sm" })
7056
+ className: In,
7057
+ children: /* @__PURE__ */ n(Or, { size: "sm" })
7044
7058
  })
7045
7059
  ]
7046
7060
  }, d.value))
@@ -7056,7 +7070,7 @@ var U1 = ({ value: e, onChange: t, onCommit: r, min: a, max: o, step: i, suffix:
7056
7070
  const h = me({
7057
7071
  ariaLabel: u,
7058
7072
  ariaLabelledBy: d
7059
- }, !1), v = W1(e, l, s), { commitUnlessHeldKey: p, gestureHandlers: g } = at(r);
7073
+ }, !1), v = W1(e, l, s), { commitUnlessHeldKey: p, gestureHandlers: g } = ot(r);
7060
7074
  return /* @__PURE__ */ m("div", {
7061
7075
  className: F1,
7062
7076
  children: [/* @__PURE__ */ n(ae.Root, {
@@ -7064,7 +7078,7 @@ var U1 = ({ value: e, onChange: t, onCommit: r, min: a, max: o, step: i, suffix:
7064
7078
  value: e,
7065
7079
  onValueChange: (f) => t(f),
7066
7080
  onValueCommitted: (f, C) => {
7067
- p(C.reason === Ta);
7081
+ p(C.reason === Aa);
7068
7082
  },
7069
7083
  min: a,
7070
7084
  max: o,
@@ -7086,31 +7100,31 @@ var U1 = ({ value: e, onChange: t, onCommit: r, min: a, max: o, step: i, suffix:
7086
7100
  children: v
7087
7101
  })]
7088
7102
  });
7089
- }, W1 = (e, t, r) => r !== void 0 ? r(e) : t !== void 0 ? `${e}${t}` : null, K1 = "_1hyrlw60", q1 = "_1hyrlw61", X1 = ({ isChecked: e, onChange: t, isDisabled: r, ariaLabel: a, ariaLabelledBy: o, id: i }) => {
7103
+ }, W1 = (e, t, r) => r !== void 0 ? r(e) : t !== void 0 ? `${e}${t}` : null, K1 = "_1hyrlw60", q1 = "_1hyrlw61", j1 = ({ isChecked: e, onChange: t, isDisabled: r, ariaLabel: a, ariaLabelledBy: o, id: i }) => {
7090
7104
  const l = me({
7091
7105
  id: i,
7092
7106
  ariaLabel: a,
7093
7107
  ariaLabelledBy: o
7094
7108
  });
7095
- return /* @__PURE__ */ n(on.Root, {
7109
+ return /* @__PURE__ */ n(ln.Root, {
7096
7110
  checked: e,
7097
7111
  onCheckedChange: (s) => t(s),
7098
7112
  disabled: r,
7099
7113
  className: K1,
7100
7114
  ...l,
7101
- children: /* @__PURE__ */ n(on.Thumb, { className: q1 })
7115
+ children: /* @__PURE__ */ n(ln.Thumb, { className: q1 })
7102
7116
  });
7103
- }, j1 = "uz3g761", Z1 = "tpcnun0 uz3g760", Y1 = ({ value: e, onChange: t, onCommit: r, placeholder: a, isDisabled: o, hasError: i, ariaLabel: l, ariaLabelledBy: s, id: c }) => {
7117
+ }, X1 = "uz3g761", Z1 = "tpcnun0 uz3g760", Y1 = ({ value: e, onChange: t, onCommit: r, placeholder: a, isDisabled: o, hasError: i, ariaLabel: l, ariaLabelledBy: s, id: c }) => {
7104
7118
  const u = me({
7105
7119
  id: c,
7106
7120
  ariaLabel: l,
7107
7121
  ariaLabelledBy: s
7108
7122
  });
7109
- return /* @__PURE__ */ n(wa, {
7123
+ return /* @__PURE__ */ n(Ta, {
7110
7124
  className: Z1,
7111
7125
  "data-error": i === !0,
7112
7126
  children: /* @__PURE__ */ n(zl, {
7113
- className: j1,
7127
+ className: X1,
7114
7128
  value: e,
7115
7129
  onValueChange: (d) => t(d),
7116
7130
  onBlur: r,
@@ -7126,8 +7140,8 @@ var ep = ({ options: e, value: t, onChange: r, onCommit: a, itemLayout: o = "inl
7126
7140
  id: c,
7127
7141
  ariaLabel: l,
7128
7142
  ariaLabelledBy: s
7129
- }), d = o === "stacked", { commitAfterChange: h, gestureHandlers: v } = at(a);
7130
- return /* @__PURE__ */ n(Cr, {
7143
+ }), d = o === "stacked", { commitAfterChange: h, gestureHandlers: v } = ot(a);
7144
+ return /* @__PURE__ */ n(yr, {
7131
7145
  className: J1,
7132
7146
  value: t,
7133
7147
  onValueChange: (p) => {
@@ -7136,51 +7150,51 @@ var ep = ({ options: e, value: t, onChange: r, onCommit: a, itemLayout: o = "inl
7136
7150
  ...v,
7137
7151
  disabled: i,
7138
7152
  ...u,
7139
- children: e.map((p) => /* @__PURE__ */ m(br.Root, {
7153
+ children: e.map((p) => /* @__PURE__ */ m(Cr.Root, {
7140
7154
  value: p.value,
7141
7155
  disabled: p.isDisabled,
7142
7156
  className: se(Q1, d && "cnu9yl2"),
7143
7157
  "aria-label": tp(p, d),
7144
- children: [p.icon, Aa(p, d) && /* @__PURE__ */ n("span", {
7158
+ children: [p.icon, ka(p, d) && /* @__PURE__ */ n("span", {
7145
7159
  className: "cnu9yl3",
7146
7160
  children: p.label
7147
7161
  })]
7148
7162
  }, p.value))
7149
7163
  });
7150
- }, Aa = (e, t) => e.icon === void 0 || t, tp = (e, t) => {
7151
- if (!Aa(e, t))
7164
+ }, ka = (e, t) => e.icon === void 0 || t, tp = (e, t) => {
7165
+ if (!ka(e, t))
7152
7166
  return e.label;
7153
- }, ka = {
7167
+ }, La = {
7154
7168
  ToggleGroup: ep,
7155
- Switch: X1,
7169
+ Switch: j1,
7156
7170
  Slider: U1,
7157
7171
  RadioGrid: k1,
7158
7172
  Button: b1,
7159
7173
  TextField: Y1,
7160
7174
  NumberField: x1,
7161
7175
  Select: R1
7162
- }, La = Me(ka), np = ({ controls: e, children: t }) => {
7176
+ }, Pa = Me(La), np = ({ controls: e, children: t }) => {
7163
7177
  const r = O(() => ({
7164
- ...ka,
7178
+ ...La,
7165
7179
  ...e
7166
7180
  }), [e]);
7167
- return /* @__PURE__ */ n(La.Provider, {
7181
+ return /* @__PURE__ */ n(Pa.Provider, {
7168
7182
  value: r,
7169
7183
  children: t
7170
7184
  });
7171
- }, H = () => Ae(La), rp = "_12lhx9e0", Pa = ({ children: e }) => /* @__PURE__ */ n("div", {
7185
+ }, F = () => Ae(Pa), rp = "_12lhx9e0", Ia = ({ children: e }) => /* @__PURE__ */ n("div", {
7172
7186
  className: rp,
7173
7187
  children: e
7174
7188
  }), ap = "_139ohwv0", q = ({ children: e }) => /* @__PURE__ */ n("div", {
7175
7189
  className: ap,
7176
7190
  children: e
7177
- }), Ia = Me(null), op = Ia.Provider, ip = () => {
7178
- const e = Ae(Ia);
7191
+ }), Ea = Me(null), op = Ea.Provider, ip = () => {
7192
+ const e = Ae(Ea);
7179
7193
  if (!e) throw new Error("A section must be rendered inside <EditorPanel.Root>.");
7180
7194
  return e;
7181
7195
  }, lp = "_1jlczkt0", sp = "data-graphy-editor-panel", cp = {
7182
7196
  List: q,
7183
- Grid: Pa
7197
+ Grid: Ia
7184
7198
  };
7185
7199
  function dp(e) {
7186
7200
  if (e === void 0) return !1;
@@ -7188,11 +7202,11 @@ function dp(e) {
7188
7202
  return t.includes("_1ii3bsb0") || t.includes("_1ii3bsb1");
7189
7203
  }
7190
7204
  var up = ({ handle: e, children: t, controls: r, defaultExpandedSection: a = void 0, className: o }) => {
7191
- const i = fo(e), { themeClass: l, inlineVarsStyle: s } = Ee(), [c, u] = J(() => a ? [a] : []), d = O(() => ({
7205
+ const i = bo(e), { themeClass: l, inlineVarsStyle: s } = Ee(), [c, u] = J(() => a ? [a] : []), d = O(() => ({
7192
7206
  expandSection: (h) => u([h]),
7193
7207
  collapseAllSections: () => u([])
7194
7208
  }), []);
7195
- return /* @__PURE__ */ n(Wt.Provider, {
7209
+ return /* @__PURE__ */ n(Kt.Provider, {
7196
7210
  value: i,
7197
7211
  children: /* @__PURE__ */ n(np, {
7198
7212
  controls: r,
@@ -7209,25 +7223,25 @@ var up = ({ handle: e, children: t, controls: r, defaultExpandedSection: a = voi
7209
7223
  })
7210
7224
  })
7211
7225
  });
7212
- }, Ea = {
7226
+ }, Ma = {
7213
7227
  Root: up,
7214
7228
  Controls: cp
7215
- }, In = {
7229
+ }, En = {
7216
7230
  stack: "pr583x0",
7217
7231
  grid: "pr583x1"
7218
- }, En = "pr583x2", hp = {
7232
+ }, Mn = "pr583x2", hp = {
7219
7233
  plain: "pr583x4 pr583x3",
7220
7234
  withIcon: "pr583x5 pr583x3"
7221
7235
  }, S = ({ label: e, layout: t = "grid", icon: r, children: a }) => {
7222
7236
  const o = we(), i = we();
7223
7237
  return e === void 0 ? /* @__PURE__ */ n("div", {
7224
- className: In[t],
7238
+ className: En[t],
7225
7239
  children: /* @__PURE__ */ n("div", {
7226
- className: En,
7240
+ className: Mn,
7227
7241
  children: a
7228
7242
  })
7229
7243
  }) : /* @__PURE__ */ m("div", {
7230
- className: In[t],
7244
+ className: En[t],
7231
7245
  children: [/* @__PURE__ */ m("label", {
7232
7246
  id: o,
7233
7247
  htmlFor: i,
@@ -7237,8 +7251,8 @@ var up = ({ handle: e, children: t, controls: r, defaultExpandedSection: a = voi
7237
7251
  children: r
7238
7252
  }), e]
7239
7253
  }), /* @__PURE__ */ n("div", {
7240
- className: En,
7241
- children: /* @__PURE__ */ n(xa, {
7254
+ className: Mn,
7255
+ children: /* @__PURE__ */ n(wa, {
7242
7256
  labelId: o,
7243
7257
  controlId: i,
7244
7258
  children: a
@@ -7254,7 +7268,7 @@ var up = ({ handle: e, children: t, controls: r, defaultExpandedSection: a = voi
7254
7268
  strokeLinejoin: "round",
7255
7269
  children: /* @__PURE__ */ n("path", { d: "m9 6 6 6-6 6" })
7256
7270
  })
7257
- }), Kt = "_40zvwv0", qt = "_40zvwv1", mp = "_40zvwv2", Ma = "_40zvwv3", gp = "_40zvwv4 _40zvwv3";
7271
+ }), qt = "_40zvwv0", jt = "_40zvwv1", mp = "_40zvwv2", Na = "_40zvwv3", gp = "_40zvwv4 _40zvwv3";
7258
7272
  var vp = "_40zvwv6";
7259
7273
  var fp = "_40zvwv8", W = ({ title: e, layout: t = "fixed", preview: r, accessory: a, onOpenChange: o, children: i }) => t === "collapsible" ? /* @__PURE__ */ n(Cp, {
7260
7274
  title: e,
@@ -7267,12 +7281,12 @@ var fp = "_40zvwv8", W = ({ title: e, layout: t = "fixed", preview: r, accessory
7267
7281
  accessory: a,
7268
7282
  children: i
7269
7283
  }) : /* @__PURE__ */ m("div", {
7270
- className: Kt,
7284
+ className: qt,
7271
7285
  children: [/* @__PURE__ */ m("div", {
7272
- className: qt,
7286
+ className: jt,
7273
7287
  children: [
7274
7288
  /* @__PURE__ */ n("span", {
7275
- className: Ma,
7289
+ className: Na,
7276
7290
  children: e
7277
7291
  }),
7278
7292
  r !== void 0 && /* @__PURE__ */ n("span", {
@@ -7288,9 +7302,9 @@ var fp = "_40zvwv8", W = ({ title: e, layout: t = "fixed", preview: r, accessory
7288
7302
  }), bp = ({ title: e, accessory: t, children: r }) => {
7289
7303
  const a = we(), o = we();
7290
7304
  return /* @__PURE__ */ n("div", {
7291
- className: Kt,
7305
+ className: qt,
7292
7306
  children: /* @__PURE__ */ m("div", {
7293
- className: qt,
7307
+ className: jt,
7294
7308
  children: [
7295
7309
  /* @__PURE__ */ n("label", {
7296
7310
  id: a,
@@ -7300,7 +7314,7 @@ var fp = "_40zvwv8", W = ({ title: e, layout: t = "fixed", preview: r, accessory
7300
7314
  }),
7301
7315
  /* @__PURE__ */ n("span", {
7302
7316
  className: vp,
7303
- children: /* @__PURE__ */ n(xa, {
7317
+ children: /* @__PURE__ */ n(wa, {
7304
7318
  labelId: a,
7305
7319
  controlId: o,
7306
7320
  children: r
@@ -7317,10 +7331,10 @@ var fp = "_40zvwv8", W = ({ title: e, layout: t = "fixed", preview: r, accessory
7317
7331
  const i = k();
7318
7332
  return /* @__PURE__ */ m(Pe.Item, {
7319
7333
  value: e,
7320
- className: Kt,
7334
+ className: qt,
7321
7335
  onOpenChange: a,
7322
7336
  children: [/* @__PURE__ */ m(Pe.Header, {
7323
- className: qt,
7337
+ className: jt,
7324
7338
  render: /* @__PURE__ */ n("div", {}),
7325
7339
  children: [
7326
7340
  /* @__PURE__ */ n(Pe.Trigger, {
@@ -7328,7 +7342,7 @@ var fp = "_40zvwv8", W = ({ title: e, layout: t = "fixed", preview: r, accessory
7328
7342
  "aria-label": i("editor.accessibility.toggleSection", { title: e })
7329
7343
  }),
7330
7344
  /* @__PURE__ */ n("span", {
7331
- className: Ma,
7345
+ className: Na,
7332
7346
  children: e
7333
7347
  }),
7334
7348
  t !== void 0 && /* @__PURE__ */ n("span", {
@@ -7347,7 +7361,7 @@ var fp = "_40zvwv8", W = ({ title: e, layout: t = "fixed", preview: r, accessory
7347
7361
  }), /* @__PURE__ */ n(Pe.Panel, { children: /* @__PURE__ */ n("div", { children: o }) })]
7348
7362
  });
7349
7363
  }, yp = ({ title: e, isChecked: t, onToggle: r, isDisabled: a, preview: o, children: i }) => {
7350
- const { expandSection: l, collapseAllSections: s } = ip(), { Switch: c } = H();
7364
+ const { expandSection: l, collapseAllSections: s } = ip(), { Switch: c } = F();
7351
7365
  return /* @__PURE__ */ n(W, {
7352
7366
  title: e,
7353
7367
  layout: "collapsible",
@@ -7376,94 +7390,94 @@ var fp = "_40zvwv8", W = ({ title: e, layout: t = "fixed", preview: r, accessory
7376
7390
  }, wp = {
7377
7391
  x: "editor.axesPanel.mainAxisSection.xAxis",
7378
7392
  y: "editor.axesPanel.mainAxisSection.yAxis"
7379
- }, Mn = ({ axis: e, title: t, layout: r = "collapsible", preview: a }) => {
7380
- const o = F(), i = $(o), l = k(), { NumberField: s, Switch: c, TextField: u, ToggleGroup: d } = H();
7393
+ }, Nn = ({ axis: e, title: t, layout: r = "collapsible", preview: a }) => {
7394
+ const o = _(), i = $(o), l = k(), { NumberField: s, Switch: c, TextField: u, ToggleGroup: d } = F();
7381
7395
  if (!i) return null;
7382
7396
  const h = i.coordSystem.type === "polar" ? i.coordSystem.axisMapping[e].geometry : "linear", v = i.config.axes[e], p = i.scales[e], g = p?.spec, f = g?.scaleType === "continuous" ? g : void 0;
7383
7397
  if (h === "circular" || h === "radial" && f === void 0) return null;
7384
7398
  const C = g !== void 0 && "reverse" in g ? g : void 0, L = g?.scaleType === "continuous" || g?.scaleType === "datetime", b = e === "y" && f !== void 0 && i.layers.some((w) => w.yScaleType === "primary" && w.geom === "bar"), P = f?.transform === "log", I = f?.domainMax ?? null, x = Tp(f), z = (w, de) => w.map((Re) => ({
7385
7399
  value: Re,
7386
7400
  label: de(Re)
7387
- })), R = i.guides.axes.find((w) => w.scaleAestheticKey === e)?.position, y = Sp[R === "bottom" || R === "top" || R === void 0 && e === "x" ? "horizontal" : "vertical"], M = e === "y" ? ol(i.spec) : null, T = M === null ? void 0 : i.spec.layers.find((w) => w.id === M), B = i.guides.legends.drawn.some((w) => y.some((de) => de === w.position)), ge = y.map((w) => ({
7401
+ })), R = i.guides.axes.find((w) => w.scaleAestheticKey === e)?.position, y = Sp[R === "bottom" || R === "top" || R === void 0 && e === "x" ? "horizontal" : "vertical"], M = e === "y" ? ol(i.spec) : null, T = M === null ? void 0 : i.spec.layers.find((w) => w.id === M), H = i.guides.legends.drawn.some((w) => y.some((de) => de === w.position)), ge = y.map((w) => ({
7388
7402
  value: w,
7389
7403
  label: l(xp[w])
7390
- })), za = z(["auto", "edges"], (w) => l(w === "edges" ? "editor.axesPanel.labelMode.edges" : "editor.axesPanel.labelMode.auto")), _a = z(["linear", "log"], (w) => l(w === "log" ? "editor.axesPanel.scale.log" : "editor.axesPanel.scale.auto")), Fa = z([
7404
+ })), _a = z(["auto", "edges"], (w) => l(w === "edges" ? "editor.axesPanel.labelMode.edges" : "editor.axesPanel.labelMode.auto")), Fa = z(["linear", "log"], (w) => l(w === "log" ? "editor.axesPanel.scale.log" : "editor.axesPanel.scale.auto")), Ha = z([
7391
7405
  "auto",
7392
7406
  "zero",
7393
7407
  "custom"
7394
- ], (w) => l(w === "zero" ? "editor.axesPanel.startFrom.zero" : w === "custom" ? "editor.axesPanel.startFrom.custom" : "editor.axesPanel.startFrom.auto")), Ha = z(["auto", "custom"], (w) => l(w === "custom" ? "editor.axesPanel.endAt.custom" : "editor.axesPanel.endAt.auto")), Ba = z(["no", "yes"], (w) => l(w === "yes" ? "editor.axesPanel.yesNo.yes" : "editor.axesPanel.yesNo.no")), Va = z(["single", "double"], (w) => l(w === "double" ? "editor.axesPanel.axisCount.double" : "editor.axesPanel.axisCount.single")), Ga = (w) => {
7395
- o.commands.dispatch(new jo({
7408
+ ], (w) => l(w === "zero" ? "editor.axesPanel.startFrom.zero" : w === "custom" ? "editor.axesPanel.startFrom.custom" : "editor.axesPanel.startFrom.auto")), Ba = z(["auto", "custom"], (w) => l(w === "custom" ? "editor.axesPanel.endAt.custom" : "editor.axesPanel.endAt.auto")), Va = z(["no", "yes"], (w) => l(w === "yes" ? "editor.axesPanel.yesNo.yes" : "editor.axesPanel.yesNo.no")), Ga = z(["single", "double"], (w) => l(w === "double" ? "editor.axesPanel.axisCount.double" : "editor.axesPanel.axisCount.single")), $a = (w) => {
7409
+ o.commands.dispatch(new Zo({
7396
7410
  axis: e,
7397
7411
  isVisible: w
7398
7412
  }));
7399
- }, $a = (w) => {
7400
- o.commands.dispatch(new Wo({
7413
+ }, Ua = (w) => {
7414
+ o.commands.dispatch(new Ko({
7401
7415
  axis: e,
7402
7416
  label: w === "" ? null : w
7403
7417
  }), { transient: !0 });
7404
- }, Ua = (w) => {
7418
+ }, Wa = (w) => {
7405
7419
  o.commands.dispatch(new Xo({
7406
7420
  axis: e,
7407
7421
  isVisible: w
7408
7422
  }));
7409
- }, Wa = (w) => {
7410
- o.commands.dispatch(new qo({
7423
+ }, Ka = (w) => {
7424
+ o.commands.dispatch(new jo({
7411
7425
  axis: e,
7412
7426
  tickMode: w === "edges" ? "edges" : "auto"
7413
7427
  }));
7414
- }, Ka = (w) => {
7415
- o.commands.dispatch(new yi({
7428
+ }, qa = (w) => {
7429
+ o.commands.dispatch(new Si({
7416
7430
  scaledAesthetic: e,
7417
7431
  reverse: w === "yes"
7418
7432
  }));
7419
- }, qa = (w) => {
7420
- o.commands.dispatch(new Si({
7433
+ }, ja = (w) => {
7434
+ o.commands.dispatch(new xi({
7421
7435
  scaledAesthetic: e,
7422
7436
  transform: w === "log" ? "log" : "linear"
7423
7437
  }));
7424
- }, Zt = (w) => {
7438
+ }, Yt = (w) => {
7425
7439
  o.commands.dispatch(new ze({
7426
7440
  scaledAesthetic: e,
7427
7441
  ...w
7428
7442
  }), { transient: !0 });
7429
7443
  }, Xa = (w) => {
7430
- w !== null && Zt({ domainMin: w });
7431
- }, ja = (w) => {
7432
- w !== null && Zt({ domainMax: w });
7444
+ w !== null && Yt({ domainMin: w });
7433
7445
  }, Za = (w) => {
7446
+ w !== null && Yt({ domainMax: w });
7447
+ }, Ya = (w) => {
7434
7448
  if (f) {
7435
7449
  if (w === "custom") {
7436
- f.zero && o.commands.dispatch(new rn({
7450
+ f.zero && o.commands.dispatch(new an({
7437
7451
  scaledAesthetic: e,
7438
7452
  zero: !1
7439
7453
  })), o.commands.dispatch(new ze({
7440
7454
  scaledAesthetic: e,
7441
- domainMin: Nn(p?.domain, "start")
7455
+ domainMin: On(p?.domain, "start")
7442
7456
  }));
7443
7457
  return;
7444
7458
  }
7445
7459
  f.domainMin !== null && o.commands.dispatch(new ze({
7446
7460
  scaledAesthetic: e,
7447
7461
  domainMin: null
7448
- })), o.commands.dispatch(new rn({
7462
+ })), o.commands.dispatch(new an({
7449
7463
  scaledAesthetic: e,
7450
7464
  zero: w === "zero"
7451
7465
  }));
7452
7466
  }
7453
- }, Ya = (w) => {
7454
- const de = w === "custom" ? Nn(p?.domain, "end") : null;
7467
+ }, Ja = (w) => {
7468
+ const de = w === "custom" ? On(p?.domain, "end") : null;
7455
7469
  o.commands.dispatch(new ze({
7456
7470
  scaledAesthetic: e,
7457
7471
  domainMax: de
7458
7472
  }));
7459
- }, Ja = (w) => {
7460
- T !== void 0 && o.commands.dispatch(new li({
7473
+ }, Qa = (w) => {
7474
+ T !== void 0 && o.commands.dispatch(new si({
7461
7475
  layerId: T.id,
7462
7476
  yScaleType: w === "double" ? "secondary" : "primary"
7463
7477
  }));
7464
- }, Qa = (w) => {
7478
+ }, eo = (w) => {
7465
7479
  const de = y.find((Re) => Re === w);
7466
- de && o.commands.dispatch(new Ko({
7480
+ de && o.commands.dispatch(new qo({
7467
7481
  axis: e,
7468
7482
  position: de
7469
7483
  }));
@@ -7477,70 +7491,70 @@ var fp = "_40zvwv8", W = ({ title: e, layout: t = "fixed", preview: r, accessory
7477
7491
  label: l("editor.axesPanel.controls.visible"),
7478
7492
  children: /* @__PURE__ */ n(c, {
7479
7493
  isChecked: v.isVisible,
7480
- onChange: Ga
7494
+ onChange: $a
7481
7495
  })
7482
7496
  }),
7483
7497
  T !== void 0 && /* @__PURE__ */ n(S, {
7484
7498
  label: l("editor.axesPanel.controls.numberOfAxes"),
7485
7499
  children: /* @__PURE__ */ n(d, {
7486
7500
  value: T.yScaleType === "secondary" ? "double" : "single",
7487
- options: Va,
7488
- onChange: Ja
7501
+ options: Ga,
7502
+ onChange: Qa
7489
7503
  })
7490
7504
  }),
7491
- h === "linear" && /* @__PURE__ */ m(j, { children: [/* @__PURE__ */ n(S, {
7505
+ h === "linear" && /* @__PURE__ */ m(X, { children: [/* @__PURE__ */ n(S, {
7492
7506
  label: l("editor.axesPanel.controls.title"),
7493
7507
  children: /* @__PURE__ */ n(u, {
7494
7508
  value: v.label ?? "",
7495
- onChange: $a,
7509
+ onChange: Ua,
7496
7510
  onCommit: o.commands.seal
7497
7511
  })
7498
7512
  }), /* @__PURE__ */ n(S, {
7499
7513
  label: l("editor.axesPanel.controls.ticks"),
7500
7514
  children: /* @__PURE__ */ n(c, {
7501
7515
  isChecked: v.ticks.isVisible,
7502
- onChange: Ua
7516
+ onChange: Wa
7503
7517
  })
7504
7518
  })] }),
7505
7519
  L && /* @__PURE__ */ n(S, {
7506
7520
  label: l("editor.axesPanel.controls.labels"),
7507
7521
  children: /* @__PURE__ */ n(d, {
7508
7522
  value: v.ticks.mode,
7509
- options: za,
7510
- onChange: Wa
7523
+ options: _a,
7524
+ onChange: Ka
7511
7525
  })
7512
7526
  }),
7513
- f && h === "linear" && !B && /* @__PURE__ */ n(S, {
7527
+ f && h === "linear" && !H && /* @__PURE__ */ n(S, {
7514
7528
  label: l("editor.axesPanel.controls.position"),
7515
7529
  children: /* @__PURE__ */ n(d, {
7516
7530
  value: R ?? v.position,
7517
7531
  options: ge,
7518
- onChange: Qa
7532
+ onChange: eo
7519
7533
  })
7520
7534
  }),
7521
7535
  C !== void 0 && /* @__PURE__ */ n(S, {
7522
7536
  label: l("editor.axesPanel.controls.reverse"),
7523
7537
  children: /* @__PURE__ */ n(d, {
7524
7538
  value: C.reverse === !0 ? "yes" : "no",
7525
- options: Ba,
7526
- onChange: Ka
7539
+ options: Va,
7540
+ onChange: qa
7527
7541
  })
7528
7542
  }),
7529
7543
  f && !b && /* @__PURE__ */ n(S, {
7530
7544
  label: l("editor.axesPanel.controls.scale"),
7531
7545
  children: /* @__PURE__ */ n(d, {
7532
7546
  value: P ? "log" : "linear",
7533
- options: _a,
7534
- onChange: qa
7547
+ options: Fa,
7548
+ onChange: ja
7535
7549
  })
7536
7550
  }),
7537
- f && !P && /* @__PURE__ */ m(j, { children: [
7538
- !b && /* @__PURE__ */ m(j, { children: [/* @__PURE__ */ n(S, {
7551
+ f && !P && /* @__PURE__ */ m(X, { children: [
7552
+ !b && /* @__PURE__ */ m(X, { children: [/* @__PURE__ */ n(S, {
7539
7553
  label: l("editor.axesPanel.controls.startFrom"),
7540
7554
  children: /* @__PURE__ */ n(d, {
7541
7555
  value: x,
7542
- options: Fa,
7543
- onChange: Za
7556
+ options: Ha,
7557
+ onChange: Ya
7544
7558
  })
7545
7559
  }), x === "custom" && /* @__PURE__ */ n(S, {
7546
7560
  label: l("editor.axesPanel.controls.value"),
@@ -7554,26 +7568,26 @@ var fp = "_40zvwv8", W = ({ title: e, layout: t = "fixed", preview: r, accessory
7554
7568
  label: l("editor.axesPanel.controls.endAt"),
7555
7569
  children: /* @__PURE__ */ n(d, {
7556
7570
  value: I === null ? "auto" : "custom",
7557
- options: Ha,
7558
- onChange: Ya
7571
+ options: Ba,
7572
+ onChange: Ja
7559
7573
  })
7560
7574
  }),
7561
7575
  I !== null && /* @__PURE__ */ n(S, {
7562
7576
  label: l("editor.axesPanel.controls.value"),
7563
7577
  children: /* @__PURE__ */ n(s, {
7564
7578
  value: I,
7565
- onChange: ja,
7579
+ onChange: Za,
7566
7580
  onCommit: o.commands.seal
7567
7581
  })
7568
7582
  })
7569
7583
  ] })
7570
7584
  ] })
7571
7585
  });
7572
- }, Tp = (e) => e === void 0 ? "auto" : e.domainMin !== null && e.domainMin !== void 0 ? "custom" : e.zero === !0 ? "zero" : "auto", Nn = (e, t) => {
7586
+ }, Tp = (e) => e === void 0 ? "auto" : e.domainMin !== null && e.domainMin !== void 0 ? "custom" : e.zero === !0 ? "zero" : "auto", On = (e, t) => {
7573
7587
  const r = t === "start" ? e?.[0] : e?.[e.length - 1];
7574
7588
  return typeof r == "number" ? r : 0;
7575
7589
  }, Xt = ({ value: e, onChange: t }) => {
7576
- const r = F(), a = k(), { TextField: o } = H(), i = e !== null && typeof e != "string", l = (s) => t(s === "" ? null : s);
7590
+ const r = _(), a = k(), { TextField: o } = F(), i = e !== null && typeof e != "string", l = (s) => t(s === "" ? null : s);
7577
7591
  return /* @__PURE__ */ n(S, {
7578
7592
  label: a("editor.elementsPanel.contentValue"),
7579
7593
  children: /* @__PURE__ */ n(o, {
@@ -7584,15 +7598,15 @@ var fp = "_40zvwv8", W = ({ title: e, layout: t = "fixed", preview: r, accessory
7584
7598
  })
7585
7599
  });
7586
7600
  }, Ap = ({ title: e, layout: t = "collapsible", preview: r }) => {
7587
- const a = F(), o = $(a), i = k(), { Switch: l } = H();
7601
+ const a = _(), o = $(a), i = k(), { Switch: l } = F();
7588
7602
  if (!o) return null;
7589
7603
  const s = o.config.content, c = (d) => {
7590
- a.commands.dispatch(new Je({
7604
+ a.commands.dispatch(new Qe({
7591
7605
  slot: "caption",
7592
7606
  isVisible: d
7593
7607
  }));
7594
7608
  }, u = (d) => {
7595
- a.commands.dispatch(new nr({ caption: d }), { transient: !0 });
7609
+ a.commands.dispatch(new rr({ caption: d }), { transient: !0 });
7596
7610
  };
7597
7611
  return /* @__PURE__ */ n(W, {
7598
7612
  title: e ?? i("editor.elementsPanel.footerSection.caption"),
@@ -7609,11 +7623,11 @@ var fp = "_40zvwv8", W = ({ title: e, layout: t = "fixed", preview: r, accessory
7609
7623
  onChange: u
7610
7624
  })] })
7611
7625
  });
7612
- }, On = /^[a-z][a-z\d+.-]*:/i, kp = {}, Lp = ({ title: e, layout: t = "collapsible", preview: r }) => {
7613
- const a = F(), o = $(a), i = k(), { Switch: l } = H();
7626
+ }, Dn = /^[a-z][a-z\d+.-]*:/i, kp = {}, Lp = ({ title: e, layout: t = "collapsible", preview: r }) => {
7627
+ const a = _(), o = $(a), i = k(), { Switch: l } = F();
7614
7628
  if (!o) return null;
7615
7629
  const s = o.config.content, c = (u) => {
7616
- a.commands.dispatch(new Je({
7630
+ a.commands.dispatch(new Qe({
7617
7631
  slot: "source",
7618
7632
  isVisible: u
7619
7633
  }));
@@ -7631,12 +7645,12 @@ var fp = "_40zvwv8", W = ({ title: e, layout: t = "fixed", preview: r, accessory
7631
7645
  }), /* @__PURE__ */ n(Pp, { source: s.source ?? kp })] })
7632
7646
  });
7633
7647
  }, Pp = ({ source: e }) => {
7634
- const t = F(), r = k(), { TextField: a } = H(), o = (c) => {
7648
+ const t = _(), r = k(), { TextField: a } = F(), o = (c) => {
7635
7649
  const u = (c.label ?? "") !== "" || (c.url ?? "") !== "";
7636
- t.commands.dispatch(new Jo({ source: u ? c : null }), { transient: !0 });
7650
+ t.commands.dispatch(new Qo({ source: u ? c : null }), { transient: !0 });
7637
7651
  }, i = () => {
7638
7652
  const c = e.url ?? "";
7639
- c !== "" && !On.test(c) && o({
7653
+ c !== "" && !Dn.test(c) && o({
7640
7654
  ...e,
7641
7655
  url: `https://${c}`
7642
7656
  }), t.commands.seal();
@@ -7647,13 +7661,13 @@ var fp = "_40zvwv8", W = ({ title: e, layout: t = "fixed", preview: r, accessory
7647
7661
  ...e,
7648
7662
  label: c
7649
7663
  });
7650
- return /* @__PURE__ */ m(j, { children: [/* @__PURE__ */ n(S, {
7664
+ return /* @__PURE__ */ m(X, { children: [/* @__PURE__ */ n(S, {
7651
7665
  label: r("editor.elementsPanel.sourceSection.url"),
7652
7666
  children: /* @__PURE__ */ n(a, {
7653
7667
  value: e.url ?? "",
7654
7668
  onChange: l,
7655
7669
  onCommit: i,
7656
- hasError: On.test(e.url ?? "") && !rl(e.url)
7670
+ hasError: Dn.test(e.url ?? "") && !al(e.url)
7657
7671
  })
7658
7672
  }), /* @__PURE__ */ n(S, {
7659
7673
  label: r("editor.elementsPanel.sourceSection.name"),
@@ -7664,15 +7678,15 @@ var fp = "_40zvwv8", W = ({ title: e, layout: t = "fixed", preview: r, accessory
7664
7678
  })
7665
7679
  })] });
7666
7680
  }, Ip = ({ title: e, layout: t = "collapsible", preview: r }) => {
7667
- const a = F(), o = $(a), i = k(), { Switch: l } = H();
7681
+ const a = _(), o = $(a), i = k(), { Switch: l } = F();
7668
7682
  if (!o) return null;
7669
7683
  const s = o.config.content, c = (d) => {
7670
- a.commands.dispatch(new Je({
7684
+ a.commands.dispatch(new Qe({
7671
7685
  slot: "subtitle",
7672
7686
  isVisible: d
7673
7687
  }));
7674
7688
  }, u = (d) => {
7675
- a.commands.dispatch(new rr({ subtitle: d }), { transient: !0 });
7689
+ a.commands.dispatch(new ar({ subtitle: d }), { transient: !0 });
7676
7690
  };
7677
7691
  return /* @__PURE__ */ n(W, {
7678
7692
  title: e ?? i("editor.elementsPanel.headerSection.subtitle"),
@@ -7689,7 +7703,7 @@ var fp = "_40zvwv8", W = ({ title: e, layout: t = "fixed", preview: r, accessory
7689
7703
  onChange: u
7690
7704
  })] })
7691
7705
  });
7692
- }, xt = [
7706
+ }, wt = [
7693
7707
  0.8,
7694
7708
  1,
7695
7709
  1.2,
@@ -7700,15 +7714,15 @@ var fp = "_40zvwv8", W = ({ title: e, layout: t = "fixed", preview: r, accessory
7700
7714
  2.5,
7701
7715
  3,
7702
7716
  4
7703
- ], Ep = xt.length / 2, Mp = ({ title: e, layout: t = "collapsible", preview: r }) => {
7704
- const a = F(), o = $(a), i = k(), { RadioGrid: l } = H();
7717
+ ], Ep = wt.length / 2, Mp = ({ title: e, layout: t = "collapsible", preview: r }) => {
7718
+ const a = _(), o = $(a), i = k(), { RadioGrid: l } = F();
7705
7719
  if (!o) return null;
7706
- const { textScale: s } = o.config.appearance, c = (h) => i("editor.elementsPanel.textSizeSection.scaleFormat", { value: `${h}` }), u = xt.map((h) => ({
7720
+ const { textScale: s } = o.config.appearance, c = (h) => i("editor.elementsPanel.textSizeSection.scaleFormat", { value: `${h}` }), u = wt.map((h) => ({
7707
7721
  value: `${h}`,
7708
7722
  label: c(h)
7709
7723
  })), d = (h) => {
7710
- const v = xt.find((p) => `${p}` === h);
7711
- v !== void 0 && a.commands.dispatch(new Uo({ textScale: v }));
7724
+ const v = wt.find((p) => `${p}` === h);
7725
+ v !== void 0 && a.commands.dispatch(new Wo({ textScale: v }));
7712
7726
  };
7713
7727
  return /* @__PURE__ */ n(W, {
7714
7728
  title: e ?? i("editor.elementsPanel.textSizeSection.title"),
@@ -7723,15 +7737,15 @@ var fp = "_40zvwv8", W = ({ title: e, layout: t = "fixed", preview: r, accessory
7723
7737
  })
7724
7738
  });
7725
7739
  }, Np = ({ title: e, layout: t = "collapsible", preview: r }) => {
7726
- const a = F(), o = $(a), i = k(), { Switch: l } = H();
7740
+ const a = _(), o = $(a), i = k(), { Switch: l } = F();
7727
7741
  if (!o) return null;
7728
7742
  const s = o.config.content, c = (d) => {
7729
- a.commands.dispatch(new Je({
7743
+ a.commands.dispatch(new Qe({
7730
7744
  slot: "title",
7731
7745
  isVisible: d
7732
7746
  }));
7733
7747
  }, u = (d) => {
7734
- a.commands.dispatch(new ar({ title: d }), { transient: !0 });
7748
+ a.commands.dispatch(new or({ title: d }), { transient: !0 });
7735
7749
  };
7736
7750
  return /* @__PURE__ */ n(W, {
7737
7751
  title: e ?? i("editor.elementsPanel.headerSection.toggleTitle"),
@@ -7748,27 +7762,27 @@ var fp = "_40zvwv8", W = ({ title: e, layout: t = "fixed", preview: r, accessory
7748
7762
  onChange: u
7749
7763
  })] })
7750
7764
  });
7751
- }, Vm = ({ children: e, ...t }) => /* @__PURE__ */ n(Ea.Root, {
7765
+ }, Vm = ({ children: e, ...t }) => /* @__PURE__ */ n(Ma.Root, {
7752
7766
  ...t,
7753
- children: e ?? /* @__PURE__ */ m(j, { children: [
7767
+ children: e ?? /* @__PURE__ */ m(X, { children: [
7754
7768
  /* @__PURE__ */ n(Np, {}),
7755
7769
  /* @__PURE__ */ n(Ip, {}),
7756
7770
  /* @__PURE__ */ n(Ap, {}),
7757
7771
  /* @__PURE__ */ n(Lp, {}),
7758
7772
  /* @__PURE__ */ n(Mp, {})
7759
7773
  ] })
7760
- }), Gm = ({ children: e, ...t }) => /* @__PURE__ */ n(Ea.Root, {
7774
+ }), Gm = ({ children: e, ...t }) => /* @__PURE__ */ n(Ma.Root, {
7761
7775
  ...t,
7762
- children: e ?? /* @__PURE__ */ m(j, { children: [/* @__PURE__ */ n(Mn, { axis: "x" }), /* @__PURE__ */ n(Mn, { axis: "y" })] })
7763
- }), ot = (e) => `${e}px`, Na = (e) => `${Math.round(e * 100)}%`, Op = (e) => `${e}°`, Dp = 24, Rp = { select: { target: "graph" } }, Dn = ["dim", "desaturate"], $m = ({ title: e, layout: t = "collapsible", preview: r }) => {
7764
- const a = F(), o = $(a), i = k(), { Slider: l, ToggleGroup: s } = H();
7776
+ children: e ?? /* @__PURE__ */ m(X, { children: [/* @__PURE__ */ n(Nn, { axis: "x" }), /* @__PURE__ */ n(Nn, { axis: "y" })] })
7777
+ }), it = (e) => `${e}px`, Oa = (e) => `${Math.round(e * 100)}%`, Op = (e) => `${e}°`, Dp = 24, Rp = { select: { target: "graph" } }, Rn = ["dim", "desaturate"], $m = ({ title: e, layout: t = "collapsible", preview: r }) => {
7778
+ const a = _(), o = $(a), i = k(), { Slider: l, ToggleGroup: s } = F();
7765
7779
  if (!o) return null;
7766
- const c = Qe().chromeReaders(o.chrome).graph.get("borderRadius"), u = il(o.spec), d = Dn.map((p) => ({
7780
+ const c = et().chromeReaders(o.chrome).graph.get("borderRadius"), u = il(o.spec), d = Rn.map((p) => ({
7767
7781
  value: p,
7768
7782
  label: i(p === "dim" ? "editor.highlighting.highlightStyle.tint" : "editor.highlighting.highlightStyle.grey")
7769
7783
  })), h = (p) => {
7770
- const g = Nt(o.spec.styles.overrides, Rp)?.declarations ?? {};
7771
- a.commands.dispatch(new Mt({
7784
+ const g = Ot(o.spec.styles.overrides, Rp)?.declarations ?? {};
7785
+ a.commands.dispatch(new Nt({
7772
7786
  list: "overrides",
7773
7787
  rule: {
7774
7788
  select: { target: "graph" },
@@ -7779,8 +7793,8 @@ var fp = "_40zvwv8", W = ({ title: e, layout: t = "fixed", preview: r, accessory
7779
7793
  }
7780
7794
  }), { transient: !0 });
7781
7795
  }, v = (p) => {
7782
- const g = Dn.find((f) => f === p);
7783
- g && a.commands.dispatch(new ii({ dimStyle: g }));
7796
+ const g = Rn.find((f) => f === p);
7797
+ g && a.commands.dispatch(new li({ dimStyle: g }));
7784
7798
  };
7785
7799
  return /* @__PURE__ */ n(W, {
7786
7800
  title: e ?? i("editor.colorPanel.appearanceSection.title"),
@@ -7793,7 +7807,7 @@ var fp = "_40zvwv8", W = ({ title: e, layout: t = "fixed", preview: r, accessory
7793
7807
  min: 0,
7794
7808
  max: Dp,
7795
7809
  step: 1,
7796
- formatValue: ot,
7810
+ formatValue: it,
7797
7811
  onChange: h,
7798
7812
  onCommit: a.commands.seal
7799
7813
  })
@@ -7806,31 +7820,31 @@ var fp = "_40zvwv8", W = ({ title: e, layout: t = "fixed", preview: r, accessory
7806
7820
  })
7807
7821
  })] })
7808
7822
  });
7809
- }, jt = (e, t) => {
7823
+ }, Zt = (e, t) => {
7810
7824
  const { colorScheme: r } = Ee();
7811
7825
  return O(() => {
7812
7826
  const a = e?.layers.find((o) => o.id === t);
7813
- return a === void 0 ? null : Qe({ colorScheme: r }).geomReaders(a);
7827
+ return a === void 0 ? null : et({ colorScheme: r }).geomReaders(a);
7814
7828
  }, [
7815
7829
  e,
7816
7830
  t,
7817
7831
  r
7818
7832
  ]);
7819
7833
  }, zp = 0.05, Um = ({ title: e, layout: t = "collapsible", preview: r }) => {
7820
- const a = F(), o = $(a), i = k(), { Slider: l, ToggleGroup: s } = H(), c = o ? lr(o.spec.layers, "bar") : void 0, u = jt(o, c?.id ?? null);
7834
+ const a = _(), o = $(a), i = k(), { Slider: l, ToggleGroup: s } = F(), c = o ? sr(o.spec.layers, "bar") : void 0, u = Zt(o, c?.id ?? null);
7821
7835
  if (!o || !c || o.coordSystem.type === "polar" && o.coordSystem.bandAxis === null) return null;
7822
7836
  const d = (g) => {
7823
- a.commands.dispatch(new Yo({
7837
+ a.commands.dispatch(new Jo({
7824
7838
  layerId: c.id,
7825
7839
  width: g
7826
7840
  }), { transient: !0 });
7827
7841
  }, h = (g) => {
7828
- const f = Jt.find((C) => C === g);
7829
- f && a.commands.dispatch(new Zo({
7842
+ const f = Qt.find((C) => C === g);
7843
+ f && a.commands.dispatch(new Yo({
7830
7844
  layerId: c.id,
7831
7845
  borderRadius: f
7832
7846
  }));
7833
- }, v = Jt.map((g) => ({
7847
+ }, v = Qt.map((g) => ({
7834
7848
  value: g,
7835
7849
  label: i(`editor.graphPanel.barSection.roundingOptions.${g}`)
7836
7850
  })), p = dl(c.params, o.coordSystem.type);
@@ -7842,10 +7856,10 @@ var fp = "_40zvwv8", W = ({ title: e, layout: t = "fixed", preview: r, accessory
7842
7856
  label: i("editor.graphPanel.barSection.thickness"),
7843
7857
  children: /* @__PURE__ */ n(l, {
7844
7858
  value: p,
7845
- min: Bo,
7846
- max: Ho,
7859
+ min: Vo,
7860
+ max: Bo,
7847
7861
  step: zp,
7848
- formatValue: Na,
7862
+ formatValue: Oa,
7849
7863
  onChange: d,
7850
7864
  onCommit: a.commands.seal
7851
7865
  })
@@ -7853,15 +7867,15 @@ var fp = "_40zvwv8", W = ({ title: e, layout: t = "fixed", preview: r, accessory
7853
7867
  label: i("editor.graphPanel.barSection.rounding"),
7854
7868
  layout: "stack",
7855
7869
  children: /* @__PURE__ */ n(s, {
7856
- value: u?.get("borderRadius") ?? zo,
7870
+ value: u?.get("borderRadius") ?? _o,
7857
7871
  options: v,
7858
7872
  onChange: h
7859
7873
  })
7860
7874
  })] })
7861
7875
  });
7862
- }, it = ({ children: e }) => {
7876
+ }, lt = ({ children: e }) => {
7863
7877
  const t = we();
7864
- return /* @__PURE__ */ m(j, { children: [/* @__PURE__ */ n("g", {
7878
+ return /* @__PURE__ */ m(X, { children: [/* @__PURE__ */ n("g", {
7865
7879
  filter: `url(#${t})`,
7866
7880
  children: e
7867
7881
  }), /* @__PURE__ */ n("defs", { children: /* @__PURE__ */ m("filter", {
@@ -7884,11 +7898,11 @@ var fp = "_40zvwv8", W = ({ title: e, layout: t = "fixed", preview: r, accessory
7884
7898
  floodOpacity: "0.16"
7885
7899
  })]
7886
7900
  }) })] });
7887
- }, lt = "qdaoth0", _p = (e) => /* @__PURE__ */ m(A, {
7901
+ }, st = "qdaoth0", _p = (e) => /* @__PURE__ */ m(A, {
7888
7902
  viewBox: "0 0 31 33",
7889
7903
  ...e,
7890
- children: [/* @__PURE__ */ n(it, { children: /* @__PURE__ */ n("path", {
7891
- className: lt,
7904
+ children: [/* @__PURE__ */ n(lt, { children: /* @__PURE__ */ n("path", {
7905
+ className: st,
7892
7906
  fillRule: "evenodd",
7893
7907
  clipRule: "evenodd",
7894
7908
  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"
@@ -7899,8 +7913,8 @@ var fp = "_40zvwv8", W = ({ title: e, layout: t = "fixed", preview: r, accessory
7899
7913
  }), Fp = (e) => /* @__PURE__ */ n(A, {
7900
7914
  viewBox: "0 0 32 32",
7901
7915
  ...e,
7902
- children: /* @__PURE__ */ m(it, { children: [/* @__PURE__ */ n("path", {
7903
- className: lt,
7916
+ children: /* @__PURE__ */ m(lt, { children: [/* @__PURE__ */ n("path", {
7917
+ className: st,
7904
7918
  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"
7905
7919
  }), /* @__PURE__ */ n("path", {
7906
7920
  fill: "currentColor",
@@ -7909,8 +7923,8 @@ var fp = "_40zvwv8", W = ({ title: e, layout: t = "fixed", preview: r, accessory
7909
7923
  }), Hp = (e) => /* @__PURE__ */ m(A, {
7910
7924
  viewBox: "0 0 32 33",
7911
7925
  ...e,
7912
- children: [/* @__PURE__ */ n(it, { children: /* @__PURE__ */ n("path", {
7913
- className: lt,
7926
+ children: [/* @__PURE__ */ n(lt, { children: /* @__PURE__ */ n("path", {
7927
+ className: st,
7914
7928
  fillRule: "evenodd",
7915
7929
  clipRule: "evenodd",
7916
7930
  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"
@@ -7923,8 +7937,8 @@ var fp = "_40zvwv8", W = ({ title: e, layout: t = "fixed", preview: r, accessory
7923
7937
  }), Bp = (e) => /* @__PURE__ */ m(A, {
7924
7938
  viewBox: "0 0 32 33",
7925
7939
  ...e,
7926
- children: [/* @__PURE__ */ n(it, { children: /* @__PURE__ */ n("path", {
7927
- className: lt,
7940
+ children: [/* @__PURE__ */ n(lt, { children: /* @__PURE__ */ n("path", {
7941
+ className: st,
7928
7942
  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"
7929
7943
  }) }), /* @__PURE__ */ n("path", {
7930
7944
  fill: "currentColor",
@@ -7945,14 +7959,14 @@ var fp = "_40zvwv8", W = ({ title: e, layout: t = "fixed", preview: r, accessory
7945
7959
  x: 0.6,
7946
7960
  y: 0.4
7947
7961
  }, qp = "relative-difference", Wm = ({ title: e, layout: t = "collapsible", preview: r }) => {
7948
- const a = F(), o = $(a), i = k(), { Button: l } = H();
7962
+ const a = _(), o = $(a), i = k(), { Button: l } = F();
7949
7963
  if (!o) return null;
7950
7964
  const s = () => {
7951
7965
  a.commands.dispatch(new he({
7952
7966
  kind: "text",
7953
7967
  annotation: {
7954
- ...wi,
7955
- content: Xp(i("editor.annotatePanel.callOutSection.text")),
7968
+ ...Ti,
7969
+ content: jp(i("editor.annotatePanel.callOutSection.text")),
7956
7970
  at: {
7957
7971
  anchorType: "panel",
7958
7972
  ...Vp
@@ -7964,7 +7978,7 @@ var fp = "_40zvwv8", W = ({ title: e, layout: t = "fixed", preview: r, accessory
7964
7978
  a.commands.dispatch(new he({
7965
7979
  kind: "arrow",
7966
7980
  annotation: {
7967
- ...No,
7981
+ ...Oo,
7968
7982
  start: {
7969
7983
  anchorType: "panel",
7970
7984
  ...Wp
@@ -7979,7 +7993,7 @@ var fp = "_40zvwv8", W = ({ title: e, layout: t = "fixed", preview: r, accessory
7979
7993
  a.commands.dispatch(new he({
7980
7994
  kind: "shape",
7981
7995
  annotation: {
7982
- ...$o,
7996
+ ...Uo,
7983
7997
  ...Up,
7984
7998
  region: {
7985
7999
  anchorType: "panel",
@@ -7988,11 +8002,11 @@ var fp = "_40zvwv8", W = ({ title: e, layout: t = "fixed", preview: r, accessory
7988
8002
  }
7989
8003
  }));
7990
8004
  }, d = () => {
7991
- const v = el(o);
8005
+ const v = tl(o);
7992
8006
  v !== null && a.commands.dispatch(new he({
7993
8007
  kind: "differenceArrow",
7994
8008
  annotation: {
7995
- ...Qn,
8009
+ ...er,
7996
8010
  ...v,
7997
8011
  label: qp
7998
8012
  }
@@ -8002,7 +8016,7 @@ var fp = "_40zvwv8", W = ({ title: e, layout: t = "fixed", preview: r, accessory
8002
8016
  title: e ?? i("editor.annotatePanel.callOutSection.title"),
8003
8017
  layout: t,
8004
8018
  preview: r,
8005
- children: /* @__PURE__ */ m(Pa, { children: [
8019
+ children: /* @__PURE__ */ m(Ia, { children: [
8006
8020
  /* @__PURE__ */ n(l, {
8007
8021
  variant: "tile",
8008
8022
  icon: /* @__PURE__ */ n(Bp, { size: "xl" }),
@@ -8029,7 +8043,7 @@ var fp = "_40zvwv8", W = ({ title: e, layout: t = "fixed", preview: r, accessory
8029
8043
  })
8030
8044
  ] })
8031
8045
  });
8032
- }, Xp = (e) => ({
8046
+ }, jp = (e) => ({
8033
8047
  type: "doc",
8034
8048
  content: [{
8035
8049
  type: "paragraph",
@@ -8039,16 +8053,16 @@ var fp = "_40zvwv8", W = ({ title: e, layout: t = "fixed", preview: r, accessory
8039
8053
  }]
8040
8054
  }]
8041
8055
  }), Km = ({ title: e, layout: t = "collapsible", preview: r }) => {
8042
- const a = F(), o = $(a), i = k(), { ToggleGroup: l } = H();
8056
+ const a = _(), o = $(a), i = k(), { ToggleGroup: l } = F();
8043
8057
  if (!o) return null;
8044
- const s = dr(o.spec);
8058
+ const s = ur(o.spec);
8045
8059
  if (s === null || !ve(s)) return null;
8046
- const c = Qt.map((d) => ({
8060
+ const c = en.map((d) => ({
8047
8061
  value: d,
8048
8062
  label: i(`editor.graphPanel.comboSection.types.${d}`)
8049
8063
  })), u = (d) => {
8050
- const h = Qt.find((v) => v === d);
8051
- h && a.commands.dispatch(new tr({
8064
+ const h = en.find((v) => v === d);
8065
+ h && a.commands.dispatch(new nr({
8052
8066
  coordType: "cartesian",
8053
8067
  comboType: h
8054
8068
  }));
@@ -8064,11 +8078,11 @@ var fp = "_40zvwv8", W = ({ title: e, layout: t = "fixed", preview: r, accessory
8064
8078
  ariaLabel: i("editor.graphPanel.comboSection.title")
8065
8079
  })
8066
8080
  });
8067
- }, jp = 0.1, Zp = 20, qm = ({ title: e, preview: t }) => {
8068
- const r = F(), a = $(r), o = k(), { NumberField: i, TextField: l } = H();
8081
+ }, Xp = 0.1, Zp = 20, qm = ({ title: e, preview: t }) => {
8082
+ const r = _(), a = $(r), o = k(), { NumberField: i, TextField: l } = F();
8069
8083
  if (!a || a.coordSystem.type === "polar") return null;
8070
- const s = qi(a.spec.layers), c = e ?? o("editor.annotationsPanel.goalSection.title"), u = $i(s?.mapping.y), d = typeof u == "number" ? u : null, h = (g) => {
8071
- const f = new ki({
8084
+ const s = ji(a.spec.layers), c = e ?? o("editor.annotationsPanel.goalSection.title"), u = Ui(s?.mapping.y), d = typeof u == "number" ? u : null, h = (g) => {
8085
+ const f = new Li({
8072
8086
  showGoalLine: g,
8073
8087
  value: Yp(a),
8074
8088
  ...s !== void 0 && { layerId: s.id }
@@ -8076,14 +8090,14 @@ var fp = "_40zvwv8", W = ({ title: e, layout: t = "fixed", preview: r, accessory
8076
8090
  r.commands.dispatch(f);
8077
8091
  }, v = (g) => {
8078
8092
  if (s === void 0) return;
8079
- const f = new bi({
8093
+ const f = new Ci({
8080
8094
  layerId: s.id,
8081
8095
  label: g === "" ? null : g
8082
8096
  });
8083
8097
  r.commands.dispatch(f, { transient: !0 });
8084
8098
  }, p = (g) => {
8085
8099
  if (s === void 0 || g === null) return;
8086
- const f = new Ci({
8100
+ const f = new yi({
8087
8101
  layerId: s.id,
8088
8102
  value: g
8089
8103
  });
@@ -8120,34 +8134,34 @@ var fp = "_40zvwv8", W = ({ title: e, layout: t = "fixed", preview: r, accessory
8120
8134
  const r = Math.max(...t), a = r - Math.min(...t), o = a > 0 ? a : Math.abs(r);
8121
8135
  if (o === 0) return 0;
8122
8136
  const i = Math.min(Zp, Math.max(0, 1 - Math.floor(Math.log10(o))));
8123
- return Number((r + o * jp).toFixed(i));
8124
- }, Xm = ({ layerId: e, title: t, layout: r = "collapsible", preview: a }) => {
8125
- const o = F(), i = $(o), l = k(), { Switch: s } = H();
8137
+ return Number((r + o * Xp).toFixed(i));
8138
+ }, jm = ({ layerId: e, title: t, layout: r = "collapsible", preview: a }) => {
8139
+ const o = _(), i = $(o), l = k(), { Switch: s } = F();
8126
8140
  if (!i) return null;
8127
8141
  const c = e === void 0 ? i.spec.layers[0] : i.spec.layers.find((R) => R.id === e);
8128
8142
  if (!c) return null;
8129
8143
  const { showDataLabels: u, format: d, showStackTotals: h, showCategoryLabels: v } = c.dataLabels, p = i.coordSystem.type === "polar", g = c.geom === "bar", f = c.position === "stack" || c.position === "fill", C = g && !p && c.position === "stack", L = g && (!p || u), b = g || c.geom === "area" && f;
8130
- if (!Fi(c.geom, i.coordSystem.type)) return null;
8144
+ if (!Hi(c.geom, i.coordSystem.type)) return null;
8131
8145
  const P = (R) => {
8132
- const y = new Ai({
8146
+ const y = new ki({
8133
8147
  layerId: c.id,
8134
8148
  showDataLabels: R
8135
8149
  });
8136
8150
  o.commands.dispatch(y);
8137
8151
  }, I = (R) => {
8138
- const y = new Qo({
8152
+ const y = new ei({
8139
8153
  layerId: c.id,
8140
8154
  format: R ? "percentage" : "absolute"
8141
8155
  });
8142
8156
  o.commands.dispatch(y);
8143
8157
  }, x = (R) => {
8144
- const y = new Ii({
8158
+ const y = new Ei({
8145
8159
  layerId: c.id,
8146
8160
  showStackTotals: R
8147
8161
  });
8148
8162
  o.commands.dispatch(y);
8149
8163
  }, z = (R) => {
8150
- const y = new Ti({
8164
+ const y = new Ai({
8151
8165
  layerId: c.id,
8152
8166
  showCategoryLabels: R
8153
8167
  });
@@ -8664,7 +8678,7 @@ var fp = "_40zvwv8", W = ({ title: e, layout: t = "fixed", preview: r, accessory
8664
8678
  })
8665
8679
  ]
8666
8680
  })
8667
- }), u2 = 0.55, wt = [
8681
+ }), u2 = 0.55, Tt = [
8668
8682
  {
8669
8683
  name: "column",
8670
8684
  icon: n2,
@@ -8785,30 +8799,30 @@ var fp = "_40zvwv8", W = ({ title: e, layout: t = "fixed", preview: r, accessory
8785
8799
  position: "identity"
8786
8800
  }
8787
8801
  }
8788
- ], h2 = 0.05, p2 = (e) => e === null ? null : wt.find((t) => g2(t.summary, e)) ?? null, m2 = (e, t) => {
8802
+ ], h2 = 0.05, p2 = (e) => e === null ? null : Tt.find((t) => g2(t.summary, e)) ?? null, m2 = (e, t) => {
8789
8803
  const { summary: r } = e;
8790
- return t === null || ve(r) ? r : r.position === "dodge" && Oa(t) ? {
8804
+ return t === null || ve(r) ? r : r.position === "dodge" && Da(t) ? {
8791
8805
  ...r,
8792
8806
  position: "identity"
8793
- } : r.coordType !== "polar" || !je(r.innerRadius) || t.coordType !== "polar" || !je(t.innerRadius) ? r : {
8807
+ } : r.coordType !== "polar" || !Ze(r.innerRadius) || t.coordType !== "polar" || !Ze(t.innerRadius) ? r : {
8794
8808
  ...r,
8795
8809
  innerRadius: t.innerRadius
8796
8810
  };
8797
- }, Oa = (e) => !ve(e) && e.geom === "bar" && e.position === "identity", g2 = (e, t) => {
8811
+ }, Da = (e) => !ve(e) && e.geom === "bar" && e.position === "identity", g2 = (e, t) => {
8798
8812
  if (ve(e) || ve(t)) return ve(e) && ve(t);
8799
- const r = e.position === t.position || e.position === "dodge" && Oa(t);
8800
- return e.coordType !== t.coordType || e.geom !== t.geom || !r ? !1 : e.coordType !== "polar" || t.coordType !== "polar" ? !0 : e.theta === t.theta && je(e.innerRadius) === je(t.innerRadius);
8801
- }, je = (e) => e >= h2, v2 = 3, jm = ({ title: e, layout: t = "collapsible", preview: r }) => {
8802
- const a = F(), o = $(a), i = k(), { RadioGrid: l } = H(), s = O(() => wt.map(({ name: h, icon: v }) => ({
8813
+ const r = e.position === t.position || e.position === "dodge" && Da(t);
8814
+ return e.coordType !== t.coordType || e.geom !== t.geom || !r ? !1 : e.coordType !== "polar" || t.coordType !== "polar" ? !0 : e.theta === t.theta && Ze(e.innerRadius) === Ze(t.innerRadius);
8815
+ }, Ze = (e) => e >= h2, v2 = 3, Xm = ({ title: e, layout: t = "collapsible", preview: r }) => {
8816
+ const a = _(), o = $(a), i = k(), { RadioGrid: l } = F(), s = O(() => Tt.map(({ name: h, icon: v }) => ({
8803
8817
  value: h,
8804
8818
  label: i(`editor.graphTypes.${h}`),
8805
8819
  icon: /* @__PURE__ */ n(v, { size: "md" }),
8806
- isDisabled: h === "combo" && !zi(o?.spec) || h === "heatmap" && !_i(o?.spec)
8820
+ isDisabled: h === "combo" && !_i(o?.spec) || h === "heatmap" && !Fi(o?.spec)
8807
8821
  })), [i, o]);
8808
8822
  if (!o) return null;
8809
- const c = dr(o.spec), u = p2(c), d = (h) => {
8810
- const v = wt.find((p) => p.name === h);
8811
- v && a.commands.dispatch(new tr(m2(v, c)));
8823
+ const c = ur(o.spec), u = p2(c), d = (h) => {
8824
+ const v = Tt.find((p) => p.name === h);
8825
+ v && a.commands.dispatch(new nr(m2(v, c)));
8812
8826
  };
8813
8827
  return /* @__PURE__ */ n(W, {
8814
8828
  title: e ?? i("editor.graphPanel.graphTypeSection.title"),
@@ -8822,31 +8836,31 @@ var fp = "_40zvwv8", W = ({ title: e, layout: t = "fixed", preview: r, accessory
8822
8836
  ariaLabel: i("editor.graphPanel.graphTypeSection.title")
8823
8837
  })
8824
8838
  });
8825
- }, Rn = [
8839
+ }, zn = [
8826
8840
  "solid",
8827
8841
  "dashed",
8828
8842
  "dotted"
8829
8843
  ], f2 = 8, b2 = 0, Zm = ({ title: e, layout: t = "collapsible", preview: r }) => {
8830
- const a = F(), o = $(a), i = k(), { Slider: l, Switch: s, ToggleGroup: c } = H(), { colorScheme: u } = Ee();
8844
+ const a = _(), o = $(a), i = k(), { Slider: l, Switch: s, ToggleGroup: c } = F(), { colorScheme: u } = Ee();
8831
8845
  if (!o) return null;
8832
8846
  const d = o.guides.axes.filter(C2);
8833
8847
  if (d.length === 0) return null;
8834
- const h = o.coordSystem.type !== "polar", v = d.some((b) => b.gridVisible), p = hl(Qe({ colorScheme: u }).chromeReaders(o.chrome), "y"), g = Rn.map((b) => ({
8848
+ const h = o.coordSystem.type !== "polar", v = d.some((b) => b.gridVisible), p = hl(et({ colorScheme: u }).chromeReaders(o.chrome), "y"), g = zn.map((b) => ({
8835
8849
  value: b,
8836
8850
  label: i(`editor.graphPanel.gridSection.lineStyles.${b}`)
8837
8851
  })), f = (b) => (P) => {
8838
- a.commands.dispatch(new ni({
8852
+ a.commands.dispatch(new ri({
8839
8853
  axis: b,
8840
8854
  isVisible: P
8841
8855
  }));
8842
8856
  }, C = (b) => {
8843
- const P = Rn.find((I) => I === b);
8844
- P && a.commands.dispatch(new ei({
8857
+ const P = zn.find((I) => I === b);
8858
+ P && a.commands.dispatch(new ti({
8845
8859
  axis: "both",
8846
8860
  lineStyle: P
8847
8861
  }));
8848
8862
  }, L = (b) => {
8849
- a.commands.dispatch(new ti({
8863
+ a.commands.dispatch(new ni({
8850
8864
  axis: "both",
8851
8865
  lineWidth: b
8852
8866
  }), { transient: !0 });
@@ -8861,7 +8875,7 @@ var fp = "_40zvwv8", W = ({ title: e, layout: t = "fixed", preview: r, accessory
8861
8875
  isChecked: b.gridVisible,
8862
8876
  onChange: f(b.scaleAestheticKey)
8863
8877
  })
8864
- }, b.scaleAestheticKey)), h && v && /* @__PURE__ */ m(j, { children: [/* @__PURE__ */ n(S, {
8878
+ }, b.scaleAestheticKey)), h && v && /* @__PURE__ */ m(X, { children: [/* @__PURE__ */ n(S, {
8865
8879
  label: i("editor.graphPanel.gridSection.gridStyle"),
8866
8880
  children: /* @__PURE__ */ n(c, {
8867
8881
  value: p.lineType,
@@ -8875,33 +8889,33 @@ var fp = "_40zvwv8", W = ({ title: e, layout: t = "fixed", preview: r, accessory
8875
8889
  min: b2,
8876
8890
  max: f2,
8877
8891
  step: 0.5,
8878
- formatValue: ot,
8892
+ formatValue: it,
8879
8893
  onChange: L,
8880
8894
  onCommit: a.commands.seal
8881
8895
  })
8882
8896
  })] })] })
8883
8897
  });
8884
- }, C2 = (e) => e.scaleAestheticKey === "x" || e.scaleAestheticKey === "y", y2 = (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", S2 = "total", Da = [
8898
+ }, C2 = (e) => e.scaleAestheticKey === "x" || e.scaleAestheticKey === "y", y2 = (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", S2 = "total", Ra = [
8885
8899
  "total",
8886
8900
  "average",
8887
8901
  "current"
8888
- ], x2 = ["total"], zn = ["previous", "first"], _n = [
8902
+ ], x2 = ["total"], _n = ["previous", "first"], Fn = [
8889
8903
  "auto",
8890
8904
  "small",
8891
8905
  "medium",
8892
8906
  "large"
8893
8907
  ], Ym = ({ title: e, layout: t = "collapsible", preview: r }) => {
8894
- const a = F(), o = $(a), i = k(), { Switch: l, ToggleGroup: s } = H();
8908
+ const a = _(), o = $(a), i = k(), { Switch: l, ToggleGroup: s } = F();
8895
8909
  if (!o) return null;
8896
8910
  const c = o.config.headline, u = c.show !== "none", d = o.coordSystem, h = d.type === "polar", v = d.type === "polar" && d.innerRadius > 0, p = o.layers.some((T) => T.summary.grandTotal !== void 0);
8897
8911
  if (h && !p) return null;
8898
- const g = h ? x2 : Da, f = o.guides.headline, C = f?.kind === "perGroup" && f.items.some((T) => T.comparison !== null), L = g.map((T) => ({
8912
+ const g = h ? x2 : Ra, f = o.guides.headline, C = f?.kind === "perGroup" && f.items.some((T) => T.comparison !== null), L = g.map((T) => ({
8899
8913
  value: T,
8900
8914
  label: i(`editor.graphPanel.headlineNumberSection.metrics.${T}`)
8901
- })), b = zn.map((T) => ({
8915
+ })), b = _n.map((T) => ({
8902
8916
  value: T,
8903
8917
  label: i(`editor.graphPanel.headlineNumberSection.comparison.${T}`)
8904
- })), P = _n.map((T) => ({
8918
+ })), P = Fn.map((T) => ({
8905
8919
  value: T,
8906
8920
  label: i(T === "auto" ? "editor.graphPanel.numberFormat.options.auto" : `editor.graphPanel.headlineNumberSize.sizes.${T}`)
8907
8921
  })), I = [{
@@ -8911,18 +8925,18 @@ var fp = "_40zvwv8", W = ({ title: e, layout: t = "fixed", preview: r, accessory
8911
8925
  value: "center",
8912
8926
  label: i("editor.graphPanel.headlineNumberSection.position.center")
8913
8927
  }], x = (T) => {
8914
- a.commands.dispatch(new en({ show: T ? S2 : "none" }));
8928
+ a.commands.dispatch(new tn({ show: T ? S2 : "none" }));
8915
8929
  }, z = (T) => {
8916
- const B = g.find((ge) => ge === T);
8917
- B && a.commands.dispatch(new en({ show: B }));
8930
+ const H = g.find((ge) => ge === T);
8931
+ H && a.commands.dispatch(new tn({ show: H }));
8918
8932
  }, R = (T) => {
8919
- const B = zn.find((ge) => ge === T);
8920
- B && a.commands.dispatch(new ri({ compareWith: B }));
8933
+ const H = _n.find((ge) => ge === T);
8934
+ H && a.commands.dispatch(new ai({ compareWith: H }));
8921
8935
  }, y = (T) => {
8922
- const B = _n.find((ge) => ge === T);
8923
- B && a.commands.dispatch(new oi({ size: B }));
8936
+ const H = Fn.find((ge) => ge === T);
8937
+ H && a.commands.dispatch(new ii({ size: H }));
8924
8938
  }, M = (T) => {
8925
- a.commands.dispatch(new ai({ position: T === "center" ? "center" : "above" }));
8939
+ a.commands.dispatch(new oi({ position: T === "center" ? "center" : "above" }));
8926
8940
  };
8927
8941
  return /* @__PURE__ */ n(W, {
8928
8942
  title: e ?? i("editor.graphPanel.headlineNumberSection.title"),
@@ -8934,7 +8948,7 @@ var fp = "_40zvwv8", W = ({ title: e, layout: t = "fixed", preview: r, accessory
8934
8948
  isChecked: u,
8935
8949
  onChange: x
8936
8950
  })
8937
- }), u && /* @__PURE__ */ m(j, { children: [
8951
+ }), u && /* @__PURE__ */ m(X, { children: [
8938
8952
  L.length > 1 && /* @__PURE__ */ n(S, {
8939
8953
  label: i("editor.graphPanel.headlineNumberSection.metricLabel"),
8940
8954
  layout: "stack",
@@ -8972,48 +8986,48 @@ var fp = "_40zvwv8", W = ({ title: e, layout: t = "fixed", preview: r, accessory
8972
8986
  ] })] })
8973
8987
  });
8974
8988
  }, w2 = (e, t) => {
8975
- const r = Da.find((a) => a === t);
8989
+ const r = Ra.find((a) => a === t);
8976
8990
  return r && e(`editor.graphPanel.headlineNumberSection.metrics.${r}`);
8977
- }, pt = [
8991
+ }, mt = [
8978
8992
  "top",
8979
8993
  "bottom",
8980
8994
  "left",
8981
8995
  "right",
8982
8996
  "none"
8983
- ], Fn = [
8997
+ ], Hn = [
8984
8998
  "auto",
8985
8999
  "start",
8986
9000
  "center",
8987
9001
  "end"
8988
- ], Hn = [
9002
+ ], Bn = [
8989
9003
  "auto",
8990
9004
  "pill",
8991
9005
  "direct"
8992
9006
  ], Jm = ({ positions: e, title: t, layout: r = "collapsible", preview: a }) => {
8993
- const o = F(), i = $(o), l = k(), { ToggleGroup: s } = H();
9007
+ const o = _(), i = $(o), l = k(), { ToggleGroup: s } = F();
8994
9008
  if (!i) return null;
8995
- const c = i.config.legend.position, u = e ?? pt, d = i.guides.legends.drawn[0], h = Ri({
9009
+ const c = i.config.legend.position, u = e ?? mt, d = i.guides.legends.drawn[0], h = zi({
8996
9010
  legendPosition: i.guides.legends.position,
8997
9011
  coordSystem: i.coordSystem,
8998
9012
  layers: i.layers
8999
9013
  }), v = i.guides.headline?.kind === "perGroup", p = i.guides.colorGroups.length > 0;
9000
9014
  if (c === "auto" && d === void 0 && !h && (v || !p)) return null;
9001
- const g = d?.position ?? "none", f = c === "auto" ? g : c, C = pt.filter((M) => M === f || u.includes(M)).map((M) => ({
9015
+ const g = d?.position ?? "none", f = c === "auto" ? g : c, C = mt.filter((M) => M === f || u.includes(M)).map((M) => ({
9002
9016
  value: M,
9003
9017
  label: l(`editor.graphPanel.legendSection.${M}`)
9004
9018
  })), L = (M) => {
9005
- const T = pt.find((B) => B === M);
9006
- T && o.commands.dispatch(new di({ position: T }));
9019
+ const T = mt.find((H) => H === M);
9020
+ T && o.commands.dispatch(new ui({ position: T }));
9007
9021
  }, b = (M) => {
9008
- const T = Fn.find((B) => B === M);
9009
- T && o.commands.dispatch(new si({ align: T }));
9022
+ const T = Hn.find((H) => H === M);
9023
+ T && o.commands.dispatch(new ci({ align: T }));
9010
9024
  }, P = (M) => {
9011
- const T = Hn.find((B) => B === M);
9012
- T && o.commands.dispatch(new ci({ display: T }));
9013
- }, I = Fn.map((M) => ({
9025
+ const T = Bn.find((H) => H === M);
9026
+ T && o.commands.dispatch(new di({ display: T }));
9027
+ }, I = Hn.map((M) => ({
9014
9028
  value: M,
9015
9029
  label: l(`editor.graphPanel.legendSection.align.${M}`)
9016
- })), x = Hn.map((M) => ({
9030
+ })), x = Bn.map((M) => ({
9017
9031
  value: M,
9018
9032
  label: l(`editor.graphPanel.legendSection.display.${M}`)
9019
9033
  })), z = t ?? l("editor.graphPanel.legendSection.title"), R = C.find((M) => M.value === f)?.label, y = d !== void 0;
@@ -9051,22 +9065,22 @@ var fp = "_40zvwv8", W = ({ title: e, layout: t = "fixed", preview: r, accessory
9051
9065
  })
9052
9066
  ] })
9053
9067
  });
9054
- }, T2 = 1, A2 = 20, k2 = 0.5, Ra = ({ layerId: e }) => {
9055
- const t = F(), r = $(t), { Slider: a } = H(), o = jt(r, e);
9068
+ }, T2 = 1, A2 = 20, k2 = 0.5, za = ({ layerId: e }) => {
9069
+ const t = _(), r = $(t), { Slider: a } = F(), o = Zt(r, e);
9056
9070
  if (!r) return null;
9057
9071
  const i = (l) => {
9058
- const s = new gi({
9072
+ const s = new vi({
9059
9073
  layerId: e,
9060
9074
  size: l
9061
9075
  });
9062
9076
  t.commands.dispatch(s, { transient: !0 });
9063
9077
  };
9064
9078
  return /* @__PURE__ */ n(a, {
9065
- value: o?.get("size") ?? _o,
9079
+ value: o?.get("size") ?? Fo,
9066
9080
  min: T2,
9067
9081
  max: A2,
9068
9082
  step: k2,
9069
- formatValue: ot,
9083
+ formatValue: it,
9070
9084
  onChange: i,
9071
9085
  onCommit: t.commands.seal
9072
9086
  });
@@ -9075,45 +9089,45 @@ var fp = "_40zvwv8", W = ({ title: e, layout: t = "fixed", preview: r, accessory
9075
9089
  "zero",
9076
9090
  "connect"
9077
9091
  ], Qm = ({ title: e, layout: t = "collapsible", preview: r }) => {
9078
- const a = F(), o = $(a), i = k(), { Select: l, Slider: s, Switch: c, ToggleGroup: u } = H(), d = o?.spec.layers ?? [], h = lr(d, "line", "area"), v = jt(o, h?.id ?? null);
9092
+ const a = _(), o = $(a), i = k(), { Select: l, Slider: s, Switch: c, ToggleGroup: u } = F(), d = o?.spec.layers ?? [], h = sr(d, "line", "area"), v = Zt(o, h?.id ?? null);
9079
9093
  if (!o || !h) return null;
9080
- const p = o.coordSystem.type === "polar", g = O2(i, h), f = N2(h, d), C = Bn(o.spec, h.geom, "strokeWidth", h.id), L = typeof C == "number", b = h.geom === "line" ? h : void 0, P = [{
9094
+ const p = o.coordSystem.type === "polar", g = O2(i, h), f = N2(h, d), C = Vn(o.spec, h.geom, "strokeWidth", h.id), L = typeof C == "number", b = h.geom === "line" ? h : void 0, P = [{
9081
9095
  value: "auto",
9082
9096
  label: i("editor.graphPanel.numberFormat.options.auto")
9083
9097
  }, {
9084
9098
  value: "custom",
9085
9099
  label: i("editor.graphPanel.numberFormat.options.custom")
9086
9100
  }], I = (T) => {
9087
- a.commands.dispatch(new Pi({
9101
+ a.commands.dispatch(new Ii({
9088
9102
  layerId: h.id,
9089
9103
  showPoints: T
9090
9104
  }));
9091
9105
  }, x = (T) => {
9092
- b && a.commands.dispatch(new Li({
9106
+ b && a.commands.dispatch(new Pi({
9093
9107
  layerId: b.id,
9094
9108
  showFill: T
9095
9109
  }));
9096
9110
  }, z = (T) => {
9097
- a.commands.dispatch(new ui({
9111
+ a.commands.dispatch(new hi({
9098
9112
  layerId: h.id,
9099
9113
  interpolate: T ? "catmull-rom" : "linear"
9100
9114
  }));
9101
9115
  }, R = (T) => {
9102
- const B = v?.get("strokeWidth") ?? Fo;
9103
- a.commands.dispatch(new tn({
9116
+ const H = v?.get("strokeWidth") ?? Ho;
9117
+ a.commands.dispatch(new nn({
9104
9118
  layerId: h.id,
9105
- lineWidth: T === "custom" ? B : null
9119
+ lineWidth: T === "custom" ? H : null
9106
9120
  }));
9107
9121
  }, y = (T) => {
9108
- a.commands.dispatch(new tn({
9122
+ a.commands.dispatch(new nn({
9109
9123
  layerId: h.id,
9110
9124
  lineWidth: T
9111
9125
  }), { transient: !0 });
9112
9126
  }, M = (T) => {
9113
- const B = M2(T);
9114
- B && a.commands.dispatch(new hi({
9127
+ const H = M2(T);
9128
+ H && a.commands.dispatch(new pi({
9115
9129
  layerId: h.id,
9116
- missingValues: B
9130
+ missingValues: H
9117
9131
  }));
9118
9132
  };
9119
9133
  return /* @__PURE__ */ n(W, {
@@ -9130,12 +9144,12 @@ var fp = "_40zvwv8", W = ({ title: e, layout: t = "fixed", preview: r, accessory
9130
9144
  }),
9131
9145
  f && /* @__PURE__ */ n(S, {
9132
9146
  label: i("editor.graphPanel.pointSize.label"),
9133
- children: /* @__PURE__ */ n(Ra, { layerId: f.id })
9147
+ children: /* @__PURE__ */ n(za, { layerId: f.id })
9134
9148
  }),
9135
9149
  b && !p && /* @__PURE__ */ n(S, {
9136
9150
  label: i("editor.graphPanel.graphOptions.lineFill"),
9137
9151
  children: /* @__PURE__ */ n(c, {
9138
- isChecked: Bn(o.spec, "line", "fillAlpha", b.id) !== void 0,
9152
+ isChecked: Vn(o.spec, "line", "fillAlpha", b.id) !== void 0,
9139
9153
  onChange: x
9140
9154
  })
9141
9155
  }),
@@ -9161,7 +9175,7 @@ var fp = "_40zvwv8", W = ({ title: e, layout: t = "fixed", preview: r, accessory
9161
9175
  min: L2,
9162
9176
  max: P2,
9163
9177
  step: I2,
9164
- formatValue: ot,
9178
+ formatValue: it,
9165
9179
  onChange: y,
9166
9180
  onCommit: a.commands.seal
9167
9181
  })
@@ -9176,7 +9190,7 @@ var fp = "_40zvwv8", W = ({ title: e, layout: t = "fixed", preview: r, accessory
9176
9190
  })
9177
9191
  ] })
9178
9192
  });
9179
- }, M2 = (e) => E2.find((t) => t === e), Bn = (e, t, r, a) => ji(e.styles.overrides, Oi(t, a))?.[r], N2 = (e, t) => mt(t, "point").find((r) => sr(r, [e])), O2 = (e, t) => {
9193
+ }, M2 = (e) => E2.find((t) => t === e), Vn = (e, t, r, a) => Zi(e.styles.overrides, Di(t, a))?.[r], N2 = (e, t) => gt(t, "point").find((r) => cr(r, [e])), O2 = (e, t) => {
9180
9194
  const r = [{
9181
9195
  value: "gap",
9182
9196
  label: e("editor.graphPanel.treatEmptyValues.leaveGap.label")
@@ -9188,7 +9202,7 @@ var fp = "_40zvwv8", W = ({ title: e, layout: t = "fixed", preview: r, accessory
9188
9202
  value: "connect",
9189
9203
  label: e("editor.graphPanel.treatEmptyValues.connectGaps.label")
9190
9204
  }), t.geom === "area" ? r.filter((a) => a.value !== "gap") : r;
9191
- }, Tt = "\0none", D2 = [
9205
+ }, At = "\0none", D2 = [
9192
9206
  "x",
9193
9207
  "y",
9194
9208
  "color",
@@ -9201,17 +9215,17 @@ var fp = "_40zvwv8", W = ({ title: e, layout: t = "fixed", preview: r, accessory
9201
9215
  size: "editor.graphPanel.mappingSection.size",
9202
9216
  label: "editor.graphPanel.mappingSection.label"
9203
9217
  }, e0 = ({ title: e, layout: t = "collapsible" }) => {
9204
- const r = F(), a = $(r), o = k(), { Select: i } = H(), l = o("editor.graphPanel.mappingSection.none"), s = a?.spec, c = O(() => s === void 0 ? [] : ll(s, D2).map(({ aesthetic: u, variables: d, isRequired: h }) => {
9218
+ const r = _(), a = $(r), o = k(), { Select: i } = F(), l = o("editor.graphPanel.mappingSection.none"), s = a?.spec, c = O(() => s === void 0 ? [] : ll(s, D2).map(({ aesthetic: u, variables: d, isRequired: h }) => {
9205
9219
  const v = sl(s.mapping, u);
9206
9220
  return {
9207
9221
  aesthetic: u,
9208
9222
  label: o(R2[u]),
9209
- value: v ?? (h ? null : Tt),
9223
+ value: v ?? (h ? null : At),
9210
9224
  options: z2(d, v, h ? null : l),
9211
9225
  chooseColumn: (p) => {
9212
- r.commands.dispatch(new pi({
9226
+ r.commands.dispatch(new mi({
9213
9227
  aesthetic: u,
9214
- variable: p === Tt ? null : p
9228
+ variable: p === At ? null : p
9215
9229
  }));
9216
9230
  }
9217
9231
  };
@@ -9237,13 +9251,13 @@ var fp = "_40zvwv8", W = ({ title: e, layout: t = "fixed", preview: r, accessory
9237
9251
  }, z2 = (e, t, r) => {
9238
9252
  const a = t !== null && !e.includes(t) ? [t, ...e] : e;
9239
9253
  return [...r === null ? [] : [{
9240
- value: Tt,
9254
+ value: At,
9241
9255
  label: r
9242
9256
  }], ...a.map((o) => ({
9243
9257
  value: o,
9244
9258
  label: o
9245
9259
  }))];
9246
- }, _2 = "k", F2 = 2, H2 = 0, B2 = 5, At = [
9260
+ }, _2 = "k", F2 = 2, H2 = 0, B2 = 5, kt = [
9247
9261
  {
9248
9262
  value: "k",
9249
9263
  labelKey: "thousands"
@@ -9257,26 +9271,26 @@ var fp = "_40zvwv8", W = ({ title: e, layout: t = "fixed", preview: r, accessory
9257
9271
  labelKey: "billions"
9258
9272
  }
9259
9273
  ], V2 = ["auto", "none"], t0 = ({ title: e, layout: t = "collapsible", preview: r }) => {
9260
- const a = F(), o = $(a), i = k(), { NumberField: l, ToggleGroup: s } = H();
9274
+ const a = _(), o = $(a), i = k(), { NumberField: l, ToggleGroup: s } = F();
9261
9275
  if (!o) return null;
9262
9276
  const { abbreviation: c, decimals: u } = o.config.numberFormat, d = G2(c) !== void 0, h = u !== "auto", v = (P) => P.map((I) => ({
9263
9277
  value: I,
9264
9278
  label: i(`editor.graphPanel.numberFormat.options.${I}`)
9265
- })), p = At.map(({ value: P, labelKey: I }) => ({
9279
+ })), p = kt.map(({ value: P, labelKey: I }) => ({
9266
9280
  value: P,
9267
9281
  label: i(`common.abbreviations.${I}`)
9268
9282
  })), g = (P) => {
9269
- a.commands.dispatch(new mi({ abbreviation: P }));
9283
+ a.commands.dispatch(new gi({ abbreviation: P }));
9270
9284
  }, f = (P) => {
9271
9285
  const I = V2.find((x) => x === P);
9272
9286
  g(I ?? _2);
9273
9287
  }, C = (P) => {
9274
- const I = At.find((x) => x.value === P);
9288
+ const I = kt.find((x) => x.value === P);
9275
9289
  I && g(I.value);
9276
9290
  }, L = (P) => {
9277
- a.commands.dispatch(new nn({ decimals: P === "custom" ? F2 : "auto" }));
9291
+ a.commands.dispatch(new rn({ decimals: P === "custom" ? F2 : "auto" }));
9278
9292
  }, b = (P) => {
9279
- P !== null && a.commands.dispatch(new nn({ decimals: P }), { transient: !0 });
9293
+ P !== null && a.commands.dispatch(new rn({ decimals: P }), { transient: !0 });
9280
9294
  };
9281
9295
  return /* @__PURE__ */ n(W, {
9282
9296
  title: e ?? i("editor.graphPanel.numberFormatSection.title"),
@@ -9323,8 +9337,8 @@ var fp = "_40zvwv8", W = ({ title: e, layout: t = "fixed", preview: r, accessory
9323
9337
  })
9324
9338
  ] })
9325
9339
  });
9326
- }, G2 = (e) => At.find((t) => t.value === e), n0 = ({ title: e, layout: t = "collapsible", preview: r }) => {
9327
- const a = $(F()), o = k();
9340
+ }, G2 = (e) => kt.find((t) => t.value === e), n0 = ({ title: e, layout: t = "collapsible", preview: r }) => {
9341
+ const a = $(_()), o = k();
9328
9342
  if (!a) return null;
9329
9343
  const i = $2(a.spec.layers);
9330
9344
  return i ? /* @__PURE__ */ n(W, {
@@ -9333,19 +9347,19 @@ var fp = "_40zvwv8", W = ({ title: e, layout: t = "fixed", preview: r, accessory
9333
9347
  preview: r,
9334
9348
  children: /* @__PURE__ */ n(q, { children: /* @__PURE__ */ n(S, {
9335
9349
  label: o("editor.graphPanel.numberFormat.valueLabel"),
9336
- children: /* @__PURE__ */ n(Ra, { layerId: i.id })
9350
+ children: /* @__PURE__ */ n(za, { layerId: i.id })
9337
9351
  }) })
9338
9352
  }) : null;
9339
9353
  }, $2 = (e) => {
9340
- const t = mt(e, "line", "area");
9341
- return mt(e, "point").find((r) => !sr(r, t));
9354
+ const t = gt(e, "line", "area");
9355
+ return gt(e, "point").find((r) => !cr(r, t));
9342
9356
  }, U2 = 0.9, W2 = 360, K2 = 0.05, q2 = 15, r0 = ({ title: e, layout: t = "collapsible", preview: r }) => {
9343
- const a = F(), o = $(a), i = k(), { Slider: l } = H();
9357
+ const a = _(), o = $(a), i = k(), { Slider: l } = F();
9344
9358
  if (!o || o.spec.coords.coordType !== "polar") return null;
9345
9359
  const { innerRadius: s, startAngle: c } = o.spec.coords.params, u = (h) => {
9346
- a.commands.dispatch(new vi({ innerRadius: h }), { transient: !0 });
9360
+ a.commands.dispatch(new fi({ innerRadius: h }), { transient: !0 });
9347
9361
  }, d = (h) => {
9348
- a.commands.dispatch(new fi({ startAngle: h }), { transient: !0 });
9362
+ a.commands.dispatch(new bi({ startAngle: h }), { transient: !0 });
9349
9363
  };
9350
9364
  return /* @__PURE__ */ n(W, {
9351
9365
  title: e ?? i("editor.graphPanel.polarSection.title"),
@@ -9358,7 +9372,7 @@ var fp = "_40zvwv8", W = ({ title: e, layout: t = "fixed", preview: r, accessory
9358
9372
  min: 0,
9359
9373
  max: U2,
9360
9374
  step: K2,
9361
- formatValue: Na,
9375
+ formatValue: Oa,
9362
9376
  onChange: u,
9363
9377
  onCommit: a.commands.seal
9364
9378
  })
@@ -9375,7 +9389,7 @@ var fp = "_40zvwv8", W = ({ title: e, layout: t = "fixed", preview: r, accessory
9375
9389
  })
9376
9390
  })] })
9377
9391
  });
9378
- }, X2 = (e) => /* @__PURE__ */ m(A, {
9392
+ }, j2 = (e) => /* @__PURE__ */ m(A, {
9379
9393
  ...e,
9380
9394
  children: [
9381
9395
  /* @__PURE__ */ n("path", {
@@ -9398,7 +9412,7 @@ var fp = "_40zvwv8", W = ({ title: e, layout: t = "fixed", preview: r, accessory
9398
9412
  fill: "currentColor"
9399
9413
  })
9400
9414
  ]
9401
- }), Vn = (e) => /* @__PURE__ */ m(A, {
9415
+ }), Gn = (e) => /* @__PURE__ */ m(A, {
9402
9416
  ...e,
9403
9417
  children: [
9404
9418
  /* @__PURE__ */ n("path", {
@@ -9421,14 +9435,14 @@ var fp = "_40zvwv8", W = ({ title: e, layout: t = "fixed", preview: r, accessory
9421
9435
  fill: "currentColor"
9422
9436
  })
9423
9437
  ]
9424
- }), j2 = (e) => O(() => {
9438
+ }), X2 = (e) => O(() => {
9425
9439
  if (e === null) return {
9426
9440
  options: [],
9427
9441
  findValue: () => {
9428
9442
  }
9429
9443
  };
9430
9444
  const { parsingLocale: t, numberFormat: r } = e.config, a = e.guides.colorGroups.map((o) => {
9431
- const i = Gi({
9445
+ const i = $i({
9432
9446
  valueFormat: o.valueFormat,
9433
9447
  locale: t,
9434
9448
  numberFormat: r
@@ -9445,7 +9459,7 @@ var fp = "_40zvwv8", W = ({ title: e, layout: t = "fixed", preview: r, accessory
9445
9459
  options: a.map(({ option: o }) => o),
9446
9460
  findValue: (o) => a.find((i) => i.option.value === o)?.value
9447
9461
  };
9448
- }, [e]), Gn = [
9462
+ }, [e]), $n = [
9449
9463
  "linear",
9450
9464
  "exponential",
9451
9465
  "quadratic",
@@ -9454,13 +9468,13 @@ var fp = "_40zvwv8", W = ({ title: e, layout: t = "fixed", preview: r, accessory
9454
9468
  "power",
9455
9469
  "loess"
9456
9470
  ], Z2 = "linear", a0 = ({ title: e, layout: t = "collapsible", preview: r }) => {
9457
- const a = F(), o = $(a), i = k(), { Select: l, Switch: s } = H(), { options: c, findValue: u } = j2(o);
9471
+ const a = _(), o = $(a), i = k(), { Select: l, Switch: s } = F(), { options: c, findValue: u } = X2(o);
9458
9472
  if (!o || o.coordSystem.type === "polar") return null;
9459
- const d = Yi(o.spec.layers), h = Ki(o.spec.layers), v = d?.stat.type === "smooth" ? d.stat.method : Z2, p = Y2(h), g = Gn.map((I) => ({
9473
+ const d = Ji(o.spec.layers), h = qi(o.spec.layers), v = d?.stat.type === "smooth" ? d.stat.method : Z2, p = Y2(h), g = $n.map((I) => ({
9460
9474
  value: I,
9461
9475
  label: i(`editor.annotationsPanel.trendType.options.${I}`)
9462
9476
  })), f = (I, x = {}) => {
9463
- const z = d ?? h, R = new xi({
9477
+ const z = d ?? h, R = new wi({
9464
9478
  line: I,
9465
9479
  ...x,
9466
9480
  ...z !== void 0 && { layerId: z.id },
@@ -9468,7 +9482,7 @@ var fp = "_40zvwv8", W = ({ title: e, layout: t = "fixed", preview: r, accessory
9468
9482
  });
9469
9483
  a.commands.dispatch(R);
9470
9484
  }, C = (I) => f(I ? "trend" : "none", { method: v }), L = (I) => f(I ? "average" : "none", { group: p ?? u(c[0]?.value ?? "") }), b = (I) => {
9471
- const x = Gn.find((z) => z === I);
9485
+ const x = $n.find((z) => z === I);
9472
9486
  x !== void 0 && f("trend", { method: x });
9473
9487
  }, P = (I) => {
9474
9488
  const x = I === null ? void 0 : u(I);
@@ -9477,11 +9491,11 @@ var fp = "_40zvwv8", W = ({ title: e, layout: t = "fixed", preview: r, accessory
9477
9491
  return /* @__PURE__ */ n(W, {
9478
9492
  title: e ?? i("editor.annotationsPanel.trendsAndAveragesSection.title"),
9479
9493
  layout: t,
9480
- preview: r ?? /* @__PURE__ */ n(Vn, { size: "lg" }),
9494
+ preview: r ?? /* @__PURE__ */ n(Gn, { size: "lg" }),
9481
9495
  children: /* @__PURE__ */ m(q, { children: [
9482
9496
  /* @__PURE__ */ n(S, {
9483
9497
  label: i("editor.annotationsPanel.trendsAndAveragesSection.trend"),
9484
- icon: /* @__PURE__ */ n(Vn, { size: "lg" }),
9498
+ icon: /* @__PURE__ */ n(Gn, { size: "lg" }),
9485
9499
  children: /* @__PURE__ */ n(s, {
9486
9500
  isChecked: d !== void 0,
9487
9501
  onChange: C
@@ -9498,7 +9512,7 @@ var fp = "_40zvwv8", W = ({ title: e, layout: t = "fixed", preview: r, accessory
9498
9512
  }),
9499
9513
  /* @__PURE__ */ n(S, {
9500
9514
  label: i("editor.annotationsPanel.trendsAndAveragesSection.average"),
9501
- icon: /* @__PURE__ */ n(X2, { size: "lg" }),
9515
+ icon: /* @__PURE__ */ n(j2, { size: "lg" }),
9502
9516
  children: /* @__PURE__ */ n(s, {
9503
9517
  isChecked: h !== void 0,
9504
9518
  onChange: L
@@ -9523,18 +9537,18 @@ var fp = "_40zvwv8", W = ({ title: e, layout: t = "fixed", preview: r, accessory
9523
9537
  export {
9524
9538
  $m as AppearanceSection,
9525
9539
  Gm as AxesPanel,
9526
- Mn as AxisSection,
9540
+ Nn as AxisSection,
9527
9541
  Um as BarSection,
9528
9542
  b1 as Button,
9529
9543
  Wm as CalloutsSection,
9530
9544
  Ap as CaptionSection,
9531
9545
  Km as ComboSection,
9532
9546
  Bm as EditableGraphRenderer,
9533
- Ea as EditorPanel,
9547
+ Ma as EditorPanel,
9534
9548
  Vm as ElementsPanel,
9535
9549
  qm as GoalSection,
9536
- Xm as GraphOptionsSection,
9537
- jm as GraphTypeSection,
9550
+ jm as GraphOptionsSection,
9551
+ Xm as GraphTypeSection,
9538
9552
  Zm as GridSection,
9539
9553
  Ym as HeadlineSection,
9540
9554
  Ql as IntlProvider,
@@ -9553,14 +9567,14 @@ export {
9553
9567
  U1 as Slider,
9554
9568
  Lp as SourceSection,
9555
9569
  Ip as SubtitleSection,
9556
- X1 as Switch,
9570
+ j1 as Switch,
9557
9571
  Y1 as TextField,
9558
9572
  Mp as TextSizeSection,
9559
9573
  Np as TitleSection,
9560
9574
  ep as ToggleGroup,
9561
9575
  yp as ToggledSection,
9562
9576
  a0 as TrendsAndAveragesSection,
9563
- H as useControls,
9577
+ F as useControls,
9564
9578
  ip as usePanelExpansion,
9565
- F as usePanelGraph
9579
+ _ as usePanelGraph
9566
9580
  };