@har-analyzer/components 0.0.16 → 0.0.17

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 (45) hide show
  1. package/README.md +50 -25
  2. package/dist/chunks/collapsible-key-value-list.js +5 -5
  3. package/dist/chunks/content-viewer.js +146 -140
  4. package/dist/chunks/context.js +5 -0
  5. package/dist/chunks/index.js +588 -521
  6. package/dist/chunks/provider.js +11 -0
  7. package/dist/components/collapsible-section.d.ts +1 -1
  8. package/dist/components/enhanced-table.d.ts +10 -2
  9. package/dist/context/user-preferences/index.d.ts +6 -0
  10. package/dist/context/user-preferences/provider.d.ts +9 -0
  11. package/dist/context/user-preferences-store/context.d.ts +5 -0
  12. package/dist/context/user-preferences-store/hooks.d.ts +1 -0
  13. package/dist/context/user-preferences-store/provider.d.ts +5 -0
  14. package/dist/features/har-analyzer/components/app-layout.d.ts +7 -0
  15. package/dist/features/har-analyzer/components/preferences/index.d.ts +1 -0
  16. package/dist/features/har-analyzer/components/top-navigation.d.ts +8 -0
  17. package/dist/features/har-analyzer/context/preferences.d.ts +2 -0
  18. package/dist/features/har-analyzer-preferences-store/index.d.ts +2 -0
  19. package/dist/features/har-entries-viewer/index.d.ts +0 -1
  20. package/dist/features/list-har-entries/components/compare-mode-switcher.d.ts +1 -6
  21. package/dist/features/list-har-entries/components/content-type-filter.d.ts +1 -7
  22. package/dist/features/list-har-entries/components/errors-filter.d.ts +1 -6
  23. package/dist/features/list-har-entries/components/har-entries-table.d.ts +8 -0
  24. package/dist/features/list-har-entries/context/preferences.d.ts +5 -0
  25. package/dist/features/list-har-entries/index.d.ts +3 -9
  26. package/dist/har-analyzer-preferences-store.js +4 -0
  27. package/dist/har-analyzer.js +93 -87
  28. package/dist/har-entries-viewer.js +80 -79
  29. package/dist/index.d.ts +7 -1
  30. package/dist/index.js +9 -9
  31. package/dist/list-har-entries.js +2 -6
  32. package/dist/utils/har.d.ts +1 -1
  33. package/package.json +1 -1
  34. package/dist/chunks/json.js +0 -10
  35. package/dist/components/enhanced-top-navigation.d.ts +0 -7
  36. package/dist/components/simple-app-layout.d.ts +0 -6
  37. package/dist/components/simple-app-preferences/index.d.ts +0 -1
  38. package/dist/features/har-analyzer-preferences/index.d.ts +0 -7
  39. package/dist/features/list-har-entries/hooks/preferences.d.ts +0 -2
  40. package/dist/har-analyzer-preferences.js +0 -25
  41. package/dist/hooks/app-preferences.d.ts +0 -2
  42. package/dist/hooks/compare-mode-preference.d.ts +0 -1
  43. package/dist/hooks/table-preferences.d.ts +0 -12
  44. /package/dist/{components/simple-app-preferences → features/har-analyzer/components/preferences/components}/content-width-switcher.d.ts +0 -0
  45. /package/dist/{components/simple-app-preferences → features/har-analyzer/components/preferences/components}/theme-switcher.d.ts +0 -0
@@ -2,11 +2,10 @@ import { jsx as g, jsxs as _ } from "react/jsx-runtime";
2
2
  import Lt from "@cloudscape-design/code-view/code-view";
3
3
  import At from "@cloudscape-design/components/copy-to-clipboard";
4
4
  import { colorTextStatusSuccess as Ie, colorTextLinkDefault as ye, colorTextCounter as Vt, colorTextBodySecondary as le, colorTextStatusWarning as ve, colorTextStatusError as Ut, colorTextBodyDefault as ze, colorBorderDividerDefault as Dt, colorBackgroundContainerContent as Jt, fontFamilyBase as _t } from "@cloudscape-design/design-tokens";
5
- import { useReducer as de, createContext as Z, useContext as G, useEffect as oe, Fragment as Q, useState as Xe, useMemo as Mt, useRef as Te, forwardRef as er } from "react";
5
+ import { useReducer as de, createContext as Z, useContext as G, useEffect as oe, Fragment as Q, useState as Xe, useMemo as Mt, useRef as Se, forwardRef as er } from "react";
6
6
  import { g as $t, a as Pt } from "./content-type.js";
7
- import { s as Ot } from "./json.js";
8
7
  var ke = {}, me = {}, Ge;
