@graphysdk/react-renderer 1.9.0-beta.1794586691328 → 1.9.0-beta.1794827419339

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,10 +1,10 @@
1
- import { $ as le, $n as te, Bn as ad, Bt as od, C as id, Cn as Vr, Ct as Wr, D as ld, Dt as sd, E as cd, Et as dd, F as Ii, Fn as ud, Ft as R, Gt as Ee, H as hd, Ht as Te, I as ur, In as pd, It as Mi, Jn as gd, L as An, Ln as Ei, Lt as md, M as vd, Nt as fd, O as Oi, Ot as Pn, P as hr, Pt as Ri, Q as Z, Qt as bd, Rt as yd, S as Ve, Sn as we, St as Ha, T as Ni, Tt as Fe, U as Sd, Ut as Di, V as wd, W as E, Wn as Cd, Wt as hn, X as _i, Xt as me, Y as xd, Yn as kd, Yt as We, Z as Td, Zn as Fi, Zt as Ad, _ as Bi, _n as Pd, _t as Ln, ar as Ur, at as Kr, b as zi, bn as jr, bt as Hi, c as Ld, ct as Id, d as Md, dt as Ed, et as Od, f as Rd, fn as Nd, ft as Gi, g as Dd, gn as _d, gt as In, h as Fd, hn as Bd, ht as zd, i as zt, it as J, j as Hd, jt as Gd, k as $d, lt as Vd, m as Wd, mn as Ud, mt as Mn, n as Ae, nr as Kd, nt as jd, o as Xd, on as Ga, ot as Xr, p as qd, pt as qr, r as oe, rr as X, rt as Yd, s as $a, sn as Zd, st as Jd, t as Qd, tr as G, tt as Va, u as $i, un as Vi, ut as eu, v as tu, w as nu, wn as ot, wt as Oe, x as Wi, xn as ru, xt as au, y as ut, yn as ou, zt as iu } from "./history-chords-D6QY_KYF.js";
2
- import { ARROW_DEFAULTS as Ui, ARROW_STICKER_DECLARATIONS as lu, ARROW_STROKE_WIDTHS_PX as qn, ARROW_TARGET_GAP_PX as Wa, AUTO_COLOR as yt, AddAnnotationCommand as xe, AddHighlightCommand as su, COMBO_TYPES as Ua, CONSTANT_VARIABLES as Yr, DASH_PRESETS as cu, DEFAULT_BAR_CORNER_RADII as du, DEFAULT_GEOM_COLOR as uu, DEFAULT_POINT_SIZE_PX as Ki, DEFAULT_STROKE_WIDTH_PX as hu, DIFFERENCE_ARROW_DEFAULTS as ji, DIFFERENCE_ARROW_SIZE_DECLARATIONS as Ka, InternalError as pu, MAX_BAR_WIDTH_FRACTION as gu, MIN_BAR_WIDTH_FRACTION as mu, MoveAnnotationCommand as vu, PANEL_FRACTION_BOUNDS as Xi, POSITION_VARIABLES as Ye, RESTING_HOVER_STATE as Ht, RemoveAnnotationCommand as Ze, RemoveHighlightCommand as fu, SHAPE_DEFAULTS as qi, SequenceCommand as at, SetAxisLabelCommand as Yi, SetAxisPositionCommand as Zi, SetAxisTickModeCommand as pr, SetAxisTicksVisibilityCommand as ja, SetAxisVisibilityCommand as pn, SetBarCornerRadiusCommand as bu, SetBarWidthCommand as Ji, SetContentCaptionCommand as Qi, SetContentSourceCommand as yu, SetContentSubtitleCommand as el, SetContentTitleCommand as tl, SetDataLabelsCommand as nl, SetDataLabelsFormatCommand as rl, SetDifferenceArrowStyleCommand as Su, SetGraphTypeCommand as Zr, SetGridLineStyleCommand as al, SetGridVisibilityCommand as gr, SetHeadlineCompareWithCommand as wu, SetHeadlinePositionCommand as Cu, SetHeadlineShowCommand as Xa, SetHeadlineSizeCommand as xu, SetHighlightDimStyleCommand as ku, SetLayerYScaleTypeCommand as Tu, SetLegendAlignCommand as Au, SetLegendDisplayCommand as Pu, SetLegendPlacementCommand as Lu, SetLegendPositionCommand as mr, SetLineCurveCommand as ol, SetLineMissingValuesCommand as il, SetLineStyleCommand as He, SetMappingCommand as Iu, SetNumberFormatAbbreviationCommand as Mu, SetNumberFormatDecimalsCommand as qa, SetObservationsColorCommand as Eu, SetPointSizeCommand as En, SetPointSymbolCommand as Jr, SetPolarInnerRadiusCommand as Ou, SetPolarStartAngleCommand as Ru, SetRuleLabelCommand as Nu, SetRuleValueCommand as Du, SetScaleDomainCommand as Rt, SetScaleRangeCommand as ll, SetScaleTransformCommand as sl, SetStatLineCommand as _u, SetStyleRuleCommand as Je, TEXT_ANNOTATION_DEFAULTS as vr, TEXT_ANNOTATION_FADE_ALPHA as Fu, ToggleCategoryLabelsCommand as cl, ToggleContentVisibilityCommand as it, ToggleDataLabelsCommand as dl, ToggleGoalLineCommand as Bu, ToggleLinePointsCommand as Qr, ToggleStackTotalsCommand as ul, UpdateAnnotationCommand as Se, alignUnitFractions as ea, areAnchorsEqual as On, areEditTargetsEqual as ta, areEndpointsComparable as zu, areSameStackEndpoints as Hu, buildColormapRange as Gu, buildDivergingRange as Ya, buildLayerStyleAddress as St, buildObservationPredicate as $u, buildObservationsTarget as Ue, buildObservationsTargetAtValue as hl, buildPointSymbolInBox as Vu, canAnchorDirectLabels as Wu, canBecomeCombo as Uu, canBecomeHeatmap as Ku, clampAnnotationTranslation as ju, collectDependentAnnotationIds as na, combineKindStyleDeclarations as Za, computeArrow as pl, createObservationAnchorBuilder as Xu, createObservationAnchorParser as qu, createStyleResolver as Yu, createStyleRuleMatcher as Zu, createValueFormatter as ra, createXValueReader as Ju, filterLayersByGeoms as fr, findAnnotation as Ja, findAverageLineLayer as Qu, findAxisGuide as gl, findCompanionLayers as ml, findGoalLineLayer as eh, findHighlightsAtObservation as th, findHostLayer as Rn, findKindStyleDeclarations as gn, findLayerByGeom as vl, findLayerById as ee, findObservationAttachment as nh, findOverflowedPanelEdges as rh, findPointerRegion as ah, findStyleRule as Qe, findTrendLineLayer as oh, formatDifferenceLabel as ih, getBoundingRect as br, getGroupVariables as aa, getScaledAesthetic as lh, getXBand as sh, getYBand as ch, hasMainAxisBand as dh, hasMultipleGroups as Nn, indexSceneAnnotations as fl, inferDefaultDifferenceArrowEndpoints as uh, inferDifferenceArrowEndpoints as hh, isComboGraphType as ke, isCompanionLayer as bl, isGeomStyleRule as ph, isGeometricSymbol as Mt, isImageSymbol as yr, isLayerSpecOf as xt, isObservationAttachmentKind as gh, isSafeUrl as mh, isZeroAnchoredAxis as yl, measureObservationsBoxes as Sl, polarToUnit as vh, projectAnchorToPanel as et, projectBoxToPanel as mn, readAnnotationBox as oa, readBroadestObservationsScope as fh, readColorChoices as wl, readColorPart as bh, readColormapColor as yh, readComboLineLayerId as Sh, readCompanionRowsAtScopeKey as wh, readConstantValue as Ch, readDivergingColor as Qa, readEditTargetKey as Gt, readGeomColor as xh, readGraphType as Dn, readHighlightDimStyle as kh, readMainAxis as Th, readMappableAesthetics as Ah, readMappedVariable as Ph, readObservationIndex as kt, readObservationsColor as Lh, readObservationsColorPart as Ih, readObservationsColorRoute as _n, readOutwardGapOffset as Mh, readReachableLevels as Eh, readRectPoint as ia, readRowScopeKey as Oh, readRowsAtScopeKey as Rh, readScopeXVariable as Nh, readStyleCoord as Ie, readStyleRulesBeneath as Dh, readVariableName as _e, resolveArrowAnnotationStyle as la, resolveBarBandFraction as Cl, resolveComparisonBasis as _h, resolveDifferenceArrowAnnotationStyle as Fh, resolveEditOutlineStyle as Bh, resolveLayerAxisValueFormat as zh, resolveObservationPoint as xl, resolveObservationsTarget as st, resolvePointPlacement as kl, resolveTextAnnotationStyle as Tl, stepDifferenceArrowEndpoint as Hh, toDashPreset as ct, toFontSpec as Gh, toPaintColor as lt, toPanelCursor as ht, toStrokeDasharray as sa } from "@graphysdk/viz-engine";
1
+ import { $ as le, $n as te, Bn as ad, Bt as od, C as id, Cn as Vr, Ct as Wr, D as ld, Dt as sd, E as cd, Et as dd, F as Ii, Fn as ud, Ft as R, Gt as Ve, H as hd, I as dr, In as pd, It as Mi, Jn as gd, Jt as md, Kt as me, L as Tn, Ln as Ei, Lt as vd, M as fd, Nt as bd, O as Oi, Ot as An, P as ur, Pt as Ri, Q as Z, Qt as Ee, Rt as yd, S as We, Sn as we, St as Ha, T as Ni, Tt as Fe, U as Sd, V as wd, W as E, Wn as Cd, X as Di, Xt as _i, Y as xd, Yn as kd, Z as Td, Zn as Fi, Zt as hr, _ as Bi, _n as Ad, _t as Pn, at as Ur, b as zi, bn as Kr, bt as Hi, c as Pd, ct as Ld, d as Id, dt as Md, et as Ed, f as Od, fn as Rd, ft as Gi, g as Nd, gn as Dd, gt as Ln, h as _d, hn as Fd, ht as Bd, i as zt, ir as Ce, it as J, j as zd, jt as Hd, k as Gd, lt as $d, m as Vd, mn as Wd, mt as In, n as Ae, nr as Ud, nt as Kd, o as jd, on as Ga, or as jr, ot as Xr, p as Xd, pt as qr, qt as qd, r as oe, rr as X, rt as Yd, s as $a, sn as Zd, st as Jd, t as Qd, tr as G, tt as Va, u as $i, un as Vi, ut as eu, v as tu, w as nu, wn as ot, wt as Oe, x as Wi, xn as ru, xt as au, y as ut, yn as ou, zt as iu } from "./history-chords-33L-x9C3.js";
2
+ import { ARROW_DEFAULTS as Ui, ARROW_STICKER_DECLARATIONS as lu, ARROW_STROKE_WIDTHS_PX as Xn, ARROW_TARGET_GAP_PX as Wa, AUTO_COLOR as yt, AddAnnotationCommand as ke, AddHighlightCommand as su, COMBO_TYPES as Ua, CONSTANT_VARIABLES as Yr, DASH_PRESETS as cu, DEFAULT_BAR_CORNER_RADII as du, DEFAULT_GEOM_COLOR as uu, DEFAULT_POINT_SIZE_PX as Ki, DEFAULT_STROKE_WIDTH_PX as hu, DIFFERENCE_ARROW_DEFAULTS as ji, DIFFERENCE_ARROW_SIZE_DECLARATIONS as Ka, InternalError as pu, MAX_BAR_WIDTH_FRACTION as gu, MIN_BAR_WIDTH_FRACTION as mu, MoveAnnotationCommand as vu, PANEL_FRACTION_BOUNDS as Xi, POSITION_VARIABLES as Ye, RESTING_HOVER_STATE as Ht, RemoveAnnotationCommand as Ze, RemoveHighlightCommand as fu, SHAPE_DEFAULTS as qi, SequenceCommand as at, SetAxisLabelCommand as Yi, SetAxisPositionCommand as Zi, SetAxisTickModeCommand as pr, SetAxisTicksVisibilityCommand as ja, SetAxisVisibilityCommand as hn, SetBarCornerRadiusCommand as bu, SetBarWidthCommand as Ji, SetContentCaptionCommand as Qi, SetContentSourceCommand as yu, SetContentSubtitleCommand as el, SetContentTitleCommand as tl, SetDataLabelsCommand as nl, SetDataLabelsFormatCommand as rl, SetDifferenceArrowStyleCommand as Su, SetGraphTypeCommand as Zr, SetGridLineStyleCommand as al, SetGridVisibilityCommand as gr, SetHeadlineCompareWithCommand as wu, SetHeadlinePositionCommand as Cu, SetHeadlineShowCommand as Xa, SetHeadlineSizeCommand as xu, SetHighlightDimStyleCommand as ku, SetLayerYScaleTypeCommand as Tu, SetLegendAlignCommand as Au, SetLegendDisplayCommand as Pu, SetLegendPlacementCommand as Lu, SetLegendPositionCommand as mr, SetLineCurveCommand as ol, SetLineMissingValuesCommand as il, SetLineStyleCommand as He, SetMappingCommand as Iu, SetNumberFormatAbbreviationCommand as Mu, SetNumberFormatDecimalsCommand as qa, SetObservationsColorCommand as Eu, SetPointSizeCommand as Mn, SetPointSymbolCommand as Jr, SetPolarInnerRadiusCommand as Ou, SetPolarStartAngleCommand as Ru, SetRuleLabelCommand as Nu, SetRuleValueCommand as Du, SetScaleDomainCommand as Rt, SetScaleRangeCommand as ll, SetScaleTransformCommand as sl, SetStatLineCommand as _u, SetStyleRuleCommand as Je, TEXT_ANNOTATION_DEFAULTS as vr, TEXT_ANNOTATION_FADE_ALPHA as Fu, ToggleCategoryLabelsCommand as cl, ToggleContentVisibilityCommand as it, ToggleDataLabelsCommand as dl, ToggleGoalLineCommand as Bu, ToggleLinePointsCommand as Qr, ToggleStackTotalsCommand as ul, UpdateAnnotationCommand as Se, alignUnitFractions as ea, areAnchorsEqual as En, areEditTargetsEqual as ta, areEndpointsComparable as zu, areSameStackEndpoints as Hu, buildColormapRange as Gu, buildDivergingRange as Ya, buildLayerStyleAddress as St, buildObservationPredicate as $u, buildObservationsTarget as Ue, buildObservationsTargetAtValue as hl, buildPointSymbolInBox as Vu, canAnchorDirectLabels as Wu, canBecomeCombo as Uu, canBecomeHeatmap as Ku, clampAnnotationTranslation as ju, collectDependentAnnotationIds as na, combineKindStyleDeclarations as Za, computeArrow as pl, createObservationAnchorBuilder as Xu, createObservationAnchorParser as qu, createStyleResolver as Yu, createStyleRuleMatcher as Zu, createValueFormatter as ra, createXValueReader as Ju, filterLayersByGeoms as fr, findAnnotation as Ja, findAverageLineLayer as Qu, findAxisGuide as gl, findCompanionLayers as ml, findGoalLineLayer as eh, findHighlightsAtObservation as th, findHostLayer as On, findKindStyleDeclarations as pn, findLayerByGeom as vl, findLayerById as ee, findObservationAttachment as nh, findOverflowedPanelEdges as rh, findPointerRegion as ah, findStyleRule as Qe, findTrendLineLayer as oh, formatDifferenceLabel as ih, getBoundingRect as br, getGroupVariables as aa, getScaledAesthetic as lh, getXBand as sh, getYBand as ch, hasMainAxisBand as dh, hasMultipleGroups as Rn, indexSceneAnnotations as fl, inferDefaultDifferenceArrowEndpoints as uh, inferDifferenceArrowEndpoints as hh, isComboGraphType as Te, isCompanionLayer as bl, isGeomStyleRule as ph, isGeometricSymbol as Mt, isImageSymbol as yr, isLayerSpecOf as xt, isObservationAttachmentKind as gh, isSafeUrl as mh, isZeroAnchoredAxis as yl, measureObservationsBoxes as Sl, polarToUnit as vh, projectAnchorToPanel as et, projectBoxToPanel as gn, readAnnotationBox as oa, readBroadestObservationsScope as fh, readColorChoices as wl, readColorPart as bh, readColormapColor as yh, readComboLineLayerId as Sh, readCompanionRowsAtScopeKey as wh, readConstantValue as Ch, readDivergingColor as Qa, readEditTargetKey as Gt, readGeomColor as xh, readGraphType as Nn, readHighlightDimStyle as kh, readMainAxis as Th, readMappableAesthetics as Ah, readMappedVariable as Ph, readObservationIndex as kt, readObservationsColor as Lh, readObservationsColorPart as Ih, readObservationsColorRoute as Dn, readOutwardGapOffset as Mh, readReachableLevels as Eh, readRectPoint as ia, readRowScopeKey as Oh, readRowsAtScopeKey as Rh, readScopeXVariable as Nh, readStyleCoord as Ie, readStyleRulesBeneath as Dh, readVariableName as _e, resolveArrowAnnotationStyle as la, resolveBarBandFraction as Cl, resolveComparisonBasis as _h, resolveDifferenceArrowAnnotationStyle as Fh, resolveEditOutlineStyle as Bh, resolveLayerAxisValueFormat as zh, resolveObservationPoint as xl, resolveObservationsTarget as st, resolvePointPlacement as kl, resolveTextAnnotationStyle as Tl, stepDifferenceArrowEndpoint as Hh, toDashPreset as ct, toFontSpec as Gh, toPaintColor as lt, toPanelCursor as ht, toStrokeDasharray as sa } from "@graphysdk/viz-engine";
3
3
  import { Fragment as Al, createContext as rt, memo as Pl, useCallback as ge, useContext as Pe, useEffect as $, useId as Ge, useLayoutEffect as tt, useMemo as z, useRef as Q, useState as ae, useSyncExternalStore as $h } from "react";
4
4
  import { Fragment as Y, jsx as o, jsxs as f } from "react/jsx-runtime";
5
5
  import { motion as Vh } from "motion/react";
6
6
  import { useShallow as Le } from "zustand/react/shallow";
7
- import { clamp as wt, isEqual as Fn } from "lodash-es";
7
+ import { clamp as wt, isEqual as _n } from "lodash-es";
8
8
  import { assignInlineVars as Be } from "@vanilla-extract/dynamic";
9
9
  import nt from "clsx";
10
10
  import { autoUpdate as Wh, flip as Uh, offset as Kh, shift as jh, useFloating as Xh } from "@floating-ui/react-dom";
@@ -22,7 +22,7 @@ import { Input as Zh } from "@base-ui/react/input";
22
22
  import { DirectionProvider as da } from "@base-ui/react/direction-provider";
23
23
  import { Extension as Ml } from "@tiptap/core";
24
24
  import { Bold as Jh } from "@tiptap/extension-bold";
25
- import { Document as vn } from "@tiptap/extension-document";
25
+ import { Document as mn } from "@tiptap/extension-document";
26
26
  import { HardBreak as Qh } from "@tiptap/extension-hard-break";
27
27
  import { Heading as ep } from "@tiptap/extension-heading";
28
28
  import { Italic as tp } from "@tiptap/extension-italic";
@@ -145,7 +145,7 @@ import './editable.css';var Nl = (e, t) => {
145
145
  ...c !== void 0 && { "aria-labelledby": c }
146
146
  };
147
147
  }, ze = "_18ja6qr0", ha = ({ children: e }) => {
148
- const { themeValues: t } = Pn();
148
+ const { themeValues: t } = An();
149
149
  return /* @__PURE__ */ o(Fe, {
150
150
  style: z(() => Be({
151
151
  [we.fontFamily]: t.fontFamily,
@@ -301,7 +301,7 @@ var kp = {
301
301
  focus: "color-mix(in srgb, transparent, var(--graphy-editor-text, var(--graphy-editor-default-text)) 55.00000000000001%)",
302
302
  focusWidth: "2px",
303
303
  shadow: "var(--graphy-editor-default-shadow)"
304
- }, Ap = "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))", Pp = "linear-gradient(135deg, var(--graphy-white) 50%, var(--graphy-black) 50%) border-box", zl = "_14ty2ng0", ro = "_14ty2ng1", Lp = "_14ty2ng2", Ip = "_14ty2ng3", Hl = "_14ty2ng4", Mp = "_14ty2ng5", Ep = "_14ty2ng6", fn = "transparent", Gl = (e) => e === "transparent" ? {
304
+ }, Ap = "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))", Pp = "linear-gradient(135deg, var(--graphy-white) 50%, var(--graphy-black) 50%) border-box", zl = "_14ty2ng0", ro = "_14ty2ng1", Lp = "_14ty2ng2", Ip = "_14ty2ng3", Hl = "_14ty2ng4", Mp = "_14ty2ng5", Ep = "_14ty2ng6", vn = "transparent", Gl = (e) => e === "transparent" ? {
305
305
  background: Ap,
306
306
  border: `1px solid ${we.border100}`
307
307
  } : e === yt ? {
@@ -357,24 +357,24 @@ var kp = {
357
357
  })]
358
358
  })]
359
359
  });
