app-devtools 0.5.0 → 0.7.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/main.d.ts +10 -9
- package/dist/main.js +163 -152
- package/dist/main.umd.cjs +30 -30
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -9,7 +9,7 @@ import gt from "tinykeys";
|
|
|
9
9
|
const ht = ["allowfullscreen", "async", "autofocus", "autoplay", "checked", "controls", "default", "disabled", "formnovalidate", "hidden", "indeterminate", "ismap", "loop", "multiple", "muted", "nomodule", "novalidate", "open", "playsinline", "readonly", "required", "reversed", "seamless", "selected"], mt = /* @__PURE__ */ new Set(["className", "value", "readOnly", "formNoValidate", "isMap", "noModule", "playsInline", ...ht]), $t = /* @__PURE__ */ new Set(["innerHTML", "textContent", "innerText", "children"]), yt = /* @__PURE__ */ Object.assign(/* @__PURE__ */ Object.create(null), {
|
|
10
10
|
className: "class",
|
|
11
11
|
htmlFor: "for"
|
|
12
|
-
}),
|
|
12
|
+
}), Ne = /* @__PURE__ */ Object.assign(/* @__PURE__ */ Object.create(null), {
|
|
13
13
|
class: "className",
|
|
14
14
|
formnovalidate: "formNoValidate",
|
|
15
15
|
ismap: "isMap",
|
|
@@ -65,7 +65,7 @@ function Ct(e, t, n) {
|
|
|
65
65
|
}
|
|
66
66
|
}
|
|
67
67
|
}
|
|
68
|
-
const
|
|
68
|
+
const Se = "_$DX_DELEGATE";
|
|
69
69
|
function xt(e, t, n, l = {}) {
|
|
70
70
|
let i;
|
|
71
71
|
return it((o) => {
|
|
@@ -81,7 +81,7 @@ function $(e, t, n) {
|
|
|
81
81
|
return n && (i = i.firstChild), i;
|
|
82
82
|
}
|
|
83
83
|
function ce(e, t = window.document) {
|
|
84
|
-
const n = t[
|
|
84
|
+
const n = t[Se] || (t[Se] = /* @__PURE__ */ new Set());
|
|
85
85
|
for (let l = 0, i = e.length; l < i; l++) {
|
|
86
86
|
const o = e[l];
|
|
87
87
|
n.has(o) || (n.add(o), t.addEventListener(o, At));
|
|
@@ -132,16 +132,16 @@ function We(e, t, n) {
|
|
|
132
132
|
i = t[o], i !== n[o] && (l.setProperty(o, i), n[o] = i);
|
|
133
133
|
return n;
|
|
134
134
|
}
|
|
135
|
-
function
|
|
135
|
+
function Nt(e, t = {}, n, l) {
|
|
136
136
|
const i = {};
|
|
137
|
-
return l || C(() => i.children = U(e, t.children, i.children)), C(() => t.ref && t.ref(e)), C(() =>
|
|
137
|
+
return l || C(() => i.children = U(e, t.children, i.children)), C(() => t.ref && t.ref(e)), C(() => St(e, t, n, !0, i, !0)), i;
|
|
138
138
|
}
|
|
139
139
|
function u(e, t, n, l) {
|
|
140
140
|
if (n !== void 0 && !l && (l = []), typeof t != "function")
|
|
141
141
|
return U(e, t, l, n);
|
|
142
142
|
C((i) => U(e, t(), i, n), l);
|
|
143
143
|
}
|
|
144
|
-
function
|
|
144
|
+
function St(e, t, n, l, i = {}, o = !1) {
|
|
145
145
|
t || (t = {});
|
|
146
146
|
for (const s in i)
|
|
147
147
|
if (!(s in t)) {
|
|
@@ -189,8 +189,8 @@ function Ae(e, t, n, l, i, o) {
|
|
|
189
189
|
e.removeEventListener(c, g);
|
|
190
190
|
}
|
|
191
191
|
(d || n) && (oe(e, c, n, d), d && ce([c]));
|
|
192
|
-
} else if ((a = $t.has(t)) || !i && (
|
|
193
|
-
t === "class" || t === "className" ? b(e, n) : s && !r && !a ? e[kt(t)] = n : e[
|
|
192
|
+
} else if ((a = $t.has(t)) || !i && (Ne[t] || (r = mt.has(t))) || (s = e.nodeName.includes("-")))
|
|
193
|
+
t === "class" || t === "className" ? b(e, n) : s && !r && !a ? e[kt(t)] = n : e[Ne[t] || t] = n;
|
|
194
194
|
else {
|
|
195
195
|
const c = i && t.indexOf(":") > -1 && bt[t.split(":")[0]];
|
|
196
196
|
c ? wt(e, c, t, n) : P(e, yt[t] || t, n);
|
|
@@ -378,7 +378,7 @@ var Pt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
378
378
|
})(Tt);
|
|
379
379
|
const Et = $e, Lt = /* @__PURE__ */ $("<button></button>"), M = (e) => (() => {
|
|
380
380
|
const t = Lt.cloneNode(!0);
|
|
381
|
-
return
|
|
381
|
+
return Nt(t, st(e, {
|
|
382
382
|
onMouseDown: Ot
|
|
383
383
|
}), !1, !1), t;
|
|
384
384
|
})();
|
|
@@ -648,7 +648,7 @@ function Xt(e) {
|
|
|
648
648
|
return t;
|
|
649
649
|
};
|
|
650
650
|
}
|
|
651
|
-
const [
|
|
651
|
+
const [S, se] = Qe({
|
|
652
652
|
selectedCall: null,
|
|
653
653
|
selectedRequest: null,
|
|
654
654
|
selectedTab: null,
|
|
@@ -694,7 +694,7 @@ const [N, se] = Qe({
|
|
|
694
694
|
right: "flex-end",
|
|
695
695
|
center: "center",
|
|
696
696
|
stretch: "stretch"
|
|
697
|
-
},
|
|
697
|
+
}, N = ({
|
|
698
698
|
justify: e = "top",
|
|
699
699
|
align: t = "stretch",
|
|
700
700
|
gap: n = 0
|
|
@@ -796,7 +796,7 @@ function we(e) {
|
|
|
796
796
|
const on = /* @__PURE__ */ $('<div class="tag"></div>'), Ee = /* @__PURE__ */ $("<span></span>"), ln = /* @__PURE__ */ $('<div><div class="call"></div></div>'), sn = _`
|
|
797
797
|
&&& {
|
|
798
798
|
font-size: 14px;
|
|
799
|
-
${
|
|
799
|
+
${N()};
|
|
800
800
|
|
|
801
801
|
> .call {
|
|
802
802
|
padding: 4px 12px;
|
|
@@ -925,7 +925,7 @@ const on = /* @__PURE__ */ $('<div class="tag"></div>'), Ee = /* @__PURE__ */ $(
|
|
|
925
925
|
class: "subitem",
|
|
926
926
|
get classList() {
|
|
927
927
|
return {
|
|
928
|
-
selected: n() === t().id &&
|
|
928
|
+
selected: n() === t().id && S.selectedSubitem === r
|
|
929
929
|
};
|
|
930
930
|
},
|
|
931
931
|
onClick: () => {
|
|
@@ -975,19 +975,31 @@ function un(e, t) {
|
|
|
975
975
|
l[t.keys[n]] = i[++n] || null;
|
|
976
976
|
return l;
|
|
977
977
|
}
|
|
978
|
-
|
|
978
|
+
function tt(e) {
|
|
979
|
+
return e ? e.slice().reverse() : [];
|
|
980
|
+
}
|
|
981
|
+
function fn(...e) {
|
|
982
|
+
const t = [];
|
|
983
|
+
for (const n of e)
|
|
984
|
+
n != null && t.push(...n);
|
|
985
|
+
return t;
|
|
986
|
+
}
|
|
987
|
+
function pn(e) {
|
|
988
|
+
return e.filter((t) => t != null);
|
|
989
|
+
}
|
|
990
|
+
const [H, gn] = Qe({
|
|
979
991
|
calls: {}
|
|
980
992
|
});
|
|
981
993
|
let ve = {
|
|
982
994
|
callsProcessor: []
|
|
983
995
|
};
|
|
984
|
-
function
|
|
996
|
+
function hn(e) {
|
|
985
997
|
ve = {
|
|
986
998
|
...ve,
|
|
987
999
|
...e
|
|
988
1000
|
};
|
|
989
1001
|
}
|
|
990
|
-
function
|
|
1002
|
+
function Vr(e) {
|
|
991
1003
|
const t = e.startTime || Date.now();
|
|
992
1004
|
return ({
|
|
993
1005
|
isError: n,
|
|
@@ -997,7 +1009,7 @@ function Br(e) {
|
|
|
997
1009
|
tags: s
|
|
998
1010
|
}) => {
|
|
999
1011
|
const r = e.duration || Date.now() - t;
|
|
1000
|
-
|
|
1012
|
+
gn(
|
|
1001
1013
|
Xt((a) => {
|
|
1002
1014
|
const c = Oe(
|
|
1003
1015
|
() => new URL(e.path, "http://localhost")
|
|
@@ -1051,7 +1063,9 @@ function Br(e) {
|
|
|
1051
1063
|
method: e.method,
|
|
1052
1064
|
subType: e.subType,
|
|
1053
1065
|
code: l,
|
|
1054
|
-
tags:
|
|
1066
|
+
tags: pn(
|
|
1067
|
+
fn(e.tags, s)
|
|
1068
|
+
)
|
|
1055
1069
|
}, ee = Oe(
|
|
1056
1070
|
() => f?.payloadAlias?.(k.payload, k)
|
|
1057
1071
|
);
|
|
@@ -1060,9 +1074,9 @@ function Br(e) {
|
|
|
1060
1074
|
);
|
|
1061
1075
|
};
|
|
1062
1076
|
}
|
|
1063
|
-
const
|
|
1077
|
+
const mn = /* @__PURE__ */ $('<div><h1>API EXPLORER</h1><label><input type="text" placeholder="Search"></label><div></div></div>'), $n = _`
|
|
1064
1078
|
&&& {
|
|
1065
|
-
${
|
|
1079
|
+
${N()};
|
|
1066
1080
|
border-right: 1px solid ${h.white.alpha(0.1)};
|
|
1067
1081
|
|
|
1068
1082
|
> h1 {
|
|
@@ -1074,14 +1088,14 @@ const gn = /* @__PURE__ */ $('<div><h1>API EXPLORER</h1><label><input type="text
|
|
|
1074
1088
|
padding-bottom: 16px;
|
|
1075
1089
|
}
|
|
1076
1090
|
}
|
|
1077
|
-
`,
|
|
1091
|
+
`, yn = _`
|
|
1078
1092
|
&&& {
|
|
1079
|
-
${
|
|
1093
|
+
${N()};
|
|
1080
1094
|
flex: 1 1;
|
|
1081
1095
|
overflow-y: auto;
|
|
1082
1096
|
padding-bottom: 16px;
|
|
1083
1097
|
}
|
|
1084
|
-
`,
|
|
1098
|
+
`, vn = _`
|
|
1085
1099
|
&&& {
|
|
1086
1100
|
${B({
|
|
1087
1101
|
gap: 8
|
|
@@ -1111,7 +1125,7 @@ const gn = /* @__PURE__ */ $('<div><h1>API EXPLORER</h1><label><input type="text
|
|
|
1111
1125
|
}
|
|
1112
1126
|
}
|
|
1113
1127
|
}
|
|
1114
|
-
`,
|
|
1128
|
+
`, bn = () => {
|
|
1115
1129
|
const e = we(""), t = et(() => {
|
|
1116
1130
|
const l = Object.entries(H.calls), i = [];
|
|
1117
1131
|
for (const [o, s] of l.reverse()) {
|
|
@@ -1127,14 +1141,14 @@ const gn = /* @__PURE__ */ $('<div><h1>API EXPLORER</h1><label><input type="text
|
|
|
1127
1141
|
});
|
|
1128
1142
|
}
|
|
1129
1143
|
return i;
|
|
1130
|
-
}, "id"), n = m(() =>
|
|
1144
|
+
}, "id"), n = m(() => S.selectedCall);
|
|
1131
1145
|
return (() => {
|
|
1132
|
-
const l =
|
|
1133
|
-
return b(l,
|
|
1146
|
+
const l = mn.cloneNode(!0), i = l.firstChild, o = i.nextSibling, s = o.firstChild, r = o.nextSibling;
|
|
1147
|
+
return b(l, $n), b(o, vn), u(o, p(de, {
|
|
1134
1148
|
name: "search"
|
|
1135
1149
|
}), s), s.$$input = (a) => {
|
|
1136
1150
|
e.value = a.currentTarget.value;
|
|
1137
|
-
}, b(r,
|
|
1151
|
+
}, b(r, yn), u(r, p(F, {
|
|
1138
1152
|
get each() {
|
|
1139
1153
|
return t();
|
|
1140
1154
|
},
|
|
@@ -1151,7 +1165,7 @@ const gn = /* @__PURE__ */ $('<div><h1>API EXPLORER</h1><label><input type="text
|
|
|
1151
1165
|
})();
|
|
1152
1166
|
};
|
|
1153
1167
|
ce(["input"]);
|
|
1154
|
-
function
|
|
1168
|
+
function nt(...e) {
|
|
1155
1169
|
const t = [];
|
|
1156
1170
|
for (let n = 0; n < e.length; n++) {
|
|
1157
1171
|
const l = e[n];
|
|
@@ -1166,9 +1180,9 @@ function tt(...e) {
|
|
|
1166
1180
|
}
|
|
1167
1181
|
return t.join(" ");
|
|
1168
1182
|
}
|
|
1169
|
-
const
|
|
1183
|
+
const Cn = /* @__PURE__ */ $('<div><div class="content"></div></div>'), xn = /* @__PURE__ */ $("<h1></h1>"), wn = _`
|
|
1170
1184
|
&&& {
|
|
1171
|
-
${
|
|
1185
|
+
${N()};
|
|
1172
1186
|
|
|
1173
1187
|
> h1 {
|
|
1174
1188
|
font-size: 14px;
|
|
@@ -1201,22 +1215,22 @@ const vn = /* @__PURE__ */ $('<div><div class="content"></div></div>'), bn = /*
|
|
|
1201
1215
|
}
|
|
1202
1216
|
}
|
|
1203
1217
|
`, E = (e) => (() => {
|
|
1204
|
-
const t =
|
|
1218
|
+
const t = Cn.cloneNode(!0), n = t.firstChild;
|
|
1205
1219
|
return u(t, (() => {
|
|
1206
1220
|
const l = m(() => !!e.title);
|
|
1207
1221
|
return () => l() && (() => {
|
|
1208
|
-
const i =
|
|
1222
|
+
const i = xn.cloneNode(!0);
|
|
1209
1223
|
return u(i, () => e.title), i;
|
|
1210
1224
|
})();
|
|
1211
|
-
})(), n), u(n, () => e.children), C(() => b(t,
|
|
1212
|
-
})(),
|
|
1225
|
+
})(), n), u(n, () => e.children), C(() => b(t, nt(wn, e.class))), t;
|
|
1226
|
+
})(), _n = `
|
|
1213
1227
|
user-select: text;
|
|
1214
1228
|
|
|
1215
1229
|
*, *::before, *::after {
|
|
1216
1230
|
user-select: text;
|
|
1217
1231
|
}
|
|
1218
1232
|
`;
|
|
1219
|
-
function
|
|
1233
|
+
function Nn(e) {
|
|
1220
1234
|
return `
|
|
1221
1235
|
display: -webkit-box;
|
|
1222
1236
|
overflow: hidden;
|
|
@@ -1224,12 +1238,12 @@ function wn(e) {
|
|
|
1224
1238
|
-webkit-box-orient: vertical;
|
|
1225
1239
|
`;
|
|
1226
1240
|
}
|
|
1227
|
-
const
|
|
1241
|
+
const Sn = /* @__PURE__ */ $('<div class="key"><span></span></div>'), kn = /* @__PURE__ */ $('<div class="collapsed"></div>'), An = /* @__PURE__ */ $('<div class="delimiter">[]</div>'), Pn = /* @__PURE__ */ $('<div class="delimiter">{}</div>'), je = /* @__PURE__ */ $('<div class="delimiter"></div>'), Me = /* @__PURE__ */ $('<div class="childs"></div>'), Tn = /* @__PURE__ */ $('<div class="delimiter end">]</div>'), Re = /* @__PURE__ */ $('<div class="child"></div>'), En = /* @__PURE__ */ $('<div class="delimiter end">}</div>'), Ln = /* @__PURE__ */ $('<div class="value" title="Shift + Click to copy value"></div>'), De = /* @__PURE__ */ $('<span class="string-quotes">"</span>'), On = /* @__PURE__ */ $("<div></div>"), jn = _`
|
|
1228
1242
|
&&& {
|
|
1229
1243
|
font-family: ${L.decorative};
|
|
1230
1244
|
font-size: 13px;
|
|
1231
|
-
${
|
|
1232
|
-
${
|
|
1245
|
+
${_n};
|
|
1246
|
+
${N({
|
|
1233
1247
|
gap: 2
|
|
1234
1248
|
})};
|
|
1235
1249
|
padding-left: 8px;
|
|
@@ -1252,7 +1266,7 @@ const _n = /* @__PURE__ */ $('<div class="key"><span></span></div>'), Sn = /* @_
|
|
|
1252
1266
|
}
|
|
1253
1267
|
|
|
1254
1268
|
.childs {
|
|
1255
|
-
${
|
|
1269
|
+
${N({
|
|
1256
1270
|
gap: 2
|
|
1257
1271
|
})};
|
|
1258
1272
|
}
|
|
@@ -1316,7 +1330,7 @@ const _n = /* @__PURE__ */ $('<div class="key"><span></span></div>'), Sn = /* @_
|
|
|
1316
1330
|
|
|
1317
1331
|
.value {
|
|
1318
1332
|
word-wrap: break-word;
|
|
1319
|
-
${
|
|
1333
|
+
${Nn(5)};
|
|
1320
1334
|
}
|
|
1321
1335
|
|
|
1322
1336
|
[data-type='number'] {
|
|
@@ -1336,7 +1350,7 @@ const _n = /* @__PURE__ */ $('<div class="key"><span></span></div>'), Sn = /* @_
|
|
|
1336
1350
|
color: ${h.white.alpha(0.5)};
|
|
1337
1351
|
}
|
|
1338
1352
|
}
|
|
1339
|
-
`,
|
|
1353
|
+
`, Mn = new Intl.NumberFormat("en-US"), K = 14, be = (e) => {
|
|
1340
1354
|
let [t, n] = re(!(e.indent > 0 && e.compact)), [l, i] = re(!e.compact);
|
|
1341
1355
|
return m(() => {
|
|
1342
1356
|
const o = e.value, s = Array.isArray(o), r = !s && typeof o == "object" && o !== null, a = e.key !== void 0 || e.index !== void 0, c = s && o.length > 0 || r && Object.keys(o).length > 0, d = c && p(M, {
|
|
@@ -1357,7 +1371,7 @@ const _n = /* @__PURE__ */ $('<div class="key"><span></span></div>'), Sn = /* @_
|
|
|
1357
1371
|
}
|
|
1358
1372
|
});
|
|
1359
1373
|
return [a && (() => {
|
|
1360
|
-
const g =
|
|
1374
|
+
const g = Sn.cloneNode(!0), f = g.firstChild;
|
|
1361
1375
|
return g.$$click = (y) => {
|
|
1362
1376
|
y.shiftKey && ne(JSON.stringify(o));
|
|
1363
1377
|
}, u(g, s || r ? d : null, f), u(f, () => e.key || e.index), C((y) => {
|
|
@@ -1371,9 +1385,9 @@ const _n = /* @__PURE__ */ $('<div class="key"><span></span></div>'), Sn = /* @_
|
|
|
1371
1385
|
})(), m((() => {
|
|
1372
1386
|
const g = m(() => !!(a && c && !t()));
|
|
1373
1387
|
return () => g() ? (() => {
|
|
1374
|
-
const f =
|
|
1388
|
+
const f = kn.cloneNode(!0);
|
|
1375
1389
|
return u(f, () => s ? `[…] ${o.length} items` : `{…} ${Object.keys(o).length} properties`), f;
|
|
1376
|
-
})() : (() => s && o.length === 0 ?
|
|
1390
|
+
})() : (() => s && o.length === 0 ? An.cloneNode(!0) : r && Object.keys(o).length === 0 ? Pn.cloneNode(!0) : s ? [(() => {
|
|
1377
1391
|
const f = je.cloneNode(!0);
|
|
1378
1392
|
return oe(f, "click", a ? void 0 : (y) => {
|
|
1379
1393
|
y.shiftKey && ne(JSON.stringify(o));
|
|
@@ -1410,7 +1424,7 @@ const _n = /* @__PURE__ */ $('<div class="key"><span></span></div>'), Sn = /* @_
|
|
|
1410
1424
|
});
|
|
1411
1425
|
})())];
|
|
1412
1426
|
}), y;
|
|
1413
|
-
})(),
|
|
1427
|
+
})(), Tn.cloneNode(!0)];
|
|
1414
1428
|
})())] : r ? [(() => {
|
|
1415
1429
|
const f = je.cloneNode(!0);
|
|
1416
1430
|
return oe(f, "click", a ? void 0 : (y) => {
|
|
@@ -1451,18 +1465,18 @@ const _n = /* @__PURE__ */ $('<div class="key"><span></span></div>'), Sn = /* @_
|
|
|
1451
1465
|
});
|
|
1452
1466
|
})())];
|
|
1453
1467
|
}), y;
|
|
1454
|
-
})(),
|
|
1468
|
+
})(), En.cloneNode(!0)];
|
|
1455
1469
|
})())] : (() => {
|
|
1456
|
-
const f =
|
|
1470
|
+
const f = Ln.cloneNode(!0);
|
|
1457
1471
|
return f.$$click = (y) => {
|
|
1458
1472
|
y.shiftKey && ne(String(o));
|
|
1459
|
-
}, P(f, "data-type", typeof o), u(f, typeof o == "string" && De.cloneNode(!0), null), u(f, () => typeof o == "number" ?
|
|
1473
|
+
}, P(f, "data-type", typeof o), u(f, typeof o == "string" && De.cloneNode(!0), null), u(f, () => typeof o == "number" ? Mn.format(o) : String(o), null), u(f, typeof o == "string" && De.cloneNode(!0), null), f;
|
|
1460
1474
|
})())();
|
|
1461
1475
|
})())];
|
|
1462
1476
|
});
|
|
1463
1477
|
}, R = (e) => (() => {
|
|
1464
|
-
const t =
|
|
1465
|
-
return b(t,
|
|
1478
|
+
const t = On.cloneNode(!0);
|
|
1479
|
+
return b(t, jn), u(t, p(be, {
|
|
1466
1480
|
get value() {
|
|
1467
1481
|
return e.value;
|
|
1468
1482
|
},
|
|
@@ -1476,13 +1490,13 @@ async function ne(e) {
|
|
|
1476
1490
|
await navigator.clipboard.writeText(e), alert("Copied to clipboard");
|
|
1477
1491
|
}
|
|
1478
1492
|
ce(["click"]);
|
|
1479
|
-
let
|
|
1480
|
-
function
|
|
1481
|
-
return
|
|
1493
|
+
let Rn = 0;
|
|
1494
|
+
function Dn() {
|
|
1495
|
+
return Rn++;
|
|
1482
1496
|
}
|
|
1483
|
-
const
|
|
1497
|
+
const In = /* @__PURE__ */ $("<label></label>"), zn = /* @__PURE__ */ $('<div><div class="inputContainer"><select></select></div></div>'), Fn = /* @__PURE__ */ $('<option value="">-- select an option --</option>'), Bn = /* @__PURE__ */ $("<option></option>"), Hn = _`
|
|
1484
1498
|
&&& {
|
|
1485
|
-
${
|
|
1499
|
+
${N({
|
|
1486
1500
|
align: "left"
|
|
1487
1501
|
})};
|
|
1488
1502
|
width: 100%;
|
|
@@ -1503,7 +1517,7 @@ const Rn = /* @__PURE__ */ $("<label></label>"), Dn = /* @__PURE__ */ $('<div><d
|
|
|
1503
1517
|
position: relative;
|
|
1504
1518
|
width: 100%;
|
|
1505
1519
|
overflow: hidden;
|
|
1506
|
-
${
|
|
1520
|
+
${N({
|
|
1507
1521
|
align: "left"
|
|
1508
1522
|
})};
|
|
1509
1523
|
}
|
|
@@ -1535,53 +1549,50 @@ const Rn = /* @__PURE__ */ $("<label></label>"), Dn = /* @__PURE__ */ $('<div><d
|
|
|
1535
1549
|
background: ${h.white.var};
|
|
1536
1550
|
}
|
|
1537
1551
|
}
|
|
1538
|
-
`,
|
|
1539
|
-
const t = `input${
|
|
1552
|
+
`, Vn = (e) => {
|
|
1553
|
+
const t = `input${Dn()}`;
|
|
1540
1554
|
return (() => {
|
|
1541
|
-
const n =
|
|
1555
|
+
const n = zn.cloneNode(!0), l = n.firstChild, i = l.firstChild;
|
|
1542
1556
|
return u(n, p(ae, {
|
|
1543
1557
|
get when() {
|
|
1544
1558
|
return e.label;
|
|
1545
1559
|
},
|
|
1546
1560
|
get children() {
|
|
1547
|
-
const o =
|
|
1561
|
+
const o = In.cloneNode(!0);
|
|
1548
1562
|
return P(o, "for", t), u(o, () => e.label), o;
|
|
1549
1563
|
}
|
|
1550
1564
|
}), l), i.addEventListener("change", (o) => {
|
|
1551
1565
|
o.currentTarget.value && e.onChange(o.currentTarget.value);
|
|
1552
1566
|
}), P(i, "id", t), u(i, (() => {
|
|
1553
1567
|
const o = m(() => !e.value);
|
|
1554
|
-
return () => o() &&
|
|
1568
|
+
return () => o() && Fn.cloneNode(!0);
|
|
1555
1569
|
})(), null), u(i, p(F, {
|
|
1556
1570
|
get each() {
|
|
1557
1571
|
return e.options;
|
|
1558
1572
|
},
|
|
1559
1573
|
children: (o) => (() => {
|
|
1560
|
-
const s =
|
|
1574
|
+
const s = Bn.cloneNode(!0);
|
|
1561
1575
|
return u(s, () => o.label), C(() => s.value = o.value), s;
|
|
1562
1576
|
})()
|
|
1563
|
-
}), null), C(() => b(n,
|
|
1577
|
+
}), null), C(() => b(n, nt(Hn, e.class))), C(() => i.value = e.value ?? ""), n;
|
|
1564
1578
|
})();
|
|
1565
1579
|
};
|
|
1566
|
-
function
|
|
1580
|
+
function rt(e) {
|
|
1567
1581
|
const t = e.alias || e.payload || e.searchParams;
|
|
1568
1582
|
return !t || Object.keys(t).length === 0 ? "" : typeof t == "string" || typeof t == "number" ? String(t) : JSON.stringify(t);
|
|
1569
1583
|
}
|
|
1570
|
-
function rt(e) {
|
|
1571
|
-
return e ? e.slice().reverse() : [];
|
|
1572
|
-
}
|
|
1573
1584
|
function Ie(e, t) {
|
|
1574
1585
|
return Ue(e, t) ? "no changes" : pt.diffJson(
|
|
1575
1586
|
typeof e == "object" && e !== null ? e : String(e),
|
|
1576
1587
|
typeof t == "object" && t !== null ? t : String(t)
|
|
1577
1588
|
);
|
|
1578
1589
|
}
|
|
1579
|
-
function
|
|
1590
|
+
function Zn(e, t) {
|
|
1580
1591
|
return e.length > t ? `${e.slice(0, t)}...` : e;
|
|
1581
1592
|
}
|
|
1582
|
-
const
|
|
1593
|
+
const Kn = /* @__PURE__ */ $('<div class="changes-count"><span class="additions">+ <b></b> lines</span> | <span class="removals">- <b></b> lines</span></div>'), he = /* @__PURE__ */ $("<div></div>"), ze = /* @__PURE__ */ $("<div>No changes</div>"), Fe = /* @__PURE__ */ $('<div class="line"></div>'), Un = _`
|
|
1583
1594
|
&&& {
|
|
1584
|
-
${
|
|
1595
|
+
${N({
|
|
1585
1596
|
gap: 14
|
|
1586
1597
|
})};
|
|
1587
1598
|
|
|
@@ -1600,7 +1611,7 @@ const Vn = /* @__PURE__ */ $('<div class="changes-count"><span class="additions"
|
|
|
1600
1611
|
}
|
|
1601
1612
|
`, Be = _`
|
|
1602
1613
|
&&& {
|
|
1603
|
-
${
|
|
1614
|
+
${N({
|
|
1604
1615
|
gap: 0
|
|
1605
1616
|
})};
|
|
1606
1617
|
font-size: 14px;
|
|
@@ -1637,32 +1648,32 @@ const Vn = /* @__PURE__ */ $('<div class="changes-count"><span class="additions"
|
|
|
1637
1648
|
}
|
|
1638
1649
|
}
|
|
1639
1650
|
}
|
|
1640
|
-
`,
|
|
1651
|
+
`, Wn = () => {
|
|
1641
1652
|
const e = m(() => {
|
|
1642
1653
|
const {
|
|
1643
1654
|
selectedCall: r
|
|
1644
|
-
} =
|
|
1655
|
+
} = S;
|
|
1645
1656
|
return r ? H.calls[r] : Object.values(H.calls).at(-1);
|
|
1646
1657
|
}), t = et(() => {
|
|
1647
1658
|
const r = e();
|
|
1648
|
-
return r ?
|
|
1659
|
+
return r ? tt(r.requests).map((a) => ({
|
|
1649
1660
|
value: a.id,
|
|
1650
|
-
label: `${Q(a.startTime).format("HH:mm:ss")} | ${
|
|
1651
|
-
})).filter((a) => a.value !==
|
|
1652
|
-
}, "value"), n = we(null), l = m(() =>
|
|
1653
|
-
if (!n.value || !
|
|
1661
|
+
label: `${Q(a.startTime).format("HH:mm:ss")} | ${Zn(rt(a), 50)}`
|
|
1662
|
+
})).filter((a) => a.value !== S.selectedRequest) : [];
|
|
1663
|
+
}, "value"), n = we(null), l = m(() => S.selectedRequest ? e()?.requests.find((r) => r.id === S.selectedRequest) : null), i = m(() => n.value ? e()?.requests.find((r) => r.id === n.value) : null), o = m(() => {
|
|
1664
|
+
if (!n.value || !S.selectedRequest)
|
|
1654
1665
|
return [];
|
|
1655
1666
|
const r = l()?.response, a = i()?.response, c = Ie(a, r);
|
|
1656
1667
|
return c === "no changes" ? [] : c;
|
|
1657
1668
|
}), s = m(() => {
|
|
1658
|
-
if (!n.value || !
|
|
1669
|
+
if (!n.value || !S.selectedRequest)
|
|
1659
1670
|
return [];
|
|
1660
1671
|
const r = He(l()), a = He(i()), c = Ie(a, r);
|
|
1661
1672
|
return c === "no changes" ? [] : c;
|
|
1662
1673
|
});
|
|
1663
1674
|
return (() => {
|
|
1664
1675
|
const r = he.cloneNode(!0);
|
|
1665
|
-
return b(r,
|
|
1676
|
+
return b(r, Un), u(r, p(Vn, {
|
|
1666
1677
|
get value() {
|
|
1667
1678
|
return n.value;
|
|
1668
1679
|
},
|
|
@@ -1679,7 +1690,7 @@ const Vn = /* @__PURE__ */ $('<div class="changes-count"><span class="additions"
|
|
|
1679
1690
|
},
|
|
1680
1691
|
get children() {
|
|
1681
1692
|
return [(() => {
|
|
1682
|
-
const a =
|
|
1693
|
+
const a = Kn.cloneNode(!0), c = a.firstChild, d = c.firstChild, g = d.nextSibling, f = c.nextSibling, y = f.nextSibling, v = y.firstChild, x = v.nextSibling;
|
|
1683
1694
|
return u(g, () => o().filter((w) => w.added).length), u(x, () => o().filter((w) => w.removed).length), a;
|
|
1684
1695
|
})(), p(E, {
|
|
1685
1696
|
get title() {
|
|
@@ -1737,9 +1748,9 @@ const Vn = /* @__PURE__ */ $('<div class="changes-count"><span class="additions"
|
|
|
1737
1748
|
function He(e) {
|
|
1738
1749
|
return e ? e.payload || e.searchParams || e.pathParams : null;
|
|
1739
1750
|
}
|
|
1740
|
-
const Ve = /* @__PURE__ */ $("<div></div>"),
|
|
1751
|
+
const Ve = /* @__PURE__ */ $("<div></div>"), Jn = /* @__PURE__ */ $("<h1></h1>"), Xn = /* @__PURE__ */ $('<div class="tags"></div>'), Gn = /* @__PURE__ */ $('<div class="details"></div>'), Yn = /* @__PURE__ */ $("<h2></h2>"), Qn = /* @__PURE__ */ $('<div class="method"></div>'), qn = /* @__PURE__ */ $('<div class="code"></div>'), er = /* @__PURE__ */ $('<div class="tag error">Has Error</div>'), tr = /* @__PURE__ */ $('<div class="tag"></div>'), nr = _`
|
|
1741
1752
|
&&& {
|
|
1742
|
-
${
|
|
1753
|
+
${N()};
|
|
1743
1754
|
padding-left: 10px;
|
|
1744
1755
|
|
|
1745
1756
|
> h1 {
|
|
@@ -1791,7 +1802,7 @@ const Ve = /* @__PURE__ */ $("<div></div>"), Un = /* @__PURE__ */ $("<h1></h1>")
|
|
|
1791
1802
|
> .details {
|
|
1792
1803
|
margin-top: 14px;
|
|
1793
1804
|
padding-right: 10px;
|
|
1794
|
-
${
|
|
1805
|
+
${N({
|
|
1795
1806
|
gap: 8
|
|
1796
1807
|
})};
|
|
1797
1808
|
flex: 1 1;
|
|
@@ -1799,7 +1810,7 @@ const Ve = /* @__PURE__ */ $("<div></div>"), Un = /* @__PURE__ */ $("<h1></h1>")
|
|
|
1799
1810
|
padding-bottom: 20px;
|
|
1800
1811
|
}
|
|
1801
1812
|
}
|
|
1802
|
-
`,
|
|
1813
|
+
`, rr = _`
|
|
1803
1814
|
&&& {
|
|
1804
1815
|
${B({
|
|
1805
1816
|
gap: 20
|
|
@@ -1821,8 +1832,8 @@ const Ve = /* @__PURE__ */ $("<div></div>"), Un = /* @__PURE__ */ $("<h1></h1>")
|
|
|
1821
1832
|
}
|
|
1822
1833
|
}
|
|
1823
1834
|
}
|
|
1824
|
-
`,
|
|
1825
|
-
const e = m(() =>
|
|
1835
|
+
`, or = () => {
|
|
1836
|
+
const e = m(() => S.selectedCall), t = m(() => S.selectedRequest), n = m(() => S.selectedTab || "summary"), l = m(() => {
|
|
1826
1837
|
let o;
|
|
1827
1838
|
e() ? o = H.calls[e()] : o = Object.values(H.calls).at(-1);
|
|
1828
1839
|
const s = t() && o?.requests.find((r) => r.id === t()) || o?.requests.at(-1);
|
|
@@ -1847,49 +1858,49 @@ const Ve = /* @__PURE__ */ $("<div></div>"), Un = /* @__PURE__ */ $("<h1></h1>")
|
|
|
1847
1858
|
}
|
|
1848
1859
|
return (() => {
|
|
1849
1860
|
const o = Ve.cloneNode(!0);
|
|
1850
|
-
return b(o,
|
|
1861
|
+
return b(o, nr), u(o, p(ae, {
|
|
1851
1862
|
get when() {
|
|
1852
1863
|
return l();
|
|
1853
1864
|
},
|
|
1854
1865
|
keyed: !0,
|
|
1855
1866
|
children: (s) => [(() => {
|
|
1856
|
-
const r =
|
|
1867
|
+
const r = Jn.cloneNode(!0);
|
|
1857
1868
|
return u(r, () => s.callName, null), u(r, () => s.alias && ` | ${s.alias}`, null), r;
|
|
1858
1869
|
})(), m((() => {
|
|
1859
1870
|
const r = m(() => s.callPath !== s.callName);
|
|
1860
1871
|
return () => r() && (() => {
|
|
1861
|
-
const a =
|
|
1872
|
+
const a = Yn.cloneNode(!0);
|
|
1862
1873
|
return u(a, () => s.callPath), a;
|
|
1863
1874
|
})();
|
|
1864
1875
|
})()), (() => {
|
|
1865
|
-
const r =
|
|
1876
|
+
const r = Xn.cloneNode(!0);
|
|
1866
1877
|
return u(r, (() => {
|
|
1867
1878
|
const a = m(() => !!s.method);
|
|
1868
1879
|
return () => a() && (() => {
|
|
1869
|
-
const c =
|
|
1880
|
+
const c = Qn.cloneNode(!0);
|
|
1870
1881
|
return u(c, () => s.method), c;
|
|
1871
1882
|
})();
|
|
1872
1883
|
})(), null), u(r, (() => {
|
|
1873
1884
|
const a = m(() => !!s.code);
|
|
1874
1885
|
return () => a() && (() => {
|
|
1875
|
-
const c =
|
|
1886
|
+
const c = qn.cloneNode(!0);
|
|
1876
1887
|
return u(c, () => s.code), C(() => c.classList.toggle("error", s.code >= 400)), c;
|
|
1877
1888
|
})();
|
|
1878
1889
|
})(), null), u(r, (() => {
|
|
1879
1890
|
const a = m(() => !!s.isError);
|
|
1880
|
-
return () => a() &&
|
|
1891
|
+
return () => a() && er.cloneNode(!0);
|
|
1881
1892
|
})(), null), u(r, p(F, {
|
|
1882
1893
|
get each() {
|
|
1883
1894
|
return s.tags;
|
|
1884
1895
|
},
|
|
1885
1896
|
children: (a) => (() => {
|
|
1886
|
-
const c =
|
|
1897
|
+
const c = tr.cloneNode(!0);
|
|
1887
1898
|
return u(c, a), c;
|
|
1888
1899
|
})()
|
|
1889
1900
|
}), null), r;
|
|
1890
1901
|
})(), (() => {
|
|
1891
1902
|
const r = Ve.cloneNode(!0);
|
|
1892
|
-
return b(r,
|
|
1903
|
+
return b(r, rr), u(r, () => i("summary", "Summary"), null), u(r, (() => {
|
|
1893
1904
|
const a = m(() => !!s.payload);
|
|
1894
1905
|
return () => a() && i("payload", "Payload");
|
|
1895
1906
|
})(), null), u(r, (() => {
|
|
@@ -1897,7 +1908,7 @@ const Ve = /* @__PURE__ */ $("<div></div>"), Un = /* @__PURE__ */ $("<h1></h1>")
|
|
|
1897
1908
|
return () => a() && i("urlParams", "URL Params");
|
|
1898
1909
|
})(), null), u(r, () => i("response", "Response"), null), u(r, () => i("diff", "Diff"), null), r;
|
|
1899
1910
|
})(), (() => {
|
|
1900
|
-
const r =
|
|
1911
|
+
const r = Gn.cloneNode(!0);
|
|
1901
1912
|
return u(r, p(dt, {
|
|
1902
1913
|
get children() {
|
|
1903
1914
|
return [p(G, {
|
|
@@ -2011,7 +2022,7 @@ const Ve = /* @__PURE__ */ $("<div></div>"), Un = /* @__PURE__ */ $("<h1></h1>")
|
|
|
2011
2022
|
return n() === "diff";
|
|
2012
2023
|
},
|
|
2013
2024
|
get children() {
|
|
2014
|
-
return p(
|
|
2025
|
+
return p(Wn, {});
|
|
2015
2026
|
}
|
|
2016
2027
|
})];
|
|
2017
2028
|
}
|
|
@@ -2019,9 +2030,9 @@ const Ve = /* @__PURE__ */ $("<div></div>"), Un = /* @__PURE__ */ $("<h1></h1>")
|
|
|
2019
2030
|
})()]
|
|
2020
2031
|
})), o;
|
|
2021
2032
|
})();
|
|
2022
|
-
},
|
|
2033
|
+
}, lr = /* @__PURE__ */ $("<div><h1>timeline</h1><div></div></div>"), ir = /* @__PURE__ */ $("<div>no requests found</div>"), sr = /* @__PURE__ */ $('<span class="start-time"></span>'), ar = /* @__PURE__ */ $("<div></div>"), cr = /* @__PURE__ */ $('<span class="separator">|</span>'), dr = /* @__PURE__ */ $('<span class="payload"></span>'), ur = _`
|
|
2023
2034
|
&&& {
|
|
2024
|
-
${
|
|
2035
|
+
${N()};
|
|
2025
2036
|
border-right: 1px solid ${h.white.alpha(0.1)};
|
|
2026
2037
|
|
|
2027
2038
|
> h1 {
|
|
@@ -2033,16 +2044,16 @@ const Ve = /* @__PURE__ */ $("<div></div>"), Un = /* @__PURE__ */ $("<h1></h1>")
|
|
|
2033
2044
|
padding-bottom: 16px;
|
|
2034
2045
|
}
|
|
2035
2046
|
}
|
|
2036
|
-
`,
|
|
2047
|
+
`, fr = _`
|
|
2037
2048
|
&&& {
|
|
2038
|
-
${
|
|
2049
|
+
${N()};
|
|
2039
2050
|
flex: 1 1;
|
|
2040
2051
|
overflow-y: auto;
|
|
2041
2052
|
}
|
|
2042
|
-
`,
|
|
2053
|
+
`, pr = _`
|
|
2043
2054
|
&&& {
|
|
2044
2055
|
font-size: 13px;
|
|
2045
|
-
${
|
|
2056
|
+
${N()};
|
|
2046
2057
|
|
|
2047
2058
|
&.error {
|
|
2048
2059
|
color: ${h.error.var};
|
|
@@ -2075,38 +2086,38 @@ const Ve = /* @__PURE__ */ $("<div></div>"), Un = /* @__PURE__ */ $("<h1></h1>")
|
|
|
2075
2086
|
}
|
|
2076
2087
|
}
|
|
2077
2088
|
}
|
|
2078
|
-
`,
|
|
2089
|
+
`, gr = _`
|
|
2079
2090
|
&&& {
|
|
2080
2091
|
opacity: 0.4;
|
|
2081
2092
|
font-size: 14px;
|
|
2082
2093
|
padding: 12px;
|
|
2083
2094
|
padding-top: 0;
|
|
2084
2095
|
}
|
|
2085
|
-
`,
|
|
2096
|
+
`, hr = () => {
|
|
2086
2097
|
const e = m(() => {
|
|
2087
|
-
const i =
|
|
2098
|
+
const i = S.selectedCall;
|
|
2088
2099
|
return i ? i ? H.calls[i] : null : Object.values(H.calls).at(-1) || null;
|
|
2089
2100
|
}), t = m(() => {
|
|
2090
|
-
const i =
|
|
2101
|
+
const i = tt(e()?.requests);
|
|
2091
2102
|
return i.length === 0 ? null : i;
|
|
2092
|
-
}), n = m(() =>
|
|
2103
|
+
}), n = m(() => S.selectedSubitem ? t()?.filter((i) => i.alias === S.selectedSubitem) : t()), l = m(() => S.selectedRequest || n()?.[0]?.id);
|
|
2093
2104
|
return (() => {
|
|
2094
|
-
const i =
|
|
2095
|
-
return b(i,
|
|
2105
|
+
const i = lr.cloneNode(!0), o = i.firstChild, s = o.nextSibling;
|
|
2106
|
+
return b(i, ur), b(s, fr), u(s, p(F, {
|
|
2096
2107
|
get each() {
|
|
2097
2108
|
return n();
|
|
2098
2109
|
},
|
|
2099
2110
|
get fallback() {
|
|
2100
2111
|
return (() => {
|
|
2101
|
-
const r =
|
|
2102
|
-
return b(r,
|
|
2112
|
+
const r = ir.cloneNode(!0);
|
|
2113
|
+
return b(r, gr), r;
|
|
2103
2114
|
})();
|
|
2104
2115
|
},
|
|
2105
2116
|
children: (r) => {
|
|
2106
|
-
const a = Q(r.startTime), c = a.format("HH:mm:ss"), d = a.fromNow(), g =
|
|
2117
|
+
const a = Q(r.startTime), c = a.format("HH:mm:ss"), d = a.fromNow(), g = rt(r);
|
|
2107
2118
|
return (() => {
|
|
2108
|
-
const f =
|
|
2109
|
-
return b(f,
|
|
2119
|
+
const f = ar.cloneNode(!0);
|
|
2120
|
+
return b(f, pr), u(f, p(M, {
|
|
2110
2121
|
onClick: () => {
|
|
2111
2122
|
se("selectedRequest", r.id);
|
|
2112
2123
|
},
|
|
@@ -2117,10 +2128,10 @@ const Ve = /* @__PURE__ */ $("<div></div>"), Un = /* @__PURE__ */ $("<h1></h1>")
|
|
|
2117
2128
|
},
|
|
2118
2129
|
get children() {
|
|
2119
2130
|
return [(() => {
|
|
2120
|
-
const y =
|
|
2131
|
+
const y = sr.cloneNode(!0);
|
|
2121
2132
|
return P(y, "title", d), u(y, c), y;
|
|
2122
|
-
})(), m(() => !!g && [
|
|
2123
|
-
const y =
|
|
2133
|
+
})(), m(() => !!g && [cr.cloneNode(!0), (() => {
|
|
2134
|
+
const y = dr.cloneNode(!0);
|
|
2124
2135
|
return P(y, "title", g), u(y, g), y;
|
|
2125
2136
|
})()])];
|
|
2126
2137
|
}
|
|
@@ -2129,15 +2140,15 @@ const Ve = /* @__PURE__ */ $("<div></div>"), Un = /* @__PURE__ */ $("<h1></h1>")
|
|
|
2129
2140
|
}
|
|
2130
2141
|
})), i;
|
|
2131
2142
|
})();
|
|
2132
|
-
},
|
|
2143
|
+
}, mr = /* @__PURE__ */ $("<div></div>"), $r = _`
|
|
2133
2144
|
&&& {
|
|
2134
2145
|
display: grid;
|
|
2135
2146
|
grid-template-columns: 1.5fr 1fr 3fr;
|
|
2136
2147
|
}
|
|
2137
|
-
`,
|
|
2138
|
-
const e =
|
|
2139
|
-
return b(e,
|
|
2140
|
-
})(),
|
|
2148
|
+
`, yr = () => (() => {
|
|
2149
|
+
const e = mr.cloneNode(!0);
|
|
2150
|
+
return b(e, $r), u(e, p(bn, {}), null), u(e, p(hr, {}), null), u(e, p(or, {}), null), e;
|
|
2151
|
+
})(), vr = `
|
|
2141
2152
|
font-family: ${L.primary};
|
|
2142
2153
|
color: ${h.textPrimary.var};
|
|
2143
2154
|
|
|
@@ -2188,11 +2199,11 @@ const Ve = /* @__PURE__ */ $("<div></div>"), Un = /* @__PURE__ */ $("<h1></h1>")
|
|
|
2188
2199
|
h3 {
|
|
2189
2200
|
font-weight: normal;
|
|
2190
2201
|
}
|
|
2191
|
-
`,
|
|
2202
|
+
`, br = `
|
|
2192
2203
|
display: flex;
|
|
2193
2204
|
align-items: center;
|
|
2194
2205
|
justify-content: center;
|
|
2195
|
-
`,
|
|
2206
|
+
`, Cr = `
|
|
2196
2207
|
*,
|
|
2197
2208
|
*::before,
|
|
2198
2209
|
*::after {
|
|
@@ -2267,7 +2278,7 @@ button {
|
|
|
2267
2278
|
-webkit-appearance: none;
|
|
2268
2279
|
}
|
|
2269
2280
|
`;
|
|
2270
|
-
let
|
|
2281
|
+
let xr = { data: "" }, wr = (e) => typeof window == "object" ? ((e ? e.querySelector("#_goober") : window._goober) || Object.assign((e || document.head).appendChild(document.createElement("style")), { innerHTML: " ", id: "_goober" })).firstChild : e || xr, _r = /(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g, Nr = /\/\*[^]*?\*\/| +/g, Ze = /\n+/g, I = (e, t) => {
|
|
2271
2282
|
let n = "", l = "", i = "";
|
|
2272
2283
|
for (let o in e) {
|
|
2273
2284
|
let s = e[o];
|
|
@@ -2282,7 +2293,7 @@ let br = { data: "" }, Cr = (e) => typeof window == "object" ? ((e ? e.querySele
|
|
|
2282
2293
|
return t;
|
|
2283
2294
|
}
|
|
2284
2295
|
return e;
|
|
2285
|
-
},
|
|
2296
|
+
}, Sr = (e, t, n, l, i) => {
|
|
2286
2297
|
let o = ot(e), s = j[o] || (j[o] = ((a) => {
|
|
2287
2298
|
let c = 0, d = 11;
|
|
2288
2299
|
for (; c < a.length; )
|
|
@@ -2292,7 +2303,7 @@ let br = { data: "" }, Cr = (e) => typeof window == "object" ? ((e ? e.querySele
|
|
|
2292
2303
|
if (!j[s]) {
|
|
2293
2304
|
let a = o !== e ? e : ((c) => {
|
|
2294
2305
|
let d, g, f = [{}];
|
|
2295
|
-
for (; d =
|
|
2306
|
+
for (; d = _r.exec(c.replace(Nr, "")); )
|
|
2296
2307
|
d[4] ? f.shift() : d[3] ? (g = d[3].replace(Ze, " ").trim(), f.unshift(f[0][g] = f[0][g] || {})) : f[0][d[1]] = d[2].replace(Ze, " ").trim();
|
|
2297
2308
|
return f[0];
|
|
2298
2309
|
})(e);
|
|
@@ -2302,7 +2313,7 @@ let br = { data: "" }, Cr = (e) => typeof window == "object" ? ((e ? e.querySele
|
|
|
2302
2313
|
return n && (j.g = j[s]), ((a, c, d, g) => {
|
|
2303
2314
|
g ? c.data = c.data.replace(g, a) : c.data.indexOf(a) === -1 && (c.data = d ? a + c.data : c.data + a);
|
|
2304
2315
|
})(j[s], t, l, r), s;
|
|
2305
|
-
},
|
|
2316
|
+
}, kr = (e, t, n) => e.reduce((l, i, o) => {
|
|
2306
2317
|
let s = t[o];
|
|
2307
2318
|
if (s && s.call) {
|
|
2308
2319
|
let r = s(n), a = r && r.props && r.props.className || /^go/.test(r) && r;
|
|
@@ -2312,13 +2323,13 @@ let br = { data: "" }, Cr = (e) => typeof window == "object" ? ((e ? e.querySele
|
|
|
2312
2323
|
}, "");
|
|
2313
2324
|
function fe(e) {
|
|
2314
2325
|
let t = this || {}, n = e.call ? e(t.p) : e;
|
|
2315
|
-
return
|
|
2326
|
+
return Sr(n.unshift ? n.raw ? kr(n, [].slice.call(arguments, 1), t.p) : n.reduce((l, i) => Object.assign(l, i && i.call ? i(t.p) : i), {}) : n, wr(t.target), t.g, t.o, t.k);
|
|
2316
2327
|
}
|
|
2317
2328
|
fe.bind({ g: 1 });
|
|
2318
2329
|
fe.bind({ k: 1 });
|
|
2319
|
-
const
|
|
2330
|
+
const Ar = /* @__PURE__ */ $("<div></div>"), Pr = /* @__PURE__ */ $('<div id="dev-tools-root-element"><nav></nav><main></main></div>'), Tr = fe`
|
|
2331
|
+
${Cr};
|
|
2320
2332
|
${vr};
|
|
2321
|
-
${$r};
|
|
2322
2333
|
|
|
2323
2334
|
position: fixed;
|
|
2324
2335
|
inset: 32px;
|
|
@@ -2328,11 +2339,11 @@ const Nr = /* @__PURE__ */ $("<div></div>"), kr = /* @__PURE__ */ $('<div id="de
|
|
|
2328
2339
|
grid-template-columns: 51px 1fr;
|
|
2329
2340
|
|
|
2330
2341
|
nav {
|
|
2331
|
-
${
|
|
2342
|
+
${N()};
|
|
2332
2343
|
border-right: 1px solid ${h.white.alpha(0.1)};
|
|
2333
2344
|
|
|
2334
2345
|
button {
|
|
2335
|
-
${
|
|
2346
|
+
${br};
|
|
2336
2347
|
width: 100%;
|
|
2337
2348
|
aspect-ratio: 1 / 1;
|
|
2338
2349
|
color: ${h.bgPrimary.var};
|
|
@@ -2351,37 +2362,37 @@ const Nr = /* @__PURE__ */ $("<div></div>"), kr = /* @__PURE__ */ $('<div id="de
|
|
|
2351
2362
|
> main > * {
|
|
2352
2363
|
${Ce};
|
|
2353
2364
|
}
|
|
2354
|
-
`,
|
|
2365
|
+
`, Er = fe`
|
|
2355
2366
|
${Ce};
|
|
2356
2367
|
position: fixed;
|
|
2357
2368
|
inset: 0;
|
|
2358
|
-
`,
|
|
2359
|
-
const e =
|
|
2360
|
-
return oe(e, "click",
|
|
2369
|
+
`, Lr = () => [(() => {
|
|
2370
|
+
const e = Ar.cloneNode(!0);
|
|
2371
|
+
return oe(e, "click", Mr, !0), b(e, Er), e;
|
|
2361
2372
|
})(), (() => {
|
|
2362
|
-
const e =
|
|
2363
|
-
return b(e,
|
|
2373
|
+
const e = Pr.cloneNode(!0), t = e.firstChild, n = t.nextSibling;
|
|
2374
|
+
return b(e, Tr), u(t, p(M, {
|
|
2364
2375
|
title: "API Explorer",
|
|
2365
2376
|
get children() {
|
|
2366
2377
|
return p(de, {
|
|
2367
2378
|
name: "network"
|
|
2368
2379
|
});
|
|
2369
2380
|
}
|
|
2370
|
-
})), u(n, p(
|
|
2381
|
+
})), u(n, p(yr, {})), e;
|
|
2371
2382
|
})()];
|
|
2372
2383
|
ce(["click"]);
|
|
2373
|
-
const
|
|
2384
|
+
const Or = () => p(Lr, {});
|
|
2374
2385
|
let lt = () => {
|
|
2375
2386
|
};
|
|
2376
|
-
function
|
|
2387
|
+
function jr() {
|
|
2377
2388
|
Q.extend(Et), navigator.platform.indexOf("Win") > -1 && document.body.classList.add("windows");
|
|
2378
2389
|
const e = document.getElementById("dev-tools-root") || document.createElement("div");
|
|
2379
|
-
e.id = "dev-tools-root", document.body.appendChild(e), lt = xt(() => p(
|
|
2390
|
+
e.id = "dev-tools-root", document.body.appendChild(e), lt = xt(() => p(Or, {}), e);
|
|
2380
2391
|
}
|
|
2381
|
-
function
|
|
2392
|
+
function Mr() {
|
|
2382
2393
|
lt();
|
|
2383
2394
|
}
|
|
2384
|
-
function
|
|
2395
|
+
function Zr({
|
|
2385
2396
|
callsProcessor: e,
|
|
2386
2397
|
shortcut: t = "$mod+D"
|
|
2387
2398
|
}) {
|
|
@@ -2389,13 +2400,13 @@ function Hr({
|
|
|
2389
2400
|
[t]: (n) => {
|
|
2390
2401
|
n.preventDefault();
|
|
2391
2402
|
const l = document.activeElement;
|
|
2392
|
-
l instanceof HTMLElement && (l.isContentEditable || l.tagName === "INPUT" || l.tagName === "TEXTAREA") ||
|
|
2403
|
+
l instanceof HTMLElement && (l.isContentEditable || l.tagName === "INPUT" || l.tagName === "TEXTAREA") || jr();
|
|
2393
2404
|
}
|
|
2394
|
-
}),
|
|
2405
|
+
}), hn({
|
|
2395
2406
|
callsProcessor: e
|
|
2396
2407
|
});
|
|
2397
2408
|
}
|
|
2398
2409
|
export {
|
|
2399
|
-
|
|
2400
|
-
|
|
2410
|
+
Vr as addCall,
|
|
2411
|
+
Zr as initializeDevTools
|
|
2401
2412
|
};
|