9
- function Kt() {
8
+ function Ot() {
10
9
  if (Ge) return me;
11
10
  Ge = 1, me.byteLength = a, me.toByteArray = N, me.fromByteArray = B;
12
11
  for (var l = [], n = [], s = typeof Uint8Array < "u" ? Uint8Array : Array, c = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", u = 0, h = c.length; u < h; ++u)
@@ -56,7 +55,7 @@ function Kt() {
56
55
  var Ne = {};
57
56
  /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
58
57
  var He;
59
- function Qt() {
58
+ function Kt() {
60
59
  return He || (He = 1, Ne.read = function(l, n, s, c, u) {
61
60
  var h, y, a = u * 8 - c - 1, d = (1 << a) - 1, N = d >> 1, m = -7, w = s ? u - 1 : 0, B = s ? -1 : 1, x = l[n + w];
62
61
  for (w += B, h = x & (1 << -m) - 1, x >>= -m, m += a; m > 0; h = h * 256 + l[n + w], w += B, m -= 8)
@@ -87,9 +86,9 @@ function Qt() {
87
86
  * @license MIT
88
87
  */
89
88
  var Ye;
90
- function qt() {
89
+ function Qt() {
91
90
  return Ye || (Ye = 1, function(l) {
92
- const n = Kt(), s = Qt(), c = typeof Symbol == "function" && typeof Symbol.for == "function" ? Symbol.for("nodejs.util.inspect.custom") : null;
91
+ const n = Ot(), s = Kt(), c = typeof Symbol == "function" && typeof Symbol.for == "function" ? Symbol.for("nodejs.util.inspect.custom") : null;
93
92
  l.Buffer = a, l.SlowBuffer = I, l.INSPECT_MAX_BYTES = 50;
94
93
  const u = 2147483647;
95
94
  l.kMaxLength = u, a.TYPED_ARRAY_SUPPORT = h(), !a.TYPED_ARRAY_SUPPORT && typeof console < "u" && typeof console.error == "function" && console.error(
@@ -405,14 +404,14 @@ function qt() {
405
404
  if (r >= i)
406
405
  return 1;
407
406
  if (r >>>= 0, i >>>= 0, o >>>= 0, p >>>= 0, this === e) return 0;
408
- let v = p - o, T = i - r;
409
- const D = Math.min(v, T), V = this.slice(o, p), J = e.slice(r, i);
407
+ let v = p - o, S = i - r;
408
+ const D = Math.min(v, S), V = this.slice(o, p), J = e.slice(r, i);
410
409
  for (let L = 0; L < D; ++L)
411
410
  if (V[L] !== J[L]) {
412
- v = V[L], T = J[L];
411
+ v = V[L], S = J[L];
413
412
  break;
414
413
  }
415
- return v < T ? -1 : T < v ? 1 : 0;
414
+ return v < S ? -1 : S < v ? 1 : 0;
416
415
  };
417
416
  function $(t, e, r, i, o) {
418
417
  if (t.length === 0) return -1;
@@ -429,11 +428,11 @@ function qt() {
429
428
  throw new TypeError("val must be string, number or Buffer");
430
429
  }
431
430
  function W(t, e, r, i, o) {
432
- let p = 1, v = t.length, T = e.length;
431
+ let p = 1, v = t.length, S = e.length;
433
432
  if (i !== void 0 && (i = String(i).toLowerCase(), i === "ucs2" || i === "ucs-2" || i === "utf16le" || i === "utf-16le")) {
434
433
  if (t.length < 2 || e.length < 2)
435
434
  return -1;
436
- p = 2, v /= 2, T /= 2, r /= 2;
435
+ p = 2, v /= 2, S /= 2, r /= 2;
437
436
  }
438
437
  function D(J, L) {
439
438
  return p === 1 ? J[L] : J.readUInt16BE(L * p);
@@ -443,13 +442,13 @@ function qt() {
443
442
  let J = -1;
444
443
  for (V = r; V < v; V++)
445
444
  if (D(t, V) === D(e, J === -1 ? 0 : V - J)) {
446
- if (J === -1 && (J = V), V - J + 1 === T) return J * p;
445
+ if (J === -1 && (J = V), V - J + 1 === S) return J * p;
447
446
  } else
448
447
  J !== -1 && (V -= V - J), J = -1;
449
448
  } else
450
- for (r + T > v && (r = v - T), V = r; V >= 0; V--) {
449
+ for (r + S > v && (r = v - S), V = r; V >= 0; V--) {
451
450
  let J = !0;
452
- for (let L = 0; L < T; L++)
451
+ for (let L = 0; L < S; L++)
453
452
  if (D(t, V + L) !== D(e, L)) {
454
453
  J = !1;
455
454
  break;
@@ -473,9 +472,9 @@ function qt() {
473
472
  i > p / 2 && (i = p / 2);
474
473
  let v;
475
474
  for (v = 0; v < i; ++v) {
476
- const T = parseInt(e.substr(v * 2, 2), 16);
477
- if (Re(T)) return v;
478
- t[r + v] = T;
475
+ const S = parseInt(e.substr(v * 2, 2), 16);
476
+ if (Re(S)) return v;
477
+ t[r + v] = S;
479
478
  }
480
479
  return v;
481
480
  }
@@ -489,7 +488,7 @@ function qt() {
489
488
  return ge(Ze(e), t, r, i);
490
489
  }
491
490
  function ie(t, e, r, i) {
492
- return ge(Tt(e, t.length - r), t, r, i);
491
+ return ge(St(e, t.length - r), t, r, i);
493
492
  }
494
493
  a.prototype.write = function(e, r, i, o) {
495
494
  if (r === void 0)
@@ -544,10 +543,10 @@ function qt() {
544
543
  let o = e;
545
544
  for (; o < r; ) {
546
545
  const p = t[o];
547
- let v = null, T = p > 239 ? 4 : p > 223 ? 3 : p > 191 ? 2 : 1;
548
- if (o + T <= r) {
546
+ let v = null, S = p > 239 ? 4 : p > 223 ? 3 : p > 191 ? 2 : 1;
547
+ if (o + S <= r) {
549
548
  let D, V, J, L;
550
- switch (T) {
549
+ switch (S) {
551
550
  case 1:
552
551
  p < 128 && (v = p);
553
552
  break;
@@ -561,7 +560,7 @@ function qt() {
561
560
  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 && (v = L));
562
561
  }
563
562
  }
564
- v === null ? (v = 65533, T = 1) : v > 65535 && (v -= 65536, i.push(v >>> 10 & 1023 | 55296), v = 56320 | v & 1023), i.push(v), o += T;
563
+ v === null ? (v = 65533, S = 1) : v > 65535 && (v -= 65536, i.push(v >>> 10 & 1023 | 55296), v = 56320 | v & 1023), i.push(v), o += S;
565
564
  }
566
565
  return Nt(i);
567
566
  }
@@ -597,7 +596,7 @@ function qt() {
597
596
  (!e || e < 0) && (e = 0), (!r || r < 0 || r > i) && (r = i);
598
597
  let o = "";
599
598
  for (let p = e; p < r; ++p)
600
- o += St[t[p]];
599
+ o += Tt[t[p]];
601
600
  return o;
602
601
  }
603
602
  function Rt(t, e, r) {
@@ -706,8 +705,8 @@ function qt() {
706
705
  }
707
706
  a.prototype.writeUintLE = a.prototype.writeUIntLE = function(e, r, i, o) {
708
707
  if (e = +e, r = r >>> 0, i = i >>> 0, !o) {
709
- const T = Math.pow(2, 8 * i) - 1;
710
- O(this, e, r, i, T, 0);
708
+ const S = Math.pow(2, 8 * i) - 1;
709
+ O(this, e, r, i, S, 0);
711
710
  }
712
711
  let p = 1, v = 0;
713
712
  for (this[r] = e & 255; ++v < i && (p *= 256); )
@@ -715,8 +714,8 @@ function qt() {
715
714
  return r + i;
716
715
  }, a.prototype.writeUintBE = a.prototype.writeUIntBE = function(e, r, i, o) {
717
716
  if (e = +e, r = r >>> 0, i = i >>> 0, !o) {
718
- const T = Math.pow(2, 8 * i) - 1;
719
- O(this, e, r, i, T, 0);
717
+ const S = Math.pow(2, 8 * i) - 1;
718
+ O(this, e, r, i, S, 0);
720
719
  }
721
720
  let p = i - 1, v = 1;
722
721
  for (this[r + p] = e & 255; --p >= 0 && (v *= 256); )
@@ -756,18 +755,18 @@ function qt() {
756
755
  const D = Math.pow(2, 8 * i - 1);
757
756
  O(this, e, r, i, D - 1, -D);
758
757
  }
759
- let p = 0, v = 1, T = 0;
758
+ let p = 0, v = 1, S = 0;
760
759
  for (this[r] = e & 255; ++p < i && (v *= 256); )
761
- e < 0 && T === 0 && this[r + p - 1] !== 0 && (T = 1), this[r + p] = (e / v >> 0) - T & 255;
760
+ e < 0 && S === 0 && this[r + p - 1] !== 0 && (S = 1), this[r + p] = (e / v >> 0) - S & 255;
762
761
  return r + i;
763
762
  }, a.prototype.writeIntBE = function(e, r, i, o) {
764
763
  if (e = +e, r = r >>> 0, !o) {
765
764
  const D = Math.pow(2, 8 * i - 1);
766
765
  O(this, e, r, i, D - 1, -D);
767
766
  }
768
- let p = i - 1, v = 1, T = 0;
767
+ let p = i - 1, v = 1, S = 0;
769
768
  for (this[r + p] = e & 255; --p >= 0 && (v *= 256); )
770
- e < 0 && T === 0 && this[r + p + 1] !== 0 && (T = 1), this[r + p] = (e / v >> 0) - T & 255;
769
+ e < 0 && S === 0 && this[r + p + 1] !== 0 && (S = 1), this[r + p] = (e / v >> 0) - S & 255;
771
770
  return r + i;
772
771
  }, a.prototype.writeInt8 = function(e, r, i) {
773
772
  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;
@@ -838,11 +837,11 @@ function qt() {
838
837
  for (p = r; p < i; ++p)
839
838
  this[p] = e;
840
839
  else {
841
- const v = a.isBuffer(e) ? e : a.from(e, o), T = v.length;
842
- if (T === 0)
840
+ const v = a.isBuffer(e) ? e : a.from(e, o), S = v.length;
841
+ if (S === 0)
843
842
  throw new TypeError('The value "' + e + '" is invalid for argument "value"');
844
843
  for (p = 0; p < i - r; ++p)
845
- this[p + r] = v[p % T];
844
+ this[p + r] = v[p % S];
846
845
  }
847
846
  return this;
848
847
  };
@@ -905,8 +904,8 @@ function qt() {
905
904
  function We(t, e, r, i, o, p) {
906
905
  if (t > r || t < e) {
907
906
  const v = typeof e == "bigint" ? "n" : "";
908
- let T;
909
- throw e === 0 || e === BigInt(0) ? T = `>= 0${v} and < 2${v} ** ${(p + 1) * 8}${v}` : T = `>= -(2${v} ** ${(p + 1) * 8 - 1}${v}) and < 2 ** ${(p + 1) * 8 - 1}${v}`, new ce.ERR_OUT_OF_RANGE("value", T, t);
907
+ let S;
908
+ throw e === 0 || e === BigInt(0) ? S = `>= 0${v} and < 2${v} ** ${(p + 1) * 8}${v}` : S = `>= -(2${v} ** ${(p + 1) * 8 - 1}${v}) and < 2 ** ${(p + 1) * 8 - 1}${v}`, new ce.ERR_OUT_OF_RANGE("value", S, t);
910
909
  }
911
910
  It(i, o, p);
912
911
  }
@@ -988,7 +987,7 @@ function qt() {
988
987
  e.push(t.charCodeAt(r) & 255);
989
988
  return e;
990
989
  }
991
- function Tt(t, e) {
990
+ function St(t, e) {
992
991
  let r, i, o;
993
992
  const p = [];
994
993
  for (let v = 0; v < t.length && !((e -= 2) < 0); ++v)
@@ -1010,7 +1009,7 @@ function qt() {
1010
1009
  function Re(t) {
1011
1010
  return t !== t;
1012
1011
  }
1013
- const St = function() {
1012
+ const Tt = function() {
1014
1013
  const t = "0123456789abcdef", e = new Array(256);
1015
1014
  for (let r = 0; r < 16; ++r) {
1016
1015
  const i = r * 16;
@@ -1027,7 +1026,7 @@ function qt() {
1027
1026
  }
1028
1027
  }(ke)), ke;
1029
1028
  }
1030
- var Wt = qt();
1029
+ var qt = Qt();
1031
1030
  function f() {
1032
1031
  return f = Object.assign ? Object.assign.bind() : function(l) {
1033
1032
  for (var n = 1; n < arguments.length; n++) {
@@ -1037,7 +1036,7 @@ function f() {
1037
1036
  return l;
1038
1037
  }, f.apply(null, arguments);
1039
1038
  }
1040
- function S(l, n) {
1039
+ function T(l, n) {
1041
1040
  if (l == null) return {};
1042
1041
  var s = {};
1043
1042
  for (var c in l) if ({}.hasOwnProperty.call(l, c)) {
@@ -1046,14 +1045,14 @@ function S(l, n) {
1046
1045
  }
1047
1046
  return s;
1048
1047
  }
1049
- var rr = {}, tr = /* @__PURE__ */ Z(rr), Zt = (l, n) => f({}, l, n), zt = () => G(tr), Se = /* @__PURE__ */ Z(() => {
1048
+ var rr = {}, tr = /* @__PURE__ */ Z(rr), Wt = (l, n) => f({}, l, n), Zt = () => G(tr), Te = /* @__PURE__ */ Z(() => {
1050
1049
  });
1051
- Se.displayName = "JVR.DispatchShowTools";
1052
- function Gt() {
1053
- return de(Zt, rr);
1050
+ Te.displayName = "JVR.DispatchShowTools";
1051
+ function zt() {
1052
+ return de(Wt, rr);
1054
1053
  }
1055
1054
  function nr() {
1056
- return G(Se);
1055
+ return G(Te);
1057
1056
  }
1058
1057
  var ir = (l) => {
1059
1058
  var {
@@ -1063,20 +1062,20 @@ var ir = (l) => {
1063
1062
  } = l;
1064
1063
  return /* @__PURE__ */ g(tr.Provider, {
1065
1064
  value: n,
1066
- children: /* @__PURE__ */ g(Se.Provider, {
1065
+ children: /* @__PURE__ */ g(Te.Provider, {
1067
1066
  value: s,
1068
1067
  children: c
1069
1068
  })
1070
1069
  });
1071
1070
  };
1072
1071
  ir.displayName = "JVR.ShowTools";
1073
- var ar = {}, lr = /* @__PURE__ */ Z(ar), Ht = (l, n) => f({}, l, n), Be = () => G(lr), Fe = /* @__PURE__ */ Z(() => {
1072
+ var ar = {}, lr = /* @__PURE__ */ Z(ar), Gt = (l, n) => f({}, l, n), Be = () => G(lr), Fe = /* @__PURE__ */ Z(() => {
1074
1073
  });
1075
1074
  Fe.displayName = "JVR.DispatchExpands";
1076
- function Yt() {
1077
- return de(Ht, ar);
1075
+ function Ht() {
1076
+ return de(Gt, ar);
1078
1077
  }
1079
- function Xt() {
1078
+ function Yt() {
1080
1079
  return G(Fe);
1081
1080
  }
1082
1081
  var or = (l) => {
@@ -1214,13 +1213,13 @@ var sr = {
1214
1213
  className: "w-rjv-type",
1215
1214
  children: "date"
1216
1215
  }
1217
- }, ur = /* @__PURE__ */ Z(sr), en = (l, n) => f({}, l, n), A = () => G(ur), Le = /* @__PURE__ */ Z(() => {
1216
+ }, ur = /* @__PURE__ */ Z(sr), Xt = (l, n) => f({}, l, n), A = () => G(ur), Le = /* @__PURE__ */ Z(() => {
1218
1217
  });
1219
1218
  Le.displayName = "JVR.DispatchTypes";
1220
- function rn() {
1221
- return de(en, sr);
1219
+ function en() {
1220
+ return de(Xt, sr);
1222
1221
  }
1223
- function tn() {
1222
+ function rn() {
1224
1223
  return G(Le);
1225
1224
  }
1226
1225
  function cr(l) {
@@ -1238,11 +1237,11 @@ function cr(l) {
1238
1237
  });
1239
1238
  }
1240
1239
  cr.displayName = "JVR.Types";
1241
- var nn = ["style"];
1240
+ var tn = ["style"];
1242
1241
  function pr(l) {
1243
1242
  var {
1244
1243
  style: n
1245
- } = l, s = S(l, nn), c = f({
1244
+ } = l, s = T(l, tn), c = f({
1246
1245
  cursor: "pointer",
1247
1246
  height: "1em",
1248
1247
  width: "1em",
@@ -1328,13 +1327,13 @@ var yr = {
1328
1327
  className: "w-rjv-curlybraces-end",
1329
1328
  children: "}"
1330
1329
  }
1331
- }, dr = /* @__PURE__ */ Z(yr), an = (l, n) => f({}, l, n), K = () => G(dr), Ae = /* @__PURE__ */ Z(() => {
1330
+ }, dr = /* @__PURE__ */ Z(yr), nn = (l, n) => f({}, l, n), K = () => G(dr), Ae = /* @__PURE__ */ Z(() => {
1332
1331
  });
1333
1332
  Ae.displayName = "JVR.DispatchSymbols";
1334
- function ln() {
1335
- return de(an, yr);
1333
+ function an() {
1334
+ return de(nn, yr);
1336
1335
  }
1337
- function on() {
1336
+ function ln() {
1338
1337
  return G(Ae);
1339
1338
  }
1340
1339
  var fr = (l) => {
@@ -1397,13 +1396,13 @@ var hr = {
1397
1396
  as: "span",
1398
1397
  className: "w-rjv-object-key"
1399
1398
  }
1400
- }, vr = /* @__PURE__ */ Z(hr), sn = (l, n) => f({}, l, n), z = () => G(vr), Ve = /* @__PURE__ */ Z(() => {
1399
+ }, vr = /* @__PURE__ */ Z(hr), on = (l, n) => f({}, l, n), z = () => G(vr), Ve = /* @__PURE__ */ Z(() => {
1401
1400
  });
1402
1401
  Ve.displayName = "JVR.DispatchSection";
1403
- function un() {
1404
- return de(sn, hr);
1402
+ function sn() {
1403
+ return de(on, hr);
1405
1404
  }
1406
- function cn() {
1405
+ function un() {
1407
1406
  return G(Ve);
1408
1407
  }
1409
1408
  var mr = (l) => {
@@ -1429,7 +1428,7 @@ Ue.displayName = "JVR.Context";
1429
1428
  var xr = /* @__PURE__ */ Z(() => {
1430
1429
  });
1431
1430
  xr.displayName = "JVR.DispatchContext";
1432
- function pn(l, n) {
1431
+ function cn(l, n) {
1433
1432
  return f({}, l, n);
1434
1433
  }
1435
1434
  var se = () => G(Ue), gr = (l) => {
@@ -1437,7 +1436,7 @@ var se = () => G(Ue), gr = (l) => {
1437
1436
  children: n,
1438
1437
  initialState: s,
1439
1438
  initialTypes: c
1440
- } = l, [u, h] = de(pn, Object.assign({}, wr, s)), [y, a] = Gt(), [d, N] = Yt(), [m, w] = rn(), [B, x] = ln(), [E, C] = un();
1439
+ } = l, [u, h] = de(cn, Object.assign({}, wr, s)), [y, a] = zt(), [d, N] = Ht(), [m, w] = en(), [B, x] = an(), [E, C] = sn();
1441
1440
  return oe(() => h(f({}, s)), [s]), /* @__PURE__ */ g(Ue.Provider, {
1442
1441
  value: u,
1443
1442
  children: /* @__PURE__ */ g(xr.Provider, {
@@ -1467,10 +1466,10 @@ var se = () => G(Ue), gr = (l) => {
1467
1466
  });
1468
1467
  };
1469
1468
  gr.displayName = "JVR.Provider";
1470
- function yn(l) {
1469
+ function pn(l) {
1471
1470
  if (l == null) throw new TypeError("Cannot destructure " + l);
1472
1471
  }
1473
- var dn = ["isNumber", "value", "parentValue", "keyName", "keys"], fn = ["as", "render"], hn = ["as", "render"], vn = ["as", "render"], mn = ["as", "style", "render"], wn = ["as", "render"], xn = ["as", "render"], gn = ["as", "render"], Nn = ["as", "render"], be = (l) => {
1472
+ var yn = ["isNumber", "value", "parentValue", "keyName", "keys"], dn = ["as", "render"], fn = ["as", "render"], hn = ["as", "render"], vn = ["as", "style", "render"], mn = ["as", "render"], wn = ["as", "render"], xn = ["as", "render"], gn = ["as", "render"], be = (l) => {
1474
1473
  var {
1475
1474
  Quote: n = {}
1476
1475
  } = K(), {
@@ -1479,12 +1478,12 @@ var dn = ["isNumber", "value", "parentValue", "keyName", "keys"], fn = ["as", "r
1479
1478
  parentValue: u,
1480
1479
  keyName: h,
1481
1480
  keys: y
1482
- } = l, a = S(l, dn);
1481
+ } = l, a = T(l, yn);
1483
1482
  if (s) return null;
1484
1483
  var {
1485
1484
  as: d,
1486
1485
  render: N
1487
- } = n, m = S(n, fn), w = d || "span", B = f({}, a, m);
1486
+ } = n, m = T(n, dn), w = d || "span", B = f({}, a, m);
1488
1487
  if (typeof B.children == "string") {
1489
1488
  var x = B.children.trim();
1490
1489
  B.children = x || void 0;
@@ -1501,10 +1500,10 @@ be.displayName = "JVR.Quote";
1501
1500
  var we = (l) => {
1502
1501
  var {
1503
1502
  ValueQuote: n = {}
1504
- } = K(), s = f({}, (yn(l), l)), {
1503
+ } = K(), s = f({}, (pn(l), l)), {
1505
1504
  as: c,
1506
1505
  render: u
1507
- } = n, h = S(n, hn), y = c || "span", a = f({}, s, h), d = u && typeof u == "function" && u(a, {});
1506
+ } = n, h = T(n, fn), y = c || "span", a = f({}, s, h), d = u && typeof u == "function" && u(a, {});
1508
1507
  return d || /* @__PURE__ */ g(y, f({}, a));
1509
1508
  };
1510
1509
  we.displayName = "JVR.ValueQuote";
@@ -1519,7 +1518,7 @@ var Nr = (l) => {
1519
1518
  } = K(), {
1520
1519
  as: y,
1521
1520
  render: a
1522
- } = h, d = S(h, vn), N = y || "span", m = a && typeof a == "function" && a(d, {
1521
+ } = h, d = T(h, hn), N = y || "span", m = a && typeof a == "function" && a(d, {
1523
1522
  value: n,
1524
1523
  parentValue: s,
1525
1524
  keyName: c,
@@ -1542,7 +1541,7 @@ var Br = (l) => {
1542
1541
  as: m,
1543
1542
  style: w,
1544
1543
  render: B
1545
- } = n, x = S(n, mn), E = m || "span", C = B && typeof B == "function", R = f({}, x, {
1544
+ } = n, x = T(n, vn), E = m || "span", C = B && typeof B == "function", R = f({}, x, {
1546
1545
  "data-expanded": N,
1547
1546
  style: f({}, w, u)
1548
1547
  }), k = {
@@ -1576,13 +1575,13 @@ var Er = (l) => {
1576
1575
  var {
1577
1576
  as: N,
1578
1577
  render: m
1579
- } = y, w = S(y, wn), B = N || "span", x = m && typeof m == "function" && m(w, d);
1578
+ } = y, w = T(y, mn), B = N || "span", x = m && typeof m == "function" && m(w, d);
1580
1579
  return x || /* @__PURE__ */ g(B, f({}, w));
1581
1580
  }
1582
1581
  var {
1583
1582
  as: E,
1584
1583
  render: C
1585
- } = a, R = S(a, xn), k = E || "span", I = C && typeof C == "function" && C(R, d);
1584
+ } = a, R = T(a, wn), k = E || "span", I = C && typeof C == "function" && C(R, d);
1586
1585
  return I || /* @__PURE__ */ g(k, f({}, R));
1587
1586
  };
1588
1587
  Er.displayName = "JVR.BracketsOpen";
@@ -1609,13 +1608,13 @@ var De = (l) => {
1609
1608
  var {
1610
1609
  as: m,
1611
1610
  render: w
1612
- } = d, B = S(d, gn), x = m || "span", E = w && typeof w == "function" && w(B, a);
1611
+ } = d, B = T(d, xn), x = m || "span", E = w && typeof w == "function" && w(B, a);
1613
1612
  return E || /* @__PURE__ */ g(x, f({}, B));
1614
1613
  }
1615
1614
  var {
1616
1615
  as: C,
1617
1616
  render: R
1618
- } = N, k = S(N, Nn), I = C || "span", b = R && typeof R == "function" && R(k, a);
1617
+ } = N, k = T(N, gn), I = C || "span", b = R && typeof R == "function" && R(k, a);
1619
1618
  return b || /* @__PURE__ */ g(I, f({}, k));
1620
1619
  };
1621
1620
  De.displayName = "JVR.BracketsClose";
@@ -1663,7 +1662,7 @@ var Cr = (l) => {
1663
1662
  });
1664
1663
  };
1665
1664
  Cr.displayName = "JVR.NestedClose";
1666
- var Bn = ["as", "render"], En = ["as", "render"], Cn = ["as", "render"], Rn = ["as", "render"], In = ["as", "render"], kn = ["as", "render"], bn = ["as", "render"], jn = ["as", "render"], Tn = ["as", "render"], Sn = ["as", "render"], Fn = ["as", "render"], Ln = ["as", "render"], An = ["as", "render"], je = (l) => {
1665
+ var Nn = ["as", "render"], Bn = ["as", "render"], En = ["as", "render"], Cn = ["as", "render"], Rn = ["as", "render"], In = ["as", "render"], kn = ["as", "render"], bn = ["as", "render"], jn = ["as", "render"], Sn = ["as", "render"], Tn = ["as", "render"], Fn = ["as", "render"], Ln = ["as", "render"], je = (l) => {
1667
1666
  if (l === void 0)
1668
1667
  return "0n";
1669
1668
  if (typeof l == "string")
@@ -1685,7 +1684,7 @@ var Bn = ["as", "render"], En = ["as", "render"], Cn = ["as", "render"], Rn = ["
1685
1684
  var {
1686
1685
  as: y,
1687
1686
  render: a
1688
- } = c, d = S(c, Bn), N = a && typeof a == "function", m = N && a(d, {
1687
+ } = c, d = T(c, Nn), N = a && typeof a == "function", m = N && a(d, {
1689
1688
  type: "type",
1690
1689
  value: n,
1691
1690
  keyName: s
@@ -1707,7 +1706,7 @@ var Ir = (l) => {
1707
1706
  var {
1708
1707
  as: y,
1709
1708
  render: a
1710
- } = c, d = S(c, En), N = a && typeof a == "function", m = N && a(d, {
1709
+ } = c, d = T(c, Bn), N = a && typeof a == "function", m = N && a(d, {
1711
1710
  type: "type",
1712
1711
  value: n,
1713
1712
  keyName: s
@@ -1734,7 +1733,7 @@ var H = {
1734
1733
  } = se(), {
1735
1734
  as: d,
1736
1735
  render: N
1737
- } = u, m = S(u, Cn), w = n, [B, x] = Xe(y && w.length > y);
1736
+ } = u, m = T(u, En), w = n, [B, x] = Xe(y && w.length > y);
1738
1737
  oe(() => x(y && w.length > y), [y]);
1739
1738
  var E = d || "span", C = f({}, H, u.style || {});
1740
1739
  y > 0 && (m.style = f({}, m.style, {
@@ -1781,7 +1780,7 @@ var br = (l) => {
1781
1780
  } = A(), {
1782
1781
  as: y,
1783
1782
  render: a
1784
- } = u, d = S(u, Rn), N = y || "span", m = f({}, H, u.style || {}), w = a && typeof a == "function", B = w && a(f({}, d, {
1783
+ } = u, d = T(u, Cn), N = y || "span", m = f({}, H, u.style || {}), w = a && typeof a == "function", B = w && a(f({}, d, {
1785
1784
  style: m
1786
1785
  }), {
1787
1786
  type: "type",
@@ -1818,7 +1817,7 @@ var jr = (l) => {
1818
1817
  } = A(), {
1819
1818
  as: y,
1820
1819
  render: a
1821
- } = u, d = S(u, In), N = y || "span", m = f({}, H, u.style || {}), w = a && typeof a == "function", B = w && a(f({}, d, {
1820
+ } = u, d = T(u, Rn), N = y || "span", m = f({}, H, u.style || {}), w = a && typeof a == "function", B = w && a(f({}, d, {
1822
1821
  style: m
1823
1822
  }), {
1824
1823
  type: "type",
@@ -1844,7 +1843,7 @@ var jr = (l) => {
1844
1843
  });
1845
1844
  };
1846
1845
  jr.displayName = "JVR.TypeFalse";
1847
- var Tr = (l) => {
1846
+ var Sr = (l) => {
1848
1847
  var {
1849
1848
  children: n,
1850
1849
  keyName: s,
@@ -1855,7 +1854,7 @@ var Tr = (l) => {
1855
1854
  } = A(), {
1856
1855
  as: y,
1857
1856
  render: a
1858
- } = u, d = S(u, kn), N = y || "span", m = f({}, H, u.style || {}), w = a && typeof a == "function", B = w && a(f({}, d, {
1857
+ } = u, d = T(u, In), N = y || "span", m = f({}, H, u.style || {}), w = a && typeof a == "function", B = w && a(f({}, d, {
1859
1858
  style: m
1860
1859
  }), {
1861
1860
  type: "type",
@@ -1880,8 +1879,8 @@ var Tr = (l) => {
1880
1879
  }))]
1881
1880
  });
1882
1881
  };
1883
- Tr.displayName = "JVR.TypeFloat";
1884
- var Sr = (l) => {
1882
+ Sr.displayName = "JVR.TypeFloat";
1883
+ var Tr = (l) => {
1885
1884
  var {
1886
1885
  children: n,
1887
1886
  keyName: s,
@@ -1892,7 +1891,7 @@ var Sr = (l) => {
1892
1891
  } = A(), {
1893
1892
  as: y,
1894
1893
  render: a
1895
- } = u, d = S(u, bn), N = y || "span", m = f({}, H, u.style || {}), w = a && typeof a == "function", B = w && a(f({}, d, {
1894
+ } = u, d = T(u, kn), N = y || "span", m = f({}, H, u.style || {}), w = a && typeof a == "function", B = w && a(f({}, d, {
1896
1895
  style: m
1897
1896
  }), {
1898
1897
  type: "type",
@@ -1917,7 +1916,7 @@ var Sr = (l) => {
1917
1916
  }))]
1918
1917
  });
1919
1918
  };
1920
- Sr.displayName = "JVR.TypeInt";
1919
+ Tr.displayName = "JVR.TypeInt";
1921
1920
  var Fr = (l) => {
1922
1921
  var {
1923
1922
  children: n,
@@ -1929,7 +1928,7 @@ var Fr = (l) => {
1929
1928
  } = A(), {
1930
1929
  as: y,
1931
1930
  render: a
1932
- } = u, d = S(u, jn), N = y || "span", m = f({}, H, u.style || {}), w = a && typeof a == "function", B = w && a(f({}, d, {
1931
+ } = u, d = T(u, bn), N = y || "span", m = f({}, H, u.style || {}), w = a && typeof a == "function", B = w && a(f({}, d, {
1933
1932
  style: m
1934
1933
  }), {
1935
1934
  type: "type",
@@ -1966,7 +1965,7 @@ var Lr = (l) => {
1966
1965
  } = A(), {
1967
1966
  as: y,
1968
1967
  render: a
1969
- } = u, d = S(u, Tn), N = y || "span", m = f({}, H, u.style), w = a && typeof a == "function", B = w && a(f({}, d, {
1968
+ } = u, d = T(u, jn), N = y || "span", m = f({}, H, u.style), w = a && typeof a == "function", B = w && a(f({}, d, {
1970
1969
  style: m
1971
1970
  }), {
1972
1971
  type: "type",
@@ -2006,7 +2005,7 @@ var Ar = (l) => {
2006
2005
  } = A(), {
2007
2006
  as: y,
2008
2007
  render: a
2009
- } = u, d = S(u, Sn), N = y || "span", m = f({}, H, u.style || {}), w = a && typeof a == "function", B = w && a(f({}, d, {
2008
+ } = u, d = T(u, Sn), N = y || "span", m = f({}, H, u.style || {}), w = a && typeof a == "function", B = w && a(f({}, d, {
2010
2009
  style: m
2011
2010
  }), {
2012
2011
  type: "type",
@@ -2043,7 +2042,7 @@ var Vr = (l) => {
2043
2042
  } = A(), {
2044
2043
  as: y,
2045
2044
  render: a
2046
- } = u, d = S(u, Fn), N = y || "span", m = f({}, H, u.style || {}), w = a && typeof a == "function", B = w && a(f({}, d, {
2045
+ } = u, d = T(u, Tn), N = y || "span", m = f({}, H, u.style || {}), w = a && typeof a == "function", B = w && a(f({}, d, {
2047
2046
  style: m
2048
2047
  }), {
2049
2048
  type: "type",
@@ -2077,7 +2076,7 @@ var Ur = (l) => {
2077
2076
  } = A(), {
2078
2077
  as: y,
2079
2078
  render: a
2080
- } = u, d = S(u, Ln), N = y || "span", m = f({}, H, u.style || {}), w = a && typeof a == "function", B = w && a(f({}, d, {
2079
+ } = u, d = T(u, Fn), N = y || "span", m = f({}, H, u.style || {}), w = a && typeof a == "function", B = w && a(f({}, d, {
2081
2080
  style: m
2082
2081
  }), {
2083
2082
  type: "type",
@@ -2111,7 +2110,7 @@ var Dr = (l) => {
2111
2110
  } = A(), {
2112
2111
  as: y,
2113
2112
  render: a
2114
- } = u, d = S(u, An), N = y || "span", m = f({}, H, u.style || {}), w = a && typeof a == "function", B = w && a(f({}, d, {
2113
+ } = u, d = T(u, Ln), N = y || "span", m = f({}, H, u.style || {}), w = a && typeof a == "function", B = w && a(f({}, d, {
2115
2114
  style: m
2116
2115
  }), {
2117
2116
  type: "type",
@@ -2134,7 +2133,7 @@ var Dr = (l) => {
2134
2133
  });
2135
2134
  };
2136
2135
  Dr.displayName = "JVR.TypeNan";
2137
- var Vn = (l) => Number(l) === l && l % 1 !== 0 || isNaN(l), Jr = (l) => {
2136
+ var An = (l) => Number(l) === l && l % 1 !== 0 || isNaN(l), Jr = (l) => {
2138
2137
  var {
2139
2138
  value: n,
2140
2139
  keyName: s,
@@ -2159,17 +2158,17 @@ var Vn = (l) => Number(l) === l && l % 1 !== 0 || isNaN(l), Jr = (l) => {
2159
2158
  children: n
2160
2159
  })) : typeof n == "number" && isNaN(n) ? /* @__PURE__ */ g(Dr, f({}, u, {
2161
2160
  children: n
2162
- })) : typeof n == "number" && Vn(n) ? /* @__PURE__ */ g(Tr, f({}, u, {
2161
+ })) : typeof n == "number" && An(n) ? /* @__PURE__ */ g(Sr, f({}, u, {
2163
2162
  children: n
2164
2163
  })) : typeof n == "bigint" ? /* @__PURE__ */ g(Fr, f({}, u, {
2165
2164
  children: n
2166
- })) : typeof n == "number" ? /* @__PURE__ */ g(Sr, f({}, u, {
2165
+ })) : typeof n == "number" ? /* @__PURE__ */ g(Tr, f({}, u, {
2167
2166
  children: n
2168
2167
  })) : null;
2169
2168
  };
2170
2169
  Jr.displayName = "JVR.Value";
2171
2170
  function ne(l, n, s) {
2172
- var c = on(), u = [l.className, n.className].filter(Boolean).join(" "), h = f({}, l, n, {
2171
+ var c = ln(), u = [l.className, n.className].filter(Boolean).join(" "), h = f({}, l, n, {
2173
2172
  className: u,
2174
2173
  style: f({}, l.style, n.style),
2175
2174
  children: n.children || l.children
@@ -2179,7 +2178,7 @@ function ne(l, n, s) {
2179
2178
  }), [n]);
2180
2179
  }
2181
2180
  function q(l, n, s) {
2182
- var c = tn(), u = [l.className, n.className].filter(Boolean).join(" "), h = f({}, l, n, {
2181
+ var c = rn(), u = [l.className, n.className].filter(Boolean).join(" "), h = f({}, l, n, {
2183
2182
  className: u,
2184
2183
  style: f({}, l.style, n.style),
2185
2184
  children: n.children || l.children
@@ -2189,7 +2188,7 @@ function q(l, n, s) {
2189
2188
  }), [n]);
2190
2189
  }
2191
2190
  function fe(l, n, s) {
2192
- var c = cn(), u = [l.className, n.className].filter(Boolean).join(" "), h = f({}, l, n, {
2191
+ var c = un(), u = [l.className, n.className].filter(Boolean).join(" "), h = f({}, l, n, {
2193
2192
  className: u,
2194
2193
  style: f({}, l.style, n.style),
2195
2194
  children: n.children || l.children
@@ -2198,7 +2197,7 @@ function fe(l, n, s) {
2198
2197
  [s]: h
2199
2198
  }), [n]);
2200
2199
  }
2201
- var Un = ["as", "render"], _r = (l) => {
2200
+ var Vn = ["as", "render"], _r = (l) => {
2202
2201
  var {
2203
2202
  KeyName: n = {}
2204
2203
  } = z();
@@ -2219,7 +2218,7 @@ var Mr = (l) => {
2219
2218
  } = z(), {
2220
2219
  as: N,
2221
2220
  render: m
2222
- } = d, w = S(d, Un);
2221
+ } = d, w = T(d, Vn);
2223
2222
  w.style = f({}, w.style, a);
2224
2223
  var B = N || "span", x = m && typeof m == "function" && m(f({}, w, {
2225
2224
  children: n
@@ -2234,7 +2233,7 @@ var Mr = (l) => {
2234
2233
  }));
2235
2234
  };
2236
2235
  Mr.displayName = "JVR.KeyNameComp";
2237
- var Dn = ["children", "value", "parentValue", "keyName", "keys"], Jn = ["as", "render", "children"], $r = (l) => {
2236
+ var Un = ["children", "value", "parentValue", "keyName", "keys"], Dn = ["as", "render", "children"], $r = (l) => {
2238
2237
  var {
2239
2238
  Row: n = {}
2240
2239
  } = z();
@@ -2248,12 +2247,12 @@ var Pr = (l) => {
2248
2247
  parentValue: c,
2249
2248
  keyName: u,
2250
2249
  keys: h
2251
- } = l, y = S(l, Dn), {
2250
+ } = l, y = T(l, Un), {
2252
2251
  Row: a = {}
2253
2252
  } = z(), {
2254
2253
  as: d,
2255
2254
  render: N
2256
- } = a, m = S(a, Jn), w = d || "div", B = N && typeof N == "function" && N(f({}, y, m, {
2255
+ } = a, m = T(a, Dn), w = d || "div", B = N && typeof N == "function" && N(f({}, y, m, {
2257
2256
  children: n
2258
2257
  }), {
2259
2258
  value: s,
@@ -2266,18 +2265,18 @@ var Pr = (l) => {
2266
2265
  }));
2267
2266
  };
2268
2267
  Pr.displayName = "JVR.RowComp";
2269
- function _n(l) {
2270
- var n = Te();
2268
+ function Jn(l) {
2269
+ var n = Se();
2271
2270
  return oe(() => {
2272
2271
  n.current = l;
2273
2272
  }), n.current;
2274
2273
  }
2275
- function Mn(l) {
2274
+ function _n(l) {
2276
2275
  var {
2277
2276
  value: n,
2278
2277
  highlightUpdates: s,
2279
2278
  highlightContainer: c
2280
- } = l, u = _n(n), h = Mt(() => {
2279
+ } = l, u = Jn(n), h = Mt(() => {
2281
2280
  if (!s || u === void 0) return !1;
2282
2281
  if (typeof n != typeof u)
2283
2282
  return !0;
@@ -2301,7 +2300,7 @@ function Mn(l) {
2301
2300
  });
2302
2301
  }, [h, n, c]);
2303
2302
  }
2304
- var $n = ["keyName", "value", "parentValue", "expandKey", "keys", "beforeCopy"], Pn = ["as", "render"], Je = (l) => {
2303
+ var Mn = ["keyName", "value", "parentValue", "expandKey", "keys", "beforeCopy"], $n = ["as", "render"], Je = (l) => {
2305
2304
  var {
2306
2305
  keyName: n,
2307
2306
  value: s,
@@ -2309,11 +2308,11 @@ var $n = ["keyName", "value", "parentValue", "expandKey", "keys", "beforeCopy"],
2309
2308
  expandKey: u,
2310
2309
  keys: h,
2311
2310
  beforeCopy: y
2312
- } = l, a = S(l, $n), {
2311
+ } = l, a = T(l, Mn), {
2313
2312
  onCopied: d,
2314
2313
  enableClipboard: N,
2315
2314
  beforeCopy: m
2316
- } = se(), w = zt(), B = w[u], [x, E] = Xe(!1), {
2315
+ } = se(), w = Zt(), B = w[u], [x, E] = Xe(!1), {
2317
2316
  Copied: C = {}
2318
2317
  } = z(), R = C?.beforeCopy;
2319
2318
  if (N === !1 || !B) return null;
@@ -2345,7 +2344,7 @@ var $n = ["keyName", "value", "parentValue", "expandKey", "keys", "beforeCopy"],
2345
2344
  onClick: k
2346
2345
  }, {
2347
2346
  render: b
2348
- } = C, U = S(C, Pn), j = f({}, U, a, I, {
2347
+ } = C, U = T(C, $n), j = f({}, U, a, I, {
2349
2348
  style: f({}, U.style, a.style, I.style)
2350
2349
  }), $ = b && typeof b == "function", W = $ && b(f({}, j, {
2351
2350
  "data-copied": x
@@ -2371,7 +2370,7 @@ var $n = ["keyName", "value", "parentValue", "expandKey", "keys", "beforeCopy"],
2371
2370
  };
2372
2371
  Je.displayName = "JVR.Copied";
2373
2372
  function Or() {
2374
- var l = Te(null);
2373
+ var l = Se(null);
2375
2374
  return l.current === null && (l.current = "custom-id-" + Math.random().toString(36).substr(2, 9)), l.current;
2376
2375
  }
2377
2376
  var Kr = (l) => {
@@ -2438,8 +2437,8 @@ var _e = (l) => {
2438
2437
  value: u
2439
2438
  } = l, {
2440
2439
  highlightUpdates: h
2441
- } = se(), y = typeof n == "number", a = Te(null);
2442
- Mn({
2440
+ } = se(), y = typeof n == "number", a = Se(null);
2441
+ _n({
2443
2442
  value: u,
2444
2443
  highlightUpdates: h,
2445
2444
  highlightContainer: a
@@ -2519,7 +2518,7 @@ var Qr = (l) => {
2519
2518
  }));
2520
2519
  };
2521
2520
  Qr.displayName = "JVR.KeyValuesItem";
2522
- var On = ["value", "keyName"], Kn = ["as", "render"], qr = (l) => {
2521
+ var Pn = ["value", "keyName"], On = ["as", "render"], qr = (l) => {
2523
2522
  var {
2524
2523
  CountInfoExtra: n = {}
2525
2524
  } = z();
@@ -2530,12 +2529,12 @@ var Wr = (l) => {
2530
2529
  var {
2531
2530
  value: n = {},
2532
2531
  keyName: s
2533
- } = l, c = S(l, On), {
2532
+ } = l, c = T(l, Pn), {
2534
2533
  CountInfoExtra: u = {}
2535
2534
  } = z(), {
2536
2535
  as: h,
2537
2536
  render: y
2538
- } = u, a = S(u, Kn);
2537
+ } = u, a = T(u, On);
2539
2538
  if (!y && !a.children) return null;
2540
2539
  var d = h || "span", N = y && typeof y == "function", m = f({}, a, c), w = N && y(m, {
2541
2540
  value: n,
@@ -2544,7 +2543,7 @@ var Wr = (l) => {
2544
2543
  return w || /* @__PURE__ */ g(d, f({}, m));
2545
2544
  };
2546
2545
  Wr.displayName = "JVR.CountInfoExtraComps";
2547
- var Qn = ["value", "keyName"], qn = ["as", "render"], Zr = (l) => {
2546
+ var Kn = ["value", "keyName"], Qn = ["as", "render"], Zr = (l) => {
2548
2547
  var {
2549
2548
  CountInfo: n = {}
2550
2549
  } = z();
@@ -2555,7 +2554,7 @@ var zr = (l) => {
2555
2554
  var {
2556
2555
  value: n = {},
2557
2556
  keyName: s
2558
- } = l, c = S(l, Qn), {
2557
+ } = l, c = T(l, Kn), {
2559
2558
  displayObjectSize: u
2560
2559
  } = se(), {
2561
2560
  CountInfo: h = {}
@@ -2564,7 +2563,7 @@ var zr = (l) => {
2564
2563
  var {
2565
2564
  as: y,
2566
2565
  render: a
2567
- } = h, d = S(h, qn), N = y || "span";
2566
+ } = h, d = T(h, Qn), N = y || "span";
2568
2567
  d.style = f({}, d.style, l.style);
2569
2568
  var m = Object.keys(n).length;
2570
2569
  d.children || (d.children = m + " item" + (m === 1 ? "" : "s"));
@@ -2577,7 +2576,7 @@ var zr = (l) => {
2577
2576
  return x || /* @__PURE__ */ g(N, f({}, w));
2578
2577
  };
2579
2578
  zr.displayName = "JVR.CountInfoComp";
2580
- var Wn = ["as", "render"], Gr = (l) => {
2579
+ var qn = ["as", "render"], Gr = (l) => {
2581
2580
  var {
2582
2581
  Ellipsis: n = {}
2583
2582
  } = z();
@@ -2594,7 +2593,7 @@ var Hr = (l) => {
2594
2593
  } = z(), {
2595
2594
  as: h,
2596
2595
  render: y
2597
- } = u, a = S(u, Wn), d = h || "span", N = y && typeof y == "function" && y(f({}, a, {
2596
+ } = u, a = T(u, qn), d = h || "span", N = y && typeof y == "function" && y(f({}, a, {
2598
2597
  "data-expanded": n
2599
2598
  }), {
2600
2599
  value: s,
@@ -2612,7 +2611,7 @@ var Yr = (l) => {
2612
2611
  value: y,
2613
2612
  parentValue: a,
2614
2613
  level: d
2615
- } = l, N = Be(), m = Xt(), {
2614
+ } = l, N = Be(), m = Yt(), {
2616
2615
  onExpand: w,
2617
2616
  collapsed: B,
2618
2617
  shouldExpandNodeInitially: x
@@ -2685,7 +2684,7 @@ var Yr = (l) => {
2685
2684
  }));
2686
2685
  };
2687
2686
  Yr.displayName = "JVR.NestedOpen";
2688
- var Zn = ["className", "children", "parentValue", "keyid", "level", "value", "initialValue", "keys", "keyName"], Me = /* @__PURE__ */ er((l, n) => {
2687
+ var Wn = ["className", "children", "parentValue", "keyid", "level", "value", "initialValue", "keys", "keyName"], Me = /* @__PURE__ */ er((l, n) => {
2689
2688
  var {
2690
2689
  className: s = "",
2691
2690
  parentValue: c,
@@ -2694,7 +2693,7 @@ var Zn = ["className", "children", "parentValue", "keyid", "level", "value", "in
2694
2693
  initialValue: y,
2695
2694
  keys: a,
2696
2695
  keyName: d
2697
- } = l, N = S(l, Zn), m = nr(), w = Or(), B = [s, "w-rjv-inner"].filter(Boolean).join(" "), x = {
2696
+ } = l, N = T(l, Wn), m = nr(), w = Or(), B = [s, "w-rjv-inner"].filter(Boolean).join(" "), x = {
2698
2697
  onMouseEnter: () => m({
2699
2698
  [w]: !0
2700
2699
  }),
@@ -2886,7 +2885,7 @@ var gt = (l) => {
2886
2885
  return fe(n, l, "Copied"), null;
2887
2886
  };
2888
2887
  gt.displayName = "JVR.Copied";
2889
- var zn = ["className", "style", "value", "children", "collapsed", "shouldExpandNodeInitially", "indentWidth", "displayObjectSize", "shortenTextAfterLength", "stringEllipsis", "highlightUpdates", "enableClipboard", "displayDataTypes", "objectSortKeys", "onExpand", "onCopied", "beforeCopy"], F = /* @__PURE__ */ er((l, n) => {
2888
+ var Zn = ["className", "style", "value", "children", "collapsed", "shouldExpandNodeInitially", "indentWidth", "displayObjectSize", "shortenTextAfterLength", "stringEllipsis", "highlightUpdates", "enableClipboard", "displayDataTypes", "objectSortKeys", "onExpand", "onCopied", "beforeCopy"], F = /* @__PURE__ */ er((l, n) => {
2890
2889
  var {
2891
2890
  className: s = "",
2892
2891
  style: c,
@@ -2905,7 +2904,7 @@ var zn = ["className", "style", "value", "children", "collapsed", "shouldExpandN
2905
2904
  onExpand: R,
2906
2905
  onCopied: k,
2907
2906
  beforeCopy: I
2908
- } = l, b = S(l, zn), U = f({
2907
+ } = l, b = T(l, Zn), U = f({
2909
2908
  lineHeight: 1.4,
2910
2909
  fontFamily: "var(--w-rjv-font-family, Menlo, monospace)",
2911
2910
  color: "var(--w-rjv-color, #002b36)",
@@ -2968,7 +2967,7 @@ F.CountInfoExtra = qr;
2968
2967
  F.KeyName = _r;
2969
2968
  F.Row = $r;
2970
2969
  F.displayName = "JVR.JsonView";
2971
- const Gn = {
2970
+ const zn = {
2972
2971
  // Structural
2973
2972
  "--w-rjv-font-family": _t,
2974
2973
  "--w-rjv-color": ze,
@@ -3003,16 +3002,23 @@ const Gn = {
3003
3002
  "--w-rjv-copied-color": ye,
3004
3003
  "--w-rjv-copied-success-color": Ie
3005
3004
  };
3006
- function Hn({ data: l }) {
3005
+ function Gn({ data: l }) {
3007
3006
  return l ? /* @__PURE__ */ g(
3008
3007
  F,
3009
3008
  {
3010
3009
  value: l,
3011
- style: Gn
3010
+ style: zn
3012
3011
  }
3013
3012
  ) : null;
3014
3013
  }
3015
- function li({
3014
+ function Hn(l) {
3015
+ try {
3016
+ return [JSON.parse(l), void 0];
3017
+ } catch (n) {
3018
+ return console.warn("Failed to parse JSON string:", l, "Error:", n), [void 0, n];
3019
+ }
3020
+ }
3021
+ function ai({
3016
3022
  content: l,
3017
3023
  encoding: n,
3018
3024
  mimeType: s
@@ -3028,10 +3034,10 @@ function li({
3028
3034
  }
3029
3035
  );
3030
3036
  let u = Pt(s), h = l;
3031
- if (n === "base64" && (h = Wt.Buffer.from(l, n).toString("utf8")), c === "JSON") {
3032
- const [y, a] = Ot(h);
3037
+ if (n === "base64" && (h = qt.Buffer.from(l, n).toString("utf8")), c === "JSON") {
3038
+ const [y, a] = Hn(h);
3033
3039
  if (!a)
3034
- return /* @__PURE__ */ g(Hn, { data: y });
3040
+ return /* @__PURE__ */ g(Gn, { data: y });
3035
3041
  u = void 0;
3036
3042
  }
3037
3043
  return /* @__PURE__ */ g(
@@ -3046,5 +3052,5 @@ function li({
3046
3052
  );
3047
3053
  }
3048
3054
  export {
3049
- li as default
3055
+ ai as default
3050
3056
  };