@coinflowlabs/vue 0.2.3 → 0.2.4

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.
@@ -32,8 +32,8 @@ rn.byteLength = qc;
32
32
  rn.toByteArray = Vc;
33
33
  rn.fromByteArray = Yc;
34
34
  var Qe = [], De = [], Wc = typeof Uint8Array < "u" ? Uint8Array : Array, Ui = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
35
- for (var Kr = 0, Kc = Ui.length; Kr < Kc; ++Kr)
36
- Qe[Kr] = Ui[Kr], De[Ui.charCodeAt(Kr)] = Kr;
35
+ for (var qr = 0, Kc = Ui.length; qr < Kc; ++qr)
36
+ Qe[qr] = Ui[qr], De[Ui.charCodeAt(qr)] = qr;
37
37
  De["-".charCodeAt(0)] = 62;
38
38
  De["_".charCodeAt(0)] = 63;
39
39
  function Js(o) {
@@ -1367,15 +1367,15 @@ class Eu extends ra {
1367
1367
  const ua = /* @__PURE__ */ yo(() => new Eu());
1368
1368
  /*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */
1369
1369
  const fa = BigInt(0), Xn = BigInt(1), Iu = BigInt(2);
1370
- function Cr(o) {
1370
+ function Lr(o) {
1371
1371
  return o instanceof Uint8Array || o != null && typeof o == "object" && o.constructor.name === "Uint8Array";
1372
1372
  }
1373
1373
  function vn(o) {
1374
- if (!Cr(o))
1374
+ if (!Lr(o))
1375
1375
  throw new Error("Uint8Array expected");
1376
1376
  }
1377
1377
  const Su = /* @__PURE__ */ Array.from({ length: 256 }, (o, t) => t.toString(16).padStart(2, "0"));
1378
- function Lr(o) {
1378
+ function Fr(o) {
1379
1379
  vn(o);
1380
1380
  let t = "";
1381
1381
  for (let e = 0; e < o.length; e++)
@@ -1417,11 +1417,11 @@ function Jr(o) {
1417
1417
  }
1418
1418
  return n;
1419
1419
  }
1420
- function Ur(o) {
1421
- return mo(Lr(o));
1420
+ function Cr(o) {
1421
+ return mo(Fr(o));
1422
1422
  }
1423
1423
  function jr(o) {
1424
- return vn(o), mo(Lr(Uint8Array.from(o).reverse()));
1424
+ return vn(o), mo(Fr(Uint8Array.from(o).reverse()));
1425
1425
  }
1426
1426
  function Xr(o, t) {
1427
1427
  return Jr(o.toString(16).padStart(t * 2, "0"));
@@ -1440,7 +1440,7 @@ function me(o, t, e) {
1440
1440
  } catch (a) {
1441
1441
  throw new Error(`${o} must be valid hex string, got "${t}". Cause: ${a}`);
1442
1442
  }
1443
- else if (Cr(t))
1443
+ else if (Lr(t))
1444
1444
  n = Uint8Array.from(t);
1445
1445
  else
1446
1446
  throw new Error(`${o} must be hex string or Uint8Array`);
@@ -1449,7 +1449,7 @@ function me(o, t, e) {
1449
1449
  throw new Error(`${o} expected ${e} bytes, got ${s}`);
1450
1450
  return n;
1451
1451
  }
1452
- function Fr(...o) {
1452
+ function Or(...o) {
1453
1453
  let t = 0;
1454
1454
  for (let n = 0; n < o.length; n++) {
1455
1455
  const s = o[n];
@@ -1510,7 +1510,7 @@ function la(o, t, e) {
1510
1510
  const T = n.slice();
1511
1511
  M.push(T), I += n.length;
1512
1512
  }
1513
- return Fr(...M);
1513
+ return Or(...M);
1514
1514
  };
1515
1515
  return (I, M) => {
1516
1516
  f(), p(I);
@@ -1525,7 +1525,7 @@ const Mu = {
1525
1525
  function: (o) => typeof o == "function",
1526
1526
  boolean: (o) => typeof o == "boolean",
1527
1527
  string: (o) => typeof o == "string",
1528
- stringOrUint8Array: (o) => typeof o == "string" || Cr(o),
1528
+ stringOrUint8Array: (o) => typeof o == "string" || Lr(o),
1529
1529
  isSafeInteger: (o) => Number.isSafeInteger(o),
1530
1530
  array: (o) => Array.isArray(o),
1531
1531
  field: (o, t) => t.Fp.isValid(o),
@@ -1553,16 +1553,16 @@ const Pu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1553
1553
  bitLen: _u,
1554
1554
  bitMask: wo,
1555
1555
  bitSet: Tu,
1556
- bytesToHex: Lr,
1557
- bytesToNumberBE: Ur,
1556
+ bytesToHex: Fr,
1557
+ bytesToNumberBE: Cr,
1558
1558
  bytesToNumberLE: jr,
1559
- concatBytes: Fr,
1559
+ concatBytes: Or,
1560
1560
  createHmacDrbg: la,
1561
1561
  ensureBytes: me,
1562
1562
  equalBytes: vu,
1563
1563
  hexToBytes: Jr,
1564
1564
  hexToNumber: mo,
1565
- isBytes: Cr,
1565
+ isBytes: Lr,
1566
1566
  numberToBytesBE: Xr,
1567
1567
  numberToBytesLE: yn,
1568
1568
  numberToHexUnpadded: ha,
@@ -1571,7 +1571,7 @@ const Pu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1571
1571
  validateObject: nn
1572
1572
  }, Symbol.toStringTag, { value: "Module" }));
1573
1573
  /*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */
1574
- const ke = BigInt(0), Yt = BigInt(1), Ar = BigInt(2), Uu = BigInt(3), Xi = BigInt(4), ms = BigInt(5), ws = BigInt(8);
1574
+ const ke = BigInt(0), Yt = BigInt(1), _r = BigInt(2), Uu = BigInt(3), Xi = BigInt(4), ms = BigInt(5), ws = BigInt(8);
1575
1575
  BigInt(9);
1576
1576
  BigInt(16);
1577
1577
  function jt(o, t) {
@@ -1607,11 +1607,11 @@ function Qi(o, t) {
1607
1607
  return jt(s, t);
1608
1608
  }
1609
1609
  function Lu(o) {
1610
- const t = (o - Yt) / Ar;
1610
+ const t = (o - Yt) / _r;
1611
1611
  let e, n, s;
1612
- for (e = o - Yt, n = 0; e % Ar === ke; e /= Ar, n++)
1612
+ for (e = o - Yt, n = 0; e % _r === ke; e /= _r, n++)
1613
1613
  ;
1614
- for (s = Ar; s < o && Cu(s, t, o) !== o - Yt; s++)
1614
+ for (s = _r; s < o && Cu(s, t, o) !== o - Yt; s++)
1615
1615
  ;
1616
1616
  if (n === 1) {
1617
1617
  const f = (o + Yt) / Xi;
@@ -1622,7 +1622,7 @@ function Lu(o) {
1622
1622
  return E;
1623
1623
  };
1624
1624
  }
1625
- const a = (e + Yt) / Ar;
1625
+ const a = (e + Yt) / _r;
1626
1626
  return function(u, p) {
1627
1627
  if (u.pow(p, t) === u.neg(u.ONE))
1628
1628
  throw new Error("Cannot find square root");
@@ -1652,7 +1652,7 @@ function Fu(o) {
1652
1652
  if (o % ws === ms) {
1653
1653
  const t = (o - ms) / ws;
1654
1654
  return function(n, s) {
1655
- const a = n.mul(s, Ar), f = n.pow(a, t), u = n.mul(s, f), p = n.mul(n.mul(u, Ar), f), w = n.mul(u, n.sub(p, n.ONE));
1655
+ const a = n.mul(s, _r), f = n.pow(a, t), u = n.mul(s, f), p = n.mul(n.mul(u, _r), f), w = n.mul(u, n.sub(p, n.ONE));
1656
1656
  if (!n.eql(n.sqr(w), s))
1657
1657
  throw new Error("Cannot find square root");
1658
1658
  return w;
@@ -1752,7 +1752,7 @@ function pa(o, t, e = !1, n = {}) {
1752
1752
  fromBytes: (p) => {
1753
1753
  if (p.length !== a)
1754
1754
  throw new Error(`Fp.fromBytes: expected ${a}, got ${p.length}`);
1755
- return e ? jr(p) : Ur(p);
1755
+ return e ? jr(p) : Cr(p);
1756
1756
  }
1757
1757
  });
1758
1758
  return Object.freeze(u);
@@ -1777,7 +1777,7 @@ function Ku(o, t, e = !1) {
1777
1777
  const n = o.length, s = ga(t), a = ya(t);
1778
1778
  if (n < 16 || n < a || n > 1024)
1779
1779
  throw new Error(`expected ${a}-1024 bytes of input, got ${n}`);
1780
- const f = e ? Ur(o) : jr(o), u = jt(f, t - Yt) + Yt;
1780
+ const f = e ? Cr(o) : jr(o), u = jt(f, t - Yt) + Yt;
1781
1781
  return e ? yn(u, s) : Xr(u, s);
1782
1782
  }
1783
1783
  /*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */
@@ -2057,7 +2057,7 @@ function xo(o) {
2057
2057
  return b[b.length - 1] |= B & Fe ? 128 : 0, b;
2058
2058
  }
2059
2059
  toHex() {
2060
- return Lr(this.toRawBytes());
2060
+ return Fr(this.toRawBytes());
2061
2061
  }
2062
2062
  }
2063
2063
  D.BASE = new D(t.Gx, t.Gy, Fe, E(t.Gx * t.Gy)), D.ZERO = new D(qe, Fe, Fe, qe);
@@ -2078,14 +2078,14 @@ function xo(o) {
2078
2078
  return ot(S).pointBytes;
2079
2079
  }
2080
2080
  function R(S = new Uint8Array(), ...B) {
2081
- const P = Fr(...B);
2081
+ const P = Or(...B);
2082
2082
  return gt(a(T(P, me("context", S), !!s)));
2083
2083
  }
2084
2084
  function l(S, B, P = {}) {
2085
2085
  S = me("message", S), s && (S = s(S));
2086
2086
  const { prefix: b, scalar: d, pointBytes: A } = ot(B), Y = R(P.context, b, S), J = F.multiply(Y).toRawBytes(), X = R(P.context, J, A, S), ft = It(Y + X * d);
2087
2087
  $(ft);
2088
- const st = Fr(J, yn(ft, e.BYTES));
2088
+ const st = Or(J, yn(ft, e.BYTES));
2089
2089
  return me("result", st, u * 2);
2090
2090
  }
2091
2091
  const y = Vu;
@@ -4797,7 +4797,7 @@ var bf = Ve && Ve.__createBinding || (Object.create ? function(o, t, e, n) {
4797
4797
  };
4798
4798
  Object.defineProperty(Se, "__esModule", { value: !0 });
4799
4799
  var Ia = Se.deserializeUnchecked = Ra = Se.deserialize = _a = Se.serialize = Se.BinaryReader = Se.BinaryWriter = Se.BorshError = Se.baseDecode = Se.baseEncode = void 0;
4800
- const Er = Ea(ba), Sa = Ea(ka), Ef = kf(wf), If = typeof TextDecoder != "function" ? Ef.TextDecoder : TextDecoder, Sf = new If("utf-8", { fatal: !0 });
4800
+ const Ir = Ea(ba), Sa = Ea(ka), Ef = kf(wf), If = typeof TextDecoder != "function" ? Ef.TextDecoder : TextDecoder, Sf = new If("utf-8", { fatal: !0 });
4801
4801
  function Bf(o) {
4802
4802
  return typeof o == "string" && (o = Buffer.from(o, "utf8")), Sa.default.encode(Buffer.from(o));
4803
4803
  }
@@ -4833,16 +4833,16 @@ class Ba {
4833
4833
  this.maybeResize(), this.buf.writeUInt32LE(t, this.length), this.length += 4;
4834
4834
  }
4835
4835
  writeU64(t) {
4836
- this.maybeResize(), this.writeBuffer(Buffer.from(new Er.default(t).toArray("le", 8)));
4836
+ this.maybeResize(), this.writeBuffer(Buffer.from(new Ir.default(t).toArray("le", 8)));
4837
4837
  }
4838
4838
  writeU128(t) {
4839
- this.maybeResize(), this.writeBuffer(Buffer.from(new Er.default(t).toArray("le", 16)));
4839
+ this.maybeResize(), this.writeBuffer(Buffer.from(new Ir.default(t).toArray("le", 16)));
4840
4840
  }
4841
4841
  writeU256(t) {
4842
- this.maybeResize(), this.writeBuffer(Buffer.from(new Er.default(t).toArray("le", 32)));
4842
+ this.maybeResize(), this.writeBuffer(Buffer.from(new Ir.default(t).toArray("le", 32)));
4843
4843
  }
4844
4844
  writeU512(t) {
4845
- this.maybeResize(), this.writeBuffer(Buffer.from(new Er.default(t).toArray("le", 64)));
4845
+ this.maybeResize(), this.writeBuffer(Buffer.from(new Ir.default(t).toArray("le", 64)));
4846
4846
  }
4847
4847
  writeBuffer(t) {
4848
4848
  this.buf = Buffer.concat([
@@ -4902,19 +4902,19 @@ class ze {
4902
4902
  }
4903
4903
  readU64() {
4904
4904
  const t = this.readBuffer(8);
4905
- return new Er.default(t, "le");
4905
+ return new Ir.default(t, "le");
4906
4906
  }
4907
4907
  readU128() {
4908
4908
  const t = this.readBuffer(16);
4909
- return new Er.default(t, "le");
4909
+ return new Ir.default(t, "le");
4910
4910
  }
4911
4911
  readU256() {
4912
4912
  const t = this.readBuffer(32);
4913
- return new Er.default(t, "le");
4913
+ return new Ir.default(t, "le");
4914
4914
  }
4915
4915
  readU512() {
4916
4916
  const t = this.readBuffer(64);
4917
- return new Er.default(t, "le");
4917
+ return new Ir.default(t, "le");
4918
4918
  }
4919
4919
  readBuffer(t) {
4920
4920
  if (this.offset + t > this.buf.length)
@@ -4974,7 +4974,7 @@ Se.BinaryReader = ze;
4974
4974
  function va(o) {
4975
4975
  return o.charAt(0).toUpperCase() + o.slice(1);
4976
4976
  }
4977
- function _r(o, t, e, n, s) {
4977
+ function Rr(o, t, e, n, s) {
4978
4978
  try {
4979
4979
  if (typeof n == "string")
4980
4980
  s[`write${va(n)}`](e);
@@ -4987,20 +4987,20 @@ function _r(o, t, e, n, s) {
4987
4987
  if (e.length !== n[1])
4988
4988
  throw new Te(`Expecting byte array of length ${n[1]}, but got ${e.length} bytes`);
4989
4989
  for (let a = 0; a < n[1]; a++)
4990
- _r(o, null, e[a], n[0], s);
4990
+ Rr(o, null, e[a], n[0], s);
4991
4991
  } else
4992
4992
  s.writeArray(e, (a) => {
4993
- _r(o, t, a, n[0], s);
4993
+ Rr(o, t, a, n[0], s);
4994
4994
  });
4995
4995
  else if (n.kind !== void 0)
4996
4996
  switch (n.kind) {
4997
4997
  case "option": {
4998
- e == null ? s.writeU8(0) : (s.writeU8(1), _r(o, t, e, n.type, s));
4998
+ e == null ? s.writeU8(0) : (s.writeU8(1), Rr(o, t, e, n.type, s));
4999
4999
  break;
5000
5000
  }
5001
5001
  case "map": {
5002
5002
  s.writeU32(e.size), e.forEach((a, f) => {
5003
- _r(o, t, f, n.key, s), _r(o, t, a, n.value, s);
5003
+ Rr(o, t, f, n.key, s), Rr(o, t, a, n.value, s);
5004
5004
  });
5005
5005
  break;
5006
5006
  }
@@ -5023,14 +5023,14 @@ function Aa(o, t, e) {
5023
5023
  throw new Te(`Class ${t.constructor.name} is missing in schema`);
5024
5024
  if (n.kind === "struct")
5025
5025
  n.fields.map(([s, a]) => {
5026
- _r(o, s, t[s], a, e);
5026
+ Rr(o, s, t[s], a, e);
5027
5027
  });
5028
5028
  else if (n.kind === "enum") {
5029
5029
  const s = t[n.field];
5030
5030
  for (let a = 0; a < n.values.length; ++a) {
5031
5031
  const [f, u] = n.values[a];
5032
5032
  if (f === s) {
5033
- e.writeU8(a), _r(o, f, t[f], u, e);
5033
+ e.writeU8(a), Rr(o, f, t[f], u, e);
5034
5034
  break;
5035
5035
  }
5036
5036
  }
@@ -5042,7 +5042,7 @@ function Af(o, t, e = Ba) {
5042
5042
  return Aa(o, t, n), n.toArray();
5043
5043
  }
5044
5044
  var _a = Se.serialize = Af;
5045
- function Rr(o, t, e, n) {
5045
+ function Tr(o, t, e, n) {
5046
5046
  try {
5047
5047
  if (typeof e == "string")
5048
5048
  return n[`read${va(e)}`]();
@@ -5052,18 +5052,18 @@ function Rr(o, t, e, n) {
5052
5052
  if (typeof e[1] == "number") {
5053
5053
  const s = [];
5054
5054
  for (let a = 0; a < e[1]; a++)
5055
- s.push(Rr(o, null, e[0], n));
5055
+ s.push(Tr(o, null, e[0], n));
5056
5056
  return s;
5057
5057
  } else
5058
- return n.readArray(() => Rr(o, t, e[0], n));
5058
+ return n.readArray(() => Tr(o, t, e[0], n));
5059
5059
  }
5060
5060
  if (e.kind === "option")
5061
- return n.readU8() ? Rr(o, t, e.type, n) : void 0;
5061
+ return n.readU8() ? Tr(o, t, e.type, n) : void 0;
5062
5062
  if (e.kind === "map") {
5063
5063
  let s = /* @__PURE__ */ new Map();
5064
5064
  const a = n.readU32();
5065
5065
  for (let f = 0; f < a; f++) {
5066
- const u = Rr(o, t, e.key, n), p = Rr(o, t, e.value, n);
5066
+ const u = Tr(o, t, e.key, n), p = Tr(o, t, e.value, n);
5067
5067
  s.set(u, p);
5068
5068
  }
5069
5069
  return s;
@@ -5082,14 +5082,14 @@ function Bo(o, t, e) {
5082
5082
  if (n.kind === "struct") {
5083
5083
  const s = {};
5084
5084
  for (const [a, f] of o.get(t).fields)
5085
- s[a] = Rr(o, a, f, e);
5085
+ s[a] = Tr(o, a, f, e);
5086
5086
  return new t(s);
5087
5087
  }
5088
5088
  if (n.kind === "enum") {
5089
5089
  const s = e.readU8();
5090
5090
  if (s >= n.values.length)
5091
5091
  throw new Te(`Enum index: ${s} is out of range`);
5092
- const [a, f] = n.values[s], u = Rr(o, a, f, e);
5092
+ const [a, f] = n.values[s], u = Tr(o, a, f, e);
5093
5093
  return new t({ [a]: u });
5094
5094
  }
5095
5095
  throw new Te(`Unexpected schema kind: ${n.kind} for ${t.constructor.name}`);
@@ -6084,7 +6084,7 @@ var z = {}, Ta = {};
6084
6084
  }
6085
6085
  })(Ta);
6086
6086
  Object.defineProperty(z, "__esModule", { value: !0 });
6087
- z.s16 = z.s8 = z.nu64be = z.u48be = z.u40be = z.u32be = z.u24be = z.u16be = Ie = z.nu64 = z.u48 = z.u40 = at = z.u32 = z.u24 = We = z.u16 = Mt = z.u8 = Br = z.offset = z.greedy = z.Constant = z.UTF8 = z.CString = z.Blob = z.Boolean = z.BitField = z.BitStructure = z.VariantLayout = z.Union = z.UnionLayoutDiscriminator = z.UnionDiscriminator = z.Structure = z.Sequence = z.DoubleBE = z.Double = z.FloatBE = z.Float = z.NearInt64BE = z.NearInt64 = z.NearUInt64BE = z.NearUInt64 = z.IntBE = z.Int = z.UIntBE = z.UInt = z.OffsetLayout = z.GreedyCount = z.ExternalLayout = z.bindConstructorLayout = z.nameWithProperty = z.Layout = z.uint8ArrayToBuffer = z.checkUint8Array = void 0;
6087
+ z.s16 = z.s8 = z.nu64be = z.u48be = z.u40be = z.u32be = z.u24be = z.u16be = Ie = z.nu64 = z.u48 = z.u40 = at = z.u32 = z.u24 = We = z.u16 = Mt = z.u8 = vr = z.offset = z.greedy = z.Constant = z.UTF8 = z.CString = z.Blob = z.Boolean = z.BitField = z.BitStructure = z.VariantLayout = z.Union = z.UnionLayoutDiscriminator = z.UnionDiscriminator = z.Structure = z.Sequence = z.DoubleBE = z.Double = z.FloatBE = z.Float = z.NearInt64BE = z.NearInt64 = z.NearUInt64BE = z.NearUInt64 = z.IntBE = z.Int = z.UIntBE = z.UInt = z.OffsetLayout = z.GreedyCount = z.ExternalLayout = z.bindConstructorLayout = z.nameWithProperty = z.Layout = z.uint8ArrayToBuffer = z.checkUint8Array = void 0;
6088
6088
  z.constant = z.utf8 = z.cstr = Ht = z.blob = z.unionLayoutDiscriminator = z.union = Be = z.seq = z.bits = ct = z.struct = z.f64be = z.f64 = z.f32be = z.f32 = z.ns64be = z.s48be = z.s40be = z.s32be = z.s24be = z.s16be = Oe = z.ns64 = z.s48 = z.s40 = z.s32 = z.s24 = void 0;
6089
6089
  const vo = Ta;
6090
6090
  function sn(o) {
@@ -6302,7 +6302,7 @@ class He extends $t {
6302
6302
  }
6303
6303
  }
6304
6304
  z.UIntBE = He;
6305
- class zr extends $t {
6305
+ class Dr extends $t {
6306
6306
  constructor(t, e) {
6307
6307
  if (super(t, e), 6 < this.span)
6308
6308
  throw new RangeError("span must not exceed 6 bytes");
@@ -6316,7 +6316,7 @@ class zr extends $t {
6316
6316
  return Ct(e).writeIntLE(t, n, this.span), this.span;
6317
6317
  }
6318
6318
  }
6319
- z.Int = zr;
6319
+ z.Int = Dr;
6320
6320
  class an extends $t {
6321
6321
  constructor(t, e) {
6322
6322
  if (super(t, e), 6 < this.span)
@@ -7083,7 +7083,7 @@ class ja extends $t {
7083
7083
  }
7084
7084
  z.Constant = ja;
7085
7085
  z.greedy = (o, t) => new Ma(o, t);
7086
- var Br = z.offset = (o, t, e) => new _o(o, t, e), Mt = z.u8 = (o) => new Ke(1, o), We = z.u16 = (o) => new Ke(2, o);
7086
+ var vr = z.offset = (o, t, e) => new _o(o, t, e), Mt = z.u8 = (o) => new Ke(1, o), We = z.u16 = (o) => new Ke(2, o);
7087
7087
  z.u24 = (o) => new Ke(3, o);
7088
7088
  var at = z.u32 = (o) => new Ke(4, o);
7089
7089
  z.u40 = (o) => new Ke(5, o);
@@ -7095,12 +7095,12 @@ z.u32be = (o) => new He(4, o);
7095
7095
  z.u40be = (o) => new He(5, o);
7096
7096
  z.u48be = (o) => new He(6, o);
7097
7097
  z.nu64be = (o) => new Ua(o);
7098
- z.s8 = (o) => new zr(1, o);
7099
- z.s16 = (o) => new zr(2, o);
7100
- z.s24 = (o) => new zr(3, o);
7101
- z.s32 = (o) => new zr(4, o);
7102
- z.s40 = (o) => new zr(5, o);
7103
- z.s48 = (o) => new zr(6, o);
7098
+ z.s8 = (o) => new Dr(1, o);
7099
+ z.s16 = (o) => new Dr(2, o);
7100
+ z.s24 = (o) => new Dr(3, o);
7101
+ z.s32 = (o) => new Dr(4, o);
7102
+ z.s40 = (o) => new Dr(5, o);
7103
+ z.s48 = (o) => new Dr(6, o);
7104
7104
  var Oe = z.ns64 = (o) => new Ca(o);
7105
7105
  z.s16be = (o) => new an(2, o);
7106
7106
  z.s24be = (o) => new an(3, o);
@@ -7296,11 +7296,11 @@ function _n(o, t, e = {}) {
7296
7296
  f[0] && (yield f[0]);
7297
7297
  }), void 0] : [void 0, s[1]];
7298
7298
  }
7299
- function Dr(o, t) {
7299
+ function $r(o, t) {
7300
7300
  return new cr({ type: o, schema: null, validator: t });
7301
7301
  }
7302
7302
  function $f() {
7303
- return Dr("any", () => !0);
7303
+ return $r("any", () => !0);
7304
7304
  }
7305
7305
  function nt(o) {
7306
7306
  return new cr({
@@ -7320,10 +7320,10 @@ function nt(o) {
7320
7320
  });
7321
7321
  }
7322
7322
  function ir() {
7323
- return Dr("boolean", (o) => typeof o == "boolean");
7323
+ return $r("boolean", (o) => typeof o == "boolean");
7324
7324
  }
7325
7325
  function Co(o) {
7326
- return Dr("instance", (t) => t instanceof o || `Expected a \`${o.name}\` instance, but received: ${je(t)}`);
7326
+ return $r("instance", (t) => t instanceof o || `Expected a \`${o.name}\` instance, but received: ${je(t)}`);
7327
7327
  }
7328
7328
  function Gt(o) {
7329
7329
  const t = je(o), e = typeof o;
@@ -7336,7 +7336,7 @@ function Gt(o) {
7336
7336
  });
7337
7337
  }
7338
7338
  function Wf() {
7339
- return Dr("never", () => !1);
7339
+ return $r("never", () => !1);
7340
7340
  }
7341
7341
  function rt(o) {
7342
7342
  return new cr({
@@ -7346,7 +7346,7 @@ function rt(o) {
7346
7346
  });
7347
7347
  }
7348
7348
  function O() {
7349
- return Dr("number", (o) => typeof o == "number" && !isNaN(o) || `Expected a number, but received: ${je(o)}`);
7349
+ return $r("number", (o) => typeof o == "number" && !isNaN(o) || `Expected a number, but received: ${je(o)}`);
7350
7350
  }
7351
7351
  function pt(o) {
7352
7352
  return new cr({
@@ -7372,7 +7372,7 @@ function Ja(o, t) {
7372
7372
  });
7373
7373
  }
7374
7374
  function Q() {
7375
- return Dr("string", (o) => typeof o == "string" || `Expected a string, but received: ${je(o)}`);
7375
+ return $r("string", (o) => typeof o == "string" || `Expected a string, but received: ${je(o)}`);
7376
7376
  }
7377
7377
  function Lo(o) {
7378
7378
  const t = Wf();
@@ -7440,7 +7440,7 @@ function Le(o) {
7440
7440
  });
7441
7441
  }
7442
7442
  function Rn() {
7443
- return Dr("unknown", () => !0);
7443
+ return $r("unknown", () => !0);
7444
7444
  }
7445
7445
  function Tn(o, t, e) {
7446
7446
  return new cr({
@@ -7543,7 +7543,7 @@ function Jf(o, t) {
7543
7543
  o[t >> 5] |= 128 << t % 32, o[ec(t) - 1] = t;
7544
7544
  for (var e = 1732584193, n = -271733879, s = -1732584194, a = 271733878, f = 0; f < o.length; f += 16) {
7545
7545
  var u = e, p = n, w = s, E = a;
7546
- e = ve(e, n, s, a, o[f], 7, -680876936), a = ve(a, e, n, s, o[f + 1], 12, -389564586), s = ve(s, a, e, n, o[f + 2], 17, 606105819), n = ve(n, s, a, e, o[f + 3], 22, -1044525330), e = ve(e, n, s, a, o[f + 4], 7, -176418897), a = ve(a, e, n, s, o[f + 5], 12, 1200080426), s = ve(s, a, e, n, o[f + 6], 17, -1473231341), n = ve(n, s, a, e, o[f + 7], 22, -45705983), e = ve(e, n, s, a, o[f + 8], 7, 1770035416), a = ve(a, e, n, s, o[f + 9], 12, -1958414417), s = ve(s, a, e, n, o[f + 10], 17, -42063), n = ve(n, s, a, e, o[f + 11], 22, -1990404162), e = ve(e, n, s, a, o[f + 12], 7, 1804603682), a = ve(a, e, n, s, o[f + 13], 12, -40341101), s = ve(s, a, e, n, o[f + 14], 17, -1502002290), n = ve(n, s, a, e, o[f + 15], 22, 1236535329), e = Ae(e, n, s, a, o[f + 1], 5, -165796510), a = Ae(a, e, n, s, o[f + 6], 9, -1069501632), s = Ae(s, a, e, n, o[f + 11], 14, 643717713), n = Ae(n, s, a, e, o[f], 20, -373897302), e = Ae(e, n, s, a, o[f + 5], 5, -701558691), a = Ae(a, e, n, s, o[f + 10], 9, 38016083), s = Ae(s, a, e, n, o[f + 15], 14, -660478335), n = Ae(n, s, a, e, o[f + 4], 20, -405537848), e = Ae(e, n, s, a, o[f + 9], 5, 568446438), a = Ae(a, e, n, s, o[f + 14], 9, -1019803690), s = Ae(s, a, e, n, o[f + 3], 14, -187363961), n = Ae(n, s, a, e, o[f + 8], 20, 1163531501), e = Ae(e, n, s, a, o[f + 13], 5, -1444681467), a = Ae(a, e, n, s, o[f + 2], 9, -51403784), s = Ae(s, a, e, n, o[f + 7], 14, 1735328473), n = Ae(n, s, a, e, o[f + 12], 20, -1926607734), e = _e(e, n, s, a, o[f + 5], 4, -378558), a = _e(a, e, n, s, o[f + 8], 11, -2022574463), s = _e(s, a, e, n, o[f + 11], 16, 1839030562), n = _e(n, s, a, e, o[f + 14], 23, -35309556), e = _e(e, n, s, a, o[f + 1], 4, -1530992060), a = _e(a, e, n, s, o[f + 4], 11, 1272893353), s = _e(s, a, e, n, o[f + 7], 16, -155497632), n = _e(n, s, a, e, o[f + 10], 23, -1094730640), e = _e(e, n, s, a, o[f + 13], 4, 681279174), a = _e(a, e, n, s, o[f], 11, -358537222), s = _e(s, a, e, n, o[f + 3], 16, -722521979), n = _e(n, s, a, e, o[f + 6], 23, 76029189), e = _e(e, n, s, a, o[f + 9], 4, -640364487), a = _e(a, e, n, s, o[f + 12], 11, -421815835), s = _e(s, a, e, n, o[f + 15], 16, 530742520), n = _e(n, s, a, e, o[f + 2], 23, -995338651), e = Re(e, n, s, a, o[f], 6, -198630844), a = Re(a, e, n, s, o[f + 7], 10, 1126891415), s = Re(s, a, e, n, o[f + 14], 15, -1416354905), n = Re(n, s, a, e, o[f + 5], 21, -57434055), e = Re(e, n, s, a, o[f + 12], 6, 1700485571), a = Re(a, e, n, s, o[f + 3], 10, -1894986606), s = Re(s, a, e, n, o[f + 10], 15, -1051523), n = Re(n, s, a, e, o[f + 1], 21, -2054922799), e = Re(e, n, s, a, o[f + 8], 6, 1873313359), a = Re(a, e, n, s, o[f + 15], 10, -30611744), s = Re(s, a, e, n, o[f + 6], 15, -1560198380), n = Re(n, s, a, e, o[f + 13], 21, 1309151649), e = Re(e, n, s, a, o[f + 4], 6, -145523070), a = Re(a, e, n, s, o[f + 11], 10, -1120210379), s = Re(s, a, e, n, o[f + 2], 15, 718787259), n = Re(n, s, a, e, o[f + 9], 21, -343485551), e = Ir(e, u), n = Ir(n, p), s = Ir(s, w), a = Ir(a, E);
7546
+ e = ve(e, n, s, a, o[f], 7, -680876936), a = ve(a, e, n, s, o[f + 1], 12, -389564586), s = ve(s, a, e, n, o[f + 2], 17, 606105819), n = ve(n, s, a, e, o[f + 3], 22, -1044525330), e = ve(e, n, s, a, o[f + 4], 7, -176418897), a = ve(a, e, n, s, o[f + 5], 12, 1200080426), s = ve(s, a, e, n, o[f + 6], 17, -1473231341), n = ve(n, s, a, e, o[f + 7], 22, -45705983), e = ve(e, n, s, a, o[f + 8], 7, 1770035416), a = ve(a, e, n, s, o[f + 9], 12, -1958414417), s = ve(s, a, e, n, o[f + 10], 17, -42063), n = ve(n, s, a, e, o[f + 11], 22, -1990404162), e = ve(e, n, s, a, o[f + 12], 7, 1804603682), a = ve(a, e, n, s, o[f + 13], 12, -40341101), s = ve(s, a, e, n, o[f + 14], 17, -1502002290), n = ve(n, s, a, e, o[f + 15], 22, 1236535329), e = Ae(e, n, s, a, o[f + 1], 5, -165796510), a = Ae(a, e, n, s, o[f + 6], 9, -1069501632), s = Ae(s, a, e, n, o[f + 11], 14, 643717713), n = Ae(n, s, a, e, o[f], 20, -373897302), e = Ae(e, n, s, a, o[f + 5], 5, -701558691), a = Ae(a, e, n, s, o[f + 10], 9, 38016083), s = Ae(s, a, e, n, o[f + 15], 14, -660478335), n = Ae(n, s, a, e, o[f + 4], 20, -405537848), e = Ae(e, n, s, a, o[f + 9], 5, 568446438), a = Ae(a, e, n, s, o[f + 14], 9, -1019803690), s = Ae(s, a, e, n, o[f + 3], 14, -187363961), n = Ae(n, s, a, e, o[f + 8], 20, 1163531501), e = Ae(e, n, s, a, o[f + 13], 5, -1444681467), a = Ae(a, e, n, s, o[f + 2], 9, -51403784), s = Ae(s, a, e, n, o[f + 7], 14, 1735328473), n = Ae(n, s, a, e, o[f + 12], 20, -1926607734), e = _e(e, n, s, a, o[f + 5], 4, -378558), a = _e(a, e, n, s, o[f + 8], 11, -2022574463), s = _e(s, a, e, n, o[f + 11], 16, 1839030562), n = _e(n, s, a, e, o[f + 14], 23, -35309556), e = _e(e, n, s, a, o[f + 1], 4, -1530992060), a = _e(a, e, n, s, o[f + 4], 11, 1272893353), s = _e(s, a, e, n, o[f + 7], 16, -155497632), n = _e(n, s, a, e, o[f + 10], 23, -1094730640), e = _e(e, n, s, a, o[f + 13], 4, 681279174), a = _e(a, e, n, s, o[f], 11, -358537222), s = _e(s, a, e, n, o[f + 3], 16, -722521979), n = _e(n, s, a, e, o[f + 6], 23, 76029189), e = _e(e, n, s, a, o[f + 9], 4, -640364487), a = _e(a, e, n, s, o[f + 12], 11, -421815835), s = _e(s, a, e, n, o[f + 15], 16, 530742520), n = _e(n, s, a, e, o[f + 2], 23, -995338651), e = Re(e, n, s, a, o[f], 6, -198630844), a = Re(a, e, n, s, o[f + 7], 10, 1126891415), s = Re(s, a, e, n, o[f + 14], 15, -1416354905), n = Re(n, s, a, e, o[f + 5], 21, -57434055), e = Re(e, n, s, a, o[f + 12], 6, 1700485571), a = Re(a, e, n, s, o[f + 3], 10, -1894986606), s = Re(s, a, e, n, o[f + 10], 15, -1051523), n = Re(n, s, a, e, o[f + 1], 21, -2054922799), e = Re(e, n, s, a, o[f + 8], 6, 1873313359), a = Re(a, e, n, s, o[f + 15], 10, -30611744), s = Re(s, a, e, n, o[f + 6], 15, -1560198380), n = Re(n, s, a, e, o[f + 13], 21, 1309151649), e = Re(e, n, s, a, o[f + 4], 6, -145523070), a = Re(a, e, n, s, o[f + 11], 10, -1120210379), s = Re(s, a, e, n, o[f + 2], 15, 718787259), n = Re(n, s, a, e, o[f + 9], 21, -343485551), e = Sr(e, u), n = Sr(n, p), s = Sr(s, w), a = Sr(a, E);
7547
7547
  }
7548
7548
  return [e, n, s, a];
7549
7549
  }
@@ -7554,7 +7554,7 @@ function Xf(o) {
7554
7554
  e[n >> 5] |= (o[n / 8] & 255) << n % 32;
7555
7555
  return e;
7556
7556
  }
7557
- function Ir(o, t) {
7557
+ function Sr(o, t) {
7558
7558
  var e = (o & 65535) + (t & 65535), n = (o >> 16) + (t >> 16) + (e >> 16);
7559
7559
  return n << 16 | e & 65535;
7560
7560
  }
@@ -7562,7 +7562,7 @@ function Qf(o, t) {
7562
7562
  return o << t | o >>> 32 - t;
7563
7563
  }
7564
7564
  function ii(o, t, e, n, s, a) {
7565
- return Ir(Qf(Ir(Ir(t, o), Ir(n, a)), s), e);
7565
+ return Sr(Qf(Sr(Sr(t, o), Sr(n, a)), s), e);
7566
7566
  }
7567
7567
  function ve(o, t, e, n, s, a, f) {
7568
7568
  return ii(t & e | ~t & n, o, t, s, a, f);
@@ -8286,7 +8286,7 @@ function Mh(o) {
8286
8286
  }
8287
8287
  return Object.freeze({ ...t });
8288
8288
  }
8289
- const { bytesToNumberBE: Ph, hexToBytes: Uh } = Pu, Mr = {
8289
+ const { bytesToNumberBE: Ph, hexToBytes: Uh } = Pu, Pr = {
8290
8290
  // asn.1 DER encoding utils
8291
8291
  Err: class extends Error {
8292
8292
  constructor(t = "") {
@@ -8294,7 +8294,7 @@ const { bytesToNumberBE: Ph, hexToBytes: Uh } = Pu, Mr = {
8294
8294
  }
8295
8295
  },
8296
8296
  _parseInt(o) {
8297
- const { Err: t } = Mr;
8297
+ const { Err: t } = Pr;
8298
8298
  if (o.length < 2 || o[0] !== 2)
8299
8299
  throw new t("Invalid signature integer tag");
8300
8300
  const e = o[1], n = o.subarray(2, e + 2);
@@ -8307,14 +8307,14 @@ const { bytesToNumberBE: Ph, hexToBytes: Uh } = Pu, Mr = {
8307
8307
  return { d: Ph(n), l: o.subarray(e + 2) };
8308
8308
  },
8309
8309
  toSig(o) {
8310
- const { Err: t } = Mr, e = typeof o == "string" ? Uh(o) : o;
8310
+ const { Err: t } = Pr, e = typeof o == "string" ? Uh(o) : o;
8311
8311
  vn(e);
8312
8312
  let n = e.length;
8313
8313
  if (n < 2 || e[0] != 48)
8314
8314
  throw new t("Invalid signature tag");
8315
8315
  if (e[1] !== n - 2)
8316
8316
  throw new t("Invalid signature: incorrect length");
8317
- const { d: s, l: a } = Mr._parseInt(e.subarray(2)), { d: f, l: u } = Mr._parseInt(a);
8317
+ const { d: s, l: a } = Pr._parseInt(e.subarray(2)), { d: f, l: u } = Pr._parseInt(a);
8318
8318
  if (u.length)
8319
8319
  throw new t("Invalid signature: left bytes after parsing");
8320
8320
  return { r: s, s: f };
@@ -8333,7 +8333,7 @@ BigInt(4);
8333
8333
  function Ch(o) {
8334
8334
  const t = Mh(o), { Fp: e } = t, n = t.toBytes || ((C, _, U) => {
8335
8335
  const L = _.toAffine();
8336
- return Fr(Uint8Array.from([4]), e.toBytes(L.x), e.toBytes(L.y));
8336
+ return Or(Uint8Array.from([4]), e.toBytes(L.x), e.toBytes(L.y));
8337
8337
  }), s = t.fromBytes || ((C) => {
8338
8338
  const _ = C.subarray(1), U = e.fromBytes(_.subarray(0, e.BYTES)), L = e.fromBytes(_.subarray(e.BYTES, 2 * e.BYTES));
8339
8339
  return { x: U, y: L };
@@ -8354,13 +8354,13 @@ function Ch(o) {
8354
8354
  function p(C) {
8355
8355
  const { allowedPrivateKeyLengths: _, nByteLength: U, wrapPrivateKey: L, n: $ } = t;
8356
8356
  if (_ && typeof C != "bigint") {
8357
- if (Cr(C) && (C = Lr(C)), typeof C != "string" || !_.includes(C.length))
8357
+ if (Lr(C) && (C = Fr(C)), typeof C != "string" || !_.includes(C.length))
8358
8358
  throw new Error("Invalid key");
8359
8359
  C = C.padStart(U * 2, "0");
8360
8360
  }
8361
8361
  let N;
8362
8362
  try {
8363
- N = typeof C == "bigint" ? C : Ur(me("private key", C, U));
8363
+ N = typeof C == "bigint" ? C : Cr(me("private key", C, U));
8364
8364
  } catch {
8365
8365
  throw new Error(`private key must be ${U} bytes, hex or bigint, not ${typeof C}`);
8366
8366
  }
@@ -8575,7 +8575,7 @@ function Ch(o) {
8575
8575
  return this.assertValidity(), n(I, this, _);
8576
8576
  }
8577
8577
  toHex(_ = !0) {
8578
- return Lr(this.toRawBytes(_));
8578
+ return Fr(this.toRawBytes(_));
8579
8579
  }
8580
8580
  }
8581
8581
  I.BASE = new I(t.Gx, t.Gy, e.ONE), I.ZERO = new I(e.ZERO, e.ONE, e.ZERO);
@@ -8614,13 +8614,13 @@ function Fh(o) {
8614
8614
  const { ProjectivePoint: w, normPrivateKeyToScalar: E, weierstrassEquation: I, isWithinCurveOrder: M } = Ch({
8615
8615
  ...t,
8616
8616
  toBytes(y, k, v) {
8617
- const S = k.toAffine(), B = e.toBytes(S.x), P = Fr;
8617
+ const S = k.toAffine(), B = e.toBytes(S.x), P = Or;
8618
8618
  return v ? P(Uint8Array.from([k.hasEvenY() ? 2 : 3]), B) : P(Uint8Array.from([4]), B, e.toBytes(S.y));
8619
8619
  },
8620
8620
  fromBytes(y) {
8621
8621
  const k = y.length, v = y[0], S = y.subarray(1);
8622
8622
  if (k === s && (v === 2 || v === 3)) {
8623
- const B = Ur(S);
8623
+ const B = Cr(S);
8624
8624
  if (!f(B))
8625
8625
  throw new Error("Point is not on curve");
8626
8626
  const P = I(B);
@@ -8639,7 +8639,7 @@ function Fh(o) {
8639
8639
  } else
8640
8640
  throw new Error(`Point of length ${k} was invalid. Expected ${s} compressed bytes or ${a} uncompressed bytes`);
8641
8641
  }
8642
- }), T = (y) => Lr(Xr(y, t.nByteLength));
8642
+ }), T = (y) => Fr(Xr(y, t.nByteLength));
8643
8643
  function C(y) {
8644
8644
  const k = n >> $e;
8645
8645
  return y > k;
@@ -8647,7 +8647,7 @@ function Fh(o) {
8647
8647
  function _(y) {
8648
8648
  return C(y) ? u(-y) : y;
8649
8649
  }
8650
- const U = (y, k, v) => Ur(y.slice(k, v));
8650
+ const U = (y, k, v) => Cr(y.slice(k, v));
8651
8651
  class L {
8652
8652
  constructor(k, v, S) {
8653
8653
  this.r = k, this.s = v, this.recovery = S, this.assertValidity();
@@ -8660,7 +8660,7 @@ function Fh(o) {
8660
8660
  // DER encoded ECDSA signature
8661
8661
  // https://bitcoin.stackexchange.com/questions/57644/what-are-the-parts-of-a-bitcoin-transaction-input-script
8662
8662
  static fromDER(k) {
8663
- const { r: v, s: S } = Mr.toSig(me("DER", k));
8663
+ const { r: v, s: S } = Pr.toSig(me("DER", k));
8664
8664
  return new L(v, S);
8665
8665
  }
8666
8666
  assertValidity() {
@@ -8696,7 +8696,7 @@ function Fh(o) {
8696
8696
  return Jr(this.toDERHex());
8697
8697
  }
8698
8698
  toDERHex() {
8699
- return Mr.hexFromSig({ r: this.r, s: this.s });
8699
+ return Pr.hexFromSig({ r: this.r, s: this.s });
8700
8700
  }
8701
8701
  // padded bytes of r, then padded bytes of s
8702
8702
  toCompactRawBytes() {
@@ -8739,7 +8739,7 @@ function Fh(o) {
8739
8739
  return w.fromPrivateKey(y).toRawBytes(k);
8740
8740
  }
8741
8741
  function H(y) {
8742
- const k = Cr(y), v = typeof y == "string", S = (k || v) && y.length;
8742
+ const k = Lr(y), v = typeof y == "string", S = (k || v) && y.length;
8743
8743
  return k ? S === s || S === a : v ? S === 2 * s || S === 2 * a : y instanceof w;
8744
8744
  }
8745
8745
  function D(y, k, v = !0) {
@@ -8750,7 +8750,7 @@ function Fh(o) {
8750
8750
  return w.fromHex(k).multiply(E(y)).toRawBytes(v);
8751
8751
  }
8752
8752
  const F = t.bits2int || function(y) {
8753
- const k = Ur(y), v = y.length * 8 - t.nBitLength;
8753
+ const k = Cr(y), v = y.length * 8 - t.nBitLength;
8754
8754
  return v > 0 ? k >> BigInt(v) : k;
8755
8755
  }, W = t.bits2int_modN || function(y) {
8756
8756
  return u(F(y));
@@ -8773,7 +8773,7 @@ function Fh(o) {
8773
8773
  const ht = d === !0 ? B(e.BYTES) : d;
8774
8774
  J.push(me("extraEntropy", ht));
8775
8775
  }
8776
- const X = Fr(...J), ft = A;
8776
+ const X = Or(...J), ft = A;
8777
8777
  function st(ht) {
8778
8778
  const zt = F(ht);
8779
8779
  if (!M(zt))
@@ -8803,11 +8803,11 @@ function Fh(o) {
8803
8803
  const { lowS: P, prehash: b } = S;
8804
8804
  let d, A;
8805
8805
  try {
8806
- if (typeof B == "string" || Cr(B))
8806
+ if (typeof B == "string" || Lr(B))
8807
8807
  try {
8808
8808
  d = L.fromDER(B);
8809
8809
  } catch (mt) {
8810
- if (!(mt instanceof Mr.Err))
8810
+ if (!(mt instanceof Pr.Err))
8811
8811
  throw mt;
8812
8812
  d = L.fromCompact(B);
8813
8813
  }
@@ -9164,7 +9164,7 @@ class Hh {
9164
9164
  return lt.Buffer.concat([this._secretKey, this._publicKey], 64);
9165
9165
  }
9166
9166
  }
9167
- const Vh = new tt("BPFLoader1111111111111111111111111111111111"), vr = 1280 - 40 - 8, si = 127, wn = 64;
9167
+ const Vh = new tt("BPFLoader1111111111111111111111111111111111"), Ar = 1280 - 40 - 8, si = 127, wn = 64;
9168
9168
  class zo extends Error {
9169
9169
  constructor(t) {
9170
9170
  super(`Signature ${t} has expired: block height exceeded.`), this.signature = void 0, this.signature = t;
@@ -9227,15 +9227,15 @@ class bn {
9227
9227
  }));
9228
9228
  }
9229
9229
  }
9230
- const vt = (o = "publicKey") => Ht(32, o), jh = (o = "signature") => Ht(64, o), Pr = (o = "string") => {
9231
- const t = ct([at("length"), at("lengthPadding"), Ht(Br(at(), -8), "chars")], o), e = t.decode.bind(t), n = t.encode.bind(t), s = t;
9230
+ const vt = (o = "publicKey") => Ht(32, o), jh = (o = "signature") => Ht(64, o), Ur = (o = "string") => {
9231
+ const t = ct([at("length"), at("lengthPadding"), Ht(vr(at(), -8), "chars")], o), e = t.decode.bind(t), n = t.encode.bind(t), s = t;
9232
9232
  return s.decode = (a, f) => e(a, f).chars.toString(), s.encode = (a, f, u) => {
9233
9233
  const p = {
9234
9234
  chars: lt.Buffer.from(a, "utf8")
9235
9235
  };
9236
9236
  return n(p, f, u);
9237
9237
  }, s.alloc = (a) => at().span + at().span + lt.Buffer.from(a, "utf8").length, s;
9238
- }, Gh = (o = "authorized") => ct([vt("staker"), vt("withdrawer")], o), Yh = (o = "lockup") => ct([Oe("unixTimestamp"), Oe("epoch"), vt("custodian")], o), Zh = (o = "voteInit") => ct([vt("nodePubkey"), vt("authorizedVoter"), vt("authorizedWithdrawer"), Mt("commission")], o), Jh = (o = "voteAuthorizeWithSeedArgs") => ct([at("voteAuthorizationType"), vt("currentAuthorityDerivedKeyOwnerPubkey"), Pr("currentAuthorityDerivedKeySeed"), vt("newAuthorized")], o);
9238
+ }, Gh = (o = "authorized") => ct([vt("staker"), vt("withdrawer")], o), Yh = (o = "lockup") => ct([Oe("unixTimestamp"), Oe("epoch"), vt("custodian")], o), Zh = (o = "voteInit") => ct([vt("nodePubkey"), vt("authorizedVoter"), vt("authorizedWithdrawer"), Mt("commission")], o), Jh = (o = "voteAuthorizeWithSeedArgs") => ct([at("voteAuthorizationType"), vt("currentAuthorityDerivedKeyOwnerPubkey"), Ur("currentAuthorityDerivedKeySeed"), vt("newAuthorized")], o);
9239
9239
  function dc(o, t) {
9240
9240
  const e = (s) => {
9241
9241
  if (s.span >= 0)
@@ -9436,7 +9436,7 @@ class Ge {
9436
9436
  });
9437
9437
  let s = [];
9438
9438
  Ne(s, n.length);
9439
- let a = lt.Buffer.alloc(vr);
9439
+ let a = lt.Buffer.alloc(Ar);
9440
9440
  lt.Buffer.from(s).copy(a);
9441
9441
  let f = s.length;
9442
9442
  n.forEach((I) => {
@@ -9492,7 +9492,7 @@ class Ge {
9492
9492
  return new Ge(I);
9493
9493
  }
9494
9494
  }
9495
- class Or {
9495
+ class Nr {
9496
9496
  constructor(t) {
9497
9497
  this.header = void 0, this.staticAccountKeys = void 0, this.recentBlockhash = void 0, this.compiledInstructions = void 0, this.addressTableLookups = void 0, this.header = t.header, this.staticAccountKeys = t.staticAccountKeys, this.recentBlockhash = t.recentBlockhash, this.compiledInstructions = t.compiledInstructions, this.addressTableLookups = t.addressTableLookups;
9498
9498
  }
@@ -9571,7 +9571,7 @@ class Or {
9571
9571
  }
9572
9572
  }
9573
9573
  const [f, u] = e.getMessageComponents(), w = new bn(u, s).compileInstructions(t.instructions);
9574
- return new Or({
9574
+ return new Nr({
9575
9575
  header: f,
9576
9576
  staticAccountKeys: u,
9577
9577
  recentBlockhash: t.recentBlockhash,
@@ -9586,7 +9586,7 @@ class Or {
9586
9586
  Ne(n, this.compiledInstructions.length);
9587
9587
  const s = this.serializeAddressTableLookups(), a = Array();
9588
9588
  Ne(a, this.addressTableLookups.length);
9589
- const f = ct([Mt("prefix"), ct([Mt("numRequiredSignatures"), Mt("numReadonlySignedAccounts"), Mt("numReadonlyUnsignedAccounts")], "header"), Ht(t.length, "staticAccountKeysLength"), Be(vt(), this.staticAccountKeys.length, "staticAccountKeys"), vt("recentBlockhash"), Ht(n.length, "instructionsLength"), Ht(e.length, "serializedInstructions"), Ht(a.length, "addressTableLookupsLength"), Ht(s.length, "serializedAddressTableLookups")]), u = new Uint8Array(vr), p = 128, w = f.encode({
9589
+ const f = ct([Mt("prefix"), ct([Mt("numRequiredSignatures"), Mt("numReadonlySignedAccounts"), Mt("numReadonlyUnsignedAccounts")], "header"), Ht(t.length, "staticAccountKeysLength"), Be(vt(), this.staticAccountKeys.length, "staticAccountKeys"), vt("recentBlockhash"), Ht(n.length, "instructionsLength"), Ht(e.length, "serializedInstructions"), Ht(a.length, "addressTableLookupsLength"), Ht(s.length, "serializedAddressTableLookups")]), u = new Uint8Array(Ar), p = 128, w = f.encode({
9590
9590
  prefix: p,
9591
9591
  header: this.header,
9592
9592
  staticAccountKeysLength: new Uint8Array(t),
@@ -9601,7 +9601,7 @@ class Or {
9601
9601
  }
9602
9602
  serializeInstructions() {
9603
9603
  let t = 0;
9604
- const e = new Uint8Array(vr);
9604
+ const e = new Uint8Array(Ar);
9605
9605
  for (const n of this.compiledInstructions) {
9606
9606
  const s = Array();
9607
9607
  Ne(s, n.accountKeyIndexes.length);
@@ -9620,7 +9620,7 @@ class Or {
9620
9620
  }
9621
9621
  serializeAddressTableLookups() {
9622
9622
  let t = 0;
9623
- const e = new Uint8Array(vr);
9623
+ const e = new Uint8Array(Ar);
9624
9624
  for (const n of this.addressTableLookups) {
9625
9625
  const s = Array();
9626
9626
  Ne(s, n.writableIndexes.length);
@@ -9668,7 +9668,7 @@ class Or {
9668
9668
  readonlyIndexes: N
9669
9669
  });
9670
9670
  }
9671
- return new Or({
9671
+ return new Nr({
9672
9672
  header: f,
9673
9673
  staticAccountKeys: u,
9674
9674
  recentBlockhash: w,
@@ -9687,7 +9687,7 @@ const $o = {
9687
9687
  if (t === "legacy")
9688
9688
  return Ge.from(o);
9689
9689
  if (t === 0)
9690
- return Or.deserialize(o);
9690
+ return Nr.deserialize(o);
9691
9691
  throw new Error(`Transaction message version ${t} deserialization is not supported`);
9692
9692
  }
9693
9693
  };
@@ -10086,7 +10086,7 @@ Missing signature for public key${a.missing.length === 1 ? "" : "(s)"} [\`${a.mi
10086
10086
  signature: f
10087
10087
  }, u) => {
10088
10088
  f !== null && (Ut(f.length === 64, "signature has invalid length"), lt.Buffer.from(f).copy(a, n.length + u * 64));
10089
- }), t.copy(a, n.length + e.length * 64), Ut(a.length <= vr, `Transaction too large: ${a.length} > ${vr}`), a;
10089
+ }), t.copy(a, n.length + e.length * 64), Ut(a.length <= Ar, `Transaction too large: ${a.length} > ${Ar}`), a;
10090
10090
  }
10091
10091
  /**
10092
10092
  * Deprecated method
@@ -10218,7 +10218,7 @@ class Wo {
10218
10218
  });
10219
10219
  }
10220
10220
  compileToV0Message(t) {
10221
- return Or.compile({
10221
+ return Nr.compile({
10222
10222
  payerKey: this.payerKey,
10223
10223
  recentBlockhash: this.recentBlockhash,
10224
10224
  instructions: this.instructions,
@@ -10385,7 +10385,7 @@ async function so(o, t, e, n) {
10385
10385
  }) : new Error(`Transaction ${a} failed (${JSON.stringify(f)})`);
10386
10386
  return a;
10387
10387
  }
10388
- function Tr(o) {
10388
+ function Mr(o) {
10389
10389
  return new Promise((t) => setTimeout(t, o));
10390
10390
  }
10391
10391
  function Tt(o, t) {
@@ -10685,7 +10685,7 @@ const qt = Object.freeze({
10685
10685
  },
10686
10686
  CreateWithSeed: {
10687
10687
  index: 3,
10688
- layout: ct([at("instruction"), vt("base"), Pr("seed"), Oe("lamports"), Oe("space"), vt("programId")])
10688
+ layout: ct([at("instruction"), vt("base"), Ur("seed"), Oe("lamports"), Oe("space"), vt("programId")])
10689
10689
  },
10690
10690
  AdvanceNonceAccount: {
10691
10691
  index: 4,
@@ -10709,15 +10709,15 @@ const qt = Object.freeze({
10709
10709
  },
10710
10710
  AllocateWithSeed: {
10711
10711
  index: 9,
10712
- layout: ct([at("instruction"), vt("base"), Pr("seed"), Oe("space"), vt("programId")])
10712
+ layout: ct([at("instruction"), vt("base"), Ur("seed"), Oe("space"), vt("programId")])
10713
10713
  },
10714
10714
  AssignWithSeed: {
10715
10715
  index: 10,
10716
- layout: ct([at("instruction"), vt("base"), Pr("seed"), vt("programId")])
10716
+ layout: ct([at("instruction"), vt("base"), Ur("seed"), vt("programId")])
10717
10717
  },
10718
10718
  TransferWithSeed: {
10719
10719
  index: 11,
10720
- layout: ct([at("instruction"), en("lamports"), Pr("seed"), vt("programId")])
10720
+ layout: ct([at("instruction"), en("lamports"), Ur("seed"), vt("programId")])
10721
10721
  },
10722
10722
  UpgradeNonceAccount: {
10723
10723
  index: 12,
@@ -11035,8 +11035,8 @@ class xe {
11035
11035
  }
11036
11036
  }
11037
11037
  xe.programId = new tt("11111111111111111111111111111111");
11038
- const hl = vr - 300;
11039
- class Nr {
11038
+ const hl = Ar - 300;
11039
+ class zr {
11040
11040
  /**
11041
11041
  * @internal
11042
11042
  */
@@ -11053,7 +11053,7 @@ class Nr {
11053
11053
  */
11054
11054
  static getMinNumSignatures(t) {
11055
11055
  return 2 * // Every transaction requires two signatures (payer + program)
11056
- (Math.ceil(t / Nr.chunkSize) + 1 + // Add one for Create transaction
11056
+ (Math.ceil(t / zr.chunkSize) + 1 + // Add one for Create transaction
11057
11057
  1);
11058
11058
  }
11059
11059
  /**
@@ -11096,7 +11096,7 @@ class Nr {
11096
11096
  commitment: "confirmed"
11097
11097
  });
11098
11098
  }
11099
- const f = ct([at("instruction"), at("offset"), at("bytesLength"), at("bytesLengthPadding"), Be(Mt("byte"), Br(at(), -8), "bytes")]), u = Nr.chunkSize;
11099
+ const f = ct([at("instruction"), at("offset"), at("bytesLength"), at("bytesLengthPadding"), Be(Mt("byte"), vr(at(), -8), "bytes")]), u = zr.chunkSize;
11100
11100
  let p = 0, w = a, E = [];
11101
11101
  for (; w.length > 0; ) {
11102
11102
  const I = w.slice(0, u), M = lt.Buffer.alloc(u + 16);
@@ -11119,7 +11119,7 @@ class Nr {
11119
11119
  });
11120
11120
  E.push(so(t, T, [e, n], {
11121
11121
  commitment: "confirmed"
11122
- })), t._rpcEndpoint.includes("solana.com") && await Tr(1e3 / 4), p += u, w = w.slice(u);
11122
+ })), t._rpcEndpoint.includes("solana.com") && await Mr(1e3 / 4), p += u, w = w.slice(u);
11123
11123
  }
11124
11124
  await Promise.all(E);
11125
11125
  {
@@ -11166,7 +11166,7 @@ class Nr {
11166
11166
  return !0;
11167
11167
  }
11168
11168
  }
11169
- Nr.chunkSize = hl;
11169
+ zr.chunkSize = hl;
11170
11170
  const ll = new tt("BPFLoader2111111111111111111111111111111111");
11171
11171
  class dl {
11172
11172
  /**
@@ -11176,7 +11176,7 @@ class dl {
11176
11176
  * Can be used to calculate transaction fees
11177
11177
  */
11178
11178
  static getMinNumSignatures(t) {
11179
- return Nr.getMinNumSignatures(t);
11179
+ return zr.getMinNumSignatures(t);
11180
11180
  }
11181
11181
  /**
11182
11182
  * Load a SBF program
@@ -11189,7 +11189,7 @@ class dl {
11189
11189
  * @return true if program was loaded successfully, false if program was already loaded
11190
11190
  */
11191
11191
  static load(t, e, n, s, a) {
11192
- return Nr.load(t, e, n, a, s);
11192
+ return zr.load(t, e, n, a, s);
11193
11193
  }
11194
11194
  }
11195
11195
  function pl(o) {
@@ -11343,7 +11343,7 @@ const El = {
11343
11343
  Mt("lastExtendedStartIndex"),
11344
11344
  Mt(),
11345
11345
  // option
11346
- Be(vt(), Br(Mt(), -1), "authority")
11346
+ Be(vt(), vr(Mt(), -1), "authority")
11347
11347
  ])
11348
11348
  }, Il = /^[^:]+:\/\/([^:[]+|\[[^\]]+\])(:\d+)?(.*)/i;
11349
11349
  function Sl(o) {
@@ -11428,7 +11428,7 @@ function ui(o) {
11428
11428
  });
11429
11429
  }
11430
11430
  function Vi(o, t) {
11431
- return o === 0 ? new Or({
11431
+ return o === 0 ? new Nr({
11432
11432
  header: t.header,
11433
11433
  staticAccountKeys: t.accountKeys.map((e) => new tt(e)),
11434
11434
  recentBlockhash: t.recentBlockhash,
@@ -11473,8 +11473,8 @@ const Al = j({
11473
11473
  warmup: ir(),
11474
11474
  firstNormalEpoch: O(),
11475
11475
  firstNormalSlot: O()
11476
- }), Ul = Ja(Q(), nt(O())), $r = rt(Le([j({}), Q()])), Cl = j({
11477
- err: $r
11476
+ }), Ul = Ja(Q(), nt(O())), Wr = rt(Le([j({}), Q()])), Cl = j({
11477
+ err: Wr
11478
11478
  }), Ll = Gt("receivedSignature"), Fl = j({
11479
11479
  "solana-core": Q(),
11480
11480
  "feature-set": pt(O())
@@ -11526,7 +11526,7 @@ function Nl(o, t, e, n, s, a) {
11526
11526
  try {
11527
11527
  let T = 5, C, _ = 500;
11528
11528
  for (; p ? C = await p(o, M) : C = await f(o, M), !(C.status !== 429 || s === !0 || (T -= 1, T === 0)); )
11529
- console.error(`Server responded with ${C.status} ${C.statusText}. Retrying after ${_}ms delay...`), await Tr(_), _ *= 2;
11529
+ console.error(`Server responded with ${C.status} ${C.statusText}. Retrying after ${_}ms delay...`), await Mr(_), _ *= 2;
11530
11530
  const U = await C.text();
11531
11531
  C.ok ? I(null, U) : I(new Error(`${C.status} ${C.statusText}: ${U}`));
11532
11532
  } catch (T) {
@@ -11624,13 +11624,13 @@ const $l = xt(Al), Wl = xt(Tl), Kl = xt(Rl), ql = xt(Ml), Hl = xt(Pl), Vl = xt(U
11624
11624
  }), nd = xt(nt(j({
11625
11625
  signature: Q(),
11626
11626
  slot: O(),
11627
- err: $r,
11627
+ err: Wr,
11628
11628
  memo: rt(Q()),
11629
11629
  blockTime: pt(rt(O()))
11630
11630
  }))), id = xt(nt(j({
11631
11631
  signature: Q(),
11632
11632
  slot: O(),
11633
- err: $r,
11633
+ err: Wr,
11634
11634
  memo: rt(Q()),
11635
11635
  blockTime: pt(rt(O()))
11636
11636
  }))), od = j({
@@ -11703,7 +11703,7 @@ const $l = xt(Al), Wl = xt(Tl), Kl = xt(Rl), ql = xt(Ml), Hl = xt(Pl), Vl = xt(U
11703
11703
  })), yd = Le([Gt("processed"), Gt("confirmed"), Gt("finalized")]), md = j({
11704
11704
  slot: O(),
11705
11705
  confirmations: rt(O()),
11706
- err: $r,
11706
+ err: Wr,
11707
11707
  confirmationStatus: pt(yd)
11708
11708
  }), wd = Jt(nt(rt(md))), bd = xt(O()), Ec = j({
11709
11709
  accountKey: ye,
@@ -11767,7 +11767,7 @@ const $l = xt(Al), Wl = xt(Tl), Kl = xt(Rl), ql = xt(Ml), Hl = xt(Pl), Vl = xt(U
11767
11767
  writable: nt(ye),
11768
11768
  readonly: nt(ye)
11769
11769
  }), fi = j({
11770
- err: $r,
11770
+ err: Wr,
11771
11771
  fee: O(),
11772
11772
  innerInstructions: pt(rt(nt(j({
11773
11773
  index: O(),
@@ -11785,7 +11785,7 @@ const $l = xt(Al), Wl = xt(Tl), Kl = xt(Rl), ql = xt(Ml), Hl = xt(Pl), Vl = xt(U
11785
11785
  loadedAddresses: pt(Rc),
11786
11786
  computeUnitsConsumed: pt(O())
11787
11787
  }), Vo = j({
11788
- err: $r,
11788
+ err: Wr,
11789
11789
  fee: O(),
11790
11790
  innerInstructions: pt(rt(nt(j({
11791
11791
  index: O(),
@@ -11798,7 +11798,7 @@ const $l = xt(Al), Wl = xt(Tl), Kl = xt(Rl), ql = xt(Ml), Hl = xt(Pl), Vl = xt(U
11798
11798
  postTokenBalances: pt(rt(nt(jn))),
11799
11799
  loadedAddresses: pt(Rc),
11800
11800
  computeUnitsConsumed: pt(O())
11801
- }), cn = Le([Gt(0), Gt("legacy")]), Wr = j({
11801
+ }), cn = Le([Gt(0), Gt("legacy")]), Kr = j({
11802
11802
  pubkey: Q(),
11803
11803
  lamports: O(),
11804
11804
  postBalance: rt(O()),
@@ -11813,14 +11813,14 @@ const $l = xt(Al), Wl = xt(Tl), Kl = xt(Rl), ql = xt(Ml), Hl = xt(Pl), Vl = xt(U
11813
11813
  meta: rt(fi),
11814
11814
  version: pt(cn)
11815
11815
  })),
11816
- rewards: pt(nt(Wr)),
11816
+ rewards: pt(nt(Kr)),
11817
11817
  blockTime: rt(O()),
11818
11818
  blockHeight: rt(O())
11819
11819
  }))), Id = xt(rt(j({
11820
11820
  blockhash: Q(),
11821
11821
  previousBlockhash: Q(),
11822
11822
  parentSlot: O(),
11823
- rewards: pt(nt(Wr)),
11823
+ rewards: pt(nt(Kr)),
11824
11824
  blockTime: rt(O()),
11825
11825
  blockHeight: rt(O())
11826
11826
  }))), Sd = xt(rt(j({
@@ -11832,7 +11832,7 @@ const $l = xt(Al), Wl = xt(Tl), Kl = xt(Rl), ql = xt(Ml), Hl = xt(Pl), Vl = xt(U
11832
11832
  meta: rt(fi),
11833
11833
  version: pt(cn)
11834
11834
  })),
11835
- rewards: pt(nt(Wr)),
11835
+ rewards: pt(nt(Kr)),
11836
11836
  blockTime: rt(O()),
11837
11837
  blockHeight: rt(O())
11838
11838
  }))), Bd = xt(rt(j({
@@ -11844,7 +11844,7 @@ const $l = xt(Al), Wl = xt(Tl), Kl = xt(Rl), ql = xt(Ml), Hl = xt(Pl), Vl = xt(U
11844
11844
  meta: rt(Vo),
11845
11845
  version: pt(cn)
11846
11846
  })),
11847
- rewards: pt(nt(Wr)),
11847
+ rewards: pt(nt(Kr)),
11848
11848
  blockTime: rt(O()),
11849
11849
  blockHeight: rt(O())
11850
11850
  }))), vd = xt(rt(j({
@@ -11856,14 +11856,14 @@ const $l = xt(Al), Wl = xt(Tl), Kl = xt(Rl), ql = xt(Ml), Hl = xt(Pl), Vl = xt(U
11856
11856
  meta: rt(Vo),
11857
11857
  version: pt(cn)
11858
11858
  })),
11859
- rewards: pt(nt(Wr)),
11859
+ rewards: pt(nt(Kr)),
11860
11860
  blockTime: rt(O()),
11861
11861
  blockHeight: rt(O())
11862
11862
  }))), Ad = xt(rt(j({
11863
11863
  blockhash: Q(),
11864
11864
  previousBlockhash: Q(),
11865
11865
  parentSlot: O(),
11866
- rewards: pt(nt(Wr)),
11866
+ rewards: pt(nt(Kr)),
11867
11867
  blockTime: rt(O()),
11868
11868
  blockHeight: rt(O())
11869
11869
  }))), _d = xt(rt(j({
@@ -11874,7 +11874,7 @@ const $l = xt(Al), Wl = xt(Tl), Kl = xt(Rl), ql = xt(Ml), Hl = xt(Pl), Vl = xt(U
11874
11874
  transaction: Ho,
11875
11875
  meta: rt(fi)
11876
11876
  })),
11877
- rewards: pt(nt(Wr)),
11877
+ rewards: pt(nt(Kr)),
11878
11878
  blockTime: rt(O())
11879
11879
  }))), Ns = xt(rt(j({
11880
11880
  blockhash: Q(),
@@ -11912,7 +11912,7 @@ const $l = xt(Al), Wl = xt(Tl), Kl = xt(Rl), ql = xt(Ml), Hl = xt(Pl), Vl = xt(U
11912
11912
  lamportsPerSignature: O()
11913
11913
  })
11914
11914
  }))), Ld = xt(Q()), Fd = xt(Q()), Od = j({
11915
- err: $r,
11915
+ err: Wr,
11916
11916
  logs: nt(Q()),
11917
11917
  signature: Q()
11918
11918
  }), Nd = j({
@@ -12361,7 +12361,7 @@ class Dd {
12361
12361
  let T = await M();
12362
12362
  if (!a) {
12363
12363
  for (; T <= n; )
12364
- if (await Tr(1e3), a || (T = await M(), a))
12364
+ if (await Mr(1e3), a || (T = await M(), a))
12365
12365
  return;
12366
12366
  I({
12367
12367
  __type: fr.BLOCKHEIGHT_EXCEEDED
@@ -12424,7 +12424,7 @@ class Dd {
12424
12424
  });
12425
12425
  return;
12426
12426
  }
12427
- if (await Tr(2e3), u || (C = await U(), u))
12427
+ if (await Mr(2e3), u || (C = await U(), u))
12428
12428
  return;
12429
12429
  }
12430
12430
  })();
@@ -12447,7 +12447,7 @@ class Dd {
12447
12447
  if (_ == null)
12448
12448
  break;
12449
12449
  if (_.context.slot < (T.slotInWhichNonceDidAdvance ?? n)) {
12450
- await Tr(400);
12450
+ await Mr(400);
12451
12451
  continue;
12452
12452
  }
12453
12453
  C = _;
@@ -13316,7 +13316,7 @@ class Dd {
13316
13316
  async _blockhashWithExpiryBlockHeight(t) {
13317
13317
  if (!t) {
13318
13318
  for (; this._pollingBlockhash; )
13319
- await Tr(100);
13319
+ await Mr(100);
13320
13320
  const n = Date.now() - this._blockhashInfo.lastFetch >= xc;
13321
13321
  if (this._blockhashInfo.latestBlockhash !== null && !n)
13322
13322
  return this._blockhashInfo.latestBlockhash;
@@ -13339,7 +13339,7 @@ class Dd {
13339
13339
  transactionSignatures: [],
13340
13340
  simulatedSignatures: []
13341
13341
  }, a;
13342
- await Tr(gc / 2);
13342
+ await Mr(gc / 2);
13343
13343
  }
13344
13344
  throw new Error(`Unable to obtain a new blockhash after ${Date.now() - t}ms`);
13345
13345
  } finally {
@@ -14130,7 +14130,7 @@ const dr = Object.freeze({
14130
14130
  },
14131
14131
  ExtendLookupTable: {
14132
14132
  index: 2,
14133
- layout: ct([at("instruction"), en(), Be(vt(), Br(at(), -8), "addresses")])
14133
+ layout: ct([at("instruction"), en(), Be(vt(), vr(at(), -8), "addresses")])
14134
14134
  },
14135
14135
  DeactivateLookupTable: {
14136
14136
  index: 3,
@@ -14859,7 +14859,7 @@ const we = Object.freeze({
14859
14859
  },
14860
14860
  AuthorizeWithSeed: {
14861
14861
  index: 8,
14862
- layout: ct([at("instruction"), vt("newAuthorized"), at("stakeAuthorizationType"), Pr("authoritySeed"), vt("authorityOwner")])
14862
+ layout: ct([at("instruction"), vt("newAuthorized"), at("stakeAuthorizationType"), Ur("authoritySeed"), vt("authorityOwner")])
14863
14863
  }
14864
14864
  }), jd = Object.freeze({
14865
14865
  Staker: {
@@ -15644,7 +15644,7 @@ class Yo {
15644
15644
  });
15645
15645
  }
15646
15646
  if (s[0].publicKey.equals(Cc) && s[1].isSigner) {
15647
- const a = Pr().decode(lt.Buffer.from(e)), f = JSON.parse(a);
15647
+ const a = Ur().decode(lt.Buffer.from(e)), f = JSON.parse(a);
15648
15648
  return Ya(f, Zd), new Yo(s[1].publicKey, f);
15649
15649
  }
15650
15650
  return null;
@@ -15656,16 +15656,16 @@ const Jd = new tt("Vote111111111111111111111111111111111111111"), Xd = ct([
15656
15656
  Mt("commission"),
15657
15657
  Ie(),
15658
15658
  // votes.length
15659
- Be(ct([Ie("slot"), at("confirmationCount")]), Br(at(), -8), "votes"),
15659
+ Be(ct([Ie("slot"), at("confirmationCount")]), vr(at(), -8), "votes"),
15660
15660
  Mt("rootSlotValid"),
15661
15661
  Ie("rootSlot"),
15662
15662
  Ie(),
15663
15663
  // authorizedVoters.length
15664
- Be(ct([Ie("epoch"), vt("authorizedVoter")]), Br(at(), -8), "authorizedVoters"),
15664
+ Be(ct([Ie("epoch"), vt("authorizedVoter")]), vr(at(), -8), "authorizedVoters"),
15665
15665
  ct([Be(ct([vt("authorizedPubkey"), Ie("epochOfLastAuthorizedSwitch"), Ie("targetEpoch")]), 32, "buf"), Ie("idx"), Mt("isEmpty")], "priorVoters"),
15666
15666
  Ie(),
15667
15667
  // epochCredits.length
15668
- Be(ct([Ie("epoch"), Ie("credits"), Ie("prevCredits")]), Br(at(), -8), "epochCredits"),
15668
+ Be(ct([Ie("epoch"), Ie("credits"), Ie("prevCredits")]), vr(at(), -8), "epochCredits"),
15669
15669
  ct([Ie("slot"), Ie("timestamp")], "lastTimestamp")
15670
15670
  ]);
15671
15671
  class Zo {
@@ -15783,15 +15783,15 @@ const n0 = 1e9, i0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.define
15783
15783
  Keypair: Gr,
15784
15784
  LAMPORTS_PER_SOL: n0,
15785
15785
  LOOKUP_TABLE_INSTRUCTION_LAYOUTS: dr,
15786
- Loader: Nr,
15786
+ Loader: zr,
15787
15787
  Lockup: Mn,
15788
15788
  MAX_SEED_LENGTH: lc,
15789
15789
  Message: Ge,
15790
15790
  MessageAccountKeys: bn,
15791
- MessageV0: Or,
15791
+ MessageV0: Nr,
15792
15792
  NONCE_ACCOUNT_LENGTH: ao,
15793
15793
  NonceAccount: ci,
15794
- PACKET_DATA_SIZE: vr,
15794
+ PACKET_DATA_SIZE: Ar,
15795
15795
  PUBLIC_KEY_LENGTH: nr,
15796
15796
  PublicKey: tt,
15797
15797
  SIGNATURE_LENGTH_IN_BYTES: wn,
@@ -15839,7 +15839,7 @@ const n0 = 1e9, i0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.define
15839
15839
  clusterApiUrl: e0,
15840
15840
  sendAndConfirmRawTransaction: r0,
15841
15841
  sendAndConfirmTransaction: so
15842
- }, Symbol.toStringTag, { value: "Module" })), zn = i0, Sr = be;
15842
+ }, Symbol.toStringTag, { value: "Module" })), zn = i0, Br = be;
15843
15843
  var Jo = { exports: {} };
15844
15844
  Jo.exports;
15845
15845
  (function(o) {
@@ -16158,10 +16158,10 @@ class yr {
16158
16158
  const { transaction: e } = t;
16159
16159
  if (!zn)
16160
16160
  throw new Error("@solana/web3.js dependency is required for Solana");
16161
- if (!Sr)
16161
+ if (!Br)
16162
16162
  throw new Error("bs58 dependency is required for Solana");
16163
16163
  if (e)
16164
- return Sr.encode(
16164
+ return Br.encode(
16165
16165
  e.serialize({
16166
16166
  requireAllSignatures: !1,
16167
16167
  verifySignatures: !1
@@ -16277,18 +16277,18 @@ function a0({
16277
16277
  const s = await n(
16278
16278
  new TextEncoder().encode(e)
16279
16279
  );
16280
- if (!Sr)
16280
+ if (!Br)
16281
16281
  throw new Error("bs58 dependency is required");
16282
- return Sr.encode(s);
16282
+ return Br.encode(s);
16283
16283
  },
16284
16284
  handleSignTransaction: async (e) => {
16285
16285
  const n = o.signTransaction;
16286
16286
  if (!n)
16287
16287
  throw new Error("signTransaction is not supported by this wallet");
16288
16288
  const s = js(e), a = await n(s);
16289
- if (!Sr)
16289
+ if (!Br)
16290
16290
  throw new Error("bs58 dependency is required");
16291
- return Sr.encode(
16291
+ return Br.encode(
16292
16292
  a.serialize({
16293
16293
  requireAllSignatures: !1,
16294
16294
  verifySignatures: !1
@@ -16303,11 +16303,11 @@ function js(o) {
16303
16303
  throw new Error(
16304
16304
  "@solana/web3.js is not defined. Please install @solana/web3.js into your project"
16305
16305
  );
16306
- if (!Sr)
16306
+ if (!Br)
16307
16307
  throw new Error(
16308
16308
  "bs58 is not defined. Please install bs58 into your project"
16309
16309
  );
16310
- const t = Sr.decode(o), e = zn.VersionedTransaction.deserialize(t);
16310
+ const t = Br.decode(o), e = zn.VersionedTransaction.deserialize(t);
16311
16311
  return e.version === "legacy" ? zn.Transaction.from(t) : e;
16312
16312
  }
16313
16313
  function c0({
@@ -16500,17 +16500,19 @@ function rs(o) {
16500
16500
  var n, s, a;
16501
16501
  const t = JSON.parse(o);
16502
16502
  return { styles: {
16503
- base: qr(t.base),
16504
- focus: qr(t.focus),
16505
- error: qr(t.error),
16503
+ base: Er(t.base),
16504
+ focus: Er(t.focus),
16505
+ error: Er(t.error),
16506
+ placeholder: Er(t.placeholder),
16506
16507
  cvv: {
16507
- base: qr((n = t.cvv) == null ? void 0 : n.base),
16508
- focus: qr((s = t.cvv) == null ? void 0 : s.focus),
16509
- error: qr((a = t.cvv) == null ? void 0 : a.error)
16508
+ base: Er((n = t.cvv) == null ? void 0 : n.base),
16509
+ focus: Er((s = t.cvv) == null ? void 0 : s.focus),
16510
+ error: Er((a = t.cvv) == null ? void 0 : a.error),
16511
+ placeholder: Er(t == null ? void 0 : t.placeholder)
16510
16512
  }
16511
16513
  } };
16512
16514
  }
16513
- function qr(o) {
16515
+ function Er(o) {
16514
16516
  if (!o)
16515
16517
  return "";
16516
16518
  if (typeof o == "string")