msgpack5 5.3.2 → 6.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/msgpack5.js CHANGED
@@ -91,7 +91,7 @@ function msgpack (options) {
91
91
 
92
92
  module.exports = msgpack
93
93
 
94
- },{"./lib/codecs/DateCodec":2,"./lib/decoder":3,"./lib/encoder":4,"./lib/helpers.js":5,"./lib/streams":6,"assert":8,"bl":15,"safe-buffer":53}],2:[function(require,module,exports){
94
+ },{"./lib/codecs/DateCodec":2,"./lib/decoder":3,"./lib/encoder":4,"./lib/helpers.js":5,"./lib/streams":6,"assert":7,"bl":14,"safe-buffer":51}],2:[function(require,module,exports){
95
95
  (function (Buffer){(function (){
96
96
  const type = -1
97
97
 
@@ -226,7 +226,7 @@ function decode (buf) {
226
226
  module.exports = { check, type, encode, decode }
227
227
 
228
228
  }).call(this)}).call(this,require("buffer").Buffer)
229
- },{"buffer":17}],3:[function(require,module,exports){
229
+ },{"buffer":16}],3:[function(require,module,exports){
230
230
  'use strict'
231
231
 
232
232
  const bl = require('bl')
@@ -267,238 +267,236 @@ function isValidDataSize (dataLength, bufLength, headerLength) {
267
267
  }
268
268
 
269
269
  module.exports = function buildDecode (decodingTypes, options) {
270
+ const context = { decodingTypes, options, decode }
270
271
  return decode
271
272
 
272
273
  function decode (buf) {
273
- // TODO: Make it into ensureBl handler ?
274
- if (!(buf instanceof bl)) {
275
- buf = bl().append(buf)
274
+ if (!bl.isBufferList(buf)) {
275
+ buf = bl(buf)
276
276
  }
277
277
 
278
- const result = tryDecode(buf, 0)
278
+ const result = tryDecode(buf, 0, context)
279
279
  // Handle worst case ASAP and keep code flat
280
280
  if (!result) throw new IncompleteBufferError()
281
281
 
282
282
  buf.consume(result[1])
283
283
  return result[0]
284
284
  }
285
+ }
285
286
 
286
- function tryDecode (buf, initialOffset) {
287
- if (buf.length <= initialOffset) return null
288
-
289
- const bufLength = buf.length - initialOffset
290
- let offset = initialOffset
291
-
292
- const first = buf.readUInt8(offset)
293
- offset += 1
287
+ function decodeArray (buf, initialOffset, length, headerLength, context) {
288
+ let offset = initialOffset
289
+ const result = []
290
+ let i = 0
294
291
 
295
- const size = SIZES[first] || -1
296
- if (bufLength < size) return null
297
-
298
- const inRange = (start, end) => first >= start && first <= end
299
-
300
- if (first < 0x80) return [first, 1] // 7-bits positive ints
301
- if ((first & 0xf0) === 0x80) {
302
- const length = first & 0x0f
303
- const headerSize = offset - initialOffset
304
- // we have a map with less than 15 elements
305
- return decodeMap(buf, offset, length, headerSize, options)
306
- }
307
- if ((first & 0xf0) === 0x90) {
308
- const length = first & 0x0f
309
- const headerSize = offset - initialOffset
310
- // we have an array with less than 15 elements
311
- return decodeArray(buf, offset, length, headerSize)
312
- }
313
-
314
- if ((first & 0xe0) === 0xa0) {
315
- // fixstr up to 31 bytes
316
- const length = first & 0x1f
317
- if (!isValidDataSize(length, bufLength, 1)) return null
318
- const result = buf.toString('utf8', offset, offset + length)
319
- return [result, length + 1]
320
- }
321
- if (inRange(0xc0, 0xc3)) return decodeConstants(first)
322
- if (inRange(0xc4, 0xc6)) {
323
- const length = buf.readUIntBE(offset, size - 1)
324
- offset += size - 1
325
-
326
- if (!isValidDataSize(length, bufLength, size)) return null
327
- const result = buf.slice(offset, offset + length)
328
- return [result, size + length]
329
- }
330
- if (inRange(0xc7, 0xc9)) {
331
- const length = buf.readUIntBE(offset, size - 2)
332
- offset += size - 2
333
-
334
- const type = buf.readInt8(offset)
335
- offset += 1
336
-
337
- if (!isValidDataSize(length, bufLength, size)) return null
338
- return decodeExt(buf, offset, type, length, size)
339
- }
340
- if (inRange(0xca, 0xcb)) return decodeFloat(buf, offset, size - 1)
341
- if (inRange(0xcc, 0xcf)) return decodeUnsignedInt(buf, offset, size - 1)
342
- if (inRange(0xd0, 0xd3)) return decodeSigned(buf, offset, size - 1)
343
- if (inRange(0xd4, 0xd8)) {
344
- const type = buf.readInt8(offset) // Signed
345
- offset += 1
346
- return decodeExt(buf, offset, type, size - 2, 2)
347
- }
348
-
349
- if (inRange(0xd9, 0xdb)) {
350
- const length = buf.readUIntBE(offset, size - 1)
351
- offset += size - 1
352
-
353
- if (!isValidDataSize(length, bufLength, size)) return null
354
- const result = buf.toString('utf8', offset, offset + length)
355
- return [result, size + length]
356
- }
357
- if (inRange(0xdc, 0xdd)) {
358
- const length = buf.readUIntBE(offset, size - 1)
359
- offset += size - 1
360
- return decodeArray(buf, offset, length, size)
361
- }
362
- if (inRange(0xde, 0xdf)) {
363
- let length
364
- switch (first) {
365
- case 0xde:
366
- // maps up to 2^16 elements - 2 bytes
367
- length = buf.readUInt16BE(offset)
368
- offset += 2
369
- // console.log(offset - initialOffset)
370
- return decodeMap(buf, offset, length, 3, options)
371
-
372
- case 0xdf:
373
- length = buf.readUInt32BE(offset)
374
- offset += 4
375
- return decodeMap(buf, offset, length, 5, options)
376
- }
377
- }
378
- if (first >= 0xe0) return [first - 0x100, 1] // 5 bits negative ints
292
+ while (i++ < length) {
293
+ const decodeResult = tryDecode(buf, offset, context)
294
+ if (!decodeResult) return null
379
295
 
380
- throw new Error('not implemented yet')
296
+ result.push(decodeResult[0])
297
+ offset += decodeResult[1]
381
298
  }
299
+ return [result, headerLength + offset - initialOffset]
300
+ }
382
301
 
383
- function decodeArray (buf, initialOffset, length, headerLength) {
384
- let offset = initialOffset
385
- const result = []
386
- let i = 0
302
+ function decodeMap (buf, offset, length, headerLength, context) {
303
+ const _temp = decodeArray(buf, offset, 2 * length, headerLength, context)
304
+ if (!_temp) return null
305
+ const [result, consumedBytes] = _temp
387
306
 
388
- while (i++ < length) {
389
- const decodeResult = tryDecode(buf, offset)
390
- if (!decodeResult) return null
307
+ let isPlainObject = !context.options.preferMap
391
308
 
392
- result.push(decodeResult[0])
393
- offset += decodeResult[1]
309
+ if (isPlainObject) {
310
+ for (let i = 0; i < 2 * length; i += 2) {
311
+ if (typeof result[i] !== 'string') {
312
+ isPlainObject = false
313
+ break
314
+ }
394
315
  }
395
- return [result, headerLength + offset - initialOffset]
396
316
  }
397
317
 
398
- function decodeMap (buf, offset, length, headerLength, options) {
399
- const _temp = decodeArray(buf, offset, 2 * length, headerLength)
400
- if (!_temp) return null
401
- const [result, consumedBytes] = _temp
318
+ if (isPlainObject) {
319
+ const object = {}
320
+ for (let i = 0; i < 2 * length; i += 2) {
321
+ const key = result[i]
322
+ const val = result[i + 1]
402
323
 
403
- let isPlainObject = !options.preferMap
324
+ if (key === '__proto__') {
325
+ if (context.options.protoAction === 'error') {
326
+ throw new SyntaxError('Object contains forbidden prototype property')
327
+ }
404
328
 
405
- if (isPlainObject) {
406
- for (let i = 0; i < 2 * length; i += 2) {
407
- if (typeof result[i] !== 'string') {
408
- isPlainObject = false
409
- break
329
+ if (context.options.protoAction === 'remove') {
330
+ continue
410
331
  }
411
332
  }
412
- }
413
333
 
414
- if (isPlainObject) {
415
- const object = {}
416
- for (let i = 0; i < 2 * length; i += 2) {
417
- const key = result[i]
418
- const val = result[i + 1]
334
+ object[key] = val
335
+ }
336
+ return [object, consumedBytes]
337
+ } else {
338
+ const mapping = new Map()
339
+ for (let i = 0; i < 2 * length; i += 2) {
340
+ const key = result[i]
341
+ const val = result[i + 1]
342
+ mapping.set(key, val)
343
+ }
344
+ return [mapping, consumedBytes]
345
+ }
346
+ }
419
347
 
420
- if (key === '__proto__') {
421
- if (options.protoAction === 'error') {
422
- throw new SyntaxError('Object contains forbidden prototype property')
423
- }
348
+ function tryDecode (buf, initialOffset, context) {
349
+ if (buf.length <= initialOffset) return null
424
350
 
425
- if (options.protoAction === 'remove') {
426
- continue
427
- }
428
- }
351
+ const bufLength = buf.length - initialOffset
352
+ let offset = initialOffset
429
353
 
430
- object[key] = val
431
- }
432
- return [object, consumedBytes]
433
- } else {
434
- const mapping = new Map()
435
- for (let i = 0; i < 2 * length; i += 2) {
436
- const key = result[i]
437
- const val = result[i + 1]
438
- mapping.set(key, val)
439
- }
440
- return [mapping, consumedBytes]
441
- }
442
- }
354
+ const first = buf.readUInt8(offset)
355
+ offset += 1
443
356
 
444
- function readInt64BE (buf, offset) {
445
- var negate = (buf[offset] & 0x80) == 0x80; // eslint-disable-line
357
+ const size = SIZES[first] || -1
358
+ if (bufLength < size) return null
446
359
 
447
- if (negate) {
448
- let carry = 1
449
- for (let i = offset + 7; i >= offset; i--) {
450
- const v = (buf[i] ^ 0xff) + carry
451
- buf[i] = v & 0xff
452
- carry = v >> 8
453
- }
454
- }
360
+ if (first < 0x80) return [first, 1] // 7-bits positive ints
361
+ if ((first & 0xf0) === 0x80) {
362
+ const length = first & 0x0f
363
+ const headerSize = offset - initialOffset
364
+ // we have a map with less than 15 elements
365
+ return decodeMap(buf, offset, length, headerSize, context)
366
+ }
367
+ if ((first & 0xf0) === 0x90) {
368
+ const length = first & 0x0f
369
+ const headerSize = offset - initialOffset
370
+ // we have an array with less than 15 elements
371
+ return decodeArray(buf, offset, length, headerSize, context)
372
+ }
455
373
 
456
- const hi = buf.readUInt32BE(offset + 0)
457
- const lo = buf.readUInt32BE(offset + 4)
458
- return (hi * 4294967296 + lo) * (negate ? -1 : +1)
374
+ if ((first & 0xe0) === 0xa0) {
375
+ // fixstr up to 31 bytes
376
+ const length = first & 0x1f
377
+ if (!isValidDataSize(length, bufLength, 1)) return null
378
+ const result = buf.toString('utf8', offset, offset + length)
379
+ return [result, length + 1]
459
380
  }
381
+ if (first >= 0xc0 && first <= 0xc3) return decodeConstants(first)
382
+ if (first >= 0xc4 && first <= 0xc6) {
383
+ const length = buf.readUIntBE(offset, size - 1)
384
+ offset += size - 1
460
385
 
461
- function decodeUnsignedInt (buf, offset, size) {
462
- const maxOffset = offset + size
463
- let result = 0
464
- while (offset < maxOffset) { result += buf.readUInt8(offset++) * Math.pow(256, maxOffset - offset) }
465
- return [result, size + 1]
386
+ if (!isValidDataSize(length, bufLength, size)) return null
387
+ const result = buf.slice(offset, offset + length)
388
+ return [result, size + length]
466
389
  }
390
+ if (first >= 0xc7 && first <= 0xc9) {
391
+ const length = buf.readUIntBE(offset, size - 2)
392
+ offset += size - 2
467
393
 
468
- function decodeConstants (first) {
469
- if (first === 0xc0) return [null, 1]
470
- if (first === 0xc2) return [false, 1]
471
- if (first === 0xc3) return [true, 1]
394
+ const type = buf.readInt8(offset)
395
+ offset += 1
396
+
397
+ if (!isValidDataSize(length, bufLength, size)) return null
398
+ return decodeExt(buf, offset, type, length, size, context)
399
+ }
400
+ if (first >= 0xca && first <= 0xcb) return decodeFloat(buf, offset, size - 1)
401
+ if (first >= 0xcc && first <= 0xcf) return decodeUnsignedInt(buf, offset, size - 1)
402
+ if (first >= 0xd0 && first <= 0xd3) return decodeSigned(buf, offset, size - 1)
403
+ if (first >= 0xd4 && first <= 0xd8) {
404
+ const type = buf.readInt8(offset) // Signed
405
+ offset += 1
406
+ return decodeExt(buf, offset, type, size - 2, 2, context)
472
407
  }
473
408
 
474
- function decodeSigned (buf, offset, size) {
475
- let result
476
- if (size === 1) result = buf.readInt8(offset)
477
- if (size === 2) result = buf.readInt16BE(offset)
478
- if (size === 4) result = buf.readInt32BE(offset)
479
- if (size === 8) result = readInt64BE(buf.slice(offset, offset + 8), 0)
480
- return [result, size + 1]
409
+ if (first >= 0xd9 && first <= 0xdb) {
410
+ const length = buf.readUIntBE(offset, size - 1)
411
+ offset += size - 1
412
+
413
+ if (!isValidDataSize(length, bufLength, size)) return null
414
+ const result = buf.toString('utf8', offset, offset + length)
415
+ return [result, size + length]
416
+ }
417
+ if (first >= 0xdc && first <= 0xdd) {
418
+ const length = buf.readUIntBE(offset, size - 1)
419
+ offset += size - 1
420
+ return decodeArray(buf, offset, length, size, context)
481
421
  }
422
+ if (first >= 0xde && first <= 0xdf) {
423
+ let length
424
+ switch (first) {
425
+ case 0xde:
426
+ // maps up to 2^16 elements - 2 bytes
427
+ length = buf.readUInt16BE(offset)
428
+ offset += 2
429
+ // console.log(offset - initialOffset)
430
+ return decodeMap(buf, offset, length, 3, context)
482
431
 
483
- function decodeFloat (buf, offset, size) {
484
- let result
485
- if (size === 4) result = buf.readFloatBE(offset)
486
- if (size === 8) result = buf.readDoubleBE(offset)
487
- return [result, size + 1]
432
+ case 0xdf:
433
+ length = buf.readUInt32BE(offset)
434
+ offset += 4
435
+ return decodeMap(buf, offset, length, 5, context)
436
+ }
488
437
  }
438
+ if (first >= 0xe0) return [first - 0x100, 1] // 5 bits negative ints
439
+
440
+ throw new Error('not implemented yet')
441
+ }
442
+
443
+ function decodeSigned (buf, offset, size) {
444
+ let result
445
+ if (size === 1) result = buf.readInt8(offset)
446
+ if (size === 2) result = buf.readInt16BE(offset)
447
+ if (size === 4) result = buf.readInt32BE(offset)
448
+ if (size === 8) result = readInt64BE(buf.slice(offset, offset + 8), 0)
449
+ return [result, size + 1]
450
+ }
451
+
452
+ function decodeExt (buf, offset, type, size, headerSize, context) {
453
+ const toDecode = buf.slice(offset, offset + size)
454
+
455
+ const decode = context.decodingTypes.get(type)
456
+ if (!decode) throw new Error('unable to find ext type ' + type)
457
+
458
+ const value = decode(toDecode)
459
+ return [value, headerSize + size]
460
+ }
461
+
462
+ function decodeUnsignedInt (buf, offset, size) {
463
+ const maxOffset = offset + size
464
+ let result = 0
465
+ while (offset < maxOffset) { result += buf.readUInt8(offset++) * Math.pow(256, maxOffset - offset) }
466
+ return [result, size + 1]
467
+ }
468
+
469
+ function decodeConstants (first) {
470
+ if (first === 0xc0) return [null, 1]
471
+ if (first === 0xc2) return [false, 1]
472
+ if (first === 0xc3) return [true, 1]
473
+ }
489
474
 
490
- function decodeExt (buf, offset, type, size, headerSize) {
491
- const toDecode = buf.slice(offset, offset + size)
475
+ function decodeFloat (buf, offset, size) {
476
+ let result
477
+ if (size === 4) result = buf.readFloatBE(offset)
478
+ if (size === 8) result = buf.readDoubleBE(offset)
479
+ return [result, size + 1]
480
+ }
492
481
 
493
- const decode = decodingTypes.get(type)
494
- if (!decode) throw new Error('unable to find ext type ' + type)
482
+ function readInt64BE (buf, offset) {
483
+ var negate = (buf[offset] & 0x80) == 0x80; // eslint-disable-line
495
484
 
496
- const value = decode(toDecode)
497
- return [value, headerSize + size]
485
+ if (negate) {
486
+ let carry = 1
487
+ for (let i = offset + 7; i >= offset; i--) {
488
+ const v = (buf[i] ^ 0xff) + carry
489
+ buf[i] = v & 0xff
490
+ carry = v >> 8
491
+ }
498
492
  }
493
+
494
+ const hi = buf.readUInt32BE(offset + 0)
495
+ const lo = buf.readUInt32BE(offset + 4)
496
+ return (hi * 4294967296 + lo) * (negate ? -1 : +1)
499
497
  }
500
498
 
501
- },{"./helpers.js":5,"bl":15}],4:[function(require,module,exports){
499
+ },{"./helpers.js":5,"bl":14}],4:[function(require,module,exports){
502
500
  'use strict'
503
501
 
504
502
  const Buffer = require('safe-buffer').Buffer
@@ -777,7 +775,7 @@ function encodeNumber (obj, options) {
777
775
  // return n
778
776
  // }
779
777
 
780
- },{"./helpers.js":5,"bl":15,"safe-buffer":53}],5:[function(require,module,exports){
778
+ },{"./helpers.js":5,"bl":14,"safe-buffer":51}],5:[function(require,module,exports){
781
779
  'use strict'
782
780
 
783
781
  const util = require('util')
@@ -799,7 +797,7 @@ exports.isFloat = function isFloat (n) {
799
797
  return n % 1 !== 0
800
798
  }
801
799
 
802
- },{"util":57}],6:[function(require,module,exports){
800
+ },{"util":56}],6:[function(require,module,exports){
803
801
  'use strict'
804
802
 
805
803
  const Transform = require('readable-stream').Transform
@@ -891,34 +889,7 @@ Decoder.prototype._transform = function (buf, enc, done) {
891
889
  module.exports.decoder = Decoder
892
890
  module.exports.encoder = Encoder
893
891
 
894
- },{"bl":15,"inherits":30,"readable-stream":52}],7:[function(require,module,exports){
895
-
896
- /**
897
- * Array#filter.
898
- *
899
- * @param {Array} arr
900
- * @param {Function} fn
901
- * @param {Object=} self
902
- * @return {Array}
903
- * @throw TypeError
904
- */
905
-
906
- module.exports = function (arr, fn, self) {
907
- if (arr.filter) return arr.filter(fn, self);
908
- if (void 0 === arr || null === arr) throw new TypeError;
909
- if ('function' != typeof fn) throw new TypeError;
910
- var ret = [];
911
- for (var i = 0; i < arr.length; i++) {
912
- if (!hasOwn.call(arr, i)) continue;
913
- var val = arr[i];
914
- if (fn.call(self, val, i, arr)) ret.push(val);
915
- }
916
- return ret;
917
- };
918
-
919
- var hasOwn = Object.prototype.hasOwnProperty;
920
-
921
- },{}],8:[function(require,module,exports){
892
+ },{"bl":14,"inherits":30,"readable-stream":50}],7:[function(require,module,exports){
922
893
  (function (global){(function (){
923
894
  'use strict';
924
895
 
@@ -1428,7 +1399,7 @@ var objectKeys = Object.keys || function (obj) {
1428
1399
  };
1429
1400
 
1430
1401
  }).call(this)}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
1431
- },{"object-assign":34,"util/":11}],9:[function(require,module,exports){
1402
+ },{"object-assign":34,"util/":10}],8:[function(require,module,exports){
1432
1403
  if (typeof Object.create === 'function') {
1433
1404
  // implementation from standard node.js 'util' module
1434
1405
  module.exports = function inherits(ctor, superCtor) {
@@ -1453,14 +1424,14 @@ if (typeof Object.create === 'function') {
1453
1424
  }
1454
1425
  }
1455
1426
 
1456
- },{}],10:[function(require,module,exports){
1427
+ },{}],9:[function(require,module,exports){
1457
1428
  module.exports = function isBuffer(arg) {
1458
1429
  return arg && typeof arg === 'object'
1459
1430
  && typeof arg.copy === 'function'
1460
1431
  && typeof arg.fill === 'function'
1461
1432
  && typeof arg.readUInt8 === 'function';
1462
1433
  }
1463
- },{}],11:[function(require,module,exports){
1434
+ },{}],10:[function(require,module,exports){
1464
1435
  (function (process,global){(function (){
1465
1436
  // Copyright Joyent, Inc. and other Node contributors.
1466
1437
  //
@@ -2050,32 +2021,38 @@ function hasOwnProperty(obj, prop) {
2050
2021
  }
2051
2022
 
2052
2023
  }).call(this)}).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
2053
- },{"./support/isBuffer":10,"_process":35,"inherits":9}],12:[function(require,module,exports){
2024
+ },{"./support/isBuffer":9,"_process":35,"inherits":8}],11:[function(require,module,exports){
2054
2025
  (function (global){(function (){
2055
2026
  'use strict';
2056
2027
 
2057
- var filter = require('array-filter');
2028
+ var possibleNames = [
2029
+ 'BigInt64Array',
2030
+ 'BigUint64Array',
2031
+ 'Float32Array',
2032
+ 'Float64Array',
2033
+ 'Int16Array',
2034
+ 'Int32Array',
2035
+ 'Int8Array',
2036
+ 'Uint16Array',
2037
+ 'Uint32Array',
2038
+ 'Uint8Array',
2039
+ 'Uint8ClampedArray'
2040
+ ];
2041
+
2042
+ var g = typeof globalThis === 'undefined' ? global : globalThis;
2058
2043
 
2059
2044
  module.exports = function availableTypedArrays() {
2060
- return filter([
2061
- 'BigInt64Array',
2062
- 'BigUint64Array',
2063
- 'Float32Array',
2064
- 'Float64Array',
2065
- 'Int16Array',
2066
- 'Int32Array',
2067
- 'Int8Array',
2068
- 'Uint16Array',
2069
- 'Uint32Array',
2070
- 'Uint8Array',
2071
- 'Uint8ClampedArray'
2072
- ], function (typedArray) {
2073
- return typeof global[typedArray] === 'function';
2074
- });
2045
+ var out = [];
2046
+ for (var i = 0; i < possibleNames.length; i++) {
2047
+ if (typeof g[possibleNames[i]] === 'function') {
2048
+ out[out.length] = possibleNames[i];
2049
+ }
2050
+ }
2051
+ return out;
2075
2052
  };
2076
2053
 
2077
2054
  }).call(this)}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
2078
- },{"array-filter":7}],13:[function(require,module,exports){
2055
+ },{}],12:[function(require,module,exports){
2079
2056
  'use strict'
2080
2057
 
2081
2058
  exports.byteLength = byteLength
@@ -2227,7 +2204,7 @@ function fromByteArray (uint8) {
2227
2204
  return parts.join('')
2228
2205
  }
2229
2206
 
2230
- },{}],14:[function(require,module,exports){
2207
+ },{}],13:[function(require,module,exports){
2231
2208
  'use strict'
2232
2209
 
2233
2210
  const { Buffer } = require('buffer')
@@ -2625,7 +2602,7 @@ BufferList.isBufferList = function isBufferList (b) {
2625
2602
 
2626
2603
  module.exports = BufferList
2627
2604
 
2628
- },{"buffer":17}],15:[function(require,module,exports){
2605
+ },{"buffer":16}],14:[function(require,module,exports){
2629
2606
  'use strict'
2630
2607
 
2631
2608
  const DuplexStream = require('readable-stream').Duplex
@@ -2711,9 +2688,9 @@ module.exports = BufferListStream
2711
2688
  module.exports.BufferListStream = BufferListStream
2712
2689
  module.exports.BufferList = BufferList
2713
2690
 
2714
- },{"./BufferList":14,"inherits":30,"readable-stream":52}],16:[function(require,module,exports){
2691
+ },{"./BufferList":13,"inherits":30,"readable-stream":50}],15:[function(require,module,exports){
2715
2692
 
2716
- },{}],17:[function(require,module,exports){
2693
+ },{}],16:[function(require,module,exports){
2717
2694
  (function (Buffer){(function (){
2718
2695
  /*!
2719
2696
  * The buffer module from node.js, for the browser.
@@ -4494,7 +4471,7 @@ function numberIsNaN (obj) {
4494
4471
  }
4495
4472
 
4496
4473
  }).call(this)}).call(this,require("buffer").Buffer)
4497
- },{"base64-js":13,"buffer":17,"ieee754":29}],18:[function(require,module,exports){
4474
+ },{"base64-js":12,"buffer":16,"ieee754":29}],17:[function(require,module,exports){
4498
4475
  'use strict';
4499
4476
 
4500
4477
  var GetIntrinsic = require('get-intrinsic');
@@ -4511,7 +4488,7 @@ module.exports = function callBoundIntrinsic(name, allowMissing) {
4511
4488
  return intrinsic;
4512
4489
  };
4513
4490
 
4514
- },{"./":19,"get-intrinsic":25}],19:[function(require,module,exports){
4491
+ },{"./":18,"get-intrinsic":24}],18:[function(require,module,exports){
4515
4492
  'use strict';
4516
4493
 
4517
4494
  var bind = require('function-bind');
@@ -4560,12 +4537,12 @@ if ($defineProperty) {
4560
4537
  module.exports.apply = applyBind;
4561
4538
  }
4562
4539
 
4563
- },{"function-bind":24,"get-intrinsic":25}],20:[function(require,module,exports){
4540
+ },{"function-bind":23,"get-intrinsic":24}],19:[function(require,module,exports){
4564
4541
  'use strict';
4565
4542
 
4566
4543
  var GetIntrinsic = require('get-intrinsic');
4567
4544
 
4568
- var $gOPD = GetIntrinsic('%Object.getOwnPropertyDescriptor%');
4545
+ var $gOPD = GetIntrinsic('%Object.getOwnPropertyDescriptor%', true);
4569
4546
  if ($gOPD) {
4570
4547
  try {
4571
4548
  $gOPD([], 'length');
@@ -4577,7 +4554,7 @@ if ($gOPD) {
4577
4554
 
4578
4555
  module.exports = $gOPD;
4579
4556
 
4580
- },{"get-intrinsic":25}],21:[function(require,module,exports){
4557
+ },{"get-intrinsic":24}],20:[function(require,module,exports){
4581
4558
  // Copyright Joyent, Inc. and other Node contributors.
4582
4559
  //
4583
4560
  // Permission is hereby granted, free of charge, to any person obtaining a
@@ -5076,7 +5053,7 @@ function eventTargetAgnosticAddListener(emitter, name, listener, flags) {
5076
5053
  }
5077
5054
  }
5078
5055
 
5079
- },{}],22:[function(require,module,exports){
5056
+ },{}],21:[function(require,module,exports){
5080
5057
 
5081
5058
  var hasOwn = Object.prototype.hasOwnProperty;
5082
5059
  var toString = Object.prototype.toString;
@@ -5100,7 +5077,7 @@ module.exports = function forEach (obj, fn, ctx) {
5100
5077
  };
5101
5078
 
5102
5079
 
5103
- },{}],23:[function(require,module,exports){
5080
+ },{}],22:[function(require,module,exports){
5104
5081
  'use strict';
5105
5082
 
5106
5083
  /* eslint no-invalid-this: 1 */
@@ -5154,14 +5131,14 @@ module.exports = function bind(that) {
5154
5131
  return bound;
5155
5132
  };
5156
5133
 
5157
- },{}],24:[function(require,module,exports){
5134
+ },{}],23:[function(require,module,exports){
5158
5135
  'use strict';
5159
5136
 
5160
5137
  var implementation = require('./implementation');
5161
5138
 
5162
5139
  module.exports = Function.prototype.bind || implementation;
5163
5140
 
5164
- },{"./implementation":23}],25:[function(require,module,exports){
5141
+ },{"./implementation":22}],24:[function(require,module,exports){
5165
5142
  'use strict';
5166
5143
 
5167
5144
  var undefined;
@@ -5493,7 +5470,7 @@ module.exports = function GetIntrinsic(name, allowMissing) {
5493
5470
  return value;
5494
5471
  };
5495
5472
 
5496
- },{"function-bind":24,"has":28,"has-symbols":26}],26:[function(require,module,exports){
5473
+ },{"function-bind":23,"has":28,"has-symbols":25}],25:[function(require,module,exports){
5497
5474
  'use strict';
5498
5475
 
5499
5476
  var origSymbol = typeof Symbol !== 'undefined' && Symbol;
@@ -5508,7 +5485,7 @@ module.exports = function hasNativeSymbols() {
5508
5485
  return hasSymbolSham();
5509
5486
  };
5510
5487
 
5511
- },{"./shams":27}],27:[function(require,module,exports){
5488
+ },{"./shams":26}],26:[function(require,module,exports){
5512
5489
  'use strict';
5513
5490
 
5514
5491
  /* eslint complexity: [2, 18], max-statements: [2, 33] */
@@ -5552,14 +5529,23 @@ module.exports = function hasSymbols() {
5552
5529
  return true;
5553
5530
  };
5554
5531
 
5555
- },{}],28:[function(require,module,exports){
5532
+ },{}],27:[function(require,module,exports){
5533
+ 'use strict';
5534
+
5535
+ var hasSymbols = require('has-symbols/shams');
5536
+
5537
+ module.exports = function hasToStringTagShams() {
5538
+ return hasSymbols() && !!Symbol.toStringTag;
5539
+ };
5540
+
5541
+ },{"has-symbols/shams":26}],28:[function(require,module,exports){
5556
5542
  'use strict';
5557
5543
 
5558
5544
  var bind = require('function-bind');
5559
5545
 
5560
5546
  module.exports = bind.call(Function.call, Object.prototype.hasOwnProperty);
5561
5547
 
5562
- },{"function-bind":24}],29:[function(require,module,exports){
5548
+ },{"function-bind":23}],29:[function(require,module,exports){
5563
5549
  /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
5564
5550
  exports.read = function (buffer, offset, isLE, mLen, nBytes) {
5565
5551
  var e, m
@@ -5678,7 +5664,7 @@ if (typeof Object.create === 'function') {
5678
5664
  },{}],31:[function(require,module,exports){
5679
5665
  'use strict';
5680
5666
 
5681
- var hasToStringTag = typeof Symbol === 'function' && typeof Symbol.toStringTag === 'symbol';
5667
+ var hasToStringTag = require('has-tostringtag/shams')();
5682
5668
  var callBound = require('call-bind/callBound');
5683
5669
 
5684
5670
  var $toString = callBound('Object.prototype.toString');
@@ -5710,13 +5696,13 @@ isStandardArguments.isLegacyArguments = isLegacyArguments; // for tests
5710
5696
 
5711
5697
  module.exports = supportsStandardArguments ? isStandardArguments : isLegacyArguments;
5712
5698
 
5713
- },{"call-bind/callBound":18}],32:[function(require,module,exports){
5699
+ },{"call-bind/callBound":17,"has-tostringtag/shams":27}],32:[function(require,module,exports){
5714
5700
  'use strict';
5715
5701
 
5716
5702
  var toStr = Object.prototype.toString;
5717
5703
  var fnToStr = Function.prototype.toString;
5718
5704
  var isFnRegex = /^\s*(?:function)?\*/;
5719
- var hasToStringTag = typeof Symbol === 'function' && typeof Symbol.toStringTag === 'symbol';
5705
+ var hasToStringTag = require('has-tostringtag/shams')();
5720
5706
  var getProto = Object.getPrototypeOf;
5721
5707
  var getGeneratorFunc = function () { // eslint-disable-line consistent-return
5722
5708
  if (!hasToStringTag) {
@@ -5727,8 +5713,7 @@ var getGeneratorFunc = function () { // eslint-disable-line consistent-return
5727
5713
  } catch (e) {
5728
5714
  }
5729
5715
  };
5730
- var generatorFunc = getGeneratorFunc();
5731
- var GeneratorFunction = getProto && generatorFunc ? getProto(generatorFunc) : false;
5716
+ var GeneratorFunction;
5732
5717
 
5733
5718
  module.exports = function isGeneratorFunction(fn) {
5734
5719
  if (typeof fn !== 'function') {
@@ -5741,10 +5726,17 @@ module.exports = function isGeneratorFunction(fn) {
5741
5726
  var str = toStr.call(fn);
5742
5727
  return str === '[object GeneratorFunction]';
5743
5728
  }
5744
- return getProto && getProto(fn) === GeneratorFunction;
5729
+ if (!getProto) {
5730
+ return false;
5731
+ }
5732
+ if (typeof GeneratorFunction === 'undefined') {
5733
+ var generatorFunc = getGeneratorFunc();
5734
+ GeneratorFunction = generatorFunc ? getProto(generatorFunc) : false;
5735
+ }
5736
+ return getProto(fn) === GeneratorFunction;
5745
5737
  };
5746
5738
 
5747
- },{}],33:[function(require,module,exports){
5739
+ },{"has-tostringtag/shams":27}],33:[function(require,module,exports){
5748
5740
  (function (global){(function (){
5749
5741
  'use strict';
5750
5742
 
@@ -5753,9 +5745,9 @@ var availableTypedArrays = require('available-typed-arrays');
5753
5745
  var callBound = require('call-bind/callBound');
5754
5746
 
5755
5747
  var $toString = callBound('Object.prototype.toString');
5756
- var hasSymbols = require('has-symbols')();
5757
- var hasToStringTag = hasSymbols && typeof Symbol.toStringTag === 'symbol';
5748
+ var hasToStringTag = require('has-tostringtag/shams')();
5758
5749
 
5750
+ var g = typeof globalThis === 'undefined' ? global : globalThis;
5759
5751
  var typedArrays = availableTypedArrays();
5760
5752
 
5761
5753
  var $indexOf = callBound('Array.prototype.indexOf', true) || function indexOf(array, value) {
@@ -5772,17 +5764,16 @@ var gOPD = require('es-abstract/helpers/getOwnPropertyDescriptor');
5772
5764
  var getPrototypeOf = Object.getPrototypeOf; // require('getprototypeof');
5773
5765
  if (hasToStringTag && gOPD && getPrototypeOf) {
5774
5766
  forEach(typedArrays, function (typedArray) {
5775
- var arr = new global[typedArray]();
5776
- if (!(Symbol.toStringTag in arr)) {
5777
- throw new EvalError('this engine has support for Symbol.toStringTag, but ' + typedArray + ' does not have the property! Please report this.');
5778
- }
5779
- var proto = getPrototypeOf(arr);
5780
- var descriptor = gOPD(proto, Symbol.toStringTag);
5781
- if (!descriptor) {
5782
- var superProto = getPrototypeOf(proto);
5783
- descriptor = gOPD(superProto, Symbol.toStringTag);
5767
+ var arr = new g[typedArray]();
5768
+ if (Symbol.toStringTag in arr) {
5769
+ var proto = getPrototypeOf(arr);
5770
+ var descriptor = gOPD(proto, Symbol.toStringTag);
5771
+ if (!descriptor) {
5772
+ var superProto = getPrototypeOf(proto);
5773
+ descriptor = gOPD(superProto, Symbol.toStringTag);
5774
+ }
5775
+ toStrTags[typedArray] = descriptor.get;
5784
5776
  }
5785
- toStrTags[typedArray] = descriptor.get;
5786
5777
  });
5787
5778
  }
5788
5779
 
@@ -5800,7 +5791,7 @@ var tryTypedArrays = function tryAllTypedArrays(value) {
5800
5791
 
5801
5792
  module.exports = function isTypedArray(value) {
5802
5793
  if (!value || typeof value !== 'object') { return false; }
5803
- if (!hasToStringTag) {
5794
+ if (!hasToStringTag || !(Symbol.toStringTag in value)) {
5804
5795
  var tag = $slice($toString(value), 8, -1);
5805
5796
  return $indexOf(typedArrays, tag) > -1;
5806
5797
  }
@@ -5809,7 +5800,7 @@ module.exports = function isTypedArray(value) {
5809
5800
  };
5810
5801
 
5811
5802
  }).call(this)}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
5812
- },{"available-typed-arrays":12,"call-bind/callBound":18,"es-abstract/helpers/getOwnPropertyDescriptor":20,"foreach":22,"has-symbols":26}],34:[function(require,module,exports){
5803
+ },{"available-typed-arrays":11,"call-bind/callBound":17,"es-abstract/helpers/getOwnPropertyDescriptor":19,"foreach":21,"has-tostringtag/shams":27}],34:[function(require,module,exports){
5813
5804
  /*
5814
5805
  object-assign
5815
5806
  (c) Sindre Sorhus
@@ -7525,7 +7516,7 @@ function indexOf(xs, x) {
7525
7516
  return -1;
7526
7517
  }
7527
7518
  }).call(this)}).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
7528
- },{"../errors":36,"./_stream_duplex":37,"./internal/streams/async_iterator":42,"./internal/streams/buffer_list":43,"./internal/streams/destroy":44,"./internal/streams/from":46,"./internal/streams/state":48,"./internal/streams/stream":49,"_process":35,"buffer":17,"events":21,"inherits":30,"string_decoder/":51,"util":16}],40:[function(require,module,exports){
7519
+ },{"../errors":36,"./_stream_duplex":37,"./internal/streams/async_iterator":42,"./internal/streams/buffer_list":43,"./internal/streams/destroy":44,"./internal/streams/from":46,"./internal/streams/state":48,"./internal/streams/stream":49,"_process":35,"buffer":16,"events":20,"inherits":30,"string_decoder/":52,"util":15}],40:[function(require,module,exports){
7529
7520
  // Copyright Joyent, Inc. and other Node contributors.
7530
7521
  //
7531
7522
  // Permission is hereby granted, free of charge, to any person obtaining a
@@ -8427,7 +8418,7 @@ Writable.prototype._destroy = function (err, cb) {
8427
8418
  cb(err);
8428
8419
  };
8429
8420
  }).call(this)}).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
8430
- },{"../errors":36,"./_stream_duplex":37,"./internal/streams/destroy":44,"./internal/streams/state":48,"./internal/streams/stream":49,"_process":35,"buffer":17,"inherits":30,"util-deprecate":54}],42:[function(require,module,exports){
8421
+ },{"../errors":36,"./_stream_duplex":37,"./internal/streams/destroy":44,"./internal/streams/state":48,"./internal/streams/stream":49,"_process":35,"buffer":16,"inherits":30,"util-deprecate":53}],42:[function(require,module,exports){
8431
8422
  (function (process){(function (){
8432
8423
  'use strict';
8433
8424
 
@@ -8848,7 +8839,7 @@ function () {
8848
8839
 
8849
8840
  return BufferList;
8850
8841
  }();
8851
- },{"buffer":17,"util":16}],44:[function(require,module,exports){
8842
+ },{"buffer":16,"util":15}],44:[function(require,module,exports){
8852
8843
  (function (process){(function (){
8853
8844
  'use strict'; // undocumented cb() API, needed for core, not for public API
8854
8845
 
@@ -9195,7 +9186,19 @@ module.exports = {
9195
9186
  },{"../../../errors":36}],49:[function(require,module,exports){
9196
9187
  module.exports = require('events').EventEmitter;
9197
9188
 
9198
- },{"events":21}],50:[function(require,module,exports){
9189
+ },{"events":20}],50:[function(require,module,exports){
9190
+ exports = module.exports = require('./lib/_stream_readable.js');
9191
+ exports.Stream = exports;
9192
+ exports.Readable = exports;
9193
+ exports.Writable = require('./lib/_stream_writable.js');
9194
+ exports.Duplex = require('./lib/_stream_duplex.js');
9195
+ exports.Transform = require('./lib/_stream_transform.js');
9196
+ exports.PassThrough = require('./lib/_stream_passthrough.js');
9197
+ exports.finished = require('./lib/internal/streams/end-of-stream.js');
9198
+ exports.pipeline = require('./lib/internal/streams/pipeline.js');
9199
+
9200
+ },{"./lib/_stream_duplex.js":37,"./lib/_stream_passthrough.js":38,"./lib/_stream_readable.js":39,"./lib/_stream_transform.js":40,"./lib/_stream_writable.js":41,"./lib/internal/streams/end-of-stream.js":45,"./lib/internal/streams/pipeline.js":47}],51:[function(require,module,exports){
9201
+ /*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
9199
9202
  /* eslint-disable node/no-deprecated-api */
9200
9203
  var buffer = require('buffer')
9201
9204
  var Buffer = buffer.Buffer
@@ -9218,6 +9221,8 @@ function SafeBuffer (arg, encodingOrOffset, length) {
9218
9221
  return Buffer(arg, encodingOrOffset, length)
9219
9222
  }
9220
9223
 
9224
+ SafeBuffer.prototype = Object.create(Buffer.prototype)
9225
+
9221
9226
  // Copy static methods from Buffer
9222
9227
  copyProps(Buffer, SafeBuffer)
9223
9228
 
@@ -9259,7 +9264,7 @@ SafeBuffer.allocUnsafeSlow = function (size) {
9259
9264
  return buffer.SlowBuffer(size)
9260
9265
  }
9261
9266
 
9262
- },{"buffer":17}],51:[function(require,module,exports){
9267
+ },{"buffer":16}],52:[function(require,module,exports){
9263
9268
  // Copyright Joyent, Inc. and other Node contributors.
9264
9269
  //
9265
9270
  // Permission is hereby granted, free of charge, to any person obtaining a
@@ -9556,85 +9561,7 @@ function simpleWrite(buf) {
9556
9561
  function simpleEnd(buf) {
9557
9562
  return buf && buf.length ? this.write(buf) : '';
9558
9563
  }
9559
- },{"safe-buffer":50}],52:[function(require,module,exports){
9560
- exports = module.exports = require('./lib/_stream_readable.js');
9561
- exports.Stream = exports;
9562
- exports.Readable = exports;
9563
- exports.Writable = require('./lib/_stream_writable.js');
9564
- exports.Duplex = require('./lib/_stream_duplex.js');
9565
- exports.Transform = require('./lib/_stream_transform.js');
9566
- exports.PassThrough = require('./lib/_stream_passthrough.js');
9567
- exports.finished = require('./lib/internal/streams/end-of-stream.js');
9568
- exports.pipeline = require('./lib/internal/streams/pipeline.js');
9569
-
9570
- },{"./lib/_stream_duplex.js":37,"./lib/_stream_passthrough.js":38,"./lib/_stream_readable.js":39,"./lib/_stream_transform.js":40,"./lib/_stream_writable.js":41,"./lib/internal/streams/end-of-stream.js":45,"./lib/internal/streams/pipeline.js":47}],53:[function(require,module,exports){
9571
- /*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
9572
- /* eslint-disable node/no-deprecated-api */
9573
- var buffer = require('buffer')
9574
- var Buffer = buffer.Buffer
9575
-
9576
- // alternative to using Object.keys for old browsers
9577
- function copyProps (src, dst) {
9578
- for (var key in src) {
9579
- dst[key] = src[key]
9580
- }
9581
- }
9582
- if (Buffer.from && Buffer.alloc && Buffer.allocUnsafe && Buffer.allocUnsafeSlow) {
9583
- module.exports = buffer
9584
- } else {
9585
- // Copy properties from require('buffer')
9586
- copyProps(buffer, exports)
9587
- exports.Buffer = SafeBuffer
9588
- }
9589
-
9590
- function SafeBuffer (arg, encodingOrOffset, length) {
9591
- return Buffer(arg, encodingOrOffset, length)
9592
- }
9593
-
9594
- SafeBuffer.prototype = Object.create(Buffer.prototype)
9595
-
9596
- // Copy static methods from Buffer
9597
- copyProps(Buffer, SafeBuffer)
9598
-
9599
- SafeBuffer.from = function (arg, encodingOrOffset, length) {
9600
- if (typeof arg === 'number') {
9601
- throw new TypeError('Argument must not be a number')
9602
- }
9603
- return Buffer(arg, encodingOrOffset, length)
9604
- }
9605
-
9606
- SafeBuffer.alloc = function (size, fill, encoding) {
9607
- if (typeof size !== 'number') {
9608
- throw new TypeError('Argument must be a number')
9609
- }
9610
- var buf = Buffer(size)
9611
- if (fill !== undefined) {
9612
- if (typeof encoding === 'string') {
9613
- buf.fill(fill, encoding)
9614
- } else {
9615
- buf.fill(fill)
9616
- }
9617
- } else {
9618
- buf.fill(0)
9619
- }
9620
- return buf
9621
- }
9622
-
9623
- SafeBuffer.allocUnsafe = function (size) {
9624
- if (typeof size !== 'number') {
9625
- throw new TypeError('Argument must be a number')
9626
- }
9627
- return Buffer(size)
9628
- }
9629
-
9630
- SafeBuffer.allocUnsafeSlow = function (size) {
9631
- if (typeof size !== 'number') {
9632
- throw new TypeError('Argument must be a number')
9633
- }
9634
- return buffer.SlowBuffer(size)
9635
- }
9636
-
9637
- },{"buffer":17}],54:[function(require,module,exports){
9564
+ },{"safe-buffer":51}],53:[function(require,module,exports){
9638
9565
  (function (global){(function (){
9639
9566
 
9640
9567
  /**
@@ -9705,9 +9632,9 @@ function config (name) {
9705
9632
  }
9706
9633
 
9707
9634
  }).call(this)}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
9708
- },{}],55:[function(require,module,exports){
9709
- arguments[4][10][0].apply(exports,arguments)
9710
- },{"dup":10}],56:[function(require,module,exports){
9635
+ },{}],54:[function(require,module,exports){
9636
+ arguments[4][9][0].apply(exports,arguments)
9637
+ },{"dup":9}],55:[function(require,module,exports){
9711
9638
  // Currently in sync with Node.js lib/internal/util/types.js
9712
9639
  // https://github.com/nodejs/node/commit/112cc7c27551254aa2b17098fb774867f05ed0d9
9713
9640
 
@@ -9945,21 +9872,23 @@ function isDataView(value) {
9945
9872
  }
9946
9873
  exports.isDataView = isDataView;
9947
9874
 
9875
+ // Store a copy of SharedArrayBuffer in case it's deleted elsewhere
9876
+ var SharedArrayBufferCopy = typeof SharedArrayBuffer !== 'undefined' ? SharedArrayBuffer : undefined;
9948
9877
  function isSharedArrayBufferToString(value) {
9949
9878
  return ObjectToString(value) === '[object SharedArrayBuffer]';
9950
9879
  }
9951
- isSharedArrayBufferToString.working = (
9952
- typeof SharedArrayBuffer !== 'undefined' &&
9953
- isSharedArrayBufferToString(new SharedArrayBuffer())
9954
- );
9955
9880
  function isSharedArrayBuffer(value) {
9956
- if (typeof SharedArrayBuffer === 'undefined') {
9881
+ if (typeof SharedArrayBufferCopy === 'undefined') {
9957
9882
  return false;
9958
9883
  }
9959
9884
 
9885
+ if (typeof isSharedArrayBufferToString.working === 'undefined') {
9886
+ isSharedArrayBufferToString.working = isSharedArrayBufferToString(new SharedArrayBufferCopy());
9887
+ }
9888
+
9960
9889
  return isSharedArrayBufferToString.working
9961
9890
  ? isSharedArrayBufferToString(value)
9962
- : value instanceof SharedArrayBuffer;
9891
+ : value instanceof SharedArrayBufferCopy;
9963
9892
  }
9964
9893
  exports.isSharedArrayBuffer = isSharedArrayBuffer;
9965
9894
 
@@ -10041,7 +9970,7 @@ exports.isAnyArrayBuffer = isAnyArrayBuffer;
10041
9970
  });
10042
9971
  });
10043
9972
 
10044
- },{"is-arguments":31,"is-generator-function":32,"is-typed-array":33,"which-typed-array":58}],57:[function(require,module,exports){
9973
+ },{"is-arguments":31,"is-generator-function":32,"is-typed-array":33,"which-typed-array":57}],56:[function(require,module,exports){
10045
9974
  (function (process){(function (){
10046
9975
  // Copyright Joyent, Inc. and other Node contributors.
10047
9976
  //
@@ -10760,7 +10689,7 @@ function callbackify(original) {
10760
10689
  exports.callbackify = callbackify;
10761
10690
 
10762
10691
  }).call(this)}).call(this,require('_process'))
10763
- },{"./support/isBuffer":55,"./support/types":56,"_process":35,"inherits":30}],58:[function(require,module,exports){
10692
+ },{"./support/isBuffer":54,"./support/types":55,"_process":35,"inherits":30}],57:[function(require,module,exports){
10764
10693
  (function (global){(function (){
10765
10694
  'use strict';
10766
10695
 
@@ -10769,9 +10698,9 @@ var availableTypedArrays = require('available-typed-arrays');
10769
10698
  var callBound = require('call-bind/callBound');
10770
10699
 
10771
10700
  var $toString = callBound('Object.prototype.toString');
10772
- var hasSymbols = require('has-symbols')();
10773
- var hasToStringTag = hasSymbols && typeof Symbol.toStringTag === 'symbol';
10701
+ var hasToStringTag = require('has-tostringtag/shams')();
10774
10702
 
10703
+ var g = typeof globalThis === 'undefined' ? global : globalThis;
10775
10704
  var typedArrays = availableTypedArrays();
10776
10705
 
10777
10706
  var $slice = callBound('String.prototype.slice');
@@ -10780,18 +10709,17 @@ var gOPD = require('es-abstract/helpers/getOwnPropertyDescriptor');
10780
10709
  var getPrototypeOf = Object.getPrototypeOf; // require('getprototypeof');
10781
10710
  if (hasToStringTag && gOPD && getPrototypeOf) {
10782
10711
  forEach(typedArrays, function (typedArray) {
10783
- if (typeof global[typedArray] === 'function') {
10784
- var arr = new global[typedArray]();
10785
- if (!(Symbol.toStringTag in arr)) {
10786
- throw new EvalError('this engine has support for Symbol.toStringTag, but ' + typedArray + ' does not have the property! Please report this.');
10787
- }
10788
- var proto = getPrototypeOf(arr);
10789
- var descriptor = gOPD(proto, Symbol.toStringTag);
10790
- if (!descriptor) {
10791
- var superProto = getPrototypeOf(proto);
10792
- descriptor = gOPD(superProto, Symbol.toStringTag);
10712
+ if (typeof g[typedArray] === 'function') {
10713
+ var arr = new g[typedArray]();
10714
+ if (Symbol.toStringTag in arr) {
10715
+ var proto = getPrototypeOf(arr);
10716
+ var descriptor = gOPD(proto, Symbol.toStringTag);
10717
+ if (!descriptor) {
10718
+ var superProto = getPrototypeOf(proto);
10719
+ descriptor = gOPD(superProto, Symbol.toStringTag);
10720
+ }
10721
+ toStrTags[typedArray] = descriptor.get;
10793
10722
  }
10794
- toStrTags[typedArray] = descriptor.get;
10795
10723
  }
10796
10724
  });
10797
10725
  }
@@ -10815,10 +10743,10 @@ var isTypedArray = require('is-typed-array');
10815
10743
 
10816
10744
  module.exports = function whichTypedArray(value) {
10817
10745
  if (!isTypedArray(value)) { return false; }
10818
- if (!hasToStringTag) { return $slice($toString(value), 8, -1); }
10746
+ if (!hasToStringTag || !(Symbol.toStringTag in value)) { return $slice($toString(value), 8, -1); }
10819
10747
  return tryTypedArrays(value);
10820
10748
  };
10821
10749
 
10822
10750
  }).call(this)}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
10823
- },{"available-typed-arrays":12,"call-bind/callBound":18,"es-abstract/helpers/getOwnPropertyDescriptor":20,"foreach":22,"has-symbols":26,"is-typed-array":33}]},{},[1])(1)
10751
+ },{"available-typed-arrays":11,"call-bind/callBound":17,"es-abstract/helpers/getOwnPropertyDescriptor":19,"foreach":21,"has-tostringtag/shams":27,"is-typed-array":33}]},{},[1])(1)
10824
10752
  });