@graphysdk/react-renderer 1.9.0-beta.1789369549494 → 1.9.0-beta.1789377729015
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/editable.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--6i35LQS.js → history-chords-BKKMZ3CW.js} +819 -824
- package/dist/history-chords-DteL3q_y.cjs +2 -0
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +2 -2
- package/dist/theme.contract.css-BHtVczcV.cjs +1 -0
- package/dist/{theme.contract.css-pudzI2o1.js → theme.contract.css-Rb-GELRv.js} +1 -1
- package/package.json +2 -2
- package/dist/history-chords-CqecMyRa.cjs +0 -2
- package/dist/theme.contract.css +0 -1
- package/dist/theme.contract.css-CEjZ4rbL.cjs +0 -1
|
@@ -1,55 +1,55 @@
|
|
|
1
|
-
import { n as p } from "./theme.contract.css-
|
|
2
|
-
import { ANNOTATION_TOOLTIP_MARKER_GAP as
|
|
3
|
-
import { Fragment as
|
|
1
|
+
import { n as p } from "./theme.contract.css-Rb-GELRv.js";
|
|
2
|
+
import { ANNOTATION_TOOLTIP_MARKER_GAP as Ei, AXIS_KEYS as tn, CachedTextMeasurer as Sr, DATA_LABEL_POSITIONS as Pi, DATA_LABEL_ROLES as Bi, DEFAULT_GEOM_COLOR as rn, DEFAULT_HOVER_AFFORDANCE_COLOR as mt, DEFAULT_POINT_SIZE as nn, GROUP_VARIABLES as pe, HeuristicTextMeasurer as Ii, HoverEngine as Mi, InternalError as Li, LayoutCompiler as Ti, NAMED_WEIGHTS as Ge, POLAR_RIM_LABEL_GAP_PX as Ni, RESTING_HOVER_STATE as ct, TAU as wr, alignUnitFractions as on, areAnchorsEqual as Hi, areEditMenuTriggersEqual as Fi, areEndpointsComparable as Rr, arePointerRegionListsEqual as Di, buildAverageLineSymbols as Oi, buildCalloutHitRegions as Wi, buildColumnKey as Xt, buildDataLabelsContent as Gi, buildFontString as Ui, buildLayerIntroPlan as Vi, buildLayerYValueFormatter as zi, buildPinnedNumberValueFormatter as Qi, buildPolarBarArcPath as Se, buildSliceGroupKey as qt, buildTooltipContent as Ki, compositeColor as Yi, computeArrow as ji, computeDifferenceArrow as Xi, computeDirectLabelsLayout as qi, computeLineBoxHeight as we, computePanelBorderPaths as Ji, computePanelBorderSizes as Zi, countLayerGeoms as $i, createAreaPathGenerators as an, createHeadlineItemRows as sn, createLineFillAreaGenerator as _i, createLinePathGenerator as ln, createSegmentYReader as ea, createStableCellKeyGenerator as ta, createStableKeyGenerator as ce, createStyleResolver as dn, ensureReadableTextColor as ra, findAnnotation as na, findLayerById as oa, findPointerRegion as kr, formatHeadline as ia, formatLegends as aa, formatRuleValue as sa, getAestheticFromScaleAestheticKey as Le, getAlpha as cn, getAngleExtent as Jt, getBarRectBounds as Xe, getBoundingRect as un, getChromeDashArray as At, getColor as hn, getDashArray as Te, getDifferenceArrowLabelBox as la, getGroup as yt, getHoverGuideLineProps as da, getHoverGuideRectProps as ca, getInsetTileRect as gn, getPolarHoverGuideArcProps as ua, getRadiusExtent as xt, getRuleDashPattern as ha, getShapeAnnotationStroke as ga, getSize as va, getStackRole as fa, getUnionExtent as pa, getX as _, getXMax as ma, getY as se, getYMax as vn, isAnnotationMovable as Aa, isDefined as fn, isFullTurnSweep as pn, isSafeUrl as Zt, orderPointerRegions as ya, paintsInDonutHole as xa, pickReadableTextColor as mn, placeCallouts as ba, polarToUnit as Sa, positionToAngle as wa, prepareAreaObservations as An, prepareLineObservations as yn, projectAnchorToPanel as Ye, projectRegionToPanel as $t, readAnchoredObservation as xn, readColorGroupObservation as Ra, resolveArrowAnnotationStyle as ka, resolveArrowColor as Ca, resolveAxisLabelStyle as Ea, resolveBarBorderRadiusPx as bn, resolveBarBorderTreatment as qe, resolveBarCornerRadiiPx as Pa, resolveCalloutAnnotationStyle as Ba, resolveCaptionStyle as Ia, resolveChromeMargins as Ma, resolveDataLabelStyle as La, resolveDeferredAnchors as Ta, resolveDifferenceArrowAnnotationStyle as Na, resolveDirectLabelStyle as Ha, resolveGraphChromeStyle as Sn, resolveGraphPadding as Fa, resolveGridLineStyle as Wt, resolveHeadingFontFamily as Da, resolveHeadingStyle as Oa, resolveHeadlineFigure as wn, resolveHeadlineItemStyle as lt, resolveHeadlinePlacement as Wa, resolveHeadlineStyle as Rn, resolveHoverGuideStyle as Ga, resolveImageAnnotationStyle as Ua, resolveLegendItemStyle as Va, resolveLegendStyle as za, resolvePanelBorderStyle as kn, resolvePolarBarCornerRadiusUnit as Cn, resolveRuleLabelStyle as Qa, resolveShapeAnnotationStyle as En, resolveSourceStyle as Ka, resolveSubtitleStyle as Ya, resolveSwatchGeomPaint as Pn, resolveTextAnnotationStyle as ja, resolveTickLabelStyle as Xa, resolveTickLineStyle as qa, resolveTooltipStyle as Ja, toFontSpec as j, toPanelCursor as Za, toPercent as R, toViewBoxX as Bn, toViewBoxY as In, truncateToWidth as Mn } from "@graphysdk/viz-engine";
|
|
3
|
+
import { Fragment as _t, createContext as z, memo as te, useCallback as ge, useContext as D, useEffect as F, useId as Q, useMemo as y, useRef as M, useState as V, useSyncExternalStore as $a } from "react";
|
|
4
4
|
import { Fragment as B, jsx as s, jsxs as S } from "react/jsx-runtime";
|
|
5
5
|
import { useStore as Je } from "zustand";
|
|
6
|
-
import { animate as he, motion as
|
|
6
|
+
import { animate as he, motion as G, useMotionValue as ie, useReducedMotion as _a, useTransform as ot } from "motion/react";
|
|
7
7
|
import { interpolatePath as es } from "d3-interpolate-path";
|
|
8
|
-
import { useShallow as
|
|
9
|
-
import { assignInlineVars as
|
|
10
|
-
import { createStore as
|
|
11
|
-
import { createPortal as
|
|
12
|
-
import je, { clsx as
|
|
8
|
+
import { useShallow as X } from "zustand/react/shallow";
|
|
9
|
+
import { assignInlineVars as er } from "@vanilla-extract/dynamic";
|
|
10
|
+
import { createStore as Ln } from "zustand/vanilla";
|
|
11
|
+
import { createPortal as Tn } from "react-dom";
|
|
12
|
+
import je, { clsx as ut } from "clsx";
|
|
13
13
|
import ts from "lodash-es/merge";
|
|
14
14
|
import { IntlProvider as rs } from "react-intl";
|
|
15
|
-
import { flip as
|
|
15
|
+
import { flip as Gt, offset as Ut, shift as Vt, useFloating as Nn } from "@floating-ui/react-dom";
|
|
16
16
|
import { getContrast as ns } from "color2k";
|
|
17
|
-
import './history-chords.css';var
|
|
17
|
+
import './history-chords.css';var Cr = Object.defineProperty, os = (e, t) => {
|
|
18
18
|
let r = {};
|
|
19
19
|
for (var n in e)
|
|
20
|
-
|
|
20
|
+
Cr(r, n, {
|
|
21
21
|
get: e[n],
|
|
22
22
|
enumerable: !0
|
|
23
23
|
});
|
|
24
|
-
return t ||
|
|
24
|
+
return t || Cr(r, Symbol.toStringTag, { value: "Module" }), r;
|
|
25
25
|
};
|
|
26
|
-
typeof window < "u" && (window.__GRAPHY_SDK__ ??= {}, window.__GRAPHY_SDK__.reactRenderer = "1.9.0-beta.
|
|
26
|
+
typeof window < "u" && (window.__GRAPHY_SDK__ ??= {}, window.__GRAPHY_SDK__.reactRenderer = "1.9.0-beta.1789377729015");
|
|
27
27
|
function is(e) {
|
|
28
28
|
for (const t of e) (t.severity === "error" ? console.error : console.warn)(`[graphy] ${t.code}: ${t.message}`, t);
|
|
29
29
|
}
|
|
30
|
-
var
|
|
31
|
-
const e =
|
|
30
|
+
var Hn = z(null), K = () => {
|
|
31
|
+
const e = D(Hn);
|
|
32
32
|
if (!e) throw new Error("useGraph* hooks must be used inside a <GraphProvider>");
|
|
33
33
|
return e;
|
|
34
34
|
}, I = (e) => {
|
|
35
35
|
const { store: t } = K();
|
|
36
36
|
return Je(t, (r) => e(r.compiled));
|
|
37
|
-
},
|
|
38
|
-
const t =
|
|
37
|
+
}, bt = () => K().styleResolver, T = (e) => bt().geomReaders(e), Fn = (e) => {
|
|
38
|
+
const t = bt(), r = I((n) => n.layers).find((n) => n.id === e);
|
|
39
39
|
return r === void 0 ? null : t.geomReaders(r);
|
|
40
40
|
}, as = () => {
|
|
41
|
-
const e =
|
|
41
|
+
const e = bt(), t = I((r) => r.layers);
|
|
42
42
|
return y(() => (r) => {
|
|
43
|
-
const n =
|
|
43
|
+
const n = xn(t, r);
|
|
44
44
|
if (n !== null)
|
|
45
45
|
return e.geomReaders(n.layer).get("color", n.observation);
|
|
46
46
|
}, [t, e]);
|
|
47
47
|
}, ss = (e) => {
|
|
48
|
-
const t =
|
|
48
|
+
const t = bt(), r = I((n) => n.layers);
|
|
49
49
|
return y(() => (n) => {
|
|
50
|
-
const o =
|
|
50
|
+
const o = xn(r, n);
|
|
51
51
|
if (o === null) return {};
|
|
52
|
-
const i = t.geomReaders(o.layer), a =
|
|
52
|
+
const i = t.geomReaders(o.layer), a = Pn(i, o.layer, o.observation, {
|
|
53
53
|
width: e,
|
|
54
54
|
height: e
|
|
55
55
|
});
|
|
@@ -67,32 +67,32 @@ var Fn = z(null), K = () => {
|
|
|
67
67
|
centerX: 0,
|
|
68
68
|
centerY: 0,
|
|
69
69
|
radius: 1
|
|
70
|
-
},
|
|
70
|
+
}, Dn = (e) => {
|
|
71
71
|
const t = Math.min(e.width, e.height);
|
|
72
72
|
return {
|
|
73
73
|
centerX: (e.width - t) / 2 + t / 2,
|
|
74
74
|
centerY: (e.height - t) / 2 + t / 2,
|
|
75
75
|
radius: t / 2
|
|
76
76
|
};
|
|
77
|
-
},
|
|
78
|
-
const n =
|
|
77
|
+
}, ee = (e, t, r = ls) => {
|
|
78
|
+
const n = Sa(e, t);
|
|
79
79
|
return {
|
|
80
80
|
x: r.centerX + n.x * r.radius,
|
|
81
81
|
y: r.centerY - n.y * r.radius
|
|
82
82
|
};
|
|
83
|
-
},
|
|
84
|
-
x:
|
|
85
|
-
y:
|
|
83
|
+
}, tr = (e, t) => ({
|
|
84
|
+
x: Bn(e),
|
|
85
|
+
y: In(t)
|
|
86
86
|
}), le = (e, t) => {
|
|
87
|
-
const r =
|
|
87
|
+
const r = ee(e, t);
|
|
88
88
|
return {
|
|
89
89
|
x: (r.x + 1) / 2,
|
|
90
90
|
y: (r.y + 1) / 2
|
|
91
91
|
};
|
|
92
|
-
}, ds = 2, cs = 0.7, xe = ({ hit: e, project: t =
|
|
93
|
-
const r =
|
|
92
|
+
}, ds = 2, cs = 0.7, xe = ({ hit: e, project: t = tr }) => {
|
|
93
|
+
const r = Fn(e.layerId);
|
|
94
94
|
if (!e.anchored) return null;
|
|
95
|
-
const n = r?.get("color", e.observation) ??
|
|
95
|
+
const n = r?.get("color", e.observation) ?? rn, o = (cn(e.observation) ?? 1) * cs, i = (r?.get("size", e.observation) ?? nn) / 2, a = r?.get("borderColor", e.observation, "hovered") ?? mt, l = t(e.x, e.y);
|
|
96
96
|
return /* @__PURE__ */ s("circle", {
|
|
97
97
|
cx: R(l.x),
|
|
98
98
|
cy: R(l.y),
|
|
@@ -103,14 +103,14 @@ var Fn = z(null), K = () => {
|
|
|
103
103
|
strokeWidth: ds,
|
|
104
104
|
"data-testid": "companion-point"
|
|
105
105
|
});
|
|
106
|
-
},
|
|
106
|
+
}, re = "_1d8mpa10", de = {
|
|
107
107
|
type: "spring",
|
|
108
108
|
stiffness: 500,
|
|
109
109
|
damping: 60,
|
|
110
110
|
mass: 1
|
|
111
|
-
}, us = { duration: 0 },
|
|
111
|
+
}, us = { duration: 0 }, rr = (e) => e ? de : us, zt = (e, t) => {
|
|
112
112
|
const r = ie(e);
|
|
113
|
-
return
|
|
113
|
+
return F(() => {
|
|
114
114
|
const n = es(r.get(), e);
|
|
115
115
|
he(0, 1, {
|
|
116
116
|
...t,
|
|
@@ -124,7 +124,7 @@ var Fn = z(null), K = () => {
|
|
|
124
124
|
e,
|
|
125
125
|
r
|
|
126
126
|
]), r;
|
|
127
|
-
},
|
|
127
|
+
}, On = ({ shouldAnimateTransitions: e, ...t }) => e ? /* @__PURE__ */ s(gs, { ...t }) : /* @__PURE__ */ s(hs, { ...t }), hs = ({ fillPath: e, linePath: t, fill: r, fillOpacity: n, stroke: o, strokeWidth: i, strokeOpacity: a, strokeDasharray: l }) => /* @__PURE__ */ S("g", { children: [/* @__PURE__ */ s("path", {
|
|
128
128
|
d: e,
|
|
129
129
|
fill: r,
|
|
130
130
|
fillOpacity: n,
|
|
@@ -138,13 +138,13 @@ var Fn = z(null), K = () => {
|
|
|
138
138
|
strokeDasharray: l,
|
|
139
139
|
vectorEffect: "non-scaling-stroke"
|
|
140
140
|
})] }), gs = ({ fillPath: e, linePath: t, fill: r, fillOpacity: n, stroke: o, strokeWidth: i, strokeOpacity: a, strokeDasharray: l }) => {
|
|
141
|
-
const d =
|
|
142
|
-
return /* @__PURE__ */ S("g", { children: [/* @__PURE__ */ s(
|
|
141
|
+
const d = zt(e, de), c = zt(t, de);
|
|
142
|
+
return /* @__PURE__ */ S("g", { children: [/* @__PURE__ */ s(G.path, {
|
|
143
143
|
d,
|
|
144
144
|
fill: r,
|
|
145
145
|
fillOpacity: n,
|
|
146
146
|
stroke: "none"
|
|
147
|
-
}), /* @__PURE__ */ s(
|
|
147
|
+
}), /* @__PURE__ */ s(G.path, {
|
|
148
148
|
d: c,
|
|
149
149
|
fill: "none",
|
|
150
150
|
stroke: o,
|
|
@@ -153,7 +153,7 @@ var Fn = z(null), K = () => {
|
|
|
153
153
|
strokeDasharray: l,
|
|
154
154
|
vectorEffect: "non-scaling-stroke"
|
|
155
155
|
})] });
|
|
156
|
-
},
|
|
156
|
+
}, nr = (e, t) => {
|
|
157
157
|
const r = (t !== void 0 ? e.delayByKey[t] : void 0) ?? 0;
|
|
158
158
|
return {
|
|
159
159
|
duration: e.durationSeconds,
|
|
@@ -174,11 +174,11 @@ var Fn = z(null), K = () => {
|
|
|
174
174
|
case "fade":
|
|
175
175
|
return 0;
|
|
176
176
|
}
|
|
177
|
-
},
|
|
177
|
+
}, Er = 1.1, Pr = 1.5, Wn = ({ intro: e, children: t }) => {
|
|
178
178
|
const r = Q();
|
|
179
179
|
return /* @__PURE__ */ S(B, { children: [/* @__PURE__ */ s("clipPath", {
|
|
180
180
|
id: r,
|
|
181
|
-
children: /* @__PURE__ */ s(
|
|
181
|
+
children: /* @__PURE__ */ s(G.rect, {
|
|
182
182
|
...As(e.axis),
|
|
183
183
|
transition: vs(e)
|
|
184
184
|
})
|
|
@@ -189,20 +189,20 @@ var Fn = z(null), K = () => {
|
|
|
189
189
|
}, As = (e) => e === "x" ? {
|
|
190
190
|
x: -0.05,
|
|
191
191
|
y: -0.25,
|
|
192
|
-
height:
|
|
192
|
+
height: Pr,
|
|
193
193
|
initial: { width: 0 },
|
|
194
|
-
animate: { width:
|
|
194
|
+
animate: { width: Er }
|
|
195
195
|
} : {
|
|
196
196
|
x: -0.25,
|
|
197
197
|
y: -0.05,
|
|
198
|
-
width:
|
|
198
|
+
width: Pr,
|
|
199
199
|
initial: { height: 0 },
|
|
200
|
-
animate: { height:
|
|
201
|
-
}, ys =
|
|
202
|
-
const i = o?.type === "wipe" ? o : null, { lineGenerator: a, areaGenerator: l } = y(() =>
|
|
200
|
+
animate: { height: Er }
|
|
201
|
+
}, ys = te(function({ layer: t, coordSystem: r, shouldAnimateTransitions: n, intro: o }) {
|
|
202
|
+
const i = o?.type === "wipe" ? o : null, { lineGenerator: a, areaGenerator: l } = y(() => an(r, t.params), [t.params, r]), d = T(t), c = y(() => {
|
|
203
203
|
const u = ce(t.data, t.mapping, t.id), h = [];
|
|
204
204
|
return t.data.groupBy(pe.group).forEach((g) => {
|
|
205
|
-
const v =
|
|
205
|
+
const v = An([...g], t.params.missingValues), f = l(v), A = a(v);
|
|
206
206
|
if (!f || !A) return;
|
|
207
207
|
const m = v[0];
|
|
208
208
|
if (!m) return;
|
|
@@ -242,13 +242,13 @@ var Fn = z(null), K = () => {
|
|
|
242
242
|
width: "100%",
|
|
243
243
|
height: "100%",
|
|
244
244
|
"data-geom": "area",
|
|
245
|
-
className:
|
|
246
|
-
children: i ? /* @__PURE__ */ s(
|
|
245
|
+
className: re,
|
|
246
|
+
children: i ? /* @__PURE__ */ s(Wn, {
|
|
247
247
|
intro: i,
|
|
248
248
|
children: c
|
|
249
249
|
}) : c
|
|
250
250
|
});
|
|
251
|
-
}), xs = ({ areaPath: e, linePath: t, color: r, fillOpacity: n, strokeWidth: o, strokeOpacity: i, strokeDasharray: a, shouldAnimateTransitions: l }) => /* @__PURE__ */ s(
|
|
251
|
+
}), xs = ({ areaPath: e, linePath: t, color: r, fillOpacity: n, strokeWidth: o, strokeOpacity: i, strokeDasharray: a, shouldAnimateTransitions: l }) => /* @__PURE__ */ s(On, {
|
|
252
252
|
fillPath: e,
|
|
253
253
|
linePath: t,
|
|
254
254
|
fill: r,
|
|
@@ -258,10 +258,10 @@ var Fn = z(null), K = () => {
|
|
|
258
258
|
strokeOpacity: i,
|
|
259
259
|
strokeDasharray: a,
|
|
260
260
|
shouldAnimateTransitions: l
|
|
261
|
-
}), bs = "_324dw20",
|
|
262
|
-
const n =
|
|
261
|
+
}), bs = "_324dw20", Gn = 1, Ss = 0.4, ws = 0.2, Rs = 1, ks = 0.5, Cs = 2.25, Ne = ({ hit: e, project: t = tr, ...r }) => {
|
|
262
|
+
const n = Fn(e.layerId);
|
|
263
263
|
if (!e.anchored) return null;
|
|
264
|
-
const o = n?.get("color", e.observation) ??
|
|
264
|
+
const o = n?.get("color", e.observation) ?? rn, i = cn(e.observation) ?? 1, a = n?.get("borderColor", e.observation, "hovered") ?? mt, l = t(e.x, e.y), d = R(l.x), c = R(l.y), u = Es(e.observation, n), { ringRadius: h, ringWidth: g } = Ps(u);
|
|
265
265
|
return /* @__PURE__ */ S("g", {
|
|
266
266
|
...r,
|
|
267
267
|
className: bs,
|
|
@@ -279,25 +279,25 @@ var Fn = z(null), K = () => {
|
|
|
279
279
|
fill: o,
|
|
280
280
|
opacity: i,
|
|
281
281
|
stroke: a,
|
|
282
|
-
strokeWidth:
|
|
282
|
+
strokeWidth: Gn
|
|
283
283
|
})]
|
|
284
284
|
});
|
|
285
285
|
}, Es = (e, t) => {
|
|
286
|
-
const r = t?.get("size", e), n =
|
|
287
|
-
return
|
|
286
|
+
const r = t?.get("size", e), n = va(e);
|
|
287
|
+
return fn(n) ? (r ?? n) / Cs : (r ?? 12) / 2;
|
|
288
288
|
}, Ps = (e) => {
|
|
289
289
|
const t = Math.max(Rs, e * Ss), r = Math.max(ks, e * ws);
|
|
290
290
|
return {
|
|
291
|
-
ringRadius: e +
|
|
291
|
+
ringRadius: e + Gn / 2 + r + t / 2,
|
|
292
292
|
ringWidth: t
|
|
293
293
|
};
|
|
294
294
|
}, Bs = ({ layer: e, coordSystem: t, primary: r, companions: n }) => {
|
|
295
|
-
const o = T(e), i =
|
|
295
|
+
const o = T(e), i = yt(r.observation), a = y(() => An([...e.data.filter(pe.group, "eq", i)], e.params.missingValues), [
|
|
296
296
|
e.data,
|
|
297
297
|
e.params.missingValues,
|
|
298
298
|
i
|
|
299
299
|
]), { areaPath: l, linePath: d } = y(() => {
|
|
300
|
-
const { lineGenerator: v, areaGenerator: f } =
|
|
300
|
+
const { lineGenerator: v, areaGenerator: f } = an(t, e.params);
|
|
301
301
|
return {
|
|
302
302
|
areaPath: f(a) ?? "",
|
|
303
303
|
linePath: v(a) ?? ""
|
|
@@ -318,7 +318,7 @@ var Fn = z(null), K = () => {
|
|
|
318
318
|
width: "100%",
|
|
319
319
|
height: "100%",
|
|
320
320
|
"data-geom": "area",
|
|
321
|
-
className:
|
|
321
|
+
className: re,
|
|
322
322
|
children: [/* @__PURE__ */ s("path", {
|
|
323
323
|
d: l,
|
|
324
324
|
fill: c,
|
|
@@ -363,27 +363,27 @@ var Fn = z(null), K = () => {
|
|
|
363
363
|
renderHoverCompanions: ({ related: e }) => /* @__PURE__ */ s(B, { children: e.map((t) => /* @__PURE__ */ s(xe, { hit: t }, `companion-${t.layerId}-${t.pointIndex}`)) }),
|
|
364
364
|
getOverlayAnchor: ({ observation: e, coordSystem: t }) => {
|
|
365
365
|
if (t.mainAxis === "x") {
|
|
366
|
-
const o =
|
|
366
|
+
const o = _(e), i = vn(e) ?? se(e);
|
|
367
367
|
return o === null || i === null ? null : {
|
|
368
368
|
x: o,
|
|
369
369
|
y: i
|
|
370
370
|
};
|
|
371
371
|
}
|
|
372
|
-
const r = se(e), n =
|
|
372
|
+
const r = se(e), n = ma(e) ?? _(e);
|
|
373
373
|
return r === null || n === null ? null : {
|
|
374
374
|
x: n,
|
|
375
375
|
y: r
|
|
376
376
|
};
|
|
377
377
|
}
|
|
378
|
-
},
|
|
379
|
-
const n = r === void 0 ? e.activeIntro : r, o = M(n ?
|
|
378
|
+
}, Qt = (e, t, r) => {
|
|
379
|
+
const n = r === void 0 ? e.activeIntro : r, o = M(n ? nr(n, t) : null), i = M(e.shouldAnimateTransitions);
|
|
380
380
|
return i.current = e.shouldAnimateTransitions, ge(() => {
|
|
381
381
|
const a = o.current;
|
|
382
|
-
return o.current = null, a ??
|
|
382
|
+
return o.current = null, a ?? rr(i.current);
|
|
383
383
|
}, []);
|
|
384
|
-
},
|
|
384
|
+
}, St = (e, t) => {
|
|
385
385
|
const r = M(!0);
|
|
386
|
-
|
|
386
|
+
F(() => {
|
|
387
387
|
r.current = !1;
|
|
388
388
|
}, []);
|
|
389
389
|
const n = r.current;
|
|
@@ -402,7 +402,7 @@ var Fn = z(null), K = () => {
|
|
|
402
402
|
borderWidth: e.get("borderWidth", t),
|
|
403
403
|
borderRadius: e.get("borderRadius", t),
|
|
404
404
|
borderAlpha: e.get("alpha", t)
|
|
405
|
-
}),
|
|
405
|
+
}), Un = (e, t) => t.growAxis === "x" ? {
|
|
406
406
|
x: t.baseline,
|
|
407
407
|
y: e.y,
|
|
408
408
|
width: 0,
|
|
@@ -412,14 +412,14 @@ var Fn = z(null), K = () => {
|
|
|
412
412
|
y: t.baseline,
|
|
413
413
|
width: e.width,
|
|
414
414
|
height: 0
|
|
415
|
-
}, Ms =
|
|
416
|
-
const i = Q(), a = T(t), l =
|
|
415
|
+
}, Ms = te(function({ layer: t, coordSystem: r, shouldAnimateTransitions: n, intro: o }) {
|
|
416
|
+
const i = Q(), a = T(t), l = St(o?.type === "grow" && (o.growAxis === "x" || o.growAxis === "y") ? o : null, n);
|
|
417
417
|
return /* @__PURE__ */ s(B, { children: y(() => {
|
|
418
418
|
const d = ce(t.data, t.mapping, t.id), c = /* @__PURE__ */ new Map();
|
|
419
419
|
for (const u of t.data) {
|
|
420
420
|
const h = Xe(r.mainAxis, u);
|
|
421
421
|
if (!h) continue;
|
|
422
|
-
const g =
|
|
422
|
+
const g = Xt(r.mainAxis, h), v = c.get(g), f = {
|
|
423
423
|
key: d(u),
|
|
424
424
|
...h,
|
|
425
425
|
fill: a.get("color", u),
|
|
@@ -431,7 +431,7 @@ var Fn = z(null), K = () => {
|
|
|
431
431
|
});
|
|
432
432
|
}
|
|
433
433
|
return [...c.values()].map(({ bars: u, style: h }, g) => {
|
|
434
|
-
const v =
|
|
434
|
+
const v = un(u), f = h.borderColor === void 0 ? void 0 : qe(h.borderWidth);
|
|
435
435
|
return {
|
|
436
436
|
key: u[0]?.key ?? String(g),
|
|
437
437
|
id: `${i}${g}`,
|
|
@@ -458,7 +458,7 @@ var Fn = z(null), K = () => {
|
|
|
458
458
|
const [c] = d.bars;
|
|
459
459
|
if (!c) return null;
|
|
460
460
|
const { key: u, ...h } = c;
|
|
461
|
-
return /* @__PURE__ */ s(
|
|
461
|
+
return /* @__PURE__ */ s(ht, {
|
|
462
462
|
...h,
|
|
463
463
|
...d.radii,
|
|
464
464
|
animation: l,
|
|
@@ -476,7 +476,7 @@ var Fn = z(null), K = () => {
|
|
|
476
476
|
}), Ls = ({ column: e, animation: t }) => {
|
|
477
477
|
const { id: r, bars: n, radii: o, borderColor: i, outlineOpacity: a, clippedStrokeWidth: l, separatorStrokeWidth: d } = e, c = i !== void 0, u = /* @__PURE__ */ s("clipPath", {
|
|
478
478
|
id: r,
|
|
479
|
-
children: /* @__PURE__ */ s(
|
|
479
|
+
children: /* @__PURE__ */ s(Br, {
|
|
480
480
|
bounds: e,
|
|
481
481
|
radii: o
|
|
482
482
|
})
|
|
@@ -487,7 +487,7 @@ var Fn = z(null), K = () => {
|
|
|
487
487
|
const { key: g, ...v } = h;
|
|
488
488
|
return /* @__PURE__ */ S(B, { children: [u, /* @__PURE__ */ s("g", {
|
|
489
489
|
clipPath: `url(#${r})`,
|
|
490
|
-
children: /* @__PURE__ */ s(
|
|
490
|
+
children: /* @__PURE__ */ s(ht, {
|
|
491
491
|
...v,
|
|
492
492
|
...o,
|
|
493
493
|
stroke: i,
|
|
@@ -500,13 +500,13 @@ var Fn = z(null), K = () => {
|
|
|
500
500
|
clipPath: `url(#${r})`,
|
|
501
501
|
children: [n.map((h) => {
|
|
502
502
|
const { key: g, ...v } = h;
|
|
503
|
-
return /* @__PURE__ */ s(
|
|
503
|
+
return /* @__PURE__ */ s(ht, {
|
|
504
504
|
...v,
|
|
505
505
|
stroke: i,
|
|
506
506
|
strokeWidth: d,
|
|
507
507
|
animation: t
|
|
508
508
|
}, g);
|
|
509
|
-
}), c && /* @__PURE__ */ s(
|
|
509
|
+
}), c && /* @__PURE__ */ s(Br, {
|
|
510
510
|
bounds: e,
|
|
511
511
|
radii: o,
|
|
512
512
|
fill: "none",
|
|
@@ -528,13 +528,13 @@ var Fn = z(null), K = () => {
|
|
|
528
528
|
ry: o.ry
|
|
529
529
|
}, g = /* @__PURE__ */ s("clipPath", {
|
|
530
530
|
id: r,
|
|
531
|
-
children: /* @__PURE__ */ s(
|
|
531
|
+
children: /* @__PURE__ */ s(G.rect, { ...h })
|
|
532
532
|
});
|
|
533
533
|
if (n.length === 1) {
|
|
534
534
|
const [v] = n;
|
|
535
535
|
return /* @__PURE__ */ S(B, { children: [g, /* @__PURE__ */ s("g", {
|
|
536
536
|
clipPath: `url(#${r})`,
|
|
537
|
-
children: /* @__PURE__ */ s(
|
|
537
|
+
children: /* @__PURE__ */ s(G.rect, {
|
|
538
538
|
...h,
|
|
539
539
|
fill: v?.fill,
|
|
540
540
|
opacity: v?.opacity,
|
|
@@ -547,14 +547,14 @@ var Fn = z(null), K = () => {
|
|
|
547
547
|
clipPath: `url(#${r})`,
|
|
548
548
|
children: [n.map((v) => {
|
|
549
549
|
const { key: f, ...A } = v;
|
|
550
|
-
return /* @__PURE__ */ s(
|
|
550
|
+
return /* @__PURE__ */ s(ht, {
|
|
551
551
|
...A,
|
|
552
552
|
stroke: i,
|
|
553
553
|
strokeWidth: d,
|
|
554
554
|
animation: t,
|
|
555
555
|
introKey: f
|
|
556
556
|
}, f);
|
|
557
|
-
}), c && /* @__PURE__ */ s(
|
|
557
|
+
}), c && /* @__PURE__ */ s(G.rect, {
|
|
558
558
|
...h,
|
|
559
559
|
fill: "none",
|
|
560
560
|
stroke: i,
|
|
@@ -562,11 +562,11 @@ var Fn = z(null), K = () => {
|
|
|
562
562
|
opacity: a
|
|
563
563
|
})]
|
|
564
564
|
})] });
|
|
565
|
-
},
|
|
565
|
+
}, ht = ({ animation: e, introKey: t, rx: r, ry: n, stroke: o, strokeWidth: i, ...a }) => {
|
|
566
566
|
const { isAnimated: l, activeIntro: d, shouldAnimateTransitions: c } = e;
|
|
567
567
|
if (l) {
|
|
568
|
-
const u = d ?
|
|
569
|
-
return /* @__PURE__ */ s(
|
|
568
|
+
const u = d ? Un(a, d) : null;
|
|
569
|
+
return /* @__PURE__ */ s(G.rect, {
|
|
570
570
|
initial: u ? {
|
|
571
571
|
x: R(u.x),
|
|
572
572
|
y: R(u.y),
|
|
@@ -575,7 +575,7 @@ var Fn = z(null), K = () => {
|
|
|
575
575
|
opacity: a.opacity
|
|
576
576
|
} : !1,
|
|
577
577
|
style: { transformBox: "view-box" },
|
|
578
|
-
transition: d ?
|
|
578
|
+
transition: d ? nr(d, t) : rr(c),
|
|
579
579
|
fill: a.fill,
|
|
580
580
|
opacity: a.opacity,
|
|
581
581
|
rx: r,
|
|
@@ -604,7 +604,7 @@ var Fn = z(null), K = () => {
|
|
|
604
604
|
stroke: o,
|
|
605
605
|
strokeWidth: i
|
|
606
606
|
});
|
|
607
|
-
},
|
|
607
|
+
}, Br = ({ bounds: e, radii: t, fill: r, stroke: n, strokeWidth: o, opacity: i }) => /* @__PURE__ */ s("rect", {
|
|
608
608
|
x: R(e.x),
|
|
609
609
|
y: R(e.y),
|
|
610
610
|
width: R(e.width),
|
|
@@ -616,8 +616,8 @@ var Fn = z(null), K = () => {
|
|
|
616
616
|
strokeWidth: o,
|
|
617
617
|
opacity: i
|
|
618
618
|
}), Ns = (e, t, r) => {
|
|
619
|
-
const n = t.activeIntro ?
|
|
620
|
-
return
|
|
619
|
+
const n = t.activeIntro ? Un(e, t.activeIntro) : e, o = ie(n.x), i = ie(n.y), a = ie(n.width), l = ie(n.height), d = Qt(t, r);
|
|
620
|
+
return F(() => {
|
|
621
621
|
const c = d(), u = [
|
|
622
622
|
he(o, e.x, c),
|
|
623
623
|
he(i, e.y, c),
|
|
@@ -638,24 +638,24 @@ var Fn = z(null), K = () => {
|
|
|
638
638
|
e.height,
|
|
639
639
|
d
|
|
640
640
|
]), {
|
|
641
|
-
x:
|
|
642
|
-
y:
|
|
643
|
-
width:
|
|
644
|
-
height:
|
|
641
|
+
x: ot(o, R),
|
|
642
|
+
y: ot(i, R),
|
|
643
|
+
width: ot(a, R),
|
|
644
|
+
height: ot(l, R)
|
|
645
645
|
};
|
|
646
646
|
};
|
|
647
647
|
function Hs(e) {
|
|
648
|
-
const t =
|
|
648
|
+
const t = Pa(e);
|
|
649
649
|
if (e.borderRadius !== "full") return t;
|
|
650
650
|
const r = {};
|
|
651
651
|
return t.rx !== void 0 && (r.rx = R(t.rx)), t.ry !== void 0 && (r.ry = R(t.ry)), r;
|
|
652
652
|
}
|
|
653
|
-
var Fs = "_1suo8ub0",
|
|
653
|
+
var Fs = "_1suo8ub0", Vn = (e, t, r) => {
|
|
654
654
|
const n = /* @__PURE__ */ new Map();
|
|
655
655
|
for (const i of e.data) {
|
|
656
656
|
const a = Xe(t, i);
|
|
657
657
|
if (!a) continue;
|
|
658
|
-
const l =
|
|
658
|
+
const l = Xt(t, a), d = n.get(l);
|
|
659
659
|
d === void 0 ? n.set(l, {
|
|
660
660
|
firstObservation: i,
|
|
661
661
|
memberBounds: [a]
|
|
@@ -664,21 +664,21 @@ var Fs = "_1suo8ub0", zn = (e, t, r) => {
|
|
|
664
664
|
const o = /* @__PURE__ */ new Map();
|
|
665
665
|
for (const [i, { firstObservation: a, memberBounds: l }] of n) o.set(i, {
|
|
666
666
|
style: He(r, a),
|
|
667
|
-
bounds:
|
|
667
|
+
bounds: un(l)
|
|
668
668
|
});
|
|
669
669
|
return o;
|
|
670
|
-
},
|
|
670
|
+
}, zn = (e, t, r, n) => {
|
|
671
671
|
const o = Xe(t, n);
|
|
672
|
-
return o ? e.get(
|
|
672
|
+
return o ? e.get(Xt(t, o)) ?? {
|
|
673
673
|
style: He(r, n),
|
|
674
674
|
bounds: o
|
|
675
675
|
} : null;
|
|
676
|
-
},
|
|
676
|
+
}, gt = (e, t) => ({
|
|
677
677
|
x: e.x * t.width,
|
|
678
678
|
y: e.y * t.height,
|
|
679
679
|
width: e.width * t.width,
|
|
680
680
|
height: e.height * t.height
|
|
681
|
-
}),
|
|
681
|
+
}), Ir = (e, t) => ({
|
|
682
682
|
x: e.x - t,
|
|
683
683
|
y: e.y - t,
|
|
684
684
|
width: Math.max(0, e.width + t * 2),
|
|
@@ -700,7 +700,7 @@ var Fs = "_1suo8ub0", zn = (e, t, r) => {
|
|
|
700
700
|
}, Ds = ({ observation: e, mainAxis: t, styleReaders: r, column: n, panelRect: o }) => {
|
|
701
701
|
const i = Q(), a = Q(), l = Xe(t, e);
|
|
702
702
|
if (!l) return null;
|
|
703
|
-
const d =
|
|
703
|
+
const d = gt(l, o), c = gt(n.bounds, o), { borderColor: u, borderWidth: h, borderRadius: g, borderAlpha: v } = n.style, f = bn({
|
|
704
704
|
borderRadius: g,
|
|
705
705
|
mainAxis: t,
|
|
706
706
|
bounds: c
|
|
@@ -741,13 +741,13 @@ var Fs = "_1suo8ub0", zn = (e, t, r) => {
|
|
|
741
741
|
]
|
|
742
742
|
});
|
|
743
743
|
}, Os = ({ layer: e, sourceLayer: t, coordSystem: r, panelRect: n }) => {
|
|
744
|
-
const o = T(t), i = y(() =>
|
|
744
|
+
const o = T(t), i = y(() => Vn(t, r.mainAxis, o), [
|
|
745
745
|
t,
|
|
746
746
|
r.mainAxis,
|
|
747
747
|
o
|
|
748
748
|
]), a = ce(e.data, e.mapping, e.id), l = [];
|
|
749
749
|
for (const d of e.data) {
|
|
750
|
-
const c =
|
|
750
|
+
const c = zn(i, r.mainAxis, o, d);
|
|
751
751
|
c !== null && l.push(/* @__PURE__ */ s(Ds, {
|
|
752
752
|
observation: d,
|
|
753
753
|
mainAxis: r.mainAxis,
|
|
@@ -757,18 +757,18 @@ var Fs = "_1suo8ub0", zn = (e, t, r) => {
|
|
|
757
757
|
}, a(d)));
|
|
758
758
|
}
|
|
759
759
|
return l;
|
|
760
|
-
},
|
|
761
|
-
const o = T(e), i = Q(), a = Q(), l = Q(), d = y(() =>
|
|
760
|
+
}, Lt = 3, Ws = ({ layer: e, coordSystem: t, primary: r, panelRect: n }) => {
|
|
761
|
+
const o = T(e), i = Q(), a = Q(), l = Q(), d = y(() => Vn(e, t.mainAxis, o), [
|
|
762
762
|
e,
|
|
763
763
|
t.mainAxis,
|
|
764
764
|
o
|
|
765
|
-
]), c = Xe(t.mainAxis, r.observation), u =
|
|
765
|
+
]), c = Xe(t.mainAxis, r.observation), u = zn(d, t.mainAxis, o, r.observation);
|
|
766
766
|
if (!c || u === null) return null;
|
|
767
|
-
const h =
|
|
767
|
+
const h = gt(c, n), g = gt(u.bounds, n), { borderColor: v, borderWidth: f, borderRadius: A, borderAlpha: m } = u.style, b = bn({
|
|
768
768
|
borderRadius: A,
|
|
769
769
|
mainAxis: t.mainAxis,
|
|
770
770
|
bounds: g
|
|
771
|
-
}), x = Be(h, 0), w = Be(g, b), k = Be(
|
|
771
|
+
}), x = Be(h, 0), w = Be(g, b), k = Be(Ir(h, Lt), 0), E = Be(Ir(g, Lt), b > 0 ? b + Lt : 0), C = o.get("color", r.observation), N = o.get("alpha", r.observation), H = o.get("borderColor", r.observation, "hovered") ?? mt, U = qe(f);
|
|
772
772
|
return /* @__PURE__ */ S("g", {
|
|
773
773
|
"data-testid": "hovered-bar",
|
|
774
774
|
children: [
|
|
@@ -790,7 +790,7 @@ var Fs = "_1suo8ub0", zn = (e, t, r) => {
|
|
|
790
790
|
clipPath: `url(#${i})`,
|
|
791
791
|
children: /* @__PURE__ */ s("path", {
|
|
792
792
|
d: k,
|
|
793
|
-
fill:
|
|
793
|
+
fill: H,
|
|
794
794
|
"data-testid": "hovered-bar-border"
|
|
795
795
|
})
|
|
796
796
|
})
|
|
@@ -808,14 +808,14 @@ var Fs = "_1suo8ub0", zn = (e, t, r) => {
|
|
|
808
808
|
d: x,
|
|
809
809
|
fill: "none",
|
|
810
810
|
stroke: v,
|
|
811
|
-
strokeWidth:
|
|
811
|
+
strokeWidth: U.separatorWidth,
|
|
812
812
|
opacity: N,
|
|
813
813
|
"data-testid": "hovered-bar-inner-border"
|
|
814
814
|
}), /* @__PURE__ */ s("path", {
|
|
815
815
|
d: w,
|
|
816
816
|
fill: "none",
|
|
817
817
|
stroke: v,
|
|
818
|
-
strokeWidth:
|
|
818
|
+
strokeWidth: U.outlineWidth,
|
|
819
819
|
opacity: m
|
|
820
820
|
})] })]
|
|
821
821
|
})
|
|
@@ -846,11 +846,11 @@ var Fs = "_1suo8ub0", zn = (e, t, r) => {
|
|
|
846
846
|
panelRect: n
|
|
847
847
|
}),
|
|
848
848
|
renderHoverCompanions: () => null
|
|
849
|
-
}, Us =
|
|
850
|
-
const o = n?.type === "wipe" ? n : null, i = y(() =>
|
|
849
|
+
}, Us = te(function({ layer: t, shouldAnimateTransitions: r, intro: n }) {
|
|
850
|
+
const o = n?.type === "wipe" ? n : null, i = y(() => ln(t.params), [t.params]), a = y(() => _i(t.params), [t.params]), l = T(t), d = y(() => {
|
|
851
851
|
const c = ce(t.data, t.mapping, t.id), u = [];
|
|
852
852
|
return t.data.groupBy(pe.group).forEach((h) => {
|
|
853
|
-
const g =
|
|
853
|
+
const g = yn([...h], t.params.missingValues), v = i(g);
|
|
854
854
|
if (!v) return;
|
|
855
855
|
const f = g[0];
|
|
856
856
|
if (!f) return;
|
|
@@ -890,8 +890,8 @@ var Fs = "_1suo8ub0", zn = (e, t, r) => {
|
|
|
890
890
|
width: "100%",
|
|
891
891
|
height: "100%",
|
|
892
892
|
"data-geom": "line",
|
|
893
|
-
className:
|
|
894
|
-
children: o ? /* @__PURE__ */ s(
|
|
893
|
+
className: re,
|
|
894
|
+
children: o ? /* @__PURE__ */ s(Wn, {
|
|
895
895
|
intro: o,
|
|
896
896
|
children: d
|
|
897
897
|
}) : d
|
|
@@ -940,7 +940,7 @@ var Fs = "_1suo8ub0", zn = (e, t, r) => {
|
|
|
940
940
|
stopOpacity: 0
|
|
941
941
|
})
|
|
942
942
|
]
|
|
943
|
-
}) }), /* @__PURE__ */ s(
|
|
943
|
+
}) }), /* @__PURE__ */ s(On, {
|
|
944
944
|
fillPath: e,
|
|
945
945
|
linePath: r,
|
|
946
946
|
fill: `url(#${d})`,
|
|
@@ -952,8 +952,8 @@ var Fs = "_1suo8ub0", zn = (e, t, r) => {
|
|
|
952
952
|
shouldAnimateTransitions: l
|
|
953
953
|
})] });
|
|
954
954
|
}, Qs = ({ pathData: e, color: t, strokeWidth: r, opacity: n, strokeDasharray: o }) => {
|
|
955
|
-
const i =
|
|
956
|
-
return /* @__PURE__ */ s(
|
|
955
|
+
const i = zt(e, de);
|
|
956
|
+
return /* @__PURE__ */ s(G.path, {
|
|
957
957
|
d: i,
|
|
958
958
|
fill: "none",
|
|
959
959
|
stroke: t,
|
|
@@ -963,11 +963,11 @@ var Fs = "_1suo8ub0", zn = (e, t, r) => {
|
|
|
963
963
|
vectorEffect: "non-scaling-stroke"
|
|
964
964
|
});
|
|
965
965
|
}, Ks = ({ layer: e, primary: t, companions: r }) => {
|
|
966
|
-
const n = T(e), o =
|
|
966
|
+
const n = T(e), o = yt(t.observation), i = y(() => yn([...e.data.filter(pe.group, "eq", o)], e.params.missingValues), [
|
|
967
967
|
e.data,
|
|
968
968
|
e.params.missingValues,
|
|
969
969
|
o
|
|
970
|
-
]), a = y(() =>
|
|
970
|
+
]), a = y(() => ln(e.params)(i), [e.params, i]);
|
|
971
971
|
if (!a) return null;
|
|
972
972
|
const l = n.get("color", t.observation), d = n.get("alpha", t.observation), c = n.get("strokeWidth", t.observation), u = Te(n.get("lineType", t.observation));
|
|
973
973
|
return /* @__PURE__ */ S("g", {
|
|
@@ -979,7 +979,7 @@ var Fs = "_1suo8ub0", zn = (e, t, r) => {
|
|
|
979
979
|
width: "100%",
|
|
980
980
|
height: "100%",
|
|
981
981
|
"data-geom": "line",
|
|
982
|
-
className:
|
|
982
|
+
className: re,
|
|
983
983
|
children: /* @__PURE__ */ s("path", {
|
|
984
984
|
d: a,
|
|
985
985
|
fill: "none",
|
|
@@ -1015,24 +1015,24 @@ var Fs = "_1suo8ub0", zn = (e, t, r) => {
|
|
|
1015
1015
|
}),
|
|
1016
1016
|
renderHoverCompanions: ({ related: e }) => /* @__PURE__ */ s(B, { children: e.map((t) => /* @__PURE__ */ s(xe, { hit: t }, `companion-${t.layerId}-${t.pointIndex}`)) }),
|
|
1017
1017
|
getOverlayAnchor: ({ observation: e }) => {
|
|
1018
|
-
const t =
|
|
1018
|
+
const t = _(e), r = se(e);
|
|
1019
1019
|
return t === null || r === null ? null : {
|
|
1020
1020
|
x: t,
|
|
1021
1021
|
y: r
|
|
1022
1022
|
};
|
|
1023
1023
|
}
|
|
1024
|
-
},
|
|
1025
|
-
const i =
|
|
1024
|
+
}, Qn = ({ observation: e, project: t, styleReaders: r, animation: n, introKey: o }) => {
|
|
1025
|
+
const i = _(e), a = se(e);
|
|
1026
1026
|
if (i === null || a === null) return null;
|
|
1027
1027
|
const l = t(i, a), d = R(l.x), c = R(l.y), u = r.get("size", e) / 2, h = r.get("color", e), g = r.get("alpha", e), v = r.get("borderColor", e), f = r.get("borderWidth", e), { isAnimated: A, activeIntro: m, shouldAnimateTransitions: b } = n;
|
|
1028
|
-
return A ? /* @__PURE__ */ s(
|
|
1028
|
+
return A ? /* @__PURE__ */ s(G.circle, {
|
|
1029
1029
|
initial: m ? {
|
|
1030
1030
|
cx: d,
|
|
1031
1031
|
cy: c,
|
|
1032
1032
|
r: 0,
|
|
1033
1033
|
opacity: 0
|
|
1034
1034
|
} : !1,
|
|
1035
|
-
transition: m ?
|
|
1035
|
+
transition: m ? nr(m, o) : rr(b),
|
|
1036
1036
|
fill: h,
|
|
1037
1037
|
stroke: v,
|
|
1038
1038
|
strokeWidth: f,
|
|
@@ -1051,14 +1051,14 @@ var Fs = "_1suo8ub0", zn = (e, t, r) => {
|
|
|
1051
1051
|
stroke: v,
|
|
1052
1052
|
strokeWidth: f
|
|
1053
1053
|
});
|
|
1054
|
-
}, js =
|
|
1055
|
-
const o = T(t), i =
|
|
1054
|
+
}, js = te(function({ layer: t, shouldAnimateTransitions: r, intro: n }) {
|
|
1055
|
+
const o = T(t), i = St(n?.type === "grow" && n.growAxis === "size" ? n : null, r);
|
|
1056
1056
|
return y(() => {
|
|
1057
1057
|
const a = i.activeIntro ? ce(t.data, t.mapping, t.id) : null, l = [];
|
|
1058
1058
|
let d = 0;
|
|
1059
|
-
for (const c of t.data) l.push(/* @__PURE__ */ s(
|
|
1059
|
+
for (const c of t.data) l.push(/* @__PURE__ */ s(Qn, {
|
|
1060
1060
|
observation: c,
|
|
1061
|
-
project:
|
|
1061
|
+
project: tr,
|
|
1062
1062
|
styleReaders: o,
|
|
1063
1063
|
animation: i,
|
|
1064
1064
|
introKey: a?.(c)
|
|
@@ -1071,7 +1071,7 @@ var Fs = "_1suo8ub0", zn = (e, t, r) => {
|
|
|
1071
1071
|
o,
|
|
1072
1072
|
i
|
|
1073
1073
|
]);
|
|
1074
|
-
}),
|
|
1074
|
+
}), Mr = ({ primary: e, companions: t }) => {
|
|
1075
1075
|
const r = /* @__PURE__ */ S(B, { children: [t.map((n) => /* @__PURE__ */ s(xe, { hit: n }, `companion-${n.layerId}-${n.pointIndex}`)), e ? /* @__PURE__ */ s(Ne, { hit: e }) : null] });
|
|
1076
1076
|
return e ? /* @__PURE__ */ s("g", {
|
|
1077
1077
|
"data-testid": "hovered-point",
|
|
@@ -1086,20 +1086,20 @@ var Fs = "_1suo8ub0", zn = (e, t, r) => {
|
|
|
1086
1086
|
shouldAnimateTransitions: t,
|
|
1087
1087
|
intro: r
|
|
1088
1088
|
}),
|
|
1089
|
-
renderHover: ({ primary: e, group: t, related: r }) => /* @__PURE__ */ s(
|
|
1089
|
+
renderHover: ({ primary: e, group: t, related: r }) => /* @__PURE__ */ s(Mr, {
|
|
1090
1090
|
primary: e,
|
|
1091
1091
|
companions: [...t, ...r]
|
|
1092
1092
|
}),
|
|
1093
|
-
renderHoverCompanions: ({ related: e }) => /* @__PURE__ */ s(
|
|
1093
|
+
renderHoverCompanions: ({ related: e }) => /* @__PURE__ */ s(Mr, { companions: e }),
|
|
1094
1094
|
getOverlayAnchor: ({ observation: e }) => {
|
|
1095
|
-
const t =
|
|
1095
|
+
const t = _(e), r = se(e);
|
|
1096
1096
|
return t === null || r === null ? null : {
|
|
1097
1097
|
x: t,
|
|
1098
1098
|
y: r
|
|
1099
1099
|
};
|
|
1100
1100
|
}
|
|
1101
|
-
},
|
|
1102
|
-
'Cantarell', 'Helvetica Neue', 'NotoSansArabic', 'NotoSansJP', 'NotoSansSC', 'NotoSansKR', 'NotoSerifKR', sans-serif, 'Apple Color Emoji', 'NotoColorEmoji'`, qs =
|
|
1101
|
+
}, wt = `"Stack Sans Text", 'Inter', -apple-system, BlinkMacSystemFont, 'Open Sans', 'Segoe UI', 'Roboto', 'Oxygen-Sans', 'Ubuntu',
|
|
1102
|
+
'Cantarell', 'Helvetica Neue', 'NotoSansArabic', 'NotoSansJP', 'NotoSansSC', 'NotoSansKR', 'NotoSerifKR', sans-serif, 'Apple Color Emoji', 'NotoColorEmoji'`, qs = wt, Ue = {
|
|
1103
1103
|
regular: Ge.regular,
|
|
1104
1104
|
medium: Ge.medium,
|
|
1105
1105
|
semibold: Ge.semiBold,
|
|
@@ -1116,7 +1116,7 @@ var Fs = "_1suo8ub0", zn = (e, t, r) => {
|
|
|
1116
1116
|
headingSm: 1.8,
|
|
1117
1117
|
headingMd: 2.2,
|
|
1118
1118
|
headingLg: 2.8
|
|
1119
|
-
},
|
|
1119
|
+
}, $ = {
|
|
1120
1120
|
xxs: 1,
|
|
1121
1121
|
xs: 1,
|
|
1122
1122
|
sm: 1.3,
|
|
@@ -1127,9 +1127,9 @@ var Fs = "_1suo8ub0", zn = (e, t, r) => {
|
|
|
1127
1127
|
headingSm: 1.25,
|
|
1128
1128
|
headingMd: 1.41,
|
|
1129
1129
|
headingLg: 1.29
|
|
1130
|
-
}, oe = (e) => `${e}em`,
|
|
1130
|
+
}, oe = (e) => `${e}em`, Kn = {
|
|
1131
1131
|
textScale: "1",
|
|
1132
|
-
fontFamily:
|
|
1132
|
+
fontFamily: wt,
|
|
1133
1133
|
fontFamilyHeading: qs,
|
|
1134
1134
|
fontWeightRegular: Ue.regular.toString(),
|
|
1135
1135
|
fontWeightMedium: Ue.medium.toString(),
|
|
@@ -1142,22 +1142,22 @@ var Fs = "_1suo8ub0", zn = (e, t, r) => {
|
|
|
1142
1142
|
fontSizeMd: oe(ne.md),
|
|
1143
1143
|
fontSizeLg: oe(ne.lg),
|
|
1144
1144
|
fontSizeXl: oe(ne.xl),
|
|
1145
|
-
fontLineHeightXxs:
|
|
1146
|
-
fontLineHeightXs:
|
|
1147
|
-
fontLineHeightSm:
|
|
1148
|
-
fontLineHeightMd:
|
|
1149
|
-
fontLineHeightLg:
|
|
1150
|
-
fontLineHeightXl:
|
|
1151
|
-
},
|
|
1145
|
+
fontLineHeightXxs: $.xxs.toString(),
|
|
1146
|
+
fontLineHeightXs: $.xs.toString(),
|
|
1147
|
+
fontLineHeightSm: $.sm.toString(),
|
|
1148
|
+
fontLineHeightMd: $.md.toString(),
|
|
1149
|
+
fontLineHeightLg: $.lg.toString(),
|
|
1150
|
+
fontLineHeightXl: $.xl.toString()
|
|
1151
|
+
}, Yn = {
|
|
1152
1152
|
fontSizeEditorBody: oe(ne.editorBody),
|
|
1153
1153
|
fontSizeHeadingSm: oe(ne.headingSm),
|
|
1154
1154
|
fontSizeHeadingMd: oe(ne.headingMd),
|
|
1155
1155
|
fontSizeHeadingLg: oe(ne.headingLg),
|
|
1156
|
-
fontLineHeightEditorBody:
|
|
1157
|
-
fontLineHeightHeadingSm:
|
|
1158
|
-
fontLineHeightHeadingMd:
|
|
1159
|
-
fontLineHeightHeadingLg:
|
|
1160
|
-
}, P = (e, t, r, n = p.fontFamily) => `${e} ${t}/${r} ${n}`,
|
|
1156
|
+
fontLineHeightEditorBody: $.editorBody.toString(),
|
|
1157
|
+
fontLineHeightHeadingSm: $.headingSm.toString(),
|
|
1158
|
+
fontLineHeightHeadingMd: $.headingMd.toString(),
|
|
1159
|
+
fontLineHeightHeadingLg: $.headingLg.toString()
|
|
1160
|
+
}, P = (e, t, r, n = p.fontFamily) => `${e} ${t}/${r} ${n}`, jn = {
|
|
1161
1161
|
fontUITooltip: P(p.fontWeightMedium, p.fontSizeMd, p.fontLineHeightMd),
|
|
1162
1162
|
fontUITooltipSecondary: P(p.fontWeightMedium, p.fontSizeSm, p.fontLineHeightSm),
|
|
1163
1163
|
fontButton: P(p.fontWeightMedium, p.fontSizeMd, p.fontLineHeightMd),
|
|
@@ -1188,11 +1188,11 @@ var Fs = "_1suo8ub0", zn = (e, t, r) => {
|
|
|
1188
1188
|
fontEditorControlValue: P(p.fontWeightMedium, p.fontSizeSm, p.fontLineHeightSm),
|
|
1189
1189
|
fontEditorSectionTitle: P(p.fontWeightSemibold, p.fontSizeSm, p.fontLineHeightSm),
|
|
1190
1190
|
fontEditorCaption: P(p.fontWeightMedium, p.fontSizeXxs, p.fontLineHeightXxs)
|
|
1191
|
-
}, Js =
|
|
1191
|
+
}, Js = $.sm, Zs = (e, t) => ({ familyDefault: Tt(t) ?? Tt(e.fontFamily) ?? Tt(wt) ?? "" }), Tt = (e) => e === void 0 || e.includes("var(") ? null : e.replace(/\s+/g, " ").trim(), Y = (e, t) => `color-mix(in srgb, transparent, ${e} ${t * 100}%)`, $s = (e, t) => `hsl(from ${e} h s calc(l * ${1 - t}))`, Yf = (e, t) => `hsl(from ${e} h s calc(l * ${1 + t}))`, jf = (e) => /^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$/.test(e), Xf = (e) => e.length === 0 ? !1 : typeof CSS < "u" && typeof CSS.supports == "function" ? CSS.supports("color", e) : /^#([0-9a-fA-F]{3}|[0-9a-fA-F]{4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/.test(e), Nt = (e) => `${e}px`, Xn = {
|
|
1192
1192
|
tooltipRowGap: "4px",
|
|
1193
|
-
editorControlHeight:
|
|
1194
|
-
legendSwatchGap:
|
|
1195
|
-
headlineRowGap:
|
|
1193
|
+
editorControlHeight: Nt(32),
|
|
1194
|
+
legendSwatchGap: Nt(8),
|
|
1195
|
+
headlineRowGap: Nt(2)
|
|
1196
1196
|
}, Ve = {
|
|
1197
1197
|
panelOverlay: 5,
|
|
1198
1198
|
textToolbar: 10,
|
|
@@ -1202,22 +1202,22 @@ var Fs = "_1suo8ub0", zn = (e, t, r) => {
|
|
|
1202
1202
|
editorOverlay: 900,
|
|
1203
1203
|
editorOverlayPopover: 950,
|
|
1204
1204
|
tooltip: 1e3
|
|
1205
|
-
},
|
|
1205
|
+
}, qn = {
|
|
1206
1206
|
elevationXs: "0 0 2px rgba(15, 15, 24, 0.12), 0 2px 2px rgba(14, 14, 52, 0.08)",
|
|
1207
1207
|
elevationSm: "0 0 4px rgba(15, 15, 24, 0.12), 0 4px 4px rgba(14, 14, 52, 0.08)",
|
|
1208
1208
|
elevationMd: "0 0 8px rgba(15, 15, 24, 0.12), 0 8px 8px rgba(14, 14, 52, 0.08)",
|
|
1209
1209
|
elevationLg: "0 0 16px rgba(15, 15, 24, 0.12), 0 16px 16px rgba(14, 14, 52, 0.08)"
|
|
1210
|
-
},
|
|
1210
|
+
}, Jn = {
|
|
1211
1211
|
radiiXs: "4px",
|
|
1212
1212
|
radiiSm: "6px",
|
|
1213
1213
|
radiiMd: "8px",
|
|
1214
1214
|
radiiLg: "12px"
|
|
1215
|
-
},
|
|
1215
|
+
}, Zn = {
|
|
1216
1216
|
zIndexToolbar: `${Ve.textToolbar}`,
|
|
1217
1217
|
zIndexToolbarTooltip: `${Ve.textToolbarTooltip}`,
|
|
1218
1218
|
zIndexToolbarPopover: `${Ve.textToolbarPopover}`,
|
|
1219
1219
|
zIndexEditorPopover: `${Ve.editorOverlayPopover}`
|
|
1220
|
-
}, _s = 8, Ee = (e) => `${_s * e}px`,
|
|
1220
|
+
}, _s = 8, Ee = (e) => `${_s * e}px`, $n = {
|
|
1221
1221
|
spaceXxs: Ee(0.25),
|
|
1222
1222
|
spaceXs: Ee(0.5),
|
|
1223
1223
|
spaceSm: Ee(0.75),
|
|
@@ -1295,16 +1295,16 @@ var Fs = "_1suo8ub0", zn = (e, t, r) => {
|
|
|
1295
1295
|
}, ol = {
|
|
1296
1296
|
...el,
|
|
1297
1297
|
...tl,
|
|
1298
|
+
...qn,
|
|
1298
1299
|
...Jn,
|
|
1299
|
-
...Zn,
|
|
1300
|
-
..._n,
|
|
1301
1300
|
...$n,
|
|
1301
|
+
...Zn,
|
|
1302
1302
|
...rl,
|
|
1303
1303
|
...nl,
|
|
1304
|
-
...
|
|
1304
|
+
...Xn,
|
|
1305
|
+
...Kn,
|
|
1305
1306
|
...Yn,
|
|
1306
|
-
...jn
|
|
1307
|
-
...Xn
|
|
1307
|
+
...jn
|
|
1308
1308
|
}, il = {
|
|
1309
1309
|
transparent: "transparent",
|
|
1310
1310
|
white: "#FFFFFF",
|
|
@@ -1376,17 +1376,17 @@ var Fs = "_1suo8ub0", zn = (e, t, r) => {
|
|
|
1376
1376
|
}, dl = {
|
|
1377
1377
|
...il,
|
|
1378
1378
|
...al,
|
|
1379
|
+
...qn,
|
|
1379
1380
|
...Jn,
|
|
1380
|
-
...Zn,
|
|
1381
|
-
..._n,
|
|
1382
1381
|
...$n,
|
|
1382
|
+
...Zn,
|
|
1383
1383
|
...sl,
|
|
1384
1384
|
...ll,
|
|
1385
|
-
...
|
|
1385
|
+
...Xn,
|
|
1386
|
+
...Kn,
|
|
1386
1387
|
...Yn,
|
|
1387
|
-
...jn
|
|
1388
|
-
|
|
1389
|
-
}, ar = (e, t = {}) => {
|
|
1388
|
+
...jn
|
|
1389
|
+
}, or = (e, t = {}) => {
|
|
1390
1390
|
const r = {};
|
|
1391
1391
|
for (const [n, o] of Object.entries(t))
|
|
1392
1392
|
o != null && (r[n] = o);
|
|
@@ -1394,34 +1394,34 @@ var Fs = "_1suo8ub0", zn = (e, t, r) => {
|
|
|
1394
1394
|
...e === "dark" ? ol : dl,
|
|
1395
1395
|
...r
|
|
1396
1396
|
};
|
|
1397
|
-
},
|
|
1398
|
-
const n =
|
|
1397
|
+
}, _n = (e, t = {}, r) => {
|
|
1398
|
+
const n = or(e, t);
|
|
1399
1399
|
return {
|
|
1400
|
-
legendSwatchGap:
|
|
1401
|
-
headlineRowGap:
|
|
1400
|
+
legendSwatchGap: Lr(n.legendSwatchGap, 8),
|
|
1401
|
+
headlineRowGap: Lr(n.headlineRowGap, 2),
|
|
1402
1402
|
fonts: Zs(n, r)
|
|
1403
1403
|
};
|
|
1404
|
-
}, cl = Object.freeze(
|
|
1405
|
-
function
|
|
1404
|
+
}, cl = Object.freeze(_n("light"));
|
|
1405
|
+
function Lr(e, t) {
|
|
1406
1406
|
const r = e.trim();
|
|
1407
1407
|
if (!/^-?\d*\.?\d+(px)?$/.test(r)) return t;
|
|
1408
1408
|
const n = Number.parseFloat(r);
|
|
1409
1409
|
return Number.isFinite(n) ? n : t;
|
|
1410
1410
|
}
|
|
1411
|
-
var
|
|
1411
|
+
var eo = z(cl), ul = ({ metrics: e, children: t }) => /* @__PURE__ */ s(eo.Provider, {
|
|
1412
1412
|
value: e,
|
|
1413
1413
|
children: t
|
|
1414
|
-
}), Fe = () =>
|
|
1414
|
+
}), Fe = () => D(eo), L = () => {
|
|
1415
1415
|
const { colorScheme: e } = K(), t = I((r) => r.chrome);
|
|
1416
|
-
return y(() =>
|
|
1416
|
+
return y(() => dn({ colorScheme: e }).chromeReaders(t), [t, e]);
|
|
1417
1417
|
}, hl = (e) => {
|
|
1418
1418
|
const t = L();
|
|
1419
1419
|
return y(() => Qa(t, e), [t, e]);
|
|
1420
|
-
},
|
|
1421
|
-
const { colorScheme: n } = K(), o = I((i) => e === void 0 ? void 0 :
|
|
1420
|
+
}, Rt = (e, t, r) => {
|
|
1421
|
+
const { colorScheme: n } = K(), o = I((i) => e === void 0 ? void 0 : oa(i.layers, e));
|
|
1422
1422
|
return y(() => {
|
|
1423
1423
|
if (o === void 0) return {};
|
|
1424
|
-
const i =
|
|
1424
|
+
const i = Ra(o, t), a = Pn(dn({ colorScheme: n }).geomReaders(o), o, i, {
|
|
1425
1425
|
width: r,
|
|
1426
1426
|
height: r
|
|
1427
1427
|
});
|
|
@@ -1435,7 +1435,7 @@ var to = z(cl), ul = ({ metrics: e, children: t }) => /* @__PURE__ */ s(to.Provi
|
|
|
1435
1435
|
t,
|
|
1436
1436
|
r
|
|
1437
1437
|
]);
|
|
1438
|
-
}, gl = /\p{Emoji_Presentation}|\p{Emoji}\uFE0F/gu,
|
|
1438
|
+
}, gl = /\p{Emoji_Presentation}|\p{Emoji}\uFE0F/gu, to = "😀", vl = class ro {
|
|
1439
1439
|
constructor() {
|
|
1440
1440
|
this.emojiCorrections = /* @__PURE__ */ new Map(), this.currentFont = "";
|
|
1441
1441
|
const t = new OffscreenCanvas(1, 1).getContext("2d");
|
|
@@ -1443,10 +1443,10 @@ var to = z(cl), ul = ({ metrics: e, children: t }) => /* @__PURE__ */ s(to.Provi
|
|
|
1443
1443
|
this.ctx = t;
|
|
1444
1444
|
}
|
|
1445
1445
|
static async create() {
|
|
1446
|
-
return typeof document < "u" && "fonts" in document && await document.fonts.ready, new
|
|
1446
|
+
return typeof document < "u" && "fonts" in document && await document.fonts.ready, new ro();
|
|
1447
1447
|
}
|
|
1448
1448
|
measureText(t, r) {
|
|
1449
|
-
const n =
|
|
1449
|
+
const n = Ui(r);
|
|
1450
1450
|
this.setFont(n);
|
|
1451
1451
|
const { width: o, fontBoundingBoxAscent: i, fontBoundingBoxDescent: a } = this.ctx.measureText(t);
|
|
1452
1452
|
let l = o;
|
|
@@ -1469,7 +1469,7 @@ var to = z(cl), ul = ({ metrics: e, children: t }) => /* @__PURE__ */ s(to.Provi
|
|
|
1469
1469
|
const r = this.emojiCorrections.get(t);
|
|
1470
1470
|
if (r !== void 0) return r;
|
|
1471
1471
|
this.setFont(t);
|
|
1472
|
-
const n = this.ctx.measureText(
|
|
1472
|
+
const n = this.ctx.measureText(to).width, o = pl(t);
|
|
1473
1473
|
let i = 0;
|
|
1474
1474
|
if (o !== null) {
|
|
1475
1475
|
const a = n - o;
|
|
@@ -1483,9 +1483,9 @@ var to = z(cl), ul = ({ metrics: e, children: t }) => /* @__PURE__ */ s(to.Provi
|
|
|
1483
1483
|
}, pl = (e) => {
|
|
1484
1484
|
const t = ml();
|
|
1485
1485
|
return t ? (t.style.font = e, t.getBoundingClientRect().width) : null;
|
|
1486
|
-
}, ml = () => typeof document > "u" ? null : (ue || (ue = document.createElement("span"), ue.style.position = "absolute", ue.style.visibility = "hidden", ue.style.whiteSpace = "nowrap", ue.style.left = "-9999px", ue.textContent =
|
|
1486
|
+
}, ml = () => typeof document > "u" ? null : (ue || (ue = document.createElement("span"), ue.style.position = "absolute", ue.style.visibility = "hidden", ue.style.whiteSpace = "nowrap", ue.style.left = "-9999px", ue.textContent = to, document.body.appendChild(ue)), ue), no = z(null), Tr = 3e3, Al = ({ children: e, measurer: t }) => {
|
|
1487
1487
|
const [r, n] = V(null);
|
|
1488
|
-
|
|
1488
|
+
F(() => {
|
|
1489
1489
|
if (t !== void 0) return;
|
|
1490
1490
|
let i = !1;
|
|
1491
1491
|
const a = () => {
|
|
@@ -1496,8 +1496,8 @@ var to = z(cl), ul = ({ metrics: e, children: t }) => /* @__PURE__ */ s(to.Provi
|
|
|
1496
1496
|
return;
|
|
1497
1497
|
}
|
|
1498
1498
|
const l = setTimeout(() => {
|
|
1499
|
-
i || (console.warn(`[graphy] FONT_READY_TIMEOUT: document.fonts.ready has not settled in ${
|
|
1500
|
-
},
|
|
1499
|
+
i || (console.warn(`[graphy] FONT_READY_TIMEOUT: document.fonts.ready has not settled in ${Tr}ms; painting with the fonts available so far.`), a());
|
|
1500
|
+
}, Tr), d = () => {
|
|
1501
1501
|
clearTimeout(l), a();
|
|
1502
1502
|
};
|
|
1503
1503
|
return document.fonts.ready.then(d, d), document.fonts.addEventListener("loadingdone", d), () => {
|
|
@@ -1505,21 +1505,21 @@ var to = z(cl), ul = ({ metrics: e, children: t }) => /* @__PURE__ */ s(to.Provi
|
|
|
1505
1505
|
};
|
|
1506
1506
|
}, [t]);
|
|
1507
1507
|
const o = t ?? r;
|
|
1508
|
-
return o === null ? null : /* @__PURE__ */ s(
|
|
1508
|
+
return o === null ? null : /* @__PURE__ */ s(no.Provider, {
|
|
1509
1509
|
value: o,
|
|
1510
1510
|
children: e
|
|
1511
1511
|
});
|
|
1512
1512
|
}, Re = () => {
|
|
1513
|
-
const e =
|
|
1513
|
+
const e = D(no);
|
|
1514
1514
|
if (e === null) throw new Error("useTextMeasurer must be used inside a <TextMeasurerProvider>.");
|
|
1515
1515
|
return e;
|
|
1516
1516
|
}, yl = () => {
|
|
1517
1517
|
try {
|
|
1518
|
-
return new
|
|
1518
|
+
return new Sr(new vl());
|
|
1519
1519
|
} catch {
|
|
1520
|
-
return new
|
|
1520
|
+
return new Sr(new Ii());
|
|
1521
1521
|
}
|
|
1522
|
-
},
|
|
1522
|
+
}, oo = z(null), qf = oo.Provider, xl = null, me = () => D(oo) ?? (xl ??= yd()), bl = 11.7, Sl = 0.5, Nr = 21.6, wl = "0 0 10 18", Rl = "M2.48935 16.9323L9.07098 9.82964C9.51595 9.34944 9.51504 8.60728 9.0689 8.12818L2.48866 1.06172C1.85811 0.384586 0.974477 0 0.049217 0H0V18H0.0443689C0.972463 18 1.85854 17.6131 2.48935 16.9323Z", kl = "_16vokpr0", Cl = (e, t) => e.mapping.y !== void 0 != (t.mainAxis === "y"), El = (e, t) => {
|
|
1523
1523
|
const r = R(e ? 1 - t : t);
|
|
1524
1524
|
return e ? {
|
|
1525
1525
|
x1: "0%",
|
|
@@ -1533,25 +1533,25 @@ var to = z(cl), ul = ({ metrics: e, children: t }) => /* @__PURE__ */ s(to.Provi
|
|
|
1533
1533
|
y2: "100%"
|
|
1534
1534
|
};
|
|
1535
1535
|
}, Pl = (e, t) => {
|
|
1536
|
-
const r =
|
|
1536
|
+
const r = ha(e, t);
|
|
1537
1537
|
return r.length === 0 ? {} : {
|
|
1538
1538
|
strokeDasharray: r.join(" "),
|
|
1539
1539
|
strokeLinecap: "round",
|
|
1540
1540
|
...e === "dashed" ? { strokeMiterlimit: 16 } : {}
|
|
1541
1541
|
};
|
|
1542
|
-
}, Bl = (e, t) =>
|
|
1542
|
+
}, Bl = (e, t) => it(e) && it(t) ? `${e}: ${t}` : it(e) ? e : it(t) ? t : null, Il = (e) => e ? 14 : 0, Ml = (e, t) => e * Sl - Il(t) - 10, Ll = (e, t, r) => {
|
|
1543
1543
|
const n = e * r, o = -13 - n, i = r + 13 - n - t;
|
|
1544
1544
|
return i < o ? o : Math.min(Math.max(-t / 2, o), i);
|
|
1545
|
-
},
|
|
1546
|
-
value: e ??
|
|
1545
|
+
}, it = (e) => e != null && e.trim() !== "", io = Object.freeze({}), ir = z(io), Tl = ({ slots: e, children: t }) => /* @__PURE__ */ s(ir.Provider, {
|
|
1546
|
+
value: e ?? io,
|
|
1547
1547
|
children: t
|
|
1548
1548
|
});
|
|
1549
1549
|
function ae(e, t) {
|
|
1550
|
-
const r =
|
|
1550
|
+
const r = D(ir)[e];
|
|
1551
1551
|
return r === void 0 ? t : typeof r == "object" && Hl(r) ? r.render : r;
|
|
1552
1552
|
}
|
|
1553
1553
|
function Nl() {
|
|
1554
|
-
const e =
|
|
1554
|
+
const e = D(ir);
|
|
1555
1555
|
return {
|
|
1556
1556
|
measureAxis: e.AxisTicks?.measure,
|
|
1557
1557
|
measureAxisLabel: e.AxisLabel?.measure,
|
|
@@ -1563,7 +1563,7 @@ function Nl() {
|
|
|
1563
1563
|
function Hl(e) {
|
|
1564
1564
|
return "render" in e && "measure" in e;
|
|
1565
1565
|
}
|
|
1566
|
-
var Fl = "_2qyyu60", Dl = 2, Ol = 12, Wl = 12,
|
|
1566
|
+
var Fl = "_2qyyu60", Dl = 2, Ol = 12, Wl = 12, Hr = 1, Fr = 2, Gl = 4, Ze = (e) => /* @__PURE__ */ s(ae("Swatch", Ul), { ...e }), Ul = ({ shape: e, color: t, lineType: r = "solid", width: n = Ol, height: o = Wl, strokeWidth: i = Dl, alpha: a, cornerRadius: l }) => /* @__PURE__ */ s("svg", {
|
|
1567
1567
|
className: Fl,
|
|
1568
1568
|
width: n,
|
|
1569
1569
|
height: o,
|
|
@@ -1653,7 +1653,7 @@ var Fl = "_2qyyu60", Dl = 2, Ol = 12, Wl = 12, Dr = 1, Or = 2, Gl = 4, Ze = (e)
|
|
|
1653
1653
|
} : e === "dashed" ? {
|
|
1654
1654
|
x1: 0,
|
|
1655
1655
|
x2: t,
|
|
1656
|
-
dashArray: `${(t -
|
|
1656
|
+
dashArray: `${(t - Hr * (Fr - 1)) / Fr} ${Hr}`,
|
|
1657
1657
|
linecap: "butt"
|
|
1658
1658
|
} : {
|
|
1659
1659
|
x1: 0,
|
|
@@ -1676,7 +1676,7 @@ var Fl = "_2qyyu60", Dl = 2, Ol = 12, Wl = 12, Dr = 1, Or = 2, Gl = 4, Ze = (e)
|
|
|
1676
1676
|
fontWeight: e.fontWeight,
|
|
1677
1677
|
lineHeight: e.lineHeight,
|
|
1678
1678
|
color: e.textColor
|
|
1679
|
-
}), Jf = (e, t) =>
|
|
1679
|
+
}), Jf = (e, t) => er({
|
|
1680
1680
|
[e.fontFamily]: t.fontFamily ?? p.fontFamily,
|
|
1681
1681
|
[e.fontSize]: `${t.fontSize}px`,
|
|
1682
1682
|
[e.fontWeight]: String(t.fontWeight),
|
|
@@ -1699,9 +1699,9 @@ var Fl = "_2qyyu60", Dl = 2, Ol = 12, Wl = 12, Dr = 1, Or = 2, Gl = 4, Ze = (e)
|
|
|
1699
1699
|
transform: u,
|
|
1700
1700
|
children: /* @__PURE__ */ s("svg", {
|
|
1701
1701
|
x: c,
|
|
1702
|
-
y: (o -
|
|
1702
|
+
y: (o - Nr) / 2,
|
|
1703
1703
|
width: 12,
|
|
1704
|
-
height:
|
|
1704
|
+
height: Nr,
|
|
1705
1705
|
viewBox: wl,
|
|
1706
1706
|
overflow: "visible",
|
|
1707
1707
|
children: /* @__PURE__ */ s("path", {
|
|
@@ -1716,7 +1716,7 @@ var Fl = "_2qyyu60", Dl = 2, Ol = 12, Wl = 12, Dr = 1, Or = 2, Gl = 4, Ze = (e)
|
|
|
1716
1716
|
})
|
|
1717
1717
|
]
|
|
1718
1718
|
});
|
|
1719
|
-
return a ? /* @__PURE__ */ s(
|
|
1719
|
+
return a ? /* @__PURE__ */ s(G.svg, {
|
|
1720
1720
|
initial: !1,
|
|
1721
1721
|
transition: de,
|
|
1722
1722
|
x: h,
|
|
@@ -1745,7 +1745,7 @@ var Fl = "_2qyyu60", Dl = 2, Ol = 12, Wl = 12, Dr = 1, Or = 2, Gl = 4, Ze = (e)
|
|
|
1745
1745
|
children: a
|
|
1746
1746
|
})]
|
|
1747
1747
|
});
|
|
1748
|
-
return l ? /* @__PURE__ */ s(
|
|
1748
|
+
return l ? /* @__PURE__ */ s(G.svg, {
|
|
1749
1749
|
initial: !1,
|
|
1750
1750
|
transition: de,
|
|
1751
1751
|
y: h,
|
|
@@ -1798,7 +1798,7 @@ var Fl = "_2qyyu60", Dl = 2, Ol = 12, Wl = 12, Dr = 1, Or = 2, Gl = 4, Ze = (e)
|
|
|
1798
1798
|
});
|
|
1799
1799
|
}, jl = ({ strokeWidth: e, lineType: t, isHorizontalLine: r, position: n, lineColor: o, shouldAnimateTransitions: i }) => {
|
|
1800
1800
|
const a = El(r, n), l = Pl(t, e);
|
|
1801
|
-
return i ? /* @__PURE__ */ s(
|
|
1801
|
+
return i ? /* @__PURE__ */ s(G.line, {
|
|
1802
1802
|
initial: !1,
|
|
1803
1803
|
transition: de,
|
|
1804
1804
|
animate: {
|
|
@@ -1818,17 +1818,17 @@ var Fl = "_2qyyu60", Dl = 2, Ol = 12, Wl = 12, Dr = 1, Or = 2, Gl = 4, Ze = (e)
|
|
|
1818
1818
|
strokeWidth: e,
|
|
1819
1819
|
vectorEffect: "non-scaling-stroke"
|
|
1820
1820
|
});
|
|
1821
|
-
}, Xl =
|
|
1822
|
-
const a = Re(), l = me(), { guides: d, numberFormat: c, specLayers: u, colorScale: h } = I(
|
|
1823
|
-
guides:
|
|
1824
|
-
numberFormat:
|
|
1825
|
-
specLayers:
|
|
1826
|
-
colorScale:
|
|
1827
|
-
}))), g = y(() =>
|
|
1821
|
+
}, Xl = te(function({ layer: t, coordSystem: r, formattingLocale: n, shouldAnimateTransitions: o, panelWidth: i }) {
|
|
1822
|
+
const a = Re(), l = me(), { guides: d, numberFormat: c, specLayers: u, colorScale: h } = I(X((q) => ({
|
|
1823
|
+
guides: q.guides,
|
|
1824
|
+
numberFormat: q.config.numberFormat,
|
|
1825
|
+
specLayers: q.spec.layers,
|
|
1826
|
+
colorScale: q.scales.color
|
|
1827
|
+
}))), g = y(() => Oi(u, h).get(t.id) ?? null, [
|
|
1828
1828
|
u,
|
|
1829
1829
|
h,
|
|
1830
1830
|
t.id
|
|
1831
|
-
]), v = g ? l(g.geom, r.type)?.swatchShape ?? "square" : null, f =
|
|
1831
|
+
]), v = g ? l(g.geom, r.type)?.swatchShape ?? "square" : null, f = Rt(g?.layerId, g?.groupValue, 10), A = y(() => Bl(t.params.label, sa({
|
|
1832
1832
|
guides: d,
|
|
1833
1833
|
numberFormat: c,
|
|
1834
1834
|
layer: t,
|
|
@@ -1838,7 +1838,7 @@ var Fl = "_2qyyu60", Dl = 2, Ol = 12, Wl = 12, Dr = 1, Or = 2, Gl = 4, Ze = (e)
|
|
|
1838
1838
|
c,
|
|
1839
1839
|
n,
|
|
1840
1840
|
t
|
|
1841
|
-
]), { fonts: m } = Fe(), b = hl(t.id), x = y(() =>
|
|
1841
|
+
]), { fonts: m } = Fe(), b = hl(t.id), x = y(() => j(b, m.familyDefault), [b, m.familyDefault]), w = y(() => A === null ? null : Mn(A, Ml(i, v !== null), (q) => a.measureText(q, x).width), [
|
|
1842
1842
|
A,
|
|
1843
1843
|
i,
|
|
1844
1844
|
v,
|
|
@@ -1850,15 +1850,15 @@ var Fl = "_2qyyu60", Dl = 2, Ol = 12, Wl = 12, Dr = 1, Or = 2, Gl = 4, Ze = (e)
|
|
|
1850
1850
|
a
|
|
1851
1851
|
]), E = T(t), C = t.data.getFirst();
|
|
1852
1852
|
if (!C) return null;
|
|
1853
|
-
const N = E.get("color", C),
|
|
1854
|
-
return
|
|
1853
|
+
const N = E.get("color", C), H = b.textColor ?? mn(N), U = Cl(t, r), W = U ? se(C) : _(C);
|
|
1854
|
+
return W === null ? null : /* @__PURE__ */ S("g", {
|
|
1855
1855
|
"data-geom": "rule",
|
|
1856
1856
|
className: kl,
|
|
1857
1857
|
children: [/* @__PURE__ */ s(jl, {
|
|
1858
1858
|
strokeWidth: E.get("strokeWidth", C),
|
|
1859
1859
|
lineType: E.get("lineType", C),
|
|
1860
|
-
isHorizontalLine:
|
|
1861
|
-
position:
|
|
1860
|
+
isHorizontalLine: U,
|
|
1861
|
+
position: W,
|
|
1862
1862
|
lineColor: N,
|
|
1863
1863
|
shouldAnimateTransitions: o
|
|
1864
1864
|
}), w !== null && w !== "" && /* @__PURE__ */ s(Yl, {
|
|
@@ -1866,10 +1866,10 @@ var Fl = "_2qyyu60", Dl = 2, Ol = 12, Wl = 12, Dr = 1, Or = 2, Gl = 4, Ze = (e)
|
|
|
1866
1866
|
textStyle: b,
|
|
1867
1867
|
textWidth: k,
|
|
1868
1868
|
labelPosition: t.params.labelPosition,
|
|
1869
|
-
isHorizontalLine:
|
|
1870
|
-
position:
|
|
1869
|
+
isHorizontalLine: U,
|
|
1870
|
+
position: W,
|
|
1871
1871
|
color: N,
|
|
1872
|
-
textColor:
|
|
1872
|
+
textColor: H,
|
|
1873
1873
|
symbolShape: v,
|
|
1874
1874
|
symbolColor: g?.color ?? null,
|
|
1875
1875
|
symbolAlpha: f.alpha,
|
|
@@ -1890,12 +1890,12 @@ var Fl = "_2qyyu60", Dl = 2, Ol = 12, Wl = 12, Dr = 1, Or = 2, Gl = 4, Ze = (e)
|
|
|
1890
1890
|
}),
|
|
1891
1891
|
renderHover: () => null,
|
|
1892
1892
|
renderHoverCompanions: () => null
|
|
1893
|
-
}, Jl =
|
|
1893
|
+
}, Jl = te(function({ layer: t, shouldAnimateTransitions: r, intro: n }) {
|
|
1894
1894
|
const o = n?.type === "fade" ? n : null, i = T(t), a = y(() => {
|
|
1895
|
-
const l =
|
|
1895
|
+
const l = ta(t.data, t.mapping, t.id), d = [];
|
|
1896
1896
|
for (const c of t.data) {
|
|
1897
|
-
const u =
|
|
1898
|
-
u &&
|
|
1897
|
+
const u = gn(c);
|
|
1898
|
+
u && hn(c) && d.push({
|
|
1899
1899
|
key: l(c),
|
|
1900
1900
|
...u,
|
|
1901
1901
|
fill: i.get("color", c),
|
|
@@ -1914,13 +1914,13 @@ var Fl = "_2qyyu60", Dl = 2, Ol = 12, Wl = 12, Dr = 1, Or = 2, Gl = 4, Ze = (e)
|
|
|
1914
1914
|
i,
|
|
1915
1915
|
r
|
|
1916
1916
|
]);
|
|
1917
|
-
return o ? /* @__PURE__ */ s(
|
|
1917
|
+
return o ? /* @__PURE__ */ s(G.g, {
|
|
1918
1918
|
initial: { opacity: 0 },
|
|
1919
1919
|
animate: { opacity: 1 },
|
|
1920
1920
|
transition: fs(o),
|
|
1921
1921
|
children: a
|
|
1922
1922
|
}) : a;
|
|
1923
|
-
}), Zl = ({ isAnimated: e, ...t }) => e ? /* @__PURE__ */ s(
|
|
1923
|
+
}), Zl = ({ isAnimated: e, ...t }) => e ? /* @__PURE__ */ s(G.rect, {
|
|
1924
1924
|
initial: !1,
|
|
1925
1925
|
style: { transformBox: "view-box" },
|
|
1926
1926
|
transition: de,
|
|
@@ -1947,9 +1947,9 @@ var Fl = "_2qyyu60", Dl = 2, Ol = 12, Wl = 12, Dr = 1, Or = 2, Gl = 4, Ze = (e)
|
|
|
1947
1947
|
stroke: t.borderColor,
|
|
1948
1948
|
strokeWidth: t.borderWidth
|
|
1949
1949
|
}), $l = ({ layer: e, primary: t, panelRect: r }) => {
|
|
1950
|
-
const n = T(e), o =
|
|
1951
|
-
if (!o || !
|
|
1952
|
-
const i = n.get("color", t.observation), a = n.get("alpha", t.observation), l = n.get("borderColor", t.observation, "hovered") ??
|
|
1950
|
+
const n = T(e), o = gn(t.observation);
|
|
1951
|
+
if (!o || !hn(t.observation)) return null;
|
|
1952
|
+
const i = n.get("color", t.observation), a = n.get("alpha", t.observation), l = n.get("borderColor", t.observation, "hovered") ?? mt, d = n.get("borderWidth", t.observation, "hovered"), c = n.get("borderRadius", t.observation, "hovered"), u = o.x * r.width, h = o.y * r.height, g = o.width * r.width, v = o.height * r.height;
|
|
1953
1953
|
return /* @__PURE__ */ S("g", {
|
|
1954
1954
|
"data-testid": "hovered-tile",
|
|
1955
1955
|
children: [/* @__PURE__ */ s("rect", {
|
|
@@ -1987,7 +1987,7 @@ var Fl = "_2qyyu60", Dl = 2, Ol = 12, Wl = 12, Dr = 1, Or = 2, Gl = 4, Ze = (e)
|
|
|
1987
1987
|
panelRect: r
|
|
1988
1988
|
}),
|
|
1989
1989
|
renderHoverCompanions: () => null
|
|
1990
|
-
},
|
|
1990
|
+
}, vt = ({ primary: e, companions: t }) => {
|
|
1991
1991
|
const r = /* @__PURE__ */ S(B, { children: [t.map((n) => /* @__PURE__ */ s(xe, {
|
|
1992
1992
|
hit: n,
|
|
1993
1993
|
project: le
|
|
@@ -1999,16 +1999,16 @@ var Fl = "_2qyyu60", Dl = 2, Ol = 12, Wl = 12, Dr = 1, Or = 2, Gl = 4, Ze = (e)
|
|
|
1999
1999
|
"data-testid": "hovered-point",
|
|
2000
2000
|
children: r
|
|
2001
2001
|
}) : r;
|
|
2002
|
-
},
|
|
2002
|
+
}, Kt = (e) => {
|
|
2003
2003
|
const [t, ...r] = e;
|
|
2004
2004
|
if (!t) return "";
|
|
2005
2005
|
const n = r.map((o) => `L ${o.x} ${o.y}`).join(" ");
|
|
2006
2006
|
return `M ${t.x} ${t.y} ${n} Z`;
|
|
2007
|
-
}, ed =
|
|
2007
|
+
}, ed = te(function({ layer: t }) {
|
|
2008
2008
|
const r = T(t), n = y(() => {
|
|
2009
2009
|
const o = ce(t.data, t.mapping, t.id), i = [];
|
|
2010
2010
|
return t.data.groupBy(pe.group).forEach((a) => {
|
|
2011
|
-
const l = [...a], d =
|
|
2011
|
+
const l = [...a], d = ao(l);
|
|
2012
2012
|
if (!d) return;
|
|
2013
2013
|
const c = l[0];
|
|
2014
2014
|
c && i.push({
|
|
@@ -2033,7 +2033,7 @@ var Fl = "_2qyyu60", Dl = 2, Ol = 12, Wl = 12, Dr = 1, Or = 2, Gl = 4, Ze = (e)
|
|
|
2033
2033
|
width: "100%",
|
|
2034
2034
|
height: "100%",
|
|
2035
2035
|
"data-geom": "area",
|
|
2036
|
-
className:
|
|
2036
|
+
className: re,
|
|
2037
2037
|
children: n.map((o) => /* @__PURE__ */ S("g", { children: [/* @__PURE__ */ s("path", {
|
|
2038
2038
|
d: o.fillPath,
|
|
2039
2039
|
fill: o.color,
|
|
@@ -2048,25 +2048,25 @@ var Fl = "_2qyyu60", Dl = 2, Ol = 12, Wl = 12, Dr = 1, Or = 2, Gl = 4, Ze = (e)
|
|
|
2048
2048
|
vectorEffect: "non-scaling-stroke"
|
|
2049
2049
|
})] }, o.key))
|
|
2050
2050
|
});
|
|
2051
|
-
}),
|
|
2051
|
+
}), ao = (e) => {
|
|
2052
2052
|
const t = [];
|
|
2053
2053
|
for (const i of e) {
|
|
2054
|
-
const a =
|
|
2054
|
+
const a = _(i), { innerRadius: l, outerRadius: d } = xt(i);
|
|
2055
2055
|
a === null || l === null || d === null || t.push({
|
|
2056
2056
|
angle: a,
|
|
2057
|
-
outer:
|
|
2058
|
-
inner:
|
|
2057
|
+
outer: ee(a, d),
|
|
2058
|
+
inner: ee(a, l)
|
|
2059
2059
|
});
|
|
2060
2060
|
}
|
|
2061
2061
|
if (t.length === 0) return null;
|
|
2062
2062
|
t.sort((i, a) => i.angle - a.angle);
|
|
2063
|
-
const r = t.map((i) => i.outer), n = t.map((i) => i.inner), o =
|
|
2063
|
+
const r = t.map((i) => i.outer), n = t.map((i) => i.inner), o = Kt(r);
|
|
2064
2064
|
return {
|
|
2065
|
-
fillPath: n.some((i) => i.x !== 0 || i.y !== 0) ? `${o} ${
|
|
2065
|
+
fillPath: n.some((i) => i.x !== 0 || i.y !== 0) ? `${o} ${Kt([...n].reverse())}` : o,
|
|
2066
2066
|
outlinePath: o
|
|
2067
2067
|
};
|
|
2068
2068
|
}, td = ({ layer: e, primary: t, companions: r }) => {
|
|
2069
|
-
const n = T(e), o =
|
|
2069
|
+
const n = T(e), o = yt(t.observation), i = y(() => ao([...e.data.filter(pe.group, "eq", o)]), [e.data, o]);
|
|
2070
2070
|
if (!i) return null;
|
|
2071
2071
|
const a = n.get("color", t.observation), l = n.get("alpha", t.observation), d = n.get("strokeAlpha", t.observation), c = n.get("strokeWidth", t.observation);
|
|
2072
2072
|
return /* @__PURE__ */ S(B, { children: [
|
|
@@ -2077,7 +2077,7 @@ var Fl = "_2qyyu60", Dl = 2, Ol = 12, Wl = 12, Dr = 1, Or = 2, Gl = 4, Ze = (e)
|
|
|
2077
2077
|
height: "100%",
|
|
2078
2078
|
"data-geom": "area",
|
|
2079
2079
|
"data-testid": "hovered-area",
|
|
2080
|
-
className:
|
|
2080
|
+
className: re,
|
|
2081
2081
|
children: [/* @__PURE__ */ s("path", {
|
|
2082
2082
|
d: i.fillPath,
|
|
2083
2083
|
fill: a,
|
|
@@ -2115,9 +2115,9 @@ var Fl = "_2qyyu60", Dl = 2, Ol = 12, Wl = 12, Dr = 1, Or = 2, Gl = 4, Ze = (e)
|
|
|
2115
2115
|
primary: t,
|
|
2116
2116
|
companions: [...r, ...n]
|
|
2117
2117
|
}),
|
|
2118
|
-
renderHoverCompanions: ({ related: e }) => /* @__PURE__ */ s(
|
|
2118
|
+
renderHoverCompanions: ({ related: e }) => /* @__PURE__ */ s(vt, { companions: e }),
|
|
2119
2119
|
getOverlayAnchor: ({ observation: e }) => {
|
|
2120
|
-
const t =
|
|
2120
|
+
const t = _(e), r = vn(e) ?? se(e);
|
|
2121
2121
|
if (t === null || r === null) return null;
|
|
2122
2122
|
const { x: n, y: o } = le(t, r);
|
|
2123
2123
|
return {
|
|
@@ -2129,11 +2129,11 @@ var Fl = "_2qyyu60", Dl = 2, Ol = 12, Wl = 12, Dr = 1, Or = 2, Gl = 4, Ze = (e)
|
|
|
2129
2129
|
stroke: e,
|
|
2130
2130
|
strokeWidth: t,
|
|
2131
2131
|
vectorEffect: "non-scaling-stroke"
|
|
2132
|
-
}), nd =
|
|
2133
|
-
const i = Q(), a =
|
|
2132
|
+
}), nd = te(function({ layer: t, coordSystem: r, shouldAnimateTransitions: n, intro: o }) {
|
|
2133
|
+
const i = Q(), a = St(o?.type === "grow" && (o.growAxis === "angle" || o.growAxis === "radius") ? o : null, n), l = r.bandAxis !== "x", d = T(t), c = y(() => {
|
|
2134
2134
|
const u = ce(t.data, t.mapping, t.id), h = /* @__PURE__ */ new Map();
|
|
2135
2135
|
for (const g of t.data) {
|
|
2136
|
-
const v = u(g), { startAngle: f, endAngle: A } =
|
|
2136
|
+
const v = u(g), { startAngle: f, endAngle: A } = Jt(g), { innerRadius: m, outerRadius: b } = xt(g);
|
|
2137
2137
|
if (f === null || A === null || m === null || b === null) continue;
|
|
2138
2138
|
const x = {
|
|
2139
2139
|
key: v,
|
|
@@ -2143,7 +2143,7 @@ var Fl = "_2qyyu60", Dl = 2, Ol = 12, Wl = 12, Dr = 1, Or = 2, Gl = 4, Ze = (e)
|
|
|
2143
2143
|
outerRadius: b,
|
|
2144
2144
|
fill: d.get("color", g),
|
|
2145
2145
|
opacity: d.get("alpha", g)
|
|
2146
|
-
}, w =
|
|
2146
|
+
}, w = qt(r.bandAxis, x), k = h.get(w);
|
|
2147
2147
|
k ? k.items.push(x) : h.set(w, {
|
|
2148
2148
|
items: [x],
|
|
2149
2149
|
style: He(d, g)
|
|
@@ -2152,7 +2152,7 @@ var Fl = "_2qyyu60", Dl = 2, Ol = 12, Wl = 12, Dr = 1, Or = 2, Gl = 4, Ze = (e)
|
|
|
2152
2152
|
return [...h.values()].map(({ items: g, style: v }, f) => ({
|
|
2153
2153
|
key: g[0]?.key ?? String(f),
|
|
2154
2154
|
items: g,
|
|
2155
|
-
union:
|
|
2155
|
+
union: pa(g),
|
|
2156
2156
|
style: v
|
|
2157
2157
|
}));
|
|
2158
2158
|
}, [
|
|
@@ -2168,28 +2168,28 @@ var Fl = "_2qyyu60", Dl = 2, Ol = 12, Wl = 12, Dr = 1, Or = 2, Gl = 4, Ze = (e)
|
|
|
2168
2168
|
width: "100%",
|
|
2169
2169
|
height: "100%",
|
|
2170
2170
|
"data-geom": "bar",
|
|
2171
|
-
className:
|
|
2171
|
+
className: re,
|
|
2172
2172
|
children: c.map((u, h) => {
|
|
2173
|
-
const { borderColor: g, borderWidth: v, borderRadius: f, borderAlpha: A } = u.style, m = g !== void 0, b = qe(v), x = g === void 0 ? {} : ze(g, b.separatorWidth), w = g === void 0 ? void 0 : ze(g, b.outlineWidth), k = u.items.map((
|
|
2174
|
-
const { key:
|
|
2173
|
+
const { borderColor: g, borderWidth: v, borderRadius: f, borderAlpha: A } = u.style, m = g !== void 0, b = qe(v), x = g === void 0 ? {} : ze(g, b.separatorWidth), w = g === void 0 ? void 0 : ze(g, b.outlineWidth), k = u.items.map((H) => {
|
|
2174
|
+
const { key: U, ...W } = H;
|
|
2175
2175
|
return a.isAnimated ? /* @__PURE__ */ s(od, {
|
|
2176
|
-
...
|
|
2176
|
+
...W,
|
|
2177
2177
|
animation: a,
|
|
2178
2178
|
sweepsInOnLateMount: l,
|
|
2179
|
-
introKey:
|
|
2179
|
+
introKey: U,
|
|
2180
2180
|
pathProps: {
|
|
2181
|
-
fill:
|
|
2182
|
-
opacity:
|
|
2181
|
+
fill: W.fill,
|
|
2182
|
+
opacity: W.opacity,
|
|
2183
2183
|
...x
|
|
2184
2184
|
}
|
|
2185
|
-
},
|
|
2186
|
-
d: Se(
|
|
2187
|
-
fill:
|
|
2188
|
-
opacity:
|
|
2185
|
+
}, U) : /* @__PURE__ */ s("path", {
|
|
2186
|
+
d: Se(W) ?? void 0,
|
|
2187
|
+
fill: W.fill,
|
|
2188
|
+
opacity: W.opacity,
|
|
2189
2189
|
...x
|
|
2190
|
-
},
|
|
2191
|
-
}), E =
|
|
2192
|
-
if (!m && E <= 0) return /* @__PURE__ */ s(
|
|
2190
|
+
}, U);
|
|
2191
|
+
}), E = Cn(f, u.union.outerRadius - u.union.innerRadius);
|
|
2192
|
+
if (!m && E <= 0) return /* @__PURE__ */ s(_t, { children: k }, u.key);
|
|
2193
2193
|
const C = `${i}${h}`;
|
|
2194
2194
|
if (a.isAnimated) return /* @__PURE__ */ s("g", {
|
|
2195
2195
|
clipPath: `url(#${C})`,
|
|
@@ -2227,18 +2227,18 @@ var Fl = "_2qyyu60", Dl = 2, Ol = 12, Wl = 12, Dr = 1, Or = 2, Gl = 4, Ze = (e)
|
|
|
2227
2227
|
}, u.key);
|
|
2228
2228
|
})
|
|
2229
2229
|
});
|
|
2230
|
-
}),
|
|
2231
|
-
const d = i.activeIntro?.growAxis === "angle" ? i.activeIntro : null, c = i.activeIntro?.growAxis === "radius" ? i.activeIntro : null, u = a && !i.isLayerEntrance, h = d?.baseline ?? (u ?
|
|
2230
|
+
}), so = ({ startAngle: e, endAngle: t, innerRadius: r, outerRadius: n, cornerRadius: o, animation: i, sweepsInOnLateMount: a, introKey: l }) => {
|
|
2231
|
+
const d = i.activeIntro?.growAxis === "angle" ? i.activeIntro : null, c = i.activeIntro?.growAxis === "radius" ? i.activeIntro : null, u = a && !i.isLayerEntrance, h = d?.baseline ?? (u ? wr : e), g = d?.baseline ?? (u ? wr : t), v = c ? c.baseline : r, f = c ? c.baseline : n, A = ie(h), m = ie(g), b = ie(v), x = ie(f), w = ie(Se({
|
|
2232
2232
|
startAngle: h,
|
|
2233
2233
|
endAngle: g,
|
|
2234
2234
|
innerRadius: v,
|
|
2235
2235
|
outerRadius: f,
|
|
2236
2236
|
cornerRadius: o
|
|
2237
|
-
}) ?? ""), k =
|
|
2238
|
-
|
|
2237
|
+
}) ?? ""), k = Qt(i, l, d);
|
|
2238
|
+
F(() => {
|
|
2239
2239
|
const C = k(), N = [he(A, e, C), he(m, t, C)];
|
|
2240
2240
|
return () => {
|
|
2241
|
-
for (const
|
|
2241
|
+
for (const H of N) H.stop();
|
|
2242
2242
|
};
|
|
2243
2243
|
}, [
|
|
2244
2244
|
A,
|
|
@@ -2247,11 +2247,11 @@ var Fl = "_2qyyu60", Dl = 2, Ol = 12, Wl = 12, Dr = 1, Or = 2, Gl = 4, Ze = (e)
|
|
|
2247
2247
|
t,
|
|
2248
2248
|
k
|
|
2249
2249
|
]);
|
|
2250
|
-
const E =
|
|
2251
|
-
return
|
|
2250
|
+
const E = Qt(i, l, c);
|
|
2251
|
+
return F(() => {
|
|
2252
2252
|
const C = E(), N = [he(b, r, C), he(x, n, C)];
|
|
2253
2253
|
return () => {
|
|
2254
|
-
for (const
|
|
2254
|
+
for (const H of N) H.stop();
|
|
2255
2255
|
};
|
|
2256
2256
|
}, [
|
|
2257
2257
|
b,
|
|
@@ -2259,7 +2259,7 @@ var Fl = "_2qyyu60", Dl = 2, Ol = 12, Wl = 12, Dr = 1, Or = 2, Gl = 4, Ze = (e)
|
|
|
2259
2259
|
r,
|
|
2260
2260
|
n,
|
|
2261
2261
|
E
|
|
2262
|
-
]),
|
|
2262
|
+
]), F(() => {
|
|
2263
2263
|
const C = () => {
|
|
2264
2264
|
w.set(Se({
|
|
2265
2265
|
startAngle: A.get(),
|
|
@@ -2275,9 +2275,9 @@ var Fl = "_2qyyu60", Dl = 2, Ol = 12, Wl = 12, Dr = 1, Or = 2, Gl = 4, Ze = (e)
|
|
|
2275
2275
|
m,
|
|
2276
2276
|
b,
|
|
2277
2277
|
x
|
|
2278
|
-
].map((
|
|
2278
|
+
].map((H) => H.on("change", C));
|
|
2279
2279
|
return () => {
|
|
2280
|
-
for (const
|
|
2280
|
+
for (const H of N) H();
|
|
2281
2281
|
};
|
|
2282
2282
|
}, [
|
|
2283
2283
|
A,
|
|
@@ -2288,21 +2288,21 @@ var Fl = "_2qyyu60", Dl = 2, Ol = 12, Wl = 12, Dr = 1, Or = 2, Gl = 4, Ze = (e)
|
|
|
2288
2288
|
w
|
|
2289
2289
|
]), w;
|
|
2290
2290
|
}, od = ({ pathProps: e, ...t }) => {
|
|
2291
|
-
const r =
|
|
2292
|
-
return /* @__PURE__ */ s(
|
|
2291
|
+
const r = so(t);
|
|
2292
|
+
return /* @__PURE__ */ s(G.path, {
|
|
2293
2293
|
d: r,
|
|
2294
2294
|
transition: de,
|
|
2295
2295
|
...e
|
|
2296
2296
|
});
|
|
2297
2297
|
}, id = ({ clipId: e, outlineProps: t, outlineOpacity: r, children: n, ...o }) => {
|
|
2298
|
-
const i =
|
|
2298
|
+
const i = so(o);
|
|
2299
2299
|
return /* @__PURE__ */ S(B, { children: [
|
|
2300
2300
|
/* @__PURE__ */ s("clipPath", {
|
|
2301
2301
|
id: e,
|
|
2302
|
-
children: /* @__PURE__ */ s(
|
|
2302
|
+
children: /* @__PURE__ */ s(G.path, { d: i })
|
|
2303
2303
|
}),
|
|
2304
2304
|
n,
|
|
2305
|
-
t !== void 0 && /* @__PURE__ */ s(
|
|
2305
|
+
t !== void 0 && /* @__PURE__ */ s(G.path, {
|
|
2306
2306
|
d: i,
|
|
2307
2307
|
fill: "none",
|
|
2308
2308
|
opacity: r,
|
|
@@ -2323,12 +2323,12 @@ var Fl = "_2qyyu60", Dl = 2, Ol = 12, Wl = 12, Dr = 1, Or = 2, Gl = 4, Ze = (e)
|
|
|
2323
2323
|
startSpoke: r,
|
|
2324
2324
|
endSpoke: n
|
|
2325
2325
|
};
|
|
2326
|
-
},
|
|
2326
|
+
}, lo = (e, t, r) => {
|
|
2327
2327
|
const n = /* @__PURE__ */ new Map();
|
|
2328
2328
|
for (const i of e.data) {
|
|
2329
|
-
const a =
|
|
2329
|
+
const a = ho(i);
|
|
2330
2330
|
if (a === null) continue;
|
|
2331
|
-
const l =
|
|
2331
|
+
const l = qt(t, a), d = n.get(l);
|
|
2332
2332
|
d === void 0 ? n.set(l, {
|
|
2333
2333
|
firstObservation: i,
|
|
2334
2334
|
innerRadius: a.innerRadius,
|
|
@@ -2341,14 +2341,14 @@ var Fl = "_2qyyu60", Dl = 2, Ol = 12, Wl = 12, Dr = 1, Or = 2, Gl = 4, Ze = (e)
|
|
|
2341
2341
|
radialSpan: d - l
|
|
2342
2342
|
});
|
|
2343
2343
|
return o;
|
|
2344
|
-
},
|
|
2345
|
-
const o =
|
|
2344
|
+
}, co = (e, t, r, n) => {
|
|
2345
|
+
const o = ho(n), i = o === null ? void 0 : e.get(qt(t, o));
|
|
2346
2346
|
return i !== void 0 ? i : {
|
|
2347
2347
|
style: He(r, n),
|
|
2348
2348
|
radialSpan: o === null ? 0 : o.outerRadius - o.innerRadius
|
|
2349
2349
|
};
|
|
2350
|
-
},
|
|
2351
|
-
const o = Q(), i = Q(), { startAngle: a, endAngle: l } =
|
|
2350
|
+
}, uo = ({ observation: e, bandAxis: t, styleReaders: r, group: n }) => {
|
|
2351
|
+
const o = Q(), i = Q(), { startAngle: a, endAngle: l } = Jt(e), { innerRadius: d, outerRadius: c } = xt(e);
|
|
2352
2352
|
if (a === null || l === null || d === null || c === null) return null;
|
|
2353
2353
|
const u = {
|
|
2354
2354
|
startAngle: a,
|
|
@@ -2357,20 +2357,20 @@ var Fl = "_2qyyu60", Dl = 2, Ol = 12, Wl = 12, Dr = 1, Or = 2, Gl = 4, Ze = (e)
|
|
|
2357
2357
|
outerRadius: c
|
|
2358
2358
|
}, h = Se(u);
|
|
2359
2359
|
if (h === void 0) return null;
|
|
2360
|
-
const g = r.get("color", e), v = r.get("alpha", e), { borderColor: f, borderWidth: A, borderRadius: m, borderAlpha: b } = n.style, x =
|
|
2360
|
+
const g = r.get("color", e), v = r.get("alpha", e), { borderColor: f, borderWidth: A, borderRadius: m, borderAlpha: b } = n.style, x = Cn(m, n.radialSpan), w = x > 0;
|
|
2361
2361
|
if (f === void 0 && !w) return /* @__PURE__ */ s("path", {
|
|
2362
2362
|
d: h,
|
|
2363
2363
|
fill: g,
|
|
2364
2364
|
opacity: v,
|
|
2365
2365
|
"data-testid": "arc-segment"
|
|
2366
2366
|
});
|
|
2367
|
-
const k = ad(
|
|
2367
|
+
const k = ad(fa(e), t), E = w ? Se({
|
|
2368
2368
|
...ld(u, k, x),
|
|
2369
2369
|
cornerRadius: x
|
|
2370
2370
|
}) ?? h : h, C = f === void 0 ? null : {
|
|
2371
2371
|
color: f,
|
|
2372
2372
|
...qe(A)
|
|
2373
|
-
}, N = C === null ? "" :
|
|
2373
|
+
}, N = C === null ? "" : Wr(u, dd(k));
|
|
2374
2374
|
return /* @__PURE__ */ S("g", {
|
|
2375
2375
|
clipPath: `url(#${o})`,
|
|
2376
2376
|
"data-testid": "arc-segment",
|
|
@@ -2402,7 +2402,7 @@ var Fl = "_2qyyu60", Dl = 2, Ol = 12, Wl = 12, Dr = 1, Or = 2, Gl = 4, Ze = (e)
|
|
|
2402
2402
|
...ze(C.color, C.outlineWidth)
|
|
2403
2403
|
})]
|
|
2404
2404
|
}) : /* @__PURE__ */ s("path", {
|
|
2405
|
-
d:
|
|
2405
|
+
d: Wr(u, k),
|
|
2406
2406
|
fill: "none",
|
|
2407
2407
|
opacity: b,
|
|
2408
2408
|
...ze(C.color, C.outlineWidth)
|
|
@@ -2410,16 +2410,16 @@ var Fl = "_2qyyu60", Dl = 2, Ol = 12, Wl = 12, Dr = 1, Or = 2, Gl = 4, Ze = (e)
|
|
|
2410
2410
|
]
|
|
2411
2411
|
});
|
|
2412
2412
|
}, sd = ({ layer: e, sourceLayer: t, coordSystem: r }) => {
|
|
2413
|
-
const n = T(t), o = y(() =>
|
|
2413
|
+
const n = T(t), o = y(() => lo(t, r.bandAxis, n), [
|
|
2414
2414
|
t,
|
|
2415
2415
|
r.bandAxis,
|
|
2416
2416
|
n
|
|
2417
2417
|
]), i = ce(e.data, e.mapping, e.id), a = [];
|
|
2418
|
-
for (const l of e.data) a.push(/* @__PURE__ */ s(
|
|
2418
|
+
for (const l of e.data) a.push(/* @__PURE__ */ s(uo, {
|
|
2419
2419
|
observation: l,
|
|
2420
2420
|
bandAxis: r.bandAxis,
|
|
2421
2421
|
styleReaders: n,
|
|
2422
|
-
group:
|
|
2422
|
+
group: co(o, r.bandAxis, n, l)
|
|
2423
2423
|
}, i(l)));
|
|
2424
2424
|
return /* @__PURE__ */ s("svg", {
|
|
2425
2425
|
viewBox: "-1 -1 2 2",
|
|
@@ -2427,7 +2427,7 @@ var Fl = "_2qyyu60", Dl = 2, Ol = 12, Wl = 12, Dr = 1, Or = 2, Gl = 4, Ze = (e)
|
|
|
2427
2427
|
width: "100%",
|
|
2428
2428
|
height: "100%",
|
|
2429
2429
|
"data-geom": "bar",
|
|
2430
|
-
className:
|
|
2430
|
+
className: re,
|
|
2431
2431
|
children: a
|
|
2432
2432
|
});
|
|
2433
2433
|
}, ld = (e, t, r) => {
|
|
@@ -2440,8 +2440,8 @@ var Fl = "_2qyyu60", Dl = 2, Ol = 12, Wl = 12, Dr = 1, Or = 2, Gl = 4, Ze = (e)
|
|
|
2440
2440
|
innerRadius: i,
|
|
2441
2441
|
outerRadius: a
|
|
2442
2442
|
};
|
|
2443
|
-
},
|
|
2444
|
-
const { startAngle: t, endAngle: r } =
|
|
2443
|
+
}, ho = (e) => {
|
|
2444
|
+
const { startAngle: t, endAngle: r } = Jt(e), { innerRadius: n, outerRadius: o } = xt(e);
|
|
2445
2445
|
return t === null || r === null || n === null || o === null ? null : {
|
|
2446
2446
|
startAngle: t,
|
|
2447
2447
|
endAngle: r,
|
|
@@ -2449,21 +2449,21 @@ var Fl = "_2qyyu60", Dl = 2, Ol = 12, Wl = 12, Dr = 1, Or = 2, Gl = 4, Ze = (e)
|
|
|
2449
2449
|
outerRadius: o
|
|
2450
2450
|
};
|
|
2451
2451
|
}, Qe = (e, t) => {
|
|
2452
|
-
const r =
|
|
2452
|
+
const r = ee(t, e);
|
|
2453
2453
|
return `${r.x},${r.y}`;
|
|
2454
|
-
},
|
|
2454
|
+
}, Dr = (e, t, r) => {
|
|
2455
2455
|
if (e <= 0) return "";
|
|
2456
2456
|
const n = Qe(e, t);
|
|
2457
|
-
if (
|
|
2457
|
+
if (pn(t, r)) return `M${n}A${e},${e} 0 1 1 ${Qe(e, t + Math.PI)}A${e},${e} 0 1 1 ${n}`;
|
|
2458
2458
|
const o = r - t;
|
|
2459
2459
|
return `M${n}A${e},${e} 0 ${Math.abs(o) > Math.PI ? 1 : 0} ${o >= 0 ? 1 : 0} ${Qe(e, r)}`;
|
|
2460
|
-
},
|
|
2461
|
-
const { startAngle: r, endAngle: n, innerRadius: o, outerRadius: i } = e, a =
|
|
2460
|
+
}, Or = (e, t, r) => `M${Qe(t, e)}L${Qe(r, e)}`, Wr = (e, t) => {
|
|
2461
|
+
const { startAngle: r, endAngle: n, innerRadius: o, outerRadius: i } = e, a = pn(r, n);
|
|
2462
2462
|
return [
|
|
2463
|
-
t.innerArc ?
|
|
2464
|
-
t.outerArc ?
|
|
2465
|
-
t.startSpoke && !a ?
|
|
2466
|
-
t.endSpoke && !a ?
|
|
2463
|
+
t.innerArc ? Dr(o, r, n) : "",
|
|
2464
|
+
t.outerArc ? Dr(i, r, n) : "",
|
|
2465
|
+
t.startSpoke && !a ? Or(r, o, i) : "",
|
|
2466
|
+
t.endSpoke && !a ? Or(n, o, i) : ""
|
|
2467
2467
|
].filter(Boolean).join("");
|
|
2468
2468
|
}, dd = (e) => ({
|
|
2469
2469
|
innerArc: !e.innerArc,
|
|
@@ -2471,7 +2471,7 @@ var Fl = "_2qyyu60", Dl = 2, Ol = 12, Wl = 12, Dr = 1, Or = 2, Gl = 4, Ze = (e)
|
|
|
2471
2471
|
startSpoke: !e.startSpoke,
|
|
2472
2472
|
endSpoke: !e.endSpoke
|
|
2473
2473
|
}), cd = ({ layer: e, coordSystem: t, primary: r }) => {
|
|
2474
|
-
const n = T(e), o =
|
|
2474
|
+
const n = T(e), o = co(y(() => lo(e, t.bandAxis, n), [
|
|
2475
2475
|
e,
|
|
2476
2476
|
t.bandAxis,
|
|
2477
2477
|
n
|
|
@@ -2483,8 +2483,8 @@ var Fl = "_2qyyu60", Dl = 2, Ol = 12, Wl = 12, Dr = 1, Or = 2, Gl = 4, Ze = (e)
|
|
|
2483
2483
|
height: "100%",
|
|
2484
2484
|
"data-geom": "arc",
|
|
2485
2485
|
"data-testid": "hovered-arc",
|
|
2486
|
-
className:
|
|
2487
|
-
children: /* @__PURE__ */ s(
|
|
2486
|
+
className: re,
|
|
2487
|
+
children: /* @__PURE__ */ s(uo, {
|
|
2488
2488
|
observation: r.observation,
|
|
2489
2489
|
bandAxis: t.bandAxis,
|
|
2490
2490
|
styleReaders: n,
|
|
@@ -2513,11 +2513,11 @@ var Fl = "_2qyyu60", Dl = 2, Ol = 12, Wl = 12, Dr = 1, Or = 2, Gl = 4, Ze = (e)
|
|
|
2513
2513
|
primary: r
|
|
2514
2514
|
}),
|
|
2515
2515
|
renderHoverCompanions: () => null
|
|
2516
|
-
}, hd =
|
|
2516
|
+
}, hd = te(function({ layer: t }) {
|
|
2517
2517
|
const r = T(t), n = y(() => {
|
|
2518
2518
|
const o = ce(t.data, t.mapping, t.id), i = [];
|
|
2519
2519
|
return t.data.groupBy(pe.group).forEach((a) => {
|
|
2520
|
-
const l = [...a], d =
|
|
2520
|
+
const l = [...a], d = go(l);
|
|
2521
2521
|
if (!d) return;
|
|
2522
2522
|
const c = l[0];
|
|
2523
2523
|
c && i.push({
|
|
@@ -2541,7 +2541,7 @@ var Fl = "_2qyyu60", Dl = 2, Ol = 12, Wl = 12, Dr = 1, Or = 2, Gl = 4, Ze = (e)
|
|
|
2541
2541
|
width: "100%",
|
|
2542
2542
|
height: "100%",
|
|
2543
2543
|
"data-geom": "line",
|
|
2544
|
-
className:
|
|
2544
|
+
className: re,
|
|
2545
2545
|
children: n.map((o) => /* @__PURE__ */ s("path", {
|
|
2546
2546
|
d: o.pathData,
|
|
2547
2547
|
fill: "none",
|
|
@@ -2552,18 +2552,18 @@ var Fl = "_2qyyu60", Dl = 2, Ol = 12, Wl = 12, Dr = 1, Or = 2, Gl = 4, Ze = (e)
|
|
|
2552
2552
|
vectorEffect: "non-scaling-stroke"
|
|
2553
2553
|
}, o.key))
|
|
2554
2554
|
});
|
|
2555
|
-
}),
|
|
2555
|
+
}), go = (e) => {
|
|
2556
2556
|
const t = [];
|
|
2557
2557
|
for (const r of e) {
|
|
2558
|
-
const n =
|
|
2558
|
+
const n = _(r), o = se(r);
|
|
2559
2559
|
n === null || o === null || t.push({
|
|
2560
2560
|
angle: n,
|
|
2561
|
-
point:
|
|
2561
|
+
point: ee(n, o)
|
|
2562
2562
|
});
|
|
2563
2563
|
}
|
|
2564
|
-
return t.length === 0 ? null : (t.sort((r, n) => r.angle - n.angle),
|
|
2564
|
+
return t.length === 0 ? null : (t.sort((r, n) => r.angle - n.angle), Kt(t.map((r) => r.point)));
|
|
2565
2565
|
}, gd = ({ layer: e, primary: t, companions: r }) => {
|
|
2566
|
-
const n = T(e), o =
|
|
2566
|
+
const n = T(e), o = yt(t.observation), i = y(() => go([...e.data.filter(pe.group, "eq", o)]), [e.data, o]);
|
|
2567
2567
|
if (!i) return null;
|
|
2568
2568
|
const a = n.get("color", t.observation), l = n.get("alpha", t.observation), d = n.get("strokeWidth", t.observation), c = Te(n.get("lineType", t.observation));
|
|
2569
2569
|
return /* @__PURE__ */ S(B, { children: [
|
|
@@ -2574,7 +2574,7 @@ var Fl = "_2qyyu60", Dl = 2, Ol = 12, Wl = 12, Dr = 1, Or = 2, Gl = 4, Ze = (e)
|
|
|
2574
2574
|
height: "100%",
|
|
2575
2575
|
"data-geom": "line",
|
|
2576
2576
|
"data-testid": "hovered-line",
|
|
2577
|
-
className:
|
|
2577
|
+
className: re,
|
|
2578
2578
|
children: /* @__PURE__ */ s("path", {
|
|
2579
2579
|
d: i,
|
|
2580
2580
|
fill: "none",
|
|
@@ -2607,9 +2607,9 @@ var Fl = "_2qyyu60", Dl = 2, Ol = 12, Wl = 12, Dr = 1, Or = 2, Gl = 4, Ze = (e)
|
|
|
2607
2607
|
primary: t,
|
|
2608
2608
|
companions: [...r, ...n]
|
|
2609
2609
|
}),
|
|
2610
|
-
renderHoverCompanions: ({ related: e }) => /* @__PURE__ */ s(
|
|
2610
|
+
renderHoverCompanions: ({ related: e }) => /* @__PURE__ */ s(vt, { companions: e }),
|
|
2611
2611
|
getOverlayAnchor: ({ observation: e }) => {
|
|
2612
|
-
const t =
|
|
2612
|
+
const t = _(e), r = se(e);
|
|
2613
2613
|
if (t === null || r === null) return null;
|
|
2614
2614
|
const { x: n, y: o } = le(t, r);
|
|
2615
2615
|
return {
|
|
@@ -2617,12 +2617,12 @@ var Fl = "_2qyyu60", Dl = 2, Ol = 12, Wl = 12, Dr = 1, Or = 2, Gl = 4, Ze = (e)
|
|
|
2617
2617
|
y: 1 - o
|
|
2618
2618
|
};
|
|
2619
2619
|
}
|
|
2620
|
-
}, fd =
|
|
2621
|
-
const o = T(t), i =
|
|
2620
|
+
}, fd = te(function({ layer: t, shouldAnimateTransitions: r, intro: n }) {
|
|
2621
|
+
const o = T(t), i = St(n?.type === "grow" && n.growAxis === "size" ? n : null, r);
|
|
2622
2622
|
return y(() => {
|
|
2623
2623
|
const a = i.activeIntro ? ce(t.data, t.mapping, t.id) : null, l = [];
|
|
2624
2624
|
let d = 0;
|
|
2625
|
-
for (const c of t.data) l.push(/* @__PURE__ */ s(
|
|
2625
|
+
for (const c of t.data) l.push(/* @__PURE__ */ s(Qn, {
|
|
2626
2626
|
observation: c,
|
|
2627
2627
|
project: le,
|
|
2628
2628
|
styleReaders: o,
|
|
@@ -2646,13 +2646,13 @@ var Fl = "_2qyyu60", Dl = 2, Ol = 12, Wl = 12, Dr = 1, Or = 2, Gl = 4, Ze = (e)
|
|
|
2646
2646
|
shouldAnimateTransitions: t,
|
|
2647
2647
|
intro: r
|
|
2648
2648
|
}),
|
|
2649
|
-
renderHover: ({ primary: e, group: t, related: r }) => /* @__PURE__ */ s(
|
|
2649
|
+
renderHover: ({ primary: e, group: t, related: r }) => /* @__PURE__ */ s(vt, {
|
|
2650
2650
|
primary: e,
|
|
2651
2651
|
companions: [...t, ...r]
|
|
2652
2652
|
}),
|
|
2653
|
-
renderHoverCompanions: ({ related: e }) => /* @__PURE__ */ s(
|
|
2653
|
+
renderHoverCompanions: ({ related: e }) => /* @__PURE__ */ s(vt, { companions: e }),
|
|
2654
2654
|
getOverlayAnchor: ({ observation: e }) => {
|
|
2655
|
-
const t =
|
|
2655
|
+
const t = _(e), r = se(e);
|
|
2656
2656
|
if (t === null || r === null) return null;
|
|
2657
2657
|
const { x: n, y: o } = le(t, r);
|
|
2658
2658
|
return {
|
|
@@ -2680,7 +2680,7 @@ var Fl = "_2qyyu60", Dl = 2, Ol = 12, Wl = 12, Dr = 1, Or = 2, Gl = 4, Ze = (e)
|
|
|
2680
2680
|
rule: { cartesian: ql },
|
|
2681
2681
|
tile: { cartesian: _l }
|
|
2682
2682
|
};
|
|
2683
|
-
function
|
|
2683
|
+
function kt(e) {
|
|
2684
2684
|
return typeof e == "function" ? {
|
|
2685
2685
|
overlay: !1,
|
|
2686
2686
|
fn: e
|
|
@@ -2690,7 +2690,7 @@ function Ct(e) {
|
|
|
2690
2690
|
};
|
|
2691
2691
|
}
|
|
2692
2692
|
function Ad(e) {
|
|
2693
|
-
return e ?
|
|
2693
|
+
return e ? kt(e.render).overlay : !1;
|
|
2694
2694
|
}
|
|
2695
2695
|
function Zf(e, t) {
|
|
2696
2696
|
return typeof e == "string" ? {
|
|
@@ -2708,13 +2708,13 @@ function yd(e = []) {
|
|
|
2708
2708
|
for (const r of e) (t[r.geom] ??= {})[r.coord] = r;
|
|
2709
2709
|
return (r, n) => t[r]?.[n] ?? null;
|
|
2710
2710
|
}
|
|
2711
|
-
var
|
|
2711
|
+
var Yt = (e) => {
|
|
2712
2712
|
const t = M(e);
|
|
2713
2713
|
return t.current = e, t;
|
|
2714
2714
|
}, xd = () => {
|
|
2715
2715
|
const e = /* @__PURE__ */ new Map();
|
|
2716
|
-
return
|
|
2717
|
-
hover:
|
|
2716
|
+
return Ln((t) => ({
|
|
2717
|
+
hover: ct,
|
|
2718
2718
|
tooltipAnchor: null,
|
|
2719
2719
|
pointerRegions: [],
|
|
2720
2720
|
isPointerSuspended: !1,
|
|
@@ -2722,8 +2722,8 @@ var jt = (e) => {
|
|
|
2722
2722
|
setTooltipAnchor: (r) => t((n) => bd(n.tooltipAnchor, r) ? n : { tooltipAnchor: r }),
|
|
2723
2723
|
publishPointerRegions: (r, n) => {
|
|
2724
2724
|
n.length === 0 ? e.delete(r) : e.set(r, n);
|
|
2725
|
-
const o =
|
|
2726
|
-
t((i) =>
|
|
2725
|
+
const o = ya(e);
|
|
2726
|
+
t((i) => Di(i.pointerRegions, o) ? i : { pointerRegions: o });
|
|
2727
2727
|
},
|
|
2728
2728
|
setPointerSuspended: (r) => t((n) => n.isPointerSuspended === r ? n : { isPointerSuspended: r })
|
|
2729
2729
|
}));
|
|
@@ -2732,17 +2732,17 @@ var jt = (e) => {
|
|
|
2732
2732
|
layers: e,
|
|
2733
2733
|
coordSystem: t
|
|
2734
2734
|
}), [e, t]), n = M(null);
|
|
2735
|
-
n.current === null && (n.current = new
|
|
2735
|
+
n.current === null && (n.current = new Mi(r));
|
|
2736
2736
|
const o = n.current, i = M(!1);
|
|
2737
|
-
return
|
|
2737
|
+
return F(() => {
|
|
2738
2738
|
if (!i.current) {
|
|
2739
2739
|
i.current = !0;
|
|
2740
2740
|
return;
|
|
2741
2741
|
}
|
|
2742
2742
|
o.update(r);
|
|
2743
2743
|
}, [o, r]), o;
|
|
2744
|
-
},
|
|
2745
|
-
const { layers: t, coordSystem: r } = I(
|
|
2744
|
+
}, vo = z(null), wd = ({ children: e }) => {
|
|
2745
|
+
const { layers: t, coordSystem: r } = I(X((l) => ({
|
|
2746
2746
|
layers: l.layers,
|
|
2747
2747
|
coordSystem: l.coordSystem
|
|
2748
2748
|
}))), n = Sd(t, r), [o] = V(() => xd()), i = M(null), a = M(null);
|
|
@@ -2750,20 +2750,20 @@ var jt = (e) => {
|
|
|
2750
2750
|
engine: n,
|
|
2751
2751
|
store: o,
|
|
2752
2752
|
overlayRef: i
|
|
2753
|
-
}), /* @__PURE__ */ s(
|
|
2753
|
+
}), /* @__PURE__ */ s(vo.Provider, {
|
|
2754
2754
|
value: a.current,
|
|
2755
2755
|
children: e
|
|
2756
2756
|
});
|
|
2757
2757
|
}, ke = () => {
|
|
2758
|
-
const e =
|
|
2758
|
+
const e = D(vo);
|
|
2759
2759
|
if (e === null) throw new Error("useHoverContext must be used inside a <HoverProvider>.");
|
|
2760
2760
|
return e;
|
|
2761
2761
|
};
|
|
2762
2762
|
function Rd(e, t) {
|
|
2763
2763
|
const { engine: r } = ke(), n = M(t);
|
|
2764
|
-
|
|
2764
|
+
F(() => {
|
|
2765
2765
|
n.current = t;
|
|
2766
|
-
}, [t]),
|
|
2766
|
+
}, [t]), F(() => (r.registerHitTester(e, (o) => n.current(o)), () => r.unregisterHitTester(e)), [r, e]);
|
|
2767
2767
|
}
|
|
2768
2768
|
var kd = ({ hitTest: e, input: t }) => {
|
|
2769
2769
|
const r = y(() => e(t), [
|
|
@@ -2775,7 +2775,7 @@ var kd = ({ hitTest: e, input: t }) => {
|
|
|
2775
2775
|
t.panelRect.height
|
|
2776
2776
|
]);
|
|
2777
2777
|
return Rd(t.layer.id, r), null;
|
|
2778
|
-
}, Cd = "graphy_root",
|
|
2778
|
+
}, Cd = "graphy_root", fo = () => typeof document > "u" ? null : document.getElementById(Cd) ?? document.body, Ed = "_10igzta0", Pd = ({ rect: e, zIndex: t, container: r, boxRef: n, children: o, ...i }) => r === null ? null : Tn(/* @__PURE__ */ s("div", {
|
|
2779
2779
|
...i,
|
|
2780
2780
|
ref: n,
|
|
2781
2781
|
className: Ed,
|
|
@@ -2787,7 +2787,7 @@ var kd = ({ hitTest: e, input: t }) => {
|
|
|
2787
2787
|
},
|
|
2788
2788
|
children: o
|
|
2789
2789
|
}), r), Bd = ({ rect: e, children: t }) => {
|
|
2790
|
-
const [r] = V(
|
|
2790
|
+
const [r] = V(fo);
|
|
2791
2791
|
return /* @__PURE__ */ s(Pd, {
|
|
2792
2792
|
rect: e,
|
|
2793
2793
|
zIndex: Ve.panelOverlay,
|
|
@@ -2795,7 +2795,7 @@ var kd = ({ hitTest: e, input: t }) => {
|
|
|
2795
2795
|
children: t
|
|
2796
2796
|
});
|
|
2797
2797
|
}, Id = (e, t) => {
|
|
2798
|
-
const r =
|
|
2798
|
+
const r = Yt(e), n = Yt(t), o = M(null), i = M(null), a = y(() => {
|
|
2799
2799
|
const l = () => {
|
|
2800
2800
|
i.current !== null && (clearTimeout(i.current), i.current = null), o.current = null;
|
|
2801
2801
|
}, d = () => {
|
|
@@ -2815,14 +2815,14 @@ var kd = ({ hitTest: e, input: t }) => {
|
|
|
2815
2815
|
cancel: l
|
|
2816
2816
|
};
|
|
2817
2817
|
}, [r, n]);
|
|
2818
|
-
return
|
|
2818
|
+
return F(() => () => {
|
|
2819
2819
|
i.current !== null && clearTimeout(i.current);
|
|
2820
2820
|
}, []), a;
|
|
2821
2821
|
}, Md = {
|
|
2822
2822
|
width: 0,
|
|
2823
2823
|
height: 0,
|
|
2824
2824
|
isDefault: !0
|
|
2825
|
-
},
|
|
2825
|
+
}, po = ({ debounce: e = 0, onResize: t } = {}) => {
|
|
2826
2826
|
const [r, n] = V(Md), o = M(null), i = Id((c) => {
|
|
2827
2827
|
const u = o.current;
|
|
2828
2828
|
u && u.width === c.width && u.height === c.height || (o.current = {
|
|
@@ -2864,10 +2864,10 @@ function Ld() {
|
|
|
2864
2864
|
g && g.left === h.left && g.top === h.top && g.width === h.width && g.height === h.height || (r.current = h, t(h));
|
|
2865
2865
|
}, []), a = ge(() => {
|
|
2866
2866
|
o.current === null && (o.current = requestAnimationFrame(i));
|
|
2867
|
-
}, [i]), { setElement: l } =
|
|
2867
|
+
}, [i]), { setElement: l } = po({ onResize: a }), d = ge((c) => {
|
|
2868
2868
|
n.current = c, l(c), c && i();
|
|
2869
2869
|
}, [l, i]);
|
|
2870
|
-
return
|
|
2870
|
+
return F(() => (window.addEventListener("scroll", a, !0), window.addEventListener("resize", a), () => {
|
|
2871
2871
|
window.removeEventListener("scroll", a, !0), window.removeEventListener("resize", a), o.current !== null && cancelAnimationFrame(o.current);
|
|
2872
2872
|
}), [a]), {
|
|
2873
2873
|
measureRef: d,
|
|
@@ -2877,9 +2877,9 @@ function Ld() {
|
|
|
2877
2877
|
function Td(e) {
|
|
2878
2878
|
const { engine: t, store: r } = ke();
|
|
2879
2879
|
return ge((n, o) => {
|
|
2880
|
-
const { hover: i, setHoverState: a, setTooltipAnchor: l } = r.getState(), d = n === null ?
|
|
2880
|
+
const { hover: i, setHoverState: a, setTooltipAnchor: l } = r.getState(), d = n === null ? ct : t.resolveHoverByKey(e, n);
|
|
2881
2881
|
if (d.primary === null) {
|
|
2882
|
-
i.primary?.layerId === e && (a(
|
|
2882
|
+
i.primary?.layerId === e && (a(ct), l(null));
|
|
2883
2883
|
return;
|
|
2884
2884
|
}
|
|
2885
2885
|
a(d), l(o ? {
|
|
@@ -2895,7 +2895,7 @@ function Td(e) {
|
|
|
2895
2895
|
}
|
|
2896
2896
|
var Nd = ({ render: e, input: t }) => {
|
|
2897
2897
|
const r = Td(t.layer.id), { measureRef: n, screenRect: o } = Ld();
|
|
2898
|
-
return
|
|
2898
|
+
return F(() => () => r(null), [r]), /* @__PURE__ */ S(B, { children: [/* @__PURE__ */ s("rect", {
|
|
2899
2899
|
ref: n,
|
|
2900
2900
|
x: 0,
|
|
2901
2901
|
y: 0,
|
|
@@ -2966,7 +2966,7 @@ var Nd = ({ render: e, input: t }) => {
|
|
|
2966
2966
|
editorSurface: !0,
|
|
2967
2967
|
inlineTextEditing: !1
|
|
2968
2968
|
}
|
|
2969
|
-
}, Fd = new Set(Object.values(ve)), Dd = (e) => Fd.has(e),
|
|
2969
|
+
}, Fd = new Set(Object.values(ve)), Dd = (e) => Fd.has(e), ar = (e) => Dd(e) ? e : ve.readonly, ft = {
|
|
2970
2970
|
enabled: !0,
|
|
2971
2971
|
durationScale: 1,
|
|
2972
2972
|
stagger: !0,
|
|
@@ -2974,13 +2974,13 @@ var Nd = ({ render: e, input: t }) => {
|
|
|
2974
2974
|
maxAnimatedGeoms: 1500
|
|
2975
2975
|
}, Od = (e, t) => t ? {
|
|
2976
2976
|
intro: {
|
|
2977
|
-
...
|
|
2977
|
+
...ft,
|
|
2978
2978
|
enabled: !1
|
|
2979
2979
|
},
|
|
2980
2980
|
transitions: !1
|
|
2981
2981
|
} : typeof e == "boolean" ? {
|
|
2982
2982
|
intro: {
|
|
2983
|
-
...
|
|
2983
|
+
...ft,
|
|
2984
2984
|
enabled: e
|
|
2985
2985
|
},
|
|
2986
2986
|
transitions: e
|
|
@@ -2988,9 +2988,9 @@ var Nd = ({ render: e, input: t }) => {
|
|
|
2988
2988
|
intro: Wd(e?.intro),
|
|
2989
2989
|
transitions: e?.transitions ?? !0
|
|
2990
2990
|
}, Wd = (e) => typeof e == "boolean" ? {
|
|
2991
|
-
...
|
|
2991
|
+
...ft,
|
|
2992
2992
|
enabled: e
|
|
2993
|
-
} : ts({},
|
|
2993
|
+
} : ts({}, ft, e), Gd = {
|
|
2994
2994
|
loading: "جاري التحميل",
|
|
2995
2995
|
error: "حدث خطأ ما",
|
|
2996
2996
|
axisLabels: { placeholder: "إضافة تسمية" },
|
|
@@ -3152,7 +3152,7 @@ var Nd = ({ render: e, input: t }) => {
|
|
|
3152
3152
|
}, Yd = {
|
|
3153
3153
|
graph: Kd,
|
|
3154
3154
|
dir: "ltr"
|
|
3155
|
-
},
|
|
3155
|
+
}, sr = {
|
|
3156
3156
|
"en-GB": zd,
|
|
3157
3157
|
"en-US": Qd,
|
|
3158
3158
|
ar: Ud,
|
|
@@ -3169,7 +3169,7 @@ var Nd = ({ render: e, input: t }) => {
|
|
|
3169
3169
|
}
|
|
3170
3170
|
return d;
|
|
3171
3171
|
};
|
|
3172
|
-
}, Xd = ({ locale: e, overrides: t }) => t?.dir ??
|
|
3172
|
+
}, Xd = ({ locale: e, overrides: t }) => t?.dir ?? sr[e].dir ?? "ltr", qd = (e, t) => {
|
|
3173
3173
|
let r = e;
|
|
3174
3174
|
for (const n of t) {
|
|
3175
3175
|
if (typeof r != "object" || r === null) return;
|
|
@@ -3180,8 +3180,8 @@ var Nd = ({ render: e, input: t }) => {
|
|
|
3180
3180
|
const t = "en-GB";
|
|
3181
3181
|
if (!e) return t;
|
|
3182
3182
|
const r = e.trim().replace("_", "-").toLowerCase();
|
|
3183
|
-
return Object.keys(
|
|
3184
|
-
},
|
|
3183
|
+
return Object.keys(sr).find((n) => n.toLowerCase() === r) ?? t;
|
|
3184
|
+
}, mo = z(null), Zd = [sr], Ao = () => _d().translator, $d = ({ locale: e, children: t, i18nOverrides: r, dictionaries: n = Zd }) => {
|
|
3185
3185
|
const o = Jd(e), i = y(() => ({
|
|
3186
3186
|
translator: jd({
|
|
3187
3187
|
locale: o,
|
|
@@ -3201,30 +3201,30 @@ var Nd = ({ render: e, input: t }) => {
|
|
|
3201
3201
|
return /* @__PURE__ */ s(rs, {
|
|
3202
3202
|
locale: o,
|
|
3203
3203
|
timeZone: "UTC",
|
|
3204
|
-
children: /* @__PURE__ */ s(
|
|
3204
|
+
children: /* @__PURE__ */ s(mo.Provider, {
|
|
3205
3205
|
value: i,
|
|
3206
3206
|
children: t
|
|
3207
3207
|
})
|
|
3208
3208
|
});
|
|
3209
3209
|
}, _d = () => {
|
|
3210
|
-
const e =
|
|
3210
|
+
const e = D(mo);
|
|
3211
3211
|
if (!e) throw new Error("useI18n must be used within IntlProvider");
|
|
3212
3212
|
return e;
|
|
3213
|
-
},
|
|
3213
|
+
}, lr = (e) => e === "none" ? "none" : `${e.offsetX}px ${e.offsetY}px ${e.blur}px ${e.color}`, ec = (e) => {
|
|
3214
3214
|
if (e !== "none")
|
|
3215
3215
|
return `drop-shadow(${e.offsetX}px ${e.offsetY}px ${e.blur}px ${e.color})`;
|
|
3216
3216
|
}, tc = () => {
|
|
3217
3217
|
const e = L();
|
|
3218
3218
|
return y(() => Ja(e), [e]);
|
|
3219
|
-
}, rc = "bow4tg0", nc = "bow4tg1", oc = "bow4tg2", ic = "bow4tg3", ac = "bow4tg4",
|
|
3219
|
+
}, rc = "bow4tg0", nc = "bow4tg1", oc = "bow4tg2", ic = "bow4tg3", ac = "bow4tg4", yo = "_1ii3bsb0", sc = "_1ii3bsb1", xo = z({
|
|
3220
3220
|
colorScheme: "light",
|
|
3221
|
-
themeClass:
|
|
3221
|
+
themeClass: yo,
|
|
3222
3222
|
inlineVarsStyle: {},
|
|
3223
|
-
themeValues:
|
|
3224
|
-
}),
|
|
3225
|
-
const a = y(() =>
|
|
3223
|
+
themeValues: or("light", {})
|
|
3224
|
+
}), dr = () => D(xo), lc = ({ colorScheme: e, textScale: t = 1, graphBackground: r, graphFontFamily: n, headingFontFamily: o, children: i }) => {
|
|
3225
|
+
const a = y(() => or(e), [e]), l = y(() => {
|
|
3226
3226
|
const c = { [p.textScale]: String(t) };
|
|
3227
|
-
return r !== void 0 && (c[p.graphBackground] = r), n !== void 0 && (c[p.fontFamily] = n), o !== void 0 && (c[p.fontFamilyHeading] = o),
|
|
3227
|
+
return r !== void 0 && (c[p.graphBackground] = r), n !== void 0 && (c[p.fontFamily] = n), o !== void 0 && (c[p.fontFamilyHeading] = o), er(c);
|
|
3228
3228
|
}, [
|
|
3229
3229
|
t,
|
|
3230
3230
|
r,
|
|
@@ -3232,7 +3232,7 @@ var Nd = ({ render: e, input: t }) => {
|
|
|
3232
3232
|
o
|
|
3233
3233
|
]), d = y(() => ({
|
|
3234
3234
|
colorScheme: e,
|
|
3235
|
-
themeClass: e === "dark" ? sc :
|
|
3235
|
+
themeClass: e === "dark" ? sc : yo,
|
|
3236
3236
|
inlineVarsStyle: l,
|
|
3237
3237
|
themeValues: a
|
|
3238
3238
|
}), [
|
|
@@ -3240,12 +3240,12 @@ var Nd = ({ render: e, input: t }) => {
|
|
|
3240
3240
|
l,
|
|
3241
3241
|
a
|
|
3242
3242
|
]);
|
|
3243
|
-
return /* @__PURE__ */ s(
|
|
3243
|
+
return /* @__PURE__ */ s(xo.Provider, {
|
|
3244
3244
|
value: d,
|
|
3245
3245
|
children: i
|
|
3246
3246
|
});
|
|
3247
3247
|
}, dc = ({ children: e, className: t, style: r }) => {
|
|
3248
|
-
const { themeClass: n, inlineVarsStyle: o } =
|
|
3248
|
+
const { themeClass: n, inlineVarsStyle: o } = dr();
|
|
3249
3249
|
return /* @__PURE__ */ s("div", {
|
|
3250
3250
|
className: je(n, nc, t),
|
|
3251
3251
|
style: {
|
|
@@ -3264,25 +3264,25 @@ var Nd = ({ render: e, input: t }) => {
|
|
|
3264
3264
|
}, uc = (e) => {
|
|
3265
3265
|
const t = e !== null && typeof e == "object" ? e.fontFamily : e;
|
|
3266
3266
|
return typeof t == "string" && t.length > 0 ? t : void 0;
|
|
3267
|
-
},
|
|
3267
|
+
}, Gr = (e) => {
|
|
3268
3268
|
const t = uc(e);
|
|
3269
3269
|
if (t !== void 0)
|
|
3270
3270
|
return cc[t] ?? t;
|
|
3271
|
-
}, hc = "_1cocly40", Me = ({ content: e }) => /* @__PURE__ */ s(B, { children:
|
|
3271
|
+
}, hc = "_1cocly40", Me = ({ content: e }) => /* @__PURE__ */ s(B, { children: bo(e.content ?? [e]) }), bo = (e) => e.map((t, r) => gc(t, r)), gc = (e, t) => {
|
|
3272
3272
|
if (e.type === "text") return vc(e, t);
|
|
3273
3273
|
if (e.type === "hardBreak" || e.type === "hard_break") return /* @__PURE__ */ s("br", {}, t);
|
|
3274
|
-
const r = e.content ?
|
|
3274
|
+
const r = e.content ? bo(e.content) : null;
|
|
3275
3275
|
switch (e.type) {
|
|
3276
3276
|
case "doc":
|
|
3277
|
-
return /* @__PURE__ */ s(
|
|
3277
|
+
return /* @__PURE__ */ s(_t, { children: r }, t);
|
|
3278
3278
|
case "heading": {
|
|
3279
3279
|
const n = Ac(e.attrs?.level);
|
|
3280
|
-
return yc(n, t, r,
|
|
3280
|
+
return yc(n, t, r, Ur(e.attrs));
|
|
3281
3281
|
}
|
|
3282
3282
|
case "paragraph":
|
|
3283
3283
|
return /* @__PURE__ */ s("p", {
|
|
3284
|
-
"data-variant":
|
|
3285
|
-
style:
|
|
3284
|
+
"data-variant": cr(e.attrs?.variant) ?? void 0,
|
|
3285
|
+
style: So(Ur(e.attrs)),
|
|
3286
3286
|
children: r
|
|
3287
3287
|
}, t);
|
|
3288
3288
|
case "blockquote":
|
|
@@ -3319,8 +3319,8 @@ var Nd = ({ render: e, input: t }) => {
|
|
|
3319
3319
|
case "code":
|
|
3320
3320
|
return /* @__PURE__ */ s("code", { children: t }, r);
|
|
3321
3321
|
case "link": {
|
|
3322
|
-
const n =
|
|
3323
|
-
return
|
|
3322
|
+
const n = cr(e.attrs?.href);
|
|
3323
|
+
return Zt(n) ? /* @__PURE__ */ s("a", {
|
|
3324
3324
|
className: hc,
|
|
3325
3325
|
href: n,
|
|
3326
3326
|
rel: "noopener noreferrer",
|
|
@@ -3340,16 +3340,16 @@ var Nd = ({ render: e, input: t }) => {
|
|
|
3340
3340
|
}
|
|
3341
3341
|
}, pc = (e) => {
|
|
3342
3342
|
if (!e) return null;
|
|
3343
|
-
const t = {}, r =
|
|
3343
|
+
const t = {}, r = cr(e.color);
|
|
3344
3344
|
r && (t.color = r);
|
|
3345
|
-
const n =
|
|
3345
|
+
const n = Gr(e.font) ?? Gr(e.fontFamily);
|
|
3346
3346
|
n && (t.fontFamily = n);
|
|
3347
3347
|
const o = mc(e.fontSize);
|
|
3348
3348
|
return o && (t.fontSize = o), Object.keys(t).length > 0 ? t : null;
|
|
3349
3349
|
}, mc = (e) => {
|
|
3350
3350
|
if (typeof e == "number" && Number.isFinite(e)) return `calc(${e}px * ${p.textScale})`;
|
|
3351
|
-
},
|
|
3352
|
-
const o =
|
|
3351
|
+
}, cr = (e) => typeof e == "string" && e.length > 0 ? e : void 0, Ac = (e) => typeof e != "number" ? 3 : e < 1 ? 1 : e > 3 ? 3 : Math.round(e), yc = (e, t, r, n) => {
|
|
3352
|
+
const o = So(n);
|
|
3353
3353
|
switch (e) {
|
|
3354
3354
|
case 1:
|
|
3355
3355
|
return /* @__PURE__ */ s("h1", {
|
|
@@ -3367,18 +3367,18 @@ var Nd = ({ render: e, input: t }) => {
|
|
|
3367
3367
|
children: r
|
|
3368
3368
|
}, t);
|
|
3369
3369
|
}
|
|
3370
|
-
},
|
|
3370
|
+
}, Ur = (e) => {
|
|
3371
3371
|
const t = e?.textAlign;
|
|
3372
3372
|
if (t === "left" || t === "right" || t === "center" || t === "justify") return t;
|
|
3373
|
-
},
|
|
3373
|
+
}, So = (e) => e ? { textAlign: e } : void 0;
|
|
3374
3374
|
function Ie(e) {
|
|
3375
3375
|
const { store: t } = ke();
|
|
3376
3376
|
return Je(t, e);
|
|
3377
3377
|
}
|
|
3378
3378
|
var xc = "_19519k80";
|
|
3379
3379
|
var bc = "_19519k82", Sc = "_19519k83", wc = "_19519k85", Rc = "_19519k86", kc = "_19519k87", Cc = "_19519k88", Ec = (e) => {
|
|
3380
|
-
const { overlayRef: t } = ke(), r = M(null), [n, o] = V(!1), i =
|
|
3381
|
-
return
|
|
3380
|
+
const { overlayRef: t } = ke(), r = M(null), [n, o] = V(!1), i = Yt(e);
|
|
3381
|
+
return F(() => {
|
|
3382
3382
|
const a = t.current;
|
|
3383
3383
|
if (!a) return;
|
|
3384
3384
|
const l = (c) => {
|
|
@@ -3406,11 +3406,11 @@ var bc = "_19519k82", Sc = "_19519k83", wc = "_19519k85", Rc = "_19519k86", kc =
|
|
|
3406
3406
|
width: 0,
|
|
3407
3407
|
height: 0,
|
|
3408
3408
|
toJSON: () => ({})
|
|
3409
|
-
},
|
|
3409
|
+
}, at = {
|
|
3410
3410
|
boundary: [],
|
|
3411
3411
|
padding: Bc
|
|
3412
3412
|
}, Mc = () => {
|
|
3413
|
-
const e = I(
|
|
3413
|
+
const e = I(X((x) => ({
|
|
3414
3414
|
layers: x.layers,
|
|
3415
3415
|
coordSystem: x.coordSystem,
|
|
3416
3416
|
scales: x.scales,
|
|
@@ -3419,7 +3419,7 @@ var bc = "_19519k82", Sc = "_19519k83", wc = "_19519k85", Rc = "_19519k86", kc =
|
|
|
3419
3419
|
parsingLocale: x.config.parsingLocale,
|
|
3420
3420
|
comments: x.annotations.comments
|
|
3421
3421
|
}))), { formattingLocale: t, colorScheme: r } = K(), n = Ie((x) => x.hover), o = Ie((x) => x.tooltipAnchor), i = Ie((x) => x.isPointerSuspended), a = ae("Tooltip", Lc), l = M(() => {
|
|
3422
|
-
}), { cursorRef: d, isInside: c } = Ec(() => l.current()), u = y(() =>
|
|
3422
|
+
}), { cursorRef: d, isInside: c } = Ec(() => l.current()), u = y(() => Ki({
|
|
3423
3423
|
...e,
|
|
3424
3424
|
hover: n,
|
|
3425
3425
|
colorScheme: r,
|
|
@@ -3435,7 +3435,7 @@ var bc = "_19519k82", Sc = "_19519k83", wc = "_19519k85", Rc = "_19519k86", kc =
|
|
|
3435
3435
|
if (o !== null) return Hc(o);
|
|
3436
3436
|
const x = d.current;
|
|
3437
3437
|
return x === null ? Ic : Nc(x);
|
|
3438
|
-
} }), [d, o]), { refs: v, floatingStyles: f, update: A } =
|
|
3438
|
+
} }), [d, o]), { refs: v, floatingStyles: f, update: A } = Nn(Fc({
|
|
3439
3439
|
isOpen: h,
|
|
3440
3440
|
tooltipAnchor: o,
|
|
3441
3441
|
virtualReference: g
|
|
@@ -3448,10 +3448,10 @@ var bc = "_19519k82", Sc = "_19519k83", wc = "_19519k85", Rc = "_19519k86", kc =
|
|
|
3448
3448
|
style: f,
|
|
3449
3449
|
"data-testid": "chart-tooltip",
|
|
3450
3450
|
children: /* @__PURE__ */ s(a, { content: u })
|
|
3451
|
-
}), b =
|
|
3452
|
-
return b ?
|
|
3451
|
+
}), b = fo();
|
|
3452
|
+
return b ? Tn(/* @__PURE__ */ s(dc, { children: m }), b) : m;
|
|
3453
3453
|
}, Lc = ({ content: e }) => {
|
|
3454
|
-
const t = me(), r = I((d) => d.coordSystem), n = tc(), o =
|
|
3454
|
+
const t = me(), r = I((d) => d.coordSystem), n = tc(), o = Ht(n.heading), i = Ht(n.label), a = Ht(n.value), l = { paddingInline: n.box.paddingInline };
|
|
3455
3455
|
return /* @__PURE__ */ S("div", {
|
|
3456
3456
|
className: xc,
|
|
3457
3457
|
style: Tc(n.box),
|
|
@@ -3492,7 +3492,7 @@ var bc = "_19519k82", Sc = "_19519k83", wc = "_19519k85", Rc = "_19519k86", kc =
|
|
|
3492
3492
|
})
|
|
3493
3493
|
]
|
|
3494
3494
|
});
|
|
3495
|
-
},
|
|
3495
|
+
}, Ht = (e) => ({
|
|
3496
3496
|
...fe(e),
|
|
3497
3497
|
color: e.textColor,
|
|
3498
3498
|
lineHeight: e.lineHeight
|
|
@@ -3500,7 +3500,7 @@ var bc = "_19519k82", Sc = "_19519k83", wc = "_19519k85", Rc = "_19519k86", kc =
|
|
|
3500
3500
|
background: e.background,
|
|
3501
3501
|
borderRadius: e.borderRadius,
|
|
3502
3502
|
paddingBlock: e.paddingBlock,
|
|
3503
|
-
boxShadow:
|
|
3503
|
+
boxShadow: lr(e.shadow),
|
|
3504
3504
|
...e.borderWidth > 0 ? { border: `${e.borderWidth}px solid ${e.borderColor}` } : {}
|
|
3505
3505
|
}), Nc = (e) => ({
|
|
3506
3506
|
x: e.clientX,
|
|
@@ -3526,13 +3526,13 @@ var bc = "_19519k82", Sc = "_19519k83", wc = "_19519k85", Rc = "_19519k86", kc =
|
|
|
3526
3526
|
open: e,
|
|
3527
3527
|
placement: t !== null ? t.placement : "right",
|
|
3528
3528
|
middleware: t !== null ? [
|
|
3529
|
-
|
|
3530
|
-
|
|
3531
|
-
|
|
3529
|
+
Ut(Ei),
|
|
3530
|
+
Vt(at),
|
|
3531
|
+
Gt(at)
|
|
3532
3532
|
] : [
|
|
3533
|
-
|
|
3534
|
-
|
|
3535
|
-
|
|
3533
|
+
Ut(Pc),
|
|
3534
|
+
Gt(at),
|
|
3535
|
+
Vt(at)
|
|
3536
3536
|
],
|
|
3537
3537
|
elements: { reference: r }
|
|
3538
3538
|
}), Dc = ({ row: e, swatchShape: t, shouldHighlight: r, labelStyle: n, valueStyle: o, paddingInline: i, highlightBackground: a }) => /* @__PURE__ */ S("div", {
|
|
@@ -3568,12 +3568,12 @@ var bc = "_19519k82", Sc = "_19519k83", wc = "_19519k85", Rc = "_19519k86", kc =
|
|
|
3568
3568
|
children: e.value
|
|
3569
3569
|
})
|
|
3570
3570
|
]
|
|
3571
|
-
}),
|
|
3571
|
+
}), dt = {
|
|
3572
3572
|
plansByLayerId: null,
|
|
3573
3573
|
coordKey: null,
|
|
3574
3574
|
introEndsAtMs: 0
|
|
3575
|
-
},
|
|
3576
|
-
const { layers: r, coordSystem: n, scales: o } = I(
|
|
3575
|
+
}, ur = z(dt), Oc = ({ intro: e, children: t }) => {
|
|
3576
|
+
const { layers: r, coordSystem: n, scales: o } = I(X((a) => ({
|
|
3577
3577
|
layers: a.layers,
|
|
3578
3578
|
coordSystem: a.coordSystem,
|
|
3579
3579
|
scales: a.scales
|
|
@@ -3583,25 +3583,25 @@ var bc = "_19519k82", Sc = "_19519k83", wc = "_19519k85", Rc = "_19519k86", kc =
|
|
|
3583
3583
|
scales: o,
|
|
3584
3584
|
intro: e
|
|
3585
3585
|
}));
|
|
3586
|
-
return /* @__PURE__ */ s(
|
|
3586
|
+
return /* @__PURE__ */ s(ur.Provider, {
|
|
3587
3587
|
value: i,
|
|
3588
3588
|
children: t
|
|
3589
3589
|
});
|
|
3590
3590
|
}, Wc = () => {
|
|
3591
|
-
const { introEndsAtMs: e } =
|
|
3591
|
+
const { introEndsAtMs: e } = D(ur), [t] = V(() => Vc(e) / 1e3);
|
|
3592
3592
|
return t;
|
|
3593
3593
|
}, Gc = (e) => {
|
|
3594
|
-
const { plansByLayerId: t, coordKey: r } =
|
|
3594
|
+
const { plansByLayerId: t, coordKey: r } = D(ur), n = I((o) => wo(o.coordSystem));
|
|
3595
3595
|
return t === null || r !== n ? null : t.get(e) ?? null;
|
|
3596
3596
|
}, Uc = ({ layers: e, coordSystem: t, scales: r, intro: n }) => {
|
|
3597
|
-
if (!n.enabled || e.reduce((l, d) => l +
|
|
3597
|
+
if (!n.enabled || e.reduce((l, d) => l + $i(d), 0) > n.maxAnimatedGeoms) return dt;
|
|
3598
3598
|
const o = {
|
|
3599
3599
|
durationScale: n.durationScale,
|
|
3600
3600
|
stagger: n.stagger,
|
|
3601
3601
|
staggerOrder: n.staggerOrder
|
|
3602
3602
|
}, i = /* @__PURE__ */ new Map();
|
|
3603
3603
|
for (const l of e) {
|
|
3604
|
-
const d =
|
|
3604
|
+
const d = Vi({
|
|
3605
3605
|
layer: l,
|
|
3606
3606
|
coordSystem: t,
|
|
3607
3607
|
scales: r,
|
|
@@ -3609,100 +3609,96 @@ var bc = "_19519k82", Sc = "_19519k83", wc = "_19519k85", Rc = "_19519k86", kc =
|
|
|
3609
3609
|
});
|
|
3610
3610
|
d !== null && i.set(l.id, d);
|
|
3611
3611
|
}
|
|
3612
|
-
if (i.size === 0) return
|
|
3612
|
+
if (i.size === 0) return dt;
|
|
3613
3613
|
const a = [...i.values()].reduce((l, d) => Math.max(l, ps(d)), 0);
|
|
3614
3614
|
return {
|
|
3615
3615
|
plansByLayerId: i,
|
|
3616
|
-
coordKey:
|
|
3616
|
+
coordKey: wo(t),
|
|
3617
3617
|
introEndsAtMs: performance.now() + a * 1e3
|
|
3618
3618
|
};
|
|
3619
|
-
}, Vc = (e) => Math.max(0, e - performance.now()),
|
|
3619
|
+
}, Vc = (e) => Math.max(0, e - performance.now()), wo = (e) => e.type === "cartesian" ? `cartesian-${e.mainAxis}` : e.type, Ro = () => {
|
|
3620
3620
|
const e = L();
|
|
3621
3621
|
return y(() => {
|
|
3622
3622
|
const t = {};
|
|
3623
|
-
for (const r of
|
|
3623
|
+
for (const r of tn) t[r] = Ea(e, r);
|
|
3624
3624
|
return t;
|
|
3625
3625
|
}, [e]);
|
|
3626
|
-
},
|
|
3626
|
+
}, Ct = () => {
|
|
3627
3627
|
const e = L();
|
|
3628
3628
|
return y(() => {
|
|
3629
3629
|
const t = {};
|
|
3630
|
-
for (const r of
|
|
3630
|
+
for (const r of Bi) {
|
|
3631
3631
|
const n = {};
|
|
3632
|
-
for (const o of
|
|
3632
|
+
for (const o of Pi) n[o] = La(e, r, o);
|
|
3633
3633
|
t[r] = n;
|
|
3634
3634
|
}
|
|
3635
3635
|
return t;
|
|
3636
3636
|
}, [e]);
|
|
3637
|
-
},
|
|
3637
|
+
}, ko = () => {
|
|
3638
3638
|
const e = L();
|
|
3639
3639
|
return y(() => (t) => Na(e, t), [e]);
|
|
3640
|
-
},
|
|
3640
|
+
}, Co = () => {
|
|
3641
3641
|
const e = L();
|
|
3642
3642
|
return y(() => Ha(e), [e]);
|
|
3643
|
-
},
|
|
3643
|
+
}, Et = () => {
|
|
3644
3644
|
const e = L();
|
|
3645
3645
|
return y(() => Va(e), [e]);
|
|
3646
|
-
},
|
|
3646
|
+
}, hr = () => {
|
|
3647
3647
|
const e = L();
|
|
3648
|
-
return y(() =>
|
|
3649
|
-
|
|
3650
|
-
for (const r of qt) t[r] = Xa(e, r);
|
|
3651
|
-
return t;
|
|
3652
|
-
}, [e]);
|
|
3653
|
-
}, Po = () => {
|
|
3648
|
+
return y(() => (t, r) => Xa(e, t, r), [e]);
|
|
3649
|
+
}, Eo = () => {
|
|
3654
3650
|
const e = L();
|
|
3655
3651
|
return y(() => {
|
|
3656
3652
|
const t = {};
|
|
3657
|
-
for (const r of
|
|
3653
|
+
for (const r of tn) t[r] = qa(e, r);
|
|
3658
3654
|
return t;
|
|
3659
3655
|
}, [e]);
|
|
3660
3656
|
}, zc = ({ textMeasurer: e, tickLabelStyles: t, tickLineStyles: r, familyDefault: n }) => (o) => {
|
|
3661
|
-
const i = o.position === "top" || o.position === "bottom", a = Le(o.scaleAestheticKey), { offset: l, ...d } = t
|
|
3657
|
+
const i = o.position === "top" || o.position === "bottom", a = Le(o.scaleAestheticKey), { offset: l, ...d } = t(a, o.position), c = o.ticksVisible ? Math.max(l, r[a].length) : l, u = j(d, n), h = o.ticks.map((v) => e.measureText(v.formattedLabel, u)), g = o.labelMaxWidthPx ?? Number.POSITIVE_INFINITY;
|
|
3662
3658
|
if (i) {
|
|
3663
3659
|
if (o.labelRotation !== 0) {
|
|
3664
3660
|
const v = h.map((f) => f.width);
|
|
3665
|
-
return
|
|
3661
|
+
return Vr(v, g) + 2 * c;
|
|
3666
3662
|
}
|
|
3667
3663
|
return Math.max(...h.map((v) => v.height)) + c;
|
|
3668
3664
|
}
|
|
3669
|
-
return
|
|
3670
|
-
},
|
|
3671
|
-
const a = t[n][o], l = e.measureText(i,
|
|
3665
|
+
return Vr(h.map((v) => v.width), g) + c;
|
|
3666
|
+
}, Vr = (e, t) => Math.min(Math.max(...e), t), Qc = ({ axisLabelStyles: e }) => (t) => we(e[Le(t.scaleAestheticKey)]), Po = ({ textMeasurer: e, dataLabelStyles: t, familyDefault: r }) => (n, o, i) => {
|
|
3667
|
+
const a = t[n][o], l = e.measureText(i, j(a, r));
|
|
3672
3668
|
return {
|
|
3673
3669
|
...l,
|
|
3674
3670
|
width: l.width + a.paddingInline * 2,
|
|
3675
3671
|
height: l.height + a.paddingBlock * 2
|
|
3676
3672
|
};
|
|
3677
|
-
}, Kc = ({ textMeasurer: e, familyDefault: t }) => (r, n) => e.measureText(r,
|
|
3678
|
-
const l =
|
|
3673
|
+
}, Kc = ({ textMeasurer: e, familyDefault: t }) => (r, n) => e.measureText(r, j(n, t)), Yc = ({ textMeasurer: e, familyDefault: t, headlineRowGap: r, itemGap: n, headlineItemStyles: o }) => (i, a) => {
|
|
3674
|
+
const l = Bo(i, o[a], e, t, r);
|
|
3679
3675
|
return {
|
|
3680
|
-
width:
|
|
3676
|
+
width: Io(l.map((d) => d.width)) + Math.max(0, l.length - 1) * n,
|
|
3681
3677
|
height: Math.max(0, ...l.map((d) => d.height))
|
|
3682
3678
|
};
|
|
3683
|
-
}, jc = ({ textMeasurer: e, familyDefault: t, headlineRowGap: r, headlineItemStyles: n }) => (o, i) =>
|
|
3684
|
-
const a =
|
|
3679
|
+
}, jc = ({ textMeasurer: e, familyDefault: t, headlineRowGap: r, headlineItemStyles: n }) => (o, i) => Bo(o, n[i], e, t, r).map((a) => a.width), Xc = ({ textMeasurer: e, familyDefault: t, headlineItemStyles: r }) => (n, o, i = !1) => {
|
|
3680
|
+
const a = wn(r[o], i);
|
|
3685
3681
|
return {
|
|
3686
|
-
width: e.measureText(n,
|
|
3682
|
+
width: e.measureText(n, j(a, t)).width,
|
|
3687
3683
|
height: we(a)
|
|
3688
3684
|
};
|
|
3689
3685
|
}, qc = (e) => {
|
|
3690
3686
|
const t = Yc(e), r = Xc(e);
|
|
3691
3687
|
return (n, o, i = !1) => n.kind === "perGroup" ? t(n, o) : r(n.value, o, i);
|
|
3692
|
-
},
|
|
3688
|
+
}, Bo = (e, t, r, n, o) => {
|
|
3693
3689
|
const i = (a) => Jc(a, t, r, n);
|
|
3694
3690
|
return e.items.map((a) => {
|
|
3695
|
-
const l =
|
|
3691
|
+
const l = sn(a, t.swatch.size).map(i), d = Math.max(0, l.length - 1) * o;
|
|
3696
3692
|
return {
|
|
3697
3693
|
width: Math.max(0, ...l.map((c) => c.width)),
|
|
3698
|
-
height:
|
|
3694
|
+
height: Io(l.map((c) => c.height)) + d
|
|
3699
3695
|
};
|
|
3700
3696
|
});
|
|
3701
3697
|
}, Jc = (e, t, r, n) => {
|
|
3702
3698
|
let o = 0, i = 0;
|
|
3703
3699
|
for (const a of e.segments) if (a.kind === "text") {
|
|
3704
3700
|
const l = Zc(t, a.textRole);
|
|
3705
|
-
o += r.measureText(a.text,
|
|
3701
|
+
o += r.measureText(a.text, j(l, n)).width, i = Math.max(i, $c(l));
|
|
3706
3702
|
} else
|
|
3707
3703
|
o += a.size, i = Math.max(i, a.size);
|
|
3708
3704
|
return {
|
|
@@ -3723,7 +3719,7 @@ var bc = "_19519k82", Sc = "_19519k83", wc = "_19519k85", Rc = "_19519k86", kc =
|
|
|
3723
3719
|
default:
|
|
3724
3720
|
return t;
|
|
3725
3721
|
}
|
|
3726
|
-
}, $c = (e) => e.fontSize * (e.lineHeight ?? Js),
|
|
3722
|
+
}, $c = (e) => e.fontSize * (e.lineHeight ?? Js), Io = (e) => e.reduce((t, r) => t + r, 0), _c = (e, t) => e ? t : 0, pt = (e, t, r) => {
|
|
3727
3723
|
if (r) {
|
|
3728
3724
|
const n = Number(e.size);
|
|
3729
3725
|
return Number.isFinite(n) && n > 0 ? n : 0;
|
|
@@ -3734,32 +3730,32 @@ var bc = "_19519k82", Sc = "_19519k83", wc = "_19519k85", Rc = "_19519k86", kc =
|
|
|
3734
3730
|
if (i.display === "direct") {
|
|
3735
3731
|
const A = we(n);
|
|
3736
3732
|
if (a) return A;
|
|
3737
|
-
const m =
|
|
3733
|
+
const m = j(n, t), b = i.items.map((x) => e.measureText(x.formattedLabel, m).width);
|
|
3738
3734
|
return Math.max(...b);
|
|
3739
3735
|
}
|
|
3740
|
-
const { item: l, swatch: d } = r, c = we(l), u =
|
|
3736
|
+
const { item: l, swatch: d } = r, c = we(l), u = j(l, t), h = 2 * (l.paddingBlock + l.borderWidth), g = 2 * (l.paddingInline + l.borderWidth), v = i.aesthetics.includes("size");
|
|
3741
3737
|
if (a) {
|
|
3742
|
-
const A = v ? Math.max(0, ...i.items.map((m) =>
|
|
3738
|
+
const A = v ? Math.max(0, ...i.items.map((m) => pt(m.visual, d.size, !0))) : d.size;
|
|
3743
3739
|
return Math.max(c, A) + h;
|
|
3744
3740
|
}
|
|
3745
3741
|
const f = i.items.map((A) => {
|
|
3746
|
-
const m = e.measureText(A.formattedLabel, u).width, b =
|
|
3742
|
+
const m = e.measureText(A.formattedLabel, u).width, b = pt(A.visual, d.size, v);
|
|
3747
3743
|
return b + (b > 0 ? o : 0) + m;
|
|
3748
3744
|
});
|
|
3749
3745
|
return Math.max(...f) + g;
|
|
3750
|
-
}, tu = ({ textMeasurer: e, tickLabelStyles: t, familyDefault: r }) => (n, o) => e.measureText(n,
|
|
3751
|
-
const n =
|
|
3746
|
+
}, tu = ({ textMeasurer: e, tickLabelStyles: t, familyDefault: r }) => (n, o) => e.measureText(n, j(t(o), r)), ru = Object.freeze({}), nu = ({ textMeasurer: e, metrics: t, overrides: r = ru }) => {
|
|
3747
|
+
const n = Ro(), o = Ct(), i = Co(), a = Et(), l = hr(), d = Eo(), c = L(), u = M(r);
|
|
3752
3748
|
return u.current = r, y(() => {
|
|
3753
3749
|
if (!e) return null;
|
|
3754
3750
|
const h = t.fonts.familyDefault, g = c.graph.get("textScale"), v = {
|
|
3755
3751
|
textMeasurer: e,
|
|
3756
3752
|
familyDefault: h,
|
|
3757
3753
|
headlineRowGap: t.headlineRowGap,
|
|
3758
|
-
itemGap:
|
|
3754
|
+
itemGap: Rn(c).gap,
|
|
3759
3755
|
headlineItemStyles: {
|
|
3760
|
-
small:
|
|
3761
|
-
medium:
|
|
3762
|
-
large:
|
|
3756
|
+
small: lt(c, "small"),
|
|
3757
|
+
medium: lt(c, "medium"),
|
|
3758
|
+
large: lt(c, "large")
|
|
3763
3759
|
}
|
|
3764
3760
|
}, f = zc({
|
|
3765
3761
|
textMeasurer: e,
|
|
@@ -3802,7 +3798,7 @@ var bc = "_19519k82", Sc = "_19519k83", wc = "_19519k85", Rc = "_19519k86", kc =
|
|
|
3802
3798
|
textMeasurer: e,
|
|
3803
3799
|
familyDefault: h
|
|
3804
3800
|
}),
|
|
3805
|
-
measureDataLabel:
|
|
3801
|
+
measureDataLabel: Po({
|
|
3806
3802
|
textMeasurer: e,
|
|
3807
3803
|
dataLabelStyles: o,
|
|
3808
3804
|
familyDefault: h
|
|
@@ -3819,9 +3815,9 @@ var bc = "_19519k82", Sc = "_19519k83", wc = "_19519k85", Rc = "_19519k86", kc =
|
|
|
3819
3815
|
d,
|
|
3820
3816
|
c
|
|
3821
3817
|
]);
|
|
3822
|
-
}, ou = ({ measurer: e, axes: t, numberFormat: r, parsingLocale: n, formattedLegends: o, containerSize: i, externalMeasurements: a, headline: l, formattingLocale: d, annotations: c, layers: u, coordSystem: h, overflowStrategy: g,
|
|
3823
|
-
const m =
|
|
3824
|
-
return y(() => e ? new
|
|
3818
|
+
}, ou = ({ measurer: e, axes: t, numberFormat: r, parsingLocale: n, formattedLegends: o, containerSize: i, externalMeasurements: a, headline: l, formattingLocale: d, annotations: c, layers: u, coordSystem: h, overflowStrategy: g, panelBorder: v, padding: f, margins: A }) => {
|
|
3819
|
+
const m = ko();
|
|
3820
|
+
return y(() => e ? new Ti(e).compile({
|
|
3825
3821
|
axes: t,
|
|
3826
3822
|
numberFormat: r,
|
|
3827
3823
|
parsingLocale: n,
|
|
@@ -3835,9 +3831,9 @@ var bc = "_19519k82", Sc = "_19519k83", wc = "_19519k85", Rc = "_19519k86", kc =
|
|
|
3835
3831
|
layers: u,
|
|
3836
3832
|
coordSystem: h,
|
|
3837
3833
|
overflowStrategy: g,
|
|
3838
|
-
|
|
3839
|
-
|
|
3840
|
-
|
|
3834
|
+
panelBorder: v,
|
|
3835
|
+
padding: f,
|
|
3836
|
+
margins: A
|
|
3841
3837
|
}) : null, [
|
|
3842
3838
|
t,
|
|
3843
3839
|
r,
|
|
@@ -3860,8 +3856,8 @@ var bc = "_19519k82", Sc = "_19519k83", wc = "_19519k85", Rc = "_19519k86", kc =
|
|
|
3860
3856
|
}, iu = (e) => !e.isVisible || e.ticks.length === 0, au = (e) => e.items.length === 0, su = () => {
|
|
3861
3857
|
const { formattingLocale: e } = K(), t = I((r) => r.config.parsingLocale);
|
|
3862
3858
|
return e ?? t;
|
|
3863
|
-
},
|
|
3864
|
-
}),
|
|
3859
|
+
}, zr = 0.5, Mo = z(/* @__PURE__ */ new Map()), Lo = z(() => {
|
|
3860
|
+
}), To = z(/* @__PURE__ */ new Set()), lu = ({ children: e }) => {
|
|
3865
3861
|
const [t, r] = V(() => /* @__PURE__ */ new Map()), [n] = V(() => /* @__PURE__ */ new Set()), o = M(/* @__PURE__ */ new Map()), i = ge((a, l, d) => {
|
|
3866
3862
|
const c = o.current.get(a) ?? /* @__PURE__ */ new Set();
|
|
3867
3863
|
if (d !== null) {
|
|
@@ -3870,19 +3866,19 @@ var bc = "_19519k82", Sc = "_19519k83", wc = "_19519k85", Rc = "_19519k86", kc =
|
|
|
3870
3866
|
}
|
|
3871
3867
|
c.delete(l), !(c.size > 0) && (o.current.delete(a), r((u) => vu(u, a)));
|
|
3872
3868
|
}, []);
|
|
3873
|
-
return /* @__PURE__ */ s(
|
|
3869
|
+
return /* @__PURE__ */ s(Lo.Provider, {
|
|
3874
3870
|
value: i,
|
|
3875
|
-
children: /* @__PURE__ */ s(
|
|
3871
|
+
children: /* @__PURE__ */ s(To.Provider, {
|
|
3876
3872
|
value: n,
|
|
3877
|
-
children: /* @__PURE__ */ s(
|
|
3873
|
+
children: /* @__PURE__ */ s(Mo.Provider, {
|
|
3878
3874
|
value: t,
|
|
3879
3875
|
children: e
|
|
3880
3876
|
})
|
|
3881
3877
|
})
|
|
3882
3878
|
});
|
|
3883
|
-
}, du = () =>
|
|
3879
|
+
}, du = () => D(Mo), cu = () => D(Lo), uu = (e) => {
|
|
3884
3880
|
const t = cu(), r = Q(), n = M(null);
|
|
3885
|
-
return
|
|
3881
|
+
return F(() => {
|
|
3886
3882
|
if (typeof ResizeObserver > "u") return;
|
|
3887
3883
|
const o = n.current;
|
|
3888
3884
|
if (o === null) return;
|
|
@@ -3900,19 +3896,19 @@ var bc = "_19519k82", Sc = "_19519k83", wc = "_19519k85", Rc = "_19519k86", kc =
|
|
|
3900
3896
|
r,
|
|
3901
3897
|
t
|
|
3902
3898
|
]), n;
|
|
3903
|
-
}, hu = () =>
|
|
3899
|
+
}, hu = () => D(To), gu = (e, t, r) => {
|
|
3904
3900
|
const n = e.get(t);
|
|
3905
|
-
if (n !== void 0 && Math.abs(n.width - r.width) <
|
|
3901
|
+
if (n !== void 0 && Math.abs(n.width - r.width) < zr && Math.abs(n.height - r.height) < zr) return e;
|
|
3906
3902
|
const o = new Map(e);
|
|
3907
3903
|
return o.set(t, r), o;
|
|
3908
3904
|
}, vu = (e, t) => {
|
|
3909
3905
|
if (!e.has(t)) return e;
|
|
3910
3906
|
const r = new Map(e);
|
|
3911
3907
|
return r.delete(t), r;
|
|
3912
|
-
},
|
|
3913
|
-
[
|
|
3908
|
+
}, No = "data-edit-kind", fu = "data-edit-id", pu = "observations", mu = /* @__PURE__ */ new Set(["annotation"]), Au = (e) => mu.has(e.kind), yu = (e, t) => e === t ? !0 : e === null || t === null || e.kind !== t.kind ? !1 : e.id === t.id, _e = (e) => ({
|
|
3909
|
+
[No]: e.kind,
|
|
3914
3910
|
[fu]: e.id
|
|
3915
|
-
}), xu = () => ({ [
|
|
3911
|
+
}), xu = () => ({ [No]: pu }), $f = (e, t) => e !== null && e.annotationId === t ? e : null, bu = (e, t) => e.annotationId === t.annotationId && e.translation.x === t.translation.x && e.translation.y === t.translation.y, _f = (e, t, r) => e !== null && e.annotationId === t && e.endpoint === r ? e : null, Su = (e, t) => e.annotationId === t.annotationId && e.endpoint === t.endpoint && e.anchor.x === t.anchor.x && e.anchor.y === t.anchor.y, ep = (e, t, r) => e !== null && e.annotationId === t && e.endpoint === r ? e : null, wu = (e, t) => e.annotationId === t.annotationId && e.endpoint === t.endpoint && Hi(e.point.anchor, t.point.anchor), tp = (e, t) => e !== null && e.annotationId === t ? e : null, Ru = (e, t) => e.annotationId === t.annotationId && e.region.x === t.region.x && e.region.y === t.region.y && e.region.width === t.region.width && e.region.height === t.region.height, rp = (e, t) => e !== null && e.annotationId === t ? e : null, ku = (e, t) => e.annotationId === t.annotationId && e.at.x === t.at.x && e.width === t.width && e.shift === t.shift, Ke = ({ standingInteraction: e }, t) => e !== null && be(e, t) ? e : null, Cu = (e, t) => {
|
|
3916
3912
|
if (e === null) return !1;
|
|
3917
3913
|
switch (t.kind) {
|
|
3918
3914
|
case "difference-arrow-endpoint-drag":
|
|
@@ -3930,14 +3926,14 @@ var bc = "_19519k82", Sc = "_19519k83", wc = "_19519k85", Rc = "_19519k86", kc =
|
|
|
3930
3926
|
case "menu":
|
|
3931
3927
|
return !1;
|
|
3932
3928
|
}
|
|
3933
|
-
}, be = (e, t) => e.kind === t,
|
|
3929
|
+
}, be = (e, t) => e.kind === t, Ho = () => Ln((e) => ({
|
|
3934
3930
|
menuTrigger: null,
|
|
3935
3931
|
chromeUnderPointer: null,
|
|
3936
3932
|
editTargetUnderPointer: null,
|
|
3937
3933
|
standingInteraction: null,
|
|
3938
3934
|
pressContext: null,
|
|
3939
3935
|
caret: null,
|
|
3940
|
-
setMenuTrigger: (t) => e((r) =>
|
|
3936
|
+
setMenuTrigger: (t) => e((r) => Fi(r.menuTrigger, t) ? r : { menuTrigger: t }),
|
|
3941
3937
|
setChromeUnderPointer: (t) => e({ chromeUnderPointer: t }),
|
|
3942
3938
|
setEditTargetUnderPointer: (t) => e((r) => yu(r.editTargetUnderPointer, t) ? r : { editTargetUnderPointer: t }),
|
|
3943
3939
|
claimInteraction: (t) => e((r) => Cu(r.standingInteraction, t) ? r : { standingInteraction: t }),
|
|
@@ -3951,35 +3947,35 @@ var bc = "_19519k82", Sc = "_19519k83", wc = "_19519k85", Rc = "_19519k86", kc =
|
|
|
3951
3947
|
...r.caret,
|
|
3952
3948
|
editor: t
|
|
3953
3949
|
} })
|
|
3954
|
-
})),
|
|
3955
|
-
const [t] = V(() =>
|
|
3956
|
-
return /* @__PURE__ */ s(
|
|
3950
|
+
})), gr = z(null), Eu = Ho(), np = ({ children: e }) => {
|
|
3951
|
+
const [t] = V(() => Ho());
|
|
3952
|
+
return /* @__PURE__ */ s(gr.Provider, {
|
|
3957
3953
|
value: t,
|
|
3958
3954
|
children: e
|
|
3959
3955
|
});
|
|
3960
3956
|
}, op = () => {
|
|
3961
|
-
const e =
|
|
3957
|
+
const e = D(gr);
|
|
3962
3958
|
if (e === null) throw new Error("useEditorStore must be used inside an <EditorProvider>.");
|
|
3963
3959
|
return e;
|
|
3964
3960
|
};
|
|
3965
3961
|
function ye(e) {
|
|
3966
|
-
return Je(
|
|
3962
|
+
return Je(D(gr) ?? Eu, e);
|
|
3967
3963
|
}
|
|
3968
|
-
var
|
|
3964
|
+
var Fo = z(null), Pu = ({ panelRect: e, children: t }) => {
|
|
3969
3965
|
const r = Iu(e);
|
|
3970
|
-
return /* @__PURE__ */ s(
|
|
3966
|
+
return /* @__PURE__ */ s(Fo.Provider, {
|
|
3971
3967
|
value: r,
|
|
3972
3968
|
children: t
|
|
3973
3969
|
});
|
|
3974
3970
|
}, Bu = () => {
|
|
3975
|
-
const e =
|
|
3971
|
+
const e = D(Fo);
|
|
3976
3972
|
if (e === null) throw new Error("Difference arrows read outside a <DifferenceArrowsProvider>.");
|
|
3977
3973
|
return e;
|
|
3978
|
-
},
|
|
3974
|
+
}, Qr = (e, t, r) => t.isColorAuthored ? t.color : Ca(e.start, e.end, {
|
|
3979
3975
|
start: r(e.start),
|
|
3980
3976
|
end: r(e.end)
|
|
3981
3977
|
}) ?? t.color, Iu = (e) => {
|
|
3982
|
-
const { formattingLocale: t } = K(), r = Re(), { fonts: n } = Fe(), o = ye((m) => Ke(m, "difference-arrow-endpoint-drag")), i = as(), a =
|
|
3978
|
+
const { formattingLocale: t } = K(), r = Re(), { fonts: n } = Fe(), o = ye((m) => Ke(m, "difference-arrow-endpoint-drag")), i = as(), a = ko(), { differenceArrows: l, mainAxis: d, parsingLocale: c } = I(X((m) => ({
|
|
3983
3979
|
differenceArrows: m.annotations.differenceArrows,
|
|
3984
3980
|
mainAxis: m.coordSystem.type === "cartesian" ? m.coordSystem.mainAxis : "x",
|
|
3985
3981
|
parsingLocale: m.config.parsingLocale
|
|
@@ -3994,17 +3990,17 @@ var Do = z(null), Pu = ({ panelRect: e, children: t }) => {
|
|
|
3994
3990
|
g,
|
|
3995
3991
|
u
|
|
3996
3992
|
]), f = y(() => Mu(r, n.familyDefault), [r, n.familyDefault]), A = y(() => l.map((m) => {
|
|
3997
|
-
const b = a(m.id), x =
|
|
3993
|
+
const b = a(m.id), x = Kr(m, b, v, f);
|
|
3998
3994
|
return {
|
|
3999
3995
|
...x,
|
|
4000
3996
|
arrow: m,
|
|
4001
3997
|
style: b,
|
|
4002
|
-
color:
|
|
3998
|
+
color: Qr(m, b, i),
|
|
4003
3999
|
committedArrow: m,
|
|
4004
4000
|
committedLabelBox: x.labelBox,
|
|
4005
4001
|
committedLabelText: x.labelText,
|
|
4006
4002
|
isDragged: !1,
|
|
4007
|
-
hasComparableEndpoints:
|
|
4003
|
+
hasComparableEndpoints: Rr(m.start, m.end)
|
|
4008
4004
|
};
|
|
4009
4005
|
}), [
|
|
4010
4006
|
l,
|
|
@@ -4017,15 +4013,15 @@ var Do = z(null), Pu = ({ panelRect: e, children: t }) => {
|
|
|
4017
4013
|
if (m.id !== o.annotationId) return m;
|
|
4018
4014
|
const b = Lu(m.committedArrow, o);
|
|
4019
4015
|
return {
|
|
4020
|
-
...
|
|
4016
|
+
...Kr(b, m.style, v, f),
|
|
4021
4017
|
style: m.style,
|
|
4022
|
-
color:
|
|
4018
|
+
color: Qr(b, m.style, i),
|
|
4023
4019
|
arrow: b,
|
|
4024
4020
|
committedArrow: m.committedArrow,
|
|
4025
4021
|
committedLabelBox: m.committedLabelBox,
|
|
4026
4022
|
committedLabelText: m.committedLabelText,
|
|
4027
4023
|
isDragged: !0,
|
|
4028
|
-
hasComparableEndpoints:
|
|
4024
|
+
hasComparableEndpoints: Rr(b.start, b.end)
|
|
4029
4025
|
};
|
|
4030
4026
|
}), [
|
|
4031
4027
|
A,
|
|
@@ -4034,15 +4030,15 @@ var Do = z(null), Pu = ({ panelRect: e, children: t }) => {
|
|
|
4034
4030
|
f,
|
|
4035
4031
|
i
|
|
4036
4032
|
]);
|
|
4037
|
-
},
|
|
4038
|
-
const o =
|
|
4033
|
+
}, Kr = (e, t, r, n) => {
|
|
4034
|
+
const o = Xi({
|
|
4039
4035
|
arrow: e,
|
|
4040
4036
|
style: t,
|
|
4041
4037
|
...r
|
|
4042
4038
|
});
|
|
4043
4039
|
return {
|
|
4044
4040
|
...o,
|
|
4045
|
-
labelBox:
|
|
4041
|
+
labelBox: la({
|
|
4046
4042
|
labelPosition: o.labelPosition,
|
|
4047
4043
|
measuredTextWidth: n(o.labelText, t.label),
|
|
4048
4044
|
label: t.label
|
|
@@ -4051,7 +4047,7 @@ var Do = z(null), Pu = ({ panelRect: e, children: t }) => {
|
|
|
4051
4047
|
}, Mu = (e, t) => {
|
|
4052
4048
|
const r = /* @__PURE__ */ new Map();
|
|
4053
4049
|
return (n, o) => {
|
|
4054
|
-
const i =
|
|
4050
|
+
const i = j(o, t), a = `${i.family}|${i.size}|${i.weight}|${n}`, l = r.get(a);
|
|
4055
4051
|
if (l !== void 0) return l;
|
|
4056
4052
|
const { width: d } = e.measureText(n, i);
|
|
4057
4053
|
return r.set(a, d), d;
|
|
@@ -4095,8 +4091,8 @@ var Ou = "vultop2", Wu = "vultop3", Gu = "vultop4", Uu = "vultop5", Vu = "vultop
|
|
|
4095
4091
|
return i <= 0.03928 ? i / 12.92 : ((i + 0.055) / 1.055) ** 2.4;
|
|
4096
4092
|
};
|
|
4097
4093
|
return 0.2126 * n(e) + 0.7152 * n(t) + 0.0722 * n(r);
|
|
4098
|
-
}, ju = (e, t, r = "full") => !e || t.width < 120 || t.height < 80 ? "hidden" : t.width < 200 || r === "mini" ? "mini" : "full",
|
|
4099
|
-
const { background: r } =
|
|
4094
|
+
}, ju = (e, t, r = "full") => !e || t.width < 120 || t.height < 80 ? "hidden" : t.width < 200 || r === "mini" ? "mini" : "full", Do = ({ visual: e, placement: t }) => {
|
|
4095
|
+
const { background: r } = Sn(L()), n = Qu(r);
|
|
4100
4096
|
return /* @__PURE__ */ S("a", {
|
|
4101
4097
|
className: je(Du, e === "mini" && "vultop1", t === "footer" ? Vu : zu),
|
|
4102
4098
|
href: Hu,
|
|
@@ -4116,16 +4112,16 @@ var Ou = "vultop2", Wu = "vultop3", Gu = "vultop4", Uu = "vultop5", Vu = "vultop
|
|
|
4116
4112
|
})]
|
|
4117
4113
|
})]
|
|
4118
4114
|
});
|
|
4119
|
-
},
|
|
4115
|
+
}, Oo = z({
|
|
4120
4116
|
Title: null,
|
|
4121
4117
|
Caption: null,
|
|
4122
4118
|
TextAnnotation: null
|
|
4123
|
-
}), ip = ({ editors: e, children: t }) => /* @__PURE__ */ s(
|
|
4119
|
+
}), ip = ({ editors: e, children: t }) => /* @__PURE__ */ s(Oo.Provider, {
|
|
4124
4120
|
value: e,
|
|
4125
4121
|
children: t
|
|
4126
|
-
}),
|
|
4122
|
+
}), vr = () => D(Oo), Yr = "_4dlrid0", Xu = "xfz7dq0";
|
|
4127
4123
|
var qu = "xfz7dq2", Ju = "xfz7dq3", Zu = "xfz7dq4", $u = "xfz7dq5", _u = ({ ref: e, footerRect: t, mode: r = ve.readonly, caption: n, isCaptionVisible: o, source: i, isSourceVisible: a, captionStyle: l, sourceStyle: d, brandMark: c }) => {
|
|
4128
|
-
const { Caption: u } =
|
|
4124
|
+
const { Caption: u } = vr(), h = $e[ar(r)].inlineTextEditing ? u : null, g = o && (h !== null || n !== null), v = a && i !== null && nh(i), f = c !== "hidden";
|
|
4129
4125
|
return !g && !v && !f ? null : /* @__PURE__ */ S("div", {
|
|
4130
4126
|
ref: e,
|
|
4131
4127
|
className: Xu,
|
|
@@ -4145,22 +4141,22 @@ var qu = "xfz7dq2", Ju = "xfz7dq3", Zu = "xfz7dq4", $u = "xfz7dq5", _u = ({ ref:
|
|
|
4145
4141
|
children: [v && /* @__PURE__ */ s(th, {
|
|
4146
4142
|
source: i,
|
|
4147
4143
|
sourceStyle: d
|
|
4148
|
-
}), c !== "hidden" ? /* @__PURE__ */ s(
|
|
4144
|
+
}), c !== "hidden" ? /* @__PURE__ */ s(Do, {
|
|
4149
4145
|
visual: c,
|
|
4150
4146
|
placement: "footer"
|
|
4151
4147
|
}) : null]
|
|
4152
4148
|
})]
|
|
4153
4149
|
});
|
|
4154
4150
|
}, eh = ({ caption: e, captionStyle: t }) => e === null ? null : typeof e == "string" ? /* @__PURE__ */ s("p", {
|
|
4155
|
-
className:
|
|
4151
|
+
className: Yr,
|
|
4156
4152
|
style: Ae(t),
|
|
4157
4153
|
children: e
|
|
4158
4154
|
}) : /* @__PURE__ */ s("div", {
|
|
4159
|
-
className:
|
|
4155
|
+
className: Yr,
|
|
4160
4156
|
style: Ae(t),
|
|
4161
4157
|
children: /* @__PURE__ */ s(Me, { content: e })
|
|
4162
4158
|
}), th = ({ source: e, sourceStyle: t }) => {
|
|
4163
|
-
const r =
|
|
4159
|
+
const r = Zt(e.url) ? e.url : void 0, n = e.label ?? (r !== void 0 ? rh(r) : "");
|
|
4164
4160
|
return n === "" && r === void 0 ? null : /* @__PURE__ */ S("span", {
|
|
4165
4161
|
className: qu,
|
|
4166
4162
|
style: Ae(t.label),
|
|
@@ -4185,9 +4181,9 @@ var qu = "xfz7dq2", Ju = "xfz7dq3", Zu = "xfz7dq4", $u = "xfz7dq5", _u = ({ ref:
|
|
|
4185
4181
|
} catch {
|
|
4186
4182
|
return e;
|
|
4187
4183
|
}
|
|
4188
|
-
}, nh = (e) => e.label !== void 0 && e.label !== "" || e.url !== void 0 && e.url !== "" &&
|
|
4184
|
+
}, nh = (e) => e.label !== void 0 && e.label !== "" || e.url !== void 0 && e.url !== "" && Zt(e.url), oh = "_1k4qtbg0";
|
|
4189
4185
|
var ih = 22, ah = ({ ref: e, headerRect: t, mode: r = ve.readonly, title: n, isTitleVisible: o, subtitle: i, isSubtitleVisible: a, headingStyle: l, subtitleStyle: d, brandMark: c }) => {
|
|
4190
|
-
const { Title: u } =
|
|
4186
|
+
const { Title: u } = vr(), h = $e[ar(r)].inlineTextEditing ? u : null, g = h !== null, v = o && (g || n !== null), f = a && (g || i !== null), A = c !== "hidden";
|
|
4191
4187
|
return !v && !f && !A ? null : /* @__PURE__ */ S("div", {
|
|
4192
4188
|
ref: e,
|
|
4193
4189
|
className: je(oh, A && "_1k4qtbg1"),
|
|
@@ -4211,7 +4207,7 @@ var ih = 22, ah = ({ ref: e, headerRect: t, mode: r = ve.readonly, title: n, isT
|
|
|
4211
4207
|
subtitle: i,
|
|
4212
4208
|
headingStyle: l,
|
|
4213
4209
|
subtitleStyle: d
|
|
4214
|
-
}), c !== "hidden" ? /* @__PURE__ */ s(
|
|
4210
|
+
}), c !== "hidden" ? /* @__PURE__ */ s(Do, {
|
|
4215
4211
|
visual: c,
|
|
4216
4212
|
placement: "header"
|
|
4217
4213
|
}) : null]
|
|
@@ -4237,16 +4233,16 @@ var ih = 22, ah = ({ ref: e, headerRect: t, mode: r = ve.readonly, title: n, isT
|
|
|
4237
4233
|
}))] });
|
|
4238
4234
|
}, lh = (e) => {
|
|
4239
4235
|
const t = L();
|
|
4240
|
-
return y(() =>
|
|
4241
|
-
},
|
|
4236
|
+
return y(() => lt(t, e), [t, e]);
|
|
4237
|
+
}, Wo = () => {
|
|
4242
4238
|
const e = L();
|
|
4243
|
-
return y(() =>
|
|
4239
|
+
return y(() => Rn(e), [e]);
|
|
4244
4240
|
}, dh = "_1u9qprb0", ch = "_1u9qprb1", uh = /* @__PURE__ */ os({
|
|
4245
4241
|
groupRow: () => vh,
|
|
4246
|
-
item: () =>
|
|
4242
|
+
item: () => Go,
|
|
4247
4243
|
trendRow: () => gh,
|
|
4248
4244
|
valueRow: () => hh
|
|
4249
|
-
}), hh = "_9aen060", gh = "_9aen061", vh = "_9aen062",
|
|
4245
|
+
}), hh = "_9aen060", gh = "_9aen061", vh = "_9aen062", Go = "_9aen063", fh = {
|
|
4250
4246
|
xxs: 8,
|
|
4251
4247
|
xs: 12,
|
|
4252
4248
|
sm: 16,
|
|
@@ -4256,7 +4252,7 @@ var ih = 22, ah = ({ ref: e, headerRect: t, mode: r = ve.readonly, title: n, isT
|
|
|
4256
4252
|
}, ph = {
|
|
4257
4253
|
primary: "asohov1 asohov0",
|
|
4258
4254
|
secondary: "asohov2 asohov0"
|
|
4259
|
-
},
|
|
4255
|
+
}, Uo = ({ children: e, title: t, variant: r = "primary", size: n = "sm", ...o }) => {
|
|
4260
4256
|
const i = Q(), a = fh[n];
|
|
4261
4257
|
return /* @__PURE__ */ S("svg", {
|
|
4262
4258
|
className: ph[r],
|
|
@@ -4272,7 +4268,7 @@ var ih = 22, ah = ({ ref: e, headerRect: t, mode: r = ve.readonly, title: n, isT
|
|
|
4272
4268
|
children: t
|
|
4273
4269
|
}), e]
|
|
4274
4270
|
});
|
|
4275
|
-
}, mh = (e) => /* @__PURE__ */ s(
|
|
4271
|
+
}, mh = (e) => /* @__PURE__ */ s(Uo, {
|
|
4276
4272
|
...e,
|
|
4277
4273
|
children: /* @__PURE__ */ S("g", {
|
|
4278
4274
|
stroke: "currentColor",
|
|
@@ -4281,7 +4277,7 @@ var ih = 22, ah = ({ ref: e, headerRect: t, mode: r = ve.readonly, title: n, isT
|
|
|
4281
4277
|
strokeLinejoin: "round",
|
|
4282
4278
|
children: [/* @__PURE__ */ s("path", { d: "m5 12 7-7 7 7" }), /* @__PURE__ */ s("path", { d: "M12 19V5" })]
|
|
4283
4279
|
})
|
|
4284
|
-
}), Ah = (e) => /* @__PURE__ */ s(
|
|
4280
|
+
}), Ah = (e) => /* @__PURE__ */ s(Uo, {
|
|
4285
4281
|
...e,
|
|
4286
4282
|
children: /* @__PURE__ */ s("g", {
|
|
4287
4283
|
stroke: "currentColor",
|
|
@@ -4297,9 +4293,9 @@ var wh = ({ segment: e, itemStyle: t }) => {
|
|
|
4297
4293
|
size: e.size
|
|
4298
4294
|
});
|
|
4299
4295
|
if (e.kind === "trendArrow") {
|
|
4300
|
-
const o =
|
|
4296
|
+
const o = Vo(t, e.direction);
|
|
4301
4297
|
return /* @__PURE__ */ s("div", {
|
|
4302
|
-
className:
|
|
4298
|
+
className: ut(Sh, e.direction === "down" && "n7clvo4"),
|
|
4303
4299
|
style: {
|
|
4304
4300
|
color: o,
|
|
4305
4301
|
backgroundColor: e.direction === "flat" ? Y(p.textPrimary, 0.1) : Y(o, 0.2)
|
|
@@ -4320,7 +4316,7 @@ var wh = ({ segment: e, itemStyle: t }) => {
|
|
|
4320
4316
|
children: e.text
|
|
4321
4317
|
});
|
|
4322
4318
|
}, Rh = ({ swatch: e, size: t }) => {
|
|
4323
|
-
const r = me(), n =
|
|
4319
|
+
const r = me(), n = Rt(e.layerId, e.value, t);
|
|
4324
4320
|
return /* @__PURE__ */ s(Ze, {
|
|
4325
4321
|
shape: r(e.geom, "cartesian")?.swatchShape ?? "square",
|
|
4326
4322
|
color: e.color,
|
|
@@ -4347,7 +4343,7 @@ var wh = ({ segment: e, itemStyle: t }) => {
|
|
|
4347
4343
|
case "trendPercentage":
|
|
4348
4344
|
return { style: Pe({
|
|
4349
4345
|
...t.trend,
|
|
4350
|
-
textColor:
|
|
4346
|
+
textColor: Vo(t, e.trendDirection ?? "up")
|
|
4351
4347
|
}) };
|
|
4352
4348
|
case "trendReference":
|
|
4353
4349
|
return {
|
|
@@ -4360,7 +4356,7 @@ var wh = ({ segment: e, itemStyle: t }) => {
|
|
|
4360
4356
|
default:
|
|
4361
4357
|
return e.textRole;
|
|
4362
4358
|
}
|
|
4363
|
-
},
|
|
4359
|
+
}, Vo = (e, t) => {
|
|
4364
4360
|
switch (t) {
|
|
4365
4361
|
case "up":
|
|
4366
4362
|
return e.trendUp.textColor;
|
|
@@ -4372,8 +4368,8 @@ var wh = ({ segment: e, itemStyle: t }) => {
|
|
|
4372
4368
|
return t;
|
|
4373
4369
|
}
|
|
4374
4370
|
}, Ch = ({ item: e, itemStyle: t }) => /* @__PURE__ */ s("div", {
|
|
4375
|
-
className:
|
|
4376
|
-
children:
|
|
4371
|
+
className: Go,
|
|
4372
|
+
children: sn(e, t.swatch.size).map((r) => /* @__PURE__ */ s(Eh, {
|
|
4377
4373
|
row: r,
|
|
4378
4374
|
itemStyle: t
|
|
4379
4375
|
}, r.role))
|
|
@@ -4394,14 +4390,14 @@ var wh = ({ segment: e, itemStyle: t }) => {
|
|
|
4394
4390
|
const t = e.segments.find((r) => r.kind === "trendArrow");
|
|
4395
4391
|
return t?.kind === "trendArrow" ? t.direction : void 0;
|
|
4396
4392
|
}, Bh = ({ headline: e, rect: t, resolvedSize: r, visibleItemCount: n, isInDonutHole: o = !1 }) => {
|
|
4397
|
-
const i =
|
|
4393
|
+
const i = Wo(), a = lh(r), l = {
|
|
4398
4394
|
left: t.x,
|
|
4399
4395
|
top: t.y,
|
|
4400
4396
|
width: t.width,
|
|
4401
4397
|
height: t.height
|
|
4402
4398
|
};
|
|
4403
4399
|
if (e.kind === "grandTotal") {
|
|
4404
|
-
const d =
|
|
4400
|
+
const d = wn(a, o);
|
|
4405
4401
|
return /* @__PURE__ */ s("div", {
|
|
4406
4402
|
className: ch,
|
|
4407
4403
|
style: l,
|
|
@@ -4424,9 +4420,9 @@ var wh = ({ segment: e, itemStyle: t }) => {
|
|
|
4424
4420
|
});
|
|
4425
4421
|
}, Ih = (e, t) => e.isTextColorAuthored ? e.textColor : t ?? e.textColor, Mh = "_1oj6yix0";
|
|
4426
4422
|
var Lh = "_1oj6yix2", Th = 8, Nh = 16, Hh = 2, Fh = ({ legends: e, containerRect: t }) => {
|
|
4427
|
-
const r =
|
|
4423
|
+
const r = Co(), n = we(r), { placements: o, hasOverlap: i } = Dh(e, t, n), a = Wh(r);
|
|
4428
4424
|
if (o.length === 0) return null;
|
|
4429
|
-
const l = i ? Nh : Th, d = l - Hh, c =
|
|
4425
|
+
const l = i ? Nh : Th, d = l - Hh, c = At(r.lineType);
|
|
4430
4426
|
return /* @__PURE__ */ S("div", {
|
|
4431
4427
|
className: Mh,
|
|
4432
4428
|
children: [i && /* @__PURE__ */ s("svg", {
|
|
@@ -4469,7 +4465,7 @@ var Lh = "_1oj6yix2", Th = 8, Nh = 16, Hh = 2, Fh = ({ legends: e, containerRect
|
|
|
4469
4465
|
return n.length === 0 || t.height <= 0 ? {
|
|
4470
4466
|
placements: [],
|
|
4471
4467
|
hasOverlap: !1
|
|
4472
|
-
} :
|
|
4468
|
+
} : qi({
|
|
4473
4469
|
items: n,
|
|
4474
4470
|
containerHeight: t.height,
|
|
4475
4471
|
labelHeight: r
|
|
@@ -4490,31 +4486,31 @@ var Lh = "_1oj6yix2", Th = 8, Nh = 16, Hh = 2, Fh = ({ legends: e, containerRect
|
|
|
4490
4486
|
}, Wh = (e) => ({
|
|
4491
4487
|
...fe(e),
|
|
4492
4488
|
lineHeight: e.lineHeight
|
|
4493
|
-
}), Gh = "_6a636s0",
|
|
4489
|
+
}), Gh = "_6a636s0", zo = () => {
|
|
4494
4490
|
const e = L();
|
|
4495
4491
|
return y(() => za(e), [e]);
|
|
4496
|
-
},
|
|
4492
|
+
}, Qo = (e) => ({
|
|
4497
4493
|
background: e.background,
|
|
4498
4494
|
borderRadius: e.borderRadius,
|
|
4499
|
-
...
|
|
4500
|
-
}),
|
|
4501
|
-
...
|
|
4502
|
-
...
|
|
4495
|
+
...Xo(e.borderWidth, e.borderColor)
|
|
4496
|
+
}), Ko = (e) => ({
|
|
4497
|
+
...jo(e),
|
|
4498
|
+
...Qo(e),
|
|
4503
4499
|
paddingInline: e.paddingInline,
|
|
4504
4500
|
paddingBlock: e.paddingBlock
|
|
4505
|
-
}),
|
|
4501
|
+
}), Yo = (e) => e.background !== void 0 || e.borderWidth > 0, Uh = (e, t) => ({
|
|
4506
4502
|
background: e.background,
|
|
4507
4503
|
borderRadius: e.borderRadius,
|
|
4508
4504
|
paddingInline: e.paddingInline,
|
|
4509
4505
|
paddingBlock: e.paddingBlock,
|
|
4510
|
-
boxShadow:
|
|
4511
|
-
...
|
|
4512
|
-
...
|
|
4513
|
-
}),
|
|
4506
|
+
boxShadow: lr(e.shadow),
|
|
4507
|
+
...Xo(e.borderWidth, e.borderColor),
|
|
4508
|
+
...jo(t)
|
|
4509
|
+
}), jo = (e) => ({
|
|
4514
4510
|
...fe(e),
|
|
4515
4511
|
color: e.textColor,
|
|
4516
4512
|
lineHeight: e.lineHeight
|
|
4517
|
-
}),
|
|
4513
|
+
}), Xo = (e, t) => e > 0 && t !== void 0 ? { border: `${e}px solid ${t}` } : {}, Vh = "_1kjk02r0", zh = {
|
|
4518
4514
|
1: "_1kjk02r1",
|
|
4519
4515
|
2: "_1kjk02r2"
|
|
4520
4516
|
}, Qh = {
|
|
@@ -4528,7 +4524,7 @@ var Kh = {
|
|
|
4528
4524
|
1: "_1kjk02r8",
|
|
4529
4525
|
2: "_1kjk02r9"
|
|
4530
4526
|
}, jh = "_1kjk02ra", Xh = "_1kjk02rb";
|
|
4531
|
-
var qh = "_1dw9dgx0",
|
|
4527
|
+
var qh = "_1dw9dgx0", Ft = "\0", Jh = (e, t) => {
|
|
4532
4528
|
const r = [];
|
|
4533
4529
|
return e.forEach((n, o) => {
|
|
4534
4530
|
const i = n.aesthetics.includes("size");
|
|
@@ -4537,9 +4533,9 @@ var qh = "_1dw9dgx0", Dt = "\0", Jh = (e, t) => {
|
|
|
4537
4533
|
const u = Number(a.visual.size);
|
|
4538
4534
|
if (!Number.isFinite(u) || u <= 0) continue;
|
|
4539
4535
|
}
|
|
4540
|
-
const l = a.visual.color ?? "", d = i ? `${
|
|
4536
|
+
const l = a.visual.color ?? "", d = i ? `${Ft}${Number(a.visual.size)}` : "", c = a.visual.lineType;
|
|
4541
4537
|
r.push({
|
|
4542
|
-
key: `${o}${
|
|
4538
|
+
key: `${o}${Ft}${String(a.value)}${Ft}${l}${d}`,
|
|
4543
4539
|
formattedLabel: a.formattedLabel,
|
|
4544
4540
|
visual: a.visual,
|
|
4545
4541
|
swatchShape: t(a.geom),
|
|
@@ -4550,8 +4546,8 @@ var qh = "_1dw9dgx0", Dt = "\0", Jh = (e, t) => {
|
|
|
4550
4546
|
});
|
|
4551
4547
|
}
|
|
4552
4548
|
}), r;
|
|
4553
|
-
},
|
|
4554
|
-
const { swatch: a } =
|
|
4549
|
+
}, qo = ({ pill: e }) => e.isBubble ? /* @__PURE__ */ s(_h, { pill: e }) : /* @__PURE__ */ s($h, { pill: e }), Zh = ({ color: e, lineType: t, shape: r, label: n, layerId: o, groupValue: i }) => {
|
|
4550
|
+
const { swatch: a } = Et(), l = Rt(o, i, a.size);
|
|
4555
4551
|
return e ? /* @__PURE__ */ s(Ze, {
|
|
4556
4552
|
shape: r,
|
|
4557
4553
|
color: e,
|
|
@@ -4572,7 +4568,7 @@ var qh = "_1dw9dgx0", Dt = "\0", Jh = (e, t) => {
|
|
|
4572
4568
|
layerId: e.layerId,
|
|
4573
4569
|
groupValue: e.groupValue
|
|
4574
4570
|
}), /* @__PURE__ */ s("span", { children: e.formattedLabel })] }), _h = ({ pill: e }) => {
|
|
4575
|
-
const t = Number(e.visual.size), r =
|
|
4571
|
+
const t = Number(e.visual.size), r = Rt(e.layerId, e.groupValue, t);
|
|
4576
4572
|
return /* @__PURE__ */ S(B, { children: [/* @__PURE__ */ s("span", {
|
|
4577
4573
|
className: qh,
|
|
4578
4574
|
style: {
|
|
@@ -4583,16 +4579,16 @@ var qh = "_1dw9dgx0", Dt = "\0", Jh = (e, t) => {
|
|
|
4583
4579
|
}
|
|
4584
4580
|
}), /* @__PURE__ */ s("span", { children: e.formattedLabel })] });
|
|
4585
4581
|
}, eg = ({ hiddenPills: e, placement: t }) => {
|
|
4586
|
-
const r =
|
|
4582
|
+
const r = Ao(), [n, o] = V(!1), i = Et(), a = zo(), l = Ko(i.item), d = tg(e.length, i.item), c = d === null ? void 0 : Qo(i.item), { refs: u, floatingStyles: h } = Nn({
|
|
4587
4583
|
open: n,
|
|
4588
4584
|
placement: t,
|
|
4589
4585
|
middleware: [
|
|
4590
|
-
|
|
4591
|
-
|
|
4592
|
-
|
|
4586
|
+
Ut(4),
|
|
4587
|
+
Gt(),
|
|
4588
|
+
Vt({ padding: 8 })
|
|
4593
4589
|
]
|
|
4594
4590
|
});
|
|
4595
|
-
|
|
4591
|
+
F(() => {
|
|
4596
4592
|
if (!n) return;
|
|
4597
4593
|
const f = (m) => {
|
|
4598
4594
|
const b = m.target;
|
|
@@ -4613,9 +4609,9 @@ var qh = "_1dw9dgx0", Dt = "\0", Jh = (e, t) => {
|
|
|
4613
4609
|
const g = t === "left" || t === "right", v = d === null ? [] : Array.from({ length: d }, (f, A) => d - A);
|
|
4614
4610
|
return /* @__PURE__ */ S(B, { children: [/* @__PURE__ */ S("div", {
|
|
4615
4611
|
ref: u.setReference,
|
|
4616
|
-
className:
|
|
4612
|
+
className: ut(Vh, d !== null && g && Qh[d], d !== null && !g && zh[d]),
|
|
4617
4613
|
children: [d !== null && v.map((f) => /* @__PURE__ */ s("span", {
|
|
4618
|
-
className:
|
|
4614
|
+
className: ut("_1kjk02r5", g ? Yh[d] : Kh[d]),
|
|
4619
4615
|
style: {
|
|
4620
4616
|
...c,
|
|
4621
4617
|
...rg(f, g)
|
|
@@ -4647,12 +4643,12 @@ var qh = "_1dw9dgx0", Dt = "\0", Jh = (e, t) => {
|
|
|
4647
4643
|
className: "_1kjk02rd",
|
|
4648
4644
|
children: e.map((f) => /* @__PURE__ */ s("li", {
|
|
4649
4645
|
className: "_1kjk02re",
|
|
4650
|
-
children: /* @__PURE__ */ s(
|
|
4646
|
+
children: /* @__PURE__ */ s(qo, { pill: f })
|
|
4651
4647
|
}, f.key))
|
|
4652
4648
|
})
|
|
4653
4649
|
})] });
|
|
4654
4650
|
}, tg = (e, t) => {
|
|
4655
|
-
if (!
|
|
4651
|
+
if (!Yo(t)) return null;
|
|
4656
4652
|
const r = Math.min(e - 1, 2);
|
|
4657
4653
|
return r === 1 ? 1 : r === 2 ? 2 : null;
|
|
4658
4654
|
}, rg = (e, t) => {
|
|
@@ -4666,7 +4662,7 @@ var qh = "_1dw9dgx0", Dt = "\0", Jh = (e, t) => {
|
|
|
4666
4662
|
right: "_1cecisi6",
|
|
4667
4663
|
left: "_1cecisi7"
|
|
4668
4664
|
}, lg = "_1cecisi8", dg = ({ edge: e, formattedLegends: t, containerWidth: r, containerHeight: n }) => {
|
|
4669
|
-
const o = Re(), i = Fe(), a =
|
|
4665
|
+
const o = Re(), i = Fe(), a = zo(), l = Et(), d = me(), c = I((w) => w.coordSystem.type), u = y(() => Jh(t, (w) => d(w, c)?.swatchShape ?? "square"), [
|
|
4670
4666
|
t,
|
|
4671
4667
|
d,
|
|
4672
4668
|
c
|
|
@@ -4679,24 +4675,24 @@ var qh = "_1dw9dgx0", Dt = "\0", Jh = (e, t) => {
|
|
|
4679
4675
|
visibleCount: u.length,
|
|
4680
4676
|
hasOverflow: !1
|
|
4681
4677
|
};
|
|
4682
|
-
const w =
|
|
4683
|
-
label:
|
|
4684
|
-
swatchInlineSize: ug(
|
|
4678
|
+
const w = j(l.item, i.fonts.familyDefault), k = we(l.item), E = 2 * (l.item.paddingInline + l.item.borderWidth), C = 2 * (l.item.paddingBlock + l.item.borderWidth), N = (W) => h ? cg(W, k, l.swatch.size, C) : jr({
|
|
4679
|
+
label: W.formattedLabel,
|
|
4680
|
+
swatchInlineSize: ug(W, l.swatch.size),
|
|
4685
4681
|
textMeasurer: o,
|
|
4686
4682
|
font: w,
|
|
4687
4683
|
swatchGap: i.legendSwatchGap,
|
|
4688
4684
|
horizontalChrome: E
|
|
4689
|
-
}),
|
|
4685
|
+
}), H = u.map(N), U = (h ? k + C : jr({
|
|
4690
4686
|
label: `+${u.length}`,
|
|
4691
4687
|
swatchInlineSize: 0,
|
|
4692
4688
|
textMeasurer: o,
|
|
4693
4689
|
font: w,
|
|
4694
4690
|
swatchGap: i.legendSwatchGap,
|
|
4695
4691
|
horizontalChrome: E
|
|
4696
|
-
})) + (
|
|
4692
|
+
})) + (Yo(l.item) ? 8 : 0);
|
|
4697
4693
|
return gg({
|
|
4698
|
-
pillSizes:
|
|
4699
|
-
overflowPillSize:
|
|
4694
|
+
pillSizes: H,
|
|
4695
|
+
overflowPillSize: U,
|
|
4700
4696
|
containerSize: g,
|
|
4701
4697
|
gap: a.gap
|
|
4702
4698
|
});
|
|
@@ -4710,9 +4706,9 @@ var qh = "_1dw9dgx0", Dt = "\0", Jh = (e, t) => {
|
|
|
4710
4706
|
l
|
|
4711
4707
|
]);
|
|
4712
4708
|
if (u.length === 0) return null;
|
|
4713
|
-
const A = u.slice(0, f.visibleCount), m = u.slice(f.visibleCount), b = f.hasOverflow && m.length > 0, x =
|
|
4709
|
+
const A = u.slice(0, f.visibleCount), m = u.slice(f.visibleCount), b = f.hasOverflow && m.length > 0, x = Ko(l.item);
|
|
4714
4710
|
return /* @__PURE__ */ S("div", {
|
|
4715
|
-
className:
|
|
4711
|
+
className: ut(ag[v], ng, {
|
|
4716
4712
|
[ig]: h,
|
|
4717
4713
|
[og]: !h,
|
|
4718
4714
|
[sg[e === "left" ? "left" : "right"]]: h
|
|
@@ -4721,19 +4717,19 @@ var qh = "_1dw9dgx0", Dt = "\0", Jh = (e, t) => {
|
|
|
4721
4717
|
children: [A.map((w) => /* @__PURE__ */ s("div", {
|
|
4722
4718
|
className: lg,
|
|
4723
4719
|
style: x,
|
|
4724
|
-
children: /* @__PURE__ */ s(
|
|
4720
|
+
children: /* @__PURE__ */ s(qo, { pill: w })
|
|
4725
4721
|
}, w.key)), b && /* @__PURE__ */ s(eg, {
|
|
4726
4722
|
hiddenPills: m,
|
|
4727
4723
|
placement: vg(e)
|
|
4728
4724
|
})]
|
|
4729
4725
|
});
|
|
4730
|
-
},
|
|
4726
|
+
}, jr = ({ label: e, swatchInlineSize: t, textMeasurer: r, font: n, swatchGap: o, horizontalChrome: i }) => {
|
|
4731
4727
|
const a = r.measureText(e, n).width;
|
|
4732
4728
|
return t + (t > 0 ? o : 0) + a + i;
|
|
4733
4729
|
}, cg = (e, t, r, n) => {
|
|
4734
4730
|
const o = hg(e, r);
|
|
4735
4731
|
return Math.max(t, o) + n;
|
|
4736
|
-
}, ug = (e, t) =>
|
|
4732
|
+
}, ug = (e, t) => pt(e.visual, t, e.isBubble), hg = (e, t) => e.isBubble ? pt(e.visual, t, !0) : t, gg = ({ pillSizes: e, overflowPillSize: t, containerSize: r, gap: n }) => {
|
|
4737
4733
|
if (e.length === 0) return {
|
|
4738
4734
|
visibleCount: 0,
|
|
4739
4735
|
hasOverflow: !1
|
|
@@ -4766,7 +4762,7 @@ var qh = "_1dw9dgx0", Dt = "\0", Jh = (e, t) => {
|
|
|
4766
4762
|
case "right":
|
|
4767
4763
|
return "left";
|
|
4768
4764
|
}
|
|
4769
|
-
}, fg =
|
|
4765
|
+
}, fg = te(function({ formattedLegends: t, rects: r }) {
|
|
4770
4766
|
const n = y(() => {
|
|
4771
4767
|
const o = /* @__PURE__ */ new Map();
|
|
4772
4768
|
for (const i of t) {
|
|
@@ -4804,8 +4800,8 @@ var qh = "_1dw9dgx0", Dt = "\0", Jh = (e, t) => {
|
|
|
4804
4800
|
if (!o) return null;
|
|
4805
4801
|
const i = n(o.geom, r.type);
|
|
4806
4802
|
return i ? i.guideMode ?? null : null;
|
|
4807
|
-
},
|
|
4808
|
-
const { coordSystem: t, layers: r, scales: n } = I(
|
|
4803
|
+
}, Jo = 1, Zo = "4 3", mg = ({ panelRect: e }) => {
|
|
4804
|
+
const { coordSystem: t, layers: r, scales: n } = I(X((d) => ({
|
|
4809
4805
|
coordSystem: d.coordSystem,
|
|
4810
4806
|
layers: d.layers,
|
|
4811
4807
|
scales: d.scales
|
|
@@ -4840,21 +4836,21 @@ var qh = "_1dw9dgx0", Dt = "\0", Jh = (e, t) => {
|
|
|
4840
4836
|
guide: a
|
|
4841
4837
|
});
|
|
4842
4838
|
}, Ag = ({ coordSystem: e, primary: t, panelRect: r, guide: n }) => {
|
|
4843
|
-
const o =
|
|
4844
|
-
return /* @__PURE__ */ s(
|
|
4839
|
+
const o = da(e, t);
|
|
4840
|
+
return /* @__PURE__ */ s(Pt, {
|
|
4845
4841
|
panelRect: r,
|
|
4846
4842
|
children: /* @__PURE__ */ s("line", {
|
|
4847
4843
|
...o,
|
|
4848
4844
|
stroke: n.color,
|
|
4849
|
-
strokeWidth:
|
|
4850
|
-
strokeDasharray:
|
|
4845
|
+
strokeWidth: Jo,
|
|
4846
|
+
strokeDasharray: Zo,
|
|
4851
4847
|
strokeLinecap: "round",
|
|
4852
4848
|
"data-testid": "hover-guide-line"
|
|
4853
4849
|
})
|
|
4854
4850
|
});
|
|
4855
4851
|
}, yg = ({ coordSystem: e, scales: t, primary: r, panelRect: n, guide: o }) => {
|
|
4856
|
-
const i =
|
|
4857
|
-
return i === null ? null : /* @__PURE__ */ s(
|
|
4852
|
+
const i = ca(e, t, r);
|
|
4853
|
+
return i === null ? null : /* @__PURE__ */ s(Pt, {
|
|
4858
4854
|
panelRect: n,
|
|
4859
4855
|
children: /* @__PURE__ */ s("rect", {
|
|
4860
4856
|
...i,
|
|
@@ -4863,8 +4859,8 @@ var qh = "_1dw9dgx0", Dt = "\0", Jh = (e, t) => {
|
|
|
4863
4859
|
})
|
|
4864
4860
|
});
|
|
4865
4861
|
}, xg = ({ coordSystem: e, primary: t, panelRect: r, guide: n }) => {
|
|
4866
|
-
const o =
|
|
4867
|
-
return /* @__PURE__ */ s(
|
|
4862
|
+
const o = Dn(r), i = ee(t.x, e.innerRadius, o), a = ee(t.x, 1, o);
|
|
4863
|
+
return /* @__PURE__ */ s(Pt, {
|
|
4868
4864
|
panelRect: r,
|
|
4869
4865
|
children: /* @__PURE__ */ s("line", {
|
|
4870
4866
|
x1: i.x,
|
|
@@ -4872,17 +4868,17 @@ var qh = "_1dw9dgx0", Dt = "\0", Jh = (e, t) => {
|
|
|
4872
4868
|
x2: a.x,
|
|
4873
4869
|
y2: a.y,
|
|
4874
4870
|
stroke: n.color,
|
|
4875
|
-
strokeWidth:
|
|
4876
|
-
strokeDasharray:
|
|
4871
|
+
strokeWidth: Jo,
|
|
4872
|
+
strokeDasharray: Zo,
|
|
4877
4873
|
strokeLinecap: "round",
|
|
4878
4874
|
"data-testid": "hover-guide-line"
|
|
4879
4875
|
})
|
|
4880
4876
|
});
|
|
4881
4877
|
}, bg = ({ coordSystem: e, primary: t, panelRect: r, guide: n }) => {
|
|
4882
|
-
const o =
|
|
4878
|
+
const o = ua(e, t);
|
|
4883
4879
|
if (o === null) return null;
|
|
4884
4880
|
const i = Se(o);
|
|
4885
|
-
return i ? /* @__PURE__ */ s(
|
|
4881
|
+
return i ? /* @__PURE__ */ s(Pt, {
|
|
4886
4882
|
panelRect: r,
|
|
4887
4883
|
children: /* @__PURE__ */ s("svg", {
|
|
4888
4884
|
viewBox: "-1 -1 2 2",
|
|
@@ -4897,7 +4893,7 @@ var qh = "_1dw9dgx0", Dt = "\0", Jh = (e, t) => {
|
|
|
4897
4893
|
})
|
|
4898
4894
|
})
|
|
4899
4895
|
}) : null;
|
|
4900
|
-
},
|
|
4896
|
+
}, Pt = ({ panelRect: e, children: t }) => /* @__PURE__ */ s("svg", {
|
|
4901
4897
|
x: e.x,
|
|
4902
4898
|
y: e.y,
|
|
4903
4899
|
width: e.width,
|
|
@@ -4908,17 +4904,17 @@ var qh = "_1dw9dgx0", Dt = "\0", Jh = (e, t) => {
|
|
|
4908
4904
|
},
|
|
4909
4905
|
"data-testid": "hover-guide",
|
|
4910
4906
|
children: t
|
|
4911
|
-
}),
|
|
4912
|
-
function
|
|
4913
|
-
return
|
|
4907
|
+
}), $o = z(ve.readonly);
|
|
4908
|
+
function _o() {
|
|
4909
|
+
return D($o);
|
|
4914
4910
|
}
|
|
4915
4911
|
var ap = (e, t, r) => {
|
|
4916
|
-
for (const n of Object.values(
|
|
4912
|
+
for (const n of Object.values(ti)) {
|
|
4917
4913
|
const o = n(e, t, r);
|
|
4918
4914
|
if (o !== null) return o;
|
|
4919
4915
|
}
|
|
4920
4916
|
return null;
|
|
4921
|
-
}, Sg = (e) =>
|
|
4917
|
+
}, Sg = (e) => ti[e] !== void 0, wg = (e, t, r) => ei(e, r, t / 2), Rg = (e, t) => {
|
|
4922
4918
|
const r = Ye(e.start, t), n = Ye(e.end, t);
|
|
4923
4919
|
return r.x === n.x && r.y === n.y ? null : {
|
|
4924
4920
|
shape: "segment",
|
|
@@ -4928,7 +4924,7 @@ var ap = (e, t, r) => {
|
|
|
4928
4924
|
}, kg = (e, { panel: t, measuredBoxes: r }) => {
|
|
4929
4925
|
const n = r.get(e.id);
|
|
4930
4926
|
if (n === void 0) return null;
|
|
4931
|
-
const o =
|
|
4927
|
+
const o = on(e.align), i = Ye(e.at, t);
|
|
4932
4928
|
return {
|
|
4933
4929
|
shape: "rect",
|
|
4934
4930
|
rect: {
|
|
@@ -4938,11 +4934,11 @@ var ap = (e, t, r) => {
|
|
|
4938
4934
|
height: n.height
|
|
4939
4935
|
}
|
|
4940
4936
|
};
|
|
4941
|
-
},
|
|
4937
|
+
}, st = (e, t) => (r, n, o) => {
|
|
4942
4938
|
const i = e(r).find((a) => a.id === n);
|
|
4943
4939
|
return i === void 0 ? null : t(i, o);
|
|
4944
|
-
},
|
|
4945
|
-
const n =
|
|
4940
|
+
}, ei = (e, t, r = 0) => {
|
|
4941
|
+
const n = $t(e, t);
|
|
4946
4942
|
return {
|
|
4947
4943
|
shape: "rect",
|
|
4948
4944
|
rect: {
|
|
@@ -4952,17 +4948,17 @@ var ap = (e, t, r) => {
|
|
|
4952
4948
|
height: n.height + r * 2
|
|
4953
4949
|
}
|
|
4954
4950
|
};
|
|
4955
|
-
},
|
|
4956
|
-
text:
|
|
4957
|
-
shape:
|
|
4958
|
-
image:
|
|
4959
|
-
arrow:
|
|
4951
|
+
}, ti = {
|
|
4952
|
+
text: st((e) => e.textAnnotations, kg),
|
|
4953
|
+
shape: st((e) => e.shapes, (e, t) => wg(e.region, En(t.chromeReaders, e.id).borderWidth, t.panel)),
|
|
4954
|
+
image: st((e) => e.images, (e, t) => ei(e.region, t.panel)),
|
|
4955
|
+
arrow: st((e) => e.arrows, (e, t) => Rg(e, t.panel))
|
|
4960
4956
|
}, Cg = (e, t) => {
|
|
4961
|
-
const r =
|
|
4962
|
-
return r !== null && Sg(r.kind) &&
|
|
4957
|
+
const r = na(e, t);
|
|
4958
|
+
return r !== null && Sg(r.kind) && Aa(r);
|
|
4963
4959
|
}, Eg = 200, Pg = ({ engine: e, store: t, overlayRef: r }) => {
|
|
4964
|
-
const n = $e[
|
|
4965
|
-
|
|
4960
|
+
const n = $e[_o()].tolerance;
|
|
4961
|
+
F(() => {
|
|
4966
4962
|
const o = r.current;
|
|
4967
4963
|
if (!o) return;
|
|
4968
4964
|
const i = Bg(o, e), a = Mg(o, e, t, n ?? void 0);
|
|
@@ -5013,7 +5009,7 @@ var ap = (e, t, r) => {
|
|
|
5013
5009
|
if (A === null) return;
|
|
5014
5010
|
const m = l(f, A), b = r.getState();
|
|
5015
5011
|
if (b.isPointerSuspended) return;
|
|
5016
|
-
const x =
|
|
5012
|
+
const x = kr(m, b.pointerRegions);
|
|
5017
5013
|
if (x !== null) {
|
|
5018
5014
|
b.setHoverState(t.query(x.cursor, n)), b.setTooltipAnchor(Ig(x.tooltip, A));
|
|
5019
5015
|
return;
|
|
@@ -5022,12 +5018,12 @@ var ap = (e, t, r) => {
|
|
|
5022
5018
|
b.setHoverState(t.query(w, n)), b.setTooltipAnchor(null);
|
|
5023
5019
|
}, c = () => {
|
|
5024
5020
|
const f = r.getState();
|
|
5025
|
-
f.hover.primary === null && f.tooltipAnchor === null || (f.setHoverState(
|
|
5021
|
+
f.hover.primary === null && f.tooltipAnchor === null || (f.setHoverState(ct), f.setTooltipAnchor(null));
|
|
5026
5022
|
}, u = (f) => {
|
|
5027
5023
|
const A = r.getState();
|
|
5028
5024
|
if (A.pointerRegions.length === 0) return !1;
|
|
5029
5025
|
const m = a();
|
|
5030
|
-
return m === null ? !1 :
|
|
5026
|
+
return m === null ? !1 : kr(l(f, m), A.pointerRegions) !== null;
|
|
5031
5027
|
}, h = (f) => {
|
|
5032
5028
|
r.getState().isPointerSuspended || u(f) || (document.removeEventListener("pointermove", h), c());
|
|
5033
5029
|
}, g = (f) => {
|
|
@@ -5045,7 +5041,7 @@ var ap = (e, t, r) => {
|
|
|
5045
5041
|
e.removeEventListener("pointermove", g), e.removeEventListener("pointerleave", v), document.removeEventListener("pointermove", h), i !== null && cancelAnimationFrame(i), o = null;
|
|
5046
5042
|
};
|
|
5047
5043
|
}, Lg = ({ panelRect: e }) => {
|
|
5048
|
-
const { engine: t, store: r, overlayRef: n } = ke(), o = $e[
|
|
5044
|
+
const { engine: t, store: r, overlayRef: n } = ke(), o = $e[_o()].observationsPress, i = ye((u) => {
|
|
5049
5045
|
const h = u.editTargetUnderPointer;
|
|
5050
5046
|
return h?.kind === "annotation" ? h.id : null;
|
|
5051
5047
|
}), a = ye((u) => {
|
|
@@ -5069,20 +5065,20 @@ var ap = (e, t, r) => {
|
|
|
5069
5065
|
cursor: Tg(c, a || l),
|
|
5070
5066
|
"data-testid": "pointer-capture-layer"
|
|
5071
5067
|
});
|
|
5072
|
-
}, Tg = (e, t) => e ? "move" : t ? "pointer" : void 0,
|
|
5068
|
+
}, Tg = (e, t) => e ? "move" : t ? "pointer" : void 0, Dt = "data-hover-active", Ng = (e) => {
|
|
5073
5069
|
const { store: t } = ke(), r = Je(t, (n) => n.hover.primary !== null);
|
|
5074
|
-
|
|
5070
|
+
F(() => {
|
|
5075
5071
|
const n = e.current;
|
|
5076
5072
|
if (n)
|
|
5077
|
-
return r ? n.setAttribute(
|
|
5078
|
-
n.removeAttribute(
|
|
5073
|
+
return r ? n.setAttribute(Dt, "true") : n.removeAttribute(Dt), () => {
|
|
5074
|
+
n.removeAttribute(Dt);
|
|
5079
5075
|
};
|
|
5080
5076
|
}, [e, r]);
|
|
5081
5077
|
}, Hg = () => {
|
|
5082
5078
|
const e = L();
|
|
5083
|
-
return y(() => (t) =>
|
|
5084
|
-
},
|
|
5085
|
-
const t = I((a) => a.annotations), r = du(), n = hu(), o = ge((a) =>
|
|
5079
|
+
return y(() => (t) => ka(e, t), [e]);
|
|
5080
|
+
}, Bt = () => ye((e) => Ke(e, "move-drag")?.annotationId ?? Ke(e, "shape-resize-drag")?.annotationId ?? Ke(e, "arrow-endpoint-drag")?.annotationId ?? null), et = (e) => {
|
|
5081
|
+
const t = I((a) => a.annotations), r = du(), n = hu(), o = ge((a) => Xr(n, "cycle", a, `Annotation reference cycle detected; dropping annotation(s): ${a.join(", ")}`), [n]), i = ge((a) => Xr(n, "missing-ref", a, `Annotation reference target(s) no longer exist (dropped during compilation); dropping annotations referencing: ${a.join(", ")}`), [n]);
|
|
5086
5082
|
return y(() => Ta({
|
|
5087
5083
|
annotations: t,
|
|
5088
5084
|
panelRect: e,
|
|
@@ -5096,10 +5092,10 @@ var ap = (e, t, r) => {
|
|
|
5096
5092
|
o,
|
|
5097
5093
|
i
|
|
5098
5094
|
]);
|
|
5099
|
-
},
|
|
5095
|
+
}, Xr = (e, t, r, n) => {
|
|
5100
5096
|
const o = [t, ...[...r].sort()].join("\0");
|
|
5101
5097
|
e.has(o) || (e.add(o), console.warn(n));
|
|
5102
|
-
}, Fg = 16,
|
|
5098
|
+
}, Fg = 16, ri = ({ linePath: e, strokeWidth: t }) => /* @__PURE__ */ s("path", {
|
|
5103
5099
|
d: e,
|
|
5104
5100
|
stroke: "transparent",
|
|
5105
5101
|
strokeWidth: Math.max(t, Fg),
|
|
@@ -5115,14 +5111,14 @@ var ap = (e, t, r) => {
|
|
|
5115
5111
|
inverse: "#1D2129"
|
|
5116
5112
|
}
|
|
5117
5113
|
}, Wg = ({ computed: e, style: t, isAddressable: r }) => {
|
|
5118
|
-
const n = Q(), { colorScheme: o } =
|
|
5114
|
+
const n = Q(), { colorScheme: o } = dr(), i = e.dashArray ? {
|
|
5119
5115
|
strokeDasharray: e.dashArray,
|
|
5120
5116
|
strokeDashoffset: e.dashOffset
|
|
5121
5117
|
} : {}, a = t.shadow === "none" ? null : t.shadow, l = t.borderWidth > 0, d = Og[o], c = t.borderColor ?? Vg(t.color, d.primary, d.inverse), u = a === null ? null : Ug(e, t.borderWidth, a.blur);
|
|
5122
5118
|
return /* @__PURE__ */ S("g", {
|
|
5123
5119
|
pointerEvents: r ? void 0 : "none",
|
|
5124
5120
|
children: [
|
|
5125
|
-
r && /* @__PURE__ */ s(
|
|
5121
|
+
r && /* @__PURE__ */ s(ri, {
|
|
5126
5122
|
linePath: e.linePath,
|
|
5127
5123
|
strokeWidth: e.strokeWidth
|
|
5128
5124
|
}),
|
|
@@ -5192,8 +5188,8 @@ var ap = (e, t, r) => {
|
|
|
5192
5188
|
return r;
|
|
5193
5189
|
}
|
|
5194
5190
|
}, zg = ({ panelRect: e, isEditable: t }) => {
|
|
5195
|
-
const { arrows: r } = et(e), n =
|
|
5196
|
-
const l = o(a.id), d =
|
|
5191
|
+
const { arrows: r } = et(e), n = Bt(), o = Hg(), i = y(() => r.filter((a) => a.id !== n).flatMap((a) => {
|
|
5192
|
+
const l = o(a.id), d = ji({
|
|
5197
5193
|
arrow: a,
|
|
5198
5194
|
style: l,
|
|
5199
5195
|
panelWidth: e.width,
|
|
@@ -5238,7 +5234,7 @@ var ap = (e, t, r) => {
|
|
|
5238
5234
|
return /* @__PURE__ */ S("g", {
|
|
5239
5235
|
pointerEvents: o ? void 0 : "none",
|
|
5240
5236
|
children: [
|
|
5241
|
-
o && /* @__PURE__ */ s(
|
|
5237
|
+
o && /* @__PURE__ */ s(ri, {
|
|
5242
5238
|
linePath: e,
|
|
5243
5239
|
strokeWidth: n
|
|
5244
5240
|
}),
|
|
@@ -5323,7 +5319,7 @@ var ap = (e, t, r) => {
|
|
|
5323
5319
|
contain: "xMidYMid meet",
|
|
5324
5320
|
cover: "xMidYMid slice"
|
|
5325
5321
|
}, _g = ({ image: e, panel: t, style: r }) => {
|
|
5326
|
-
const n = Q(), { src: o, region: i, fit: a } = e, l =
|
|
5322
|
+
const n = Q(), { src: o, region: i, fit: a } = e, l = $t(i, t), d = r.borderRadius > 0;
|
|
5327
5323
|
return /* @__PURE__ */ S("g", { children: [d && /* @__PURE__ */ s("clipPath", {
|
|
5328
5324
|
id: n,
|
|
5329
5325
|
children: /* @__PURE__ */ s("rect", {
|
|
@@ -5337,8 +5333,8 @@ var ap = (e, t, r) => {
|
|
|
5337
5333
|
opacity: r.alpha,
|
|
5338
5334
|
clipPath: d ? `url(#${n})` : void 0
|
|
5339
5335
|
})] });
|
|
5340
|
-
},
|
|
5341
|
-
const r = et(e).images, n = Zg(), o =
|
|
5336
|
+
}, qr = ({ panelRect: e, zOrder: t }) => {
|
|
5337
|
+
const r = et(e).images, n = Zg(), o = Bt(), i = r.filter((a) => a.zOrder === t && a.id !== o);
|
|
5342
5338
|
return i.length === 0 ? null : /* @__PURE__ */ s("svg", {
|
|
5343
5339
|
x: e.x,
|
|
5344
5340
|
y: e.y,
|
|
@@ -5360,9 +5356,9 @@ var ap = (e, t, r) => {
|
|
|
5360
5356
|
});
|
|
5361
5357
|
}, ev = () => {
|
|
5362
5358
|
const e = L();
|
|
5363
|
-
return y(() => (t) =>
|
|
5359
|
+
return y(() => (t) => En(e, t), [e]);
|
|
5364
5360
|
}, tv = ({ shape: e, style: t, panel: r }) => {
|
|
5365
|
-
const n =
|
|
5361
|
+
const n = $t(e.region, r);
|
|
5366
5362
|
return /* @__PURE__ */ s("rect", {
|
|
5367
5363
|
x: n.x,
|
|
5368
5364
|
y: n.y,
|
|
@@ -5370,11 +5366,11 @@ var ap = (e, t, r) => {
|
|
|
5370
5366
|
height: n.height,
|
|
5371
5367
|
fill: t.color,
|
|
5372
5368
|
fillOpacity: t.alpha,
|
|
5373
|
-
stroke:
|
|
5369
|
+
stroke: ga(t) ?? "none",
|
|
5374
5370
|
strokeWidth: t.borderWidth
|
|
5375
5371
|
});
|
|
5376
|
-
},
|
|
5377
|
-
const r = et(e).shapes, n = ev(), o =
|
|
5372
|
+
}, Jr = ({ panelRect: e, zOrder: t }) => {
|
|
5373
|
+
const r = et(e).shapes, n = ev(), o = Bt(), i = r.filter((a) => a.zOrder === t && a.id !== o);
|
|
5378
5374
|
return i.length === 0 ? null : /* @__PURE__ */ s("svg", {
|
|
5379
5375
|
x: e.x,
|
|
5380
5376
|
y: e.y,
|
|
@@ -5397,13 +5393,13 @@ var ap = (e, t, r) => {
|
|
|
5397
5393
|
}, rv = () => {
|
|
5398
5394
|
const e = L();
|
|
5399
5395
|
return y(() => (t) => ja(e, t), [e]);
|
|
5400
|
-
}, nv = "_1aj6s5s0", sp = "_1aj6s5s1", ov = 0.1, lp = ({ annotation: e, panel: t, style: r, blockRef: n }) => /* @__PURE__ */ s(
|
|
5396
|
+
}, nv = "_1aj6s5s0", sp = "_1aj6s5s1", ov = 0.1, lp = ({ annotation: e, panel: t, style: r, blockRef: n }) => /* @__PURE__ */ s(ni, {
|
|
5401
5397
|
annotation: e,
|
|
5402
5398
|
panel: t,
|
|
5403
5399
|
style: r,
|
|
5404
5400
|
blockRef: n,
|
|
5405
5401
|
children: /* @__PURE__ */ s(Me, { content: e.content })
|
|
5406
|
-
}),
|
|
5402
|
+
}), ni = ({ annotation: e, panel: t, style: r, blockRef: n, children: o }) => {
|
|
5407
5403
|
const i = Ye(e.at, t);
|
|
5408
5404
|
return /* @__PURE__ */ s("foreignObject", {
|
|
5409
5405
|
x: i.x,
|
|
@@ -5423,7 +5419,7 @@ var ap = (e, t, r) => {
|
|
|
5423
5419
|
})
|
|
5424
5420
|
});
|
|
5425
5421
|
}, iv = (e) => {
|
|
5426
|
-
const t =
|
|
5422
|
+
const t = on(e);
|
|
5427
5423
|
return `translate(${-t.x * 100}%, ${-(1 - t.y) * 100}%)`;
|
|
5428
5424
|
}, av = (e) => ({
|
|
5429
5425
|
color: e.textColor,
|
|
@@ -5454,7 +5450,7 @@ var ap = (e, t, r) => {
|
|
|
5454
5450
|
},
|
|
5455
5451
|
width: t.width
|
|
5456
5452
|
}, cv = ({ panelRect: e }) => {
|
|
5457
|
-
const t = lv(e), r = rv(), n =
|
|
5453
|
+
const t = lv(e), r = rv(), n = Bt(), o = t.filter((i) => i.id !== n);
|
|
5458
5454
|
return o.length === 0 ? null : /* @__PURE__ */ s("svg", {
|
|
5459
5455
|
x: e.x,
|
|
5460
5456
|
y: e.y,
|
|
@@ -5469,13 +5465,13 @@ var ap = (e, t, r) => {
|
|
|
5469
5465
|
}, i.id))
|
|
5470
5466
|
});
|
|
5471
5467
|
}, uv = ({ annotation: e, panel: t, style: r }) => {
|
|
5472
|
-
const n = uu(e.id), o = ye((a) => a.caret?.annotationId === e.id), { TextAnnotation: i } =
|
|
5468
|
+
const n = uu(e.id), o = ye((a) => a.caret?.annotationId === e.id), { TextAnnotation: i } = vr();
|
|
5473
5469
|
return /* @__PURE__ */ s("g", {
|
|
5474
5470
|
..._e({
|
|
5475
5471
|
kind: "annotation",
|
|
5476
5472
|
id: e.id
|
|
5477
5473
|
}),
|
|
5478
|
-
children: /* @__PURE__ */ s(
|
|
5474
|
+
children: /* @__PURE__ */ s(ni, {
|
|
5479
5475
|
annotation: e,
|
|
5480
5476
|
panel: t,
|
|
5481
5477
|
style: r,
|
|
@@ -5483,11 +5479,11 @@ var ap = (e, t, r) => {
|
|
|
5483
5479
|
children: o && i ? /* @__PURE__ */ s(i, { annotation: e }) : /* @__PURE__ */ s(Me, { content: e.content })
|
|
5484
5480
|
})
|
|
5485
5481
|
});
|
|
5486
|
-
},
|
|
5482
|
+
}, oi = () => {
|
|
5487
5483
|
const e = L();
|
|
5488
|
-
return y(() => (t, r) =>
|
|
5484
|
+
return y(() => (t, r) => Ba(e, t, r), [e]);
|
|
5489
5485
|
}, hv = "ph8bdc0";
|
|
5490
|
-
var gv = "ph8bdc2",
|
|
5486
|
+
var gv = "ph8bdc2", Zr = {
|
|
5491
5487
|
hittable: "ph8bdc4 ph8bdc3",
|
|
5492
5488
|
inert: "ph8bdc5 ph8bdc3"
|
|
5493
5489
|
}, vv = ({ cx: e, cy: t, color: r, style: n }) => {
|
|
@@ -5505,18 +5501,18 @@ var gv = "ph8bdc2", _r = {
|
|
|
5505
5501
|
});
|
|
5506
5502
|
};
|
|
5507
5503
|
function fv(e) {
|
|
5508
|
-
const t = Re(), { formattingLocale: r } = K(), n =
|
|
5504
|
+
const t = Re(), { formattingLocale: r } = K(), n = oi(), o = I(X((d) => ({
|
|
5509
5505
|
pinnedNumbers: d.annotations.pinnedNumbers,
|
|
5510
5506
|
comments: d.annotations.comments,
|
|
5511
5507
|
coordSystem: d.coordSystem,
|
|
5512
5508
|
numberFormat: d.config.numberFormat,
|
|
5513
5509
|
parsingLocale: d.config.parsingLocale
|
|
5514
|
-
}))), i = r ?? o.parsingLocale, a = y(() =>
|
|
5510
|
+
}))), i = r ?? o.parsingLocale, a = y(() => Qi({
|
|
5515
5511
|
numberFormat: o.numberFormat,
|
|
5516
5512
|
locale: i
|
|
5517
5513
|
}), [o.numberFormat, i]), l = y(() => (d, c, u) => {
|
|
5518
5514
|
const h = n(d === "pinned-number" ? "pinnedNumber" : "comment", c).label, g = {
|
|
5519
|
-
family: h.fontFamily ??
|
|
5515
|
+
family: h.fontFamily ?? wt,
|
|
5520
5516
|
size: h.fontSize,
|
|
5521
5517
|
weight: h.fontWeight
|
|
5522
5518
|
}, v = pv(t, d, u, g), f = t.measureText(v, g), A = d === "pinned-number" ? 15 : 0;
|
|
@@ -5526,7 +5522,7 @@ function fv(e) {
|
|
|
5526
5522
|
text: v
|
|
5527
5523
|
};
|
|
5528
5524
|
}, [t, n]);
|
|
5529
|
-
return y(() =>
|
|
5525
|
+
return y(() => ba({
|
|
5530
5526
|
pinnedNumbers: o.pinnedNumbers,
|
|
5531
5527
|
comments: o.comments,
|
|
5532
5528
|
panelRect: e,
|
|
@@ -5542,11 +5538,11 @@ function fv(e) {
|
|
|
5542
5538
|
a
|
|
5543
5539
|
]);
|
|
5544
5540
|
}
|
|
5545
|
-
var pv = (e, t, r, n) => t !== "comment" ? r :
|
|
5546
|
-
const { pinnedNumbers: t, comments: r } = I(
|
|
5541
|
+
var pv = (e, t, r, n) => t !== "comment" ? r : Mn(r, 140, (o) => e.measureText(o, n).width), $r = "callouts", mv = ({ panelRect: e }) => {
|
|
5542
|
+
const { pinnedNumbers: t, comments: r } = I(X((v) => ({
|
|
5547
5543
|
pinnedNumbers: v.annotations.pinnedNumbers,
|
|
5548
5544
|
comments: v.annotations.comments
|
|
5549
|
-
}))), n = I((v) => v.coordSystem), o = me(), i = ss(10), a =
|
|
5545
|
+
}))), n = I((v) => v.coordSystem), o = me(), i = ss(10), a = oi(), l = fv(e), { store: d } = ke(), c = y(() => {
|
|
5550
5546
|
const v = /* @__PURE__ */ new Map();
|
|
5551
5547
|
for (const f of t) v.set(f.id, f.at);
|
|
5552
5548
|
for (const f of r) v.set(f.id, f.at);
|
|
@@ -5564,11 +5560,11 @@ var pv = (e, t, r, n) => t !== "comment" ? r : Ln(r, 140, (o) => e.measureText(o
|
|
|
5564
5560
|
t,
|
|
5565
5561
|
r,
|
|
5566
5562
|
a
|
|
5567
|
-
]), g = y(() =>
|
|
5568
|
-
return
|
|
5563
|
+
]), g = y(() => Wi(l, e), [l, e]);
|
|
5564
|
+
return F(() => {
|
|
5569
5565
|
const v = d.getState();
|
|
5570
|
-
return v.publishPointerRegions(
|
|
5571
|
-
v.publishPointerRegions(
|
|
5566
|
+
return v.publishPointerRegions($r, g), () => {
|
|
5567
|
+
v.publishPointerRegions($r, []);
|
|
5572
5568
|
};
|
|
5573
5569
|
}, [d, g]), t.length === 0 && r.length === 0 ? null : /* @__PURE__ */ s("svg", {
|
|
5574
5570
|
x: e.x,
|
|
@@ -5592,7 +5588,7 @@ var pv = (e, t, r, n) => t !== "comment" ? r : Ln(r, 140, (o) => e.measureText(o
|
|
|
5592
5588
|
height: v.miniRect.height,
|
|
5593
5589
|
overflow: "visible",
|
|
5594
5590
|
children: /* @__PURE__ */ S("div", {
|
|
5595
|
-
className: x ?
|
|
5591
|
+
className: x ? Zr.hittable : Zr.inert,
|
|
5596
5592
|
style: xv(A.label),
|
|
5597
5593
|
children: [v.kind === "pinned-number" && /* @__PURE__ */ s("span", {
|
|
5598
5594
|
className: "ph8bdc1",
|
|
@@ -5620,11 +5616,11 @@ var pv = (e, t, r, n) => t !== "comment" ? r : Ln(r, 140, (o) => e.measureText(o
|
|
|
5620
5616
|
}, v.id);
|
|
5621
5617
|
})
|
|
5622
5618
|
});
|
|
5623
|
-
}, Av = (e, t) => e.isColorAuthored ? e.color : t ?? e.color, yv = (e) => e.isTextColorAuthored ? e.textColor :
|
|
5619
|
+
}, Av = (e, t) => e.isColorAuthored ? e.color : t ?? e.color, yv = (e) => e.isTextColorAuthored ? e.textColor : ra(e.textColor, e.background), xv = (e) => ({
|
|
5624
5620
|
background: e.background,
|
|
5625
5621
|
borderRadius: e.borderRadius,
|
|
5626
5622
|
padding: `${e.paddingBlock}px ${e.paddingInline}px`,
|
|
5627
|
-
boxShadow:
|
|
5623
|
+
boxShadow: lr(e.shadow),
|
|
5628
5624
|
...e.borderWidth > 0 ? { border: `${e.borderWidth}px solid ${e.borderColor}` } : {}
|
|
5629
5625
|
}), bv = (e) => ({
|
|
5630
5626
|
...e.fontFamily === void 0 ? {} : { fontFamily: e.fontFamily },
|
|
@@ -5692,12 +5688,12 @@ var pv = (e, t, r, n) => t !== "comment" ? r : Ln(r, 140, (o) => e.measureText(o
|
|
|
5692
5688
|
} : {
|
|
5693
5689
|
width: t * e,
|
|
5694
5690
|
height: t
|
|
5695
|
-
}, Pv = 0.25,
|
|
5691
|
+
}, Pv = 0.25, ii = ({ children: e, ...t }) => {
|
|
5696
5692
|
const r = Wc();
|
|
5697
5693
|
return r <= 0 ? /* @__PURE__ */ s("g", {
|
|
5698
5694
|
...t,
|
|
5699
5695
|
children: e
|
|
5700
|
-
}) : /* @__PURE__ */ s(
|
|
5696
|
+
}) : /* @__PURE__ */ s(G.g, {
|
|
5701
5697
|
...t,
|
|
5702
5698
|
initial: { opacity: 0 },
|
|
5703
5699
|
animate: { opacity: 1 },
|
|
@@ -5708,8 +5704,8 @@ var pv = (e, t, r, n) => t !== "comment" ? r : Ln(r, 140, (o) => e.measureText(o
|
|
|
5708
5704
|
children: e
|
|
5709
5705
|
});
|
|
5710
5706
|
}, Bv = "_1agclyl0";
|
|
5711
|
-
var Iv = "_1agclyl2",
|
|
5712
|
-
const u =
|
|
5707
|
+
var Iv = "_1agclyl2", ai = ({ x: e, y: t, width: r, height: n, text: o, isRotated: i, target: a, position: l, coordType: d, backdropColor: c }) => {
|
|
5708
|
+
const u = Ct(), h = i ? `rotate(-90 ${e} ${t})` : void 0, g = u[a][l], v = g.borderColor !== void 0 && (g.borderWidth ?? 0) > 0, f = Tv(a, d, g), A = Lv(g, f, c);
|
|
5713
5709
|
return /* @__PURE__ */ S("g", {
|
|
5714
5710
|
transform: h,
|
|
5715
5711
|
children: [f && /* @__PURE__ */ s("rect", {
|
|
@@ -5738,17 +5734,17 @@ var Iv = "_1agclyl2", si = ({ x: e, y: t, width: r, height: n, text: o, isRotate
|
|
|
5738
5734
|
children: o
|
|
5739
5735
|
})]
|
|
5740
5736
|
});
|
|
5741
|
-
}, Mv = (e, t) => e.isTextColorAuthored || t === void 0 ? e.textColor :
|
|
5737
|
+
}, Mv = (e, t) => e.isTextColorAuthored || t === void 0 ? e.textColor : mn(t), Lv = (e, t, r) => {
|
|
5742
5738
|
if (r !== void 0)
|
|
5743
|
-
return
|
|
5739
|
+
return Yi(t ? e.background : void 0, r);
|
|
5744
5740
|
}, Tv = (e, t, r) => r.background === void 0 ? !1 : e === "aggregate" || t === "cartesian", Nv = ({ panelRect: e, formattingLocale: t, plotBottomY: r, isFooterChromeReserved: n }) => {
|
|
5745
|
-
const o = Re(), i = Fe(), a = I(
|
|
5741
|
+
const o = Re(), i = Fe(), a = I(X((g) => ({
|
|
5746
5742
|
layers: g.layers,
|
|
5747
5743
|
coordSystem: g.coordSystem,
|
|
5748
5744
|
axes: g.guides.axes,
|
|
5749
5745
|
numberFormat: g.config.numberFormat,
|
|
5750
5746
|
parsingLocale: g.config.parsingLocale
|
|
5751
|
-
}))), l =
|
|
5747
|
+
}))), l = Ct(), d = y(() => Po({
|
|
5752
5748
|
textMeasurer: o,
|
|
5753
5749
|
dataLabelStyles: l,
|
|
5754
5750
|
familyDefault: i.fonts.familyDefault
|
|
@@ -5756,7 +5752,7 @@ var Iv = "_1agclyl2", si = ({ x: e, y: t, width: r, height: n, text: o, isRotate
|
|
|
5756
5752
|
o,
|
|
5757
5753
|
l,
|
|
5758
5754
|
i.fonts.familyDefault
|
|
5759
|
-
]), c = y(() =>
|
|
5755
|
+
]), c = y(() => Gi({
|
|
5760
5756
|
...a,
|
|
5761
5757
|
panelRect: e,
|
|
5762
5758
|
measureDataLabel: d,
|
|
@@ -5771,7 +5767,7 @@ var Iv = "_1agclyl2", si = ({ x: e, y: t, width: r, height: n, text: o, isRotate
|
|
|
5771
5767
|
r,
|
|
5772
5768
|
n
|
|
5773
5769
|
]), u = M("");
|
|
5774
|
-
|
|
5770
|
+
F(() => {
|
|
5775
5771
|
if (c.warnings.length === 0) {
|
|
5776
5772
|
u.current = "";
|
|
5777
5773
|
return;
|
|
@@ -5779,7 +5775,7 @@ var Iv = "_1agclyl2", si = ({ x: e, y: t, width: r, height: n, text: o, isRotate
|
|
|
5779
5775
|
const g = JSON.stringify(c.warnings);
|
|
5780
5776
|
g !== u.current && (u.current = g, is(c.warnings));
|
|
5781
5777
|
}, [c.warnings]);
|
|
5782
|
-
const h = c.labels.map((g, v) => /* @__PURE__ */ s(
|
|
5778
|
+
const h = c.labels.map((g, v) => /* @__PURE__ */ s(ai, {
|
|
5783
5779
|
x: g.x,
|
|
5784
5780
|
y: g.y,
|
|
5785
5781
|
width: g.width,
|
|
@@ -5791,7 +5787,7 @@ var Iv = "_1agclyl2", si = ({ x: e, y: t, width: r, height: n, text: o, isRotate
|
|
|
5791
5787
|
coordType: a.coordSystem.type,
|
|
5792
5788
|
backdropColor: g.backdropColor
|
|
5793
5789
|
}, `${g.layerId}:${v}`));
|
|
5794
|
-
return /* @__PURE__ */ s(
|
|
5790
|
+
return /* @__PURE__ */ s(ii, {
|
|
5795
5791
|
className: Bv,
|
|
5796
5792
|
transform: `translate(${e.x}, ${e.y})`,
|
|
5797
5793
|
"data-testid": "data-labels",
|
|
@@ -5859,7 +5855,7 @@ var Iv = "_1agclyl2", si = ({ x: e, y: t, width: r, height: n, text: o, isRotate
|
|
|
5859
5855
|
transform: `rotate(${r}, 0, ${n})`
|
|
5860
5856
|
};
|
|
5861
5857
|
}, Ov = ({ formattedAxis: e, rect: t }) => {
|
|
5862
|
-
const r = e.position === "bottom" || e.position === "top", n = Le(e.scaleAestheticKey), o =
|
|
5858
|
+
const r = e.position === "bottom" || e.position === "top", n = Le(e.scaleAestheticKey), o = hr()(n, e.position), i = Eo()[n];
|
|
5863
5859
|
return /* @__PURE__ */ S("svg", {
|
|
5864
5860
|
x: t.x,
|
|
5865
5861
|
y: t.y,
|
|
@@ -5872,7 +5868,7 @@ var Iv = "_1agclyl2", si = ({ x: e, y: t, width: r, height: n, text: o, isRotate
|
|
|
5872
5868
|
...u,
|
|
5873
5869
|
stroke: i.color,
|
|
5874
5870
|
strokeWidth: i.strokeWidth,
|
|
5875
|
-
strokeDasharray:
|
|
5871
|
+
strokeDasharray: At(i.lineType)
|
|
5876
5872
|
}), /* @__PURE__ */ s(Hv, {
|
|
5877
5873
|
edge: e.position,
|
|
5878
5874
|
position: c,
|
|
@@ -5915,7 +5911,7 @@ var Iv = "_1agclyl2", si = ({ x: e, y: t, width: r, height: n, text: o, isRotate
|
|
|
5915
5911
|
};
|
|
5916
5912
|
}
|
|
5917
5913
|
}, Gv = ({ axes: e, rects: t }) => {
|
|
5918
|
-
const r =
|
|
5914
|
+
const r = Ro();
|
|
5919
5915
|
return /* @__PURE__ */ s(B, { children: e.map((n) => {
|
|
5920
5916
|
const o = t[n.position];
|
|
5921
5917
|
if (!o || !n.isVisible) return null;
|
|
@@ -5948,7 +5944,7 @@ var Iv = "_1agclyl2", si = ({ x: e, y: t, width: r, height: n, text: o, isRotate
|
|
|
5948
5944
|
}) }), zv = ({ formattedAxes: e, labelRects: t }) => /* @__PURE__ */ s(Gv, {
|
|
5949
5945
|
axes: e.filter((r) => r.geometry === "linear"),
|
|
5950
5946
|
rects: t
|
|
5951
|
-
}),
|
|
5947
|
+
}), si = {
|
|
5952
5948
|
strokeDashoffset: "0",
|
|
5953
5949
|
strokeLinecap: "round"
|
|
5954
5950
|
}, Qv = ({ axes: e, panelBorderSizes: t, panelFrameRect: r, panelRect: n }) => {
|
|
@@ -5962,7 +5958,7 @@ var Iv = "_1agclyl2", si = ({ x: e, y: t, width: r, height: n, text: o, isRotate
|
|
|
5962
5958
|
style: { overflow: "visible" },
|
|
5963
5959
|
children: e.map((l) => {
|
|
5964
5960
|
if (l.geometry !== "linear" || !l.gridVisible) return null;
|
|
5965
|
-
const d = l.position === "bottom" || l.position === "top", c =
|
|
5961
|
+
const d = l.position === "bottom" || l.position === "top", c = Wt(o, Le(l.scaleAestheticKey)), u = At(c.lineType);
|
|
5966
5962
|
return /* @__PURE__ */ s("g", { children: l.ticks.map((h, g) => {
|
|
5967
5963
|
const v = Kv(d, h.position);
|
|
5968
5964
|
if (v !== null && t[v] > 0) return null;
|
|
@@ -5987,7 +5983,7 @@ var Iv = "_1agclyl2", si = ({ x: e, y: t, width: r, height: n, text: o, isRotate
|
|
|
5987
5983
|
}
|
|
5988
5984
|
return /* @__PURE__ */ s("line", {
|
|
5989
5985
|
...A,
|
|
5990
|
-
...
|
|
5986
|
+
...si,
|
|
5991
5987
|
strokeDasharray: u,
|
|
5992
5988
|
strokeWidth: c.strokeWidth,
|
|
5993
5989
|
stroke: c.color
|
|
@@ -5996,9 +5992,9 @@ var Iv = "_1agclyl2", si = ({ x: e, y: t, width: r, height: n, text: o, isRotate
|
|
|
5996
5992
|
})
|
|
5997
5993
|
});
|
|
5998
5994
|
}, Kv = (e, t) => t <= 0 ? e ? "left" : "bottom" : t >= 1 ? e ? "right" : "top" : null, Yv = ({ sizes: e, panelFrameRect: t }) => {
|
|
5999
|
-
const r = I((a) => a.coordSystem.type === "polar"), n = L(), o = y(() =>
|
|
5995
|
+
const r = I((a) => a.coordSystem.type === "polar"), n = L(), o = y(() => kn(n), [n]);
|
|
6000
5996
|
if (r) return null;
|
|
6001
|
-
const i =
|
|
5997
|
+
const i = Ji(o, {
|
|
6002
5998
|
x: e.left / 2,
|
|
6003
5999
|
y: e.top / 2,
|
|
6004
6000
|
width: t.width - (e.left + e.right) / 2,
|
|
@@ -6015,9 +6011,9 @@ var Iv = "_1agclyl2", si = ({ x: e, y: t, width: r, height: n, text: o, isRotate
|
|
|
6015
6011
|
d: jv(a.segments),
|
|
6016
6012
|
fill: "none",
|
|
6017
6013
|
stroke: a.color,
|
|
6018
|
-
strokeDasharray:
|
|
6014
|
+
strokeDasharray: At(a.lineType),
|
|
6019
6015
|
strokeWidth: a.strokeWidth,
|
|
6020
|
-
...
|
|
6016
|
+
...si
|
|
6021
6017
|
}, l))
|
|
6022
6018
|
});
|
|
6023
6019
|
}, jv = (e) => e.map((t) => {
|
|
@@ -6034,25 +6030,25 @@ var Iv = "_1agclyl2", si = ({ x: e, y: t, width: r, height: n, text: o, isRotate
|
|
|
6034
6030
|
return "Z";
|
|
6035
6031
|
}
|
|
6036
6032
|
}).join(" ");
|
|
6037
|
-
var
|
|
6033
|
+
var li = (e, t) => {
|
|
6038
6034
|
const r = I((d) => d.coordSystem);
|
|
6039
6035
|
if (r.type !== "polar") return null;
|
|
6040
6036
|
const n = t.find((d) => d.geometry === "circular");
|
|
6041
6037
|
if (!n) return null;
|
|
6042
|
-
const { innerRadius: o, startAngle: i, spokeRotation: a } = r, l =
|
|
6038
|
+
const { innerRadius: o, startAngle: i, spokeRotation: a } = r, l = Dn(e);
|
|
6043
6039
|
return l.radius <= 0 ? null : {
|
|
6044
6040
|
circle: l,
|
|
6045
6041
|
circularAxis: n,
|
|
6046
6042
|
radialAxis: t.find((d) => d.geometry === "radial"),
|
|
6047
6043
|
innerRadius: o,
|
|
6048
6044
|
startAngle: i,
|
|
6049
|
-
angleFor: (d) =>
|
|
6045
|
+
angleFor: (d) => wa(d, i, a),
|
|
6050
6046
|
radiusNormFor: (d) => o + d * (1 - o)
|
|
6051
6047
|
};
|
|
6052
6048
|
}, Xv = 3, qv = 16, Jv = ({ formattedAxes: e, panelRect: t }) => {
|
|
6053
|
-
const r =
|
|
6049
|
+
const r = hr(), n = li(t, e);
|
|
6054
6050
|
if (!n) return null;
|
|
6055
|
-
const { circle: o, circularAxis: i, radialAxis: a, startAngle: l, angleFor: d, radiusNormFor: c } = n, u = Zv(a, c, o.radius), h = (g) => r
|
|
6051
|
+
const { circle: o, circularAxis: i, radialAxis: a, startAngle: l, angleFor: d, radiusNormFor: c } = n, u = Zv(a, c, o.radius), h = (g) => r(Le(g.scaleAestheticKey));
|
|
6056
6052
|
return /* @__PURE__ */ S("svg", {
|
|
6057
6053
|
x: t.x,
|
|
6058
6054
|
y: t.y,
|
|
@@ -6061,7 +6057,7 @@ var di = (e, t) => {
|
|
|
6061
6057
|
overflow: "visible",
|
|
6062
6058
|
"data-testid": "polar-axis-ticks",
|
|
6063
6059
|
children: [a?.isVisible && u.map(({ tick: g, radiusNorm: v }, f) => {
|
|
6064
|
-
const A =
|
|
6060
|
+
const A = ee(l, v, o);
|
|
6065
6061
|
return /* @__PURE__ */ s("text", {
|
|
6066
6062
|
x: A.x,
|
|
6067
6063
|
y: A.y,
|
|
@@ -6078,7 +6074,7 @@ var di = (e, t) => {
|
|
|
6078
6074
|
}, `radial-label-${f}`);
|
|
6079
6075
|
}), i.isVisible && i.ticks.map((g, v) => {
|
|
6080
6076
|
if (g.position >= 1 - 1e-9) return null;
|
|
6081
|
-
const f = d(g.position), A =
|
|
6077
|
+
const f = d(g.position), A = ee(f, (o.radius + Ni) / o.radius, o);
|
|
6082
6078
|
return /* @__PURE__ */ s("text", {
|
|
6083
6079
|
x: A.x,
|
|
6084
6080
|
y: A.y,
|
|
@@ -6108,9 +6104,9 @@ var di = (e, t) => {
|
|
|
6108
6104
|
const t = Math.sin(e);
|
|
6109
6105
|
return Math.abs(t) < 0.01 ? "middle" : t > 0 ? "start" : "end";
|
|
6110
6106
|
}, _v = ({ formattedAxes: e, panelRect: t }) => {
|
|
6111
|
-
const r = L(), n =
|
|
6107
|
+
const r = L(), n = li(t, e);
|
|
6112
6108
|
if (!n) return null;
|
|
6113
|
-
const { circle: o, circularAxis: i, radialAxis: a, innerRadius: l, angleFor: d, radiusNormFor: c } = n, u =
|
|
6109
|
+
const { circle: o, circularAxis: i, radialAxis: a, innerRadius: l, angleFor: d, radiusNormFor: c } = n, u = Wt(r, "y"), h = Wt(r, "x");
|
|
6114
6110
|
return /* @__PURE__ */ S("svg", {
|
|
6115
6111
|
x: t.x,
|
|
6116
6112
|
y: t.y,
|
|
@@ -6140,7 +6136,7 @@ var di = (e, t) => {
|
|
|
6140
6136
|
}),
|
|
6141
6137
|
i.gridVisible && i.ticks.map((g, v) => {
|
|
6142
6138
|
if (g.position >= 1 - 1e-9) return null;
|
|
6143
|
-
const f = d(g.position), A =
|
|
6139
|
+
const f = d(g.position), A = ee(f, l, o), m = ee(f, 1, o);
|
|
6144
6140
|
return /* @__PURE__ */ s("line", {
|
|
6145
6141
|
x1: A.x,
|
|
6146
6142
|
y1: A.y,
|
|
@@ -6155,7 +6151,7 @@ var di = (e, t) => {
|
|
|
6155
6151
|
}, ef = ({ layer: e, coordSystem: t, shouldAnimateTransitions: r, isDimmed: n, dimStyle: o, formattingLocale: i, panelRect: a }) => {
|
|
6156
6152
|
const l = me(), d = Gc(e.id), { colorScheme: c } = K(), u = T(e), h = l(e.geom, t.type);
|
|
6157
6153
|
if (h === null) return null;
|
|
6158
|
-
const g =
|
|
6154
|
+
const g = kt(h.render);
|
|
6159
6155
|
return g.overlay ? null : /* @__PURE__ */ s("g", {
|
|
6160
6156
|
style: n ? {
|
|
6161
6157
|
opacity: o.opacity,
|
|
@@ -6201,7 +6197,7 @@ var rf = 4, nf = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
|
|
|
6201
6197
|
t,
|
|
6202
6198
|
o,
|
|
6203
6199
|
n
|
|
6204
|
-
]), { colorScheme: u } = K(), h = T(t), g = y(() =>
|
|
6200
|
+
]), { colorScheme: u } = K(), h = T(t), g = y(() => ea(t), [t]), v = y(() => zi({
|
|
6205
6201
|
layer: t,
|
|
6206
6202
|
numberFormat: d,
|
|
6207
6203
|
locale: l
|
|
@@ -6209,9 +6205,9 @@ var rf = 4, nf = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
|
|
|
6209
6205
|
d,
|
|
6210
6206
|
t,
|
|
6211
6207
|
l
|
|
6212
|
-
]), { fonts: f } = Fe(), A =
|
|
6208
|
+
]), { fonts: f } = Fe(), A = Ct();
|
|
6213
6209
|
if (e === null || r === null && c.length === 0) return null;
|
|
6214
|
-
const m =
|
|
6210
|
+
const m = kt(e.render);
|
|
6215
6211
|
let b = null;
|
|
6216
6212
|
if (r && !m.overlay) {
|
|
6217
6213
|
const x = {
|
|
@@ -6226,21 +6222,21 @@ var rf = 4, nf = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
|
|
|
6226
6222
|
};
|
|
6227
6223
|
b = e.renderHighlight ? e.renderHighlight(x) : m.fn(x);
|
|
6228
6224
|
}
|
|
6229
|
-
return /* @__PURE__ */ S(
|
|
6225
|
+
return /* @__PURE__ */ S(ii, { children: [b, c.map(({ observation: x, observationIndex: w, anchor: k }) => /* @__PURE__ */ s(of, {
|
|
6230
6226
|
observation: x,
|
|
6231
6227
|
anchor: k,
|
|
6232
6228
|
panelRect: a,
|
|
6233
6229
|
fill: h.get("color", x),
|
|
6234
|
-
dotRadius: (h.get("size", x) ??
|
|
6230
|
+
dotRadius: (h.get("size", x) ?? nn) / 2,
|
|
6235
6231
|
readSegmentY: g,
|
|
6236
6232
|
formatYValue: v,
|
|
6237
6233
|
labelStyle: A.observation.outside,
|
|
6238
6234
|
familyDefault: f.familyDefault
|
|
6239
6235
|
}, af(x, w)))] });
|
|
6240
6236
|
}, of = ({ observation: e, anchor: t, panelRect: r, fill: n, dotRadius: o, readSegmentY: i, formatYValue: a, labelStyle: l, familyDefault: d }) => {
|
|
6241
|
-
const c = Re(), u =
|
|
6237
|
+
const c = Re(), u = Bn(t.x), h = In(t.y), g = i(e), v = fn(g) ? a(g, e) : null, f = y(() => {
|
|
6242
6238
|
if (v === null) return null;
|
|
6243
|
-
const A = c.measureText(v,
|
|
6239
|
+
const A = c.measureText(v, j(l, d));
|
|
6244
6240
|
return {
|
|
6245
6241
|
width: A.width + l.paddingInline * 2,
|
|
6246
6242
|
height: A.height + l.paddingBlock * 2
|
|
@@ -6257,7 +6253,7 @@ var rf = 4, nf = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
|
|
|
6257
6253
|
cy: R(h),
|
|
6258
6254
|
r: o,
|
|
6259
6255
|
fill: n
|
|
6260
|
-
}), v !== null && f !== null && /* @__PURE__ */ s(
|
|
6256
|
+
}), v !== null && f !== null && /* @__PURE__ */ s(ai, {
|
|
6261
6257
|
x: u * r.width,
|
|
6262
6258
|
y: h * r.height - o - rf - f.height / 2,
|
|
6263
6259
|
width: f.width,
|
|
@@ -6272,7 +6268,7 @@ var rf = 4, nf = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
|
|
|
6272
6268
|
const r = e[pe.group];
|
|
6273
6269
|
return `${String(r ?? "")}\0${t}`;
|
|
6274
6270
|
}, sf = ({ layer: e, coordSystem: t, panelRect: r }) => {
|
|
6275
|
-
const { primary: n, group: o, related: i } = Ie(
|
|
6271
|
+
const { primary: n, group: o, related: i } = Ie(X((h) => ({
|
|
6276
6272
|
primary: h.hover.primary,
|
|
6277
6273
|
group: h.hover.group,
|
|
6278
6274
|
related: h.hover.related
|
|
@@ -6310,7 +6306,7 @@ var rf = 4, nf = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
|
|
|
6310
6306
|
};
|
|
6311
6307
|
}, [e, t]);
|
|
6312
6308
|
}, df = "var(--to1jkx0)", cf = "var(--to1jkx1)", uf = "to1jkx2", hf = "to1jkx3", gf = ({ shouldAnimateTransitions: e, panelRect: t, formattingLocale: r }) => {
|
|
6313
|
-
const { layers: n, coordSystem: o } = I(
|
|
6309
|
+
const { layers: n, coordSystem: o } = I(X((i) => ({
|
|
6314
6310
|
layers: i.layers,
|
|
6315
6311
|
coordSystem: i.coordSystem
|
|
6316
6312
|
})));
|
|
@@ -6322,7 +6318,7 @@ var rf = 4, nf = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
|
|
|
6322
6318
|
className: uf,
|
|
6323
6319
|
"data-testid": "geom-layers",
|
|
6324
6320
|
...xu(),
|
|
6325
|
-
children: n.map((i) => /* @__PURE__ */ S(
|
|
6321
|
+
children: n.map((i) => /* @__PURE__ */ S(_t, { children: [/* @__PURE__ */ s(mf, {
|
|
6326
6322
|
layer: i,
|
|
6327
6323
|
coordSystem: o,
|
|
6328
6324
|
shouldAnimateTransitions: e,
|
|
@@ -6337,7 +6333,7 @@ var rf = 4, nf = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
|
|
|
6337
6333
|
}, vf = (e) => e.type === "cartesian" ? `cartesian-${e.mainAxis}` : e.type, ff = (e) => {
|
|
6338
6334
|
if (e.geom !== "rule")
|
|
6339
6335
|
return hf;
|
|
6340
|
-
}, pf = (e) =>
|
|
6336
|
+
}, pf = (e) => er({
|
|
6341
6337
|
...e.opacity === void 0 ? {} : { [df]: String(e.opacity) },
|
|
6342
6338
|
...e.saturation === void 0 ? {} : { [cf]: `saturate(${e.saturation})` }
|
|
6343
6339
|
}), mf = ({ layer: e, coordSystem: t, shouldAnimateTransitions: r, panelRect: n, formattingLocale: o }) => {
|
|
@@ -6353,7 +6349,7 @@ var rf = 4, nf = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
|
|
|
6353
6349
|
panelRect: n,
|
|
6354
6350
|
colorScheme: c,
|
|
6355
6351
|
styleReaders: T(e)
|
|
6356
|
-
}, h = a ?
|
|
6352
|
+
}, h = a ? kt(a.render) : null, g = e.spatialKind === "render-hit-test", v = ff(e);
|
|
6357
6353
|
return /* @__PURE__ */ S("g", {
|
|
6358
6354
|
className: v,
|
|
6359
6355
|
style: v === void 0 ? void 0 : pf(d),
|
|
@@ -6390,7 +6386,7 @@ var rf = 4, nf = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
|
|
|
6390
6386
|
}, Af = "_17uhij30", yf = ({ formattedAxes: e, plotRect: t, panelBorder: r, panelFrameRect: n, panelRect: o, axisRects: i, axisLabelRects: a, shouldAnimateTransitions: l, formattingLocale: d, plotBottomY: c, isFooterChromeReserved: u, isEditable: h, showAnnotations: g }) => {
|
|
6391
6387
|
const v = M(null);
|
|
6392
6388
|
Ng(v);
|
|
6393
|
-
const f = ae("Grid", Qv), A = ae("AxisTicks", Vv), m = ae("AxisLabel", zv), b = y(() =>
|
|
6389
|
+
const f = ae("Grid", Qv), A = ae("AxisTicks", Vv), m = ae("AxisLabel", zv), b = y(() => jt(n, t), [n, t]), x = y(() => jt(o, t), [o, t]), w = y(() => _r(i, t), [i, t]), k = y(() => _r(a, t), [a, t]);
|
|
6394
6390
|
return /* @__PURE__ */ S("svg", {
|
|
6395
6391
|
ref: v,
|
|
6396
6392
|
className: Af,
|
|
@@ -6418,10 +6414,10 @@ var rf = 4, nf = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
|
|
|
6418
6414
|
panelRect: x
|
|
6419
6415
|
}),
|
|
6420
6416
|
/* @__PURE__ */ s(mg, { panelRect: x }),
|
|
6421
|
-
g && /* @__PURE__ */ S(B, { children: [/* @__PURE__ */ s(
|
|
6417
|
+
g && /* @__PURE__ */ S(B, { children: [/* @__PURE__ */ s(Jr, {
|
|
6422
6418
|
panelRect: x,
|
|
6423
6419
|
zOrder: "background"
|
|
6424
|
-
}), /* @__PURE__ */ s(
|
|
6420
|
+
}), /* @__PURE__ */ s(qr, {
|
|
6425
6421
|
panelRect: x,
|
|
6426
6422
|
zOrder: "background"
|
|
6427
6423
|
})] }),
|
|
@@ -6449,11 +6445,11 @@ var rf = 4, nf = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
|
|
|
6449
6445
|
panelRect: x,
|
|
6450
6446
|
isEditable: h
|
|
6451
6447
|
}),
|
|
6452
|
-
/* @__PURE__ */ s(
|
|
6448
|
+
/* @__PURE__ */ s(Jr, {
|
|
6453
6449
|
panelRect: x,
|
|
6454
6450
|
zOrder: "foreground"
|
|
6455
6451
|
}),
|
|
6456
|
-
/* @__PURE__ */ s(
|
|
6452
|
+
/* @__PURE__ */ s(qr, {
|
|
6457
6453
|
panelRect: x,
|
|
6458
6454
|
zOrder: "foreground"
|
|
6459
6455
|
}),
|
|
@@ -6468,27 +6464,27 @@ var rf = 4, nf = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
|
|
|
6468
6464
|
/* @__PURE__ */ s(Lg, { panelRect: x })
|
|
6469
6465
|
]
|
|
6470
6466
|
});
|
|
6471
|
-
},
|
|
6467
|
+
}, jt = (e, t) => ({
|
|
6472
6468
|
x: e.x - t.x,
|
|
6473
6469
|
y: e.y - t.y,
|
|
6474
6470
|
width: e.width,
|
|
6475
6471
|
height: e.height
|
|
6476
|
-
}),
|
|
6472
|
+
}), _r = (e, t) => {
|
|
6477
6473
|
const r = {};
|
|
6478
|
-
for (const [n, o] of Object.entries(e)) r[n] =
|
|
6474
|
+
for (const [n, o] of Object.entries(e)) r[n] = jt(o, t);
|
|
6479
6475
|
return r;
|
|
6480
6476
|
}, xf = (e) => {
|
|
6481
6477
|
let t, r;
|
|
6482
6478
|
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), {
|
|
6483
|
-
width:
|
|
6484
|
-
height:
|
|
6479
|
+
width: en(t, "width"),
|
|
6480
|
+
height: en(r, "height")
|
|
6485
6481
|
};
|
|
6486
|
-
},
|
|
6487
|
-
if (e <= 0 || Number.isNaN(e) || !Number.isFinite(e)) throw new
|
|
6482
|
+
}, en = (e, t) => {
|
|
6483
|
+
if (e <= 0 || Number.isNaN(e) || !Number.isFinite(e)) throw new Li({ message: `Expected ${t} to be a positive, finite number, but got ${e}.` });
|
|
6488
6484
|
return e;
|
|
6489
6485
|
}, bf = ({ sizing: e, onResize: t, children: r }) => {
|
|
6490
|
-
const n =
|
|
6491
|
-
if (
|
|
6486
|
+
const n = po({ onResize: t }), o = M(!1);
|
|
6487
|
+
if (F(() => {
|
|
6492
6488
|
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.`)));
|
|
6493
6489
|
}, [
|
|
6494
6490
|
e.mode,
|
|
@@ -6548,7 +6544,7 @@ var rf = 4, nf = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
|
|
|
6548
6544
|
height: n.height
|
|
6549
6545
|
}
|
|
6550
6546
|
};
|
|
6551
|
-
}, wf = { mode: "responsive" },
|
|
6547
|
+
}, wf = { mode: "responsive" }, Ot = {
|
|
6552
6548
|
headerSize: {
|
|
6553
6549
|
width: 0,
|
|
6554
6550
|
height: 0
|
|
@@ -6558,16 +6554,16 @@ var rf = 4, nf = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
|
|
|
6558
6554
|
height: 0
|
|
6559
6555
|
}
|
|
6560
6556
|
}, Rf = () => {
|
|
6561
|
-
const [e, t] = V(null), [r, n] = V(null), [o, i] = V(
|
|
6562
|
-
return
|
|
6557
|
+
const [e, t] = V(null), [r, n] = V(null), [o, i] = V(Ot);
|
|
6558
|
+
return F(() => {
|
|
6563
6559
|
const a = () => {
|
|
6564
6560
|
const d = e ? {
|
|
6565
6561
|
width: e.offsetWidth,
|
|
6566
6562
|
height: e.offsetHeight
|
|
6567
|
-
} :
|
|
6563
|
+
} : Ot.headerSize, c = r ? {
|
|
6568
6564
|
width: r.offsetWidth,
|
|
6569
6565
|
height: r.offsetHeight
|
|
6570
|
-
} :
|
|
6566
|
+
} : Ot.footerSize;
|
|
6571
6567
|
i((u) => kf(u, {
|
|
6572
6568
|
headerSize: d,
|
|
6573
6569
|
footerSize: c
|
|
@@ -6585,7 +6581,7 @@ var rf = 4, nf = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
|
|
|
6585
6581
|
measurements: o
|
|
6586
6582
|
};
|
|
6587
6583
|
}, kf = (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, Cf = () => null, Ef = ({ graphChrome: e, isEditable: t, mode: r, style: n, contentRef: o, children: i }) => {
|
|
6588
|
-
const { themeClass: a, inlineVarsStyle: l } =
|
|
6584
|
+
const { themeClass: a, inlineVarsStyle: l } = dr(), d = e.borderColor === void 0 ? 0 : e.borderWidth, c = d > 0 ? e.borderColor : void 0, u = Math.max(0, e.borderRadius), h = u === 0 ? 0 : u + d, g = y(() => ({
|
|
6589
6585
|
...n,
|
|
6590
6586
|
borderRadius: `${h}px`,
|
|
6591
6587
|
...l,
|
|
@@ -6631,55 +6627,54 @@ var rf = 4, nf = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
|
|
|
6631
6627
|
})
|
|
6632
6628
|
})
|
|
6633
6629
|
}) }) }), Bf = ({ width: e, height: t, animation: r, showTooltips: n = !0, mode: o = ve.readonly }) => {
|
|
6634
|
-
const i =
|
|
6635
|
-
axes:
|
|
6636
|
-
legends:
|
|
6637
|
-
layers:
|
|
6638
|
-
numberFormat:
|
|
6639
|
-
parsingLocale:
|
|
6640
|
-
annotations:
|
|
6641
|
-
coordSystem:
|
|
6642
|
-
headline:
|
|
6643
|
-
headlineConfig:
|
|
6644
|
-
content:
|
|
6645
|
-
overflowStrategy:
|
|
6646
|
-
|
|
6647
|
-
}))), w = _a(), { intro: k, transitions: E } = y(() => Od(r, w ?? !1), [r, w]), { headerRef: C, footerRef: N, measurements: G } = Rf(), { formattingLocale: D, colorScheme: O } = K(), re = $e[a], tt = re.editorSurface, [mr, ci] = V(null), ui = ae("Header", ah), hi = ae("Footer", _u), gi = ae("Legend", fg), vi = ae("Headline", Bh), fi = ae("EditorSurface", Cf), Ar = y(() => sa({
|
|
6630
|
+
const i = Ao(), a = ar(o), { axes: l, legends: d, layers: c, numberFormat: u, parsingLocale: h, annotations: g, coordSystem: v, headline: f, headlineConfig: A, content: m, overflowStrategy: b } = I(X((Z) => ({
|
|
6631
|
+
axes: Z.guides.axes,
|
|
6632
|
+
legends: Z.guides.legends.drawn,
|
|
6633
|
+
layers: Z.layers,
|
|
6634
|
+
numberFormat: Z.config.numberFormat,
|
|
6635
|
+
parsingLocale: Z.config.parsingLocale,
|
|
6636
|
+
annotations: Z.annotations,
|
|
6637
|
+
coordSystem: Z.coordSystem,
|
|
6638
|
+
headline: Z.guides.headline,
|
|
6639
|
+
headlineConfig: Z.config.headline,
|
|
6640
|
+
content: Z.config.content,
|
|
6641
|
+
overflowStrategy: Z.config.panel.overflow
|
|
6642
|
+
}))), x = _a(), { intro: w, transitions: k } = y(() => Od(r, x ?? !1), [r, x]), { headerRef: E, footerRef: C, measurements: N } = Rf(), { formattingLocale: H, colorScheme: U } = K(), W = $e[a], q = W.editorSurface, [fr, di] = V(null), ci = ae("Header", ah), ui = ae("Footer", _u), hi = ae("Legend", fg), gi = ae("Headline", Bh), vi = ae("EditorSurface", Cf), pr = y(() => aa({
|
|
6648
6643
|
legends: d,
|
|
6649
6644
|
numberFormat: u,
|
|
6650
6645
|
parsingLocale: h,
|
|
6651
|
-
formattingLocale:
|
|
6646
|
+
formattingLocale: H
|
|
6652
6647
|
}), [
|
|
6653
6648
|
d,
|
|
6654
6649
|
u,
|
|
6655
6650
|
h,
|
|
6656
|
-
|
|
6657
|
-
]), De = y(() =>
|
|
6651
|
+
H
|
|
6652
|
+
]), De = y(() => ia({
|
|
6658
6653
|
headline: f,
|
|
6659
6654
|
show: A.show,
|
|
6660
6655
|
numberFormat: u,
|
|
6661
6656
|
parsingLocale: h,
|
|
6662
|
-
formattingLocale:
|
|
6657
|
+
formattingLocale: H,
|
|
6663
6658
|
t: i
|
|
6664
6659
|
}), [
|
|
6665
6660
|
f,
|
|
6666
6661
|
A.show,
|
|
6667
6662
|
u,
|
|
6668
6663
|
h,
|
|
6669
|
-
|
|
6664
|
+
H,
|
|
6670
6665
|
i
|
|
6671
|
-
]),
|
|
6672
|
-
width: Math.max(0, e - 2 *
|
|
6673
|
-
height: Math.max(0, t - 2 *
|
|
6666
|
+
]), fi = Re(), O = L(), tt = y(() => Sn(O), [O]), mr = y(() => kn(O), [O]), Ar = Wo(), It = O.graph.get("fontFamily"), pi = Da(O), mi = O.graph.get("textScale"), Ai = y(() => Oa(O), [O]), yi = y(() => Ya(O), [O]), xi = y(() => Ia(O), [O]), bi = y(() => Ka(O), [O]), yr = y(() => _n(U, {}, It), [U, It]), Mt = tt.borderColor === void 0 ? 0 : tt.borderWidth, Oe = y(() => ({
|
|
6667
|
+
width: Math.max(0, e - 2 * Mt),
|
|
6668
|
+
height: Math.max(0, t - 2 * Mt)
|
|
6674
6669
|
}), [
|
|
6675
6670
|
e,
|
|
6676
6671
|
t,
|
|
6677
|
-
|
|
6678
|
-
]),
|
|
6672
|
+
Mt
|
|
6673
|
+
]), xr = y(() => ju(m.brandMark.enabled, Oe, m.brandMark.variant), [
|
|
6679
6674
|
m.brandMark.enabled,
|
|
6680
6675
|
m.brandMark.variant,
|
|
6681
6676
|
Oe
|
|
6682
|
-
]),
|
|
6677
|
+
]), Si = m.brandMark.placement === "footer" ? xr : "hidden", wi = m.brandMark.placement === "header" ? xr : "hidden", Ce = y(() => De ? {
|
|
6683
6678
|
formatted: De,
|
|
6684
6679
|
size: A.size,
|
|
6685
6680
|
position: A.position,
|
|
@@ -6689,121 +6684,121 @@ var rf = 4, nf = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
|
|
|
6689
6684
|
A.size,
|
|
6690
6685
|
A.position,
|
|
6691
6686
|
v
|
|
6692
|
-
]),
|
|
6693
|
-
textMeasurer:
|
|
6694
|
-
metrics:
|
|
6687
|
+
]), rt = nu({
|
|
6688
|
+
textMeasurer: fi,
|
|
6689
|
+
metrics: yr,
|
|
6695
6690
|
overrides: Nl()
|
|
6696
|
-
}),
|
|
6697
|
-
measurer:
|
|
6691
|
+
}), br = y(() => Zi(mr), [mr]), We = ou({
|
|
6692
|
+
measurer: rt,
|
|
6698
6693
|
axes: l,
|
|
6699
6694
|
numberFormat: u,
|
|
6700
6695
|
parsingLocale: h,
|
|
6701
|
-
formattedLegends:
|
|
6696
|
+
formattedLegends: pr,
|
|
6702
6697
|
containerSize: Oe,
|
|
6703
|
-
externalMeasurements:
|
|
6698
|
+
externalMeasurements: N,
|
|
6704
6699
|
headline: Ce,
|
|
6705
|
-
formattingLocale:
|
|
6700
|
+
formattingLocale: H,
|
|
6706
6701
|
annotations: g,
|
|
6707
6702
|
layers: c,
|
|
6708
6703
|
coordSystem: v,
|
|
6709
6704
|
overflowStrategy: b,
|
|
6710
|
-
|
|
6711
|
-
|
|
6712
|
-
|
|
6713
|
-
}),
|
|
6705
|
+
panelBorder: br,
|
|
6706
|
+
padding: y(() => Fa(O), [O]),
|
|
6707
|
+
margins: y(() => Ma(O), [O])
|
|
6708
|
+
}), nt = y(() => !We || !Ce || !rt ? null : Wa({
|
|
6714
6709
|
headline: Ce,
|
|
6715
6710
|
layout: We.layout,
|
|
6716
6711
|
containerSize: Oe,
|
|
6717
|
-
measurer:
|
|
6718
|
-
itemGap:
|
|
6712
|
+
measurer: rt,
|
|
6713
|
+
itemGap: Ar.gap
|
|
6719
6714
|
}), [
|
|
6720
6715
|
We,
|
|
6721
6716
|
Ce,
|
|
6722
|
-
|
|
6717
|
+
rt,
|
|
6723
6718
|
Oe,
|
|
6724
|
-
|
|
6719
|
+
Ar.gap
|
|
6725
6720
|
]);
|
|
6726
6721
|
if (!We) return null;
|
|
6727
|
-
const { layout: J, formattedAxes:
|
|
6728
|
-
return /* @__PURE__ */ s(
|
|
6722
|
+
const { layout: J, formattedAxes: Ri, plotBottomY: ki } = We, Ci = J.footer.height > 0;
|
|
6723
|
+
return /* @__PURE__ */ s($o.Provider, {
|
|
6729
6724
|
value: a,
|
|
6730
6725
|
children: /* @__PURE__ */ s(lc, {
|
|
6731
|
-
colorScheme:
|
|
6732
|
-
textScale:
|
|
6733
|
-
graphBackground:
|
|
6734
|
-
graphFontFamily:
|
|
6735
|
-
headingFontFamily:
|
|
6726
|
+
colorScheme: U,
|
|
6727
|
+
textScale: mi,
|
|
6728
|
+
graphBackground: tt.background,
|
|
6729
|
+
graphFontFamily: It,
|
|
6730
|
+
headingFontFamily: pi,
|
|
6736
6731
|
children: /* @__PURE__ */ s(ul, {
|
|
6737
|
-
metrics:
|
|
6732
|
+
metrics: yr,
|
|
6738
6733
|
children: /* @__PURE__ */ s(lu, { children: /* @__PURE__ */ s(Pu, {
|
|
6739
6734
|
panelRect: J.panel,
|
|
6740
6735
|
children: /* @__PURE__ */ s(Ef, {
|
|
6741
|
-
graphChrome:
|
|
6742
|
-
isEditable:
|
|
6736
|
+
graphChrome: tt,
|
|
6737
|
+
isEditable: q,
|
|
6743
6738
|
mode: a,
|
|
6744
|
-
contentRef:
|
|
6739
|
+
contentRef: q ? di : void 0,
|
|
6745
6740
|
style: {
|
|
6746
6741
|
width: "100%",
|
|
6747
6742
|
height: "100%"
|
|
6748
6743
|
},
|
|
6749
6744
|
children: /* @__PURE__ */ S(Oc, {
|
|
6750
|
-
intro:
|
|
6745
|
+
intro: w,
|
|
6751
6746
|
children: [
|
|
6752
|
-
/* @__PURE__ */ s(
|
|
6753
|
-
ref:
|
|
6747
|
+
/* @__PURE__ */ s(ci, {
|
|
6748
|
+
ref: E,
|
|
6754
6749
|
headerRect: J.header,
|
|
6755
6750
|
mode: a,
|
|
6756
6751
|
title: m.title,
|
|
6757
6752
|
isTitleVisible: m.isTitleVisible,
|
|
6758
6753
|
subtitle: m.subtitle,
|
|
6759
6754
|
isSubtitleVisible: m.isSubtitleVisible,
|
|
6760
|
-
headingStyle:
|
|
6761
|
-
subtitleStyle:
|
|
6762
|
-
brandMark:
|
|
6755
|
+
headingStyle: Ai,
|
|
6756
|
+
subtitleStyle: yi,
|
|
6757
|
+
brandMark: wi
|
|
6763
6758
|
}),
|
|
6764
6759
|
/* @__PURE__ */ s(yf, {
|
|
6765
|
-
formattedAxes:
|
|
6760
|
+
formattedAxes: Ri,
|
|
6766
6761
|
plotRect: J.plot,
|
|
6767
|
-
panelBorder:
|
|
6762
|
+
panelBorder: br,
|
|
6768
6763
|
panelFrameRect: J.panelFrame,
|
|
6769
6764
|
panelRect: J.panel,
|
|
6770
6765
|
axisRects: J.axes,
|
|
6771
6766
|
axisLabelRects: J.axisLabels,
|
|
6772
|
-
shouldAnimateTransitions:
|
|
6773
|
-
formattingLocale:
|
|
6774
|
-
plotBottomY:
|
|
6775
|
-
isFooterChromeReserved:
|
|
6776
|
-
isEditable:
|
|
6777
|
-
showAnnotations:
|
|
6767
|
+
shouldAnimateTransitions: k,
|
|
6768
|
+
formattingLocale: H ?? h,
|
|
6769
|
+
plotBottomY: ki,
|
|
6770
|
+
isFooterChromeReserved: Ci,
|
|
6771
|
+
isEditable: q,
|
|
6772
|
+
showAnnotations: W.annotations
|
|
6778
6773
|
}),
|
|
6779
|
-
/* @__PURE__ */ s(
|
|
6780
|
-
ref:
|
|
6774
|
+
/* @__PURE__ */ s(ui, {
|
|
6775
|
+
ref: C,
|
|
6781
6776
|
footerRect: J.footer,
|
|
6782
6777
|
mode: a,
|
|
6783
6778
|
caption: m.caption,
|
|
6784
6779
|
isCaptionVisible: m.isCaptionVisible,
|
|
6785
6780
|
source: m.source,
|
|
6786
6781
|
isSourceVisible: m.isSourceVisible,
|
|
6787
|
-
captionStyle:
|
|
6788
|
-
sourceStyle:
|
|
6789
|
-
brandMark:
|
|
6782
|
+
captionStyle: xi,
|
|
6783
|
+
sourceStyle: bi,
|
|
6784
|
+
brandMark: Si
|
|
6790
6785
|
}),
|
|
6791
|
-
/* @__PURE__ */ s(
|
|
6792
|
-
formattedLegends:
|
|
6786
|
+
/* @__PURE__ */ s(hi, {
|
|
6787
|
+
formattedLegends: pr,
|
|
6793
6788
|
rects: J.legends
|
|
6794
6789
|
}),
|
|
6795
|
-
De &&
|
|
6790
|
+
De && nt && /* @__PURE__ */ s(gi, {
|
|
6796
6791
|
headline: De,
|
|
6797
|
-
rect:
|
|
6798
|
-
resolvedSize:
|
|
6799
|
-
visibleItemCount:
|
|
6800
|
-
isInDonutHole: Ce !== void 0 &&
|
|
6792
|
+
rect: nt.rect,
|
|
6793
|
+
resolvedSize: nt.resolvedSize,
|
|
6794
|
+
visibleItemCount: nt.visibleItemCount,
|
|
6795
|
+
isInDonutHole: Ce !== void 0 && xa(Ce)
|
|
6801
6796
|
}),
|
|
6802
|
-
|
|
6803
|
-
frameElement:
|
|
6797
|
+
q && fr !== null && /* @__PURE__ */ s(vi, {
|
|
6798
|
+
frameElement: fr,
|
|
6804
6799
|
panelRect: J.panel
|
|
6805
6800
|
}),
|
|
6806
|
-
n &&
|
|
6801
|
+
n && W.tooltips && /* @__PURE__ */ s(Mc, {})
|
|
6807
6802
|
]
|
|
6808
6803
|
})
|
|
6809
6804
|
})
|
|
@@ -6812,7 +6807,7 @@ var rf = 4, nf = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
|
|
|
6812
6807
|
})
|
|
6813
6808
|
});
|
|
6814
6809
|
}, cp = (e) => {
|
|
6815
|
-
const t =
|
|
6810
|
+
const t = D(Hn);
|
|
6816
6811
|
return y(() => e || (t ? {
|
|
6817
6812
|
commands: t.commands,
|
|
6818
6813
|
undo: t.history.undo,
|
|
@@ -6841,11 +6836,11 @@ export {
|
|
|
6841
6836
|
md as Ct,
|
|
6842
6837
|
Ah as D,
|
|
6843
6838
|
qf as Dt,
|
|
6844
|
-
|
|
6839
|
+
_o as E,
|
|
6845
6840
|
Ul as Et,
|
|
6846
6841
|
np as F,
|
|
6847
6842
|
Xf as Ft,
|
|
6848
|
-
|
|
6843
|
+
No as G,
|
|
6849
6844
|
_f as H,
|
|
6850
6845
|
K as Ht,
|
|
6851
6846
|
ye as I,
|
|
@@ -6853,12 +6848,12 @@ export {
|
|
|
6853
6848
|
su as J,
|
|
6854
6849
|
uu as K,
|
|
6855
6850
|
op as L,
|
|
6856
|
-
|
|
6857
|
-
|
|
6851
|
+
wt as Lt,
|
|
6852
|
+
Do as M,
|
|
6858
6853
|
Ve as Mt,
|
|
6859
6854
|
ju as N,
|
|
6860
6855
|
$s as Nt,
|
|
6861
|
-
|
|
6856
|
+
Uo as O,
|
|
6862
6857
|
Al as Ot,
|
|
6863
6858
|
Bu as P,
|
|
6864
6859
|
jf as Pt,
|
|
@@ -6872,28 +6867,28 @@ export {
|
|
|
6872
6867
|
$f as U,
|
|
6873
6868
|
is as Ut,
|
|
6874
6869
|
ep as V,
|
|
6875
|
-
|
|
6870
|
+
Hn as Vt,
|
|
6876
6871
|
fu as W,
|
|
6877
6872
|
Lc as X,
|
|
6878
|
-
|
|
6873
|
+
ko as Y,
|
|
6879
6874
|
Ie as Z,
|
|
6880
6875
|
Qg as _,
|
|
6881
6876
|
wd as _t,
|
|
6882
6877
|
dp as a,
|
|
6883
|
-
|
|
6878
|
+
yo as at,
|
|
6884
6879
|
Hg as b,
|
|
6885
6880
|
yd as bt,
|
|
6886
6881
|
wv as c,
|
|
6887
|
-
|
|
6882
|
+
sr as ct,
|
|
6888
6883
|
sp as d,
|
|
6889
6884
|
Td as dt,
|
|
6890
|
-
|
|
6885
|
+
Gr as et,
|
|
6891
6886
|
rv as f,
|
|
6892
6887
|
Ld as ft,
|
|
6893
6888
|
Zg as g,
|
|
6894
6889
|
Rd as gt,
|
|
6895
6890
|
_g as h,
|
|
6896
|
-
|
|
6891
|
+
fo as ht,
|
|
6897
6892
|
cp as i,
|
|
6898
6893
|
sc as it,
|
|
6899
6894
|
ip as j,
|
|
@@ -6912,9 +6907,9 @@ export {
|
|
|
6912
6907
|
Id as pt,
|
|
6913
6908
|
du as q,
|
|
6914
6909
|
up as r,
|
|
6915
|
-
|
|
6910
|
+
dr as rt,
|
|
6916
6911
|
Qv as s,
|
|
6917
|
-
|
|
6912
|
+
Ao as st,
|
|
6918
6913
|
gp as t,
|
|
6919
6914
|
dc as tt,
|
|
6920
6915
|
lp as u,
|
|
@@ -6926,7 +6921,7 @@ export {
|
|
|
6926
6921
|
Cg as x,
|
|
6927
6922
|
Zf as xt,
|
|
6928
6923
|
et as y,
|
|
6929
|
-
|
|
6924
|
+
Yt as yt,
|
|
6930
6925
|
rp as z,
|
|
6931
|
-
|
|
6926
|
+
bt as zt
|
|
6932
6927
|
};
|