@graphysdk/react-renderer 2.0.0-beta.1788536263128 → 2.0.0-beta.1788545088004
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 +1 -1
- package/dist/{history-chords-CaU1C8Hh.cjs → history-chords-BtMmvJyR.cjs} +1 -1
- package/dist/{history-chords-DSpKFVIF.js → history-chords-DPxkZyE9.js} +195 -188
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +309 -305
- package/package.json +2 -2
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { a as Vr, c as oa, f as x, i as aa, l as Ur, n as Qr, o as ia, r as sa, s as Yr, t as la, u as Kr } from "./dev.utils-HBVa4Fj9.js";
|
|
2
|
-
import { ANNOTATION_TOOLTIP_MARKER_GAP as ca, AXIS_KEYS as Vt, CachedTextMeasurer as ur, DATA_LABEL_POSITIONS as da, DATA_LABEL_ROLES as ua, DEFAULT_GEOM_COLOR as zr, DEFAULT_HOVER_AFFORDANCE_COLOR as vt, GROUP_VARIABLES as ce, HeuristicTextMeasurer as ha, HoverEngine as va, InternalError as ga, LayoutCompiler as fa, POLAR_RIM_LABEL_GAP_PX as pa, RESTING_HOVER_STATE as st, TAU as hr, alignUnitFractions as jr, areAnchorsEqual as ma, areEditMenuTriggersEqual as Aa, areEndpointsComparable as vr, arePointerRegionListsEqual as ya, buildAverageLineSymbols as xa, buildCalloutHitRegions as ba, buildColumnKey as Ut, buildDataLabelsContent as wa, buildFontString as Sa, buildLayerIntroPlan as ka, buildLayerYValueFormatter as Ra, buildPinnedNumberValueFormatter as Ca, buildPolarBarArcPath as ge, buildSliceGroupKey as Qt, buildTooltipContent as Ea, compositeColor as Pa, computeArrow as Ba, computeDifferenceArrow as Ia, computeDirectLabelsLayout as Ta, computeLineBoxHeight as fe, computePanelBorderPaths as La, computePanelBorderSizes as Na, countLayerGeoms as Ma, createAreaPathGenerators as Xr, createHeadlineItemRows as qr, createLineFillAreaGenerator as Fa, createLinePathGenerator as Jr, createSegmentYReader as Da, createStableCellKeyGenerator as
|
|
3
|
-
import { Fragment as jt, createContext as U, memo as Z, useCallback as se, useContext as D, useEffect as
|
|
2
|
+
import { ANNOTATION_TOOLTIP_MARKER_GAP as ca, AXIS_KEYS as Vt, CachedTextMeasurer as ur, DATA_LABEL_POSITIONS as da, DATA_LABEL_ROLES as ua, DEFAULT_GEOM_COLOR as zr, DEFAULT_HOVER_AFFORDANCE_COLOR as vt, GROUP_VARIABLES as ce, HeuristicTextMeasurer as ha, HoverEngine as va, InternalError as ga, LayoutCompiler as fa, POLAR_RIM_LABEL_GAP_PX as pa, RESTING_HOVER_STATE as st, TAU as hr, alignUnitFractions as jr, areAnchorsEqual as ma, areEditMenuTriggersEqual as Aa, areEndpointsComparable as vr, arePointerRegionListsEqual as ya, buildAverageLineSymbols as xa, buildCalloutHitRegions as ba, buildColumnKey as Ut, buildDataLabelsContent as wa, buildFontString as Sa, buildLayerIntroPlan as ka, buildLayerYValueFormatter as Ra, buildPinnedNumberValueFormatter as Ca, buildPolarBarArcPath as ge, buildSliceGroupKey as Qt, buildTooltipContent as Ea, compositeColor as Pa, computeArrow as Ba, computeDifferenceArrow as Ia, computeDirectLabelsLayout as Ta, computeLineBoxHeight as fe, computePanelBorderPaths as La, computePanelBorderSizes as Na, countLayerGeoms as Ma, createAreaPathGenerators as Xr, createHeadlineItemRows as qr, createLineFillAreaGenerator as Fa, createLinePathGenerator as Jr, createSegmentYReader as Da, createStableCellKeyGenerator as Oa, createStableKeyGenerator as oe, createStyleResolver as gt, findAnnotation as Ha, findPointerRegion as gr, formatHeadline as Ga, formatLegends as Wa, formatRuleValue as Va, getAestheticFromScaleAestheticKey as Ce, getAlpha as Zr, getAngleExtent as Yt, getBarRectBounds as Ke, getBoundingRect as $r, getChromeDashArray as ft, getColor as _r, getDashArray as Ee, getDifferenceArrowLabelBox as Ua, getGroup as pt, getHoverGuideLineProps as Qa, getHoverGuideRectProps as Ya, getInsetTileRect as en, getPolarHoverGuideArcProps as Ka, getRadiusExtent as mt, getRuleDashPattern as za, getShapeAnnotationStroke as ja, getSize as Xa, getStackRole as qa, getUnionExtent as Ja, getX as q, getXMax as Za, getY as te, getYMax as tn, isAnnotationMovable as $a, isDefined as rn, isFullTurnSweep as nn, isSafeUrl as Kt, orderPointerRegions as _a, paintsInDonutHole as ei, pickReadableTextColor as on, placeCallouts as ti, polarToUnit as ri, positionToAngle as ni, prepareAreaObservations as an, prepareLineObservations as sn, projectAnchorToPanel as Qe, projectRegionToPanel as zt, readAnchoredObservation as oi, resolveArrowAnnotationStyle as ai, resolveArrowColor as ii, resolveAxisLabelStyle as si, resolveBarBorderRadiusPx as ln, resolveBarBorderTreatment as ze, resolveBarCornerRadiiPx as li, resolveCalloutAnnotationStyle as ci, resolveDataLabelStyle as di, resolveDeferredAnchors as ui, resolveDifferenceArrowAnnotationStyle as hi, resolveDirectLabelStyle as vi, resolveGraphChromeStyle as cn, resolveGridLineStyle as Lt, resolveHeadlineFigure as dn, resolveHeadlineItemStyle as at, resolveHeadlinePlacement as gi, resolveHeadlineStyle as un, resolveImageAnnotationStyle as fi, resolveLegendItemStyle as pi, resolveLegendStyle as mi, resolvePanelBorderStyle as hn, resolvePolarBarCornerRadiusUnit as vn, resolveRuleLabelStyle as Ai, resolveShapeAnnotationStyle as gn, resolveTextAnnotationStyle as yi, resolveTickLabelStyle as xi, resolveTickLineStyle as bi, resolveTooltipStyle as wi, toFontSpec as z, toPanelCursor as Si, toPercent as k, toViewBoxX as fn, toViewBoxY as pn, truncateToWidth as ki } from "@graphysdk/viz-engine";
|
|
3
|
+
import { Fragment as jt, createContext as U, memo as Z, useCallback as se, useContext as D, useEffect as M, useId as V, useMemo as A, useRef as I, useState as H, useSyncExternalStore as Ri } from "react";
|
|
4
4
|
import { Fragment as B, jsx as s, jsxs as w } from "react/jsx-runtime";
|
|
5
5
|
import { useStore as je } from "zustand";
|
|
6
|
-
import { animate as ie, motion as
|
|
6
|
+
import { animate as ie, motion as O, useMotionValue as _, useReducedMotion as Ci, useTransform as tt } from "motion/react";
|
|
7
7
|
import { interpolatePath as Ei } from "d3-interpolate-path";
|
|
8
8
|
import { useShallow as j } from "zustand/react/shallow";
|
|
9
9
|
import { parseFontLength as Pi, parseFontWeight as Bi, parseUnitlessLineHeight as Ii } from "@graphysdk/viz-engine/graph-config";
|
|
10
10
|
import { createStore as mn } from "zustand/vanilla";
|
|
11
11
|
import { createPortal as An } from "react-dom";
|
|
12
|
-
import Ye, { clsx as
|
|
12
|
+
import Ye, { clsx as He } from "clsx";
|
|
13
13
|
import Ti from "lodash-es/merge";
|
|
14
14
|
import { IntlProvider as Li } from "react-intl";
|
|
15
15
|
import { flip as Nt, offset as Mt, shift as Ft, useFloating as yn } from "@floating-ui/react-dom";
|
|
@@ -24,7 +24,7 @@ import './history-chords.css';var fr = Object.defineProperty, Mi = (e, t) => {
|
|
|
24
24
|
});
|
|
25
25
|
return t || fr(r, Symbol.toStringTag, { value: "Module" }), r;
|
|
26
26
|
};
|
|
27
|
-
typeof window < "u" && (window.__GRAPHY_SDK__ ??= {}, window.__GRAPHY_SDK__.reactRenderer = "2.0.0-beta.
|
|
27
|
+
typeof window < "u" && (window.__GRAPHY_SDK__ ??= {}, window.__GRAPHY_SDK__.reactRenderer = "2.0.0-beta.1788545088004");
|
|
28
28
|
var bn = U(null), G = () => {
|
|
29
29
|
const e = D(bn);
|
|
30
30
|
if (!e) throw new Error("useGraph* hooks must be used inside a <GraphProvider>");
|
|
@@ -33,7 +33,7 @@ var bn = U(null), G = () => {
|
|
|
33
33
|
const { store: t } = G();
|
|
34
34
|
return je(t, (r) => e(r.compiled));
|
|
35
35
|
};
|
|
36
|
-
function
|
|
36
|
+
function T(e) {
|
|
37
37
|
const { colorScheme: t } = G();
|
|
38
38
|
return A(() => gt({ colorScheme: t }).geomReaders(e), [e, t]);
|
|
39
39
|
}
|
|
@@ -83,10 +83,10 @@ var wn = (e) => {
|
|
|
83
83
|
x: (r.x + 1) / 2,
|
|
84
84
|
y: (r.y + 1) / 2
|
|
85
85
|
};
|
|
86
|
-
}, Di = 2,
|
|
86
|
+
}, Di = 2, Oi = 0.7, he = ({ hit: e, project: t = Xt }) => {
|
|
87
87
|
const r = wn(e.layerId);
|
|
88
88
|
if (!e.anchored) return null;
|
|
89
|
-
const n = r?.get("color", e.observation) ?? zr, o = (Zr(e.observation) ?? 1) *
|
|
89
|
+
const n = r?.get("color", e.observation) ?? zr, o = (Zr(e.observation) ?? 1) * Oi, a = (r?.get("size", e.observation) ?? 8) / 2, i = r?.get("borderColor", e.observation, "hovered") ?? vt, l = t(e.x, e.y);
|
|
90
90
|
return /* @__PURE__ */ s("circle", {
|
|
91
91
|
cx: k(l.x),
|
|
92
92
|
cy: k(l.y),
|
|
@@ -102,9 +102,9 @@ var wn = (e) => {
|
|
|
102
102
|
stiffness: 500,
|
|
103
103
|
damping: 60,
|
|
104
104
|
mass: 1
|
|
105
|
-
},
|
|
105
|
+
}, Hi = { duration: 0 }, qt = (e) => e ? ne : Hi, Dt = (e, t) => {
|
|
106
106
|
const r = _(e);
|
|
107
|
-
return
|
|
107
|
+
return M(() => {
|
|
108
108
|
const n = Ei(r.get(), e);
|
|
109
109
|
ie(0, 1, {
|
|
110
110
|
...t,
|
|
@@ -133,12 +133,12 @@ var wn = (e) => {
|
|
|
133
133
|
vectorEffect: "non-scaling-stroke"
|
|
134
134
|
})] }), Wi = ({ fillPath: e, linePath: t, fill: r, fillOpacity: n, stroke: o, strokeWidth: a, strokeOpacity: i, strokeDasharray: l }) => {
|
|
135
135
|
const c = Dt(e, ne), u = Dt(t, ne);
|
|
136
|
-
return /* @__PURE__ */ w("g", { children: [/* @__PURE__ */ s(
|
|
136
|
+
return /* @__PURE__ */ w("g", { children: [/* @__PURE__ */ s(O.path, {
|
|
137
137
|
d: c,
|
|
138
138
|
fill: r,
|
|
139
139
|
fillOpacity: n,
|
|
140
140
|
stroke: "none"
|
|
141
|
-
}), /* @__PURE__ */ s(
|
|
141
|
+
}), /* @__PURE__ */ s(O.path, {
|
|
142
142
|
d: u,
|
|
143
143
|
fill: "none",
|
|
144
144
|
stroke: o,
|
|
@@ -172,7 +172,7 @@ var wn = (e) => {
|
|
|
172
172
|
const r = V();
|
|
173
173
|
return /* @__PURE__ */ w(B, { children: [/* @__PURE__ */ s("clipPath", {
|
|
174
174
|
id: r,
|
|
175
|
-
children: /* @__PURE__ */ s(
|
|
175
|
+
children: /* @__PURE__ */ s(O.rect, {
|
|
176
176
|
...Ki(e.axis),
|
|
177
177
|
transition: Vi(e)
|
|
178
178
|
})
|
|
@@ -193,7 +193,7 @@ var wn = (e) => {
|
|
|
193
193
|
initial: { height: 0 },
|
|
194
194
|
animate: { height: pr }
|
|
195
195
|
}, zi = Z(function({ layer: t, coordSystem: r, shouldAnimateTransitions: n, intro: o }) {
|
|
196
|
-
const a = o?.type === "wipe" ? o : null, { lineGenerator: i, areaGenerator: l } = A(() => Xr(r, t.params), [t.params, r]), c =
|
|
196
|
+
const a = o?.type === "wipe" ? o : null, { lineGenerator: i, areaGenerator: l } = A(() => Xr(r, t.params), [t.params, r]), c = T(t), u = A(() => {
|
|
197
197
|
const d = oe(t.data, t.mapping, t.id), v = [];
|
|
198
198
|
return t.data.groupBy(ce.group).forEach((g) => {
|
|
199
199
|
const h = an([...g], t.params.missingValues), f = l(h), m = i(h);
|
|
@@ -280,7 +280,7 @@ var wn = (e) => {
|
|
|
280
280
|
const t = Xa(e);
|
|
281
281
|
return rn(t) ? t / $i : Zi;
|
|
282
282
|
}, es = ({ layer: e, coordSystem: t, primary: r, companions: n }) => {
|
|
283
|
-
const o =
|
|
283
|
+
const o = T(e), a = pt(r.observation), i = A(() => an([...e.data.filter(ce.group, "eq", a)], e.params.missingValues), [
|
|
284
284
|
e.data,
|
|
285
285
|
e.params.missingValues,
|
|
286
286
|
a
|
|
@@ -363,15 +363,15 @@ var wn = (e) => {
|
|
|
363
363
|
y: r
|
|
364
364
|
};
|
|
365
365
|
}
|
|
366
|
-
},
|
|
367
|
-
const n = r === void 0 ? e.activeIntro : r, o =
|
|
366
|
+
}, Ot = (e, t, r) => {
|
|
367
|
+
const n = r === void 0 ? e.activeIntro : r, o = I(n ? Jt(n, t) : null), a = I(e.shouldAnimateTransitions);
|
|
368
368
|
return a.current = e.shouldAnimateTransitions, se(() => {
|
|
369
369
|
const i = o.current;
|
|
370
370
|
return o.current = null, i ?? qt(a.current);
|
|
371
371
|
}, []);
|
|
372
372
|
}, At = (e, t) => {
|
|
373
|
-
const r =
|
|
374
|
-
|
|
373
|
+
const r = I(!0);
|
|
374
|
+
M(() => {
|
|
375
375
|
r.current = !1;
|
|
376
376
|
}, []);
|
|
377
377
|
const n = r.current;
|
|
@@ -401,7 +401,7 @@ var wn = (e) => {
|
|
|
401
401
|
width: e.width,
|
|
402
402
|
height: 0
|
|
403
403
|
}, rs = Z(function({ layer: t, coordSystem: r, shouldAnimateTransitions: n, intro: o }) {
|
|
404
|
-
const a = V(), i =
|
|
404
|
+
const a = V(), i = T(t), l = At(o?.type === "grow" && (o.growAxis === "x" || o.growAxis === "y") ? o : null, n);
|
|
405
405
|
return /* @__PURE__ */ s(B, { children: A(() => {
|
|
406
406
|
const c = oe(t.data, t.mapping, t.id), u = /* @__PURE__ */ new Map();
|
|
407
407
|
for (const d of t.data) {
|
|
@@ -516,13 +516,13 @@ var wn = (e) => {
|
|
|
516
516
|
ry: o.ry
|
|
517
517
|
}, g = /* @__PURE__ */ s("clipPath", {
|
|
518
518
|
id: r,
|
|
519
|
-
children: /* @__PURE__ */ s(
|
|
519
|
+
children: /* @__PURE__ */ s(O.rect, { ...v })
|
|
520
520
|
});
|
|
521
521
|
if (n.length === 1) {
|
|
522
522
|
const [h] = n;
|
|
523
523
|
return /* @__PURE__ */ w(B, { children: [g, /* @__PURE__ */ s("g", {
|
|
524
524
|
clipPath: `url(#${r})`,
|
|
525
|
-
children: /* @__PURE__ */ s(
|
|
525
|
+
children: /* @__PURE__ */ s(O.rect, {
|
|
526
526
|
...v,
|
|
527
527
|
fill: h?.fill,
|
|
528
528
|
opacity: h?.opacity,
|
|
@@ -542,7 +542,7 @@ var wn = (e) => {
|
|
|
542
542
|
animation: t,
|
|
543
543
|
introKey: f
|
|
544
544
|
}, f);
|
|
545
|
-
}), u && /* @__PURE__ */ s(
|
|
545
|
+
}), u && /* @__PURE__ */ s(O.rect, {
|
|
546
546
|
...v,
|
|
547
547
|
fill: "none",
|
|
548
548
|
stroke: a,
|
|
@@ -554,7 +554,7 @@ var wn = (e) => {
|
|
|
554
554
|
const { isAnimated: l, activeIntro: c, shouldAnimateTransitions: u } = e;
|
|
555
555
|
if (l) {
|
|
556
556
|
const d = c ? En(i, c) : null;
|
|
557
|
-
return /* @__PURE__ */ s(
|
|
557
|
+
return /* @__PURE__ */ s(O.rect, {
|
|
558
558
|
initial: d ? {
|
|
559
559
|
x: k(d.x),
|
|
560
560
|
y: k(d.y),
|
|
@@ -604,8 +604,8 @@ var wn = (e) => {
|
|
|
604
604
|
strokeWidth: o,
|
|
605
605
|
opacity: a
|
|
606
606
|
}), as = (e, t, r) => {
|
|
607
|
-
const n = t.activeIntro ? En(e, t.activeIntro) : e, o = _(n.x), a = _(n.y), i = _(n.width), l = _(n.height), c =
|
|
608
|
-
return
|
|
607
|
+
const n = t.activeIntro ? En(e, t.activeIntro) : e, o = _(n.x), a = _(n.y), i = _(n.width), l = _(n.height), c = Ot(t, r);
|
|
608
|
+
return M(() => {
|
|
609
609
|
const u = c(), d = [
|
|
610
610
|
ie(o, e.x, u),
|
|
611
611
|
ie(a, e.y, u),
|
|
@@ -729,7 +729,7 @@ var ss = "_1suo8ub0", Pn = (e, t, r) => {
|
|
|
729
729
|
]
|
|
730
730
|
});
|
|
731
731
|
}, cs = ({ layer: e, sourceLayer: t, coordSystem: r, panelRect: n }) => {
|
|
732
|
-
const o =
|
|
732
|
+
const o = T(t), a = A(() => Pn(t, r.mainAxis, o), [
|
|
733
733
|
t,
|
|
734
734
|
r.mainAxis,
|
|
735
735
|
o
|
|
@@ -746,7 +746,7 @@ var ss = "_1suo8ub0", Pn = (e, t, r) => {
|
|
|
746
746
|
}
|
|
747
747
|
return l;
|
|
748
748
|
}, Ct = 3, ds = ({ layer: e, coordSystem: t, primary: r, panelRect: n }) => {
|
|
749
|
-
const o =
|
|
749
|
+
const o = T(e), a = V(), i = V(), l = V(), c = A(() => Pn(e, t.mainAxis, o), [
|
|
750
750
|
e,
|
|
751
751
|
t.mainAxis,
|
|
752
752
|
o
|
|
@@ -756,7 +756,7 @@ var ss = "_1suo8ub0", Pn = (e, t, r) => {
|
|
|
756
756
|
borderRadius: m,
|
|
757
757
|
mainAxis: t.mainAxis,
|
|
758
758
|
bounds: g
|
|
759
|
-
}), b = ke(v, 0), R = ke(g, y), S = ke(yr(v, Ct), 0), P = ke(yr(g, Ct), y > 0 ? y + Ct : 0), E = o.get("color", r.observation), N = o.get("alpha", r.observation),
|
|
759
|
+
}), b = ke(v, 0), R = ke(g, y), S = ke(yr(v, Ct), 0), P = ke(yr(g, Ct), y > 0 ? y + Ct : 0), E = o.get("color", r.observation), N = o.get("alpha", r.observation), F = o.get("borderColor", r.observation, "hovered") ?? vt, W = ze(f);
|
|
760
760
|
return /* @__PURE__ */ w("g", {
|
|
761
761
|
"data-testid": "hovered-bar",
|
|
762
762
|
children: [
|
|
@@ -778,7 +778,7 @@ var ss = "_1suo8ub0", Pn = (e, t, r) => {
|
|
|
778
778
|
clipPath: `url(#${a})`,
|
|
779
779
|
children: /* @__PURE__ */ s("path", {
|
|
780
780
|
d: S,
|
|
781
|
-
fill:
|
|
781
|
+
fill: F,
|
|
782
782
|
"data-testid": "hovered-bar-border"
|
|
783
783
|
})
|
|
784
784
|
})
|
|
@@ -835,7 +835,7 @@ var ss = "_1suo8ub0", Pn = (e, t, r) => {
|
|
|
835
835
|
}),
|
|
836
836
|
renderHoverCompanions: () => null
|
|
837
837
|
}, hs = Z(function({ layer: t, shouldAnimateTransitions: r, intro: n }) {
|
|
838
|
-
const o = n?.type === "wipe" ? n : null, a = A(() => Jr(t.params), [t.params]), i = A(() => Fa(t.params), [t.params]), l =
|
|
838
|
+
const o = n?.type === "wipe" ? n : null, a = A(() => Jr(t.params), [t.params]), i = A(() => Fa(t.params), [t.params]), l = T(t), c = A(() => {
|
|
839
839
|
const u = oe(t.data, t.mapping, t.id), d = [];
|
|
840
840
|
return t.data.groupBy(ce.group).forEach((v) => {
|
|
841
841
|
const g = sn([...v], t.params.missingValues), h = a(g);
|
|
@@ -941,7 +941,7 @@ var ss = "_1suo8ub0", Pn = (e, t, r) => {
|
|
|
941
941
|
})] });
|
|
942
942
|
}, fs = ({ pathData: e, color: t, strokeWidth: r, opacity: n, strokeDasharray: o }) => {
|
|
943
943
|
const a = Dt(e, ne);
|
|
944
|
-
return /* @__PURE__ */ s(
|
|
944
|
+
return /* @__PURE__ */ s(O.path, {
|
|
945
945
|
d: a,
|
|
946
946
|
fill: "none",
|
|
947
947
|
stroke: t,
|
|
@@ -951,7 +951,7 @@ var ss = "_1suo8ub0", Pn = (e, t, r) => {
|
|
|
951
951
|
vectorEffect: "non-scaling-stroke"
|
|
952
952
|
});
|
|
953
953
|
}, ps = ({ layer: e, primary: t, companions: r }) => {
|
|
954
|
-
const n =
|
|
954
|
+
const n = T(e), o = pt(t.observation), a = A(() => sn([...e.data.filter(ce.group, "eq", o)], e.params.missingValues), [
|
|
955
955
|
e.data,
|
|
956
956
|
e.params.missingValues,
|
|
957
957
|
o
|
|
@@ -1013,7 +1013,7 @@ var ss = "_1suo8ub0", Pn = (e, t, r) => {
|
|
|
1013
1013
|
const a = q(e), i = te(e);
|
|
1014
1014
|
if (a === null || i === null) return null;
|
|
1015
1015
|
const l = t(a, i), c = k(l.x), u = k(l.y), d = r.get("size", e) / 2, v = r.get("color", e), g = r.get("alpha", e), h = r.get("borderColor", e), f = r.get("borderWidth", e), { isAnimated: m, activeIntro: p, shouldAnimateTransitions: y } = n;
|
|
1016
|
-
return m ? /* @__PURE__ */ s(
|
|
1016
|
+
return m ? /* @__PURE__ */ s(O.circle, {
|
|
1017
1017
|
initial: p ? {
|
|
1018
1018
|
cx: c,
|
|
1019
1019
|
cy: u,
|
|
@@ -1040,7 +1040,7 @@ var ss = "_1suo8ub0", Pn = (e, t, r) => {
|
|
|
1040
1040
|
strokeWidth: f
|
|
1041
1041
|
});
|
|
1042
1042
|
}, As = Z(function({ layer: t, shouldAnimateTransitions: r, intro: n }) {
|
|
1043
|
-
const o =
|
|
1043
|
+
const o = T(t), a = At(n?.type === "grow" && n.growAxis === "size" ? n : null, r);
|
|
1044
1044
|
return A(() => {
|
|
1045
1045
|
const i = a.activeIntro ? oe(t.data, t.mapping, t.id) : null, l = [];
|
|
1046
1046
|
let c = 0;
|
|
@@ -1099,7 +1099,7 @@ var ss = "_1suo8ub0", Pn = (e, t, r) => {
|
|
|
1099
1099
|
legendPillPaddingBlock: be(2),
|
|
1100
1100
|
legendPillBorderWidth: be(1),
|
|
1101
1101
|
headlineRowGap: be(2)
|
|
1102
|
-
},
|
|
1102
|
+
}, Oe = {
|
|
1103
1103
|
panelOverlay: 5,
|
|
1104
1104
|
textToolbar: 10,
|
|
1105
1105
|
textToolbarTooltip: 20,
|
|
@@ -1119,10 +1119,10 @@ var ss = "_1suo8ub0", Pn = (e, t, r) => {
|
|
|
1119
1119
|
radiiMd: "8px",
|
|
1120
1120
|
radiiLg: "12px"
|
|
1121
1121
|
}, Mn = {
|
|
1122
|
-
zIndexToolbar: `${
|
|
1123
|
-
zIndexToolbarTooltip: `${
|
|
1124
|
-
zIndexToolbarPopover: `${
|
|
1125
|
-
zIndexEditorPopover: `${
|
|
1122
|
+
zIndexToolbar: `${Oe.textToolbar}`,
|
|
1123
|
+
zIndexToolbarTooltip: `${Oe.textToolbarTooltip}`,
|
|
1124
|
+
zIndexToolbarPopover: `${Oe.textToolbarPopover}`,
|
|
1125
|
+
zIndexEditorPopover: `${Oe.editorOverlayPopover}`
|
|
1126
1126
|
}, ws = 8, we = (e) => `${ws * e}px`, Fn = {
|
|
1127
1127
|
spaceXxs: we(0.25),
|
|
1128
1128
|
spaceXs: we(0.5),
|
|
@@ -1223,9 +1223,9 @@ var ss = "_1suo8ub0", Pn = (e, t, r) => {
|
|
|
1223
1223
|
...Vr,
|
|
1224
1224
|
...Ur,
|
|
1225
1225
|
...Yr
|
|
1226
|
-
},
|
|
1226
|
+
}, On = (e, t) => e * 10 * t, Hn = (e, t) => ({
|
|
1227
1227
|
family: e.family,
|
|
1228
|
-
size: e.size.unit === "em" ?
|
|
1228
|
+
size: e.size.unit === "em" ? On(e.size.value, t) : e.size.value,
|
|
1229
1229
|
weight: e.weight,
|
|
1230
1230
|
style: e.style
|
|
1231
1231
|
}), Es = (e, t = {}) => {
|
|
@@ -1391,14 +1391,14 @@ var Qn = U(Fs), Ds = ({ metrics: e, children: t }) => /* @__PURE__ */ s(Qn.Provi
|
|
|
1391
1391
|
}), Ie = () => D(Qn), L = () => {
|
|
1392
1392
|
const { colorScheme: e } = G(), t = C((r) => r.chrome);
|
|
1393
1393
|
return A(() => gt({ colorScheme: e }).chromeReaders(t), [t, e]);
|
|
1394
|
-
},
|
|
1394
|
+
}, Os = (e) => {
|
|
1395
1395
|
const t = L(), r = C((n) => n.config.appearance.textScale);
|
|
1396
1396
|
return A(() => Ai(t, e, r), [
|
|
1397
1397
|
t,
|
|
1398
1398
|
e,
|
|
1399
1399
|
r
|
|
1400
1400
|
]);
|
|
1401
|
-
},
|
|
1401
|
+
}, Hs = /\p{Emoji_Presentation}|\p{Emoji}\uFE0F/gu, Yn = "😀", Gs = class Kn {
|
|
1402
1402
|
constructor() {
|
|
1403
1403
|
this.emojiCorrections = /* @__PURE__ */ new Map(), this.currentFont = "";
|
|
1404
1404
|
const t = new OffscreenCanvas(1, 1).getContext("2d");
|
|
@@ -1441,14 +1441,14 @@ var Qn = U(Fs), Ds = ({ metrics: e, children: t }) => /* @__PURE__ */ s(Qn.Provi
|
|
|
1441
1441
|
return this.emojiCorrections.set(t, a), a;
|
|
1442
1442
|
}
|
|
1443
1443
|
}, ae = null, Ws = (e) => {
|
|
1444
|
-
const t = e.match(
|
|
1444
|
+
const t = e.match(Hs);
|
|
1445
1445
|
return t ? t.length : 0;
|
|
1446
1446
|
}, Vs = (e) => {
|
|
1447
1447
|
const t = Us();
|
|
1448
1448
|
return t ? (t.style.font = e, t.getBoundingClientRect().width) : null;
|
|
1449
1449
|
}, Us = () => typeof document > "u" ? null : (ae || (ae = document.createElement("span"), ae.style.position = "absolute", ae.style.visibility = "hidden", ae.style.whiteSpace = "nowrap", ae.style.left = "-9999px", ae.textContent = Yn, document.body.appendChild(ae)), ae), zn = U(null), Qs = ({ children: e, measurer: t }) => {
|
|
1450
|
-
const [r, n] =
|
|
1451
|
-
|
|
1450
|
+
const [r, n] = H(null);
|
|
1451
|
+
M(() => {
|
|
1452
1452
|
if (t !== void 0) return;
|
|
1453
1453
|
let a = !1;
|
|
1454
1454
|
const i = () => {
|
|
@@ -1647,7 +1647,7 @@ var el = "_2qyyu60", tl = 2, rl = 12, nl = 12, br = 1, wr = 2, ol = 4, Xe = (e)
|
|
|
1647
1647
|
})
|
|
1648
1648
|
]
|
|
1649
1649
|
});
|
|
1650
|
-
return i ? /* @__PURE__ */ s(
|
|
1650
|
+
return i ? /* @__PURE__ */ s(O.svg, {
|
|
1651
1651
|
initial: !1,
|
|
1652
1652
|
transition: ne,
|
|
1653
1653
|
x: v,
|
|
@@ -1676,7 +1676,7 @@ var el = "_2qyyu60", tl = 2, rl = 12, nl = 12, br = 1, wr = 2, ol = 4, Xe = (e)
|
|
|
1676
1676
|
children: a
|
|
1677
1677
|
})]
|
|
1678
1678
|
});
|
|
1679
|
-
return i ? /* @__PURE__ */ s(
|
|
1679
|
+
return i ? /* @__PURE__ */ s(O.svg, {
|
|
1680
1680
|
initial: !1,
|
|
1681
1681
|
transition: ne,
|
|
1682
1682
|
y: d,
|
|
@@ -1726,7 +1726,7 @@ var el = "_2qyyu60", tl = 2, rl = 12, nl = 12, br = 1, wr = 2, ol = 4, Xe = (e)
|
|
|
1726
1726
|
});
|
|
1727
1727
|
}, gl = ({ strokeWidth: e, lineType: t, isHorizontalLine: r, position: n, lineColor: o, shouldAnimateTransitions: a }) => {
|
|
1728
1728
|
const i = Xs(r, n), l = qs(t, e);
|
|
1729
|
-
return a ? /* @__PURE__ */ s(
|
|
1729
|
+
return a ? /* @__PURE__ */ s(O.line, {
|
|
1730
1730
|
initial: !1,
|
|
1731
1731
|
transition: ne,
|
|
1732
1732
|
animate: {
|
|
@@ -1747,11 +1747,11 @@ var el = "_2qyyu60", tl = 2, rl = 12, nl = 12, br = 1, wr = 2, ol = 4, Xe = (e)
|
|
|
1747
1747
|
vectorEffect: "non-scaling-stroke"
|
|
1748
1748
|
});
|
|
1749
1749
|
}, fl = Z(function({ layer: t, coordSystem: r, formattingLocale: n, shouldAnimateTransitions: o }) {
|
|
1750
|
-
const a = pe(), i = de(), { guides: l, numberFormat: c, layers: u, colorScale: d } = C(j((
|
|
1751
|
-
guides:
|
|
1752
|
-
numberFormat:
|
|
1753
|
-
layers:
|
|
1754
|
-
colorScale:
|
|
1750
|
+
const a = pe(), i = de(), { guides: l, numberFormat: c, layers: u, colorScale: d } = C(j((F) => ({
|
|
1751
|
+
guides: F.guides,
|
|
1752
|
+
numberFormat: F.config.numberFormat,
|
|
1753
|
+
layers: F.spec.layers,
|
|
1754
|
+
colorScale: F.scales.color
|
|
1755
1755
|
}))), v = A(() => xa(u, d).get(t.id) ?? null, [
|
|
1756
1756
|
u,
|
|
1757
1757
|
d,
|
|
@@ -1766,11 +1766,11 @@ var el = "_2qyyu60", tl = 2, rl = 12, nl = 12, br = 1, wr = 2, ol = 4, Xe = (e)
|
|
|
1766
1766
|
c,
|
|
1767
1767
|
n,
|
|
1768
1768
|
t
|
|
1769
|
-
]), { fonts: f } = Ie(), m =
|
|
1769
|
+
]), { fonts: f } = Ie(), m = Os(t.id), p = A(() => z(m, f.familyDefault), [m, f.familyDefault]), y = A(() => h === null ? 0 : a.measureText(h, p).width, [
|
|
1770
1770
|
h,
|
|
1771
1771
|
p,
|
|
1772
1772
|
a
|
|
1773
|
-
]), b =
|
|
1773
|
+
]), b = T(t), R = t.data.getFirst();
|
|
1774
1774
|
if (!R) return null;
|
|
1775
1775
|
const S = b.get("color", R), P = on(S), E = js(t, r), N = E ? te(R) : q(R);
|
|
1776
1776
|
return N === null ? null : /* @__PURE__ */ w("g", {
|
|
@@ -1809,8 +1809,8 @@ var el = "_2qyyu60", tl = 2, rl = 12, nl = 12, br = 1, wr = 2, ol = 4, Xe = (e)
|
|
|
1809
1809
|
renderHover: () => null,
|
|
1810
1810
|
renderHoverCompanions: () => null
|
|
1811
1811
|
}, ml = Z(function({ layer: t, shouldAnimateTransitions: r, intro: n }) {
|
|
1812
|
-
const o = n?.type === "fade" ? n : null, a =
|
|
1813
|
-
const l =
|
|
1812
|
+
const o = n?.type === "fade" ? n : null, a = T(t), i = A(() => {
|
|
1813
|
+
const l = Oa(t.data, t.mapping, t.id), c = [];
|
|
1814
1814
|
for (const u of t.data) {
|
|
1815
1815
|
const d = en(u);
|
|
1816
1816
|
d && _r(u) && c.push({
|
|
@@ -1829,13 +1829,13 @@ var el = "_2qyyu60", tl = 2, rl = 12, nl = 12, br = 1, wr = 2, ol = 4, Xe = (e)
|
|
|
1829
1829
|
a,
|
|
1830
1830
|
r
|
|
1831
1831
|
]);
|
|
1832
|
-
return o ? /* @__PURE__ */ s(
|
|
1832
|
+
return o ? /* @__PURE__ */ s(O.g, {
|
|
1833
1833
|
initial: { opacity: 0 },
|
|
1834
1834
|
animate: { opacity: 1 },
|
|
1835
1835
|
transition: Ui(o),
|
|
1836
1836
|
children: i
|
|
1837
1837
|
}) : i;
|
|
1838
|
-
}), Al = ({ isAnimated: e, ...t }) => e ? /* @__PURE__ */ s(
|
|
1838
|
+
}), Al = ({ isAnimated: e, ...t }) => e ? /* @__PURE__ */ s(O.rect, {
|
|
1839
1839
|
initial: !1,
|
|
1840
1840
|
style: { transformBox: "view-box" },
|
|
1841
1841
|
transition: ne,
|
|
@@ -1858,7 +1858,7 @@ var el = "_2qyyu60", tl = 2, rl = 12, nl = 12, br = 1, wr = 2, ol = 4, Xe = (e)
|
|
|
1858
1858
|
opacity: t.opacity,
|
|
1859
1859
|
rx: 8
|
|
1860
1860
|
}), De = 2, yl = ({ layer: e, primary: t, panelRect: r }) => {
|
|
1861
|
-
const n =
|
|
1861
|
+
const n = T(e), o = en(t.observation);
|
|
1862
1862
|
if (!o || !_r(t.observation)) return null;
|
|
1863
1863
|
const a = n.get("color", t.observation), i = n.get("alpha", t.observation), l = n.get("borderColor", t.observation, "hovered") ?? vt, c = o.x * r.width, u = o.y * r.height, d = o.width * r.width, v = o.height * r.height;
|
|
1864
1864
|
return /* @__PURE__ */ w("g", {
|
|
@@ -1910,13 +1910,13 @@ var el = "_2qyyu60", tl = 2, rl = 12, nl = 12, br = 1, wr = 2, ol = 4, Xe = (e)
|
|
|
1910
1910
|
"data-testid": "hovered-point",
|
|
1911
1911
|
children: r
|
|
1912
1912
|
}) : r;
|
|
1913
|
-
},
|
|
1913
|
+
}, Ht = (e) => {
|
|
1914
1914
|
const [t, ...r] = e;
|
|
1915
1915
|
if (!t) return "";
|
|
1916
1916
|
const n = r.map((o) => `L ${o.x} ${o.y}`).join(" ");
|
|
1917
1917
|
return `M ${t.x} ${t.y} ${n} Z`;
|
|
1918
1918
|
}, bl = Z(function({ layer: t }) {
|
|
1919
|
-
const r =
|
|
1919
|
+
const r = T(t), n = A(() => {
|
|
1920
1920
|
const o = oe(t.data, t.mapping, t.id), a = [];
|
|
1921
1921
|
return t.data.groupBy(ce.group).forEach((i) => {
|
|
1922
1922
|
const l = [...i], c = qn(l);
|
|
@@ -1971,13 +1971,13 @@ var el = "_2qyyu60", tl = 2, rl = 12, nl = 12, br = 1, wr = 2, ol = 4, Xe = (e)
|
|
|
1971
1971
|
}
|
|
1972
1972
|
if (t.length === 0) return null;
|
|
1973
1973
|
t.sort((a, i) => a.angle - i.angle);
|
|
1974
|
-
const r = t.map((a) => a.outer), n = t.map((a) => a.inner), o =
|
|
1974
|
+
const r = t.map((a) => a.outer), n = t.map((a) => a.inner), o = Ht(r);
|
|
1975
1975
|
return {
|
|
1976
|
-
fillPath: n.some((a) => a.x !== 0 || a.y !== 0) ? `${o} ${
|
|
1976
|
+
fillPath: n.some((a) => a.x !== 0 || a.y !== 0) ? `${o} ${Ht([...n].reverse())}` : o,
|
|
1977
1977
|
outlinePath: o
|
|
1978
1978
|
};
|
|
1979
1979
|
}, wl = ({ layer: e, primary: t, companions: r }) => {
|
|
1980
|
-
const n =
|
|
1980
|
+
const n = T(e), o = pt(t.observation), a = A(() => qn([...e.data.filter(ce.group, "eq", o)]), [e.data, o]);
|
|
1981
1981
|
if (!a) return null;
|
|
1982
1982
|
const i = n.get("color", t.observation), l = n.get("alpha", t.observation), c = n.get("strokeAlpha", t.observation), u = n.get("strokeWidth", t.observation);
|
|
1983
1983
|
return /* @__PURE__ */ w(B, { children: [
|
|
@@ -2041,7 +2041,7 @@ var el = "_2qyyu60", tl = 2, rl = 12, nl = 12, br = 1, wr = 2, ol = 4, Xe = (e)
|
|
|
2041
2041
|
strokeWidth: t,
|
|
2042
2042
|
vectorEffect: "non-scaling-stroke"
|
|
2043
2043
|
}), kl = Z(function({ layer: t, coordSystem: r, shouldAnimateTransitions: n, intro: o }) {
|
|
2044
|
-
const a = V(), i = At(o?.type === "grow" && (o.growAxis === "angle" || o.growAxis === "radius") ? o : null, n), l = r.bandAxis !== "x", c =
|
|
2044
|
+
const a = V(), i = At(o?.type === "grow" && (o.growAxis === "angle" || o.growAxis === "radius") ? o : null, n), l = r.bandAxis !== "x", c = T(t), u = A(() => {
|
|
2045
2045
|
const d = oe(t.data, t.mapping, t.id), v = /* @__PURE__ */ new Map();
|
|
2046
2046
|
for (const g of t.data) {
|
|
2047
2047
|
const h = d(g), { startAngle: f, endAngle: m } = Yt(g), { innerRadius: p, outerRadius: y } = mt(g);
|
|
@@ -2081,8 +2081,8 @@ var el = "_2qyyu60", tl = 2, rl = 12, nl = 12, br = 1, wr = 2, ol = 4, Xe = (e)
|
|
|
2081
2081
|
"data-geom": "bar",
|
|
2082
2082
|
className: $,
|
|
2083
2083
|
children: u.map((d, v) => {
|
|
2084
|
-
const { borderColor: g, borderWidth: h, borderRadius: f, borderAlpha: m } = d.style, p = g !== void 0, y = ze(h), b = g === void 0 ? {} : Ge(g, y.separatorWidth), R = g === void 0 ? void 0 : Ge(g, y.outlineWidth), S = d.items.map((
|
|
2085
|
-
const { key: W, ...K } =
|
|
2084
|
+
const { borderColor: g, borderWidth: h, borderRadius: f, borderAlpha: m } = d.style, p = g !== void 0, y = ze(h), b = g === void 0 ? {} : Ge(g, y.separatorWidth), R = g === void 0 ? void 0 : Ge(g, y.outlineWidth), S = d.items.map((F) => {
|
|
2085
|
+
const { key: W, ...K } = F;
|
|
2086
2086
|
return i.isAnimated ? /* @__PURE__ */ s(Rl, {
|
|
2087
2087
|
...K,
|
|
2088
2088
|
animation: i,
|
|
@@ -2145,11 +2145,11 @@ var el = "_2qyyu60", tl = 2, rl = 12, nl = 12, br = 1, wr = 2, ol = 4, Xe = (e)
|
|
|
2145
2145
|
innerRadius: h,
|
|
2146
2146
|
outerRadius: f,
|
|
2147
2147
|
cornerRadius: o
|
|
2148
|
-
}) ?? ""), S =
|
|
2149
|
-
|
|
2148
|
+
}) ?? ""), S = Ot(a, l, c);
|
|
2149
|
+
M(() => {
|
|
2150
2150
|
const E = S(), N = [ie(m, e, E), ie(p, t, E)];
|
|
2151
2151
|
return () => {
|
|
2152
|
-
for (const
|
|
2152
|
+
for (const F of N) F.stop();
|
|
2153
2153
|
};
|
|
2154
2154
|
}, [
|
|
2155
2155
|
m,
|
|
@@ -2158,11 +2158,11 @@ var el = "_2qyyu60", tl = 2, rl = 12, nl = 12, br = 1, wr = 2, ol = 4, Xe = (e)
|
|
|
2158
2158
|
t,
|
|
2159
2159
|
S
|
|
2160
2160
|
]);
|
|
2161
|
-
const P =
|
|
2162
|
-
return
|
|
2161
|
+
const P = Ot(a, l, u);
|
|
2162
|
+
return M(() => {
|
|
2163
2163
|
const E = P(), N = [ie(y, r, E), ie(b, n, E)];
|
|
2164
2164
|
return () => {
|
|
2165
|
-
for (const
|
|
2165
|
+
for (const F of N) F.stop();
|
|
2166
2166
|
};
|
|
2167
2167
|
}, [
|
|
2168
2168
|
y,
|
|
@@ -2170,7 +2170,7 @@ var el = "_2qyyu60", tl = 2, rl = 12, nl = 12, br = 1, wr = 2, ol = 4, Xe = (e)
|
|
|
2170
2170
|
r,
|
|
2171
2171
|
n,
|
|
2172
2172
|
P
|
|
2173
|
-
]),
|
|
2173
|
+
]), M(() => {
|
|
2174
2174
|
const E = () => {
|
|
2175
2175
|
R.set(ge({
|
|
2176
2176
|
startAngle: m.get(),
|
|
@@ -2186,9 +2186,9 @@ var el = "_2qyyu60", tl = 2, rl = 12, nl = 12, br = 1, wr = 2, ol = 4, Xe = (e)
|
|
|
2186
2186
|
p,
|
|
2187
2187
|
y,
|
|
2188
2188
|
b
|
|
2189
|
-
].map((
|
|
2189
|
+
].map((F) => F.on("change", E));
|
|
2190
2190
|
return () => {
|
|
2191
|
-
for (const
|
|
2191
|
+
for (const F of N) F();
|
|
2192
2192
|
};
|
|
2193
2193
|
}, [
|
|
2194
2194
|
m,
|
|
@@ -2200,7 +2200,7 @@ var el = "_2qyyu60", tl = 2, rl = 12, nl = 12, br = 1, wr = 2, ol = 4, Xe = (e)
|
|
|
2200
2200
|
]), R;
|
|
2201
2201
|
}, Rl = ({ pathProps: e, ...t }) => {
|
|
2202
2202
|
const r = Jn(t);
|
|
2203
|
-
return /* @__PURE__ */ s(
|
|
2203
|
+
return /* @__PURE__ */ s(O.path, {
|
|
2204
2204
|
d: r,
|
|
2205
2205
|
transition: ne,
|
|
2206
2206
|
...e
|
|
@@ -2210,10 +2210,10 @@ var el = "_2qyyu60", tl = 2, rl = 12, nl = 12, br = 1, wr = 2, ol = 4, Xe = (e)
|
|
|
2210
2210
|
return /* @__PURE__ */ w(B, { children: [
|
|
2211
2211
|
/* @__PURE__ */ s("clipPath", {
|
|
2212
2212
|
id: e,
|
|
2213
|
-
children: /* @__PURE__ */ s(
|
|
2213
|
+
children: /* @__PURE__ */ s(O.path, { d: a })
|
|
2214
2214
|
}),
|
|
2215
2215
|
n,
|
|
2216
|
-
t !== void 0 && /* @__PURE__ */ s(
|
|
2216
|
+
t !== void 0 && /* @__PURE__ */ s(O.path, {
|
|
2217
2217
|
d: a,
|
|
2218
2218
|
fill: "none",
|
|
2219
2219
|
opacity: r,
|
|
@@ -2321,7 +2321,7 @@ var el = "_2qyyu60", tl = 2, rl = 12, nl = 12, br = 1, wr = 2, ol = 4, Xe = (e)
|
|
|
2321
2321
|
]
|
|
2322
2322
|
});
|
|
2323
2323
|
}, Pl = ({ layer: e, sourceLayer: t, coordSystem: r }) => {
|
|
2324
|
-
const n =
|
|
2324
|
+
const n = T(t), o = A(() => Zn(t, r.bandAxis, n), [
|
|
2325
2325
|
t,
|
|
2326
2326
|
r.bandAxis,
|
|
2327
2327
|
n
|
|
@@ -2382,7 +2382,7 @@ var el = "_2qyyu60", tl = 2, rl = 12, nl = 12, br = 1, wr = 2, ol = 4, Xe = (e)
|
|
|
2382
2382
|
startSpoke: !e.startSpoke,
|
|
2383
2383
|
endSpoke: !e.endSpoke
|
|
2384
2384
|
}), Tl = ({ layer: e, coordSystem: t, primary: r }) => {
|
|
2385
|
-
const n =
|
|
2385
|
+
const n = T(e), o = $n(A(() => Zn(e, t.bandAxis, n), [
|
|
2386
2386
|
e,
|
|
2387
2387
|
t.bandAxis,
|
|
2388
2388
|
n
|
|
@@ -2425,7 +2425,7 @@ var el = "_2qyyu60", tl = 2, rl = 12, nl = 12, br = 1, wr = 2, ol = 4, Xe = (e)
|
|
|
2425
2425
|
}),
|
|
2426
2426
|
renderHoverCompanions: () => null
|
|
2427
2427
|
}, Nl = Z(function({ layer: t }) {
|
|
2428
|
-
const r =
|
|
2428
|
+
const r = T(t), n = A(() => {
|
|
2429
2429
|
const o = oe(t.data, t.mapping, t.id), a = [];
|
|
2430
2430
|
return t.data.groupBy(ce.group).forEach((i) => {
|
|
2431
2431
|
const l = [...i], c = to(l);
|
|
@@ -2472,9 +2472,9 @@ var el = "_2qyyu60", tl = 2, rl = 12, nl = 12, br = 1, wr = 2, ol = 4, Xe = (e)
|
|
|
2472
2472
|
point: J(n, o)
|
|
2473
2473
|
});
|
|
2474
2474
|
}
|
|
2475
|
-
return t.length === 0 ? null : (t.sort((r, n) => r.angle - n.angle),
|
|
2475
|
+
return t.length === 0 ? null : (t.sort((r, n) => r.angle - n.angle), Ht(t.map((r) => r.point)));
|
|
2476
2476
|
}, Ml = ({ layer: e, primary: t, companions: r }) => {
|
|
2477
|
-
const n =
|
|
2477
|
+
const n = T(e), o = pt(t.observation), a = A(() => to([...e.data.filter(ce.group, "eq", o)]), [e.data, o]);
|
|
2478
2478
|
if (!a) return null;
|
|
2479
2479
|
const i = n.get("color", t.observation), l = n.get("alpha", t.observation), c = n.get("strokeWidth", t.observation), u = Ee(n.get("lineType", t.observation));
|
|
2480
2480
|
return /* @__PURE__ */ w(B, { children: [
|
|
@@ -2529,7 +2529,7 @@ var el = "_2qyyu60", tl = 2, rl = 12, nl = 12, br = 1, wr = 2, ol = 4, Xe = (e)
|
|
|
2529
2529
|
};
|
|
2530
2530
|
}
|
|
2531
2531
|
}, Dl = Z(function({ layer: t, shouldAnimateTransitions: r, intro: n }) {
|
|
2532
|
-
const o =
|
|
2532
|
+
const o = T(t), a = At(n?.type === "grow" && n.growAxis === "size" ? n : null, r);
|
|
2533
2533
|
return A(() => {
|
|
2534
2534
|
const i = a.activeIntro ? oe(t.data, t.mapping, t.id) : null, l = [];
|
|
2535
2535
|
let c = 0;
|
|
@@ -2548,7 +2548,7 @@ var el = "_2qyyu60", tl = 2, rl = 12, nl = 12, br = 1, wr = 2, ol = 4, Xe = (e)
|
|
|
2548
2548
|
o,
|
|
2549
2549
|
a
|
|
2550
2550
|
]);
|
|
2551
|
-
}),
|
|
2551
|
+
}), Ol = {
|
|
2552
2552
|
geom: "point",
|
|
2553
2553
|
coord: "polar",
|
|
2554
2554
|
swatchShape: "circle",
|
|
@@ -2571,7 +2571,7 @@ var el = "_2qyyu60", tl = 2, rl = 12, nl = 12, br = 1, wr = 2, ol = 4, Xe = (e)
|
|
|
2571
2571
|
y: 1 - o
|
|
2572
2572
|
};
|
|
2573
2573
|
}
|
|
2574
|
-
},
|
|
2574
|
+
}, Hl = {
|
|
2575
2575
|
bar: {
|
|
2576
2576
|
cartesian: us,
|
|
2577
2577
|
polar: Ll
|
|
@@ -2586,7 +2586,7 @@ var el = "_2qyyu60", tl = 2, rl = 12, nl = 12, br = 1, wr = 2, ol = 4, Xe = (e)
|
|
|
2586
2586
|
},
|
|
2587
2587
|
point: {
|
|
2588
2588
|
cartesian: ys,
|
|
2589
|
-
polar:
|
|
2589
|
+
polar: Ol
|
|
2590
2590
|
},
|
|
2591
2591
|
rule: { cartesian: pl },
|
|
2592
2592
|
tile: { cartesian: xl }
|
|
@@ -2615,12 +2615,12 @@ function Af(e, t) {
|
|
|
2615
2615
|
}
|
|
2616
2616
|
function Wl(e = []) {
|
|
2617
2617
|
const t = {};
|
|
2618
|
-
for (const [r, n] of Object.entries(
|
|
2618
|
+
for (const [r, n] of Object.entries(Hl)) t[r] = { ...n };
|
|
2619
2619
|
for (const r of e) (t[r.geom] ??= {})[r.coord] = r;
|
|
2620
2620
|
return (r, n) => t[r]?.[n] ?? null;
|
|
2621
2621
|
}
|
|
2622
2622
|
var Gt = (e) => {
|
|
2623
|
-
const t =
|
|
2623
|
+
const t = I(e);
|
|
2624
2624
|
return t.current = e, t;
|
|
2625
2625
|
}, Vl = () => {
|
|
2626
2626
|
const e = /* @__PURE__ */ new Map();
|
|
@@ -2642,10 +2642,10 @@ var Gt = (e) => {
|
|
|
2642
2642
|
const r = A(() => ({
|
|
2643
2643
|
layers: e,
|
|
2644
2644
|
coordSystem: t
|
|
2645
|
-
}), [e, t]), n =
|
|
2645
|
+
}), [e, t]), n = I(null);
|
|
2646
2646
|
n.current === null && (n.current = new va(r));
|
|
2647
|
-
const o = n.current, a =
|
|
2648
|
-
return
|
|
2647
|
+
const o = n.current, a = I(!1);
|
|
2648
|
+
return M(() => {
|
|
2649
2649
|
if (!a.current) {
|
|
2650
2650
|
a.current = !0;
|
|
2651
2651
|
return;
|
|
@@ -2656,7 +2656,7 @@ var Gt = (e) => {
|
|
|
2656
2656
|
const { layers: t, coordSystem: r } = C(j((l) => ({
|
|
2657
2657
|
layers: l.layers,
|
|
2658
2658
|
coordSystem: l.coordSystem
|
|
2659
|
-
}))), n = Ql(t, r), [o] =
|
|
2659
|
+
}))), n = Ql(t, r), [o] = H(() => Vl()), a = I(null), i = I(null);
|
|
2660
2660
|
return i.current === null && (i.current = {
|
|
2661
2661
|
engine: n,
|
|
2662
2662
|
store: o,
|
|
@@ -2671,10 +2671,10 @@ var Gt = (e) => {
|
|
|
2671
2671
|
return e;
|
|
2672
2672
|
};
|
|
2673
2673
|
function Kl(e, t) {
|
|
2674
|
-
const { engine: r } = me(), n =
|
|
2675
|
-
|
|
2674
|
+
const { engine: r } = me(), n = I(t);
|
|
2675
|
+
M(() => {
|
|
2676
2676
|
n.current = t;
|
|
2677
|
-
}, [t]),
|
|
2677
|
+
}, [t]), M(() => (r.registerHitTester(e, (o) => n.current(o)), () => r.unregisterHitTester(e)), [r, e]);
|
|
2678
2678
|
}
|
|
2679
2679
|
var zl = ({ hitTest: e, input: t }) => {
|
|
2680
2680
|
const r = A(() => e(t), [e, t.layer.data]);
|
|
@@ -2691,15 +2691,15 @@ var zl = ({ hitTest: e, input: t }) => {
|
|
|
2691
2691
|
},
|
|
2692
2692
|
children: o
|
|
2693
2693
|
}), r), Jl = ({ rect: e, children: t }) => {
|
|
2694
|
-
const [r] =
|
|
2694
|
+
const [r] = H(no);
|
|
2695
2695
|
return /* @__PURE__ */ s(ql, {
|
|
2696
2696
|
rect: e,
|
|
2697
|
-
zIndex:
|
|
2697
|
+
zIndex: Oe.panelOverlay,
|
|
2698
2698
|
container: r,
|
|
2699
2699
|
children: t
|
|
2700
2700
|
});
|
|
2701
2701
|
}, Zl = (e, t) => {
|
|
2702
|
-
const r = Gt(e), n = Gt(t), o =
|
|
2702
|
+
const r = Gt(e), n = Gt(t), o = I(null), a = I(null), i = A(() => {
|
|
2703
2703
|
const l = () => {
|
|
2704
2704
|
a.current !== null && (clearTimeout(a.current), a.current = null), o.current = null;
|
|
2705
2705
|
}, c = () => {
|
|
@@ -2719,7 +2719,7 @@ var zl = ({ hitTest: e, input: t }) => {
|
|
|
2719
2719
|
cancel: l
|
|
2720
2720
|
};
|
|
2721
2721
|
}, [r, n]);
|
|
2722
|
-
return
|
|
2722
|
+
return M(() => () => {
|
|
2723
2723
|
a.current !== null && clearTimeout(a.current);
|
|
2724
2724
|
}, []), i;
|
|
2725
2725
|
}, $l = {
|
|
@@ -2727,13 +2727,13 @@ var zl = ({ hitTest: e, input: t }) => {
|
|
|
2727
2727
|
height: 0,
|
|
2728
2728
|
isDefault: !0
|
|
2729
2729
|
}, oo = ({ debounce: e = 0, onResize: t } = {}) => {
|
|
2730
|
-
const [r, n] =
|
|
2730
|
+
const [r, n] = H($l), o = I(null), a = Zl((u) => {
|
|
2731
2731
|
const d = o.current;
|
|
2732
2732
|
d && d.width === u.width && d.height === u.height || (o.current = {
|
|
2733
2733
|
width: u.width,
|
|
2734
2734
|
height: u.height
|
|
2735
2735
|
}, t?.(u), n(u));
|
|
2736
|
-
}, e), i =
|
|
2736
|
+
}, e), i = I(null), l = I(null), c = se((u) => {
|
|
2737
2737
|
i.current !== u && (i.current && l.current?.unobserve(i.current), i.current = u, u && (l.current ??= new ResizeObserver(([d]) => {
|
|
2738
2738
|
if (!d) return;
|
|
2739
2739
|
const v = Math.round(d.contentBoxSize[0]?.inlineSize ?? d.contentRect.width), g = Math.round(d.contentBoxSize[0]?.blockSize ?? d.contentRect.height);
|
|
@@ -2750,7 +2750,7 @@ var zl = ({ hitTest: e, input: t }) => {
|
|
|
2750
2750
|
};
|
|
2751
2751
|
};
|
|
2752
2752
|
function _l() {
|
|
2753
|
-
const [e, t] =
|
|
2753
|
+
const [e, t] = H(null), r = I(null), n = I(null), o = I(null), a = se(() => {
|
|
2754
2754
|
o.current = null;
|
|
2755
2755
|
const u = n.current;
|
|
2756
2756
|
if (!u) return;
|
|
@@ -2771,7 +2771,7 @@ function _l() {
|
|
|
2771
2771
|
}, [a]), { setElement: l } = oo({ onResize: i }), c = se((u) => {
|
|
2772
2772
|
n.current = u, l(u), u && a();
|
|
2773
2773
|
}, [l, a]);
|
|
2774
|
-
return
|
|
2774
|
+
return M(() => (window.addEventListener("scroll", i, !0), window.addEventListener("resize", i), () => {
|
|
2775
2775
|
window.removeEventListener("scroll", i, !0), window.removeEventListener("resize", i), o.current !== null && cancelAnimationFrame(o.current);
|
|
2776
2776
|
}), [i]), {
|
|
2777
2777
|
measureRef: c,
|
|
@@ -2799,7 +2799,7 @@ function ec(e) {
|
|
|
2799
2799
|
}
|
|
2800
2800
|
var tc = ({ render: e, input: t }) => {
|
|
2801
2801
|
const r = ec(t.layer.id), { measureRef: n, screenRect: o } = _l();
|
|
2802
|
-
return
|
|
2802
|
+
return M(() => () => r(null), [r]), /* @__PURE__ */ w(B, { children: [/* @__PURE__ */ s("rect", {
|
|
2803
2803
|
ref: n,
|
|
2804
2804
|
x: 0,
|
|
2805
2805
|
y: 0,
|
|
@@ -3136,8 +3136,8 @@ var tc = ({ render: e, input: t }) => {
|
|
|
3136
3136
|
case "doc":
|
|
3137
3137
|
return /* @__PURE__ */ s(jt, { children: r }, t);
|
|
3138
3138
|
case "heading": {
|
|
3139
|
-
const n =
|
|
3140
|
-
return
|
|
3139
|
+
const n = Oc(e.attrs?.level);
|
|
3140
|
+
return Hc(n, t, r, Pr(e.attrs));
|
|
3141
3141
|
}
|
|
3142
3142
|
case "paragraph":
|
|
3143
3143
|
return /* @__PURE__ */ s("p", {
|
|
@@ -3206,7 +3206,7 @@ var tc = ({ render: e, input: t }) => {
|
|
|
3206
3206
|
n && (t.fontFamily = n);
|
|
3207
3207
|
const o = Dc(e.fontSize);
|
|
3208
3208
|
return o && (t.fontSize = o), Object.keys(t).length > 0 ? t : null;
|
|
3209
|
-
}, Dc = (e) => typeof e == "number" && Number.isFinite(e) ? `${e / 10}em` : xt(e), xt = (e) => typeof e == "string" && e.length > 0 ? e : void 0,
|
|
3209
|
+
}, Dc = (e) => typeof e == "number" && Number.isFinite(e) ? `${e / 10}em` : xt(e), xt = (e) => typeof e == "string" && e.length > 0 ? e : void 0, Oc = (e) => typeof e != "number" ? 3 : e < 1 ? 1 : e > 3 ? 3 : Math.round(e), Hc = (e, t, r, n) => {
|
|
3210
3210
|
const o = ho(n);
|
|
3211
3211
|
switch (e) {
|
|
3212
3212
|
case 1:
|
|
@@ -3235,8 +3235,8 @@ function Ve(e) {
|
|
|
3235
3235
|
}
|
|
3236
3236
|
var Gc = "_19519k80";
|
|
3237
3237
|
var Wc = "_19519k82", Vc = "_19519k83", Uc = "_19519k85", Qc = "_19519k86", Yc = "_19519k87", Kc = "_19519k88", zc = (e) => {
|
|
3238
|
-
const { overlayRef: t } = me(), r =
|
|
3239
|
-
return
|
|
3238
|
+
const { overlayRef: t } = me(), r = I(null), [n, o] = H(!1), a = Gt(e);
|
|
3239
|
+
return M(() => {
|
|
3240
3240
|
const i = t.current;
|
|
3241
3241
|
if (!i) return;
|
|
3242
3242
|
const l = (u) => {
|
|
@@ -3276,7 +3276,7 @@ var Wc = "_19519k82", Vc = "_19519k83", Uc = "_19519k85", Qc = "_19519k86", Yc =
|
|
|
3276
3276
|
numberFormat: b.config.numberFormat,
|
|
3277
3277
|
parsingLocale: b.config.parsingLocale,
|
|
3278
3278
|
comments: b.annotations.comments
|
|
3279
|
-
}))), { formattingLocale: t, colorScheme: r } = G(), n = Ve((b) => b.hover), o = Ve((b) => b.tooltipAnchor), a = Ve((b) => b.isPointerSuspended), i = ee("Tooltip", Zc), l =
|
|
3279
|
+
}))), { formattingLocale: t, colorScheme: r } = G(), n = Ve((b) => b.hover), o = Ve((b) => b.tooltipAnchor), a = Ve((b) => b.isPointerSuspended), i = ee("Tooltip", Zc), l = I(() => {
|
|
3280
3280
|
}), { cursorRef: c, isInside: u } = zc(() => l.current()), d = A(() => Ea({
|
|
3281
3281
|
...e,
|
|
3282
3282
|
hover: n,
|
|
@@ -3433,7 +3433,7 @@ var Wc = "_19519k82", Vc = "_19519k83", Uc = "_19519k85", Qc = "_19519k86", Yc =
|
|
|
3433
3433
|
layers: i.layers,
|
|
3434
3434
|
coordSystem: i.coordSystem,
|
|
3435
3435
|
scales: i.scales
|
|
3436
|
-
}))), [a] =
|
|
3436
|
+
}))), [a] = H(() => id({
|
|
3437
3437
|
layers: r,
|
|
3438
3438
|
coordSystem: n,
|
|
3439
3439
|
scales: o,
|
|
@@ -3444,7 +3444,7 @@ var Wc = "_19519k82", Vc = "_19519k83", Uc = "_19519k85", Qc = "_19519k86", Yc =
|
|
|
3444
3444
|
children: t
|
|
3445
3445
|
});
|
|
3446
3446
|
}, od = () => {
|
|
3447
|
-
const { introEndsAtMs: e } = D(er), [t] =
|
|
3447
|
+
const { introEndsAtMs: e } = D(er), [t] = H(() => sd(e) / 1e3);
|
|
3448
3448
|
return t;
|
|
3449
3449
|
}, ad = (e) => {
|
|
3450
3450
|
const { plansByLayerId: t, coordKey: r } = D(er), n = C((o) => vo(o.coordSystem));
|
|
@@ -3579,7 +3579,7 @@ var Wc = "_19519k82", Vc = "_19519k83", Uc = "_19519k85", Qc = "_19519k86", Yc =
|
|
|
3579
3579
|
default:
|
|
3580
3580
|
return t;
|
|
3581
3581
|
}
|
|
3582
|
-
}, md = (e) => e.fontSize * (e.lineHeight ?? xs), xo = (e) => e.reduce((t, r) => t + r, 0), Ad = (e, t) =>
|
|
3582
|
+
}, md = (e) => e.fontSize * (e.lineHeight ?? xs), xo = (e) => e.reduce((t, r) => t + r, 0), Ad = (e, t) => Hn(e, t).size * e.lineHeight, yd = (e, t) => e ? t : 0, ht = (e, t, r) => {
|
|
3583
3583
|
if (r) {
|
|
3584
3584
|
const n = Number(e.size);
|
|
3585
3585
|
return Number.isFinite(n) && n > 0 ? n : 0;
|
|
@@ -3604,7 +3604,7 @@ var Wc = "_19519k82", Vc = "_19519k83", Uc = "_19519k85", Qc = "_19519k86", Yc =
|
|
|
3604
3604
|
});
|
|
3605
3605
|
return Math.max(...f) + g;
|
|
3606
3606
|
}, bd = ({ textMeasurer: e, tickLabelStyles: t, familyDefault: r }) => (n, o) => e.measureText(n, z(t[o], r)), wd = Object.freeze({}), Sd = ({ textMeasurer: e, textScale: t, metrics: r, overrides: n = wd }) => {
|
|
3607
|
-
const o = go(), a = bt(), i = po(), l = tr(), c = rr(), u = mo(), d = L(), v =
|
|
3607
|
+
const o = go(), a = bt(), i = po(), l = tr(), c = rr(), u = mo(), d = L(), v = I(n);
|
|
3608
3608
|
return v.current = n, A(() => {
|
|
3609
3609
|
if (!e) return null;
|
|
3610
3610
|
const g = r.fonts.familyDefault, h = {
|
|
@@ -3719,7 +3719,7 @@ var Wc = "_19519k82", Vc = "_19519k83", Uc = "_19519k85", Qc = "_19519k86", Yc =
|
|
|
3719
3719
|
return e ?? t;
|
|
3720
3720
|
}, Ir = 0.5, bo = U(/* @__PURE__ */ new Map()), wo = U(() => {
|
|
3721
3721
|
}), So = U(/* @__PURE__ */ new Set()), Pd = ({ children: e }) => {
|
|
3722
|
-
const [t, r] =
|
|
3722
|
+
const [t, r] = H(() => /* @__PURE__ */ new Map()), [n] = H(() => /* @__PURE__ */ new Set()), o = I(/* @__PURE__ */ new Map()), a = se((i, l, c) => {
|
|
3723
3723
|
const u = o.current.get(i) ?? /* @__PURE__ */ new Set();
|
|
3724
3724
|
if (c !== null) {
|
|
3725
3725
|
u.add(l), o.current.set(i, u), r((d) => Nd(d, i, c));
|
|
@@ -3738,8 +3738,8 @@ var Wc = "_19519k82", Vc = "_19519k83", Uc = "_19519k85", Qc = "_19519k86", Yc =
|
|
|
3738
3738
|
})
|
|
3739
3739
|
});
|
|
3740
3740
|
}, Bd = () => D(bo), Id = () => D(wo), Td = (e) => {
|
|
3741
|
-
const t = Id(), r = V(), n =
|
|
3742
|
-
return
|
|
3741
|
+
const t = Id(), r = V(), n = I(null);
|
|
3742
|
+
return M(() => {
|
|
3743
3743
|
if (typeof ResizeObserver > "u") return;
|
|
3744
3744
|
const o = n.current;
|
|
3745
3745
|
if (o === null) return;
|
|
@@ -3766,7 +3766,7 @@ var Wc = "_19519k82", Vc = "_19519k83", Uc = "_19519k85", Qc = "_19519k86", Yc =
|
|
|
3766
3766
|
if (!e.has(t)) return e;
|
|
3767
3767
|
const r = new Map(e);
|
|
3768
3768
|
return r.delete(t), r;
|
|
3769
|
-
}, ko = "data-edit-kind", Fd = "data-edit-id", Dd = "observation",
|
|
3769
|
+
}, ko = "data-edit-kind", Fd = "data-edit-id", Dd = "observation", Od = /* @__PURE__ */ new Set(["annotation"]), Hd = (e) => Od.has(e.kind), Gd = (e, t) => e === t ? !0 : e === null || t === null || e.kind !== t.kind ? !1 : e.id === t.id, qe = (e) => ({
|
|
3770
3770
|
[ko]: e.kind,
|
|
3771
3771
|
[Fd]: e.id
|
|
3772
3772
|
}), Wd = () => ({ [ko]: Dd }), yf = (e, t) => e !== null && e.annotationId === t ? e : null, Vd = (e, t) => e.annotationId === t.annotationId && e.translation.x === t.translation.x && e.translation.y === t.translation.y, xf = (e, t, r) => e !== null && e.annotationId === t && e.endpoint === r ? e : null, Ud = (e, t) => e.annotationId === t.annotationId && e.endpoint === t.endpoint && e.anchor.x === t.anchor.x && e.anchor.y === t.anchor.y, bf = (e, t, r) => e !== null && e.annotationId === t && e.endpoint === r ? e : null, Qd = (e, t) => e.annotationId === t.annotationId && e.endpoint === t.endpoint && ma(e.point.anchor, t.point.anchor), wf = (e, t) => e !== null && e.annotationId === t ? e : null, Yd = (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, Sf = (e, t) => e !== null && e.annotationId === t ? e : null, Kd = (e, t) => e.annotationId === t.annotationId && e.at.x === t.at.x && e.width === t.width && e.shift === t.shift, Ue = ({ standingInteraction: e }, t) => e !== null && ve(e, t) ? e : null, zd = (e, t) => {
|
|
@@ -3807,7 +3807,7 @@ var Wc = "_19519k82", Vc = "_19519k83", Uc = "_19519k85", Qc = "_19519k86", Yc =
|
|
|
3807
3807
|
editor: t
|
|
3808
3808
|
} })
|
|
3809
3809
|
})), nr = U(null), jd = Ro(), kf = ({ children: e }) => {
|
|
3810
|
-
const [t] =
|
|
3810
|
+
const [t] = H(() => Ro());
|
|
3811
3811
|
return /* @__PURE__ */ s(nr.Provider, {
|
|
3812
3812
|
value: t,
|
|
3813
3813
|
children: e
|
|
@@ -4080,13 +4080,13 @@ var Cu = 22, Eu = ({ ref: e, headerRect: t, mode: r = "readonly", title: n, isTi
|
|
|
4080
4080
|
md: 20,
|
|
4081
4081
|
lg: 24,
|
|
4082
4082
|
xl: 36
|
|
4083
|
-
},
|
|
4083
|
+
}, Ou = {
|
|
4084
4084
|
primary: "asohov1 asohov0",
|
|
4085
4085
|
secondary: "asohov2 asohov0"
|
|
4086
4086
|
}, To = ({ children: e, title: t, variant: r = "primary", size: n = "sm", ...o }) => {
|
|
4087
4087
|
const a = V(), i = Du[n];
|
|
4088
4088
|
return /* @__PURE__ */ w("svg", {
|
|
4089
|
-
className:
|
|
4089
|
+
className: Ou[r],
|
|
4090
4090
|
"aria-labelledby": t ? a : void 0,
|
|
4091
4091
|
height: i,
|
|
4092
4092
|
width: i,
|
|
@@ -4099,7 +4099,7 @@ var Cu = 22, Eu = ({ ref: e, headerRect: t, mode: r = "readonly", title: n, isTi
|
|
|
4099
4099
|
children: t
|
|
4100
4100
|
}), e]
|
|
4101
4101
|
});
|
|
4102
|
-
},
|
|
4102
|
+
}, Hu = (e) => /* @__PURE__ */ s(To, {
|
|
4103
4103
|
...e,
|
|
4104
4104
|
children: /* @__PURE__ */ w("g", {
|
|
4105
4105
|
stroke: "currentColor",
|
|
@@ -4130,7 +4130,7 @@ var Yu = ({ segment: e, itemStyle: t }) => {
|
|
|
4130
4130
|
if (e.kind === "trendArrow") {
|
|
4131
4131
|
const a = Lo(t, e.direction);
|
|
4132
4132
|
return /* @__PURE__ */ s("div", {
|
|
4133
|
-
className:
|
|
4133
|
+
className: He(Qu, e.direction === "down" && "n7clvo4"),
|
|
4134
4134
|
style: {
|
|
4135
4135
|
color: a,
|
|
4136
4136
|
backgroundColor: e.direction === "flat" ? Y(x.textPrimary, 0.1) : Y(a, 0.2)
|
|
@@ -4138,7 +4138,7 @@ var Yu = ({ segment: e, itemStyle: t }) => {
|
|
|
4138
4138
|
children: e.direction === "flat" ? /* @__PURE__ */ s(Gu, {
|
|
4139
4139
|
size: "xs",
|
|
4140
4140
|
title: ""
|
|
4141
|
-
}) : /* @__PURE__ */ s(
|
|
4141
|
+
}) : /* @__PURE__ */ s(Hu, {
|
|
4142
4142
|
size: "xs",
|
|
4143
4143
|
title: ""
|
|
4144
4144
|
})
|
|
@@ -4362,7 +4362,7 @@ var mh = "_1dw9dgx0", Ah = "#9ca3af", Bt = "\0", yh = (e, t) => {
|
|
|
4362
4362
|
}
|
|
4363
4363
|
}), /* @__PURE__ */ s("span", { children: e.formattedLabel })] });
|
|
4364
4364
|
}, Sh = ({ hiddenPills: e, placement: t }) => {
|
|
4365
|
-
const r = io(), [n, o] =
|
|
4365
|
+
const r = io(), [n, o] = H(!1), { refs: a, floatingStyles: i } = yn({
|
|
4366
4366
|
open: n,
|
|
4367
4367
|
placement: t,
|
|
4368
4368
|
middleware: [
|
|
@@ -4371,7 +4371,7 @@ var mh = "_1dw9dgx0", Ah = "#9ca3af", Bt = "\0", yh = (e, t) => {
|
|
|
4371
4371
|
Ft({ padding: 8 })
|
|
4372
4372
|
]
|
|
4373
4373
|
});
|
|
4374
|
-
|
|
4374
|
+
M(() => {
|
|
4375
4375
|
if (!n) return;
|
|
4376
4376
|
const d = (g) => {
|
|
4377
4377
|
const h = g.target;
|
|
@@ -4392,12 +4392,12 @@ var mh = "_1dw9dgx0", Ah = "#9ca3af", Bt = "\0", yh = (e, t) => {
|
|
|
4392
4392
|
const l = t === "left" || t === "right", c = Math.min(e.length - 1, 2), u = Array.from({ length: c }, (d, v) => c - v);
|
|
4393
4393
|
return /* @__PURE__ */ w(B, { children: [/* @__PURE__ */ w("div", {
|
|
4394
4394
|
ref: a.setReference,
|
|
4395
|
-
className:
|
|
4395
|
+
className: He(lh, {
|
|
4396
4396
|
[dh]: l,
|
|
4397
4397
|
[ch]: !l
|
|
4398
4398
|
}),
|
|
4399
4399
|
children: [u.map((d) => /* @__PURE__ */ s("span", {
|
|
4400
|
-
className:
|
|
4400
|
+
className: He(uh, {
|
|
4401
4401
|
[vh]: l,
|
|
4402
4402
|
[hh]: !l
|
|
4403
4403
|
}),
|
|
@@ -4405,7 +4405,7 @@ var mh = "_1dw9dgx0", Ah = "#9ca3af", Bt = "\0", yh = (e, t) => {
|
|
|
4405
4405
|
"aria-hidden": !0
|
|
4406
4406
|
}, d)), /* @__PURE__ */ s("button", {
|
|
4407
4407
|
type: "button",
|
|
4408
|
-
className:
|
|
4408
|
+
className: He(gh, { [fh]: n }),
|
|
4409
4409
|
onClick: () => o((d) => !d),
|
|
4410
4410
|
"aria-haspopup": "dialog",
|
|
4411
4411
|
"aria-expanded": n,
|
|
@@ -4453,14 +4453,14 @@ var mh = "_1dw9dgx0", Ah = "#9ca3af", Bt = "\0", yh = (e, t) => {
|
|
|
4453
4453
|
visibleCount: v.length,
|
|
4454
4454
|
hasOverflow: !1
|
|
4455
4455
|
};
|
|
4456
|
-
const S = z(c.item, i.fonts.familyDefault), P = fe(c.item), E = 2 * (c.item.paddingInline + c.item.borderWidth), N = 2 * (c.item.paddingBlock + c.item.borderWidth),
|
|
4456
|
+
const S = z(c.item, i.fonts.familyDefault), P = fe(c.item), E = 2 * (c.item.paddingInline + c.item.borderWidth), N = 2 * (c.item.paddingBlock + c.item.borderWidth), F = (ye) => g ? Lh(ye, P, c.swatch.size, N) : Nr({
|
|
4457
4457
|
label: ye.formattedLabel,
|
|
4458
4458
|
swatchInlineSize: Nh(ye, c.swatch.size),
|
|
4459
4459
|
textMeasurer: a,
|
|
4460
4460
|
font: S,
|
|
4461
4461
|
swatchGap: i.legendSwatchGap,
|
|
4462
4462
|
horizontalChrome: E
|
|
4463
|
-
}), W = v.map(
|
|
4463
|
+
}), W = v.map(F), K = Hn(i.fonts.legendLabel, o), Te = Ad(i.fonts.legendLabel, o), Ae = (g ? Te + i.legendPillVerticalChrome : Nr({
|
|
4464
4464
|
label: `+${v.length}`,
|
|
4465
4465
|
swatchInlineSize: 0,
|
|
4466
4466
|
textMeasurer: a,
|
|
@@ -4485,9 +4485,9 @@ var mh = "_1dw9dgx0", Ah = "#9ca3af", Bt = "\0", yh = (e, t) => {
|
|
|
4485
4485
|
c
|
|
4486
4486
|
]);
|
|
4487
4487
|
if (v.length === 0) return null;
|
|
4488
|
-
const p = v.slice(0, m.visibleCount), y = v.slice(m.visibleCount), b = m.hasOverflow && y.length > 0, R =
|
|
4488
|
+
const p = v.slice(0, m.visibleCount), y = v.slice(m.visibleCount), b = m.hasOverflow && y.length > 0, R = Oh(c.item);
|
|
4489
4489
|
return /* @__PURE__ */ w("div", {
|
|
4490
|
-
className:
|
|
4490
|
+
className: He(Ph[f], Rh, {
|
|
4491
4491
|
[Eh]: g,
|
|
4492
4492
|
[Ch]: !g,
|
|
4493
4493
|
[Bh[e === "left" ? "left" : "right"]]: g
|
|
@@ -4541,7 +4541,7 @@ var mh = "_1dw9dgx0", Ah = "#9ca3af", Bt = "\0", yh = (e, t) => {
|
|
|
4541
4541
|
case "right":
|
|
4542
4542
|
return "left";
|
|
4543
4543
|
}
|
|
4544
|
-
},
|
|
4544
|
+
}, Oh = (e) => ({
|
|
4545
4545
|
...le(e),
|
|
4546
4546
|
color: e.textColor,
|
|
4547
4547
|
lineHeight: e.lineHeight,
|
|
@@ -4550,7 +4550,7 @@ var mh = "_1dw9dgx0", Ah = "#9ca3af", Bt = "\0", yh = (e, t) => {
|
|
|
4550
4550
|
paddingInline: e.paddingInline,
|
|
4551
4551
|
paddingBlock: e.paddingBlock,
|
|
4552
4552
|
...e.borderWidth > 0 ? { border: `${e.borderWidth}px solid ${e.borderColor}` } : {}
|
|
4553
|
-
}),
|
|
4553
|
+
}), Hh = Z(function({ formattedLegends: t, rects: r, textScale: n }) {
|
|
4554
4554
|
const o = A(() => {
|
|
4555
4555
|
const a = /* @__PURE__ */ new Map();
|
|
4556
4556
|
for (const i of t) {
|
|
@@ -4690,12 +4690,12 @@ var mh = "_1dw9dgx0", Ah = "#9ca3af", Bt = "\0", yh = (e, t) => {
|
|
|
4690
4690
|
"data-testid": "hover-guide",
|
|
4691
4691
|
children: t
|
|
4692
4692
|
}), Ef = (e, t, r) => {
|
|
4693
|
-
for (const n of Object.values(
|
|
4693
|
+
for (const n of Object.values(Oo)) {
|
|
4694
4694
|
const o = n(e, t, r);
|
|
4695
4695
|
if (o !== null) return o;
|
|
4696
4696
|
}
|
|
4697
4697
|
return null;
|
|
4698
|
-
}, Kh = (e) =>
|
|
4698
|
+
}, Kh = (e) => Oo[e] !== void 0, zh = (e, t, r) => Do(e, r, t / 2), jh = (e, t) => {
|
|
4699
4699
|
const r = Qe(e.start, t), n = Qe(e.end, t);
|
|
4700
4700
|
return r.x === n.x && r.y === n.y ? null : {
|
|
4701
4701
|
shape: "segment",
|
|
@@ -4729,16 +4729,16 @@ var mh = "_1dw9dgx0", Ah = "#9ca3af", Bt = "\0", yh = (e, t) => {
|
|
|
4729
4729
|
height: n.height + r * 2
|
|
4730
4730
|
}
|
|
4731
4731
|
};
|
|
4732
|
-
},
|
|
4732
|
+
}, Oo = {
|
|
4733
4733
|
text: ot((e) => e.textAnnotations, Xh),
|
|
4734
4734
|
shape: ot((e) => e.shapes, (e, t) => zh(e.region, gn(t.chromeReaders, e.id).borderWidth, t.panel)),
|
|
4735
4735
|
image: ot((e) => e.images, (e, t) => Do(e.region, t.panel)),
|
|
4736
4736
|
arrow: ot((e) => e.arrows, (e, t) => jh(e, t.panel))
|
|
4737
4737
|
}, qh = (e, t) => {
|
|
4738
|
-
const r =
|
|
4738
|
+
const r = Ha(e, t);
|
|
4739
4739
|
return r !== null && Kh(r.kind) && $a(r);
|
|
4740
4740
|
}, Jh = 200, Zh = ({ engine: e, store: t, overlayRef: r }) => {
|
|
4741
|
-
|
|
4741
|
+
M(() => {
|
|
4742
4742
|
const n = r.current;
|
|
4743
4743
|
if (!n) return;
|
|
4744
4744
|
const o = $h(n, e), a = ev(n, e, t);
|
|
@@ -4822,7 +4822,7 @@ var mh = "_1dw9dgx0", Ah = "#9ca3af", Bt = "\0", yh = (e, t) => {
|
|
|
4822
4822
|
}, tv = ({ panelRect: e }) => {
|
|
4823
4823
|
const { engine: t, store: r, overlayRef: n } = me(), o = ue((c) => {
|
|
4824
4824
|
const u = c.editTargetUnderPointer;
|
|
4825
|
-
return u !== null &&
|
|
4825
|
+
return u !== null && Hd(u);
|
|
4826
4826
|
}), a = ue((c) => {
|
|
4827
4827
|
const u = c.editTargetUnderPointer;
|
|
4828
4828
|
return u?.kind === "annotation" ? u.id : null;
|
|
@@ -4846,7 +4846,7 @@ var mh = "_1dw9dgx0", Ah = "#9ca3af", Bt = "\0", yh = (e, t) => {
|
|
|
4846
4846
|
});
|
|
4847
4847
|
}, rv = (e, t) => e ? "move" : t ? "pointer" : void 0, It = "data-hover-active", nv = (e) => {
|
|
4848
4848
|
const { store: t } = me(), r = je(t, (n) => n.hover.primary !== null);
|
|
4849
|
-
|
|
4849
|
+
M(() => {
|
|
4850
4850
|
const n = e.current;
|
|
4851
4851
|
if (n)
|
|
4852
4852
|
return r ? n.setAttribute(It, "true") : n.removeAttribute(It), () => {
|
|
@@ -4874,7 +4874,7 @@ var mh = "_1dw9dgx0", Ah = "#9ca3af", Bt = "\0", yh = (e, t) => {
|
|
|
4874
4874
|
}, Mr = (e, t, r, n) => {
|
|
4875
4875
|
const o = [t, ...[...r].sort()].join("\0");
|
|
4876
4876
|
e.has(o) || (e.add(o), console.warn(n));
|
|
4877
|
-
}, av = 16,
|
|
4877
|
+
}, av = 16, Ho = ({ linePath: e, strokeWidth: t }) => /* @__PURE__ */ s("path", {
|
|
4878
4878
|
d: e,
|
|
4879
4879
|
stroke: "transparent",
|
|
4880
4880
|
strokeWidth: Math.max(t, av),
|
|
@@ -4897,7 +4897,7 @@ var mh = "_1dw9dgx0", Ah = "#9ca3af", Bt = "\0", yh = (e, t) => {
|
|
|
4897
4897
|
return /* @__PURE__ */ w("g", {
|
|
4898
4898
|
pointerEvents: r ? void 0 : "none",
|
|
4899
4899
|
children: [
|
|
4900
|
-
r && /* @__PURE__ */ s(
|
|
4900
|
+
r && /* @__PURE__ */ s(Ho, {
|
|
4901
4901
|
linePath: e.linePath,
|
|
4902
4902
|
strokeWidth: e.strokeWidth
|
|
4903
4903
|
}),
|
|
@@ -5013,7 +5013,7 @@ var mh = "_1dw9dgx0", Ah = "#9ca3af", Bt = "\0", yh = (e, t) => {
|
|
|
5013
5013
|
return /* @__PURE__ */ w("g", {
|
|
5014
5014
|
pointerEvents: o ? void 0 : "none",
|
|
5015
5015
|
children: [
|
|
5016
|
-
o && /* @__PURE__ */ s(
|
|
5016
|
+
o && /* @__PURE__ */ s(Ho, {
|
|
5017
5017
|
linePath: e,
|
|
5018
5018
|
strokeWidth: n
|
|
5019
5019
|
}),
|
|
@@ -5262,10 +5262,10 @@ var mh = "_1dw9dgx0", Ah = "#9ca3af", Bt = "\0", yh = (e, t) => {
|
|
|
5262
5262
|
const e = L(), t = C((r) => r.config.appearance.textScale);
|
|
5263
5263
|
return A(() => (r, n) => ci(e, r, n, t), [e, t]);
|
|
5264
5264
|
}, Fv = "ph8bdc0";
|
|
5265
|
-
var Dv = "ph8bdc2",
|
|
5265
|
+
var Dv = "ph8bdc2", Or = {
|
|
5266
5266
|
hittable: "ph8bdc4 ph8bdc3",
|
|
5267
5267
|
inert: "ph8bdc5 ph8bdc3"
|
|
5268
|
-
},
|
|
5268
|
+
}, Ov = ({ cx: e, cy: t, color: r, style: n }) => {
|
|
5269
5269
|
const o = yc(n.shadow);
|
|
5270
5270
|
return /* @__PURE__ */ s("circle", {
|
|
5271
5271
|
cx: e,
|
|
@@ -5279,7 +5279,7 @@ var Dv = "ph8bdc2", Hr = {
|
|
|
5279
5279
|
}
|
|
5280
5280
|
});
|
|
5281
5281
|
};
|
|
5282
|
-
function
|
|
5282
|
+
function Hv(e) {
|
|
5283
5283
|
const t = pe(), { formattingLocale: r } = G(), n = Wo(), o = C(j((c) => ({
|
|
5284
5284
|
pinnedNumbers: c.annotations.pinnedNumbers,
|
|
5285
5285
|
comments: c.annotations.comments,
|
|
@@ -5317,11 +5317,11 @@ function Ov(e) {
|
|
|
5317
5317
|
i
|
|
5318
5318
|
]);
|
|
5319
5319
|
}
|
|
5320
|
-
var Gv = (e, t, r, n) => t !== "comment" ? r : ki(r, 140, (o) => e.measureText(o, n).width),
|
|
5320
|
+
var Gv = (e, t, r, n) => t !== "comment" ? r : ki(r, 140, (o) => e.measureText(o, n).width), Hr = "callouts", Wv = ({ panelRect: e }) => {
|
|
5321
5321
|
const { pinnedNumbers: t, comments: r } = C(j((h) => ({
|
|
5322
5322
|
pinnedNumbers: h.annotations.pinnedNumbers,
|
|
5323
5323
|
comments: h.annotations.comments
|
|
5324
|
-
}))), n = C((h) => h.coordSystem), o = de(), a = Sn(), i = Wo(), l =
|
|
5324
|
+
}))), n = C((h) => h.coordSystem), o = de(), a = Sn(), i = Wo(), l = Hv(e), { store: c } = me(), u = A(() => {
|
|
5325
5325
|
const h = /* @__PURE__ */ new Map();
|
|
5326
5326
|
for (const f of t) h.set(f.id, f.at);
|
|
5327
5327
|
for (const f of r) h.set(f.id, f.at);
|
|
@@ -5340,10 +5340,10 @@ var Gv = (e, t, r, n) => t !== "comment" ? r : ki(r, 140, (o) => e.measureText(o
|
|
|
5340
5340
|
r,
|
|
5341
5341
|
i
|
|
5342
5342
|
]), g = A(() => ba(l, e), [l, e]);
|
|
5343
|
-
return
|
|
5343
|
+
return M(() => {
|
|
5344
5344
|
const h = c.getState();
|
|
5345
|
-
return h.publishPointerRegions(
|
|
5346
|
-
h.publishPointerRegions(
|
|
5345
|
+
return h.publishPointerRegions(Hr, g), () => {
|
|
5346
|
+
h.publishPointerRegions(Hr, []);
|
|
5347
5347
|
};
|
|
5348
5348
|
}, [c, g]), t.length === 0 && r.length === 0 ? null : /* @__PURE__ */ s("svg", {
|
|
5349
5349
|
x: e.x,
|
|
@@ -5367,7 +5367,7 @@ var Gv = (e, t, r, n) => t !== "comment" ? r : ki(r, 140, (o) => e.measureText(o
|
|
|
5367
5367
|
height: h.miniRect.height,
|
|
5368
5368
|
overflow: "visible",
|
|
5369
5369
|
children: /* @__PURE__ */ w("div", {
|
|
5370
|
-
className: y ?
|
|
5370
|
+
className: y ? Or.hittable : Or.inert,
|
|
5371
5371
|
style: Uv(m.label),
|
|
5372
5372
|
children: [h.kind === "pinned-number" && /* @__PURE__ */ s("span", {
|
|
5373
5373
|
className: "ph8bdc1",
|
|
@@ -5384,7 +5384,7 @@ var Gv = (e, t, r, n) => t !== "comment" ? r : ki(r, 140, (o) => e.measureText(o
|
|
|
5384
5384
|
children: h.text
|
|
5385
5385
|
})]
|
|
5386
5386
|
})
|
|
5387
|
-
}), /* @__PURE__ */ s(
|
|
5387
|
+
}), /* @__PURE__ */ s(Ov, {
|
|
5388
5388
|
cx: h.anchorPx.x,
|
|
5389
5389
|
cy: h.anchorPx.y,
|
|
5390
5390
|
color: Vv(m.marker, p),
|
|
@@ -5429,7 +5429,7 @@ var Gv = (e, t, r, n) => t !== "comment" ? r : ki(r, 140, (o) => e.measureText(o
|
|
|
5429
5429
|
}, Kv = 3.2, zv = ({ panelRect: e }) => {
|
|
5430
5430
|
const t = Je(e).stickers, r = C((o) => o.config.appearance.textScale);
|
|
5431
5431
|
if (t.length === 0) return null;
|
|
5432
|
-
const n =
|
|
5432
|
+
const n = On(Kv, r);
|
|
5433
5433
|
return /* @__PURE__ */ s("svg", {
|
|
5434
5434
|
x: e.x,
|
|
5435
5435
|
y: e.y,
|
|
@@ -5470,7 +5470,7 @@ var Gv = (e, t, r, n) => t !== "comment" ? r : ki(r, 140, (o) => e.measureText(o
|
|
|
5470
5470
|
return r <= 0 ? /* @__PURE__ */ s("g", {
|
|
5471
5471
|
...t,
|
|
5472
5472
|
children: e
|
|
5473
|
-
}) : /* @__PURE__ */ s(
|
|
5473
|
+
}) : /* @__PURE__ */ s(O.g, {
|
|
5474
5474
|
...t,
|
|
5475
5475
|
initial: { opacity: 0 },
|
|
5476
5476
|
animate: { opacity: 1 },
|
|
@@ -5918,7 +5918,7 @@ var Yo = (e, t) => {
|
|
|
5918
5918
|
]
|
|
5919
5919
|
});
|
|
5920
5920
|
}, bg = ({ layer: e, coordSystem: t, shouldAnimateTransitions: r, isDimmed: n, dimStyle: o, formattingLocale: a }) => {
|
|
5921
|
-
const i = de(), l = ad(e.id), { colorScheme: c } = G(), u =
|
|
5921
|
+
const i = de(), l = ad(e.id), { colorScheme: c } = G(), u = T(e), d = i(e.geom, t.type);
|
|
5922
5922
|
if (d === null) return null;
|
|
5923
5923
|
const v = yt(d.render);
|
|
5924
5924
|
return v.overlay ? null : /* @__PURE__ */ s("g", {
|
|
@@ -5965,7 +5965,7 @@ var Sg = 4, kg = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
|
|
|
5965
5965
|
t,
|
|
5966
5966
|
o,
|
|
5967
5967
|
n
|
|
5968
|
-
]), { colorScheme: d } = G(), v =
|
|
5968
|
+
]), { colorScheme: d } = G(), v = T(t), g = A(() => Da(t), [t]), h = A(() => Ra({
|
|
5969
5969
|
layer: t,
|
|
5970
5970
|
numberFormat: c,
|
|
5971
5971
|
locale: l
|
|
@@ -6040,7 +6040,7 @@ var Sg = 4, kg = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
|
|
|
6040
6040
|
primary: v.hover.primary,
|
|
6041
6041
|
group: v.hover.group,
|
|
6042
6042
|
related: v.hover.related
|
|
6043
|
-
}))), i = de(), { colorScheme: l } = G(), c =
|
|
6043
|
+
}))), i = de(), { colorScheme: l } = G(), c = T(e);
|
|
6044
6044
|
if (n === null) return null;
|
|
6045
6045
|
const u = i(e.geom, t.type);
|
|
6046
6046
|
if (u === null || Gl(u)) return null;
|
|
@@ -6062,7 +6062,7 @@ var Sg = 4, kg = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
|
|
|
6062
6062
|
styleReaders: c
|
|
6063
6063
|
});
|
|
6064
6064
|
}, Pg = (e) => {
|
|
6065
|
-
const t =
|
|
6065
|
+
const t = T(e);
|
|
6066
6066
|
return A(() => {
|
|
6067
6067
|
const [r] = e.data;
|
|
6068
6068
|
return r === void 0 ? {
|
|
@@ -6086,7 +6086,7 @@ var Sg = 4, kg = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
|
|
|
6086
6086
|
className: Tg,
|
|
6087
6087
|
"data-testid": "geom-layers",
|
|
6088
6088
|
...Wd(),
|
|
6089
|
-
children: n.map((a) => /* @__PURE__ */ w(jt, { children: [/* @__PURE__ */ s(
|
|
6089
|
+
children: n.map((a) => /* @__PURE__ */ w(jt, { children: [/* @__PURE__ */ s(Og, {
|
|
6090
6090
|
layer: a,
|
|
6091
6091
|
coordSystem: o,
|
|
6092
6092
|
shouldAnimateTransitions: e,
|
|
@@ -6104,7 +6104,7 @@ var Sg = 4, kg = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
|
|
|
6104
6104
|
}, Dg = (e) => xn({
|
|
6105
6105
|
...e.opacity === void 0 ? {} : { [Bg]: String(e.opacity) },
|
|
6106
6106
|
...e.saturation === void 0 ? {} : { [Ig]: `saturate(${e.saturation})` }
|
|
6107
|
-
}),
|
|
6107
|
+
}), Og = ({ layer: e, coordSystem: t, shouldAnimateTransitions: r, panelRect: n, formattingLocale: o }) => {
|
|
6108
6108
|
const a = de(), i = A(() => a(e.geom, t.type), [
|
|
6109
6109
|
a,
|
|
6110
6110
|
e,
|
|
@@ -6115,7 +6115,7 @@ var Sg = 4, kg = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
|
|
|
6115
6115
|
shouldAnimateTransitions: r,
|
|
6116
6116
|
formattingLocale: o,
|
|
6117
6117
|
colorScheme: u,
|
|
6118
|
-
styleReaders:
|
|
6118
|
+
styleReaders: T(e)
|
|
6119
6119
|
}, v = i ? yt(i.render) : null, g = e.spatialKind === "render-hit-test", h = Fg(e);
|
|
6120
6120
|
return /* @__PURE__ */ w("g", {
|
|
6121
6121
|
className: h,
|
|
@@ -6149,13 +6149,13 @@ var Sg = 4, kg = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
|
|
|
6149
6149
|
})
|
|
6150
6150
|
]
|
|
6151
6151
|
});
|
|
6152
|
-
},
|
|
6153
|
-
const g =
|
|
6152
|
+
}, Hg = "_17uhij30", Gg = ({ formattedAxes: e, plotRect: t, panelBorder: r, panelFrameRect: n, panelRect: o, axisRects: a, axisLabelRects: i, shouldAnimateTransitions: l, formattingLocale: c, plotBottomY: u, isFooterChromeReserved: d, isEditable: v }) => {
|
|
6153
|
+
const g = I(null);
|
|
6154
6154
|
nv(g);
|
|
6155
6155
|
const h = ee("Grid", ug), f = ee("AxisTicks", cg), m = ee("AxisLabel", dg), p = A(() => Wt(n, t), [n, t]), y = A(() => Wt(o, t), [o, t]), b = A(() => Gr(a, t), [a, t]), R = A(() => Gr(i, t), [i, t]);
|
|
6156
6156
|
return /* @__PURE__ */ w("svg", {
|
|
6157
6157
|
ref: g,
|
|
6158
|
-
className:
|
|
6158
|
+
className: Hg,
|
|
6159
6159
|
width: t.width,
|
|
6160
6160
|
height: t.height,
|
|
6161
6161
|
style: { transform: `translate(${t.x}px, ${t.y}px)` },
|
|
@@ -6248,16 +6248,23 @@ var Sg = 4, kg = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
|
|
|
6248
6248
|
if (e <= 0 || Number.isNaN(e) || !Number.isFinite(e)) throw new ga({ message: `Expected ${t} to be a positive, finite number, but got ${e}.` });
|
|
6249
6249
|
return e;
|
|
6250
6250
|
}, Vg = ({ sizing: e, onResize: t, children: r }) => {
|
|
6251
|
-
const n = oo({ onResize: t });
|
|
6252
|
-
if (
|
|
6253
|
-
|
|
6251
|
+
const n = oo({ onResize: t }), o = I(!1);
|
|
6252
|
+
if (M(() => {
|
|
6253
|
+
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.`)));
|
|
6254
|
+
}, [
|
|
6255
|
+
e.mode,
|
|
6256
|
+
n.isDefault,
|
|
6257
|
+
n.width,
|
|
6258
|
+
n.height
|
|
6259
|
+
]), e.mode === "keepAspectRatio") {
|
|
6260
|
+
const { intrinsicSize: i, canRender: l, outerStyles: c, innerStyles: u } = Ug(e, n.width, !n.isDefault);
|
|
6254
6261
|
return /* @__PURE__ */ s("div", {
|
|
6255
6262
|
ref: n.setElement,
|
|
6256
|
-
style:
|
|
6263
|
+
style: c,
|
|
6257
6264
|
"data-testid": "graph-sizer",
|
|
6258
|
-
children:
|
|
6259
|
-
style:
|
|
6260
|
-
children: r(
|
|
6265
|
+
children: l && /* @__PURE__ */ s("div", {
|
|
6266
|
+
style: u,
|
|
6267
|
+
children: r(i)
|
|
6261
6268
|
})
|
|
6262
6269
|
});
|
|
6263
6270
|
}
|
|
@@ -6273,7 +6280,7 @@ var Sg = 4, kg = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
|
|
|
6273
6280
|
height: e.height
|
|
6274
6281
|
})
|
|
6275
6282
|
});
|
|
6276
|
-
const
|
|
6283
|
+
const a = !n.isDefault && n.width > 0 && n.height > 0;
|
|
6277
6284
|
return /* @__PURE__ */ s("div", {
|
|
6278
6285
|
ref: n.setElement,
|
|
6279
6286
|
style: {
|
|
@@ -6281,7 +6288,7 @@ var Sg = 4, kg = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
|
|
|
6281
6288
|
height: "100%"
|
|
6282
6289
|
},
|
|
6283
6290
|
"data-testid": "graph-sizer",
|
|
6284
|
-
children:
|
|
6291
|
+
children: a && r({
|
|
6285
6292
|
width: n.width,
|
|
6286
6293
|
height: n.height
|
|
6287
6294
|
})
|
|
@@ -6312,8 +6319,8 @@ var Sg = 4, kg = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
|
|
|
6312
6319
|
height: 0
|
|
6313
6320
|
}
|
|
6314
6321
|
}, Yg = () => {
|
|
6315
|
-
const [e, t] =
|
|
6316
|
-
return
|
|
6322
|
+
const [e, t] = H(null), [r, n] = H(null), [o, a] = H(Tt);
|
|
6323
|
+
return M(() => {
|
|
6317
6324
|
const i = () => {
|
|
6318
6325
|
const c = e ? {
|
|
6319
6326
|
width: e.offsetWidth,
|
|
@@ -6398,7 +6405,7 @@ var Sg = 4, kg = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
|
|
|
6398
6405
|
content: Q.config.content,
|
|
6399
6406
|
overflowStrategy: Q.config.panel.overflow,
|
|
6400
6407
|
layoutConfig: Q.config.layout
|
|
6401
|
-
}))), R = Ci(), { intro: S, transitions: P } = A(() => nc(r, R ?? !1), [r, R]), { headerRef: E, footerRef: N, measurements:
|
|
6408
|
+
}))), R = Ci(), { intro: S, transitions: P } = A(() => nc(r, R ?? !1), [r, R]), { headerRef: E, footerRef: N, measurements: F } = Yg(), { formattingLocale: W, colorScheme: K, themeOverrides: Te } = G(), Ae = o === "editable", [ye, Ko] = H(null), ar = A(() => Un(K, Te), [K, Te]), zo = ee("Header", Eu), jo = ee("Footer", xu), Xo = ee("Legend", Hh), qo = ee("Headline", qu), Jo = ee("EditorSurface", zg), ir = A(() => Wa({
|
|
6402
6409
|
legends: l,
|
|
6403
6410
|
numberFormat: u,
|
|
6404
6411
|
parsingLocale: d,
|
|
@@ -6455,7 +6462,7 @@ var Sg = 4, kg = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
|
|
|
6455
6462
|
parsingLocale: d,
|
|
6456
6463
|
formattedLegends: ir,
|
|
6457
6464
|
containerSize: Ne,
|
|
6458
|
-
externalMeasurements:
|
|
6465
|
+
externalMeasurements: F,
|
|
6459
6466
|
headline: xe,
|
|
6460
6467
|
formattingLocale: W,
|
|
6461
6468
|
annotations: g,
|
|
@@ -6585,7 +6592,7 @@ export {
|
|
|
6585
6592
|
zh as C,
|
|
6586
6593
|
Qs as Ct,
|
|
6587
6594
|
To as D,
|
|
6588
|
-
|
|
6595
|
+
Oe as Dt,
|
|
6589
6596
|
Gu as E,
|
|
6590
6597
|
L as Et,
|
|
6591
6598
|
ue as F,
|
|
@@ -6597,7 +6604,7 @@ export {
|
|
|
6597
6604
|
Bd as K,
|
|
6598
6605
|
Ue as L,
|
|
6599
6606
|
vu as M,
|
|
6600
|
-
|
|
6607
|
+
T as Mt,
|
|
6601
6608
|
qd as N,
|
|
6602
6609
|
C as Nt,
|
|
6603
6610
|
Eu as O,
|
|
@@ -6621,7 +6628,7 @@ export {
|
|
|
6621
6628
|
If as a,
|
|
6622
6629
|
mc as at,
|
|
6623
6630
|
ov as b,
|
|
6624
|
-
|
|
6631
|
+
Hl as bt,
|
|
6625
6632
|
Yv as c,
|
|
6626
6633
|
ec as ct,
|
|
6627
6634
|
Pf as d,
|