360
- }, pa = (e, t) => t !== null && e.toLowerCase() === t.toLowerCase(), Rp = "data-graphy-chart-chrome", Np = "data-graphy-chart-menu", Dp = { [Np]: "" }, Bn = (e) => ({ [Rp]: e }), Nt = (e, t) => e instanceof Element && e.closest(`[data-graphy-chart-chrome="${CSS.escape(t)}"]`) !== null, bn = (e) => e instanceof Element && e.closest("[data-graphy-chart-menu]") !== null, wr = (e) => e instanceof Element && e.closest("[data-graphy-chart-chrome]") !== null, ft = (e, t, n) => e instanceof Node && (t.contains(e) || Nt(e, n)), _p = "cml7ha0", $l = rt(null), Fp = ({ children: e }) => {
360
+ }, pa = (e, t) => t !== null && e.toLowerCase() === t.toLowerCase(), Rp = "data-graphy-chart-chrome", Np = "data-graphy-chart-menu", Dp = { [Np]: "" }, Fn = (e) => ({ [Rp]: e }), Nt = (e, t) => e instanceof Element && e.closest(`[data-graphy-chart-chrome="${CSS.escape(t)}"]`) !== null, fn = (e) => e instanceof Element && e.closest("[data-graphy-chart-menu]") !== null, wr = (e) => e instanceof Element && e.closest("[data-graphy-chart-chrome]") !== null, ft = (e, t, n) => e instanceof Node && (t.contains(e) || Nt(e, n)), _p = "cml7ha0", $l = rt(null), Fp = ({ children: e }) => {
361
361
  const { chartId: t } = X(), [n] = ae(Oe), [r, a] = ae(null);
362
362
  return n === null ? null : /* @__PURE__ */ f(Y, { children: [ca(/* @__PURE__ */ o("div", {
363
363
  ref: a,
364
364
  className: _p,
365
- ...Bn(t)
365
+ ...Fn(t)
366
366
  }), n), /* @__PURE__ */ o($l.Provider, {
367
367
  value: r,
368
368
  children: e
369
369
  })] });
370
- }, zn = () => Pe($l), Bp = "_178jeit0", zp = "_178jeit1 _14ty2ng3", Hp = "_178jeit2 _14ty2ng4", Gp = "_178jeit3", $p = "_178jeit4", Vp = "_178jeit5", Wp = "_178jeit6", Up = "_178jeit7", Kp = {
370
+ }, Bn = () => Pe($l), Bp = "_178jeit0", zp = "_178jeit1 _14ty2ng3", Hp = "_178jeit2 _14ty2ng4", Gp = "_178jeit3", $p = "_178jeit4", Vp = "_178jeit5", Wp = "_178jeit6", Up = "_178jeit7", Kp = {
371
371
  side: "flip",
372
372
  align: "shift",
373
373
  fallbackAxisSide: "end"
374
374
  }, jp = ({ value: e, onChange: t, onCommit: n, popupAttributes: r, variant: a = "default" }) => {
375
- const i = R(), l = zn(), [s, c] = ae(!1), d = (p) => {
375
+ const i = R(), l = Bn(), [s, c] = ae(!1), d = (p) => {
376
376
  c(p), p || n?.();
377
- }, u = e !== null && Pd(e) ? e : "#000000", h = _d(u) ? u.toUpperCase() : "#000000";
377
+ }, u = e !== null && Ad(e) ? e : "#000000", h = Dd(u) ? u.toUpperCase() : "#000000";
378
378
  return /* @__PURE__ */ f(he.Root, {
379
379
  open: s,
380
380
  onOpenChange: d,
@@ -485,12 +485,12 @@ var kp = {
485
485
  d
486
486
  ]
487
487
  });
488
- }, Hn = rt(null), ie = () => {
489
- const e = Pe(Hn);
488
+ }, zn = rt(null), ie = () => {
489
+ const e = Pe(zn);
490
490
  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>.");
491
491
  return e;
492
492
  }, Vl = ({ children: e, onKeyDown: t, ...n }) => {
493
- const r = Pe(Hn);
493
+ const r = Pe(zn);
494
494
  return /* @__PURE__ */ o("div", {
495
495
  onKeyDown: (i) => {
496
496
  if (t?.(i), !r || i.defaultPrevented) return;
@@ -500,7 +500,7 @@ var kp = {
500
500
  ...n,
501
501
  children: e
502
502
  });
503
- }, Wl = "keyboard", Gn = (e) => {
503
+ }, Wl = "keyboard", Hn = (e) => {
504
504
  const t = Q(!1), n = Q(!1), r = () => {
505
505
  t.current = !1, n.current && (n.current = !1, e?.());
506
506
  };
@@ -535,7 +535,7 @@ var tg = ({ value: e, onChange: t, onCommit: n, min: r, max: a, step: i, placeho
535
535
  id: g,
536
536
  ariaLabel: h,
537
537
  ariaLabelledBy: p
538
- }), { commitUnlessHeldKey: v, gestureHandlers: y } = Gn(n);
538
+ }), { commitUnlessHeldKey: v, gestureHandlers: y } = Hn(n);
539
539
  return /* @__PURE__ */ o(eo.Root, {
540
540
  className: Jp,
541
541
  value: e,
@@ -583,7 +583,7 @@ var ag = 6, og = ({ options: e, value: t, onChange: n, onCommit: r, columns: a,
583
583
  id: d,
584
584
  ariaLabel: s,
585
585
  ariaLabelledBy: c
586
- }), h = i === "tile", p = i === "swatch", g = i === "icon", m = i === "track", v = i === "chip", { commitAfterChange: y, gestureHandlers: b } = Gn(r);
586
+ }), h = i === "tile", p = i === "swatch", g = i === "icon", m = i === "track", v = i === "chip", { commitAfterChange: y, gestureHandlers: b } = Hn(r);
587
587
  return /* @__PURE__ */ o(Il, {
588
588
  className: nt(ng, ig(a ?? e.length), g && "_1b7s5f9", m && "_1b7s5fb", v && "_1b7s5fd"),
589
589
  value: t,
@@ -647,7 +647,7 @@ var gg = ({ options: e, value: t, onChange: n, placeholder: r, disabled: a, hasE
647
647
  id: c,
648
648
  ariaLabel: l,
649
649
  ariaLabelledBy: s
650
- }), u = zn();
650
+ }), u = Bn();
651
651
  return /* @__PURE__ */ f(Ne.Root, {
652
652
  value: t,
653
653
  onValueChange: (h) => h !== null && n(h),
@@ -707,7 +707,7 @@ var xg = ({ value: e, onChange: t, onCommit: n, min: r, max: a, step: i, suffix:
707
707
  const p = je({
708
708
  ariaLabel: u,
709
709
  ariaLabelledBy: h
710
- }, !1), g = kg(e, l, s), { commitUnlessHeldKey: m, gestureHandlers: v } = Gn(n);
710
+ }, !1), g = kg(e, l, s), { commitUnlessHeldKey: m, gestureHandlers: v } = Hn(n);
711
711
  return /* @__PURE__ */ f("div", {
712
712
  className: fg,
713
713
  children: [/* @__PURE__ */ o(Pt.Root, {
@@ -777,7 +777,7 @@ var Kl = ({ options: e, value: t, onChange: n, onCommit: r, itemLayout: a = "inl
777
777
  id: d,
778
778
  ariaLabel: s,
779
779
  ariaLabelledBy: c
780
- }), h = a === "stacked", { commitAfterChange: p, gestureHandlers: g } = Gn(r);
780
+ }), h = a === "stacked", { commitAfterChange: p, gestureHandlers: g } = Hn(r);
781
781
  return /* @__PURE__ */ o(Il, {
782
782
  className: Eg,
783
783
  value: t,
@@ -1086,8 +1086,8 @@ var Yl = (e, t, n) => {
1086
1086
  layers: t.layers,
1087
1087
  target: e
1088
1088
  });
1089
- return _n(t.spec, e, n, r);
1090
- }, Gg = (e, t) => t === null || e.some((n) => pa(n, t)) ? e : [...e, t], Yn = [
1089
+ return Dn(t.spec, e, n, r);
1090
+ }, Gg = (e, t) => t === null || e.some((n) => pa(n, t)) ? e : [...e, t], qn = [
1091
1091
  {
1092
1092
  name: "narrow",
1093
1093
  width: 0.4
@@ -1102,16 +1102,16 @@ var Yl = (e, t, n) => {
1102
1102
  }
1103
1103
  ], Zl = ({ target: e }) => {
1104
1104
  const t = G((p) => p), n = Ae(), r = R(), { ToggleGroup: a } = V(), i = ee(t.spec.layers, e.layerId), l = xt(i, "bar") ? i : null, s = t.coordSystem.type === "polar" && t.coordSystem.bandAxis === null, c = (p) => {
1105
- const g = Yn.find(({ name: m }) => m === p);
1105
+ const g = qn.find(({ name: m }) => m === p);
1106
1106
  g !== void 0 && n.dispatch(new Ji({
1107
1107
  layerId: e.layerId,
1108
1108
  width: g.width
1109
1109
  }));
1110
- }, d = Yn.map(({ name: p }) => ({
1110
+ }, d = qn.map(({ name: p }) => ({
1111
1111
  value: p,
1112
1112
  label: r(`editor.graphPanel.barSection.widths.${p}`),
1113
1113
  icon: /* @__PURE__ */ o(zg, { barWidth: p })
1114
- })), u = l === null ? null : Cl(l.params, t.coordSystem.type), h = Yn.find(({ width: p }) => p === u)?.name ?? "";
1114
+ })), u = l === null ? null : Cl(l.params, t.coordSystem.type), h = qn.find(({ width: p }) => p === u)?.name ?? "";
1115
1115
  return /* @__PURE__ */ f(Y, { children: [/* @__PURE__ */ o($e, { target: e }), l !== null && !s ? /* @__PURE__ */ o(L, {
1116
1116
  label: r("editor.graphPanel.barSection.thickness"),
1117
1117
  children: /* @__PURE__ */ o(a, {
@@ -2089,17 +2089,17 @@ var xr = [
2089
2089
  position: "identity"
2090
2090
  }
2091
2091
  }
2092
- ], ym = 0.05, ts = (e, t) => ke(e) ? Uu(t) : e.geom === "tile" ? Ku(t) : !0, yn = (e) => e === null ? null : _t.find((t) => Sm(t.summary, e)) ?? null, ns = (e, t) => t === null || ke(e) ? e : e.position === "dodge" && rs(t) ? {
2092
+ ], ym = 0.05, ts = (e, t) => Te(e) ? Uu(t) : e.geom === "tile" ? Ku(t) : !0, bn = (e) => e === null ? null : _t.find((t) => Sm(t.summary, e)) ?? null, ns = (e, t) => t === null || Te(e) ? e : e.position === "dodge" && rs(t) ? {
2093
2093
  ...e,
2094
2094
  position: "identity"
2095
- } : e.coordType !== "polar" || !Sn(e.innerRadius) || t.coordType !== "polar" || !Sn(t.innerRadius) ? e : {
2095
+ } : e.coordType !== "polar" || !yn(e.innerRadius) || t.coordType !== "polar" || !yn(t.innerRadius) ? e : {
2096
2096
  ...e,
2097
2097
  innerRadius: t.innerRadius
2098
- }, rs = (e) => !ke(e) && e.geom === "bar" && e.position === "identity", Sm = (e, t) => {
2099
- if (ke(e) || ke(t)) return ke(e) && ke(t);
2098
+ }, rs = (e) => !Te(e) && e.geom === "bar" && e.position === "identity", Sm = (e, t) => {
2099
+ if (Te(e) || Te(t)) return Te(e) && Te(t);
2100
2100
  const n = e.position === t.position || e.position === "dodge" && rs(t);
2101
- return e.coordType !== t.coordType || e.geom !== t.geom || !n ? !1 : e.coordType !== "polar" || t.coordType !== "polar" ? !0 : e.theta === t.theta && Sn(e.innerRadius) === Sn(t.innerRadius);
2102
- }, Sn = (e) => e >= ym;
2101
+ return e.coordType !== t.coordType || e.geom !== t.geom || !n ? !1 : e.coordType !== "polar" || t.coordType !== "polar" ? !0 : e.theta === t.theta && yn(e.innerRadius) === yn(t.innerRadius);
2102
+ }, yn = (e) => e >= ym;
2103
2103
  var wm = "_1a90obs1", Cm = [
2104
2104
  {
2105
2105
  summary: {
@@ -2143,7 +2143,7 @@ var wm = "_1a90obs1", Cm = [
2143
2143
  stackedBars: "stacked",
2144
2144
  lines: "lines"
2145
2145
  }, Pm = () => {
2146
- const e = G((P) => P.spec), t = G(({ layers: P }) => P.some((M) => Nn(M.data, M.mapping))), n = Ae(), r = R(), { Button: a, RadioGrid: i } = V(), [l, s] = ae(!1), c = Q(null);
2146
+ const e = G((P) => P.spec), t = G(({ layers: P }) => P.some((M) => Rn(M.data, M.mapping))), n = Ae(), r = R(), { Button: a, RadioGrid: i } = V(), [l, s] = ae(!1), c = Q(null);
2147
2147
  $(() => {
2148
2148
  if (!l) return;
2149
2149
  const P = ({ target: M, detail: I }) => {
@@ -2151,9 +2151,9 @@ var wm = "_1a90obs1", Cm = [
2151
2151
  };
2152
2152
  return document.addEventListener("click", P), () => document.removeEventListener("click", P);
2153
2153
  }, [l]);
2154
- const d = Dn(e);
2154
+ const d = Nn(e);
2155
2155
  if (d === null) return null;
2156
- const u = Mm(d), h = wn(d), p = yn(d), g = u ?? p, m = r(g === null ? "editor.overlayMenu.customChartType" : `editor.graphTypes.${g.name}`), v = (u === void 0 ? p : uo(u, h))?.icon, y = u !== void 0 && u.arrangements.length > 1, b = y && (t || u.name === "combo"), A = () => s(!l), C = ({ summary: P }) => {
2156
+ const u = Mm(d), h = Sn(d), p = bn(d), g = u ?? p, m = r(g === null ? "editor.overlayMenu.customChartType" : `editor.graphTypes.${g.name}`), v = (u === void 0 ? p : uo(u, h))?.icon, y = u !== void 0 && u.arrangements.length > 1, b = y && (t || u.name === "combo"), A = () => s(!l), C = ({ summary: P }) => {
2157
2157
  n.dispatch(new Zr(ns(P, d)), { transient: !0 });
2158
2158
  }, T = (P) => {
2159
2159
  const M = co.find((I) => I.name === P);
@@ -2202,7 +2202,7 @@ var wm = "_1a90obs1", Cm = [
2202
2202
  onCommit: n.commit
2203
2203
  })
2204
2204
  ] });
2205
- }, as = (e, t) => ke(e) || ke(t) ? ke(e) && ke(t) : e.coordType === "polar" ? yn(e) === yn(t) : e.coordType === t.coordType && e.geom === t.geom, os = xm.flatMap(([e, t]) => {
2205
+ }, as = (e, t) => Te(e) || Te(t) ? Te(e) && Te(t) : e.coordType === "polar" ? bn(e) === bn(t) : e.coordType === t.coordType && e.geom === t.geom, os = xm.flatMap(([e, t]) => {
2206
2206
  const n = _t.find((r) => r.name === t);
2207
2207
  return n === void 0 ? [] : [{
2208
2208
  name: e,
@@ -2210,14 +2210,14 @@ var wm = "_1a90obs1", Cm = [
2210
2210
  }];
2211
2211
  }), co = os.filter(({ name: e }) => e !== "combo"), Lm = ({ type: e, arrangement: t, onPick: n, onCommit: r }) => {
2212
2212
  const a = R(), { ToggleGroup: i } = V(), l = e.arrangements.map(({ summary: c, icon: d }) => {
2213
- const u = wn(c);
2213
+ const u = Sn(c);
2214
2214
  return {
2215
2215
  value: u,
2216
2216
  label: a(`editor.overlayMenu.arrangements.${u}`),
2217
2217
  icon: /* @__PURE__ */ o(d, { size: "sm" })
2218
2218
  };
2219
2219
  }), s = (c) => {
2220
- const d = e.arrangements.find(({ summary: u }) => wn(u) === c);
2220
+ const d = e.arrangements.find(({ summary: u }) => Sn(u) === c);
2221
2221
  d !== void 0 && n(d);
2222
2222
  };
2223
2223
  return /* @__PURE__ */ o(L, {
@@ -2232,7 +2232,7 @@ var wm = "_1a90obs1", Cm = [
2232
2232
  })
2233
2233
  })
2234
2234
  });
2235
- }, Im = (e) => e instanceof Element && e.closest('[role="radio"]:not([aria-disabled="true"])') !== null, wn = (e) => ke(e) ? Am[e.comboType] : Tm[e.position], uo = (e, t) => e.arrangements.find(({ summary: n }) => wn(n) === t) ?? e.arrangements[0], Mm = (e) => os.find(({ arrangements: [t] }) => as(t.summary, e)), Em = () => {
2235
+ }, Im = (e) => e instanceof Element && e.closest('[role="radio"]:not([aria-disabled="true"])') !== null, Sn = (e) => Te(e) ? Am[e.comboType] : Tm[e.position], uo = (e, t) => e.arrangements.find(({ summary: n }) => Sn(n) === t) ?? e.arrangements[0], Mm = (e) => os.find(({ arrangements: [t] }) => as(t.summary, e)), Em = () => {
2236
2236
  const e = G((s) => s.scales.color), t = Ae(), n = R(), [r, a] = ae(null);
2237
2237
  $(() => () => t.commit(), [t]);
2238
2238
  const i = wl(e), l = yh(e, r === null ? i : [r, ...i]);
@@ -2353,7 +2353,7 @@ var q6 = 512 * 1024, zm = (e) => new Promise((t) => {
2353
2353
  "solid",
2354
2354
  "dashed",
2355
2355
  "dotted"
2356
- ], Zn = [
2356
+ ], Yn = [
2357
2357
  {
2358
2358
  name: "thin",
2359
2359
  widthPx: 2
@@ -2366,7 +2366,7 @@ var q6 = 512 * 1024, zm = (e) => new Promise((t) => {
2366
2366
  name: "thick",
2367
2367
  widthPx: 5
2368
2368
  }
2369
- ], Jn = [
2369
+ ], Zn = [
2370
2370
  {
2371
2371
  name: "small",
2372
2372
  sizePx: 6
@@ -2388,14 +2388,14 @@ var q6 = 512 * 1024, zm = (e) => new Promise((t) => {
2388
2388
  "star"
2389
2389
  ], ss = ({ widthPx: e, onChange: t }) => {
2390
2390
  const n = R(), { ToggleGroup: r } = V(), a = (i) => {
2391
- const l = Zn.find(({ name: s }) => s === i);
2391
+ const l = Yn.find(({ name: s }) => s === i);
2392
2392
  l !== void 0 && t(l.widthPx);
2393
2393
  };
2394
2394
  return /* @__PURE__ */ o(L, {
2395
2395
  label: n("editor.graphPanel.lineThickness.label"),
2396
2396
  children: /* @__PURE__ */ o(r, {
2397
- value: Zn.find((i) => i.widthPx === e)?.name ?? "",
2398
- options: Zn.map(({ name: i, widthPx: l }) => ({
2397
+ value: Yn.find((i) => i.widthPx === e)?.name ?? "",
2398
+ options: Yn.map(({ name: i, widthPx: l }) => ({
2399
2399
  value: i,
2400
2400
  label: n(`editor.graphPanel.gridSection.lineWidths.${i}`),
2401
2401
  icon: /* @__PURE__ */ o(ls, { lineWidth: l })
@@ -2421,7 +2421,7 @@ var q6 = 512 * 1024, zm = (e) => new Promise((t) => {
2421
2421
  })
2422
2422
  });
2423
2423
  }, ma = ({ symbol: e, coordType: t, onChange: n }) => {
2424
- const r = R(), { RadioGrid: a } = V(), [i, l] = ae(null), s = Pe(Hn), c = kd(), d = Vi(), u = s ? s.getPointSymbols(t) : d("point", t)?.symbols, h = s ? new Map(s.getGlyphs().map(({ name: k, definition: P }) => [k, P])) : c;
2424
+ const r = R(), { RadioGrid: a } = V(), [i, l] = ae(null), s = Pe(zn), c = kd(), d = Vi(), u = s ? s.getPointSymbols(t) : d("point", t)?.symbols, h = s ? new Map(s.getGlyphs().map(({ name: k, definition: P }) => [k, P])) : c;
2425
2425
  if (u === void 0 || u.length === 0) return null;
2426
2426
  const p = (k) => typeof k == "string" && u.includes(k), g = (k) => p(k) || yr(k) || !Mt(k) && h.has(k), m = (k) => !Mt(k) || Hm.some((P) => P === k), v = [...h.keys()].filter((k) => !Mt(k) && !p(k)), y = [...u.filter(m), ...v], b = e === null ? "" : Yt(e), A = e === null || y.some((k) => Yt(k) === b) || !g(e) ? y : [...y, e], C = (k) => Mt(k) ? r(`editor.graphPanel.pointSymbol.symbols.${k}`) : yr(k) ? r("editor.graphPanel.pointSymbol.custom") : k, T = (k) => {
2427
2427
  l(null);
@@ -2469,14 +2469,14 @@ var q6 = 512 * 1024, zm = (e) => new Promise((t) => {
2469
2469
  });
2470
2470
  }, va = ({ sizePx: e, onChange: t }) => {
2471
2471
  const n = R(), { ToggleGroup: r } = V(), a = (i) => {
2472
- const l = Jn.find(({ name: s }) => s === i);
2472
+ const l = Zn.find(({ name: s }) => s === i);
2473
2473
  l !== void 0 && t(l.sizePx);
2474
2474
  };
2475
2475
  return /* @__PURE__ */ o(L, {
2476
2476
  label: n("editor.graphPanel.pointSize.label"),
2477
2477
  children: /* @__PURE__ */ o(r, {
2478
- value: Jn.find((i) => i.sizePx === e)?.name ?? "",
2479
- options: Jn.map(({ name: i }) => ({
2478
+ value: Zn.find((i) => i.sizePx === e)?.name ?? "",
2479
+ options: Zn.map(({ name: i }) => ({
2480
2480
  value: i,
2481
2481
  label: n(`editor.graphPanel.pointSize.sizes.${i}`),
2482
2482
  icon: /* @__PURE__ */ o(Rm, { pointSize: i })
@@ -2559,7 +2559,7 @@ var q6 = 512 * 1024, zm = (e) => new Promise((t) => {
2559
2559
  });
2560
2560
  }, Tr = (e) => `preset:${e}`, qm = (e, t) => {
2561
2561
  if (e === null) return kr;
2562
- const n = t.find(([, r]) => Fn(r, e));
2562
+ const n = t.find(([, r]) => _n(r, e));
2563
2563
  return n === void 0 ? "" : Tr(n[0]);
2564
2564
  }, go = ({ colors: e }) => {
2565
2565
  const t = e.slice(0, jm), n = Zt / 2, r = Zt + (t.length - 1) * po;
@@ -2581,7 +2581,7 @@ var q6 = 512 * 1024, zm = (e) => new Promise((t) => {
2581
2581
  "inside",
2582
2582
  "outside"
2583
2583
  ], us = () => {
2584
- const e = G((S) => S), t = te(), n = Ur(), r = Ae(), a = R(), { Switch: i, ToggleGroup: l } = V(), s = hs(e.layers, e.coordSystem.type, n), c = (S) => s.filter(({ support: O }) => S(O)).map(({ layer: O }) => O), d = Ym(e, t), u = d.filter((S) => S.smooth !== null), h = d.filter((S) => S.missingValues !== null && S.missingValueOptions.length > 1), p = xr.filter((S) => h.some((O) => O.missingValueOptions.includes(S))), g = e1(u), m = t1(h), v = (S) => {
2584
+ const e = G((S) => S), t = te(), n = jr(), r = Ae(), a = R(), { Switch: i, ToggleGroup: l } = V(), s = hs(e.layers, e.coordSystem.type, n), c = (S) => s.filter(({ support: O }) => S(O)).map(({ layer: O }) => O), d = Ym(e, t), u = d.filter((S) => S.smooth !== null), h = d.filter((S) => S.missingValues !== null && S.missingValueOptions.length > 1), p = xr.filter((S) => h.some((O) => O.missingValueOptions.includes(S))), g = e1(u), m = t1(h), v = (S) => {
2585
2585
  r.dispatch(new at({ commands: d.map((O) => new Qr({
2586
2586
  layerId: O.layerId,
2587
2587
  showPoints: S
@@ -2625,7 +2625,7 @@ var q6 = 512 * 1024, zm = (e) => new Promise((t) => {
2625
2625
  drawnFillAlpha: O.drawnFillAlpha
2626
2626
  })));
2627
2627
  }, x = (S) => {
2628
- F(P.flatMap(({ pointLayerId: O }) => O === null ? [] : [new En({
2628
+ F(P.flatMap(({ pointLayerId: O }) => O === null ? [] : [new Mn({
2629
2629
  layerId: O,
2630
2630
  size: S
2631
2631
  })]));
@@ -2762,7 +2762,7 @@ var q6 = 512 * 1024, zm = (e) => new Promise((t) => {
2762
2762
  /* @__PURE__ */ o(Em, {})
2763
2763
  ] });
2764
2764
  };
2765
- us.hasRows = (e, { scene: t, dataLabelPlacement: n }) => Dn(t.spec) !== null || hs(t.layers, t.coordSystem.type, n).some(({ support: r }) => r.supportsDataLabels) || t.spec.layers.some((r) => r.interactive && xt(r, "line", "area"));
2765
+ us.hasRows = (e, { scene: t, dataLabelPlacement: n }) => Nn(t.spec) !== null || hs(t.layers, t.coordSystem.type, n).some(({ support: r }) => r.supportsDataLabels) || t.spec.layers.some((r) => r.interactive && xt(r, "line", "area"));
2766
2766
  var hs = (e, t, n) => e.filter((r) => r.interactive).map((r) => ({
2767
2767
  layer: r,
2768
2768
  support: Jl(r, t, n)
@@ -2823,7 +2823,7 @@ var hs = (e, t, n) => e.filter((r) => r.interactive).map((r) => ({
2823
2823
  }, n1 = (e, t) => {
2824
2824
  const n = ee(t.layers, e);
2825
2825
  if (n === void 0) return null;
2826
- const r = ee(t.spec.layers, e), a = r === void 0 ? null : Rn(r, t.spec.layers), i = a !== null && a.id !== n.id ? a : n;
2826
+ const r = ee(t.spec.layers, e), a = r === void 0 ? null : On(r, t.spec.layers), i = a !== null && a.id !== n.id ? a : n;
2827
2827
  return {
2828
2828
  geom: i.geom,
2829
2829
  coord: t.spec.coords.coordType,
@@ -2842,7 +2842,7 @@ var hs = (e, t, n) => e.filter((r) => r.interactive).map((r) => ({
2842
2842
  if (c !== void 0) return c;
2843
2843
  }
2844
2844
  return i;
2845
- }, a1 = (e) => typeof e == "object" && ("style" in e || "annotate" in e), fo = (e, t) => e == null ? e : a1(e) ? e[t] : t === "style" ? e : void 0, bo = (e, t) => e !== void 0 && Object.hasOwn(e, t) ? e[t] : void 0, Cn = [
2845
+ }, a1 = (e) => typeof e == "object" && ("style" in e || "annotate" in e), fo = (e, t) => e == null ? e : a1(e) ? e[t] : t === "style" ? e : void 0, bo = (e, t) => e !== void 0 && Object.hasOwn(e, t) ? e[t] : void 0, wn = [
2846
2846
  "solid",
2847
2847
  "dashed",
2848
2848
  "dotted"
@@ -2867,7 +2867,7 @@ var ps = (e) => e.scaledAesthetic === "x" || e.scaledAesthetic === "y", gs = (e,
2867
2867
  }), vs = (e, t = "both") => new al({
2868
2868
  axis: t,
2869
2869
  strokeWidth: e
2870
- }), Qn = [
2870
+ }), Jn = [
2871
2871
  {
2872
2872
  name: "thin",
2873
2873
  widthPx: 1
@@ -2883,19 +2883,19 @@ var ps = (e) => e.scaledAesthetic === "x" || e.scaledAesthetic === "y", gs = (e,
2883
2883
  ], fs = ({ target: e }) => {
2884
2884
  const t = G((y) => y), n = te(), r = gs(t, n), a = R(), i = Ae(), { ToggleGroup: l } = V();
2885
2885
  if (r === null || !r.stylable) return null;
2886
- const s = e.axis === "both" ? "y" : e.axis, c = n.gridLine[s]().resolve(), d = ct(c.dashArray), u = o1(e.axis, r), h = Cn.map((y) => ({
2886
+ const s = e.axis === "both" ? "y" : e.axis, c = n.gridLine[s]().resolve(), d = ct(c.dashArray), u = o1(e.axis, r), h = wn.map((y) => ({
2887
2887
  value: y,
2888
2888
  label: a(`editor.graphPanel.gridSection.lineStyles.${y}`),
2889
2889
  icon: /* @__PURE__ */ o(is, { lineStyle: y })
2890
- })), p = Qn.map(({ name: y, widthPx: b }) => ({
2890
+ })), p = Jn.map(({ name: y, widthPx: b }) => ({
2891
2891
  value: y,
2892
2892
  label: a(`editor.graphPanel.gridSection.lineWidths.${y}`),
2893
2893
  icon: /* @__PURE__ */ o(ls, { lineWidth: b })
2894
- })), g = Qn.find(({ widthPx: y }) => y === c.strokeWidth)?.name ?? "", m = (y) => {
2895
- const b = Cn.find((A) => A === y);
2894
+ })), g = Jn.find(({ widthPx: y }) => y === c.strokeWidth)?.name ?? "", m = (y) => {
2895
+ const b = wn.find((A) => A === y);
2896
2896
  b !== void 0 && i.dispatch(ms(b, e.axis));
2897
2897
  }, v = (y) => {
2898
- const b = Qn.find(({ name: A }) => A === y);
2898
+ const b = Jn.find(({ name: A }) => A === y);
2899
2899
  b !== void 0 && i.dispatch(vs(b.widthPx, e.axis));
2900
2900
  };
2901
2901
  return /* @__PURE__ */ f(Y, { children: [/* @__PURE__ */ o(L, {
@@ -2975,8 +2975,8 @@ var yo = [
2975
2975
  center: "Center",
2976
2976
  end: "End"
2977
2977
  }, l1 = () => {
2978
- const e = G((c) => c.guides.legends.drawn[0]), t = Ae(), n = R(), { RadioGrid: r } = V(), a = e === void 0, i = a ? "" : er(e), l = yo.map((c) => {
2979
- const d = er(c);
2978
+ const e = G((c) => c.guides.legends.drawn[0]), t = Ae(), n = R(), { RadioGrid: r } = V(), a = e === void 0, i = a ? "" : Qn(e), l = yo.map((c) => {
2979
+ const d = Qn(c);
2980
2980
  return {
2981
2981
  value: d,
2982
2982
  label: n(`editor.overlayMenu.legendPlaces.${d}`),
@@ -2990,7 +2990,7 @@ var yo = [
2990
2990
  disabled: s1(e, c)
2991
2991
  };
2992
2992
  }), s = (c) => {
2993
- const d = yo.find((u) => er(u) === c);
2993
+ const d = yo.find((u) => Qn(u) === c);
2994
2994
  d !== void 0 && t.dispatch(new Lu({
2995
2995
  position: d.position,
2996
2996
  align: d.align
@@ -3014,7 +3014,7 @@ var yo = [
3014
3014
  })
3015
3015
  })
3016
3016
  });
3017
- }, er = ({ position: e, align: t }) => e === "left" || e === "right" ? e : `${e}${i1[t]}`, s1 = (e, t) => e?.inHeadlineRow === !0 && t.position === "top" && t.align !== "end", c1 = ({ gridRow: e, gridColumn: t }) => Math.atan2(t - 2, 2 - e) * 180 / Math.PI, bs = (e, t, n, r) => {
3017
+ }, Qn = ({ position: e, align: t }) => e === "left" || e === "right" ? e : `${e}${i1[t]}`, s1 = (e, t) => e?.inHeadlineRow === !0 && t.position === "top" && t.align !== "end", c1 = ({ gridRow: e, gridColumn: t }) => Math.atan2(t - 2, 2 - e) * 180 / Math.PI, bs = (e, t, n, r) => {
3018
3018
  const a = Ss(e, n, r)?.size;
3019
3019
  if (typeof a == "number") return a;
3020
3020
  const i = ee(e.layers, n);
@@ -3024,7 +3024,7 @@ var yo = [
3024
3024
  if (a !== void 0) return a;
3025
3025
  const i = ee(e.layers, n);
3026
3026
  return i?.geom === "point" ? t.geom.point(i).get("symbol") : "circle";
3027
- }, Ss = (e, t, n) => n === void 0 ? void 0 : gn(e.spec.styles.overrides, {
3027
+ }, Ss = (e, t, n) => n === void 0 ? void 0 : pn(e.spec.styles.overrides, {
3028
3028
  ...St("point", t),
3029
3029
  when: { where: n }
3030
3030
  }, Ie(e.spec)), Ar = ({ target: e }) => {
@@ -3058,7 +3058,7 @@ var d1 = ({ graph: e, target: t }) => {
3058
3058
  ...d
3059
3059
  }));
3060
3060
  }, T = (I) => {
3061
- s.pointLayerId !== null && e.commands.dispatch(new En({
3061
+ s.pointLayerId !== null && e.commands.dispatch(new Mn({
3062
3062
  layerId: s.pointLayerId,
3063
3063
  size: I,
3064
3064
  ...d
@@ -3075,7 +3075,7 @@ var d1 = ({ graph: e, target: t }) => {
3075
3075
  lineStyle: I,
3076
3076
  ...d
3077
3077
  }));
3078
- }, M = _n(n.spec, t)?.some((I) => I.geomKind === "line" || I.geomKind === "area") === !0;
3078
+ }, M = Dn(n.spec, t)?.some((I) => I.geomKind === "line" || I.geomKind === "area") === !0;
3079
3079
  return /* @__PURE__ */ f(Y, { children: [
3080
3080
  /* @__PURE__ */ o($e, { target: t }),
3081
3081
  /* @__PURE__ */ o(ss, {
@@ -3111,16 +3111,16 @@ var d1 = ({ graph: e, target: t }) => {
3111
3111
  })
3112
3112
  ] });
3113
3113
  }, u1 = (e, t, n, r) => {
3114
- const a = (t === "line" ? gn(e.spec.styles.overrides, {
3114
+ const a = (t === "line" ? pn(e.spec.styles.overrides, {
3115
3115
  ...St("line", n),
3116
3116
  when: { where: r }
3117
- }, Ie(e.spec)) : gn(e.spec.styles.overrides, {
3117
+ }, Ie(e.spec)) : pn(e.spec.styles.overrides, {
3118
3118
  ...St("area", n),
3119
3119
  when: { where: r }
3120
3120
  }, Ie(e.spec)))?.strokeWidth;
3121
3121
  return typeof a == "number" ? a : null;
3122
3122
  }, h1 = (e, t, n) => {
3123
- const r = ee(e.layers, n.layerId), a = r === void 0 ? void 0 : Rn(r, e.layers);
3123
+ const r = ee(e.layers, n.layerId), a = r === void 0 ? void 0 : On(r, e.layers);
3124
3124
  if (a?.geom !== "line" && a?.geom !== "area") return null;
3125
3125
  const [i] = st({
3126
3126
  layer: a,
@@ -3129,13 +3129,13 @@ var d1 = ({ graph: e, target: t }) => {
3129
3129
  }), l = i === void 0 ? void 0 : a.data.getAt(i) ?? void 0, s = a.geom === "line" ? t.geom.line(a).get("strokeWidth", l) : t.geom.area(a).get("strokeWidth", l);
3130
3130
  return typeof s == "number" ? s : null;
3131
3131
  }, p1 = (e, t, n) => {
3132
- const r = gn(e.spec.styles.overrides, {
3132
+ const r = pn(e.spec.styles.overrides, {
3133
3133
  ...St("line", t),
3134
3134
  when: { where: n }
3135
3135
  }, Ie(e.spec))?.fillAlpha;
3136
3136
  return typeof r == "number" ? r : void 0;
3137
- }, g1 = (e, t) => _n(e.spec, t)?.find((n) => n.geomKind === "line" || n.geomKind === "area")?.where, m1 = (e, t, n) => {
3138
- const r = ee(e.layers, n.layerId), a = r === void 0 ? void 0 : Rn(r, e.layers);
3137
+ }, g1 = (e, t) => Dn(e.spec, t)?.find((n) => n.geomKind === "line" || n.geomKind === "area")?.where, m1 = (e, t, n) => {
3138
+ const r = ee(e.layers, n.layerId), a = r === void 0 ? void 0 : On(r, e.layers);
3139
3139
  if (a?.geom !== "line" && a?.geom !== "area") return "solid";
3140
3140
  const [i] = st({
3141
3141
  layer: a,
@@ -3146,7 +3146,7 @@ var d1 = ({ graph: e, target: t }) => {
3146
3146
  }, ws = (e, t) => {
3147
3147
  const n = ee(e.spec.layers, t);
3148
3148
  if (n === void 0) return null;
3149
- const r = Rn(n, e.spec.layers);
3149
+ const r = On(n, e.spec.layers);
3150
3150
  return xt(r, "line", "area") ? r : null;
3151
3151
  }, Cs = (e) => /* @__PURE__ */ f(E, {
3152
3152
  viewBox: "0 0 16 16",
@@ -3177,7 +3177,7 @@ var d1 = ({ graph: e, target: t }) => {
3177
3177
  className: v1,
3178
3178
  "aria-hidden": "true",
3179
3179
  children: [e, /* @__PURE__ */ o("span", { className: f1 })]
3180
- }), tr = (e) => /* @__PURE__ */ o(E, {
3180
+ }), er = (e) => /* @__PURE__ */ o(E, {
3181
3181
  viewBox: "0 0 15 14",
3182
3182
  ...e,
3183
3183
  children: /* @__PURE__ */ o("path", {
@@ -3259,7 +3259,7 @@ var d1 = ({ graph: e, target: t }) => {
3259
3259
  scope: "observation",
3260
3260
  labelKey: "bar"
3261
3261
  }];
3262
- if (!Nn(e.data, e.mapping)) return t;
3262
+ if (!Rn(e.data, e.mapping)) return t;
3263
3263
  const n = e.position === "stack" || e.position === "fill";
3264
3264
  return t.push({
3265
3265
  scope: "xValue",
@@ -3273,7 +3273,7 @@ var d1 = ({ graph: e, target: t }) => {
3273
3273
  scope: "observation",
3274
3274
  labelKey: "linePoint"
3275
3275
  }];
3276
- return Nn(e.data, e.mapping) && t.push({
3276
+ return Rn(e.data, e.mapping) && t.push({
3277
3277
  scope: "group",
3278
3278
  labelKey: "lineSeries"
3279
3279
  }), t;
@@ -3282,7 +3282,7 @@ var d1 = ({ graph: e, target: t }) => {
3282
3282
  scope: "observation",
3283
3283
  labelKey: "scatterPoint"
3284
3284
  }];
3285
- return Nn(e.data, e.mapping) && t.push({
3285
+ return Rn(e.data, e.mapping) && t.push({
3286
3286
  scope: "group",
3287
3287
  labelKey: "scatterSeries"
3288
3288
  }), t;
@@ -3419,7 +3419,7 @@ var w1 = (e) => {
3419
3419
  comment: !0,
3420
3420
  sticker: !0,
3421
3421
  image: !1
3422
- }, E1 = (e) => gh(e.kind) && M1[e.kind], $n = (e, t) => z(() => {
3422
+ }, E1 = (e) => gh(e.kind) && M1[e.kind], Gn = (e, t) => z(() => {
3423
3423
  if (e === null) return {
3424
3424
  options: [],
3425
3425
  findValue: () => {
@@ -3571,11 +3571,11 @@ var $1 = "vez73g6", V1 = "vez73g7", W1 = "vez73g8", U1 = "vez73g9", K1 = "vez73g
3571
3571
  }, cn = ba((e, t) => S1(t, e)), To = ba(Ts), Y1 = ba(As), Z1 = ({ anchor: e, readHighlightOptions: t }) => {
3572
3572
  const { layer: n, observation: r, at: a } = e, i = R(), { dispatch: l, paintPreview: s, clearPreview: c } = Ae(), { selectionStore: d } = X(), u = Q(null), h = Q(c);
3573
3573
  h.current = c;
3574
- const { Button: p } = V(), g = G((H) => H), m = g.spec.annotations, v = g.config.parsingLocale, y = g.config.numberFormat, b = Ln(), A = {
3574
+ const { Button: p } = V(), g = G((H) => H), m = g.spec.annotations, v = g.config.parsingLocale, y = g.config.numberFormat, b = Pn(), A = {
3575
3575
  scene: g,
3576
3576
  layer: n,
3577
3577
  observation: r,
3578
- groupOptions: $n(g, b),
3578
+ groupOptions: Gn(g, b),
3579
3579
  locale: b,
3580
3580
  t: i
3581
3581
  }, C = Pr(A, "xValue").value, T = Pr(A, "group").value, k = Ms(A).observation, P = nh(m, a, z(() => qu(n, v), [n, v])), M = P !== null && E1(P) ? P : null, I = u.current, F = M !== null && I?.key.startsWith("sticker:") === !0 && M.kind === "sticker" ? null : M, _ = F?.kind === "comment" ? F.annotation.content : null, D = _ === null ? "" : uv(_) ?? void 0, [w, x] = ae(() => cv(M?.kind)), S = I1(n, r), O = g.coordSystem, W = t(n, O), se = W.length === 0 ? [] : C1(n, r, b, y), ye = (I?.choiceId === void 0 ? S : S.filter((H) => Ps(H, se) !== I.choiceId)).at(-1), ne = z(() => hh({
@@ -3628,7 +3628,7 @@ var $1 = "vez73g6", V1 = "vez73g7", W1 = "vez73g8", U1 = "vez73g9", K1 = "vez73g
3628
3628
  }, ce = (H) => {
3629
3629
  if (ne === null) return;
3630
3630
  U();
3631
- const fe = On(ne.start, a) ? ne.end : ne.start, Xe = new xe({
3631
+ const fe = En(ne.start, a) ? ne.end : ne.start, Xe = new ke({
3632
3632
  kind: "differenceArrow",
3633
3633
  annotation: {
3634
3634
  ...ji,
@@ -3684,7 +3684,7 @@ var $1 = "vez73g6", V1 = "vez73g7", W1 = "vez73g8", U1 = "vez73g9", K1 = "vez73g
3684
3684
  ...qe,
3685
3685
  ariaLabel: i("graph.annotations.baseMenu.pinNumber"),
3686
3686
  icon: /* @__PURE__ */ o(xs, {}),
3687
- onClick: () => re(new xe({
3687
+ onClick: () => re(new ke({
3688
3688
  kind: "pinnedNumber",
3689
3689
  annotation: { at: a }
3690
3690
  }))
@@ -3700,7 +3700,7 @@ var $1 = "vez73g6", V1 = "vez73g7", W1 = "vez73g8", U1 = "vez73g9", K1 = "vez73g
3700
3700
  variant: "icon",
3701
3701
  ...qe,
3702
3702
  ariaLabel: i("graph.annotations.baseMenu.differenceArrow"),
3703
- icon: /* @__PURE__ */ o(tr, {}),
3703
+ icon: /* @__PURE__ */ o(er, {}),
3704
3704
  expanded: w === "difference",
3705
3705
  onClick: () => j("difference")
3706
3706
  }),
@@ -3738,7 +3738,7 @@ var $1 = "vez73g6", V1 = "vez73g7", W1 = "vez73g8", U1 = "vez73g9", K1 = "vez73g
3738
3738
  children: [/* @__PURE__ */ o(p, {
3739
3739
  variant: "icon",
3740
3740
  ariaLabel: i("graph.annotations.differenceArrowToolbar.labelKind.asPercent"),
3741
- icon: /* @__PURE__ */ f(Y, { children: [/* @__PURE__ */ o(tr, { size: "sm" }), /* @__PURE__ */ o("span", {
3741
+ icon: /* @__PURE__ */ f(Y, { children: [/* @__PURE__ */ o(er, { size: "sm" }), /* @__PURE__ */ o("span", {
3742
3742
  className: "vez73g5",
3743
3743
  "aria-hidden": "true",
3744
3744
  children: "%"
@@ -3747,7 +3747,7 @@ var $1 = "vez73g6", V1 = "vez73g7", W1 = "vez73g8", U1 = "vez73g9", K1 = "vez73g
3747
3747
  }), /* @__PURE__ */ o(p, {
3748
3748
  variant: "icon",
3749
3749
  ariaLabel: i("graph.annotations.differenceArrowToolbar.labelKind.asNumber"),
3750
- icon: /* @__PURE__ */ f(Y, { children: [/* @__PURE__ */ o(tr, { size: "sm" }), /* @__PURE__ */ o("span", {
3750
+ icon: /* @__PURE__ */ f(Y, { children: [/* @__PURE__ */ o(er, { size: "sm" }), /* @__PURE__ */ o("span", {
3751
3751
  className: "vez73g5",
3752
3752
  "aria-hidden": "true",
3753
3753
  children: "+n"
@@ -3778,7 +3778,7 @@ var $1 = "vez73g6", V1 = "vez73g7", W1 = "vez73g8", U1 = "vez73g9", K1 = "vez73g
3778
3778
  const h = () => {
3779
3779
  if (u.length === 0) return;
3780
3780
  const p = hv(u);
3781
- t(n === void 0 ? new xe({
3781
+ t(n === void 0 ? new ke({
3782
3782
  kind: "comment",
3783
3783
  annotation: {
3784
3784
  at: e,
@@ -3830,7 +3830,7 @@ var $1 = "vez73g6", V1 = "vez73g7", W1 = "vez73g8", U1 = "vez73g9", K1 = "vez73g
3830
3830
  layerId: t
3831
3831
  }), av = (e, t, n) => n === void 0 ? {
3832
3832
  key: nv(t),
3833
- command: new xe({
3833
+ command: new ke({
3834
3834
  kind: "sticker",
3835
3835
  annotation: {
3836
3836
  at: {
@@ -3959,13 +3959,13 @@ _s.hasRows = (e, t) => xt(ee(t.scene.spec.layers, e.layerId), "point") ? !0 : $e
3959
3959
  var pv = ({ graph: e, target: t }) => {
3960
3960
  const n = oe(e), r = te(), a = n === null ? void 0 : ee(n.spec.layers, t.layerId);
3961
3961
  if (n === null || !xt(a, "point")) return /* @__PURE__ */ o($e, { target: t });
3962
- const i = _n(n.spec, t)?.find((c) => c.geomKind === "point")?.where, l = i === void 0 ? {} : { where: i }, s = _e(ee(n.layers, a.id)?.mapping.size) !== null;
3962
+ const i = Dn(n.spec, t)?.find((c) => c.geomKind === "point")?.where, l = i === void 0 ? {} : { where: i }, s = _e(ee(n.layers, a.id)?.mapping.size) !== null;
3963
3963
  return /* @__PURE__ */ f(Y, { children: [
3964
3964
  /* @__PURE__ */ o($e, { target: t }),
3965
3965
  !s && /* @__PURE__ */ o(va, {
3966
3966
  sizePx: bs(n, r, a.id, i),
3967
3967
  onChange: (c) => {
3968
- e.commands.dispatch(new En({
3968
+ e.commands.dispatch(new Mn({
3969
3969
  layerId: a.id,
3970
3970
  size: c,
3971
3971
  ...l
@@ -4022,7 +4022,7 @@ var pv = ({ graph: e, target: t }) => {
4022
4022
  children: t
4023
4023
  });
4024
4024
  }, mv = (e) => {
4025
- const t = Pe(ya), n = G((l) => l), { findGeom: r } = X(), a = Ur(), i = Bs(Te());
4025
+ const t = Pe(ya), n = G((l) => l), { findGeom: r } = X(), a = jr(), i = Bs(Ce());
4026
4026
  return z(() => e === null ? null : zs(e, t, {
4027
4027
  scene: n,
4028
4028
  dataLabelPlacement: a,
@@ -4036,7 +4036,7 @@ var pv = ({ graph: e, target: t }) => {
4036
4036
  i
4037
4037
  ]);
4038
4038
  }, vv = () => {
4039
- const e = Pe(ya), { store: t, findGeom: n } = X(), r = Ur(), a = Bs(Te());
4039
+ const e = Pe(ya), { store: t, findGeom: n } = X(), r = jr(), a = Bs(Ce());
4040
4040
  return ge((i) => zs(i, e, {
4041
4041
  scene: t.getState().scene,
4042
4042
  dataLabelPlacement: r,
@@ -4048,7 +4048,7 @@ var pv = ({ graph: e, target: t }) => {
4048
4048
  n,
4049
4049
  a
4050
4050
  ]);
4051
- }, Bs = (e) => e === hn.annotate ? "annotate" : "style", zs = (e, t, n, r) => {
4051
+ }, Bs = (e) => e === hr.annotate ? "annotate" : "style", zs = (e, t, n, r) => {
4052
4052
  if (r === "annotate" && e.kind !== "observations") return null;
4053
4053
  switch (e.kind) {
4054
4054
  case "observations": {
@@ -6682,7 +6682,7 @@ var pv = ({ graph: e, target: t }) => {
6682
6682
  "en-US": Av,
6683
6683
  ar: Sv,
6684
6684
  "pt-PT": Mv
6685
- }, Ov = [Ev, md], Hs = ({ children: e, ...t }) => /* @__PURE__ */ o(fd, {
6685
+ }, Ov = [Ev, vd], Hs = ({ children: e, ...t }) => /* @__PURE__ */ o(bd, {
6686
6686
  dictionaries: Ov,
6687
6687
  ...t,
6688
6688
  children: /* @__PURE__ */ o(Rv, { children: e })
@@ -6746,7 +6746,7 @@ var pv = ({ graph: e, target: t }) => {
6746
6746
  }
6747
6747
  })
6748
6748
  ], Fv = ({ placeholder: e }) => [
6749
- vn,
6749
+ mn,
6750
6750
  Gs,
6751
6751
  ...Sa(),
6752
6752
  El,
@@ -6754,7 +6754,7 @@ var pv = ({ graph: e, target: t }) => {
6754
6754
  showOnlyCurrent: !1,
6755
6755
  placeholder: ({ pos: t }) => t === 0 ? e : ""
6756
6756
  })
6757
- ], Bv = ({ showTitle: e, showSubtitle: t }) => e && t ? vn.extend({ content: "block{2,}" }) : vn, $s = () => {
6757
+ ], Bv = ({ showTitle: e, showSubtitle: t }) => e && t ? mn.extend({ content: "block{2,}" }) : mn, $s = () => {
6758
6758
  const e = R();
6759
6759
  return z(() => ({
6760
6760
  ...Object.fromEntries(Ws.map((t) => [t.color, e(`editor.canvasColors.${t.phrase}`)])),
@@ -6790,11 +6790,11 @@ var Hv = "linear-gradient(to top right, transparent calc(50% - 1px), var(--graph
6790
6790
  var $v = "d0bl03", Vv = "d0bl04", Wv = 0.01, Uv = (e) => wa.some((t) => t.toLowerCase() === e.toLowerCase()), Kv = ({ color: e, onChange: t, open: n, onOpenChange: r, children: a, label: i, popupAttributes: l, opacity: s, onOpacityChange: c, hasTransparentOption: d = !1, hasAutomaticOption: u = !1 }) => {
6791
6791
  const h = R(), { ColorSwatches: p, Slider: g } = V(), m = $s(), v = Vs(), y = [
6792
6792
  ...u ? [yt] : [],
6793
- ...d ? [fn] : [],
6793
+ ...d ? [vn] : [],
6794
6794
  ...wa
6795
6795
  ], b = {
6796
6796
  ...m,
6797
- [fn]: h("graph.colorDropdown.transparent"),
6797
+ [vn]: h("graph.colorDropdown.transparent"),
6798
6798
  [yt]: h("graph.colorDropdown.automatic")
6799
6799
  }, A = (M) => {
6800
6800
  t(M), r(!1);
@@ -6864,10 +6864,10 @@ var $v = "d0bl03", Vv = "d0bl04", Wv = 0.01, Uv = (e) => wa.some((t) => t.toLowe
6864
6864
  })]
6865
6865
  });
6866
6866
  }, jv = ({ value: e, onChange: t, popupAttributes: n }) => {
6867
- const { CustomColor: r } = V(), { themeValues: a } = Pn();
6867
+ const { CustomColor: r } = V(), { themeValues: a } = An();
6868
6868
  return /* @__PURE__ */ o(r, {
6869
6869
  variant: "chip",
6870
- value: e === null || e === yt ? null : Fd(e, a),
6870
+ value: e === null || e === yt ? null : _d(e, a),
6871
6871
  onChange: t,
6872
6872
  popupAttributes: n
6873
6873
  });
@@ -6913,12 +6913,12 @@ var $v = "d0bl03", Vv = "d0bl04", Wv = 0.01, Uv = (e) => wa.some((t) => t.toLowe
6913
6913
  ColorPicker: Kv,
6914
6914
  MenuPopup: ef,
6915
6915
  MenuItem: tf
6916
- }, lf = "'Noto Serif', Georgia, 'Times New Roman', serif, 'Apple Color Emoji', 'NotoColorEmoji'", sf = `'Aeonik', 'Aeonik Fallback', ${jr}`, cf = "'PT Mono', 'Courier New', monospace, 'Apple Color Emoji', 'NotoColorEmoji'", df = "'Intruding Cat', cursive, 'Apple Color Emoji', 'NotoColorEmoji'", Mr = [
6916
+ }, lf = "'Noto Serif', Georgia, 'Times New Roman', serif, 'Apple Color Emoji', 'NotoColorEmoji'", sf = `'Aeonik', 'Aeonik Fallback', ${Kr}`, cf = "'PT Mono', 'Courier New', monospace, 'Apple Color Emoji', 'NotoColorEmoji'", df = "'Intruding Cat', cursive, 'Apple Color Emoji', 'NotoColorEmoji'", Mr = [
6917
6917
  {
6918
6918
  id: "modern",
6919
6919
  label: "Modern",
6920
6920
  preview: "Aa",
6921
- fontFamily: jr
6921
+ fontFamily: Kr
6922
6922
  },
6923
6923
  {
6924
6924
  id: "fresh",
@@ -7381,7 +7381,7 @@ var $v = "d0bl03", Vv = "d0bl04", Wv = 0.01, Uv = (e) => wa.some((t) => t.toLowe
7381
7381
  immediatelyRender: !1,
7382
7382
  onUpdate: ({ editor: d }) => {
7383
7383
  const u = d.getJSON();
7384
- if (nr(l.current, u)) return s.cancel();
7384
+ if (tr(l.current, u)) return s.cancel();
7385
7385
  s.run(u);
7386
7386
  }
7387
7387
  });
@@ -7390,7 +7390,7 @@ var $v = "d0bl03", Vv = "d0bl04", Wv = 0.01, Uv = (e) => wa.some((t) => t.toLowe
7390
7390
  }, [c, n]), $(() => {
7391
7391
  if (!c) return;
7392
7392
  const d = Ro(e);
7393
- nr(l.current, d) || (l.current = d, !nr(c.getJSON(), d) && (s.cancel(), Bf(c, d)));
7393
+ tr(l.current, d) || (l.current = d, !tr(c.getJSON(), d) && (s.cancel(), Bf(c, d)));
7394
7394
  }, [
7395
7395
  c,
7396
7396
  e,
@@ -7416,7 +7416,7 @@ var $v = "d0bl03", Vv = "d0bl04", Wv = 0.01, Uv = (e) => wa.some((t) => t.toLowe
7416
7416
  from: Math.min(n, a),
7417
7417
  to: Math.min(r, a)
7418
7418
  });
7419
- }, nr = (e, t) => JSON.stringify(xn(e)) === JSON.stringify(xn(t)), xn = (e) => Array.isArray(e) ? e.map(xn) : e === null || typeof e != "object" ? e : Object.fromEntries(Object.entries(e).map(([t, n]) => [t, xn(n)]).filter(([, t]) => !zf(t)).sort(([t], [n]) => String(t).localeCompare(String(n)))), zf = (e) => e == null || typeof e == "object" && Object.keys(e).length === 0, Hf = ({ caption: e, captionStyle: t }) => {
7419
+ }, tr = (e, t) => JSON.stringify(Cn(e)) === JSON.stringify(Cn(t)), Cn = (e) => Array.isArray(e) ? e.map(Cn) : e === null || typeof e != "object" ? e : Object.fromEntries(Object.entries(e).map(([t, n]) => [t, Cn(n)]).filter(([, t]) => !zf(t)).sort(([t], [n]) => String(t).localeCompare(String(n)))), zf = (e) => e == null || typeof e == "object" && Object.keys(e).length === 0, Hf = ({ caption: e, captionStyle: t }) => {
7420
7420
  const { dispatch: n } = Ae(), r = Ca({
7421
7421
  content: e,
7422
7422
  extensions: z(() => Fv({ placeholder: "Add caption" }), []),
@@ -7438,9 +7438,9 @@ var $v = "d0bl03", Vv = "d0bl04", Wv = 0.01, Uv = (e) => wa.some((t) => t.toLowe
7438
7438
  var Bt = "textStyle", tc = /* @__PURE__ */ new Set(["paragraph", "heading"]), nc = (e) => lc(ac(e)?.fontSize) ?? null, rc = (e) => oc(ac(e)) ?? null, Gf = (e) => {
7439
7439
  const t = ic(e), n = Uf(e);
7440
7440
  return {
7441
- color: tn(t.map((r) => Kf(rr(r)?.color))),
7442
- font: tn(t.map((r) => oc(rr(r)))),
7443
- fontSize: tn(t.map((r) => lc(rr(r)?.fontSize))),
7441
+ color: tn(t.map((r) => Kf(nr(r)?.color))),
7442
+ font: tn(t.map((r) => oc(nr(r)))),
7443
+ fontSize: tn(t.map((r) => lc(nr(r)?.fontSize))),
7444
7444
  alignment: tn(n.map((r) => jf(r.attrs?.textAlign)))
7445
7445
  };
7446
7446
  }, $f = (e, t) => xa(e, (n) => n.type === "text" ? Wf(n, t) : n), Ot = (e) => ic(e).length > 0, Vf = (e, t) => xa(e, (n) => tc.has(n.type ?? "") ? {
@@ -7467,11 +7467,11 @@ var Bt = "textStyle", tc = /* @__PURE__ */ new Set(["paragraph", "heading"]), nc
7467
7467
  ...e,
7468
7468
  marks: r === void 0 ? [...n, a] : n.map((i) => i === r ? a : i)
7469
7469
  };
7470
- }, rr = (e) => e.marks?.find((t) => t.type === Bt)?.attrs, oc = (e) => Ha(e?.font) ?? Ha(e?.fontFamily), ic = (e) => ka(e, (t) => t.type === "text"), Uf = (e) => ka(e, (t) => tc.has(t.type ?? "")), ka = (e, t) => [...t(e) ? [e] : [], ...(e.content ?? []).flatMap((n) => ka(n, t))], tn = (e) => {
7470
+ }, nr = (e) => e.marks?.find((t) => t.type === Bt)?.attrs, oc = (e) => Ha(e?.font) ?? Ha(e?.fontFamily), ic = (e) => ka(e, (t) => t.type === "text"), Uf = (e) => ka(e, (t) => tc.has(t.type ?? "")), ka = (e, t) => [...t(e) ? [e] : [], ...(e.content ?? []).flatMap((n) => ka(n, t))], tn = (e) => {
7471
7471
  const [t, ...n] = e;
7472
7472
  return t === void 0 ? null : n.every((r) => r === t) ? t : null;
7473
7473
  }, Kf = (e) => typeof e == "string" && e.length > 0 ? e : void 0, lc = (e) => typeof e == "number" && Number.isFinite(e) ? e : void 0, jf = (e) => e === "left" || e === "center" || e === "right" ? e : void 0, Xf = (e) => [
7474
- vn,
7474
+ mn,
7475
7475
  Ol,
7476
7476
  ...Sa(),
7477
7477
  Yf,
@@ -7507,7 +7507,7 @@ var Bt = "textStyle", tc = /* @__PURE__ */ new Set(["paragraph", "heading"]), nc
7507
7507
  });
7508
7508
  return /* @__PURE__ */ o(Rl, {
7509
7509
  "aria-label": t("graph.annotations.text.editLabel"),
7510
- className: Dd,
7510
+ className: Nd,
7511
7511
  editor: i,
7512
7512
  style: {
7513
7513
  ...l === null ? {} : { fontSize: `calc(${l}px * ${we.textScale})` },
@@ -7661,7 +7661,7 @@ var Bt = "textStyle", tc = /* @__PURE__ */ new Set(["paragraph", "heading"]), nc
7661
7661
  Title: null,
7662
7662
  Caption: null,
7663
7663
  TextAnnotation: sc.TextAnnotation
7664
- }, c2 = (e) => Ee[e ?? hn.readonly].editTextInline ? sc : s2, d2 = "_10igzta0", u2 = ({ rect: e, zIndex: t, container: n, boxRef: r, children: a, ...i }) => n === null ? null : ca(/* @__PURE__ */ o("div", {
7664
+ }, c2 = (e) => Ee[e].editTextInline ? sc : s2, d2 = "_10igzta0", u2 = ({ rect: e, zIndex: t, container: n, boxRef: r, children: a, ...i }) => n === null ? null : ca(/* @__PURE__ */ o("div", {
7665
7665
  ...i,
7666
7666
  ref: r,
7667
7667
  className: d2,
@@ -7698,7 +7698,7 @@ var Bt = "textStyle", tc = /* @__PURE__ */ new Set(["paragraph", "heading"]), nc
7698
7698
  return $(() => {
7699
7699
  t(!0);
7700
7700
  }, []), e;
7701
- }, f2 = (e) => Ad.some((t) => t === e), _o = (e, t, n) => n === 0 ? 0 : e * t / n, b2 = {
7701
+ }, f2 = (e) => qd.some((t) => t === e), _o = (e, t, n) => n === 0 ? 0 : e * t / n, b2 = {
7702
7702
  x: 8,
7703
7703
  y: 8
7704
7704
  }, y2 = {
@@ -7706,7 +7706,7 @@ var Bt = "textStyle", tc = /* @__PURE__ */ new Set(["paragraph", "heading"]), nc
7706
7706
  align: "shift",
7707
7707
  fallbackAxisSide: "end"
7708
7708
  }, dc = ({ frameElement: e, boundary: t, spans: n, clearance: r = b2, onEscape: a, children: i }) => {
7709
- const l = zn(), s = v2(), [c, d] = ae(null), u = Q(null), h = ge((T) => {
7709
+ const l = Bn(), s = v2(), [c, d] = ae(null), u = Q(null), h = ge((T) => {
7710
7710
  u.current = T, d(T);
7711
7711
  }, []), p = Q(null);
7712
7712
  tt(() => () => {
@@ -7765,14 +7765,14 @@ var Bt = "textStyle", tc = /* @__PURE__ */ new Set(["paragraph", "heading"]), nc
7765
7765
  })
7766
7766
  });
7767
7767
  }, S2 = (e) => e !== null && getComputedStyle(e).direction === "rtl", w2 = 2, uc = () => {
7768
- const e = R(), t = te(), n = Nd();
7768
+ const e = R(), t = te(), n = Rd();
7769
7769
  return ({ annotationId: r, anchorX: a, align: i, panelWidth: l, minWidth: s, paddingInline: c, pickedFontSize: d = null, pickedFont: u = null }) => {
7770
7770
  if (l <= 0) return s;
7771
7771
  const h = t.annotation.text(r).resolve(), p = t.graph().get("textScale"), g = d === null ? h.fontSize : d * p, m = Wr(u) ?? h.fontFamily, v = (n.measureText(e("graph.annotations.text.placeholder"), Gh({
7772
7772
  ...h,
7773
7773
  fontSize: g,
7774
7774
  fontFamily: m
7775
- }, jr)).width + (c ?? h.paddingInline) * 2 + w2) / l;
7775
+ }, Kr)).width + (c ?? h.paddingInline) * 2 + w2) / l;
7776
7776
  return Math.max(s, Math.min(v, C2(a, ea(i).x)));
7777
7777
  };
7778
7778
  }, C2 = (e, t) => {
@@ -7793,12 +7793,12 @@ var Bt = "textStyle", tc = /* @__PURE__ */ new Set(["paragraph", "heading"]), nc
7793
7793
  const { axis: a } = e, i = a === "ySecondary" ? r.axes.find((l) => l.scaledAesthetic === "ySecondary")?.visible : n.axes[a].visible;
7794
7794
  return i === void 0 ? null : {
7795
7795
  hidden: !i,
7796
- hide: new pn({
7796
+ hide: new hn({
7797
7797
  axis: a,
7798
7798
  visible: !1,
7799
7799
  keepSecondaryAxis: !0
7800
7800
  }),
7801
- show: new pn({
7801
+ show: new hn({
7802
7802
  axis: a,
7803
7803
  visible: !0,
7804
7804
  keepSecondaryAxis: !0
@@ -7904,7 +7904,7 @@ var Bt = "textStyle", tc = /* @__PURE__ */ new Set(["paragraph", "heading"]), nc
7904
7904
  const [t] = e;
7905
7905
  return t?.kind === "annotation" ? t.id : null;
7906
7906
  }, A2 = (e) => {
7907
- const { selectionStore: t, commands: n, chartId: r, history: a, store: i, anchorResolver: l } = X(), { store: s, engine: c, overlayRef: d } = We(), u = Tt(), h = le(), p = me(G((P) => P.spec.annotations.textAnnotations)), g = Q(null), m = Q(null), v = Q(!0), y = Q(/* @__PURE__ */ new WeakSet()), { showAnnotations: b, showMenuTriggerOnHover: A } = Ee[Te()], C = ge((P) => {
7907
+ const { selectionStore: t, commands: n, chartId: r, history: a, store: i, anchorResolver: l } = X(), { store: s, engine: c, overlayRef: d } = Ve(), u = Tt(), h = le(), p = me(G((P) => P.spec.annotations.textAnnotations)), g = Q(null), m = Q(null), v = Q(!0), y = Q(/* @__PURE__ */ new WeakSet()), { showAnnotations: b, showMenuTriggerOnHover: A } = Ee[Ce()], C = ge((P) => {
7908
7908
  const { selection: M } = t.getState(), I = b ? Or(M) : null;
7909
7909
  I !== null && (P.preventDefault(), n.dispatch(new Ze({ id: I })), e.focus({ preventScroll: !0 }));
7910
7910
  }, [
@@ -7944,7 +7944,7 @@ var Bt = "textStyle", tc = /* @__PURE__ */ new Set(["paragraph", "heading"]), nc
7944
7944
  ]);
7945
7945
  $(() => {
7946
7946
  const P = (w) => {
7947
- if (!ft(w.target, e, r) || bn(w.target)) return;
7947
+ if (!ft(w.target, e, r) || fn(w.target)) return;
7948
7948
  const x = Ct(w.target), S = h.getState(), O = S.caret !== null && !Nt(w.target, r);
7949
7949
  if (x && !O) return;
7950
7950
  const W = () => A && w.target === e && !x && !w.metaKey && !w.ctrlKey && !w.altKey && !w.shiftKey && S.standingInteraction === null && t.getState().selection.length === 0, se = () => {
@@ -8052,7 +8052,7 @@ var Bt = "textStyle", tc = /* @__PURE__ */ new Set(["paragraph", "heading"]), nc
8052
8052
  }, L2 = (e, t, n, r) => {
8053
8053
  const a = I2(t.primary, n, r);
8054
8054
  if (a !== null) {
8055
- const i = e.query(a, { tolerance: Di });
8055
+ const i = e.query(a, { tolerance: _i });
8056
8056
  if (dn(vt(i.primary), vt(t.primary))) return {
8057
8057
  primary: i.primary,
8058
8058
  group: [...i.group],
@@ -8199,7 +8199,7 @@ var R2 = "_1vbfegu3", Ut = {
8199
8199
  $(() => () => Lt(a), [a]), $(() => {
8200
8200
  if (!y && !b) return;
8201
8201
  const w = (x) => {
8202
- if (x.key !== "Escape" || !ft(x.target, e, l) || bn(x.target)) return;
8202
+ if (x.key !== "Escape" || !ft(x.target, e, l) || fn(x.target)) return;
8203
8203
  const S = Ct(x.target), O = a.getState().caret !== null && !Nt(x.target, l);
8204
8204
  if (S && !O) return;
8205
8205
  const W = a.getState().standingInteraction?.kind;
@@ -8256,14 +8256,14 @@ var R2 = "_1vbfegu3", Ut = {
8256
8256
  });
8257
8257
  }, F = () => {
8258
8258
  const w = a.getState().standingInteraction?.kind;
8259
- if ((w === "arrow-draw" || w === "box-draw") && !bn(document.activeElement)) {
8259
+ if ((w === "arrow-draw" || w === "box-draw") && !fn(document.activeElement)) {
8260
8260
  a.getState().releaseInteraction(w);
8261
8261
  return;
8262
8262
  }
8263
8263
  C();
8264
8264
  }, _ = (w) => {
8265
8265
  Lt(a);
8266
- const x = new xe({
8266
+ const x = new ke({
8267
8267
  kind: "text",
8268
8268
  annotation: {
8269
8269
  ...vr,
@@ -8282,7 +8282,7 @@ var R2 = "_1vbfegu3", Ut = {
8282
8282
  panelWidth: t.width,
8283
8283
  minWidth: Bo,
8284
8284
  paddingInline: w === null ? void 0 : zo.paddingInline
8285
- }), W = new xe({
8285
+ }), W = new ke({
8286
8286
  kind: "text",
8287
8287
  annotation: {
8288
8288
  ...x.params.annotation,
@@ -8307,7 +8307,7 @@ var R2 = "_1vbfegu3", Ut = {
8307
8307
  id: S
8308
8308
  }]), a.getState().setCaret(S, s.stack.getSnapshot().undoStack.at(-1)?.id ?? null), a.getState().setPlotMenu(null);
8309
8309
  }, D = (w) => {
8310
- i.dispatch(new xe({
8310
+ i.dispatch(new ke({
8311
8311
  kind: "sticker",
8312
8312
  annotation: {
8313
8313
  at: {
@@ -8474,15 +8474,15 @@ var R2 = "_1vbfegu3", Ut = {
8474
8474
  const { panelRect: n, look: r, readGridLineWidth: a } = t, i = Kt(r);
8475
8475
  switch (e.kind) {
8476
8476
  case "observations":
8477
- return ar([...e.parts, ...e.vertex === null ? [] : [e.vertex]].flatMap((l) => X2(l, t, i)).map((l) => ({
8477
+ return rr([...e.parts, ...e.vertex === null ? [] : [e.vertex]].flatMap((l) => X2(l, t, i)).map((l) => ({
8478
8478
  ...l,
8479
8479
  x: l.x + n.x,
8480
8480
  y: l.y + n.y
8481
8481
  })), 0);
8482
8482
  case "guide":
8483
- return ar(e.shapes.map((l) => l.kind === "box" ? l.rect : ot(J2(l), a(l.axis) / 2)), i);
8483
+ return rr(e.shapes.map((l) => l.kind === "box" ? l.rect : ot(J2(l), a(l.axis) / 2)), i);
8484
8484
  case "graph":
8485
- return ar([{
8485
+ return rr([{
8486
8486
  x: 0,
8487
8487
  y: 0,
8488
8488
  ...e.frameSize
@@ -8491,7 +8491,7 @@ var R2 = "_1vbfegu3", Ut = {
8491
8491
  return e;
8492
8492
  }
8493
8493
  }, X2 = (e, { measurePathBox: t, coordSystem: n, panelRect: r }, a) => {
8494
- const i = Y2(e, t).map((s) => ot(s, a)), l = Ld(rh(e.layer, n), r);
8494
+ const i = Y2(e, t).map((s) => ot(s, a)), l = Pd(rh(e.layer, n), r);
8495
8495
  return i.flatMap((s) => q2(s, l));
8496
8496
  }, q2 = (e, t) => {
8497
8497
  const n = Math.max(e.x, t.x), r = Math.max(e.y, t.y), a = Math.min(e.x + e.width, t.x + t.width), i = Math.min(e.y + e.height, t.y + t.height);
@@ -8540,7 +8540,7 @@ var R2 = "_1vbfegu3", Ut = {
8540
8540
  height: e.radius * 2
8541
8541
  };
8542
8542
  }
8543
- }, ar = (e, t) => {
8543
+ }, rr = (e, t) => {
8544
8544
  const n = e.filter(({ width: r, height: a }) => r > 0 || a > 0);
8545
8545
  return n.length === 0 ? null : ot(br(n), t);
8546
8546
  };
@@ -8590,7 +8590,7 @@ var Q2 = (e, { coordSystem: t, panelRect: n }) => {
8590
8590
  return g.from < g.to ? g : p;
8591
8591
  }, a0 = (e) => {
8592
8592
  const [t] = e;
8593
- return t !== void 0 && e.some((n) => !bd(n, t));
8593
+ return t !== void 0 && e.some((n) => !md(n, t));
8594
8594
  }, Rr = (e) => ({
8595
8595
  from: e.x,
8596
8596
  to: e.x + e.width
@@ -8715,7 +8715,7 @@ var Q2 = (e, { coordSystem: t, panelRect: n }) => {
8715
8715
  e
8716
8716
  ]);
8717
8717
  }, gc = () => {
8718
- const { showMenuTriggerOnHover: e } = Ee[Te()], t = G(Le((i) => ({
8718
+ const { showMenuTriggerOnHover: e } = Ee[Ce()], t = G(Le((i) => ({
8719
8719
  layers: i.layers,
8720
8720
  coordSystem: i.coordSystem,
8721
8721
  parsingLocale: i.config.parsingLocale
@@ -8936,21 +8936,21 @@ var Wo = (e, t) => {
8936
8936
  switch (t.kind) {
8937
8937
  case "axis": {
8938
8938
  const s = i.map(l);
8939
- return n === "polar" || s.length === 0 ? or(s) : or([br(s)]);
8939
+ return n === "polar" || s.length === 0 ? ar(s) : ar([br(s)]);
8940
8940
  }
8941
8941
  case "legend":
8942
- return or([...k0(i.filter((s) => !T0(s)))].flatMap(([s, c]) => r[s] === "direct" ? c.map(l) : [br(c.map(l))]));
8942
+ return ar([...k0(i.filter((s) => !T0(s)))].flatMap(([s, c]) => r[s] === "direct" ? c.map(l) : [br(c.map(l))]));
8943
8943
  case "grid":
8944
8944
  return i.flatMap((s) => {
8945
- const c = An([s], e);
8945
+ const c = Tn([s], e);
8946
8946
  if (c?.kind !== "grid" || c.target.axis === "both") return [];
8947
8947
  const { axis: d } = c.target;
8948
8948
  return t.axis === "both" || d === t.axis ? [A0(s, l(s), d)] : [];
8949
8949
  });
8950
8950
  }
8951
8951
  }, x0 = (e) => {
8952
- const t = `[${hr}="${e.kind}"]`;
8953
- return e.kind !== "axis" ? t : `${t}[${vd}="${e.axis}"]`;
8952
+ const t = `[${ur}="${e.kind}"]`;
8953
+ return e.kind !== "axis" ? t : `${t}[${fd}="${e.axis}"]`;
8954
8954
  }, k0 = (e) => {
8955
8955
  const t = /* @__PURE__ */ new Map();
8956
8956
  for (const n of e) {
@@ -8958,7 +8958,7 @@ var Wo = (e, t) => {
8958
8958
  r !== null && t.set(r.legendIndex, [...t.get(r.legendIndex) ?? [], n]);
8959
8959
  }
8960
8960
  return t;
8961
- }, T0 = (e) => e.closest(Ii) !== null, or = (e) => e.map((t) => ({
8961
+ }, T0 = (e) => e.closest(Ii) !== null, ar = (e) => e.map((t) => ({
8962
8962
  kind: "box",
8963
8963
  rect: t
8964
8964
  })), A0 = (e, { x: t, y: n, width: r, height: a }, i) => e.querySelector("circle") !== null ? {
@@ -9170,14 +9170,14 @@ var Wo = (e, t) => {
9170
9170
  };
9171
9171
  }
9172
9172
  }, R0 = ["x", "y"], N0 = Pl(function({ frameElement: t, frameSize: n, panelRect: r }) {
9173
- const a = Ud(Bh, te()), i = g0(), l = y0(i?.outlined ?? null), { selectObservationsOnPress: s, selectGraphOnPress: c, selectGuidesOnPress: d } = Ee[Te()], u = v0(), h = s || c || d, p = h ? l : u;
9173
+ const a = Wd(Bh, te()), i = g0(), l = y0(i?.outlined ?? null), { selectObservationsOnPress: s, selectGraphOnPress: c, selectGuidesOnPress: d } = Ee[Ce()], u = v0(), h = s || c || d, p = h ? l : u;
9174
9174
  if (i === null && p === null) return null;
9175
9175
  const g = {
9176
9176
  frameElement: t,
9177
9177
  frameSize: n,
9178
9178
  panelRect: r
9179
9179
  };
9180
- return !h && i !== null && i.target.kind !== "observations" ? /* @__PURE__ */ o(ir, {
9180
+ return !h && i !== null && i.target.kind !== "observations" ? /* @__PURE__ */ o(or, {
9181
9181
  part: "selected",
9182
9182
  target: i.outlined,
9183
9183
  editTarget: i.target,
@@ -9190,13 +9190,13 @@ var Wo = (e, t) => {
9190
9190
  height: n.height,
9191
9191
  "aria-hidden": !0,
9192
9192
  "data-testid": "edit-outline",
9193
- children: [p !== null && /* @__PURE__ */ o(ir, {
9193
+ children: [p !== null && /* @__PURE__ */ o(or, {
9194
9194
  part: "hover",
9195
9195
  target: p,
9196
9196
  look: a.hover,
9197
9197
  paints: !0,
9198
9198
  ...g
9199
- }, p.key), i !== null && /* @__PURE__ */ o(ir, {
9199
+ }, p.key), i !== null && /* @__PURE__ */ o(or, {
9200
9200
  part: "selected",
9201
9201
  target: i.outlined,
9202
9202
  editTarget: i.target,
@@ -9205,7 +9205,7 @@ var Wo = (e, t) => {
9205
9205
  ...g
9206
9206
  }, i.outlined.key)]
9207
9207
  });
9208
- }), ir = ({ part: e, target: t, editTarget: n, look: r, frameSize: a, panelRect: i, frameElement: l, paints: s }) => {
9208
+ }), or = ({ part: e, target: t, editTarget: n, look: r, frameSize: a, panelRect: i, frameElement: l, paints: s }) => {
9209
9209
  const c = Ge(), d = `${c}-shapes`, u = `${c}-hole`, h = I0(t, {
9210
9210
  frameElement: l,
9211
9211
  frameSize: a,
@@ -9407,7 +9407,7 @@ var Wo = (e, t) => {
9407
9407
  height: n.height,
9408
9408
  overflow: "visible",
9409
9409
  children: /* @__PURE__ */ o("line", {
9410
- ...$d(r, i, n),
9410
+ ...Gd(r, i, n),
9411
9411
  stroke: t.stroke,
9412
9412
  strokeOpacity: t.strokeAlpha,
9413
9413
  strokeWidth: t.strokeWidth,
@@ -9547,7 +9547,7 @@ var Wo = (e, t) => {
9547
9547
  xValue: q0,
9548
9548
  group: Y0
9549
9549
  }, J0 = () => {
9550
- const { selectionStore: e } = X(), t = le(), n = R(), r = Ln(), a = G((y) => y), i = $n(a, r), l = Z((y) => y.pressedObservation), s = Tt(), c = z(() => Q0({
9550
+ const { selectionStore: e } = X(), t = le(), n = R(), r = Pn(), a = G((y) => y), i = Gn(a, r), l = Z((y) => y.pressedObservation), s = Tt(), c = z(() => Q0({
9551
9551
  scene: a,
9552
9552
  pressed: l,
9553
9553
  groupOptions: i,
@@ -9589,7 +9589,7 @@ var Wo = (e, t) => {
9589
9589
  ariaLabel: n("editor.overlayMenu.selection")
9590
9590
  });
9591
9591
  }, Q0 = ({ scene: e, pressed: t, groupOptions: n, locale: r, t: a, hasOverlayMenu: i }) => {
9592
- const l = t === null ? null : jd(t, e.layers, e.config.parsingLocale);
9592
+ const l = t === null ? null : Kd(t, e.layers, e.config.parsingLocale);
9593
9593
  if (t === null || l === null) return null;
9594
9594
  const { layer: s, observation: c } = l, { observationIndex: d, selectedFor: u } = t, { parsingLocale: h } = e.config, p = Eh({
9595
9595
  layer: s,
@@ -9725,7 +9725,7 @@ var Wo = (e, t) => {
9725
9725
  return e;
9726
9726
  }
9727
9727
  }, pb = ({ target: e }) => {
9728
- const t = R(), n = Ln(), r = G((l) => l), a = $n(r, n), i = z(() => mb({
9728
+ const t = R(), n = Pn(), r = G((l) => l), a = Gn(r, n), i = z(() => mb({
9729
9729
  target: e,
9730
9730
  scene: r,
9731
9731
  groupOptions: a,
@@ -9781,7 +9781,7 @@ var Wo = (e, t) => {
9781
9781
  t: a
9782
9782
  }, e.scope);
9783
9783
  }, vb = ({ frameElement: e }) => {
9784
- const { selectionStore: t } = X(), n = fb(Z((u) => u.selectedOutline)), r = Z((u) => u.annotatePress), a = Ee[Te()].showMenuTriggerOnHover, i = mv(n?.target ?? null), l = Tt(), s = n === null ? null : Gt(n.target), c = z(() => a && s !== null ? ob(r, s) : null, [
9784
+ const { selectionStore: t } = X(), n = fb(Z((u) => u.selectedOutline)), r = Z((u) => u.annotatePress), a = Ee[Ce()].showMenuTriggerOnHover, i = mv(n?.target ?? null), l = Tt(), s = n === null ? null : Gt(n.target), c = z(() => a && s !== null ? ob(r, s) : null, [
9785
9785
  a,
9786
9786
  r,
9787
9787
  s
@@ -9868,7 +9868,7 @@ var Wo = (e, t) => {
9868
9868
  sourceAlign: null,
9869
9869
  point: et(t, n),
9870
9870
  nearby: []
9871
- }), yc = (e, t) => Fn(e, t), Sb = (e, t) => {
9871
+ }), yc = (e, t) => _n(e, t), Sb = (e, t) => {
9872
9872
  const n = et(e, t);
9873
9873
  return {
9874
9874
  x: t.x + n.x,
@@ -9882,9 +9882,9 @@ var Wo = (e, t) => {
9882
9882
  width: Math.abs(a.x - r.x),
9883
9883
  height: Math.abs(a.y - r.y)
9884
9884
  };
9885
- }, Xo = (e, t, n, r) => !Number.isFinite(t) || !Number.isFinite(e) ? 0 : wt(t, Math.min(n - e, 0), Math.max(r - e, 0)), Vn = ({ stroke: e, strokeAlpha: t }) => `color-mix(in srgb, ${e} ${t * 100}%, transparent)`, Sc = (e, t, n, r) => {
9885
+ }, Xo = (e, t, n, r) => !Number.isFinite(t) || !Number.isFinite(e) ? 0 : wt(t, Math.min(n - e, 0), Math.max(r - e, 0)), $n = ({ stroke: e, strokeAlpha: t }) => `color-mix(in srgb, ${e} ${t * 100}%, transparent)`, Sc = (e, t, n, r) => {
9886
9886
  const a = e.textAnnotations.find((i) => i.id === t);
9887
- return a === void 0 ? null : cd(Rd(a, n), r);
9887
+ return a === void 0 ? null : cd(Od(a, n), r);
9888
9888
  }, Cb = "var(--_1am0al60)";
9889
9889
  var xb = "_1am0al61", kb = "_1am0al62", pe = (e, t) => t > 0 ? e / t : 0, wc = (e, t) => e.width <= 0 || e.height <= 0 || t.width <= 0 || t.height <= 0 ? Xi : {
9890
9890
  minX: Math.min(0, -e.x / e.width),
@@ -9906,7 +9906,7 @@ var xb = "_1am0al61", kb = "_1am0al62", pe = (e, t) => t > 0 ? e / t : 0, wc = (
9906
9906
  x: e.x * t.width,
9907
9907
  y: e.y * t.height
9908
9908
  }), Ab = ({ panelRect: e }) => {
9909
- const t = Ve(e), n = In(), r = te(), a = Wt(), i = Z((v) => J(v, "move-drag")), l = Z((v) => J(v, "shape-resize-drag")), s = Z((v) => J(v, "arrow-endpoint-drag")), c = Z((v) => J(v, "text-resize-drag")), d = Z(Od), u = {
9909
+ const t = We(e), n = Ln(), r = te(), a = Wt(), i = Z((v) => J(v, "move-drag")), l = Z((v) => J(v, "shape-resize-drag")), s = Z((v) => J(v, "arrow-endpoint-drag")), c = Z((v) => J(v, "text-resize-drag")), d = Z(Ed), u = {
9910
9910
  panel: {
9911
9911
  width: e.width,
9912
9912
  height: e.height
@@ -9952,7 +9952,7 @@ var xb = "_1am0al61", kb = "_1am0al62", pe = (e, t) => t > 0 ? e / t : 0, wc = (
9952
9952
  }, Yo = ({ annotationId: e, geometry: t, state: n, origin: r }) => {
9953
9953
  const a = te();
9954
9954
  if (t === null) return null;
9955
- const i = a.editOutline[n === "hovered" ? "hover" : "selected"]().resolve(), l = Be({ [Cb]: Vn(i) });
9955
+ const i = a.editOutline[n === "hovered" ? "hover" : "selected"]().resolve(), l = Be({ [Cb]: $n(i) });
9956
9956
  return t.shape === "segment" ? /* @__PURE__ */ f("div", {
9957
9957
  "aria-hidden": "true",
9958
9958
  "data-testid": "annotation-chrome",
@@ -9987,7 +9987,7 @@ var xb = "_1am0al61", kb = "_1am0al62", pe = (e, t) => t > 0 ? e / t : 0, wc = (
9987
9987
  top: t.y + e.y
9988
9988
  }
9989
9989
  }), Ra = "c44vv80", Pb = ({ panelRect: e }) => {
9990
- const t = Z((a) => J(a, "move-drag")), n = Ve(e);
9990
+ const t = Z((a) => J(a, "move-drag")), n = We(e);
9991
9991
  if (t === null) return null;
9992
9992
  const r = xc(t.translation, e);
9993
9993
  return /* @__PURE__ */ o("svg", {
@@ -10004,8 +10004,8 @@ var xb = "_1am0al61", kb = "_1am0al62", pe = (e, t) => t > 0 ? e / t : 0, wc = (
10004
10004
  children: Mb(n, t.annotationId, e)
10005
10005
  });
10006
10006
  }, Lb = ({ annotation: e, panelSize: t }) => {
10007
- const n = zd(e.id);
10008
- return /* @__PURE__ */ o(qd, {
10007
+ const n = Bd(e.id);
10008
+ return /* @__PURE__ */ o(Xd, {
10009
10009
  annotation: e,
10010
10010
  panel: t,
10011
10011
  style: Tl(te(), e.id),
@@ -10057,7 +10057,7 @@ var xb = "_1am0al61", kb = "_1am0al62", pe = (e, t) => t > 0 ? e / t : 0, wc = (
10057
10057
  shape: e,
10058
10058
  style: te().annotation.shape(e.id).resolve(),
10059
10059
  panel: t
10060
- }), Rb = ({ sticker: e, panelSize: t }) => /* @__PURE__ */ o(Md, {
10060
+ }), Rb = ({ sticker: e, panelSize: t }) => /* @__PURE__ */ o(Id, {
10061
10061
  sticker: e,
10062
10062
  panel: t,
10063
10063
  textScale: te().graph().get("textScale")
@@ -10095,7 +10095,7 @@ var xb = "_1am0al61", kb = "_1am0al62", pe = (e, t) => t > 0 ? e / t : 0, wc = (
10095
10095
  cy: u.y,
10096
10096
  r: r.size / 2,
10097
10097
  fill: "none",
10098
- ...lr(r),
10098
+ ...ir(r),
10099
10099
  strokeOpacity: m
10100
10100
  }, g);
10101
10101
  }),
@@ -10129,7 +10129,7 @@ var xb = "_1am0al61", kb = "_1am0al62", pe = (e, t) => t > 0 ? e / t : 0, wc = (
10129
10129
  cy: e.point.y,
10130
10130
  r: l.size / 2,
10131
10131
  fill: "none",
10132
- ...lr(l)
10132
+ ...ir(l)
10133
10133
  })
10134
10134
  ]
10135
10135
  }),
@@ -10140,7 +10140,7 @@ var xb = "_1am0al61", kb = "_1am0al62", pe = (e, t) => t > 0 ? e / t : 0, wc = (
10140
10140
  y1: e.targetPoint.y,
10141
10141
  x2: e.point.x,
10142
10142
  y2: e.point.y,
10143
- ...lr(s)
10143
+ ...ir(s)
10144
10144
  }), /* @__PURE__ */ o("circle", {
10145
10145
  cx: e.targetPoint.x,
10146
10146
  cy: e.targetPoint.y,
@@ -10152,13 +10152,13 @@ var xb = "_1am0al61", kb = "_1am0al62", pe = (e, t) => t > 0 ? e / t : 0, wc = (
10152
10152
  })
10153
10153
  ]
10154
10154
  });
10155
- }, lr = (e) => ({
10155
+ }, ir = (e) => ({
10156
10156
  stroke: e.stroke,
10157
10157
  strokeOpacity: e.alpha,
10158
10158
  strokeWidth: e.strokeWidth,
10159
10159
  strokeDasharray: sa(e.dashArray, e.strokeWidth)
10160
10160
  }), Bb = (e) => e.target.type === "observation" ? e.target.box : e.target.rect, zb = (e) => e.target.type === "observation" ? String(e.target.point.anchor.anchorValue) : e.target.id, Hb = ({ panelRect: e }) => {
10161
- const t = Z((s) => J(s, "arrow-endpoint-drag")), n = Ve(e).arrows, r = te();
10161
+ const t = Z((s) => J(s, "arrow-endpoint-drag")), n = We(e).arrows, r = te();
10162
10162
  if (t === null) return null;
10163
10163
  const a = n.find((s) => s.id === t.annotationId);
10164
10164
  if (a === void 0) return null;
@@ -10240,7 +10240,7 @@ var xb = "_1am0al61", kb = "_1am0al62", pe = (e, t) => t > 0 ? e / t : 0, wc = (
10240
10240
  })
10241
10241
  ]
10242
10242
  })
10243
- }), Wn = (e) => /* @__PURE__ */ o(E, {
10243
+ }), Vn = (e) => /* @__PURE__ */ o(E, {
10244
10244
  ...e,
10245
10245
  children: /* @__PURE__ */ f("g", {
10246
10246
  stroke: "currentColor",
@@ -10280,7 +10280,7 @@ var xb = "_1am0al61", kb = "_1am0al62", pe = (e, t) => t > 0 ? e / t : 0, wc = (
10280
10280
  "aria-label": a,
10281
10281
  className: Kb,
10282
10282
  "data-testid": i,
10283
- ...Bn(s),
10283
+ ...Fn(s),
10284
10284
  style: Be({
10285
10285
  [Vb]: `${c.centre}px`,
10286
10286
  [Wb]: `${c.available}px`
@@ -10302,7 +10302,7 @@ var xb = "_1am0al61", kb = "_1am0al62", pe = (e, t) => t > 0 ? e / t : 0, wc = (
10302
10302
  onMouseDown: (s) => s.preventDefault(),
10303
10303
  children: [t, /* @__PURE__ */ o($t, { size: "sm" })]
10304
10304
  }), /* @__PURE__ */ o(ue.MenuPopup, {
10305
- popupAttributes: Bn(l),
10305
+ popupAttributes: Fn(l),
10306
10306
  children: i
10307
10307
  })]
10308
10308
  });
@@ -10310,7 +10310,7 @@ var xb = "_1am0al61", kb = "_1am0al62", pe = (e, t) => t > 0 ? e / t : 0, wc = (
10310
10310
  const { chartId: t } = X();
10311
10311
  return /* @__PURE__ */ o(ue.ColorPicker, {
10312
10312
  ...e,
10313
- popupAttributes: Bn(t)
10313
+ popupAttributes: Fn(t)
10314
10314
  });
10315
10315
  }, ty = ({ color: e, opacity: t }) => /* @__PURE__ */ o("span", {
10316
10316
  className: jb,
@@ -10336,7 +10336,7 @@ var xb = "_1am0al61", kb = "_1am0al62", pe = (e, t) => t > 0 ? e / t : 0, wc = (
10336
10336
  ToggleButton: ry,
10337
10337
  Button: ue.Button,
10338
10338
  Separator: ue.Separator
10339
- }, ay = { kind: "chrome-popup" }, Un = () => {
10339
+ }, ay = { kind: "chrome-popup" }, Wn = () => {
10340
10340
  const { commands: e } = X(), t = le(), [n, r] = ae(null);
10341
10341
  $(() => () => e.commit(), [e]), $(() => {
10342
10342
  const { claimInteraction: i, releaseInteraction: l } = t.getState();
@@ -10388,15 +10388,15 @@ var xb = "_1am0al61", kb = "_1am0al62", pe = (e, t) => t > 0 ? e / t : 0, wc = (
10388
10388
  })
10389
10389
  }), sy = [
10390
10390
  {
10391
- value: qn.thin,
10391
+ value: Xn.thin,
10392
10392
  key: "graph.annotations.arrowToolbar.thickness.thin"
10393
10393
  },
10394
10394
  {
10395
- value: qn.medium,
10395
+ value: Xn.medium,
10396
10396
  key: "graph.annotations.arrowToolbar.thickness.medium"
10397
10397
  },
10398
10398
  {
10399
- value: qn.thick,
10399
+ value: Xn.thick,
10400
10400
  key: "graph.annotations.arrowToolbar.thickness.thick"
10401
10401
  }
10402
10402
  ], Jo = [{
@@ -10425,7 +10425,7 @@ var xb = "_1am0al61", kb = "_1am0al62", pe = (e, t) => t > 0 ? e / t : 0, wc = (
10425
10425
  }
10426
10426
  ], cy = (e, t) => e.find((n) => n.value === t) ?? e[0];
10427
10427
  var dy = ({ arrow: e, arrowBox: t, panelRect: n, frameWidth: r, frameHeight: a, frameElement: i }) => {
10428
- const l = R(), { commands: s } = X(), c = G((D) => D.spec.styles.overrides), d = G((D) => Ie(D.spec)), u = Un(), h = la(te(), e.id), p = cy(Qo, ct(h.dashArray)), g = h.outline.strokeWidth > 0 || h.outline.shadow !== "none", m = z(() => ({
10428
+ const l = R(), { commands: s } = X(), c = G((D) => D.spec.styles.overrides), d = G((D) => Ie(D.spec)), u = Wn(), h = la(te(), e.id), p = cy(Qo, ct(h.dashArray)), g = h.outline.strokeWidth > 0 || h.outline.shadow !== "none", m = z(() => ({
10429
10429
  target: "annotation",
10430
10430
  kind: "arrow",
10431
10431
  annotation: e.id
@@ -10550,7 +10550,7 @@ var dy = ({ arrow: e, arrowBox: t, panelRect: n, frameWidth: r, frameHeight: a,
10550
10550
  /* @__PURE__ */ o(K.IconButton, {
10551
10551
  label: l("graph.annotations.arrowToolbar.remove"),
10552
10552
  onClick: T,
10553
- children: /* @__PURE__ */ o(Wn, {
10553
+ children: /* @__PURE__ */ o(Vn, {
10554
10554
  size: "sm",
10555
10555
  title: ""
10556
10556
  })
@@ -10658,7 +10658,7 @@ var hy = (e, t) => Math.hypot(t.x - e.x, t.y - e.y) >= 3, jt = class {
10658
10658
  const s = oa(l, n, r);
10659
10659
  s !== null && a.push({
10660
10660
  id: i,
10661
- rect: mn(s, n)
10661
+ rect: gn(s, n)
10662
10662
  });
10663
10663
  }
10664
10664
  return a;
@@ -10670,7 +10670,7 @@ var hy = (e, t) => Math.hypot(t.x - e.x, t.y - e.y) >= 3, jt = class {
10670
10670
  };
10671
10671
  }, my = (e, t) => {
10672
10672
  const n = e.sourceAlign ?? t.align;
10673
- return n === t.align && Fn(e.anchor, t.at) ? null : {
10673
+ return n === t.align && _n(e.anchor, t.at) ? null : {
10674
10674
  at: e.anchor,
10675
10675
  align: n
10676
10676
  };
@@ -10679,7 +10679,7 @@ var hy = (e, t) => Math.hypot(t.x - e.x, t.y - e.y) >= 3, jt = class {
10679
10679
  super(...e), this.kind = "move-drag";
10680
10680
  }
10681
10681
  readOwn(e) {
10682
- return Mn(J(e, "move-drag"), this.params.annotationId);
10682
+ return In(J(e, "move-drag"), this.params.annotationId);
10683
10683
  }
10684
10684
  resolvePreview(e, t) {
10685
10685
  const { annotationId: n, press: r, readInputs: a } = this.params, i = a(), l = Ja(i.spec, n);
@@ -10707,7 +10707,7 @@ var hy = (e, t) => Math.hypot(t.x - e.x, t.y - e.y) >= 3, jt = class {
10707
10707
  }
10708
10708
  if (t !== void 0 && c.kind === "sticker") {
10709
10709
  const { anchor: d } = _r(t, i, n, l);
10710
- if (Fn(d, c.annotation.at)) return;
10710
+ if (_n(d, c.annotation.at)) return;
10711
10711
  r(new Se({
10712
10712
  kind: "sticker",
10713
10713
  id: n,
@@ -10756,7 +10756,7 @@ var hy = (e, t) => Math.hypot(t.x - e.x, t.y - e.y) >= 3, jt = class {
10756
10756
  annotation: d
10757
10757
  }, s, c);
10758
10758
  if (u === null) return null;
10759
- const h = mn(u, s), p = {
10759
+ const h = gn(u, s), p = {
10760
10760
  x: t.x - i.x,
10761
10761
  y: t.y - i.y
10762
10762
  }, g = this.resolvePlacement(py(h, e.align, p), ia(h, e.align), Dr(e.at, e.align, d.at, s), n, r, { targetAligns: Ac });
@@ -10829,7 +10829,7 @@ var hy = (e, t) => Math.hypot(t.x - e.x, t.y - e.y) >= 3, jt = class {
10829
10829
  if (!("align" in e) || e.align !== "auto") return s;
10830
10830
  if (e.anchorType === "annotation") {
10831
10831
  const h = fl(n).get(e.ref), p = h === void 0 ? null : oa(h, r, a);
10832
- return p === null ? s : mn(p, r);
10832
+ return p === null ? s : gn(p, r);
10833
10833
  }
10834
10834
  const { observationIndex: c } = t, { layerId: d } = e;
10835
10835
  if (c === void 0 || d === void 0) return s;
@@ -10837,12 +10837,12 @@ var hy = (e, t) => Math.hypot(t.x - e.x, t.y - e.y) >= 3, jt = class {
10837
10837
  layerId: d,
10838
10838
  observationIndex: c
10839
10839
  });
10840
- return u === null ? s : mn(u, r);
10840
+ return u === null ? s : gn(u, r);
10841
10841
  }, by = (e, t) => {
10842
10842
  if (t === null) return !1;
10843
10843
  if (e.anchorType === "observation" && t.anchorType === "observation") {
10844
10844
  const n = t.layerId ?? e.layerId;
10845
- return On({
10845
+ return En({
10846
10846
  ...e,
10847
10847
  align: void 0
10848
10848
  }, {
@@ -10927,11 +10927,11 @@ var hy = (e, t) => Math.hypot(t.x - e.x, t.y - e.y) >= 3, jt = class {
10927
10927
  }));
10928
10928
  }
10929
10929
  }, Sy = ({ annotationId: e, arrow: t, panelRect: n, frameElement: r }) => {
10930
- const { commands: a, anchorResolver: i } = X(), { engine: l } = We(), s = le(), c = G(Le((m) => ({
10930
+ const { commands: a, anchorResolver: i } = X(), { engine: l } = Ve(), s = le(), c = G(Le((m) => ({
10931
10931
  spec: m.spec.annotations,
10932
10932
  layers: m.layers,
10933
10933
  coordSystem: m.coordSystem
10934
- }))), d = Ve(n), u = In(), h = Wi(n), p = me({
10934
+ }))), d = We(n), u = Ln(), h = Wi(n), p = me({
10935
10935
  ...c,
10936
10936
  arrow: t,
10937
10937
  scene: d,
@@ -11136,7 +11136,7 @@ var hy = (e, t) => Math.hypot(t.x - e.x, t.y - e.y) >= 3, jt = class {
11136
11136
  const t = G((n) => n.spec.annotations.arrows);
11137
11137
  return e === null ? null : t.find((n) => n.id === e) ?? null;
11138
11138
  }, Ly = (e, t) => {
11139
- const n = Ve(e).arrows;
11139
+ const n = We(e).arrows;
11140
11140
  return t === null ? null : n.find((r) => r.id === t) ?? null;
11141
11141
  }, Iy = (e) => Z(Le((t) => {
11142
11142
  if (e === null) return {
@@ -11146,7 +11146,7 @@ var hy = (e, t) => Math.hypot(t.x - e.x, t.y - e.y) >= 3, jt = class {
11146
11146
  const n = J(t, "arrow-endpoint-drag");
11147
11147
  return {
11148
11148
  dragged: n?.annotationId === e ? n : null,
11149
- moving: Mn(J(t, "move-drag"), e) !== null
11149
+ moving: In(J(t, "move-drag"), e) !== null
11150
11150
  };
11151
11151
  })), My = (e) => /* @__PURE__ */ o(E, {
11152
11152
  ...e,
@@ -11198,7 +11198,7 @@ var Ny = [
11198
11198
  key: "graph.annotations.differenceArrowToolbar.size.large"
11199
11199
  }
11200
11200
  ], By = ({ arrow: e, color: t, labelBox: n, panelRect: r, frameWidth: a, frameHeight: i, frameElement: l }) => {
11201
- const s = R(), { commands: c } = X(), d = G((w) => w.spec.styles.overrides), u = G((w) => Ie(w.spec)), h = Un(), p = Fy(e), g = Fh(te(), e.id), m = z(() => ({
11201
+ const s = R(), { commands: c } = X(), d = G((w) => w.spec.styles.overrides), u = G((w) => Ie(w.spec)), h = Wn(), p = Fy(e), g = Fh(te(), e.id), m = z(() => ({
11202
11202
  target: "annotation",
11203
11203
  kind: "differenceArrow",
11204
11204
  annotation: e.id
@@ -11300,7 +11300,7 @@ var Ny = [
11300
11300
  /* @__PURE__ */ o(K.IconButton, {
11301
11301
  label: s("graph.annotations.differenceArrowToolbar.remove"),
11302
11302
  onClick: M,
11303
- children: /* @__PURE__ */ o(Wn, {
11303
+ children: /* @__PURE__ */ o(Vn, {
11304
11304
  size: "sm",
11305
11305
  title: ""
11306
11306
  })
@@ -11337,12 +11337,12 @@ var Hy = "ydgo3h1", Gy = "ydgo3h2", $y = "ydgo3h3", Vy = "ydgo3h4", Wy = ({ clie
11337
11337
  coordSystem: i,
11338
11338
  align: c
11339
11339
  });
11340
- return p === null || On(p.anchor, s) || Hu(h, p.anchor, s) ? null : p;
11340
+ return p === null || En(p.anchor, s) || Hu(h, p.anchor, s) ? null : p;
11341
11341
  }, Uy = (e, t) => ({
11342
11342
  x: Math.max(0, Math.min(e.x, t.width)),
11343
11343
  y: Math.max(0, Math.min(e.y, t.height))
11344
11344
  }), Ec = (e) => e === "start" ? "end" : "start", Oc = ({ dispatch: e, arrow: t, endpoint: n, anchor: r }) => {
11345
- On(r, t[n].anchor) || e(new Se({
11345
+ En(r, t[n].anchor) || e(new Se({
11346
11346
  kind: "differenceArrow",
11347
11347
  id: t.id,
11348
11348
  patch: { [n]: r }
@@ -11384,7 +11384,7 @@ var Hy = "ydgo3h1", Gy = "ydgo3h2", $y = "ydgo3h3", Vy = "ydgo3h4", Wy = ({ clie
11384
11384
  });
11385
11385
  }
11386
11386
  }, jy = ({ arrow: e, panelOrigin: t, panelRect: n, onClick: r }) => {
11387
- const { commands: a, anchorResolver: i } = X(), { engine: l } = We(), s = le(), c = me({
11387
+ const { commands: a, anchorResolver: i } = X(), { engine: l } = Ve(), s = le(), c = me({
11388
11388
  arrow: e,
11389
11389
  panelOrigin: t,
11390
11390
  panelRect: n,
@@ -11512,7 +11512,7 @@ var Hy = "ydgo3h1", Gy = "ydgo3h2", $y = "ydgo3h3", Vy = "ydgo3h4", Wy = ({ clie
11512
11512
  })
11513
11513
  })?.point ?? null;
11514
11514
  }, Jy = (e) => {
11515
- const t = Wt(), n = _i(), r = ge((a) => {
11515
+ const t = Wt(), n = Di(), r = ge((a) => {
11516
11516
  const i = e.frameElement.querySelector('[data-testid="pointer-capture-layer"]');
11517
11517
  i !== null && i.dispatchEvent(new PointerEvent("pointerdown", {
11518
11518
  bubbles: !0,
@@ -11539,7 +11539,7 @@ var Hy = "ydgo3h1", Gy = "ydgo3h2", $y = "ydgo3h3", Vy = "ydgo3h4", Wy = ({ clie
11539
11539
  }, a.id))]
11540
11540
  });
11541
11541
  }, Qy = ({ annotationId: e, panelOrigin: t, ...n }) => {
11542
- const r = _i(), a = z(() => r.find((i) => i.id === e), [r, e]);
11542
+ const r = Di(), a = z(() => r.find((i) => i.id === e), [r, e]);
11543
11543
  return a === void 0 ? null : /* @__PURE__ */ o(e5, {
11544
11544
  committedArrow: a.committedArrow,
11545
11545
  color: a.color,
@@ -11550,7 +11550,7 @@ var Hy = "ydgo3h1", Gy = "ydgo3h2", $y = "ydgo3h3", Vy = "ydgo3h4", Wy = ({ clie
11550
11550
  ...n
11551
11551
  });
11552
11552
  }, e5 = ({ committedArrow: e, color: t, labelCornerRadius: n, committedLabelBox: r, labelBox: a, panelRect: i, frameRect: l, frameElement: s, dragging: c }) => {
11553
- const d = Vn(te().editOutline.selected().resolve());
11553
+ const d = $n(te().editOutline.selected().resolve());
11554
11554
  return /* @__PURE__ */ f("div", {
11555
11555
  "data-testid": "difference-arrow-selection",
11556
11556
  style: Be({ [Mc]: d }),
@@ -11571,7 +11571,7 @@ var Hy = "ydgo3h1", Gy = "ydgo3h2", $y = "ydgo3h3", Vy = "ydgo3h4", Wy = ({ clie
11571
11571
  top: i.y + a.y - 2,
11572
11572
  width: a.width + 4,
11573
11573
  height: a.height + 4,
11574
- borderRadius: Gd(n, 2)
11574
+ borderRadius: Hd(n, 2)
11575
11575
  }
11576
11576
  })]
11577
11577
  });
@@ -11593,7 +11593,7 @@ var Hy = "ydgo3h1", Gy = "ydgo3h2", $y = "ydgo3h3", Vy = "ydgo3h4", Wy = ({ clie
11593
11593
  panelOrigin: a,
11594
11594
  panelRect: r,
11595
11595
  onClick: i
11596
- }), u = qy({ arrow: e.committedArrow }), h = Vn(te().editOutline.selected().resolve());
11596
+ }), u = qy({ arrow: e.committedArrow }), h = $n(te().editOutline.selected().resolve());
11597
11597
  return /* @__PURE__ */ f("div", {
11598
11598
  style: Be({ [Mc]: h }),
11599
11599
  children: [/* @__PURE__ */ o(ai, {
@@ -11673,7 +11673,7 @@ var Hy = "ydgo3h1", Gy = "ydgo3h2", $y = "ydgo3h3", Vy = "ydgo3h4", Wy = ({ clie
11673
11673
  })
11674
11674
  });
11675
11675
  }, ii = (e, t, n) => Math.min(Math.max(e, t), n), a5 = ({ panelRect: e }) => {
11676
- const t = Z((i) => J(i, "shape-resize-drag")), n = Ve(e).shapes, r = te();
11676
+ const t = Z((i) => J(i, "shape-resize-drag")), n = We(e).shapes, r = te();
11677
11677
  if (t === null) return null;
11678
11678
  const a = n.find((i) => i.id === t.annotationId);
11679
11679
  return a === void 0 ? null : /* @__PURE__ */ o("svg", {
@@ -11704,7 +11704,7 @@ var Hy = "ydgo3h1", Gy = "ydgo3h2", $y = "ydgo3h3", Vy = "ydgo3h4", Wy = ({ clie
11704
11704
  diagonalDown: "o49ib44",
11705
11705
  diagonalUp: "o49ib45"
11706
11706
  }, Rc = ({ point: e, label: t, pull: n, size: r, attributes: a, dragHandlers: i, keyboardHandlers: l }) => {
11707
- const s = Vn(te().editOutline.selected().resolve());
11707
+ const s = $n(te().editOutline.selected().resolve());
11708
11708
  return /* @__PURE__ */ o("div", {
11709
11709
  "aria-label": t,
11710
11710
  className: l5[n],
@@ -11741,7 +11741,7 @@ var Hy = "ydgo3h1", Gy = "ydgo3h2", $y = "ydgo3h3", Vy = "ydgo3h4", Wy = ({ clie
11741
11741
  key: "graph.annotations.shapeToolbar.border.thick"
11742
11742
  }
11743
11743
  ], s5 = (e) => [...Fr].reverse().find((t) => t.width <= e) ?? Fr[0], c5 = ({ shape: e, shapeBox: t, panelRect: n, frameWidth: r, frameHeight: a, frameElement: i }) => {
11744
- const l = R(), { commands: s } = X(), c = G((C) => C.spec.styles.overrides), d = G((C) => Ie(C.spec)), u = Un(), h = te().annotation.shape(e.id).resolve(), p = s5(h.strokeWidth), g = z(() => ({
11744
+ const l = R(), { commands: s } = X(), c = G((C) => C.spec.styles.overrides), d = G((C) => Ie(C.spec)), u = Wn(), h = te().annotation.shape(e.id).resolve(), p = s5(h.strokeWidth), g = z(() => ({
11745
11745
  target: "annotation",
11746
11746
  kind: "shape",
11747
11747
  annotation: e.id
@@ -11799,7 +11799,7 @@ var Hy = "ydgo3h1", Gy = "ydgo3h2", $y = "ydgo3h3", Vy = "ydgo3h4", Wy = ({ clie
11799
11799
  /* @__PURE__ */ o(K.IconButton, {
11800
11800
  label: l("graph.annotations.shapeToolbar.remove"),
11801
11801
  onClick: v,
11802
- children: /* @__PURE__ */ o(Wn, {
11802
+ children: /* @__PURE__ */ o(Vn, {
11803
11803
  size: "sm",
11804
11804
  title: ""
11805
11805
  })
@@ -11888,7 +11888,7 @@ var Nc = ({ width: e, height: t }) => ({
11888
11888
  });
11889
11889
  n.current = i, i.start();
11890
11890
  } }), [t]);
11891
- }, kn = (e, t) => {
11891
+ }, xn = (e, t) => {
11892
11892
  const n = e.shapes.find((r) => r.id === t);
11893
11893
  return n === void 0 || n.region.anchorType !== "panel" ? null : n.region;
11894
11894
  }, h5 = class extends jt {
@@ -11899,7 +11899,7 @@ var Nc = ({ width: e, height: t }) => ({
11899
11899
  return Xr(J(e, "shape-resize-drag"), this.params.annotationId);
11900
11900
  }
11901
11901
  resolvePreview(e) {
11902
- const { annotationId: t, corner: n, press: r, readInputs: a } = this.params, { annotations: i, panelRect: l, frameElement: s } = a(), c = kn(i, t);
11902
+ const { annotationId: t, corner: n, press: r, readInputs: a } = this.params, { annotations: i, panelRect: l, frameElement: s } = a(), c = xn(i, t);
11903
11903
  return c === null ? null : {
11904
11904
  kind: "shape-resize-drag",
11905
11905
  annotationId: t,
@@ -11913,7 +11913,7 @@ var Nc = ({ width: e, height: t }) => ({
11913
11913
  };
11914
11914
  }
11915
11915
  commit({ region: e }) {
11916
- const { annotationId: t, dispatch: n, readInputs: r } = this.params, a = kn(r().annotations, t);
11916
+ const { annotationId: t, dispatch: n, readInputs: r } = this.params, a = xn(r().annotations, t);
11917
11917
  a === null || _c(a, e) || n(new Se({
11918
11918
  kind: "shape",
11919
11919
  id: t,
@@ -11962,7 +11962,7 @@ var Nc = ({ width: e, height: t }) => ({
11962
11962
  return Hc({
11963
11963
  readHeld: () => Xr(J(a.getState(), "shape-resize-drag"), e),
11964
11964
  claim: () => {
11965
- const l = kn(i, e);
11965
+ const l = xn(i, e);
11966
11966
  return l === null ? null : {
11967
11967
  kind: "shape-resize-drag",
11968
11968
  annotationId: e,
@@ -11984,7 +11984,7 @@ var Nc = ({ width: e, height: t }) => ({
11984
11984
  };
11985
11985
  },
11986
11986
  commit: ({ region: l }) => {
11987
- const s = kn(i, e);
11987
+ const s = xn(i, e);
11988
11988
  s === null || _c(s, l) || r.dispatch(new Se({
11989
11989
  kind: "shape",
11990
11990
  id: e,
@@ -12081,7 +12081,7 @@ var Nc = ({ width: e, height: t }) => ({
12081
12081
  moving: !1
12082
12082
  } : {
12083
12083
  resizedRegion: Xr(J(t, "shape-resize-drag"), e)?.region ?? null,
12084
- moving: Mn(J(t, "move-drag"), e) !== null
12084
+ moving: In(J(t, "move-drag"), e) !== null
12085
12085
  })), C5 = ({ textColor: e, ...t }) => /* @__PURE__ */ f(E, {
12086
12086
  ...t,
12087
12087
  children: [/* @__PURE__ */ f("g", {
@@ -12161,13 +12161,13 @@ var $c = [
12161
12161
  Icon: Js
12162
12162
  }
12163
12163
  ], P5 = ({ annotation: e, textBox: t, panelRect: n, frameWidth: r, frameHeight: a, frameElement: i }) => {
12164
- const l = R(), { commands: s } = X(), c = G((N) => N.spec.styles.overrides), d = G((N) => Ie(N.spec)), u = le(), h = Un(), p = uc(), g = Tl(te(), e.id), m = Gf(e.content), v = Z((N) => N.caret?.editor ?? null), y = Dt({
12164
+ const l = R(), { commands: s } = X(), c = G((N) => N.spec.styles.overrides), d = G((N) => Ie(N.spec)), u = le(), h = Wn(), p = uc(), g = Tl(te(), e.id), m = Gf(e.content), v = Z((N) => N.caret?.editor ?? null), y = Dt({
12165
12165
  editor: v,
12166
12166
  selector: () => nc(v)
12167
12167
  }), b = Dt({
12168
12168
  editor: v,
12169
12169
  selector: () => rc(v)
12170
- }), A = x5(m.font ?? b), C = k5(m.fontSize ?? y), T = Wd(g), k = m.color ?? T, P = z(() => ({
12170
+ }), A = x5(m.font ?? b), C = k5(m.fontSize ?? y), T = Vd(g), k = m.color ?? T, P = z(() => ({
12171
12171
  target: "annotation",
12172
12172
  kind: "text",
12173
12173
  annotation: e.id
@@ -12198,7 +12198,7 @@ var $c = [
12198
12198
  I({ content: $f(q, N) }, U);
12199
12199
  }, D = () => {
12200
12200
  s.dispatch(new Ze({ id: e.id })), i.focus({ preventScroll: !0 });
12201
- }, w = (N) => M(L5(N), { transient: !0 }), x = (N) => M({ fillAlpha: N }, { transient: !0 }), S = g.fill !== fn, O = (N) => _({ color: N === yt ? void 0 : N }, { transient: !0 }), W = (N) => () => {
12201
+ }, w = (N) => M(L5(N), { transient: !0 }), x = (N) => M({ fillAlpha: N }, { transient: !0 }), S = g.fill !== vn, O = (N) => _({ color: N === yt ? void 0 : N }, { transient: !0 }), W = (N) => () => {
12202
12202
  Ot(F()) || ye({ font: N }), _({ font: N }), h.close();
12203
12203
  }, se = (N) => () => {
12204
12204
  Ot(F()) || ye({ fontSize: N }), _({ fontSize: N }), h.close();
@@ -12293,14 +12293,14 @@ var $c = [
12293
12293
  /* @__PURE__ */ o(K.IconButton, {
12294
12294
  label: l("graph.annotations.textToolbar.remove"),
12295
12295
  onClick: D,
12296
- children: /* @__PURE__ */ o(Wn, {
12296
+ children: /* @__PURE__ */ o(Vn, {
12297
12297
  size: "sm",
12298
12298
  title: ""
12299
12299
  })
12300
12300
  })
12301
12301
  ]
12302
12302
  });
12303
- }, L5 = (e) => e === "transparent" ? { fill: fn } : {
12303
+ }, L5 = (e) => e === "transparent" ? { fill: vn } : {
12304
12304
  fill: e,
12305
12305
  fillAlpha: Uv(e) ? Fu : 1
12306
12306
  }, I5 = ({ current: e, onPick: t }) => {
@@ -12343,7 +12343,7 @@ var Vc = ({ width: e }) => pe(60, e), E5 = (e, t) => ({
12343
12343
  width: u.extent,
12344
12344
  shift: h - e.x
12345
12345
  };
12346
- }, Uc = (e, t) => e.at.x === t.at.x && e.width === t.width, O5 = (e, t) => e?.x === void 0 ? 0 : e.unit === "px" ? pe(e.x, t) : e.x, Tn = (e, t) => {
12346
+ }, Uc = (e, t) => e.at.x === t.at.x && e.width === t.width, O5 = (e, t) => e?.x === void 0 ? 0 : e.unit === "px" ? pe(e.x, t) : e.x, kn = (e, t) => {
12347
12347
  const n = e.textAnnotations.find((r) => r.id === t);
12348
12348
  return n === void 0 || n.at.anchorType !== "panel" ? null : {
12349
12349
  at: n.at,
@@ -12355,10 +12355,10 @@ var Vc = ({ width: e }) => pe(60, e), E5 = (e, t) => ({
12355
12355
  super(...e), this.kind = "text-resize-drag";
12356
12356
  }
12357
12357
  readOwn(e) {
12358
- return Kr(J(e, "text-resize-drag"), this.params.annotationId);
12358
+ return Ur(J(e, "text-resize-drag"), this.params.annotationId);
12359
12359
  }
12360
12360
  resolvePreview(e) {
12361
- const { annotationId: t, edge: n, press: r, readInputs: a } = this.params, { annotations: i, panelRect: l, frameElement: s } = a(), c = Tn(i, t);
12361
+ const { annotationId: t, edge: n, press: r, readInputs: a } = this.params, { annotations: i, panelRect: l, frameElement: s } = a(), c = kn(i, t);
12362
12362
  if (c === null) return null;
12363
12363
  const d = Oa(r, e, l).x;
12364
12364
  return {
@@ -12376,7 +12376,7 @@ var Vc = ({ width: e }) => pe(60, e), E5 = (e, t) => ({
12376
12376
  };
12377
12377
  }
12378
12378
  commit(e) {
12379
- const { annotationId: t, dispatch: n, readInputs: r } = this.params, a = Tn(r().annotations, t);
12379
+ const { annotationId: t, dispatch: n, readInputs: r } = this.params, a = kn(r().annotations, t);
12380
12380
  a === null || Uc(a, e) || n(new Se({
12381
12381
  kind: "text",
12382
12382
  id: t,
@@ -12402,7 +12402,7 @@ var Vc = ({ width: e }) => pe(60, e), E5 = (e, t) => ({
12402
12402
  }));
12403
12403
  }, D5 = 4, _5 = ({ annotationId: e, panelRect: t, frameElement: n }) => {
12404
12404
  const { commands: r } = X(), a = le(), i = G((s) => s.spec.annotations), l = (s, c) => {
12405
- const d = Tn(i, e);
12405
+ const d = kn(i, e);
12406
12406
  return d === null ? null : {
12407
12407
  kind: "text-resize-drag",
12408
12408
  annotationId: e,
@@ -12418,14 +12418,14 @@ var Vc = ({ width: e }) => pe(60, e), E5 = (e, t) => ({
12418
12418
  };
12419
12419
  };
12420
12420
  return Hc({
12421
- readHeld: () => Kr(J(a.getState(), "text-resize-drag"), e),
12421
+ readHeld: () => Ur(J(a.getState(), "text-resize-drag"), e),
12422
12422
  claim: (s) => l(s, 0),
12423
12423
  step: (s, c, d) => {
12424
12424
  const u = F5(d, t);
12425
12425
  return u === null ? null : l(c, s.delta + u);
12426
12426
  },
12427
12427
  commit: (s) => {
12428
- const c = Tn(i, e);
12428
+ const c = kn(i, e);
12429
12429
  c === null || Uc(c, s) || r.dispatch(new Se({
12430
12430
  kind: "text",
12431
12431
  id: e,
@@ -12503,10 +12503,10 @@ var Vc = ({ width: e }) => pe(60, e), E5 = (e, t) => ({
12503
12503
  resized: null,
12504
12504
  moving: !1
12505
12505
  } : {
12506
- resized: Kr(J(t, "text-resize-drag"), e),
12507
- moving: Mn(J(t, "move-drag"), e) !== null
12506
+ resized: Ur(J(t, "text-resize-drag"), e),
12507
+ moving: In(J(t, "move-drag"), e) !== null
12508
12508
  })), $5 = (e, t, n) => {
12509
- const r = Ve(e), a = In(), i = te(), l = z(() => ({
12509
+ const r = We(e), a = Ln(), i = te(), l = z(() => ({
12510
12510
  panel: {
12511
12511
  width: e.width,
12512
12512
  height: e.height
@@ -12520,7 +12520,7 @@ var Vc = ({ width: e }) => pe(60, e), E5 = (e, t) => ({
12520
12520
  i
12521
12521
  ]);
12522
12522
  return t === null ? null : Sc(r, t, n, l)?.rect ?? null;
12523
- }, Da = (e, t) => typeof document.elementsFromPoint == "function" ? document.elementsFromPoint(e, t) : [], V5 = (e, t, n) => An(Da(e, t), n), W5 = "_1rpuha50";
12523
+ }, Da = (e, t) => typeof document.elementsFromPoint == "function" ? document.elementsFromPoint(e, t) : [], V5 = (e, t, n) => Tn(Da(e, t), n), W5 = "_1rpuha50";
12524
12524
  var ci = [
12525
12525
  "pointerdown",
12526
12526
  "mousedown",
@@ -12528,7 +12528,7 @@ var ci = [
12528
12528
  "mouseup",
12529
12529
  "click"
12530
12530
  ], Kc = (e) => e instanceof Element && e.closest("[data-menu-shield]") !== null, U5 = () => {
12531
- const e = Z((s) => s.plotMenu !== null), t = Z((s) => X5(s.standingInteraction?.kind)), n = ut()[0]?.kind === "observations", r = Ee[Te()].showMenuTriggerOnHover, { store: a } = We(), i = r && !t && (e || n), l = Q(null);
12531
+ const e = Z((s) => s.plotMenu !== null), t = Z((s) => X5(s.standingInteraction?.kind)), n = ut()[0]?.kind === "observations", r = Ee[Ce()].showMenuTriggerOnHover, { store: a } = Ve(), i = r && !t && (e || n), l = Q(null);
12532
12532
  return $(() => {
12533
12533
  if (!i) return;
12534
12534
  const s = a.getState();
@@ -12563,7 +12563,7 @@ var ci = [
12563
12563
  $(() => {
12564
12564
  if (t === null) return;
12565
12565
  const a = (i) => {
12566
- if (i.key !== "Tab" || i.defaultPrevented || !ft(i.target, e, n) || bn(i.target) || r.getState().standingInteraction?.kind === "chrome-popup") return;
12566
+ if (i.key !== "Tab" || i.defaultPrevented || !ft(i.target, e, n) || fn(i.target) || r.getState().standingInteraction?.kind === "chrome-popup") return;
12567
12567
  const l = [...t.querySelectorAll(q5)];
12568
12568
  if (l.length === 0) return;
12569
12569
  i.preventDefault();
@@ -12728,7 +12728,7 @@ var ci = [
12728
12728
  stamped: null,
12729
12729
  elements: []
12730
12730
  };
12731
- const c = e || r ? Da(n.clientX, n.clientY) : n.target instanceof Element ? [n.target] : [], d = An(c, i);
12731
+ const c = e || r ? Da(n.clientX, n.clientY) : n.target instanceof Element ? [n.target] : [], d = Tn(c, i);
12732
12732
  return d === null ? {
12733
12733
  stamped: null,
12734
12734
  elements: c
@@ -12752,7 +12752,7 @@ var ci = [
12752
12752
  x: e.x - t.left,
12753
12753
  y: e.y - t.top
12754
12754
  }, { primary: s, intersection: c } = n.query(ht(l, t), {
12755
- tolerance: Di,
12755
+ tolerance: _i,
12756
12756
  viewport: {
12757
12757
  width: t.width,
12758
12758
  height: t.height
@@ -12883,12 +12883,12 @@ var ci = [
12883
12883
  kind: "select-observations",
12884
12884
  target: e,
12885
12885
  observationIndex: n ? t : null
12886
- }, v3 = `[${Hd}], [${hr}="axis"], [${hr}="legend"]`, f3 = (e, t, n, r) => {
12887
- const { commands: a, history: i, selectionStore: l, store: s, anchorResolver: c } = X(), { engine: d } = We(), u = le(), h = G(Le((M) => ({
12886
+ }, v3 = `[${zd}], [${ur}="axis"], [${ur}="legend"]`, f3 = (e, t, n, r) => {
12887
+ const { commands: a, history: i, selectionStore: l, store: s, anchorResolver: c } = X(), { engine: d } = Ve(), u = le(), h = G(Le((M) => ({
12888
12888
  spec: M.spec.annotations,
12889
12889
  layers: M.layers,
12890
12890
  coordSystem: M.coordSystem
12891
- }))), p = Ve(t), g = In(), m = Wi(t), v = Te(), { selectGraphOnPress: y } = Ee[v], b = me(y), A = me(v === hn.annotate), C = me(v === hn.annotate), T = me({
12891
+ }))), p = We(t), g = Ln(), m = Wi(t), v = Ce(), { selectGraphOnPress: y } = Ee[v], b = me(y), A = me(v === hr.annotate), C = me(v === hr.annotate), T = me({
12892
12892
  ...h,
12893
12893
  scene: p,
12894
12894
  panelRect: t,
@@ -12907,7 +12907,7 @@ var ci = [
12907
12907
  }, n()).targetAtPoint, I = (x) => {
12908
12908
  if (!(x.target instanceof Element)) return !1;
12909
12909
  const S = x.target.closest(Ii);
12910
- return S !== null && e.contains(S) && An([x.target], e) === null;
12910
+ return S !== null && e.contains(S) && Tn([x.target], e) === null;
12911
12911
  }, F = (x, S) => {
12912
12912
  if (P.current !== null || !id(T.current.spec, S.id)) return;
12913
12913
  try {
@@ -12996,7 +12996,7 @@ var ci = [
12996
12996
  start: W.start
12997
12997
  });
12998
12998
  if (fe === null) return;
12999
- a.dispatch(new xe({
12999
+ a.dispatch(new ke({
13000
13000
  kind: "arrow",
13001
13001
  annotation: {
13002
13002
  ...Ui,
@@ -13020,18 +13020,18 @@ var ci = [
13020
13020
  se("box-draw");
13021
13021
  return;
13022
13022
  }
13023
- const H = Ed(ce, j, ye);
13024
- if (H === null || j === null || Id(W.start, H, j)) return;
13025
- a.dispatch(new xe({
13023
+ const H = Md(ce, j, ye);
13024
+ if (H === null || j === null || Ld(W.start, H, j)) return;
13025
+ a.dispatch(new ke({
13026
13026
  kind: "shape",
13027
13027
  annotation: {
13028
13028
  ...qi,
13029
- region: Vd(W.start, H)
13029
+ region: $d(W.start, H)
13030
13030
  }
13031
13031
  })), u.getState().releaseInteraction("box-draw"), u.getState().setPlotMenu(null);
13032
13032
  return;
13033
13033
  }
13034
- if (u.getState().setPlotMenu(null), I(x) || ur(x.target, e)) return;
13034
+ if (u.getState().setPlotMenu(null), I(x) || dr(x.target, e)) return;
13035
13035
  const N = n(), U = zr({
13036
13036
  target: x.target,
13037
13037
  clientX: x.clientX,
@@ -13098,7 +13098,7 @@ var ci = [
13098
13098
  }
13099
13099
  u.getState().setCaret(null), _(x, re);
13100
13100
  }, w = (x) => {
13101
- if (wr(x.target) || I(x) || ur(x.target, e)) return;
13101
+ if (wr(x.target) || I(x) || dr(x.target, e)) return;
13102
13102
  const S = M(x), { layers: O, guides: W, config: se } = s.getState().scene, { hasOverlayMenu: ye } = n(), ne = l.getState(), N = u.getState();
13103
13103
  switch (S?.kind) {
13104
13104
  case "observations": {
@@ -13155,7 +13155,7 @@ var ci = [
13155
13155
  c
13156
13156
  ]);
13157
13157
  }, b3 = (e, t) => Ct(e) || vi(e) || t.some(vi), vi = (e) => e instanceof Element && e.closest(v3) !== null, y3 = (e) => {
13158
- const { store: t } = X(), { engine: n, overlayRef: r } = We(), { showAnnotations: a, selectObservationsOnPress: i, selectGuidesOnPress: l, hoverTolerance: s } = Ee[Te()], { waitingForView: c } = Ei(), d = Tt(), u = i && !c;
13158
+ const { store: t } = X(), { engine: n, overlayRef: r } = Ve(), { showAnnotations: a, selectObservationsOnPress: i, selectGuidesOnPress: l, hoverTolerance: s } = Ee[Ce()], { waitingForView: c } = Ei(), d = Tt(), u = i && !c;
13159
13159
  return ge(() => ({
13160
13160
  frameElement: e,
13161
13161
  captureRect: r.current,
@@ -13185,7 +13185,7 @@ var ci = [
13185
13185
  isOpen: !0
13186
13186
  }, [e, t]);
13187
13187
  }, C3 = (e, t) => e.x >= 0 && e.x <= t.width && e.y >= 0 && e.y <= t.height, x3 = (e, t, n) => {
13188
- const { selectionStore: r } = X(), { store: a, engine: i } = We(), l = me(e), s = me(t), c = me(n);
13188
+ const { selectionStore: r } = X(), { store: a, engine: i } = Ve(), l = me(e), s = me(t), c = me(n);
13189
13189
  $(() => {
13190
13190
  const d = (g) => {
13191
13191
  if (r.getState().selection.length > 0) return;
@@ -13214,7 +13214,7 @@ var ci = [
13214
13214
  c
13215
13215
  ]);
13216
13216
  }, k3 = (e, t) => {
13217
- const n = le(), { store: r } = X(), { store: a } = We(), { selectObservationsOnPress: i } = Ee[Te()];
13217
+ const n = le(), { store: r } = X(), { store: a } = Ve(), { selectObservationsOnPress: i } = Ee[Ce()];
13218
13218
  $(() => (a.getState().setEditorOwnsQuery(i), () => a.getState().setEditorOwnsQuery(!1)), [a, i]), $(() => {
13219
13219
  let l = null, s = null, c = !1;
13220
13220
  const d = (A) => {
@@ -13228,7 +13228,7 @@ var ci = [
13228
13228
  if (c && (c = !1, s = {
13229
13229
  ...s,
13230
13230
  target: T3(s)
13231
- }), ur(s.target, e)) {
13231
+ }), dr(s.target, e)) {
13232
13232
  A.setEditTargetUnderPointer(null);
13233
13233
  return;
13234
13234
  }
@@ -13279,7 +13279,7 @@ var ci = [
13279
13279
  return !1;
13280
13280
  }
13281
13281
  }, A3 = (e, t, n, r, a) => {
13282
- const i = w3(), { store: l } = We(), s = ut().length > 0, { freezeHoverWhileSelected: c } = Ee[Te()], d = y3(e);
13282
+ const i = w3(), { store: l } = Ve(), s = ut().length > 0, { freezeHoverWhileSelected: c } = Ee[Ce()], d = y3(e);
13283
13283
  k3(e, d), f3(e, n, d, a), x3(i, t, n), Z5(e), A2(e), Y5(e, r);
13284
13284
  const u = s && c;
13285
13285
  $(() => (l.getState().setSuspendsHover(u), () => l.getState().setSuspendsHover(!1)), [l, u]), $(() => {
@@ -13319,7 +13319,7 @@ var ci = [
13319
13319
  p,
13320
13320
  d
13321
13321
  ]);
13322
- const m = Z((b) => b.caret?.annotationId ?? null), v = Te(), y = Q(v);
13322
+ const m = Z((b) => b.caret?.annotationId ?? null), v = Ce(), y = Q(v);
13323
13323
  return $(() => (r(e), () => r(null)), [r, e]), $(() => () => {
13324
13324
  u.current();
13325
13325
  const b = d.getState();
@@ -13343,7 +13343,7 @@ var ci = [
13343
13343
  formattedAxes: n
13344
13344
  })] });
13345
13345
  }, L3 = ({ annotationId: e, panelRect: t }) => {
13346
- const n = le(), { textAnnotations: r } = Ve(t);
13346
+ const n = le(), { textAnnotations: r } = We(t);
13347
13347
  return $(() => {
13348
13348
  r.some(({ id: a }) => a === e) || n.getState().setCaret(null);
13349
13349
  }, [
@@ -13369,7 +13369,7 @@ var ci = [
13369
13369
  boxRef: l
13370
13370
  });
13371
13371
  }, M3 = ({ frameElement: e, frameRect: t, panelOrigin: n, panelRect: r, boxRef: a }) => {
13372
- const i = zn(), { showAnnotations: l } = Ee[Te()];
13372
+ const i = Bn(), { showAnnotations: l } = Ee[Ce()];
13373
13373
  return /* @__PURE__ */ f(Y, { children: [
13374
13374
  /* @__PURE__ */ o(N0, {
13375
13375
  frameElement: e,
@@ -13382,7 +13382,7 @@ var ci = [
13382
13382
  /* @__PURE__ */ o(bb, { frameRect: t }),
13383
13383
  /* @__PURE__ */ o(u2, {
13384
13384
  rect: t,
13385
- zIndex: Bd.editorOverlay,
13385
+ zIndex: Fd.editorOverlay,
13386
13386
  container: i,
13387
13387
  "data-testid": "editor-overlay",
13388
13388
  boxRef: a,
@@ -13428,23 +13428,22 @@ var ci = [
13428
13428
  ] })
13429
13429
  })
13430
13430
  ] });
13431
- }, E3 = {}, Y6 = ({ slots: e, mode: t, palettePresets: n = E3, editMenus: r, ...a }) => {
13432
- const i = Ri(Ln()), l = z(() => ({
13431
+ }, E3 = {}, Y6 = ({ slots: e, palettePresets: t = E3, editMenus: n, ...r }) => {
13432
+ const a = Ri(Pn()), i = Ce(), l = z(() => ({
13433
13433
  EditorSurface: P3,
13434
13434
  ...e
13435
13435
  }), [e]);
13436
13436
  return /* @__PURE__ */ o(Hs, {
13437
- ...i,
13437
+ ...a,
13438
13438
  children: /* @__PURE__ */ o(gv, {
13439
- editMenus: r,
13439
+ editMenus: n,
13440
13440
  children: /* @__PURE__ */ o(Td, { children: /* @__PURE__ */ o(Wm, {
13441
- value: n,
13441
+ value: t,
13442
13442
  children: /* @__PURE__ */ o(xd, {
13443
- editors: c2(t),
13444
- children: /* @__PURE__ */ o(Xd, {
13443
+ editors: c2(i),
13444
+ children: /* @__PURE__ */ o(jd, {
13445
13445
  slots: l,
13446
- mode: t,
13447
- ...a
13446
+ ...r
13448
13447
  })
13449
13448
  })
13450
13449
  }) })
@@ -13474,7 +13473,7 @@ var H3 = () => () => {
13474
13473
  const t = $h(e?.subscribe ?? H3, () => e?.getScene()?.config.parsingLocale);
13475
13474
  return e?.formattingLocale ?? t;
13476
13475
  }, $3 = (e) => {
13477
- const t = Pe(Kd), n = Ri(G3(zt(e.handle))), r = sd();
13476
+ const t = Pe(Ud), n = Ri(G3(zt(e.handle))), r = sd();
13478
13477
  let a = /* @__PURE__ */ o(V3, { ...e });
13479
13478
  return !r && t && (a = /* @__PURE__ */ o(dd, {
13480
13479
  colorScheme: t.colorScheme,
@@ -13487,11 +13486,11 @@ var H3 = () => () => {
13487
13486
  Root: $3,
13488
13487
  Controls: B3
13489
13488
  }, V3 = ({ handle: e, children: t, controls: n, defaultExpandedSection: r = void 0, className: a }) => {
13490
- const i = zt(e), { themeClass: l, inlineVarsStyle: s } = Pn(), [c, d] = ae(() => r ? [r] : []), u = z(() => ({
13489
+ const i = zt(e), { themeClass: l, inlineVarsStyle: s } = An(), [c, d] = ae(() => r ? [r] : []), u = z(() => ({
13491
13490
  expandSection: (h) => d([h]),
13492
13491
  collapseAllSections: () => d([])
13493
13492
  }), []);
13494
- return /* @__PURE__ */ o(Hn.Provider, {
13493
+ return /* @__PURE__ */ o(zn.Provider, {
13495
13494
  value: i,
13496
13495
  children: /* @__PURE__ */ o(Dg, {
13497
13496
  controls: n,
@@ -13640,17 +13639,17 @@ var q3 = "_40zvwv8", de = ({ title: e, layout: t = "fixed", preview: n, accessor
13640
13639
  x: "editor.axesPanel.mainAxisSection.xAxis",
13641
13640
  y: "editor.axesPanel.mainAxisSection.yAxis",
13642
13641
  ySecondary: "editor.axesPanel.mainAxisSection.ySecondaryAxis"
13643
- }, sr = ({ axis: e, title: t, layout: n = "collapsible", preview: r }) => {
13642
+ }, lr = ({ axis: e, title: t, layout: n = "collapsible", preview: r }) => {
13644
13643
  const a = ie(), i = oe(a), l = R(), { NumberField: s, Switch: c, TextField: d, ToggleGroup: u } = V();
13645
13644
  if (!i || e === "ySecondary" && (i.coordSystem.type !== "cartesian" || i.scales.ySecondary === void 0)) return null;
13646
13645
  const h = e === "ySecondary" || i.coordSystem.type !== "polar" ? "linear" : i.coordSystem.axisMapping[e].geometry, p = i.scales[e], g = p?.spec, m = g?.scaleType === "continuous" ? g : void 0;
13647
13646
  if (h === "circular" || h === "radial" && m === void 0) return null;
13648
- const v = g?.scaleType === "continuous" || g?.scaleType === "datetime", y = m !== void 0 && yl(i, e), b = m?.transform === "log", A = m?.domainMax ?? null, C = nS(m), T = (B, Ce) => B.map((qt) => ({
13647
+ const v = g?.scaleType === "continuous" || g?.scaleType === "datetime", y = m !== void 0 && yl(i, e), b = m?.transform === "log", A = m?.domainMax ?? null, C = nS(m), T = (B, xe) => B.map((qt) => ({
13649
13648
  value: qt,
13650
- label: Ce(qt)
13649
+ label: xe(qt)
13651
13650
  })), k = i.guides.axes.find((B) => B.scaledAesthetic === e);
13652
13651
  if (k === void 0) return null;
13653
- const P = k.position, M = i.guides.axes.filter((B) => B.scaledAesthetic === e), I = M.some((B) => B.visible), F = M.some((B) => B.visible || B.showGrid), _ = e === "ySecondary" ? i.config.axes.ySecondary?.label ?? k.label ?? "" : i.config.axes[e].label ?? k.label ?? "", D = Q3[P === "bottom" || P === "top" ? "horizontal" : "vertical"], w = e === "y" ? Sh(i.spec) : null, x = w === null ? void 0 : ee(i.spec.layers, w), S = i.guides.legends.drawn.some((B) => !B.inHeadlineRow && D.some((Ce) => Ce === B.position)), O = D.map((B) => ({
13652
+ const P = k.position, M = i.guides.axes.filter((B) => B.scaledAesthetic === e), I = M.some((B) => B.visible), F = M.some((B) => B.visible || B.showGrid), _ = e === "ySecondary" ? i.config.axes.ySecondary?.label ?? k.label ?? "" : i.config.axes[e].label ?? k.label ?? "", D = Q3[P === "bottom" || P === "top" ? "horizontal" : "vertical"], w = e === "y" ? Sh(i.spec) : null, x = w === null ? void 0 : ee(i.spec.layers, w), S = i.guides.legends.drawn.some((B) => !B.inHeadlineRow && D.some((xe) => xe === B.position)), O = D.map((B) => ({
13654
13653
  value: B,
13655
13654
  label: l(eS[B])
13656
13655
  })), W = T(["auto", "edges"], (B) => l(B === "edges" ? "editor.axesPanel.labelMode.edges" : "editor.axesPanel.labelMode.auto")), se = T(["linear", "log"], (B) => l(B === "log" ? "editor.axesPanel.scale.log" : "editor.axesPanel.scale.auto")), ye = T([
@@ -13659,13 +13658,13 @@ var q3 = "_40zvwv8", de = ({ title: e, layout: t = "fixed", preview: n, accessor
13659
13658
  "custom"
13660
13659
  ], (B) => l(B === "zero" ? "editor.axesPanel.startFrom.zero" : B === "custom" ? "editor.axesPanel.startFrom.custom" : "editor.axesPanel.startFrom.auto")), ne = T(["auto", "custom"], (B) => l(B === "custom" ? "editor.axesPanel.endAt.custom" : "editor.axesPanel.endAt.auto")), N = T(["single", "double"], (B) => l(B === "double" ? "editor.axesPanel.axisCount.double" : "editor.axesPanel.axisCount.single")), U = (B) => {
13661
13660
  if (e === "ySecondary") {
13662
- a.commands.dispatch(new pn({
13661
+ a.commands.dispatch(new hn({
13663
13662
  axis: e,
13664
- visible: cr(B, i.config.axes.y.visible)
13663
+ visible: sr(B, i.config.axes.y.visible)
13665
13664
  }));
13666
13665
  return;
13667
13666
  }
13668
- a.commands.dispatch(new pn({
13667
+ a.commands.dispatch(new hn({
13669
13668
  axis: e,
13670
13669
  visible: B,
13671
13670
  keepSecondaryAxis: !0
@@ -13679,7 +13678,7 @@ var q3 = "_40zvwv8", de = ({ title: e, layout: t = "fixed", preview: n, accessor
13679
13678
  if (e === "ySecondary") {
13680
13679
  a.commands.dispatch(new ja({
13681
13680
  axis: e,
13682
- visible: cr(B, i.config.axes.y.ticks.visible)
13681
+ visible: sr(B, i.config.axes.y.ticks.visible)
13683
13682
  }));
13684
13683
  return;
13685
13684
  }
@@ -13689,17 +13688,17 @@ var q3 = "_40zvwv8", de = ({ title: e, layout: t = "fixed", preview: n, accessor
13689
13688
  keepSecondaryAxis: !0
13690
13689
  }));
13691
13690
  }, Re = (B) => {
13692
- const Ce = B === "edges" ? "edges" : "auto";
13691
+ const xe = B === "edges" ? "edges" : "auto";
13693
13692
  if (e === "ySecondary") {
13694
13693
  a.commands.dispatch(new pr({
13695
13694
  axis: e,
13696
- tickMode: cr(Ce, i.config.axes.y.ticks.mode)
13695
+ tickMode: sr(xe, i.config.axes.y.ticks.mode)
13697
13696
  }));
13698
13697
  return;
13699
13698
  }
13700
13699
  a.commands.dispatch(new pr({
13701
13700
  axis: e,
13702
- tickMode: Ce,
13701
+ tickMode: xe,
13703
13702
  keepSecondaryAxis: !0
13704
13703
  }));
13705
13704
  }, At = (B) => {
@@ -13717,16 +13716,16 @@ var q3 = "_40zvwv8", de = ({ title: e, layout: t = "fixed", preview: n, accessor
13717
13716
  }, H = (B) => {
13718
13717
  B !== null && j({ domainMax: B });
13719
13718
  }, fe = (B) => {
13720
- const Ce = B === "auto" ? null : B === "zero" ? 0 : fi(p?.domain, "start");
13719
+ const xe = B === "auto" ? null : B === "zero" ? 0 : fi(p?.domain, "start");
13721
13720
  a.commands.dispatch(new Rt({
13722
13721
  scaledAesthetic: e,
13723
- domainMin: Ce
13722
+ domainMin: xe
13724
13723
  }));
13725
13724
  }, Xe = (B) => {
13726
- const Ce = B === "custom" ? fi(p?.domain, "end") : null;
13725
+ const xe = B === "custom" ? fi(p?.domain, "end") : null;
13727
13726
  a.commands.dispatch(new Rt({
13728
13727
  scaledAesthetic: e,
13729
- domainMax: Ce
13728
+ domainMax: xe
13730
13729
  }));
13731
13730
  }, nd = (B) => {
13732
13731
  x !== void 0 && a.commands.dispatch(new Tu({
@@ -13735,10 +13734,10 @@ var q3 = "_40zvwv8", de = ({ title: e, layout: t = "fixed", preview: n, accessor
13735
13734
  }));
13736
13735
  }, rd = (B) => {
13737
13736
  if (e === "ySecondary") return;
13738
- const Ce = D.find((qt) => qt === B);
13739
- Ce && a.commands.dispatch(new Zi({
13737
+ const xe = D.find((qt) => qt === B);
13738
+ xe && a.commands.dispatch(new Zi({
13740
13739
  axis: e,
13741
- position: Ce
13740
+ position: xe
13742
13741
  }));
13743
13742
  };
13744
13743
  return /* @__PURE__ */ o(de, {
@@ -13835,7 +13834,7 @@ var q3 = "_40zvwv8", de = ({ title: e, layout: t = "fixed", preview: n, accessor
13835
13834
  ] })
13836
13835
  ] })
13837
13836
  });
13838
- }, cr = (e, t) => e === t ? void 0 : e, nS = (e) => {
13837
+ }, sr = (e, t) => e === t ? void 0 : e, nS = (e) => {
13839
13838
  const t = e?.domainMin ?? null;
13840
13839
  return t === null ? "auto" : t === 0 ? "zero" : "custom";
13841
13840
  }, fi = (e, t) => {
@@ -13959,7 +13958,7 @@ var q3 = "_40zvwv8", de = ({ title: e, layout: t = "fixed", preview: n, accessor
13959
13958
  })] })
13960
13959
  });
13961
13960
  }, Xt = (e) => {
13962
- const { colorScheme: t } = Pn(), n = z(() => Yu({ colorScheme: t }), [t]);
13961
+ const { colorScheme: t } = An(), n = z(() => Yu({ colorScheme: t }), [t]);
13963
13962
  return z(() => e === null ? null : n.readers(e), [e, n]);
13964
13963
  }, za = (e, t, n) => {
13965
13964
  const r = Xt(e);
@@ -14055,11 +14054,11 @@ var q3 = "_40zvwv8", de = ({ title: e, layout: t = "fixed", preview: n, accessor
14055
14054
  }), Q6 = ({ children: e, ...t }) => /* @__PURE__ */ o(qc.Root, {
14056
14055
  ...t,
14057
14056
  children: e ?? /* @__PURE__ */ f(Y, { children: [
14058
- /* @__PURE__ */ o(sr, { axis: "x" }),
14059
- /* @__PURE__ */ o(sr, { axis: "y" }),
14060
- /* @__PURE__ */ o(sr, { axis: "ySecondary" })
14057
+ /* @__PURE__ */ o(lr, { axis: "x" }),
14058
+ /* @__PURE__ */ o(lr, { axis: "y" }),
14059
+ /* @__PURE__ */ o(lr, { axis: "ySecondary" })
14061
14060
  ] })
14062
- }), Kn = (e) => `${e}px`, Zc = (e) => `${Math.round(e * 100)}%`, hS = (e) => `${e}°`, pS = 24, gS = { select: { target: "graph" } }, yi = ["dim", "desaturate"], e7 = ({ title: e, layout: t = "collapsible", preview: n }) => {
14061
+ }), Un = (e) => `${e}px`, Zc = (e) => `${Math.round(e * 100)}%`, hS = (e) => `${e}°`, pS = 24, gS = { select: { target: "graph" } }, yi = ["dim", "desaturate"], e7 = ({ title: e, layout: t = "collapsible", preview: n }) => {
14063
14062
  const r = ie(), a = oe(r), i = R(), { Slider: l, ToggleGroup: s } = V(), c = Xt(a);
14064
14063
  if (!a || !c) return null;
14065
14064
  const d = c.graph().get("cornerRadius"), u = kh(a.spec), h = yi.map((m) => ({
@@ -14092,7 +14091,7 @@ var q3 = "_40zvwv8", de = ({ title: e, layout: t = "fixed", preview: n, accessor
14092
14091
  min: 0,
14093
14092
  max: pS,
14094
14093
  step: 1,
14095
- formatValue: Kn,
14094
+ formatValue: Un,
14096
14095
  onChange: p,
14097
14096
  onCommit: r.commands.commit
14098
14097
  })
@@ -14191,7 +14190,7 @@ var q3 = "_40zvwv8", de = ({ title: e, layout: t = "fixed", preview: n, accessor
14191
14190
  }, wi = (e, t) => {
14192
14191
  const [n, r] = Jc[t], a = e[n];
14193
14192
  return typeof a != "string" || a !== e[r] ? "" : a === "none" || a === "full" ? a : "md";
14194
- }, jn = ({ children: e }) => {
14193
+ }, Kn = ({ children: e }) => {
14195
14194
  const t = Ge();
14196
14195
  return /* @__PURE__ */ f(Y, { children: [/* @__PURE__ */ o("g", {
14197
14196
  filter: `url(#${t})`,
@@ -14216,11 +14215,11 @@ var q3 = "_40zvwv8", de = ({ title: e, layout: t = "fixed", preview: n, accessor
14216
14215
  floodOpacity: "0.16"
14217
14216
  })]
14218
14217
  }) })] });
14219
- }, Xn = "qdaoth0", bS = (e) => /* @__PURE__ */ f(E, {
14218
+ }, jn = "qdaoth0", bS = (e) => /* @__PURE__ */ f(E, {
14220
14219
  viewBox: "0 0 31 33",
14221
14220
  ...e,
14222
- children: [/* @__PURE__ */ o(jn, { children: /* @__PURE__ */ o("path", {
14223
- className: Xn,
14221
+ children: [/* @__PURE__ */ o(Kn, { children: /* @__PURE__ */ o("path", {
14222
+ className: jn,
14224
14223
  fillRule: "evenodd",
14225
14224
  clipRule: "evenodd",
14226
14225
  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"
@@ -14231,8 +14230,8 @@ var q3 = "_40zvwv8", de = ({ title: e, layout: t = "fixed", preview: n, accessor
14231
14230
  }), yS = (e) => /* @__PURE__ */ o(E, {
14232
14231
  viewBox: "0 0 32 32",
14233
14232
  ...e,
14234
- children: /* @__PURE__ */ f(jn, { children: [/* @__PURE__ */ o("path", {
14235
- className: Xn,
14233
+ children: /* @__PURE__ */ f(Kn, { children: [/* @__PURE__ */ o("path", {
14234
+ className: jn,
14236
14235
  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"
14237
14236
  }), /* @__PURE__ */ o("path", {
14238
14237
  fill: "currentColor",
@@ -14241,8 +14240,8 @@ var q3 = "_40zvwv8", de = ({ title: e, layout: t = "fixed", preview: n, accessor
14241
14240
  }), SS = (e) => /* @__PURE__ */ f(E, {
14242
14241
  viewBox: "0 0 32 33",
14243
14242
  ...e,
14244
- children: [/* @__PURE__ */ o(jn, { children: /* @__PURE__ */ o("path", {
14245
- className: Xn,
14243
+ children: [/* @__PURE__ */ o(Kn, { children: /* @__PURE__ */ o("path", {
14244
+ className: jn,
14246
14245
  fillRule: "evenodd",
14247
14246
  clipRule: "evenodd",
14248
14247
  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"
@@ -14255,8 +14254,8 @@ var q3 = "_40zvwv8", de = ({ title: e, layout: t = "fixed", preview: n, accessor
14255
14254
  }), wS = (e) => /* @__PURE__ */ f(E, {
14256
14255
  viewBox: "0 0 32 33",
14257
14256
  ...e,
14258
- children: [/* @__PURE__ */ o(jn, { children: /* @__PURE__ */ o("path", {
14259
- className: Xn,
14257
+ children: [/* @__PURE__ */ o(Kn, { children: /* @__PURE__ */ o("path", {
14258
+ className: jn,
14260
14259
  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"
14261
14260
  }) }), /* @__PURE__ */ o("path", {
14262
14261
  fill: "currentColor",
@@ -14280,7 +14279,7 @@ var q3 = "_40zvwv8", de = ({ title: e, layout: t = "fixed", preview: n, accessor
14280
14279
  const r = ie(), a = oe(r), i = R(), { Button: l } = V();
14281
14280
  if (!a) return null;
14282
14281
  const s = () => {
14283
- r.commands.dispatch(new xe({
14282
+ r.commands.dispatch(new ke({
14284
14283
  kind: "text",
14285
14284
  annotation: {
14286
14285
  ...vr,
@@ -14293,7 +14292,7 @@ var q3 = "_40zvwv8", de = ({ title: e, layout: t = "fixed", preview: n, accessor
14293
14292
  }
14294
14293
  }));
14295
14294
  }, c = () => {
14296
- r.commands.dispatch(new xe({
14295
+ r.commands.dispatch(new ke({
14297
14296
  kind: "arrow",
14298
14297
  annotation: {
14299
14298
  ...Ui,
@@ -14308,7 +14307,7 @@ var q3 = "_40zvwv8", de = ({ title: e, layout: t = "fixed", preview: n, accessor
14308
14307
  }
14309
14308
  }));
14310
14309
  }, d = () => {
14311
- r.commands.dispatch(new xe({
14310
+ r.commands.dispatch(new ke({
14312
14311
  kind: "shape",
14313
14312
  annotation: {
14314
14313
  ...qi,
@@ -14321,7 +14320,7 @@ var q3 = "_40zvwv8", de = ({ title: e, layout: t = "fixed", preview: n, accessor
14321
14320
  }));
14322
14321
  }, u = () => {
14323
14322
  const p = uh(a);
14324
- p !== null && r.commands.dispatch(new xe({
14323
+ p !== null && r.commands.dispatch(new ke({
14325
14324
  kind: "differenceArrow",
14326
14325
  annotation: {
14327
14326
  ...ji,
@@ -14373,8 +14372,8 @@ var q3 = "_40zvwv8", de = ({ title: e, layout: t = "fixed", preview: n, accessor
14373
14372
  }), r7 = ({ title: e, layout: t = "collapsible", preview: n }) => {
14374
14373
  const r = ie(), a = oe(r), i = R(), { ToggleGroup: l } = V();
14375
14374
  if (!a) return null;
14376
- const s = Dn(a.spec);
14377
- if (s === null || !ke(s)) return null;
14375
+ const s = Nn(a.spec);
14376
+ if (s === null || !Te(s)) return null;
14378
14377
  const c = Ua.map((u) => ({
14379
14378
  value: u,
14380
14379
  label: i(`editor.graphPanel.comboSection.types.${u}`)
@@ -14552,7 +14551,7 @@ var q3 = "_40zvwv8", de = ({ title: e, layout: t = "fixed", preview: n, accessor
14552
14551
  disabled: !ts(g, a?.spec)
14553
14552
  })), [i, a]);
14554
14553
  if (!a) return null;
14555
- const c = Dn(a.spec), d = yn(c), u = (h) => {
14554
+ const c = Nn(a.spec), d = bn(c), u = (h) => {
14556
14555
  const p = _t.find((g) => g.name === h);
14557
14556
  p && r.commands.dispatch(new Zr(ns(p.summary, c)));
14558
14557
  };
@@ -14573,7 +14572,7 @@ var q3 = "_40zvwv8", de = ({ title: e, layout: t = "fixed", preview: n, accessor
14573
14572
  if (u === null) return null;
14574
14573
  const h = u.axes.filter((b) => b.supportsGrid);
14575
14574
  if (h.length === 0) return null;
14576
- const p = u.axes.some((b) => b.showGrid), g = Cn.map((b) => ({
14575
+ const p = u.axes.some((b) => b.showGrid), g = wn.map((b) => ({
14577
14576
  value: b,
14578
14577
  label: i(`editor.graphPanel.gridSection.lineStyles.${b}`)
14579
14578
  })), m = (b) => (A) => {
@@ -14582,7 +14581,7 @@ var q3 = "_40zvwv8", de = ({ title: e, layout: t = "fixed", preview: n, accessor
14582
14581
  visible: A
14583
14582
  }));
14584
14583
  }, v = (b) => {
14585
- const A = Cn.find((C) => C === b);
14584
+ const A = wn.find((C) => C === b);
14586
14585
  A !== void 0 && r.commands.dispatch(ms(A));
14587
14586
  }, y = (b) => {
14588
14587
  r.commands.dispatch(vs(b), { transient: !0 });
@@ -14611,7 +14610,7 @@ var q3 = "_40zvwv8", de = ({ title: e, layout: t = "fixed", preview: n, accessor
14611
14610
  min: 0,
14612
14611
  max: 8,
14613
14612
  step: 0.5,
14614
- formatValue: Kn,
14613
+ formatValue: Un,
14615
14614
  onChange: y,
14616
14615
  onCommit: r.commands.commit
14617
14616
  })
@@ -14711,7 +14710,7 @@ var q3 = "_40zvwv8", de = ({ title: e, layout: t = "fixed", preview: n, accessor
14711
14710
  const n = Qc.find((r) => r === t);
14712
14711
  return n && e(`editor.graphPanel.headlineNumberSection.metrics.${n}`);
14713
14712
  };
14714
- var dr = [
14713
+ var cr = [
14715
14714
  "top",
14716
14715
  "bottom",
14717
14716
  "left",
@@ -14738,17 +14737,17 @@ var dr = [
14738
14737
  ], c7 = ({ positions: e, title: t, layout: n = "collapsible", preview: r }) => {
14739
14738
  const a = ie(), i = oe(a), l = R(), { ToggleGroup: s } = V(), c = Mi();
14740
14739
  if (!i) return null;
14741
- const d = i.config.legend.position, u = e ?? dr, h = i.guides.legends.drawn[0], p = Wu({
14740
+ const d = i.config.legend.position, u = e ?? cr, h = i.guides.legends.drawn[0], p = Wu({
14742
14741
  legendPosition: i.guides.legends.position,
14743
14742
  coordSystem: i.coordSystem,
14744
14743
  layers: i.layers
14745
14744
  }), g = i.guides.headline?.kind === "perGroup", m = i.guides.colorGroups.length > 0;
14746
14745
  if (d === "auto" && h === void 0 && !p && (g || !m)) return null;
14747
- const v = h?.position ?? "none", y = d === "auto" ? v : d, b = dr.filter((x) => x === y || u.includes(x)).map((x) => ({
14746
+ const v = h?.position ?? "none", y = d === "auto" ? v : d, b = cr.filter((x) => x === y || u.includes(x)).map((x) => ({
14748
14747
  value: x,
14749
14748
  label: l(`editor.graphPanel.legendSection.${x}`)
14750
14749
  })), A = (x) => {
14751
- const S = dr.find((O) => O === x);
14750
+ const S = cr.find((O) => O === x);
14752
14751
  S && a.commands.dispatch(new mr({ position: S }));
14753
14752
  }, C = (x) => {
14754
14753
  const S = Ti.find((O) => O === x);
@@ -14813,9 +14812,9 @@ var dr = [
14813
14812
  min: zS,
14814
14813
  max: HS,
14815
14814
  step: GS,
14816
- formatValue: Kn,
14815
+ formatValue: Un,
14817
14816
  onChange: (c) => {
14818
- const d = new En({
14817
+ const d = new Mn({
14819
14818
  layerId: e,
14820
14819
  size: c
14821
14820
  });
@@ -14927,7 +14926,7 @@ var dr = [
14927
14926
  min: 1,
14928
14927
  max: 10,
14929
14928
  step: 0.1,
14930
- formatValue: Kn,
14929
+ formatValue: Un,
14931
14930
  onChange: C,
14932
14931
  onCommit: r.commands.commit
14933
14932
  })
@@ -15184,7 +15183,7 @@ var dr = [
15184
15183
  "power",
15185
15184
  "loess"
15186
15185
  ], r6 = "linear", m7 = ({ title: e, layout: t = "collapsible", preview: n }) => {
15187
- const r = ie(), a = oe(r), i = R(), { Select: l, Switch: s } = V(), { options: c, findValue: d } = $n(a, r.formattingLocale);
15186
+ const r = ie(), a = oe(r), i = R(), { Select: l, Switch: s } = V(), { options: c, findValue: d } = Gn(a, r.formattingLocale);
15188
15187
  if (!a || a.coordSystem.type === "polar") return null;
15189
15188
  const u = oh(a.spec.layers), h = Qu(a.spec.layers), p = u?.stat.type === "smooth" ? u.stat.method : r6, g = a6(h), m = Li.map((T) => ({
15190
15189
  value: T,
@@ -15254,7 +15253,7 @@ export {
15254
15253
  e7 as AppearanceSection,
15255
15254
  Q6 as AxesPanel,
15256
15255
  Xl as AxisEditMenu,
15257
- sr as AxisSection,
15256
+ lr as AxisSection,
15258
15257
  Zl as BarEditMenu,
15259
15258
  t7 as BarSection,
15260
15259
  Tp as Button,