@blockend/widget 1.0.61-beta.1 → 1.0.61-beta.2

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 (111) hide show
  1. package/dist/{AdvancedSettings-BSHVKOx8.js → AdvancedSettings-DMVTMB1Z.js} +17 -17
  2. package/dist/{AllRoutes-3rJ_6MZA.js → AllRoutes-DIWsY_7s.js} +201 -198
  3. package/dist/{Box-k1E75YNB.js → Box-CSkOh5pT.js} +1 -1
  4. package/dist/{EstGas-NmdlnuTV.js → EstGas-D0lMj040.js} +377 -370
  5. package/dist/{Grow-DHSmig3g.js → Grow-DArf5BOf.js} +196 -192
  6. package/dist/{InputComp-Q8pjLoPE.js → InputComp-BpwhlO5B.js} +3 -3
  7. package/dist/{LoadRoute-C2z-mW9G.js → LoadRoute-Dqk83p2o.js} +4 -4
  8. package/dist/{QuotesProgress-BD5CQpZ-.js → QuotesProgress-D-bhAdY6.js} +1 -1
  9. package/dist/{SwapAsset-Kx0ombNP.js → SwapAsset-CeJghqM4.js} +1 -1
  10. package/dist/{Tooltip-Dx9YIENU.js → Tooltip-Bo6E3Ppn.js} +9 -6
  11. package/dist/{TxnButton-CWOz7URH.js → TxnButton-06UcI8vZ.js} +65 -62
  12. package/dist/{add-D_aca-vE.js → add-CnnoTaOE.js} +1 -1
  13. package/dist/{all-wallets-D4BSWfpK.js → all-wallets-77I8A1dR.js} +1 -1
  14. package/dist/{app-store-ST0Ravfg.js → app-store-BHbNWU5O.js} +1 -1
  15. package/dist/{apple-DaFtNkdI.js → apple-BUqoJ3h4.js} +1 -1
  16. package/dist/{arrow-bottom-CuRXWFcr.js → arrow-bottom-BKIkvLUW.js} +1 -1
  17. package/dist/{arrow-bottom-circle-xfTEwf8w.js → arrow-bottom-circle-CmtY1Go0.js} +1 -1
  18. package/dist/{arrow-left-Z346mTvE.js → arrow-left-B1RmdyFf.js} +1 -1
  19. package/dist/{arrow-right-CUIO0t26.js → arrow-right-DAGdMwrS.js} +1 -1
  20. package/dist/{arrow-top-DmqPBsC5.js → arrow-top-DL8aloED.js} +1 -1
  21. package/dist/{bank-BO1ZejV3.js → bank-Cho2fj04.js} +1 -1
  22. package/dist/{basic-P5IuMVWt.js → basic-Hq9EE7JN.js} +4 -4
  23. package/dist/{browser-R_yTVBVl.js → browser-B1tFXGo3.js} +1 -1
  24. package/dist/{card-CmQJzq49.js → card-CAIekfsW.js} +1 -1
  25. package/dist/{ccip-Vdbs2YPx.js → ccip-CQW-OT50.js} +1 -1
  26. package/dist/{checkmark-BUj82mTz.js → checkmark-CMNFl8gr.js} +1 -1
  27. package/dist/{checkmark-bold-4sXAvyEi.js → checkmark-bold-jZ_-Wln9.js} +1 -1
  28. package/dist/{chevron-bottom-BHRgOLsC.js → chevron-bottom-BXlfv0v_.js} +1 -1
  29. package/dist/{chevron-left-eVq5zb9x.js → chevron-left-CR6Vk7-R.js} +1 -1
  30. package/dist/{chevron-right-BqbdhgX8.js → chevron-right-CK7kmFE0.js} +1 -1
  31. package/dist/{chevron-top-lFcz1Dk9.js → chevron-top-5bB353uT.js} +1 -1
  32. package/dist/{chrome-store-CJjs0q6Z.js → chrome-store-3zRMRPZ3.js} +1 -1
  33. package/dist/{clock-LxWBSJ_V.js → clock-C9VfcQU_.js} +1 -1
  34. package/dist/{close-CJEyeA8d.js → close-Dp60_0UW.js} +1 -1
  35. package/dist/{coinPlaceholder-A0px2L1V.js → coinPlaceholder-B9q-Q9nc.js} +1 -1
  36. package/dist/{compass-CKpEE3QF.js → compass-D1YdDLDZ.js} +1 -1
  37. package/dist/{copy-BGAVbyLK.js → copy-wpPbMuG7.js} +1 -1
  38. package/dist/{core-UMj0YuPY.js → core-f2H2Z9Sf.js} +390 -324
  39. package/dist/{cursor-CdRK37lV.js → cursor-BGD-Vp6U.js} +1 -1
  40. package/dist/{cursor-transparent-DCtZPn6M.js → cursor-transparent-Df_S-DGP.js} +1 -1
  41. package/dist/{desktop-BpmiexI7.js → desktop-xGzb89jl.js} +1 -1
  42. package/dist/{disconnect-CmRL6rxR.js → disconnect-C-l5x3f5.js} +1 -1
  43. package/dist/{discord-CgA8etyT.js → discord-BMihtS7L.js} +1 -1
  44. package/dist/{down-veMPztmj.js → down-IP3JFhRv.js} +4 -3
  45. package/dist/{etherscan-B0Iz4J9k.js → etherscan-BIDZ39Go.js} +1 -1
  46. package/dist/{exclamation-triangle-Box_8laE.js → exclamation-triangle-DtY9538O.js} +1 -1
  47. package/dist/{extension-CT5kynXr.js → extension-nyPuSGEb.js} +1 -1
  48. package/dist/{external-link-BmAqCUs9.js → external-link-CWQ6mRkJ.js} +1 -1
  49. package/dist/{facebook-CzlMPtlk.js → facebook-C9YV_9Ud.js} +1 -1
  50. package/dist/{farcaster-Z3KYAnFk.js → farcaster-Bk5tC5cR.js} +1 -1
  51. package/dist/{filters-CVtviD0v.js → filters-Boj-Safw.js} +1 -1
  52. package/dist/{getChainIds-DDKgS0TA.js → getChainIds-DVwNZAc5.js} +6 -4
  53. package/dist/{getCosmosAddress-D-BxI1sZ.js → getCosmosAddress-DGjk1iF-.js} +160 -158
  54. package/dist/{github-KjnPjzGN.js → github-CqlLNrtO.js} +1 -1
  55. package/dist/{google-CnyCazMS.js → google-DWRbHt_B.js} +1 -1
  56. package/dist/{hamburger-DkyOLKDt.js → hamburger-CCqMn9nd.js} +436 -427
  57. package/dist/{help-circle-BoN3xTWx.js → help-circle-Cv5722_F.js} +1 -1
  58. package/dist/{id-tq8aEw5U.js → id-BpuE8i1h.js} +1 -1
  59. package/dist/{image-DBC1q2_n.js → image-BLabe1u_.js} +1 -1
  60. package/dist/{index-BMJemt0T.js → index-3TDndzHy.js} +1 -1
  61. package/dist/{index-nbo2VFYc.js → index-B7xlfFYR.js} +4 -4
  62. package/dist/{index-37soHOzC.js → index-BMaOhhWB.js} +2 -2
  63. package/dist/{index-u8Ded5qw.js → index-Bf3Fkna6.js} +32 -18
  64. package/dist/{index-DTish3yr.js → index-Bl2UpALc.js} +3 -1
  65. package/dist/{index-B6Hd7MNh.js → index-BmPN76Lg.js} +5105 -5033
  66. package/dist/{index-DwgdKTri.js → index-C0l8Ijyj.js} +1 -1
  67. package/dist/{index-C57ebjbd.js → index-DIsRIvWS.js} +78 -78
  68. package/dist/{index-BnfXeC9U.js → index-DtPZUylH.js} +32 -21
  69. package/dist/{index-CrdvyxIs.js → index-X1wa5bpP.js} +19 -14
  70. package/dist/{index-BrUFU9w4.js → index-a8BP6V0o.js} +1151 -1134
  71. package/dist/{index-Dq-7CifU.js → index-lJKy2Bhi.js} +162 -161
  72. package/dist/{index.es-CXA8FwxC.js → index.es-BvE3zZVY.js} +978 -958
  73. package/dist/{index.es-CwOZPtUM.js → index.es-DLS0SSoV.js} +1 -1
  74. package/dist/index.es.js +1 -1
  75. package/dist/{info-B-ADkq2O.js → info-BROBzEn3.js} +1 -1
  76. package/dist/{info-circle-CzjFim13.js → info-circle-BhnTaYwQ.js} +1 -1
  77. package/dist/{lightbulb-BzGUazBJ.js → lightbulb-BMm8pAvQ.js} +1 -1
  78. package/dist/{mail-CEB7w3xW.js → mail-BBH0_xPX.js} +1 -1
  79. package/dist/{mobile-D2As9Lxy.js → mobile-BKmYB0js.js} +1 -1
  80. package/dist/{more-B3qgSPHK.js → more-BgKFZ5_N.js} +1 -1
  81. package/dist/{network-placeholder-D3v1VNVd.js → network-placeholder-Bx4Pd_VA.js} +1 -1
  82. package/dist/{nftPlaceholder-7uzR-QgE.js → nftPlaceholder-CjhjYlRs.js} +1 -1
  83. package/dist/{off-B5fhwDTB.js → off-CNWZ7rAK.js} +1 -1
  84. package/dist/{play-store-fmnI2qeP.js → play-store-CLp2fzCO.js} +1 -1
  85. package/dist/{plus-BPrwB2BV.js → plus-BUG6XdxV.js} +1 -1
  86. package/dist/{qr-code-DRh63vJj.js → qr-code-C-JVP33d.js} +1 -1
  87. package/dist/{recycle-horizontal-DGw86E5g.js → recycle-horizontal-C0QxOqzM.js} +1 -1
  88. package/dist/{refresh-Dg7iaYhB.js → refresh-CyabrC0p.js} +1 -1
  89. package/dist/{reown-logo-tiOXXURu.js → reown-logo-ULFpSpZD.js} +1 -1
  90. package/dist/{search-eG23Hr6c.js → search-CzhkDgzL.js} +1 -1
  91. package/dist/{send-BOwE6eLM.js → send-3zcoBLqV.js} +1 -1
  92. package/dist/{swapHorizontal-ywv205Wi.js → swapHorizontal-DkBtpUHQ.js} +1 -1
  93. package/dist/{swapHorizontalBold-CzmBehA5.js → swapHorizontalBold-CwigaZ5c.js} +1 -1
  94. package/dist/{swapHorizontalMedium-BLbLZusS.js → swapHorizontalMedium-CzzR3-0y.js} +1 -1
  95. package/dist/{swapHorizontalRoundedBold-N_SHWa3r.js → swapHorizontalRoundedBold-C055Y8zs.js} +1 -1
  96. package/dist/{swapVertical-EAZRQhGp.js → swapVertical-d-A3bfm6.js} +1 -1
  97. package/dist/{telegram-n36fCk1z.js → telegram--pfczlkG.js} +1 -1
  98. package/dist/{three-dots-0tBgmH4A.js → three-dots-CIEdgWJT.js} +1 -1
  99. package/dist/{twitch-BhZ8ahtd.js → twitch-CbcHu1ns.js} +1 -1
  100. package/dist/{twitterIcon-DfNmxt1B.js → twitterIcon-DB90mhmN.js} +1 -1
  101. package/dist/{unsupportedProp-D3sAzZYG.js → unsupportedProp-BQSrS0LI.js} +1 -1
  102. package/dist/{useRegisterError-Bo2lp0sa.js → useRegisterError-NuUdpWyD.js} +41 -37
  103. package/dist/{verify-CWXFpftr.js → verify-C8Ud6dXo.js} +1 -1
  104. package/dist/{verify-filled-DP3y-Kx3.js → verify-filled-CAbxeIrk.js} +1 -1
  105. package/dist/{w3m-modal-CwwnoSKf.js → w3m-modal-7qD9ca_a.js} +2 -2
  106. package/dist/{wallet-pQYrlhSS.js → wallet-CALjCWYW.js} +1 -1
  107. package/dist/{wallet-placeholder-CFNKM5lP.js → wallet-placeholder-2GP-1vJb.js} +1 -1
  108. package/dist/{walletconnect-CAtjZJiV.js → walletconnect-BuMmu4SH.js} +1 -1
  109. package/dist/{warning-circle-BOE2EoE9.js → warning-circle-CNQ1oGvz.js} +1 -1
  110. package/dist/{x-BqcRzM19.js → x-Bg_5LCup.js} +1 -1
  111. package/package.json +1 -1
