@alquimia-ai/tools 2.3.0 → 2.5.0

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 (79) hide show
  1. package/README.md +6 -0
  2. package/dist/actions/index.d.mts +2 -2
  3. package/dist/actions/index.d.ts +2 -2
  4. package/dist/actions/index.js +1 -1
  5. package/dist/actions/index.js.map +1 -1
  6. package/dist/actions/index.mjs +1 -1
  7. package/dist/actions/index.mjs.map +1 -1
  8. package/dist/actions-BjDPJdyA.d.mts +57 -0
  9. package/dist/actions-CP1d4Ye1.d.ts +57 -0
  10. package/dist/adapters/index.d.mts +2 -2
  11. package/dist/adapters/index.d.ts +2 -2
  12. package/dist/adapters/index.js.map +1 -1
  13. package/dist/genui/index.d.mts +3 -3
  14. package/dist/genui/index.d.ts +3 -3
  15. package/dist/genui/index.js +34 -2
  16. package/dist/genui/index.js.map +1 -1
  17. package/dist/genui/index.mjs +34 -2
  18. package/dist/genui/index.mjs.map +1 -1
  19. package/dist/hooks/index.d.mts +11 -10
  20. package/dist/hooks/index.d.ts +11 -10
  21. package/dist/hooks/index.js +81 -11
  22. package/dist/hooks/index.js.map +1 -1
  23. package/dist/hooks/index.mjs +81 -11
  24. package/dist/hooks/index.mjs.map +1 -1
  25. package/dist/next/index.js +19 -5
  26. package/dist/next/index.js.map +1 -1
  27. package/dist/next/index.mjs +19 -5
  28. package/dist/next/index.mjs.map +1 -1
  29. package/dist/providers/index.d.mts +4 -4
  30. package/dist/providers/index.d.ts +4 -4
  31. package/dist/providers/index.js +111 -110
  32. package/dist/providers/index.js.map +1 -1
  33. package/dist/providers/index.mjs +111 -110
  34. package/dist/providers/index.mjs.map +1 -1
  35. package/dist/{providers-BJTXCtI3.d.ts → providers-DiR9cgyo.d.mts} +8 -8
  36. package/dist/{providers-0Gi78uNQ.d.mts → providers-b5_yMyMo.d.ts} +8 -8
  37. package/dist/proxy.d.mts +4 -4
  38. package/dist/proxy.d.ts +4 -4
  39. package/dist/proxy.js +19 -5
  40. package/dist/proxy.js.map +1 -1
  41. package/dist/proxy.mjs +19 -5
  42. package/dist/proxy.mjs.map +1 -1
  43. package/dist/sdk/index.d.mts +4 -3
  44. package/dist/sdk/index.d.ts +4 -3
  45. package/dist/sdk/index.js +8 -2
  46. package/dist/sdk/index.js.map +1 -1
  47. package/dist/sdk/index.mjs +8 -2
  48. package/dist/sdk/index.mjs.map +1 -1
  49. package/dist/services/index.d.mts +3 -3
  50. package/dist/services/index.d.ts +3 -3
  51. package/dist/services/index.js.map +1 -1
  52. package/dist/services/index.mjs.map +1 -1
  53. package/dist/type-DqX3-9QS.d.mts +312 -0
  54. package/dist/type-xksRnBUW.d.ts +312 -0
  55. package/dist/types/index.d.mts +78 -302
  56. package/dist/types/index.d.ts +78 -302
  57. package/dist/types/index.js.map +1 -1
  58. package/dist/types/index.mjs.map +1 -1
  59. package/dist/types-C-6fgK1_.d.mts +111 -0
  60. package/dist/types-C-6fgK1_.d.ts +111 -0
  61. package/dist/{types-DnfWUE9V.d.mts → types-CMVbyEv8.d.mts} +3 -2
  62. package/dist/{types-DnfWUE9V.d.ts → types-CMVbyEv8.d.ts} +3 -2
  63. package/dist/utils/index.d.mts +2 -2
  64. package/dist/utils/index.d.ts +2 -2
  65. package/dist/utils/index.js +1 -1
  66. package/dist/utils/index.js.map +1 -1
  67. package/dist/utils/index.mjs +1 -1
  68. package/dist/utils/index.mjs.map +1 -1
  69. package/dist/worklog/index.d.mts +5 -2
  70. package/dist/worklog/index.d.ts +5 -2
  71. package/dist/worklog/index.js +3 -1
  72. package/dist/worklog/index.js.map +1 -1
  73. package/dist/worklog/index.mjs +3 -1
  74. package/dist/worklog/index.mjs.map +1 -1
  75. package/package.json +1 -1
  76. package/dist/actions-BebMyGqF.d.ts +0 -16
  77. package/dist/actions-Ca3ro-hX.d.mts +0 -16
  78. package/dist/types-Dvu9y4WM.d.mts +0 -53
  79. package/dist/types-Dvu9y4WM.d.ts +0 -53
