@mechane-ai/elements 0.62.0 → 0.64.0

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.
Files changed (82) hide show
  1. package/dist/ai.js +7 -7
  2. package/dist/{article-DBRkXW1r.js → article-BopqPz1K.js} +6 -6
  3. package/dist/article.js +1 -1
  4. package/dist/catalog.json +1 -1
  5. package/dist/{categorical-values-Bq5dMg0i.js → categorical-values-8LA9KXhi.js} +1 -1
  6. package/dist/charts/cartesian.js +1 -1
  7. package/dist/charts/comparison.js +1 -1
  8. package/dist/charts/distribution.js +1 -1
  9. package/dist/charts/figure.js +12 -12
  10. package/dist/charts/graph.js +1 -1
  11. package/dist/charts/hierarchy.js +1 -1
  12. package/dist/charts/image.js +1 -1
  13. package/dist/charts/matrix.js +1 -1
  14. package/dist/charts/plot.js +3 -3
  15. package/dist/charts/relationship.js +1 -1
  16. package/dist/charts/text.js +1 -1
  17. package/dist/charts/timeline.js +2 -2
  18. package/dist/charts/trend.js +1 -1
  19. package/dist/charts.js +2 -2
  20. package/dist/{code-block-C_Ze7QLO.js → code-block-BjQUIvvw.js} +1 -1
  21. package/dist/collections.js +1 -1
  22. package/dist/{commands-BWwMKUdd.js → commands-BI9rWGpb.js} +2 -2
  23. package/dist/content/code.js +1 -1
  24. package/dist/content/diff.js +3 -3
  25. package/dist/content/link.js +1 -1
  26. package/dist/content/markdown.js +1 -1
  27. package/dist/content/tree.js +2 -2
  28. package/dist/{content-link-BSR0a887.js → content-link-C3RAJ2kP.js} +1 -1
  29. package/dist/content.js +1 -1
  30. package/dist/{dates-DNb7_KSp.js → dates-D1v_jiva.js} +2 -2
  31. package/dist/{dumbbell-plot-DWybxZAH.js → dumbbell-plot-QGjFMk0X.js} +3 -3
  32. package/dist/{embedding-map-B5JjgyGR.js → embedding-map-D_RNxsCD.js} +6 -6
  33. package/dist/feedback.js +1 -1
  34. package/dist/{figure-frame-zyCmHlgX.js → figure-frame-CF3298LZ.js} +3 -3
  35. package/dist/forms/dates.js +1 -1
  36. package/dist/{forms-C5vXBA_C.js → forms-DlKhXUlc.js} +1 -1
  37. package/dist/forms.js +2 -2
  38. package/dist/{image-grid-Cgkz2fsU.js → image-grid-BXsgVBnB.js} +3 -3
  39. package/dist/index.js +1 -1
  40. package/dist/kits/evaluation.js +4 -4
  41. package/dist/kits/interpretability.js +11 -11
  42. package/dist/kits/operations.js +6 -6
  43. package/dist/kits/research.js +8 -8
  44. package/dist/kits/training.js +5 -5
  45. package/dist/layout.js +1 -1
  46. package/dist/lesson.js +3 -3
  47. package/dist/{markdown-BkFwgQzJ.js → markdown-B92daSMP.js} +2 -2
  48. package/dist/mdx.js +6 -6
  49. package/dist/navigation/commands.js +1 -1
  50. package/dist/{navigation-Bqouujdr.js → navigation-D3vnWiVv.js} +1 -1
  51. package/dist/navigation.js +3 -3
  52. package/dist/packages/charts/src/timeline/trace-timeline.d.ts +1 -1
  53. package/dist/packages/collections/src/data-table-styles.d.ts +4 -0
  54. package/dist/packages/collections/src/data-table-text.d.ts +3 -1
  55. package/dist/{param-BLGHbZoi.js → param-DfOYi9wL.js} +1 -1
  56. package/dist/{pierre-diff-TAaZTeg-.js → pierre-diff-DP_TXXIt.js} +1 -1
  57. package/dist/{plot-layout-JgEcW4fY.js → plot-layout-BfXmAi71.js} +3 -3
  58. package/dist/{plot-surface-CAAzoXJh.js → plot-surface-UQgDiTVe.js} +1 -1
  59. package/dist/{reference-lines-BGE13uMG.js → reference-lines-BRHB78Wb.js} +1 -1
  60. package/dist/{scene-GBAHedGg.js → scene-DlVQupfw.js} +6 -6
  61. package/dist/scene.js +1 -1
  62. package/dist/{slope-chart-Bh7fntOb.js → slope-chart-CjXcvoRJ.js} +4 -4
  63. package/dist/{src-KTMBylbq.js → src-BI1xQE7D.js} +1 -1
  64. package/dist/{src-k0l1Y4Xl.js → src-BYmv3_AL.js} +9 -12
  65. package/dist/{src-D_BL6n5Q.js → src-BYnmQkDq.js} +2 -2
  66. package/dist/{src-CoRsRnHQ.js → src-BdQGb362.js} +4 -4
  67. package/dist/{src-DxZdE_P5.js → src-DPcnDU5H.js} +1 -1
  68. package/dist/{src-Ddx3fHei.js → src-DojhQZKX.js} +3 -3
  69. package/dist/{src-XMHLpSe9.js → src-P19zz_aO.js} +15 -10
  70. package/dist/styles2.css +103 -26
  71. package/dist/{time-series-_wZflmIb.js → time-series-Dg3DZRGx.js} +8 -8
  72. package/dist/timeline-C2IVroD3.js +923 -0
  73. package/dist/{token-heatmap-Chnea1Iv.js → token-heatmap-CZtIPU60.js} +3 -3
  74. package/dist/{token-predictions-DQEd5sj7.js → token-predictions-BJ5L-Lrm.js} +3 -3
  75. package/dist/{transport-CagqVWwW.js → transport-D9e0H2we.js} +4 -4
  76. package/dist/{tree-diagram-CL8RI9gT.js → tree-diagram-DRAJiqjW.js} +4 -4
  77. package/dist/{treemap-C3zmI4of.js → treemap-BdELCV7E.js} +4 -4
  78. package/dist/{use-tween-C2VZtQjV.js → use-tween-COV8bEYL.js} +1 -1
  79. package/dist/{violin-plot-CgpyGuSe.js → violin-plot-DuxqWnuD.js} +3 -3
  80. package/dist/{waterfall-S8CLEUib.js → waterfall-D4ewGb4u.js} +175 -176
  81. package/package.json +1 -1
  82. package/dist/timeline-DsNPo_57.js +0 -869