@@ -1,14 +1,14 @@
1
1
  import { useState as us, useEffect as fs } from "react";
2
2
  import { useQuery as hi } from "@tanstack/react-query";
3
- import { u as De, I as xo, J as di, K as So, N as pi, O as gi, Q as mi, R as yi, U as ls, V as Ke, W as wi, X as pe, Y as Bn, Z as En, $ as ko, a0 as vi, a1 as hs, a2 as bi, a3 as we, a4 as fe, a5 as _i, a6 as On, n as He, a7 as Ao, a8 as Ln, F as st, a9 as ds, aa as Mo, ab as xi } from "./index-B6Hd7MNh.js";
4
- import { d as Si, u as ki } from "./useRegisterError-Bo2lp0sa.js";
3
+ import { u as De, I as xo, J as di, K as So, N as pi, O as gi, Q as mi, R as yi, U as ls, V as Ke, W as wi, X as pe, Y as Bn, Z as En, $ as ko, a0 as vi, a1 as hs, a2 as bi, a3 as we, a4 as fe, a5 as _i, a6 as On, n as He, a7 as Ao, a8 as Ln, F as st, a9 as ds, aa as Mo, ab as xi } from "./index-BmPN76Lg.js";
4
+ import { d as Si, u as ki } from "./useRegisterError-NuUdpWyD.js";
5
5
  import { getQuotes as Ai } from "@blockend/compass-sdk";
