@aboutcircles/sdk-runner 0.1.2 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +125 -125
  2. package/package.json +5 -1
package/dist/index.js CHANGED
@@ -106620,7 +106620,7 @@ __export(exports_buffer, {
106620
106620
  function getLens(b64) {
106621
106621
  var len2 = b64.length;
106622
106622
  if (len2 % 4 > 0)
106623
- throw new Error("Invalid string. Length must be a multiple of 4");
106623
+ throw Error("Invalid string. Length must be a multiple of 4");
106624
106624
  var validLen = b64.indexOf("=");
106625
106625
  if (validLen === -1)
106626
106626
  validLen = len2;
@@ -106704,12 +106704,12 @@ function write(buffer2, value, offset, isLE2, mLen, nBytes) {
106704
106704
  }
106705
106705
  function createBuffer(length2) {
106706
106706
  if (length2 > kMaxLength)
106707
- throw new RangeError('The value "' + length2 + '" is invalid for option "size"');
106707
+ throw RangeError('The value "' + length2 + '" is invalid for option "size"');
106708
106708
  let buf = new Uint8Array(length2);
106709
106709
  return Object.setPrototypeOf(buf, Buffer2.prototype), buf;
106710
106710
  }
106711
106711
  function E(sym, getMessage, Base) {
106712
- return class NodeError extends Base {
106712
+ return class extends Base {
106713
106713
  constructor() {
106714
106714
  super();
106715
106715
  Object.defineProperty(this, "message", { value: getMessage.apply(this, arguments), writable: true, configurable: true }), this.name = `${this.name} [${sym}]`, this.stack, delete this.name;
@@ -106728,7 +106728,7 @@ function E(sym, getMessage, Base) {
106728
106728
  function Buffer2(arg, encodingOrOffset, length2) {
106729
106729
  if (typeof arg === "number") {
106730
106730
  if (typeof encodingOrOffset === "string")
106731
- throw new TypeError('The "string" argument must be of type string. Received type number');
106731
+ throw TypeError('The "string" argument must be of type string. Received type number');
106732
106732
  return allocUnsafe(arg);
106733
106733
  }
106734
106734
  return from15(arg, encodingOrOffset, length2);
@@ -106739,28 +106739,28 @@ function from15(value, encodingOrOffset, length2) {
106739
106739
  if (ArrayBuffer.isView(value))
106740
106740
  return fromArrayView(value);
106741
106741
  if (value == null)
106742
- throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + typeof value);
106742
+ throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + typeof value);
106743
106743
  if (isInstance(value, ArrayBuffer) || value && isInstance(value.buffer, ArrayBuffer))
106744
106744
  return fromArrayBuffer(value, encodingOrOffset, length2);
106745
- if (typeof SharedArrayBuffer !== "undefined" && (isInstance(value, SharedArrayBuffer) || value && isInstance(value.buffer, SharedArrayBuffer)))
106745
+ if (typeof SharedArrayBuffer < "u" && (isInstance(value, SharedArrayBuffer) || value && isInstance(value.buffer, SharedArrayBuffer)))
106746
106746
  return fromArrayBuffer(value, encodingOrOffset, length2);
106747
106747
  if (typeof value === "number")
106748
- throw new TypeError('The "value" argument must not be of type number. Received type number');
106748
+ throw TypeError('The "value" argument must not be of type number. Received type number');
106749
106749
  let valueOf = value.valueOf && value.valueOf();
106750
106750
  if (valueOf != null && valueOf !== value)
106751
106751
  return Buffer2.from(valueOf, encodingOrOffset, length2);
106752
106752
  let b = fromObject(value);
106753
106753
  if (b)
106754
106754
  return b;
106755
- if (typeof Symbol !== "undefined" && Symbol.toPrimitive != null && typeof value[Symbol.toPrimitive] === "function")
106755
+ if (typeof Symbol < "u" && Symbol.toPrimitive != null && typeof value[Symbol.toPrimitive] === "function")
106756
106756
  return Buffer2.from(value[Symbol.toPrimitive]("string"), encodingOrOffset, length2);
106757
- throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + typeof value);
106757
+ throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + typeof value);
106758
106758
  }
106759
106759
  function assertSize4(size5) {
106760
106760
  if (typeof size5 !== "number")
106761
- throw new TypeError('"size" argument must be of type number');
106761
+ throw TypeError('"size" argument must be of type number');
106762
106762
  else if (size5 < 0)
106763
- throw new RangeError('The value "' + size5 + '" is invalid for option "size"');
106763
+ throw RangeError('The value "' + size5 + '" is invalid for option "size"');
106764
106764
  }
106765
106765
  function alloc(size5, fill, encoding) {
106766
106766
  if (assertSize4(size5), size5 <= 0)
@@ -106776,7 +106776,7 @@ function fromString3(string, encoding) {
106776
106776
  if (typeof encoding !== "string" || encoding === "")
106777
106777
  encoding = "utf8";
106778
106778
  if (!Buffer2.isEncoding(encoding))
106779
- throw new TypeError("Unknown encoding: " + encoding);
106779
+ throw TypeError("Unknown encoding: " + encoding);
106780
106780
  let length2 = byteLength(string, encoding) | 0, buf = createBuffer(length2), actual = buf.write(string, encoding);
106781
106781
  if (actual !== length2)
106782
106782
  buf = buf.slice(0, actual);
@@ -106797,9 +106797,9 @@ function fromArrayView(arrayView) {
106797
106797
  }
106798
106798
  function fromArrayBuffer(array, byteOffset, length2) {
106799
106799
  if (byteOffset < 0 || array.byteLength < byteOffset)
106800
- throw new RangeError('"offset" is outside of buffer bounds');
106800
+ throw RangeError('"offset" is outside of buffer bounds');
106801
106801
  if (array.byteLength < byteOffset + (length2 || 0))
106802
- throw new RangeError('"length" is outside of buffer bounds');
106802
+ throw RangeError('"length" is outside of buffer bounds');
106803
106803
  let buf;
106804
106804
  if (byteOffset === undefined && length2 === undefined)
106805
106805
  buf = new Uint8Array(array);
@@ -106826,7 +106826,7 @@ function fromObject(obj) {
106826
106826
  }
106827
106827
  function checked(length2) {
106828
106828
  if (length2 >= kMaxLength)
106829
- throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x" + kMaxLength.toString(16) + " bytes");
106829
+ throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x" + kMaxLength.toString(16) + " bytes");
106830
106830
  return length2 | 0;
106831
106831
  }
106832
106832
  function byteLength(string, encoding) {
@@ -106835,7 +106835,7 @@ function byteLength(string, encoding) {
106835
106835
  if (ArrayBuffer.isView(string) || isInstance(string, ArrayBuffer))
106836
106836
  return string.byteLength;
106837
106837
  if (typeof string !== "string")
106838
- throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type ' + typeof string);
106838
+ throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type ' + typeof string);
106839
106839
  let len2 = string.length, mustMatch = arguments.length > 2 && arguments[2] === true;
106840
106840
  if (!mustMatch && len2 === 0)
106841
106841
  return 0;
@@ -106899,7 +106899,7 @@ function slowToString(encoding, start, end) {
106899
106899
  return utf16leSlice(this, start, end);
106900
106900
  default:
106901
106901
  if (loweredCase)
106902
- throw new TypeError("Unknown encoding: " + encoding);
106902
+ throw TypeError("Unknown encoding: " + encoding);
106903
106903
  encoding = (encoding + "").toLowerCase(), loweredCase = true;
106904
106904
  }
106905
106905
  }
@@ -106944,7 +106944,7 @@ function bidirectionalIndexOf(buffer2, val, byteOffset, encoding, dir) {
106944
106944
  return Uint8Array.prototype.lastIndexOf.call(buffer2, val, byteOffset);
106945
106945
  return arrayIndexOf(buffer2, [val], byteOffset, encoding, dir);
106946
106946
  }
106947
- throw new TypeError("val must be string, number or Buffer");
106947
+ throw TypeError("val must be string, number or Buffer");
106948
106948
  }
106949
106949
  function arrayIndexOf(arr, val, byteOffset, encoding, dir) {
106950
106950
  let indexSize = 1, arrLength = arr.length, valLength = val.length;
@@ -107109,17 +107109,17 @@ function utf16leSlice(buf, start, end) {
107109
107109
  }
107110
107110
  function checkOffset(offset, ext, length2) {
107111
107111
  if (offset % 1 !== 0 || offset < 0)
107112
- throw new RangeError("offset is not uint");
107112
+ throw RangeError("offset is not uint");
107113
107113
  if (offset + ext > length2)
107114
- throw new RangeError("Trying to access beyond buffer length");
107114
+ throw RangeError("Trying to access beyond buffer length");
107115
107115
  }
107116
107116
  function checkInt(buf, value, offset, ext, max, min) {
107117
107117
  if (!Buffer2.isBuffer(buf))
107118
- throw new TypeError('"buffer" argument must be a Buffer instance');
107118
+ throw TypeError('"buffer" argument must be a Buffer instance');
107119
107119
  if (value > max || value < min)
107120
- throw new RangeError('"value" argument is out of bounds');
107120
+ throw RangeError('"value" argument is out of bounds');
107121
107121
  if (offset + ext > buf.length)
107122
- throw new RangeError("Index out of range");
107122
+ throw RangeError("Index out of range");
107123
107123
  }
107124
107124
  function wrtBigUInt64LE(buf, value, offset, min, max) {
107125
107125
  checkIntBI(value, min, max, buf, offset, 7);
@@ -107137,9 +107137,9 @@ function wrtBigUInt64BE(buf, value, offset, min, max) {
107137
107137
  }
107138
107138
  function checkIEEE754(buf, value, offset, ext, max, min) {
107139
107139
  if (offset + ext > buf.length)
107140
- throw new RangeError("Index out of range");
107140
+ throw RangeError("Index out of range");
107141
107141
  if (offset < 0)
107142
- throw new RangeError("Index out of range");
107142
+ throw RangeError("Index out of range");
107143
107143
  }
107144
107144
  function writeFloat(buf, value, offset, littleEndian, noAssert) {
107145
107145
  if (value = +value, offset = offset >>> 0, !noAssert)
@@ -107239,7 +107239,7 @@ function utf8ToBytes3(string, units) {
107239
107239
  break;
107240
107240
  bytes.push(codePoint >> 18 | 240, codePoint >> 12 & 63 | 128, codePoint >> 6 & 63 | 128, codePoint & 63 | 128);
107241
107241
  } else
107242
- throw new Error("Invalid code point");
107242
+ throw Error("Invalid code point");
107243
107243
  }
107244
107244
  return bytes;
107245
107245
  }
@@ -107274,14 +107274,14 @@ function isInstance(obj, type) {
107274
107274
  return obj instanceof type || obj != null && obj.constructor != null && obj.constructor.name != null && obj.constructor.name === type.name;
107275
107275
  }
107276
107276
  function defineBigIntMethod(fn) {
107277
- return typeof BigInt === "undefined" ? BufferBigIntNotDefined : fn;
107277
+ return typeof BigInt > "u" ? BufferBigIntNotDefined : fn;
107278
107278
  }
107279
107279
  function BufferBigIntNotDefined() {
107280
- throw new Error("BigInt not supported");
107280
+ throw Error("BigInt not supported");
107281
107281
  }
107282
107282
  function notimpl(name) {
107283
107283
  return () => {
107284
- throw new Error(name + " is not implemented for node:buffer browser polyfill");
107284
+ throw Error(name + " is not implemented for node:buffer browser polyfill");
107285
107285
  };
107286
107286
  }
107287
107287
  var lookup, revLookup, code = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", i, len, customInspectSymbol, INSPECT_MAX_BYTES = 50, kMaxLength = 2147483647, kStringMaxLength = 536870888, btoa2, atob2, File, Blob, constants, ERR_BUFFER_OUT_OF_BOUNDS, ERR_INVALID_ARG_TYPE, ERR_OUT_OF_RANGE, MAX_ARGUMENTS_LENGTH = 4096, INVALID_BASE64_RE, hexSliceLookupTable, resolveObjectURL, isUtf8, isAscii = (str) => {
@@ -107347,16 +107347,16 @@ var init_buffer = __esm(() => {
107347
107347
  Buffer2.allocUnsafeSlow = function(size5) {
107348
107348
  return allocUnsafe(size5);
107349
107349
  };
107350
- Buffer2.isBuffer = function isBuffer(b) {
107350
+ Buffer2.isBuffer = function(b) {
107351
107351
  return b != null && b._isBuffer === true && b !== Buffer2.prototype;
107352
107352
  };
107353
- Buffer2.compare = function compare(a, b) {
107353
+ Buffer2.compare = function(a, b) {
107354
107354
  if (isInstance(a, Uint8Array))
107355
107355
  a = Buffer2.from(a, a.offset, a.byteLength);
107356
107356
  if (isInstance(b, Uint8Array))
107357
107357
  b = Buffer2.from(b, b.offset, b.byteLength);
107358
107358
  if (!Buffer2.isBuffer(a) || !Buffer2.isBuffer(b))
107359
- throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');
107359
+ throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');
107360
107360
  if (a === b)
107361
107361
  return 0;
107362
107362
  let x = a.length, y = b.length;
@@ -107371,7 +107371,7 @@ var init_buffer = __esm(() => {
107371
107371
  return 1;
107372
107372
  return 0;
107373
107373
  };
107374
- Buffer2.isEncoding = function isEncoding(encoding) {
107374
+ Buffer2.isEncoding = function(encoding) {
107375
107375
  switch (String(encoding).toLowerCase()) {
107376
107376
  case "hex":
107377
107377
  case "utf8":
@@ -107389,9 +107389,9 @@ var init_buffer = __esm(() => {
107389
107389
  return false;
107390
107390
  }
107391
107391
  };
107392
- Buffer2.concat = function concat3(list, length2) {
107392
+ Buffer2.concat = function(list, length2) {
107393
107393
  if (!Array.isArray(list))
107394
- throw new TypeError('"list" argument must be an Array of Buffers');
107394
+ throw TypeError('"list" argument must be an Array of Buffers');
107395
107395
  if (list.length === 0)
107396
107396
  return Buffer2.alloc(0);
107397
107397
  let i2;
@@ -107411,7 +107411,7 @@ var init_buffer = __esm(() => {
107411
107411
  } else
107412
107412
  Uint8Array.prototype.set.call(buffer2, buf, pos);
107413
107413
  else if (!Buffer2.isBuffer(buf))
107414
- throw new TypeError('"list" argument must be an Array of Buffers');
107414
+ throw TypeError('"list" argument must be an Array of Buffers');
107415
107415
  else
107416
107416
  buf.copy(buffer2, pos);
107417
107417
  pos += buf.length;
@@ -107420,31 +107420,31 @@ var init_buffer = __esm(() => {
107420
107420
  };
107421
107421
  Buffer2.byteLength = byteLength;
107422
107422
  Buffer2.prototype._isBuffer = true;
107423
- Buffer2.prototype.swap16 = function swap16() {
107423
+ Buffer2.prototype.swap16 = function() {
107424
107424
  let len2 = this.length;
107425
107425
  if (len2 % 2 !== 0)
107426
- throw new RangeError("Buffer size must be a multiple of 16-bits");
107426
+ throw RangeError("Buffer size must be a multiple of 16-bits");
107427
107427
  for (let i2 = 0;i2 < len2; i2 += 2)
107428
107428
  swap(this, i2, i2 + 1);
107429
107429
  return this;
107430
107430
  };
107431
- Buffer2.prototype.swap32 = function swap32() {
107431
+ Buffer2.prototype.swap32 = function() {
107432
107432
  let len2 = this.length;
107433
107433
  if (len2 % 4 !== 0)
107434
- throw new RangeError("Buffer size must be a multiple of 32-bits");
107434
+ throw RangeError("Buffer size must be a multiple of 32-bits");
107435
107435
  for (let i2 = 0;i2 < len2; i2 += 4)
107436
107436
  swap(this, i2, i2 + 3), swap(this, i2 + 1, i2 + 2);
107437
107437
  return this;
107438
107438
  };
107439
- Buffer2.prototype.swap64 = function swap64() {
107439
+ Buffer2.prototype.swap64 = function() {
107440
107440
  let len2 = this.length;
107441
107441
  if (len2 % 8 !== 0)
107442
- throw new RangeError("Buffer size must be a multiple of 64-bits");
107442
+ throw RangeError("Buffer size must be a multiple of 64-bits");
107443
107443
  for (let i2 = 0;i2 < len2; i2 += 8)
107444
107444
  swap(this, i2, i2 + 7), swap(this, i2 + 1, i2 + 6), swap(this, i2 + 2, i2 + 5), swap(this, i2 + 3, i2 + 4);
107445
107445
  return this;
107446
107446
  };
107447
- Buffer2.prototype.toString = function toString2() {
107447
+ Buffer2.prototype.toString = function() {
107448
107448
  let length2 = this.length;
107449
107449
  if (length2 === 0)
107450
107450
  return "";
@@ -107453,14 +107453,14 @@ var init_buffer = __esm(() => {
107453
107453
  return slowToString.apply(this, arguments);
107454
107454
  };
107455
107455
  Buffer2.prototype.toLocaleString = Buffer2.prototype.toString;
107456
- Buffer2.prototype.equals = function equals3(b) {
107456
+ Buffer2.prototype.equals = function(b) {
107457
107457
  if (!Buffer2.isBuffer(b))
107458
- throw new TypeError("Argument must be a Buffer");
107458
+ throw TypeError("Argument must be a Buffer");
107459
107459
  if (this === b)
107460
107460
  return true;
107461
107461
  return Buffer2.compare(this, b) === 0;
107462
107462
  };
107463
- Buffer2.prototype.inspect = function inspect() {
107463
+ Buffer2.prototype.inspect = function() {
107464
107464
  let str = "", max = INSPECT_MAX_BYTES;
107465
107465
  if (str = this.toString("hex", 0, max).replace(/(.{2})/g, "$1 ").trim(), this.length > max)
107466
107466
  str += " ... ";
@@ -107468,11 +107468,11 @@ var init_buffer = __esm(() => {
107468
107468
  };
107469
107469
  if (customInspectSymbol)
107470
107470
  Buffer2.prototype[customInspectSymbol] = Buffer2.prototype.inspect;
107471
- Buffer2.prototype.compare = function compare2(target, start, end, thisStart, thisEnd) {
107471
+ Buffer2.prototype.compare = function(target, start, end, thisStart, thisEnd) {
107472
107472
  if (isInstance(target, Uint8Array))
107473
107473
  target = Buffer2.from(target, target.offset, target.byteLength);
107474
107474
  if (!Buffer2.isBuffer(target))
107475
- throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type ' + typeof target);
107475
+ throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type ' + typeof target);
107476
107476
  if (start === undefined)
107477
107477
  start = 0;
107478
107478
  if (end === undefined)
@@ -107482,7 +107482,7 @@ var init_buffer = __esm(() => {
107482
107482
  if (thisEnd === undefined)
107483
107483
  thisEnd = this.length;
107484
107484
  if (start < 0 || end > target.length || thisStart < 0 || thisEnd > this.length)
107485
- throw new RangeError("out of range index");
107485
+ throw RangeError("out of range index");
107486
107486
  if (thisStart >= thisEnd && start >= end)
107487
107487
  return 0;
107488
107488
  if (thisStart >= thisEnd)
@@ -107503,16 +107503,16 @@ var init_buffer = __esm(() => {
107503
107503
  return 1;
107504
107504
  return 0;
107505
107505
  };
107506
- Buffer2.prototype.includes = function includes(val, byteOffset, encoding) {
107506
+ Buffer2.prototype.includes = function(val, byteOffset, encoding) {
107507
107507
  return this.indexOf(val, byteOffset, encoding) !== -1;
107508
107508
  };
107509
- Buffer2.prototype.indexOf = function indexOf(val, byteOffset, encoding) {
107509
+ Buffer2.prototype.indexOf = function(val, byteOffset, encoding) {
107510
107510
  return bidirectionalIndexOf(this, val, byteOffset, encoding, true);
107511
107511
  };
107512
- Buffer2.prototype.lastIndexOf = function lastIndexOf(val, byteOffset, encoding) {
107512
+ Buffer2.prototype.lastIndexOf = function(val, byteOffset, encoding) {
107513
107513
  return bidirectionalIndexOf(this, val, byteOffset, encoding, false);
107514
107514
  };
107515
- Buffer2.prototype.write = function write2(string, offset, length2, encoding) {
107515
+ Buffer2.prototype.write = function(string, offset, length2, encoding) {
107516
107516
  if (offset === undefined)
107517
107517
  encoding = "utf8", length2 = this.length, offset = 0;
107518
107518
  else if (length2 === undefined && typeof offset === "string")
@@ -107524,12 +107524,12 @@ var init_buffer = __esm(() => {
107524
107524
  } else
107525
107525
  encoding = length2, length2 = undefined;
107526
107526
  else
107527
- throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");
107527
+ throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");
107528
107528
  let remaining = this.length - offset;
107529
107529
  if (length2 === undefined || length2 > remaining)
107530
107530
  length2 = remaining;
107531
107531
  if (string.length > 0 && (length2 < 0 || offset < 0) || offset > this.length)
107532
- throw new RangeError("Attempt to write outside buffer bounds");
107532
+ throw RangeError("Attempt to write outside buffer bounds");
107533
107533
  if (!encoding)
107534
107534
  encoding = "utf8";
107535
107535
  let loweredCase = false;
@@ -107553,14 +107553,14 @@ var init_buffer = __esm(() => {
107553
107553
  return ucs2Write(this, string, offset, length2);
107554
107554
  default:
107555
107555
  if (loweredCase)
107556
- throw new TypeError("Unknown encoding: " + encoding);
107556
+ throw TypeError("Unknown encoding: " + encoding);
107557
107557
  encoding = ("" + encoding).toLowerCase(), loweredCase = true;
107558
107558
  }
107559
107559
  };
107560
- Buffer2.prototype.toJSON = function toJSON() {
107560
+ Buffer2.prototype.toJSON = function() {
107561
107561
  return { type: "Buffer", data: Array.prototype.slice.call(this._arr || this, 0) };
107562
107562
  };
107563
- Buffer2.prototype.slice = function slice4(start, end) {
107563
+ Buffer2.prototype.slice = function(start, end) {
107564
107564
  let len2 = this.length;
107565
107565
  if (start = ~~start, end = end === undefined ? len2 : ~~end, start < 0) {
107566
107566
  if (start += len2, start < 0)
@@ -107577,7 +107577,7 @@ var init_buffer = __esm(() => {
107577
107577
  let newBuf = this.subarray(start, end);
107578
107578
  return Object.setPrototypeOf(newBuf, Buffer2.prototype), newBuf;
107579
107579
  };
107580
- Buffer2.prototype.readUintLE = Buffer2.prototype.readUIntLE = function readUIntLE(offset, byteLength2, noAssert) {
107580
+ Buffer2.prototype.readUintLE = Buffer2.prototype.readUIntLE = function(offset, byteLength2, noAssert) {
107581
107581
  if (offset = offset >>> 0, byteLength2 = byteLength2 >>> 0, !noAssert)
107582
107582
  checkOffset(offset, byteLength2, this.length);
107583
107583
  let val = this[offset], mul = 1, i2 = 0;
@@ -107585,7 +107585,7 @@ var init_buffer = __esm(() => {
107585
107585
  val += this[offset + i2] * mul;
107586
107586
  return val;
107587
107587
  };
107588
- Buffer2.prototype.readUintBE = Buffer2.prototype.readUIntBE = function readUIntBE(offset, byteLength2, noAssert) {
107588
+ Buffer2.prototype.readUintBE = Buffer2.prototype.readUIntBE = function(offset, byteLength2, noAssert) {
107589
107589
  if (offset = offset >>> 0, byteLength2 = byteLength2 >>> 0, !noAssert)
107590
107590
  checkOffset(offset, byteLength2, this.length);
107591
107591
  let val = this[offset + --byteLength2], mul = 1;
@@ -107593,32 +107593,32 @@ var init_buffer = __esm(() => {
107593
107593
  val += this[offset + --byteLength2] * mul;
107594
107594
  return val;
107595
107595
  };
107596
- Buffer2.prototype.readUint8 = Buffer2.prototype.readUInt8 = function readUInt8(offset, noAssert) {
107596
+ Buffer2.prototype.readUint8 = Buffer2.prototype.readUInt8 = function(offset, noAssert) {
107597
107597
  if (offset = offset >>> 0, !noAssert)
107598
107598
  checkOffset(offset, 1, this.length);
107599
107599
  return this[offset];
107600
107600
  };
107601
- Buffer2.prototype.readUint16LE = Buffer2.prototype.readUInt16LE = function readUInt16LE(offset, noAssert) {
107601
+ Buffer2.prototype.readUint16LE = Buffer2.prototype.readUInt16LE = function(offset, noAssert) {
107602
107602
  if (offset = offset >>> 0, !noAssert)
107603
107603
  checkOffset(offset, 2, this.length);
107604
107604
  return this[offset] | this[offset + 1] << 8;
107605
107605
  };
107606
- Buffer2.prototype.readUint16BE = Buffer2.prototype.readUInt16BE = function readUInt16BE(offset, noAssert) {
107606
+ Buffer2.prototype.readUint16BE = Buffer2.prototype.readUInt16BE = function(offset, noAssert) {
107607
107607
  if (offset = offset >>> 0, !noAssert)
107608
107608
  checkOffset(offset, 2, this.length);
107609
107609
  return this[offset] << 8 | this[offset + 1];
107610
107610
  };
107611
- Buffer2.prototype.readUint32LE = Buffer2.prototype.readUInt32LE = function readUInt32LE(offset, noAssert) {
107611
+ Buffer2.prototype.readUint32LE = Buffer2.prototype.readUInt32LE = function(offset, noAssert) {
107612
107612
  if (offset = offset >>> 0, !noAssert)
107613
107613
  checkOffset(offset, 4, this.length);
107614
107614
  return (this[offset] | this[offset + 1] << 8 | this[offset + 2] << 16) + this[offset + 3] * 16777216;
107615
107615
  };
107616
- Buffer2.prototype.readUint32BE = Buffer2.prototype.readUInt32BE = function readUInt32BE(offset, noAssert) {
107616
+ Buffer2.prototype.readUint32BE = Buffer2.prototype.readUInt32BE = function(offset, noAssert) {
107617
107617
  if (offset = offset >>> 0, !noAssert)
107618
107618
  checkOffset(offset, 4, this.length);
107619
107619
  return this[offset] * 16777216 + (this[offset + 1] << 16 | this[offset + 2] << 8 | this[offset + 3]);
107620
107620
  };
107621
- Buffer2.prototype.readBigUInt64LE = defineBigIntMethod(function readBigUInt64LE(offset) {
107621
+ Buffer2.prototype.readBigUInt64LE = defineBigIntMethod(function(offset) {
107622
107622
  offset = offset >>> 0, validateNumber(offset, "offset");
107623
107623
  let first = this[offset], last = this[offset + 7];
107624
107624
  if (first === undefined || last === undefined)
@@ -107626,7 +107626,7 @@ var init_buffer = __esm(() => {
107626
107626
  let lo = first + this[++offset] * 256 + this[++offset] * 65536 + this[++offset] * 16777216, hi = this[++offset] + this[++offset] * 256 + this[++offset] * 65536 + last * 16777216;
107627
107627
  return BigInt(lo) + (BigInt(hi) << BigInt(32));
107628
107628
  });
107629
- Buffer2.prototype.readBigUInt64BE = defineBigIntMethod(function readBigUInt64BE(offset) {
107629
+ Buffer2.prototype.readBigUInt64BE = defineBigIntMethod(function(offset) {
107630
107630
  offset = offset >>> 0, validateNumber(offset, "offset");
107631
107631
  let first = this[offset], last = this[offset + 7];
107632
107632
  if (first === undefined || last === undefined)
@@ -107634,7 +107634,7 @@ var init_buffer = __esm(() => {
107634
107634
  let hi = first * 16777216 + this[++offset] * 65536 + this[++offset] * 256 + this[++offset], lo = this[++offset] * 16777216 + this[++offset] * 65536 + this[++offset] * 256 + last;
107635
107635
  return (BigInt(hi) << BigInt(32)) + BigInt(lo);
107636
107636
  });
107637
- Buffer2.prototype.readIntLE = function readIntLE(offset, byteLength2, noAssert) {
107637
+ Buffer2.prototype.readIntLE = function(offset, byteLength2, noAssert) {
107638
107638
  if (offset = offset >>> 0, byteLength2 = byteLength2 >>> 0, !noAssert)
107639
107639
  checkOffset(offset, byteLength2, this.length);
107640
107640
  let val = this[offset], mul = 1, i2 = 0;
@@ -107644,7 +107644,7 @@ var init_buffer = __esm(() => {
107644
107644
  val -= Math.pow(2, 8 * byteLength2);
107645
107645
  return val;
107646
107646
  };
107647
- Buffer2.prototype.readIntBE = function readIntBE(offset, byteLength2, noAssert) {
107647
+ Buffer2.prototype.readIntBE = function(offset, byteLength2, noAssert) {
107648
107648
  if (offset = offset >>> 0, byteLength2 = byteLength2 >>> 0, !noAssert)
107649
107649
  checkOffset(offset, byteLength2, this.length);
107650
107650
  let i2 = byteLength2, mul = 1, val = this[offset + --i2];
@@ -107654,36 +107654,36 @@ var init_buffer = __esm(() => {
107654
107654
  val -= Math.pow(2, 8 * byteLength2);
107655
107655
  return val;
107656
107656
  };
107657
- Buffer2.prototype.readInt8 = function readInt8(offset, noAssert) {
107657
+ Buffer2.prototype.readInt8 = function(offset, noAssert) {
107658
107658
  if (offset = offset >>> 0, !noAssert)
107659
107659
  checkOffset(offset, 1, this.length);
107660
107660
  if (!(this[offset] & 128))
107661
107661
  return this[offset];
107662
107662
  return (255 - this[offset] + 1) * -1;
107663
107663
  };
107664
- Buffer2.prototype.readInt16LE = function readInt16LE(offset, noAssert) {
107664
+ Buffer2.prototype.readInt16LE = function(offset, noAssert) {
107665
107665
  if (offset = offset >>> 0, !noAssert)
107666
107666
  checkOffset(offset, 2, this.length);
107667
107667
  let val = this[offset] | this[offset + 1] << 8;
107668
107668
  return val & 32768 ? val | 4294901760 : val;
107669
107669
  };
107670
- Buffer2.prototype.readInt16BE = function readInt16BE(offset, noAssert) {
107670
+ Buffer2.prototype.readInt16BE = function(offset, noAssert) {
107671
107671
  if (offset = offset >>> 0, !noAssert)
107672
107672
  checkOffset(offset, 2, this.length);
107673
107673
  let val = this[offset + 1] | this[offset] << 8;
107674
107674
  return val & 32768 ? val | 4294901760 : val;
107675
107675
  };
107676
- Buffer2.prototype.readInt32LE = function readInt32LE(offset, noAssert) {
107676
+ Buffer2.prototype.readInt32LE = function(offset, noAssert) {
107677
107677
  if (offset = offset >>> 0, !noAssert)
107678
107678
  checkOffset(offset, 4, this.length);
107679
107679
  return this[offset] | this[offset + 1] << 8 | this[offset + 2] << 16 | this[offset + 3] << 24;
107680
107680
  };
107681
- Buffer2.prototype.readInt32BE = function readInt32BE(offset, noAssert) {
107681
+ Buffer2.prototype.readInt32BE = function(offset, noAssert) {
107682
107682
  if (offset = offset >>> 0, !noAssert)
107683
107683
  checkOffset(offset, 4, this.length);
107684
107684
  return this[offset] << 24 | this[offset + 1] << 16 | this[offset + 2] << 8 | this[offset + 3];
107685
107685
  };
107686
- Buffer2.prototype.readBigInt64LE = defineBigIntMethod(function readBigInt64LE(offset) {
107686
+ Buffer2.prototype.readBigInt64LE = defineBigIntMethod(function(offset) {
107687
107687
  offset = offset >>> 0, validateNumber(offset, "offset");
107688
107688
  let first = this[offset], last = this[offset + 7];
107689
107689
  if (first === undefined || last === undefined)
@@ -107691,7 +107691,7 @@ var init_buffer = __esm(() => {
107691
107691
  let val = this[offset + 4] + this[offset + 5] * 256 + this[offset + 6] * 65536 + (last << 24);
107692
107692
  return (BigInt(val) << BigInt(32)) + BigInt(first + this[++offset] * 256 + this[++offset] * 65536 + this[++offset] * 16777216);
107693
107693
  });
107694
- Buffer2.prototype.readBigInt64BE = defineBigIntMethod(function readBigInt64BE(offset) {
107694
+ Buffer2.prototype.readBigInt64BE = defineBigIntMethod(function(offset) {
107695
107695
  offset = offset >>> 0, validateNumber(offset, "offset");
107696
107696
  let first = this[offset], last = this[offset + 7];
107697
107697
  if (first === undefined || last === undefined)
@@ -107699,27 +107699,27 @@ var init_buffer = __esm(() => {
107699
107699
  let val = (first << 24) + this[++offset] * 65536 + this[++offset] * 256 + this[++offset];
107700
107700
  return (BigInt(val) << BigInt(32)) + BigInt(this[++offset] * 16777216 + this[++offset] * 65536 + this[++offset] * 256 + last);
107701
107701
  });
107702
- Buffer2.prototype.readFloatLE = function readFloatLE(offset, noAssert) {
107702
+ Buffer2.prototype.readFloatLE = function(offset, noAssert) {
107703
107703
  if (offset = offset >>> 0, !noAssert)
107704
107704
  checkOffset(offset, 4, this.length);
107705
107705
  return read2(this, offset, true, 23, 4);
107706
107706
  };
107707
- Buffer2.prototype.readFloatBE = function readFloatBE(offset, noAssert) {
107707
+ Buffer2.prototype.readFloatBE = function(offset, noAssert) {
107708
107708
  if (offset = offset >>> 0, !noAssert)
107709
107709
  checkOffset(offset, 4, this.length);
107710
107710
  return read2(this, offset, false, 23, 4);
107711
107711
  };
107712
- Buffer2.prototype.readDoubleLE = function readDoubleLE(offset, noAssert) {
107712
+ Buffer2.prototype.readDoubleLE = function(offset, noAssert) {
107713
107713
  if (offset = offset >>> 0, !noAssert)
107714
107714
  checkOffset(offset, 8, this.length);
107715
107715
  return read2(this, offset, true, 52, 8);
107716
107716
  };
107717
- Buffer2.prototype.readDoubleBE = function readDoubleBE(offset, noAssert) {
107717
+ Buffer2.prototype.readDoubleBE = function(offset, noAssert) {
107718
107718
  if (offset = offset >>> 0, !noAssert)
107719
107719
  checkOffset(offset, 8, this.length);
107720
107720
  return read2(this, offset, false, 52, 8);
107721
107721
  };
107722
- Buffer2.prototype.writeUintLE = Buffer2.prototype.writeUIntLE = function writeUIntLE(value, offset, byteLength2, noAssert) {
107722
+ Buffer2.prototype.writeUintLE = Buffer2.prototype.writeUIntLE = function(value, offset, byteLength2, noAssert) {
107723
107723
  if (value = +value, offset = offset >>> 0, byteLength2 = byteLength2 >>> 0, !noAssert) {
107724
107724
  let maxBytes = Math.pow(2, 8 * byteLength2) - 1;
107725
107725
  checkInt(this, value, offset, byteLength2, maxBytes, 0);
@@ -107730,7 +107730,7 @@ var init_buffer = __esm(() => {
107730
107730
  this[offset + i2] = value / mul & 255;
107731
107731
  return offset + byteLength2;
107732
107732
  };
107733
- Buffer2.prototype.writeUintBE = Buffer2.prototype.writeUIntBE = function writeUIntBE(value, offset, byteLength2, noAssert) {
107733
+ Buffer2.prototype.writeUintBE = Buffer2.prototype.writeUIntBE = function(value, offset, byteLength2, noAssert) {
107734
107734
  if (value = +value, offset = offset >>> 0, byteLength2 = byteLength2 >>> 0, !noAssert) {
107735
107735
  let maxBytes = Math.pow(2, 8 * byteLength2) - 1;
107736
107736
  checkInt(this, value, offset, byteLength2, maxBytes, 0);
@@ -107741,38 +107741,38 @@ var init_buffer = __esm(() => {
107741
107741
  this[offset + i2] = value / mul & 255;
107742
107742
  return offset + byteLength2;
107743
107743
  };
107744
- Buffer2.prototype.writeUint8 = Buffer2.prototype.writeUInt8 = function writeUInt8(value, offset, noAssert) {
107744
+ Buffer2.prototype.writeUint8 = Buffer2.prototype.writeUInt8 = function(value, offset, noAssert) {
107745
107745
  if (value = +value, offset = offset >>> 0, !noAssert)
107746
107746
  checkInt(this, value, offset, 1, 255, 0);
107747
107747
  return this[offset] = value & 255, offset + 1;
107748
107748
  };
107749
- Buffer2.prototype.writeUint16LE = Buffer2.prototype.writeUInt16LE = function writeUInt16LE(value, offset, noAssert) {
107749
+ Buffer2.prototype.writeUint16LE = Buffer2.prototype.writeUInt16LE = function(value, offset, noAssert) {
107750
107750
  if (value = +value, offset = offset >>> 0, !noAssert)
107751
107751
  checkInt(this, value, offset, 2, 65535, 0);
107752
107752
  return this[offset] = value & 255, this[offset + 1] = value >>> 8, offset + 2;
107753
107753
  };
107754
- Buffer2.prototype.writeUint16BE = Buffer2.prototype.writeUInt16BE = function writeUInt16BE(value, offset, noAssert) {
107754
+ Buffer2.prototype.writeUint16BE = Buffer2.prototype.writeUInt16BE = function(value, offset, noAssert) {
107755
107755
  if (value = +value, offset = offset >>> 0, !noAssert)
107756
107756
  checkInt(this, value, offset, 2, 65535, 0);
107757
107757
  return this[offset] = value >>> 8, this[offset + 1] = value & 255, offset + 2;
107758
107758
  };
107759
- Buffer2.prototype.writeUint32LE = Buffer2.prototype.writeUInt32LE = function writeUInt32LE(value, offset, noAssert) {
107759
+ Buffer2.prototype.writeUint32LE = Buffer2.prototype.writeUInt32LE = function(value, offset, noAssert) {
107760
107760
  if (value = +value, offset = offset >>> 0, !noAssert)
107761
107761
  checkInt(this, value, offset, 4, 4294967295, 0);
107762
107762
  return this[offset + 3] = value >>> 24, this[offset + 2] = value >>> 16, this[offset + 1] = value >>> 8, this[offset] = value & 255, offset + 4;
107763
107763
  };
107764
- Buffer2.prototype.writeUint32BE = Buffer2.prototype.writeUInt32BE = function writeUInt32BE(value, offset, noAssert) {
107764
+ Buffer2.prototype.writeUint32BE = Buffer2.prototype.writeUInt32BE = function(value, offset, noAssert) {
107765
107765
  if (value = +value, offset = offset >>> 0, !noAssert)
107766
107766
  checkInt(this, value, offset, 4, 4294967295, 0);
107767
107767
  return this[offset] = value >>> 24, this[offset + 1] = value >>> 16, this[offset + 2] = value >>> 8, this[offset + 3] = value & 255, offset + 4;
107768
107768
  };
107769
- Buffer2.prototype.writeBigUInt64LE = defineBigIntMethod(function writeBigUInt64LE(value, offset = 0) {
107769
+ Buffer2.prototype.writeBigUInt64LE = defineBigIntMethod(function(value, offset = 0) {
107770
107770
  return wrtBigUInt64LE(this, value, offset, BigInt(0), BigInt("0xffffffffffffffff"));
107771
107771
  });
107772
- Buffer2.prototype.writeBigUInt64BE = defineBigIntMethod(function writeBigUInt64BE(value, offset = 0) {
107772
+ Buffer2.prototype.writeBigUInt64BE = defineBigIntMethod(function(value, offset = 0) {
107773
107773
  return wrtBigUInt64BE(this, value, offset, BigInt(0), BigInt("0xffffffffffffffff"));
107774
107774
  });
107775
- Buffer2.prototype.writeIntLE = function writeIntLE(value, offset, byteLength2, noAssert) {
107775
+ Buffer2.prototype.writeIntLE = function(value, offset, byteLength2, noAssert) {
107776
107776
  if (value = +value, offset = offset >>> 0, !noAssert) {
107777
107777
  let limit = Math.pow(2, 8 * byteLength2 - 1);
107778
107778
  checkInt(this, value, offset, byteLength2, limit - 1, -limit);
@@ -107786,7 +107786,7 @@ var init_buffer = __esm(() => {
107786
107786
  }
107787
107787
  return offset + byteLength2;
107788
107788
  };
107789
- Buffer2.prototype.writeIntBE = function writeIntBE(value, offset, byteLength2, noAssert) {
107789
+ Buffer2.prototype.writeIntBE = function(value, offset, byteLength2, noAssert) {
107790
107790
  if (value = +value, offset = offset >>> 0, !noAssert) {
107791
107791
  let limit = Math.pow(2, 8 * byteLength2 - 1);
107792
107792
  checkInt(this, value, offset, byteLength2, limit - 1, -limit);
@@ -107800,56 +107800,56 @@ var init_buffer = __esm(() => {
107800
107800
  }
107801
107801
  return offset + byteLength2;
107802
107802
  };
107803
- Buffer2.prototype.writeInt8 = function writeInt8(value, offset, noAssert) {
107803
+ Buffer2.prototype.writeInt8 = function(value, offset, noAssert) {
107804
107804
  if (value = +value, offset = offset >>> 0, !noAssert)
107805
107805
  checkInt(this, value, offset, 1, 127, -128);
107806
107806
  if (value < 0)
107807
107807
  value = 255 + value + 1;
107808
107808
  return this[offset] = value & 255, offset + 1;
107809
107809
  };
107810
- Buffer2.prototype.writeInt16LE = function writeInt16LE(value, offset, noAssert) {
107810
+ Buffer2.prototype.writeInt16LE = function(value, offset, noAssert) {
107811
107811
  if (value = +value, offset = offset >>> 0, !noAssert)
107812
107812
  checkInt(this, value, offset, 2, 32767, -32768);
107813
107813
  return this[offset] = value & 255, this[offset + 1] = value >>> 8, offset + 2;
107814
107814
  };
107815
- Buffer2.prototype.writeInt16BE = function writeInt16BE(value, offset, noAssert) {
107815
+ Buffer2.prototype.writeInt16BE = function(value, offset, noAssert) {
107816
107816
  if (value = +value, offset = offset >>> 0, !noAssert)
107817
107817
  checkInt(this, value, offset, 2, 32767, -32768);
107818
107818
  return this[offset] = value >>> 8, this[offset + 1] = value & 255, offset + 2;
107819
107819
  };
107820
- Buffer2.prototype.writeInt32LE = function writeInt32LE(value, offset, noAssert) {
107820
+ Buffer2.prototype.writeInt32LE = function(value, offset, noAssert) {
107821
107821
  if (value = +value, offset = offset >>> 0, !noAssert)
107822
107822
  checkInt(this, value, offset, 4, 2147483647, -2147483648);
107823
107823
  return this[offset] = value & 255, this[offset + 1] = value >>> 8, this[offset + 2] = value >>> 16, this[offset + 3] = value >>> 24, offset + 4;
107824
107824
  };
107825
- Buffer2.prototype.writeInt32BE = function writeInt32BE(value, offset, noAssert) {
107825
+ Buffer2.prototype.writeInt32BE = function(value, offset, noAssert) {
107826
107826
  if (value = +value, offset = offset >>> 0, !noAssert)
107827
107827
  checkInt(this, value, offset, 4, 2147483647, -2147483648);
107828
107828
  if (value < 0)
107829
107829
  value = 4294967295 + value + 1;
107830
107830
  return this[offset] = value >>> 24, this[offset + 1] = value >>> 16, this[offset + 2] = value >>> 8, this[offset + 3] = value & 255, offset + 4;
107831
107831
  };
107832
- Buffer2.prototype.writeBigInt64LE = defineBigIntMethod(function writeBigInt64LE(value, offset = 0) {
107832
+ Buffer2.prototype.writeBigInt64LE = defineBigIntMethod(function(value, offset = 0) {
107833
107833
  return wrtBigUInt64LE(this, value, offset, -BigInt("0x8000000000000000"), BigInt("0x7fffffffffffffff"));
107834
107834
  });
107835
- Buffer2.prototype.writeBigInt64BE = defineBigIntMethod(function writeBigInt64BE(value, offset = 0) {
107835
+ Buffer2.prototype.writeBigInt64BE = defineBigIntMethod(function(value, offset = 0) {
107836
107836
  return wrtBigUInt64BE(this, value, offset, -BigInt("0x8000000000000000"), BigInt("0x7fffffffffffffff"));
107837
107837
  });
107838
- Buffer2.prototype.writeFloatLE = function writeFloatLE(value, offset, noAssert) {
107838
+ Buffer2.prototype.writeFloatLE = function(value, offset, noAssert) {
107839
107839
  return writeFloat(this, value, offset, true, noAssert);
107840
107840
  };
107841
- Buffer2.prototype.writeFloatBE = function writeFloatBE(value, offset, noAssert) {
107841
+ Buffer2.prototype.writeFloatBE = function(value, offset, noAssert) {
107842
107842
  return writeFloat(this, value, offset, false, noAssert);
107843
107843
  };
107844
- Buffer2.prototype.writeDoubleLE = function writeDoubleLE(value, offset, noAssert) {
107844
+ Buffer2.prototype.writeDoubleLE = function(value, offset, noAssert) {
107845
107845
  return writeDouble(this, value, offset, true, noAssert);
107846
107846
  };
107847
- Buffer2.prototype.writeDoubleBE = function writeDoubleBE(value, offset, noAssert) {
107847
+ Buffer2.prototype.writeDoubleBE = function(value, offset, noAssert) {
107848
107848
  return writeDouble(this, value, offset, false, noAssert);
107849
107849
  };
107850
- Buffer2.prototype.copy = function copy(target, targetStart, start, end) {
107850
+ Buffer2.prototype.copy = function(target, targetStart, start, end) {
107851
107851
  if (!Buffer2.isBuffer(target))
107852
- throw new TypeError("argument should be a Buffer");
107852
+ throw TypeError("argument should be a Buffer");
107853
107853
  if (!start)
107854
107854
  start = 0;
107855
107855
  if (!end && end !== 0)
@@ -107865,11 +107865,11 @@ var init_buffer = __esm(() => {
107865
107865
  if (target.length === 0 || this.length === 0)
107866
107866
  return 0;
107867
107867
  if (targetStart < 0)
107868
- throw new RangeError("targetStart out of bounds");
107868
+ throw RangeError("targetStart out of bounds");
107869
107869
  if (start < 0 || start >= this.length)
107870
- throw new RangeError("Index out of range");
107870
+ throw RangeError("Index out of range");
107871
107871
  if (end < 0)
107872
- throw new RangeError("sourceEnd out of bounds");
107872
+ throw RangeError("sourceEnd out of bounds");
107873
107873
  if (end > this.length)
107874
107874
  end = this.length;
107875
107875
  if (target.length - targetStart < end - start)
@@ -107881,16 +107881,16 @@ var init_buffer = __esm(() => {
107881
107881
  Uint8Array.prototype.set.call(target, this.subarray(start, end), targetStart);
107882
107882
  return len2;
107883
107883
  };
107884
- Buffer2.prototype.fill = function fill(val, start, end, encoding) {
107884
+ Buffer2.prototype.fill = function(val, start, end, encoding) {
107885
107885
  if (typeof val === "string") {
107886
107886
  if (typeof start === "string")
107887
107887
  encoding = start, start = 0, end = this.length;
107888
107888
  else if (typeof end === "string")
107889
107889
  encoding = end, end = this.length;
107890
107890
  if (encoding !== undefined && typeof encoding !== "string")
107891
- throw new TypeError("encoding must be a string");
107891
+ throw TypeError("encoding must be a string");
107892
107892
  if (typeof encoding === "string" && !Buffer2.isEncoding(encoding))
107893
- throw new TypeError("Unknown encoding: " + encoding);
107893
+ throw TypeError("Unknown encoding: " + encoding);
107894
107894
  if (val.length === 1) {
107895
107895
  let code2 = val.charCodeAt(0);
107896
107896
  if (encoding === "utf8" && code2 < 128 || encoding === "latin1")
@@ -107901,7 +107901,7 @@ var init_buffer = __esm(() => {
107901
107901
  else if (typeof val === "boolean")
107902
107902
  val = Number(val);
107903
107903
  if (start < 0 || this.length < start || this.length < end)
107904
- throw new RangeError("Out of range index");
107904
+ throw RangeError("Out of range index");
107905
107905
  if (end <= start)
107906
107906
  return this;
107907
107907
  if (start = start >>> 0, end = end === undefined ? this.length : end >>> 0, !val)
@@ -107913,7 +107913,7 @@ var init_buffer = __esm(() => {
107913
107913
  else {
107914
107914
  let bytes = Buffer2.isBuffer(val) ? val : Buffer2.from(val, encoding), len2 = bytes.length;
107915
107915
  if (len2 === 0)
107916
- throw new TypeError('The value "' + val + '" is invalid for argument "value"');
107916
+ throw TypeError('The value "' + val + '" is invalid for argument "value"');
107917
107917
  for (i2 = 0;i2 < end - start; ++i2)
107918
107918
  this[i2 + start] = bytes[i2 % len2];
107919
107919
  }
@@ -107921,7 +107921,7 @@ var init_buffer = __esm(() => {
107921
107921
  };
107922
107922
  INVALID_BASE64_RE = /[^+/0-9A-Za-z-_]/g;
107923
107923
  hexSliceLookupTable = function() {
107924
- let table = new Array(256);
107924
+ let table = Array(256);
107925
107925
  for (let i2 = 0;i2 < 16; ++i2) {
107926
107926
  let i16 = i2 * 16;
107927
107927
  for (let j = 0;j < 16; ++j)
@@ -109281,7 +109281,7 @@ var require_utils14 = __commonJS((exports) => {
109281
109281
  }
109282
109282
  function fromBase64(input, useUrlTemplate = false, cutTailZeros = false) {
109283
109283
  const template = useUrlTemplate ? base64UrlTemplate : base64Template;
109284
- function indexOf2(toSearch) {
109284
+ function indexOf(toSearch) {
109285
109285
  for (let i3 = 0;i3 < 64; i3++) {
109286
109286
  if (template.charAt(i3) === toSearch)
109287
109287
  return i3;
@@ -109294,10 +109294,10 @@ var require_utils14 = __commonJS((exports) => {
109294
109294
  let i2 = 0;
109295
109295
  let output = "";
109296
109296
  while (i2 < input.length) {
109297
- const enc1 = indexOf2(input.charAt(i2++));
109298
- const enc2 = i2 >= input.length ? 0 : indexOf2(input.charAt(i2++));
109299
- const enc3 = i2 >= input.length ? 0 : indexOf2(input.charAt(i2++));
109300
- const enc4 = i2 >= input.length ? 0 : indexOf2(input.charAt(i2++));
109297
+ const enc1 = indexOf(input.charAt(i2++));
109298
+ const enc2 = i2 >= input.length ? 0 : indexOf(input.charAt(i2++));
109299
+ const enc3 = i2 >= input.length ? 0 : indexOf(input.charAt(i2++));
109300
+ const enc4 = i2 >= input.length ? 0 : indexOf(input.charAt(i2++));
109301
109301
  const chr1 = test(enc1) << 2 | test(enc2) >> 4;
109302
109302
  const chr2 = (test(enc2) & 15) << 4 | test(enc3) >> 2;
109303
109303
  const chr3 = (test(enc3) & 3) << 6 | test(enc4);
@@ -109437,7 +109437,7 @@ var require_build2 = __commonJS((exports) => {
109437
109437
  throw new Error("BigInt is not defined. Your environment doesn't implement BigInt.");
109438
109438
  }
109439
109439
  }
109440
- function concat4(buffers) {
109440
+ function concat3(buffers) {
109441
109441
  let outputLength = 0;
109442
109442
  let prevLength = 0;
109443
109443
  for (let i2 = 0;i2 < buffers.length; i2++) {
@@ -109484,7 +109484,7 @@ var require_build2 = __commonJS((exports) => {
109484
109484
  this.items.push(buf);
109485
109485
  }
109486
109486
  final() {
109487
- return concat4(this.items);
109487
+ return concat3(this.items);
109488
109488
  }
109489
109489
  }
109490
109490
  var powers2 = [new Uint8Array([1])];
@@ -111168,7 +111168,7 @@ ${values.join(`
111168
111168
  }
111169
111169
  retBuffers.push(valueBuf);
111170
111170
  }
111171
- return concat4(retBuffers);
111171
+ return concat3(retBuffers);
111172
111172
  }
111173
111173
  fromString(string) {
111174
111174
  this.value = [];
@@ -111400,7 +111400,7 @@ ${values.join(`
111400
111400
  }
111401
111401
  retBuffers.push(valueBuf);
111402
111402
  }
111403
- return concat4(retBuffers);
111403
+ return concat3(retBuffers);
111404
111404
  }
111405
111405
  fromString(string) {
111406
111406
  this.value = [];
@@ -114426,9 +114426,9 @@ var require_lib = __commonJS((exports) => {
114426
114426
  decode(str) {
114427
114427
  let res = [];
114428
114428
  for (let i2 = 0;i2 < str.length; i2 += 11) {
114429
- const slice5 = str.slice(i2, i2 + 11);
114430
- const blockLen = XMR_BLOCK_LEN.indexOf(slice5.length);
114431
- const block = exports.base58.decode(slice5);
114429
+ const slice4 = str.slice(i2, i2 + 11);
114430
+ const blockLen = XMR_BLOCK_LEN.indexOf(slice4.length);
114431
+ const block = exports.base58.decode(slice4);
114432
114432
  for (let j = 0;j < block.length - blockLen; j++) {
114433
114433
  if (block[j] !== 0)
114434
114434
  throw new Error("base58xmr: wrong padding");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aboutcircles/sdk-runner",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "description": "Contract runner implementations for Circles SDK",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -25,6 +25,10 @@
25
25
  "ethereum",
26
26
  "viem"
27
27
  ],
28
+ "repository": {
29
+ "type": "git",
30
+ "url": "https://github.com/aboutcircles/sdk"
31
+ },
28
32
  "license": "MIT",
29
33
  "dependencies": {
30
34
  "@aboutcircles/sdk-types": "workspace:*",