@mechane-ai/elements 0.57.0 → 0.58.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.
- package/dist/ai.js +1 -1
- package/dist/catalog.json +61 -21
- package/dist/content.js +1 -1
- package/dist/kits/research.js +1 -1
- package/dist/packages/content/src/index.d.ts +8 -2
- package/dist/packages/content/src/playback-bar.d.ts +22 -0
- package/dist/packages/content/src/timeline-scrubber.d.ts +28 -0
- package/dist/packages/content/src/viewport-frame.d.ts +27 -0
- package/dist/src-Cw1yrc2P.js +871 -0
- package/dist/styles2.css +75 -0
- package/package.json +1 -1
- package/dist/src-DFW49IAs.js +0 -441
package/dist/styles2.css
CHANGED
|
@@ -428,6 +428,10 @@
|
|
|
428
428
|
flex: 18rem;
|
|
429
429
|
}
|
|
430
430
|
|
|
431
|
+
.x8xikuq {
|
|
432
|
+
flex: 20ch;
|
|
433
|
+
}
|
|
434
|
+
|
|
431
435
|
.xk30mkq {
|
|
432
436
|
flex: 240px;
|
|
433
437
|
}
|
|
@@ -532,6 +536,10 @@
|
|
|
532
536
|
grid-row: var(--x-gridRow);
|
|
533
537
|
}
|
|
534
538
|
|
|
539
|
+
.x10no89f {
|
|
540
|
+
inset-block: 0;
|
|
541
|
+
}
|
|
542
|
+
|
|
535
543
|
.x17y0mx6 {
|
|
536
544
|
inset-inline: 0;
|
|
537
545
|
}
|
|
@@ -540,6 +548,10 @@
|
|
|
540
548
|
inset-inline: 5px;
|
|
541
549
|
}
|
|
542
550
|
|
|
551
|
+
.x1u5aj70 {
|
|
552
|
+
inset-inline: 7px;
|
|
553
|
+
}
|
|
554
|
+
|
|
543
555
|
.xe8uvvx {
|
|
544
556
|
list-style: none;
|
|
545
557
|
}
|
|
@@ -684,6 +696,10 @@
|
|
|
684
696
|
padding-inline: 5.5px;
|
|
685
697
|
}
|
|
686
698
|
|
|
699
|
+
.xlkn9b3 {
|
|
700
|
+
padding-inline: 7px;
|
|
701
|
+
}
|
|
702
|
+
|
|
687
703
|
.x1doqdfy {
|
|
688
704
|
padding-inline: var(--x1drqizm);
|
|
689
705
|
}
|
|
@@ -752,6 +768,10 @@
|
|
|
752
768
|
border-color: var(--xzqn2nu);
|
|
753
769
|
}
|
|
754
770
|
|
|
771
|
+
.xv519k6:focus-visible {
|
|
772
|
+
border-radius: var(--x1asdyoo);
|
|
773
|
+
}
|
|
774
|
+
|
|
755
775
|
.x3d0qbt[data-dragging] {
|
|
756
776
|
border-style: dashed;
|
|
757
777
|
}
|
|
@@ -958,10 +978,18 @@
|
|
|
958
978
|
animation-timing-function: var(--x5xz5r2);
|
|
959
979
|
}
|
|
960
980
|
|
|
981
|
+
.x2ebxmi {
|
|
982
|
+
aspect-ratio: 16 / 10;
|
|
983
|
+
}
|
|
984
|
+
|
|
961
985
|
.x186iv6y {
|
|
962
986
|
aspect-ratio: 16 / 9;
|
|
963
987
|
}
|
|
964
988
|
|
|
989
|
+
.x1dltgaz {
|
|
990
|
+
aspect-ratio: 4 / 3;
|
|
991
|
+
}
|
|
992
|
+
|
|
965
993
|
.x10y9f9r {
|
|
966
994
|
aspect-ratio: var(--x-aspectRatio);
|
|
967
995
|
}
|
|
@@ -1003,6 +1031,10 @@
|
|
|
1003
1031
|
background-color: var(--x169lqhw);
|
|
1004
1032
|
}
|
|
1005
1033
|
|
|
1034
|
+
.xw9id30 {
|
|
1035
|
+
background-color: var(--x17jbh5p);
|
|
1036
|
+
}
|
|
1037
|
+
|
|
1006
1038
|
.x1r8u7ye {
|
|
1007
1039
|
background-color: var(--x197nfi7);
|
|
1008
1040
|
}
|
|
@@ -1019,6 +1051,14 @@
|
|
|
1019
1051
|
background-color: var(--x1m6gvuh);
|
|
1020
1052
|
}
|
|
1021
1053
|
|
|
1054
|
+
.xltmwy2 {
|
|
1055
|
+
background-color: var(--x1mu3en6);
|
|
1056
|
+
}
|
|
1057
|
+
|
|
1058
|
+
.x102e5jz {
|
|
1059
|
+
background-color: var(--x24btp3);
|
|
1060
|
+
}
|
|
1061
|
+
|
|
1022
1062
|
.xqtq5zq {
|
|
1023
1063
|
background-color: var(--x5peq9z);
|
|
1024
1064
|
}
|
|
@@ -1332,6 +1372,10 @@
|
|
|
1332
1372
|
column-gap: var(--x1qq5i99);
|
|
1333
1373
|
}
|
|
1334
1374
|
|
|
1375
|
+
.x26z182 {
|
|
1376
|
+
column-gap: var(--x1xijsos);
|
|
1377
|
+
}
|
|
1378
|
+
|
|
1335
1379
|
.xuwhhnn {
|
|
1336
1380
|
column-gap: var(--xjighox);
|
|
1337
1381
|
}
|
|
@@ -1868,6 +1912,10 @@
|
|
|
1868
1912
|
inset-inline-start: 0;
|
|
1869
1913
|
}
|
|
1870
1914
|
|
|
1915
|
+
.x1lxsm33 {
|
|
1916
|
+
inset-inline-start: var(--x-insetInlineStart);
|
|
1917
|
+
}
|
|
1918
|
+
|
|
1871
1919
|
.xc8icb0 {
|
|
1872
1920
|
isolation: isolate;
|
|
1873
1921
|
}
|
|
@@ -2503,6 +2551,10 @@
|
|
|
2503
2551
|
transform: rotateY(180deg);
|
|
2504
2552
|
}
|
|
2505
2553
|
|
|
2554
|
+
.xt56bak {
|
|
2555
|
+
transform: translate(-50%, -50%) scale(1.15);
|
|
2556
|
+
}
|
|
2557
|
+
|
|
2506
2558
|
.x11lhmoz {
|
|
2507
2559
|
transform: translate(-50%, -50%);
|
|
2508
2560
|
}
|
|
@@ -2903,6 +2955,10 @@
|
|
|
2903
2955
|
transform: translate(-50%, -50%) scale(.98);
|
|
2904
2956
|
}
|
|
2905
2957
|
|
|
2958
|
+
.x1m2itun:hover:not(:disabled) {
|
|
2959
|
+
transform: translate(-50%, -50%);
|
|
2960
|
+
}
|
|
2961
|
+
|
|
2906
2962
|
.x1eputgz[data-expanded] {
|
|
2907
2963
|
transform: translate(var(--toast-swipe-x, 0px),calc(-1 * var(--toast-offset) - var(--toast-index) * 8px + var(--toast-swipe-y, 0px)));
|
|
2908
2964
|
}
|
|
@@ -4071,6 +4127,10 @@
|
|
|
4071
4127
|
width: var(--x14tmdi9);
|
|
4072
4128
|
}
|
|
4073
4129
|
|
|
4130
|
+
.xnr66md {
|
|
4131
|
+
width: var(--x1drqizm);
|
|
4132
|
+
}
|
|
4133
|
+
|
|
4074
4134
|
.x14j3e4g {
|
|
4075
4135
|
width: var(--x1m0ogk9);
|
|
4076
4136
|
}
|
|
@@ -4467,6 +4527,12 @@
|
|
|
4467
4527
|
}
|
|
4468
4528
|
}
|
|
4469
4529
|
|
|
4530
|
+
@media (hover: hover) and (pointer: fine) {
|
|
4531
|
+
.xks79hj.xks79hj {
|
|
4532
|
+
transform: translate(-50%, -50%) scale(1.12);
|
|
4533
|
+
}
|
|
4534
|
+
}
|
|
4535
|
+
|
|
4470
4536
|
@media (prefers-reduced-motion: reduce) {
|
|
4471
4537
|
.xsn8rav.xsn8rav {
|
|
4472
4538
|
transition-duration: 0s;
|
|
@@ -4517,6 +4583,10 @@
|
|
|
4517
4583
|
.x1ntus3h.x1ntus3h:hover:not([data-disabled]) {
|
|
4518
4584
|
text-decoration-line: underline;
|
|
4519
4585
|
}
|
|
4586
|
+
|
|
4587
|
+
.x14a0mdr.x14a0mdr:hover:not(:disabled) {
|
|
4588
|
+
transform: translate(-50%, -50%) scale(1.18);
|
|
4589
|
+
}
|
|
4520
4590
|
}
|
|
4521
4591
|
|
|
4522
4592
|
@media (pointer: coarse) {
|
|
@@ -5072,6 +5142,11 @@
|
|
|
5072
5142
|
inherits: false
|
|
5073
5143
|
}
|
|
5074
5144
|
|
|
5145
|
+
@property --x-insetInlineStart {
|
|
5146
|
+
syntax: "*";
|
|
5147
|
+
inherits: false
|
|
5148
|
+
}
|
|
5149
|
+
|
|
5075
5150
|
@property --x-left {
|
|
5076
5151
|
syntax: "*";
|
|
5077
5152
|
inherits: false
|
package/package.json
CHANGED
package/dist/src-DFW49IAs.js
DELETED
|
@@ -1,441 +0,0 @@
|
|
|
1
|
-
import { T as e, k as t, v as n, y as r } from "./src-9EJskqB_.js";
|
|
2
|
-
import { t as i } from "./use-scroll-tab-index-Dxpdh4W7.js";
|
|
3
|
-
import { t as a } from "./viewer-styles-DsFYri4K.js";
|
|
4
|
-
import { i as o, t as s } from "./code-block-BZsY2sh3.js";
|
|
5
|
-
import { t as c } from "./content-link-PnpcnTCx.js";
|
|
6
|
-
import * as l from "@stylexjs/stylex";
|
|
7
|
-
import { useCallback as u, useLayoutEffect as d, useRef as f, useState as p, useSyncExternalStore as m } from "react";
|
|
8
|
-
import { createStickToBottom as h } from "@ui-sdk/core";
|
|
9
|
-
import { Fragment as g, jsx as _, jsxs as v } from "react/jsx-runtime";
|
|
10
|
-
import { Check as y, Circle as b, CircleDashed as x, CircleHelp as S, Clock as C, X as w } from "lucide-react";
|
|
11
|
-
import T from "strip-ansi";
|
|
12
|
-
import { fuzzyScore as E, matchRanges as D, matchRanges as O, matchSegments as k, matchSegments as A } from "@ui-sdk/react/text-match";
|
|
13
|
-
// packages/content/src/json-viewer.tsx
|
|
14
|
-
var j = { body: {
|
|
15
|
-
kmVPX3: "x1mvvolr",
|
|
16
|
-
kVQacm: "xysyzu8",
|
|
17
|
-
kskxy: "x1phlbz0",
|
|
18
|
-
kMv6JI: "xiard35",
|
|
19
|
-
kGuDYH: "xy8obcc",
|
|
20
|
-
$$css: !0
|
|
21
|
-
} }, M = 500;
|
|
22
|
-
function N({ value: e, name: t, path: r, depth: i, maxDepth: a, maxEntries: o }) {
|
|
23
|
-
if (typeof e != "object" || !e) {
|
|
24
|
-
let n = JSON.stringify(e), r = n.length > M;
|
|
25
|
-
return /* @__PURE__ */ v("div", {
|
|
26
|
-
className: "xeuugli x126k92a xj0a0fe",
|
|
27
|
-
children: [
|
|
28
|
-
/* @__PURE__ */ v("span", {
|
|
29
|
-
className: "x153jb6y",
|
|
30
|
-
children: [t, ": "]
|
|
31
|
-
}),
|
|
32
|
-
/* @__PURE__ */ _("span", {
|
|
33
|
-
...{
|
|
34
|
-
0: { className: "xbixft" },
|
|
35
|
-
1: { className: "x7ixh4y" }
|
|
36
|
-
}[typeof e == "string" | 0],
|
|
37
|
-
children: n.slice(0, M)
|
|
38
|
-
}),
|
|
39
|
-
r && /* @__PURE__ */ _("span", {
|
|
40
|
-
className: "x153jb6y x1hz01jw",
|
|
41
|
-
children: "… (value truncated)"
|
|
42
|
-
})
|
|
43
|
-
]
|
|
44
|
-
});
|
|
45
|
-
}
|
|
46
|
-
let s = Object.entries(e), c = Array.isArray(e) ? `${s.length} items` : `${s.length} fields`;
|
|
47
|
-
return i >= a ? /* @__PURE__ */ v("div", {
|
|
48
|
-
className: "xeuugli x126k92a xj0a0fe",
|
|
49
|
-
children: [/* @__PURE__ */ v("span", {
|
|
50
|
-
className: "x153jb6y",
|
|
51
|
-
children: [t, ": "]
|
|
52
|
-
}), /* @__PURE__ */ v("span", {
|
|
53
|
-
className: "x153jb6y x1hz01jw",
|
|
54
|
-
children: [c, " · depth limit"]
|
|
55
|
-
})]
|
|
56
|
-
}) : /* @__PURE__ */ v(n.Root, {
|
|
57
|
-
defaultOpen: i === 0,
|
|
58
|
-
className: "xeuugli x126k92a xj0a0fe",
|
|
59
|
-
children: [/* @__PURE__ */ _(n.Trigger, {
|
|
60
|
-
variant: "inline",
|
|
61
|
-
children: /* @__PURE__ */ v("span", {
|
|
62
|
-
className: "xiard35 xy8obcc",
|
|
63
|
-
children: [
|
|
64
|
-
/* @__PURE__ */ v("span", {
|
|
65
|
-
className: "x153jb6y",
|
|
66
|
-
children: [t, ": "]
|
|
67
|
-
}),
|
|
68
|
-
Array.isArray(e) ? "[]" : "{}",
|
|
69
|
-
" ",
|
|
70
|
-
/* @__PURE__ */ _("span", {
|
|
71
|
-
className: "x153jb6y x1hz01jw",
|
|
72
|
-
children: c
|
|
73
|
-
})
|
|
74
|
-
]
|
|
75
|
-
})
|
|
76
|
-
}), /* @__PURE__ */ _(n.Panel, { children: /* @__PURE__ */ v("div", {
|
|
77
|
-
className: "xo02m6d xpilrb4 x1t7ytsu x97x49r xa1dmyi xiard35 xy8obcc",
|
|
78
|
-
children: [s.slice(0, o).map(([e, t]) => {
|
|
79
|
-
let n = `${r}/${e.replaceAll("~", "~0").replaceAll("/", "~1")}`;
|
|
80
|
-
return /* @__PURE__ */ _(N, {
|
|
81
|
-
name: JSON.stringify(e),
|
|
82
|
-
path: n,
|
|
83
|
-
value: t,
|
|
84
|
-
depth: i + 1,
|
|
85
|
-
maxDepth: a,
|
|
86
|
-
maxEntries: o
|
|
87
|
-
}, n);
|
|
88
|
-
}), s.length > o && /* @__PURE__ */ v("div", {
|
|
89
|
-
className: "x153jb6y x1hz01jw",
|
|
90
|
-
children: [s.length - o, " more entries · copy to inspect the complete value"]
|
|
91
|
-
})]
|
|
92
|
-
}) })]
|
|
93
|
-
});
|
|
94
|
-
}
|
|
95
|
-
function P({ value: e, label: t, maxDepth: n = 6, maxEntries: s = 50 }) {
|
|
96
|
-
let c = i(), d = u(() => JSON.stringify(e, null, 2), [e]);
|
|
97
|
-
return /* @__PURE__ */ v(o, {
|
|
98
|
-
kind: "json",
|
|
99
|
-
"aria-label": t,
|
|
100
|
-
...l.props(a.root),
|
|
101
|
-
children: [/* @__PURE__ */ v("div", {
|
|
102
|
-
...l.props(a.header),
|
|
103
|
-
children: [/* @__PURE__ */ _("span", {
|
|
104
|
-
...l.props(a.label),
|
|
105
|
-
children: t
|
|
106
|
-
}), /* @__PURE__ */ _(r, {
|
|
107
|
-
label: t,
|
|
108
|
-
value: d,
|
|
109
|
-
children: "Copy JSON"
|
|
110
|
-
})]
|
|
111
|
-
}), /* @__PURE__ */ _("div", {
|
|
112
|
-
ref: c.ref,
|
|
113
|
-
role: "region",
|
|
114
|
-
"aria-label": `${t} fields`,
|
|
115
|
-
tabIndex: c.tabIndex,
|
|
116
|
-
...l.props(a.scrollRegion, j.body),
|
|
117
|
-
children: /* @__PURE__ */ _(N, {
|
|
118
|
-
name: "root",
|
|
119
|
-
path: "",
|
|
120
|
-
value: e,
|
|
121
|
-
depth: 0,
|
|
122
|
-
maxDepth: Math.max(1, n),
|
|
123
|
-
maxEntries: Math.max(1, s)
|
|
124
|
-
})
|
|
125
|
-
})]
|
|
126
|
-
});
|
|
127
|
-
}
|
|
128
|
-
// packages/content/src/log-viewer.tsx
|
|
129
|
-
var F = {
|
|
130
|
-
kVQacm: "xysyzu8",
|
|
131
|
-
kmVPX3: "x1mvvolr",
|
|
132
|
-
kogj98: "x1ghz6dp",
|
|
133
|
-
kMv6JI: "xiard35",
|
|
134
|
-
kGuDYH: "xy8obcc",
|
|
135
|
-
kLWn49: "x1778rvt",
|
|
136
|
-
khDVqt: "x126k92a",
|
|
137
|
-
kHjlTd: "xj0a0fe",
|
|
138
|
-
kKi2Bq: "xeq4nuv",
|
|
139
|
-
$$css: !0
|
|
140
|
-
}, I = {
|
|
141
|
-
output: (e) => [
|
|
142
|
-
F,
|
|
143
|
-
{
|
|
144
|
-
kskxy: e == null ? e : "x1jols5v",
|
|
145
|
-
$$css: !0
|
|
146
|
-
},
|
|
147
|
-
{ "--x-maxHeight": ((e) => typeof e == "number" ? e + "px" : e ?? void 0)(e) }
|
|
148
|
-
],
|
|
149
|
-
notice: {
|
|
150
|
-
kt9PQ7: "xso031l",
|
|
151
|
-
kfdmCh: "x1q0q8m5",
|
|
152
|
-
kL6WhQ: "x1qndepd",
|
|
153
|
-
$$css: !0
|
|
154
|
-
}
|
|
155
|
-
}, L = 2e5;
|
|
156
|
-
function R({ output: t, label: n, variant: s = "default", maxLines: c = 500, maxHeight: u = 320, isRunning: g = !1 }) {
|
|
157
|
-
let y = i(), b = y.viewport, x = f(!1), [S] = p(() => {
|
|
158
|
-
let e = h();
|
|
159
|
-
return {
|
|
160
|
-
...e,
|
|
161
|
-
subscribe: (t) => e.subscribe(t),
|
|
162
|
-
read: () => e.get()
|
|
163
|
-
};
|
|
164
|
-
}), { following: C } = m(S.subscribe, S.read, S.read), w = T(t), E = w.slice(-2e5).split("\n"), D = E.slice(-Math.max(1, c)), O = E.length - D.length, k = s === "embedded", A = g && (!k || !C);
|
|
165
|
-
return d(() => {
|
|
166
|
-
let e = b.current;
|
|
167
|
-
return e === null ? void 0 : S.connect(e);
|
|
168
|
-
}, [S, b]), d(() => {
|
|
169
|
-
!g && x.current && (x.current = !1, b.current?.focus({ preventScroll: !0 }));
|
|
170
|
-
}, [g]), /* @__PURE__ */ v(o, {
|
|
171
|
-
kind: "log",
|
|
172
|
-
"aria-label": n,
|
|
173
|
-
...l.props(a.root, k && a.embedded),
|
|
174
|
-
children: [
|
|
175
|
-
/* @__PURE__ */ v("div", {
|
|
176
|
-
...l.props(a.header, k && a.embeddedHeader),
|
|
177
|
-
children: [/* @__PURE__ */ v("span", {
|
|
178
|
-
...l.props(a.label),
|
|
179
|
-
children: [n, g && !k && " · running"]
|
|
180
|
-
}), /* @__PURE__ */ v("div", {
|
|
181
|
-
...l.props(a.actions),
|
|
182
|
-
children: [A && /* @__PURE__ */ _(e, {
|
|
183
|
-
variant: "ghost",
|
|
184
|
-
onClick: () => {
|
|
185
|
-
C ? S.release() : S.scrollToBottom();
|
|
186
|
-
},
|
|
187
|
-
onFocus: () => {
|
|
188
|
-
x.current = !0;
|
|
189
|
-
},
|
|
190
|
-
onBlur: () => {
|
|
191
|
-
x.current = !1;
|
|
192
|
-
},
|
|
193
|
-
children: C ? "Pause following" : "Follow output"
|
|
194
|
-
}), /* @__PURE__ */ _(r, {
|
|
195
|
-
value: t,
|
|
196
|
-
label: n,
|
|
197
|
-
display: k ? "icon" : "value",
|
|
198
|
-
children: "Copy"
|
|
199
|
-
})]
|
|
200
|
-
})]
|
|
201
|
-
}),
|
|
202
|
-
O > 0 && /* @__PURE__ */ v("div", {
|
|
203
|
-
...l.props(a.note, I.notice),
|
|
204
|
-
children: [O, " earlier lines omitted from this view. Copy includes the supplied output."]
|
|
205
|
-
}),
|
|
206
|
-
w.length > L && /* @__PURE__ */ _("div", {
|
|
207
|
-
...l.props(a.note, I.notice),
|
|
208
|
-
children: "Preview limited to the last 200,000 characters. Copy includes the supplied output."
|
|
209
|
-
}),
|
|
210
|
-
/* @__PURE__ */ _("pre", {
|
|
211
|
-
ref: y.ref,
|
|
212
|
-
role: "region",
|
|
213
|
-
"aria-label": `${n} output`,
|
|
214
|
-
tabIndex: y.tabIndex,
|
|
215
|
-
...l.props(a.scrollRegion, I.output(u)),
|
|
216
|
-
children: /* @__PURE__ */ _("span", {
|
|
217
|
-
className: "x1lliihq",
|
|
218
|
-
children: w.length === 0 ? "No output recorded." : D.join("\n")
|
|
219
|
-
})
|
|
220
|
-
})
|
|
221
|
-
]
|
|
222
|
-
});
|
|
223
|
-
}
|
|
224
|
-
// packages/content/src/media-viewer.tsx
|
|
225
|
-
var z = {
|
|
226
|
-
viewport: {
|
|
227
|
-
k1xSpc: "xrvj5dj",
|
|
228
|
-
kgQiWS: "x1ku5rj1",
|
|
229
|
-
kzqmXN: "xh8yej3",
|
|
230
|
-
kOBAk4: "x186iv6y",
|
|
231
|
-
kskxy: "xcwfpss",
|
|
232
|
-
k7Eaqz: "xeuugli",
|
|
233
|
-
kVQacm: "xb3r6kr",
|
|
234
|
-
kWkggS: "x1r7kqkb",
|
|
235
|
-
$$css: !0
|
|
236
|
-
},
|
|
237
|
-
placeholder: {
|
|
238
|
-
kWkggS: "x1fa40ue",
|
|
239
|
-
$$css: !0
|
|
240
|
-
}
|
|
241
|
-
};
|
|
242
|
-
function B() {
|
|
243
|
-
return /* @__PURE__ */ _("div", {
|
|
244
|
-
"aria-hidden": !0,
|
|
245
|
-
...l.props(a.root, z.viewport, z.placeholder)
|
|
246
|
-
});
|
|
247
|
-
}
|
|
248
|
-
function V({ kind: e, src: t, label: n, widthPixels: r, heightPixels: i, onError: o }) {
|
|
249
|
-
return /* @__PURE__ */ _("div", {
|
|
250
|
-
...l.props(a.root, z.viewport),
|
|
251
|
-
children: e === "image" ? /* @__PURE__ */ _("img", {
|
|
252
|
-
src: t,
|
|
253
|
-
alt: n,
|
|
254
|
-
width: r,
|
|
255
|
-
height: i,
|
|
256
|
-
onError: o,
|
|
257
|
-
className: "x1lliihq xh8yej3 x5yr21d x2lwn1j x19kjcj4"
|
|
258
|
-
}) : /* @__PURE__ */ _("video", {
|
|
259
|
-
src: t,
|
|
260
|
-
"aria-label": n,
|
|
261
|
-
width: r,
|
|
262
|
-
height: i,
|
|
263
|
-
controls: !0,
|
|
264
|
-
muted: !0,
|
|
265
|
-
playsInline: !0,
|
|
266
|
-
preload: "metadata",
|
|
267
|
-
onError: o,
|
|
268
|
-
className: "x1lliihq xh8yej3 x5yr21d x2lwn1j x19kjcj4"
|
|
269
|
-
})
|
|
270
|
-
});
|
|
271
|
-
}
|
|
272
|
-
// packages/content/src/stack-trace.tsx
|
|
273
|
-
function H({ message: e, frames: t }) {
|
|
274
|
-
return /* @__PURE__ */ v(o, {
|
|
275
|
-
kind: "stack-trace",
|
|
276
|
-
"aria-label": "Stack trace",
|
|
277
|
-
...l.props(a.root),
|
|
278
|
-
children: [/* @__PURE__ */ _("p", {
|
|
279
|
-
className: "x1ghz6dp x1mvvolr xso031l x1q0q8m5 x1qndepd xr5kp14 xk4h15q xj0a0fe",
|
|
280
|
-
children: e
|
|
281
|
-
}), t.length === 0 ? /* @__PURE__ */ _("p", {
|
|
282
|
-
className: "x1ghz6dp x1mvvolr x153jb6y",
|
|
283
|
-
children: "No frames recorded."
|
|
284
|
-
}) : /* @__PURE__ */ _("ol", {
|
|
285
|
-
className: "x1ghz6dp x1717udv x3ct3a4",
|
|
286
|
-
children: t.map((e) => {
|
|
287
|
-
let t = [
|
|
288
|
-
e.file,
|
|
289
|
-
e.line,
|
|
290
|
-
e.column
|
|
291
|
-
].filter((e) => e !== void 0).join(":");
|
|
292
|
-
return /* @__PURE__ */ v("li", {
|
|
293
|
-
className: "x78zum5 xdt5ytf x1hnptsi xeuugli xj0a0fe x1mvvolr xso031l x1t1lzn6 x1q0q8m5 x1qndepd",
|
|
294
|
-
children: [/* @__PURE__ */ v("div", { children: [/* @__PURE__ */ _(c, {
|
|
295
|
-
href: e.href,
|
|
296
|
-
children: e.name
|
|
297
|
-
}), t.length > 0 && /* @__PURE__ */ _("span", {
|
|
298
|
-
className: "x1lliihq x153jb6y xiard35 xy8obcc xj0a0fe",
|
|
299
|
-
children: t
|
|
300
|
-
})] }), e.code !== void 0 && /* @__PURE__ */ _(s, {
|
|
301
|
-
code: e.code,
|
|
302
|
-
language: e.language,
|
|
303
|
-
filename: e.file
|
|
304
|
-
})]
|
|
305
|
-
}, e.id);
|
|
306
|
-
})
|
|
307
|
-
})]
|
|
308
|
-
});
|
|
309
|
-
}
|
|
310
|
-
// packages/content/src/trace.tsx
|
|
311
|
-
var U = {
|
|
312
|
-
pending: {
|
|
313
|
-
kMwMTN: "x153jb6y",
|
|
314
|
-
$$css: !0
|
|
315
|
-
},
|
|
316
|
-
running: {
|
|
317
|
-
kMwMTN: "xbixft",
|
|
318
|
-
$$css: !0
|
|
319
|
-
},
|
|
320
|
-
complete: {
|
|
321
|
-
kMwMTN: "x7ixh4y",
|
|
322
|
-
$$css: !0
|
|
323
|
-
},
|
|
324
|
-
failed: {
|
|
325
|
-
kMwMTN: "xr5kp14",
|
|
326
|
-
$$css: !0
|
|
327
|
-
},
|
|
328
|
-
skipped: {
|
|
329
|
-
kMwMTN: "x153jb6y",
|
|
330
|
-
$$css: !0
|
|
331
|
-
},
|
|
332
|
-
unknown: {
|
|
333
|
-
kMwMTN: "x153jb6y",
|
|
334
|
-
$$css: !0
|
|
335
|
-
}
|
|
336
|
-
}, W = {
|
|
337
|
-
pending: U.pending,
|
|
338
|
-
running: U.running,
|
|
339
|
-
complete: U.complete,
|
|
340
|
-
failed: U.failed,
|
|
341
|
-
skipped: U.skipped,
|
|
342
|
-
unknown: U.unknown
|
|
343
|
-
}, G = {
|
|
344
|
-
pending: C,
|
|
345
|
-
running: b,
|
|
346
|
-
complete: y,
|
|
347
|
-
failed: w,
|
|
348
|
-
skipped: x,
|
|
349
|
-
unknown: S
|
|
350
|
-
};
|
|
351
|
-
function K({ label: e, children: t }) {
|
|
352
|
-
return /* @__PURE__ */ _("ol", {
|
|
353
|
-
"aria-label": e,
|
|
354
|
-
className: "x1ghz6dp x1717udv x3ct3a4 xeuugli x1hz01jw xtqrqnz x1778rvt xj57cvi xbixft",
|
|
355
|
-
children: t
|
|
356
|
-
});
|
|
357
|
-
}
|
|
358
|
-
function q({ label: e, children: t }) {
|
|
359
|
-
return /* @__PURE__ */ _("ol", {
|
|
360
|
-
"aria-label": e,
|
|
361
|
-
className: "x1ghz6dp x1717udv x3ct3a4 xeuugli x1hz01jw xtqrqnz x1778rvt xj57cvi xbixft x3bg4vu",
|
|
362
|
-
children: t
|
|
363
|
-
});
|
|
364
|
-
}
|
|
365
|
-
function J({ id: e, label: r, status: i, statusLabel: a, description: o, detail: s, isSelected: c, onSelect: u, children: d }) {
|
|
366
|
-
let f = G[i];
|
|
367
|
-
return /* @__PURE__ */ v("li", {
|
|
368
|
-
"data-item-id": e,
|
|
369
|
-
className: "x1n2onr6 xrvj5dj x1qpdrs7 x8zbtdt x1wv5www xup0pd7",
|
|
370
|
-
children: [/* @__PURE__ */ v("div", {
|
|
371
|
-
"aria-hidden": !0,
|
|
372
|
-
className: "x78zum5 xdt5ytf x6s0dn4 xunmzkg x1lk341d",
|
|
373
|
-
children: [/* @__PURE__ */ _(f, {
|
|
374
|
-
size: 14,
|
|
375
|
-
...l.props(W[i])
|
|
376
|
-
}), /* @__PURE__ */ _("span", { className: "x1i1rx1s x1f6qilh x98rzlu x1fa40ue" })]
|
|
377
|
-
}), /* @__PURE__ */ v("div", {
|
|
378
|
-
className: "x78zum5 xdt5ytf xunmzkg xeuugli",
|
|
379
|
-
children: [
|
|
380
|
-
/* @__PURE__ */ _("div", {
|
|
381
|
-
...{
|
|
382
|
-
0: { className: "xk4h15q xj0a0fe" },
|
|
383
|
-
1: { className: "xk4h15q xj0a0fe xujl8zx xda060z" }
|
|
384
|
-
}[c === !0 | 0],
|
|
385
|
-
children: u === void 0 ? r : /* @__PURE__ */ _(t, {
|
|
386
|
-
"aria-pressed": c,
|
|
387
|
-
onClick: () => u(e),
|
|
388
|
-
children: r
|
|
389
|
-
})
|
|
390
|
-
}),
|
|
391
|
-
/* @__PURE__ */ _("span", {
|
|
392
|
-
className: "xy8obcc xas2l8k x153jb6y xj0a0fe",
|
|
393
|
-
children: a
|
|
394
|
-
}),
|
|
395
|
-
o !== void 0 && /* @__PURE__ */ _("p", {
|
|
396
|
-
className: "x1ghz6dp x153jb6y xj0a0fe",
|
|
397
|
-
children: o
|
|
398
|
-
}),
|
|
399
|
-
s !== void 0 && /* @__PURE__ */ v(n.Root, { children: [/* @__PURE__ */ _(n.Trigger, { children: "Details" }), /* @__PURE__ */ _(n.Panel, { children: s })] }),
|
|
400
|
-
d
|
|
401
|
-
]
|
|
402
|
-
})]
|
|
403
|
-
});
|
|
404
|
-
}
|
|
405
|
-
var Y = {
|
|
406
|
-
Root: K,
|
|
407
|
-
Item: J,
|
|
408
|
-
Group: q
|
|
409
|
-
}, X = {
|
|
410
|
-
mark: {
|
|
411
|
-
kWkggS: "x1dqe72f",
|
|
412
|
-
kMwMTN: "xbixft",
|
|
413
|
-
kaIpWk: "x1ok0vyi",
|
|
414
|
-
kg3NbH: "x1r97e56",
|
|
415
|
-
$$css: !0
|
|
416
|
-
},
|
|
417
|
-
accent: {
|
|
418
|
-
kWkggS: "x1r8u7ye",
|
|
419
|
-
kMwMTN: "x7ixh4y",
|
|
420
|
-
$$css: !0
|
|
421
|
-
},
|
|
422
|
-
danger: {
|
|
423
|
-
kWkggS: "xcqwzn",
|
|
424
|
-
kMwMTN: "xr5kp14",
|
|
425
|
-
$$css: !0
|
|
426
|
-
}
|
|
427
|
-
};
|
|
428
|
-
function Z({ text: e, query: t, ranges: n, tone: r = "warning", mode: i = "contains" }) {
|
|
429
|
-
let a = n === void 0 ? t.trim() === "" ? [] : D(e, t, i) : [...n], o = a.length === 0 ? [{
|
|
430
|
-
text: e,
|
|
431
|
-
match: !1
|
|
432
|
-
}] : k(e, a), s = r === "accent" ? X.accent : r === "danger" ? X.danger : void 0, c = 0;
|
|
433
|
-
return /* @__PURE__ */ _(g, { children: o.map((e) => {
|
|
434
|
-
let t = `${c}-${e.match ? "m" : "t"}`;
|
|
435
|
-
return c += e.text.length, e.match ? /* @__PURE__ */ _("mark", {
|
|
436
|
-
...l.props(X.mark, s),
|
|
437
|
-
children: e.text
|
|
438
|
-
}, t) : /* @__PURE__ */ _("span", { children: e.text }, t);
|
|
439
|
-
}) });
|
|
440
|
-
}
|
|
441
|
-
export { Y as a, B as c, A as i, R as l, E as n, H as o, O as r, V as s, Z as t, P as u };
|