6
- import { B as Vt } from "./index-DTish3yr.js";
6
+ import { B as Vt } from "./index-Bl2UpALc.js";
7
7
  function af({ enabled: s, dependency: e, payload: t }) {
8
8
  const r = De((O) => O.direct), o = De((O) => O.maxAccounts);
9
- async function n(O, B, L, b, g, A, S, N, C) {
9
+ async function n(O, B, L, b, g, A, S, U, C) {
10
10
  return await Ai({
11
- recipient: N,
11
+ recipient: U,
12
12
  fromChainId: B.chainId,
13
13
  toChainId: L.chainId,
14
14
  fromAssetAddress: b.address,
@@ -38,8 +38,8 @@ function af({ enabled: s, dependency: e, payload: t }) {
38
38
  if (I.data && !I.isFetching && !I.isLoading) {
39
39
  let S = I.data;
40
40
  if (S.status == "error" ? l({ error: S.message || S.error }) : l({ error: "" }), R.length) {
41
- let N = (B = (O = S == null ? void 0 : S.data) == null ? void 0 : O.quotes) == null ? void 0 : B.find((C) => C.provider == R);
42
- v(N || ((b = (L = S == null ? void 0 : S.data) == null ? void 0 : L.quotes) == null ? void 0 : b[0]) || {});
41
+ let U = (B = (O = S == null ? void 0 : S.data) == null ? void 0 : O.quotes) == null ? void 0 : B.find((C) => C.provider == R);
42
+ console.log(U, "findSelectedQuote"), v(U || ((b = (L = S == null ? void 0 : S.data) == null ? void 0 : L.quotes) == null ? void 0 : b[0]) || {});
43
43
  } else
44
44
  v(((A = (g = S == null ? void 0 : S.data) == null ? void 0 : g.quotes) == null ? void 0 : A[0]) || {});
45
45
  } else
@@ -77,9 +77,9 @@ function Ei(s, e = {}) {
77
77
  throw new Error("ExtendedPoint expected");
78
78
  }
79
79
  const I = ls((b, g) => {
80
- const { ex: A, ey: S, ez: N } = b, C = b.is0();
81
- g == null && (g = C ? Mi : t.inv(N));
82
- const F = l(A * g), q = l(S * g), $ = l(N * g);
80
+ const { ex: A, ey: S, ez: U } = b, C = b.is0();
81
+ g == null && (g = C ? Mi : t.inv(U));
82
+ const F = l(A * g), q = l(S * g), $ = l(U * g);
83
83
  if (C)
84
84
  return { x: le, y: ee };
85
85
  if ($ !== ee)
@@ -89,17 +89,17 @@ function Ei(s, e = {}) {
89
89
  const { a: g, d: A } = s;
90
90
  if (b.is0())
91
91
  throw new Error("bad point: ZERO");
92
- const { ex: S, ey: N, ez: C, et: F } = b, q = l(S * S), $ = l(N * N), Y = l(C * C), K = l(Y * Y), E = l(q * g), D = l(Y * l(E + $)), j = l(K + l(A * l(q * $)));
92
+ const { ex: S, ey: U, ez: C, et: F } = b, q = l(S * S), $ = l(U * U), Y = l(C * C), K = l(Y * Y), E = l(q * g), D = l(Y * l(E + $)), j = l(K + l(A * l(q * $)));
93
93
  if (D !== j)
94
94
  throw new Error("bad point: equation left != right (1)");
95
- const m = l(S * N), i = l(C * F);
95
+ const m = l(S * U), i = l(C * F);
96
96
  if (m !== i)
97
97
  throw new Error("bad point: equation left != right (2)");
98
98
  return !0;
99
99
  });
100
100
  class B {
101
- constructor(g, A, S, N) {
102
- this.ex = v("x", g), this.ey = v("y", A), this.ez = v("z", S, !0), this.et = v("t", N), Object.freeze(this);
101
+ constructor(g, A, S, U) {
102
+ this.ex = v("x", g), this.ey = v("y", A), this.ez = v("z", S, !0), this.et = v("t", U), Object.freeze(this);
103
103
  }
104
104
  get x() {
105
105
  return this.toAffine().x;
@@ -135,7 +135,7 @@ function Ei(s, e = {}) {
135
135
  // Compare one point to another.
136
136
  equals(g) {
137
137
  R(g);
138
- const { ex: A, ey: S, ez: N } = this, { ex: C, ey: F, ez: q } = g, $ = l(A * q), Y = l(C * N), K = l(S * q), E = l(F * N);
138
+ const { ex: A, ey: S, ez: U } = this, { ex: C, ey: F, ez: q } = g, $ = l(A * q), Y = l(C * U), K = l(S * q), E = l(F * U);
139
139
  return $ === Y && K === E;
140
140
  }
141
141
  is0() {
@@ -148,7 +148,7 @@ function Ei(s, e = {}) {
148
148
  // https://hyperelliptic.org/EFD/g1p/auto-twisted-extended.html#doubling-dbl-2008-hwcd
149
149
  // Cost: 4M + 4S + 1*a + 6add + 1*2.
150
150
  double() {
151
- const { a: g } = s, { ex: A, ey: S, ez: N } = this, C = l(A * A), F = l(S * S), q = l(Nr * l(N * N)), $ = l(g * C), Y = A + S, K = l(l(Y * Y) - C - F), E = $ + F, D = E - q, j = $ - F, m = l(K * D), i = l(E * j), f = l(K * j), d = l(D * E);
151
+ const { a: g } = s, { ex: A, ey: S, ez: U } = this, C = l(A * A), F = l(S * S), q = l(Nr * l(U * U)), $ = l(g * C), Y = A + S, K = l(l(Y * Y) - C - F), E = $ + F, D = E - q, j = $ - F, m = l(K * D), i = l(E * j), f = l(K * j), d = l(D * E);
152
152
  return new B(m, i, d, f);
153
153
  }
154
154
  // Fast algo for adding 2 Extended Points.
@@ -156,7 +156,7 @@ function Ei(s, e = {}) {
156
156
  // Cost: 9M + 1*a + 1*d + 7add.
157
157
  add(g) {
158
158
  R(g);
159
- const { a: A, d: S } = s, { ex: N, ey: C, ez: F, et: q } = this, { ex: $, ey: Y, ez: K, et: E } = g, D = l(N * $), j = l(C * Y), m = l(q * S * E), i = l(F * K), f = l((N + C) * ($ + Y) - D - j), d = i - m, y = i + m, _ = l(j - A * D), M = l(f * d), T = l(y * _), w = l(f * _), a = l(d * y);
159
+ const { a: A, d: S } = s, { ex: U, ey: C, ez: F, et: q } = this, { ex: $, ey: Y, ez: K, et: E } = g, D = l(U * $), j = l(C * Y), m = l(q * S * E), i = l(F * K), f = l((U + C) * ($ + Y) - D - j), d = i - m, y = i + m, _ = l(j - A * D), M = l(f * d), T = l(y * _), w = l(f * _), a = l(d * y);
160
160
  return new B(M, T, a, w);
161
161
  }
162
162
  subtract(g) {
@@ -166,8 +166,8 @@ function Ei(s, e = {}) {
166
166
  multiply(g) {
167
167
  const A = g;
168
168
  Ke("scalar", A, ee, n);
169
- const { p: S, f: N } = L.wNAFCached(this, A, B.normalizeZ);
170
- return B.normalizeZ([S, N])[0];
169
+ const { p: S, f: U } = L.wNAFCached(this, A, B.normalizeZ);
170
+ return B.normalizeZ([S, U])[0];
171
171
  }
172
172
  // Non-constant-time multiplication. Uses double-and-add algorithm.
173
173
  // It's faster, but should only be used when you don't care about
@@ -204,13 +204,13 @@ function Ei(s, e = {}) {
204
204
  // Converts hash string or Uint8Array to Point.
205
205
  // Uses algo from RFC8032 5.1.3.
206
206
  static fromHex(g, A = !1) {
207
- const { d: S, a: N } = s, C = t.BYTES;
207
+ const { d: S, a: U } = s, C = t.BYTES;
208
208
  g = pe("pointHex", g, C), Bn("zip215", A);
209
209
  const F = g.slice(), q = g[C - 1];
210
210
  F[C - 1] = q & -129;
211
211
  const $ = En(F), Y = A ? c : t.ORDER;
212
212
  Ke("pointHex.y", $, le, Y);
213
- const K = l($ * $), E = l(K - ee), D = l(S * K - N);
213
+ const K = l($ * $), E = l(K - ee), D = l(S * K - U);
214
214
  let { isValid: j, value: m } = h(E, D);
215
215
  if (!j)
216
216
  throw new Error("Point.fromHex: invalid y coordinate");
@@ -287,7 +287,7 @@ function Ii(s, e) {
287
287
  return pe("result", d, f * 2);
288
288
  }
289
289
  const S = Ri;
290
- function N(F, q, $, Y = S) {
290
+ function U(F, q, $, Y = S) {
291
291
  const { context: K, zip215: E } = Y, D = n.BYTES;
292
292
  F = pe("signature", F, 2 * D), q = pe("message", q), $ = pe("publicKey", $, D), E !== void 0 && Bn("zip215", E), t && (q = t(q));
293
293
  const j = En(F.slice(D, 2 * D));
@@ -302,7 +302,7 @@ function Ii(s, e) {
302
302
  const d = g(K, i.toBytes(), m.toBytes(), q);
303
303
  return i.add(m.multiplyUnsafe(d)).subtract(f).clearCofactor().is0();
304
304
  }
305
- return o.precompute(8), { getPublicKey: b, sign: A, verify: N, utils: {
305
+ return o.precompute(8), { getPublicKey: b, sign: A, verify: U, utils: {
306
306
  getExtendedPublicKey: L,
307
307
  /** ed25519 priv keys are uniform 32b. No need to check for modulo bias, like in secp256k1. */
308
308
  randomPrivateKey: () => h(n.BYTES),
@@ -889,7 +889,7 @@ function Ro() {
889
889
  return T = (u + (a >>> 13) | 0) + (Ur >>> 26) | 0, Ur &= 67108863, M[0] = vr, M[1] = br, M[2] = _r, M[3] = xr, M[4] = Sr, M[5] = kr, M[6] = Ar, M[7] = Mr, M[8] = Rr, M[9] = Br, M[10] = Er, M[11] = Ir, M[12] = Tr, M[13] = Cr, M[14] = Or, M[15] = Lr, M[16] = Pr, M[17] = qr, M[18] = Ur, T !== 0 && (M[19] = T, d.length++), d;
890
890
  };
891
891
  Math.imul || (S = A);
892
- function N(m, i, f) {
892
+ function U(m, i, f) {
893
893
  f.negative = i.negative ^ m.negative, f.length = m.length + i.length;
894
894
  for (var d = 0, y = 0, _ = 0; _ < f.length - 1; _++) {
895
895
  var M = y;
@@ -903,11 +903,11 @@ function Ro() {
903
903
  return d !== 0 ? f.words[_] = d : f.length--, f._strip();
904
904
  }
905
905
  function C(m, i, f) {
906
- return N(m, i, f);
906
+ return U(m, i, f);
907
907
  }
908
908
  n.prototype.mulTo = function(i, f) {
909
909
  var d, y = this.length + i.length;
910
- return this.length === 10 && i.length === 10 ? d = S(this, i, f) : y < 63 ? d = A(this, i, f) : y < 1024 ? d = N(this, i, f) : d = C(this, i, f), d;
910
+ return this.length === 10 && i.length === 10 ? d = S(this, i, f) : y < 63 ? d = A(this, i, f) : y < 1024 ? d = U(this, i, f) : d = C(this, i, f), d;
911
911
  }, n.prototype.mul = function(i) {
912
912
  var f = new n(null);
913
913
  return f.words = new Array(this.length + i.length), this.mulTo(i, f);
@@ -1569,9 +1569,9 @@ function Hi() {
1569
1569
  throw new TypeError("Expected Buffer");
1570
1570
  if (b.length === 0)
1571
1571
  return "";
1572
- for (var g = 0, A = 0, S = 0, N = b.length; S !== N && b[S] === 0; )
1572
+ for (var g = 0, A = 0, S = 0, U = b.length; S !== U && b[S] === 0; )
1573
1573
  S++, g++;
1574
- for (var C = (N - S) * I + 1 >>> 0, F = new Uint8Array(C); S !== N; ) {
1574
+ for (var C = (U - S) * I + 1 >>> 0, F = new Uint8Array(C); S !== U; ) {
1575
1575
  for (var q = b[S], $ = 0, Y = C - 1; (q !== 0 || $ < A) && Y !== -1; Y--, $++)
1576
1576
  q += 256 * F[Y] >>> 0, F[Y] = q % h >>> 0, q = q / h >>> 0;
1577
1577
  if (q !== 0)
@@ -1591,24 +1591,24 @@ function Hi() {
1591
1591
  return s.alloc(0);
1592
1592
  for (var g = 0, A = 0, S = 0; b[g] === v; )
1593
1593
  A++, g++;
1594
- for (var N = (b.length - g) * R + 1 >>> 0, C = new Uint8Array(N); g < b.length; ) {
1594
+ for (var U = (b.length - g) * R + 1 >>> 0, C = new Uint8Array(U); g < b.length; ) {
1595
1595
  var F = b.charCodeAt(g);
1596
1596
  if (F > 255)
1597
1597
  return;
1598
1598
  var q = r[F];
1599
1599
  if (q === 255)
1600
1600
  return;
1601
- for (var $ = 0, Y = N - 1; (q !== 0 || $ < S) && Y !== -1; Y--, $++)
1601
+ for (var $ = 0, Y = U - 1; (q !== 0 || $ < S) && Y !== -1; Y--, $++)
1602
1602
  q += h * C[Y] >>> 0, C[Y] = q % 256 >>> 0, q = q / 256 >>> 0;
1603
1603
  if (q !== 0)
1604
1604
  throw new Error("Non-zero carry");
1605
1605
  S = $, g++;
1606
1606
  }
1607
- for (var K = N - S; K !== N && C[K] === 0; )
1607
+ for (var K = U - S; K !== U && C[K] === 0; )
1608
1608
  K++;
1609
- var E = s.allocUnsafe(A + (N - K));
1609
+ var E = s.allocUnsafe(A + (U - K));
1610
1610
  E.fill(0, 0, A);
1611
- for (var D = A; K !== N; )
1611
+ for (var D = A; K !== U; )
1612
1612
  E[D++] = C[K++];
1613
1613
  return E;
1614
1614
  }
@@ -1657,9 +1657,9 @@ function Yi() {
1657
1657
  throw new TypeError("Expected Buffer");
1658
1658
  if (b.length === 0)
1659
1659
  return "";
1660
- for (var g = 0, A = 0, S = 0, N = b.length; S !== N && b[S] === 0; )
1660
+ for (var g = 0, A = 0, S = 0, U = b.length; S !== U && b[S] === 0; )
1661
1661
  S++, g++;
1662
- for (var C = (N - S) * I + 1 >>> 0, F = new Uint8Array(C); S !== N; ) {
1662
+ for (var C = (U - S) * I + 1 >>> 0, F = new Uint8Array(C); S !== U; ) {
1663
1663
  for (var q = b[S], $ = 0, Y = C - 1; (q !== 0 || $ < A) && Y !== -1; Y--, $++)
1664
1664
  q += 256 * F[Y] >>> 0, F[Y] = q % h >>> 0, q = q / h >>> 0;
1665
1665
  if (q !== 0)
@@ -1679,24 +1679,24 @@ function Yi() {
1679
1679
  return s.alloc(0);
1680
1680
  for (var g = 0, A = 0, S = 0; b[g] === v; )
1681
1681
  A++, g++;
1682
- for (var N = (b.length - g) * R + 1 >>> 0, C = new Uint8Array(N); g < b.length; ) {
1682
+ for (var U = (b.length - g) * R + 1 >>> 0, C = new Uint8Array(U); g < b.length; ) {
1683
1683
  var F = b.charCodeAt(g);
1684
1684
  if (F > 255)
1685
1685
  return;
1686
1686
  var q = r[F];
1687
1687
  if (q === 255)
1688
1688
  return;
1689
- for (var $ = 0, Y = N - 1; (q !== 0 || $ < S) && Y !== -1; Y--, $++)
1689
+ for (var $ = 0, Y = U - 1; (q !== 0 || $ < S) && Y !== -1; Y--, $++)
1690
1690
  q += h * C[Y] >>> 0, C[Y] = q % 256 >>> 0, q = q / 256 >>> 0;
1691
1691
  if (q !== 0)
1692
1692
  throw new Error("Non-zero carry");
1693
1693
  S = $, g++;
1694
1694
  }
1695
- for (var K = N - S; K !== N && C[K] === 0; )
1695
+ for (var K = U - S; K !== U && C[K] === 0; )
1696
1696
  K++;
1697
- var E = s.allocUnsafe(A + (N - K));
1697
+ var E = s.allocUnsafe(A + (U - K));
1698
1698
  E.fill(0, 0, A);
1699
- for (var D = A; K !== N; )
1699
+ for (var D = A; K !== U; )
1700
1700
  E[D++] = C[K++];
1701
1701
  return E;
1702
1702
  }
@@ -2176,12 +2176,12 @@ function sa() {
2176
2176
  throw new B(`FieldType ${j} unrecognized`);
2177
2177
  }
2178
2178
  else
2179
- N(K, D, m);
2179
+ U(K, D, m);
2180
2180
  } catch (i) {
2181
2181
  throw i instanceof B && i.addToFieldPath(E), i;
2182
2182
  }
2183
2183
  }
2184
- function N(K, E, D) {
2184
+ function U(K, E, D) {
2185
2185
  if (typeof E.borshSerialize == "function") {
2186
2186
  E.borshSerialize(D);
2187
2187
  return;
@@ -2207,7 +2207,7 @@ function sa() {
2207
2207
  }
2208
2208
  function C(K, E, D = L) {
2209
2209
  const j = new D();
2210
- return N(K, E, j), j.toArray();
2210
+ return U(K, E, j), j.toArray();
2211
2211
  }
2212
2212
  it.serialize = C;
2213
2213
  function F(K, E, D, j) {
@@ -2275,20 +2275,20 @@ function sa() {
2275
2275
  }
2276
2276
  return it.deserializeUnchecked = Y, it;
2277
2277
  }
2278
- var $r = sa(), U = {}, ks;
2278
+ var $r = sa(), N = {}, ks;
2279
2279
  function oa() {
2280
- if (ks) return U;
2281
- ks = 1, Object.defineProperty(U, "__esModule", { value: !0 }), U.s16 = U.s8 = U.nu64be = U.u48be = U.u40be = U.u32be = U.u24be = U.u16be = U.nu64 = U.u48 = U.u40 = U.u32 = U.u24 = U.u16 = U.u8 = U.offset = U.greedy = U.Constant = U.UTF8 = U.CString = U.Blob = U.Boolean = U.BitField = U.BitStructure = U.VariantLayout = U.Union = U.UnionLayoutDiscriminator = U.UnionDiscriminator = U.Structure = U.Sequence = U.DoubleBE = U.Double = U.FloatBE = U.Float = U.NearInt64BE = U.NearInt64 = U.NearUInt64BE = U.NearUInt64 = U.IntBE = U.Int = U.UIntBE = U.UInt = U.OffsetLayout = U.GreedyCount = U.ExternalLayout = U.bindConstructorLayout = U.nameWithProperty = U.Layout = U.uint8ArrayToBuffer = U.checkUint8Array = void 0, U.constant = U.utf8 = U.cstr = U.blob = U.unionLayoutDiscriminator = U.union = U.seq = U.bits = U.struct = U.f64be = U.f64 = U.f32be = U.f32 = U.ns64be = U.s48be = U.s40be = U.s32be = U.s24be = U.s16be = U.ns64 = U.s48 = U.s40 = U.s32 = U.s24 = void 0;
2280
+ if (ks) return N;
2281
+ ks = 1, Object.defineProperty(N, "__esModule", { value: !0 }), N.s16 = N.s8 = N.nu64be = N.u48be = N.u40be = N.u32be = N.u24be = N.u16be = N.nu64 = N.u48 = N.u40 = N.u32 = N.u24 = N.u16 = N.u8 = N.offset = N.greedy = N.Constant = N.UTF8 = N.CString = N.Blob = N.Boolean = N.BitField = N.BitStructure = N.VariantLayout = N.Union = N.UnionLayoutDiscriminator = N.UnionDiscriminator = N.Structure = N.Sequence = N.DoubleBE = N.Double = N.FloatBE = N.Float = N.NearInt64BE = N.NearInt64 = N.NearUInt64BE = N.NearUInt64 = N.IntBE = N.Int = N.UIntBE = N.UInt = N.OffsetLayout = N.GreedyCount = N.ExternalLayout = N.bindConstructorLayout = N.nameWithProperty = N.Layout = N.uint8ArrayToBuffer = N.checkUint8Array = void 0, N.constant = N.utf8 = N.cstr = N.blob = N.unionLayoutDiscriminator = N.union = N.seq = N.bits = N.struct = N.f64be = N.f64 = N.f32be = N.f32 = N.ns64be = N.s48be = N.s40be = N.s32be = N.s24be = N.s16be = N.ns64 = N.s48 = N.s40 = N.s32 = N.s24 = void 0;
2282
2282
  const s = Ao();
2283
2283
  function e(a) {
2284
2284
  if (!(a instanceof Uint8Array))
2285
2285
  throw new TypeError("b must be a Uint8Array");
2286
2286
  }
2287
- U.checkUint8Array = e;
2287
+ N.checkUint8Array = e;
2288
2288
  function t(a) {
2289
2289
  return e(a), s.Buffer.from(a.buffer, a.byteOffset, a.length);
2290
2290
  }
2291
- U.uint8ArrayToBuffer = t;
2291
+ N.uint8ArrayToBuffer = t;
2292
2292
  let r = class {
2293
2293
  constructor(u, p) {
2294
2294
  if (!Number.isInteger(u))
@@ -2377,11 +2377,11 @@ function oa() {
2377
2377
  fromArray(u) {
2378
2378
  }
2379
2379
  };
2380
- U.Layout = r;
2380
+ N.Layout = r;
2381
2381
  function o(a, u) {
2382
2382
  return u.property ? a + "[" + u.property + "]" : a;
2383
2383
  }
2384
- U.nameWithProperty = o;
2384
+ N.nameWithProperty = o;
2385
2385
  function n(a, u) {
2386
2386
  if (typeof a != "function")
2387
2387
  throw new TypeError("Class must be constructor");
@@ -2403,7 +2403,7 @@ function oa() {
2403
2403
  writable: !0
2404
2404
  });
2405
2405
  }
2406
- U.bindConstructorLayout = n;
2406
+ N.bindConstructorLayout = n;
2407
2407
  class c extends r {
2408
2408
  /**
2409
2409
  * Return `true` iff the external layout decodes to an unsigned
@@ -2420,7 +2420,7 @@ function oa() {
2420
2420
  throw new Error("ExternalLayout is abstract");
2421
2421
  }
2422
2422
  }
2423
- U.ExternalLayout = c;
2423
+ N.ExternalLayout = c;
2424
2424
  class l extends c {
2425
2425
  constructor(u = 1, p) {
2426
2426
  if (!Number.isInteger(u) || 0 >= u)
@@ -2442,7 +2442,7 @@ function oa() {
2442
2442
  return 0;
2443
2443
  }
2444
2444
  }
2445
- U.GreedyCount = l;
2445
+ N.GreedyCount = l;
2446
2446
  class h extends c {
2447
2447
  constructor(u, p = 0, x) {
2448
2448
  if (!(u instanceof r))
@@ -2464,7 +2464,7 @@ function oa() {
2464
2464
  return this.layout.encode(u, p, x + this.offset);
2465
2465
  }
2466
2466
  }
2467
- U.OffsetLayout = h;
2467
+ N.OffsetLayout = h;
2468
2468
  class v extends r {
2469
2469
  constructor(u, p) {
2470
2470
  if (super(u, p), 6 < this.span)
@@ -2479,7 +2479,7 @@ function oa() {
2479
2479
  return t(p).writeUIntLE(u, x, this.span), this.span;
2480
2480
  }
2481
2481
  }
2482
- U.UInt = v;
2482
+ N.UInt = v;
2483
2483
  class R extends r {
2484
2484
  constructor(u, p) {
2485
2485
  if (super(u, p), 6 < this.span)
@@ -2494,7 +2494,7 @@ function oa() {
2494
2494
  return t(p).writeUIntBE(u, x, this.span), this.span;
2495
2495
  }
2496
2496
  }
2497
- U.UIntBE = R;
2497
+ N.UIntBE = R;
2498
2498
  class I extends r {
2499
2499
  constructor(u, p) {
2500
2500
  if (super(u, p), 6 < this.span)
@@ -2509,7 +2509,7 @@ function oa() {
2509
2509
  return t(p).writeIntLE(u, x, this.span), this.span;
2510
2510
  }
2511
2511
  }
2512
- U.Int = I;
2512
+ N.Int = I;
2513
2513
  class O extends r {
2514
2514
  constructor(u, p) {
2515
2515
  if (super(u, p), 6 < this.span)
@@ -2524,7 +2524,7 @@ function oa() {
2524
2524
  return t(p).writeIntBE(u, x, this.span), this.span;
2525
2525
  }
2526
2526
  }
2527
- U.IntBE = O;
2527
+ N.IntBE = O;
2528
2528
  const B = Math.pow(2, 32);
2529
2529
  function L(a) {
2530
2530
  const u = Math.floor(a / B), p = a - u * B;
@@ -2548,7 +2548,7 @@ function oa() {
2548
2548
  return W.writeUInt32LE(z.lo32, x), W.writeUInt32LE(z.hi32, x + 4), 8;
2549
2549
  }
2550
2550
  }
2551
- U.NearUInt64 = g;
2551
+ N.NearUInt64 = g;
2552
2552
  class A extends r {
2553
2553
  constructor(u) {
2554
2554
  super(8, u);
@@ -2564,7 +2564,7 @@ function oa() {
2564
2564
  return W.writeUInt32BE(z.hi32, x), W.writeUInt32BE(z.lo32, x + 4), 8;
2565
2565
  }
2566
2566
  }
2567
- U.NearUInt64BE = A;
2567
+ N.NearUInt64BE = A;
2568
2568
  class S extends r {
2569
2569
  constructor(u) {
2570
2570
  super(8, u);
@@ -2580,8 +2580,8 @@ function oa() {
2580
2580
  return W.writeUInt32LE(z.lo32, x), W.writeInt32LE(z.hi32, x + 4), 8;
2581
2581
  }
2582
2582
  }
2583
- U.NearInt64 = S;
2584
- class N extends r {
2583
+ N.NearInt64 = S;
2584
+ class U extends r {
2585
2585
  constructor(u) {
2586
2586
  super(8, u);
2587
2587
  }
@@ -2596,7 +2596,7 @@ function oa() {
2596
2596
  return W.writeInt32BE(z.hi32, x), W.writeUInt32BE(z.lo32, x + 4), 8;
2597
2597
  }
2598
2598
  }
2599
- U.NearInt64BE = N;
2599
+ N.NearInt64BE = U;
2600
2600
  class C extends r {
2601
2601
  constructor(u) {
2602
2602
  super(4, u);
@@ -2610,7 +2610,7 @@ function oa() {
2610
2610
  return t(p).writeFloatLE(u, x), 4;
2611
2611
  }
2612
2612
  }
2613
- U.Float = C;
2613
+ N.Float = C;
2614
2614
  class F extends r {
2615
2615
  constructor(u) {
2616
2616
  super(4, u);
@@ -2624,7 +2624,7 @@ function oa() {
2624
2624
  return t(p).writeFloatBE(u, x), 4;
2625
2625
  }
2626
2626
  }
2627
- U.FloatBE = F;
2627
+ N.FloatBE = F;
2628
2628
  class q extends r {
2629
2629
  constructor(u) {
2630
2630
  super(8, u);
@@ -2638,7 +2638,7 @@ function oa() {
2638
2638
  return t(p).writeDoubleLE(u, x), 8;
2639
2639
  }
2640
2640
  }
2641
- U.Double = q;
2641
+ N.Double = q;
2642
2642
  class $ extends r {
2643
2643
  constructor(u) {
2644
2644
  super(8, u);
@@ -2652,7 +2652,7 @@ function oa() {
2652
2652
  return t(p).writeDoubleBE(u, x), 8;
2653
2653
  }
2654
2654
  }
2655
- U.DoubleBE = $;
2655
+ N.DoubleBE = $;
2656
2656
  class Y extends r {
2657
2657
  constructor(u, p, x) {
2658
2658
  if (!(u instanceof r))
@@ -2699,7 +2699,7 @@ function oa() {
2699
2699
  return this.count instanceof c && this.count.encode(u.length, p, x), W;
2700
2700
  }
2701
2701
  }
2702
- U.Sequence = Y;
2702
+ N.Sequence = Y;
2703
2703
  class K extends r {
2704
2704
  constructor(u, p, x) {
2705
2705
  if (!(Array.isArray(u) && u.reduce((W, Q) => W && Q instanceof r, !0)))
@@ -2801,7 +2801,7 @@ function oa() {
2801
2801
  }
2802
2802
  }
2803
2803
  }
2804
- U.Structure = K;
2804
+ N.Structure = K;
2805
2805
  class E {
2806
2806
  constructor(u) {
2807
2807
  this.property = u;
@@ -2821,7 +2821,7 @@ function oa() {
2821
2821
  throw new Error("UnionDiscriminator is abstract");
2822
2822
  }
2823
2823
  }
2824
- U.UnionDiscriminator = E;
2824
+ N.UnionDiscriminator = E;
2825
2825
  class D extends E {
2826
2826
  constructor(u, p) {
2827
2827
  if (!(u instanceof c && u.isCount()))
@@ -2837,7 +2837,7 @@ function oa() {
2837
2837
  return this.layout.encode(u, p, x);
2838
2838
  }
2839
2839
  }
2840
- U.UnionLayoutDiscriminator = D;
2840
+ N.UnionLayoutDiscriminator = D;
2841
2841
  class j extends r {
2842
2842
  constructor(u, p, x) {
2843
2843
  let z;
@@ -2986,7 +2986,7 @@ function oa() {
2986
2986
  return u instanceof Uint8Array ? x = this.discriminator.decode(u, p) : x = u, this.registry[x];
2987
2987
  }
2988
2988
  }
2989
- U.Union = j;
2989
+ N.Union = j;
2990
2990
  class m extends r {
2991
2991
  constructor(u, p, x, z) {
2992
2992
  if (!(u instanceof j))
@@ -3039,7 +3039,7 @@ function oa() {
3039
3039
  return this.layout.fromArray(u);
3040
3040
  }
3041
3041
  }
3042
- U.VariantLayout = m;
3042
+ N.VariantLayout = m;
3043
3043
  function i(a) {
3044
3044
  return 0 > a && (a += 4294967296), a;
3045
3045
  }
@@ -3122,7 +3122,7 @@ function oa() {
3122
3122
  return p;
3123
3123
  }
3124
3124
  }
3125
- U.BitStructure = f;
3125
+ N.BitStructure = f;
3126
3126
  class d {
3127
3127
  constructor(u, p, x) {
3128
3128
  if (!(u instanceof f))
@@ -3152,7 +3152,7 @@ function oa() {
3152
3152
  this.container._packedSetValue(i(p & ~this.wordMask) | x);
3153
3153
  }
3154
3154
  }
3155
- U.BitField = d;
3155
+ N.BitField = d;
3156
3156
  class y extends d {
3157
3157
  constructor(u, p) {
3158
3158
  super(u, 1, p);
@@ -3168,7 +3168,7 @@ function oa() {
3168
3168
  typeof u == "boolean" && (u = +u), super.encode(u);
3169
3169
  }
3170
3170
  }
3171
- U.Boolean = y;
3171
+ N.Boolean = y;
3172
3172
  class _ extends r {
3173
3173
  constructor(u, p) {
3174
3174
  if (!(u instanceof c && u.isCount() || Number.isInteger(u) && 0 <= u))
@@ -3201,7 +3201,7 @@ function oa() {
3201
3201
  return t(p).write(W.toString("hex"), x, z, "hex"), this.length instanceof c && this.length.encode(z, p, x), z;
3202
3202
  }
3203
3203
  }
3204
- U.Blob = _;
3204
+ N.Blob = _;
3205
3205
  class M extends r {
3206
3206
  constructor(u) {
3207
3207
  super(-1, u);
@@ -3229,7 +3229,7 @@ function oa() {
3229
3229
  return z.copy(Q, x), Q[x + W] = 0, W + 1;
3230
3230
  }
3231
3231
  }
3232
- U.CString = M;
3232
+ N.CString = M;
3233
3233
  class T extends r {
3234
3234
  constructor(u, p) {
3235
3235
  if (typeof u == "string" && p === void 0 && (p = u, u = void 0), u === void 0)
@@ -3260,7 +3260,7 @@ function oa() {
3260
3260
  return z.copy(t(p), x), W;
3261
3261
  }
3262
3262
  }
3263
- U.UTF8 = T;
3263
+ N.UTF8 = T;
3264
3264
  class w extends r {
3265
3265
  constructor(u, p) {
3266
3266
  super(0, p), this.value = u;
@@ -3274,7 +3274,7 @@ function oa() {
3274
3274
  return 0;
3275
3275
  }
3276
3276
  }
3277
- return U.Constant = w, U.greedy = (a, u) => new l(a, u), U.offset = (a, u, p) => new h(a, u, p), U.u8 = (a) => new v(1, a), U.u16 = (a) => new v(2, a), U.u24 = (a) => new v(3, a), U.u32 = (a) => new v(4, a), U.u40 = (a) => new v(5, a), U.u48 = (a) => new v(6, a), U.nu64 = (a) => new g(a), U.u16be = (a) => new R(2, a), U.u24be = (a) => new R(3, a), U.u32be = (a) => new R(4, a), U.u40be = (a) => new R(5, a), U.u48be = (a) => new R(6, a), U.nu64be = (a) => new A(a), U.s8 = (a) => new I(1, a), U.s16 = (a) => new I(2, a), U.s24 = (a) => new I(3, a), U.s32 = (a) => new I(4, a), U.s40 = (a) => new I(5, a), U.s48 = (a) => new I(6, a), U.ns64 = (a) => new S(a), U.s16be = (a) => new O(2, a), U.s24be = (a) => new O(3, a), U.s32be = (a) => new O(4, a), U.s40be = (a) => new O(5, a), U.s48be = (a) => new O(6, a), U.ns64be = (a) => new N(a), U.f32 = (a) => new C(a), U.f32be = (a) => new F(a), U.f64 = (a) => new q(a), U.f64be = (a) => new $(a), U.struct = (a, u, p) => new K(a, u, p), U.bits = (a, u, p) => new f(a, u, p), U.seq = (a, u, p) => new Y(a, u, p), U.union = (a, u, p) => new j(a, u, p), U.unionLayoutDiscriminator = (a, u) => new D(a, u), U.blob = (a, u) => new _(a, u), U.cstr = (a) => new M(a), U.utf8 = (a, u) => new T(a, u), U.constant = (a, u) => new w(a, u), U;
3277
+ return N.Constant = w, N.greedy = (a, u) => new l(a, u), N.offset = (a, u, p) => new h(a, u, p), N.u8 = (a) => new v(1, a), N.u16 = (a) => new v(2, a), N.u24 = (a) => new v(3, a), N.u32 = (a) => new v(4, a), N.u40 = (a) => new v(5, a), N.u48 = (a) => new v(6, a), N.nu64 = (a) => new g(a), N.u16be = (a) => new R(2, a), N.u24be = (a) => new R(3, a), N.u32be = (a) => new R(4, a), N.u40be = (a) => new R(5, a), N.u48be = (a) => new R(6, a), N.nu64be = (a) => new A(a), N.s8 = (a) => new I(1, a), N.s16 = (a) => new I(2, a), N.s24 = (a) => new I(3, a), N.s32 = (a) => new I(4, a), N.s40 = (a) => new I(5, a), N.s48 = (a) => new I(6, a), N.ns64 = (a) => new S(a), N.s16be = (a) => new O(2, a), N.s24be = (a) => new O(3, a), N.s32be = (a) => new O(4, a), N.s40be = (a) => new O(5, a), N.s48be = (a) => new O(6, a), N.ns64be = (a) => new U(a), N.f32 = (a) => new C(a), N.f32be = (a) => new F(a), N.f64 = (a) => new q(a), N.f64be = (a) => new $(a), N.struct = (a, u, p) => new K(a, u, p), N.bits = (a, u, p) => new f(a, u, p), N.seq = (a, u, p) => new Y(a, u, p), N.union = (a, u, p) => new j(a, u, p), N.unionLayoutDiscriminator = (a, u) => new D(a, u), N.blob = (a, u) => new _(a, u), N.cstr = (a) => new M(a), N.utf8 = (a, u) => new T(a, u), N.constant = (a, u) => new w(a, u), N;
3278
3278
  }
3279
3279
  var k = oa(), ke = {}, As;
3280
3280
  function ia() {
@@ -3812,11 +3812,11 @@ function Ea(s) {
3812
3812
  O[B] = l[I][B];
3813
3813
  for (var L = 16; L < 80; ++L)
3814
3814
  O[L] = Zr(O[L - 3] ^ O[L - 8] ^ O[L - 14] ^ O[L - 16], 1);
3815
- for (var b = t[0], g = t[1], A = t[2], S = t[3], N = t[4], C = 0; C < 80; ++C) {
3816
- var F = Math.floor(C / 20), q = Zr(b, 5) + Ba(F, g, A, S) + N + e[F] + O[C] >>> 0;
3817
- N = S, S = A, A = Zr(g, 30) >>> 0, g = b, b = q;
3815
+ for (var b = t[0], g = t[1], A = t[2], S = t[3], U = t[4], C = 0; C < 80; ++C) {
3816
+ var F = Math.floor(C / 20), q = Zr(b, 5) + Ba(F, g, A, S) + U + e[F] + O[C] >>> 0;
3817
+ U = S, S = A, A = Zr(g, 30) >>> 0, g = b, b = q;
3818
3818
  }
3819
- t[0] = t[0] + b >>> 0, t[1] = t[1] + g >>> 0, t[2] = t[2] + A >>> 0, t[3] = t[3] + S >>> 0, t[4] = t[4] + N >>> 0;
3819
+ t[0] = t[0] + b >>> 0, t[1] = t[1] + g >>> 0, t[2] = t[2] + A >>> 0, t[3] = t[3] + S >>> 0, t[4] = t[4] + U >>> 0;
3820
3820
  }
3821
3821
  return [t[0] >> 24 & 255, t[0] >> 16 & 255, t[0] >> 8 & 255, t[0] & 255, t[1] >> 24 & 255, t[1] >> 16 & 255, t[1] >> 8 & 255, t[1] & 255, t[2] >> 24 & 255, t[2] >> 16 & 255, t[2] >> 8 & 255, t[2] & 255, t[3] >> 24 & 255, t[3] >> 16 & 255, t[3] >> 8 & 255, t[3] & 255, t[4] >> 24 & 255, t[4] >> 16 & 255, t[4] >> 8 & 255, t[4] & 255];
3822
3822
  }
@@ -3992,7 +3992,7 @@ function No() {
3992
3992
  var e = Uo();
3993
3993
  function t() {
3994
3994
  var r, o, n = typeof Symbol == "function" ? Symbol : {}, c = n.iterator || "@@iterator", l = n.toStringTag || "@@toStringTag";
3995
- function h(g, A, S, N) {
3995
+ function h(g, A, S, U) {
3996
3996
  var C = A && A.prototype instanceof R ? A : R, F = Object.create(C.prototype);
3997
3997
  return e(F, "_invoke", function(q, $, Y) {
3998
3998
  var K, E, D, j = 0, m = Y || [], i = !1, f = {
@@ -4037,7 +4037,7 @@ function No() {
4037
4037
  done: i
4038
4038
  };
4039
4039
  };
4040
- }(g, S, N), !0), F;
4040
+ }(g, S, U), !0), F;
4041
4041
  }
4042
4042
  var v = {};
4043
4043
  function R() {
@@ -4229,8 +4229,8 @@ function Fa() {
4229
4229
  }
4230
4230
  return (s.exports = h = function() {
4231
4231
  return {
4232
- wrap: function(A, S, N, C) {
4233
- return v.w(L(A), S, N, C && C.reverse());
4232
+ wrap: function(A, S, U, C) {
4233
+ return v.w(L(A), S, U, C && C.reverse());
4234
4234
  },
4235
4235
  isGeneratorFunction: O,
4236
4236
  mark: v.m,
@@ -4238,8 +4238,8 @@ function Fa() {
4238
4238
  return new e(A, S);
4239
4239
  },
4240
4240
  AsyncIterator: n,
4241
- async: function(A, S, N, C, F) {
4242
- return (O(S) ? o : r)(L(A), S, N, C, F);
4241
+ async: function(A, S, U, C, F) {
4242
+ return (O(S) ? o : r)(L(A), S, U, C, F);
4243
4243
  },
4244
4244
  keys: c,
4245
4245
  values: l
@@ -4450,7 +4450,7 @@ function $o() {
4450
4450
  }, l.prototype.emit = function(v, R, I, O, B, L) {
4451
4451
  var b = t ? t + v : v;
4452
4452
  if (!this._events[b]) return !1;
4453
- var g = this._events[b], A = arguments.length, S, N;
4453
+ var g = this._events[b], A = arguments.length, S, U;
4454
4454
  if (g.fn) {
4455
4455
  switch (g.once && this.removeListener(v, g.fn, void 0, !0), A) {
4456
4456
  case 1:
@@ -4466,29 +4466,29 @@ function $o() {
4466
4466
  case 6:
4467
4467
  return g.fn.call(g.context, R, I, O, B, L), !0;
4468
4468
  }
4469
- for (N = 1, S = new Array(A - 1); N < A; N++)
4470
- S[N - 1] = arguments[N];
4469
+ for (U = 1, S = new Array(A - 1); U < A; U++)
4470
+ S[U - 1] = arguments[U];
4471
4471
  g.fn.apply(g.context, S);
4472
4472
  } else {
4473
4473
  var C = g.length, F;
4474
- for (N = 0; N < C; N++)
4475
- switch (g[N].once && this.removeListener(v, g[N].fn, void 0, !0), A) {
4474
+ for (U = 0; U < C; U++)
4475
+ switch (g[U].once && this.removeListener(v, g[U].fn, void 0, !0), A) {
4476
4476
  case 1:
4477
- g[N].fn.call(g[N].context);
4477
+ g[U].fn.call(g[U].context);
4478
4478
  break;
4479
4479
  case 2:
4480
- g[N].fn.call(g[N].context, R);
4480
+ g[U].fn.call(g[U].context, R);
4481
4481
  break;
4482
4482
  case 3:
4483
- g[N].fn.call(g[N].context, R, I);
4483
+ g[U].fn.call(g[U].context, R, I);
4484
4484
  break;
4485
4485
  case 4:
4486
- g[N].fn.call(g[N].context, R, I, O);
4486
+ g[U].fn.call(g[U].context, R, I, O);
4487
4487
  break;
4488
4488
  default:
4489
4489
  if (!S) for (F = 1, S = new Array(A - 1); F < A; F++)
4490
4490
  S[F - 1] = arguments[F];
4491
- g[N].fn.apply(g[N].context, S);
4491
+ g[U].fn.apply(g[U].context, S);
4492
4492
  }
4493
4493
  }
4494
4494
  return !0;
@@ -4574,16 +4574,16 @@ function Za() {
4574
4574
  var L = function(b, g) {
4575
4575
  var A = {};
4576
4576
  for (var S in b) Object.prototype.hasOwnProperty.call(b, S) && g.indexOf(S) < 0 && (A[S] = b[S]);
4577
- if (b != null && typeof Object.getOwnPropertySymbols == "function") for (var N = 0, S = Object.getOwnPropertySymbols(b); N < S.length; N++)
4578
- g.indexOf(S[N]) < 0 && Object.prototype.propertyIsEnumerable.call(b, S[N]) && (A[S[N]] = b[S[N]]);
4577
+ if (b != null && typeof Object.getOwnPropertySymbols == "function") for (var U = 0, S = Object.getOwnPropertySymbols(b); U < S.length; U++)
4578
+ g.indexOf(S[U]) < 0 && Object.prototype.propertyIsEnumerable.call(b, S[U]) && (A[S[U]] = b[S[U]]);
4579
4579
  return A;
4580
4580
  };
4581
4581
  s.default = /* @__PURE__ */ function(b) {
4582
4582
  function g(A) {
4583
- var S, N = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "ws://localhost:8080", C = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, F = arguments.length > 3 ? arguments[3] : void 0, q = arguments.length > 4 ? arguments[4] : void 0;
4583
+ var S, U = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "ws://localhost:8080", C = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, F = arguments.length > 3 ? arguments[3] : void 0, q = arguments.length > 4 ? arguments[4] : void 0;
4584
4584
  (0, n.default)(this, g);
4585
4585
  var $ = C.autoconnect, Y = $ === void 0 ? !0 : $, K = C.reconnect, E = K === void 0 ? !0 : K, D = C.reconnect_interval, j = D === void 0 ? 1e3 : D, m = C.max_reconnects, i = m === void 0 ? 5 : m, f = L(C, ["autoconnect", "reconnect", "reconnect_interval", "max_reconnects"]);
4586
- return S = O(this, g), S.webSocketFactory = A, S.queue = {}, S.rpc_id = 0, S.address = N, S.autoconnect = Y, S.ready = !1, S.reconnect = E, S.reconnect_timer_id = void 0, S.reconnect_interval = j, S.max_reconnects = i, S.rest_options = f, S.current_reconnects = 0, S.generate_request_id = F || function() {
4586
+ return S = O(this, g), S.webSocketFactory = A, S.queue = {}, S.rpc_id = 0, S.address = U, S.autoconnect = Y, S.ready = !1, S.reconnect = E, S.reconnect_timer_id = void 0, S.reconnect_interval = j, S.max_reconnects = i, S.rest_options = f, S.current_reconnects = 0, S.generate_request_id = F || function() {
4587
4587
  return ++S.rpc_id;
4588
4588
  }, q ? S.dataPack = q : S.dataPack = new I.DefaultDataPack(), S.autoconnect && S._connect(S.address, Object.assign({
4589
4589
  autoconnect: S.autoconnect,
@@ -4613,14 +4613,14 @@ function Za() {
4613
4613
  */
4614
4614
  }, {
4615
4615
  key: "call",
4616
- value: function(S, N, C, F) {
4616
+ value: function(S, U, C, F) {
4617
4617
  var q = this;
4618
4618
  return !F && (0, o.default)(C) === "object" && (F = C, C = null), new Promise(function($, Y) {
4619
4619
  if (!q.ready) return Y(new Error("socket not ready"));
4620
- var K = q.generate_request_id(S, N), E = {
4620
+ var K = q.generate_request_id(S, U), E = {
4621
4621
  jsonrpc: "2.0",
4622
4622
  method: S,
4623
- params: N || void 0,
4623
+ params: U || void 0,
4624
4624
  id: K
4625
4625
  };
4626
4626
  q.socket.send(q.dataPack.encode(E), F, function(D) {
@@ -4642,7 +4642,7 @@ function Za() {
4642
4642
  }, {
4643
4643
  key: "login",
4644
4644
  value: function() {
4645
- var A = (0, r.default)(/* @__PURE__ */ t.default.mark(function N(C) {
4645
+ var A = (0, r.default)(/* @__PURE__ */ t.default.mark(function U(C) {
4646
4646
  var F;
4647
4647
  return t.default.wrap(function($) {
4648
4648
  for (; ; ) switch ($.prev = $.next) {
@@ -4660,9 +4660,9 @@ function Za() {
4660
4660
  case "end":
4661
4661
  return $.stop();
4662
4662
  }
4663
- }, N, this);
4663
+ }, U, this);
4664
4664
  }));
4665
- function S(N) {
4665
+ function S(U) {
4666
4666
  return A.apply(this, arguments);
4667
4667
  }
4668
4668
  return S;
@@ -4670,7 +4670,7 @@ function Za() {
4670
4670
  }, {
4671
4671
  key: "listMethods",
4672
4672
  value: function() {
4673
- var A = (0, r.default)(/* @__PURE__ */ t.default.mark(function N() {
4673
+ var A = (0, r.default)(/* @__PURE__ */ t.default.mark(function U() {
4674
4674
  return t.default.wrap(function(F) {
4675
4675
  for (; ; ) switch (F.prev = F.next) {
4676
4676
  case 0:
@@ -4681,7 +4681,7 @@ function Za() {
4681
4681
  case "end":
4682
4682
  return F.stop();
4683
4683
  }
4684
- }, N, this);
4684
+ }, U, this);
4685
4685
  }));
4686
4686
  function S() {
4687
4687
  return A.apply(this, arguments);
@@ -4690,14 +4690,14 @@ function Za() {
4690
4690
  }()
4691
4691
  }, {
4692
4692
  key: "notify",
4693
- value: function(S, N) {
4693
+ value: function(S, U) {
4694
4694
  var C = this;
4695
4695
  return new Promise(function(F, q) {
4696
4696
  if (!C.ready) return q(new Error("socket not ready"));
4697
4697
  var $ = {
4698
4698
  jsonrpc: "2.0",
4699
4699
  method: S,
4700
- params: N
4700
+ params: U
4701
4701
  };
4702
4702
  C.socket.send(C.dataPack.encode($), function(Y) {
4703
4703
  if (Y) return q(Y);
@@ -4715,7 +4715,7 @@ function Za() {
4715
4715
  }, {
4716
4716
  key: "subscribe",
4717
4717
  value: function() {
4718
- var A = (0, r.default)(/* @__PURE__ */ t.default.mark(function N(C) {
4718
+ var A = (0, r.default)(/* @__PURE__ */ t.default.mark(function U(C) {
4719
4719
  var F;
4720
4720
  return t.default.wrap(function($) {
4721
4721
  for (; ; ) switch ($.prev = $.next) {
@@ -4733,9 +4733,9 @@ function Za() {
4733
4733
  case "end":
4734
4734
  return $.stop();
4735
4735
  }
4736
- }, N, this);
4736
+ }, U, this);
4737
4737
  }));
4738
- function S(N) {
4738
+ function S(U) {
4739
4739
  return A.apply(this, arguments);
4740
4740
  }
4741
4741
  return S;
@@ -4743,7 +4743,7 @@ function Za() {
4743
4743
  }, {
4744
4744
  key: "unsubscribe",
4745
4745
  value: function() {
4746
- var A = (0, r.default)(/* @__PURE__ */ t.default.mark(function N(C) {
4746
+ var A = (0, r.default)(/* @__PURE__ */ t.default.mark(function U(C) {
4747
4747
  var F;
4748
4748
  return t.default.wrap(function($) {
4749
4749
  for (; ; ) switch ($.prev = $.next) {
@@ -4761,17 +4761,17 @@ function Za() {
4761
4761
  case "end":
4762
4762
  return $.stop();
4763
4763
  }
4764
- }, N, this);
4764
+ }, U, this);
4765
4765
  }));
4766
- function S(N) {
4766
+ function S(U) {
4767
4767
  return A.apply(this, arguments);
4768
4768
  }
4769
4769
  return S;
4770
4770
  }()
4771
4771
  }, {
4772
4772
  key: "close",
4773
- value: function(S, N) {
4774
- this.socket.close(S || 1e3, N);
4773
+ value: function(S, U) {
4774
+ this.socket.close(S || 1e3, U);
4775
4775
  }
4776
4776
  /**
4777
4777
  * Enable / disable automatic reconnection.
@@ -4816,9 +4816,9 @@ function Za() {
4816
4816
  */
4817
4817
  }, {
4818
4818
  key: "_connect",
4819
- value: function(S, N) {
4819
+ value: function(S, U) {
4820
4820
  var C = this;
4821
- clearTimeout(this.reconnect_timer_id), this.socket = this.webSocketFactory(S, N), this.socket.addEventListener("open", function() {
4821
+ clearTimeout(this.reconnect_timer_id), this.socket = this.webSocketFactory(S, U), this.socket.addEventListener("open", function() {
4822
4822
  C.ready = !0, C.emit("open"), C.current_reconnects = 0;
4823
4823
  }), this.socket.addEventListener("message", function(F) {
4824
4824
  var q = F.data;
@@ -4850,7 +4850,7 @@ function Za() {
4850
4850
  C.ready && setTimeout(function() {
4851
4851
  return C.emit("close", q, $);
4852
4852
  }, 0), C.ready = !1, C.socket = void 0, q !== 1e3 && (C.current_reconnects++, C.reconnect && (C.max_reconnects > C.current_reconnects || C.max_reconnects === 0) && (C.reconnect_timer_id = setTimeout(function() {
4853
- return C._connect(S, N);
4853
+ return C._connect(S, U);
4854
4854
  }, C.reconnect_interval)));
4855
4855
  });
4856
4856
  }
@@ -4900,8 +4900,8 @@ function Xa() {
4900
4900
  var S = A || g;
4901
4901
  try {
4902
4902
  this.socket.send(b), S();
4903
- } catch (N) {
4904
- S(N);
4903
+ } catch (U) {
4904
+ S(U);
4905
4905
  }
4906
4906
  }
4907
4907
  /**
@@ -5585,20 +5585,20 @@ class We {
5585
5585
  l.push(new et(ae(t, 0, Se)));
5586
5586
  const v = Yt.encode(ae(t, 0, Se)), R = oe(t), I = [];
5587
5587
  for (let L = 0; L < R; L++) {
5588
- const b = me(t), g = oe(t), A = ae(t, 0, g), S = oe(t), N = new Uint8Array(ae(t, 0, S));
5588
+ const b = me(t), g = oe(t), A = ae(t, 0, g), S = oe(t), U = new Uint8Array(ae(t, 0, S));
5589
5589
  I.push({
5590
5590
  programIdIndex: b,
5591
5591
  accountKeyIndexes: A,
5592
- data: N
5592
+ data: U
5593
5593
  });
5594
5594
  }
5595
5595
  const O = oe(t), B = [];
5596
5596
  for (let L = 0; L < O; L++) {
5597
- const b = new et(ae(t, 0, Se)), g = oe(t), A = ae(t, 0, g), S = oe(t), N = ae(t, 0, S);
5597
+ const b = new et(ae(t, 0, Se)), g = oe(t), A = ae(t, 0, g), S = oe(t), U = ae(t, 0, S);
5598
5598
  B.push({
5599
5599
  accountKey: b,
5600
5600
  writableIndexes: A,
5601
- readonlyIndexes: N
5601
+ readonlyIndexes: U
5602
5602
  });
5603
5603
  }
5604
5604
  return new We({
@@ -5732,7 +5732,7 @@ class be {
5732
5732
  let e, t;
5733
5733
  if (this.nonceInfo ? (e = this.nonceInfo.nonce, this.instructions[0] != this.nonceInfo.nonceInstruction ? t = [this.nonceInfo.nonceInstruction, ...this.instructions] : t = this.instructions) : (e = this.recentBlockhash, t = this.instructions), !e)
5734
5734
  throw new Error("Transaction recentBlockhash required");
5735
- t.length < 1;
5735
+ t.length < 1 && console.warn("No instructions provided");
5736
5736
  let r;
5737
5737
  if (this.feePayer)
5738
5738
  r = this.feePayer;
@@ -5791,7 +5791,7 @@ class be {
5791
5791
  for (const b of this.signatures) {
5792
5792
  const g = c.findIndex((A) => A.pubkey.equals(b.publicKey));
5793
5793
  if (g > -1)
5794
- c[g].isSigner || (c[g].isSigner = !0);
5794
+ c[g].isSigner || (c[g].isSigner = !0, console.warn("Transaction references a signature that is unnecessary, only the fee payer and instruction signer accounts should sign a transaction. This behavior is deprecated and will throw an error in the next major version release."));
5795
5795
  else
5796
5796
  throw new Error(`unknown signer: ${b.publicKey.toString()}`);
5797
5797
  }
@@ -6575,7 +6575,7 @@ const Oc = G({
6575
6575
  function $c(s, e, t, r, o, n) {
6576
6576
  const c = t || kc;
6577
6577
  let l;
6578
- n != null;
6578
+ n != null && console.warn("You have supplied an `httpAgent` when creating a `Connection` in a browser environment.It has been ignored; `httpAgent` is only used in Node environments.");
6579
6579
  let h;
6580
6580
  return r && (h = async (R, I) => {
6581
6581
  const O = await new Promise((B, L) => {
@@ -6598,7 +6598,7 @@ function $c(s, e, t, r, o, n) {
6598
6598
  try {
6599
6599
  let B = 5, L, b = 500;
6600
6600
  for (; h ? L = await h(s, O) : L = await c(s, O), !(L.status !== 429 || o === !0 || (B -= 1, B === 0)); )
6601
- await Oe(b), b *= 2;
6601
+ console.error(`Server responded with ${L.status} ${L.statusText}. Retrying after ${b}ms delay...`), await Oe(b), b *= 2;
6602
6602
  const g = await L.text();
6603
6603
  L.ok ? I(null, g) : I(new Error(`${L.status} ${L.statusText}: ${g}`));
6604
6604
  } catch (B) {
@@ -7775,7 +7775,7 @@ class ff {
7775
7775
  */
7776
7776
  async getMinimumBalanceForRentExemption(e, t) {
7777
7777
  const r = this._buildArgs([e], t), o = await this._rpcRequest("getMinimumBalanceForRentExemption", r), n = V(o, Au);
7778
- return "error" in n ? 0 : n.result;
7778
+ return "error" in n ? (console.warn("Unable to fetch minimum balance for rent exemption"), 0) : n.result;
7779
7779
  }
7780
7780
  /**
7781
7781
  * Fetch a recent blockhash from the cluster, return with context
@@ -8448,7 +8448,7 @@ class ff {
8448
8448
  throw new Error("Invalid arguments");
8449
8449
  const A = t || {};
8450
8450
  A.encoding = "base64", "commitment" in A || (A.commitment = this.commitment);
8451
- const S = [g, A], N = await this._rpcRequest("simulateTransaction", S), C = V(N, uo);
8451
+ const S = [g, A], U = await this._rpcRequest("simulateTransaction", S), C = V(U, uo);
8452
8452
  if ("error" in C)
8453
8453
  throw new Error("failed to simulate transaction: " + C.error.message);
8454
8454
  return C.result;
@@ -8497,6 +8497,7 @@ class ff {
8497
8497
  if ("data" in B.error && (L = B.error.data.logs, L && Array.isArray(L))) {
8498
8498
  const b = `
8499
8499
  `, g = b + L.join(b);
8500
+ console.error(B.error.message, g);
8500
8501
  }
8501
8502
  throw new io("failed to simulate transaction: " + B.error.message, L);
8502
8503
  }
@@ -8587,7 +8588,7 @@ class ff {
8587
8588
  * @internal
8588
8589
  */
8589
8590
  _wsOnError(e) {
8590
- this._rpcWebSocketConnected = !1;
8591
+ this._rpcWebSocketConnected = !1, console.error("ws error:", e.message);
8591
8592
  }
8592
8593
  /**
8593
8594
  * @internal
@@ -8644,7 +8645,7 @@ class ff {
8644
8645
  try {
8645
8646
  this._rpcWebSocket.close();
8646
8647
  } catch (r) {
8647
- r instanceof Error;
8648
+ r instanceof Error && console.log(`Error when closing socket connection: ${r.message}`);
8648
8649
  }
8649
8650
  }, 500));
8650
8651
  return;
@@ -8686,7 +8687,7 @@ class ff {
8686
8687
  state: "subscribed"
8687
8688
  }), this._subscriptionCallbacksByServerSubscriptionId[l] = o.callbacks, await this._updateSubscriptions();
8688
8689
  } catch (l) {
8689
- if (l instanceof Error, !t())
8690
+ if (l instanceof Error && console.error(`${c} error for argument`, n, l.message), !t())
8690
8691
  return;
8691
8692
  this._setSubscription(r, {
8692
8693
  ...o,
@@ -8714,7 +8715,7 @@ class ff {
8714
8715
  try {
8715
8716
  await this._rpcWebSocket.call(c, [n]);
8716
8717
  } catch (l) {
8717
- if (l instanceof Error, !t())
8718
+ if (l instanceof Error && console.error(`${c} error:`, l.message), !t())
8718
8719
  return;
8719
8720
  this._setSubscription(r, {
8720
8721
  ...o,
@@ -8743,7 +8744,8 @@ class ff {
8743
8744
  o(
8744
8745
  ...t
8745
8746
  );
8746
- } catch {
8747
+ } catch (n) {
8748
+ console.error(n);
8747
8749
  }
8748
8750
  });
8749
8751
  }
@@ -8961,7 +8963,7 @@ class ff {
8961
8963
  */
8962
8964
  async _unsubscribeClientSubscription(e, t) {
8963
8965
  const r = this._subscriptionDisposeFunctionsByClientSubscriptionId[e];
8964
- r && await r();
8966
+ r ? await r() : console.warn(`Ignored unsubscribe request because an active subscription with id \`${e}\` for '${t}' events could not be found.`);
8965
8967
  }
8966
8968
  _buildArgs(e, t, r, o) {
8967
8969
  const n = t || this._commitment;
@@ -9323,8 +9325,8 @@ function Vu() {
9323
9325
  g = o(g) ^ S >> 5;
9324
9326
  }
9325
9327
  for (g = o(g), A = 0; A < b.length; ++A) {
9326
- var N = b.charCodeAt(A);
9327
- g = o(g) ^ N & 31;
9328
+ var U = b.charCodeAt(A);
9329
+ g = o(g) ^ U & 31;
9328
9330
  }
9329
9331
  return g;
9330
9332
  }
@@ -9333,18 +9335,18 @@ function Vu() {
9333
9335
  b = b.toLowerCase();
9334
9336
  var S = n(b);
9335
9337
  if (typeof S == "string") throw new Error(S);
9336
- for (var N = b + "1", C = 0; C < g.length; ++C) {
9338
+ for (var U = b + "1", C = 0; C < g.length; ++C) {
9337
9339
  var F = g[C];
9338
9340
  if (F >> 5 !== 0) throw new Error("Non 5-bit word");
9339
- S = o(S) ^ F, N += s.charAt(F);
9341
+ S = o(S) ^ F, U += s.charAt(F);
9340
9342
  }
9341
9343
  for (C = 0; C < 6; ++C)
9342
9344
  S = o(S);
9343
9345
  for (S ^= 1, C = 0; C < 6; ++C) {
9344
9346
  var q = S >> (5 - C) * 5 & 31;
9345
- N += s.charAt(q);
9347
+ U += s.charAt(q);
9346
9348
  }
9347
- return N;
9349
+ return U;
9348
9350
  }
9349
9351
  function l(b, g) {
9350
9352
  if (g = g || 90, b.length < 8) return b + " too short";
@@ -9352,10 +9354,10 @@ function Vu() {
9352
9354
  var A = b.toLowerCase(), S = b.toUpperCase();
9353
9355
  if (b !== A && b !== S) return "Mixed-case string " + b;
9354
9356
  b = A;
9355
- var N = b.lastIndexOf("1");
9356
- if (N === -1) return "No separator character for " + b;
9357
- if (N === 0) return "Missing prefix for " + b;
9358
- var C = b.slice(0, N), F = b.slice(N + 1);
9357
+ var U = b.lastIndexOf("1");
9358
+ if (U === -1) return "No separator character for " + b;
9359
+ if (U === 0) return "Missing prefix for " + b;
9360
+ var C = b.slice(0, U), F = b.slice(U + 1);
9359
9361
  if (F.length < 6) return "Data too short";
9360
9362
  var q = n(C);
9361
9363
  if (typeof q == "string") return q;
@@ -9376,14 +9378,14 @@ function Vu() {
9376
9378
  throw new Error(g);
9377
9379
  }
9378
9380
  function R(b, g, A, S) {
9379
- for (var N = 0, C = 0, F = (1 << A) - 1, q = [], $ = 0; $ < b.length; ++$)
9380
- for (N = N << g | b[$], C += g; C >= A; )
9381
- C -= A, q.push(N >> C & F);
9381
+ for (var U = 0, C = 0, F = (1 << A) - 1, q = [], $ = 0; $ < b.length; ++$)
9382
+ for (U = U << g | b[$], C += g; C >= A; )
9383
+ C -= A, q.push(U >> C & F);
9382
9384
  if (S)
9383
- C > 0 && q.push(N << A - C & F);
9385
+ C > 0 && q.push(U << A - C & F);
9384
9386
  else {
9385
9387
  if (C >= g) return "Excess padding";
9386
- if (N << A - C & F) return "Non-zero padding";
9388
+ if (U << A - C & F) return "Non-zero padding";
9387
9389
  }
9388
9390
  return q;
9389
9391
  }