@hinkal/common 0.0.69 → 0.0.71

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.
@@ -225422,7 +225422,7 @@ function arrayify(a, t) {
225422
225422
  }
225423
225423
  return isBytes$2(a) ? addSlice(new Uint8Array(a)) : logger$J.throwArgumentError("invalid arrayify value", "value", a);
225424
225424
  }
225425
- function concat$2(a) {
225425
+ function concat$3(a) {
225426
225426
  const t = a.map((b) => arrayify(b)), d = t.reduce((b, u) => b + u.length, 0), c = new Uint8Array(d);
225427
225427
  return t.reduce((b, u) => (c.set(u, b), b + u.length), 0), addSlice(c);
225428
225428
  }
@@ -225539,7 +225539,7 @@ function splitSignature(a) {
225539
225539
  return t.yParityAndS = t._vs, t.compact = t.r + t.yParityAndS.substring(2), t;
225540
225540
  }
225541
225541
  function joinSignature(a) {
225542
- return a = splitSignature(a), hexlify(concat$2([
225542
+ return a = splitSignature(a), hexlify(concat$3([
225543
225543
  a.r,
225544
225544
  a.s,
225545
225545
  a.recoveryParam ? "0x1c" : "0x1b"
@@ -225548,7 +225548,7 @@ function joinSignature(a) {
225548
225548
  const lib_esm$k = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
225549
225549
  __proto__: null,
225550
225550
  arrayify,
225551
- concat: concat$2,
225551
+ concat: concat$3,
225552
225552
  hexConcat,
225553
225553
  hexDataLength,
225554
225554
  hexDataSlice,
@@ -226483,20 +226483,20 @@ let Writer$4 = class {
226483
226483
  return this._data.push(t), this._dataLength += t.length, t.length;
226484
226484
  }
226485
226485
  appendWriter(t) {
226486
- return this._writeData(concat$2(t._data));
226486
+ return this._writeData(concat$3(t._data));
226487
226487
  }
226488
226488
  // Arrayish items; padded on the right to wordSize
226489
226489
  writeBytes(t) {
226490
226490
  let d = arrayify(t);
226491
226491
  const c = d.length % this.wordSize;
226492
- return c && (d = concat$2([d, this._padding.slice(c)])), this._writeData(d);
226492
+ return c && (d = concat$3([d, this._padding.slice(c)])), this._writeData(d);
226493
226493
  }
226494
226494
  _getValue(t) {
226495
226495
  let d = arrayify(BigNumber.from(t));
226496
226496
  return d.length > this.wordSize && logger$E.throwError("value out-of-bounds", Logger.errors.BUFFER_OVERRUN, {
226497
226497
  length: this.wordSize,
226498
226498
  offset: d.length
226499
- }), d.length % this.wordSize && (d = concat$2([this._padding.slice(d.length % this.wordSize), d])), d;
226499
+ }), d.length % this.wordSize && (d = concat$3([this._padding.slice(d.length % this.wordSize), d])), d;
226500
226500
  }
226501
226501
  // BigNumberish items; padded on the left to wordSize
226502
226502
  writeValue(t) {
@@ -226953,7 +226953,7 @@ function getContractAddress(a) {
226953
226953
  return getAddress(hexDataSlice(keccak256$2(encode$8([t, d])), 12));
226954
226954
  }
226955
226955
  function getCreate2Address(a, t, d) {
226956
- return hexDataLength(t) !== 32 && logger$C.throwArgumentError("salt must be 32 bytes", "salt", t), hexDataLength(d) !== 32 && logger$C.throwArgumentError("initCodeHash must be 32 bytes", "initCodeHash", d), getAddress(hexDataSlice(keccak256$2(concat$2(["0xff", getAddress(a), t, d])), 12));
226956
+ return hexDataLength(t) !== 32 && logger$C.throwArgumentError("salt must be 32 bytes", "salt", t), hexDataLength(d) !== 32 && logger$C.throwArgumentError("initCodeHash must be 32 bytes", "initCodeHash", d), getAddress(hexDataSlice(keccak256$2(concat$3(["0xff", getAddress(a), t, d])), 12));
226957
226957
  }
226958
226958
  const lib_esm$g = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
226959
226959
  __proto__: null,
@@ -227364,7 +227364,7 @@ function formatBytes32String(a) {
227364
227364
  const t = toUtf8Bytes(a);
227365
227365
  if (t.length > 31)
227366
227366
  throw new Error("bytes32 string must be less than 32 bytes");
227367
- return hexlify(concat$2([t, HashZero$1]).slice(0, 32));
227367
+ return hexlify(concat$3([t, HashZero$1]).slice(0, 32));
227368
227368
  }
227369
227369
  function parseBytes32String(a) {
227370
227370
  const t = arrayify(a);
@@ -227922,11 +227922,11 @@ function namehash(a) {
227922
227922
  let t = Zeros$1;
227923
227923
  const d = ensNameSplit(a);
227924
227924
  for (; d.length; )
227925
- t = keccak256$2(concat$2([t, keccak256$2(d.pop())]));
227925
+ t = keccak256$2(concat$3([t, keccak256$2(d.pop())]));
227926
227926
  return hexlify(t);
227927
227927
  }
227928
227928
  function dnsEncode(a) {
227929
- return hexlify(concat$2(ensNameSplit(a).map((t) => {
227929
+ return hexlify(concat$3(ensNameSplit(a).map((t) => {
227930
227930
  if (t.length > 63)
227931
227931
  throw new Error("invalid DNS encoded entry; length exceeds 63 bytes");
227932
227932
  const d = new Uint8Array(t.length + 1);
@@ -227936,7 +227936,7 @@ function dnsEncode(a) {
227936
227936
  const messagePrefix = `Ethereum Signed Message:
227937
227937
  `;
227938
227938
  function hashMessage(a) {
227939
- return typeof a == "string" && (a = toUtf8Bytes(a)), keccak256$2(concat$2([
227939
+ return typeof a == "string" && (a = toUtf8Bytes(a)), keccak256$2(concat$3([
227940
227940
  toUtf8Bytes(messagePrefix),
227941
227941
  toUtf8Bytes(String(a.length)),
227942
227942
  a
@@ -228404,7 +228404,7 @@ class Interface {
228404
228404
  return hexlify(c.slice(0, 4)) !== this.getSighash(t) && logger$w.throwArgumentError(`data signature does not match error ${t.name}.`, "data", hexlify(c)), this._decodeParams(t.inputs, c.slice(4));
228405
228405
  }
228406
228406
  encodeErrorResult(t, d) {
228407
- return typeof t == "string" && (t = this.getError(t)), hexlify(concat$2([
228407
+ return typeof t == "string" && (t = this.getError(t)), hexlify(concat$3([
228408
228408
  this.getSighash(t),
228409
228409
  this._encodeParams(t.inputs, d || [])
228410
228410
  ]));
@@ -228417,7 +228417,7 @@ class Interface {
228417
228417
  }
228418
228418
  // Encode the data for a function call (e.g. tx.data)
228419
228419
  encodeFunctionData(t, d) {
228420
- return typeof t == "string" && (t = this.getFunction(t)), hexlify(concat$2([
228420
+ return typeof t == "string" && (t = this.getFunction(t)), hexlify(concat$3([
228421
228421
  this.getSighash(t),
228422
228422
  this._encodeParams(t.inputs, d || [])
228423
228423
  ]));
@@ -228511,7 +228511,7 @@ class Interface {
228511
228511
  t.inputs.forEach((S, fe) => {
228512
228512
  S.indexed ? S.type === "string" || S.type === "bytes" || S.baseType === "tuple" || S.baseType === "array" ? (b.push(ParamType.fromObject({ type: "bytes32", name: S.name })), p.push(!0)) : (b.push(S), p.push(!1)) : (u.push(S), p.push(!1));
228513
228513
  });
228514
- let T = c != null ? this._abiCoder.decode(b, concat$2(c)) : null, G = this._abiCoder.decode(u, d, !0), H = [], F = 0, ee = 0;
228514
+ let T = c != null ? this._abiCoder.decode(b, concat$3(c)) : null, G = this._abiCoder.decode(u, d, !0), H = [], F = 0, ee = 0;
228515
228515
  t.inputs.forEach((S, fe) => {
228516
228516
  if (S.indexed)
228517
228517
  if (T == null)
@@ -231949,7 +231949,7 @@ class ContractFactory {
231949
231949
  }), d.value && !BigNumber.from(d.value).isZero() && !this.interface.deploy.payable && logger$r.throwError("non-payable constructor cannot override value", Logger.errors.UNSUPPORTED_OPERATION, {
231950
231950
  operation: "overrides.value",
231951
231951
  value: d.value
231952
- }), logger$r.checkArgumentCount(t.length, this.interface.deploy.inputs.length, " in Contract constructor"), d.data = hexlify(concat$2([
231952
+ }), logger$r.checkArgumentCount(t.length, this.interface.deploy.inputs.length, " in Contract constructor"), d.data = hexlify(concat$3([
231953
231953
  this.bytecode,
231954
231954
  this.interface.encodeDeploy(t)
231955
231955
  ])), d;
@@ -232150,7 +232150,7 @@ function bytes32(a) {
232150
232150
  return hexZeroPad(hexlify(a), 32);
232151
232151
  }
232152
232152
  function base58check(a) {
232153
- return Base58.encode(concat$2([a, hexDataSlice(sha256$6(sha256$6(a)), 0, 4)]));
232153
+ return Base58.encode(concat$3([a, hexDataSlice(sha256$6(sha256$6(a)), 0, 4)]));
232154
232154
  }
232155
232155
  function getWordlist(a) {
232156
232156
  if (a == null)
@@ -232183,13 +232183,13 @@ class HDNode {
232183
232183
  get extendedKey() {
232184
232184
  if (this.depth >= 256)
232185
232185
  throw new Error("Depth too large!");
232186
- return base58check(concat$2([
232186
+ return base58check(concat$3([
232187
232187
  this.privateKey != null ? "0x0488ADE4" : "0x0488B21E",
232188
232188
  hexlify(this.depth),
232189
232189
  this.parentFingerprint,
232190
232190
  hexZeroPad(hexlify(this.index), 4),
232191
232191
  this.chainCode,
232192
- this.privateKey != null ? concat$2(["0x00", this.privateKey]) : this.publicKey
232192
+ this.privateKey != null ? concat$3(["0x00", this.privateKey]) : this.publicKey
232193
232193
  ]));
232194
232194
  }
232195
232195
  neuter() {
@@ -233114,7 +233114,7 @@ function _decrypt(a, t, d) {
233114
233114
  }
233115
233115
  function _getAccount(a, t) {
233116
233116
  const d = looseArrayify(searchPath(a, "crypto/ciphertext"));
233117
- if (hexlify(keccak256$2(concat$2([t.slice(16, 32), d]))).substring(2) !== searchPath(a, "crypto/mac").toLowerCase())
233117
+ if (hexlify(keccak256$2(concat$3([t.slice(16, 32), d]))).substring(2) !== searchPath(a, "crypto/mac").toLowerCase())
233118
233118
  throw new Error("invalid password");
233119
233119
  const b = _decrypt(a, t.slice(0, 16), d);
233120
233120
  b || logger$l.throwError("unsupported cipher", Logger.errors.UNSUPPORTED_OPERATION, {
@@ -233221,7 +233221,7 @@ function encrypt(a, t, d, c) {
233221
233221
  let fe = 1 << 17, ie = 8, L = 1;
233222
233222
  return d.scrypt && (d.scrypt.N && (fe = d.scrypt.N), d.scrypt.r && (ie = d.scrypt.r), d.scrypt.p && (L = d.scrypt.p)), scrypt.scrypt(u, F, fe, ie, L, 64, c).then((X) => {
233223
233223
  X = arrayify(X);
233224
- const J = X.slice(0, 16), O = X.slice(16, 32), q = X.slice(32, 64), be = new aes$1.Counter(ee), Ce = new aes$1.ModeOfOperation.ctr(J, be), Re = arrayify(Ce.encrypt(b)), ae = keccak256$2(concat$2([O, Re])), Ie = {
233224
+ const J = X.slice(0, 16), O = X.slice(16, 32), q = X.slice(32, 64), be = new aes$1.Counter(ee), Ce = new aes$1.ModeOfOperation.ctr(J, be), Re = arrayify(Ce.encrypt(b)), ae = keccak256$2(concat$3([O, Re])), Ie = {
233225
233225
  address: a.address.substring(2).toLowerCase(),
233226
233226
  id: uuidV4(S),
233227
233227
  version: 3,
@@ -233392,7 +233392,7 @@ class Wallet extends Signer {
233392
233392
  */
233393
233393
  static createRandom(t) {
233394
233394
  let d = randomBytes(16);
233395
- t || (t = {}), t.extraEntropy && (d = arrayify(hexDataSlice(keccak256$2(concat$2([d, t.extraEntropy])), 0, 16)));
233395
+ t || (t = {}), t.extraEntropy && (d = arrayify(hexDataSlice(keccak256$2(concat$3([d, t.extraEntropy])), 0, 16)));
233396
233396
  const c = entropyToMnemonic$1(d, t.locale);
233397
233397
  return Wallet.fromMnemonic(c, t.path, t.locale);
233398
233398
  }
@@ -234437,7 +234437,7 @@ function bytes32ify(a) {
234437
234437
  return hexZeroPad(BigNumber.from(a).toHexString(), 32);
234438
234438
  }
234439
234439
  function base58Encode(a) {
234440
- return Base58.encode(concat$2([a, hexDataSlice(sha256$6(sha256$6(a)), 0, 4)]));
234440
+ return Base58.encode(concat$3([a, hexDataSlice(sha256$6(sha256$6(a)), 0, 4)]));
234441
234441
  }
234442
234442
  const matcherIpfs = new RegExp("^(ipfs)://(.*)$", "i"), matchers = [
234443
234443
  new RegExp("^(https)://(.*)$", "i"),
@@ -234540,7 +234540,7 @@ class Resolver {
234540
234540
  if (u) {
234541
234541
  const p = parseInt(u[1], 16);
234542
234542
  if (u[2].length === p * 2 && p >= 1 && p <= 75)
234543
- return base58Encode(concat$2([[c.p2pkh], "0x" + u[2]]));
234543
+ return base58Encode(concat$3([[c.p2pkh], "0x" + u[2]]));
234544
234544
  }
234545
234545
  }
234546
234546
  if (c.p2sh != null) {
@@ -234548,7 +234548,7 @@ class Resolver {
234548
234548
  if (u) {
234549
234549
  const p = parseInt(u[1], 16);
234550
234550
  if (u[2].length === p * 2 && p >= 1 && p <= 75)
234551
- return base58Encode(concat$2([[c.p2sh], "0x" + u[2]]));
234551
+ return base58Encode(concat$3([[c.p2sh], "0x" + u[2]]));
234552
234552
  }
234553
234553
  }
234554
234554
  if (c.prefix != null) {
@@ -234690,7 +234690,7 @@ class Resolver {
234690
234690
  getText(t) {
234691
234691
  return __awaiter$m(this, void 0, void 0, function* () {
234692
234692
  let d = toUtf8Bytes(t);
234693
- d = concat$2([bytes32ify(64), bytes32ify(d.length), d]), d.length % 32 !== 0 && (d = concat$2([d, hexZeroPad("0x", 32 - t.length % 32)]));
234693
+ d = concat$3([bytes32ify(64), bytes32ify(d.length), d]), d.length % 32 !== 0 && (d = concat$3([d, hexZeroPad("0x", 32 - t.length % 32)]));
234694
234694
  const c = yield this._fetchBytes("0x59d1d43c", hexlify(d));
234695
234695
  return c == null || c === "0x" ? null : toUtf8String(c);
234696
234696
  });
@@ -237412,7 +237412,7 @@ function _pack(a, t, d) {
237412
237412
  const p = [];
237413
237413
  return t.forEach(function(T) {
237414
237414
  p.push(_pack(b, T, !0));
237415
- }), concat$2(p);
237415
+ }), concat$3(p);
237416
237416
  }
237417
237417
  return logger$2.throwArgumentError("invalid type", "type", a);
237418
237418
  }
@@ -237421,7 +237421,7 @@ function pack(a, t) {
237421
237421
  const d = [];
237422
237422
  return a.forEach(function(c, b) {
237423
237423
  d.push(_pack(c, t[b]));
237424
- }), hexlify(concat$2(d));
237424
+ }), hexlify(concat$3(d));
237425
237425
  }
237426
237426
  function keccak256$1(a, t) {
237427
237427
  return keccak256$2(pack(a, t));
@@ -237535,7 +237535,7 @@ const lib_esm$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePro
237535
237535
  computeAddress,
237536
237536
  computeHmac,
237537
237537
  computePublicKey,
237538
- concat: concat$2,
237538
+ concat: concat$3,
237539
237539
  deepCopy,
237540
237540
  defaultAbiCoder,
237541
237541
  defaultPath,
@@ -249394,16 +249394,16 @@ var eventsExports = events$1.exports, streamBrowser$1 = eventsExports.EventEmitt
249394
249394
  return !1;
249395
249395
  }
249396
249396
  return !0;
249397
- }, hasSymbols$3 = shams$1, shams = function() {
249398
- return hasSymbols$3() && !!Symbol.toStringTag;
249399
- }, esErrors = Error, _eval = EvalError, range = RangeError, ref = ReferenceError, syntax = SyntaxError, type = TypeError, uri = URIError, origSymbol = typeof Symbol < "u" && Symbol, hasSymbolSham = shams$1, hasSymbols$2 = function() {
249397
+ }, hasSymbols$4 = shams$1, shams = function() {
249398
+ return hasSymbols$4() && !!Symbol.toStringTag;
249399
+ }, esErrors = Error, _eval = EvalError, range = RangeError, ref = ReferenceError, syntax = SyntaxError, type = TypeError, uri = URIError, origSymbol = typeof Symbol < "u" && Symbol, hasSymbolSham = shams$1, hasSymbols$3 = function() {
249400
249400
  return typeof origSymbol != "function" || typeof Symbol != "function" || typeof origSymbol("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : hasSymbolSham();
249401
249401
  }, test = {
249402
249402
  __proto__: null,
249403
249403
  foo: {}
249404
249404
  }, $Object = Object, hasProto$1 = function() {
249405
249405
  return { __proto__: test }.foo === test.foo && !(test instanceof $Object);
249406
- }, ERROR_MESSAGE = "Function.prototype.bind called on incompatible ", toStr$4 = Object.prototype.toString, max = Math.max, funcType = "[object Function]", concatty = function(t, d) {
249406
+ }, ERROR_MESSAGE = "Function.prototype.bind called on incompatible ", toStr$5 = Object.prototype.toString, max = Math.max, funcType = "[object Function]", concatty = function(t, d) {
249407
249407
  for (var c = [], b = 0; b < t.length; b += 1)
249408
249408
  c[b] = t[b];
249409
249409
  for (var u = 0; u < d.length; u += 1)
@@ -249419,7 +249419,7 @@ var eventsExports = events$1.exports, streamBrowser$1 = eventsExports.EventEmitt
249419
249419
  return d;
249420
249420
  }, implementation$9 = function(t) {
249421
249421
  var d = this;
249422
- if (typeof d != "function" || toStr$4.apply(d) !== funcType)
249422
+ if (typeof d != "function" || toStr$5.apply(d) !== funcType)
249423
249423
  throw new TypeError(ERROR_MESSAGE + d);
249424
249424
  for (var c = slicy(arguments, 1), b, u = function() {
249425
249425
  if (this instanceof b) {
@@ -249465,14 +249465,14 @@ var throwTypeError = function() {
249465
249465
  return throwTypeError;
249466
249466
  }
249467
249467
  }
249468
- }() : throwTypeError, hasSymbols$1 = hasSymbols$2(), hasProto = hasProto$1(), getProto$1 = Object.getPrototypeOf || (hasProto ? function(a) {
249468
+ }() : throwTypeError, hasSymbols$2 = hasSymbols$3(), hasProto = hasProto$1(), getProto$1 = Object.getPrototypeOf || (hasProto ? function(a) {
249469
249469
  return a.__proto__;
249470
249470
  } : null), needsEval = {}, TypedArray = typeof Uint8Array > "u" || !getProto$1 ? undefined$1 : getProto$1(Uint8Array), INTRINSICS = {
249471
249471
  __proto__: null,
249472
249472
  "%AggregateError%": typeof AggregateError > "u" ? undefined$1 : AggregateError,
249473
249473
  "%Array%": Array,
249474
249474
  "%ArrayBuffer%": typeof ArrayBuffer > "u" ? undefined$1 : ArrayBuffer,
249475
- "%ArrayIteratorPrototype%": hasSymbols$1 && getProto$1 ? getProto$1([][Symbol.iterator]()) : undefined$1,
249475
+ "%ArrayIteratorPrototype%": hasSymbols$2 && getProto$1 ? getProto$1([][Symbol.iterator]()) : undefined$1,
249476
249476
  "%AsyncFromSyncIteratorPrototype%": undefined$1,
249477
249477
  "%AsyncFunction%": needsEval,
249478
249478
  "%AsyncGenerator%": needsEval,
@@ -249503,10 +249503,10 @@ var throwTypeError = function() {
249503
249503
  "%Int32Array%": typeof Int32Array > "u" ? undefined$1 : Int32Array,
249504
249504
  "%isFinite%": isFinite,
249505
249505
  "%isNaN%": isNaN,
249506
- "%IteratorPrototype%": hasSymbols$1 && getProto$1 ? getProto$1(getProto$1([][Symbol.iterator]())) : undefined$1,
249506
+ "%IteratorPrototype%": hasSymbols$2 && getProto$1 ? getProto$1(getProto$1([][Symbol.iterator]())) : undefined$1,
249507
249507
  "%JSON%": typeof JSON == "object" ? JSON : undefined$1,
249508
249508
  "%Map%": typeof Map > "u" ? undefined$1 : Map,
249509
- "%MapIteratorPrototype%": typeof Map > "u" || !hasSymbols$1 || !getProto$1 ? undefined$1 : getProto$1((/* @__PURE__ */ new Map())[Symbol.iterator]()),
249509
+ "%MapIteratorPrototype%": typeof Map > "u" || !hasSymbols$2 || !getProto$1 ? undefined$1 : getProto$1((/* @__PURE__ */ new Map())[Symbol.iterator]()),
249510
249510
  "%Math%": Math,
249511
249511
  "%Number%": Number,
249512
249512
  "%Object%": Object,
@@ -249519,11 +249519,11 @@ var throwTypeError = function() {
249519
249519
  "%Reflect%": typeof Reflect > "u" ? undefined$1 : Reflect,
249520
249520
  "%RegExp%": RegExp,
249521
249521
  "%Set%": typeof Set > "u" ? undefined$1 : Set,
249522
- "%SetIteratorPrototype%": typeof Set > "u" || !hasSymbols$1 || !getProto$1 ? undefined$1 : getProto$1((/* @__PURE__ */ new Set())[Symbol.iterator]()),
249522
+ "%SetIteratorPrototype%": typeof Set > "u" || !hasSymbols$2 || !getProto$1 ? undefined$1 : getProto$1((/* @__PURE__ */ new Set())[Symbol.iterator]()),
249523
249523
  "%SharedArrayBuffer%": typeof SharedArrayBuffer > "u" ? undefined$1 : SharedArrayBuffer,
249524
249524
  "%String%": String,
249525
- "%StringIteratorPrototype%": hasSymbols$1 && getProto$1 ? getProto$1(""[Symbol.iterator]()) : undefined$1,
249526
- "%Symbol%": hasSymbols$1 ? Symbol : undefined$1,
249525
+ "%StringIteratorPrototype%": hasSymbols$2 && getProto$1 ? getProto$1(""[Symbol.iterator]()) : undefined$1,
249526
+ "%Symbol%": hasSymbols$2 ? Symbol : undefined$1,
249527
249527
  "%SyntaxError%": $SyntaxError$1,
249528
249528
  "%ThrowTypeError%": ThrowTypeError,
249529
249529
  "%TypedArray%": TypedArray,
@@ -249687,7 +249687,7 @@ if ($gOPD)
249687
249687
  } catch {
249688
249688
  $gOPD = null;
249689
249689
  }
249690
- var gopd$1 = $gOPD, $defineProperty$1 = requireEsDefineProperty(), $SyntaxError = syntax, $TypeError$1 = type, gopd = gopd$1, defineDataProperty = function(t, d, c) {
249690
+ var gopd$1 = $gOPD, $defineProperty$1 = requireEsDefineProperty(), $SyntaxError = syntax, $TypeError$1 = type, gopd = gopd$1, defineDataProperty$1 = function(t, d, c) {
249691
249691
  if (!t || typeof t != "object" && typeof t != "function")
249692
249692
  throw new $TypeError$1("`obj` must be an object or a function`");
249693
249693
  if (typeof d != "string" && typeof d != "symbol")
@@ -249724,7 +249724,7 @@ hasPropertyDescriptors.hasArrayLengthDefineBug = function() {
249724
249724
  return !0;
249725
249725
  }
249726
249726
  };
249727
- var hasPropertyDescriptors_1 = hasPropertyDescriptors, GetIntrinsic$1 = getIntrinsic, define$1 = defineDataProperty, hasDescriptors = hasPropertyDescriptors_1(), gOPD$1 = gopd$1, $TypeError = type, $floor = GetIntrinsic$1("%Math.floor%"), setFunctionLength = function(t, d) {
249727
+ var hasPropertyDescriptors_1 = hasPropertyDescriptors, GetIntrinsic$1 = getIntrinsic, define$1 = defineDataProperty$1, hasDescriptors = hasPropertyDescriptors_1(), gOPD$1 = gopd$1, $TypeError = type, $floor = GetIntrinsic$1("%Math.floor%"), setFunctionLength = function(t, d) {
249728
249728
  if (typeof t != "function")
249729
249729
  throw new $TypeError("`fn` is not a function");
249730
249730
  if (typeof d != "number" || d < 0 || d > 4294967295 || $floor(d) !== d)
@@ -249776,7 +249776,7 @@ var callBindExports = callBind$2.exports, GetIntrinsic = getIntrinsic, callBind$
249776
249776
  return isStandardArguments(arguments);
249777
249777
  }();
249778
249778
  isStandardArguments.isLegacyArguments = isLegacyArguments;
249779
- var isArguments$2 = supportsStandardArguments ? isStandardArguments : isLegacyArguments, toStr$3 = Object.prototype.toString, fnToStr$1 = Function.prototype.toString, isFnRegex = /^\s*(?:function)?\*/, hasToStringTag$2 = shams(), getProto = Object.getPrototypeOf, getGeneratorFunc = function() {
249779
+ var isArguments$2 = supportsStandardArguments ? isStandardArguments : isLegacyArguments, toStr$4 = Object.prototype.toString, fnToStr$1 = Function.prototype.toString, isFnRegex = /^\s*(?:function)?\*/, hasToStringTag$2 = shams(), getProto = Object.getPrototypeOf, getGeneratorFunc = function() {
249780
249780
  if (!hasToStringTag$2)
249781
249781
  return !1;
249782
249782
  try {
@@ -249789,7 +249789,7 @@ var isArguments$2 = supportsStandardArguments ? isStandardArguments : isLegacyAr
249789
249789
  if (isFnRegex.test(fnToStr$1.call(t)))
249790
249790
  return !0;
249791
249791
  if (!hasToStringTag$2) {
249792
- var d = toStr$3.call(t);
249792
+ var d = toStr$4.call(t);
249793
249793
  return d === "[object GeneratorFunction]";
249794
249794
  }
249795
249795
  if (!getProto)
@@ -249827,15 +249827,15 @@ var constructorRegex = /^\s*class\b/, isES6ClassFn = function(t) {
249827
249827
  } catch {
249828
249828
  return !1;
249829
249829
  }
249830
- }, toStr$2 = Object.prototype.toString, objectClass = "[object Object]", fnClass = "[object Function]", genClass = "[object GeneratorFunction]", ddaClass = "[object HTMLAllCollection]", ddaClass2 = "[object HTML document.all class]", ddaClass3 = "[object HTMLCollection]", hasToStringTag$1 = typeof Symbol == "function" && !!Symbol.toStringTag, isIE68 = !(0 in [,]), isDDA = function() {
249830
+ }, toStr$3 = Object.prototype.toString, objectClass = "[object Object]", fnClass = "[object Function]", genClass = "[object GeneratorFunction]", ddaClass = "[object HTMLAllCollection]", ddaClass2 = "[object HTML document.all class]", ddaClass3 = "[object HTMLCollection]", hasToStringTag$1 = typeof Symbol == "function" && !!Symbol.toStringTag, isIE68 = !(0 in [,]), isDDA = function() {
249831
249831
  return !1;
249832
249832
  };
249833
249833
  if (typeof document == "object") {
249834
249834
  var all = document.all;
249835
- toStr$2.call(all) === toStr$2.call(document.all) && (isDDA = function(t) {
249835
+ toStr$3.call(all) === toStr$3.call(document.all) && (isDDA = function(t) {
249836
249836
  if ((isIE68 || !t) && (typeof t > "u" || typeof t == "object"))
249837
249837
  try {
249838
- var d = toStr$2.call(t);
249838
+ var d = toStr$3.call(t);
249839
249839
  return (d === ddaClass || d === ddaClass2 || d === ddaClass3 || d === objectClass) && t("") == null;
249840
249840
  } catch {
249841
249841
  }
@@ -249863,9 +249863,9 @@ var isCallable$1 = reflectApply ? function(t) {
249863
249863
  return tryFunctionObject(t);
249864
249864
  if (isES6ClassFn(t))
249865
249865
  return !1;
249866
- var d = toStr$2.call(t);
249866
+ var d = toStr$3.call(t);
249867
249867
  return d !== fnClass && d !== genClass && !/^\[object HTML/.test(d) ? !1 : tryFunctionObject(t);
249868
- }, isCallable = isCallable$1, toStr$1 = Object.prototype.toString, hasOwnProperty$1 = Object.prototype.hasOwnProperty, forEachArray = function(t, d, c) {
249868
+ }, isCallable = isCallable$1, toStr$2 = Object.prototype.toString, hasOwnProperty$1 = Object.prototype.hasOwnProperty, forEachArray = function(t, d, c) {
249869
249869
  for (var b = 0, u = t.length; b < u; b++)
249870
249870
  hasOwnProperty$1.call(t, b) && (c == null ? d(t[b], b, t) : d.call(c, t[b], b, t));
249871
249871
  }, forEachString = function(t, d, c) {
@@ -249878,7 +249878,7 @@ var isCallable$1 = reflectApply ? function(t) {
249878
249878
  if (!isCallable(d))
249879
249879
  throw new TypeError("iterator must be a function");
249880
249880
  var b;
249881
- arguments.length >= 3 && (b = c), toStr$1.call(t) === "[object Array]" ? forEachArray(t, d, b) : typeof t == "string" ? forEachString(t, d, b) : forEachObject(t, d, b);
249881
+ arguments.length >= 3 && (b = c), toStr$2.call(t) === "[object Array]" ? forEachArray(t, d, b) : typeof t == "string" ? forEachString(t, d, b) : forEachObject(t, d, b);
249882
249882
  }, forEach_1 = forEach$3, possibleTypedArrayNames = [
249883
249883
  "Float32Array",
249884
249884
  "Float64Array",
@@ -278063,9 +278063,9 @@ should equal
278063
278063
  }(/* @__PURE__ */ S(Error), be.custom);
278064
278064
  return assertion_error = te, assertion_error;
278065
278065
  }
278066
- var toStr = Object.prototype.toString, isArguments$1 = function(t) {
278067
- var d = toStr.call(t), c = d === "[object Arguments]";
278068
- return c || (c = d !== "[object Array]" && t !== null && typeof t == "object" && typeof t.length == "number" && t.length >= 0 && toStr.call(t.callee) === "[object Function]"), c;
278066
+ var toStr$1 = Object.prototype.toString, isArguments$1 = function(t) {
278067
+ var d = toStr$1.call(t), c = d === "[object Arguments]";
278068
+ return c || (c = d !== "[object Array]" && t !== null && typeof t == "object" && typeof t.length == "number" && t.length >= 0 && toStr$1.call(t.callee) === "[object Function]"), c;
278069
278069
  }, implementation$7, hasRequiredImplementation$1;
278070
278070
  function requireImplementation$1() {
278071
278071
  if (hasRequiredImplementation$1)
@@ -278171,14 +278171,14 @@ keysShim.shim = function() {
278171
278171
  Object.keys = keysShim;
278172
278172
  return Object.keys || keysShim;
278173
278173
  };
278174
- var objectKeys$1 = keysShim, objectKeys = objectKeys$1, hasSymbols = shams$1(), callBound = callBound$3, toObject = Object, $push = callBound("Array.prototype.push"), $propIsEnumerable = callBound("Object.prototype.propertyIsEnumerable"), originalGetSymbols = hasSymbols ? Object.getOwnPropertySymbols : null, implementation$6 = function(t, d) {
278174
+ var objectKeys$1 = keysShim, objectKeys = objectKeys$1, hasSymbols$1 = shams$1(), callBound = callBound$3, toObject = Object, $push = callBound("Array.prototype.push"), $propIsEnumerable = callBound("Object.prototype.propertyIsEnumerable"), originalGetSymbols = hasSymbols$1 ? Object.getOwnPropertySymbols : null, implementation$6 = function(t, d) {
278175
278175
  if (t == null)
278176
278176
  throw new TypeError("target must be an object");
278177
278177
  var c = toObject(t);
278178
278178
  if (arguments.length === 1)
278179
278179
  return c;
278180
278180
  for (var b = 1; b < arguments.length; ++b) {
278181
- var u = toObject(arguments[b]), p = objectKeys(u), T = hasSymbols && (Object.getOwnPropertySymbols || originalGetSymbols);
278181
+ var u = toObject(arguments[b]), p = objectKeys(u), T = hasSymbols$1 && (Object.getOwnPropertySymbols || originalGetSymbols);
278182
278182
  if (T)
278183
278183
  for (var G = T(u), H = 0; H < G.length; ++H) {
278184
278184
  var F = G[H];
@@ -278220,36 +278220,30 @@ var objectKeys$1 = keysShim, objectKeys = objectKeys$1, hasSymbols = shams$1(),
278220
278220
  return t === 0 && d === 0 ? 1 / t === 1 / d : !!(t === d || numberIsNaN(t) && numberIsNaN(d));
278221
278221
  }, implementation$3 = implementation$4, polyfill$3 = function() {
278222
278222
  return typeof Object.is == "function" ? Object.is : implementation$3;
278223
- }, defineProperties_1, hasRequiredDefineProperties;
278224
- function requireDefineProperties() {
278225
- if (hasRequiredDefineProperties)
278226
- return defineProperties_1;
278227
- hasRequiredDefineProperties = 1;
278228
- var a = objectKeys$1, t = typeof Symbol == "function" && typeof Symbol("foo") == "symbol", d = Object.prototype.toString, c = Array.prototype.concat, b = defineDataProperty, u = function(H) {
278229
- return typeof H == "function" && d.call(H) === "[object Function]";
278230
- }, p = hasPropertyDescriptors_1(), T = function(H, F, ee, S) {
278231
- if (F in H) {
278232
- if (S === !0) {
278233
- if (H[F] === ee)
278234
- return;
278235
- } else if (!u(S) || !S())
278223
+ }, keys$4 = objectKeys$1, hasSymbols = typeof Symbol == "function" && typeof Symbol("foo") == "symbol", toStr = Object.prototype.toString, concat$2 = Array.prototype.concat, defineDataProperty = defineDataProperty$1, isFunction$2 = function(a) {
278224
+ return typeof a == "function" && toStr.call(a) === "[object Function]";
278225
+ }, supportsDescriptors = hasPropertyDescriptors_1(), defineProperty = function(a, t, d, c) {
278226
+ if (t in a) {
278227
+ if (c === !0) {
278228
+ if (a[t] === d)
278236
278229
  return;
278237
- }
278238
- p ? b(H, F, ee, !0) : b(H, F, ee);
278239
- }, G = function(H, F) {
278240
- var ee = arguments.length > 2 ? arguments[2] : {}, S = a(F);
278241
- t && (S = c.call(S, Object.getOwnPropertySymbols(F)));
278242
- for (var fe = 0; fe < S.length; fe += 1)
278243
- T(H, S[fe], F[S[fe]], ee[S[fe]]);
278244
- };
278245
- return G.supportsDescriptors = !!p, defineProperties_1 = G, defineProperties_1;
278246
- }
278247
- var shim$3, hasRequiredShim$1;
278230
+ } else if (!isFunction$2(c) || !c())
278231
+ return;
278232
+ }
278233
+ supportsDescriptors ? defineDataProperty(a, t, d, !0) : defineDataProperty(a, t, d);
278234
+ }, defineProperties$1 = function(a, t) {
278235
+ var d = arguments.length > 2 ? arguments[2] : {}, c = keys$4(t);
278236
+ hasSymbols && (c = concat$2.call(c, Object.getOwnPropertySymbols(t)));
278237
+ for (var b = 0; b < c.length; b += 1)
278238
+ defineProperty(a, c[b], t[c[b]], d[c[b]]);
278239
+ };
278240
+ defineProperties$1.supportsDescriptors = !!supportsDescriptors;
278241
+ var defineProperties_1 = defineProperties$1, shim$3, hasRequiredShim$1;
278248
278242
  function requireShim$1() {
278249
278243
  if (hasRequiredShim$1)
278250
278244
  return shim$3;
278251
278245
  hasRequiredShim$1 = 1;
278252
- var a = polyfill$3, t = requireDefineProperties();
278246
+ var a = polyfill$3, t = defineProperties_1;
278253
278247
  return shim$3 = function() {
278254
278248
  var c = a();
278255
278249
  return t(Object, { is: c }, {
@@ -278264,7 +278258,7 @@ function requireObjectIs() {
278264
278258
  if (hasRequiredObjectIs)
278265
278259
  return objectIs;
278266
278260
  hasRequiredObjectIs = 1;
278267
- var a = requireDefineProperties(), t = callBindExports, d = implementation$4, c = polyfill$3, b = requireShim$1(), u = t(c(), Object);
278261
+ var a = defineProperties_1, t = callBindExports, d = implementation$4, c = polyfill$3, b = requireShim$1(), u = t(c(), Object);
278268
278262
  return a(u, {
278269
278263
  getPolyfill: c,
278270
278264
  implementation: d,
@@ -278292,7 +278286,7 @@ function requireShim() {
278292
278286
  if (hasRequiredShim)
278293
278287
  return shim$2;
278294
278288
  hasRequiredShim = 1;
278295
- var a = requireDefineProperties(), t = requirePolyfill();
278289
+ var a = defineProperties_1, t = requirePolyfill();
278296
278290
  return shim$2 = function() {
278297
278291
  var c = t();
278298
278292
  return a(Number, { isNaN: c }, {
@@ -278307,7 +278301,7 @@ function requireIsNan() {
278307
278301
  if (hasRequiredIsNan)
278308
278302
  return isNan;
278309
278303
  hasRequiredIsNan = 1;
278310
- var a = callBindExports, t = requireDefineProperties(), d = requireImplementation(), c = requirePolyfill(), b = requireShim(), u = a(c(), Number);
278304
+ var a = callBindExports, t = defineProperties_1, d = requireImplementation(), c = requirePolyfill(), b = requireShim(), u = a(c(), Number);
278311
278305
  return t(u, {
278312
278306
  getPolyfill: c,
278313
278307
  implementation: d,
@@ -304434,7 +304428,7 @@ class WorkerFactory {
304434
304428
  constructor() {
304435
304429
  }
304436
304430
  static resolveWorkerURL = async (t) => {
304437
- const d = typeof document < "u" && document?.location?.href || "", { workerViteURL: c } = await import("./viteWorkerURL.constant-Zb9b1rwg.mjs");
304431
+ const d = typeof document < "u" && document?.location?.href || "", { workerViteURL: c } = await import("./viteWorkerURL.constant-D5tjm9DZ.mjs");
304438
304432
  return new URL(c[t], d);
304439
304433
  };
304440
304434
  static createWorker = async (t) => {
@@ -304442,13 +304436,13 @@ class WorkerFactory {
304442
304436
  let c;
304443
304437
  return t === WorkerVariant.SnarkJS ? c = await import(
304444
304438
  /* @vite-ignore */
304445
- "./snarkjsWorkerLogic-13VPb8Lr.mjs"
304439
+ "./snarkjsWorkerLogic-Dfy8zKXC.mjs"
304446
304440
  ) : t === WorkerVariant.ZKProof ? c = await import(
304447
304441
  /* @vite-ignore */
304448
- "./zkProofWorkerLogic-Dwhh2cXc.mjs"
304442
+ "./zkProofWorkerLogic-AE7dY8OC.mjs"
304449
304443
  ) : t === WorkerVariant.UTXO && (c = await import(
304450
304444
  /* @vite-ignore */
304451
- "./utxoWorkerLogic-Fd42zERH.mjs"
304445
+ "./utxoWorkerLogic-Bs7H0pLa.mjs"
304452
304446
  )), c.default;
304453
304447
  }
304454
304448
  const d = await WorkerFactory.resolveWorkerURL(t);
@@ -304892,7 +304886,7 @@ async function callRelayerTransactAPI(a, t) {
304892
304886
  const emporiumOp = (a, t, d, c, b) => {
304893
304887
  let u = new Uint8Array(), p = new Uint8Array();
304894
304888
  typeof a == "object" && "address" in a ? (u = arrayify(a.address), t && (p = arrayify(a.interface.encodeFunctionData(t, d)))) : u = arrayify(a);
304895
- const T = arrayify([c ? 1 : 0]), G = zeroPad(arrayify(BigNumber.from(b ?? 0n)), 16), H = concat$2([u, T, G, p]);
304889
+ const T = arrayify([c ? 1 : 0]), G = zeroPad(arrayify(BigNumber.from(b ?? 0n)), 16), H = concat$3([u, T, G, p]);
304896
304890
  return hexlify(H);
304897
304891
  }, encodeEmporiumMetadata = (a, t) => defaultAbiCoder.encode(
304898
304892
  ["tuple(bytes32 walletSalt, bytes[] ops)"],
@@ -359835,7 +359829,7 @@ var ponyfill = ponyfill$1, implementation_browser = { exports: {} };
359835
359829
  typeof self < "u" ? implementation_browser.exports = self : typeof window < "u" ? implementation_browser.exports = window : implementation_browser.exports = Function("return this")();
359836
359830
  var implementation_browserExports = implementation_browser.exports, implementation$1 = implementation_browserExports, polyfill$1 = function a() {
359837
359831
  return typeof commonjsGlobal != "object" || !commonjsGlobal || commonjsGlobal.Math !== Math || commonjsGlobal.Array !== Array ? implementation$1 : commonjsGlobal;
359838
- }, define = requireDefineProperties(), getPolyfill$1 = polyfill$1, shim$1 = function a() {
359832
+ }, define = defineProperties_1, getPolyfill$1 = polyfill$1, shim$1 = function a() {
359839
359833
  var t = getPolyfill$1();
359840
359834
  if (define.supportsDescriptors) {
359841
359835
  var d = Object.getOwnPropertyDescriptor(t, "globalThis");
@@ -359848,7 +359842,7 @@ var implementation_browserExports = implementation_browser.exports, implementati
359848
359842
  } else
359849
359843
  (typeof globalThis != "object" || globalThis !== t) && (t.globalThis = t);
359850
359844
  return t;
359851
- }, defineProperties = requireDefineProperties(), implementation = implementation_browserExports, getPolyfill = polyfill$1, shim = shim$1, polyfill = getPolyfill(), getGlobal = function() {
359845
+ }, defineProperties = defineProperties_1, implementation = implementation_browserExports, getPolyfill = polyfill$1, shim = shim$1, polyfill = getPolyfill(), getGlobal = function() {
359852
359846
  return polyfill;
359853
359847
  };
359854
359848
  defineProperties(getGlobal, {
package/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { c8 as s, a_ as t, aZ as r, L as i, b0 as o, a$ as n, cJ as c, cK as d, cN as l, cL as g, cM as p, d8 as A, fF as b, bH as u, dh as y, dr as T, fu as R, d9 as P, g9 as f, c7 as m, br as S, bs as I, bz as k, g7 as C, bG as E, fn as h, ft as D, fs as v, d5 as x, d4 as U, b2 as L, b7 as F, b6 as _, b5 as M, be as O, da as B, ct as N, d3 as w, aA as V, fp as W, fo as H, cX as G, ds as K, aG as Y, aF as z, cw as Z, gs as q, T as j, fA as Q, du as X, fq as J, fD as $, fE as aa, fZ as ea, fw as sa, fv as ta, fW as ra, M as ia, cI as oa, cV as na, bI as ca, ff as da, bd as la, ba as ga, b4 as pa, aX as Aa, g6 as ba, fx as ua, gl as ya, gk as Ta, gi as Ra, gj as Pa, fy as fa, gn as ma, gh as Sa, gf as Ia, gg as ka, gm as Ca, gc as Ea, gd as ha, ge as Da, g4 as va, ag as xa, b1 as Ua, bb as La, c0 as Fa, c9 as _a, g3 as Ma, g8 as Oa, g2 as Ba, g1 as Na, g0 as wa, f$ as Va, f_ as Wa, b8 as Ha, bc as Ga, b9 as Ka, b3 as Ya, fG as za, fr as Za, gr as qa, aY as ja, fY as Qa, g5 as Xa, cP as Ja, cQ as $a, cS as ae, cR as ee, db as se, de as te, dd as re, df as ie, gq as oe, c$ as ne, k as ce, U as de, fB as le, cp as ge, fC as pe, fz as Ae, cU as be, dg as ue, cq as ye, dO as Te, eG as Re, aV as Pe, aW as fe, bM as me, ak as Se, a4 as Ie, X as ke, cg as Ce, bO as Ee, an as he, a7 as De, $ as ve, as as xe, at as Ue, co as Le, eJ as Fe, bP as _e, ap as Me, a9 as Oe, a1 as Be, bx as Ne, dB as we, dH as Ve, dI as We, aq as He, aa as Ge, a2 as Ke, ca as Ye, aj as ze, a5 as Ze, Y as qe, ce as je, c6 as Qe, ee as Xe, eT as Je, eU as $e, i as as, eV as es, h as ss, eW as ts, e_ as rs, e$ as is, dC as os, eB as ns, fb as cs, dA as ds, A as ls, D as gs, em as ps, ep as As, au as bs, aB as us, d2 as ys, dv as Ts, J as Rs, q as Ps, bB as fs, bC as ms, ac as Ss, bD as Is, eS as ks, eR as Cs, aT as Es, e5 as hs, eZ as Ds, dV as vs, fa as xs, az as Us, bu as Ls, go as Fs, gp as _s, bt as Ms, bm as Os, cO as Bs, bw as Ns, dc as ws, fh as Vs, fM as Ws, dZ as Hs, eg as Gs, eh as Ks, cr as Ys, m as zs, f9 as Zs, n as qs, l as js, fk as Qs, fl as Xs, fm as Js, bf as $s, eY as at, ei as et, f5 as st, f6 as tt, fX as rt, fd as it, fI as ot, fj as nt, gb as ct, ga as dt, fe as lt, fc as gt, f8 as pt, cs as At, f3 as bt, cb as ut, bK as yt, al as Tt, a3 as Rt, V as Pt, cd as ft, bY as mt, eu as St, bn as It, cT as kt, d0 as Ct, d7 as Et, ck as ht, dJ as Dt, f0 as vt, dY as xt, aM as Ut, aO as Lt, aK as Ft, aN as _t, ew as Mt, ex as Ot, ez as Bt, eA as Nt, eC as wt, aL as Vt, f4 as Wt, E as Ht, ed as Gt, C as Kt, cc as Yt, f1 as zt, f2 as Zt, bR as qt, cv as jt, bE as Qt, bF as Xt, w as Jt, x as $t, y as ar, z as er, bQ as sr, fQ as tr, P as rr, Q as ir, v as or, fO as nr, eI as cr, ah as dr, d$ as lr, e0 as gr, d1 as pr, R as Ar, dX as br, dW as ur, d_ as yr, ai as Tr, ea as Rr, F as Pr, bJ as fr, cY as mr, e1 as Sr, dQ as Ir, aH as kr, aU as Cr, K as Er, eE as hr, eD as Dr, e6 as vr, eb as xr, ec as Ur, fV as Lr, ax as Fr, eO as _r, eP as Mr, ch as Or, aI as Br, S as Nr, e4 as wr, t as Vr, eF as Wr, aJ as Hr, f7 as Gr, G as Kr, H as Yr, I as zr, eM as Zr, eN as qr, eL as jr, dK as Qr, fP as Xr, ci as Jr, fU as $r, cx as ai, cy as ei, cz as si, cA as ti, cB as ri, cC as ii, cG as oi, cD as ni, cE as ci, cF as di, fL as li, fi as gi, cu as pi, bi as Ai, aw as bi, eo as ui, bj as yi, en as Ti, aD as Ri, aC as Pi, aE as fi, bh as mi, bg as Si, fT as Ii, cj as ki, cn as Ci, dj as Ei, bV as hi, dk as Di, bX as vi, dp as xi, bT as Ui, dl as Li, bS as Fi, dm as _i, bU as Mi, dU as Oi, ar as Bi, av as Ni, ab as wi, o as Vi, eq as Wi, er as Hi, c3 as Gi, c4 as Ki, N as Yi, O as zi, bZ as Zi, dP as qi, dw as ji, dx as Qi, fK as Xi, cW as Ji, ay as $i, bl as ao, dy as eo, dz as so, bN as to, ao as ro, dt as io, cf as oo, a8 as no, a0 as co, e7 as lo, bp as go, fR as po, et as Ao, bq as bo, dn as uo, bW as yo, c2 as To, bL as Ro, am as Po, a6 as fo, _ as mo, f as So, cm as Io, cl as ko, j as Co, by as Eo, bA as ho, e9 as Do, e8 as vo, fg as xo, d6 as Uo, c5 as Lo, ev as Fo, c1 as _o, ek as Mo, e2 as Oo, dS as Bo, cH as No, e3 as wo, cZ as Vo, eH as Wo, eQ as Ho, di as Go, dT as Ko, eK as Yo, fJ as zo, eX as Zo, ej as qo, dR as jo, bo as Qo, fH as Xo, b$ as Jo, bv as $o, dD as an, dE as en, ey as sn, dM as tn, fS as rn, dG as on, dF as nn, el as cn, c_ as dn, dq as ln, dL as gn, dN as pn, aR as An, aP as bn, aQ as un, aS as yn, ae as Tn, ad as Rn, af as Pn, es as fn, ef as mn, fN as Sn, b_ as In, bk as kn } from "./index-Dt0DvKhx.mjs";
1
+ import { c8 as s, a_ as t, aZ as r, L as i, b0 as o, a$ as n, cJ as c, cK as d, cN as l, cL as g, cM as p, d8 as A, fF as b, bH as u, dh as y, dr as T, fu as R, d9 as P, g9 as f, c7 as m, br as S, bs as I, bz as k, g7 as C, bG as E, fn as h, ft as D, fs as v, d5 as x, d4 as U, b2 as L, b7 as F, b6 as _, b5 as M, be as O, da as B, ct as N, d3 as w, aA as V, fp as W, fo as H, cX as G, ds as K, aG as Y, aF as z, cw as Z, gs as q, T as j, fA as Q, du as X, fq as J, fD as $, fE as aa, fZ as ea, fw as sa, fv as ta, fW as ra, M as ia, cI as oa, cV as na, bI as ca, ff as da, bd as la, ba as ga, b4 as pa, aX as Aa, g6 as ba, fx as ua, gl as ya, gk as Ta, gi as Ra, gj as Pa, fy as fa, gn as ma, gh as Sa, gf as Ia, gg as ka, gm as Ca, gc as Ea, gd as ha, ge as Da, g4 as va, ag as xa, b1 as Ua, bb as La, c0 as Fa, c9 as _a, g3 as Ma, g8 as Oa, g2 as Ba, g1 as Na, g0 as wa, f$ as Va, f_ as Wa, b8 as Ha, bc as Ga, b9 as Ka, b3 as Ya, fG as za, fr as Za, gr as qa, aY as ja, fY as Qa, g5 as Xa, cP as Ja, cQ as $a, cS as ae, cR as ee, db as se, de as te, dd as re, df as ie, gq as oe, c$ as ne, k as ce, U as de, fB as le, cp as ge, fC as pe, fz as Ae, cU as be, dg as ue, cq as ye, dO as Te, eG as Re, aV as Pe, aW as fe, bM as me, ak as Se, a4 as Ie, X as ke, cg as Ce, bO as Ee, an as he, a7 as De, $ as ve, as as xe, at as Ue, co as Le, eJ as Fe, bP as _e, ap as Me, a9 as Oe, a1 as Be, bx as Ne, dB as we, dH as Ve, dI as We, aq as He, aa as Ge, a2 as Ke, ca as Ye, aj as ze, a5 as Ze, Y as qe, ce as je, c6 as Qe, ee as Xe, eT as Je, eU as $e, i as as, eV as es, h as ss, eW as ts, e_ as rs, e$ as is, dC as os, eB as ns, fb as cs, dA as ds, A as ls, D as gs, em as ps, ep as As, au as bs, aB as us, d2 as ys, dv as Ts, J as Rs, q as Ps, bB as fs, bC as ms, ac as Ss, bD as Is, eS as ks, eR as Cs, aT as Es, e5 as hs, eZ as Ds, dV as vs, fa as xs, az as Us, bu as Ls, go as Fs, gp as _s, bt as Ms, bm as Os, cO as Bs, bw as Ns, dc as ws, fh as Vs, fM as Ws, dZ as Hs, eg as Gs, eh as Ks, cr as Ys, m as zs, f9 as Zs, n as qs, l as js, fk as Qs, fl as Xs, fm as Js, bf as $s, eY as at, ei as et, f5 as st, f6 as tt, fX as rt, fd as it, fI as ot, fj as nt, gb as ct, ga as dt, fe as lt, fc as gt, f8 as pt, cs as At, f3 as bt, cb as ut, bK as yt, al as Tt, a3 as Rt, V as Pt, cd as ft, bY as mt, eu as St, bn as It, cT as kt, d0 as Ct, d7 as Et, ck as ht, dJ as Dt, f0 as vt, dY as xt, aM as Ut, aO as Lt, aK as Ft, aN as _t, ew as Mt, ex as Ot, ez as Bt, eA as Nt, eC as wt, aL as Vt, f4 as Wt, E as Ht, ed as Gt, C as Kt, cc as Yt, f1 as zt, f2 as Zt, bR as qt, cv as jt, bE as Qt, bF as Xt, w as Jt, x as $t, y as ar, z as er, bQ as sr, fQ as tr, P as rr, Q as ir, v as or, fO as nr, eI as cr, ah as dr, d$ as lr, e0 as gr, d1 as pr, R as Ar, dX as br, dW as ur, d_ as yr, ai as Tr, ea as Rr, F as Pr, bJ as fr, cY as mr, e1 as Sr, dQ as Ir, aH as kr, aU as Cr, K as Er, eE as hr, eD as Dr, e6 as vr, eb as xr, ec as Ur, fV as Lr, ax as Fr, eO as _r, eP as Mr, ch as Or, aI as Br, S as Nr, e4 as wr, t as Vr, eF as Wr, aJ as Hr, f7 as Gr, G as Kr, H as Yr, I as zr, eM as Zr, eN as qr, eL as jr, dK as Qr, fP as Xr, ci as Jr, fU as $r, cx as ai, cy as ei, cz as si, cA as ti, cB as ri, cC as ii, cG as oi, cD as ni, cE as ci, cF as di, fL as li, fi as gi, cu as pi, bi as Ai, aw as bi, eo as ui, bj as yi, en as Ti, aD as Ri, aC as Pi, aE as fi, bh as mi, bg as Si, fT as Ii, cj as ki, cn as Ci, dj as Ei, bV as hi, dk as Di, bX as vi, dp as xi, bT as Ui, dl as Li, bS as Fi, dm as _i, bU as Mi, dU as Oi, ar as Bi, av as Ni, ab as wi, o as Vi, eq as Wi, er as Hi, c3 as Gi, c4 as Ki, N as Yi, O as zi, bZ as Zi, dP as qi, dw as ji, dx as Qi, fK as Xi, cW as Ji, ay as $i, bl as ao, dy as eo, dz as so, bN as to, ao as ro, dt as io, cf as oo, a8 as no, a0 as co, e7 as lo, bp as go, fR as po, et as Ao, bq as bo, dn as uo, bW as yo, c2 as To, bL as Ro, am as Po, a6 as fo, _ as mo, f as So, cm as Io, cl as ko, j as Co, by as Eo, bA as ho, e9 as Do, e8 as vo, fg as xo, d6 as Uo, c5 as Lo, ev as Fo, c1 as _o, ek as Mo, e2 as Oo, dS as Bo, cH as No, e3 as wo, cZ as Vo, eH as Wo, eQ as Ho, di as Go, dT as Ko, eK as Yo, fJ as zo, eX as Zo, ej as qo, dR as jo, bo as Qo, fH as Xo, b$ as Jo, bv as $o, dD as an, dE as en, ey as sn, dM as tn, fS as rn, dG as on, dF as nn, el as cn, c_ as dn, dq as ln, dL as gn, dN as pn, aR as An, aP as bn, aQ as un, aS as yn, ae as Tn, ad as Rn, af as Pn, es as fn, ef as mn, fN as Sn, b_ as In, bk as kn } from "./index-pEO-cxW2.mjs";
2
2
  export {
3
3
  s as ACCESS_TOKEN_MINTING_POINTS,
4
4
  t as AIPRISE_KYB_TEMPLATE_ID_PROD,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hinkal/common",
3
- "version": "0.0.69",
3
+ "version": "0.0.71",
4
4
  "type": "module",
5
5
  "main": "index.mjs",
6
6
  "module": "index.mjs",
@@ -1,5 +1,5 @@
1
- import { r as sn, g as ja, p as Se, a as Lo, B as mo, b as bo, c as en, e as $a, d as Ga, u as Un } from "./index-Dt0DvKhx.mjs";
2
- import { W as yo } from "./workerProxy-B2Utj5Kd.mjs";
1
+ import { r as sn, g as ja, p as Se, a as Lo, B as mo, b as bo, c as en, e as $a, d as Ga, u as Un } from "./index-pEO-cxW2.mjs";
2
+ import { W as yo } from "./workerProxy-arYWe5zZ.mjs";
3
3
  const Co = [0, 1, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4];
4
4
  function rn(c, t) {
5
5
  if (!t || t == 10)
@@ -15664,12 +15664,11 @@ const il = typeof Se < "u" && Se.versions != null && Se.versions.node != null, x
15664
15664
  }
15665
15665
  } = c.metadata;
15666
15666
  let C = e, l = n;
15667
- if (console.log({ isWebpack: xn, wasmFilePath: e }), il) {
15667
+ if (console.log({ isWebpack: xn }), console.log({ wasmFilePath: e }), il) {
15668
15668
  g && !xn ? (C = `test/circuits/${e}`, l = `test/circuits/${n}`) : xn && (C = `libs/hardhat/test/circuits/${e}`, l = `libs/hardhat/test/circuits/${n}`);
15669
15669
  const o = require("path");
15670
15670
  C = o.resolve(C), l = o.resolve(l);
15671
- } else
15672
- a === d.localhost && (C = `${s}/${e}`, l = `${s}/${n}`);
15671
+ }
15673
15672
  console.log({ wasmFullFilePath: C });
15674
15673
  try {
15675
15674
  const { proof: o, publicSignals: y } = await Ir(t, C, l), E = await Or(o, y), m = JSON.parse(`[${E}]`);
@@ -1,5 +1,5 @@
1
- import { U as y, k as h, l as f, B as p, m as U, n as g, o as d, q as x, j as T, s as u } from "./index-Dt0DvKhx.mjs";
2
- import { W as v } from "./workerProxy-B2Utj5Kd.mjs";
1
+ import { U as y, k as h, l as f, B as p, m as U, n as g, o as d, q as x, j as T, s as u } from "./index-pEO-cxW2.mjs";
2
+ import { W as v } from "./workerProxy-arYWe5zZ.mjs";
3
3
  const i = new v(), k = async ({ data: e }) => {
4
4
  const { utxos: t, nullifiers: r } = e, o = t.filter((s) => {
5
5
  const c = new y(s);
@@ -0,0 +1,9 @@
1
+ import { W as r } from "./index-pEO-cxW2.mjs";
2
+ const e = "" + new URL("assets/zkProofWorkerLauncher-DdLnV4nj.js", import.meta.url).href, o = "" + new URL("assets/snarkjsWorkerLauncher-BazhiJ3V.js", import.meta.url).href, s = "" + new URL("assets/utxoWorkerLauncher-DnwHvvqe.js", import.meta.url).href, n = {
3
+ [r.ZKProof]: e,
4
+ [r.SnarkJS]: o,
5
+ [r.UTXO]: s
6
+ };
7
+ export {
8
+ n as workerViteURL
9
+ };
@@ -1,4 +1,4 @@
1
- import { p as s } from "./index-Dt0DvKhx.mjs";
1
+ import { p as s } from "./index-pEO-cxW2.mjs";
2
2
  class r {
3
3
  isNode = !1;
4
4
  /**