app-devtools 0.27.0 → 0.28.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.js +313 -291
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import ne from "dayjs";
|
|
2
2
|
import { dequal as vt } from "dequal";
|
|
3
3
|
import { produce as Zt } from "immer";
|
|
4
4
|
import { parse as Wt } from "regexparam";
|
|
@@ -9,7 +9,7 @@ const U = {}, Gt = (e, t) => e === t, D = Symbol("solid-proxy"), ve = Symbol("so
|
|
|
9
9
|
equals: Gt
|
|
10
10
|
};
|
|
11
11
|
let Qt = At;
|
|
12
|
-
const
|
|
12
|
+
const q = 1, we = 2, bt = {
|
|
13
13
|
owned: null,
|
|
14
14
|
cleanups: null,
|
|
15
15
|
context: null,
|
|
@@ -17,7 +17,7 @@ const J = 1, we = 2, bt = {
|
|
|
17
17
|
};
|
|
18
18
|
var P = null;
|
|
19
19
|
let X = null, A = null, E = null, Y = null, Ze = 0;
|
|
20
|
-
function
|
|
20
|
+
function re(e, t) {
|
|
21
21
|
const n = A, r = P, l = e.length === 0, o = l ? bt : {
|
|
22
22
|
owned: null,
|
|
23
23
|
cleanups: null,
|
|
@@ -26,12 +26,12 @@ function ne(e, t) {
|
|
|
26
26
|
}, s = l ? e : () => e(() => Z(() => Te(o)));
|
|
27
27
|
P = o, A = null;
|
|
28
28
|
try {
|
|
29
|
-
return
|
|
29
|
+
return ue(s, !0);
|
|
30
30
|
} finally {
|
|
31
31
|
A = n, P = r;
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
|
-
function
|
|
34
|
+
function oe(e, t) {
|
|
35
35
|
t = t ? Object.assign({}, be, t) : be;
|
|
36
36
|
const n = {
|
|
37
37
|
value: e,
|
|
@@ -42,7 +42,7 @@ function le(e, t) {
|
|
|
42
42
|
return [Ct.bind(n), r];
|
|
43
43
|
}
|
|
44
44
|
function _(e, t, n) {
|
|
45
|
-
const r = St(e, t, !1,
|
|
45
|
+
const r = St(e, t, !1, q);
|
|
46
46
|
Ne(r);
|
|
47
47
|
}
|
|
48
48
|
function m(e, t, n) {
|
|
@@ -51,7 +51,7 @@ function m(e, t, n) {
|
|
|
51
51
|
return r.observers = null, r.observerSlots = null, r.comparator = n.equals || void 0, Ne(r), Ct.bind(r);
|
|
52
52
|
}
|
|
53
53
|
function Jt(e) {
|
|
54
|
-
return
|
|
54
|
+
return ue(e, !1);
|
|
55
55
|
}
|
|
56
56
|
function Z(e) {
|
|
57
57
|
if (A === null)
|
|
@@ -80,11 +80,11 @@ function qt(e) {
|
|
|
80
80
|
function Ct() {
|
|
81
81
|
const e = X;
|
|
82
82
|
if (this.sources && (this.state || e))
|
|
83
|
-
if (this.state ===
|
|
83
|
+
if (this.state === q || e)
|
|
84
84
|
Ne(this);
|
|
85
85
|
else {
|
|
86
86
|
const t = E;
|
|
87
|
-
E = null,
|
|
87
|
+
E = null, ue(() => xe(this), !1), E = t;
|
|
88
88
|
}
|
|
89
89
|
if (A) {
|
|
90
90
|
const t = this.observers ? this.observers.length : 0;
|
|
@@ -94,10 +94,10 @@ function Ct() {
|
|
|
94
94
|
}
|
|
95
95
|
function _t(e, t, n) {
|
|
96
96
|
let r = e.value;
|
|
97
|
-
return (!e.comparator || !e.comparator(r, t)) && (e.value = t, e.observers && e.observers.length &&
|
|
97
|
+
return (!e.comparator || !e.comparator(r, t)) && (e.value = t, e.observers && e.observers.length && ue(() => {
|
|
98
98
|
for (let l = 0; l < e.observers.length; l += 1) {
|
|
99
99
|
const o = e.observers[l], s = X && X.running;
|
|
100
|
-
s && X.disposed.has(o), (s && !o.tState || !s && !o.state) && (o.pure ? E.push(o) : Y.push(o), o.observers && Nt(o)), s || (o.state =
|
|
100
|
+
s && X.disposed.has(o), (s && !o.tState || !s && !o.state) && (o.pure ? E.push(o) : Y.push(o), o.observers && Nt(o)), s || (o.state = q);
|
|
101
101
|
}
|
|
102
102
|
if (E.length > 1e6)
|
|
103
103
|
throw E = [], new Error();
|
|
@@ -115,11 +115,11 @@ function en(e, t, n) {
|
|
|
115
115
|
try {
|
|
116
116
|
r = e.fn(t);
|
|
117
117
|
} catch (l) {
|
|
118
|
-
e.pure && (e.state =
|
|
118
|
+
e.pure && (e.state = q, e.owned && e.owned.forEach(Te), e.owned = null), Tt(l);
|
|
119
119
|
}
|
|
120
120
|
(!e.updatedAt || e.updatedAt <= n) && (e.updatedAt != null && "observers" in e ? _t(e, r) : e.value = r, e.updatedAt = n);
|
|
121
121
|
}
|
|
122
|
-
function St(e, t, n, r =
|
|
122
|
+
function St(e, t, n, r = q, l) {
|
|
123
123
|
const o = {
|
|
124
124
|
fn: e,
|
|
125
125
|
state: r,
|
|
@@ -147,14 +147,14 @@ function kt(e) {
|
|
|
147
147
|
for (; (e = e.owner) && (!e.updatedAt || e.updatedAt < Ze); )
|
|
148
148
|
(e.state || t) && n.push(e);
|
|
149
149
|
for (let r = n.length - 1; r >= 0; r--)
|
|
150
|
-
if (e = n[r], e.state ===
|
|
150
|
+
if (e = n[r], e.state === q || t)
|
|
151
151
|
Ne(e);
|
|
152
152
|
else if (e.state === we || t) {
|
|
153
153
|
const l = E;
|
|
154
|
-
E = null,
|
|
154
|
+
E = null, ue(() => xe(e, n[0]), !1), E = l;
|
|
155
155
|
}
|
|
156
156
|
}
|
|
157
|
-
function
|
|
157
|
+
function ue(e, t) {
|
|
158
158
|
if (E)
|
|
159
159
|
return e();
|
|
160
160
|
let n = !1;
|
|
@@ -170,7 +170,7 @@ function tn(e) {
|
|
|
170
170
|
if (E && (At(E), E = null), e)
|
|
171
171
|
return;
|
|
172
172
|
const t = Y;
|
|
173
|
-
Y = null, t.length &&
|
|
173
|
+
Y = null, t.length && ue(() => Qt(t), !1);
|
|
174
174
|
}
|
|
175
175
|
function At(e) {
|
|
176
176
|
for (let t = 0; t < e.length; t++)
|
|
@@ -181,7 +181,7 @@ function xe(e, t) {
|
|
|
181
181
|
e.state = 0;
|
|
182
182
|
for (let r = 0; r < e.sources.length; r += 1) {
|
|
183
183
|
const l = e.sources[r];
|
|
184
|
-
l.sources && (l.state ===
|
|
184
|
+
l.sources && (l.state === q || n ? l !== t && kt(l) : (l.state === we || n) && xe(l, t));
|
|
185
185
|
}
|
|
186
186
|
}
|
|
187
187
|
function Nt(e) {
|
|
@@ -244,10 +244,10 @@ function rn(e, t, n = {}) {
|
|
|
244
244
|
return a[ve], Z(() => {
|
|
245
245
|
let d = a.length, g, v, b, w, k, x, N, T, O;
|
|
246
246
|
if (d === 0)
|
|
247
|
-
s !== 0 && (Ce(o), o = [], r = [], l = [], s = 0, i && (i = [])), n.fallback && (r = [Re], l[0] =
|
|
247
|
+
s !== 0 && (Ce(o), o = [], r = [], l = [], s = 0, i && (i = [])), n.fallback && (r = [Re], l[0] = re((H) => (o[0] = H, n.fallback())), s = 1);
|
|
248
248
|
else if (s === 0) {
|
|
249
249
|
for (l = new Array(d), u = 0; u < d; u++)
|
|
250
|
-
r[u] = a[u], l[u] =
|
|
250
|
+
r[u] = a[u], l[u] = re(p);
|
|
251
251
|
s = d;
|
|
252
252
|
} else {
|
|
253
253
|
for (b = new Array(d), w = new Array(d), i && (k = new Array(d)), x = 0, N = Math.min(s, d); x < N && r[x] === a[x]; x++)
|
|
@@ -259,14 +259,14 @@ function rn(e, t, n = {}) {
|
|
|
259
259
|
for (c = x; c <= N; c++)
|
|
260
260
|
O = r[c], u = g.get(O), u !== void 0 && u !== -1 ? (b[u] = l[c], w[u] = o[c], i && (k[u] = i[c]), u = v[u], g.set(O, u)) : o[c]();
|
|
261
261
|
for (u = x; u < d; u++)
|
|
262
|
-
u in b ? (l[u] = b[u], o[u] = w[u], i && (i[u] = k[u], i[u](u))) : l[u] =
|
|
262
|
+
u in b ? (l[u] = b[u], o[u] = w[u], i && (i[u] = k[u], i[u](u))) : l[u] = re(p);
|
|
263
263
|
l = l.slice(0, s = d), r = a.slice(0);
|
|
264
264
|
}
|
|
265
265
|
return l;
|
|
266
266
|
});
|
|
267
267
|
function p(d) {
|
|
268
268
|
if (o[u] = d, i) {
|
|
269
|
-
const [g, v] =
|
|
269
|
+
const [g, v] = oe(u);
|
|
270
270
|
return i[u] = v, t(a[u], g);
|
|
271
271
|
}
|
|
272
272
|
return t(a[u]);
|
|
@@ -279,16 +279,16 @@ function ln(e, t, n = {}) {
|
|
|
279
279
|
const c = e() || [];
|
|
280
280
|
return c[ve], Z(() => {
|
|
281
281
|
if (c.length === 0)
|
|
282
|
-
return i !== 0 && (Ce(o), o = [], r = [], l = [], i = 0, s = []), n.fallback && (r = [Re], l[0] =
|
|
282
|
+
return i !== 0 && (Ce(o), o = [], r = [], l = [], i = 0, s = []), n.fallback && (r = [Re], l[0] = re((p) => (o[0] = p, n.fallback())), i = 1), l;
|
|
283
283
|
for (r[0] === Re && (o[0](), o = [], r = [], l = [], i = 0), a = 0; a < c.length; a++)
|
|
284
|
-
a < r.length && r[a] !== c[a] ? s[a](() => c[a]) : a >= r.length && (l[a] =
|
|
284
|
+
a < r.length && r[a] !== c[a] ? s[a](() => c[a]) : a >= r.length && (l[a] = re(u));
|
|
285
285
|
for (; a < r.length; a++)
|
|
286
286
|
o[a]();
|
|
287
287
|
return i = s.length = o.length = c.length, r = c.slice(0), l = l.slice(0, i);
|
|
288
288
|
});
|
|
289
289
|
function u(p) {
|
|
290
290
|
o[a] = p;
|
|
291
|
-
const [d, g] =
|
|
291
|
+
const [d, g] = oe(c[a]);
|
|
292
292
|
return s[a] = g, t(d, a);
|
|
293
293
|
}
|
|
294
294
|
};
|
|
@@ -372,7 +372,7 @@ function sn(...e) {
|
|
|
372
372
|
}
|
|
373
373
|
return n;
|
|
374
374
|
}
|
|
375
|
-
function
|
|
375
|
+
function Q(e) {
|
|
376
376
|
const t = "fallback" in e && {
|
|
377
377
|
fallback: () => e.fallback
|
|
378
378
|
};
|
|
@@ -384,7 +384,7 @@ function an(e) {
|
|
|
384
384
|
};
|
|
385
385
|
return m(ln(() => e.each, e.children, t || void 0));
|
|
386
386
|
}
|
|
387
|
-
function
|
|
387
|
+
function G(e) {
|
|
388
388
|
let t = !1;
|
|
389
389
|
const n = e.keyed, r = m(() => e.when, void 0, {
|
|
390
390
|
equals: (l, o) => t ? l === o : !l == !o
|
|
@@ -420,7 +420,7 @@ function cn(e) {
|
|
|
420
420
|
return t = n || u, u ? Z(() => c(i)) : c;
|
|
421
421
|
}, void 0, void 0);
|
|
422
422
|
}
|
|
423
|
-
function
|
|
423
|
+
function de(e) {
|
|
424
424
|
return e;
|
|
425
425
|
}
|
|
426
426
|
const un = ["allowfullscreen", "async", "autofocus", "autoplay", "checked", "controls", "default", "disabled", "formnovalidate", "hidden", "indeterminate", "ismap", "loop", "multiple", "muted", "nomodule", "novalidate", "open", "playsinline", "readonly", "required", "reversed", "seamless", "selected"], dn = /* @__PURE__ */ new Set(["className", "value", "readOnly", "formNoValidate", "isMap", "noModule", "playsInline", ...un]), fn = /* @__PURE__ */ new Set(["innerHTML", "textContent", "innerText", "children"]), pn = /* @__PURE__ */ Object.assign(/* @__PURE__ */ Object.create(null), {
|
|
@@ -485,7 +485,7 @@ function mn(e, t, n) {
|
|
|
485
485
|
const Ye = "_$DX_DELEGATE";
|
|
486
486
|
function $n(e, t, n, r = {}) {
|
|
487
487
|
let l;
|
|
488
|
-
return
|
|
488
|
+
return re((o) => {
|
|
489
489
|
l = o, t === document ? e() : f(t, e(), t.firstChild ? null : void 0, n);
|
|
490
490
|
}, r.owner), () => {
|
|
491
491
|
l(), t.textContent = "";
|
|
@@ -551,12 +551,12 @@ function Pt(e, t, n) {
|
|
|
551
551
|
}
|
|
552
552
|
function bn(e, t = {}, n, r) {
|
|
553
553
|
const l = {};
|
|
554
|
-
return r || _(() => l.children =
|
|
554
|
+
return r || _(() => l.children = ie(e, t.children, l.children)), _(() => t.ref && t.ref(e)), _(() => wn(e, t, n, !0, l, !0)), l;
|
|
555
555
|
}
|
|
556
556
|
function f(e, t, n, r) {
|
|
557
557
|
if (n !== void 0 && !r && (r = []), typeof t != "function")
|
|
558
|
-
return
|
|
559
|
-
_((l) =>
|
|
558
|
+
return ie(e, t, r, n);
|
|
559
|
+
_((l) => ie(e, t(), l, n), r);
|
|
560
560
|
}
|
|
561
561
|
function wn(e, t, n, r, l = {}, o = !1) {
|
|
562
562
|
t || (t = {});
|
|
@@ -568,7 +568,7 @@ function wn(e, t, n, r, l = {}, o = !1) {
|
|
|
568
568
|
}
|
|
569
569
|
for (const s in t) {
|
|
570
570
|
if (s === "children") {
|
|
571
|
-
r ||
|
|
571
|
+
r || ie(e, t.children);
|
|
572
572
|
continue;
|
|
573
573
|
}
|
|
574
574
|
const i = t[s];
|
|
@@ -641,7 +641,7 @@ function Cn(e) {
|
|
|
641
641
|
n = n._$host || n.parentNode || n.host;
|
|
642
642
|
}
|
|
643
643
|
}
|
|
644
|
-
function
|
|
644
|
+
function ie(e, t, n, r, l) {
|
|
645
645
|
for (U.context && !n && (n = [...e.childNodes]); typeof n == "function"; )
|
|
646
646
|
n = n();
|
|
647
647
|
if (t === n)
|
|
@@ -652,25 +652,25 @@ function oe(e, t, n, r, l) {
|
|
|
652
652
|
return n;
|
|
653
653
|
if (o === "number" && (t = t.toString()), s) {
|
|
654
654
|
let i = n[0];
|
|
655
|
-
i && i.nodeType === 3 ? i.data = t : i = document.createTextNode(t), n =
|
|
655
|
+
i && i.nodeType === 3 ? i.data = t : i = document.createTextNode(t), n = ee(e, n, r, i);
|
|
656
656
|
} else
|
|
657
657
|
n !== "" && typeof n == "string" ? n = e.firstChild.data = t : n = e.textContent = t;
|
|
658
658
|
} else if (t == null || o === "boolean") {
|
|
659
659
|
if (U.context)
|
|
660
660
|
return n;
|
|
661
|
-
n =
|
|
661
|
+
n = ee(e, n, r);
|
|
662
662
|
} else {
|
|
663
663
|
if (o === "function")
|
|
664
664
|
return _(() => {
|
|
665
665
|
let i = t();
|
|
666
666
|
for (; typeof i == "function"; )
|
|
667
667
|
i = i();
|
|
668
|
-
n =
|
|
668
|
+
n = ie(e, i, n, r);
|
|
669
669
|
}), () => n;
|
|
670
670
|
if (Array.isArray(t)) {
|
|
671
671
|
const i = [], a = n && Array.isArray(n);
|
|
672
672
|
if (ze(i, t, n, l))
|
|
673
|
-
return _(() => n =
|
|
673
|
+
return _(() => n = ie(e, i, n, r, !0)), () => n;
|
|
674
674
|
if (U.context) {
|
|
675
675
|
if (!i.length)
|
|
676
676
|
return n;
|
|
@@ -679,18 +679,18 @@ function oe(e, t, n, r, l) {
|
|
|
679
679
|
return n = i;
|
|
680
680
|
}
|
|
681
681
|
if (i.length === 0) {
|
|
682
|
-
if (n =
|
|
682
|
+
if (n = ee(e, n, r), s)
|
|
683
683
|
return n;
|
|
684
684
|
} else
|
|
685
|
-
a ? n.length === 0 ? Je(e, i, r) : mn(e, n, i) : (n &&
|
|
685
|
+
a ? n.length === 0 ? Je(e, i, r) : mn(e, n, i) : (n && ee(e), Je(e, i));
|
|
686
686
|
n = i;
|
|
687
687
|
} else if (t instanceof Node) {
|
|
688
688
|
if (U.context && t.parentNode)
|
|
689
689
|
return n = s ? [t] : t;
|
|
690
690
|
if (Array.isArray(n)) {
|
|
691
691
|
if (s)
|
|
692
|
-
return n =
|
|
693
|
-
|
|
692
|
+
return n = ee(e, n, r, t);
|
|
693
|
+
ee(e, n, null, t);
|
|
694
694
|
} else
|
|
695
695
|
n == null || n === "" || !e.firstChild ? e.appendChild(t) : e.replaceChild(t, e.firstChild);
|
|
696
696
|
n = t;
|
|
@@ -725,7 +725,7 @@ function Je(e, t, n = null) {
|
|
|
725
725
|
for (let r = 0, l = t.length; r < l; r++)
|
|
726
726
|
e.insertBefore(t[r], n);
|
|
727
727
|
}
|
|
728
|
-
function
|
|
728
|
+
function ee(e, t, n, r) {
|
|
729
729
|
if (n === void 0)
|
|
730
730
|
return e.textContent = "";
|
|
731
731
|
const l = r || document.createTextNode("");
|
|
@@ -941,25 +941,25 @@ function Lt(e, t) {
|
|
|
941
941
|
}
|
|
942
942
|
return n;
|
|
943
943
|
}
|
|
944
|
-
function
|
|
944
|
+
function se(e) {
|
|
945
945
|
let t;
|
|
946
946
|
return e != null && typeof e == "object" && (e[D] || !(t = Object.getPrototypeOf(e)) || t === Object.prototype || Array.isArray(e));
|
|
947
947
|
}
|
|
948
|
-
function
|
|
948
|
+
function ae(e, t = /* @__PURE__ */ new Set()) {
|
|
949
949
|
let n, r, l, o;
|
|
950
950
|
if (n = e != null && e[Se])
|
|
951
951
|
return n;
|
|
952
|
-
if (!
|
|
952
|
+
if (!se(e) || t.has(e))
|
|
953
953
|
return e;
|
|
954
954
|
if (Array.isArray(e)) {
|
|
955
955
|
Object.isFrozen(e) ? e = e.slice(0) : t.add(e);
|
|
956
956
|
for (let s = 0, i = e.length; s < i; s++)
|
|
957
|
-
l = e[s], (r =
|
|
957
|
+
l = e[s], (r = ae(l, t)) !== l && (e[s] = r);
|
|
958
958
|
} else {
|
|
959
959
|
Object.isFrozen(e) ? e = Object.assign({}, e) : t.add(e);
|
|
960
960
|
const s = Object.keys(e), i = Object.getOwnPropertyDescriptors(e);
|
|
961
961
|
for (let a = 0, c = s.length; a < c; a++)
|
|
962
|
-
o = s[a], !i[o].get && (l = e[o], (r =
|
|
962
|
+
o = s[a], !i[o].get && (l = e[o], (r = ae(l, t)) !== l && (e[o] = r));
|
|
963
963
|
}
|
|
964
964
|
return e;
|
|
965
965
|
}
|
|
@@ -986,7 +986,7 @@ function Kn(e) {
|
|
|
986
986
|
return Ot(e), Reflect.ownKeys(e);
|
|
987
987
|
}
|
|
988
988
|
function jt(e) {
|
|
989
|
-
const [t, n] =
|
|
989
|
+
const [t, n] = oe(e, {
|
|
990
990
|
equals: !1,
|
|
991
991
|
internal: !0
|
|
992
992
|
});
|
|
@@ -1008,7 +1008,7 @@ const Xn = {
|
|
|
1008
1008
|
const s = Object.getOwnPropertyDescriptor(e, t);
|
|
1009
1009
|
xt() && (typeof o != "function" || e.hasOwnProperty(t)) && !(s && s.get) && (o = Be(r, t, o)());
|
|
1010
1010
|
}
|
|
1011
|
-
return
|
|
1011
|
+
return se(o) ? Lt(o) : o;
|
|
1012
1012
|
},
|
|
1013
1013
|
has(e, t) {
|
|
1014
1014
|
return t === Se || t === D || t === ve || t === pe || t === "__proto__" ? !0 : (this.get(e, t, e), t in e);
|
|
@@ -1022,7 +1022,7 @@ const Xn = {
|
|
|
1022
1022
|
ownKeys: Kn,
|
|
1023
1023
|
getOwnPropertyDescriptor: Wn
|
|
1024
1024
|
};
|
|
1025
|
-
function
|
|
1025
|
+
function ce(e, t, n, r = !1) {
|
|
1026
1026
|
if (!r && e[t] === n)
|
|
1027
1027
|
return;
|
|
1028
1028
|
const l = e[t], o = e.length;
|
|
@@ -1034,34 +1034,34 @@ function It(e, t) {
|
|
|
1034
1034
|
const n = Object.keys(t);
|
|
1035
1035
|
for (let r = 0; r < n.length; r += 1) {
|
|
1036
1036
|
const l = n[r];
|
|
1037
|
-
|
|
1037
|
+
ce(e, l, t[l]);
|
|
1038
1038
|
}
|
|
1039
1039
|
}
|
|
1040
1040
|
function Yn(e, t) {
|
|
1041
|
-
if (typeof t == "function" && (t = t(e)), t =
|
|
1041
|
+
if (typeof t == "function" && (t = t(e)), t = ae(t), Array.isArray(t)) {
|
|
1042
1042
|
if (e === t)
|
|
1043
1043
|
return;
|
|
1044
1044
|
let n = 0, r = t.length;
|
|
1045
1045
|
for (; n < r; n++) {
|
|
1046
1046
|
const l = t[n];
|
|
1047
|
-
e[n] !== l &&
|
|
1047
|
+
e[n] !== l && ce(e, n, l);
|
|
1048
1048
|
}
|
|
1049
|
-
|
|
1049
|
+
ce(e, "length", r);
|
|
1050
1050
|
} else
|
|
1051
1051
|
It(e, t);
|
|
1052
1052
|
}
|
|
1053
|
-
function
|
|
1053
|
+
function fe(e, t, n = []) {
|
|
1054
1054
|
let r, l = e;
|
|
1055
1055
|
if (t.length > 1) {
|
|
1056
1056
|
r = t.shift();
|
|
1057
1057
|
const s = typeof r, i = Array.isArray(e);
|
|
1058
1058
|
if (Array.isArray(r)) {
|
|
1059
1059
|
for (let a = 0; a < r.length; a++)
|
|
1060
|
-
|
|
1060
|
+
fe(e, [r[a]].concat(t), n);
|
|
1061
1061
|
return;
|
|
1062
1062
|
} else if (i && s === "function") {
|
|
1063
1063
|
for (let a = 0; a < e.length; a++)
|
|
1064
|
-
r(e[a], a) &&
|
|
1064
|
+
r(e[a], a) && fe(e, [a].concat(t), n);
|
|
1065
1065
|
return;
|
|
1066
1066
|
} else if (i && s === "object") {
|
|
1067
1067
|
const {
|
|
@@ -1070,22 +1070,22 @@ function de(e, t, n = []) {
|
|
|
1070
1070
|
by: u = 1
|
|
1071
1071
|
} = r;
|
|
1072
1072
|
for (let p = a; p <= c; p += u)
|
|
1073
|
-
|
|
1073
|
+
fe(e, [p].concat(t), n);
|
|
1074
1074
|
return;
|
|
1075
1075
|
} else if (t.length > 1) {
|
|
1076
|
-
|
|
1076
|
+
fe(e[r], t, [r].concat(n));
|
|
1077
1077
|
return;
|
|
1078
1078
|
}
|
|
1079
1079
|
l = e[r], n = [r].concat(n);
|
|
1080
1080
|
}
|
|
1081
1081
|
let o = t[0];
|
|
1082
|
-
typeof o == "function" && (o = o(l, n), o === l) || r === void 0 && o == null || (o =
|
|
1082
|
+
typeof o == "function" && (o = o(l, n), o === l) || r === void 0 && o == null || (o = ae(o), r === void 0 || se(l) && se(o) && !Array.isArray(o) ? It(l, o) : ce(e, r, o));
|
|
1083
1083
|
}
|
|
1084
1084
|
function Mt(...[e, t]) {
|
|
1085
|
-
const n =
|
|
1085
|
+
const n = ae(e || {}), r = Array.isArray(n), l = Lt(n);
|
|
1086
1086
|
function o(...s) {
|
|
1087
1087
|
Jt(() => {
|
|
1088
|
-
r && s.length === 1 ? Yn(n, s[0]) :
|
|
1088
|
+
r && s.length === 1 ? Yn(n, s[0]) : fe(n, s);
|
|
1089
1089
|
});
|
|
1090
1090
|
}
|
|
1091
1091
|
return [l, o];
|
|
@@ -1096,18 +1096,18 @@ const ke = /* @__PURE__ */ new WeakMap(), Dt = {
|
|
|
1096
1096
|
return e;
|
|
1097
1097
|
const n = e[t];
|
|
1098
1098
|
let r;
|
|
1099
|
-
return
|
|
1099
|
+
return se(n) ? ke.get(n) || (ke.set(n, r = new Proxy(n, Dt)), r) : n;
|
|
1100
1100
|
},
|
|
1101
1101
|
set(e, t, n) {
|
|
1102
|
-
return
|
|
1102
|
+
return ce(e, t, ae(n)), !0;
|
|
1103
1103
|
},
|
|
1104
1104
|
deleteProperty(e, t) {
|
|
1105
|
-
return
|
|
1105
|
+
return ce(e, t, void 0, !0), !0;
|
|
1106
1106
|
}
|
|
1107
1107
|
};
|
|
1108
1108
|
function Gn(e) {
|
|
1109
1109
|
return (t) => {
|
|
1110
|
-
if (
|
|
1110
|
+
if (se(t)) {
|
|
1111
1111
|
let n;
|
|
1112
1112
|
(n = ke.get(t)) || ke.set(t, n = new Proxy(t, Dt)), e(n);
|
|
1113
1113
|
}
|
|
@@ -1246,7 +1246,7 @@ function Rt(e, t) {
|
|
|
1246
1246
|
return m((n) => lr(n, typeof e == "function" ? e() : e, t));
|
|
1247
1247
|
}
|
|
1248
1248
|
function ge(e) {
|
|
1249
|
-
const [t, n] =
|
|
1249
|
+
const [t, n] = oe(e);
|
|
1250
1250
|
return {
|
|
1251
1251
|
get value() {
|
|
1252
1252
|
return t();
|
|
@@ -1265,7 +1265,15 @@ function ge(e) {
|
|
|
1265
1265
|
}
|
|
1266
1266
|
};
|
|
1267
1267
|
}
|
|
1268
|
-
|
|
1268
|
+
function or(e) {
|
|
1269
|
+
const t = m(e);
|
|
1270
|
+
return {
|
|
1271
|
+
get value() {
|
|
1272
|
+
return t();
|
|
1273
|
+
}
|
|
1274
|
+
};
|
|
1275
|
+
}
|
|
1276
|
+
const ir = /* @__PURE__ */ y('<div class="tag"></div>'), tt = /* @__PURE__ */ y("<span></span>"), sr = /* @__PURE__ */ y('<div><div class="call"></div></div>'), ar = S`
|
|
1269
1277
|
&&& {
|
|
1270
1278
|
font-size: 14px;
|
|
1271
1279
|
${L()};
|
|
@@ -1342,11 +1350,11 @@ const or = /* @__PURE__ */ y('<div class="tag"></div>'), tt = /* @__PURE__ */ y(
|
|
|
1342
1350
|
}
|
|
1343
1351
|
}
|
|
1344
1352
|
}
|
|
1345
|
-
`,
|
|
1346
|
-
const t = m(() => e.item), n = m(() => e.currentCallId), r = ge(e.item.subitemsWithAlias.length < 4), l =
|
|
1353
|
+
`, cr = (e) => {
|
|
1354
|
+
const t = m(() => e.item), n = m(() => e.currentCallId), r = ge(e.item.subitemsWithAlias.length < 4), l = ur(t().type, t().subType);
|
|
1347
1355
|
return (() => {
|
|
1348
|
-
const o =
|
|
1349
|
-
return C(o,
|
|
1356
|
+
const o = sr.cloneNode(!0), s = o.firstChild;
|
|
1357
|
+
return C(o, ar), f(s, h(F, {
|
|
1350
1358
|
onClick: () => {
|
|
1351
1359
|
Ae({
|
|
1352
1360
|
selectedCall: t().id,
|
|
@@ -1356,7 +1364,7 @@ const or = /* @__PURE__ */ y('<div class="tag"></div>'), tt = /* @__PURE__ */ y(
|
|
|
1356
1364
|
class: "call-button",
|
|
1357
1365
|
get children() {
|
|
1358
1366
|
return [(() => {
|
|
1359
|
-
const i =
|
|
1367
|
+
const i = ir.cloneNode(!0);
|
|
1360
1368
|
return f(i, () => l.icon), _((a) => {
|
|
1361
1369
|
const c = `${t().type}${t().subType ? ` (${t().subType})` : ""}`, u = l.color;
|
|
1362
1370
|
return c !== a._v$ && j(i, "title", a._v$ = c), u !== a._v$2 && i.style.setProperty("color", a._v$2 = u), a;
|
|
@@ -1387,12 +1395,12 @@ const or = /* @__PURE__ */ y('<div class="tag"></div>'), tt = /* @__PURE__ */ y(
|
|
|
1387
1395
|
});
|
|
1388
1396
|
}
|
|
1389
1397
|
});
|
|
1390
|
-
})(), null), f(o, h(
|
|
1398
|
+
})(), null), f(o, h(G, {
|
|
1391
1399
|
get when() {
|
|
1392
1400
|
return r.value;
|
|
1393
1401
|
},
|
|
1394
1402
|
get children() {
|
|
1395
|
-
return h(
|
|
1403
|
+
return h(Q, {
|
|
1396
1404
|
get each() {
|
|
1397
1405
|
return t().subitemsWithAlias;
|
|
1398
1406
|
},
|
|
@@ -1419,7 +1427,7 @@ const or = /* @__PURE__ */ y('<div class="tag"></div>'), tt = /* @__PURE__ */ y(
|
|
|
1419
1427
|
}), null), _(() => s.classList.toggle("selected", n() === t().id)), o;
|
|
1420
1428
|
})();
|
|
1421
1429
|
};
|
|
1422
|
-
function
|
|
1430
|
+
function ur(e, t) {
|
|
1423
1431
|
if (e === "ws")
|
|
1424
1432
|
return {
|
|
1425
1433
|
icon: t === "send" ? "S" : "R",
|
|
@@ -1440,16 +1448,16 @@ function cr(e, t) {
|
|
|
1440
1448
|
function zt(e) {
|
|
1441
1449
|
return e ? e.slice().reverse() : [];
|
|
1442
1450
|
}
|
|
1443
|
-
function
|
|
1451
|
+
function dr(...e) {
|
|
1444
1452
|
const t = [];
|
|
1445
1453
|
for (const n of e)
|
|
1446
1454
|
n != null && t.push(...n);
|
|
1447
1455
|
return t;
|
|
1448
1456
|
}
|
|
1449
|
-
function
|
|
1457
|
+
function fr(e) {
|
|
1450
1458
|
return e.filter((t) => t != null);
|
|
1451
1459
|
}
|
|
1452
|
-
function
|
|
1460
|
+
function pr(e) {
|
|
1453
1461
|
return e.filter((t) => t !== !1);
|
|
1454
1462
|
}
|
|
1455
1463
|
function nt(e) {
|
|
@@ -1463,11 +1471,11 @@ function rt(e, t) {
|
|
|
1463
1471
|
return t && t(n), null;
|
|
1464
1472
|
}
|
|
1465
1473
|
}
|
|
1466
|
-
function
|
|
1474
|
+
function hr(e, t) {
|
|
1467
1475
|
const n = Wt(t);
|
|
1468
|
-
return
|
|
1476
|
+
return gr(e, n);
|
|
1469
1477
|
}
|
|
1470
|
-
function
|
|
1478
|
+
function gr(e, t) {
|
|
1471
1479
|
let n = 0;
|
|
1472
1480
|
const r = {}, l = t.pattern.exec(e);
|
|
1473
1481
|
if (!l)
|
|
@@ -1476,46 +1484,46 @@ function hr(e, t) {
|
|
|
1476
1484
|
r[t.keys[n]] = l[++n] || null;
|
|
1477
1485
|
return r;
|
|
1478
1486
|
}
|
|
1479
|
-
function
|
|
1487
|
+
function le(e) {
|
|
1480
1488
|
var t, n, r;
|
|
1481
1489
|
if (Array.isArray(e)) {
|
|
1482
1490
|
for (n = Array(t = e.length); t--; )
|
|
1483
|
-
n[t] = (r = e[t]) && typeof r == "object" ?
|
|
1491
|
+
n[t] = (r = e[t]) && typeof r == "object" ? le(r) : r;
|
|
1484
1492
|
return n;
|
|
1485
1493
|
}
|
|
1486
1494
|
if (Object.prototype.toString.call(e) === "[object Object]") {
|
|
1487
1495
|
n = {};
|
|
1488
1496
|
for (t in e)
|
|
1489
1497
|
t === "__proto__" ? Object.defineProperty(n, t, {
|
|
1490
|
-
value:
|
|
1498
|
+
value: le(e[t]),
|
|
1491
1499
|
configurable: !0,
|
|
1492
1500
|
enumerable: !0,
|
|
1493
1501
|
writable: !0
|
|
1494
|
-
}) : n[t] = (r = e[t]) && typeof r == "object" ?
|
|
1502
|
+
}) : n[t] = (r = e[t]) && typeof r == "object" ? le(r) : r;
|
|
1495
1503
|
return n;
|
|
1496
1504
|
}
|
|
1497
1505
|
return e;
|
|
1498
1506
|
}
|
|
1499
|
-
const [
|
|
1507
|
+
const [J, mr] = Mt({
|
|
1500
1508
|
calls: {}
|
|
1501
1509
|
}), Le = ge("");
|
|
1502
1510
|
let He = {
|
|
1503
1511
|
callsProcessor: []
|
|
1504
1512
|
};
|
|
1505
|
-
function
|
|
1513
|
+
function $r(e) {
|
|
1506
1514
|
He = {
|
|
1507
1515
|
...He,
|
|
1508
1516
|
...e
|
|
1509
1517
|
};
|
|
1510
1518
|
}
|
|
1511
|
-
function
|
|
1519
|
+
function Jl({
|
|
1512
1520
|
type: e,
|
|
1513
1521
|
response: t,
|
|
1514
1522
|
payload: n,
|
|
1515
1523
|
event: r,
|
|
1516
1524
|
startTime: l
|
|
1517
1525
|
}) {
|
|
1518
|
-
|
|
1526
|
+
yr({
|
|
1519
1527
|
type: "ws",
|
|
1520
1528
|
path: r,
|
|
1521
1529
|
payload: n,
|
|
@@ -1527,7 +1535,7 @@ function Ql({
|
|
|
1527
1535
|
response: t
|
|
1528
1536
|
});
|
|
1529
1537
|
}
|
|
1530
|
-
function
|
|
1538
|
+
function yr(e) {
|
|
1531
1539
|
const t = e.startTime || Date.now();
|
|
1532
1540
|
return ({
|
|
1533
1541
|
isError: n,
|
|
@@ -1537,7 +1545,7 @@ function $r(e) {
|
|
|
1537
1545
|
tags: s
|
|
1538
1546
|
}) => {
|
|
1539
1547
|
const i = e.duration || Date.now() - t;
|
|
1540
|
-
|
|
1548
|
+
mr(
|
|
1541
1549
|
Gn((a) => {
|
|
1542
1550
|
const c = rt(
|
|
1543
1551
|
() => new URL(e.path, "http://localhost")
|
|
@@ -1549,7 +1557,7 @@ function $r(e) {
|
|
|
1549
1557
|
if (typeof N.match == "string") {
|
|
1550
1558
|
if (N.matchType && N.matchType !== e.type || N.matchSubType && e.subType && N.matchSubType.includes(e.subType))
|
|
1551
1559
|
return !1;
|
|
1552
|
-
const T =
|
|
1560
|
+
const T = hr(c.pathname, N.match);
|
|
1553
1561
|
return T ? (p = T, !0) : !1;
|
|
1554
1562
|
} else
|
|
1555
1563
|
return N.match({
|
|
@@ -1579,18 +1587,18 @@ function $r(e) {
|
|
|
1579
1587
|
duration: i,
|
|
1580
1588
|
pathParams: p,
|
|
1581
1589
|
isError: n,
|
|
1582
|
-
metadata:
|
|
1583
|
-
response:
|
|
1590
|
+
metadata: le(o),
|
|
1591
|
+
response: le(l),
|
|
1584
1592
|
path: e.path.replace(/^\//, ""),
|
|
1585
|
-
payload:
|
|
1593
|
+
payload: le(e.payload),
|
|
1586
1594
|
searchParams: u,
|
|
1587
1595
|
startTime: t,
|
|
1588
1596
|
type: e.type,
|
|
1589
1597
|
method: e.method,
|
|
1590
1598
|
subType: e.subType,
|
|
1591
1599
|
code: r,
|
|
1592
|
-
tags:
|
|
1593
|
-
|
|
1600
|
+
tags: fr(
|
|
1601
|
+
dr(e.tags, s)
|
|
1594
1602
|
)
|
|
1595
1603
|
}, x = rt(
|
|
1596
1604
|
() => d?.payloadAlias?.(k.payload, k)
|
|
@@ -1600,29 +1608,29 @@ function $r(e) {
|
|
|
1600
1608
|
);
|
|
1601
1609
|
};
|
|
1602
1610
|
}
|
|
1603
|
-
const
|
|
1611
|
+
const vr = {
|
|
1604
1612
|
short: 160,
|
|
1605
1613
|
medium: 240,
|
|
1606
1614
|
long: 360
|
|
1607
|
-
},
|
|
1615
|
+
}, br = {
|
|
1608
1616
|
inOut: "cubic-bezier(0.4, 0.0, 0.2, 1)",
|
|
1609
1617
|
out: "cubic-bezier(0.0, 0.0, 0.2, 1)",
|
|
1610
1618
|
in: "cubic-bezier(0.4, 0.0, 1, 1)",
|
|
1611
1619
|
linear: "linear"
|
|
1612
1620
|
}, lt = (e) => e !== void 0 ? `${e}ms` : "";
|
|
1613
|
-
function
|
|
1621
|
+
function wr(e = {}) {
|
|
1614
1622
|
const { properties: t, duration: n, ease: r, delay: l } = e;
|
|
1615
1623
|
return `
|
|
1616
1624
|
transition: ${lt(
|
|
1617
|
-
typeof n == "number" ? n :
|
|
1618
|
-
)} ${
|
|
1625
|
+
typeof n == "number" ? n : vr[n || "medium"]
|
|
1626
|
+
)} ${br[r || "inOut"]} ${lt(l)};
|
|
1619
1627
|
${t ? `
|
|
1620
1628
|
transition-property: ${t.join(", ") || ""};
|
|
1621
1629
|
` : ""}
|
|
1622
1630
|
`;
|
|
1623
1631
|
}
|
|
1624
1632
|
const ot = (e) => e.normalize("NFD").replace(/[\u0300-\u036f]/g, "").toLowerCase().trim();
|
|
1625
|
-
function
|
|
1633
|
+
function xr(e, t) {
|
|
1626
1634
|
const n = ot(String(t)).indexOf(
|
|
1627
1635
|
ot(String(e))
|
|
1628
1636
|
);
|
|
@@ -1631,7 +1639,7 @@ function wr(e, t) {
|
|
|
1631
1639
|
matchedIndex: n
|
|
1632
1640
|
};
|
|
1633
1641
|
}
|
|
1634
|
-
function
|
|
1642
|
+
function Cr(e, t, { lowerFirst: n } = {}) {
|
|
1635
1643
|
return [...e].sort((r, l) => {
|
|
1636
1644
|
const o = t(r), s = t(l);
|
|
1637
1645
|
return o < s ? n ? -1 : 1 : o > s ? n ? 1 : -1 : 0;
|
|
@@ -1644,14 +1652,14 @@ function it({
|
|
|
1644
1652
|
}) {
|
|
1645
1653
|
const r = [];
|
|
1646
1654
|
for (const l of e) {
|
|
1647
|
-
const o =
|
|
1655
|
+
const o = xr(t, n(l));
|
|
1648
1656
|
o.matched && r.push({ item: l, matchedIndex: o.matchedIndex });
|
|
1649
1657
|
}
|
|
1650
|
-
return
|
|
1658
|
+
return Cr(r, (l) => l.matchedIndex, {
|
|
1651
1659
|
lowerFirst: !0
|
|
1652
1660
|
}).map(({ item: l }) => l);
|
|
1653
1661
|
}
|
|
1654
|
-
const
|
|
1662
|
+
const _r = /* @__PURE__ */ y('<div><h1>API EXPLORER</h1><div><button>API</button><button>WebSocket</button><button>All</button></div><label><input type="text" placeholder="Search"></label><div></div></div>'), Sr = S`
|
|
1655
1663
|
&&& {
|
|
1656
1664
|
${L()};
|
|
1657
1665
|
border-right: 1px solid ${$.white.alpha(0.1)};
|
|
@@ -1665,14 +1673,14 @@ const Cr = /* @__PURE__ */ y('<div><h1>API EXPLORER</h1><div><button>API</button
|
|
|
1665
1673
|
padding-bottom: 12px;
|
|
1666
1674
|
}
|
|
1667
1675
|
}
|
|
1668
|
-
`,
|
|
1676
|
+
`, kr = S`
|
|
1669
1677
|
&&& {
|
|
1670
1678
|
${L()};
|
|
1671
1679
|
flex: 1 1;
|
|
1672
1680
|
overflow-y: auto;
|
|
1673
1681
|
padding-bottom: 16px;
|
|
1674
1682
|
}
|
|
1675
|
-
`,
|
|
1683
|
+
`, Ar = S`
|
|
1676
1684
|
&&& {
|
|
1677
1685
|
${B({
|
|
1678
1686
|
gap: 8
|
|
@@ -1702,7 +1710,7 @@ const Cr = /* @__PURE__ */ y('<div><h1>API EXPLORER</h1><div><button>API</button
|
|
|
1702
1710
|
}
|
|
1703
1711
|
}
|
|
1704
1712
|
}
|
|
1705
|
-
`,
|
|
1713
|
+
`, Nr = S`
|
|
1706
1714
|
&&& {
|
|
1707
1715
|
${B({
|
|
1708
1716
|
gap: 16
|
|
@@ -1713,7 +1721,7 @@ const Cr = /* @__PURE__ */ y('<div><h1>API EXPLORER</h1><div><button>API</button
|
|
|
1713
1721
|
> button {
|
|
1714
1722
|
font-size: 14px;
|
|
1715
1723
|
opacity: 0.5;
|
|
1716
|
-
${
|
|
1724
|
+
${wr()};
|
|
1717
1725
|
|
|
1718
1726
|
&:hover {
|
|
1719
1727
|
opacity: 1;
|
|
@@ -1725,9 +1733,9 @@ const Cr = /* @__PURE__ */ y('<div><h1>API EXPLORER</h1><div><button>API</button
|
|
|
1725
1733
|
}
|
|
1726
1734
|
}
|
|
1727
1735
|
}
|
|
1728
|
-
`, V = ge("api"),
|
|
1736
|
+
`, V = ge("api"), Tr = () => {
|
|
1729
1737
|
const e = ge(""), t = Rt(() => {
|
|
1730
|
-
const [r = "", l = ""] = e.value.split(">"), o = Object.entries(
|
|
1738
|
+
const [r = "", l = ""] = e.value.split(">"), o = Object.entries(J.calls), s = [];
|
|
1731
1739
|
for (const [a, c] of o.reverse()) {
|
|
1732
1740
|
const u = /* @__PURE__ */ new Set();
|
|
1733
1741
|
if (!(V.value === "api" && c.type !== "fetch" && c.type !== "mutation") && !(V.value === "ws" && c.type !== "ws")) {
|
|
@@ -1755,16 +1763,16 @@ const Cr = /* @__PURE__ */ y('<div><h1>API EXPLORER</h1><div><button>API</button
|
|
|
1755
1763
|
});
|
|
1756
1764
|
}, "id"), n = m(() => I.selectedCall);
|
|
1757
1765
|
return (() => {
|
|
1758
|
-
const r =
|
|
1759
|
-
return C(r,
|
|
1766
|
+
const r = _r.cloneNode(!0), l = r.firstChild, o = l.nextSibling, s = o.firstChild, i = s.nextSibling, a = i.nextSibling, c = o.nextSibling, u = c.firstChild, p = c.nextSibling;
|
|
1767
|
+
return C(r, Sr), C(o, Nr), s.$$click = () => V.set("api"), i.$$click = () => V.set("ws"), a.$$click = () => V.set("all"), C(c, Ar), f(c, h(Ee, {
|
|
1760
1768
|
name: "search"
|
|
1761
1769
|
}), u), u.$$input = (d) => {
|
|
1762
1770
|
e.value = d.currentTarget.value;
|
|
1763
|
-
}, C(p,
|
|
1771
|
+
}, C(p, kr), f(p, h(Q, {
|
|
1764
1772
|
get each() {
|
|
1765
1773
|
return t();
|
|
1766
1774
|
},
|
|
1767
|
-
children: (d, g) => h(
|
|
1775
|
+
children: (d, g) => h(cr, {
|
|
1768
1776
|
get index() {
|
|
1769
1777
|
return g();
|
|
1770
1778
|
},
|
|
@@ -1799,7 +1807,7 @@ function Ft(...e) {
|
|
|
1799
1807
|
}
|
|
1800
1808
|
return t.join(" ");
|
|
1801
1809
|
}
|
|
1802
|
-
const
|
|
1810
|
+
const Pr = /* @__PURE__ */ y('<div><div class="content"></div></div>'), Er = /* @__PURE__ */ y("<h1></h1>"), Lr = S`
|
|
1803
1811
|
&&& {
|
|
1804
1812
|
${L()};
|
|
1805
1813
|
|
|
@@ -1834,15 +1842,15 @@ const Tr = /* @__PURE__ */ y('<div><div class="content"></div></div>'), Pr = /*
|
|
|
1834
1842
|
}
|
|
1835
1843
|
}
|
|
1836
1844
|
`, M = (e) => (() => {
|
|
1837
|
-
const t =
|
|
1845
|
+
const t = Pr.cloneNode(!0), n = t.firstChild;
|
|
1838
1846
|
return f(t, (() => {
|
|
1839
1847
|
const r = m(() => !!e.title);
|
|
1840
1848
|
return () => r() && (() => {
|
|
1841
|
-
const l =
|
|
1849
|
+
const l = Er.cloneNode(!0);
|
|
1842
1850
|
return f(l, () => e.title), l;
|
|
1843
1851
|
})();
|
|
1844
|
-
})(), n), f(n, () => e.children), _(() => C(t, Ft(
|
|
1845
|
-
})(),
|
|
1852
|
+
})(), n), f(n, () => e.children), _(() => C(t, Ft(Lr, e.class))), t;
|
|
1853
|
+
})(), Or = /* @__PURE__ */ y("<div></div>"), jr = /* @__PURE__ */ y('<div class="row"><div class="name"></div><div class="value"></div></div>'), Ir = S`
|
|
1846
1854
|
&&& {
|
|
1847
1855
|
display: grid;
|
|
1848
1856
|
grid-template-columns: auto 1fr;
|
|
@@ -1870,25 +1878,25 @@ const Tr = /* @__PURE__ */ y('<div><div class="content"></div></div>'), Pr = /*
|
|
|
1870
1878
|
opacity: 0.7;
|
|
1871
1879
|
}
|
|
1872
1880
|
}
|
|
1873
|
-
`,
|
|
1874
|
-
const t =
|
|
1875
|
-
return C(t,
|
|
1881
|
+
`, Mr = (e) => (() => {
|
|
1882
|
+
const t = Or.cloneNode(!0);
|
|
1883
|
+
return C(t, Ir), f(t, h(an, {
|
|
1876
1884
|
get each() {
|
|
1877
|
-
return
|
|
1885
|
+
return pr(e.rows);
|
|
1878
1886
|
},
|
|
1879
1887
|
children: (n) => (() => {
|
|
1880
|
-
const r =
|
|
1888
|
+
const r = jr.cloneNode(!0), l = r.firstChild, o = l.nextSibling;
|
|
1881
1889
|
return f(l, () => n().name), f(o, () => n().value), r;
|
|
1882
1890
|
})()
|
|
1883
1891
|
})), t;
|
|
1884
|
-
})(),
|
|
1892
|
+
})(), Dr = `
|
|
1885
1893
|
user-select: text;
|
|
1886
1894
|
|
|
1887
1895
|
*, *::before, *::after {
|
|
1888
1896
|
user-select: text;
|
|
1889
1897
|
}
|
|
1890
1898
|
`;
|
|
1891
|
-
function
|
|
1899
|
+
function Rr(e) {
|
|
1892
1900
|
return `
|
|
1893
1901
|
display: -webkit-box;
|
|
1894
1902
|
overflow: hidden;
|
|
@@ -1905,11 +1913,11 @@ function Bt(e, t) {
|
|
|
1905
1913
|
})
|
|
1906
1914
|
).get(t)).format(e);
|
|
1907
1915
|
}
|
|
1908
|
-
const
|
|
1916
|
+
const zr = /* @__PURE__ */ y('<div class="key"><span></span></div>'), Fr = /* @__PURE__ */ y('<div class="collapsed"></div>'), Br = /* @__PURE__ */ y('<div class="delimiter">[]</div>'), Hr = /* @__PURE__ */ y('<div class="delimiter">{}</div>'), at = /* @__PURE__ */ y('<div class="delimiter"></div>'), ct = /* @__PURE__ */ y('<div class="childs"></div>'), Vr = /* @__PURE__ */ y('<div class="delimiter end">]</div>'), ut = /* @__PURE__ */ y('<div class="child"></div>'), Ur = /* @__PURE__ */ y('<div class="delimiter end">}</div>'), Zr = /* @__PURE__ */ y('<div class="value" title="Shift + Click to copy value"></div>'), dt = /* @__PURE__ */ y('<span class="string-quotes">"</span>'), Wr = /* @__PURE__ */ y("<div></div>"), Kr = S`
|
|
1909
1917
|
&&& {
|
|
1910
1918
|
font-family: ${R.decorative};
|
|
1911
1919
|
font-size: 13px;
|
|
1912
|
-
${
|
|
1920
|
+
${Dr};
|
|
1913
1921
|
${L({
|
|
1914
1922
|
gap: 2
|
|
1915
1923
|
})};
|
|
@@ -1997,7 +2005,7 @@ const Rr = /* @__PURE__ */ y('<div class="key"><span></span></div>'), zr = /* @_
|
|
|
1997
2005
|
|
|
1998
2006
|
.value {
|
|
1999
2007
|
word-wrap: break-word;
|
|
2000
|
-
${
|
|
2008
|
+
${Rr(5)};
|
|
2001
2009
|
}
|
|
2002
2010
|
|
|
2003
2011
|
[data-type='number'] {
|
|
@@ -2017,8 +2025,8 @@ const Rr = /* @__PURE__ */ y('<div class="key"><span></span></div>'), zr = /* @_
|
|
|
2017
2025
|
color: ${$.white.alpha(0.5)};
|
|
2018
2026
|
}
|
|
2019
2027
|
}
|
|
2020
|
-
`,
|
|
2021
|
-
let [t, n] =
|
|
2028
|
+
`, te = 14, Ve = (e) => {
|
|
2029
|
+
let [t, n] = oe(!(e.indent > 0 && e.compact)), [r, l] = oe(!e.compact);
|
|
2022
2030
|
return m(() => {
|
|
2023
2031
|
const o = e.value, s = Array.isArray(o), i = !s && typeof o == "object" && o !== null, a = e.key !== void 0 || e.index !== void 0, c = s && o.length > 0 || i && Object.keys(o).length > 0, u = c && h(F, {
|
|
2024
2032
|
onClick: () => {
|
|
@@ -2038,7 +2046,7 @@ const Rr = /* @__PURE__ */ y('<div class="key"><span></span></div>'), zr = /* @_
|
|
|
2038
2046
|
}
|
|
2039
2047
|
});
|
|
2040
2048
|
return [a && (() => {
|
|
2041
|
-
const p =
|
|
2049
|
+
const p = zr.cloneNode(!0), d = p.firstChild;
|
|
2042
2050
|
return p.$$click = (g) => {
|
|
2043
2051
|
g.shiftKey && ye(o);
|
|
2044
2052
|
}, f(p, s || i ? u : null, d), f(d, () => e.key || e.index), _((g) => {
|
|
@@ -2052,9 +2060,9 @@ const Rr = /* @__PURE__ */ y('<div class="key"><span></span></div>'), zr = /* @_
|
|
|
2052
2060
|
})(), m((() => {
|
|
2053
2061
|
const p = m(() => !!(a && c && !t()));
|
|
2054
2062
|
return () => p() ? (() => {
|
|
2055
|
-
const d =
|
|
2063
|
+
const d = Fr.cloneNode(!0);
|
|
2056
2064
|
return f(d, () => s ? `[…] ${o.length} items` : `{…} ${Object.keys(o).length} properties`), d;
|
|
2057
|
-
})() : (() => s && o.length === 0 ?
|
|
2065
|
+
})() : (() => s && o.length === 0 ? Br.cloneNode(!0) : i && Object.keys(o).length === 0 ? Hr.cloneNode(!0) : s ? [(() => {
|
|
2058
2066
|
const d = at.cloneNode(!0);
|
|
2059
2067
|
return _e(d, "click", a ? void 0 : (g) => {
|
|
2060
2068
|
g.shiftKey && ye(o);
|
|
@@ -2066,7 +2074,7 @@ const Rr = /* @__PURE__ */ y('<div class="key"><span></span></div>'), zr = /* @_
|
|
|
2066
2074
|
return f(g, () => {
|
|
2067
2075
|
let v = o;
|
|
2068
2076
|
const b = v.length;
|
|
2069
|
-
return r() || (v = v.slice(0,
|
|
2077
|
+
return r() || (v = v.slice(0, te)), [m(() => v.map((w, k) => (() => {
|
|
2070
2078
|
const x = ut.cloneNode(!0);
|
|
2071
2079
|
return f(x, h(Ve, {
|
|
2072
2080
|
value: w,
|
|
@@ -2079,19 +2087,19 @@ const Rr = /* @__PURE__ */ y('<div class="key"><span></span></div>'), zr = /* @_
|
|
|
2079
2087
|
}
|
|
2080
2088
|
})), x;
|
|
2081
2089
|
})())), m((() => {
|
|
2082
|
-
const w = m(() => !r() && b >
|
|
2090
|
+
const w = m(() => !r() && b > te);
|
|
2083
2091
|
return () => w() && h(F, {
|
|
2084
2092
|
onClick: () => {
|
|
2085
2093
|
l(() => !0);
|
|
2086
2094
|
},
|
|
2087
2095
|
class: "show-all",
|
|
2088
2096
|
get children() {
|
|
2089
|
-
return ["…show all (+", b -
|
|
2097
|
+
return ["…show all (+", b - te, ")"];
|
|
2090
2098
|
}
|
|
2091
2099
|
});
|
|
2092
2100
|
})())];
|
|
2093
2101
|
}), g;
|
|
2094
|
-
})(),
|
|
2102
|
+
})(), Vr.cloneNode(!0)];
|
|
2095
2103
|
})())] : i ? [(() => {
|
|
2096
2104
|
const d = at.cloneNode(!0);
|
|
2097
2105
|
return _e(d, "click", a ? void 0 : (g) => {
|
|
@@ -2107,7 +2115,7 @@ const Rr = /* @__PURE__ */ y('<div class="key"><span></span></div>'), zr = /* @_
|
|
|
2107
2115
|
return f(g, () => {
|
|
2108
2116
|
let v = Object.entries(o);
|
|
2109
2117
|
const b = v.length;
|
|
2110
|
-
return r() || (v = v.slice(0,
|
|
2118
|
+
return r() || (v = v.slice(0, te)), [m(() => v.map(([w, k]) => (() => {
|
|
2111
2119
|
const x = ut.cloneNode(!0);
|
|
2112
2120
|
return f(x, h(Ve, {
|
|
2113
2121
|
value: k,
|
|
@@ -2120,21 +2128,21 @@ const Rr = /* @__PURE__ */ y('<div class="key"><span></span></div>'), zr = /* @_
|
|
|
2120
2128
|
}
|
|
2121
2129
|
})), x;
|
|
2122
2130
|
})())), m((() => {
|
|
2123
|
-
const w = m(() => !r() && b >
|
|
2131
|
+
const w = m(() => !r() && b > te);
|
|
2124
2132
|
return () => w() && h(F, {
|
|
2125
2133
|
onClick: () => {
|
|
2126
2134
|
l(() => !0);
|
|
2127
2135
|
},
|
|
2128
2136
|
class: "show-all",
|
|
2129
2137
|
get children() {
|
|
2130
|
-
return ["…show all (+", b -
|
|
2138
|
+
return ["…show all (+", b - te, ")"];
|
|
2131
2139
|
}
|
|
2132
2140
|
});
|
|
2133
2141
|
})())];
|
|
2134
2142
|
}), g;
|
|
2135
|
-
})(),
|
|
2143
|
+
})(), Ur.cloneNode(!0)];
|
|
2136
2144
|
})())] : (() => {
|
|
2137
|
-
const d =
|
|
2145
|
+
const d = Zr.cloneNode(!0);
|
|
2138
2146
|
return d.$$click = (g) => {
|
|
2139
2147
|
g.shiftKey && ye(String(o));
|
|
2140
2148
|
}, j(d, "data-type", typeof o), f(d, typeof o == "string" && dt.cloneNode(!0), null), f(d, () => typeof o == "number" ? Bt(o) : String(o), null), f(d, typeof o == "string" && dt.cloneNode(!0), null), d;
|
|
@@ -2142,8 +2150,8 @@ const Rr = /* @__PURE__ */ y('<div class="key"><span></span></div>'), zr = /* @_
|
|
|
2142
2150
|
})())];
|
|
2143
2151
|
});
|
|
2144
2152
|
}, W = (e) => (() => {
|
|
2145
|
-
const t =
|
|
2146
|
-
return C(t,
|
|
2153
|
+
const t = Wr.cloneNode(!0);
|
|
2154
|
+
return C(t, Kr), f(t, h(Ve, {
|
|
2147
2155
|
get value() {
|
|
2148
2156
|
return e.value;
|
|
2149
2157
|
},
|
|
@@ -2157,11 +2165,11 @@ async function ye(e) {
|
|
|
2157
2165
|
await navigator.clipboard.writeText(typeof e == "object" ? JSON.stringify(e, null, 2) : String(e)), alert("Copied to clipboard");
|
|
2158
2166
|
}
|
|
2159
2167
|
Pe(["click"]);
|
|
2160
|
-
let
|
|
2161
|
-
function
|
|
2162
|
-
return
|
|
2168
|
+
let Xr = 0;
|
|
2169
|
+
function Yr() {
|
|
2170
|
+
return Xr++;
|
|
2163
2171
|
}
|
|
2164
|
-
const
|
|
2172
|
+
const Gr = /* @__PURE__ */ y("<label></label>"), Qr = /* @__PURE__ */ y('<div><div class="inputContainer"><select></select></div></div>'), Jr = /* @__PURE__ */ y('<option value="">-- select an option --</option>'), qr = /* @__PURE__ */ y("<option></option>"), el = S`
|
|
2165
2173
|
&&& {
|
|
2166
2174
|
${L({
|
|
2167
2175
|
align: "left"
|
|
@@ -2216,32 +2224,32 @@ const Yr = /* @__PURE__ */ y("<label></label>"), Gr = /* @__PURE__ */ y('<div><d
|
|
|
2216
2224
|
background: ${$.white.var};
|
|
2217
2225
|
}
|
|
2218
2226
|
}
|
|
2219
|
-
`,
|
|
2220
|
-
const t = `input${
|
|
2227
|
+
`, tl = (e) => {
|
|
2228
|
+
const t = `input${Yr()}`;
|
|
2221
2229
|
return (() => {
|
|
2222
|
-
const n =
|
|
2223
|
-
return f(n, h(
|
|
2230
|
+
const n = Qr.cloneNode(!0), r = n.firstChild, l = r.firstChild;
|
|
2231
|
+
return f(n, h(G, {
|
|
2224
2232
|
get when() {
|
|
2225
2233
|
return e.label;
|
|
2226
2234
|
},
|
|
2227
2235
|
get children() {
|
|
2228
|
-
const o =
|
|
2236
|
+
const o = Gr.cloneNode(!0);
|
|
2229
2237
|
return j(o, "for", t), f(o, () => e.label), o;
|
|
2230
2238
|
}
|
|
2231
2239
|
}), r), l.addEventListener("change", (o) => {
|
|
2232
2240
|
o.currentTarget.value && e.onChange(o.currentTarget.value);
|
|
2233
2241
|
}), j(l, "id", t), f(l, (() => {
|
|
2234
2242
|
const o = m(() => !e.value);
|
|
2235
|
-
return () => o() &&
|
|
2236
|
-
})(), null), f(l, h(
|
|
2243
|
+
return () => o() && Jr.cloneNode(!0);
|
|
2244
|
+
})(), null), f(l, h(Q, {
|
|
2237
2245
|
get each() {
|
|
2238
2246
|
return e.options;
|
|
2239
2247
|
},
|
|
2240
2248
|
children: (o) => (() => {
|
|
2241
|
-
const s =
|
|
2249
|
+
const s = qr.cloneNode(!0);
|
|
2242
2250
|
return f(s, () => o.label), _(() => s.value = o.value), s;
|
|
2243
2251
|
})()
|
|
2244
|
-
}), null), _(() => C(n, Ft(
|
|
2252
|
+
}), null), _(() => C(n, Ft(el, e.class))), _(() => l.value = e.value ?? ""), n;
|
|
2245
2253
|
})();
|
|
2246
2254
|
};
|
|
2247
2255
|
function Ht(e) {
|
|
@@ -2254,10 +2262,10 @@ function ft(e, t) {
|
|
|
2254
2262
|
typeof t == "object" && t !== null ? t : String(t)
|
|
2255
2263
|
);
|
|
2256
2264
|
}
|
|
2257
|
-
function
|
|
2265
|
+
function nl(e, t) {
|
|
2258
2266
|
return e.length > t ? `${e.slice(0, t)}...` : e;
|
|
2259
2267
|
}
|
|
2260
|
-
const
|
|
2268
|
+
const rl = /* @__PURE__ */ y('<div class="changes-count"><span class="additions">+ <b></b> lines</span> | <span class="removals">- <b></b> lines</span></div>'), Me = /* @__PURE__ */ y("<div></div>"), pt = /* @__PURE__ */ y("<div>No changes</div>"), ht = /* @__PURE__ */ y('<div class="line"></div>'), ll = S`
|
|
2261
2269
|
&&& {
|
|
2262
2270
|
${L({
|
|
2263
2271
|
gap: 14
|
|
@@ -2315,32 +2323,32 @@ const nl = /* @__PURE__ */ y('<div class="changes-count"><span class="additions"
|
|
|
2315
2323
|
}
|
|
2316
2324
|
}
|
|
2317
2325
|
}
|
|
2318
|
-
`,
|
|
2326
|
+
`, ol = () => {
|
|
2319
2327
|
const e = m(() => {
|
|
2320
2328
|
const {
|
|
2321
2329
|
selectedCall: a
|
|
2322
2330
|
} = I;
|
|
2323
|
-
return a ?
|
|
2324
|
-
}), t =
|
|
2331
|
+
return a ? J.calls[a] : J.calls[Le.value];
|
|
2332
|
+
}), t = or(() => I.selectedRequest ? e()?.requests.find((a) => a.id === I.selectedRequest) : e()?.requests.at(-1) || null), n = m(() => t.value?.id), r = Rt(() => {
|
|
2325
2333
|
const a = e();
|
|
2326
2334
|
return a ? zt(a.requests).map((c) => ({
|
|
2327
2335
|
value: c.id,
|
|
2328
|
-
label: `${
|
|
2336
|
+
label: `${ne(c.startTime).format("HH:mm:ss")} | ${nl(Ht(c), 50)}`
|
|
2329
2337
|
})).filter((c) => c.value !== n()) : [];
|
|
2330
2338
|
}, "value"), l = ge(null), o = m(() => l.value ? e()?.requests.find((a) => a.id === l.value) : null), s = m(() => {
|
|
2331
2339
|
if (!l.value || !n())
|
|
2332
2340
|
return [];
|
|
2333
|
-
const a = t
|
|
2341
|
+
const a = t.value?.response, c = o()?.response, u = ft(c, a);
|
|
2334
2342
|
return u === "no changes" ? [] : u;
|
|
2335
2343
|
}), i = m(() => {
|
|
2336
2344
|
if (!l.value || !n())
|
|
2337
2345
|
return [];
|
|
2338
|
-
const a = mt(t
|
|
2346
|
+
const a = mt(t.value), c = mt(o()), u = ft(c, a);
|
|
2339
2347
|
return u === "no changes" ? [] : u;
|
|
2340
2348
|
});
|
|
2341
2349
|
return (() => {
|
|
2342
2350
|
const a = Me.cloneNode(!0);
|
|
2343
|
-
return C(a,
|
|
2351
|
+
return C(a, ll), f(a, h(tl, {
|
|
2344
2352
|
get value() {
|
|
2345
2353
|
return l.value;
|
|
2346
2354
|
},
|
|
@@ -2351,61 +2359,75 @@ const nl = /* @__PURE__ */ y('<div class="changes-count"><span class="additions"
|
|
|
2351
2359
|
onChange: (c) => {
|
|
2352
2360
|
l.value = c;
|
|
2353
2361
|
}
|
|
2354
|
-
}), null), f(a, h(
|
|
2362
|
+
}), null), f(a, h(G, {
|
|
2355
2363
|
get when() {
|
|
2356
2364
|
return l.value;
|
|
2357
2365
|
},
|
|
2358
2366
|
get children() {
|
|
2359
2367
|
return [(() => {
|
|
2360
|
-
const c =
|
|
2368
|
+
const c = rl.cloneNode(!0), u = c.firstChild, p = u.firstChild, d = p.nextSibling, g = u.nextSibling, v = g.nextSibling, b = v.firstChild, w = b.nextSibling;
|
|
2361
2369
|
return f(d, () => s().filter((k) => k.added).length), f(w, () => s().filter((k) => k.removed).length), c;
|
|
2362
|
-
})(), h(
|
|
2363
|
-
get
|
|
2364
|
-
return
|
|
2370
|
+
})(), h(G, {
|
|
2371
|
+
get when() {
|
|
2372
|
+
return t.value?.payload || t.value?.searchParams || t.value?.pathParams;
|
|
2365
2373
|
},
|
|
2366
2374
|
get children() {
|
|
2367
|
-
|
|
2368
|
-
|
|
2369
|
-
|
|
2370
|
-
return i();
|
|
2375
|
+
return h(M, {
|
|
2376
|
+
get title() {
|
|
2377
|
+
return t.value?.payload ? "Payload Diff" : t.value?.searchParams ? "Search Params Diff" : t.value?.pathParams ? "Path Params Diff" : "Payload";
|
|
2371
2378
|
},
|
|
2372
|
-
get
|
|
2373
|
-
|
|
2374
|
-
|
|
2375
|
-
|
|
2376
|
-
|
|
2377
|
-
|
|
2378
|
-
|
|
2379
|
-
|
|
2380
|
-
|
|
2381
|
-
|
|
2382
|
-
|
|
2383
|
-
|
|
2384
|
-
|
|
2385
|
-
|
|
2379
|
+
get children() {
|
|
2380
|
+
const c = Me.cloneNode(!0);
|
|
2381
|
+
return C(c, gt), f(c, h(Q, {
|
|
2382
|
+
get each() {
|
|
2383
|
+
return i();
|
|
2384
|
+
},
|
|
2385
|
+
get fallback() {
|
|
2386
|
+
return pt.cloneNode(!0);
|
|
2387
|
+
},
|
|
2388
|
+
children: (u) => (() => {
|
|
2389
|
+
const p = ht.cloneNode(!0);
|
|
2390
|
+
return f(p, () => u.value), _((d) => {
|
|
2391
|
+
const g = !!u.added, v = !!u.removed;
|
|
2392
|
+
return g !== d._v$ && p.classList.toggle("added", d._v$ = g), v !== d._v$2 && p.classList.toggle("removed", d._v$2 = v), d;
|
|
2393
|
+
}, {
|
|
2394
|
+
_v$: void 0,
|
|
2395
|
+
_v$2: void 0
|
|
2396
|
+
}), p;
|
|
2397
|
+
})()
|
|
2398
|
+
})), c;
|
|
2399
|
+
}
|
|
2400
|
+
});
|
|
2386
2401
|
}
|
|
2387
|
-
}), h(
|
|
2388
|
-
|
|
2402
|
+
}), h(G, {
|
|
2403
|
+
get when() {
|
|
2404
|
+
return t.value?.response !== void 0;
|
|
2405
|
+
},
|
|
2389
2406
|
get children() {
|
|
2390
|
-
|
|
2391
|
-
|
|
2392
|
-
get
|
|
2393
|
-
|
|
2394
|
-
|
|
2395
|
-
|
|
2396
|
-
|
|
2397
|
-
|
|
2398
|
-
|
|
2399
|
-
|
|
2400
|
-
|
|
2401
|
-
|
|
2402
|
-
|
|
2403
|
-
|
|
2404
|
-
|
|
2405
|
-
|
|
2406
|
-
|
|
2407
|
-
|
|
2408
|
-
|
|
2407
|
+
return h(M, {
|
|
2408
|
+
title: "Response Diff",
|
|
2409
|
+
get children() {
|
|
2410
|
+
const c = Me.cloneNode(!0);
|
|
2411
|
+
return C(c, gt), f(c, h(Q, {
|
|
2412
|
+
get each() {
|
|
2413
|
+
return s();
|
|
2414
|
+
},
|
|
2415
|
+
get fallback() {
|
|
2416
|
+
return pt.cloneNode(!0);
|
|
2417
|
+
},
|
|
2418
|
+
children: (u) => (() => {
|
|
2419
|
+
const p = ht.cloneNode(!0);
|
|
2420
|
+
return f(p, () => u.value), _((d) => {
|
|
2421
|
+
const g = !!u.added, v = !!u.removed;
|
|
2422
|
+
return g !== d._v$3 && p.classList.toggle("added", d._v$3 = g), v !== d._v$4 && p.classList.toggle("removed", d._v$4 = v), d;
|
|
2423
|
+
}, {
|
|
2424
|
+
_v$3: void 0,
|
|
2425
|
+
_v$4: void 0
|
|
2426
|
+
}), p;
|
|
2427
|
+
})()
|
|
2428
|
+
})), c;
|
|
2429
|
+
}
|
|
2430
|
+
});
|
|
2409
2431
|
}
|
|
2410
2432
|
})];
|
|
2411
2433
|
}
|
|
@@ -2415,7 +2437,7 @@ const nl = /* @__PURE__ */ y('<div class="changes-count"><span class="additions"
|
|
|
2415
2437
|
function mt(e) {
|
|
2416
2438
|
return e ? e.payload || e.searchParams || e.pathParams : null;
|
|
2417
2439
|
}
|
|
2418
|
-
const $t = /* @__PURE__ */ y("<div></div>"),
|
|
2440
|
+
const $t = /* @__PURE__ */ y("<div></div>"), il = /* @__PURE__ */ y('<h1><span class="type"></span><span class="separator">|</span></h1>'), sl = /* @__PURE__ */ y('<div class="tags"></div>'), al = /* @__PURE__ */ y('<div class="details"></div>'), cl = /* @__PURE__ */ y("<span>|</span>"), ul = /* @__PURE__ */ y("<h2></h2>"), dl = /* @__PURE__ */ y('<div class="method"></div>'), fl = /* @__PURE__ */ y('<div class="code"></div>'), pl = /* @__PURE__ */ y('<div class="tag error">Has Error</div>'), hl = /* @__PURE__ */ y('<div class="tag"></div>'), gl = /* @__PURE__ */ y("<span> ms</span>"), ml = /* @__PURE__ */ y("<span></span>"), $l = S`
|
|
2419
2441
|
&&& {
|
|
2420
2442
|
${L()};
|
|
2421
2443
|
padding-left: 10px;
|
|
@@ -2489,7 +2511,7 @@ const $t = /* @__PURE__ */ y("<div></div>"), ol = /* @__PURE__ */ y('<h1><span c
|
|
|
2489
2511
|
padding-bottom: 20px;
|
|
2490
2512
|
}
|
|
2491
2513
|
}
|
|
2492
|
-
`,
|
|
2514
|
+
`, yl = S`
|
|
2493
2515
|
&&& {
|
|
2494
2516
|
${B({
|
|
2495
2517
|
gap: 20
|
|
@@ -2511,10 +2533,10 @@ const $t = /* @__PURE__ */ y("<div></div>"), ol = /* @__PURE__ */ y('<h1><span c
|
|
|
2511
2533
|
}
|
|
2512
2534
|
}
|
|
2513
2535
|
}
|
|
2514
|
-
`,
|
|
2536
|
+
`, vl = () => {
|
|
2515
2537
|
const e = m(() => I.selectedCall), t = m(() => I.selectedRequest), n = m(() => I.selectedTab || "summary"), r = m(() => {
|
|
2516
2538
|
let o;
|
|
2517
|
-
e() ? o =
|
|
2539
|
+
e() ? o = J.calls[e()] : o = J.calls[Le.value];
|
|
2518
2540
|
const s = t() && o?.requests.find((i) => i.id === t()) || o?.requests.at(-1);
|
|
2519
2541
|
return s && o ? {
|
|
2520
2542
|
...s,
|
|
@@ -2537,52 +2559,52 @@ const $t = /* @__PURE__ */ y("<div></div>"), ol = /* @__PURE__ */ y('<h1><span c
|
|
|
2537
2559
|
}
|
|
2538
2560
|
return (() => {
|
|
2539
2561
|
const o = $t.cloneNode(!0);
|
|
2540
|
-
return C(o,
|
|
2562
|
+
return C(o, $l), f(o, h(G, {
|
|
2541
2563
|
get when() {
|
|
2542
2564
|
return r();
|
|
2543
2565
|
},
|
|
2544
2566
|
keyed: !0,
|
|
2545
2567
|
children: (s) => [(() => {
|
|
2546
|
-
const i =
|
|
2568
|
+
const i = il.cloneNode(!0), a = i.firstChild;
|
|
2547
2569
|
return a.nextSibling, f(a, () => s.type === "ws" ? `WS ${s.subType}` : "API"), f(i, () => s.callName, null), f(i, (() => {
|
|
2548
2570
|
const c = m(() => !!s.alias);
|
|
2549
|
-
return () => c() &&
|
|
2571
|
+
return () => c() && cl.cloneNode(!0);
|
|
2550
2572
|
})(), null), f(i, () => s.alias, null), i;
|
|
2551
2573
|
})(), m((() => {
|
|
2552
2574
|
const i = m(() => s.callPath !== s.callName);
|
|
2553
2575
|
return () => i() && (() => {
|
|
2554
|
-
const a =
|
|
2576
|
+
const a = ul.cloneNode(!0);
|
|
2555
2577
|
return f(a, () => s.callPath), a;
|
|
2556
2578
|
})();
|
|
2557
2579
|
})()), (() => {
|
|
2558
|
-
const i =
|
|
2580
|
+
const i = sl.cloneNode(!0);
|
|
2559
2581
|
return f(i, (() => {
|
|
2560
2582
|
const a = m(() => !!s.method);
|
|
2561
2583
|
return () => a() && (() => {
|
|
2562
|
-
const c =
|
|
2584
|
+
const c = dl.cloneNode(!0);
|
|
2563
2585
|
return f(c, () => s.method), c;
|
|
2564
2586
|
})();
|
|
2565
2587
|
})(), null), f(i, (() => {
|
|
2566
2588
|
const a = m(() => !!s.code);
|
|
2567
2589
|
return () => a() && (() => {
|
|
2568
|
-
const c =
|
|
2590
|
+
const c = fl.cloneNode(!0);
|
|
2569
2591
|
return f(c, () => s.code), _(() => c.classList.toggle("error", s.code >= 400)), c;
|
|
2570
2592
|
})();
|
|
2571
2593
|
})(), null), f(i, (() => {
|
|
2572
2594
|
const a = m(() => !!s.isError);
|
|
2573
|
-
return () => a() &&
|
|
2574
|
-
})(), null), f(i, h(
|
|
2595
|
+
return () => a() && pl.cloneNode(!0);
|
|
2596
|
+
})(), null), f(i, h(Q, {
|
|
2575
2597
|
get each() {
|
|
2576
2598
|
return s.tags;
|
|
2577
2599
|
},
|
|
2578
2600
|
children: (a) => (() => {
|
|
2579
|
-
const c =
|
|
2601
|
+
const c = hl.cloneNode(!0);
|
|
2580
2602
|
return f(c, a), c;
|
|
2581
2603
|
})()
|
|
2582
2604
|
}), null), i;
|
|
2583
2605
|
})(), (() => {
|
|
2584
2606
|
const i = $t.cloneNode(!0);
|
|
2585
|
-
return C(i,
|
|
2607
|
+
return C(i, yl), f(i, () => l("summary", "Summary"), null), f(i, (() => {
|
|
2586
2608
|
const a = m(() => !!s.payload);
|
|
2587
2609
|
return () => a() && l("payload", "Payload");
|
|
2588
2610
|
})(), null), f(i, (() => {
|
|
@@ -2590,10 +2612,10 @@ const $t = /* @__PURE__ */ y("<div></div>"), ol = /* @__PURE__ */ y('<h1><span c
|
|
|
2590
2612
|
return () => a() && l("urlParams", "URL Params");
|
|
2591
2613
|
})(), null), f(i, () => l("response", "Response"), null), f(i, () => l("diff", "Diff"), null), i;
|
|
2592
2614
|
})(), (() => {
|
|
2593
|
-
const i =
|
|
2615
|
+
const i = al.cloneNode(!0);
|
|
2594
2616
|
return f(i, h(cn, {
|
|
2595
2617
|
get children() {
|
|
2596
|
-
return [h(
|
|
2618
|
+
return [h(de, {
|
|
2597
2619
|
get when() {
|
|
2598
2620
|
return n() === "summary";
|
|
2599
2621
|
},
|
|
@@ -2631,25 +2653,25 @@ const $t = /* @__PURE__ */ y("<div></div>"), ol = /* @__PURE__ */ y('<h1><span c
|
|
|
2631
2653
|
})), h(M, {
|
|
2632
2654
|
title: "Stats",
|
|
2633
2655
|
get children() {
|
|
2634
|
-
return h(
|
|
2656
|
+
return h(Mr, {
|
|
2635
2657
|
get rows() {
|
|
2636
2658
|
return [s.type !== "ws" && {
|
|
2637
2659
|
name: "Duration",
|
|
2638
2660
|
value: (() => {
|
|
2639
|
-
const a =
|
|
2661
|
+
const a = gl.cloneNode(!0), c = a.firstChild;
|
|
2640
2662
|
return f(a, () => Bt(s.duration, 0), c), _(() => a.style.setProperty("color", s.duration < 500 ? $.success.var : s.duration > 1e3 ? $.error.var : void 0)), a;
|
|
2641
2663
|
})()
|
|
2642
2664
|
}, {
|
|
2643
2665
|
name: "Start Time",
|
|
2644
2666
|
value: (() => {
|
|
2645
|
-
const a =
|
|
2646
|
-
return f(a, () => `${
|
|
2667
|
+
const a = ml.cloneNode(!0);
|
|
2668
|
+
return f(a, () => `${ne(s.startTime).format("HH:mm:ss")} (${ne(s.startTime).fromNow()})`), _(() => j(a, "title", ne(s.startTime).format("YYYY-MM-DD HH:mm:ss.SSS"))), a;
|
|
2647
2669
|
})()
|
|
2648
2670
|
}];
|
|
2649
2671
|
}
|
|
2650
2672
|
});
|
|
2651
2673
|
}
|
|
2652
|
-
}), h(
|
|
2674
|
+
}), h(G, {
|
|
2653
2675
|
get when() {
|
|
2654
2676
|
return s.type !== "ws";
|
|
2655
2677
|
},
|
|
@@ -2667,7 +2689,7 @@ const $t = /* @__PURE__ */ y("<div></div>"), ol = /* @__PURE__ */ y('<h1><span c
|
|
|
2667
2689
|
}
|
|
2668
2690
|
})];
|
|
2669
2691
|
}
|
|
2670
|
-
}), h(
|
|
2692
|
+
}), h(de, {
|
|
2671
2693
|
get when() {
|
|
2672
2694
|
return n() === "payload";
|
|
2673
2695
|
},
|
|
@@ -2683,7 +2705,7 @@ const $t = /* @__PURE__ */ y("<div></div>"), ol = /* @__PURE__ */ y('<h1><span c
|
|
|
2683
2705
|
}
|
|
2684
2706
|
});
|
|
2685
2707
|
}
|
|
2686
|
-
}), h(
|
|
2708
|
+
}), h(de, {
|
|
2687
2709
|
get when() {
|
|
2688
2710
|
return n() === "response";
|
|
2689
2711
|
},
|
|
@@ -2699,7 +2721,7 @@ const $t = /* @__PURE__ */ y("<div></div>"), ol = /* @__PURE__ */ y('<h1><span c
|
|
|
2699
2721
|
}
|
|
2700
2722
|
});
|
|
2701
2723
|
}
|
|
2702
|
-
}), h(
|
|
2724
|
+
}), h(de, {
|
|
2703
2725
|
get when() {
|
|
2704
2726
|
return n() === "urlParams";
|
|
2705
2727
|
},
|
|
@@ -2715,12 +2737,12 @@ const $t = /* @__PURE__ */ y("<div></div>"), ol = /* @__PURE__ */ y('<h1><span c
|
|
|
2715
2737
|
}
|
|
2716
2738
|
});
|
|
2717
2739
|
}
|
|
2718
|
-
}), h(
|
|
2740
|
+
}), h(de, {
|
|
2719
2741
|
get when() {
|
|
2720
2742
|
return n() === "diff";
|
|
2721
2743
|
},
|
|
2722
2744
|
get children() {
|
|
2723
|
-
return h(
|
|
2745
|
+
return h(ol, {});
|
|
2724
2746
|
}
|
|
2725
2747
|
})];
|
|
2726
2748
|
}
|
|
@@ -2728,7 +2750,7 @@ const $t = /* @__PURE__ */ y("<div></div>"), ol = /* @__PURE__ */ y('<h1><span c
|
|
|
2728
2750
|
})()]
|
|
2729
2751
|
})), o;
|
|
2730
2752
|
})();
|
|
2731
|
-
},
|
|
2753
|
+
}, bl = /* @__PURE__ */ y("<div><h1>timeline</h1><div></div></div>"), wl = /* @__PURE__ */ y("<div>no requests found</div>"), xl = /* @__PURE__ */ y('<span class="start-time"></span>'), Cl = /* @__PURE__ */ y("<div></div>"), _l = /* @__PURE__ */ y('<span class="separator">|</span>'), Sl = /* @__PURE__ */ y('<span class="payload"></span>'), kl = S`
|
|
2732
2754
|
&&& {
|
|
2733
2755
|
${L()};
|
|
2734
2756
|
border-right: 1px solid ${$.white.alpha(0.1)};
|
|
@@ -2742,13 +2764,13 @@ const $t = /* @__PURE__ */ y("<div></div>"), ol = /* @__PURE__ */ y('<h1><span c
|
|
|
2742
2764
|
padding-bottom: 16px;
|
|
2743
2765
|
}
|
|
2744
2766
|
}
|
|
2745
|
-
`,
|
|
2767
|
+
`, Al = S`
|
|
2746
2768
|
&&& {
|
|
2747
2769
|
${L()};
|
|
2748
2770
|
flex: 1 1;
|
|
2749
2771
|
overflow-y: auto;
|
|
2750
2772
|
}
|
|
2751
|
-
`,
|
|
2773
|
+
`, Nl = S`
|
|
2752
2774
|
&&& {
|
|
2753
2775
|
font-size: 13px;
|
|
2754
2776
|
${L()};
|
|
@@ -2784,38 +2806,38 @@ const $t = /* @__PURE__ */ y("<div></div>"), ol = /* @__PURE__ */ y('<h1><span c
|
|
|
2784
2806
|
}
|
|
2785
2807
|
}
|
|
2786
2808
|
}
|
|
2787
|
-
`,
|
|
2809
|
+
`, Tl = S`
|
|
2788
2810
|
&&& {
|
|
2789
2811
|
opacity: 0.4;
|
|
2790
2812
|
font-size: 14px;
|
|
2791
2813
|
padding: 12px;
|
|
2792
2814
|
padding-top: 0;
|
|
2793
2815
|
}
|
|
2794
|
-
`,
|
|
2816
|
+
`, Pl = () => {
|
|
2795
2817
|
const e = m(() => {
|
|
2796
2818
|
const l = I.selectedCall;
|
|
2797
|
-
return l ? l ?
|
|
2819
|
+
return l ? l ? J.calls[l] : null : J.calls[Le.value] || null;
|
|
2798
2820
|
}), t = m(() => {
|
|
2799
2821
|
const l = zt(e()?.requests);
|
|
2800
2822
|
return l.length === 0 ? null : l;
|
|
2801
2823
|
}), n = m(() => I.selectedSubitem ? t()?.filter((l) => l.alias === I.selectedSubitem) : t()), r = m(() => I.selectedRequest || n()?.[0]?.id);
|
|
2802
2824
|
return (() => {
|
|
2803
|
-
const l =
|
|
2804
|
-
return C(l,
|
|
2825
|
+
const l = bl.cloneNode(!0), o = l.firstChild, s = o.nextSibling;
|
|
2826
|
+
return C(l, kl), C(s, Al), f(s, h(Q, {
|
|
2805
2827
|
get each() {
|
|
2806
2828
|
return n();
|
|
2807
2829
|
},
|
|
2808
2830
|
get fallback() {
|
|
2809
2831
|
return (() => {
|
|
2810
|
-
const i =
|
|
2811
|
-
return C(i,
|
|
2832
|
+
const i = wl.cloneNode(!0);
|
|
2833
|
+
return C(i, Tl), i;
|
|
2812
2834
|
})();
|
|
2813
2835
|
},
|
|
2814
2836
|
children: (i) => {
|
|
2815
|
-
const a =
|
|
2837
|
+
const a = ne(i.startTime), c = a.format("HH:mm:ss"), u = a.fromNow(), p = Ht(i);
|
|
2816
2838
|
return (() => {
|
|
2817
|
-
const d =
|
|
2818
|
-
return C(d,
|
|
2839
|
+
const d = Cl.cloneNode(!0);
|
|
2840
|
+
return C(d, Nl), f(d, h(F, {
|
|
2819
2841
|
onClick: () => {
|
|
2820
2842
|
Ae("selectedRequest", i.id);
|
|
2821
2843
|
},
|
|
@@ -2826,10 +2848,10 @@ const $t = /* @__PURE__ */ y("<div></div>"), ol = /* @__PURE__ */ y('<h1><span c
|
|
|
2826
2848
|
},
|
|
2827
2849
|
get children() {
|
|
2828
2850
|
return [(() => {
|
|
2829
|
-
const g =
|
|
2851
|
+
const g = xl.cloneNode(!0);
|
|
2830
2852
|
return j(g, "title", u), f(g, c), g;
|
|
2831
|
-
})(), m(() => !!p && [
|
|
2832
|
-
const g =
|
|
2853
|
+
})(), m(() => !!p && [_l.cloneNode(!0), (() => {
|
|
2854
|
+
const g = Sl.cloneNode(!0);
|
|
2833
2855
|
return j(g, "title", p), f(g, p), g;
|
|
2834
2856
|
})()])];
|
|
2835
2857
|
}
|
|
@@ -2838,15 +2860,15 @@ const $t = /* @__PURE__ */ y("<div></div>"), ol = /* @__PURE__ */ y('<h1><span c
|
|
|
2838
2860
|
}
|
|
2839
2861
|
})), l;
|
|
2840
2862
|
})();
|
|
2841
|
-
},
|
|
2863
|
+
}, El = /* @__PURE__ */ y("<div></div>"), Ll = S`
|
|
2842
2864
|
&&& {
|
|
2843
2865
|
display: grid;
|
|
2844
2866
|
grid-template-columns: 1fr 1fr 3fr;
|
|
2845
2867
|
}
|
|
2846
|
-
`,
|
|
2847
|
-
const e =
|
|
2848
|
-
return C(e,
|
|
2849
|
-
})(),
|
|
2868
|
+
`, Ol = () => (() => {
|
|
2869
|
+
const e = El.cloneNode(!0);
|
|
2870
|
+
return C(e, Ll), f(e, h(Tr, {}), null), f(e, h(Pl, {}), null), f(e, h(vl, {}), null), e;
|
|
2871
|
+
})(), jl = `
|
|
2850
2872
|
font-family: ${R.primary};
|
|
2851
2873
|
color: ${$.textPrimary.var};
|
|
2852
2874
|
|
|
@@ -2897,11 +2919,11 @@ const $t = /* @__PURE__ */ y("<div></div>"), ol = /* @__PURE__ */ y('<h1><span c
|
|
|
2897
2919
|
h3 {
|
|
2898
2920
|
font-weight: normal;
|
|
2899
2921
|
}
|
|
2900
|
-
`,
|
|
2922
|
+
`, Il = `
|
|
2901
2923
|
display: flex;
|
|
2902
2924
|
align-items: center;
|
|
2903
2925
|
justify-content: center;
|
|
2904
|
-
`,
|
|
2926
|
+
`, Ml = `
|
|
2905
2927
|
*,
|
|
2906
2928
|
*::before,
|
|
2907
2929
|
*::after {
|
|
@@ -2975,9 +2997,9 @@ button {
|
|
|
2975
2997
|
cursor: pointer;
|
|
2976
2998
|
-webkit-appearance: none;
|
|
2977
2999
|
}
|
|
2978
|
-
`,
|
|
2979
|
-
${
|
|
2980
|
-
${
|
|
3000
|
+
`, Dl = /* @__PURE__ */ y("<div></div>"), Rl = /* @__PURE__ */ y('<div id="dev-tools-root-element"><nav></nav><main></main></div>'), zl = S`
|
|
3001
|
+
${Ml};
|
|
3002
|
+
${jl};
|
|
2981
3003
|
|
|
2982
3004
|
position: fixed;
|
|
2983
3005
|
inset: 32px;
|
|
@@ -2991,7 +3013,7 @@ button {
|
|
|
2991
3013
|
border-right: 1px solid ${$.white.alpha(0.1)};
|
|
2992
3014
|
|
|
2993
3015
|
button {
|
|
2994
|
-
${
|
|
3016
|
+
${Il};
|
|
2995
3017
|
width: 100%;
|
|
2996
3018
|
aspect-ratio: 1 / 1;
|
|
2997
3019
|
color: ${$.bgPrimary.var};
|
|
@@ -3010,28 +3032,28 @@ button {
|
|
|
3010
3032
|
> main > * {
|
|
3011
3033
|
${We};
|
|
3012
3034
|
}
|
|
3013
|
-
`,
|
|
3035
|
+
`, Fl = S`
|
|
3014
3036
|
${We};
|
|
3015
3037
|
position: fixed;
|
|
3016
3038
|
inset: 0;
|
|
3017
3039
|
backdrop-filter: blur(5px);
|
|
3018
|
-
`,
|
|
3019
|
-
const e =
|
|
3020
|
-
return _e(e, "click", Ut, !0), C(e,
|
|
3040
|
+
`, Bl = () => [(() => {
|
|
3041
|
+
const e = Dl.cloneNode(!0);
|
|
3042
|
+
return _e(e, "click", Ut, !0), C(e, Fl), e;
|
|
3021
3043
|
})(), (() => {
|
|
3022
|
-
const e =
|
|
3023
|
-
return C(e,
|
|
3044
|
+
const e = Rl.cloneNode(!0), t = e.firstChild, n = t.nextSibling;
|
|
3045
|
+
return C(e, zl), f(t, h(F, {
|
|
3024
3046
|
title: "API Explorer",
|
|
3025
3047
|
get children() {
|
|
3026
3048
|
return h(Ee, {
|
|
3027
3049
|
name: "network"
|
|
3028
3050
|
});
|
|
3029
3051
|
}
|
|
3030
|
-
})), f(n, h(
|
|
3052
|
+
})), f(n, h(Ol, {})), e;
|
|
3031
3053
|
})()];
|
|
3032
3054
|
Pe(["click"]);
|
|
3033
|
-
const
|
|
3034
|
-
function
|
|
3055
|
+
const Hl = () => h(Bl, {});
|
|
3056
|
+
function Vl(e) {
|
|
3035
3057
|
let t = "";
|
|
3036
3058
|
return e.forEach(({ family: n, weights: r, italics: l }) => {
|
|
3037
3059
|
t += `${t ? "&" : ""}family=${n}:`, r[1] === ".." ? t += `wght@${r[0]}..${r[2]}` : (t += "ital,wght@", r.forEach((o, s) => {
|
|
@@ -3042,11 +3064,11 @@ function Hl(e) {
|
|
|
3042
3064
|
}), `https://fonts.googleapis.com/css2?${t}&display=swap`;
|
|
3043
3065
|
}
|
|
3044
3066
|
let yt = !1;
|
|
3045
|
-
function
|
|
3067
|
+
function Ul() {
|
|
3046
3068
|
if (yt)
|
|
3047
3069
|
return;
|
|
3048
3070
|
yt = !0;
|
|
3049
|
-
const e =
|
|
3071
|
+
const e = Vl([
|
|
3050
3072
|
{
|
|
3051
3073
|
family: "Work+Sans",
|
|
3052
3074
|
weights: [300, "..", 700]
|
|
@@ -3056,33 +3078,33 @@ function Vl() {
|
|
|
3056
3078
|
}
|
|
3057
3079
|
let Vt = () => {
|
|
3058
3080
|
}, Ue = !1;
|
|
3059
|
-
function
|
|
3060
|
-
if (
|
|
3081
|
+
function Zl() {
|
|
3082
|
+
if (ne.extend(kn), Ue) {
|
|
3061
3083
|
Ut();
|
|
3062
3084
|
return;
|
|
3063
3085
|
}
|
|
3064
|
-
Ue = !0,
|
|
3086
|
+
Ue = !0, Ul(), navigator.platform.indexOf("Win") > -1 && document.body.classList.add("windows");
|
|
3065
3087
|
const e = document.getElementById("dev-tools-root") || document.createElement("div");
|
|
3066
|
-
e.id = "dev-tools-root", document.body.appendChild(e), Vt = $n(() => h(
|
|
3088
|
+
e.id = "dev-tools-root", document.body.appendChild(e), Vt = $n(() => h(Hl, {}), e);
|
|
3067
3089
|
}
|
|
3068
3090
|
function Ut() {
|
|
3069
3091
|
Ue = !1, Vt();
|
|
3070
3092
|
}
|
|
3071
|
-
function
|
|
3093
|
+
function ql({
|
|
3072
3094
|
callsProcessor: e,
|
|
3073
3095
|
shortcut: t
|
|
3074
3096
|
}) {
|
|
3075
3097
|
Yt(window, {
|
|
3076
3098
|
[t]: (n) => {
|
|
3077
3099
|
const r = document.activeElement;
|
|
3078
|
-
r instanceof HTMLElement && (r.isContentEditable || r.tagName === "INPUT" || r.tagName === "TEXTAREA") || (n.preventDefault(),
|
|
3100
|
+
r instanceof HTMLElement && (r.isContentEditable || r.tagName === "INPUT" || r.tagName === "TEXTAREA") || (n.preventDefault(), Zl());
|
|
3079
3101
|
}
|
|
3080
|
-
}),
|
|
3102
|
+
}), $r({
|
|
3081
3103
|
callsProcessor: e
|
|
3082
3104
|
});
|
|
3083
3105
|
}
|
|
3084
3106
|
export {
|
|
3085
|
-
|
|
3086
|
-
|
|
3087
|
-
|
|
3107
|
+
yr as addCall,
|
|
3108
|
+
Jl as addWebsocketEvent,
|
|
3109
|
+
ql as initializeDevTools
|
|
3088
3110
|
};
|