@overdoser/react-toolkit 0.11.0 → 0.12.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.
@@ -1,742 +1,798 @@
1
- import { jsx as l, jsxs as a, Fragment as P } from "react/jsx-runtime";
2
- import { forwardRef as ul, useRef as p, useState as v, useEffect as ae, useCallback as ie, useLayoutEffect as ml, useMemo as Ct } from "react";
1
+ import { jsx as t, jsxs as a, Fragment as P } from "react/jsx-runtime";
2
+ import { forwardRef as vt, useRef as p, useState as f, useEffect as ae, useCallback as ie, useLayoutEffect as Nt, useMemo as Bl } from "react";
3
3
  import c from "clsx";
4
4
  import i from "./Timeline.module.scss.js";
5
- import t from "./TraceTimeline.module.scss.js";
6
- import { fmtDateISO as be, fmtClockUTC as A, fmtISO as V, ticks as hl, tickSubdiv as pl, TL_COLORS as S, fmtDur as we, eventMatches as fl, tint as D, TIMELINE_PALETTE_VARS as Tt } from "./timelineCore.js";
7
- import { traceChipWidth as gl, layoutTraceBand as vl } from "./traceLayout.js";
8
- import { TimelineSummary as Nl, TimelineZoomControls as yl, TimelineLegend as bl, HighlightText as kt, TimelineTooltip as wl } from "./TimelineShared.js";
9
- import { useNowTicker as xl, useContainerWidth as Sl, useTimelinePan as Cl, useWheelZoom as Tl, animateScrollTo as Mt } from "./useTimeline.js";
10
- import { CopyButton as xe } from "../ActionButton/CopyButton.js";
11
- const N = 84, Lt = 24, F = 400, kl = 51, Se = 300, Il = ul(
12
- function(Bt, Rt) {
5
+ import l from "./TraceTimeline.module.scss.js";
6
+ import { fmtDateISO as we, fmtClockUTC as z, fmtISO as A, ticks as yt, tickSubdiv as bt, TL_COLORS as S, fmtDur as xe, eventMatches as wt, tint as D, TIMELINE_PALETTE_VARS as Hl } from "./timelineCore.js";
7
+ import { traceChipWidth as xt, layoutTraceBand as St } from "./traceLayout.js";
8
+ import { TimelineSummary as Ct, TimelineZoomControls as kt, TimelineLegend as Tt, HighlightText as El, TimelineResizer as Qe, TimelineTooltip as Mt } from "./TimelineShared.js";
9
+ import { useNowTicker as Rt, useContainerWidth as Lt, useTimelinePan as Bt, useWheelZoom as Ht, animateScrollTo as Pl, wheelZoomAllowed as Et } from "./useTimeline.js";
10
+ import { CopyButton as Se } from "../ActionButton/CopyButton.js";
11
+ const N = 84, Dl = 24, F = 400, Pt = 51, Ce = 300, Jt = vt(
12
+ function(Wl, ql) {
13
13
  const {
14
14
  events: u,
15
- title: Ce,
15
+ title: ke,
16
16
  meta: Te,
17
- highlight: ke,
18
- defaultHighlight: Ht,
19
- onHighlightChange: Et,
20
- showSearch: Pt = !0,
21
- renderSearch: Ze,
22
- services: _e,
23
- serviceColors: Dt,
24
- compactRows: qt = !1,
25
- showGridlines: Ot = !0,
26
- showControls: Ye = !0,
27
- showLegend: Wt = !0,
17
+ highlight: Me,
18
+ defaultHighlight: Ol,
19
+ onHighlightChange: Il,
20
+ showSearch: zl = !0,
21
+ renderSearch: el,
22
+ services: ll,
23
+ serviceColors: Al,
24
+ compactRows: Fl = !1,
25
+ showGridlines: Vl = !0,
26
+ showControls: tl = !0,
27
+ wheelZoom: Re = "ctrl",
28
+ showLegend: Ul = !0,
28
29
  showSummary: re = !0,
29
- summaryPlacement: R = "bubble",
30
- summaryDefaultPosition: It,
30
+ summaryPlacement: B = "bubble",
31
+ summaryDefaultPosition: $l,
31
32
  showDock: C = !0,
32
- defaultDock: At = null,
33
- maxHeight: Vt = "80vh",
34
- minHeight: Ft = 420,
35
- selectedEventId: U,
36
- defaultSelectedEventId: Qe = null,
37
- onEventSelect: Ut,
38
- renderChip: et,
39
- renderTooltip: Me,
40
- renderDetails: Le,
33
+ defaultDock: Jl = null,
34
+ maxHeight: Kl = "80vh",
35
+ minHeight: Xl = 420,
36
+ selectedEventId: V,
37
+ defaultSelectedEventId: sl = null,
38
+ onEventSelect: Zl,
39
+ renderChip: nl,
40
+ renderTooltip: Le,
41
+ renderDetails: Be,
41
42
  classes: m,
42
- className: zt,
43
- style: $t
44
- } = Bt, f = p(null), [tt, lt] = v(null), [nt, st] = v(!0), [y, Be] = v(null), [Jt, at] = v(null), [H, Re] = v(null), [z, it] = v(null), [Kt, Xt] = v(null), [jt, Gt] = v(null), rt = p(!1), [Zt, _t] = v(Qe), g = U !== void 0 ? U : Zt, [x, $] = v(
45
- () => C ? At ?? ((U !== void 0 ? U : Qe) != null ? "details" : null) : null
46
- ), ct = p(g);
43
+ className: jl,
44
+ style: Gl
45
+ } = Wl, g = p(null), [al, il] = f(null), [rl, cl] = f(!0), [y, He] = f(null), [_l, ol] = f(null), [H, Ee] = f(null), [U, dl] = f(null), [Yl, Ql] = f(null), [et, lt] = f(null), ul = p(!1), [tt, st] = f(sl), v = V !== void 0 ? V : tt, [x, $] = f(
46
+ () => C ? Jl ?? ((V !== void 0 ? V : sl) != null ? "details" : null) : null
47
+ ), [ce, ml] = f(360), [hl, nt] = f(420), pl = p(v);
47
48
  ae(() => {
48
- g != null && g !== ct.current && C && x == null && $("details"), ct.current = g;
49
- }, [g, C, x]);
50
- const [ce, Yt] = v({ l: 0, w: 0 }), ot = p(re);
51
- ot.current = re;
52
- const He = ie(() => {
53
- const e = f.current;
54
- e && Yt(
55
- (n) => n.l === e.scrollLeft && n.w === e.clientWidth ? n : { l: e.scrollLeft, w: e.clientWidth }
49
+ v != null && v !== pl.current && C && x == null && $("details"), pl.current = v;
50
+ }, [v, C, x]);
51
+ const [oe, at] = f({ l: 0, w: 0 }), fl = p(re);
52
+ fl.current = re;
53
+ const Pe = ie(() => {
54
+ const e = g.current;
55
+ e && at(
56
+ (s) => s.l === e.scrollLeft && s.w === e.clientWidth ? s : { l: e.scrollLeft, w: e.clientWidth }
56
57
  );
57
58
  }, []);
58
59
  ae(() => {
59
- re && He();
60
+ re && Pe();
60
61
  });
61
- const [J, Qt] = v({ l: 0, w: 2e3 }), Ee = p(J);
62
- Ee.current = J;
63
- const Pe = ie(() => {
64
- const e = f.current;
62
+ const [J, it] = f({ l: 0, w: 2e3 }), De = p(J);
63
+ De.current = J;
64
+ const We = ie(() => {
65
+ const e = g.current;
65
66
  if (!e) return;
66
- const n = Math.floor(e.scrollLeft / F) * F, s = (Math.ceil((e.clientWidth || 1600) / F) + 1) * F;
67
- (n !== Ee.current.l || s !== Ee.current.w) && Qt({ l: n, w: s });
68
- }, []), dt = u.some((e) => e.end == null), M = xl(dt, 400), oe = Sl(f), K = Cl(f), X = p(null), j = p(null), ut = p(null), [el, mt] = v(null), G = p(null);
67
+ const s = Math.floor(e.scrollLeft / F) * F, n = (Math.ceil((e.clientWidth || 1600) / F) + 1) * F;
68
+ (s !== De.current.l || n !== De.current.w) && it({ l: s, w: n });
69
+ }, []), gl = u.some((e) => e.end == null), M = Rt(gl, 400), de = Lt(g), K = Bt(g), X = p(null), Z = p(null), vl = p(null), [rt, Nl] = f(null), j = p(null);
69
70
  ae(
70
71
  () => () => {
71
- G.current && clearTimeout(G.current);
72
+ j.current && clearTimeout(j.current);
72
73
  },
73
74
  []
74
75
  );
75
- const [tl, ll] = v(Ht ?? ""), De = ke !== void 0 ? ke : tl, B = De.trim(), ht = (e) => {
76
- ke === void 0 && ll(e), Et?.(e);
77
- }, pt = Ze ? Ze({ value: De, setValue: ht }) : Pt ? /* @__PURE__ */ l(
76
+ const [ct, ot] = f(Ol ?? ""), qe = Me !== void 0 ? Me : ct, L = qe.trim(), yl = (e) => {
77
+ Me === void 0 && ot(e), Il?.(e);
78
+ }, bl = el ? el({ value: qe, setValue: yl }) : zl ? /* @__PURE__ */ t(
78
79
  "input",
79
80
  {
80
81
  className: c(i.searchInput, m?.search),
81
82
  placeholder: "Highlight keyword in events…",
82
83
  "aria-label": "Highlight keyword",
83
- value: De,
84
- onChange: (e) => ht(e.target.value)
84
+ value: qe,
85
+ onChange: (e) => yl(e.target.value)
85
86
  }
86
- ) : null, q = (e) => e.op || e.requestId || e.reqHeaders && e.reqHeaders["x-request-id"] || e.id, Z = (e) => e.source || "client";
87
+ ) : null, W = (e) => e.op || e.requestId || e.reqHeaders && e.reqHeaders["x-request-id"] || e.id, G = (e) => e.source || "client";
87
88
  let d, _;
88
89
  u.length ? (d = Math.min(...u.map((e) => e.start)), _ = Math.max(d + 1e3, ...u.map((e) => e.end ?? M))) : (d = M - 3e4, _ = M + 5e3);
89
- const qe = (_ - d) * 0.03;
90
- d -= qe, _ += qe;
91
- const Oe = _ - d, ft = Math.max(240, oe - N - Lt), de = Math.max(ft * 0.45, ft - 210) / Oe, b = nt || !tt ? de : tt, We = p(de), O = p(b), Ie = p(d), Ae = p(1e9);
92
- We.current = de, O.current = b, Ie.current = d;
93
- const ue = p(null);
94
- ml(() => {
95
- ue.current != null && f.current && (f.current.scrollLeft = ue.current, ue.current = null), Pe();
90
+ const Oe = (_ - d) * 0.03;
91
+ d -= Oe, _ += Oe;
92
+ const Ie = _ - d, wl = Math.max(240, de - N - Dl), ue = Math.max(wl * 0.45, wl - 210) / Ie, b = rl || !al ? ue : al, ze = p(ue), q = p(b), Ae = p(d), Fe = p(1e9);
93
+ ze.current = ue, q.current = b, Ae.current = d;
94
+ const me = p(null);
95
+ Nt(() => {
96
+ me.current != null && g.current && (g.current.scrollLeft = me.current, me.current = null), We();
96
97
  });
97
- const Ve = ie((e, n) => {
98
- const s = f.current;
99
- if (!s) return;
100
- const h = O.current || 1e-3, o = Math.max(We.current ? We.current * 0.2 : 1e-7, Math.min(10, h * e)), w = (s.scrollLeft + n - N) / h;
101
- ue.current = w * o + N - n, st(!1), lt(o);
98
+ const Ve = ie((e, s) => {
99
+ const n = g.current;
100
+ if (!n) return;
101
+ const h = q.current || 1e-3, o = Math.max(ze.current ? ze.current * 0.2 : 1e-7, Math.min(10, h * e)), w = (n.scrollLeft + s - N) / h;
102
+ me.current = w * o + N - s, cl(!1), il(o);
102
103
  }, []);
103
- Tl(f, (e) => {
104
+ Ht(g, (e) => {
105
+ if (!Et(Re, e)) return;
104
106
  e.preventDefault();
105
- const n = f.current;
106
- n && Ve(
107
+ const s = g.current;
108
+ s && Ve(
107
109
  Math.exp(-(e.deltaY || e.deltaX) * 22e-4),
108
- e.clientX - n.getBoundingClientRect().left
110
+ e.clientX - s.getBoundingClientRect().left
109
111
  );
110
112
  });
111
- const Fe = p(null), nl = ie(() => {
112
- Fe.current == null && (Fe.current = requestAnimationFrame(() => {
113
- Fe.current = null;
114
- const e = f.current;
115
- if (!e || !O.current) return;
116
- const n = Ie.current + Math.max(0, e.scrollLeft + 117 - N) / O.current;
117
- Xt(be(n)), Gt(rt.current ? A(n) : null), Pe(), ot.current && He();
118
- }));
119
- }, [He, Pe]), Ue = p(null), sl = ie((e) => {
120
- const n = e.clientX;
113
+ const Ue = p(null), dt = ie(() => {
121
114
  Ue.current == null && (Ue.current = requestAnimationFrame(() => {
122
115
  Ue.current = null;
123
- const s = f.current;
124
- if (!s) return;
125
- const h = s.getBoundingClientRect(), o = n - h.left + s.scrollLeft;
126
- if (o < N + 5 || !O.current) {
127
- Re(null);
116
+ const e = g.current;
117
+ if (!e || !q.current) return;
118
+ const s = Ae.current + Math.max(0, e.scrollLeft + 117 - N) / q.current;
119
+ Ql(we(s)), lt(ul.current ? z(s) : null), We(), fl.current && Pe();
120
+ }));
121
+ }, [Pe, We]), $e = p(null), ut = ie((e) => {
122
+ const s = e.clientX;
123
+ $e.current == null && ($e.current = requestAnimationFrame(() => {
124
+ $e.current = null;
125
+ const n = g.current;
126
+ if (!n) return;
127
+ const h = n.getBoundingClientRect(), o = s - h.left + n.scrollLeft;
128
+ if (o < N + 5 || !q.current) {
129
+ Ee(null);
128
130
  return;
129
131
  }
130
- const w = Ie.current + (o - N) / O.current, k = Math.max(88, Math.min(Math.round(o), Ae.current - 88));
131
- Re({ left: Math.round(o), chipLeft: k, label: V(w, !0), t: w });
132
+ const w = Ae.current + (o - N) / q.current, T = Math.max(88, Math.min(Math.round(o), Fe.current - 88));
133
+ Ee({ left: Math.round(o), chipLeft: T, label: A(w, !0), t: w });
132
134
  }));
133
- }, []), me = (e) => {
134
- U === void 0 && _t(e ? e.id : null), Ut?.(e);
135
- }, ze = Ct(() => {
135
+ }, []), he = (e) => {
136
+ V === void 0 && st(e ? e.id : null), Zl?.(e);
137
+ }, Je = Bl(() => {
136
138
  const e = [];
137
- return (_e || []).forEach((n) => {
138
- u.some((s) => s.service === n) && e.push(n);
139
- }), u.forEach((n) => {
140
- e.includes(n.service) || e.push(n.service);
139
+ return (ll || []).forEach((s) => {
140
+ u.some((n) => n.service === s) && e.push(s);
141
+ }), u.forEach((s) => {
142
+ e.includes(s.service) || e.push(s.service);
141
143
  }), e;
142
- }, [u, _e]), L = {};
143
- ze.forEach((e, n) => {
144
- L[e] = Tt[n % Tt.length];
145
- }), Object.assign(L, Dt);
146
- const gt = qt, vt = gt ? 20 : 26, al = gt ? 60 : 66, il = u.map((e) => ({
144
+ }, [u, ll]), R = {};
145
+ Je.forEach((e, s) => {
146
+ R[e] = Hl[s % Hl.length];
147
+ }), Object.assign(R, Al);
148
+ const xl = Fl, Sl = xl ? 20 : 26, mt = xl ? 60 : 66, ht = u.map((e) => ({
147
149
  id: e.id,
148
150
  left: Math.round(N + (e.start - d) * b),
149
151
  width: Math.round(Math.max(12, ((e.end ?? M) - e.start) * b)),
150
- labelW: gl(Z(e), e.service, String(q(e)))
151
- })), he = vl(il, {
152
- barH: vt,
153
- rowH: al,
154
- chipH: kl,
155
- minH: Ft
156
- }), pe = new Map(he.items.map((e) => [e.id, e])), $e = Math.ceil(Math.max(N + Oe * b + Lt + 60, he.maxExt + 26));
157
- Ae.current = $e;
158
- const rl = d + ($e - N) / b, Y = Math.max(d, d + (J.l - F - N) / b), fe = Math.min(rl, d + (J.l + J.w + F - N) / b), E = hl(Y, fe, Math.max(1, (fe - Y) * b), 64), ge = E.step < 1e3;
159
- rt.current = ge;
160
- const Je = [], Nt = Math.max(d, (E.list.length ? E.list[0].t : Y) - E.step);
161
- let yt = be(Nt), bt = A(Nt);
152
+ labelW: xt(G(e), e.service, String(W(e)))
153
+ })), pe = St(ht, {
154
+ barH: Sl,
155
+ rowH: mt,
156
+ chipH: Pt,
157
+ minH: Xl
158
+ }), fe = new Map(pe.items.map((e) => [e.id, e])), Ke = Math.ceil(Math.max(N + Ie * b + Dl + 60, pe.maxExt + 26));
159
+ Fe.current = Ke;
160
+ const pt = d + (Ke - N) / b, Y = Math.max(d, d + (J.l - F - N) / b), ge = Math.min(pt, d + (J.l + J.w + F - N) / b), E = yt(Y, ge, Math.max(1, (ge - Y) * b), 64), ve = E.step < 1e3;
161
+ ul.current = ve;
162
+ const Xe = [], Cl = Math.max(d, (E.list.length ? E.list[0].t : Y) - E.step);
163
+ let kl = we(Cl), Tl = z(Cl);
162
164
  E.list.forEach((e) => {
163
- const n = be(e.t), s = A(e.t);
164
- Je.push({
165
+ const s = we(e.t), n = z(e.t);
166
+ Xe.push({
165
167
  left: Math.round(N + (e.t - d) * b),
166
- date: n !== yt ? n : null,
167
- time: !ge || s !== bt ? s : null,
168
- sub: ge ? "." + String(new Date(e.t).getUTCMilliseconds()).padStart(3, "0") : null
169
- }), yt = n, bt = s;
168
+ date: s !== kl ? s : null,
169
+ time: !ve || n !== Tl ? n : null,
170
+ sub: ve ? "." + String(new Date(e.t).getUTCMilliseconds()).padStart(3, "0") : null
171
+ }), kl = s, Tl = n;
170
172
  });
171
- const wt = [], W = pl(E.step);
172
- if (W.parts > 1) {
173
- const e = E.step / W.parts;
174
- if ((fe - Y) / e < 2e3)
175
- for (let n = Math.ceil(Y / e); n * e <= fe; n++)
176
- n % W.parts !== 0 && wt.push({
177
- left: Math.round(N + (n * e - d) * b),
178
- medium: W.medium > 0 && n % W.parts === W.medium
173
+ const Ml = [], O = bt(E.step);
174
+ if (O.parts > 1) {
175
+ const e = E.step / O.parts;
176
+ if ((ge - Y) / e < 2e3)
177
+ for (let s = Math.ceil(Y / e); s * e <= ge; s++)
178
+ s % O.parts !== 0 && Ml.push({
179
+ left: Math.round(N + (s * e - d) * b),
180
+ medium: O.medium > 0 && s % O.parts === O.medium
179
181
  });
180
182
  }
181
- const Ke = H ? H.t : null, r = g != null && u.find((e) => e.id === g) || null;
183
+ const Ze = H ? H.t : null, r = v != null && u.find((e) => e.id === v) || null;
182
184
  ae(() => {
183
185
  const e = X.current;
184
186
  if (e == null) return;
185
- const n = f.current;
186
- if (!n) {
187
+ const s = g.current;
188
+ if (!s) {
187
189
  X.current = null;
188
190
  return;
189
191
  }
190
- if (n.clientWidth && n.clientWidth !== oe) return;
192
+ if (s.clientWidth && s.clientWidth !== de) return;
191
193
  X.current = null;
192
- const s = pe.get(e);
193
- s && Mt(n, { left: Math.max(0, s.left + s.width / 2 - n.clientWidth / 2) });
194
+ const n = fe.get(e);
195
+ n && Pl(s, { left: Math.max(0, n.left + n.width / 2 - s.clientWidth / 2) });
194
196
  }), ae(() => {
195
- const e = j.current;
197
+ const e = Z.current;
196
198
  if (e == null) return;
197
- const n = ut.current;
198
- if (!n) return;
199
- j.current = null;
200
- const s = typeof CSS < "u" && typeof CSS.escape == "function" ? CSS.escape(e) : e.replace(/"/g, '\\"'), h = n.querySelector(`[data-crk-log-id="${s}"]`);
199
+ const s = vl.current;
200
+ if (!s) return;
201
+ Z.current = null;
202
+ const n = typeof CSS < "u" && typeof CSS.escape == "function" ? CSS.escape(e) : e.replace(/"/g, '\\"'), h = s.querySelector(`[data-crk-log-id="${n}"]`);
201
203
  if (!h) return;
202
204
  const o = Math.max(
203
205
  0,
204
- n.scrollTop + h.getBoundingClientRect().top - n.getBoundingClientRect().top - 8
206
+ s.scrollTop + h.getBoundingClientRect().top - s.getBoundingClientRect().top - 8
205
207
  );
206
- Mt(n, { top: o }, 600), mt(e), G.current && clearTimeout(G.current), G.current = setTimeout(() => mt(null), 1200);
208
+ Pl(s, { top: o }, 600), Nl(e), j.current && clearTimeout(j.current), j.current = setTimeout(() => Nl(null), 1200);
207
209
  });
208
- const cl = (e, n) => {
209
- const s = pe.get(e.id);
210
- if (!s) return;
210
+ const ft = (e, s) => {
211
+ const n = fe.get(e.id);
212
+ if (!n) return;
211
213
  const h = e.end == null, o = (e.end ?? M) - e.start;
212
- if (it({
213
- left: s.left,
214
- chipLeft: Math.max(88, Math.min(s.left, Ae.current - 88)),
215
- label: V(e.start, !0)
216
- }), at(e.id), g === e.id) return;
217
- const w = f.current, k = w ? w.getBoundingClientRect() : { left: 0 }, ee = w ? w.scrollLeft : 0, ve = window.innerWidth || 1200, te = window.innerHeight || 800, Ne = s.showLabel ? s.labelW : 0, le = s.showLabel ? s.labelX : s.left, Ge = k.left - ee + Math.min(s.left, le), ne = k.left - ee + Math.max(s.left + s.width, le + Ne), se = n.currentTarget.getBoundingClientRect();
218
- let T = ne + 28, ye = Math.max(95, Math.min(n.clientY, te - 120));
219
- T + Se > ve - 12 && (T = Ge - Se - 28), T < 12 && (T = Math.max(12, Math.min(ve - Se - 12, n.clientX - Se / 2)), ye = se.bottom + 108, ye > te - 95 && (ye = Math.max(95, se.top - 108))), Be({
214
+ if (dl({
215
+ left: n.left,
216
+ chipLeft: Math.max(88, Math.min(n.left, Fe.current - 88)),
217
+ label: A(e.start, !0)
218
+ }), ol(e.id), v === e.id) return;
219
+ const w = g.current, T = w ? w.getBoundingClientRect() : { left: 0 }, ee = w ? w.scrollLeft : 0, Ne = window.innerWidth || 1200, le = window.innerHeight || 800, ye = n.showLabel ? n.labelW : 0, te = n.showLabel ? n.labelX : n.left, Ye = T.left - ee + Math.min(n.left, te), se = T.left - ee + Math.max(n.left + n.width, te + ye), ne = s.currentTarget.getBoundingClientRect();
220
+ let k = se + 28, be = Math.max(95, Math.min(s.clientY, le - 120));
221
+ k + Ce > Ne - 12 && (k = Ye - Ce - 28), k < 12 && (k = Math.max(12, Math.min(Ne - Ce - 12, s.clientX - Ce / 2)), be = ne.bottom + 108, be > le - 95 && (be = Math.max(95, ne.top - 108))), He({
220
222
  id: e.id,
221
- x: T,
222
- y: ye,
223
- rid: String(q(e)),
224
- route: Z(e) + " → " + e.service,
223
+ x: k,
224
+ y: be,
225
+ rid: String(W(e)),
226
+ route: G(e) + " → " + e.service,
225
227
  label: e.label || (e.method || "GET") + " " + (e.url ? e.url.replace(/^https?:\/\/[^/]+/, "") : e.id),
226
- time: V(e.start, !0),
227
- durLine: h ? "in flight · " + we(o) + " so far" : we(o) + " · status " + (e.status ?? "—"),
228
+ time: A(e.start, !0),
229
+ durLine: h ? "in flight · " + xe(o) + " so far" : xe(o) + " · status " + (e.status ?? "—"),
228
230
  url: e.url || ""
229
231
  });
230
- }, ol = () => {
231
- Be(null), it(null), at(null);
232
- }, Xe = (e) => Object.entries(e || {}).map(([n, s]) => ({ k: n, v: String(s) })), I = r ? r.end == null : !1, xt = C ? x === "details" : r != null, dl = C && x === "log", je = () => {
233
- me(null), C && $(null);
234
- }, St = Ct(() => u.slice().sort((e, n) => e.start - n.start), [u]), Q = re ? /* @__PURE__ */ l(
235
- Nl,
232
+ }, gt = () => {
233
+ He(null), dl(null), ol(null);
234
+ }, je = (e) => Object.entries(e || {}).map(([s, n]) => ({ k: s, v: String(n) })), I = r ? r.end == null : !1, Ge = C ? x === "details" : r != null, Rl = C && x === "log", _e = () => {
235
+ he(null), C && $(null);
236
+ }, Ll = Bl(() => u.slice().sort((e, s) => e.start - s.start), [u]), Q = re ? /* @__PURE__ */ t(
237
+ Ct,
236
238
  {
237
239
  className: m?.summary,
238
- placement: R,
239
- floatingDefaultPosition: It,
240
- bubbleGlyphColors: ze.slice(0, 3).map((e) => L[e]),
241
- items: St.map((e, n) => {
242
- const s = pe.get(e.id);
240
+ placement: B,
241
+ floatingDefaultPosition: $l,
242
+ bubbleGlyphColors: Je.slice(0, 3).map((e) => R[e]),
243
+ items: Ll.map((e, s) => {
244
+ const n = fe.get(e.id);
243
245
  return {
244
246
  id: e.id,
245
- number: String(n + 1).padStart(2, "0"),
246
- label: String(q(e)),
247
- color: L[e.service] || S.body,
248
- time: A(e.start),
249
- inView: !s || !ce.w ? !0 : s.left < ce.l + ce.w && s.left + s.width > ce.l,
250
- selected: g === e.id
247
+ number: String(s + 1).padStart(2, "0"),
248
+ label: String(W(e)),
249
+ color: R[e.service] || S.body,
250
+ time: z(e.start),
251
+ inView: !n || !oe.w ? !0 : n.left < oe.l + oe.w && n.left + n.width > oe.l,
252
+ selected: v === e.id
251
253
  };
252
254
  }),
253
255
  onPick: (e) => {
254
- const n = u.find((s) => s.id === e);
255
- n && (me(n), x === "log" && (j.current = e)), X.current = e;
256
+ const s = u.find((n) => n.id === e);
257
+ s && (he(s), x === "log" && (Z.current = e)), X.current = e;
256
258
  }
257
259
  }
258
260
  ) : null;
259
- return /* @__PURE__ */ a("div", { ref: Rt, className: c(i.root, m?.root, zt), style: $t, children: [
260
- (Ye || pt || Ce != null || Te != null) && /* @__PURE__ */ a("div", { className: c(i.toolbar, m?.toolbar), children: [
261
+ return /* @__PURE__ */ a("div", { ref: ql, className: c(i.root, m?.root, jl), style: Gl, children: [
262
+ (tl || bl || ke != null || Te != null) && /* @__PURE__ */ a("div", { className: c(i.toolbar, m?.toolbar), children: [
261
263
  /* @__PURE__ */ a("div", { className: i.toolbarText, children: [
262
- Ce != null && /* @__PURE__ */ l("span", { className: i.toolbarTitle, children: Ce }),
263
- /* @__PURE__ */ l("span", { className: i.toolbarMeta, children: Te ?? (u.length ? `${u.length} events · span ${we(Oe - 2 * qe)} · times in UTC` : "No events") })
264
+ ke != null && /* @__PURE__ */ t("span", { className: i.toolbarTitle, children: ke }),
265
+ /* @__PURE__ */ t("span", { className: i.toolbarMeta, children: Te ?? (u.length ? `${u.length} events · span ${xe(Ie - 2 * Oe)} · times in UTC` : "No events") })
264
266
  ] }),
265
- pt,
266
- Ye && /* @__PURE__ */ l(
267
- yl,
267
+ bl,
268
+ tl && /* @__PURE__ */ t(
269
+ kt,
268
270
  {
269
- zoomPct: `${Math.round(b / de * 100)}%`,
270
- fitActive: nt,
271
- onZoomIn: () => Ve(1.5, oe / 2),
272
- onZoomOut: () => Ve(1 / 1.5, oe / 2),
271
+ zoomPct: `${Math.round(b / ue * 100)}%`,
272
+ fitActive: rl,
273
+ onZoomIn: () => Ve(1.5, de / 2),
274
+ onZoomOut: () => Ve(1 / 1.5, de / 2),
273
275
  onFit: () => {
274
- st(!0), lt(null);
276
+ cl(!0), il(null);
275
277
  },
276
- hint: "scroll zooms · drag pans"
278
+ hint: Re === "none" ? "drag pans" : (Re === "ctrl" ? "Ctrl+scroll zooms" : "scroll zooms") + " · drag pans"
277
279
  }
278
280
  )
279
281
  ] }),
280
- Wt && /* @__PURE__ */ l(
281
- bl,
282
+ Ul && /* @__PURE__ */ t(
283
+ Tt,
282
284
  {
283
285
  className: m?.legend,
284
- items: ze.map((e) => ({ name: e, color: L[e] }))
286
+ items: Je.map((e) => ({ name: e, color: R[e] }))
285
287
  }
286
288
  ),
287
- R === "top" && Q,
289
+ B === "top" && Q,
288
290
  /* @__PURE__ */ a("div", { className: i.layout, children: [
289
- R === "left" && Q,
291
+ B === "left" && Q,
290
292
  /* @__PURE__ */ a("div", { className: i.main, children: [
291
- /* @__PURE__ */ l("div", { className: c(i.card, m?.card), children: /* @__PURE__ */ l(
292
- "div",
293
- {
294
- ref: f,
295
- className: c(i.scroller, t.scroller, m?.scroller),
296
- style: { maxHeight: Vt },
297
- onPointerDown: K.onPointerDown,
298
- onPointerMove: K.onPointerMove,
299
- onPointerUp: K.onPointerUp,
300
- onPointerLeave: () => {
301
- K.onPointerUp(), Re(null);
302
- },
303
- onMouseMove: sl,
304
- onScroll: nl,
305
- children: /* @__PURE__ */ a("div", { className: t.inner, style: { width: $e }, children: [
306
- Ot && Je.map((e, n) => /* @__PURE__ */ l("div", { className: t.gridline, style: { left: e.left } }, n)),
307
- dt && /* @__PURE__ */ l(
293
+ /* @__PURE__ */ a("div", { className: i.cardWrap, children: [
294
+ /* @__PURE__ */ t(
295
+ "div",
296
+ {
297
+ className: c(
298
+ i.card,
299
+ (Ge || Rl) && l.cardFlushRight,
300
+ m?.card
301
+ ),
302
+ children: /* @__PURE__ */ t(
308
303
  "div",
309
304
  {
310
- className: t.nowLine,
311
- style: { left: Math.round(N + (M - d) * b) }
312
- }
313
- ),
314
- H && !y && /* @__PURE__ */ l("div", { className: t.cursorLine, style: { left: H.left } }),
315
- z && /* @__PURE__ */ l("div", { className: t.eventLine, style: { left: z.left } }),
316
- /* @__PURE__ */ a("div", { className: c(t.axis, m?.axis), children: [
317
- /* @__PURE__ */ l("div", { className: t.axisDivider }),
318
- /* @__PURE__ */ a("div", { className: t.axisSticky, children: [
319
- /* @__PURE__ */ l("span", { className: t.axisUtc, children: "UTC" }),
320
- /* @__PURE__ */ l("span", { className: t.axisViewDate, children: Kt || (u.length ? be(d) : "") }),
321
- ge && /* @__PURE__ */ l("span", { className: t.axisViewTime, children: jt || A(d) })
322
- ] }),
323
- Je.map((e, n) => /* @__PURE__ */ a("span", { children: [
324
- e.date && /* @__PURE__ */ l("span", { className: t.axisDateLabel, style: { left: e.left }, children: e.date }),
325
- e.time && /* @__PURE__ */ l("span", { className: t.axisTickLabel, style: { left: e.left }, children: e.time }),
326
- e.sub && /* @__PURE__ */ l("span", { className: t.axisSubLabel, style: { left: e.left }, children: e.sub }),
327
- /* @__PURE__ */ l("span", { className: t.axisTickMark, style: { left: e.left } })
328
- ] }, n)),
329
- wt.map((e, n) => /* @__PURE__ */ l(
330
- "span",
331
- {
332
- className: c(t.axisMinorMark, e.medium && t.axisMinorMedium),
333
- style: { left: e.left }
305
+ ref: g,
306
+ className: c(i.scroller, l.scroller, m?.scroller),
307
+ style: { maxHeight: Kl },
308
+ onPointerDown: K.onPointerDown,
309
+ onPointerMove: K.onPointerMove,
310
+ onPointerUp: K.onPointerUp,
311
+ onPointerLeave: () => {
312
+ K.onPointerUp(), Ee(null);
334
313
  },
335
- n
336
- )),
337
- H && !y && /* @__PURE__ */ l("div", { className: t.axisChip, style: { left: H.chipLeft }, children: H.label }),
338
- z && /* @__PURE__ */ a(
339
- "div",
340
- {
341
- className: c(t.axisChip, t.axisChipEvent),
342
- style: { left: z.chipLeft },
343
- children: [
344
- "▸ ",
345
- z.label
346
- ]
347
- }
348
- )
349
- ] }),
350
- /* @__PURE__ */ a("div", { className: t.lane, style: { height: he.h }, children: [
351
- /* @__PURE__ */ l("div", { className: t.axisLine, style: { top: he.axisY } }),
352
- u.map((e) => {
353
- const n = pe.get(e.id);
354
- if (!n) return null;
355
- const s = L[e.service] || S.body, h = e.end == null, o = fl(e, B), w = Ke != null && Ke >= e.start && Ke <= (e.end ?? M), k = Jt === e.id, ee = B && !o ? 0.25 : 1, ve = String(q(e)), te = Z(e), Ne = L[te] || S.body, le = L[e.service] || S.body, Ge = k ? `0 0 0 3px ${D(s, 55)}, 0 4px 14px rgba(35,32,28,.22)` : B && o ? `0 0 0 3px ${S.hlRing}` : g === e.id ? `0 0 0 3px ${S.selectedRing}` : w ? `0 0 0 3px ${D(s, 30)}` : "none", ne = k ? s : w ? S.stemHot : S.stem, se = {
356
- onClick: () => {
357
- if (K.wasDragSuppressed()) return;
358
- Be(null);
359
- const T = g === e.id ? null : e;
360
- me(T), T && x === "log" && (j.current = T.id);
361
- },
362
- onMouseEnter: (T) => cl(e, T),
363
- onMouseLeave: ol
364
- };
365
- return /* @__PURE__ */ a("span", { children: [
366
- n.showLabel && /* @__PURE__ */ a(P, { children: [
367
- n.conn && !n.hconn && /* @__PURE__ */ l(
368
- "div",
369
- {
370
- className: t.stem,
371
- style: {
372
- left: n.left,
373
- top: n.connTop,
374
- height: n.connH,
375
- background: ne
376
- }
377
- }
378
- ),
379
- n.conn && n.hconn && /* @__PURE__ */ a(P, { children: [
380
- /* @__PURE__ */ l(
381
- "div",
382
- {
383
- className: t.stem,
384
- style: {
385
- left: n.left,
386
- top: n.connTop,
387
- height: n.connH,
388
- background: ne
389
- }
390
- }
391
- ),
392
- /* @__PURE__ */ l(
393
- "div",
394
- {
395
- className: t.elbow,
396
- style: {
397
- left: n.hconnLeft,
398
- top: n.hconnTop,
399
- width: n.hconnW,
400
- background: ne
401
- }
402
- }
403
- )
314
+ onMouseMove: ut,
315
+ onScroll: dt,
316
+ children: /* @__PURE__ */ a("div", { className: l.inner, style: { width: Ke }, children: [
317
+ Vl && Xe.map((e, s) => /* @__PURE__ */ t("div", { className: l.gridline, style: { left: e.left } }, s)),
318
+ gl && /* @__PURE__ */ t(
319
+ "div",
320
+ {
321
+ className: l.nowLine,
322
+ style: { left: Math.round(N + (M - d) * b) }
323
+ }
324
+ ),
325
+ H && !y && /* @__PURE__ */ t("div", { className: l.cursorLine, style: { left: H.left } }),
326
+ U && /* @__PURE__ */ t("div", { className: l.eventLine, style: { left: U.left } }),
327
+ /* @__PURE__ */ a("div", { className: c(l.axis, m?.axis), children: [
328
+ /* @__PURE__ */ t("div", { className: l.axisDivider }),
329
+ /* @__PURE__ */ a("div", { className: l.axisSticky, children: [
330
+ /* @__PURE__ */ t("span", { className: l.axisUtc, children: "UTC" }),
331
+ /* @__PURE__ */ t("span", { className: l.axisViewDate, children: Yl || (u.length ? we(d) : "") }),
332
+ ve && /* @__PURE__ */ t("span", { className: l.axisViewTime, children: et || z(d) })
404
333
  ] }),
405
- /* @__PURE__ */ l(
334
+ Xe.map((e, s) => /* @__PURE__ */ a("span", { children: [
335
+ e.date && /* @__PURE__ */ t("span", { className: l.axisDateLabel, style: { left: e.left }, children: e.date }),
336
+ e.time && /* @__PURE__ */ t("span", { className: l.axisTickLabel, style: { left: e.left }, children: e.time }),
337
+ e.sub && /* @__PURE__ */ t("span", { className: l.axisSubLabel, style: { left: e.left }, children: e.sub }),
338
+ /* @__PURE__ */ t("span", { className: l.axisTickMark, style: { left: e.left } })
339
+ ] }, s)),
340
+ Ml.map((e, s) => /* @__PURE__ */ t(
341
+ "span",
342
+ {
343
+ className: c(l.axisMinorMark, e.medium && l.axisMinorMedium),
344
+ style: { left: e.left }
345
+ },
346
+ s
347
+ )),
348
+ H && !y && /* @__PURE__ */ t("div", { className: l.axisChip, style: { left: H.chipLeft }, children: H.label }),
349
+ U && /* @__PURE__ */ a(
406
350
  "div",
407
351
  {
408
- ...se,
409
- className: c(t.chip, m?.chip),
410
- style: {
411
- left: n.labelX,
412
- top: n.labelTop,
413
- opacity: ee,
414
- background: k ? D(s, 7) : B && o ? S.hlWashSoft : void 0,
415
- borderColor: k ? s : B && o ? S.hlBorder : w ? s : void 0,
416
- boxShadow: k ? `0 0 0 2px ${D(s, 40)}, 0 4px 12px rgba(35,32,28,.16)` : "0 1px 2px rgba(35,32,28,.06)"
352
+ className: c(l.axisChip, l.axisChipEvent),
353
+ style: { left: U.chipLeft },
354
+ children: [
355
+ "▸ ",
356
+ U.label
357
+ ]
358
+ }
359
+ )
360
+ ] }),
361
+ /* @__PURE__ */ a("div", { className: l.lane, style: { height: pe.h }, children: [
362
+ /* @__PURE__ */ t("div", { className: l.axisLine, style: { top: pe.axisY } }),
363
+ u.map((e) => {
364
+ const s = fe.get(e.id);
365
+ if (!s) return null;
366
+ const n = R[e.service] || S.body, h = e.end == null, o = wt(e, L), w = Ze != null && Ze >= e.start && Ze <= (e.end ?? M), T = _l === e.id, ee = L && !o ? 0.25 : 1, Ne = String(W(e)), le = G(e), ye = R[le] || S.body, te = R[e.service] || S.body, Ye = T ? `0 0 0 3px ${D(n, 55)}, 0 4px 14px rgba(35,32,28,.22)` : L && o ? `0 0 0 3px ${S.hlRing}` : v === e.id ? `0 0 0 3px ${S.selectedRing}` : w ? `0 0 0 3px ${D(n, 30)}` : "none", se = T ? n : w ? S.stemHot : S.stem, ne = {
367
+ onClick: () => {
368
+ if (K.wasDragSuppressed()) return;
369
+ He(null);
370
+ const k = v === e.id ? null : e;
371
+ he(k), k && x === "log" && (Z.current = k.id);
417
372
  },
418
- children: et ? et(e, {
419
- color: s,
420
- pending: h,
421
- durationMs: (e.end ?? M) - e.start
422
- }) : /* @__PURE__ */ a(P, { children: [
423
- /* @__PURE__ */ a("div", { children: [
424
- /* @__PURE__ */ l(
425
- "span",
373
+ onMouseEnter: (k) => ft(e, k),
374
+ onMouseLeave: gt
375
+ };
376
+ return /* @__PURE__ */ a("span", { children: [
377
+ s.showLabel && /* @__PURE__ */ a(P, { children: [
378
+ s.conn && !s.hconn && /* @__PURE__ */ t(
379
+ "div",
380
+ {
381
+ className: l.stem,
382
+ style: {
383
+ left: s.left,
384
+ top: s.connTop,
385
+ height: s.connH,
386
+ background: se
387
+ }
388
+ }
389
+ ),
390
+ s.conn && s.hconn && /* @__PURE__ */ a(P, { children: [
391
+ /* @__PURE__ */ t(
392
+ "div",
426
393
  {
427
- className: t.chipBadge,
428
- style: { background: D(Ne, 14), color: Ne },
429
- children: te
394
+ className: l.stem,
395
+ style: {
396
+ left: s.left,
397
+ top: s.connTop,
398
+ height: s.connH,
399
+ background: se
400
+ }
430
401
  }
431
402
  ),
432
- /* @__PURE__ */ l("span", { className: t.chipArrow, children: " → " }),
433
- /* @__PURE__ */ l(
434
- "span",
403
+ /* @__PURE__ */ t(
404
+ "div",
435
405
  {
436
- className: t.chipBadge,
437
- style: { background: D(le, 14), color: le },
438
- children: e.service
406
+ className: l.elbow,
407
+ style: {
408
+ left: s.hconnLeft,
409
+ top: s.hconnTop,
410
+ width: s.hconnW,
411
+ background: se
412
+ }
439
413
  }
440
414
  )
441
415
  ] }),
442
- /* @__PURE__ */ l("div", { className: t.chipOp, children: /* @__PURE__ */ l(kt, { text: ve, query: B }) }),
443
- /* @__PURE__ */ l("div", { className: t.chipTime, children: V(e.start, !0) })
444
- ] })
445
- }
446
- )
447
- ] }),
448
- /* @__PURE__ */ l(
449
- "div",
450
- {
451
- ...se,
452
- className: c(t.bar, h && t.barPending, m?.bar),
453
- style: {
454
- left: n.left,
455
- top: n.barTop,
456
- width: n.width,
457
- height: vt,
458
- background: B && o ? S.hlBarBg : D(s, 22),
459
- borderColor: s,
460
- opacity: ee,
461
- boxShadow: Ge
462
- },
463
- children: h && /* @__PURE__ */ l(
464
- "span",
465
- {
466
- className: c(i.pulseDot, t.barDot),
467
- style: { background: s }
468
- }
469
- )
470
- }
471
- )
472
- ] }, e.id);
473
- })
474
- ] })
475
- ] })
476
- }
477
- ) }),
478
- /* @__PURE__ */ l("div", { className: c(i.footnote, m?.footnote), children: "Click an event to open its details in the side panel · dashed pills are still in flight" }),
479
- R === "bubble" && Q
480
- ] }),
481
- xt && r && Le && /* @__PURE__ */ l("aside", { className: c(i.aside, t.drawerCustom, m?.drawer), children: Le(r, { close: je, pending: I }) }),
482
- xt && !(r && Le) && /* @__PURE__ */ a("aside", { className: c(i.aside, C && t.dockAside, m?.drawer), children: [
483
- C && /* @__PURE__ */ a("div", { className: t.dockHead, children: [
484
- /* @__PURE__ */ l("span", { className: t.dockTitle, children: "Event details" }),
485
- /* @__PURE__ */ l("div", { className: t.drawerSpacer }),
486
- /* @__PURE__ */ l(
487
- "button",
488
- {
489
- type: "button",
490
- className: i.asideClose,
491
- "aria-label": "Close details",
492
- onClick: je,
493
- children: "✕"
494
- }
495
- )
496
- ] }),
497
- r ? /* @__PURE__ */ a("div", { className: C ? t.dockScroll : void 0, children: [
498
- /* @__PURE__ */ a("div", { className: t.drawerHead, children: [
499
- /* @__PURE__ */ a("div", { className: t.drawerHeadRow, children: [
500
- /* @__PURE__ */ l("span", { className: t.methodBadge, children: r.method || "—" }),
501
- /* @__PURE__ */ l(
502
- "span",
503
- {
504
- className: c(
505
- t.statusBadge,
506
- I && t.statusPending,
507
- !I && (r.status ?? 0) >= 400 && t.statusError
508
- ),
509
- children: I ? "pending" : String(r.status ?? "—")
510
- }
511
- ),
512
- /* @__PURE__ */ l("span", { className: t.drawerRoute, children: Z(r) + " → " + r.service }),
513
- /* @__PURE__ */ l("div", { className: t.drawerSpacer }),
514
- !C && /* @__PURE__ */ l(
515
- "button",
516
- {
517
- type: "button",
518
- className: i.asideClose,
519
- "aria-label": "Close details",
520
- onClick: je,
521
- children: "✕"
416
+ /* @__PURE__ */ t(
417
+ "div",
418
+ {
419
+ ...ne,
420
+ className: c(l.chip, m?.chip),
421
+ style: {
422
+ left: s.labelX,
423
+ top: s.labelTop,
424
+ opacity: ee,
425
+ background: T ? D(n, 7) : L && o ? S.hlWashSoft : void 0,
426
+ borderColor: T ? n : L && o ? S.hlBorder : w ? n : void 0,
427
+ boxShadow: T ? `0 0 0 2px ${D(n, 40)}, 0 4px 12px rgba(35,32,28,.16)` : "0 1px 2px rgba(35,32,28,.06)"
428
+ },
429
+ children: nl ? nl(e, {
430
+ color: n,
431
+ pending: h,
432
+ durationMs: (e.end ?? M) - e.start
433
+ }) : /* @__PURE__ */ a(P, { children: [
434
+ /* @__PURE__ */ a("div", { children: [
435
+ /* @__PURE__ */ t(
436
+ "span",
437
+ {
438
+ className: l.chipBadge,
439
+ style: { background: D(ye, 14), color: ye },
440
+ children: le
441
+ }
442
+ ),
443
+ /* @__PURE__ */ t("span", { className: l.chipArrow, children: " → " }),
444
+ /* @__PURE__ */ t(
445
+ "span",
446
+ {
447
+ className: l.chipBadge,
448
+ style: { background: D(te, 14), color: te },
449
+ children: e.service
450
+ }
451
+ )
452
+ ] }),
453
+ /* @__PURE__ */ t("div", { className: l.chipOp, children: /* @__PURE__ */ t(El, { text: Ne, query: L }) }),
454
+ /* @__PURE__ */ t("div", { className: l.chipTime, children: A(e.start, !0) })
455
+ ] })
456
+ }
457
+ )
458
+ ] }),
459
+ /* @__PURE__ */ t(
460
+ "div",
461
+ {
462
+ ...ne,
463
+ className: c(l.bar, h && l.barPending, m?.bar),
464
+ style: {
465
+ left: s.left,
466
+ top: s.barTop,
467
+ width: s.width,
468
+ height: Sl,
469
+ background: L && o ? S.hlBarBg : D(n, 22),
470
+ borderColor: n,
471
+ opacity: ee,
472
+ boxShadow: Ye
473
+ },
474
+ children: h && /* @__PURE__ */ t(
475
+ "span",
476
+ {
477
+ className: c(i.pulseDot, l.barDot),
478
+ style: { background: n }
479
+ }
480
+ )
481
+ }
482
+ )
483
+ ] }, e.id);
484
+ })
485
+ ] })
486
+ ] })
522
487
  }
523
488
  )
524
- ] }),
525
- /* @__PURE__ */ l("div", { className: t.drawerUrl, children: r.url || r.label || r.id }),
526
- /* @__PURE__ */ l("div", { className: t.drawerRid, children: String(q(r)) }),
527
- /* @__PURE__ */ l("div", { className: t.drawerXrid, children: r.reqHeaders && r.reqHeaders["x-request-id"] || r.requestId || r.id }),
528
- /* @__PURE__ */ l("div", { className: t.drawerTiming, children: V(r.start, !0) + (I ? " · in flight" : " → " + V(r.end, !0) + " · " + we(r.end - r.start)) })
489
+ }
490
+ ),
491
+ Ge && r && Be && /* @__PURE__ */ a("div", { className: l.dockCol, style: { flexBasis: ce }, children: [
492
+ /* @__PURE__ */ t(
493
+ Qe,
494
+ {
495
+ panel: "right",
496
+ width: ce,
497
+ min: 280,
498
+ max: 640,
499
+ onResize: ml,
500
+ label: "Resize details drawer",
501
+ className: l.dockColResizer
502
+ }
503
+ ),
504
+ /* @__PURE__ */ t("aside", { className: c(i.aside, l.drawerCustom, m?.drawer), children: Be(r, { close: _e, pending: I }) })
529
505
  ] }),
530
- /* @__PURE__ */ a("div", { className: t.drawerBody, children: [
531
- /* @__PURE__ */ l("div", { className: t.drawerSection, children: "Request" }),
532
- !!Object.keys(r.query || {}).length && /* @__PURE__ */ a(P, { children: [
533
- /* @__PURE__ */ l("div", { className: i.asideSection, children: "Query parameters" }),
534
- Xe(r.query).map((e) => /* @__PURE__ */ a("div", { className: t.kvRow, children: [
535
- /* @__PURE__ */ l("span", { className: c(t.kvKey, t.kvKeyQuery), children: e.k }),
536
- /* @__PURE__ */ l("span", { className: t.kvVal, children: e.v })
537
- ] }, e.k))
538
- ] }),
539
- /* @__PURE__ */ l("div", { className: i.asideSection, children: "Headers" }),
540
- Xe(r.reqHeaders).map((e) => /* @__PURE__ */ a("div", { className: t.kvRow, children: [
541
- /* @__PURE__ */ l("span", { className: t.kvKey, children: e.k }),
542
- /* @__PURE__ */ l("span", { className: t.kvVal, children: e.v })
543
- ] }, e.k)),
544
- r.reqBody != null && /* @__PURE__ */ a(P, { children: [
545
- /* @__PURE__ */ a("div", { className: t.bodyHead, children: [
546
- /* @__PURE__ */ l("span", { className: c(i.asideSection, t.bodyLabel), children: "Body" }),
547
- /* @__PURE__ */ l(
548
- xe,
549
- {
550
- size: "sm",
551
- className: t.payloadCopy,
552
- value: () => JSON.stringify(r.reqBody, null, 2),
553
- "aria-label": "Copy request payload"
554
- }
555
- )
556
- ] }),
557
- /* @__PURE__ */ l("pre", { className: i.asideRaw, children: JSON.stringify(r.reqBody, null, 2) })
558
- ] }),
559
- /* @__PURE__ */ l("div", { className: t.drawerSection, children: "Response" }),
560
- I ? /* @__PURE__ */ a("div", { className: t.awaiting, children: [
561
- /* @__PURE__ */ l("span", { className: c(i.pulseDot, t.awaitingDot) }),
562
- "Awaiting response…"
563
- ] }) : /* @__PURE__ */ a(P, { children: [
564
- /* @__PURE__ */ l("div", { className: i.asideSection, children: "Headers" }),
565
- Xe(r.resHeaders).map((e) => /* @__PURE__ */ a("div", { className: t.kvRow, children: [
566
- /* @__PURE__ */ l("span", { className: t.kvKey, children: e.k }),
567
- /* @__PURE__ */ l("span", { className: t.kvVal, children: e.v })
568
- ] }, e.k)),
569
- /* @__PURE__ */ a("div", { className: t.bodyHead, children: [
570
- /* @__PURE__ */ l("span", { className: c(i.asideSection, t.bodyLabel), children: "Body" }),
571
- r.resBody != null && /* @__PURE__ */ l(
572
- xe,
506
+ Ge && !(r && Be) && /* @__PURE__ */ a("div", { className: l.dockCol, style: { flexBasis: ce }, children: [
507
+ /* @__PURE__ */ t(
508
+ Qe,
509
+ {
510
+ panel: "right",
511
+ width: ce,
512
+ min: 280,
513
+ max: 640,
514
+ onResize: ml,
515
+ label: "Resize details drawer",
516
+ className: l.dockColResizer
517
+ }
518
+ ),
519
+ /* @__PURE__ */ a("aside", { className: c(i.aside, C && l.dockAside, m?.drawer), children: [
520
+ C && /* @__PURE__ */ a("div", { className: l.dockHead, children: [
521
+ /* @__PURE__ */ t("span", { className: l.dockTitle, children: "Event details" }),
522
+ /* @__PURE__ */ t("div", { className: l.drawerSpacer }),
523
+ /* @__PURE__ */ t(
524
+ "button",
573
525
  {
574
- size: "sm",
575
- className: t.payloadCopy,
576
- value: () => JSON.stringify(r.resBody, null, 2),
577
- "aria-label": "Copy response payload"
526
+ type: "button",
527
+ className: i.asideClose,
528
+ "aria-label": "Close details",
529
+ onClick: _e,
530
+ children: "✕"
578
531
  }
579
532
  )
580
533
  ] }),
581
- /* @__PURE__ */ l("pre", { className: i.asideRaw, children: r.resBody != null ? JSON.stringify(r.resBody, null, 2) : "(empty)" })
582
- ] })
583
- ] })
584
- ] }) : /* @__PURE__ */ l("div", { className: t.dockEmpty, children: "Click an event on the timeline to inspect it." })
585
- ] }),
586
- dl && /* @__PURE__ */ a("aside", { className: c(i.aside, t.dockAside, t.logAside, m?.log), children: [
587
- /* @__PURE__ */ a("div", { className: t.dockHead, children: [
588
- /* @__PURE__ */ l("span", { className: t.dockTitle, children: "Full log" }),
589
- /* @__PURE__ */ a("span", { className: t.dockCount, children: [
590
- u.length,
591
- " events"
592
- ] }),
593
- /* @__PURE__ */ l("div", { className: t.drawerSpacer }),
594
- /* @__PURE__ */ l(
595
- "button",
596
- {
597
- type: "button",
598
- className: i.asideClose,
599
- "aria-label": "Close full log",
600
- onClick: () => $(null),
601
- children: "✕"
602
- }
603
- )
604
- ] }),
605
- /* @__PURE__ */ l("div", { ref: ut, className: c(t.dockScroll, t.logBody), children: St.map((e, n) => {
606
- const s = e.end == null, h = e.url ? e.url.replace(/^https?:\/\/[^/]+/, "") : "";
607
- return /* @__PURE__ */ a(
608
- "div",
609
- {
610
- "data-crk-log-id": e.id,
611
- className: c(
612
- t.logEntry,
613
- g === e.id && t.logEntrySelected,
614
- el === e.id && t.logEntryFlash
615
- ),
616
- onClick: () => {
617
- me(e), X.current = e.id;
618
- },
619
- children: [
620
- /* @__PURE__ */ a("div", { className: t.logTop, children: [
621
- /* @__PURE__ */ l("span", { className: t.logNum, children: String(n + 1).padStart(2, "0") }),
622
- /* @__PURE__ */ l("span", { className: c(t.methodBadge, t.badgeSm), children: e.method || "—" }),
623
- /* @__PURE__ */ l(
624
- "span",
625
- {
626
- className: c(
627
- t.statusBadge,
628
- t.badgeSm,
629
- s && t.statusPending,
630
- !s && (e.status ?? 0) >= 400 && t.statusError
631
- ),
632
- children: s ? "pending" : String(e.status ?? "—")
633
- }
634
- ),
635
- /* @__PURE__ */ l("span", { className: t.logPair, children: Z(e) + " → " + e.service }),
636
- /* @__PURE__ */ l("div", { className: t.drawerSpacer }),
637
- /* @__PURE__ */ l("span", { className: t.logClock, children: A(e.start) })
534
+ r ? /* @__PURE__ */ a("div", { className: C ? l.dockScroll : void 0, children: [
535
+ /* @__PURE__ */ a("div", { className: l.drawerHead, children: [
536
+ /* @__PURE__ */ a("div", { className: l.drawerHeadRow, children: [
537
+ /* @__PURE__ */ t("span", { className: l.methodBadge, children: r.method || "—" }),
538
+ /* @__PURE__ */ t(
539
+ "span",
540
+ {
541
+ className: c(
542
+ l.statusBadge,
543
+ I && l.statusPending,
544
+ !I && (r.status ?? 0) >= 400 && l.statusError
545
+ ),
546
+ children: I ? "pending" : String(r.status ?? "—")
547
+ }
548
+ ),
549
+ /* @__PURE__ */ t("span", { className: l.drawerRoute, children: G(r) + " → " + r.service }),
550
+ /* @__PURE__ */ t("div", { className: l.drawerSpacer }),
551
+ !C && /* @__PURE__ */ t(
552
+ "button",
553
+ {
554
+ type: "button",
555
+ className: i.asideClose,
556
+ "aria-label": "Close details",
557
+ onClick: _e,
558
+ children: "✕"
559
+ }
560
+ )
561
+ ] }),
562
+ /* @__PURE__ */ t("div", { className: l.drawerUrl, children: r.url || r.label || r.id }),
563
+ /* @__PURE__ */ t("div", { className: l.drawerRid, children: String(W(r)) }),
564
+ /* @__PURE__ */ t("div", { className: l.drawerXrid, children: r.reqHeaders && r.reqHeaders["x-request-id"] || r.requestId || r.id }),
565
+ /* @__PURE__ */ t("div", { className: l.drawerTiming, children: A(r.start, !0) + (I ? " · in flight" : " → " + A(r.end, !0) + " · " + xe(r.end - r.start)) })
638
566
  ] }),
639
- /* @__PURE__ */ l("div", { className: t.logOp, children: /* @__PURE__ */ l(kt, { text: String(q(e)), query: B }) }),
640
- h && /* @__PURE__ */ l("div", { className: t.logPath, children: h }),
641
- /* @__PURE__ */ a("div", { className: t.logPayloadHead, children: [
642
- /* @__PURE__ */ l("span", { className: t.logPayloadLabel, children: "Request" }),
643
- e.reqBody != null && /* @__PURE__ */ l(
644
- "span",
645
- {
646
- className: t.copyStop,
647
- onClick: (o) => o.stopPropagation(),
648
- children: /* @__PURE__ */ l(
649
- xe,
567
+ /* @__PURE__ */ a("div", { className: l.drawerBody, children: [
568
+ /* @__PURE__ */ t("div", { className: l.drawerSection, children: "Request" }),
569
+ !!Object.keys(r.query || {}).length && /* @__PURE__ */ a(P, { children: [
570
+ /* @__PURE__ */ t("div", { className: i.asideSection, children: "Query parameters" }),
571
+ je(r.query).map((e) => /* @__PURE__ */ a("div", { className: l.kvRow, children: [
572
+ /* @__PURE__ */ t("span", { className: c(l.kvKey, l.kvKeyQuery), children: e.k }),
573
+ /* @__PURE__ */ t("span", { className: l.kvVal, children: e.v })
574
+ ] }, e.k))
575
+ ] }),
576
+ /* @__PURE__ */ t("div", { className: i.asideSection, children: "Headers" }),
577
+ je(r.reqHeaders).map((e) => /* @__PURE__ */ a("div", { className: l.kvRow, children: [
578
+ /* @__PURE__ */ t("span", { className: l.kvKey, children: e.k }),
579
+ /* @__PURE__ */ t("span", { className: l.kvVal, children: e.v })
580
+ ] }, e.k)),
581
+ r.reqBody != null && /* @__PURE__ */ a(P, { children: [
582
+ /* @__PURE__ */ a("div", { className: l.bodyHead, children: [
583
+ /* @__PURE__ */ t("span", { className: c(i.asideSection, l.bodyLabel), children: "Body" }),
584
+ /* @__PURE__ */ t(
585
+ Se,
650
586
  {
651
587
  size: "sm",
652
- className: t.payloadCopy,
653
- value: () => JSON.stringify(e.reqBody, null, 2),
588
+ className: l.payloadCopy,
589
+ value: () => JSON.stringify(r.reqBody, null, 2),
654
590
  "aria-label": "Copy request payload"
655
591
  }
656
592
  )
657
- }
658
- )
659
- ] }),
660
- /* @__PURE__ */ l("pre", { className: c(i.asideRaw, t.logPre), children: e.reqBody != null ? JSON.stringify(e.reqBody, null, 2) : "(empty)" }),
661
- /* @__PURE__ */ a("div", { className: t.logPayloadHead, children: [
662
- /* @__PURE__ */ l("span", { className: t.logPayloadLabel, children: "Response" }),
663
- !s && e.resBody != null && /* @__PURE__ */ l(
664
- "span",
665
- {
666
- className: t.copyStop,
667
- onClick: (o) => o.stopPropagation(),
668
- children: /* @__PURE__ */ l(
669
- xe,
593
+ ] }),
594
+ /* @__PURE__ */ t("pre", { className: i.asideRaw, children: JSON.stringify(r.reqBody, null, 2) })
595
+ ] }),
596
+ /* @__PURE__ */ t("div", { className: l.drawerSection, children: "Response" }),
597
+ I ? /* @__PURE__ */ a("div", { className: l.awaiting, children: [
598
+ /* @__PURE__ */ t("span", { className: c(i.pulseDot, l.awaitingDot) }),
599
+ "Awaiting response…"
600
+ ] }) : /* @__PURE__ */ a(P, { children: [
601
+ /* @__PURE__ */ t("div", { className: i.asideSection, children: "Headers" }),
602
+ je(r.resHeaders).map((e) => /* @__PURE__ */ a("div", { className: l.kvRow, children: [
603
+ /* @__PURE__ */ t("span", { className: l.kvKey, children: e.k }),
604
+ /* @__PURE__ */ t("span", { className: l.kvVal, children: e.v })
605
+ ] }, e.k)),
606
+ /* @__PURE__ */ a("div", { className: l.bodyHead, children: [
607
+ /* @__PURE__ */ t("span", { className: c(i.asideSection, l.bodyLabel), children: "Body" }),
608
+ r.resBody != null && /* @__PURE__ */ t(
609
+ Se,
670
610
  {
671
611
  size: "sm",
672
- className: t.payloadCopy,
673
- value: () => JSON.stringify(e.resBody, null, 2),
612
+ className: l.payloadCopy,
613
+ value: () => JSON.stringify(r.resBody, null, 2),
674
614
  "aria-label": "Copy response payload"
675
615
  }
676
616
  )
677
- }
678
- )
617
+ ] }),
618
+ /* @__PURE__ */ t("pre", { className: i.asideRaw, children: r.resBody != null ? JSON.stringify(r.resBody, null, 2) : "(empty)" })
619
+ ] })
620
+ ] })
621
+ ] }) : /* @__PURE__ */ t("div", { className: l.dockEmpty, children: "Click an event on the timeline to inspect it." })
622
+ ] })
623
+ ] }),
624
+ Rl && /* @__PURE__ */ a("div", { className: l.dockCol, style: { flexBasis: hl }, children: [
625
+ /* @__PURE__ */ t(
626
+ Qe,
627
+ {
628
+ panel: "right",
629
+ width: hl,
630
+ min: 320,
631
+ max: 680,
632
+ onResize: nt,
633
+ label: "Resize log drawer",
634
+ className: l.dockColResizer
635
+ }
636
+ ),
637
+ /* @__PURE__ */ a("aside", { className: c(i.aside, l.dockAside, m?.log), children: [
638
+ /* @__PURE__ */ a("div", { className: l.dockHead, children: [
639
+ /* @__PURE__ */ t("span", { className: l.dockTitle, children: "Full log" }),
640
+ /* @__PURE__ */ a("span", { className: l.dockCount, children: [
641
+ u.length,
642
+ " events"
679
643
  ] }),
680
- s ? /* @__PURE__ */ a("div", { className: t.awaiting, children: [
681
- /* @__PURE__ */ l("span", { className: c(i.pulseDot, t.awaitingDot) }),
682
- "Awaiting response…"
683
- ] }) : /* @__PURE__ */ l("pre", { className: c(i.asideRaw, t.logPre), children: e.resBody != null ? JSON.stringify(e.resBody, null, 2) : "(empty)" })
684
- ]
685
- },
686
- e.id
687
- );
688
- }) })
644
+ /* @__PURE__ */ t("div", { className: l.drawerSpacer }),
645
+ /* @__PURE__ */ t(
646
+ "button",
647
+ {
648
+ type: "button",
649
+ className: i.asideClose,
650
+ "aria-label": "Close full log",
651
+ onClick: () => $(null),
652
+ children: "✕"
653
+ }
654
+ )
655
+ ] }),
656
+ /* @__PURE__ */ t("div", { ref: vl, className: c(l.dockScroll, l.logBody), children: Ll.map((e, s) => {
657
+ const n = e.end == null, h = e.url ? e.url.replace(/^https?:\/\/[^/]+/, "") : "";
658
+ return /* @__PURE__ */ a(
659
+ "div",
660
+ {
661
+ "data-crk-log-id": e.id,
662
+ className: c(
663
+ l.logEntry,
664
+ v === e.id && l.logEntrySelected,
665
+ rt === e.id && l.logEntryFlash
666
+ ),
667
+ onClick: () => {
668
+ he(e), X.current = e.id;
669
+ },
670
+ children: [
671
+ /* @__PURE__ */ a("div", { className: l.logTop, children: [
672
+ /* @__PURE__ */ t("span", { className: l.logNum, children: String(s + 1).padStart(2, "0") }),
673
+ /* @__PURE__ */ t("span", { className: c(l.methodBadge, l.badgeSm), children: e.method || "—" }),
674
+ /* @__PURE__ */ t(
675
+ "span",
676
+ {
677
+ className: c(
678
+ l.statusBadge,
679
+ l.badgeSm,
680
+ n && l.statusPending,
681
+ !n && (e.status ?? 0) >= 400 && l.statusError
682
+ ),
683
+ children: n ? "pending" : String(e.status ?? "—")
684
+ }
685
+ ),
686
+ /* @__PURE__ */ t("span", { className: l.logPair, children: G(e) + " → " + e.service }),
687
+ /* @__PURE__ */ t("div", { className: l.drawerSpacer }),
688
+ /* @__PURE__ */ t("span", { className: l.logClock, children: z(e.start) })
689
+ ] }),
690
+ /* @__PURE__ */ t("div", { className: l.logOp, children: /* @__PURE__ */ t(El, { text: String(W(e)), query: L }) }),
691
+ h && /* @__PURE__ */ t("div", { className: l.logPath, children: h }),
692
+ /* @__PURE__ */ a("div", { className: l.logPayloadHead, children: [
693
+ /* @__PURE__ */ t("span", { className: l.logPayloadLabel, children: "Request" }),
694
+ e.reqBody != null && /* @__PURE__ */ t(
695
+ "span",
696
+ {
697
+ className: l.copyStop,
698
+ onClick: (o) => o.stopPropagation(),
699
+ children: /* @__PURE__ */ t(
700
+ Se,
701
+ {
702
+ size: "sm",
703
+ className: l.payloadCopy,
704
+ value: () => JSON.stringify(e.reqBody, null, 2),
705
+ "aria-label": "Copy request payload"
706
+ }
707
+ )
708
+ }
709
+ )
710
+ ] }),
711
+ /* @__PURE__ */ t("pre", { className: c(i.asideRaw, l.logPre), children: e.reqBody != null ? JSON.stringify(e.reqBody, null, 2) : "(empty)" }),
712
+ /* @__PURE__ */ a("div", { className: l.logPayloadHead, children: [
713
+ /* @__PURE__ */ t("span", { className: l.logPayloadLabel, children: "Response" }),
714
+ !n && e.resBody != null && /* @__PURE__ */ t(
715
+ "span",
716
+ {
717
+ className: l.copyStop,
718
+ onClick: (o) => o.stopPropagation(),
719
+ children: /* @__PURE__ */ t(
720
+ Se,
721
+ {
722
+ size: "sm",
723
+ className: l.payloadCopy,
724
+ value: () => JSON.stringify(e.resBody, null, 2),
725
+ "aria-label": "Copy response payload"
726
+ }
727
+ )
728
+ }
729
+ )
730
+ ] }),
731
+ n ? /* @__PURE__ */ a("div", { className: l.awaiting, children: [
732
+ /* @__PURE__ */ t("span", { className: c(i.pulseDot, l.awaitingDot) }),
733
+ "Awaiting response…"
734
+ ] }) : /* @__PURE__ */ t("pre", { className: c(i.asideRaw, l.logPre), children: e.resBody != null ? JSON.stringify(e.resBody, null, 2) : "(empty)" })
735
+ ]
736
+ },
737
+ e.id
738
+ );
739
+ }) })
740
+ ] })
741
+ ] }),
742
+ B === "bubble" && Q
743
+ ] }),
744
+ /* @__PURE__ */ t("div", { className: c(i.footnote, m?.footnote), children: "Click an event to open its details in the side panel · dashed pills are still in flight" })
689
745
  ] }),
690
- (R === "right" || R === "floating") && Q,
691
- C && /* @__PURE__ */ a("div", { className: c(t.rail, m?.rail), children: [
692
- /* @__PURE__ */ l(
746
+ (B === "right" || B === "floating") && Q,
747
+ C && /* @__PURE__ */ a("div", { className: c(l.rail, m?.rail), children: [
748
+ /* @__PURE__ */ t(
693
749
  "button",
694
750
  {
695
751
  type: "button",
696
752
  title: "Event details",
697
753
  "aria-label": "Toggle event details drawer",
698
754
  "aria-pressed": x === "details",
699
- className: c(t.railBtn, x === "details" && t.railBtnActive),
755
+ className: c(l.railBtn, x === "details" && l.railBtnActive),
700
756
  onClick: () => $(x === "details" ? null : "details"),
701
- children: /* @__PURE__ */ a("span", { className: t.railGlyphDetails, "aria-hidden": !0, children: [
702
- /* @__PURE__ */ l("span", {}),
703
- /* @__PURE__ */ l("span", {}),
704
- /* @__PURE__ */ l("span", {})
757
+ children: /* @__PURE__ */ a("span", { className: l.railGlyphDetails, "aria-hidden": !0, children: [
758
+ /* @__PURE__ */ t("span", {}),
759
+ /* @__PURE__ */ t("span", {}),
760
+ /* @__PURE__ */ t("span", {})
705
761
  ] })
706
762
  }
707
763
  ),
708
- /* @__PURE__ */ l(
764
+ /* @__PURE__ */ t(
709
765
  "button",
710
766
  {
711
767
  type: "button",
712
768
  title: "Full log",
713
769
  "aria-label": "Toggle full log drawer",
714
770
  "aria-pressed": x === "log",
715
- className: c(t.railBtn, x === "log" && t.railBtnActive),
771
+ className: c(l.railBtn, x === "log" && l.railBtnActive),
716
772
  onClick: () => {
717
773
  const e = x === "log" ? null : "log";
718
- e === "log" && g != null && (j.current = g), $(e);
774
+ e === "log" && v != null && (Z.current = v), $(e);
719
775
  },
720
- children: /* @__PURE__ */ a("span", { className: t.railGlyphLog, "aria-hidden": !0, children: [
721
- /* @__PURE__ */ l("span", {}),
722
- /* @__PURE__ */ l("span", {}),
723
- /* @__PURE__ */ l("span", {})
776
+ children: /* @__PURE__ */ a("span", { className: l.railGlyphLog, "aria-hidden": !0, children: [
777
+ /* @__PURE__ */ t("span", {}),
778
+ /* @__PURE__ */ t("span", {}),
779
+ /* @__PURE__ */ t("span", {})
724
780
  ] })
725
781
  }
726
782
  )
727
783
  ] })
728
784
  ] }),
729
- R === "bottom" && Q,
785
+ B === "bottom" && Q,
730
786
  y && (() => {
731
- const e = u.find((s) => s.id === y.id), n = e && Me ? Me(e, {
732
- color: L[e.service] || S.body,
787
+ const e = u.find((n) => n.id === y.id), s = e && Le ? Le(e, {
788
+ color: R[e.service] || S.body,
733
789
  pending: e.end == null,
734
790
  durationMs: (e.end ?? M) - e.start
735
791
  }) : void 0;
736
- return Me && n == null ? null : /* @__PURE__ */ l(wl, { x: y.x, y: y.y, className: m?.tooltip, children: n !== void 0 ? n : /* @__PURE__ */ a(P, { children: [
737
- /* @__PURE__ */ l("div", { className: c(i.tooltipTitle, i.tooltipMono), children: y.rid }),
738
- /* @__PURE__ */ l("div", { className: i.tooltipLine, style: { marginTop: 4 }, children: y.route }),
739
- /* @__PURE__ */ l(
792
+ return Le && s == null ? null : /* @__PURE__ */ t(Mt, { x: y.x, y: y.y, className: m?.tooltip, children: s !== void 0 ? s : /* @__PURE__ */ a(P, { children: [
793
+ /* @__PURE__ */ t("div", { className: c(i.tooltipTitle, i.tooltipMono), children: y.rid }),
794
+ /* @__PURE__ */ t("div", { className: i.tooltipLine, style: { marginTop: 4 }, children: y.route }),
795
+ /* @__PURE__ */ t(
740
796
  "div",
741
797
  {
742
798
  className: c(i.tooltipLine, i.tooltipMono),
@@ -744,9 +800,9 @@ const N = 84, Lt = 24, F = 400, kl = 51, Se = 300, Il = ul(
744
800
  children: y.label
745
801
  }
746
802
  ),
747
- /* @__PURE__ */ l("div", { className: i.tooltipLine, style: { marginTop: 4 }, children: y.time }),
748
- /* @__PURE__ */ l("div", { className: i.tooltipLine, children: y.durLine }),
749
- y.url && /* @__PURE__ */ l(
803
+ /* @__PURE__ */ t("div", { className: i.tooltipLine, style: { marginTop: 4 }, children: y.time }),
804
+ /* @__PURE__ */ t("div", { className: i.tooltipLine, children: y.durLine }),
805
+ y.url && /* @__PURE__ */ t(
750
806
  "div",
751
807
  {
752
808
  className: c(i.tooltipDim, i.tooltipMono),
@@ -760,5 +816,5 @@ const N = 84, Lt = 24, F = 400, kl = 51, Se = 300, Il = ul(
760
816
  }
761
817
  );
762
818
  export {
763
- Il as TraceTimeline
819
+ Jt as TraceTimeline
764
820
  };