@gardenfi/core 2.1.3-beta.40 → 2.1.3-beta.41

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.
@@ -1,24 +1,24 @@
1
- var Zl = Object.defineProperty;
2
- var Ql = (e, t, r) => t in e ? Zl(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
3
- var Vr = (e, t, r) => Ql(e, typeof t != "symbol" ? t + "" : t, r);
4
- import { ArbitrumLocalnet as eh, EthereumLocalnet as th, isEVM as rh, isEvmNativeToken as nh, Orderbook as ih, isMainnet as $i, getTimeLock as sh, isBitcoin as co, getBlockchainType as uo, BlockchainType as Ct } from "@gardenfi/orderbook";
5
- import { Environment as St, Ok as rn, Err as Se, Url as Pt, Network as hs, EventBroker as of, with0x as Jr, checkAllowanceAndApprove as oh, sleep as Zo, hexToU32Array as ps, DigestKey as Sc, Siwe as Pc } from "@gardenfi/utils";
6
- import { BitcoinNetwork as Tc, Urgency as Ic, BitcoinProvider as ah, BitcoinWallet as ch } from "@catalogfi/wallets";
1
+ var Jl = Object.defineProperty;
2
+ var Zl = (e, t, r) => t in e ? Jl(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
3
+ var Vr = (e, t, r) => Zl(e, typeof t != "symbol" ? t + "" : t, r);
4
+ import { ArbitrumLocalnet as Ql, EthereumLocalnet as eh, isEVM as th, isEvmNativeToken as rh, Orderbook as nh, isMainnet as $i, getTimeLock as ih, isBitcoin as co, getBlockchainType as uo, BlockchainType as Ct } from "@gardenfi/orderbook";
5
+ import { Environment as St, Ok as rn, Err as Se, Url as Pt, Network as hs, EventBroker as of, with0x as Jr, checkAllowanceAndApprove as sh, sleep as Zo, hexToU32Array as ps, DigestKey as Sc, Siwe as Pc } from "@gardenfi/utils";
6
+ import { BitcoinNetwork as Tc, Urgency as Ic, BitcoinProvider as oh, BitcoinWallet as ah } from "@catalogfi/wallets";
7
7
  import * as kc from "varuint-bitcoin";
8
- import uh from "varuint-bitcoin";
8
+ import ch from "varuint-bitcoin";
9
9
  import * as Cr from "tiny-secp256k1";
10
10
  import * as ae from "bitcoinjs-lib";
11
- import { crypto as fh } from "bitcoinjs-lib";
12
- import dh from "bignumber.js";
13
- import { cairo as Vn, uint256 as af, TransactionExecutionStatus as cf, Contract as Oa, RpcProvider as uf, num as ff, TypedDataRevision as lh, shortString as hh, CallData as Bc } from "starknet";
14
- var df = (e, t, r) => {
11
+ import { crypto as uh } from "bitcoinjs-lib";
12
+ import fh from "bignumber.js";
13
+ import { cairo as Vn, uint256 as dh, TransactionExecutionStatus as af, Contract as Oa, RpcProvider as cf, num as uf, TypedDataRevision as lh, shortString as hh, CallData as Bc } from "starknet";
14
+ var ff = (e, t, r) => {
15
15
  if (!t.has(e))
16
16
  throw TypeError("Cannot " + r);
17
- }, fo = (e, t, r) => (df(e, t, "read from private field"), r ? r.call(e) : t.get(e)), lo = (e, t, r) => {
17
+ }, fo = (e, t, r) => (ff(e, t, "read from private field"), r ? r.call(e) : t.get(e)), lo = (e, t, r) => {
18
18
  if (t.has(e))
19
19
  throw TypeError("Cannot add the same private member more than once");
20
20
  t instanceof WeakSet ? t.add(e) : t.set(e, r);
21
- }, ho = (e, t, r, n) => (df(e, t, "write to private field"), t.set(e, r), r);
21
+ }, ho = (e, t, r, n) => (ff(e, t, "write to private field"), t.set(e, r), r);
22
22
  const ph = (e) => new Promise((t) => setTimeout(t, e));
23
23
  class yh {
24
24
  /**
@@ -238,7 +238,7 @@ function Yt(e, t) {
238
238
  const r = e.exec(t);
239
239
  return r == null ? void 0 : r.groups;
240
240
  }
241
- const lf = /^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/, hf = /^u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/, pf = /^\(.+?\).*?$/, Oc = /^tuple(?<array>(\[(\d*)\])*)$/;
241
+ const df = /^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/, lf = /^u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/, hf = /^\(.+?\).*?$/, Oc = /^tuple(?<array>(\[(\d*)\])*)$/;
242
242
  function ta(e) {
243
243
  let t = e.type;
244
244
  if (Oc.test(e.type) && "components" in e) {
@@ -269,47 +269,47 @@ function gh(e) {
269
269
  var t;
270
270
  return e.type === "function" ? `function ${e.name}(${Tn(e.inputs)})${e.stateMutability && e.stateMutability !== "nonpayable" ? ` ${e.stateMutability}` : ""}${(t = e.outputs) != null && t.length ? ` returns (${Tn(e.outputs)})` : ""}` : e.type === "event" ? `event ${e.name}(${Tn(e.inputs)})` : e.type === "error" ? `error ${e.name}(${Tn(e.inputs)})` : e.type === "constructor" ? `constructor(${Tn(e.inputs)})${e.stateMutability === "payable" ? " payable" : ""}` : e.type === "fallback" ? `fallback() external${e.stateMutability === "payable" ? " payable" : ""}` : "receive() external payable";
271
271
  }
272
- const yf = /^error (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)$/;
272
+ const pf = /^error (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)$/;
273
273
  function wh(e) {
274
- return yf.test(e);
274
+ return pf.test(e);
275
275
  }
276
276
  function _h(e) {
277
- return Yt(yf, e);
277
+ return Yt(pf, e);
278
278
  }
279
- const mf = /^event (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)$/;
279
+ const yf = /^event (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)$/;
280
280
  function vh(e) {
281
- return mf.test(e);
281
+ return yf.test(e);
282
282
  }
283
283
  function Eh(e) {
284
- return Yt(mf, e);
284
+ return Yt(yf, e);
285
285
  }
286
- const bf = /^function (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)(?: (?<scope>external|public{1}))?(?: (?<stateMutability>pure|view|nonpayable|payable{1}))?(?: returns\s?\((?<returns>.*?)\))?$/;
286
+ const mf = /^function (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)(?: (?<scope>external|public{1}))?(?: (?<stateMutability>pure|view|nonpayable|payable{1}))?(?: returns\s?\((?<returns>.*?)\))?$/;
287
287
  function xh(e) {
288
- return bf.test(e);
288
+ return mf.test(e);
289
289
  }
290
290
  function Ah(e) {
291
- return Yt(bf, e);
291
+ return Yt(mf, e);
292
292
  }
293
- const gf = /^struct (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*) \{(?<properties>.*?)\}$/;
294
- function wf(e) {
295
- return gf.test(e);
293
+ const bf = /^struct (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*) \{(?<properties>.*?)\}$/;
294
+ function gf(e) {
295
+ return bf.test(e);
296
296
  }
297
297
  function Sh(e) {
298
- return Yt(gf, e);
298
+ return Yt(bf, e);
299
299
  }
300
- const _f = /^constructor\((?<parameters>.*?)\)(?:\s(?<stateMutability>payable{1}))?$/;
300
+ const wf = /^constructor\((?<parameters>.*?)\)(?:\s(?<stateMutability>payable{1}))?$/;
301
301
  function Ph(e) {
302
- return _f.test(e);
302
+ return wf.test(e);
303
303
  }
304
304
  function Th(e) {
305
- return Yt(_f, e);
305
+ return Yt(wf, e);
306
306
  }
307
- const vf = /^fallback\(\) external(?:\s(?<stateMutability>payable{1}))?$/;
307
+ const _f = /^fallback\(\) external(?:\s(?<stateMutability>payable{1}))?$/;
308
308
  function Ih(e) {
309
- return vf.test(e);
309
+ return _f.test(e);
310
310
  }
311
311
  function kh(e) {
312
- return Yt(vf, e);
312
+ return Yt(_f, e);
313
313
  }
314
314
  const Bh = /^receive\(\) external payable$/;
315
315
  function Ch(e) {
@@ -645,7 +645,7 @@ function Or(e, t) {
645
645
  const r = zh(e, t == null ? void 0 : t.type, t == null ? void 0 : t.structs);
646
646
  if (po.has(r))
647
647
  return po.get(r);
648
- const n = pf.test(e), i = Yt(n ? Zh : Jh, e);
648
+ const n = hf.test(e), i = Yt(n ? Zh : Jh, e);
649
649
  if (!i)
650
650
  throw new Uh({ param: e });
651
651
  if (i.name && t0(i.name))
@@ -662,7 +662,7 @@ function Or(e, t) {
662
662
  c = "tuple", f = { components: a[i.type] };
663
663
  else if (Qh.test(i.type))
664
664
  c = `${i.type}256`;
665
- else if (c = i.type, (t == null ? void 0 : t.type) !== "struct" && !Ef(c))
665
+ else if (c = i.type, (t == null ? void 0 : t.type) !== "struct" && !vf(c))
666
666
  throw new Lh({ type: c });
667
667
  if (i.modifier) {
668
668
  if (!((m = (h = t == null ? void 0 : t.modifiers) == null ? void 0 : h.has) != null && m.call(h, i.modifier)))
@@ -707,12 +707,12 @@ function pt(e, t = [], r = "", n = 0) {
707
707
  throw new Gh({ current: r, depth: n });
708
708
  return t.push(r.trim()), t;
709
709
  }
710
- function Ef(e) {
711
- return e === "address" || e === "bool" || e === "function" || e === "string" || lf.test(e) || hf.test(e);
710
+ function vf(e) {
711
+ return e === "address" || e === "bool" || e === "function" || e === "string" || df.test(e) || lf.test(e);
712
712
  }
713
713
  const e0 = /^(?:after|alias|anonymous|apply|auto|byte|calldata|case|catch|constant|copyof|default|defined|error|event|external|false|final|function|immutable|implements|in|indexed|inline|internal|let|mapping|match|memory|mutable|null|of|override|partial|private|promise|public|pure|reference|relocatable|return|returns|sizeof|static|storage|struct|super|supports|switch|this|true|try|typedef|typeof|var|view|virtual)$/;
714
714
  function t0(e) {
715
- return e === "address" || e === "bool" || e === "function" || e === "string" || e === "tuple" || lf.test(e) || hf.test(e) || e0.test(e);
715
+ return e === "address" || e === "bool" || e === "function" || e === "string" || e === "tuple" || df.test(e) || lf.test(e) || e0.test(e);
716
716
  }
717
717
  function r0(e, t) {
718
718
  return t || e === "bytes" || e === "string" || e === "tuple";
@@ -721,7 +721,7 @@ function n0(e) {
721
721
  const t = {}, r = e.length;
722
722
  for (let o = 0; o < r; o++) {
723
723
  const a = e[o];
724
- if (!wf(a))
724
+ if (!gf(a))
725
725
  continue;
726
726
  const c = Sh(a);
727
727
  if (!c)
@@ -743,16 +743,16 @@ function n0(e) {
743
743
  const n = {}, i = Object.entries(t), s = i.length;
744
744
  for (let o = 0; o < s; o++) {
745
745
  const [a, c] = i[o];
746
- n[a] = xf(c, t);
746
+ n[a] = Ef(c, t);
747
747
  }
748
748
  return n;
749
749
  }
750
750
  const i0 = /^(?<type>[a-zA-Z$_][a-zA-Z0-9$_]*)(?<array>(?:\[\d*?\])+?)?$/;
751
- function xf(e, t, r = /* @__PURE__ */ new Set()) {
751
+ function Ef(e, t, r = /* @__PURE__ */ new Set()) {
752
752
  const n = [], i = e.length;
753
753
  for (let s = 0; s < i; s++) {
754
754
  const o = e[s];
755
- if (pf.test(o.type))
755
+ if (hf.test(o.type))
756
756
  n.push(o);
757
757
  else {
758
758
  const c = Yt(i0, o.type);
@@ -765,9 +765,9 @@ function xf(e, t, r = /* @__PURE__ */ new Set()) {
765
765
  n.push({
766
766
  ...o,
767
767
  type: `tuple${f ?? ""}`,
768
- components: xf(t[l] ?? [], t, /* @__PURE__ */ new Set([...r, l]))
768
+ components: Ef(t[l] ?? [], t, /* @__PURE__ */ new Set([...r, l]))
769
769
  });
770
- } else if (Ef(l))
770
+ } else if (vf(l))
771
771
  n.push(o);
772
772
  else
773
773
  throw new Rh({ type: l });
@@ -775,11 +775,11 @@ function xf(e, t, r = /* @__PURE__ */ new Set()) {
775
775
  }
776
776
  return n;
777
777
  }
778
- function Af(e) {
778
+ function xf(e) {
779
779
  const t = n0(e), r = [], n = e.length;
780
780
  for (let i = 0; i < n; i++) {
781
781
  const s = e[i];
782
- wf(s) || r.push(qh(s, t));
782
+ gf(s) || r.push(qh(s, t));
783
783
  }
784
784
  return r;
785
785
  }
@@ -807,10 +807,10 @@ function hr(e, { strict: t = !0 } = {}) {
807
807
  function Ie(e) {
808
808
  return hr(e, { strict: !1 }) ? Math.ceil((e.length - 2) / 2) : e.length;
809
809
  }
810
- const Sf = "2.28.0";
810
+ const Af = "2.28.0";
811
811
  let In = {
812
812
  getDocsUrl: ({ docsBaseUrl: e, docsPath: t = "", docsSlug: r }) => t ? `${e ?? "https://viem.sh"}${t}${r ? `#${r}` : ""}` : void 0,
813
- version: `viem@${Sf}`
813
+ version: `viem@${Af}`
814
814
  };
815
815
  class $ extends Error {
816
816
  constructor(t, r = {}) {
@@ -857,14 +857,14 @@ class $ extends Error {
857
857
  configurable: !0,
858
858
  writable: !0,
859
859
  value: "BaseError"
860
- }), this.details = n, this.docsPath = i, this.metaMessages = r.metaMessages, this.name = r.name ?? this.name, this.shortMessage = t, this.version = Sf;
860
+ }), this.details = n, this.docsPath = i, this.metaMessages = r.metaMessages, this.name = r.name ?? this.name, this.shortMessage = t, this.version = Af;
861
861
  }
862
862
  walk(t) {
863
- return Pf(this, t);
863
+ return Sf(this, t);
864
864
  }
865
865
  }
866
- function Pf(e, t) {
867
- return t != null && t(e) ? e : e && typeof e == "object" && "cause" in e && e.cause !== void 0 ? Pf(e.cause, t) : t ? null : e;
866
+ function Sf(e, t) {
867
+ return t != null && t(e) ? e : e && typeof e == "object" && "cause" in e && e.cause !== void 0 ? Sf(e.cause, t) : t ? null : e;
868
868
  }
869
869
  class o0 extends $ {
870
870
  constructor({ docsPath: t }) {
@@ -890,7 +890,7 @@ class Rc extends $ {
890
890
  });
891
891
  }
892
892
  }
893
- class Tf extends $ {
893
+ class Pf extends $ {
894
894
  constructor({ data: t, params: r, size: n }) {
895
895
  super([`Data size of ${n} bytes is too small for given parameters.`].join(`
896
896
  `), {
@@ -974,7 +974,7 @@ class X_ extends $ {
974
974
  });
975
975
  }
976
976
  }
977
- class If extends $ {
977
+ class Tf extends $ {
978
978
  constructor(t, { docsPath: r }) {
979
979
  super([
980
980
  `Encoded error signature "${t}" not found on ABI.`,
@@ -1000,7 +1000,7 @@ class f0 extends $ {
1000
1000
  });
1001
1001
  }
1002
1002
  }
1003
- class kf extends $ {
1003
+ class If extends $ {
1004
1004
  constructor(t, { docsPath: r }) {
1005
1005
  super([
1006
1006
  `Encoded event signature "${t}" not found on ABI.`,
@@ -1173,12 +1173,12 @@ class g0 extends $ {
1173
1173
  });
1174
1174
  }
1175
1175
  }
1176
- class Bf extends $ {
1176
+ class kf extends $ {
1177
1177
  constructor({ offset: t, position: r, size: n }) {
1178
1178
  super(`Slice ${r === "start" ? "starting" : "ending"} at offset "${t}" is out-of-bounds (size: ${n}).`, { name: "SliceOffsetOutOfBoundsError" });
1179
1179
  }
1180
1180
  }
1181
- class Cf extends $ {
1181
+ class Bf extends $ {
1182
1182
  constructor({ size: t, targetSize: r, type: n }) {
1183
1183
  super(`${n.charAt(0).toUpperCase()}${n.slice(1).toLowerCase()} size (${t}) exceeds padding size (${r}).`, { name: "SizeExceedsPaddingSizeError" });
1184
1184
  }
@@ -1196,7 +1196,7 @@ function fr(e, { dir: t, size: r = 32 } = {}) {
1196
1196
  return e;
1197
1197
  const n = e.replace("0x", "");
1198
1198
  if (n.length > r * 2)
1199
- throw new Cf({
1199
+ throw new Bf({
1200
1200
  size: Math.ceil(n.length / 2),
1201
1201
  targetSize: r,
1202
1202
  type: "hex"
@@ -1207,7 +1207,7 @@ function w0(e, { dir: t, size: r = 32 } = {}) {
1207
1207
  if (r === null)
1208
1208
  return e;
1209
1209
  if (e.length > r)
1210
- throw new Cf({
1210
+ throw new Bf({
1211
1211
  size: e.length,
1212
1212
  targetSize: r,
1213
1213
  type: "bytes"
@@ -1219,7 +1219,7 @@ function w0(e, { dir: t, size: r = 32 } = {}) {
1219
1219
  }
1220
1220
  return n;
1221
1221
  }
1222
- class Of extends $ {
1222
+ class Cf extends $ {
1223
1223
  constructor({ max: t, min: r, signed: n, size: i, value: s }) {
1224
1224
  super(`Number "${s}" is not in safe ${i ? `${i * 8}-bit ${n ? "signed" : "unsigned"} ` : ""}integer range ${t ? `(${r} to ${t})` : `(above ${r})`}`, { name: "IntegerOutOfRangeError" });
1225
1225
  }
@@ -1263,9 +1263,9 @@ function Gt(e, t = {}) {
1263
1263
  }
1264
1264
  const E0 = /* @__PURE__ */ Array.from({ length: 256 }, (e, t) => t.toString(16).padStart(2, "0"));
1265
1265
  function X(e, t = {}) {
1266
- return typeof e == "number" || typeof e == "bigint" ? J(e, t) : typeof e == "string" ? Bs(e, t) : typeof e == "boolean" ? Rf(e, t) : Je(e, t);
1266
+ return typeof e == "number" || typeof e == "bigint" ? J(e, t) : typeof e == "string" ? Bs(e, t) : typeof e == "boolean" ? Of(e, t) : Je(e, t);
1267
1267
  }
1268
- function Rf(e, t = {}) {
1268
+ function Of(e, t = {}) {
1269
1269
  const r = `0x${Number(e)}`;
1270
1270
  return typeof t.size == "number" ? (It(r, { size: t.size }), vn(r, { size: t.size })) : r;
1271
1271
  }
@@ -1283,7 +1283,7 @@ function J(e, t = {}) {
1283
1283
  const o = typeof s == "bigint" && r ? -s - 1n : 0;
1284
1284
  if (s && i > s || i < o) {
1285
1285
  const c = typeof e == "bigint" ? "n" : "";
1286
- throw new Of({
1286
+ throw new Cf({
1287
1287
  max: s ? `${s}${c}` : void 0,
1288
1288
  min: `${o}${c}`,
1289
1289
  signed: r,
@@ -1301,7 +1301,7 @@ function Bs(e, t = {}) {
1301
1301
  }
1302
1302
  const A0 = /* @__PURE__ */ new TextEncoder();
1303
1303
  function xi(e, t = {}) {
1304
- return typeof e == "number" || typeof e == "bigint" ? P0(e, t) : typeof e == "boolean" ? S0(e, t) : hr(e) ? zt(e, t) : Lf(e, t);
1304
+ return typeof e == "number" || typeof e == "bigint" ? P0(e, t) : typeof e == "boolean" ? S0(e, t) : hr(e) ? zt(e, t) : Rf(e, t);
1305
1305
  }
1306
1306
  function S0(e, t = {}) {
1307
1307
  const r = new Uint8Array(1);
@@ -1341,7 +1341,7 @@ function P0(e, t) {
1341
1341
  const r = J(e, t);
1342
1342
  return zt(r);
1343
1343
  }
1344
- function Lf(e, t = {}) {
1344
+ function Rf(e, t = {}) {
1345
1345
  const r = A0.encode(e);
1346
1346
  return typeof t.size == "number" ? (It(r, { size: t.size }), vn(r, { dir: "right", size: t.size })) : r;
1347
1347
  }
@@ -1369,7 +1369,7 @@ function gs(e, t = !0) {
1369
1369
  if (t && e.finished)
1370
1370
  throw new Error("Hash#digest() has already been called");
1371
1371
  }
1372
- function Uf(e, t) {
1372
+ function Lf(e, t) {
1373
1373
  Cs(e);
1374
1374
  const r = t.outputLen;
1375
1375
  if (e.length < r)
@@ -1428,13 +1428,13 @@ function Q_(...e) {
1428
1428
  }
1429
1429
  return r;
1430
1430
  }
1431
- let Nf = class {
1431
+ let Uf = class {
1432
1432
  // Safe version that clones internal state
1433
1433
  clone() {
1434
1434
  return this._cloneInto();
1435
1435
  }
1436
1436
  };
1437
- function Ff(e) {
1437
+ function Nf(e) {
1438
1438
  const t = (n) => e().update(Ua(n)).digest(), r = e();
1439
1439
  return t.outputLen = r.outputLen, t.blockLen = r.blockLen, t.create = () => e(), t;
1440
1440
  }
@@ -1445,15 +1445,15 @@ function tv(e = 32) {
1445
1445
  return Uint8Array.from(Wr.randomBytes(e));
1446
1446
  throw new Error("crypto.getRandomValues must be defined");
1447
1447
  }
1448
- const $f = [], Mf = [], Hf = [], F0 = /* @__PURE__ */ BigInt(0), kn = /* @__PURE__ */ BigInt(1), $0 = /* @__PURE__ */ BigInt(2), M0 = /* @__PURE__ */ BigInt(7), H0 = /* @__PURE__ */ BigInt(256), D0 = /* @__PURE__ */ BigInt(113);
1448
+ const Ff = [], $f = [], Mf = [], F0 = /* @__PURE__ */ BigInt(0), kn = /* @__PURE__ */ BigInt(1), $0 = /* @__PURE__ */ BigInt(2), M0 = /* @__PURE__ */ BigInt(7), H0 = /* @__PURE__ */ BigInt(256), D0 = /* @__PURE__ */ BigInt(113);
1449
1449
  for (let e = 0, t = kn, r = 1, n = 0; e < 24; e++) {
1450
- [r, n] = [n, (2 * r + 3 * n) % 5], $f.push(2 * (5 * n + r)), Mf.push((e + 1) * (e + 2) / 2 % 64);
1450
+ [r, n] = [n, (2 * r + 3 * n) % 5], Ff.push(2 * (5 * n + r)), $f.push((e + 1) * (e + 2) / 2 % 64);
1451
1451
  let i = F0;
1452
1452
  for (let s = 0; s < 7; s++)
1453
1453
  t = (t << kn ^ (t >> M0) * D0) % H0, t & $0 && (i ^= kn << (kn << /* @__PURE__ */ BigInt(s)) - kn);
1454
- Hf.push(i);
1454
+ Mf.push(i);
1455
1455
  }
1456
- const [j0, G0] = /* @__PURE__ */ k0(Hf, !0), Hc = (e, t, r) => r > 32 ? O0(e, t, r) : B0(e, t, r), Dc = (e, t, r) => r > 32 ? R0(e, t, r) : C0(e, t, r);
1456
+ const [j0, G0] = /* @__PURE__ */ k0(Mf, !0), Hc = (e, t, r) => r > 32 ? O0(e, t, r) : B0(e, t, r), Dc = (e, t, r) => r > 32 ? R0(e, t, r) : C0(e, t, r);
1457
1457
  function z0(e, t = 24) {
1458
1458
  const r = new Uint32Array(10);
1459
1459
  for (let n = 24 - t; n < 24; n++) {
@@ -1466,7 +1466,7 @@ function z0(e, t = 24) {
1466
1466
  }
1467
1467
  let i = e[2], s = e[3];
1468
1468
  for (let o = 0; o < 24; o++) {
1469
- const a = Mf[o], c = Hc(i, s, a), f = Dc(i, s, a), l = $f[o];
1469
+ const a = $f[o], c = Hc(i, s, a), f = Dc(i, s, a), l = Ff[o];
1470
1470
  i = e[l], s = e[l + 1], e[l] = c, e[l + 1] = f;
1471
1471
  }
1472
1472
  for (let o = 0; o < 50; o += 10) {
@@ -1479,7 +1479,7 @@ function z0(e, t = 24) {
1479
1479
  }
1480
1480
  r.fill(0);
1481
1481
  }
1482
- class Na extends Nf {
1482
+ class Na extends Uf {
1483
1483
  // NOTE: we accept arguments in bytes instead of bits here.
1484
1484
  constructor(t, r, n, i = !1, s = 24) {
1485
1485
  if (super(), this.pos = 0, this.posOut = 0, this.finished = !1, this.destroyed = !1, this.enableXOF = !1, this.blockLen = t, this.suffix = r, this.outputLen = n, this.enableXOF = i, this.rounds = s, bs(n), 0 >= this.blockLen || this.blockLen >= 200)
@@ -1528,7 +1528,7 @@ class Na extends Nf {
1528
1528
  return bs(t), this.xofInto(new Uint8Array(t));
1529
1529
  }
1530
1530
  digestInto(t) {
1531
- if (Uf(t, this), this.finished)
1531
+ if (Lf(t, this), this.finished)
1532
1532
  throw new Error("digest() was already called");
1533
1533
  return this.writeInto(t), this.destroy(), t;
1534
1534
  }
@@ -1543,7 +1543,7 @@ class Na extends Nf {
1543
1543
  return t || (t = new Na(r, n, i, o, s)), t.state32.set(this.state32), t.pos = this.pos, t.posOut = this.posOut, t.finished = this.finished, t.rounds = s, t.suffix = n, t.outputLen = i, t.enableXOF = o, t.destroyed = this.destroyed, t;
1544
1544
  }
1545
1545
  }
1546
- const q0 = (e, t, r) => Ff(() => new Na(t, e, r)), V0 = /* @__PURE__ */ q0(1, 136, 256 / 8);
1546
+ const q0 = (e, t, r) => Nf(() => new Na(t, e, r)), V0 = /* @__PURE__ */ q0(1, 136, 256 / 8);
1547
1547
  function En(e, t) {
1548
1548
  const r = t || "hex", n = V0(hr(e, { strict: !1 }) ? xi(e) : e);
1549
1549
  return r === "bytes" ? n : X(n);
@@ -1581,10 +1581,10 @@ const X0 = (e) => {
1581
1581
  const t = typeof e == "string" ? e : gh(e);
1582
1582
  return Y0(t);
1583
1583
  };
1584
- function Df(e) {
1584
+ function Hf(e) {
1585
1585
  return K0(X0(e));
1586
1586
  }
1587
- const Os = Df;
1587
+ const Os = Hf;
1588
1588
  class Ze extends $ {
1589
1589
  constructor({ address: t }) {
1590
1590
  super(`Address "${t}" is invalid.`, {
@@ -1621,7 +1621,7 @@ const mo = /* @__PURE__ */ new Rs(8192);
1621
1621
  function Ai(e, t) {
1622
1622
  if (mo.has(`${e}.${t}`))
1623
1623
  return mo.get(`${e}.${t}`);
1624
- const r = e.substring(2).toLowerCase(), n = En(Lf(r), "bytes"), i = r.split("");
1624
+ const r = e.substring(2).toLowerCase(), n = En(Rf(r), "bytes"), i = r.split("");
1625
1625
  for (let o = 0; o < 40; o += 2)
1626
1626
  n[o >> 1] >> 4 >= 8 && i[o] && (i[o] = i[o].toUpperCase()), (n[o >> 1] & 15) >= 8 && i[o + 1] && (i[o + 1] = i[o + 1].toUpperCase());
1627
1627
  const s = `0x${i.join("")}`;
@@ -1659,37 +1659,37 @@ function Xt(e) {
1659
1659
  function Xn(e, t, r, { strict: n } = {}) {
1660
1660
  return hr(e, { strict: !1 }) ? ep(e, t, r, {
1661
1661
  strict: n
1662
- }) : zf(e, t, r, {
1662
+ }) : Gf(e, t, r, {
1663
1663
  strict: n
1664
1664
  });
1665
1665
  }
1666
- function jf(e, t) {
1666
+ function Df(e, t) {
1667
1667
  if (typeof t == "number" && t > 0 && t > Ie(e) - 1)
1668
- throw new Bf({
1668
+ throw new kf({
1669
1669
  offset: t,
1670
1670
  position: "start",
1671
1671
  size: Ie(e)
1672
1672
  });
1673
1673
  }
1674
- function Gf(e, t, r) {
1674
+ function jf(e, t, r) {
1675
1675
  if (typeof t == "number" && typeof r == "number" && Ie(e) !== r - t)
1676
- throw new Bf({
1676
+ throw new kf({
1677
1677
  offset: r,
1678
1678
  position: "end",
1679
1679
  size: Ie(e)
1680
1680
  });
1681
1681
  }
1682
- function zf(e, t, r, { strict: n } = {}) {
1683
- jf(e, t);
1682
+ function Gf(e, t, r, { strict: n } = {}) {
1683
+ Df(e, t);
1684
1684
  const i = e.slice(t, r);
1685
- return n && Gf(i, t, r), i;
1685
+ return n && jf(i, t, r), i;
1686
1686
  }
1687
1687
  function ep(e, t, r, { strict: n } = {}) {
1688
- jf(e, t);
1688
+ Df(e, t);
1689
1689
  const i = `0x${e.replace("0x", "").slice((t ?? 0) * 2, (r ?? e.length) * 2)}`;
1690
- return n && Gf(i, t, r), i;
1690
+ return n && jf(i, t, r), i;
1691
1691
  }
1692
- const tp = /^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/, qf = /^(u?int)(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/;
1692
+ const tp = /^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/, zf = /^(u?int)(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/;
1693
1693
  function Fa(e, t) {
1694
1694
  if (e.length !== t.length)
1695
1695
  throw new u0({
@@ -1723,7 +1723,7 @@ function $a({ param: e, value: t }) {
1723
1723
  if (e.type === "bool")
1724
1724
  return op(t);
1725
1725
  if (e.type.startsWith("uint") || e.type.startsWith("int")) {
1726
- const n = e.type.startsWith("int"), [, , i = "256"] = qf.exec(e.type) ?? [];
1726
+ const n = e.type.startsWith("int"), [, , i = "256"] = zf.exec(e.type) ?? [];
1727
1727
  return ap(t, {
1728
1728
  signed: n,
1729
1729
  size: Number(i)
@@ -1811,13 +1811,13 @@ function sp(e, { param: t }) {
1811
1811
  function op(e) {
1812
1812
  if (typeof e != "boolean")
1813
1813
  throw new $(`Invalid boolean value: "${e}" (type: ${typeof e}). Expected: \`true\` or \`false\`.`);
1814
- return { dynamic: !1, encoded: fr(Rf(e)) };
1814
+ return { dynamic: !1, encoded: fr(Of(e)) };
1815
1815
  }
1816
1816
  function ap(e, { signed: t, size: r = 256 }) {
1817
1817
  if (typeof r == "number") {
1818
1818
  const n = 2n ** (BigInt(r) - (t ? 1n : 0n)) - 1n, i = t ? -n - 1n : 0n;
1819
1819
  if (e > n || e < i)
1820
- throw new Of({
1820
+ throw new Cf({
1821
1821
  max: n.toString(),
1822
1822
  min: i.toString(),
1823
1823
  signed: t,
@@ -1869,7 +1869,7 @@ function Ha(e) {
1869
1869
  [t[2] ? Number(t[2]) : null, t[1]]
1870
1870
  ) : void 0;
1871
1871
  }
1872
- const Da = (e) => Xn(Df(e), 0, 4);
1872
+ const Da = (e) => Xn(Hf(e), 0, 4);
1873
1873
  function Si(e) {
1874
1874
  const { abi: t, args: r = [], name: n } = e, i = hr(n, { strict: !1 }), s = t.filter((a) => i ? a.type === "function" ? Da(a) === n : a.type === "event" ? Os(a) === n : !1 : "name" in a && a.name === n);
1875
1875
  if (s.length === 0)
@@ -1892,7 +1892,7 @@ function Si(e) {
1892
1892
  return h ? na(f, h) : !1;
1893
1893
  })) {
1894
1894
  if (o && "inputs" in o && o.inputs) {
1895
- const f = Vf(a.inputs, o.inputs, r);
1895
+ const f = qf(a.inputs, o.inputs, r);
1896
1896
  if (f)
1897
1897
  throw new l0({
1898
1898
  abiItem: a,
@@ -1926,11 +1926,11 @@ function na(e, t) {
1926
1926
  })) : !1;
1927
1927
  }
1928
1928
  }
1929
- function Vf(e, t, r) {
1929
+ function qf(e, t, r) {
1930
1930
  for (const n in e) {
1931
1931
  const i = e[n], s = t[n];
1932
1932
  if (i.type === "tuple" && s.type === "tuple" && "components" in i && "components" in s)
1933
- return Vf(i.components, s.components, r[n]);
1933
+ return qf(i.components, s.components, r[n]);
1934
1934
  const o = [i.type, s.type];
1935
1935
  if (o.includes("address") && o.includes("bytes20") ? !0 : o.includes("address") && o.includes("string") ? Re(r[n], { strict: !1 }) : o.includes("address") && o.includes("bytes") ? Re(r[n], { strict: !1 }) : !1)
1936
1936
  return o;
@@ -1971,7 +1971,7 @@ function fp(e, { method: t }) {
1971
1971
  a === "success" && t === s && (r[o] = c.request);
1972
1972
  })), (s) => r[s] || e.request;
1973
1973
  }
1974
- async function Wf(e, t) {
1974
+ async function Vf(e, t) {
1975
1975
  const { address: r, abi: n, args: i, eventName: s, fromBlock: o, strict: a, toBlock: c } = t, f = fp(e, {
1976
1976
  method: "eth_newFilter"
1977
1977
  }), l = s ? ja({
@@ -2066,7 +2066,7 @@ class qc extends $ {
2066
2066
  });
2067
2067
  }
2068
2068
  }
2069
- class Kf extends $ {
2069
+ class Wf extends $ {
2070
2070
  constructor({ length: t, position: r }) {
2071
2071
  super(`Position \`${r}\` is out of bounds (\`0 < position < ${t}\`).`, { name: "PositionOutOfBoundsError" });
2072
2072
  }
@@ -2092,7 +2092,7 @@ const mp = {
2092
2092
  },
2093
2093
  assertPosition(e) {
2094
2094
  if (e < 0 || e > this.bytes.length - 1)
2095
- throw new Kf({
2095
+ throw new Wf({
2096
2096
  length: this.bytes.length,
2097
2097
  position: e
2098
2098
  });
@@ -2227,7 +2227,7 @@ function Ls(e, t) {
2227
2227
  if (Ie(r) === 0 && e.length > 0)
2228
2228
  throw new Ra();
2229
2229
  if (Ie(t) && Ie(t) < 32)
2230
- throw new Tf({
2230
+ throw new Pf({
2231
2231
  data: typeof t == "string" ? t : Je(t),
2232
2232
  params: e,
2233
2233
  size: Ie(t)
@@ -2269,7 +2269,7 @@ function on(e, t, { staticPosition: r }) {
2269
2269
  const Vc = 32, ia = 32;
2270
2270
  function _p(e) {
2271
2271
  const t = e.readBytes(32);
2272
- return [Ai(Je(zf(t, -20))), 32];
2272
+ return [Ai(Je(Gf(t, -20))), 32];
2273
2273
  }
2274
2274
  function vp(e, t, { length: r, staticPosition: n }) {
2275
2275
  if (!r) {
@@ -2379,7 +2379,7 @@ function Tp(e) {
2379
2379
  throw new Ra();
2380
2380
  const s = [...t || [], hp, pp].find((o) => o.type === "error" && n === Da(jt(o)));
2381
2381
  if (!s)
2382
- throw new If(n, {
2382
+ throw new Tf(n, {
2383
2383
  docsPath: "/docs/contract/decodeErrorResult"
2384
2384
  });
2385
2385
  return {
@@ -2389,7 +2389,7 @@ function Tp(e) {
2389
2389
  };
2390
2390
  }
2391
2391
  const qt = (e, t, r) => JSON.stringify(e, (n, i) => typeof i == "bigint" ? i.toString() : i, r);
2392
- function Yf({ abiItem: e, args: t, includeFunctionName: r = !0, includeName: n = !1 }) {
2392
+ function Kf({ abiItem: e, args: t, includeFunctionName: r = !0, includeName: n = !1 }) {
2393
2393
  if ("name" in e && "inputs" in e && e.inputs)
2394
2394
  return `${r ? e.name : ""}(${e.inputs.map((i, s) => `${n && i.name ? `${i.name}: ` : ""}${typeof t[s] == "object" ? qt(t[s]) : t[s]}`).join(", ")})`;
2395
2395
  }
@@ -2400,7 +2400,7 @@ const Ip = {
2400
2400
  ether: -9,
2401
2401
  wei: 9
2402
2402
  };
2403
- function Xf(e, t) {
2403
+ function Yf(e, t) {
2404
2404
  let r = e.toString();
2405
2405
  const n = r.startsWith("-");
2406
2406
  n && (r = r.slice(1)), r = r.padStart(t, "0");
@@ -2411,10 +2411,10 @@ function Xf(e, t) {
2411
2411
  return s = s.replace(/(0+)$/, ""), `${n ? "-" : ""}${i || "0"}${s ? `.${s}` : ""}`;
2412
2412
  }
2413
2413
  function za(e, t = "wei") {
2414
- return Xf(e, Ip[t]);
2414
+ return Yf(e, Ip[t]);
2415
2415
  }
2416
2416
  function et(e, t = "wei") {
2417
- return Xf(e, kp[t]);
2417
+ return Yf(e, kp[t]);
2418
2418
  }
2419
2419
  class Bp extends $ {
2420
2420
  constructor({ address: t }) {
@@ -2526,7 +2526,7 @@ class Fp extends $ {
2526
2526
  }), this.cause = t;
2527
2527
  }
2528
2528
  }
2529
- const $p = (e) => e, Jf = (e) => e;
2529
+ const $p = (e) => e, Xf = (e) => e;
2530
2530
  class Mp extends $ {
2531
2531
  constructor(t, { account: r, docsPath: n, chain: i, data: s, gas: o, gasPrice: a, maxFeePerGas: c, maxPriorityFeePerGas: f, nonce: l, to: h, value: m, stateOverride: p }) {
2532
2532
  var x;
@@ -2562,7 +2562,7 @@ ${Op(p)}`), super(t.shortMessage, {
2562
2562
  }
2563
2563
  class Hp extends $ {
2564
2564
  constructor(t, { abi: r, args: n, contractAddress: i, docsPath: s, functionName: o, sender: a }) {
2565
- const c = Si({ abi: r, args: n, name: o }), f = c ? Yf({
2565
+ const c = Si({ abi: r, args: n, name: o }), f = c ? Kf({
2566
2566
  abiItem: c,
2567
2567
  args: n,
2568
2568
  includeFunctionName: !1,
@@ -2633,7 +2633,7 @@ class Dp extends $ {
2633
2633
  const [p] = m;
2634
2634
  c = lp[p];
2635
2635
  } else {
2636
- const p = l ? jt(l, { includeName: !0 }) : void 0, g = l && m ? Yf({
2636
+ const p = l ? jt(l, { includeName: !0 }) : void 0, g = l && m ? Kf({
2637
2637
  abiItem: l,
2638
2638
  args: m,
2639
2639
  includeFunctionName: !1,
@@ -2649,7 +2649,7 @@ class Dp extends $ {
2649
2649
  }
2650
2650
  else i && (c = i);
2651
2651
  let f;
2652
- s instanceof If && (f = s.signature, a = [
2652
+ s instanceof Tf && (f = s.signature, a = [
2653
2653
  `Unable to decode signature "${f}" as it was not found on the provided ABI.`,
2654
2654
  "Make sure you are using the correct ABI and that the error exists on it.",
2655
2655
  `You can look up the decoded signature here: https://openchain.xyz/signatures?query=${f}.`
@@ -2709,7 +2709,7 @@ class Gp extends $ {
2709
2709
  });
2710
2710
  }
2711
2711
  }
2712
- class Zf extends $ {
2712
+ class Jf extends $ {
2713
2713
  constructor({ data: t, message: r }) {
2714
2714
  super(r || "", { name: "RawContractError" }), Object.defineProperty(this, "code", {
2715
2715
  enumerable: !0,
@@ -2724,14 +2724,14 @@ class Zf extends $ {
2724
2724
  }), this.data = t;
2725
2725
  }
2726
2726
  }
2727
- class Qf extends $ {
2727
+ class Zf extends $ {
2728
2728
  constructor({ body: t, cause: r, details: n, headers: i, status: s, url: o }) {
2729
2729
  super("HTTP request failed.", {
2730
2730
  cause: r,
2731
2731
  details: n,
2732
2732
  metaMessages: [
2733
2733
  s && `Status: ${s}`,
2734
- `URL: ${Jf(o)}`,
2734
+ `URL: ${Xf(o)}`,
2735
2735
  t && `Request body: ${qt(t)}`
2736
2736
  ].filter(Boolean),
2737
2737
  name: "HttpRequestError"
@@ -2758,12 +2758,12 @@ class Qf extends $ {
2758
2758
  }), this.body = t, this.headers = i, this.status = s, this.url = o;
2759
2759
  }
2760
2760
  }
2761
- class ed extends $ {
2761
+ class Qf extends $ {
2762
2762
  constructor({ body: t, error: r, url: n }) {
2763
2763
  super("RPC Request failed.", {
2764
2764
  cause: r,
2765
2765
  details: r.message,
2766
- metaMessages: [`URL: ${Jf(n)}`, `Request body: ${qt(t)}`],
2766
+ metaMessages: [`URL: ${Xf(n)}`, `Request body: ${qt(t)}`],
2767
2767
  name: "RpcRequestError"
2768
2768
  }), Object.defineProperty(this, "code", {
2769
2769
  enumerable: !0,
@@ -2791,7 +2791,7 @@ class tt extends $ {
2791
2791
  configurable: !0,
2792
2792
  writable: !0,
2793
2793
  value: void 0
2794
- }), this.name = s || t.name, this.code = t instanceof ed ? t.code : r ?? zp;
2794
+ }), this.name = s || t.name, this.code = t instanceof Qf ? t.code : r ?? zp;
2795
2795
  }
2796
2796
  }
2797
2797
  class st extends tt {
@@ -3202,11 +3202,11 @@ class qp extends tt {
3202
3202
  }
3203
3203
  const Vp = 3;
3204
3204
  function Us(e, { abi: t, address: r, args: n, docsPath: i, functionName: s, sender: o }) {
3205
- const a = e instanceof Zf ? e : e instanceof $ ? e.walk((g) => "data" in g) || e.walk() : {}, { code: c, data: f, details: l, message: h, shortMessage: m } = a, p = e instanceof Ra ? new jp({ functionName: s }) : [Vp, Lr.code].includes(c) && (f || l || h || m) ? new Dp({
3205
+ const a = e instanceof Jf ? e : e instanceof $ ? e.walk((g) => "data" in g) || e.walk() : {}, { code: c, data: f, details: l, message: h, shortMessage: m } = a, p = e instanceof Ra ? new jp({ functionName: s }) : [Vp, Lr.code].includes(c) && (f || l || h || m) ? new Dp({
3206
3206
  abi: t,
3207
3207
  data: typeof f == "object" ? f.data : f,
3208
3208
  functionName: s,
3209
- message: a instanceof ed ? l : m ?? h
3209
+ message: a instanceof Qf ? l : m ?? h
3210
3210
  }) : e;
3211
3211
  return new Hp(p, {
3212
3212
  abi: t,
@@ -3222,7 +3222,7 @@ function Wp(e) {
3222
3222
  return Ai(`0x${t}`);
3223
3223
  }
3224
3224
  async function Kp({ hash: e, signature: t }) {
3225
- const r = hr(e) ? e : X(e), { secp256k1: n } = await import("./secp256k1-dsyuGVrw.js");
3225
+ const r = hr(e) ? e : X(e), { secp256k1: n } = await import("./secp256k1-_TRCWr1l.js");
3226
3226
  return `0x${(() => {
3227
3227
  if (typeof t == "object" && "r" in t && "s" in t) {
3228
3228
  const { r: f, s: l, v: h, yParity: m } = t, p = Number(m ?? h), g = Kc(p);
@@ -3245,14 +3245,14 @@ async function Yp({ hash: e, signature: t }) {
3245
3245
  return Wp(await Kp({ hash: e, signature: t }));
3246
3246
  }
3247
3247
  function pr(e, t = "hex") {
3248
- const r = td(e), n = Ga(new Uint8Array(r.length));
3248
+ const r = ed(e), n = Ga(new Uint8Array(r.length));
3249
3249
  return r.encode(n), t === "hex" ? Je(n.bytes) : n.bytes;
3250
3250
  }
3251
- function td(e) {
3252
- return Array.isArray(e) ? Xp(e.map((t) => td(t))) : Jp(e);
3251
+ function ed(e) {
3252
+ return Array.isArray(e) ? Xp(e.map((t) => ed(t))) : Jp(e);
3253
3253
  }
3254
3254
  function Xp(e) {
3255
- const t = e.reduce((i, s) => i + s.length, 0), r = rd(t);
3255
+ const t = e.reduce((i, s) => i + s.length, 0), r = td(t);
3256
3256
  return {
3257
3257
  length: t <= 55 ? 1 + t : 1 + r + t,
3258
3258
  encode(i) {
@@ -3263,7 +3263,7 @@ function Xp(e) {
3263
3263
  };
3264
3264
  }
3265
3265
  function Jp(e) {
3266
- const t = typeof e == "string" ? zt(e) : e, r = rd(t.length);
3266
+ const t = typeof e == "string" ? zt(e) : e, r = td(t.length);
3267
3267
  return {
3268
3268
  length: t.length === 1 && t[0] < 128 ? 1 : t.length <= 55 ? 1 + t.length : 1 + r + t.length,
3269
3269
  encode(i) {
@@ -3271,7 +3271,7 @@ function Jp(e) {
3271
3271
  }
3272
3272
  };
3273
3273
  }
3274
- function rd(e) {
3274
+ function td(e) {
3275
3275
  if (e < 2 ** 8)
3276
3276
  return 1;
3277
3277
  if (e < 2 ** 16)
@@ -3293,7 +3293,7 @@ function Zp(e) {
3293
3293
  ]));
3294
3294
  return n === "bytes" ? zt(s) : s;
3295
3295
  }
3296
- async function nd(e) {
3296
+ async function rd(e) {
3297
3297
  const { authorization: t, signature: r } = e;
3298
3298
  return Yp({
3299
3299
  hash: Zp(t),
@@ -3621,7 +3621,7 @@ function ny(e) {
3621
3621
  }
3622
3622
  return o;
3623
3623
  }
3624
- function id(e) {
3624
+ function nd(e) {
3625
3625
  if (!e)
3626
3626
  return;
3627
3627
  const t = {};
@@ -3673,7 +3673,7 @@ class oy extends $ {
3673
3673
  t && (n = `Block at hash "${t}"`), r && (n = `Block at number "${r}"`), super(`${n} could not be found.`, { name: "BlockNotFoundError" });
3674
3674
  }
3675
3675
  }
3676
- const sd = {
3676
+ const id = {
3677
3677
  "0x0": "legacy",
3678
3678
  "0x1": "eip2930",
3679
3679
  "0x2": "eip1559",
@@ -3694,7 +3694,7 @@ function Ya(e) {
3694
3694
  nonce: e.nonce ? Gt(e.nonce) : void 0,
3695
3695
  to: e.to ? e.to : null,
3696
3696
  transactionIndex: e.transactionIndex ? Number(e.transactionIndex) : null,
3697
- type: e.type ? sd[e.type] : void 0,
3697
+ type: e.type ? id[e.type] : void 0,
3698
3698
  typeHex: e.type ? e.type : void 0,
3699
3699
  value: e.value ? BigInt(e.value) : void 0,
3700
3700
  v: e.v ? BigInt(e.v) : void 0
@@ -3723,7 +3723,7 @@ function cy(e) {
3723
3723
  yParity: Number(t.yParity)
3724
3724
  }));
3725
3725
  }
3726
- function od(e) {
3726
+ function sd(e) {
3727
3727
  const t = (e.transactions ?? []).map((r) => typeof r == "string" ? r : Ya(r));
3728
3728
  return {
3729
3729
  ...e,
@@ -3743,7 +3743,7 @@ function od(e) {
3743
3743
  totalDifficulty: e.totalDifficulty ? BigInt(e.totalDifficulty) : null
3744
3744
  };
3745
3745
  }
3746
- const uy = /* @__PURE__ */ Wa("block", od);
3746
+ const uy = /* @__PURE__ */ Wa("block", sd);
3747
3747
  async function ws(e, { blockHash: t, blockNumber: r, blockTag: n, includeTransactions: i } = {}) {
3748
3748
  var l, h, m;
3749
3749
  const s = n ?? "latest", o = i ?? !1, a = r !== void 0 ? J(r) : void 0;
@@ -3756,9 +3756,9 @@ async function ws(e, { blockHash: t, blockNumber: r, blockTag: n, includeTransac
3756
3756
  params: [a || s, o]
3757
3757
  }, { dedupe: !!a }), !c)
3758
3758
  throw new oy({ blockHash: t, blockNumber: r });
3759
- return (((m = (h = (l = e.chain) == null ? void 0 : l.formatters) == null ? void 0 : h.block) == null ? void 0 : m.format) || od)(c);
3759
+ return (((m = (h = (l = e.chain) == null ? void 0 : l.formatters) == null ? void 0 : h.block) == null ? void 0 : m.format) || sd)(c);
3760
3760
  }
3761
- async function ad(e) {
3761
+ async function od(e) {
3762
3762
  const t = await e.request({
3763
3763
  method: "eth_gasPrice"
3764
3764
  });
@@ -3788,7 +3788,7 @@ async function fy(e, t) {
3788
3788
  } catch {
3789
3789
  const [a, c] = await Promise.all([
3790
3790
  r ? Promise.resolve(r) : se(e, ws, "getBlock")({}),
3791
- se(e, ad, "getGasPrice")({})
3791
+ se(e, od, "getGasPrice")({})
3792
3792
  ]);
3793
3793
  if (typeof a.baseFeePerGas != "bigint")
3794
3794
  throw new Ka();
@@ -3834,10 +3834,10 @@ async function Xc(e, t) {
3834
3834
  };
3835
3835
  }
3836
3836
  return {
3837
- gasPrice: (i == null ? void 0 : i.gasPrice) ?? f(await se(e, ad, "getGasPrice")({}))
3837
+ gasPrice: (i == null ? void 0 : i.gasPrice) ?? f(await se(e, od, "getGasPrice")({}))
3838
3838
  };
3839
3839
  }
3840
- async function cd(e, { address: t, blockTag: r = "latest", blockNumber: n }) {
3840
+ async function ad(e, { address: t, blockTag: r = "latest", blockNumber: n }) {
3841
3841
  const i = await e.request({
3842
3842
  method: "eth_getTransactionCount",
3843
3843
  params: [t, n ? J(n) : r]
@@ -3870,7 +3870,7 @@ function ly(e, t, r) {
3870
3870
  function hy(e, t, r) {
3871
3871
  return e & t ^ e & r ^ t & r;
3872
3872
  }
3873
- let py = class extends Nf {
3873
+ let py = class extends Uf {
3874
3874
  constructor(t, r, n, i) {
3875
3875
  super(), this.finished = !1, this.length = 0, this.pos = 0, this.destroyed = !1, this.blockLen = t, this.outputLen = r, this.padOffset = n, this.isLE = i, this.buffer = new Uint8Array(t), this.view = yo(this.buffer);
3876
3876
  }
@@ -3892,7 +3892,7 @@ let py = class extends Nf {
3892
3892
  return this.length += t.length, this.roundClean(), this;
3893
3893
  }
3894
3894
  digestInto(t) {
3895
- gs(this), Uf(t, this), this.finished = !0;
3895
+ gs(this), Lf(t, this), this.finished = !0;
3896
3896
  const { buffer: r, view: n, blockLen: i, isLE: s } = this;
3897
3897
  let { pos: o } = this;
3898
3898
  r[o++] = 128, this.buffer.subarray(o).fill(0), this.padOffset > i - o && (this.process(n, 0), o = 0);
@@ -4028,7 +4028,7 @@ let my = class extends py {
4028
4028
  this.set(0, 0, 0, 0, 0, 0, 0, 0), this.buffer.fill(0);
4029
4029
  }
4030
4030
  };
4031
- const by = /* @__PURE__ */ Ff(() => new my());
4031
+ const by = /* @__PURE__ */ Nf(() => new my());
4032
4032
  function Gn(e, t) {
4033
4033
  const r = t || "hex", n = by(hr(e, { strict: !1 }) ? xi(e) : e);
4034
4034
  return r === "bytes" ? n : X(n);
@@ -4037,7 +4037,7 @@ function gy(e) {
4037
4037
  const { commitment: t, version: r = 1 } = e, n = e.to ?? (typeof t == "string" ? "hex" : "bytes"), i = Gn(t, "bytes");
4038
4038
  return i.set([r], 0), n === "bytes" ? i : Je(i);
4039
4039
  }
4040
- function ud(e) {
4040
+ function cd(e) {
4041
4041
  const { commitments: t, version: r } = e, n = e.to ?? (typeof t[0] == "string" ? "hex" : "bytes"), i = [];
4042
4042
  for (const s of t)
4043
4043
  i.push(gy({
@@ -4047,9 +4047,9 @@ function ud(e) {
4047
4047
  }));
4048
4048
  return i;
4049
4049
  }
4050
- const Jc = 6, fd = 32, Za = 4096, dd = fd * Za, Zc = dd * Jc - // terminator byte (0x80).
4050
+ const Jc = 6, ud = 32, Za = 4096, fd = ud * Za, Zc = fd * Jc - // terminator byte (0x80).
4051
4051
  1 - // zero byte (0x00) appended to each field element.
4052
- 1 * Za * Jc, ld = 1;
4052
+ 1 * Za * Jc, dd = 1;
4053
4053
  class wy extends $ {
4054
4054
  constructor({ maxSize: t, size: r }) {
4055
4055
  super("Blob size is too large.", {
@@ -4058,7 +4058,7 @@ class wy extends $ {
4058
4058
  });
4059
4059
  }
4060
4060
  }
4061
- class hd extends $ {
4061
+ class ld extends $ {
4062
4062
  constructor() {
4063
4063
  super("Blob data must not be empty.", { name: "EmptyBlobError" });
4064
4064
  }
@@ -4075,7 +4075,7 @@ class vy extends $ {
4075
4075
  constructor({ hash: t, version: r }) {
4076
4076
  super(`Versioned hash "${t}" version is invalid.`, {
4077
4077
  metaMessages: [
4078
- `Expected: ${ld}`,
4078
+ `Expected: ${dd}`,
4079
4079
  `Received: ${r}`
4080
4080
  ],
4081
4081
  name: "InvalidVersionedHashVersionError"
@@ -4085,7 +4085,7 @@ class vy extends $ {
4085
4085
  function Ey(e) {
4086
4086
  const t = e.to ?? (typeof e.data == "string" ? "hex" : "bytes"), r = typeof e.data == "string" ? zt(e.data) : e.data, n = Ie(r);
4087
4087
  if (!n)
4088
- throw new hd();
4088
+ throw new ld();
4089
4089
  if (n > Zc)
4090
4090
  throw new wy({
4091
4091
  maxSize: Zc,
@@ -4094,10 +4094,10 @@ function Ey(e) {
4094
4094
  const i = [];
4095
4095
  let s = !0, o = 0;
4096
4096
  for (; s; ) {
4097
- const a = Ga(new Uint8Array(dd));
4097
+ const a = Ga(new Uint8Array(fd));
4098
4098
  let c = 0;
4099
4099
  for (; c < Za; ) {
4100
- const f = r.slice(o, o + (fd - 1));
4100
+ const f = r.slice(o, o + (ud - 1));
4101
4101
  if (a.pushByte(0), a.pushBytes(f), f.length < 31) {
4102
4102
  a.pushByte(128), s = !1;
4103
4103
  break;
@@ -4108,7 +4108,7 @@ function Ey(e) {
4108
4108
  }
4109
4109
  return t === "bytes" ? i.map((a) => a.bytes) : i.map((a) => Je(a.bytes));
4110
4110
  }
4111
- function pd(e) {
4111
+ function hd(e) {
4112
4112
  const { data: t, kzg: r, to: n } = e, i = e.blobs ?? Ey({ data: t, to: n }), s = e.commitments ?? Xa({ blobs: i, kzg: r, to: n }), o = e.proofs ?? Ja({ blobs: i, commitments: s, kzg: r, to: n }), a = [];
4113
4113
  for (let c = 0; c < i.length; c++)
4114
4114
  a.push({
@@ -4118,7 +4118,7 @@ function pd(e) {
4118
4118
  });
4119
4119
  return a;
4120
4120
  }
4121
- function yd(e) {
4121
+ function pd(e) {
4122
4122
  if (e.type)
4123
4123
  return e.type;
4124
4124
  if (typeof e.authorizationList < "u")
@@ -4137,7 +4137,7 @@ async function Ii(e) {
4137
4137
  }, { dedupe: !0 });
4138
4138
  return Gt(t);
4139
4139
  }
4140
- const md = [
4140
+ const yd = [
4141
4141
  "blobVersionedHashes",
4142
4142
  "chainId",
4143
4143
  "fees",
@@ -4146,7 +4146,7 @@ const md = [
4146
4146
  "type"
4147
4147
  ], Qc = /* @__PURE__ */ new Map();
4148
4148
  async function Qa(e, t) {
4149
- const { account: r = e.account, blobs: n, chain: i, gas: s, kzg: o, nonce: a, nonceManager: c, parameters: f = md, type: l } = t, h = r && Le(r), m = { ...t, ...h ? { from: h == null ? void 0 : h.address } : {} };
4149
+ const { account: r = e.account, blobs: n, chain: i, gas: s, kzg: o, nonce: a, nonceManager: c, parameters: f = yd, type: l } = t, h = r && Le(r), m = { ...t, ...h ? { from: h == null ? void 0 : h.address } : {} };
4150
4150
  let p;
4151
4151
  async function g() {
4152
4152
  return p || (p = await se(e, ws, "getBlock")({ blockTag: "latest" }), p);
@@ -4164,21 +4164,21 @@ async function Qa(e, t) {
4164
4164
  client: e
4165
4165
  });
4166
4166
  } else
4167
- m.nonce = await se(e, cd, "getTransactionCount")({
4167
+ m.nonce = await se(e, ad, "getTransactionCount")({
4168
4168
  address: h.address,
4169
4169
  blockTag: "pending"
4170
4170
  });
4171
4171
  if ((f.includes("blobVersionedHashes") || f.includes("sidecars")) && n && o) {
4172
4172
  const k = Xa({ blobs: n, kzg: o });
4173
4173
  if (f.includes("blobVersionedHashes")) {
4174
- const I = ud({
4174
+ const I = cd({
4175
4175
  commitments: k,
4176
4176
  to: "hex"
4177
4177
  });
4178
4178
  m.blobVersionedHashes = I;
4179
4179
  }
4180
4180
  if (f.includes("sidecars")) {
4181
- const I = Ja({ blobs: n, commitments: k, kzg: o }), A = pd({
4181
+ const I = Ja({ blobs: n, commitments: k, kzg: o }), A = hd({
4182
4182
  blobs: n,
4183
4183
  commitments: k,
4184
4184
  proofs: I,
@@ -4189,7 +4189,7 @@ async function Qa(e, t) {
4189
4189
  }
4190
4190
  if (f.includes("chainId") && (m.chainId = await x()), (f.includes("fees") || f.includes("type")) && typeof l > "u")
4191
4191
  try {
4192
- m.type = yd(m);
4192
+ m.type = pd(m);
4193
4193
  } catch {
4194
4194
  let k = Qc.get(e.uid);
4195
4195
  if (typeof k > "u") {
@@ -4225,7 +4225,7 @@ async function Qa(e, t) {
4225
4225
  m.gasPrice = I;
4226
4226
  }
4227
4227
  }
4228
- return f.includes("gas") && typeof s > "u" && (m.gas = await se(e, bd, "estimateGas")({
4228
+ return f.includes("gas") && typeof s > "u" && (m.gas = await se(e, md, "estimateGas")({
4229
4229
  ...m,
4230
4230
  account: h && { address: h.address, type: "json-rpc" }
4231
4231
  })), Ti(m), delete m.parameters, m;
@@ -4237,7 +4237,7 @@ async function xy(e, { address: t, blockNumber: r, blockTag: n = "latest" }) {
4237
4237
  });
4238
4238
  return BigInt(s);
4239
4239
  }
4240
- async function bd(e, t) {
4240
+ async function md(e, t) {
4241
4241
  var i, s, o;
4242
4242
  const { account: r = e.account } = t, n = r ? Le(r) : void 0;
4243
4243
  try {
@@ -4255,11 +4255,11 @@ async function bd(e, t) {
4255
4255
  // to compute them.
4256
4256
  (n == null ? void 0 : n.type) === "local" ? void 0 : ["blobVersionedHashes"]
4257
4257
  )
4258
- }), M = (h ? J(h) : void 0) || m, B = id(T), V = await (async () => {
4258
+ }), M = (h ? J(h) : void 0) || m, B = nd(T), V = await (async () => {
4259
4259
  if (S.to)
4260
4260
  return S.to;
4261
4261
  if (c && c.length > 0)
4262
- return await nd({
4262
+ return await rd({
4263
4263
  authorization: c[0]
4264
4264
  }).catch(() => {
4265
4265
  throw new $("`to` is required. Could not infer from `authorizationList`");
@@ -4318,7 +4318,7 @@ async function Ay(e, t) {
4318
4318
  functionName: s
4319
4319
  });
4320
4320
  try {
4321
- return await se(e, bd, "estimateGas")({
4321
+ return await se(e, md, "estimateGas")({
4322
4322
  data: `${c}${o ? o.replace("0x", "") : ""}`,
4323
4323
  to: n,
4324
4324
  ...a
@@ -4335,7 +4335,7 @@ async function Ay(e, t) {
4335
4335
  });
4336
4336
  }
4337
4337
  }
4338
- function gd(e, t) {
4338
+ function bd(e, t) {
4339
4339
  if (!Re(e, { strict: !1 }))
4340
4340
  throw new Ze({ address: e });
4341
4341
  if (!Re(t, { strict: !1 }))
@@ -4343,13 +4343,13 @@ function gd(e, t) {
4343
4343
  return e.toLowerCase() === t.toLowerCase();
4344
4344
  }
4345
4345
  const eu = "/docs/contract/decodeEventLog";
4346
- function wd(e) {
4346
+ function gd(e) {
4347
4347
  const { abi: t, data: r, strict: n, topics: i } = e, s = n ?? !0, [o, ...a] = i;
4348
4348
  if (!o)
4349
4349
  throw new f0({ docsPath: eu });
4350
4350
  const c = t.length === 1 ? t[0] : t.find((v) => v.type === "event" && o === Os(jt(v)));
4351
4351
  if (!(c && "name" in c) || c.type !== "event")
4352
- throw new kf(o, { docsPath: eu });
4352
+ throw new If(o, { docsPath: eu });
4353
4353
  const { name: f, inputs: l } = c, h = l == null ? void 0 : l.some((v) => !("name" in v && v.name));
4354
4354
  let m = h ? [] : {};
4355
4355
  const p = l.filter((v) => "indexed" in v && v.indexed);
@@ -4375,7 +4375,7 @@ function wd(e) {
4375
4375
  m[g[x].name] = v[x];
4376
4376
  } catch (v) {
4377
4377
  if (s)
4378
- throw v instanceof Tf || v instanceof Kf ? new ms({
4378
+ throw v instanceof Pf || v instanceof Wf ? new ms({
4379
4379
  abiItem: c,
4380
4380
  data: r,
4381
4381
  params: g,
@@ -4398,7 +4398,7 @@ function wd(e) {
4398
4398
  function Sy({ param: e, value: t }) {
4399
4399
  return e.type === "string" || e.type === "bytes" || e.type === "tuple" || e.type.match(/^(.*)\[(\d+)?\]$/) ? t : (Ls([e], t) || [])[0];
4400
4400
  }
4401
- function _d(e) {
4401
+ function wd(e) {
4402
4402
  const { abi: t, args: r, logs: n, strict: i = !0 } = e, s = (() => {
4403
4403
  if (e.eventName)
4404
4404
  return Array.isArray(e.eventName) ? e.eventName : [e.eventName];
@@ -4409,7 +4409,7 @@ function _d(e) {
4409
4409
  const c = t.find((l) => l.type === "event" && o.topics[0] === Os(l));
4410
4410
  if (!c)
4411
4411
  return null;
4412
- const f = wd({
4412
+ const f = gd({
4413
4413
  ...o,
4414
4414
  abi: [c],
4415
4415
  strict: i
@@ -4421,7 +4421,7 @@ function _d(e) {
4421
4421
  }) ? null : { ...f, ...o };
4422
4422
  } catch (c) {
4423
4423
  let f, l;
4424
- if (c instanceof kf)
4424
+ if (c instanceof If)
4425
4425
  return null;
4426
4426
  if (c instanceof ms || c instanceof La) {
4427
4427
  if (i)
@@ -4440,7 +4440,7 @@ function Py(e) {
4440
4440
  return !1;
4441
4441
  function i(s, o, a) {
4442
4442
  try {
4443
- return s.type === "address" ? gd(o, a) : s.type === "string" || s.type === "bytes" ? En(xi(o)) === a : o === a;
4443
+ return s.type === "address" ? bd(o, a) : s.type === "string" || s.type === "bytes" ? En(xi(o)) === a : o === a;
4444
4444
  } catch {
4445
4445
  return !1;
4446
4446
  }
@@ -4492,14 +4492,14 @@ async function Ty(e, { address: t, blockHash: r, fromBlock: n, toBlock: i, event
4492
4492
  ]
4493
4493
  });
4494
4494
  const p = m.map((g) => wi(g));
4495
- return l ? _d({
4495
+ return l ? wd({
4496
4496
  abi: l,
4497
4497
  args: a,
4498
4498
  logs: p,
4499
4499
  strict: f
4500
4500
  }) : p;
4501
4501
  }
4502
- async function vd(e, t) {
4502
+ async function _d(e, t) {
4503
4503
  const { abi: r, address: n, args: i, blockHash: s, eventName: o, fromBlock: a, toBlock: c, strict: f } = t, l = o ? Si({ abi: r, name: o }) : void 0, h = l ? void 0 : r.filter((m) => m.type === "event");
4504
4504
  return se(e, Ty, "getLogs")({
4505
4505
  address: n,
@@ -4662,7 +4662,7 @@ class Oy extends $ {
4662
4662
  });
4663
4663
  }
4664
4664
  }
4665
- class Ed extends $ {
4665
+ class vd extends $ {
4666
4666
  constructor() {
4667
4667
  super("No chain was provided to the Client.", {
4668
4668
  name: "ClientChainNotConfiguredError"
@@ -4718,7 +4718,7 @@ function Ly(e, { docsPath: t, ...r }) {
4718
4718
  ...r
4719
4719
  });
4720
4720
  }
4721
- function xd() {
4721
+ function Ed() {
4722
4722
  let e = () => {
4723
4723
  }, t = () => {
4724
4724
  };
@@ -4748,12 +4748,12 @@ function Uy({ fn: e, id: t, shouldSplitBatch: r, wait: n = 0, sort: i }) {
4748
4748
  return {
4749
4749
  flush: o,
4750
4750
  async schedule(l) {
4751
- const { promise: h, resolve: m, reject: p } = xd();
4751
+ const { promise: h, resolve: m, reject: p } = Ed();
4752
4752
  return (r == null ? void 0 : r([...a(), l])) && s(), c().length > 0 ? (f({ args: l, resolve: m, reject: p }), h) : (f({ args: l, resolve: m, reject: p }), setTimeout(s, n), h);
4753
4753
  }
4754
4754
  };
4755
4755
  }
4756
- async function Ad(e, t) {
4756
+ async function xd(e, t) {
4757
4757
  var L, D, j, q;
4758
4758
  const { account: r = e.account, batch: n = !!((L = e.batch) != null && L.multicall), blockNumber: i, blockTag: s = "latest", accessList: o, blobs: a, code: c, data: f, factory: l, factoryData: h, gas: m, gasPrice: p, maxFeePerBlobGas: g, maxFeePerGas: v, maxPriorityFeePerGas: x, nonce: k, to: I, value: A, stateOverride: E, ...T } = t, S = r ? Le(r) : void 0;
4759
4759
  if (c && (l || h))
@@ -4771,7 +4771,7 @@ async function Ad(e, t) {
4771
4771
  }) : f;
4772
4772
  try {
4773
4773
  Ti(t);
4774
- const re = (i ? J(i) : void 0) || s, le = id(E), be = (q = (j = (D = e.chain) == null ? void 0 : D.formatters) == null ? void 0 : j.transactionRequest) == null ? void 0 : q.format, qe = (be || Fs)({
4774
+ const re = (i ? J(i) : void 0) || s, le = nd(E), be = (q = (j = (D = e.chain) == null ? void 0 : D.formatters) == null ? void 0 : j.transactionRequest) == null ? void 0 : q.format, qe = (be || Fs)({
4775
4775
  // Pick out extra data that might exist on the chain's transaction request type.
4776
4776
  ...Va(T, { format: be }),
4777
4777
  from: S == null ? void 0 : S.address,
@@ -4795,7 +4795,7 @@ async function Ad(e, t) {
4795
4795
  blockTag: s
4796
4796
  });
4797
4797
  } catch (pe) {
4798
- if (!(pe instanceof Ed) && !(pe instanceof ha))
4798
+ if (!(pe instanceof vd) && !(pe instanceof ha))
4799
4799
  throw pe;
4800
4800
  }
4801
4801
  const ue = await e.request({
@@ -4808,7 +4808,7 @@ async function Ad(e, t) {
4808
4808
  });
4809
4809
  return ue === "0x" ? { data: void 0 } : { data: ue };
4810
4810
  } catch (Y) {
4811
- const re = Hy(Y), { offchainLookup: le, offchainLookupSignature: be } = await import("./ccip-hyQiwpO6.js");
4811
+ const re = Hy(Y), { offchainLookup: le, offchainLookupSignature: be } = await import("./ccip-COtkuWzQ.js");
4812
4812
  if (e.ccipRead !== !1 && (re == null ? void 0 : re.slice(0, 10)) === be && I)
4813
4813
  return { data: await le(e, { data: re, to: I }) };
4814
4814
  throw B && (re == null ? void 0 : re.slice(0, 10)) === "0x101bb98d" ? new Gp({ factory: l }) : Ly(Y, {
@@ -4828,7 +4828,7 @@ async function Fy(e, t) {
4828
4828
  let f = a;
4829
4829
  if (!f) {
4830
4830
  if (!e.chain)
4831
- throw new Ed();
4831
+ throw new vd();
4832
4832
  f = Ry({
4833
4833
  blockNumber: i,
4834
4834
  chain: e.chain,
@@ -4869,13 +4869,13 @@ async function Fy(e, t) {
4869
4869
  }
4870
4870
  }), [{ returnData: p, success: g }] = await m({ data: o, to: c });
4871
4871
  if (!g)
4872
- throw new Zf({ data: p });
4872
+ throw new Jf({ data: p });
4873
4873
  return p === "0x" ? { data: void 0 } : { data: p };
4874
4874
  }
4875
4875
  function $y(e) {
4876
4876
  const { code: t, data: r } = e;
4877
4877
  return tc({
4878
- abi: Af(["constructor(bytes, bytes)"]),
4878
+ abi: xf(["constructor(bytes, bytes)"]),
4879
4879
  bytecode: ky,
4880
4880
  args: [t, r]
4881
4881
  });
@@ -4883,7 +4883,7 @@ function $y(e) {
4883
4883
  function My(e) {
4884
4884
  const { data: t, factory: r, factoryData: n, to: i } = e;
4885
4885
  return tc({
4886
- abi: Af(["constructor(address, bytes, address, bytes)"]),
4886
+ abi: xf(["constructor(address, bytes, address, bytes)"]),
4887
4887
  bytecode: By,
4888
4888
  args: [i, t, r, n]
4889
4889
  });
@@ -4902,7 +4902,7 @@ async function Dy(e, t) {
4902
4902
  functionName: s
4903
4903
  });
4904
4904
  try {
4905
- const { data: c } = await se(e, Ad, "call")({
4905
+ const { data: c } = await se(e, xd, "call")({
4906
4906
  ...o,
4907
4907
  data: a,
4908
4908
  to: n
@@ -4926,7 +4926,7 @@ async function Dy(e, t) {
4926
4926
  async function jy(e, t) {
4927
4927
  const { abi: r, address: n, args: i, dataSuffix: s, functionName: o, ...a } = t, c = a.account ? Le(a.account) : e.account, f = xn({ abi: r, args: i, functionName: o });
4928
4928
  try {
4929
- const { data: l } = await se(e, Ad, "call")({
4929
+ const { data: l } = await se(e, xd, "call")({
4930
4930
  batch: !1,
4931
4931
  data: `${f}${s ? s.replace("0x", "") : ""}`,
4932
4932
  to: n,
@@ -4994,7 +4994,7 @@ function pa(e, t, r) {
4994
4994
  async function ya(e) {
4995
4995
  return new Promise((t) => setTimeout(t, e));
4996
4996
  }
4997
- function Sd(e, { emitOnBegin: t, initialWaitTime: r, interval: n }) {
4997
+ function Ad(e, { emitOnBegin: t, initialWaitTime: r, interval: n }) {
4998
4998
  let i = !0;
4999
4999
  const s = () => i = !1;
5000
5000
  return (async () => {
@@ -5051,7 +5051,7 @@ async function Xy(e, { filter: t }) {
5051
5051
  if (typeof n[0] == "string")
5052
5052
  return n;
5053
5053
  const i = n.map((s) => wi(s));
5054
- return !("abi" in t) || !t.abi ? i : _d({
5054
+ return !("abi" in t) || !t.abi ? i : wd({
5055
5055
  abi: t.abi,
5056
5056
  logs: i,
5057
5057
  strict: r
@@ -5081,11 +5081,11 @@ function Zy(e, t) {
5081
5081
  let A;
5082
5082
  a !== void 0 && (A = a - 1n);
5083
5083
  let E, T = !1;
5084
- const S = Sd(async () => {
5084
+ const S = Ad(async () => {
5085
5085
  var N;
5086
5086
  if (!T) {
5087
5087
  try {
5088
- E = await se(e, Wf, "createContractEventFilter")({
5088
+ E = await se(e, Vf, "createContractEventFilter")({
5089
5089
  abi: r,
5090
5090
  address: n,
5091
5091
  args: i,
@@ -5104,7 +5104,7 @@ function Zy(e, t) {
5104
5104
  M = await se(e, Xy, "getFilterChanges")({ filter: E });
5105
5105
  else {
5106
5106
  const B = await se(e, Yy, "getBlockNumber")({});
5107
- A && A < B ? M = await se(e, vd, "getContractEvents")({
5107
+ A && A < B ? M = await se(e, _d, "getContractEvents")({
5108
5108
  abi: r,
5109
5109
  address: n,
5110
5110
  args: i,
@@ -5164,7 +5164,7 @@ function Zy(e, t) {
5164
5164
  return;
5165
5165
  const B = M.result;
5166
5166
  try {
5167
- const { eventName: L, args: D } = wd({
5167
+ const { eventName: L, args: D } = gd({
5168
5168
  abi: r,
5169
5169
  data: B.data,
5170
5170
  topics: B.topics,
@@ -5222,13 +5222,13 @@ class is extends $ {
5222
5222
  });
5223
5223
  }
5224
5224
  }
5225
- function Pd({ chain: e, currentChainId: t }) {
5225
+ function Sd({ chain: e, currentChainId: t }) {
5226
5226
  if (!e)
5227
5227
  throw new Oy();
5228
5228
  if (t !== e.id)
5229
5229
  throw new Cy({ chain: e, currentChainId: t });
5230
5230
  }
5231
- function Td(e, { docsPath: t, ...r }) {
5231
+ function Pd(e, { docsPath: t, ...r }) {
5232
5232
  const n = (() => {
5233
5233
  const i = qa(e, r);
5234
5234
  return i instanceof Ns ? e : i;
@@ -5238,7 +5238,7 @@ function Td(e, { docsPath: t, ...r }) {
5238
5238
  ...r
5239
5239
  });
5240
5240
  }
5241
- async function Id(e, { serializedTransaction: t }) {
5241
+ async function Td(e, { serializedTransaction: t }) {
5242
5242
  return e.request({
5243
5243
  method: "eth_sendRawTransaction",
5244
5244
  params: [t]
@@ -5259,7 +5259,7 @@ async function rc(e, t) {
5259
5259
  if (t.to)
5260
5260
  return t.to;
5261
5261
  if (t.to !== null && s && s.length > 0)
5262
- return await nd({
5262
+ return await rd({
5263
5263
  authorization: s[0]
5264
5264
  }).catch(() => {
5265
5265
  throw new $("`to` is required. Could not infer from `authorizationList`.");
@@ -5267,7 +5267,7 @@ async function rc(e, t) {
5267
5267
  })();
5268
5268
  if ((x == null ? void 0 : x.type) === "json-rpc" || x === null) {
5269
5269
  let S;
5270
- n !== null && (S = await se(e, Ii, "getChainId")({}), Pd({
5270
+ n !== null && (S = await se(e, Ii, "getChainId")({}), Sd({
5271
5271
  currentChainId: S,
5272
5272
  chain: n
5273
5273
  }));
@@ -5324,14 +5324,14 @@ async function rc(e, t) {
5324
5324
  maxPriorityFeePerGas: m,
5325
5325
  nonce: p,
5326
5326
  nonceManager: x.nonceManager,
5327
- parameters: [...md, "sidecars"],
5327
+ parameters: [...yd, "sidecars"],
5328
5328
  value: g,
5329
5329
  ...v,
5330
5330
  to: T
5331
5331
  }), N = (E = n == null ? void 0 : n.serializers) == null ? void 0 : E.transaction, M = await x.signTransaction(S, {
5332
5332
  serializer: N
5333
5333
  });
5334
- return await se(e, Id, "sendRawTransaction")({
5334
+ return await se(e, Td, "sendRawTransaction")({
5335
5335
  serializedTransaction: M
5336
5336
  });
5337
5337
  }
@@ -5346,14 +5346,14 @@ async function rc(e, t) {
5346
5346
  type: x == null ? void 0 : x.type
5347
5347
  });
5348
5348
  } catch (T) {
5349
- throw T instanceof is ? T : Td(T, {
5349
+ throw T instanceof is ? T : Pd(T, {
5350
5350
  ...t,
5351
5351
  account: x,
5352
5352
  chain: t.chain || void 0
5353
5353
  });
5354
5354
  }
5355
5355
  }
5356
- async function kd(e, t) {
5356
+ async function Id(e, t) {
5357
5357
  const { abi: r, account: n = e.account, address: i, args: s, dataSuffix: o, functionName: a, ...c } = t;
5358
5358
  if (typeof n > "u")
5359
5359
  throw new br({
@@ -5418,7 +5418,7 @@ function xo({ abi: e, address: t, client: r }) {
5418
5418
  get(m, p) {
5419
5419
  return (...g) => {
5420
5420
  const v = e.find((I) => I.type === "event" && I.name === p), { args: x, options: k } = Ao(g, v);
5421
- return se(i, Wf, "createContractEventFilter")({
5421
+ return se(i, Vf, "createContractEventFilter")({
5422
5422
  abi: e,
5423
5423
  address: t,
5424
5424
  eventName: p,
@@ -5431,7 +5431,7 @@ function xo({ abi: e, address: t, client: r }) {
5431
5431
  get(m, p) {
5432
5432
  return (...g) => {
5433
5433
  const v = e.find((I) => I.type === "event" && I.name === p), { args: x, options: k } = Ao(g, v);
5434
- return se(i, vd, "getContractEvents")({
5434
+ return se(i, _d, "getContractEvents")({
5435
5435
  abi: e,
5436
5436
  address: t,
5437
5437
  eventName: p,
@@ -5457,7 +5457,7 @@ function xo({ abi: e, address: t, client: r }) {
5457
5457
  get(m, p) {
5458
5458
  return (...g) => {
5459
5459
  const { args: v, options: x } = Di(g);
5460
- return se(s, kd, "writeContract")({
5460
+ return se(s, Id, "writeContract")({
5461
5461
  abi: e,
5462
5462
  address: t,
5463
5463
  functionName: p,
@@ -5492,7 +5492,7 @@ function Ao(e, t) {
5492
5492
  const n = r ? e[0] : void 0, i = (r ? e[1] : e[0]) ?? {};
5493
5493
  return { args: n, options: i };
5494
5494
  }
5495
- const Bd = {
5495
+ const kd = {
5496
5496
  "0x0": "reverted",
5497
5497
  "0x1": "success"
5498
5498
  };
@@ -5507,13 +5507,13 @@ function Qy(e) {
5507
5507
  logs: e.logs ? e.logs.map((r) => wi(r)) : null,
5508
5508
  to: e.to ? e.to : null,
5509
5509
  transactionIndex: e.transactionIndex ? Gt(e.transactionIndex) : null,
5510
- status: e.status ? Bd[e.status] : null,
5511
- type: e.type ? sd[e.type] || e.type : null
5510
+ status: e.status ? kd[e.status] : null,
5511
+ type: e.type ? id[e.type] || e.type : null
5512
5512
  };
5513
5513
  return e.blobGasPrice && (t.blobGasPrice = BigInt(e.blobGasPrice)), e.blobGasUsed && (t.blobGasUsed = BigInt(e.blobGasUsed)), t;
5514
5514
  }
5515
5515
  const em = /* @__PURE__ */ Wa("transactionReceipt", Qy);
5516
- async function Cd(e, t) {
5516
+ async function Bd(e, t) {
5517
5517
  const { atomic: r = !1, chainId: n, receipts: i, version: s = "2.0.0", ...o } = await e.request({
5518
5518
  method: "wallet_getCallsStatus",
5519
5519
  params: [t.id]
@@ -5530,7 +5530,7 @@ async function Cd(e, t) {
5530
5530
  ...f,
5531
5531
  blockNumber: ft(f.blockNumber),
5532
5532
  gasUsed: ft(f.gasUsed),
5533
- status: Bd[f.status]
5533
+ status: kd[f.status]
5534
5534
  }))) ?? [],
5535
5535
  statusCode: c,
5536
5536
  status: a,
@@ -5538,15 +5538,15 @@ async function Cd(e, t) {
5538
5538
  };
5539
5539
  }
5540
5540
  async function tm(e, t) {
5541
- const { id: r, pollingInterval: n = e.pollingInterval, status: i = ({ statusCode: m }) => m >= 200, timeout: s = 6e4 } = t, o = qt(["waitForCallsStatus", e.uid, r]), { promise: a, resolve: c, reject: f } = xd();
5541
+ const { id: r, pollingInterval: n = e.pollingInterval, status: i = ({ statusCode: m }) => m >= 200, timeout: s = 6e4 } = t, o = qt(["waitForCallsStatus", e.uid, r]), { promise: a, resolve: c, reject: f } = Ed();
5542
5542
  let l;
5543
5543
  const h = pa(o, { resolve: c, reject: f }, (m) => {
5544
- const p = Sd(async () => {
5544
+ const p = Ad(async () => {
5545
5545
  const g = (v) => {
5546
5546
  clearTimeout(l), p(), v(), h();
5547
5547
  };
5548
5548
  try {
5549
- const v = await Cd(e, { id: r });
5549
+ const v = await Bd(e, { id: r });
5550
5550
  if (!i(v))
5551
5551
  return;
5552
5552
  g(() => m.resolve(v));
@@ -5570,7 +5570,7 @@ class rm extends $ {
5570
5570
  }
5571
5571
  const ma = 256;
5572
5572
  let ji = ma, Gi;
5573
- function Od(e = 11) {
5573
+ function Cd(e = 11) {
5574
5574
  if (!Gi || ji + e > ma * 2) {
5575
5575
  Gi = "", ji = 0;
5576
5576
  for (let t = 0; t < ma; t++)
@@ -5594,7 +5594,7 @@ function nm(e) {
5594
5594
  request: h,
5595
5595
  transport: p,
5596
5596
  type: a,
5597
- uid: Od()
5597
+ uid: Cd()
5598
5598
  };
5599
5599
  function v(x) {
5600
5600
  return (k) => {
@@ -5718,7 +5718,7 @@ function om(e, t = {}) {
5718
5718
  }, {
5719
5719
  delay: ({ count: m, error: p }) => {
5720
5720
  var g;
5721
- if (p && p instanceof Qf) {
5721
+ if (p && p instanceof Zf) {
5722
5722
  const v = (g = p == null ? void 0 : p.headers) == null ? void 0 : g.get("Retry-After");
5723
5723
  if (v != null && v.match(/\d/))
5724
5724
  return Number.parseInt(v) * 1e3;
@@ -5731,10 +5731,10 @@ function om(e, t = {}) {
5731
5731
  };
5732
5732
  }
5733
5733
  function am(e) {
5734
- return "code" in e && typeof e.code == "number" ? e.code === -1 || e.code === pn.code || e.code === Lr.code : e instanceof Qf && e.status ? e.status === 403 || e.status === 408 || e.status === 413 || e.status === 429 || e.status === 500 || e.status === 502 || e.status === 503 || e.status === 504 : !0;
5734
+ return "code" in e && typeof e.code == "number" ? e.code === -1 || e.code === pn.code || e.code === Lr.code : e instanceof Zf && e.status ? e.status === 403 || e.status === 408 || e.status === 413 || e.status === 429 || e.status === 500 || e.status === 502 || e.status === 503 || e.status === 504 : !0;
5735
5735
  }
5736
5736
  function cm({ key: e, methods: t, name: r, request: n, retryCount: i = 3, retryDelay: s = 150, timeout: o, type: a }, c) {
5737
- const f = Od();
5737
+ const f = Cd();
5738
5738
  return {
5739
5739
  config: {
5740
5740
  key: e,
@@ -5810,7 +5810,7 @@ function lm(e) {
5810
5810
  function hm(e) {
5811
5811
  const { domain: t, message: r, primaryType: n, types: i } = e, s = (o, a) => {
5812
5812
  for (const c of o) {
5813
- const { name: f, type: l } = c, h = a[f], m = l.match(qf);
5813
+ const { name: f, type: l } = c, h = a[f], m = l.match(zf);
5814
5814
  if (m && (typeof h == "number" || typeof h == "bigint")) {
5815
5815
  const [v, x, k] = m;
5816
5816
  J(h, {
@@ -5879,12 +5879,12 @@ function bm(e) {
5879
5879
  const { blobVersionedHashes: t } = e;
5880
5880
  if (t) {
5881
5881
  if (t.length === 0)
5882
- throw new hd();
5882
+ throw new ld();
5883
5883
  for (const r of t) {
5884
5884
  const n = Ie(r), i = Gt(Xn(r, 0, 1));
5885
5885
  if (n !== 32)
5886
5886
  throw new _y({ hash: r, size: n });
5887
- if (i !== ld)
5887
+ if (i !== dd)
5888
5888
  throw new vy({
5889
5889
  hash: r,
5890
5890
  version: i
@@ -5942,7 +5942,7 @@ function Hs(e) {
5942
5942
  return t;
5943
5943
  }
5944
5944
  function _m(e, t) {
5945
- const r = yd(e);
5945
+ const r = pd(e);
5946
5946
  return r === "eip1559" ? xm(e, t) : r === "eip2930" ? Am(e, t) : r === "eip4844" ? Em(e, t) : r === "eip7702" ? vm(e, t) : Sm(e, t);
5947
5947
  }
5948
5948
  function vm(e, t) {
@@ -5975,11 +5975,11 @@ function Em(e, t) {
5975
5975
  blobs: A,
5976
5976
  kzg: E
5977
5977
  });
5978
- if (typeof m > "u" && (m = ud({
5978
+ if (typeof m > "u" && (m = cd({
5979
5979
  commitments: T
5980
5980
  })), typeof p > "u") {
5981
5981
  const S = Ja({ blobs: A, commitments: T, kzg: E });
5982
- p = pd({ blobs: A, commitments: T, proofs: S });
5982
+ p = hd({ blobs: A, commitments: T, proofs: S });
5983
5983
  }
5984
5984
  }
5985
5985
  const g = Hs(l), v = [
@@ -6111,7 +6111,7 @@ function Pm(e) {
6111
6111
  function Tm(e) {
6112
6112
  return e instanceof Uint8Array || ArrayBuffer.isView(e) && e.constructor.name === "Uint8Array";
6113
6113
  }
6114
- function Rd(e, ...t) {
6114
+ function Od(e, ...t) {
6115
6115
  if (!Tm(e))
6116
6116
  throw new Error("Uint8Array expected");
6117
6117
  if (t.length > 0 && !t.includes(e.length))
@@ -6124,7 +6124,7 @@ function iu(e, t = !0) {
6124
6124
  throw new Error("Hash#digest() has already been called");
6125
6125
  }
6126
6126
  function Im(e, t) {
6127
- Rd(e);
6127
+ Od(e);
6128
6128
  const r = t.outputLen;
6129
6129
  if (e.length < r)
6130
6130
  throw new Error("digestInto() expects output buffer of length at least " + r);
@@ -6144,8 +6144,8 @@ function km(e) {
6144
6144
  throw new Error("utf8ToBytes expected string, got " + typeof e);
6145
6145
  return new Uint8Array(new TextEncoder().encode(e));
6146
6146
  }
6147
- function Ld(e) {
6148
- return typeof e == "string" && (e = km(e)), Rd(e), e;
6147
+ function Rd(e) {
6148
+ return typeof e == "string" && (e = km(e)), Od(e), e;
6149
6149
  }
6150
6150
  let Bm = class {
6151
6151
  // Safe version that clones internal state
@@ -6154,7 +6154,7 @@ let Bm = class {
6154
6154
  }
6155
6155
  };
6156
6156
  function ic(e) {
6157
- const t = (n) => e().update(Ld(n)).digest(), r = e();
6157
+ const t = (n) => e().update(Rd(n)).digest(), r = e();
6158
6158
  return t.outputLen = r.outputLen, t.blockLen = r.blockLen, t.create = () => e(), t;
6159
6159
  }
6160
6160
  function Cm(e, t, r, n) {
@@ -6169,14 +6169,14 @@ function Om(e, t, r) {
6169
6169
  function Rm(e, t, r) {
6170
6170
  return e & t ^ e & r ^ t & r;
6171
6171
  }
6172
- let Ud = class extends Bm {
6172
+ let Ld = class extends Bm {
6173
6173
  constructor(t, r, n, i) {
6174
6174
  super(), this.blockLen = t, this.outputLen = r, this.padOffset = n, this.isLE = i, this.finished = !1, this.length = 0, this.pos = 0, this.destroyed = !1, this.buffer = new Uint8Array(t), this.view = So(this.buffer);
6175
6175
  }
6176
6176
  update(t) {
6177
6177
  iu(this);
6178
6178
  const { view: r, buffer: n, blockLen: i } = this;
6179
- t = Ld(t);
6179
+ t = Rd(t);
6180
6180
  const s = t.length;
6181
6181
  for (let o = 0; o < s; ) {
6182
6182
  const a = Math.min(i - this.pos, s - o);
@@ -6219,18 +6219,18 @@ let Ud = class extends Bm {
6219
6219
  return t.length = i, t.pos = a, t.finished = s, t.destroyed = o, i % r && t.buffer.set(n), t;
6220
6220
  }
6221
6221
  };
6222
- const Lm = /* @__PURE__ */ new Uint8Array([7, 4, 13, 1, 10, 6, 15, 3, 12, 0, 9, 5, 2, 14, 11, 8]), Nd = /* @__PURE__ */ new Uint8Array(new Array(16).fill(0).map((e, t) => t)), Um = /* @__PURE__ */ Nd.map((e) => (9 * e + 5) % 16);
6223
- let sc = [Nd], oc = [Um];
6222
+ const Lm = /* @__PURE__ */ new Uint8Array([7, 4, 13, 1, 10, 6, 15, 3, 12, 0, 9, 5, 2, 14, 11, 8]), Ud = /* @__PURE__ */ new Uint8Array(new Array(16).fill(0).map((e, t) => t)), Um = /* @__PURE__ */ Ud.map((e) => (9 * e + 5) % 16);
6223
+ let sc = [Ud], oc = [Um];
6224
6224
  for (let e = 0; e < 4; e++)
6225
6225
  for (let t of [sc, oc])
6226
6226
  t.push(t[e].map((r) => Lm[r]));
6227
- const Fd = /* @__PURE__ */ [
6227
+ const Nd = /* @__PURE__ */ [
6228
6228
  [11, 14, 15, 12, 5, 8, 7, 9, 11, 13, 14, 15, 6, 7, 9, 8],
6229
6229
  [12, 13, 11, 15, 6, 9, 9, 7, 12, 15, 11, 13, 7, 8, 7, 7],
6230
6230
  [13, 15, 14, 11, 7, 7, 6, 8, 13, 14, 13, 12, 5, 5, 6, 9],
6231
6231
  [14, 11, 12, 14, 8, 6, 5, 5, 15, 12, 15, 14, 9, 9, 8, 6],
6232
6232
  [15, 12, 13, 13, 9, 5, 8, 6, 14, 11, 12, 11, 8, 6, 5, 5]
6233
- ].map((e) => new Uint8Array(e)), Nm = /* @__PURE__ */ sc.map((e, t) => e.map((r) => Fd[t][r])), Fm = /* @__PURE__ */ oc.map((e, t) => e.map((r) => Fd[t][r])), $m = /* @__PURE__ */ new Uint32Array([
6233
+ ].map((e) => new Uint8Array(e)), Nm = /* @__PURE__ */ sc.map((e, t) => e.map((r) => Nd[t][r])), Fm = /* @__PURE__ */ oc.map((e, t) => e.map((r) => Nd[t][r])), $m = /* @__PURE__ */ new Uint32Array([
6234
6234
  0,
6235
6235
  1518500249,
6236
6236
  1859775393,
@@ -6247,7 +6247,7 @@ function su(e, t, r, n) {
6247
6247
  return e === 0 ? t ^ r ^ n : e === 1 ? t & r | ~t & n : e === 2 ? (t | ~r) ^ n : e === 3 ? t & n | r & ~n : t ^ (r | ~n);
6248
6248
  }
6249
6249
  const Vi = /* @__PURE__ */ new Uint32Array(16);
6250
- let $d = class extends Ud {
6250
+ let Fd = class extends Ld {
6251
6251
  constructor() {
6252
6252
  super(64, 20, 8, !0), this.h0 = 1732584193, this.h1 = -271733879, this.h2 = -1732584194, this.h3 = 271733878, this.h4 = -1009589776;
6253
6253
  }
@@ -6282,9 +6282,9 @@ let $d = class extends Ud {
6282
6282
  this.destroyed = !0, this.buffer.fill(0), this.set(0, 0, 0, 0, 0);
6283
6283
  }
6284
6284
  };
6285
- const Hm = /* @__PURE__ */ ic(() => new $d()), Dm = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
6285
+ const Hm = /* @__PURE__ */ ic(() => new Fd()), Dm = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
6286
6286
  __proto__: null,
6287
- RIPEMD160: $d,
6287
+ RIPEMD160: Fd,
6288
6288
  ripemd160: Hm
6289
6289
  }, Symbol.toStringTag, { value: "Module" })), jm = /* @__PURE__ */ new Uint32Array([
6290
6290
  1116352408,
@@ -6361,7 +6361,7 @@ const Hm = /* @__PURE__ */ ic(() => new $d()), Dm = /* @__PURE__ */ Object.freez
6361
6361
  528734635,
6362
6362
  1541459225
6363
6363
  ]), nr = /* @__PURE__ */ new Uint32Array(64);
6364
- class ac extends Ud {
6364
+ class ac extends Ld {
6365
6365
  constructor() {
6366
6366
  super(64, 32, 8, !1), this.A = rr[0] | 0, this.B = rr[1] | 0, this.C = rr[2] | 0, this.D = rr[3] | 0, this.E = rr[4] | 0, this.F = rr[5] | 0, this.G = rr[6] | 0, this.H = rr[7] | 0;
6367
6367
  }
@@ -6444,7 +6444,7 @@ async function Xm(e, t = {}) {
6444
6444
  async function Jm(e) {
6445
6445
  return await e.request({ method: "wallet_getPermissions" }, { dedupe: !0 });
6446
6446
  }
6447
- async function Md(e, t) {
6447
+ async function $d(e, t) {
6448
6448
  var c;
6449
6449
  const { account: r = e.account, chainId: n, nonce: i } = t;
6450
6450
  if (!r)
@@ -6459,10 +6459,10 @@ async function Md(e, t) {
6459
6459
  chainId: n,
6460
6460
  nonce: i
6461
6461
  };
6462
- return typeof a.chainId > "u" && (a.chainId = ((c = e.chain) == null ? void 0 : c.id) ?? await se(e, Ii, "getChainId")({})), typeof a.nonce > "u" && (a.nonce = await se(e, cd, "getTransactionCount")({
6462
+ return typeof a.chainId > "u" && (a.chainId = ((c = e.chain) == null ? void 0 : c.id) ?? await se(e, Ii, "getChainId")({})), typeof a.nonce > "u" && (a.nonce = await se(e, ad, "getTransactionCount")({
6463
6463
  address: s.address,
6464
6464
  blockTag: "pending"
6465
- }), (o === "self" || o != null && o.address && gd(o.address, s.address)) && (a.nonce += 1)), a;
6465
+ }), (o === "self" || o != null && o.address && bd(o.address, s.address)) && (a.nonce += 1)), a;
6466
6466
  }
6467
6467
  async function Zm(e) {
6468
6468
  return (await e.request({ method: "eth_requestAccounts" }, { dedupe: !0, retryCount: 0 })).map((r) => J0(r));
@@ -6508,7 +6508,7 @@ async function eb(e, t) {
6508
6508
  }, { retryCount: 0 });
6509
6509
  return typeof l == "string" ? { id: l } : l;
6510
6510
  } catch (l) {
6511
- throw Td(l, {
6511
+ throw Pd(l, {
6512
6512
  ...t,
6513
6513
  account: c,
6514
6514
  chain: t.chain
@@ -6537,7 +6537,7 @@ async function rb(e, t) {
6537
6537
  ],
6538
6538
  type: n.type
6539
6539
  });
6540
- const i = await Md(e, t);
6540
+ const i = await $d(e, t);
6541
6541
  return n.signAuthorization(i);
6542
6542
  }
6543
6543
  async function nb(e, { account: t = e.account, message: r }) {
@@ -6567,7 +6567,7 @@ async function ib(e, t) {
6567
6567
  ...t
6568
6568
  });
6569
6569
  const o = await se(e, Ii, "getChainId")({});
6570
- n !== null && Pd({
6570
+ n !== null && Sd({
6571
6571
  currentChainId: o,
6572
6572
  chain: n
6573
6573
  });
@@ -6625,16 +6625,16 @@ function cb(e) {
6625
6625
  addChain: (t) => Wm(e, t),
6626
6626
  deployContract: (t) => Km(e, t),
6627
6627
  getAddresses: () => Ym(e),
6628
- getCallsStatus: (t) => Cd(e, t),
6628
+ getCallsStatus: (t) => Bd(e, t),
6629
6629
  getCapabilities: () => Xm(e),
6630
6630
  getChainId: () => Ii(e),
6631
6631
  getPermissions: () => Jm(e),
6632
- prepareAuthorization: (t) => Md(e, t),
6632
+ prepareAuthorization: (t) => $d(e, t),
6633
6633
  prepareTransactionRequest: (t) => Qa(e, t),
6634
6634
  requestAddresses: () => Zm(e),
6635
6635
  requestPermissions: (t) => Qm(e, t),
6636
6636
  sendCalls: (t) => eb(e, t),
6637
- sendRawTransaction: (t) => Id(e, t),
6637
+ sendRawTransaction: (t) => Td(e, t),
6638
6638
  sendTransaction: (t) => rc(e, t),
6639
6639
  showCallsStatus: (t) => tb(e, t),
6640
6640
  signAuthorization: (t) => rb(e, t),
@@ -6644,7 +6644,7 @@ function cb(e) {
6644
6644
  switchChain: (t) => ob(e, t),
6645
6645
  waitForCallsStatus: (t) => tm(e, t),
6646
6646
  watchAsset: (t) => ab(e, t),
6647
- writeContract: (t) => kd(e, t)
6647
+ writeContract: (t) => Id(e, t)
6648
6648
  };
6649
6649
  }
6650
6650
  function ou(e) {
@@ -6722,7 +6722,7 @@ const pb = (e) => {
6722
6722
  return Se("Invalid signature format");
6723
6723
  };
6724
6724
  var _e = /* @__PURE__ */ ((e) => (e.Created = "Created", e.Matched = "Matched", e.InitiateDetected = "InitiateDetected", e.Initiated = "Initiated", e.CounterPartyInitiateDetected = "CounterPartyInitiateDetected", e.CounterPartyInitiated = "CounterPartyInitiated", e.RedeemDetected = "RedeemDetected", e.Redeemed = "Redeemed", e.CounterPartyRedeemDetected = "CounterPartyRedeemDetected", e.CounterPartyRedeemed = "CounterPartyRedeemed", e.Completed = "Completed", e.CounterPartySwapExpired = "CounterPartySwapExpired", e.Expired = "Expired", e.RefundDetected = "RefundDetected", e.Refunded = "Refunded", e.CounterPartyRefundDetected = "CounterPartyRefundDetected", e.CounterPartyRefunded = "CounterPartyRefunded", e.Cancelled = "Cancelled", e.DeadLineExceeded = "DeadLineExceeded", e))(_e || {}), ve = /* @__PURE__ */ ((e) => (e.Idle = "Idle", e.InitiateDetected = "InitiateDetected", e.Initiated = "Initiated", e.RedeemDetected = "RedeemDetected", e.Redeemed = "Redeemed", e.RefundDetected = "RefundDetected", e.Refunded = "Refunded", e.Expired = "Expired", e))(ve || {});
6725
- const Hd = (e, t, r) => {
6725
+ const Md = (e, t, r) => {
6726
6726
  const n = au(
6727
6727
  e.source_swap,
6728
6728
  t
@@ -6758,13 +6758,13 @@ const Hd = (e, t, r) => {
6758
6758
  }
6759
6759
  return e.initiate_tx_hash ? Number(e.initiate_block_number) ? ve.Initiated : ve.InitiateDetected : ve.Idle;
6760
6760
  }, uv = (e, t, r) => {
6761
- const n = Hd(
6761
+ const n = Md(
6762
6762
  e,
6763
6763
  t,
6764
6764
  r
6765
6765
  );
6766
- return Dd(n);
6767
- }, Dd = (e) => {
6766
+ return Hd(n);
6767
+ }, Hd = (e) => {
6768
6768
  switch (e) {
6769
6769
  case _e.Matched:
6770
6770
  return Ce.Initiate;
@@ -6780,7 +6780,7 @@ const Hd = (e, t, r) => {
6780
6780
  }, _s = (e, t = 0) => {
6781
6781
  const r = Date.now(), n = e * 1e3 + t * 36e5;
6782
6782
  return r >= n;
6783
- }, fv = (e) => e.filter((t) => !jd(t)), jd = (e) => {
6783
+ }, fv = (e) => e.filter((t) => !Dd(t)), Dd = (e) => {
6784
6784
  const { source_swap: t, create_order: r } = e, { initiate_tx_hash: n, initiate_block_number: i } = t, { deadline: s } = r.additional_data;
6785
6785
  return n && Number(i) ? !1 : n && !Number(i) ? _s(Number(s), 12) : n ? !1 : _s(Number(s), 1);
6786
6786
  }, bb = Buffer.from(
@@ -6796,7 +6796,7 @@ const Hd = (e, t, r) => {
6796
6796
  failedToCreateInternalPubkey: "failed to create internal pubkey"
6797
6797
  };
6798
6798
  function vb() {
6799
- const e = fh.sha256(Buffer.from("GardenHTLC", "utf-8")), t = Cr.pointMultiply(
6799
+ const e = uh.sha256(Buffer.from("GardenHTLC", "utf-8")), t = Cr.pointMultiply(
6800
6800
  Buffer.concat([Buffer.from("04", "hex"), wb]),
6801
6801
  e
6802
6802
  );
@@ -6838,7 +6838,7 @@ for (var Kr = 0, Ab = Po.length; Kr < Ab; ++Kr)
6838
6838
  Tt[Kr] = Po[Kr], ut[Po.charCodeAt(Kr)] = Kr;
6839
6839
  ut[45] = 62;
6840
6840
  ut[95] = 63;
6841
- function Gd(e) {
6841
+ function jd(e) {
6842
6842
  var t = e.length;
6843
6843
  if (t % 4 > 0)
6844
6844
  throw new Error("Invalid string. Length must be a multiple of 4");
@@ -6848,14 +6848,14 @@ function Gd(e) {
6848
6848
  return [r, n];
6849
6849
  }
6850
6850
  function Sb(e) {
6851
- var t = Gd(e), r = t[0], n = t[1];
6851
+ var t = jd(e), r = t[0], n = t[1];
6852
6852
  return (r + n) * 3 / 4 - n;
6853
6853
  }
6854
6854
  function Pb(e, t, r) {
6855
6855
  return (t + r) * 3 / 4 - r;
6856
6856
  }
6857
6857
  function Tb(e) {
6858
- var t, r = Gd(e), n = r[0], i = r[1], s = new xb(Pb(e, n, i)), o = 0, a = i > 0 ? n - 4 : n, c;
6858
+ var t, r = jd(e), n = r[0], i = r[1], s = new xb(Pb(e, n, i)), o = 0, a = i > 0 ? n - 4 : n, c;
6859
6859
  for (c = 0; c < a; c += 4)
6860
6860
  t = ut[e.charCodeAt(c)] << 18 | ut[e.charCodeAt(c + 1)] << 12 | ut[e.charCodeAt(c + 2)] << 6 | ut[e.charCodeAt(c + 3)], s[o++] = t >> 16 & 255, s[o++] = t >> 8 & 255, s[o++] = t & 255;
6861
6861
  return i === 2 && (t = ut[e.charCodeAt(c)] << 2 | ut[e.charCodeAt(c + 1)] >> 4, s[o++] = t & 255), i === 1 && (t = ut[e.charCodeAt(c)] << 10 | ut[e.charCodeAt(c + 1)] << 4 | ut[e.charCodeAt(c + 2)] >> 2, s[o++] = t >> 8 & 255, s[o++] = t & 255), s;
@@ -7878,11 +7878,11 @@ for (var uu in _i)
7878
7878
  return e;
7879
7879
  }).bind(null, uu);
7880
7880
  var fc = _i, kr = fc;
7881
- function zd(e) {
7881
+ function Gd(e) {
7882
7882
  return e.name || e.toString().match(/function (.*?)\s*\(/)[1];
7883
7883
  }
7884
7884
  function dc(e) {
7885
- return kr.Nil(e) ? "" : zd(e.constructor);
7885
+ return kr.Nil(e) ? "" : Gd(e.constructor);
7886
7886
  }
7887
7887
  function Cb(e) {
7888
7888
  return kr.Function(e) ? "" : kr.String(e) ? JSON.stringify(e) : e && kr.Object(e) ? "" : e;
@@ -7891,20 +7891,20 @@ function lc(e, t) {
7891
7891
  Error.captureStackTrace && Error.captureStackTrace(e, t);
7892
7892
  }
7893
7893
  function vs(e) {
7894
- return kr.Function(e) ? e.toJSON ? e.toJSON() : zd(e) : kr.Array(e) ? "Array" : e && kr.Object(e) ? "Object" : e !== void 0 ? e : "";
7894
+ return kr.Function(e) ? e.toJSON ? e.toJSON() : Gd(e) : kr.Array(e) ? "Array" : e && kr.Object(e) ? "Object" : e !== void 0 ? e : "";
7895
7895
  }
7896
- function qd(e, t, r) {
7896
+ function zd(e, t, r) {
7897
7897
  var n = Cb(t);
7898
7898
  return "Expected " + vs(e) + ", got" + (r !== "" ? " " + r : "") + (n !== "" ? " " + n : "");
7899
7899
  }
7900
7900
  function Vt(e, t, r) {
7901
- r = r || dc(t), this.message = qd(e, t, r), lc(this, Vt), this.__type = e, this.__value = t, this.__valueTypeName = r;
7901
+ r = r || dc(t), this.message = zd(e, t, r), lc(this, Vt), this.__type = e, this.__value = t, this.__valueTypeName = r;
7902
7902
  }
7903
7903
  Vt.prototype = Object.create(Error.prototype);
7904
7904
  Vt.prototype.constructor = Vt;
7905
7905
  function Ob(e, t, r, n, i) {
7906
7906
  var s = '" of type ';
7907
- return t === "key" && (s = '" with key type '), qd('property "' + vs(r) + s + vs(e), n, i);
7907
+ return t === "key" && (s = '" with key type '), zd('property "' + vs(r) + s + vs(e), n, i);
7908
7908
  }
7909
7909
  function cn(e, t, r, n, i) {
7910
7910
  e ? (i = i || dc(n), this.message = Ob(e, r, t, n, i)) : this.message = 'Unexpected property "' + t + '"', lc(this, Vt), this.__label = r, this.__property = t, this.__type = e, this.__value = n, this.__valueTypeName = i;
@@ -7929,7 +7929,7 @@ function Lb(e, t, r) {
7929
7929
  e.__valueTypeName
7930
7930
  )), lc(e), e;
7931
7931
  }
7932
- var Vd = {
7932
+ var qd = {
7933
7933
  TfTypeError: Vt,
7934
7934
  TfPropertyTypeError: cn,
7935
7935
  tfCustomError: Rb,
@@ -7940,7 +7940,7 @@ var Vd = {
7940
7940
  function Ub() {
7941
7941
  if (fu) return To;
7942
7942
  fu = 1;
7943
- var e = fc, t = Vd;
7943
+ var e = fc, t = qd;
7944
7944
  function r(S) {
7945
7945
  return Buffer.isBuffer(S);
7946
7946
  }
@@ -8020,7 +8020,7 @@ function Ub() {
8020
8020
  }).bind(null, T);
8021
8021
  return To = E, To;
8022
8022
  }
8023
- var Bi = Vd, Ne = fc, Rt = Bi.tfJSON, Wd = Bi.TfTypeError, Kd = Bi.TfPropertyTypeError, Bn = Bi.tfSubError, Nb = Bi.getValueTypeName, $t = {
8023
+ var Bi = qd, Ne = fc, Rt = Bi.tfJSON, Vd = Bi.TfTypeError, Wd = Bi.TfPropertyTypeError, Bn = Bi.tfSubError, Nb = Bi.getValueTypeName, $t = {
8024
8024
  arrayOf: function(t, r) {
8025
8025
  t = xt(t), r = r || {};
8026
8026
  function n(i, s) {
@@ -8089,7 +8089,7 @@ var Bi = Vd, Ne = fc, Rt = Bi.tfJSON, Wd = Bi.TfTypeError, Kd = Bi.TfPropertyTyp
8089
8089
  if (o) {
8090
8090
  for (a in s)
8091
8091
  if (!r[a])
8092
- throw new Kd(void 0, a);
8092
+ throw new Wd(void 0, a);
8093
8093
  }
8094
8094
  return !0;
8095
8095
  }
@@ -8176,7 +8176,7 @@ function xt(e) {
8176
8176
  function Xe(e, t, r, n) {
8177
8177
  if (Ne.Function(e)) {
8178
8178
  if (e(t, r)) return !0;
8179
- throw new Wd(n || e, t);
8179
+ throw new Vd(n || e, t);
8180
8180
  }
8181
8181
  return Xe(xt(e), t, r);
8182
8182
  }
@@ -8188,13 +8188,13 @@ var du = Ub();
8188
8188
  for (dr in du)
8189
8189
  Xe[dr] = du[dr];
8190
8190
  Xe.compile = xt;
8191
- Xe.TfTypeError = Wd;
8192
- Xe.TfPropertyTypeError = Kd;
8193
- var Yd = Xe;
8191
+ Xe.TfTypeError = Vd;
8192
+ Xe.TfPropertyTypeError = Wd;
8193
+ var Kd = Xe;
8194
8194
  (function(e) {
8195
8195
  Object.defineProperty(e, "__esModule", { value: !0 }), e.oneOf = e.Null = e.BufferN = e.Function = e.UInt32 = e.UInt8 = e.tuple = e.maybe = e.Hex = e.Buffer = e.String = e.Boolean = e.Array = e.Number = e.Hash256bit = e.Hash160bit = e.Buffer256bit = e.isTaptree = e.isTapleaf = e.TAPLEAF_VERSION_MASK = e.Satoshi = e.isPoint = e.stacksEqual = e.typeforce = void 0;
8196
8196
  const t = Jt;
8197
- e.typeforce = Yd;
8197
+ e.typeforce = Kd;
8198
8198
  const r = t.Buffer.alloc(32, 0), n = t.Buffer.from(
8199
8199
  "fffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f",
8200
8200
  "hex"
@@ -8230,9 +8230,9 @@ var Yd = Xe;
8230
8230
  var Ci = {}, Fe = {};
8231
8231
  Object.defineProperty(Fe, "__esModule", { value: !0 });
8232
8232
  Fe.BufferReader = Fe.BufferWriter = Fe.cloneBuffer = Fe.reverseBuffer = Fe.writeUInt64LE = Fe.readUInt64LE = Fe.varuint = void 0;
8233
- const Br = ze, { typeforce: Xd } = Br, vi = uh;
8233
+ const Br = ze, { typeforce: Yd } = Br, vi = ch;
8234
8234
  Fe.varuint = vi;
8235
- function Jd(e, t) {
8235
+ function Xd(e, t) {
8236
8236
  if (typeof e != "number")
8237
8237
  throw new Error("cannot write a non-number as a number");
8238
8238
  if (e < 0)
@@ -8241,16 +8241,16 @@ function Jd(e, t) {
8241
8241
  if (Math.floor(e) !== e)
8242
8242
  throw new Error("value has a fractional component");
8243
8243
  }
8244
- function Zd(e, t) {
8244
+ function Jd(e, t) {
8245
8245
  const r = e.readUInt32LE(t);
8246
8246
  let n = e.readUInt32LE(t + 4);
8247
- return n *= 4294967296, Jd(n + r, 9007199254740991), n + r;
8247
+ return n *= 4294967296, Xd(n + r, 9007199254740991), n + r;
8248
8248
  }
8249
- Fe.readUInt64LE = Zd;
8250
- function Qd(e, t, r) {
8251
- return Jd(t, 9007199254740991), e.writeInt32LE(t & -1, r), e.writeUInt32LE(Math.floor(t / 4294967296), r + 4), r + 8;
8249
+ Fe.readUInt64LE = Jd;
8250
+ function Zd(e, t, r) {
8251
+ return Xd(t, 9007199254740991), e.writeInt32LE(t & -1, r), e.writeUInt32LE(Math.floor(t / 4294967296), r + 4), r + 8;
8252
8252
  }
8253
- Fe.writeUInt64LE = Qd;
8253
+ Fe.writeUInt64LE = Zd;
8254
8254
  function Fb(e) {
8255
8255
  if (e.length < 1) return e;
8256
8256
  let t = e.length - 1, r = 0;
@@ -8269,7 +8269,7 @@ class hc {
8269
8269
  return new hc(Buffer.alloc(t));
8270
8270
  }
8271
8271
  constructor(t, r = 0) {
8272
- this.buffer = t, this.offset = r, Xd(Br.tuple(Br.Buffer, Br.UInt32), [t, r]);
8272
+ this.buffer = t, this.offset = r, Yd(Br.tuple(Br.Buffer, Br.UInt32), [t, r]);
8273
8273
  }
8274
8274
  writeUInt8(t) {
8275
8275
  this.offset = this.buffer.writeUInt8(t, this.offset);
@@ -8281,7 +8281,7 @@ class hc {
8281
8281
  this.offset = this.buffer.writeUInt32LE(t, this.offset);
8282
8282
  }
8283
8283
  writeUInt64(t) {
8284
- this.offset = Qd(this.buffer, t, this.offset);
8284
+ this.offset = Zd(this.buffer, t, this.offset);
8285
8285
  }
8286
8286
  writeVarInt(t) {
8287
8287
  vi.encode(t, this.buffer, this.offset), this.offset += vi.encode.bytes;
@@ -8306,7 +8306,7 @@ class hc {
8306
8306
  Fe.BufferWriter = hc;
8307
8307
  class Mb {
8308
8308
  constructor(t, r = 0) {
8309
- this.buffer = t, this.offset = r, Xd(Br.tuple(Br.Buffer, Br.UInt32), [t, r]);
8309
+ this.buffer = t, this.offset = r, Yd(Br.tuple(Br.Buffer, Br.UInt32), [t, r]);
8310
8310
  }
8311
8311
  readUInt8() {
8312
8312
  const t = this.buffer.readUInt8(this.offset);
@@ -8321,7 +8321,7 @@ class Mb {
8321
8321
  return this.offset += 4, t;
8322
8322
  }
8323
8323
  readUInt64() {
8324
- const t = Zd(this.buffer, this.offset);
8324
+ const t = Jd(this.buffer, this.offset);
8325
8325
  return this.offset += 8, t;
8326
8326
  }
8327
8327
  readVarInt() {
@@ -8349,7 +8349,7 @@ const Hb = /* @__PURE__ */ cc(Dm);
8349
8349
  var yn = {}, Mr = {}, wr = {};
8350
8350
  Object.defineProperty(wr, "__esModule", { value: !0 });
8351
8351
  wr.anumber = ga;
8352
- wr.abytes = el;
8352
+ wr.abytes = Qd;
8353
8353
  wr.ahash = jb;
8354
8354
  wr.aexists = Gb;
8355
8355
  wr.aoutput = zb;
@@ -8360,7 +8360,7 @@ function ga(e) {
8360
8360
  function Db(e) {
8361
8361
  return e instanceof Uint8Array || ArrayBuffer.isView(e) && e.constructor.name === "Uint8Array";
8362
8362
  }
8363
- function el(e, ...t) {
8363
+ function Qd(e, ...t) {
8364
8364
  if (!Db(e))
8365
8365
  throw new Error("Uint8Array expected");
8366
8366
  if (t.length > 0 && !t.includes(e.length))
@@ -8378,7 +8378,7 @@ function Gb(e, t = !0) {
8378
8378
  throw new Error("Hash#digest() has already been called");
8379
8379
  }
8380
8380
  function zb(e, t) {
8381
- el(e);
8381
+ Qd(e);
8382
8382
  const r = t.outputLen;
8383
8383
  if (e.length < r)
8384
8384
  throw new Error("digestInto() expects output buffer of length at least " + r);
@@ -8518,11 +8518,11 @@ js.crypto = typeof globalThis == "object" && "crypto" in globalThis ? globalThis
8518
8518
  })(pc);
8519
8519
  Object.defineProperty(Mr, "__esModule", { value: !0 });
8520
8520
  Mr.HashMD = void 0;
8521
- Mr.setBigUint64 = tl;
8521
+ Mr.setBigUint64 = el;
8522
8522
  Mr.Chi = qb;
8523
8523
  Mr.Maj = Vb;
8524
8524
  const Io = wr, Cn = pc;
8525
- function tl(e, t, r, n) {
8525
+ function el(e, t, r, n) {
8526
8526
  if (typeof e.setBigUint64 == "function")
8527
8527
  return e.setBigUint64(t, r, n);
8528
8528
  const i = BigInt(32), s = BigInt(4294967295), o = Number(r >> i & s), a = Number(r & s), c = n ? 4 : 0, f = n ? 0 : 4;
@@ -8562,7 +8562,7 @@ class Wb extends Cn.Hash {
8562
8562
  r[o++] = 128, this.buffer.subarray(o).fill(0), this.padOffset > i - o && (this.process(n, 0), o = 0);
8563
8563
  for (let h = o; h < i; h++)
8564
8564
  r[h] = 0;
8565
- tl(n, i - 8, BigInt(this.length * 8), s), this.process(n, 0);
8565
+ el(n, i - 8, BigInt(this.length * 8), s), this.process(n, 0);
8566
8566
  const a = (0, Cn.createView)(t), c = this.outputLen;
8567
8567
  if (c % 4)
8568
8568
  throw new Error("_sha2: outputLen should be aligned to 32bit");
@@ -8594,7 +8594,7 @@ const ko = Mr, ss = pc, On = /* @__PURE__ */ new Uint32Array([
8594
8594
  271733878,
8595
8595
  3285377520
8596
8596
  ]), ir = /* @__PURE__ */ new Uint32Array(80);
8597
- class rl extends ko.HashMD {
8597
+ class tl extends ko.HashMD {
8598
8598
  constructor() {
8599
8599
  super(64, 20, 8, !1), this.A = On[0] | 0, this.B = On[1] | 0, this.C = On[2] | 0, this.D = On[3] | 0, this.E = On[4] | 0;
8600
8600
  }
@@ -8626,12 +8626,12 @@ class rl extends ko.HashMD {
8626
8626
  this.set(0, 0, 0, 0, 0), this.buffer.fill(0);
8627
8627
  }
8628
8628
  }
8629
- yn.SHA1 = rl;
8630
- yn.sha1 = (0, ss.wrapConstructor)(() => new rl());
8631
- const nl = /* @__PURE__ */ cc(Vm);
8629
+ yn.SHA1 = tl;
8630
+ yn.sha1 = (0, ss.wrapConstructor)(() => new tl());
8631
+ const rl = /* @__PURE__ */ cc(Vm);
8632
8632
  (function(e) {
8633
8633
  Object.defineProperty(e, "__esModule", { value: !0 }), e.taggedHash = e.TAGGED_HASH_PREFIXES = e.TAGS = e.hash256 = e.hash160 = e.sha256 = e.sha1 = e.ripemd160 = void 0;
8634
- const t = Hb, r = yn, n = nl;
8634
+ const t = Hb, r = yn, n = rl;
8635
8635
  function i(l) {
8636
8636
  return Buffer.from((0, t.ripemd160)(Uint8Array.from(l)));
8637
8637
  }
@@ -9444,22 +9444,22 @@ const wa = {
9444
9444
  OP_INVALIDOPCODE: 255
9445
9445
  };
9446
9446
  Nr.OPS = wa;
9447
- const il = {};
9448
- Nr.REVERSE_OPS = il;
9447
+ const nl = {};
9448
+ Nr.REVERSE_OPS = nl;
9449
9449
  for (const e of Object.keys(wa)) {
9450
9450
  const t = wa[e];
9451
- il[t] = e;
9451
+ nl[t] = e;
9452
9452
  }
9453
9453
  var lr = {};
9454
9454
  Object.defineProperty(lr, "__esModule", { value: !0 });
9455
9455
  lr.decode = lr.encode = lr.encodingLength = void 0;
9456
9456
  const ur = Nr;
9457
- function sl(e) {
9457
+ function il(e) {
9458
9458
  return e < ur.OPS.OP_PUSHDATA1 ? 1 : e <= 255 ? 2 : e <= 65535 ? 3 : 5;
9459
9459
  }
9460
- lr.encodingLength = sl;
9460
+ lr.encodingLength = il;
9461
9461
  function Jb(e, t, r) {
9462
- const n = sl(t);
9462
+ const n = il(t);
9463
9463
  return n === 1 ? e.writeUInt8(t, r) : n === 2 ? (e.writeUInt8(ur.OPS.OP_PUSHDATA1, r), e.writeUInt8(t, r + 1)) : n === 3 ? (e.writeUInt8(ur.OPS.OP_PUSHDATA2, r), e.writeUInt16LE(t, r + 1)) : (e.writeUInt8(ur.OPS.OP_PUSHDATA4, r), e.writeUInt32LE(t, r + 1)), n;
9464
9464
  }
9465
9465
  lr.encode = Jb;
@@ -9980,7 +9980,7 @@ function yc(e) {
9980
9980
  throw new RangeError("value out of range");
9981
9981
  }
9982
9982
  function zn(e, t, r) {
9983
- if (yc(e), t || (t = Buffer.allocUnsafe(ol(e))), !Buffer.isBuffer(t))
9983
+ if (yc(e), t || (t = Buffer.allocUnsafe(sl(e))), !Buffer.isBuffer(t))
9984
9984
  throw new TypeError("buffer must be a Buffer instance");
9985
9985
  return r || (r = 0), e < 253 ? (t.writeUInt8(e, r), Object.assign(zn, { bytes: 1 })) : e <= 65535 ? (t.writeUInt8(253, r), t.writeUInt16LE(e, r + 1), Object.assign(zn, { bytes: 3 })) : e <= 4294967295 ? (t.writeUInt8(254, r), t.writeUInt32LE(e, r + 1), Object.assign(zn, { bytes: 5 })) : (t.writeUInt8(255, r), t.writeUInt32LE(e >>> 0, r + 1), t.writeUInt32LE(e / 4294967296 | 0, r + 5), Object.assign(zn, { bytes: 9 })), t;
9986
9986
  }
@@ -10003,10 +10003,10 @@ function qn(e, t) {
10003
10003
  }
10004
10004
  }
10005
10005
  Oi.decode = qn;
10006
- function ol(e) {
10006
+ function sl(e) {
10007
10007
  return yc(e), e < 253 ? 1 : e <= 65535 ? 3 : e <= 4294967295 ? 5 : 9;
10008
10008
  }
10009
- Oi.encodingLength = ol;
10009
+ Oi.encodingLength = sl;
10010
10010
  var Ro = {}, Gs = {}, Ge = {};
10011
10011
  Object.defineProperty(Ge, "__esModule", { value: !0 });
10012
10012
  Ge.testnet = Ge.regtest = Ge.bitcoin = void 0;
@@ -10385,7 +10385,7 @@ var vg = wg(_g), Lo = vg, Eg = function(e) {
10385
10385
  decode: i,
10386
10386
  decodeUnsafe: n
10387
10387
  };
10388
- }, { sha256: wu } = nl, xg = Eg;
10388
+ }, { sha256: wu } = rl, xg = Eg;
10389
10389
  function Ag(e) {
10390
10390
  return wu(wu(e));
10391
10391
  }
@@ -10633,10 +10633,10 @@ Ws.p2sh = Ig;
10633
10633
  var Ks = {}, Wt = {};
10634
10634
  Object.defineProperty(Wt, "__esModule", { value: !0 });
10635
10635
  Wt.bech32m = Wt.bech32 = void 0;
10636
- const Es = "qpzry9x8gf2tvdw0s3jn54khce6mua7l", al = {};
10636
+ const Es = "qpzry9x8gf2tvdw0s3jn54khce6mua7l", ol = {};
10637
10637
  for (let e = 0; e < Es.length; e++) {
10638
10638
  const t = Es.charAt(e);
10639
- al[t] = e;
10639
+ ol[t] = e;
10640
10640
  }
10641
10641
  function un(e) {
10642
10642
  const t = e >> 25;
@@ -10687,7 +10687,7 @@ function Cg(e) {
10687
10687
  return t;
10688
10688
  throw new Error(t);
10689
10689
  }
10690
- function cl(e) {
10690
+ function al(e) {
10691
10691
  let t;
10692
10692
  e === "bech32" ? t = 1 : t = 734539939;
10693
10693
  function r(o, a, c) {
@@ -10735,7 +10735,7 @@ function cl(e) {
10735
10735
  return p;
10736
10736
  const g = [];
10737
10737
  for (let v = 0; v < m.length; ++v) {
10738
- const x = m.charAt(v), k = al[x];
10738
+ const x = m.charAt(v), k = ol[x];
10739
10739
  if (k === void 0)
10740
10740
  return "Unknown character " + x;
10741
10741
  p = un(p) ^ k, !(v + 6 >= m.length) && g.push(k);
@@ -10762,8 +10762,8 @@ function cl(e) {
10762
10762
  fromWords: Cg
10763
10763
  };
10764
10764
  }
10765
- Wt.bech32 = cl("bech32");
10766
- Wt.bech32m = cl("bech32m");
10765
+ Wt.bech32 = al("bech32");
10766
+ Wt.bech32m = al("bech32m");
10767
10767
  Object.defineProperty(Ks, "__esModule", { value: !0 });
10768
10768
  Ks.p2wpkh = void 0;
10769
10769
  const No = gr, Og = Ge, as = ot(), Be = ze, ar = it, Ki = Wt, Au = as.OPS, Rg = Buffer.alloc(0);
@@ -11581,23 +11581,23 @@ function zg(e) {
11581
11581
  return s(e), t;
11582
11582
  }
11583
11583
  de.witnessStackToScriptWitness = zg;
11584
- function ul(e, t) {
11584
+ function cl(e, t) {
11585
11585
  const r = (0, Gg.hash160)(e), n = e.slice(1, 33), i = Kn.decompile(t);
11586
11586
  if (i === null) throw new Error("Unknown script error");
11587
11587
  return i.findIndex((s) => typeof s == "number" ? !1 : s.equals(e) || s.equals(r) || s.equals(n));
11588
11588
  }
11589
- de.pubkeyPositionInScript = ul;
11589
+ de.pubkeyPositionInScript = cl;
11590
11590
  function qg(e, t) {
11591
- return ul(e, t) !== -1;
11591
+ return cl(e, t) !== -1;
11592
11592
  }
11593
11593
  de.pubkeyInScript = qg;
11594
11594
  function Vg(e, t) {
11595
11595
  return Wg(e).some(
11596
- (n) => fl(n, Kn.signature.decode, t)
11596
+ (n) => ul(n, Kn.signature.decode, t)
11597
11597
  );
11598
11598
  }
11599
11599
  de.checkInputForSig = Vg;
11600
- function fl(e, t, r) {
11600
+ function ul(e, t, r) {
11601
11601
  const { hashType: n } = t(e), i = [];
11602
11602
  switch (n & Ji.Transaction.SIGHASH_ANYONECANPAY && i.push("addInput"), n & 31) {
11603
11603
  case Ji.Transaction.SIGHASH_ALL:
@@ -11609,7 +11609,7 @@ function fl(e, t, r) {
11609
11609
  }
11610
11610
  return i.indexOf(r) === -1;
11611
11611
  }
11612
- de.signatureBlocksAction = fl;
11612
+ de.signatureBlocksAction = ul;
11613
11613
  function Wg(e) {
11614
11614
  let t = [];
11615
11615
  if ((e.partialSig || []).length === 0) {
@@ -11674,7 +11674,7 @@ function n1(e, t) {
11674
11674
  }
11675
11675
  }
11676
11676
  function i1(e, t) {
11677
- const r = t && dl(t.leaves), { output: n } = (0, Xg.p2tr)({
11677
+ const r = t && fl(t.leaves), { output: n } = (0, Xg.p2tr)({
11678
11678
  internalPubkey: e,
11679
11679
  scriptTree: r
11680
11680
  });
@@ -11697,13 +11697,13 @@ function o1(e) {
11697
11697
  return _a(e);
11698
11698
  }
11699
11699
  Ee.tapTreeToList = o1;
11700
- function dl(e = []) {
11700
+ function fl(e = []) {
11701
11701
  return e.length === 1 && e[0].depth === 0 ? {
11702
11702
  output: e[0].script,
11703
11703
  version: e[0].leafVersion
11704
11704
  } : d1(e);
11705
11705
  }
11706
- Ee.tapTreeFromList = dl;
11706
+ Ee.tapTreeFromList = fl;
11707
11707
  function a1(e, t) {
11708
11708
  return u1(e).some(
11709
11709
  (n) => (0, Jg.signatureBlocksAction)(n, c1, t)
@@ -12526,7 +12526,7 @@ class E1 {
12526
12526
  }
12527
12527
  }
12528
12528
  }
12529
- var ll = {}, bn = {}, gn = {};
12529
+ var dl = {}, bn = {}, gn = {};
12530
12530
  Object.defineProperty(gn, "__esModule", { value: !0 });
12531
12531
  gn.testnet = gn.bitcoin = void 0;
12532
12532
  gn.bitcoin = {
@@ -12553,9 +12553,9 @@ gn.testnet = {
12553
12553
  scriptHash: 196,
12554
12554
  wif: 239
12555
12555
  };
12556
- var hl = {};
12556
+ var ll = {};
12557
12557
  (function(e) {
12558
- Object.defineProperty(e, "__esModule", { value: !0 }), e.maybe = e.Boolean = e.Array = e.Buffer256bit = e.Network = e.typeforce = void 0, e.typeforce = Yd, e.Network = e.typeforce.compile({
12558
+ Object.defineProperty(e, "__esModule", { value: !0 }), e.maybe = e.Boolean = e.Array = e.Buffer256bit = e.Network = e.typeforce = void 0, e.typeforce = Kd, e.Network = e.typeforce.compile({
12559
12559
  messagePrefix: e.typeforce.oneOf(
12560
12560
  e.typeforce.Buffer,
12561
12561
  e.typeforce.String
@@ -12568,7 +12568,7 @@ var hl = {};
12568
12568
  scriptHash: e.typeforce.UInt8,
12569
12569
  wif: e.typeforce.UInt8
12570
12570
  }), e.Buffer256bit = e.typeforce.BufferN(32), e.Array = e.typeforce.Array, e.Boolean = e.typeforce.Boolean, e.maybe = e.typeforce.maybe;
12571
- })(hl);
12571
+ })(ll);
12572
12572
  var xa = { exports: {} }, Aa = { exports: {} };
12573
12573
  /*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
12574
12574
  (function(e, t) {
@@ -12649,7 +12649,7 @@ dn && typeof dn.ownKeys == "function" ? ds = dn.ownKeys : Object.getOwnPropertyS
12649
12649
  function I1(e) {
12650
12650
  console && console.warn && console.warn(e);
12651
12651
  }
12652
- var pl = Number.isNaN || function(t) {
12652
+ var hl = Number.isNaN || function(t) {
12653
12653
  return t !== t;
12654
12654
  };
12655
12655
  function ce() {
@@ -12672,7 +12672,7 @@ Object.defineProperty(ce, "defaultMaxListeners", {
12672
12672
  return Ou;
12673
12673
  },
12674
12674
  set: function(e) {
12675
- if (typeof e != "number" || e < 0 || pl(e))
12675
+ if (typeof e != "number" || e < 0 || hl(e))
12676
12676
  throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received ' + e + ".");
12677
12677
  Ou = e;
12678
12678
  }
@@ -12681,15 +12681,15 @@ ce.init = function() {
12681
12681
  (this._events === void 0 || this._events === Object.getPrototypeOf(this)._events) && (this._events = /* @__PURE__ */ Object.create(null), this._eventsCount = 0), this._maxListeners = this._maxListeners || void 0;
12682
12682
  };
12683
12683
  ce.prototype.setMaxListeners = function(t) {
12684
- if (typeof t != "number" || t < 0 || pl(t))
12684
+ if (typeof t != "number" || t < 0 || hl(t))
12685
12685
  throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received ' + t + ".");
12686
12686
  return this._maxListeners = t, this;
12687
12687
  };
12688
- function yl(e) {
12688
+ function pl(e) {
12689
12689
  return e._maxListeners === void 0 ? ce.defaultMaxListeners : e._maxListeners;
12690
12690
  }
12691
12691
  ce.prototype.getMaxListeners = function() {
12692
- return yl(this);
12692
+ return pl(this);
12693
12693
  };
12694
12694
  ce.prototype.emit = function(t) {
12695
12695
  for (var r = [], n = 1; n < arguments.length; n++) r.push(arguments[n]);
@@ -12711,11 +12711,11 @@ ce.prototype.emit = function(t) {
12711
12711
  if (typeof c == "function")
12712
12712
  Cu(c, this, r);
12713
12713
  else
12714
- for (var f = c.length, l = _l(c, f), n = 0; n < f; ++n)
12714
+ for (var f = c.length, l = wl(c, f), n = 0; n < f; ++n)
12715
12715
  Cu(l[n], this, r);
12716
12716
  return !0;
12717
12717
  };
12718
- function ml(e, t, r, n) {
12718
+ function yl(e, t, r, n) {
12719
12719
  var i, s, o;
12720
12720
  if (Js(r), s = e._events, s === void 0 ? (s = e._events = /* @__PURE__ */ Object.create(null), e._eventsCount = 0) : (s.newListener !== void 0 && (e.emit(
12721
12721
  "newListener",
@@ -12723,7 +12723,7 @@ function ml(e, t, r, n) {
12723
12723
  r.listener ? r.listener : r
12724
12724
  ), s = e._events), o = s[t]), o === void 0)
12725
12725
  o = s[t] = r, ++e._eventsCount;
12726
- else if (typeof o == "function" ? o = s[t] = n ? [r, o] : [o, r] : n ? o.unshift(r) : o.push(r), i = yl(e), i > 0 && o.length > i && !o.warned) {
12726
+ else if (typeof o == "function" ? o = s[t] = n ? [r, o] : [o, r] : n ? o.unshift(r) : o.push(r), i = pl(e), i > 0 && o.length > i && !o.warned) {
12727
12727
  o.warned = !0;
12728
12728
  var a = new Error("Possible EventEmitter memory leak detected. " + o.length + " " + String(t) + " listeners added. Use emitter.setMaxListeners() to increase limit");
12729
12729
  a.name = "MaxListenersExceededWarning", a.emitter = e, a.type = t, a.count = o.length, I1(a);
@@ -12731,25 +12731,25 @@ function ml(e, t, r, n) {
12731
12731
  return e;
12732
12732
  }
12733
12733
  ce.prototype.addListener = function(t, r) {
12734
- return ml(this, t, r, !1);
12734
+ return yl(this, t, r, !1);
12735
12735
  };
12736
12736
  ce.prototype.on = ce.prototype.addListener;
12737
12737
  ce.prototype.prependListener = function(t, r) {
12738
- return ml(this, t, r, !0);
12738
+ return yl(this, t, r, !0);
12739
12739
  };
12740
12740
  function k1() {
12741
12741
  if (!this.fired)
12742
12742
  return this.target.removeListener(this.type, this.wrapFn), this.fired = !0, arguments.length === 0 ? this.listener.call(this.target) : this.listener.apply(this.target, arguments);
12743
12743
  }
12744
- function bl(e, t, r) {
12744
+ function ml(e, t, r) {
12745
12745
  var n = { fired: !1, wrapFn: void 0, target: e, type: t, listener: r }, i = k1.bind(n);
12746
12746
  return i.listener = r, n.wrapFn = i, i;
12747
12747
  }
12748
12748
  ce.prototype.once = function(t, r) {
12749
- return Js(r), this.on(t, bl(this, t, r)), this;
12749
+ return Js(r), this.on(t, ml(this, t, r)), this;
12750
12750
  };
12751
12751
  ce.prototype.prependOnceListener = function(t, r) {
12752
- return Js(r), this.prependListener(t, bl(this, t, r)), this;
12752
+ return Js(r), this.prependListener(t, ml(this, t, r)), this;
12753
12753
  };
12754
12754
  ce.prototype.removeListener = function(t, r) {
12755
12755
  var n, i, s, o, a;
@@ -12791,24 +12791,24 @@ ce.prototype.removeAllListeners = function(t) {
12791
12791
  this.removeListener(t, r[i]);
12792
12792
  return this;
12793
12793
  };
12794
- function gl(e, t, r) {
12794
+ function bl(e, t, r) {
12795
12795
  var n = e._events;
12796
12796
  if (n === void 0)
12797
12797
  return [];
12798
12798
  var i = n[t];
12799
- return i === void 0 ? [] : typeof i == "function" ? r ? [i.listener || i] : [i] : r ? C1(i) : _l(i, i.length);
12799
+ return i === void 0 ? [] : typeof i == "function" ? r ? [i.listener || i] : [i] : r ? C1(i) : wl(i, i.length);
12800
12800
  }
12801
12801
  ce.prototype.listeners = function(t) {
12802
- return gl(this, t, !0);
12802
+ return bl(this, t, !0);
12803
12803
  };
12804
12804
  ce.prototype.rawListeners = function(t) {
12805
- return gl(this, t, !1);
12805
+ return bl(this, t, !1);
12806
12806
  };
12807
12807
  ce.listenerCount = function(e, t) {
12808
- return typeof e.listenerCount == "function" ? e.listenerCount(t) : wl.call(e, t);
12808
+ return typeof e.listenerCount == "function" ? e.listenerCount(t) : gl.call(e, t);
12809
12809
  };
12810
- ce.prototype.listenerCount = wl;
12811
- function wl(e) {
12810
+ ce.prototype.listenerCount = gl;
12811
+ function gl(e) {
12812
12812
  var t = this._events;
12813
12813
  if (t !== void 0) {
12814
12814
  var r = t[e];
@@ -12822,7 +12822,7 @@ function wl(e) {
12822
12822
  ce.prototype.eventNames = function() {
12823
12823
  return this._eventsCount > 0 ? ds(this._events) : [];
12824
12824
  };
12825
- function _l(e, t) {
12825
+ function wl(e, t) {
12826
12826
  for (var r = new Array(t), n = 0; n < t; ++n)
12827
12827
  r[n] = e[n];
12828
12828
  return r;
@@ -12845,13 +12845,13 @@ function O1(e, t) {
12845
12845
  function s() {
12846
12846
  typeof e.removeListener == "function" && e.removeListener("error", i), r([].slice.call(arguments));
12847
12847
  }
12848
- vl(e, t, s, { once: !0 }), t !== "error" && R1(e, i, { once: !0 });
12848
+ _l(e, t, s, { once: !0 }), t !== "error" && R1(e, i, { once: !0 });
12849
12849
  });
12850
12850
  }
12851
12851
  function R1(e, t, r) {
12852
- typeof e.on == "function" && vl(e, "error", t, r);
12852
+ typeof e.on == "function" && _l(e, "error", t, r);
12853
12853
  }
12854
- function vl(e, t, r, n) {
12854
+ function _l(e, t, r, n) {
12855
12855
  if (typeof e.on == "function")
12856
12856
  n.once ? e.once(t, r) : e.on(t, r);
12857
12857
  else if (typeof e.addEventListener == "function")
@@ -12861,7 +12861,7 @@ function vl(e, t, r, n) {
12861
12861
  else
12862
12862
  throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type ' + typeof e);
12863
12863
  }
12864
- var El = vc.exports, xl = El.EventEmitter;
12864
+ var vl = vc.exports, El = vl.EventEmitter;
12865
12865
  const L1 = {}, U1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
12866
12866
  __proto__: null,
12867
12867
  default: L1
@@ -13053,7 +13053,7 @@ function M1(e, t) {
13053
13053
  var r = e._readableState, n = e._writableState;
13054
13054
  r && r.autoDestroy || n && n.autoDestroy ? e.destroy(t) : e.emit("error", t);
13055
13055
  }
13056
- var Al = {
13056
+ var xl = {
13057
13057
  destroy: F1,
13058
13058
  undestroy: $1,
13059
13059
  errorOrDestroy: M1
@@ -13061,7 +13061,7 @@ var Al = {
13061
13061
  function H1(e, t) {
13062
13062
  e.prototype = Object.create(t.prototype), e.prototype.constructor = e, e.__proto__ = t;
13063
13063
  }
13064
- var Sl = {};
13064
+ var Al = {};
13065
13065
  function lt(e, t, r) {
13066
13066
  r || (r = Error);
13067
13067
  function n(s, o, a) {
@@ -13074,7 +13074,7 @@ function lt(e, t, r) {
13074
13074
  }
13075
13075
  return o;
13076
13076
  }(r);
13077
- i.prototype.name = r.name, i.prototype.code = e, Sl[e] = i;
13077
+ i.prototype.name = r.name, i.prototype.code = e, Al[e] = i;
13078
13078
  }
13079
13079
  function Uu(e, t) {
13080
13080
  if (Array.isArray(e)) {
@@ -13125,7 +13125,7 @@ lt("ERR_UNKNOWN_ENCODING", function(e) {
13125
13125
  return "Unknown encoding: " + e;
13126
13126
  }, TypeError);
13127
13127
  lt("ERR_STREAM_UNSHIFT_AFTER_END_EVENT", "stream.unshift() after end event");
13128
- jr.codes = Sl;
13128
+ jr.codes = Al;
13129
13129
  var z1 = jr.codes.ERR_INVALID_OPT_VALUE;
13130
13130
  function q1(e, t, r) {
13131
13131
  return e.highWaterMark != null ? e.highWaterMark : t ? e[r] : null;
@@ -13141,7 +13141,7 @@ function V1(e, t, r, n) {
13141
13141
  }
13142
13142
  return e.objectMode ? 16 : 16 * 1024;
13143
13143
  }
13144
- var Pl = {
13144
+ var Sl = {
13145
13145
  getHighWaterMark: V1
13146
13146
  }, W1 = K1;
13147
13147
  function K1(e, t) {
@@ -13168,7 +13168,7 @@ function Do(e) {
13168
13168
  return t == null ? !1 : String(t).toLowerCase() === "true";
13169
13169
  }
13170
13170
  var jo, Nu;
13171
- function Tl() {
13171
+ function Pl() {
13172
13172
  if (Nu) return jo;
13173
13173
  Nu = 1, jo = M;
13174
13174
  function e(O) {
@@ -13181,7 +13181,7 @@ function Tl() {
13181
13181
  M.WritableState = S;
13182
13182
  var r = {
13183
13183
  deprecate: W1
13184
- }, n = xl, i = Jt.Buffer, s = (typeof yr < "u" ? yr : typeof window < "u" ? window : typeof self < "u" ? self : {}).Uint8Array || function() {
13184
+ }, n = El, i = Jt.Buffer, s = (typeof yr < "u" ? yr : typeof window < "u" ? window : typeof self < "u" ? self : {}).Uint8Array || function() {
13185
13185
  };
13186
13186
  function o(O) {
13187
13187
  return i.from(O);
@@ -13189,7 +13189,7 @@ function Tl() {
13189
13189
  function a(O) {
13190
13190
  return i.isBuffer(O) || O instanceof s;
13191
13191
  }
13192
- var c = Al, f = Pl, l = f.getHighWaterMark, h = jr.codes, m = h.ERR_INVALID_ARG_TYPE, p = h.ERR_METHOD_NOT_IMPLEMENTED, g = h.ERR_MULTIPLE_CALLBACK, v = h.ERR_STREAM_CANNOT_PIPE, x = h.ERR_STREAM_DESTROYED, k = h.ERR_STREAM_NULL_VALUES, I = h.ERR_STREAM_WRITE_AFTER_END, A = h.ERR_UNKNOWN_ENCODING, E = c.errorOrDestroy;
13192
+ var c = xl, f = Sl, l = f.getHighWaterMark, h = jr.codes, m = h.ERR_INVALID_ARG_TYPE, p = h.ERR_METHOD_NOT_IMPLEMENTED, g = h.ERR_MULTIPLE_CALLBACK, v = h.ERR_STREAM_CANNOT_PIPE, x = h.ERR_STREAM_DESTROYED, k = h.ERR_STREAM_NULL_VALUES, I = h.ERR_STREAM_WRITE_AFTER_END, A = h.ERR_UNKNOWN_ENCODING, E = c.errorOrDestroy;
13193
13193
  $e(M, n);
13194
13194
  function T() {
13195
13195
  }
@@ -13404,7 +13404,7 @@ function wn() {
13404
13404
  return l;
13405
13405
  };
13406
13406
  Go = o;
13407
- var t = kl(), r = Tl();
13407
+ var t = Il(), r = Pl();
13408
13408
  $e(o, t);
13409
13409
  for (var n = e(r.prototype), i = 0; i < n.length; i++) {
13410
13410
  var s = n[i];
@@ -13630,8 +13630,8 @@ function uw() {
13630
13630
  function fw(e) {
13631
13631
  return e.setHeader && typeof e.abort == "function";
13632
13632
  }
13633
- function Il(e, t, r) {
13634
- if (typeof t == "function") return Il(e, null, t);
13633
+ function Tl(e, t, r) {
13634
+ if (typeof t == "function") return Tl(e, null, t);
13635
13635
  t || (t = {}), r = cw(r || uw);
13636
13636
  var n = t.readable || t.readable !== !1 && e.readable, i = t.writable || t.writable !== !1 && e.writable, s = function() {
13637
13637
  e.writable || a();
@@ -13654,7 +13654,7 @@ function Il(e, t, r) {
13654
13654
  e.removeListener("complete", a), e.removeListener("abort", h), e.removeListener("request", m), e.req && e.req.removeListener("finish", a), e.removeListener("end", s), e.removeListener("close", s), e.removeListener("finish", a), e.removeListener("end", f), e.removeListener("error", l), e.removeListener("close", h);
13655
13655
  };
13656
13656
  }
13657
- var Ac = Il, qo, Hu;
13657
+ var Ac = Tl, qo, Hu;
13658
13658
  function dw() {
13659
13659
  if (Hu) return qo;
13660
13660
  Hu = 1;
@@ -13787,14 +13787,14 @@ function lw() {
13787
13787
  }), Vo;
13788
13788
  }
13789
13789
  var Wo, ju;
13790
- function kl() {
13790
+ function Il() {
13791
13791
  if (ju) return Wo;
13792
13792
  ju = 1, Wo = B;
13793
13793
  var e;
13794
- B.ReadableState = M, El.EventEmitter;
13794
+ B.ReadableState = M, vl.EventEmitter;
13795
13795
  var t = function(_, F) {
13796
13796
  return _.listeners(F).length;
13797
- }, r = xl, n = Jt.Buffer, i = (typeof yr < "u" ? yr : typeof window < "u" ? window : typeof self < "u" ? self : {}).Uint8Array || function() {
13797
+ }, r = El, n = Jt.Buffer, i = (typeof yr < "u" ? yr : typeof window < "u" ? window : typeof self < "u" ? self : {}).Uint8Array || function() {
13798
13798
  };
13799
13799
  function s(w) {
13800
13800
  return n.from(w);
@@ -13805,7 +13805,7 @@ function kl() {
13805
13805
  var a = Ec, c;
13806
13806
  a && a.debuglog ? c = a.debuglog("stream") : c = function() {
13807
13807
  };
13808
- var f = N1(), l = Al, h = Pl, m = h.getHighWaterMark, p = jr.codes, g = p.ERR_INVALID_ARG_TYPE, v = p.ERR_STREAM_PUSH_AFTER_EOF, x = p.ERR_METHOD_NOT_IMPLEMENTED, k = p.ERR_STREAM_UNSHIFT_AFTER_END_EVENT, I, A, E;
13808
+ var f = N1(), l = xl, h = Sl, m = h.getHighWaterMark, p = jr.codes, g = p.ERR_INVALID_ARG_TYPE, v = p.ERR_STREAM_PUSH_AFTER_EOF, x = p.ERR_METHOD_NOT_IMPLEMENTED, k = p.ERR_STREAM_UNSHIFT_AFTER_END_EVENT, I, A, E;
13809
13809
  $e(B, r);
13810
13810
  var T = l.errorOrDestroy, S = ["error", "close", "destroy", "pause", "resume"];
13811
13811
  function N(w, _, F) {
@@ -14124,7 +14124,7 @@ function kl() {
14124
14124
  }
14125
14125
  return Wo;
14126
14126
  }
14127
- var Bl = Kt, Zs = jr.codes, hw = Zs.ERR_METHOD_NOT_IMPLEMENTED, pw = Zs.ERR_MULTIPLE_CALLBACK, yw = Zs.ERR_TRANSFORM_ALREADY_TRANSFORMING, mw = Zs.ERR_TRANSFORM_WITH_LENGTH_0, Qs = wn();
14127
+ var kl = Kt, Zs = jr.codes, hw = Zs.ERR_METHOD_NOT_IMPLEMENTED, pw = Zs.ERR_MULTIPLE_CALLBACK, yw = Zs.ERR_TRANSFORM_ALREADY_TRANSFORMING, mw = Zs.ERR_TRANSFORM_WITH_LENGTH_0, Qs = wn();
14128
14128
  $e(Kt, Qs);
14129
14129
  function bw(e, t) {
14130
14130
  var r = this._transformState;
@@ -14181,11 +14181,11 @@ function Gu(e, t, r) {
14181
14181
  if (e._transformState.transforming) throw new yw();
14182
14182
  return e.push(null);
14183
14183
  }
14184
- var ww = Ei, Cl = Bl;
14185
- $e(Ei, Cl);
14184
+ var ww = Ei, Bl = kl;
14185
+ $e(Ei, Bl);
14186
14186
  function Ei(e) {
14187
14187
  if (!(this instanceof Ei)) return new Ei(e);
14188
- Cl.call(this, e);
14188
+ Bl.call(this, e);
14189
14189
  }
14190
14190
  Ei.prototype._transform = function(e, t, r) {
14191
14191
  r(null, e);
@@ -14197,7 +14197,7 @@ function _w(e) {
14197
14197
  t || (t = !0, e.apply(void 0, arguments));
14198
14198
  };
14199
14199
  }
14200
- var Ol = jr.codes, vw = Ol.ERR_MISSING_ARGS, Ew = Ol.ERR_STREAM_DESTROYED;
14200
+ var Cl = jr.codes, vw = Cl.ERR_MISSING_ARGS, Ew = Cl.ERR_STREAM_DESTROYED;
14201
14201
  function zu(e) {
14202
14202
  if (e) throw e;
14203
14203
  }
@@ -14250,17 +14250,17 @@ function Tw() {
14250
14250
  }
14251
14251
  var Iw = Tw;
14252
14252
  (function(e, t) {
14253
- t = e.exports = kl(), t.Stream = t, t.Readable = t, t.Writable = Tl(), t.Duplex = wn(), t.Transform = Bl, t.PassThrough = ww, t.finished = Ac, t.pipeline = Iw;
14253
+ t = e.exports = Il(), t.Stream = t, t.Readable = t, t.Writable = Pl(), t.Duplex = wn(), t.Transform = kl, t.PassThrough = ww, t.finished = Ac, t.pipeline = Iw;
14254
14254
  })(Pa, Pa.exports);
14255
- var Rl = Pa.exports, Ss = Qe.Buffer, Ll = Rl.Transform, kw = $e;
14255
+ var Ol = Pa.exports, Ss = Qe.Buffer, Rl = Ol.Transform, kw = $e;
14256
14256
  function Bw(e, t) {
14257
14257
  if (!Ss.isBuffer(e) && typeof e != "string")
14258
14258
  throw new TypeError(t + " must be a string or a buffer");
14259
14259
  }
14260
14260
  function _r(e) {
14261
- Ll.call(this), this._block = Ss.allocUnsafe(e), this._blockSize = e, this._blockOffset = 0, this._length = [0, 0, 0, 0], this._finalized = !1;
14261
+ Rl.call(this), this._block = Ss.allocUnsafe(e), this._blockSize = e, this._blockOffset = 0, this._length = [0, 0, 0, 0], this._finalized = !1;
14262
14262
  }
14263
- kw(_r, Ll);
14263
+ kw(_r, Rl);
14264
14264
  _r.prototype._transform = function(e, t, r) {
14265
14265
  var n = null;
14266
14266
  try {
@@ -14305,11 +14305,11 @@ _r.prototype.digest = function(e) {
14305
14305
  _r.prototype._digest = function() {
14306
14306
  throw new Error("_digest is not implemented");
14307
14307
  };
14308
- var Cw = _r, Ow = $e, Ul = Cw, Rw = Qe.Buffer, Lw = new Array(16);
14308
+ var Cw = _r, Ow = $e, Ll = Cw, Rw = Qe.Buffer, Lw = new Array(16);
14309
14309
  function eo() {
14310
- Ul.call(this, 64), this._a = 1732584193, this._b = 4023233417, this._c = 2562383102, this._d = 271733878;
14310
+ Ll.call(this, 64), this._a = 1732584193, this._b = 4023233417, this._c = 2562383102, this._d = 271733878;
14311
14311
  }
14312
- Ow(eo, Ul);
14312
+ Ow(eo, Ll);
14313
14313
  eo.prototype._update = function() {
14314
14314
  for (var e = Lw, t = 0; t < 16; ++t) e[t] = this._block.readInt32LE(t * 4);
14315
14315
  var r = this._a, n = this._b, i = this._c, s = this._d;
@@ -14335,15 +14335,15 @@ function De(e, t, r, n, i, s, o) {
14335
14335
  function je(e, t, r, n, i, s, o) {
14336
14336
  return to(e + (r ^ (t | ~n)) + i + s | 0, o) + t | 0;
14337
14337
  }
14338
- var Uw = eo, Ps = Qe.Buffer, Nl = Rl.Transform, Nw = $e;
14338
+ var Uw = eo, Ps = Qe.Buffer, Ul = Ol.Transform, Nw = $e;
14339
14339
  function Fw(e, t) {
14340
14340
  if (!Ps.isBuffer(e) && typeof e != "string")
14341
14341
  throw new TypeError(t + " must be a string or a buffer");
14342
14342
  }
14343
14343
  function vr(e) {
14344
- Nl.call(this), this._block = Ps.allocUnsafe(e), this._blockSize = e, this._blockOffset = 0, this._length = [0, 0, 0, 0], this._finalized = !1;
14344
+ Ul.call(this), this._block = Ps.allocUnsafe(e), this._blockSize = e, this._blockOffset = 0, this._length = [0, 0, 0, 0], this._finalized = !1;
14345
14345
  }
14346
- Nw(vr, Nl);
14346
+ Nw(vr, Ul);
14347
14347
  vr.prototype._transform = function(e, t, r) {
14348
14348
  var n = null;
14349
14349
  try {
@@ -14388,7 +14388,7 @@ vr.prototype.digest = function(e) {
14388
14388
  vr.prototype._digest = function() {
14389
14389
  throw new Error("_digest is not implemented");
14390
14390
  };
14391
- var $w = vr, Yo = Jt.Buffer, Mw = $e, Fl = $w, Hw = new Array(16), Un = [
14391
+ var $w = vr, Yo = Jt.Buffer, Mw = $e, Nl = $w, Hw = new Array(16), Un = [
14392
14392
  0,
14393
14393
  1,
14394
14394
  2,
@@ -14714,9 +14714,9 @@ var $w = vr, Yo = Jt.Buffer, Mw = $e, Fl = $w, Hw = new Array(16), Un = [
14714
14714
  11
14715
14715
  ], Mn = [0, 1518500249, 1859775393, 2400959708, 2840853838], Hn = [1352829926, 1548603684, 1836072691, 2053994217, 0];
14716
14716
  function ro() {
14717
- Fl.call(this, 64), this._a = 1732584193, this._b = 4023233417, this._c = 2562383102, this._d = 271733878, this._e = 3285377520;
14717
+ Nl.call(this, 64), this._a = 1732584193, this._b = 4023233417, this._c = 2562383102, this._d = 271733878, this._e = 3285377520;
14718
14718
  }
14719
- Mw(ro, Fl);
14719
+ Mw(ro, Nl);
14720
14720
  ro.prototype._update = function() {
14721
14721
  for (var e = Hw, t = 0; t < 16; ++t) e[t] = this._block.readInt32LE(t * 4);
14722
14722
  for (var r = this._a | 0, n = this._b | 0, i = this._c | 0, s = this._d | 0, o = this._e | 0, a = this._a | 0, c = this._b | 0, f = this._c | 0, l = this._d | 0, h = this._e | 0, m = 0; m < 80; m += 1) {
@@ -14749,12 +14749,12 @@ function Yu(e, t, r, n, i, s, o, a) {
14749
14749
  function Xu(e, t, r, n, i, s, o, a) {
14750
14750
  return $r(e + (t ^ (r | ~n)) + s + o | 0, a) + i | 0;
14751
14751
  }
14752
- var Dw = ro, $l = { exports: {} }, Ml = Qe.Buffer;
14752
+ var Dw = ro, Fl = { exports: {} }, $l = Qe.Buffer;
14753
14753
  function no(e, t) {
14754
- this._block = Ml.alloc(e), this._finalSize = t, this._blockSize = e, this._len = 0;
14754
+ this._block = $l.alloc(e), this._finalSize = t, this._blockSize = e, this._len = 0;
14755
14755
  }
14756
14756
  no.prototype.update = function(e, t) {
14757
- typeof e == "string" && (t = t || "utf8", e = Ml.from(e, t));
14757
+ typeof e == "string" && (t = t || "utf8", e = $l.from(e, t));
14758
14758
  for (var r = this._block, n = this._blockSize, i = e.length, s = this._len, o = 0; o < i; ) {
14759
14759
  for (var a = s % n, c = Math.min(i - o, n - a), f = 0; f < c; f++)
14760
14760
  r[a + f] = e[o + f];
@@ -14779,16 +14779,16 @@ no.prototype.digest = function(e) {
14779
14779
  no.prototype._update = function() {
14780
14780
  throw new Error("_update must be implemented by subclass");
14781
14781
  };
14782
- var An = no, jw = $e, Hl = An, Gw = Qe.Buffer, zw = [
14782
+ var An = no, jw = $e, Ml = An, Gw = Qe.Buffer, zw = [
14783
14783
  1518500249,
14784
14784
  1859775393,
14785
14785
  -1894007588,
14786
14786
  -899497514
14787
14787
  ], qw = new Array(80);
14788
14788
  function Li() {
14789
- this.init(), this._w = qw, Hl.call(this, 64, 56);
14789
+ this.init(), this._w = qw, Ml.call(this, 64, 56);
14790
14790
  }
14791
- jw(Li, Hl);
14791
+ jw(Li, Ml);
14792
14792
  Li.prototype.init = function() {
14793
14793
  return this._a = 1732584193, this._b = 4023233417, this._c = 2562383102, this._d = 271733878, this._e = 3285377520, this;
14794
14794
  };
@@ -14814,16 +14814,16 @@ Li.prototype._hash = function() {
14814
14814
  var e = Gw.allocUnsafe(20);
14815
14815
  return e.writeInt32BE(this._a | 0, 0), e.writeInt32BE(this._b | 0, 4), e.writeInt32BE(this._c | 0, 8), e.writeInt32BE(this._d | 0, 12), e.writeInt32BE(this._e | 0, 16), e;
14816
14816
  };
14817
- var Yw = Li, Xw = $e, Dl = An, Jw = Qe.Buffer, Zw = [
14817
+ var Yw = Li, Xw = $e, Hl = An, Jw = Qe.Buffer, Zw = [
14818
14818
  1518500249,
14819
14819
  1859775393,
14820
14820
  -1894007588,
14821
14821
  -899497514
14822
14822
  ], Qw = new Array(80);
14823
14823
  function Ui() {
14824
- this.init(), this._w = Qw, Dl.call(this, 64, 56);
14824
+ this.init(), this._w = Qw, Hl.call(this, 64, 56);
14825
14825
  }
14826
- Xw(Ui, Dl);
14826
+ Xw(Ui, Hl);
14827
14827
  Ui.prototype.init = function() {
14828
14828
  return this._a = 1732584193, this._b = 4023233417, this._c = 2562383102, this._d = 271733878, this._e = 3285377520, this;
14829
14829
  };
@@ -14852,7 +14852,7 @@ Ui.prototype._hash = function() {
14852
14852
  var e = Jw.allocUnsafe(20);
14853
14853
  return e.writeInt32BE(this._a | 0, 0), e.writeInt32BE(this._b | 0, 4), e.writeInt32BE(this._c | 0, 8), e.writeInt32BE(this._d | 0, 12), e.writeInt32BE(this._e | 0, 16), e;
14854
14854
  };
14855
- var i2 = Ui, s2 = $e, jl = An, o2 = Qe.Buffer, a2 = [
14855
+ var i2 = Ui, s2 = $e, Dl = An, o2 = Qe.Buffer, a2 = [
14856
14856
  1116352408,
14857
14857
  1899447441,
14858
14858
  3049323471,
@@ -14919,9 +14919,9 @@ var i2 = Ui, s2 = $e, jl = An, o2 = Qe.Buffer, a2 = [
14919
14919
  3329325298
14920
14920
  ], c2 = new Array(64);
14921
14921
  function Ni() {
14922
- this.init(), this._w = c2, jl.call(this, 64, 56);
14922
+ this.init(), this._w = c2, Dl.call(this, 64, 56);
14923
14923
  }
14924
- s2(Ni, jl);
14924
+ s2(Ni, Dl);
14925
14925
  Ni.prototype.init = function() {
14926
14926
  return this._a = 1779033703, this._b = 3144134277, this._c = 1013904242, this._d = 2773480762, this._e = 1359893119, this._f = 2600822924, this._g = 528734635, this._h = 1541459225, this;
14927
14927
  };
@@ -14956,7 +14956,7 @@ Ni.prototype._hash = function() {
14956
14956
  var e = o2.allocUnsafe(32);
14957
14957
  return e.writeInt32BE(this._a, 0), e.writeInt32BE(this._b, 4), e.writeInt32BE(this._c, 8), e.writeInt32BE(this._d, 12), e.writeInt32BE(this._e, 16), e.writeInt32BE(this._f, 20), e.writeInt32BE(this._g, 24), e.writeInt32BE(this._h, 28), e;
14958
14958
  };
14959
- var Gl = Ni, y2 = $e, m2 = Gl, b2 = An, g2 = Qe.Buffer, w2 = new Array(64);
14959
+ var jl = Ni, y2 = $e, m2 = jl, b2 = An, g2 = Qe.Buffer, w2 = new Array(64);
14960
14960
  function io() {
14961
14961
  this.init(), this._w = w2, b2.call(this, 64, 56);
14962
14962
  }
@@ -14968,7 +14968,7 @@ io.prototype._hash = function() {
14968
14968
  var e = g2.allocUnsafe(28);
14969
14969
  return e.writeInt32BE(this._a, 0), e.writeInt32BE(this._b, 4), e.writeInt32BE(this._c, 8), e.writeInt32BE(this._d, 12), e.writeInt32BE(this._e, 16), e.writeInt32BE(this._f, 20), e.writeInt32BE(this._g, 24), e;
14970
14970
  };
14971
- var _2 = io, v2 = $e, zl = An, E2 = Qe.Buffer, Ju = [
14971
+ var _2 = io, v2 = $e, Gl = An, E2 = Qe.Buffer, Ju = [
14972
14972
  1116352408,
14973
14973
  3609767458,
14974
14974
  1899447441,
@@ -15131,9 +15131,9 @@ var _2 = io, v2 = $e, zl = An, E2 = Qe.Buffer, Ju = [
15131
15131
  1246189591
15132
15132
  ], x2 = new Array(160);
15133
15133
  function Fi() {
15134
- this.init(), this._w = x2, zl.call(this, 128, 112);
15134
+ this.init(), this._w = x2, Gl.call(this, 128, 112);
15135
15135
  }
15136
- v2(Fi, zl);
15136
+ v2(Fi, Gl);
15137
15137
  Fi.prototype.init = function() {
15138
15138
  return this._ah = 1779033703, this._bh = 3144134277, this._ch = 1013904242, this._dh = 2773480762, this._eh = 1359893119, this._fh = 2600822924, this._gh = 528734635, this._hh = 1541459225, this._al = 4089235720, this._bl = 2227873595, this._cl = 4271175723, this._dl = 1595750129, this._el = 2917565137, this._fl = 725511199, this._gl = 4215389547, this._hl = 327033209, this;
15139
15139
  };
@@ -15189,7 +15189,7 @@ Fi.prototype._hash = function() {
15189
15189
  }
15190
15190
  return t(this._ah, this._al, 0), t(this._bh, this._bl, 8), t(this._ch, this._cl, 16), t(this._dh, this._dl, 24), t(this._eh, this._el, 32), t(this._fh, this._fl, 40), t(this._gh, this._gl, 48), t(this._hh, this._hl, 56), e;
15191
15191
  };
15192
- var ql = Fi, I2 = $e, k2 = ql, B2 = An, C2 = Qe.Buffer, O2 = new Array(160);
15192
+ var zl = Fi, I2 = $e, k2 = zl, B2 = An, C2 = Qe.Buffer, O2 = new Array(160);
15193
15193
  function so() {
15194
15194
  this.init(), this._w = O2, B2.call(this, 128, 112);
15195
15195
  }
@@ -15204,7 +15204,7 @@ so.prototype._hash = function() {
15204
15204
  }
15205
15205
  return t(this._ah, this._al, 0), t(this._bh, this._bl, 8), t(this._ch, this._cl, 16), t(this._dh, this._dl, 24), t(this._eh, this._el, 32), t(this._fh, this._fl, 40), e;
15206
15206
  };
15207
- var R2 = so, Gr = $l.exports = function(t) {
15207
+ var R2 = so, Gr = Fl.exports = function(t) {
15208
15208
  t = t.toLowerCase();
15209
15209
  var r = Gr[t];
15210
15210
  if (!r) throw new Error(t + " is not supported (we accept pull requests)");
@@ -15213,14 +15213,14 @@ var R2 = so, Gr = $l.exports = function(t) {
15213
15213
  Gr.sha = Yw;
15214
15214
  Gr.sha1 = i2;
15215
15215
  Gr.sha224 = _2;
15216
- Gr.sha256 = Gl;
15216
+ Gr.sha256 = jl;
15217
15217
  Gr.sha384 = R2;
15218
- Gr.sha512 = ql;
15219
- var L2 = $l.exports, At = Qe.Buffer, Vl = Ec.Transform, U2 = As.StringDecoder, N2 = $e;
15218
+ Gr.sha512 = zl;
15219
+ var L2 = Fl.exports, At = Qe.Buffer, ql = Ec.Transform, U2 = As.StringDecoder, N2 = $e;
15220
15220
  function yt(e) {
15221
- Vl.call(this), this.hashMode = typeof e == "string", this.hashMode ? this[e] = this._finalOrDigest : this.final = this._finalOrDigest, this._final && (this.__final = this._final, this._final = null), this._decoder = null, this._encoding = null;
15221
+ ql.call(this), this.hashMode = typeof e == "string", this.hashMode ? this[e] = this._finalOrDigest : this.final = this._finalOrDigest, this._final && (this.__final = this._final, this._final = null), this._decoder = null, this._encoding = null;
15222
15222
  }
15223
- N2(yt, Vl);
15223
+ N2(yt, ql);
15224
15224
  var F2 = typeof Uint8Array < "u", $2 = typeof ArrayBuffer < "u" && typeof Uint8Array < "u" && ArrayBuffer.isView && (At.prototype instanceof Uint8Array || At.TYPED_ARRAY_SUPPORT);
15225
15225
  function M2(e, t) {
15226
15226
  if (e instanceof At)
@@ -15282,11 +15282,11 @@ yt.prototype._toString = function(e, t, r) {
15282
15282
  var n = this._decoder.write(e);
15283
15283
  return r && (n += this._decoder.end()), n;
15284
15284
  };
15285
- var H2 = yt, D2 = $e, j2 = Uw, G2 = Dw, z2 = L2, Wl = H2;
15285
+ var H2 = yt, D2 = $e, j2 = Uw, G2 = Dw, z2 = L2, Vl = H2;
15286
15286
  function oo(e) {
15287
- Wl.call(this, "digest"), this._hash = e;
15287
+ Vl.call(this, "digest"), this._hash = e;
15288
15288
  }
15289
- D2(oo, Wl);
15289
+ D2(oo, Vl);
15290
15290
  oo.prototype._update = function(e) {
15291
15291
  this._hash.update(e);
15292
15292
  };
@@ -15402,7 +15402,7 @@ function e_(e) {
15402
15402
  return rf("sha256").update(t).digest();
15403
15403
  }
15404
15404
  var t_ = Q2(e_), Ia = t_;
15405
- function Kl(e, t) {
15405
+ function Wl(e, t) {
15406
15406
  if (t !== void 0 && e[0] !== t) throw new Error("Invalid network version");
15407
15407
  if (e.length === 33)
15408
15408
  return {
@@ -15423,7 +15423,7 @@ function ka(e, t, r) {
15423
15423
  return n.writeUInt8(e, 0), t.copy(n, 1), r && (n[33] = 1), n;
15424
15424
  }
15425
15425
  function r_(e, t) {
15426
- return Kl(Ia.decode(e), t);
15426
+ return Wl(Ia.decode(e), t);
15427
15427
  }
15428
15428
  function n_(e, t, r) {
15429
15429
  return typeof e == "number" ? Ia.encode(ka(e, t, r)) : Ia.encode(
@@ -15436,7 +15436,7 @@ function n_(e, t, r) {
15436
15436
  }
15437
15437
  var i_ = {
15438
15438
  decode: r_,
15439
- decodeRaw: Kl,
15439
+ decodeRaw: Wl,
15440
15440
  encode: n_,
15441
15441
  encodeRaw: ka
15442
15442
  }, ao = {};
@@ -15641,7 +15641,7 @@ Object.defineProperty(bn, "__esModule", { value: !0 });
15641
15641
  bn.ECPairFactory = bn.networks = void 0;
15642
15642
  const Ba = gn;
15643
15643
  bn.networks = Ba;
15644
- const Ye = hl, o_ = T1, nf = i_, a_ = ao, Jo = Ye.typeforce.maybe(
15644
+ const Ye = ll, o_ = T1, nf = i_, a_ = ao, Jo = Ye.typeforce.maybe(
15645
15645
  Ye.typeforce.compile({
15646
15646
  compressed: Ye.maybe(Ye.Boolean),
15647
15647
  network: Ye.maybe(Ye.Network)
@@ -15781,8 +15781,8 @@ bn.ECPairFactory = u_;
15781
15781
  return t.networks;
15782
15782
  }
15783
15783
  });
15784
- })(ll);
15785
- const f_ = /* @__PURE__ */ Eb(ll);
15784
+ })(dl);
15785
+ const f_ = /* @__PURE__ */ Eb(dl);
15786
15786
  class Ts extends of {
15787
15787
  get isInitialized() {
15788
15788
  return !!this.digestKey;
@@ -16696,8 +16696,8 @@ const Is = {
16696
16696
  arbitrum: g_,
16697
16697
  ethereum_sepolia: I_,
16698
16698
  arbitrum_sepolia: w_,
16699
- ethereum_localnet: th,
16700
- arbitrum_localnet: eh,
16699
+ ethereum_localnet: eh,
16700
+ arbitrum_localnet: Ql,
16701
16701
  base_sepolia: v_,
16702
16702
  base: __,
16703
16703
  bera_testnet: x_,
@@ -17153,7 +17153,7 @@ class U_ {
17153
17153
  if (!this.wallet.account) return Se("No account found");
17154
17154
  if (this.wallet.account.address.toLowerCase() !== t.source_swap.initiator.toLowerCase())
17155
17155
  return Se("Account address and order initiator mismatch");
17156
- if (!rh(t.source_swap.chain))
17156
+ if (!th(t.source_swap.chain))
17157
17157
  return Se("Source chain is not an EVM chain");
17158
17158
  const r = await O_(
17159
17159
  t.source_swap.chain,
@@ -17165,7 +17165,7 @@ class U_ {
17165
17165
  if (!i.amount || !i.redeemer || !n.timelock || !n.secret_hash)
17166
17166
  return Se("Invalid order");
17167
17167
  const s = Jr(n.secret_hash), o = BigInt(n.timelock), a = Jr(i.redeemer), c = BigInt(i.amount), f = await this.getTokenAddress(t.source_swap.asset);
17168
- return f.error ? Se(f.error) : nh(t.source_swap.chain, f.val) ? this._initiateOnNativeHTLC(
17168
+ return f.error ? Se(f.error) : rh(t.source_swap.chain, f.val) ? this._initiateOnNativeHTLC(
17169
17169
  s,
17170
17170
  o,
17171
17171
  c,
@@ -17222,7 +17222,7 @@ class U_ {
17222
17222
  address: Jr(s),
17223
17223
  abi: sf,
17224
17224
  client: this.wallet
17225
- }), l = await oh(
17225
+ }), l = await sh(
17226
17226
  Number(n),
17227
17227
  o,
17228
17228
  s,
@@ -17298,7 +17298,7 @@ class U_ {
17298
17298
  return Se("Refund not supported");
17299
17299
  }
17300
17300
  }
17301
- const Yl = [
17301
+ const Kl = [
17302
17302
  {
17303
17303
  name: "LockingContract",
17304
17304
  type: "impl",
@@ -18428,7 +18428,7 @@ const Yl = [
18428
18428
  i
18429
18429
  );
18430
18430
  if (s.error) return G(s.error);
18431
- const o = Vn.uint256(BigInt(af.UINT_256_MAX));
18431
+ const o = Vn.uint256(BigInt(dh.UINT_256_MAX));
18432
18432
  if (s.val < n) {
18433
18433
  const a = await e.execute([
18434
18434
  {
@@ -18441,7 +18441,7 @@ const Yl = [
18441
18441
  a.transaction_hash,
18442
18442
  {
18443
18443
  retryInterval: 3e3,
18444
- successStates: [cf.SUCCEEDED]
18444
+ successStates: [af.SUCCEEDED]
18445
18445
  }
18446
18446
  ), await Zo(2e3);
18447
18447
  let c = 0n;
@@ -18468,7 +18468,7 @@ const Yl = [
18468
18468
  }, Ca = async (e, t, r, n) => {
18469
18469
  try {
18470
18470
  const s = await new Oa(
18471
- Yl,
18471
+ Kl,
18472
18472
  sn(t),
18473
18473
  n
18474
18474
  ).call("allowance", [
@@ -18489,7 +18489,7 @@ const Yl = [
18489
18489
  n
18490
18490
  );
18491
18491
  return s.error ? G(s.error) : ne(s.val >= i);
18492
- }, Xl = [
18492
+ }, Yl = [
18493
18493
  {
18494
18494
  name: "HTLC",
18495
18495
  type: "impl",
@@ -18758,7 +18758,7 @@ const Yl = [
18758
18758
  };
18759
18759
  class M_ {
18760
18760
  constructor(t, r, n, i) {
18761
- this.url = t instanceof Pt ? t : new Pt(t), this.account = r, this.starknetProvider = new uf({
18761
+ this.url = t instanceof Pt ? t : new Pt(t), this.account = r, this.starknetProvider = new cf({
18762
18762
  nodeUrl: i || Ea[n].nodeUrl
18763
18763
  });
18764
18764
  }
@@ -18781,10 +18781,10 @@ class M_ {
18781
18781
  return G("Invalid order");
18782
18782
  try {
18783
18783
  const o = new Oa(
18784
- Xl,
18784
+ Yl,
18785
18785
  t.source_swap.asset,
18786
18786
  this.account
18787
- ), a = await (o == null ? void 0 : o.token()), c = ff.toHex(a), f = await F_(
18787
+ ), a = await (o == null ? void 0 : o.token()), c = uf.toHex(a), f = await F_(
18788
18788
  this.account.address,
18789
18789
  c,
18790
18790
  n.asset,
@@ -18799,7 +18799,7 @@ class M_ {
18799
18799
  async approveAndInitiate(t, r) {
18800
18800
  const { create_order: n, source_swap: i } = r, { redeemer: s, amount: o } = i, { secret_hash: a, timelock: c } = n, f = i.asset;
18801
18801
  try {
18802
- const l = Vn.uint256(BigInt(af.UINT_256_MAX)), h = {
18802
+ const l = Vn.uint256(10000000000n), h = {
18803
18803
  contractAddress: sn(t),
18804
18804
  entrypoint: "approve",
18805
18805
  calldata: [f, l.low, l.high]
@@ -18816,7 +18816,7 @@ class M_ {
18816
18816
  }, g = await this.account.execute([h, p]);
18817
18817
  return await this.starknetProvider.waitForTransaction(g.transaction_hash, {
18818
18818
  retryInterval: 2e3,
18819
- successStates: [cf.SUCCEEDED]
18819
+ successStates: [af.SUCCEEDED]
18820
18820
  }), ne(g.transaction_hash);
18821
18821
  } catch (l) {
18822
18822
  return G(`Failed to approve and initiate: ${String(l)}`);
@@ -18891,7 +18891,7 @@ class M_ {
18891
18891
  return G("Refund is taken care of by the relayer");
18892
18892
  }
18893
18893
  }
18894
- class Jl extends of {
18894
+ class Xl extends of {
18895
18895
  constructor(t) {
18896
18896
  if (super(), this.environment = St.TESTNET, this.getOrderThreshold = 20, this.refundSacpCache = /* @__PURE__ */ new Map(), this.bitcoinRedeemCache = new _1(), typeof t.digestKey == "string") {
18897
18897
  const n = Sc.from(t.digestKey);
@@ -18906,9 +18906,9 @@ class Jl extends of {
18906
18906
  );
18907
18907
  } else
18908
18908
  this._api = t.environment;
18909
- this._quote = t.quote ?? new E1(this._api.quote), this._auth = t.auth ?? Pc.fromDigestKey(new Pt(this._api.auth), this._digestKey), this._orderbook = t.orderbook ?? new ih(new Pt(this._api.orderbook)), this._evmHTLC = t.htlc.evm, this._starknetHTLC = t.htlc.starknet, this._secretManager = t.secretManager ?? Ts.fromDigestKey(this._digestKey.digestKey), this.orderExecutorCache = new w1(), this._blockNumberFetcher = t.blockNumberFetcher ?? new v1(this._api.info, this.environment);
18910
- const r = new ah(pb(this.environment));
18911
- this._btcWallet = ch.fromPrivateKey(
18909
+ this._quote = t.quote ?? new E1(this._api.quote), this._auth = t.auth ?? Pc.fromDigestKey(new Pt(this._api.auth), this._digestKey), this._orderbook = t.orderbook ?? new nh(new Pt(this._api.orderbook)), this._evmHTLC = t.htlc.evm, this._starknetHTLC = t.htlc.starknet, this._secretManager = t.secretManager ?? Ts.fromDigestKey(this._digestKey.digestKey), this.orderExecutorCache = new w1(), this._blockNumberFetcher = t.blockNumberFetcher ?? new v1(this._api.info, this.environment);
18910
+ const r = new oh(pb(this.environment));
18911
+ this._btcWallet = ah.fromPrivateKey(
18912
18912
  this._digestKey.digestKey,
18913
18913
  r
18914
18914
  );
@@ -18938,7 +18938,7 @@ class Jl extends of {
18938
18938
  t.environment === St.MAINNET ? hs.MAINNET : hs.TESTNET
18939
18939
  ) : void 0
18940
18940
  };
18941
- return new Jl({
18941
+ return new Xl({
18942
18942
  htlc: i,
18943
18943
  ...t
18944
18944
  });
@@ -19021,7 +19021,7 @@ class Jl extends of {
19021
19021
  if (n.error) return G(n.error);
19022
19022
  if (r < n)
19023
19023
  return G("Send amount should be greater than receive amount");
19024
- const i = sh(t.fromAsset.chain);
19024
+ const i = ih(t.fromAsset.chain);
19025
19025
  if (!i) return G("Unsupported chain for timelock");
19026
19026
  if ((co(t.fromAsset.chain) || co(t.toAsset.chain)) && !t.additionalData.btcAddress)
19027
19027
  return G(
@@ -19054,7 +19054,7 @@ class Jl extends of {
19054
19054
  validateAmount(t) {
19055
19055
  if (t == null || t.includes("."))
19056
19056
  return G("Invalid amount ", t);
19057
- const r = new dh(t);
19057
+ const r = new fh(t);
19058
19058
  return !r.isInteger() || r.isNaN() || r.lt(0) || r.isLessThanOrEqualTo(0) ? G("Invalid amount ", t) : ne(r);
19059
19059
  }
19060
19060
  async pollOrder(t) {
@@ -19080,7 +19080,7 @@ class Jl extends of {
19080
19080
  );
19081
19081
  if (!n.error && (this.emit("onPendingOrdersChanged", n.val), r.data.length !== 0))
19082
19082
  for (let i = 0; i < n.val.length; i++) {
19083
- const s = n.val[i], o = Dd(s.status);
19083
+ const s = n.val[i], o = Hd(s.status);
19084
19084
  if (co(s.source_swap.chain) && s.status === _e.InitiateDetected) {
19085
19085
  const a = this.btcWallet;
19086
19086
  if (!a) {
@@ -19374,14 +19374,14 @@ class Jl extends of {
19374
19374
  const n = [];
19375
19375
  for (let s = 0; s < t.length; s++) {
19376
19376
  const o = t[s];
19377
- if (jd(o))
19377
+ if (Dd(o))
19378
19378
  continue;
19379
19379
  const a = o.source_swap.chain, c = o.destination_swap.chain, f = r == null ? void 0 : r.val[a], l = r == null ? void 0 : r.val[c];
19380
19380
  if (!f || !l) {
19381
19381
  this.emit("error", o, "Error while fetching CurrentBlockNumbers");
19382
19382
  continue;
19383
19383
  }
19384
- const h = Hd(
19384
+ const h = Md(
19385
19385
  o,
19386
19386
  f,
19387
19387
  l
@@ -19415,7 +19415,7 @@ class Jl extends of {
19415
19415
  }
19416
19416
  class lv {
19417
19417
  constructor(t, r, n) {
19418
- this.callData = new Bc(Yl), this.account = t, this.starknetProvider = new uf({
19418
+ this.callData = new Bc(Kl), this.account = t, this.starknetProvider = new cf({
19419
19419
  nodeUrl: r || (n ? Ea[n].nodeUrl : Ea.mainnet.nodeUrl)
19420
19420
  });
19421
19421
  }
@@ -19424,7 +19424,7 @@ class lv {
19424
19424
  }
19425
19425
  async getHTLCContract(t, r = !1) {
19426
19426
  const n = r ? t.destination_swap.asset : t.source_swap.asset;
19427
- return new Oa(Xl, n, this.account);
19427
+ return new Oa(Yl, n, this.account);
19428
19428
  }
19429
19429
  /**
19430
19430
  * Initiates the HTLC
@@ -19436,7 +19436,7 @@ class lv {
19436
19436
  const n = await (await this.getHTLCContract(t)).token();
19437
19437
  if (!n)
19438
19438
  throw new Error("Token address retrieval failed");
19439
- const i = ff.toHex(n), s = Vn.uint256(BigInt(t.source_swap.amount));
19439
+ const i = uf.toHex(n), s = Vn.uint256(BigInt(t.source_swap.amount));
19440
19440
  try {
19441
19441
  const a = await N_(
19442
19442
  this.account,
@@ -19518,8 +19518,8 @@ export {
19518
19518
  by as D,
19519
19519
  U_ as E,
19520
19520
  lv as F,
19521
- Jl as G,
19522
- Qf as H,
19521
+ Xl as G,
19522
+ Zf as H,
19523
19523
  m0 as I,
19524
19524
  v1 as J,
19525
19525
  _e as K,
@@ -19527,11 +19527,11 @@ export {
19527
19527
  uv as M,
19528
19528
  au as N,
19529
19529
  Ce as O,
19530
- Hd as P,
19530
+ Md as P,
19531
19531
  _s as Q,
19532
19532
  fv as R,
19533
19533
  M_ as S,
19534
- Dd as T,
19534
+ Hd as T,
19535
19535
  Ts as U,
19536
19536
  E1 as V,
19537
19537
  hb as W,
@@ -19553,16 +19553,16 @@ export {
19553
19553
  d0 as i,
19554
19554
  iv as j,
19555
19555
  hp as k,
19556
- Jf as l,
19556
+ Xf as l,
19557
19557
  qt as m,
19558
19558
  Tp as n,
19559
- gd as o,
19560
- Ad as p,
19559
+ bd as o,
19560
+ xd as p,
19561
19561
  ln as q,
19562
19562
  hr as r,
19563
19563
  Xn as s,
19564
19564
  Da as t,
19565
- Nf as u,
19565
+ Uf as u,
19566
19566
  Z_ as v,
19567
19567
  Ua as w,
19568
19568
  gs as x,