@gardenfi/core 0.2.0-beta.90 → 0.2.0-beta.91

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.
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  var Ws = Object.defineProperty;
2
2
  var qs = (e, t, r) => t in e ? Ws(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
3
- var yt = (e, t, r) => qs(e, typeof t != "symbol" ? t + "" : t, r);
4
- import { Ok as ue, Err as N, Fetcher as wt, trim0x as it } from "@catalogfi/utils";
3
+ var gt = (e, t, r) => qs(e, typeof t != "symbol" ? t + "" : t, r);
4
+ import { Ok as ue, Err as N, Fetcher as xt, trim0x as it } from "@catalogfi/utils";
5
5
  import { EthereumLocalnet as Vs, ArbitrumLocalnet as Ks, Orderbook as Ys, isMainnet as nr, isBitcoin as ir, getTimeLock as Js, getBlockchainType as sr, BlockchainType as Ve } from "@gardenfi/orderbook";
6
6
  import { Url as yn, with0x as cr, checkAllowanceAndApprove as Xs, Authorization as Ln, sleep as Qs, fetchBitcoinBlockNumber as Fn, fetchEVMBlockNumber as On } from "@gardenfi/utils";
7
7
  import { createWalletClient as Un, custom as Nn, getContract as Zs, sha256 as or } from "viem";
@@ -12,7 +12,7 @@ import { crypto as eo } from "bitcoinjs-lib";
12
12
  import { Urgency as Dn } from "@catalogfi/wallets";
13
13
  import to from "bignumber.js";
14
14
  var le = /* @__PURE__ */ ((e) => (e.Idle = "Idle", e.Initiate = "Initiate", e.Redeem = "Redeem", e.Refund = "Refund", e))(le || {});
15
- function At(e) {
15
+ function ht(e) {
16
16
  return {
17
17
  formatters: void 0,
18
18
  fees: void 0,
@@ -92,7 +92,7 @@ class no extends X {
92
92
  function Kt(e, { strict: t = !0 } = {}) {
93
93
  return !e || typeof e != "string" ? !1 : t ? /^0x[0-9a-fA-F]*$/.test(e) : e.startsWith("0x");
94
94
  }
95
- function Et(e) {
95
+ function Bt(e) {
96
96
  return Kt(e, { strict: !1 }) ? Math.ceil((e.length - 2) / 2) : e.length;
97
97
  }
98
98
  function dr(e, { dir: t = "left" } = {}) {
@@ -227,13 +227,13 @@ function Li(e, t = {}) {
227
227
  return typeof t.size == "number" ? (Tt(r, { size: t.size }), Rt(r, { dir: "right", size: t.size })) : r;
228
228
  }
229
229
  function Tt(e, { size: t }) {
230
- if (Et(e) > t)
230
+ if (Bt(e) > t)
231
231
  throw new no({
232
- givenSize: Et(e),
232
+ givenSize: Bt(e),
233
233
  maxSize: t
234
234
  });
235
235
  }
236
- function _t(e, t = {}) {
236
+ function wt(e, t = {}) {
237
237
  const { signed: r } = t;
238
238
  t.size && Tt(e, { size: t.size });
239
239
  const n = BigInt(e);
@@ -243,7 +243,7 @@ function _t(e, t = {}) {
243
243
  return n <= a ? n : n - BigInt(`0x${"f".padStart(i * 2, "f")}`) - 1n;
244
244
  }
245
245
  function pr(e, t = {}) {
246
- return Number(_t(e, t));
246
+ return Number(wt(e, t));
247
247
  }
248
248
  function gn(e, t) {
249
249
  return ({ exclude: r, format: n }) => ({
@@ -516,9 +516,9 @@ function ft(e, t = "hex") {
516
516
  return r.encode(n), t === "hex" ? Qe(n.bytes) : n.bytes;
517
517
  }
518
518
  function Ui(e) {
519
- return Array.isArray(e) ? Io(e.map((t) => Ui(t))) : Ao(e);
519
+ return Array.isArray(e) ? Ao(e.map((t) => Ui(t))) : Io(e);
520
520
  }
521
- function Io(e) {
521
+ function Ao(e) {
522
522
  const t = e.reduce((i, a) => i + a.length, 0), r = Ni(t);
523
523
  return {
524
524
  length: t <= 55 ? 1 + t : 1 + r + t,
@@ -529,7 +529,7 @@ function Io(e) {
529
529
  }
530
530
  };
531
531
  }
532
- function Ao(e) {
532
+ function Io(e) {
533
533
  const t = typeof e == "string" ? at(e) : e, r = Ni(t.length);
534
534
  return {
535
535
  length: t.length === 1 && t[0] < 128 ? 1 : t.length <= 55 ? 1 + t.length : 1 + r + t.length,
@@ -815,13 +815,13 @@ class Go extends Ho {
815
815
  for (let g = 0; g < 16; g++, r += 4)
816
816
  Ye[g] = t.getUint32(r, !1);
817
817
  for (let g = 16; g < 64; g++) {
818
- const v = Ye[g - 15], I = Ye[g - 2], B = Le(v, 7) ^ Le(v, 18) ^ v >>> 3, P = Le(I, 17) ^ Le(I, 19) ^ I >>> 10;
818
+ const v = Ye[g - 15], A = Ye[g - 2], B = Le(v, 7) ^ Le(v, 18) ^ v >>> 3, P = Le(A, 17) ^ Le(A, 19) ^ A >>> 10;
819
819
  Ye[g] = P + Ye[g - 7] + B + Ye[g - 16] | 0;
820
820
  }
821
821
  let { A: n, B: i, C: a, D: f, E: u, F: l, G: b, H: m } = this;
822
822
  for (let g = 0; g < 64; g++) {
823
- const v = Le(u, 6) ^ Le(u, 11) ^ Le(u, 25), I = m + v + Do(u, l, b) + zo[g] + Ye[g] | 0, P = (Le(n, 2) ^ Le(n, 13) ^ Le(n, 22)) + $o(n, i, a) | 0;
824
- m = b, b = l, l = u, u = f + I | 0, f = a, a = i, i = n, n = I + P | 0;
823
+ const v = Le(u, 6) ^ Le(u, 11) ^ Le(u, 25), A = m + v + Do(u, l, b) + zo[g] + Ye[g] | 0, P = (Le(n, 2) ^ Le(n, 13) ^ Le(n, 22)) + $o(n, i, a) | 0;
824
+ m = b, b = l, l = u, u = f + A | 0, f = a, a = i, i = n, n = A + P | 0;
825
825
  }
826
826
  n = n + this.A | 0, i = i + this.B | 0, a = a + this.C | 0, f = f + this.D | 0, u = u + this.E | 0, l = l + this.F | 0, b = b + this.G | 0, m = m + this.H | 0, this.set(n, i, a, f, u, l, b, m);
827
827
  }
@@ -886,7 +886,7 @@ class Jo extends X {
886
886
  }
887
887
  }
888
888
  function Xo(e) {
889
- const t = e.to ?? (typeof e.data == "string" ? "hex" : "bytes"), r = typeof e.data == "string" ? at(e.data) : e.data, n = Et(r);
889
+ const t = e.to ?? (typeof e.data == "string" ? "hex" : "bytes"), r = typeof e.data == "string" ? at(e.data) : e.data, n = Bt(r);
890
890
  if (!n)
891
891
  throw new qi();
892
892
  if (n > qn)
@@ -1032,8 +1032,8 @@ function da(e, t = 24) {
1032
1032
  r[f] = e[f] ^ e[f + 10] ^ e[f + 20] ^ e[f + 30] ^ e[f + 40];
1033
1033
  for (let f = 0; f < 10; f += 2) {
1034
1034
  const u = (f + 8) % 10, l = (f + 2) % 10, b = r[l], m = r[l + 1], g = Kn(b, m, 1) ^ r[u], v = Yn(b, m, 1) ^ r[u + 1];
1035
- for (let I = 0; I < 50; I += 10)
1036
- e[f + I] ^= g, e[f + I + 1] ^= v;
1035
+ for (let A = 0; A < 50; A += 10)
1036
+ e[f + A] ^= g, e[f + A + 1] ^= v;
1037
1037
  }
1038
1038
  let i = e[2], a = e[3];
1039
1039
  for (let f = 0; f < 24; f++) {
@@ -1144,11 +1144,11 @@ function _a(e, t, r, { strict: n } = {}) {
1144
1144
  });
1145
1145
  }
1146
1146
  function Qi(e, t, r) {
1147
- if (Et(e) !== r - t)
1147
+ if (Bt(e) !== r - t)
1148
1148
  throw new io({
1149
1149
  offset: r,
1150
1150
  position: "end",
1151
- size: Et(e)
1151
+ size: Bt(e)
1152
1152
  });
1153
1153
  }
1154
1154
  function wa(e, t, r, { strict: n } = {}) {
@@ -1177,7 +1177,7 @@ function Ea(e) {
1177
1177
  if (t.length === 0)
1178
1178
  throw new qi();
1179
1179
  for (const r of t) {
1180
- const n = Et(r), i = pr(_a(r, 0, 1));
1180
+ const n = Bt(r), i = pr(_a(r, 0, 1));
1181
1181
  if (n !== 32)
1182
1182
  throw new Yo({ hash: r, size: n });
1183
1183
  if (i !== Wi)
@@ -1222,7 +1222,7 @@ function Sa(e) {
1222
1222
  if (n && n > _n)
1223
1223
  throw new Sr({ maxFeePerGas: n });
1224
1224
  }
1225
- function Ia(e) {
1225
+ function Aa(e) {
1226
1226
  if (e.type)
1227
1227
  return e.type;
1228
1228
  if (typeof e.authorizationList < "u")
@@ -1235,7 +1235,7 @@ function Ia(e) {
1235
1235
  return typeof e.accessList < "u" ? "eip2930" : "legacy";
1236
1236
  throw new ko({ transaction: e });
1237
1237
  }
1238
- function Ir(e) {
1238
+ function Ar(e) {
1239
1239
  if (!e || e.length === 0)
1240
1240
  return [];
1241
1241
  const t = [];
@@ -1250,14 +1250,14 @@ function Ir(e) {
1250
1250
  }
1251
1251
  return t;
1252
1252
  }
1253
- function Aa(e, t) {
1254
- const r = Ia(e);
1253
+ function Ia(e, t) {
1254
+ const r = Aa(e);
1255
1255
  return r === "eip1559" ? Pa(e, t) : r === "eip2930" ? Ca(e, t) : r === "eip4844" ? Ta(e, t) : r === "eip7702" ? Ra(e, t) : ka(e, t);
1256
1256
  }
1257
1257
  function Ra(e, t) {
1258
1258
  const { authorizationList: r, chainId: n, gas: i, nonce: a, to: f, value: u, maxFeePerGas: l, maxPriorityFeePerGas: b, accessList: m, data: g } = e;
1259
1259
  va(e);
1260
- const v = Ir(m), I = Zo(r);
1260
+ const v = Ar(m), A = Zo(r);
1261
1261
  return Yt([
1262
1262
  "0x04",
1263
1263
  ft([
@@ -1270,7 +1270,7 @@ function Ra(e, t) {
1270
1270
  u ? W(u) : "0x",
1271
1271
  g ?? "0x",
1272
1272
  v,
1273
- I,
1273
+ A,
1274
1274
  ...Jt(e, t)
1275
1275
  ])
1276
1276
  ]);
@@ -1278,20 +1278,20 @@ function Ra(e, t) {
1278
1278
  function Ta(e, t) {
1279
1279
  const { chainId: r, gas: n, nonce: i, to: a, value: f, maxFeePerBlobGas: u, maxFeePerGas: l, maxPriorityFeePerGas: b, accessList: m, data: g } = e;
1280
1280
  Ea(e);
1281
- let v = e.blobVersionedHashes, I = e.sidecars;
1282
- if (e.blobs && (typeof v > "u" || typeof I > "u")) {
1281
+ let v = e.blobVersionedHashes, A = e.sidecars;
1282
+ if (e.blobs && (typeof v > "u" || typeof A > "u")) {
1283
1283
  const L = typeof e.blobs[0] == "string" ? e.blobs : e.blobs.map((S) => Qe(S)), k = e.kzg, O = Mi({
1284
1284
  blobs: L,
1285
1285
  kzg: k
1286
1286
  });
1287
1287
  if (typeof v > "u" && (v = Vo({
1288
1288
  commitments: O
1289
- })), typeof I > "u") {
1289
+ })), typeof A > "u") {
1290
1290
  const S = Di({ blobs: L, commitments: O, kzg: k });
1291
- I = Qo({ blobs: L, commitments: O, proofs: S });
1291
+ A = Qo({ blobs: L, commitments: O, proofs: S });
1292
1292
  }
1293
1293
  }
1294
- const B = Ir(m), P = [
1294
+ const B = Ar(m), P = [
1295
1295
  W(r),
1296
1296
  i ? W(i) : "0x",
1297
1297
  b ? W(b) : "0x",
@@ -1305,21 +1305,21 @@ function Ta(e, t) {
1305
1305
  v ?? [],
1306
1306
  ...Jt(e, t)
1307
1307
  ], T = [], C = [], F = [];
1308
- if (I)
1309
- for (let L = 0; L < I.length; L++) {
1310
- const { blob: k, commitment: O, proof: S } = I[L];
1308
+ if (A)
1309
+ for (let L = 0; L < A.length; L++) {
1310
+ const { blob: k, commitment: O, proof: S } = A[L];
1311
1311
  T.push(k), C.push(O), F.push(S);
1312
1312
  }
1313
1313
  return Yt([
1314
1314
  "0x03",
1315
1315
  // If sidecars are enabled, envelope turns into a "wrapper":
1316
- ft(I ? [P, T, C, F] : P)
1316
+ ft(A ? [P, T, C, F] : P)
1317
1317
  ]);
1318
1318
  }
1319
1319
  function Pa(e, t) {
1320
1320
  const { chainId: r, gas: n, nonce: i, to: a, value: f, maxFeePerGas: u, maxPriorityFeePerGas: l, accessList: b, data: m } = e;
1321
1321
  Bn(e);
1322
- const g = Ir(b), v = [
1322
+ const g = Ar(b), v = [
1323
1323
  W(r),
1324
1324
  i ? W(i) : "0x",
1325
1325
  l ? W(l) : "0x",
@@ -1339,7 +1339,7 @@ function Pa(e, t) {
1339
1339
  function Ca(e, t) {
1340
1340
  const { chainId: r, gas: n, data: i, nonce: a, to: f, value: u, accessList: l, gasPrice: b } = e;
1341
1341
  Ba(e);
1342
- const m = Ir(l), g = [
1342
+ const m = Ar(l), g = [
1343
1343
  W(r),
1344
1344
  a ? W(a) : "0x",
1345
1345
  b ? W(b) : "0x",
@@ -1372,10 +1372,10 @@ function ka(e, t) {
1372
1372
  return (t.v - 35n) / 2n > 0 ? t.v : 27n + (t.v === 35n ? 0n : 1n);
1373
1373
  if (r > 0)
1374
1374
  return BigInt(r * 2) + BigInt(35n + t.v - 27n);
1375
- const I = 27n + (t.v === 27n ? 0n : 1n);
1376
- if (t.v !== I)
1375
+ const A = 27n + (t.v === 27n ? 0n : 1n);
1376
+ if (t.v !== A)
1377
1377
  throw new Co({ v: t.v });
1378
- return I;
1378
+ return A;
1379
1379
  })(), g = dr(t.r), v = dr(t.s);
1380
1380
  b = [
1381
1381
  ...b,
@@ -1422,7 +1422,7 @@ const La = {
1422
1422
  if (typeof n == "string")
1423
1423
  return n;
1424
1424
  const i = mn(n);
1425
- return i.typeHex === "0x7e" && (i.isSystemTx = n.isSystemTx, i.mint = n.mint ? _t(n.mint) : void 0, i.sourceHash = n.sourceHash, i.type = "deposit"), i;
1425
+ return i.typeHex === "0x7e" && (i.isSystemTx = n.isSystemTx, i.mint = n.mint ? wt(n.mint) : void 0, i.sourceHash = n.sourceHash, i.type = "deposit"), i;
1426
1426
  }),
1427
1427
  stateRoot: e.stateRoot
1428
1428
  };
@@ -1431,22 +1431,22 @@ const La = {
1431
1431
  transaction: /* @__PURE__ */ bo({
1432
1432
  format(e) {
1433
1433
  const t = {};
1434
- return e.type === "0x7e" && (t.isSystemTx = e.isSystemTx, t.mint = e.mint ? _t(e.mint) : void 0, t.sourceHash = e.sourceHash, t.type = "deposit"), t;
1434
+ return e.type === "0x7e" && (t.isSystemTx = e.isSystemTx, t.mint = e.mint ? wt(e.mint) : void 0, t.sourceHash = e.sourceHash, t.type = "deposit"), t;
1435
1435
  }
1436
1436
  }),
1437
1437
  transactionReceipt: /* @__PURE__ */ vo({
1438
1438
  format(e) {
1439
1439
  return {
1440
- l1GasPrice: e.l1GasPrice ? _t(e.l1GasPrice) : null,
1441
- l1GasUsed: e.l1GasUsed ? _t(e.l1GasUsed) : null,
1442
- l1Fee: e.l1Fee ? _t(e.l1Fee) : null,
1440
+ l1GasPrice: e.l1GasPrice ? wt(e.l1GasPrice) : null,
1441
+ l1GasUsed: e.l1GasUsed ? wt(e.l1GasUsed) : null,
1442
+ l1Fee: e.l1Fee ? wt(e.l1Fee) : null,
1443
1443
  l1FeeScalar: e.l1FeeScalar ? Number(e.l1FeeScalar) : null
1444
1444
  };
1445
1445
  }
1446
1446
  })
1447
1447
  };
1448
1448
  function Oa(e, t) {
1449
- return Ma(e) ? Na(e) : Aa(e, t);
1449
+ return Ma(e) ? Na(e) : Ia(e, t);
1450
1450
  }
1451
1451
  const Ua = {
1452
1452
  transaction: Oa
@@ -1482,7 +1482,7 @@ const yr = {
1482
1482
  contracts: La,
1483
1483
  formatters: Fa,
1484
1484
  serializers: Ua
1485
- }, $a = /* @__PURE__ */ At({
1485
+ }, $a = /* @__PURE__ */ ht({
1486
1486
  id: 42161,
1487
1487
  name: "Arbitrum One",
1488
1488
  nativeCurrency: { name: "Ether", symbol: "ETH", decimals: 18 },
@@ -1504,7 +1504,7 @@ const yr = {
1504
1504
  blockCreated: 7654707
1505
1505
  }
1506
1506
  }
1507
- }), Ha = /* @__PURE__ */ At({
1507
+ }), Ha = /* @__PURE__ */ ht({
1508
1508
  id: 421614,
1509
1509
  name: "Arbitrum Sepolia",
1510
1510
  nativeCurrency: {
@@ -1531,7 +1531,7 @@ const yr = {
1531
1531
  }
1532
1532
  },
1533
1533
  testnet: !0
1534
- }), Ut = 1, za = /* @__PURE__ */ At({
1534
+ }), Ut = 1, za = /* @__PURE__ */ ht({
1535
1535
  ...yr,
1536
1536
  id: 8453,
1537
1537
  name: "Base",
@@ -1578,7 +1578,7 @@ const yr = {
1578
1578
  }
1579
1579
  },
1580
1580
  sourceId: Ut
1581
- }), Nt = 11155111, Ga = /* @__PURE__ */ At({
1581
+ }), Nt = 11155111, Ga = /* @__PURE__ */ ht({
1582
1582
  ...yr,
1583
1583
  id: 84532,
1584
1584
  network: "base-sepolia",
@@ -1627,7 +1627,31 @@ const yr = {
1627
1627
  },
1628
1628
  testnet: !0,
1629
1629
  sourceId: Nt
1630
- }), ja = /* @__PURE__ */ At({
1630
+ }), ja = /* @__PURE__ */ ht({
1631
+ id: 80084,
1632
+ name: "Berachain bArtio",
1633
+ nativeCurrency: {
1634
+ decimals: 18,
1635
+ name: "BERA Token",
1636
+ symbol: "BERA"
1637
+ },
1638
+ contracts: {
1639
+ multicall3: {
1640
+ address: "0xcA11bde05977b3631167028862bE2a173976CA11",
1641
+ blockCreated: 109269
1642
+ }
1643
+ },
1644
+ rpcUrls: {
1645
+ default: { http: ["https://bartio.rpc.berachain.com"] }
1646
+ },
1647
+ blockExplorers: {
1648
+ default: {
1649
+ name: "Berachain bArtio Beratrail",
1650
+ url: "https://bartio.beratrail.io"
1651
+ }
1652
+ },
1653
+ testnet: !0
1654
+ }), Wa = /* @__PURE__ */ ht({
1631
1655
  id: 1,
1632
1656
  name: "Ethereum",
1633
1657
  nativeCurrency: { name: "Ether", symbol: "ETH", decimals: 18 },
@@ -1656,7 +1680,7 @@ const yr = {
1656
1680
  blockCreated: 14353601
1657
1681
  }
1658
1682
  }
1659
- }), Wa = /* @__PURE__ */ At({
1683
+ }), qa = /* @__PURE__ */ ht({
1660
1684
  id: 11155111,
1661
1685
  name: "Sepolia",
1662
1686
  nativeCurrency: { name: "Sepolia Ether", symbol: "ETH", decimals: 18 },
@@ -1688,27 +1712,27 @@ const yr = {
1688
1712
  function on(e) {
1689
1713
  return typeof e == "string" && (e = Buffer.from(e, "hex")), e.length === 32 ? e : e.subarray(1, 33);
1690
1714
  }
1691
- function gt(e, t) {
1715
+ function mt(e, t) {
1692
1716
  if (!e) throw new Error(t);
1693
1717
  }
1694
- function qa(e) {
1718
+ function Va(e) {
1695
1719
  return Buffer.concat([
1696
1720
  Uint8Array.from([192]),
1697
- Va(e)
1721
+ Ka(e)
1698
1722
  ]);
1699
1723
  }
1700
- function Va(e) {
1724
+ function Ka(e) {
1701
1725
  const t = Mn.encodingLength(e.length), r = Buffer.allocUnsafe(t);
1702
1726
  return Mn.encode(e.length, r), Buffer.concat([r, e]);
1703
1727
  }
1704
- function Ka(e, t) {
1728
+ function Ya(e, t) {
1705
1729
  if (e.compare(t) > 0) {
1706
1730
  const r = e;
1707
1731
  e = t, t = r;
1708
1732
  }
1709
1733
  return [e, t];
1710
1734
  }
1711
- const Mt = (e) => e.length === 64 ? e : e.slice(2), Ya = (e) => {
1735
+ const Mt = (e) => e.length === 64 ? e : e.slice(2), Ja = (e) => {
1712
1736
  if (!e) return !1;
1713
1737
  try {
1714
1738
  const t = Buffer.from(e, "hex");
@@ -1716,25 +1740,26 @@ const Mt = (e) => e.length === 64 ? e : e.slice(2), Ya = (e) => {
1716
1740
  } catch {
1717
1741
  return !1;
1718
1742
  }
1719
- }, Ja = {
1720
- ...Wa,
1743
+ }, Xa = {
1744
+ ...qa,
1721
1745
  rpcUrls: {
1722
1746
  default: {
1723
1747
  http: ["https://ethereum-sepolia-rpc.publicnode.com"]
1724
1748
  }
1725
1749
  }
1726
- }, Xa = {
1727
- ethereum: ja,
1750
+ }, Qa = {
1751
+ ethereum: Wa,
1728
1752
  ethereum_arbitrum: $a,
1729
- ethereum_sepolia: Ja,
1753
+ ethereum_sepolia: Xa,
1730
1754
  arbitrum_sepolia: Ha,
1731
1755
  ethereum_localnet: Vs,
1732
1756
  arbitrum_localnet: Ks,
1733
1757
  base_sepolia: Ga,
1734
- base: za
1735
- }, xl = async (e, t) => {
1758
+ base: za,
1759
+ bera_testnet: ja
1760
+ }, vl = async (e, t) => {
1736
1761
  var n;
1737
- const r = Xa[e];
1762
+ const r = Qa[e];
1738
1763
  if (r)
1739
1764
  try {
1740
1765
  if (r.id === ((n = t.chain) == null ? void 0 : n.id))
@@ -1750,7 +1775,7 @@ const Mt = (e) => e.length === 64 ? e : e.slice(2), Ya = (e) => {
1750
1775
  walletClient: i
1751
1776
  });
1752
1777
  } catch (i) {
1753
- if (Qa(i))
1778
+ if (Za(i))
1754
1779
  try {
1755
1780
  await t.addChain({ chain: r });
1756
1781
  const a = Un({
@@ -1770,8 +1795,8 @@ const Mt = (e) => e.length === 64 ? e : e.slice(2), Ya = (e) => {
1770
1795
  }
1771
1796
  else
1772
1797
  return N("Chain not supported");
1773
- }, Qa = (e) => typeof e == "object" && e !== null && "code" in e && e.code === 4902, Za = (e, t, r, n) => e + ":" + t.toLowerCase() + "::" + r + ":" + n.toLowerCase();
1774
- function vl(e, t) {
1798
+ }, Za = (e) => typeof e == "object" && e !== null && "code" in e && e.code === 4902, ef = (e, t, r, n) => e + ":" + t.toLowerCase() + "::" + r + ":" + n.toLowerCase();
1799
+ function El(e, t) {
1775
1800
  if (!e) return !1;
1776
1801
  const r = t === "mainnet" ? fe.networks.bitcoin : fe.networks.testnet;
1777
1802
  fe.initEccLib(ot);
@@ -1817,7 +1842,7 @@ const Zi = (e, t, r) => {
1817
1842
  if (t > r) return re.Expired;
1818
1843
  }
1819
1844
  return e.initiate_tx_hash ? Number(e.initiate_block_number) ? re.Initiated : re.InitiateDetected : re.Idle;
1820
- }, El = (e, t, r) => {
1845
+ }, Bl = (e, t, r) => {
1821
1846
  const n = Zi(
1822
1847
  e,
1823
1848
  t,
@@ -1840,10 +1865,10 @@ const Zi = (e, t, r) => {
1840
1865
  }, gr = (e, t = 0) => {
1841
1866
  const r = Date.now(), n = e * 1e3 + t * 36e5;
1842
1867
  return r >= n;
1843
- }, ef = (e) => e.filter((t) => {
1868
+ }, tf = (e) => e.filter((t) => {
1844
1869
  const { source_swap: r, create_order: n } = t, { initiate_tx_hash: i, initiate_block_number: a } = r, { deadline: f } = n.additional_data;
1845
1870
  return i && Number(a) ? !0 : i && !Number(a) ? !gr(Number(f), 12) : i ? !0 : !gr(Number(f), 1);
1846
- }), tf = [
1871
+ }), rf = [
1847
1872
  {
1848
1873
  inputs: [
1849
1874
  {
@@ -2236,7 +2261,7 @@ const Zi = (e, t, r) => {
2236
2261
  type: "function"
2237
2262
  }
2238
2263
  ];
2239
- class rf {
2264
+ class nf {
2240
2265
  constructor(t, r, n) {
2241
2266
  this.url = new yn("/relayer", r), this.auth = n, this.order = t;
2242
2267
  }
@@ -2253,7 +2278,7 @@ class rf {
2253
2278
  if (l.error) return N(l.error);
2254
2279
  const b = Zs({
2255
2280
  address: cr(this.order.source_swap.asset),
2256
- abi: tf,
2281
+ abi: rf,
2257
2282
  client: t
2258
2283
  }), m = await b.read.token(), g = await Xs(
2259
2284
  Number(u),
@@ -2262,7 +2287,7 @@ class rf {
2262
2287
  t
2263
2288
  );
2264
2289
  if (g.error) return N(g.error);
2265
- const v = await b.read.eip712Domain(), I = await t.signTypedData({
2290
+ const v = await b.read.eip712Domain(), A = await t.signTypedData({
2266
2291
  account: t.account,
2267
2292
  domain: {
2268
2293
  name: v[1],
@@ -2285,12 +2310,12 @@ class rf {
2285
2310
  amount: u,
2286
2311
  secretHash: i
2287
2312
  }
2288
- }), B = await wt.post(
2313
+ }), B = await xt.post(
2289
2314
  this.url.endpoint("initiate"),
2290
2315
  {
2291
2316
  body: JSON.stringify({
2292
2317
  order_id: r.create_id,
2293
- signature: I,
2318
+ signature: A,
2294
2319
  perform_on: "Source"
2295
2320
  }),
2296
2321
  headers: {
@@ -2308,7 +2333,7 @@ class rf {
2308
2333
  try {
2309
2334
  const n = await this.auth.getToken();
2310
2335
  if (n.error) return N(n.error);
2311
- const i = await wt.post(
2336
+ const i = await xt.post(
2312
2337
  this.url.endpoint("redeem"),
2313
2338
  {
2314
2339
  body: JSON.stringify({
@@ -2328,27 +2353,27 @@ class rf {
2328
2353
  }
2329
2354
  }
2330
2355
  }
2331
- const nf = Buffer.from(
2356
+ const sf = Buffer.from(
2332
2357
  "79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798",
2333
2358
  "hex"
2334
- ), sf = Buffer.from(
2359
+ ), of = Buffer.from(
2335
2360
  "483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",
2336
2361
  "hex"
2337
- ), of = Buffer.concat([nf, sf]), af = Buffer.from(
2362
+ ), af = Buffer.concat([sf, of]), ff = Buffer.from(
2338
2363
  "0250929b74c1a04954b78b4b6035e97a5e078a5a0f28ec96d547bfee9ace803ac0",
2339
2364
  "hex"
2340
2365
  ), Xn = {
2341
2366
  failedToCreateInternalPubkey: "failed to create internal pubkey",
2342
2367
  failedToTweakPubkey: "failed to tweak pubkey"
2343
2368
  };
2344
- function ff() {
2369
+ function uf() {
2345
2370
  const e = eo.sha256(Buffer.from("GardenHTLC", "utf-8")), t = ot.pointMultiply(
2346
- Buffer.concat([Buffer.from("04", "hex"), of]),
2371
+ Buffer.concat([Buffer.from("04", "hex"), af]),
2347
2372
  e
2348
2373
  );
2349
2374
  if (!t)
2350
2375
  throw new Error(Xn.failedToCreateInternalPubkey);
2351
- const r = ot.pointAdd(af, t);
2376
+ const r = ot.pointAdd(ff, t);
2352
2377
  if (!r) throw new Error(Xn.failedToCreateInternalPubkey);
2353
2378
  return on(Buffer.from(r));
2354
2379
  }
@@ -2372,7 +2397,7 @@ class mr {
2372
2397
  * Note: redeemerAddress and initiatorAddress should be x-only public key without 02 or 03 prefix
2373
2398
  */
2374
2399
  constructor(t, r, n, i, a, f, u, l) {
2375
- this.secretHash = n, this.redeemerPubkey = i, this.initiatorPubkey = a, this.expiry = f, this.signer = t, this.network = u, this.internalPubkey = ff(), this.initiateAmount = r, this.utxoHashes = l;
2400
+ this.secretHash = n, this.redeemerPubkey = i, this.initiatorPubkey = a, this.expiry = f, this.signer = t, this.network = u, this.internalPubkey = uf(), this.initiateAmount = r, this.utxoHashes = l;
2376
2401
  }
2377
2402
  /**
2378
2403
  * Creates a GardenHTLC instance
@@ -2388,13 +2413,13 @@ class mr {
2388
2413
  * When the signer is the redeemer, only redeem can be done
2389
2414
  */
2390
2415
  static async from(t, r, n, i, a, f, u) {
2391
- n = n.startsWith("0x") ? n.slice(2) : n, gt(n.length === 64, me.secretHashLenMismatch), gt(
2416
+ n = n.startsWith("0x") ? n.slice(2) : n, mt(n.length === 64, me.secretHashLenMismatch), mt(
2392
2417
  i.length === 64 || i.length === 66,
2393
2418
  `initiator ${me.pubkeyLenMismatch}`
2394
- ), gt(
2419
+ ), mt(
2395
2420
  a.length === 64 || a.length === 66,
2396
2421
  `redeemer ${me.pubkeyLenMismatch}`
2397
- ), gt(f > 0, me.zeroOrNegativeExpiry);
2422
+ ), mt(f > 0, me.zeroOrNegativeExpiry);
2398
2423
  const l = await t.getNetwork();
2399
2424
  return new mr(
2400
2425
  t,
@@ -2480,7 +2505,7 @@ class mr {
2480
2505
  * Note: If there are multiple UTXOs being spend, there should be a signature for each UTXO in counterPartySigs
2481
2506
  */
2482
2507
  async instantRefund(t, r) {
2483
- gt(t.length > 0, me.noCounterpartySigs);
2508
+ mt(t.length > 0, me.noCounterpartySigs);
2484
2509
  const { tx: n, usedUtxos: i } = await this.buildRawTx(r);
2485
2510
  for (const g of i)
2486
2511
  if (!t.find((v) => v.utxo === g.txid))
@@ -2505,12 +2530,12 @@ class mr {
2505
2530
  throw new Error(
2506
2531
  me.invalidCounterpartySigForUTXO(t[g].utxo)
2507
2532
  );
2508
- const I = await this.signer.signSchnorr(v), B = Buffer.from(n.ins[g].hash).reverse().toString("hex"), P = t.find((T) => T.utxo === B);
2533
+ const A = await this.signer.signSchnorr(v), B = Buffer.from(n.ins[g].hash).reverse().toString("hex"), P = t.find((T) => T.utxo === B);
2509
2534
  if (!P)
2510
2535
  throw new Error(me.counterPartySigNotFound(B));
2511
2536
  n.setWitness(g, [
2512
2537
  Buffer.from(P.sig, "hex"),
2513
- I,
2538
+ A,
2514
2539
  this.instantRefundLeaf(),
2515
2540
  this.generateControlBlockFor(
2516
2541
  2
@@ -2524,7 +2549,7 @@ class mr {
2524
2549
  * Reveals the secret and redeems the HTLC
2525
2550
  */
2526
2551
  async redeem(t, r, n) {
2527
- gt(
2552
+ mt(
2528
2553
  fe.crypto.sha256(Buffer.from(t, "hex")).toString("hex") === this.secretHash,
2529
2554
  me.secretMismatch
2530
2555
  );
@@ -2542,9 +2567,9 @@ class mr {
2542
2567
  u,
2543
2568
  b,
2544
2569
  f
2545
- ), I = await this.signer.signSchnorr(v);
2570
+ ), A = await this.signer.signSchnorr(v);
2546
2571
  i.setWitness(g, [
2547
- I,
2572
+ A,
2548
2573
  Buffer.from(t, "hex"),
2549
2574
  this.redeemLeaf(),
2550
2575
  this.generateControlBlockFor(
@@ -2571,13 +2596,13 @@ class mr {
2571
2596
  ), l = i.map((v) => v.value), b = zr(this.getOutputScript(), i.length), m = fe.Transaction.SIGHASH_DEFAULT;
2572
2597
  for (let v = 0; v < n.ins.length; v++) {
2573
2598
  n.ins[v].sequence = this.expiry;
2574
- const I = n.hashForWitnessV1(
2599
+ const A = n.hashForWitnessV1(
2575
2600
  v,
2576
2601
  b,
2577
2602
  l,
2578
2603
  m,
2579
2604
  u
2580
- ), B = await this.signer.signSchnorr(I);
2605
+ ), B = await this.signer.signSchnorr(A);
2581
2606
  n.setWitness(v, [
2582
2607
  B,
2583
2608
  this.refundLeaf(),
@@ -2639,7 +2664,7 @@ class mr {
2639
2664
  */
2640
2665
  leafHash(t) {
2641
2666
  let r = this.redeemLeaf();
2642
- return t === 0 && (r = this.refundLeaf()), t === 2 && (r = this.instantRefundLeaf()), fe.crypto.taggedHash("TapLeaf", qa(r));
2667
+ return t === 0 && (r = this.refundLeaf()), t === 2 && (r = this.instantRefundLeaf()), fe.crypto.taggedHash("TapLeaf", Va(r));
2643
2668
  }
2644
2669
  refundLeaf() {
2645
2670
  return fe.script.fromASM(
@@ -2710,7 +2735,7 @@ class mr {
2710
2735
  );
2711
2736
  switch (t) {
2712
2737
  case 1: {
2713
- const a = Ka(
2738
+ const a = Ya(
2714
2739
  i,
2715
2740
  n
2716
2741
  );
@@ -2736,7 +2761,7 @@ function zr(e, t) {
2736
2761
  r.push(e);
2737
2762
  return r;
2738
2763
  }
2739
- class uf {
2764
+ class cf {
2740
2765
  constructor() {
2741
2766
  this.cache = {};
2742
2767
  }
@@ -2755,13 +2780,13 @@ class uf {
2755
2780
  delete this.cache[`${r}_${t.create_order.create_id}`];
2756
2781
  }
2757
2782
  }
2758
- class Bl {
2783
+ class Sl {
2759
2784
  constructor(t) {
2760
2785
  if (this.eventListeners = /* @__PURE__ */ new Map(), this.getOrderThreshold = 20, this.useRelay = !0, this.orderBook = new Ys({
2761
2786
  url: t.orderbookURl,
2762
2787
  walletClient: t.wallets.evmWallet,
2763
2788
  auth: t.auth
2764
- }), this.quote = t.quote, this.secretManager = t.secretManager, this.wallets = t.wallets, this.orderbookUrl = t.orderbookURl, this.auth = t.auth, this.orderExecutorCache = new uf(), !t.wallets.evmWallet.account)
2789
+ }), this.quote = t.quote, this.secretManager = t.secretManager, this.wallets = t.wallets, this.orderbookUrl = t.orderbookURl, this.auth = t.auth, this.orderExecutorCache = new cf(), !t.wallets.evmWallet.account)
2765
2790
  throw new Error("Account not found in evmWallet");
2766
2791
  this.evmAddress = t.wallets.evmWallet.account.address, this.blockNumberFetcher = t.blockNumberFetcher;
2767
2792
  }
@@ -2802,9 +2827,9 @@ class Bl {
2802
2827
  additional_data: m
2803
2828
  }, v = await this.quote.getAttestedQuote(g);
2804
2829
  if (v.error) return N(v.error);
2805
- const I = await this.orderBook.createOrder(v.val);
2806
- if (I.error) return N(I.error);
2807
- const B = await this.pollOrder(I.val);
2830
+ const A = await this.orderBook.createOrder(v.val);
2831
+ if (A.error) return N(A.error);
2832
+ const B = await this.pollOrder(A.val);
2808
2833
  return B.error ? N(B.error) : ue(B.val);
2809
2834
  }
2810
2835
  async validateAndFillParams(t) {
@@ -2848,7 +2873,7 @@ class Bl {
2848
2873
  return this.wallets.evmWallet.account ? ue(this.wallets.evmWallet.account.address) : N("EVM Wallet not found");
2849
2874
  case Ve.Bitcoin: {
2850
2875
  const i = await ((n = this.wallets.btcWallet) == null ? void 0 : n.getPublicKey());
2851
- return !i || !Ya(i) ? N("Invalid btc public key") : ue(Mt(i));
2876
+ return !i || !Ja(i) ? N("Invalid btc public key") : ue(Mt(i));
2852
2877
  }
2853
2878
  default:
2854
2879
  return N("Unsupported chain");
@@ -2877,7 +2902,7 @@ class Bl {
2877
2902
  !0,
2878
2903
  t,
2879
2904
  async (r) => {
2880
- const n = ef(r.data), i = await this.assignOrderStatus(n);
2905
+ const n = tf(r.data), i = await this.assignOrderStatus(n);
2881
2906
  this.emit("onPendingOrdersChanged", i);
2882
2907
  for (let a = 0; a < i.length; a++) {
2883
2908
  const f = i[a];
@@ -2964,7 +2989,7 @@ class Bl {
2964
2989
  this.emit("log", t.create_order.create_id, "already redeemed");
2965
2990
  return;
2966
2991
  }
2967
- const a = await new rf(t, this.orderbookUrl, this.auth).redeem(t.create_order.create_id, r);
2992
+ const a = await new nf(t, this.orderbookUrl, this.auth).redeem(t.create_order.create_id, r);
2968
2993
  if (a.error) {
2969
2994
  this.emit("error", t, a.error), a.error.includes("Order already redeemed") && this.orderExecutorCache.set(
2970
2995
  t,
@@ -3136,26 +3161,26 @@ class Bl {
3136
3161
  }
3137
3162
  g = B.val.source, v = B.val.destination;
3138
3163
  }
3139
- const I = Zi(
3164
+ const A = Zi(
3140
3165
  f,
3141
3166
  g,
3142
3167
  v
3143
3168
  );
3144
3169
  n.push({
3145
3170
  ...f,
3146
- status: I
3171
+ status: A
3147
3172
  });
3148
3173
  }
3149
3174
  return n;
3150
3175
  }
3151
3176
  }
3152
- class Sl {
3177
+ class Al {
3153
3178
  constructor(t, r) {
3154
3179
  this.url = new yn("/blocknumber/" + r, t);
3155
3180
  }
3156
3181
  async fetchBlockNumbers() {
3157
3182
  try {
3158
- const t = await wt.get(this.url);
3183
+ const t = await xt.get(this.url);
3159
3184
  return ue(t);
3160
3185
  } catch (t) {
3161
3186
  return N("Failed to fetch block numbers", t);
@@ -3163,10 +3188,10 @@ class Sl {
3163
3188
  }
3164
3189
  }
3165
3190
  var Xe = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
3166
- function cf(e) {
3191
+ function lf(e) {
3167
3192
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
3168
3193
  }
3169
- function lf(e) {
3194
+ function hf(e) {
3170
3195
  if (e.__esModule) return e;
3171
3196
  var t = e.default;
3172
3197
  if (typeof t == "function") {
@@ -3185,10 +3210,10 @@ function lf(e) {
3185
3210
  });
3186
3211
  }), r;
3187
3212
  }
3188
- var ts = {}, Bt = {}, St = {};
3189
- Object.defineProperty(St, "__esModule", { value: !0 });
3190
- St.testnet = St.bitcoin = void 0;
3191
- St.bitcoin = {
3213
+ var ts = {}, St = {}, At = {};
3214
+ Object.defineProperty(At, "__esModule", { value: !0 });
3215
+ At.testnet = At.bitcoin = void 0;
3216
+ At.bitcoin = {
3192
3217
  messagePrefix: `Bitcoin Signed Message:
3193
3218
  `,
3194
3219
  bech32: "bc",
@@ -3200,7 +3225,7 @@ St.bitcoin = {
3200
3225
  scriptHash: 5,
3201
3226
  wif: 128
3202
3227
  };
3203
- St.testnet = {
3228
+ At.testnet = {
3204
3229
  messagePrefix: `Bitcoin Signed Message:
3205
3230
  `,
3206
3231
  bech32: "tb",
@@ -3247,63 +3272,63 @@ var Sn = qt, st = Sn;
3247
3272
  function ns(e) {
3248
3273
  return e.name || e.toString().match(/function (.*?)\s*\(/)[1];
3249
3274
  }
3250
- function In(e) {
3275
+ function An(e) {
3251
3276
  return st.Nil(e) ? "" : ns(e.constructor);
3252
3277
  }
3253
- function hf(e) {
3278
+ function df(e) {
3254
3279
  return st.Function(e) ? "" : st.String(e) ? JSON.stringify(e) : e && st.Object(e) ? "" : e;
3255
3280
  }
3256
- function An(e, t) {
3281
+ function In(e, t) {
3257
3282
  Error.captureStackTrace && Error.captureStackTrace(e, t);
3258
3283
  }
3259
3284
  function _r(e) {
3260
3285
  return st.Function(e) ? e.toJSON ? e.toJSON() : ns(e) : st.Array(e) ? "Array" : e && st.Object(e) ? "Object" : e !== void 0 ? e : "";
3261
3286
  }
3262
3287
  function is(e, t, r) {
3263
- var n = hf(t);
3288
+ var n = df(t);
3264
3289
  return "Expected " + _r(e) + ", got" + (r !== "" ? " " + r : "") + (n !== "" ? " " + n : "");
3265
3290
  }
3266
3291
  function $e(e, t, r) {
3267
- r = r || In(t), this.message = is(e, t, r), An(this, $e), this.__type = e, this.__value = t, this.__valueTypeName = r;
3292
+ r = r || An(t), this.message = is(e, t, r), In(this, $e), this.__type = e, this.__value = t, this.__valueTypeName = r;
3268
3293
  }
3269
3294
  $e.prototype = Object.create(Error.prototype);
3270
3295
  $e.prototype.constructor = $e;
3271
- function df(e, t, r, n, i) {
3296
+ function pf(e, t, r, n, i) {
3272
3297
  var a = '" of type ';
3273
3298
  return t === "key" && (a = '" with key type '), is('property "' + _r(r) + a + _r(e), n, i);
3274
3299
  }
3275
- function xt(e, t, r, n, i) {
3276
- e ? (i = i || In(n), this.message = df(e, r, t, n, i)) : this.message = 'Unexpected property "' + t + '"', An(this, $e), this.__label = r, this.__property = t, this.__type = e, this.__value = n, this.__valueTypeName = i;
3300
+ function vt(e, t, r, n, i) {
3301
+ e ? (i = i || An(n), this.message = pf(e, r, t, n, i)) : this.message = 'Unexpected property "' + t + '"', In(this, $e), this.__label = r, this.__property = t, this.__type = e, this.__value = n, this.__valueTypeName = i;
3277
3302
  }
3278
- xt.prototype = Object.create(Error.prototype);
3279
- xt.prototype.constructor = $e;
3280
- function pf(e, t) {
3303
+ vt.prototype = Object.create(Error.prototype);
3304
+ vt.prototype.constructor = $e;
3305
+ function bf(e, t) {
3281
3306
  return new $e(e, {}, t);
3282
3307
  }
3283
- function bf(e, t, r) {
3284
- return e instanceof xt ? (t = t + "." + e.__property, e = new xt(
3308
+ function yf(e, t, r) {
3309
+ return e instanceof vt ? (t = t + "." + e.__property, e = new vt(
3285
3310
  e.__type,
3286
3311
  t,
3287
3312
  e.__label,
3288
3313
  e.__value,
3289
3314
  e.__valueTypeName
3290
- )) : e instanceof $e && (e = new xt(
3315
+ )) : e instanceof $e && (e = new vt(
3291
3316
  e.__type,
3292
3317
  t,
3293
3318
  r,
3294
3319
  e.__value,
3295
3320
  e.__valueTypeName
3296
- )), An(e), e;
3321
+ )), In(e), e;
3297
3322
  }
3298
3323
  var ss = {
3299
3324
  TfTypeError: $e,
3300
- TfPropertyTypeError: xt,
3301
- tfCustomError: pf,
3302
- tfSubError: bf,
3325
+ TfPropertyTypeError: vt,
3326
+ tfCustomError: bf,
3327
+ tfSubError: yf,
3303
3328
  tfJSON: _r,
3304
- getValueTypeName: In
3329
+ getValueTypeName: An
3305
3330
  }, Gr, Zn;
3306
- function yf() {
3331
+ function gf() {
3307
3332
  if (Zn) return Gr;
3308
3333
  Zn = 1;
3309
3334
  var e = Sn, t = ss;
@@ -3341,7 +3366,7 @@ function yf() {
3341
3366
  function v(S) {
3342
3367
  return S << 24 >> 24 === S;
3343
3368
  }
3344
- function I(S) {
3369
+ function A(S) {
3345
3370
  return S << 16 >> 16 === S;
3346
3371
  }
3347
3372
  function B(S) {
@@ -3370,7 +3395,7 @@ function yf() {
3370
3395
  Hex: n,
3371
3396
  HexN: u,
3372
3397
  Int8: v,
3373
- Int16: I,
3398
+ Int16: A,
3374
3399
  Int32: B,
3375
3400
  Int53: P,
3376
3401
  Range: b,
@@ -3386,7 +3411,7 @@ function yf() {
3386
3411
  }).bind(null, O);
3387
3412
  return Gr = k, Gr;
3388
3413
  }
3389
- var Xt = ss, he = Sn, Me = Xt.tfJSON, os = Xt.TfTypeError, as = Xt.TfPropertyTypeError, Dt = Xt.tfSubError, gf = Xt.getValueTypeName, De = {
3414
+ var Xt = ss, he = Sn, Me = Xt.tfJSON, os = Xt.TfTypeError, as = Xt.TfPropertyTypeError, Dt = Xt.tfSubError, mf = Xt.getValueTypeName, De = {
3390
3415
  arrayOf: function(t, r) {
3391
3416
  t = Fe(t), r = r || {};
3392
3417
  function n(i, a) {
@@ -3495,7 +3520,7 @@ var Xt = ss, he = Sn, Me = Xt.tfJSON, os = Xt.TfTypeError, as = Xt.TfPropertyTyp
3495
3520
  },
3496
3521
  quacksLike: function(t) {
3497
3522
  function r(n) {
3498
- return t === gf(n);
3523
+ return t === mf(n);
3499
3524
  }
3500
3525
  return r.toJSON = function() {
3501
3526
  return t;
@@ -3550,15 +3575,15 @@ for (var Je in he)
3550
3575
  we[Je] = he[Je];
3551
3576
  for (Je in De)
3552
3577
  we[Je] = De[Je];
3553
- var ei = yf();
3578
+ var ei = gf();
3554
3579
  for (Je in ei)
3555
3580
  we[Je] = ei[Je];
3556
3581
  we.compile = Fe;
3557
3582
  we.TfTypeError = os;
3558
3583
  we.TfPropertyTypeError = as;
3559
- var mf = we;
3584
+ var _f = we;
3560
3585
  (function(e) {
3561
- Object.defineProperty(e, "__esModule", { value: !0 }), e.maybe = e.Boolean = e.Array = e.Buffer256bit = e.Network = e.typeforce = void 0, e.typeforce = mf, e.Network = e.typeforce.compile({
3586
+ Object.defineProperty(e, "__esModule", { value: !0 }), e.maybe = e.Boolean = e.Array = e.Buffer256bit = e.Network = e.typeforce = void 0, e.typeforce = _f, e.Network = e.typeforce.compile({
3562
3587
  messagePrefix: e.typeforce.oneOf(
3563
3588
  e.typeforce.Buffer,
3564
3589
  e.typeforce.String
@@ -3572,15 +3597,15 @@ var mf = we;
3572
3597
  wif: e.typeforce.UInt8
3573
3598
  }), e.Buffer256bit = e.typeforce.BufferN(32), e.Array = e.typeforce.Array, e.Boolean = e.typeforce.Boolean, e.maybe = e.typeforce.maybe;
3574
3599
  })(rs);
3575
- var an = { exports: {} }, fn = { exports: {} }, Pt = {}, Ar = {};
3576
- Ar.byteLength = xf;
3577
- Ar.toByteArray = Ef;
3578
- Ar.fromByteArray = If;
3579
- var Oe = [], Ae = [], _f = typeof Uint8Array < "u" ? Uint8Array : Array, jr = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
3580
- for (var mt = 0, wf = jr.length; mt < wf; ++mt)
3581
- Oe[mt] = jr[mt], Ae[jr.charCodeAt(mt)] = mt;
3582
- Ae[45] = 62;
3583
- Ae[95] = 63;
3600
+ var an = { exports: {} }, fn = { exports: {} }, Pt = {}, Ir = {};
3601
+ Ir.byteLength = vf;
3602
+ Ir.toByteArray = Bf;
3603
+ Ir.fromByteArray = If;
3604
+ var Oe = [], Ie = [], wf = typeof Uint8Array < "u" ? Uint8Array : Array, jr = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
3605
+ for (var _t = 0, xf = jr.length; _t < xf; ++_t)
3606
+ Oe[_t] = jr[_t], Ie[jr.charCodeAt(_t)] = _t;
3607
+ Ie[45] = 62;
3608
+ Ie[95] = 63;
3584
3609
  function fs(e) {
3585
3610
  var t = e.length;
3586
3611
  if (t % 4 > 0)
@@ -3590,30 +3615,30 @@ function fs(e) {
3590
3615
  var n = r === t ? 0 : 4 - r % 4;
3591
3616
  return [r, n];
3592
3617
  }
3593
- function xf(e) {
3618
+ function vf(e) {
3594
3619
  var t = fs(e), r = t[0], n = t[1];
3595
3620
  return (r + n) * 3 / 4 - n;
3596
3621
  }
3597
- function vf(e, t, r) {
3622
+ function Ef(e, t, r) {
3598
3623
  return (t + r) * 3 / 4 - r;
3599
3624
  }
3600
- function Ef(e) {
3601
- var t, r = fs(e), n = r[0], i = r[1], a = new _f(vf(e, n, i)), f = 0, u = i > 0 ? n - 4 : n, l;
3625
+ function Bf(e) {
3626
+ var t, r = fs(e), n = r[0], i = r[1], a = new wf(Ef(e, n, i)), f = 0, u = i > 0 ? n - 4 : n, l;
3602
3627
  for (l = 0; l < u; l += 4)
3603
- t = Ae[e.charCodeAt(l)] << 18 | Ae[e.charCodeAt(l + 1)] << 12 | Ae[e.charCodeAt(l + 2)] << 6 | Ae[e.charCodeAt(l + 3)], a[f++] = t >> 16 & 255, a[f++] = t >> 8 & 255, a[f++] = t & 255;
3604
- return i === 2 && (t = Ae[e.charCodeAt(l)] << 2 | Ae[e.charCodeAt(l + 1)] >> 4, a[f++] = t & 255), i === 1 && (t = Ae[e.charCodeAt(l)] << 10 | Ae[e.charCodeAt(l + 1)] << 4 | Ae[e.charCodeAt(l + 2)] >> 2, a[f++] = t >> 8 & 255, a[f++] = t & 255), a;
3628
+ t = Ie[e.charCodeAt(l)] << 18 | Ie[e.charCodeAt(l + 1)] << 12 | Ie[e.charCodeAt(l + 2)] << 6 | Ie[e.charCodeAt(l + 3)], a[f++] = t >> 16 & 255, a[f++] = t >> 8 & 255, a[f++] = t & 255;
3629
+ return i === 2 && (t = Ie[e.charCodeAt(l)] << 2 | Ie[e.charCodeAt(l + 1)] >> 4, a[f++] = t & 255), i === 1 && (t = Ie[e.charCodeAt(l)] << 10 | Ie[e.charCodeAt(l + 1)] << 4 | Ie[e.charCodeAt(l + 2)] >> 2, a[f++] = t >> 8 & 255, a[f++] = t & 255), a;
3605
3630
  }
3606
- function Bf(e) {
3631
+ function Sf(e) {
3607
3632
  return Oe[e >> 18 & 63] + Oe[e >> 12 & 63] + Oe[e >> 6 & 63] + Oe[e & 63];
3608
3633
  }
3609
- function Sf(e, t, r) {
3634
+ function Af(e, t, r) {
3610
3635
  for (var n, i = [], a = t; a < r; a += 3)
3611
- n = (e[a] << 16 & 16711680) + (e[a + 1] << 8 & 65280) + (e[a + 2] & 255), i.push(Bf(n));
3636
+ n = (e[a] << 16 & 16711680) + (e[a + 1] << 8 & 65280) + (e[a + 2] & 255), i.push(Sf(n));
3612
3637
  return i.join("");
3613
3638
  }
3614
3639
  function If(e) {
3615
3640
  for (var t, r = e.length, n = r % 3, i = [], a = 16383, f = 0, u = r - n; f < u; f += a)
3616
- i.push(Sf(e, f, f + a > u ? u : f + a));
3641
+ i.push(Af(e, f, f + a > u ? u : f + a));
3617
3642
  return n === 1 ? (t = e[r - 1], i.push(
3618
3643
  Oe[t >> 2] + Oe[t << 4 & 63] + "=="
3619
3644
  )) : n === 2 && (t = (e[r - 2] << 8) + e[r - 1], i.push(
@@ -3623,8 +3648,8 @@ function If(e) {
3623
3648
  var Rn = {};
3624
3649
  /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
3625
3650
  Rn.read = function(e, t, r, n, i) {
3626
- var a, f, u = i * 8 - n - 1, l = (1 << u) - 1, b = l >> 1, m = -7, g = r ? i - 1 : 0, v = r ? -1 : 1, I = e[t + g];
3627
- for (g += v, a = I & (1 << -m) - 1, I >>= -m, m += u; m > 0; a = a * 256 + e[t + g], g += v, m -= 8)
3651
+ var a, f, u = i * 8 - n - 1, l = (1 << u) - 1, b = l >> 1, m = -7, g = r ? i - 1 : 0, v = r ? -1 : 1, A = e[t + g];
3652
+ for (g += v, a = A & (1 << -m) - 1, A >>= -m, m += u; m > 0; a = a * 256 + e[t + g], g += v, m -= 8)
3628
3653
  ;
3629
3654
  for (f = a & (1 << -m) - 1, a >>= -m, m += n; m > 0; f = f * 256 + e[t + g], g += v, m -= 8)
3630
3655
  ;
@@ -3632,18 +3657,18 @@ Rn.read = function(e, t, r, n, i) {
3632
3657
  a = 1 - b;
3633
3658
  else {
3634
3659
  if (a === l)
3635
- return f ? NaN : (I ? -1 : 1) * (1 / 0);
3660
+ return f ? NaN : (A ? -1 : 1) * (1 / 0);
3636
3661
  f = f + Math.pow(2, n), a = a - b;
3637
3662
  }
3638
- return (I ? -1 : 1) * f * Math.pow(2, a - n);
3663
+ return (A ? -1 : 1) * f * Math.pow(2, a - n);
3639
3664
  };
3640
3665
  Rn.write = function(e, t, r, n, i, a) {
3641
- var f, u, l, b = a * 8 - i - 1, m = (1 << b) - 1, g = m >> 1, v = i === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, I = n ? 0 : a - 1, B = n ? 1 : -1, P = t < 0 || t === 0 && 1 / t < 0 ? 1 : 0;
3642
- for (t = Math.abs(t), isNaN(t) || t === 1 / 0 ? (u = isNaN(t) ? 1 : 0, f = m) : (f = Math.floor(Math.log(t) / Math.LN2), t * (l = Math.pow(2, -f)) < 1 && (f--, l *= 2), f + g >= 1 ? t += v / l : t += v * Math.pow(2, 1 - g), t * l >= 2 && (f++, l /= 2), f + g >= m ? (u = 0, f = m) : f + g >= 1 ? (u = (t * l - 1) * Math.pow(2, i), f = f + g) : (u = t * Math.pow(2, g - 1) * Math.pow(2, i), f = 0)); i >= 8; e[r + I] = u & 255, I += B, u /= 256, i -= 8)
3666
+ var f, u, l, b = a * 8 - i - 1, m = (1 << b) - 1, g = m >> 1, v = i === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, A = n ? 0 : a - 1, B = n ? 1 : -1, P = t < 0 || t === 0 && 1 / t < 0 ? 1 : 0;
3667
+ for (t = Math.abs(t), isNaN(t) || t === 1 / 0 ? (u = isNaN(t) ? 1 : 0, f = m) : (f = Math.floor(Math.log(t) / Math.LN2), t * (l = Math.pow(2, -f)) < 1 && (f--, l *= 2), f + g >= 1 ? t += v / l : t += v * Math.pow(2, 1 - g), t * l >= 2 && (f++, l /= 2), f + g >= m ? (u = 0, f = m) : f + g >= 1 ? (u = (t * l - 1) * Math.pow(2, i), f = f + g) : (u = t * Math.pow(2, g - 1) * Math.pow(2, i), f = 0)); i >= 8; e[r + A] = u & 255, A += B, u /= 256, i -= 8)
3643
3668
  ;
3644
- for (f = f << i | u, b += i; b > 0; e[r + I] = f & 255, I += B, f /= 256, b -= 8)
3669
+ for (f = f << i | u, b += i; b > 0; e[r + A] = f & 255, A += B, f /= 256, b -= 8)
3645
3670
  ;
3646
- e[r + I - B] |= P * 128;
3671
+ e[r + A - B] |= P * 128;
3647
3672
  };
3648
3673
  /*!
3649
3674
  * The buffer module from node.js, for the browser.
@@ -3652,7 +3677,7 @@ Rn.write = function(e, t, r, n, i, a) {
3652
3677
  * @license MIT
3653
3678
  */
3654
3679
  (function(e) {
3655
- const t = Ar, r = Rn, n = typeof Symbol == "function" && typeof Symbol.for == "function" ? Symbol.for("nodejs.util.inspect.custom") : null;
3680
+ const t = Ir, r = Rn, n = typeof Symbol == "function" && typeof Symbol.for == "function" ? Symbol.for("nodejs.util.inspect.custom") : null;
3656
3681
  e.Buffer = u, e.SlowBuffer = F, e.INSPECT_MAX_BYTES = 50;
3657
3682
  const i = 2147483647;
3658
3683
  e.kMaxLength = i, u.TYPED_ARRAY_SUPPORT = a(), !u.TYPED_ARRAY_SUPPORT && typeof console < "u" && typeof console.error == "function" && console.error(
@@ -3755,7 +3780,7 @@ Rn.write = function(e, t, r, n, i, a) {
3755
3780
  const y = h.write(c, s);
3756
3781
  return y !== o && (h = h.slice(0, y)), h;
3757
3782
  }
3758
- function I(c) {
3783
+ function A(c) {
3759
3784
  const s = c.length < 0 ? 0 : C(c.length) | 0, o = f(s);
3760
3785
  for (let h = 0; h < s; h += 1)
3761
3786
  o[h] = c[h] & 255;
@@ -3766,7 +3791,7 @@ Rn.write = function(e, t, r, n, i, a) {
3766
3791
  const s = new Uint8Array(c);
3767
3792
  return P(s.buffer, s.byteOffset, s.byteLength);
3768
3793
  }
3769
- return I(c);
3794
+ return A(c);
3770
3795
  }
3771
3796
  function P(c, s, o) {
3772
3797
  if (s < 0 || c.byteLength < s)
@@ -3782,9 +3807,9 @@ Rn.write = function(e, t, r, n, i, a) {
3782
3807
  return o.length === 0 || c.copy(o, 0, 0, s), o;
3783
3808
  }
3784
3809
  if (c.length !== void 0)
3785
- return typeof c.length != "number" || rt(c.length) ? f(0) : I(c);
3810
+ return typeof c.length != "number" || rt(c.length) ? f(0) : A(c);
3786
3811
  if (c.type === "Buffer" && Array.isArray(c.data))
3787
- return I(c.data);
3812
+ return A(c.data);
3788
3813
  }
3789
3814
  function C(c) {
3790
3815
  if (c >= i)
@@ -4043,16 +4068,16 @@ Rn.write = function(e, t, r, n, i, a) {
4043
4068
  return E;
4044
4069
  }
4045
4070
  function $(c, s, o, h) {
4046
- return bt(V(s, c.length - o), c, o, h);
4071
+ return yt(V(s, c.length - o), c, o, h);
4047
4072
  }
4048
4073
  function se(c, s, o, h) {
4049
- return bt(qe(s), c, o, h);
4074
+ return yt(qe(s), c, o, h);
4050
4075
  }
4051
4076
  function Te(c, s, o, h) {
4052
- return bt(kt(s), c, o, h);
4077
+ return yt(kt(s), c, o, h);
4053
4078
  }
4054
4079
  function ze(c, s, o, h) {
4055
- return bt(pt(s, c.length - o), c, o, h);
4080
+ return yt(bt(s, c.length - o), c, o, h);
4056
4081
  }
4057
4082
  u.prototype.write = function(s, o, h, y) {
4058
4083
  if (o === void 0)
@@ -4202,14 +4227,14 @@ Rn.write = function(e, t, r, n, i, a) {
4202
4227
  return s = s >>> 0, o || Q(s, 4, this.length), (this[s] | this[s + 1] << 8 | this[s + 2] << 16) + this[s + 3] * 16777216;
4203
4228
  }, u.prototype.readUint32BE = u.prototype.readUInt32BE = function(s, o) {
4204
4229
  return s = s >>> 0, o || Q(s, 4, this.length), this[s] * 16777216 + (this[s + 1] << 16 | this[s + 2] << 8 | this[s + 3]);
4205
- }, u.prototype.readBigUInt64LE = Ie(function(s) {
4206
- s = s >>> 0, A(s, "offset");
4230
+ }, u.prototype.readBigUInt64LE = Ae(function(s) {
4231
+ s = s >>> 0, I(s, "offset");
4207
4232
  const o = this[s], h = this[s + 7];
4208
4233
  (o === void 0 || h === void 0) && U(s, this.length - 8);
4209
4234
  const y = o + this[++s] * 2 ** 8 + this[++s] * 2 ** 16 + this[++s] * 2 ** 24, x = this[++s] + this[++s] * 2 ** 8 + this[++s] * 2 ** 16 + h * 2 ** 24;
4210
4235
  return BigInt(y) + (BigInt(x) << BigInt(32));
4211
- }), u.prototype.readBigUInt64BE = Ie(function(s) {
4212
- s = s >>> 0, A(s, "offset");
4236
+ }), u.prototype.readBigUInt64BE = Ae(function(s) {
4237
+ s = s >>> 0, I(s, "offset");
4213
4238
  const o = this[s], h = this[s + 7];
4214
4239
  (o === void 0 || h === void 0) && U(s, this.length - 8);
4215
4240
  const y = o * 2 ** 24 + this[++s] * 2 ** 16 + this[++s] * 2 ** 8 + this[++s], x = this[++s] * 2 ** 24 + this[++s] * 2 ** 16 + this[++s] * 2 ** 8 + h;
@@ -4240,14 +4265,14 @@ Rn.write = function(e, t, r, n, i, a) {
4240
4265
  return s = s >>> 0, o || Q(s, 4, this.length), this[s] | this[s + 1] << 8 | this[s + 2] << 16 | this[s + 3] << 24;
4241
4266
  }, u.prototype.readInt32BE = function(s, o) {
4242
4267
  return s = s >>> 0, o || Q(s, 4, this.length), this[s] << 24 | this[s + 1] << 16 | this[s + 2] << 8 | this[s + 3];
4243
- }, u.prototype.readBigInt64LE = Ie(function(s) {
4244
- s = s >>> 0, A(s, "offset");
4268
+ }, u.prototype.readBigInt64LE = Ae(function(s) {
4269
+ s = s >>> 0, I(s, "offset");
4245
4270
  const o = this[s], h = this[s + 7];
4246
4271
  (o === void 0 || h === void 0) && U(s, this.length - 8);
4247
4272
  const y = this[s + 4] + this[s + 5] * 2 ** 8 + this[s + 6] * 2 ** 16 + (h << 24);
4248
4273
  return (BigInt(y) << BigInt(32)) + BigInt(o + this[++s] * 2 ** 8 + this[++s] * 2 ** 16 + this[++s] * 2 ** 24);
4249
- }), u.prototype.readBigInt64BE = Ie(function(s) {
4250
- s = s >>> 0, A(s, "offset");
4274
+ }), u.prototype.readBigInt64BE = Ae(function(s) {
4275
+ s = s >>> 0, I(s, "offset");
4251
4276
  const o = this[s], h = this[s + 7];
4252
4277
  (o === void 0 || h === void 0) && U(s, this.length - 8);
4253
4278
  const y = (o << 24) + // Overflow
@@ -4310,9 +4335,9 @@ Rn.write = function(e, t, r, n, i, a) {
4310
4335
  let E = Number(s >> BigInt(32) & BigInt(4294967295));
4311
4336
  return c[o + 3] = E, E = E >> 8, c[o + 2] = E, E = E >> 8, c[o + 1] = E, E = E >> 8, c[o] = E, o + 8;
4312
4337
  }
4313
- u.prototype.writeBigUInt64LE = Ie(function(s, o = 0) {
4338
+ u.prototype.writeBigUInt64LE = Ae(function(s, o = 0) {
4314
4339
  return Be(this, s, o, BigInt(0), BigInt("0xffffffffffffffff"));
4315
- }), u.prototype.writeBigUInt64BE = Ie(function(s, o = 0) {
4340
+ }), u.prototype.writeBigUInt64BE = Ae(function(s, o = 0) {
4316
4341
  return We(this, s, o, BigInt(0), BigInt("0xffffffffffffffff"));
4317
4342
  }), u.prototype.writeIntLE = function(s, o, h, y) {
4318
4343
  if (s = +s, o = o >>> 0, !y) {
@@ -4342,9 +4367,9 @@ Rn.write = function(e, t, r, n, i, a) {
4342
4367
  return s = +s, o = o >>> 0, h || oe(this, s, o, 4, 2147483647, -2147483648), this[o] = s & 255, this[o + 1] = s >>> 8, this[o + 2] = s >>> 16, this[o + 3] = s >>> 24, o + 4;
4343
4368
  }, u.prototype.writeInt32BE = function(s, o, h) {
4344
4369
  return s = +s, o = o >>> 0, h || oe(this, s, o, 4, 2147483647, -2147483648), s < 0 && (s = 4294967295 + s + 1), this[o] = s >>> 24, this[o + 1] = s >>> 16, this[o + 2] = s >>> 8, this[o + 3] = s & 255, o + 4;
4345
- }, u.prototype.writeBigInt64LE = Ie(function(s, o = 0) {
4370
+ }, u.prototype.writeBigInt64LE = Ae(function(s, o = 0) {
4346
4371
  return Be(this, s, o, -BigInt("0x8000000000000000"), BigInt("0x7fffffffffffffff"));
4347
- }), u.prototype.writeBigInt64BE = Ie(function(s, o = 0) {
4372
+ }), u.prototype.writeBigInt64BE = Ae(function(s, o = 0) {
4348
4373
  return We(this, s, o, -BigInt("0x8000000000000000"), BigInt("0x7fffffffffffffff"));
4349
4374
  });
4350
4375
  function Ue(c, s, o, h, y, x) {
@@ -4463,7 +4488,7 @@ Rn.write = function(e, t, r, n, i, a) {
4463
4488
  return `${c.slice(0, o)}${s}`;
4464
4489
  }
4465
4490
  function d(c, s, o) {
4466
- A(s, "offset"), (c[s] === void 0 || c[s + o] === void 0) && U(s, c.length - (o + 1));
4491
+ I(s, "offset"), (c[s] === void 0 || c[s + o] === void 0) && U(s, c.length - (o + 1));
4467
4492
  }
4468
4493
  function p(c, s, o, h, y, x) {
4469
4494
  if (c > o || c < s) {
@@ -4473,12 +4498,12 @@ Rn.write = function(e, t, r, n, i, a) {
4473
4498
  }
4474
4499
  d(h, y, x);
4475
4500
  }
4476
- function A(c, s) {
4501
+ function I(c, s) {
4477
4502
  if (typeof c != "number")
4478
4503
  throw new R.ERR_INVALID_ARG_TYPE(s, "number", c);
4479
4504
  }
4480
4505
  function U(c, s, o) {
4481
- throw Math.floor(c) !== c ? (A(c, o), new R.ERR_OUT_OF_RANGE("offset", "an integer", c)) : s < 0 ? new R.ERR_BUFFER_OUT_OF_BOUNDS() : new R.ERR_OUT_OF_RANGE(
4506
+ throw Math.floor(c) !== c ? (I(c, o), new R.ERR_OUT_OF_RANGE("offset", "an integer", c)) : s < 0 ? new R.ERR_BUFFER_OUT_OF_BOUNDS() : new R.ERR_OUT_OF_RANGE(
4482
4507
  "offset",
4483
4508
  `>= 0 and <= ${s}`,
4484
4509
  c
@@ -4551,7 +4576,7 @@ Rn.write = function(e, t, r, n, i, a) {
4551
4576
  s.push(c.charCodeAt(o) & 255);
4552
4577
  return s;
4553
4578
  }
4554
- function pt(c, s) {
4579
+ function bt(c, s) {
4555
4580
  let o, h, y;
4556
4581
  const x = [];
4557
4582
  for (let E = 0; E < c.length && !((s -= 2) < 0); ++E)
@@ -4561,7 +4586,7 @@ Rn.write = function(e, t, r, n, i, a) {
4561
4586
  function kt(c) {
4562
4587
  return t.toByteArray(j(c));
4563
4588
  }
4564
- function bt(c, s, o, h) {
4589
+ function yt(c, s, o, h) {
4565
4590
  let y;
4566
4591
  for (y = 0; y < h && !(y + o >= s.length || y >= c.length); ++y)
4567
4592
  s[y + o] = c[y];
@@ -4582,7 +4607,7 @@ Rn.write = function(e, t, r, n, i, a) {
4582
4607
  }
4583
4608
  return s;
4584
4609
  }();
4585
- function Ie(c) {
4610
+ function Ae(c) {
4586
4611
  return typeof BigInt > "u" ? nt : c;
4587
4612
  }
4588
4613
  function nt() {
@@ -4619,16 +4644,16 @@ Rn.write = function(e, t, r, n, i, a) {
4619
4644
  return r.SlowBuffer(f);
4620
4645
  };
4621
4646
  })(fn, fn.exports);
4622
- var xe = fn.exports, Wr = 65536, Af = 4294967295;
4623
- function Rf() {
4647
+ var xe = fn.exports, Wr = 65536, Rf = 4294967295;
4648
+ function Tf() {
4624
4649
  throw new Error(`Secure random number generation is not supported by this browser.
4625
4650
  Use Chrome, Firefox or Internet Explorer 11`);
4626
4651
  }
4627
- var Tf = xe.Buffer, wr = Xe.crypto || Xe.msCrypto;
4628
- wr && wr.getRandomValues ? an.exports = Pf : an.exports = Rf;
4629
- function Pf(e, t) {
4630
- if (e > Af) throw new RangeError("requested too many random bytes");
4631
- var r = Tf.allocUnsafe(e);
4652
+ var Pf = xe.Buffer, wr = Xe.crypto || Xe.msCrypto;
4653
+ wr && wr.getRandomValues ? an.exports = Cf : an.exports = Tf;
4654
+ function Cf(e, t) {
4655
+ if (e > Rf) throw new RangeError("requested too many random bytes");
4656
+ var r = Pf.allocUnsafe(e);
4632
4657
  if (e > 0)
4633
4658
  if (e > Wr)
4634
4659
  for (var n = 0; n < e; n += Wr)
@@ -4639,7 +4664,7 @@ function Pf(e, t) {
4639
4664
  t(null, r);
4640
4665
  }) : r;
4641
4666
  }
4642
- var Cf = an.exports, un = { exports: {} };
4667
+ var kf = an.exports, un = { exports: {} };
4643
4668
  typeof Object.create == "function" ? un.exports = function(t, r) {
4644
4669
  r && (t.super_ = r, t.prototype = Object.create(r.prototype, {
4645
4670
  constructor: {
@@ -4657,15 +4682,15 @@ typeof Object.create == "function" ? un.exports = function(t, r) {
4657
4682
  n.prototype = r.prototype, t.prototype = new n(), t.prototype.constructor = t;
4658
4683
  }
4659
4684
  };
4660
- var de = un.exports, cn = { exports: {} }, Tn = { exports: {} }, vt = typeof Reflect == "object" ? Reflect : null, ti = vt && typeof vt.apply == "function" ? vt.apply : function(t, r, n) {
4685
+ var de = un.exports, cn = { exports: {} }, Tn = { exports: {} }, Et = typeof Reflect == "object" ? Reflect : null, ti = Et && typeof Et.apply == "function" ? Et.apply : function(t, r, n) {
4661
4686
  return Function.prototype.apply.call(t, r, n);
4662
4687
  }, lr;
4663
- vt && typeof vt.ownKeys == "function" ? lr = vt.ownKeys : Object.getOwnPropertySymbols ? lr = function(t) {
4688
+ Et && typeof Et.ownKeys == "function" ? lr = Et.ownKeys : Object.getOwnPropertySymbols ? lr = function(t) {
4664
4689
  return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t));
4665
4690
  } : lr = function(t) {
4666
4691
  return Object.getOwnPropertyNames(t);
4667
4692
  };
4668
- function kf(e) {
4693
+ function Lf(e) {
4669
4694
  console && console.warn && console.warn(e);
4670
4695
  }
4671
4696
  var us = Number.isNaN || function(t) {
@@ -4675,7 +4700,7 @@ function K() {
4675
4700
  K.init.call(this);
4676
4701
  }
4677
4702
  Tn.exports = K;
4678
- Tn.exports.once = Uf;
4703
+ Tn.exports.once = Nf;
4679
4704
  K.EventEmitter = K;
4680
4705
  K.prototype._events = void 0;
4681
4706
  K.prototype._eventsCount = 0;
@@ -4745,7 +4770,7 @@ function ls(e, t, r, n) {
4745
4770
  else if (typeof f == "function" ? f = a[t] = n ? [r, f] : [f, r] : n ? f.unshift(r) : f.push(r), i = cs(e), i > 0 && f.length > i && !f.warned) {
4746
4771
  f.warned = !0;
4747
4772
  var u = new Error("Possible EventEmitter memory leak detected. " + f.length + " " + String(t) + " listeners added. Use emitter.setMaxListeners() to increase limit");
4748
- u.name = "MaxListenersExceededWarning", u.emitter = e, u.type = t, u.count = f.length, kf(u);
4773
+ u.name = "MaxListenersExceededWarning", u.emitter = e, u.type = t, u.count = f.length, Lf(u);
4749
4774
  }
4750
4775
  return e;
4751
4776
  }
@@ -4756,12 +4781,12 @@ K.prototype.on = K.prototype.addListener;
4756
4781
  K.prototype.prependListener = function(t, r) {
4757
4782
  return ls(this, t, r, !0);
4758
4783
  };
4759
- function Lf() {
4784
+ function Ff() {
4760
4785
  if (!this.fired)
4761
4786
  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);
4762
4787
  }
4763
4788
  function hs(e, t, r) {
4764
- var n = { fired: !1, wrapFn: void 0, target: e, type: t, listener: r }, i = Lf.bind(n);
4789
+ var n = { fired: !1, wrapFn: void 0, target: e, type: t, listener: r }, i = Ff.bind(n);
4765
4790
  return i.listener = r, n.wrapFn = i, i;
4766
4791
  }
4767
4792
  K.prototype.once = function(t, r) {
@@ -4786,7 +4811,7 @@ K.prototype.removeListener = function(t, r) {
4786
4811
  }
4787
4812
  if (a < 0)
4788
4813
  return this;
4789
- a === 0 ? n.shift() : Ff(n, a), n.length === 1 && (i[t] = n[0]), i.removeListener !== void 0 && this.emit("removeListener", t, u || r);
4814
+ a === 0 ? n.shift() : Of(n, a), n.length === 1 && (i[t] = n[0]), i.removeListener !== void 0 && this.emit("removeListener", t, u || r);
4790
4815
  }
4791
4816
  return this;
4792
4817
  };
@@ -4815,7 +4840,7 @@ function ds(e, t, r) {
4815
4840
  if (n === void 0)
4816
4841
  return [];
4817
4842
  var i = n[t];
4818
- return i === void 0 ? [] : typeof i == "function" ? r ? [i.listener || i] : [i] : r ? Of(i) : bs(i, i.length);
4843
+ return i === void 0 ? [] : typeof i == "function" ? r ? [i.listener || i] : [i] : r ? Uf(i) : bs(i, i.length);
4819
4844
  }
4820
4845
  K.prototype.listeners = function(t) {
4821
4846
  return ds(this, t, !0);
@@ -4846,17 +4871,17 @@ function bs(e, t) {
4846
4871
  r[n] = e[n];
4847
4872
  return r;
4848
4873
  }
4849
- function Ff(e, t) {
4874
+ function Of(e, t) {
4850
4875
  for (; t + 1 < e.length; t++)
4851
4876
  e[t] = e[t + 1];
4852
4877
  e.pop();
4853
4878
  }
4854
- function Of(e) {
4879
+ function Uf(e) {
4855
4880
  for (var t = new Array(e.length), r = 0; r < t.length; ++r)
4856
4881
  t[r] = e[r].listener || e[r];
4857
4882
  return t;
4858
4883
  }
4859
- function Uf(e, t) {
4884
+ function Nf(e, t) {
4860
4885
  return new Promise(function(r, n) {
4861
4886
  function i(f) {
4862
4887
  e.removeListener(t, a), n(f);
@@ -4864,10 +4889,10 @@ function Uf(e, t) {
4864
4889
  function a() {
4865
4890
  typeof e.removeListener == "function" && e.removeListener("error", i), r([].slice.call(arguments));
4866
4891
  }
4867
- ys(e, t, a, { once: !0 }), t !== "error" && Nf(e, i, { once: !0 });
4892
+ ys(e, t, a, { once: !0 }), t !== "error" && Mf(e, i, { once: !0 });
4868
4893
  });
4869
4894
  }
4870
- function Nf(e, t, r) {
4895
+ function Mf(e, t, r) {
4871
4896
  typeof e.on == "function" && ys(e, "error", t, r);
4872
4897
  }
4873
4898
  function ys(e, t, r, n) {
@@ -4881,12 +4906,12 @@ function ys(e, t, r, n) {
4881
4906
  throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type ' + typeof e);
4882
4907
  }
4883
4908
  var gs = Tn.exports, ms = gs.EventEmitter;
4884
- const Mf = {}, Df = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4909
+ const Df = {}, $f = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4885
4910
  __proto__: null,
4886
- default: Mf
4887
- }, Symbol.toStringTag, { value: "Module" })), Pn = /* @__PURE__ */ lf(Df);
4911
+ default: Df
4912
+ }, Symbol.toStringTag, { value: "Module" })), Pn = /* @__PURE__ */ hf($f);
4888
4913
  var qr, ni;
4889
- function $f() {
4914
+ function Hf() {
4890
4915
  if (ni) return qr;
4891
4916
  ni = 1;
4892
4917
  function e(B, P) {
@@ -4941,7 +4966,7 @@ function $f() {
4941
4966
  return (P === "string" ? String : Number)(B);
4942
4967
  }
4943
4968
  var l = Pt, b = l.Buffer, m = Pn, g = m.inspect, v = g && g.custom || "inspect";
4944
- function I(B, P, T) {
4969
+ function A(B, P, T) {
4945
4970
  b.prototype.copy.call(B, P, T);
4946
4971
  }
4947
4972
  return qr = /* @__PURE__ */ function() {
@@ -4991,7 +5016,7 @@ function $f() {
4991
5016
  value: function(T) {
4992
5017
  if (this.length === 0) return b.alloc(0);
4993
5018
  for (var C = b.allocUnsafe(T >>> 0), F = this.head, L = 0; F; )
4994
- I(F.data, C, L), L += F.data.length, F = F.next;
5019
+ A(F.data, C, L), L += F.data.length, F = F.next;
4995
5020
  return C;
4996
5021
  }
4997
5022
  // Consumes a specified amount of bytes or characters from the buffered data.
@@ -5050,7 +5075,7 @@ function $f() {
5050
5075
  }]), B;
5051
5076
  }(), qr;
5052
5077
  }
5053
- function Hf(e, t) {
5078
+ function zf(e, t) {
5054
5079
  var r = this, n = this._readableState && this._readableState.destroyed, i = this._writableState && this._writableState.destroyed;
5055
5080
  return n || i ? (t ? t(e) : e && (this._writableState ? this._writableState.errorEmitted || (this._writableState.errorEmitted = !0, process.nextTick(ln, this, e)) : process.nextTick(ln, this, e)), this) : (this._readableState && (this._readableState.destroyed = !0), this._writableState && (this._writableState.destroyed = !0), this._destroy(e || null, function(a) {
5056
5081
  !t && a ? r._writableState ? r._writableState.errorEmitted ? process.nextTick(hr, r) : (r._writableState.errorEmitted = !0, process.nextTick(ii, r, a)) : process.nextTick(ii, r, a) : t ? (process.nextTick(hr, r), t(a)) : process.nextTick(hr, r);
@@ -5062,22 +5087,22 @@ function ii(e, t) {
5062
5087
  function hr(e) {
5063
5088
  e._writableState && !e._writableState.emitClose || e._readableState && !e._readableState.emitClose || e.emit("close");
5064
5089
  }
5065
- function zf() {
5090
+ function Gf() {
5066
5091
  this._readableState && (this._readableState.destroyed = !1, this._readableState.reading = !1, this._readableState.ended = !1, this._readableState.endEmitted = !1), this._writableState && (this._writableState.destroyed = !1, this._writableState.ended = !1, this._writableState.ending = !1, this._writableState.finalCalled = !1, this._writableState.prefinished = !1, this._writableState.finished = !1, this._writableState.errorEmitted = !1);
5067
5092
  }
5068
5093
  function ln(e, t) {
5069
5094
  e.emit("error", t);
5070
5095
  }
5071
- function Gf(e, t) {
5096
+ function jf(e, t) {
5072
5097
  var r = e._readableState, n = e._writableState;
5073
5098
  r && r.autoDestroy || n && n.autoDestroy ? e.destroy(t) : e.emit("error", t);
5074
5099
  }
5075
5100
  var _s = {
5076
- destroy: Hf,
5077
- undestroy: zf,
5078
- errorOrDestroy: Gf
5079
- }, ht = {};
5080
- function jf(e, t) {
5101
+ destroy: zf,
5102
+ undestroy: Gf,
5103
+ errorOrDestroy: jf
5104
+ }, dt = {};
5105
+ function Wf(e, t) {
5081
5106
  e.prototype = Object.create(t.prototype), e.prototype.constructor = e, e.__proto__ = t;
5082
5107
  }
5083
5108
  var ws = {};
@@ -5087,7 +5112,7 @@ function Re(e, t, r) {
5087
5112
  return typeof t == "string" ? t : t(a, f, u);
5088
5113
  }
5089
5114
  var i = /* @__PURE__ */ function(a) {
5090
- jf(f, a);
5115
+ Wf(f, a);
5091
5116
  function f(u, l, b) {
5092
5117
  return a.call(this, n(u, l, b)) || this;
5093
5118
  }
@@ -5104,13 +5129,13 @@ function si(e, t) {
5104
5129
  } else
5105
5130
  return "of ".concat(t, " ").concat(String(e));
5106
5131
  }
5107
- function Wf(e, t, r) {
5132
+ function qf(e, t, r) {
5108
5133
  return e.substr(0, t.length) === t;
5109
5134
  }
5110
- function qf(e, t, r) {
5135
+ function Vf(e, t, r) {
5111
5136
  return (r === void 0 || r > e.length) && (r = e.length), e.substring(r - t.length, r) === t;
5112
5137
  }
5113
- function Vf(e, t, r) {
5138
+ function Kf(e, t, r) {
5114
5139
  return typeof r != "number" && (r = 0), r + t.length > e.length ? !1 : e.indexOf(t, r) !== -1;
5115
5140
  }
5116
5141
  Re("ERR_INVALID_OPT_VALUE", function(e, t) {
@@ -5118,12 +5143,12 @@ Re("ERR_INVALID_OPT_VALUE", function(e, t) {
5118
5143
  }, TypeError);
5119
5144
  Re("ERR_INVALID_ARG_TYPE", function(e, t, r) {
5120
5145
  var n;
5121
- typeof t == "string" && Wf(t, "not ") ? (n = "must not be", t = t.replace(/^not /, "")) : n = "must be";
5146
+ typeof t == "string" && qf(t, "not ") ? (n = "must not be", t = t.replace(/^not /, "")) : n = "must be";
5122
5147
  var i;
5123
- if (qf(e, " argument"))
5148
+ if (Vf(e, " argument"))
5124
5149
  i = "The ".concat(e, " ").concat(n, " ").concat(si(t, "type"));
5125
5150
  else {
5126
- var a = Vf(e, ".") ? "property" : "argument";
5151
+ var a = Kf(e, ".") ? "property" : "argument";
5127
5152
  i = 'The "'.concat(e, '" ').concat(a, " ").concat(n, " ").concat(si(t, "type"));
5128
5153
  }
5129
5154
  return i += ". Received type ".concat(typeof r), i;
@@ -5144,26 +5169,26 @@ Re("ERR_UNKNOWN_ENCODING", function(e) {
5144
5169
  return "Unknown encoding: " + e;
5145
5170
  }, TypeError);
5146
5171
  Re("ERR_STREAM_UNSHIFT_AFTER_END_EVENT", "stream.unshift() after end event");
5147
- ht.codes = ws;
5148
- var Kf = ht.codes.ERR_INVALID_OPT_VALUE;
5149
- function Yf(e, t, r) {
5172
+ dt.codes = ws;
5173
+ var Yf = dt.codes.ERR_INVALID_OPT_VALUE;
5174
+ function Jf(e, t, r) {
5150
5175
  return e.highWaterMark != null ? e.highWaterMark : t ? e[r] : null;
5151
5176
  }
5152
- function Jf(e, t, r, n) {
5153
- var i = Yf(t, n, r);
5177
+ function Xf(e, t, r, n) {
5178
+ var i = Jf(t, n, r);
5154
5179
  if (i != null) {
5155
5180
  if (!(isFinite(i) && Math.floor(i) === i) || i < 0) {
5156
5181
  var a = n ? r : "highWaterMark";
5157
- throw new Kf(a, i);
5182
+ throw new Yf(a, i);
5158
5183
  }
5159
5184
  return Math.floor(i);
5160
5185
  }
5161
5186
  return e.objectMode ? 16 : 16 * 1024;
5162
5187
  }
5163
5188
  var xs = {
5164
- getHighWaterMark: Jf
5165
- }, Xf = Qf;
5166
- function Qf(e, t) {
5189
+ getHighWaterMark: Xf
5190
+ }, Qf = Zf;
5191
+ function Zf(e, t) {
5167
5192
  if (Vr("noDeprecation"))
5168
5193
  return e;
5169
5194
  var r = !1;
@@ -5199,7 +5224,7 @@ function vs() {
5199
5224
  var t;
5200
5225
  M.WritableState = S;
5201
5226
  var r = {
5202
- deprecate: Xf
5227
+ deprecate: Qf
5203
5228
  }, n = ms, i = Pt.Buffer, a = (typeof Xe < "u" ? Xe : typeof window < "u" ? window : typeof self < "u" ? self : {}).Uint8Array || function() {
5204
5229
  };
5205
5230
  function f(w) {
@@ -5208,7 +5233,7 @@ function vs() {
5208
5233
  function u(w) {
5209
5234
  return i.isBuffer(w) || w instanceof a;
5210
5235
  }
5211
- var l = _s, b = xs, m = b.getHighWaterMark, g = ht.codes, v = g.ERR_INVALID_ARG_TYPE, I = g.ERR_METHOD_NOT_IMPLEMENTED, B = g.ERR_MULTIPLE_CALLBACK, P = g.ERR_STREAM_CANNOT_PIPE, T = g.ERR_STREAM_DESTROYED, C = g.ERR_STREAM_NULL_VALUES, F = g.ERR_STREAM_WRITE_AFTER_END, L = g.ERR_UNKNOWN_ENCODING, k = l.errorOrDestroy;
5236
+ var l = _s, b = xs, m = b.getHighWaterMark, g = dt.codes, v = g.ERR_INVALID_ARG_TYPE, A = g.ERR_METHOD_NOT_IMPLEMENTED, B = g.ERR_MULTIPLE_CALLBACK, P = g.ERR_STREAM_CANNOT_PIPE, T = g.ERR_STREAM_DESTROYED, C = g.ERR_STREAM_NULL_VALUES, F = g.ERR_STREAM_WRITE_AFTER_END, L = g.ERR_UNKNOWN_ENCODING, k = l.errorOrDestroy;
5212
5237
  de(M, n);
5213
5238
  function O() {
5214
5239
  }
@@ -5295,8 +5320,8 @@ function vs() {
5295
5320
  var p = Te(_, D, G);
5296
5321
  D !== p && (R = !0, G = "buffer", D = p);
5297
5322
  }
5298
- var A = _.objectMode ? 1 : D.length;
5299
- _.length += A;
5323
+ var I = _.objectMode ? 1 : D.length;
5324
+ _.length += I;
5300
5325
  var U = _.length < _.highWaterMark;
5301
5326
  if (U || (_.needDrain = !0), _.writing || _.corked) {
5302
5327
  var Z = _.lastBufferedRequest;
@@ -5308,7 +5333,7 @@ function vs() {
5308
5333
  next: null
5309
5334
  }, Z ? Z.next = _.lastBufferedRequest : _.bufferedRequest = _.lastBufferedRequest, _.bufferedRequestCount += 1;
5310
5335
  } else
5311
- ae(w, _, !1, A, D, G, d);
5336
+ ae(w, _, !1, I, D, G, d);
5312
5337
  return U;
5313
5338
  }
5314
5339
  function ae(w, _, R, D, G, d, p) {
@@ -5341,9 +5366,9 @@ function vs() {
5341
5366
  if (w._writev && R && R.next) {
5342
5367
  var D = _.bufferedRequestCount, G = new Array(D), d = _.corkedRequestsFree;
5343
5368
  d.entry = R;
5344
- for (var p = 0, A = !0; R; )
5345
- G[p] = R, R.isBuf || (A = !1), R = R.next, p += 1;
5346
- G.allBuffers = A, ae(w, _, !0, _.length, G, "", d.finish), _.pendingcb++, _.lastBufferedRequest = null, d.next ? (_.corkedRequestsFree = d.next, d.next = null) : _.corkedRequestsFree = new e(_), _.bufferedRequestCount = 0;
5369
+ for (var p = 0, I = !0; R; )
5370
+ G[p] = R, R.isBuf || (I = !1), R = R.next, p += 1;
5371
+ G.allBuffers = I, ae(w, _, !0, _.length, G, "", d.finish), _.pendingcb++, _.lastBufferedRequest = null, d.next ? (_.corkedRequestsFree = d.next, d.next = null) : _.corkedRequestsFree = new e(_), _.bufferedRequestCount = 0;
5347
5372
  } else {
5348
5373
  for (; R; ) {
5349
5374
  var U = R.chunk, Z = R.encoding, j = R.callback, V = _.objectMode ? 1 : U.length;
@@ -5355,7 +5380,7 @@ function vs() {
5355
5380
  _.bufferedRequest = R, _.bufferProcessing = !1;
5356
5381
  }
5357
5382
  M.prototype._write = function(w, _, R) {
5358
- R(new I("_write()"));
5383
+ R(new A("_write()"));
5359
5384
  }, M.prototype._writev = null, M.prototype.end = function(w, _, R) {
5360
5385
  var D = this._writableState;
5361
5386
  return typeof w == "function" ? (R = w, w = null, _ = null) : typeof _ == "function" && (R = _, _ = null), w != null && this.write(w, _), D.corked && (D.corked = 1, this.uncork()), D.ending || We(this, D, R), this;
@@ -5495,7 +5520,7 @@ var xr = {}, Cn = xe.Buffer, fi = Cn.isEncoding || function(e) {
5495
5520
  return !1;
5496
5521
  }
5497
5522
  };
5498
- function Zf(e) {
5523
+ function eu(e) {
5499
5524
  if (!e) return "utf8";
5500
5525
  for (var t; ; )
5501
5526
  switch (e) {
@@ -5519,27 +5544,27 @@ function Zf(e) {
5519
5544
  e = ("" + e).toLowerCase(), t = !0;
5520
5545
  }
5521
5546
  }
5522
- function eu(e) {
5523
- var t = Zf(e);
5547
+ function tu(e) {
5548
+ var t = eu(e);
5524
5549
  if (typeof t != "string" && (Cn.isEncoding === fi || !fi(e))) throw new Error("Unknown encoding: " + e);
5525
5550
  return t || e;
5526
5551
  }
5527
5552
  xr.StringDecoder = Qt;
5528
5553
  function Qt(e) {
5529
- this.encoding = eu(e);
5554
+ this.encoding = tu(e);
5530
5555
  var t;
5531
5556
  switch (this.encoding) {
5532
5557
  case "utf16le":
5533
- this.text = ou, this.end = au, t = 4;
5558
+ this.text = au, this.end = fu, t = 4;
5534
5559
  break;
5535
5560
  case "utf8":
5536
- this.fillLast = nu, t = 4;
5561
+ this.fillLast = iu, t = 4;
5537
5562
  break;
5538
5563
  case "base64":
5539
- this.text = fu, this.end = uu, t = 3;
5564
+ this.text = uu, this.end = cu, t = 3;
5540
5565
  break;
5541
5566
  default:
5542
- this.write = cu, this.end = lu;
5567
+ this.write = lu, this.end = hu;
5543
5568
  return;
5544
5569
  }
5545
5570
  this.lastNeed = 0, this.lastTotal = 0, this.lastChar = Cn.allocUnsafe(t);
@@ -5554,8 +5579,8 @@ Qt.prototype.write = function(e) {
5554
5579
  r = 0;
5555
5580
  return r < e.length ? t ? t + this.text(e, r) : this.text(e, r) : t || "";
5556
5581
  };
5557
- Qt.prototype.end = su;
5558
- Qt.prototype.text = iu;
5582
+ Qt.prototype.end = ou;
5583
+ Qt.prototype.text = su;
5559
5584
  Qt.prototype.fillLast = function(e) {
5560
5585
  if (this.lastNeed <= e.length)
5561
5586
  return e.copy(this.lastChar, this.lastTotal - this.lastNeed, 0, this.lastNeed), this.lastChar.toString(this.encoding, 0, this.lastTotal);
@@ -5564,13 +5589,13 @@ Qt.prototype.fillLast = function(e) {
5564
5589
  function Jr(e) {
5565
5590
  return e <= 127 ? 0 : e >> 5 === 6 ? 2 : e >> 4 === 14 ? 3 : e >> 3 === 30 ? 4 : e >> 6 === 2 ? -1 : -2;
5566
5591
  }
5567
- function tu(e, t, r) {
5592
+ function ru(e, t, r) {
5568
5593
  var n = t.length - 1;
5569
5594
  if (n < r) return 0;
5570
5595
  var i = Jr(t[n]);
5571
5596
  return i >= 0 ? (i > 0 && (e.lastNeed = i - 1), i) : --n < r || i === -2 ? 0 : (i = Jr(t[n]), i >= 0 ? (i > 0 && (e.lastNeed = i - 2), i) : --n < r || i === -2 ? 0 : (i = Jr(t[n]), i >= 0 ? (i > 0 && (i === 2 ? i = 0 : e.lastNeed = i - 3), i) : 0));
5572
5597
  }
5573
- function ru(e, t, r) {
5598
+ function nu(e, t, r) {
5574
5599
  if ((t[0] & 192) !== 128)
5575
5600
  return e.lastNeed = 0, "�";
5576
5601
  if (e.lastNeed > 1 && t.length > 1) {
@@ -5580,25 +5605,25 @@ function ru(e, t, r) {
5580
5605
  return e.lastNeed = 2, "�";
5581
5606
  }
5582
5607
  }
5583
- function nu(e) {
5584
- var t = this.lastTotal - this.lastNeed, r = ru(this, e);
5608
+ function iu(e) {
5609
+ var t = this.lastTotal - this.lastNeed, r = nu(this, e);
5585
5610
  if (r !== void 0) return r;
5586
5611
  if (this.lastNeed <= e.length)
5587
5612
  return e.copy(this.lastChar, t, 0, this.lastNeed), this.lastChar.toString(this.encoding, 0, this.lastTotal);
5588
5613
  e.copy(this.lastChar, t, 0, e.length), this.lastNeed -= e.length;
5589
5614
  }
5590
- function iu(e, t) {
5591
- var r = tu(this, e, t);
5615
+ function su(e, t) {
5616
+ var r = ru(this, e, t);
5592
5617
  if (!this.lastNeed) return e.toString("utf8", t);
5593
5618
  this.lastTotal = r;
5594
5619
  var n = e.length - (r - this.lastNeed);
5595
5620
  return e.copy(this.lastChar, 0, n), e.toString("utf8", t, n);
5596
5621
  }
5597
- function su(e) {
5622
+ function ou(e) {
5598
5623
  var t = e && e.length ? this.write(e) : "";
5599
5624
  return this.lastNeed ? t + "�" : t;
5600
5625
  }
5601
- function ou(e, t) {
5626
+ function au(e, t) {
5602
5627
  if ((e.length - t) % 2 === 0) {
5603
5628
  var r = e.toString("utf16le", t);
5604
5629
  if (r) {
@@ -5610,7 +5635,7 @@ function ou(e, t) {
5610
5635
  }
5611
5636
  return this.lastNeed = 1, this.lastTotal = 2, this.lastChar[0] = e[e.length - 1], e.toString("utf16le", t, e.length - 1);
5612
5637
  }
5613
- function au(e) {
5638
+ function fu(e) {
5614
5639
  var t = e && e.length ? this.write(e) : "";
5615
5640
  if (this.lastNeed) {
5616
5641
  var r = this.lastTotal - this.lastNeed;
@@ -5618,22 +5643,22 @@ function au(e) {
5618
5643
  }
5619
5644
  return t;
5620
5645
  }
5621
- function fu(e, t) {
5646
+ function uu(e, t) {
5622
5647
  var r = (e.length - t) % 3;
5623
5648
  return r === 0 ? e.toString("base64", t) : (this.lastNeed = 3 - r, this.lastTotal = 3, r === 1 ? this.lastChar[0] = e[e.length - 1] : (this.lastChar[0] = e[e.length - 2], this.lastChar[1] = e[e.length - 1]), e.toString("base64", t, e.length - r));
5624
5649
  }
5625
- function uu(e) {
5650
+ function cu(e) {
5626
5651
  var t = e && e.length ? this.write(e) : "";
5627
5652
  return this.lastNeed ? t + this.lastChar.toString("base64", 0, 3 - this.lastNeed) : t;
5628
5653
  }
5629
- function cu(e) {
5654
+ function lu(e) {
5630
5655
  return e.toString(this.encoding);
5631
5656
  }
5632
- function lu(e) {
5657
+ function hu(e) {
5633
5658
  return e && e.length ? this.write(e) : "";
5634
5659
  }
5635
- var ui = ht.codes.ERR_STREAM_PREMATURE_CLOSE;
5636
- function hu(e) {
5660
+ var ui = dt.codes.ERR_STREAM_PREMATURE_CLOSE;
5661
+ function du(e) {
5637
5662
  var t = !1;
5638
5663
  return function() {
5639
5664
  if (!t) {
@@ -5644,14 +5669,14 @@ function hu(e) {
5644
5669
  }
5645
5670
  };
5646
5671
  }
5647
- function du() {
5672
+ function pu() {
5648
5673
  }
5649
- function pu(e) {
5674
+ function bu(e) {
5650
5675
  return e.setHeader && typeof e.abort == "function";
5651
5676
  }
5652
5677
  function Es(e, t, r) {
5653
5678
  if (typeof t == "function") return Es(e, null, t);
5654
- t || (t = {}), r = hu(r || du);
5679
+ t || (t = {}), r = du(r || pu);
5655
5680
  var n = t.readable || t.readable !== !1 && e.readable, i = t.writable || t.writable !== !1 && e.writable, a = function() {
5656
5681
  e.writable || u();
5657
5682
  }, f = e._writableState && e._writableState.finished, u = function() {
@@ -5669,12 +5694,12 @@ function Es(e, t, r) {
5669
5694
  }, v = function() {
5670
5695
  e.req.on("finish", u);
5671
5696
  };
5672
- return pu(e) ? (e.on("complete", u), e.on("abort", g), e.req ? v() : e.on("request", v)) : i && !e._writableState && (e.on("end", a), e.on("close", a)), e.on("end", b), e.on("finish", u), t.error !== !1 && e.on("error", m), e.on("close", g), function() {
5697
+ return bu(e) ? (e.on("complete", u), e.on("abort", g), e.req ? v() : e.on("request", v)) : i && !e._writableState && (e.on("end", a), e.on("close", a)), e.on("end", b), e.on("finish", u), t.error !== !1 && e.on("error", m), e.on("close", g), function() {
5673
5698
  e.removeListener("complete", u), e.removeListener("abort", g), e.removeListener("request", v), e.req && e.req.removeListener("finish", u), e.removeListener("end", a), e.removeListener("close", a), e.removeListener("finish", u), e.removeListener("end", b), e.removeListener("error", m), e.removeListener("close", g);
5674
5699
  };
5675
5700
  }
5676
5701
  var kn = Es, Xr, ci;
5677
- function bu() {
5702
+ function yu() {
5678
5703
  if (ci) return Xr;
5679
5704
  ci = 1;
5680
5705
  var e;
@@ -5702,7 +5727,7 @@ function bu() {
5702
5727
  done: k
5703
5728
  };
5704
5729
  }
5705
- function I(L) {
5730
+ function A(L) {
5706
5731
  var k = L[a];
5707
5732
  if (k !== null) {
5708
5733
  var O = L[g].read();
@@ -5710,7 +5735,7 @@ function bu() {
5710
5735
  }
5711
5736
  }
5712
5737
  function B(L) {
5713
- process.nextTick(I, L);
5738
+ process.nextTick(A, L);
5714
5739
  }
5715
5740
  function P(L, k) {
5716
5741
  return function(O, S) {
@@ -5800,7 +5825,7 @@ function bu() {
5800
5825
  return Xr = F, Xr;
5801
5826
  }
5802
5827
  var Qr, li;
5803
- function yu() {
5828
+ function gu() {
5804
5829
  return li || (li = 1, Qr = function() {
5805
5830
  throw new Error("Readable.from is not available in the browser");
5806
5831
  }), Qr;
@@ -5811,8 +5836,8 @@ function Bs() {
5811
5836
  hi = 1, Zr = $;
5812
5837
  var e;
5813
5838
  $.ReadableState = M, gs.EventEmitter;
5814
- var t = function(p, A) {
5815
- return p.listeners(A).length;
5839
+ var t = function(p, I) {
5840
+ return p.listeners(I).length;
5816
5841
  }, r = ms, n = Pt.Buffer, i = (typeof Xe < "u" ? Xe : typeof window < "u" ? window : typeof self < "u" ? self : {}).Uint8Array || function() {
5817
5842
  };
5818
5843
  function a(d) {
@@ -5824,15 +5849,15 @@ function Bs() {
5824
5849
  var u = Pn, l;
5825
5850
  u && u.debuglog ? l = u.debuglog("stream") : l = function() {
5826
5851
  };
5827
- var b = $f(), m = _s, g = xs, v = g.getHighWaterMark, I = ht.codes, B = I.ERR_INVALID_ARG_TYPE, P = I.ERR_STREAM_PUSH_AFTER_EOF, T = I.ERR_METHOD_NOT_IMPLEMENTED, C = I.ERR_STREAM_UNSHIFT_AFTER_END_EVENT, F, L, k;
5852
+ var b = Hf(), m = _s, g = xs, v = g.getHighWaterMark, A = dt.codes, B = A.ERR_INVALID_ARG_TYPE, P = A.ERR_STREAM_PUSH_AFTER_EOF, T = A.ERR_METHOD_NOT_IMPLEMENTED, C = A.ERR_STREAM_UNSHIFT_AFTER_END_EVENT, F, L, k;
5828
5853
  de($, r);
5829
5854
  var O = m.errorOrDestroy, S = ["error", "close", "destroy", "pause", "resume"];
5830
- function z(d, p, A) {
5831
- if (typeof d.prependListener == "function") return d.prependListener(p, A);
5832
- !d._events || !d._events[p] ? d.on(p, A) : Array.isArray(d._events[p]) ? d._events[p].unshift(A) : d._events[p] = [A, d._events[p]];
5855
+ function z(d, p, I) {
5856
+ if (typeof d.prependListener == "function") return d.prependListener(p, I);
5857
+ !d._events || !d._events[p] ? d.on(p, I) : Array.isArray(d._events[p]) ? d._events[p].unshift(I) : d._events[p] = [I, d._events[p]];
5833
5858
  }
5834
- function M(d, p, A) {
5835
- e = e || It(), d = d || {}, typeof A != "boolean" && (A = p instanceof e), this.objectMode = !!d.objectMode, A && (this.objectMode = this.objectMode || !!d.readableObjectMode), this.highWaterMark = v(this, d, "readableHighWaterMark", A), this.buffer = new b(), this.length = 0, this.pipes = null, this.pipesCount = 0, this.flowing = null, this.ended = !1, this.endEmitted = !1, this.reading = !1, this.sync = !0, this.needReadable = !1, this.emittedReadable = !1, this.readableListening = !1, this.resumeScheduled = !1, this.paused = !0, this.emitClose = d.emitClose !== !1, this.autoDestroy = !!d.autoDestroy, this.destroyed = !1, this.defaultEncoding = d.defaultEncoding || "utf8", this.awaitDrain = 0, this.readingMore = !1, this.decoder = null, this.encoding = null, d.encoding && (F || (F = xr.StringDecoder), this.decoder = new F(d.encoding), this.encoding = d.encoding);
5859
+ function M(d, p, I) {
5860
+ e = e || It(), d = d || {}, typeof I != "boolean" && (I = p instanceof e), this.objectMode = !!d.objectMode, I && (this.objectMode = this.objectMode || !!d.readableObjectMode), this.highWaterMark = v(this, d, "readableHighWaterMark", I), this.buffer = new b(), this.length = 0, this.pipes = null, this.pipesCount = 0, this.flowing = null, this.ended = !1, this.endEmitted = !1, this.reading = !1, this.sync = !0, this.needReadable = !1, this.emittedReadable = !1, this.readableListening = !1, this.resumeScheduled = !1, this.paused = !0, this.emitClose = d.emitClose !== !1, this.autoDestroy = !!d.autoDestroy, this.destroyed = !1, this.defaultEncoding = d.defaultEncoding || "utf8", this.awaitDrain = 0, this.readingMore = !1, this.decoder = null, this.encoding = null, d.encoding && (F || (F = xr.StringDecoder), this.decoder = new F(d.encoding), this.encoding = d.encoding);
5836
5861
  }
5837
5862
  function $(d) {
5838
5863
  if (e = e || It(), !(this instanceof $)) return new $(d);
@@ -5853,12 +5878,12 @@ function Bs() {
5853
5878
  }), $.prototype.destroy = m.destroy, $.prototype._undestroy = m.undestroy, $.prototype._destroy = function(d, p) {
5854
5879
  p(d);
5855
5880
  }, $.prototype.push = function(d, p) {
5856
- var A = this._readableState, U;
5857
- return A.objectMode ? U = !0 : typeof d == "string" && (p = p || A.defaultEncoding, p !== A.encoding && (d = n.from(d, p), p = ""), U = !0), se(this, d, p, !1, U);
5881
+ var I = this._readableState, U;
5882
+ return I.objectMode ? U = !0 : typeof d == "string" && (p = p || I.defaultEncoding, p !== I.encoding && (d = n.from(d, p), p = ""), U = !0), se(this, d, p, !1, U);
5858
5883
  }, $.prototype.unshift = function(d) {
5859
5884
  return se(this, d, null, !0, !1);
5860
5885
  };
5861
- function se(d, p, A, U, Z) {
5886
+ function se(d, p, I, U, Z) {
5862
5887
  l("readableAddChunk", p);
5863
5888
  var j = d._readableState;
5864
5889
  if (p === null)
@@ -5875,18 +5900,18 @@ function Bs() {
5875
5900
  else {
5876
5901
  if (j.destroyed)
5877
5902
  return !1;
5878
- j.reading = !1, j.decoder && !A ? (p = j.decoder.write(p), j.objectMode || p.length !== 0 ? Te(d, j, p, !1) : Ce(d, j)) : Te(d, j, p, !1);
5903
+ j.reading = !1, j.decoder && !I ? (p = j.decoder.write(p), j.objectMode || p.length !== 0 ? Te(d, j, p, !1) : Ce(d, j)) : Te(d, j, p, !1);
5879
5904
  }
5880
5905
  else U || (j.reading = !1, Ce(d, j));
5881
5906
  }
5882
5907
  return !j.ended && (j.length < j.highWaterMark || j.length === 0);
5883
5908
  }
5884
- function Te(d, p, A, U) {
5885
- p.flowing && p.length === 0 && !p.sync ? (p.awaitDrain = 0, d.emit("data", A)) : (p.length += p.objectMode ? 1 : A.length, U ? p.buffer.unshift(A) : p.buffer.push(A), p.needReadable && Pe(d)), Ce(d, p);
5909
+ function Te(d, p, I, U) {
5910
+ p.flowing && p.length === 0 && !p.sync ? (p.awaitDrain = 0, d.emit("data", I)) : (p.length += p.objectMode ? 1 : I.length, U ? p.buffer.unshift(I) : p.buffer.push(I), p.needReadable && Pe(d)), Ce(d, p);
5886
5911
  }
5887
5912
  function ze(d, p) {
5888
- var A;
5889
- return !f(p) && typeof p != "string" && p !== void 0 && !d.objectMode && (A = new B("chunk", ["string", "Buffer", "Uint8Array"], p)), A;
5913
+ var I;
5914
+ return !f(p) && typeof p != "string" && p !== void 0 && !d.objectMode && (I = new B("chunk", ["string", "Buffer", "Uint8Array"], p)), I;
5890
5915
  }
5891
5916
  $.prototype.isPaused = function() {
5892
5917
  return this._readableState.flowing === !1;
@@ -5894,8 +5919,8 @@ function Bs() {
5894
5919
  F || (F = xr.StringDecoder);
5895
5920
  var p = new F(d);
5896
5921
  this._readableState.decoder = p, this._readableState.encoding = this._readableState.decoder.encoding;
5897
- for (var A = this._readableState.buffer.head, U = ""; A !== null; )
5898
- U += p.write(A.data), A = A.next;
5922
+ for (var I = this._readableState.buffer.head, U = ""; I !== null; )
5923
+ U += p.write(I.data), I = I.next;
5899
5924
  return this._readableState.buffer.clear(), U !== "" && this._readableState.buffer.push(U), this._readableState.length = U.length, this;
5900
5925
  };
5901
5926
  var ae = 1073741824;
@@ -5907,21 +5932,21 @@ function Bs() {
5907
5932
  }
5908
5933
  $.prototype.read = function(d) {
5909
5934
  l("read", d), d = parseInt(d, 10);
5910
- var p = this._readableState, A = d;
5935
+ var p = this._readableState, I = d;
5911
5936
  if (d !== 0 && (p.emittedReadable = !1), d === 0 && p.needReadable && ((p.highWaterMark !== 0 ? p.length >= p.highWaterMark : p.length > 0) || p.ended))
5912
5937
  return l("read: emitReadable", p.length, p.ended), p.length === 0 && p.ended ? R(this) : Pe(this), null;
5913
5938
  if (d = Ee(d, p), d === 0 && p.ended)
5914
5939
  return p.length === 0 && R(this), null;
5915
5940
  var U = p.needReadable;
5916
- l("need readable", U), (p.length === 0 || p.length - d < p.highWaterMark) && (U = !0, l("length less than watermark", U)), p.ended || p.reading ? (U = !1, l("reading or ended", U)) : U && (l("do read"), p.reading = !0, p.sync = !0, p.length === 0 && (p.needReadable = !0), this._read(p.highWaterMark), p.sync = !1, p.reading || (d = Ee(A, p)));
5941
+ l("need readable", U), (p.length === 0 || p.length - d < p.highWaterMark) && (U = !0, l("length less than watermark", U)), p.ended || p.reading ? (U = !1, l("reading or ended", U)) : U && (l("do read"), p.reading = !0, p.sync = !0, p.length === 0 && (p.needReadable = !0), this._read(p.highWaterMark), p.sync = !1, p.reading || (d = Ee(I, p)));
5917
5942
  var Z;
5918
- return d > 0 ? Z = _(d, p) : Z = null, Z === null ? (p.needReadable = p.length <= p.highWaterMark, d = 0) : (p.length -= d, p.awaitDrain = 0), p.length === 0 && (p.ended || (p.needReadable = !0), A !== d && p.ended && R(this)), Z !== null && this.emit("data", Z), Z;
5943
+ return d > 0 ? Z = _(d, p) : Z = null, Z === null ? (p.needReadable = p.length <= p.highWaterMark, d = 0) : (p.length -= d, p.awaitDrain = 0), p.length === 0 && (p.ended || (p.needReadable = !0), I !== d && p.ended && R(this)), Z !== null && this.emit("data", Z), Z;
5919
5944
  };
5920
5945
  function tt(d, p) {
5921
5946
  if (l("onEofChunk"), !p.ended) {
5922
5947
  if (p.decoder) {
5923
- var A = p.decoder.end();
5924
- A && A.length && (p.buffer.push(A), p.length += p.objectMode ? 1 : A.length);
5948
+ var I = p.decoder.end();
5949
+ I && I.length && (p.buffer.push(I), p.length += p.objectMode ? 1 : I.length);
5925
5950
  }
5926
5951
  p.ended = !0, p.sync ? Pe(d) : (p.needReadable = !1, p.emittedReadable || (p.emittedReadable = !0, Ge(d)));
5927
5952
  }
@@ -5939,8 +5964,8 @@ function Bs() {
5939
5964
  }
5940
5965
  function je(d, p) {
5941
5966
  for (; !p.reading && !p.ended && (p.length < p.highWaterMark || p.flowing && p.length === 0); ) {
5942
- var A = p.length;
5943
- if (l("maybeReadMore read 0"), d.read(0), A === p.length)
5967
+ var I = p.length;
5968
+ if (l("maybeReadMore read 0"), d.read(0), I === p.length)
5944
5969
  break;
5945
5970
  }
5946
5971
  p.readingMore = !1;
@@ -5948,7 +5973,7 @@ function Bs() {
5948
5973
  $.prototype._read = function(d) {
5949
5974
  O(this, new T("_read()"));
5950
5975
  }, $.prototype.pipe = function(d, p) {
5951
- var A = this, U = this._readableState;
5976
+ var I = this, U = this._readableState;
5952
5977
  switch (U.pipesCount) {
5953
5978
  case 0:
5954
5979
  U.pipes = d;
@@ -5962,55 +5987,55 @@ function Bs() {
5962
5987
  }
5963
5988
  U.pipesCount += 1, l("pipe count=%d opts=%j", U.pipesCount, p);
5964
5989
  var Z = (!p || p.end !== !1) && d !== process.stdout && d !== process.stderr, j = Z ? qe : nt;
5965
- U.endEmitted ? process.nextTick(j) : A.once("end", j), d.on("unpipe", V);
5990
+ U.endEmitted ? process.nextTick(j) : I.once("end", j), d.on("unpipe", V);
5966
5991
  function V(c, s) {
5967
- l("onunpipe"), c === A && s && s.hasUnpiped === !1 && (s.hasUnpiped = !0, bt());
5992
+ l("onunpipe"), c === I && s && s.hasUnpiped === !1 && (s.hasUnpiped = !0, yt());
5968
5993
  }
5969
5994
  function qe() {
5970
5995
  l("onend"), d.end();
5971
5996
  }
5972
- var pt = Q(A);
5973
- d.on("drain", pt);
5997
+ var bt = Q(I);
5998
+ d.on("drain", bt);
5974
5999
  var kt = !1;
5975
- function bt() {
5976
- l("cleanup"), d.removeListener("close", Lt), d.removeListener("finish", Ie), d.removeListener("drain", pt), d.removeListener("error", rt), d.removeListener("unpipe", V), A.removeListener("end", qe), A.removeListener("end", nt), A.removeListener("data", Se), kt = !0, U.awaitDrain && (!d._writableState || d._writableState.needDrain) && pt();
6000
+ function yt() {
6001
+ l("cleanup"), d.removeListener("close", Lt), d.removeListener("finish", Ae), d.removeListener("drain", bt), d.removeListener("error", rt), d.removeListener("unpipe", V), I.removeListener("end", qe), I.removeListener("end", nt), I.removeListener("data", Se), kt = !0, U.awaitDrain && (!d._writableState || d._writableState.needDrain) && bt();
5977
6002
  }
5978
- A.on("data", Se);
6003
+ I.on("data", Se);
5979
6004
  function Se(c) {
5980
6005
  l("ondata");
5981
6006
  var s = d.write(c);
5982
- l("dest.write", s), s === !1 && ((U.pipesCount === 1 && U.pipes === d || U.pipesCount > 1 && G(U.pipes, d) !== -1) && !kt && (l("false write response, pause", U.awaitDrain), U.awaitDrain++), A.pause());
6007
+ l("dest.write", s), s === !1 && ((U.pipesCount === 1 && U.pipes === d || U.pipesCount > 1 && G(U.pipes, d) !== -1) && !kt && (l("false write response, pause", U.awaitDrain), U.awaitDrain++), I.pause());
5983
6008
  }
5984
6009
  function rt(c) {
5985
6010
  l("onerror", c), nt(), d.removeListener("error", rt), t(d, "error") === 0 && O(d, c);
5986
6011
  }
5987
6012
  z(d, "error", rt);
5988
6013
  function Lt() {
5989
- d.removeListener("finish", Ie), nt();
6014
+ d.removeListener("finish", Ae), nt();
5990
6015
  }
5991
6016
  d.once("close", Lt);
5992
- function Ie() {
6017
+ function Ae() {
5993
6018
  l("onfinish"), d.removeListener("close", Lt), nt();
5994
6019
  }
5995
- d.once("finish", Ie);
6020
+ d.once("finish", Ae);
5996
6021
  function nt() {
5997
- l("unpipe"), A.unpipe(d);
6022
+ l("unpipe"), I.unpipe(d);
5998
6023
  }
5999
- return d.emit("pipe", A), U.flowing || (l("pipe resume"), A.resume()), d;
6024
+ return d.emit("pipe", I), U.flowing || (l("pipe resume"), I.resume()), d;
6000
6025
  };
6001
6026
  function Q(d) {
6002
6027
  return function() {
6003
- var A = d._readableState;
6004
- l("pipeOnDrain", A.awaitDrain), A.awaitDrain && A.awaitDrain--, A.awaitDrain === 0 && t(d, "data") && (A.flowing = !0, w(d));
6028
+ var I = d._readableState;
6029
+ l("pipeOnDrain", I.awaitDrain), I.awaitDrain && I.awaitDrain--, I.awaitDrain === 0 && t(d, "data") && (I.flowing = !0, w(d));
6005
6030
  };
6006
6031
  }
6007
6032
  $.prototype.unpipe = function(d) {
6008
- var p = this._readableState, A = {
6033
+ var p = this._readableState, I = {
6009
6034
  hasUnpiped: !1
6010
6035
  };
6011
6036
  if (p.pipesCount === 0) return this;
6012
6037
  if (p.pipesCount === 1)
6013
- return d && d !== p.pipes ? this : (d || (d = p.pipes), p.pipes = null, p.pipesCount = 0, p.flowing = !1, d && d.emit("unpipe", this, A), this);
6038
+ return d && d !== p.pipes ? this : (d || (d = p.pipes), p.pipes = null, p.pipesCount = 0, p.flowing = !1, d && d.emit("unpipe", this, I), this);
6014
6039
  if (!d) {
6015
6040
  var U = p.pipes, Z = p.pipesCount;
6016
6041
  p.pipes = null, p.pipesCount = 0, p.flowing = !1;
@@ -6020,13 +6045,13 @@ function Bs() {
6020
6045
  return this;
6021
6046
  }
6022
6047
  var V = G(p.pipes, d);
6023
- return V === -1 ? this : (p.pipes.splice(V, 1), p.pipesCount -= 1, p.pipesCount === 1 && (p.pipes = p.pipes[0]), d.emit("unpipe", this, A), this);
6048
+ return V === -1 ? this : (p.pipes.splice(V, 1), p.pipesCount -= 1, p.pipesCount === 1 && (p.pipes = p.pipes[0]), d.emit("unpipe", this, I), this);
6024
6049
  }, $.prototype.on = function(d, p) {
6025
- var A = r.prototype.on.call(this, d, p), U = this._readableState;
6026
- return d === "data" ? (U.readableListening = this.listenerCount("readable") > 0, U.flowing !== !1 && this.resume()) : d === "readable" && !U.endEmitted && !U.readableListening && (U.readableListening = U.needReadable = !0, U.flowing = !1, U.emittedReadable = !1, l("on readable", U.length, U.reading), U.length ? Pe(this) : U.reading || process.nextTick(Be, this)), A;
6050
+ var I = r.prototype.on.call(this, d, p), U = this._readableState;
6051
+ return d === "data" ? (U.readableListening = this.listenerCount("readable") > 0, U.flowing !== !1 && this.resume()) : d === "readable" && !U.endEmitted && !U.readableListening && (U.readableListening = U.needReadable = !0, U.flowing = !1, U.emittedReadable = !1, l("on readable", U.length, U.reading), U.length ? Pe(this) : U.reading || process.nextTick(Be, this)), I;
6027
6052
  }, $.prototype.addListener = $.prototype.on, $.prototype.removeListener = function(d, p) {
6028
- var A = r.prototype.removeListener.call(this, d, p);
6029
- return d === "readable" && process.nextTick(oe, this), A;
6053
+ var I = r.prototype.removeListener.call(this, d, p);
6054
+ return d === "readable" && process.nextTick(oe, this), I;
6030
6055
  }, $.prototype.removeAllListeners = function(d) {
6031
6056
  var p = r.prototype.removeAllListeners.apply(this, arguments);
6032
6057
  return (d === "readable" || d === void 0) && process.nextTick(oe, this), p;
@@ -6056,15 +6081,15 @@ function Bs() {
6056
6081
  for (l("flow", p.flowing); p.flowing && d.read() !== null; ) ;
6057
6082
  }
6058
6083
  $.prototype.wrap = function(d) {
6059
- var p = this, A = this._readableState, U = !1;
6084
+ var p = this, I = this._readableState, U = !1;
6060
6085
  d.on("end", function() {
6061
- if (l("wrapped end"), A.decoder && !A.ended) {
6062
- var V = A.decoder.end();
6086
+ if (l("wrapped end"), I.decoder && !I.ended) {
6087
+ var V = I.decoder.end();
6063
6088
  V && V.length && p.push(V);
6064
6089
  }
6065
6090
  p.push(null);
6066
6091
  }), d.on("data", function(V) {
6067
- if (l("wrapped data"), A.decoder && (V = A.decoder.write(V)), !(A.objectMode && V == null) && !(!A.objectMode && (!V || !V.length))) {
6092
+ if (l("wrapped data"), I.decoder && (V = I.decoder.write(V)), !(I.objectMode && V == null) && !(!I.objectMode && (!V || !V.length))) {
6068
6093
  var qe = p.push(V);
6069
6094
  qe || (U = !0, d.pause());
6070
6095
  }
@@ -6081,7 +6106,7 @@ function Bs() {
6081
6106
  l("wrapped _read", V), U && (U = !1, d.resume());
6082
6107
  }, this;
6083
6108
  }, typeof Symbol == "function" && ($.prototype[Symbol.asyncIterator] = function() {
6084
- return L === void 0 && (L = bu()), L(this);
6109
+ return L === void 0 && (L = yu()), L(this);
6085
6110
  }), Object.defineProperty($.prototype, "readableHighWaterMark", {
6086
6111
  // making it explicit this property is not enumerable
6087
6112
  // because otherwise some prototype manipulation in
@@ -6120,8 +6145,8 @@ function Bs() {
6120
6145
  });
6121
6146
  function _(d, p) {
6122
6147
  if (p.length === 0) return null;
6123
- var A;
6124
- return p.objectMode ? A = p.buffer.shift() : !d || d >= p.length ? (p.decoder ? A = p.buffer.join("") : p.buffer.length === 1 ? A = p.buffer.first() : A = p.buffer.concat(p.length), p.buffer.clear()) : A = p.buffer.consume(d, p.decoder), A;
6148
+ var I;
6149
+ return p.objectMode ? I = p.buffer.shift() : !d || d >= p.length ? (p.decoder ? I = p.buffer.join("") : p.buffer.length === 1 ? I = p.buffer.first() : I = p.buffer.concat(p.length), p.buffer.clear()) : I = p.buffer.consume(d, p.decoder), I;
6125
6150
  }
6126
6151
  function R(d) {
6127
6152
  var p = d._readableState;
@@ -6129,28 +6154,28 @@ function Bs() {
6129
6154
  }
6130
6155
  function D(d, p) {
6131
6156
  if (l("endReadableNT", d.endEmitted, d.length), !d.endEmitted && d.length === 0 && (d.endEmitted = !0, p.readable = !1, p.emit("end"), d.autoDestroy)) {
6132
- var A = p._writableState;
6133
- (!A || A.autoDestroy && A.finished) && p.destroy();
6157
+ var I = p._writableState;
6158
+ (!I || I.autoDestroy && I.finished) && p.destroy();
6134
6159
  }
6135
6160
  }
6136
6161
  typeof Symbol == "function" && ($.from = function(d, p) {
6137
- return k === void 0 && (k = yu()), k($, d, p);
6162
+ return k === void 0 && (k = gu()), k($, d, p);
6138
6163
  });
6139
6164
  function G(d, p) {
6140
- for (var A = 0, U = d.length; A < U; A++)
6141
- if (d[A] === p) return A;
6165
+ for (var I = 0, U = d.length; I < U; I++)
6166
+ if (d[I] === p) return I;
6142
6167
  return -1;
6143
6168
  }
6144
6169
  return Zr;
6145
6170
  }
6146
- var Ss = He, Tr = ht.codes, gu = Tr.ERR_METHOD_NOT_IMPLEMENTED, mu = Tr.ERR_MULTIPLE_CALLBACK, _u = Tr.ERR_TRANSFORM_ALREADY_TRANSFORMING, wu = Tr.ERR_TRANSFORM_WITH_LENGTH_0, Pr = It();
6171
+ var Ss = He, Tr = dt.codes, mu = Tr.ERR_METHOD_NOT_IMPLEMENTED, _u = Tr.ERR_MULTIPLE_CALLBACK, wu = Tr.ERR_TRANSFORM_ALREADY_TRANSFORMING, xu = Tr.ERR_TRANSFORM_WITH_LENGTH_0, Pr = It();
6147
6172
  de(He, Pr);
6148
- function xu(e, t) {
6173
+ function vu(e, t) {
6149
6174
  var r = this._transformState;
6150
6175
  r.transforming = !1;
6151
6176
  var n = r.writecb;
6152
6177
  if (n === null)
6153
- return this.emit("error", new mu());
6178
+ return this.emit("error", new _u());
6154
6179
  r.writechunk = null, r.writecb = null, t != null && this.push(t), n(e);
6155
6180
  var i = this._readableState;
6156
6181
  i.reading = !1, (i.needReadable || i.length < i.highWaterMark) && this._read(i.highWaterMark);
@@ -6158,15 +6183,15 @@ function xu(e, t) {
6158
6183
  function He(e) {
6159
6184
  if (!(this instanceof He)) return new He(e);
6160
6185
  Pr.call(this, e), this._transformState = {
6161
- afterTransform: xu.bind(this),
6186
+ afterTransform: vu.bind(this),
6162
6187
  needTransform: !1,
6163
6188
  transforming: !1,
6164
6189
  writecb: null,
6165
6190
  writechunk: null,
6166
6191
  writeencoding: null
6167
- }, this._readableState.needReadable = !0, this._readableState.sync = !1, e && (typeof e.transform == "function" && (this._transform = e.transform), typeof e.flush == "function" && (this._flush = e.flush)), this.on("prefinish", vu);
6192
+ }, this._readableState.needReadable = !0, this._readableState.sync = !1, e && (typeof e.transform == "function" && (this._transform = e.transform), typeof e.flush == "function" && (this._flush = e.flush)), this.on("prefinish", Eu);
6168
6193
  }
6169
- function vu() {
6194
+ function Eu() {
6170
6195
  var e = this;
6171
6196
  typeof this._flush == "function" && !this._readableState.destroyed ? this._flush(function(t, r) {
6172
6197
  di(e, t, r);
@@ -6176,7 +6201,7 @@ He.prototype.push = function(e, t) {
6176
6201
  return this._transformState.needTransform = !1, Pr.prototype.push.call(this, e, t);
6177
6202
  };
6178
6203
  He.prototype._transform = function(e, t, r) {
6179
- r(new gu("_transform()"));
6204
+ r(new mu("_transform()"));
6180
6205
  };
6181
6206
  He.prototype._write = function(e, t, r) {
6182
6207
  var n = this._transformState;
@@ -6196,35 +6221,35 @@ He.prototype._destroy = function(e, t) {
6196
6221
  };
6197
6222
  function di(e, t, r) {
6198
6223
  if (t) return e.emit("error", t);
6199
- if (r != null && e.push(r), e._writableState.length) throw new wu();
6200
- if (e._transformState.transforming) throw new _u();
6224
+ if (r != null && e.push(r), e._writableState.length) throw new xu();
6225
+ if (e._transformState.transforming) throw new wu();
6201
6226
  return e.push(null);
6202
6227
  }
6203
- var Eu = Vt, Is = Ss;
6204
- de(Vt, Is);
6228
+ var Bu = Vt, As = Ss;
6229
+ de(Vt, As);
6205
6230
  function Vt(e) {
6206
6231
  if (!(this instanceof Vt)) return new Vt(e);
6207
- Is.call(this, e);
6232
+ As.call(this, e);
6208
6233
  }
6209
6234
  Vt.prototype._transform = function(e, t, r) {
6210
6235
  r(null, e);
6211
6236
  };
6212
6237
  var en;
6213
- function Bu(e) {
6238
+ function Su(e) {
6214
6239
  var t = !1;
6215
6240
  return function() {
6216
6241
  t || (t = !0, e.apply(void 0, arguments));
6217
6242
  };
6218
6243
  }
6219
- var As = ht.codes, Su = As.ERR_MISSING_ARGS, Iu = As.ERR_STREAM_DESTROYED;
6244
+ var Is = dt.codes, Au = Is.ERR_MISSING_ARGS, Iu = Is.ERR_STREAM_DESTROYED;
6220
6245
  function pi(e) {
6221
6246
  if (e) throw e;
6222
6247
  }
6223
- function Au(e) {
6248
+ function Ru(e) {
6224
6249
  return e.setHeader && typeof e.abort == "function";
6225
6250
  }
6226
- function Ru(e, t, r, n) {
6227
- n = Bu(n);
6251
+ function Tu(e, t, r, n) {
6252
+ n = Su(n);
6228
6253
  var i = !1;
6229
6254
  e.on("close", function() {
6230
6255
  i = !0;
@@ -6238,7 +6263,7 @@ function Ru(e, t, r, n) {
6238
6263
  var a = !1;
6239
6264
  return function(f) {
6240
6265
  if (!i && !a) {
6241
- if (a = !0, Au(e)) return e.abort();
6266
+ if (a = !0, Ru(e)) return e.abort();
6242
6267
  if (typeof e.destroy == "function") return e.destroy();
6243
6268
  n(f || new Iu("pipe"));
6244
6269
  }
@@ -6247,39 +6272,39 @@ function Ru(e, t, r, n) {
6247
6272
  function bi(e) {
6248
6273
  e();
6249
6274
  }
6250
- function Tu(e, t) {
6275
+ function Pu(e, t) {
6251
6276
  return e.pipe(t);
6252
6277
  }
6253
- function Pu(e) {
6278
+ function Cu(e) {
6254
6279
  return !e.length || typeof e[e.length - 1] != "function" ? pi : e.pop();
6255
6280
  }
6256
- function Cu() {
6281
+ function ku() {
6257
6282
  for (var e = arguments.length, t = new Array(e), r = 0; r < e; r++)
6258
6283
  t[r] = arguments[r];
6259
- var n = Pu(t);
6284
+ var n = Cu(t);
6260
6285
  if (Array.isArray(t[0]) && (t = t[0]), t.length < 2)
6261
- throw new Su("streams");
6286
+ throw new Au("streams");
6262
6287
  var i, a = t.map(function(f, u) {
6263
6288
  var l = u < t.length - 1, b = u > 0;
6264
- return Ru(f, l, b, function(m) {
6289
+ return Tu(f, l, b, function(m) {
6265
6290
  i || (i = m), m && a.forEach(bi), !l && (a.forEach(bi), n(i));
6266
6291
  });
6267
6292
  });
6268
- return t.reduce(Tu);
6293
+ return t.reduce(Pu);
6269
6294
  }
6270
- var ku = Cu;
6295
+ var Lu = ku;
6271
6296
  (function(e, t) {
6272
- t = e.exports = Bs(), t.Stream = t, t.Readable = t, t.Writable = vs(), t.Duplex = It(), t.Transform = Ss, t.PassThrough = Eu, t.finished = kn, t.pipeline = ku;
6297
+ t = e.exports = Bs(), t.Stream = t, t.Readable = t, t.Writable = vs(), t.Duplex = It(), t.Transform = Ss, t.PassThrough = Bu, t.finished = kn, t.pipeline = Lu;
6273
6298
  })(cn, cn.exports);
6274
- var Rs = cn.exports, vr = xe.Buffer, Ts = Rs.Transform, Lu = de;
6275
- function Fu(e, t) {
6299
+ var Rs = cn.exports, vr = xe.Buffer, Ts = Rs.Transform, Fu = de;
6300
+ function Ou(e, t) {
6276
6301
  if (!vr.isBuffer(e) && typeof e != "string")
6277
6302
  throw new TypeError(t + " must be a string or a buffer");
6278
6303
  }
6279
6304
  function Ze(e) {
6280
6305
  Ts.call(this), this._block = vr.allocUnsafe(e), this._blockSize = e, this._blockOffset = 0, this._length = [0, 0, 0, 0], this._finalized = !1;
6281
6306
  }
6282
- Lu(Ze, Ts);
6307
+ Fu(Ze, Ts);
6283
6308
  Ze.prototype._transform = function(e, t, r) {
6284
6309
  var n = null;
6285
6310
  try {
@@ -6299,7 +6324,7 @@ Ze.prototype._flush = function(e) {
6299
6324
  e(t);
6300
6325
  };
6301
6326
  Ze.prototype.update = function(e, t) {
6302
- if (Fu(e, "Data"), this._finalized) throw new Error("Digest already called");
6327
+ if (Ou(e, "Data"), this._finalized) throw new Error("Digest already called");
6303
6328
  vr.isBuffer(e) || (e = vr.from(e, t));
6304
6329
  for (var r = this._block, n = 0; this._blockOffset + e.length - n >= this._blockSize; ) {
6305
6330
  for (var i = this._blockOffset; i < this._blockSize; ) r[i++] = e[n++];
@@ -6324,19 +6349,19 @@ Ze.prototype.digest = function(e) {
6324
6349
  Ze.prototype._digest = function() {
6325
6350
  throw new Error("_digest is not implemented");
6326
6351
  };
6327
- var Ou = Ze, Uu = de, Ps = Ou, Nu = xe.Buffer, Mu = new Array(16);
6352
+ var Uu = Ze, Nu = de, Ps = Uu, Mu = xe.Buffer, Du = new Array(16);
6328
6353
  function Cr() {
6329
6354
  Ps.call(this, 64), this._a = 1732584193, this._b = 4023233417, this._c = 2562383102, this._d = 271733878;
6330
6355
  }
6331
- Uu(Cr, Ps);
6356
+ Nu(Cr, Ps);
6332
6357
  Cr.prototype._update = function() {
6333
- for (var e = Mu, t = 0; t < 16; ++t) e[t] = this._block.readInt32LE(t * 4);
6358
+ for (var e = Du, t = 0; t < 16; ++t) e[t] = this._block.readInt32LE(t * 4);
6334
6359
  var r = this._a, n = this._b, i = this._c, a = this._d;
6335
6360
  r = pe(r, n, i, a, e[0], 3614090360, 7), a = pe(a, r, n, i, e[1], 3905402710, 12), i = pe(i, a, r, n, e[2], 606105819, 17), n = pe(n, i, a, r, e[3], 3250441966, 22), r = pe(r, n, i, a, e[4], 4118548399, 7), a = pe(a, r, n, i, e[5], 1200080426, 12), i = pe(i, a, r, n, e[6], 2821735955, 17), n = pe(n, i, a, r, e[7], 4249261313, 22), r = pe(r, n, i, a, e[8], 1770035416, 7), a = pe(a, r, n, i, e[9], 2336552879, 12), i = pe(i, a, r, n, e[10], 4294925233, 17), n = pe(n, i, a, r, e[11], 2304563134, 22), r = pe(r, n, i, a, e[12], 1804603682, 7), a = pe(a, r, n, i, e[13], 4254626195, 12), i = pe(i, a, r, n, e[14], 2792965006, 17), n = pe(n, i, a, r, e[15], 1236535329, 22), r = be(r, n, i, a, e[1], 4129170786, 5), a = be(a, r, n, i, e[6], 3225465664, 9), i = be(i, a, r, n, e[11], 643717713, 14), n = be(n, i, a, r, e[0], 3921069994, 20), r = be(r, n, i, a, e[5], 3593408605, 5), a = be(a, r, n, i, e[10], 38016083, 9), i = be(i, a, r, n, e[15], 3634488961, 14), n = be(n, i, a, r, e[4], 3889429448, 20), r = be(r, n, i, a, e[9], 568446438, 5), a = be(a, r, n, i, e[14], 3275163606, 9), i = be(i, a, r, n, e[3], 4107603335, 14), n = be(n, i, a, r, e[8], 1163531501, 20), r = be(r, n, i, a, e[13], 2850285829, 5), a = be(a, r, n, i, e[2], 4243563512, 9), i = be(i, a, r, n, e[7], 1735328473, 14), n = be(n, i, a, r, e[12], 2368359562, 20), r = ye(r, n, i, a, e[5], 4294588738, 4), a = ye(a, r, n, i, e[8], 2272392833, 11), i = ye(i, a, r, n, e[11], 1839030562, 16), n = ye(n, i, a, r, e[14], 4259657740, 23), r = ye(r, n, i, a, e[1], 2763975236, 4), a = ye(a, r, n, i, e[4], 1272893353, 11), i = ye(i, a, r, n, e[7], 4139469664, 16), n = ye(n, i, a, r, e[10], 3200236656, 23), r = ye(r, n, i, a, e[13], 681279174, 4), a = ye(a, r, n, i, e[0], 3936430074, 11), i = ye(i, a, r, n, e[3], 3572445317, 16), n = ye(n, i, a, r, e[6], 76029189, 23), r = ye(r, n, i, a, e[9], 3654602809, 4), a = ye(a, r, n, i, e[12], 3873151461, 11), i = ye(i, a, r, n, e[15], 530742520, 16), n = ye(n, i, a, r, e[2], 3299628645, 23), r = ge(r, n, i, a, e[0], 4096336452, 6), a = ge(a, r, n, i, e[7], 1126891415, 10), i = ge(i, a, r, n, e[14], 2878612391, 15), n = ge(n, i, a, r, e[5], 4237533241, 21), r = ge(r, n, i, a, e[12], 1700485571, 6), a = ge(a, r, n, i, e[3], 2399980690, 10), i = ge(i, a, r, n, e[10], 4293915773, 15), n = ge(n, i, a, r, e[1], 2240044497, 21), r = ge(r, n, i, a, e[8], 1873313359, 6), a = ge(a, r, n, i, e[15], 4264355552, 10), i = ge(i, a, r, n, e[6], 2734768916, 15), n = ge(n, i, a, r, e[13], 1309151649, 21), r = ge(r, n, i, a, e[4], 4149444226, 6), a = ge(a, r, n, i, e[11], 3174756917, 10), i = ge(i, a, r, n, e[2], 718787259, 15), n = ge(n, i, a, r, e[9], 3951481745, 21), this._a = this._a + r | 0, this._b = this._b + n | 0, this._c = this._c + i | 0, this._d = this._d + a | 0;
6336
6361
  };
6337
6362
  Cr.prototype._digest = function() {
6338
6363
  this._block[this._blockOffset++] = 128, this._blockOffset > 56 && (this._block.fill(0, this._blockOffset, 64), this._update(), this._blockOffset = 0), this._block.fill(0, this._blockOffset, 56), this._block.writeUInt32LE(this._length[0], 56), this._block.writeUInt32LE(this._length[1], 60), this._update();
6339
- var e = Nu.allocUnsafe(16);
6364
+ var e = Mu.allocUnsafe(16);
6340
6365
  return e.writeInt32LE(this._a, 0), e.writeInt32LE(this._b, 4), e.writeInt32LE(this._c, 8), e.writeInt32LE(this._d, 12), e;
6341
6366
  };
6342
6367
  function kr(e, t) {
@@ -6354,15 +6379,15 @@ function ye(e, t, r, n, i, a, f) {
6354
6379
  function ge(e, t, r, n, i, a, f) {
6355
6380
  return kr(e + (r ^ (t | ~n)) + i + a | 0, f) + t | 0;
6356
6381
  }
6357
- var Du = Cr, Er = xe.Buffer, Cs = Rs.Transform, $u = de;
6358
- function Hu(e, t) {
6382
+ var $u = Cr, Er = xe.Buffer, Cs = Rs.Transform, Hu = de;
6383
+ function zu(e, t) {
6359
6384
  if (!Er.isBuffer(e) && typeof e != "string")
6360
6385
  throw new TypeError(t + " must be a string or a buffer");
6361
6386
  }
6362
6387
  function et(e) {
6363
6388
  Cs.call(this), this._block = Er.allocUnsafe(e), this._blockSize = e, this._blockOffset = 0, this._length = [0, 0, 0, 0], this._finalized = !1;
6364
6389
  }
6365
- $u(et, Cs);
6390
+ Hu(et, Cs);
6366
6391
  et.prototype._transform = function(e, t, r) {
6367
6392
  var n = null;
6368
6393
  try {
@@ -6382,7 +6407,7 @@ et.prototype._flush = function(e) {
6382
6407
  e(t);
6383
6408
  };
6384
6409
  et.prototype.update = function(e, t) {
6385
- if (Hu(e, "Data"), this._finalized) throw new Error("Digest already called");
6410
+ if (zu(e, "Data"), this._finalized) throw new Error("Digest already called");
6386
6411
  Er.isBuffer(e) || (e = Er.from(e, t));
6387
6412
  for (var r = this._block, n = 0; this._blockOffset + e.length - n >= this._blockSize; ) {
6388
6413
  for (var i = this._blockOffset; i < this._blockSize; ) r[i++] = e[n++];
@@ -6407,7 +6432,7 @@ et.prototype.digest = function(e) {
6407
6432
  et.prototype._digest = function() {
6408
6433
  throw new Error("_digest is not implemented");
6409
6434
  };
6410
- var zu = et, tn = Pt.Buffer, Gu = de, ks = zu, ju = new Array(16), $t = [
6435
+ var Gu = et, tn = Pt.Buffer, ju = de, ks = Gu, Wu = new Array(16), $t = [
6411
6436
  0,
6412
6437
  1,
6413
6438
  2,
@@ -6735,12 +6760,12 @@ var zu = et, tn = Pt.Buffer, Gu = de, ks = zu, ju = new Array(16), $t = [
6735
6760
  function Lr() {
6736
6761
  ks.call(this, 64), this._a = 1732584193, this._b = 4023233417, this._c = 2562383102, this._d = 271733878, this._e = 3285377520;
6737
6762
  }
6738
- Gu(Lr, ks);
6763
+ ju(Lr, ks);
6739
6764
  Lr.prototype._update = function() {
6740
- for (var e = ju, t = 0; t < 16; ++t) e[t] = this._block.readInt32LE(t * 4);
6765
+ for (var e = Wu, t = 0; t < 16; ++t) e[t] = this._block.readInt32LE(t * 4);
6741
6766
  for (var r = this._a | 0, n = this._b | 0, i = this._c | 0, a = this._d | 0, f = this._e | 0, u = this._a | 0, l = this._b | 0, b = this._c | 0, m = this._d | 0, g = this._e | 0, v = 0; v < 80; v += 1) {
6742
- var I, B;
6743
- v < 16 ? (I = yi(r, n, i, a, f, e[$t[v]], jt[0], zt[v]), B = wi(u, l, b, m, g, e[Ht[v]], Wt[0], Gt[v])) : v < 32 ? (I = gi(r, n, i, a, f, e[$t[v]], jt[1], zt[v]), B = _i(u, l, b, m, g, e[Ht[v]], Wt[1], Gt[v])) : v < 48 ? (I = mi(r, n, i, a, f, e[$t[v]], jt[2], zt[v]), B = mi(u, l, b, m, g, e[Ht[v]], Wt[2], Gt[v])) : v < 64 ? (I = _i(r, n, i, a, f, e[$t[v]], jt[3], zt[v]), B = gi(u, l, b, m, g, e[Ht[v]], Wt[3], Gt[v])) : (I = wi(r, n, i, a, f, e[$t[v]], jt[4], zt[v]), B = yi(u, l, b, m, g, e[Ht[v]], Wt[4], Gt[v])), r = f, f = a, a = lt(i, 10), i = n, n = I, u = g, g = m, m = lt(b, 10), b = l, l = B;
6767
+ var A, B;
6768
+ v < 16 ? (A = yi(r, n, i, a, f, e[$t[v]], jt[0], zt[v]), B = wi(u, l, b, m, g, e[Ht[v]], Wt[0], Gt[v])) : v < 32 ? (A = gi(r, n, i, a, f, e[$t[v]], jt[1], zt[v]), B = _i(u, l, b, m, g, e[Ht[v]], Wt[1], Gt[v])) : v < 48 ? (A = mi(r, n, i, a, f, e[$t[v]], jt[2], zt[v]), B = mi(u, l, b, m, g, e[Ht[v]], Wt[2], Gt[v])) : v < 64 ? (A = _i(r, n, i, a, f, e[$t[v]], jt[3], zt[v]), B = gi(u, l, b, m, g, e[Ht[v]], Wt[3], Gt[v])) : (A = wi(r, n, i, a, f, e[$t[v]], jt[4], zt[v]), B = yi(u, l, b, m, g, e[Ht[v]], Wt[4], Gt[v])), r = f, f = a, a = lt(i, 10), i = n, n = A, u = g, g = m, m = lt(b, 10), b = l, l = B;
6744
6769
  }
6745
6770
  var P = this._b + i + m | 0;
6746
6771
  this._b = this._c + a + g | 0, this._c = this._d + f + u | 0, this._d = this._e + r + l | 0, this._e = this._a + n + b | 0, this._a = P;
@@ -6768,7 +6793,7 @@ function _i(e, t, r, n, i, a, f, u) {
6768
6793
  function wi(e, t, r, n, i, a, f, u) {
6769
6794
  return lt(e + (t ^ (r | ~n)) + a + f | 0, u) + i | 0;
6770
6795
  }
6771
- var Wu = Lr, Ls = { exports: {} }, Fs = xe.Buffer;
6796
+ var qu = Lr, Ls = { exports: {} }, Fs = xe.Buffer;
6772
6797
  function Fr(e, t) {
6773
6798
  this._block = Fs.alloc(e), this._finalSize = t, this._blockSize = e, this._len = 0;
6774
6799
  }
@@ -6798,80 +6823,80 @@ Fr.prototype.digest = function(e) {
6798
6823
  Fr.prototype._update = function() {
6799
6824
  throw new Error("_update must be implemented by subclass");
6800
6825
  };
6801
- var Ct = Fr, qu = de, Os = Ct, Vu = xe.Buffer, Ku = [
6826
+ var Ct = Fr, Vu = de, Os = Ct, Ku = xe.Buffer, Yu = [
6802
6827
  1518500249,
6803
6828
  1859775393,
6804
6829
  -1894007588,
6805
6830
  -899497514
6806
- ], Yu = new Array(80);
6831
+ ], Ju = new Array(80);
6807
6832
  function Zt() {
6808
- this.init(), this._w = Yu, Os.call(this, 64, 56);
6833
+ this.init(), this._w = Ju, Os.call(this, 64, 56);
6809
6834
  }
6810
- qu(Zt, Os);
6835
+ Vu(Zt, Os);
6811
6836
  Zt.prototype.init = function() {
6812
6837
  return this._a = 1732584193, this._b = 4023233417, this._c = 2562383102, this._d = 271733878, this._e = 3285377520, this;
6813
6838
  };
6814
- function Ju(e) {
6839
+ function Xu(e) {
6815
6840
  return e << 5 | e >>> 27;
6816
6841
  }
6817
- function Xu(e) {
6842
+ function Qu(e) {
6818
6843
  return e << 30 | e >>> 2;
6819
6844
  }
6820
- function Qu(e, t, r, n) {
6845
+ function Zu(e, t, r, n) {
6821
6846
  return e === 0 ? t & r | ~t & n : e === 2 ? t & r | t & n | r & n : t ^ r ^ n;
6822
6847
  }
6823
6848
  Zt.prototype._update = function(e) {
6824
6849
  for (var t = this._w, r = this._a | 0, n = this._b | 0, i = this._c | 0, a = this._d | 0, f = this._e | 0, u = 0; u < 16; ++u) t[u] = e.readInt32BE(u * 4);
6825
6850
  for (; u < 80; ++u) t[u] = t[u - 3] ^ t[u - 8] ^ t[u - 14] ^ t[u - 16];
6826
6851
  for (var l = 0; l < 80; ++l) {
6827
- var b = ~~(l / 20), m = Ju(r) + Qu(b, n, i, a) + f + t[l] + Ku[b] | 0;
6828
- f = a, a = i, i = Xu(n), n = r, r = m;
6852
+ var b = ~~(l / 20), m = Xu(r) + Zu(b, n, i, a) + f + t[l] + Yu[b] | 0;
6853
+ f = a, a = i, i = Qu(n), n = r, r = m;
6829
6854
  }
6830
6855
  this._a = r + this._a | 0, this._b = n + this._b | 0, this._c = i + this._c | 0, this._d = a + this._d | 0, this._e = f + this._e | 0;
6831
6856
  };
6832
6857
  Zt.prototype._hash = function() {
6833
- var e = Vu.allocUnsafe(20);
6858
+ var e = Ku.allocUnsafe(20);
6834
6859
  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;
6835
6860
  };
6836
- var Zu = Zt, ec = de, Us = Ct, tc = xe.Buffer, rc = [
6861
+ var ec = Zt, tc = de, Us = Ct, rc = xe.Buffer, nc = [
6837
6862
  1518500249,
6838
6863
  1859775393,
6839
6864
  -1894007588,
6840
6865
  -899497514
6841
- ], nc = new Array(80);
6866
+ ], ic = new Array(80);
6842
6867
  function er() {
6843
- this.init(), this._w = nc, Us.call(this, 64, 56);
6868
+ this.init(), this._w = ic, Us.call(this, 64, 56);
6844
6869
  }
6845
- ec(er, Us);
6870
+ tc(er, Us);
6846
6871
  er.prototype.init = function() {
6847
6872
  return this._a = 1732584193, this._b = 4023233417, this._c = 2562383102, this._d = 271733878, this._e = 3285377520, this;
6848
6873
  };
6849
- function ic(e) {
6874
+ function sc(e) {
6850
6875
  return e << 1 | e >>> 31;
6851
6876
  }
6852
- function sc(e) {
6877
+ function oc(e) {
6853
6878
  return e << 5 | e >>> 27;
6854
6879
  }
6855
- function oc(e) {
6880
+ function ac(e) {
6856
6881
  return e << 30 | e >>> 2;
6857
6882
  }
6858
- function ac(e, t, r, n) {
6883
+ function fc(e, t, r, n) {
6859
6884
  return e === 0 ? t & r | ~t & n : e === 2 ? t & r | t & n | r & n : t ^ r ^ n;
6860
6885
  }
6861
6886
  er.prototype._update = function(e) {
6862
6887
  for (var t = this._w, r = this._a | 0, n = this._b | 0, i = this._c | 0, a = this._d | 0, f = this._e | 0, u = 0; u < 16; ++u) t[u] = e.readInt32BE(u * 4);
6863
- for (; u < 80; ++u) t[u] = ic(t[u - 3] ^ t[u - 8] ^ t[u - 14] ^ t[u - 16]);
6888
+ for (; u < 80; ++u) t[u] = sc(t[u - 3] ^ t[u - 8] ^ t[u - 14] ^ t[u - 16]);
6864
6889
  for (var l = 0; l < 80; ++l) {
6865
- var b = ~~(l / 20), m = sc(r) + ac(b, n, i, a) + f + t[l] + rc[b] | 0;
6866
- f = a, a = i, i = oc(n), n = r, r = m;
6890
+ var b = ~~(l / 20), m = oc(r) + fc(b, n, i, a) + f + t[l] + nc[b] | 0;
6891
+ f = a, a = i, i = ac(n), n = r, r = m;
6867
6892
  }
6868
6893
  this._a = r + this._a | 0, this._b = n + this._b | 0, this._c = i + this._c | 0, this._d = a + this._d | 0, this._e = f + this._e | 0;
6869
6894
  };
6870
6895
  er.prototype._hash = function() {
6871
- var e = tc.allocUnsafe(20);
6896
+ var e = rc.allocUnsafe(20);
6872
6897
  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;
6873
6898
  };
6874
- var fc = er, uc = de, Ns = Ct, cc = xe.Buffer, lc = [
6899
+ var uc = er, cc = de, Ns = Ct, lc = xe.Buffer, hc = [
6875
6900
  1116352408,
6876
6901
  1899447441,
6877
6902
  3049323471,
@@ -6936,58 +6961,58 @@ var fc = er, uc = de, Ns = Ct, cc = xe.Buffer, lc = [
6936
6961
  2756734187,
6937
6962
  3204031479,
6938
6963
  3329325298
6939
- ], hc = new Array(64);
6964
+ ], dc = new Array(64);
6940
6965
  function tr() {
6941
- this.init(), this._w = hc, Ns.call(this, 64, 56);
6966
+ this.init(), this._w = dc, Ns.call(this, 64, 56);
6942
6967
  }
6943
- uc(tr, Ns);
6968
+ cc(tr, Ns);
6944
6969
  tr.prototype.init = function() {
6945
6970
  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;
6946
6971
  };
6947
- function dc(e, t, r) {
6972
+ function pc(e, t, r) {
6948
6973
  return r ^ e & (t ^ r);
6949
6974
  }
6950
- function pc(e, t, r) {
6975
+ function bc(e, t, r) {
6951
6976
  return e & t | r & (e | t);
6952
6977
  }
6953
- function bc(e) {
6978
+ function yc(e) {
6954
6979
  return (e >>> 2 | e << 30) ^ (e >>> 13 | e << 19) ^ (e >>> 22 | e << 10);
6955
6980
  }
6956
- function yc(e) {
6981
+ function gc(e) {
6957
6982
  return (e >>> 6 | e << 26) ^ (e >>> 11 | e << 21) ^ (e >>> 25 | e << 7);
6958
6983
  }
6959
- function gc(e) {
6984
+ function mc(e) {
6960
6985
  return (e >>> 7 | e << 25) ^ (e >>> 18 | e << 14) ^ e >>> 3;
6961
6986
  }
6962
- function mc(e) {
6987
+ function _c(e) {
6963
6988
  return (e >>> 17 | e << 15) ^ (e >>> 19 | e << 13) ^ e >>> 10;
6964
6989
  }
6965
6990
  tr.prototype._update = function(e) {
6966
6991
  for (var t = this._w, r = this._a | 0, n = this._b | 0, i = this._c | 0, a = this._d | 0, f = this._e | 0, u = this._f | 0, l = this._g | 0, b = this._h | 0, m = 0; m < 16; ++m) t[m] = e.readInt32BE(m * 4);
6967
- for (; m < 64; ++m) t[m] = mc(t[m - 2]) + t[m - 7] + gc(t[m - 15]) + t[m - 16] | 0;
6992
+ for (; m < 64; ++m) t[m] = _c(t[m - 2]) + t[m - 7] + mc(t[m - 15]) + t[m - 16] | 0;
6968
6993
  for (var g = 0; g < 64; ++g) {
6969
- var v = b + yc(f) + dc(f, u, l) + lc[g] + t[g] | 0, I = bc(r) + pc(r, n, i) | 0;
6970
- b = l, l = u, u = f, f = a + v | 0, a = i, i = n, n = r, r = v + I | 0;
6994
+ var v = b + gc(f) + pc(f, u, l) + hc[g] + t[g] | 0, A = yc(r) + bc(r, n, i) | 0;
6995
+ b = l, l = u, u = f, f = a + v | 0, a = i, i = n, n = r, r = v + A | 0;
6971
6996
  }
6972
6997
  this._a = r + this._a | 0, this._b = n + this._b | 0, this._c = i + this._c | 0, this._d = a + this._d | 0, this._e = f + this._e | 0, this._f = u + this._f | 0, this._g = l + this._g | 0, this._h = b + this._h | 0;
6973
6998
  };
6974
6999
  tr.prototype._hash = function() {
6975
- var e = cc.allocUnsafe(32);
7000
+ var e = lc.allocUnsafe(32);
6976
7001
  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;
6977
7002
  };
6978
- var Ms = tr, _c = de, wc = Ms, xc = Ct, vc = xe.Buffer, Ec = new Array(64);
7003
+ var Ms = tr, wc = de, xc = Ms, vc = Ct, Ec = xe.Buffer, Bc = new Array(64);
6979
7004
  function Or() {
6980
- this.init(), this._w = Ec, xc.call(this, 64, 56);
7005
+ this.init(), this._w = Bc, vc.call(this, 64, 56);
6981
7006
  }
6982
- _c(Or, wc);
7007
+ wc(Or, xc);
6983
7008
  Or.prototype.init = function() {
6984
7009
  return this._a = 3238371032, this._b = 914150663, this._c = 812702999, this._d = 4144912697, this._e = 4290775857, this._f = 1750603025, this._g = 1694076839, this._h = 3204075428, this;
6985
7010
  };
6986
7011
  Or.prototype._hash = function() {
6987
- var e = vc.allocUnsafe(28);
7012
+ var e = Ec.allocUnsafe(28);
6988
7013
  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;
6989
7014
  };
6990
- var Bc = Or, Sc = de, Ds = Ct, Ic = xe.Buffer, xi = [
7015
+ var Sc = Or, Ac = de, Ds = Ct, Ic = xe.Buffer, xi = [
6991
7016
  1116352408,
6992
7017
  3609767458,
6993
7018
  1899447441,
@@ -7148,11 +7173,11 @@ var Bc = Or, Sc = de, Ds = Ct, Ic = xe.Buffer, xi = [
7148
7173
  987167468,
7149
7174
  1816402316,
7150
7175
  1246189591
7151
- ], Ac = new Array(160);
7176
+ ], Rc = new Array(160);
7152
7177
  function rr() {
7153
- this.init(), this._w = Ac, Ds.call(this, 128, 112);
7178
+ this.init(), this._w = Rc, Ds.call(this, 128, 112);
7154
7179
  }
7155
- Sc(rr, Ds);
7180
+ Ac(rr, Ds);
7156
7181
  rr.prototype.init = function() {
7157
7182
  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;
7158
7183
  };
@@ -7168,28 +7193,28 @@ function Bi(e, t) {
7168
7193
  function Si(e, t) {
7169
7194
  return (e >>> 14 | t << 18) ^ (e >>> 18 | t << 14) ^ (t >>> 9 | e << 23);
7170
7195
  }
7171
- function Rc(e, t) {
7196
+ function Tc(e, t) {
7172
7197
  return (e >>> 1 | t << 31) ^ (e >>> 8 | t << 24) ^ e >>> 7;
7173
7198
  }
7174
- function Tc(e, t) {
7199
+ function Pc(e, t) {
7175
7200
  return (e >>> 1 | t << 31) ^ (e >>> 8 | t << 24) ^ (e >>> 7 | t << 25);
7176
7201
  }
7177
- function Pc(e, t) {
7202
+ function Cc(e, t) {
7178
7203
  return (e >>> 19 | t << 13) ^ (t >>> 29 | e << 3) ^ e >>> 6;
7179
7204
  }
7180
- function Cc(e, t) {
7205
+ function kc(e, t) {
7181
7206
  return (e >>> 19 | t << 13) ^ (t >>> 29 | e << 3) ^ (e >>> 6 | t << 26);
7182
7207
  }
7183
7208
  function ce(e, t) {
7184
7209
  return e >>> 0 < t >>> 0 ? 1 : 0;
7185
7210
  }
7186
7211
  rr.prototype._update = function(e) {
7187
- for (var t = this._w, r = this._ah | 0, n = this._bh | 0, i = this._ch | 0, a = this._dh | 0, f = this._eh | 0, u = this._fh | 0, l = this._gh | 0, b = this._hh | 0, m = this._al | 0, g = this._bl | 0, v = this._cl | 0, I = this._dl | 0, B = this._el | 0, P = this._fl | 0, T = this._gl | 0, C = this._hl | 0, F = 0; F < 32; F += 2)
7212
+ for (var t = this._w, r = this._ah | 0, n = this._bh | 0, i = this._ch | 0, a = this._dh | 0, f = this._eh | 0, u = this._fh | 0, l = this._gh | 0, b = this._hh | 0, m = this._al | 0, g = this._bl | 0, v = this._cl | 0, A = this._dl | 0, B = this._el | 0, P = this._fl | 0, T = this._gl | 0, C = this._hl | 0, F = 0; F < 32; F += 2)
7188
7213
  t[F] = e.readInt32BE(F * 4), t[F + 1] = e.readInt32BE(F * 4 + 4);
7189
7214
  for (; F < 160; F += 2) {
7190
- var L = t[F - 30], k = t[F - 15 * 2 + 1], O = Rc(L, k), S = Tc(k, L);
7215
+ var L = t[F - 30], k = t[F - 15 * 2 + 1], O = Tc(L, k), S = Pc(k, L);
7191
7216
  L = t[F - 2 * 2], k = t[F - 2 * 2 + 1];
7192
- var z = Pc(L, k), M = Cc(k, L), $ = t[F - 7 * 2], se = t[F - 7 * 2 + 1], Te = t[F - 16 * 2], ze = t[F - 16 * 2 + 1], ae = S + se | 0, ve = O + $ + ce(ae, S) | 0;
7217
+ var z = Cc(L, k), M = kc(k, L), $ = t[F - 7 * 2], se = t[F - 7 * 2 + 1], Te = t[F - 16 * 2], ze = t[F - 16 * 2 + 1], ae = S + se | 0, ve = O + $ + ce(ae, S) | 0;
7193
7218
  ae = ae + M | 0, ve = ve + z + ce(ae, M) | 0, ae = ae + ze | 0, ve = ve + Te + ce(ae, ze) | 0, t[F] = ve, t[F + 1] = ae;
7194
7219
  }
7195
7220
  for (var Ee = 0; Ee < 160; Ee += 2) {
@@ -7197,9 +7222,9 @@ rr.prototype._update = function(e) {
7197
7222
  var tt = Ei(r, n, i), Pe = Ei(m, g, v), Ge = Bi(r, m), Ce = Bi(m, r), je = Si(f, B), Q = Si(B, f), oe = xi[Ee], Be = xi[Ee + 1], We = vi(f, u, l), Ue = vi(B, P, T), w = C + Q | 0, _ = b + je + ce(w, C) | 0;
7198
7223
  w = w + Ue | 0, _ = _ + We + ce(w, Ue) | 0, w = w + Be | 0, _ = _ + oe + ce(w, Be) | 0, w = w + ae | 0, _ = _ + ve + ce(w, ae) | 0;
7199
7224
  var R = Ce + Pe | 0, D = Ge + tt + ce(R, Ce) | 0;
7200
- b = l, C = T, l = u, T = P, u = f, P = B, B = I + w | 0, f = a + _ + ce(B, I) | 0, a = i, I = v, i = n, v = g, n = r, g = m, m = w + R | 0, r = _ + D + ce(m, w) | 0;
7225
+ b = l, C = T, l = u, T = P, u = f, P = B, B = A + w | 0, f = a + _ + ce(B, A) | 0, a = i, A = v, i = n, v = g, n = r, g = m, m = w + R | 0, r = _ + D + ce(m, w) | 0;
7201
7226
  }
7202
- this._al = this._al + m | 0, this._bl = this._bl + g | 0, this._cl = this._cl + v | 0, this._dl = this._dl + I | 0, this._el = this._el + B | 0, this._fl = this._fl + P | 0, this._gl = this._gl + T | 0, this._hl = this._hl + C | 0, this._ah = this._ah + r + ce(this._al, m) | 0, this._bh = this._bh + n + ce(this._bl, g) | 0, this._ch = this._ch + i + ce(this._cl, v) | 0, this._dh = this._dh + a + ce(this._dl, I) | 0, this._eh = this._eh + f + ce(this._el, B) | 0, this._fh = this._fh + u + ce(this._fl, P) | 0, this._gh = this._gh + l + ce(this._gl, T) | 0, this._hh = this._hh + b + ce(this._hl, C) | 0;
7227
+ this._al = this._al + m | 0, this._bl = this._bl + g | 0, this._cl = this._cl + v | 0, this._dl = this._dl + A | 0, this._el = this._el + B | 0, this._fl = this._fl + P | 0, this._gl = this._gl + T | 0, this._hl = this._hl + C | 0, this._ah = this._ah + r + ce(this._al, m) | 0, this._bh = this._bh + n + ce(this._bl, g) | 0, this._ch = this._ch + i + ce(this._cl, v) | 0, this._dh = this._dh + a + ce(this._dl, A) | 0, this._eh = this._eh + f + ce(this._el, B) | 0, this._fh = this._fh + u + ce(this._fl, P) | 0, this._gh = this._gh + l + ce(this._gl, T) | 0, this._hh = this._hh + b + ce(this._hl, C) | 0;
7203
7228
  };
7204
7229
  rr.prototype._hash = function() {
7205
7230
  var e = Ic.allocUnsafe(64);
@@ -7208,38 +7233,38 @@ rr.prototype._hash = function() {
7208
7233
  }
7209
7234
  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;
7210
7235
  };
7211
- var $s = rr, kc = de, Lc = $s, Fc = Ct, Oc = xe.Buffer, Uc = new Array(160);
7236
+ var $s = rr, Lc = de, Fc = $s, Oc = Ct, Uc = xe.Buffer, Nc = new Array(160);
7212
7237
  function Ur() {
7213
- this.init(), this._w = Uc, Fc.call(this, 128, 112);
7238
+ this.init(), this._w = Nc, Oc.call(this, 128, 112);
7214
7239
  }
7215
- kc(Ur, Lc);
7240
+ Lc(Ur, Fc);
7216
7241
  Ur.prototype.init = function() {
7217
7242
  return this._ah = 3418070365, this._bh = 1654270250, this._ch = 2438529370, this._dh = 355462360, this._eh = 1731405415, this._fh = 2394180231, this._gh = 3675008525, this._hh = 1203062813, this._al = 3238371032, this._bl = 914150663, this._cl = 812702999, this._dl = 4144912697, this._el = 4290775857, this._fl = 1750603025, this._gl = 1694076839, this._hl = 3204075428, this;
7218
7243
  };
7219
7244
  Ur.prototype._hash = function() {
7220
- var e = Oc.allocUnsafe(48);
7245
+ var e = Uc.allocUnsafe(48);
7221
7246
  function t(r, n, i) {
7222
7247
  e.writeInt32BE(r, i), e.writeInt32BE(n, i + 4);
7223
7248
  }
7224
7249
  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;
7225
7250
  };
7226
- var Nc = Ur, dt = Ls.exports = function(t) {
7251
+ var Mc = Ur, pt = Ls.exports = function(t) {
7227
7252
  t = t.toLowerCase();
7228
- var r = dt[t];
7253
+ var r = pt[t];
7229
7254
  if (!r) throw new Error(t + " is not supported (we accept pull requests)");
7230
7255
  return new r();
7231
7256
  };
7232
- dt.sha = Zu;
7233
- dt.sha1 = fc;
7234
- dt.sha224 = Bc;
7235
- dt.sha256 = Ms;
7236
- dt.sha384 = Nc;
7237
- dt.sha512 = $s;
7238
- var Mc = Ls.exports, Hs = xe.Buffer, zs = Pn.Transform, Dc = xr.StringDecoder, $c = de;
7257
+ pt.sha = ec;
7258
+ pt.sha1 = uc;
7259
+ pt.sha224 = Sc;
7260
+ pt.sha256 = Ms;
7261
+ pt.sha384 = Mc;
7262
+ pt.sha512 = $s;
7263
+ var Dc = Ls.exports, Hs = xe.Buffer, zs = Pn.Transform, $c = xr.StringDecoder, Hc = de;
7239
7264
  function ke(e) {
7240
7265
  zs.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;
7241
7266
  }
7242
- $c(ke, zs);
7267
+ Hc(ke, zs);
7243
7268
  ke.prototype.update = function(e, t, r) {
7244
7269
  typeof e == "string" && (e = Hs.from(e, t));
7245
7270
  var n = this._update(e);
@@ -7280,25 +7305,25 @@ ke.prototype._finalOrDigest = function(e) {
7280
7305
  return e && (t = this._toString(t, e, !0)), t;
7281
7306
  };
7282
7307
  ke.prototype._toString = function(e, t, r) {
7283
- if (this._decoder || (this._decoder = new Dc(t), this._encoding = t), this._encoding !== t) throw new Error("can't switch encodings");
7308
+ if (this._decoder || (this._decoder = new $c(t), this._encoding = t), this._encoding !== t) throw new Error("can't switch encodings");
7284
7309
  var n = this._decoder.write(e);
7285
7310
  return r && (n += this._decoder.end()), n;
7286
7311
  };
7287
- var Hc = ke, zc = de, Gc = Du, jc = Wu, Wc = Mc, Gs = Hc;
7312
+ var zc = ke, Gc = de, jc = $u, Wc = qu, qc = Dc, Gs = zc;
7288
7313
  function Nr(e) {
7289
7314
  Gs.call(this, "digest"), this._hash = e;
7290
7315
  }
7291
- zc(Nr, Gs);
7316
+ Gc(Nr, Gs);
7292
7317
  Nr.prototype._update = function(e) {
7293
7318
  this._hash.update(e);
7294
7319
  };
7295
7320
  Nr.prototype._final = function() {
7296
7321
  return this._hash.digest();
7297
7322
  };
7298
- var qc = function(t) {
7299
- return t = t.toLowerCase(), t === "md5" ? new Gc() : t === "rmd160" || t === "ripemd160" ? new jc() : new Nr(Wc(t));
7323
+ var Vc = function(t) {
7324
+ return t = t.toLowerCase(), t === "md5" ? new jc() : t === "rmd160" || t === "ripemd160" ? new Wc() : new Nr(qc(t));
7300
7325
  }, ur = xe.Buffer;
7301
- function Vc(e) {
7326
+ function Kc(e) {
7302
7327
  if (e.length >= 255)
7303
7328
  throw new TypeError("Alphabet too long");
7304
7329
  for (var t = new Uint8Array(256), r = 0; r < t.length; r++)
@@ -7310,15 +7335,15 @@ function Vc(e) {
7310
7335
  t[a] = n;
7311
7336
  }
7312
7337
  var f = e.length, u = e.charAt(0), l = Math.log(f) / Math.log(256), b = Math.log(256) / Math.log(f);
7313
- function m(I) {
7314
- if ((Array.isArray(I) || I instanceof Uint8Array) && (I = ur.from(I)), !ur.isBuffer(I))
7338
+ function m(A) {
7339
+ if ((Array.isArray(A) || A instanceof Uint8Array) && (A = ur.from(A)), !ur.isBuffer(A))
7315
7340
  throw new TypeError("Expected Buffer");
7316
- if (I.length === 0)
7341
+ if (A.length === 0)
7317
7342
  return "";
7318
- for (var B = 0, P = 0, T = 0, C = I.length; T !== C && I[T] === 0; )
7343
+ for (var B = 0, P = 0, T = 0, C = A.length; T !== C && A[T] === 0; )
7319
7344
  T++, B++;
7320
7345
  for (var F = (C - T) * b + 1 >>> 0, L = new Uint8Array(F); T !== C; ) {
7321
- for (var k = I[T], O = 0, S = F - 1; (k !== 0 || O < P) && S !== -1; S--, O++)
7346
+ for (var k = A[T], O = 0, S = F - 1; (k !== 0 || O < P) && S !== -1; S--, O++)
7322
7347
  k += 256 * L[S] >>> 0, L[S] = k % f >>> 0, k = k / f >>> 0;
7323
7348
  if (k !== 0)
7324
7349
  throw new Error("Non-zero carry");
@@ -7330,15 +7355,15 @@ function Vc(e) {
7330
7355
  M += e.charAt(L[z]);
7331
7356
  return M;
7332
7357
  }
7333
- function g(I) {
7334
- if (typeof I != "string")
7358
+ function g(A) {
7359
+ if (typeof A != "string")
7335
7360
  throw new TypeError("Expected String");
7336
- if (I.length === 0)
7361
+ if (A.length === 0)
7337
7362
  return ur.alloc(0);
7338
- for (var B = 0, P = 0, T = 0; I[B] === u; )
7363
+ for (var B = 0, P = 0, T = 0; A[B] === u; )
7339
7364
  P++, B++;
7340
- for (var C = (I.length - B) * l + 1 >>> 0, F = new Uint8Array(C); B < I.length; ) {
7341
- var L = t[I.charCodeAt(B)];
7365
+ for (var C = (A.length - B) * l + 1 >>> 0, F = new Uint8Array(C); B < A.length; ) {
7366
+ var L = t[A.charCodeAt(B)];
7342
7367
  if (L === 255)
7343
7368
  return;
7344
7369
  for (var k = 0, O = C - 1; (L !== 0 || k < T) && O !== -1; O--, k++)
@@ -7355,8 +7380,8 @@ function Vc(e) {
7355
7380
  z[M++] = F[S++];
7356
7381
  return z;
7357
7382
  }
7358
- function v(I) {
7359
- var B = g(I);
7383
+ function v(A) {
7384
+ var B = g(A);
7360
7385
  if (B)
7361
7386
  return B;
7362
7387
  throw new Error("Non-base" + f + " character");
@@ -7367,10 +7392,10 @@ function Vc(e) {
7367
7392
  decode: v
7368
7393
  };
7369
7394
  }
7370
- var Kc = Vc, Yc = Kc, Jc = "123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz", Xc = Yc(Jc), rn = Xc, Qc = xe.Buffer, Zc = function(e) {
7395
+ var Yc = Kc, Jc = Yc, Xc = "123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz", Qc = Jc(Xc), rn = Qc, Zc = xe.Buffer, el = function(e) {
7371
7396
  function t(a) {
7372
7397
  var f = e(a);
7373
- return rn.encode(Qc.concat([
7398
+ return rn.encode(Zc.concat([
7374
7399
  a,
7375
7400
  f
7376
7401
  ], a.length + 4));
@@ -7395,12 +7420,12 @@ var Kc = Vc, Yc = Kc, Jc = "123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrst
7395
7420
  decode: i,
7396
7421
  decodeUnsafe: n
7397
7422
  };
7398
- }, Ii = qc, el = Zc;
7399
- function tl(e) {
7400
- var t = Ii("sha256").update(e).digest();
7401
- return Ii("sha256").update(t).digest();
7423
+ }, Ai = Vc, tl = el;
7424
+ function rl(e) {
7425
+ var t = Ai("sha256").update(e).digest();
7426
+ return Ai("sha256").update(t).digest();
7402
7427
  }
7403
- var rl = el(tl), hn = rl;
7428
+ var nl = tl(rl), hn = nl;
7404
7429
  function js(e, t) {
7405
7430
  if (t !== void 0 && e[0] !== t) throw new Error("Invalid network version");
7406
7431
  if (e.length === 33)
@@ -7421,10 +7446,10 @@ function dn(e, t, r) {
7421
7446
  var n = new Buffer(r ? 34 : 33);
7422
7447
  return n.writeUInt8(e, 0), t.copy(n, 1), r && (n[33] = 1), n;
7423
7448
  }
7424
- function nl(e, t) {
7449
+ function il(e, t) {
7425
7450
  return js(hn.decode(e), t);
7426
7451
  }
7427
- function il(e, t, r) {
7452
+ function sl(e, t, r) {
7428
7453
  return typeof e == "number" ? hn.encode(dn(e, t, r)) : hn.encode(
7429
7454
  dn(
7430
7455
  e.version,
@@ -7433,16 +7458,16 @@ function il(e, t, r) {
7433
7458
  )
7434
7459
  );
7435
7460
  }
7436
- var sl = {
7437
- decode: nl,
7461
+ var ol = {
7462
+ decode: il,
7438
7463
  decodeRaw: js,
7439
- encode: il,
7464
+ encode: sl,
7440
7465
  encodeRaw: dn
7441
7466
  }, Mr = {};
7442
7467
  Object.defineProperty(Mr, "__esModule", { value: !0 });
7443
7468
  Mr.testEcc = void 0;
7444
7469
  const H = (e) => Buffer.from(e, "hex");
7445
- function ol(e) {
7470
+ function al(e) {
7446
7471
  J(
7447
7472
  e.isPoint(
7448
7473
  H("0279be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798")
@@ -7632,22 +7657,22 @@ function ol(e) {
7632
7657
  )
7633
7658
  );
7634
7659
  }
7635
- Mr.testEcc = ol;
7660
+ Mr.testEcc = al;
7636
7661
  function J(e) {
7637
7662
  if (!e) throw new Error("ecc library invalid");
7638
7663
  }
7639
- Object.defineProperty(Bt, "__esModule", { value: !0 });
7640
- Bt.ECPairFactory = Bt.networks = void 0;
7641
- const pn = St;
7642
- Bt.networks = pn;
7643
- const _e = rs, al = Cf, Ai = sl, fl = Mr, nn = _e.typeforce.maybe(
7664
+ Object.defineProperty(St, "__esModule", { value: !0 });
7665
+ St.ECPairFactory = St.networks = void 0;
7666
+ const pn = At;
7667
+ St.networks = pn;
7668
+ const _e = rs, fl = kf, Ii = ol, ul = Mr, nn = _e.typeforce.maybe(
7644
7669
  _e.typeforce.compile({
7645
7670
  compressed: _e.maybe(_e.Boolean),
7646
7671
  network: _e.maybe(_e.Network)
7647
7672
  })
7648
- ), ul = (e) => e.length === 32 ? e : e.slice(1, 33);
7649
- function cl(e) {
7650
- (0, fl.testEcc)(e);
7673
+ ), cl = (e) => e.length === 32 ? e : e.slice(1, 33);
7674
+ function ll(e) {
7675
+ (0, ul.testEcc)(e);
7651
7676
  function t(u) {
7652
7677
  return e.isPoint(u);
7653
7678
  }
@@ -7660,7 +7685,7 @@ function cl(e) {
7660
7685
  return _e.typeforce(e.isPoint, u), _e.typeforce(nn, l), new f(void 0, u, l);
7661
7686
  }
7662
7687
  function i(u, l) {
7663
- const b = Ai.decode(u), m = b.version;
7688
+ const b = Ii.decode(u), m = b.version;
7664
7689
  if (_e.Array(l)) {
7665
7690
  if (l = l.filter((g) => m === g.wif).pop(), !l) throw new Error("Unknown network version");
7666
7691
  } else if (l = l || pn.bitcoin, m !== l.wif) throw new Error("Invalid network version");
@@ -7671,7 +7696,7 @@ function cl(e) {
7671
7696
  }
7672
7697
  function a(u) {
7673
7698
  _e.typeforce(nn, u), u === void 0 && (u = {});
7674
- const l = u.rng || al;
7699
+ const l = u.rng || fl;
7675
7700
  let b;
7676
7701
  do
7677
7702
  b = l(32), _e.typeforce(_e.Buffer256bit, b);
@@ -7680,11 +7705,11 @@ function cl(e) {
7680
7705
  }
7681
7706
  class f {
7682
7707
  constructor(l, b, m) {
7683
- yt(this, "__D");
7684
- yt(this, "__Q");
7685
- yt(this, "compressed");
7686
- yt(this, "network");
7687
- yt(this, "lowR");
7708
+ gt(this, "__D");
7709
+ gt(this, "__Q");
7710
+ gt(this, "compressed");
7711
+ gt(this, "network");
7712
+ gt(this, "lowR");
7688
7713
  this.__D = l, this.__Q = b, this.lowR = !1, m === void 0 && (m = {}), this.compressed = m.compressed === void 0 ? !0 : m.compressed, this.network = m.network || pn.bitcoin, b !== void 0 && (this.__Q = Buffer.from(e.pointCompress(b, this.compressed)));
7689
7714
  }
7690
7715
  get privateKey() {
@@ -7699,7 +7724,7 @@ function cl(e) {
7699
7724
  }
7700
7725
  toWIF() {
7701
7726
  if (!this.__D) throw new Error("Missing private key");
7702
- return Ai.encode(this.network.wif, this.__D, this.compressed);
7727
+ return Ii.encode(this.network.wif, this.__D, this.compressed);
7703
7728
  }
7704
7729
  tweak(l) {
7705
7730
  return this.privateKey ? this.tweakFromPrivateKey(l) : this.tweakFromPublicKey(l);
@@ -7732,7 +7757,7 @@ function cl(e) {
7732
7757
  return e.verifySchnorr(l, this.publicKey.subarray(1, 33), b);
7733
7758
  }
7734
7759
  tweakFromPublicKey(l) {
7735
- const b = ul(this.publicKey), m = e.xOnlyPointAddTweak(b, l);
7760
+ const b = cl(this.publicKey), m = e.xOnlyPointAddTweak(b, l);
7736
7761
  if (!m || m.xOnlyPubkey === null)
7737
7762
  throw new Error("Cannot tweak public key!");
7738
7763
  const g = Buffer.from([
@@ -7760,10 +7785,10 @@ function cl(e) {
7760
7785
  makeRandom: a
7761
7786
  };
7762
7787
  }
7763
- Bt.ECPairFactory = cl;
7788
+ St.ECPairFactory = ll;
7764
7789
  (function(e) {
7765
7790
  Object.defineProperty(e, "__esModule", { value: !0 }), e.networks = e.ECPairFactory = e.default = void 0;
7766
- var t = Bt;
7791
+ var t = St;
7767
7792
  Object.defineProperty(e, "default", {
7768
7793
  enumerable: !0,
7769
7794
  get: function() {
@@ -7781,7 +7806,7 @@ Bt.ECPairFactory = cl;
7781
7806
  }
7782
7807
  });
7783
7808
  })(ts);
7784
- const ll = /* @__PURE__ */ cf(ts);
7809
+ const hl = /* @__PURE__ */ lf(ts);
7785
7810
  class bn {
7786
7811
  constructor(t) {
7787
7812
  this.privKey = t;
@@ -7829,13 +7854,13 @@ class bn {
7829
7854
  return ue({ secret: n, secretHash: i });
7830
7855
  }
7831
7856
  signMessage(t) {
7832
- const r = ll(ot), n = "Garden.fi" + t.toString(), i = Buffer.from(n, "utf8"), a = or(i), f = Buffer.from(it(this.privKey), "hex");
7857
+ const r = hl(ot), n = "Garden.fi" + t.toString(), i = Buffer.from(n, "utf8"), a = or(i), f = Buffer.from(it(this.privKey), "hex");
7833
7858
  if (f.length !== 32)
7834
7859
  throw new Error("Invalid private key length. Expected 32 bytes.");
7835
7860
  return r.fromPrivateKey(f).sign(Buffer.from(it(a), "hex")).toString("hex");
7836
7861
  }
7837
7862
  }
7838
- class Al {
7863
+ class Rl {
7839
7864
  constructor(t) {
7840
7865
  this.quoteUrl = new yn("/quote", t);
7841
7866
  }
@@ -7845,7 +7870,7 @@ class Al {
7845
7870
  order_pair: t,
7846
7871
  amount: r.toString(),
7847
7872
  exact_out: n.toString()
7848
- }), a = await wt.get(i);
7873
+ }), a = await xt.get(i);
7849
7874
  return a.error ? N(a.error) : a.result ? ue(a.result) : N("GetQuote: Unexpected error, result is undefined");
7850
7875
  } catch (i) {
7851
7876
  return N("GetQuote:", String(i));
@@ -7853,7 +7878,7 @@ class Al {
7853
7878
  }
7854
7879
  async getAttestedQuote(t) {
7855
7880
  try {
7856
- const r = await wt.post(this.quoteUrl.endpoint("/attested").toString(), {
7881
+ const r = await xt.post(this.quoteUrl.endpoint("/attested").toString(), {
7857
7882
  body: JSON.stringify(t),
7858
7883
  headers: {
7859
7884
  "Content-Type": "application/json"
@@ -7866,7 +7891,7 @@ class Al {
7866
7891
  }
7867
7892
  async getStrategies() {
7868
7893
  try {
7869
- const t = await wt.get(
7894
+ const t = await xt.get(
7870
7895
  this.quoteUrl.endpoint("/strategies")
7871
7896
  );
7872
7897
  if (t.error) return N(t.error);
@@ -7874,7 +7899,7 @@ class Al {
7874
7899
  return N("GetStrategies: Unexpected error, result is undefined");
7875
7900
  const r = {};
7876
7901
  for (const n of Object.values(t.result)) {
7877
- const i = Za(
7902
+ const i = ef(
7878
7903
  n.source_chain,
7879
7904
  n.source_asset.asset,
7880
7905
  n.dest_chain,
@@ -7894,22 +7919,22 @@ class Al {
7894
7919
  }
7895
7920
  }
7896
7921
  export {
7897
- Sl as BlockNumberFetcher,
7898
- rf as EvmRelay,
7899
- Bl as Garden,
7922
+ Al as BlockNumberFetcher,
7923
+ nf as EvmRelay,
7924
+ Sl as Garden,
7900
7925
  le as OrderActions,
7901
7926
  te as OrderStatus,
7902
7927
  Zi as ParseOrderStatus,
7903
7928
  Jn as ParseSwapStatus,
7904
- Al as Quote,
7929
+ Rl as Quote,
7905
7930
  bn as SecretManager,
7906
7931
  re as SwapStatus,
7907
- Za as constructOrderPair,
7908
- Xa as evmToViemChainMap,
7909
- ef as filterDeadlineExpiredOrders,
7932
+ ef as constructOrderPair,
7933
+ Qa as evmToViemChainMap,
7934
+ tf as filterDeadlineExpiredOrders,
7910
7935
  gr as isExpired,
7911
- El as parseAction,
7936
+ Bl as parseAction,
7912
7937
  es as parseActionFromStatus,
7913
- xl as switchOrAddNetwork,
7914
- vl as validateBTCAddress
7938
+ vl as switchOrAddNetwork,
7939
+ El as validateBTCAddress
7915
7940
  };