@motiadev/plugin-observability 0.14.0-beta.165-958021 → 0.14.0-beta.165-246284

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -27,18 +27,22 @@ const useObservabilityStore = create()((set) => ({
27
27
  //#endregion
28
28
  //#region src/components/search-bar.tsx
29
29
  const SearchBar = memo(() => {
30
- const $ = c(23);
30
+ const $ = c(24);
31
+ if ($[0] !== "0d378097fa8da23c1a1ca72ef31fe4b19f0c9bbeda9092deafe087d58425242d") {
32
+ for (let $i = 0; $i < 24; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
33
+ $[0] = "0d378097fa8da23c1a1ca72ef31fe4b19f0c9bbeda9092deafe087d58425242d";
34
+ }
31
35
  const search = useObservabilityStore(_temp$6);
32
36
  const setSearch = useObservabilityStore(_temp2$3);
33
37
  const clearTraces = useObservabilityStore(_temp3$1);
34
38
  let t0;
35
- if ($[0] !== setSearch) {
39
+ if ($[1] !== setSearch) {
36
40
  t0 = (e) => setSearch(e.target.value);
37
- $[0] = setSearch;
38
- $[1] = t0;
39
- } else t0 = $[1];
41
+ $[1] = setSearch;
42
+ $[2] = t0;
43
+ } else t0 = $[2];
40
44
  let t1;
41
- if ($[2] !== search || $[3] !== t0) {
45
+ if ($[3] !== search || $[4] !== t0) {
42
46
  t1 = /* @__PURE__ */ jsx(Input, {
43
47
  variant: "shade",
44
48
  value: search,
@@ -46,45 +50,45 @@ const SearchBar = memo(() => {
46
50
  className: "px-9! font-medium",
47
51
  placeholder: "Search by Trace ID or Step Name"
48
52
  });
49
- $[2] = search;
50
- $[3] = t0;
51
- $[4] = t1;
52
- } else t1 = $[4];
53
+ $[3] = search;
54
+ $[4] = t0;
55
+ $[5] = t1;
56
+ } else t1 = $[5];
53
57
  let t2;
54
- if ($[5] === Symbol.for("react.memo_cache_sentinel")) {
58
+ if ($[6] === Symbol.for("react.memo_cache_sentinel")) {
55
59
  t2 = /* @__PURE__ */ jsx(Search, { className: "absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-muted-foreground/50" });
56
- $[5] = t2;
57
- } else t2 = $[5];
60
+ $[6] = t2;
61
+ } else t2 = $[6];
58
62
  const t3 = search !== "";
59
63
  const t4 = search === "";
60
64
  let t5;
61
- if ($[6] !== t3 || $[7] !== t4) {
65
+ if ($[7] !== t3 || $[8] !== t4) {
62
66
  t5 = cn("cursor-pointer absolute right-3 top-1/2 -translate-y-1/2 w-4 h-4 text-muted-foreground/50 hover:text-muted-foreground", {
63
67
  visible: t3,
64
68
  invisible: t4
65
69
  });
66
- $[6] = t3;
67
- $[7] = t4;
68
- $[8] = t5;
69
- } else t5 = $[8];
70
+ $[7] = t3;
71
+ $[8] = t4;
72
+ $[9] = t5;
73
+ } else t5 = $[9];
70
74
  let t6;
71
- if ($[9] !== setSearch) {
75
+ if ($[10] !== setSearch) {
72
76
  t6 = () => setSearch("");
73
- $[9] = setSearch;
74
- $[10] = t6;
75
- } else t6 = $[10];
77
+ $[10] = setSearch;
78
+ $[11] = t6;
79
+ } else t6 = $[11];
76
80
  let t7;
77
- if ($[11] !== t5 || $[12] !== t6) {
81
+ if ($[12] !== t5 || $[13] !== t6) {
78
82
  t7 = /* @__PURE__ */ jsx(X, {
79
83
  className: t5,
80
84
  onClick: t6
81
85
  });
82
- $[11] = t5;
83
- $[12] = t6;
84
- $[13] = t7;
85
- } else t7 = $[13];
86
+ $[12] = t5;
87
+ $[13] = t6;
88
+ $[14] = t7;
89
+ } else t7 = $[14];
86
90
  let t8;
87
- if ($[14] !== t1 || $[15] !== t7) {
91
+ if ($[15] !== t1 || $[16] !== t7) {
88
92
  t8 = /* @__PURE__ */ jsxs("div", {
89
93
  className: "flex-1 relative",
90
94
  children: [
@@ -93,37 +97,37 @@ const SearchBar = memo(() => {
93
97
  t7
94
98
  ]
95
99
  });
96
- $[14] = t1;
97
- $[15] = t7;
98
- $[16] = t8;
99
- } else t8 = $[16];
100
+ $[15] = t1;
101
+ $[16] = t7;
102
+ $[17] = t8;
103
+ } else t8 = $[17];
100
104
  let t9;
101
- if ($[17] === Symbol.for("react.memo_cache_sentinel")) {
105
+ if ($[18] === Symbol.for("react.memo_cache_sentinel")) {
102
106
  t9 = /* @__PURE__ */ jsx(Trash, {});
103
- $[17] = t9;
104
- } else t9 = $[17];
107
+ $[18] = t9;
108
+ } else t9 = $[18];
105
109
  let t10;
106
- if ($[18] !== clearTraces) {
110
+ if ($[19] !== clearTraces) {
107
111
  t10 = /* @__PURE__ */ jsxs(Button, {
108
112
  variant: "default",
109
113
  onClick: clearTraces,
110
114
  className: "h-[34px]",
111
115
  children: [t9, " Clear"]
112
116
  });
113
- $[18] = clearTraces;
114
- $[19] = t10;
115
- } else t10 = $[19];
117
+ $[19] = clearTraces;
118
+ $[20] = t10;
119
+ } else t10 = $[20];
116
120
  let t11;
117
- if ($[20] !== t10 || $[21] !== t8) {
121
+ if ($[21] !== t10 || $[22] !== t8) {
118
122
  t11 = /* @__PURE__ */ jsxs("div", {
119
123
  className: "flex p-2 border-b gap-2",
120
124
  "data-testid": "logs-search-container",
121
125
  children: [t8, t10]
122
126
  });
123
- $[20] = t10;
124
- $[21] = t8;
125
- $[22] = t11;
126
- } else t11 = $[22];
127
+ $[21] = t10;
128
+ $[22] = t8;
129
+ $[23] = t11;
130
+ } else t11 = $[23];
127
131
  return t11;
128
132
  });
129
133
  SearchBar.displayName = "SearchBar";
@@ -140,16 +144,20 @@ function _temp3$1(state_1) {
140
144
  //#endregion
141
145
  //#region src/components/trace-empty-state.tsx
142
146
  const TraceEmptyState = memo(() => {
143
- const $ = c(1);
147
+ const $ = c(2);
148
+ if ($[0] !== "2108089e2c746ed0862d68dda608395c37fa47e1141188e212f129d7d9fe3d12") {
149
+ for (let $i = 0; $i < 2; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
150
+ $[0] = "2108089e2c746ed0862d68dda608395c37fa47e1141188e212f129d7d9fe3d12";
151
+ }
144
152
  if (useObservabilityStore(_temp$5)) return null;
145
153
  let t0;
146
- if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
154
+ if ($[1] === Symbol.for("react.memo_cache_sentinel")) {
147
155
  t0 = /* @__PURE__ */ jsx("div", {
148
156
  className: "flex items-center justify-center h-full text-muted-foreground text-center",
149
157
  children: "Select a trace or trace group to view the timeline"
150
158
  });
151
- $[0] = t0;
152
- } else t0 = $[0];
159
+ $[1] = t0;
160
+ } else t0 = $[1];
153
161
  return t0;
154
162
  });
155
163
  TraceEmptyState.displayName = "TraceEmptyState";
@@ -160,19 +168,23 @@ function _temp$5(state) {
160
168
  //#endregion
161
169
  //#region src/hooks/use-get-endtime.ts
162
170
  const useGetEndTime = (group) => {
163
- const $ = c(5);
171
+ const $ = c(6);
172
+ if ($[0] !== "f07b1721656d8064013e11ff58f0cb63e38b74f1034170d677e517b5cd2fc048") {
173
+ for (let $i = 0; $i < 6; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
174
+ $[0] = "f07b1721656d8064013e11ff58f0cb63e38b74f1034170d677e517b5cd2fc048";
175
+ }
164
176
  const groupEndTime = group?.endTime;
165
177
  let t0;
166
- if ($[0] !== groupEndTime) {
178
+ if ($[1] !== groupEndTime) {
167
179
  t0 = () => groupEndTime || Date.now();
168
- $[0] = groupEndTime;
169
- $[1] = t0;
170
- } else t0 = $[1];
180
+ $[1] = groupEndTime;
181
+ $[2] = t0;
182
+ } else t0 = $[2];
171
183
  const [endTime, setEndTime] = useState(t0);
172
184
  const intervalRef = useRef(null);
173
185
  let t1;
174
186
  let t2;
175
- if ($[2] !== groupEndTime) {
187
+ if ($[3] !== groupEndTime) {
176
188
  t1 = () => {
177
189
  if (intervalRef.current) {
178
190
  clearInterval(intervalRef.current);
@@ -188,12 +200,12 @@ const useGetEndTime = (group) => {
188
200
  };
189
201
  };
190
202
  t2 = [groupEndTime];
191
- $[2] = groupEndTime;
192
- $[3] = t1;
193
- $[4] = t2;
203
+ $[3] = groupEndTime;
204
+ $[4] = t1;
205
+ $[5] = t2;
194
206
  } else {
195
- t1 = $[3];
196
- t2 = $[4];
207
+ t1 = $[4];
208
+ t2 = $[5];
197
209
  }
198
210
  useEffect(t1, t2);
199
211
  return endTime;
@@ -217,41 +229,45 @@ const GRADIENT_CLASSES = {
217
229
  failed: "bg-[repeating-linear-gradient(140deg,#EA2069,#EA2069_8px,#D41E60_8px,#D41E60_16px)]"
218
230
  };
219
231
  const TraceItem = memo((t0) => {
220
- const $ = c(17);
232
+ const $ = c(18);
233
+ if ($[0] !== "3296a69d1668d9416c4211c6d1cf083f73fcfe03edbf7e74160503957cdfe795") {
234
+ for (let $i = 0; $i < 18; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
235
+ $[0] = "3296a69d1668d9416c4211c6d1cf083f73fcfe03edbf7e74160503957cdfe795";
236
+ }
221
237
  const { traceId, traceName, traceStatus, traceStartTime, traceEndTime, groupStartTime, groupEndTime, onExpand } = t0;
222
238
  let t1;
223
- if ($[0] !== onExpand || $[1] !== traceId) {
239
+ if ($[1] !== onExpand || $[2] !== traceId) {
224
240
  t1 = () => {
225
241
  onExpand(traceId);
226
242
  };
227
- $[0] = onExpand;
228
- $[1] = traceId;
229
- $[2] = t1;
230
- } else t1 = $[2];
243
+ $[1] = onExpand;
244
+ $[2] = traceId;
245
+ $[3] = t1;
246
+ } else t1 = $[3];
231
247
  const handleClick = t1;
232
248
  const t2 = GRADIENT_CLASSES[traceStatus];
233
249
  let t3;
234
- if ($[3] !== t2) {
250
+ if ($[4] !== t2) {
235
251
  t3 = cn("h-[24px] rounded-[4px] hover:opacity-80 transition-all duration-200", t2);
236
- $[3] = t2;
237
- $[4] = t3;
238
- } else t3 = $[4];
252
+ $[4] = t2;
253
+ $[5] = t3;
254
+ } else t3 = $[5];
239
255
  const barClassName = t3;
240
256
  const t4 = `${(traceStartTime - groupStartTime) / (groupEndTime - groupStartTime) * 100}%`;
241
257
  const t5 = traceEndTime ? `${(traceEndTime - traceStartTime) / (groupEndTime - groupStartTime) * 100}%` : `${(Date.now() - traceStartTime) / (groupEndTime - groupStartTime) * 100}%`;
242
258
  let t6;
243
- if ($[5] !== t4 || $[6] !== t5) {
259
+ if ($[6] !== t4 || $[7] !== t5) {
244
260
  t6 = {
245
261
  marginLeft: t4,
246
262
  width: t5
247
263
  };
248
- $[5] = t4;
249
- $[6] = t5;
250
- $[7] = t6;
251
- } else t6 = $[7];
264
+ $[6] = t4;
265
+ $[7] = t5;
266
+ $[8] = t6;
267
+ } else t6 = $[8];
252
268
  const barStyle = t6;
253
269
  let t7;
254
- if ($[8] !== traceName) {
270
+ if ($[9] !== traceName) {
255
271
  t7 = /* @__PURE__ */ jsx("div", {
256
272
  className: "flex items-center min-w-[200px] max-w-[200px] h-[32px] max-h-[32px] py-4 px-2 text-sm font-semibold text-foreground sticky left-0 bg-card z-9",
257
273
  children: /* @__PURE__ */ jsx("span", {
@@ -259,11 +275,11 @@ const TraceItem = memo((t0) => {
259
275
  children: traceName
260
276
  })
261
277
  });
262
- $[8] = traceName;
263
- $[9] = t7;
264
- } else t7 = $[9];
278
+ $[9] = traceName;
279
+ $[10] = t7;
280
+ } else t7 = $[10];
265
281
  let t8;
266
- if ($[10] !== barClassName || $[11] !== barStyle) {
282
+ if ($[11] !== barClassName || $[12] !== barStyle) {
267
283
  t8 = /* @__PURE__ */ jsx("div", {
268
284
  className: "flex w-full flex-row items-center hover:bg-muted/50 rounded-md",
269
285
  children: /* @__PURE__ */ jsx("div", {
@@ -274,23 +290,23 @@ const TraceItem = memo((t0) => {
274
290
  })
275
291
  })
276
292
  });
277
- $[10] = barClassName;
278
- $[11] = barStyle;
279
- $[12] = t8;
280
- } else t8 = $[12];
293
+ $[11] = barClassName;
294
+ $[12] = barStyle;
295
+ $[13] = t8;
296
+ } else t8 = $[13];
281
297
  let t9;
282
- if ($[13] !== handleClick || $[14] !== t7 || $[15] !== t8) {
298
+ if ($[14] !== handleClick || $[15] !== t7 || $[16] !== t8) {
283
299
  t9 = /* @__PURE__ */ jsxs("div", {
284
300
  className: "flex hover:bg-muted-foreground/10 relative cursor-pointer",
285
301
  onClick: handleClick,
286
302
  "data-testid": "trace-timeline-item",
287
303
  children: [t7, t8]
288
304
  });
289
- $[13] = handleClick;
290
- $[14] = t7;
291
- $[15] = t8;
292
- $[16] = t9;
293
- } else t9 = $[16];
305
+ $[14] = handleClick;
306
+ $[15] = t7;
307
+ $[16] = t8;
308
+ $[17] = t9;
309
+ } else t9 = $[17];
294
310
  return t9;
295
311
  });
296
312
  TraceItem.displayName = "TraceItem";
@@ -298,47 +314,55 @@ TraceItem.displayName = "TraceItem";
298
314
  //#endregion
299
315
  //#region src/components/events/event-icon.tsx
300
316
  const EventIcon = (t0) => {
301
- const $ = c(4);
317
+ const $ = c(5);
318
+ if ($[0] !== "a1e6111b39d1930b766ba2ebca3959949a34edb0ba32f492db6cf8ba92b7256a") {
319
+ for (let $i = 0; $i < 5; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
320
+ $[0] = "a1e6111b39d1930b766ba2ebca3959949a34edb0ba32f492db6cf8ba92b7256a";
321
+ }
302
322
  const { event } = t0;
303
323
  if (event.type === "log") {
304
- let t1;
305
- if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
306
- t1 = /* @__PURE__ */ jsx(ScrollText, { className: "w-4 h-4 text-muted-foreground" });
307
- $[0] = t1;
308
- } else t1 = $[0];
309
- return t1;
310
- } else if (event.type === "emit") {
311
324
  let t1;
312
325
  if ($[1] === Symbol.for("react.memo_cache_sentinel")) {
313
- t1 = /* @__PURE__ */ jsx(MessageCircle, { className: "w-4 h-4 text-muted-foreground" });
326
+ t1 = /* @__PURE__ */ jsx(ScrollText, { className: "w-4 h-4 text-muted-foreground" });
314
327
  $[1] = t1;
315
328
  } else t1 = $[1];
316
329
  return t1;
317
- } else if (event.type === "state") {
330
+ } else if (event.type === "emit") {
318
331
  let t1;
319
332
  if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
320
- t1 = /* @__PURE__ */ jsx(Package, { className: "w-4 h-4 text-muted-foreground" });
333
+ t1 = /* @__PURE__ */ jsx(MessageCircle, { className: "w-4 h-4 text-muted-foreground" });
321
334
  $[2] = t1;
322
335
  } else t1 = $[2];
323
336
  return t1;
324
- } else if (event.type === "stream") {
337
+ } else if (event.type === "state") {
325
338
  let t1;
326
339
  if ($[3] === Symbol.for("react.memo_cache_sentinel")) {
327
- t1 = /* @__PURE__ */ jsx(Radio, { className: "w-4 h-4 text-muted-foreground" });
340
+ t1 = /* @__PURE__ */ jsx(Package, { className: "w-4 h-4 text-muted-foreground" });
328
341
  $[3] = t1;
329
342
  } else t1 = $[3];
330
343
  return t1;
344
+ } else if (event.type === "stream") {
345
+ let t1;
346
+ if ($[4] === Symbol.for("react.memo_cache_sentinel")) {
347
+ t1 = /* @__PURE__ */ jsx(Radio, { className: "w-4 h-4 text-muted-foreground" });
348
+ $[4] = t1;
349
+ } else t1 = $[4];
350
+ return t1;
331
351
  }
332
352
  };
333
353
 
334
354
  //#endregion
335
355
  //#region src/components/ui/copy-button.tsx
336
356
  const CopyButton = (t0) => {
337
- const $ = c(11);
357
+ const $ = c(12);
358
+ if ($[0] !== "369763ad5970a7e166e1ca288cc760280bc27f103992fd9a47b59d832664d39c") {
359
+ for (let $i = 0; $i < 12; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
360
+ $[0] = "369763ad5970a7e166e1ca288cc760280bc27f103992fd9a47b59d832664d39c";
361
+ }
338
362
  const { textToCopy, className, title } = t0;
339
363
  const [copied, setCopied] = useState(false);
340
364
  let t1;
341
- if ($[0] !== textToCopy) {
365
+ if ($[1] !== textToCopy) {
342
366
  t1 = async () => {
343
367
  try {
344
368
  await navigator.clipboard.writeText(textToCopy);
@@ -349,25 +373,25 @@ const CopyButton = (t0) => {
349
373
  console.error("Failed to copy:", error);
350
374
  }
351
375
  };
352
- $[0] = textToCopy;
353
- $[1] = t1;
354
- } else t1 = $[1];
376
+ $[1] = textToCopy;
377
+ $[2] = t1;
378
+ } else t1 = $[2];
355
379
  const handleCopy = t1;
356
380
  let t2;
357
- if ($[2] !== className) {
381
+ if ($[3] !== className) {
358
382
  t2 = cn("cursor-pointer p-3 rounded-full", className);
359
- $[2] = className;
360
- $[3] = t2;
361
- } else t2 = $[3];
383
+ $[3] = className;
384
+ $[4] = t2;
385
+ } else t2 = $[4];
362
386
  const t3 = title ?? (copied ? "Copied!" : "Copy");
363
387
  let t4;
364
- if ($[4] !== copied) {
388
+ if ($[5] !== copied) {
365
389
  t4 = copied ? /* @__PURE__ */ jsx(Check, { className: "w-4 h-4 text-green-500" }) : /* @__PURE__ */ jsx(Copy, { className: "w-4 h-4 text-gray-400" });
366
- $[4] = copied;
367
- $[5] = t4;
368
- } else t4 = $[5];
390
+ $[5] = copied;
391
+ $[6] = t4;
392
+ } else t4 = $[6];
369
393
  let t5;
370
- if ($[6] !== handleCopy || $[7] !== t2 || $[8] !== t3 || $[9] !== t4) {
394
+ if ($[7] !== handleCopy || $[8] !== t2 || $[9] !== t3 || $[10] !== t4) {
371
395
  t5 = /* @__PURE__ */ jsx(Button, {
372
396
  variant: "icon",
373
397
  size: "icon",
@@ -376,84 +400,96 @@ const CopyButton = (t0) => {
376
400
  title: t3,
377
401
  children: t4
378
402
  });
379
- $[6] = handleCopy;
380
- $[7] = t2;
381
- $[8] = t3;
382
- $[9] = t4;
383
- $[10] = t5;
384
- } else t5 = $[10];
403
+ $[7] = handleCopy;
404
+ $[8] = t2;
405
+ $[9] = t3;
406
+ $[10] = t4;
407
+ $[11] = t5;
408
+ } else t5 = $[11];
385
409
  return t5;
386
410
  };
387
411
 
388
412
  //#endregion
389
413
  //#region src/components/ui/popover.tsx
390
414
  const Popover = (t0) => {
391
- const $ = c(4);
415
+ const $ = c(5);
416
+ if ($[0] !== "f0c325c78a10b590d1cfefafc6cbfda4c4948cc8b9838222f88cb7d84a6d7a8b") {
417
+ for (let $i = 0; $i < 5; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
418
+ $[0] = "f0c325c78a10b590d1cfefafc6cbfda4c4948cc8b9838222f88cb7d84a6d7a8b";
419
+ }
392
420
  let props;
393
- if ($[0] !== t0) {
421
+ if ($[1] !== t0) {
394
422
  ({...props} = t0);
395
- $[0] = t0;
396
- $[1] = props;
397
- } else props = $[1];
423
+ $[1] = t0;
424
+ $[2] = props;
425
+ } else props = $[2];
398
426
  let t1;
399
- if ($[2] !== props) {
427
+ if ($[3] !== props) {
400
428
  t1 = /* @__PURE__ */ jsx(PopoverPrimitive.Root, {
401
429
  "data-slot": "popover",
402
430
  ...props
403
431
  });
404
- $[2] = props;
405
- $[3] = t1;
406
- } else t1 = $[3];
432
+ $[3] = props;
433
+ $[4] = t1;
434
+ } else t1 = $[4];
407
435
  return t1;
408
436
  };
409
437
  const PopoverTrigger = (t0) => {
410
- const $ = c(4);
438
+ const $ = c(5);
439
+ if ($[0] !== "f0c325c78a10b590d1cfefafc6cbfda4c4948cc8b9838222f88cb7d84a6d7a8b") {
440
+ for (let $i = 0; $i < 5; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
441
+ $[0] = "f0c325c78a10b590d1cfefafc6cbfda4c4948cc8b9838222f88cb7d84a6d7a8b";
442
+ }
411
443
  let props;
412
- if ($[0] !== t0) {
444
+ if ($[1] !== t0) {
413
445
  ({...props} = t0);
414
- $[0] = t0;
415
- $[1] = props;
416
- } else props = $[1];
446
+ $[1] = t0;
447
+ $[2] = props;
448
+ } else props = $[2];
417
449
  let t1;
418
- if ($[2] !== props) {
450
+ if ($[3] !== props) {
419
451
  t1 = /* @__PURE__ */ jsx(PopoverPrimitive.Trigger, {
420
452
  "data-slot": "popover-trigger",
421
453
  ...props
422
454
  });
423
- $[2] = props;
424
- $[3] = t1;
425
- } else t1 = $[3];
455
+ $[3] = props;
456
+ $[4] = t1;
457
+ } else t1 = $[4];
426
458
  return t1;
427
459
  };
428
460
  const PopoverContent = (t0) => {
429
- const $ = c(12);
461
+ const $ = c(13);
462
+ if ($[0] !== "f0c325c78a10b590d1cfefafc6cbfda4c4948cc8b9838222f88cb7d84a6d7a8b") {
463
+ for (let $i = 0; $i < 13; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
464
+ $[0] = "f0c325c78a10b590d1cfefafc6cbfda4c4948cc8b9838222f88cb7d84a6d7a8b";
465
+ }
430
466
  let className;
431
467
  let props;
432
468
  let t1;
433
469
  let t2;
434
- if ($[0] !== t0) {
470
+ if ($[1] !== t0) {
435
471
  ({className, align: t1, sideOffset: t2, ...props} = t0);
436
- $[0] = t0;
437
- $[1] = className;
438
- $[2] = props;
439
- $[3] = t1;
440
- $[4] = t2;
472
+ $[1] = t0;
473
+ $[2] = className;
474
+ $[3] = props;
475
+ $[4] = t1;
476
+ $[5] = t2;
441
477
  } else {
442
- className = $[1];
443
- props = $[2];
444
- t1 = $[3];
445
- t2 = $[4];
478
+ className = $[2];
479
+ props = $[3];
480
+ t1 = $[4];
481
+ t2 = $[5];
446
482
  }
447
483
  const align = t1 === void 0 ? "center" : t1;
448
484
  const sideOffset = t2 === void 0 ? 4 : t2;
449
485
  let t3;
450
- if ($[5] !== className) {
486
+ if ($[6] !== className) {
451
487
  t3 = cn("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden", className);
452
- $[5] = className;
453
- $[6] = t3;
454
- } else t3 = $[6];
488
+ $[6] = className;
489
+ $[7] = t3;
490
+ } else t3 = $[7];
455
491
  let t4;
456
- if ($[7] !== align || $[8] !== props || $[9] !== sideOffset || $[10] !== t3) {
492
+ if ($[8] !== align || $[9] !== props || $[10] !== sideOffset || $[11] !== t3) {
457
493
  t4 = /* @__PURE__ */ jsx(PopoverPrimitive.Portal, { children: /* @__PURE__ */ jsx(PopoverPrimitive.Content, {
458
494
  "data-slot": "popover-content",
459
495
  align,
@@ -461,12 +497,12 @@ const PopoverContent = (t0) => {
461
497
  className: t3,
462
498
  ...props
463
499
  }) });
464
- $[7] = align;
465
- $[8] = props;
466
- $[9] = sideOffset;
467
- $[10] = t3;
468
- $[11] = t4;
469
- } else t4 = $[11];
500
+ $[8] = align;
501
+ $[9] = props;
502
+ $[10] = sideOffset;
503
+ $[11] = t3;
504
+ $[12] = t4;
505
+ } else t4 = $[12];
470
506
  return t4;
471
507
  };
472
508
 
@@ -481,27 +517,31 @@ const formatArgumentValue = (arg) => {
481
517
  //#endregion
482
518
  //#region src/components/events/code/argument.tsx
483
519
  const Argument = memo((t0) => {
484
- const $ = c(18);
520
+ const $ = c(19);
521
+ if ($[0] !== "c9966227012cab85e29278e1c8a710fd408ed34dfcad88a24d905811c73e1f19") {
522
+ for (let $i = 0; $i < 19; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
523
+ $[0] = "c9966227012cab85e29278e1c8a710fd408ed34dfcad88a24d905811c73e1f19";
524
+ }
485
525
  const { arg, popover: t1 } = t0;
486
526
  const popover = t1 === void 0 ? true : t1;
487
527
  const isObject = typeof arg === "object" && arg !== null;
488
528
  let t2;
489
- if ($[0] !== arg) {
529
+ if ($[1] !== arg) {
490
530
  t2 = formatArgumentValue(arg);
491
- $[0] = arg;
492
- $[1] = t2;
493
- } else t2 = $[1];
531
+ $[1] = arg;
532
+ $[2] = t2;
533
+ } else t2 = $[2];
494
534
  const value = t2;
495
535
  let t3;
496
- if ($[2] !== arg) {
536
+ if ($[3] !== arg) {
497
537
  t3 = JSON.stringify(arg, null, 2);
498
- $[2] = arg;
499
- $[3] = t3;
500
- } else t3 = $[3];
538
+ $[3] = arg;
539
+ $[4] = t3;
540
+ } else t3 = $[4];
501
541
  const textToCopy = t3;
502
542
  if (!popover) {
503
543
  let t4$1;
504
- if ($[4] !== arg || $[5] !== isObject || $[6] !== value) {
544
+ if ($[5] !== arg || $[6] !== isObject || $[7] !== value) {
505
545
  t4$1 = /* @__PURE__ */ jsx(Fragment$1, { children: isObject ? /* @__PURE__ */ jsx(ReactJson, {
506
546
  src: arg,
507
547
  theme: "default",
@@ -511,15 +551,15 @@ const Argument = memo((t0) => {
511
551
  className: "font-mono text-blue-500",
512
552
  children: value
513
553
  }) });
514
- $[4] = arg;
515
- $[5] = isObject;
516
- $[6] = value;
517
- $[7] = t4$1;
518
- } else t4$1 = $[7];
554
+ $[5] = arg;
555
+ $[6] = isObject;
556
+ $[7] = value;
557
+ $[8] = t4$1;
558
+ } else t4$1 = $[8];
519
559
  return t4$1;
520
560
  }
521
561
  let t4;
522
- if ($[8] !== value) {
562
+ if ($[9] !== value) {
523
563
  t4 = /* @__PURE__ */ jsx(PopoverTrigger, {
524
564
  asChild: true,
525
565
  children: /* @__PURE__ */ jsx("span", {
@@ -527,11 +567,11 @@ const Argument = memo((t0) => {
527
567
  children: value
528
568
  })
529
569
  });
530
- $[8] = value;
531
- $[9] = t4;
532
- } else t4 = $[9];
570
+ $[9] = value;
571
+ $[10] = t4;
572
+ } else t4 = $[10];
533
573
  let t5;
534
- if ($[10] !== arg || $[11] !== isObject || $[12] !== textToCopy || $[13] !== value) {
574
+ if ($[11] !== arg || $[12] !== isObject || $[13] !== textToCopy || $[14] !== value) {
535
575
  t5 = /* @__PURE__ */ jsx(PopoverContent, {
536
576
  className: "backdrop-blur-md w-auto max-w-2xl relative max-h-[50vh] overflow-y-auto",
537
577
  hideWhenDetached: true,
@@ -553,19 +593,19 @@ const Argument = memo((t0) => {
553
593
  })]
554
594
  })
555
595
  });
556
- $[10] = arg;
557
- $[11] = isObject;
558
- $[12] = textToCopy;
559
- $[13] = value;
560
- $[14] = t5;
561
- } else t5 = $[14];
596
+ $[11] = arg;
597
+ $[12] = isObject;
598
+ $[13] = textToCopy;
599
+ $[14] = value;
600
+ $[15] = t5;
601
+ } else t5 = $[15];
562
602
  let t6;
563
- if ($[15] !== t4 || $[16] !== t5) {
603
+ if ($[16] !== t4 || $[17] !== t5) {
564
604
  t6 = /* @__PURE__ */ jsxs(Popover, { children: [t4, t5] });
565
- $[15] = t4;
566
- $[16] = t5;
567
- $[17] = t6;
568
- } else t6 = $[17];
605
+ $[16] = t4;
606
+ $[17] = t5;
607
+ $[18] = t6;
608
+ } else t6 = $[18];
569
609
  return t6;
570
610
  });
571
611
  Argument.displayName = "Argument";
@@ -573,38 +613,42 @@ Argument.displayName = "Argument";
573
613
  //#endregion
574
614
  //#region src/components/events/code/closing-parenthesis.tsx
575
615
  const ClosingParenthesis = memo((t0) => {
576
- const $ = c(7);
616
+ const $ = c(8);
617
+ if ($[0] !== "4ab03367b18a84c2b46e40ed2eb5f7059f595a509137274a6e998e2052c417ca") {
618
+ for (let $i = 0; $i < 8; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
619
+ $[0] = "4ab03367b18a84c2b46e40ed2eb5f7059f595a509137274a6e998e2052c417ca";
620
+ }
577
621
  const { callsQuantity, noQuantity: t1 } = t0;
578
622
  const noQuantity = t1 === void 0 ? false : t1;
579
623
  const hasCalls = callsQuantity && callsQuantity > 1;
580
624
  let t2;
581
- if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
625
+ if ($[1] === Symbol.for("react.memo_cache_sentinel")) {
582
626
  t2 = /* @__PURE__ */ jsx("span", {
583
627
  className: "font-mono text-emerald-500",
584
628
  children: ")"
585
629
  });
586
- $[0] = t2;
587
- } else t2 = $[0];
630
+ $[1] = t2;
631
+ } else t2 = $[1];
588
632
  let t3;
589
- if ($[1] !== callsQuantity || $[2] !== hasCalls || $[3] !== noQuantity) {
633
+ if ($[2] !== callsQuantity || $[3] !== hasCalls || $[4] !== noQuantity) {
590
634
  t3 = !noQuantity && hasCalls && /* @__PURE__ */ jsxs("span", {
591
635
  className: "font-mono text-muted-foreground",
592
636
  children: [" x", callsQuantity]
593
637
  });
594
- $[1] = callsQuantity;
595
- $[2] = hasCalls;
596
- $[3] = noQuantity;
597
- $[4] = t3;
598
- } else t3 = $[4];
638
+ $[2] = callsQuantity;
639
+ $[3] = hasCalls;
640
+ $[4] = noQuantity;
641
+ $[5] = t3;
642
+ } else t3 = $[5];
599
643
  let t4;
600
- if ($[5] !== t3) {
644
+ if ($[6] !== t3) {
601
645
  t4 = /* @__PURE__ */ jsxs("div", {
602
646
  className: "flex items-center",
603
647
  children: [t2, t3]
604
648
  });
605
- $[5] = t3;
606
- $[6] = t4;
607
- } else t4 = $[6];
649
+ $[6] = t3;
650
+ $[7] = t4;
651
+ } else t4 = $[7];
608
652
  return t4;
609
653
  });
610
654
  ClosingParenthesis.displayName = "ClosingParenthesis";
@@ -612,70 +656,74 @@ ClosingParenthesis.displayName = "ClosingParenthesis";
612
656
  //#endregion
613
657
  //#region src/components/events/code/function-call-content.tsx
614
658
  const FunctionCallContent = forwardRef((t0, ref) => {
615
- const $ = c(22);
659
+ const $ = c(23);
660
+ if ($[0] !== "f9cee2defe3a707d028f8a516d115937e9c066312490fa54845af3b1f275f18b") {
661
+ for (let $i = 0; $i < 23; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
662
+ $[0] = "f9cee2defe3a707d028f8a516d115937e9c066312490fa54845af3b1f275f18b";
663
+ }
616
664
  let className;
617
665
  let functionName;
618
666
  let objectName;
619
667
  let props;
620
668
  let topLevelClassName;
621
- if ($[0] !== t0) {
669
+ if ($[1] !== t0) {
622
670
  ({topLevelClassName, objectName, functionName, className, ...props} = t0);
623
- $[0] = t0;
624
- $[1] = className;
625
- $[2] = functionName;
626
- $[3] = objectName;
627
- $[4] = props;
628
- $[5] = topLevelClassName;
671
+ $[1] = t0;
672
+ $[2] = className;
673
+ $[3] = functionName;
674
+ $[4] = objectName;
675
+ $[5] = props;
676
+ $[6] = topLevelClassName;
629
677
  } else {
630
- className = $[1];
631
- functionName = $[2];
632
- objectName = $[3];
633
- props = $[4];
634
- topLevelClassName = $[5];
678
+ className = $[2];
679
+ functionName = $[3];
680
+ objectName = $[4];
681
+ props = $[5];
682
+ topLevelClassName = $[6];
635
683
  }
636
684
  let t1;
637
- if ($[6] !== className) {
685
+ if ($[7] !== className) {
638
686
  t1 = cn("flex items-center", className);
639
- $[6] = className;
640
- $[7] = t1;
641
- } else t1 = $[7];
687
+ $[7] = className;
688
+ $[8] = t1;
689
+ } else t1 = $[8];
642
690
  let t2;
643
- if ($[8] !== topLevelClassName) {
691
+ if ($[9] !== topLevelClassName) {
644
692
  t2 = topLevelClassName && /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx("span", {
645
693
  className: "font-mono text-pink-500",
646
694
  children: topLevelClassName
647
695
  }), /* @__PURE__ */ jsx("span", { children: "." })] });
648
- $[8] = topLevelClassName;
649
- $[9] = t2;
650
- } else t2 = $[9];
696
+ $[9] = topLevelClassName;
697
+ $[10] = t2;
698
+ } else t2 = $[10];
651
699
  let t3;
652
- if ($[10] !== objectName) {
700
+ if ($[11] !== objectName) {
653
701
  t3 = objectName && /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx("span", {
654
702
  className: "font-mono text-pink-500",
655
703
  children: objectName
656
704
  }), /* @__PURE__ */ jsx("span", { children: "." })] });
657
- $[10] = objectName;
658
- $[11] = t3;
659
- } else t3 = $[11];
705
+ $[11] = objectName;
706
+ $[12] = t3;
707
+ } else t3 = $[12];
660
708
  let t4;
661
- if ($[12] !== functionName) {
709
+ if ($[13] !== functionName) {
662
710
  t4 = /* @__PURE__ */ jsx("span", {
663
711
  className: "font-mono text-pink-500",
664
712
  children: functionName
665
713
  });
666
- $[12] = functionName;
667
- $[13] = t4;
668
- } else t4 = $[13];
714
+ $[13] = functionName;
715
+ $[14] = t4;
716
+ } else t4 = $[14];
669
717
  let t5;
670
- if ($[14] === Symbol.for("react.memo_cache_sentinel")) {
718
+ if ($[15] === Symbol.for("react.memo_cache_sentinel")) {
671
719
  t5 = /* @__PURE__ */ jsx("span", {
672
720
  className: "font-mono text-emerald-500",
673
721
  children: "("
674
722
  });
675
- $[14] = t5;
676
- } else t5 = $[14];
723
+ $[15] = t5;
724
+ } else t5 = $[15];
677
725
  let t6;
678
- if ($[15] !== props || $[16] !== ref || $[17] !== t1 || $[18] !== t2 || $[19] !== t3 || $[20] !== t4) {
726
+ if ($[16] !== props || $[17] !== ref || $[18] !== t1 || $[19] !== t2 || $[20] !== t3 || $[21] !== t4) {
679
727
  t6 = /* @__PURE__ */ jsxs("div", {
680
728
  ref,
681
729
  className: t1,
@@ -687,14 +735,14 @@ const FunctionCallContent = forwardRef((t0, ref) => {
687
735
  t5
688
736
  ]
689
737
  });
690
- $[15] = props;
691
- $[16] = ref;
692
- $[17] = t1;
693
- $[18] = t2;
694
- $[19] = t3;
695
- $[20] = t4;
696
- $[21] = t6;
697
- } else t6 = $[21];
738
+ $[16] = props;
739
+ $[17] = ref;
740
+ $[18] = t1;
741
+ $[19] = t2;
742
+ $[20] = t3;
743
+ $[21] = t4;
744
+ $[22] = t6;
745
+ } else t6 = $[22];
698
746
  return t6;
699
747
  });
700
748
  FunctionCallContent.displayName = "FunctionCallContent";
@@ -703,41 +751,45 @@ FunctionCallContent.displayName = "FunctionCallContent";
703
751
  //#region src/components/events/code/function-call.tsx
704
752
  const GRID_LAYOUT_STYLE = { gridTemplateColumns: "max-content 1fr max-content" };
705
753
  const FunctionCall = memo((t0) => {
706
- const $ = c(48);
754
+ const $ = c(49);
755
+ if ($[0] !== "a4649595a9d35de28471f3275d991c694dbeccd05d971cc25fd0884247e778d1") {
756
+ for (let $i = 0; $i < 49; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
757
+ $[0] = "a4649595a9d35de28471f3275d991c694dbeccd05d971cc25fd0884247e778d1";
758
+ }
707
759
  const { topLevelClassName, objectName, functionName, args, callsQuantity } = t0;
708
760
  let t1;
709
- if ($[0] !== args) {
761
+ if ($[1] !== args) {
710
762
  t1 = args.filter(_temp$4);
711
- $[0] = args;
712
- $[1] = t1;
713
- } else t1 = $[1];
763
+ $[1] = args;
764
+ $[2] = t1;
765
+ } else t1 = $[2];
714
766
  const filteredArgs = t1;
715
767
  const t2 = `repeat(${filteredArgs.length * 2}, minmax(0, auto))`;
716
768
  let t3;
717
- if ($[2] !== t2) {
769
+ if ($[3] !== t2) {
718
770
  t3 = { gridTemplateColumns: t2 };
719
- $[2] = t2;
720
- $[3] = t3;
721
- } else t3 = $[3];
771
+ $[3] = t2;
772
+ $[4] = t3;
773
+ } else t3 = $[4];
722
774
  const argsGridStyle = t3;
723
775
  let t4;
724
- if ($[4] !== objectName || $[5] !== topLevelClassName) {
776
+ if ($[5] !== objectName || $[6] !== topLevelClassName) {
725
777
  t4 = [topLevelClassName, objectName].filter(Boolean);
726
- $[4] = objectName;
727
- $[5] = topLevelClassName;
728
- $[6] = t4;
729
- } else t4 = $[6];
778
+ $[5] = objectName;
779
+ $[6] = topLevelClassName;
780
+ $[7] = t4;
781
+ } else t4 = $[7];
730
782
  const prefix = t4.join(".");
731
783
  const fullPrefix = prefix ? `${prefix}.` : "";
732
784
  let t5;
733
- if ($[7] !== filteredArgs) {
785
+ if ($[8] !== filteredArgs) {
734
786
  t5 = filteredArgs.map(_temp2$2).join(", ");
735
- $[7] = filteredArgs;
736
- $[8] = t5;
737
- } else t5 = $[8];
787
+ $[8] = filteredArgs;
788
+ $[9] = t5;
789
+ } else t5 = $[9];
738
790
  const functionCallText = `${fullPrefix}${functionName}(${t5})`;
739
791
  let t6;
740
- if ($[9] !== functionName || $[10] !== objectName || $[11] !== topLevelClassName) {
792
+ if ($[10] !== functionName || $[11] !== objectName || $[12] !== topLevelClassName) {
741
793
  t6 = /* @__PURE__ */ jsx(PopoverTrigger, {
742
794
  asChild: true,
743
795
  children: /* @__PURE__ */ jsx(FunctionCallContent, {
@@ -747,43 +799,43 @@ const FunctionCall = memo((t0) => {
747
799
  objectName
748
800
  })
749
801
  });
750
- $[9] = functionName;
751
- $[10] = objectName;
752
- $[11] = topLevelClassName;
753
- $[12] = t6;
754
- } else t6 = $[12];
802
+ $[10] = functionName;
803
+ $[11] = objectName;
804
+ $[12] = topLevelClassName;
805
+ $[13] = t6;
806
+ } else t6 = $[13];
755
807
  let t7;
756
- if ($[13] !== functionName || $[14] !== objectName || $[15] !== topLevelClassName) {
808
+ if ($[14] !== functionName || $[15] !== objectName || $[16] !== topLevelClassName) {
757
809
  t7 = /* @__PURE__ */ jsx(FunctionCallContent, {
758
810
  functionName,
759
811
  topLevelClassName,
760
812
  objectName
761
813
  });
762
- $[13] = functionName;
763
- $[14] = objectName;
764
- $[15] = topLevelClassName;
765
- $[16] = t7;
766
- } else t7 = $[16];
814
+ $[14] = functionName;
815
+ $[15] = objectName;
816
+ $[16] = topLevelClassName;
817
+ $[17] = t7;
818
+ } else t7 = $[17];
767
819
  let t8;
768
- if ($[17] !== functionCallText) {
820
+ if ($[18] !== functionCallText) {
769
821
  t8 = /* @__PURE__ */ jsx(CopyButton, { textToCopy: functionCallText });
770
- $[17] = functionCallText;
771
- $[18] = t8;
772
- } else t8 = $[18];
822
+ $[18] = functionCallText;
823
+ $[19] = t8;
824
+ } else t8 = $[19];
773
825
  let t9;
774
- if ($[19] !== t7 || $[20] !== t8) {
826
+ if ($[20] !== t7 || $[21] !== t8) {
775
827
  t9 = /* @__PURE__ */ jsxs("div", {
776
828
  className: "flex items-center justify-between gap-2",
777
829
  children: [t7, t8]
778
830
  });
779
- $[19] = t7;
780
- $[20] = t8;
781
- $[21] = t9;
782
- } else t9 = $[21];
831
+ $[20] = t7;
832
+ $[21] = t8;
833
+ $[22] = t9;
834
+ } else t9 = $[22];
783
835
  let t10;
784
- if ($[22] !== filteredArgs) {
836
+ if ($[23] !== filteredArgs) {
785
837
  let t11$1;
786
- if ($[24] !== filteredArgs.length) {
838
+ if ($[25] !== filteredArgs.length) {
787
839
  t11$1 = (arg_1, index) => /* @__PURE__ */ jsxs("div", {
788
840
  className: "grid grid-cols-[auto_1fr] items-center pl-4",
789
841
  children: [/* @__PURE__ */ jsx(Argument, {
@@ -791,24 +843,24 @@ const FunctionCall = memo((t0) => {
791
843
  popover: false
792
844
  }), index < filteredArgs.length - 1 && /* @__PURE__ */ jsx("span", { children: ", " })]
793
845
  }, index);
794
- $[24] = filteredArgs.length;
795
- $[25] = t11$1;
796
- } else t11$1 = $[25];
846
+ $[25] = filteredArgs.length;
847
+ $[26] = t11$1;
848
+ } else t11$1 = $[26];
797
849
  t10 = filteredArgs.map(t11$1);
798
- $[22] = filteredArgs;
799
- $[23] = t10;
800
- } else t10 = $[23];
850
+ $[23] = filteredArgs;
851
+ $[24] = t10;
852
+ } else t10 = $[24];
801
853
  let t11;
802
- if ($[26] !== callsQuantity) {
854
+ if ($[27] !== callsQuantity) {
803
855
  t11 = /* @__PURE__ */ jsx(ClosingParenthesis, {
804
856
  callsQuantity,
805
857
  noQuantity: true
806
858
  });
807
- $[26] = callsQuantity;
808
- $[27] = t11;
809
- } else t11 = $[27];
859
+ $[27] = callsQuantity;
860
+ $[28] = t11;
861
+ } else t11 = $[28];
810
862
  let t12;
811
- if ($[28] !== t10 || $[29] !== t11 || $[30] !== t9) {
863
+ if ($[29] !== t10 || $[30] !== t11 || $[31] !== t9) {
812
864
  t12 = /* @__PURE__ */ jsxs(PopoverContent, {
813
865
  className: "grid grid-rows-auto backdrop-blur-md w-auto max-w-2xl max-h-[50vh] overflow-y-auto",
814
866
  hideWhenDetached: true,
@@ -818,49 +870,49 @@ const FunctionCall = memo((t0) => {
818
870
  t11
819
871
  ]
820
872
  });
821
- $[28] = t10;
822
- $[29] = t11;
823
- $[30] = t9;
824
- $[31] = t12;
825
- } else t12 = $[31];
873
+ $[29] = t10;
874
+ $[30] = t11;
875
+ $[31] = t9;
876
+ $[32] = t12;
877
+ } else t12 = $[32];
826
878
  let t13;
827
- if ($[32] !== t12 || $[33] !== t6) {
879
+ if ($[33] !== t12 || $[34] !== t6) {
828
880
  t13 = /* @__PURE__ */ jsxs(Popover, { children: [t6, t12] });
829
- $[32] = t12;
830
- $[33] = t6;
831
- $[34] = t13;
832
- } else t13 = $[34];
881
+ $[33] = t12;
882
+ $[34] = t6;
883
+ $[35] = t13;
884
+ } else t13 = $[35];
833
885
  let t14;
834
- if ($[35] !== filteredArgs) {
886
+ if ($[36] !== filteredArgs) {
835
887
  let t15$1;
836
- if ($[37] !== filteredArgs.length) {
888
+ if ($[38] !== filteredArgs.length) {
837
889
  t15$1 = (arg_2, index_0) => /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(Argument, { arg: arg_2 }), index_0 < filteredArgs.length - 1 && /* @__PURE__ */ jsx("span", { children: ", " })] }, index_0);
838
- $[37] = filteredArgs.length;
839
- $[38] = t15$1;
840
- } else t15$1 = $[38];
890
+ $[38] = filteredArgs.length;
891
+ $[39] = t15$1;
892
+ } else t15$1 = $[39];
841
893
  t14 = filteredArgs.map(t15$1);
842
- $[35] = filteredArgs;
843
- $[36] = t14;
844
- } else t14 = $[36];
894
+ $[36] = filteredArgs;
895
+ $[37] = t14;
896
+ } else t14 = $[37];
845
897
  let t15;
846
- if ($[39] !== argsGridStyle || $[40] !== t14) {
898
+ if ($[40] !== argsGridStyle || $[41] !== t14) {
847
899
  t15 = /* @__PURE__ */ jsx("div", {
848
900
  className: "grid items-center min-w-0",
849
901
  style: argsGridStyle,
850
902
  children: t14
851
903
  });
852
- $[39] = argsGridStyle;
853
- $[40] = t14;
854
- $[41] = t15;
855
- } else t15 = $[41];
904
+ $[40] = argsGridStyle;
905
+ $[41] = t14;
906
+ $[42] = t15;
907
+ } else t15 = $[42];
856
908
  let t16;
857
- if ($[42] !== callsQuantity) {
909
+ if ($[43] !== callsQuantity) {
858
910
  t16 = /* @__PURE__ */ jsx(ClosingParenthesis, { callsQuantity });
859
- $[42] = callsQuantity;
860
- $[43] = t16;
861
- } else t16 = $[43];
911
+ $[43] = callsQuantity;
912
+ $[44] = t16;
913
+ } else t16 = $[44];
862
914
  let t17;
863
- if ($[44] !== t13 || $[45] !== t15 || $[46] !== t16) {
915
+ if ($[45] !== t13 || $[46] !== t15 || $[47] !== t16) {
864
916
  t17 = /* @__PURE__ */ jsxs("div", {
865
917
  className: "grid overflow-hidden items-center",
866
918
  style: GRID_LAYOUT_STYLE,
@@ -870,11 +922,11 @@ const FunctionCall = memo((t0) => {
870
922
  t16
871
923
  ]
872
924
  });
873
- $[44] = t13;
874
- $[45] = t15;
875
- $[46] = t16;
876
- $[47] = t17;
877
- } else t17 = $[47];
925
+ $[45] = t13;
926
+ $[46] = t15;
927
+ $[47] = t16;
928
+ $[48] = t17;
929
+ } else t17 = $[48];
878
930
  return t17;
879
931
  });
880
932
  FunctionCall.displayName = "FunctionCall";
@@ -891,28 +943,32 @@ function _temp2$2(arg_0) {
891
943
  //#endregion
892
944
  //#region src/components/events/trace-emit-event.tsx
893
945
  const TraceEmitEvent = memo((t0) => {
894
- const $ = c(5);
946
+ const $ = c(6);
947
+ if ($[0] !== "1c99155502674878739fbbcfa0a143efee75279ad69880260a5f175528b3f050") {
948
+ for (let $i = 0; $i < 6; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
949
+ $[0] = "1c99155502674878739fbbcfa0a143efee75279ad69880260a5f175528b3f050";
950
+ }
895
951
  const { event } = t0;
896
952
  let t1;
897
- if ($[0] !== event.data || $[1] !== event.topic) {
953
+ if ($[1] !== event.data || $[2] !== event.topic) {
898
954
  t1 = [{
899
955
  topic: event.topic,
900
956
  data: event.data
901
957
  }];
902
- $[0] = event.data;
903
- $[1] = event.topic;
904
- $[2] = t1;
905
- } else t1 = $[2];
958
+ $[1] = event.data;
959
+ $[2] = event.topic;
960
+ $[3] = t1;
961
+ } else t1 = $[3];
906
962
  const args = t1;
907
963
  let t2;
908
- if ($[3] !== args) {
964
+ if ($[4] !== args) {
909
965
  t2 = /* @__PURE__ */ jsx(FunctionCall, {
910
966
  functionName: "emit",
911
967
  args
912
968
  });
913
- $[3] = args;
914
- $[4] = t2;
915
- } else t2 = $[4];
969
+ $[4] = args;
970
+ $[5] = t2;
971
+ } else t2 = $[5];
916
972
  return t2;
917
973
  });
918
974
  TraceEmitEvent.displayName = "TraceEmitEvent";
@@ -920,16 +976,20 @@ TraceEmitEvent.displayName = "TraceEmitEvent";
920
976
  //#endregion
921
977
  //#region src/components/events/trace-log-event.tsx
922
978
  const TraceLogEvent = memo((t0) => {
923
- const $ = c(5);
979
+ const $ = c(6);
980
+ if ($[0] !== "2ad036e2c4427811bdd655eab2630232cdaa410e5242349c3064a1c0f232d784") {
981
+ for (let $i = 0; $i < 6; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
982
+ $[0] = "2ad036e2c4427811bdd655eab2630232cdaa410e5242349c3064a1c0f232d784";
983
+ }
924
984
  const { event } = t0;
925
985
  let t1;
926
- if ($[0] !== event.level) {
986
+ if ($[1] !== event.level) {
927
987
  t1 = /* @__PURE__ */ jsx(LevelDot, { level: event.level });
928
- $[0] = event.level;
929
- $[1] = t1;
930
- } else t1 = $[1];
988
+ $[1] = event.level;
989
+ $[2] = t1;
990
+ } else t1 = $[2];
931
991
  let t2;
932
- if ($[2] !== event.message || $[3] !== t1) {
992
+ if ($[3] !== event.message || $[4] !== t1) {
933
993
  t2 = /* @__PURE__ */ jsxs("div", {
934
994
  className: "flex items-center gap-2",
935
995
  children: [
@@ -938,10 +998,10 @@ const TraceLogEvent = memo((t0) => {
938
998
  event.message
939
999
  ]
940
1000
  });
941
- $[2] = event.message;
942
- $[3] = t1;
943
- $[4] = t2;
944
- } else t2 = $[4];
1001
+ $[3] = event.message;
1002
+ $[4] = t1;
1003
+ $[5] = t2;
1004
+ } else t2 = $[5];
945
1005
  return t2;
946
1006
  });
947
1007
  TraceLogEvent.displayName = "TraceLogEvent";
@@ -949,32 +1009,36 @@ TraceLogEvent.displayName = "TraceLogEvent";
949
1009
  //#endregion
950
1010
  //#region src/components/events/trace-state-event.tsx
951
1011
  const TraceStateEvent = memo((t0) => {
952
- const $ = c(7);
1012
+ const $ = c(8);
1013
+ if ($[0] !== "7c38f56f572803a01857cb4bed35b853c294cca3e11476480cd02e0ce7b86827") {
1014
+ for (let $i = 0; $i < 8; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
1015
+ $[0] = "7c38f56f572803a01857cb4bed35b853c294cca3e11476480cd02e0ce7b86827";
1016
+ }
953
1017
  const { event } = t0;
954
1018
  let t1;
955
- if ($[0] !== event.data.key || $[1] !== event.data.traceId || $[2] !== event.data.value) {
1019
+ if ($[1] !== event.data.key || $[2] !== event.data.traceId || $[3] !== event.data.value) {
956
1020
  t1 = [
957
1021
  event.data.traceId,
958
1022
  event.data.key,
959
1023
  event.data.value
960
1024
  ];
961
- $[0] = event.data.key;
962
- $[1] = event.data.traceId;
963
- $[2] = event.data.value;
964
- $[3] = t1;
965
- } else t1 = $[3];
1025
+ $[1] = event.data.key;
1026
+ $[2] = event.data.traceId;
1027
+ $[3] = event.data.value;
1028
+ $[4] = t1;
1029
+ } else t1 = $[4];
966
1030
  const args = t1;
967
1031
  let t2;
968
- if ($[4] !== args || $[5] !== event.operation) {
1032
+ if ($[5] !== args || $[6] !== event.operation) {
969
1033
  t2 = /* @__PURE__ */ jsx(FunctionCall, {
970
1034
  objectName: "state",
971
1035
  functionName: event.operation,
972
1036
  args
973
1037
  });
974
- $[4] = args;
975
- $[5] = event.operation;
976
- $[6] = t2;
977
- } else t2 = $[6];
1038
+ $[5] = args;
1039
+ $[6] = event.operation;
1040
+ $[7] = t2;
1041
+ } else t2 = $[7];
978
1042
  return t2;
979
1043
  });
980
1044
  TraceStateEvent.displayName = "TraceStateEvent";
@@ -982,24 +1046,28 @@ TraceStateEvent.displayName = "TraceStateEvent";
982
1046
  //#endregion
983
1047
  //#region src/components/events/trace-stream-event.tsx
984
1048
  const TraceStreamEvent = memo((t0) => {
985
- const $ = c(9);
1049
+ const $ = c(10);
1050
+ if ($[0] !== "6c8ca715a79e72803fc3cde1b57bcfc9af7f426e893ce07dc6f50cf811b702b6") {
1051
+ for (let $i = 0; $i < 10; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
1052
+ $[0] = "6c8ca715a79e72803fc3cde1b57bcfc9af7f426e893ce07dc6f50cf811b702b6";
1053
+ }
986
1054
  const { event } = t0;
987
1055
  const t1 = event.data.data;
988
1056
  let t2;
989
- if ($[0] !== event.data.groupId || $[1] !== event.data.id || $[2] !== t1) {
1057
+ if ($[1] !== event.data.groupId || $[2] !== event.data.id || $[3] !== t1) {
990
1058
  t2 = [
991
1059
  event.data.groupId,
992
1060
  event.data.id,
993
1061
  t1
994
1062
  ];
995
- $[0] = event.data.groupId;
996
- $[1] = event.data.id;
997
- $[2] = t1;
998
- $[3] = t2;
999
- } else t2 = $[3];
1063
+ $[1] = event.data.groupId;
1064
+ $[2] = event.data.id;
1065
+ $[3] = t1;
1066
+ $[4] = t2;
1067
+ } else t2 = $[4];
1000
1068
  const args = t2;
1001
1069
  let t3;
1002
- if ($[4] !== args || $[5] !== event.calls || $[6] !== event.operation || $[7] !== event.streamName) {
1070
+ if ($[5] !== args || $[6] !== event.calls || $[7] !== event.operation || $[8] !== event.streamName) {
1003
1071
  t3 = /* @__PURE__ */ jsx(FunctionCall, {
1004
1072
  topLevelClassName: "streams",
1005
1073
  objectName: event.streamName,
@@ -1007,12 +1075,12 @@ const TraceStreamEvent = memo((t0) => {
1007
1075
  args,
1008
1076
  callsQuantity: event.calls
1009
1077
  });
1010
- $[4] = args;
1011
- $[5] = event.calls;
1012
- $[6] = event.operation;
1013
- $[7] = event.streamName;
1014
- $[8] = t3;
1015
- } else t3 = $[8];
1078
+ $[5] = args;
1079
+ $[6] = event.calls;
1080
+ $[7] = event.operation;
1081
+ $[8] = event.streamName;
1082
+ $[9] = t3;
1083
+ } else t3 = $[9];
1016
1084
  return t3;
1017
1085
  });
1018
1086
  TraceStreamEvent.displayName = "TraceStreamEvent";
@@ -1020,39 +1088,43 @@ TraceStreamEvent.displayName = "TraceStreamEvent";
1020
1088
  //#endregion
1021
1089
  //#region src/components/events/trace-event.tsx
1022
1090
  const TraceEvent = memo((t0) => {
1023
- const $ = c(8);
1091
+ const $ = c(9);
1092
+ if ($[0] !== "bb6873064e676dc947ff1df89d486f742da27c53a44f3427557c30d4dcc50852") {
1093
+ for (let $i = 0; $i < 9; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
1094
+ $[0] = "bb6873064e676dc947ff1df89d486f742da27c53a44f3427557c30d4dcc50852";
1095
+ }
1024
1096
  const { event } = t0;
1025
1097
  if (event.type === "log") {
1026
1098
  let t1;
1027
- if ($[0] !== event) {
1099
+ if ($[1] !== event) {
1028
1100
  t1 = /* @__PURE__ */ jsx(TraceLogEvent, { event });
1029
- $[0] = event;
1030
- $[1] = t1;
1031
- } else t1 = $[1];
1101
+ $[1] = event;
1102
+ $[2] = t1;
1103
+ } else t1 = $[2];
1032
1104
  return t1;
1033
1105
  } else if (event.type === "emit") {
1034
1106
  let t1;
1035
- if ($[2] !== event) {
1107
+ if ($[3] !== event) {
1036
1108
  t1 = /* @__PURE__ */ jsx(TraceEmitEvent, { event });
1037
- $[2] = event;
1038
- $[3] = t1;
1039
- } else t1 = $[3];
1109
+ $[3] = event;
1110
+ $[4] = t1;
1111
+ } else t1 = $[4];
1040
1112
  return t1;
1041
1113
  } else if (event.type === "state") {
1042
1114
  let t1;
1043
- if ($[4] !== event) {
1115
+ if ($[5] !== event) {
1044
1116
  t1 = /* @__PURE__ */ jsx(TraceStateEvent, { event });
1045
- $[4] = event;
1046
- $[5] = t1;
1047
- } else t1 = $[5];
1117
+ $[5] = event;
1118
+ $[6] = t1;
1119
+ } else t1 = $[6];
1048
1120
  return t1;
1049
1121
  } else if (event.type === "stream") {
1050
1122
  let t1;
1051
- if ($[6] !== event) {
1123
+ if ($[7] !== event) {
1052
1124
  t1 = /* @__PURE__ */ jsx(TraceStreamEvent, { event });
1053
- $[6] = event;
1054
- $[7] = t1;
1055
- } else t1 = $[7];
1125
+ $[7] = event;
1126
+ $[8] = t1;
1127
+ } else t1 = $[8];
1056
1128
  return t1;
1057
1129
  }
1058
1130
  });
@@ -1061,34 +1133,38 @@ TraceEvent.displayName = "TraceEvent";
1061
1133
  //#endregion
1062
1134
  //#region src/components/trace-item/trace-event-item.tsx
1063
1135
  const TraceEventItem = memo((t0) => {
1064
- const $ = c(13);
1136
+ const $ = c(14);
1137
+ if ($[0] !== "6a7235dddbab5b9658f53f7dc4ccc892ec78776c6bf4ebe24fc950401299f990") {
1138
+ for (let $i = 0; $i < 14; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
1139
+ $[0] = "6a7235dddbab5b9658f53f7dc4ccc892ec78776c6bf4ebe24fc950401299f990";
1140
+ }
1065
1141
  const { event, traceStartTime } = t0;
1066
1142
  let t1;
1067
- if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
1143
+ if ($[1] === Symbol.for("react.memo_cache_sentinel")) {
1068
1144
  t1 = /* @__PURE__ */ jsx("div", {
1069
1145
  className: "grid place-items-center",
1070
1146
  children: /* @__PURE__ */ jsx("div", { className: "w-1 h-1 rounded-full bg-emerald-500 outline outline-2 outline-emerald-500/50 -ml-[26px]" })
1071
1147
  });
1072
- $[0] = t1;
1073
- } else t1 = $[0];
1148
+ $[1] = t1;
1149
+ } else t1 = $[1];
1074
1150
  let t2;
1075
- if ($[1] !== event) {
1151
+ if ($[2] !== event) {
1076
1152
  t2 = /* @__PURE__ */ jsx("div", {
1077
1153
  className: "grid place-items-center",
1078
1154
  children: /* @__PURE__ */ jsx(EventIcon, { event })
1079
1155
  });
1080
- $[1] = event;
1081
- $[2] = t2;
1082
- } else t2 = $[2];
1156
+ $[2] = event;
1157
+ $[3] = t2;
1158
+ } else t2 = $[3];
1083
1159
  const t3 = Math.floor(event.timestamp - traceStartTime);
1084
1160
  let t4;
1085
- if ($[3] !== t3) {
1161
+ if ($[4] !== t3) {
1086
1162
  t4 = formatDuration(t3);
1087
- $[3] = t3;
1088
- $[4] = t4;
1089
- } else t4 = $[4];
1163
+ $[4] = t3;
1164
+ $[5] = t4;
1165
+ } else t4 = $[5];
1090
1166
  let t5;
1091
- if ($[5] !== t4) {
1167
+ if ($[6] !== t4) {
1092
1168
  t5 = /* @__PURE__ */ jsx("div", {
1093
1169
  className: "grid place-items-center",
1094
1170
  children: /* @__PURE__ */ jsxs("span", {
@@ -1096,31 +1172,31 @@ const TraceEventItem = memo((t0) => {
1096
1172
  children: ["+", t4]
1097
1173
  })
1098
1174
  });
1099
- $[5] = t4;
1100
- $[6] = t5;
1101
- } else t5 = $[6];
1175
+ $[6] = t4;
1176
+ $[7] = t5;
1177
+ } else t5 = $[7];
1102
1178
  let t6;
1103
- if ($[7] !== event) {
1179
+ if ($[8] !== event) {
1104
1180
  t6 = /* @__PURE__ */ jsx("div", {
1105
1181
  className: "grid place-items-start",
1106
1182
  children: /* @__PURE__ */ jsx(TraceEvent, { event })
1107
1183
  });
1108
- $[7] = event;
1109
- $[8] = t6;
1110
- } else t6 = $[8];
1184
+ $[8] = event;
1185
+ $[9] = t6;
1186
+ } else t6 = $[9];
1111
1187
  let t7;
1112
- if ($[9] !== t2 || $[10] !== t5 || $[11] !== t6) {
1188
+ if ($[10] !== t2 || $[11] !== t5 || $[12] !== t6) {
1113
1189
  t7 = /* @__PURE__ */ jsxs(Fragment, { children: [
1114
1190
  t1,
1115
1191
  t2,
1116
1192
  t5,
1117
1193
  t6
1118
1194
  ] });
1119
- $[9] = t2;
1120
- $[10] = t5;
1121
- $[11] = t6;
1122
- $[12] = t7;
1123
- } else t7 = $[12];
1195
+ $[10] = t2;
1196
+ $[11] = t5;
1197
+ $[12] = t6;
1198
+ $[13] = t7;
1199
+ } else t7 = $[13];
1124
1200
  return t7;
1125
1201
  });
1126
1202
  TraceEventItem.displayName = "TraceEventItem";
@@ -1128,52 +1204,56 @@ TraceEventItem.displayName = "TraceEventItem";
1128
1204
  //#endregion
1129
1205
  //#region src/components/trace-item/trace-item-detail.tsx
1130
1206
  const TraceItemDetail = memo((t0) => {
1131
- const $ = c(32);
1207
+ const $ = c(33);
1208
+ if ($[0] !== "1a8f3badc41dcb22bbab4d8d915d8d9b99520c2bd79570b27acfb6158532a96a") {
1209
+ for (let $i = 0; $i < 33; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
1210
+ $[0] = "1a8f3badc41dcb22bbab4d8d915d8d9b99520c2bd79570b27acfb6158532a96a";
1211
+ }
1132
1212
  const { trace, onClose } = t0;
1133
1213
  let t1;
1134
- if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
1214
+ if ($[1] === Symbol.for("react.memo_cache_sentinel")) {
1135
1215
  t1 = /* @__PURE__ */ jsx(X, {});
1136
- $[0] = t1;
1137
- } else t1 = $[0];
1216
+ $[1] = t1;
1217
+ } else t1 = $[1];
1138
1218
  let t2;
1139
- if ($[1] !== onClose) {
1219
+ if ($[2] !== onClose) {
1140
1220
  t2 = [{
1141
1221
  icon: t1,
1142
1222
  onClick: onClose,
1143
1223
  label: "Close"
1144
1224
  }];
1145
- $[1] = onClose;
1146
- $[2] = t2;
1147
- } else t2 = $[2];
1225
+ $[2] = onClose;
1226
+ $[3] = t2;
1227
+ } else t2 = $[3];
1148
1228
  const actions = t2;
1149
1229
  const t3 = `Viewing details from step ${trace.name}`;
1150
1230
  let t4;
1151
- if ($[3] !== trace.endTime || $[4] !== trace.startTime) {
1231
+ if ($[4] !== trace.endTime || $[5] !== trace.startTime) {
1152
1232
  t4 = trace.endTime && /* @__PURE__ */ jsxs("span", { children: ["Duration: ", formatDuration(trace.endTime - trace.startTime)] });
1153
- $[3] = trace.endTime;
1154
- $[4] = trace.startTime;
1155
- $[5] = t4;
1156
- } else t4 = $[5];
1233
+ $[4] = trace.endTime;
1234
+ $[5] = trace.startTime;
1235
+ $[6] = t4;
1236
+ } else t4 = $[6];
1157
1237
  let t5;
1158
- if ($[6] !== trace.entryPoint.type) {
1238
+ if ($[7] !== trace.entryPoint.type) {
1159
1239
  t5 = /* @__PURE__ */ jsx("div", {
1160
1240
  className: "bg-blue-500 font-bold text-xs px-[4px] py-[2px] rounded-sm text-blue-100",
1161
1241
  children: trace.entryPoint.type
1162
1242
  });
1163
- $[6] = trace.entryPoint.type;
1164
- $[7] = t5;
1165
- } else t5 = $[7];
1243
+ $[7] = trace.entryPoint.type;
1244
+ $[8] = t5;
1245
+ } else t5 = $[8];
1166
1246
  let t6;
1167
- if ($[8] !== trace.correlationId) {
1247
+ if ($[9] !== trace.correlationId) {
1168
1248
  t6 = trace.correlationId && /* @__PURE__ */ jsxs(Badge, {
1169
1249
  variant: "outline",
1170
1250
  children: ["Correlated: ", trace.correlationId]
1171
1251
  });
1172
- $[8] = trace.correlationId;
1173
- $[9] = t6;
1174
- } else t6 = $[9];
1252
+ $[9] = trace.correlationId;
1253
+ $[10] = t6;
1254
+ } else t6 = $[10];
1175
1255
  let t7;
1176
- if ($[10] !== t4 || $[11] !== t5 || $[12] !== t6) {
1256
+ if ($[11] !== t4 || $[12] !== t5 || $[13] !== t6) {
1177
1257
  t7 = /* @__PURE__ */ jsxs("div", {
1178
1258
  className: "flex items-center gap-4 text-sm text-muted-foreground mb-4",
1179
1259
  children: [
@@ -1182,48 +1262,48 @@ const TraceItemDetail = memo((t0) => {
1182
1262
  t6
1183
1263
  ]
1184
1264
  });
1185
- $[10] = t4;
1186
- $[11] = t5;
1187
- $[12] = t6;
1188
- $[13] = t7;
1189
- } else t7 = $[13];
1265
+ $[11] = t4;
1266
+ $[12] = t5;
1267
+ $[13] = t6;
1268
+ $[14] = t7;
1269
+ } else t7 = $[14];
1190
1270
  let t8;
1191
- if ($[14] !== trace.events || $[15] !== trace.startTime) {
1271
+ if ($[15] !== trace.events || $[16] !== trace.startTime) {
1192
1272
  let t9$1;
1193
- if ($[17] !== trace.startTime) {
1273
+ if ($[18] !== trace.startTime) {
1194
1274
  t9$1 = (event, index) => /* @__PURE__ */ jsx(TraceEventItem, {
1195
1275
  event,
1196
1276
  traceStartTime: trace.startTime
1197
1277
  }, index);
1198
- $[17] = trace.startTime;
1199
- $[18] = t9$1;
1200
- } else t9$1 = $[18];
1278
+ $[18] = trace.startTime;
1279
+ $[19] = t9$1;
1280
+ } else t9$1 = $[19];
1201
1281
  t8 = trace.events.map(t9$1);
1202
- $[14] = trace.events;
1203
- $[15] = trace.startTime;
1204
- $[16] = t8;
1205
- } else t8 = $[16];
1282
+ $[15] = trace.events;
1283
+ $[16] = trace.startTime;
1284
+ $[17] = t8;
1285
+ } else t8 = $[17];
1206
1286
  let t9;
1207
- if ($[19] !== t8) {
1287
+ if ($[20] !== t8) {
1208
1288
  t9 = /* @__PURE__ */ jsx("div", {
1209
1289
  className: "grid grid-cols-[auto_auto_auto_1fr] gap-x-2 gap-y-3 font-mono text-xs border-l-1 border-gray-500/40 pl-6",
1210
1290
  children: t8
1211
1291
  });
1212
- $[19] = t8;
1213
- $[20] = t9;
1214
- } else t9 = $[20];
1292
+ $[20] = t8;
1293
+ $[21] = t9;
1294
+ } else t9 = $[21];
1215
1295
  let t10;
1216
- if ($[21] !== t7 || $[22] !== t9) {
1296
+ if ($[22] !== t7 || $[23] !== t9) {
1217
1297
  t10 = /* @__PURE__ */ jsxs("div", {
1218
1298
  className: "px-2 overflow-auto",
1219
1299
  children: [t7, t9]
1220
1300
  });
1221
- $[21] = t7;
1222
- $[22] = t9;
1223
- $[23] = t10;
1224
- } else t10 = $[23];
1301
+ $[22] = t7;
1302
+ $[23] = t9;
1303
+ $[24] = t10;
1304
+ } else t10 = $[24];
1225
1305
  let t11;
1226
- if ($[24] !== trace.error) {
1306
+ if ($[25] !== trace.error) {
1227
1307
  t11 = trace.error && /* @__PURE__ */ jsxs("div", {
1228
1308
  className: "p-4 bg-red-800/10",
1229
1309
  children: [/* @__PURE__ */ jsx("div", {
@@ -1234,11 +1314,11 @@ const TraceItemDetail = memo((t0) => {
1234
1314
  children: trace.error.stack
1235
1315
  })]
1236
1316
  });
1237
- $[24] = trace.error;
1238
- $[25] = t11;
1239
- } else t11 = $[25];
1317
+ $[25] = trace.error;
1318
+ $[26] = t11;
1319
+ } else t11 = $[26];
1240
1320
  let t12;
1241
- if ($[26] !== actions || $[27] !== onClose || $[28] !== t10 || $[29] !== t11 || $[30] !== t3) {
1321
+ if ($[27] !== actions || $[28] !== onClose || $[29] !== t10 || $[30] !== t11 || $[31] !== t3) {
1242
1322
  t12 = /* @__PURE__ */ jsxs(Sidebar, {
1243
1323
  onClose,
1244
1324
  initialWidth: 600,
@@ -1247,13 +1327,13 @@ const TraceItemDetail = memo((t0) => {
1247
1327
  actions,
1248
1328
  children: [t10, t11]
1249
1329
  });
1250
- $[26] = actions;
1251
- $[27] = onClose;
1252
- $[28] = t10;
1253
- $[29] = t11;
1254
- $[30] = t3;
1255
- $[31] = t12;
1256
- } else t12 = $[31];
1330
+ $[27] = actions;
1331
+ $[28] = onClose;
1332
+ $[29] = t10;
1333
+ $[30] = t11;
1334
+ $[31] = t3;
1335
+ $[32] = t12;
1336
+ } else t12 = $[32];
1257
1337
  return t12;
1258
1338
  });
1259
1339
  TraceItemDetail.displayName = "TraceItemDetail";
@@ -1261,103 +1341,111 @@ TraceItemDetail.displayName = "TraceItemDetail";
1261
1341
  //#endregion
1262
1342
  //#region src/components/trace-timeline.tsx
1263
1343
  const TraceTimeline = memo(() => {
1264
- const $ = c(2);
1344
+ const $ = c(3);
1345
+ if ($[0] !== "fd73f7a8c1f8a9d942e9e6008a32a002af26b3ecbbb06d98f5a3a138c6f4c73a") {
1346
+ for (let $i = 0; $i < 3; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
1347
+ $[0] = "fd73f7a8c1f8a9d942e9e6008a32a002af26b3ecbbb06d98f5a3a138c6f4c73a";
1348
+ }
1265
1349
  const groupId = useObservabilityStore(_temp$3);
1266
1350
  if (!groupId) return null;
1267
1351
  let t0;
1268
- if ($[0] !== groupId) {
1352
+ if ($[1] !== groupId) {
1269
1353
  t0 = /* @__PURE__ */ jsx(TraceTimelineComponent, { groupId });
1270
- $[0] = groupId;
1271
- $[1] = t0;
1272
- } else t0 = $[1];
1354
+ $[1] = groupId;
1355
+ $[2] = t0;
1356
+ } else t0 = $[2];
1273
1357
  return t0;
1274
1358
  });
1275
1359
  TraceTimeline.displayName = "TraceTimeline";
1276
1360
  const TraceTimelineComponent = memo((t0) => {
1277
- const $ = c(79);
1361
+ const $ = c(80);
1362
+ if ($[0] !== "fd73f7a8c1f8a9d942e9e6008a32a002af26b3ecbbb06d98f5a3a138c6f4c73a") {
1363
+ for (let $i = 0; $i < 80; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
1364
+ $[0] = "fd73f7a8c1f8a9d942e9e6008a32a002af26b3ecbbb06d98f5a3a138c6f4c73a";
1365
+ }
1278
1366
  const { groupId } = t0;
1279
1367
  let t1;
1280
- if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
1368
+ if ($[1] === Symbol.for("react.memo_cache_sentinel")) {
1281
1369
  t1 = {
1282
1370
  streamName: "motia-trace-group",
1283
1371
  groupId: "default"
1284
1372
  };
1285
- $[0] = t1;
1286
- } else t1 = $[0];
1373
+ $[1] = t1;
1374
+ } else t1 = $[1];
1287
1375
  const { data: traceGroups } = useStreamGroup(t1);
1288
1376
  let t2;
1289
- if ($[1] !== groupId || $[2] !== traceGroups) {
1377
+ if ($[2] !== groupId || $[3] !== traceGroups) {
1290
1378
  let t3$1;
1291
- if ($[4] !== groupId) {
1379
+ if ($[5] !== groupId) {
1292
1380
  t3$1 = (traceGroup) => traceGroup.id === groupId;
1293
- $[4] = groupId;
1294
- $[5] = t3$1;
1295
- } else t3$1 = $[5];
1381
+ $[5] = groupId;
1382
+ $[6] = t3$1;
1383
+ } else t3$1 = $[6];
1296
1384
  t2 = traceGroups.find(t3$1);
1297
- $[1] = groupId;
1298
- $[2] = traceGroups;
1299
- $[3] = t2;
1300
- } else t2 = $[3];
1385
+ $[2] = groupId;
1386
+ $[3] = traceGroups;
1387
+ $[4] = t2;
1388
+ } else t2 = $[4];
1301
1389
  const group = t2;
1302
1390
  let t3;
1303
- if ($[6] !== groupId) {
1391
+ if ($[7] !== groupId) {
1304
1392
  t3 = {
1305
1393
  streamName: "motia-trace",
1306
1394
  groupId
1307
1395
  };
1308
- $[6] = groupId;
1309
- $[7] = t3;
1310
- } else t3 = $[7];
1396
+ $[7] = groupId;
1397
+ $[8] = t3;
1398
+ } else t3 = $[8];
1311
1399
  const { data } = useStreamGroup(t3);
1312
1400
  const endTime = useGetEndTime(group);
1313
1401
  const [zoom, setZoom] = useState(100);
1314
1402
  const selectedTraceId = useObservabilityStore(_temp2$1);
1315
1403
  const selectTraceId = useObservabilityStore(_temp3);
1316
1404
  let t4;
1317
- if ($[8] !== data || $[9] !== selectedTraceId) {
1405
+ if ($[9] !== data || $[10] !== selectedTraceId) {
1318
1406
  t4 = data?.find((trace) => trace.id === selectedTraceId);
1319
- $[8] = data;
1320
- $[9] = selectedTraceId;
1321
- $[10] = t4;
1322
- } else t4 = $[10];
1407
+ $[9] = data;
1408
+ $[10] = selectedTraceId;
1409
+ $[11] = t4;
1410
+ } else t4 = $[11];
1323
1411
  const selectedTrace = t4;
1324
1412
  let t5;
1325
- if ($[11] !== zoom) {
1413
+ if ($[12] !== zoom) {
1326
1414
  t5 = () => zoom > 100 && setZoom(_temp4);
1327
- $[11] = zoom;
1328
- $[12] = t5;
1329
- } else t5 = $[12];
1415
+ $[12] = zoom;
1416
+ $[13] = t5;
1417
+ } else t5 = $[13];
1330
1418
  const zoomMinus = t5;
1331
1419
  let t6;
1332
- if ($[13] !== zoom) {
1420
+ if ($[14] !== zoom) {
1333
1421
  t6 = () => zoom < 200 && setZoom(_temp5);
1334
- $[13] = zoom;
1335
- $[14] = t6;
1336
- } else t6 = $[14];
1422
+ $[14] = zoom;
1423
+ $[15] = t6;
1424
+ } else t6 = $[15];
1337
1425
  const zoomPlus = t6;
1338
1426
  if (!group) return null;
1339
1427
  const t7 = `${zoom}%`;
1340
1428
  let t8;
1341
- if ($[15] !== t7) {
1429
+ if ($[16] !== t7) {
1342
1430
  t8 = { width: t7 };
1343
- $[15] = t7;
1344
- $[16] = t8;
1345
- } else t8 = $[16];
1431
+ $[16] = t7;
1432
+ $[17] = t8;
1433
+ } else t8 = $[17];
1346
1434
  const t9 = `${zoom}%`;
1347
1435
  let t10;
1348
- if ($[17] !== t9) {
1436
+ if ($[18] !== t9) {
1349
1437
  t10 = { width: t9 };
1350
- $[17] = t9;
1351
- $[18] = t10;
1352
- } else t10 = $[18];
1438
+ $[18] = t9;
1439
+ $[19] = t10;
1440
+ } else t10 = $[19];
1353
1441
  const t11 = zoom <= 100;
1354
1442
  let t12;
1355
- if ($[19] === Symbol.for("react.memo_cache_sentinel")) {
1443
+ if ($[20] === Symbol.for("react.memo_cache_sentinel")) {
1356
1444
  t12 = /* @__PURE__ */ jsx(Minus, { className: "w-4 h-4 cursor-pointer" });
1357
- $[19] = t12;
1358
- } else t12 = $[19];
1445
+ $[20] = t12;
1446
+ } else t12 = $[20];
1359
1447
  let t13;
1360
- if ($[20] !== t11 || $[21] !== zoomMinus) {
1448
+ if ($[21] !== t11 || $[22] !== zoomMinus) {
1361
1449
  t13 = /* @__PURE__ */ jsx(Button, {
1362
1450
  variant: "icon",
1363
1451
  size: "sm",
@@ -1366,27 +1454,27 @@ const TraceTimelineComponent = memo((t0) => {
1366
1454
  disabled: t11,
1367
1455
  children: t12
1368
1456
  });
1369
- $[20] = t11;
1370
- $[21] = zoomMinus;
1371
- $[22] = t13;
1372
- } else t13 = $[22];
1457
+ $[21] = t11;
1458
+ $[22] = zoomMinus;
1459
+ $[23] = t13;
1460
+ } else t13 = $[23];
1373
1461
  let t14;
1374
- if ($[23] !== zoom) {
1462
+ if ($[24] !== zoom) {
1375
1463
  t14 = /* @__PURE__ */ jsxs("span", {
1376
1464
  className: "min-w-12 text-center select-none text-sm font-bold text-muted-foreground",
1377
1465
  children: [zoom, "%"]
1378
1466
  });
1379
- $[23] = zoom;
1380
- $[24] = t14;
1381
- } else t14 = $[24];
1467
+ $[24] = zoom;
1468
+ $[25] = t14;
1469
+ } else t14 = $[25];
1382
1470
  const t15 = zoom >= 200;
1383
1471
  let t16;
1384
- if ($[25] === Symbol.for("react.memo_cache_sentinel")) {
1472
+ if ($[26] === Symbol.for("react.memo_cache_sentinel")) {
1385
1473
  t16 = /* @__PURE__ */ jsx(Plus, { className: "w-4 h-4 cursor-pointer" });
1386
- $[25] = t16;
1387
- } else t16 = $[25];
1474
+ $[26] = t16;
1475
+ } else t16 = $[26];
1388
1476
  let t17;
1389
- if ($[26] !== t15 || $[27] !== zoomPlus) {
1477
+ if ($[27] !== t15 || $[28] !== zoomPlus) {
1390
1478
  t17 = /* @__PURE__ */ jsx(Button, {
1391
1479
  variant: "icon",
1392
1480
  size: "sm",
@@ -1395,12 +1483,12 @@ const TraceTimelineComponent = memo((t0) => {
1395
1483
  disabled: t15,
1396
1484
  children: t16
1397
1485
  });
1398
- $[26] = t15;
1399
- $[27] = zoomPlus;
1400
- $[28] = t17;
1401
- } else t17 = $[28];
1486
+ $[27] = t15;
1487
+ $[28] = zoomPlus;
1488
+ $[29] = t17;
1489
+ } else t17 = $[29];
1402
1490
  let t18;
1403
- if ($[29] !== t13 || $[30] !== t14 || $[31] !== t17) {
1491
+ if ($[30] !== t13 || $[31] !== t14 || $[32] !== t17) {
1404
1492
  t18 = /* @__PURE__ */ jsxs("div", {
1405
1493
  className: "shrink-0 w-[200px] h-[37px] flex items-center justify-center gap-2 sticky left-0 top-0 z-10 bg-card backdrop-blur-xs backdrop-filter",
1406
1494
  children: [
@@ -1409,70 +1497,70 @@ const TraceTimelineComponent = memo((t0) => {
1409
1497
  t17
1410
1498
  ]
1411
1499
  });
1412
- $[29] = t13;
1413
- $[30] = t14;
1414
- $[31] = t17;
1415
- $[32] = t18;
1416
- } else t18 = $[32];
1500
+ $[30] = t13;
1501
+ $[31] = t14;
1502
+ $[32] = t17;
1503
+ $[33] = t18;
1504
+ } else t18 = $[33];
1417
1505
  let t19;
1418
- if ($[33] === Symbol.for("react.memo_cache_sentinel")) {
1506
+ if ($[34] === Symbol.for("react.memo_cache_sentinel")) {
1419
1507
  t19 = /* @__PURE__ */ jsx("span", { children: "0ms" });
1420
- $[33] = t19;
1421
- } else t19 = $[33];
1508
+ $[34] = t19;
1509
+ } else t19 = $[34];
1422
1510
  const t20 = Math.floor((endTime - group.startTime) * .25);
1423
1511
  let t21;
1424
- if ($[34] !== t20) {
1512
+ if ($[35] !== t20) {
1425
1513
  t21 = formatDuration(t20);
1426
- $[34] = t20;
1427
- $[35] = t21;
1428
- } else t21 = $[35];
1514
+ $[35] = t20;
1515
+ $[36] = t21;
1516
+ } else t21 = $[36];
1429
1517
  let t22;
1430
- if ($[36] !== t21) {
1518
+ if ($[37] !== t21) {
1431
1519
  t22 = /* @__PURE__ */ jsx("span", { children: t21 });
1432
- $[36] = t21;
1433
- $[37] = t22;
1434
- } else t22 = $[37];
1520
+ $[37] = t21;
1521
+ $[38] = t22;
1522
+ } else t22 = $[38];
1435
1523
  const t23 = Math.floor((endTime - group.startTime) * .5);
1436
1524
  let t24;
1437
- if ($[38] !== t23) {
1525
+ if ($[39] !== t23) {
1438
1526
  t24 = formatDuration(t23);
1439
- $[38] = t23;
1440
- $[39] = t24;
1441
- } else t24 = $[39];
1527
+ $[39] = t23;
1528
+ $[40] = t24;
1529
+ } else t24 = $[40];
1442
1530
  let t25;
1443
- if ($[40] !== t24) {
1531
+ if ($[41] !== t24) {
1444
1532
  t25 = /* @__PURE__ */ jsx("span", { children: t24 });
1445
- $[40] = t24;
1446
- $[41] = t25;
1447
- } else t25 = $[41];
1533
+ $[41] = t24;
1534
+ $[42] = t25;
1535
+ } else t25 = $[42];
1448
1536
  const t26 = Math.floor((endTime - group.startTime) * .75);
1449
1537
  let t27;
1450
- if ($[42] !== t26) {
1538
+ if ($[43] !== t26) {
1451
1539
  t27 = formatDuration(t26);
1452
- $[42] = t26;
1453
- $[43] = t27;
1454
- } else t27 = $[43];
1540
+ $[43] = t26;
1541
+ $[44] = t27;
1542
+ } else t27 = $[44];
1455
1543
  let t28;
1456
- if ($[44] !== t27) {
1544
+ if ($[45] !== t27) {
1457
1545
  t28 = /* @__PURE__ */ jsx("span", { children: t27 });
1458
- $[44] = t27;
1459
- $[45] = t28;
1460
- } else t28 = $[45];
1546
+ $[45] = t27;
1547
+ $[46] = t28;
1548
+ } else t28 = $[46];
1461
1549
  const t29 = Math.floor(endTime - group.startTime);
1462
1550
  let t30;
1463
- if ($[46] !== t29) {
1551
+ if ($[47] !== t29) {
1464
1552
  t30 = formatDuration(t29);
1465
- $[46] = t29;
1466
- $[47] = t30;
1467
- } else t30 = $[47];
1553
+ $[47] = t29;
1554
+ $[48] = t30;
1555
+ } else t30 = $[48];
1468
1556
  let t31;
1469
- if ($[48] !== t30) {
1557
+ if ($[49] !== t30) {
1470
1558
  t31 = /* @__PURE__ */ jsx("span", { children: t30 });
1471
- $[48] = t30;
1472
- $[49] = t31;
1473
- } else t31 = $[49];
1559
+ $[49] = t30;
1560
+ $[50] = t31;
1561
+ } else t31 = $[50];
1474
1562
  let t32;
1475
- if ($[50] !== t22 || $[51] !== t25 || $[52] !== t28 || $[53] !== t31) {
1563
+ if ($[51] !== t22 || $[52] !== t25 || $[53] !== t28 || $[54] !== t31) {
1476
1564
  t32 = /* @__PURE__ */ jsxs("div", {
1477
1565
  className: "flex justify-between font-mono p-2 w-full text-xs text-muted-foreground bg-card",
1478
1566
  children: [
@@ -1483,33 +1571,33 @@ const TraceTimelineComponent = memo((t0) => {
1483
1571
  t31
1484
1572
  ]
1485
1573
  });
1486
- $[50] = t22;
1487
- $[51] = t25;
1488
- $[52] = t28;
1489
- $[53] = t31;
1490
- $[54] = t32;
1491
- } else t32 = $[54];
1574
+ $[51] = t22;
1575
+ $[52] = t25;
1576
+ $[53] = t28;
1577
+ $[54] = t31;
1578
+ $[55] = t32;
1579
+ } else t32 = $[55];
1492
1580
  let t33;
1493
- if ($[55] !== t10 || $[56] !== t18 || $[57] !== t32) {
1581
+ if ($[56] !== t10 || $[57] !== t18 || $[58] !== t32) {
1494
1582
  t33 = /* @__PURE__ */ jsxs("div", {
1495
1583
  className: "flex flex-1 bg-background",
1496
1584
  style: t10,
1497
1585
  children: [t18, t32]
1498
1586
  });
1499
- $[55] = t10;
1500
- $[56] = t18;
1501
- $[57] = t32;
1502
- $[58] = t33;
1503
- } else t33 = $[58];
1587
+ $[56] = t10;
1588
+ $[57] = t18;
1589
+ $[58] = t32;
1590
+ $[59] = t33;
1591
+ } else t33 = $[59];
1504
1592
  const t34 = `${zoom}%`;
1505
1593
  let t35;
1506
- if ($[59] !== t34) {
1594
+ if ($[60] !== t34) {
1507
1595
  t35 = { width: t34 };
1508
- $[59] = t34;
1509
- $[60] = t35;
1510
- } else t35 = $[60];
1596
+ $[60] = t34;
1597
+ $[61] = t35;
1598
+ } else t35 = $[61];
1511
1599
  let t36;
1512
- if ($[61] !== data || $[62] !== endTime || $[63] !== group.startTime || $[64] !== selectTraceId) {
1600
+ if ($[62] !== data || $[63] !== endTime || $[64] !== group.startTime || $[65] !== selectTraceId) {
1513
1601
  t36 = data?.map((trace_0) => /* @__PURE__ */ jsx(TraceItem, {
1514
1602
  traceId: trace_0.id,
1515
1603
  traceName: trace_0.name,
@@ -1520,25 +1608,25 @@ const TraceTimelineComponent = memo((t0) => {
1520
1608
  groupEndTime: endTime,
1521
1609
  onExpand: selectTraceId
1522
1610
  }, trace_0.id));
1523
- $[61] = data;
1524
- $[62] = endTime;
1525
- $[63] = group.startTime;
1526
- $[64] = selectTraceId;
1527
- $[65] = t36;
1528
- } else t36 = $[65];
1611
+ $[62] = data;
1612
+ $[63] = endTime;
1613
+ $[64] = group.startTime;
1614
+ $[65] = selectTraceId;
1615
+ $[66] = t36;
1616
+ } else t36 = $[66];
1529
1617
  let t37;
1530
- if ($[66] !== t35 || $[67] !== t36) {
1618
+ if ($[67] !== t35 || $[68] !== t36) {
1531
1619
  t37 = /* @__PURE__ */ jsx("div", {
1532
1620
  className: "flex flex-col h-full",
1533
1621
  style: t35,
1534
1622
  children: t36
1535
1623
  });
1536
- $[66] = t35;
1537
- $[67] = t36;
1538
- $[68] = t37;
1539
- } else t37 = $[68];
1624
+ $[67] = t35;
1625
+ $[68] = t36;
1626
+ $[69] = t37;
1627
+ } else t37 = $[69];
1540
1628
  let t38;
1541
- if ($[69] !== t33 || $[70] !== t37 || $[71] !== t8) {
1629
+ if ($[70] !== t33 || $[71] !== t37 || $[72] !== t8) {
1542
1630
  t38 = /* @__PURE__ */ jsx("div", {
1543
1631
  className: "flex flex-col flex-1 relative min-h-full min-w-[1000px]",
1544
1632
  children: /* @__PURE__ */ jsxs("div", {
@@ -1547,28 +1635,28 @@ const TraceTimelineComponent = memo((t0) => {
1547
1635
  children: [t33, t37]
1548
1636
  })
1549
1637
  });
1550
- $[69] = t33;
1551
- $[70] = t37;
1552
- $[71] = t8;
1553
- $[72] = t38;
1554
- } else t38 = $[72];
1638
+ $[70] = t33;
1639
+ $[71] = t37;
1640
+ $[72] = t8;
1641
+ $[73] = t38;
1642
+ } else t38 = $[73];
1555
1643
  let t39;
1556
- if ($[73] !== selectTraceId || $[74] !== selectedTrace) {
1644
+ if ($[74] !== selectTraceId || $[75] !== selectedTrace) {
1557
1645
  t39 = selectedTrace && /* @__PURE__ */ jsx(TraceItemDetail, {
1558
1646
  trace: selectedTrace,
1559
1647
  onClose: () => selectTraceId(void 0)
1560
1648
  });
1561
- $[73] = selectTraceId;
1562
- $[74] = selectedTrace;
1563
- $[75] = t39;
1564
- } else t39 = $[75];
1649
+ $[74] = selectTraceId;
1650
+ $[75] = selectedTrace;
1651
+ $[76] = t39;
1652
+ } else t39 = $[76];
1565
1653
  let t40;
1566
- if ($[76] !== t38 || $[77] !== t39) {
1654
+ if ($[77] !== t38 || $[78] !== t39) {
1567
1655
  t40 = /* @__PURE__ */ jsxs(Fragment$1, { children: [t38, t39] });
1568
- $[76] = t38;
1569
- $[77] = t39;
1570
- $[78] = t40;
1571
- } else t40 = $[78];
1656
+ $[77] = t38;
1657
+ $[78] = t39;
1658
+ $[79] = t40;
1659
+ } else t40 = $[79];
1572
1660
  return t40;
1573
1661
  });
1574
1662
  TraceTimelineComponent.displayName = "TraceTimelineComponent";
@@ -1591,24 +1679,28 @@ function _temp5(prevZoom_0) {
1591
1679
  //#endregion
1592
1680
  //#region src/hooks/use-filtered-trace-groups.ts
1593
1681
  const useFilteredTraceGroups = () => {
1594
- const $ = c(4);
1682
+ const $ = c(5);
1683
+ if ($[0] !== "a29b076706acde25ffc4d4424df8f47d5e87949facd0d256c49dc7eec7d042a7") {
1684
+ for (let $i = 0; $i < 5; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
1685
+ $[0] = "a29b076706acde25ffc4d4424df8f47d5e87949facd0d256c49dc7eec7d042a7";
1686
+ }
1595
1687
  let t0;
1596
- if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
1688
+ if ($[1] === Symbol.for("react.memo_cache_sentinel")) {
1597
1689
  t0 = {
1598
1690
  streamName: "motia-trace-group",
1599
1691
  groupId: "default"
1600
1692
  };
1601
- $[0] = t0;
1602
- } else t0 = $[0];
1693
+ $[1] = t0;
1694
+ } else t0 = $[1];
1603
1695
  const { data } = useStreamGroup(t0);
1604
1696
  const search = useObservabilityStore(_temp$2);
1605
1697
  let t1;
1606
- if ($[1] !== data || $[2] !== search) {
1698
+ if ($[2] !== data || $[3] !== search) {
1607
1699
  t1 = data?.filter((group) => group.name.toLowerCase().includes(search.toLowerCase()) || group.id.toLowerCase().includes(search.toLowerCase()));
1608
- $[1] = data;
1609
- $[2] = search;
1610
- $[3] = t1;
1611
- } else t1 = $[3];
1700
+ $[2] = data;
1701
+ $[3] = search;
1702
+ $[4] = t1;
1703
+ } else t1 = $[4];
1612
1704
  return t1;
1613
1705
  };
1614
1706
  function _temp$2(state) {
@@ -1624,20 +1716,24 @@ const variantMap = {
1624
1716
  default: "default"
1625
1717
  };
1626
1718
  const TraceStatusBadge = memo((t0) => {
1627
- const $ = c(3);
1719
+ const $ = c(4);
1720
+ if ($[0] !== "135bb98907459b4eb8cfbaba04a1232c86a5e95742a41c0a99dcf1a140fa89df") {
1721
+ for (let $i = 0; $i < 4; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
1722
+ $[0] = "135bb98907459b4eb8cfbaba04a1232c86a5e95742a41c0a99dcf1a140fa89df";
1723
+ }
1628
1724
  const { status, duration } = t0;
1629
1725
  const t1 = variantMap[status];
1630
1726
  const t2 = duration && status !== "failed" ? duration : status;
1631
1727
  let t3;
1632
- if ($[0] !== t1 || $[1] !== t2) {
1728
+ if ($[1] !== t1 || $[2] !== t2) {
1633
1729
  t3 = /* @__PURE__ */ jsx(Badge, {
1634
1730
  variant: t1,
1635
1731
  children: t2
1636
1732
  });
1637
- $[0] = t1;
1638
- $[1] = t2;
1639
- $[2] = t3;
1640
- } else t3 = $[2];
1733
+ $[1] = t1;
1734
+ $[2] = t2;
1735
+ $[3] = t3;
1736
+ } else t3 = $[3];
1641
1737
  return t3;
1642
1738
  });
1643
1739
  TraceStatusBadge.displayName = "TraceStatusBadge";
@@ -1645,116 +1741,120 @@ TraceStatusBadge.displayName = "TraceStatusBadge";
1645
1741
  //#endregion
1646
1742
  //#region src/components/trace-group-item.tsx
1647
1743
  const TraceGroupItem = memo((t0) => {
1648
- const $ = c(42);
1744
+ const $ = c(43);
1745
+ if ($[0] !== "bae7176c6d363abcd5ae856478cbdd22c5d53c5296c21141ccf8591a2ba47e9b") {
1746
+ for (let $i = 0; $i < 43; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
1747
+ $[0] = "bae7176c6d363abcd5ae856478cbdd22c5d53c5296c21141ccf8591a2ba47e9b";
1748
+ }
1649
1749
  const { groupId, groupName, groupStatus, groupStartTime, groupEndTime, totalSteps, activeSteps, isSelected } = t0;
1650
1750
  const selectTraceGroupId = useObservabilityStore(_temp$1);
1651
1751
  let t1;
1652
- if ($[0] !== groupEndTime || $[1] !== groupStartTime) {
1752
+ if ($[1] !== groupEndTime || $[2] !== groupStartTime) {
1653
1753
  t1 = groupEndTime ? formatDuration(groupEndTime - groupStartTime) : void 0;
1654
- $[0] = groupEndTime;
1655
- $[1] = groupStartTime;
1656
- $[2] = t1;
1657
- } else t1 = $[2];
1754
+ $[1] = groupEndTime;
1755
+ $[2] = groupStartTime;
1756
+ $[3] = t1;
1757
+ } else t1 = $[3];
1658
1758
  const duration = t1;
1659
1759
  let t2;
1660
- if ($[3] !== groupId || $[4] !== selectTraceGroupId) {
1760
+ if ($[4] !== groupId || $[5] !== selectTraceGroupId) {
1661
1761
  t2 = () => {
1662
1762
  selectTraceGroupId(groupId);
1663
1763
  };
1664
- $[3] = groupId;
1665
- $[4] = selectTraceGroupId;
1666
- $[5] = t2;
1667
- } else t2 = $[5];
1764
+ $[4] = groupId;
1765
+ $[5] = selectTraceGroupId;
1766
+ $[6] = t2;
1767
+ } else t2 = $[6];
1668
1768
  const onSelect = t2;
1669
1769
  const t3 = `trace-${groupId}`;
1670
1770
  const t4 = isSelected ? "bg-muted-foreground/10" : "hover:bg-muted/70";
1671
1771
  let t5;
1672
- if ($[6] !== t4) {
1772
+ if ($[7] !== t4) {
1673
1773
  t5 = cn("motia-trace-group cursor-pointer transition-colors w-full text-left", t4);
1674
- $[6] = t4;
1675
- $[7] = t5;
1676
- } else t5 = $[7];
1774
+ $[7] = t4;
1775
+ $[8] = t5;
1776
+ } else t5 = $[8];
1677
1777
  let t6;
1678
- if ($[8] !== groupName) {
1778
+ if ($[9] !== groupName) {
1679
1779
  t6 = /* @__PURE__ */ jsx("span", {
1680
1780
  className: "font-semibold text-lg truncate flex-1 min-w-0",
1681
1781
  children: groupName
1682
1782
  });
1683
- $[8] = groupName;
1684
- $[9] = t6;
1685
- } else t6 = $[9];
1783
+ $[9] = groupName;
1784
+ $[10] = t6;
1785
+ } else t6 = $[10];
1686
1786
  let t7;
1687
- if ($[10] !== duration || $[11] !== groupStatus) {
1787
+ if ($[11] !== duration || $[12] !== groupStatus) {
1688
1788
  t7 = /* @__PURE__ */ jsx(TraceStatusBadge, {
1689
1789
  status: groupStatus,
1690
1790
  duration
1691
1791
  });
1692
- $[10] = duration;
1693
- $[11] = groupStatus;
1694
- $[12] = t7;
1695
- } else t7 = $[12];
1792
+ $[11] = duration;
1793
+ $[12] = groupStatus;
1794
+ $[13] = t7;
1795
+ } else t7 = $[13];
1696
1796
  let t8;
1697
- if ($[13] !== t6 || $[14] !== t7) {
1797
+ if ($[14] !== t6 || $[15] !== t7) {
1698
1798
  t8 = /* @__PURE__ */ jsxs("div", {
1699
1799
  className: "flex flex-row justify-between items-center gap-2",
1700
1800
  children: [t6, t7]
1701
1801
  });
1702
- $[13] = t6;
1703
- $[14] = t7;
1704
- $[15] = t8;
1705
- } else t8 = $[15];
1802
+ $[14] = t6;
1803
+ $[15] = t7;
1804
+ $[16] = t8;
1805
+ } else t8 = $[16];
1706
1806
  let t9;
1707
- if ($[16] !== groupId) {
1807
+ if ($[17] !== groupId) {
1708
1808
  t9 = /* @__PURE__ */ jsx("div", {
1709
1809
  "data-testid": "trace-id",
1710
1810
  className: "text-xs text-muted-foreground font-mono tracking-[1px]",
1711
1811
  children: groupId
1712
1812
  });
1713
- $[16] = groupId;
1714
- $[17] = t9;
1715
- } else t9 = $[17];
1813
+ $[17] = groupId;
1814
+ $[18] = t9;
1815
+ } else t9 = $[18];
1716
1816
  let t10;
1717
- if ($[18] !== totalSteps) {
1817
+ if ($[19] !== totalSteps) {
1718
1818
  t10 = /* @__PURE__ */ jsxs("span", { children: [totalSteps, " steps"] });
1719
- $[18] = totalSteps;
1720
- $[19] = t10;
1721
- } else t10 = $[19];
1819
+ $[19] = totalSteps;
1820
+ $[20] = t10;
1821
+ } else t10 = $[20];
1722
1822
  let t11;
1723
- if ($[20] !== t10 || $[21] !== t9) {
1823
+ if ($[21] !== t10 || $[22] !== t9) {
1724
1824
  t11 = /* @__PURE__ */ jsxs("div", {
1725
1825
  className: "flex justify-between",
1726
1826
  children: [t9, t10]
1727
1827
  });
1728
- $[20] = t10;
1729
- $[21] = t9;
1730
- $[22] = t11;
1731
- } else t11 = $[22];
1828
+ $[21] = t10;
1829
+ $[22] = t9;
1830
+ $[23] = t11;
1831
+ } else t11 = $[23];
1732
1832
  let t12;
1733
- if ($[23] !== groupStartTime) {
1833
+ if ($[24] !== groupStartTime) {
1734
1834
  t12 = formatDistanceToNow(groupStartTime);
1735
- $[23] = groupStartTime;
1736
- $[24] = t12;
1737
- } else t12 = $[24];
1835
+ $[24] = groupStartTime;
1836
+ $[25] = t12;
1837
+ } else t12 = $[25];
1738
1838
  let t13;
1739
- if ($[25] !== t12) {
1839
+ if ($[26] !== t12) {
1740
1840
  t13 = /* @__PURE__ */ jsxs("div", {
1741
1841
  className: "flex justify-between",
1742
1842
  children: [t12, " ago"]
1743
1843
  });
1744
- $[25] = t12;
1745
- $[26] = t13;
1746
- } else t13 = $[26];
1844
+ $[26] = t12;
1845
+ $[27] = t13;
1846
+ } else t13 = $[27];
1747
1847
  let t14;
1748
- if ($[27] !== activeSteps) {
1848
+ if ($[28] !== activeSteps) {
1749
1849
  t14 = activeSteps > 0 && /* @__PURE__ */ jsxs("div", {
1750
1850
  className: "text-blue-600",
1751
1851
  children: [activeSteps, " active"]
1752
1852
  });
1753
- $[27] = activeSteps;
1754
- $[28] = t14;
1755
- } else t14 = $[28];
1853
+ $[28] = activeSteps;
1854
+ $[29] = t14;
1855
+ } else t14 = $[29];
1756
1856
  let t15;
1757
- if ($[29] !== t11 || $[30] !== t13 || $[31] !== t14) {
1857
+ if ($[30] !== t11 || $[31] !== t13 || $[32] !== t14) {
1758
1858
  t15 = /* @__PURE__ */ jsxs("div", {
1759
1859
  className: "text-xs text-muted-foreground space-y-1",
1760
1860
  children: [
@@ -1763,23 +1863,23 @@ const TraceGroupItem = memo((t0) => {
1763
1863
  t14
1764
1864
  ]
1765
1865
  });
1766
- $[29] = t11;
1767
- $[30] = t13;
1768
- $[31] = t14;
1769
- $[32] = t15;
1770
- } else t15 = $[32];
1866
+ $[30] = t11;
1867
+ $[31] = t13;
1868
+ $[32] = t14;
1869
+ $[33] = t15;
1870
+ } else t15 = $[33];
1771
1871
  let t16;
1772
- if ($[33] !== t15 || $[34] !== t8) {
1872
+ if ($[34] !== t15 || $[35] !== t8) {
1773
1873
  t16 = /* @__PURE__ */ jsxs("div", {
1774
1874
  className: "p-3 flex flex-col gap-1",
1775
1875
  children: [t8, t15]
1776
1876
  });
1777
- $[33] = t15;
1778
- $[34] = t8;
1779
- $[35] = t16;
1780
- } else t16 = $[35];
1877
+ $[34] = t15;
1878
+ $[35] = t8;
1879
+ $[36] = t16;
1880
+ } else t16 = $[36];
1781
1881
  let t17;
1782
- if ($[36] !== groupId || $[37] !== onSelect || $[38] !== t16 || $[39] !== t3 || $[40] !== t5) {
1882
+ if ($[37] !== groupId || $[38] !== onSelect || $[39] !== t16 || $[40] !== t3 || $[41] !== t5) {
1783
1883
  t17 = /* @__PURE__ */ jsx("button", {
1784
1884
  type: "button",
1785
1885
  "data-testid": t3,
@@ -1787,13 +1887,13 @@ const TraceGroupItem = memo((t0) => {
1787
1887
  onClick: onSelect,
1788
1888
  children: t16
1789
1889
  }, groupId);
1790
- $[36] = groupId;
1791
- $[37] = onSelect;
1792
- $[38] = t16;
1793
- $[39] = t3;
1794
- $[40] = t5;
1795
- $[41] = t17;
1796
- } else t17 = $[41];
1890
+ $[37] = groupId;
1891
+ $[38] = onSelect;
1892
+ $[39] = t16;
1893
+ $[40] = t3;
1894
+ $[41] = t5;
1895
+ $[42] = t17;
1896
+ } else t17 = $[42];
1797
1897
  return t17;
1798
1898
  });
1799
1899
  TraceGroupItem.displayName = "TraceGroupItem";
@@ -1804,7 +1904,11 @@ function _temp$1(state) {
1804
1904
  //#endregion
1805
1905
  //#region src/components/traces-groups.tsx
1806
1906
  const TracesGroups = memo(() => {
1807
- const $ = c(17);
1907
+ const $ = c(18);
1908
+ if ($[0] !== "2bddedc9dbf436ff7f1225c5b31bfd84c69748b5b6b8e426fabda2b9e624500a") {
1909
+ for (let $i = 0; $i < 18; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
1910
+ $[0] = "2bddedc9dbf436ff7f1225c5b31bfd84c69748b5b6b8e426fabda2b9e624500a";
1911
+ }
1808
1912
  const groups = useFilteredTraceGroups();
1809
1913
  const selectedGroupId = useObservabilityStore(_temp);
1810
1914
  const selectTraceGroupId = useObservabilityStore(_temp2);
@@ -1820,37 +1924,37 @@ const TracesGroups = memo(() => {
1820
1924
  }
1821
1925
  const lastRunningGroupId = t0;
1822
1926
  let t1;
1823
- if ($[0] !== groupsLength || $[1] !== lastRunningGroupId || $[2] !== selectTraceGroupId || $[3] !== selectedGroupId) {
1927
+ if ($[1] !== groupsLength || $[2] !== lastRunningGroupId || $[3] !== selectTraceGroupId || $[4] !== selectedGroupId) {
1824
1928
  t1 = () => {
1825
1929
  if (lastRunningGroupId && lastRunningGroupId !== selectedGroupId) selectTraceGroupId(lastRunningGroupId);
1826
1930
  else if (!lastRunningGroupId && !groupsLength && selectedGroupId) selectTraceGroupId("");
1827
1931
  };
1828
- $[0] = groupsLength;
1829
- $[1] = lastRunningGroupId;
1830
- $[2] = selectTraceGroupId;
1831
- $[3] = selectedGroupId;
1832
- $[4] = t1;
1833
- } else t1 = $[4];
1932
+ $[1] = groupsLength;
1933
+ $[2] = lastRunningGroupId;
1934
+ $[3] = selectTraceGroupId;
1935
+ $[4] = selectedGroupId;
1936
+ $[5] = t1;
1937
+ } else t1 = $[5];
1834
1938
  let t2;
1835
- if ($[5] !== groupsLength || $[6] !== lastRunningGroupId) {
1939
+ if ($[6] !== groupsLength || $[7] !== lastRunningGroupId) {
1836
1940
  t2 = [lastRunningGroupId, groupsLength];
1837
- $[5] = groupsLength;
1838
- $[6] = lastRunningGroupId;
1839
- $[7] = t2;
1840
- } else t2 = $[7];
1941
+ $[6] = groupsLength;
1942
+ $[7] = lastRunningGroupId;
1943
+ $[8] = t2;
1944
+ } else t2 = $[8];
1841
1945
  useEffect(t1, t2);
1842
1946
  let t3;
1843
- if ($[8] !== groups) {
1947
+ if ($[9] !== groups) {
1844
1948
  t3 = [...groups].reverse();
1845
- $[8] = groups;
1846
- $[9] = t3;
1847
- } else t3 = $[9];
1949
+ $[9] = groups;
1950
+ $[10] = t3;
1951
+ } else t3 = $[10];
1848
1952
  const reversedGroups = t3;
1849
1953
  if (!groups || groups.length === 0) return null;
1850
1954
  let t4;
1851
- if ($[10] !== reversedGroups || $[11] !== selectedGroupId) {
1955
+ if ($[11] !== reversedGroups || $[12] !== selectedGroupId) {
1852
1956
  let t5$1;
1853
- if ($[13] !== selectedGroupId) {
1957
+ if ($[14] !== selectedGroupId) {
1854
1958
  t5$1 = (group) => /* @__PURE__ */ jsx(TraceGroupItem, {
1855
1959
  groupId: group.id,
1856
1960
  groupName: group.name,
@@ -1861,23 +1965,23 @@ const TracesGroups = memo(() => {
1861
1965
  activeSteps: group.metadata.activeSteps,
1862
1966
  isSelected: selectedGroupId === group.id
1863
1967
  }, group.id);
1864
- $[13] = selectedGroupId;
1865
- $[14] = t5$1;
1866
- } else t5$1 = $[14];
1968
+ $[14] = selectedGroupId;
1969
+ $[15] = t5$1;
1970
+ } else t5$1 = $[15];
1867
1971
  t4 = reversedGroups.map(t5$1);
1868
- $[10] = reversedGroups;
1869
- $[11] = selectedGroupId;
1870
- $[12] = t4;
1871
- } else t4 = $[12];
1972
+ $[11] = reversedGroups;
1973
+ $[12] = selectedGroupId;
1974
+ $[13] = t4;
1975
+ } else t4 = $[13];
1872
1976
  let t5;
1873
- if ($[15] !== t4) {
1977
+ if ($[16] !== t4) {
1874
1978
  t5 = /* @__PURE__ */ jsx("div", {
1875
1979
  className: "overflow-auto",
1876
1980
  children: t4
1877
1981
  });
1878
- $[15] = t4;
1879
- $[16] = t5;
1880
- } else t5 = $[16];
1982
+ $[16] = t4;
1983
+ $[17] = t5;
1984
+ } else t5 = $[17];
1881
1985
  return t5;
1882
1986
  });
1883
1987
  TracesGroups.displayName = "TracesGroups";
@@ -1891,23 +1995,27 @@ function _temp2(state_0) {
1891
1995
  //#endregion
1892
1996
  //#region src/components/observability-page.tsx
1893
1997
  const ObservabilityPage = memo(() => {
1894
- const $ = c(3);
1998
+ const $ = c(4);
1999
+ if ($[0] !== "eb4316941d86db32e402fdb6a9fa0b346d5506cfc5da93f56a7fbdbc084ca168") {
2000
+ for (let $i = 0; $i < 4; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
2001
+ $[0] = "eb4316941d86db32e402fdb6a9fa0b346d5506cfc5da93f56a7fbdbc084ca168";
2002
+ }
1895
2003
  let t0;
1896
- if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
2004
+ if ($[1] === Symbol.for("react.memo_cache_sentinel")) {
1897
2005
  t0 = /* @__PURE__ */ jsx(SearchBar, {});
1898
- $[0] = t0;
1899
- } else t0 = $[0];
2006
+ $[1] = t0;
2007
+ } else t0 = $[1];
1900
2008
  let t1;
1901
- if ($[1] === Symbol.for("react.memo_cache_sentinel")) {
2009
+ if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
1902
2010
  t1 = /* @__PURE__ */ jsx("div", {
1903
2011
  className: "w-[300px] border-r border-border overflow-auto h-full",
1904
2012
  "data-testid": "traces-container",
1905
2013
  children: /* @__PURE__ */ jsx(TracesGroups, {})
1906
2014
  });
1907
- $[1] = t1;
1908
- } else t1 = $[1];
2015
+ $[2] = t1;
2016
+ } else t1 = $[2];
1909
2017
  let t2;
1910
- if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
2018
+ if ($[3] === Symbol.for("react.memo_cache_sentinel")) {
1911
2019
  t2 = /* @__PURE__ */ jsxs("div", {
1912
2020
  className: "grid grid-rows-[auto_1fr] h-full",
1913
2021
  children: [t0, /* @__PURE__ */ jsxs("div", {
@@ -1919,8 +2027,8 @@ const ObservabilityPage = memo(() => {
1919
2027
  })]
1920
2028
  })]
1921
2029
  });
1922
- $[2] = t2;
1923
- } else t2 = $[2];
2030
+ $[3] = t2;
2031
+ } else t2 = $[3];
1924
2032
  return t2;
1925
2033
  });
1926
2034
  ObservabilityPage.displayName = "ObservabilityPage";
@@ -1928,15 +2036,19 @@ ObservabilityPage.displayName = "ObservabilityPage";
1928
2036
  //#endregion
1929
2037
  //#region src/components/observability-tab-label.tsx
1930
2038
  const ObservabilityTabLabel = memo(() => {
1931
- const $ = c(1);
2039
+ const $ = c(2);
2040
+ if ($[0] !== "12b48555066a60a0ff63053b795596dd6b1058a64ec587d2a2a72e7129e319e3") {
2041
+ for (let $i = 0; $i < 2; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
2042
+ $[0] = "12b48555066a60a0ff63053b795596dd6b1058a64ec587d2a2a72e7129e319e3";
2043
+ }
1932
2044
  let t0;
1933
- if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
2045
+ if ($[1] === Symbol.for("react.memo_cache_sentinel")) {
1934
2046
  t0 = /* @__PURE__ */ jsxs("div", {
1935
2047
  "data-testid": "observability-link",
1936
2048
  children: [/* @__PURE__ */ jsx(GanttChartSquare, { "aria-hidden": "true" }), /* @__PURE__ */ jsx("span", { children: "Tracing" })]
1937
2049
  });
1938
- $[0] = t0;
1939
- } else t0 = $[0];
2050
+ $[1] = t0;
2051
+ } else t0 = $[1];
1940
2052
  return t0;
1941
2053
  });
1942
2054
  ObservabilityTabLabel.displayName = "ObservabilityTabLabel";