app-devtools 1.0.2 → 1.1.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 +879 -685
  2. package/package.json +1 -1
package/dist/main.js CHANGED
@@ -32,7 +32,7 @@ function h(e) {
32
32
  function g(e) {
33
33
  m.context = e;
34
34
  }
35
- var _ = (e, t) => e === t, v = Symbol("solid-proxy"), y = typeof Proxy == "function", b = Symbol("solid-track"), ee = { equals: _ }, te = null, ne = Te, x = 1, re = 2, ie = {
35
+ var _ = (e, t) => e === t, v = Symbol("solid-proxy"), y = typeof Proxy == "function", ee = Symbol("solid-track"), b = { equals: _ }, te = null, ne = Te, x = 1, re = 2, ie = {
36
36
  owned: null,
37
37
  cleanups: null,
38
38
  context: null,
@@ -53,7 +53,7 @@ function oe(e, t) {
53
53
  }
54
54
  }
55
55
  function D(e, t) {
56
- t = t ? Object.assign({}, ee, t) : ee;
56
+ t = t ? Object.assign({}, b, t) : b;
57
57
  let n = {
58
58
  value: e,
59
59
  observers: null,
@@ -71,7 +71,7 @@ function se(e, t, n) {
71
71
  i && (r.suspense = i), (!n || !n.render) && (r.user = !0), E ? E.push(r) : ye(r);
72
72
  }
73
73
  function k(e, t, n) {
74
- n = n ? Object.assign({}, ee, n) : ee;
74
+ n = n ? Object.assign({}, b, n) : b;
75
75
  let r = xe(e, t, !0, 0);
76
76
  return r.observers = null, r.observerSlots = null, r.comparator = n.equals || void 0, ye(r), _e.bind(r);
77
77
  }
@@ -340,7 +340,7 @@ function Le(e, t, n = {}) {
340
340
  let r = [], i = [], a = [], o = 0, s = t.length > 1 ? [] : null;
341
341
  return ue(() => Ie(a)), () => {
342
342
  let c = e() || [], l = c.length, u, d;
343
- return c[b], le(() => {
343
+ return c[ee], le(() => {
344
344
  let e, t, p, m, h, g, _, v, y;
345
345
  if (l === 0) o !== 0 && (Ie(a), a = [], r = [], i = [], o = 0, s &&= []), n.fallback && (r = [Fe], i[0] = oe((e) => (a[0] = e, n.fallback())), o = 1);
346
346
  else if (o === 0) {
@@ -369,7 +369,7 @@ function Re(e, t, n = {}) {
369
369
  let r = [], i = [], a = [], o = [], s = 0, c;
370
370
  return ue(() => Ie(a)), () => {
371
371
  let l = e() || [], u = l.length;
372
- return l[b], le(() => {
372
+ return l[ee], le(() => {
373
373
  if (u === 0) return s !== 0 && (Ie(a), a = [], r = [], i = [], s = 0, o = []), n.fallback && (r = [Fe], i[0] = oe((e) => (a[0] = e, n.fallback())), s = 1), i;
374
374
  for (r[0] === Fe && (a[0](), a = [], r = [], i = [], s = 0), c = 0; c < u; c++) c < r.length && r[c] !== l[c] ? o[c](() => l[c]) : c >= r.length && (i[c] = oe(d));
375
375
  for (; c < r.length; c++) a[c]();
@@ -1435,7 +1435,7 @@ var yn = {
1435
1435
  get(e, t, n) {
1436
1436
  if (t === sn) return e;
1437
1437
  if (t === v) return n;
1438
- if (t === b) return _n(e), n;
1438
+ if (t === ee) return _n(e), n;
1439
1439
  let r = mn(e, cn), i = r[t], a = i ? i() : e[t];
1440
1440
  if (t === cn || t === ln || t === "__proto__") return a;
1441
1441
  if (!i) {
@@ -1445,7 +1445,7 @@ var yn = {
1445
1445
  return fn(a) ? dn(a) : a;
1446
1446
  },
1447
1447
  has(e, t) {
1448
- return t === sn || t === v || t === b || t === cn || t === ln || t === "__proto__" ? !0 : (de() && hn(mn(e, ln), t)(), t in e);
1448
+ return t === sn || t === v || t === ee || t === cn || t === ln || t === "__proto__" ? !0 : (de() && hn(mn(e, ln), t)(), t in e);
1449
1449
  },
1450
1450
  set() {
1451
1451
  return !0;
@@ -1526,7 +1526,7 @@ var En = /* @__PURE__ */ new WeakMap(), Dn = {
1526
1526
  get(e, t) {
1527
1527
  if (t === sn) return e;
1528
1528
  let n = e[t];
1529
- if (t === v || t === b || t === cn || t === ln || t === "__proto__") return n;
1529
+ if (t === v || t === ee || t === cn || t === ln || t === "__proto__") return n;
1530
1530
  let r;
1531
1531
  return fn(n) ? En.get(n) || (En.set(n, r = new Proxy(n, Dn)), r) : n;
1532
1532
  },
@@ -2044,7 +2044,10 @@ function Tr(e) {
2044
2044
  function Er() {
2045
2045
  wr({ logs: [] });
2046
2046
  }
2047
- function Dr(e, t = (e) => e) {
2047
+ function Dr(e) {
2048
+ wr("logs", (t) => t.filter((t) => t.id !== e));
2049
+ }
2050
+ function Or(e, t = (e) => e) {
2048
2051
  return {
2049
2052
  time: e.time,
2050
2053
  timeISO: new Date(e.time).toISOString(),
@@ -2056,19 +2059,19 @@ function Dr(e, t = (e) => e) {
2056
2059
  }
2057
2060
  //#endregion
2058
2061
  //#region src/utils/copyToClipboard.ts
2059
- async function Or(e) {
2062
+ async function kr(e) {
2060
2063
  let t = typeof e == "string" ? e : typeof e == "object" && e ? JSON.stringify(e, null, 2) : String(e);
2061
2064
  await navigator.clipboard.writeText(t), dr("Copied to clipboard");
2062
2065
  }
2063
2066
  //#endregion
2064
2067
  //#region src/utils/downloadJson.ts
2065
- function kr(e, t) {
2068
+ function Ar(e, t) {
2066
2069
  let n = new Blob([JSON.stringify(e, null, 2)], { type: "application/json" }), r = URL.createObjectURL(n), i = document.createElement("a");
2067
2070
  i.href = r, i.download = `${t}-${(/* @__PURE__ */ new Date()).toISOString().replace(/[:.]/g, "-")}.json`, i.click(), URL.revokeObjectURL(r);
2068
2071
  }
2069
2072
  //#endregion
2070
2073
  //#region src/components/ExportHistoryDialog.tsx
2071
- var Ar = /*#__PURE__*/ P("<div><div><h1>export history"), jr = /*#__PURE__*/ P("<div class=empty>no requests to export"), Mr = /*#__PURE__*/ P("<h2>Calls to include"), Nr = /*#__PURE__*/ P("<div class=select-buttons>"), Pr = /*#__PURE__*/ P("<div class=calls-list>"), Fr = /*#__PURE__*/ P("<div class=options><label><input type=checkbox><span>Include responses</span></label><label><input type=checkbox><span>Privacy mode</span><span class=description>values are replaced by type descriptions"), Ir = /*#__PURE__*/ P("<div class=actions>"), Lr = /*#__PURE__*/ P("<label><input type=checkbox><span></span><span class=count> request"), Rr = /*#__PURE__*/ P("<label><input type=checkbox><span>Include logs</span><span class=count> logs"), zr = en(!1), Br = B`
2074
+ var jr = /*#__PURE__*/ P("<div><div><h1>export history"), Mr = /*#__PURE__*/ P("<div class=empty>no requests to export"), Nr = /*#__PURE__*/ P("<h2>Calls to include"), Pr = /*#__PURE__*/ P("<div class=select-buttons>"), Fr = /*#__PURE__*/ P("<div class=calls-list>"), Ir = /*#__PURE__*/ P("<div class=options><label><input type=checkbox><span>Include responses</span></label><label><input type=checkbox><span>Privacy mode</span><span class=description>values are replaced by type descriptions"), Lr = /*#__PURE__*/ P("<div class=actions>"), Rr = /*#__PURE__*/ P("<label><input type=checkbox><span></span><span class=count> request"), zr = /*#__PURE__*/ P("<label><input type=checkbox><span>Include logs</span><span class=count> logs"), Br = en(!1), Vr = B`
2072
2075
  &&& {
2073
2076
  position: absolute;
2074
2077
  inset: 0;
@@ -2076,7 +2079,7 @@ var Ar = /*#__PURE__*/ P("<div><div><h1>export history"), jr = /*#__PURE__*/ P("
2076
2079
  background: ${G.black.alpha(.5)};
2077
2080
  ${U({ justify: "center" })};
2078
2081
  }
2079
- `, Vr = B`
2082
+ `, Hr = B`
2080
2083
  &&& {
2081
2084
  ${W({ align: "stretch" })};
2082
2085
  width: 480px;
@@ -2182,7 +2185,7 @@ var Ar = /*#__PURE__*/ P("<div><div><h1>export history"), jr = /*#__PURE__*/ P("
2182
2185
  font-size: 13px;
2183
2186
  }
2184
2187
  }
2185
- `, Hr = () => {
2188
+ `, Ur = () => {
2186
2189
  let e = {};
2187
2190
  for (let t of Object.keys(H.calls)) e[t] = !0;
2188
2191
  let [t, n] = Tn(e), [r, i] = D(!0), [a, o] = D(!0), [s, c] = D(!1), l = k(() => Object.entries(H.calls));
@@ -2225,22 +2228,22 @@ var Ar = /*#__PURE__*/ P("<div><div><h1>export history"), jr = /*#__PURE__*/ P("
2225
2228
  ...r() ? { response: u(e.response) } : {}
2226
2229
  }))
2227
2230
  })),
2228
- ...a() && Cr.logs.length > 0 ? { logs: Cr.logs.map((e) => Dr(e, u)) } : {}
2231
+ ...a() && Cr.logs.length > 0 ? { logs: Cr.logs.map((e) => Or(e, u)) } : {}
2229
2232
  };
2230
2233
  }
2231
2234
  function f() {
2232
- kr(d(), "devtools-history"), dr("History downloaded"), zr.value = !1;
2235
+ Ar(d(), "devtools-history"), dr("History downloaded"), Br.value = !1;
2233
2236
  }
2234
2237
  return (() => {
2235
- var e = Ar(), u = e.firstChild;
2238
+ var e = jr(), u = e.firstChild;
2236
2239
  return u.firstChild, e.$$click = (e) => {
2237
- e.target === e.currentTarget && (zr.value = !1);
2238
- }, I(e, Br), I(u, Vr), R(u, (() => {
2240
+ e.target === e.currentTarget && (Br.value = !1);
2241
+ }, I(e, Vr), I(u, Hr), R(u, (() => {
2239
2242
  var e = N(() => l().length === 0);
2240
- return () => e() ? jr() : [
2241
- Mr(),
2243
+ return () => e() ? Mr() : [
2244
+ Nr(),
2242
2245
  (() => {
2243
- var e = Nr();
2246
+ var e = Pr();
2244
2247
  return R(e, A(z, {
2245
2248
  onClick: () => {
2246
2249
  for (let [e] of l()) n(e, !0);
@@ -2254,13 +2257,13 @@ var Ar = /*#__PURE__*/ P("<div><div><h1>export history"), jr = /*#__PURE__*/ P("
2254
2257
  }), null), e;
2255
2258
  })(),
2256
2259
  (() => {
2257
- var e = Pr();
2260
+ var e = Fr();
2258
2261
  return R(e, A(j, {
2259
2262
  get each() {
2260
2263
  return l();
2261
2264
  },
2262
2265
  children: ([e, r]) => (() => {
2263
- var i = Lr(), a = i.firstChild, o = a.nextSibling, s = o.nextSibling, c = s.firstChild;
2266
+ var i = Rr(), a = i.firstChild, o = a.nextSibling, s = o.nextSibling, c = s.firstChild;
2264
2267
  return a.addEventListener("change", (t) => {
2265
2268
  n(e, t.currentTarget.checked);
2266
2269
  }), R(o, () => r.name), R(s, () => r.requests.length, c), R(s, () => r.requests.length === 1 ? "" : "s", null), O(() => a.checked = !!t[e]), i;
@@ -2268,13 +2271,13 @@ var Ar = /*#__PURE__*/ P("<div><div><h1>export history"), jr = /*#__PURE__*/ P("
2268
2271
  })), e;
2269
2272
  })(),
2270
2273
  (() => {
2271
- var e = Fr(), t = e.firstChild, n = t.firstChild, l = t.nextSibling, u = l.firstChild;
2274
+ var e = Ir(), t = e.firstChild, n = t.firstChild, l = t.nextSibling, u = l.firstChild;
2272
2275
  return n.addEventListener("change", (e) => {
2273
2276
  i(() => e.currentTarget.checked);
2274
2277
  }), R(e, (() => {
2275
2278
  var e = N(() => Cr.logs.length > 0);
2276
2279
  return () => e() && (() => {
2277
- var e = Rr(), t = e.firstChild, n = t.nextSibling.nextSibling, r = n.firstChild;
2280
+ var e = zr(), t = e.firstChild, n = t.nextSibling.nextSibling, r = n.firstChild;
2278
2281
  return t.addEventListener("change", (e) => {
2279
2282
  o(() => e.currentTarget.checked);
2280
2283
  }), R(n, () => Cr.logs.length, r), O(() => t.checked = a()), e;
@@ -2284,10 +2287,10 @@ var Ar = /*#__PURE__*/ P("<div><div><h1>export history"), jr = /*#__PURE__*/ P("
2284
2287
  }), O(() => n.checked = r()), O(() => u.checked = s()), e;
2285
2288
  })(),
2286
2289
  (() => {
2287
- var e = Ir();
2290
+ var e = Lr();
2288
2291
  return R(e, A(z, {
2289
2292
  onClick: () => {
2290
- zr.value = !1;
2293
+ Br.value = !1;
2291
2294
  },
2292
2295
  children: "Cancel"
2293
2296
  }), null), R(e, A(z, {
@@ -2298,8 +2301,8 @@ var Ar = /*#__PURE__*/ P("<div><div><h1>export history"), jr = /*#__PURE__*/ P("
2298
2301
  }), null), R(e, A(z, {
2299
2302
  class: "primary",
2300
2303
  onClick: () => {
2301
- Or(JSON.stringify(d(), null, 2)).then(() => {
2302
- zr.value = !1;
2304
+ kr(JSON.stringify(d(), null, 2)).then(() => {
2305
+ Br.value = !1;
2303
2306
  });
2304
2307
  },
2305
2308
  get children() {
@@ -2314,7 +2317,7 @@ var Ar = /*#__PURE__*/ P("<div><div><h1>export history"), jr = /*#__PURE__*/ P("
2314
2317
  it(["click"]);
2315
2318
  //#endregion
2316
2319
  //#region src/components/Toast.tsx
2317
- var Ur = /*#__PURE__*/ P("<div>"), Wr = B`
2320
+ var Wr = /*#__PURE__*/ P("<div>"), Gr = B`
2318
2321
  &&& {
2319
2322
  position: absolute;
2320
2323
  bottom: 16px;
@@ -2331,15 +2334,15 @@ var Ur = /*#__PURE__*/ P("<div>"), Wr = B`
2331
2334
  box-shadow: ${cr.hardShadow};
2332
2335
  pointer-events: none;
2333
2336
  }
2334
- `, Gr = () => A(M, {
2337
+ `, Kr = () => A(M, {
2335
2338
  get when() {
2336
2339
  return lr.value;
2337
2340
  },
2338
2341
  get children() {
2339
- var e = Ur();
2340
- return I(e, Wr), R(e, () => lr.value), e;
2342
+ var e = Wr();
2343
+ return I(e, Gr), R(e, () => lr.value), e;
2341
2344
  }
2342
- }), Kr = /*#__PURE__*/ P("<div>"), qr = B`
2345
+ }), qr = /*#__PURE__*/ P("<div>"), Jr = B`
2343
2346
  &&& {
2344
2347
  position: relative;
2345
2348
  z-index: 10;
@@ -2362,13 +2365,13 @@ var Ur = /*#__PURE__*/ P("<div>"), Wr = B`
2362
2365
  }
2363
2366
  }
2364
2367
  `;
2365
- function Jr(e) {
2368
+ function Yr(e) {
2366
2369
  return Array.isArray(e);
2367
2370
  }
2368
- function Yr(e) {
2369
- return Jr(e) && e.every((e) => typeof e == "number" && Number.isFinite(e));
2371
+ function Xr(e) {
2372
+ return Yr(e) && e.every((e) => typeof e == "number" && Number.isFinite(e));
2370
2373
  }
2371
- function Xr({ storageKey: e, initialSizes: t, minSizePct: n = 10 }) {
2374
+ function Zr({ storageKey: e, initialSizes: t, minSizePct: n = 10 }) {
2372
2375
  let r = `app-devtools-panels-${e}`;
2373
2376
  function i(e) {
2374
2377
  let t = e.reduce((e, t) => e + t, 0);
@@ -2379,7 +2382,7 @@ function Xr({ storageKey: e, initialSizes: t, minSizePct: n = 10 }) {
2379
2382
  let e = window.localStorage.getItem(r);
2380
2383
  if (!e) return null;
2381
2384
  let n = JSON.parse(e);
2382
- return !Yr(n) || n.length !== t.length ? null : i(n);
2385
+ return !Xr(n) || n.length !== t.length ? null : i(n);
2383
2386
  } catch {
2384
2387
  return null;
2385
2388
  }
@@ -2396,7 +2399,7 @@ function Xr({ storageKey: e, initialSizes: t, minSizePct: n = 10 }) {
2396
2399
  function l(e) {
2397
2400
  let r = en(!1);
2398
2401
  return (() => {
2399
- var a = Kr();
2402
+ var a = qr();
2400
2403
  return a.$$pointerdown = (t) => {
2401
2404
  let i = t.currentTarget.parentElement;
2402
2405
  if (!i) return;
@@ -2416,7 +2419,7 @@ function Xr({ storageKey: e, initialSizes: t, minSizePct: n = 10 }) {
2416
2419
  a.addEventListener("pointermove", d), a.addEventListener("pointerup", f), a.addEventListener("pointercancel", f);
2417
2420
  }, a.$$dblclick = () => {
2418
2421
  s.value = i(t), o(s.value);
2419
- }, I(a, qr), O(() => a.classList.toggle("dragging", !!r.value)), a;
2422
+ }, I(a, Jr), O(() => a.classList.toggle("dragging", !!r.value)), a;
2420
2423
  })();
2421
2424
  }
2422
2425
  return {
@@ -2427,13 +2430,108 @@ function Xr({ storageKey: e, initialSizes: t, minSizePct: n = 10 }) {
2427
2430
  it(["dblclick", "pointerdown"]);
2428
2431
  //#endregion
2429
2432
  //#region src/stores/uiStore.ts
2430
- var Zr = en(!1), [q, Qr] = Tn({
2433
+ var Qr = en(!1), [q, $r] = Tn({
2431
2434
  selectedPage: "explorer",
2432
2435
  selectedCall: null,
2433
2436
  selectedRequest: null,
2434
2437
  selectedTab: null,
2435
2438
  selectedSubitem: null
2436
- }), J = "\n display: inline-block;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n word-wrap: norma;\n max-width: 100%;\n", $r = /*#__PURE__*/ P("<div class=tag>"), ei = /*#__PURE__*/ P("<span>"), ti = /*#__PURE__*/ P("<div><div class=call>"), ni = B`
2439
+ }), J = "\n display: inline-block;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n word-wrap: norma;\n max-width: 100%;\n", ei = B`
2440
+ font-size: 10px;
2441
+ font-family: ${K.decorative};
2442
+ font-weight: 600;
2443
+ text-transform: uppercase;
2444
+ border-radius: 4px;
2445
+ padding: 1px 4px;
2446
+ flex-shrink: 0;
2447
+ color: ${G.white.alpha(.85)};
2448
+ background: ${G.white.alpha(.12)};
2449
+
2450
+ &.get {
2451
+ color: ${G.secondary.var};
2452
+ background: ${G.secondary.alpha(.14)};
2453
+ }
2454
+
2455
+ &.post {
2456
+ color: ${G.success.var};
2457
+ background: ${G.success.alpha(.14)};
2458
+ }
2459
+
2460
+ &.put,
2461
+ &.patch {
2462
+ color: ${G.warning.var};
2463
+ background: ${G.warning.alpha(.14)};
2464
+ }
2465
+
2466
+ &.delete {
2467
+ color: ${G.error.var};
2468
+ background: ${G.error.alpha(.14)};
2469
+ }
2470
+
2471
+ &.mutation {
2472
+ color: #a78bfa;
2473
+ background: rgba(167, 139, 250, 0.14);
2474
+ }
2475
+
2476
+ &.ws-send {
2477
+ color: ${G.primary.var};
2478
+ background: ${G.primary.alpha(.14)};
2479
+ }
2480
+
2481
+ &.ws-receive {
2482
+ color: ${G.secondary.var};
2483
+ background: ${G.secondary.alpha(.14)};
2484
+ }
2485
+ `, ti = [
2486
+ "get",
2487
+ "post",
2488
+ "put",
2489
+ "patch",
2490
+ "delete"
2491
+ ];
2492
+ function ni({ type: e, subType: t, method: n }) {
2493
+ if (e === "ws") return t === "send" ? {
2494
+ label: "↑ send",
2495
+ class: "ws-send",
2496
+ description: "websocket (send)"
2497
+ } : {
2498
+ label: "↓ recv",
2499
+ class: "ws-receive",
2500
+ description: "websocket (receive)"
2501
+ };
2502
+ if (n) {
2503
+ let t = n.toLowerCase();
2504
+ return {
2505
+ label: n,
2506
+ class: ti.includes(t) ? t : "",
2507
+ description: `${e} (${n})`
2508
+ };
2509
+ }
2510
+ return e === "mutation" ? t === "create" ? {
2511
+ label: "create",
2512
+ class: "post",
2513
+ description: "mutation (create)"
2514
+ } : t === "update" ? {
2515
+ label: "update",
2516
+ class: "put",
2517
+ description: "mutation (update)"
2518
+ } : t === "delete" ? {
2519
+ label: "delete",
2520
+ class: "delete",
2521
+ description: "mutation (delete)"
2522
+ } : {
2523
+ label: t || "mut",
2524
+ class: "mutation",
2525
+ description: `mutation${t ? ` (${t})` : ""}`
2526
+ } : {
2527
+ label: "fetch",
2528
+ class: "",
2529
+ description: "fetch"
2530
+ };
2531
+ }
2532
+ //#endregion
2533
+ //#region src/pages/api-explorer/ApiExplorerMenuItem.tsx
2534
+ var ri = /*#__PURE__*/ P("<div>"), ii = /*#__PURE__*/ P("<span>"), ai = /*#__PURE__*/ P("<div><div class=call>"), oi = B`
2437
2535
  &&& {
2438
2536
  font-size: 14px;
2439
2537
  ${W()};
@@ -2453,11 +2551,6 @@ var Zr = en(!1), [q, Qr] = Tn({
2453
2551
  ${U({ gap: 8 })};
2454
2552
  flex: 1 1;
2455
2553
 
2456
- > .tag {
2457
- font-weight: 600;
2458
- font-family: ${K.decorative};
2459
- }
2460
-
2461
2554
  > span {
2462
2555
  ${J};
2463
2556
  flex-shrink: 1;
@@ -2508,31 +2601,35 @@ var Zr = en(!1), [q, Qr] = Tn({
2508
2601
  }
2509
2602
  }
2510
2603
  }
2511
- `, ri = (e) => {
2512
- let t = k(() => e.item), n = k(() => e.currentCallId), r = en(e.item.subitemsWithAlias.length < 4), i = ai(t().type, t().subType);
2604
+ `, si = (e) => {
2605
+ let t = k(() => e.item), n = k(() => e.currentCallId), r = en(e.item.subitemsWithAlias.length < 4), i = ni({
2606
+ type: e.item.type,
2607
+ subType: e.item.subType,
2608
+ method: e.item.requests.at(-1)?.method
2609
+ });
2513
2610
  return (() => {
2514
- var e = ti(), a = e.firstChild;
2515
- return I(e, ni), R(a, A(z, {
2611
+ var e = ai(), a = e.firstChild;
2612
+ return I(e, oi), R(a, A(z, {
2516
2613
  onClick: () => {
2517
- Qr({
2614
+ $r({
2518
2615
  selectedCall: t().id,
2519
2616
  selectedSubitem: null,
2520
- selectedRequest: ii(t())
2617
+ selectedRequest: ci(t())
2521
2618
  });
2522
2619
  },
2523
2620
  class: "call-button",
2524
2621
  get children() {
2525
2622
  return [(() => {
2526
- var e = $r();
2527
- return R(e, () => i.icon), O((n) => {
2528
- var r = `${t().type}${t().subType ? ` (${t().subType})` : ""}`, a = i.color;
2529
- return r !== n.e && F(e, "title", n.e = r), a !== n.t && L(e, "color", n.t = a), n;
2623
+ var e = ri();
2624
+ return R(e, () => i.label), O((t) => {
2625
+ var n = `${ei} ${i.class}`, r = i.description;
2626
+ return n !== t.e && I(e, t.e = n), r !== t.t && F(e, "title", t.t = r), t;
2530
2627
  }, {
2531
2628
  e: void 0,
2532
2629
  t: void 0
2533
2630
  }), e;
2534
2631
  })(), (() => {
2535
- var e = ei();
2632
+ var e = ii();
2536
2633
  return R(e, () => t().name), O(() => F(e, "title", t().name)), e;
2537
2634
  })()];
2538
2635
  }
@@ -2565,14 +2662,14 @@ var Zr = en(!1), [q, Qr] = Tn({
2565
2662
  return { selected: n() === t().id && q.selectedSubitem === e };
2566
2663
  },
2567
2664
  onClick: () => {
2568
- Qr({
2665
+ $r({
2569
2666
  selectedCall: t().id,
2570
2667
  selectedSubitem: e,
2571
- selectedRequest: ii(t(), e)
2668
+ selectedRequest: ci(t(), e)
2572
2669
  });
2573
2670
  },
2574
2671
  get children() {
2575
- var t = ei();
2672
+ var t = ii();
2576
2673
  return R(t, e), t;
2577
2674
  }
2578
2675
  })
@@ -2581,41 +2678,26 @@ var Zr = en(!1), [q, Qr] = Tn({
2581
2678
  }), null), O(() => a.classList.toggle("selected", n() === t().id)), e;
2582
2679
  })();
2583
2680
  };
2584
- function ii(e, t) {
2681
+ function ci(e, t) {
2585
2682
  let n = t ? e.requests.filter((e) => e.alias === t) : e.requests;
2586
2683
  return (n.findLast((e) => e.status !== "pending") || n.at(-1))?.id ?? null;
2587
2684
  }
2588
- function ai(e, t) {
2589
- if (e === "ws") return {
2590
- icon: t === "send" ? "S" : "R",
2591
- color: "#6EE7B7"
2592
- };
2593
- if (e === "fetch") return {
2594
- icon: "F",
2595
- color: "#FDE047"
2596
- };
2597
- let n = "";
2598
- return n = t ? t === "create" ? "C" : t === "update" ? "U" : t === "delete" ? "D" : t[0]?.toUpperCase() || "?" : "M", {
2599
- icon: n,
2600
- color: "#A78BFA"
2601
- };
2602
- }
2603
2685
  //#endregion
2604
2686
  //#region src/style/helpers/transition.ts
2605
- var oi = {
2687
+ var li = {
2606
2688
  short: 160,
2607
2689
  medium: 240,
2608
2690
  long: 360
2609
- }, si = {
2691
+ }, ui = {
2610
2692
  inOut: "cubic-bezier(0.4, 0.0, 0.2, 1)",
2611
2693
  out: "cubic-bezier(0.0, 0.0, 0.2, 1)",
2612
2694
  in: "cubic-bezier(0.4, 0.0, 1, 1)",
2613
2695
  linear: "linear"
2614
- }, ci = (e) => e === void 0 ? "" : `${e}ms`;
2615
- function li(e = {}) {
2696
+ }, di = (e) => e === void 0 ? "" : `${e}ms`;
2697
+ function fi(e = {}) {
2616
2698
  let { properties: t, duration: n, ease: r, delay: i } = e;
2617
2699
  return `
2618
- transition: ${ci(typeof n == "number" ? n : oi[n || "medium"])} ${si[r || "inOut"]} ${ci(i)};
2700
+ transition: ${di(typeof n == "number" ? n : li[n || "medium"])} ${ui[r || "inOut"]} ${di(i)};
2619
2701
  ${t ? `
2620
2702
  transition-property: ${t.join(", ") || ""};
2621
2703
  ` : ""}
@@ -2623,11 +2705,11 @@ function li(e = {}) {
2623
2705
  }
2624
2706
  //#endregion
2625
2707
  //#region utils/normalizeString.ts
2626
- var ui = (e) => e.normalize("NFD").replace(/[\u0300-\u036f]/g, "").toLowerCase().trim();
2708
+ var pi = (e) => e.normalize("NFD").replace(/[\u0300-\u036f]/g, "").toLowerCase().trim();
2627
2709
  //#endregion
2628
2710
  //#region utils/searchQueryMatch.ts
2629
- function di(e, t) {
2630
- let n = ui(String(t)).indexOf(ui(String(e)));
2711
+ function mi(e, t) {
2712
+ let n = pi(String(t)).indexOf(pi(String(e)));
2631
2713
  return {
2632
2714
  matched: n !== -1,
2633
2715
  matchedIndex: n
@@ -2635,7 +2717,7 @@ function di(e, t) {
2635
2717
  }
2636
2718
  //#endregion
2637
2719
  //#region utils/sortBy.ts
2638
- function fi(e, t, { lowerFirst: n } = {}) {
2720
+ function hi(e, t, { lowerFirst: n } = {}) {
2639
2721
  return [...e].sort((e, r) => {
2640
2722
  let i = t(e), a = t(r);
2641
2723
  return i < a ? n ? -1 : 1 : i > a ? n ? 1 : -1 : 0;
@@ -2643,20 +2725,20 @@ function fi(e, t, { lowerFirst: n } = {}) {
2643
2725
  }
2644
2726
  //#endregion
2645
2727
  //#region utils/searchItems.ts
2646
- function pi({ items: e, searchQuery: t, getStringToMatch: n }) {
2728
+ function gi({ items: e, searchQuery: t, getStringToMatch: n }) {
2647
2729
  let r = [];
2648
2730
  for (let i of e) {
2649
- let e = di(t, n(i));
2731
+ let e = mi(t, n(i));
2650
2732
  e.matched && r.push({
2651
2733
  item: i,
2652
2734
  matchedIndex: e.matchedIndex
2653
2735
  });
2654
2736
  }
2655
- return fi(r, (e) => e.matchedIndex, { lowerFirst: !0 }).map(({ item: e }) => e);
2737
+ return hi(r, (e) => e.matchedIndex, { lowerFirst: !0 }).map(({ item: e }) => e);
2656
2738
  }
2657
2739
  //#endregion
2658
2740
  //#region src/pages/api-explorer/ApiExplorerMenu.tsx
2659
- var mi = /*#__PURE__*/ P("<div><h1>API EXPLORER</h1><div><button>API</button><button>WebSocket</button><button>All</button></div><label><input type=text placeholder=Search></label><div>"), hi = B`
2741
+ var _i = /*#__PURE__*/ P("<div><h1>API EXPLORER</h1><div><button>API</button><button>WebSocket</button><button>All</button></div><label><input type=text placeholder=Search></label><div>"), vi = B`
2660
2742
  &&& {
2661
2743
  ${W()};
2662
2744
  border-right: 1px solid ${G.white.alpha(.1)};
@@ -2670,14 +2752,14 @@ var mi = /*#__PURE__*/ P("<div><h1>API EXPLORER</h1><div><button>API</button><bu
2670
2752
  padding-bottom: 12px;
2671
2753
  }
2672
2754
  }
2673
- `, gi = B`
2755
+ `, yi = B`
2674
2756
  &&& {
2675
2757
  ${W()};
2676
2758
  flex: 1 1;
2677
2759
  overflow-y: auto;
2678
2760
  padding-bottom: 16px;
2679
2761
  }
2680
- `, _i = B`
2762
+ `, bi = B`
2681
2763
  &&& {
2682
2764
  ${U({ gap: 8 })};
2683
2765
  margin: 0 10px;
@@ -2705,7 +2787,7 @@ var mi = /*#__PURE__*/ P("<div><h1>API EXPLORER</h1><div><button>API</button><bu
2705
2787
  }
2706
2788
  }
2707
2789
  }
2708
- `, vi = B`
2790
+ `, xi = B`
2709
2791
  &&& {
2710
2792
  ${U({ gap: 16 })};
2711
2793
  padding-left: 15px;
@@ -2714,7 +2796,7 @@ var mi = /*#__PURE__*/ P("<div><h1>API EXPLORER</h1><div><button>API</button><bu
2714
2796
  > button {
2715
2797
  font-size: 14px;
2716
2798
  opacity: 0.5;
2717
- ${li()};
2799
+ ${fi()};
2718
2800
 
2719
2801
  &:hover {
2720
2802
  opacity: 1;
@@ -2726,16 +2808,16 @@ var mi = /*#__PURE__*/ P("<div><h1>API EXPLORER</h1><div><button>API</button><bu
2726
2808
  }
2727
2809
  }
2728
2810
  }
2729
- `, yi = en("api"), bi = () => {
2811
+ `, Si = en("api"), Ci = () => {
2730
2812
  let e = en(""), t = en(!1), n = /* @__PURE__ */ new Map(), r = $t(() => {
2731
2813
  let [r = "", i = ""] = e.value.split(">"), a = Object.entries(H.calls), o = [];
2732
2814
  for (let [e, t] of a) {
2733
2815
  let n = /* @__PURE__ */ new Set();
2734
- if (!(yi.value === "api" && t.type !== "fetch" && t.type !== "mutation") && !(yi.value === "ws" && t.type !== "ws")) {
2816
+ if (!(Si.value === "api" && t.type !== "fetch" && t.type !== "mutation") && !(Si.value === "ws" && t.type !== "ws")) {
2735
2817
  for (let e of t.requests) e.alias && n.add(e.alias);
2736
2818
  o.push({
2737
2819
  id: e,
2738
- subitemsWithAlias: pi({
2820
+ subitemsWithAlias: gi({
2739
2821
  items: [...n],
2740
2822
  searchQuery: i.trim(),
2741
2823
  getStringToMatch(e) {
@@ -2749,7 +2831,7 @@ var mi = /*#__PURE__*/ P("<div><h1>API EXPLORER</h1><div><button>API</button><bu
2749
2831
  return t.value ? o.sort((e, t) => {
2750
2832
  let r = n.get(e.id), i = n.get(t.id);
2751
2833
  return r !== void 0 && i !== void 0 ? r - i : r === void 0 && i === void 0 ? t.lastRequestStartTime - e.lastRequestStartTime : r === void 0 ? 1 : -1;
2752
- }) : (o.sort((e, t) => t.lastRequestStartTime - e.lastRequestStartTime), n = new Map(o.map((e, t) => [e.id, t]))), pi({
2834
+ }) : (o.sort((e, t) => t.lastRequestStartTime - e.lastRequestStartTime), n = new Map(o.map((e, t) => [e.id, t]))), gi({
2753
2835
  items: o,
2754
2836
  searchQuery: r.trim(),
2755
2837
  getStringToMatch(e) {
@@ -2758,18 +2840,18 @@ var mi = /*#__PURE__*/ P("<div><h1>API EXPLORER</h1><div><button>API</button><bu
2758
2840
  });
2759
2841
  }, "id"), i = k(() => q.selectedCall);
2760
2842
  return (() => {
2761
- var n = mi(), a = n.firstChild.nextSibling, o = a.firstChild, s = o.nextSibling, c = s.nextSibling, l = a.nextSibling, u = l.firstChild, d = l.nextSibling;
2762
- return I(n, hi), I(a, vi), o.$$click = () => yi.set("api"), s.$$click = () => yi.set("ws"), c.$$click = () => yi.set("all"), I(l, _i), R(l, A(V, { name: "search" }), u), u.$$input = (t) => {
2843
+ var n = _i(), a = n.firstChild.nextSibling, o = a.firstChild, s = o.nextSibling, c = s.nextSibling, l = a.nextSibling, u = l.firstChild, d = l.nextSibling;
2844
+ return I(n, vi), I(a, xi), o.$$click = () => Si.set("api"), s.$$click = () => Si.set("ws"), c.$$click = () => Si.set("all"), I(l, bi), R(l, A(V, { name: "search" }), u), u.$$input = (t) => {
2763
2845
  e.value = t.currentTarget.value;
2764
2846
  }, d.addEventListener("mouseleave", () => {
2765
2847
  t.value = !1;
2766
2848
  }), d.addEventListener("mouseenter", () => {
2767
2849
  t.value = !0;
2768
- }), I(d, gi), R(d, A(j, {
2850
+ }), I(d, yi), R(d, A(j, {
2769
2851
  get each() {
2770
2852
  return r();
2771
2853
  },
2772
- children: (e, t) => A(ri, {
2854
+ children: (e, t) => A(si, {
2773
2855
  get index() {
2774
2856
  return t();
2775
2857
  },
@@ -2779,7 +2861,7 @@ var mi = /*#__PURE__*/ P("<div><h1>API EXPLORER</h1><div><button>API</button><bu
2779
2861
  }
2780
2862
  })
2781
2863
  })), O((e) => {
2782
- var t = yi.value === "api", n = yi.value === "ws", r = yi.value === "all";
2864
+ var t = Si.value === "api", n = Si.value === "ws", r = Si.value === "all";
2783
2865
  return t !== e.e && o.classList.toggle("active", e.e = t), n !== e.t && s.classList.toggle("active", e.t = n), r !== e.a && c.classList.toggle("active", e.a = r), e;
2784
2866
  }, {
2785
2867
  e: void 0,
@@ -2791,10 +2873,10 @@ var mi = /*#__PURE__*/ P("<div><h1>API EXPLORER</h1><div><button>API</button><bu
2791
2873
  it(["click", "input"]);
2792
2874
  //#endregion
2793
2875
  //#region node_modules/.pnpm/@ls-stack+utils@3.77.0/node_modules/@ls-stack/utils/dist/typeGuards-CjiEoecn.mjs
2794
- function xi(e) {
2876
+ function wi(e) {
2795
2877
  return typeof e == "object" && !!e && !Array.isArray(e);
2796
2878
  }
2797
- function Si(e) {
2879
+ function Ti(e) {
2798
2880
  if (!e || typeof e != "object") return !1;
2799
2881
  let t = Object.getPrototypeOf(e);
2800
2882
  if (t === null) return !0;
@@ -2805,10 +2887,10 @@ function Si(e) {
2805
2887
  }
2806
2888
  //#endregion
2807
2889
  //#region node_modules/.pnpm/@ls-stack+utils@3.77.0/node_modules/@ls-stack/utils/dist/assertions--46HN4J7.mjs
2808
- var Ci = xi;
2890
+ var Ei = wi;
2809
2891
  //#endregion
2810
2892
  //#region node_modules/.pnpm/@ls-stack+utils@3.77.0/node_modules/@ls-stack/utils/dist/arrayUtils.mjs
2811
- function wi(e, t, n = "asc") {
2893
+ function Di(e, t, n = "asc") {
2812
2894
  let r = Array.isArray(n) || typeof n == "string" ? n : n.order ?? "asc";
2813
2895
  return [...e].sort((e, n) => {
2814
2896
  let i = t(e), a = t(n), o = Array.isArray(i) ? i : [i], s = Array.isArray(a) ? a : [a];
@@ -2824,8 +2906,8 @@ function wi(e, t, n = "asc") {
2824
2906
  }
2825
2907
  //#endregion
2826
2908
  //#region node_modules/.pnpm/@ls-stack+utils@3.77.0/node_modules/@ls-stack/utils/dist/filterObjectOrArrayKeys.mjs
2827
- var Ti = /^(id_|key_|id-|key-)|(_id|_key|-id|-key)$/i;
2828
- function Ei(e, { filterKeys: t, rejectKeys: n, rejectEmptyObjectsInArray: r = !0, sortKeys: i = "simpleValuesFirst", sortPatterns: a }) {
2909
+ var Oi = /^(id_|key_|id-|key-)|(_id|_key|-id|-key)$/i;
2910
+ function ki(e, { filterKeys: t, rejectKeys: n, rejectEmptyObjectsInArray: r = !0, sortKeys: i = "simpleValuesFirst", sortPatterns: a }) {
2829
2911
  function o(e, t) {
2830
2912
  let n = t.split("."), r = e;
2831
2913
  for (let e of n) {
@@ -2850,13 +2932,13 @@ function Ei(e, { filterKeys: t, rejectKeys: n, rejectEmptyObjectsInArray: r = !0
2850
2932
  default: return !1;
2851
2933
  }
2852
2934
  }
2853
- let c = (e) => e === void 0 ? [] : Array.isArray(e) ? e : [e], l = c(t), u = c(n), d = l.length > 0, f = u.length > 0, p = l.flatMap(Ai), m = u.flatMap(Ai), { filterOnlyPatterns: h, combinedPatterns: g } = ki(p), _ = h.map(ji), v = m.map(ji), y = c(a).flatMap(Ai).map(ji), b = e;
2935
+ let c = (e) => e === void 0 ? [] : Array.isArray(e) ? e : [e], l = c(t), u = c(n), d = l.length > 0, f = u.length > 0, p = l.flatMap(Ni), m = u.flatMap(Ni), { filterOnlyPatterns: h, combinedPatterns: g } = Mi(p), _ = h.map(Pi), v = m.map(Pi), y = c(a).flatMap(Ni).map(Pi), ee = e;
2854
2936
  if (g.length > 0) {
2855
2937
  let t = /* @__PURE__ */ new Map();
2856
2938
  for (let { filterPart: e, fieldPart: n } of g) t.has(e) || t.set(e, []), t.get(e).push(n);
2857
2939
  let i = Array.isArray(e) ? [] : {};
2858
2940
  for (let [a, o] of t) {
2859
- let t = Ei(Ei(e, {
2941
+ let t = ki(ki(e, {
2860
2942
  filterKeys: [a],
2861
2943
  rejectKeys: n,
2862
2944
  rejectEmptyObjectsInArray: r
@@ -2867,9 +2949,9 @@ function Ei(e, { filterKeys: t, rejectKeys: n, rejectEmptyObjectsInArray: r = !0
2867
2949
  Array.isArray(i) && Array.isArray(t) ? i.push(...t) : !Array.isArray(i) && !Array.isArray(t) && Object.assign(i, t);
2868
2950
  }
2869
2951
  if (h.length === 0) return i;
2870
- b = i;
2952
+ ee = i;
2871
2953
  }
2872
- function ee(e, t, n) {
2954
+ function b(e, t, n) {
2873
2955
  function r(i, a) {
2874
2956
  if (a >= t.length) return i === e.length;
2875
2957
  let o = t[a];
@@ -2904,15 +2986,15 @@ function Ei(e, { filterKeys: t, rejectKeys: n, rejectEmptyObjectsInArray: r = !0
2904
2986
  }
2905
2987
  return r(0, 0);
2906
2988
  }
2907
- let te = (e, t) => _.some((n) => ee(e, n, t)), ne = (e, t) => v.some((n) => ee(e, n, t));
2989
+ let te = (e, t) => _.some((n) => b(e, n, t)), ne = (e, t) => v.some((n) => b(e, n, t));
2908
2990
  function x(e) {
2909
- for (let t = 0; t < y.length; t++) if (ee(e, y[t])) return t;
2991
+ for (let t = 0; t < y.length; t++) if (b(e, y[t])) return t;
2910
2992
  return y.length;
2911
2993
  }
2912
2994
  function re(e, t, n) {
2913
- return n === "asc" ? [...e].sort() : n === "desc" ? [...e].sort().reverse() : wi(wi(e, (e) => e), (e) => {
2995
+ return n === "asc" ? [...e].sort() : n === "desc" ? [...e].sort().reverse() : Di(Di(e, (e) => e), (e) => {
2914
2996
  let n = t[e];
2915
- return n == null || Array.isArray(n) && n.length === 0 ? 0 : Si(n) ? 1.99 + Object.keys(n).length * -.001 : Array.isArray(n) ? n.every((e) => typeof e == "string" || typeof e == "number" || typeof e == "boolean" || e == null) ? 1.9 + n.length * -.001 : 1.5 + n.length * -.01 : e === "id" || e === "key" ? 5 : Ti.test(e) ? 4.5 : typeof n == "boolean" ? 4 : typeof n == "number" ? 3.5 : typeof n == "string" && n.length < 20 ? 3 : 2;
2997
+ return n == null || Array.isArray(n) && n.length === 0 ? 0 : Ti(n) ? 1.99 + Object.keys(n).length * -.001 : Array.isArray(n) ? n.every((e) => typeof e == "string" || typeof e == "number" || typeof e == "boolean" || e == null) ? 1.9 + n.length * -.001 : 1.5 + n.length * -.01 : e === "id" || e === "key" ? 5 : Oi.test(e) ? 4.5 : typeof n == "boolean" ? 4 : typeof n == "number" ? 3.5 : typeof n == "string" && n.length < 20 ? 3 : 2;
2916
2998
  }, "desc");
2917
2999
  }
2918
3000
  function ie(e, t, n) {
@@ -2941,16 +3023,16 @@ function Ei(e, { filterKeys: t, rejectKeys: n, rejectEmptyObjectsInArray: r = !0
2941
3023
  }), a = e[n];
2942
3024
  if (f && ne(r, a)) continue;
2943
3025
  let c = d ? te(r, a) : !0, l = s || c;
2944
- if (Si(a) || Array.isArray(a)) {
3026
+ if (Ti(a) || Array.isArray(a)) {
2945
3027
  let e = S(a, r, l, i, !1, !0);
2946
3028
  e !== void 0 && o.push(e);
2947
3029
  } else l && o.push(a);
2948
3030
  }
2949
3031
  i.delete(e);
2950
- let c = r ? o.filter((e) => !(Si(e) && Object.keys(e).length === 0)) : o;
3032
+ let c = r ? o.filter((e) => !(Ti(e) && Object.keys(e).length === 0)) : o;
2951
3033
  return c.length === 0 && !n && !a ? void 0 : c;
2952
3034
  }
2953
- if (Si(e)) {
3035
+ if (Ti(e)) {
2954
3036
  if (i.has(e)) throw TypeError("Circular references are not supported");
2955
3037
  i.add(e);
2956
3038
  let s = {}, c = n || !d, l = ie(Object.keys(e), e, t);
@@ -2961,19 +3043,19 @@ function Ei(e, { filterKeys: t, rejectKeys: n, rejectEmptyObjectsInArray: r = !0
2961
3043
  });
2962
3044
  if (f && ne(r)) continue;
2963
3045
  let a = e[n], o = d ? te(r) : !0, l = c || o;
2964
- if (Si(a) || Array.isArray(a)) {
3046
+ if (Ti(a) || Array.isArray(a)) {
2965
3047
  let e = S(a, r, l, i, !1, !1);
2966
- if (e === void 0 || Array.isArray(e) && e.length === 0 && !l || Si(e) && Object.keys(e).length === 0 && !l) continue;
3048
+ if (e === void 0 || Array.isArray(e) && e.length === 0 && !l || Ti(e) && Object.keys(e).length === 0 && !l) continue;
2967
3049
  s[n] = e;
2968
3050
  } else l && (s[n] = a);
2969
3051
  }
2970
3052
  return i.delete(e), Object.keys(s).length === 0 && !n && !a ? o && !r ? {} : void 0 : s;
2971
3053
  }
2972
3054
  return n || !d ? e : void 0;
2973
- }, C = S(b, [], !d, /* @__PURE__ */ new WeakSet(), !0, !1);
2974
- return C === void 0 ? Array.isArray(b) ? [] : {} : C;
3055
+ }, C = S(ee, [], !d, /* @__PURE__ */ new WeakSet(), !0, !1);
3056
+ return C === void 0 ? Array.isArray(ee) ? [] : {} : C;
2975
3057
  }
2976
- function Di(e) {
3058
+ function Ai(e) {
2977
3059
  let t = [], n = "AND", r = e.startsWith("i"), i = r ? e.slice(1) : e, a = i.includes("&&"), o = i.includes(" || ");
2978
3060
  if (a && o) throw Error("Mixing && and || operators in the same filter is not supported. Use separate filter patterns instead.");
2979
3061
  let s = i.split("&&").map((e) => e.trim());
@@ -2981,11 +3063,11 @@ function Di(e) {
2981
3063
  n = "OR";
2982
3064
  let i = e.split(" || ").map((e) => e.trim());
2983
3065
  for (let e of i) {
2984
- let n = Oi(e, r);
3066
+ let n = ji(e, r);
2985
3067
  n && t.push(n);
2986
3068
  }
2987
3069
  } else {
2988
- let n = Oi(e, r);
3070
+ let n = ji(e, r);
2989
3071
  n && t.push(n);
2990
3072
  }
2991
3073
  return t.length === 0 ? null : {
@@ -2994,7 +3076,7 @@ function Di(e) {
2994
3076
  logic: n
2995
3077
  };
2996
3078
  }
2997
- function Oi(e, t = !1) {
3079
+ function ji(e, t = !1) {
2998
3080
  let n = e.startsWith("%") ? e.slice(1) : e, r = null, i = -1, a = 0;
2999
3081
  for (let [e, t] of [
3000
3082
  ["!*=", "!*="],
@@ -3031,7 +3113,7 @@ function Oi(e, t = !1) {
3031
3113
  caseInsensitive: t
3032
3114
  };
3033
3115
  }
3034
- function ki(e) {
3116
+ function Mi(e) {
3035
3117
  let t = [], n = [];
3036
3118
  for (let r of e) {
3037
3119
  let e = r.match(/^(.+\[[i%][^[\]]*\])\.(.+)$/);
@@ -3048,7 +3130,7 @@ function ki(e) {
3048
3130
  combinedPatterns: n
3049
3131
  };
3050
3132
  }
3051
- function Ai(e) {
3133
+ function Ni(e) {
3052
3134
  function t(e) {
3053
3135
  let n = e.indexOf("(");
3054
3136
  if (n === -1) return [e];
@@ -3065,7 +3147,7 @@ function Ai(e) {
3065
3147
  }
3066
3148
  return t(e);
3067
3149
  }
3068
- function ji(e) {
3150
+ function Pi(e) {
3069
3151
  let t = [], n = 0, r = e.length, i = (e) => {
3070
3152
  e.length !== 0 && t.push({
3071
3153
  type: "KEY",
@@ -3083,7 +3165,7 @@ function ji(e) {
3083
3165
  if (a.startsWith("%") || a.startsWith("i%")) {
3084
3166
  let e;
3085
3167
  e = a.startsWith("i%") ? `i${a.slice(2)}` : a.startsWith("%") ? a.slice(1) : a;
3086
- let n = Di(e);
3168
+ let n = Ai(e);
3087
3169
  n && t.push(n);
3088
3170
  } else if (a === "*") t.push({ type: "INDEX_ANY" });
3089
3171
  else if (a.includes("-")) {
@@ -3129,74 +3211,74 @@ function ji(e) {
3129
3211
  }
3130
3212
  //#endregion
3131
3213
  //#region src/components/JsonViewer/jsonSearch.ts
3132
- function Mi(e) {
3214
+ function Fi(e) {
3133
3215
  return typeof e == "object" && !!e && !Array.isArray(e);
3134
3216
  }
3135
- var Ni = "Key filter syntax:\nSeparate patterns with commas or new lines.\n\nRoot key: prop\nAny depth: **prop\nExact path: prop.nested\nSecond level: *.prop\n\nArrays:\nprop[0]\nprop[*].nested\nprop[0-2]\nprop[4-*]\n\nGroups:\nprop.(id|name|status)\n(users|admins)[*].name\n\nArray value filters:\nusers[%name=\"John\"]\nusers[%name*=\"oh\"]\nusers[i%name=\"john\"]\nusers[%age=30 && %role=\"admin\"]", Pi = /[\n,]/, Fi = "__original_index", Ii = { matched: !1 };
3136
- function Li(e) {
3217
+ var Ii = "Key filter syntax:\nSeparate patterns with commas or new lines.\n\nRoot key: prop\nAny depth: **prop\nExact path: prop.nested\nSecond level: *.prop\n\nArrays:\nprop[0]\nprop[*].nested\nprop[0-2]\nprop[4-*]\n\nGroups:\nprop.(id|name|status)\n(users|admins)[*].name\n\nArray value filters:\nusers[%name=\"John\"]\nusers[%name*=\"oh\"]\nusers[i%name=\"john\"]\nusers[%age=30 && %role=\"admin\"]", Li = /[\n,]/, Ri = "__original_index", zi = { matched: !1 };
3218
+ function Bi(e) {
3137
3219
  return e === null ? "null" : typeof e == "string" ? JSON.stringify(e) : typeof e == "number" || typeof e == "boolean" ? String(e) : typeof e == "bigint" ? `${e.toString()}n` : e === void 0 ? "undefined" : typeof e == "symbol" ? e.toString() : typeof e == "function" ? "[Function]" : "[Object]";
3138
3220
  }
3139
- function Ri(e) {
3140
- return Mi(e) || Array.isArray(e) && e.every(Mi);
3221
+ function Vi(e) {
3222
+ return Fi(e) || Array.isArray(e) && e.every(Fi);
3141
3223
  }
3142
- function zi(e) {
3143
- return e.split(Pi).map((e) => e.trim()).filter((e) => e.length > 0);
3224
+ function Hi(e) {
3225
+ return e.split(Li).map((e) => e.trim()).filter((e) => e.length > 0);
3144
3226
  }
3145
- function Bi(e) {
3146
- return Mi(e) && Object.keys(e).length === 0;
3227
+ function Ui(e) {
3228
+ return Fi(e) && Object.keys(e).length === 0;
3147
3229
  }
3148
- function Vi(e) {
3230
+ function Wi(e) {
3149
3231
  return e.match.matched;
3150
3232
  }
3151
- function Hi(e, t) {
3152
- return Mi(e) ? {
3153
- [Fi]: t,
3233
+ function Gi(e, t) {
3234
+ return Fi(e) ? {
3235
+ [Ri]: t,
3154
3236
  ...e
3155
3237
  } : {
3156
- [Fi]: t,
3238
+ [Ri]: t,
3157
3239
  value: e
3158
3240
  };
3159
3241
  }
3160
- function Ui(e, t, n) {
3161
- return n ? Hi(e, t) : e;
3242
+ function Ki(e, t, n) {
3243
+ return n ? Gi(e, t) : e;
3162
3244
  }
3163
- function Wi(e, t) {
3245
+ function qi(e, t) {
3164
3246
  if (Array.isArray(e)) {
3165
3247
  let n = [];
3166
3248
  for (let [r, i] of e.entries()) {
3167
- let e = Wi(i, t);
3168
- Bi(e) || n.push({
3249
+ let e = qi(i, t);
3250
+ Ui(e) || n.push({
3169
3251
  index: r,
3170
3252
  value: e
3171
3253
  });
3172
3254
  }
3173
3255
  let r = n.length !== e.length;
3174
- return n.map((e) => r ? Ui(e.value, e.index, t) : e.value);
3256
+ return n.map((e) => r ? Ki(e.value, e.index, t) : e.value);
3175
3257
  }
3176
- if (Mi(e)) {
3258
+ if (Fi(e)) {
3177
3259
  let n = {};
3178
3260
  for (let [r, i] of Object.entries(e)) {
3179
- let e = Wi(i, t);
3180
- Bi(e) || (n[r] = e);
3261
+ let e = qi(i, t);
3262
+ Ui(e) || (n[r] = e);
3181
3263
  }
3182
3264
  return n;
3183
3265
  }
3184
3266
  return e;
3185
3267
  }
3186
- function Gi(e, t, n) {
3268
+ function Ji(e, t, n) {
3187
3269
  let r = t.toLowerCase();
3188
3270
  function i(e, t) {
3189
3271
  if (Array.isArray(e)) {
3190
3272
  let r = e.map((e, n) => ({
3191
3273
  index: n,
3192
3274
  match: i(e, [...t, `[${n}]`])
3193
- })).filter(Vi), a = r.length !== e.length, o = r.map((e) => a ? Ui(e.match.value, e.index, n) : e.match.value);
3275
+ })).filter(Wi), a = r.length !== e.length, o = r.map((e) => a ? Ki(e.match.value, e.index, n) : e.match.value);
3194
3276
  return r.length > 0 ? {
3195
3277
  matched: !0,
3196
3278
  value: o
3197
- } : Ii;
3279
+ } : zi;
3198
3280
  }
3199
- if (Mi(e)) {
3281
+ if (Fi(e)) {
3200
3282
  let n = {};
3201
3283
  for (let [a, o] of Object.entries(e)) {
3202
3284
  let e = [...t, a];
@@ -3210,16 +3292,16 @@ function Gi(e, t, n) {
3210
3292
  return Object.keys(n).length > 0 ? {
3211
3293
  matched: !0,
3212
3294
  value: n
3213
- } : Ii;
3295
+ } : zi;
3214
3296
  }
3215
- return Li(e).toLowerCase().includes(r) ? {
3297
+ return Bi(e).toLowerCase().includes(r) ? {
3216
3298
  matched: !0,
3217
3299
  value: e
3218
- } : Ii;
3300
+ } : zi;
3219
3301
  }
3220
3302
  return i(e, []);
3221
3303
  }
3222
- function Ki(e, t, n, r) {
3304
+ function Yi(e, t, n, r) {
3223
3305
  let i = t.trim();
3224
3306
  if (!i) return {
3225
3307
  value: e,
@@ -3227,7 +3309,7 @@ function Ki(e, t, n, r) {
3227
3309
  message: void 0
3228
3310
  };
3229
3311
  if (n === "text") {
3230
- let t = Gi(e, i, r);
3312
+ let t = Ji(e, i, r);
3231
3313
  return t.matched ? {
3232
3314
  value: t.value,
3233
3315
  isEmpty: !1,
@@ -3238,14 +3320,14 @@ function Ki(e, t, n, r) {
3238
3320
  message: void 0
3239
3321
  };
3240
3322
  }
3241
- if (!Ri(e)) return {
3323
+ if (!Vi(e)) return {
3242
3324
  value: void 0,
3243
3325
  isEmpty: !0,
3244
3326
  message: "Key filters support objects and arrays of objects."
3245
3327
  };
3246
- let a = zi(i), o;
3328
+ let a = Hi(i), o;
3247
3329
  try {
3248
- o = Ei(e, {
3330
+ o = ki(e, {
3249
3331
  filterKeys: a,
3250
3332
  rejectEmptyObjectsInArray: !1,
3251
3333
  sortKeys: !1
@@ -3257,32 +3339,32 @@ function Ki(e, t, n, r) {
3257
3339
  message: e instanceof Error ? e.message : "Invalid key filter"
3258
3340
  };
3259
3341
  }
3260
- let s = Wi(o, r);
3342
+ let s = qi(o, r);
3261
3343
  return {
3262
3344
  value: s,
3263
- isEmpty: Array.isArray(s) && s.length === 0 || Mi(s) && Object.keys(s).length === 0,
3345
+ isEmpty: Array.isArray(s) && s.length === 0 || Fi(s) && Object.keys(s).length === 0,
3264
3346
  message: void 0
3265
3347
  };
3266
3348
  }
3267
3349
  //#endregion
3268
3350
  //#region src/style/helpers/allowTextSelection.ts
3269
- var qi = "\n user-select: text;\n\n *, *::before, *::after {\n user-select: text;\n }\n", Ji = /* @__PURE__ */ new Map();
3351
+ var Xi = "\n user-select: text;\n\n *, *::before, *::after {\n user-select: text;\n }\n", Zi = /* @__PURE__ */ new Map();
3270
3352
  function Y(e, t) {
3271
3353
  let n = JSON.stringify(t);
3272
- return (Ji.get(n) ?? Ji.set(n, new Intl.NumberFormat("en-US", t)).get(n)).format(e);
3354
+ return (Zi.get(n) ?? Zi.set(n, new Intl.NumberFormat("en-US", t)).get(n)).format(e);
3273
3355
  }
3274
3356
  //#endregion
3275
3357
  //#region utils/objectUtils.ts
3276
- function Yi(e) {
3358
+ function Qi(e) {
3277
3359
  return typeof e == "object" && !!e;
3278
3360
  }
3279
3361
  //#endregion
3280
3362
  //#region src/components/JsonViewer/JsonViewer.tsx
3281
- var Xi = /*#__PURE__*/ P("<div class=key><span>"), Zi = /*#__PURE__*/ P("<div class=collapsed>"), Qi = /*#__PURE__*/ P("<div class=delimiter>[]"), $i = /*#__PURE__*/ P("<div class=delimiter>{}"), ea = /*#__PURE__*/ P("<div class=delimiter>"), ta = /*#__PURE__*/ P("<div class=childs>"), na = /*#__PURE__*/ P("<div class=\"delimiter end\">"), ra = /*#__PURE__*/ P("<div class=child>"), ia = /*#__PURE__*/ P("<div class=value>"), aa = /*#__PURE__*/ P("<span class=string-quotes>\""), oa = /*#__PURE__*/ P("<div>"), sa = /*#__PURE__*/ P("<div><label><input type=text>"), ca = /*#__PURE__*/ P("<div>No matches"), la = /*#__PURE__*/ P("<span> · id: "), ua = B`
3363
+ var $i = /*#__PURE__*/ P("<div class=key><span>"), ea = /*#__PURE__*/ P("<div class=collapsed>"), ta = /*#__PURE__*/ P("<div class=delimiter>[]"), na = /*#__PURE__*/ P("<div class=delimiter>{}"), ra = /*#__PURE__*/ P("<div class=delimiter>"), ia = /*#__PURE__*/ P("<div class=childs>"), aa = /*#__PURE__*/ P("<div class=\"delimiter end\">"), oa = /*#__PURE__*/ P("<div class=child>"), sa = /*#__PURE__*/ P("<div class=value>"), ca = /*#__PURE__*/ P("<span class=string-quotes>\""), la = /*#__PURE__*/ P("<div>"), ua = /*#__PURE__*/ P("<div><label><input type=text>"), da = /*#__PURE__*/ P("<div>No matches"), fa = /*#__PURE__*/ P("<span> · id: "), pa = B`
3282
3364
  &&& {
3283
3365
  ${W({ gap: 4 })};
3284
3366
  }
3285
- `, da = B`
3367
+ `, ma = B`
3286
3368
  &&& {
3287
3369
  ${U({ gap: 6 })};
3288
3370
  position: sticky;
@@ -3331,7 +3413,7 @@ var Xi = /*#__PURE__*/ P("<div class=key><span>"), Zi = /*#__PURE__*/ P("<div cl
3331
3413
  --icon-size: 14px;
3332
3414
  font-size: 12px;
3333
3415
  white-space: nowrap;
3334
- ${li()};
3416
+ ${fi()};
3335
3417
 
3336
3418
  &:hover {
3337
3419
  background: ${G.white.alpha(.08)};
@@ -3344,23 +3426,23 @@ var Xi = /*#__PURE__*/ P("<div class=key><span>"), Zi = /*#__PURE__*/ P("<div cl
3344
3426
  }
3345
3427
  }
3346
3428
  }
3347
- `, fa = B`
3429
+ `, ha = B`
3348
3430
  &&& {
3349
3431
  font-size: 12px;
3350
3432
  color: ${G.warning.var};
3351
3433
  padding: 2px 0;
3352
3434
  }
3353
- `, pa = B`
3435
+ `, ga = B`
3354
3436
  &&& {
3355
3437
  font-size: 13px;
3356
3438
  opacity: 0.5;
3357
3439
  padding: 6px 0;
3358
3440
  }
3359
- `, ma = B`
3441
+ `, _a = B`
3360
3442
  &&& {
3361
3443
  font-family: ${K.decorative};
3362
3444
  font-size: 13px;
3363
- ${qi};
3445
+ ${Xi};
3364
3446
  ${W({ gap: 2 })};
3365
3447
  padding-left: 8px;
3366
3448
 
@@ -3496,19 +3578,19 @@ var Xi = /*#__PURE__*/ P("<div class=key><span>"), Zi = /*#__PURE__*/ P("<div cl
3496
3578
  display: inline-flex;
3497
3579
  }
3498
3580
  }
3499
- `, ha = 14, ga = 600, _a = (e) => A(z, {
3581
+ `, va = 14, ya = 600, ba = (e) => A(z, {
3500
3582
  class: "copy-value",
3501
3583
  title: "Copy value",
3502
3584
  onClick: (t) => {
3503
- t.stopPropagation(), Or(e.value);
3585
+ t.stopPropagation(), kr(e.value);
3504
3586
  },
3505
3587
  get children() {
3506
3588
  return A(V, { name: "copy" });
3507
3589
  }
3508
- }), va = (e) => {
3509
- let [t, n] = D(e.ctx.getInitialExpanded(e.indent)), [r, i] = D(!e.ctx.compact), a = e.indent >= 2 ? 5 : ha;
3590
+ }), xa = (e) => {
3591
+ let [t, n] = D(e.ctx.getInitialExpanded(e.indent)), [r, i] = D(!e.ctx.compact), a = e.indent >= 2 ? 5 : va;
3510
3592
  return N(() => {
3511
- let o = e.value, s = Array.isArray(o), c = !s && Yi(o), l = e.key !== void 0 || e.index !== void 0, u = s && o.length > 0 || c && Object.keys(o).length > 0, d = u && A(z, {
3593
+ let o = e.value, s = Array.isArray(o), c = !s && Qi(o), l = e.key !== void 0 || e.index !== void 0, u = s && o.length > 0 || c && Object.keys(o).length > 0, d = u && A(z, {
3512
3594
  onClick: () => {
3513
3595
  n(() => !t());
3514
3596
  },
@@ -3524,9 +3606,9 @@ var Xi = /*#__PURE__*/ P("<div class=key><span>"), Zi = /*#__PURE__*/ P("<div cl
3524
3606
  }
3525
3607
  });
3526
3608
  return [l && (() => {
3527
- var t = Xi(), n = t.firstChild;
3609
+ var t = $i(), n = t.firstChild;
3528
3610
  return t.$$click = (e) => {
3529
- e.shiftKey && Or(o);
3611
+ e.shiftKey && kr(o);
3530
3612
  }, R(t, s || c ? d : null, n), R(n, () => e.key || e.index), O((n) => {
3531
3613
  var r = `${e.key ? `${e.key}\n` : ""}Shift + Click to copy value`, i = e.index !== void 0;
3532
3614
  return r !== n.e && F(t, "title", n.e = r), i !== n.t && t.classList.toggle("index", n.t = i), n;
@@ -3535,30 +3617,30 @@ var Xi = /*#__PURE__*/ P("<div class=key><span>"), Zi = /*#__PURE__*/ P("<div cl
3535
3617
  t: void 0
3536
3618
  }), t;
3537
3619
  })(), N(() => N(() => !!(l && u && !t()))() ? (() => {
3538
- var e = Zi();
3620
+ var e = ea();
3539
3621
  return e.$$click = () => {
3540
3622
  n(() => !0);
3541
- }, R(e, () => s ? `[…] ${o.length} items` : [N(() => `{…} ${Object.keys(o).length} props`), N(() => Ca(o))], null), R(e, A(_a, { value: o }), null), e;
3623
+ }, R(e, () => s ? `[…] ${o.length} items` : [N(() => `{…} ${Object.keys(o).length} props`), N(() => Ea(o))], null), R(e, A(ba, { value: o }), null), e;
3542
3624
  })() : (() => {
3543
- if (s && o.length === 0) return Qi();
3544
- if (c && Object.keys(o).length === 0) return $i();
3625
+ if (s && o.length === 0) return ta();
3626
+ if (c && Object.keys(o).length === 0) return na();
3545
3627
  if (s || c) {
3546
3628
  let c = s ? o.map((e) => [null, e]) : Object.entries(o), u = s ? ["[", "]"] : ["{", "}"], f = s ? `[…] ${c.length} items` : `{…} ${c.length} properties`;
3547
3629
  return [(() => {
3548
- var e = ea();
3630
+ var e = ra();
3549
3631
  return st(e, "click", l ? void 0 : (e) => {
3550
- e.shiftKey ? Or(o) : t() || n(() => !0);
3632
+ e.shiftKey ? kr(o) : t() || n(() => !0);
3551
3633
  }, !0), F(e, "title", l ? void 0 : "Shift + Click to copy value"), R(e, !l && d, null), R(e, (() => {
3552
3634
  var e = N(() => !!t());
3553
3635
  return () => e() ? u[0] : f;
3554
- })(), null), R(e, A(_a, { value: o }), null), e;
3636
+ })(), null), R(e, A(ba, { value: o }), null), e;
3555
3637
  })(), N(() => N(() => !!t())() && [(() => {
3556
- var t = ta();
3638
+ var t = ia();
3557
3639
  return R(t, () => {
3558
3640
  let t = c, n = t.length;
3559
3641
  return r() || (t = t.slice(0, a)), [N(() => t.map(([t, n], r) => (() => {
3560
- var i = ra();
3561
- return R(i, A(va, {
3642
+ var i = oa();
3643
+ return R(i, A(xa, {
3562
3644
  value: n,
3563
3645
  get indent() {
3564
3646
  return e.indent + 1;
@@ -3584,29 +3666,29 @@ var Xi = /*#__PURE__*/ P("<div class=key><span>"), Zi = /*#__PURE__*/ P("<div cl
3584
3666
  }))];
3585
3667
  }), t;
3586
3668
  })(), (() => {
3587
- var e = na();
3669
+ var e = aa();
3588
3670
  return R(e, () => u[1]), e;
3589
3671
  })()])];
3590
3672
  }
3591
- return A(ya, { value: o });
3673
+ return A(Sa, { value: o });
3592
3674
  })())];
3593
3675
  });
3594
- }, ya = (e) => {
3595
- let [t, n] = D(typeof e.value == "string" && e.value.length > ga);
3676
+ }, Sa = (e) => {
3677
+ let [t, n] = D(typeof e.value == "string" && e.value.length > ya);
3596
3678
  return (() => {
3597
- var r = ia();
3679
+ var r = sa();
3598
3680
  return r.$$click = (r) => {
3599
- r.shiftKey ? Or(typeof e.value == "string" ? e.value : String(e.value)) : t() && n(() => !1);
3681
+ r.shiftKey ? kr(typeof e.value == "string" ? e.value : String(e.value)) : t() && n(() => !1);
3600
3682
  }, R(r, (() => {
3601
3683
  var t = N(() => typeof e.value == "string");
3602
- return () => t() && aa();
3684
+ return () => t() && ca();
3603
3685
  })(), null), R(r, (() => {
3604
3686
  var t = N(() => typeof e.value == "number");
3605
- return () => t() ? Y(e.value) : N(() => typeof e.value == "string")() ? e.value : Li(e.value);
3687
+ return () => t() ? Y(e.value) : N(() => typeof e.value == "string")() ? e.value : Bi(e.value);
3606
3688
  })(), null), R(r, (() => {
3607
3689
  var t = N(() => typeof e.value == "string");
3608
- return () => t() && aa();
3609
- })(), null), R(r, A(_a, { get value() {
3690
+ return () => t() && ca();
3691
+ })(), null), R(r, A(ba, { get value() {
3610
3692
  return e.value;
3611
3693
  } }), null), O((n) => {
3612
3694
  var i = !!t(), a = typeof e.value, o = t() ? "Click to show full value\nShift + Click to copy value" : "Shift + Click to copy value";
@@ -3628,7 +3710,7 @@ var Xi = /*#__PURE__*/ P("<div class=key><span>"), Zi = /*#__PURE__*/ P("<div cl
3628
3710
  function _(e) {
3629
3711
  u(() => e), f(() => !0), m(() => p() + 1);
3630
3712
  }
3631
- let v = k(() => Ki(e.value, e.search ? r() : "", a(), s())), y = k(() => Sa(v().value)), b = k(() => {
3713
+ let v = k(() => Yi(e.value, e.search ? r() : "", a(), s())), y = k(() => Ta(v().value)), ee = k(() => {
3632
3714
  let t = r().trim() !== "", n = l(), i = !!e.compact, a = d() ? null : y();
3633
3715
  return {
3634
3716
  compact: i,
@@ -3638,17 +3720,17 @@ var Xi = /*#__PURE__*/ P("<div class=key><span>"), Zi = /*#__PURE__*/ P("<div cl
3638
3720
  };
3639
3721
  });
3640
3722
  return (() => {
3641
- var n = oa();
3642
- return I(n, ua), R(n, (() => {
3723
+ var n = la();
3724
+ return I(n, pa), R(n, (() => {
3643
3725
  var n = N(() => !!e.search);
3644
3726
  return () => n() && (() => {
3645
- var n = sa(), r = n.firstChild, i = r.firstChild;
3646
- return I(n, da), R(r, A(V, { name: "search" }), i), i.$$input = (e) => g(e.currentTarget.value), R(n, A(z, {
3727
+ var n = ua(), r = n.firstChild, i = r.firstChild;
3728
+ return I(n, ma), R(r, A(V, { name: "search" }), i), i.$$input = (e) => g(e.currentTarget.value), R(n, A(z, {
3647
3729
  class: "toolbar-button",
3648
3730
  get classList() {
3649
3731
  return { active: a() === "keys" };
3650
3732
  },
3651
- title: Ni,
3733
+ title: Ii,
3652
3734
  onClick: () => {
3653
3735
  o(() => a() === "keys" ? "text" : "keys");
3654
3736
  },
@@ -3704,7 +3786,7 @@ var Xi = /*#__PURE__*/ P("<div class=key><span>"), Zi = /*#__PURE__*/ P("<div cl
3704
3786
  class: "toolbar-button",
3705
3787
  title: "Copy visible value as JSON",
3706
3788
  onClick: () => {
3707
- Or(v().value);
3789
+ kr(v().value);
3708
3790
  },
3709
3791
  get children() {
3710
3792
  return A(V, { name: "copy" });
@@ -3714,26 +3796,26 @@ var Xi = /*#__PURE__*/ P("<div class=key><span>"), Zi = /*#__PURE__*/ P("<div cl
3714
3796
  })(), null), R(n, (() => {
3715
3797
  var e = N(() => !!v().message);
3716
3798
  return () => e() && (() => {
3717
- var e = oa();
3718
- return I(e, fa), R(e, () => v().message), e;
3799
+ var e = la();
3800
+ return I(e, ha), R(e, () => v().message), e;
3719
3801
  })();
3720
3802
  })(), null), R(n, (() => {
3721
3803
  var e = N(() => !!v().isEmpty);
3722
3804
  return () => e() ? (() => {
3723
- var e = ca();
3724
- return I(e, pa), e;
3805
+ var e = da();
3806
+ return I(e, ga), e;
3725
3807
  })() : A(M, {
3726
3808
  get when() {
3727
3809
  return {
3728
3810
  revision: p(),
3729
3811
  result: v(),
3730
- treeCtx: b()
3812
+ treeCtx: ee()
3731
3813
  };
3732
3814
  },
3733
3815
  keyed: !0,
3734
3816
  children: ({ result: e, treeCtx: t }) => (() => {
3735
- var n = oa();
3736
- return I(n, ma), R(n, A(va, {
3817
+ var n = la();
3818
+ return I(n, _a), R(n, A(xa, {
3737
3819
  get value() {
3738
3820
  return e.value;
3739
3821
  },
@@ -3744,43 +3826,43 @@ var Xi = /*#__PURE__*/ P("<div class=key><span>"), Zi = /*#__PURE__*/ P("<div cl
3744
3826
  });
3745
3827
  })(), null), n;
3746
3828
  })();
3747
- }, ba = 500, xa = 30;
3748
- function Sa(e) {
3829
+ }, Ca = 500, wa = 30;
3830
+ function Ta(e) {
3749
3831
  let t = [e], n = 0, r = 0;
3750
- for (; t.length > 0 && r < xa;) {
3832
+ for (; t.length > 0 && r < wa;) {
3751
3833
  let e = [];
3752
3834
  for (let i of t) {
3753
- let t = Array.isArray(i) ? i : Yi(i) ? Object.values(i) : null;
3835
+ let t = Array.isArray(i) ? i : Qi(i) ? Object.values(i) : null;
3754
3836
  if (t) {
3755
- for (let i of t) if (e.push(i), n + e.length > ba) return Math.max(r, 1);
3837
+ for (let i of t) if (e.push(i), n + e.length > Ca) return Math.max(r, 1);
3756
3838
  }
3757
3839
  }
3758
3840
  n += e.length, t = e, r += 1;
3759
3841
  }
3760
3842
  return null;
3761
3843
  }
3762
- function Ca(e) {
3844
+ function Ea(e) {
3763
3845
  if ("id" in e) return (() => {
3764
- var t = la();
3846
+ var t = fa();
3765
3847
  return t.firstChild, R(t, () => String(e.id), null), t;
3766
3848
  })();
3767
3849
  let t = Object.keys(e);
3768
3850
  for (let n of t) if (n.startsWith("id_")) {
3769
3851
  let t = e[n];
3770
3852
  if (typeof t == "string" || typeof t == "number") return (() => {
3771
- var e = la();
3853
+ var e = fa();
3772
3854
  return e.firstChild, R(e, t, null), e;
3773
3855
  })();
3774
3856
  }
3775
3857
  return "key" in e ? (() => {
3776
- var t = la();
3858
+ var t = fa();
3777
3859
  return t.firstChild, R(t, () => String(e.key), null), t;
3778
3860
  })() : "";
3779
3861
  }
3780
3862
  it(["click", "input"]);
3781
3863
  //#endregion
3782
3864
  //#region utils/cx.ts
3783
- function wa(...e) {
3865
+ function Da(...e) {
3784
3866
  let t = [];
3785
3867
  for (let n = 0; n < e.length; n++) {
3786
3868
  let r = e[n];
@@ -3793,7 +3875,7 @@ function wa(...e) {
3793
3875
  }
3794
3876
  //#endregion
3795
3877
  //#region src/components/Section.tsx
3796
- var Ta = /*#__PURE__*/ P("<div><div class=content>"), Ea = /*#__PURE__*/ P("<h1>"), Da = B`
3878
+ var Oa = /*#__PURE__*/ P("<div><div class=content>"), ka = /*#__PURE__*/ P("<h1>"), Aa = B`
3797
3879
  &&& {
3798
3880
  ${W()};
3799
3881
 
@@ -3828,15 +3910,15 @@ var Ta = /*#__PURE__*/ P("<div><div class=content>"), Ea = /*#__PURE__*/ P("<h1>
3828
3910
  }
3829
3911
  }
3830
3912
  `, Z = (e) => (() => {
3831
- var t = Ta(), n = t.firstChild;
3913
+ var t = Oa(), n = t.firstChild;
3832
3914
  return R(t, (() => {
3833
3915
  var t = N(() => !!e.title);
3834
3916
  return () => t() && (() => {
3835
- var t = Ea();
3917
+ var t = ka();
3836
3918
  return R(t, () => e.title), t;
3837
3919
  })();
3838
- })(), n), R(n, () => e.children), O(() => I(t, wa(Da, e.class))), t;
3839
- })(), Oa = /*#__PURE__*/ P("<div>"), ka = /*#__PURE__*/ P("<div class=row><div class=name></div><div class=value>"), Aa = B`
3920
+ })(), n), R(n, () => e.children), O(() => I(t, Da(Aa, e.class))), t;
3921
+ })(), ja = /*#__PURE__*/ P("<div>"), Ma = /*#__PURE__*/ P("<div class=row><div class=name></div><div class=value>"), Na = B`
3840
3922
  &&& {
3841
3923
  display: grid;
3842
3924
  grid-template-columns: auto 1fr;
@@ -3864,24 +3946,24 @@ var Ta = /*#__PURE__*/ P("<div><div class=content>"), Ea = /*#__PURE__*/ P("<h1>
3864
3946
  opacity: 0.7;
3865
3947
  }
3866
3948
  }
3867
- `, ja = (e) => (() => {
3868
- var t = Oa();
3869
- return I(t, Aa), R(t, A(Ge, {
3949
+ `, Pa = (e) => (() => {
3950
+ var t = ja();
3951
+ return I(t, Na), R(t, A(Ge, {
3870
3952
  get each() {
3871
3953
  return qt(e.rows);
3872
3954
  },
3873
3955
  children: (e) => (() => {
3874
- var t = ka(), n = t.firstChild, r = n.nextSibling;
3956
+ var t = Ma(), n = t.firstChild, r = n.nextSibling;
3875
3957
  return R(n, () => e().name), R(r, () => e().value), t;
3876
3958
  })()
3877
3959
  })), t;
3878
- })(), Ma = [{
3960
+ })(), Fa = [{
3879
3961
  type: "json",
3880
3962
  name: "payload"
3881
- }], Na = 0, Pa = "app-devtools-caller-history";
3882
- function Fa(e) {
3963
+ }], Ia = 0, La = "app-devtools-caller-history";
3964
+ function Ra(e) {
3883
3965
  if (typeof e.payloadText == "string") return e.payloadText === "" ? {} : { payload: e.payloadText };
3884
- if (Ra(e.inputValues)) {
3966
+ if (Va(e.inputValues)) {
3885
3967
  let t = {};
3886
3968
  for (let [n, r] of Object.entries(e.inputValues)) {
3887
3969
  if (typeof r != "string") return null;
@@ -3891,18 +3973,18 @@ function Fa(e) {
3891
3973
  }
3892
3974
  return null;
3893
3975
  }
3894
- function Ia() {
3976
+ function za() {
3895
3977
  try {
3896
- let e = window.sessionStorage.getItem(Pa);
3978
+ let e = window.sessionStorage.getItem(La);
3897
3979
  if (!e) return [];
3898
3980
  let t = JSON.parse(e);
3899
- if (!za(t)) return [];
3981
+ if (!Ha(t)) return [];
3900
3982
  let n = [];
3901
- for (let e of t) if (Ra(e) && typeof e.path == "string" && typeof e.method == "string") {
3902
- let t = Fa(e);
3983
+ for (let e of t) if (Va(e) && typeof e.path == "string" && typeof e.method == "string") {
3984
+ let t = Ra(e);
3903
3985
  if (!t) continue;
3904
- Na += 1, n.push({
3905
- id: Na,
3986
+ Ia += 1, n.push({
3987
+ id: Ia,
3906
3988
  path: e.path,
3907
3989
  method: e.method,
3908
3990
  inputValues: t,
@@ -3914,9 +3996,9 @@ function Ia() {
3914
3996
  return [];
3915
3997
  }
3916
3998
  }
3917
- function La(e) {
3999
+ function Ba(e) {
3918
4000
  try {
3919
- window.sessionStorage.setItem(Pa, JSON.stringify(e.slice(0, 5).map(({ path: e, method: t, inputValues: n, callerName: r }) => ({
4001
+ window.sessionStorage.setItem(La, JSON.stringify(e.slice(0, 5).map(({ path: e, method: t, inputValues: n, callerName: r }) => ({
3920
4002
  path: e,
3921
4003
  method: t,
3922
4004
  inputValues: n,
@@ -3924,10 +4006,10 @@ function La(e) {
3924
4006
  }))));
3925
4007
  } catch {}
3926
4008
  }
3927
- function Ra(e) {
4009
+ function Va(e) {
3928
4010
  return typeof e == "object" && !!e && !Array.isArray(e);
3929
4011
  }
3930
- function za(e) {
4012
+ function Ha(e) {
3931
4013
  return Array.isArray(e);
3932
4014
  }
3933
4015
  var [Q, $] = Tn({
@@ -3939,20 +4021,20 @@ var [Q, $] = Tn({
3939
4021
  isLoading: !1,
3940
4022
  sendError: null,
3941
4023
  selectedResultId: null,
3942
- history: Ia(),
4024
+ history: za(),
3943
4025
  resultsHistory: []
3944
4026
  });
3945
- function Ba(e) {
4027
+ function Ua(e) {
3946
4028
  $("callers", e);
3947
4029
  }
3948
- var Va = [
4030
+ var Wa = [
3949
4031
  "GET",
3950
4032
  "POST",
3951
4033
  "PUT",
3952
4034
  "PATCH",
3953
4035
  "DELETE"
3954
- ], Ha = 30, Ua = 30, Wa = 0;
3955
- function Ga(e) {
4036
+ ], Ga = 30, Ka = 30, qa = 0;
4037
+ function Ja(e) {
3956
4038
  let t = e.trim();
3957
4039
  if (t === "") return null;
3958
4040
  try {
@@ -3961,34 +4043,34 @@ function Ga(e) {
3961
4043
  return `Invalid JSON: ${e instanceof Error ? e.message : String(e)}`;
3962
4044
  }
3963
4045
  }
3964
- function Ka(e) {
4046
+ function Ya(e) {
3965
4047
  return e === void 0 ? "" : typeof e == "string" ? e : e.value;
3966
4048
  }
3967
- function qa(e) {
4049
+ function Xa(e) {
3968
4050
  let t = {};
3969
4051
  for (let n of e) {
3970
4052
  let e = Q.inputValues[n.name] ?? "";
3971
- n.type === "json" ? e = e.trim() : n.type === "select" && e === "" && (e = Ka(n.options[0])), t[n.name] = e;
4053
+ n.type === "json" ? e = e.trim() : n.type === "select" && e === "" && (e = Ya(n.options[0])), t[n.name] = e;
3972
4054
  }
3973
4055
  return t;
3974
4056
  }
3975
- function Ja(e, t) {
4057
+ function Za(e, t) {
3976
4058
  let n = /* @__PURE__ */ new Set([...Object.keys(e), ...Object.keys(t)]);
3977
4059
  for (let r of n) if ((e[r] ?? "").trim() !== (t[r] ?? "").trim()) return !1;
3978
4060
  return !0;
3979
4061
  }
3980
- async function Ya() {
4062
+ async function Qa() {
3981
4063
  if (Q.isLoading) return;
3982
4064
  let e = Q.callers[Q.selectedCallerIdx];
3983
4065
  if (!e) return;
3984
- let t = Q.path.trim(), n = Q.method, r = e.name, i = !e.inputs, a = e.inputs ?? Ma;
4066
+ let t = Q.path.trim(), n = Q.method, r = e.name, i = !e.inputs, a = e.inputs ?? Fa;
3985
4067
  if (!t) {
3986
4068
  $("sendError", "The request path is empty");
3987
4069
  return;
3988
4070
  }
3989
- let o = qa(a);
4071
+ let o = Xa(a);
3990
4072
  for (let e of a) if (e.type === "json") {
3991
- let t = Ga(o[e.name] ?? "");
4073
+ let t = Ja(o[e.name] ?? "");
3992
4074
  if (t) {
3993
4075
  $("sendError", `${e.name}: ${t}`);
3994
4076
  return;
@@ -4008,18 +4090,18 @@ async function Ya() {
4008
4090
  s = e;
4009
4091
  }
4010
4092
  let c = Q.history[0];
4011
- (!c || c.path !== t || c.method !== n || c.callerName !== r || !Ja(c.inputValues, o)) && (Na += 1, $("history", (e) => [{
4012
- id: Na,
4093
+ (!c || c.path !== t || c.method !== n || c.callerName !== r || !Za(c.inputValues, o)) && (Ia += 1, $("history", (e) => [{
4094
+ id: Ia,
4013
4095
  path: t,
4014
4096
  method: n,
4015
4097
  inputValues: o,
4016
4098
  callerName: r
4017
- }, ...e].slice(0, Ha)), La(Q.history)), $({ isLoading: !0 });
4099
+ }, ...e].slice(0, Ga)), Ba(Q.history)), $({ isLoading: !0 });
4018
4100
  let l = Date.now();
4019
4101
  function u(e) {
4020
- Wa += 1;
4102
+ qa += 1;
4021
4103
  let i = {
4022
- id: Wa,
4104
+ id: qa,
4023
4105
  path: t,
4024
4106
  method: n,
4025
4107
  inputValues: o,
@@ -4031,7 +4113,7 @@ async function Ya() {
4031
4113
  $({
4032
4114
  isLoading: !1,
4033
4115
  selectedResultId: i.id
4034
- }), $("resultsHistory", (e) => [i, ...e].slice(0, Ua));
4116
+ }), $("resultsHistory", (e) => [i, ...e].slice(0, Ka));
4035
4117
  }
4036
4118
  try {
4037
4119
  let r = await e.call({
@@ -4054,19 +4136,19 @@ async function Ya() {
4054
4136
  });
4055
4137
  }
4056
4138
  }
4057
- function Xa(e) {
4139
+ function $a(e) {
4058
4140
  let t = Q.callers.findIndex((t) => t.name === e);
4059
4141
  t !== -1 && $("selectedCallerIdx", t);
4060
4142
  }
4061
- function Za(e) {
4143
+ function eo(e) {
4062
4144
  $({
4063
4145
  path: e.path,
4064
4146
  method: e.method,
4065
4147
  inputValues: { ...e.inputValues },
4066
4148
  sendError: null
4067
- }), Xa(e.callerName);
4149
+ }), $a(e.callerName);
4068
4150
  }
4069
- function Qa(e) {
4151
+ function to(e) {
4070
4152
  let t = Q.callers[Q.selectedCallerIdx], n = e.method || "POST", r = e.path;
4071
4153
  $({
4072
4154
  method: n,
@@ -4077,75 +4159,75 @@ function Qa(e) {
4077
4159
  payload: e.payload
4078
4160
  }) : e.payload === void 0 || e.payload === null ? {} : { payload: JSON.stringify(e.payload, null, 2) },
4079
4161
  sendError: null
4080
- }), Qr("selectedPage", "caller");
4162
+ }), $r("selectedPage", "caller");
4081
4163
  }
4082
4164
  //#endregion
4083
4165
  //#region src/utils/getUnusedResponseData.ts
4084
- var $a = Symbol("wildcard");
4085
- function eo(e) {
4166
+ var no = Symbol("wildcard");
4167
+ function ro(e) {
4086
4168
  let t = [];
4087
4169
  for (let n of e.split(".")) {
4088
4170
  let e = n.indexOf("["), r = e === -1 ? n : n.slice(0, e);
4089
4171
  r && t.push(r);
4090
4172
  for (let e of n.matchAll(/\[(\*|\d+)\]/g)) {
4091
4173
  let n = e[1];
4092
- n === "*" ? t.push($a) : n !== void 0 && t.push(Number(n));
4174
+ n === "*" ? t.push(no) : n !== void 0 && t.push(Number(n));
4093
4175
  }
4094
4176
  }
4095
4177
  return t;
4096
4178
  }
4097
- function to(e) {
4179
+ function io(e) {
4098
4180
  return typeof e == "object" && !!e && !Array.isArray(e);
4099
4181
  }
4100
- function no(e) {
4182
+ function ao(e) {
4101
4183
  return Array.isArray(e);
4102
4184
  }
4103
- function ro(e, t, n) {
4185
+ function oo(e, t, n) {
4104
4186
  let r = t[n];
4105
4187
  if (r === void 0) return e;
4106
- if (r === $a) return no(e) ? e.map((e) => ro(e, t, n + 1)) : void 0;
4107
- if (typeof r == "number") return no(e) ? ro(e[r], t, n + 1) : void 0;
4108
- if (to(e)) return ro(e[r], t, n + 1);
4188
+ if (r === no) return ao(e) ? e.map((e) => oo(e, t, n + 1)) : void 0;
4189
+ if (typeof r == "number") return ao(e) ? oo(e[r], t, n + 1) : void 0;
4190
+ if (io(e)) return oo(e[r], t, n + 1);
4109
4191
  }
4110
- function io(e, t) {
4111
- return ro(e, eo(t), 0);
4192
+ function so(e, t) {
4193
+ return oo(e, ro(t), 0);
4112
4194
  }
4113
- function ao(e, t) {
4195
+ function co(e, t) {
4114
4196
  let n = {};
4115
- for (let r of t) n[r] = io(e, r);
4197
+ for (let r of t) n[r] = so(e, r);
4116
4198
  return n;
4117
4199
  }
4118
- function oo(e, t) {
4200
+ function lo(e, t) {
4119
4201
  let n = 0;
4120
4202
  for (let r of t) {
4121
- let t = io(e, r);
4203
+ let t = so(e, r);
4122
4204
  t !== void 0 && (n += nn(() => JSON.stringify(t).length) || 0);
4123
4205
  }
4124
4206
  return n;
4125
4207
  }
4126
4208
  //#endregion
4127
4209
  //#region src/utils/requestToCurl.ts
4128
- function so(e) {
4210
+ function uo(e) {
4129
4211
  return `'${e.replaceAll("'", "'\\''")}'`;
4130
4212
  }
4131
- function co(e, t = {}) {
4132
- let n = e.path.startsWith("http://") || e.path.startsWith("https://") ? e.path : `${window.location.origin}/${e.path}`, r = e.method?.toUpperCase() || (e.payload !== void 0 && e.payload !== null ? "POST" : "GET"), i = [`curl ${so(n)}`];
4213
+ function fo(e, t = {}) {
4214
+ let n = e.path.startsWith("http://") || e.path.startsWith("https://") ? e.path : `${window.location.origin}/${e.path}`, r = e.method?.toUpperCase() || (e.payload !== void 0 && e.payload !== null ? "POST" : "GET"), i = [`curl ${uo(n)}`];
4133
4215
  r !== "GET" && i.push(`-X ${r}`);
4134
4216
  let a = Object.entries(e.headers || {});
4135
4217
  for (let [e, n] of a) {
4136
4218
  let r = t.maskSensitiveData && !zn(e) ? "<masked>" : n;
4137
- i.push(`-H ${so(`${e}: ${r}`)}`);
4219
+ i.push(`-H ${uo(`${e}: ${r}`)}`);
4138
4220
  }
4139
4221
  if (e.payload !== void 0 && e.payload !== null && r !== "GET") {
4140
- a.some(([e]) => e.toLowerCase() === "content-type") || i.push(`-H ${so("Content-Type: application/json")}`);
4222
+ a.some(([e]) => e.toLowerCase() === "content-type") || i.push(`-H ${uo("Content-Type: application/json")}`);
4141
4223
  let n = t.maskSensitiveData ? Un(e.payload).value : e.payload;
4142
- i.push(`--data ${so(JSON.stringify(n))}`);
4224
+ i.push(`--data ${uo(JSON.stringify(n))}`);
4143
4225
  }
4144
4226
  return i.join(" \\\n ");
4145
4227
  }
4146
4228
  //#endregion
4147
4229
  //#region src/pages/api-explorer/RequestDetails.tsx
4148
- var lo = /*#__PURE__*/ P("<div>"), uo = /*#__PURE__*/ P("<div class=warning-item><div class=warning-content><span>"), fo = /*#__PURE__*/ P("<h1><span class=type></span><span class=separator>|"), po = /*#__PURE__*/ P("<div class=tags><div class=actions>"), mo = /*#__PURE__*/ P("<div class=details>"), ho = /*#__PURE__*/ P("<span class=separator>|"), go = /*#__PURE__*/ P("<h2>"), _o = /*#__PURE__*/ P("<div class=method>"), vo = /*#__PURE__*/ P("<div class=code>"), yo = /*#__PURE__*/ P("<div class=\"tag error\">Has Error"), bo = /*#__PURE__*/ P("<div class=\"tag warning\">"), xo = /*#__PURE__*/ P("<div class=\"tag pending\">Pending"), So = /*#__PURE__*/ P("<div class=tag>"), Co = /*#__PURE__*/ P("<div class=backdrop>"), wo = /*#__PURE__*/ P("<div class=menu>"), To = /*#__PURE__*/ P("<span>pending…"), Eo = /*#__PURE__*/ P("<span> ms"), Do = /*#__PURE__*/ P("<span>"), Oo = B`
4230
+ var po = /*#__PURE__*/ P("<div>"), mo = /*#__PURE__*/ P("<div class=warning-item><div class=warning-content><span>"), ho = /*#__PURE__*/ P("<h1><span class=type></span><span class=separator>|"), go = /*#__PURE__*/ P("<div class=tags><div class=actions>"), _o = /*#__PURE__*/ P("<div class=details>"), vo = /*#__PURE__*/ P("<span class=separator>|"), yo = /*#__PURE__*/ P("<h2>"), bo = /*#__PURE__*/ P("<div class=method>"), xo = /*#__PURE__*/ P("<div class=code>"), So = /*#__PURE__*/ P("<div class=\"tag error\">Has Error"), Co = /*#__PURE__*/ P("<div class=\"tag warning\">"), wo = /*#__PURE__*/ P("<div class=\"tag pending\">Pending"), To = /*#__PURE__*/ P("<div class=tag>"), Eo = /*#__PURE__*/ P("<div class=backdrop>"), Do = /*#__PURE__*/ P("<div class=menu>"), Oo = /*#__PURE__*/ P("<span>pending…"), ko = /*#__PURE__*/ P("<span> ms"), Ao = /*#__PURE__*/ P("<span>"), jo = B`
4149
4231
  &&& {
4150
4232
  ${W()};
4151
4233
  padding-left: 10px;
@@ -4247,7 +4329,7 @@ var lo = /*#__PURE__*/ P("<div>"), uo = /*#__PURE__*/ P("<div class=warning-item
4247
4329
  padding-bottom: 20px;
4248
4330
  }
4249
4331
  }
4250
- `, ko = B`
4332
+ `, Mo = B`
4251
4333
  &&& {
4252
4334
  ${W({ align: "left" })};
4253
4335
  gap: 6px;
@@ -4272,7 +4354,7 @@ var lo = /*#__PURE__*/ P("<div>"), uo = /*#__PURE__*/ P("<div class=warning-item
4272
4354
  }
4273
4355
  }
4274
4356
  }
4275
- `, Ao = B`
4357
+ `, No = B`
4276
4358
  &&& {
4277
4359
  position: relative;
4278
4360
 
@@ -4309,11 +4391,11 @@ var lo = /*#__PURE__*/ P("<div>"), uo = /*#__PURE__*/ P("<div class=warning-item
4309
4391
  }
4310
4392
  }
4311
4393
  }
4312
- `, jo = B`
4394
+ `, Po = B`
4313
4395
  &&& {
4314
4396
  --json-toolbar-bleed: 10px;
4315
4397
  }
4316
- `, Mo = B`
4398
+ `, Fo = B`
4317
4399
  &&& {
4318
4400
  ${U({ gap: 20 })};
4319
4401
  color: ${G.secondary.var};
@@ -4333,7 +4415,7 @@ var lo = /*#__PURE__*/ P("<div>"), uo = /*#__PURE__*/ P("<div class=warning-item
4333
4415
  }
4334
4416
  }
4335
4417
  }
4336
- `, No = () => {
4418
+ `, Io = () => {
4337
4419
  let t = k(() => q.selectedCall), n = k(() => q.selectedRequest), r = k(() => q.selectedTab || "summary"), i = tn(() => {
4338
4420
  let e;
4339
4421
  e = t() ? H.calls[t()] : H.calls[Jn.value];
@@ -4350,21 +4432,21 @@ var lo = /*#__PURE__*/ P("<div>"), uo = /*#__PURE__*/ P("<div class=warning-item
4350
4432
  return { selected: _.value === e };
4351
4433
  },
4352
4434
  onClick: () => {
4353
- Qr("selectedTab", e);
4435
+ $r("selectedTab", e);
4354
4436
  },
4355
4437
  children: t
4356
4438
  });
4357
4439
  }
4358
4440
  let o = tn(() => {
4359
4441
  let e = i.value;
4360
- return e ? Zr.value ? e.headers ?? null : Rn(e) : null;
4442
+ return e ? Qr.value ? e.headers ?? null : Rn(e) : null;
4361
4443
  }), s = tn(() => {
4362
4444
  let e = i.value;
4363
4445
  return e?.payload ? Un(e.payload) : null;
4364
- }), c = tn(() => Zr.value ? i.value?.payload : s.value?.value), l = en(!1);
4446
+ }), c = tn(() => Qr.value ? i.value?.payload : s.value?.value), l = en(!1);
4365
4447
  function u(e) {
4366
4448
  let t = i.value;
4367
- t && Or(co(t, { maskSensitiveData: e })), l.value = !1;
4449
+ t && kr(fo(t, { maskSensitiveData: e })), l.value = !1;
4368
4450
  }
4369
4451
  function d(e) {
4370
4452
  return Y(e, {
@@ -4377,7 +4459,7 @@ var lo = /*#__PURE__*/ P("<div>"), uo = /*#__PURE__*/ P("<div class=warning-item
4377
4459
  let f = tn(() => i.value?.response ? d(JSON.stringify(i.value.response).length) : !1);
4378
4460
  function p() {
4379
4461
  let e = i.value;
4380
- e && Or({
4462
+ e && kr({
4381
4463
  call: e.callName,
4382
4464
  path: e.path,
4383
4465
  method: e.method,
@@ -4392,9 +4474,9 @@ var lo = /*#__PURE__*/ P("<div>"), uo = /*#__PURE__*/ P("<div class=warning-item
4392
4474
  duration: e.duration,
4393
4475
  tags: e.tags,
4394
4476
  warnings: e.warnings,
4395
- payload: Zr.value ? e.payload : Un(e.payload).value,
4477
+ payload: Qr.value ? e.payload : Un(e.payload).value,
4396
4478
  searchParams: e.searchParams,
4397
- headers: (Zr.value ? e.headers : Rn(e)) ?? void 0,
4479
+ headers: (Qr.value ? e.headers : Rn(e)) ?? void 0,
4398
4480
  response: e.response,
4399
4481
  unusedResponseData: e.unusedResponseData,
4400
4482
  metadata: e.metadata
@@ -4402,11 +4484,11 @@ var lo = /*#__PURE__*/ P("<div>"), uo = /*#__PURE__*/ P("<div class=warning-item
4402
4484
  }
4403
4485
  function m(e) {
4404
4486
  return (() => {
4405
- var t = lo();
4406
- return I(t, ko), R(t, A(j, {
4487
+ var t = po();
4488
+ return I(t, Mo), R(t, A(j, {
4407
4489
  each: e,
4408
4490
  children: (e) => (() => {
4409
- var t = uo(), n = t.firstChild, r = n.firstChild;
4491
+ var t = mo(), n = t.firstChild, r = n.firstChild;
4410
4492
  return R(t, A(V, { name: "alert-triangle" }), n), R(r, () => e.message), R(n, (() => {
4411
4493
  var t = N(() => e.details !== void 0);
4412
4494
  return () => t() && A(X, {
@@ -4422,11 +4504,11 @@ var lo = /*#__PURE__*/ P("<div>"), uo = /*#__PURE__*/ P("<div class=warning-item
4422
4504
  }
4423
4505
  let h = tn(() => {
4424
4506
  let e = i.value;
4425
- return e?.unusedResponseData?.length ? ao(e.response, e.unusedResponseData) : null;
4507
+ return e?.unusedResponseData?.length ? co(e.response, e.unusedResponseData) : null;
4426
4508
  }), g = tn(() => {
4427
4509
  let e = i.value;
4428
4510
  if (!e?.unusedResponseData?.length || !e.response) return !1;
4429
- let t = oo(e.response, e.unusedResponseData);
4511
+ let t = lo(e.response, e.unusedResponseData);
4430
4512
  if (t === 0) return !1;
4431
4513
  let n = JSON.stringify(e.response).length, r = n > 0 ? Math.round(t / n * 100) : 0;
4432
4514
  return `${d(t)} (${r}% of response)`;
@@ -4435,45 +4517,45 @@ var lo = /*#__PURE__*/ P("<div>"), uo = /*#__PURE__*/ P("<div class=warning-item
4435
4517
  return !e || r() === "payload" && !e.payload || r() === "urlParams" && !e.searchParams || r() === "unusedData" && !h.value || r() === "warnings" && !e.warnings?.length || r() === "metadata" && !e.metadata || r() === "headers" && !o.value ? "summary" : r();
4436
4518
  });
4437
4519
  return (() => {
4438
- var t = lo();
4439
- return I(t, Oo), R(t, (() => {
4520
+ var t = po();
4521
+ return I(t, jo), R(t, (() => {
4440
4522
  var t = N(() => !!i.value);
4441
4523
  return () => t() && [
4442
4524
  (() => {
4443
- var e = fo(), t = e.firstChild;
4525
+ var e = ho(), t = e.firstChild;
4444
4526
  return t.nextSibling, R(t, (() => {
4445
4527
  var e = N(() => i.value.type === "ws");
4446
4528
  return () => e() ? `WS ${i.value.subType}` : "API";
4447
4529
  })()), R(e, () => i.value.callName, null), R(e, (() => {
4448
4530
  var e = N(() => !!i.value.alias);
4449
- return () => e() && ho();
4531
+ return () => e() && vo();
4450
4532
  })(), null), R(e, () => i.value.alias, null), e;
4451
4533
  })(),
4452
4534
  N(() => N(() => i.value.callPath !== i.value.callName)() && (() => {
4453
- var e = go();
4535
+ var e = yo();
4454
4536
  return R(e, () => i.value.callPath), e;
4455
4537
  })()),
4456
4538
  (() => {
4457
- var e = po(), t = e.firstChild;
4539
+ var e = go(), t = e.firstChild;
4458
4540
  return R(e, (() => {
4459
4541
  var e = N(() => !!i.value.method);
4460
4542
  return () => e() && (() => {
4461
- var e = _o();
4543
+ var e = bo();
4462
4544
  return R(e, () => i.value.method), e;
4463
4545
  })();
4464
4546
  })(), t), R(e, (() => {
4465
4547
  var e = N(() => !!i.value.code);
4466
4548
  return () => e() && (() => {
4467
- var e = vo();
4549
+ var e = xo();
4468
4550
  return R(e, () => i.value.code), O(() => e.classList.toggle("error", i.value.code >= 400)), e;
4469
4551
  })();
4470
4552
  })(), t), R(e, (() => {
4471
4553
  var e = N(() => !!i.value.isError);
4472
- return () => e() && yo();
4554
+ return () => e() && So();
4473
4555
  })(), t), R(e, (() => {
4474
4556
  var e = N(() => !!i.value.warnings?.length);
4475
4557
  return () => e() && (() => {
4476
- var e = bo();
4558
+ var e = Co();
4477
4559
  return R(e, A(V, { name: "alert-triangle" }), null), R(e, (() => {
4478
4560
  var e = N(() => i.value.warnings.length === 1);
4479
4561
  return () => e() ? "Has Warning" : `${i.value.warnings.length} Warnings`;
@@ -4481,13 +4563,13 @@ var lo = /*#__PURE__*/ P("<div>"), uo = /*#__PURE__*/ P("<div class=warning-item
4481
4563
  })();
4482
4564
  })(), t), R(e, (() => {
4483
4565
  var e = N(() => i.value.status === "pending");
4484
- return () => e() && xo();
4566
+ return () => e() && wo();
4485
4567
  })(), t), R(e, A(j, {
4486
4568
  get each() {
4487
4569
  return i.value.tags;
4488
4570
  },
4489
4571
  children: (e) => (() => {
4490
- var t = So();
4572
+ var t = To();
4491
4573
  return R(t, e), t;
4492
4574
  })()
4493
4575
  }), t), R(t, A(z, {
@@ -4500,8 +4582,8 @@ var lo = /*#__PURE__*/ P("<div>"), uo = /*#__PURE__*/ P("<div class=warning-item
4500
4582
  }), null), R(t, (() => {
4501
4583
  var e = N(() => i.value.type !== "ws");
4502
4584
  return () => e() && (() => {
4503
- var e = lo();
4504
- return I(e, Ao), R(e, A(z, {
4585
+ var e = po();
4586
+ return I(e, No), R(e, A(z, {
4505
4587
  class: "action-button",
4506
4588
  title: "Copy request as cURL",
4507
4589
  onClick: () => {
@@ -4517,12 +4599,12 @@ var lo = /*#__PURE__*/ P("<div>"), uo = /*#__PURE__*/ P("<div class=warning-item
4517
4599
  }), null), R(e, (() => {
4518
4600
  var e = N(() => !!l.value);
4519
4601
  return () => e() && [(() => {
4520
- var e = Co();
4602
+ var e = Eo();
4521
4603
  return e.$$click = () => {
4522
4604
  l.value = !1;
4523
4605
  }, e;
4524
4606
  })(), (() => {
4525
- var e = wo();
4607
+ var e = Do();
4526
4608
  return R(e, A(z, {
4527
4609
  title: "Sensitive header values and payload fields are masked",
4528
4610
  onClick: () => u(!0),
@@ -4542,7 +4624,7 @@ var lo = /*#__PURE__*/ P("<div>"), uo = /*#__PURE__*/ P("<div class=warning-item
4542
4624
  title: "Modify and resend this request in the caller tab",
4543
4625
  onClick: () => {
4544
4626
  let e = i.value;
4545
- e && Qa(e);
4627
+ e && to(e);
4546
4628
  },
4547
4629
  get children() {
4548
4630
  return [A(V, { name: "send" }), "Modify request"];
@@ -4551,8 +4633,8 @@ var lo = /*#__PURE__*/ P("<div>"), uo = /*#__PURE__*/ P("<div class=warning-item
4551
4633
  })(), null), e;
4552
4634
  })(),
4553
4635
  (() => {
4554
- var e = lo();
4555
- return I(e, Mo), R(e, () => a("summary", "Summary"), null), R(e, (() => {
4636
+ var e = po();
4637
+ return I(e, Fo), R(e, () => a("summary", "Summary"), null), R(e, (() => {
4556
4638
  var e = N(() => !!i.value.payload);
4557
4639
  return () => e() && a("payload", "Payload");
4558
4640
  })(), null), R(e, (() => {
@@ -4573,7 +4655,7 @@ var lo = /*#__PURE__*/ P("<div>"), uo = /*#__PURE__*/ P("<div class=warning-item
4573
4655
  })(), null), e;
4574
4656
  })(),
4575
4657
  (() => {
4576
- var t = mo();
4658
+ var t = _o();
4577
4659
  return R(t, A(Ke, { get children() {
4578
4660
  return [
4579
4661
  A(qe, {
@@ -4635,22 +4717,22 @@ var lo = /*#__PURE__*/ P("<div>"), uo = /*#__PURE__*/ P("<div class=warning-item
4635
4717
  A(Z, {
4636
4718
  title: "Stats",
4637
4719
  get children() {
4638
- return A(ja, { get rows() {
4720
+ return A(Pa, { get rows() {
4639
4721
  return [
4640
4722
  i.value.type !== "ws" && {
4641
4723
  name: "Duration",
4642
4724
  value: i.value.status === "pending" ? (() => {
4643
- var e = To();
4725
+ var e = Oo();
4644
4726
  return O((t) => L(e, "color", G.secondary.var)), e;
4645
4727
  })() : (() => {
4646
- var e = Eo(), t = e.firstChild;
4728
+ var e = ko(), t = e.firstChild;
4647
4729
  return R(e, () => Y(i.value.duration, { maximumFractionDigits: 0 }), t), O((t) => L(e, "color", i.value.duration < 500 ? G.success.var : i.value.duration > 1e3 ? G.error.var : void 0)), e;
4648
4730
  })()
4649
4731
  },
4650
4732
  {
4651
4733
  name: "Start Time",
4652
4734
  value: (() => {
4653
- var t = Do();
4735
+ var t = Ao();
4654
4736
  return R(t, () => `${e(i.value.startTime).format("HH:mm:ss")} (${e(i.value.startTime).fromNow()})`), O(() => F(t, "title", e(i.value.startTime).format("YYYY-MM-DD HH:mm:ss.SSS"))), t;
4655
4737
  })()
4656
4738
  },
@@ -4661,7 +4743,7 @@ var lo = /*#__PURE__*/ P("<div>"), uo = /*#__PURE__*/ P("<div class=warning-item
4661
4743
  !!g.value && {
4662
4744
  name: "Unused Data Size",
4663
4745
  value: (() => {
4664
- var e = Do();
4746
+ var e = Ao();
4665
4747
  return R(e, () => g.value), O((t) => L(e, "color", G.warning.var)), e;
4666
4748
  })()
4667
4749
  }
@@ -4705,7 +4787,7 @@ var lo = /*#__PURE__*/ P("<div>"), uo = /*#__PURE__*/ P("<div class=warning-item
4705
4787
  get children() {
4706
4788
  return A(Z, {
4707
4789
  title: null,
4708
- class: jo,
4790
+ class: Po,
4709
4791
  get children() {
4710
4792
  return A(X, {
4711
4793
  get value() {
@@ -4724,7 +4806,7 @@ var lo = /*#__PURE__*/ P("<div>"), uo = /*#__PURE__*/ P("<div class=warning-item
4724
4806
  get children() {
4725
4807
  return A(Z, {
4726
4808
  title: null,
4727
- class: jo,
4809
+ class: Po,
4728
4810
  get children() {
4729
4811
  return A(X, {
4730
4812
  get value() {
@@ -4743,7 +4825,7 @@ var lo = /*#__PURE__*/ P("<div>"), uo = /*#__PURE__*/ P("<div class=warning-item
4743
4825
  get children() {
4744
4826
  return A(Z, {
4745
4827
  title: null,
4746
- class: jo,
4828
+ class: Po,
4747
4829
  get children() {
4748
4830
  return A(X, {
4749
4831
  get value() {
@@ -4762,7 +4844,7 @@ var lo = /*#__PURE__*/ P("<div>"), uo = /*#__PURE__*/ P("<div class=warning-item
4762
4844
  get children() {
4763
4845
  return A(Z, {
4764
4846
  title: null,
4765
- class: jo,
4847
+ class: Po,
4766
4848
  get children() {
4767
4849
  return A(X, {
4768
4850
  get value() {
@@ -4781,7 +4863,7 @@ var lo = /*#__PURE__*/ P("<div>"), uo = /*#__PURE__*/ P("<div class=warning-item
4781
4863
  get children() {
4782
4864
  return A(Z, {
4783
4865
  title: null,
4784
- class: jo,
4866
+ class: Po,
4785
4867
  get children() {
4786
4868
  return m(i.value.warnings || []);
4787
4869
  }
@@ -4795,7 +4877,7 @@ var lo = /*#__PURE__*/ P("<div>"), uo = /*#__PURE__*/ P("<div class=warning-item
4795
4877
  get children() {
4796
4878
  return A(Z, {
4797
4879
  title: null,
4798
- class: jo,
4880
+ class: Po,
4799
4881
  get children() {
4800
4882
  return A(X, {
4801
4883
  get value() {
@@ -4814,7 +4896,7 @@ var lo = /*#__PURE__*/ P("<div>"), uo = /*#__PURE__*/ P("<div class=warning-item
4814
4896
  get children() {
4815
4897
  return A(Z, {
4816
4898
  title: null,
4817
- class: jo,
4899
+ class: Po,
4818
4900
  get children() {
4819
4901
  return A(X, {
4820
4902
  get value() {
@@ -4836,13 +4918,13 @@ var lo = /*#__PURE__*/ P("<div>"), uo = /*#__PURE__*/ P("<div class=warning-item
4836
4918
  it(["click"]);
4837
4919
  //#endregion
4838
4920
  //#region src/pages/api-explorer/getRequestPayload.tsx
4839
- function Po(e) {
4921
+ function Lo(e) {
4840
4922
  let t = e.alias || e.payload || e.searchParams;
4841
4923
  return !t || Object.keys(t).length === 0 ? "" : typeof t == "string" || typeof t == "number" ? String(t) : JSON.stringify(t);
4842
4924
  }
4843
4925
  //#endregion
4844
4926
  //#region src/pages/api-explorer/Timeline.tsx
4845
- var Fo = /*#__PURE__*/ P("<div><h1>timeline</h1><div>"), Io = /*#__PURE__*/ P("<div>no requests found"), Lo = /*#__PURE__*/ P("<div><span> · "), Ro = /*#__PURE__*/ P("<span class=start-time>"), zo = /*#__PURE__*/ P("<div>"), Bo = /*#__PURE__*/ P("<span class=pending-indicator>pending"), Vo = /*#__PURE__*/ P("<span class=separator>|"), Ho = /*#__PURE__*/ P("<span class=payload>"), Uo = B`
4927
+ var Ro = /*#__PURE__*/ P("<div><h1>timeline</h1><div>"), zo = /*#__PURE__*/ P("<div>no requests found"), Bo = /*#__PURE__*/ P("<div><span> · "), Vo = /*#__PURE__*/ P("<span class=start-time>"), Ho = /*#__PURE__*/ P("<span>"), Uo = /*#__PURE__*/ P("<div>"), Wo = /*#__PURE__*/ P("<span class=pending-indicator>pending"), Go = /*#__PURE__*/ P("<span class=separator>|"), Ko = /*#__PURE__*/ P("<span class=payload>"), qo = B`
4846
4928
  &&& {
4847
4929
  ${W()};
4848
4930
  border-right: 1px solid ${G.white.alpha(.1)};
@@ -4856,13 +4938,13 @@ var Fo = /*#__PURE__*/ P("<div><h1>timeline</h1><div>"), Io = /*#__PURE__*/ P("<
4856
4938
  padding-bottom: 16px;
4857
4939
  }
4858
4940
  }
4859
- `, Wo = B`
4941
+ `, Jo = B`
4860
4942
  &&& {
4861
4943
  ${W()};
4862
4944
  flex: 1 1;
4863
4945
  overflow-y: auto;
4864
4946
  }
4865
- `, Go = B`
4947
+ `, Yo = B`
4866
4948
  &&& {
4867
4949
  font-size: 13px;
4868
4950
  ${W()};
@@ -4916,7 +4998,7 @@ var Fo = /*#__PURE__*/ P("<div><h1>timeline</h1><div>"), Io = /*#__PURE__*/ P("<
4916
4998
  }
4917
4999
  }
4918
5000
  }
4919
- `, Ko = B`
5001
+ `, Xo = B`
4920
5002
  &&& {
4921
5003
  ${U({ gap: 8 })};
4922
5004
  padding: 2px 12px;
@@ -4936,14 +5018,14 @@ var Fo = /*#__PURE__*/ P("<div><h1>timeline</h1><div>"), Io = /*#__PURE__*/ P("<
4936
5018
  flex-shrink: 1;
4937
5019
  }
4938
5020
  }
4939
- `, qo = B`
5021
+ `, Zo = B`
4940
5022
  &&& {
4941
5023
  opacity: 0.4;
4942
5024
  font-size: 14px;
4943
5025
  padding: 12px;
4944
5026
  padding-top: 0;
4945
5027
  }
4946
- `, Jo = () => {
5028
+ `, Qo = () => {
4947
5029
  let t = k(() => {
4948
5030
  let e = q.selectedCall;
4949
5031
  return e ? e ? H.calls[e] : null : H.calls[Jn.value] || null;
@@ -4966,28 +5048,28 @@ var Fo = /*#__PURE__*/ P("<div><h1>timeline</h1><div>"), Io = /*#__PURE__*/ P("<
4966
5048
  return t.sort((e, t) => t.time - e.time);
4967
5049
  }), a = k(() => q.selectedRequest || r()?.[0]?.id);
4968
5050
  return (() => {
4969
- var t = Fo(), n = t.firstChild.nextSibling;
4970
- return I(t, Uo), I(n, Wo), R(n, A(j, {
5051
+ var t = Ro(), n = t.firstChild.nextSibling;
5052
+ return I(t, qo), I(n, Jo), R(n, A(j, {
4971
5053
  get each() {
4972
5054
  return i();
4973
5055
  },
4974
5056
  get fallback() {
4975
5057
  return (() => {
4976
- var e = Io();
4977
- return I(e, qo), e;
5058
+ var e = zo();
5059
+ return I(e, Zo), e;
4978
5060
  })();
4979
5061
  },
4980
5062
  children: (t) => {
4981
5063
  if (t.itemType === "marker") return (() => {
4982
- var n = Lo(), r = n.firstChild, i = r.firstChild;
4983
- return I(n, Ko), R(r, () => t.marker.label, i), R(r, () => e(t.marker.time).format("HH:mm:ss"), null), O(() => F(n, "title", e(t.marker.time).format("HH:mm:ss.SSS"))), n;
5064
+ var n = Bo(), r = n.firstChild, i = r.firstChild;
5065
+ return I(n, Xo), R(r, () => t.marker.label, i), R(r, () => e(t.marker.time).format("HH:mm:ss"), null), O(() => F(n, "title", e(t.marker.time).format("HH:mm:ss.SSS"))), n;
4984
5066
  })();
4985
- let n = t.request, r = e(n.startTime), i = r.format("HH:mm:ss"), o = r.fromNow(), s = Po(n);
5067
+ let n = t.request, r = e(n.startTime), i = r.format("HH:mm:ss"), o = r.fromNow(), s = Lo(n), c = ni(n);
4986
5068
  return (() => {
4987
- var e = zo();
4988
- return I(e, Go), R(e, A(z, {
5069
+ var e = Uo();
5070
+ return I(e, Yo), R(e, A(z, {
4989
5071
  onClick: () => {
4990
- Qr("selectedRequest", n.id);
5072
+ $r("selectedRequest", n.id);
4991
5073
  },
4992
5074
  get classList() {
4993
5075
  return { selected: n.id === a() };
@@ -4995,12 +5077,22 @@ var Fo = /*#__PURE__*/ P("<div><h1>timeline</h1><div>"), Io = /*#__PURE__*/ P("<
4995
5077
  get children() {
4996
5078
  return [
4997
5079
  (() => {
4998
- var e = Ro();
5080
+ var e = Vo();
4999
5081
  return F(e, "title", o), R(e, i), e;
5000
5082
  })(),
5001
- N(() => N(() => n.status === "pending")() && Bo()),
5002
- N(() => !!s && [Vo(), (() => {
5083
+ (() => {
5003
5084
  var e = Ho();
5085
+ return R(e, () => c.label), O((t) => {
5086
+ var n = `${ei} ${c.class}`, r = c.description;
5087
+ return n !== t.e && I(e, t.e = n), r !== t.t && F(e, "title", t.t = r), t;
5088
+ }, {
5089
+ e: void 0,
5090
+ t: void 0
5091
+ }), e;
5092
+ })(),
5093
+ N(() => N(() => n.status === "pending")() && Wo()),
5094
+ N(() => !!s && [Go(), (() => {
5095
+ var e = Ko();
5004
5096
  return F(e, "title", s), R(e, s), e;
5005
5097
  })()])
5006
5098
  ];
@@ -5017,12 +5109,12 @@ var Fo = /*#__PURE__*/ P("<div><h1>timeline</h1><div>"), Io = /*#__PURE__*/ P("<
5017
5109
  }
5018
5110
  })), t;
5019
5111
  })();
5020
- }, Yo = /*#__PURE__*/ P("<div>"), Xo = B`
5112
+ }, $o = /*#__PURE__*/ P("<div>"), es = B`
5021
5113
  &&& {
5022
5114
  display: grid;
5023
5115
  }
5024
- `, Zo = () => {
5025
- let e = Xr({
5116
+ `, ts = () => {
5117
+ let e = Zr({
5026
5118
  storageKey: "api-explorer",
5027
5119
  initialSizes: [
5028
5120
  1,
@@ -5033,7 +5125,7 @@ var Fo = /*#__PURE__*/ P("<div><h1>timeline</h1><div>"), Io = /*#__PURE__*/ P("<
5033
5125
  return se(() => {
5034
5126
  if (q.selectedCall) return;
5035
5127
  let e = null;
5036
- for (let [t, n] of Object.entries(H.calls)) for (let r of n.requests) {
5128
+ for (let [t, n] of Object.entries(H.calls)) if (n.type !== "ws") for (let r of n.requests) {
5037
5129
  if (r.status === "pending") continue;
5038
5130
  let n = r.startTime + r.duration;
5039
5131
  (!e || n > e.loadedTime) && (e = {
@@ -5042,21 +5134,21 @@ var Fo = /*#__PURE__*/ P("<div><h1>timeline</h1><div>"), Io = /*#__PURE__*/ P("<
5042
5134
  loadedTime: n
5043
5135
  });
5044
5136
  }
5045
- e && Qr({
5137
+ e && $r({
5046
5138
  selectedCall: e.callID,
5047
5139
  selectedRequest: e.requestID
5048
5140
  });
5049
5141
  }), (() => {
5050
- var t = Yo();
5051
- return I(t, Xo), R(t, A(bi, {}), null), R(t, A(e.Handle, { index: 0 }), null), R(t, A(Jo, {}), null), R(t, A(e.Handle, { index: 1 }), null), R(t, A(No, {}), null), O((n) => L(t, "grid-template-columns", e.gridTemplateColumns())), t;
5142
+ var t = $o();
5143
+ return I(t, es), R(t, A(Ci, {}), null), R(t, A(e.Handle, { index: 0 }), null), R(t, A(Qo, {}), null), R(t, A(e.Handle, { index: 1 }), null), R(t, A(Io, {}), null), O((n) => L(t, "grid-template-columns", e.gridTemplateColumns())), t;
5052
5144
  })();
5053
- }, Qo = 0;
5054
- function $o() {
5055
- return Qo++;
5145
+ }, ns = 0;
5146
+ function rs() {
5147
+ return ns++;
5056
5148
  }
5057
5149
  //#endregion
5058
5150
  //#region src/components/Select.tsx
5059
- var es = /*#__PURE__*/ P("<label>"), ts = /*#__PURE__*/ P("<div><div class=inputContainer><select>"), ns = /*#__PURE__*/ P("<option value>-- select an option --"), rs = /*#__PURE__*/ P("<option>"), is = B`
5151
+ var is = /*#__PURE__*/ P("<label>"), as = /*#__PURE__*/ P("<div><div class=inputContainer><select>"), os = /*#__PURE__*/ P("<option value>-- select an option --"), ss = /*#__PURE__*/ P("<option>"), cs = B`
5060
5152
  &&& {
5061
5153
  ${W({ align: "left" })};
5062
5154
  width: 100%;
@@ -5107,39 +5199,39 @@ var es = /*#__PURE__*/ P("<label>"), ts = /*#__PURE__*/ P("<div><div class=input
5107
5199
  background: ${G.white.var};
5108
5200
  }
5109
5201
  }
5110
- `, as = (e) => {
5111
- let t = `input${$o()}`;
5202
+ `, ls = (e) => {
5203
+ let t = `input${rs()}`;
5112
5204
  return (() => {
5113
- var n = ts(), r = n.firstChild, i = r.firstChild;
5205
+ var n = as(), r = n.firstChild, i = r.firstChild;
5114
5206
  return R(n, A(M, {
5115
5207
  get when() {
5116
5208
  return e.label;
5117
5209
  },
5118
5210
  get children() {
5119
- var n = es();
5211
+ var n = is();
5120
5212
  return F(n, "for", t), R(n, () => e.label), n;
5121
5213
  }
5122
5214
  }), r), i.addEventListener("change", (t) => {
5123
5215
  t.currentTarget.value && e.onChange(t.currentTarget.value);
5124
5216
  }), F(i, "id", t), R(i, (() => {
5125
5217
  var t = N(() => !e.value);
5126
- return () => t() && ns();
5218
+ return () => t() && os();
5127
5219
  })(), null), R(i, A(j, {
5128
5220
  get each() {
5129
5221
  return e.options;
5130
5222
  },
5131
5223
  children: (e) => (() => {
5132
- var t = rs();
5224
+ var t = ss();
5133
5225
  return R(t, () => e.label), O(() => t.value = e.value), t;
5134
5226
  })()
5135
- }), null), O(() => I(n, wa(is, e.class))), O(() => i.value = e.value ?? ""), n;
5227
+ }), null), O(() => I(n, Da(cs, e.class))), O(() => i.value = e.value ?? ""), n;
5136
5228
  })();
5137
- }, os = /*#__PURE__*/ P("<div><div><h1>history</h1><div class=entries></div></div><div>"), ss = /*#__PURE__*/ P("<div class=empty>no requests sent yet"), cs = /*#__PURE__*/ P("<span class=sender>"), ls = /*#__PURE__*/ P("<span class=method-row><span class=method>"), us = /*#__PURE__*/ P("<span class=path>"), ds = /*#__PURE__*/ P("<div class=empty-state><div>No request callers configured.</div><div>Pass a <code>requestCallers</code> array to <code>initializeDevTools()</code> to enable calling requests from here using your app data fetching mechanisms."), fs = /*#__PURE__*/ P("<div class=form-row><input class=path-input placeholder=\"request path, e.g. /v3/tables\">"), ps = /*#__PURE__*/ P("<div class=input-error>"), ms = /*#__PURE__*/ P("<div><div class=results-list><div class=title>results</div><div class=entries>"), hs = /*#__PURE__*/ P("<div class=input-label>"), gs = /*#__PURE__*/ P("<input class=text-input>"), _s = /*#__PURE__*/ P("<textarea>"), vs = /*#__PURE__*/ P("<span class=row-meta><span class=status></span><span> ms</span><span class=time>"), ys = /*#__PURE__*/ P("<span class=row-sender>via "), bs = /*#__PURE__*/ P("<span class=sender>via "), xs = /*#__PURE__*/ P("<div class=result-detail><div class=detail-header><span class=method></span><span class=path></span></div><div class=detail-meta><span class=status></span><span> ms</span><span class=time></span></div><div class=detail-label>response"), Ss = /*#__PURE__*/ P("<div class=detail-label> sent"), Cs = /*#__PURE__*/ P("<pre class=input-value>"), ws = /*#__PURE__*/ P("<div class=result-error>"), Ts = B`
5229
+ }, us = /*#__PURE__*/ P("<div><div><h1>history</h1><div class=entries></div></div><div>"), ds = /*#__PURE__*/ P("<div class=empty>no requests sent yet"), fs = /*#__PURE__*/ P("<span class=sender>"), ps = /*#__PURE__*/ P("<span class=method-row><span class=method>"), ms = /*#__PURE__*/ P("<span class=path>"), hs = /*#__PURE__*/ P("<div class=empty-state><div>No request callers configured.</div><div>Pass a <code>requestCallers</code> array to <code>initializeDevTools()</code> to enable calling requests from here using your app data fetching mechanisms."), gs = /*#__PURE__*/ P("<div class=form-row><input class=path-input placeholder=\"request path, e.g. /v3/tables\">"), _s = /*#__PURE__*/ P("<div class=input-error>"), vs = /*#__PURE__*/ P("<div><div class=results-list><div class=title>results</div><div class=entries>"), ys = /*#__PURE__*/ P("<div class=input-label>"), bs = /*#__PURE__*/ P("<input class=text-input>"), xs = /*#__PURE__*/ P("<textarea>"), Ss = /*#__PURE__*/ P("<span class=row-meta><span class=status></span><span> ms</span><span class=time>"), Cs = /*#__PURE__*/ P("<span class=row-sender>via "), ws = /*#__PURE__*/ P("<span class=sender>via "), Ts = /*#__PURE__*/ P("<div class=result-detail><div class=detail-header><span class=method></span><span class=path></span></div><div class=detail-meta><span class=status></span><span> ms</span><span class=time></span></div><div class=detail-label>response"), Es = /*#__PURE__*/ P("<div class=detail-label> sent"), Ds = /*#__PURE__*/ P("<pre class=input-value>"), Os = /*#__PURE__*/ P("<div class=result-error>"), ks = B`
5138
5230
  &&& {
5139
5231
  display: grid;
5140
5232
  overflow: hidden;
5141
5233
  }
5142
- `, Es = B`
5234
+ `, As = B`
5143
5235
  &&& {
5144
5236
  ${W()};
5145
5237
  border-right: 1px solid ${G.white.alpha(.1)};
@@ -5203,7 +5295,7 @@ var es = /*#__PURE__*/ P("<label>"), ts = /*#__PURE__*/ P("<div><div class=input
5203
5295
  }
5204
5296
  }
5205
5297
  }
5206
- `, Ds = B`
5298
+ `, js = B`
5207
5299
  &&& {
5208
5300
  ${W({ align: "stretch" })};
5209
5301
  padding: 12px 16px 0;
@@ -5314,7 +5406,7 @@ var es = /*#__PURE__*/ P("<label>"), ts = /*#__PURE__*/ P("<div><div class=input
5314
5406
  }
5315
5407
  }
5316
5408
  }
5317
- `, Os = B`
5409
+ `, Ms = B`
5318
5410
  &&& {
5319
5411
  display: grid;
5320
5412
  flex: 1 1 0;
@@ -5464,16 +5556,16 @@ var es = /*#__PURE__*/ P("<label>"), ts = /*#__PURE__*/ P("<div><div class=input
5464
5556
  }
5465
5557
  }
5466
5558
  }
5467
- `, ks = () => {
5468
- let t = k(() => Q.callers[Q.selectedCallerIdx]), n = k(() => t()?.methods || Va), r = k(() => t()?.inputs ?? Ma), i = Xr({
5559
+ `, Ns = () => {
5560
+ let t = k(() => Q.callers[Q.selectedCallerIdx]), n = k(() => t()?.methods || Wa), r = k(() => t()?.inputs ?? Fa), i = Zr({
5469
5561
  storageKey: "caller",
5470
5562
  initialSizes: [1, 4]
5471
- }), a = Xr({
5563
+ }), a = Zr({
5472
5564
  storageKey: "caller-results",
5473
5565
  initialSizes: [1, 2.5]
5474
5566
  }), o = k(() => {
5475
5567
  for (let e of r()) if (e.type === "json") {
5476
- let t = Ga(Q.inputValues[e.name] ?? "");
5568
+ let t = Ja(Q.inputValues[e.name] ?? "");
5477
5569
  if (t) return t;
5478
5570
  }
5479
5571
  return null;
@@ -5481,54 +5573,54 @@ var es = /*#__PURE__*/ P("<label>"), ts = /*#__PURE__*/ P("<div><div class=input
5481
5573
  let e = Q.path.trim(), t = Q.method;
5482
5574
  return Q.resultsHistory.filter((n) => n.path === e && n.method === t);
5483
5575
  }), c = k(() => {
5484
- let e = Q.path.trim(), n = Q.method, i = t()?.name, a = qa(r());
5485
- return Q.history.find((t) => t.path === e && t.method === n && (!t.callerName || t.callerName === i) && Ja(t.inputValues, a))?.id;
5576
+ let e = Q.path.trim(), n = Q.method, i = t()?.name, a = Xa(r());
5577
+ return Q.history.find((t) => t.path === e && t.method === n && (!t.callerName || t.callerName === i) && Za(t.inputValues, a))?.id;
5486
5578
  }), l = k(() => {
5487
5579
  let e = s();
5488
5580
  return e.find((e) => e.id === Q.selectedResultId) ?? e[0];
5489
5581
  });
5490
5582
  return (() => {
5491
- var t = os(), u = t.firstChild, d = u.firstChild.nextSibling, f = u.nextSibling;
5492
- return I(t, Ts), I(u, Es), R(d, A(j, {
5583
+ var t = us(), u = t.firstChild, d = u.firstChild.nextSibling, f = u.nextSibling;
5584
+ return I(t, ks), I(u, As), R(d, A(j, {
5493
5585
  get each() {
5494
5586
  return Q.history;
5495
5587
  },
5496
5588
  get fallback() {
5497
- return ss();
5589
+ return ds();
5498
5590
  },
5499
5591
  children: (e) => A(z, {
5500
5592
  get classList() {
5501
5593
  return { selected: e.id === c() };
5502
5594
  },
5503
5595
  onClick: () => {
5504
- Za(e);
5596
+ eo(e);
5505
5597
  },
5506
5598
  get children() {
5507
5599
  return [(() => {
5508
- var t = ls(), n = t.firstChild;
5600
+ var t = ps(), n = t.firstChild;
5509
5601
  return R(n, () => e.method), R(t, A(M, {
5510
5602
  get when() {
5511
5603
  return e.callerName;
5512
5604
  },
5513
5605
  get children() {
5514
- var t = cs();
5606
+ var t = fs();
5515
5607
  return R(t, () => e.callerName), t;
5516
5608
  }
5517
5609
  }), null), t;
5518
5610
  })(), (() => {
5519
- var t = us();
5611
+ var t = ms();
5520
5612
  return R(t, () => e.path), t;
5521
5613
  })()];
5522
5614
  }
5523
5615
  })
5524
- })), R(t, A(i.Handle, { index: 0 }), f), I(f, Ds), R(f, (() => {
5616
+ })), R(t, A(i.Handle, { index: 0 }), f), I(f, js), R(f, (() => {
5525
5617
  var t = N(() => Q.callers.length === 0);
5526
- return () => t() ? ds() : [
5618
+ return () => t() ? hs() : [
5527
5619
  (() => {
5528
- var e = fs(), t = e.firstChild;
5620
+ var e = gs(), t = e.firstChild;
5529
5621
  return R(e, (() => {
5530
5622
  var e = N(() => Q.callers.length > 1);
5531
- return () => e() && A(as, {
5623
+ return () => e() && A(ls, {
5532
5624
  class: "caller-select",
5533
5625
  get value() {
5534
5626
  return String(Q.selectedCallerIdx);
@@ -5543,7 +5635,7 @@ var es = /*#__PURE__*/ P("<label>"), ts = /*#__PURE__*/ P("<div><div class=input
5543
5635
  $("selectedCallerIdx", Number(e));
5544
5636
  }
5545
5637
  });
5546
- })(), t), R(e, A(as, {
5638
+ })(), t), R(e, A(ls, {
5547
5639
  class: "method-select",
5548
5640
  get value() {
5549
5641
  return Q.method;
@@ -5558,7 +5650,7 @@ var es = /*#__PURE__*/ P("<label>"), ts = /*#__PURE__*/ P("<div><div class=input
5558
5650
  $("method", e);
5559
5651
  }
5560
5652
  }), t), t.$$keydown = (e) => {
5561
- e.key === "Enter" && Ya();
5653
+ e.key === "Enter" && Qa();
5562
5654
  }, t.$$input = (e) => {
5563
5655
  $({
5564
5656
  path: e.currentTarget.value,
@@ -5570,7 +5662,7 @@ var es = /*#__PURE__*/ P("<label>"), ts = /*#__PURE__*/ P("<div><div class=input
5570
5662
  return Q.isLoading || !!o();
5571
5663
  },
5572
5664
  onClick: () => {
5573
- Ya();
5665
+ Qa();
5574
5666
  },
5575
5667
  get children() {
5576
5668
  return [A(V, { name: "play" }), N(() => Q.isLoading ? "Sending…" : "Send")];
@@ -5587,9 +5679,9 @@ var es = /*#__PURE__*/ P("<label>"), ts = /*#__PURE__*/ P("<div><div class=input
5587
5679
  $("inputValues", e.name, t);
5588
5680
  }
5589
5681
  if (e.type === "select") return [(() => {
5590
- var t = hs();
5682
+ var t = ys();
5591
5683
  return R(t, () => e.label ?? e.name), t;
5592
- })(), A(as, {
5684
+ })(), A(ls, {
5593
5685
  class: "input-select",
5594
5686
  get value() {
5595
5687
  return t() || (typeof e.options[0] == "string" ? e.options[0] : e.options[0]?.value) || "";
@@ -5603,22 +5695,22 @@ var es = /*#__PURE__*/ P("<label>"), ts = /*#__PURE__*/ P("<div><div class=input
5603
5695
  onChange: n
5604
5696
  })];
5605
5697
  if (e.type === "string") return [(() => {
5606
- var t = hs();
5698
+ var t = ys();
5607
5699
  return R(t, () => e.label ?? e.name), t;
5608
5700
  })(), (() => {
5609
- var r = gs();
5701
+ var r = bs();
5610
5702
  return r.$$input = (e) => {
5611
5703
  n(e.currentTarget.value);
5612
5704
  }, O(() => F(r, "placeholder", e.placeholder)), O(() => r.value = t()), r;
5613
5705
  })()];
5614
- let r = k(() => Ga(t()));
5706
+ let r = k(() => Ja(t()));
5615
5707
  return [
5616
5708
  (() => {
5617
- var t = hs();
5709
+ var t = ys();
5618
5710
  return R(t, () => e.label ?? `${e.name} (json)`), t;
5619
5711
  })(),
5620
5712
  (() => {
5621
- var i = _s();
5713
+ var i = xs();
5622
5714
  return i.$$input = (e) => {
5623
5715
  n(e.currentTarget.value);
5624
5716
  }, O((t) => {
@@ -5634,7 +5726,7 @@ var es = /*#__PURE__*/ P("<label>"), ts = /*#__PURE__*/ P("<div><div class=input
5634
5726
  return r();
5635
5727
  },
5636
5728
  get children() {
5637
- var e = ps();
5729
+ var e = _s();
5638
5730
  return R(e, r), e;
5639
5731
  }
5640
5732
  })
@@ -5646,7 +5738,7 @@ var es = /*#__PURE__*/ P("<label>"), ts = /*#__PURE__*/ P("<div><div class=input
5646
5738
  return Q.sendError;
5647
5739
  },
5648
5740
  get children() {
5649
- var e = ps();
5741
+ var e = _s();
5650
5742
  return R(e, () => Q.sendError), e;
5651
5743
  }
5652
5744
  }),
@@ -5655,8 +5747,8 @@ var es = /*#__PURE__*/ P("<label>"), ts = /*#__PURE__*/ P("<div><div class=input
5655
5747
  return s().length > 0;
5656
5748
  },
5657
5749
  get children() {
5658
- var t = ms(), n = t.firstChild.firstChild.nextSibling;
5659
- return I(t, Os), R(n, A(j, {
5750
+ var t = vs(), n = t.firstChild.firstChild.nextSibling;
5751
+ return I(t, Ms), R(n, A(j, {
5660
5752
  get each() {
5661
5753
  return s();
5662
5754
  },
@@ -5670,7 +5762,7 @@ var es = /*#__PURE__*/ P("<label>"), ts = /*#__PURE__*/ P("<div><div class=input
5670
5762
  },
5671
5763
  get children() {
5672
5764
  return [(() => {
5673
- var n = vs(), r = n.firstChild, i = r.nextSibling, a = i.firstChild, o = i.nextSibling;
5765
+ var n = Ss(), r = n.firstChild, i = r.nextSibling, a = i.firstChild, o = i.nextSibling;
5674
5766
  return R(r, () => t.isError ? "error" : "success", null), R(r, (() => {
5675
5767
  var e = N(() => t.status !== void 0);
5676
5768
  return () => e() && ` · ${t.status}`;
@@ -5686,7 +5778,7 @@ var es = /*#__PURE__*/ P("<label>"), ts = /*#__PURE__*/ P("<div><div class=input
5686
5778
  return t.callerName;
5687
5779
  },
5688
5780
  get children() {
5689
- var e = ys();
5781
+ var e = Cs();
5690
5782
  return e.firstChild, R(e, () => t.callerName, null), e;
5691
5783
  }
5692
5784
  })];
@@ -5697,22 +5789,22 @@ var es = /*#__PURE__*/ P("<label>"), ts = /*#__PURE__*/ P("<div><div class=input
5697
5789
  return l();
5698
5790
  },
5699
5791
  keyed: !0,
5700
- children: (e) => A(As, { result: e })
5792
+ children: (e) => A(Ps, { result: e })
5701
5793
  }), null), O((e) => L(t, "grid-template-columns", a.gridTemplateColumns())), t;
5702
5794
  }
5703
5795
  })
5704
5796
  ];
5705
5797
  })()), O((e) => L(t, "grid-template-columns", i.gridTemplateColumns())), t;
5706
5798
  })();
5707
- }, As = (t) => {
5799
+ }, Ps = (t) => {
5708
5800
  let n = k(() => Object.entries(t.result.inputValues).filter(([, e]) => e !== ""));
5709
5801
  return (() => {
5710
- var r = xs(), i = r.firstChild, a = i.firstChild, o = a.nextSibling, s = i.nextSibling, c = s.firstChild, l = c.nextSibling, u = l.firstChild, d = l.nextSibling, f = s.nextSibling;
5802
+ var r = Ts(), i = r.firstChild, a = i.firstChild, o = a.nextSibling, s = i.nextSibling, c = s.firstChild, l = c.nextSibling, u = l.firstChild, d = l.nextSibling, f = s.nextSibling;
5711
5803
  return R(a, () => t.result.method), R(o, () => t.result.path), R(i, A(z, {
5712
5804
  class: "modify-button",
5713
5805
  title: "Load this request into the form",
5714
5806
  onClick: () => {
5715
- Za(t.result);
5807
+ eo(t.result);
5716
5808
  },
5717
5809
  children: "modify"
5718
5810
  }), null), R(c, () => t.result.isError ? "error" : "success", null), R(c, (() => {
@@ -5723,7 +5815,7 @@ var es = /*#__PURE__*/ P("<label>"), ts = /*#__PURE__*/ P("<div><div class=input
5723
5815
  return t.result.callerName;
5724
5816
  },
5725
5817
  get children() {
5726
- var e = bs();
5818
+ var e = ws();
5727
5819
  return e.firstChild, R(e, () => t.result.callerName, null), e;
5728
5820
  }
5729
5821
  }), d), R(d, () => e(t.result.startTime).format("YYYY-MM-DD HH:mm:ss")), R(r, A(j, {
@@ -5731,16 +5823,16 @@ var es = /*#__PURE__*/ P("<label>"), ts = /*#__PURE__*/ P("<div><div class=input
5731
5823
  return n();
5732
5824
  },
5733
5825
  children: ([e, t]) => [(() => {
5734
- var t = Ss(), n = t.firstChild;
5826
+ var t = Es(), n = t.firstChild;
5735
5827
  return R(t, e, n), t;
5736
5828
  })(), (() => {
5737
- var e = Cs();
5829
+ var e = Ds();
5738
5830
  return R(e, t), e;
5739
5831
  })()]
5740
5832
  }), f), R(r, (() => {
5741
5833
  var e = N(() => t.result.error !== null);
5742
5834
  return () => e() ? (() => {
5743
- var e = ws();
5835
+ var e = Os();
5744
5836
  return R(e, () => t.result.error), e;
5745
5837
  })() : A(X, {
5746
5838
  get value() {
@@ -5760,7 +5852,7 @@ var es = /*#__PURE__*/ P("<label>"), ts = /*#__PURE__*/ P("<div><div class=input
5760
5852
  it(["input", "keydown"]);
5761
5853
  //#endregion
5762
5854
  //#region src/pages/logs/LogsPage.tsx
5763
- var js = /*#__PURE__*/ P("<div><h1>logs</h1><div class=toolbar><label class=search><input type=text placeholder=\"Search logs\"></label></div><div class=list>"), Ms = /*#__PURE__*/ P("<div class=empty>"), Ns = /*#__PURE__*/ P("<div class=marker><span class=time></span><span class=label></span><div class=line>"), Ps = /*#__PURE__*/ P("<span class=time>"), Fs = /*#__PURE__*/ P("<span class=badge>"), Is = /*#__PURE__*/ P("<span class=message>"), Ls = /*#__PURE__*/ P("<span class=copy title=\"Copy log as JSON\">"), Rs = /*#__PURE__*/ P("<div class=log>"), zs = /*#__PURE__*/ P("<span class=category>"), Bs = /*#__PURE__*/ P("<div class=details>"), Vs = /*#__PURE__*/ P("<div class=no-details>no details attached"), Hs = B`
5855
+ var Fs = /*#__PURE__*/ P("<div><h1>logs</h1><div class=toolbar><label class=search><input type=text placeholder=\"Search logs\"></label></div><div class=list>"), Is = /*#__PURE__*/ P("<div class=empty>"), Ls = /*#__PURE__*/ P("<div class=marker><span class=time></span><span class=label></span><div class=line>"), Rs = /*#__PURE__*/ P("<span class=time>"), zs = /*#__PURE__*/ P("<span class=badge>"), Bs = /*#__PURE__*/ P("<span class=message>"), Vs = /*#__PURE__*/ P("<span class=copy title=\"Copy log as JSON\">"), Hs = /*#__PURE__*/ P("<span class=delete title=\"Delete log\">"), Us = /*#__PURE__*/ P("<div class=log>"), Ws = /*#__PURE__*/ P("<span class=category>"), Gs = /*#__PURE__*/ P("<div class=details>"), Ks = /*#__PURE__*/ P("<div class=no-details>no details attached"), qs = B`
5764
5856
  &&& {
5765
5857
  ${W({ align: "stretch" })};
5766
5858
  padding: 12px 16px;
@@ -5943,7 +6035,8 @@ var js = /*#__PURE__*/ P("<div><h1>logs</h1><div class=toolbar><label class=sear
5943
6035
  &:hover {
5944
6036
  background: ${G.white.alpha(.05)};
5945
6037
 
5946
- .copy {
6038
+ .copy,
6039
+ .delete {
5947
6040
  opacity: 1;
5948
6041
  }
5949
6042
  }
@@ -5979,7 +6072,8 @@ var js = /*#__PURE__*/ P("<div><h1>logs</h1><div class=toolbar><label class=sear
5979
6072
  ${J};
5980
6073
  }
5981
6074
 
5982
- .copy {
6075
+ .copy,
6076
+ .delete {
5983
6077
  ${U()};
5984
6078
  flex-shrink: 0;
5985
6079
  padding: 2px;
@@ -5993,6 +6087,11 @@ var js = /*#__PURE__*/ P("<div><h1>logs</h1><div class=toolbar><label class=sear
5993
6087
  background: ${G.white.alpha(.1)};
5994
6088
  }
5995
6089
  }
6090
+
6091
+ .delete:hover {
6092
+ color: ${G.error.var};
6093
+ background: ${G.error.alpha(.12)};
6094
+ }
5996
6095
  }
5997
6096
 
5998
6097
  &.expanded > .row .message {
@@ -6010,11 +6109,11 @@ var js = /*#__PURE__*/ P("<div><h1>logs</h1><div class=toolbar><label class=sear
6010
6109
  }
6011
6110
  }
6012
6111
  }
6013
- `, Us = [
6112
+ `, Js = [
6014
6113
  "error",
6015
6114
  "warning",
6016
6115
  "info"
6017
- ], Ws = "__all-categories__", Gs = () => {
6116
+ ], Ys = "__all-categories__", Xs = () => {
6018
6117
  let [t, n] = D(null), [r, i] = D(""), [a, o] = D(""), [s, c] = D(null), l = k(() => {
6019
6118
  let e = /* @__PURE__ */ new Set();
6020
6119
  for (let t of Cr.logs) t.category && e.add(t.category);
@@ -6051,12 +6150,12 @@ var js = /*#__PURE__*/ P("<div><h1>logs</h1><div class=toolbar><label class=sear
6051
6150
  time: e.time,
6052
6151
  timeISO: new Date(e.time).toISOString()
6053
6152
  })) } : {},
6054
- logs: d().map((e) => Dr(e))
6153
+ logs: d().map((e) => Or(e))
6055
6154
  };
6056
6155
  }
6057
6156
  return (() => {
6058
- var d = js(), m = d.firstChild.nextSibling, h = m.firstChild, g = h.firstChild, _ = m.nextSibling;
6059
- return I(d, Hs), R(m, A(z, {
6157
+ var d = Fs(), m = d.firstChild.nextSibling, h = m.firstChild, g = h.firstChild, _ = m.nextSibling;
6158
+ return I(d, qs), R(m, A(z, {
6060
6159
  class: "severity",
6061
6160
  get classList() {
6062
6161
  return { active: t() === null };
@@ -6072,7 +6171,7 @@ var js = /*#__PURE__*/ P("<div><h1>logs</h1><div class=toolbar><label class=sear
6072
6171
  ];
6073
6172
  }
6074
6173
  }), h), R(m, A(j, {
6075
- each: Us,
6174
+ each: Js,
6076
6175
  children: (e) => A(z, {
6077
6176
  class: `severity ${e}`,
6078
6177
  get classList() {
@@ -6092,14 +6191,14 @@ var js = /*#__PURE__*/ P("<div><h1>logs</h1><div class=toolbar><label class=sear
6092
6191
  })
6093
6192
  }), h), R(m, (() => {
6094
6193
  var e = N(() => l().length > 0);
6095
- return () => e() && A(as, {
6194
+ return () => e() && A(ls, {
6096
6195
  class: "category-select",
6097
6196
  get value() {
6098
- return r() || Ws;
6197
+ return r() || Ys;
6099
6198
  },
6100
6199
  get options() {
6101
6200
  return [{
6102
- value: Ws,
6201
+ value: Ys,
6103
6202
  label: "all categories"
6104
6203
  }, ...l().map((e) => ({
6105
6204
  value: e,
@@ -6107,7 +6206,7 @@ var js = /*#__PURE__*/ P("<div><h1>logs</h1><div class=toolbar><label class=sear
6107
6206
  }))];
6108
6207
  },
6109
6208
  onChange: (e) => {
6110
- i(() => e === Ws ? "" : e);
6209
+ i(() => e === Ys ? "" : e);
6111
6210
  }
6112
6211
  });
6113
6212
  })(), h), R(h, A(V, { name: "search" }), g), g.$$input = (e) => {
@@ -6116,7 +6215,7 @@ var js = /*#__PURE__*/ P("<div><h1>logs</h1><div class=toolbar><label class=sear
6116
6215
  class: "action",
6117
6216
  title: "Copy visible logs as JSON",
6118
6217
  onClick: () => {
6119
- Or(JSON.stringify(p(), null, 2));
6218
+ kr(JSON.stringify(p(), null, 2));
6120
6219
  },
6121
6220
  get children() {
6122
6221
  return [A(V, { name: "copy" }), "Copy JSON"];
@@ -6125,7 +6224,7 @@ var js = /*#__PURE__*/ P("<div><h1>logs</h1><div class=toolbar><label class=sear
6125
6224
  class: "action",
6126
6225
  title: "Save visible logs to a .json file",
6127
6226
  onClick: () => {
6128
- kr(p(), "devtools-logs"), dr("Logs downloaded");
6227
+ Ar(p(), "devtools-logs"), dr("Logs downloaded");
6129
6228
  },
6130
6229
  get children() {
6131
6230
  return [A(V, { name: "download" }), "Save .json"];
@@ -6136,14 +6235,14 @@ var js = /*#__PURE__*/ P("<div><h1>logs</h1><div class=toolbar><label class=sear
6136
6235
  },
6137
6236
  get fallback() {
6138
6237
  return (() => {
6139
- var e = Ms();
6238
+ var e = Is();
6140
6239
  return R(e, () => Cr.logs.length > 0 ? "no logs matching the filters" : "no logs registered yet, use the addLog() export to collect logs here"), e;
6141
6240
  })();
6142
6241
  },
6143
6242
  children: (t) => t.itemType === "marker" ? (() => {
6144
- var n = Ns(), r = n.firstChild, i = r.nextSibling;
6243
+ var n = Ls(), r = n.firstChild, i = r.nextSibling;
6145
6244
  return R(r, () => e(t.marker.time).format("HH:mm:ss")), R(n, A(V, { name: "flag" }), i), R(i, () => t.marker.label), n;
6146
- })() : A(Ks, {
6245
+ })() : A(Zs, {
6147
6246
  get log() {
6148
6247
  return t.log;
6149
6248
  },
@@ -6156,46 +6255,52 @@ var js = /*#__PURE__*/ P("<div><h1>logs</h1><div class=toolbar><label class=sear
6156
6255
  })
6157
6256
  })), O(() => g.value = a()), d;
6158
6257
  })();
6159
- }, Ks = (t) => (() => {
6160
- var n = Rs();
6258
+ }, Zs = (t) => (() => {
6259
+ var n = Us();
6161
6260
  return R(n, A(z, {
6162
6261
  class: "row",
6163
6262
  onClick: () => t.onToggleExpanded(),
6164
6263
  get children() {
6165
6264
  return [
6166
6265
  (() => {
6167
- var n = Ps();
6266
+ var n = Rs();
6168
6267
  return R(n, () => e(t.log.time).format("HH:mm:ss")), O(() => F(n, "title", e(t.log.time).format("YYYY-MM-DD HH:mm:ss.SSS"))), n;
6169
6268
  })(),
6170
6269
  (() => {
6171
- var e = Fs();
6270
+ var e = zs();
6172
6271
  return R(e, () => t.log.severity), e;
6173
6272
  })(),
6174
6273
  N(() => N(() => !!t.log.category)() && (() => {
6175
- var e = zs();
6274
+ var e = Ws();
6176
6275
  return R(e, () => t.log.category), e;
6177
6276
  })()),
6178
6277
  (() => {
6179
- var e = Is();
6278
+ var e = Bs();
6180
6279
  return R(e, () => t.log.message), e;
6181
6280
  })(),
6182
6281
  (() => {
6183
- var e = Ls();
6282
+ var e = Vs();
6184
6283
  return e.$$click = (e) => {
6185
- e.stopPropagation(), Or(Dr(t.log));
6284
+ e.stopPropagation(), kr(Or(t.log));
6186
6285
  }, R(e, A(V, { name: "copy" })), e;
6286
+ })(),
6287
+ (() => {
6288
+ var e = Hs();
6289
+ return e.$$click = (e) => {
6290
+ e.stopPropagation(), Dr(t.log.id);
6291
+ }, R(e, A(V, { name: "trash" })), e;
6187
6292
  })()
6188
6293
  ];
6189
6294
  }
6190
6295
  }), null), R(n, (() => {
6191
6296
  var e = N(() => !!t.expanded);
6192
6297
  return () => e() && (() => {
6193
- var e = Bs();
6298
+ var e = Gs();
6194
6299
  return R(e, (() => {
6195
6300
  var e = N(() => t.log.details !== void 0);
6196
6301
  return () => e() ? A(X, { get value() {
6197
6302
  return t.log.details;
6198
- } }) : Vs();
6303
+ } }) : Ks();
6199
6304
  })()), e;
6200
6305
  })();
6201
6306
  })(), null), O((e) => ct(n, {
@@ -6206,15 +6311,15 @@ var js = /*#__PURE__*/ P("<div><h1>logs</h1><div class=toolbar><label class=sear
6206
6311
  it(["input", "click"]);
6207
6312
  //#endregion
6208
6313
  //#region node_modules/.pnpm/@ls-stack+utils@3.77.0/node_modules/@ls-stack/utils/dist/getCompositeKey.mjs
6209
- function qs(e, t = 3, n) {
6210
- let r = Js(t, n);
6314
+ function Qs(e, t = 3, n) {
6315
+ let r = $s(t, n);
6211
6316
  if (typeof e == "string" || !e || typeof e != "object") {
6212
6317
  let t = r.stringify?.(e);
6213
6318
  return t === void 0 ? typeof e == "string" ? `"${e}` : `$${e}` : t;
6214
6319
  }
6215
- return Ys(e, r, 0, /* @__PURE__ */ new WeakSet());
6320
+ return ec(e, r, 0, /* @__PURE__ */ new WeakSet());
6216
6321
  }
6217
- function Js(e, t) {
6322
+ function $s(e, t) {
6218
6323
  return typeof e == "number" ? {
6219
6324
  maxSortingDepth: e,
6220
6325
  stringify: t
@@ -6223,7 +6328,7 @@ function Js(e, t) {
6223
6328
  stringify: e.stringify
6224
6329
  };
6225
6330
  }
6226
- function Ys(e, t, n, r) {
6331
+ function ec(e, t, n, r) {
6227
6332
  let i = t.stringify?.(e);
6228
6333
  if (i !== void 0) return i;
6229
6334
  let a = e && typeof e == "object";
@@ -6234,14 +6339,14 @@ function Ys(e, t, n, r) {
6234
6339
  let o;
6235
6340
  if (Array.isArray(e)) {
6236
6341
  o = "[";
6237
- for (let i of e) o.length > 1 && (o += ","), o += Ys(i, t, n + 1, r);
6342
+ for (let i of e) o.length > 1 && (o += ","), o += ec(i, t, n + 1, r);
6238
6343
  o += "]";
6239
- } else if (Ci(e)) {
6344
+ } else if (Ei(e)) {
6240
6345
  let i = Object.entries(e);
6241
6346
  if (i.length === 0) o = "{}";
6242
6347
  else {
6243
6348
  n < t.maxSortingDepth && (i = i.sort(([e], [t]) => e < t ? -1 : +(e > t))), o = "{";
6244
- for (let [e, a] of i) a !== void 0 && (o.length > 1 && (o += ","), o += `${e}:${Ys(a, t, n + 1, r)}`);
6349
+ for (let [e, a] of i) a !== void 0 && (o.length > 1 && (o += ","), o += `${e}:${ec(a, t, n + 1, r)}`);
6245
6350
  o += "}";
6246
6351
  }
6247
6352
  } else o = JSON.stringify(e);
@@ -6249,7 +6354,7 @@ function Ys(e, t, n, r) {
6249
6354
  }
6250
6355
  //#endregion
6251
6356
  //#region src/pages/stats/StatsPage.tsx
6252
- var Xs = /*#__PURE__*/ P("<div><h1>api stats</h1><div><div><span class=label>requests</span><span class=value></span></div><div><span class=label>errors</span><span class=value></span></div><div><span class=label>warnings</span><span class=value></span></div><div><span class=label>pending</span><span class=value></span></div><div><span class=label>avg duration</span><span class=value> ms</span></div></div><div><h2>Slowest requests</h2></div><div><h2>Heaviest responses</h2></div><div><h2>Duplicated requests</h2><div class=hint>requests with the same payload and url params repeated within 10s</div></div><div><h2>Unused response data</h2><div class=hint>response fields reported as not used by the app, an opportunity to reduce payload sizes"), Zs = /*#__PURE__*/ P("<div class=empty>no completed requests"), Qs = /*#__PURE__*/ P("<div class=bar>"), $s = /*#__PURE__*/ P("<div class=row><span class=name></span><span class=detail></span><span class=metric> ms"), ec = /*#__PURE__*/ P("<div class=empty>no responses received"), tc = /*#__PURE__*/ P("<div class=row><span class=name></span><span class=detail></span><span class=metric>"), nc = /*#__PURE__*/ P("<div class=empty>no duplicated requests detected"), rc = /*#__PURE__*/ P("<div class=\"bar warning\">"), ic = /*#__PURE__*/ P("<div class=row><span class=name></span><span class=detail></span><span class=\"metric warning\">x in <!>s"), ac = /*#__PURE__*/ P("<span class=detail>same response"), oc = /*#__PURE__*/ P("<div class=empty>no unused response data reported"), sc = /*#__PURE__*/ P("<div class=row><span class=name></span><span class=detail></span><span class=\"metric warning\"> field"), cc = B`
6357
+ var tc = /*#__PURE__*/ P("<div><h1>api stats</h1><div><div><span class=label>requests</span><span class=value></span></div><div><span class=label>errors</span><span class=value></span></div><div><span class=label>warnings</span><span class=value></span></div><div><span class=label>pending</span><span class=value></span></div><div><span class=label>avg duration</span><span class=value> ms</span></div></div><div><h2>Slowest requests</h2></div><div><h2>Heaviest responses</h2></div><div><h2>Duplicated requests</h2><div class=hint>requests with the same payload and url params repeated within 10s</div></div><div><h2>Unused response data</h2><div class=hint>response fields reported as not used by the app, an opportunity to reduce payload sizes"), nc = /*#__PURE__*/ P("<div class=empty>no completed requests"), rc = /*#__PURE__*/ P("<div class=bar>"), ic = /*#__PURE__*/ P("<div class=row><span class=name></span><span class=detail></span><span class=metric> ms"), ac = /*#__PURE__*/ P("<div class=empty>no responses received"), oc = /*#__PURE__*/ P("<div class=row><span class=name></span><span class=detail></span><span class=metric>"), sc = /*#__PURE__*/ P("<div class=empty>no duplicated requests detected"), cc = /*#__PURE__*/ P("<div class=\"bar warning\">"), lc = /*#__PURE__*/ P("<div class=row><span class=name></span><span class=detail></span><span class=\"metric warning\">x in <!>s"), uc = /*#__PURE__*/ P("<span class=detail>same response"), dc = /*#__PURE__*/ P("<div class=empty>no unused response data reported"), fc = /*#__PURE__*/ P("<div class=row><span class=name></span><span class=detail></span><span class=\"metric warning\"> field"), pc = B`
6253
6358
  &&& {
6254
6359
  ${W({ align: "stretch" })};
6255
6360
  overflow-y: auto;
@@ -6263,7 +6368,7 @@ var Xs = /*#__PURE__*/ P("<div><h1>api stats</h1><div><div><span class=label>req
6263
6368
  padding-bottom: 4px;
6264
6369
  }
6265
6370
  }
6266
- `, lc = B`
6371
+ `, mc = B`
6267
6372
  &&& {
6268
6373
  ${U({ gap: 12 })};
6269
6374
  flex-wrap: wrap;
@@ -6302,7 +6407,7 @@ var Xs = /*#__PURE__*/ P("<div><h1>api stats</h1><div><div><span class=label>req
6302
6407
  }
6303
6408
  }
6304
6409
  }
6305
- `, uc = B`
6410
+ `, hc = B`
6306
6411
  &&& {
6307
6412
  ${W({ align: "stretch" })};
6308
6413
  gap: 6px;
@@ -6325,7 +6430,7 @@ var Xs = /*#__PURE__*/ P("<div><h1>api stats</h1><div><div><span class=label>req
6325
6430
  margin-top: -4px;
6326
6431
  }
6327
6432
  }
6328
- `, dc = B`
6433
+ `, gc = B`
6329
6434
  &&& {
6330
6435
  ${W({ align: "stretch" })};
6331
6436
  position: relative;
@@ -6387,11 +6492,11 @@ var Xs = /*#__PURE__*/ P("<div><h1>api stats</h1><div><div><span class=label>req
6387
6492
  }
6388
6493
  }
6389
6494
  }
6390
- `, fc = 1e4;
6391
- function pc(e) {
6495
+ `, _c = 1e4;
6496
+ function vc(e) {
6392
6497
  return nn(() => e.response === void 0 ? 0 : JSON.stringify(e.response).length) || 0;
6393
6498
  }
6394
- function mc(e) {
6499
+ function yc(e) {
6395
6500
  return Y(e, {
6396
6501
  unit: "byte",
6397
6502
  style: "unit",
@@ -6399,18 +6504,18 @@ function mc(e) {
6399
6504
  unitDisplay: "narrow"
6400
6505
  });
6401
6506
  }
6402
- function hc(e) {
6507
+ function bc(e) {
6403
6508
  return e.request.alias || (e.request.payload ? JSON.stringify(e.request.payload) : "");
6404
6509
  }
6405
- function gc(e) {
6406
- Qr({
6510
+ function xc(e) {
6511
+ $r({
6407
6512
  selectedPage: "explorer",
6408
6513
  selectedCall: e.callID,
6409
6514
  selectedRequest: e.request.id,
6410
6515
  selectedSubitem: null
6411
6516
  });
6412
6517
  }
6413
- var _c = () => {
6518
+ var Sc = () => {
6414
6519
  let e = k(() => {
6415
6520
  let e = [];
6416
6521
  for (let [t, n] of Object.entries(H.calls)) for (let r of n.requests) e.push({
@@ -6431,11 +6536,11 @@ var _c = () => {
6431
6536
  };
6432
6537
  }), r = k(() => t().filter((e) => e.request.status !== "pending").sort((e, t) => t.request.duration - e.request.duration).slice(0, 10)), i = k(() => t().map((e) => ({
6433
6538
  ...e,
6434
- size: pc(e.request)
6539
+ size: vc(e.request)
6435
6540
  })).filter((e) => e.size > 0).sort((e, t) => t.size - e.size).slice(0, 10)), a = k(() => {
6436
6541
  let e = /* @__PURE__ */ new Map();
6437
6542
  for (let n of t()) {
6438
- let t = nn(() => qs({
6543
+ let t = nn(() => Qs({
6439
6544
  callID: n.callID,
6440
6545
  searchParams: n.request.searchParams,
6441
6546
  payload: n.request.payload
@@ -6448,7 +6553,7 @@ var _c = () => {
6448
6553
  let e = [...t].sort((e, t) => e.request.startTime - t.request.startTime), r = 0, i = 0, a = 0;
6449
6554
  for (let t = 1; t < e.length; t++) {
6450
6555
  let n = e[t], o = e[a];
6451
- for (; n && o && n.request.startTime - o.request.startTime > fc;) a++, o = e[a];
6556
+ for (; n && o && n.request.startTime - o.request.startTime > _c;) a++, o = e[a];
6452
6557
  t - a > i - r && (r = a, i = t);
6453
6558
  }
6454
6559
  let o = i - r + 1;
@@ -6468,7 +6573,7 @@ var _c = () => {
6468
6573
  let t = /* @__PURE__ */ new Map();
6469
6574
  for (let n of e()) {
6470
6575
  if (!n.request.unusedResponseData || n.request.unusedResponseData.length === 0) continue;
6471
- let e = oo(n.request.response, n.request.unusedResponseData), r = t.get(n.callID);
6576
+ let e = lo(n.request.response, n.request.unusedResponseData), r = t.get(n.callID);
6472
6577
  if (r) {
6473
6578
  r.requestsCount++, r.item = n, r.unusedBytes += e;
6474
6579
  for (let e of n.request.unusedResponseData) r.fields.add(e);
@@ -6482,26 +6587,26 @@ var _c = () => {
6482
6587
  return [...t.values()].sort((e, t) => t.unusedBytes - e.unusedBytes || t.fields.size - e.fields.size);
6483
6588
  }), s = k(() => r()[0]?.request.duration || 1), c = k(() => i()[0]?.size || 1);
6484
6589
  return (() => {
6485
- var e = Xs(), t = e.firstChild.nextSibling, l = t.firstChild, u = l.firstChild.nextSibling, d = l.nextSibling, f = d.firstChild.nextSibling, p = d.nextSibling, m = p.firstChild.nextSibling, h = p.nextSibling, g = h.firstChild.nextSibling, _ = h.nextSibling.firstChild.nextSibling, v = _.firstChild, y = t.nextSibling;
6590
+ var e = tc(), t = e.firstChild.nextSibling, l = t.firstChild, u = l.firstChild.nextSibling, d = l.nextSibling, f = d.firstChild.nextSibling, p = d.nextSibling, m = p.firstChild.nextSibling, h = p.nextSibling, g = h.firstChild.nextSibling, _ = h.nextSibling.firstChild.nextSibling, v = _.firstChild, y = t.nextSibling;
6486
6591
  y.firstChild;
6487
- var b = y.nextSibling;
6488
- b.firstChild;
6489
- var ee = b.nextSibling;
6490
- ee.firstChild.nextSibling;
6491
- var te = ee.nextSibling;
6492
- return te.firstChild.nextSibling, I(e, cc), I(t, lc), R(u, () => Y(n().total)), R(f, () => Y(n().errors)), R(m, () => Y(n().warnings)), R(g, () => Y(n().pending)), R(_, () => Y(n().avgDuration, { maximumFractionDigits: 0 }), v), I(y, uc), R(y, A(j, {
6592
+ var ee = y.nextSibling;
6593
+ ee.firstChild;
6594
+ var b = ee.nextSibling;
6595
+ b.firstChild.nextSibling;
6596
+ var te = b.nextSibling;
6597
+ return te.firstChild.nextSibling, I(e, pc), I(t, mc), R(u, () => Y(n().total)), R(f, () => Y(n().errors)), R(m, () => Y(n().warnings)), R(g, () => Y(n().pending)), R(_, () => Y(n().avgDuration, { maximumFractionDigits: 0 }), v), I(y, hc), R(y, A(j, {
6493
6598
  get each() {
6494
6599
  return r();
6495
6600
  },
6496
6601
  get fallback() {
6497
- return Zs();
6602
+ return nc();
6498
6603
  },
6499
6604
  children: (e) => A(z, {
6500
- class: dc,
6501
- onClick: () => gc(e),
6605
+ class: gc,
6606
+ onClick: () => xc(e),
6502
6607
  get children() {
6503
6608
  return [(() => {
6504
- var t = Qs();
6609
+ var t = rc();
6505
6610
  return O((n) => {
6506
6611
  var r = e.request.duration > 1e3, i = `${e.request.duration / s() * 100}%`;
6507
6612
  return r !== n.e && t.classList.toggle("error", n.e = r), i !== n.t && L(t, "width", n.t = i), n;
@@ -6510,70 +6615,70 @@ var _c = () => {
6510
6615
  t: void 0
6511
6616
  }), t;
6512
6617
  })(), (() => {
6513
- var t = $s(), n = t.firstChild, r = n.nextSibling, i = r.nextSibling, a = i.firstChild;
6514
- return R(n, () => e.callName), R(r, () => hc(e)), R(i, () => Y(e.request.duration, { maximumFractionDigits: 0 }), a), O(() => i.classList.toggle("error", e.request.duration > 1e3)), t;
6618
+ var t = ic(), n = t.firstChild, r = n.nextSibling, i = r.nextSibling, a = i.firstChild;
6619
+ return R(n, () => e.callName), R(r, () => bc(e)), R(i, () => Y(e.request.duration, { maximumFractionDigits: 0 }), a), O(() => i.classList.toggle("error", e.request.duration > 1e3)), t;
6515
6620
  })()];
6516
6621
  }
6517
6622
  })
6518
- }), null), I(b, uc), R(b, A(j, {
6623
+ }), null), I(ee, hc), R(ee, A(j, {
6519
6624
  get each() {
6520
6625
  return i();
6521
6626
  },
6522
6627
  get fallback() {
6523
- return ec();
6628
+ return ac();
6524
6629
  },
6525
6630
  children: (e) => A(z, {
6526
- class: dc,
6527
- onClick: () => gc(e),
6631
+ class: gc,
6632
+ onClick: () => xc(e),
6528
6633
  get children() {
6529
6634
  return [(() => {
6530
- var t = Qs();
6635
+ var t = rc();
6531
6636
  return O((n) => L(t, "width", `${e.size / c() * 100}%`)), t;
6532
6637
  })(), (() => {
6533
- var t = tc(), n = t.firstChild, r = n.nextSibling, i = r.nextSibling;
6534
- return R(n, () => e.callName), R(r, () => hc(e)), R(i, () => mc(e.size)), t;
6638
+ var t = oc(), n = t.firstChild, r = n.nextSibling, i = r.nextSibling;
6639
+ return R(n, () => e.callName), R(r, () => bc(e)), R(i, () => yc(e.size)), t;
6535
6640
  })()];
6536
6641
  }
6537
6642
  })
6538
- }), null), I(ee, uc), R(ee, A(j, {
6643
+ }), null), I(b, hc), R(b, A(j, {
6539
6644
  get each() {
6540
6645
  return a();
6541
6646
  },
6542
6647
  get fallback() {
6543
- return nc();
6648
+ return sc();
6544
6649
  },
6545
6650
  children: (e) => A(z, {
6546
- class: dc,
6547
- onClick: () => gc(e.item),
6651
+ class: gc,
6652
+ onClick: () => xc(e.item),
6548
6653
  get children() {
6549
6654
  return [(() => {
6550
- var t = rc();
6655
+ var t = cc();
6551
6656
  return O((n) => L(t, "width", `${Math.min(e.count * 10, 100)}%`)), t;
6552
6657
  })(), (() => {
6553
- var t = ic(), n = t.firstChild, r = n.nextSibling, i = r.nextSibling, a = i.firstChild, o = a.nextSibling;
6554
- return o.nextSibling, R(n, () => e.item.callName), R(r, () => hc(e.item)), R(t, (() => {
6658
+ var t = lc(), n = t.firstChild, r = n.nextSibling, i = r.nextSibling, a = i.firstChild, o = a.nextSibling;
6659
+ return o.nextSibling, R(n, () => e.item.callName), R(r, () => bc(e.item)), R(t, (() => {
6555
6660
  var t = N(() => !!e.sameResponse);
6556
- return () => t() && ac();
6661
+ return () => t() && uc();
6557
6662
  })(), i), R(i, () => e.count, a), R(i, () => Y(e.windowMs / 1e3, { maximumFractionDigits: 1 }), o), t;
6558
6663
  })()];
6559
6664
  }
6560
6665
  })
6561
- }), null), I(te, uc), R(te, A(j, {
6666
+ }), null), I(te, hc), R(te, A(j, {
6562
6667
  get each() {
6563
6668
  return o();
6564
6669
  },
6565
6670
  get fallback() {
6566
- return oc();
6671
+ return dc();
6567
6672
  },
6568
6673
  children: (e) => A(z, {
6569
- class: dc,
6570
- onClick: () => gc(e.item),
6674
+ class: gc,
6675
+ onClick: () => xc(e.item),
6571
6676
  get children() {
6572
6677
  return [(() => {
6573
- var t = rc();
6678
+ var t = cc();
6574
6679
  return O((n) => L(t, "width", `${Math.min(e.fields.size * 10, 100)}%`)), t;
6575
6680
  })(), (() => {
6576
- var t = sc(), n = t.firstChild, r = n.nextSibling, i = r.nextSibling, a = i.firstChild;
6681
+ var t = fc(), n = t.firstChild, r = n.nextSibling, i = r.nextSibling, a = i.firstChild;
6577
6682
  return R(n, () => e.item.callName), R(r, () => [...e.fields].join(", ")), R(i, () => e.fields.size, a), R(i, () => e.fields.size === 1 ? "" : "s", null), R(i, (() => {
6578
6683
  var t = N(() => e.unusedBytes > 0);
6579
6684
  return () => t() && ` · ${Y(e.unusedBytes, {
@@ -6595,7 +6700,7 @@ var _c = () => {
6595
6700
  a: void 0
6596
6701
  }), e;
6597
6702
  })();
6598
- }, vc = /*#__PURE__*/ P("<div><h1>timeline"), yc = /*#__PURE__*/ P("<div class=empty>no requests tracked yet"), bc = /*#__PURE__*/ P("<div title=\"Drag to filter a time range, click to reset\">"), xc = /*#__PURE__*/ P("<div><span></span><span> requests</span><span>"), Sc = /*#__PURE__*/ P("<div><div class=content>"), Cc = /*#__PURE__*/ P("<div class=tick>"), wc = /*#__PURE__*/ P("<div class=\"tick marker\">"), Tc = /*#__PURE__*/ P("<div class=shade style=left:0>"), Ec = /*#__PURE__*/ P("<div class=shade style=right:0>"), Dc = /*#__PURE__*/ P("<div class=handle data-handle=start>"), Oc = /*#__PURE__*/ P("<div class=handle data-handle=end>"), kc = /*#__PURE__*/ P("<div>"), Ac = /*#__PURE__*/ P("<div class=marker-line><button>"), jc = /*#__PURE__*/ P("<div class=row role=button tabindex=0><div class=label><span class=name></span></div><div class=track><div class=bar></div><span class=duration>"), Mc = /*#__PURE__*/ P("<span class=alias>"), Nc = 220, Pc = B`
6703
+ }, Cc = /*#__PURE__*/ P("<div><h1>timeline"), wc = /*#__PURE__*/ P("<div class=empty>no requests tracked yet"), Tc = /*#__PURE__*/ P("<div><label class=search><input type=text placeholder=Search>"), Ec = /*#__PURE__*/ P("<div title=\"Drag to filter a time range, click to reset\">"), Dc = /*#__PURE__*/ P("<div><span></span><span> requests</span><span>"), Oc = /*#__PURE__*/ P("<div><div class=content>"), kc = /*#__PURE__*/ P("<div class=tick>"), Ac = /*#__PURE__*/ P("<div class=\"tick marker\">"), jc = /*#__PURE__*/ P("<div class=shade style=left:0>"), Mc = /*#__PURE__*/ P("<div class=shade style=right:0>"), Nc = /*#__PURE__*/ P("<div class=handle data-handle=start>"), Pc = /*#__PURE__*/ P("<div class=handle data-handle=end>"), Fc = /*#__PURE__*/ P("<div>"), Ic = /*#__PURE__*/ P("<div class=marker-line><button>"), Lc = /*#__PURE__*/ P("<div class=row role=button tabindex=0><div class=label><span></span><span class=name></span></div><div class=track><div class=bar></div><span class=duration>"), Rc = /*#__PURE__*/ P("<span class=alias>"), zc = 220, Bc = B`
6599
6704
  &&& {
6600
6705
  ${W({ align: "stretch" })};
6601
6706
  overflow: hidden;
@@ -6619,7 +6724,54 @@ var _c = () => {
6619
6724
  padding-top: 20px;
6620
6725
  }
6621
6726
  }
6622
- `, Fc = B`
6727
+ `, Vc = B`
6728
+ &&& {
6729
+ ${U({ gap: 12 })};
6730
+ flex-shrink: 0;
6731
+
6732
+ > .search {
6733
+ ${U({ gap: 8 })};
6734
+ display: grid;
6735
+ grid-template-columns: 14px 1fr;
6736
+ width: 220px;
6737
+ background: ${G.white.alpha(.05)};
6738
+ border-radius: 4px;
6739
+ --icon-size: 16px;
6740
+ padding: 4px 0;
6741
+ padding-left: 6px;
6742
+
6743
+ .icon {
6744
+ color: ${G.secondary.var};
6745
+ }
6746
+
6747
+ input {
6748
+ border: none;
6749
+ background: transparent;
6750
+ color: ${G.white.var};
6751
+ font-size: 13px;
6752
+
6753
+ &:focus {
6754
+ outline: none;
6755
+ }
6756
+ }
6757
+ }
6758
+
6759
+ > button {
6760
+ font-size: 12px;
6761
+ opacity: 0.5;
6762
+ ${fi()};
6763
+
6764
+ &:hover {
6765
+ opacity: 1;
6766
+ }
6767
+
6768
+ &.active {
6769
+ opacity: 1;
6770
+ color: ${G.primary.var};
6771
+ }
6772
+ }
6773
+ }
6774
+ `, Hc = B`
6623
6775
  &&& {
6624
6776
  position: relative;
6625
6777
  height: 44px;
@@ -6684,7 +6836,7 @@ var _c = () => {
6684
6836
  }
6685
6837
  }
6686
6838
  }
6687
- `, Ic = B`
6839
+ `, Uc = B`
6688
6840
  &&& {
6689
6841
  ${U({ gap: 6 })};
6690
6842
  flex-wrap: wrap;
@@ -6715,7 +6867,7 @@ var _c = () => {
6715
6867
  }
6716
6868
  }
6717
6869
  }
6718
- `, Lc = B`
6870
+ `, Wc = B`
6719
6871
  &&& {
6720
6872
  ${U()};
6721
6873
  justify-content: space-between;
@@ -6724,7 +6876,7 @@ var _c = () => {
6724
6876
  color: ${G.white.alpha(.5)};
6725
6877
  flex-shrink: 0;
6726
6878
  }
6727
- `, Rc = B`
6879
+ `, Gc = B`
6728
6880
  &&& {
6729
6881
  flex: 1 1;
6730
6882
  overflow-y: auto;
@@ -6760,7 +6912,7 @@ var _c = () => {
6760
6912
 
6761
6913
  > .row {
6762
6914
  display: grid;
6763
- grid-template-columns: ${String(Nc)}px 1fr;
6915
+ grid-template-columns: ${String(zc)}px 1fr;
6764
6916
  height: 22px;
6765
6917
  align-items: center;
6766
6918
  border-radius: 3px;
@@ -6845,15 +6997,15 @@ var _c = () => {
6845
6997
  }
6846
6998
  }
6847
6999
  `;
6848
- function zc(e, t, n) {
7000
+ function Kc(e, t, n) {
6849
7001
  return Math.min(Math.max(e, t), n);
6850
7002
  }
6851
- var Bc = 400, Vc = () => {
6852
- let [t, n] = D(Date.now()), r = window.setInterval(() => {
6853
- n(() => Date.now());
7003
+ var qc = 400, Jc = () => {
7004
+ let t = en(""), n = en("all"), [r, i] = D(Date.now()), a = window.setInterval(() => {
7005
+ i(() => Date.now());
6854
7006
  }, 1e3);
6855
- ue(() => window.clearInterval(r));
6856
- let i = k(() => {
7007
+ ue(() => window.clearInterval(a));
7008
+ let o = k(() => {
6857
7009
  let e = [];
6858
7010
  for (let [t, n] of Object.entries(H.calls)) for (let r of n.requests) e.push({
6859
7011
  request: r,
@@ -6861,102 +7013,142 @@ var Bc = 400, Vc = () => {
6861
7013
  callName: n.name
6862
7014
  });
6863
7015
  return e.sort((e, t) => e.request.startTime - t.request.startTime);
7016
+ }), s = k(() => {
7017
+ let e = n.value, r = t.value.trim();
7018
+ return e === "all" && !r ? o() : o().filter((t) => {
7019
+ if (e === "api" && t.request.type === "ws" || e === "ws" && t.request.type !== "ws" || e === "error" && !t.request.isError) return !1;
7020
+ if (r) {
7021
+ let e = `${t.callName} ${t.request.alias || ""} ${t.request.method || ""} ${t.request.subType || ""}`;
7022
+ if (!mi(r, e).matched) return !1;
7023
+ }
7024
+ return !0;
7025
+ });
6864
7026
  });
6865
- function a(e) {
6866
- return e.status === "pending" ? t() : e.startTime + e.duration;
7027
+ function c(e) {
7028
+ return e.status === "pending" ? r() : e.startTime + e.duration;
6867
7029
  }
6868
- let o = k(() => {
6869
- let e = i(), t = H.markers, n = Infinity, r = -Infinity;
6870
- for (let t of e) n = Math.min(n, t.request.startTime), r = Math.max(r, a(t.request));
7030
+ let l = k(() => {
7031
+ let e = o(), t = H.markers, n = Infinity, r = -Infinity;
7032
+ for (let t of e) n = Math.min(n, t.request.startTime), r = Math.max(r, c(t.request));
6871
7033
  for (let e of t) n = Math.min(n, e.time), r = Math.max(r, e.time);
6872
7034
  return n === Infinity ? null : {
6873
7035
  start: n,
6874
7036
  end: Math.max(r, n + 100)
6875
7037
  };
6876
- }), [s, c] = D(null), l, u = null, d = 0, f = null;
6877
- function p(e) {
6878
- if (!l) return 0;
6879
- let t = l.getBoundingClientRect();
6880
- return t.width === 0 ? 0 : zc((e.clientX - t.left) / t.width, 0, 1);
7038
+ }), [u, d] = D(null), f, p = null, m = 0, h = null;
7039
+ function g(e) {
7040
+ if (!f) return 0;
7041
+ let t = f.getBoundingClientRect();
7042
+ return t.width === 0 ? 0 : Kc((e.clientX - t.left) / t.width, 0, 1);
6881
7043
  }
6882
- function m(e) {
6883
- return f ? f.start + (f.end - f.start) * p(e) : 0;
7044
+ function _(e) {
7045
+ return h ? h.start + (h.end - h.start) * g(e) : 0;
6884
7046
  }
6885
- function h(e) {
6886
- if (f = o(), !f) return;
6887
- let t = m(e), n = e.target instanceof HTMLElement ? e.target.closest("[data-handle]") : null;
6888
- n instanceof HTMLElement && n.dataset.handle === "start" ? u = "start" : n instanceof HTMLElement && n.dataset.handle === "end" ? u = "end" : (u = "new", d = t, c(() => ({
7047
+ function v(e) {
7048
+ if (h = l(), !h) return;
7049
+ let t = _(e), n = e.target instanceof HTMLElement ? e.target.closest("[data-handle]") : null;
7050
+ n instanceof HTMLElement && n.dataset.handle === "start" ? p = "start" : n instanceof HTMLElement && n.dataset.handle === "end" ? p = "end" : (p = "new", m = t, d(() => ({
6889
7051
  start: t,
6890
7052
  end: t
6891
- }))), l?.setPointerCapture(e.pointerId);
7053
+ }))), f?.setPointerCapture(e.pointerId);
6892
7054
  }
6893
- function g(e) {
6894
- if (!u) return;
6895
- let t = m(e), n = s();
6896
- u === "start" ? n && c(() => ({
7055
+ function y(e) {
7056
+ if (!p) return;
7057
+ let t = _(e), n = u();
7058
+ p === "start" ? n && d(() => ({
6897
7059
  start: Math.min(t, n.end),
6898
7060
  end: n.end
6899
- })) : u === "end" ? n && c(() => ({
7061
+ })) : p === "end" ? n && d(() => ({
6900
7062
  start: n.start,
6901
7063
  end: Math.max(t, n.start)
6902
- })) : c(() => ({
6903
- start: Math.min(d, t),
6904
- end: Math.max(d, t)
7064
+ })) : d(() => ({
7065
+ start: Math.min(m, t),
7066
+ end: Math.max(m, t)
6905
7067
  }));
6906
7068
  }
6907
- function _() {
6908
- if (!u) return;
6909
- u = null;
6910
- let e = s();
6911
- if (e && f) {
6912
- let t = (f.end - f.start) * .005;
6913
- e.end - e.start < t && c(() => null);
7069
+ function ee() {
7070
+ if (!p) return;
7071
+ p = null;
7072
+ let e = u();
7073
+ if (e && h) {
7074
+ let t = (h.end - h.start) * .005;
7075
+ e.end - e.start < t && d(() => null);
6914
7076
  }
6915
- f = null;
7077
+ h = null;
6916
7078
  }
6917
- let v = k(() => {
6918
- let e = o();
7079
+ let b = k(() => {
7080
+ let e = l();
6919
7081
  if (!e) return null;
6920
- let t = s();
7082
+ let t = u();
6921
7083
  return t ? {
6922
7084
  start: t.start,
6923
7085
  end: Math.max(t.end, t.start + 10)
6924
7086
  } : e;
6925
- }), y = k(() => {
6926
- let e = v();
6927
- return e ? i().filter((t) => t.request.startTime <= e.end && a(t.request) >= e.start) : [];
6928
- }), b = k(() => y().slice(-400)), ee = k(() => {
6929
- let e = v();
7087
+ }), te = k(() => {
7088
+ let e = b();
7089
+ return e ? s().filter((t) => t.request.startTime <= e.end && c(t.request) >= e.start) : [];
7090
+ }), ne = k(() => te().slice(-400)), x = k(() => {
7091
+ let e = b();
6930
7092
  return e ? H.markers.filter((t) => t.time >= e.start && t.time <= e.end) : [];
6931
7093
  });
6932
- function te(e) {
6933
- let t = v();
6934
- return t ? zc((e - t.start) / (t.end - t.start), 0, 1) : 0;
7094
+ function re(e) {
7095
+ let t = b();
7096
+ return t ? Kc((e - t.start) / (t.end - t.start), 0, 1) : 0;
6935
7097
  }
6936
- function ne(e) {
6937
- let t = o();
6938
- return t ? zc((e - t.start) / (t.end - t.start), 0, 1) : 0;
7098
+ function ie(e) {
7099
+ let t = l();
7100
+ return t ? Kc((e - t.start) / (t.end - t.start), 0, 1) : 0;
6939
7101
  }
6940
- function x(e) {
6941
- return `calc(${String(Nc)}px + (100% - ${String(Nc)}px) * ${te(e.time)})`;
7102
+ function S(e) {
7103
+ return `calc(${String(zc)}px + (100% - ${String(zc)}px) * ${re(e.time)})`;
6942
7104
  }
6943
7105
  return (() => {
6944
- var t = vc();
6945
- return t.firstChild, I(t, Pc), R(t, (() => {
6946
- var t = N(() => !o());
6947
- return () => t() ? yc() : [
7106
+ var r = Cc();
7107
+ return r.firstChild, I(r, Bc), R(r, (() => {
7108
+ var r = N(() => !l());
7109
+ return () => r() ? wc() : [
6948
7110
  (() => {
6949
- var e = bc();
6950
- e.$$pointerup = _, e.$$pointermove = g, e.$$pointerdown = h;
6951
- var t = l;
6952
- return typeof t == "function" ? dt(t, e) : l = e, I(e, Fc), R(e, A(j, {
7111
+ var e = Tc(), r = e.firstChild, i = r.firstChild;
7112
+ return I(e, Vc), R(r, A(V, { name: "search" }), i), i.$$input = (e) => {
7113
+ t.value = e.currentTarget.value;
7114
+ }, R(e, A(z, {
7115
+ onClick: () => n.set("all"),
7116
+ get classList() {
7117
+ return { active: n.value === "all" };
7118
+ },
7119
+ children: "All"
7120
+ }), null), R(e, A(z, {
7121
+ onClick: () => n.set("api"),
7122
+ get classList() {
7123
+ return { active: n.value === "api" };
7124
+ },
7125
+ children: "API"
7126
+ }), null), R(e, A(z, {
7127
+ onClick: () => n.set("ws"),
7128
+ get classList() {
7129
+ return { active: n.value === "ws" };
7130
+ },
7131
+ children: "WebSocket"
7132
+ }), null), R(e, A(z, {
7133
+ onClick: () => n.set("error"),
7134
+ get classList() {
7135
+ return { active: n.value === "error" };
7136
+ },
7137
+ children: "Errors"
7138
+ }), null), O(() => i.value = t.value), e;
7139
+ })(),
7140
+ (() => {
7141
+ var e = Ec();
7142
+ e.$$pointerup = ee, e.$$pointermove = y, e.$$pointerdown = v;
7143
+ var t = f;
7144
+ return typeof t == "function" ? dt(t, e) : f = e, I(e, Hc), R(e, A(j, {
6953
7145
  get each() {
6954
- return i();
7146
+ return s();
6955
7147
  },
6956
7148
  children: (e) => (() => {
6957
- var t = Cc();
7149
+ var t = kc();
6958
7150
  return O((n) => {
6959
- var r = !!e.request.isError, i = !!(!e.request.isError && e.request.warnings?.length), a = e.request.status === "pending", o = `${ne(e.request.startTime) * 100}%`;
7151
+ var r = !!e.request.isError, i = !!(!e.request.isError && e.request.warnings?.length), a = e.request.status === "pending", o = `${ie(e.request.startTime) * 100}%`;
6960
7152
  return r !== n.e && t.classList.toggle("error", n.e = r), i !== n.t && t.classList.toggle("warning", n.t = i), a !== n.a && t.classList.toggle("pending", n.a = a), o !== n.o && L(t, "left", n.o = o), n;
6961
7153
  }, {
6962
7154
  e: void 0,
@@ -6970,44 +7162,44 @@ var Bc = 400, Vc = () => {
6970
7162
  return H.markers;
6971
7163
  },
6972
7164
  children: (e) => (() => {
6973
- var t = wc();
6974
- return O((n) => L(t, "left", `${ne(e.time) * 100}%`)), t;
7165
+ var t = Ac();
7166
+ return O((n) => L(t, "left", `${ie(e.time) * 100}%`)), t;
6975
7167
  })()
6976
7168
  }), null), R(e, A(M, {
6977
7169
  get when() {
6978
- return s();
7170
+ return u();
6979
7171
  },
6980
7172
  children: (e) => [
6981
7173
  (() => {
6982
- var t = Tc();
6983
- return O((n) => L(t, "width", `${ne(e().start) * 100}%`)), t;
7174
+ var t = jc();
7175
+ return O((n) => L(t, "width", `${ie(e().start) * 100}%`)), t;
6984
7176
  })(),
6985
7177
  (() => {
6986
- var t = Ec();
6987
- return O((n) => L(t, "left", `${ne(e().end) * 100}%`)), t;
7178
+ var t = Mc();
7179
+ return O((n) => L(t, "left", `${ie(e().end) * 100}%`)), t;
6988
7180
  })(),
6989
7181
  (() => {
6990
- var t = Dc();
6991
- return O((n) => L(t, "left", `${ne(e().start) * 100}%`)), t;
7182
+ var t = Nc();
7183
+ return O((n) => L(t, "left", `${ie(e().start) * 100}%`)), t;
6992
7184
  })(),
6993
7185
  (() => {
6994
- var t = Oc();
6995
- return O((n) => L(t, "left", `${ne(e().end) * 100}%`)), t;
7186
+ var t = Pc();
7187
+ return O((n) => L(t, "left", `${ie(e().end) * 100}%`)), t;
6996
7188
  })()
6997
7189
  ]
6998
7190
  }), null), e;
6999
7191
  })(),
7000
7192
  (() => {
7001
- var t = xc(), n = t.firstChild, r = n.nextSibling, i = r.firstChild, a = r.nextSibling;
7002
- return I(t, Lc), R(n, () => e(v()?.start).format("HH:mm:ss.SSS")), R(r, () => y().length, i), R(r, () => y().length > Bc && ` (showing last ${Bc})`, null), R(a, () => e(v()?.end).format("HH:mm:ss.SSS")), t;
7193
+ var t = Dc(), n = t.firstChild, r = n.nextSibling, i = r.firstChild, a = r.nextSibling;
7194
+ return I(t, Wc), R(n, () => e(b()?.start).format("HH:mm:ss.SSS")), R(r, () => te().length, i), R(r, () => te().length > qc && ` (showing last ${qc})`, null), R(a, () => e(b()?.end).format("HH:mm:ss.SSS")), t;
7003
7195
  })(),
7004
7196
  A(M, {
7005
7197
  get when() {
7006
- return s();
7198
+ return u();
7007
7199
  },
7008
7200
  children: (e) => (() => {
7009
- var t = kc();
7010
- return I(t, Ic), R(t, A(z, {
7201
+ var t = Fc();
7202
+ return I(t, Uc), R(t, A(z, {
7011
7203
  class: "danger",
7012
7204
  title: "Remove all requests that ended before the selection",
7013
7205
  onClick: () => Fn(e().start),
@@ -7015,7 +7207,7 @@ var Bc = 400, Vc = () => {
7015
7207
  }), null), R(t, A(z, {
7016
7208
  title: "Reset the selected time range",
7017
7209
  onClick: () => {
7018
- c(() => null);
7210
+ d(() => null);
7019
7211
  },
7020
7212
  children: "remove selection"
7021
7213
  }), null), R(t, A(z, {
@@ -7027,7 +7219,7 @@ var Bc = 400, Vc = () => {
7027
7219
  class: "danger",
7028
7220
  title: "Remove the requests inside the selection",
7029
7221
  onClick: () => {
7030
- Ln(e().start, e().end), c(() => null);
7222
+ Ln(e().start, e().end), d(() => null);
7031
7223
  },
7032
7224
  children: "clear selected requests"
7033
7225
  }), null), R(t, A(z, {
@@ -7044,15 +7236,15 @@ var Bc = 400, Vc = () => {
7044
7236
  })()
7045
7237
  }),
7046
7238
  (() => {
7047
- var t = Sc(), n = t.firstChild;
7048
- return I(t, Rc), R(n, A(j, {
7239
+ var t = Oc(), n = t.firstChild;
7240
+ return I(t, Gc), R(n, A(j, {
7049
7241
  get each() {
7050
- return ee();
7242
+ return x();
7051
7243
  },
7052
7244
  children: (t) => (() => {
7053
- var n = Ac(), r = n.firstChild;
7245
+ var n = Ic(), r = n.firstChild;
7054
7246
  return r.$$click = () => jn(t.id), R(r, () => t.label), O((i) => {
7055
- var a = x(t), o = `${t.label} · ${e(t.time).format("HH:mm:ss.SSS")} · click to remove`;
7247
+ var a = S(t), o = `${t.label} · ${e(t.time).format("HH:mm:ss.SSS")} · click to remove`;
7056
7248
  return a !== i.e && L(n, "left", i.e = a), o !== i.t && F(r, "title", i.t = o), i;
7057
7249
  }, {
7058
7250
  e: void 0,
@@ -7061,31 +7253,31 @@ var Bc = 400, Vc = () => {
7061
7253
  })()
7062
7254
  }), null), R(n, A(j, {
7063
7255
  get each() {
7064
- return b();
7256
+ return ne();
7065
7257
  },
7066
7258
  children: (e) => {
7067
- let t = k(() => te(e.request.startTime) * 100), n = k(() => te(a(e.request)) * 100);
7259
+ let t = k(() => re(e.request.startTime) * 100), n = k(() => re(c(e.request)) * 100);
7068
7260
  return (() => {
7069
- var r = jc(), i = r.firstChild, a = i.firstChild, o = i.nextSibling.firstChild, s = o.nextSibling;
7261
+ var r = Lc(), i = r.firstChild, a = i.firstChild, o = a.nextSibling, s = i.nextSibling.firstChild, c = s.nextSibling;
7070
7262
  return r.$$click = () => {
7071
- Qr({
7263
+ $r({
7072
7264
  selectedPage: "explorer",
7073
7265
  selectedCall: e.callID,
7074
7266
  selectedRequest: e.request.id,
7075
7267
  selectedSubitem: null
7076
7268
  });
7077
- }, R(a, () => e.callName), R(i, (() => {
7269
+ }, R(a, () => ni(e.request).label), R(o, () => e.callName), R(i, (() => {
7078
7270
  var t = N(() => !!e.request.alias);
7079
7271
  return () => t() && (() => {
7080
- var t = Mc();
7272
+ var t = Rc();
7081
7273
  return R(t, () => e.request.alias), t;
7082
7274
  })();
7083
- })(), null), R(s, (() => {
7275
+ })(), null), R(c, (() => {
7084
7276
  var t = N(() => e.request.status === "pending");
7085
7277
  return () => t() ? "pending…" : `${Y(e.request.duration, { maximumFractionDigits: 0 })}ms`;
7086
7278
  })()), O((i) => {
7087
- var a = `${e.callName} · ${e.request.status === "pending" ? "pending" : `${Y(e.request.duration, { maximumFractionDigits: 0 })}ms`}`, c = !!e.request.isError, l = !!(!e.request.isError && e.request.warnings?.length), u = e.request.status === "pending", d = e.request.type === "ws", f = `${t()}%`, p = `${Math.max(n() - t(), .2)}%`, m = `${Math.min(n(), 88)}%`;
7088
- return a !== i.e && F(r, "title", i.e = a), c !== i.t && o.classList.toggle("error", i.t = c), l !== i.a && o.classList.toggle("warning", i.a = l), u !== i.o && o.classList.toggle("pending", i.o = u), d !== i.i && o.classList.toggle("ws", i.i = d), f !== i.n && L(o, "left", i.n = f), p !== i.s && L(o, "width", i.s = p), m !== i.h && L(s, "left", i.h = m), i;
7279
+ var o = `${e.callName} · ${e.request.status === "pending" ? "pending" : `${Y(e.request.duration, { maximumFractionDigits: 0 })}ms`}`, l = `${ei} ${ni(e.request).class}`, u = !!e.request.isError, d = !!(!e.request.isError && e.request.warnings?.length), f = e.request.status === "pending", p = e.request.type === "ws", m = `${t()}%`, h = `${Math.max(n() - t(), .2)}%`, g = `${Math.min(n(), 88)}%`;
7280
+ return o !== i.e && F(r, "title", i.e = o), l !== i.t && I(a, i.t = l), u !== i.a && s.classList.toggle("error", i.a = u), d !== i.o && s.classList.toggle("warning", i.o = d), f !== i.i && s.classList.toggle("pending", i.i = f), p !== i.n && s.classList.toggle("ws", i.n = p), m !== i.s && L(s, "left", i.s = m), h !== i.h && L(s, "width", i.h = h), g !== i.r && L(c, "left", i.r = g), i;
7089
7281
  }, {
7090
7282
  e: void 0,
7091
7283
  t: void 0,
@@ -7094,17 +7286,19 @@ var Bc = 400, Vc = () => {
7094
7286
  i: void 0,
7095
7287
  n: void 0,
7096
7288
  s: void 0,
7097
- h: void 0
7289
+ h: void 0,
7290
+ r: void 0
7098
7291
  }), r;
7099
7292
  })();
7100
7293
  }
7101
7294
  }), null), t;
7102
7295
  })()
7103
7296
  ];
7104
- })(), null), t;
7297
+ })(), null), r;
7105
7298
  })();
7106
7299
  };
7107
7300
  it([
7301
+ "input",
7108
7302
  "pointerdown",
7109
7303
  "pointermove",
7110
7304
  "pointerup",
@@ -7112,7 +7306,7 @@ it([
7112
7306
  ]);
7113
7307
  //#endregion
7114
7308
  //#region src/style/globalStyle.ts
7115
- var Hc = `
7309
+ var Yc = `
7116
7310
  font-family: ${K.primary};
7117
7311
  color: ${G.textPrimary.var};
7118
7312
 
@@ -7163,7 +7357,7 @@ var Hc = `
7163
7357
  h3 {
7164
7358
  font-weight: normal;
7165
7359
  }
7166
- `, Uc = "\n display: flex;\n align-items: center;\n justify-content: center;\n", Wc = "\n*,\n*::before,\n*::after {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n min-height: 0;\n min-width: 0;\n flex-shrink: 0;\n\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n/* Remove default padding */\nul[class],\nol[class] {\n padding: 0;\n}\n\n/* Remove default margin */\nbody,\nh1,\nh2,\nh3,\nh4,\np,\nul[class],\nol[class],\nli,\nfigure,\nfigcaption,\nblockquote,\ndl,\ndd {\n margin: 0;\n}\n\n/* Set core body defaults */\nbody {\n scroll-behavior: smooth;\n}\n\n/* Natural flow and rhythm in articles by default */\narticle > * + * {\n margin-top: 1em;\n}\n\n/* Inherit fonts for inputs and buttons */\ninput,\nbutton,\ntextarea,\nselect {\n font: inherit;\n}\n\na {\n color: inherit;\n text-decoration: inherit;\n cursor: pointer;\n}\n\na:visited {\n color: inherit;\n}\n\nbutton {\n background: transparent;\n border: 0;\n outline: none;\n cursor: pointer;\n -webkit-appearance: none;\n}\n", Gc = [
7360
+ `, Xc = "\n display: flex;\n align-items: center;\n justify-content: center;\n", Zc = "\n*,\n*::before,\n*::after {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n min-height: 0;\n min-width: 0;\n flex-shrink: 0;\n\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n/* Remove default padding */\nul[class],\nol[class] {\n padding: 0;\n}\n\n/* Remove default margin */\nbody,\nh1,\nh2,\nh3,\nh4,\np,\nul[class],\nol[class],\nli,\nfigure,\nfigcaption,\nblockquote,\ndl,\ndd {\n margin: 0;\n}\n\n/* Set core body defaults */\nbody {\n scroll-behavior: smooth;\n}\n\n/* Natural flow and rhythm in articles by default */\narticle > * + * {\n margin-top: 1em;\n}\n\n/* Inherit fonts for inputs and buttons */\ninput,\nbutton,\ntextarea,\nselect {\n font: inherit;\n}\n\na {\n color: inherit;\n text-decoration: inherit;\n cursor: pointer;\n}\n\na:visited {\n color: inherit;\n}\n\nbutton {\n background: transparent;\n border: 0;\n outline: none;\n cursor: pointer;\n -webkit-appearance: none;\n}\n", Qc = [
7167
7361
  "beforeinput",
7168
7362
  "click",
7169
7363
  "dblclick",
@@ -7186,13 +7380,13 @@ var Hc = `
7186
7380
  "touchend",
7187
7381
  "touchmove",
7188
7382
  "touchstart"
7189
- ], Kc = null;
7190
- function qc() {
7191
- Kc && !Kc.closed && Kc.close(), Kc = null, sl();
7383
+ ], $c = null;
7384
+ function el() {
7385
+ $c && !$c.closed && $c.close(), $c = null, ml();
7192
7386
  }
7193
- function Jc() {
7194
- if (Kc && !Kc.closed) {
7195
- Kc.focus(), cl();
7387
+ function tl() {
7388
+ if ($c && !$c.closed) {
7389
+ $c.focus(), hl();
7196
7390
  return;
7197
7391
  }
7198
7392
  let e = window.open("", "app-devtools-window", "width=1400,height=900,popup=yes");
@@ -7200,7 +7394,7 @@ function Jc() {
7200
7394
  dr("The popup was blocked by the browser");
7201
7395
  return;
7202
7396
  }
7203
- Kc = e;
7397
+ $c = e;
7204
7398
  let t = e.document;
7205
7399
  t.head.innerHTML = "", t.body.innerHTML = "", t.title = `App DevTools · ${window.location.host}`, t.body.style.margin = "0", t.body.style.background = "#0F172A";
7206
7400
  let n = document.documentElement.style;
@@ -7213,10 +7407,10 @@ function Jc() {
7213
7407
  source: e,
7214
7408
  mirror: n
7215
7409
  });
7216
- }), it(Gc, t);
7410
+ }), it(Qc, t);
7217
7411
  let i = t.createElement("div");
7218
7412
  t.body.appendChild(i);
7219
- let a = rt(() => A(tl, { standalone: !0 }), i), o = window.setInterval(() => {
7413
+ let a = rt(() => A(cl, { standalone: !0 }), i), o = window.setInterval(() => {
7220
7414
  if (e.closed) {
7221
7415
  s();
7222
7416
  return;
@@ -7224,15 +7418,15 @@ function Jc() {
7224
7418
  for (let { source: e, mirror: t } of r) t.textContent !== e.textContent && (t.textContent = e.textContent);
7225
7419
  }, 300);
7226
7420
  function s() {
7227
- window.clearInterval(o), a(), Kc = null;
7421
+ window.clearInterval(o), a(), $c = null;
7228
7422
  }
7229
- e.addEventListener("pagehide", s), cl();
7423
+ e.addEventListener("pagehide", s), hl();
7230
7424
  }
7231
7425
  //#endregion
7232
7426
  //#region src/pages/app/App.tsx
7233
- var Yc = /*#__PURE__*/ P("<div id=dev-tools-root-element><nav><div class=nav-actions></div></nav><main>"), Xc = /*#__PURE__*/ P("<div>"), Zc = B`
7234
- ${Wc};
7235
- ${Hc};
7427
+ var nl = /*#__PURE__*/ P("<div id=dev-tools-root-element><nav><div class=nav-actions></div></nav><main>"), rl = /*#__PURE__*/ P("<div>"), il = B`
7428
+ ${Zc};
7429
+ ${Yc};
7236
7430
 
7237
7431
  position: fixed;
7238
7432
  inset: 32px;
@@ -7247,7 +7441,7 @@ var Yc = /*#__PURE__*/ P("<div id=dev-tools-root-element><nav><div class=nav-act
7247
7441
  padding-bottom: 8px;
7248
7442
 
7249
7443
  button {
7250
- ${Uc};
7444
+ ${Xc};
7251
7445
  width: 100%;
7252
7446
  aspect-ratio: 1 / 1;
7253
7447
  color: ${G.white.alpha(.55)};
@@ -7308,17 +7502,17 @@ var Yc = /*#__PURE__*/ P("<div id=dev-tools-root-element><nav><div class=nav-act
7308
7502
  ${Dt};
7309
7503
  }
7310
7504
  }
7311
- `, Qc = B`
7505
+ `, al = B`
7312
7506
  &&& {
7313
7507
  inset: 0;
7314
7508
  border-radius: 0;
7315
7509
  }
7316
- `, $c = B`
7510
+ `, ol = B`
7317
7511
  ${Dt};
7318
7512
  position: fixed;
7319
7513
  inset: 0;
7320
7514
  backdrop-filter: blur(5px);
7321
- `, el = [
7515
+ `, sl = [
7322
7516
  {
7323
7517
  id: "explorer",
7324
7518
  title: "API Explorer",
@@ -7344,13 +7538,13 @@ var Yc = /*#__PURE__*/ P("<div id=dev-tools-root-element><nav><div class=nav-act
7344
7538
  title: "Request Caller",
7345
7539
  icon: "send"
7346
7540
  }
7347
- ], tl = (e) => [N(() => N(() => !e.standalone)() && (() => {
7348
- var e = Xc();
7349
- return st(e, "click", cl, !0), I(e, $c), e;
7541
+ ], cl = (e) => [N(() => N(() => !e.standalone)() && (() => {
7542
+ var e = rl();
7543
+ return st(e, "click", hl, !0), I(e, ol), e;
7350
7544
  })()), (() => {
7351
- var t = Yc(), n = t.firstChild, r = n.firstChild, i = n.nextSibling;
7545
+ var t = nl(), n = t.firstChild, r = n.firstChild, i = n.nextSibling;
7352
7546
  return R(n, A(j, {
7353
- each: el,
7547
+ each: sl,
7354
7548
  children: (e) => A(z, {
7355
7549
  get title() {
7356
7550
  return e.title;
@@ -7359,7 +7553,7 @@ var Yc = /*#__PURE__*/ P("<div id=dev-tools-root-element><nav><div class=nav-act
7359
7553
  return { active: q.selectedPage === e.id };
7360
7554
  },
7361
7555
  onClick: () => {
7362
- Qr("selectedPage", e.id);
7556
+ $r("selectedPage", e.id);
7363
7557
  },
7364
7558
  get children() {
7365
7559
  return A(V, { get name() {
@@ -7369,17 +7563,17 @@ var Yc = /*#__PURE__*/ P("<div id=dev-tools-root-element><nav><div class=nav-act
7369
7563
  })
7370
7564
  }), r), R(r, A(z, {
7371
7565
  get classList() {
7372
- return { "toggle-on": Zr.value };
7566
+ return { "toggle-on": Qr.value };
7373
7567
  },
7374
7568
  get title() {
7375
- return Zr.value ? "Hide sensitive values" : "Show sensitive values";
7569
+ return Qr.value ? "Hide sensitive values" : "Show sensitive values";
7376
7570
  },
7377
7571
  onClick: () => {
7378
- Zr.value = !Zr.value;
7572
+ Qr.value = !Qr.value;
7379
7573
  },
7380
7574
  get children() {
7381
7575
  return A(V, { get name() {
7382
- return Zr.value ? "eye-off" : "eye";
7576
+ return Qr.value ? "eye-off" : "eye";
7383
7577
  } });
7384
7578
  }
7385
7579
  }), null), R(r, A(z, {
@@ -7393,7 +7587,7 @@ var Yc = /*#__PURE__*/ P("<div id=dev-tools-root-element><nav><div class=nav-act
7393
7587
  }), null), R(r, A(z, {
7394
7588
  title: "Export history",
7395
7589
  onClick: () => {
7396
- zr.value = !0;
7590
+ Br.value = !0;
7397
7591
  },
7398
7592
  get children() {
7399
7593
  return A(V, { name: "download" });
@@ -7402,13 +7596,13 @@ var Yc = /*#__PURE__*/ P("<div id=dev-tools-root-element><nav><div class=nav-act
7402
7596
  var t = N(() => !!e.standalone);
7403
7597
  return () => t() ? A(z, {
7404
7598
  title: "Move devtools back to the app page",
7405
- onClick: qc,
7599
+ onClick: el,
7406
7600
  get children() {
7407
7601
  return A(V, { name: "minimize-2" });
7408
7602
  }
7409
7603
  }) : A(z, {
7410
7604
  title: "Open in a new window",
7411
- onClick: Jc,
7605
+ onClick: tl,
7412
7606
  get children() {
7413
7607
  return A(V, { name: "external-link" });
7414
7608
  }
@@ -7429,7 +7623,7 @@ var Yc = /*#__PURE__*/ P("<div id=dev-tools-root-element><nav><div class=nav-act
7429
7623
  return q.selectedPage === "explorer";
7430
7624
  },
7431
7625
  get children() {
7432
- return A(Zo, {});
7626
+ return A(ts, {});
7433
7627
  }
7434
7628
  }),
7435
7629
  A(qe, {
@@ -7437,7 +7631,7 @@ var Yc = /*#__PURE__*/ P("<div id=dev-tools-root-element><nav><div class=nav-act
7437
7631
  return q.selectedPage === "timeline";
7438
7632
  },
7439
7633
  get children() {
7440
- return A(Vc, {});
7634
+ return A(Jc, {});
7441
7635
  }
7442
7636
  }),
7443
7637
  A(qe, {
@@ -7445,7 +7639,7 @@ var Yc = /*#__PURE__*/ P("<div id=dev-tools-root-element><nav><div class=nav-act
7445
7639
  return q.selectedPage === "stats";
7446
7640
  },
7447
7641
  get children() {
7448
- return A(_c, {});
7642
+ return A(Sc, {});
7449
7643
  }
7450
7644
  }),
7451
7645
  A(qe, {
@@ -7453,7 +7647,7 @@ var Yc = /*#__PURE__*/ P("<div id=dev-tools-root-element><nav><div class=nav-act
7453
7647
  return q.selectedPage === "logs";
7454
7648
  },
7455
7649
  get children() {
7456
- return A(Gs, {});
7650
+ return A(Xs, {});
7457
7651
  }
7458
7652
  }),
7459
7653
  A(qe, {
@@ -7461,16 +7655,16 @@ var Yc = /*#__PURE__*/ P("<div id=dev-tools-root-element><nav><div class=nav-act
7461
7655
  return q.selectedPage === "caller";
7462
7656
  },
7463
7657
  get children() {
7464
- return A(ks, {});
7658
+ return A(Ns, {});
7465
7659
  }
7466
7660
  })
7467
7661
  ];
7468
7662
  } })), R(t, A(M, {
7469
7663
  get when() {
7470
- return zr.value;
7664
+ return Br.value;
7471
7665
  },
7472
7666
  get children() {
7473
- return A(Hr, {});
7667
+ return A(Ur, {});
7474
7668
  }
7475
7669
  }), null), R(t, A(M, {
7476
7670
  get when() {
@@ -7479,48 +7673,48 @@ var Yc = /*#__PURE__*/ P("<div id=dev-tools-root-element><nav><div class=nav-act
7479
7673
  get children() {
7480
7674
  return A(vr, {});
7481
7675
  }
7482
- }), null), R(t, A(Gr, {}), null), O(() => I(t, wa(Zc, e.standalone && Qc))), t;
7676
+ }), null), R(t, A(Kr, {}), null), O(() => I(t, Da(il, e.standalone && al))), t;
7483
7677
  })()];
7484
7678
  it(["click"]);
7485
7679
  //#endregion
7486
7680
  //#region src/Root.tsx
7487
- var nl = () => A(tl, {}), rl = !1;
7488
- function il() {
7489
- if (rl) return;
7490
- rl = !0;
7681
+ var ll = () => A(cl, {}), ul = !1;
7682
+ function dl() {
7683
+ if (ul) return;
7684
+ ul = !0;
7491
7685
  let e = document.getElementsByTagName("head")[0], t = document.createElement("link");
7492
7686
  t.type = "text/css", t.rel = "stylesheet", t.href = "https://fonts.googleapis.com/css2?family=Fira+Code:wght@300..700&family=Work+Sans:ital,wght@0,100..900;1,100..900&display=swap", e?.appendChild(t);
7493
7687
  }
7494
7688
  //#endregion
7495
7689
  //#region src/initializeApp.tsx
7496
- var al = () => {}, ol = !1;
7497
- function sl() {
7498
- if (ol) return;
7499
- ol = !0, e.extend(St.default), il(), navigator.platform.indexOf("Win") > -1 && document.body.classList.add("windows");
7690
+ var fl = () => {}, pl = !1;
7691
+ function ml() {
7692
+ if (pl) return;
7693
+ pl = !0, e.extend(St.default), dl(), navigator.platform.indexOf("Win") > -1 && document.body.classList.add("windows");
7500
7694
  let t = document.getElementById("dev-tools-root") || document.createElement("div");
7501
- t.id = "dev-tools-root", document.body.appendChild(t), al = rt(() => A(nl, {}), t);
7695
+ t.id = "dev-tools-root", document.body.appendChild(t), fl = rt(() => A(ll, {}), t);
7502
7696
  }
7503
- function cl() {
7504
- ol && (ol = !1, al());
7697
+ function hl() {
7698
+ pl && (pl = !1, fl());
7505
7699
  }
7506
- function ll() {
7507
- ol ? cl() : sl();
7700
+ function gl() {
7701
+ pl ? hl() : ml();
7508
7702
  }
7509
- function ul() {
7510
- return ol;
7703
+ function _l() {
7704
+ return pl;
7511
7705
  }
7512
7706
  //#endregion
7513
7707
  //#region src/initializeDevTools.ts
7514
- function dl({ callsProcessor: e, shortcut: t, requestCallers: n, visibleRequestHeaders: r, sensitiveDataFields: a, maxRequestsSizeMb: o, maxLogsSizeMb: s }) {
7708
+ function vl({ callsProcessor: e, shortcut: t, requestCallers: n, visibleRequestHeaders: r, sensitiveDataFields: a, maxRequestsSizeMb: o, maxLogsSizeMb: s }) {
7515
7709
  i(window, { [t]: (e) => {
7516
7710
  let t = document.activeElement;
7517
- t instanceof HTMLElement && (t.isContentEditable || t.tagName === "INPUT" || t.tagName === "TEXTAREA") || (e.preventDefault(), ll());
7711
+ t instanceof HTMLElement && (t.isContentEditable || t.tagName === "INPUT" || t.tagName === "TEXTAREA") || (e.preventDefault(), gl());
7518
7712
  } }), Xn({
7519
7713
  ...e ? { callsProcessor: e } : {},
7520
7714
  ...r ? { visibleRequestHeaders: r } : {},
7521
7715
  ...a ? { sensitiveDataFields: a } : {},
7522
7716
  ...o === void 0 ? {} : { maxRequestsSizeMb: o }
7523
- }), s !== void 0 && xr(s), n && Ba(n);
7717
+ }), s !== void 0 && xr(s), n && Ua(n);
7524
7718
  }
7525
7719
  //#endregion
7526
- export { Qn as addCall, Tr as addLog, An as addMarker, Zn as addWebsocketEvent, Mn as clearHistory, Er as clearLogs, cl as closeDevTools, ul as devToolsIsOpen, dl as initializeDevTools, sl as openDevTools, ll as toggleDevTools };
7720
+ export { Qn as addCall, Tr as addLog, An as addMarker, Zn as addWebsocketEvent, Mn as clearHistory, Er as clearLogs, hl as closeDevTools, _l as devToolsIsOpen, vl as initializeDevTools, ml as openDevTools, gl as toggleDevTools };