@@ -0,0 +1,923 @@
1
+ import { A as e, E as t, M as n, S as r, h as i, j as a, l as o, s } from "./plot-layout-BfXmAi71.js";
2
+ import { E as c, c as l, m as u, t as d, y as f } from "./src-BYmv3_AL.js";
3
+ import { t as p } from "./chart-tones-ei3BC2AL.js";
4
+ import { t as m } from "./chart-cursor-1mFd48Jc.js";
5
+ import { i as h, l as g, n as _, r as ee, t as te } from "./figure-frame-CF3298LZ.js";
6
+ import { i as v } from "./chart-link-AE_xuxiP.js";
7
+ import { t as y } from "./chart-range-Du1gDxCY.js";
8
+ import { n as ne } from "./plot-width-D3hTycYX.js";
9
+ import { r as re } from "./figure-format-B8kRZMlo.js";
10
+ import { a as ie } from "./tone-scope-DKiSw-JR.js";
11
+ import { t as ae } from "./plot-axes-D5S9BnBa.js";
12
+ import { r as oe } from "./plot-marks-DgCtcd3L.js";
13
+ import { n as se, r as ce, t as le } from "./plot-surface-UQgDiTVe.js";
14
+ import { r as ue } from "./scale-C2xgZyZN.js";
15
+ import * as b from "@stylexjs/stylex";
16
+ import { useId as de, useRef as fe, useState as pe } from "react";
17
+ import { stackSpans as x } from "@ui-sdk/core";
18
+ import { Fragment as me, jsx as S, jsxs as C } from "react/jsx-runtime";
19
+ import { X as he } from "lucide-react";
20
+ // packages/charts/src/timeline/trace-timeline-layout.ts
21
+ var w = {
22
+ lanes: 24,
23
+ spans: 2e3
24
+ }, T = .5, E = .005, ge = .7, D = .2, _e = .15, O = 10, k = 6, A = 12, j = 5, M = 3, ve = 2, ye = 6, be = 8, xe = .5;
25
+ function Se({ lanes: e, spans: t, domain: r }) {
26
+ let [i, a] = r;
27
+ if (!Number.isFinite(i) || !Number.isFinite(a) || a < i) return "The trace domain must have finite, ordered endpoints.";
28
+ if (e.length === 0) return "A trace timeline needs at least one lane.";
29
+ if (e.length > w.lanes) return `This chart draws at most ${w.lanes} lanes.`;
30
+ if (t.length > w.spans) return `This chart draws at most ${w.spans} spans.`;
31
+ if (!n(e)) return "Trace lanes must have unique identifiers.";
32
+ if (!n(t)) return "Trace spans must have unique identifiers.";
33
+ let o = new Set(e.map((e) => e.id));
34
+ for (let e of t) {
35
+ if (!o.has(e.laneId)) return `Span "${e.id}" references an unknown lane "${e.laneId}".`;
36
+ if (!Number.isFinite(e.start) || !Number.isFinite(e.end) || e.end < e.start) return `Span "${e.id}" must have finite, ordered endpoints.`;
37
+ }
38
+ }
39
+ function Ce(e, t) {
40
+ let [n, r] = t, i = Math.max(r - n, 0);
41
+ if (i === 0) return [n, r];
42
+ let a = i * E, o = Math.max(n, Math.min(r, e[0])), s = Math.max(n, Math.min(r, e[1]));
43
+ if (s < o && ([o, s] = [s, o]), s - o < a) {
44
+ let e = (o + s) * T;
45
+ o = Math.max(n, e - a * T), s = Math.min(r, o + a), o = Math.max(n, s - a);
46
+ }
47
+ return [o, s];
48
+ }
49
+ function we({ visible: e, domain: t, factor: n, anchorRatio: r = T }) {
50
+ let [i, a] = t, o = e[1] - e[0], s = a - i;
51
+ if (s <= 0 || !Number.isFinite(n) || n <= 0) return t;
52
+ let c = Math.min(s, Math.max(s * E, o * n)), l = e[0] + o * r - c * r, u = l + c;
53
+ return l < i && (l = i, u = Math.min(a, i + c)), u > a && (u = a, l = Math.max(i, a - c)), [l, u];
54
+ }
55
+ function N({ visible: e, domain: t, direction: n, anchorRatio: r = T }) {
56
+ return we({
57
+ visible: e,
58
+ domain: t,
59
+ factor: n === "in" ? ge : 1 / ge,
60
+ anchorRatio: r
61
+ });
62
+ }
63
+ function Te({ visible: e, domain: t, direction: n }) {
64
+ return Ee({
65
+ visible: e,
66
+ domain: t,
67
+ delta: (e[1] - e[0]) * D * (n === "left" ? -1 : 1)
68
+ });
69
+ }
70
+ function Ee({ visible: e, domain: t, delta: n }) {
71
+ let [r, i] = t, a = e[1] - e[0], o = e[0] + n, s = o + a;
72
+ return o < r && (o = r, s = Math.min(i, r + a)), s > i && (s = i, o = Math.max(r, i - a)), [o, s];
73
+ }
74
+ function De(e, t) {
75
+ let [n, r] = t, i = r - n, a = Math.max(e.end - e.start, i * E) * _e;
76
+ return Ce([e.start - a, e.end + a], t);
77
+ }
78
+ var Oe = 32;
79
+ function P(e, t) {
80
+ let n = t.get(e)?.parentId;
81
+ return Array.from({ length: Oe }, () => {
82
+ if (n === void 0) return null;
83
+ let e = n;
84
+ return n = t.get(e)?.parentId, e;
85
+ }).filter((e) => e !== null);
86
+ }
87
+ function ke(e, t, n) {
88
+ if (e == null) return;
89
+ let r = new Map(t.map((e) => [e.id, e])), i = r.get(e);
90
+ if (i === void 0) return;
91
+ let a = P(i.id, r), o = i.relatedIds ?? [], s = (n ?? []).flatMap((e) => e.fromSpanId === i.id ? [e.toSpanId] : e.toSpanId === i.id ? [e.fromSpanId] : []), c = t.filter((e) => e.relatedIds?.includes(i.id) === !0 || P(e.id, r).includes(i.id)).map((e) => e.id);
92
+ return /* @__PURE__ */ new Set([
93
+ i.id,
94
+ ...a,
95
+ ...o,
96
+ ...s,
97
+ ...c
98
+ ]);
99
+ }
100
+ function F(e, t) {
101
+ let n = e - j;
102
+ return `M ${n} ${t - M} L ${e} ${t} L ${n} ${t + M} Z`;
103
+ }
104
+ function Ae(e, t, n) {
105
+ let r = t - n * j;
106
+ return `M ${e - M} ${r} L ${e} ${t} L ${e + M} ${r} Z`;
107
+ }
108
+ function I({ fromEnd: e, fromY: t, toStart: n, toY: r }) {
109
+ let i = n - j, a = r - t, o = F(n, r);
110
+ if (Math.abs(a) < 1) return {
111
+ path: `M ${e} ${t} L ${i} ${r}`,
112
+ arrowPath: o
113
+ };
114
+ let s = a > 0 ? 1 : -1, c = i - e, l = e + Math.min(A, c * T), u = Math.min(k, Math.abs(a) * T, l - e, i - l);
115
+ return {
116
+ path: [
117
+ `M ${e} ${t}`,
118
+ `L ${l - u} ${t}`,
119
+ `Q ${l} ${t} ${l} ${t + s * u}`,
120
+ `L ${l} ${r - s * u}`,
121
+ `Q ${l} ${r} ${l + u} ${r}`,
122
+ `L ${i} ${r}`
123
+ ].join(" "),
124
+ arrowPath: o
125
+ };
126
+ }
127
+ function je({ from: e, to: t }) {
128
+ let n = 18 * T, r = e.y - n, i = t.y - n, a = i - j, o = Math.max(0, t.x2 - t.x1), s = t.x1 + Math.min(ye, o * T), c = Math.max(Math.min(e.x2, e.x1 + ve), e.x2), l = Math.min(r - be, a - k), u = s - c, d = Ae(s, i, 1);
129
+ if (Math.abs(u) < xe) return {
130
+ path: `M ${s} ${l} L ${s} ${a}`,
131
+ arrowPath: d
132
+ };
133
+ let f = u >= 0 ? 1 : -1, p = Math.min(k, Math.abs(u) * T, r - l, a - l);
134
+ return {
135
+ path: [
136
+ `M ${c} ${r}`,
137
+ `L ${c} ${l + p}`,
138
+ `Q ${c} ${l} ${c + f * p} ${l}`,
139
+ `L ${s - f * p} ${l}`,
140
+ `Q ${s} ${l} ${s} ${l + p}`,
141
+ `L ${s} ${a}`
142
+ ].join(" "),
143
+ arrowPath: d
144
+ };
145
+ }
146
+ function Me({ from: e, to: t }) {
147
+ let n = e.x2, r = e.y, i = t.x1, a = t.y;
148
+ if (i - n >= O) return I({
149
+ fromEnd: n,
150
+ fromY: r,
151
+ toStart: i,
152
+ toY: a
153
+ });
154
+ let o = a - r;
155
+ if (Math.abs(o) < 1) return je({
156
+ from: e,
157
+ to: t
158
+ });
159
+ let s = o > 0 ? 1 : -1, c = 18 * T, l = r + s * c, u = a - s * c, d = u - s * j, f = Math.max(0, t.x2 - i), p = i + Math.min(ye, f * T), m = Math.min(n, e.x1 + ve), h = Math.max(m, Math.min(n, p)), g = Ae(p, u, s), _ = p - h;
160
+ if (Math.abs(_) < xe) return {
161
+ path: `M ${h} ${l} L ${p} ${d}`,
162
+ arrowPath: g
163
+ };
164
+ if (p > n) {
165
+ let e = p - n, t = Math.abs(d - r), i = Math.min(k, e, t);
166
+ return {
167
+ path: [
168
+ `M ${n} ${r}`,
169
+ `L ${p - i} ${r}`,
170
+ `Q ${p} ${r} ${p} ${r + s * i}`,
171
+ `L ${p} ${d}`
172
+ ].join(" "),
173
+ arrowPath: g
174
+ };
175
+ }
176
+ let ee = _ >= 0 ? 1 : -1, te = Math.abs(d - l), v = Math.min(k, te * T, Math.abs(_) * T), y = (l + d) * T;
177
+ return {
178
+ path: [
179
+ `M ${h} ${l}`,
180
+ `L ${h} ${y - s * v}`,
181
+ `Q ${h} ${y} ${h + ee * v} ${y}`,
182
+ `L ${p - ee * v} ${y}`,
183
+ `Q ${p} ${y} ${p} ${y + s * v}`,
184
+ `L ${p} ${d}`
185
+ ].join(" "),
186
+ arrowPath: g
187
+ };
188
+ }
189
+ function Ne({ lane: e, spans: t, minExtent: n }) {
190
+ let r = t.filter((t) => t.laneId === e.id).map((t) => ({
191
+ id: t.id,
192
+ track: e.id,
193
+ start: t.start,
194
+ end: Math.max(t.end, t.start + n)
195
+ })), i = [...x(r).entries()].map(([e, t]) => [e, t.lane]), a = Math.max(0, ...i.map(([, e]) => e));
196
+ return {
197
+ entries: i,
198
+ rowCount: r.length === 0 ? 1 : a + 1
199
+ };
200
+ }
201
+ function Pe({ lanes: e, spans: t, minExtent: n }) {
202
+ let r = e.map((e) => Ne({
203
+ lane: e,
204
+ spans: t,
205
+ minExtent: n
206
+ }));
207
+ return {
208
+ rowBySpanId: new Map(r.flatMap((e) => e.entries)),
209
+ rowCountByLane: r.map((e) => e.rowCount)
210
+ };
211
+ }
212
+ // packages/charts/src/timeline/trace-timeline.tsx
213
+ var Fe = 42, Ie = 4, Le = 6, L = .5, Re = 4, ze = 10, Be = 96, Ve = 3, He = 200, Ue = 80, We = .004, Ge = 4, Ke = 2, qe = 340, Je = 8, Ye = 64, R = 28, Xe = 2, Ze = 4, Qe = 680, $e = .3, et = .35, tt = {
214
+ k1xSpc: "x1rg5ohu",
215
+ kzqmXN: "xci0xqf",
216
+ kZKoxP: "x1hagigm",
217
+ kaIpWk: "x1cum3z5",
218
+ kmuXW: "x2lah0s",
219
+ $$css: !0
220
+ }, z = {
221
+ kVYP8I: "x1vx5rtw",
222
+ $$css: !0
223
+ }, B = {
224
+ swatch: (e) => [
225
+ tt,
226
+ {
227
+ kWkggS: e == null ? e : "xl8spv7",
228
+ $$css: !0
229
+ },
230
+ { "--x-backgroundColor": e ?? void 0 }
231
+ ],
232
+ minimapBox: {
233
+ kVAEAm: "x1n2onr6",
234
+ kB7OPa: "x9f619",
235
+ k7Eaqz: "xeuugli",
236
+ kGVxlE: "x14yt7xg",
237
+ kaIpWk: "x1ok0vyi",
238
+ kWkggS: "x1r7kqkb",
239
+ kVQacm: "xb3r6kr",
240
+ $$css: !0
241
+ },
242
+ minimapFrame: (e, t) => [{
243
+ keTefX: e == null ? e : "x4lel18",
244
+ k71WvV: t == null ? t : "x1c9tiao",
245
+ $$css: !0
246
+ }, {
247
+ "--x-marginInlineStart": ((e) => typeof e == "number" ? e + "px" : e ?? void 0)(e),
248
+ "--x-marginInlineEnd": ((e) => typeof e == "number" ? e + "px" : e ?? void 0)(t)
249
+ }],
250
+ minimapBar: (e) => [
251
+ z,
252
+ {
253
+ kDwRjp: e == null ? e : "x19zyb68",
254
+ $$css: !0
255
+ },
256
+ { "--x-fill": e ?? void 0 }
257
+ ],
258
+ separator: {
259
+ kfzvcC: "x47corl",
260
+ $$css: !0
261
+ },
262
+ linkGroup: {
263
+ kSiTet: "x1iy03kw",
264
+ kfzvcC: "x47corl",
265
+ $$css: !0
266
+ },
267
+ linkGroupReceded: {
268
+ kSiTet: "xvpkmg4",
269
+ $$css: !0
270
+ },
271
+ scrubPill: {
272
+ kVAEAm: "x10l6tqk",
273
+ k3aq6I: "xuuh30",
274
+ kfzvcC: "x47corl",
275
+ kY2c9j: "xhmu9ja",
276
+ kg3NbH: "x14w6jbu",
277
+ kaIpWk: "x1ok0vyi",
278
+ kWkggS: "x1pt885t",
279
+ kMwMTN: "x1ymx3u3",
280
+ kMv6JI: "x1hz01jw",
281
+ kGuDYH: "xy8obcc",
282
+ kLWn49: "xas2l8k",
283
+ kcqcaj: "xss6m8b",
284
+ khDVqt: "xuxw1ft",
285
+ $$css: !0
286
+ },
287
+ scrubPillPos: (e, t) => [{
288
+ kbCHJM: e == null ? e : "xgq9j65",
289
+ k87sOh: t == null ? t : "xjbys53",
290
+ $$css: !0
291
+ }, {
292
+ "--x-left": ((e) => typeof e == "number" ? e + "px" : e ?? void 0)(e),
293
+ "--x-top": ((e) => typeof e == "number" ? e + "px" : e ?? void 0)(t)
294
+ }],
295
+ hoverCard: {
296
+ kVAEAm: "x10l6tqk",
297
+ kB7OPa: "x9f619",
298
+ kfzvcC: "x47corl",
299
+ kY2c9j: "xhmu9ja",
300
+ k1xSpc: "xrvj5dj",
301
+ kOIVth: "xfko13i",
302
+ k8WAf4: "x1hmw7ec",
303
+ kg3NbH: "x5g2kb4",
304
+ kMzoRj: "xmkeg23",
305
+ ksu8eU: "x1y0btm7",
306
+ kVAM5u: "x1ey3b81",
307
+ kaIpWk: "x1ok0vyi",
308
+ kWkggS: "xpvm0e4",
309
+ kGVxlE: "x1ghndwu",
310
+ kMwMTN: "xbixft",
311
+ kMv6JI: "x1hz01jw",
312
+ kGuDYH: "xy8obcc",
313
+ kLWn49: "xas2l8k",
314
+ $$css: !0
315
+ },
316
+ hoverCardAbove: (e, t, n) => [{
317
+ kbCHJM: e == null ? e : "xgq9j65",
318
+ kzqmXN: t == null ? t : "x5lhr3w",
319
+ krVfgx: n == null ? n : "x1nqzi6q",
320
+ $$css: !0
321
+ }, {
322
+ "--x-left": ((e) => typeof e == "number" ? e + "px" : e ?? void 0)(e),
323
+ "--x-width": ((e) => typeof e == "number" ? e + "px" : e ?? void 0)(t),
324
+ "--x-bottom": ((e) => typeof e == "number" ? e + "px" : e ?? void 0)(n)
325
+ }],
326
+ hoverCardBelow: (e, t, n) => [{
327
+ kbCHJM: e == null ? e : "xgq9j65",
328
+ kzqmXN: t == null ? t : "x5lhr3w",
329
+ k87sOh: n == null ? n : "xjbys53",
330
+ $$css: !0
331
+ }, {
332
+ "--x-left": ((e) => typeof e == "number" ? e + "px" : e ?? void 0)(e),
333
+ "--x-width": ((e) => typeof e == "number" ? e + "px" : e ?? void 0)(t),
334
+ "--x-top": ((e) => typeof e == "number" ? e + "px" : e ?? void 0)(n)
335
+ }]
336
+ };
337
+ function nt({ mark: e, box: t, linkLabel: n }) {
338
+ let r = Math.max(1, Math.min(qe, t.innerWidth)), i = (e.x1 + e.x2) * L - r * L, a = Math.max(t.left, Math.min(Math.max(t.left, t.right - r), i)), o = e.y - 18 * L, s = e.y + 18 * L, c = o >= Ye, l = Math.min(t.right, t.left + R), u = Math.max(l, t.right - R), d = Math.max(l, Math.min(u, e.x1)), f = n ?? e.laneLabel, m = e.span.detail !== void 0 && e.span.detail !== "" && e.span.detail !== e.span.label;
339
+ return /* @__PURE__ */ C(me, { children: [/* @__PURE__ */ C("div", {
340
+ "aria-hidden": !0,
341
+ ...b.props(B.hoverCard, c ? B.hoverCardAbove(a, r, t.height - o + Je) : B.hoverCardBelow(a, r, s + Je)),
342
+ children: [
343
+ /* @__PURE__ */ C("div", {
344
+ className: "x78zum5 x6s0dn4 x1qughib x1hnptsi xeuugli",
345
+ children: [/* @__PURE__ */ C("span", {
346
+ className: "x78zum5 x6s0dn4 xunmzkg xeuugli x98rzlu x153jb6y",
347
+ children: [/* @__PURE__ */ S("span", { ...b.props(B.swatch(p[e.tone])) }), /* @__PURE__ */ S("span", {
348
+ className: "xeuugli xb3r6kr xlyipyv xuxw1ft",
349
+ children: f
350
+ })]
351
+ }), /* @__PURE__ */ S("span", {
352
+ className: "x153jb6y xss6m8b xuxw1ft x2lah0s",
353
+ children: `${e.duration} · +${e.offset}`
354
+ })]
355
+ }),
356
+ /* @__PURE__ */ S("span", {
357
+ className: "xbixft xk4h15q xb3r6kr xlyipyv xuxw1ft",
358
+ children: e.span.label
359
+ }),
360
+ m && /* @__PURE__ */ S("span", {
361
+ className: "x153jb6y xb3r6kr xlyipyv xuxw1ft",
362
+ children: e.span.detail
363
+ })
364
+ ]
365
+ }), /* @__PURE__ */ S("span", {
366
+ "aria-hidden": !0,
367
+ ...b.props(B.scrubPill, B.scrubPillPos(d, t.bottom + Xe)),
368
+ children: `+${e.offset}`
369
+ })] });
370
+ }
371
+ function V({ lanes: n, spans: x, links: me, domain: w, categories: T, visibleRange: E, onVisibleRangeChange: ge, onClearSelection: D, offsetFormat: _e, selected: O, onSelectedChange: k, highlightedIds: A, onActivateSpan: j, spanActions: M, isMinimapVisible: ve = !0, xTitle: ye = "Elapsed", ...be }) {
372
+ let { emptyLabel: xe = "No spans were recorded.", actions: Oe, ...P } = be, { title: F, locale: Ae } = P, I = ce("regular"), je = de(), Ne = ie(), qe = v(), [Je, Ye] = pe(w), [R, Xe] = pe(null), [tt, z] = pe(!1), V = fe(null);
373
+ if (P.status === "loading") return /* @__PURE__ */ S(h, {
374
+ ...P,
375
+ height: "regular"
376
+ });
377
+ let rt = Se({
378
+ lanes: n,
379
+ spans: x,
380
+ domain: w
381
+ });
382
+ if (rt !== void 0) return /* @__PURE__ */ S(ee, {
383
+ ...P,
384
+ message: rt
385
+ });
386
+ let H = Ce(E ?? Je, w), U = Math.max(w[1] - w[0], 0), W = Math.max(H[1] - H[0], 0), G = U > 0 && W < U * .999;
387
+ function K(e) {
388
+ let t = Ce(e, w);
389
+ E === void 0 && Ye(t), ge?.(t);
390
+ }
391
+ let it = new Map((T ?? []).map((e) => [e.id, e])), at = /* @__PURE__ */ new Map();
392
+ for (let e of x) e.category !== void 0 && at.set(e.category, (at.get(e.category) ?? 0) + 1);
393
+ let ot = (T ?? []).filter((e) => (at.get(e.id) ?? 0) > 0), st = ot.length > 0, ct = R !== null && ot.some((e) => e.id === R) ? R : null, q = {
394
+ ...o({
395
+ width: I.width,
396
+ valueLabels: n.map((e) => e.label),
397
+ hasXTitle: !0,
398
+ hasYTitle: !1,
399
+ leftShare: I.width < Qe ? $e : et
400
+ }),
401
+ top: Ze
402
+ }, lt = Math.max(1, I.width - q.left - q.right), { rowBySpanId: ut, rowCountByLane: dt } = Pe({
403
+ lanes: n,
404
+ spans: x,
405
+ minExtent: W > 0 ? W / lt * 6 : 0
406
+ }), ft = 0;
407
+ for (let e of dt) ft += e;
408
+ let pt = q.top + ft * 26 + n.length * 6 * 2 + q.bottom, J = s({
409
+ width: I.width,
410
+ height: pt,
411
+ margins: q
412
+ }), mt = ue({
413
+ domain: H,
414
+ range: [J.left, J.right]
415
+ }), ht = Math.max(1, J.innerWidth), gt = ue({
416
+ domain: w,
417
+ range: [0, ht]
418
+ }), Y = [], _t = J.top;
419
+ for (let [e, t] of n.entries()) {
420
+ let n = dt[e] ?? 1, r = n * 26 + 12;
421
+ Y.push({
422
+ lane: t,
423
+ index: e,
424
+ rowCount: n,
425
+ start: _t,
426
+ end: _t + r
427
+ }), _t += r;
428
+ }
429
+ let vt = new Map(Y.map((e) => [e.lane.id, e])), yt = Y.map((e) => ({
430
+ key: e.lane.id,
431
+ position: (e.start + e.end) * L,
432
+ label: e.lane.label
433
+ }));
434
+ function X(e) {
435
+ return re({
436
+ value: e,
437
+ locale: Ae,
438
+ format: _e
439
+ });
440
+ }
441
+ let bt = Math.max(Ve, Math.floor(J.innerWidth / Be)), xt = i(H, bt), St = (xt.length > 0 ? xt : [H[0]]).map((e) => ({
442
+ key: String(e),
443
+ position: mt.position(e),
444
+ label: X(e - w[0])
445
+ })), Ct = A !== void 0 && A.length > 0 ? new Set(A) : null, wt = ke(O, x, me), Z = Ct ?? wt ?? null;
446
+ function Tt(e, t) {
447
+ if (e.tone !== void 0) return e.tone;
448
+ let r = e.category === void 0 ? void 0 : it.get(e.category);
449
+ return r === void 0 ? Ne({
450
+ id: e.laneId,
451
+ tone: n[t]?.tone,
452
+ index: t
453
+ }) : r.tone;
454
+ }
455
+ let Q = x.map((e, t) => ({
456
+ span: e,
457
+ index: t
458
+ })).toSorted((e, t) => e.span.start === t.span.start ? e.index - t.index : e.span.start - t.span.start).map((e) => e.span).map((e, t) => {
459
+ let n = vt.get(e.laneId), r = n?.index ?? 0, i = ut.get(e.id) ?? 0, a = (n?.start ?? J.top) + 6 + (i + L) * 26, o = mt.position(e.start), s = Math.max(o + 4, mt.position(e.end)), c = Math.max(J.left, o), l = Math.min(J.right, s), u = s >= J.left - 4 && o <= J.right + 4, d = Tt(e, r), f = X(e.end - e.start), p = X(e.start - w[0]), m = ct === null || e.category === ct, h = Z === null || Z.has(e.id), g = m && h;
460
+ return {
461
+ span: e,
462
+ rank: t,
463
+ laneIndex: r,
464
+ laneLabel: n?.lane.label ?? e.laneId,
465
+ rawX1: o,
466
+ rawX2: s,
467
+ x1: c,
468
+ x2: l,
469
+ y: a,
470
+ isVisible: u,
471
+ tone: d,
472
+ duration: f,
473
+ offset: p,
474
+ isEmphasized: g
475
+ };
476
+ }), Et = new Map(Q.map((e) => [e.span.id, e])), Dt = Q.map(({ span: e, laneLabel: t, duration: n, offset: r }) => ({
477
+ id: e.id,
478
+ label: [
479
+ t,
480
+ e.label,
481
+ n,
482
+ `at +${r}`,
483
+ e.badge,
484
+ e.detail
485
+ ].filter((e) => e !== void 0 && e !== "").join(" · ")
486
+ })), $ = Q.find((e) => e.span.id === O), Ot = 1 / (n.length * 2 + 1);
487
+ function kt(e) {
488
+ let t = e.x / e.width * J.width, n = e.y / e.height * J.height, r, i = Infinity;
489
+ for (let e of Q) {
490
+ let a = t >= e.x1 - Re && t <= e.x2 + Re, o = Math.abs(n - e.y) <= 26 * L;
491
+ if (e.isVisible && a && o) {
492
+ let a = Math.max(e.x1, Math.min(e.x2, t)), o = Math.hypot(t - a, n - e.y);
493
+ o <= i && (i = o, r = e.span.id);
494
+ }
495
+ }
496
+ return r;
497
+ }
498
+ function At(e) {
499
+ if (U <= 0) return;
500
+ let t = e.currentTarget.getBoundingClientRect(), n = e.clientX - t.left, r = Math.max(0, Math.min(1, (n - J.left) / Math.max(1, J.innerWidth)));
501
+ if (e.ctrlKey || e.metaKey || e.shiftKey) {
502
+ e.preventDefault();
503
+ let t = Math.max(-80, Math.min(Ue, e.deltaY)), n = Math.exp(t * We);
504
+ K(we({
505
+ visible: H,
506
+ domain: w,
507
+ factor: n,
508
+ anchorRatio: r
509
+ }));
510
+ } else if (G && Math.abs(e.deltaX) > Math.abs(e.deltaY)) {
511
+ e.preventDefault();
512
+ let t = e.deltaX / Math.max(1, J.innerWidth) * W;
513
+ K(Ee({
514
+ visible: H,
515
+ domain: w,
516
+ delta: t
517
+ }));
518
+ }
519
+ }
520
+ function jt(e) {
521
+ if (e.button !== 0 || e.pointerType === "touch") return;
522
+ let t = e.currentTarget.getBoundingClientRect();
523
+ kt({
524
+ x: e.clientX - t.left,
525
+ y: e.clientY - t.top,
526
+ width: t.width,
527
+ height: t.height
528
+ }) === void 0 ? (V.current = {
529
+ clientX: e.clientX,
530
+ clientY: e.clientY,
531
+ range: G ? H : null,
532
+ hasDragged: !1
533
+ }, G && (z(!0), e.currentTarget.setPointerCapture(e.pointerId))) : V.current = null;
534
+ }
535
+ function Mt(e) {
536
+ let t = V.current;
537
+ if (t === null) return;
538
+ let n = e.clientX - t.clientX, r = e.clientY - t.clientY;
539
+ if (!t.hasDragged && Math.hypot(n, r) > Ge && (V.current = {
540
+ ...t,
541
+ hasDragged: !0
542
+ }), t.range === null) return;
543
+ let i = t.range[1] - t.range[0], a = -(n / Math.max(1, J.innerWidth)) * i;
544
+ K(Ee({
545
+ visible: t.range,
546
+ domain: w,
547
+ delta: a
548
+ }));
549
+ }
550
+ function Nt() {
551
+ let e = V.current;
552
+ V.current = null, z(!1), e !== null && !e.hasDragged && O != null && D?.();
553
+ }
554
+ function Pt() {
555
+ V.current = null, z(!1);
556
+ }
557
+ function Ft(e) {
558
+ switch (e.key) {
559
+ case "+":
560
+ case "=":
561
+ e.preventDefault(), K(N({
562
+ visible: H,
563
+ domain: w,
564
+ direction: "in"
565
+ }));
566
+ break;
567
+ case "-":
568
+ e.preventDefault(), K(N({
569
+ visible: H,
570
+ domain: w,
571
+ direction: "out"
572
+ }));
573
+ break;
574
+ case "0":
575
+ e.preventDefault(), K(w);
576
+ break;
577
+ case "[":
578
+ G && (e.preventDefault(), K(Te({
579
+ visible: H,
580
+ domain: w,
581
+ direction: "left"
582
+ })));
583
+ break;
584
+ case "]":
585
+ G && (e.preventDefault(), K(Te({
586
+ visible: H,
587
+ domain: w,
588
+ direction: "right"
589
+ })));
590
+ break;
591
+ case "Escape":
592
+ O != null && D !== void 0 && (e.preventDefault(), D());
593
+ break;
594
+ case "Enter": $ !== void 0 && j !== void 0 && (e.preventDefault(), j($.span));
595
+ }
596
+ }
597
+ let It = `${X(H[0] - w[0])} – ${X(H[1] - w[0])}`, Lt = /* @__PURE__ */ C(u, { children: [
598
+ /* @__PURE__ */ S("span", {
599
+ className: "xy8obcc x153jb6y xss6m8b xuxw1ft",
600
+ children: It
601
+ }),
602
+ /* @__PURE__ */ S(c, {
603
+ variant: "outline",
604
+ density: "compact",
605
+ onClick: () => K(N({
606
+ visible: H,
607
+ domain: w,
608
+ direction: "out"
609
+ })),
610
+ disabled: !G,
611
+ "aria-label": "Zoom out",
612
+ children: "−"
613
+ }),
614
+ /* @__PURE__ */ S(c, {
615
+ variant: "outline",
616
+ density: "compact",
617
+ onClick: () => K(N({
618
+ visible: H,
619
+ domain: w,
620
+ direction: "in"
621
+ })),
622
+ disabled: U <= 0,
623
+ "aria-label": "Zoom in",
624
+ children: "+"
625
+ }),
626
+ $ !== void 0 && /* @__PURE__ */ S(c, {
627
+ variant: "outline",
628
+ density: "compact",
629
+ onClick: () => K(De($.span, w)),
630
+ "aria-label": "Zoom to selected span",
631
+ children: "Fit span"
632
+ }),
633
+ G && /* @__PURE__ */ S(c, {
634
+ variant: "ghost",
635
+ density: "compact",
636
+ onClick: () => K(w),
637
+ "aria-label": "Reset zoom",
638
+ children: "Reset"
639
+ }),
640
+ Oe
641
+ ] }), Rt = $ !== void 0 && M !== void 0 ? M($.span) : [], zt = j !== void 0 && Rt.length === 0, Bt = $ === void 0 ? null : /* @__PURE__ */ C("div", {
642
+ role: "region",
643
+ "aria-label": "Selected span actions",
644
+ className: "x78zum5 x1a02dak x6s0dn4 x1qughib x1hnptsi xn9t2bk x1doqdfy x178xt8z xso031l xuxrje7 x1y0btm7 x1ey3b81 x2u8bby xpvm0e4 xbixft xh3r7i3 xeuugli",
645
+ children: [/* @__PURE__ */ C("div", {
646
+ className: "x78zum5 x1a02dak x6s0dn4 x1hnptsi xeuugli xk30mkq",
647
+ children: [
648
+ /* @__PURE__ */ S("span", { ...b.props(B.swatch(p[$.tone])) }),
649
+ /* @__PURE__ */ S("span", {
650
+ title: $.span.label,
651
+ className: "xeuugli xb3r6kr xlyipyv xuxw1ft xyn4b58",
652
+ children: /* @__PURE__ */ S(l, { children: $.span.label })
653
+ }),
654
+ /* @__PURE__ */ S("span", {
655
+ className: "xy8obcc x153jb6y xss6m8b xuxw1ft",
656
+ children: `${$.duration} (+${$.offset})`
657
+ }),
658
+ $.span.badge !== void 0 && /* @__PURE__ */ S(d, { children: $.span.badge }),
659
+ $.span.detail !== void 0 && /* @__PURE__ */ S("span", {
660
+ title: $.span.detail,
661
+ className: "xeuugli xy8obcc x153jb6y xb3r6kr xlyipyv xuxw1ft xbcwbia",
662
+ children: $.span.detail
663
+ })
664
+ ]
665
+ }), /* @__PURE__ */ C("div", {
666
+ className: "x78zum5 x1a02dak x6s0dn4 x1hnptsi xvc5jky xeuugli",
667
+ children: [
668
+ Rt.map((e) => e.href === void 0 ? /* @__PURE__ */ S(c, {
669
+ variant: "outline",
670
+ density: "compact",
671
+ onClick: e.onSelect,
672
+ children: e.label
673
+ }, e.id) : /* @__PURE__ */ S("a", {
674
+ href: e.href,
675
+ target: e.isExternal === !0 ? "_blank" : void 0,
676
+ rel: e.isExternal === !0 ? "noreferrer" : void 0,
677
+ className: "x3nfvp2 x6s0dn4 xunmzkg x1pn6w2t x5g2kb4 x1ok0vyi xmkeg23 x1y0btm7 x1ey3b81 xpvm0e4 xbixft x1hz01jw xy8obcc x1hl2dhg x1ypdohk x1mkwuse",
678
+ children: e.label
679
+ }, e.id)),
680
+ zt && /* @__PURE__ */ S(c, {
681
+ variant: "solid",
682
+ density: "compact",
683
+ onClick: () => j($.span),
684
+ children: "Inspect span"
685
+ }),
686
+ D !== void 0 && /* @__PURE__ */ C(c, {
687
+ variant: "ghost",
688
+ density: "compact",
689
+ onClick: D,
690
+ "aria-label": "Clear selection",
691
+ children: [/* @__PURE__ */ S(he, {
692
+ size: 14,
693
+ "aria-hidden": !0
694
+ }), "Clear"]
695
+ })
696
+ ]
697
+ })]
698
+ }), Vt = U > 0 ? U / He : 1;
699
+ return /* @__PURE__ */ S(t, {
700
+ ...qe,
701
+ items: Dt,
702
+ place: (e) => {
703
+ let t = Q.find((t) => t.span.id === e), n = t?.rank ?? 0, r = (t?.laneIndex ?? 0) * Ot;
704
+ return t === void 0 ? void 0 : {
705
+ left: n,
706
+ right: n,
707
+ top: r,
708
+ bottom: r
709
+ };
710
+ },
711
+ locate: kt,
712
+ selected: O ?? null,
713
+ onSelect: k === void 0 && D === void 0 ? void 0 : (e, t) => {
714
+ let n = t.event instanceof MouseEvent && t.event.detail >= 2;
715
+ e === O && !n && D !== void 0 ? D() : k?.(e, t);
716
+ },
717
+ render: (t, { inspected: i, cursor: o }) => {
718
+ let s = Q.find((e) => e.span.id === o), c = i === null ? void 0 : Et.get(i), l = c !== void 0 && c.isVisible;
719
+ return /* @__PURE__ */ S(_, {
720
+ ...P,
721
+ actions: Lt,
722
+ figure: t,
723
+ footer: x.length === 0 ? void 0 : /* @__PURE__ */ S(r, {
724
+ id: je,
725
+ children: e(Dt, i)
726
+ }),
727
+ children: x.length === 0 ? /* @__PURE__ */ S(te, { children: xe }) : /* @__PURE__ */ C("div", {
728
+ className: "xrvj5dj x1mkdm3x x1hnptsi xeuugli",
729
+ children: [
730
+ st && /* @__PURE__ */ S(f, {
731
+ label: "Filter by span category",
732
+ allLabel: "All",
733
+ value: ct,
734
+ onValueChange: Xe,
735
+ options: ot.map((e) => ({
736
+ id: e.id,
737
+ label: e.label,
738
+ color: p[e.tone],
739
+ count: at.get(e.id) ?? 0
740
+ }))
741
+ }),
742
+ ve && U > 0 && /* @__PURE__ */ S("div", {
743
+ ...b.props(B.minimapBox, B.minimapFrame(J.left, Math.max(0, J.width - J.right))),
744
+ children: /* @__PURE__ */ S(y, {
745
+ value: G ? H : null,
746
+ onValueChange: (e) => K(e ?? w),
747
+ min: w[0],
748
+ max: w[1],
749
+ step: Vt,
750
+ describe: (e) => `${X(e[0] - w[0])} to ${X(e[1] - w[0])}`,
751
+ label: `${F} zoom minimap`,
752
+ left: 0,
753
+ width: ht,
754
+ height: Fe,
755
+ children: /* @__PURE__ */ S("svg", {
756
+ "aria-hidden": !0,
757
+ height: Fe,
758
+ viewBox: `0 0 ${ht} ${Fe}`,
759
+ preserveAspectRatio: "none",
760
+ className: "x1lliihq xh8yej3 x5kalc8 x87ps6o",
761
+ children: Q.map((e) => {
762
+ let t = gt.position(e.span.start), r = Math.max(t + 2, gt.position(e.span.end)), i = Le + (n.length > 1 ? e.laneIndex / (n.length - 1) : L) * 26;
763
+ return /* @__PURE__ */ S("rect", {
764
+ x: t,
765
+ y: i,
766
+ width: Math.max(2, r - t),
767
+ height: Ie,
768
+ rx: Ke,
769
+ ...b.props(B.minimapBar(p[e.tone]))
770
+ }, `mini-${e.span.id}`);
771
+ })
772
+ })
773
+ })
774
+ }),
775
+ /* @__PURE__ */ S("div", {
776
+ onWheel: At,
777
+ onPointerDown: jt,
778
+ onPointerMove: Mt,
779
+ onPointerUp: Nt,
780
+ onPointerCancel: Pt,
781
+ onKeyDown: Ft,
782
+ onDoubleClick: () => {
783
+ $ !== void 0 && j !== void 0 && j($.span);
784
+ },
785
+ ...{
786
+ 0: { className: "x1n2onr6 xeuugli x1t137rt" },
787
+ 2: { className: "x1n2onr6 xeuugli x1t137rt x1jm3nie" },
788
+ 1: { className: "x1n2onr6 xeuugli x1t137rt xi9pz9s x87ps6o" },
789
+ 3: { className: "x1n2onr6 xeuugli x1t137rt xi9pz9s x87ps6o" }
790
+ }[!!G << 1 | !!tt],
791
+ children: /* @__PURE__ */ C(se, {
792
+ plotRef: I.ref,
793
+ box: J,
794
+ label: a({
795
+ title: F,
796
+ marks: "spans",
797
+ isSelectable: k !== void 0
798
+ }),
799
+ readoutId: je,
800
+ overlay: l ? /* @__PURE__ */ S(nt, {
801
+ mark: c,
802
+ box: J
803
+ }) : void 0,
804
+ children: [
805
+ Y.map((e, t) => t % 2 == 1 ? /* @__PURE__ */ S("rect", {
806
+ x: J.left,
807
+ y: e.start,
808
+ width: J.innerWidth,
809
+ height: e.end - e.start,
810
+ className: "x2wnxhi x6b6j1m x47corl"
811
+ }, `band-${e.lane.id}`) : null),
812
+ /* @__PURE__ */ S(ae, {
813
+ box: J,
814
+ xTicks: St,
815
+ yTicks: yt,
816
+ xTitle: ye,
817
+ grid: "x"
818
+ }),
819
+ Y.slice(1).map((e) => /* @__PURE__ */ S("line", {
820
+ x1: J.left,
821
+ x2: J.right,
822
+ y1: e.start,
823
+ y2: e.start,
824
+ ...b.props(ne.grid, B.separator)
825
+ }, e.lane.id)),
826
+ /* @__PURE__ */ C(le, {
827
+ box: J,
828
+ children: [
829
+ Y.map((e) => Array.from({ length: e.rowCount }, (t, n) => /* @__PURE__ */ S("rect", {
830
+ x: J.left,
831
+ y: e.start + 6 + n * 26 + 8 * L,
832
+ width: J.innerWidth,
833
+ height: 18,
834
+ rx: Ke,
835
+ className: "xzmcrz1 xbd1tli x47corl"
836
+ }, `track-${e.lane.id}-${n}`))),
837
+ Q.map((e) => {
838
+ if (!e.isVisible) return null;
839
+ let t = Math.max(4, e.x2 - e.x1);
840
+ return /* @__PURE__ */ S(oe, {
841
+ mark: e.span.id,
842
+ x: e.x1,
843
+ y: e.y - 18 * L,
844
+ width: t,
845
+ height: 18,
846
+ rx: Ke,
847
+ tone: e.tone,
848
+ emphasis: e.isEmphasized ? "normal" : "receded",
849
+ isInspected: i === e.span.id,
850
+ isSelected: O === e.span.id
851
+ }, e.span.id);
852
+ }),
853
+ (me ?? []).map((e) => {
854
+ let t = Et.get(e.fromSpanId), n = Et.get(e.toSpanId);
855
+ if (t === void 0 || n === void 0) return null;
856
+ let r = Math.min(t.rawX1, n.rawX1);
857
+ if (Math.max(t.rawX2, n.rawX2) < J.left - 4 || r > J.right + 4) return null;
858
+ let i = Me({
859
+ from: {
860
+ x1: t.rawX1,
861
+ x2: t.rawX2,
862
+ y: t.y
863
+ },
864
+ to: {
865
+ x1: n.rawX1,
866
+ x2: n.rawX2,
867
+ y: n.y
868
+ }
869
+ }), a = p[e.tone ?? "positive"], o = Z === null ? t.isEmphasized || n.isEmphasized : Z.has(e.fromSpanId) || Z.has(e.toSpanId);
870
+ return /* @__PURE__ */ C("g", {
871
+ ...b.props(ne.emphasis, B.linkGroup, !o && B.linkGroupReceded),
872
+ children: [
873
+ e.label !== void 0 && e.label.length > 0 && /* @__PURE__ */ S("title", { children: e.label }),
874
+ /* @__PURE__ */ S("path", {
875
+ d: i.path,
876
+ stroke: a,
877
+ className: "xbh8q5q xhr4kjn x1owpc8m x1f6yumg x13efnbd"
878
+ }),
879
+ /* @__PURE__ */ S("path", {
880
+ d: i.arrowPath,
881
+ fill: a,
882
+ className: "xeutv01"
883
+ })
884
+ ]
885
+ }, e.id);
886
+ })
887
+ ]
888
+ }),
889
+ l && /* @__PURE__ */ S("line", {
890
+ x1: c.x1,
891
+ x2: c.x1,
892
+ y1: J.top,
893
+ y2: J.bottom,
894
+ className: "xhq4mlf x17ub4bw xnpr05h x47corl x13efnbd"
895
+ }),
896
+ s !== void 0 && s.isVisible && /* @__PURE__ */ S(m, {
897
+ x: (s.x1 + s.x2) * L,
898
+ top: J.top,
899
+ bottom: J.bottom,
900
+ width: ze
901
+ })
902
+ ]
903
+ })
904
+ }),
905
+ Bt,
906
+ /* @__PURE__ */ S(g, {
907
+ label: `${F} spans`,
908
+ columns: [{
909
+ id: "span",
910
+ label: "Span"
911
+ }],
912
+ rows: Dt.map((e) => ({
913
+ id: e.id,
914
+ values: [e.label]
915
+ }))
916
+ })
917
+ ]
918
+ })
919
+ });
920
+ }
921
+ });
922
+ }
923
+ export { w as n, V as t };