@har-analyzer/components 0.0.9 → 0.0.11

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 (61) hide show
  1. package/README.md +125 -43
  2. package/dist/chunks/har.js +27 -27
  3. package/dist/chunks/index.js +186 -44
  4. package/dist/chunks/json.js +10 -0
  5. package/dist/components/collapsible-key-value-list.d.ts +9 -0
  6. package/dist/components/collapsible-section.d.ts +5 -0
  7. package/dist/components/enhanced-board/constants/i18n.d.ts +21 -0
  8. package/dist/components/enhanced-board/index.d.ts +15 -0
  9. package/dist/components/enhanced-table.d.ts +47 -0
  10. package/dist/components/enhanced-top-navigation.d.ts +7 -0
  11. package/dist/components/error-boundary.d.ts +1 -0
  12. package/dist/components/horizontal-gap.d.ts +6 -0
  13. package/dist/components/json-viewer.d.ts +3 -0
  14. package/dist/components/simple-app-layout.d.ts +6 -0
  15. package/dist/components/simple-app-preferences/content-width-switcher.d.ts +1 -0
  16. package/dist/components/simple-app-preferences/index.d.ts +1 -0
  17. package/dist/components/simple-app-preferences/theme-switcher.d.ts +1 -0
  18. package/dist/components/vertical-gap.d.ts +6 -0
  19. package/dist/features/har-analyzer/index.d.ts +5 -0
  20. package/dist/features/har-analyzer-preferences/index.d.ts +7 -0
  21. package/dist/features/har-entries-viewer/components/har-entries-filters/components/content-type-filter.d.ts +7 -0
  22. package/dist/features/har-entries-viewer/components/har-entries-filters/components/errors-filter.d.ts +6 -0
  23. package/dist/features/har-entries-viewer/components/har-entries-filters/index.d.ts +1 -0
  24. package/dist/features/har-entries-viewer/hooks/preferences.d.ts +2 -0
  25. package/dist/features/har-entries-viewer/index.d.ts +7 -0
  26. package/dist/features/har-file-uploader/file-upload-error.d.ts +5 -0
  27. package/dist/features/har-file-uploader/index.d.ts +8 -0
  28. package/dist/features/list-har-entries/index.d.ts +8 -0
  29. package/dist/features/view-har-entry/components/content-viewer.d.ts +7 -0
  30. package/dist/features/view-har-entry/components/headers-viewer.d.ts +6 -0
  31. package/dist/features/view-har-entry/components/payload-viewer.d.ts +6 -0
  32. package/dist/features/view-har-entry/components/response-viewer.d.ts +6 -0
  33. package/dist/features/view-har-entry/index.d.ts +5 -0
  34. package/dist/har-analyzer-preferences.js +21 -93
  35. package/dist/har-analyzer.js +72 -75
  36. package/dist/har-entries-viewer.js +7 -2117
  37. package/dist/har-file-uploader.js +18 -18
  38. package/dist/hooks/app-preferences.d.ts +2 -0
  39. package/dist/hooks/board-preferences.d.ts +2 -0
  40. package/dist/hooks/table-preferences.d.ts +12 -0
  41. package/dist/index.d.ts +8 -77
  42. package/dist/index.js +17 -16
  43. package/dist/list-har-entries.js +2131 -0
  44. package/dist/utils/common.d.ts +2 -0
  45. package/dist/utils/content-type.d.ts +4 -0
  46. package/dist/utils/date.d.ts +2 -0
  47. package/dist/utils/file-upload.d.ts +3 -0
  48. package/dist/utils/har.d.ts +17 -0
  49. package/dist/utils/json.d.ts +1 -0
  50. package/dist/view-har-entry.js +3130 -0
  51. package/package.json +3 -3
  52. package/dist/har-analyzer-preferences.d.ts +0 -18
  53. package/dist/har-analyzer.d.ts +0 -11
  54. package/dist/har-content-viewer.d.ts +0 -14
  55. package/dist/har-content-viewer.js +0 -150
  56. package/dist/har-entries-filters.d.ts +0 -23
  57. package/dist/har-entries-filters.js +0 -7
  58. package/dist/har-entries-viewer.d.ts +0 -26
  59. package/dist/har-entry-viewer.d.ts +0 -24
  60. package/dist/har-entry-viewer.js +0 -1145
  61. package/dist/har-file-uploader.d.ts +0 -16
