app-devtools 0.25.0 → 0.26.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.
Files changed (2) hide show
  1. package/dist/main.js +201 -198
  2. package/package.json +1 -1
package/dist/main.js CHANGED
@@ -1,23 +1,23 @@
1
- import de from "dayjs";
1
+ import te 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";
5
5
  import { nanoid as Kt } from "nanoid";
6
6
  import * as Xt from "diff";
7
- import Gt from "tinykeys";
8
- const U = {}, Qt = (e, t) => e === t, D = Symbol("solid-proxy"), ve = Symbol("solid-track"), be = {
9
- equals: Qt
7
+ import Yt from "tinykeys";
8
+ const U = {}, Gt = (e, t) => e === t, D = Symbol("solid-proxy"), ve = Symbol("solid-track"), be = {
9
+ equals: Gt
10
10
  };
11
- let Jt = At;
12
- const Y = 1, we = 2, bt = {
11
+ let Qt = At;
12
+ const J = 1, we = 2, bt = {
13
13
  owned: null,
14
14
  cleanups: null,
15
15
  context: null,
16
16
  owner: null
17
17
  };
18
18
  var P = null;
19
- let X = null, A = null, E = null, G = null, Ze = 0;
20
- function te(e, t) {
19
+ let X = null, A = null, E = null, Y = null, Ze = 0;
20
+ function ne(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 te(e, t) {
26
26
  }, s = l ? e : () => e(() => Z(() => Te(o)));
27
27
  P = o, A = null;
28
28
  try {
29
- return ae(s, !0);
29
+ return ce(s, !0);
30
30
  } finally {
31
31
  A = n, P = r;
32
32
  }
33
33
  }
34
- function re(e, t) {
34
+ function le(e, t) {
35
35
  t = t ? Object.assign({}, be, t) : be;
36
36
  const n = {
37
37
  value: e,
@@ -41,8 +41,8 @@ function re(e, t) {
41
41
  }, r = (l) => (typeof l == "function" && (l = l(n.value)), _t(n, l));
42
42
  return [Ct.bind(n), r];
43
43
  }
44
- function S(e, t, n) {
45
- const r = St(e, t, !1, Y);
44
+ function _(e, t, n) {
45
+ const r = St(e, t, !1, J);
46
46
  Ne(r);
47
47
  }
48
48
  function m(e, t, n) {
@@ -50,8 +50,8 @@ function m(e, t, n) {
50
50
  const r = St(e, t, !0, 0);
51
51
  return r.observers = null, r.observerSlots = null, r.comparator = n.equals || void 0, Ne(r), Ct.bind(r);
52
52
  }
53
- function Yt(e) {
54
- return ae(e, !1);
53
+ function Jt(e) {
54
+ return ce(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 === Y || e)
83
+ if (this.state === J || e)
84
84
  Ne(this);
85
85
  else {
86
86
  const t = E;
87
- E = null, ae(() => xe(this), !1), E = t;
87
+ E = null, ce(() => 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 && ae(() => {
97
+ return (!e.comparator || !e.comparator(r, t)) && (e.value = t, e.observers && e.observers.length && ce(() => {
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) : G.push(o), o.observers && Nt(o)), s || (o.state = Y);
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 = J);
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 = Y, e.owned && e.owned.forEach(Te), e.owned = null), Tt(l);
118
+ e.pure && (e.state = J, 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 = Y, l) {
122
+ function St(e, t, n, r = J, l) {
123
123
  const o = {
124
124
  fn: e,
125
125
  state: r,
@@ -147,30 +147,30 @@ 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 === Y || t)
150
+ if (e = n[r], e.state === J || t)
151
151
  Ne(e);
152
152
  else if (e.state === we || t) {
153
153
  const l = E;
154
- E = null, ae(() => xe(e, n[0]), !1), E = l;
154
+ E = null, ce(() => xe(e, n[0]), !1), E = l;
155
155
  }
156
156
  }
157
- function ae(e, t) {
157
+ function ce(e, t) {
158
158
  if (E)
159
159
  return e();
160
160
  let n = !1;
161
- t || (E = []), G ? n = !0 : G = [], Ze++;
161
+ t || (E = []), Y ? n = !0 : Y = [], Ze++;
162
162
  try {
163
163
  const r = e();
164
164
  return tn(n), r;
165
165
  } catch (r) {
166
- n || (G = null), E = null, Tt(r);
166
+ n || (Y = null), E = null, Tt(r);
167
167
  }
168
168
  }
169
169
  function tn(e) {
170
170
  if (E && (At(E), E = null), e)
171
171
  return;
172
- const t = G;
173
- G = null, t.length && ae(() => Jt(t), !1);
172
+ const t = Y;
173
+ Y = null, t.length && ce(() => Qt(t), !1);
174
174
  }
175
175
  function At(e) {
176
176
  for (let t = 0; t < e.length; t++)
@@ -181,14 +181,14 @@ 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 === Y || n ? l !== t && kt(l) : (l.state === we || n) && xe(l, t));
184
+ l.sources && (l.state === J || n ? l !== t && kt(l) : (l.state === we || n) && xe(l, t));
185
185
  }
186
186
  }
187
187
  function Nt(e) {
188
188
  const t = X;
189
189
  for (let n = 0; n < e.observers.length; n += 1) {
190
190
  const r = e.observers[n];
191
- (!r.state || t) && (r.state = we, r.pure ? E.push(r) : G.push(r), r.observers && Nt(r));
191
+ (!r.state || t) && (r.state = we, r.pure ? E.push(r) : Y.push(r), r.observers && Nt(r));
192
192
  }
193
193
  }
194
194
  function Te(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] = te((H) => (o[0] = H, n.fallback())), s = 1);
247
+ s !== 0 && (Ce(o), o = [], r = [], l = [], s = 0, i && (i = [])), n.fallback && (r = [Re], l[0] = ne((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] = te(p);
250
+ r[u] = a[u], l[u] = ne(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] = te(p);
262
+ u in b ? (l[u] = b[u], o[u] = w[u], i && (i[u] = k[u], i[u](u))) : l[u] = ne(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] = re(u);
269
+ const [g, v] = le(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] = te((p) => (o[0] = p, n.fallback())), i = 1), l;
282
+ return i !== 0 && (Ce(o), o = [], r = [], l = [], i = 0, s = []), n.fallback && (r = [Re], l[0] = ne((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] = te(u));
284
+ a < r.length && r[a] !== c[a] ? s[a](() => c[a]) : a >= r.length && (l[a] = ne(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] = re(c[a]);
291
+ const [d, g] = le(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 Q(e) {
375
+ function G(e) {
376
376
  const t = "fallback" in e && {
377
377
  fallback: () => e.fallback
378
378
  };
@@ -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 ce(e) {
423
+ function ue(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), {
@@ -482,10 +482,10 @@ function mn(e, t, n) {
482
482
  }
483
483
  }
484
484
  }
485
- const Ge = "_$DX_DELEGATE";
485
+ const Ye = "_$DX_DELEGATE";
486
486
  function $n(e, t, n, r = {}) {
487
487
  let l;
488
- return te((o) => {
488
+ return ne((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 = "";
@@ -498,7 +498,7 @@ function y(e, t, n) {
498
498
  return n && (l = l.firstChild), l;
499
499
  }
500
500
  function Pe(e, t = window.document) {
501
- const n = t[Ge] || (t[Ge] = /* @__PURE__ */ new Set());
501
+ const n = t[Ye] || (t[Ye] = /* @__PURE__ */ new Set());
502
502
  for (let r = 0, l = e.length; r < l; r++) {
503
503
  const o = e[r];
504
504
  n.has(o) || (n.add(o), t.addEventListener(o, Cn));
@@ -527,11 +527,11 @@ function vn(e, t, n = {}) {
527
527
  let o, s;
528
528
  for (o = 0, s = l.length; o < s; o++) {
529
529
  const i = l[o];
530
- !i || i === "undefined" || t[i] || (Qe(e, i, !1), delete n[i]);
530
+ !i || i === "undefined" || t[i] || (Ge(e, i, !1), delete n[i]);
531
531
  }
532
532
  for (o = 0, s = r.length; o < s; o++) {
533
533
  const i = r[o], a = !!t[i];
534
- !i || i === "undefined" || n[i] === a || !a || (Qe(e, i, !0), n[i] = a);
534
+ !i || i === "undefined" || n[i] === a || !a || (Ge(e, i, !0), n[i] = a);
535
535
  }
536
536
  return n;
537
537
  }
@@ -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 || S(() => l.children = le(e, t.children, l.children)), S(() => t.ref && t.ref(e)), S(() => wn(e, t, n, !0, l, !0)), l;
554
+ return r || _(() => l.children = oe(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 le(e, t, r, n);
559
- S((l) => le(e, t(), l, n), r);
558
+ return oe(e, t, r, n);
559
+ _((l) => oe(e, t(), l, n), r);
560
560
  }
561
561
  function wn(e, t, n, r, l = {}, o = !1) {
562
562
  t || (t = {});
@@ -564,26 +564,26 @@ function wn(e, t, n, r, l = {}, o = !1) {
564
564
  if (!(s in t)) {
565
565
  if (s === "children")
566
566
  continue;
567
- l[s] = Je(e, s, null, l[s], n, o);
567
+ l[s] = Qe(e, s, null, l[s], n, o);
568
568
  }
569
569
  for (const s in t) {
570
570
  if (s === "children") {
571
- r || le(e, t.children);
571
+ r || oe(e, t.children);
572
572
  continue;
573
573
  }
574
574
  const i = t[s];
575
- l[s] = Je(e, s, i, l[s], n, o);
575
+ l[s] = Qe(e, s, i, l[s], n, o);
576
576
  }
577
577
  }
578
578
  function xn(e) {
579
579
  return e.toLowerCase().replace(/-([a-z])/g, (t, n) => n.toUpperCase());
580
580
  }
581
- function Qe(e, t, n) {
581
+ function Ge(e, t, n) {
582
582
  const r = t.trim().split(/\s+/);
583
583
  for (let l = 0, o = r.length; l < o; l++)
584
584
  e.classList.toggle(r[l], n);
585
585
  }
586
- function Je(e, t, n, r, l, o) {
586
+ function Qe(e, t, n, r, l, o) {
587
587
  let s, i, a;
588
588
  if (t === "style")
589
589
  return Pt(e, n, r);
@@ -641,7 +641,7 @@ function Cn(e) {
641
641
  n = n._$host || n.parentNode || n.host;
642
642
  }
643
643
  }
644
- function le(e, t, n, r, l) {
644
+ function oe(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)
@@ -661,16 +661,16 @@ function le(e, t, n, r, l) {
661
661
  n = q(e, n, r);
662
662
  } else {
663
663
  if (o === "function")
664
- return S(() => {
664
+ return _(() => {
665
665
  let i = t();
666
666
  for (; typeof i == "function"; )
667
667
  i = i();
668
- n = le(e, i, n, r);
668
+ n = oe(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 S(() => n = le(e, i, n, r, !0)), () => n;
673
+ return _(() => n = oe(e, i, n, r, !0)), () => n;
674
674
  if (U.context) {
675
675
  if (!i.length)
676
676
  return n;
@@ -682,7 +682,7 @@ function le(e, t, n, r, l) {
682
682
  if (n = q(e, n, r), s)
683
683
  return n;
684
684
  } else
685
- a ? n.length === 0 ? Ye(e, i, r) : mn(e, n, i) : (n && q(e), Ye(e, i));
685
+ a ? n.length === 0 ? Je(e, i, r) : mn(e, n, i) : (n && q(e), Je(e, i));
686
686
  n = i;
687
687
  } else if (t instanceof Node) {
688
688
  if (U.context && t.parentNode)
@@ -721,7 +721,7 @@ function ze(e, t, n, r) {
721
721
  }
722
722
  return l;
723
723
  }
724
- function Ye(e, t, n = null) {
724
+ 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
  }
@@ -891,13 +891,13 @@ let Dn = { data: "" }, Rn = (e) => typeof window == "object" ? ((e ? e.querySele
891
891
  }
892
892
  return r + l + (s ?? "");
893
893
  }, "");
894
- function _(e) {
894
+ function S(e) {
895
895
  let t = this || {}, n = e.call ? e(t.p) : e;
896
896
  return Bn(n.unshift ? n.raw ? Hn(n, [].slice.call(arguments, 1), t.p) : n.reduce((r, l) => Object.assign(r, l && l.call ? l(t.p) : l), {}) : n, Rn(t.target), t.g, t.o, t.k);
897
897
  }
898
- _.bind({ g: 1 });
899
- _.bind({ k: 1 });
900
- const Vn = /* @__PURE__ */ y("<div></div>"), Un = _`
898
+ S.bind({ g: 1 });
899
+ S.bind({ k: 1 });
900
+ const Vn = /* @__PURE__ */ y("<div></div>"), Un = S`
901
901
  &&& {
902
902
  position: relative;
903
903
  color: currentColor;
@@ -913,7 +913,7 @@ const Vn = /* @__PURE__ */ y("<div></div>"), Un = _`
913
913
  const t = In(e.name);
914
914
  return (() => {
915
915
  const n = Vn.cloneNode(!0);
916
- return n.innerHTML = t, S((r) => {
916
+ return n.innerHTML = t, _((r) => {
917
917
  const l = `icon ${e.class || ""} ${Un}`, o = {
918
918
  color: e.color,
919
919
  "--icon-size": e.size && Mn(e.size)
@@ -941,25 +941,25 @@ function Lt(e, t) {
941
941
  }
942
942
  return n;
943
943
  }
944
- function oe(e) {
944
+ function ie(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 ie(e, t = /* @__PURE__ */ new Set()) {
948
+ function se(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 (!oe(e) || t.has(e))
952
+ if (!ie(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 = ie(l, t)) !== l && (e[s] = r);
957
+ l = e[s], (r = se(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 = ie(l, t)) !== l && (e[o] = r));
962
+ o = s[a], !i[o].get && (l = e[o], (r = se(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] = re(e, {
989
+ const [t, n] = le(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 oe(o) ? Lt(o) : o;
1011
+ return ie(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 se(e, t, n, r = !1) {
1025
+ function ae(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
- se(e, l, t[l]);
1037
+ ae(e, l, t[l]);
1038
1038
  }
1039
1039
  }
1040
- function Gn(e, t) {
1041
- if (typeof t == "function" && (t = t(e)), t = ie(t), Array.isArray(t)) {
1040
+ function Yn(e, t) {
1041
+ if (typeof t == "function" && (t = t(e)), t = se(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 && se(e, n, l);
1047
+ e[n] !== l && ae(e, n, l);
1048
1048
  }
1049
- se(e, "length", r);
1049
+ ae(e, "length", r);
1050
1050
  } else
1051
1051
  It(e, t);
1052
1052
  }
1053
- function ue(e, t, n = []) {
1053
+ function de(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
- ue(e, [r[a]].concat(t), n);
1060
+ de(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) && ue(e, [a].concat(t), n);
1064
+ r(e[a], a) && de(e, [a].concat(t), n);
1065
1065
  return;
1066
1066
  } else if (i && s === "object") {
1067
1067
  const {
@@ -1070,22 +1070,22 @@ function ue(e, t, n = []) {
1070
1070
  by: u = 1
1071
1071
  } = r;
1072
1072
  for (let p = a; p <= c; p += u)
1073
- ue(e, [p].concat(t), n);
1073
+ de(e, [p].concat(t), n);
1074
1074
  return;
1075
1075
  } else if (t.length > 1) {
1076
- ue(e[r], t, [r].concat(n));
1076
+ de(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 = ie(o), r === void 0 || oe(l) && oe(o) && !Array.isArray(o) ? It(l, o) : se(e, r, o));
1082
+ typeof o == "function" && (o = o(l, n), o === l) || r === void 0 && o == null || (o = se(o), r === void 0 || ie(l) && ie(o) && !Array.isArray(o) ? It(l, o) : ae(e, r, o));
1083
1083
  }
1084
1084
  function Mt(...[e, t]) {
1085
- const n = ie(e || {}), r = Array.isArray(n), l = Lt(n);
1085
+ const n = se(e || {}), r = Array.isArray(n), l = Lt(n);
1086
1086
  function o(...s) {
1087
- Yt(() => {
1088
- r && s.length === 1 ? Gn(n, s[0]) : ue(n, s);
1087
+ Jt(() => {
1088
+ r && s.length === 1 ? Yn(n, s[0]) : de(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 oe(n) ? ke.get(n) || (ke.set(n, r = new Proxy(n, Dt)), r) : n;
1099
+ return ie(n) ? ke.get(n) || (ke.set(n, r = new Proxy(n, Dt)), r) : n;
1100
1100
  },
1101
1101
  set(e, t, n) {
1102
- return se(e, t, ie(n)), !0;
1102
+ return ae(e, t, se(n)), !0;
1103
1103
  },
1104
1104
  deleteProperty(e, t) {
1105
- return se(e, t, void 0, !0), !0;
1105
+ return ae(e, t, void 0, !0), !0;
1106
1106
  }
1107
1107
  };
1108
- function Qn(e) {
1108
+ function Gn(e) {
1109
1109
  return (t) => {
1110
- if (oe(t)) {
1110
+ if (ie(t)) {
1111
1111
  let n;
1112
1112
  (n = ke.get(t)) || ke.set(t, n = new Proxy(t, Dt)), e(n);
1113
1113
  }
@@ -1126,14 +1126,14 @@ const [I, Ae] = Mt({
1126
1126
  white-space: nowrap;
1127
1127
  word-wrap: norma;
1128
1128
  max-width: 100%;
1129
- `, Jn = {
1129
+ `, Qn = {
1130
1130
  left: "flex-start",
1131
1131
  center: "center",
1132
1132
  right: "flex-end",
1133
1133
  spaceBetween: "space-between",
1134
1134
  spaceAround: "space-around",
1135
1135
  spaceEvenly: "space-evenly"
1136
- }, Yn = {
1136
+ }, Jn = {
1137
1137
  top: "flex-start",
1138
1138
  bottom: "flex-end",
1139
1139
  center: "center",
@@ -1146,8 +1146,8 @@ const [I, Ae] = Mt({
1146
1146
  display: flex;
1147
1147
  column-gap: ${n}px;
1148
1148
  flex-direction: row;
1149
- justify-content: ${Jn[e]};
1150
- align-items: ${Yn[t]};
1149
+ justify-content: ${Qn[e]};
1150
+ align-items: ${Jn[t]};
1151
1151
  `, qn = {
1152
1152
  top: "flex-start",
1153
1153
  center: "center",
@@ -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] = re(e);
1249
+ const [t, n] = le(e);
1250
1250
  return {
1251
1251
  get value() {
1252
1252
  return t();
@@ -1265,7 +1265,7 @@ function ge(e) {
1265
1265
  }
1266
1266
  };
1267
1267
  }
1268
- const or = /* @__PURE__ */ y('<div class="tag"></div>'), tt = /* @__PURE__ */ y("<span></span>"), ir = /* @__PURE__ */ y('<div><div class="call"></div></div>'), sr = _`
1268
+ const or = /* @__PURE__ */ y('<div class="tag"></div>'), tt = /* @__PURE__ */ y("<span></span>"), ir = /* @__PURE__ */ y('<div><div class="call"></div></div>'), sr = S`
1269
1269
  &&& {
1270
1270
  font-size: 14px;
1271
1271
  ${L()};
@@ -1357,7 +1357,7 @@ const or = /* @__PURE__ */ y('<div class="tag"></div>'), tt = /* @__PURE__ */ y(
1357
1357
  get children() {
1358
1358
  return [(() => {
1359
1359
  const i = or.cloneNode(!0);
1360
- return f(i, () => l.icon), S((a) => {
1360
+ return f(i, () => l.icon), _((a) => {
1361
1361
  const c = `${t().type}${t().subType ? ` (${t().subType})` : ""}`, u = l.color;
1362
1362
  return c !== a._v$ && j(i, "title", a._v$ = c), u !== a._v$2 && i.style.setProperty("color", a._v$2 = u), a;
1363
1363
  }, {
@@ -1366,7 +1366,7 @@ const or = /* @__PURE__ */ y('<div class="tag"></div>'), tt = /* @__PURE__ */ y(
1366
1366
  }), i;
1367
1367
  })(), (() => {
1368
1368
  const i = tt.cloneNode(!0);
1369
- return f(i, () => t().name), S(() => j(i, "title", t().name)), i;
1369
+ return f(i, () => t().name), _(() => j(i, "title", t().name)), i;
1370
1370
  })()];
1371
1371
  }
1372
1372
  }), null), f(s, (() => {
@@ -1392,7 +1392,7 @@ const or = /* @__PURE__ */ y('<div class="tag"></div>'), tt = /* @__PURE__ */ y(
1392
1392
  return r.value;
1393
1393
  },
1394
1394
  get children() {
1395
- return h(Q, {
1395
+ return h(G, {
1396
1396
  get each() {
1397
1397
  return t().subitemsWithAlias;
1398
1398
  },
@@ -1416,7 +1416,7 @@ const or = /* @__PURE__ */ y('<div class="tag"></div>'), tt = /* @__PURE__ */ y(
1416
1416
  })
1417
1417
  });
1418
1418
  }
1419
- }), null), S(() => s.classList.toggle("selected", n() === t().id)), o;
1419
+ }), null), _(() => s.classList.toggle("selected", n() === t().id)), o;
1420
1420
  })();
1421
1421
  };
1422
1422
  function cr(e, t) {
@@ -1476,27 +1476,27 @@ function hr(e, t) {
1476
1476
  r[t.keys[n]] = l[++n] || null;
1477
1477
  return r;
1478
1478
  }
1479
- function ne(e) {
1479
+ function re(e) {
1480
1480
  var t, n, r;
1481
1481
  if (Array.isArray(e)) {
1482
1482
  for (n = Array(t = e.length); t--; )
1483
- n[t] = (r = e[t]) && typeof r == "object" ? ne(r) : r;
1483
+ n[t] = (r = e[t]) && typeof r == "object" ? re(r) : r;
1484
1484
  return n;
1485
1485
  }
1486
1486
  if (Object.prototype.toString.call(e) === "[object Object]") {
1487
1487
  n = {};
1488
1488
  for (t in e)
1489
1489
  t === "__proto__" ? Object.defineProperty(n, t, {
1490
- value: ne(e[t]),
1490
+ value: re(e[t]),
1491
1491
  configurable: !0,
1492
1492
  enumerable: !0,
1493
1493
  writable: !0
1494
- }) : n[t] = (r = e[t]) && typeof r == "object" ? ne(r) : r;
1494
+ }) : n[t] = (r = e[t]) && typeof r == "object" ? re(r) : r;
1495
1495
  return n;
1496
1496
  }
1497
1497
  return e;
1498
1498
  }
1499
- const [J, gr] = Mt({
1499
+ const [Q, gr] = Mt({
1500
1500
  calls: {}
1501
1501
  }), Le = ge("");
1502
1502
  let He = {
@@ -1538,7 +1538,7 @@ function $r(e) {
1538
1538
  }) => {
1539
1539
  const i = e.duration || Date.now() - t;
1540
1540
  gr(
1541
- Qn((a) => {
1541
+ Gn((a) => {
1542
1542
  const c = rt(
1543
1543
  () => new URL(e.path, "http://localhost")
1544
1544
  );
@@ -1579,10 +1579,10 @@ function $r(e) {
1579
1579
  duration: i,
1580
1580
  pathParams: p,
1581
1581
  isError: n,
1582
- metadata: ne(o),
1583
- response: ne(l),
1582
+ metadata: re(o),
1583
+ response: re(l),
1584
1584
  path: e.path.replace(/^\//, ""),
1585
- payload: ne(e.payload),
1585
+ payload: re(e.payload),
1586
1586
  searchParams: u,
1587
1587
  startTime: t,
1588
1588
  type: e.type,
@@ -1651,7 +1651,7 @@ function it({
1651
1651
  lowerFirst: !0
1652
1652
  }).map(({ item: l }) => l);
1653
1653
  }
1654
- const Cr = /* @__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>'), _r = _`
1654
+ const Cr = /* @__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>'), _r = S`
1655
1655
  &&& {
1656
1656
  ${L()};
1657
1657
  border-right: 1px solid ${$.white.alpha(0.1)};
@@ -1665,14 +1665,14 @@ const Cr = /* @__PURE__ */ y('<div><h1>API EXPLORER</h1><div><button>API</button
1665
1665
  padding-bottom: 12px;
1666
1666
  }
1667
1667
  }
1668
- `, Sr = _`
1668
+ `, Sr = S`
1669
1669
  &&& {
1670
1670
  ${L()};
1671
1671
  flex: 1 1;
1672
1672
  overflow-y: auto;
1673
1673
  padding-bottom: 16px;
1674
1674
  }
1675
- `, kr = _`
1675
+ `, kr = S`
1676
1676
  &&& {
1677
1677
  ${B({
1678
1678
  gap: 8
@@ -1702,7 +1702,7 @@ const Cr = /* @__PURE__ */ y('<div><h1>API EXPLORER</h1><div><button>API</button
1702
1702
  }
1703
1703
  }
1704
1704
  }
1705
- `, Ar = _`
1705
+ `, Ar = S`
1706
1706
  &&& {
1707
1707
  ${B({
1708
1708
  gap: 16
@@ -1727,7 +1727,7 @@ const Cr = /* @__PURE__ */ y('<div><h1>API EXPLORER</h1><div><button>API</button
1727
1727
  }
1728
1728
  `, V = ge("api"), Nr = () => {
1729
1729
  const e = ge(""), t = Rt(() => {
1730
- const [r = "", l = ""] = e.value.split(">"), o = Object.entries(J.calls), s = [];
1730
+ const [r = "", l = ""] = e.value.split(">"), o = Object.entries(Q.calls), s = [];
1731
1731
  for (const [a, c] of o.reverse()) {
1732
1732
  const u = /* @__PURE__ */ new Set();
1733
1733
  if (!(V.value === "api" && c.type !== "fetch" && c.type !== "mutation") && !(V.value === "ws" && c.type !== "ws")) {
@@ -1760,7 +1760,7 @@ const Cr = /* @__PURE__ */ y('<div><h1>API EXPLORER</h1><div><button>API</button
1760
1760
  name: "search"
1761
1761
  }), u), u.$$input = (d) => {
1762
1762
  e.value = d.currentTarget.value;
1763
- }, C(p, Sr), f(p, h(Q, {
1763
+ }, C(p, Sr), f(p, h(G, {
1764
1764
  get each() {
1765
1765
  return t();
1766
1766
  },
@@ -1773,14 +1773,14 @@ const Cr = /* @__PURE__ */ y('<div><h1>API EXPLORER</h1><div><button>API</button
1773
1773
  return n();
1774
1774
  }
1775
1775
  })
1776
- })), S((d) => {
1776
+ })), _((d) => {
1777
1777
  const g = V.value === "api", v = V.value === "ws", b = V.value === "all";
1778
1778
  return g !== d._v$ && s.classList.toggle("active", d._v$ = g), v !== d._v$2 && i.classList.toggle("active", d._v$2 = v), b !== d._v$3 && a.classList.toggle("active", d._v$3 = b), d;
1779
1779
  }, {
1780
1780
  _v$: void 0,
1781
1781
  _v$2: void 0,
1782
1782
  _v$3: void 0
1783
- }), S(() => u.value = e.value), r;
1783
+ }), _(() => u.value = e.value), r;
1784
1784
  })();
1785
1785
  };
1786
1786
  Pe(["click", "input"]);
@@ -1799,7 +1799,7 @@ function Ft(...e) {
1799
1799
  }
1800
1800
  return t.join(" ");
1801
1801
  }
1802
- const Tr = /* @__PURE__ */ y('<div><div class="content"></div></div>'), Pr = /* @__PURE__ */ y("<h1></h1>"), Er = _`
1802
+ const Tr = /* @__PURE__ */ y('<div><div class="content"></div></div>'), Pr = /* @__PURE__ */ y("<h1></h1>"), Er = S`
1803
1803
  &&& {
1804
1804
  ${L()};
1805
1805
 
@@ -1841,8 +1841,8 @@ const Tr = /* @__PURE__ */ y('<div><div class="content"></div></div>'), Pr = /*
1841
1841
  const l = Pr.cloneNode(!0);
1842
1842
  return f(l, () => e.title), l;
1843
1843
  })();
1844
- })(), n), f(n, () => e.children), S(() => C(t, Ft(Er, e.class))), t;
1845
- })(), Lr = /* @__PURE__ */ y("<div></div>"), Or = /* @__PURE__ */ y('<div class="row"><div class="name"></div><div class="value"></div></div>'), jr = _`
1844
+ })(), n), f(n, () => e.children), _(() => C(t, Ft(Er, e.class))), t;
1845
+ })(), Lr = /* @__PURE__ */ y("<div></div>"), Or = /* @__PURE__ */ y('<div class="row"><div class="name"></div><div class="value"></div></div>'), jr = S`
1846
1846
  &&& {
1847
1847
  display: grid;
1848
1848
  grid-template-columns: auto 1fr;
@@ -1905,7 +1905,7 @@ function Bt(e, t) {
1905
1905
  })
1906
1906
  ).get(t)).format(e);
1907
1907
  }
1908
- const Rr = /* @__PURE__ */ y('<div class="key"><span></span></div>'), zr = /* @__PURE__ */ y('<div class="collapsed"></div>'), Fr = /* @__PURE__ */ y('<div class="delimiter">[]</div>'), Br = /* @__PURE__ */ y('<div class="delimiter">{}</div>'), at = /* @__PURE__ */ y('<div class="delimiter"></div>'), ct = /* @__PURE__ */ y('<div class="childs"></div>'), Hr = /* @__PURE__ */ y('<div class="delimiter end">]</div>'), ut = /* @__PURE__ */ y('<div class="child"></div>'), Vr = /* @__PURE__ */ y('<div class="delimiter end">}</div>'), Ur = /* @__PURE__ */ y('<div class="value" title="Shift + Click to copy value"></div>'), dt = /* @__PURE__ */ y('<span class="string-quotes">"</span>'), Zr = /* @__PURE__ */ y("<div></div>"), Wr = _`
1908
+ const Rr = /* @__PURE__ */ y('<div class="key"><span></span></div>'), zr = /* @__PURE__ */ y('<div class="collapsed"></div>'), Fr = /* @__PURE__ */ y('<div class="delimiter">[]</div>'), Br = /* @__PURE__ */ y('<div class="delimiter">{}</div>'), at = /* @__PURE__ */ y('<div class="delimiter"></div>'), ct = /* @__PURE__ */ y('<div class="childs"></div>'), Hr = /* @__PURE__ */ y('<div class="delimiter end">]</div>'), ut = /* @__PURE__ */ y('<div class="child"></div>'), Vr = /* @__PURE__ */ y('<div class="delimiter end">}</div>'), Ur = /* @__PURE__ */ y('<div class="value" title="Shift + Click to copy value"></div>'), dt = /* @__PURE__ */ y('<span class="string-quotes">"</span>'), Zr = /* @__PURE__ */ y("<div></div>"), Wr = S`
1909
1909
  &&& {
1910
1910
  font-family: ${R.decorative};
1911
1911
  font-size: 13px;
@@ -2018,7 +2018,7 @@ const Rr = /* @__PURE__ */ y('<div class="key"><span></span></div>'), zr = /* @_
2018
2018
  }
2019
2019
  }
2020
2020
  `, ee = 14, Ve = (e) => {
2021
- let [t, n] = re(!(e.indent > 0 && e.compact)), [r, l] = re(!e.compact);
2021
+ let [t, n] = le(!(e.indent > 0 && e.compact)), [r, l] = le(!e.compact);
2022
2022
  return m(() => {
2023
2023
  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
2024
  onClick: () => {
@@ -2041,7 +2041,7 @@ const Rr = /* @__PURE__ */ y('<div class="key"><span></span></div>'), zr = /* @_
2041
2041
  const p = Rr.cloneNode(!0), d = p.firstChild;
2042
2042
  return p.$$click = (g) => {
2043
2043
  g.shiftKey && ye(o);
2044
- }, f(p, s || i ? u : null, d), f(d, () => e.key || e.index), S((g) => {
2044
+ }, f(p, s || i ? u : null, d), f(d, () => e.key || e.index), _((g) => {
2045
2045
  const v = `${e.key ? `${e.key}
2046
2046
  ` : ""}Shift + Click to copy value`, b = e.index !== void 0;
2047
2047
  return v !== g._v$ && j(p, "title", g._v$ = v), b !== g._v$2 && p.classList.toggle("index", g._v$2 = b), g;
@@ -2161,7 +2161,7 @@ let Kr = 0;
2161
2161
  function Xr() {
2162
2162
  return Kr++;
2163
2163
  }
2164
- 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>'), Yr = /* @__PURE__ */ y("<option></option>"), qr = _`
2164
+ const Yr = /* @__PURE__ */ y("<label></label>"), Gr = /* @__PURE__ */ y('<div><div class="inputContainer"><select></select></div></div>'), Qr = /* @__PURE__ */ y('<option value="">-- select an option --</option>'), Jr = /* @__PURE__ */ y("<option></option>"), qr = S`
2165
2165
  &&& {
2166
2166
  ${L({
2167
2167
  align: "left"
@@ -2219,29 +2219,29 @@ const Gr = /* @__PURE__ */ y("<label></label>"), Qr = /* @__PURE__ */ y('<div><d
2219
2219
  `, el = (e) => {
2220
2220
  const t = `input${Xr()}`;
2221
2221
  return (() => {
2222
- const n = Qr.cloneNode(!0), r = n.firstChild, l = r.firstChild;
2222
+ const n = Gr.cloneNode(!0), r = n.firstChild, l = r.firstChild;
2223
2223
  return f(n, h(fe, {
2224
2224
  get when() {
2225
2225
  return e.label;
2226
2226
  },
2227
2227
  get children() {
2228
- const o = Gr.cloneNode(!0);
2228
+ const o = Yr.cloneNode(!0);
2229
2229
  return j(o, "for", t), f(o, () => e.label), o;
2230
2230
  }
2231
2231
  }), r), l.addEventListener("change", (o) => {
2232
2232
  o.currentTarget.value && e.onChange(o.currentTarget.value);
2233
2233
  }), j(l, "id", t), f(l, (() => {
2234
2234
  const o = m(() => !e.value);
2235
- return () => o() && Jr.cloneNode(!0);
2236
- })(), null), f(l, h(Q, {
2235
+ return () => o() && Qr.cloneNode(!0);
2236
+ })(), null), f(l, h(G, {
2237
2237
  get each() {
2238
2238
  return e.options;
2239
2239
  },
2240
2240
  children: (o) => (() => {
2241
- const s = Yr.cloneNode(!0);
2242
- return f(s, () => o.label), S(() => s.value = o.value), s;
2241
+ const s = Jr.cloneNode(!0);
2242
+ return f(s, () => o.label), _(() => s.value = o.value), s;
2243
2243
  })()
2244
- }), null), S(() => C(n, Ft(qr, e.class))), S(() => l.value = e.value ?? ""), n;
2244
+ }), null), _(() => C(n, Ft(qr, e.class))), _(() => l.value = e.value ?? ""), n;
2245
2245
  })();
2246
2246
  };
2247
2247
  function Ht(e) {
@@ -2257,7 +2257,7 @@ function ft(e, t) {
2257
2257
  function tl(e, t) {
2258
2258
  return e.length > t ? `${e.slice(0, t)}...` : e;
2259
2259
  }
2260
- const nl = /* @__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>'), rl = _`
2260
+ const nl = /* @__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>'), rl = S`
2261
2261
  &&& {
2262
2262
  ${L({
2263
2263
  gap: 14
@@ -2276,7 +2276,7 @@ const nl = /* @__PURE__ */ y('<div class="changes-count"><span class="additions"
2276
2276
  }
2277
2277
  }
2278
2278
  }
2279
- `, gt = _`
2279
+ `, gt = S`
2280
2280
  &&& {
2281
2281
  ${L({
2282
2282
  gap: 0
@@ -2320,12 +2320,12 @@ const nl = /* @__PURE__ */ y('<div class="changes-count"><span class="additions"
2320
2320
  const {
2321
2321
  selectedCall: a
2322
2322
  } = I;
2323
- return a ? J.calls[a] : J.calls[Le.value];
2323
+ return a ? Q.calls[a] : Q.calls[Le.value];
2324
2324
  }), t = m(() => I.selectedRequest ? e()?.requests.find((a) => a.id === I.selectedRequest) : e()?.requests.at(-1) || null), n = m(() => t()?.id), r = Rt(() => {
2325
2325
  const a = e();
2326
2326
  return a ? zt(a.requests).map((c) => ({
2327
2327
  value: c.id,
2328
- label: `${de(c.startTime).format("HH:mm:ss")} | ${tl(Ht(c), 50)}`
2328
+ label: `${te(c.startTime).format("HH:mm:ss")} | ${tl(Ht(c), 50)}`
2329
2329
  })).filter((c) => c.value !== n()) : [];
2330
2330
  }, "value"), l = ge(null), o = m(() => l.value ? e()?.requests.find((a) => a.id === l.value) : null), s = m(() => {
2331
2331
  if (!l.value || !n())
@@ -2365,7 +2365,7 @@ const nl = /* @__PURE__ */ y('<div class="changes-count"><span class="additions"
2365
2365
  },
2366
2366
  get children() {
2367
2367
  const c = Me.cloneNode(!0);
2368
- return C(c, gt), f(c, h(Q, {
2368
+ return C(c, gt), f(c, h(G, {
2369
2369
  get each() {
2370
2370
  return i();
2371
2371
  },
@@ -2374,7 +2374,7 @@ const nl = /* @__PURE__ */ y('<div class="changes-count"><span class="additions"
2374
2374
  },
2375
2375
  children: (u) => (() => {
2376
2376
  const p = ht.cloneNode(!0);
2377
- return f(p, () => u.value), S((d) => {
2377
+ return f(p, () => u.value), _((d) => {
2378
2378
  const g = !!u.added, v = !!u.removed;
2379
2379
  return g !== d._v$ && p.classList.toggle("added", d._v$ = g), v !== d._v$2 && p.classList.toggle("removed", d._v$2 = v), d;
2380
2380
  }, {
@@ -2388,7 +2388,7 @@ const nl = /* @__PURE__ */ y('<div class="changes-count"><span class="additions"
2388
2388
  title: "Response Diff",
2389
2389
  get children() {
2390
2390
  const c = Me.cloneNode(!0);
2391
- return C(c, gt), f(c, h(Q, {
2391
+ return C(c, gt), f(c, h(G, {
2392
2392
  get each() {
2393
2393
  return s();
2394
2394
  },
@@ -2397,7 +2397,7 @@ const nl = /* @__PURE__ */ y('<div class="changes-count"><span class="additions"
2397
2397
  },
2398
2398
  children: (u) => (() => {
2399
2399
  const p = ht.cloneNode(!0);
2400
- return f(p, () => u.value), S((d) => {
2400
+ return f(p, () => u.value), _((d) => {
2401
2401
  const g = !!u.added, v = !!u.removed;
2402
2402
  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;
2403
2403
  }, {
@@ -2415,7 +2415,7 @@ const nl = /* @__PURE__ */ y('<div class="changes-count"><span class="additions"
2415
2415
  function mt(e) {
2416
2416
  return e ? e.payload || e.searchParams || e.pathParams : null;
2417
2417
  }
2418
- const $t = /* @__PURE__ */ y("<div></div>"), ol = /* @__PURE__ */ y('<h1><span class="type"></span><span class="separator">|</span></h1>'), il = /* @__PURE__ */ y('<div class="tags"></div>'), sl = /* @__PURE__ */ y('<div class="details"></div>'), al = /* @__PURE__ */ y("<span>|</span>"), cl = /* @__PURE__ */ y("<h2></h2>"), ul = /* @__PURE__ */ y('<div class="method"></div>'), dl = /* @__PURE__ */ y('<div class="code"></div>'), fl = /* @__PURE__ */ y('<div class="tag error">Has Error</div>'), pl = /* @__PURE__ */ y('<div class="tag"></div>'), hl = /* @__PURE__ */ y("<span> ms</span>"), gl = _`
2418
+ const $t = /* @__PURE__ */ y("<div></div>"), ol = /* @__PURE__ */ y('<h1><span class="type"></span><span class="separator">|</span></h1>'), il = /* @__PURE__ */ y('<div class="tags"></div>'), sl = /* @__PURE__ */ y('<div class="details"></div>'), al = /* @__PURE__ */ y("<span>|</span>"), cl = /* @__PURE__ */ y("<h2></h2>"), ul = /* @__PURE__ */ y('<div class="method"></div>'), dl = /* @__PURE__ */ y('<div class="code"></div>'), fl = /* @__PURE__ */ y('<div class="tag error">Has Error</div>'), pl = /* @__PURE__ */ y('<div class="tag"></div>'), hl = /* @__PURE__ */ y("<span> ms</span>"), gl = /* @__PURE__ */ y("<span></span>"), ml = S`
2419
2419
  &&& {
2420
2420
  ${L()};
2421
2421
  padding-left: 10px;
@@ -2488,7 +2488,7 @@ const $t = /* @__PURE__ */ y("<div></div>"), ol = /* @__PURE__ */ y('<h1><span c
2488
2488
  padding-bottom: 20px;
2489
2489
  }
2490
2490
  }
2491
- `, ml = _`
2491
+ `, $l = S`
2492
2492
  &&& {
2493
2493
  ${B({
2494
2494
  gap: 20
@@ -2510,10 +2510,10 @@ const $t = /* @__PURE__ */ y("<div></div>"), ol = /* @__PURE__ */ y('<h1><span c
2510
2510
  }
2511
2511
  }
2512
2512
  }
2513
- `, $l = () => {
2513
+ `, yl = () => {
2514
2514
  const e = m(() => I.selectedCall), t = m(() => I.selectedRequest), n = m(() => I.selectedTab || "summary"), r = m(() => {
2515
2515
  let o;
2516
- e() ? o = J.calls[e()] : o = J.calls[Le.value];
2516
+ e() ? o = Q.calls[e()] : o = Q.calls[Le.value];
2517
2517
  const s = t() && o?.requests.find((i) => i.id === t()) || o?.requests.at(-1);
2518
2518
  return s && o ? {
2519
2519
  ...s,
@@ -2536,7 +2536,7 @@ const $t = /* @__PURE__ */ y("<div></div>"), ol = /* @__PURE__ */ y('<h1><span c
2536
2536
  }
2537
2537
  return (() => {
2538
2538
  const o = $t.cloneNode(!0);
2539
- return C(o, gl), f(o, h(fe, {
2539
+ return C(o, ml), f(o, h(fe, {
2540
2540
  get when() {
2541
2541
  return r();
2542
2542
  },
@@ -2565,12 +2565,12 @@ const $t = /* @__PURE__ */ y("<div></div>"), ol = /* @__PURE__ */ y('<h1><span c
2565
2565
  const a = m(() => !!s.code);
2566
2566
  return () => a() && (() => {
2567
2567
  const c = dl.cloneNode(!0);
2568
- return f(c, () => s.code), S(() => c.classList.toggle("error", s.code >= 400)), c;
2568
+ return f(c, () => s.code), _(() => c.classList.toggle("error", s.code >= 400)), c;
2569
2569
  })();
2570
2570
  })(), null), f(i, (() => {
2571
2571
  const a = m(() => !!s.isError);
2572
2572
  return () => a() && fl.cloneNode(!0);
2573
- })(), null), f(i, h(Q, {
2573
+ })(), null), f(i, h(G, {
2574
2574
  get each() {
2575
2575
  return s.tags;
2576
2576
  },
@@ -2581,7 +2581,7 @@ const $t = /* @__PURE__ */ y("<div></div>"), ol = /* @__PURE__ */ y('<h1><span c
2581
2581
  }), null), i;
2582
2582
  })(), (() => {
2583
2583
  const i = $t.cloneNode(!0);
2584
- return C(i, ml), f(i, () => l("summary", "Summary"), null), f(i, (() => {
2584
+ return C(i, $l), f(i, () => l("summary", "Summary"), null), f(i, (() => {
2585
2585
  const a = m(() => !!s.payload);
2586
2586
  return () => a() && l("payload", "Payload");
2587
2587
  })(), null), f(i, (() => {
@@ -2592,7 +2592,7 @@ const $t = /* @__PURE__ */ y("<div></div>"), ol = /* @__PURE__ */ y('<h1><span c
2592
2592
  const i = sl.cloneNode(!0);
2593
2593
  return f(i, h(cn, {
2594
2594
  get children() {
2595
- return [h(ce, {
2595
+ return [h(ue, {
2596
2596
  get when() {
2597
2597
  return n() === "summary";
2598
2598
  },
@@ -2636,11 +2636,14 @@ const $t = /* @__PURE__ */ y("<div></div>"), ol = /* @__PURE__ */ y('<h1><span c
2636
2636
  name: "Duration",
2637
2637
  value: (() => {
2638
2638
  const a = hl.cloneNode(!0), c = a.firstChild;
2639
- return f(a, () => Bt(s.duration, 0), c), S(() => a.style.setProperty("color", s.duration < 500 ? $.success.var : s.duration > 1e3 ? $.error.var : void 0)), a;
2639
+ 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;
2640
2640
  })()
2641
2641
  }, {
2642
2642
  name: "Start Time",
2643
- value: `${de(s.startTime).format("HH:mm:ss")} (${de(s.startTime).fromNow()})`
2643
+ value: (() => {
2644
+ const a = gl.cloneNode(!0);
2645
+ return f(a, () => `${te(s.startTime).format("HH:mm:ss")} (${te(s.startTime).fromNow()})`), _(() => j(a, "title", te(s.startTime).format("YYYY-MM-DD HH:mm:ss.SSS"))), a;
2646
+ })()
2644
2647
  }];
2645
2648
  }
2646
2649
  });
@@ -2663,7 +2666,7 @@ const $t = /* @__PURE__ */ y("<div></div>"), ol = /* @__PURE__ */ y('<h1><span c
2663
2666
  }
2664
2667
  })];
2665
2668
  }
2666
- }), h(ce, {
2669
+ }), h(ue, {
2667
2670
  get when() {
2668
2671
  return n() === "payload";
2669
2672
  },
@@ -2679,7 +2682,7 @@ const $t = /* @__PURE__ */ y("<div></div>"), ol = /* @__PURE__ */ y('<h1><span c
2679
2682
  }
2680
2683
  });
2681
2684
  }
2682
- }), h(ce, {
2685
+ }), h(ue, {
2683
2686
  get when() {
2684
2687
  return n() === "response";
2685
2688
  },
@@ -2695,7 +2698,7 @@ const $t = /* @__PURE__ */ y("<div></div>"), ol = /* @__PURE__ */ y('<h1><span c
2695
2698
  }
2696
2699
  });
2697
2700
  }
2698
- }), h(ce, {
2701
+ }), h(ue, {
2699
2702
  get when() {
2700
2703
  return n() === "urlParams";
2701
2704
  },
@@ -2711,7 +2714,7 @@ const $t = /* @__PURE__ */ y("<div></div>"), ol = /* @__PURE__ */ y('<h1><span c
2711
2714
  }
2712
2715
  });
2713
2716
  }
2714
- }), h(ce, {
2717
+ }), h(ue, {
2715
2718
  get when() {
2716
2719
  return n() === "diff";
2717
2720
  },
@@ -2724,7 +2727,7 @@ const $t = /* @__PURE__ */ y("<div></div>"), ol = /* @__PURE__ */ y('<h1><span c
2724
2727
  })()]
2725
2728
  })), o;
2726
2729
  })();
2727
- }, yl = /* @__PURE__ */ y("<div><h1>timeline</h1><div></div></div>"), vl = /* @__PURE__ */ y("<div>no requests found</div>"), bl = /* @__PURE__ */ y('<span class="start-time"></span>'), wl = /* @__PURE__ */ y("<div></div>"), xl = /* @__PURE__ */ y('<span class="separator">|</span>'), Cl = /* @__PURE__ */ y('<span class="payload"></span>'), _l = _`
2730
+ }, vl = /* @__PURE__ */ y("<div><h1>timeline</h1><div></div></div>"), bl = /* @__PURE__ */ y("<div>no requests found</div>"), wl = /* @__PURE__ */ y('<span class="start-time"></span>'), xl = /* @__PURE__ */ y("<div></div>"), Cl = /* @__PURE__ */ y('<span class="separator">|</span>'), _l = /* @__PURE__ */ y('<span class="payload"></span>'), Sl = S`
2728
2731
  &&& {
2729
2732
  ${L()};
2730
2733
  border-right: 1px solid ${$.white.alpha(0.1)};
@@ -2738,13 +2741,13 @@ const $t = /* @__PURE__ */ y("<div></div>"), ol = /* @__PURE__ */ y('<h1><span c
2738
2741
  padding-bottom: 16px;
2739
2742
  }
2740
2743
  }
2741
- `, Sl = _`
2744
+ `, kl = S`
2742
2745
  &&& {
2743
2746
  ${L()};
2744
2747
  flex: 1 1;
2745
2748
  overflow-y: auto;
2746
2749
  }
2747
- `, kl = _`
2750
+ `, Al = S`
2748
2751
  &&& {
2749
2752
  font-size: 13px;
2750
2753
  ${L()};
@@ -2780,38 +2783,38 @@ const $t = /* @__PURE__ */ y("<div></div>"), ol = /* @__PURE__ */ y('<h1><span c
2780
2783
  }
2781
2784
  }
2782
2785
  }
2783
- `, Al = _`
2786
+ `, Nl = S`
2784
2787
  &&& {
2785
2788
  opacity: 0.4;
2786
2789
  font-size: 14px;
2787
2790
  padding: 12px;
2788
2791
  padding-top: 0;
2789
2792
  }
2790
- `, Nl = () => {
2793
+ `, Tl = () => {
2791
2794
  const e = m(() => {
2792
2795
  const l = I.selectedCall;
2793
- return l ? l ? J.calls[l] : null : J.calls[Le.value] || null;
2796
+ return l ? l ? Q.calls[l] : null : Q.calls[Le.value] || null;
2794
2797
  }), t = m(() => {
2795
2798
  const l = zt(e()?.requests);
2796
2799
  return l.length === 0 ? null : l;
2797
2800
  }), n = m(() => I.selectedSubitem ? t()?.filter((l) => l.alias === I.selectedSubitem) : t()), r = m(() => I.selectedRequest || n()?.[0]?.id);
2798
2801
  return (() => {
2799
- const l = yl.cloneNode(!0), o = l.firstChild, s = o.nextSibling;
2800
- return C(l, _l), C(s, Sl), f(s, h(Q, {
2802
+ const l = vl.cloneNode(!0), o = l.firstChild, s = o.nextSibling;
2803
+ return C(l, Sl), C(s, kl), f(s, h(G, {
2801
2804
  get each() {
2802
2805
  return n();
2803
2806
  },
2804
2807
  get fallback() {
2805
2808
  return (() => {
2806
- const i = vl.cloneNode(!0);
2807
- return C(i, Al), i;
2809
+ const i = bl.cloneNode(!0);
2810
+ return C(i, Nl), i;
2808
2811
  })();
2809
2812
  },
2810
2813
  children: (i) => {
2811
- const a = de(i.startTime), c = a.format("HH:mm:ss"), u = a.fromNow(), p = Ht(i);
2814
+ const a = te(i.startTime), c = a.format("HH:mm:ss"), u = a.fromNow(), p = Ht(i);
2812
2815
  return (() => {
2813
- const d = wl.cloneNode(!0);
2814
- return C(d, kl), f(d, h(F, {
2816
+ const d = xl.cloneNode(!0);
2817
+ return C(d, Al), f(d, h(F, {
2815
2818
  onClick: () => {
2816
2819
  Ae("selectedRequest", i.id);
2817
2820
  },
@@ -2822,27 +2825,27 @@ const $t = /* @__PURE__ */ y("<div></div>"), ol = /* @__PURE__ */ y('<h1><span c
2822
2825
  },
2823
2826
  get children() {
2824
2827
  return [(() => {
2825
- const g = bl.cloneNode(!0);
2828
+ const g = wl.cloneNode(!0);
2826
2829
  return j(g, "title", u), f(g, c), g;
2827
- })(), m(() => !!p && [xl.cloneNode(!0), (() => {
2828
- const g = Cl.cloneNode(!0);
2830
+ })(), m(() => !!p && [Cl.cloneNode(!0), (() => {
2831
+ const g = _l.cloneNode(!0);
2829
2832
  return j(g, "title", p), f(g, p), g;
2830
2833
  })()])];
2831
2834
  }
2832
- })), S(() => d.classList.toggle("error", !!i.isError)), d;
2835
+ })), _(() => d.classList.toggle("error", !!i.isError)), d;
2833
2836
  })();
2834
2837
  }
2835
2838
  })), l;
2836
2839
  })();
2837
- }, Tl = /* @__PURE__ */ y("<div></div>"), Pl = _`
2840
+ }, Pl = /* @__PURE__ */ y("<div></div>"), El = S`
2838
2841
  &&& {
2839
2842
  display: grid;
2840
2843
  grid-template-columns: 1fr 1fr 3fr;
2841
2844
  }
2842
- `, El = () => (() => {
2843
- const e = Tl.cloneNode(!0);
2844
- return C(e, Pl), f(e, h(Nr, {}), null), f(e, h(Nl, {}), null), f(e, h($l, {}), null), e;
2845
- })(), Ll = `
2845
+ `, Ll = () => (() => {
2846
+ const e = Pl.cloneNode(!0);
2847
+ return C(e, El), f(e, h(Nr, {}), null), f(e, h(Tl, {}), null), f(e, h(yl, {}), null), e;
2848
+ })(), Ol = `
2846
2849
  font-family: ${R.primary};
2847
2850
  color: ${$.textPrimary.var};
2848
2851
 
@@ -2893,11 +2896,11 @@ const $t = /* @__PURE__ */ y("<div></div>"), ol = /* @__PURE__ */ y('<h1><span c
2893
2896
  h3 {
2894
2897
  font-weight: normal;
2895
2898
  }
2896
- `, Ol = `
2899
+ `, jl = `
2897
2900
  display: flex;
2898
2901
  align-items: center;
2899
2902
  justify-content: center;
2900
- `, jl = `
2903
+ `, Il = `
2901
2904
  *,
2902
2905
  *::before,
2903
2906
  *::after {
@@ -2971,9 +2974,9 @@ button {
2971
2974
  cursor: pointer;
2972
2975
  -webkit-appearance: none;
2973
2976
  }
2974
- `, Il = /* @__PURE__ */ y("<div></div>"), Ml = /* @__PURE__ */ y('<div id="dev-tools-root-element"><nav></nav><main></main></div>'), Dl = _`
2975
- ${jl};
2976
- ${Ll};
2977
+ `, Ml = /* @__PURE__ */ y("<div></div>"), Dl = /* @__PURE__ */ y('<div id="dev-tools-root-element"><nav></nav><main></main></div>'), Rl = S`
2978
+ ${Il};
2979
+ ${Ol};
2977
2980
 
2978
2981
  position: fixed;
2979
2982
  inset: 32px;
@@ -2987,7 +2990,7 @@ button {
2987
2990
  border-right: 1px solid ${$.white.alpha(0.1)};
2988
2991
 
2989
2992
  button {
2990
- ${Ol};
2993
+ ${jl};
2991
2994
  width: 100%;
2992
2995
  aspect-ratio: 1 / 1;
2993
2996
  color: ${$.bgPrimary.var};
@@ -3006,28 +3009,28 @@ button {
3006
3009
  > main > * {
3007
3010
  ${We};
3008
3011
  }
3009
- `, Rl = _`
3012
+ `, zl = S`
3010
3013
  ${We};
3011
3014
  position: fixed;
3012
3015
  inset: 0;
3013
3016
  backdrop-filter: blur(5px);
3014
- `, zl = () => [(() => {
3015
- const e = Il.cloneNode(!0);
3016
- return _e(e, "click", Ut, !0), C(e, Rl), e;
3017
+ `, Fl = () => [(() => {
3018
+ const e = Ml.cloneNode(!0);
3019
+ return _e(e, "click", Ut, !0), C(e, zl), e;
3017
3020
  })(), (() => {
3018
- const e = Ml.cloneNode(!0), t = e.firstChild, n = t.nextSibling;
3019
- return C(e, Dl), f(t, h(F, {
3021
+ const e = Dl.cloneNode(!0), t = e.firstChild, n = t.nextSibling;
3022
+ return C(e, Rl), f(t, h(F, {
3020
3023
  title: "API Explorer",
3021
3024
  get children() {
3022
3025
  return h(Ee, {
3023
3026
  name: "network"
3024
3027
  });
3025
3028
  }
3026
- })), f(n, h(El, {})), e;
3029
+ })), f(n, h(Ll, {})), e;
3027
3030
  })()];
3028
3031
  Pe(["click"]);
3029
- const Fl = () => h(zl, {});
3030
- function Bl(e) {
3032
+ const Bl = () => h(Fl, {});
3033
+ function Hl(e) {
3031
3034
  let t = "";
3032
3035
  return e.forEach(({ family: n, weights: r, italics: l }) => {
3033
3036
  t += `${t ? "&" : ""}family=${n}:`, r[1] === ".." ? t += `wght@${r[0]}..${r[2]}` : (t += "ital,wght@", r.forEach((o, s) => {
@@ -3038,11 +3041,11 @@ function Bl(e) {
3038
3041
  }), `https://fonts.googleapis.com/css2?${t}&display=swap`;
3039
3042
  }
3040
3043
  let yt = !1;
3041
- function Hl() {
3044
+ function Vl() {
3042
3045
  if (yt)
3043
3046
  return;
3044
3047
  yt = !0;
3045
- const e = Bl([
3048
+ const e = Hl([
3046
3049
  {
3047
3050
  family: "Work+Sans",
3048
3051
  weights: [300, "..", 700]
@@ -3052,14 +3055,14 @@ function Hl() {
3052
3055
  }
3053
3056
  let Vt = () => {
3054
3057
  }, Ue = !1;
3055
- function Vl() {
3056
- if (de.extend(kn), Ue) {
3058
+ function Ul() {
3059
+ if (te.extend(kn), Ue) {
3057
3060
  Ut();
3058
3061
  return;
3059
3062
  }
3060
- Ue = !0, Hl(), navigator.platform.indexOf("Win") > -1 && document.body.classList.add("windows");
3063
+ Ue = !0, Vl(), navigator.platform.indexOf("Win") > -1 && document.body.classList.add("windows");
3061
3064
  const e = document.getElementById("dev-tools-root") || document.createElement("div");
3062
- e.id = "dev-tools-root", document.body.appendChild(e), Vt = $n(() => h(Fl, {}), e);
3065
+ e.id = "dev-tools-root", document.body.appendChild(e), Vt = $n(() => h(Bl, {}), e);
3063
3066
  }
3064
3067
  function Ut() {
3065
3068
  Ue = !1, Vt();
@@ -3068,10 +3071,10 @@ function Jl({
3068
3071
  callsProcessor: e,
3069
3072
  shortcut: t
3070
3073
  }) {
3071
- Gt(window, {
3074
+ Yt(window, {
3072
3075
  [t]: (n) => {
3073
3076
  const r = document.activeElement;
3074
- r instanceof HTMLElement && (r.isContentEditable || r.tagName === "INPUT" || r.tagName === "TEXTAREA") || (n.preventDefault(), Vl());
3077
+ r instanceof HTMLElement && (r.isContentEditable || r.tagName === "INPUT" || r.tagName === "TEXTAREA") || (n.preventDefault(), Ul());
3075
3078
  }
3076
3079
  }), mr({
3077
3080
  callsProcessor: e
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "app-devtools",
3
- "version": "0.25.0",
3
+ "version": "0.26.0",
4
4
  "description": "",
5
5
  "packageManager": "pnpm@6.29.1",
6
6
  "license": "MIT",