@graphysdk/react-renderer 1.9.0-beta.1788778177265 → 1.9.0-beta.1788781002318
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/{dev.utils-HBVa4Fj9.js → dev.utils-E7Ho6zQ7.js} +1 -1
- package/dist/dev.utils-LKbf3pnu.cjs +2 -0
- package/dist/editable.cjs +1 -1
- package/dist/editable.mjs +2 -2
- package/dist/graph-config.cjs +1 -1
- package/dist/graph-config.mjs +1 -1
- package/dist/{history-chords-CkZz53Md.cjs → history-chords-B-YJjTsb.cjs} +1 -1
- package/dist/{history-chords-BIERfUm9.js → history-chords-CbCsZGB2.js} +454 -454
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +2 -2
- package/package.json +2 -2
- package/dist/dev.css +0 -1
- package/dist/dev.utils-C5W6wbHd.cjs +0 -2
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { a as Wr, c as oa, f as x, i as aa, l as Vr, n as Ur, o as ia, r as sa, s as Qr, t as la, u as Yr } from "./dev.utils-
|
|
2
|
-
import { ANNOTATION_TOOLTIP_MARKER_GAP as ca, AXIS_KEYS as Wt, CachedTextMeasurer as dr, DATA_LABEL_POSITIONS as da, DATA_LABEL_ROLES as ua, DEFAULT_GEOM_COLOR as Kr, DEFAULT_HOVER_AFFORDANCE_COLOR as vt, GROUP_VARIABLES as ce, HeuristicTextMeasurer as ha, HoverEngine as va, InternalError as ga, LayoutCompiler as fa, POLAR_RIM_LABEL_GAP_PX as pa, RESTING_HOVER_STATE as st, TAU as ur, alignUnitFractions as zr, areAnchorsEqual as ma, areEditMenuTriggersEqual as Aa, areEndpointsComparable as hr, arePointerRegionListsEqual as ya, buildAverageLineSymbols as xa, buildCalloutHitRegions as ba, buildColumnKey as Vt, buildDataLabelsContent as wa, buildFontString as Sa, buildLayerIntroPlan as ka, buildLayerYValueFormatter as Ra, buildPinnedNumberValueFormatter as Ca, buildPolarBarArcPath as ge, buildSliceGroupKey as Ut, buildTooltipContent as Ea, compositeColor as Pa, computeArrow as Ba, computeDifferenceArrow as Ia, computeDirectLabelsLayout as Ta, computeLineBoxHeight as fe, computePanelBorderPaths as
|
|
3
|
-
import { Fragment as zt, createContext as U, memo as Z, useCallback as se, useContext as D, useEffect as M, useId as V, useMemo as A, useRef as I, useState as
|
|
1
|
+
import { a as Wr, c as oa, f as x, i as aa, l as Vr, n as Ur, o as ia, r as sa, s as Qr, t as la, u as Yr } from "./dev.utils-E7Ho6zQ7.js";
|
|
2
|
+
import { ANNOTATION_TOOLTIP_MARKER_GAP as ca, AXIS_KEYS as Wt, CachedTextMeasurer as dr, DATA_LABEL_POSITIONS as da, DATA_LABEL_ROLES as ua, DEFAULT_GEOM_COLOR as Kr, DEFAULT_HOVER_AFFORDANCE_COLOR as vt, GROUP_VARIABLES as ce, HeuristicTextMeasurer as ha, HoverEngine as va, InternalError as ga, LayoutCompiler as fa, POLAR_RIM_LABEL_GAP_PX as pa, RESTING_HOVER_STATE as st, TAU as ur, alignUnitFractions as zr, areAnchorsEqual as ma, areEditMenuTriggersEqual as Aa, areEndpointsComparable as hr, arePointerRegionListsEqual as ya, buildAverageLineSymbols as xa, buildCalloutHitRegions as ba, buildColumnKey as Vt, buildDataLabelsContent as wa, buildFontString as Sa, buildLayerIntroPlan as ka, buildLayerYValueFormatter as Ra, buildPinnedNumberValueFormatter as Ca, buildPolarBarArcPath as ge, buildSliceGroupKey as Ut, buildTooltipContent as Ea, compositeColor as Pa, computeArrow as Ba, computeDifferenceArrow as Ia, computeDirectLabelsLayout as Ta, computeLineBoxHeight as fe, computePanelBorderPaths as Na, computePanelBorderSizes as La, countLayerGeoms as Ma, createAreaPathGenerators as jr, createHeadlineItemRows as Xr, createLineFillAreaGenerator as Fa, createLinePathGenerator as qr, createSegmentYReader as Da, createStableCellKeyGenerator as Ha, createStableKeyGenerator as oe, createStyleResolver as gt, findAnnotation as Oa, findPointerRegion as vr, formatHeadline as Ga, formatLegends as Wa, formatRuleValue as Va, getAestheticFromScaleAestheticKey as Ce, getAlpha as Jr, getAngleExtent as Qt, getBarRectBounds as Ke, getBoundingRect as Zr, getChromeDashArray as ft, getColor as $r, getDashArray as Ee, getDifferenceArrowLabelBox as Ua, getGroup as pt, getHoverGuideLineProps as Qa, getHoverGuideRectProps as Ya, getInsetTileRect as _r, getPolarHoverGuideArcProps as Ka, getRadiusExtent as mt, getRuleDashPattern as za, getShapeAnnotationStroke as ja, getSize as Xa, getStackRole as qa, getUnionExtent as Ja, getX as q, getXMax as Za, getY as te, getYMax as en, isAnnotationMovable as $a, isDefined as tn, isFullTurnSweep as rn, isSafeUrl as Yt, orderPointerRegions as _a, paintsInDonutHole as ei, pickReadableTextColor as nn, placeCallouts as ti, polarToUnit as ri, positionToAngle as ni, prepareAreaObservations as on, prepareLineObservations as an, projectAnchorToPanel as Qe, projectRegionToPanel as Kt, readAnchoredObservation as oi, resolveArrowAnnotationStyle as ai, resolveArrowColor as ii, resolveAxisLabelStyle as si, resolveBarBorderRadiusPx as sn, resolveBarBorderTreatment as ze, resolveBarCornerRadiiPx as li, resolveCalloutAnnotationStyle as ci, resolveDataLabelStyle as di, resolveDeferredAnchors as ui, resolveDifferenceArrowAnnotationStyle as hi, resolveDirectLabelStyle as vi, resolveGraphChromeStyle as ln, resolveGridLineStyle as Tt, resolveHeadlineFigure as cn, resolveHeadlineItemStyle as at, resolveHeadlinePlacement as gi, resolveHeadlineStyle as dn, resolveImageAnnotationStyle as fi, resolveLegendItemStyle as pi, resolveLegendStyle as mi, resolvePanelBorderStyle as un, resolvePolarBarCornerRadiusUnit as hn, resolveRuleLabelStyle as Ai, resolveShapeAnnotationStyle as vn, resolveTextAnnotationStyle as yi, resolveTickLabelStyle as xi, resolveTickLineStyle as bi, resolveTooltipStyle as wi, toFontSpec as z, toPanelCursor as Si, toPercent as k, toViewBoxX as gn, toViewBoxY as fn, truncateToWidth as ki } from "@graphysdk/viz-engine";
|
|
3
|
+
import { Fragment as zt, createContext as U, memo as Z, useCallback as se, useContext as D, useEffect as M, useId as V, useMemo as A, useRef as I, useState as O, useSyncExternalStore as Ri } from "react";
|
|
4
4
|
import { Fragment as B, jsx as s, jsxs as w } from "react/jsx-runtime";
|
|
5
5
|
import { useStore as je } from "zustand";
|
|
6
|
-
import { animate as ie, motion as
|
|
6
|
+
import { animate as ie, motion as H, useMotionValue as _, useReducedMotion as Ci, useTransform as tt } from "motion/react";
|
|
7
7
|
import { interpolatePath as Ei } from "d3-interpolate-path";
|
|
8
8
|
import { useShallow as j } from "zustand/react/shallow";
|
|
9
9
|
import { parseFontLength as Pi, parseFontWeight as Bi, parseUnitlessLineHeight as Ii } from "@graphysdk/viz-engine/graph-config";
|
|
10
10
|
import { createStore as pn } from "zustand/vanilla";
|
|
11
11
|
import { createPortal as mn } from "react-dom";
|
|
12
|
-
import Ye, { clsx as
|
|
12
|
+
import Ye, { clsx as Oe } from "clsx";
|
|
13
13
|
import Ti from "lodash-es/merge";
|
|
14
|
-
import { IntlProvider as
|
|
15
|
-
import { flip as
|
|
14
|
+
import { IntlProvider as Ni } from "react-intl";
|
|
15
|
+
import { flip as Nt, offset as Lt, shift as Mt, useFloating as An } from "@floating-ui/react-dom";
|
|
16
16
|
import { assignInlineVars as yn } from "@vanilla-extract/dynamic";
|
|
17
|
-
import { getContrast as
|
|
17
|
+
import { getContrast as Li } from "color2k";
|
|
18
18
|
import './history-chords.css';var gr = Object.defineProperty, Mi = (e, t) => {
|
|
19
19
|
let r = {};
|
|
20
20
|
for (var n in e)
|
|
@@ -24,7 +24,7 @@ import './history-chords.css';var gr = Object.defineProperty, Mi = (e, t) => {
|
|
|
24
24
|
});
|
|
25
25
|
return t || gr(r, Symbol.toStringTag, { value: "Module" }), r;
|
|
26
26
|
};
|
|
27
|
-
typeof window < "u" && (window.__GRAPHY_SDK__ ??= {}, window.__GRAPHY_SDK__.reactRenderer = "1.9.0-beta.
|
|
27
|
+
typeof window < "u" && (window.__GRAPHY_SDK__ ??= {}, window.__GRAPHY_SDK__.reactRenderer = "1.9.0-beta.1788781002318");
|
|
28
28
|
var xn = U(null), G = () => {
|
|
29
29
|
const e = D(xn);
|
|
30
30
|
if (!e) throw new Error("useGraph* hooks must be used inside a <GraphProvider>");
|
|
@@ -83,10 +83,10 @@ var bn = (e) => {
|
|
|
83
83
|
x: (r.x + 1) / 2,
|
|
84
84
|
y: (r.y + 1) / 2
|
|
85
85
|
};
|
|
86
|
-
}, Di = 2,
|
|
86
|
+
}, Di = 2, Hi = 0.7, he = ({ hit: e, project: t = jt }) => {
|
|
87
87
|
const r = bn(e.layerId);
|
|
88
88
|
if (!e.anchored) return null;
|
|
89
|
-
const n = r?.get("color", e.observation) ?? Kr, o = (Jr(e.observation) ?? 1) *
|
|
89
|
+
const n = r?.get("color", e.observation) ?? Kr, o = (Jr(e.observation) ?? 1) * Hi, a = (r?.get("size", e.observation) ?? 8) / 2, i = r?.get("borderColor", e.observation, "hovered") ?? vt, l = t(e.x, e.y);
|
|
90
90
|
return /* @__PURE__ */ s("circle", {
|
|
91
91
|
cx: k(l.x),
|
|
92
92
|
cy: k(l.y),
|
|
@@ -102,7 +102,7 @@ var bn = (e) => {
|
|
|
102
102
|
stiffness: 500,
|
|
103
103
|
damping: 60,
|
|
104
104
|
mass: 1
|
|
105
|
-
},
|
|
105
|
+
}, Oi = { duration: 0 }, Xt = (e) => e ? ne : Oi, Ft = (e, t) => {
|
|
106
106
|
const r = _(e);
|
|
107
107
|
return M(() => {
|
|
108
108
|
const n = Ei(r.get(), e);
|
|
@@ -133,12 +133,12 @@ var bn = (e) => {
|
|
|
133
133
|
vectorEffect: "non-scaling-stroke"
|
|
134
134
|
})] }), Wi = ({ fillPath: e, linePath: t, fill: r, fillOpacity: n, stroke: o, strokeWidth: a, strokeOpacity: i, strokeDasharray: l }) => {
|
|
135
135
|
const c = Ft(e, ne), u = Ft(t, ne);
|
|
136
|
-
return /* @__PURE__ */ w("g", { children: [/* @__PURE__ */ s(
|
|
136
|
+
return /* @__PURE__ */ w("g", { children: [/* @__PURE__ */ s(H.path, {
|
|
137
137
|
d: c,
|
|
138
138
|
fill: r,
|
|
139
139
|
fillOpacity: n,
|
|
140
140
|
stroke: "none"
|
|
141
|
-
}), /* @__PURE__ */ s(
|
|
141
|
+
}), /* @__PURE__ */ s(H.path, {
|
|
142
142
|
d: u,
|
|
143
143
|
fill: "none",
|
|
144
144
|
stroke: o,
|
|
@@ -172,7 +172,7 @@ var bn = (e) => {
|
|
|
172
172
|
const r = V();
|
|
173
173
|
return /* @__PURE__ */ w(B, { children: [/* @__PURE__ */ s("clipPath", {
|
|
174
174
|
id: r,
|
|
175
|
-
children: /* @__PURE__ */ s(
|
|
175
|
+
children: /* @__PURE__ */ s(H.rect, {
|
|
176
176
|
...Ki(e.axis),
|
|
177
177
|
transition: Vi(e)
|
|
178
178
|
})
|
|
@@ -522,13 +522,13 @@ var bn = (e) => {
|
|
|
522
522
|
ry: o.ry
|
|
523
523
|
}, g = /* @__PURE__ */ s("clipPath", {
|
|
524
524
|
id: r,
|
|
525
|
-
children: /* @__PURE__ */ s(
|
|
525
|
+
children: /* @__PURE__ */ s(H.rect, { ...v })
|
|
526
526
|
});
|
|
527
527
|
if (n.length === 1) {
|
|
528
528
|
const [h] = n;
|
|
529
529
|
return /* @__PURE__ */ w(B, { children: [g, /* @__PURE__ */ s("g", {
|
|
530
530
|
clipPath: `url(#${r})`,
|
|
531
|
-
children: /* @__PURE__ */ s(
|
|
531
|
+
children: /* @__PURE__ */ s(H.rect, {
|
|
532
532
|
...v,
|
|
533
533
|
fill: h?.fill,
|
|
534
534
|
opacity: h?.opacity,
|
|
@@ -548,7 +548,7 @@ var bn = (e) => {
|
|
|
548
548
|
animation: t,
|
|
549
549
|
introKey: f
|
|
550
550
|
}, f);
|
|
551
|
-
}), u && /* @__PURE__ */ s(
|
|
551
|
+
}), u && /* @__PURE__ */ s(H.rect, {
|
|
552
552
|
...v,
|
|
553
553
|
fill: "none",
|
|
554
554
|
stroke: a,
|
|
@@ -560,7 +560,7 @@ var bn = (e) => {
|
|
|
560
560
|
const { isAnimated: l, activeIntro: c, shouldAnimateTransitions: u } = e;
|
|
561
561
|
if (l) {
|
|
562
562
|
const d = c ? En(i, c) : null;
|
|
563
|
-
return /* @__PURE__ */ s(
|
|
563
|
+
return /* @__PURE__ */ s(H.rect, {
|
|
564
564
|
initial: d ? {
|
|
565
565
|
x: k(d.x),
|
|
566
566
|
y: k(d.y),
|
|
@@ -762,7 +762,7 @@ var cs = "_1suo8ub0", Pn = (e, t, r) => {
|
|
|
762
762
|
borderRadius: m,
|
|
763
763
|
mainAxis: t.mainAxis,
|
|
764
764
|
bounds: g
|
|
765
|
-
}), b = ke(v, 0), R = ke(g, y), S = ke(Ar(v, Rt), 0), P = ke(Ar(g, Rt), y > 0 ? y + Rt : 0), E = o.get("color", r.observation),
|
|
765
|
+
}), b = ke(v, 0), R = ke(g, y), S = ke(Ar(v, Rt), 0), P = ke(Ar(g, Rt), y > 0 ? y + Rt : 0), E = o.get("color", r.observation), L = o.get("alpha", r.observation), F = o.get("borderColor", r.observation, "hovered") ?? vt, W = ze(f);
|
|
766
766
|
return /* @__PURE__ */ w("g", {
|
|
767
767
|
"data-testid": "hovered-bar",
|
|
768
768
|
children: [
|
|
@@ -796,14 +796,14 @@ var cs = "_1suo8ub0", Pn = (e, t, r) => {
|
|
|
796
796
|
children: [/* @__PURE__ */ s("path", {
|
|
797
797
|
d: b,
|
|
798
798
|
fill: E,
|
|
799
|
-
opacity:
|
|
799
|
+
opacity: L,
|
|
800
800
|
"data-testid": "hovered-bar-fill"
|
|
801
801
|
}), h !== void 0 && /* @__PURE__ */ w(B, { children: [/* @__PURE__ */ s("path", {
|
|
802
802
|
d: b,
|
|
803
803
|
fill: "none",
|
|
804
804
|
stroke: h,
|
|
805
805
|
strokeWidth: W.separatorWidth,
|
|
806
|
-
opacity:
|
|
806
|
+
opacity: L,
|
|
807
807
|
"data-testid": "hovered-bar-inner-border"
|
|
808
808
|
}), /* @__PURE__ */ s("path", {
|
|
809
809
|
d: R,
|
|
@@ -947,7 +947,7 @@ var cs = "_1suo8ub0", Pn = (e, t, r) => {
|
|
|
947
947
|
})] });
|
|
948
948
|
}, ms = ({ pathData: e, color: t, strokeWidth: r, opacity: n, strokeDasharray: o }) => {
|
|
949
949
|
const a = Ft(e, ne);
|
|
950
|
-
return /* @__PURE__ */ s(
|
|
950
|
+
return /* @__PURE__ */ s(H.path, {
|
|
951
951
|
d: a,
|
|
952
952
|
fill: "none",
|
|
953
953
|
stroke: t,
|
|
@@ -1019,7 +1019,7 @@ var cs = "_1suo8ub0", Pn = (e, t, r) => {
|
|
|
1019
1019
|
const a = q(e), i = te(e);
|
|
1020
1020
|
if (a === null || i === null) return null;
|
|
1021
1021
|
const l = t(a, i), c = k(l.x), u = k(l.y), d = r.get("size", e) / 2, v = r.get("color", e), g = r.get("alpha", e), h = r.get("borderColor", e), f = r.get("borderWidth", e), { isAnimated: m, activeIntro: p, shouldAnimateTransitions: y } = n;
|
|
1022
|
-
return m ? /* @__PURE__ */ s(
|
|
1022
|
+
return m ? /* @__PURE__ */ s(H.circle, {
|
|
1023
1023
|
initial: p ? {
|
|
1024
1024
|
cx: c,
|
|
1025
1025
|
cy: u,
|
|
@@ -1092,7 +1092,7 @@ var cs = "_1suo8ub0", Pn = (e, t, r) => {
|
|
|
1092
1092
|
y: r
|
|
1093
1093
|
};
|
|
1094
1094
|
}
|
|
1095
|
-
}, ws = sa.sm, Y = (e, t) => `color-mix(in srgb, transparent, ${e} ${t * 100}%)`, Ss = (e, t) => `hsl(from ${e} h s calc(l * ${1 - t}))`,
|
|
1095
|
+
}, ws = sa.sm, Y = (e, t) => `color-mix(in srgb, transparent, ${e} ${t * 100}%)`, Ss = (e, t) => `hsl(from ${e} h s calc(l * ${1 - t}))`, ff = (e, t) => `hsl(from ${e} h s calc(l * ${1 + t}))`, pf = (e) => /^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$/.test(e), mf = (e) => e.length === 0 ? !1 : typeof CSS < "u" && typeof CSS.supports == "function" ? CSS.supports("color", e) : /^#([0-9a-fA-F]{3}|[0-9a-fA-F]{4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/.test(e), be = (e) => `${e}px`, Tn = {
|
|
1096
1096
|
gridLineWidth: "1px",
|
|
1097
1097
|
tooltipBorderRadius: "6px",
|
|
1098
1098
|
tooltipPaddingBlock: "8px",
|
|
@@ -1105,7 +1105,7 @@ var cs = "_1suo8ub0", Pn = (e, t, r) => {
|
|
|
1105
1105
|
legendPillPaddingBlock: be(2),
|
|
1106
1106
|
legendPillBorderWidth: be(1),
|
|
1107
1107
|
headlineRowGap: be(2)
|
|
1108
|
-
},
|
|
1108
|
+
}, He = {
|
|
1109
1109
|
panelOverlay: 5,
|
|
1110
1110
|
textToolbar: 10,
|
|
1111
1111
|
textToolbarTooltip: 20,
|
|
@@ -1114,21 +1114,21 @@ var cs = "_1suo8ub0", Pn = (e, t, r) => {
|
|
|
1114
1114
|
editorOverlay: 900,
|
|
1115
1115
|
editorOverlayPopover: 950,
|
|
1116
1116
|
tooltip: 1e3
|
|
1117
|
-
},
|
|
1117
|
+
}, Nn = {
|
|
1118
1118
|
elevationXs: "0 0 2px rgba(15, 15, 24, 0.12), 0 2px 2px rgba(14, 14, 52, 0.08)",
|
|
1119
1119
|
elevationSm: "0 0 4px rgba(15, 15, 24, 0.12), 0 4px 4px rgba(14, 14, 52, 0.08)",
|
|
1120
1120
|
elevationMd: "0 0 8px rgba(15, 15, 24, 0.12), 0 8px 8px rgba(14, 14, 52, 0.08)",
|
|
1121
1121
|
elevationLg: "0 0 16px rgba(15, 15, 24, 0.12), 0 16px 16px rgba(14, 14, 52, 0.08)"
|
|
1122
|
-
},
|
|
1122
|
+
}, Ln = {
|
|
1123
1123
|
radiiXs: "4px",
|
|
1124
1124
|
radiiSm: "6px",
|
|
1125
1125
|
radiiMd: "8px",
|
|
1126
1126
|
radiiLg: "12px"
|
|
1127
1127
|
}, Mn = {
|
|
1128
|
-
zIndexToolbar: `${
|
|
1129
|
-
zIndexToolbarTooltip: `${
|
|
1130
|
-
zIndexToolbarPopover: `${
|
|
1131
|
-
zIndexEditorPopover: `${
|
|
1128
|
+
zIndexToolbar: `${He.textToolbar}`,
|
|
1129
|
+
zIndexToolbarTooltip: `${He.textToolbarTooltip}`,
|
|
1130
|
+
zIndexToolbarPopover: `${He.textToolbarPopover}`,
|
|
1131
|
+
zIndexEditorPopover: `${He.editorOverlayPopover}`
|
|
1132
1132
|
}, ks = 8, we = (e) => `${ks * e}px`, Fn = {
|
|
1133
1133
|
spaceXxs: we(0.25),
|
|
1134
1134
|
spaceXs: we(0.5),
|
|
@@ -1219,8 +1219,8 @@ var cs = "_1suo8ub0", Pn = (e, t, r) => {
|
|
|
1219
1219
|
}, Dn = {
|
|
1220
1220
|
...Rs,
|
|
1221
1221
|
...Cs,
|
|
1222
|
-
...Ln,
|
|
1223
1222
|
...Nn,
|
|
1223
|
+
...Ln,
|
|
1224
1224
|
...Fn,
|
|
1225
1225
|
...Mn,
|
|
1226
1226
|
...Es,
|
|
@@ -1229,9 +1229,9 @@ var cs = "_1suo8ub0", Pn = (e, t, r) => {
|
|
|
1229
1229
|
...Wr,
|
|
1230
1230
|
...Vr,
|
|
1231
1231
|
...Qr
|
|
1232
|
-
},
|
|
1232
|
+
}, Hn = (e, t) => e * 10 * t, On = (e, t) => ({
|
|
1233
1233
|
family: e.family,
|
|
1234
|
-
size: e.size.unit === "em" ?
|
|
1234
|
+
size: e.size.unit === "em" ? Hn(e.size.value, t) : e.size.value,
|
|
1235
1235
|
weight: e.weight,
|
|
1236
1236
|
style: e.style
|
|
1237
1237
|
}), Bs = (e, t = {}) => {
|
|
@@ -1264,7 +1264,7 @@ var cs = "_1suo8ub0", Pn = (e, t, r) => {
|
|
|
1264
1264
|
return t;
|
|
1265
1265
|
}, Ct = (e) => e === void 0 || e.includes("var(") ? null : e.replace(/\s+/g, " ").trim(), Ts = (e) => {
|
|
1266
1266
|
la && console.warn(`[react-renderer] The leaf tokens composing "${e}" could not be resolved to a measurable font. Measurement falls back to the token's default; paint may disagree. Leaf overrides must be concrete values (px/em sizes, numeric weights, unitless line-heights).`);
|
|
1267
|
-
},
|
|
1267
|
+
}, Ns = {
|
|
1268
1268
|
transparent: "transparent",
|
|
1269
1269
|
white: "#FFFFFF",
|
|
1270
1270
|
black: "#000000",
|
|
@@ -1291,7 +1291,7 @@ var cs = "_1suo8ub0", Pn = (e, t, r) => {
|
|
|
1291
1291
|
purple50: "#7B56EA",
|
|
1292
1292
|
purple30: "#E093FE",
|
|
1293
1293
|
greyGradient80: "linear-gradient(to top, #222429, #31353f)"
|
|
1294
|
-
},
|
|
1294
|
+
}, Ls = {
|
|
1295
1295
|
textPrimary: x.grey0,
|
|
1296
1296
|
textSecondary: Y(x.textPrimary, 0.8),
|
|
1297
1297
|
textDisabled: Y(x.textPrimary, 0.5),
|
|
@@ -1345,10 +1345,10 @@ var cs = "_1suo8ub0", Pn = (e, t, r) => {
|
|
|
1345
1345
|
canvasGray: "#a8a29e",
|
|
1346
1346
|
canvasInverse: "#000000"
|
|
1347
1347
|
}, Ds = {
|
|
1348
|
-
...Ls,
|
|
1349
1348
|
...Ns,
|
|
1350
|
-
...
|
|
1349
|
+
...Ls,
|
|
1351
1350
|
...Nn,
|
|
1351
|
+
...Ln,
|
|
1352
1352
|
...Fn,
|
|
1353
1353
|
...Mn,
|
|
1354
1354
|
...Ms,
|
|
@@ -1384,21 +1384,21 @@ var cs = "_1suo8ub0", Pn = (e, t, r) => {
|
|
|
1384
1384
|
headlineRowGap: Fe(r.headlineRowGap, 2),
|
|
1385
1385
|
fonts: Bs(r, n)
|
|
1386
1386
|
};
|
|
1387
|
-
},
|
|
1387
|
+
}, Hs = Object.freeze(Un("light"));
|
|
1388
1388
|
function Fe(e, t) {
|
|
1389
1389
|
const r = e.trim();
|
|
1390
1390
|
if (!/^-?\d*\.?\d+(px)?$/.test(r)) return t;
|
|
1391
1391
|
const n = Number.parseFloat(r);
|
|
1392
1392
|
return Number.isFinite(n) ? n : t;
|
|
1393
1393
|
}
|
|
1394
|
-
var Qn = U(
|
|
1394
|
+
var Qn = U(Hs), Os = ({ metrics: e, children: t }) => /* @__PURE__ */ s(Qn.Provider, {
|
|
1395
1395
|
value: e,
|
|
1396
1396
|
children: t
|
|
1397
|
-
}), Ie = () => D(Qn),
|
|
1397
|
+
}), Ie = () => D(Qn), N = () => {
|
|
1398
1398
|
const { colorScheme: e } = G(), t = C((r) => r.chrome);
|
|
1399
1399
|
return A(() => gt({ colorScheme: e }).chromeReaders(t), [t, e]);
|
|
1400
1400
|
}, Gs = (e) => {
|
|
1401
|
-
const t =
|
|
1401
|
+
const t = N(), r = C((n) => n.config.appearance.textScale);
|
|
1402
1402
|
return A(() => Ai(t, e, r), [
|
|
1403
1403
|
t,
|
|
1404
1404
|
e,
|
|
@@ -1453,7 +1453,7 @@ var Qn = U(Os), Hs = ({ metrics: e, children: t }) => /* @__PURE__ */ s(Qn.Provi
|
|
|
1453
1453
|
const t = Ys();
|
|
1454
1454
|
return t ? (t.style.font = e, t.getBoundingClientRect().width) : null;
|
|
1455
1455
|
}, Ys = () => typeof document > "u" ? null : (ae || (ae = document.createElement("span"), ae.style.position = "absolute", ae.style.visibility = "hidden", ae.style.whiteSpace = "nowrap", ae.style.left = "-9999px", ae.textContent = Yn, document.body.appendChild(ae)), ae), zn = U(null), Ks = ({ children: e, measurer: t }) => {
|
|
1456
|
-
const [r, n] =
|
|
1456
|
+
const [r, n] = O(null);
|
|
1457
1457
|
M(() => {
|
|
1458
1458
|
if (t !== void 0) return;
|
|
1459
1459
|
let a = !1;
|
|
@@ -1479,7 +1479,7 @@ var Qn = U(Os), Hs = ({ metrics: e, children: t }) => /* @__PURE__ */ s(Qn.Provi
|
|
|
1479
1479
|
} catch {
|
|
1480
1480
|
return new dr(new ha());
|
|
1481
1481
|
}
|
|
1482
|
-
}, jn = U(null),
|
|
1482
|
+
}, jn = U(null), Af = jn.Provider, js = null, de = () => D(jn) ?? (js ??= Ul()), Xs = "_16vokpr0", qs = (e, t) => e.mapping.y !== void 0 != (t.mainAxis === "y"), Js = (e, t) => {
|
|
1483
1483
|
const r = k(e ? 1 - t : t);
|
|
1484
1484
|
return e ? {
|
|
1485
1485
|
x1: "0%",
|
|
@@ -1653,7 +1653,7 @@ var rl = "_2qyyu60", nl = 2, ol = 12, al = 12, xr = 1, br = 2, il = 4, Xe = (e)
|
|
|
1653
1653
|
})
|
|
1654
1654
|
]
|
|
1655
1655
|
});
|
|
1656
|
-
return i ? /* @__PURE__ */ s(
|
|
1656
|
+
return i ? /* @__PURE__ */ s(H.svg, {
|
|
1657
1657
|
initial: !1,
|
|
1658
1658
|
transition: ne,
|
|
1659
1659
|
x: v,
|
|
@@ -1682,7 +1682,7 @@ var rl = "_2qyyu60", nl = 2, ol = 12, al = 12, xr = 1, br = 2, il = 4, Xe = (e)
|
|
|
1682
1682
|
children: a
|
|
1683
1683
|
})]
|
|
1684
1684
|
});
|
|
1685
|
-
return i ? /* @__PURE__ */ s(
|
|
1685
|
+
return i ? /* @__PURE__ */ s(H.svg, {
|
|
1686
1686
|
initial: !1,
|
|
1687
1687
|
transition: ne,
|
|
1688
1688
|
y: d,
|
|
@@ -1732,7 +1732,7 @@ var rl = "_2qyyu60", nl = 2, ol = 12, al = 12, xr = 1, br = 2, il = 4, Xe = (e)
|
|
|
1732
1732
|
});
|
|
1733
1733
|
}, pl = ({ strokeWidth: e, lineType: t, isHorizontalLine: r, position: n, lineColor: o, shouldAnimateTransitions: a }) => {
|
|
1734
1734
|
const i = Js(r, n), l = Zs(t, e);
|
|
1735
|
-
return a ? /* @__PURE__ */ s(
|
|
1735
|
+
return a ? /* @__PURE__ */ s(H.line, {
|
|
1736
1736
|
initial: !1,
|
|
1737
1737
|
transition: ne,
|
|
1738
1738
|
animate: {
|
|
@@ -1778,15 +1778,15 @@ var rl = "_2qyyu60", nl = 2, ol = 12, al = 12, xr = 1, br = 2, il = 4, Xe = (e)
|
|
|
1778
1778
|
a
|
|
1779
1779
|
]), b = T(t), R = t.data.getFirst();
|
|
1780
1780
|
if (!R) return null;
|
|
1781
|
-
const S = b.get("color", R), P = nn(S), E = qs(t, r),
|
|
1782
|
-
return
|
|
1781
|
+
const S = b.get("color", R), P = nn(S), E = qs(t, r), L = E ? te(R) : q(R);
|
|
1782
|
+
return L === null ? null : /* @__PURE__ */ w("g", {
|
|
1783
1783
|
"data-geom": "rule",
|
|
1784
1784
|
className: Xs,
|
|
1785
1785
|
children: [/* @__PURE__ */ s(pl, {
|
|
1786
1786
|
strokeWidth: b.get("strokeWidth", R),
|
|
1787
1787
|
lineType: b.get("lineType", R),
|
|
1788
1788
|
isHorizontalLine: E,
|
|
1789
|
-
position:
|
|
1789
|
+
position: L,
|
|
1790
1790
|
lineColor: S,
|
|
1791
1791
|
shouldAnimateTransitions: o
|
|
1792
1792
|
}), h !== null && /* @__PURE__ */ s(fl, {
|
|
@@ -1795,7 +1795,7 @@ var rl = "_2qyyu60", nl = 2, ol = 12, al = 12, xr = 1, br = 2, il = 4, Xe = (e)
|
|
|
1795
1795
|
textWidth: y,
|
|
1796
1796
|
labelPosition: t.params.labelPosition,
|
|
1797
1797
|
isHorizontalLine: E,
|
|
1798
|
-
position:
|
|
1798
|
+
position: L,
|
|
1799
1799
|
color: S,
|
|
1800
1800
|
textColor: P,
|
|
1801
1801
|
symbolShape: g,
|
|
@@ -1816,7 +1816,7 @@ var rl = "_2qyyu60", nl = 2, ol = 12, al = 12, xr = 1, br = 2, il = 4, Xe = (e)
|
|
|
1816
1816
|
renderHoverCompanions: () => null
|
|
1817
1817
|
}, yl = Z(function({ layer: t, shouldAnimateTransitions: r, intro: n }) {
|
|
1818
1818
|
const o = n?.type === "fade" ? n : null, a = T(t), i = A(() => {
|
|
1819
|
-
const l =
|
|
1819
|
+
const l = Ha(t.data, t.mapping, t.id), c = [];
|
|
1820
1820
|
for (const u of t.data) {
|
|
1821
1821
|
const d = _r(u);
|
|
1822
1822
|
d && $r(u) && c.push({
|
|
@@ -1835,13 +1835,13 @@ var rl = "_2qyyu60", nl = 2, ol = 12, al = 12, xr = 1, br = 2, il = 4, Xe = (e)
|
|
|
1835
1835
|
a,
|
|
1836
1836
|
r
|
|
1837
1837
|
]);
|
|
1838
|
-
return o ? /* @__PURE__ */ s(
|
|
1838
|
+
return o ? /* @__PURE__ */ s(H.g, {
|
|
1839
1839
|
initial: { opacity: 0 },
|
|
1840
1840
|
animate: { opacity: 1 },
|
|
1841
1841
|
transition: Ui(o),
|
|
1842
1842
|
children: i
|
|
1843
1843
|
}) : i;
|
|
1844
|
-
}), xl = ({ isAnimated: e, ...t }) => e ? /* @__PURE__ */ s(
|
|
1844
|
+
}), xl = ({ isAnimated: e, ...t }) => e ? /* @__PURE__ */ s(H.rect, {
|
|
1845
1845
|
initial: !1,
|
|
1846
1846
|
style: { transformBox: "view-box" },
|
|
1847
1847
|
transition: ne,
|
|
@@ -1916,7 +1916,7 @@ var rl = "_2qyyu60", nl = 2, ol = 12, al = 12, xr = 1, br = 2, il = 4, Xe = (e)
|
|
|
1916
1916
|
"data-testid": "hovered-point",
|
|
1917
1917
|
children: r
|
|
1918
1918
|
}) : r;
|
|
1919
|
-
},
|
|
1919
|
+
}, Ht = (e) => {
|
|
1920
1920
|
const [t, ...r] = e;
|
|
1921
1921
|
if (!t) return "";
|
|
1922
1922
|
const n = r.map((o) => `L ${o.x} ${o.y}`).join(" ");
|
|
@@ -1977,9 +1977,9 @@ var rl = "_2qyyu60", nl = 2, ol = 12, al = 12, xr = 1, br = 2, il = 4, Xe = (e)
|
|
|
1977
1977
|
}
|
|
1978
1978
|
if (t.length === 0) return null;
|
|
1979
1979
|
t.sort((a, i) => a.angle - i.angle);
|
|
1980
|
-
const r = t.map((a) => a.outer), n = t.map((a) => a.inner), o =
|
|
1980
|
+
const r = t.map((a) => a.outer), n = t.map((a) => a.inner), o = Ht(r);
|
|
1981
1981
|
return {
|
|
1982
|
-
fillPath: n.some((a) => a.x !== 0 || a.y !== 0) ? `${o} ${
|
|
1982
|
+
fillPath: n.some((a) => a.x !== 0 || a.y !== 0) ? `${o} ${Ht([...n].reverse())}` : o,
|
|
1983
1983
|
outlinePath: o
|
|
1984
1984
|
};
|
|
1985
1985
|
}, kl = ({ layer: e, primary: t, companions: r }) => {
|
|
@@ -2122,7 +2122,7 @@ var rl = "_2qyyu60", nl = 2, ol = 12, al = 12, xr = 1, br = 2, il = 4, Xe = (e)
|
|
|
2122
2122
|
children: S
|
|
2123
2123
|
})
|
|
2124
2124
|
}, d.key);
|
|
2125
|
-
const
|
|
2125
|
+
const L = ge({
|
|
2126
2126
|
...d.union,
|
|
2127
2127
|
cornerRadius: P
|
|
2128
2128
|
});
|
|
@@ -2131,11 +2131,11 @@ var rl = "_2qyyu60", nl = 2, ol = 12, al = 12, xr = 1, br = 2, il = 4, Xe = (e)
|
|
|
2131
2131
|
children: [
|
|
2132
2132
|
/* @__PURE__ */ s("clipPath", {
|
|
2133
2133
|
id: E,
|
|
2134
|
-
children: /* @__PURE__ */ s("path", { d:
|
|
2134
|
+
children: /* @__PURE__ */ s("path", { d: L })
|
|
2135
2135
|
}),
|
|
2136
2136
|
S,
|
|
2137
2137
|
R !== void 0 && /* @__PURE__ */ s("path", {
|
|
2138
|
-
d:
|
|
2138
|
+
d: L,
|
|
2139
2139
|
fill: "none",
|
|
2140
2140
|
opacity: m,
|
|
2141
2141
|
...R
|
|
@@ -2153,9 +2153,9 @@ var rl = "_2qyyu60", nl = 2, ol = 12, al = 12, xr = 1, br = 2, il = 4, Xe = (e)
|
|
|
2153
2153
|
cornerRadius: o
|
|
2154
2154
|
}) ?? ""), S = Dt(a, l, c);
|
|
2155
2155
|
M(() => {
|
|
2156
|
-
const E = S(),
|
|
2156
|
+
const E = S(), L = [ie(m, e, E), ie(p, t, E)];
|
|
2157
2157
|
return () => {
|
|
2158
|
-
for (const F of
|
|
2158
|
+
for (const F of L) F.stop();
|
|
2159
2159
|
};
|
|
2160
2160
|
}, [
|
|
2161
2161
|
m,
|
|
@@ -2166,9 +2166,9 @@ var rl = "_2qyyu60", nl = 2, ol = 12, al = 12, xr = 1, br = 2, il = 4, Xe = (e)
|
|
|
2166
2166
|
]);
|
|
2167
2167
|
const P = Dt(a, l, u);
|
|
2168
2168
|
return M(() => {
|
|
2169
|
-
const E = P(),
|
|
2169
|
+
const E = P(), L = [ie(y, r, E), ie(b, n, E)];
|
|
2170
2170
|
return () => {
|
|
2171
|
-
for (const F of
|
|
2171
|
+
for (const F of L) F.stop();
|
|
2172
2172
|
};
|
|
2173
2173
|
}, [
|
|
2174
2174
|
y,
|
|
@@ -2187,14 +2187,14 @@ var rl = "_2qyyu60", nl = 2, ol = 12, al = 12, xr = 1, br = 2, il = 4, Xe = (e)
|
|
|
2187
2187
|
}) ?? "");
|
|
2188
2188
|
};
|
|
2189
2189
|
E();
|
|
2190
|
-
const
|
|
2190
|
+
const L = [
|
|
2191
2191
|
m,
|
|
2192
2192
|
p,
|
|
2193
2193
|
y,
|
|
2194
2194
|
b
|
|
2195
2195
|
].map((F) => F.on("change", E));
|
|
2196
2196
|
return () => {
|
|
2197
|
-
for (const F of
|
|
2197
|
+
for (const F of L) F();
|
|
2198
2198
|
};
|
|
2199
2199
|
}, [
|
|
2200
2200
|
m,
|
|
@@ -2206,7 +2206,7 @@ var rl = "_2qyyu60", nl = 2, ol = 12, al = 12, xr = 1, br = 2, il = 4, Xe = (e)
|
|
|
2206
2206
|
]), R;
|
|
2207
2207
|
}, El = ({ pathProps: e, ...t }) => {
|
|
2208
2208
|
const r = Jn(t);
|
|
2209
|
-
return /* @__PURE__ */ s(
|
|
2209
|
+
return /* @__PURE__ */ s(H.path, {
|
|
2210
2210
|
d: r,
|
|
2211
2211
|
transition: ne,
|
|
2212
2212
|
...e
|
|
@@ -2216,10 +2216,10 @@ var rl = "_2qyyu60", nl = 2, ol = 12, al = 12, xr = 1, br = 2, il = 4, Xe = (e)
|
|
|
2216
2216
|
return /* @__PURE__ */ w(B, { children: [
|
|
2217
2217
|
/* @__PURE__ */ s("clipPath", {
|
|
2218
2218
|
id: e,
|
|
2219
|
-
children: /* @__PURE__ */ s(
|
|
2219
|
+
children: /* @__PURE__ */ s(H.path, { d: a })
|
|
2220
2220
|
}),
|
|
2221
2221
|
n,
|
|
2222
|
-
t !== void 0 && /* @__PURE__ */ s(
|
|
2222
|
+
t !== void 0 && /* @__PURE__ */ s(H.path, {
|
|
2223
2223
|
d: a,
|
|
2224
2224
|
fill: "none",
|
|
2225
2225
|
opacity: r,
|
|
@@ -2287,7 +2287,7 @@ var rl = "_2qyyu60", nl = 2, ol = 12, al = 12, xr = 1, br = 2, il = 4, Xe = (e)
|
|
|
2287
2287
|
}) ?? v : v, E = f === void 0 ? null : {
|
|
2288
2288
|
color: f,
|
|
2289
2289
|
...ze(m)
|
|
2290
|
-
},
|
|
2290
|
+
}, L = E === null ? "" : Rr(d, Nl(S));
|
|
2291
2291
|
return /* @__PURE__ */ w("g", {
|
|
2292
2292
|
clipPath: `url(#${o})`,
|
|
2293
2293
|
"data-testid": "arc-segment",
|
|
@@ -2301,8 +2301,8 @@ var rl = "_2qyyu60", nl = 2, ol = 12, al = 12, xr = 1, br = 2, il = 4, Xe = (e)
|
|
|
2301
2301
|
fill: g,
|
|
2302
2302
|
opacity: h
|
|
2303
2303
|
}),
|
|
2304
|
-
E !== null &&
|
|
2305
|
-
d:
|
|
2304
|
+
E !== null && L !== "" && /* @__PURE__ */ s("path", {
|
|
2305
|
+
d: L,
|
|
2306
2306
|
fill: "none",
|
|
2307
2307
|
opacity: h,
|
|
2308
2308
|
...Ge(E.color, E.separatorWidth)
|
|
@@ -2382,12 +2382,12 @@ var rl = "_2qyyu60", nl = 2, ol = 12, al = 12, xr = 1, br = 2, il = 4, Xe = (e)
|
|
|
2382
2382
|
t.startSpoke && !i ? kr(r, o, a) : "",
|
|
2383
2383
|
t.endSpoke && !i ? kr(n, o, a) : ""
|
|
2384
2384
|
].filter(Boolean).join("");
|
|
2385
|
-
},
|
|
2385
|
+
}, Nl = (e) => ({
|
|
2386
2386
|
innerArc: !e.innerArc,
|
|
2387
2387
|
outerArc: !e.outerArc,
|
|
2388
2388
|
startSpoke: !e.startSpoke,
|
|
2389
2389
|
endSpoke: !e.endSpoke
|
|
2390
|
-
}),
|
|
2390
|
+
}), Ll = ({ layer: e, coordSystem: t, primary: r }) => {
|
|
2391
2391
|
const n = T(e), o = $n(A(() => Zn(e, t.bandAxis, n), [
|
|
2392
2392
|
e,
|
|
2393
2393
|
t.bandAxis,
|
|
@@ -2424,7 +2424,7 @@ var rl = "_2qyyu60", nl = 2, ol = 12, al = 12, xr = 1, br = 2, il = 4, Xe = (e)
|
|
|
2424
2424
|
sourceLayer: t,
|
|
2425
2425
|
coordSystem: r
|
|
2426
2426
|
}),
|
|
2427
|
-
renderHover: ({ layer: e, coordSystem: t, primary: r }) => /* @__PURE__ */ s(
|
|
2427
|
+
renderHover: ({ layer: e, coordSystem: t, primary: r }) => /* @__PURE__ */ s(Ll, {
|
|
2428
2428
|
layer: e,
|
|
2429
2429
|
coordSystem: t,
|
|
2430
2430
|
primary: r
|
|
@@ -2478,7 +2478,7 @@ var rl = "_2qyyu60", nl = 2, ol = 12, al = 12, xr = 1, br = 2, il = 4, Xe = (e)
|
|
|
2478
2478
|
point: J(n, o)
|
|
2479
2479
|
});
|
|
2480
2480
|
}
|
|
2481
|
-
return t.length === 0 ? null : (t.sort((r, n) => r.angle - n.angle),
|
|
2481
|
+
return t.length === 0 ? null : (t.sort((r, n) => r.angle - n.angle), Ht(t.map((r) => r.point)));
|
|
2482
2482
|
}, Dl = ({ layer: e, primary: t, companions: r }) => {
|
|
2483
2483
|
const n = T(e), o = pt(t.observation), a = A(() => to([...e.data.filter(ce.group, "eq", o)]), [e.data, o]);
|
|
2484
2484
|
if (!a) return null;
|
|
@@ -2513,7 +2513,7 @@ var rl = "_2qyyu60", nl = 2, ol = 12, al = 12, xr = 1, br = 2, il = 4, Xe = (e)
|
|
|
2513
2513
|
"data-testid": "hovered-line-point"
|
|
2514
2514
|
})
|
|
2515
2515
|
] });
|
|
2516
|
-
},
|
|
2516
|
+
}, Hl = {
|
|
2517
2517
|
geom: "line",
|
|
2518
2518
|
coord: "polar",
|
|
2519
2519
|
swatchShape: "line",
|
|
@@ -2534,7 +2534,7 @@ var rl = "_2qyyu60", nl = 2, ol = 12, al = 12, xr = 1, br = 2, il = 4, Xe = (e)
|
|
|
2534
2534
|
y: 1 - o
|
|
2535
2535
|
};
|
|
2536
2536
|
}
|
|
2537
|
-
},
|
|
2537
|
+
}, Ol = Z(function({ layer: t, shouldAnimateTransitions: r, intro: n }) {
|
|
2538
2538
|
const o = T(t), a = At(n?.type === "grow" && n.growAxis === "size" ? n : null, r);
|
|
2539
2539
|
return A(() => {
|
|
2540
2540
|
const i = a.activeIntro ? oe(t.data, t.mapping, t.id) : null, l = [];
|
|
@@ -2558,7 +2558,7 @@ var rl = "_2qyyu60", nl = 2, ol = 12, al = 12, xr = 1, br = 2, il = 4, Xe = (e)
|
|
|
2558
2558
|
geom: "point",
|
|
2559
2559
|
coord: "polar",
|
|
2560
2560
|
swatchShape: "circle",
|
|
2561
|
-
render: ({ layer: e, shouldAnimateTransitions: t, intro: r }) => /* @__PURE__ */ s(
|
|
2561
|
+
render: ({ layer: e, shouldAnimateTransitions: t, intro: r }) => /* @__PURE__ */ s(Ol, {
|
|
2562
2562
|
layer: e,
|
|
2563
2563
|
shouldAnimateTransitions: t,
|
|
2564
2564
|
intro: r
|
|
@@ -2584,7 +2584,7 @@ var rl = "_2qyyu60", nl = 2, ol = 12, al = 12, xr = 1, br = 2, il = 4, Xe = (e)
|
|
|
2584
2584
|
},
|
|
2585
2585
|
line: {
|
|
2586
2586
|
cartesian: ys,
|
|
2587
|
-
polar:
|
|
2587
|
+
polar: Hl
|
|
2588
2588
|
},
|
|
2589
2589
|
area: {
|
|
2590
2590
|
cartesian: ns,
|
|
@@ -2609,7 +2609,7 @@ function yt(e) {
|
|
|
2609
2609
|
function Vl(e) {
|
|
2610
2610
|
return e ? yt(e.render).overlay : !1;
|
|
2611
2611
|
}
|
|
2612
|
-
function
|
|
2612
|
+
function yf(e, t) {
|
|
2613
2613
|
return typeof e == "string" ? {
|
|
2614
2614
|
...t,
|
|
2615
2615
|
geom: e
|
|
@@ -2625,7 +2625,7 @@ function Ul(e = []) {
|
|
|
2625
2625
|
for (const r of e) (t[r.geom] ??= {})[r.coord] = r;
|
|
2626
2626
|
return (r, n) => t[r]?.[n] ?? null;
|
|
2627
2627
|
}
|
|
2628
|
-
var
|
|
2628
|
+
var Ot = (e) => {
|
|
2629
2629
|
const t = I(e);
|
|
2630
2630
|
return t.current = e, t;
|
|
2631
2631
|
}, Ql = () => {
|
|
@@ -2662,7 +2662,7 @@ var Ht = (e) => {
|
|
|
2662
2662
|
const { layers: t, coordSystem: r } = C(j((l) => ({
|
|
2663
2663
|
layers: l.layers,
|
|
2664
2664
|
coordSystem: l.coordSystem
|
|
2665
|
-
}))), n = Kl(t, r), [o] =
|
|
2665
|
+
}))), n = Kl(t, r), [o] = O(() => Ql()), a = I(null), i = I(null);
|
|
2666
2666
|
return i.current === null && (i.current = {
|
|
2667
2667
|
engine: n,
|
|
2668
2668
|
store: o,
|
|
@@ -2704,15 +2704,15 @@ var Xl = ({ hitTest: e, input: t }) => {
|
|
|
2704
2704
|
},
|
|
2705
2705
|
children: o
|
|
2706
2706
|
}), r), $l = ({ rect: e, children: t }) => {
|
|
2707
|
-
const [r] =
|
|
2707
|
+
const [r] = O(no);
|
|
2708
2708
|
return /* @__PURE__ */ s(Zl, {
|
|
2709
2709
|
rect: e,
|
|
2710
|
-
zIndex:
|
|
2710
|
+
zIndex: He.panelOverlay,
|
|
2711
2711
|
container: r,
|
|
2712
2712
|
children: t
|
|
2713
2713
|
});
|
|
2714
2714
|
}, _l = (e, t) => {
|
|
2715
|
-
const r =
|
|
2715
|
+
const r = Ot(e), n = Ot(t), o = I(null), a = I(null), i = A(() => {
|
|
2716
2716
|
const l = () => {
|
|
2717
2717
|
a.current !== null && (clearTimeout(a.current), a.current = null), o.current = null;
|
|
2718
2718
|
}, c = () => {
|
|
@@ -2740,7 +2740,7 @@ var Xl = ({ hitTest: e, input: t }) => {
|
|
|
2740
2740
|
height: 0,
|
|
2741
2741
|
isDefault: !0
|
|
2742
2742
|
}, oo = ({ debounce: e = 0, onResize: t } = {}) => {
|
|
2743
|
-
const [r, n] =
|
|
2743
|
+
const [r, n] = O(ec), o = I(null), a = _l((u) => {
|
|
2744
2744
|
const d = o.current;
|
|
2745
2745
|
d && d.width === u.width && d.height === u.height || (o.current = {
|
|
2746
2746
|
width: u.width,
|
|
@@ -2763,7 +2763,7 @@ var Xl = ({ hitTest: e, input: t }) => {
|
|
|
2763
2763
|
};
|
|
2764
2764
|
};
|
|
2765
2765
|
function tc() {
|
|
2766
|
-
const [e, t] =
|
|
2766
|
+
const [e, t] = O(null), r = I(null), n = I(null), o = I(null), a = se(() => {
|
|
2767
2767
|
o.current = null;
|
|
2768
2768
|
const u = n.current;
|
|
2769
2769
|
if (!u) return;
|
|
@@ -3067,7 +3067,7 @@ var nc = ({ render: e, input: t }) => {
|
|
|
3067
3067
|
o,
|
|
3068
3068
|
n
|
|
3069
3069
|
]);
|
|
3070
|
-
return /* @__PURE__ */ s(
|
|
3070
|
+
return /* @__PURE__ */ s(Ni, {
|
|
3071
3071
|
locale: o,
|
|
3072
3072
|
timeZone: "UTC",
|
|
3073
3073
|
children: /* @__PURE__ */ s(ao.Provider, {
|
|
@@ -3083,7 +3083,7 @@ var nc = ({ render: e, input: t }) => {
|
|
|
3083
3083
|
if (e !== "none")
|
|
3084
3084
|
return `drop-shadow(${e.offsetX}px ${e.offsetY}px ${e.blur}px ${e.color})`;
|
|
3085
3085
|
}, wc = () => {
|
|
3086
|
-
const e =
|
|
3086
|
+
const e = N(), t = C((r) => r.config.appearance.textScale);
|
|
3087
3087
|
return A(() => wi(e, t), [e, t]);
|
|
3088
3088
|
}, Sc = "bow4tg0", kc = "bow4tg1", Rc = "bow4tg2", Cc = "bow4tg3", Ec = "bow4tg4", lo = "_1ii3bsb0", Pc = "_1ii3bsb1", co = U({
|
|
3089
3089
|
colorScheme: "light",
|
|
@@ -3134,14 +3134,14 @@ var nc = ({ render: e, input: t }) => {
|
|
|
3134
3134
|
technical: "'PT Mono', 'Courier New', monospace",
|
|
3135
3135
|
handwritten: "'Permanent Marker', cursive",
|
|
3136
3136
|
fineliner: "'Intruding Cat', cursive"
|
|
3137
|
-
},
|
|
3137
|
+
}, Nc = (e) => {
|
|
3138
3138
|
const t = e !== null && typeof e == "object" ? e.fontFamily : e;
|
|
3139
3139
|
return typeof t == "string" && t.length > 0 ? t : void 0;
|
|
3140
3140
|
}, Cr = (e) => {
|
|
3141
|
-
const t =
|
|
3141
|
+
const t = Nc(e);
|
|
3142
3142
|
if (t !== void 0)
|
|
3143
3143
|
return Tc[t] ?? t;
|
|
3144
|
-
},
|
|
3144
|
+
}, Lc = "_1cocly40", Re = ({ content: e }) => /* @__PURE__ */ s(B, { children: uo(e.content ?? [e]) }), uo = (e) => e.map((t, r) => Mc(t, r)), Mc = (e, t) => {
|
|
3145
3145
|
if (e.type === "text") return Fc(e, t);
|
|
3146
3146
|
if (e.type === "hardBreak" || e.type === "hard_break") return /* @__PURE__ */ s("br", {}, t);
|
|
3147
3147
|
const r = e.content ? uo(e.content) : null;
|
|
@@ -3194,7 +3194,7 @@ var nc = ({ render: e, input: t }) => {
|
|
|
3194
3194
|
case "link": {
|
|
3195
3195
|
const n = xt(e.attrs?.href);
|
|
3196
3196
|
return Yt(n) ? /* @__PURE__ */ s("a", {
|
|
3197
|
-
className:
|
|
3197
|
+
className: Lc,
|
|
3198
3198
|
href: n,
|
|
3199
3199
|
rel: "noopener noreferrer",
|
|
3200
3200
|
target: "_blank",
|
|
@@ -3202,7 +3202,7 @@ var nc = ({ render: e, input: t }) => {
|
|
|
3202
3202
|
}, r) : /* @__PURE__ */ s("span", { children: t }, r);
|
|
3203
3203
|
}
|
|
3204
3204
|
case "textStyle": {
|
|
3205
|
-
const n =
|
|
3205
|
+
const n = Hc(e.attrs);
|
|
3206
3206
|
return n ? /* @__PURE__ */ s("span", {
|
|
3207
3207
|
style: n,
|
|
3208
3208
|
children: t
|
|
@@ -3211,15 +3211,15 @@ var nc = ({ render: e, input: t }) => {
|
|
|
3211
3211
|
default:
|
|
3212
3212
|
return /* @__PURE__ */ s("span", { children: t }, r);
|
|
3213
3213
|
}
|
|
3214
|
-
},
|
|
3214
|
+
}, Hc = (e) => {
|
|
3215
3215
|
if (!e) return null;
|
|
3216
3216
|
const t = {}, r = xt(e.color);
|
|
3217
3217
|
r && (t.color = r);
|
|
3218
3218
|
const n = Cr(e.font) ?? Cr(e.fontFamily);
|
|
3219
3219
|
n && (t.fontFamily = n);
|
|
3220
|
-
const o =
|
|
3220
|
+
const o = Oc(e.fontSize);
|
|
3221
3221
|
return o && (t.fontSize = o), Object.keys(t).length > 0 ? t : null;
|
|
3222
|
-
},
|
|
3222
|
+
}, Oc = (e) => typeof e == "number" && Number.isFinite(e) ? `${e / 10}em` : xt(e), xt = (e) => typeof e == "string" && e.length > 0 ? e : void 0, Gc = (e) => typeof e != "number" ? 3 : e < 1 ? 1 : e > 3 ? 3 : Math.round(e), Wc = (e, t, r, n) => {
|
|
3223
3223
|
const o = ho(n);
|
|
3224
3224
|
switch (e) {
|
|
3225
3225
|
case 1:
|
|
@@ -3248,7 +3248,7 @@ function Ve(e) {
|
|
|
3248
3248
|
}
|
|
3249
3249
|
var Vc = "_19519k80";
|
|
3250
3250
|
var Uc = "_19519k82", Qc = "_19519k83", Yc = "_19519k85", Kc = "_19519k86", zc = "_19519k87", jc = "_19519k88", Xc = (e) => {
|
|
3251
|
-
const { overlayRef: t } = me(), r = I(null), [n, o] =
|
|
3251
|
+
const { overlayRef: t } = me(), r = I(null), [n, o] = O(!1), a = Ot(e);
|
|
3252
3252
|
return M(() => {
|
|
3253
3253
|
const i = t.current;
|
|
3254
3254
|
if (!i) return;
|
|
@@ -3397,12 +3397,12 @@ var Uc = "_19519k82", Qc = "_19519k83", Yc = "_19519k85", Kc = "_19519k86", zc =
|
|
|
3397
3397
|
open: e,
|
|
3398
3398
|
placement: t !== null ? t.placement : "right",
|
|
3399
3399
|
middleware: t !== null ? [
|
|
3400
|
-
|
|
3400
|
+
Lt(ca),
|
|
3401
3401
|
Mt(nt),
|
|
3402
|
-
|
|
3402
|
+
Nt(nt)
|
|
3403
3403
|
] : [
|
|
3404
|
-
|
|
3405
|
-
|
|
3404
|
+
Lt(qc),
|
|
3405
|
+
Nt(nt),
|
|
3406
3406
|
Mt(nt)
|
|
3407
3407
|
],
|
|
3408
3408
|
elements: { reference: r }
|
|
@@ -3446,7 +3446,7 @@ var Uc = "_19519k82", Qc = "_19519k83", Yc = "_19519k85", Kc = "_19519k86", zc =
|
|
|
3446
3446
|
layers: i.layers,
|
|
3447
3447
|
coordSystem: i.coordSystem,
|
|
3448
3448
|
scales: i.scales
|
|
3449
|
-
}))), [a] =
|
|
3449
|
+
}))), [a] = O(() => ld({
|
|
3450
3450
|
layers: r,
|
|
3451
3451
|
coordSystem: n,
|
|
3452
3452
|
scales: o,
|
|
@@ -3457,7 +3457,7 @@ var Uc = "_19519k82", Qc = "_19519k83", Yc = "_19519k85", Kc = "_19519k86", zc =
|
|
|
3457
3457
|
children: t
|
|
3458
3458
|
});
|
|
3459
3459
|
}, id = () => {
|
|
3460
|
-
const { introEndsAtMs: e } = D(_t), [t] =
|
|
3460
|
+
const { introEndsAtMs: e } = D(_t), [t] = O(() => cd(e) / 1e3);
|
|
3461
3461
|
return t;
|
|
3462
3462
|
}, sd = (e) => {
|
|
3463
3463
|
const { plansByLayerId: t, coordKey: r } = D(_t), n = C((o) => vo(o.coordSystem));
|
|
@@ -3486,14 +3486,14 @@ var Uc = "_19519k82", Qc = "_19519k83", Yc = "_19519k85", Kc = "_19519k86", zc =
|
|
|
3486
3486
|
introEndsAtMs: performance.now() + i * 1e3
|
|
3487
3487
|
};
|
|
3488
3488
|
}, cd = (e) => Math.max(0, e - performance.now()), vo = (e) => e.type === "cartesian" ? `cartesian-${e.mainAxis}` : e.type, go = () => {
|
|
3489
|
-
const e =
|
|
3489
|
+
const e = N(), t = C((r) => r.config.appearance.textScale);
|
|
3490
3490
|
return A(() => {
|
|
3491
3491
|
const r = {};
|
|
3492
3492
|
for (const n of Wt) r[n] = si(e, n, t);
|
|
3493
3493
|
return r;
|
|
3494
3494
|
}, [e, t]);
|
|
3495
3495
|
}, bt = () => {
|
|
3496
|
-
const e =
|
|
3496
|
+
const e = N(), t = C((r) => r.config.appearance.textScale);
|
|
3497
3497
|
return A(() => {
|
|
3498
3498
|
const r = {};
|
|
3499
3499
|
for (const n of ua) {
|
|
@@ -3504,23 +3504,23 @@ var Uc = "_19519k82", Qc = "_19519k83", Yc = "_19519k85", Kc = "_19519k86", zc =
|
|
|
3504
3504
|
return r;
|
|
3505
3505
|
}, [e, t]);
|
|
3506
3506
|
}, fo = () => {
|
|
3507
|
-
const e =
|
|
3507
|
+
const e = N(), t = C((r) => r.config.appearance.textScale);
|
|
3508
3508
|
return A(() => (r) => hi(e, r, t), [e, t]);
|
|
3509
3509
|
}, po = () => {
|
|
3510
|
-
const e =
|
|
3510
|
+
const e = N(), t = C((r) => r.config.appearance.textScale);
|
|
3511
3511
|
return A(() => vi(e, t), [e, t]);
|
|
3512
3512
|
}, er = () => {
|
|
3513
|
-
const e =
|
|
3513
|
+
const e = N(), t = C((r) => r.config.appearance.textScale);
|
|
3514
3514
|
return A(() => pi(e, t), [e, t]);
|
|
3515
3515
|
}, tr = () => {
|
|
3516
|
-
const e =
|
|
3516
|
+
const e = N(), t = C((r) => r.config.appearance.textScale);
|
|
3517
3517
|
return A(() => {
|
|
3518
3518
|
const r = {};
|
|
3519
3519
|
for (const n of Wt) r[n] = xi(e, n, t);
|
|
3520
3520
|
return r;
|
|
3521
3521
|
}, [e, t]);
|
|
3522
3522
|
}, mo = () => {
|
|
3523
|
-
const e =
|
|
3523
|
+
const e = N();
|
|
3524
3524
|
return A(() => {
|
|
3525
3525
|
const t = {};
|
|
3526
3526
|
for (const r of Wt) t[r] = bi(e, r);
|
|
@@ -3592,7 +3592,7 @@ var Uc = "_19519k82", Qc = "_19519k83", Yc = "_19519k85", Kc = "_19519k86", zc =
|
|
|
3592
3592
|
default:
|
|
3593
3593
|
return t;
|
|
3594
3594
|
}
|
|
3595
|
-
}, yd = (e) => e.fontSize * (e.lineHeight ?? ws), xo = (e) => e.reduce((t, r) => t + r, 0), xd = (e, t) =>
|
|
3595
|
+
}, yd = (e) => e.fontSize * (e.lineHeight ?? ws), xo = (e) => e.reduce((t, r) => t + r, 0), xd = (e, t) => On(e, t).size * e.lineHeight, bd = (e, t) => e ? t : 0, ht = (e, t, r) => {
|
|
3596
3596
|
if (r) {
|
|
3597
3597
|
const n = Number(e.size);
|
|
3598
3598
|
return Number.isFinite(n) && n > 0 ? n : 0;
|
|
@@ -3617,7 +3617,7 @@ var Uc = "_19519k82", Qc = "_19519k83", Yc = "_19519k85", Kc = "_19519k86", zc =
|
|
|
3617
3617
|
});
|
|
3618
3618
|
return Math.max(...f) + g;
|
|
3619
3619
|
}, Sd = ({ textMeasurer: e, tickLabelStyles: t, familyDefault: r }) => (n, o) => e.measureText(n, z(t[o], r)), kd = Object.freeze({}), Rd = ({ textMeasurer: e, textScale: t, metrics: r, overrides: n = kd }) => {
|
|
3620
|
-
const o = go(), a = bt(), i = po(), l = er(), c = tr(), u = mo(), d =
|
|
3620
|
+
const o = go(), a = bt(), i = po(), l = er(), c = tr(), u = mo(), d = N(), v = I(n);
|
|
3621
3621
|
return v.current = n, A(() => {
|
|
3622
3622
|
if (!e) return null;
|
|
3623
3623
|
const g = r.fonts.familyDefault, h = {
|
|
@@ -3732,7 +3732,7 @@ var Uc = "_19519k82", Qc = "_19519k83", Yc = "_19519k85", Kc = "_19519k86", zc =
|
|
|
3732
3732
|
return e ?? t;
|
|
3733
3733
|
}, Br = 0.5, bo = U(/* @__PURE__ */ new Map()), wo = U(() => {
|
|
3734
3734
|
}), So = U(/* @__PURE__ */ new Set()), Id = ({ children: e }) => {
|
|
3735
|
-
const [t, r] =
|
|
3735
|
+
const [t, r] = O(() => /* @__PURE__ */ new Map()), [n] = O(() => /* @__PURE__ */ new Set()), o = I(/* @__PURE__ */ new Map()), a = se((i, l, c) => {
|
|
3736
3736
|
const u = o.current.get(i) ?? /* @__PURE__ */ new Set();
|
|
3737
3737
|
if (c !== null) {
|
|
3738
3738
|
u.add(l), o.current.set(i, u), r((d) => Fd(d, i, c));
|
|
@@ -3750,8 +3750,8 @@ var Uc = "_19519k82", Qc = "_19519k83", Yc = "_19519k85", Kc = "_19519k86", zc =
|
|
|
3750
3750
|
})
|
|
3751
3751
|
})
|
|
3752
3752
|
});
|
|
3753
|
-
}, Td = () => D(bo),
|
|
3754
|
-
const t =
|
|
3753
|
+
}, Td = () => D(bo), Nd = () => D(wo), Ld = (e) => {
|
|
3754
|
+
const t = Nd(), r = V(), n = I(null);
|
|
3755
3755
|
return M(() => {
|
|
3756
3756
|
if (typeof ResizeObserver > "u") return;
|
|
3757
3757
|
const o = n.current;
|
|
@@ -3779,10 +3779,10 @@ var Uc = "_19519k82", Qc = "_19519k83", Yc = "_19519k85", Kc = "_19519k86", zc =
|
|
|
3779
3779
|
if (!e.has(t)) return e;
|
|
3780
3780
|
const r = new Map(e);
|
|
3781
3781
|
return r.delete(t), r;
|
|
3782
|
-
}, ko = "data-edit-kind",
|
|
3782
|
+
}, ko = "data-edit-kind", Hd = "data-edit-id", Od = "observation", Gd = /* @__PURE__ */ new Set(["annotation"]), Wd = (e) => Gd.has(e.kind), Vd = (e, t) => e === t ? !0 : e === null || t === null || e.kind !== t.kind ? !1 : e.id === t.id, qe = (e) => ({
|
|
3783
3783
|
[ko]: e.kind,
|
|
3784
|
-
[
|
|
3785
|
-
}), Ud = () => ({ [ko]:
|
|
3784
|
+
[Hd]: e.id
|
|
3785
|
+
}), Ud = () => ({ [ko]: Od }), xf = (e, t) => e !== null && e.annotationId === t ? e : null, Qd = (e, t) => e.annotationId === t.annotationId && e.translation.x === t.translation.x && e.translation.y === t.translation.y, bf = (e, t, r) => e !== null && e.annotationId === t && e.endpoint === r ? e : null, Yd = (e, t) => e.annotationId === t.annotationId && e.endpoint === t.endpoint && e.anchor.x === t.anchor.x && e.anchor.y === t.anchor.y, wf = (e, t, r) => e !== null && e.annotationId === t && e.endpoint === r ? e : null, Kd = (e, t) => e.annotationId === t.annotationId && e.endpoint === t.endpoint && ma(e.point.anchor, t.point.anchor), Sf = (e, t) => e !== null && e.annotationId === t ? e : null, zd = (e, t) => e.annotationId === t.annotationId && e.region.x === t.region.x && e.region.y === t.region.y && e.region.width === t.region.width && e.region.height === t.region.height, kf = (e, t) => e !== null && e.annotationId === t ? e : null, jd = (e, t) => e.annotationId === t.annotationId && e.at.x === t.at.x && e.width === t.width && e.shift === t.shift, Ue = ({ standingInteraction: e }, t) => e !== null && ve(e, t) ? e : null, Xd = (e, t) => {
|
|
3786
3786
|
if (e === null) return !1;
|
|
3787
3787
|
switch (t.kind) {
|
|
3788
3788
|
case "difference-arrow-endpoint-drag":
|
|
@@ -3819,13 +3819,13 @@ var Uc = "_19519k82", Qc = "_19519k83", Yc = "_19519k85", Kc = "_19519k86", zc =
|
|
|
3819
3819
|
...r.caret,
|
|
3820
3820
|
editor: t
|
|
3821
3821
|
} })
|
|
3822
|
-
})), rr = U(null), qd = Ro(),
|
|
3823
|
-
const [t] =
|
|
3822
|
+
})), rr = U(null), qd = Ro(), Rf = ({ children: e }) => {
|
|
3823
|
+
const [t] = O(() => Ro());
|
|
3824
3824
|
return /* @__PURE__ */ s(rr.Provider, {
|
|
3825
3825
|
value: t,
|
|
3826
3826
|
children: e
|
|
3827
3827
|
});
|
|
3828
|
-
},
|
|
3828
|
+
}, Cf = () => {
|
|
3829
3829
|
const e = D(rr);
|
|
3830
3830
|
if (e === null) throw new Error("useEditorStore must be used inside an <EditorProvider>.");
|
|
3831
3831
|
return e;
|
|
@@ -3964,7 +3964,7 @@ var iu = "vultop2", su = "vultop3", lu = "vultop4", cu = "vultop5", du = "vultop
|
|
|
3964
3964
|
};
|
|
3965
3965
|
return 0.2126 * n(e) + 0.7152 * n(t) + 0.0722 * n(r);
|
|
3966
3966
|
}, fu = (e, t, r = "full") => !e || t.width < 120 || t.height < 80 ? "hidden" : t.width < 200 || r === "mini" ? "mini" : "full", Eo = ({ visual: e, placement: t }) => {
|
|
3967
|
-
const { background: r } = ln(
|
|
3967
|
+
const { background: r } = ln(N()), n = hu(r);
|
|
3968
3968
|
return /* @__PURE__ */ w("a", {
|
|
3969
3969
|
className: Ye(au, e === "mini" && "vultop1", t === "footer" ? du : uu),
|
|
3970
3970
|
href: nu,
|
|
@@ -3988,7 +3988,7 @@ var iu = "vultop2", su = "vultop3", lu = "vultop4", cu = "vultop5", du = "vultop
|
|
|
3988
3988
|
Title: null,
|
|
3989
3989
|
Caption: null,
|
|
3990
3990
|
TextAnnotation: null
|
|
3991
|
-
}),
|
|
3991
|
+
}), Ef = ({ editors: e, children: t }) => /* @__PURE__ */ s(Po.Provider, {
|
|
3992
3992
|
value: e,
|
|
3993
3993
|
children: t
|
|
3994
3994
|
}), nr = () => D(Po);
|
|
@@ -4072,21 +4072,21 @@ var Pu = 22, Bu = ({ ref: e, headerRect: t, mode: r = "readonly", title: n, isTi
|
|
|
4072
4072
|
className: "_4dlrid1",
|
|
4073
4073
|
children: n
|
|
4074
4074
|
}) : /* @__PURE__ */ s(Re, { content: n }))] }), Tu = (e) => {
|
|
4075
|
-
const t =
|
|
4075
|
+
const t = N(), r = C((n) => n.config.appearance.textScale);
|
|
4076
4076
|
return A(() => at(t, r, e), [
|
|
4077
4077
|
t,
|
|
4078
4078
|
r,
|
|
4079
4079
|
e
|
|
4080
4080
|
]);
|
|
4081
4081
|
}, Bo = () => {
|
|
4082
|
-
const e =
|
|
4082
|
+
const e = N();
|
|
4083
4083
|
return A(() => dn(e), [e]);
|
|
4084
|
-
},
|
|
4085
|
-
groupRow: () =>
|
|
4084
|
+
}, Nu = "_1u9qprb0", Lu = "_1u9qprb1", Mu = /* @__PURE__ */ Mi({
|
|
4085
|
+
groupRow: () => Hu,
|
|
4086
4086
|
item: () => Io,
|
|
4087
4087
|
trendRow: () => Du,
|
|
4088
4088
|
valueRow: () => Fu
|
|
4089
|
-
}), Fu = "_9aen060", Du = "_9aen061",
|
|
4089
|
+
}), Fu = "_9aen060", Du = "_9aen061", Hu = "_9aen062", Io = "_9aen063", Ou = {
|
|
4090
4090
|
xxs: 8,
|
|
4091
4091
|
xs: 12,
|
|
4092
4092
|
sm: 16,
|
|
@@ -4097,7 +4097,7 @@ var Pu = 22, Bu = ({ ref: e, headerRect: t, mode: r = "readonly", title: n, isTi
|
|
|
4097
4097
|
primary: "asohov1 asohov0",
|
|
4098
4098
|
secondary: "asohov2 asohov0"
|
|
4099
4099
|
}, To = ({ children: e, title: t, variant: r = "primary", size: n = "sm", ...o }) => {
|
|
4100
|
-
const a = V(), i =
|
|
4100
|
+
const a = V(), i = Ou[n];
|
|
4101
4101
|
return /* @__PURE__ */ w("svg", {
|
|
4102
4102
|
className: Gu[r],
|
|
4103
4103
|
"aria-labelledby": t ? a : void 0,
|
|
@@ -4141,9 +4141,9 @@ var zu = ({ segment: e, itemStyle: t }) => {
|
|
|
4141
4141
|
height: e.size
|
|
4142
4142
|
});
|
|
4143
4143
|
if (e.kind === "trendArrow") {
|
|
4144
|
-
const a =
|
|
4144
|
+
const a = No(t, e.direction);
|
|
4145
4145
|
return /* @__PURE__ */ s("div", {
|
|
4146
|
-
className:
|
|
4146
|
+
className: Oe(Ku, e.direction === "down" && "n7clvo4"),
|
|
4147
4147
|
style: {
|
|
4148
4148
|
color: a,
|
|
4149
4149
|
backgroundColor: e.direction === "flat" ? Y(x.textPrimary, 0.1) : Y(a, 0.2)
|
|
@@ -4180,7 +4180,7 @@ var zu = ({ segment: e, itemStyle: t }) => {
|
|
|
4180
4180
|
case "trendPercentage":
|
|
4181
4181
|
return { style: Se({
|
|
4182
4182
|
...t.trend,
|
|
4183
|
-
textColor:
|
|
4183
|
+
textColor: No(t, e.trendDirection ?? "up")
|
|
4184
4184
|
}) };
|
|
4185
4185
|
case "trendReference":
|
|
4186
4186
|
return {
|
|
@@ -4193,7 +4193,7 @@ var zu = ({ segment: e, itemStyle: t }) => {
|
|
|
4193
4193
|
default:
|
|
4194
4194
|
return e.textRole;
|
|
4195
4195
|
}
|
|
4196
|
-
},
|
|
4196
|
+
}, No = (e, t) => {
|
|
4197
4197
|
switch (t) {
|
|
4198
4198
|
case "up":
|
|
4199
4199
|
return e.trendUp.textColor;
|
|
@@ -4236,7 +4236,7 @@ var zu = ({ segment: e, itemStyle: t }) => {
|
|
|
4236
4236
|
if (e.kind === "grandTotal") {
|
|
4237
4237
|
const c = cn(i, o);
|
|
4238
4238
|
return /* @__PURE__ */ s("div", {
|
|
4239
|
-
className:
|
|
4239
|
+
className: Lu,
|
|
4240
4240
|
style: l,
|
|
4241
4241
|
children: /* @__PURE__ */ s("span", {
|
|
4242
4242
|
style: Se(c),
|
|
@@ -4245,7 +4245,7 @@ var zu = ({ segment: e, itemStyle: t }) => {
|
|
|
4245
4245
|
});
|
|
4246
4246
|
}
|
|
4247
4247
|
return /* @__PURE__ */ s("div", {
|
|
4248
|
-
className:
|
|
4248
|
+
className: Nu,
|
|
4249
4249
|
style: {
|
|
4250
4250
|
...l,
|
|
4251
4251
|
gap: a.gap
|
|
@@ -4324,10 +4324,10 @@ var eh = "_1oj6yix2", th = 8, rh = 16, nh = 2, oh = ({ legends: e, containerRect
|
|
|
4324
4324
|
...le(e),
|
|
4325
4325
|
lineHeight: e.lineHeight
|
|
4326
4326
|
}), lh = "_6a636s0", ch = () => {
|
|
4327
|
-
const e =
|
|
4327
|
+
const e = N();
|
|
4328
4328
|
return A(() => mi(e), [e]);
|
|
4329
4329
|
}, dh = "_1kjk02r0", uh = "_1kjk02r1", hh = "_1kjk02r2", vh = "_1kjk02r3", gh = "_1kjk02r4", fh = "_1kjk02r5", ph = "_1kjk02r6", mh = "_1kjk02r7", Ah = "_1kjk02r8";
|
|
4330
|
-
var yh = "_1dw9dgx0",
|
|
4330
|
+
var yh = "_1dw9dgx0", Pt = "\0", xh = (e, t) => {
|
|
4331
4331
|
const r = [];
|
|
4332
4332
|
return e.forEach((n, o) => {
|
|
4333
4333
|
const a = n.aesthetics.includes("size");
|
|
@@ -4347,7 +4347,7 @@ var yh = "_1dw9dgx0", xh = "#9ca3af", Pt = "\0", bh = (e, t) => {
|
|
|
4347
4347
|
});
|
|
4348
4348
|
}
|
|
4349
4349
|
}), r;
|
|
4350
|
-
},
|
|
4350
|
+
}, Lo = ({ pill: e }) => e.isBubble ? /* @__PURE__ */ s(Sh, { pill: e }) : /* @__PURE__ */ s(wh, { pill: e }), bh = ({ color: e, lineType: t, shape: r, label: n }) => {
|
|
4351
4351
|
const { swatch: o } = er();
|
|
4352
4352
|
return e ? /* @__PURE__ */ s(Xe, {
|
|
4353
4353
|
shape: r,
|
|
@@ -4359,28 +4359,28 @@ var yh = "_1dw9dgx0", xh = "#9ca3af", Pt = "\0", bh = (e, t) => {
|
|
|
4359
4359
|
height: o.size,
|
|
4360
4360
|
strokeWidth: o.strokeWidth
|
|
4361
4361
|
}) : null;
|
|
4362
|
-
},
|
|
4362
|
+
}, wh = ({ pill: e }) => /* @__PURE__ */ w(B, { children: [/* @__PURE__ */ s(bh, {
|
|
4363
4363
|
color: e.visual.color,
|
|
4364
4364
|
lineType: e.primaryLineType,
|
|
4365
4365
|
shape: e.swatchShape,
|
|
4366
4366
|
label: e.formattedLabel
|
|
4367
|
-
}), /* @__PURE__ */ s("span", { children: e.formattedLabel })] }),
|
|
4367
|
+
}), /* @__PURE__ */ s("span", { children: e.formattedLabel })] }), Sh = ({ pill: e }) => {
|
|
4368
4368
|
const t = Number(e.visual.size);
|
|
4369
4369
|
return /* @__PURE__ */ w(B, { children: [/* @__PURE__ */ s("span", {
|
|
4370
4370
|
className: yh,
|
|
4371
4371
|
style: {
|
|
4372
4372
|
width: t,
|
|
4373
4373
|
height: t,
|
|
4374
|
-
backgroundColor: e.visual.color
|
|
4374
|
+
backgroundColor: e.visual.color
|
|
4375
4375
|
}
|
|
4376
4376
|
}), /* @__PURE__ */ s("span", { children: e.formattedLabel })] });
|
|
4377
|
-
},
|
|
4378
|
-
const r = io(), [n, o] =
|
|
4377
|
+
}, kh = ({ hiddenPills: e, placement: t }) => {
|
|
4378
|
+
const r = io(), [n, o] = O(!1), { refs: a, floatingStyles: i } = An({
|
|
4379
4379
|
open: n,
|
|
4380
4380
|
placement: t,
|
|
4381
4381
|
middleware: [
|
|
4382
|
-
|
|
4383
|
-
|
|
4382
|
+
Lt(4),
|
|
4383
|
+
Nt(),
|
|
4384
4384
|
Mt({ padding: 8 })
|
|
4385
4385
|
]
|
|
4386
4386
|
});
|
|
@@ -4405,20 +4405,20 @@ var yh = "_1dw9dgx0", xh = "#9ca3af", Pt = "\0", bh = (e, t) => {
|
|
|
4405
4405
|
const l = t === "left" || t === "right", c = Math.min(e.length - 1, 2), u = Array.from({ length: c }, (d, v) => c - v);
|
|
4406
4406
|
return /* @__PURE__ */ w(B, { children: [/* @__PURE__ */ w("div", {
|
|
4407
4407
|
ref: a.setReference,
|
|
4408
|
-
className:
|
|
4408
|
+
className: Oe(dh, {
|
|
4409
4409
|
[hh]: l,
|
|
4410
4410
|
[uh]: !l
|
|
4411
4411
|
}),
|
|
4412
4412
|
children: [u.map((d) => /* @__PURE__ */ s("span", {
|
|
4413
|
-
className:
|
|
4413
|
+
className: Oe(vh, {
|
|
4414
4414
|
[fh]: l,
|
|
4415
4415
|
[gh]: !l
|
|
4416
4416
|
}),
|
|
4417
|
-
style:
|
|
4417
|
+
style: Rh(d, l),
|
|
4418
4418
|
"aria-hidden": !0
|
|
4419
4419
|
}, d)), /* @__PURE__ */ s("button", {
|
|
4420
4420
|
type: "button",
|
|
4421
|
-
className:
|
|
4421
|
+
className: Oe(ph, { [mh]: n }),
|
|
4422
4422
|
onClick: () => o((d) => !d),
|
|
4423
4423
|
"aria-haspopup": "dialog",
|
|
4424
4424
|
"aria-expanded": n,
|
|
@@ -4438,22 +4438,22 @@ var yh = "_1dw9dgx0", xh = "#9ca3af", Pt = "\0", bh = (e, t) => {
|
|
|
4438
4438
|
className: "_1kjk02ra",
|
|
4439
4439
|
children: e.map((d) => /* @__PURE__ */ s("li", {
|
|
4440
4440
|
className: "_1kjk02rb",
|
|
4441
|
-
children: /* @__PURE__ */ s(
|
|
4441
|
+
children: /* @__PURE__ */ s(Lo, { pill: d })
|
|
4442
4442
|
}, d.key))
|
|
4443
4443
|
})
|
|
4444
4444
|
})] });
|
|
4445
|
-
},
|
|
4445
|
+
}, Rh = (e, t) => {
|
|
4446
4446
|
const r = -e * 4;
|
|
4447
4447
|
return { transform: t ? `translateY(${r}px)` : `translateX(${r}px)` };
|
|
4448
|
-
},
|
|
4448
|
+
}, Ch = "_1cecisi0", Eh = "_1cecisi1", Ph = "_1cecisi2", Bh = {
|
|
4449
4449
|
start: "_1cecisi3",
|
|
4450
4450
|
center: "_1cecisi4",
|
|
4451
4451
|
end: "_1cecisi5"
|
|
4452
|
-
},
|
|
4452
|
+
}, Ih = {
|
|
4453
4453
|
right: "_1cecisi6",
|
|
4454
4454
|
left: "_1cecisi7"
|
|
4455
|
-
},
|
|
4456
|
-
const a = pe(), i = Ie(), l = ch(), c = er(), u = de(), d = C((S) => S.coordSystem.type), v = A(() =>
|
|
4455
|
+
}, Th = "_1cecisi8", Nh = ({ edge: e, formattedLegends: t, containerWidth: r, containerHeight: n, textScale: o }) => {
|
|
4456
|
+
const a = pe(), i = Ie(), l = ch(), c = er(), u = de(), d = C((S) => S.coordSystem.type), v = A(() => xh(t, (S) => u(S, d)?.swatchShape ?? "square"), [
|
|
4457
4457
|
t,
|
|
4458
4458
|
u,
|
|
4459
4459
|
d
|
|
@@ -4466,14 +4466,14 @@ var yh = "_1dw9dgx0", xh = "#9ca3af", Pt = "\0", bh = (e, t) => {
|
|
|
4466
4466
|
visibleCount: v.length,
|
|
4467
4467
|
hasOverflow: !1
|
|
4468
4468
|
};
|
|
4469
|
-
const S = z(c.item, i.fonts.familyDefault), P = fe(c.item), E = 2 * (c.item.paddingInline + c.item.borderWidth),
|
|
4469
|
+
const S = z(c.item, i.fonts.familyDefault), P = fe(c.item), E = 2 * (c.item.paddingInline + c.item.borderWidth), L = 2 * (c.item.paddingBlock + c.item.borderWidth), F = (ye) => g ? Lh(ye, P, c.swatch.size, L) : Nr({
|
|
4470
4470
|
label: ye.formattedLabel,
|
|
4471
|
-
swatchInlineSize:
|
|
4471
|
+
swatchInlineSize: Mh(ye, c.swatch.size),
|
|
4472
4472
|
textMeasurer: a,
|
|
4473
4473
|
font: S,
|
|
4474
4474
|
swatchGap: i.legendSwatchGap,
|
|
4475
4475
|
horizontalChrome: E
|
|
4476
|
-
}), W = v.map(F), K =
|
|
4476
|
+
}), W = v.map(F), K = On(i.fonts.legendLabel, o), Te = xd(i.fonts.legendLabel, o), Ae = (g ? Te + i.legendPillVerticalChrome : Nr({
|
|
4477
4477
|
label: `+${v.length}`,
|
|
4478
4478
|
swatchInlineSize: 0,
|
|
4479
4479
|
textMeasurer: a,
|
|
@@ -4481,7 +4481,7 @@ var yh = "_1dw9dgx0", xh = "#9ca3af", Pt = "\0", bh = (e, t) => {
|
|
|
4481
4481
|
swatchGap: i.legendSwatchGap,
|
|
4482
4482
|
horizontalChrome: i.legendPillHorizontalChrome
|
|
4483
4483
|
})) + 8;
|
|
4484
|
-
return
|
|
4484
|
+
return Dh({
|
|
4485
4485
|
pillSizes: W,
|
|
4486
4486
|
overflowPillSize: Ae,
|
|
4487
4487
|
containerSize: h,
|
|
@@ -4498,30 +4498,30 @@ var yh = "_1dw9dgx0", xh = "#9ca3af", Pt = "\0", bh = (e, t) => {
|
|
|
4498
4498
|
c
|
|
4499
4499
|
]);
|
|
4500
4500
|
if (v.length === 0) return null;
|
|
4501
|
-
const p = v.slice(0, m.visibleCount), y = v.slice(m.visibleCount), b = m.hasOverflow && y.length > 0, R =
|
|
4501
|
+
const p = v.slice(0, m.visibleCount), y = v.slice(m.visibleCount), b = m.hasOverflow && y.length > 0, R = Oh(c.item);
|
|
4502
4502
|
return /* @__PURE__ */ w("div", {
|
|
4503
|
-
className:
|
|
4504
|
-
[
|
|
4505
|
-
[
|
|
4506
|
-
[
|
|
4503
|
+
className: Oe(Bh[f], Ch, {
|
|
4504
|
+
[Ph]: g,
|
|
4505
|
+
[Eh]: !g,
|
|
4506
|
+
[Ih[e === "left" ? "left" : "right"]]: g
|
|
4507
4507
|
}),
|
|
4508
4508
|
style: { gap: l.gap },
|
|
4509
4509
|
children: [p.map((S) => /* @__PURE__ */ s("div", {
|
|
4510
|
-
className:
|
|
4510
|
+
className: Th,
|
|
4511
4511
|
style: R,
|
|
4512
|
-
children: /* @__PURE__ */ s(
|
|
4513
|
-
}, S.key)), b && /* @__PURE__ */ s(
|
|
4512
|
+
children: /* @__PURE__ */ s(Lo, { pill: S })
|
|
4513
|
+
}, S.key)), b && /* @__PURE__ */ s(kh, {
|
|
4514
4514
|
hiddenPills: y,
|
|
4515
4515
|
placement: Hh(e)
|
|
4516
4516
|
})]
|
|
4517
4517
|
});
|
|
4518
|
-
},
|
|
4518
|
+
}, Nr = ({ label: e, swatchInlineSize: t, textMeasurer: r, font: n, swatchGap: o, horizontalChrome: a }) => {
|
|
4519
4519
|
const i = r.measureText(e, n).width;
|
|
4520
4520
|
return t + (t > 0 ? o : 0) + i + a;
|
|
4521
|
-
},
|
|
4522
|
-
const o =
|
|
4521
|
+
}, Lh = (e, t, r, n) => {
|
|
4522
|
+
const o = Fh(e, r);
|
|
4523
4523
|
return Math.max(t, o) + n;
|
|
4524
|
-
},
|
|
4524
|
+
}, Mh = (e, t) => ht(e.visual, t, e.isBubble), Fh = (e, t) => e.isBubble ? ht(e.visual, t, !0) : t, Dh = ({ pillSizes: e, overflowPillSize: t, containerSize: r, gap: n }) => {
|
|
4525
4525
|
if (e.length === 0) return {
|
|
4526
4526
|
visibleCount: 0,
|
|
4527
4527
|
hasOverflow: !1
|
|
@@ -4554,7 +4554,7 @@ var yh = "_1dw9dgx0", xh = "#9ca3af", Pt = "\0", bh = (e, t) => {
|
|
|
4554
4554
|
case "right":
|
|
4555
4555
|
return "left";
|
|
4556
4556
|
}
|
|
4557
|
-
},
|
|
4557
|
+
}, Oh = (e) => ({
|
|
4558
4558
|
...le(e),
|
|
4559
4559
|
color: e.textColor,
|
|
4560
4560
|
lineHeight: e.lineHeight,
|
|
@@ -4563,7 +4563,7 @@ var yh = "_1dw9dgx0", xh = "#9ca3af", Pt = "\0", bh = (e, t) => {
|
|
|
4563
4563
|
paddingInline: e.paddingInline,
|
|
4564
4564
|
paddingBlock: e.paddingBlock,
|
|
4565
4565
|
...e.borderWidth > 0 ? { border: `${e.borderWidth}px solid ${e.borderColor}` } : {}
|
|
4566
|
-
}),
|
|
4566
|
+
}), Gh = Z(function({ formattedLegends: t, rects: r, textScale: n }) {
|
|
4567
4567
|
const o = A(() => {
|
|
4568
4568
|
const a = /* @__PURE__ */ new Map();
|
|
4569
4569
|
for (const i of t) {
|
|
@@ -4597,43 +4597,43 @@ var yh = "_1dw9dgx0", xh = "#9ca3af", Pt = "\0", bh = (e, t) => {
|
|
|
4597
4597
|
})]
|
|
4598
4598
|
}, a);
|
|
4599
4599
|
}) });
|
|
4600
|
-
}),
|
|
4600
|
+
}), Wh = ({ layers: e, primaryLayerId: t, coordSystem: r, resolveRenderer: n }) => {
|
|
4601
4601
|
const o = e.find((i) => i.id === t);
|
|
4602
4602
|
if (!o) return null;
|
|
4603
4603
|
const a = n(o.geom, r.type);
|
|
4604
4604
|
return a ? a.guideMode ?? null : null;
|
|
4605
|
-
}, Mo = 1, Fo = "4 3",
|
|
4605
|
+
}, Mo = 1, Fo = "4 3", Vh = ({ panelRect: e }) => {
|
|
4606
4606
|
const { coordSystem: t, layers: r, scales: n } = C(j((l) => ({
|
|
4607
4607
|
coordSystem: l.coordSystem,
|
|
4608
4608
|
layers: l.layers,
|
|
4609
4609
|
scales: l.scales
|
|
4610
4610
|
}))), o = Ve((l) => l.hover.primary), a = de();
|
|
4611
4611
|
if (r.length === 0 || o === null || !o.anchored) return null;
|
|
4612
|
-
const i =
|
|
4612
|
+
const i = Wh({
|
|
4613
4613
|
layers: r,
|
|
4614
4614
|
primaryLayerId: o.layerId,
|
|
4615
4615
|
coordSystem: t,
|
|
4616
4616
|
resolveRenderer: a
|
|
4617
4617
|
});
|
|
4618
|
-
return i === null ? null : t.type === "polar" ? i === "band" ? /* @__PURE__ */ s(
|
|
4618
|
+
return i === null ? null : t.type === "polar" ? i === "band" ? /* @__PURE__ */ s(Kh, {
|
|
4619
4619
|
coordSystem: t,
|
|
4620
4620
|
primary: o,
|
|
4621
4621
|
panelRect: e
|
|
4622
|
-
}) : /* @__PURE__ */ s(
|
|
4622
|
+
}) : /* @__PURE__ */ s(Yh, {
|
|
4623
4623
|
coordSystem: t,
|
|
4624
4624
|
primary: o,
|
|
4625
4625
|
panelRect: e
|
|
4626
|
-
}) : i === "band" ? /* @__PURE__ */ s(
|
|
4626
|
+
}) : i === "band" ? /* @__PURE__ */ s(Qh, {
|
|
4627
4627
|
coordSystem: t,
|
|
4628
4628
|
scales: n,
|
|
4629
4629
|
primary: o,
|
|
4630
4630
|
panelRect: e
|
|
4631
|
-
}) : /* @__PURE__ */ s(
|
|
4631
|
+
}) : /* @__PURE__ */ s(Uh, {
|
|
4632
4632
|
coordSystem: t,
|
|
4633
4633
|
primary: o,
|
|
4634
4634
|
panelRect: e
|
|
4635
4635
|
});
|
|
4636
|
-
},
|
|
4636
|
+
}, Uh = ({ coordSystem: e, primary: t, panelRect: r }) => {
|
|
4637
4637
|
const n = Qa(e, t);
|
|
4638
4638
|
return /* @__PURE__ */ s(wt, {
|
|
4639
4639
|
panelRect: r,
|
|
@@ -4646,7 +4646,7 @@ var yh = "_1dw9dgx0", xh = "#9ca3af", Pt = "\0", bh = (e, t) => {
|
|
|
4646
4646
|
"data-testid": "hover-guide-line"
|
|
4647
4647
|
})
|
|
4648
4648
|
});
|
|
4649
|
-
},
|
|
4649
|
+
}, Qh = ({ coordSystem: e, scales: t, primary: r, panelRect: n }) => {
|
|
4650
4650
|
const o = Ya(e, t, r);
|
|
4651
4651
|
return o === null ? null : /* @__PURE__ */ s(wt, {
|
|
4652
4652
|
panelRect: n,
|
|
@@ -4656,7 +4656,7 @@ var yh = "_1dw9dgx0", xh = "#9ca3af", Pt = "\0", bh = (e, t) => {
|
|
|
4656
4656
|
"data-testid": "hover-guide-rect"
|
|
4657
4657
|
})
|
|
4658
4658
|
});
|
|
4659
|
-
},
|
|
4659
|
+
}, Yh = ({ coordSystem: e, primary: t, panelRect: r }) => {
|
|
4660
4660
|
const n = Sn(r), o = J(t.x, e.innerRadius, n), a = J(t.x, 1, n);
|
|
4661
4661
|
return /* @__PURE__ */ s(wt, {
|
|
4662
4662
|
panelRect: r,
|
|
@@ -4672,7 +4672,7 @@ var yh = "_1dw9dgx0", xh = "#9ca3af", Pt = "\0", bh = (e, t) => {
|
|
|
4672
4672
|
"data-testid": "hover-guide-line"
|
|
4673
4673
|
})
|
|
4674
4674
|
});
|
|
4675
|
-
},
|
|
4675
|
+
}, Kh = ({ coordSystem: e, primary: t, panelRect: r }) => {
|
|
4676
4676
|
const n = Ka(e, t);
|
|
4677
4677
|
if (n === null) return null;
|
|
4678
4678
|
const o = ge(n);
|
|
@@ -4702,20 +4702,20 @@ var yh = "_1dw9dgx0", xh = "#9ca3af", Pt = "\0", bh = (e, t) => {
|
|
|
4702
4702
|
},
|
|
4703
4703
|
"data-testid": "hover-guide",
|
|
4704
4704
|
children: t
|
|
4705
|
-
}),
|
|
4706
|
-
for (const n of Object.values(
|
|
4705
|
+
}), Pf = (e, t, r) => {
|
|
4706
|
+
for (const n of Object.values(Ho)) {
|
|
4707
4707
|
const o = n(e, t, r);
|
|
4708
4708
|
if (o !== null) return o;
|
|
4709
4709
|
}
|
|
4710
4710
|
return null;
|
|
4711
|
-
},
|
|
4711
|
+
}, zh = (e) => Ho[e] !== void 0, jh = (e, t, r) => Do(e, r, t / 2), Xh = (e, t) => {
|
|
4712
4712
|
const r = Qe(e.start, t), n = Qe(e.end, t);
|
|
4713
4713
|
return r.x === n.x && r.y === n.y ? null : {
|
|
4714
4714
|
shape: "segment",
|
|
4715
4715
|
start: r,
|
|
4716
4716
|
end: n
|
|
4717
4717
|
};
|
|
4718
|
-
},
|
|
4718
|
+
}, qh = (e, { panel: t, measuredBoxes: r }) => {
|
|
4719
4719
|
const n = r.get(e.id);
|
|
4720
4720
|
if (n === void 0) return null;
|
|
4721
4721
|
const o = zr(e.align), a = Qe(e.at, t);
|
|
@@ -4742,19 +4742,19 @@ var yh = "_1dw9dgx0", xh = "#9ca3af", Pt = "\0", bh = (e, t) => {
|
|
|
4742
4742
|
height: n.height + r * 2
|
|
4743
4743
|
}
|
|
4744
4744
|
};
|
|
4745
|
-
},
|
|
4746
|
-
text: ot((e) => e.textAnnotations,
|
|
4747
|
-
shape: ot((e) => e.shapes, (e, t) =>
|
|
4745
|
+
}, Ho = {
|
|
4746
|
+
text: ot((e) => e.textAnnotations, qh),
|
|
4747
|
+
shape: ot((e) => e.shapes, (e, t) => jh(e.region, vn(t.chromeReaders, e.id).borderWidth, t.panel)),
|
|
4748
4748
|
image: ot((e) => e.images, (e, t) => Do(e.region, t.panel)),
|
|
4749
|
-
arrow: ot((e) => e.arrows, (e, t) =>
|
|
4750
|
-
},
|
|
4751
|
-
const r =
|
|
4752
|
-
return r !== null &&
|
|
4753
|
-
},
|
|
4749
|
+
arrow: ot((e) => e.arrows, (e, t) => Xh(e, t.panel))
|
|
4750
|
+
}, Jh = (e, t) => {
|
|
4751
|
+
const r = Oa(e, t);
|
|
4752
|
+
return r !== null && zh(r.kind) && $a(r);
|
|
4753
|
+
}, Zh = 200, $h = ({ engine: e, store: t, overlayRef: r }) => {
|
|
4754
4754
|
M(() => {
|
|
4755
4755
|
const n = r.current;
|
|
4756
4756
|
if (!n) return;
|
|
4757
|
-
const o =
|
|
4757
|
+
const o = _h(n, e), a = tv(n, e, t);
|
|
4758
4758
|
return () => {
|
|
4759
4759
|
a(), o();
|
|
4760
4760
|
};
|
|
@@ -4763,7 +4763,7 @@ var yh = "_1dw9dgx0", xh = "#9ca3af", Pt = "\0", bh = (e, t) => {
|
|
|
4763
4763
|
t,
|
|
4764
4764
|
r
|
|
4765
4765
|
]);
|
|
4766
|
-
},
|
|
4766
|
+
}, _h = (e, t) => {
|
|
4767
4767
|
const r = () => {
|
|
4768
4768
|
const i = e.getBoundingClientRect();
|
|
4769
4769
|
i.width === 0 || i.height === 0 || t.setViewport({
|
|
@@ -4775,17 +4775,17 @@ var yh = "_1dw9dgx0", xh = "#9ca3af", Pt = "\0", bh = (e, t) => {
|
|
|
4775
4775
|
const o = () => {
|
|
4776
4776
|
n !== null && clearTimeout(n), n = setTimeout(() => {
|
|
4777
4777
|
n = null, r();
|
|
4778
|
-
},
|
|
4778
|
+
}, Zh);
|
|
4779
4779
|
}, a = new ResizeObserver(o);
|
|
4780
4780
|
return a.observe(e), r(), () => {
|
|
4781
4781
|
a.disconnect(), n !== null && clearTimeout(n);
|
|
4782
4782
|
};
|
|
4783
|
-
},
|
|
4783
|
+
}, ev = (e, t) => e.kind === "cursor" ? null : {
|
|
4784
4784
|
x: t.left + e.point.x,
|
|
4785
4785
|
y: t.top + e.point.y,
|
|
4786
4786
|
placement: e.placement,
|
|
4787
4787
|
annotationId: e.annotationId
|
|
4788
|
-
},
|
|
4788
|
+
}, tv = (e, t, r) => {
|
|
4789
4789
|
let n = null, o = null;
|
|
4790
4790
|
const a = () => {
|
|
4791
4791
|
const h = e.getBoundingClientRect();
|
|
@@ -4803,7 +4803,7 @@ var yh = "_1dw9dgx0", xh = "#9ca3af", Pt = "\0", bh = (e, t) => {
|
|
|
4803
4803
|
if (p.isPointerSuspended) return;
|
|
4804
4804
|
const y = vr(m, p.pointerRegions);
|
|
4805
4805
|
if (y !== null) {
|
|
4806
|
-
p.setHoverState(t.query(y.cursor)), p.setTooltipAnchor(
|
|
4806
|
+
p.setHoverState(t.query(y.cursor)), p.setTooltipAnchor(ev(y.tooltip, f));
|
|
4807
4807
|
return;
|
|
4808
4808
|
}
|
|
4809
4809
|
const b = Si(m, f);
|
|
@@ -4832,7 +4832,7 @@ var yh = "_1dw9dgx0", xh = "#9ca3af", Pt = "\0", bh = (e, t) => {
|
|
|
4832
4832
|
return e.addEventListener("pointermove", v), e.addEventListener("pointerleave", g), () => {
|
|
4833
4833
|
e.removeEventListener("pointermove", v), e.removeEventListener("pointerleave", g), document.removeEventListener("pointermove", d), o !== null && cancelAnimationFrame(o), n = null;
|
|
4834
4834
|
};
|
|
4835
|
-
},
|
|
4835
|
+
}, rv = ({ panelRect: e }) => {
|
|
4836
4836
|
const { engine: t, store: r, overlayRef: n } = me(), o = ue((c) => {
|
|
4837
4837
|
const u = c.editTargetUnderPointer;
|
|
4838
4838
|
return u !== null && Wd(u);
|
|
@@ -4840,12 +4840,12 @@ var yh = "_1dw9dgx0", xh = "#9ca3af", Pt = "\0", bh = (e, t) => {
|
|
|
4840
4840
|
const u = c.editTargetUnderPointer;
|
|
4841
4841
|
return u?.kind === "annotation" ? u.id : null;
|
|
4842
4842
|
}), i = ue((c) => c.caret !== null);
|
|
4843
|
-
|
|
4843
|
+
$h({
|
|
4844
4844
|
engine: t,
|
|
4845
4845
|
store: r,
|
|
4846
4846
|
overlayRef: n
|
|
4847
4847
|
});
|
|
4848
|
-
const l = C((c) => a !== null &&
|
|
4848
|
+
const l = C((c) => a !== null && Jh(c.spec.annotations, a));
|
|
4849
4849
|
return /* @__PURE__ */ s("rect", {
|
|
4850
4850
|
ref: n,
|
|
4851
4851
|
x: e.x,
|
|
@@ -4854,10 +4854,10 @@ var yh = "_1dw9dgx0", xh = "#9ca3af", Pt = "\0", bh = (e, t) => {
|
|
|
4854
4854
|
height: e.height,
|
|
4855
4855
|
fill: "transparent",
|
|
4856
4856
|
pointerEvents: i ? "none" : "all",
|
|
4857
|
-
cursor:
|
|
4857
|
+
cursor: nv(l, o),
|
|
4858
4858
|
"data-testid": "pointer-capture-layer"
|
|
4859
4859
|
});
|
|
4860
|
-
},
|
|
4860
|
+
}, nv = (e, t) => e ? "move" : t ? "pointer" : void 0, Bt = "data-hover-active", ov = (e) => {
|
|
4861
4861
|
const { store: t } = me(), r = je(t, (n) => n.hover.primary !== null);
|
|
4862
4862
|
M(() => {
|
|
4863
4863
|
const n = e.current;
|
|
@@ -4866,11 +4866,11 @@ var yh = "_1dw9dgx0", xh = "#9ca3af", Pt = "\0", bh = (e, t) => {
|
|
|
4866
4866
|
n.removeAttribute(Bt);
|
|
4867
4867
|
};
|
|
4868
4868
|
}, [e, r]);
|
|
4869
|
-
},
|
|
4870
|
-
const e =
|
|
4869
|
+
}, av = () => {
|
|
4870
|
+
const e = N();
|
|
4871
4871
|
return A(() => (t) => ai(e, t), [e]);
|
|
4872
4872
|
}, St = () => ue((e) => Ue(e, "move-drag")?.annotationId ?? Ue(e, "shape-resize-drag")?.annotationId ?? Ue(e, "arrow-endpoint-drag")?.annotationId ?? null), Je = (e) => {
|
|
4873
|
-
const t = C((i) => i.annotations), r = Td(), n = Md(), o = se((i) =>
|
|
4873
|
+
const t = C((i) => i.annotations), r = Td(), n = Md(), o = se((i) => Lr(n, "cycle", i, `Annotation reference cycle detected; dropping annotation(s): ${i.join(", ")}`), [n]), a = se((i) => Lr(n, "missing-ref", i, `Annotation reference target(s) no longer exist (dropped during compilation); dropping annotations referencing: ${i.join(", ")}`), [n]);
|
|
4874
4874
|
return A(() => ui({
|
|
4875
4875
|
annotations: t,
|
|
4876
4876
|
panelRect: e,
|
|
@@ -4884,16 +4884,16 @@ var yh = "_1dw9dgx0", xh = "#9ca3af", Pt = "\0", bh = (e, t) => {
|
|
|
4884
4884
|
o,
|
|
4885
4885
|
a
|
|
4886
4886
|
]);
|
|
4887
|
-
},
|
|
4887
|
+
}, Lr = (e, t, r, n) => {
|
|
4888
4888
|
const o = [t, ...[...r].sort()].join("\0");
|
|
4889
4889
|
e.has(o) || (e.add(o), console.warn(n));
|
|
4890
|
-
},
|
|
4890
|
+
}, iv = 16, Oo = ({ linePath: e, strokeWidth: t }) => /* @__PURE__ */ s("path", {
|
|
4891
4891
|
d: e,
|
|
4892
4892
|
stroke: "transparent",
|
|
4893
|
-
strokeWidth: Math.max(t,
|
|
4893
|
+
strokeWidth: Math.max(t, iv),
|
|
4894
4894
|
fill: "none",
|
|
4895
4895
|
pointerEvents: "stroke"
|
|
4896
|
-
}),
|
|
4896
|
+
}), sv = 1.4, lv = {
|
|
4897
4897
|
light: {
|
|
4898
4898
|
primary: "#1D2129",
|
|
4899
4899
|
inverse: "#FFFFFF"
|
|
@@ -4902,15 +4902,15 @@ var yh = "_1dw9dgx0", xh = "#9ca3af", Pt = "\0", bh = (e, t) => {
|
|
|
4902
4902
|
primary: "#FFFFFF",
|
|
4903
4903
|
inverse: "#1D2129"
|
|
4904
4904
|
}
|
|
4905
|
-
},
|
|
4905
|
+
}, cv = ({ computed: e, style: t, isAddressable: r }) => {
|
|
4906
4906
|
const n = V(), { colorScheme: o } = $t(), a = e.dashArray ? {
|
|
4907
4907
|
strokeDasharray: e.dashArray,
|
|
4908
4908
|
strokeDashoffset: e.dashOffset
|
|
4909
|
-
} : {}, i = t.shadow === "none" ? null : t.shadow, l = t.borderWidth > 0, c =
|
|
4909
|
+
} : {}, i = t.shadow === "none" ? null : t.shadow, l = t.borderWidth > 0, c = lv[o], u = t.borderColor ?? hv(t.color, c.primary, c.inverse), d = i === null ? null : uv(e, t.borderWidth, i.blur);
|
|
4910
4910
|
return /* @__PURE__ */ w("g", {
|
|
4911
4911
|
pointerEvents: r ? void 0 : "none",
|
|
4912
4912
|
children: [
|
|
4913
|
-
r && /* @__PURE__ */ s(
|
|
4913
|
+
r && /* @__PURE__ */ s(Oo, {
|
|
4914
4914
|
linePath: e.linePath,
|
|
4915
4915
|
strokeWidth: e.strokeWidth
|
|
4916
4916
|
}),
|
|
@@ -4929,7 +4929,7 @@ var yh = "_1dw9dgx0", xh = "#9ca3af", Pt = "\0", bh = (e, t) => {
|
|
|
4929
4929
|
filter: i === null ? void 0 : `url(#${n})`,
|
|
4930
4930
|
children: [
|
|
4931
4931
|
l && /* @__PURE__ */ s("path", {
|
|
4932
|
-
d:
|
|
4932
|
+
d: dv(e),
|
|
4933
4933
|
stroke: u,
|
|
4934
4934
|
strokeWidth: e.strokeWidth + 2 * t.borderWidth,
|
|
4935
4935
|
strokeLinecap: "round",
|
|
@@ -4961,11 +4961,11 @@ var yh = "_1dw9dgx0", xh = "#9ca3af", Pt = "\0", bh = (e, t) => {
|
|
|
4961
4961
|
})
|
|
4962
4962
|
]
|
|
4963
4963
|
});
|
|
4964
|
-
},
|
|
4964
|
+
}, dv = (e) => [
|
|
4965
4965
|
e.linePath,
|
|
4966
4966
|
e.startArrowheadPath,
|
|
4967
4967
|
e.endArrowheadPath
|
|
4968
|
-
].filter((t) => t.length > 0).join(" "),
|
|
4968
|
+
].filter((t) => t.length > 0).join(" "), uv = (e, t, r) => {
|
|
4969
4969
|
const n = e.arrowheadExtent + e.strokeWidth + t + r;
|
|
4970
4970
|
return {
|
|
4971
4971
|
x: Math.min(e.startX, e.endX) - n,
|
|
@@ -4973,14 +4973,14 @@ var yh = "_1dw9dgx0", xh = "#9ca3af", Pt = "\0", bh = (e, t) => {
|
|
|
4973
4973
|
width: Math.abs(e.endX - e.startX) + 2 * n,
|
|
4974
4974
|
height: Math.abs(e.endY - e.startY) + 2 * n
|
|
4975
4975
|
};
|
|
4976
|
-
},
|
|
4976
|
+
}, hv = (e, t, r) => {
|
|
4977
4977
|
try {
|
|
4978
|
-
return
|
|
4978
|
+
return Li(e, t) < sv ? r : t;
|
|
4979
4979
|
} catch {
|
|
4980
4980
|
return r;
|
|
4981
4981
|
}
|
|
4982
|
-
},
|
|
4983
|
-
const { arrows: r } = Je(e), n = St(), o =
|
|
4982
|
+
}, vv = ({ panelRect: e, isEditable: t }) => {
|
|
4983
|
+
const { arrows: r } = Je(e), n = St(), o = av(), a = A(() => r.filter((i) => i.id !== n).flatMap((i) => {
|
|
4984
4984
|
const l = o(i.id), c = Ba({
|
|
4985
4985
|
arrow: i,
|
|
4986
4986
|
style: l,
|
|
@@ -5006,17 +5006,17 @@ var yh = "_1dw9dgx0", xh = "#9ca3af", Pt = "\0", bh = (e, t) => {
|
|
|
5006
5006
|
kind: "annotation",
|
|
5007
5007
|
id: i.id
|
|
5008
5008
|
}),
|
|
5009
|
-
children: /* @__PURE__ */ s(
|
|
5009
|
+
children: /* @__PURE__ */ s(cv, {
|
|
5010
5010
|
computed: i,
|
|
5011
5011
|
style: l,
|
|
5012
5012
|
isAddressable: t
|
|
5013
5013
|
})
|
|
5014
5014
|
}, i.id))
|
|
5015
5015
|
});
|
|
5016
|
-
},
|
|
5016
|
+
}, gv = () => {
|
|
5017
5017
|
const { selectionStore: e } = G();
|
|
5018
5018
|
return je(e, (t) => t.selection);
|
|
5019
|
-
},
|
|
5019
|
+
}, fv = ({ linePath: e, arrowheadPath: t, stroke: r, strokeWidth: n, isAddressable: o }) => {
|
|
5020
5020
|
const a = {
|
|
5021
5021
|
stroke: r,
|
|
5022
5022
|
strokeWidth: n,
|
|
@@ -5026,7 +5026,7 @@ var yh = "_1dw9dgx0", xh = "#9ca3af", Pt = "\0", bh = (e, t) => {
|
|
|
5026
5026
|
return /* @__PURE__ */ w("g", {
|
|
5027
5027
|
pointerEvents: o ? void 0 : "none",
|
|
5028
5028
|
children: [
|
|
5029
|
-
o && /* @__PURE__ */ s(
|
|
5029
|
+
o && /* @__PURE__ */ s(Oo, {
|
|
5030
5030
|
linePath: e,
|
|
5031
5031
|
strokeWidth: n
|
|
5032
5032
|
}),
|
|
@@ -5041,7 +5041,7 @@ var yh = "_1dw9dgx0", xh = "#9ca3af", Pt = "\0", bh = (e, t) => {
|
|
|
5041
5041
|
})
|
|
5042
5042
|
]
|
|
5043
5043
|
});
|
|
5044
|
-
},
|
|
5044
|
+
}, pv = ({ x: e, y: t, text: r, box: n, label: o, arrowColor: a, isAddressable: i }) => {
|
|
5045
5045
|
const { fonts: l } = Ie();
|
|
5046
5046
|
return /* @__PURE__ */ w("g", {
|
|
5047
5047
|
pointerEvents: i ? void 0 : "none",
|
|
@@ -5068,30 +5068,30 @@ var yh = "_1dw9dgx0", xh = "#9ca3af", Pt = "\0", bh = (e, t) => {
|
|
|
5068
5068
|
children: r
|
|
5069
5069
|
})]
|
|
5070
5070
|
});
|
|
5071
|
-
},
|
|
5071
|
+
}, mv = "_1i8rg6j0", Av = "75%", yv = ({ panelRect: e, isEditable: t }) => {
|
|
5072
5072
|
const r = Zd(), n = ue((i) => {
|
|
5073
5073
|
const l = i.editTargetUnderPointer;
|
|
5074
5074
|
return l?.kind === "annotation" ? l.id : null;
|
|
5075
|
-
}), o =
|
|
5075
|
+
}), o = gv(), a = A(() => new Set(o.filter((i) => i.kind === "annotation").map((i) => i.id)), [o]);
|
|
5076
5076
|
return r.length === 0 ? null : /* @__PURE__ */ s("g", {
|
|
5077
5077
|
transform: `translate(${e.x}, ${e.y})`,
|
|
5078
5078
|
"data-testid": "difference-arrows",
|
|
5079
5079
|
children: r.map(({ color: i, style: l, id: c, linePath: u, arrowheadPath: d, labelPosition: v, labelBox: g, labelText: h, isDragged: f, hasComparableEndpoints: m }) => {
|
|
5080
|
-
const p = n === c || a.has(c), y = f && !m, b = y ? x.alert : i, R = p && !y ?
|
|
5080
|
+
const p = n === c || a.has(c), y = f && !m, b = y ? x.alert : i, R = p && !y ? xv(b) : b;
|
|
5081
5081
|
return /* @__PURE__ */ w("g", {
|
|
5082
|
-
className: n === c ?
|
|
5082
|
+
className: n === c ? mv : void 0,
|
|
5083
5083
|
"data-warning": y || void 0,
|
|
5084
5084
|
...qe({
|
|
5085
5085
|
kind: "annotation",
|
|
5086
5086
|
id: c
|
|
5087
5087
|
}),
|
|
5088
|
-
children: [/* @__PURE__ */ s(
|
|
5088
|
+
children: [/* @__PURE__ */ s(fv, {
|
|
5089
5089
|
linePath: u,
|
|
5090
5090
|
arrowheadPath: d,
|
|
5091
5091
|
stroke: R,
|
|
5092
5092
|
strokeWidth: l.strokeWidth,
|
|
5093
5093
|
isAddressable: t
|
|
5094
|
-
}), /* @__PURE__ */ s(
|
|
5094
|
+
}), /* @__PURE__ */ s(pv, {
|
|
5095
5095
|
x: v.x,
|
|
5096
5096
|
y: v.y,
|
|
5097
5097
|
text: h,
|
|
@@ -5103,14 +5103,14 @@ var yh = "_1dw9dgx0", xh = "#9ca3af", Pt = "\0", bh = (e, t) => {
|
|
|
5103
5103
|
}, c);
|
|
5104
5104
|
})
|
|
5105
5105
|
});
|
|
5106
|
-
},
|
|
5107
|
-
const e =
|
|
5106
|
+
}, xv = (e) => `color-mix(in srgb, ${e} ${Av}, ${x.textPrimary})`, bv = () => {
|
|
5107
|
+
const e = N();
|
|
5108
5108
|
return A(() => (t) => fi(e, t), [e]);
|
|
5109
|
-
},
|
|
5109
|
+
}, wv = {
|
|
5110
5110
|
fill: "none",
|
|
5111
5111
|
contain: "xMidYMid meet",
|
|
5112
5112
|
cover: "xMidYMid slice"
|
|
5113
|
-
},
|
|
5113
|
+
}, Sv = ({ image: e, panel: t, style: r }) => {
|
|
5114
5114
|
const n = V(), { src: o, region: a, fit: i } = e, l = Kt(a, t), c = r.borderRadius > 0;
|
|
5115
5115
|
return /* @__PURE__ */ w("g", { children: [c && /* @__PURE__ */ s("clipPath", {
|
|
5116
5116
|
id: n,
|
|
@@ -5121,12 +5121,12 @@ var yh = "_1dw9dgx0", xh = "#9ca3af", Pt = "\0", bh = (e, t) => {
|
|
|
5121
5121
|
}), /* @__PURE__ */ s("image", {
|
|
5122
5122
|
href: o,
|
|
5123
5123
|
...l,
|
|
5124
|
-
preserveAspectRatio:
|
|
5124
|
+
preserveAspectRatio: wv[i],
|
|
5125
5125
|
opacity: r.alpha,
|
|
5126
5126
|
clipPath: c ? `url(#${n})` : void 0
|
|
5127
5127
|
})] });
|
|
5128
5128
|
}, Mr = ({ panelRect: e, zOrder: t }) => {
|
|
5129
|
-
const r = Je(e).images, n =
|
|
5129
|
+
const r = Je(e).images, n = bv(), o = St(), a = r.filter((i) => i.zOrder === t && i.id !== o);
|
|
5130
5130
|
return a.length === 0 ? null : /* @__PURE__ */ s("svg", {
|
|
5131
5131
|
x: e.x,
|
|
5132
5132
|
y: e.y,
|
|
@@ -5139,17 +5139,17 @@ var yh = "_1dw9dgx0", xh = "#9ca3af", Pt = "\0", bh = (e, t) => {
|
|
|
5139
5139
|
kind: "annotation",
|
|
5140
5140
|
id: i.id
|
|
5141
5141
|
}),
|
|
5142
|
-
children: /* @__PURE__ */ s(
|
|
5142
|
+
children: /* @__PURE__ */ s(Sv, {
|
|
5143
5143
|
image: i,
|
|
5144
5144
|
panel: e,
|
|
5145
5145
|
style: n(i.id)
|
|
5146
5146
|
})
|
|
5147
5147
|
}, i.id))
|
|
5148
5148
|
});
|
|
5149
|
-
},
|
|
5150
|
-
const e =
|
|
5149
|
+
}, kv = () => {
|
|
5150
|
+
const e = N();
|
|
5151
5151
|
return A(() => (t) => vn(e, t), [e]);
|
|
5152
|
-
},
|
|
5152
|
+
}, Rv = ({ shape: e, style: t, panel: r }) => {
|
|
5153
5153
|
const n = Kt(e.region, r);
|
|
5154
5154
|
return /* @__PURE__ */ s("rect", {
|
|
5155
5155
|
x: n.x,
|
|
@@ -5162,7 +5162,7 @@ var yh = "_1dw9dgx0", xh = "#9ca3af", Pt = "\0", bh = (e, t) => {
|
|
|
5162
5162
|
strokeWidth: t.borderWidth
|
|
5163
5163
|
});
|
|
5164
5164
|
}, Fr = ({ panelRect: e, zOrder: t }) => {
|
|
5165
|
-
const r = Je(e).shapes, n =
|
|
5165
|
+
const r = Je(e).shapes, n = kv(), o = St(), a = r.filter((i) => i.zOrder === t && i.id !== o);
|
|
5166
5166
|
return a.length === 0 ? null : /* @__PURE__ */ s("svg", {
|
|
5167
5167
|
x: e.x,
|
|
5168
5168
|
y: e.y,
|
|
@@ -5175,17 +5175,17 @@ var yh = "_1dw9dgx0", xh = "#9ca3af", Pt = "\0", bh = (e, t) => {
|
|
|
5175
5175
|
kind: "annotation",
|
|
5176
5176
|
id: i.id
|
|
5177
5177
|
}),
|
|
5178
|
-
children: /* @__PURE__ */ s(
|
|
5178
|
+
children: /* @__PURE__ */ s(Rv, {
|
|
5179
5179
|
shape: i,
|
|
5180
5180
|
style: n(i.id),
|
|
5181
5181
|
panel: e
|
|
5182
5182
|
})
|
|
5183
5183
|
}, i.id))
|
|
5184
5184
|
});
|
|
5185
|
-
},
|
|
5186
|
-
const e =
|
|
5185
|
+
}, Cv = () => {
|
|
5186
|
+
const e = N(), t = C((r) => r.config.appearance.textScale);
|
|
5187
5187
|
return A(() => (r) => yi(e, r, t), [e, t]);
|
|
5188
|
-
},
|
|
5188
|
+
}, Ev = "_1aj6s5s0", Bf = "_1aj6s5s1", Pv = 0.1, If = ({ annotation: e, panel: t, style: r, blockRef: n }) => /* @__PURE__ */ s(Go, {
|
|
5189
5189
|
annotation: e,
|
|
5190
5190
|
panel: t,
|
|
5191
5191
|
style: r,
|
|
@@ -5202,18 +5202,18 @@ var yh = "_1dw9dgx0", xh = "#9ca3af", Pt = "\0", bh = (e, t) => {
|
|
|
5202
5202
|
pointerEvents: "none",
|
|
5203
5203
|
children: /* @__PURE__ */ s("div", {
|
|
5204
5204
|
ref: n,
|
|
5205
|
-
className:
|
|
5205
|
+
className: Ev,
|
|
5206
5206
|
style: {
|
|
5207
|
-
...
|
|
5208
|
-
transform:
|
|
5207
|
+
...Iv(r),
|
|
5208
|
+
transform: Bv(e.align)
|
|
5209
5209
|
},
|
|
5210
5210
|
children: o
|
|
5211
5211
|
})
|
|
5212
5212
|
});
|
|
5213
|
-
},
|
|
5213
|
+
}, Bv = (e) => {
|
|
5214
5214
|
const t = zr(e);
|
|
5215
5215
|
return `translate(${-t.x * 100}%, ${-(1 - t.y) * 100}%)`;
|
|
5216
|
-
},
|
|
5216
|
+
}, Iv = (e) => ({
|
|
5217
5217
|
color: e.textColor,
|
|
5218
5218
|
...e.fontFamily === void 0 ? {} : { fontFamily: e.fontFamily },
|
|
5219
5219
|
fontSize: e.fontSize,
|
|
@@ -5221,28 +5221,28 @@ var yh = "_1dw9dgx0", xh = "#9ca3af", Pt = "\0", bh = (e, t) => {
|
|
|
5221
5221
|
lineHeight: e.lineHeight,
|
|
5222
5222
|
padding: `${e.paddingBlock}px ${e.paddingInline}px`,
|
|
5223
5223
|
borderRadius: e.borderRadius,
|
|
5224
|
-
...
|
|
5225
|
-
}),
|
|
5224
|
+
...Tv(e)
|
|
5225
|
+
}), Tv = (e) => {
|
|
5226
5226
|
if (e.background === "transparent") return {};
|
|
5227
5227
|
const t = e.alpha < 1 ? Y(e.background, e.alpha) : e.background;
|
|
5228
5228
|
if (e.borderWidth <= 0) return { backgroundColor: t };
|
|
5229
|
-
const r = e.borderColor ?? Ss(e.background,
|
|
5229
|
+
const r = e.borderColor ?? Ss(e.background, Pv);
|
|
5230
5230
|
return {
|
|
5231
5231
|
backgroundColor: t,
|
|
5232
5232
|
boxShadow: `0 0 0 ${e.borderWidth}px ${r}`
|
|
5233
5233
|
};
|
|
5234
5234
|
}, Nv = (e) => {
|
|
5235
5235
|
const t = Je(e).textAnnotations, r = ue((n) => Ue(n, "text-resize-drag"));
|
|
5236
|
-
return A(() => t.map((n) =>
|
|
5237
|
-
},
|
|
5236
|
+
return A(() => t.map((n) => Lv(n, r)), [t, r]);
|
|
5237
|
+
}, Lv = (e, t) => t === null || t.annotationId !== e.id ? e : {
|
|
5238
5238
|
...e,
|
|
5239
5239
|
at: {
|
|
5240
5240
|
...e.at,
|
|
5241
5241
|
x: e.at.x + t.shift
|
|
5242
5242
|
},
|
|
5243
5243
|
width: t.width
|
|
5244
|
-
},
|
|
5245
|
-
const t = Nv(e), r =
|
|
5244
|
+
}, Mv = ({ panelRect: e }) => {
|
|
5245
|
+
const t = Nv(e), r = Cv(), n = St(), o = t.filter((a) => a.id !== n);
|
|
5246
5246
|
return o.length === 0 ? null : /* @__PURE__ */ s("svg", {
|
|
5247
5247
|
x: e.x,
|
|
5248
5248
|
y: e.y,
|
|
@@ -5250,14 +5250,14 @@ var yh = "_1dw9dgx0", xh = "#9ca3af", Pt = "\0", bh = (e, t) => {
|
|
|
5250
5250
|
height: e.height,
|
|
5251
5251
|
overflow: "visible",
|
|
5252
5252
|
"data-testid": "text-annotations",
|
|
5253
|
-
children: o.map((a) => /* @__PURE__ */ s(
|
|
5253
|
+
children: o.map((a) => /* @__PURE__ */ s(Fv, {
|
|
5254
5254
|
annotation: a,
|
|
5255
5255
|
panel: e,
|
|
5256
5256
|
style: r(a.id)
|
|
5257
5257
|
}, a.id))
|
|
5258
5258
|
});
|
|
5259
|
-
},
|
|
5260
|
-
const n =
|
|
5259
|
+
}, Fv = ({ annotation: e, panel: t, style: r }) => {
|
|
5260
|
+
const n = Ld(e.id), o = ue((i) => i.caret?.annotationId === e.id), { TextAnnotation: a } = nr();
|
|
5261
5261
|
return /* @__PURE__ */ s("g", {
|
|
5262
5262
|
...qe({
|
|
5263
5263
|
kind: "annotation",
|
|
@@ -5272,13 +5272,13 @@ var yh = "_1dw9dgx0", xh = "#9ca3af", Pt = "\0", bh = (e, t) => {
|
|
|
5272
5272
|
})
|
|
5273
5273
|
});
|
|
5274
5274
|
}, Wo = () => {
|
|
5275
|
-
const e =
|
|
5275
|
+
const e = N(), t = C((r) => r.config.appearance.textScale);
|
|
5276
5276
|
return A(() => (r, n) => ci(e, r, n, t), [e, t]);
|
|
5277
|
-
},
|
|
5277
|
+
}, Dv = "ph8bdc0";
|
|
5278
5278
|
var Hv = "ph8bdc2", Dr = {
|
|
5279
5279
|
hittable: "ph8bdc4 ph8bdc3",
|
|
5280
5280
|
inert: "ph8bdc5 ph8bdc3"
|
|
5281
|
-
},
|
|
5281
|
+
}, Ov = ({ cx: e, cy: t, color: r, style: n }) => {
|
|
5282
5282
|
const o = bc(n.shadow);
|
|
5283
5283
|
return /* @__PURE__ */ s("circle", {
|
|
5284
5284
|
cx: e,
|
|
@@ -5292,7 +5292,7 @@ var Hv = "ph8bdc2", Dr = {
|
|
|
5292
5292
|
}
|
|
5293
5293
|
});
|
|
5294
5294
|
};
|
|
5295
|
-
function
|
|
5295
|
+
function Gv(e) {
|
|
5296
5296
|
const t = pe(), { formattingLocale: r } = G(), n = Wo(), o = C(j((c) => ({
|
|
5297
5297
|
pinnedNumbers: c.annotations.pinnedNumbers,
|
|
5298
5298
|
comments: c.annotations.comments,
|
|
@@ -5307,7 +5307,7 @@ function Wv(e) {
|
|
|
5307
5307
|
family: v.fontFamily ?? Ur,
|
|
5308
5308
|
size: v.fontSize,
|
|
5309
5309
|
weight: v.fontWeight
|
|
5310
|
-
}, h =
|
|
5310
|
+
}, h = Wv(t, c, d, g), f = t.measureText(h, g), m = c === "pinned-number" ? 15 : 0;
|
|
5311
5311
|
return {
|
|
5312
5312
|
width: f.width + m + (v.paddingInline + v.borderWidth) * 2,
|
|
5313
5313
|
height: Math.max(f.height, 10) + (v.paddingBlock + v.borderWidth) * 2,
|
|
@@ -5330,11 +5330,11 @@ function Wv(e) {
|
|
|
5330
5330
|
i
|
|
5331
5331
|
]);
|
|
5332
5332
|
}
|
|
5333
|
-
var
|
|
5333
|
+
var Wv = (e, t, r, n) => t !== "comment" ? r : ki(r, 140, (o) => e.measureText(o, n).width), Hr = "callouts", Vv = ({ panelRect: e }) => {
|
|
5334
5334
|
const { pinnedNumbers: t, comments: r } = C(j((h) => ({
|
|
5335
5335
|
pinnedNumbers: h.annotations.pinnedNumbers,
|
|
5336
5336
|
comments: h.annotations.comments
|
|
5337
|
-
}))), n = C((h) => h.coordSystem), o = de(), a = wn(), i = Wo(), l =
|
|
5337
|
+
}))), n = C((h) => h.coordSystem), o = de(), a = wn(), i = Wo(), l = Gv(e), { store: c } = me(), u = A(() => {
|
|
5338
5338
|
const h = /* @__PURE__ */ new Map();
|
|
5339
5339
|
for (const f of t) h.set(f.id, f.at);
|
|
5340
5340
|
for (const f of r) h.set(f.id, f.at);
|
|
@@ -5355,8 +5355,8 @@ var Vv = (e, t, r, n) => t !== "comment" ? r : ki(r, 140, (o) => e.measureText(o
|
|
|
5355
5355
|
]), g = A(() => ba(l, e), [l, e]);
|
|
5356
5356
|
return M(() => {
|
|
5357
5357
|
const h = c.getState();
|
|
5358
|
-
return h.publishPointerRegions(
|
|
5359
|
-
h.publishPointerRegions(
|
|
5358
|
+
return h.publishPointerRegions(Hr, g), () => {
|
|
5359
|
+
h.publishPointerRegions(Hr, []);
|
|
5360
5360
|
};
|
|
5361
5361
|
}, [c, g]), t.length === 0 && r.length === 0 ? null : /* @__PURE__ */ s("svg", {
|
|
5362
5362
|
x: e.x,
|
|
@@ -5364,7 +5364,7 @@ var Vv = (e, t, r, n) => t !== "comment" ? r : ki(r, 140, (o) => e.measureText(o
|
|
|
5364
5364
|
width: e.width,
|
|
5365
5365
|
height: e.height,
|
|
5366
5366
|
overflow: "visible",
|
|
5367
|
-
className:
|
|
5367
|
+
className: Dv,
|
|
5368
5368
|
"data-testid": "callouts",
|
|
5369
5369
|
children: l.map((h) => {
|
|
5370
5370
|
if (!h.inView) return null;
|
|
@@ -5381,7 +5381,7 @@ var Vv = (e, t, r, n) => t !== "comment" ? r : ki(r, 140, (o) => e.measureText(o
|
|
|
5381
5381
|
overflow: "visible",
|
|
5382
5382
|
children: /* @__PURE__ */ w("div", {
|
|
5383
5383
|
className: y ? Dr.hittable : Dr.inert,
|
|
5384
|
-
style:
|
|
5384
|
+
style: Qv(m.label),
|
|
5385
5385
|
children: [h.kind === "pinned-number" && /* @__PURE__ */ s("span", {
|
|
5386
5386
|
className: "ph8bdc1",
|
|
5387
5387
|
children: /* @__PURE__ */ s(Xe, {
|
|
@@ -5393,32 +5393,32 @@ var Vv = (e, t, r, n) => t !== "comment" ? r : ki(r, 140, (o) => e.measureText(o
|
|
|
5393
5393
|
})
|
|
5394
5394
|
}), /* @__PURE__ */ s("span", {
|
|
5395
5395
|
className: Hv,
|
|
5396
|
-
style:
|
|
5396
|
+
style: Yv(m.label),
|
|
5397
5397
|
children: h.text
|
|
5398
5398
|
})]
|
|
5399
5399
|
})
|
|
5400
|
-
}), /* @__PURE__ */ s(
|
|
5400
|
+
}), /* @__PURE__ */ s(Ov, {
|
|
5401
5401
|
cx: h.anchorPx.x,
|
|
5402
5402
|
cy: h.anchorPx.y,
|
|
5403
|
-
color:
|
|
5403
|
+
color: Uv(m.marker, p),
|
|
5404
5404
|
style: m.marker
|
|
5405
5405
|
})]
|
|
5406
5406
|
}, h.id);
|
|
5407
5407
|
})
|
|
5408
5408
|
});
|
|
5409
|
-
},
|
|
5409
|
+
}, Uv = (e, t) => e.isColorAuthored ? e.color : t ?? e.color, Qv = (e) => ({
|
|
5410
5410
|
background: e.background,
|
|
5411
5411
|
borderRadius: e.borderRadius,
|
|
5412
5412
|
padding: `${e.paddingBlock}px ${e.paddingInline}px`,
|
|
5413
5413
|
boxShadow: so(e.shadow),
|
|
5414
5414
|
...e.borderWidth > 0 ? { border: `${e.borderWidth}px solid ${e.borderColor}` } : {}
|
|
5415
|
-
}),
|
|
5415
|
+
}), Yv = (e) => ({
|
|
5416
5416
|
...e.fontFamily === void 0 ? {} : { fontFamily: e.fontFamily },
|
|
5417
5417
|
fontSize: e.fontSize,
|
|
5418
5418
|
fontWeight: e.fontWeight,
|
|
5419
5419
|
lineHeight: e.lineHeight,
|
|
5420
5420
|
color: e.textColor
|
|
5421
|
-
}),
|
|
5421
|
+
}), Kv = {
|
|
5422
5422
|
"clapping-hands": {
|
|
5423
5423
|
aspectRatio: 1.059,
|
|
5424
5424
|
src: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEQAAABICAYAAABP0VPJAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAABipSURBVHgB7VwJfFTVuf/uMvtMlplJJiEhBEhYwiIY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qHQjSCyjVPK0QgGKQECk7rnn5jGPPXbf46mphuJkjfBeJ3Tvew6ors/lzTVRkhbFqIvAcPHDQCf/HB7BaHxx/vybnvX7ocfpPOjcsGEDh0ckz/ptABJ+L11UtJqprm5EN+1igkEla7f7mYyMUazL1cdgUlil1VLa8vJ3HsCNph8O1lBP+XMQbHgXGEM26KffBppxywZjFTEu+uOcOdc+I4pMn9Npd5LYCZKsmr5tkn1CCRv6BTj5CWq2Ni1tRprJdFGOwXDRhF279q7BHMygv+UL9NSL5yBh377D/0Pa0utnZpBfj8HwUx/fKiFI5IfMxdrMzLkWlWrq+EceeXo5gtImDpMwK9a2ceNr16ekTCmwWOZnXohgRCj0k7ECVU7OHJNGU5z385//9vL+fsehoYKBvAcfffS3y1JTZ41LSbnESMD4V/jHDDT5wXJ6enGq0Th7tF4/eQouxt47GxCYAbMfPVr9tNE4s0itnpJHwPhn/Oj5WyXyS3CzeYHBaJyeq9dPnXzy5KkXZRUSwge5x/LN11xzzwKiZmbzpei6FxiG898pLiTEsK8laFd6VWazIsXlCmhYltLee++NuWPGjE757LO97Z988kUfRSmCHMd7WVbl1esBI9CvyM8S5ETKkF5ywRGCkotrpFEY2FEaQQgwosjTgYCCpyiBYxiFX612+7u6RHSp1STgGvL3ZXLjFxzhTDswS9cWTEubiYPmUQLSfCoVeO32dk9BAeWbM2dKoLq6TP7l0vDoQjYyUUnXUDqe0Nf9f0f/APDc5Dseec9LAAAAAElFTkSuQmCC"
|
|
@@ -5439,10 +5439,10 @@ var Vv = (e, t, r, n) => t !== "comment" ? r : ki(r, 140, (o) => e.measureText(o
|
|
|
5439
5439
|
aspectRatio: 1.063,
|
|
5440
5440
|
src: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABECAYAAAAx+DPIAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAABSHSURBVHgB7VwLcFzVef7PfezefWklZEl+BQQSGGQsMMa0vFXStC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ekWtPnTixIxh23YYj6YM153VNC2sY0qrPvroX62rr1+RoJMPjv/QpOglcPHcX/2qexi1ZtUFFzSuQ81JGEYoiS1Gf1xCfoc6ou8Z3rfv0Huvv757sLNz95SqGmY6zTKhkJ6uq0tkent3VHwzrJyh5SDvuZsoylCBrJMJIRN6OKxorququZzL8HAHMLJhve4q+TxBwfJgW353WSiEJ6SQxRPrqGJZGdeDlKmmcNEfoflpDsIBFh54mOHwmvz4+E9y9LYotkW/VL1cAph7PiU/TPxFRAv6k6RqWWnFNHWNi+Se/iQuoszMzHqMUZ5cjVo0wVwXqyHMkriotYkcFo8nEbbLoMZkUYQRR9OyzthYEu18Gtt6bC/8//6z+/m3S0H1XnrW0L+QlhSaWtS8/7kCaVBLSP4NMTXxmxi/FH9i/7+rT2twf4PgbQAAAABJRU5ErkJggg=="
|
|
5441
5441
|
}
|
|
5442
|
-
},
|
|
5442
|
+
}, zv = 3.2, jv = ({ panelRect: e }) => {
|
|
5443
5443
|
const t = Je(e).stickers, r = C((o) => o.config.appearance.textScale);
|
|
5444
5444
|
if (t.length === 0) return null;
|
|
5445
|
-
const n =
|
|
5445
|
+
const n = Hn(zv, r);
|
|
5446
5446
|
return /* @__PURE__ */ s("svg", {
|
|
5447
5447
|
x: e.x,
|
|
5448
5448
|
y: e.y,
|
|
@@ -5452,7 +5452,7 @@ var Vv = (e, t, r, n) => t !== "comment" ? r : ki(r, 140, (o) => e.measureText(o
|
|
|
5452
5452
|
"data-testid": "stickers",
|
|
5453
5453
|
children: t.map((o) => {
|
|
5454
5454
|
const a = Qe(o.at, e);
|
|
5455
|
-
return /* @__PURE__ */ s(
|
|
5455
|
+
return /* @__PURE__ */ s(Xv, {
|
|
5456
5456
|
sticker: o,
|
|
5457
5457
|
sizePx: n,
|
|
5458
5458
|
x: a.x,
|
|
@@ -5460,10 +5460,10 @@ var Vv = (e, t, r, n) => t !== "comment" ? r : ki(r, 140, (o) => e.measureText(o
|
|
|
5460
5460
|
}, o.id);
|
|
5461
5461
|
})
|
|
5462
5462
|
});
|
|
5463
|
-
},
|
|
5464
|
-
const o =
|
|
5463
|
+
}, Xv = ({ sticker: e, sizePx: t, x: r, y: n }) => {
|
|
5464
|
+
const o = Kv[e.sticker];
|
|
5465
5465
|
if (!o) return null;
|
|
5466
|
-
const { width: a, height: i } =
|
|
5466
|
+
const { width: a, height: i } = qv(o.aspectRatio, t);
|
|
5467
5467
|
return /* @__PURE__ */ s("image", {
|
|
5468
5468
|
href: o.src,
|
|
5469
5469
|
x: r,
|
|
@@ -5472,30 +5472,30 @@ var Vv = (e, t, r, n) => t !== "comment" ? r : ki(r, 140, (o) => e.measureText(o
|
|
|
5472
5472
|
height: i,
|
|
5473
5473
|
transform: `translate(${-a / 2}, ${-i / 2})`
|
|
5474
5474
|
});
|
|
5475
|
-
},
|
|
5475
|
+
}, qv = (e, t) => e >= 1 ? {
|
|
5476
5476
|
width: t,
|
|
5477
5477
|
height: t / e
|
|
5478
5478
|
} : {
|
|
5479
5479
|
width: t * e,
|
|
5480
5480
|
height: t
|
|
5481
|
-
},
|
|
5481
|
+
}, Jv = 0.25, Vo = ({ children: e, ...t }) => {
|
|
5482
5482
|
const r = id();
|
|
5483
5483
|
return r <= 0 ? /* @__PURE__ */ s("g", {
|
|
5484
5484
|
...t,
|
|
5485
5485
|
children: e
|
|
5486
|
-
}) : /* @__PURE__ */ s(
|
|
5486
|
+
}) : /* @__PURE__ */ s(H.g, {
|
|
5487
5487
|
...t,
|
|
5488
5488
|
initial: { opacity: 0 },
|
|
5489
5489
|
animate: { opacity: 1 },
|
|
5490
5490
|
transition: {
|
|
5491
|
-
duration:
|
|
5491
|
+
duration: Jv,
|
|
5492
5492
|
delay: r
|
|
5493
5493
|
},
|
|
5494
5494
|
children: e
|
|
5495
5495
|
});
|
|
5496
|
-
},
|
|
5497
|
-
var
|
|
5498
|
-
const d = bt(), v = a ? `rotate(-90 ${e} ${t})` : void 0, g = d[i][l], h = g.borderColor !== void 0 && (g.borderWidth ?? 0) > 0, f =
|
|
5496
|
+
}, Zv = "_1agclyl0";
|
|
5497
|
+
var $v = "_1agclyl2", Uo = ({ x: e, y: t, width: r, height: n, text: o, isRotated: a, target: i, position: l, coordType: c, backdropColor: u }) => {
|
|
5498
|
+
const d = bt(), v = a ? `rotate(-90 ${e} ${t})` : void 0, g = d[i][l], h = g.borderColor !== void 0 && (g.borderWidth ?? 0) > 0, f = tg(i, c, g), m = eg(g, f, u);
|
|
5499
5499
|
return /* @__PURE__ */ w("g", {
|
|
5500
5500
|
transform: v,
|
|
5501
5501
|
children: [f && /* @__PURE__ */ s("rect", {
|
|
@@ -5512,10 +5512,10 @@ var _v = "_1agclyl2", Uo = ({ x: e, y: t, width: r, height: n, text: o, isRotate
|
|
|
5512
5512
|
strokeWidth: g.borderWidth
|
|
5513
5513
|
} : {}
|
|
5514
5514
|
}), /* @__PURE__ */ s("text", {
|
|
5515
|
-
className:
|
|
5515
|
+
className: $v,
|
|
5516
5516
|
style: {
|
|
5517
5517
|
...le(g),
|
|
5518
|
-
fill:
|
|
5518
|
+
fill: _v(g, m)
|
|
5519
5519
|
},
|
|
5520
5520
|
x: e,
|
|
5521
5521
|
y: t,
|
|
@@ -5524,10 +5524,10 @@ var _v = "_1agclyl2", Uo = ({ x: e, y: t, width: r, height: n, text: o, isRotate
|
|
|
5524
5524
|
children: o
|
|
5525
5525
|
})]
|
|
5526
5526
|
});
|
|
5527
|
-
},
|
|
5527
|
+
}, _v = (e, t) => e.isTextColorAuthored || t === void 0 ? e.textColor : nn(t), eg = (e, t, r) => {
|
|
5528
5528
|
if (r !== void 0)
|
|
5529
5529
|
return Pa(t ? e.background : void 0, r);
|
|
5530
|
-
},
|
|
5530
|
+
}, tg = (e, t, r) => r.background === void 0 ? !1 : e === "aggregate" || t === "cartesian", rg = ({ panelRect: e, formattingLocale: t, plotBottomY: r, isFooterChromeReserved: n }) => {
|
|
5531
5531
|
const o = pe(), a = Ie(), i = C(j((d) => ({
|
|
5532
5532
|
layers: d.layers,
|
|
5533
5533
|
coordSystem: d.coordSystem,
|
|
@@ -5570,12 +5570,12 @@ var _v = "_1agclyl2", Uo = ({ x: e, y: t, width: r, height: n, text: o, isRotate
|
|
|
5570
5570
|
backdropColor: d.backdropColor
|
|
5571
5571
|
}, `${d.layerId}:${v}`));
|
|
5572
5572
|
return /* @__PURE__ */ s(Vo, {
|
|
5573
|
-
className:
|
|
5573
|
+
className: Zv,
|
|
5574
5574
|
transform: `translate(${e.x}, ${e.y})`,
|
|
5575
5575
|
"data-testid": "data-labels",
|
|
5576
5576
|
children: u
|
|
5577
5577
|
});
|
|
5578
|
-
},
|
|
5578
|
+
}, ng = ({ edge: e, position: t, labelRotation: r, label: n, tickLabelStyle: o }) => {
|
|
5579
5579
|
const { offset: a, textColor: i } = o, l = k(t), c = {
|
|
5580
5580
|
style: le(o),
|
|
5581
5581
|
fill: i
|
|
@@ -5585,16 +5585,16 @@ var _v = "_1agclyl2", Uo = ({ x: e, y: t, width: r, height: n, text: o, isRotate
|
|
|
5585
5585
|
y: d ? "100%" : 0,
|
|
5586
5586
|
style: { overflow: "visible" },
|
|
5587
5587
|
children: /* @__PURE__ */ s("text", {
|
|
5588
|
-
...
|
|
5588
|
+
...ag(d, a, r),
|
|
5589
5589
|
...c,
|
|
5590
5590
|
children: n
|
|
5591
5591
|
})
|
|
5592
5592
|
}) : /* @__PURE__ */ s("text", {
|
|
5593
|
-
...
|
|
5593
|
+
...og(e, l, a),
|
|
5594
5594
|
...c,
|
|
5595
5595
|
children: n
|
|
5596
5596
|
});
|
|
5597
|
-
},
|
|
5597
|
+
}, og = (e, t, r) => {
|
|
5598
5598
|
switch (e) {
|
|
5599
5599
|
case "bottom":
|
|
5600
5600
|
return {
|
|
@@ -5627,7 +5627,7 @@ var _v = "_1agclyl2", Uo = ({ x: e, y: t, width: r, height: n, text: o, isRotate
|
|
|
5627
5627
|
dominantBaseline: "central"
|
|
5628
5628
|
};
|
|
5629
5629
|
}
|
|
5630
|
-
},
|
|
5630
|
+
}, ag = (e, t, r) => {
|
|
5631
5631
|
const n = e ? -t : t;
|
|
5632
5632
|
return {
|
|
5633
5633
|
x: 0,
|
|
@@ -5636,7 +5636,7 @@ var _v = "_1agclyl2", Uo = ({ x: e, y: t, width: r, height: n, text: o, isRotate
|
|
|
5636
5636
|
dominantBaseline: "central",
|
|
5637
5637
|
transform: `rotate(${r}, 0, ${n})`
|
|
5638
5638
|
};
|
|
5639
|
-
},
|
|
5639
|
+
}, ig = ({ formattedAxis: e, rect: t }) => {
|
|
5640
5640
|
const r = e.position === "bottom" || e.position === "top", n = Ce(e.scaleAestheticKey), o = tr()[n], a = mo()[n];
|
|
5641
5641
|
return /* @__PURE__ */ w("svg", {
|
|
5642
5642
|
x: t.x,
|
|
@@ -5645,13 +5645,13 @@ var _v = "_1agclyl2", Uo = ({ x: e, y: t, width: r, height: n, text: o, isRotate
|
|
|
5645
5645
|
height: t.height,
|
|
5646
5646
|
style: { overflow: "visible" },
|
|
5647
5647
|
children: [!1, e.ticks.map((i, l) => {
|
|
5648
|
-
const c = i.formattedLabel, u = r ? i.position : 1 - i.position, d =
|
|
5648
|
+
const c = i.formattedLabel, u = r ? i.position : 1 - i.position, d = sg(e.position, u, t, a.length);
|
|
5649
5649
|
return /* @__PURE__ */ w("g", { children: [e.ticksVisible && /* @__PURE__ */ s("line", {
|
|
5650
5650
|
...d,
|
|
5651
5651
|
stroke: a.color,
|
|
5652
5652
|
strokeWidth: a.strokeWidth,
|
|
5653
5653
|
strokeDasharray: ft(a.lineType)
|
|
5654
|
-
}), /* @__PURE__ */ s(
|
|
5654
|
+
}), /* @__PURE__ */ s(ng, {
|
|
5655
5655
|
edge: e.position,
|
|
5656
5656
|
position: u,
|
|
5657
5657
|
labelRotation: e.labelRotation,
|
|
@@ -5660,7 +5660,7 @@ var _v = "_1agclyl2", Uo = ({ x: e, y: t, width: r, height: n, text: o, isRotate
|
|
|
5660
5660
|
})] }, l);
|
|
5661
5661
|
})]
|
|
5662
5662
|
});
|
|
5663
|
-
},
|
|
5663
|
+
}, sg = (e, t, r, n) => {
|
|
5664
5664
|
const o = k(t);
|
|
5665
5665
|
switch (e) {
|
|
5666
5666
|
case "bottom":
|
|
@@ -5692,12 +5692,12 @@ var _v = "_1agclyl2", Uo = ({ x: e, y: t, width: r, height: n, text: o, isRotate
|
|
|
5692
5692
|
y2: o
|
|
5693
5693
|
};
|
|
5694
5694
|
}
|
|
5695
|
-
},
|
|
5695
|
+
}, lg = ({ axes: e, rects: t }) => {
|
|
5696
5696
|
const r = go();
|
|
5697
5697
|
return /* @__PURE__ */ s(B, { children: e.map((n) => {
|
|
5698
5698
|
const o = t[n.position];
|
|
5699
5699
|
if (!o || !n.isVisible) return null;
|
|
5700
|
-
const a =
|
|
5700
|
+
const a = cg(n.position, o), i = r[Ce(n.scaleAestheticKey)];
|
|
5701
5701
|
return /* @__PURE__ */ w("g", {
|
|
5702
5702
|
transform: `translate(${o.x}, ${o.y})`,
|
|
5703
5703
|
children: [!1, /* @__PURE__ */ s("text", {
|
|
@@ -5708,7 +5708,7 @@ var _v = "_1agclyl2", Uo = ({ x: e, y: t, width: r, height: n, text: o, isRotate
|
|
|
5708
5708
|
})]
|
|
5709
5709
|
}, `axis-label-${n.position}`);
|
|
5710
5710
|
}) });
|
|
5711
|
-
},
|
|
5711
|
+
}, cg = (e, t) => {
|
|
5712
5712
|
const r = {
|
|
5713
5713
|
x: t.width / 2,
|
|
5714
5714
|
y: t.height / 2,
|
|
@@ -5716,21 +5716,21 @@ var _v = "_1agclyl2", Uo = ({ x: e, y: t, width: r, height: n, text: o, isRotate
|
|
|
5716
5716
|
dominantBaseline: "middle"
|
|
5717
5717
|
};
|
|
5718
5718
|
return e === "left" ? (r.x = 0, r.textAnchor = "start") : e === "right" && (r.x = t.width, r.textAnchor = "end"), r;
|
|
5719
|
-
},
|
|
5719
|
+
}, dg = ({ formattedAxes: e, tickRects: t }) => /* @__PURE__ */ s(B, { children: e.map((r) => {
|
|
5720
5720
|
if (r.geometry !== "linear") return null;
|
|
5721
5721
|
const n = t[r.position];
|
|
5722
|
-
return !n || !r.isVisible ? null : /* @__PURE__ */ s(
|
|
5722
|
+
return !n || !r.isVisible ? null : /* @__PURE__ */ s(ig, {
|
|
5723
5723
|
formattedAxis: r,
|
|
5724
5724
|
rect: n
|
|
5725
5725
|
}, r.scaleAestheticKey);
|
|
5726
|
-
}) }),
|
|
5726
|
+
}) }), ug = ({ formattedAxes: e, labelRects: t }) => /* @__PURE__ */ s(lg, {
|
|
5727
5727
|
axes: e.filter((r) => r.geometry === "linear"),
|
|
5728
5728
|
rects: t
|
|
5729
5729
|
}), Qo = {
|
|
5730
5730
|
strokeDashoffset: "0",
|
|
5731
5731
|
strokeLinecap: "round"
|
|
5732
|
-
},
|
|
5733
|
-
const o =
|
|
5732
|
+
}, hg = ({ axes: e, panelBorderSizes: t, panelFrameRect: r, panelRect: n }) => {
|
|
5733
|
+
const o = N(), a = n.x - r.x, i = n.y - r.y;
|
|
5734
5734
|
return /* @__PURE__ */ s("svg", {
|
|
5735
5735
|
"data-testid": "grid",
|
|
5736
5736
|
x: r.x,
|
|
@@ -5742,7 +5742,7 @@ var _v = "_1agclyl2", Uo = ({ x: e, y: t, width: r, height: n, text: o, isRotate
|
|
|
5742
5742
|
if (l.geometry !== "linear" || !l.gridVisible) return null;
|
|
5743
5743
|
const c = l.position === "bottom" || l.position === "top", u = Tt(o, Ce(l.scaleAestheticKey)), d = ft(u.lineType);
|
|
5744
5744
|
return /* @__PURE__ */ s("g", { children: l.ticks.map((v, g) => {
|
|
5745
|
-
const h =
|
|
5745
|
+
const h = vg(c, v.position);
|
|
5746
5746
|
if (h !== null && t[h] > 0) return null;
|
|
5747
5747
|
const f = c ? v.position : 1 - v.position;
|
|
5748
5748
|
let m;
|
|
@@ -5773,10 +5773,10 @@ var _v = "_1agclyl2", Uo = ({ x: e, y: t, width: r, height: n, text: o, isRotate
|
|
|
5773
5773
|
}) }, l.scaleAestheticKey);
|
|
5774
5774
|
})
|
|
5775
5775
|
});
|
|
5776
|
-
},
|
|
5777
|
-
const r = C((i) => i.coordSystem.type === "polar"), n =
|
|
5776
|
+
}, vg = (e, t) => t <= 0 ? e ? "left" : "bottom" : t >= 1 ? e ? "right" : "top" : null, gg = ({ sizes: e, panelFrameRect: t }) => {
|
|
5777
|
+
const r = C((i) => i.coordSystem.type === "polar"), n = N(), o = A(() => un(n), [n]);
|
|
5778
5778
|
if (r) return null;
|
|
5779
|
-
const a =
|
|
5779
|
+
const a = Na(o, {
|
|
5780
5780
|
x: e.left / 2,
|
|
5781
5781
|
y: e.top / 2,
|
|
5782
5782
|
width: t.width - (e.left + e.right) / 2,
|
|
@@ -5790,7 +5790,7 @@ var _v = "_1agclyl2", Uo = ({ x: e, y: t, width: r, height: n, text: o, isRotate
|
|
|
5790
5790
|
height: t.height,
|
|
5791
5791
|
style: { overflow: "visible" },
|
|
5792
5792
|
children: a.map((i, l) => /* @__PURE__ */ s("path", {
|
|
5793
|
-
d:
|
|
5793
|
+
d: fg(i.segments),
|
|
5794
5794
|
fill: "none",
|
|
5795
5795
|
stroke: i.color,
|
|
5796
5796
|
strokeDasharray: ft(i.lineType),
|
|
@@ -5798,7 +5798,7 @@ var _v = "_1agclyl2", Uo = ({ x: e, y: t, width: r, height: n, text: o, isRotate
|
|
|
5798
5798
|
...Qo
|
|
5799
5799
|
}, l))
|
|
5800
5800
|
});
|
|
5801
|
-
},
|
|
5801
|
+
}, fg = (e) => e.map((t) => {
|
|
5802
5802
|
switch (t.type) {
|
|
5803
5803
|
case "move":
|
|
5804
5804
|
return `M ${t.x} ${t.y}`;
|
|
@@ -5827,10 +5827,10 @@ var Yo = (e, t) => {
|
|
|
5827
5827
|
angleFor: (c) => ni(c, a, i),
|
|
5828
5828
|
radiusNormFor: (c) => o + c * (1 - o)
|
|
5829
5829
|
};
|
|
5830
|
-
},
|
|
5830
|
+
}, pg = 3, mg = 16, Ag = ({ formattedAxes: e, panelRect: t }) => {
|
|
5831
5831
|
const r = tr(), n = Yo(t, e);
|
|
5832
5832
|
if (!n) return null;
|
|
5833
|
-
const { circle: o, circularAxis: a, radialAxis: i, startAngle: l, angleFor: c, radiusNormFor: u } = n, d =
|
|
5833
|
+
const { circle: o, circularAxis: a, radialAxis: i, startAngle: l, angleFor: c, radiusNormFor: u } = n, d = yg(i, u, o.radius), v = (g) => r[Ce(g.scaleAestheticKey)];
|
|
5834
5834
|
return /* @__PURE__ */ w("svg", {
|
|
5835
5835
|
x: t.x,
|
|
5836
5836
|
y: t.y,
|
|
@@ -5850,7 +5850,7 @@ var Yo = (e, t) => {
|
|
|
5850
5850
|
paintOrder: "stroke"
|
|
5851
5851
|
},
|
|
5852
5852
|
stroke: x.graphBackground,
|
|
5853
|
-
strokeWidth:
|
|
5853
|
+
strokeWidth: pg,
|
|
5854
5854
|
fill: v(i).textColor,
|
|
5855
5855
|
children: g.formattedLabel
|
|
5856
5856
|
}, `radial-label-${f}`);
|
|
@@ -5860,7 +5860,7 @@ var Yo = (e, t) => {
|
|
|
5860
5860
|
return /* @__PURE__ */ s("text", {
|
|
5861
5861
|
x: m.x,
|
|
5862
5862
|
y: m.y,
|
|
5863
|
-
textAnchor:
|
|
5863
|
+
textAnchor: xg(f),
|
|
5864
5864
|
dominantBaseline: "central",
|
|
5865
5865
|
style: le(v(a)),
|
|
5866
5866
|
fill: v(a).textColor,
|
|
@@ -5868,7 +5868,7 @@ var Yo = (e, t) => {
|
|
|
5868
5868
|
}, `rim-label-${h}`);
|
|
5869
5869
|
})]
|
|
5870
5870
|
});
|
|
5871
|
-
},
|
|
5871
|
+
}, yg = (e, t, r) => {
|
|
5872
5872
|
if (!e) return [];
|
|
5873
5873
|
const n = [];
|
|
5874
5874
|
let o = Number.NEGATIVE_INFINITY;
|
|
@@ -5876,17 +5876,17 @@ var Yo = (e, t) => {
|
|
|
5876
5876
|
const i = t(a.position);
|
|
5877
5877
|
if (i <= 0) continue;
|
|
5878
5878
|
const l = i * r;
|
|
5879
|
-
l - o <
|
|
5879
|
+
l - o < mg || (n.push({
|
|
5880
5880
|
tick: a,
|
|
5881
5881
|
radiusNorm: i
|
|
5882
5882
|
}), o = l);
|
|
5883
5883
|
}
|
|
5884
5884
|
return n;
|
|
5885
|
-
},
|
|
5885
|
+
}, xg = (e) => {
|
|
5886
5886
|
const t = Math.sin(e);
|
|
5887
5887
|
return Math.abs(t) < 0.01 ? "middle" : t > 0 ? "start" : "end";
|
|
5888
|
-
},
|
|
5889
|
-
const r =
|
|
5888
|
+
}, bg = ({ formattedAxes: e, panelRect: t }) => {
|
|
5889
|
+
const r = N(), n = Yo(t, e);
|
|
5890
5890
|
if (!n) return null;
|
|
5891
5891
|
const { circle: o, circularAxis: a, radialAxis: i, innerRadius: l, angleFor: c, radiusNormFor: u } = n, d = Tt(r, "y"), v = Tt(r, "x");
|
|
5892
5892
|
return /* @__PURE__ */ w("svg", {
|
|
@@ -5930,7 +5930,7 @@ var Yo = (e, t) => {
|
|
|
5930
5930
|
})
|
|
5931
5931
|
]
|
|
5932
5932
|
});
|
|
5933
|
-
},
|
|
5933
|
+
}, wg = ({ layer: e, coordSystem: t, shouldAnimateTransitions: r, isDimmed: n, dimStyle: o, formattingLocale: a, panelRect: i }) => {
|
|
5934
5934
|
const l = de(), c = sd(e.id), { colorScheme: u } = G(), d = T(e), v = l(e.geom, t.type);
|
|
5935
5935
|
if (v === null) return null;
|
|
5936
5936
|
const g = yt(v.render);
|
|
@@ -5951,7 +5951,7 @@ var Yo = (e, t) => {
|
|
|
5951
5951
|
})
|
|
5952
5952
|
});
|
|
5953
5953
|
};
|
|
5954
|
-
function
|
|
5954
|
+
function Sg({ renderer: e, layer: t, coordSystem: r, candidates: n }) {
|
|
5955
5955
|
if (e?.getOverlayAnchor === void 0 || n.length === 0) return [];
|
|
5956
5956
|
const o = [];
|
|
5957
5957
|
for (const { observation: a, observationIndex: i } of n) {
|
|
@@ -5968,8 +5968,8 @@ function kg({ renderer: e, layer: t, coordSystem: r, candidates: n }) {
|
|
|
5968
5968
|
}
|
|
5969
5969
|
return o;
|
|
5970
5970
|
}
|
|
5971
|
-
var
|
|
5972
|
-
const c = C((b) => b.config.numberFormat), u = A(() =>
|
|
5971
|
+
var kg = 4, Rg = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n, coordSystem: o, shouldAnimateTransitions: a, panelRect: i, formattingLocale: l }) => {
|
|
5972
|
+
const c = C((b) => b.config.numberFormat), u = A(() => Sg({
|
|
5973
5973
|
renderer: e,
|
|
5974
5974
|
layer: t,
|
|
5975
5975
|
coordSystem: o,
|
|
@@ -6004,7 +6004,7 @@ var Rg = 4, Cg = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
|
|
|
6004
6004
|
};
|
|
6005
6005
|
y = e.renderHighlight ? e.renderHighlight(b) : p.fn(b);
|
|
6006
6006
|
}
|
|
6007
|
-
return /* @__PURE__ */ w(Vo, { children: [y, u.map(({ observation: b, observationIndex: R, anchor: S }) => /* @__PURE__ */ s(
|
|
6007
|
+
return /* @__PURE__ */ w(Vo, { children: [y, u.map(({ observation: b, observationIndex: R, anchor: S }) => /* @__PURE__ */ s(Cg, {
|
|
6008
6008
|
observation: b,
|
|
6009
6009
|
anchor: S,
|
|
6010
6010
|
panelRect: i,
|
|
@@ -6014,8 +6014,8 @@ var Rg = 4, Cg = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
|
|
|
6014
6014
|
formatYValue: h,
|
|
6015
6015
|
labelStyle: m.observation.outside,
|
|
6016
6016
|
familyDefault: f.familyDefault
|
|
6017
|
-
},
|
|
6018
|
-
},
|
|
6017
|
+
}, Eg(b, R)))] });
|
|
6018
|
+
}, Cg = ({ observation: e, anchor: t, panelRect: r, fill: n, dotRadius: o, readSegmentY: a, formatYValue: i, labelStyle: l, familyDefault: c }) => {
|
|
6019
6019
|
const u = pe(), d = gn(t.x), v = fn(t.y), g = a(e), h = tn(g) ? i(g, e) : null, f = A(() => {
|
|
6020
6020
|
if (h === null) return null;
|
|
6021
6021
|
const m = u.measureText(h, z(l, c));
|
|
@@ -6037,7 +6037,7 @@ var Rg = 4, Cg = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
|
|
|
6037
6037
|
fill: n
|
|
6038
6038
|
}), h !== null && f !== null && /* @__PURE__ */ s(Uo, {
|
|
6039
6039
|
x: d * r.width,
|
|
6040
|
-
y: v * r.height - o -
|
|
6040
|
+
y: v * r.height - o - kg - f.height / 2,
|
|
6041
6041
|
width: f.width,
|
|
6042
6042
|
height: f.height,
|
|
6043
6043
|
text: h,
|
|
@@ -6046,10 +6046,10 @@ var Rg = 4, Cg = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
|
|
|
6046
6046
|
position: "outside",
|
|
6047
6047
|
coordType: "cartesian"
|
|
6048
6048
|
})] });
|
|
6049
|
-
},
|
|
6049
|
+
}, Eg = (e, t) => {
|
|
6050
6050
|
const r = e[ce.group];
|
|
6051
6051
|
return `${String(r ?? "")}\0${t}`;
|
|
6052
|
-
},
|
|
6052
|
+
}, Pg = ({ layer: e, coordSystem: t, panelRect: r }) => {
|
|
6053
6053
|
const { primary: n, group: o, related: a } = Ve(j((v) => ({
|
|
6054
6054
|
primary: v.hover.primary,
|
|
6055
6055
|
group: v.hover.group,
|
|
@@ -6075,7 +6075,7 @@ var Rg = 4, Cg = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
|
|
|
6075
6075
|
colorScheme: l,
|
|
6076
6076
|
styleReaders: c
|
|
6077
6077
|
});
|
|
6078
|
-
},
|
|
6078
|
+
}, Bg = (e) => {
|
|
6079
6079
|
const t = T(e);
|
|
6080
6080
|
return A(() => {
|
|
6081
6081
|
const [r] = e.data;
|
|
@@ -6087,7 +6087,7 @@ var Rg = 4, Cg = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
|
|
|
6087
6087
|
saturation: t.get("saturation", r, "dimmed")
|
|
6088
6088
|
};
|
|
6089
6089
|
}, [e, t]);
|
|
6090
|
-
},
|
|
6090
|
+
}, Ig = "var(--to1jkx0)", Tg = "var(--to1jkx1)", Ng = "to1jkx2", Lg = "to1jkx3", Mg = ({ shouldAnimateTransitions: e, panelRect: t, formattingLocale: r }) => {
|
|
6091
6091
|
const { layers: n, coordSystem: o } = C(j((a) => ({
|
|
6092
6092
|
layers: a.layers,
|
|
6093
6093
|
coordSystem: a.coordSystem
|
|
@@ -6100,30 +6100,30 @@ var Rg = 4, Cg = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
|
|
|
6100
6100
|
className: Ng,
|
|
6101
6101
|
"data-testid": "geom-layers",
|
|
6102
6102
|
...Ud(),
|
|
6103
|
-
children: n.map((a) => /* @__PURE__ */ w(zt, { children: [/* @__PURE__ */ s(
|
|
6103
|
+
children: n.map((a) => /* @__PURE__ */ w(zt, { children: [/* @__PURE__ */ s(Og, {
|
|
6104
6104
|
layer: a,
|
|
6105
6105
|
coordSystem: o,
|
|
6106
6106
|
shouldAnimateTransitions: e,
|
|
6107
6107
|
panelRect: t,
|
|
6108
6108
|
formattingLocale: r
|
|
6109
|
-
}), /* @__PURE__ */ s(
|
|
6109
|
+
}), /* @__PURE__ */ s(Pg, {
|
|
6110
6110
|
layer: a,
|
|
6111
6111
|
coordSystem: o,
|
|
6112
6112
|
panelRect: t
|
|
6113
|
-
})] }, `${a.id}-${
|
|
6113
|
+
})] }, `${a.id}-${Fg(o)}`))
|
|
6114
6114
|
});
|
|
6115
|
-
},
|
|
6115
|
+
}, Fg = (e) => e.type === "cartesian" ? `cartesian-${e.mainAxis}` : e.type, Dg = (e) => {
|
|
6116
6116
|
if (e.geom !== "rule")
|
|
6117
|
-
return
|
|
6117
|
+
return Lg;
|
|
6118
6118
|
}, Hg = (e) => yn({
|
|
6119
|
-
...e.opacity === void 0 ? {} : { [
|
|
6120
|
-
...e.saturation === void 0 ? {} : { [
|
|
6121
|
-
}),
|
|
6119
|
+
...e.opacity === void 0 ? {} : { [Ig]: String(e.opacity) },
|
|
6120
|
+
...e.saturation === void 0 ? {} : { [Tg]: `saturate(${e.saturation})` }
|
|
6121
|
+
}), Og = ({ layer: e, coordSystem: t, shouldAnimateTransitions: r, panelRect: n, formattingLocale: o }) => {
|
|
6122
6122
|
const a = de(), i = A(() => a(e.geom, t.type), [
|
|
6123
6123
|
a,
|
|
6124
6124
|
e,
|
|
6125
6125
|
t
|
|
6126
|
-
]), l = e.highlight, c =
|
|
6126
|
+
]), l = e.highlight, c = Bg(e), { colorScheme: u } = G(), d = {
|
|
6127
6127
|
layer: e,
|
|
6128
6128
|
coordSystem: t,
|
|
6129
6129
|
shouldAnimateTransitions: r,
|
|
@@ -6131,12 +6131,12 @@ var Rg = 4, Cg = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
|
|
|
6131
6131
|
panelRect: n,
|
|
6132
6132
|
colorScheme: u,
|
|
6133
6133
|
styleReaders: T(e)
|
|
6134
|
-
}, v = i ? yt(i.render) : null, g = e.spatialKind === "render-hit-test", h =
|
|
6134
|
+
}, v = i ? yt(i.render) : null, g = e.spatialKind === "render-hit-test", h = Dg(e);
|
|
6135
6135
|
return /* @__PURE__ */ w("g", {
|
|
6136
6136
|
className: h,
|
|
6137
6137
|
style: h === void 0 ? void 0 : Hg(c),
|
|
6138
6138
|
children: [
|
|
6139
|
-
/* @__PURE__ */ s(
|
|
6139
|
+
/* @__PURE__ */ s(wg, {
|
|
6140
6140
|
layer: e,
|
|
6141
6141
|
coordSystem: t,
|
|
6142
6142
|
shouldAnimateTransitions: r,
|
|
@@ -6153,7 +6153,7 @@ var Rg = 4, Cg = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
|
|
|
6153
6153
|
render: v.fn,
|
|
6154
6154
|
input: d
|
|
6155
6155
|
}),
|
|
6156
|
-
l !== null && /* @__PURE__ */ s(
|
|
6156
|
+
l !== null && /* @__PURE__ */ s(Rg, {
|
|
6157
6157
|
renderer: i,
|
|
6158
6158
|
layer: e,
|
|
6159
6159
|
matchedLayer: l.composition.matchedLayer,
|
|
@@ -6165,13 +6165,13 @@ var Rg = 4, Cg = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
|
|
|
6165
6165
|
})
|
|
6166
6166
|
]
|
|
6167
6167
|
});
|
|
6168
|
-
},
|
|
6168
|
+
}, Gg = "_17uhij30", Wg = ({ formattedAxes: e, plotRect: t, panelBorder: r, panelFrameRect: n, panelRect: o, axisRects: a, axisLabelRects: i, shouldAnimateTransitions: l, formattingLocale: c, plotBottomY: u, isFooterChromeReserved: d, isEditable: v }) => {
|
|
6169
6169
|
const g = I(null);
|
|
6170
|
-
|
|
6171
|
-
const h = ee("Grid",
|
|
6170
|
+
ov(g);
|
|
6171
|
+
const h = ee("Grid", hg), f = ee("AxisTicks", dg), m = ee("AxisLabel", ug), p = A(() => Gt(n, t), [n, t]), y = A(() => Gt(o, t), [o, t]), b = A(() => Or(a, t), [a, t]), R = A(() => Or(i, t), [i, t]);
|
|
6172
6172
|
return /* @__PURE__ */ w("svg", {
|
|
6173
6173
|
ref: g,
|
|
6174
|
-
className:
|
|
6174
|
+
className: Gg,
|
|
6175
6175
|
width: t.width,
|
|
6176
6176
|
height: t.height,
|
|
6177
6177
|
style: { transform: `translate(${t.x}px, ${t.y}px)` },
|
|
@@ -6191,11 +6191,11 @@ var Rg = 4, Cg = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
|
|
|
6191
6191
|
formattedAxes: e,
|
|
6192
6192
|
labelRects: R
|
|
6193
6193
|
}),
|
|
6194
|
-
/* @__PURE__ */ s(
|
|
6194
|
+
/* @__PURE__ */ s(bg, {
|
|
6195
6195
|
formattedAxes: e,
|
|
6196
6196
|
panelRect: y
|
|
6197
6197
|
}),
|
|
6198
|
-
/* @__PURE__ */ s(
|
|
6198
|
+
/* @__PURE__ */ s(Vh, { panelRect: y }),
|
|
6199
6199
|
/* @__PURE__ */ s(Fr, {
|
|
6200
6200
|
panelRect: y,
|
|
6201
6201
|
zOrder: "background"
|
|
@@ -6204,26 +6204,26 @@ var Rg = 4, Cg = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
|
|
|
6204
6204
|
panelRect: y,
|
|
6205
6205
|
zOrder: "background"
|
|
6206
6206
|
}),
|
|
6207
|
-
/* @__PURE__ */ s(
|
|
6207
|
+
/* @__PURE__ */ s(gg, {
|
|
6208
6208
|
sizes: r,
|
|
6209
6209
|
panelFrameRect: p
|
|
6210
6210
|
}),
|
|
6211
|
-
/* @__PURE__ */ s(
|
|
6211
|
+
/* @__PURE__ */ s(Mg, {
|
|
6212
6212
|
shouldAnimateTransitions: l,
|
|
6213
6213
|
panelRect: y,
|
|
6214
6214
|
formattingLocale: c
|
|
6215
6215
|
}),
|
|
6216
|
-
/* @__PURE__ */ s(
|
|
6216
|
+
/* @__PURE__ */ s(Ag, {
|
|
6217
6217
|
formattedAxes: e,
|
|
6218
6218
|
panelRect: y
|
|
6219
6219
|
}),
|
|
6220
|
-
/* @__PURE__ */ s(
|
|
6220
|
+
/* @__PURE__ */ s(rg, {
|
|
6221
6221
|
panelRect: y,
|
|
6222
6222
|
formattingLocale: c,
|
|
6223
6223
|
plotBottomY: u,
|
|
6224
6224
|
isFooterChromeReserved: d
|
|
6225
6225
|
}),
|
|
6226
|
-
/* @__PURE__ */ s(
|
|
6226
|
+
/* @__PURE__ */ s(yv, {
|
|
6227
6227
|
panelRect: y,
|
|
6228
6228
|
isEditable: v
|
|
6229
6229
|
}),
|
|
@@ -6235,14 +6235,14 @@ var Rg = 4, Cg = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
|
|
|
6235
6235
|
panelRect: y,
|
|
6236
6236
|
zOrder: "foreground"
|
|
6237
6237
|
}),
|
|
6238
|
-
/* @__PURE__ */ s(
|
|
6238
|
+
/* @__PURE__ */ s(vv, {
|
|
6239
6239
|
panelRect: y,
|
|
6240
6240
|
isEditable: v
|
|
6241
6241
|
}),
|
|
6242
|
-
/* @__PURE__ */ s(
|
|
6243
|
-
/* @__PURE__ */ s(
|
|
6244
|
-
/* @__PURE__ */ s(
|
|
6245
|
-
/* @__PURE__ */ s(
|
|
6242
|
+
/* @__PURE__ */ s(Mv, { panelRect: y }),
|
|
6243
|
+
/* @__PURE__ */ s(jv, { panelRect: y }),
|
|
6244
|
+
/* @__PURE__ */ s(Vv, { panelRect: y }),
|
|
6245
|
+
/* @__PURE__ */ s(rv, { panelRect: y })
|
|
6246
6246
|
]
|
|
6247
6247
|
});
|
|
6248
6248
|
}, Gt = (e, t) => ({
|
|
@@ -6250,11 +6250,11 @@ var Rg = 4, Cg = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
|
|
|
6250
6250
|
y: e.y - t.y,
|
|
6251
6251
|
width: e.width,
|
|
6252
6252
|
height: e.height
|
|
6253
|
-
}),
|
|
6253
|
+
}), Or = (e, t) => {
|
|
6254
6254
|
const r = {};
|
|
6255
6255
|
for (const [n, o] of Object.entries(e)) r[n] = Gt(o, t);
|
|
6256
6256
|
return r;
|
|
6257
|
-
},
|
|
6257
|
+
}, Vg = (e) => {
|
|
6258
6258
|
let t, r;
|
|
6259
6259
|
return "aspectRatio" in e ? "intrinsicWidth" in e ? (t = e.intrinsicWidth, r = t / e.aspectRatio) : (r = e.intrinsicHeight, t = r * e.aspectRatio) : (t = e.intrinsicWidth, r = e.intrinsicHeight), {
|
|
6260
6260
|
width: Gr(t, "width"),
|
|
@@ -6263,7 +6263,7 @@ var Rg = 4, Cg = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
|
|
|
6263
6263
|
}, Gr = (e, t) => {
|
|
6264
6264
|
if (e <= 0 || Number.isNaN(e) || !Number.isFinite(e)) throw new ga({ message: `Expected ${t} to be a positive, finite number, but got ${e}.` });
|
|
6265
6265
|
return e;
|
|
6266
|
-
},
|
|
6266
|
+
}, Ug = ({ sizing: e, onResize: t, children: r }) => {
|
|
6267
6267
|
const n = oo({ onResize: t }), o = I(!1);
|
|
6268
6268
|
if (M(() => {
|
|
6269
6269
|
e.mode === "responsive" && (n.isDefault || n.width > 0 && n.height > 0 || o.current || (o.current = !0, console.warn(`[graphy] ZERO_SIZE_CONTAINER: GraphRenderer measured ${n.width}×${n.height}; the chart will not paint until the host has a positive width and height.`)));
|
|
@@ -6273,7 +6273,7 @@ var Rg = 4, Cg = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
|
|
|
6273
6273
|
n.width,
|
|
6274
6274
|
n.height
|
|
6275
6275
|
]), e.mode === "keepAspectRatio") {
|
|
6276
|
-
const { intrinsicSize: i, canRender: l, outerStyles: c, innerStyles: u } =
|
|
6276
|
+
const { intrinsicSize: i, canRender: l, outerStyles: c, innerStyles: u } = Qg(e, n.width, !n.isDefault);
|
|
6277
6277
|
return /* @__PURE__ */ s("div", {
|
|
6278
6278
|
ref: n.setElement,
|
|
6279
6279
|
style: c,
|
|
@@ -6309,8 +6309,8 @@ var Rg = 4, Cg = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
|
|
|
6309
6309
|
height: n.height
|
|
6310
6310
|
})
|
|
6311
6311
|
});
|
|
6312
|
-
},
|
|
6313
|
-
const n =
|
|
6312
|
+
}, Qg = (e, t, r) => {
|
|
6313
|
+
const n = Vg(e), o = t > 0 && n.width > 0 ? t / n.width : 1;
|
|
6314
6314
|
return {
|
|
6315
6315
|
intrinsicSize: n,
|
|
6316
6316
|
canRender: r,
|
|
@@ -6325,7 +6325,7 @@ var Rg = 4, Cg = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
|
|
|
6325
6325
|
height: n.height
|
|
6326
6326
|
}
|
|
6327
6327
|
};
|
|
6328
|
-
},
|
|
6328
|
+
}, Yg = { mode: "responsive" }, It = {
|
|
6329
6329
|
headerSize: {
|
|
6330
6330
|
width: 0,
|
|
6331
6331
|
height: 0
|
|
@@ -6334,8 +6334,8 @@ var Rg = 4, Cg = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
|
|
|
6334
6334
|
width: 0,
|
|
6335
6335
|
height: 0
|
|
6336
6336
|
}
|
|
6337
|
-
},
|
|
6338
|
-
const [e, t] =
|
|
6337
|
+
}, Kg = () => {
|
|
6338
|
+
const [e, t] = O(null), [r, n] = O(null), [o, a] = O(It);
|
|
6339
6339
|
return M(() => {
|
|
6340
6340
|
const i = () => {
|
|
6341
6341
|
const c = e ? {
|
|
@@ -6345,7 +6345,7 @@ var Rg = 4, Cg = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
|
|
|
6345
6345
|
width: r.offsetWidth,
|
|
6346
6346
|
height: r.offsetHeight
|
|
6347
6347
|
} : It.footerSize;
|
|
6348
|
-
a((d) =>
|
|
6348
|
+
a((d) => zg(d, {
|
|
6349
6349
|
headerSize: c,
|
|
6350
6350
|
footerSize: u
|
|
6351
6351
|
}) ? {
|
|
@@ -6361,7 +6361,7 @@ var Rg = 4, Cg = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
|
|
|
6361
6361
|
footerRef: n,
|
|
6362
6362
|
measurements: o
|
|
6363
6363
|
};
|
|
6364
|
-
},
|
|
6364
|
+
}, zg = (e, t) => e.headerSize.width !== t.headerSize.width || e.headerSize.height !== t.headerSize.height || e.footerSize.width !== t.footerSize.width || e.footerSize.height !== t.footerSize.height, jg = () => null, Xg = ({ graphChrome: e, isEditable: t, style: r, contentRef: n, children: o }) => {
|
|
6365
6365
|
const { themeClass: a, inlineVarsStyle: i } = $t(), l = e.borderColor === void 0 ? 0 : e.borderWidth, c = l > 0 ? e.borderColor : void 0, u = Math.max(0, e.borderRadius), d = u === 0 ? 0 : u + l, v = A(() => ({
|
|
6366
6366
|
...r,
|
|
6367
6367
|
borderRadius: `${d}px`,
|
|
@@ -6392,21 +6392,21 @@ var Rg = 4, Cg = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
|
|
|
6392
6392
|
children: o
|
|
6393
6393
|
})
|
|
6394
6394
|
});
|
|
6395
|
-
},
|
|
6395
|
+
}, Tf = (e) => /* @__PURE__ */ s(yc, {
|
|
6396
6396
|
locale: Bd(),
|
|
6397
|
-
children: /* @__PURE__ */ s(
|
|
6398
|
-
}),
|
|
6397
|
+
children: /* @__PURE__ */ s(qg, { ...e })
|
|
6398
|
+
}), qg = ({ slots: e, sizing: t = Yg, onResize: r, ...n }) => /* @__PURE__ */ s(zl, { children: /* @__PURE__ */ s(Ks, { children: /* @__PURE__ */ s(_s, {
|
|
6399
6399
|
slots: e,
|
|
6400
|
-
children: /* @__PURE__ */ s(
|
|
6400
|
+
children: /* @__PURE__ */ s(Ug, {
|
|
6401
6401
|
sizing: t,
|
|
6402
6402
|
onResize: r,
|
|
6403
|
-
children: ({ width: o, height: a }) => /* @__PURE__ */ s(
|
|
6403
|
+
children: ({ width: o, height: a }) => /* @__PURE__ */ s(Jg, {
|
|
6404
6404
|
width: o,
|
|
6405
6405
|
height: a,
|
|
6406
6406
|
...n
|
|
6407
6407
|
})
|
|
6408
6408
|
})
|
|
6409
|
-
}) }) }),
|
|
6409
|
+
}) }) }), Jg = ({ width: e, height: t, animation: r, showTooltips: n = !0, mode: o = "readonly" }) => {
|
|
6410
6410
|
const a = io(), { axes: i, legends: l, layers: c, numberFormat: u, parsingLocale: d, appearance: v, annotations: g, coordSystem: h, headline: f, headlineConfig: m, content: p, overflowStrategy: y, layoutConfig: b } = C(j((Q) => ({
|
|
6411
6411
|
axes: Q.guides.axes,
|
|
6412
6412
|
legends: Q.guides.legends.drawn,
|
|
@@ -6421,7 +6421,7 @@ var Rg = 4, Cg = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
|
|
|
6421
6421
|
content: Q.config.content,
|
|
6422
6422
|
overflowStrategy: Q.config.panel.overflow,
|
|
6423
6423
|
layoutConfig: Q.config.layout
|
|
6424
|
-
}))), R = Ci(), { intro: S, transitions: P } = A(() => ac(r, R ?? !1), [r, R]), { headerRef: E, footerRef:
|
|
6424
|
+
}))), R = Ci(), { intro: S, transitions: P } = A(() => ac(r, R ?? !1), [r, R]), { headerRef: E, footerRef: L, measurements: F } = Kg(), { formattingLocale: W, colorScheme: K, themeOverrides: Te } = G(), Ae = o === "editable", [ye, Ko] = O(null), or = A(() => Un(K, Te), [K, Te]), zo = ee("Header", Bu), jo = ee("Footer", wu), Xo = ee("Legend", Gh), qo = ee("Headline", Zu), Jo = ee("EditorSurface", jg), ar = A(() => Wa({
|
|
6425
6425
|
legends: l,
|
|
6426
6426
|
numberFormat: u,
|
|
6427
6427
|
parsingLocale: d,
|
|
@@ -6431,7 +6431,7 @@ var Rg = 4, Cg = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
|
|
|
6431
6431
|
u,
|
|
6432
6432
|
d,
|
|
6433
6433
|
W
|
|
6434
|
-
]),
|
|
6434
|
+
]), Ne = A(() => Ga({
|
|
6435
6435
|
headline: f,
|
|
6436
6436
|
show: m.show,
|
|
6437
6437
|
numberFormat: u,
|
|
@@ -6445,24 +6445,24 @@ var Rg = 4, Cg = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
|
|
|
6445
6445
|
d,
|
|
6446
6446
|
W,
|
|
6447
6447
|
a
|
|
6448
|
-
]), Zo = pe(), Ze =
|
|
6448
|
+
]), Zo = pe(), Ze = N(), $e = A(() => ln(Ze), [Ze]), ir = A(() => un(Ze), [Ze]), sr = Bo(), kt = $e.borderColor === void 0 ? 0 : $e.borderWidth, Le = A(() => ({
|
|
6449
6449
|
width: Math.max(0, e - 2 * kt),
|
|
6450
6450
|
height: Math.max(0, t - 2 * kt)
|
|
6451
6451
|
}), [
|
|
6452
6452
|
e,
|
|
6453
6453
|
t,
|
|
6454
6454
|
kt
|
|
6455
|
-
]), lr = A(() => fu(p.brandMark.enabled,
|
|
6455
|
+
]), lr = A(() => fu(p.brandMark.enabled, Le, p.brandMark.variant), [
|
|
6456
6456
|
p.brandMark.enabled,
|
|
6457
6457
|
p.brandMark.variant,
|
|
6458
|
-
|
|
6459
|
-
]), $o = p.brandMark.placement === "footer" ? lr : "hidden", _o = p.brandMark.placement === "header" ? lr : "hidden", xe = A(() =>
|
|
6460
|
-
formatted:
|
|
6458
|
+
Le
|
|
6459
|
+
]), $o = p.brandMark.placement === "footer" ? lr : "hidden", _o = p.brandMark.placement === "header" ? lr : "hidden", xe = A(() => Ne ? {
|
|
6460
|
+
formatted: Ne,
|
|
6461
6461
|
size: m.size,
|
|
6462
6462
|
position: m.position,
|
|
6463
6463
|
innerRadius: h.type === "polar" ? h.innerRadius : 0
|
|
6464
6464
|
} : void 0, [
|
|
6465
|
-
|
|
6465
|
+
Ne,
|
|
6466
6466
|
m.size,
|
|
6467
6467
|
m.position,
|
|
6468
6468
|
h
|
|
@@ -6471,13 +6471,13 @@ var Rg = 4, Cg = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
|
|
|
6471
6471
|
textScale: v.textScale,
|
|
6472
6472
|
metrics: or,
|
|
6473
6473
|
overrides: ea
|
|
6474
|
-
}), cr = A(() =>
|
|
6474
|
+
}), cr = A(() => La(ir), [ir]), Me = Cd({
|
|
6475
6475
|
measurer: _e,
|
|
6476
6476
|
axes: i,
|
|
6477
6477
|
numberFormat: u,
|
|
6478
6478
|
parsingLocale: d,
|
|
6479
6479
|
formattedLegends: ar,
|
|
6480
|
-
containerSize:
|
|
6480
|
+
containerSize: Le,
|
|
6481
6481
|
externalMeasurements: F,
|
|
6482
6482
|
headline: xe,
|
|
6483
6483
|
formattingLocale: W,
|
|
@@ -6491,14 +6491,14 @@ var Rg = 4, Cg = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
|
|
|
6491
6491
|
}), et = A(() => !Me || !xe || !_e ? null : gi({
|
|
6492
6492
|
headline: xe,
|
|
6493
6493
|
layout: Me.layout,
|
|
6494
|
-
containerSize:
|
|
6494
|
+
containerSize: Le,
|
|
6495
6495
|
measurer: _e,
|
|
6496
6496
|
itemGap: sr.gap
|
|
6497
6497
|
}), [
|
|
6498
6498
|
Me,
|
|
6499
6499
|
xe,
|
|
6500
6500
|
_e,
|
|
6501
|
-
|
|
6501
|
+
Le,
|
|
6502
6502
|
sr.gap
|
|
6503
6503
|
]);
|
|
6504
6504
|
if (!Me) return null;
|
|
@@ -6508,11 +6508,11 @@ var Rg = 4, Cg = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
|
|
|
6508
6508
|
themeOverrides: Te,
|
|
6509
6509
|
textScale: v.textScale,
|
|
6510
6510
|
graphBackground: $e.background,
|
|
6511
|
-
children: /* @__PURE__ */ s(
|
|
6511
|
+
children: /* @__PURE__ */ s(Os, {
|
|
6512
6512
|
metrics: or,
|
|
6513
6513
|
children: /* @__PURE__ */ s(Id, { children: /* @__PURE__ */ s(Jd, {
|
|
6514
6514
|
panelRect: X.panel,
|
|
6515
|
-
children: /* @__PURE__ */ s(
|
|
6515
|
+
children: /* @__PURE__ */ s(Xg, {
|
|
6516
6516
|
graphChrome: $e,
|
|
6517
6517
|
isEditable: Ae,
|
|
6518
6518
|
contentRef: Ae ? Ko : void 0,
|
|
@@ -6533,7 +6533,7 @@ var Rg = 4, Cg = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
|
|
|
6533
6533
|
isSubtitleVisible: p.isSubtitleVisible,
|
|
6534
6534
|
brandMark: _o
|
|
6535
6535
|
}),
|
|
6536
|
-
/* @__PURE__ */ s(
|
|
6536
|
+
/* @__PURE__ */ s(Wg, {
|
|
6537
6537
|
formattedAxes: ta,
|
|
6538
6538
|
plotRect: X.plot,
|
|
6539
6539
|
panelBorder: cr,
|
|
@@ -6548,7 +6548,7 @@ var Rg = 4, Cg = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
|
|
|
6548
6548
|
isEditable: Ae
|
|
6549
6549
|
}),
|
|
6550
6550
|
/* @__PURE__ */ s(jo, {
|
|
6551
|
-
ref:
|
|
6551
|
+
ref: L,
|
|
6552
6552
|
footerRect: X.footer,
|
|
6553
6553
|
mode: o,
|
|
6554
6554
|
caption: p.caption,
|
|
@@ -6562,8 +6562,8 @@ var Rg = 4, Cg = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
|
|
|
6562
6562
|
rects: X.legends,
|
|
6563
6563
|
textScale: v.textScale
|
|
6564
6564
|
}),
|
|
6565
|
-
|
|
6566
|
-
headline:
|
|
6565
|
+
Ne && et && /* @__PURE__ */ s(qo, {
|
|
6566
|
+
headline: Ne,
|
|
6567
6567
|
rect: et.rect,
|
|
6568
6568
|
resolvedSize: et.resolvedSize,
|
|
6569
6569
|
visibleItemCount: et.visibleItemCount,
|
|
@@ -6592,30 +6592,30 @@ var Rg = 4, Cg = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
|
|
|
6592
6592
|
setSelection: (r) => t.selectionStore.getState().setSelection(r),
|
|
6593
6593
|
subscribeSelection: t.selectionStore.subscribe
|
|
6594
6594
|
} : null), [e, t]);
|
|
6595
|
-
},
|
|
6595
|
+
}, Lf = (e) => Ri(e.subscribe, e.getCompiled, e.getCompiled), Mf = () => {
|
|
6596
6596
|
const { commands: e } = G();
|
|
6597
6597
|
return e;
|
|
6598
|
-
},
|
|
6598
|
+
}, Ff = (e) => {
|
|
6599
6599
|
if (e.altKey || !e.metaKey && !e.ctrlKey) return null;
|
|
6600
6600
|
const t = e.key.toLowerCase();
|
|
6601
6601
|
return t === "z" ? e.shiftKey ? "redo" : "undo" : t === "y" && e.ctrlKey && !e.shiftKey ? "redo" : null;
|
|
6602
6602
|
};
|
|
6603
6603
|
export {
|
|
6604
6604
|
Cr as $,
|
|
6605
|
-
|
|
6606
|
-
|
|
6607
|
-
|
|
6608
|
-
|
|
6605
|
+
Ef as A,
|
|
6606
|
+
mf as At,
|
|
6607
|
+
wf as B,
|
|
6608
|
+
jh as C,
|
|
6609
6609
|
Ks as Ct,
|
|
6610
6610
|
To as D,
|
|
6611
|
-
|
|
6611
|
+
He as Dt,
|
|
6612
6612
|
Vu as E,
|
|
6613
|
-
|
|
6613
|
+
N as Et,
|
|
6614
6614
|
ue as F,
|
|
6615
6615
|
G as Ft,
|
|
6616
|
-
|
|
6617
|
-
|
|
6618
|
-
|
|
6616
|
+
Ld as G,
|
|
6617
|
+
xf as H,
|
|
6618
|
+
Cf as I,
|
|
6619
6619
|
fo as J,
|
|
6620
6620
|
Td as K,
|
|
6621
6621
|
Ue as L,
|
|
@@ -6625,69 +6625,69 @@ export {
|
|
|
6625
6625
|
C as Nt,
|
|
6626
6626
|
Bu as O,
|
|
6627
6627
|
Ss as Ot,
|
|
6628
|
-
|
|
6628
|
+
Rf as P,
|
|
6629
6629
|
xn as Pt,
|
|
6630
|
-
|
|
6631
|
-
|
|
6632
|
-
|
|
6633
|
-
|
|
6634
|
-
|
|
6630
|
+
Nc as Q,
|
|
6631
|
+
kf as R,
|
|
6632
|
+
Xh as S,
|
|
6633
|
+
Af as St,
|
|
6634
|
+
Pf as T,
|
|
6635
6635
|
Vs as Tt,
|
|
6636
|
-
|
|
6637
|
-
|
|
6636
|
+
Hd as U,
|
|
6637
|
+
bf as V,
|
|
6638
6638
|
ko as W,
|
|
6639
6639
|
Ve as X,
|
|
6640
6640
|
_c as Y,
|
|
6641
6641
|
Tc as Z,
|
|
6642
|
-
|
|
6642
|
+
gv as _,
|
|
6643
6643
|
Ul as _t,
|
|
6644
|
-
|
|
6644
|
+
Tf as a,
|
|
6645
6645
|
yc as at,
|
|
6646
|
-
|
|
6646
|
+
av as b,
|
|
6647
6647
|
Wl as bt,
|
|
6648
|
-
|
|
6648
|
+
Kv as c,
|
|
6649
6649
|
rc as ct,
|
|
6650
|
-
|
|
6650
|
+
Bf as d,
|
|
6651
6651
|
Zl as dt,
|
|
6652
6652
|
Ic as et,
|
|
6653
|
-
|
|
6653
|
+
Cv as f,
|
|
6654
6654
|
no as ft,
|
|
6655
|
-
|
|
6656
|
-
|
|
6657
|
-
|
|
6655
|
+
bv as g,
|
|
6656
|
+
Ot as gt,
|
|
6657
|
+
Sv as h,
|
|
6658
6658
|
me as ht,
|
|
6659
6659
|
Nf as i,
|
|
6660
6660
|
lo as it,
|
|
6661
6661
|
Eo as j,
|
|
6662
|
-
|
|
6662
|
+
ff as jt,
|
|
6663
6663
|
wu as k,
|
|
6664
|
-
|
|
6665
|
-
|
|
6664
|
+
pf as kt,
|
|
6665
|
+
Lv as l,
|
|
6666
6666
|
tc as lt,
|
|
6667
|
-
|
|
6667
|
+
kv as m,
|
|
6668
6668
|
zl as mt,
|
|
6669
|
-
|
|
6669
|
+
Mf as n,
|
|
6670
6670
|
$t as nt,
|
|
6671
|
-
|
|
6671
|
+
qg as o,
|
|
6672
6672
|
io as ot,
|
|
6673
|
-
|
|
6673
|
+
Rv as p,
|
|
6674
6674
|
jl as pt,
|
|
6675
6675
|
Bd as q,
|
|
6676
|
-
|
|
6676
|
+
Lf as r,
|
|
6677
6677
|
Pc as rt,
|
|
6678
|
-
|
|
6678
|
+
hg as s,
|
|
6679
6679
|
Zt as st,
|
|
6680
|
-
|
|
6680
|
+
Ff as t,
|
|
6681
6681
|
Bc as tt,
|
|
6682
|
-
|
|
6682
|
+
If as u,
|
|
6683
6683
|
_l as ut,
|
|
6684
|
-
|
|
6685
|
-
|
|
6686
|
-
|
|
6684
|
+
cv as v,
|
|
6685
|
+
yf as vt,
|
|
6686
|
+
qh as w,
|
|
6687
6687
|
pe as wt,
|
|
6688
|
-
|
|
6688
|
+
Jh as x,
|
|
6689
6689
|
sl as xt,
|
|
6690
6690
|
Je as y,
|
|
6691
6691
|
Vl as yt,
|
|
6692
|
-
|
|
6692
|
+
Sf as z
|
|
6693
6693
|
};
|