@applitools/eyes-browser 1.4.3 → 1.4.6

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 (3) hide show
  1. package/CHANGELOG.md +225 -0
  2. package/dist/index.js +465 -409
  3. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -271,13 +271,13 @@ var require_buffer = __commonJS({
271
271
  var base64 = require_base64_js();
272
272
  var ieee754 = require_ieee754();
273
273
  var customInspectSymbol = typeof Symbol === "function" && typeof Symbol["for"] === "function" ? Symbol["for"]("nodejs.util.inspect.custom") : null;
274
- exports.Buffer = Buffer3;
274
+ exports.Buffer = Buffer4;
275
275
  exports.SlowBuffer = SlowBuffer;
276
276
  exports.INSPECT_MAX_BYTES = 50;
277
277
  var K_MAX_LENGTH = 2147483647;
278
278
  exports.kMaxLength = K_MAX_LENGTH;
279
- Buffer3.TYPED_ARRAY_SUPPORT = typedArraySupport();
280
- if (!Buffer3.TYPED_ARRAY_SUPPORT && typeof console !== "undefined" && typeof console.error === "function") {
279
+ Buffer4.TYPED_ARRAY_SUPPORT = typedArraySupport();
280
+ if (!Buffer4.TYPED_ARRAY_SUPPORT && typeof console !== "undefined" && typeof console.error === "function") {
281
281
  console.error(
282
282
  "This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."
283
283
  );
@@ -295,18 +295,18 @@ var require_buffer = __commonJS({
295
295
  return false;
296
296
  }
297
297
  }
298
- Object.defineProperty(Buffer3.prototype, "parent", {
298
+ Object.defineProperty(Buffer4.prototype, "parent", {
299
299
  enumerable: true,
300
300
  get: function() {
301
- if (!Buffer3.isBuffer(this))
301
+ if (!Buffer4.isBuffer(this))
302
302
  return void 0;
303
303
  return this.buffer;
304
304
  }
305
305
  });
306
- Object.defineProperty(Buffer3.prototype, "offset", {
306
+ Object.defineProperty(Buffer4.prototype, "offset", {
307
307
  enumerable: true,
308
308
  get: function() {
309
- if (!Buffer3.isBuffer(this))
309
+ if (!Buffer4.isBuffer(this))
310
310
  return void 0;
311
311
  return this.byteOffset;
312
312
  }
@@ -316,10 +316,10 @@ var require_buffer = __commonJS({
316
316
  throw new RangeError('The value "' + length + '" is invalid for option "size"');
317
317
  }
318
318
  const buf = new Uint8Array(length);
319
- Object.setPrototypeOf(buf, Buffer3.prototype);
319
+ Object.setPrototypeOf(buf, Buffer4.prototype);
320
320
  return buf;
321
321
  }
322
- function Buffer3(arg, encodingOrOffset, length) {
322
+ function Buffer4(arg, encodingOrOffset, length) {
323
323
  if (typeof arg === "number") {
324
324
  if (typeof encodingOrOffset === "string") {
325
325
  throw new TypeError(
@@ -330,7 +330,7 @@ var require_buffer = __commonJS({
330
330
  }
331
331
  return from(arg, encodingOrOffset, length);
332
332
  }
333
- Buffer3.poolSize = 8192;
333
+ Buffer4.poolSize = 8192;
334
334
  function from(value, encodingOrOffset, length) {
335
335
  if (typeof value === "string") {
336
336
  return fromString(value, encodingOrOffset);
@@ -356,23 +356,23 @@ var require_buffer = __commonJS({
356
356
  }
357
357
  const valueOf = value.valueOf && value.valueOf();
358
358
  if (valueOf != null && valueOf !== value) {
359
- return Buffer3.from(valueOf, encodingOrOffset, length);
359
+ return Buffer4.from(valueOf, encodingOrOffset, length);
360
360
  }
361
361
  const b = fromObject(value);
362
362
  if (b)
363
363
  return b;
364
364
  if (typeof Symbol !== "undefined" && Symbol.toPrimitive != null && typeof value[Symbol.toPrimitive] === "function") {
365
- return Buffer3.from(value[Symbol.toPrimitive]("string"), encodingOrOffset, length);
365
+ return Buffer4.from(value[Symbol.toPrimitive]("string"), encodingOrOffset, length);
366
366
  }
367
367
  throw new TypeError(
368
368
  "The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + typeof value
369
369
  );
370
370
  }
371
- Buffer3.from = function(value, encodingOrOffset, length) {
371
+ Buffer4.from = function(value, encodingOrOffset, length) {
372
372
  return from(value, encodingOrOffset, length);
373
373
  };
374
- Object.setPrototypeOf(Buffer3.prototype, Uint8Array.prototype);
375
- Object.setPrototypeOf(Buffer3, Uint8Array);
374
+ Object.setPrototypeOf(Buffer4.prototype, Uint8Array.prototype);
375
+ Object.setPrototypeOf(Buffer4, Uint8Array);
376
376
  function assertSize(size) {
377
377
  if (typeof size !== "number") {
378
378
  throw new TypeError('"size" argument must be of type number');
@@ -390,24 +390,24 @@ var require_buffer = __commonJS({
390
390
  }
391
391
  return createBuffer(size);
392
392
  }
393
- Buffer3.alloc = function(size, fill, encoding) {
393
+ Buffer4.alloc = function(size, fill, encoding) {
394
394
  return alloc(size, fill, encoding);
395
395
  };
396
396
  function allocUnsafe(size) {
397
397
  assertSize(size);
398
398
  return createBuffer(size < 0 ? 0 : checked(size) | 0);
399
399
  }
400
- Buffer3.allocUnsafe = function(size) {
400
+ Buffer4.allocUnsafe = function(size) {
401
401
  return allocUnsafe(size);
402
402
  };
403
- Buffer3.allocUnsafeSlow = function(size) {
403
+ Buffer4.allocUnsafeSlow = function(size) {
404
404
  return allocUnsafe(size);
405
405
  };
406
406
  function fromString(string, encoding) {
407
407
  if (typeof encoding !== "string" || encoding === "") {
408
408
  encoding = "utf8";
409
409
  }
410
- if (!Buffer3.isEncoding(encoding)) {
410
+ if (!Buffer4.isEncoding(encoding)) {
411
411
  throw new TypeError("Unknown encoding: " + encoding);
412
412
  }
413
413
  const length = byteLength(string, encoding) | 0;
@@ -448,11 +448,11 @@ var require_buffer = __commonJS({
448
448
  } else {
449
449
  buf = new Uint8Array(array, byteOffset, length);
450
450
  }
451
- Object.setPrototypeOf(buf, Buffer3.prototype);
451
+ Object.setPrototypeOf(buf, Buffer4.prototype);
452
452
  return buf;
453
453
  }
454
454
  function fromObject(obj) {
455
- if (Buffer3.isBuffer(obj)) {
455
+ if (Buffer4.isBuffer(obj)) {
456
456
  const len = checked(obj.length) | 0;
457
457
  const buf = createBuffer(len);
458
458
  if (buf.length === 0) {
@@ -481,17 +481,17 @@ var require_buffer = __commonJS({
481
481
  if (+length != length) {
482
482
  length = 0;
483
483
  }
484
- return Buffer3.alloc(+length);
484
+ return Buffer4.alloc(+length);
485
485
  }
486
- Buffer3.isBuffer = function isBuffer(b) {
487
- return b != null && b._isBuffer === true && b !== Buffer3.prototype;
486
+ Buffer4.isBuffer = function isBuffer(b) {
487
+ return b != null && b._isBuffer === true && b !== Buffer4.prototype;
488
488
  };
489
- Buffer3.compare = function compare(a, b) {
489
+ Buffer4.compare = function compare(a, b) {
490
490
  if (isInstance(a, Uint8Array))
491
- a = Buffer3.from(a, a.offset, a.byteLength);
491
+ a = Buffer4.from(a, a.offset, a.byteLength);
492
492
  if (isInstance(b, Uint8Array))
493
- b = Buffer3.from(b, b.offset, b.byteLength);
494
- if (!Buffer3.isBuffer(a) || !Buffer3.isBuffer(b)) {
493
+ b = Buffer4.from(b, b.offset, b.byteLength);
494
+ if (!Buffer4.isBuffer(a) || !Buffer4.isBuffer(b)) {
495
495
  throw new TypeError(
496
496
  'The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array'
497
497
  );
@@ -513,7 +513,7 @@ var require_buffer = __commonJS({
513
513
  return 1;
514
514
  return 0;
515
515
  };
516
- Buffer3.isEncoding = function isEncoding(encoding) {
516
+ Buffer4.isEncoding = function isEncoding(encoding) {
517
517
  switch (String(encoding).toLowerCase()) {
518
518
  case "hex":
519
519
  case "utf8":
@@ -531,12 +531,12 @@ var require_buffer = __commonJS({
531
531
  return false;
532
532
  }
533
533
  };
534
- Buffer3.concat = function concat(list, length) {
534
+ Buffer4.concat = function concat(list, length) {
535
535
  if (!Array.isArray(list)) {
536
536
  throw new TypeError('"list" argument must be an Array of Buffers');
537
537
  }
538
538
  if (list.length === 0) {
539
- return Buffer3.alloc(0);
539
+ return Buffer4.alloc(0);
540
540
  }
541
541
  let i;
542
542
  if (length === void 0) {
@@ -545,14 +545,14 @@ var require_buffer = __commonJS({
545
545
  length += list[i].length;
546
546
  }
547
547
  }
548
- const buffer = Buffer3.allocUnsafe(length);
548
+ const buffer = Buffer4.allocUnsafe(length);
549
549
  let pos = 0;
550
550
  for (i = 0; i < list.length; ++i) {
551
551
  let buf = list[i];
552
552
  if (isInstance(buf, Uint8Array)) {
553
553
  if (pos + buf.length > buffer.length) {
554
- if (!Buffer3.isBuffer(buf))
555
- buf = Buffer3.from(buf);
554
+ if (!Buffer4.isBuffer(buf))
555
+ buf = Buffer4.from(buf);
556
556
  buf.copy(buffer, pos);
557
557
  } else {
558
558
  Uint8Array.prototype.set.call(
@@ -561,7 +561,7 @@ var require_buffer = __commonJS({
561
561
  pos
562
562
  );
563
563
  }
564
- } else if (!Buffer3.isBuffer(buf)) {
564
+ } else if (!Buffer4.isBuffer(buf)) {
565
565
  throw new TypeError('"list" argument must be an Array of Buffers');
566
566
  } else {
567
567
  buf.copy(buffer, pos);
@@ -571,7 +571,7 @@ var require_buffer = __commonJS({
571
571
  return buffer;
572
572
  };
573
573
  function byteLength(string, encoding) {
574
- if (Buffer3.isBuffer(string)) {
574
+ if (Buffer4.isBuffer(string)) {
575
575
  return string.length;
576
576
  }
577
577
  if (ArrayBuffer.isView(string) || isInstance(string, ArrayBuffer)) {
@@ -614,7 +614,7 @@ var require_buffer = __commonJS({
614
614
  }
615
615
  }
616
616
  }
617
- Buffer3.byteLength = byteLength;
617
+ Buffer4.byteLength = byteLength;
618
618
  function slowToString(encoding, start, end) {
619
619
  let loweredCase = false;
620
620
  if (start === void 0 || start < 0) {
@@ -663,13 +663,13 @@ var require_buffer = __commonJS({
663
663
  }
664
664
  }
665
665
  }
666
- Buffer3.prototype._isBuffer = true;
666
+ Buffer4.prototype._isBuffer = true;
667
667
  function swap(b, n, m) {
668
668
  const i = b[n];
669
669
  b[n] = b[m];
670
670
  b[m] = i;
671
671
  }
672
- Buffer3.prototype.swap16 = function swap16() {
672
+ Buffer4.prototype.swap16 = function swap16() {
673
673
  const len = this.length;
674
674
  if (len % 2 !== 0) {
675
675
  throw new RangeError("Buffer size must be a multiple of 16-bits");
@@ -679,7 +679,7 @@ var require_buffer = __commonJS({
679
679
  }
680
680
  return this;
681
681
  };
682
- Buffer3.prototype.swap32 = function swap32() {
682
+ Buffer4.prototype.swap32 = function swap32() {
683
683
  const len = this.length;
684
684
  if (len % 4 !== 0) {
685
685
  throw new RangeError("Buffer size must be a multiple of 32-bits");
@@ -690,7 +690,7 @@ var require_buffer = __commonJS({
690
690
  }
691
691
  return this;
692
692
  };
693
- Buffer3.prototype.swap64 = function swap64() {
693
+ Buffer4.prototype.swap64 = function swap64() {
694
694
  const len = this.length;
695
695
  if (len % 8 !== 0) {
696
696
  throw new RangeError("Buffer size must be a multiple of 64-bits");
@@ -703,7 +703,7 @@ var require_buffer = __commonJS({
703
703
  }
704
704
  return this;
705
705
  };
706
- Buffer3.prototype.toString = function toString() {
706
+ Buffer4.prototype.toString = function toString() {
707
707
  const length = this.length;
708
708
  if (length === 0)
709
709
  return "";
@@ -711,15 +711,15 @@ var require_buffer = __commonJS({
711
711
  return utf8Slice(this, 0, length);
712
712
  return slowToString.apply(this, arguments);
713
713
  };
714
- Buffer3.prototype.toLocaleString = Buffer3.prototype.toString;
715
- Buffer3.prototype.equals = function equals(b) {
716
- if (!Buffer3.isBuffer(b))
714
+ Buffer4.prototype.toLocaleString = Buffer4.prototype.toString;
715
+ Buffer4.prototype.equals = function equals(b) {
716
+ if (!Buffer4.isBuffer(b))
717
717
  throw new TypeError("Argument must be a Buffer");
718
718
  if (this === b)
719
719
  return true;
720
- return Buffer3.compare(this, b) === 0;
720
+ return Buffer4.compare(this, b) === 0;
721
721
  };
722
- Buffer3.prototype.inspect = function inspect() {
722
+ Buffer4.prototype.inspect = function inspect() {
723
723
  let str = "";
724
724
  const max = exports.INSPECT_MAX_BYTES;
725
725
  str = this.toString("hex", 0, max).replace(/(.{2})/g, "$1 ").trim();
@@ -728,13 +728,13 @@ var require_buffer = __commonJS({
728
728
  return "<Buffer " + str + ">";
729
729
  };
730
730
  if (customInspectSymbol) {
731
- Buffer3.prototype[customInspectSymbol] = Buffer3.prototype.inspect;
731
+ Buffer4.prototype[customInspectSymbol] = Buffer4.prototype.inspect;
732
732
  }
733
- Buffer3.prototype.compare = function compare(target, start, end, thisStart, thisEnd) {
733
+ Buffer4.prototype.compare = function compare(target, start, end, thisStart, thisEnd) {
734
734
  if (isInstance(target, Uint8Array)) {
735
- target = Buffer3.from(target, target.offset, target.byteLength);
735
+ target = Buffer4.from(target, target.offset, target.byteLength);
736
736
  }
737
- if (!Buffer3.isBuffer(target)) {
737
+ if (!Buffer4.isBuffer(target)) {
738
738
  throw new TypeError(
739
739
  'The "target" argument must be one of type Buffer or Uint8Array. Received type ' + typeof target
740
740
  );
@@ -816,9 +816,9 @@ var require_buffer = __commonJS({
816
816
  return -1;
817
817
  }
818
818
  if (typeof val === "string") {
819
- val = Buffer3.from(val, encoding);
819
+ val = Buffer4.from(val, encoding);
820
820
  }
821
- if (Buffer3.isBuffer(val)) {
821
+ if (Buffer4.isBuffer(val)) {
822
822
  if (val.length === 0) {
823
823
  return -1;
824
824
  }
@@ -891,13 +891,13 @@ var require_buffer = __commonJS({
891
891
  }
892
892
  return -1;
893
893
  }
894
- Buffer3.prototype.includes = function includes(val, byteOffset, encoding) {
894
+ Buffer4.prototype.includes = function includes(val, byteOffset, encoding) {
895
895
  return this.indexOf(val, byteOffset, encoding) !== -1;
896
896
  };
897
- Buffer3.prototype.indexOf = function indexOf(val, byteOffset, encoding) {
897
+ Buffer4.prototype.indexOf = function indexOf(val, byteOffset, encoding) {
898
898
  return bidirectionalIndexOf(this, val, byteOffset, encoding, true);
899
899
  };
900
- Buffer3.prototype.lastIndexOf = function lastIndexOf(val, byteOffset, encoding) {
900
+ Buffer4.prototype.lastIndexOf = function lastIndexOf(val, byteOffset, encoding) {
901
901
  return bidirectionalIndexOf(this, val, byteOffset, encoding, false);
902
902
  };
903
903
  function hexWrite(buf, string, offset, length) {
@@ -936,7 +936,7 @@ var require_buffer = __commonJS({
936
936
  function ucs2Write(buf, string, offset, length) {
937
937
  return blitBuffer(utf16leToBytes(string, buf.length - offset), buf, offset, length);
938
938
  }
939
- Buffer3.prototype.write = function write(string, offset, length, encoding) {
939
+ Buffer4.prototype.write = function write(string, offset, length, encoding) {
940
940
  if (offset === void 0) {
941
941
  encoding = "utf8";
942
942
  length = this.length;
@@ -995,7 +995,7 @@ var require_buffer = __commonJS({
995
995
  }
996
996
  }
997
997
  };
998
- Buffer3.prototype.toJSON = function toJSON() {
998
+ Buffer4.prototype.toJSON = function toJSON() {
999
999
  return {
1000
1000
  type: "Buffer",
1001
1001
  data: Array.prototype.slice.call(this._arr || this, 0)
@@ -1120,7 +1120,7 @@ var require_buffer = __commonJS({
1120
1120
  }
1121
1121
  return res;
1122
1122
  }
1123
- Buffer3.prototype.slice = function slice(start, end) {
1123
+ Buffer4.prototype.slice = function slice(start, end) {
1124
1124
  const len = this.length;
1125
1125
  start = ~~start;
1126
1126
  end = end === void 0 ? len : ~~end;
@@ -1141,7 +1141,7 @@ var require_buffer = __commonJS({
1141
1141
  if (end < start)
1142
1142
  end = start;
1143
1143
  const newBuf = this.subarray(start, end);
1144
- Object.setPrototypeOf(newBuf, Buffer3.prototype);
1144
+ Object.setPrototypeOf(newBuf, Buffer4.prototype);
1145
1145
  return newBuf;
1146
1146
  };
1147
1147
  function checkOffset(offset, ext, length) {
@@ -1150,7 +1150,7 @@ var require_buffer = __commonJS({
1150
1150
  if (offset + ext > length)
1151
1151
  throw new RangeError("Trying to access beyond buffer length");
1152
1152
  }
1153
- Buffer3.prototype.readUintLE = Buffer3.prototype.readUIntLE = function readUIntLE(offset, byteLength2, noAssert) {
1153
+ Buffer4.prototype.readUintLE = Buffer4.prototype.readUIntLE = function readUIntLE(offset, byteLength2, noAssert) {
1154
1154
  offset = offset >>> 0;
1155
1155
  byteLength2 = byteLength2 >>> 0;
1156
1156
  if (!noAssert)
@@ -1163,7 +1163,7 @@ var require_buffer = __commonJS({
1163
1163
  }
1164
1164
  return val;
1165
1165
  };
1166
- Buffer3.prototype.readUintBE = Buffer3.prototype.readUIntBE = function readUIntBE(offset, byteLength2, noAssert) {
1166
+ Buffer4.prototype.readUintBE = Buffer4.prototype.readUIntBE = function readUIntBE(offset, byteLength2, noAssert) {
1167
1167
  offset = offset >>> 0;
1168
1168
  byteLength2 = byteLength2 >>> 0;
1169
1169
  if (!noAssert) {
@@ -1176,37 +1176,37 @@ var require_buffer = __commonJS({
1176
1176
  }
1177
1177
  return val;
1178
1178
  };
1179
- Buffer3.prototype.readUint8 = Buffer3.prototype.readUInt8 = function readUInt8(offset, noAssert) {
1179
+ Buffer4.prototype.readUint8 = Buffer4.prototype.readUInt8 = function readUInt8(offset, noAssert) {
1180
1180
  offset = offset >>> 0;
1181
1181
  if (!noAssert)
1182
1182
  checkOffset(offset, 1, this.length);
1183
1183
  return this[offset];
1184
1184
  };
1185
- Buffer3.prototype.readUint16LE = Buffer3.prototype.readUInt16LE = function readUInt16LE(offset, noAssert) {
1185
+ Buffer4.prototype.readUint16LE = Buffer4.prototype.readUInt16LE = function readUInt16LE(offset, noAssert) {
1186
1186
  offset = offset >>> 0;
1187
1187
  if (!noAssert)
1188
1188
  checkOffset(offset, 2, this.length);
1189
1189
  return this[offset] | this[offset + 1] << 8;
1190
1190
  };
1191
- Buffer3.prototype.readUint16BE = Buffer3.prototype.readUInt16BE = function readUInt16BE(offset, noAssert) {
1191
+ Buffer4.prototype.readUint16BE = Buffer4.prototype.readUInt16BE = function readUInt16BE(offset, noAssert) {
1192
1192
  offset = offset >>> 0;
1193
1193
  if (!noAssert)
1194
1194
  checkOffset(offset, 2, this.length);
1195
1195
  return this[offset] << 8 | this[offset + 1];
1196
1196
  };
1197
- Buffer3.prototype.readUint32LE = Buffer3.prototype.readUInt32LE = function readUInt32LE(offset, noAssert) {
1197
+ Buffer4.prototype.readUint32LE = Buffer4.prototype.readUInt32LE = function readUInt32LE(offset, noAssert) {
1198
1198
  offset = offset >>> 0;
1199
1199
  if (!noAssert)
1200
1200
  checkOffset(offset, 4, this.length);
1201
1201
  return (this[offset] | this[offset + 1] << 8 | this[offset + 2] << 16) + this[offset + 3] * 16777216;
1202
1202
  };
1203
- Buffer3.prototype.readUint32BE = Buffer3.prototype.readUInt32BE = function readUInt32BE(offset, noAssert) {
1203
+ Buffer4.prototype.readUint32BE = Buffer4.prototype.readUInt32BE = function readUInt32BE(offset, noAssert) {
1204
1204
  offset = offset >>> 0;
1205
1205
  if (!noAssert)
1206
1206
  checkOffset(offset, 4, this.length);
1207
1207
  return this[offset] * 16777216 + (this[offset + 1] << 16 | this[offset + 2] << 8 | this[offset + 3]);
1208
1208
  };
1209
- Buffer3.prototype.readBigUInt64LE = defineBigIntMethod(function readBigUInt64LE(offset) {
1209
+ Buffer4.prototype.readBigUInt64LE = defineBigIntMethod(function readBigUInt64LE(offset) {
1210
1210
  offset = offset >>> 0;
1211
1211
  validateNumber(offset, "offset");
1212
1212
  const first = this[offset];
@@ -1218,7 +1218,7 @@ var require_buffer = __commonJS({
1218
1218
  const hi = this[++offset] + this[++offset] * 2 ** 8 + this[++offset] * 2 ** 16 + last * 2 ** 24;
1219
1219
  return BigInt(lo) + (BigInt(hi) << BigInt(32));
1220
1220
  });
1221
- Buffer3.prototype.readBigUInt64BE = defineBigIntMethod(function readBigUInt64BE(offset) {
1221
+ Buffer4.prototype.readBigUInt64BE = defineBigIntMethod(function readBigUInt64BE(offset) {
1222
1222
  offset = offset >>> 0;
1223
1223
  validateNumber(offset, "offset");
1224
1224
  const first = this[offset];
@@ -1230,7 +1230,7 @@ var require_buffer = __commonJS({
1230
1230
  const lo = this[++offset] * 2 ** 24 + this[++offset] * 2 ** 16 + this[++offset] * 2 ** 8 + last;
1231
1231
  return (BigInt(hi) << BigInt(32)) + BigInt(lo);
1232
1232
  });
1233
- Buffer3.prototype.readIntLE = function readIntLE(offset, byteLength2, noAssert) {
1233
+ Buffer4.prototype.readIntLE = function readIntLE(offset, byteLength2, noAssert) {
1234
1234
  offset = offset >>> 0;
1235
1235
  byteLength2 = byteLength2 >>> 0;
1236
1236
  if (!noAssert)
@@ -1246,7 +1246,7 @@ var require_buffer = __commonJS({
1246
1246
  val -= Math.pow(2, 8 * byteLength2);
1247
1247
  return val;
1248
1248
  };
1249
- Buffer3.prototype.readIntBE = function readIntBE(offset, byteLength2, noAssert) {
1249
+ Buffer4.prototype.readIntBE = function readIntBE(offset, byteLength2, noAssert) {
1250
1250
  offset = offset >>> 0;
1251
1251
  byteLength2 = byteLength2 >>> 0;
1252
1252
  if (!noAssert)
@@ -1262,7 +1262,7 @@ var require_buffer = __commonJS({
1262
1262
  val -= Math.pow(2, 8 * byteLength2);
1263
1263
  return val;
1264
1264
  };
1265
- Buffer3.prototype.readInt8 = function readInt8(offset, noAssert) {
1265
+ Buffer4.prototype.readInt8 = function readInt8(offset, noAssert) {
1266
1266
  offset = offset >>> 0;
1267
1267
  if (!noAssert)
1268
1268
  checkOffset(offset, 1, this.length);
@@ -1270,33 +1270,33 @@ var require_buffer = __commonJS({
1270
1270
  return this[offset];
1271
1271
  return (255 - this[offset] + 1) * -1;
1272
1272
  };
1273
- Buffer3.prototype.readInt16LE = function readInt16LE(offset, noAssert) {
1273
+ Buffer4.prototype.readInt16LE = function readInt16LE(offset, noAssert) {
1274
1274
  offset = offset >>> 0;
1275
1275
  if (!noAssert)
1276
1276
  checkOffset(offset, 2, this.length);
1277
1277
  const val = this[offset] | this[offset + 1] << 8;
1278
1278
  return val & 32768 ? val | 4294901760 : val;
1279
1279
  };
1280
- Buffer3.prototype.readInt16BE = function readInt16BE(offset, noAssert) {
1280
+ Buffer4.prototype.readInt16BE = function readInt16BE(offset, noAssert) {
1281
1281
  offset = offset >>> 0;
1282
1282
  if (!noAssert)
1283
1283
  checkOffset(offset, 2, this.length);
1284
1284
  const val = this[offset + 1] | this[offset] << 8;
1285
1285
  return val & 32768 ? val | 4294901760 : val;
1286
1286
  };
1287
- Buffer3.prototype.readInt32LE = function readInt32LE(offset, noAssert) {
1287
+ Buffer4.prototype.readInt32LE = function readInt32LE(offset, noAssert) {
1288
1288
  offset = offset >>> 0;
1289
1289
  if (!noAssert)
1290
1290
  checkOffset(offset, 4, this.length);
1291
1291
  return this[offset] | this[offset + 1] << 8 | this[offset + 2] << 16 | this[offset + 3] << 24;
1292
1292
  };
1293
- Buffer3.prototype.readInt32BE = function readInt32BE(offset, noAssert) {
1293
+ Buffer4.prototype.readInt32BE = function readInt32BE(offset, noAssert) {
1294
1294
  offset = offset >>> 0;
1295
1295
  if (!noAssert)
1296
1296
  checkOffset(offset, 4, this.length);
1297
1297
  return this[offset] << 24 | this[offset + 1] << 16 | this[offset + 2] << 8 | this[offset + 3];
1298
1298
  };
1299
- Buffer3.prototype.readBigInt64LE = defineBigIntMethod(function readBigInt64LE(offset) {
1299
+ Buffer4.prototype.readBigInt64LE = defineBigIntMethod(function readBigInt64LE(offset) {
1300
1300
  offset = offset >>> 0;
1301
1301
  validateNumber(offset, "offset");
1302
1302
  const first = this[offset];
@@ -1307,7 +1307,7 @@ var require_buffer = __commonJS({
1307
1307
  const val = this[offset + 4] + this[offset + 5] * 2 ** 8 + this[offset + 6] * 2 ** 16 + (last << 24);
1308
1308
  return (BigInt(val) << BigInt(32)) + BigInt(first + this[++offset] * 2 ** 8 + this[++offset] * 2 ** 16 + this[++offset] * 2 ** 24);
1309
1309
  });
1310
- Buffer3.prototype.readBigInt64BE = defineBigIntMethod(function readBigInt64BE(offset) {
1310
+ Buffer4.prototype.readBigInt64BE = defineBigIntMethod(function readBigInt64BE(offset) {
1311
1311
  offset = offset >>> 0;
1312
1312
  validateNumber(offset, "offset");
1313
1313
  const first = this[offset];
@@ -1319,39 +1319,39 @@ var require_buffer = __commonJS({
1319
1319
  this[++offset] * 2 ** 16 + this[++offset] * 2 ** 8 + this[++offset];
1320
1320
  return (BigInt(val) << BigInt(32)) + BigInt(this[++offset] * 2 ** 24 + this[++offset] * 2 ** 16 + this[++offset] * 2 ** 8 + last);
1321
1321
  });
1322
- Buffer3.prototype.readFloatLE = function readFloatLE(offset, noAssert) {
1322
+ Buffer4.prototype.readFloatLE = function readFloatLE(offset, noAssert) {
1323
1323
  offset = offset >>> 0;
1324
1324
  if (!noAssert)
1325
1325
  checkOffset(offset, 4, this.length);
1326
1326
  return ieee754.read(this, offset, true, 23, 4);
1327
1327
  };
1328
- Buffer3.prototype.readFloatBE = function readFloatBE(offset, noAssert) {
1328
+ Buffer4.prototype.readFloatBE = function readFloatBE(offset, noAssert) {
1329
1329
  offset = offset >>> 0;
1330
1330
  if (!noAssert)
1331
1331
  checkOffset(offset, 4, this.length);
1332
1332
  return ieee754.read(this, offset, false, 23, 4);
1333
1333
  };
1334
- Buffer3.prototype.readDoubleLE = function readDoubleLE(offset, noAssert) {
1334
+ Buffer4.prototype.readDoubleLE = function readDoubleLE(offset, noAssert) {
1335
1335
  offset = offset >>> 0;
1336
1336
  if (!noAssert)
1337
1337
  checkOffset(offset, 8, this.length);
1338
1338
  return ieee754.read(this, offset, true, 52, 8);
1339
1339
  };
1340
- Buffer3.prototype.readDoubleBE = function readDoubleBE(offset, noAssert) {
1340
+ Buffer4.prototype.readDoubleBE = function readDoubleBE(offset, noAssert) {
1341
1341
  offset = offset >>> 0;
1342
1342
  if (!noAssert)
1343
1343
  checkOffset(offset, 8, this.length);
1344
1344
  return ieee754.read(this, offset, false, 52, 8);
1345
1345
  };
1346
1346
  function checkInt(buf, value, offset, ext, max, min) {
1347
- if (!Buffer3.isBuffer(buf))
1347
+ if (!Buffer4.isBuffer(buf))
1348
1348
  throw new TypeError('"buffer" argument must be a Buffer instance');
1349
1349
  if (value > max || value < min)
1350
1350
  throw new RangeError('"value" argument is out of bounds');
1351
1351
  if (offset + ext > buf.length)
1352
1352
  throw new RangeError("Index out of range");
1353
1353
  }
1354
- Buffer3.prototype.writeUintLE = Buffer3.prototype.writeUIntLE = function writeUIntLE(value, offset, byteLength2, noAssert) {
1354
+ Buffer4.prototype.writeUintLE = Buffer4.prototype.writeUIntLE = function writeUIntLE(value, offset, byteLength2, noAssert) {
1355
1355
  value = +value;
1356
1356
  offset = offset >>> 0;
1357
1357
  byteLength2 = byteLength2 >>> 0;
@@ -1367,7 +1367,7 @@ var require_buffer = __commonJS({
1367
1367
  }
1368
1368
  return offset + byteLength2;
1369
1369
  };
1370
- Buffer3.prototype.writeUintBE = Buffer3.prototype.writeUIntBE = function writeUIntBE(value, offset, byteLength2, noAssert) {
1370
+ Buffer4.prototype.writeUintBE = Buffer4.prototype.writeUIntBE = function writeUIntBE(value, offset, byteLength2, noAssert) {
1371
1371
  value = +value;
1372
1372
  offset = offset >>> 0;
1373
1373
  byteLength2 = byteLength2 >>> 0;
@@ -1383,7 +1383,7 @@ var require_buffer = __commonJS({
1383
1383
  }
1384
1384
  return offset + byteLength2;
1385
1385
  };
1386
- Buffer3.prototype.writeUint8 = Buffer3.prototype.writeUInt8 = function writeUInt8(value, offset, noAssert) {
1386
+ Buffer4.prototype.writeUint8 = Buffer4.prototype.writeUInt8 = function writeUInt8(value, offset, noAssert) {
1387
1387
  value = +value;
1388
1388
  offset = offset >>> 0;
1389
1389
  if (!noAssert)
@@ -1391,7 +1391,7 @@ var require_buffer = __commonJS({
1391
1391
  this[offset] = value & 255;
1392
1392
  return offset + 1;
1393
1393
  };
1394
- Buffer3.prototype.writeUint16LE = Buffer3.prototype.writeUInt16LE = function writeUInt16LE(value, offset, noAssert) {
1394
+ Buffer4.prototype.writeUint16LE = Buffer4.prototype.writeUInt16LE = function writeUInt16LE(value, offset, noAssert) {
1395
1395
  value = +value;
1396
1396
  offset = offset >>> 0;
1397
1397
  if (!noAssert)
@@ -1400,7 +1400,7 @@ var require_buffer = __commonJS({
1400
1400
  this[offset + 1] = value >>> 8;
1401
1401
  return offset + 2;
1402
1402
  };
1403
- Buffer3.prototype.writeUint16BE = Buffer3.prototype.writeUInt16BE = function writeUInt16BE(value, offset, noAssert) {
1403
+ Buffer4.prototype.writeUint16BE = Buffer4.prototype.writeUInt16BE = function writeUInt16BE(value, offset, noAssert) {
1404
1404
  value = +value;
1405
1405
  offset = offset >>> 0;
1406
1406
  if (!noAssert)
@@ -1409,7 +1409,7 @@ var require_buffer = __commonJS({
1409
1409
  this[offset + 1] = value & 255;
1410
1410
  return offset + 2;
1411
1411
  };
1412
- Buffer3.prototype.writeUint32LE = Buffer3.prototype.writeUInt32LE = function writeUInt32LE(value, offset, noAssert) {
1412
+ Buffer4.prototype.writeUint32LE = Buffer4.prototype.writeUInt32LE = function writeUInt32LE(value, offset, noAssert) {
1413
1413
  value = +value;
1414
1414
  offset = offset >>> 0;
1415
1415
  if (!noAssert)
@@ -1420,7 +1420,7 @@ var require_buffer = __commonJS({
1420
1420
  this[offset] = value & 255;
1421
1421
  return offset + 4;
1422
1422
  };
1423
- Buffer3.prototype.writeUint32BE = Buffer3.prototype.writeUInt32BE = function writeUInt32BE(value, offset, noAssert) {
1423
+ Buffer4.prototype.writeUint32BE = Buffer4.prototype.writeUInt32BE = function writeUInt32BE(value, offset, noAssert) {
1424
1424
  value = +value;
1425
1425
  offset = offset >>> 0;
1426
1426
  if (!noAssert)
@@ -1471,13 +1471,13 @@ var require_buffer = __commonJS({
1471
1471
  buf[offset] = hi;
1472
1472
  return offset + 8;
1473
1473
  }
1474
- Buffer3.prototype.writeBigUInt64LE = defineBigIntMethod(function writeBigUInt64LE(value, offset = 0) {
1474
+ Buffer4.prototype.writeBigUInt64LE = defineBigIntMethod(function writeBigUInt64LE(value, offset = 0) {
1475
1475
  return wrtBigUInt64LE(this, value, offset, BigInt(0), BigInt("0xffffffffffffffff"));
1476
1476
  });
1477
- Buffer3.prototype.writeBigUInt64BE = defineBigIntMethod(function writeBigUInt64BE(value, offset = 0) {
1477
+ Buffer4.prototype.writeBigUInt64BE = defineBigIntMethod(function writeBigUInt64BE(value, offset = 0) {
1478
1478
  return wrtBigUInt64BE(this, value, offset, BigInt(0), BigInt("0xffffffffffffffff"));
1479
1479
  });
1480
- Buffer3.prototype.writeIntLE = function writeIntLE(value, offset, byteLength2, noAssert) {
1480
+ Buffer4.prototype.writeIntLE = function writeIntLE(value, offset, byteLength2, noAssert) {
1481
1481
  value = +value;
1482
1482
  offset = offset >>> 0;
1483
1483
  if (!noAssert) {
@@ -1496,7 +1496,7 @@ var require_buffer = __commonJS({
1496
1496
  }
1497
1497
  return offset + byteLength2;
1498
1498
  };
1499
- Buffer3.prototype.writeIntBE = function writeIntBE(value, offset, byteLength2, noAssert) {
1499
+ Buffer4.prototype.writeIntBE = function writeIntBE(value, offset, byteLength2, noAssert) {
1500
1500
  value = +value;
1501
1501
  offset = offset >>> 0;
1502
1502
  if (!noAssert) {
@@ -1515,7 +1515,7 @@ var require_buffer = __commonJS({
1515
1515
  }
1516
1516
  return offset + byteLength2;
1517
1517
  };
1518
- Buffer3.prototype.writeInt8 = function writeInt8(value, offset, noAssert) {
1518
+ Buffer4.prototype.writeInt8 = function writeInt8(value, offset, noAssert) {
1519
1519
  value = +value;
1520
1520
  offset = offset >>> 0;
1521
1521
  if (!noAssert)
@@ -1525,7 +1525,7 @@ var require_buffer = __commonJS({
1525
1525
  this[offset] = value & 255;
1526
1526
  return offset + 1;
1527
1527
  };
1528
- Buffer3.prototype.writeInt16LE = function writeInt16LE(value, offset, noAssert) {
1528
+ Buffer4.prototype.writeInt16LE = function writeInt16LE(value, offset, noAssert) {
1529
1529
  value = +value;
1530
1530
  offset = offset >>> 0;
1531
1531
  if (!noAssert)
@@ -1534,7 +1534,7 @@ var require_buffer = __commonJS({
1534
1534
  this[offset + 1] = value >>> 8;
1535
1535
  return offset + 2;
1536
1536
  };
1537
- Buffer3.prototype.writeInt16BE = function writeInt16BE(value, offset, noAssert) {
1537
+ Buffer4.prototype.writeInt16BE = function writeInt16BE(value, offset, noAssert) {
1538
1538
  value = +value;
1539
1539
  offset = offset >>> 0;
1540
1540
  if (!noAssert)
@@ -1543,7 +1543,7 @@ var require_buffer = __commonJS({
1543
1543
  this[offset + 1] = value & 255;
1544
1544
  return offset + 2;
1545
1545
  };
1546
- Buffer3.prototype.writeInt32LE = function writeInt32LE(value, offset, noAssert) {
1546
+ Buffer4.prototype.writeInt32LE = function writeInt32LE(value, offset, noAssert) {
1547
1547
  value = +value;
1548
1548
  offset = offset >>> 0;
1549
1549
  if (!noAssert)
@@ -1554,7 +1554,7 @@ var require_buffer = __commonJS({
1554
1554
  this[offset + 3] = value >>> 24;
1555
1555
  return offset + 4;
1556
1556
  };
1557
- Buffer3.prototype.writeInt32BE = function writeInt32BE(value, offset, noAssert) {
1557
+ Buffer4.prototype.writeInt32BE = function writeInt32BE(value, offset, noAssert) {
1558
1558
  value = +value;
1559
1559
  offset = offset >>> 0;
1560
1560
  if (!noAssert)
@@ -1567,10 +1567,10 @@ var require_buffer = __commonJS({
1567
1567
  this[offset + 3] = value & 255;
1568
1568
  return offset + 4;
1569
1569
  };
1570
- Buffer3.prototype.writeBigInt64LE = defineBigIntMethod(function writeBigInt64LE(value, offset = 0) {
1570
+ Buffer4.prototype.writeBigInt64LE = defineBigIntMethod(function writeBigInt64LE(value, offset = 0) {
1571
1571
  return wrtBigUInt64LE(this, value, offset, -BigInt("0x8000000000000000"), BigInt("0x7fffffffffffffff"));
1572
1572
  });
1573
- Buffer3.prototype.writeBigInt64BE = defineBigIntMethod(function writeBigInt64BE(value, offset = 0) {
1573
+ Buffer4.prototype.writeBigInt64BE = defineBigIntMethod(function writeBigInt64BE(value, offset = 0) {
1574
1574
  return wrtBigUInt64BE(this, value, offset, -BigInt("0x8000000000000000"), BigInt("0x7fffffffffffffff"));
1575
1575
  });
1576
1576
  function checkIEEE754(buf, value, offset, ext, max, min) {
@@ -1588,10 +1588,10 @@ var require_buffer = __commonJS({
1588
1588
  ieee754.write(buf, value, offset, littleEndian, 23, 4);
1589
1589
  return offset + 4;
1590
1590
  }
1591
- Buffer3.prototype.writeFloatLE = function writeFloatLE(value, offset, noAssert) {
1591
+ Buffer4.prototype.writeFloatLE = function writeFloatLE(value, offset, noAssert) {
1592
1592
  return writeFloat(this, value, offset, true, noAssert);
1593
1593
  };
1594
- Buffer3.prototype.writeFloatBE = function writeFloatBE(value, offset, noAssert) {
1594
+ Buffer4.prototype.writeFloatBE = function writeFloatBE(value, offset, noAssert) {
1595
1595
  return writeFloat(this, value, offset, false, noAssert);
1596
1596
  };
1597
1597
  function writeDouble(buf, value, offset, littleEndian, noAssert) {
@@ -1603,14 +1603,14 @@ var require_buffer = __commonJS({
1603
1603
  ieee754.write(buf, value, offset, littleEndian, 52, 8);
1604
1604
  return offset + 8;
1605
1605
  }
1606
- Buffer3.prototype.writeDoubleLE = function writeDoubleLE(value, offset, noAssert) {
1606
+ Buffer4.prototype.writeDoubleLE = function writeDoubleLE(value, offset, noAssert) {
1607
1607
  return writeDouble(this, value, offset, true, noAssert);
1608
1608
  };
1609
- Buffer3.prototype.writeDoubleBE = function writeDoubleBE(value, offset, noAssert) {
1609
+ Buffer4.prototype.writeDoubleBE = function writeDoubleBE(value, offset, noAssert) {
1610
1610
  return writeDouble(this, value, offset, false, noAssert);
1611
1611
  };
1612
- Buffer3.prototype.copy = function copy(target, targetStart, start, end) {
1613
- if (!Buffer3.isBuffer(target))
1612
+ Buffer4.prototype.copy = function copy(target, targetStart, start, end) {
1613
+ if (!Buffer4.isBuffer(target))
1614
1614
  throw new TypeError("argument should be a Buffer");
1615
1615
  if (!start)
1616
1616
  start = 0;
@@ -1650,7 +1650,7 @@ var require_buffer = __commonJS({
1650
1650
  }
1651
1651
  return len;
1652
1652
  };
1653
- Buffer3.prototype.fill = function fill(val, start, end, encoding) {
1653
+ Buffer4.prototype.fill = function fill(val, start, end, encoding) {
1654
1654
  if (typeof val === "string") {
1655
1655
  if (typeof start === "string") {
1656
1656
  encoding = start;
@@ -1663,7 +1663,7 @@ var require_buffer = __commonJS({
1663
1663
  if (encoding !== void 0 && typeof encoding !== "string") {
1664
1664
  throw new TypeError("encoding must be a string");
1665
1665
  }
1666
- if (typeof encoding === "string" && !Buffer3.isEncoding(encoding)) {
1666
+ if (typeof encoding === "string" && !Buffer4.isEncoding(encoding)) {
1667
1667
  throw new TypeError("Unknown encoding: " + encoding);
1668
1668
  }
1669
1669
  if (val.length === 1) {
@@ -1693,7 +1693,7 @@ var require_buffer = __commonJS({
1693
1693
  this[i] = val;
1694
1694
  }
1695
1695
  } else {
1696
- const bytes = Buffer3.isBuffer(val) ? val : Buffer3.from(val, encoding);
1696
+ const bytes = Buffer4.isBuffer(val) ? val : Buffer4.from(val, encoding);
1697
1697
  const len = bytes.length;
1698
1698
  if (len === 0) {
1699
1699
  throw new TypeError('The value "' + val + '" is invalid for argument "value"');
@@ -7356,12 +7356,12 @@ var require_buffer_list = __commonJS({
7356
7356
  return (hint === "string" ? String : Number)(input);
7357
7357
  }
7358
7358
  var _require = require_buffer();
7359
- var Buffer3 = _require.Buffer;
7359
+ var Buffer4 = _require.Buffer;
7360
7360
  var _require2 = require_util();
7361
7361
  var inspect = _require2.inspect;
7362
7362
  var custom = inspect && inspect.custom || "inspect";
7363
7363
  function copyBuffer(src, target, offset) {
7364
- Buffer3.prototype.copy.call(src, target, offset);
7364
+ Buffer4.prototype.copy.call(src, target, offset);
7365
7365
  }
7366
7366
  module.exports = /* @__PURE__ */ function() {
7367
7367
  function BufferList() {
@@ -7430,8 +7430,8 @@ var require_buffer_list = __commonJS({
7430
7430
  key: "concat",
7431
7431
  value: function concat(n) {
7432
7432
  if (this.length === 0)
7433
- return Buffer3.alloc(0);
7434
- var ret = Buffer3.allocUnsafe(n >>> 0);
7433
+ return Buffer4.alloc(0);
7434
+ var ret = Buffer4.allocUnsafe(n >>> 0);
7435
7435
  var p = this.head;
7436
7436
  var i = 0;
7437
7437
  while (p) {
@@ -7499,7 +7499,7 @@ var require_buffer_list = __commonJS({
7499
7499
  }, {
7500
7500
  key: "_getBuffer",
7501
7501
  value: function _getBuffer(n) {
7502
- var ret = Buffer3.allocUnsafe(n);
7502
+ var ret = Buffer4.allocUnsafe(n);
7503
7503
  var p = this.head;
7504
7504
  var c = 1;
7505
7505
  p.data.copy(ret);
@@ -7849,14 +7849,14 @@ var require_stream_writable = __commonJS({
7849
7849
  deprecate: require_browser2()
7850
7850
  };
7851
7851
  var Stream = require_stream_browser();
7852
- var Buffer3 = require_buffer().Buffer;
7852
+ var Buffer4 = require_buffer().Buffer;
7853
7853
  var OurUint8Array = (typeof global !== "undefined" ? global : typeof window !== "undefined" ? window : typeof self !== "undefined" ? self : {}).Uint8Array || function() {
7854
7854
  };
7855
7855
  function _uint8ArrayToBuffer(chunk) {
7856
- return Buffer3.from(chunk);
7856
+ return Buffer4.from(chunk);
7857
7857
  }
7858
7858
  function _isUint8Array(obj) {
7859
- return Buffer3.isBuffer(obj) || obj instanceof OurUint8Array;
7859
+ return Buffer4.isBuffer(obj) || obj instanceof OurUint8Array;
7860
7860
  }
7861
7861
  var destroyImpl = require_destroy();
7862
7862
  var _require = require_state();
@@ -7993,7 +7993,7 @@ var require_stream_writable = __commonJS({
7993
7993
  var state = this._writableState;
7994
7994
  var ret = false;
7995
7995
  var isBuf = !state.objectMode && _isUint8Array(chunk);
7996
- if (isBuf && !Buffer3.isBuffer(chunk)) {
7996
+ if (isBuf && !Buffer4.isBuffer(chunk)) {
7997
7997
  chunk = _uint8ArrayToBuffer(chunk);
7998
7998
  }
7999
7999
  if (typeof encoding === "function") {
@@ -8044,7 +8044,7 @@ var require_stream_writable = __commonJS({
8044
8044
  });
8045
8045
  function decodeChunk(state, chunk, encoding) {
8046
8046
  if (!state.objectMode && state.decodeStrings !== false && typeof chunk === "string") {
8047
- chunk = Buffer3.from(chunk, encoding);
8047
+ chunk = Buffer4.from(chunk, encoding);
8048
8048
  }
8049
8049
  return chunk;
8050
8050
  }
@@ -8441,34 +8441,34 @@ var require_safe_buffer = __commonJS({
8441
8441
  init_buffer();
8442
8442
  init_setInterval();
8443
8443
  var buffer = require_buffer();
8444
- var Buffer3 = buffer.Buffer;
8444
+ var Buffer4 = buffer.Buffer;
8445
8445
  function copyProps(src, dst) {
8446
8446
  for (var key in src) {
8447
8447
  dst[key] = src[key];
8448
8448
  }
8449
8449
  }
8450
- if (Buffer3.from && Buffer3.alloc && Buffer3.allocUnsafe && Buffer3.allocUnsafeSlow) {
8450
+ if (Buffer4.from && Buffer4.alloc && Buffer4.allocUnsafe && Buffer4.allocUnsafeSlow) {
8451
8451
  module.exports = buffer;
8452
8452
  } else {
8453
8453
  copyProps(buffer, exports);
8454
8454
  exports.Buffer = SafeBuffer;
8455
8455
  }
8456
8456
  function SafeBuffer(arg, encodingOrOffset, length) {
8457
- return Buffer3(arg, encodingOrOffset, length);
8457
+ return Buffer4(arg, encodingOrOffset, length);
8458
8458
  }
8459
- SafeBuffer.prototype = Object.create(Buffer3.prototype);
8460
- copyProps(Buffer3, SafeBuffer);
8459
+ SafeBuffer.prototype = Object.create(Buffer4.prototype);
8460
+ copyProps(Buffer4, SafeBuffer);
8461
8461
  SafeBuffer.from = function(arg, encodingOrOffset, length) {
8462
8462
  if (typeof arg === "number") {
8463
8463
  throw new TypeError("Argument must not be a number");
8464
8464
  }
8465
- return Buffer3(arg, encodingOrOffset, length);
8465
+ return Buffer4(arg, encodingOrOffset, length);
8466
8466
  };
8467
8467
  SafeBuffer.alloc = function(size, fill, encoding) {
8468
8468
  if (typeof size !== "number") {
8469
8469
  throw new TypeError("Argument must be a number");
8470
8470
  }
8471
- var buf = Buffer3(size);
8471
+ var buf = Buffer4(size);
8472
8472
  if (fill !== void 0) {
8473
8473
  if (typeof encoding === "string") {
8474
8474
  buf.fill(fill, encoding);
@@ -8484,7 +8484,7 @@ var require_safe_buffer = __commonJS({
8484
8484
  if (typeof size !== "number") {
8485
8485
  throw new TypeError("Argument must be a number");
8486
8486
  }
8487
- return Buffer3(size);
8487
+ return Buffer4(size);
8488
8488
  };
8489
8489
  SafeBuffer.allocUnsafeSlow = function(size) {
8490
8490
  if (typeof size !== "number") {
@@ -8503,8 +8503,8 @@ var require_string_decoder = __commonJS({
8503
8503
  init_setImmediate();
8504
8504
  init_buffer();
8505
8505
  init_setInterval();
8506
- var Buffer3 = require_safe_buffer().Buffer;
8507
- var isEncoding = Buffer3.isEncoding || function(encoding) {
8506
+ var Buffer4 = require_safe_buffer().Buffer;
8507
+ var isEncoding = Buffer4.isEncoding || function(encoding) {
8508
8508
  encoding = "" + encoding;
8509
8509
  switch (encoding && encoding.toLowerCase()) {
8510
8510
  case "hex":
@@ -8554,7 +8554,7 @@ var require_string_decoder = __commonJS({
8554
8554
  }
8555
8555
  function normalizeEncoding(enc) {
8556
8556
  var nenc = _normalizeEncoding(enc);
8557
- if (typeof nenc !== "string" && (Buffer3.isEncoding === isEncoding || !isEncoding(enc)))
8557
+ if (typeof nenc !== "string" && (Buffer4.isEncoding === isEncoding || !isEncoding(enc)))
8558
8558
  throw new Error("Unknown encoding: " + enc);
8559
8559
  return nenc || enc;
8560
8560
  }
@@ -8584,7 +8584,7 @@ var require_string_decoder = __commonJS({
8584
8584
  }
8585
8585
  this.lastNeed = 0;
8586
8586
  this.lastTotal = 0;
8587
- this.lastChar = Buffer3.allocUnsafe(nb);
8587
+ this.lastChar = Buffer4.allocUnsafe(nb);
8588
8588
  }
8589
8589
  StringDecoder.prototype.write = function(buf) {
8590
8590
  if (buf.length === 0)
@@ -9082,14 +9082,14 @@ var require_stream_readable = __commonJS({
9082
9082
  return emitter.listeners(type).length;
9083
9083
  };
9084
9084
  var Stream = require_stream_browser();
9085
- var Buffer3 = require_buffer().Buffer;
9085
+ var Buffer4 = require_buffer().Buffer;
9086
9086
  var OurUint8Array = (typeof global !== "undefined" ? global : typeof window !== "undefined" ? window : typeof self !== "undefined" ? self : {}).Uint8Array || function() {
9087
9087
  };
9088
9088
  function _uint8ArrayToBuffer(chunk) {
9089
- return Buffer3.from(chunk);
9089
+ return Buffer4.from(chunk);
9090
9090
  }
9091
9091
  function _isUint8Array(obj) {
9092
- return Buffer3.isBuffer(obj) || obj instanceof OurUint8Array;
9092
+ return Buffer4.isBuffer(obj) || obj instanceof OurUint8Array;
9093
9093
  }
9094
9094
  var debugUtil = require_util();
9095
9095
  var debug;
@@ -9207,7 +9207,7 @@ var require_stream_readable = __commonJS({
9207
9207
  if (typeof chunk === "string") {
9208
9208
  encoding = encoding || state.defaultEncoding;
9209
9209
  if (encoding !== state.encoding) {
9210
- chunk = Buffer3.from(chunk, encoding);
9210
+ chunk = Buffer4.from(chunk, encoding);
9211
9211
  encoding = "";
9212
9212
  }
9213
9213
  skipChunkCheck = true;
@@ -9233,7 +9233,7 @@ var require_stream_readable = __commonJS({
9233
9233
  if (er) {
9234
9234
  errorOrDestroy(stream, er);
9235
9235
  } else if (state.objectMode || chunk && chunk.length > 0) {
9236
- if (typeof chunk !== "string" && !state.objectMode && Object.getPrototypeOf(chunk) !== Buffer3.prototype) {
9236
+ if (typeof chunk !== "string" && !state.objectMode && Object.getPrototypeOf(chunk) !== Buffer4.prototype) {
9237
9237
  chunk = _uint8ArrayToBuffer(chunk);
9238
9238
  }
9239
9239
  if (addToFront) {
@@ -13026,10 +13026,11 @@ async function req(input, ...requestOptions) {
13026
13026
  if (fb === null || fb === void 0 ? void 0 : fb.updateOptions)
13027
13027
  options2 = await fb.updateOptions({ options: options2 });
13028
13028
  const requestController = new AbortController2();
13029
- const requestTimer = options2.requestTimeout ? setTimeout(() => {
13029
+ const timeout = calculateTimeout(options2.requestTimeout, options2.body);
13030
+ const requestTimer = timeout ? setTimeout(() => {
13030
13031
  abortCode !== null && abortCode !== void 0 ? abortCode : abortCode = AbortCode.requestTimeout;
13031
13032
  requestController.abort();
13032
- }, options2.requestTimeout) : null;
13033
+ }, timeout) : null;
13033
13034
  if (connectionController.signal.aborted)
13034
13035
  requestController.abort();
13035
13036
  connectionController.signal.onabort = () => requestController.abort();
@@ -13212,7 +13213,36 @@ function afterError({ error, options, ...rest }) {
13212
13213
  return await ((_a2 = hooks.afterError) === null || _a2 === void 0 ? void 0 : _a2.call(hooks, { error: error2, options, ...rest })) || error2;
13213
13214
  }, error);
13214
13215
  }
13215
- var utils28;
13216
+ function calculateTimeout(requestTimeout, body) {
13217
+ if (!requestTimeout)
13218
+ return requestTimeout;
13219
+ if (utils28.types.isNumber(requestTimeout))
13220
+ return requestTimeout;
13221
+ if (utils28.types.isPlainObject(requestTimeout)) {
13222
+ const { base, perByte } = requestTimeout;
13223
+ if (utils28.types.isString(body))
13224
+ return base + perByte * body.length;
13225
+ if (utils28.types.isArray(body))
13226
+ return base + perByte * body.reduce((acc, item) => acc + item.length, 0);
13227
+ if (utils28.types.instanceOf(body, ArrayBuffer))
13228
+ return base + perByte * body.byteLength;
13229
+ if (global.Blob && utils28.types.instanceOf(body, Blob))
13230
+ return base + perByte * body.size;
13231
+ if (global.Buffer && utils28.types.instanceOf(body, import_buffer65.Buffer))
13232
+ return base + perByte * body.byteLength;
13233
+ try {
13234
+ return base + perByte * JSON.stringify(body).length;
13235
+ } catch (error) {
13236
+ try {
13237
+ return base + perByte * String(body).length;
13238
+ } catch (error2) {
13239
+ return base + perByte * 1;
13240
+ }
13241
+ }
13242
+ }
13243
+ return requestTimeout;
13244
+ }
13245
+ var utils28, import_buffer65;
13216
13246
  var init_req = __esm({
13217
13247
  "../req/dist/req.js"() {
13218
13248
  "use strict";
@@ -13226,6 +13256,7 @@ var init_req = __esm({
13226
13256
  init_req_errors();
13227
13257
  init_fetch_browser();
13228
13258
  utils28 = __toESM(require_browser3(), 1);
13259
+ import_buffer65 = __toESM(require_buffer(), 1);
13229
13260
  }
13230
13261
  });
13231
13262
 
@@ -20346,7 +20377,7 @@ var require_lib = __commonJS({
20346
20377
  init_setImmediate();
20347
20378
  init_buffer();
20348
20379
  init_setInterval();
20349
- var Buffer3 = require_buffer().Buffer;
20380
+ var Buffer4 = require_buffer().Buffer;
20350
20381
  var Transform = require_stream_browserify().Transform;
20351
20382
  var binding = require_binding();
20352
20383
  var util = require_util();
@@ -20525,7 +20556,7 @@ var require_lib = __commonJS({
20525
20556
  if (nread >= kMaxLength) {
20526
20557
  err = new RangeError(kRangeErrorMessage);
20527
20558
  } else {
20528
- buf = Buffer3.concat(buffers, nread);
20559
+ buf = Buffer4.concat(buffers, nread);
20529
20560
  }
20530
20561
  buffers = [];
20531
20562
  engine.close();
@@ -20534,8 +20565,8 @@ var require_lib = __commonJS({
20534
20565
  }
20535
20566
  function zlibBufferSync(engine, buffer) {
20536
20567
  if (typeof buffer === "string")
20537
- buffer = Buffer3.from(buffer);
20538
- if (!Buffer3.isBuffer(buffer))
20568
+ buffer = Buffer4.from(buffer);
20569
+ if (!Buffer4.isBuffer(buffer))
20539
20570
  throw new TypeError("Not a string or buffer");
20540
20571
  var flushFlag = engine._finishFlushFlag;
20541
20572
  return engine._processChunk(buffer, flushFlag);
@@ -20617,7 +20648,7 @@ var require_lib = __commonJS({
20617
20648
  }
20618
20649
  }
20619
20650
  if (opts.dictionary) {
20620
- if (!Buffer3.isBuffer(opts.dictionary)) {
20651
+ if (!Buffer4.isBuffer(opts.dictionary)) {
20621
20652
  throw new Error("Invalid dictionary: it should be a Buffer instance");
20622
20653
  }
20623
20654
  }
@@ -20639,7 +20670,7 @@ var require_lib = __commonJS({
20639
20670
  if (typeof opts.strategy === "number")
20640
20671
  strategy = opts.strategy;
20641
20672
  this._handle.init(opts.windowBits || exports.Z_DEFAULT_WINDOWBITS, level, opts.memLevel || exports.Z_DEFAULT_MEMLEVEL, strategy, opts.dictionary);
20642
- this._buffer = Buffer3.allocUnsafe(this._chunkSize);
20673
+ this._buffer = Buffer4.allocUnsafe(this._chunkSize);
20643
20674
  this._offset = 0;
20644
20675
  this._level = level;
20645
20676
  this._strategy = strategy;
@@ -20681,7 +20712,7 @@ var require_lib = __commonJS({
20681
20712
  return this._handle.reset();
20682
20713
  };
20683
20714
  Zlib.prototype._flush = function(callback) {
20684
- this._transform(Buffer3.alloc(0), "", callback);
20715
+ this._transform(Buffer4.alloc(0), "", callback);
20685
20716
  };
20686
20717
  Zlib.prototype.flush = function(kind, callback) {
20687
20718
  var _this2 = this;
@@ -20704,7 +20735,7 @@ var require_lib = __commonJS({
20704
20735
  }
20705
20736
  } else {
20706
20737
  this._flushFlag = kind;
20707
- this.write(Buffer3.alloc(0), "", callback);
20738
+ this.write(Buffer4.alloc(0), "", callback);
20708
20739
  }
20709
20740
  };
20710
20741
  Zlib.prototype.close = function(callback) {
@@ -20727,7 +20758,7 @@ var require_lib = __commonJS({
20727
20758
  var ws = this._writableState;
20728
20759
  var ending = ws.ending || ws.ended;
20729
20760
  var last = ending && (!chunk || ws.length === chunk.length);
20730
- if (chunk !== null && !Buffer3.isBuffer(chunk))
20761
+ if (chunk !== null && !Buffer4.isBuffer(chunk))
20731
20762
  return cb(new Error("invalid input"));
20732
20763
  if (!this._handle)
20733
20764
  return cb(new Error("zlib binding closed"));
@@ -20778,7 +20809,7 @@ var require_lib = __commonJS({
20778
20809
  _close(this);
20779
20810
  throw new RangeError(kRangeErrorMessage);
20780
20811
  }
20781
- var buf = Buffer3.concat(buffers, nread);
20812
+ var buf = Buffer4.concat(buffers, nread);
20782
20813
  _close(this);
20783
20814
  return buf;
20784
20815
  }
@@ -20821,7 +20852,7 @@ var require_lib = __commonJS({
20821
20852
  if (availOutAfter === 0 || self2._offset >= self2._chunkSize) {
20822
20853
  availOutBefore = self2._chunkSize;
20823
20854
  self2._offset = 0;
20824
- self2._buffer = Buffer3.allocUnsafe(self2._chunkSize);
20855
+ self2._buffer = Buffer4.allocUnsafe(self2._chunkSize);
20825
20856
  }
20826
20857
  if (availOutAfter === 0) {
20827
20858
  inOff += availInBefore - availInAfter;
@@ -28814,10 +28845,10 @@ var require_heartbeat = __commonJS({
28814
28845
  Object.defineProperty(exports, "__esModule", { value: true });
28815
28846
  exports.makeHeartbeat = void 0;
28816
28847
  var utils34 = __importStar(require_browser3());
28848
+ var processId = utils34.general.guid();
28849
+ var isStarted = false;
28817
28850
  function makeHeartbeat({ requests, logger: mainLogger }) {
28818
28851
  const logger = mainLogger.extend(mainLogger, { tags: [`heartbeat-base-${utils34.general.shortid()}`] });
28819
- const processId = utils34.general.guid();
28820
- let isStarted = false;
28821
28852
  return {
28822
28853
  processId,
28823
28854
  async startPeriodicHeartbeatMessaging(settings) {
@@ -35117,7 +35148,7 @@ ${l2}`}`, { bundledCss: i2, unfetchedResources: u2 };
35117
35148
  return i4 && (E3.shadowRoot = i4), E3;
35118
35149
  }
35119
35150
  }(t4);
35120
- i2(c2.doCaptureDoc), u2(c2.waitForImages), await Promise.all(l2), i2(c2.waitForImages), T2.version = "1.3.0", T2.scriptVersion = "11.2.7";
35151
+ i2(c2.doCaptureDoc), u2(c2.waitForImages), await Promise.all(l2), i2(c2.waitForImages), T2.version = "1.3.0", T2.scriptVersion = "11.2.8";
35121
35152
  const N2 = f2.length ? `${f2.join("\n")}
35122
35153
  ` : "", b2 = d2.size ? `${Array.from(d2).join("\n")}
35123
35154
  ` : "", S2 = JSON.stringify({ separator: p2, cssStartToken: h2, cssEndToken: h2, iframeStartToken: `"${m2}`, iframeEndToken: `${m2}"` });
@@ -41529,7 +41560,7 @@ var require_processPagePollCjs = __commonJS({
41529
41560
  return t4;
41530
41561
  };
41531
41562
  const fu = iu, gu = _i, bu = ne, yu = bt, ku = ou, wu = uu, vu = zt, xu = du, Su = as, Cu = Ds, _u = f, Au = I, zu = j, { tokenize: Lu, parse: Tu, generate: Eu, lexer: Nu, createLexer: Ru, walk: Du, find: Pu, findLast: Iu, findAll: Ou, toPlainObject: Bu, fromPlainObject: Fu, fork: Uu } = fu;
41532
- p.version = "1.1.2".version, p.createSyntax = gu, p.List = bu.List, p.Lexer = yu.Lexer, p.definitionSyntax = ku, p.clone = wu.clone, p.isCustomProperty = vu.isCustomProperty, p.keyword = vu.keyword, p.property = vu.property, p.vendorPrefix = vu.vendorPrefix, p.ident = xu, p.string = Su, p.url = Cu, p.tokenTypes = _u, p.tokenNames = Au, p.TokenStream = zu.TokenStream, p.createLexer = Ru, p.find = Pu, p.findAll = Ou, p.findLast = Iu, p.fork = Uu, p.fromPlainObject = Fu, p.generate = Eu, p.lexer = Nu, p.parse = Tu, p.toPlainObject = Bu, p.tokenize = Lu, p.walk = Du;
41563
+ p.version = "1.1.3".version, p.createSyntax = gu, p.List = bu.List, p.Lexer = yu.Lexer, p.definitionSyntax = ku, p.clone = wu.clone, p.isCustomProperty = vu.isCustomProperty, p.keyword = vu.keyword, p.property = vu.property, p.vendorPrefix = vu.vendorPrefix, p.ident = xu, p.string = Su, p.url = Cu, p.tokenTypes = _u, p.tokenNames = Au, p.TokenStream = zu.TokenStream, p.createLexer = Ru, p.find = Pu, p.findAll = Ou, p.findLast = Iu, p.fork = Uu, p.fromPlainObject = Fu, p.generate = Eu, p.lexer = Nu, p.parse = Tu, p.toPlainObject = Bu, p.tokenize = Lu, p.walk = Du;
41533
41564
  var Mu = {};
41534
41565
  const ju = /* @__PURE__ */ new Map([["background", /* @__PURE__ */ new Set(["background-color", "background-position", "background-position-x", "background-position-y", "background-size", "background-repeat", "background-repeat-x", "background-repeat-y", "background-clip", "background-origin", "background-attachment", "background-image"])], ["background-position", /* @__PURE__ */ new Set(["background-position-x", "background-position-y"])], ["background-repeat", /* @__PURE__ */ new Set(["background-repeat-x", "background-repeat-y"])], ["font", /* @__PURE__ */ new Set(["font-style", "font-variant-caps", "font-weight", "font-stretch", "font-size", "line-height", "font-family", "font-size-adjust", "font-kerning", "font-optical-sizing", "font-variant-alternates", "font-variant-east-asian", "font-variant-ligatures", "font-variant-numeric", "font-variant-position", "font-language-override", "font-feature-settings", "font-variation-settings"])], ["font-variant", /* @__PURE__ */ new Set(["font-variant-caps", "font-variant-numeric", "font-variant-alternates", "font-variant-ligatures", "font-variant-east-asian"])], ["outline", /* @__PURE__ */ new Set(["outline-width", "outline-style", "outline-color"])], ["border", /* @__PURE__ */ new Set(["border-top-width", "border-right-width", "border-bottom-width", "border-left-width", "border-top-style", "border-right-style", "border-bottom-style", "border-left-style", "border-top-color", "border-right-color", "border-bottom-color", "border-left-color", "border-image-source", "border-image-slice", "border-image-width", "border-image-outset", "border-image-repeat"])], ["border-width", /* @__PURE__ */ new Set(["border-top-width", "border-right-width", "border-bottom-width", "border-left-width"])], ["border-style", /* @__PURE__ */ new Set(["border-top-style", "border-right-style", "border-bottom-style", "border-left-style"])], ["border-color", /* @__PURE__ */ new Set(["border-top-color", "border-right-color", "border-bottom-color", "border-left-color"])], ["border-block", /* @__PURE__ */ new Set(["border-block-start-width", "border-block-end-width", "border-block-start-style", "border-block-end-style", "border-block-start-color", "border-block-end-color"])], ["border-block-start", /* @__PURE__ */ new Set(["border-block-start-width", "border-block-start-style", "border-block-start-color"])], ["border-block-end", /* @__PURE__ */ new Set(["border-block-end-width", "border-block-end-style", "border-block-end-color"])], ["border-inline", /* @__PURE__ */ new Set(["border-inline-start-width", "border-inline-end-width", "border-inline-start-style", "border-inline-end-style", "border-inline-start-color", "border-inline-end-color"])], ["border-inline-start", /* @__PURE__ */ new Set(["border-inline-start-width", "border-inline-start-style", "border-inline-start-color"])], ["border-inline-end", /* @__PURE__ */ new Set(["border-inline-end-width", "border-inline-end-style", "border-inline-end-color"])], ["border-image", /* @__PURE__ */ new Set(["border-image-source", "border-image-slice", "border-image-width", "border-image-outset", "border-image-repeat"])], ["border-radius", /* @__PURE__ */ new Set(["border-top-left-radius", "border-top-right-radius", "border-bottom-right-radius", "border-bottom-left-radius"])], ["padding", /* @__PURE__ */ new Set(["padding-top", "padding-right", "padding-bottom", "padding-left"])], ["padding-block", /* @__PURE__ */ new Set(["padding-block-start", "padding-block-end"])], ["padding-inline", /* @__PURE__ */ new Set(["padding-inline-start", "padding-inline-end"])], ["margin", /* @__PURE__ */ new Set(["margin-top", "margin-right", "margin-bottom", "margin-left"])], ["margin-block", /* @__PURE__ */ new Set(["margin-block-start", "margin-block-end"])], ["margin-inline", /* @__PURE__ */ new Set(["margin-inline-start", "margin-inline-end"])], ["inset", /* @__PURE__ */ new Set(["top", "right", "bottom", "left"])], ["inset-block", /* @__PURE__ */ new Set(["inset-block-start", "inset-block-end"])], ["inset-inline", /* @__PURE__ */ new Set(["inset-inline-start", "inset-inline-end"])], ["flex", /* @__PURE__ */ new Set(["flex-grow", "flex-shrink", "flex-basis"])], ["flex-flow", /* @__PURE__ */ new Set(["flex-direction", "flex-wrap"])], ["gap", /* @__PURE__ */ new Set(["row-gap", "column-gap"])], ["transition", /* @__PURE__ */ new Set(["transition-duration", "transition-timing-function", "transition-delay", "transition-property"])], ["grid", /* @__PURE__ */ new Set(["grid-template-rows", "grid-template-columns", "grid-template-areas", "grid-auto-flow", "grid-auto-columns", "grid-auto-rows"])], ["grid-template", /* @__PURE__ */ new Set(["grid-template-rows", "grid-template-columns", "grid-template-areas"])], ["grid-row", /* @__PURE__ */ new Set(["grid-row-start", "grid-row-end"])], ["grid-column", /* @__PURE__ */ new Set(["grid-column-start", "grid-column-end"])], ["grid-gap", /* @__PURE__ */ new Set(["grid-row-gap", "grid-column-gap", "row-gap", "column-gap"])], ["place-content", /* @__PURE__ */ new Set(["align-content", "justify-content"])], ["place-items", /* @__PURE__ */ new Set(["align-items", "justify-items"])], ["place-self", /* @__PURE__ */ new Set(["align-self", "justify-self"])], ["columns", /* @__PURE__ */ new Set(["column-width", "column-count"])], ["column-rule", /* @__PURE__ */ new Set(["column-rule-width", "column-rule-style", "column-rule-color"])], ["list-style", /* @__PURE__ */ new Set(["list-style-type", "list-style-position", "list-style-image"])], ["offset", /* @__PURE__ */ new Set(["offset-position", "offset-path", "offset-distance", "offset-rotate", "offset-anchor"])], ["overflow", /* @__PURE__ */ new Set(["overflow-x", "overflow-y"])], ["overscroll-behavior", /* @__PURE__ */ new Set(["overscroll-behavior-x", "overscroll-behavior-y"])], ["scroll-margin", /* @__PURE__ */ new Set(["scroll-margin-top", "scroll-margin-right", "scroll-margin-bottom", "scroll-margin-left"])], ["scroll-padding", /* @__PURE__ */ new Set(["scroll-padding-top", "scroll-padding-right", "scroll-padding-bottom", "scroll-padding-left"])], ["text-decoration", /* @__PURE__ */ new Set(["text-decoration-line", "text-decoration-style", "text-decoration-color", "text-decoration-thickness"])], ["text-stroke", /* @__PURE__ */ new Set(["text-stroke-color", "text-stroke-width"])], ["animation", /* @__PURE__ */ new Set(["animation-duration", "animation-timing-function", "animation-delay", "animation-iteration-count", "animation-direction", "animation-fill-mode", "animation-play-state", "animation-name", "animation-timeline", "animation-range-start", "animation-range-end"])], ["mask", /* @__PURE__ */ new Set(["mask-image", "mask-mode", "mask-repeat-x", "mask-repeat-y", "mask-position-x", "mask-position-y", "mask-clip", "mask-origin", "mask-size", "mask-composite"])], ["mask-repeat", /* @__PURE__ */ new Set(["mask-repeat-x", "mask-repeat-y"])], ["mask-position", /* @__PURE__ */ new Set(["mask-position-x", "mask-position-y"])], ["perspective-origin", /* @__PURE__ */ new Set(["perspective-origin-x", "perspective-origin-y"])], ["transform-origin", /* @__PURE__ */ new Set(["transform-origin-x", "transform-origin-y", "transform-origin-z"])], ["white-space", /* @__PURE__ */ new Set(["white-space-collapse", "text-wrap"])]]), qu = new Map([Vu("animation", "moz"), Vu("border-image", "moz"), Vu("mask", "moz"), Vu("transition", "moz"), Vu("columns", "moz"), Vu("text-stroke", "moz"), Vu("column-rule", "moz"), ["-moz-border-end", /* @__PURE__ */ new Set(["-moz-border-end-color", "-moz-border-end-style", "-moz-border-end-width"])], ["-moz-border-start", /* @__PURE__ */ new Set(["-moz-border-start-color", "-moz-border-start-style", "-moz-border-start-width"])], ["-moz-outline-radius", /* @__PURE__ */ new Set(["-moz-outline-radius-topleft", "-moz-outline-radius-topright", "-moz-outline-radius-bottomright", "-moz-outline-radius-bottomleft"])]]), Wu = new Map([Vu("animation", "webkit"), Vu("border-radius", "webkit"), Vu("column-rule", "webkit"), Vu("columns", "webkit"), Vu("flex", "webkit"), Vu("flex-flow", "webkit"), Vu("mask", "webkit"), Vu("text-stroke", "webkit"), Vu("perspective-origin", "webkit"), Vu("transform-origin", "webkit"), Vu("transition", "webkit"), ["-webkit-border-start", /* @__PURE__ */ new Set(["-webkit-border-start-color", "-webkit-border-start-style", "-webkit-border-start-width"])], ["-webkit-border-before", /* @__PURE__ */ new Set(["-webkit-border-before-color", "-webkit-border-before-style", "-webkit-border-before-width"])], ["-webkit-border-end", /* @__PURE__ */ new Set(["-webkit-border-end-color", "-webkit-border-end-style", "-webkit-border-end-width"])], ["-webkit-border-after", /* @__PURE__ */ new Set(["-webkit-border-after-color", "-webkit-border-after-style", "-webkit-border-after-width"])]]), Hu = ["background-position", "background-repeat", "text-decoration"];
41535
41566
  qu.forEach((e4, t4) => ju.set(t4, e4)), Wu.forEach((e4, t4) => ju.set(t4, e4));
@@ -43535,7 +43566,7 @@ creating temp style for access.`), r2 = wf(e4);
43535
43566
  function R2(e5) {
43536
43567
  return t5.defaultView && t5.defaultView.frameElement && t5.defaultView.frameElement.getAttribute(e5);
43537
43568
  }
43538
- }(t4).then((e4) => (u2("processPage end"), e4.scriptVersion = "4.11.1", e4));
43569
+ }(t4).then((e4) => (u2("processPage end"), e4.scriptVersion = "4.11.2", e4));
43539
43570
  };
43540
43571
  window[ig] = window[ig] || {};
43541
43572
  const sg = rg(ag, window[ig], og);
@@ -44341,14 +44372,6 @@ var require_take_snapshots2 = __commonJS({
44341
44372
  throw new abort_error_1.AbortError('Command "takeSnapshots" was called after test was already aborted');
44342
44373
  }
44343
44374
  const uniqueEnvironments = (0, uniquify_environments_1.uniquifyEnvironments)((_a = settings.environments) !== null && _a !== void 0 ? _a : defaultEnvironments);
44344
- const ufgClient = await core.getUFGClient({
44345
- settings: {
44346
- ...account.ufgServer,
44347
- eyesServerUrl: account.eyesServer.eyesServerUrl,
44348
- apiKey: account.eyesServer.apiKey
44349
- },
44350
- logger
44351
- });
44352
44375
  const driver = spec && target ? await (0, driver_1.makeDriver)({ spec, driver: target, logger }) : null;
44353
44376
  if (!driver)
44354
44377
  throw new Error("Cannot create check snapshot without a driver");
@@ -44365,6 +44388,14 @@ var require_take_snapshots2 = __commonJS({
44365
44388
  });
44366
44389
  let snapshots;
44367
44390
  if (environment.isWeb) {
44391
+ const ufgClient = await core.getUFGClient({
44392
+ settings: {
44393
+ ...account.ufgServer,
44394
+ eyesServerUrl: account.eyesServer.eyesServerUrl,
44395
+ apiKey: account.eyesServer.apiKey
44396
+ },
44397
+ logger
44398
+ });
44368
44399
  snapshots = await (0, take_dom_snapshots_1.takeDomSnapshots)({
44369
44400
  driver,
44370
44401
  settings: {
@@ -44475,7 +44506,10 @@ var require_req_ufg = __commonJS({
44475
44506
  proxy: settings.proxy,
44476
44507
  useDnsCache: settings.useDnsCache,
44477
44508
  connectionTimeout: (_a = settings.connectionTimeout) !== null && _a !== void 0 ? _a : 3e5,
44478
- requestTimeout: 3e4,
44509
+ requestTimeout: {
44510
+ base: 3e4,
44511
+ perByte: 0.01
44512
+ },
44479
44513
  retry: {
44480
44514
  limit: 5,
44481
44515
  timeout: 200,
@@ -44680,7 +44714,13 @@ var require_requests3 = __commonJS({
44680
44714
  });
44681
44715
  const results = await response.json().then((results2) => {
44682
44716
  return results2.map((result) => {
44683
- return { jobId: result.jobId, renderId: result.renderId, status: result.renderStatus };
44717
+ return {
44718
+ jobId: result.jobId,
44719
+ renderId: result.renderId,
44720
+ status: result.renderStatus,
44721
+ needMoreResources: result.needMoreResources,
44722
+ needMoreDom: result.needMoreDom
44723
+ };
44684
44724
  });
44685
44725
  });
44686
44726
  logger2.log('Request "startRenders" finished successfully with body', results);
@@ -44902,7 +44942,7 @@ var require_browser7 = __commonJS({
44902
44942
  function oldBrowser() {
44903
44943
  throw new Error("Secure random number generation is not supported by this browser.\nUse Chrome, Firefox or Internet Explorer 11");
44904
44944
  }
44905
- var Buffer3 = require_safe_buffer().Buffer;
44945
+ var Buffer4 = require_safe_buffer().Buffer;
44906
44946
  var crypto = global.crypto || global.msCrypto;
44907
44947
  if (crypto && crypto.getRandomValues) {
44908
44948
  module.exports = randomBytes;
@@ -44912,7 +44952,7 @@ var require_browser7 = __commonJS({
44912
44952
  function randomBytes(size, cb) {
44913
44953
  if (size > MAX_UINT32)
44914
44954
  throw new RangeError("requested too many random bytes");
44915
- var bytes = Buffer3.allocUnsafe(size);
44955
+ var bytes = Buffer4.allocUnsafe(size);
44916
44956
  if (size > 0) {
44917
44957
  if (size > MAX_BYTES) {
44918
44958
  for (var generated = 0; generated < size; generated += MAX_BYTES) {
@@ -44959,17 +44999,17 @@ var require_hash_base = __commonJS({
44959
44999
  init_setImmediate();
44960
45000
  init_buffer();
44961
45001
  init_setInterval();
44962
- var Buffer3 = require_safe_buffer().Buffer;
45002
+ var Buffer4 = require_safe_buffer().Buffer;
44963
45003
  var Transform = require_readable_browser().Transform;
44964
45004
  var inherits = require_inherits_browser();
44965
45005
  function throwIfNotStringOrBuffer(val, prefix) {
44966
- if (!Buffer3.isBuffer(val) && typeof val !== "string") {
45006
+ if (!Buffer4.isBuffer(val) && typeof val !== "string") {
44967
45007
  throw new TypeError(prefix + " must be a string or a buffer");
44968
45008
  }
44969
45009
  }
44970
45010
  function HashBase(blockSize) {
44971
45011
  Transform.call(this);
44972
- this._block = Buffer3.allocUnsafe(blockSize);
45012
+ this._block = Buffer4.allocUnsafe(blockSize);
44973
45013
  this._blockSize = blockSize;
44974
45014
  this._blockOffset = 0;
44975
45015
  this._length = [0, 0, 0, 0];
@@ -44998,8 +45038,8 @@ var require_hash_base = __commonJS({
44998
45038
  throwIfNotStringOrBuffer(data, "Data");
44999
45039
  if (this._finalized)
45000
45040
  throw new Error("Digest already called");
45001
- if (!Buffer3.isBuffer(data))
45002
- data = Buffer3.from(data, encoding);
45041
+ if (!Buffer4.isBuffer(data))
45042
+ data = Buffer4.from(data, encoding);
45003
45043
  var block = this._block;
45004
45044
  var offset = 0;
45005
45045
  while (this._blockOffset + data.length - offset >= this._blockSize) {
@@ -45051,7 +45091,7 @@ var require_md5 = __commonJS({
45051
45091
  init_setInterval();
45052
45092
  var inherits = require_inherits_browser();
45053
45093
  var HashBase = require_hash_base();
45054
- var Buffer3 = require_safe_buffer().Buffer;
45094
+ var Buffer4 = require_safe_buffer().Buffer;
45055
45095
  var ARRAY16 = new Array(16);
45056
45096
  function MD5() {
45057
45097
  HashBase.call(this, 64);
@@ -45149,7 +45189,7 @@ var require_md5 = __commonJS({
45149
45189
  this._block.writeUInt32LE(this._length[0], 56);
45150
45190
  this._block.writeUInt32LE(this._length[1], 60);
45151
45191
  this._update();
45152
- var buffer = Buffer3.allocUnsafe(16);
45192
+ var buffer = Buffer4.allocUnsafe(16);
45153
45193
  buffer.writeInt32LE(this._a, 0);
45154
45194
  buffer.writeInt32LE(this._b, 4);
45155
45195
  buffer.writeInt32LE(this._c, 8);
@@ -45183,7 +45223,7 @@ var require_ripemd160 = __commonJS({
45183
45223
  init_setImmediate();
45184
45224
  init_buffer();
45185
45225
  init_setInterval();
45186
- var Buffer3 = require_buffer().Buffer;
45226
+ var Buffer4 = require_buffer().Buffer;
45187
45227
  var inherits = require_inherits_browser();
45188
45228
  var HashBase = require_hash_base();
45189
45229
  var ARRAY16 = new Array(16);
@@ -45588,7 +45628,7 @@ var require_ripemd160 = __commonJS({
45588
45628
  this._block.writeUInt32LE(this._length[0], 56);
45589
45629
  this._block.writeUInt32LE(this._length[1], 60);
45590
45630
  this._update();
45591
- var buffer = Buffer3.alloc ? Buffer3.alloc(20) : new Buffer3(20);
45631
+ var buffer = Buffer4.alloc ? Buffer4.alloc(20) : new Buffer4(20);
45592
45632
  buffer.writeInt32LE(this._a, 0);
45593
45633
  buffer.writeInt32LE(this._b, 4);
45594
45634
  buffer.writeInt32LE(this._c, 8);
@@ -45625,9 +45665,9 @@ var require_hash = __commonJS({
45625
45665
  init_setImmediate();
45626
45666
  init_buffer();
45627
45667
  init_setInterval();
45628
- var Buffer3 = require_safe_buffer().Buffer;
45668
+ var Buffer4 = require_safe_buffer().Buffer;
45629
45669
  function Hash(blockSize, finalSize) {
45630
- this._block = Buffer3.alloc(blockSize);
45670
+ this._block = Buffer4.alloc(blockSize);
45631
45671
  this._finalSize = finalSize;
45632
45672
  this._blockSize = blockSize;
45633
45673
  this._len = 0;
@@ -45635,7 +45675,7 @@ var require_hash = __commonJS({
45635
45675
  Hash.prototype.update = function(data, enc) {
45636
45676
  if (typeof data === "string") {
45637
45677
  enc = enc || "utf8";
45638
- data = Buffer3.from(data, enc);
45678
+ data = Buffer4.from(data, enc);
45639
45679
  }
45640
45680
  var block = this._block;
45641
45681
  var blockSize = this._blockSize;
@@ -45693,7 +45733,7 @@ var require_sha = __commonJS({
45693
45733
  init_setInterval();
45694
45734
  var inherits = require_inherits_browser();
45695
45735
  var Hash = require_hash();
45696
- var Buffer3 = require_safe_buffer().Buffer;
45736
+ var Buffer4 = require_safe_buffer().Buffer;
45697
45737
  var K = [
45698
45738
  1518500249,
45699
45739
  1859775393,
@@ -45755,7 +45795,7 @@ var require_sha = __commonJS({
45755
45795
  this._e = e + this._e | 0;
45756
45796
  };
45757
45797
  Sha.prototype._hash = function() {
45758
- var H = Buffer3.allocUnsafe(20);
45798
+ var H = Buffer4.allocUnsafe(20);
45759
45799
  H.writeInt32BE(this._a | 0, 0);
45760
45800
  H.writeInt32BE(this._b | 0, 4);
45761
45801
  H.writeInt32BE(this._c | 0, 8);
@@ -45776,7 +45816,7 @@ var require_sha1 = __commonJS({
45776
45816
  init_setInterval();
45777
45817
  var inherits = require_inherits_browser();
45778
45818
  var Hash = require_hash();
45779
- var Buffer3 = require_safe_buffer().Buffer;
45819
+ var Buffer4 = require_safe_buffer().Buffer;
45780
45820
  var K = [
45781
45821
  1518500249,
45782
45822
  1859775393,
@@ -45841,7 +45881,7 @@ var require_sha1 = __commonJS({
45841
45881
  this._e = e + this._e | 0;
45842
45882
  };
45843
45883
  Sha1.prototype._hash = function() {
45844
- var H = Buffer3.allocUnsafe(20);
45884
+ var H = Buffer4.allocUnsafe(20);
45845
45885
  H.writeInt32BE(this._a | 0, 0);
45846
45886
  H.writeInt32BE(this._b | 0, 4);
45847
45887
  H.writeInt32BE(this._c | 0, 8);
@@ -45862,7 +45902,7 @@ var require_sha256 = __commonJS({
45862
45902
  init_setInterval();
45863
45903
  var inherits = require_inherits_browser();
45864
45904
  var Hash = require_hash();
45865
- var Buffer3 = require_safe_buffer().Buffer;
45905
+ var Buffer4 = require_safe_buffer().Buffer;
45866
45906
  var K = [
45867
45907
  1116352408,
45868
45908
  1899447441,
@@ -46001,7 +46041,7 @@ var require_sha256 = __commonJS({
46001
46041
  this._h = h + this._h | 0;
46002
46042
  };
46003
46043
  Sha256.prototype._hash = function() {
46004
- var H = Buffer3.allocUnsafe(32);
46044
+ var H = Buffer4.allocUnsafe(32);
46005
46045
  H.writeInt32BE(this._a, 0);
46006
46046
  H.writeInt32BE(this._b, 4);
46007
46047
  H.writeInt32BE(this._c, 8);
@@ -46026,7 +46066,7 @@ var require_sha224 = __commonJS({
46026
46066
  var inherits = require_inherits_browser();
46027
46067
  var Sha256 = require_sha256();
46028
46068
  var Hash = require_hash();
46029
- var Buffer3 = require_safe_buffer().Buffer;
46069
+ var Buffer4 = require_safe_buffer().Buffer;
46030
46070
  var W = new Array(64);
46031
46071
  function Sha224() {
46032
46072
  this.init();
@@ -46046,7 +46086,7 @@ var require_sha224 = __commonJS({
46046
46086
  return this;
46047
46087
  };
46048
46088
  Sha224.prototype._hash = function() {
46049
- var H = Buffer3.allocUnsafe(28);
46089
+ var H = Buffer4.allocUnsafe(28);
46050
46090
  H.writeInt32BE(this._a, 0);
46051
46091
  H.writeInt32BE(this._b, 4);
46052
46092
  H.writeInt32BE(this._c, 8);
@@ -46069,7 +46109,7 @@ var require_sha512 = __commonJS({
46069
46109
  init_setInterval();
46070
46110
  var inherits = require_inherits_browser();
46071
46111
  var Hash = require_hash();
46072
- var Buffer3 = require_safe_buffer().Buffer;
46112
+ var Buffer4 = require_safe_buffer().Buffer;
46073
46113
  var K = [
46074
46114
  1116352408,
46075
46115
  3609767458,
@@ -46387,7 +46427,7 @@ var require_sha512 = __commonJS({
46387
46427
  this._hh = this._hh + hh + getCarry(this._hl, hl) | 0;
46388
46428
  };
46389
46429
  Sha512.prototype._hash = function() {
46390
- var H = Buffer3.allocUnsafe(64);
46430
+ var H = Buffer4.allocUnsafe(64);
46391
46431
  function writeInt64BE(h, l, offset) {
46392
46432
  H.writeInt32BE(h, offset);
46393
46433
  H.writeInt32BE(l, offset + 4);
@@ -46416,7 +46456,7 @@ var require_sha384 = __commonJS({
46416
46456
  var inherits = require_inherits_browser();
46417
46457
  var SHA512 = require_sha512();
46418
46458
  var Hash = require_hash();
46419
- var Buffer3 = require_safe_buffer().Buffer;
46459
+ var Buffer4 = require_safe_buffer().Buffer;
46420
46460
  var W = new Array(160);
46421
46461
  function Sha384() {
46422
46462
  this.init();
@@ -46444,7 +46484,7 @@ var require_sha384 = __commonJS({
46444
46484
  return this;
46445
46485
  };
46446
46486
  Sha384.prototype._hash = function() {
46447
- var H = Buffer3.allocUnsafe(48);
46487
+ var H = Buffer4.allocUnsafe(48);
46448
46488
  function writeInt64BE(h, l, offset) {
46449
46489
  H.writeInt32BE(h, offset);
46450
46490
  H.writeInt32BE(l, offset + 4);
@@ -46491,7 +46531,7 @@ var require_cipher_base = __commonJS({
46491
46531
  init_setImmediate();
46492
46532
  init_buffer();
46493
46533
  init_setInterval();
46494
- var Buffer3 = require_safe_buffer().Buffer;
46534
+ var Buffer4 = require_safe_buffer().Buffer;
46495
46535
  var Transform = require_stream_browserify().Transform;
46496
46536
  var StringDecoder = require_string_decoder().StringDecoder;
46497
46537
  var inherits = require_inherits_browser();
@@ -46513,7 +46553,7 @@ var require_cipher_base = __commonJS({
46513
46553
  inherits(CipherBase, Transform);
46514
46554
  CipherBase.prototype.update = function(data, inputEnc, outputEnc) {
46515
46555
  if (typeof data === "string") {
46516
- data = Buffer3.from(data, inputEnc);
46556
+ data = Buffer4.from(data, inputEnc);
46517
46557
  }
46518
46558
  var outData = this._update(data);
46519
46559
  if (this.hashMode)
@@ -46558,7 +46598,7 @@ var require_cipher_base = __commonJS({
46558
46598
  done(err);
46559
46599
  };
46560
46600
  CipherBase.prototype._finalOrDigest = function(outputEnc) {
46561
- var outData = this.__final() || Buffer3.alloc(0);
46601
+ var outData = this.__final() || Buffer4.alloc(0);
46562
46602
  if (outputEnc) {
46563
46603
  outData = this._toString(outData, outputEnc, true);
46564
46604
  }
@@ -46625,24 +46665,24 @@ var require_legacy = __commonJS({
46625
46665
  init_buffer();
46626
46666
  init_setInterval();
46627
46667
  var inherits = require_inherits_browser();
46628
- var Buffer3 = require_safe_buffer().Buffer;
46668
+ var Buffer4 = require_safe_buffer().Buffer;
46629
46669
  var Base = require_cipher_base();
46630
- var ZEROS = Buffer3.alloc(128);
46670
+ var ZEROS = Buffer4.alloc(128);
46631
46671
  var blocksize = 64;
46632
46672
  function Hmac(alg, key) {
46633
46673
  Base.call(this, "digest");
46634
46674
  if (typeof key === "string") {
46635
- key = Buffer3.from(key);
46675
+ key = Buffer4.from(key);
46636
46676
  }
46637
46677
  this._alg = alg;
46638
46678
  this._key = key;
46639
46679
  if (key.length > blocksize) {
46640
46680
  key = alg(key);
46641
46681
  } else if (key.length < blocksize) {
46642
- key = Buffer3.concat([key, ZEROS], blocksize);
46682
+ key = Buffer4.concat([key, ZEROS], blocksize);
46643
46683
  }
46644
- var ipad = this._ipad = Buffer3.allocUnsafe(blocksize);
46645
- var opad = this._opad = Buffer3.allocUnsafe(blocksize);
46684
+ var ipad = this._ipad = Buffer4.allocUnsafe(blocksize);
46685
+ var opad = this._opad = Buffer4.allocUnsafe(blocksize);
46646
46686
  for (var i = 0; i < blocksize; i++) {
46647
46687
  ipad[i] = key[i] ^ 54;
46648
46688
  opad[i] = key[i] ^ 92;
@@ -46654,8 +46694,8 @@ var require_legacy = __commonJS({
46654
46694
  this._hash.push(data);
46655
46695
  };
46656
46696
  Hmac.prototype._final = function() {
46657
- var h = this._alg(Buffer3.concat(this._hash));
46658
- return this._alg(Buffer3.concat([this._opad, h]));
46697
+ var h = this._alg(Buffer4.concat(this._hash));
46698
+ return this._alg(Buffer4.concat([this._opad, h]));
46659
46699
  };
46660
46700
  module.exports = Hmac;
46661
46701
  }
@@ -46686,15 +46726,15 @@ var require_browser9 = __commonJS({
46686
46726
  var inherits = require_inherits_browser();
46687
46727
  var Legacy = require_legacy();
46688
46728
  var Base = require_cipher_base();
46689
- var Buffer3 = require_safe_buffer().Buffer;
46729
+ var Buffer4 = require_safe_buffer().Buffer;
46690
46730
  var md5 = require_md52();
46691
46731
  var RIPEMD160 = require_ripemd160();
46692
46732
  var sha = require_sha2();
46693
- var ZEROS = Buffer3.alloc(128);
46733
+ var ZEROS = Buffer4.alloc(128);
46694
46734
  function Hmac(alg, key) {
46695
46735
  Base.call(this, "digest");
46696
46736
  if (typeof key === "string") {
46697
- key = Buffer3.from(key);
46737
+ key = Buffer4.from(key);
46698
46738
  }
46699
46739
  var blocksize = alg === "sha512" || alg === "sha384" ? 128 : 64;
46700
46740
  this._alg = alg;
@@ -46703,10 +46743,10 @@ var require_browser9 = __commonJS({
46703
46743
  var hash = alg === "rmd160" ? new RIPEMD160() : sha(alg);
46704
46744
  key = hash.update(key).digest();
46705
46745
  } else if (key.length < blocksize) {
46706
- key = Buffer3.concat([key, ZEROS], blocksize);
46746
+ key = Buffer4.concat([key, ZEROS], blocksize);
46707
46747
  }
46708
- var ipad = this._ipad = Buffer3.allocUnsafe(blocksize);
46709
- var opad = this._opad = Buffer3.allocUnsafe(blocksize);
46748
+ var ipad = this._ipad = Buffer4.allocUnsafe(blocksize);
46749
+ var opad = this._opad = Buffer4.allocUnsafe(blocksize);
46710
46750
  for (var i = 0; i < blocksize; i++) {
46711
46751
  ipad[i] = key[i] ^ 54;
46712
46752
  opad[i] = key[i] ^ 92;
@@ -46958,14 +46998,14 @@ var require_to_buffer = __commonJS({
46958
46998
  init_setImmediate();
46959
46999
  init_buffer();
46960
47000
  init_setInterval();
46961
- var Buffer3 = require_safe_buffer().Buffer;
47001
+ var Buffer4 = require_safe_buffer().Buffer;
46962
47002
  module.exports = function(thing, encoding, name) {
46963
- if (Buffer3.isBuffer(thing)) {
47003
+ if (Buffer4.isBuffer(thing)) {
46964
47004
  return thing;
46965
47005
  } else if (typeof thing === "string") {
46966
- return Buffer3.from(thing, encoding);
47006
+ return Buffer4.from(thing, encoding);
46967
47007
  } else if (ArrayBuffer.isView(thing)) {
46968
- return Buffer3.from(thing.buffer);
47008
+ return Buffer4.from(thing.buffer);
46969
47009
  } else {
46970
47010
  throw new TypeError(name + " must be a string, a Buffer, a typed array or a DataView");
46971
47011
  }
@@ -46983,11 +47023,11 @@ var require_sync_browser = __commonJS({
46983
47023
  var md5 = require_md52();
46984
47024
  var RIPEMD160 = require_ripemd160();
46985
47025
  var sha = require_sha2();
46986
- var Buffer3 = require_safe_buffer().Buffer;
47026
+ var Buffer4 = require_safe_buffer().Buffer;
46987
47027
  var checkParameters = require_precondition();
46988
47028
  var defaultEncoding = require_default_encoding();
46989
47029
  var toBuffer = require_to_buffer();
46990
- var ZEROS = Buffer3.alloc(128);
47030
+ var ZEROS = Buffer4.alloc(128);
46991
47031
  var sizes = {
46992
47032
  md5: 16,
46993
47033
  sha1: 20,
@@ -47004,15 +47044,15 @@ var require_sync_browser = __commonJS({
47004
47044
  if (key.length > blocksize) {
47005
47045
  key = hash(key);
47006
47046
  } else if (key.length < blocksize) {
47007
- key = Buffer3.concat([key, ZEROS], blocksize);
47047
+ key = Buffer4.concat([key, ZEROS], blocksize);
47008
47048
  }
47009
- var ipad = Buffer3.allocUnsafe(blocksize + sizes[alg]);
47010
- var opad = Buffer3.allocUnsafe(blocksize + sizes[alg]);
47049
+ var ipad = Buffer4.allocUnsafe(blocksize + sizes[alg]);
47050
+ var opad = Buffer4.allocUnsafe(blocksize + sizes[alg]);
47011
47051
  for (var i = 0; i < blocksize; i++) {
47012
47052
  ipad[i] = key[i] ^ 54;
47013
47053
  opad[i] = key[i] ^ 92;
47014
47054
  }
47015
- var ipad1 = Buffer3.allocUnsafe(blocksize + saltLen + 4);
47055
+ var ipad1 = Buffer4.allocUnsafe(blocksize + saltLen + 4);
47016
47056
  ipad.copy(ipad1, 0, 0, blocksize);
47017
47057
  this.ipad1 = ipad1;
47018
47058
  this.ipad2 = ipad;
@@ -47047,8 +47087,8 @@ var require_sync_browser = __commonJS({
47047
47087
  salt = toBuffer(salt, defaultEncoding, "Salt");
47048
47088
  digest = digest || "sha1";
47049
47089
  var hmac = new Hmac(digest, password, salt.length);
47050
- var DK = Buffer3.allocUnsafe(keylen);
47051
- var block1 = Buffer3.allocUnsafe(salt.length + 4);
47090
+ var DK = Buffer4.allocUnsafe(keylen);
47091
+ var block1 = Buffer4.allocUnsafe(salt.length + 4);
47052
47092
  salt.copy(block1, 0, 0, salt.length);
47053
47093
  var destPos = 0;
47054
47094
  var hLen = sizes[digest];
@@ -47078,7 +47118,7 @@ var require_async = __commonJS({
47078
47118
  init_setImmediate();
47079
47119
  init_buffer();
47080
47120
  init_setInterval();
47081
- var Buffer3 = require_safe_buffer().Buffer;
47121
+ var Buffer4 = require_safe_buffer().Buffer;
47082
47122
  var checkParameters = require_precondition();
47083
47123
  var defaultEncoding = require_default_encoding();
47084
47124
  var sync = require_sync_browser();
@@ -47107,7 +47147,7 @@ var require_async = __commonJS({
47107
47147
  if (checks[algo] !== void 0) {
47108
47148
  return checks[algo];
47109
47149
  }
47110
- ZERO_BUF = ZERO_BUF || Buffer3.alloc(8);
47150
+ ZERO_BUF = ZERO_BUF || Buffer4.alloc(8);
47111
47151
  var prom = browserPbkdf2(ZERO_BUF, ZERO_BUF, 10, 128, algo).then(function() {
47112
47152
  return true;
47113
47153
  }).catch(function() {
@@ -47149,7 +47189,7 @@ var require_async = __commonJS({
47149
47189
  }
47150
47190
  }, key, length << 3);
47151
47191
  }).then(function(res) {
47152
- return Buffer3.from(res);
47192
+ return Buffer4.from(res);
47153
47193
  });
47154
47194
  }
47155
47195
  function resolvePromise(promise, callback) {
@@ -48377,7 +48417,7 @@ var require_browserify_des = __commonJS({
48377
48417
  var CipherBase = require_cipher_base();
48378
48418
  var des = require_des2();
48379
48419
  var inherits = require_inherits_browser();
48380
- var Buffer3 = require_safe_buffer().Buffer;
48420
+ var Buffer4 = require_safe_buffer().Buffer;
48381
48421
  var modes = {
48382
48422
  "des-ede3-cbc": des.CBC.instantiate(des.EDE),
48383
48423
  "des-ede3": des.EDE,
@@ -48401,15 +48441,15 @@ var require_browserify_des = __commonJS({
48401
48441
  type = "encrypt";
48402
48442
  }
48403
48443
  var key = opts.key;
48404
- if (!Buffer3.isBuffer(key)) {
48405
- key = Buffer3.from(key);
48444
+ if (!Buffer4.isBuffer(key)) {
48445
+ key = Buffer4.from(key);
48406
48446
  }
48407
48447
  if (modeName === "des-ede" || modeName === "des-ede-cbc") {
48408
- key = Buffer3.concat([key, key.slice(0, 8)]);
48448
+ key = Buffer4.concat([key, key.slice(0, 8)]);
48409
48449
  }
48410
48450
  var iv = opts.iv;
48411
- if (!Buffer3.isBuffer(iv)) {
48412
- iv = Buffer3.from(iv);
48451
+ if (!Buffer4.isBuffer(iv)) {
48452
+ iv = Buffer4.from(iv);
48413
48453
  }
48414
48454
  this._des = mode.create({
48415
48455
  key,
@@ -48418,10 +48458,10 @@ var require_browserify_des = __commonJS({
48418
48458
  });
48419
48459
  }
48420
48460
  DES.prototype._update = function(data) {
48421
- return Buffer3.from(this._des.update(data));
48461
+ return Buffer4.from(this._des.update(data));
48422
48462
  };
48423
48463
  DES.prototype._final = function() {
48424
- return Buffer3.from(this._des.final());
48464
+ return Buffer4.from(this._des.final());
48425
48465
  };
48426
48466
  }
48427
48467
  });
@@ -48489,29 +48529,29 @@ var require_cfb = __commonJS({
48489
48529
  init_setImmediate();
48490
48530
  init_buffer();
48491
48531
  init_setInterval();
48492
- var Buffer3 = require_safe_buffer().Buffer;
48532
+ var Buffer4 = require_safe_buffer().Buffer;
48493
48533
  var xor = require_buffer_xor();
48494
48534
  function encryptStart(self2, data, decrypt) {
48495
48535
  var len = data.length;
48496
48536
  var out = xor(data, self2._cache);
48497
48537
  self2._cache = self2._cache.slice(len);
48498
- self2._prev = Buffer3.concat([self2._prev, decrypt ? data : out]);
48538
+ self2._prev = Buffer4.concat([self2._prev, decrypt ? data : out]);
48499
48539
  return out;
48500
48540
  }
48501
48541
  exports.encrypt = function(self2, data, decrypt) {
48502
- var out = Buffer3.allocUnsafe(0);
48542
+ var out = Buffer4.allocUnsafe(0);
48503
48543
  var len;
48504
48544
  while (data.length) {
48505
48545
  if (self2._cache.length === 0) {
48506
48546
  self2._cache = self2._cipher.encryptBlock(self2._prev);
48507
- self2._prev = Buffer3.allocUnsafe(0);
48547
+ self2._prev = Buffer4.allocUnsafe(0);
48508
48548
  }
48509
48549
  if (self2._cache.length <= data.length) {
48510
48550
  len = self2._cache.length;
48511
- out = Buffer3.concat([out, encryptStart(self2, data.slice(0, len), decrypt)]);
48551
+ out = Buffer4.concat([out, encryptStart(self2, data.slice(0, len), decrypt)]);
48512
48552
  data = data.slice(len);
48513
48553
  } else {
48514
- out = Buffer3.concat([out, encryptStart(self2, data, decrypt)]);
48554
+ out = Buffer4.concat([out, encryptStart(self2, data, decrypt)]);
48515
48555
  break;
48516
48556
  }
48517
48557
  }
@@ -48527,19 +48567,19 @@ var require_cfb8 = __commonJS({
48527
48567
  init_setImmediate();
48528
48568
  init_buffer();
48529
48569
  init_setInterval();
48530
- var Buffer3 = require_safe_buffer().Buffer;
48570
+ var Buffer4 = require_safe_buffer().Buffer;
48531
48571
  function encryptByte(self2, byteParam, decrypt) {
48532
48572
  var pad = self2._cipher.encryptBlock(self2._prev);
48533
48573
  var out = pad[0] ^ byteParam;
48534
- self2._prev = Buffer3.concat([
48574
+ self2._prev = Buffer4.concat([
48535
48575
  self2._prev.slice(1),
48536
- Buffer3.from([decrypt ? byteParam : out])
48576
+ Buffer4.from([decrypt ? byteParam : out])
48537
48577
  ]);
48538
48578
  return out;
48539
48579
  }
48540
48580
  exports.encrypt = function(self2, chunk, decrypt) {
48541
48581
  var len = chunk.length;
48542
- var out = Buffer3.allocUnsafe(len);
48582
+ var out = Buffer4.allocUnsafe(len);
48543
48583
  var i = -1;
48544
48584
  while (++i < len) {
48545
48585
  out[i] = encryptByte(self2, chunk[i], decrypt);
@@ -48556,7 +48596,7 @@ var require_cfb1 = __commonJS({
48556
48596
  init_setImmediate();
48557
48597
  init_buffer();
48558
48598
  init_setInterval();
48559
- var Buffer3 = require_safe_buffer().Buffer;
48599
+ var Buffer4 = require_safe_buffer().Buffer;
48560
48600
  function encryptByte(self2, byteParam, decrypt) {
48561
48601
  var pad;
48562
48602
  var i = -1;
@@ -48575,8 +48615,8 @@ var require_cfb1 = __commonJS({
48575
48615
  function shiftIn(buffer, value) {
48576
48616
  var len = buffer.length;
48577
48617
  var i = -1;
48578
- var out = Buffer3.allocUnsafe(buffer.length);
48579
- buffer = Buffer3.concat([buffer, Buffer3.from([value])]);
48618
+ var out = Buffer4.allocUnsafe(buffer.length);
48619
+ buffer = Buffer4.concat([buffer, Buffer4.from([value])]);
48580
48620
  while (++i < len) {
48581
48621
  out[i] = buffer[i] << 1 | buffer[i + 1] >> 7;
48582
48622
  }
@@ -48584,7 +48624,7 @@ var require_cfb1 = __commonJS({
48584
48624
  }
48585
48625
  exports.encrypt = function(self2, chunk, decrypt) {
48586
48626
  var len = chunk.length;
48587
- var out = Buffer3.allocUnsafe(len);
48627
+ var out = Buffer4.allocUnsafe(len);
48588
48628
  var i = -1;
48589
48629
  while (++i < len) {
48590
48630
  out[i] = encryptByte(self2, chunk[i], decrypt);
@@ -48650,7 +48690,7 @@ var require_ctr = __commonJS({
48650
48690
  init_buffer();
48651
48691
  init_setInterval();
48652
48692
  var xor = require_buffer_xor();
48653
- var Buffer3 = require_safe_buffer().Buffer;
48693
+ var Buffer4 = require_safe_buffer().Buffer;
48654
48694
  var incr32 = require_incr32();
48655
48695
  function getBlock(self2) {
48656
48696
  var out = self2._cipher.encryptBlockRaw(self2._prev);
@@ -48661,9 +48701,9 @@ var require_ctr = __commonJS({
48661
48701
  exports.encrypt = function(self2, chunk) {
48662
48702
  var chunkNum = Math.ceil(chunk.length / blockSize);
48663
48703
  var start = self2._cache.length;
48664
- self2._cache = Buffer3.concat([
48704
+ self2._cache = Buffer4.concat([
48665
48705
  self2._cache,
48666
- Buffer3.allocUnsafe(chunkNum * blockSize)
48706
+ Buffer4.allocUnsafe(chunkNum * blockSize)
48667
48707
  ]);
48668
48708
  for (var i = 0; i < chunkNum; i++) {
48669
48709
  var out = getBlock(self2);
@@ -48910,10 +48950,10 @@ var require_aes = __commonJS({
48910
48950
  init_setImmediate();
48911
48951
  init_buffer();
48912
48952
  init_setInterval();
48913
- var Buffer3 = require_safe_buffer().Buffer;
48953
+ var Buffer4 = require_safe_buffer().Buffer;
48914
48954
  function asUInt32Array(buf) {
48915
- if (!Buffer3.isBuffer(buf))
48916
- buf = Buffer3.from(buf);
48955
+ if (!Buffer4.isBuffer(buf))
48956
+ buf = Buffer4.from(buf);
48917
48957
  var len = buf.length / 4 | 0;
48918
48958
  var out = new Array(len);
48919
48959
  for (var i = 0; i < len; i++) {
@@ -49053,7 +49093,7 @@ var require_aes = __commonJS({
49053
49093
  };
49054
49094
  AES.prototype.encryptBlock = function(M) {
49055
49095
  var out = this.encryptBlockRaw(M);
49056
- var buf = Buffer3.allocUnsafe(16);
49096
+ var buf = Buffer4.allocUnsafe(16);
49057
49097
  buf.writeUInt32BE(out[0], 0);
49058
49098
  buf.writeUInt32BE(out[1], 4);
49059
49099
  buf.writeUInt32BE(out[2], 8);
@@ -49066,7 +49106,7 @@ var require_aes = __commonJS({
49066
49106
  M[1] = M[3];
49067
49107
  M[3] = m1;
49068
49108
  var out = cryptBlock(M, this._invKeySchedule, G.INV_SUB_MIX, G.INV_SBOX, this._nRounds);
49069
- var buf = Buffer3.allocUnsafe(16);
49109
+ var buf = Buffer4.allocUnsafe(16);
49070
49110
  buf.writeUInt32BE(out[0], 0);
49071
49111
  buf.writeUInt32BE(out[3], 4);
49072
49112
  buf.writeUInt32BE(out[2], 8);
@@ -49089,8 +49129,8 @@ var require_ghash = __commonJS({
49089
49129
  init_setImmediate();
49090
49130
  init_buffer();
49091
49131
  init_setInterval();
49092
- var Buffer3 = require_safe_buffer().Buffer;
49093
- var ZEROES = Buffer3.alloc(16, 0);
49132
+ var Buffer4 = require_safe_buffer().Buffer;
49133
+ var ZEROES = Buffer4.alloc(16, 0);
49094
49134
  function toArray(buf) {
49095
49135
  return [
49096
49136
  buf.readUInt32BE(0),
@@ -49100,7 +49140,7 @@ var require_ghash = __commonJS({
49100
49140
  ];
49101
49141
  }
49102
49142
  function fromArray(out) {
49103
- var buf = Buffer3.allocUnsafe(16);
49143
+ var buf = Buffer4.allocUnsafe(16);
49104
49144
  buf.writeUInt32BE(out[0] >>> 0, 0);
49105
49145
  buf.writeUInt32BE(out[1] >>> 0, 4);
49106
49146
  buf.writeUInt32BE(out[2] >>> 0, 8);
@@ -49109,8 +49149,8 @@ var require_ghash = __commonJS({
49109
49149
  }
49110
49150
  function GHASH(key) {
49111
49151
  this.h = key;
49112
- this.state = Buffer3.alloc(16, 0);
49113
- this.cache = Buffer3.allocUnsafe(0);
49152
+ this.state = Buffer4.alloc(16, 0);
49153
+ this.cache = Buffer4.allocUnsafe(0);
49114
49154
  }
49115
49155
  GHASH.prototype.ghash = function(block) {
49116
49156
  var i = -1;
@@ -49144,7 +49184,7 @@ var require_ghash = __commonJS({
49144
49184
  this.state = fromArray(Zi);
49145
49185
  };
49146
49186
  GHASH.prototype.update = function(buf) {
49147
- this.cache = Buffer3.concat([this.cache, buf]);
49187
+ this.cache = Buffer4.concat([this.cache, buf]);
49148
49188
  var chunk;
49149
49189
  while (this.cache.length >= 16) {
49150
49190
  chunk = this.cache.slice(0, 16);
@@ -49154,7 +49194,7 @@ var require_ghash = __commonJS({
49154
49194
  };
49155
49195
  GHASH.prototype.final = function(abl, bl) {
49156
49196
  if (this.cache.length) {
49157
- this.ghash(Buffer3.concat([this.cache, ZEROES], 16));
49197
+ this.ghash(Buffer4.concat([this.cache, ZEROES], 16));
49158
49198
  }
49159
49199
  this.ghash(fromArray([0, abl, 0, bl]));
49160
49200
  return this.state;
@@ -49171,7 +49211,7 @@ var require_authCipher = __commonJS({
49171
49211
  init_buffer();
49172
49212
  init_setInterval();
49173
49213
  var aes = require_aes();
49174
- var Buffer3 = require_safe_buffer().Buffer;
49214
+ var Buffer4 = require_safe_buffer().Buffer;
49175
49215
  var Transform = require_cipher_base();
49176
49216
  var inherits = require_inherits_browser();
49177
49217
  var GHASH = require_ghash();
@@ -49189,8 +49229,8 @@ var require_authCipher = __commonJS({
49189
49229
  }
49190
49230
  function calcIv(self2, iv, ck) {
49191
49231
  if (iv.length === 12) {
49192
- self2._finID = Buffer3.concat([iv, Buffer3.from([0, 0, 0, 1])]);
49193
- return Buffer3.concat([iv, Buffer3.from([0, 0, 0, 2])]);
49232
+ self2._finID = Buffer4.concat([iv, Buffer4.from([0, 0, 0, 1])]);
49233
+ return Buffer4.concat([iv, Buffer4.from([0, 0, 0, 2])]);
49194
49234
  }
49195
49235
  var ghash = new GHASH(ck);
49196
49236
  var len = iv.length;
@@ -49198,28 +49238,28 @@ var require_authCipher = __commonJS({
49198
49238
  ghash.update(iv);
49199
49239
  if (toPad) {
49200
49240
  toPad = 16 - toPad;
49201
- ghash.update(Buffer3.alloc(toPad, 0));
49241
+ ghash.update(Buffer4.alloc(toPad, 0));
49202
49242
  }
49203
- ghash.update(Buffer3.alloc(8, 0));
49243
+ ghash.update(Buffer4.alloc(8, 0));
49204
49244
  var ivBits = len * 8;
49205
- var tail = Buffer3.alloc(8);
49245
+ var tail = Buffer4.alloc(8);
49206
49246
  tail.writeUIntBE(ivBits, 0, 8);
49207
49247
  ghash.update(tail);
49208
49248
  self2._finID = ghash.state;
49209
- var out = Buffer3.from(self2._finID);
49249
+ var out = Buffer4.from(self2._finID);
49210
49250
  incr32(out);
49211
49251
  return out;
49212
49252
  }
49213
49253
  function StreamCipher(mode, key, iv, decrypt) {
49214
49254
  Transform.call(this);
49215
- var h = Buffer3.alloc(4, 0);
49255
+ var h = Buffer4.alloc(4, 0);
49216
49256
  this._cipher = new aes.AES(key);
49217
49257
  var ck = this._cipher.encryptBlock(h);
49218
49258
  this._ghash = new GHASH(ck);
49219
49259
  iv = calcIv(this, iv, ck);
49220
- this._prev = Buffer3.from(iv);
49221
- this._cache = Buffer3.allocUnsafe(0);
49222
- this._secCache = Buffer3.allocUnsafe(0);
49260
+ this._prev = Buffer4.from(iv);
49261
+ this._cache = Buffer4.allocUnsafe(0);
49262
+ this._secCache = Buffer4.allocUnsafe(0);
49223
49263
  this._decrypt = decrypt;
49224
49264
  this._alen = 0;
49225
49265
  this._len = 0;
@@ -49232,7 +49272,7 @@ var require_authCipher = __commonJS({
49232
49272
  if (!this._called && this._alen) {
49233
49273
  var rump = 16 - this._alen % 16;
49234
49274
  if (rump < 16) {
49235
- rump = Buffer3.alloc(rump, 0);
49275
+ rump = Buffer4.alloc(rump, 0);
49236
49276
  this._ghash.update(rump);
49237
49277
  }
49238
49278
  }
@@ -49256,7 +49296,7 @@ var require_authCipher = __commonJS({
49256
49296
  this._cipher.scrub();
49257
49297
  };
49258
49298
  StreamCipher.prototype.getAuthTag = function getAuthTag() {
49259
- if (this._decrypt || !Buffer3.isBuffer(this._authTag))
49299
+ if (this._decrypt || !Buffer4.isBuffer(this._authTag))
49260
49300
  throw new Error("Attempting to get auth tag in unsupported state");
49261
49301
  return this._authTag;
49262
49302
  };
@@ -49283,15 +49323,15 @@ var require_streamCipher = __commonJS({
49283
49323
  init_buffer();
49284
49324
  init_setInterval();
49285
49325
  var aes = require_aes();
49286
- var Buffer3 = require_safe_buffer().Buffer;
49326
+ var Buffer4 = require_safe_buffer().Buffer;
49287
49327
  var Transform = require_cipher_base();
49288
49328
  var inherits = require_inherits_browser();
49289
49329
  function StreamCipher(mode, key, iv, decrypt) {
49290
49330
  Transform.call(this);
49291
49331
  this._cipher = new aes.AES(key);
49292
- this._prev = Buffer3.from(iv);
49293
- this._cache = Buffer3.allocUnsafe(0);
49294
- this._secCache = Buffer3.allocUnsafe(0);
49332
+ this._prev = Buffer4.from(iv);
49333
+ this._cache = Buffer4.allocUnsafe(0);
49334
+ this._secCache = Buffer4.allocUnsafe(0);
49295
49335
  this._decrypt = decrypt;
49296
49336
  this._mode = mode;
49297
49337
  }
@@ -49313,21 +49353,21 @@ var require_evp_bytestokey = __commonJS({
49313
49353
  init_setImmediate();
49314
49354
  init_buffer();
49315
49355
  init_setInterval();
49316
- var Buffer3 = require_safe_buffer().Buffer;
49356
+ var Buffer4 = require_safe_buffer().Buffer;
49317
49357
  var MD5 = require_md5();
49318
49358
  function EVP_BytesToKey(password, salt, keyBits, ivLen) {
49319
- if (!Buffer3.isBuffer(password))
49320
- password = Buffer3.from(password, "binary");
49359
+ if (!Buffer4.isBuffer(password))
49360
+ password = Buffer4.from(password, "binary");
49321
49361
  if (salt) {
49322
- if (!Buffer3.isBuffer(salt))
49323
- salt = Buffer3.from(salt, "binary");
49362
+ if (!Buffer4.isBuffer(salt))
49363
+ salt = Buffer4.from(salt, "binary");
49324
49364
  if (salt.length !== 8)
49325
49365
  throw new RangeError("salt should be Buffer with 8 byte length");
49326
49366
  }
49327
49367
  var keyLen = keyBits / 8;
49328
- var key = Buffer3.alloc(keyLen);
49329
- var iv = Buffer3.alloc(ivLen || 0);
49330
- var tmp = Buffer3.alloc(0);
49368
+ var key = Buffer4.alloc(keyLen);
49369
+ var iv = Buffer4.alloc(ivLen || 0);
49370
+ var tmp = Buffer4.alloc(0);
49331
49371
  while (keyLen > 0 || ivLen > 0) {
49332
49372
  var hash = new MD5();
49333
49373
  hash.update(tmp);
@@ -49365,7 +49405,7 @@ var require_encrypter = __commonJS({
49365
49405
  init_setInterval();
49366
49406
  var MODES = require_modes();
49367
49407
  var AuthCipher = require_authCipher();
49368
- var Buffer3 = require_safe_buffer().Buffer;
49408
+ var Buffer4 = require_safe_buffer().Buffer;
49369
49409
  var StreamCipher = require_streamCipher();
49370
49410
  var Transform = require_cipher_base();
49371
49411
  var aes = require_aes();
@@ -49375,7 +49415,7 @@ var require_encrypter = __commonJS({
49375
49415
  Transform.call(this);
49376
49416
  this._cache = new Splitter();
49377
49417
  this._cipher = new aes.AES(key);
49378
- this._prev = Buffer3.from(iv);
49418
+ this._prev = Buffer4.from(iv);
49379
49419
  this._mode = mode;
49380
49420
  this._autopadding = true;
49381
49421
  }
@@ -49389,9 +49429,9 @@ var require_encrypter = __commonJS({
49389
49429
  thing = this._mode.encrypt(this, chunk);
49390
49430
  out.push(thing);
49391
49431
  }
49392
- return Buffer3.concat(out);
49432
+ return Buffer4.concat(out);
49393
49433
  };
49394
- var PADDING = Buffer3.alloc(16, 16);
49434
+ var PADDING = Buffer4.alloc(16, 16);
49395
49435
  Cipher.prototype._final = function() {
49396
49436
  var chunk = this._cache.flush();
49397
49437
  if (this._autopadding) {
@@ -49409,10 +49449,10 @@ var require_encrypter = __commonJS({
49409
49449
  return this;
49410
49450
  };
49411
49451
  function Splitter() {
49412
- this.cache = Buffer3.allocUnsafe(0);
49452
+ this.cache = Buffer4.allocUnsafe(0);
49413
49453
  }
49414
49454
  Splitter.prototype.add = function(data) {
49415
- this.cache = Buffer3.concat([this.cache, data]);
49455
+ this.cache = Buffer4.concat([this.cache, data]);
49416
49456
  };
49417
49457
  Splitter.prototype.get = function() {
49418
49458
  if (this.cache.length > 15) {
@@ -49424,23 +49464,23 @@ var require_encrypter = __commonJS({
49424
49464
  };
49425
49465
  Splitter.prototype.flush = function() {
49426
49466
  var len = 16 - this.cache.length;
49427
- var padBuff = Buffer3.allocUnsafe(len);
49467
+ var padBuff = Buffer4.allocUnsafe(len);
49428
49468
  var i = -1;
49429
49469
  while (++i < len) {
49430
49470
  padBuff.writeUInt8(len, i);
49431
49471
  }
49432
- return Buffer3.concat([this.cache, padBuff]);
49472
+ return Buffer4.concat([this.cache, padBuff]);
49433
49473
  };
49434
49474
  function createCipheriv(suite, password, iv) {
49435
49475
  var config = MODES[suite.toLowerCase()];
49436
49476
  if (!config)
49437
49477
  throw new TypeError("invalid suite type");
49438
49478
  if (typeof password === "string")
49439
- password = Buffer3.from(password);
49479
+ password = Buffer4.from(password);
49440
49480
  if (password.length !== config.key / 8)
49441
49481
  throw new TypeError("invalid key length " + password.length);
49442
49482
  if (typeof iv === "string")
49443
- iv = Buffer3.from(iv);
49483
+ iv = Buffer4.from(iv);
49444
49484
  if (config.mode !== "GCM" && iv.length !== config.iv)
49445
49485
  throw new TypeError("invalid iv length " + iv.length);
49446
49486
  if (config.type === "stream") {
@@ -49470,7 +49510,7 @@ var require_decrypter = __commonJS({
49470
49510
  init_buffer();
49471
49511
  init_setInterval();
49472
49512
  var AuthCipher = require_authCipher();
49473
- var Buffer3 = require_safe_buffer().Buffer;
49513
+ var Buffer4 = require_safe_buffer().Buffer;
49474
49514
  var MODES = require_modes();
49475
49515
  var StreamCipher = require_streamCipher();
49476
49516
  var Transform = require_cipher_base();
@@ -49482,7 +49522,7 @@ var require_decrypter = __commonJS({
49482
49522
  this._cache = new Splitter();
49483
49523
  this._last = void 0;
49484
49524
  this._cipher = new aes.AES(key);
49485
- this._prev = Buffer3.from(iv);
49525
+ this._prev = Buffer4.from(iv);
49486
49526
  this._mode = mode;
49487
49527
  this._autopadding = true;
49488
49528
  }
@@ -49496,7 +49536,7 @@ var require_decrypter = __commonJS({
49496
49536
  thing = this._mode.decrypt(this, chunk);
49497
49537
  out.push(thing);
49498
49538
  }
49499
- return Buffer3.concat(out);
49539
+ return Buffer4.concat(out);
49500
49540
  };
49501
49541
  Decipher.prototype._final = function() {
49502
49542
  var chunk = this._cache.flush();
@@ -49511,10 +49551,10 @@ var require_decrypter = __commonJS({
49511
49551
  return this;
49512
49552
  };
49513
49553
  function Splitter() {
49514
- this.cache = Buffer3.allocUnsafe(0);
49554
+ this.cache = Buffer4.allocUnsafe(0);
49515
49555
  }
49516
49556
  Splitter.prototype.add = function(data) {
49517
- this.cache = Buffer3.concat([this.cache, data]);
49557
+ this.cache = Buffer4.concat([this.cache, data]);
49518
49558
  };
49519
49559
  Splitter.prototype.get = function(autoPadding) {
49520
49560
  var out;
@@ -49557,11 +49597,11 @@ var require_decrypter = __commonJS({
49557
49597
  if (!config)
49558
49598
  throw new TypeError("invalid suite type");
49559
49599
  if (typeof iv === "string")
49560
- iv = Buffer3.from(iv);
49600
+ iv = Buffer4.from(iv);
49561
49601
  if (config.mode !== "GCM" && iv.length !== config.iv)
49562
49602
  throw new TypeError("invalid iv length " + iv.length);
49563
49603
  if (typeof password === "string")
49564
- password = Buffer3.from(password);
49604
+ password = Buffer4.from(password);
49565
49605
  if (password.length !== config.key / 8)
49566
49606
  throw new TypeError("invalid key length " + password.length);
49567
49607
  if (config.type === "stream") {
@@ -49761,12 +49801,12 @@ var require_bn = __commonJS({
49761
49801
  }
49762
49802
  BN.BN = BN;
49763
49803
  BN.wordSize = 26;
49764
- var Buffer3;
49804
+ var Buffer4;
49765
49805
  try {
49766
49806
  if (typeof window !== "undefined" && typeof window.Buffer !== "undefined") {
49767
- Buffer3 = window.Buffer;
49807
+ Buffer4 = window.Buffer;
49768
49808
  } else {
49769
- Buffer3 = require_buffer2().Buffer;
49809
+ Buffer4 = require_buffer2().Buffer;
49770
49810
  }
49771
49811
  } catch (e) {
49772
49812
  }
@@ -50204,8 +50244,8 @@ var require_bn = __commonJS({
50204
50244
  return this.toString(16);
50205
50245
  };
50206
50246
  BN.prototype.toBuffer = function toBuffer(endian, length) {
50207
- assert(typeof Buffer3 !== "undefined");
50208
- return this.toArrayLike(Buffer3, endian, length);
50247
+ assert(typeof Buffer4 !== "undefined");
50248
+ return this.toArrayLike(Buffer4, endian, length);
50209
50249
  };
50210
50250
  BN.prototype.toArray = function toArray(endian, length) {
50211
50251
  return this.toArrayLike(Array, endian, length);
@@ -53107,12 +53147,12 @@ var require_bn2 = __commonJS({
53107
53147
  }
53108
53148
  BN.BN = BN;
53109
53149
  BN.wordSize = 26;
53110
- var Buffer3;
53150
+ var Buffer4;
53111
53151
  try {
53112
53152
  if (typeof window !== "undefined" && typeof window.Buffer !== "undefined") {
53113
- Buffer3 = window.Buffer;
53153
+ Buffer4 = window.Buffer;
53114
53154
  } else {
53115
- Buffer3 = require_buffer2().Buffer;
53155
+ Buffer4 = require_buffer2().Buffer;
53116
53156
  }
53117
53157
  } catch (e) {
53118
53158
  }
@@ -53572,9 +53612,9 @@ var require_bn2 = __commonJS({
53572
53612
  BN.prototype.toJSON = function toJSON() {
53573
53613
  return this.toString(16, 2);
53574
53614
  };
53575
- if (Buffer3) {
53615
+ if (Buffer4) {
53576
53616
  BN.prototype.toBuffer = function toBuffer(endian, length) {
53577
- return this.toArrayLike(Buffer3, endian, length);
53617
+ return this.toArrayLike(Buffer4, endian, length);
53578
53618
  };
53579
53619
  }
53580
53620
  BN.prototype.toArray = function toArray(endian, length) {
@@ -61213,12 +61253,12 @@ var require_bn3 = __commonJS({
61213
61253
  }
61214
61254
  BN.BN = BN;
61215
61255
  BN.wordSize = 26;
61216
- var Buffer3;
61256
+ var Buffer4;
61217
61257
  try {
61218
61258
  if (typeof window !== "undefined" && typeof window.Buffer !== "undefined") {
61219
- Buffer3 = window.Buffer;
61259
+ Buffer4 = window.Buffer;
61220
61260
  } else {
61221
- Buffer3 = require_buffer2().Buffer;
61261
+ Buffer4 = require_buffer2().Buffer;
61222
61262
  }
61223
61263
  } catch (e) {
61224
61264
  }
@@ -61678,9 +61718,9 @@ var require_bn3 = __commonJS({
61678
61718
  BN.prototype.toJSON = function toJSON() {
61679
61719
  return this.toString(16, 2);
61680
61720
  };
61681
- if (Buffer3) {
61721
+ if (Buffer4) {
61682
61722
  BN.prototype.toBuffer = function toBuffer(endian, length) {
61683
- return this.toArrayLike(Buffer3, endian, length);
61723
+ return this.toArrayLike(Buffer4, endian, length);
61684
61724
  };
61685
61725
  }
61686
61726
  BN.prototype.toArray = function toArray(endian, length) {
@@ -64118,7 +64158,7 @@ var require_safer = __commonJS({
64118
64158
  init_buffer();
64119
64159
  init_setInterval();
64120
64160
  var buffer = require_buffer();
64121
- var Buffer3 = buffer.Buffer;
64161
+ var Buffer4 = buffer.Buffer;
64122
64162
  var safer = {};
64123
64163
  var key;
64124
64164
  for (key in buffer) {
@@ -64129,14 +64169,14 @@ var require_safer = __commonJS({
64129
64169
  safer[key] = buffer[key];
64130
64170
  }
64131
64171
  var Safer = safer.Buffer = {};
64132
- for (key in Buffer3) {
64133
- if (!Buffer3.hasOwnProperty(key))
64172
+ for (key in Buffer4) {
64173
+ if (!Buffer4.hasOwnProperty(key))
64134
64174
  continue;
64135
64175
  if (key === "allocUnsafe" || key === "allocUnsafeSlow")
64136
64176
  continue;
64137
- Safer[key] = Buffer3[key];
64177
+ Safer[key] = Buffer4[key];
64138
64178
  }
64139
- safer.Buffer.prototype = Buffer3.prototype;
64179
+ safer.Buffer.prototype = Buffer4.prototype;
64140
64180
  if (!Safer.from || Safer.from === Uint8Array.from) {
64141
64181
  Safer.from = function(value, encodingOrOffset, length) {
64142
64182
  if (typeof value === "number") {
@@ -64145,7 +64185,7 @@ var require_safer = __commonJS({
64145
64185
  if (value && typeof value.length === "undefined") {
64146
64186
  throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + typeof value);
64147
64187
  }
64148
- return Buffer3(value, encodingOrOffset, length);
64188
+ return Buffer4(value, encodingOrOffset, length);
64149
64189
  };
64150
64190
  }
64151
64191
  if (!Safer.alloc) {
@@ -64156,7 +64196,7 @@ var require_safer = __commonJS({
64156
64196
  if (size < 0 || size >= 2 * (1 << 30)) {
64157
64197
  throw new RangeError('The value "' + size + '" is invalid for option "size"');
64158
64198
  }
64159
- var buf = Buffer3(size);
64199
+ var buf = Buffer4(size);
64160
64200
  if (!fill || fill.length === 0) {
64161
64201
  buf.fill(0);
64162
64202
  } else if (typeof encoding === "string") {
@@ -64300,10 +64340,10 @@ var require_buffer3 = __commonJS({
64300
64340
  init_setInterval();
64301
64341
  var inherits = require_inherits_browser();
64302
64342
  var Reporter = require_reporter().Reporter;
64303
- var Buffer3 = require_safer().Buffer;
64343
+ var Buffer4 = require_safer().Buffer;
64304
64344
  function DecoderBuffer(base, options) {
64305
64345
  Reporter.call(this, options);
64306
- if (!Buffer3.isBuffer(base)) {
64346
+ if (!Buffer4.isBuffer(base)) {
64307
64347
  this.error("Input not Buffer");
64308
64348
  return;
64309
64349
  }
@@ -64317,7 +64357,7 @@ var require_buffer3 = __commonJS({
64317
64357
  if (data instanceof DecoderBuffer) {
64318
64358
  return true;
64319
64359
  }
64320
- const isCompatible = typeof data === "object" && Buffer3.isBuffer(data.base) && data.constructor.name === "DecoderBuffer" && typeof data.offset === "number" && typeof data.length === "number" && typeof data.save === "function" && typeof data.restore === "function" && typeof data.isEmpty === "function" && typeof data.readUInt8 === "function" && typeof data.skip === "function" && typeof data.raw === "function";
64360
+ const isCompatible = typeof data === "object" && Buffer4.isBuffer(data.base) && data.constructor.name === "DecoderBuffer" && typeof data.offset === "number" && typeof data.length === "number" && typeof data.save === "function" && typeof data.restore === "function" && typeof data.isEmpty === "function" && typeof data.readUInt8 === "function" && typeof data.skip === "function" && typeof data.raw === "function";
64321
64361
  return isCompatible;
64322
64362
  };
64323
64363
  DecoderBuffer.prototype.save = function save() {
@@ -64369,8 +64409,8 @@ var require_buffer3 = __commonJS({
64369
64409
  this.length = 1;
64370
64410
  } else if (typeof value === "string") {
64371
64411
  this.value = value;
64372
- this.length = Buffer3.byteLength(value);
64373
- } else if (Buffer3.isBuffer(value)) {
64412
+ this.length = Buffer4.byteLength(value);
64413
+ } else if (Buffer4.isBuffer(value)) {
64374
64414
  this.value = value;
64375
64415
  this.length = value.length;
64376
64416
  } else {
@@ -64387,7 +64427,7 @@ var require_buffer3 = __commonJS({
64387
64427
  };
64388
64428
  EncoderBuffer.prototype.join = function join(out, offset) {
64389
64429
  if (!out)
64390
- out = Buffer3.alloc(this.length);
64430
+ out = Buffer4.alloc(this.length);
64391
64431
  if (!offset)
64392
64432
  offset = 0;
64393
64433
  if (this.length === 0)
@@ -64402,7 +64442,7 @@ var require_buffer3 = __commonJS({
64402
64442
  out[offset] = this.value;
64403
64443
  else if (typeof this.value === "string")
64404
64444
  out.write(this.value, offset);
64405
- else if (Buffer3.isBuffer(this.value))
64445
+ else if (Buffer4.isBuffer(this.value))
64406
64446
  this.value.copy(out, offset);
64407
64447
  offset += this.length;
64408
64448
  }
@@ -65019,7 +65059,7 @@ var require_der2 = __commonJS({
65019
65059
  init_buffer();
65020
65060
  init_setInterval();
65021
65061
  var inherits = require_inherits_browser();
65022
- var Buffer3 = require_safer().Buffer;
65062
+ var Buffer4 = require_safer().Buffer;
65023
65063
  var Node2 = require_node();
65024
65064
  var der = require_der();
65025
65065
  function DEREncoder(entity) {
@@ -65040,7 +65080,7 @@ var require_der2 = __commonJS({
65040
65080
  DERNode.prototype._encodeComposite = function encodeComposite(tag, primitive, cls, content) {
65041
65081
  const encodedTag = encodeTag(tag, primitive, cls, this.reporter);
65042
65082
  if (content.length < 128) {
65043
- const header2 = Buffer3.alloc(2);
65083
+ const header2 = Buffer4.alloc(2);
65044
65084
  header2[0] = encodedTag;
65045
65085
  header2[1] = content.length;
65046
65086
  return this._createEncoderBuffer([header2, content]);
@@ -65048,7 +65088,7 @@ var require_der2 = __commonJS({
65048
65088
  let lenOctets = 1;
65049
65089
  for (let i = content.length; i >= 256; i >>= 8)
65050
65090
  lenOctets++;
65051
- const header = Buffer3.alloc(1 + 1 + lenOctets);
65091
+ const header = Buffer4.alloc(1 + 1 + lenOctets);
65052
65092
  header[0] = encodedTag;
65053
65093
  header[1] = 128 | lenOctets;
65054
65094
  for (let i = 1 + lenOctets, j = content.length; j > 0; i--, j >>= 8)
@@ -65059,7 +65099,7 @@ var require_der2 = __commonJS({
65059
65099
  if (tag === "bitstr") {
65060
65100
  return this._createEncoderBuffer([str.unused | 0, str.data]);
65061
65101
  } else if (tag === "bmpstr") {
65062
- const buf = Buffer3.alloc(str.length * 2);
65102
+ const buf = Buffer4.alloc(str.length * 2);
65063
65103
  for (let i = 0; i < str.length; i++) {
65064
65104
  buf.writeUInt16BE(str.charCodeAt(i), i * 2);
65065
65105
  }
@@ -65110,7 +65150,7 @@ var require_der2 = __commonJS({
65110
65150
  for (size++; ident >= 128; ident >>= 7)
65111
65151
  size++;
65112
65152
  }
65113
- const objid = Buffer3.alloc(size);
65153
+ const objid = Buffer4.alloc(size);
65114
65154
  let offset = objid.length - 1;
65115
65155
  for (let i = id.length - 1; i >= 0; i--) {
65116
65156
  let ident = id[i];
@@ -65166,18 +65206,18 @@ var require_der2 = __commonJS({
65166
65206
  }
65167
65207
  num = values[num];
65168
65208
  }
65169
- if (typeof num !== "number" && !Buffer3.isBuffer(num)) {
65209
+ if (typeof num !== "number" && !Buffer4.isBuffer(num)) {
65170
65210
  const numArray = num.toArray();
65171
65211
  if (!num.sign && numArray[0] & 128) {
65172
65212
  numArray.unshift(0);
65173
65213
  }
65174
- num = Buffer3.from(numArray);
65214
+ num = Buffer4.from(numArray);
65175
65215
  }
65176
- if (Buffer3.isBuffer(num)) {
65216
+ if (Buffer4.isBuffer(num)) {
65177
65217
  let size2 = num.length;
65178
65218
  if (num.length === 0)
65179
65219
  size2++;
65180
- const out2 = Buffer3.alloc(size2);
65220
+ const out2 = Buffer4.alloc(size2);
65181
65221
  num.copy(out2);
65182
65222
  if (num.length === 0)
65183
65223
  out2[0] = 0;
@@ -65198,7 +65238,7 @@ var require_der2 = __commonJS({
65198
65238
  if (out[0] & 128) {
65199
65239
  out.unshift(0);
65200
65240
  }
65201
- return this._createEncoderBuffer(Buffer3.from(out));
65241
+ return this._createEncoderBuffer(Buffer4.from(out));
65202
65242
  };
65203
65243
  DERNode.prototype._encodeBool = function encodeBool(value) {
65204
65244
  return this._createEncoderBuffer(value ? 255 : 0);
@@ -65572,7 +65612,7 @@ var require_pem2 = __commonJS({
65572
65612
  init_buffer();
65573
65613
  init_setInterval();
65574
65614
  var inherits = require_inherits_browser();
65575
- var Buffer3 = require_safer().Buffer;
65615
+ var Buffer4 = require_safer().Buffer;
65576
65616
  var DERDecoder = require_der3();
65577
65617
  function PEMDecoder(entity) {
65578
65618
  DERDecoder.call(this, entity);
@@ -65607,7 +65647,7 @@ var require_pem2 = __commonJS({
65607
65647
  throw new Error("PEM section not found for: " + label);
65608
65648
  const base64 = lines.slice(start + 1, end).join("");
65609
65649
  base64.replace(/[^a-z0-9+/=]+/gi, "");
65610
- const input = Buffer3.from(base64, "base64");
65650
+ const input = Buffer4.from(base64, "base64");
65611
65651
  return DERDecoder.prototype.decode.call(this, input, options);
65612
65652
  };
65613
65653
  }
@@ -65969,24 +66009,24 @@ var require_fixProc = __commonJS({
65969
66009
  var fullRegex = /^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r+/=]+)-----END \1-----$/m;
65970
66010
  var evp = require_evp_bytestokey();
65971
66011
  var ciphers = require_browser11();
65972
- var Buffer3 = require_safe_buffer().Buffer;
66012
+ var Buffer4 = require_safe_buffer().Buffer;
65973
66013
  module.exports = function(okey, password) {
65974
66014
  var key = okey.toString();
65975
66015
  var match = key.match(findProc);
65976
66016
  var decrypted;
65977
66017
  if (!match) {
65978
66018
  var match2 = key.match(fullRegex);
65979
- decrypted = Buffer3.from(match2[2].replace(/[\r\n]/g, ""), "base64");
66019
+ decrypted = Buffer4.from(match2[2].replace(/[\r\n]/g, ""), "base64");
65980
66020
  } else {
65981
66021
  var suite = "aes" + match[1];
65982
- var iv = Buffer3.from(match[2], "hex");
65983
- var cipherText = Buffer3.from(match[3].replace(/[\r\n]/g, ""), "base64");
66022
+ var iv = Buffer4.from(match[2], "hex");
66023
+ var cipherText = Buffer4.from(match[3].replace(/[\r\n]/g, ""), "base64");
65984
66024
  var cipherKey = evp(password, iv.slice(0, 8), parseInt(match[1], 10)).key;
65985
66025
  var out = [];
65986
66026
  var cipher = ciphers.createDecipheriv(suite, cipherKey, iv);
65987
66027
  out.push(cipher.update(cipherText));
65988
66028
  out.push(cipher.final());
65989
- decrypted = Buffer3.concat(out);
66029
+ decrypted = Buffer4.concat(out);
65990
66030
  }
65991
66031
  var tag = key.match(startRegex)[1];
65992
66032
  return {
@@ -66009,16 +66049,16 @@ var require_parse_asn1 = __commonJS({
66009
66049
  var fixProc = require_fixProc();
66010
66050
  var ciphers = require_browser11();
66011
66051
  var compat = require_browser10();
66012
- var Buffer3 = require_safe_buffer().Buffer;
66052
+ var Buffer4 = require_safe_buffer().Buffer;
66013
66053
  module.exports = parseKeys;
66014
66054
  function parseKeys(buffer) {
66015
66055
  var password;
66016
- if (typeof buffer === "object" && !Buffer3.isBuffer(buffer)) {
66056
+ if (typeof buffer === "object" && !Buffer4.isBuffer(buffer)) {
66017
66057
  password = buffer.passphrase;
66018
66058
  buffer = buffer.key;
66019
66059
  }
66020
66060
  if (typeof buffer === "string") {
66021
- buffer = Buffer3.from(buffer);
66061
+ buffer = Buffer4.from(buffer);
66022
66062
  }
66023
66063
  var stripped = fixProc(buffer, password);
66024
66064
  var type = stripped.tag;
@@ -66105,7 +66145,7 @@ var require_parse_asn1 = __commonJS({
66105
66145
  var out = [];
66106
66146
  out.push(cipher.update(cipherText));
66107
66147
  out.push(cipher.final());
66108
- return Buffer3.concat(out);
66148
+ return Buffer4.concat(out);
66109
66149
  }
66110
66150
  }
66111
66151
  });
@@ -66131,7 +66171,7 @@ var require_sign = __commonJS({
66131
66171
  init_setImmediate();
66132
66172
  init_buffer();
66133
66173
  init_setInterval();
66134
- var Buffer3 = require_safe_buffer().Buffer;
66174
+ var Buffer4 = require_safe_buffer().Buffer;
66135
66175
  var createHmac = require_browser9();
66136
66176
  var crt = require_browserify_rsa();
66137
66177
  var EC = require_elliptic().ec;
@@ -66152,7 +66192,7 @@ var require_sign = __commonJS({
66152
66192
  if (signType !== "rsa" && signType !== "ecdsa/rsa")
66153
66193
  throw new Error("wrong private key type");
66154
66194
  }
66155
- hash = Buffer3.concat([tag, hash]);
66195
+ hash = Buffer4.concat([tag, hash]);
66156
66196
  var len = priv.modulus.byteLength();
66157
66197
  var pad = [0, 1];
66158
66198
  while (hash.length + pad.length + 1 < len)
@@ -66171,7 +66211,7 @@ var require_sign = __commonJS({
66171
66211
  var curve = new EC(curveId);
66172
66212
  var key = curve.keyFromPrivate(priv.privateKey);
66173
66213
  var out = key.sign(hash);
66174
- return Buffer3.from(out.toDER());
66214
+ return Buffer4.from(out.toDER());
66175
66215
  }
66176
66216
  function dsaSign(hash, priv, algo) {
66177
66217
  var x = priv.params.priv_key;
@@ -66204,22 +66244,22 @@ var require_sign = __commonJS({
66204
66244
  var total = r.length + s.length + 4;
66205
66245
  var res = [48, total, 2, r.length];
66206
66246
  res = res.concat(r, [2, s.length], s);
66207
- return Buffer3.from(res);
66247
+ return Buffer4.from(res);
66208
66248
  }
66209
66249
  function getKey(x, q, hash, algo) {
66210
- x = Buffer3.from(x.toArray());
66250
+ x = Buffer4.from(x.toArray());
66211
66251
  if (x.length < q.byteLength()) {
66212
- var zeros = Buffer3.alloc(q.byteLength() - x.length);
66213
- x = Buffer3.concat([zeros, x]);
66252
+ var zeros = Buffer4.alloc(q.byteLength() - x.length);
66253
+ x = Buffer4.concat([zeros, x]);
66214
66254
  }
66215
66255
  var hlen = hash.length;
66216
66256
  var hbits = bits2octets(hash, q);
66217
- var v = Buffer3.alloc(hlen);
66257
+ var v = Buffer4.alloc(hlen);
66218
66258
  v.fill(1);
66219
- var k = Buffer3.alloc(hlen);
66220
- k = createHmac(algo, k).update(v).update(Buffer3.from([0])).update(x).update(hbits).digest();
66259
+ var k = Buffer4.alloc(hlen);
66260
+ k = createHmac(algo, k).update(v).update(Buffer4.from([0])).update(x).update(hbits).digest();
66221
66261
  v = createHmac(algo, k).update(v).digest();
66222
- k = createHmac(algo, k).update(v).update(Buffer3.from([1])).update(x).update(hbits).digest();
66262
+ k = createHmac(algo, k).update(v).update(Buffer4.from([1])).update(x).update(hbits).digest();
66223
66263
  v = createHmac(algo, k).update(v).digest();
66224
66264
  return { k, v };
66225
66265
  }
@@ -66233,10 +66273,10 @@ var require_sign = __commonJS({
66233
66273
  function bits2octets(bits, q) {
66234
66274
  bits = bits2int(bits, q);
66235
66275
  bits = bits.mod(q);
66236
- var out = Buffer3.from(bits.toArray());
66276
+ var out = Buffer4.from(bits.toArray());
66237
66277
  if (out.length < q.byteLength()) {
66238
- var zeros = Buffer3.alloc(q.byteLength() - out.length);
66239
- out = Buffer3.concat([zeros, out]);
66278
+ var zeros = Buffer4.alloc(q.byteLength() - out.length);
66279
+ out = Buffer4.concat([zeros, out]);
66240
66280
  }
66241
66281
  return out;
66242
66282
  }
@@ -66244,13 +66284,13 @@ var require_sign = __commonJS({
66244
66284
  var t;
66245
66285
  var k;
66246
66286
  do {
66247
- t = Buffer3.alloc(0);
66287
+ t = Buffer4.alloc(0);
66248
66288
  while (t.length * 8 < q.bitLength()) {
66249
66289
  kv.v = createHmac(algo, kv.k).update(kv.v).digest();
66250
- t = Buffer3.concat([t, kv.v]);
66290
+ t = Buffer4.concat([t, kv.v]);
66251
66291
  }
66252
66292
  k = bits2int(t, q);
66253
- kv.k = createHmac(algo, kv.k).update(kv.v).update(Buffer3.from([0])).digest();
66293
+ kv.k = createHmac(algo, kv.k).update(kv.v).update(Buffer4.from([0])).digest();
66254
66294
  kv.v = createHmac(algo, kv.k).update(kv.v).digest();
66255
66295
  } while (k.cmp(q) !== -1);
66256
66296
  return k;
@@ -66271,7 +66311,7 @@ var require_verify = __commonJS({
66271
66311
  init_setImmediate();
66272
66312
  init_buffer();
66273
66313
  init_setInterval();
66274
- var Buffer3 = require_safe_buffer().Buffer;
66314
+ var Buffer4 = require_safe_buffer().Buffer;
66275
66315
  var BN = require_bn3();
66276
66316
  var EC = require_elliptic().ec;
66277
66317
  var parseKeys = require_parse_asn1();
@@ -66290,7 +66330,7 @@ var require_verify = __commonJS({
66290
66330
  if (signType !== "rsa" && signType !== "ecdsa/rsa")
66291
66331
  throw new Error("wrong public key type");
66292
66332
  }
66293
- hash = Buffer3.concat([tag, hash]);
66333
+ hash = Buffer4.concat([tag, hash]);
66294
66334
  var len = pub.modulus.byteLength();
66295
66335
  var pad = [1];
66296
66336
  var padNum = 0;
@@ -66303,11 +66343,11 @@ var require_verify = __commonJS({
66303
66343
  while (++i < hash.length) {
66304
66344
  pad.push(hash[i]);
66305
66345
  }
66306
- pad = Buffer3.from(pad);
66346
+ pad = Buffer4.from(pad);
66307
66347
  var red = BN.mont(pub.modulus);
66308
66348
  sig = new BN(sig).toRed(red);
66309
66349
  sig = sig.redPow(new BN(pub.publicExponent));
66310
- sig = Buffer3.from(sig.fromRed().toArray());
66350
+ sig = Buffer4.from(sig.fromRed().toArray());
66311
66351
  var out = padNum < 8 ? 1 : 0;
66312
66352
  len = Math.min(sig.length, pad.length);
66313
66353
  if (sig.length !== pad.length)
@@ -66357,7 +66397,7 @@ var require_browser14 = __commonJS({
66357
66397
  init_setImmediate();
66358
66398
  init_buffer();
66359
66399
  init_setInterval();
66360
- var Buffer3 = require_safe_buffer().Buffer;
66400
+ var Buffer4 = require_safe_buffer().Buffer;
66361
66401
  var createHash = require_browser8();
66362
66402
  var stream = require_readable_browser();
66363
66403
  var inherits = require_inherits_browser();
@@ -66365,7 +66405,7 @@ var require_browser14 = __commonJS({
66365
66405
  var verify = require_verify();
66366
66406
  var algorithms = require_algorithms();
66367
66407
  Object.keys(algorithms).forEach(function(key) {
66368
- algorithms[key].id = Buffer3.from(algorithms[key].id, "hex");
66408
+ algorithms[key].id = Buffer4.from(algorithms[key].id, "hex");
66369
66409
  algorithms[key.toLowerCase()] = algorithms[key];
66370
66410
  });
66371
66411
  function Sign(algorithm) {
@@ -66385,7 +66425,7 @@ var require_browser14 = __commonJS({
66385
66425
  };
66386
66426
  Sign.prototype.update = function update(data, enc) {
66387
66427
  if (typeof data === "string")
66388
- data = Buffer3.from(data, enc);
66428
+ data = Buffer4.from(data, enc);
66389
66429
  this._hash.update(data);
66390
66430
  return this;
66391
66431
  };
@@ -66411,13 +66451,13 @@ var require_browser14 = __commonJS({
66411
66451
  };
66412
66452
  Verify.prototype.update = function update(data, enc) {
66413
66453
  if (typeof data === "string")
66414
- data = Buffer3.from(data, enc);
66454
+ data = Buffer4.from(data, enc);
66415
66455
  this._hash.update(data);
66416
66456
  return this;
66417
66457
  };
66418
66458
  Verify.prototype.verify = function verifyMethod(key, sig, enc) {
66419
66459
  if (typeof sig === "string")
66420
- sig = Buffer3.from(sig, enc);
66460
+ sig = Buffer4.from(sig, enc);
66421
66461
  this.end();
66422
66462
  var hash = this._hash.digest();
66423
66463
  return verify(sig, hash, key, this._signType, this._tag);
@@ -66567,19 +66607,19 @@ var require_mgf = __commonJS({
66567
66607
  init_buffer();
66568
66608
  init_setInterval();
66569
66609
  var createHash = require_browser8();
66570
- var Buffer3 = require_safe_buffer().Buffer;
66610
+ var Buffer4 = require_safe_buffer().Buffer;
66571
66611
  module.exports = function(seed, len) {
66572
- var t = Buffer3.alloc(0);
66612
+ var t = Buffer4.alloc(0);
66573
66613
  var i = 0;
66574
66614
  var c;
66575
66615
  while (t.length < len) {
66576
66616
  c = i2ops(i++);
66577
- t = Buffer3.concat([t, createHash("sha1").update(seed).update(c).digest()]);
66617
+ t = Buffer4.concat([t, createHash("sha1").update(seed).update(c).digest()]);
66578
66618
  }
66579
66619
  return t.slice(0, len);
66580
66620
  };
66581
66621
  function i2ops(c) {
66582
- var out = Buffer3.allocUnsafe(4);
66622
+ var out = Buffer4.allocUnsafe(4);
66583
66623
  out.writeUInt32BE(c, 0);
66584
66624
  return out;
66585
66625
  }
@@ -66612,9 +66652,9 @@ var require_withPublic = __commonJS({
66612
66652
  init_buffer();
66613
66653
  init_setInterval();
66614
66654
  var BN = require_bn();
66615
- var Buffer3 = require_safe_buffer().Buffer;
66655
+ var Buffer4 = require_safe_buffer().Buffer;
66616
66656
  function withPublic(paddedMsg, key) {
66617
- return Buffer3.from(paddedMsg.toRed(BN.mont(key.modulus)).redPow(new BN(key.publicExponent)).fromRed().toArray());
66657
+ return Buffer4.from(paddedMsg.toRed(BN.mont(key.modulus)).redPow(new BN(key.publicExponent)).fromRed().toArray());
66618
66658
  }
66619
66659
  module.exports = withPublic;
66620
66660
  }
@@ -66635,7 +66675,7 @@ var require_publicEncrypt = __commonJS({
66635
66675
  var BN = require_bn();
66636
66676
  var withPublic = require_withPublic();
66637
66677
  var crt = require_browserify_rsa();
66638
- var Buffer3 = require_safe_buffer().Buffer;
66678
+ var Buffer4 = require_safe_buffer().Buffer;
66639
66679
  module.exports = function publicEncrypt(publicKey, msg, reverse) {
66640
66680
  var padding;
66641
66681
  if (publicKey.padding) {
@@ -66668,18 +66708,18 @@ var require_publicEncrypt = __commonJS({
66668
66708
  function oaep(key, msg) {
66669
66709
  var k = key.modulus.byteLength();
66670
66710
  var mLen = msg.length;
66671
- var iHash = createHash("sha1").update(Buffer3.alloc(0)).digest();
66711
+ var iHash = createHash("sha1").update(Buffer4.alloc(0)).digest();
66672
66712
  var hLen = iHash.length;
66673
66713
  var hLen2 = 2 * hLen;
66674
66714
  if (mLen > k - hLen2 - 2) {
66675
66715
  throw new Error("message too long");
66676
66716
  }
66677
- var ps = Buffer3.alloc(k - mLen - hLen2 - 2);
66717
+ var ps = Buffer4.alloc(k - mLen - hLen2 - 2);
66678
66718
  var dblen = k - hLen - 1;
66679
66719
  var seed = randomBytes(hLen);
66680
- var maskedDb = xor(Buffer3.concat([iHash, ps, Buffer3.alloc(1, 1), msg], dblen), mgf(seed, dblen));
66720
+ var maskedDb = xor(Buffer4.concat([iHash, ps, Buffer4.alloc(1, 1), msg], dblen), mgf(seed, dblen));
66681
66721
  var maskedSeed = xor(seed, mgf(maskedDb, hLen));
66682
- return new BN(Buffer3.concat([Buffer3.alloc(1), maskedSeed, maskedDb], k));
66722
+ return new BN(Buffer4.concat([Buffer4.alloc(1), maskedSeed, maskedDb], k));
66683
66723
  }
66684
66724
  function pkcs1(key, msg, reverse) {
66685
66725
  var mLen = msg.length;
@@ -66689,14 +66729,14 @@ var require_publicEncrypt = __commonJS({
66689
66729
  }
66690
66730
  var ps;
66691
66731
  if (reverse) {
66692
- ps = Buffer3.alloc(k - mLen - 3, 255);
66732
+ ps = Buffer4.alloc(k - mLen - 3, 255);
66693
66733
  } else {
66694
66734
  ps = nonZero(k - mLen - 3);
66695
66735
  }
66696
- return new BN(Buffer3.concat([Buffer3.from([0, reverse ? 1 : 2]), ps, Buffer3.alloc(1), msg], k));
66736
+ return new BN(Buffer4.concat([Buffer4.from([0, reverse ? 1 : 2]), ps, Buffer4.alloc(1), msg], k));
66697
66737
  }
66698
66738
  function nonZero(len) {
66699
- var out = Buffer3.allocUnsafe(len);
66739
+ var out = Buffer4.allocUnsafe(len);
66700
66740
  var i = 0;
66701
66741
  var cache = randomBytes(len * 2);
66702
66742
  var cur = 0;
@@ -66730,7 +66770,7 @@ var require_privateDecrypt = __commonJS({
66730
66770
  var crt = require_browserify_rsa();
66731
66771
  var createHash = require_browser8();
66732
66772
  var withPublic = require_withPublic();
66733
- var Buffer3 = require_safe_buffer().Buffer;
66773
+ var Buffer4 = require_safe_buffer().Buffer;
66734
66774
  module.exports = function privateDecrypt(privateKey, enc, reverse) {
66735
66775
  var padding;
66736
66776
  if (privateKey.padding) {
@@ -66751,8 +66791,8 @@ var require_privateDecrypt = __commonJS({
66751
66791
  } else {
66752
66792
  msg = crt(enc, key);
66753
66793
  }
66754
- var zBuffer = Buffer3.alloc(k - msg.length);
66755
- msg = Buffer3.concat([zBuffer, msg], k);
66794
+ var zBuffer = Buffer4.alloc(k - msg.length);
66795
+ msg = Buffer4.concat([zBuffer, msg], k);
66756
66796
  if (padding === 4) {
66757
66797
  return oaep(key, msg);
66758
66798
  } else if (padding === 1) {
@@ -66765,7 +66805,7 @@ var require_privateDecrypt = __commonJS({
66765
66805
  };
66766
66806
  function oaep(key, msg) {
66767
66807
  var k = key.modulus.byteLength();
66768
- var iHash = createHash("sha1").update(Buffer3.alloc(0)).digest();
66808
+ var iHash = createHash("sha1").update(Buffer4.alloc(0)).digest();
66769
66809
  var hLen = iHash.length;
66770
66810
  if (msg[0] !== 0) {
66771
66811
  throw new Error("decryption error");
@@ -66809,8 +66849,8 @@ var require_privateDecrypt = __commonJS({
66809
66849
  return msg.slice(i);
66810
66850
  }
66811
66851
  function compare(a, b) {
66812
- a = Buffer3.from(a);
66813
- b = Buffer3.from(b);
66852
+ a = Buffer4.from(a);
66853
+ b = Buffer4.from(b);
66814
66854
  var dif = 0;
66815
66855
  var len = a.length;
66816
66856
  if (a.length !== b.length) {
@@ -66857,7 +66897,7 @@ var require_browser17 = __commonJS({
66857
66897
  }
66858
66898
  var safeBuffer = require_safe_buffer();
66859
66899
  var randombytes = require_browser7();
66860
- var Buffer3 = safeBuffer.Buffer;
66900
+ var Buffer4 = safeBuffer.Buffer;
66861
66901
  var kBufferMaxLength = safeBuffer.kMaxLength;
66862
66902
  var crypto = global.crypto || global.msCrypto;
66863
66903
  var kMaxUint32 = Math.pow(2, 32) - 1;
@@ -66891,7 +66931,7 @@ var require_browser17 = __commonJS({
66891
66931
  exports.randomFillSync = oldBrowser;
66892
66932
  }
66893
66933
  function randomFill(buf, offset, size, cb) {
66894
- if (!Buffer3.isBuffer(buf) && !(buf instanceof global.Uint8Array)) {
66934
+ if (!Buffer4.isBuffer(buf) && !(buf instanceof global.Uint8Array)) {
66895
66935
  throw new TypeError('"buf" argument must be a Buffer or Uint8Array');
66896
66936
  }
66897
66937
  if (typeof offset === "function") {
@@ -66939,7 +66979,7 @@ var require_browser17 = __commonJS({
66939
66979
  if (typeof offset === "undefined") {
66940
66980
  offset = 0;
66941
66981
  }
66942
- if (!Buffer3.isBuffer(buf) && !(buf instanceof global.Uint8Array)) {
66982
+ if (!Buffer4.isBuffer(buf) && !(buf instanceof global.Uint8Array)) {
66943
66983
  throw new TypeError('"buf" argument must be a Buffer or Uint8Array');
66944
66984
  }
66945
66985
  assertOffset(offset, buf.length);
@@ -67465,10 +67505,18 @@ var require_render = __commonJS({
67465
67505
  logger
67466
67506
  });
67467
67507
  renders.forEach((render2, index) => {
67508
+ var _a2;
67468
67509
  const [, { resolve, reject }] = batch[index];
67469
67510
  if (render2.status === "need-more-resources") {
67470
- logger.error(`Got unexpected status ${render2.status} in start render response`);
67471
- reject(new Error(`Got unexpected status ${render2.status} in start render response`));
67511
+ try {
67512
+ logger.error(`Got unexpected UFG error in start render response. Doesn't have all the needed assets to render this page on all environments. '
67513
+ + 'Please contact Applitools support at support@applitools.com with the following information: ` + JSON.stringify({ renderId: render2.renderId, jobId: render2.jobId }));
67514
+ logger.error("missing resources: ", (_a2 = render2.needMoreResources) === null || _a2 === void 0 ? void 0 : _a2.join(", ").slice(0, 1e3));
67515
+ logger.error("needMoreDom: ", render2.needMoreDom);
67516
+ logger.error(JSON.stringify(render2).slice(0, 1e3));
67517
+ } finally {
67518
+ reject(new Error(`Got unexpected status ${render2.status} in start render response`));
67519
+ }
67472
67520
  } else {
67473
67521
  resolve(render2);
67474
67522
  }
@@ -79366,7 +79414,7 @@ var require_version = __commonJS({
79366
79414
  init_setImmediate();
79367
79415
  init_buffer();
79368
79416
  init_setInterval();
79369
- module.exports = "1.1.2";
79417
+ module.exports = "1.1.3";
79370
79418
  }
79371
79419
  });
79372
79420
 
@@ -87240,7 +87288,7 @@ var require_package2 = __commonJS({
87240
87288
  "../core/package.json"(exports, module) {
87241
87289
  module.exports = {
87242
87290
  name: "@applitools/core",
87243
- version: "4.15.0",
87291
+ version: "4.16.1",
87244
87292
  homepage: "https://applitools.com",
87245
87293
  bugs: {
87246
87294
  url: "https://github.com/applitools/eyes.sdk.javascript1/issues"
@@ -90697,9 +90745,17 @@ var require_create_render_results = __commonJS({
90697
90745
  exports.makeCreateRenderResults = void 0;
90698
90746
  var ufg_client_1 = require_dist6();
90699
90747
  var to_base_check_settings_1 = require_to_base_check_settings();
90700
- function makeCreateRenderResults(_options) {
90748
+ function makeCreateRenderResults({ logger }) {
90701
90749
  return async function createRenderResults({ renders, rawResults }) {
90702
90750
  const results = rawResults.map((rawResult, index) => (0, ufg_client_1.toRenderResult)(rawResult, { renderId: renders[index].render.renderId }));
90751
+ results.forEach((result, index) => {
90752
+ if (result.status === "error") {
90753
+ logger.error(`Render with id "${renders[index].render.renderId}" failed due to an error - ${result.error}`);
90754
+ throw new Error(`Render with id "${renders[index].render.renderId}" failed due to an error - ${result.error}`);
90755
+ } else if (result.status !== "rendered") {
90756
+ throw new Error(`Unexpected status ${result.status} in get render results response`);
90757
+ }
90758
+ });
90703
90759
  return results.map(({ selectorRegions, renderId, status, error, ...baseTarget }, index) => {
90704
90760
  const { elementReferences: selectors, getBaseCheckSettings } = (0, to_base_check_settings_1.toBaseCheckSettings)({
90705
90761
  settings: renders[index].settings
@@ -90776,7 +90832,7 @@ var require_core5 = __commonJS({
90776
90832
  createRenderTarget: (0, create_render_target_1.makeCreateRenderTarget)({ core, logger }),
90777
90833
  startRenders: (0, start_renders_1.makeStartRenders)({ core, logger }),
90778
90834
  getRenderResults: (0, get_render_results_1.makeGetRenderResults)({ core, logger }),
90779
- createRenderResults: (0, create_render_results_1.makeCreateRenderResults)({ core, logger }),
90835
+ createRenderResults: (0, create_render_results_1.makeCreateRenderResults)({ logger }),
90780
90836
  openEyes: (0, open_eyes_1.makeOpenEyes)({ core, logger })
90781
90837
  };
90782
90838
  }
@@ -91351,7 +91407,7 @@ var require_package3 = __commonJS({
91351
91407
  "../eyes/package.json"(exports, module) {
91352
91408
  module.exports = {
91353
91409
  name: "@applitools/eyes",
91354
- version: "1.19.1",
91410
+ version: "1.20.1",
91355
91411
  keywords: [
91356
91412
  "applitools",
91357
91413
  "eyes",