@@ -0,0 +1,3130 @@
1
+ import { jsx as h, jsxs as _ } from "react/jsx-runtime";
2
+ import Jt from "@cloudscape-design/components/tabs";
3
+ import _t from "@cloudscape-design/code-view/code-view";
4
+ import Mt from "@cloudscape-design/components/copy-to-clipboard";
5
+ import { colorTextStatusSuccess as Ie, colorTextLinkDefault as de, colorTextCounter as $t, colorTextBodySecondary as le, colorTextStatusWarning as ve, colorTextStatusError as Pt, colorTextBodyDefault as Xe, colorBorderDividerDefault as Ot, colorBackgroundContainerContent as Kt, fontFamilyBase as qt } from "@cloudscape-design/design-tokens";
6
+ import { createContext as W, useContext as Z, useReducer as ye, useEffect as oe, Fragment as q, useState as nr, useMemo as Qt, useRef as Fe, forwardRef as ir } from "react";
7
+ import { g as Ht, a as Wt } from "./chunks/content-type.js";
8
+ import { s as Gt } from "./chunks/json.js";
9
+ import Te from "@cloudscape-design/components/box";
10
+ import Zt from "@cloudscape-design/components/column-layout";
11
+ import zt from "@cloudscape-design/components/expandable-section";
12
+ import { V as ar } from "./chunks/vertical-gap.js";
13
+ var be = {}, me = {}, er;
14
+ function Yt() {
15
+ if (er) return me;
16
+ er = 1, me.byteLength = a, me.toByteArray = N, me.fromByteArray = B;
17
+ for (var l = [], n = [], s = typeof Uint8Array < "u" ? Uint8Array : Array, c = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", u = 0, v = c.length; u < v; ++u)
18
+ l[u] = c[u], n[c.charCodeAt(u)] = u;
19
+ n[45] = 62, n[95] = 63;
20
+ function d(g) {
21
+ var C = g.length;
22
+ if (C % 4 > 0)
23
+ throw new Error("Invalid string. Length must be a multiple of 4");
24
+ var E = g.indexOf("=");
25
+ E === -1 && (E = C);
26
+ var R = E === C ? 0 : 4 - E % 4;
27
+ return [E, R];
28
+ }
29
+ function a(g) {
30
+ var C = d(g), E = C[0], R = C[1];
31
+ return (E + R) * 3 / 4 - R;
32
+ }
33
+ function y(g, C, E) {
34
+ return (C + E) * 3 / 4 - E;
35
+ }
36
+ function N(g) {
37
+ var C, E = d(g), R = E[0], I = E[1], k = new s(y(g, R, I)), b = 0, U = I > 0 ? R - 4 : R, T;
38
+ for (T = 0; T < U; T += 4)
39
+ C = n[g.charCodeAt(T)] << 18 | n[g.charCodeAt(T + 1)] << 12 | n[g.charCodeAt(T + 2)] << 6 | n[g.charCodeAt(T + 3)], k[b++] = C >> 16 & 255, k[b++] = C >> 8 & 255, k[b++] = C & 255;
40
+ return I === 2 && (C = n[g.charCodeAt(T)] << 2 | n[g.charCodeAt(T + 1)] >> 4, k[b++] = C & 255), I === 1 && (C = n[g.charCodeAt(T)] << 10 | n[g.charCodeAt(T + 1)] << 4 | n[g.charCodeAt(T + 2)] >> 2, k[b++] = C >> 8 & 255, k[b++] = C & 255), k;
41
+ }
42
+ function w(g) {
43
+ return l[g >> 18 & 63] + l[g >> 12 & 63] + l[g >> 6 & 63] + l[g & 63];
44
+ }
45
+ function x(g, C, E) {
46
+ for (var R, I = [], k = C; k < E; k += 3)
47
+ R = (g[k] << 16 & 16711680) + (g[k + 1] << 8 & 65280) + (g[k + 2] & 255), I.push(w(R));
48
+ return I.join("");
49
+ }
50
+ function B(g) {
51
+ for (var C, E = g.length, R = E % 3, I = [], k = 16383, b = 0, U = E - R; b < U; b += k)
52
+ I.push(x(g, b, b + k > U ? U : b + k));
53
+ return R === 1 ? (C = g[E - 1], I.push(
54
+ l[C >> 2] + l[C << 4 & 63] + "=="
55
+ )) : R === 2 && (C = (g[E - 2] << 8) + g[E - 1], I.push(
56
+ l[C >> 10] + l[C >> 4 & 63] + l[C << 2 & 63] + "="
57
+ )), I.join("");
58
+ }
59
+ return me;
60
+ }
61
+ var Ne = {};
62
+ /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
63
+ var rr;
64
+ function Xt() {
65
+ return rr || (rr = 1, Ne.read = function(l, n, s, c, u) {
66
+ var v, d, a = u * 8 - c - 1, y = (1 << a) - 1, N = y >> 1, w = -7, x = s ? u - 1 : 0, B = s ? -1 : 1, g = l[n + x];
67
+ for (x += B, v = g & (1 << -w) - 1, g >>= -w, w += a; w > 0; v = v * 256 + l[n + x], x += B, w -= 8)
68
+ ;
69
+ for (d = v & (1 << -w) - 1, v >>= -w, w += c; w > 0; d = d * 256 + l[n + x], x += B, w -= 8)
70
+ ;
71
+ if (v === 0)
72
+ v = 1 - N;
73
+ else {
74
+ if (v === y)
75
+ return d ? NaN : (g ? -1 : 1) * (1 / 0);
76
+ d = d + Math.pow(2, c), v = v - N;
77
+ }
78
+ return (g ? -1 : 1) * d * Math.pow(2, v - c);
79
+ }, Ne.write = function(l, n, s, c, u, v) {
80
+ var d, a, y, N = v * 8 - u - 1, w = (1 << N) - 1, x = w >> 1, B = u === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, g = c ? 0 : v - 1, C = c ? 1 : -1, E = n < 0 || n === 0 && 1 / n < 0 ? 1 : 0;
81
+ for (n = Math.abs(n), isNaN(n) || n === 1 / 0 ? (a = isNaN(n) ? 1 : 0, d = w) : (d = Math.floor(Math.log(n) / Math.LN2), n * (y = Math.pow(2, -d)) < 1 && (d--, y *= 2), d + x >= 1 ? n += B / y : n += B * Math.pow(2, 1 - x), n * y >= 2 && (d++, y /= 2), d + x >= w ? (a = 0, d = w) : d + x >= 1 ? (a = (n * y - 1) * Math.pow(2, u), d = d + x) : (a = n * Math.pow(2, x - 1) * Math.pow(2, u), d = 0)); u >= 8; l[s + g] = a & 255, g += C, a /= 256, u -= 8)
82
+ ;
83
+ for (d = d << u | a, N += u; N > 0; l[s + g] = d & 255, g += C, d /= 256, N -= 8)
84
+ ;
85
+ l[s + g - C] |= E * 128;
86
+ }), Ne;
87
+ }
88
+ /*!
89
+ * The buffer module from node.js, for the browser.
90
+ *
91
+ * @author Feross Aboukhadijeh <https://feross.org>
92
+ * @license MIT
93
+ */
94
+ var tr;
95
+ function en() {
96
+ return tr || (tr = 1, function(l) {
97
+ const n = Yt(), s = Xt(), c = typeof Symbol == "function" && typeof Symbol.for == "function" ? Symbol.for("nodejs.util.inspect.custom") : null;
98
+ l.Buffer = a, l.SlowBuffer = k, l.INSPECT_MAX_BYTES = 50;
99
+ const u = 2147483647;
100
+ l.kMaxLength = u, a.TYPED_ARRAY_SUPPORT = v(), !a.TYPED_ARRAY_SUPPORT && typeof console < "u" && typeof console.error == "function" && console.error(
101
+ "This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."
102
+ );
103
+ function v() {
104
+ try {
105
+ const t = new Uint8Array(1), e = { foo: function() {
106
+ return 42;
107
+ } };
108
+ return Object.setPrototypeOf(e, Uint8Array.prototype), Object.setPrototypeOf(t, e), t.foo() === 42;
109
+ } catch {
110
+ return !1;
111
+ }
112
+ }
113
+ Object.defineProperty(a.prototype, "parent", {
114
+ enumerable: !0,
115
+ get: function() {
116
+ if (a.isBuffer(this))
117
+ return this.buffer;
118
+ }
119
+ }), Object.defineProperty(a.prototype, "offset", {
120
+ enumerable: !0,
121
+ get: function() {
122
+ if (a.isBuffer(this))
123
+ return this.byteOffset;
124
+ }
125
+ });
126
+ function d(t) {
127
+ if (t > u)
128
+ throw new RangeError('The value "' + t + '" is invalid for option "size"');
129
+ const e = new Uint8Array(t);
130
+ return Object.setPrototypeOf(e, a.prototype), e;
131
+ }
132
+ function a(t, e, r) {
133
+ if (typeof t == "number") {
134
+ if (typeof e == "string")
135
+ throw new TypeError(
136
+ 'The "string" argument must be of type string. Received type number'
137
+ );
138
+ return x(t);
139
+ }
140
+ return y(t, e, r);
141
+ }
142
+ a.poolSize = 8192;
143
+ function y(t, e, r) {
144
+ if (typeof t == "string")
145
+ return B(t, e);
146
+ if (ArrayBuffer.isView(t))
147
+ return C(t);
148
+ if (t == null)
149
+ throw new TypeError(
150
+ "The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + typeof t
151
+ );
152
+ if (ee(t, ArrayBuffer) || t && ee(t.buffer, ArrayBuffer) || typeof SharedArrayBuffer < "u" && (ee(t, SharedArrayBuffer) || t && ee(t.buffer, SharedArrayBuffer)))
153
+ return E(t, e, r);
154
+ if (typeof t == "number")
155
+ throw new TypeError(
156
+ 'The "value" argument must not be of type number. Received type number'
157
+ );
158
+ const i = t.valueOf && t.valueOf();
159
+ if (i != null && i !== t)
160
+ return a.from(i, e, r);
161
+ const o = R(t);
162
+ if (o) return o;
163
+ if (typeof Symbol < "u" && Symbol.toPrimitive != null && typeof t[Symbol.toPrimitive] == "function")
164
+ return a.from(t[Symbol.toPrimitive]("string"), e, r);
165
+ throw new TypeError(
166
+ "The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + typeof t
167
+ );
168
+ }
169
+ a.from = function(t, e, r) {
170
+ return y(t, e, r);
171
+ }, Object.setPrototypeOf(a.prototype, Uint8Array.prototype), Object.setPrototypeOf(a, Uint8Array);
172
+ function N(t) {
173
+ if (typeof t != "number")
174
+ throw new TypeError('"size" argument must be of type number');
175
+ if (t < 0)
176
+ throw new RangeError('The value "' + t + '" is invalid for option "size"');
177
+ }
178
+ function w(t, e, r) {
179
+ return N(t), t <= 0 ? d(t) : e !== void 0 ? typeof r == "string" ? d(t).fill(e, r) : d(t).fill(e) : d(t);
180
+ }
181
+ a.alloc = function(t, e, r) {
182
+ return w(t, e, r);
183
+ };
184
+ function x(t) {
185
+ return N(t), d(t < 0 ? 0 : I(t) | 0);
186
+ }
187
+ a.allocUnsafe = function(t) {
188
+ return x(t);
189
+ }, a.allocUnsafeSlow = function(t) {
190
+ return x(t);
191
+ };
192
+ function B(t, e) {
193
+ if ((typeof e != "string" || e === "") && (e = "utf8"), !a.isEncoding(e))
194
+ throw new TypeError("Unknown encoding: " + e);
195
+ const r = b(t, e) | 0;
196
+ let i = d(r);
197
+ const o = i.write(t, e);
198
+ return o !== r && (i = i.slice(0, o)), i;
199
+ }
200
+ function g(t) {
201
+ const e = t.length < 0 ? 0 : I(t.length) | 0, r = d(e);
202
+ for (let i = 0; i < e; i += 1)
203
+ r[i] = t[i] & 255;
204
+ return r;
205
+ }
206
+ function C(t) {
207
+ if (ee(t, Uint8Array)) {
208
+ const e = new Uint8Array(t);
209
+ return E(e.buffer, e.byteOffset, e.byteLength);
210
+ }
211
+ return g(t);
212
+ }
213
+ function E(t, e, r) {
214
+ if (e < 0 || t.byteLength < e)
215
+ throw new RangeError('"offset" is outside of buffer bounds');
216
+ if (t.byteLength < e + (r || 0))
217
+ throw new RangeError('"length" is outside of buffer bounds');
218
+ let i;
219
+ return e === void 0 && r === void 0 ? i = new Uint8Array(t) : r === void 0 ? i = new Uint8Array(t, e) : i = new Uint8Array(t, e, r), Object.setPrototypeOf(i, a.prototype), i;
220
+ }
221
+ function R(t) {
222
+ if (a.isBuffer(t)) {
223
+ const e = I(t.length) | 0, r = d(e);
224
+ return r.length === 0 || t.copy(r, 0, 0, e), r;
225
+ }
226
+ if (t.length !== void 0)
227
+ return typeof t.length != "number" || ke(t.length) ? d(0) : g(t);
228
+ if (t.type === "Buffer" && Array.isArray(t.data))
229
+ return g(t.data);
230
+ }
231
+ function I(t) {
232
+ if (t >= u)
233
+ throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x" + u.toString(16) + " bytes");
234
+ return t | 0;
235
+ }
236
+ function k(t) {
237
+ return +t != t && (t = 0), a.alloc(+t);
238
+ }
239
+ a.isBuffer = function(e) {
240
+ return e != null && e._isBuffer === !0 && e !== a.prototype;
241
+ }, a.compare = function(e, r) {
242
+ if (ee(e, Uint8Array) && (e = a.from(e, e.offset, e.byteLength)), ee(r, Uint8Array) && (r = a.from(r, r.offset, r.byteLength)), !a.isBuffer(e) || !a.isBuffer(r))
243
+ throw new TypeError(
244
+ 'The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array'
245
+ );
246
+ if (e === r) return 0;
247
+ let i = e.length, o = r.length;
248
+ for (let p = 0, m = Math.min(i, o); p < m; ++p)
249
+ if (e[p] !== r[p]) {
250
+ i = e[p], o = r[p];
251
+ break;
252
+ }
253
+ return i < o ? -1 : o < i ? 1 : 0;
254
+ }, a.isEncoding = function(e) {
255
+ switch (String(e).toLowerCase()) {
256
+ case "hex":
257
+ case "utf8":
258
+ case "utf-8":
259
+ case "ascii":
260
+ case "latin1":
261
+ case "binary":
262
+ case "base64":
263
+ case "ucs2":
264
+ case "ucs-2":
265
+ case "utf16le":
266
+ case "utf-16le":
267
+ return !0;
268
+ default:
269
+ return !1;
270
+ }
271
+ }, a.concat = function(e, r) {
272
+ if (!Array.isArray(e))
273
+ throw new TypeError('"list" argument must be an Array of Buffers');
274
+ if (e.length === 0)
275
+ return a.alloc(0);
276
+ let i;
277
+ if (r === void 0)
278
+ for (r = 0, i = 0; i < e.length; ++i)
279
+ r += e[i].length;
280
+ const o = a.allocUnsafe(r);
281
+ let p = 0;
282
+ for (i = 0; i < e.length; ++i) {
283
+ let m = e[i];
284
+ if (ee(m, Uint8Array))
285
+ p + m.length > o.length ? (a.isBuffer(m) || (m = a.from(m)), m.copy(o, p)) : Uint8Array.prototype.set.call(
286
+ o,
287
+ m,
288
+ p
289
+ );
290
+ else if (a.isBuffer(m))
291
+ m.copy(o, p);
292
+ else
293
+ throw new TypeError('"list" argument must be an Array of Buffers');
294
+ p += m.length;
295
+ }
296
+ return o;
297
+ };
298
+ function b(t, e) {
299
+ if (a.isBuffer(t))
300
+ return t.length;
301
+ if (ArrayBuffer.isView(t) || ee(t, ArrayBuffer))
302
+ return t.byteLength;
303
+ if (typeof t != "string")
304
+ throw new TypeError(
305
+ 'The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type ' + typeof t
306
+ );
307
+ const r = t.length, i = arguments.length > 2 && arguments[2] === !0;
308
+ if (!i && r === 0) return 0;
309
+ let o = !1;
310
+ for (; ; )
311
+ switch (e) {
312
+ case "ascii":
313
+ case "latin1":
314
+ case "binary":
315
+ return r;
316
+ case "utf8":
317
+ case "utf-8":
318
+ return Re(t).length;
319
+ case "ucs2":
320
+ case "ucs-2":
321
+ case "utf16le":
322
+ case "utf-16le":
323
+ return r * 2;
324
+ case "hex":
325
+ return r >>> 1;
326
+ case "base64":
327
+ return Ye(t).length;
328
+ default:
329
+ if (o)
330
+ return i ? -1 : Re(t).length;
331
+ e = ("" + e).toLowerCase(), o = !0;
332
+ }
333
+ }
334
+ a.byteLength = b;
335
+ function U(t, e, r) {
336
+ let i = !1;
337
+ if ((e === void 0 || e < 0) && (e = 0), e > this.length || ((r === void 0 || r > this.length) && (r = this.length), r <= 0) || (r >>>= 0, e >>>= 0, r <= e))
338
+ return "";
339
+ for (t || (t = "utf8"); ; )
340
+ switch (t) {
341
+ case "hex":
342
+ return Tt(this, e, r);
343
+ case "utf8":
344
+ case "utf-8":
345
+ return xe(this, e, r);
346
+ case "ascii":
347
+ return It(this, e, r);
348
+ case "latin1":
349
+ case "binary":
350
+ return bt(this, e, r);
351
+ case "base64":
352
+ return ae(this, e, r);
353
+ case "ucs2":
354
+ case "ucs-2":
355
+ case "utf16le":
356
+ case "utf-16le":
357
+ return St(this, e, r);
358
+ default:
359
+ if (i) throw new TypeError("Unknown encoding: " + t);
360
+ t = (t + "").toLowerCase(), i = !0;
361
+ }
362
+ }
363
+ a.prototype._isBuffer = !0;
364
+ function T(t, e, r) {
365
+ const i = t[e];
366
+ t[e] = t[r], t[r] = i;
367
+ }
368
+ a.prototype.swap16 = function() {
369
+ const e = this.length;
370
+ if (e % 2 !== 0)
371
+ throw new RangeError("Buffer size must be a multiple of 16-bits");
372
+ for (let r = 0; r < e; r += 2)
373
+ T(this, r, r + 1);
374
+ return this;
375
+ }, a.prototype.swap32 = function() {
376
+ const e = this.length;
377
+ if (e % 4 !== 0)
378
+ throw new RangeError("Buffer size must be a multiple of 32-bits");
379
+ for (let r = 0; r < e; r += 4)
380
+ T(this, r, r + 3), T(this, r + 1, r + 2);
381
+ return this;
382
+ }, a.prototype.swap64 = function() {
383
+ const e = this.length;
384
+ if (e % 8 !== 0)
385
+ throw new RangeError("Buffer size must be a multiple of 64-bits");
386
+ for (let r = 0; r < e; r += 8)
387
+ T(this, r, r + 7), T(this, r + 1, r + 6), T(this, r + 2, r + 5), T(this, r + 3, r + 4);
388
+ return this;
389
+ }, a.prototype.toString = function() {
390
+ const e = this.length;
391
+ return e === 0 ? "" : arguments.length === 0 ? xe(this, 0, e) : U.apply(this, arguments);
392
+ }, a.prototype.toLocaleString = a.prototype.toString, a.prototype.equals = function(e) {
393
+ if (!a.isBuffer(e)) throw new TypeError("Argument must be a Buffer");
394
+ return this === e ? !0 : a.compare(this, e) === 0;
395
+ }, a.prototype.inspect = function() {
396
+ let e = "";
397
+ const r = l.INSPECT_MAX_BYTES;
398
+ return e = this.toString("hex", 0, r).replace(/(.{2})/g, "$1 ").trim(), this.length > r && (e += " ... "), "<Buffer " + e + ">";
399
+ }, c && (a.prototype[c] = a.prototype.inspect), a.prototype.compare = function(e, r, i, o, p) {
400
+ if (ee(e, Uint8Array) && (e = a.from(e, e.offset, e.byteLength)), !a.isBuffer(e))
401
+ throw new TypeError(
402
+ 'The "target" argument must be one of type Buffer or Uint8Array. Received type ' + typeof e
403
+ );
404
+ if (r === void 0 && (r = 0), i === void 0 && (i = e ? e.length : 0), o === void 0 && (o = 0), p === void 0 && (p = this.length), r < 0 || i > e.length || o < 0 || p > this.length)
405
+ throw new RangeError("out of range index");
406
+ if (o >= p && r >= i)
407
+ return 0;
408
+ if (o >= p)
409
+ return -1;
410
+ if (r >= i)
411
+ return 1;
412
+ if (r >>>= 0, i >>>= 0, o >>>= 0, p >>>= 0, this === e) return 0;
413
+ let m = p - o, S = i - r;
414
+ const D = Math.min(m, S), V = this.slice(o, p), J = e.slice(r, i);
415
+ for (let L = 0; L < D; ++L)
416
+ if (V[L] !== J[L]) {
417
+ m = V[L], S = J[L];
418
+ break;
419
+ }
420
+ return m < S ? -1 : S < m ? 1 : 0;
421
+ };
422
+ function $(t, e, r, i, o) {
423
+ if (t.length === 0) return -1;
424
+ if (typeof r == "string" ? (i = r, r = 0) : r > 2147483647 ? r = 2147483647 : r < -2147483648 && (r = -2147483648), r = +r, ke(r) && (r = o ? 0 : t.length - 1), r < 0 && (r = t.length + r), r >= t.length) {
425
+ if (o) return -1;
426
+ r = t.length - 1;
427
+ } else if (r < 0)
428
+ if (o) r = 0;
429
+ else return -1;
430
+ if (typeof e == "string" && (e = a.from(e, i)), a.isBuffer(e))
431
+ return e.length === 0 ? -1 : H(t, e, r, i, o);
432
+ if (typeof e == "number")
433
+ return e = e & 255, typeof Uint8Array.prototype.indexOf == "function" ? o ? Uint8Array.prototype.indexOf.call(t, e, r) : Uint8Array.prototype.lastIndexOf.call(t, e, r) : H(t, [e], r, i, o);
434
+ throw new TypeError("val must be string, number or Buffer");
435
+ }
436
+ function H(t, e, r, i, o) {
437
+ let p = 1, m = t.length, S = e.length;
438
+ if (i !== void 0 && (i = String(i).toLowerCase(), i === "ucs2" || i === "ucs-2" || i === "utf16le" || i === "utf-16le")) {
439
+ if (t.length < 2 || e.length < 2)
440
+ return -1;
441
+ p = 2, m /= 2, S /= 2, r /= 2;
442
+ }
443
+ function D(J, L) {
444
+ return p === 1 ? J[L] : J.readUInt16BE(L * p);
445
+ }
446
+ let V;
447
+ if (o) {
448
+ let J = -1;
449
+ for (V = r; V < m; V++)
450
+ if (D(t, V) === D(e, J === -1 ? 0 : V - J)) {
451
+ if (J === -1 && (J = V), V - J + 1 === S) return J * p;
452
+ } else
453
+ J !== -1 && (V -= V - J), J = -1;
454
+ } else
455
+ for (r + S > m && (r = m - S), V = r; V >= 0; V--) {
456
+ let J = !0;
457
+ for (let L = 0; L < S; L++)
458
+ if (D(t, V + L) !== D(e, L)) {
459
+ J = !1;
460
+ break;
461
+ }
462
+ if (J) return V;
463
+ }
464
+ return -1;
465
+ }
466
+ a.prototype.includes = function(e, r, i) {
467
+ return this.indexOf(e, r, i) !== -1;
468
+ }, a.prototype.indexOf = function(e, r, i) {
469
+ return $(this, e, r, i, !0);
470
+ }, a.prototype.lastIndexOf = function(e, r, i) {
471
+ return $(this, e, r, i, !1);
472
+ };
473
+ function re(t, e, r, i) {
474
+ r = Number(r) || 0;
475
+ const o = t.length - r;
476
+ i ? (i = Number(i), i > o && (i = o)) : i = o;
477
+ const p = e.length;
478
+ i > p / 2 && (i = p / 2);
479
+ let m;
480
+ for (m = 0; m < i; ++m) {
481
+ const S = parseInt(e.substr(m * 2, 2), 16);
482
+ if (ke(S)) return m;
483
+ t[r + m] = S;
484
+ }
485
+ return m;
486
+ }
487
+ function P(t, e, r, i) {
488
+ return ge(Re(e, t.length - r), t, r, i);
489
+ }
490
+ function Y(t, e, r, i) {
491
+ return ge(At(e), t, r, i);
492
+ }
493
+ function ue(t, e, r, i) {
494
+ return ge(Ye(e), t, r, i);
495
+ }
496
+ function ie(t, e, r, i) {
497
+ return ge(Vt(e, t.length - r), t, r, i);
498
+ }
499
+ a.prototype.write = function(e, r, i, o) {
500
+ if (r === void 0)
501
+ o = "utf8", i = this.length, r = 0;
502
+ else if (i === void 0 && typeof r == "string")
503
+ o = r, i = this.length, r = 0;
504
+ else if (isFinite(r))
505
+ r = r >>> 0, isFinite(i) ? (i = i >>> 0, o === void 0 && (o = "utf8")) : (o = i, i = void 0);
506
+ else
507
+ throw new Error(
508
+ "Buffer.write(string, encoding, offset[, length]) is no longer supported"
509
+ );
510
+ const p = this.length - r;
511
+ if ((i === void 0 || i > p) && (i = p), e.length > 0 && (i < 0 || r < 0) || r > this.length)
512
+ throw new RangeError("Attempt to write outside buffer bounds");
513
+ o || (o = "utf8");
514
+ let m = !1;
515
+ for (; ; )
516
+ switch (o) {
517
+ case "hex":
518
+ return re(this, e, r, i);
519
+ case "utf8":
520
+ case "utf-8":
521
+ return P(this, e, r, i);
522
+ case "ascii":
523
+ case "latin1":
524
+ case "binary":
525
+ return Y(this, e, r, i);
526
+ case "base64":
527
+ return ue(this, e, r, i);
528
+ case "ucs2":
529
+ case "ucs-2":
530
+ case "utf16le":
531
+ case "utf-16le":
532
+ return ie(this, e, r, i);
533
+ default:
534
+ if (m) throw new TypeError("Unknown encoding: " + o);
535
+ o = ("" + o).toLowerCase(), m = !0;
536
+ }
537
+ }, a.prototype.toJSON = function() {
538
+ return {
539
+ type: "Buffer",
540
+ data: Array.prototype.slice.call(this._arr || this, 0)
541
+ };
542
+ };
543
+ function ae(t, e, r) {
544
+ return e === 0 && r === t.length ? n.fromByteArray(t) : n.fromByteArray(t.slice(e, r));
545
+ }
546
+ function xe(t, e, r) {
547
+ r = Math.min(t.length, r);
548
+ const i = [];
549
+ let o = e;
550
+ for (; o < r; ) {
551
+ const p = t[o];
552
+ let m = null, S = p > 239 ? 4 : p > 223 ? 3 : p > 191 ? 2 : 1;
553
+ if (o + S <= r) {
554
+ let D, V, J, L;
555
+ switch (S) {
556
+ case 1:
557
+ p < 128 && (m = p);
558
+ break;
559
+ case 2:
560
+ D = t[o + 1], (D & 192) === 128 && (L = (p & 31) << 6 | D & 63, L > 127 && (m = L));
561
+ break;
562
+ case 3:
563
+ D = t[o + 1], V = t[o + 2], (D & 192) === 128 && (V & 192) === 128 && (L = (p & 15) << 12 | (D & 63) << 6 | V & 63, L > 2047 && (L < 55296 || L > 57343) && (m = L));
564
+ break;
565
+ case 4:
566
+ D = t[o + 1], V = t[o + 2], J = t[o + 3], (D & 192) === 128 && (V & 192) === 128 && (J & 192) === 128 && (L = (p & 15) << 18 | (D & 63) << 12 | (V & 63) << 6 | J & 63, L > 65535 && L < 1114112 && (m = L));
567
+ }
568
+ }
569
+ m === null ? (m = 65533, S = 1) : m > 65535 && (m -= 65536, i.push(m >>> 10 & 1023 | 55296), m = 56320 | m & 1023), i.push(m), o += S;
570
+ }
571
+ return kt(i);
572
+ }
573
+ const X = 4096;
574
+ function kt(t) {
575
+ const e = t.length;
576
+ if (e <= X)
577
+ return String.fromCharCode.apply(String, t);
578
+ let r = "", i = 0;
579
+ for (; i < e; )
580
+ r += String.fromCharCode.apply(
581
+ String,
582
+ t.slice(i, i += X)
583
+ );
584
+ return r;
585
+ }
586
+ function It(t, e, r) {
587
+ let i = "";
588
+ r = Math.min(t.length, r);
589
+ for (let o = e; o < r; ++o)
590
+ i += String.fromCharCode(t[o] & 127);
591
+ return i;
592
+ }
593
+ function bt(t, e, r) {
594
+ let i = "";
595
+ r = Math.min(t.length, r);
596
+ for (let o = e; o < r; ++o)
597
+ i += String.fromCharCode(t[o]);
598
+ return i;
599
+ }
600
+ function Tt(t, e, r) {
601
+ const i = t.length;
602
+ (!e || e < 0) && (e = 0), (!r || r < 0 || r > i) && (r = i);
603
+ let o = "";
604
+ for (let p = e; p < r; ++p)
605
+ o += Ut[t[p]];
606
+ return o;
607
+ }
608
+ function St(t, e, r) {
609
+ const i = t.slice(e, r);
610
+ let o = "";
611
+ for (let p = 0; p < i.length - 1; p += 2)
612
+ o += String.fromCharCode(i[p] + i[p + 1] * 256);
613
+ return o;
614
+ }
615
+ a.prototype.slice = function(e, r) {
616
+ const i = this.length;
617
+ e = ~~e, r = r === void 0 ? i : ~~r, e < 0 ? (e += i, e < 0 && (e = 0)) : e > i && (e = i), r < 0 ? (r += i, r < 0 && (r = 0)) : r > i && (r = i), r < e && (r = e);
618
+ const o = this.subarray(e, r);
619
+ return Object.setPrototypeOf(o, a.prototype), o;
620
+ };
621
+ function M(t, e, r) {
622
+ if (t % 1 !== 0 || t < 0) throw new RangeError("offset is not uint");
623
+ if (t + e > r) throw new RangeError("Trying to access beyond buffer length");
624
+ }
625
+ a.prototype.readUintLE = a.prototype.readUIntLE = function(e, r, i) {
626
+ e = e >>> 0, r = r >>> 0, i || M(e, r, this.length);
627
+ let o = this[e], p = 1, m = 0;
628
+ for (; ++m < r && (p *= 256); )
629
+ o += this[e + m] * p;
630
+ return o;
631
+ }, a.prototype.readUintBE = a.prototype.readUIntBE = function(e, r, i) {
632
+ e = e >>> 0, r = r >>> 0, i || M(e, r, this.length);
633
+ let o = this[e + --r], p = 1;
634
+ for (; r > 0 && (p *= 256); )
635
+ o += this[e + --r] * p;
636
+ return o;
637
+ }, a.prototype.readUint8 = a.prototype.readUInt8 = function(e, r) {
638
+ return e = e >>> 0, r || M(e, 1, this.length), this[e];
639
+ }, a.prototype.readUint16LE = a.prototype.readUInt16LE = function(e, r) {
640
+ return e = e >>> 0, r || M(e, 2, this.length), this[e] | this[e + 1] << 8;
641
+ }, a.prototype.readUint16BE = a.prototype.readUInt16BE = function(e, r) {
642
+ return e = e >>> 0, r || M(e, 2, this.length), this[e] << 8 | this[e + 1];
643
+ }, a.prototype.readUint32LE = a.prototype.readUInt32LE = function(e, r) {
644
+ return e = e >>> 0, r || M(e, 4, this.length), (this[e] | this[e + 1] << 8 | this[e + 2] << 16) + this[e + 3] * 16777216;
645
+ }, a.prototype.readUint32BE = a.prototype.readUInt32BE = function(e, r) {
646
+ return e = e >>> 0, r || M(e, 4, this.length), this[e] * 16777216 + (this[e + 1] << 16 | this[e + 2] << 8 | this[e + 3]);
647
+ }, a.prototype.readBigUInt64LE = te(function(e) {
648
+ e = e >>> 0, pe(e, "offset");
649
+ const r = this[e], i = this[e + 7];
650
+ (r === void 0 || i === void 0) && he(e, this.length - 8);
651
+ const o = r + this[++e] * 2 ** 8 + this[++e] * 2 ** 16 + this[++e] * 2 ** 24, p = this[++e] + this[++e] * 2 ** 8 + this[++e] * 2 ** 16 + i * 2 ** 24;
652
+ return BigInt(o) + (BigInt(p) << BigInt(32));
653
+ }), a.prototype.readBigUInt64BE = te(function(e) {
654
+ e = e >>> 0, pe(e, "offset");
655
+ const r = this[e], i = this[e + 7];
656
+ (r === void 0 || i === void 0) && he(e, this.length - 8);
657
+ const o = r * 2 ** 24 + this[++e] * 2 ** 16 + this[++e] * 2 ** 8 + this[++e], p = this[++e] * 2 ** 24 + this[++e] * 2 ** 16 + this[++e] * 2 ** 8 + i;
658
+ return (BigInt(o) << BigInt(32)) + BigInt(p);
659
+ }), a.prototype.readIntLE = function(e, r, i) {
660
+ e = e >>> 0, r = r >>> 0, i || M(e, r, this.length);
661
+ let o = this[e], p = 1, m = 0;
662
+ for (; ++m < r && (p *= 256); )
663
+ o += this[e + m] * p;
664
+ return p *= 128, o >= p && (o -= Math.pow(2, 8 * r)), o;
665
+ }, a.prototype.readIntBE = function(e, r, i) {
666
+ e = e >>> 0, r = r >>> 0, i || M(e, r, this.length);
667
+ let o = r, p = 1, m = this[e + --o];
668
+ for (; o > 0 && (p *= 256); )
669
+ m += this[e + --o] * p;
670
+ return p *= 128, m >= p && (m -= Math.pow(2, 8 * r)), m;
671
+ }, a.prototype.readInt8 = function(e, r) {
672
+ return e = e >>> 0, r || M(e, 1, this.length), this[e] & 128 ? (255 - this[e] + 1) * -1 : this[e];
673
+ }, a.prototype.readInt16LE = function(e, r) {
674
+ e = e >>> 0, r || M(e, 2, this.length);
675
+ const i = this[e] | this[e + 1] << 8;
676
+ return i & 32768 ? i | 4294901760 : i;
677
+ }, a.prototype.readInt16BE = function(e, r) {
678
+ e = e >>> 0, r || M(e, 2, this.length);
679
+ const i = this[e + 1] | this[e] << 8;
680
+ return i & 32768 ? i | 4294901760 : i;
681
+ }, a.prototype.readInt32LE = function(e, r) {
682
+ return e = e >>> 0, r || M(e, 4, this.length), this[e] | this[e + 1] << 8 | this[e + 2] << 16 | this[e + 3] << 24;
683
+ }, a.prototype.readInt32BE = function(e, r) {
684
+ return e = e >>> 0, r || M(e, 4, this.length), this[e] << 24 | this[e + 1] << 16 | this[e + 2] << 8 | this[e + 3];
685
+ }, a.prototype.readBigInt64LE = te(function(e) {
686
+ e = e >>> 0, pe(e, "offset");
687
+ const r = this[e], i = this[e + 7];
688
+ (r === void 0 || i === void 0) && he(e, this.length - 8);
689
+ const o = this[e + 4] + this[e + 5] * 2 ** 8 + this[e + 6] * 2 ** 16 + (i << 24);
690
+ return (BigInt(o) << BigInt(32)) + BigInt(r + this[++e] * 2 ** 8 + this[++e] * 2 ** 16 + this[++e] * 2 ** 24);
691
+ }), a.prototype.readBigInt64BE = te(function(e) {
692
+ e = e >>> 0, pe(e, "offset");
693
+ const r = this[e], i = this[e + 7];
694
+ (r === void 0 || i === void 0) && he(e, this.length - 8);
695
+ const o = (r << 24) + // Overflow
696
+ this[++e] * 2 ** 16 + this[++e] * 2 ** 8 + this[++e];
697
+ return (BigInt(o) << BigInt(32)) + BigInt(this[++e] * 2 ** 24 + this[++e] * 2 ** 16 + this[++e] * 2 ** 8 + i);
698
+ }), a.prototype.readFloatLE = function(e, r) {
699
+ return e = e >>> 0, r || M(e, 4, this.length), s.read(this, e, !0, 23, 4);
700
+ }, a.prototype.readFloatBE = function(e, r) {
701
+ return e = e >>> 0, r || M(e, 4, this.length), s.read(this, e, !1, 23, 4);
702
+ }, a.prototype.readDoubleLE = function(e, r) {
703
+ return e = e >>> 0, r || M(e, 8, this.length), s.read(this, e, !0, 52, 8);
704
+ }, a.prototype.readDoubleBE = function(e, r) {
705
+ return e = e >>> 0, r || M(e, 8, this.length), s.read(this, e, !1, 52, 8);
706
+ };
707
+ function O(t, e, r, i, o, p) {
708
+ if (!a.isBuffer(t)) throw new TypeError('"buffer" argument must be a Buffer instance');
709
+ if (e > o || e < p) throw new RangeError('"value" argument is out of bounds');
710
+ if (r + i > t.length) throw new RangeError("Index out of range");
711
+ }
712
+ a.prototype.writeUintLE = a.prototype.writeUIntLE = function(e, r, i, o) {
713
+ if (e = +e, r = r >>> 0, i = i >>> 0, !o) {
714
+ const S = Math.pow(2, 8 * i) - 1;
715
+ O(this, e, r, i, S, 0);
716
+ }
717
+ let p = 1, m = 0;
718
+ for (this[r] = e & 255; ++m < i && (p *= 256); )
719
+ this[r + m] = e / p & 255;
720
+ return r + i;
721
+ }, a.prototype.writeUintBE = a.prototype.writeUIntBE = function(e, r, i, o) {
722
+ if (e = +e, r = r >>> 0, i = i >>> 0, !o) {
723
+ const S = Math.pow(2, 8 * i) - 1;
724
+ O(this, e, r, i, S, 0);
725
+ }
726
+ let p = i - 1, m = 1;
727
+ for (this[r + p] = e & 255; --p >= 0 && (m *= 256); )
728
+ this[r + p] = e / m & 255;
729
+ return r + i;
730
+ }, a.prototype.writeUint8 = a.prototype.writeUInt8 = function(e, r, i) {
731
+ return e = +e, r = r >>> 0, i || O(this, e, r, 1, 255, 0), this[r] = e & 255, r + 1;
732
+ }, a.prototype.writeUint16LE = a.prototype.writeUInt16LE = function(e, r, i) {
733
+ return e = +e, r = r >>> 0, i || O(this, e, r, 2, 65535, 0), this[r] = e & 255, this[r + 1] = e >>> 8, r + 2;
734
+ }, a.prototype.writeUint16BE = a.prototype.writeUInt16BE = function(e, r, i) {
735
+ return e = +e, r = r >>> 0, i || O(this, e, r, 2, 65535, 0), this[r] = e >>> 8, this[r + 1] = e & 255, r + 2;
736
+ }, a.prototype.writeUint32LE = a.prototype.writeUInt32LE = function(e, r, i) {
737
+ return e = +e, r = r >>> 0, i || O(this, e, r, 4, 4294967295, 0), this[r + 3] = e >>> 24, this[r + 2] = e >>> 16, this[r + 1] = e >>> 8, this[r] = e & 255, r + 4;
738
+ }, a.prototype.writeUint32BE = a.prototype.writeUInt32BE = function(e, r, i) {
739
+ return e = +e, r = r >>> 0, i || O(this, e, r, 4, 4294967295, 0), this[r] = e >>> 24, this[r + 1] = e >>> 16, this[r + 2] = e >>> 8, this[r + 3] = e & 255, r + 4;
740
+ };
741
+ function qe(t, e, r, i, o) {
742
+ ze(e, i, o, t, r, 7);
743
+ let p = Number(e & BigInt(4294967295));
744
+ t[r++] = p, p = p >> 8, t[r++] = p, p = p >> 8, t[r++] = p, p = p >> 8, t[r++] = p;
745
+ let m = Number(e >> BigInt(32) & BigInt(4294967295));
746
+ return t[r++] = m, m = m >> 8, t[r++] = m, m = m >> 8, t[r++] = m, m = m >> 8, t[r++] = m, r;
747
+ }
748
+ function Qe(t, e, r, i, o) {
749
+ ze(e, i, o, t, r, 7);
750
+ let p = Number(e & BigInt(4294967295));
751
+ t[r + 7] = p, p = p >> 8, t[r + 6] = p, p = p >> 8, t[r + 5] = p, p = p >> 8, t[r + 4] = p;
752
+ let m = Number(e >> BigInt(32) & BigInt(4294967295));
753
+ return t[r + 3] = m, m = m >> 8, t[r + 2] = m, m = m >> 8, t[r + 1] = m, m = m >> 8, t[r] = m, r + 8;
754
+ }
755
+ a.prototype.writeBigUInt64LE = te(function(e, r = 0) {
756
+ return qe(this, e, r, BigInt(0), BigInt("0xffffffffffffffff"));
757
+ }), a.prototype.writeBigUInt64BE = te(function(e, r = 0) {
758
+ return Qe(this, e, r, BigInt(0), BigInt("0xffffffffffffffff"));
759
+ }), a.prototype.writeIntLE = function(e, r, i, o) {
760
+ if (e = +e, r = r >>> 0, !o) {
761
+ const D = Math.pow(2, 8 * i - 1);
762
+ O(this, e, r, i, D - 1, -D);
763
+ }
764
+ let p = 0, m = 1, S = 0;
765
+ for (this[r] = e & 255; ++p < i && (m *= 256); )
766
+ e < 0 && S === 0 && this[r + p - 1] !== 0 && (S = 1), this[r + p] = (e / m >> 0) - S & 255;
767
+ return r + i;
768
+ }, a.prototype.writeIntBE = function(e, r, i, o) {
769
+ if (e = +e, r = r >>> 0, !o) {
770
+ const D = Math.pow(2, 8 * i - 1);
771
+ O(this, e, r, i, D - 1, -D);
772
+ }
773
+ let p = i - 1, m = 1, S = 0;
774
+ for (this[r + p] = e & 255; --p >= 0 && (m *= 256); )
775
+ e < 0 && S === 0 && this[r + p + 1] !== 0 && (S = 1), this[r + p] = (e / m >> 0) - S & 255;
776
+ return r + i;
777
+ }, a.prototype.writeInt8 = function(e, r, i) {
778
+ return e = +e, r = r >>> 0, i || O(this, e, r, 1, 127, -128), e < 0 && (e = 255 + e + 1), this[r] = e & 255, r + 1;
779
+ }, a.prototype.writeInt16LE = function(e, r, i) {
780
+ return e = +e, r = r >>> 0, i || O(this, e, r, 2, 32767, -32768), this[r] = e & 255, this[r + 1] = e >>> 8, r + 2;
781
+ }, a.prototype.writeInt16BE = function(e, r, i) {
782
+ return e = +e, r = r >>> 0, i || O(this, e, r, 2, 32767, -32768), this[r] = e >>> 8, this[r + 1] = e & 255, r + 2;
783
+ }, a.prototype.writeInt32LE = function(e, r, i) {
784
+ return e = +e, r = r >>> 0, i || O(this, e, r, 4, 2147483647, -2147483648), this[r] = e & 255, this[r + 1] = e >>> 8, this[r + 2] = e >>> 16, this[r + 3] = e >>> 24, r + 4;
785
+ }, a.prototype.writeInt32BE = function(e, r, i) {
786
+ return e = +e, r = r >>> 0, i || O(this, e, r, 4, 2147483647, -2147483648), e < 0 && (e = 4294967295 + e + 1), this[r] = e >>> 24, this[r + 1] = e >>> 16, this[r + 2] = e >>> 8, this[r + 3] = e & 255, r + 4;
787
+ }, a.prototype.writeBigInt64LE = te(function(e, r = 0) {
788
+ return qe(this, e, r, -BigInt("0x8000000000000000"), BigInt("0x7fffffffffffffff"));
789
+ }), a.prototype.writeBigInt64BE = te(function(e, r = 0) {
790
+ return Qe(this, e, r, -BigInt("0x8000000000000000"), BigInt("0x7fffffffffffffff"));
791
+ });
792
+ function He(t, e, r, i, o, p) {
793
+ if (r + i > t.length) throw new RangeError("Index out of range");
794
+ if (r < 0) throw new RangeError("Index out of range");
795
+ }
796
+ function We(t, e, r, i, o) {
797
+ return e = +e, r = r >>> 0, o || He(t, e, r, 4), s.write(t, e, r, i, 23, 4), r + 4;
798
+ }
799
+ a.prototype.writeFloatLE = function(e, r, i) {
800
+ return We(this, e, r, !0, i);
801
+ }, a.prototype.writeFloatBE = function(e, r, i) {
802
+ return We(this, e, r, !1, i);
803
+ };
804
+ function Ge(t, e, r, i, o) {
805
+ return e = +e, r = r >>> 0, o || He(t, e, r, 8), s.write(t, e, r, i, 52, 8), r + 8;
806
+ }
807
+ a.prototype.writeDoubleLE = function(e, r, i) {
808
+ return Ge(this, e, r, !0, i);
809
+ }, a.prototype.writeDoubleBE = function(e, r, i) {
810
+ return Ge(this, e, r, !1, i);
811
+ }, a.prototype.copy = function(e, r, i, o) {
812
+ if (!a.isBuffer(e)) throw new TypeError("argument should be a Buffer");
813
+ if (i || (i = 0), !o && o !== 0 && (o = this.length), r >= e.length && (r = e.length), r || (r = 0), o > 0 && o < i && (o = i), o === i || e.length === 0 || this.length === 0) return 0;
814
+ if (r < 0)
815
+ throw new RangeError("targetStart out of bounds");
816
+ if (i < 0 || i >= this.length) throw new RangeError("Index out of range");
817
+ if (o < 0) throw new RangeError("sourceEnd out of bounds");
818
+ o > this.length && (o = this.length), e.length - r < o - i && (o = e.length - r + i);
819
+ const p = o - i;
820
+ return this === e && typeof Uint8Array.prototype.copyWithin == "function" ? this.copyWithin(r, i, o) : Uint8Array.prototype.set.call(
821
+ e,
822
+ this.subarray(i, o),
823
+ r
824
+ ), p;
825
+ }, a.prototype.fill = function(e, r, i, o) {
826
+ if (typeof e == "string") {
827
+ if (typeof r == "string" ? (o = r, r = 0, i = this.length) : typeof i == "string" && (o = i, i = this.length), o !== void 0 && typeof o != "string")
828
+ throw new TypeError("encoding must be a string");
829
+ if (typeof o == "string" && !a.isEncoding(o))
830
+ throw new TypeError("Unknown encoding: " + o);
831
+ if (e.length === 1) {
832
+ const m = e.charCodeAt(0);
833
+ (o === "utf8" && m < 128 || o === "latin1") && (e = m);
834
+ }
835
+ } else typeof e == "number" ? e = e & 255 : typeof e == "boolean" && (e = Number(e));
836
+ if (r < 0 || this.length < r || this.length < i)
837
+ throw new RangeError("Out of range index");
838
+ if (i <= r)
839
+ return this;
840
+ r = r >>> 0, i = i === void 0 ? this.length : i >>> 0, e || (e = 0);
841
+ let p;
842
+ if (typeof e == "number")
843
+ for (p = r; p < i; ++p)
844
+ this[p] = e;
845
+ else {
846
+ const m = a.isBuffer(e) ? e : a.from(e, o), S = m.length;
847
+ if (S === 0)
848
+ throw new TypeError('The value "' + e + '" is invalid for argument "value"');
849
+ for (p = 0; p < i - r; ++p)
850
+ this[p + r] = m[p % S];
851
+ }
852
+ return this;
853
+ };
854
+ const ce = {};
855
+ function Ee(t, e, r) {
856
+ ce[t] = class extends r {
857
+ constructor() {
858
+ super(), Object.defineProperty(this, "message", {
859
+ value: e.apply(this, arguments),
860
+ writable: !0,
861
+ configurable: !0
862
+ }), this.name = `${this.name} [${t}]`, this.stack, delete this.name;
863
+ }
864
+ get code() {
865
+ return t;
866
+ }
867
+ set code(o) {
868
+ Object.defineProperty(this, "code", {
869
+ configurable: !0,
870
+ enumerable: !0,
871
+ value: o,
872
+ writable: !0
873
+ });
874
+ }
875
+ toString() {
876
+ return `${this.name} [${t}]: ${this.message}`;
877
+ }
878
+ };
879
+ }
880
+ Ee(
881
+ "ERR_BUFFER_OUT_OF_BOUNDS",
882
+ function(t) {
883
+ return t ? `${t} is outside of buffer bounds` : "Attempt to access memory outside buffer bounds";
884
+ },
885
+ RangeError
886
+ ), Ee(
887
+ "ERR_INVALID_ARG_TYPE",
888
+ function(t, e) {
889
+ return `The "${t}" argument must be of type number. Received type ${typeof e}`;
890
+ },
891
+ TypeError
892
+ ), Ee(
893
+ "ERR_OUT_OF_RANGE",
894
+ function(t, e, r) {
895
+ let i = `The value of "${t}" is out of range.`, o = r;
896
+ return Number.isInteger(r) && Math.abs(r) > 2 ** 32 ? o = Ze(String(r)) : typeof r == "bigint" && (o = String(r), (r > BigInt(2) ** BigInt(32) || r < -(BigInt(2) ** BigInt(32))) && (o = Ze(o)), o += "n"), i += ` It must be ${e}. Received ${o}`, i;
897
+ },
898
+ RangeError
899
+ );
900
+ function Ze(t) {
901
+ let e = "", r = t.length;
902
+ const i = t[0] === "-" ? 1 : 0;
903
+ for (; r >= i + 4; r -= 3)
904
+ e = `_${t.slice(r - 3, r)}${e}`;
905
+ return `${t.slice(0, r)}${e}`;
906
+ }
907
+ function jt(t, e, r) {
908
+ pe(e, "offset"), (t[e] === void 0 || t[e + r] === void 0) && he(e, t.length - (r + 1));
909
+ }
910
+ function ze(t, e, r, i, o, p) {
911
+ if (t > r || t < e) {
912
+ const m = typeof e == "bigint" ? "n" : "";
913
+ let S;
914
+ throw e === 0 || e === BigInt(0) ? S = `>= 0${m} and < 2${m} ** ${(p + 1) * 8}${m}` : S = `>= -(2${m} ** ${(p + 1) * 8 - 1}${m}) and < 2 ** ${(p + 1) * 8 - 1}${m}`, new ce.ERR_OUT_OF_RANGE("value", S, t);
915
+ }
916
+ jt(i, o, p);
917
+ }
918
+ function pe(t, e) {
919
+ if (typeof t != "number")
920
+ throw new ce.ERR_INVALID_ARG_TYPE(e, "number", t);
921
+ }
922
+ function he(t, e, r) {
923
+ throw Math.floor(t) !== t ? (pe(t, r), new ce.ERR_OUT_OF_RANGE("offset", "an integer", t)) : e < 0 ? new ce.ERR_BUFFER_OUT_OF_BOUNDS() : new ce.ERR_OUT_OF_RANGE(
924
+ "offset",
925
+ `>= 0 and <= ${e}`,
926
+ t
927
+ );
928
+ }
929
+ const Ft = /[^+/0-9A-Za-z-_]/g;
930
+ function Lt(t) {
931
+ if (t = t.split("=")[0], t = t.trim().replace(Ft, ""), t.length < 2) return "";
932
+ for (; t.length % 4 !== 0; )
933
+ t = t + "=";
934
+ return t;
935
+ }
936
+ function Re(t, e) {
937
+ e = e || 1 / 0;
938
+ let r;
939
+ const i = t.length;
940
+ let o = null;
941
+ const p = [];
942
+ for (let m = 0; m < i; ++m) {
943
+ if (r = t.charCodeAt(m), r > 55295 && r < 57344) {
944
+ if (!o) {
945
+ if (r > 56319) {
946
+ (e -= 3) > -1 && p.push(239, 191, 189);
947
+ continue;
948
+ } else if (m + 1 === i) {
949
+ (e -= 3) > -1 && p.push(239, 191, 189);
950
+ continue;
951
+ }
952
+ o = r;
953
+ continue;
954
+ }
955
+ if (r < 56320) {
956
+ (e -= 3) > -1 && p.push(239, 191, 189), o = r;
957
+ continue;
958
+ }
959
+ r = (o - 55296 << 10 | r - 56320) + 65536;
960
+ } else o && (e -= 3) > -1 && p.push(239, 191, 189);
961
+ if (o = null, r < 128) {
962
+ if ((e -= 1) < 0) break;
963
+ p.push(r);
964
+ } else if (r < 2048) {
965
+ if ((e -= 2) < 0) break;
966
+ p.push(
967
+ r >> 6 | 192,
968
+ r & 63 | 128
969
+ );
970
+ } else if (r < 65536) {
971
+ if ((e -= 3) < 0) break;
972
+ p.push(
973
+ r >> 12 | 224,
974
+ r >> 6 & 63 | 128,
975
+ r & 63 | 128
976
+ );
977
+ } else if (r < 1114112) {
978
+ if ((e -= 4) < 0) break;
979
+ p.push(
980
+ r >> 18 | 240,
981
+ r >> 12 & 63 | 128,
982
+ r >> 6 & 63 | 128,
983
+ r & 63 | 128
984
+ );
985
+ } else
986
+ throw new Error("Invalid code point");
987
+ }
988
+ return p;
989
+ }
990
+ function At(t) {
991
+ const e = [];
992
+ for (let r = 0; r < t.length; ++r)
993
+ e.push(t.charCodeAt(r) & 255);
994
+ return e;
995
+ }
996
+ function Vt(t, e) {
997
+ let r, i, o;
998
+ const p = [];
999
+ for (let m = 0; m < t.length && !((e -= 2) < 0); ++m)
1000
+ r = t.charCodeAt(m), i = r >> 8, o = r % 256, p.push(o), p.push(i);
1001
+ return p;
1002
+ }
1003
+ function Ye(t) {
1004
+ return n.toByteArray(Lt(t));
1005
+ }
1006
+ function ge(t, e, r, i) {
1007
+ let o;
1008
+ for (o = 0; o < i && !(o + r >= e.length || o >= t.length); ++o)
1009
+ e[o + r] = t[o];
1010
+ return o;
1011
+ }
1012
+ function ee(t, e) {
1013
+ return t instanceof e || t != null && t.constructor != null && t.constructor.name != null && t.constructor.name === e.name;
1014
+ }
1015
+ function ke(t) {
1016
+ return t !== t;
1017
+ }
1018
+ const Ut = function() {
1019
+ const t = "0123456789abcdef", e = new Array(256);
1020
+ for (let r = 0; r < 16; ++r) {
1021
+ const i = r * 16;
1022
+ for (let o = 0; o < 16; ++o)
1023
+ e[i + o] = t[r] + t[o];
1024
+ }
1025
+ return e;
1026
+ }();
1027
+ function te(t) {
1028
+ return typeof BigInt > "u" ? Dt : t;
1029
+ }
1030
+ function Dt() {
1031
+ throw new Error("BigInt not supported");
1032
+ }
1033
+ }(be)), be;
1034
+ }
1035
+ var rn = en();
1036
+ function f() {
1037
+ return f = Object.assign ? Object.assign.bind() : function(l) {
1038
+ for (var n = 1; n < arguments.length; n++) {
1039
+ var s = arguments[n];
1040
+ for (var c in s) ({}).hasOwnProperty.call(s, c) && (l[c] = s[c]);
1041
+ }
1042
+ return l;
1043
+ }, f.apply(null, arguments);
1044
+ }
1045
+ function j(l, n) {
1046
+ if (l == null) return {};
1047
+ var s = {};
1048
+ for (var c in l) if ({}.hasOwnProperty.call(l, c)) {
1049
+ if (n.indexOf(c) !== -1) continue;
1050
+ s[c] = l[c];
1051
+ }
1052
+ return s;
1053
+ }
1054
+ var lr = {}, or = /* @__PURE__ */ W(lr), tn = (l, n) => f({}, l, n), nn = () => Z(or), Le = /* @__PURE__ */ W(() => {
1055
+ });
1056
+ Le.displayName = "JVR.DispatchShowTools";
1057
+ function an() {
1058
+ return ye(tn, lr);
1059
+ }
1060
+ function sr() {
1061
+ return Z(Le);
1062
+ }
1063
+ var ur = (l) => {
1064
+ var {
1065
+ initial: n,
1066
+ dispatch: s,
1067
+ children: c
1068
+ } = l;
1069
+ return /* @__PURE__ */ h(or.Provider, {
1070
+ value: n,
1071
+ children: /* @__PURE__ */ h(Le.Provider, {
1072
+ value: s,
1073
+ children: c
1074
+ })
1075
+ });
1076
+ };
1077
+ ur.displayName = "JVR.ShowTools";
1078
+ var cr = {}, pr = /* @__PURE__ */ W(cr), ln = (l, n) => f({}, l, n), Ce = () => Z(pr), Ae = /* @__PURE__ */ W(() => {
1079
+ });
1080
+ Ae.displayName = "JVR.DispatchExpands";
1081
+ function on() {
1082
+ return ye(ln, cr);
1083
+ }
1084
+ function sn() {
1085
+ return Z(Ae);
1086
+ }
1087
+ var dr = (l) => {
1088
+ var {
1089
+ initial: n,
1090
+ dispatch: s,
1091
+ children: c
1092
+ } = l;
1093
+ return /* @__PURE__ */ h(pr.Provider, {
1094
+ value: n,
1095
+ children: /* @__PURE__ */ h(Ae.Provider, {
1096
+ value: s,
1097
+ children: c
1098
+ })
1099
+ });
1100
+ };
1101
+ dr.displayName = "JVR.Expands";
1102
+ var yr = {
1103
+ Str: {
1104
+ as: "span",
1105
+ "data-type": "string",
1106
+ style: {
1107
+ color: "var(--w-rjv-type-string-color, #cb4b16)"
1108
+ },
1109
+ className: "w-rjv-type",
1110
+ children: "string"
1111
+ },
1112
+ Url: {
1113
+ as: "a",
1114
+ style: {
1115
+ color: "var(--w-rjv-type-url-color, #0969da)"
1116
+ },
1117
+ "data-type": "url",
1118
+ className: "w-rjv-type",
1119
+ children: "url"
1120
+ },
1121
+ Undefined: {
1122
+ style: {
1123
+ color: "var(--w-rjv-type-undefined-color, #586e75)"
1124
+ },
1125
+ as: "span",
1126
+ "data-type": "undefined",
1127
+ className: "w-rjv-type",
1128
+ children: "undefined"
1129
+ },
1130
+ Null: {
1131
+ style: {
1132
+ color: "var(--w-rjv-type-null-color, #d33682)"
1133
+ },
1134
+ as: "span",
1135
+ "data-type": "null",
1136
+ className: "w-rjv-type",
1137
+ children: "null"
1138
+ },
1139
+ Map: {
1140
+ style: {
1141
+ color: "var(--w-rjv-type-map-color, #268bd2)",
1142
+ marginRight: 3
1143
+ },
1144
+ as: "span",
1145
+ "data-type": "map",
1146
+ className: "w-rjv-type",
1147
+ children: "Map"
1148
+ },
1149
+ Nan: {
1150
+ style: {
1151
+ color: "var(--w-rjv-type-nan-color, #859900)"
1152
+ },
1153
+ as: "span",
1154
+ "data-type": "nan",
1155
+ className: "w-rjv-type",
1156
+ children: "NaN"
1157
+ },
1158
+ Bigint: {
1159
+ style: {
1160
+ color: "var(--w-rjv-type-bigint-color, #268bd2)"
1161
+ },
1162
+ as: "span",
1163
+ "data-type": "bigint",
1164
+ className: "w-rjv-type",
1165
+ children: "bigint"
1166
+ },
1167
+ Int: {
1168
+ style: {
1169
+ color: "var(--w-rjv-type-int-color, #268bd2)"
1170
+ },
1171
+ as: "span",
1172
+ "data-type": "int",
1173
+ className: "w-rjv-type",
1174
+ children: "int"
1175
+ },
1176
+ Set: {
1177
+ style: {
1178
+ color: "var(--w-rjv-type-set-color, #268bd2)",
1179
+ marginRight: 3
1180
+ },
1181
+ as: "span",
1182
+ "data-type": "set",
1183
+ className: "w-rjv-type",
1184
+ children: "Set"
1185
+ },
1186
+ Float: {
1187
+ style: {
1188
+ color: "var(--w-rjv-type-float-color, #859900)"
1189
+ },
1190
+ as: "span",
1191
+ "data-type": "float",
1192
+ className: "w-rjv-type",
1193
+ children: "float"
1194
+ },
1195
+ True: {
1196
+ style: {
1197
+ color: "var(--w-rjv-type-boolean-color, #2aa198)"
1198
+ },
1199
+ as: "span",
1200
+ "data-type": "bool",
1201
+ className: "w-rjv-type",
1202
+ children: "bool"
1203
+ },
1204
+ False: {
1205
+ style: {
1206
+ color: "var(--w-rjv-type-boolean-color, #2aa198)"
1207
+ },
1208
+ as: "span",
1209
+ "data-type": "bool",
1210
+ className: "w-rjv-type",
1211
+ children: "bool"
1212
+ },
1213
+ Date: {
1214
+ style: {
1215
+ color: "var(--w-rjv-type-date-color, #268bd2)"
1216
+ },
1217
+ as: "span",
1218
+ "data-type": "date",
1219
+ className: "w-rjv-type",
1220
+ children: "date"
1221
+ }
1222
+ }, fr = /* @__PURE__ */ W(yr), un = (l, n) => f({}, l, n), A = () => Z(fr), Ve = /* @__PURE__ */ W(() => {
1223
+ });
1224
+ Ve.displayName = "JVR.DispatchTypes";
1225
+ function cn() {
1226
+ return ye(un, yr);
1227
+ }
1228
+ function pn() {
1229
+ return Z(Ve);
1230
+ }
1231
+ function hr(l) {
1232
+ var {
1233
+ initial: n,
1234
+ dispatch: s,
1235
+ children: c
1236
+ } = l;
1237
+ return /* @__PURE__ */ h(fr.Provider, {
1238
+ value: n,
1239
+ children: /* @__PURE__ */ h(Ve.Provider, {
1240
+ value: s,
1241
+ children: c
1242
+ })
1243
+ });
1244
+ }
1245
+ hr.displayName = "JVR.Types";
1246
+ var dn = ["style"];
1247
+ function vr(l) {
1248
+ var {
1249
+ style: n
1250
+ } = l, s = j(l, dn), c = f({
1251
+ cursor: "pointer",
1252
+ height: "1em",
1253
+ width: "1em",
1254
+ userSelect: "none",
1255
+ display: "inline-flex"
1256
+ }, n);
1257
+ return /* @__PURE__ */ h("svg", f({
1258
+ viewBox: "0 0 24 24",
1259
+ fill: "var(--w-rjv-arrow-color, currentColor)",
1260
+ style: c
1261
+ }, s, {
1262
+ children: /* @__PURE__ */ h("path", {
1263
+ d: "M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"
1264
+ })
1265
+ }));
1266
+ }
1267
+ vr.displayName = "JVR.TriangleArrow";
1268
+ var mr = {
1269
+ Arrow: {
1270
+ as: "span",
1271
+ className: "w-rjv-arrow",
1272
+ style: {
1273
+ transform: "rotate(0deg)",
1274
+ transition: "all 0.3s"
1275
+ },
1276
+ children: /* @__PURE__ */ h(vr, {})
1277
+ },
1278
+ Colon: {
1279
+ as: "span",
1280
+ style: {
1281
+ color: "var(--w-rjv-colon-color, var(--w-rjv-color))",
1282
+ marginLeft: 0,
1283
+ marginRight: 2
1284
+ },
1285
+ className: "w-rjv-colon",
1286
+ children: ":"
1287
+ },
1288
+ Quote: {
1289
+ as: "span",
1290
+ style: {
1291
+ color: "var(--w-rjv-quotes-color, #236a7c)"
1292
+ },
1293
+ className: "w-rjv-quotes",
1294
+ children: '"'
1295
+ },
1296
+ ValueQuote: {
1297
+ as: "span",
1298
+ style: {
1299
+ color: "var(--w-rjv-quotes-string-color, #cb4b16)"
1300
+ },
1301
+ className: "w-rjv-quotes",
1302
+ children: '"'
1303
+ },
1304
+ BracketsLeft: {
1305
+ as: "span",
1306
+ style: {
1307
+ color: "var(--w-rjv-brackets-color, #236a7c)"
1308
+ },
1309
+ className: "w-rjv-brackets-start",
1310
+ children: "["
1311
+ },
1312
+ BracketsRight: {
1313
+ as: "span",
1314
+ style: {
1315
+ color: "var(--w-rjv-brackets-color, #236a7c)"
1316
+ },
1317
+ className: "w-rjv-brackets-end",
1318
+ children: "]"
1319
+ },
1320
+ BraceLeft: {
1321
+ as: "span",
1322
+ style: {
1323
+ color: "var(--w-rjv-curlybraces-color, #236a7c)"
1324
+ },
1325
+ className: "w-rjv-curlybraces-start",
1326
+ children: "{"
1327
+ },
1328
+ BraceRight: {
1329
+ as: "span",
1330
+ style: {
1331
+ color: "var(--w-rjv-curlybraces-color, #236a7c)"
1332
+ },
1333
+ className: "w-rjv-curlybraces-end",
1334
+ children: "}"
1335
+ }
1336
+ }, wr = /* @__PURE__ */ W(mr), yn = (l, n) => f({}, l, n), K = () => Z(wr), Ue = /* @__PURE__ */ W(() => {
1337
+ });
1338
+ Ue.displayName = "JVR.DispatchSymbols";
1339
+ function fn() {
1340
+ return ye(yn, mr);
1341
+ }
1342
+ function hn() {
1343
+ return Z(Ue);
1344
+ }
1345
+ var xr = (l) => {
1346
+ var {
1347
+ initial: n,
1348
+ dispatch: s,
1349
+ children: c
1350
+ } = l;
1351
+ return /* @__PURE__ */ h(wr.Provider, {
1352
+ value: n,
1353
+ children: /* @__PURE__ */ h(Ue.Provider, {
1354
+ value: s,
1355
+ children: c
1356
+ })
1357
+ });
1358
+ };
1359
+ xr.displayName = "JVR.Symbols";
1360
+ var gr = {
1361
+ Copied: {
1362
+ className: "w-rjv-copied",
1363
+ style: {
1364
+ height: "1em",
1365
+ width: "1em",
1366
+ cursor: "pointer",
1367
+ verticalAlign: "middle",
1368
+ marginLeft: 5
1369
+ }
1370
+ },
1371
+ CountInfo: {
1372
+ as: "span",
1373
+ className: "w-rjv-object-size",
1374
+ style: {
1375
+ color: "var(--w-rjv-info-color, #0000004d)",
1376
+ paddingLeft: 8,
1377
+ fontStyle: "italic"
1378
+ }
1379
+ },
1380
+ CountInfoExtra: {
1381
+ as: "span",
1382
+ className: "w-rjv-object-extra",
1383
+ style: {
1384
+ paddingLeft: 8
1385
+ }
1386
+ },
1387
+ Ellipsis: {
1388
+ as: "span",
1389
+ style: {
1390
+ cursor: "pointer",
1391
+ color: "var(--w-rjv-ellipsis-color, #cb4b16)",
1392
+ userSelect: "none"
1393
+ },
1394
+ className: "w-rjv-ellipsis",
1395
+ children: "..."
1396
+ },
1397
+ Row: {
1398
+ as: "div",
1399
+ className: "w-rjv-line"
1400
+ },
1401
+ KeyName: {
1402
+ as: "span",
1403
+ className: "w-rjv-object-key"
1404
+ }
1405
+ }, Nr = /* @__PURE__ */ W(gr), vn = (l, n) => f({}, l, n), G = () => Z(Nr), De = /* @__PURE__ */ W(() => {
1406
+ });
1407
+ De.displayName = "JVR.DispatchSection";
1408
+ function mn() {
1409
+ return ye(vn, gr);
1410
+ }
1411
+ function wn() {
1412
+ return Z(De);
1413
+ }
1414
+ var Br = (l) => {
1415
+ var {
1416
+ initial: n,
1417
+ dispatch: s,
1418
+ children: c
1419
+ } = l;
1420
+ return /* @__PURE__ */ h(Nr.Provider, {
1421
+ value: n,
1422
+ children: /* @__PURE__ */ h(De.Provider, {
1423
+ value: s,
1424
+ children: c
1425
+ })
1426
+ });
1427
+ };
1428
+ Br.displayName = "JVR.Section";
1429
+ var Cr = {
1430
+ objectSortKeys: !1,
1431
+ indentWidth: 15
1432
+ }, Je = /* @__PURE__ */ W(Cr);
1433
+ Je.displayName = "JVR.Context";
1434
+ var Er = /* @__PURE__ */ W(() => {
1435
+ });
1436
+ Er.displayName = "JVR.DispatchContext";
1437
+ function xn(l, n) {
1438
+ return f({}, l, n);
1439
+ }
1440
+ var se = () => Z(Je), Rr = (l) => {
1441
+ var {
1442
+ children: n,
1443
+ initialState: s,
1444
+ initialTypes: c
1445
+ } = l, [u, v] = ye(xn, Object.assign({}, Cr, s)), [d, a] = an(), [y, N] = on(), [w, x] = cn(), [B, g] = fn(), [C, E] = mn();
1446
+ return oe(() => v(f({}, s)), [s]), /* @__PURE__ */ h(Je.Provider, {
1447
+ value: u,
1448
+ children: /* @__PURE__ */ h(Er.Provider, {
1449
+ value: v,
1450
+ children: /* @__PURE__ */ h(ur, {
1451
+ initial: d,
1452
+ dispatch: a,
1453
+ children: /* @__PURE__ */ h(dr, {
1454
+ initial: y,
1455
+ dispatch: N,
1456
+ children: /* @__PURE__ */ h(hr, {
1457
+ initial: f({}, w, c),
1458
+ dispatch: x,
1459
+ children: /* @__PURE__ */ h(xr, {
1460
+ initial: B,
1461
+ dispatch: g,
1462
+ children: /* @__PURE__ */ h(Br, {
1463
+ initial: C,
1464
+ dispatch: E,
1465
+ children: n
1466
+ })
1467
+ })
1468
+ })
1469
+ })
1470
+ })
1471
+ })
1472
+ });
1473
+ };
1474
+ Rr.displayName = "JVR.Provider";
1475
+ function gn(l) {
1476
+ if (l == null) throw new TypeError("Cannot destructure " + l);
1477
+ }
1478
+ var Nn = ["isNumber", "value", "parentValue", "keyName", "keys"], Bn = ["as", "render"], Cn = ["as", "render"], En = ["as", "render"], Rn = ["as", "style", "render"], kn = ["as", "render"], In = ["as", "render"], bn = ["as", "render"], Tn = ["as", "render"], Se = (l) => {
1479
+ var {
1480
+ Quote: n = {}
1481
+ } = K(), {
1482
+ isNumber: s,
1483
+ value: c,
1484
+ parentValue: u,
1485
+ keyName: v,
1486
+ keys: d
1487
+ } = l, a = j(l, Nn);
1488
+ if (s) return null;
1489
+ var {
1490
+ as: y,
1491
+ render: N
1492
+ } = n, w = j(n, Bn), x = y || "span", B = f({}, a, w);
1493
+ if (typeof B.children == "string") {
1494
+ var g = B.children.trim();
1495
+ B.children = g || void 0;
1496
+ }
1497
+ var C = {
1498
+ value: c,
1499
+ parentValue: u,
1500
+ keyName: v,
1501
+ keys: d || (v ? [v] : [])
1502
+ }, E = N && typeof N == "function" && N(B, C);
1503
+ return E || /* @__PURE__ */ h(x, f({}, B));
1504
+ };
1505
+ Se.displayName = "JVR.Quote";
1506
+ var we = (l) => {
1507
+ var {
1508
+ ValueQuote: n = {}
1509
+ } = K(), s = f({}, (gn(l), l)), {
1510
+ as: c,
1511
+ render: u
1512
+ } = n, v = j(n, Cn), d = c || "span", a = f({}, s, v), y = u && typeof u == "function" && u(a, {});
1513
+ return y || /* @__PURE__ */ h(d, f({}, a));
1514
+ };
1515
+ we.displayName = "JVR.ValueQuote";
1516
+ var kr = (l) => {
1517
+ var {
1518
+ value: n,
1519
+ parentValue: s,
1520
+ keyName: c,
1521
+ keys: u
1522
+ } = l, {
1523
+ Colon: v = {}
1524
+ } = K(), {
1525
+ as: d,
1526
+ render: a
1527
+ } = v, y = j(v, En), N = d || "span", w = a && typeof a == "function" && a(y, {
1528
+ value: n,
1529
+ parentValue: s,
1530
+ keyName: c,
1531
+ keys: u || (c ? [c] : [])
1532
+ });
1533
+ return w || /* @__PURE__ */ h(N, f({}, y));
1534
+ };
1535
+ kr.displayName = "JVR.Colon";
1536
+ var Ir = (l) => {
1537
+ var {
1538
+ Arrow: n = {}
1539
+ } = K(), s = Ce(), {
1540
+ expandKey: c,
1541
+ style: u,
1542
+ value: v,
1543
+ parentValue: d,
1544
+ keyName: a,
1545
+ keys: y
1546
+ } = l, N = !!s[c], {
1547
+ as: w,
1548
+ style: x,
1549
+ render: B
1550
+ } = n, g = j(n, Rn), C = w || "span", E = B && typeof B == "function", R = f({}, g, {
1551
+ "data-expanded": N,
1552
+ style: f({}, x, u)
1553
+ }), I = {
1554
+ value: v,
1555
+ parentValue: d,
1556
+ keyName: a,
1557
+ keys: y || (a ? [a] : [])
1558
+ }, k = E && B(R, I);
1559
+ return k || /* @__PURE__ */ h(C, f({}, g, {
1560
+ style: f({}, x, u)
1561
+ }));
1562
+ };
1563
+ Ir.displayName = "JVR.Arrow";
1564
+ var br = (l) => {
1565
+ var {
1566
+ isBrackets: n,
1567
+ value: s,
1568
+ parentValue: c,
1569
+ keyName: u,
1570
+ keys: v
1571
+ } = l, {
1572
+ BracketsLeft: d = {},
1573
+ BraceLeft: a = {}
1574
+ } = K(), y = {
1575
+ value: s,
1576
+ parentValue: c,
1577
+ keyName: u,
1578
+ keys: v || (u ? [u] : [])
1579
+ };
1580
+ if (n) {
1581
+ var {
1582
+ as: N,
1583
+ render: w
1584
+ } = d, x = j(d, kn), B = N || "span", g = w && typeof w == "function" && w(x, y);
1585
+ return g || /* @__PURE__ */ h(B, f({}, x));
1586
+ }
1587
+ var {
1588
+ as: C,
1589
+ render: E
1590
+ } = a, R = j(a, In), I = C || "span", k = E && typeof E == "function" && E(R, y);
1591
+ return k || /* @__PURE__ */ h(I, f({}, R));
1592
+ };
1593
+ br.displayName = "JVR.BracketsOpen";
1594
+ var _e = (l) => {
1595
+ var {
1596
+ isBrackets: n,
1597
+ isVisiable: s,
1598
+ value: c,
1599
+ parentValue: u,
1600
+ keyName: v,
1601
+ keys: d
1602
+ } = l, a = {
1603
+ value: c,
1604
+ parentValue: u,
1605
+ keyName: v,
1606
+ keys: d || (v ? [v] : [])
1607
+ };
1608
+ if (!s) return null;
1609
+ var {
1610
+ BracketsRight: y = {},
1611
+ BraceRight: N = {}
1612
+ } = K();
1613
+ if (n) {
1614
+ var {
1615
+ as: w,
1616
+ render: x
1617
+ } = y, B = j(y, bn), g = w || "span", C = x && typeof x == "function" && x(B, a);
1618
+ return C || /* @__PURE__ */ h(g, f({}, B));
1619
+ }
1620
+ var {
1621
+ as: E,
1622
+ render: R
1623
+ } = N, I = j(N, Tn), k = E || "span", b = R && typeof R == "function" && R(I, a);
1624
+ return b || /* @__PURE__ */ h(k, f({}, I));
1625
+ };
1626
+ _e.displayName = "JVR.BracketsClose";
1627
+ var Tr = (l) => {
1628
+ var n, {
1629
+ keyName: s,
1630
+ value: c,
1631
+ expandKey: u,
1632
+ parentValue: v,
1633
+ level: d,
1634
+ keys: a = []
1635
+ } = l, y = Ce(), {
1636
+ collapsed: N,
1637
+ shouldExpandNodeInitially: w
1638
+ } = se(), x = typeof N == "boolean" ? N : typeof N == "number" ? d > N : !1, B = (n = y[u]) != null ? n : w ? !1 : x, g = w && w(!B, {
1639
+ value: c,
1640
+ keys: a,
1641
+ level: d,
1642
+ keyName: s,
1643
+ parentValue: v
1644
+ });
1645
+ if (w && N === !1) {
1646
+ if (y[u] === void 0 && !g)
1647
+ return null;
1648
+ } else if (y[u] === void 0 && g)
1649
+ return null;
1650
+ var C = Object.keys(c).length;
1651
+ if (B || C === 0)
1652
+ return null;
1653
+ var E = {
1654
+ paddingLeft: 4
1655
+ }, R = {
1656
+ keyName: s,
1657
+ value: c,
1658
+ keys: a,
1659
+ parentValue: v
1660
+ }, I = Array.isArray(c), k = c instanceof Set;
1661
+ return /* @__PURE__ */ h("div", {
1662
+ style: E,
1663
+ children: /* @__PURE__ */ h(_e, f({
1664
+ isBrackets: I || k
1665
+ }, R, {
1666
+ isVisiable: !0
1667
+ }))
1668
+ });
1669
+ };
1670
+ Tr.displayName = "JVR.NestedClose";
1671
+ var Sn = ["as", "render"], jn = ["as", "render"], Fn = ["as", "render"], Ln = ["as", "render"], An = ["as", "render"], Vn = ["as", "render"], Un = ["as", "render"], Dn = ["as", "render"], Jn = ["as", "render"], _n = ["as", "render"], Mn = ["as", "render"], $n = ["as", "render"], Pn = ["as", "render"], je = (l) => {
1672
+ if (l === void 0)
1673
+ return "0n";
1674
+ if (typeof l == "string")
1675
+ try {
1676
+ l = BigInt(l);
1677
+ } catch {
1678
+ return "0n";
1679
+ }
1680
+ return l ? l.toString() + "n" : "0n";
1681
+ }, Sr = (l) => {
1682
+ var {
1683
+ value: n,
1684
+ keyName: s
1685
+ } = l, {
1686
+ Set: c = {},
1687
+ displayDataTypes: u
1688
+ } = A(), v = n instanceof Set;
1689
+ if (!v || !u) return null;
1690
+ var {
1691
+ as: d,
1692
+ render: a
1693
+ } = c, y = j(c, Sn), N = a && typeof a == "function", w = N && a(y, {
1694
+ type: "type",
1695
+ value: n,
1696
+ keyName: s
1697
+ });
1698
+ if (w) return w;
1699
+ var x = d || "span";
1700
+ return /* @__PURE__ */ h(x, f({}, y));
1701
+ };
1702
+ Sr.displayName = "JVR.SetComp";
1703
+ var jr = (l) => {
1704
+ var {
1705
+ value: n,
1706
+ keyName: s
1707
+ } = l, {
1708
+ Map: c = {},
1709
+ displayDataTypes: u
1710
+ } = A(), v = n instanceof Map;
1711
+ if (!v || !u) return null;
1712
+ var {
1713
+ as: d,
1714
+ render: a
1715
+ } = c, y = j(c, jn), N = a && typeof a == "function", w = N && a(y, {
1716
+ type: "type",
1717
+ value: n,
1718
+ keyName: s
1719
+ });
1720
+ if (w) return w;
1721
+ var x = d || "span";
1722
+ return /* @__PURE__ */ h(x, f({}, y));
1723
+ };
1724
+ jr.displayName = "JVR.MapComp";
1725
+ var z = {
1726
+ opacity: 0.75,
1727
+ paddingRight: 4
1728
+ }, Fr = (l) => {
1729
+ var {
1730
+ children: n = "",
1731
+ keyName: s,
1732
+ keys: c
1733
+ } = l, {
1734
+ Str: u = {},
1735
+ displayDataTypes: v
1736
+ } = A(), {
1737
+ shortenTextAfterLength: d = 30,
1738
+ stringEllipsis: a = "..."
1739
+ } = se(), {
1740
+ as: y,
1741
+ render: N
1742
+ } = u, w = j(u, Fn), x = n, [B, g] = nr(d && x.length > d);
1743
+ oe(() => g(d && x.length > d), [d]);
1744
+ var C = y || "span", E = f({}, z, u.style || {});
1745
+ d > 0 && (w.style = f({}, w.style, {
1746
+ cursor: x.length <= d ? "initial" : "pointer"
1747
+ }), x.length > d && (w.onClick = () => {
1748
+ g(!B);
1749
+ }));
1750
+ var R = B ? "" + x.slice(0, d) + a : x, I = N && typeof N == "function", k = I && N(f({}, w, {
1751
+ style: E
1752
+ }), {
1753
+ type: "type",
1754
+ value: n,
1755
+ keyName: s,
1756
+ keys: c
1757
+ }), b = B ? "w-rjv-value w-rjv-value-short" : "w-rjv-value", U = I && N(f({}, w, {
1758
+ children: R,
1759
+ className: b
1760
+ }), {
1761
+ type: "value",
1762
+ value: n,
1763
+ keyName: s,
1764
+ keys: c
1765
+ });
1766
+ return /* @__PURE__ */ _(q, {
1767
+ children: [v && (k || /* @__PURE__ */ h(C, f({}, w, {
1768
+ style: E
1769
+ }))), U || /* @__PURE__ */ _(q, {
1770
+ children: [/* @__PURE__ */ h(we, {}), /* @__PURE__ */ h(C, f({}, w, {
1771
+ className: b,
1772
+ children: R
1773
+ })), /* @__PURE__ */ h(we, {})]
1774
+ })]
1775
+ });
1776
+ };
1777
+ Fr.displayName = "JVR.TypeString";
1778
+ var Lr = (l) => {
1779
+ var {
1780
+ children: n,
1781
+ keyName: s,
1782
+ keys: c
1783
+ } = l, {
1784
+ True: u = {},
1785
+ displayDataTypes: v
1786
+ } = A(), {
1787
+ as: d,
1788
+ render: a
1789
+ } = u, y = j(u, Ln), N = d || "span", w = f({}, z, u.style || {}), x = a && typeof a == "function", B = x && a(f({}, y, {
1790
+ style: w
1791
+ }), {
1792
+ type: "type",
1793
+ value: n,
1794
+ keyName: s,
1795
+ keys: c
1796
+ }), g = x && a(f({}, y, {
1797
+ children: n,
1798
+ className: "w-rjv-value"
1799
+ }), {
1800
+ type: "value",
1801
+ value: n,
1802
+ keyName: s,
1803
+ keys: c
1804
+ });
1805
+ return /* @__PURE__ */ _(q, {
1806
+ children: [v && (B || /* @__PURE__ */ h(N, f({}, y, {
1807
+ style: w
1808
+ }))), g || /* @__PURE__ */ h(N, f({}, y, {
1809
+ className: "w-rjv-value",
1810
+ children: n?.toString()
1811
+ }))]
1812
+ });
1813
+ };
1814
+ Lr.displayName = "JVR.TypeTrue";
1815
+ var Ar = (l) => {
1816
+ var {
1817
+ children: n,
1818
+ keyName: s,
1819
+ keys: c
1820
+ } = l, {
1821
+ False: u = {},
1822
+ displayDataTypes: v
1823
+ } = A(), {
1824
+ as: d,
1825
+ render: a
1826
+ } = u, y = j(u, An), N = d || "span", w = f({}, z, u.style || {}), x = a && typeof a == "function", B = x && a(f({}, y, {
1827
+ style: w
1828
+ }), {
1829
+ type: "type",
1830
+ value: n,
1831
+ keyName: s,
1832
+ keys: c
1833
+ }), g = x && a(f({}, y, {
1834
+ children: n,
1835
+ className: "w-rjv-value"
1836
+ }), {
1837
+ type: "value",
1838
+ value: n,
1839
+ keyName: s,
1840
+ keys: c
1841
+ });
1842
+ return /* @__PURE__ */ _(q, {
1843
+ children: [v && (B || /* @__PURE__ */ h(N, f({}, y, {
1844
+ style: w
1845
+ }))), g || /* @__PURE__ */ h(N, f({}, y, {
1846
+ className: "w-rjv-value",
1847
+ children: n?.toString()
1848
+ }))]
1849
+ });
1850
+ };
1851
+ Ar.displayName = "JVR.TypeFalse";
1852
+ var Vr = (l) => {
1853
+ var {
1854
+ children: n,
1855
+ keyName: s,
1856
+ keys: c
1857
+ } = l, {
1858
+ Float: u = {},
1859
+ displayDataTypes: v
1860
+ } = A(), {
1861
+ as: d,
1862
+ render: a
1863
+ } = u, y = j(u, Vn), N = d || "span", w = f({}, z, u.style || {}), x = a && typeof a == "function", B = x && a(f({}, y, {
1864
+ style: w
1865
+ }), {
1866
+ type: "type",
1867
+ value: n,
1868
+ keyName: s,
1869
+ keys: c
1870
+ }), g = x && a(f({}, y, {
1871
+ children: n,
1872
+ className: "w-rjv-value"
1873
+ }), {
1874
+ type: "value",
1875
+ value: n,
1876
+ keyName: s,
1877
+ keys: c
1878
+ });
1879
+ return /* @__PURE__ */ _(q, {
1880
+ children: [v && (B || /* @__PURE__ */ h(N, f({}, y, {
1881
+ style: w
1882
+ }))), g || /* @__PURE__ */ h(N, f({}, y, {
1883
+ className: "w-rjv-value",
1884
+ children: n?.toString()
1885
+ }))]
1886
+ });
1887
+ };
1888
+ Vr.displayName = "JVR.TypeFloat";
1889
+ var Ur = (l) => {
1890
+ var {
1891
+ children: n,
1892
+ keyName: s,
1893
+ keys: c
1894
+ } = l, {
1895
+ Int: u = {},
1896
+ displayDataTypes: v
1897
+ } = A(), {
1898
+ as: d,
1899
+ render: a
1900
+ } = u, y = j(u, Un), N = d || "span", w = f({}, z, u.style || {}), x = a && typeof a == "function", B = x && a(f({}, y, {
1901
+ style: w
1902
+ }), {
1903
+ type: "type",
1904
+ value: n,
1905
+ keyName: s,
1906
+ keys: c
1907
+ }), g = x && a(f({}, y, {
1908
+ children: n,
1909
+ className: "w-rjv-value"
1910
+ }), {
1911
+ type: "value",
1912
+ value: n,
1913
+ keyName: s,
1914
+ keys: c
1915
+ });
1916
+ return /* @__PURE__ */ _(q, {
1917
+ children: [v && (B || /* @__PURE__ */ h(N, f({}, y, {
1918
+ style: w
1919
+ }))), g || /* @__PURE__ */ h(N, f({}, y, {
1920
+ className: "w-rjv-value",
1921
+ children: n?.toString()
1922
+ }))]
1923
+ });
1924
+ };
1925
+ Ur.displayName = "JVR.TypeInt";
1926
+ var Dr = (l) => {
1927
+ var {
1928
+ children: n,
1929
+ keyName: s,
1930
+ keys: c
1931
+ } = l, {
1932
+ Bigint: u = {},
1933
+ displayDataTypes: v
1934
+ } = A(), {
1935
+ as: d,
1936
+ render: a
1937
+ } = u, y = j(u, Dn), N = d || "span", w = f({}, z, u.style || {}), x = a && typeof a == "function", B = x && a(f({}, y, {
1938
+ style: w
1939
+ }), {
1940
+ type: "type",
1941
+ value: n,
1942
+ keyName: s,
1943
+ keys: c
1944
+ }), g = x && a(f({}, y, {
1945
+ children: n,
1946
+ className: "w-rjv-value"
1947
+ }), {
1948
+ type: "value",
1949
+ value: n,
1950
+ keyName: s,
1951
+ keys: c
1952
+ });
1953
+ return /* @__PURE__ */ _(q, {
1954
+ children: [v && (B || /* @__PURE__ */ h(N, f({}, y, {
1955
+ style: w
1956
+ }))), g || /* @__PURE__ */ h(N, f({}, y, {
1957
+ className: "w-rjv-value",
1958
+ children: je(n?.toString())
1959
+ }))]
1960
+ });
1961
+ };
1962
+ Dr.displayName = "JVR.TypeFloat";
1963
+ var Jr = (l) => {
1964
+ var {
1965
+ children: n,
1966
+ keyName: s,
1967
+ keys: c
1968
+ } = l, {
1969
+ Url: u = {},
1970
+ displayDataTypes: v
1971
+ } = A(), {
1972
+ as: d,
1973
+ render: a
1974
+ } = u, y = j(u, Jn), N = d || "span", w = f({}, z, u.style), x = a && typeof a == "function", B = x && a(f({}, y, {
1975
+ style: w
1976
+ }), {
1977
+ type: "type",
1978
+ value: n,
1979
+ keyName: s,
1980
+ keys: c
1981
+ }), g = x && a(f({}, y, {
1982
+ children: n?.href,
1983
+ className: "w-rjv-value"
1984
+ }), {
1985
+ type: "value",
1986
+ value: n,
1987
+ keyName: s,
1988
+ keys: c
1989
+ });
1990
+ return /* @__PURE__ */ _(q, {
1991
+ children: [v && (B || /* @__PURE__ */ h(N, f({}, y, {
1992
+ style: w
1993
+ }))), g || /* @__PURE__ */ _("a", f({
1994
+ href: n?.href,
1995
+ target: "_blank"
1996
+ }, y, {
1997
+ className: "w-rjv-value",
1998
+ children: [/* @__PURE__ */ h(we, {}), n?.href, /* @__PURE__ */ h(we, {})]
1999
+ }))]
2000
+ });
2001
+ };
2002
+ Jr.displayName = "JVR.TypeUrl";
2003
+ var _r = (l) => {
2004
+ var {
2005
+ children: n,
2006
+ keyName: s,
2007
+ keys: c
2008
+ } = l, {
2009
+ Date: u = {},
2010
+ displayDataTypes: v
2011
+ } = A(), {
2012
+ as: d,
2013
+ render: a
2014
+ } = u, y = j(u, _n), N = d || "span", w = f({}, z, u.style || {}), x = a && typeof a == "function", B = x && a(f({}, y, {
2015
+ style: w
2016
+ }), {
2017
+ type: "type",
2018
+ value: n,
2019
+ keyName: s,
2020
+ keys: c
2021
+ }), g = n instanceof Date ? n.toLocaleString() : n, C = x && a(f({}, y, {
2022
+ children: g,
2023
+ className: "w-rjv-value"
2024
+ }), {
2025
+ type: "value",
2026
+ value: n,
2027
+ keyName: s,
2028
+ keys: c
2029
+ });
2030
+ return /* @__PURE__ */ _(q, {
2031
+ children: [v && (B || /* @__PURE__ */ h(N, f({}, y, {
2032
+ style: w
2033
+ }))), C || /* @__PURE__ */ h(N, f({}, y, {
2034
+ className: "w-rjv-value",
2035
+ children: g
2036
+ }))]
2037
+ });
2038
+ };
2039
+ _r.displayName = "JVR.TypeDate";
2040
+ var Mr = (l) => {
2041
+ var {
2042
+ children: n,
2043
+ keyName: s,
2044
+ keys: c
2045
+ } = l, {
2046
+ Undefined: u = {},
2047
+ displayDataTypes: v
2048
+ } = A(), {
2049
+ as: d,
2050
+ render: a
2051
+ } = u, y = j(u, Mn), N = d || "span", w = f({}, z, u.style || {}), x = a && typeof a == "function", B = x && a(f({}, y, {
2052
+ style: w
2053
+ }), {
2054
+ type: "type",
2055
+ value: n,
2056
+ keyName: s,
2057
+ keys: c
2058
+ }), g = x && a(f({}, y, {
2059
+ children: n,
2060
+ className: "w-rjv-value"
2061
+ }), {
2062
+ type: "value",
2063
+ value: n,
2064
+ keyName: s,
2065
+ keys: c
2066
+ });
2067
+ return /* @__PURE__ */ _(q, {
2068
+ children: [v && (B || /* @__PURE__ */ h(N, f({}, y, {
2069
+ style: w
2070
+ }))), g]
2071
+ });
2072
+ };
2073
+ Mr.displayName = "JVR.TypeUndefined";
2074
+ var $r = (l) => {
2075
+ var {
2076
+ children: n,
2077
+ keyName: s,
2078
+ keys: c
2079
+ } = l, {
2080
+ Null: u = {},
2081
+ displayDataTypes: v
2082
+ } = A(), {
2083
+ as: d,
2084
+ render: a
2085
+ } = u, y = j(u, $n), N = d || "span", w = f({}, z, u.style || {}), x = a && typeof a == "function", B = x && a(f({}, y, {
2086
+ style: w
2087
+ }), {
2088
+ type: "type",
2089
+ value: n,
2090
+ keyName: s,
2091
+ keys: c
2092
+ }), g = x && a(f({}, y, {
2093
+ children: n,
2094
+ className: "w-rjv-value"
2095
+ }), {
2096
+ type: "value",
2097
+ value: n,
2098
+ keyName: s,
2099
+ keys: c
2100
+ });
2101
+ return /* @__PURE__ */ _(q, {
2102
+ children: [v && (B || /* @__PURE__ */ h(N, f({}, y, {
2103
+ style: w
2104
+ }))), g]
2105
+ });
2106
+ };
2107
+ $r.displayName = "JVR.TypeNull";
2108
+ var Pr = (l) => {
2109
+ var {
2110
+ children: n,
2111
+ keyName: s,
2112
+ keys: c
2113
+ } = l, {
2114
+ Nan: u = {},
2115
+ displayDataTypes: v
2116
+ } = A(), {
2117
+ as: d,
2118
+ render: a
2119
+ } = u, y = j(u, Pn), N = d || "span", w = f({}, z, u.style || {}), x = a && typeof a == "function", B = x && a(f({}, y, {
2120
+ style: w
2121
+ }), {
2122
+ type: "type",
2123
+ value: n,
2124
+ keyName: s,
2125
+ keys: c
2126
+ }), g = x && a(f({}, y, {
2127
+ children: n?.toString(),
2128
+ className: "w-rjv-value"
2129
+ }), {
2130
+ type: "value",
2131
+ value: n,
2132
+ keyName: s,
2133
+ keys: c
2134
+ });
2135
+ return /* @__PURE__ */ _(q, {
2136
+ children: [v && (B || /* @__PURE__ */ h(N, f({}, y, {
2137
+ style: w
2138
+ }))), g]
2139
+ });
2140
+ };
2141
+ Pr.displayName = "JVR.TypeNan";
2142
+ var On = (l) => Number(l) === l && l % 1 !== 0 || isNaN(l), Or = (l) => {
2143
+ var {
2144
+ value: n,
2145
+ keyName: s,
2146
+ keys: c
2147
+ } = l, u = {
2148
+ keyName: s,
2149
+ keys: c
2150
+ };
2151
+ return n instanceof URL ? /* @__PURE__ */ h(Jr, f({}, u, {
2152
+ children: n
2153
+ })) : typeof n == "string" ? /* @__PURE__ */ h(Fr, f({}, u, {
2154
+ children: n
2155
+ })) : n === !0 ? /* @__PURE__ */ h(Lr, f({}, u, {
2156
+ children: n
2157
+ })) : n === !1 ? /* @__PURE__ */ h(Ar, f({}, u, {
2158
+ children: n
2159
+ })) : n === null ? /* @__PURE__ */ h($r, f({}, u, {
2160
+ children: n
2161
+ })) : n === void 0 ? /* @__PURE__ */ h(Mr, f({}, u, {
2162
+ children: n
2163
+ })) : n instanceof Date ? /* @__PURE__ */ h(_r, f({}, u, {
2164
+ children: n
2165
+ })) : typeof n == "number" && isNaN(n) ? /* @__PURE__ */ h(Pr, f({}, u, {
2166
+ children: n
2167
+ })) : typeof n == "number" && On(n) ? /* @__PURE__ */ h(Vr, f({}, u, {
2168
+ children: n
2169
+ })) : typeof n == "bigint" ? /* @__PURE__ */ h(Dr, f({}, u, {
2170
+ children: n
2171
+ })) : typeof n == "number" ? /* @__PURE__ */ h(Ur, f({}, u, {
2172
+ children: n
2173
+ })) : null;
2174
+ };
2175
+ Or.displayName = "JVR.Value";
2176
+ function ne(l, n, s) {
2177
+ var c = hn(), u = [l.className, n.className].filter(Boolean).join(" "), v = f({}, l, n, {
2178
+ className: u,
2179
+ style: f({}, l.style, n.style),
2180
+ children: n.children || l.children
2181
+ });
2182
+ oe(() => c({
2183
+ [s]: v
2184
+ }), [n]);
2185
+ }
2186
+ function Q(l, n, s) {
2187
+ var c = pn(), u = [l.className, n.className].filter(Boolean).join(" "), v = f({}, l, n, {
2188
+ className: u,
2189
+ style: f({}, l.style, n.style),
2190
+ children: n.children || l.children
2191
+ });
2192
+ oe(() => c({
2193
+ [s]: v
2194
+ }), [n]);
2195
+ }
2196
+ function fe(l, n, s) {
2197
+ var c = wn(), u = [l.className, n.className].filter(Boolean).join(" "), v = f({}, l, n, {
2198
+ className: u,
2199
+ style: f({}, l.style, n.style),
2200
+ children: n.children || l.children
2201
+ });
2202
+ oe(() => c({
2203
+ [s]: v
2204
+ }), [n]);
2205
+ }
2206
+ var Kn = ["as", "render"], Kr = (l) => {
2207
+ var {
2208
+ KeyName: n = {}
2209
+ } = G();
2210
+ return fe(n, l, "KeyName"), null;
2211
+ };
2212
+ Kr.displayName = "JVR.KeyName";
2213
+ var qr = (l) => {
2214
+ var {
2215
+ children: n,
2216
+ value: s,
2217
+ parentValue: c,
2218
+ keyName: u,
2219
+ keys: v
2220
+ } = l, d = typeof n == "number", a = {
2221
+ color: d ? "var(--w-rjv-key-number, #268bd2)" : "var(--w-rjv-key-string, #002b36)"
2222
+ }, {
2223
+ KeyName: y = {}
2224
+ } = G(), {
2225
+ as: N,
2226
+ render: w
2227
+ } = y, x = j(y, Kn);
2228
+ x.style = f({}, x.style, a);
2229
+ var B = N || "span", g = w && typeof w == "function" && w(f({}, x, {
2230
+ children: n
2231
+ }), {
2232
+ value: s,
2233
+ parentValue: c,
2234
+ keyName: u,
2235
+ keys: v || (u ? [u] : [])
2236
+ });
2237
+ return g || /* @__PURE__ */ h(B, f({}, x, {
2238
+ children: n
2239
+ }));
2240
+ };
2241
+ qr.displayName = "JVR.KeyNameComp";
2242
+ var qn = ["children", "value", "parentValue", "keyName", "keys"], Qn = ["as", "render", "children"], Qr = (l) => {
2243
+ var {
2244
+ Row: n = {}
2245
+ } = G();
2246
+ return fe(n, l, "Row"), null;
2247
+ };
2248
+ Qr.displayName = "JVR.Row";
2249
+ var Hr = (l) => {
2250
+ var {
2251
+ children: n,
2252
+ value: s,
2253
+ parentValue: c,
2254
+ keyName: u,
2255
+ keys: v
2256
+ } = l, d = j(l, qn), {
2257
+ Row: a = {}
2258
+ } = G(), {
2259
+ as: y,
2260
+ render: N
2261
+ } = a, w = j(a, Qn), x = y || "div", B = N && typeof N == "function" && N(f({}, d, w, {
2262
+ children: n
2263
+ }), {
2264
+ value: s,
2265
+ keyName: u,
2266
+ parentValue: c,
2267
+ keys: v
2268
+ });
2269
+ return B || /* @__PURE__ */ h(x, f({}, d, w, {
2270
+ children: n
2271
+ }));
2272
+ };
2273
+ Hr.displayName = "JVR.RowComp";
2274
+ function Hn(l) {
2275
+ var n = Fe();
2276
+ return oe(() => {
2277
+ n.current = l;
2278
+ }), n.current;
2279
+ }
2280
+ function Wn(l) {
2281
+ var {
2282
+ value: n,
2283
+ highlightUpdates: s,
2284
+ highlightContainer: c
2285
+ } = l, u = Hn(n), v = Qt(() => {
2286
+ if (!s || u === void 0) return !1;
2287
+ if (typeof n != typeof u)
2288
+ return !0;
2289
+ if (typeof n == "number")
2290
+ return isNaN(n) && isNaN(u) ? !1 : n !== u;
2291
+ if (Array.isArray(n) !== Array.isArray(u))
2292
+ return !0;
2293
+ if (typeof n == "object" || typeof n == "function")
2294
+ return !1;
2295
+ if (n !== u)
2296
+ return !0;
2297
+ }, [s, n]);
2298
+ oe(() => {
2299
+ c && c.current && v && "animate" in c.current && c.current.animate([{
2300
+ backgroundColor: "var(--w-rjv-update-color, #ebcb8b)"
2301
+ }, {
2302
+ backgroundColor: ""
2303
+ }], {
2304
+ duration: 1e3,
2305
+ easing: "ease-in"
2306
+ });
2307
+ }, [v, n, c]);
2308
+ }
2309
+ var Gn = ["keyName", "value", "parentValue", "expandKey", "keys", "beforeCopy"], Zn = ["as", "render"], Me = (l) => {
2310
+ var {
2311
+ keyName: n,
2312
+ value: s,
2313
+ parentValue: c,
2314
+ expandKey: u,
2315
+ keys: v,
2316
+ beforeCopy: d
2317
+ } = l, a = j(l, Gn), {
2318
+ onCopied: y,
2319
+ enableClipboard: N,
2320
+ beforeCopy: w
2321
+ } = se(), x = nn(), B = x[u], [g, C] = nr(!1), {
2322
+ Copied: E = {}
2323
+ } = G(), R = E?.beforeCopy;
2324
+ if (N === !1 || !B) return null;
2325
+ var I = (re) => {
2326
+ re.stopPropagation();
2327
+ var P = "";
2328
+ typeof s == "number" && s === 1 / 0 ? P = "Infinity" : typeof s == "number" && isNaN(s) ? P = "NaN" : typeof s == "bigint" ? P = je(s) : s instanceof Date ? P = s.toLocaleString() : P = JSON.stringify(s, (ie, ae) => typeof ae == "bigint" ? je(ae) : ae, 2);
2329
+ var Y = d || R || w;
2330
+ Y && typeof Y == "function" && (P = Y(P, n, s, c, u, v)), y && y(P, s), C(!0);
2331
+ var ue = navigator.clipboard || {
2332
+ writeText(ie) {
2333
+ return new Promise((ae, xe) => {
2334
+ var X = document.createElement("textarea");
2335
+ X.style.position = "absolute", X.style.opacity = "0", X.style.left = "-99999999px", X.value = ie, document.body.appendChild(X), X.select(), document.execCommand("copy") ? ae() : xe(), X.remove();
2336
+ });
2337
+ }
2338
+ };
2339
+ ue.writeText(P).then(() => {
2340
+ var ie = setTimeout(() => {
2341
+ C(!1), clearTimeout(ie);
2342
+ }, 3e3);
2343
+ }).catch((ie) => {
2344
+ });
2345
+ }, k = {
2346
+ style: {
2347
+ display: "inline-flex"
2348
+ },
2349
+ fill: g ? "var(--w-rjv-copied-success-color, #28a745)" : "var(--w-rjv-copied-color, currentColor)",
2350
+ onClick: I
2351
+ }, {
2352
+ render: b
2353
+ } = E, U = j(E, Zn), T = f({}, U, a, k, {
2354
+ style: f({}, U.style, a.style, k.style)
2355
+ }), $ = b && typeof b == "function", H = $ && b(f({}, T, {
2356
+ "data-copied": g
2357
+ }), {
2358
+ value: s,
2359
+ keyName: n,
2360
+ keys: v,
2361
+ parentValue: c
2362
+ });
2363
+ return H || (g ? /* @__PURE__ */ h("svg", f({
2364
+ viewBox: "0 0 32 36"
2365
+ }, T, {
2366
+ children: /* @__PURE__ */ h("path", {
2367
+ d: "M27.5,33 L2.5,33 L2.5,12.5 L27.5,12.5 L27.5,15.2249049 C29.1403264,13.8627542 29.9736597,13.1778155 30,13.1700887 C30,11.9705278 30,10.0804982 30,7.5 C30,6.1 28.9,5 27.5,5 L20,5 C20,2.2 17.8,0 15,0 C12.2,0 10,2.2 10,5 L2.5,5 C1.1,5 0,6.1 0,7.5 L0,33 C0,34.4 1.1,36 2.5,36 L27.5,36 C28.9,36 30,34.4 30,33 L30,26.1114493 L27.5,28.4926435 L27.5,33 Z M7.5,7.5 L10,7.5 C10,7.5 12.5,6.4 12.5,5 C12.5,3.6 13.6,2.5 15,2.5 C16.4,2.5 17.5,3.6 17.5,5 C17.5,6.4 18.8,7.5 20,7.5 L22.5,7.5 C22.5,7.5 25,8.6 25,10 L5,10 C5,8.5 6.1,7.5 7.5,7.5 Z M5,27.5 L10,27.5 L10,25 L5,25 L5,27.5 Z M28.5589286,16 L32,19.6 L21.0160714,30.5382252 L13.5303571,24.2571429 L17.1303571,20.6571429 L21.0160714,24.5428571 L28.5589286,16 Z M17.5,15 L5,15 L5,17.5 L17.5,17.5 L17.5,15 Z M10,20 L5,20 L5,22.5 L10,22.5 L10,20 Z"
2368
+ })
2369
+ })) : /* @__PURE__ */ h("svg", f({
2370
+ viewBox: "0 0 32 36"
2371
+ }, T, {
2372
+ children: /* @__PURE__ */ h("path", {
2373
+ d: "M27.5,33 L2.5,33 L2.5,12.5 L27.5,12.5 L27.5,20 L30,20 L30,7.5 C30,6.1 28.9,5 27.5,5 L20,5 C20,2.2 17.8,0 15,0 C12.2,0 10,2.2 10,5 L2.5,5 C1.1,5 0,6.1 0,7.5 L0,33 C0,34.4 1.1,36 2.5,36 L27.5,36 C28.9,36 30,34.4 30,33 L30,29 L27.5,29 L27.5,33 Z M7.5,7.5 L10,7.5 C10,7.5 12.5,6.4 12.5,5 C12.5,3.6 13.6,2.5 15,2.5 C16.4,2.5 17.5,3.6 17.5,5 C17.5,6.4 18.8,7.5 20,7.5 L22.5,7.5 C22.5,7.5 25,8.6 25,10 L5,10 C5,8.5 6.1,7.5 7.5,7.5 Z M5,27.5 L10,27.5 L10,25 L5,25 L5,27.5 Z M22.5,21.5 L22.5,16.5 L12.5,24 L22.5,31.5 L22.5,26.5 L32,26.5 L32,21.5 L22.5,21.5 Z M17.5,15 L5,15 L5,17.5 L17.5,17.5 L17.5,15 Z M10,20 L5,20 L5,22.5 L10,22.5 L10,20 Z"
2374
+ })
2375
+ })));
2376
+ };
2377
+ Me.displayName = "JVR.Copied";
2378
+ function Wr() {
2379
+ var l = Fe(null);
2380
+ return l.current === null && (l.current = "custom-id-" + Math.random().toString(36).substr(2, 9)), l.current;
2381
+ }
2382
+ var Gr = (l) => {
2383
+ var n, {
2384
+ keyName: s,
2385
+ value: c,
2386
+ expandKey: u = "",
2387
+ level: v,
2388
+ keys: d = [],
2389
+ parentValue: a
2390
+ } = l, y = Ce(), {
2391
+ objectSortKeys: N,
2392
+ indentWidth: w,
2393
+ collapsed: x,
2394
+ shouldExpandNodeInitially: B
2395
+ } = se(), g = typeof x == "boolean" ? x : typeof x == "number" ? v > x : !1, C = (n = y[u]) != null ? n : B ? !1 : g, E = B && B(!C, {
2396
+ value: c,
2397
+ keys: d,
2398
+ level: v,
2399
+ keyName: s,
2400
+ parentValue: a
2401
+ });
2402
+ if (B && x === !1) {
2403
+ if (y[u] === void 0 && !E)
2404
+ return null;
2405
+ } else if (y[u] === void 0 && E)
2406
+ return null;
2407
+ if (C)
2408
+ return null;
2409
+ var R = Array.isArray(c), I = R ? Object.entries(c).map((b) => [Number(b[0]), b[1]]) : Object.entries(c);
2410
+ N && (I = N === !0 ? I.sort((b, U) => {
2411
+ var [T] = b, [$] = U;
2412
+ return typeof T == "string" && typeof $ == "string" ? T.localeCompare($) : 0;
2413
+ }) : I.sort((b, U) => {
2414
+ var [T, $] = b, [H, re] = U;
2415
+ return typeof T == "string" && typeof H == "string" ? N(T, H, $, re) : 0;
2416
+ }));
2417
+ var k = {
2418
+ borderLeft: "var(--w-rjv-border-left-width, 1px) var(--w-rjv-line-style, solid) var(--w-rjv-line-color, #ebebeb)",
2419
+ paddingLeft: w,
2420
+ marginLeft: 6
2421
+ };
2422
+ return /* @__PURE__ */ h("div", {
2423
+ className: "w-rjv-wrap",
2424
+ style: k,
2425
+ children: I.map((b, U) => {
2426
+ var [T, $] = b;
2427
+ return /* @__PURE__ */ h(Zr, {
2428
+ parentValue: c,
2429
+ keyName: T,
2430
+ keys: [...d, T],
2431
+ value: $,
2432
+ level: v
2433
+ }, U);
2434
+ })
2435
+ });
2436
+ };
2437
+ Gr.displayName = "JVR.KeyValues";
2438
+ var $e = (l) => {
2439
+ var {
2440
+ keyName: n,
2441
+ parentValue: s,
2442
+ keys: c,
2443
+ value: u
2444
+ } = l, {
2445
+ highlightUpdates: v
2446
+ } = se(), d = typeof n == "number", a = Fe(null);
2447
+ Wn({
2448
+ value: u,
2449
+ highlightUpdates: v,
2450
+ highlightContainer: a
2451
+ });
2452
+ var y = {
2453
+ keyName: n,
2454
+ value: u,
2455
+ keys: c,
2456
+ parentValue: s
2457
+ };
2458
+ return /* @__PURE__ */ _(q, {
2459
+ children: [/* @__PURE__ */ _("span", {
2460
+ ref: a,
2461
+ children: [/* @__PURE__ */ h(Se, f({
2462
+ isNumber: d,
2463
+ "data-placement": "left"
2464
+ }, y)), /* @__PURE__ */ h(qr, f({}, y, {
2465
+ children: n
2466
+ })), /* @__PURE__ */ h(Se, f({
2467
+ isNumber: d,
2468
+ "data-placement": "right"
2469
+ }, y))]
2470
+ }), /* @__PURE__ */ h(kr, f({}, y))]
2471
+ });
2472
+ };
2473
+ $e.displayName = "JVR.KayName";
2474
+ var Zr = (l) => {
2475
+ var {
2476
+ keyName: n,
2477
+ value: s,
2478
+ parentValue: c,
2479
+ level: u = 0,
2480
+ keys: v = []
2481
+ } = l, d = sr(), a = Wr(), y = Array.isArray(s), N = s instanceof Set, w = s instanceof Map, x = s instanceof Date, B = s instanceof URL, g = s && typeof s == "object" && !y && !N && !w && !x && !B, C = g || y || N || w;
2482
+ if (C) {
2483
+ var E = N ? Array.from(s) : w ? Object.fromEntries(s) : s;
2484
+ return /* @__PURE__ */ h(Pe, {
2485
+ keyName: n,
2486
+ value: E,
2487
+ parentValue: c,
2488
+ initialValue: s,
2489
+ keys: v,
2490
+ level: u + 1
2491
+ });
2492
+ }
2493
+ var R = {
2494
+ onMouseEnter: () => d({
2495
+ [a]: !0
2496
+ }),
2497
+ onMouseLeave: () => d({
2498
+ [a]: !1
2499
+ })
2500
+ };
2501
+ return /* @__PURE__ */ _(Hr, f({
2502
+ className: "w-rjv-line",
2503
+ value: s,
2504
+ keyName: n,
2505
+ keys: v,
2506
+ parentValue: c
2507
+ }, R, {
2508
+ children: [/* @__PURE__ */ h($e, {
2509
+ keyName: n,
2510
+ value: s,
2511
+ keys: v,
2512
+ parentValue: c
2513
+ }), /* @__PURE__ */ h(Or, {
2514
+ keyName: n,
2515
+ value: s,
2516
+ keys: v
2517
+ }), /* @__PURE__ */ h(Me, {
2518
+ keyName: n,
2519
+ value: s,
2520
+ keys: v,
2521
+ parentValue: c,
2522
+ expandKey: a
2523
+ })]
2524
+ }));
2525
+ };
2526
+ Zr.displayName = "JVR.KeyValuesItem";
2527
+ var zn = ["value", "keyName"], Yn = ["as", "render"], zr = (l) => {
2528
+ var {
2529
+ CountInfoExtra: n = {}
2530
+ } = G();
2531
+ return fe(n, l, "CountInfoExtra"), null;
2532
+ };
2533
+ zr.displayName = "JVR.CountInfoExtra";
2534
+ var Yr = (l) => {
2535
+ var {
2536
+ value: n = {},
2537
+ keyName: s
2538
+ } = l, c = j(l, zn), {
2539
+ CountInfoExtra: u = {}
2540
+ } = G(), {
2541
+ as: v,
2542
+ render: d
2543
+ } = u, a = j(u, Yn);
2544
+ if (!d && !a.children) return null;
2545
+ var y = v || "span", N = d && typeof d == "function", w = f({}, a, c), x = N && d(w, {
2546
+ value: n,
2547
+ keyName: s
2548
+ });
2549
+ return x || /* @__PURE__ */ h(y, f({}, w));
2550
+ };
2551
+ Yr.displayName = "JVR.CountInfoExtraComps";
2552
+ var Xn = ["value", "keyName"], ei = ["as", "render"], Xr = (l) => {
2553
+ var {
2554
+ CountInfo: n = {}
2555
+ } = G();
2556
+ return fe(n, l, "CountInfo"), null;
2557
+ };
2558
+ Xr.displayName = "JVR.CountInfo";
2559
+ var et = (l) => {
2560
+ var {
2561
+ value: n = {},
2562
+ keyName: s
2563
+ } = l, c = j(l, Xn), {
2564
+ displayObjectSize: u
2565
+ } = se(), {
2566
+ CountInfo: v = {}
2567
+ } = G();
2568
+ if (!u) return null;
2569
+ var {
2570
+ as: d,
2571
+ render: a
2572
+ } = v, y = j(v, ei), N = d || "span";
2573
+ y.style = f({}, y.style, l.style);
2574
+ var w = Object.keys(n).length;
2575
+ y.children || (y.children = w + " item" + (w === 1 ? "" : "s"));
2576
+ var x = f({}, y, c), B = a && typeof a == "function", g = B && a(f({}, x, {
2577
+ "data-length": w
2578
+ }), {
2579
+ value: n,
2580
+ keyName: s
2581
+ });
2582
+ return g || /* @__PURE__ */ h(N, f({}, x));
2583
+ };
2584
+ et.displayName = "JVR.CountInfoComp";
2585
+ var ri = ["as", "render"], rt = (l) => {
2586
+ var {
2587
+ Ellipsis: n = {}
2588
+ } = G();
2589
+ return fe(n, l, "Ellipsis"), null;
2590
+ };
2591
+ rt.displayName = "JVR.Ellipsis";
2592
+ var tt = (l) => {
2593
+ var {
2594
+ isExpanded: n,
2595
+ value: s,
2596
+ keyName: c
2597
+ } = l, {
2598
+ Ellipsis: u = {}
2599
+ } = G(), {
2600
+ as: v,
2601
+ render: d
2602
+ } = u, a = j(u, ri), y = v || "span", N = d && typeof d == "function" && d(f({}, a, {
2603
+ "data-expanded": n
2604
+ }), {
2605
+ value: s,
2606
+ keyName: c
2607
+ });
2608
+ return N || (!n || typeof s == "object" && Object.keys(s).length == 0 ? null : /* @__PURE__ */ h(y, f({}, a)));
2609
+ };
2610
+ tt.displayName = "JVR.EllipsisComp";
2611
+ var nt = (l) => {
2612
+ var n, {
2613
+ keyName: s,
2614
+ expandKey: c,
2615
+ keys: u = [],
2616
+ initialValue: v,
2617
+ value: d,
2618
+ parentValue: a,
2619
+ level: y
2620
+ } = l, N = Ce(), w = sn(), {
2621
+ onExpand: x,
2622
+ collapsed: B,
2623
+ shouldExpandNodeInitially: g
2624
+ } = se(), C = typeof B == "boolean" ? B : typeof B == "number" ? y > B : !1, E = (n = N[c]) != null ? n : g ? !1 : C, R = g && g(!E, {
2625
+ value: d,
2626
+ keys: u,
2627
+ level: y,
2628
+ keyName: s,
2629
+ parentValue: a
2630
+ });
2631
+ N[c] === void 0 && g && (E = !R);
2632
+ var I = () => {
2633
+ var ue = {
2634
+ expand: !E,
2635
+ value: d,
2636
+ keyid: c,
2637
+ keyName: s
2638
+ };
2639
+ x && x(ue), w({
2640
+ [c]: ue.expand
2641
+ });
2642
+ }, k = {
2643
+ display: "inline-flex",
2644
+ alignItems: "center"
2645
+ }, b = {
2646
+ transform: "rotate(" + (E ? "-90" : "0") + "deg)",
2647
+ transition: "all 0.3s"
2648
+ }, U = Object.keys(d).length, T = typeof d == "object", $ = Array.isArray(d), H = d instanceof Set, re = U !== 0 && ($ || H || T), P = {
2649
+ style: k
2650
+ };
2651
+ re && (P.onClick = I);
2652
+ var Y = {
2653
+ keyName: s,
2654
+ value: d,
2655
+ keys: u,
2656
+ parentValue: a
2657
+ };
2658
+ return /* @__PURE__ */ _("span", f({}, P, {
2659
+ children: [re && /* @__PURE__ */ h(Ir, f({
2660
+ style: b,
2661
+ expandKey: c
2662
+ }, Y)), (s || typeof s == "number") && /* @__PURE__ */ h($e, f({}, Y)), /* @__PURE__ */ h(Sr, {
2663
+ value: v,
2664
+ keyName: s
2665
+ }), /* @__PURE__ */ h(jr, {
2666
+ value: v,
2667
+ keyName: s
2668
+ }), /* @__PURE__ */ h(br, f({
2669
+ isBrackets: $ || H
2670
+ }, Y)), /* @__PURE__ */ h(tt, {
2671
+ keyName: s,
2672
+ value: d,
2673
+ isExpanded: E
2674
+ }), /* @__PURE__ */ h(_e, f({
2675
+ isVisiable: E || !re,
2676
+ isBrackets: $ || H
2677
+ }, Y)), /* @__PURE__ */ h(et, {
2678
+ value: d,
2679
+ keyName: s
2680
+ }), /* @__PURE__ */ h(Yr, {
2681
+ value: d,
2682
+ keyName: s
2683
+ }), /* @__PURE__ */ h(Me, {
2684
+ keyName: s,
2685
+ value: d,
2686
+ expandKey: c,
2687
+ parentValue: a,
2688
+ keys: u
2689
+ })]
2690
+ }));
2691
+ };
2692
+ nt.displayName = "JVR.NestedOpen";
2693
+ var ti = ["className", "children", "parentValue", "keyid", "level", "value", "initialValue", "keys", "keyName"], Pe = /* @__PURE__ */ ir((l, n) => {
2694
+ var {
2695
+ className: s = "",
2696
+ parentValue: c,
2697
+ level: u = 1,
2698
+ value: v,
2699
+ initialValue: d,
2700
+ keys: a,
2701
+ keyName: y
2702
+ } = l, N = j(l, ti), w = sr(), x = Wr(), B = [s, "w-rjv-inner"].filter(Boolean).join(" "), g = {
2703
+ onMouseEnter: () => w({
2704
+ [x]: !0
2705
+ }),
2706
+ onMouseLeave: () => w({
2707
+ [x]: !1
2708
+ })
2709
+ };
2710
+ return /* @__PURE__ */ _("div", f({
2711
+ className: B,
2712
+ ref: n
2713
+ }, N, g, {
2714
+ children: [/* @__PURE__ */ h(nt, {
2715
+ expandKey: x,
2716
+ value: v,
2717
+ level: u,
2718
+ keys: a,
2719
+ parentValue: c,
2720
+ keyName: y,
2721
+ initialValue: d
2722
+ }), /* @__PURE__ */ h(Gr, {
2723
+ expandKey: x,
2724
+ value: v,
2725
+ level: u,
2726
+ keys: a,
2727
+ parentValue: c,
2728
+ keyName: y
2729
+ }), /* @__PURE__ */ h(Tr, {
2730
+ expandKey: x,
2731
+ value: v,
2732
+ level: u,
2733
+ keys: a,
2734
+ parentValue: c,
2735
+ keyName: y
2736
+ })]
2737
+ }));
2738
+ });
2739
+ Pe.displayName = "JVR.Container";
2740
+ var it = (l) => {
2741
+ var {
2742
+ BraceLeft: n = {}
2743
+ } = K();
2744
+ return ne(n, l, "BraceLeft"), null;
2745
+ };
2746
+ it.displayName = "JVR.BraceLeft";
2747
+ var at = (l) => {
2748
+ var {
2749
+ BraceRight: n = {}
2750
+ } = K();
2751
+ return ne(n, l, "BraceRight"), null;
2752
+ };
2753
+ at.displayName = "JVR.BraceRight";
2754
+ var lt = (l) => {
2755
+ var {
2756
+ BracketsLeft: n = {}
2757
+ } = K();
2758
+ return ne(n, l, "BracketsLeft"), null;
2759
+ };
2760
+ lt.displayName = "JVR.BracketsLeft";
2761
+ var ot = (l) => {
2762
+ var {
2763
+ BracketsRight: n = {}
2764
+ } = K();
2765
+ return ne(n, l, "BracketsRight"), null;
2766
+ };
2767
+ ot.displayName = "JVR.BracketsRight";
2768
+ var st = (l) => {
2769
+ var {
2770
+ Arrow: n = {}
2771
+ } = K();
2772
+ return ne(n, l, "Arrow"), null;
2773
+ };
2774
+ st.displayName = "JVR.Arrow";
2775
+ var ut = (l) => {
2776
+ var {
2777
+ Colon: n = {}
2778
+ } = K();
2779
+ return ne(n, l, "Colon"), null;
2780
+ };
2781
+ ut.displayName = "JVR.Colon";
2782
+ var ct = (l) => {
2783
+ var {
2784
+ Quote: n = {}
2785
+ } = K();
2786
+ return ne(n, l, "Quote"), null;
2787
+ };
2788
+ ct.displayName = "JVR.Quote";
2789
+ var pt = (l) => {
2790
+ var {
2791
+ ValueQuote: n = {}
2792
+ } = K();
2793
+ return ne(n, l, "ValueQuote"), null;
2794
+ };
2795
+ pt.displayName = "JVR.ValueQuote";
2796
+ var dt = (l) => {
2797
+ var {
2798
+ Bigint: n = {}
2799
+ } = A();
2800
+ return Q(n, l, "Bigint"), null;
2801
+ };
2802
+ dt.displayName = "JVR.Bigint";
2803
+ var yt = (l) => {
2804
+ var {
2805
+ Date: n = {}
2806
+ } = A();
2807
+ return Q(n, l, "Date"), null;
2808
+ };
2809
+ yt.displayName = "JVR.Date";
2810
+ var ft = (l) => {
2811
+ var {
2812
+ False: n = {}
2813
+ } = A();
2814
+ return Q(n, l, "False"), null;
2815
+ };
2816
+ ft.displayName = "JVR.False";
2817
+ var ht = (l) => {
2818
+ var {
2819
+ Float: n = {}
2820
+ } = A();
2821
+ return Q(n, l, "Float"), null;
2822
+ };
2823
+ ht.displayName = "JVR.Float";
2824
+ var vt = (l) => {
2825
+ var {
2826
+ Int: n = {}
2827
+ } = A();
2828
+ return Q(n, l, "Int"), null;
2829
+ };
2830
+ vt.displayName = "JVR.Int";
2831
+ var mt = (l) => {
2832
+ var {
2833
+ Map: n = {}
2834
+ } = A();
2835
+ return Q(n, l, "Map"), null;
2836
+ };
2837
+ mt.displayName = "JVR.Map";
2838
+ var wt = (l) => {
2839
+ var {
2840
+ Nan: n = {}
2841
+ } = A();
2842
+ return Q(n, l, "Nan"), null;
2843
+ };
2844
+ wt.displayName = "JVR.Nan";
2845
+ var xt = (l) => {
2846
+ var {
2847
+ Null: n = {}
2848
+ } = A();
2849
+ return Q(n, l, "Null"), null;
2850
+ };
2851
+ xt.displayName = "JVR.Null";
2852
+ var gt = (l) => {
2853
+ var {
2854
+ Set: n = {}
2855
+ } = A();
2856
+ return Q(n, l, "Set"), null;
2857
+ };
2858
+ gt.displayName = "JVR.Set";
2859
+ var Nt = (l) => {
2860
+ var {
2861
+ Str: n = {}
2862
+ } = A();
2863
+ return Q(n, l, "Str"), null;
2864
+ };
2865
+ Nt.displayName = "JVR.StringText";
2866
+ var Bt = (l) => {
2867
+ var {
2868
+ True: n = {}
2869
+ } = A();
2870
+ return Q(n, l, "True"), null;
2871
+ };
2872
+ Bt.displayName = "JVR.True";
2873
+ var Ct = (l) => {
2874
+ var {
2875
+ Undefined: n = {}
2876
+ } = A();
2877
+ return Q(n, l, "Undefined"), null;
2878
+ };
2879
+ Ct.displayName = "JVR.Undefined";
2880
+ var Et = (l) => {
2881
+ var {
2882
+ Url: n = {}
2883
+ } = A();
2884
+ return Q(n, l, "Url"), null;
2885
+ };
2886
+ Et.displayName = "JVR.Url";
2887
+ var Rt = (l) => {
2888
+ var {
2889
+ Copied: n = {}
2890
+ } = G();
2891
+ return fe(n, l, "Copied"), null;
2892
+ };
2893
+ Rt.displayName = "JVR.Copied";
2894
+ var ni = ["className", "style", "value", "children", "collapsed", "shouldExpandNodeInitially", "indentWidth", "displayObjectSize", "shortenTextAfterLength", "stringEllipsis", "highlightUpdates", "enableClipboard", "displayDataTypes", "objectSortKeys", "onExpand", "onCopied", "beforeCopy"], F = /* @__PURE__ */ ir((l, n) => {
2895
+ var {
2896
+ className: s = "",
2897
+ style: c,
2898
+ value: u,
2899
+ children: v,
2900
+ collapsed: d = !1,
2901
+ shouldExpandNodeInitially: a,
2902
+ indentWidth: y = 15,
2903
+ displayObjectSize: N = !0,
2904
+ shortenTextAfterLength: w = 30,
2905
+ stringEllipsis: x,
2906
+ highlightUpdates: B = !0,
2907
+ enableClipboard: g = !0,
2908
+ displayDataTypes: C = !0,
2909
+ objectSortKeys: E = !1,
2910
+ onExpand: R,
2911
+ onCopied: I,
2912
+ beforeCopy: k
2913
+ } = l, b = j(l, ni), U = f({
2914
+ lineHeight: 1.4,
2915
+ fontFamily: "var(--w-rjv-font-family, Menlo, monospace)",
2916
+ color: "var(--w-rjv-color, #002b36)",
2917
+ backgroundColor: "var(--w-rjv-background-color, #00000000)",
2918
+ fontSize: 13
2919
+ }, c), T = ["w-json-view-container", "w-rjv", s].filter(Boolean).join(" ");
2920
+ return /* @__PURE__ */ _(Rr, {
2921
+ initialState: {
2922
+ value: u,
2923
+ objectSortKeys: E,
2924
+ indentWidth: y,
2925
+ shouldExpandNodeInitially: d === !1 ? a : void 0,
2926
+ displayObjectSize: N,
2927
+ collapsed: d,
2928
+ enableClipboard: g,
2929
+ shortenTextAfterLength: w,
2930
+ stringEllipsis: x,
2931
+ highlightUpdates: B,
2932
+ onCopied: I,
2933
+ onExpand: R,
2934
+ beforeCopy: k
2935
+ },
2936
+ initialTypes: {
2937
+ displayDataTypes: C
2938
+ },
2939
+ children: [/* @__PURE__ */ h(Pe, f({
2940
+ value: u
2941
+ }, b, {
2942
+ ref: n,
2943
+ className: T,
2944
+ style: U
2945
+ })), v]
2946
+ });
2947
+ });
2948
+ F.Bigint = dt;
2949
+ F.Date = yt;
2950
+ F.False = ft;
2951
+ F.Float = ht;
2952
+ F.Int = vt;
2953
+ F.Map = mt;
2954
+ F.Nan = wt;
2955
+ F.Null = xt;
2956
+ F.Set = gt;
2957
+ F.String = Nt;
2958
+ F.True = Bt;
2959
+ F.Undefined = Ct;
2960
+ F.Url = Et;
2961
+ F.ValueQuote = pt;
2962
+ F.Arrow = st;
2963
+ F.Colon = ut;
2964
+ F.Quote = ct;
2965
+ F.Ellipsis = rt;
2966
+ F.BraceLeft = it;
2967
+ F.BraceRight = at;
2968
+ F.BracketsLeft = lt;
2969
+ F.BracketsRight = ot;
2970
+ F.Copied = Rt;
2971
+ F.CountInfo = Xr;
2972
+ F.CountInfoExtra = zr;
2973
+ F.KeyName = Kr;
2974
+ F.Row = Qr;
2975
+ F.displayName = "JVR.JsonView";
2976
+ const ii = {
2977
+ // Structural
2978
+ "--w-rjv-font-family": qt,
2979
+ "--w-rjv-color": Xe,
2980
+ "--w-rjv-background-color": Kt,
2981
+ "--w-rjv-line-color": Ot,
2982
+ "--w-rjv-arrow-color": de,
2983
+ // Keys and Labels
2984
+ "--w-rjv-key-string": Xe,
2985
+ "--w-rjv-key-number": de,
2986
+ // Punctuation
2987
+ "--w-rjv-curlybraces-color": le,
2988
+ "--w-rjv-colon-color": le,
2989
+ "--w-rjv-brackets-color": le,
2990
+ "--w-rjv-ellipsis-color": ve,
2991
+ "--w-rjv-quotes-color": le,
2992
+ "--w-rjv-quotes-string-color": Ie,
2993
+ // Types
2994
+ "--w-rjv-type-string-color": Ie,
2995
+ "--w-rjv-type-int-color": ve,
2996
+ "--w-rjv-type-float-color": ve,
2997
+ "--w-rjv-type-bigint-color": ve,
2998
+ "--w-rjv-type-boolean-color": Pt,
2999
+ "--w-rjv-type-date-color": ve,
3000
+ "--w-rjv-type-url-color": de,
3001
+ "--w-rjv-type-null-color": le,
3002
+ "--w-rjv-type-nan-color": le,
3003
+ "--w-rjv-type-undefined-color": le,
3004
+ // Actions
3005
+ "--w-rjv-edit-color": de,
3006
+ "--w-rjv-info-color": $t,
3007
+ "--w-rjv-update-color": de,
3008
+ "--w-rjv-copied-color": de,
3009
+ "--w-rjv-copied-success-color": Ie
3010
+ };
3011
+ function ai({ data: l }) {
3012
+ return l ? /* @__PURE__ */ h(
3013
+ F,
3014
+ {
3015
+ value: l,
3016
+ style: ii
3017
+ }
3018
+ ) : null;
3019
+ }
3020
+ function Oe({
3021
+ content: l,
3022
+ encoding: n,
3023
+ mimeType: s
3024
+ }) {
3025
+ const c = Ht(s);
3026
+ if (c === "Img")
3027
+ return /* @__PURE__ */ h(
3028
+ "img",
3029
+ {
3030
+ src: `data:${s};base64,${l}`,
3031
+ alt: "HAR entry content",
3032
+ style: { maxWidth: "100%", maxHeight: 400 }
3033
+ }
3034
+ );
3035
+ let u = Wt(s), v = l;
3036
+ if (n === "base64" && (v = rn.Buffer.from(l, n).toString("utf8")), c === "JSON") {
3037
+ const [d, a] = Gt(v);
3038
+ if (!a)
3039
+ return /* @__PURE__ */ h(ai, { data: d });
3040
+ u = void 0;
3041
+ }
3042
+ return /* @__PURE__ */ h(
3043
+ _t,
3044
+ {
3045
+ lineNumbers: !0,
3046
+ wrapLines: !0,
3047
+ content: v,
3048
+ highlight: u,
3049
+ actions: /* @__PURE__ */ h(Mt, { copyErrorText: "Copy failed", copySuccessText: "Copied", textToCopy: v })
3050
+ }
3051
+ );
3052
+ }
3053
+ function Ke({ title: l, children: n }) {
3054
+ return /* @__PURE__ */ _(zt, { variant: "container", headerText: l, defaultExpanded: !0, children: [
3055
+ /* @__PURE__ */ h(Te, { margin: { top: "s" } }),
3056
+ n
3057
+ ] });
3058
+ }
3059
+ function Be({ title: l, items: n = [] }) {
3060
+ return /* @__PURE__ */ h(Ke, { title: l, children: /* @__PURE__ */ h(Zt, { borders: "horizontal", columns: 2, children: n.reduce((s, { name: c, value: u }) => (s.push(/* @__PURE__ */ h(Te, { variant: "awsui-key-label", children: c })), s.push(/* @__PURE__ */ h(Te, { variant: "p", children: u || "-" })), s), []) }) });
3061
+ }
3062
+ function li({ harEntry: l }) {
3063
+ return /* @__PURE__ */ _(ar, { children: [
3064
+ /* @__PURE__ */ h(
3065
+ Be,
3066
+ {
3067
+ title: "General",
3068
+ items: [
3069
+ {
3070
+ name: "URL",
3071
+ value: l.request.url
3072
+ },
3073
+ {
3074
+ name: "Method",
3075
+ value: l.request.method
3076
+ },
3077
+ {
3078
+ name: "Status",
3079
+ value: `${l.response.status}`
3080
+ }
3081
+ ]
3082
+ }
3083
+ ),
3084
+ /* @__PURE__ */ h(Be, { title: "Request Headers", items: l.request.headers }),
3085
+ /* @__PURE__ */ h(Be, { title: "Response Headers", items: l.response.headers })
3086
+ ] });
3087
+ }
3088
+ function oi({ harEntry: l }) {
3089
+ const n = l.request.postData?.text ?? "", s = l.request.postData?.mimeType;
3090
+ return /* @__PURE__ */ _(ar, { children: [
3091
+ /* @__PURE__ */ h(Be, { title: "Query Parameters", items: l.request.queryString }),
3092
+ /* @__PURE__ */ h(Ke, { title: "Request Payload", children: /* @__PURE__ */ h(Oe, { content: n, mimeType: s }) })
3093
+ ] });
3094
+ }
3095
+ function si({ harEntry: l }) {
3096
+ const n = l.response.content.text ?? "", s = l.response.content.encoding, c = l.response.content.mimeType;
3097
+ return /* @__PURE__ */ h(Ke, { title: "Response", children: /* @__PURE__ */ h(Oe, { content: n, encoding: s, mimeType: c }) });
3098
+ }
3099
+ function Bi({ harEntry: l }) {
3100
+ return /* @__PURE__ */ h(
3101
+ Jt,
3102
+ {
3103
+ tabs: [
3104
+ {
3105
+ label: "Headers",
3106
+ id: "headers",
3107
+ content: /* @__PURE__ */ h(li, { harEntry: l })
3108
+ },
3109
+ {
3110
+ label: "Payload",
3111
+ id: "payload",
3112
+ content: /* @__PURE__ */ h(oi, { harEntry: l })
3113
+ },
3114
+ {
3115
+ label: "Response",
3116
+ id: "response",
3117
+ content: /* @__PURE__ */ h(si, { harEntry: l })
3118
+ },
3119
+ {
3120
+ label: "HAR Entry",
3121
+ id: "har-entry",
3122
+ content: /* @__PURE__ */ h(Oe, { content: JSON.stringify(l), mimeType: "json" })
3123
+ }
3124
+ ]
3125
+ }
3126
+ );
3127
+ }
3128
+ export {
3129
+ Bi as default
3130
+ };