@interopio/fdc3 2.6.1 → 2.7.1-beta.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/fdc3.electron.es.js +542 -457
- package/dist/fdc3.electron.umd.js +542 -457
- package/dist/fdc3.es.js +576 -482
- package/dist/fdc3.umd.js +576 -482
- package/package.json +3 -3
package/dist/fdc3.electron.es.js
CHANGED
|
@@ -29,10 +29,10 @@ function getAugmentedNamespace(n) {
|
|
|
29
29
|
return a;
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
-
var toStr$
|
|
32
|
+
var toStr$5 = Object.prototype.toString;
|
|
33
33
|
|
|
34
34
|
var isArguments$3 = function isArguments(value) {
|
|
35
|
-
var str = toStr$
|
|
35
|
+
var str = toStr$5.call(value);
|
|
36
36
|
var isArgs = str === '[object Arguments]';
|
|
37
37
|
if (!isArgs) {
|
|
38
38
|
isArgs = str !== '[object Array]' &&
|
|
@@ -40,7 +40,7 @@ var isArguments$3 = function isArguments(value) {
|
|
|
40
40
|
typeof value === 'object' &&
|
|
41
41
|
typeof value.length === 'number' &&
|
|
42
42
|
value.length >= 0 &&
|
|
43
|
-
toStr$
|
|
43
|
+
toStr$5.call(value.callee) === '[object Function]';
|
|
44
44
|
}
|
|
45
45
|
return isArgs;
|
|
46
46
|
};
|
|
@@ -226,10 +226,10 @@ var syntax = SyntaxError;
|
|
|
226
226
|
var type = TypeError;
|
|
227
227
|
|
|
228
228
|
/** @type {import('./gOPD')} */
|
|
229
|
-
var gOPD$
|
|
229
|
+
var gOPD$6 = Object.getOwnPropertyDescriptor;
|
|
230
230
|
|
|
231
231
|
/** @type {import('.')} */
|
|
232
|
-
var $gOPD$2 = gOPD$
|
|
232
|
+
var $gOPD$2 = gOPD$6;
|
|
233
233
|
|
|
234
234
|
if ($gOPD$2) {
|
|
235
235
|
try {
|
|
@@ -245,7 +245,7 @@ var gopd$1 = $gOPD$2;
|
|
|
245
245
|
var $defineProperty$2 = esDefineProperty;
|
|
246
246
|
|
|
247
247
|
var $SyntaxError$2 = syntax;
|
|
248
|
-
var $TypeError$
|
|
248
|
+
var $TypeError$b = type;
|
|
249
249
|
|
|
250
250
|
var gopd = gopd$1;
|
|
251
251
|
|
|
@@ -256,22 +256,22 @@ var defineDataProperty$1 = function defineDataProperty(
|
|
|
256
256
|
value
|
|
257
257
|
) {
|
|
258
258
|
if (!obj || (typeof obj !== 'object' && typeof obj !== 'function')) {
|
|
259
|
-
throw new $TypeError$
|
|
259
|
+
throw new $TypeError$b('`obj` must be an object or a function`');
|
|
260
260
|
}
|
|
261
261
|
if (typeof property !== 'string' && typeof property !== 'symbol') {
|
|
262
|
-
throw new $TypeError$
|
|
262
|
+
throw new $TypeError$b('`property` must be a string or a symbol`');
|
|
263
263
|
}
|
|
264
264
|
if (arguments.length > 3 && typeof arguments[3] !== 'boolean' && arguments[3] !== null) {
|
|
265
|
-
throw new $TypeError$
|
|
265
|
+
throw new $TypeError$b('`nonEnumerable`, if provided, must be a boolean or null');
|
|
266
266
|
}
|
|
267
267
|
if (arguments.length > 4 && typeof arguments[4] !== 'boolean' && arguments[4] !== null) {
|
|
268
|
-
throw new $TypeError$
|
|
268
|
+
throw new $TypeError$b('`nonWritable`, if provided, must be a boolean or null');
|
|
269
269
|
}
|
|
270
270
|
if (arguments.length > 5 && typeof arguments[5] !== 'boolean' && arguments[5] !== null) {
|
|
271
|
-
throw new $TypeError$
|
|
271
|
+
throw new $TypeError$b('`nonConfigurable`, if provided, must be a boolean or null');
|
|
272
272
|
}
|
|
273
273
|
if (arguments.length > 6 && typeof arguments[6] !== 'boolean') {
|
|
274
|
-
throw new $TypeError$
|
|
274
|
+
throw new $TypeError$b('`loose`, if provided, must be a boolean');
|
|
275
275
|
}
|
|
276
276
|
|
|
277
277
|
var nonEnumerable = arguments.length > 3 ? arguments[3] : null;
|
|
@@ -321,12 +321,12 @@ var hasPropertyDescriptors_1 = hasPropertyDescriptors;
|
|
|
321
321
|
var keys = objectKeys$2;
|
|
322
322
|
var hasSymbols$5 = typeof Symbol === 'function' && typeof Symbol('foo') === 'symbol';
|
|
323
323
|
|
|
324
|
-
var toStr$
|
|
324
|
+
var toStr$4 = Object.prototype.toString;
|
|
325
325
|
var concat = Array.prototype.concat;
|
|
326
326
|
var defineDataProperty = defineDataProperty$1;
|
|
327
327
|
|
|
328
328
|
var isFunction = function (fn) {
|
|
329
|
-
return typeof fn === 'function' && toStr$
|
|
329
|
+
return typeof fn === 'function' && toStr$4.call(fn) === '[object Function]';
|
|
330
330
|
};
|
|
331
331
|
|
|
332
332
|
var supportsDescriptors$2 = hasPropertyDescriptors_1();
|
|
@@ -364,112 +364,7 @@ defineProperties$1.supportsDescriptors = !!supportsDescriptors$2;
|
|
|
364
364
|
|
|
365
365
|
var defineProperties_1 = defineProperties$1;
|
|
366
366
|
|
|
367
|
-
var callBind$
|
|
368
|
-
|
|
369
|
-
var implementation$9;
|
|
370
|
-
var hasRequiredImplementation;
|
|
371
|
-
|
|
372
|
-
function requireImplementation () {
|
|
373
|
-
if (hasRequiredImplementation) return implementation$9;
|
|
374
|
-
hasRequiredImplementation = 1;
|
|
375
|
-
|
|
376
|
-
/* eslint no-invalid-this: 1 */
|
|
377
|
-
|
|
378
|
-
var ERROR_MESSAGE = 'Function.prototype.bind called on incompatible ';
|
|
379
|
-
var toStr = Object.prototype.toString;
|
|
380
|
-
var max = Math.max;
|
|
381
|
-
var funcType = '[object Function]';
|
|
382
|
-
|
|
383
|
-
var concatty = function concatty(a, b) {
|
|
384
|
-
var arr = [];
|
|
385
|
-
|
|
386
|
-
for (var i = 0; i < a.length; i += 1) {
|
|
387
|
-
arr[i] = a[i];
|
|
388
|
-
}
|
|
389
|
-
for (var j = 0; j < b.length; j += 1) {
|
|
390
|
-
arr[j + a.length] = b[j];
|
|
391
|
-
}
|
|
392
|
-
|
|
393
|
-
return arr;
|
|
394
|
-
};
|
|
395
|
-
|
|
396
|
-
var slicy = function slicy(arrLike, offset) {
|
|
397
|
-
var arr = [];
|
|
398
|
-
for (var i = offset, j = 0; i < arrLike.length; i += 1, j += 1) {
|
|
399
|
-
arr[j] = arrLike[i];
|
|
400
|
-
}
|
|
401
|
-
return arr;
|
|
402
|
-
};
|
|
403
|
-
|
|
404
|
-
var joiny = function (arr, joiner) {
|
|
405
|
-
var str = '';
|
|
406
|
-
for (var i = 0; i < arr.length; i += 1) {
|
|
407
|
-
str += arr[i];
|
|
408
|
-
if (i + 1 < arr.length) {
|
|
409
|
-
str += joiner;
|
|
410
|
-
}
|
|
411
|
-
}
|
|
412
|
-
return str;
|
|
413
|
-
};
|
|
414
|
-
|
|
415
|
-
implementation$9 = function bind(that) {
|
|
416
|
-
var target = this;
|
|
417
|
-
if (typeof target !== 'function' || toStr.apply(target) !== funcType) {
|
|
418
|
-
throw new TypeError(ERROR_MESSAGE + target);
|
|
419
|
-
}
|
|
420
|
-
var args = slicy(arguments, 1);
|
|
421
|
-
|
|
422
|
-
var bound;
|
|
423
|
-
var binder = function () {
|
|
424
|
-
if (this instanceof bound) {
|
|
425
|
-
var result = target.apply(
|
|
426
|
-
this,
|
|
427
|
-
concatty(args, arguments)
|
|
428
|
-
);
|
|
429
|
-
if (Object(result) === result) {
|
|
430
|
-
return result;
|
|
431
|
-
}
|
|
432
|
-
return this;
|
|
433
|
-
}
|
|
434
|
-
return target.apply(
|
|
435
|
-
that,
|
|
436
|
-
concatty(args, arguments)
|
|
437
|
-
);
|
|
438
|
-
|
|
439
|
-
};
|
|
440
|
-
|
|
441
|
-
var boundLength = max(0, target.length - args.length);
|
|
442
|
-
var boundArgs = [];
|
|
443
|
-
for (var i = 0; i < boundLength; i++) {
|
|
444
|
-
boundArgs[i] = '$' + i;
|
|
445
|
-
}
|
|
446
|
-
|
|
447
|
-
bound = Function('binder', 'return function (' + joiny(boundArgs, ',') + '){ return binder.apply(this,arguments); }')(binder);
|
|
448
|
-
|
|
449
|
-
if (target.prototype) {
|
|
450
|
-
var Empty = function Empty() {};
|
|
451
|
-
Empty.prototype = target.prototype;
|
|
452
|
-
bound.prototype = new Empty();
|
|
453
|
-
Empty.prototype = null;
|
|
454
|
-
}
|
|
455
|
-
|
|
456
|
-
return bound;
|
|
457
|
-
};
|
|
458
|
-
return implementation$9;
|
|
459
|
-
}
|
|
460
|
-
|
|
461
|
-
var functionBind;
|
|
462
|
-
var hasRequiredFunctionBind;
|
|
463
|
-
|
|
464
|
-
function requireFunctionBind () {
|
|
465
|
-
if (hasRequiredFunctionBind) return functionBind;
|
|
466
|
-
hasRequiredFunctionBind = 1;
|
|
467
|
-
|
|
468
|
-
var implementation = requireImplementation();
|
|
469
|
-
|
|
470
|
-
functionBind = Function.prototype.bind || implementation;
|
|
471
|
-
return functionBind;
|
|
472
|
-
}
|
|
367
|
+
var callBind$7 = {exports: {}};
|
|
473
368
|
|
|
474
369
|
/** @type {import('.')} */
|
|
475
370
|
var esObjectAtoms = Object;
|
|
@@ -614,6 +509,111 @@ function requireObject_getPrototypeOf () {
|
|
|
614
509
|
return Object_getPrototypeOf;
|
|
615
510
|
}
|
|
616
511
|
|
|
512
|
+
var implementation$9;
|
|
513
|
+
var hasRequiredImplementation;
|
|
514
|
+
|
|
515
|
+
function requireImplementation () {
|
|
516
|
+
if (hasRequiredImplementation) return implementation$9;
|
|
517
|
+
hasRequiredImplementation = 1;
|
|
518
|
+
|
|
519
|
+
/* eslint no-invalid-this: 1 */
|
|
520
|
+
|
|
521
|
+
var ERROR_MESSAGE = 'Function.prototype.bind called on incompatible ';
|
|
522
|
+
var toStr = Object.prototype.toString;
|
|
523
|
+
var max = Math.max;
|
|
524
|
+
var funcType = '[object Function]';
|
|
525
|
+
|
|
526
|
+
var concatty = function concatty(a, b) {
|
|
527
|
+
var arr = [];
|
|
528
|
+
|
|
529
|
+
for (var i = 0; i < a.length; i += 1) {
|
|
530
|
+
arr[i] = a[i];
|
|
531
|
+
}
|
|
532
|
+
for (var j = 0; j < b.length; j += 1) {
|
|
533
|
+
arr[j + a.length] = b[j];
|
|
534
|
+
}
|
|
535
|
+
|
|
536
|
+
return arr;
|
|
537
|
+
};
|
|
538
|
+
|
|
539
|
+
var slicy = function slicy(arrLike, offset) {
|
|
540
|
+
var arr = [];
|
|
541
|
+
for (var i = offset, j = 0; i < arrLike.length; i += 1, j += 1) {
|
|
542
|
+
arr[j] = arrLike[i];
|
|
543
|
+
}
|
|
544
|
+
return arr;
|
|
545
|
+
};
|
|
546
|
+
|
|
547
|
+
var joiny = function (arr, joiner) {
|
|
548
|
+
var str = '';
|
|
549
|
+
for (var i = 0; i < arr.length; i += 1) {
|
|
550
|
+
str += arr[i];
|
|
551
|
+
if (i + 1 < arr.length) {
|
|
552
|
+
str += joiner;
|
|
553
|
+
}
|
|
554
|
+
}
|
|
555
|
+
return str;
|
|
556
|
+
};
|
|
557
|
+
|
|
558
|
+
implementation$9 = function bind(that) {
|
|
559
|
+
var target = this;
|
|
560
|
+
if (typeof target !== 'function' || toStr.apply(target) !== funcType) {
|
|
561
|
+
throw new TypeError(ERROR_MESSAGE + target);
|
|
562
|
+
}
|
|
563
|
+
var args = slicy(arguments, 1);
|
|
564
|
+
|
|
565
|
+
var bound;
|
|
566
|
+
var binder = function () {
|
|
567
|
+
if (this instanceof bound) {
|
|
568
|
+
var result = target.apply(
|
|
569
|
+
this,
|
|
570
|
+
concatty(args, arguments)
|
|
571
|
+
);
|
|
572
|
+
if (Object(result) === result) {
|
|
573
|
+
return result;
|
|
574
|
+
}
|
|
575
|
+
return this;
|
|
576
|
+
}
|
|
577
|
+
return target.apply(
|
|
578
|
+
that,
|
|
579
|
+
concatty(args, arguments)
|
|
580
|
+
);
|
|
581
|
+
|
|
582
|
+
};
|
|
583
|
+
|
|
584
|
+
var boundLength = max(0, target.length - args.length);
|
|
585
|
+
var boundArgs = [];
|
|
586
|
+
for (var i = 0; i < boundLength; i++) {
|
|
587
|
+
boundArgs[i] = '$' + i;
|
|
588
|
+
}
|
|
589
|
+
|
|
590
|
+
bound = Function('binder', 'return function (' + joiny(boundArgs, ',') + '){ return binder.apply(this,arguments); }')(binder);
|
|
591
|
+
|
|
592
|
+
if (target.prototype) {
|
|
593
|
+
var Empty = function Empty() {};
|
|
594
|
+
Empty.prototype = target.prototype;
|
|
595
|
+
bound.prototype = new Empty();
|
|
596
|
+
Empty.prototype = null;
|
|
597
|
+
}
|
|
598
|
+
|
|
599
|
+
return bound;
|
|
600
|
+
};
|
|
601
|
+
return implementation$9;
|
|
602
|
+
}
|
|
603
|
+
|
|
604
|
+
var functionBind;
|
|
605
|
+
var hasRequiredFunctionBind;
|
|
606
|
+
|
|
607
|
+
function requireFunctionBind () {
|
|
608
|
+
if (hasRequiredFunctionBind) return functionBind;
|
|
609
|
+
hasRequiredFunctionBind = 1;
|
|
610
|
+
|
|
611
|
+
var implementation = requireImplementation();
|
|
612
|
+
|
|
613
|
+
functionBind = Function.prototype.bind || implementation;
|
|
614
|
+
return functionBind;
|
|
615
|
+
}
|
|
616
|
+
|
|
617
617
|
var functionCall;
|
|
618
618
|
var hasRequiredFunctionCall;
|
|
619
619
|
|
|
@@ -641,128 +641,101 @@ function requireFunctionApply () {
|
|
|
641
641
|
/** @type {import('./reflectApply')} */
|
|
642
642
|
var reflectApply$1 = typeof Reflect !== 'undefined' && Reflect && Reflect.apply;
|
|
643
643
|
|
|
644
|
-
var bind$
|
|
644
|
+
var bind$4 = requireFunctionBind();
|
|
645
645
|
|
|
646
|
-
var $apply$
|
|
646
|
+
var $apply$2 = requireFunctionApply();
|
|
647
647
|
var $call$2 = requireFunctionCall();
|
|
648
648
|
var $reflectApply = reflectApply$1;
|
|
649
649
|
|
|
650
650
|
/** @type {import('./actualApply')} */
|
|
651
|
-
var actualApply = $reflectApply || bind$
|
|
651
|
+
var actualApply$1 = $reflectApply || bind$4.call($call$2, $apply$2);
|
|
652
652
|
|
|
653
|
-
var bind$
|
|
654
|
-
var $TypeError$
|
|
653
|
+
var bind$3 = requireFunctionBind();
|
|
654
|
+
var $TypeError$a = type;
|
|
655
655
|
|
|
656
656
|
var $call$1 = requireFunctionCall();
|
|
657
|
-
var $actualApply = actualApply;
|
|
657
|
+
var $actualApply = actualApply$1;
|
|
658
658
|
|
|
659
|
-
/** @type {import('.')
|
|
659
|
+
/** @type {(args: [Function, thisArg?: unknown, ...args: unknown[]]) => Function} TODO FIXME, find a way to use import('.') */
|
|
660
660
|
var callBindApplyHelpers = function callBindBasic(args) {
|
|
661
661
|
if (args.length < 1 || typeof args[0] !== 'function') {
|
|
662
|
-
throw new $TypeError$
|
|
662
|
+
throw new $TypeError$a('a function is required');
|
|
663
663
|
}
|
|
664
|
-
return $actualApply(bind$
|
|
664
|
+
return $actualApply(bind$3, $call$1, args);
|
|
665
665
|
};
|
|
666
666
|
|
|
667
|
-
var
|
|
668
|
-
var
|
|
669
|
-
|
|
670
|
-
function requireGet () {
|
|
671
|
-
if (hasRequiredGet) return get;
|
|
672
|
-
hasRequiredGet = 1;
|
|
673
|
-
|
|
674
|
-
var callBind = callBindApplyHelpers;
|
|
675
|
-
var gOPD = gopd$1;
|
|
667
|
+
var callBind$6 = callBindApplyHelpers;
|
|
668
|
+
var gOPD$5 = gopd$1;
|
|
676
669
|
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
}
|
|
670
|
+
var hasProtoAccessor;
|
|
671
|
+
try {
|
|
672
|
+
// eslint-disable-next-line no-extra-parens, no-proto
|
|
673
|
+
hasProtoAccessor = /** @type {{ __proto__?: typeof Array.prototype }} */ ([]).__proto__ === Array.prototype;
|
|
674
|
+
} catch (e) {
|
|
675
|
+
if (!e || typeof e !== 'object' || !('code' in e) || e.code !== 'ERR_PROTO_ACCESS') {
|
|
676
|
+
throw e;
|
|
685
677
|
}
|
|
686
|
-
|
|
687
|
-
// eslint-disable-next-line no-extra-parens
|
|
688
|
-
var desc = !!hasProtoAccessor && gOPD && gOPD(Object.prototype, /** @type {keyof typeof Object.prototype} */ ('__proto__'));
|
|
689
|
-
|
|
690
|
-
var $Object = Object;
|
|
691
|
-
var $getPrototypeOf = $Object.getPrototypeOf;
|
|
692
|
-
|
|
693
|
-
/** @type {import('./get')} */
|
|
694
|
-
get = desc && typeof desc.get === 'function'
|
|
695
|
-
? callBind([desc.get])
|
|
696
|
-
: typeof $getPrototypeOf === 'function'
|
|
697
|
-
? /** @type {import('./get')} */ function getDunder(value) {
|
|
698
|
-
// eslint-disable-next-line eqeqeq
|
|
699
|
-
return $getPrototypeOf(value == null ? value : $Object(value));
|
|
700
|
-
}
|
|
701
|
-
: false;
|
|
702
|
-
return get;
|
|
703
678
|
}
|
|
704
679
|
|
|
705
|
-
|
|
706
|
-
var
|
|
680
|
+
// eslint-disable-next-line no-extra-parens
|
|
681
|
+
var desc = !!hasProtoAccessor && gOPD$5 && gOPD$5(Object.prototype, /** @type {keyof typeof Object.prototype} */ ('__proto__'));
|
|
707
682
|
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
hasRequiredGetProto = 1;
|
|
683
|
+
var $Object$3 = Object;
|
|
684
|
+
var $getPrototypeOf = $Object$3.getPrototypeOf;
|
|
711
685
|
|
|
712
|
-
|
|
713
|
-
|
|
686
|
+
/** @type {import('./get')} */
|
|
687
|
+
var get = desc && typeof desc.get === 'function'
|
|
688
|
+
? callBind$6([desc.get])
|
|
689
|
+
: typeof $getPrototypeOf === 'function'
|
|
690
|
+
? /** @type {import('./get')} */ function getDunder(value) {
|
|
691
|
+
// eslint-disable-next-line eqeqeq
|
|
692
|
+
return $getPrototypeOf(value == null ? value : $Object$3(value));
|
|
693
|
+
}
|
|
694
|
+
: false;
|
|
714
695
|
|
|
715
|
-
|
|
696
|
+
var reflectGetProto = requireReflect_getPrototypeOf();
|
|
697
|
+
var originalGetProto = requireObject_getPrototypeOf();
|
|
716
698
|
|
|
717
|
-
|
|
718
|
-
|
|
699
|
+
var getDunderProto = get;
|
|
700
|
+
|
|
701
|
+
/** @type {import('.')} */
|
|
702
|
+
var getProto$3 = reflectGetProto
|
|
703
|
+
? function getProto(O) {
|
|
704
|
+
// @ts-expect-error TS can't narrow inside a closure, for some reason
|
|
705
|
+
return reflectGetProto(O);
|
|
706
|
+
}
|
|
707
|
+
: originalGetProto
|
|
719
708
|
? function getProto(O) {
|
|
709
|
+
if (!O || (typeof O !== 'object' && typeof O !== 'function')) {
|
|
710
|
+
throw new TypeError('getProto: not an object');
|
|
711
|
+
}
|
|
720
712
|
// @ts-expect-error TS can't narrow inside a closure, for some reason
|
|
721
|
-
return
|
|
713
|
+
return originalGetProto(O);
|
|
722
714
|
}
|
|
723
|
-
:
|
|
715
|
+
: getDunderProto
|
|
724
716
|
? function getProto(O) {
|
|
725
|
-
if (!O || (typeof O !== 'object' && typeof O !== 'function')) {
|
|
726
|
-
throw new TypeError('getProto: not an object');
|
|
727
|
-
}
|
|
728
717
|
// @ts-expect-error TS can't narrow inside a closure, for some reason
|
|
729
|
-
return
|
|
718
|
+
return getDunderProto(O);
|
|
730
719
|
}
|
|
731
|
-
:
|
|
732
|
-
? function getProto(O) {
|
|
733
|
-
// @ts-expect-error TS can't narrow inside a closure, for some reason
|
|
734
|
-
return getDunderProto(O);
|
|
735
|
-
}
|
|
736
|
-
: null;
|
|
737
|
-
return getProto$2;
|
|
738
|
-
}
|
|
739
|
-
|
|
740
|
-
var hasown;
|
|
741
|
-
var hasRequiredHasown;
|
|
720
|
+
: null;
|
|
742
721
|
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
var call = Function.prototype.call;
|
|
748
|
-
var $hasOwn = Object.prototype.hasOwnProperty;
|
|
749
|
-
var bind = requireFunctionBind();
|
|
722
|
+
var call = Function.prototype.call;
|
|
723
|
+
var $hasOwn = Object.prototype.hasOwnProperty;
|
|
724
|
+
var bind$2 = requireFunctionBind();
|
|
750
725
|
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
return hasown;
|
|
754
|
-
}
|
|
726
|
+
/** @type {import('.')} */
|
|
727
|
+
var hasown = bind$2.call(call, $hasOwn);
|
|
755
728
|
|
|
756
729
|
var undefined$1;
|
|
757
730
|
|
|
758
|
-
var $Object$
|
|
731
|
+
var $Object$2 = esObjectAtoms;
|
|
759
732
|
|
|
760
733
|
var $Error = esErrors;
|
|
761
734
|
var $EvalError = _eval;
|
|
762
735
|
var $RangeError = range;
|
|
763
736
|
var $ReferenceError = ref;
|
|
764
737
|
var $SyntaxError$1 = syntax;
|
|
765
|
-
var $TypeError$
|
|
738
|
+
var $TypeError$9 = type;
|
|
766
739
|
var $URIError = uri;
|
|
767
740
|
|
|
768
741
|
var abs = abs$1;
|
|
@@ -786,7 +759,7 @@ var $gOPD$1 = gopd$1;
|
|
|
786
759
|
var $defineProperty = esDefineProperty;
|
|
787
760
|
|
|
788
761
|
var throwTypeError = function () {
|
|
789
|
-
throw new $TypeError$
|
|
762
|
+
throw new $TypeError$9();
|
|
790
763
|
};
|
|
791
764
|
var ThrowTypeError = $gOPD$1
|
|
792
765
|
? (function () {
|
|
@@ -807,23 +780,23 @@ var ThrowTypeError = $gOPD$1
|
|
|
807
780
|
|
|
808
781
|
var hasSymbols$3 = hasSymbols$4();
|
|
809
782
|
|
|
810
|
-
var getProto$
|
|
783
|
+
var getProto$2 = getProto$3;
|
|
811
784
|
var $ObjectGPO = requireObject_getPrototypeOf();
|
|
812
785
|
var $ReflectGPO = requireReflect_getPrototypeOf();
|
|
813
786
|
|
|
814
|
-
var $apply = requireFunctionApply();
|
|
787
|
+
var $apply$1 = requireFunctionApply();
|
|
815
788
|
var $call = requireFunctionCall();
|
|
816
789
|
|
|
817
790
|
var needsEval = {};
|
|
818
791
|
|
|
819
|
-
var TypedArray = typeof Uint8Array === 'undefined' || !getProto$
|
|
792
|
+
var TypedArray = typeof Uint8Array === 'undefined' || !getProto$2 ? undefined$1 : getProto$2(Uint8Array);
|
|
820
793
|
|
|
821
794
|
var INTRINSICS = {
|
|
822
795
|
__proto__: null,
|
|
823
796
|
'%AggregateError%': typeof AggregateError === 'undefined' ? undefined$1 : AggregateError,
|
|
824
797
|
'%Array%': Array,
|
|
825
798
|
'%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined$1 : ArrayBuffer,
|
|
826
|
-
'%ArrayIteratorPrototype%': hasSymbols$3 && getProto$
|
|
799
|
+
'%ArrayIteratorPrototype%': hasSymbols$3 && getProto$2 ? getProto$2([][Symbol.iterator]()) : undefined$1,
|
|
827
800
|
'%AsyncFromSyncIteratorPrototype%': undefined$1,
|
|
828
801
|
'%AsyncFunction%': needsEval,
|
|
829
802
|
'%AsyncGenerator%': needsEval,
|
|
@@ -843,6 +816,7 @@ var INTRINSICS = {
|
|
|
843
816
|
'%Error%': $Error,
|
|
844
817
|
'%eval%': eval, // eslint-disable-line no-eval
|
|
845
818
|
'%EvalError%': $EvalError,
|
|
819
|
+
'%Float16Array%': typeof Float16Array === 'undefined' ? undefined$1 : Float16Array,
|
|
846
820
|
'%Float32Array%': typeof Float32Array === 'undefined' ? undefined$1 : Float32Array,
|
|
847
821
|
'%Float64Array%': typeof Float64Array === 'undefined' ? undefined$1 : Float64Array,
|
|
848
822
|
'%FinalizationRegistry%': typeof FinalizationRegistry === 'undefined' ? undefined$1 : FinalizationRegistry,
|
|
@@ -853,13 +827,13 @@ var INTRINSICS = {
|
|
|
853
827
|
'%Int32Array%': typeof Int32Array === 'undefined' ? undefined$1 : Int32Array,
|
|
854
828
|
'%isFinite%': isFinite,
|
|
855
829
|
'%isNaN%': isNaN,
|
|
856
|
-
'%IteratorPrototype%': hasSymbols$3 && getProto$
|
|
830
|
+
'%IteratorPrototype%': hasSymbols$3 && getProto$2 ? getProto$2(getProto$2([][Symbol.iterator]())) : undefined$1,
|
|
857
831
|
'%JSON%': typeof JSON === 'object' ? JSON : undefined$1,
|
|
858
832
|
'%Map%': typeof Map === 'undefined' ? undefined$1 : Map,
|
|
859
|
-
'%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols$3 || !getProto$
|
|
833
|
+
'%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols$3 || !getProto$2 ? undefined$1 : getProto$2(new Map()[Symbol.iterator]()),
|
|
860
834
|
'%Math%': Math,
|
|
861
835
|
'%Number%': Number,
|
|
862
|
-
'%Object%': $Object$
|
|
836
|
+
'%Object%': $Object$2,
|
|
863
837
|
'%Object.getOwnPropertyDescriptor%': $gOPD$1,
|
|
864
838
|
'%parseFloat%': parseFloat,
|
|
865
839
|
'%parseInt%': parseInt,
|
|
@@ -870,15 +844,15 @@ var INTRINSICS = {
|
|
|
870
844
|
'%Reflect%': typeof Reflect === 'undefined' ? undefined$1 : Reflect,
|
|
871
845
|
'%RegExp%': RegExp,
|
|
872
846
|
'%Set%': typeof Set === 'undefined' ? undefined$1 : Set,
|
|
873
|
-
'%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols$3 || !getProto$
|
|
847
|
+
'%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols$3 || !getProto$2 ? undefined$1 : getProto$2(new Set()[Symbol.iterator]()),
|
|
874
848
|
'%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined$1 : SharedArrayBuffer,
|
|
875
849
|
'%String%': String,
|
|
876
|
-
'%StringIteratorPrototype%': hasSymbols$3 && getProto$
|
|
850
|
+
'%StringIteratorPrototype%': hasSymbols$3 && getProto$2 ? getProto$2(''[Symbol.iterator]()) : undefined$1,
|
|
877
851
|
'%Symbol%': hasSymbols$3 ? Symbol : undefined$1,
|
|
878
852
|
'%SyntaxError%': $SyntaxError$1,
|
|
879
853
|
'%ThrowTypeError%': ThrowTypeError,
|
|
880
854
|
'%TypedArray%': TypedArray,
|
|
881
|
-
'%TypeError%': $TypeError$
|
|
855
|
+
'%TypeError%': $TypeError$9,
|
|
882
856
|
'%Uint8Array%': typeof Uint8Array === 'undefined' ? undefined$1 : Uint8Array,
|
|
883
857
|
'%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined$1 : Uint8ClampedArray,
|
|
884
858
|
'%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined$1 : Uint16Array,
|
|
@@ -889,7 +863,7 @@ var INTRINSICS = {
|
|
|
889
863
|
'%WeakSet%': typeof WeakSet === 'undefined' ? undefined$1 : WeakSet,
|
|
890
864
|
|
|
891
865
|
'%Function.prototype.call%': $call,
|
|
892
|
-
'%Function.prototype.apply%': $apply,
|
|
866
|
+
'%Function.prototype.apply%': $apply$1,
|
|
893
867
|
'%Object.defineProperty%': $defineProperty,
|
|
894
868
|
'%Object.getPrototypeOf%': $ObjectGPO,
|
|
895
869
|
'%Math.abs%': abs,
|
|
@@ -902,12 +876,12 @@ var INTRINSICS = {
|
|
|
902
876
|
'%Reflect.getPrototypeOf%': $ReflectGPO
|
|
903
877
|
};
|
|
904
878
|
|
|
905
|
-
if (getProto$
|
|
879
|
+
if (getProto$2) {
|
|
906
880
|
try {
|
|
907
881
|
null.error; // eslint-disable-line no-unused-expressions
|
|
908
882
|
} catch (e) {
|
|
909
883
|
// https://github.com/tc39/proposal-shadowrealm/pull/384#issuecomment-1364264229
|
|
910
|
-
var errorProto = getProto$
|
|
884
|
+
var errorProto = getProto$2(getProto$2(e));
|
|
911
885
|
INTRINSICS['%Error.prototype%'] = errorProto;
|
|
912
886
|
}
|
|
913
887
|
}
|
|
@@ -927,8 +901,8 @@ var doEval = function doEval(name) {
|
|
|
927
901
|
}
|
|
928
902
|
} else if (name === '%AsyncIteratorPrototype%') {
|
|
929
903
|
var gen = doEval('%AsyncGenerator%');
|
|
930
|
-
if (gen && getProto$
|
|
931
|
-
value = getProto$
|
|
904
|
+
if (gen && getProto$2) {
|
|
905
|
+
value = getProto$2(gen.prototype);
|
|
932
906
|
}
|
|
933
907
|
}
|
|
934
908
|
|
|
@@ -992,13 +966,13 @@ var LEGACY_ALIASES = {
|
|
|
992
966
|
'%WeakSetPrototype%': ['WeakSet', 'prototype']
|
|
993
967
|
};
|
|
994
968
|
|
|
995
|
-
var bind = requireFunctionBind();
|
|
996
|
-
var hasOwn$
|
|
997
|
-
var $concat$1 = bind.call($call, Array.prototype.concat);
|
|
998
|
-
var $spliceApply = bind.call($apply, Array.prototype.splice);
|
|
999
|
-
var $replace$1 = bind.call($call, String.prototype.replace);
|
|
1000
|
-
var $strSlice = bind.call($call, String.prototype.slice);
|
|
1001
|
-
var $exec$1 = bind.call($call, RegExp.prototype.exec);
|
|
969
|
+
var bind$1 = requireFunctionBind();
|
|
970
|
+
var hasOwn$3 = hasown;
|
|
971
|
+
var $concat$1 = bind$1.call($call, Array.prototype.concat);
|
|
972
|
+
var $spliceApply = bind$1.call($apply$1, Array.prototype.splice);
|
|
973
|
+
var $replace$1 = bind$1.call($call, String.prototype.replace);
|
|
974
|
+
var $strSlice = bind$1.call($call, String.prototype.slice);
|
|
975
|
+
var $exec$1 = bind$1.call($call, RegExp.prototype.exec);
|
|
1002
976
|
|
|
1003
977
|
/* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */
|
|
1004
978
|
var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
|
|
@@ -1022,18 +996,18 @@ var stringToPath = function stringToPath(string) {
|
|
|
1022
996
|
var getBaseIntrinsic = function getBaseIntrinsic(name, allowMissing) {
|
|
1023
997
|
var intrinsicName = name;
|
|
1024
998
|
var alias;
|
|
1025
|
-
if (hasOwn$
|
|
999
|
+
if (hasOwn$3(LEGACY_ALIASES, intrinsicName)) {
|
|
1026
1000
|
alias = LEGACY_ALIASES[intrinsicName];
|
|
1027
1001
|
intrinsicName = '%' + alias[0] + '%';
|
|
1028
1002
|
}
|
|
1029
1003
|
|
|
1030
|
-
if (hasOwn$
|
|
1004
|
+
if (hasOwn$3(INTRINSICS, intrinsicName)) {
|
|
1031
1005
|
var value = INTRINSICS[intrinsicName];
|
|
1032
1006
|
if (value === needsEval) {
|
|
1033
1007
|
value = doEval(intrinsicName);
|
|
1034
1008
|
}
|
|
1035
1009
|
if (typeof value === 'undefined' && !allowMissing) {
|
|
1036
|
-
throw new $TypeError$
|
|
1010
|
+
throw new $TypeError$9('intrinsic ' + name + ' exists, but is not available. Please file an issue!');
|
|
1037
1011
|
}
|
|
1038
1012
|
|
|
1039
1013
|
return {
|
|
@@ -1048,10 +1022,10 @@ var getBaseIntrinsic = function getBaseIntrinsic(name, allowMissing) {
|
|
|
1048
1022
|
|
|
1049
1023
|
var getIntrinsic = function GetIntrinsic(name, allowMissing) {
|
|
1050
1024
|
if (typeof name !== 'string' || name.length === 0) {
|
|
1051
|
-
throw new $TypeError$
|
|
1025
|
+
throw new $TypeError$9('intrinsic name must be a non-empty string');
|
|
1052
1026
|
}
|
|
1053
1027
|
if (arguments.length > 1 && typeof allowMissing !== 'boolean') {
|
|
1054
|
-
throw new $TypeError$
|
|
1028
|
+
throw new $TypeError$9('"allowMissing" argument must be a boolean');
|
|
1055
1029
|
}
|
|
1056
1030
|
|
|
1057
1031
|
if ($exec$1(/^%?[^%]*%?$/, name) === null) {
|
|
@@ -1091,14 +1065,14 @@ var getIntrinsic = function GetIntrinsic(name, allowMissing) {
|
|
|
1091
1065
|
intrinsicBaseName += '.' + part;
|
|
1092
1066
|
intrinsicRealName = '%' + intrinsicBaseName + '%';
|
|
1093
1067
|
|
|
1094
|
-
if (hasOwn$
|
|
1068
|
+
if (hasOwn$3(INTRINSICS, intrinsicRealName)) {
|
|
1095
1069
|
value = INTRINSICS[intrinsicRealName];
|
|
1096
1070
|
} else if (value != null) {
|
|
1097
1071
|
if (!(part in value)) {
|
|
1098
1072
|
if (!allowMissing) {
|
|
1099
|
-
throw new $TypeError$
|
|
1073
|
+
throw new $TypeError$9('base intrinsic for ' + name + ' exists, but the property is not available.');
|
|
1100
1074
|
}
|
|
1101
|
-
return void
|
|
1075
|
+
return void undefined$1;
|
|
1102
1076
|
}
|
|
1103
1077
|
if ($gOPD$1 && (i + 1) >= parts.length) {
|
|
1104
1078
|
var desc = $gOPD$1(value, part);
|
|
@@ -1117,7 +1091,7 @@ var getIntrinsic = function GetIntrinsic(name, allowMissing) {
|
|
|
1117
1091
|
value = value[part];
|
|
1118
1092
|
}
|
|
1119
1093
|
} else {
|
|
1120
|
-
isOwn = hasOwn$
|
|
1094
|
+
isOwn = hasOwn$3(value, part);
|
|
1121
1095
|
value = value[part];
|
|
1122
1096
|
}
|
|
1123
1097
|
|
|
@@ -1134,16 +1108,16 @@ var define$5 = defineDataProperty$1;
|
|
|
1134
1108
|
var hasDescriptors$1 = hasPropertyDescriptors_1();
|
|
1135
1109
|
var gOPD$4 = gopd$1;
|
|
1136
1110
|
|
|
1137
|
-
var $TypeError$
|
|
1111
|
+
var $TypeError$8 = type;
|
|
1138
1112
|
var $floor$1 = GetIntrinsic$8('%Math.floor%');
|
|
1139
1113
|
|
|
1140
1114
|
/** @type {import('.')} */
|
|
1141
1115
|
var setFunctionLength = function setFunctionLength(fn, length) {
|
|
1142
1116
|
if (typeof fn !== 'function') {
|
|
1143
|
-
throw new $TypeError$
|
|
1117
|
+
throw new $TypeError$8('`fn` is not a function');
|
|
1144
1118
|
}
|
|
1145
1119
|
if (typeof length !== 'number' || length < 0 || length > 0xFFFFFFFF || $floor$1(length) !== length) {
|
|
1146
|
-
throw new $TypeError$
|
|
1120
|
+
throw new $TypeError$8('`length` must be a positive 32-bit integer');
|
|
1147
1121
|
}
|
|
1148
1122
|
|
|
1149
1123
|
var loose = arguments.length > 2 && !!arguments[2];
|
|
@@ -1170,55 +1144,57 @@ var setFunctionLength = function setFunctionLength(fn, length) {
|
|
|
1170
1144
|
return fn;
|
|
1171
1145
|
};
|
|
1172
1146
|
|
|
1147
|
+
var bind = requireFunctionBind();
|
|
1148
|
+
var $apply = requireFunctionApply();
|
|
1149
|
+
var actualApply = actualApply$1;
|
|
1150
|
+
|
|
1151
|
+
/** @type {import('./applyBind')} */
|
|
1152
|
+
var applyBind = function applyBind() {
|
|
1153
|
+
return actualApply(bind, $apply, arguments);
|
|
1154
|
+
};
|
|
1155
|
+
|
|
1173
1156
|
(function (module) {
|
|
1174
1157
|
|
|
1175
|
-
var bind = requireFunctionBind();
|
|
1176
|
-
var GetIntrinsic = getIntrinsic;
|
|
1177
1158
|
var setFunctionLength$1 = setFunctionLength;
|
|
1178
1159
|
|
|
1179
|
-
var $TypeError = type;
|
|
1180
|
-
var $apply = GetIntrinsic('%Function.prototype.apply%');
|
|
1181
|
-
var $call = GetIntrinsic('%Function.prototype.call%');
|
|
1182
|
-
var $reflectApply = GetIntrinsic('%Reflect.apply%', true) || bind.call($call, $apply);
|
|
1183
|
-
|
|
1184
1160
|
var $defineProperty = esDefineProperty;
|
|
1185
|
-
|
|
1161
|
+
|
|
1162
|
+
var callBindBasic = callBindApplyHelpers;
|
|
1163
|
+
var applyBind$1 = applyBind;
|
|
1186
1164
|
|
|
1187
1165
|
module.exports = function callBind(originalFunction) {
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
}
|
|
1191
|
-
var func = $reflectApply(bind, $call, arguments);
|
|
1166
|
+
var func = callBindBasic(arguments);
|
|
1167
|
+
var adjustedLength = originalFunction.length - (arguments.length - 1);
|
|
1192
1168
|
return setFunctionLength$1(
|
|
1193
1169
|
func,
|
|
1194
|
-
1 +
|
|
1170
|
+
1 + (adjustedLength > 0 ? adjustedLength : 0),
|
|
1195
1171
|
true
|
|
1196
1172
|
);
|
|
1197
1173
|
};
|
|
1198
1174
|
|
|
1199
|
-
var applyBind = function applyBind() {
|
|
1200
|
-
return $reflectApply(bind, $apply, arguments);
|
|
1201
|
-
};
|
|
1202
|
-
|
|
1203
1175
|
if ($defineProperty) {
|
|
1204
|
-
$defineProperty(module.exports, 'apply', { value: applyBind });
|
|
1176
|
+
$defineProperty(module.exports, 'apply', { value: applyBind$1 });
|
|
1205
1177
|
} else {
|
|
1206
|
-
module.exports.apply = applyBind;
|
|
1178
|
+
module.exports.apply = applyBind$1;
|
|
1207
1179
|
}
|
|
1208
|
-
} (callBind$
|
|
1180
|
+
} (callBind$7));
|
|
1209
1181
|
|
|
1210
|
-
var callBindExports = callBind$
|
|
1182
|
+
var callBindExports = callBind$7.exports;
|
|
1211
1183
|
|
|
1212
1184
|
var GetIntrinsic$7 = getIntrinsic;
|
|
1213
1185
|
|
|
1214
|
-
var
|
|
1186
|
+
var callBindBasic = callBindApplyHelpers;
|
|
1215
1187
|
|
|
1216
|
-
|
|
1188
|
+
/** @type {(thisArg: string, searchString: string, position?: number) => number} */
|
|
1189
|
+
var $indexOf$2 = callBindBasic([GetIntrinsic$7('%String.prototype.indexOf%')]);
|
|
1217
1190
|
|
|
1218
|
-
|
|
1219
|
-
|
|
1191
|
+
/** @type {import('.')} */
|
|
1192
|
+
var callBound$i = function callBoundIntrinsic(name, allowMissing) {
|
|
1193
|
+
/* eslint no-extra-parens: 0 */
|
|
1194
|
+
|
|
1195
|
+
var intrinsic = /** @type {(this: unknown, ...args: unknown[]) => unknown} */ (GetIntrinsic$7(name, !!allowMissing));
|
|
1220
1196
|
if (typeof intrinsic === 'function' && $indexOf$2(name, '.prototype.') > -1) {
|
|
1221
|
-
return
|
|
1197
|
+
return callBindBasic(/** @type {const} */ ([intrinsic]));
|
|
1222
1198
|
}
|
|
1223
1199
|
return intrinsic;
|
|
1224
1200
|
};
|
|
@@ -1226,25 +1202,25 @@ var callBound$e = function callBoundIntrinsic(name, allowMissing) {
|
|
|
1226
1202
|
// modified from https://github.com/es-shims/es6-shim
|
|
1227
1203
|
var objectKeys$1 = objectKeys$2;
|
|
1228
1204
|
var hasSymbols$2 = requireShams()();
|
|
1229
|
-
var callBound$
|
|
1230
|
-
var
|
|
1231
|
-
var $push = callBound$
|
|
1232
|
-
var $propIsEnumerable = callBound$
|
|
1233
|
-
var originalGetSymbols = hasSymbols$2 ? Object.getOwnPropertySymbols : null;
|
|
1205
|
+
var callBound$h = callBound$i;
|
|
1206
|
+
var $Object$1 = esObjectAtoms;
|
|
1207
|
+
var $push = callBound$h('Array.prototype.push');
|
|
1208
|
+
var $propIsEnumerable = callBound$h('Object.prototype.propertyIsEnumerable');
|
|
1209
|
+
var originalGetSymbols = hasSymbols$2 ? $Object$1.getOwnPropertySymbols : null;
|
|
1234
1210
|
|
|
1235
1211
|
// eslint-disable-next-line no-unused-vars
|
|
1236
1212
|
var implementation$8 = function assign(target, source1) {
|
|
1237
1213
|
if (target == null) { throw new TypeError('target must be an object'); }
|
|
1238
|
-
var to =
|
|
1214
|
+
var to = $Object$1(target); // step 1
|
|
1239
1215
|
if (arguments.length === 1) {
|
|
1240
1216
|
return to; // step 2
|
|
1241
1217
|
}
|
|
1242
1218
|
for (var s = 1; s < arguments.length; ++s) {
|
|
1243
|
-
var from =
|
|
1219
|
+
var from = $Object$1(arguments[s]); // step 3.a.i
|
|
1244
1220
|
|
|
1245
1221
|
// step 3.a.ii:
|
|
1246
1222
|
var keys = objectKeys$1(from);
|
|
1247
|
-
var getSymbols = hasSymbols$2 && (Object.getOwnPropertySymbols || originalGetSymbols);
|
|
1223
|
+
var getSymbols = hasSymbols$2 && ($Object$1.getOwnPropertySymbols || originalGetSymbols);
|
|
1248
1224
|
if (getSymbols) {
|
|
1249
1225
|
var syms = getSymbols(from);
|
|
1250
1226
|
for (var j = 0; j < syms.length; ++j) {
|
|
@@ -1336,13 +1312,13 @@ var shim$5 = function shimAssign() {
|
|
|
1336
1312
|
};
|
|
1337
1313
|
|
|
1338
1314
|
var defineProperties = defineProperties_1;
|
|
1339
|
-
var callBind$
|
|
1315
|
+
var callBind$5 = callBindExports;
|
|
1340
1316
|
|
|
1341
1317
|
var implementation$6 = implementation$8;
|
|
1342
1318
|
var getPolyfill$4 = polyfill$4;
|
|
1343
1319
|
var shim$4 = shim$5;
|
|
1344
1320
|
|
|
1345
|
-
var polyfill$3 = callBind$
|
|
1321
|
+
var polyfill$3 = callBind$5.apply(getPolyfill$4());
|
|
1346
1322
|
// eslint-disable-next-line no-unused-vars
|
|
1347
1323
|
var bound = function assign(target, source1) {
|
|
1348
1324
|
return polyfill$3(Object, arguments);
|
|
@@ -1356,6 +1332,20 @@ defineProperties(bound, {
|
|
|
1356
1332
|
|
|
1357
1333
|
var object_assign = bound;
|
|
1358
1334
|
|
|
1335
|
+
var GetIntrinsic$6 = getIntrinsic;
|
|
1336
|
+
|
|
1337
|
+
var callBind$4 = callBindExports;
|
|
1338
|
+
|
|
1339
|
+
var $indexOf$1 = callBind$4(GetIntrinsic$6('String.prototype.indexOf'));
|
|
1340
|
+
|
|
1341
|
+
var callBound$g = function callBoundIntrinsic(name, allowMissing) {
|
|
1342
|
+
var intrinsic = GetIntrinsic$6(name, !!allowMissing);
|
|
1343
|
+
if (typeof intrinsic === 'function' && $indexOf$1(name, '.prototype.') > -1) {
|
|
1344
|
+
return callBind$4(intrinsic);
|
|
1345
|
+
}
|
|
1346
|
+
return intrinsic;
|
|
1347
|
+
};
|
|
1348
|
+
|
|
1359
1349
|
var functionsHaveNames = function functionsHaveNames() {
|
|
1360
1350
|
return typeof function f() {}.name === 'string';
|
|
1361
1351
|
};
|
|
@@ -1390,12 +1380,12 @@ var define$3 = defineDataProperty$1;
|
|
|
1390
1380
|
var hasDescriptors = hasPropertyDescriptors_1();
|
|
1391
1381
|
var functionsHaveConfigurableNames = functionsHaveNames_1.functionsHaveConfigurableNames();
|
|
1392
1382
|
|
|
1393
|
-
var $TypeError$
|
|
1383
|
+
var $TypeError$7 = type;
|
|
1394
1384
|
|
|
1395
1385
|
/** @type {import('.')} */
|
|
1396
1386
|
var setFunctionName$1 = function setFunctionName(fn, name) {
|
|
1397
1387
|
if (typeof fn !== 'function') {
|
|
1398
|
-
throw new $TypeError$
|
|
1388
|
+
throw new $TypeError$7('`fn` is not a function');
|
|
1399
1389
|
}
|
|
1400
1390
|
var loose = arguments.length > 2 && !!arguments[2];
|
|
1401
1391
|
if (!loose || functionsHaveConfigurableNames) {
|
|
@@ -1409,13 +1399,13 @@ var setFunctionName$1 = function setFunctionName(fn, name) {
|
|
|
1409
1399
|
};
|
|
1410
1400
|
|
|
1411
1401
|
var setFunctionName = setFunctionName$1;
|
|
1412
|
-
var $TypeError$
|
|
1402
|
+
var $TypeError$6 = type;
|
|
1413
1403
|
|
|
1414
1404
|
var $Object = Object;
|
|
1415
1405
|
|
|
1416
1406
|
var implementation$5 = setFunctionName(function flags() {
|
|
1417
1407
|
if (this == null || this !== $Object(this)) {
|
|
1418
|
-
throw new $TypeError$
|
|
1408
|
+
throw new $TypeError$6('RegExp.prototype.flags getter called on non-object');
|
|
1419
1409
|
}
|
|
1420
1410
|
var result = '';
|
|
1421
1411
|
if (this.hasIndices) {
|
|
@@ -1456,8 +1446,8 @@ var polyfill$2 = function getPolyfill() {
|
|
|
1456
1446
|
if (
|
|
1457
1447
|
descriptor
|
|
1458
1448
|
&& typeof descriptor.get === 'function'
|
|
1459
|
-
&&
|
|
1460
|
-
&&
|
|
1449
|
+
&& 'dotAll' in RegExp.prototype
|
|
1450
|
+
&& 'hasIndices' in RegExp.prototype
|
|
1461
1451
|
) {
|
|
1462
1452
|
/* eslint getter-return: 0 */
|
|
1463
1453
|
var calls = '';
|
|
@@ -1472,6 +1462,9 @@ var polyfill$2 = function getPolyfill() {
|
|
|
1472
1462
|
calls += 'y';
|
|
1473
1463
|
}
|
|
1474
1464
|
});
|
|
1465
|
+
|
|
1466
|
+
descriptor.get.call(o);
|
|
1467
|
+
|
|
1475
1468
|
if (calls === 'dy') {
|
|
1476
1469
|
return descriptor.get;
|
|
1477
1470
|
}
|
|
@@ -1482,18 +1475,18 @@ var polyfill$2 = function getPolyfill() {
|
|
|
1482
1475
|
|
|
1483
1476
|
var supportsDescriptors = defineProperties_1.supportsDescriptors;
|
|
1484
1477
|
var getPolyfill$3 = polyfill$2;
|
|
1485
|
-
var gOPD$2 =
|
|
1478
|
+
var gOPD$2 = gopd$1;
|
|
1486
1479
|
var defineProperty = Object.defineProperty;
|
|
1487
|
-
var
|
|
1488
|
-
var getProto =
|
|
1480
|
+
var $TypeError$5 = esErrors;
|
|
1481
|
+
var getProto$1 = getProto$3;
|
|
1489
1482
|
var regex = /a/;
|
|
1490
1483
|
|
|
1491
1484
|
var shim$3 = function shimFlags() {
|
|
1492
|
-
if (!supportsDescriptors || !getProto) {
|
|
1493
|
-
throw new
|
|
1485
|
+
if (!supportsDescriptors || !getProto$1) {
|
|
1486
|
+
throw new $TypeError$5('RegExp.prototype.flags requires a true ES5 environment that supports property descriptors');
|
|
1494
1487
|
}
|
|
1495
1488
|
var polyfill = getPolyfill$3();
|
|
1496
|
-
var proto = getProto(regex);
|
|
1489
|
+
var proto = getProto$1(regex);
|
|
1497
1490
|
var descriptor = gOPD$2(proto, 'flags');
|
|
1498
1491
|
if (!descriptor || descriptor.get !== polyfill) {
|
|
1499
1492
|
defineProperty(proto, 'flags', {
|
|
@@ -1532,35 +1525,46 @@ var shams = function hasToStringTagShams() {
|
|
|
1532
1525
|
};
|
|
1533
1526
|
|
|
1534
1527
|
var hasToStringTag$7 = shams();
|
|
1535
|
-
var callBound$
|
|
1528
|
+
var callBound$f = callBound$i;
|
|
1536
1529
|
|
|
1537
|
-
var $toString$
|
|
1530
|
+
var $toString$7 = callBound$f('Object.prototype.toString');
|
|
1538
1531
|
|
|
1532
|
+
/** @type {import('.')} */
|
|
1539
1533
|
var isStandardArguments = function isArguments(value) {
|
|
1540
|
-
if (
|
|
1534
|
+
if (
|
|
1535
|
+
hasToStringTag$7
|
|
1536
|
+
&& value
|
|
1537
|
+
&& typeof value === 'object'
|
|
1538
|
+
&& Symbol.toStringTag in value
|
|
1539
|
+
) {
|
|
1541
1540
|
return false;
|
|
1542
1541
|
}
|
|
1543
|
-
return $toString$
|
|
1542
|
+
return $toString$7(value) === '[object Arguments]';
|
|
1544
1543
|
};
|
|
1545
1544
|
|
|
1545
|
+
/** @type {import('.')} */
|
|
1546
1546
|
var isLegacyArguments = function isArguments(value) {
|
|
1547
1547
|
if (isStandardArguments(value)) {
|
|
1548
1548
|
return true;
|
|
1549
1549
|
}
|
|
1550
|
-
return value !== null
|
|
1551
|
-
typeof value === 'object'
|
|
1552
|
-
|
|
1553
|
-
value.length
|
|
1554
|
-
|
|
1555
|
-
$toString$
|
|
1550
|
+
return value !== null
|
|
1551
|
+
&& typeof value === 'object'
|
|
1552
|
+
&& 'length' in value
|
|
1553
|
+
&& typeof value.length === 'number'
|
|
1554
|
+
&& value.length >= 0
|
|
1555
|
+
&& $toString$7(value) !== '[object Array]'
|
|
1556
|
+
&& 'callee' in value
|
|
1557
|
+
&& $toString$7(value.callee) === '[object Function]';
|
|
1556
1558
|
};
|
|
1557
1559
|
|
|
1558
1560
|
var supportsStandardArguments = (function () {
|
|
1559
1561
|
return isStandardArguments(arguments);
|
|
1560
1562
|
}());
|
|
1561
1563
|
|
|
1564
|
+
// @ts-expect-error TODO make this not error
|
|
1562
1565
|
isStandardArguments.isLegacyArguments = isLegacyArguments; // for tests
|
|
1563
1566
|
|
|
1567
|
+
/** @type {import('.')} */
|
|
1564
1568
|
var isArguments$2 = supportsStandardArguments ? isStandardArguments : isLegacyArguments;
|
|
1565
1569
|
|
|
1566
1570
|
var _nodeResolve_empty = {};
|
|
@@ -1657,31 +1661,31 @@ var quoteREs = {
|
|
|
1657
1661
|
var objectInspect = function inspect_(obj, options, depth, seen) {
|
|
1658
1662
|
var opts = options || {};
|
|
1659
1663
|
|
|
1660
|
-
if (has
|
|
1664
|
+
if (has(opts, 'quoteStyle') && !has(quotes, opts.quoteStyle)) {
|
|
1661
1665
|
throw new TypeError('option "quoteStyle" must be "single" or "double"');
|
|
1662
1666
|
}
|
|
1663
1667
|
if (
|
|
1664
|
-
has
|
|
1668
|
+
has(opts, 'maxStringLength') && (typeof opts.maxStringLength === 'number'
|
|
1665
1669
|
? opts.maxStringLength < 0 && opts.maxStringLength !== Infinity
|
|
1666
1670
|
: opts.maxStringLength !== null
|
|
1667
1671
|
)
|
|
1668
1672
|
) {
|
|
1669
1673
|
throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');
|
|
1670
1674
|
}
|
|
1671
|
-
var customInspect = has
|
|
1675
|
+
var customInspect = has(opts, 'customInspect') ? opts.customInspect : true;
|
|
1672
1676
|
if (typeof customInspect !== 'boolean' && customInspect !== 'symbol') {
|
|
1673
1677
|
throw new TypeError('option "customInspect", if provided, must be `true`, `false`, or `\'symbol\'`');
|
|
1674
1678
|
}
|
|
1675
1679
|
|
|
1676
1680
|
if (
|
|
1677
|
-
has
|
|
1681
|
+
has(opts, 'indent')
|
|
1678
1682
|
&& opts.indent !== null
|
|
1679
1683
|
&& opts.indent !== '\t'
|
|
1680
1684
|
&& !(parseInt(opts.indent, 10) === opts.indent && opts.indent > 0)
|
|
1681
1685
|
) {
|
|
1682
1686
|
throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');
|
|
1683
1687
|
}
|
|
1684
|
-
if (has
|
|
1688
|
+
if (has(opts, 'numericSeparator') && typeof opts.numericSeparator !== 'boolean') {
|
|
1685
1689
|
throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');
|
|
1686
1690
|
}
|
|
1687
1691
|
var numericSeparator = opts.numericSeparator;
|
|
@@ -1714,7 +1718,7 @@ var objectInspect = function inspect_(obj, options, depth, seen) {
|
|
|
1714
1718
|
var maxDepth = typeof opts.depth === 'undefined' ? 5 : opts.depth;
|
|
1715
1719
|
if (typeof depth === 'undefined') { depth = 0; }
|
|
1716
1720
|
if (depth >= maxDepth && maxDepth > 0 && typeof obj === 'object') {
|
|
1717
|
-
return isArray$
|
|
1721
|
+
return isArray$3(obj) ? '[Array]' : '[Object]';
|
|
1718
1722
|
}
|
|
1719
1723
|
|
|
1720
1724
|
var indent = getIndent(opts, depth);
|
|
@@ -1734,7 +1738,7 @@ var objectInspect = function inspect_(obj, options, depth, seen) {
|
|
|
1734
1738
|
var newOpts = {
|
|
1735
1739
|
depth: opts.depth
|
|
1736
1740
|
};
|
|
1737
|
-
if (has
|
|
1741
|
+
if (has(opts, 'quoteStyle')) {
|
|
1738
1742
|
newOpts.quoteStyle = opts.quoteStyle;
|
|
1739
1743
|
}
|
|
1740
1744
|
return inspect_(value, newOpts, depth + 1, seen);
|
|
@@ -1762,7 +1766,7 @@ var objectInspect = function inspect_(obj, options, depth, seen) {
|
|
|
1762
1766
|
s += '</' + $toLowerCase.call(String(obj.nodeName)) + '>';
|
|
1763
1767
|
return s;
|
|
1764
1768
|
}
|
|
1765
|
-
if (isArray$
|
|
1769
|
+
if (isArray$3(obj)) {
|
|
1766
1770
|
if (obj.length === 0) { return '[]'; }
|
|
1767
1771
|
var xs = arrObjKeys(obj, inspect);
|
|
1768
1772
|
if (indent && !singleLineValues(xs)) {
|
|
@@ -1839,7 +1843,7 @@ var objectInspect = function inspect_(obj, options, depth, seen) {
|
|
|
1839
1843
|
var ys = arrObjKeys(obj, inspect);
|
|
1840
1844
|
var isPlainObject = gPO$1 ? gPO$1(obj) === Object.prototype : obj instanceof Object || obj.constructor === Object;
|
|
1841
1845
|
var protoTag = obj instanceof Object ? '' : 'null prototype';
|
|
1842
|
-
var stringTag = !isPlainObject && toStringTag && Object(obj) === obj && toStringTag in obj ? $slice$1.call(toStr$
|
|
1846
|
+
var stringTag = !isPlainObject && toStringTag && Object(obj) === obj && toStringTag in obj ? $slice$1.call(toStr$3(obj), 8, -1) : protoTag ? 'Object' : '';
|
|
1843
1847
|
var constructorTag = isPlainObject || typeof obj.constructor !== 'function' ? '' : obj.constructor.name ? obj.constructor.name + ' ' : '';
|
|
1844
1848
|
var tag = constructorTag + (stringTag || protoTag ? '[' + $join.call($concat.call([], stringTag || [], protoTag || []), ': ') + '] ' : '');
|
|
1845
1849
|
if (ys.length === 0) { return tag + '{}'; }
|
|
@@ -1861,13 +1865,16 @@ function quote(s) {
|
|
|
1861
1865
|
return $replace.call(String(s), /"/g, '"');
|
|
1862
1866
|
}
|
|
1863
1867
|
|
|
1864
|
-
function
|
|
1865
|
-
|
|
1866
|
-
|
|
1867
|
-
function
|
|
1868
|
-
function
|
|
1869
|
-
function
|
|
1870
|
-
function
|
|
1868
|
+
function canTrustToString(obj) {
|
|
1869
|
+
return !toStringTag || !(typeof obj === 'object' && (toStringTag in obj || typeof obj[toStringTag] !== 'undefined'));
|
|
1870
|
+
}
|
|
1871
|
+
function isArray$3(obj) { return toStr$3(obj) === '[object Array]' && canTrustToString(obj); }
|
|
1872
|
+
function isDate$1(obj) { return toStr$3(obj) === '[object Date]' && canTrustToString(obj); }
|
|
1873
|
+
function isRegExp(obj) { return toStr$3(obj) === '[object RegExp]' && canTrustToString(obj); }
|
|
1874
|
+
function isError(obj) { return toStr$3(obj) === '[object Error]' && canTrustToString(obj); }
|
|
1875
|
+
function isString$3(obj) { return toStr$3(obj) === '[object String]' && canTrustToString(obj); }
|
|
1876
|
+
function isNumber$1(obj) { return toStr$3(obj) === '[object Number]' && canTrustToString(obj); }
|
|
1877
|
+
function isBoolean$1(obj) { return toStr$3(obj) === '[object Boolean]' && canTrustToString(obj); }
|
|
1871
1878
|
|
|
1872
1879
|
// Symbol and BigInt do have Symbol.toStringTag by spec, so that can't be used to eliminate false positives
|
|
1873
1880
|
function isSymbol$2(obj) {
|
|
@@ -1898,12 +1905,12 @@ function isBigInt$1(obj) {
|
|
|
1898
1905
|
return false;
|
|
1899
1906
|
}
|
|
1900
1907
|
|
|
1901
|
-
var hasOwn$
|
|
1902
|
-
function has
|
|
1903
|
-
return hasOwn$
|
|
1908
|
+
var hasOwn$2 = Object.prototype.hasOwnProperty || function (key) { return key in this; };
|
|
1909
|
+
function has(obj, key) {
|
|
1910
|
+
return hasOwn$2.call(obj, key);
|
|
1904
1911
|
}
|
|
1905
1912
|
|
|
1906
|
-
function toStr$
|
|
1913
|
+
function toStr$3(obj) {
|
|
1907
1914
|
return objectToString.call(obj);
|
|
1908
1915
|
}
|
|
1909
1916
|
|
|
@@ -2075,12 +2082,12 @@ function indentedJoin(xs, indent) {
|
|
|
2075
2082
|
}
|
|
2076
2083
|
|
|
2077
2084
|
function arrObjKeys(obj, inspect) {
|
|
2078
|
-
var isArr = isArray$
|
|
2085
|
+
var isArr = isArray$3(obj);
|
|
2079
2086
|
var xs = [];
|
|
2080
2087
|
if (isArr) {
|
|
2081
2088
|
xs.length = obj.length;
|
|
2082
2089
|
for (var i = 0; i < obj.length; i++) {
|
|
2083
|
-
xs[i] = has
|
|
2090
|
+
xs[i] = has(obj, i) ? inspect(obj[i], obj) : '';
|
|
2084
2091
|
}
|
|
2085
2092
|
}
|
|
2086
2093
|
var syms = typeof gOPS === 'function' ? gOPS(obj) : [];
|
|
@@ -2093,7 +2100,7 @@ function arrObjKeys(obj, inspect) {
|
|
|
2093
2100
|
}
|
|
2094
2101
|
|
|
2095
2102
|
for (var key in obj) { // eslint-disable-line no-restricted-syntax
|
|
2096
|
-
if (!has
|
|
2103
|
+
if (!has(obj, key)) { continue; } // eslint-disable-line no-restricted-syntax, no-continue
|
|
2097
2104
|
if (isArr && String(Number(key)) === key && key < obj.length) { continue; } // eslint-disable-line no-restricted-syntax, no-continue
|
|
2098
2105
|
if (hasShammedSymbols && symMap['$' + key] instanceof Symbol) {
|
|
2099
2106
|
// this is to prevent shammed Symbols, which are stored as strings, from being included in the string key section
|
|
@@ -2148,7 +2155,7 @@ var listGetNode = function (list, key, isDelete) {
|
|
|
2148
2155
|
/** @type {import('./list.d.ts').listGet} */
|
|
2149
2156
|
var listGet = function (objects, key) {
|
|
2150
2157
|
if (!objects) {
|
|
2151
|
-
return void
|
|
2158
|
+
return void undefined;
|
|
2152
2159
|
}
|
|
2153
2160
|
var node = listGetNode(objects, key);
|
|
2154
2161
|
return node && node.value;
|
|
@@ -2201,7 +2208,7 @@ var sideChannelList = function getSideChannelList() {
|
|
|
2201
2208
|
var root = $o && $o.next;
|
|
2202
2209
|
var deletedNode = listDelete($o, key);
|
|
2203
2210
|
if (deletedNode && root && root === deletedNode) {
|
|
2204
|
-
$o = void
|
|
2211
|
+
$o = void undefined;
|
|
2205
2212
|
}
|
|
2206
2213
|
return !!deletedNode;
|
|
2207
2214
|
},
|
|
@@ -2215,7 +2222,7 @@ var sideChannelList = function getSideChannelList() {
|
|
|
2215
2222
|
if (!$o) {
|
|
2216
2223
|
// Initialize the linked list as an empty node, so that we don't have to special-case handling of the first node: we can always refer to it as (previous node).next, instead of something like (list).head
|
|
2217
2224
|
$o = {
|
|
2218
|
-
next: void
|
|
2225
|
+
next: void undefined
|
|
2219
2226
|
};
|
|
2220
2227
|
}
|
|
2221
2228
|
// eslint-disable-next-line no-extra-parens
|
|
@@ -2226,40 +2233,23 @@ var sideChannelList = function getSideChannelList() {
|
|
|
2226
2233
|
return channel;
|
|
2227
2234
|
};
|
|
2228
2235
|
|
|
2229
|
-
var GetIntrinsic$6 = getIntrinsic;
|
|
2230
|
-
|
|
2231
|
-
var callBindBasic = callBindApplyHelpers;
|
|
2232
|
-
|
|
2233
|
-
/** @type {(thisArg: string, searchString: string, position?: number) => number} */
|
|
2234
|
-
var $indexOf$1 = callBindBasic([GetIntrinsic$6('%String.prototype.indexOf%')]);
|
|
2235
|
-
|
|
2236
|
-
/** @type {import('.')} */
|
|
2237
|
-
var callBound$b = function callBoundIntrinsic(name, allowMissing) {
|
|
2238
|
-
// eslint-disable-next-line no-extra-parens
|
|
2239
|
-
var intrinsic = /** @type {Parameters<typeof callBindBasic>[0][0]} */ (GetIntrinsic$6(name, !!allowMissing));
|
|
2240
|
-
if (typeof intrinsic === 'function' && $indexOf$1(name, '.prototype.') > -1) {
|
|
2241
|
-
return callBindBasic([intrinsic]);
|
|
2242
|
-
}
|
|
2243
|
-
return intrinsic;
|
|
2244
|
-
};
|
|
2245
|
-
|
|
2246
2236
|
var GetIntrinsic$5 = getIntrinsic;
|
|
2247
|
-
var callBound$
|
|
2237
|
+
var callBound$e = callBound$i;
|
|
2248
2238
|
var inspect$2 = objectInspect;
|
|
2249
2239
|
|
|
2250
2240
|
var $TypeError$3 = type;
|
|
2251
2241
|
var $Map$3 = GetIntrinsic$5('%Map%', true);
|
|
2252
2242
|
|
|
2253
2243
|
/** @type {<K, V>(thisArg: Map<K, V>, key: K) => V} */
|
|
2254
|
-
var $mapGet$1 = callBound$
|
|
2244
|
+
var $mapGet$1 = callBound$e('Map.prototype.get', true);
|
|
2255
2245
|
/** @type {<K, V>(thisArg: Map<K, V>, key: K, value: V) => void} */
|
|
2256
|
-
var $mapSet = callBound$
|
|
2246
|
+
var $mapSet = callBound$e('Map.prototype.set', true);
|
|
2257
2247
|
/** @type {<K, V>(thisArg: Map<K, V>, key: K) => boolean} */
|
|
2258
|
-
var $mapHas$5 = callBound$
|
|
2248
|
+
var $mapHas$5 = callBound$e('Map.prototype.has', true);
|
|
2259
2249
|
/** @type {<K, V>(thisArg: Map<K, V>, key: K) => boolean} */
|
|
2260
|
-
var $mapDelete = callBound$
|
|
2250
|
+
var $mapDelete = callBound$e('Map.prototype.delete', true);
|
|
2261
2251
|
/** @type {<K, V>(thisArg: Map<K, V>) => number} */
|
|
2262
|
-
var $mapSize$1 = callBound$
|
|
2252
|
+
var $mapSize$1 = callBound$e('Map.prototype.size', true);
|
|
2263
2253
|
|
|
2264
2254
|
/** @type {import('.')} */
|
|
2265
2255
|
var sideChannelMap = !!$Map$3 && /** @type {Exclude<import('.'), false>} */ function getSideChannelMap() {
|
|
@@ -2280,7 +2270,7 @@ var sideChannelMap = !!$Map$3 && /** @type {Exclude<import('.'), false>} */ func
|
|
|
2280
2270
|
if ($m) {
|
|
2281
2271
|
var result = $mapDelete($m, key);
|
|
2282
2272
|
if ($mapSize$1($m) === 0) {
|
|
2283
|
-
$m = void
|
|
2273
|
+
$m = void undefined;
|
|
2284
2274
|
}
|
|
2285
2275
|
return result;
|
|
2286
2276
|
}
|
|
@@ -2311,7 +2301,7 @@ var sideChannelMap = !!$Map$3 && /** @type {Exclude<import('.'), false>} */ func
|
|
|
2311
2301
|
};
|
|
2312
2302
|
|
|
2313
2303
|
var GetIntrinsic$4 = getIntrinsic;
|
|
2314
|
-
var callBound$
|
|
2304
|
+
var callBound$d = callBound$i;
|
|
2315
2305
|
var inspect$1 = objectInspect;
|
|
2316
2306
|
var getSideChannelMap$1 = sideChannelMap;
|
|
2317
2307
|
|
|
@@ -2319,13 +2309,13 @@ var $TypeError$2 = type;
|
|
|
2319
2309
|
var $WeakMap$1 = GetIntrinsic$4('%WeakMap%', true);
|
|
2320
2310
|
|
|
2321
2311
|
/** @type {<K extends object, V>(thisArg: WeakMap<K, V>, key: K) => V} */
|
|
2322
|
-
var $weakMapGet = callBound$
|
|
2312
|
+
var $weakMapGet = callBound$d('WeakMap.prototype.get', true);
|
|
2323
2313
|
/** @type {<K extends object, V>(thisArg: WeakMap<K, V>, key: K, value: V) => void} */
|
|
2324
|
-
var $weakMapSet = callBound$
|
|
2314
|
+
var $weakMapSet = callBound$d('WeakMap.prototype.set', true);
|
|
2325
2315
|
/** @type {<K extends object, V>(thisArg: WeakMap<K, V>, key: K) => boolean} */
|
|
2326
|
-
var $weakMapHas = callBound$
|
|
2316
|
+
var $weakMapHas = callBound$d('WeakMap.prototype.has', true);
|
|
2327
2317
|
/** @type {<K extends object, V>(thisArg: WeakMap<K, V>, key: K) => boolean} */
|
|
2328
|
-
var $weakMapDelete = callBound$
|
|
2318
|
+
var $weakMapDelete = callBound$d('WeakMap.prototype.delete', true);
|
|
2329
2319
|
|
|
2330
2320
|
/** @type {import('.')} */
|
|
2331
2321
|
var sideChannelWeakmap = $WeakMap$1
|
|
@@ -2435,11 +2425,16 @@ var sideChannel = function getSideChannel() {
|
|
|
2435
2425
|
return channel;
|
|
2436
2426
|
};
|
|
2437
2427
|
|
|
2438
|
-
|
|
2428
|
+
/** @typedef {`$${import('.').InternalSlot}`} SaltedInternalSlot */
|
|
2429
|
+
/** @typedef {{ [k in SaltedInternalSlot]?: unknown }} SlotsObject */
|
|
2430
|
+
|
|
2431
|
+
var hasOwn$1 = hasown;
|
|
2432
|
+
/** @type {import('side-channel').Channel<object, SlotsObject>} */
|
|
2439
2433
|
var channel = sideChannel();
|
|
2440
2434
|
|
|
2441
2435
|
var $TypeError = type;
|
|
2442
2436
|
|
|
2437
|
+
/** @type {import('.')} */
|
|
2443
2438
|
var SLOT$1 = {
|
|
2444
2439
|
assert: function (O, slot) {
|
|
2445
2440
|
if (!O || (typeof O !== 'object' && typeof O !== 'function')) {
|
|
@@ -2461,7 +2456,8 @@ var SLOT$1 = {
|
|
|
2461
2456
|
throw new $TypeError('`slot` must be a string');
|
|
2462
2457
|
}
|
|
2463
2458
|
var slots = channel.get(O);
|
|
2464
|
-
|
|
2459
|
+
// eslint-disable-next-line no-extra-parens
|
|
2460
|
+
return slots && slots[/** @type {SaltedInternalSlot} */ ('$' + slot)];
|
|
2465
2461
|
},
|
|
2466
2462
|
has: function (O, slot) {
|
|
2467
2463
|
if (!O || (typeof O !== 'object' && typeof O !== 'function')) {
|
|
@@ -2471,7 +2467,8 @@ var SLOT$1 = {
|
|
|
2471
2467
|
throw new $TypeError('`slot` must be a string');
|
|
2472
2468
|
}
|
|
2473
2469
|
var slots = channel.get(O);
|
|
2474
|
-
|
|
2470
|
+
// eslint-disable-next-line no-extra-parens
|
|
2471
|
+
return !!slots && hasOwn$1(slots, /** @type {SaltedInternalSlot} */ ('$' + slot));
|
|
2475
2472
|
},
|
|
2476
2473
|
set: function (O, slot, V) {
|
|
2477
2474
|
if (!O || (typeof O !== 'object' && typeof O !== 'function')) {
|
|
@@ -2485,7 +2482,8 @@ var SLOT$1 = {
|
|
|
2485
2482
|
slots = {};
|
|
2486
2483
|
channel.set(O, slots);
|
|
2487
2484
|
}
|
|
2488
|
-
|
|
2485
|
+
// eslint-disable-next-line no-extra-parens
|
|
2486
|
+
slots[/** @type {SaltedInternalSlot} */ ('$' + slot)] = V;
|
|
2489
2487
|
}
|
|
2490
2488
|
};
|
|
2491
2489
|
|
|
@@ -2496,10 +2494,11 @@ if (Object.freeze) {
|
|
|
2496
2494
|
var internalSlot = SLOT$1;
|
|
2497
2495
|
|
|
2498
2496
|
var SLOT = internalSlot;
|
|
2497
|
+
var $SyntaxError = syntax;
|
|
2499
2498
|
|
|
2500
|
-
var $SyntaxError = SyntaxError;
|
|
2501
2499
|
var $StopIteration = typeof StopIteration === 'object' ? StopIteration : null;
|
|
2502
2500
|
|
|
2501
|
+
/** @type {import('.')} */
|
|
2503
2502
|
var stopIterationIterator = function getStopIterationIterator(origIterator) {
|
|
2504
2503
|
if (!$StopIteration) {
|
|
2505
2504
|
throw new $SyntaxError('this environment lacks StopIteration');
|
|
@@ -2507,14 +2506,18 @@ var stopIterationIterator = function getStopIterationIterator(origIterator) {
|
|
|
2507
2506
|
|
|
2508
2507
|
SLOT.set(origIterator, '[[Done]]', false);
|
|
2509
2508
|
|
|
2509
|
+
/** @template T @typedef {T extends Iterator<infer U> ? U : never} IteratorType */
|
|
2510
|
+
/** @typedef {IteratorType<ReturnType<typeof getStopIterationIterator>>} T */
|
|
2510
2511
|
var siIterator = {
|
|
2511
|
-
next: function next() {
|
|
2512
|
-
|
|
2513
|
-
var
|
|
2512
|
+
next: /** @type {() => IteratorResult<T>} */ function next() {
|
|
2513
|
+
// eslint-disable-next-line no-extra-parens
|
|
2514
|
+
var iterator = /** @type {typeof origIterator} */ (SLOT.get(this, '[[Iterator]]'));
|
|
2515
|
+
var done = !!SLOT.get(iterator, '[[Done]]');
|
|
2514
2516
|
try {
|
|
2515
2517
|
return {
|
|
2516
2518
|
done: done,
|
|
2517
|
-
|
|
2519
|
+
// eslint-disable-next-line no-extra-parens
|
|
2520
|
+
value: done ? void undefined : /** @type {T} */ (iterator.next())
|
|
2518
2521
|
};
|
|
2519
2522
|
} catch (e) {
|
|
2520
2523
|
SLOT.set(iterator, '[[Done]]', true);
|
|
@@ -2523,7 +2526,7 @@ var stopIterationIterator = function getStopIterationIterator(origIterator) {
|
|
|
2523
2526
|
}
|
|
2524
2527
|
return {
|
|
2525
2528
|
done: true,
|
|
2526
|
-
value: void
|
|
2529
|
+
value: void undefined
|
|
2527
2530
|
};
|
|
2528
2531
|
}
|
|
2529
2532
|
}
|
|
@@ -2531,6 +2534,7 @@ var stopIterationIterator = function getStopIterationIterator(origIterator) {
|
|
|
2531
2534
|
|
|
2532
2535
|
SLOT.set(siIterator, '[[Iterator]]', origIterator);
|
|
2533
2536
|
|
|
2537
|
+
// @ts-expect-error TODO FIXME
|
|
2534
2538
|
return siIterator;
|
|
2535
2539
|
};
|
|
2536
2540
|
|
|
@@ -2540,27 +2544,34 @@ var isarray = Array.isArray || function (arr) {
|
|
|
2540
2544
|
return toString.call(arr) == '[object Array]';
|
|
2541
2545
|
};
|
|
2542
2546
|
|
|
2543
|
-
var
|
|
2547
|
+
var callBound$c = callBound$i;
|
|
2548
|
+
|
|
2549
|
+
/** @type {(receiver: ThisParameterType<typeof String.prototype.valueOf>, ...args: Parameters<typeof String.prototype.valueOf>) => ReturnType<typeof String.prototype.valueOf>} */
|
|
2550
|
+
var $strValueOf = callBound$c('String.prototype.valueOf');
|
|
2551
|
+
|
|
2552
|
+
/** @type {import('.')} */
|
|
2544
2553
|
var tryStringObject = function tryStringObject(value) {
|
|
2545
2554
|
try {
|
|
2546
|
-
|
|
2555
|
+
$strValueOf(value);
|
|
2547
2556
|
return true;
|
|
2548
2557
|
} catch (e) {
|
|
2549
2558
|
return false;
|
|
2550
2559
|
}
|
|
2551
2560
|
};
|
|
2552
|
-
|
|
2561
|
+
/** @type {(receiver: ThisParameterType<typeof Object.prototype.toString>, ...args: Parameters<typeof Object.prototype.toString>) => ReturnType<typeof Object.prototype.toString>} */
|
|
2562
|
+
var $toString$6 = callBound$c('Object.prototype.toString');
|
|
2553
2563
|
var strClass = '[object String]';
|
|
2554
2564
|
var hasToStringTag$6 = shams();
|
|
2555
2565
|
|
|
2566
|
+
/** @type {import('.')} */
|
|
2556
2567
|
var isString$2 = function isString(value) {
|
|
2557
2568
|
if (typeof value === 'string') {
|
|
2558
2569
|
return true;
|
|
2559
2570
|
}
|
|
2560
|
-
if (typeof value !== 'object') {
|
|
2571
|
+
if (!value || typeof value !== 'object') {
|
|
2561
2572
|
return false;
|
|
2562
2573
|
}
|
|
2563
|
-
return hasToStringTag$6 ? tryStringObject(value) :
|
|
2574
|
+
return hasToStringTag$6 ? tryStringObject(value) : $toString$6(value) === strClass;
|
|
2564
2575
|
};
|
|
2565
2576
|
|
|
2566
2577
|
/** @const */
|
|
@@ -2688,15 +2699,15 @@ if (hasSymbols$4() || requireShams()()) {
|
|
|
2688
2699
|
};
|
|
2689
2700
|
} else {
|
|
2690
2701
|
// Symbol is not available, native or shammed
|
|
2691
|
-
var isArray$
|
|
2702
|
+
var isArray$2 = isarray;
|
|
2692
2703
|
var isString$1 = isString$2;
|
|
2693
2704
|
var GetIntrinsic$3 = getIntrinsic;
|
|
2694
2705
|
var $Map = GetIntrinsic$3('%Map%', true);
|
|
2695
2706
|
var $Set$1 = GetIntrinsic$3('%Set%', true);
|
|
2696
|
-
var callBound$
|
|
2697
|
-
var $arrayPush = callBound$
|
|
2698
|
-
var $charCodeAt = callBound$
|
|
2699
|
-
var $stringSlice = callBound$
|
|
2707
|
+
var callBound$b = callBound$g;
|
|
2708
|
+
var $arrayPush = callBound$b('Array.prototype.push');
|
|
2709
|
+
var $charCodeAt = callBound$b('String.prototype.charCodeAt');
|
|
2710
|
+
var $stringSlice = callBound$b('String.prototype.slice');
|
|
2700
2711
|
|
|
2701
2712
|
var advanceStringIndex = function advanceStringIndex(S, index) {
|
|
2702
2713
|
var length = S.length;
|
|
@@ -2736,7 +2747,7 @@ if (hasSymbols$4() || requireShams()()) {
|
|
|
2736
2747
|
};
|
|
2737
2748
|
|
|
2738
2749
|
var getNonCollectionIterator = function getNonCollectionIterator(iterable, noPrimordialCollections) {
|
|
2739
|
-
if (isArray$
|
|
2750
|
+
if (isArray$2(iterable) || isArguments$1(iterable)) {
|
|
2740
2751
|
return getArrayIterator(iterable);
|
|
2741
2752
|
}
|
|
2742
2753
|
if (isString$1(iterable)) {
|
|
@@ -2787,21 +2798,21 @@ if (hasSymbols$4() || requireShams()()) {
|
|
|
2787
2798
|
var isSet$1 = isSet$2;
|
|
2788
2799
|
|
|
2789
2800
|
// Firefox >= 27, IE 11, Safari 6.2 - 9, Edge 11, es6-shim in older envs, all have forEach
|
|
2790
|
-
var $mapForEach = callBound$
|
|
2791
|
-
var $setForEach = callBound$
|
|
2801
|
+
var $mapForEach = callBound$b('Map.prototype.forEach', true);
|
|
2802
|
+
var $setForEach = callBound$b('Set.prototype.forEach', true);
|
|
2792
2803
|
if (typeof process === 'undefined' || !process.versions || !process.versions.node) { // "if is not node"
|
|
2793
2804
|
|
|
2794
2805
|
// Firefox 17 - 26 has `.iterator()`, whose iterator `.next()` either
|
|
2795
2806
|
// returns a value, or throws a StopIteration object. These browsers
|
|
2796
2807
|
// do not have any other mechanism for iteration.
|
|
2797
|
-
var $mapIterator = callBound$
|
|
2798
|
-
var $setIterator = callBound$
|
|
2808
|
+
var $mapIterator = callBound$b('Map.prototype.iterator', true);
|
|
2809
|
+
var $setIterator = callBound$b('Set.prototype.iterator', true);
|
|
2799
2810
|
}
|
|
2800
2811
|
// Firefox 27-35, and some older es6-shim versions, use a string "@@iterator" property
|
|
2801
2812
|
// this returns a proper iterator object, so we should use it instead of forEach.
|
|
2802
2813
|
// newer es6-shim versions use a string "_es6-shim iterator_" property.
|
|
2803
|
-
var $mapAtAtIterator = callBound$
|
|
2804
|
-
var $setAtAtIterator = callBound$
|
|
2814
|
+
var $mapAtAtIterator = callBound$b('Map.prototype.@@iterator', true) || callBound$b('Map.prototype._es6-shim iterator_', true);
|
|
2815
|
+
var $setAtAtIterator = callBound$b('Set.prototype.@@iterator', true) || callBound$b('Set.prototype._es6-shim iterator_', true);
|
|
2805
2816
|
|
|
2806
2817
|
var getCollectionIterator = function getCollectionIterator(iterable) {
|
|
2807
2818
|
if (isMap$1(iterable)) {
|
|
@@ -2898,13 +2909,13 @@ define(polyfill, {
|
|
|
2898
2909
|
var objectIs = polyfill;
|
|
2899
2910
|
|
|
2900
2911
|
var callBind$1 = callBindExports;
|
|
2901
|
-
var callBound$
|
|
2912
|
+
var callBound$a = callBound$i;
|
|
2902
2913
|
var GetIntrinsic$2 = getIntrinsic;
|
|
2903
2914
|
|
|
2904
2915
|
var $ArrayBuffer = GetIntrinsic$2('%ArrayBuffer%', true);
|
|
2905
2916
|
/** @type {undefined | ((receiver: ArrayBuffer) => number) | ((receiver: unknown) => never)} */
|
|
2906
|
-
var $byteLength$2 = callBound$
|
|
2907
|
-
var $toString$
|
|
2917
|
+
var $byteLength$2 = callBound$a('ArrayBuffer.prototype.byteLength', true);
|
|
2918
|
+
var $toString$5 = callBound$a('Object.prototype.toString');
|
|
2908
2919
|
|
|
2909
2920
|
// in node 0.10, ArrayBuffers have no prototype methods, but have an own slot-checking `slice` method
|
|
2910
2921
|
var abSlice = !!$ArrayBuffer && !$byteLength$2 && new $ArrayBuffer(0).slice;
|
|
@@ -2932,49 +2943,58 @@ var isArrayBuffer$2 = $byteLength$2 || $abSlice
|
|
|
2932
2943
|
: $ArrayBuffer
|
|
2933
2944
|
// in node 0.8, ArrayBuffers have no prototype or own methods, but also no Symbol.toStringTag
|
|
2934
2945
|
? function isArrayBuffer(obj) {
|
|
2935
|
-
return $toString$
|
|
2946
|
+
return $toString$5(obj) === '[object ArrayBuffer]';
|
|
2936
2947
|
}
|
|
2948
|
+
// @ts-expect-error
|
|
2937
2949
|
: function isArrayBuffer(obj) { // eslint-disable-line no-unused-vars
|
|
2938
2950
|
return false;
|
|
2939
2951
|
};
|
|
2940
2952
|
|
|
2941
|
-
var
|
|
2953
|
+
var callBound$9 = callBound$i;
|
|
2954
|
+
|
|
2955
|
+
var getDay = callBound$9('Date.prototype.getDay');
|
|
2956
|
+
/** @type {import('.')} */
|
|
2942
2957
|
var tryDateObject = function tryDateGetDayCall(value) {
|
|
2943
2958
|
try {
|
|
2944
|
-
getDay
|
|
2959
|
+
getDay(value);
|
|
2945
2960
|
return true;
|
|
2946
2961
|
} catch (e) {
|
|
2947
2962
|
return false;
|
|
2948
2963
|
}
|
|
2949
2964
|
};
|
|
2950
2965
|
|
|
2951
|
-
|
|
2966
|
+
/** @type {(value: unknown) => string} */
|
|
2967
|
+
var toStr$2 = callBound$9('Object.prototype.toString');
|
|
2952
2968
|
var dateClass = '[object Date]';
|
|
2953
2969
|
var hasToStringTag$5 = shams();
|
|
2954
2970
|
|
|
2971
|
+
/** @type {import('.')} */
|
|
2955
2972
|
var isDateObject = function isDateObject(value) {
|
|
2956
2973
|
if (typeof value !== 'object' || value === null) {
|
|
2957
2974
|
return false;
|
|
2958
2975
|
}
|
|
2959
|
-
return hasToStringTag$5 ? tryDateObject(value) : toStr$
|
|
2976
|
+
return hasToStringTag$5 ? tryDateObject(value) : toStr$2(value) === dateClass;
|
|
2960
2977
|
};
|
|
2961
2978
|
|
|
2962
|
-
var callBound$
|
|
2979
|
+
var callBound$8 = callBound$i;
|
|
2963
2980
|
var hasToStringTag$4 = shams();
|
|
2964
|
-
var
|
|
2965
|
-
var $
|
|
2966
|
-
|
|
2967
|
-
|
|
2981
|
+
var hasOwn = hasown;
|
|
2982
|
+
var gOPD$1 = gopd$1;
|
|
2983
|
+
|
|
2984
|
+
/** @type {import('.')} */
|
|
2985
|
+
var fn;
|
|
2968
2986
|
|
|
2969
2987
|
if (hasToStringTag$4) {
|
|
2970
|
-
|
|
2971
|
-
$exec = callBound$
|
|
2972
|
-
|
|
2988
|
+
/** @type {(receiver: ThisParameterType<typeof RegExp.prototype.exec>, ...args: Parameters<typeof RegExp.prototype.exec>) => ReturnType<typeof RegExp.prototype.exec>} */
|
|
2989
|
+
var $exec = callBound$8('RegExp.prototype.exec');
|
|
2990
|
+
/** @type {object} */
|
|
2991
|
+
var isRegexMarker = {};
|
|
2973
2992
|
|
|
2974
2993
|
var throwRegexMarker = function () {
|
|
2975
2994
|
throw isRegexMarker;
|
|
2976
2995
|
};
|
|
2977
|
-
|
|
2996
|
+
/** @type {{ toString(): never, valueOf(): never, [Symbol.toPrimitive]?(): never }} */
|
|
2997
|
+
var badStringifier = {
|
|
2978
2998
|
toString: throwRegexMarker,
|
|
2979
2999
|
valueOf: throwRegexMarker
|
|
2980
3000
|
};
|
|
@@ -2982,43 +3002,52 @@ if (hasToStringTag$4) {
|
|
|
2982
3002
|
if (typeof Symbol.toPrimitive === 'symbol') {
|
|
2983
3003
|
badStringifier[Symbol.toPrimitive] = throwRegexMarker;
|
|
2984
3004
|
}
|
|
2985
|
-
}
|
|
2986
3005
|
|
|
2987
|
-
|
|
2988
|
-
|
|
2989
|
-
var regexClass = '[object RegExp]';
|
|
2990
|
-
|
|
2991
|
-
var isRegex$1 = hasToStringTag$4
|
|
3006
|
+
/** @type {import('.')} */
|
|
3007
|
+
// @ts-expect-error TS can't figure out that the $exec call always throws
|
|
2992
3008
|
// eslint-disable-next-line consistent-return
|
|
2993
|
-
|
|
3009
|
+
fn = function isRegex(value) {
|
|
2994
3010
|
if (!value || typeof value !== 'object') {
|
|
2995
3011
|
return false;
|
|
2996
3012
|
}
|
|
2997
3013
|
|
|
2998
|
-
|
|
2999
|
-
var
|
|
3014
|
+
// eslint-disable-next-line no-extra-parens
|
|
3015
|
+
var descriptor = /** @type {NonNullable<typeof gOPD>} */ (gOPD$1)(/** @type {{ lastIndex?: unknown }} */ (value), 'lastIndex');
|
|
3016
|
+
var hasLastIndexDataProperty = descriptor && hasOwn(descriptor, 'value');
|
|
3000
3017
|
if (!hasLastIndexDataProperty) {
|
|
3001
3018
|
return false;
|
|
3002
3019
|
}
|
|
3003
3020
|
|
|
3004
3021
|
try {
|
|
3005
|
-
|
|
3022
|
+
// eslint-disable-next-line no-extra-parens
|
|
3023
|
+
$exec(value, /** @type {string} */ (/** @type {unknown} */ (badStringifier)));
|
|
3006
3024
|
} catch (e) {
|
|
3007
3025
|
return e === isRegexMarker;
|
|
3008
3026
|
}
|
|
3009
|
-
}
|
|
3010
|
-
|
|
3027
|
+
};
|
|
3028
|
+
} else {
|
|
3029
|
+
/** @type {(receiver: ThisParameterType<typeof Object.prototype.toString>, ...args: Parameters<typeof Object.prototype.toString>) => ReturnType<typeof Object.prototype.toString>} */
|
|
3030
|
+
var $toString$4 = callBound$8('Object.prototype.toString');
|
|
3031
|
+
/** @const @type {'[object RegExp]'} */
|
|
3032
|
+
var regexClass = '[object RegExp]';
|
|
3033
|
+
|
|
3034
|
+
/** @type {import('.')} */
|
|
3035
|
+
fn = function isRegex(value) {
|
|
3011
3036
|
// In older browsers, typeof regex incorrectly returns 'function'
|
|
3012
3037
|
if (!value || (typeof value !== 'object' && typeof value !== 'function')) {
|
|
3013
3038
|
return false;
|
|
3014
3039
|
}
|
|
3015
3040
|
|
|
3016
|
-
return $toString$
|
|
3041
|
+
return $toString$4(value) === regexClass;
|
|
3017
3042
|
};
|
|
3043
|
+
}
|
|
3044
|
+
|
|
3045
|
+
var isRegex$1 = fn;
|
|
3018
3046
|
|
|
3019
|
-
var callBound$
|
|
3047
|
+
var callBound$7 = callBound$i;
|
|
3020
3048
|
|
|
3021
|
-
|
|
3049
|
+
/** @type {undefined | ((thisArg: SharedArrayBuffer) => number)} */
|
|
3050
|
+
var $byteLength$1 = callBound$7('SharedArrayBuffer.prototype.byteLength', true);
|
|
3022
3051
|
|
|
3023
3052
|
/** @type {import('.')} */
|
|
3024
3053
|
var isSharedArrayBuffer$1 = $byteLength$1
|
|
@@ -3027,43 +3056,50 @@ var isSharedArrayBuffer$1 = $byteLength$1
|
|
|
3027
3056
|
return false;
|
|
3028
3057
|
}
|
|
3029
3058
|
try {
|
|
3059
|
+
// @ts-expect-error TS can't figure out this closed-over variable is non-nullable, and it's fine that `obj` might not be a SAB
|
|
3030
3060
|
$byteLength$1(obj);
|
|
3031
3061
|
return true;
|
|
3032
3062
|
} catch (e) {
|
|
3033
3063
|
return false;
|
|
3034
3064
|
}
|
|
3035
3065
|
}
|
|
3036
|
-
: function isSharedArrayBuffer(
|
|
3066
|
+
: function isSharedArrayBuffer(_obj) { // eslint-disable-line no-unused-vars
|
|
3037
3067
|
return false;
|
|
3038
3068
|
};
|
|
3039
3069
|
|
|
3040
|
-
var
|
|
3070
|
+
var callBound$6 = callBound$i;
|
|
3071
|
+
|
|
3072
|
+
var $numToStr = callBound$6('Number.prototype.toString');
|
|
3073
|
+
|
|
3074
|
+
/** @type {import('.')} */
|
|
3041
3075
|
var tryNumberObject = function tryNumberObject(value) {
|
|
3042
3076
|
try {
|
|
3043
|
-
numToStr
|
|
3077
|
+
$numToStr(value);
|
|
3044
3078
|
return true;
|
|
3045
3079
|
} catch (e) {
|
|
3046
3080
|
return false;
|
|
3047
3081
|
}
|
|
3048
3082
|
};
|
|
3049
|
-
var
|
|
3083
|
+
var $toString$3 = callBound$6('Object.prototype.toString');
|
|
3050
3084
|
var numClass = '[object Number]';
|
|
3051
3085
|
var hasToStringTag$3 = shams();
|
|
3052
3086
|
|
|
3087
|
+
/** @type {import('.')} */
|
|
3053
3088
|
var isNumberObject = function isNumberObject(value) {
|
|
3054
3089
|
if (typeof value === 'number') {
|
|
3055
3090
|
return true;
|
|
3056
3091
|
}
|
|
3057
|
-
if (typeof value !== 'object') {
|
|
3092
|
+
if (!value || typeof value !== 'object') {
|
|
3058
3093
|
return false;
|
|
3059
3094
|
}
|
|
3060
|
-
return hasToStringTag$3 ? tryNumberObject(value) :
|
|
3095
|
+
return hasToStringTag$3 ? tryNumberObject(value) : $toString$3(value) === numClass;
|
|
3061
3096
|
};
|
|
3062
3097
|
|
|
3063
|
-
var callBound$
|
|
3064
|
-
var $boolToStr = callBound$
|
|
3065
|
-
var $toString$
|
|
3098
|
+
var callBound$5 = callBound$i;
|
|
3099
|
+
var $boolToStr = callBound$5('Boolean.prototype.toString');
|
|
3100
|
+
var $toString$2 = callBound$5('Object.prototype.toString');
|
|
3066
3101
|
|
|
3102
|
+
/** @type {import('.')} */
|
|
3067
3103
|
var tryBooleanObject = function booleanBrandCheck(value) {
|
|
3068
3104
|
try {
|
|
3069
3105
|
$boolToStr(value);
|
|
@@ -3075,6 +3111,7 @@ var tryBooleanObject = function booleanBrandCheck(value) {
|
|
|
3075
3111
|
var boolClass = '[object Boolean]';
|
|
3076
3112
|
var hasToStringTag$2 = shams();
|
|
3077
3113
|
|
|
3114
|
+
/** @type {import('.')} */
|
|
3078
3115
|
var isBooleanObject = function isBoolean(value) {
|
|
3079
3116
|
if (typeof value === 'boolean') {
|
|
3080
3117
|
return true;
|
|
@@ -3082,29 +3119,59 @@ var isBooleanObject = function isBoolean(value) {
|
|
|
3082
3119
|
if (value === null || typeof value !== 'object') {
|
|
3083
3120
|
return false;
|
|
3084
3121
|
}
|
|
3085
|
-
return hasToStringTag$2
|
|
3122
|
+
return hasToStringTag$2 ? tryBooleanObject(value) : $toString$2(value) === boolClass;
|
|
3086
3123
|
};
|
|
3087
3124
|
|
|
3088
3125
|
var isSymbol$1 = {exports: {}};
|
|
3089
3126
|
|
|
3090
|
-
var
|
|
3127
|
+
var safeRegexTest$1;
|
|
3128
|
+
var hasRequiredSafeRegexTest;
|
|
3129
|
+
|
|
3130
|
+
function requireSafeRegexTest () {
|
|
3131
|
+
if (hasRequiredSafeRegexTest) return safeRegexTest$1;
|
|
3132
|
+
hasRequiredSafeRegexTest = 1;
|
|
3133
|
+
|
|
3134
|
+
var callBound = callBound$i;
|
|
3135
|
+
var isRegex = isRegex$1;
|
|
3136
|
+
|
|
3137
|
+
var $exec = callBound('RegExp.prototype.exec');
|
|
3138
|
+
var $TypeError = type;
|
|
3139
|
+
|
|
3140
|
+
/** @type {import('.')} */
|
|
3141
|
+
safeRegexTest$1 = function regexTester(regex) {
|
|
3142
|
+
if (!isRegex(regex)) {
|
|
3143
|
+
throw new $TypeError('`regex` must be a RegExp');
|
|
3144
|
+
}
|
|
3145
|
+
return function test(s) {
|
|
3146
|
+
return $exec(regex, s) !== null;
|
|
3147
|
+
};
|
|
3148
|
+
};
|
|
3149
|
+
return safeRegexTest$1;
|
|
3150
|
+
}
|
|
3151
|
+
|
|
3152
|
+
var callBound$4 = callBound$i;
|
|
3153
|
+
var $toString$1 = callBound$4('Object.prototype.toString');
|
|
3091
3154
|
var hasSymbols = hasSymbols$4();
|
|
3155
|
+
var safeRegexTest = requireSafeRegexTest();
|
|
3092
3156
|
|
|
3093
3157
|
if (hasSymbols) {
|
|
3094
|
-
var symToStr = Symbol.prototype.toString;
|
|
3095
|
-
var
|
|
3158
|
+
var $symToStr = callBound$4('Symbol.prototype.toString');
|
|
3159
|
+
var isSymString = safeRegexTest(/^Symbol\(.*\)$/);
|
|
3160
|
+
|
|
3161
|
+
/** @type {(value: object) => value is Symbol} */
|
|
3096
3162
|
var isSymbolObject = function isRealSymbolObject(value) {
|
|
3097
3163
|
if (typeof value.valueOf() !== 'symbol') {
|
|
3098
3164
|
return false;
|
|
3099
3165
|
}
|
|
3100
|
-
return
|
|
3166
|
+
return isSymString($symToStr(value));
|
|
3101
3167
|
};
|
|
3102
3168
|
|
|
3169
|
+
/** @type {import('.')} */
|
|
3103
3170
|
isSymbol$1.exports = function isSymbol(value) {
|
|
3104
3171
|
if (typeof value === 'symbol') {
|
|
3105
3172
|
return true;
|
|
3106
3173
|
}
|
|
3107
|
-
if (
|
|
3174
|
+
if (!value || typeof value !== 'object' || $toString$1(value) !== '[object Symbol]') {
|
|
3108
3175
|
return false;
|
|
3109
3176
|
}
|
|
3110
3177
|
try {
|
|
@@ -3114,7 +3181,7 @@ if (hasSymbols) {
|
|
|
3114
3181
|
}
|
|
3115
3182
|
};
|
|
3116
3183
|
} else {
|
|
3117
|
-
|
|
3184
|
+
/** @type {import('.')} */
|
|
3118
3185
|
isSymbol$1.exports = function isSymbol(value) {
|
|
3119
3186
|
// this environment does not support Symbols.
|
|
3120
3187
|
return false;
|
|
@@ -3127,6 +3194,7 @@ var isBigint = {exports: {}};
|
|
|
3127
3194
|
|
|
3128
3195
|
var $BigInt = typeof BigInt !== 'undefined' && BigInt;
|
|
3129
3196
|
|
|
3197
|
+
/** @type {import('.')} */
|
|
3130
3198
|
var hasBigints = function hasNativeBigInts() {
|
|
3131
3199
|
return typeof $BigInt === 'function'
|
|
3132
3200
|
&& typeof BigInt === 'function'
|
|
@@ -3138,6 +3206,7 @@ var hasBigInts = hasBigints();
|
|
|
3138
3206
|
|
|
3139
3207
|
if (hasBigInts) {
|
|
3140
3208
|
var bigIntValueOf = BigInt.prototype.valueOf;
|
|
3209
|
+
/** @type {(value: object) => value is BigInt} */
|
|
3141
3210
|
var tryBigInt = function tryBigIntObject(value) {
|
|
3142
3211
|
try {
|
|
3143
3212
|
bigIntValueOf.call(value);
|
|
@@ -3147,6 +3216,7 @@ if (hasBigInts) {
|
|
|
3147
3216
|
return false;
|
|
3148
3217
|
};
|
|
3149
3218
|
|
|
3219
|
+
/** @type {import('.')} */
|
|
3150
3220
|
isBigint.exports = function isBigInt(value) {
|
|
3151
3221
|
if (
|
|
3152
3222
|
value === null
|
|
@@ -3166,6 +3236,7 @@ if (hasBigInts) {
|
|
|
3166
3236
|
return tryBigInt(value);
|
|
3167
3237
|
};
|
|
3168
3238
|
} else {
|
|
3239
|
+
/** @type {import('.')} */
|
|
3169
3240
|
isBigint.exports = function isBigInt(value) {
|
|
3170
3241
|
return false;
|
|
3171
3242
|
};
|
|
@@ -3179,6 +3250,7 @@ var isBoolean = isBooleanObject;
|
|
|
3179
3250
|
var isSymbol = isSymbolExports;
|
|
3180
3251
|
var isBigInt = isBigintExports;
|
|
3181
3252
|
|
|
3253
|
+
/** @type {import('.')} */
|
|
3182
3254
|
// eslint-disable-next-line consistent-return
|
|
3183
3255
|
var whichBoxedPrimitive$1 = function whichBoxedPrimitive(value) {
|
|
3184
3256
|
// eslint-disable-next-line eqeqeq
|
|
@@ -3250,13 +3322,15 @@ var isWeakmap = exported || function isWeakMap(x) {
|
|
|
3250
3322
|
var isWeakset = {exports: {}};
|
|
3251
3323
|
|
|
3252
3324
|
var GetIntrinsic$1 = getIntrinsic;
|
|
3253
|
-
var callBound$3 = callBound$
|
|
3325
|
+
var callBound$3 = callBound$i;
|
|
3254
3326
|
|
|
3255
3327
|
var $WeakSet = GetIntrinsic$1('%WeakSet%', true);
|
|
3256
3328
|
|
|
3329
|
+
/** @type {undefined | (<V>(thisArg: Set<V>, value: V) => boolean)} */
|
|
3257
3330
|
var $setHas$1 = callBound$3('WeakSet.prototype.has', true);
|
|
3258
3331
|
|
|
3259
3332
|
if ($setHas$1) {
|
|
3333
|
+
/** @type {undefined | (<K extends object, V>(thisArg: WeakMap<K, V>, key: K) => boolean)} */
|
|
3260
3334
|
var $mapHas$1 = callBound$3('WeakMap.prototype.has', true);
|
|
3261
3335
|
|
|
3262
3336
|
/** @type {import('.')} */
|
|
@@ -3265,9 +3339,11 @@ if ($setHas$1) {
|
|
|
3265
3339
|
return false;
|
|
3266
3340
|
}
|
|
3267
3341
|
try {
|
|
3342
|
+
// @ts-expect-error TS can't figure out that $setHas is always truthy here
|
|
3268
3343
|
$setHas$1(x, $setHas$1);
|
|
3269
3344
|
if ($mapHas$1) {
|
|
3270
3345
|
try {
|
|
3346
|
+
// @ts-expect-error this indeed might not be a weak collection
|
|
3271
3347
|
$mapHas$1(x, $mapHas$1);
|
|
3272
3348
|
} catch (e) {
|
|
3273
3349
|
return true;
|
|
@@ -3280,8 +3356,8 @@ if ($setHas$1) {
|
|
|
3280
3356
|
};
|
|
3281
3357
|
} else {
|
|
3282
3358
|
/** @type {import('.')} */
|
|
3283
|
-
//
|
|
3284
|
-
isWeakset.exports = function isWeakSet(x) {
|
|
3359
|
+
// @ts-expect-error
|
|
3360
|
+
isWeakset.exports = function isWeakSet(x) { // eslint-disable-line no-unused-vars
|
|
3285
3361
|
// `WeakSet` does not exist, or does not have a `has` method
|
|
3286
3362
|
return false;
|
|
3287
3363
|
};
|
|
@@ -3418,6 +3494,7 @@ var isCallable = isCallable$1;
|
|
|
3418
3494
|
var toStr = Object.prototype.toString;
|
|
3419
3495
|
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
3420
3496
|
|
|
3497
|
+
/** @type {<This, A extends readonly unknown[]>(arr: A, iterator: (this: This | void, value: A[number], index: number, arr: A) => void, receiver: This | undefined) => void} */
|
|
3421
3498
|
var forEachArray = function forEachArray(array, iterator, receiver) {
|
|
3422
3499
|
for (var i = 0, len = array.length; i < len; i++) {
|
|
3423
3500
|
if (hasOwnProperty.call(array, i)) {
|
|
@@ -3430,6 +3507,7 @@ var forEachArray = function forEachArray(array, iterator, receiver) {
|
|
|
3430
3507
|
}
|
|
3431
3508
|
};
|
|
3432
3509
|
|
|
3510
|
+
/** @type {<This, S extends string>(string: S, iterator: (this: This | void, value: S[number], index: number, string: S) => void, receiver: This | undefined) => void} */
|
|
3433
3511
|
var forEachString = function forEachString(string, iterator, receiver) {
|
|
3434
3512
|
for (var i = 0, len = string.length; i < len; i++) {
|
|
3435
3513
|
// no such thing as a sparse string.
|
|
@@ -3441,6 +3519,7 @@ var forEachString = function forEachString(string, iterator, receiver) {
|
|
|
3441
3519
|
}
|
|
3442
3520
|
};
|
|
3443
3521
|
|
|
3522
|
+
/** @type {<This, O>(obj: O, iterator: (this: This | void, value: O[keyof O], index: keyof O, obj: O) => void, receiver: This | undefined) => void} */
|
|
3444
3523
|
var forEachObject = function forEachObject(object, iterator, receiver) {
|
|
3445
3524
|
for (var k in object) {
|
|
3446
3525
|
if (hasOwnProperty.call(object, k)) {
|
|
@@ -3453,6 +3532,12 @@ var forEachObject = function forEachObject(object, iterator, receiver) {
|
|
|
3453
3532
|
}
|
|
3454
3533
|
};
|
|
3455
3534
|
|
|
3535
|
+
/** @type {(x: unknown) => x is readonly unknown[]} */
|
|
3536
|
+
function isArray$1(x) {
|
|
3537
|
+
return toStr.call(x) === '[object Array]';
|
|
3538
|
+
}
|
|
3539
|
+
|
|
3540
|
+
/** @type {import('.')._internal} */
|
|
3456
3541
|
var forEach$1 = function forEach(list, iterator, thisArg) {
|
|
3457
3542
|
if (!isCallable(iterator)) {
|
|
3458
3543
|
throw new TypeError('iterator must be a function');
|
|
@@ -3463,7 +3548,7 @@ var forEach$1 = function forEach(list, iterator, thisArg) {
|
|
|
3463
3548
|
receiver = thisArg;
|
|
3464
3549
|
}
|
|
3465
3550
|
|
|
3466
|
-
if (
|
|
3551
|
+
if (isArray$1(list)) {
|
|
3467
3552
|
forEachArray(list, iterator, receiver);
|
|
3468
3553
|
} else if (typeof list === 'string') {
|
|
3469
3554
|
forEachString(list, iterator, receiver);
|
|
@@ -3472,10 +3557,9 @@ var forEach$1 = function forEach(list, iterator, thisArg) {
|
|
|
3472
3557
|
}
|
|
3473
3558
|
};
|
|
3474
3559
|
|
|
3475
|
-
var forEach_1 = forEach$1;
|
|
3476
|
-
|
|
3477
3560
|
/** @type {import('.')} */
|
|
3478
3561
|
var possibleTypedArrayNames = [
|
|
3562
|
+
'Float16Array',
|
|
3479
3563
|
'Float32Array',
|
|
3480
3564
|
'Float64Array',
|
|
3481
3565
|
'Int8Array',
|
|
@@ -3505,13 +3589,13 @@ var availableTypedArrays$1 = function availableTypedArrays() {
|
|
|
3505
3589
|
return out;
|
|
3506
3590
|
};
|
|
3507
3591
|
|
|
3508
|
-
var forEach =
|
|
3592
|
+
var forEach = forEach$1;
|
|
3509
3593
|
var availableTypedArrays = availableTypedArrays$1;
|
|
3510
3594
|
var callBind = callBindExports;
|
|
3511
|
-
var callBound$2 = callBound$
|
|
3595
|
+
var callBound$2 = callBound$i;
|
|
3512
3596
|
var gOPD = gopd$1;
|
|
3597
|
+
var getProto = getProto$3;
|
|
3513
3598
|
|
|
3514
|
-
/** @type {(O: object) => string} */
|
|
3515
3599
|
var $toString = callBound$2('Object.prototype.toString');
|
|
3516
3600
|
var hasToStringTag = shams();
|
|
3517
3601
|
|
|
@@ -3519,7 +3603,6 @@ var g = typeof globalThis === 'undefined' ? commonjsGlobal : globalThis;
|
|
|
3519
3603
|
var typedArrays = availableTypedArrays();
|
|
3520
3604
|
|
|
3521
3605
|
var $slice = callBound$2('String.prototype.slice');
|
|
3522
|
-
var getPrototypeOf = Object.getPrototypeOf; // require('getprototypeof');
|
|
3523
3606
|
|
|
3524
3607
|
/** @type {<T = unknown>(array: readonly T[], value: unknown) => number} */
|
|
3525
3608
|
var $indexOf = callBound$2('Array.prototype.indexOf', true) || function indexOf(array, value) {
|
|
@@ -3531,18 +3614,18 @@ var $indexOf = callBound$2('Array.prototype.indexOf', true) || function indexOf(
|
|
|
3531
3614
|
return -1;
|
|
3532
3615
|
};
|
|
3533
3616
|
|
|
3534
|
-
/** @typedef {
|
|
3535
|
-
/** @type {
|
|
3617
|
+
/** @typedef {import('./types').Getter} Getter */
|
|
3618
|
+
/** @type {import('./types').Cache} */
|
|
3536
3619
|
var cache = { __proto__: null };
|
|
3537
|
-
if (hasToStringTag && gOPD &&
|
|
3620
|
+
if (hasToStringTag && gOPD && getProto) {
|
|
3538
3621
|
forEach(typedArrays, function (typedArray) {
|
|
3539
3622
|
var arr = new g[typedArray]();
|
|
3540
|
-
if (Symbol.toStringTag in arr) {
|
|
3541
|
-
var proto =
|
|
3623
|
+
if (Symbol.toStringTag in arr && getProto) {
|
|
3624
|
+
var proto = getProto(arr);
|
|
3542
3625
|
// @ts-expect-error TS won't narrow inside a closure
|
|
3543
3626
|
var descriptor = gOPD(proto, Symbol.toStringTag);
|
|
3544
|
-
if (!descriptor) {
|
|
3545
|
-
var superProto =
|
|
3627
|
+
if (!descriptor && proto) {
|
|
3628
|
+
var superProto = getProto(proto);
|
|
3546
3629
|
// @ts-expect-error TS won't narrow inside a closure
|
|
3547
3630
|
descriptor = gOPD(superProto, Symbol.toStringTag);
|
|
3548
3631
|
}
|
|
@@ -3555,8 +3638,12 @@ if (hasToStringTag && gOPD && getPrototypeOf) {
|
|
|
3555
3638
|
var arr = new g[typedArray]();
|
|
3556
3639
|
var fn = arr.slice || arr.set;
|
|
3557
3640
|
if (fn) {
|
|
3558
|
-
|
|
3559
|
-
|
|
3641
|
+
cache[
|
|
3642
|
+
/** @type {`$${import('.').TypedArrayName}`} */ ('$' + typedArray)
|
|
3643
|
+
] = /** @type {import('./types').BoundSlice | import('./types').BoundSet} */ (
|
|
3644
|
+
// @ts-expect-error TODO FIXME
|
|
3645
|
+
callBind(fn)
|
|
3646
|
+
);
|
|
3560
3647
|
}
|
|
3561
3648
|
});
|
|
3562
3649
|
}
|
|
@@ -3565,15 +3652,14 @@ if (hasToStringTag && gOPD && getPrototypeOf) {
|
|
|
3565
3652
|
var tryTypedArrays = function tryAllTypedArrays(value) {
|
|
3566
3653
|
/** @type {ReturnType<typeof tryAllTypedArrays>} */ var found = false;
|
|
3567
3654
|
forEach(
|
|
3568
|
-
|
|
3569
|
-
/** @type {Record<`\$${TypedArrayName}`, Getter>} */ /** @type {any} */ (cache),
|
|
3655
|
+
/** @type {Record<`\$${import('.').TypedArrayName}`, Getter>} */ (cache),
|
|
3570
3656
|
/** @type {(getter: Getter, name: `\$${import('.').TypedArrayName}`) => void} */
|
|
3571
3657
|
function (getter, typedArray) {
|
|
3572
3658
|
if (!found) {
|
|
3573
3659
|
try {
|
|
3574
|
-
|
|
3660
|
+
// @ts-expect-error a throw is fine here
|
|
3575
3661
|
if ('$' + getter(value) === typedArray) {
|
|
3576
|
-
found = $slice(typedArray, 1);
|
|
3662
|
+
found = /** @type {import('.').TypedArrayName} */ ($slice(typedArray, 1));
|
|
3577
3663
|
}
|
|
3578
3664
|
} catch (e) { /**/ }
|
|
3579
3665
|
}
|
|
@@ -3586,14 +3672,13 @@ var tryTypedArrays = function tryAllTypedArrays(value) {
|
|
|
3586
3672
|
var trySlices = function tryAllSlices(value) {
|
|
3587
3673
|
/** @type {ReturnType<typeof tryAllSlices>} */ var found = false;
|
|
3588
3674
|
forEach(
|
|
3589
|
-
|
|
3590
|
-
/** @type {
|
|
3591
|
-
/** @type {(getter: typeof cache, name: `\$${import('.').TypedArrayName}`) => void} */ function (getter, name) {
|
|
3675
|
+
/** @type {Record<`\$${import('.').TypedArrayName}`, Getter>} */(cache),
|
|
3676
|
+
/** @type {(getter: Getter, name: `\$${import('.').TypedArrayName}`) => void} */ function (getter, name) {
|
|
3592
3677
|
if (!found) {
|
|
3593
3678
|
try {
|
|
3594
|
-
// @ts-expect-error
|
|
3679
|
+
// @ts-expect-error a throw is fine here
|
|
3595
3680
|
getter(value);
|
|
3596
|
-
found = $slice(name, 1);
|
|
3681
|
+
found = /** @type {import('.').TypedArrayName} */ ($slice(name, 1));
|
|
3597
3682
|
} catch (e) { /**/ }
|
|
3598
3683
|
}
|
|
3599
3684
|
}
|
|
@@ -3620,7 +3705,7 @@ var whichTypedArray$1 = function whichTypedArray(value) {
|
|
|
3620
3705
|
return tryTypedArrays(value);
|
|
3621
3706
|
};
|
|
3622
3707
|
|
|
3623
|
-
var callBound$1 = callBound$
|
|
3708
|
+
var callBound$1 = callBound$i;
|
|
3624
3709
|
var $byteLength = callBound$1('ArrayBuffer.prototype.byteLength', true);
|
|
3625
3710
|
|
|
3626
3711
|
var isArrayBuffer$1 = isArrayBuffer$2;
|
|
@@ -3634,7 +3719,7 @@ var arrayBufferByteLength = function byteLength(ab) {
|
|
|
3634
3719
|
}; // in node < 0.11, byteLength is an own nonconfigurable property
|
|
3635
3720
|
|
|
3636
3721
|
var assign = object_assign;
|
|
3637
|
-
var callBound = callBound$
|
|
3722
|
+
var callBound = callBound$g;
|
|
3638
3723
|
var flags = regexp_prototype_flags;
|
|
3639
3724
|
var GetIntrinsic = getIntrinsic;
|
|
3640
3725
|
var getIterator = esGetIteratorExports;
|
|
@@ -10351,7 +10436,7 @@ const fdc3Factory = () => {
|
|
|
10351
10436
|
return ioc.fdc3;
|
|
10352
10437
|
};
|
|
10353
10438
|
|
|
10354
|
-
var version = "2.
|
|
10439
|
+
var version = "2.7.1-beta.0";
|
|
10355
10440
|
|
|
10356
10441
|
const globalScope = typeof process !== "undefined" ? process : window;
|
|
10357
10442
|
globalScope.fdc3Info = {
|