@@ -216,13 +216,13 @@ var require_buffer = __commonJS({
216
216
  var base64 = require_base64_js();
217
217
  var ieee754 = require_ieee754();
218
218
  var customInspectSymbol = typeof Symbol === "function" && typeof Symbol["for"] === "function" ? Symbol["for"]("nodejs.util.inspect.custom") : null;
219
- exports.Buffer = Buffer3;
219
+ exports.Buffer = Buffer4;
220
220
  exports.SlowBuffer = SlowBuffer;
221
221
  exports.INSPECT_MAX_BYTES = 50;
222
222
  var K_MAX_LENGTH = 2147483647;
223
223
  exports.kMaxLength = K_MAX_LENGTH;
224
- Buffer3.TYPED_ARRAY_SUPPORT = typedArraySupport();
225
- if (!Buffer3.TYPED_ARRAY_SUPPORT && typeof console !== "undefined" && typeof console.error === "function") {
224
+ Buffer4.TYPED_ARRAY_SUPPORT = typedArraySupport();
225
+ if (!Buffer4.TYPED_ARRAY_SUPPORT && typeof console !== "undefined" && typeof console.error === "function") {
226
226
  console.error(
227
227
  "This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."
228
228
  );
@@ -240,17 +240,17 @@ var require_buffer = __commonJS({
240
240
  return false;
241
241
  }
242
242
  }
243
- Object.defineProperty(Buffer3.prototype, "parent", {
243
+ Object.defineProperty(Buffer4.prototype, "parent", {
244
244
  enumerable: true,
245
245
  get: function() {
246
- if (!Buffer3.isBuffer(this)) return void 0;
246
+ if (!Buffer4.isBuffer(this)) return void 0;
247
247
  return this.buffer;
248
248
  }
249
249
  });
250
- Object.defineProperty(Buffer3.prototype, "offset", {
250
+ Object.defineProperty(Buffer4.prototype, "offset", {
251
251
  enumerable: true,
252
252
  get: function() {
253
- if (!Buffer3.isBuffer(this)) return void 0;
253
+ if (!Buffer4.isBuffer(this)) return void 0;
254
254
  return this.byteOffset;
255
255
  }
256
256
  });
@@ -259,10 +259,10 @@ var require_buffer = __commonJS({
259
259
  throw new RangeError('The value "' + length + '" is invalid for option "size"');
260
260
  }
261
261
  const buf = new Uint8Array(length);
262
- Object.setPrototypeOf(buf, Buffer3.prototype);
262
+ Object.setPrototypeOf(buf, Buffer4.prototype);
263
263
  return buf;
264
264
  }
265
- function Buffer3(arg, encodingOrOffset, length) {
265
+ function Buffer4(arg, encodingOrOffset, length) {
266
266
  if (typeof arg === "number") {
267
267
  if (typeof encodingOrOffset === "string") {
268
268
  throw new TypeError(
@@ -273,7 +273,7 @@ var require_buffer = __commonJS({
273
273
  }
274
274
  return from(arg, encodingOrOffset, length);
275
275
  }
276
- Buffer3.poolSize = 8192;
276
+ Buffer4.poolSize = 8192;
277
277
  function from(value, encodingOrOffset, length) {
278
278
  if (typeof value === "string") {
279
279
  return fromString(value, encodingOrOffset);
@@ -299,22 +299,22 @@ var require_buffer = __commonJS({
299
299
  }
300
300
  const valueOf = value.valueOf && value.valueOf();
301
301
  if (valueOf != null && valueOf !== value) {
302
- return Buffer3.from(valueOf, encodingOrOffset, length);
302
+ return Buffer4.from(valueOf, encodingOrOffset, length);
303
303
  }
304
304
  const b = fromObject(value);
305
305
  if (b) return b;
306
306
  if (typeof Symbol !== "undefined" && Symbol.toPrimitive != null && typeof value[Symbol.toPrimitive] === "function") {
307
- return Buffer3.from(value[Symbol.toPrimitive]("string"), encodingOrOffset, length);
307
+ return Buffer4.from(value[Symbol.toPrimitive]("string"), encodingOrOffset, length);
308
308
  }
309
309
  throw new TypeError(
310
310
  "The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + typeof value
311
311
  );
312
312
  }
313
- Buffer3.from = function(value, encodingOrOffset, length) {
313
+ Buffer4.from = function(value, encodingOrOffset, length) {
314
314
  return from(value, encodingOrOffset, length);
315
315
  };
316
- Object.setPrototypeOf(Buffer3.prototype, Uint8Array.prototype);
317
- Object.setPrototypeOf(Buffer3, Uint8Array);
316
+ Object.setPrototypeOf(Buffer4.prototype, Uint8Array.prototype);
317
+ Object.setPrototypeOf(Buffer4, Uint8Array);
318
318
  function assertSize(size) {
319
319
  if (typeof size !== "number") {
320
320
  throw new TypeError('"size" argument must be of type number');
@@ -332,24 +332,24 @@ var require_buffer = __commonJS({
332
332
  }
333
333
  return createBuffer(size);
334
334
  }
335
- Buffer3.alloc = function(size, fill, encoding) {
335
+ Buffer4.alloc = function(size, fill, encoding) {
336
336
  return alloc(size, fill, encoding);
337
337
  };
338
338
  function allocUnsafe(size) {
339
339
  assertSize(size);
340
340
  return createBuffer(size < 0 ? 0 : checked(size) | 0);
341
341
  }
342
- Buffer3.allocUnsafe = function(size) {
342
+ Buffer4.allocUnsafe = function(size) {
343
343
  return allocUnsafe(size);
344
344
  };
345
- Buffer3.allocUnsafeSlow = function(size) {
345
+ Buffer4.allocUnsafeSlow = function(size) {
346
346
  return allocUnsafe(size);
347
347
  };
348
348
  function fromString(string, encoding) {
349
349
  if (typeof encoding !== "string" || encoding === "") {
350
350
  encoding = "utf8";
351
351
  }
352
- if (!Buffer3.isEncoding(encoding)) {
352
+ if (!Buffer4.isEncoding(encoding)) {
353
353
  throw new TypeError("Unknown encoding: " + encoding);
354
354
  }
355
355
  const length = byteLength(string, encoding) | 0;
@@ -390,11 +390,11 @@ var require_buffer = __commonJS({
390
390
  } else {
391
391
  buf = new Uint8Array(array, byteOffset, length);
392
392
  }
393
- Object.setPrototypeOf(buf, Buffer3.prototype);
393
+ Object.setPrototypeOf(buf, Buffer4.prototype);
394
394
  return buf;
395
395
  }
396
396
  function fromObject(obj) {
397
- if (Buffer3.isBuffer(obj)) {
397
+ if (Buffer4.isBuffer(obj)) {
398
398
  const len = checked(obj.length) | 0;
399
399
  const buf = createBuffer(len);
400
400
  if (buf.length === 0) {
@@ -423,15 +423,15 @@ var require_buffer = __commonJS({
423
423
  if (+length != length) {
424
424
  length = 0;
425
425
  }
426
- return Buffer3.alloc(+length);
426
+ return Buffer4.alloc(+length);
427
427
  }
428
- Buffer3.isBuffer = function isBuffer(b) {
429
- return b != null && b._isBuffer === true && b !== Buffer3.prototype;
428
+ Buffer4.isBuffer = function isBuffer(b) {
429
+ return b != null && b._isBuffer === true && b !== Buffer4.prototype;
430
430
  };
431
- Buffer3.compare = function compare(a, b) {
432
- if (isInstance(a, Uint8Array)) a = Buffer3.from(a, a.offset, a.byteLength);
433
- if (isInstance(b, Uint8Array)) b = Buffer3.from(b, b.offset, b.byteLength);
434
- if (!Buffer3.isBuffer(a) || !Buffer3.isBuffer(b)) {
431
+ Buffer4.compare = function compare(a, b) {
432
+ if (isInstance(a, Uint8Array)) a = Buffer4.from(a, a.offset, a.byteLength);
433
+ if (isInstance(b, Uint8Array)) b = Buffer4.from(b, b.offset, b.byteLength);
434
+ if (!Buffer4.isBuffer(a) || !Buffer4.isBuffer(b)) {
435
435
  throw new TypeError(
436
436
  'The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array'
437
437
  );
@@ -450,7 +450,7 @@ var require_buffer = __commonJS({
450
450
  if (y < x) return 1;
451
451
  return 0;
452
452
  };
453
- Buffer3.isEncoding = function isEncoding(encoding) {
453
+ Buffer4.isEncoding = function isEncoding(encoding) {
454
454
  switch (String(encoding).toLowerCase()) {
455
455
  case "hex":
456
456
  case "utf8":
@@ -468,12 +468,12 @@ var require_buffer = __commonJS({
468
468
  return false;
469
469
  }
470
470
  };
471
- Buffer3.concat = function concat(list, length) {
471
+ Buffer4.concat = function concat(list, length) {
472
472
  if (!Array.isArray(list)) {
473
473
  throw new TypeError('"list" argument must be an Array of Buffers');
474
474
  }
475
475
  if (list.length === 0) {
476
- return Buffer3.alloc(0);
476
+ return Buffer4.alloc(0);
477
477
  }
478
478
  let i;
479
479
  if (length === void 0) {
@@ -482,13 +482,13 @@ var require_buffer = __commonJS({
482
482
  length += list[i].length;
483
483
  }
484
484
  }
485
- const buffer = Buffer3.allocUnsafe(length);
485
+ const buffer = Buffer4.allocUnsafe(length);
486
486
  let pos = 0;
487
487
  for (i = 0; i < list.length; ++i) {
488
488
  let buf = list[i];
489
489
  if (isInstance(buf, Uint8Array)) {
490
490
  if (pos + buf.length > buffer.length) {
491
- if (!Buffer3.isBuffer(buf)) buf = Buffer3.from(buf);
491
+ if (!Buffer4.isBuffer(buf)) buf = Buffer4.from(buf);
492
492
  buf.copy(buffer, pos);
493
493
  } else {
494
494
  Uint8Array.prototype.set.call(
@@ -497,7 +497,7 @@ var require_buffer = __commonJS({
497
497
  pos
498
498
  );
499
499
  }
500
- } else if (!Buffer3.isBuffer(buf)) {
500
+ } else if (!Buffer4.isBuffer(buf)) {
501
501
  throw new TypeError('"list" argument must be an Array of Buffers');
502
502
  } else {
503
503
  buf.copy(buffer, pos);
@@ -507,7 +507,7 @@ var require_buffer = __commonJS({
507
507
  return buffer;
508
508
  };
509
509
  function byteLength(string, encoding) {
510
- if (Buffer3.isBuffer(string)) {
510
+ if (Buffer4.isBuffer(string)) {
511
511
  return string.length;
512
512
  }
513
513
  if (ArrayBuffer.isView(string) || isInstance(string, ArrayBuffer)) {
@@ -549,7 +549,7 @@ var require_buffer = __commonJS({
549
549
  }
550
550
  }
551
551
  }
552
- Buffer3.byteLength = byteLength;
552
+ Buffer4.byteLength = byteLength;
553
553
  function slowToString(encoding, start, end) {
554
554
  let loweredCase = false;
555
555
  if (start === void 0 || start < 0) {
@@ -596,13 +596,13 @@ var require_buffer = __commonJS({
596
596
  }
597
597
  }
598
598
  }
599
- Buffer3.prototype._isBuffer = true;
599
+ Buffer4.prototype._isBuffer = true;
600
600
  function swap(b, n, m) {
601
601
  const i = b[n];
602
602
  b[n] = b[m];
603
603
  b[m] = i;
604
604
  }
605
- Buffer3.prototype.swap16 = function swap16() {
605
+ Buffer4.prototype.swap16 = function swap16() {
606
606
  const len = this.length;
607
607
  if (len % 2 !== 0) {
608
608
  throw new RangeError("Buffer size must be a multiple of 16-bits");
@@ -612,7 +612,7 @@ var require_buffer = __commonJS({
612
612
  }
613
613
  return this;
614
614
  };
615
- Buffer3.prototype.swap32 = function swap32() {
615
+ Buffer4.prototype.swap32 = function swap32() {
616
616
  const len = this.length;
617
617
  if (len % 4 !== 0) {
618
618
  throw new RangeError("Buffer size must be a multiple of 32-bits");
@@ -623,7 +623,7 @@ var require_buffer = __commonJS({
623
623
  }
624
624
  return this;
625
625
  };
626
- Buffer3.prototype.swap64 = function swap64() {
626
+ Buffer4.prototype.swap64 = function swap64() {
627
627
  const len = this.length;
628
628
  if (len % 8 !== 0) {
629
629
  throw new RangeError("Buffer size must be a multiple of 64-bits");
@@ -636,19 +636,19 @@ var require_buffer = __commonJS({
636
636
  }
637
637
  return this;
638
638
  };
639
- Buffer3.prototype.toString = function toString() {
639
+ Buffer4.prototype.toString = function toString() {
640
640
  const length = this.length;
641
641
  if (length === 0) return "";
642
642
  if (arguments.length === 0) return utf8Slice(this, 0, length);
643
643
  return slowToString.apply(this, arguments);
644
644
  };
645
- Buffer3.prototype.toLocaleString = Buffer3.prototype.toString;
646
- Buffer3.prototype.equals = function equals(b) {
647
- if (!Buffer3.isBuffer(b)) throw new TypeError("Argument must be a Buffer");
645
+ Buffer4.prototype.toLocaleString = Buffer4.prototype.toString;
646
+ Buffer4.prototype.equals = function equals(b) {
647
+ if (!Buffer4.isBuffer(b)) throw new TypeError("Argument must be a Buffer");
648
648
  if (this === b) return true;
649
- return Buffer3.compare(this, b) === 0;
649
+ return Buffer4.compare(this, b) === 0;
650
650
  };
651
- Buffer3.prototype.inspect = function inspect() {
651
+ Buffer4.prototype.inspect = function inspect() {
652
652
  let str = "";
653
653
  const max = exports.INSPECT_MAX_BYTES;
654
654
  str = this.toString("hex", 0, max).replace(/(.{2})/g, "$1 ").trim();
@@ -656,13 +656,13 @@ var require_buffer = __commonJS({
656
656
  return "<Buffer " + str + ">";
657
657
  };
658
658
  if (customInspectSymbol) {
659
- Buffer3.prototype[customInspectSymbol] = Buffer3.prototype.inspect;
659
+ Buffer4.prototype[customInspectSymbol] = Buffer4.prototype.inspect;
660
660
  }
661
- Buffer3.prototype.compare = function compare(target, start, end, thisStart, thisEnd) {
661
+ Buffer4.prototype.compare = function compare(target, start, end, thisStart, thisEnd) {
662
662
  if (isInstance(target, Uint8Array)) {
663
- target = Buffer3.from(target, target.offset, target.byteLength);
663
+ target = Buffer4.from(target, target.offset, target.byteLength);
664
664
  }
665
- if (!Buffer3.isBuffer(target)) {
665
+ if (!Buffer4.isBuffer(target)) {
666
666
  throw new TypeError(
667
667
  'The "target" argument must be one of type Buffer or Uint8Array. Received type ' + typeof target
668
668
  );
@@ -735,9 +735,9 @@ var require_buffer = __commonJS({
735
735
  else return -1;
736
736
  }
737
737
  if (typeof val === "string") {
738
- val = Buffer3.from(val, encoding);
738
+ val = Buffer4.from(val, encoding);
739
739
  }
740
- if (Buffer3.isBuffer(val)) {
740
+ if (Buffer4.isBuffer(val)) {
741
741
  if (val.length === 0) {
742
742
  return -1;
743
743
  }
@@ -805,13 +805,13 @@ var require_buffer = __commonJS({
805
805
  }
806
806
  return -1;
807
807
  }
808
- Buffer3.prototype.includes = function includes(val, byteOffset, encoding) {
808
+ Buffer4.prototype.includes = function includes(val, byteOffset, encoding) {
809
809
  return this.indexOf(val, byteOffset, encoding) !== -1;
810
810
  };
811
- Buffer3.prototype.indexOf = function indexOf(val, byteOffset, encoding) {
811
+ Buffer4.prototype.indexOf = function indexOf(val, byteOffset, encoding) {
812
812
  return bidirectionalIndexOf(this, val, byteOffset, encoding, true);
813
813
  };
814
- Buffer3.prototype.lastIndexOf = function lastIndexOf(val, byteOffset, encoding) {
814
+ Buffer4.prototype.lastIndexOf = function lastIndexOf(val, byteOffset, encoding) {
815
815
  return bidirectionalIndexOf(this, val, byteOffset, encoding, false);
816
816
  };
817
817
  function hexWrite(buf, string, offset, length) {
@@ -849,7 +849,7 @@ var require_buffer = __commonJS({
849
849
  function ucs2Write(buf, string, offset, length) {
850
850
  return blitBuffer(utf16leToBytes(string, buf.length - offset), buf, offset, length);
851
851
  }
852
- Buffer3.prototype.write = function write(string, offset, length, encoding) {
852
+ Buffer4.prototype.write = function write(string, offset, length, encoding) {
853
853
  if (offset === void 0) {
854
854
  encoding = "utf8";
855
855
  length = this.length;
@@ -904,7 +904,7 @@ var require_buffer = __commonJS({
904
904
  }
905
905
  }
906
906
  };
907
- Buffer3.prototype.toJSON = function toJSON() {
907
+ Buffer4.prototype.toJSON = function toJSON() {
908
908
  return {
909
909
  type: "Buffer",
910
910
  data: Array.prototype.slice.call(this._arr || this, 0)
@@ -1027,7 +1027,7 @@ var require_buffer = __commonJS({
1027
1027
  }
1028
1028
  return res;
1029
1029
  }
1030
- Buffer3.prototype.slice = function slice(start, end) {
1030
+ Buffer4.prototype.slice = function slice(start, end) {
1031
1031
  const len = this.length;
1032
1032
  start = ~~start;
1033
1033
  end = end === void 0 ? len : ~~end;
@@ -1045,14 +1045,14 @@ var require_buffer = __commonJS({
1045
1045
  }
1046
1046
  if (end < start) end = start;
1047
1047
  const newBuf = this.subarray(start, end);
1048
- Object.setPrototypeOf(newBuf, Buffer3.prototype);
1048
+ Object.setPrototypeOf(newBuf, Buffer4.prototype);
1049
1049
  return newBuf;
1050
1050
  };
1051
1051
  function checkOffset(offset, ext, length) {
1052
1052
  if (offset % 1 !== 0 || offset < 0) throw new RangeError("offset is not uint");
1053
1053
  if (offset + ext > length) throw new RangeError("Trying to access beyond buffer length");
1054
1054
  }
1055
- Buffer3.prototype.readUintLE = Buffer3.prototype.readUIntLE = function readUIntLE(offset, byteLength2, noAssert) {
1055
+ Buffer4.prototype.readUintLE = Buffer4.prototype.readUIntLE = function readUIntLE(offset, byteLength2, noAssert) {
1056
1056
  offset = offset >>> 0;
1057
1057
  byteLength2 = byteLength2 >>> 0;
1058
1058
  if (!noAssert) checkOffset(offset, byteLength2, this.length);
@@ -1064,7 +1064,7 @@ var require_buffer = __commonJS({
1064
1064
  }
1065
1065
  return val;
1066
1066
  };
1067
- Buffer3.prototype.readUintBE = Buffer3.prototype.readUIntBE = function readUIntBE(offset, byteLength2, noAssert) {
1067
+ Buffer4.prototype.readUintBE = Buffer4.prototype.readUIntBE = function readUIntBE(offset, byteLength2, noAssert) {
1068
1068
  offset = offset >>> 0;
1069
1069
  byteLength2 = byteLength2 >>> 0;
1070
1070
  if (!noAssert) {
@@ -1077,32 +1077,32 @@ var require_buffer = __commonJS({
1077
1077
  }
1078
1078
  return val;
1079
1079
  };
1080
- Buffer3.prototype.readUint8 = Buffer3.prototype.readUInt8 = function readUInt8(offset, noAssert) {
1080
+ Buffer4.prototype.readUint8 = Buffer4.prototype.readUInt8 = function readUInt8(offset, noAssert) {
1081
1081
  offset = offset >>> 0;
1082
1082
  if (!noAssert) checkOffset(offset, 1, this.length);
1083
1083
  return this[offset];
1084
1084
  };
1085
- Buffer3.prototype.readUint16LE = Buffer3.prototype.readUInt16LE = function readUInt16LE(offset, noAssert) {
1085
+ Buffer4.prototype.readUint16LE = Buffer4.prototype.readUInt16LE = function readUInt16LE(offset, noAssert) {
1086
1086
  offset = offset >>> 0;
1087
1087
  if (!noAssert) checkOffset(offset, 2, this.length);
1088
1088
  return this[offset] | this[offset + 1] << 8;
1089
1089
  };
1090
- Buffer3.prototype.readUint16BE = Buffer3.prototype.readUInt16BE = function readUInt16BE(offset, noAssert) {
1090
+ Buffer4.prototype.readUint16BE = Buffer4.prototype.readUInt16BE = function readUInt16BE(offset, noAssert) {
1091
1091
  offset = offset >>> 0;
1092
1092
  if (!noAssert) checkOffset(offset, 2, this.length);
1093
1093
  return this[offset] << 8 | this[offset + 1];
1094
1094
  };
1095
- Buffer3.prototype.readUint32LE = Buffer3.prototype.readUInt32LE = function readUInt32LE(offset, noAssert) {
1095
+ Buffer4.prototype.readUint32LE = Buffer4.prototype.readUInt32LE = function readUInt32LE(offset, noAssert) {
1096
1096
  offset = offset >>> 0;
1097
1097
  if (!noAssert) checkOffset(offset, 4, this.length);
1098
1098
  return (this[offset] | this[offset + 1] << 8 | this[offset + 2] << 16) + this[offset + 3] * 16777216;
1099
1099
  };
1100
- Buffer3.prototype.readUint32BE = Buffer3.prototype.readUInt32BE = function readUInt32BE(offset, noAssert) {
1100
+ Buffer4.prototype.readUint32BE = Buffer4.prototype.readUInt32BE = function readUInt32BE(offset, noAssert) {
1101
1101
  offset = offset >>> 0;
1102
1102
  if (!noAssert) checkOffset(offset, 4, this.length);
1103
1103
  return this[offset] * 16777216 + (this[offset + 1] << 16 | this[offset + 2] << 8 | this[offset + 3]);
1104
1104
  };
1105
- Buffer3.prototype.readBigUInt64LE = defineBigIntMethod(function readBigUInt64LE(offset) {
1105
+ Buffer4.prototype.readBigUInt64LE = defineBigIntMethod(function readBigUInt64LE(offset) {
1106
1106
  offset = offset >>> 0;
1107
1107
  validateNumber(offset, "offset");
1108
1108
  const first = this[offset];
@@ -1114,7 +1114,7 @@ var require_buffer = __commonJS({
1114
1114
  const hi = this[++offset] + this[++offset] * 2 ** 8 + this[++offset] * 2 ** 16 + last * 2 ** 24;
1115
1115
  return BigInt(lo) + (BigInt(hi) << BigInt(32));
1116
1116
  });
1117
- Buffer3.prototype.readBigUInt64BE = defineBigIntMethod(function readBigUInt64BE(offset) {
1117
+ Buffer4.prototype.readBigUInt64BE = defineBigIntMethod(function readBigUInt64BE(offset) {
1118
1118
  offset = offset >>> 0;
1119
1119
  validateNumber(offset, "offset");
1120
1120
  const first = this[offset];
@@ -1126,7 +1126,7 @@ var require_buffer = __commonJS({
1126
1126
  const lo = this[++offset] * 2 ** 24 + this[++offset] * 2 ** 16 + this[++offset] * 2 ** 8 + last;
1127
1127
  return (BigInt(hi) << BigInt(32)) + BigInt(lo);
1128
1128
  });
1129
- Buffer3.prototype.readIntLE = function readIntLE(offset, byteLength2, noAssert) {
1129
+ Buffer4.prototype.readIntLE = function readIntLE(offset, byteLength2, noAssert) {
1130
1130
  offset = offset >>> 0;
1131
1131
  byteLength2 = byteLength2 >>> 0;
1132
1132
  if (!noAssert) checkOffset(offset, byteLength2, this.length);
@@ -1140,7 +1140,7 @@ var require_buffer = __commonJS({
1140
1140
  if (val >= mul) val -= Math.pow(2, 8 * byteLength2);
1141
1141
  return val;
1142
1142
  };
1143
- Buffer3.prototype.readIntBE = function readIntBE(offset, byteLength2, noAssert) {
1143
+ Buffer4.prototype.readIntBE = function readIntBE(offset, byteLength2, noAssert) {
1144
1144
  offset = offset >>> 0;
1145
1145
  byteLength2 = byteLength2 >>> 0;
1146
1146
  if (!noAssert) checkOffset(offset, byteLength2, this.length);
@@ -1154,35 +1154,35 @@ var require_buffer = __commonJS({
1154
1154
  if (val >= mul) val -= Math.pow(2, 8 * byteLength2);
1155
1155
  return val;
1156
1156
  };
1157
- Buffer3.prototype.readInt8 = function readInt8(offset, noAssert) {
1157
+ Buffer4.prototype.readInt8 = function readInt8(offset, noAssert) {
1158
1158
  offset = offset >>> 0;
1159
1159
  if (!noAssert) checkOffset(offset, 1, this.length);
1160
1160
  if (!(this[offset] & 128)) return this[offset];
1161
1161
  return (255 - this[offset] + 1) * -1;
1162
1162
  };
1163
- Buffer3.prototype.readInt16LE = function readInt16LE(offset, noAssert) {
1163
+ Buffer4.prototype.readInt16LE = function readInt16LE(offset, noAssert) {
1164
1164
  offset = offset >>> 0;
1165
1165
  if (!noAssert) checkOffset(offset, 2, this.length);
1166
1166
  const val = this[offset] | this[offset + 1] << 8;
1167
1167
  return val & 32768 ? val | 4294901760 : val;
1168
1168
  };
1169
- Buffer3.prototype.readInt16BE = function readInt16BE(offset, noAssert) {
1169
+ Buffer4.prototype.readInt16BE = function readInt16BE(offset, noAssert) {
1170
1170
  offset = offset >>> 0;
1171
1171
  if (!noAssert) checkOffset(offset, 2, this.length);
1172
1172
  const val = this[offset + 1] | this[offset] << 8;
1173
1173
  return val & 32768 ? val | 4294901760 : val;
1174
1174
  };
1175
- Buffer3.prototype.readInt32LE = function readInt32LE(offset, noAssert) {
1175
+ Buffer4.prototype.readInt32LE = function readInt32LE(offset, noAssert) {
1176
1176
  offset = offset >>> 0;
1177
1177
  if (!noAssert) checkOffset(offset, 4, this.length);
1178
1178
  return this[offset] | this[offset + 1] << 8 | this[offset + 2] << 16 | this[offset + 3] << 24;
1179
1179
  };
1180
- Buffer3.prototype.readInt32BE = function readInt32BE(offset, noAssert) {
1180
+ Buffer4.prototype.readInt32BE = function readInt32BE(offset, noAssert) {
1181
1181
  offset = offset >>> 0;
1182
1182
  if (!noAssert) checkOffset(offset, 4, this.length);
1183
1183
  return this[offset] << 24 | this[offset + 1] << 16 | this[offset + 2] << 8 | this[offset + 3];
1184
1184
  };
1185
- Buffer3.prototype.readBigInt64LE = defineBigIntMethod(function readBigInt64LE(offset) {
1185
+ Buffer4.prototype.readBigInt64LE = defineBigIntMethod(function readBigInt64LE(offset) {
1186
1186
  offset = offset >>> 0;
1187
1187
  validateNumber(offset, "offset");
1188
1188
  const first = this[offset];
@@ -1193,7 +1193,7 @@ var require_buffer = __commonJS({
1193
1193
  const val = this[offset + 4] + this[offset + 5] * 2 ** 8 + this[offset + 6] * 2 ** 16 + (last << 24);
1194
1194
  return (BigInt(val) << BigInt(32)) + BigInt(first + this[++offset] * 2 ** 8 + this[++offset] * 2 ** 16 + this[++offset] * 2 ** 24);
1195
1195
  });
1196
- Buffer3.prototype.readBigInt64BE = defineBigIntMethod(function readBigInt64BE(offset) {
1196
+ Buffer4.prototype.readBigInt64BE = defineBigIntMethod(function readBigInt64BE(offset) {
1197
1197
  offset = offset >>> 0;
1198
1198
  validateNumber(offset, "offset");
1199
1199
  const first = this[offset];
@@ -1205,32 +1205,32 @@ var require_buffer = __commonJS({
1205
1205
  this[++offset] * 2 ** 16 + this[++offset] * 2 ** 8 + this[++offset];
1206
1206
  return (BigInt(val) << BigInt(32)) + BigInt(this[++offset] * 2 ** 24 + this[++offset] * 2 ** 16 + this[++offset] * 2 ** 8 + last);
1207
1207
  });
1208
- Buffer3.prototype.readFloatLE = function readFloatLE(offset, noAssert) {
1208
+ Buffer4.prototype.readFloatLE = function readFloatLE(offset, noAssert) {
1209
1209
  offset = offset >>> 0;
1210
1210
  if (!noAssert) checkOffset(offset, 4, this.length);
1211
1211
  return ieee754.read(this, offset, true, 23, 4);
1212
1212
  };
1213
- Buffer3.prototype.readFloatBE = function readFloatBE(offset, noAssert) {
1213
+ Buffer4.prototype.readFloatBE = function readFloatBE(offset, noAssert) {
1214
1214
  offset = offset >>> 0;
1215
1215
  if (!noAssert) checkOffset(offset, 4, this.length);
1216
1216
  return ieee754.read(this, offset, false, 23, 4);
1217
1217
  };
1218
- Buffer3.prototype.readDoubleLE = function readDoubleLE(offset, noAssert) {
1218
+ Buffer4.prototype.readDoubleLE = function readDoubleLE(offset, noAssert) {
1219
1219
  offset = offset >>> 0;
1220
1220
  if (!noAssert) checkOffset(offset, 8, this.length);
1221
1221
  return ieee754.read(this, offset, true, 52, 8);
1222
1222
  };
1223
- Buffer3.prototype.readDoubleBE = function readDoubleBE(offset, noAssert) {
1223
+ Buffer4.prototype.readDoubleBE = function readDoubleBE(offset, noAssert) {
1224
1224
  offset = offset >>> 0;
1225
1225
  if (!noAssert) checkOffset(offset, 8, this.length);
1226
1226
  return ieee754.read(this, offset, false, 52, 8);
1227
1227
  };
1228
1228
  function checkInt(buf, value, offset, ext, max, min) {
1229
- if (!Buffer3.isBuffer(buf)) throw new TypeError('"buffer" argument must be a Buffer instance');
1229
+ if (!Buffer4.isBuffer(buf)) throw new TypeError('"buffer" argument must be a Buffer instance');
1230
1230
  if (value > max || value < min) throw new RangeError('"value" argument is out of bounds');
1231
1231
  if (offset + ext > buf.length) throw new RangeError("Index out of range");
1232
1232
  }
1233
- Buffer3.prototype.writeUintLE = Buffer3.prototype.writeUIntLE = function writeUIntLE(value, offset, byteLength2, noAssert) {
1233
+ Buffer4.prototype.writeUintLE = Buffer4.prototype.writeUIntLE = function writeUIntLE(value, offset, byteLength2, noAssert) {
1234
1234
  value = +value;
1235
1235
  offset = offset >>> 0;
1236
1236
  byteLength2 = byteLength2 >>> 0;
@@ -1246,7 +1246,7 @@ var require_buffer = __commonJS({
1246
1246
  }
1247
1247
  return offset + byteLength2;
1248
1248
  };
1249
- Buffer3.prototype.writeUintBE = Buffer3.prototype.writeUIntBE = function writeUIntBE(value, offset, byteLength2, noAssert) {
1249
+ Buffer4.prototype.writeUintBE = Buffer4.prototype.writeUIntBE = function writeUIntBE(value, offset, byteLength2, noAssert) {
1250
1250
  value = +value;
1251
1251
  offset = offset >>> 0;
1252
1252
  byteLength2 = byteLength2 >>> 0;
@@ -1262,14 +1262,14 @@ var require_buffer = __commonJS({
1262
1262
  }
1263
1263
  return offset + byteLength2;
1264
1264
  };
1265
- Buffer3.prototype.writeUint8 = Buffer3.prototype.writeUInt8 = function writeUInt8(value, offset, noAssert) {
1265
+ Buffer4.prototype.writeUint8 = Buffer4.prototype.writeUInt8 = function writeUInt8(value, offset, noAssert) {
1266
1266
  value = +value;
1267
1267
  offset = offset >>> 0;
1268
1268
  if (!noAssert) checkInt(this, value, offset, 1, 255, 0);
1269
1269
  this[offset] = value & 255;
1270
1270
  return offset + 1;
1271
1271
  };
1272
- Buffer3.prototype.writeUint16LE = Buffer3.prototype.writeUInt16LE = function writeUInt16LE(value, offset, noAssert) {
1272
+ Buffer4.prototype.writeUint16LE = Buffer4.prototype.writeUInt16LE = function writeUInt16LE(value, offset, noAssert) {
1273
1273
  value = +value;
1274
1274
  offset = offset >>> 0;
1275
1275
  if (!noAssert) checkInt(this, value, offset, 2, 65535, 0);
@@ -1277,7 +1277,7 @@ var require_buffer = __commonJS({
1277
1277
  this[offset + 1] = value >>> 8;
1278
1278
  return offset + 2;
1279
1279
  };
1280
- Buffer3.prototype.writeUint16BE = Buffer3.prototype.writeUInt16BE = function writeUInt16BE(value, offset, noAssert) {
1280
+ Buffer4.prototype.writeUint16BE = Buffer4.prototype.writeUInt16BE = function writeUInt16BE(value, offset, noAssert) {
1281
1281
  value = +value;
1282
1282
  offset = offset >>> 0;
1283
1283
  if (!noAssert) checkInt(this, value, offset, 2, 65535, 0);
@@ -1285,7 +1285,7 @@ var require_buffer = __commonJS({
1285
1285
  this[offset + 1] = value & 255;
1286
1286
  return offset + 2;
1287
1287
  };
1288
- Buffer3.prototype.writeUint32LE = Buffer3.prototype.writeUInt32LE = function writeUInt32LE(value, offset, noAssert) {
1288
+ Buffer4.prototype.writeUint32LE = Buffer4.prototype.writeUInt32LE = function writeUInt32LE(value, offset, noAssert) {
1289
1289
  value = +value;
1290
1290
  offset = offset >>> 0;
1291
1291
  if (!noAssert) checkInt(this, value, offset, 4, 4294967295, 0);
@@ -1295,7 +1295,7 @@ var require_buffer = __commonJS({
1295
1295
  this[offset] = value & 255;
1296
1296
  return offset + 4;
1297
1297
  };
1298
- Buffer3.prototype.writeUint32BE = Buffer3.prototype.writeUInt32BE = function writeUInt32BE(value, offset, noAssert) {
1298
+ Buffer4.prototype.writeUint32BE = Buffer4.prototype.writeUInt32BE = function writeUInt32BE(value, offset, noAssert) {
1299
1299
  value = +value;
1300
1300
  offset = offset >>> 0;
1301
1301
  if (!noAssert) checkInt(this, value, offset, 4, 4294967295, 0);
@@ -1345,13 +1345,13 @@ var require_buffer = __commonJS({
1345
1345
  buf[offset] = hi;
1346
1346
  return offset + 8;
1347
1347
  }
1348
- Buffer3.prototype.writeBigUInt64LE = defineBigIntMethod(function writeBigUInt64LE(value, offset = 0) {
1348
+ Buffer4.prototype.writeBigUInt64LE = defineBigIntMethod(function writeBigUInt64LE(value, offset = 0) {
1349
1349
  return wrtBigUInt64LE(this, value, offset, BigInt(0), BigInt("0xffffffffffffffff"));
1350
1350
  });
1351
- Buffer3.prototype.writeBigUInt64BE = defineBigIntMethod(function writeBigUInt64BE(value, offset = 0) {
1351
+ Buffer4.prototype.writeBigUInt64BE = defineBigIntMethod(function writeBigUInt64BE(value, offset = 0) {
1352
1352
  return wrtBigUInt64BE(this, value, offset, BigInt(0), BigInt("0xffffffffffffffff"));
1353
1353
  });
1354
- Buffer3.prototype.writeIntLE = function writeIntLE(value, offset, byteLength2, noAssert) {
1354
+ Buffer4.prototype.writeIntLE = function writeIntLE(value, offset, byteLength2, noAssert) {
1355
1355
  value = +value;
1356
1356
  offset = offset >>> 0;
1357
1357
  if (!noAssert) {
@@ -1370,7 +1370,7 @@ var require_buffer = __commonJS({
1370
1370
  }
1371
1371
  return offset + byteLength2;
1372
1372
  };
1373
- Buffer3.prototype.writeIntBE = function writeIntBE(value, offset, byteLength2, noAssert) {
1373
+ Buffer4.prototype.writeIntBE = function writeIntBE(value, offset, byteLength2, noAssert) {
1374
1374
  value = +value;
1375
1375
  offset = offset >>> 0;
1376
1376
  if (!noAssert) {
@@ -1389,7 +1389,7 @@ var require_buffer = __commonJS({
1389
1389
  }
1390
1390
  return offset + byteLength2;
1391
1391
  };
1392
- Buffer3.prototype.writeInt8 = function writeInt8(value, offset, noAssert) {
1392
+ Buffer4.prototype.writeInt8 = function writeInt8(value, offset, noAssert) {
1393
1393
  value = +value;
1394
1394
  offset = offset >>> 0;
1395
1395
  if (!noAssert) checkInt(this, value, offset, 1, 127, -128);
@@ -1397,7 +1397,7 @@ var require_buffer = __commonJS({
1397
1397
  this[offset] = value & 255;
1398
1398
  return offset + 1;
1399
1399
  };
1400
- Buffer3.prototype.writeInt16LE = function writeInt16LE(value, offset, noAssert) {
1400
+ Buffer4.prototype.writeInt16LE = function writeInt16LE(value, offset, noAssert) {
1401
1401
  value = +value;
1402
1402
  offset = offset >>> 0;
1403
1403
  if (!noAssert) checkInt(this, value, offset, 2, 32767, -32768);
@@ -1405,7 +1405,7 @@ var require_buffer = __commonJS({
1405
1405
  this[offset + 1] = value >>> 8;
1406
1406
  return offset + 2;
1407
1407
  };
1408
- Buffer3.prototype.writeInt16BE = function writeInt16BE(value, offset, noAssert) {
1408
+ Buffer4.prototype.writeInt16BE = function writeInt16BE(value, offset, noAssert) {
1409
1409
  value = +value;
1410
1410
  offset = offset >>> 0;
1411
1411
  if (!noAssert) checkInt(this, value, offset, 2, 32767, -32768);
@@ -1413,7 +1413,7 @@ var require_buffer = __commonJS({
1413
1413
  this[offset + 1] = value & 255;
1414
1414
  return offset + 2;
1415
1415
  };
1416
- Buffer3.prototype.writeInt32LE = function writeInt32LE(value, offset, noAssert) {
1416
+ Buffer4.prototype.writeInt32LE = function writeInt32LE(value, offset, noAssert) {
1417
1417
  value = +value;
1418
1418
  offset = offset >>> 0;
1419
1419
  if (!noAssert) checkInt(this, value, offset, 4, 2147483647, -2147483648);
@@ -1423,7 +1423,7 @@ var require_buffer = __commonJS({
1423
1423
  this[offset + 3] = value >>> 24;
1424
1424
  return offset + 4;
1425
1425
  };
1426
- Buffer3.prototype.writeInt32BE = function writeInt32BE(value, offset, noAssert) {
1426
+ Buffer4.prototype.writeInt32BE = function writeInt32BE(value, offset, noAssert) {
1427
1427
  value = +value;
1428
1428
  offset = offset >>> 0;
1429
1429
  if (!noAssert) checkInt(this, value, offset, 4, 2147483647, -2147483648);
@@ -1434,10 +1434,10 @@ var require_buffer = __commonJS({
1434
1434
  this[offset + 3] = value & 255;
1435
1435
  return offset + 4;
1436
1436
  };
1437
- Buffer3.prototype.writeBigInt64LE = defineBigIntMethod(function writeBigInt64LE(value, offset = 0) {
1437
+ Buffer4.prototype.writeBigInt64LE = defineBigIntMethod(function writeBigInt64LE(value, offset = 0) {
1438
1438
  return wrtBigUInt64LE(this, value, offset, -BigInt("0x8000000000000000"), BigInt("0x7fffffffffffffff"));
1439
1439
  });
1440
- Buffer3.prototype.writeBigInt64BE = defineBigIntMethod(function writeBigInt64BE(value, offset = 0) {
1440
+ Buffer4.prototype.writeBigInt64BE = defineBigIntMethod(function writeBigInt64BE(value, offset = 0) {
1441
1441
  return wrtBigUInt64BE(this, value, offset, -BigInt("0x8000000000000000"), BigInt("0x7fffffffffffffff"));
1442
1442
  });
1443
1443
  function checkIEEE754(buf, value, offset, ext, max, min) {
@@ -1453,10 +1453,10 @@ var require_buffer = __commonJS({
1453
1453
  ieee754.write(buf, value, offset, littleEndian, 23, 4);
1454
1454
  return offset + 4;
1455
1455
  }
1456
- Buffer3.prototype.writeFloatLE = function writeFloatLE(value, offset, noAssert) {
1456
+ Buffer4.prototype.writeFloatLE = function writeFloatLE(value, offset, noAssert) {
1457
1457
  return writeFloat(this, value, offset, true, noAssert);
1458
1458
  };
1459
- Buffer3.prototype.writeFloatBE = function writeFloatBE(value, offset, noAssert) {
1459
+ Buffer4.prototype.writeFloatBE = function writeFloatBE(value, offset, noAssert) {
1460
1460
  return writeFloat(this, value, offset, false, noAssert);
1461
1461
  };
1462
1462
  function writeDouble(buf, value, offset, littleEndian, noAssert) {
@@ -1468,14 +1468,14 @@ var require_buffer = __commonJS({
1468
1468
  ieee754.write(buf, value, offset, littleEndian, 52, 8);
1469
1469
  return offset + 8;
1470
1470
  }
1471
- Buffer3.prototype.writeDoubleLE = function writeDoubleLE(value, offset, noAssert) {
1471
+ Buffer4.prototype.writeDoubleLE = function writeDoubleLE(value, offset, noAssert) {
1472
1472
  return writeDouble(this, value, offset, true, noAssert);
1473
1473
  };
1474
- Buffer3.prototype.writeDoubleBE = function writeDoubleBE(value, offset, noAssert) {
1474
+ Buffer4.prototype.writeDoubleBE = function writeDoubleBE(value, offset, noAssert) {
1475
1475
  return writeDouble(this, value, offset, false, noAssert);
1476
1476
  };
1477
- Buffer3.prototype.copy = function copy(target, targetStart, start, end) {
1478
- if (!Buffer3.isBuffer(target)) throw new TypeError("argument should be a Buffer");
1477
+ Buffer4.prototype.copy = function copy(target, targetStart, start, end) {
1478
+ if (!Buffer4.isBuffer(target)) throw new TypeError("argument should be a Buffer");
1479
1479
  if (!start) start = 0;
1480
1480
  if (!end && end !== 0) end = this.length;
1481
1481
  if (targetStart >= target.length) targetStart = target.length;
@@ -1504,7 +1504,7 @@ var require_buffer = __commonJS({
1504
1504
  }
1505
1505
  return len;
1506
1506
  };
1507
- Buffer3.prototype.fill = function fill(val, start, end, encoding) {
1507
+ Buffer4.prototype.fill = function fill(val, start, end, encoding) {
1508
1508
  if (typeof val === "string") {
1509
1509
  if (typeof start === "string") {
1510
1510
  encoding = start;
@@ -1517,7 +1517,7 @@ var require_buffer = __commonJS({
1517
1517
  if (encoding !== void 0 && typeof encoding !== "string") {
1518
1518
  throw new TypeError("encoding must be a string");
1519
1519
  }
1520
- if (typeof encoding === "string" && !Buffer3.isEncoding(encoding)) {
1520
+ if (typeof encoding === "string" && !Buffer4.isEncoding(encoding)) {
1521
1521
  throw new TypeError("Unknown encoding: " + encoding);
1522
1522
  }
1523
1523
  if (val.length === 1) {
@@ -1546,7 +1546,7 @@ var require_buffer = __commonJS({
1546
1546
  this[i] = val;
1547
1547
  }
1548
1548
  } else {
1549
- const bytes = Buffer3.isBuffer(val) ? val : Buffer3.from(val, encoding);
1549
+ const bytes = Buffer4.isBuffer(val) ? val : Buffer4.from(val, encoding);
1550
1550
  const len = bytes.length;
1551
1551
  if (len === 0) {
1552
1552
  throw new TypeError('The value "' + val + '" is invalid for argument "value"');
@@ -2039,6 +2039,7 @@ var StabilityProvider = class extends StableDiffusionProvider {
2039
2039
  };
2040
2040
 
2041
2041
  // src/providers/eleven-labs.ts
2042
+ var import_buffer2 = __toESM(require_buffer());
2042
2043
  import { ElevenLabsClient, ElevenLabs } from "elevenlabs";
2043
2044
  import axios3 from "axios";
2044
2045
  var defaultVoiceSettings = {
@@ -2070,7 +2071,7 @@ var ElevenLabsWhisperProvider = class extends WhisperProvider {
2070
2071
  }
2071
2072
  });
2072
2073
  const base64Data = audio.split(",")[1];
2073
- const blob = new Blob([Buffer.from(base64Data, "base64")], { type: "audio/webm" });
2074
+ const blob = new Blob([import_buffer2.Buffer.from(base64Data, "base64")], { type: "audio/webm" });
2074
2075
  const formData = new FormData();
2075
2076
  formData.append("file", blob, "audio.webm");
2076
2077
  formData.append("model_id", "scribe_v1");