title-switcher 2.1.12 → 2.1.14
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/browser/titleSwitcher.js +777 -657
- package/browser/titleSwitcher.min.js +1 -1
- package/dist/main.js +0 -1
- package/dist/main.min.js +1 -1
- package/package.json +2 -2
package/browser/titleSwitcher.js
CHANGED
|
@@ -22,7 +22,6 @@
|
|
|
22
22
|
require('core-js/modules/es.string.replace.js')
|
|
23
23
|
require('core-js/modules/es.string.trim.js')
|
|
24
24
|
require('core-js/modules/es.weak-map.js')
|
|
25
|
-
require('core-js/modules/esnext.async-iterator.for-each.js')
|
|
26
25
|
require('core-js/modules/esnext.iterator.constructor.js')
|
|
27
26
|
require('core-js/modules/esnext.iterator.for-each.js')
|
|
28
27
|
require('core-js/modules/esnext.weak-map.delete-all.js')
|
|
@@ -402,7 +401,7 @@
|
|
|
402
401
|
// @ts-ignore YES, we can use a string to add a property to Window
|
|
403
402
|
window.TitleSwitcher = TitleSwitcher
|
|
404
403
|
}
|
|
405
|
-
}, { 'core-js/modules/es.array.for-each.js':
|
|
404
|
+
}, { 'core-js/modules/es.array.for-each.js': 154, 'core-js/modules/es.array.iterator.js': 155, 'core-js/modules/es.array.join.js': 156, 'core-js/modules/es.date.to-primitive.js': 157, 'core-js/modules/es.number.constructor.js': 161, 'core-js/modules/es.object.define-property.js': 162, 'core-js/modules/es.object.to-string.js': 164, 'core-js/modules/es.regexp.constructor.js': 165, 'core-js/modules/es.regexp.exec.js': 166, 'core-js/modules/es.regexp.sticky.js': 167, 'core-js/modules/es.regexp.to-string.js': 168, 'core-js/modules/es.string.iterator.js': 169, 'core-js/modules/es.string.replace.js': 170, 'core-js/modules/es.string.trim.js': 171, 'core-js/modules/es.symbol.description.js': 173, 'core-js/modules/es.symbol.iterator.js': 175, 'core-js/modules/es.symbol.js': 176, 'core-js/modules/es.symbol.to-primitive.js': 178, 'core-js/modules/es.weak-map.js': 180, 'core-js/modules/esnext.iterator.constructor.js': 181, 'core-js/modules/esnext.iterator.for-each.js': 182, 'core-js/modules/esnext.weak-map.delete-all.js': 183, 'core-js/modules/web.dom-collections.for-each.js': 184, 'core-js/modules/web.dom-collections.iterator.js': 185, 'core-js/modules/web.timers.js': 188 }],
|
|
406
405
|
2: [function (require, module, exports) {
|
|
407
406
|
'use strict'
|
|
408
407
|
var isCallable = require('../internals/is-callable')
|
|
@@ -415,7 +414,7 @@
|
|
|
415
414
|
if (isCallable(argument)) return argument
|
|
416
415
|
throw new $TypeError(tryToString(argument) + ' is not a function')
|
|
417
416
|
}
|
|
418
|
-
}, { '../internals/is-callable':
|
|
417
|
+
}, { '../internals/is-callable': 71, '../internals/try-to-string': 143 }],
|
|
419
418
|
3: [function (require, module, exports) {
|
|
420
419
|
'use strict'
|
|
421
420
|
var isPossiblePrototype = require('../internals/is-possible-prototype')
|
|
@@ -427,7 +426,7 @@
|
|
|
427
426
|
if (isPossiblePrototype(argument)) return argument
|
|
428
427
|
throw new $TypeError("Can't set " + $String(argument) + ' as a prototype')
|
|
429
428
|
}
|
|
430
|
-
}, { '../internals/is-possible-prototype':
|
|
429
|
+
}, { '../internals/is-possible-prototype': 76 }],
|
|
431
430
|
4: [function (require, module, exports) {
|
|
432
431
|
'use strict'
|
|
433
432
|
var has = require('../internals/weak-map-helpers').has
|
|
@@ -437,7 +436,7 @@
|
|
|
437
436
|
has(it)
|
|
438
437
|
return it
|
|
439
438
|
}
|
|
440
|
-
}, { '../internals/weak-map-helpers':
|
|
439
|
+
}, { '../internals/weak-map-helpers': 149 }],
|
|
441
440
|
5: [function (require, module, exports) {
|
|
442
441
|
'use strict'
|
|
443
442
|
var wellKnownSymbol = require('../internals/well-known-symbol')
|
|
@@ -460,7 +459,7 @@
|
|
|
460
459
|
module.exports = function (key) {
|
|
461
460
|
ArrayPrototype[UNSCOPABLES][key] = true
|
|
462
461
|
}
|
|
463
|
-
}, { '../internals/object-create':
|
|
462
|
+
}, { '../internals/object-create': 92, '../internals/object-define-property': 94, '../internals/well-known-symbol': 152 }],
|
|
464
463
|
6: [function (require, module, exports) {
|
|
465
464
|
'use strict'
|
|
466
465
|
var charAt = require('../internals/string-multibyte').charAt
|
|
@@ -468,9 +467,9 @@
|
|
|
468
467
|
// `AdvanceStringIndex` abstract operation
|
|
469
468
|
// https://tc39.es/ecma262/#sec-advancestringindex
|
|
470
469
|
module.exports = function (S, index, unicode) {
|
|
471
|
-
return index + (unicode ? charAt(S, index).length : 1)
|
|
470
|
+
return index + (unicode ? charAt(S, index).length || 1 : 1)
|
|
472
471
|
}
|
|
473
|
-
}, { '../internals/string-multibyte':
|
|
472
|
+
}, { '../internals/string-multibyte': 127 }],
|
|
474
473
|
7: [function (require, module, exports) {
|
|
475
474
|
'use strict'
|
|
476
475
|
var isPrototypeOf = require('../internals/object-is-prototype-of')
|
|
@@ -481,7 +480,7 @@
|
|
|
481
480
|
if (isPrototypeOf(Prototype, it)) return it
|
|
482
481
|
throw new $TypeError('Incorrect invocation')
|
|
483
482
|
}
|
|
484
|
-
}, { '../internals/object-is-prototype-of':
|
|
483
|
+
}, { '../internals/object-is-prototype-of': 101 }],
|
|
485
484
|
8: [function (require, module, exports) {
|
|
486
485
|
'use strict'
|
|
487
486
|
var isObject = require('../internals/is-object')
|
|
@@ -494,7 +493,7 @@
|
|
|
494
493
|
if (isObject(argument)) return argument
|
|
495
494
|
throw new $TypeError($String(argument) + ' is not an object')
|
|
496
495
|
}
|
|
497
|
-
}, { '../internals/is-object':
|
|
496
|
+
}, { '../internals/is-object': 75 }],
|
|
498
497
|
9: [function (require, module, exports) {
|
|
499
498
|
'use strict'
|
|
500
499
|
// FF26- bug: ArrayBuffers are non-extensible, but Object.isExtensible does not report it
|
|
@@ -507,7 +506,7 @@
|
|
|
507
506
|
if (Object.isExtensible(buffer)) Object.defineProperty(buffer, 'a', { value: 8 })
|
|
508
507
|
}
|
|
509
508
|
})
|
|
510
|
-
}, { '../internals/fails':
|
|
509
|
+
}, { '../internals/fails': 42 }],
|
|
511
510
|
10: [function (require, module, exports) {
|
|
512
511
|
'use strict'
|
|
513
512
|
var $forEach = require('../internals/array-iteration').forEach
|
|
@@ -561,17 +560,15 @@
|
|
|
561
560
|
// https://tc39.es/ecma262/#sec-array.prototype.indexof
|
|
562
561
|
indexOf: createMethod(false)
|
|
563
562
|
}
|
|
564
|
-
}, { '../internals/length-of-array-like':
|
|
563
|
+
}, { '../internals/length-of-array-like': 88, '../internals/to-absolute-index': 134, '../internals/to-indexed-object': 135 }],
|
|
565
564
|
12: [function (require, module, exports) {
|
|
566
565
|
'use strict'
|
|
567
566
|
var bind = require('../internals/function-bind-context')
|
|
568
|
-
var uncurryThis = require('../internals/function-uncurry-this')
|
|
569
567
|
var IndexedObject = require('../internals/indexed-object')
|
|
570
568
|
var toObject = require('../internals/to-object')
|
|
571
569
|
var lengthOfArrayLike = require('../internals/length-of-array-like')
|
|
572
570
|
var arraySpeciesCreate = require('../internals/array-species-create')
|
|
573
|
-
|
|
574
|
-
var push = uncurryThis([].push)
|
|
571
|
+
var createProperty = require('../internals/create-property')
|
|
575
572
|
|
|
576
573
|
// `Array.prototype.{ forEach, map, filter, some, every, find, findIndex, filterReject }` methods implementation
|
|
577
574
|
var createMethod = function (TYPE) {
|
|
@@ -582,32 +579,32 @@
|
|
|
582
579
|
var IS_FIND_INDEX = TYPE === 6
|
|
583
580
|
var IS_FILTER_REJECT = TYPE === 7
|
|
584
581
|
var NO_HOLES = TYPE === 5 || IS_FIND_INDEX
|
|
585
|
-
return function ($this, callbackfn, that
|
|
582
|
+
return function ($this, callbackfn, that) {
|
|
586
583
|
var O = toObject($this)
|
|
587
584
|
var self = IndexedObject(O)
|
|
588
585
|
var length = lengthOfArrayLike(self)
|
|
589
586
|
var boundFunction = bind(callbackfn, that)
|
|
590
587
|
var index = 0
|
|
591
|
-
var
|
|
592
|
-
var target = IS_MAP ?
|
|
588
|
+
var resIndex = 0
|
|
589
|
+
var target = IS_MAP ? arraySpeciesCreate($this, length) : IS_FILTER || IS_FILTER_REJECT ? arraySpeciesCreate($this, 0) : undefined
|
|
593
590
|
var value, result
|
|
594
591
|
for (;length > index; index++) {
|
|
595
592
|
if (NO_HOLES || index in self) {
|
|
596
593
|
value = self[index]
|
|
597
594
|
result = boundFunction(value, index, O)
|
|
598
595
|
if (TYPE) {
|
|
599
|
-
if (IS_MAP) target
|
|
596
|
+
if (IS_MAP) createProperty(target, index, result) // map
|
|
600
597
|
else if (result) {
|
|
601
598
|
switch (TYPE) {
|
|
602
599
|
case 3: return true // some
|
|
603
600
|
case 5: return value // find
|
|
604
601
|
case 6: return index // findIndex
|
|
605
|
-
case 2:
|
|
602
|
+
case 2: createProperty(target, resIndex++, value) // filter
|
|
606
603
|
}
|
|
607
604
|
} else {
|
|
608
605
|
switch (TYPE) {
|
|
609
606
|
case 4: return false // every
|
|
610
|
-
case 7:
|
|
607
|
+
case 7: createProperty(target, resIndex++, value) // filterReject
|
|
611
608
|
}
|
|
612
609
|
}
|
|
613
610
|
}
|
|
@@ -643,7 +640,7 @@
|
|
|
643
640
|
// https://github.com/tc39/proposal-array-filtering
|
|
644
641
|
filterReject: createMethod(7)
|
|
645
642
|
}
|
|
646
|
-
}, { '../internals/array-species-create': 16, '../internals/
|
|
643
|
+
}, { '../internals/array-species-create': 16, '../internals/create-property': 27, '../internals/function-bind-context': 46, '../internals/indexed-object': 64, '../internals/length-of-array-like': 88, '../internals/to-object': 138 }],
|
|
647
644
|
13: [function (require, module, exports) {
|
|
648
645
|
'use strict'
|
|
649
646
|
var fails = require('../internals/fails')
|
|
@@ -655,13 +652,13 @@
|
|
|
655
652
|
method.call(null, argument || function () { return 1 }, 1)
|
|
656
653
|
})
|
|
657
654
|
}
|
|
658
|
-
}, { '../internals/fails':
|
|
655
|
+
}, { '../internals/fails': 42 }],
|
|
659
656
|
14: [function (require, module, exports) {
|
|
660
657
|
'use strict'
|
|
661
658
|
var uncurryThis = require('../internals/function-uncurry-this')
|
|
662
659
|
|
|
663
660
|
module.exports = uncurryThis([].slice)
|
|
664
|
-
}, { '../internals/function-uncurry-this':
|
|
661
|
+
}, { '../internals/function-uncurry-this': 52 }],
|
|
665
662
|
15: [function (require, module, exports) {
|
|
666
663
|
'use strict'
|
|
667
664
|
var isArray = require('../internals/is-array')
|
|
@@ -686,7 +683,7 @@
|
|
|
686
683
|
}
|
|
687
684
|
} return C === undefined ? $Array : C
|
|
688
685
|
}
|
|
689
|
-
}, { '../internals/is-array':
|
|
686
|
+
}, { '../internals/is-array': 70, '../internals/is-constructor': 72, '../internals/is-object': 75, '../internals/well-known-symbol': 152 }],
|
|
690
687
|
16: [function (require, module, exports) {
|
|
691
688
|
'use strict'
|
|
692
689
|
var arraySpeciesConstructor = require('../internals/array-species-constructor')
|
|
@@ -698,121 +695,6 @@
|
|
|
698
695
|
}
|
|
699
696
|
}, { '../internals/array-species-constructor': 15 }],
|
|
700
697
|
17: [function (require, module, exports) {
|
|
701
|
-
'use strict'
|
|
702
|
-
var call = require('../internals/function-call')
|
|
703
|
-
var getBuiltIn = require('../internals/get-built-in')
|
|
704
|
-
var getMethod = require('../internals/get-method')
|
|
705
|
-
|
|
706
|
-
module.exports = function (iterator, method, argument, reject) {
|
|
707
|
-
try {
|
|
708
|
-
var returnMethod = getMethod(iterator, 'return')
|
|
709
|
-
if (returnMethod) {
|
|
710
|
-
return getBuiltIn('Promise').resolve(call(returnMethod, iterator)).then(function () {
|
|
711
|
-
method(argument)
|
|
712
|
-
}, function (error) {
|
|
713
|
-
reject(error)
|
|
714
|
-
})
|
|
715
|
-
}
|
|
716
|
-
} catch (error2) {
|
|
717
|
-
return reject(error2)
|
|
718
|
-
} method(argument)
|
|
719
|
-
}
|
|
720
|
-
}, { '../internals/function-call': 51, '../internals/get-built-in': 56, '../internals/get-method': 61 }],
|
|
721
|
-
18: [function (require, module, exports) {
|
|
722
|
-
'use strict'
|
|
723
|
-
// https://github.com/tc39/proposal-iterator-helpers
|
|
724
|
-
// https://github.com/tc39/proposal-array-from-async
|
|
725
|
-
var call = require('../internals/function-call')
|
|
726
|
-
var aCallable = require('../internals/a-callable')
|
|
727
|
-
var anObject = require('../internals/an-object')
|
|
728
|
-
var isObject = require('../internals/is-object')
|
|
729
|
-
var doesNotExceedSafeInteger = require('../internals/does-not-exceed-safe-integer')
|
|
730
|
-
var getBuiltIn = require('../internals/get-built-in')
|
|
731
|
-
var getIteratorDirect = require('../internals/get-iterator-direct')
|
|
732
|
-
var closeAsyncIteration = require('../internals/async-iterator-close')
|
|
733
|
-
|
|
734
|
-
var createMethod = function (TYPE) {
|
|
735
|
-
var IS_TO_ARRAY = TYPE === 0
|
|
736
|
-
var IS_FOR_EACH = TYPE === 1
|
|
737
|
-
var IS_EVERY = TYPE === 2
|
|
738
|
-
var IS_SOME = TYPE === 3
|
|
739
|
-
return function (object, fn, target) {
|
|
740
|
-
anObject(object)
|
|
741
|
-
var MAPPING = fn !== undefined
|
|
742
|
-
if (MAPPING || !IS_TO_ARRAY) aCallable(fn)
|
|
743
|
-
var record = getIteratorDirect(object)
|
|
744
|
-
var Promise = getBuiltIn('Promise')
|
|
745
|
-
var iterator = record.iterator
|
|
746
|
-
var next = record.next
|
|
747
|
-
var counter = 0
|
|
748
|
-
|
|
749
|
-
return new Promise(function (resolve, reject) {
|
|
750
|
-
var ifAbruptCloseAsyncIterator = function (error) {
|
|
751
|
-
closeAsyncIteration(iterator, reject, error, reject)
|
|
752
|
-
}
|
|
753
|
-
|
|
754
|
-
var loop = function () {
|
|
755
|
-
try {
|
|
756
|
-
if (MAPPING) {
|
|
757
|
-
try {
|
|
758
|
-
doesNotExceedSafeInteger(counter)
|
|
759
|
-
} catch (error5) { ifAbruptCloseAsyncIterator(error5) }
|
|
760
|
-
}
|
|
761
|
-
Promise.resolve(anObject(call(next, iterator))).then(function (step) {
|
|
762
|
-
try {
|
|
763
|
-
if (anObject(step).done) {
|
|
764
|
-
if (IS_TO_ARRAY) {
|
|
765
|
-
target.length = counter
|
|
766
|
-
resolve(target)
|
|
767
|
-
} else resolve(IS_SOME ? false : IS_EVERY || undefined)
|
|
768
|
-
} else {
|
|
769
|
-
var value = step.value
|
|
770
|
-
try {
|
|
771
|
-
if (MAPPING) {
|
|
772
|
-
var result = fn(value, counter)
|
|
773
|
-
|
|
774
|
-
var handler = function ($result) {
|
|
775
|
-
if (IS_FOR_EACH) {
|
|
776
|
-
loop()
|
|
777
|
-
} else if (IS_EVERY) {
|
|
778
|
-
$result ? loop() : closeAsyncIteration(iterator, resolve, false, reject)
|
|
779
|
-
} else if (IS_TO_ARRAY) {
|
|
780
|
-
try {
|
|
781
|
-
target[counter++] = $result
|
|
782
|
-
loop()
|
|
783
|
-
} catch (error4) { ifAbruptCloseAsyncIterator(error4) }
|
|
784
|
-
} else {
|
|
785
|
-
$result ? closeAsyncIteration(iterator, resolve, IS_SOME || value, reject) : loop()
|
|
786
|
-
}
|
|
787
|
-
}
|
|
788
|
-
|
|
789
|
-
if (isObject(result)) Promise.resolve(result).then(handler, ifAbruptCloseAsyncIterator)
|
|
790
|
-
else handler(result)
|
|
791
|
-
} else {
|
|
792
|
-
target[counter++] = value
|
|
793
|
-
loop()
|
|
794
|
-
}
|
|
795
|
-
} catch (error3) { ifAbruptCloseAsyncIterator(error3) }
|
|
796
|
-
}
|
|
797
|
-
} catch (error2) { reject(error2) }
|
|
798
|
-
}, reject)
|
|
799
|
-
} catch (error) { reject(error) }
|
|
800
|
-
}
|
|
801
|
-
|
|
802
|
-
loop()
|
|
803
|
-
})
|
|
804
|
-
}
|
|
805
|
-
}
|
|
806
|
-
|
|
807
|
-
module.exports = {
|
|
808
|
-
toArray: createMethod(0),
|
|
809
|
-
forEach: createMethod(1),
|
|
810
|
-
every: createMethod(2),
|
|
811
|
-
some: createMethod(3),
|
|
812
|
-
find: createMethod(4)
|
|
813
|
-
}
|
|
814
|
-
}, { '../internals/a-callable': 2, '../internals/an-object': 8, '../internals/async-iterator-close': 17, '../internals/does-not-exceed-safe-integer': 37, '../internals/function-call': 51, '../internals/get-built-in': 56, '../internals/get-iterator-direct': 57, '../internals/is-object': 79 }],
|
|
815
|
-
19: [function (require, module, exports) {
|
|
816
698
|
'use strict'
|
|
817
699
|
var wellKnownSymbol = require('../internals/well-known-symbol')
|
|
818
700
|
|
|
@@ -829,6 +711,7 @@
|
|
|
829
711
|
SAFE_CLOSING = true
|
|
830
712
|
}
|
|
831
713
|
}
|
|
714
|
+
// eslint-disable-next-line unicorn/no-immediate-mutation -- ES3 syntax limitation
|
|
832
715
|
iteratorWithReturn[ITERATOR] = function () {
|
|
833
716
|
return this
|
|
834
717
|
}
|
|
@@ -843,6 +726,7 @@
|
|
|
843
726
|
var ITERATION_SUPPORT = false
|
|
844
727
|
try {
|
|
845
728
|
var object = {}
|
|
729
|
+
// eslint-disable-next-line unicorn/no-immediate-mutation -- ES3 syntax limitation
|
|
846
730
|
object[ITERATOR] = function () {
|
|
847
731
|
return {
|
|
848
732
|
next: function () {
|
|
@@ -854,8 +738,8 @@
|
|
|
854
738
|
} catch (error) { /* empty */ }
|
|
855
739
|
return ITERATION_SUPPORT
|
|
856
740
|
}
|
|
857
|
-
}, { '../internals/well-known-symbol':
|
|
858
|
-
|
|
741
|
+
}, { '../internals/well-known-symbol': 152 }],
|
|
742
|
+
18: [function (require, module, exports) {
|
|
859
743
|
'use strict'
|
|
860
744
|
var uncurryThis = require('../internals/function-uncurry-this')
|
|
861
745
|
|
|
@@ -865,8 +749,8 @@
|
|
|
865
749
|
module.exports = function (it) {
|
|
866
750
|
return stringSlice(toString(it), 8, -1)
|
|
867
751
|
}
|
|
868
|
-
}, { '../internals/function-uncurry-this':
|
|
869
|
-
|
|
752
|
+
}, { '../internals/function-uncurry-this': 52 }],
|
|
753
|
+
19: [function (require, module, exports) {
|
|
870
754
|
'use strict'
|
|
871
755
|
var TO_STRING_TAG_SUPPORT = require('../internals/to-string-tag-support')
|
|
872
756
|
var isCallable = require('../internals/is-callable')
|
|
@@ -897,8 +781,8 @@
|
|
|
897
781
|
// ES3 arguments fallback
|
|
898
782
|
: (result = classofRaw(O)) === 'Object' && isCallable(O.callee) ? 'Arguments' : result
|
|
899
783
|
}
|
|
900
|
-
}, { '../internals/classof-raw':
|
|
901
|
-
|
|
784
|
+
}, { '../internals/classof-raw': 18, '../internals/is-callable': 71, '../internals/to-string-tag-support': 141, '../internals/well-known-symbol': 152 }],
|
|
785
|
+
20: [function (require, module, exports) {
|
|
902
786
|
'use strict'
|
|
903
787
|
var uncurryThis = require('../internals/function-uncurry-this')
|
|
904
788
|
var defineBuiltIns = require('../internals/define-built-ins')
|
|
@@ -1030,8 +914,8 @@
|
|
|
1030
914
|
return Constructor
|
|
1031
915
|
}
|
|
1032
916
|
}
|
|
1033
|
-
}, { '../internals/an-instance': 7, '../internals/an-object': 8, '../internals/array-iteration': 12, '../internals/define-built-ins':
|
|
1034
|
-
|
|
917
|
+
}, { '../internals/an-instance': 7, '../internals/an-object': 8, '../internals/array-iteration': 12, '../internals/define-built-ins': 31, '../internals/function-uncurry-this': 52, '../internals/has-own-property': 60, '../internals/internal-metadata': 67, '../internals/internal-state': 68, '../internals/is-null-or-undefined': 74, '../internals/is-object': 75, '../internals/iterate': 81 }],
|
|
918
|
+
21: [function (require, module, exports) {
|
|
1035
919
|
'use strict'
|
|
1036
920
|
var $ = require('../internals/export')
|
|
1037
921
|
var globalThis = require('../internals/global-this')
|
|
@@ -1138,8 +1022,8 @@
|
|
|
1138
1022
|
|
|
1139
1023
|
return Constructor
|
|
1140
1024
|
}
|
|
1141
|
-
}, { '../internals/an-instance': 7, '../internals/check-correctness-of-iteration':
|
|
1142
|
-
|
|
1025
|
+
}, { '../internals/an-instance': 7, '../internals/check-correctness-of-iteration': 17, '../internals/define-built-in': 30, '../internals/export': 41, '../internals/fails': 42, '../internals/function-uncurry-this': 52, '../internals/global-this': 59, '../internals/inherit-if-required': 65, '../internals/internal-metadata': 67, '../internals/is-callable': 71, '../internals/is-forced': 73, '../internals/is-null-or-undefined': 74, '../internals/is-object': 75, '../internals/iterate': 81, '../internals/set-to-string-tag': 123 }],
|
|
1026
|
+
22: [function (require, module, exports) {
|
|
1143
1027
|
'use strict'
|
|
1144
1028
|
var hasOwn = require('../internals/has-own-property')
|
|
1145
1029
|
var ownKeys = require('../internals/own-keys')
|
|
@@ -1157,8 +1041,8 @@
|
|
|
1157
1041
|
}
|
|
1158
1042
|
}
|
|
1159
1043
|
}
|
|
1160
|
-
}, { '../internals/has-own-property':
|
|
1161
|
-
|
|
1044
|
+
}, { '../internals/has-own-property': 60, '../internals/object-define-property': 94, '../internals/object-get-own-property-descriptor': 95, '../internals/own-keys': 108 }],
|
|
1045
|
+
23: [function (require, module, exports) {
|
|
1162
1046
|
'use strict'
|
|
1163
1047
|
var fails = require('../internals/fails')
|
|
1164
1048
|
|
|
@@ -1168,8 +1052,8 @@
|
|
|
1168
1052
|
// eslint-disable-next-line es/no-object-getprototypeof -- required for testing
|
|
1169
1053
|
return Object.getPrototypeOf(new F()) !== F.prototype
|
|
1170
1054
|
})
|
|
1171
|
-
}, { '../internals/fails':
|
|
1172
|
-
|
|
1055
|
+
}, { '../internals/fails': 42 }],
|
|
1056
|
+
24: [function (require, module, exports) {
|
|
1173
1057
|
'use strict'
|
|
1174
1058
|
// `CreateIterResultObject` abstract operation
|
|
1175
1059
|
// https://tc39.es/ecma262/#sec-createiterresultobject
|
|
@@ -1177,7 +1061,7 @@
|
|
|
1177
1061
|
return { value: value, done: done }
|
|
1178
1062
|
}
|
|
1179
1063
|
}, {}],
|
|
1180
|
-
|
|
1064
|
+
25: [function (require, module, exports) {
|
|
1181
1065
|
'use strict'
|
|
1182
1066
|
var DESCRIPTORS = require('../internals/descriptors')
|
|
1183
1067
|
var definePropertyModule = require('../internals/object-define-property')
|
|
@@ -1189,8 +1073,8 @@
|
|
|
1189
1073
|
object[key] = value
|
|
1190
1074
|
return object
|
|
1191
1075
|
}
|
|
1192
|
-
}, { '../internals/create-property-descriptor':
|
|
1193
|
-
|
|
1076
|
+
}, { '../internals/create-property-descriptor': 26, '../internals/descriptors': 33, '../internals/object-define-property': 94 }],
|
|
1077
|
+
26: [function (require, module, exports) {
|
|
1194
1078
|
'use strict'
|
|
1195
1079
|
module.exports = function (bitmap, value) {
|
|
1196
1080
|
return {
|
|
@@ -1201,7 +1085,7 @@
|
|
|
1201
1085
|
}
|
|
1202
1086
|
}
|
|
1203
1087
|
}, {}],
|
|
1204
|
-
|
|
1088
|
+
27: [function (require, module, exports) {
|
|
1205
1089
|
'use strict'
|
|
1206
1090
|
var DESCRIPTORS = require('../internals/descriptors')
|
|
1207
1091
|
var definePropertyModule = require('../internals/object-define-property')
|
|
@@ -1211,8 +1095,8 @@
|
|
|
1211
1095
|
if (DESCRIPTORS) definePropertyModule.f(object, key, createPropertyDescriptor(0, value))
|
|
1212
1096
|
else object[key] = value
|
|
1213
1097
|
}
|
|
1214
|
-
}, { '../internals/create-property-descriptor':
|
|
1215
|
-
|
|
1098
|
+
}, { '../internals/create-property-descriptor': 26, '../internals/descriptors': 33, '../internals/object-define-property': 94 }],
|
|
1099
|
+
28: [function (require, module, exports) {
|
|
1216
1100
|
'use strict'
|
|
1217
1101
|
var anObject = require('../internals/an-object')
|
|
1218
1102
|
var ordinaryToPrimitive = require('../internals/ordinary-to-primitive')
|
|
@@ -1227,8 +1111,8 @@
|
|
|
1227
1111
|
else if (hint !== 'number') throw new $TypeError('Incorrect hint')
|
|
1228
1112
|
return ordinaryToPrimitive(this, hint)
|
|
1229
1113
|
}
|
|
1230
|
-
}, { '../internals/an-object': 8, '../internals/ordinary-to-primitive':
|
|
1231
|
-
|
|
1114
|
+
}, { '../internals/an-object': 8, '../internals/ordinary-to-primitive': 107 }],
|
|
1115
|
+
29: [function (require, module, exports) {
|
|
1232
1116
|
'use strict'
|
|
1233
1117
|
var makeBuiltIn = require('../internals/make-built-in')
|
|
1234
1118
|
var defineProperty = require('../internals/object-define-property')
|
|
@@ -1238,8 +1122,8 @@
|
|
|
1238
1122
|
if (descriptor.set) makeBuiltIn(descriptor.set, name, { setter: true })
|
|
1239
1123
|
return defineProperty.f(target, name, descriptor)
|
|
1240
1124
|
}
|
|
1241
|
-
}, { '../internals/make-built-in':
|
|
1242
|
-
|
|
1125
|
+
}, { '../internals/make-built-in': 89, '../internals/object-define-property': 94 }],
|
|
1126
|
+
30: [function (require, module, exports) {
|
|
1243
1127
|
'use strict'
|
|
1244
1128
|
var isCallable = require('../internals/is-callable')
|
|
1245
1129
|
var definePropertyModule = require('../internals/object-define-property')
|
|
@@ -1270,8 +1154,8 @@
|
|
|
1270
1154
|
}
|
|
1271
1155
|
} return O
|
|
1272
1156
|
}
|
|
1273
|
-
}, { '../internals/define-global-property':
|
|
1274
|
-
|
|
1157
|
+
}, { '../internals/define-global-property': 32, '../internals/is-callable': 71, '../internals/make-built-in': 89, '../internals/object-define-property': 94 }],
|
|
1158
|
+
31: [function (require, module, exports) {
|
|
1275
1159
|
'use strict'
|
|
1276
1160
|
var defineBuiltIn = require('../internals/define-built-in')
|
|
1277
1161
|
|
|
@@ -1279,8 +1163,8 @@
|
|
|
1279
1163
|
for (var key in src) defineBuiltIn(target, key, src[key], options)
|
|
1280
1164
|
return target
|
|
1281
1165
|
}
|
|
1282
|
-
}, { '../internals/define-built-in':
|
|
1283
|
-
|
|
1166
|
+
}, { '../internals/define-built-in': 30 }],
|
|
1167
|
+
32: [function (require, module, exports) {
|
|
1284
1168
|
'use strict'
|
|
1285
1169
|
var globalThis = require('../internals/global-this')
|
|
1286
1170
|
|
|
@@ -1294,8 +1178,8 @@
|
|
|
1294
1178
|
globalThis[key] = value
|
|
1295
1179
|
} return value
|
|
1296
1180
|
}
|
|
1297
|
-
}, { '../internals/global-this':
|
|
1298
|
-
|
|
1181
|
+
}, { '../internals/global-this': 59 }],
|
|
1182
|
+
33: [function (require, module, exports) {
|
|
1299
1183
|
'use strict'
|
|
1300
1184
|
var fails = require('../internals/fails')
|
|
1301
1185
|
|
|
@@ -1304,8 +1188,8 @@
|
|
|
1304
1188
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
1305
1189
|
return Object.defineProperty({}, 1, { get: function () { return 7 } })[1] !== 7
|
|
1306
1190
|
})
|
|
1307
|
-
}, { '../internals/fails':
|
|
1308
|
-
|
|
1191
|
+
}, { '../internals/fails': 42 }],
|
|
1192
|
+
34: [function (require, module, exports) {
|
|
1309
1193
|
'use strict'
|
|
1310
1194
|
var globalThis = require('../internals/global-this')
|
|
1311
1195
|
var isObject = require('../internals/is-object')
|
|
@@ -1317,18 +1201,8 @@
|
|
|
1317
1201
|
module.exports = function (it) {
|
|
1318
1202
|
return EXISTS ? document.createElement(it) : {}
|
|
1319
1203
|
}
|
|
1320
|
-
}, { '../internals/global-this':
|
|
1321
|
-
|
|
1322
|
-
'use strict'
|
|
1323
|
-
var $TypeError = TypeError
|
|
1324
|
-
var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF // 2 ** 53 - 1 == 9007199254740991
|
|
1325
|
-
|
|
1326
|
-
module.exports = function (it) {
|
|
1327
|
-
if (it > MAX_SAFE_INTEGER) throw $TypeError('Maximum allowed index exceeded')
|
|
1328
|
-
return it
|
|
1329
|
-
}
|
|
1330
|
-
}, {}],
|
|
1331
|
-
38: [function (require, module, exports) {
|
|
1204
|
+
}, { '../internals/global-this': 59, '../internals/is-object': 75 }],
|
|
1205
|
+
35: [function (require, module, exports) {
|
|
1332
1206
|
'use strict'
|
|
1333
1207
|
// iterable DOM collections
|
|
1334
1208
|
// flag - `iterable` interface - 'entries', 'keys', 'values', 'forEach' methods
|
|
@@ -1366,7 +1240,7 @@
|
|
|
1366
1240
|
TouchList: 0
|
|
1367
1241
|
}
|
|
1368
1242
|
}, {}],
|
|
1369
|
-
|
|
1243
|
+
36: [function (require, module, exports) {
|
|
1370
1244
|
'use strict'
|
|
1371
1245
|
// in old WebKit versions, `element.classList` is not an instance of global `DOMTokenList`
|
|
1372
1246
|
var documentCreateElement = require('../internals/document-create-element')
|
|
@@ -1375,8 +1249,8 @@
|
|
|
1375
1249
|
var DOMTokenListPrototype = classList && classList.constructor && classList.constructor.prototype
|
|
1376
1250
|
|
|
1377
1251
|
module.exports = DOMTokenListPrototype === Object.prototype ? undefined : DOMTokenListPrototype
|
|
1378
|
-
}, { '../internals/document-create-element':
|
|
1379
|
-
|
|
1252
|
+
}, { '../internals/document-create-element': 34 }],
|
|
1253
|
+
37: [function (require, module, exports) {
|
|
1380
1254
|
'use strict'
|
|
1381
1255
|
// IE8- don't enum bug keys
|
|
1382
1256
|
module.exports = [
|
|
@@ -1389,7 +1263,7 @@
|
|
|
1389
1263
|
'valueOf'
|
|
1390
1264
|
]
|
|
1391
1265
|
}, {}],
|
|
1392
|
-
|
|
1266
|
+
38: [function (require, module, exports) {
|
|
1393
1267
|
'use strict'
|
|
1394
1268
|
var globalThis = require('../internals/global-this')
|
|
1395
1269
|
|
|
@@ -1397,8 +1271,8 @@
|
|
|
1397
1271
|
var userAgent = navigator && navigator.userAgent
|
|
1398
1272
|
|
|
1399
1273
|
module.exports = userAgent ? String(userAgent) : ''
|
|
1400
|
-
}, { '../internals/global-this':
|
|
1401
|
-
|
|
1274
|
+
}, { '../internals/global-this': 59 }],
|
|
1275
|
+
39: [function (require, module, exports) {
|
|
1402
1276
|
'use strict'
|
|
1403
1277
|
var globalThis = require('../internals/global-this')
|
|
1404
1278
|
var userAgent = require('../internals/environment-user-agent')
|
|
@@ -1427,8 +1301,8 @@
|
|
|
1427
1301
|
}
|
|
1428
1302
|
|
|
1429
1303
|
module.exports = version
|
|
1430
|
-
}, { '../internals/environment-user-agent':
|
|
1431
|
-
|
|
1304
|
+
}, { '../internals/environment-user-agent': 38, '../internals/global-this': 59 }],
|
|
1305
|
+
40: [function (require, module, exports) {
|
|
1432
1306
|
'use strict'
|
|
1433
1307
|
/* global Bun, Deno -- detection */
|
|
1434
1308
|
var globalThis = require('../internals/global-this')
|
|
@@ -1450,8 +1324,8 @@
|
|
|
1450
1324
|
if (globalThis.window && globalThis.document) return 'BROWSER'
|
|
1451
1325
|
return 'REST'
|
|
1452
1326
|
})()
|
|
1453
|
-
}, { '../internals/classof-raw':
|
|
1454
|
-
|
|
1327
|
+
}, { '../internals/classof-raw': 18, '../internals/environment-user-agent': 38, '../internals/global-this': 59 }],
|
|
1328
|
+
41: [function (require, module, exports) {
|
|
1455
1329
|
'use strict'
|
|
1456
1330
|
var globalThis = require('../internals/global-this')
|
|
1457
1331
|
var getOwnPropertyDescriptor = require('../internals/object-get-own-property-descriptor').f
|
|
@@ -1509,8 +1383,8 @@
|
|
|
1509
1383
|
}
|
|
1510
1384
|
}
|
|
1511
1385
|
}
|
|
1512
|
-
}, { '../internals/copy-constructor-properties':
|
|
1513
|
-
|
|
1386
|
+
}, { '../internals/copy-constructor-properties': 22, '../internals/create-non-enumerable-property': 25, '../internals/define-built-in': 30, '../internals/define-global-property': 32, '../internals/global-this': 59, '../internals/is-forced': 73, '../internals/object-get-own-property-descriptor': 95 }],
|
|
1387
|
+
42: [function (require, module, exports) {
|
|
1514
1388
|
'use strict'
|
|
1515
1389
|
module.exports = function (exec) {
|
|
1516
1390
|
try {
|
|
@@ -1520,7 +1394,7 @@
|
|
|
1520
1394
|
}
|
|
1521
1395
|
}
|
|
1522
1396
|
}, {}],
|
|
1523
|
-
|
|
1397
|
+
43: [function (require, module, exports) {
|
|
1524
1398
|
'use strict'
|
|
1525
1399
|
// TODO: Remove from `core-js@4` since it's moved to entry points
|
|
1526
1400
|
require('../modules/es.regexp.exec')
|
|
@@ -1540,6 +1414,7 @@
|
|
|
1540
1414
|
var DELEGATES_TO_SYMBOL = !fails(function () {
|
|
1541
1415
|
// String methods call symbol-named RegExp methods
|
|
1542
1416
|
var O = {}
|
|
1417
|
+
// eslint-disable-next-line unicorn/no-immediate-mutation -- ES3 syntax limitation
|
|
1543
1418
|
O[SYMBOL] = function () { return 7 }
|
|
1544
1419
|
return ''[KEY](O) !== 7
|
|
1545
1420
|
})
|
|
@@ -1553,12 +1428,13 @@
|
|
|
1553
1428
|
// We can't use real regex here since it causes deoptimization
|
|
1554
1429
|
// and serious performance degradation in V8
|
|
1555
1430
|
// https://github.com/zloirock/core-js/issues/306
|
|
1556
|
-
re = {}
|
|
1557
1431
|
// RegExp[@@split] doesn't call the regex's exec method, but first creates
|
|
1558
1432
|
// a new one. We need to return the patched regex when creating the new one.
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1433
|
+
var constructor = {}
|
|
1434
|
+
// eslint-disable-next-line unicorn/no-immediate-mutation -- ES3 syntax limitation
|
|
1435
|
+
constructor[SPECIES] = function () { return re }
|
|
1436
|
+
re = { constructor: constructor, flags: '' }
|
|
1437
|
+
// eslint-disable-next-line unicorn/no-immediate-mutation -- ES3 syntax limitation
|
|
1562
1438
|
re[SYMBOL] = /./[SYMBOL]
|
|
1563
1439
|
}
|
|
1564
1440
|
|
|
@@ -1597,8 +1473,8 @@
|
|
|
1597
1473
|
|
|
1598
1474
|
if (SHAM) createNonEnumerableProperty(RegExpPrototype[SYMBOL], 'sham', true)
|
|
1599
1475
|
}
|
|
1600
|
-
}, { '../internals/create-non-enumerable-property':
|
|
1601
|
-
|
|
1476
|
+
}, { '../internals/create-non-enumerable-property': 25, '../internals/define-built-in': 30, '../internals/fails': 42, '../internals/function-call': 48, '../internals/regexp-exec': 113, '../internals/well-known-symbol': 152, '../modules/es.regexp.exec': 166 }],
|
|
1477
|
+
44: [function (require, module, exports) {
|
|
1602
1478
|
'use strict'
|
|
1603
1479
|
var fails = require('../internals/fails')
|
|
1604
1480
|
|
|
@@ -1606,8 +1482,8 @@
|
|
|
1606
1482
|
// eslint-disable-next-line es/no-object-isextensible, es/no-object-preventextensions -- required for testing
|
|
1607
1483
|
return Object.isExtensible(Object.preventExtensions({}))
|
|
1608
1484
|
})
|
|
1609
|
-
}, { '../internals/fails':
|
|
1610
|
-
|
|
1485
|
+
}, { '../internals/fails': 42 }],
|
|
1486
|
+
45: [function (require, module, exports) {
|
|
1611
1487
|
'use strict'
|
|
1612
1488
|
var NATIVE_BIND = require('../internals/function-bind-native')
|
|
1613
1489
|
|
|
@@ -1615,12 +1491,12 @@
|
|
|
1615
1491
|
var apply = FunctionPrototype.apply
|
|
1616
1492
|
var call = FunctionPrototype.call
|
|
1617
1493
|
|
|
1618
|
-
// eslint-disable-next-line es/no-reflect -- safe
|
|
1494
|
+
// eslint-disable-next-line es/no-function-prototype-bind, es/no-reflect -- safe
|
|
1619
1495
|
module.exports = typeof Reflect === 'object' && Reflect.apply || (NATIVE_BIND ? call.bind(apply) : function () {
|
|
1620
1496
|
return call.apply(apply, arguments)
|
|
1621
1497
|
})
|
|
1622
|
-
}, { '../internals/function-bind-native':
|
|
1623
|
-
|
|
1498
|
+
}, { '../internals/function-bind-native': 47 }],
|
|
1499
|
+
46: [function (require, module, exports) {
|
|
1624
1500
|
'use strict'
|
|
1625
1501
|
var uncurryThis = require('../internals/function-uncurry-this-clause')
|
|
1626
1502
|
var aCallable = require('../internals/a-callable')
|
|
@@ -1635,8 +1511,8 @@
|
|
|
1635
1511
|
return fn.apply(that, arguments)
|
|
1636
1512
|
}
|
|
1637
1513
|
}
|
|
1638
|
-
}, { '../internals/a-callable': 2, '../internals/function-bind-native':
|
|
1639
|
-
|
|
1514
|
+
}, { '../internals/a-callable': 2, '../internals/function-bind-native': 47, '../internals/function-uncurry-this-clause': 51 }],
|
|
1515
|
+
47: [function (require, module, exports) {
|
|
1640
1516
|
'use strict'
|
|
1641
1517
|
var fails = require('../internals/fails')
|
|
1642
1518
|
|
|
@@ -1646,18 +1522,18 @@
|
|
|
1646
1522
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
1647
1523
|
return typeof test !== 'function' || test.hasOwnProperty('prototype')
|
|
1648
1524
|
})
|
|
1649
|
-
}, { '../internals/fails':
|
|
1650
|
-
|
|
1525
|
+
}, { '../internals/fails': 42 }],
|
|
1526
|
+
48: [function (require, module, exports) {
|
|
1651
1527
|
'use strict'
|
|
1652
1528
|
var NATIVE_BIND = require('../internals/function-bind-native')
|
|
1653
1529
|
|
|
1654
1530
|
var call = Function.prototype.call
|
|
1655
|
-
|
|
1531
|
+
// eslint-disable-next-line es/no-function-prototype-bind -- safe
|
|
1656
1532
|
module.exports = NATIVE_BIND ? call.bind(call) : function () {
|
|
1657
1533
|
return call.apply(call, arguments)
|
|
1658
1534
|
}
|
|
1659
|
-
}, { '../internals/function-bind-native':
|
|
1660
|
-
|
|
1535
|
+
}, { '../internals/function-bind-native': 47 }],
|
|
1536
|
+
49: [function (require, module, exports) {
|
|
1661
1537
|
'use strict'
|
|
1662
1538
|
var DESCRIPTORS = require('../internals/descriptors')
|
|
1663
1539
|
var hasOwn = require('../internals/has-own-property')
|
|
@@ -1676,8 +1552,8 @@
|
|
|
1676
1552
|
PROPER: PROPER,
|
|
1677
1553
|
CONFIGURABLE: CONFIGURABLE
|
|
1678
1554
|
}
|
|
1679
|
-
}, { '../internals/descriptors':
|
|
1680
|
-
|
|
1555
|
+
}, { '../internals/descriptors': 33, '../internals/has-own-property': 60 }],
|
|
1556
|
+
50: [function (require, module, exports) {
|
|
1681
1557
|
'use strict'
|
|
1682
1558
|
var uncurryThis = require('../internals/function-uncurry-this')
|
|
1683
1559
|
var aCallable = require('../internals/a-callable')
|
|
@@ -1688,8 +1564,8 @@
|
|
|
1688
1564
|
return uncurryThis(aCallable(Object.getOwnPropertyDescriptor(object, key)[method]))
|
|
1689
1565
|
} catch (error) { /* empty */ }
|
|
1690
1566
|
}
|
|
1691
|
-
}, { '../internals/a-callable': 2, '../internals/function-uncurry-this':
|
|
1692
|
-
|
|
1567
|
+
}, { '../internals/a-callable': 2, '../internals/function-uncurry-this': 52 }],
|
|
1568
|
+
51: [function (require, module, exports) {
|
|
1693
1569
|
'use strict'
|
|
1694
1570
|
var classofRaw = require('../internals/classof-raw')
|
|
1695
1571
|
var uncurryThis = require('../internals/function-uncurry-this')
|
|
@@ -1700,13 +1576,14 @@
|
|
|
1700
1576
|
// https://github.com/zloirock/core-js/issues/1130
|
|
1701
1577
|
if (classofRaw(fn) === 'Function') return uncurryThis(fn)
|
|
1702
1578
|
}
|
|
1703
|
-
}, { '../internals/classof-raw':
|
|
1704
|
-
|
|
1579
|
+
}, { '../internals/classof-raw': 18, '../internals/function-uncurry-this': 52 }],
|
|
1580
|
+
52: [function (require, module, exports) {
|
|
1705
1581
|
'use strict'
|
|
1706
1582
|
var NATIVE_BIND = require('../internals/function-bind-native')
|
|
1707
1583
|
|
|
1708
1584
|
var FunctionPrototype = Function.prototype
|
|
1709
1585
|
var call = FunctionPrototype.call
|
|
1586
|
+
// eslint-disable-next-line es/no-function-prototype-bind -- safe
|
|
1710
1587
|
var uncurryThisWithBind = NATIVE_BIND && FunctionPrototype.bind.bind(call, call)
|
|
1711
1588
|
|
|
1712
1589
|
module.exports = NATIVE_BIND ? uncurryThisWithBind : function (fn) {
|
|
@@ -1714,8 +1591,8 @@
|
|
|
1714
1591
|
return call.apply(fn, arguments)
|
|
1715
1592
|
}
|
|
1716
1593
|
}
|
|
1717
|
-
}, { '../internals/function-bind-native':
|
|
1718
|
-
|
|
1594
|
+
}, { '../internals/function-bind-native': 47 }],
|
|
1595
|
+
53: [function (require, module, exports) {
|
|
1719
1596
|
'use strict'
|
|
1720
1597
|
var globalThis = require('../internals/global-this')
|
|
1721
1598
|
var isCallable = require('../internals/is-callable')
|
|
@@ -1727,11 +1604,11 @@
|
|
|
1727
1604
|
module.exports = function (namespace, method) {
|
|
1728
1605
|
return arguments.length < 2 ? aFunction(globalThis[namespace]) : globalThis[namespace] && globalThis[namespace][method]
|
|
1729
1606
|
}
|
|
1730
|
-
}, { '../internals/global-this':
|
|
1731
|
-
|
|
1607
|
+
}, { '../internals/global-this': 59, '../internals/is-callable': 71 }],
|
|
1608
|
+
54: [function (require, module, exports) {
|
|
1732
1609
|
'use strict'
|
|
1733
1610
|
// `GetIteratorDirect(obj)` abstract operation
|
|
1734
|
-
// https://tc39.es/
|
|
1611
|
+
// https://tc39.es/ecma262/#sec-getiteratordirect
|
|
1735
1612
|
module.exports = function (obj) {
|
|
1736
1613
|
return {
|
|
1737
1614
|
iterator: obj,
|
|
@@ -1740,7 +1617,7 @@
|
|
|
1740
1617
|
}
|
|
1741
1618
|
}
|
|
1742
1619
|
}, {}],
|
|
1743
|
-
|
|
1620
|
+
55: [function (require, module, exports) {
|
|
1744
1621
|
'use strict'
|
|
1745
1622
|
var classof = require('../internals/classof')
|
|
1746
1623
|
var getMethod = require('../internals/get-method')
|
|
@@ -1757,8 +1634,8 @@
|
|
|
1757
1634
|
Iterators[classof(it)]
|
|
1758
1635
|
}
|
|
1759
1636
|
}
|
|
1760
|
-
}, { '../internals/classof':
|
|
1761
|
-
|
|
1637
|
+
}, { '../internals/classof': 19, '../internals/get-method': 57, '../internals/is-null-or-undefined': 74, '../internals/iterators': 87, '../internals/well-known-symbol': 152 }],
|
|
1638
|
+
56: [function (require, module, exports) {
|
|
1762
1639
|
'use strict'
|
|
1763
1640
|
var call = require('../internals/function-call')
|
|
1764
1641
|
var aCallable = require('../internals/a-callable')
|
|
@@ -1773,40 +1650,8 @@
|
|
|
1773
1650
|
if (aCallable(iteratorMethod)) return anObject(call(iteratorMethod, argument))
|
|
1774
1651
|
throw new $TypeError(tryToString(argument) + ' is not iterable')
|
|
1775
1652
|
}
|
|
1776
|
-
}, { '../internals/a-callable': 2, '../internals/an-object': 8, '../internals/function-call':
|
|
1777
|
-
|
|
1778
|
-
'use strict'
|
|
1779
|
-
var uncurryThis = require('../internals/function-uncurry-this')
|
|
1780
|
-
var isArray = require('../internals/is-array')
|
|
1781
|
-
var isCallable = require('../internals/is-callable')
|
|
1782
|
-
var classof = require('../internals/classof-raw')
|
|
1783
|
-
var toString = require('../internals/to-string')
|
|
1784
|
-
|
|
1785
|
-
var push = uncurryThis([].push)
|
|
1786
|
-
|
|
1787
|
-
module.exports = function (replacer) {
|
|
1788
|
-
if (isCallable(replacer)) return replacer
|
|
1789
|
-
if (!isArray(replacer)) return
|
|
1790
|
-
var rawLength = replacer.length
|
|
1791
|
-
var keys = []
|
|
1792
|
-
for (var i = 0; i < rawLength; i++) {
|
|
1793
|
-
var element = replacer[i]
|
|
1794
|
-
if (typeof element === 'string') push(keys, element)
|
|
1795
|
-
else if (typeof element === 'number' || classof(element) === 'Number' || classof(element) === 'String') push(keys, toString(element))
|
|
1796
|
-
}
|
|
1797
|
-
var keysLength = keys.length
|
|
1798
|
-
var root = true
|
|
1799
|
-
return function (key, value) {
|
|
1800
|
-
if (root) {
|
|
1801
|
-
root = false
|
|
1802
|
-
return value
|
|
1803
|
-
}
|
|
1804
|
-
if (isArray(this)) return value
|
|
1805
|
-
for (var j = 0; j < keysLength; j++) if (keys[j] === key) return value
|
|
1806
|
-
}
|
|
1807
|
-
}
|
|
1808
|
-
}, { '../internals/classof-raw': 20, '../internals/function-uncurry-this': 55, '../internals/is-array': 74, '../internals/is-callable': 75, '../internals/to-string': 141 }],
|
|
1809
|
-
61: [function (require, module, exports) {
|
|
1653
|
+
}, { '../internals/a-callable': 2, '../internals/an-object': 8, '../internals/function-call': 48, '../internals/get-iterator-method': 55, '../internals/try-to-string': 143 }],
|
|
1654
|
+
57: [function (require, module, exports) {
|
|
1810
1655
|
'use strict'
|
|
1811
1656
|
var aCallable = require('../internals/a-callable')
|
|
1812
1657
|
var isNullOrUndefined = require('../internals/is-null-or-undefined')
|
|
@@ -1817,8 +1662,8 @@
|
|
|
1817
1662
|
var func = V[P]
|
|
1818
1663
|
return isNullOrUndefined(func) ? undefined : aCallable(func)
|
|
1819
1664
|
}
|
|
1820
|
-
}, { '../internals/a-callable': 2, '../internals/is-null-or-undefined':
|
|
1821
|
-
|
|
1665
|
+
}, { '../internals/a-callable': 2, '../internals/is-null-or-undefined': 74 }],
|
|
1666
|
+
58: [function (require, module, exports) {
|
|
1822
1667
|
'use strict'
|
|
1823
1668
|
var uncurryThis = require('../internals/function-uncurry-this')
|
|
1824
1669
|
var toObject = require('../internals/to-object')
|
|
@@ -1865,8 +1710,8 @@
|
|
|
1865
1710
|
return capture === undefined ? '' : capture
|
|
1866
1711
|
})
|
|
1867
1712
|
}
|
|
1868
|
-
}, { '../internals/function-uncurry-this':
|
|
1869
|
-
|
|
1713
|
+
}, { '../internals/function-uncurry-this': 52, '../internals/to-object': 138 }],
|
|
1714
|
+
59: [function (require, module, exports) {
|
|
1870
1715
|
(function (global) {
|
|
1871
1716
|
(function () {
|
|
1872
1717
|
'use strict'
|
|
@@ -1888,7 +1733,7 @@
|
|
|
1888
1733
|
}).call(this)
|
|
1889
1734
|
}).call(this, typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : typeof window !== 'undefined' ? window : {})
|
|
1890
1735
|
}, {}],
|
|
1891
|
-
|
|
1736
|
+
60: [function (require, module, exports) {
|
|
1892
1737
|
'use strict'
|
|
1893
1738
|
var uncurryThis = require('../internals/function-uncurry-this')
|
|
1894
1739
|
var toObject = require('../internals/to-object')
|
|
@@ -1901,18 +1746,18 @@
|
|
|
1901
1746
|
module.exports = Object.hasOwn || function hasOwn (it, key) {
|
|
1902
1747
|
return hasOwnProperty(toObject(it), key)
|
|
1903
1748
|
}
|
|
1904
|
-
}, { '../internals/function-uncurry-this':
|
|
1905
|
-
|
|
1749
|
+
}, { '../internals/function-uncurry-this': 52, '../internals/to-object': 138 }],
|
|
1750
|
+
61: [function (require, module, exports) {
|
|
1906
1751
|
'use strict'
|
|
1907
1752
|
module.exports = {}
|
|
1908
1753
|
}, {}],
|
|
1909
|
-
|
|
1754
|
+
62: [function (require, module, exports) {
|
|
1910
1755
|
'use strict'
|
|
1911
1756
|
var getBuiltIn = require('../internals/get-built-in')
|
|
1912
1757
|
|
|
1913
1758
|
module.exports = getBuiltIn('document', 'documentElement')
|
|
1914
|
-
}, { '../internals/get-built-in':
|
|
1915
|
-
|
|
1759
|
+
}, { '../internals/get-built-in': 53 }],
|
|
1760
|
+
63: [function (require, module, exports) {
|
|
1916
1761
|
'use strict'
|
|
1917
1762
|
var DESCRIPTORS = require('../internals/descriptors')
|
|
1918
1763
|
var fails = require('../internals/fails')
|
|
@@ -1925,8 +1770,8 @@
|
|
|
1925
1770
|
get: function () { return 7 }
|
|
1926
1771
|
}).a !== 7
|
|
1927
1772
|
})
|
|
1928
|
-
}, { '../internals/descriptors':
|
|
1929
|
-
|
|
1773
|
+
}, { '../internals/descriptors': 33, '../internals/document-create-element': 34, '../internals/fails': 42 }],
|
|
1774
|
+
64: [function (require, module, exports) {
|
|
1930
1775
|
'use strict'
|
|
1931
1776
|
var uncurryThis = require('../internals/function-uncurry-this')
|
|
1932
1777
|
var fails = require('../internals/fails')
|
|
@@ -1943,8 +1788,8 @@
|
|
|
1943
1788
|
}) ? function (it) {
|
|
1944
1789
|
return classof(it) === 'String' ? split(it, '') : $Object(it)
|
|
1945
1790
|
} : $Object
|
|
1946
|
-
}, { '../internals/classof-raw':
|
|
1947
|
-
|
|
1791
|
+
}, { '../internals/classof-raw': 18, '../internals/fails': 42, '../internals/function-uncurry-this': 52 }],
|
|
1792
|
+
65: [function (require, module, exports) {
|
|
1948
1793
|
'use strict'
|
|
1949
1794
|
var isCallable = require('../internals/is-callable')
|
|
1950
1795
|
var isObject = require('../internals/is-object')
|
|
@@ -1964,8 +1809,8 @@
|
|
|
1964
1809
|
) setPrototypeOf($this, NewTargetPrototype)
|
|
1965
1810
|
return $this
|
|
1966
1811
|
}
|
|
1967
|
-
}, { '../internals/is-callable':
|
|
1968
|
-
|
|
1812
|
+
}, { '../internals/is-callable': 71, '../internals/is-object': 75, '../internals/object-set-prototype-of': 105 }],
|
|
1813
|
+
66: [function (require, module, exports) {
|
|
1969
1814
|
'use strict'
|
|
1970
1815
|
var uncurryThis = require('../internals/function-uncurry-this')
|
|
1971
1816
|
var isCallable = require('../internals/is-callable')
|
|
@@ -1981,8 +1826,8 @@
|
|
|
1981
1826
|
}
|
|
1982
1827
|
|
|
1983
1828
|
module.exports = store.inspectSource
|
|
1984
|
-
}, { '../internals/function-uncurry-this':
|
|
1985
|
-
|
|
1829
|
+
}, { '../internals/function-uncurry-this': 52, '../internals/is-callable': 71, '../internals/shared-store': 125 }],
|
|
1830
|
+
67: [function (require, module, exports) {
|
|
1986
1831
|
'use strict'
|
|
1987
1832
|
var $ = require('../internals/export')
|
|
1988
1833
|
var uncurryThis = require('../internals/function-uncurry-this')
|
|
@@ -2047,6 +1892,7 @@
|
|
|
2047
1892
|
var getOwnPropertyNames = getOwnPropertyNamesModule.f
|
|
2048
1893
|
var splice = uncurryThis([].splice)
|
|
2049
1894
|
var test = {}
|
|
1895
|
+
// eslint-disable-next-line unicorn/no-immediate-mutation -- ES3 syntax limitation
|
|
2050
1896
|
test[METADATA] = 1
|
|
2051
1897
|
|
|
2052
1898
|
// prevent exposing of metadata key
|
|
@@ -2075,8 +1921,8 @@
|
|
|
2075
1921
|
}
|
|
2076
1922
|
|
|
2077
1923
|
hiddenKeys[METADATA] = true
|
|
2078
|
-
}, { '../internals/export':
|
|
2079
|
-
|
|
1924
|
+
}, { '../internals/export': 41, '../internals/freezing': 44, '../internals/function-uncurry-this': 52, '../internals/has-own-property': 60, '../internals/hidden-keys': 61, '../internals/is-object': 75, '../internals/object-define-property': 94, '../internals/object-get-own-property-names': 97, '../internals/object-get-own-property-names-external': 96, '../internals/object-is-extensible': 100, '../internals/uid': 144 }],
|
|
1925
|
+
68: [function (require, module, exports) {
|
|
2080
1926
|
'use strict'
|
|
2081
1927
|
var NATIVE_WEAK_MAP = require('../internals/weak-map-basic-detection')
|
|
2082
1928
|
var globalThis = require('../internals/global-this')
|
|
@@ -2148,8 +1994,8 @@
|
|
|
2148
1994
|
enforce: enforce,
|
|
2149
1995
|
getterFor: getterFor
|
|
2150
1996
|
}
|
|
2151
|
-
}, { '../internals/create-non-enumerable-property':
|
|
2152
|
-
|
|
1997
|
+
}, { '../internals/create-non-enumerable-property': 25, '../internals/global-this': 59, '../internals/has-own-property': 60, '../internals/hidden-keys': 61, '../internals/is-object': 75, '../internals/shared-key': 124, '../internals/shared-store': 125, '../internals/weak-map-basic-detection': 148 }],
|
|
1998
|
+
69: [function (require, module, exports) {
|
|
2153
1999
|
'use strict'
|
|
2154
2000
|
var wellKnownSymbol = require('../internals/well-known-symbol')
|
|
2155
2001
|
var Iterators = require('../internals/iterators')
|
|
@@ -2161,8 +2007,8 @@
|
|
|
2161
2007
|
module.exports = function (it) {
|
|
2162
2008
|
return it !== undefined && (Iterators.Array === it || ArrayPrototype[ITERATOR] === it)
|
|
2163
2009
|
}
|
|
2164
|
-
}, { '../internals/iterators':
|
|
2165
|
-
|
|
2010
|
+
}, { '../internals/iterators': 87, '../internals/well-known-symbol': 152 }],
|
|
2011
|
+
70: [function (require, module, exports) {
|
|
2166
2012
|
'use strict'
|
|
2167
2013
|
var classof = require('../internals/classof-raw')
|
|
2168
2014
|
|
|
@@ -2172,8 +2018,8 @@
|
|
|
2172
2018
|
module.exports = Array.isArray || function isArray (argument) {
|
|
2173
2019
|
return classof(argument) === 'Array'
|
|
2174
2020
|
}
|
|
2175
|
-
}, { '../internals/classof-raw':
|
|
2176
|
-
|
|
2021
|
+
}, { '../internals/classof-raw': 18 }],
|
|
2022
|
+
71: [function (require, module, exports) {
|
|
2177
2023
|
'use strict'
|
|
2178
2024
|
// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
|
|
2179
2025
|
var documentAll = typeof document === 'object' && document.all
|
|
@@ -2187,7 +2033,7 @@
|
|
|
2187
2033
|
return typeof argument === 'function'
|
|
2188
2034
|
}
|
|
2189
2035
|
}, {}],
|
|
2190
|
-
|
|
2036
|
+
72: [function (require, module, exports) {
|
|
2191
2037
|
'use strict'
|
|
2192
2038
|
var uncurryThis = require('../internals/function-uncurry-this')
|
|
2193
2039
|
var fails = require('../internals/fails')
|
|
@@ -2240,8 +2086,8 @@
|
|
|
2240
2086
|
!isConstructorModern(function () { called = true }) ||
|
|
2241
2087
|
called
|
|
2242
2088
|
}) ? isConstructorLegacy : isConstructorModern
|
|
2243
|
-
}, { '../internals/classof':
|
|
2244
|
-
|
|
2089
|
+
}, { '../internals/classof': 19, '../internals/fails': 42, '../internals/function-uncurry-this': 52, '../internals/get-built-in': 53, '../internals/inspect-source': 66, '../internals/is-callable': 71 }],
|
|
2090
|
+
73: [function (require, module, exports) {
|
|
2245
2091
|
'use strict'
|
|
2246
2092
|
var fails = require('../internals/fails')
|
|
2247
2093
|
var isCallable = require('../internals/is-callable')
|
|
@@ -2265,8 +2111,8 @@
|
|
|
2265
2111
|
var POLYFILL = isForced.POLYFILL = 'P'
|
|
2266
2112
|
|
|
2267
2113
|
module.exports = isForced
|
|
2268
|
-
}, { '../internals/fails':
|
|
2269
|
-
|
|
2114
|
+
}, { '../internals/fails': 42, '../internals/is-callable': 71 }],
|
|
2115
|
+
74: [function (require, module, exports) {
|
|
2270
2116
|
'use strict'
|
|
2271
2117
|
// we can't use just `it == null` since of `document.all` special case
|
|
2272
2118
|
// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec
|
|
@@ -2274,27 +2120,38 @@
|
|
|
2274
2120
|
return it === null || it === undefined
|
|
2275
2121
|
}
|
|
2276
2122
|
}, {}],
|
|
2277
|
-
|
|
2123
|
+
75: [function (require, module, exports) {
|
|
2278
2124
|
'use strict'
|
|
2279
2125
|
var isCallable = require('../internals/is-callable')
|
|
2280
2126
|
|
|
2281
2127
|
module.exports = function (it) {
|
|
2282
2128
|
return typeof it === 'object' ? it !== null : isCallable(it)
|
|
2283
2129
|
}
|
|
2284
|
-
}, { '../internals/is-callable':
|
|
2285
|
-
|
|
2130
|
+
}, { '../internals/is-callable': 71 }],
|
|
2131
|
+
76: [function (require, module, exports) {
|
|
2286
2132
|
'use strict'
|
|
2287
2133
|
var isObject = require('../internals/is-object')
|
|
2288
2134
|
|
|
2289
2135
|
module.exports = function (argument) {
|
|
2290
2136
|
return isObject(argument) || argument === null
|
|
2291
2137
|
}
|
|
2292
|
-
}, { '../internals/is-object':
|
|
2293
|
-
|
|
2138
|
+
}, { '../internals/is-object': 75 }],
|
|
2139
|
+
77: [function (require, module, exports) {
|
|
2294
2140
|
'use strict'
|
|
2295
2141
|
module.exports = false
|
|
2296
2142
|
}, {}],
|
|
2297
|
-
|
|
2143
|
+
78: [function (require, module, exports) {
|
|
2144
|
+
'use strict'
|
|
2145
|
+
var isObject = require('../internals/is-object')
|
|
2146
|
+
var getInternalState = require('../internals/internal-state').get
|
|
2147
|
+
|
|
2148
|
+
module.exports = function isRawJSON (O) {
|
|
2149
|
+
if (!isObject(O)) return false
|
|
2150
|
+
var state = getInternalState(O)
|
|
2151
|
+
return !!state && state.type === 'RawJSON'
|
|
2152
|
+
}
|
|
2153
|
+
}, { '../internals/internal-state': 68, '../internals/is-object': 75 }],
|
|
2154
|
+
79: [function (require, module, exports) {
|
|
2298
2155
|
'use strict'
|
|
2299
2156
|
var isObject = require('../internals/is-object')
|
|
2300
2157
|
var classof = require('../internals/classof-raw')
|
|
@@ -2308,8 +2165,8 @@
|
|
|
2308
2165
|
var isRegExp
|
|
2309
2166
|
return isObject(it) && ((isRegExp = it[MATCH]) !== undefined ? !!isRegExp : classof(it) === 'RegExp')
|
|
2310
2167
|
}
|
|
2311
|
-
}, { '../internals/classof-raw':
|
|
2312
|
-
|
|
2168
|
+
}, { '../internals/classof-raw': 18, '../internals/is-object': 75, '../internals/well-known-symbol': 152 }],
|
|
2169
|
+
80: [function (require, module, exports) {
|
|
2313
2170
|
'use strict'
|
|
2314
2171
|
var getBuiltIn = require('../internals/get-built-in')
|
|
2315
2172
|
var isCallable = require('../internals/is-callable')
|
|
@@ -2324,8 +2181,8 @@
|
|
|
2324
2181
|
var $Symbol = getBuiltIn('Symbol')
|
|
2325
2182
|
return isCallable($Symbol) && isPrototypeOf($Symbol.prototype, $Object(it))
|
|
2326
2183
|
}
|
|
2327
|
-
}, { '../internals/get-built-in':
|
|
2328
|
-
|
|
2184
|
+
}, { '../internals/get-built-in': 53, '../internals/is-callable': 71, '../internals/object-is-prototype-of': 101, '../internals/use-symbol-as-uid': 145 }],
|
|
2185
|
+
81: [function (require, module, exports) {
|
|
2329
2186
|
'use strict'
|
|
2330
2187
|
var bind = require('../internals/function-bind-context')
|
|
2331
2188
|
var call = require('../internals/function-call')
|
|
@@ -2357,7 +2214,9 @@
|
|
|
2357
2214
|
var iterator, iterFn, index, length, result, next, step
|
|
2358
2215
|
|
|
2359
2216
|
var stop = function (condition) {
|
|
2360
|
-
|
|
2217
|
+
var $iterator = iterator
|
|
2218
|
+
iterator = undefined
|
|
2219
|
+
if ($iterator) iteratorClose($iterator, 'normal')
|
|
2361
2220
|
return new Result(true, condition)
|
|
2362
2221
|
}
|
|
2363
2222
|
|
|
@@ -2387,16 +2246,19 @@
|
|
|
2387
2246
|
|
|
2388
2247
|
next = IS_RECORD ? iterable.next : iterator.next
|
|
2389
2248
|
while (!(step = call(next, iterator)).done) {
|
|
2249
|
+
// `IteratorValue` errors should propagate without closing the iterator
|
|
2250
|
+
var value = step.value
|
|
2390
2251
|
try {
|
|
2391
|
-
result = callFn(
|
|
2252
|
+
result = callFn(value)
|
|
2392
2253
|
} catch (error) {
|
|
2393
|
-
iteratorClose(iterator, 'throw', error)
|
|
2254
|
+
if (iterator) iteratorClose(iterator, 'throw', error)
|
|
2255
|
+
else throw error
|
|
2394
2256
|
}
|
|
2395
2257
|
if (typeof result === 'object' && result && isPrototypeOf(ResultPrototype, result)) return result
|
|
2396
2258
|
} return new Result(false)
|
|
2397
2259
|
}
|
|
2398
|
-
}, { '../internals/an-object': 8, '../internals/function-bind-context':
|
|
2399
|
-
|
|
2260
|
+
}, { '../internals/an-object': 8, '../internals/function-bind-context': 46, '../internals/function-call': 48, '../internals/get-iterator': 56, '../internals/get-iterator-method': 55, '../internals/is-array-iterator-method': 69, '../internals/iterator-close': 82, '../internals/length-of-array-like': 88, '../internals/object-is-prototype-of': 101, '../internals/try-to-string': 143 }],
|
|
2261
|
+
82: [function (require, module, exports) {
|
|
2400
2262
|
'use strict'
|
|
2401
2263
|
var call = require('../internals/function-call')
|
|
2402
2264
|
var anObject = require('../internals/an-object')
|
|
@@ -2421,8 +2283,8 @@
|
|
|
2421
2283
|
anObject(innerResult)
|
|
2422
2284
|
return value
|
|
2423
2285
|
}
|
|
2424
|
-
}, { '../internals/an-object': 8, '../internals/function-call':
|
|
2425
|
-
|
|
2286
|
+
}, { '../internals/an-object': 8, '../internals/function-call': 48, '../internals/get-method': 57 }],
|
|
2287
|
+
83: [function (require, module, exports) {
|
|
2426
2288
|
'use strict'
|
|
2427
2289
|
var IteratorPrototype = require('../internals/iterators-core').IteratorPrototype
|
|
2428
2290
|
var create = require('../internals/object-create')
|
|
@@ -2439,8 +2301,8 @@
|
|
|
2439
2301
|
Iterators[TO_STRING_TAG] = returnThis
|
|
2440
2302
|
return IteratorConstructor
|
|
2441
2303
|
}
|
|
2442
|
-
}, { '../internals/create-property-descriptor':
|
|
2443
|
-
|
|
2304
|
+
}, { '../internals/create-property-descriptor': 26, '../internals/iterators': 87, '../internals/iterators-core': 86, '../internals/object-create': 92, '../internals/set-to-string-tag': 123 }],
|
|
2305
|
+
84: [function (require, module, exports) {
|
|
2444
2306
|
'use strict'
|
|
2445
2307
|
var $ = require('../internals/export')
|
|
2446
2308
|
var call = require('../internals/function-call')
|
|
@@ -2545,8 +2407,35 @@
|
|
|
2545
2407
|
|
|
2546
2408
|
return methods
|
|
2547
2409
|
}
|
|
2548
|
-
}, { '../internals/create-non-enumerable-property':
|
|
2549
|
-
|
|
2410
|
+
}, { '../internals/create-non-enumerable-property': 25, '../internals/define-built-in': 30, '../internals/export': 41, '../internals/function-call': 48, '../internals/function-name': 49, '../internals/is-callable': 71, '../internals/is-pure': 77, '../internals/iterator-create-constructor': 83, '../internals/iterators': 87, '../internals/iterators-core': 86, '../internals/object-get-prototype-of': 99, '../internals/object-set-prototype-of': 105, '../internals/set-to-string-tag': 123, '../internals/well-known-symbol': 152 }],
|
|
2411
|
+
85: [function (require, module, exports) {
|
|
2412
|
+
'use strict'
|
|
2413
|
+
var globalThis = require('../internals/global-this')
|
|
2414
|
+
|
|
2415
|
+
// https://github.com/tc39/ecma262/pull/3467
|
|
2416
|
+
module.exports = function (METHOD_NAME, ExpectedError) {
|
|
2417
|
+
var Iterator = globalThis.Iterator
|
|
2418
|
+
var IteratorPrototype = Iterator && Iterator.prototype
|
|
2419
|
+
var method = IteratorPrototype && IteratorPrototype[METHOD_NAME]
|
|
2420
|
+
|
|
2421
|
+
var CLOSED = false
|
|
2422
|
+
|
|
2423
|
+
if (method) {
|
|
2424
|
+
try {
|
|
2425
|
+
method.call({
|
|
2426
|
+
next: function () { return { done: true } },
|
|
2427
|
+
return: function () { CLOSED = true }
|
|
2428
|
+
}, -1)
|
|
2429
|
+
} catch (error) {
|
|
2430
|
+
// https://bugs.webkit.org/show_bug.cgi?id=291195
|
|
2431
|
+
if (!(error instanceof ExpectedError)) CLOSED = false
|
|
2432
|
+
}
|
|
2433
|
+
}
|
|
2434
|
+
|
|
2435
|
+
if (!CLOSED) return method
|
|
2436
|
+
}
|
|
2437
|
+
}, { '../internals/global-this': 59 }],
|
|
2438
|
+
86: [function (require, module, exports) {
|
|
2550
2439
|
'use strict'
|
|
2551
2440
|
var fails = require('../internals/fails')
|
|
2552
2441
|
var isCallable = require('../internals/is-callable')
|
|
@@ -2596,11 +2485,11 @@
|
|
|
2596
2485
|
IteratorPrototype: IteratorPrototype,
|
|
2597
2486
|
BUGGY_SAFARI_ITERATORS: BUGGY_SAFARI_ITERATORS
|
|
2598
2487
|
}
|
|
2599
|
-
}, { '../internals/define-built-in':
|
|
2600
|
-
|
|
2601
|
-
arguments[4][
|
|
2602
|
-
}, { dup:
|
|
2603
|
-
|
|
2488
|
+
}, { '../internals/define-built-in': 30, '../internals/fails': 42, '../internals/is-callable': 71, '../internals/is-object': 75, '../internals/is-pure': 77, '../internals/object-create': 92, '../internals/object-get-prototype-of': 99, '../internals/well-known-symbol': 152 }],
|
|
2489
|
+
87: [function (require, module, exports) {
|
|
2490
|
+
arguments[4][61][0].apply(exports, arguments)
|
|
2491
|
+
}, { dup: 61 }],
|
|
2492
|
+
88: [function (require, module, exports) {
|
|
2604
2493
|
'use strict'
|
|
2605
2494
|
var toLength = require('../internals/to-length')
|
|
2606
2495
|
|
|
@@ -2609,8 +2498,8 @@
|
|
|
2609
2498
|
module.exports = function (obj) {
|
|
2610
2499
|
return toLength(obj.length)
|
|
2611
2500
|
}
|
|
2612
|
-
}, { '../internals/to-length':
|
|
2613
|
-
|
|
2501
|
+
}, { '../internals/to-length': 137 }],
|
|
2502
|
+
89: [function (require, module, exports) {
|
|
2614
2503
|
'use strict'
|
|
2615
2504
|
var uncurryThis = require('../internals/function-uncurry-this')
|
|
2616
2505
|
var fails = require('../internals/fails')
|
|
@@ -2666,8 +2555,8 @@
|
|
|
2666
2555
|
Function.prototype.toString = makeBuiltIn(function toString () {
|
|
2667
2556
|
return isCallable(this) && getInternalState(this).source || inspectSource(this)
|
|
2668
2557
|
}, 'toString')
|
|
2669
|
-
}, { '../internals/descriptors':
|
|
2670
|
-
|
|
2558
|
+
}, { '../internals/descriptors': 33, '../internals/fails': 42, '../internals/function-name': 49, '../internals/function-uncurry-this': 52, '../internals/has-own-property': 60, '../internals/inspect-source': 66, '../internals/internal-state': 68, '../internals/is-callable': 71 }],
|
|
2559
|
+
90: [function (require, module, exports) {
|
|
2671
2560
|
'use strict'
|
|
2672
2561
|
var ceil = Math.ceil
|
|
2673
2562
|
var floor = Math.floor
|
|
@@ -2680,7 +2569,20 @@
|
|
|
2680
2569
|
return (n > 0 ? floor : ceil)(n)
|
|
2681
2570
|
}
|
|
2682
2571
|
}, {}],
|
|
2683
|
-
|
|
2572
|
+
91: [function (require, module, exports) {
|
|
2573
|
+
'use strict'
|
|
2574
|
+
/* eslint-disable es/no-json -- safe */
|
|
2575
|
+
var fails = require('../internals/fails')
|
|
2576
|
+
|
|
2577
|
+
module.exports = !fails(function () {
|
|
2578
|
+
var unsafeInt = '9007199254740993'
|
|
2579
|
+
// eslint-disable-next-line es/no-json-rawjson -- feature detection
|
|
2580
|
+
var raw = JSON.rawJSON(unsafeInt)
|
|
2581
|
+
// eslint-disable-next-line es/no-json-israwjson -- feature detection
|
|
2582
|
+
return !JSON.isRawJSON(raw) || JSON.stringify(raw) !== unsafeInt
|
|
2583
|
+
})
|
|
2584
|
+
}, { '../internals/fails': 42 }],
|
|
2585
|
+
92: [function (require, module, exports) {
|
|
2684
2586
|
'use strict'
|
|
2685
2587
|
/* global ActiveXObject -- old IE, WSH */
|
|
2686
2588
|
var anObject = require('../internals/an-object')
|
|
@@ -2766,8 +2668,8 @@
|
|
|
2766
2668
|
} else result = NullProtoObject()
|
|
2767
2669
|
return Properties === undefined ? result : definePropertiesModule.f(result, Properties)
|
|
2768
2670
|
}
|
|
2769
|
-
}, { '../internals/an-object': 8, '../internals/document-create-element':
|
|
2770
|
-
|
|
2671
|
+
}, { '../internals/an-object': 8, '../internals/document-create-element': 34, '../internals/enum-bug-keys': 37, '../internals/hidden-keys': 61, '../internals/html': 62, '../internals/object-define-properties': 93, '../internals/shared-key': 124 }],
|
|
2672
|
+
93: [function (require, module, exports) {
|
|
2771
2673
|
'use strict'
|
|
2772
2674
|
var DESCRIPTORS = require('../internals/descriptors')
|
|
2773
2675
|
var V8_PROTOTYPE_DEFINE_BUG = require('../internals/v8-prototype-define-bug')
|
|
@@ -2789,8 +2691,8 @@
|
|
|
2789
2691
|
while (length > index) definePropertyModule.f(O, key = keys[index++], props[key])
|
|
2790
2692
|
return O
|
|
2791
2693
|
}
|
|
2792
|
-
}, { '../internals/an-object': 8, '../internals/descriptors':
|
|
2793
|
-
|
|
2694
|
+
}, { '../internals/an-object': 8, '../internals/descriptors': 33, '../internals/object-define-property': 94, '../internals/object-keys': 103, '../internals/to-indexed-object': 135, '../internals/v8-prototype-define-bug': 146 }],
|
|
2695
|
+
94: [function (require, module, exports) {
|
|
2794
2696
|
'use strict'
|
|
2795
2697
|
var DESCRIPTORS = require('../internals/descriptors')
|
|
2796
2698
|
var IE8_DOM_DEFINE = require('../internals/ie8-dom-define')
|
|
@@ -2837,8 +2739,8 @@
|
|
|
2837
2739
|
if ('value' in Attributes) O[P] = Attributes.value
|
|
2838
2740
|
return O
|
|
2839
2741
|
}
|
|
2840
|
-
}, { '../internals/an-object': 8, '../internals/descriptors':
|
|
2841
|
-
|
|
2742
|
+
}, { '../internals/an-object': 8, '../internals/descriptors': 33, '../internals/ie8-dom-define': 63, '../internals/to-property-key': 140, '../internals/v8-prototype-define-bug': 146 }],
|
|
2743
|
+
95: [function (require, module, exports) {
|
|
2842
2744
|
'use strict'
|
|
2843
2745
|
var DESCRIPTORS = require('../internals/descriptors')
|
|
2844
2746
|
var call = require('../internals/function-call')
|
|
@@ -2864,8 +2766,8 @@
|
|
|
2864
2766
|
}
|
|
2865
2767
|
if (hasOwn(O, P)) return createPropertyDescriptor(!call(propertyIsEnumerableModule.f, O, P), O[P])
|
|
2866
2768
|
}
|
|
2867
|
-
}, { '../internals/create-property-descriptor':
|
|
2868
|
-
|
|
2769
|
+
}, { '../internals/create-property-descriptor': 26, '../internals/descriptors': 33, '../internals/function-call': 48, '../internals/has-own-property': 60, '../internals/ie8-dom-define': 63, '../internals/object-property-is-enumerable': 104, '../internals/to-indexed-object': 135, '../internals/to-property-key': 140 }],
|
|
2770
|
+
96: [function (require, module, exports) {
|
|
2869
2771
|
'use strict'
|
|
2870
2772
|
/* eslint-disable es/no-object-getownpropertynames -- safe */
|
|
2871
2773
|
var classof = require('../internals/classof-raw')
|
|
@@ -2890,8 +2792,8 @@
|
|
|
2890
2792
|
? getWindowNames(it)
|
|
2891
2793
|
: $getOwnPropertyNames(toIndexedObject(it))
|
|
2892
2794
|
}
|
|
2893
|
-
}, { '../internals/array-slice': 14, '../internals/classof-raw':
|
|
2894
|
-
|
|
2795
|
+
}, { '../internals/array-slice': 14, '../internals/classof-raw': 18, '../internals/object-get-own-property-names': 97, '../internals/to-indexed-object': 135 }],
|
|
2796
|
+
97: [function (require, module, exports) {
|
|
2895
2797
|
'use strict'
|
|
2896
2798
|
var internalObjectKeys = require('../internals/object-keys-internal')
|
|
2897
2799
|
var enumBugKeys = require('../internals/enum-bug-keys')
|
|
@@ -2904,13 +2806,13 @@
|
|
|
2904
2806
|
exports.f = Object.getOwnPropertyNames || function getOwnPropertyNames (O) {
|
|
2905
2807
|
return internalObjectKeys(O, hiddenKeys)
|
|
2906
2808
|
}
|
|
2907
|
-
}, { '../internals/enum-bug-keys':
|
|
2908
|
-
|
|
2809
|
+
}, { '../internals/enum-bug-keys': 37, '../internals/object-keys-internal': 102 }],
|
|
2810
|
+
98: [function (require, module, exports) {
|
|
2909
2811
|
'use strict'
|
|
2910
2812
|
// eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
|
|
2911
2813
|
exports.f = Object.getOwnPropertySymbols
|
|
2912
2814
|
}, {}],
|
|
2913
|
-
|
|
2815
|
+
99: [function (require, module, exports) {
|
|
2914
2816
|
'use strict'
|
|
2915
2817
|
var hasOwn = require('../internals/has-own-property')
|
|
2916
2818
|
var isCallable = require('../internals/is-callable')
|
|
@@ -2933,8 +2835,8 @@
|
|
|
2933
2835
|
return constructor.prototype
|
|
2934
2836
|
} return object instanceof $Object ? ObjectPrototype : null
|
|
2935
2837
|
}
|
|
2936
|
-
}, { '../internals/correct-prototype-getter':
|
|
2937
|
-
|
|
2838
|
+
}, { '../internals/correct-prototype-getter': 23, '../internals/has-own-property': 60, '../internals/is-callable': 71, '../internals/shared-key': 124, '../internals/to-object': 138 }],
|
|
2839
|
+
100: [function (require, module, exports) {
|
|
2938
2840
|
'use strict'
|
|
2939
2841
|
var fails = require('../internals/fails')
|
|
2940
2842
|
var isObject = require('../internals/is-object')
|
|
@@ -2952,14 +2854,14 @@
|
|
|
2952
2854
|
if (ARRAY_BUFFER_NON_EXTENSIBLE && classof(it) === 'ArrayBuffer') return false
|
|
2953
2855
|
return $isExtensible ? $isExtensible(it) : true
|
|
2954
2856
|
} : $isExtensible
|
|
2955
|
-
}, { '../internals/array-buffer-non-extensible': 9, '../internals/classof-raw':
|
|
2956
|
-
|
|
2857
|
+
}, { '../internals/array-buffer-non-extensible': 9, '../internals/classof-raw': 18, '../internals/fails': 42, '../internals/is-object': 75 }],
|
|
2858
|
+
101: [function (require, module, exports) {
|
|
2957
2859
|
'use strict'
|
|
2958
2860
|
var uncurryThis = require('../internals/function-uncurry-this')
|
|
2959
2861
|
|
|
2960
2862
|
module.exports = uncurryThis({}.isPrototypeOf)
|
|
2961
|
-
}, { '../internals/function-uncurry-this':
|
|
2962
|
-
|
|
2863
|
+
}, { '../internals/function-uncurry-this': 52 }],
|
|
2864
|
+
102: [function (require, module, exports) {
|
|
2963
2865
|
'use strict'
|
|
2964
2866
|
var uncurryThis = require('../internals/function-uncurry-this')
|
|
2965
2867
|
var hasOwn = require('../internals/has-own-property')
|
|
@@ -2983,8 +2885,8 @@
|
|
|
2983
2885
|
}
|
|
2984
2886
|
return result
|
|
2985
2887
|
}
|
|
2986
|
-
}, { '../internals/array-includes': 11, '../internals/function-uncurry-this':
|
|
2987
|
-
|
|
2888
|
+
}, { '../internals/array-includes': 11, '../internals/function-uncurry-this': 52, '../internals/has-own-property': 60, '../internals/hidden-keys': 61, '../internals/to-indexed-object': 135 }],
|
|
2889
|
+
103: [function (require, module, exports) {
|
|
2988
2890
|
'use strict'
|
|
2989
2891
|
var internalObjectKeys = require('../internals/object-keys-internal')
|
|
2990
2892
|
var enumBugKeys = require('../internals/enum-bug-keys')
|
|
@@ -2995,8 +2897,8 @@
|
|
|
2995
2897
|
module.exports = Object.keys || function keys (O) {
|
|
2996
2898
|
return internalObjectKeys(O, enumBugKeys)
|
|
2997
2899
|
}
|
|
2998
|
-
}, { '../internals/enum-bug-keys':
|
|
2999
|
-
|
|
2900
|
+
}, { '../internals/enum-bug-keys': 37, '../internals/object-keys-internal': 102 }],
|
|
2901
|
+
104: [function (require, module, exports) {
|
|
3000
2902
|
'use strict'
|
|
3001
2903
|
var $propertyIsEnumerable = {}.propertyIsEnumerable
|
|
3002
2904
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
@@ -3012,7 +2914,7 @@
|
|
|
3012
2914
|
return !!descriptor && descriptor.enumerable
|
|
3013
2915
|
} : $propertyIsEnumerable
|
|
3014
2916
|
}, {}],
|
|
3015
|
-
|
|
2917
|
+
105: [function (require, module, exports) {
|
|
3016
2918
|
'use strict'
|
|
3017
2919
|
/* eslint-disable no-proto -- safe */
|
|
3018
2920
|
var uncurryThisAccessor = require('../internals/function-uncurry-this-accessor')
|
|
@@ -3042,8 +2944,8 @@
|
|
|
3042
2944
|
return O
|
|
3043
2945
|
}
|
|
3044
2946
|
}()) : undefined)
|
|
3045
|
-
}, { '../internals/a-possible-prototype': 3, '../internals/function-uncurry-this-accessor':
|
|
3046
|
-
|
|
2947
|
+
}, { '../internals/a-possible-prototype': 3, '../internals/function-uncurry-this-accessor': 50, '../internals/is-object': 75, '../internals/require-object-coercible': 120 }],
|
|
2948
|
+
106: [function (require, module, exports) {
|
|
3047
2949
|
'use strict'
|
|
3048
2950
|
var TO_STRING_TAG_SUPPORT = require('../internals/to-string-tag-support')
|
|
3049
2951
|
var classof = require('../internals/classof')
|
|
@@ -3053,8 +2955,8 @@
|
|
|
3053
2955
|
module.exports = TO_STRING_TAG_SUPPORT ? {}.toString : function toString () {
|
|
3054
2956
|
return '[object ' + classof(this) + ']'
|
|
3055
2957
|
}
|
|
3056
|
-
}, { '../internals/classof':
|
|
3057
|
-
|
|
2958
|
+
}, { '../internals/classof': 19, '../internals/to-string-tag-support': 141 }],
|
|
2959
|
+
107: [function (require, module, exports) {
|
|
3058
2960
|
'use strict'
|
|
3059
2961
|
var call = require('../internals/function-call')
|
|
3060
2962
|
var isCallable = require('../internals/is-callable')
|
|
@@ -3071,8 +2973,8 @@
|
|
|
3071
2973
|
if (pref !== 'string' && isCallable(fn = input.toString) && !isObject(val = call(fn, input))) return val
|
|
3072
2974
|
throw new $TypeError("Can't convert object to primitive value")
|
|
3073
2975
|
}
|
|
3074
|
-
}, { '../internals/function-call':
|
|
3075
|
-
|
|
2976
|
+
}, { '../internals/function-call': 48, '../internals/is-callable': 71, '../internals/is-object': 75 }],
|
|
2977
|
+
108: [function (require, module, exports) {
|
|
3076
2978
|
'use strict'
|
|
3077
2979
|
var getBuiltIn = require('../internals/get-built-in')
|
|
3078
2980
|
var uncurryThis = require('../internals/function-uncurry-this')
|
|
@@ -3088,13 +2990,71 @@
|
|
|
3088
2990
|
var getOwnPropertySymbols = getOwnPropertySymbolsModule.f
|
|
3089
2991
|
return getOwnPropertySymbols ? concat(keys, getOwnPropertySymbols(it)) : keys
|
|
3090
2992
|
}
|
|
3091
|
-
}, { '../internals/an-object': 8, '../internals/function-uncurry-this':
|
|
2993
|
+
}, { '../internals/an-object': 8, '../internals/function-uncurry-this': 52, '../internals/get-built-in': 53, '../internals/object-get-own-property-names': 97, '../internals/object-get-own-property-symbols': 98 }],
|
|
2994
|
+
109: [function (require, module, exports) {
|
|
2995
|
+
'use strict'
|
|
2996
|
+
var uncurryThis = require('../internals/function-uncurry-this')
|
|
2997
|
+
var hasOwn = require('../internals/has-own-property')
|
|
2998
|
+
|
|
2999
|
+
var $SyntaxError = SyntaxError
|
|
3000
|
+
var $parseInt = parseInt
|
|
3001
|
+
var fromCharCode = String.fromCharCode
|
|
3002
|
+
var at = uncurryThis(''.charAt)
|
|
3003
|
+
var slice = uncurryThis(''.slice)
|
|
3004
|
+
var exec = uncurryThis(/./.exec)
|
|
3005
|
+
|
|
3006
|
+
var codePoints = {
|
|
3007
|
+
'\\"': '"',
|
|
3008
|
+
'\\\\': '\\',
|
|
3009
|
+
'\\/': '/',
|
|
3010
|
+
'\\b': '\b',
|
|
3011
|
+
'\\f': '\f',
|
|
3012
|
+
'\\n': '\n',
|
|
3013
|
+
'\\r': '\r',
|
|
3014
|
+
'\\t': '\t'
|
|
3015
|
+
}
|
|
3016
|
+
|
|
3017
|
+
var IS_4_HEX_DIGITS = /^[\da-f]{4}$/i
|
|
3018
|
+
// eslint-disable-next-line regexp/no-control-character -- safe
|
|
3019
|
+
var IS_C0_CONTROL_CODE = /^[\u0000-\u001F]$/
|
|
3020
|
+
|
|
3021
|
+
module.exports = function (source, i) {
|
|
3022
|
+
var unterminated = true
|
|
3023
|
+
var value = ''
|
|
3024
|
+
while (i < source.length) {
|
|
3025
|
+
var chr = at(source, i)
|
|
3026
|
+
if (chr === '\\') {
|
|
3027
|
+
var twoChars = slice(source, i, i + 2)
|
|
3028
|
+
if (hasOwn(codePoints, twoChars)) {
|
|
3029
|
+
value += codePoints[twoChars]
|
|
3030
|
+
i += 2
|
|
3031
|
+
} else if (twoChars === '\\u') {
|
|
3032
|
+
i += 2
|
|
3033
|
+
var fourHexDigits = slice(source, i, i + 4)
|
|
3034
|
+
if (!exec(IS_4_HEX_DIGITS, fourHexDigits)) throw new $SyntaxError('Bad Unicode escape at: ' + i)
|
|
3035
|
+
value += fromCharCode($parseInt(fourHexDigits, 16))
|
|
3036
|
+
i += 4
|
|
3037
|
+
} else throw new $SyntaxError('Unknown escape sequence: "' + twoChars + '"')
|
|
3038
|
+
} else if (chr === '"') {
|
|
3039
|
+
unterminated = false
|
|
3040
|
+
i++
|
|
3041
|
+
break
|
|
3042
|
+
} else {
|
|
3043
|
+
if (exec(IS_C0_CONTROL_CODE, chr)) throw new $SyntaxError('Bad control character in string literal at: ' + i)
|
|
3044
|
+
value += chr
|
|
3045
|
+
i++
|
|
3046
|
+
}
|
|
3047
|
+
}
|
|
3048
|
+
if (unterminated) throw new $SyntaxError('Unterminated string at: ' + i)
|
|
3049
|
+
return { value: value, end: i }
|
|
3050
|
+
}
|
|
3051
|
+
}, { '../internals/function-uncurry-this': 52, '../internals/has-own-property': 60 }],
|
|
3092
3052
|
110: [function (require, module, exports) {
|
|
3093
3053
|
'use strict'
|
|
3094
3054
|
var globalThis = require('../internals/global-this')
|
|
3095
3055
|
|
|
3096
3056
|
module.exports = globalThis
|
|
3097
|
-
}, { '../internals/global-this':
|
|
3057
|
+
}, { '../internals/global-this': 59 }],
|
|
3098
3058
|
111: [function (require, module, exports) {
|
|
3099
3059
|
'use strict'
|
|
3100
3060
|
var defineProperty = require('../internals/object-define-property').f
|
|
@@ -3106,7 +3066,7 @@
|
|
|
3106
3066
|
set: function (it) { Source[key] = it }
|
|
3107
3067
|
})
|
|
3108
3068
|
}
|
|
3109
|
-
}, { '../internals/object-define-property':
|
|
3069
|
+
}, { '../internals/object-define-property': 94 }],
|
|
3110
3070
|
112: [function (require, module, exports) {
|
|
3111
3071
|
'use strict'
|
|
3112
3072
|
var call = require('../internals/function-call')
|
|
@@ -3129,7 +3089,7 @@
|
|
|
3129
3089
|
if (classof(R) === 'RegExp') return call(regexpExec, R, S)
|
|
3130
3090
|
throw new $TypeError('RegExp#exec called on incompatible receiver')
|
|
3131
3091
|
}
|
|
3132
|
-
}, { '../internals/an-object': 8, '../internals/classof-raw':
|
|
3092
|
+
}, { '../internals/an-object': 8, '../internals/classof-raw': 18, '../internals/function-call': 48, '../internals/is-callable': 71, '../internals/regexp-exec': 113 }],
|
|
3133
3093
|
113: [function (require, module, exports) {
|
|
3134
3094
|
'use strict'
|
|
3135
3095
|
/* eslint-disable regexp/no-empty-capturing-group, regexp/no-empty-group, regexp/no-lazy-ends -- testing */
|
|
@@ -3168,18 +3128,29 @@
|
|
|
3168
3128
|
|
|
3169
3129
|
var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED || UNSUPPORTED_Y || UNSUPPORTED_DOT_ALL || UNSUPPORTED_NCG
|
|
3170
3130
|
|
|
3131
|
+
var setGroups = function (re, groups) {
|
|
3132
|
+
var object = re.groups = create(null)
|
|
3133
|
+
for (var i = 0; i < groups.length; i++) {
|
|
3134
|
+
var group = groups[i]
|
|
3135
|
+
object[group[0]] = re[group[1]]
|
|
3136
|
+
}
|
|
3137
|
+
}
|
|
3138
|
+
|
|
3171
3139
|
if (PATCH) {
|
|
3172
3140
|
patchedExec = function exec (string) {
|
|
3173
3141
|
var re = this
|
|
3174
3142
|
var state = getInternalState(re)
|
|
3175
3143
|
var str = toString(string)
|
|
3176
3144
|
var raw = state.raw
|
|
3177
|
-
var result, reCopy, lastIndex
|
|
3145
|
+
var result, reCopy, lastIndex
|
|
3178
3146
|
|
|
3179
3147
|
if (raw) {
|
|
3180
3148
|
raw.lastIndex = re.lastIndex
|
|
3181
3149
|
result = call(patchedExec, raw, str)
|
|
3182
3150
|
re.lastIndex = raw.lastIndex
|
|
3151
|
+
|
|
3152
|
+
if (result && state.groups) setGroups(result, state.groups)
|
|
3153
|
+
|
|
3183
3154
|
return result
|
|
3184
3155
|
}
|
|
3185
3156
|
|
|
@@ -3198,8 +3169,10 @@
|
|
|
3198
3169
|
|
|
3199
3170
|
strCopy = stringSlice(str, re.lastIndex)
|
|
3200
3171
|
// Support anchored sticky behavior.
|
|
3201
|
-
|
|
3202
|
-
|
|
3172
|
+
var prevChar = re.lastIndex > 0 && charAt(str, re.lastIndex - 1)
|
|
3173
|
+
if (re.lastIndex > 0 &&
|
|
3174
|
+
(!re.multiline || re.multiline && prevChar !== '\n' && prevChar !== '\r' && prevChar !== '\u2028' && prevChar !== '\u2029')) {
|
|
3175
|
+
source = '(?: (?:' + source + '))'
|
|
3203
3176
|
strCopy = ' ' + strCopy
|
|
3204
3177
|
charsAdded++
|
|
3205
3178
|
}
|
|
@@ -3213,11 +3186,11 @@
|
|
|
3213
3186
|
}
|
|
3214
3187
|
if (UPDATES_LAST_INDEX_WRONG) lastIndex = re.lastIndex
|
|
3215
3188
|
|
|
3216
|
-
match = call(nativeExec, sticky ? reCopy : re, strCopy)
|
|
3189
|
+
var match = call(nativeExec, sticky ? reCopy : re, strCopy)
|
|
3217
3190
|
|
|
3218
3191
|
if (sticky) {
|
|
3219
3192
|
if (match) {
|
|
3220
|
-
match.input =
|
|
3193
|
+
match.input = str
|
|
3221
3194
|
match[0] = stringSlice(match[0], charsAdded)
|
|
3222
3195
|
match.index = re.lastIndex
|
|
3223
3196
|
re.lastIndex += match[0].length
|
|
@@ -3229,27 +3202,72 @@
|
|
|
3229
3202
|
// Fix browsers whose `exec` methods don't consistently return `undefined`
|
|
3230
3203
|
// for NPCG, like IE8. NOTE: This doesn't work for /(.?)?/
|
|
3231
3204
|
call(nativeReplace, match[0], reCopy, function () {
|
|
3232
|
-
for (i = 1; i < arguments.length - 2; i++) {
|
|
3205
|
+
for (var i = 1; i < arguments.length - 2; i++) {
|
|
3233
3206
|
if (arguments[i] === undefined) match[i] = undefined
|
|
3234
3207
|
}
|
|
3235
3208
|
})
|
|
3236
3209
|
}
|
|
3237
3210
|
|
|
3238
|
-
if (match && groups)
|
|
3239
|
-
match.groups = object = create(null)
|
|
3240
|
-
for (i = 0; i < groups.length; i++) {
|
|
3241
|
-
group = groups[i]
|
|
3242
|
-
object[group[0]] = match[group[1]]
|
|
3243
|
-
}
|
|
3244
|
-
}
|
|
3211
|
+
if (match && groups) setGroups(match, groups)
|
|
3245
3212
|
|
|
3246
3213
|
return match
|
|
3247
3214
|
}
|
|
3248
3215
|
}
|
|
3249
3216
|
|
|
3250
3217
|
module.exports = patchedExec
|
|
3251
|
-
}, { '../internals/function-call':
|
|
3218
|
+
}, { '../internals/function-call': 48, '../internals/function-uncurry-this': 52, '../internals/internal-state': 68, '../internals/object-create': 92, '../internals/regexp-flags': 115, '../internals/regexp-sticky-helpers': 117, '../internals/regexp-unsupported-dot-all': 118, '../internals/regexp-unsupported-ncg': 119, '../internals/shared': 126, '../internals/to-string': 142 }],
|
|
3252
3219
|
114: [function (require, module, exports) {
|
|
3220
|
+
'use strict'
|
|
3221
|
+
var globalThis = require('../internals/global-this')
|
|
3222
|
+
var fails = require('../internals/fails')
|
|
3223
|
+
|
|
3224
|
+
// babel-minify and Closure Compiler transpiles RegExp('.', 'd') -> /./d and it causes SyntaxError
|
|
3225
|
+
var RegExp = globalThis.RegExp
|
|
3226
|
+
|
|
3227
|
+
var FLAGS_GETTER_IS_CORRECT = !fails(function () {
|
|
3228
|
+
var INDICES_SUPPORT = true
|
|
3229
|
+
try {
|
|
3230
|
+
RegExp('.', 'd')
|
|
3231
|
+
} catch (error) {
|
|
3232
|
+
INDICES_SUPPORT = false
|
|
3233
|
+
}
|
|
3234
|
+
|
|
3235
|
+
var O = {}
|
|
3236
|
+
// modern V8 bug
|
|
3237
|
+
var calls = ''
|
|
3238
|
+
var expected = INDICES_SUPPORT ? 'dgimsy' : 'gimsy'
|
|
3239
|
+
|
|
3240
|
+
var addGetter = function (key, chr) {
|
|
3241
|
+
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
3242
|
+
Object.defineProperty(O, key, {
|
|
3243
|
+
get: function () {
|
|
3244
|
+
calls += chr
|
|
3245
|
+
return true
|
|
3246
|
+
}
|
|
3247
|
+
})
|
|
3248
|
+
}
|
|
3249
|
+
|
|
3250
|
+
var pairs = {
|
|
3251
|
+
dotAll: 's',
|
|
3252
|
+
global: 'g',
|
|
3253
|
+
ignoreCase: 'i',
|
|
3254
|
+
multiline: 'm',
|
|
3255
|
+
sticky: 'y'
|
|
3256
|
+
}
|
|
3257
|
+
|
|
3258
|
+
if (INDICES_SUPPORT) pairs.hasIndices = 'd'
|
|
3259
|
+
|
|
3260
|
+
for (var key in pairs) addGetter(key, pairs[key])
|
|
3261
|
+
|
|
3262
|
+
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
3263
|
+
var result = Object.getOwnPropertyDescriptor(RegExp.prototype, 'flags').get.call(O)
|
|
3264
|
+
|
|
3265
|
+
return result !== expected || calls !== expected
|
|
3266
|
+
})
|
|
3267
|
+
|
|
3268
|
+
module.exports = { correct: FLAGS_GETTER_IS_CORRECT }
|
|
3269
|
+
}, { '../internals/fails': 42, '../internals/global-this': 59 }],
|
|
3270
|
+
115: [function (require, module, exports) {
|
|
3253
3271
|
'use strict'
|
|
3254
3272
|
var anObject = require('../internals/an-object')
|
|
3255
3273
|
|
|
@@ -3269,22 +3287,25 @@
|
|
|
3269
3287
|
return result
|
|
3270
3288
|
}
|
|
3271
3289
|
}, { '../internals/an-object': 8 }],
|
|
3272
|
-
|
|
3290
|
+
116: [function (require, module, exports) {
|
|
3273
3291
|
'use strict'
|
|
3274
3292
|
var call = require('../internals/function-call')
|
|
3275
3293
|
var hasOwn = require('../internals/has-own-property')
|
|
3276
3294
|
var isPrototypeOf = require('../internals/object-is-prototype-of')
|
|
3277
|
-
var
|
|
3295
|
+
var regExpFlagsDetection = require('../internals/regexp-flags-detection')
|
|
3296
|
+
var regExpFlagsGetterImplementation = require('../internals/regexp-flags')
|
|
3278
3297
|
|
|
3279
3298
|
var RegExpPrototype = RegExp.prototype
|
|
3280
3299
|
|
|
3281
|
-
module.exports = function (
|
|
3282
|
-
|
|
3283
|
-
|
|
3284
|
-
|
|
3300
|
+
module.exports = regExpFlagsDetection.correct ? function (it) {
|
|
3301
|
+
return it.flags
|
|
3302
|
+
} : function (it) {
|
|
3303
|
+
return (!regExpFlagsDetection.correct && isPrototypeOf(RegExpPrototype, it) && !hasOwn(it, 'flags'))
|
|
3304
|
+
? call(regExpFlagsGetterImplementation, it)
|
|
3305
|
+
: it.flags
|
|
3285
3306
|
}
|
|
3286
|
-
}, { '../internals/function-call':
|
|
3287
|
-
|
|
3307
|
+
}, { '../internals/function-call': 48, '../internals/has-own-property': 60, '../internals/object-is-prototype-of': 101, '../internals/regexp-flags': 115, '../internals/regexp-flags-detection': 114 }],
|
|
3308
|
+
117: [function (require, module, exports) {
|
|
3288
3309
|
'use strict'
|
|
3289
3310
|
var fails = require('../internals/fails')
|
|
3290
3311
|
var globalThis = require('../internals/global-this')
|
|
@@ -3316,8 +3337,8 @@
|
|
|
3316
3337
|
MISSED_STICKY: MISSED_STICKY,
|
|
3317
3338
|
UNSUPPORTED_Y: UNSUPPORTED_Y
|
|
3318
3339
|
}
|
|
3319
|
-
}, { '../internals/fails':
|
|
3320
|
-
|
|
3340
|
+
}, { '../internals/fails': 42, '../internals/global-this': 59 }],
|
|
3341
|
+
118: [function (require, module, exports) {
|
|
3321
3342
|
'use strict'
|
|
3322
3343
|
var fails = require('../internals/fails')
|
|
3323
3344
|
var globalThis = require('../internals/global-this')
|
|
@@ -3329,8 +3350,8 @@
|
|
|
3329
3350
|
var re = $RegExp('.', 's')
|
|
3330
3351
|
return !(re.dotAll && re.test('\n') && re.flags === 's')
|
|
3331
3352
|
})
|
|
3332
|
-
}, { '../internals/fails':
|
|
3333
|
-
|
|
3353
|
+
}, { '../internals/fails': 42, '../internals/global-this': 59 }],
|
|
3354
|
+
119: [function (require, module, exports) {
|
|
3334
3355
|
'use strict'
|
|
3335
3356
|
var fails = require('../internals/fails')
|
|
3336
3357
|
var globalThis = require('../internals/global-this')
|
|
@@ -3343,8 +3364,8 @@
|
|
|
3343
3364
|
return re.exec('b').groups.a !== 'b' ||
|
|
3344
3365
|
'b'.replace(re, '$<a>c') !== 'bc'
|
|
3345
3366
|
})
|
|
3346
|
-
}, { '../internals/fails':
|
|
3347
|
-
|
|
3367
|
+
}, { '../internals/fails': 42, '../internals/global-this': 59 }],
|
|
3368
|
+
120: [function (require, module, exports) {
|
|
3348
3369
|
'use strict'
|
|
3349
3370
|
var isNullOrUndefined = require('../internals/is-null-or-undefined')
|
|
3350
3371
|
|
|
@@ -3356,8 +3377,8 @@
|
|
|
3356
3377
|
if (isNullOrUndefined(it)) throw new $TypeError("Can't call method on " + it)
|
|
3357
3378
|
return it
|
|
3358
3379
|
}
|
|
3359
|
-
}, { '../internals/is-null-or-undefined':
|
|
3360
|
-
|
|
3380
|
+
}, { '../internals/is-null-or-undefined': 74 }],
|
|
3381
|
+
121: [function (require, module, exports) {
|
|
3361
3382
|
'use strict'
|
|
3362
3383
|
var globalThis = require('../internals/global-this')
|
|
3363
3384
|
var apply = require('../internals/function-apply')
|
|
@@ -3389,8 +3410,8 @@
|
|
|
3389
3410
|
return hasTimeArg ? scheduler(callback, timeout) : scheduler(callback)
|
|
3390
3411
|
} : scheduler
|
|
3391
3412
|
}
|
|
3392
|
-
}, { '../internals/array-slice': 14, '../internals/environment':
|
|
3393
|
-
|
|
3413
|
+
}, { '../internals/array-slice': 14, '../internals/environment': 40, '../internals/environment-user-agent': 38, '../internals/function-apply': 45, '../internals/global-this': 59, '../internals/is-callable': 71, '../internals/validate-arguments-length': 147 }],
|
|
3414
|
+
122: [function (require, module, exports) {
|
|
3394
3415
|
'use strict'
|
|
3395
3416
|
var getBuiltIn = require('../internals/get-built-in')
|
|
3396
3417
|
var defineBuiltInAccessor = require('../internals/define-built-in-accessor')
|
|
@@ -3409,8 +3430,8 @@
|
|
|
3409
3430
|
})
|
|
3410
3431
|
}
|
|
3411
3432
|
}
|
|
3412
|
-
}, { '../internals/define-built-in-accessor':
|
|
3413
|
-
|
|
3433
|
+
}, { '../internals/define-built-in-accessor': 29, '../internals/descriptors': 33, '../internals/get-built-in': 53, '../internals/well-known-symbol': 152 }],
|
|
3434
|
+
123: [function (require, module, exports) {
|
|
3414
3435
|
'use strict'
|
|
3415
3436
|
var defineProperty = require('../internals/object-define-property').f
|
|
3416
3437
|
var hasOwn = require('../internals/has-own-property')
|
|
@@ -3424,8 +3445,8 @@
|
|
|
3424
3445
|
defineProperty(target, TO_STRING_TAG, { configurable: true, value: TAG })
|
|
3425
3446
|
}
|
|
3426
3447
|
}
|
|
3427
|
-
}, { '../internals/has-own-property':
|
|
3428
|
-
|
|
3448
|
+
}, { '../internals/has-own-property': 60, '../internals/object-define-property': 94, '../internals/well-known-symbol': 152 }],
|
|
3449
|
+
124: [function (require, module, exports) {
|
|
3429
3450
|
'use strict'
|
|
3430
3451
|
var shared = require('../internals/shared')
|
|
3431
3452
|
var uid = require('../internals/uid')
|
|
@@ -3435,8 +3456,8 @@
|
|
|
3435
3456
|
module.exports = function (key) {
|
|
3436
3457
|
return keys[key] || (keys[key] = uid(key))
|
|
3437
3458
|
}
|
|
3438
|
-
}, { '../internals/shared':
|
|
3439
|
-
|
|
3459
|
+
}, { '../internals/shared': 126, '../internals/uid': 144 }],
|
|
3460
|
+
125: [function (require, module, exports) {
|
|
3440
3461
|
'use strict'
|
|
3441
3462
|
var IS_PURE = require('../internals/is-pure')
|
|
3442
3463
|
var globalThis = require('../internals/global-this')
|
|
@@ -3446,22 +3467,22 @@
|
|
|
3446
3467
|
var store = module.exports = globalThis[SHARED] || defineGlobalProperty(SHARED, {});
|
|
3447
3468
|
|
|
3448
3469
|
(store.versions || (store.versions = [])).push({
|
|
3449
|
-
version: '3.
|
|
3470
|
+
version: '3.49.0',
|
|
3450
3471
|
mode: IS_PURE ? 'pure' : 'global',
|
|
3451
|
-
copyright: '©
|
|
3452
|
-
license: 'https://github.com/zloirock/core-js/blob/v3.
|
|
3472
|
+
copyright: '© 2013–2025 Denis Pushkarev (zloirock.ru), 2025–2026 CoreJS Company (core-js.io). All rights reserved.',
|
|
3473
|
+
license: 'https://github.com/zloirock/core-js/blob/v3.49.0/LICENSE',
|
|
3453
3474
|
source: 'https://github.com/zloirock/core-js'
|
|
3454
3475
|
})
|
|
3455
|
-
}, { '../internals/define-global-property':
|
|
3456
|
-
|
|
3476
|
+
}, { '../internals/define-global-property': 32, '../internals/global-this': 59, '../internals/is-pure': 77 }],
|
|
3477
|
+
126: [function (require, module, exports) {
|
|
3457
3478
|
'use strict'
|
|
3458
3479
|
var store = require('../internals/shared-store')
|
|
3459
3480
|
|
|
3460
3481
|
module.exports = function (key, value) {
|
|
3461
3482
|
return store[key] || (store[key] = value || {})
|
|
3462
3483
|
}
|
|
3463
|
-
}, { '../internals/shared-store':
|
|
3464
|
-
|
|
3484
|
+
}, { '../internals/shared-store': 125 }],
|
|
3485
|
+
127: [function (require, module, exports) {
|
|
3465
3486
|
'use strict'
|
|
3466
3487
|
var uncurryThis = require('../internals/function-uncurry-this')
|
|
3467
3488
|
var toIntegerOrInfinity = require('../internals/to-integer-or-infinity')
|
|
@@ -3499,8 +3520,8 @@
|
|
|
3499
3520
|
// https://github.com/mathiasbynens/String.prototype.at
|
|
3500
3521
|
charAt: createMethod(true)
|
|
3501
3522
|
}
|
|
3502
|
-
}, { '../internals/function-uncurry-this':
|
|
3503
|
-
|
|
3523
|
+
}, { '../internals/function-uncurry-this': 52, '../internals/require-object-coercible': 120, '../internals/to-integer-or-infinity': 136, '../internals/to-string': 142 }],
|
|
3524
|
+
128: [function (require, module, exports) {
|
|
3504
3525
|
'use strict'
|
|
3505
3526
|
var PROPER_FUNCTION_NAME = require('../internals/function-name').PROPER
|
|
3506
3527
|
var fails = require('../internals/fails')
|
|
@@ -3517,8 +3538,8 @@
|
|
|
3517
3538
|
(PROPER_FUNCTION_NAME && whitespaces[METHOD_NAME].name !== METHOD_NAME)
|
|
3518
3539
|
})
|
|
3519
3540
|
}
|
|
3520
|
-
}, { '../internals/fails':
|
|
3521
|
-
|
|
3541
|
+
}, { '../internals/fails': 42, '../internals/function-name': 49, '../internals/whitespaces': 153 }],
|
|
3542
|
+
129: [function (require, module, exports) {
|
|
3522
3543
|
'use strict'
|
|
3523
3544
|
var uncurryThis = require('../internals/function-uncurry-this')
|
|
3524
3545
|
var requireObjectCoercible = require('../internals/require-object-coercible')
|
|
@@ -3550,8 +3571,8 @@
|
|
|
3550
3571
|
// https://tc39.es/ecma262/#sec-string.prototype.trim
|
|
3551
3572
|
trim: createMethod(3)
|
|
3552
3573
|
}
|
|
3553
|
-
}, { '../internals/function-uncurry-this':
|
|
3554
|
-
|
|
3574
|
+
}, { '../internals/function-uncurry-this': 52, '../internals/require-object-coercible': 120, '../internals/to-string': 142, '../internals/whitespaces': 153 }],
|
|
3575
|
+
130: [function (require, module, exports) {
|
|
3555
3576
|
'use strict'
|
|
3556
3577
|
/* eslint-disable es/no-symbol -- required for testing */
|
|
3557
3578
|
var V8_VERSION = require('../internals/environment-v8-version')
|
|
@@ -3571,8 +3592,8 @@
|
|
|
3571
3592
|
// Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
|
|
3572
3593
|
!Symbol.sham && V8_VERSION && V8_VERSION < 41
|
|
3573
3594
|
})
|
|
3574
|
-
}, { '../internals/environment-v8-version':
|
|
3575
|
-
|
|
3595
|
+
}, { '../internals/environment-v8-version': 39, '../internals/fails': 42, '../internals/global-this': 59 }],
|
|
3596
|
+
131: [function (require, module, exports) {
|
|
3576
3597
|
'use strict'
|
|
3577
3598
|
var call = require('../internals/function-call')
|
|
3578
3599
|
var getBuiltIn = require('../internals/get-built-in')
|
|
@@ -3594,23 +3615,23 @@
|
|
|
3594
3615
|
}, { arity: 1 })
|
|
3595
3616
|
}
|
|
3596
3617
|
}
|
|
3597
|
-
}, { '../internals/define-built-in':
|
|
3598
|
-
|
|
3618
|
+
}, { '../internals/define-built-in': 30, '../internals/function-call': 48, '../internals/get-built-in': 53, '../internals/well-known-symbol': 152 }],
|
|
3619
|
+
132: [function (require, module, exports) {
|
|
3599
3620
|
'use strict'
|
|
3600
3621
|
var NATIVE_SYMBOL = require('../internals/symbol-constructor-detection')
|
|
3601
3622
|
|
|
3602
3623
|
/* eslint-disable es/no-symbol -- safe */
|
|
3603
3624
|
module.exports = NATIVE_SYMBOL && !!Symbol.for && !!Symbol.keyFor
|
|
3604
|
-
}, { '../internals/symbol-constructor-detection':
|
|
3605
|
-
|
|
3625
|
+
}, { '../internals/symbol-constructor-detection': 130 }],
|
|
3626
|
+
133: [function (require, module, exports) {
|
|
3606
3627
|
'use strict'
|
|
3607
3628
|
var uncurryThis = require('../internals/function-uncurry-this')
|
|
3608
3629
|
|
|
3609
3630
|
// `thisNumberValue` abstract operation
|
|
3610
3631
|
// https://tc39.es/ecma262/#sec-thisnumbervalue
|
|
3611
|
-
module.exports = uncurryThis(1.
|
|
3612
|
-
}, { '../internals/function-uncurry-this':
|
|
3613
|
-
|
|
3632
|
+
module.exports = uncurryThis(1.1.valueOf)
|
|
3633
|
+
}, { '../internals/function-uncurry-this': 52 }],
|
|
3634
|
+
134: [function (require, module, exports) {
|
|
3614
3635
|
'use strict'
|
|
3615
3636
|
var toIntegerOrInfinity = require('../internals/to-integer-or-infinity')
|
|
3616
3637
|
|
|
@@ -3624,8 +3645,8 @@
|
|
|
3624
3645
|
var integer = toIntegerOrInfinity(index)
|
|
3625
3646
|
return integer < 0 ? max(integer + length, 0) : min(integer, length)
|
|
3626
3647
|
}
|
|
3627
|
-
}, { '../internals/to-integer-or-infinity':
|
|
3628
|
-
|
|
3648
|
+
}, { '../internals/to-integer-or-infinity': 136 }],
|
|
3649
|
+
135: [function (require, module, exports) {
|
|
3629
3650
|
'use strict'
|
|
3630
3651
|
// toObject with fallback for non-array-like ES3 strings
|
|
3631
3652
|
var IndexedObject = require('../internals/indexed-object')
|
|
@@ -3634,8 +3655,8 @@
|
|
|
3634
3655
|
module.exports = function (it) {
|
|
3635
3656
|
return IndexedObject(requireObjectCoercible(it))
|
|
3636
3657
|
}
|
|
3637
|
-
}, { '../internals/indexed-object':
|
|
3638
|
-
|
|
3658
|
+
}, { '../internals/indexed-object': 64, '../internals/require-object-coercible': 120 }],
|
|
3659
|
+
136: [function (require, module, exports) {
|
|
3639
3660
|
'use strict'
|
|
3640
3661
|
var trunc = require('../internals/math-trunc')
|
|
3641
3662
|
|
|
@@ -3646,8 +3667,8 @@
|
|
|
3646
3667
|
// eslint-disable-next-line no-self-compare -- NaN check
|
|
3647
3668
|
return number !== number || number === 0 ? 0 : trunc(number)
|
|
3648
3669
|
}
|
|
3649
|
-
}, { '../internals/math-trunc':
|
|
3650
|
-
|
|
3670
|
+
}, { '../internals/math-trunc': 90 }],
|
|
3671
|
+
137: [function (require, module, exports) {
|
|
3651
3672
|
'use strict'
|
|
3652
3673
|
var toIntegerOrInfinity = require('../internals/to-integer-or-infinity')
|
|
3653
3674
|
|
|
@@ -3659,8 +3680,8 @@
|
|
|
3659
3680
|
var len = toIntegerOrInfinity(argument)
|
|
3660
3681
|
return len > 0 ? min(len, 0x1FFFFFFFFFFFFF) : 0 // 2 ** 53 - 1 == 9007199254740991
|
|
3661
3682
|
}
|
|
3662
|
-
}, { '../internals/to-integer-or-infinity':
|
|
3663
|
-
|
|
3683
|
+
}, { '../internals/to-integer-or-infinity': 136 }],
|
|
3684
|
+
138: [function (require, module, exports) {
|
|
3664
3685
|
'use strict'
|
|
3665
3686
|
var requireObjectCoercible = require('../internals/require-object-coercible')
|
|
3666
3687
|
|
|
@@ -3671,8 +3692,8 @@
|
|
|
3671
3692
|
module.exports = function (argument) {
|
|
3672
3693
|
return $Object(requireObjectCoercible(argument))
|
|
3673
3694
|
}
|
|
3674
|
-
}, { '../internals/require-object-coercible':
|
|
3675
|
-
|
|
3695
|
+
}, { '../internals/require-object-coercible': 120 }],
|
|
3696
|
+
139: [function (require, module, exports) {
|
|
3676
3697
|
'use strict'
|
|
3677
3698
|
var call = require('../internals/function-call')
|
|
3678
3699
|
var isObject = require('../internals/is-object')
|
|
@@ -3699,8 +3720,8 @@
|
|
|
3699
3720
|
if (pref === undefined) pref = 'number'
|
|
3700
3721
|
return ordinaryToPrimitive(input, pref)
|
|
3701
3722
|
}
|
|
3702
|
-
}, { '../internals/function-call':
|
|
3703
|
-
|
|
3723
|
+
}, { '../internals/function-call': 48, '../internals/get-method': 57, '../internals/is-object': 75, '../internals/is-symbol': 80, '../internals/ordinary-to-primitive': 107, '../internals/well-known-symbol': 152 }],
|
|
3724
|
+
140: [function (require, module, exports) {
|
|
3704
3725
|
'use strict'
|
|
3705
3726
|
var toPrimitive = require('../internals/to-primitive')
|
|
3706
3727
|
var isSymbol = require('../internals/is-symbol')
|
|
@@ -3711,19 +3732,19 @@
|
|
|
3711
3732
|
var key = toPrimitive(argument, 'string')
|
|
3712
3733
|
return isSymbol(key) ? key : key + ''
|
|
3713
3734
|
}
|
|
3714
|
-
}, { '../internals/is-symbol':
|
|
3715
|
-
|
|
3735
|
+
}, { '../internals/is-symbol': 80, '../internals/to-primitive': 139 }],
|
|
3736
|
+
141: [function (require, module, exports) {
|
|
3716
3737
|
'use strict'
|
|
3717
3738
|
var wellKnownSymbol = require('../internals/well-known-symbol')
|
|
3718
3739
|
|
|
3719
3740
|
var TO_STRING_TAG = wellKnownSymbol('toStringTag')
|
|
3720
3741
|
var test = {}
|
|
3721
|
-
|
|
3742
|
+
// eslint-disable-next-line unicorn/no-immediate-mutation -- ES3 syntax limitation
|
|
3722
3743
|
test[TO_STRING_TAG] = 'z'
|
|
3723
3744
|
|
|
3724
3745
|
module.exports = String(test) === '[object z]'
|
|
3725
|
-
}, { '../internals/well-known-symbol':
|
|
3726
|
-
|
|
3746
|
+
}, { '../internals/well-known-symbol': 152 }],
|
|
3747
|
+
142: [function (require, module, exports) {
|
|
3727
3748
|
'use strict'
|
|
3728
3749
|
var classof = require('../internals/classof')
|
|
3729
3750
|
|
|
@@ -3733,8 +3754,8 @@
|
|
|
3733
3754
|
if (classof(argument) === 'Symbol') throw new TypeError('Cannot convert a Symbol value to a string')
|
|
3734
3755
|
return $String(argument)
|
|
3735
3756
|
}
|
|
3736
|
-
}, { '../internals/classof':
|
|
3737
|
-
|
|
3757
|
+
}, { '../internals/classof': 19 }],
|
|
3758
|
+
143: [function (require, module, exports) {
|
|
3738
3759
|
'use strict'
|
|
3739
3760
|
var $String = String
|
|
3740
3761
|
|
|
@@ -3746,19 +3767,19 @@
|
|
|
3746
3767
|
}
|
|
3747
3768
|
}
|
|
3748
3769
|
}, {}],
|
|
3749
|
-
|
|
3770
|
+
144: [function (require, module, exports) {
|
|
3750
3771
|
'use strict'
|
|
3751
3772
|
var uncurryThis = require('../internals/function-uncurry-this')
|
|
3752
3773
|
|
|
3753
3774
|
var id = 0
|
|
3754
3775
|
var postfix = Math.random()
|
|
3755
|
-
var toString = uncurryThis(1.
|
|
3776
|
+
var toString = uncurryThis(1.1.toString)
|
|
3756
3777
|
|
|
3757
3778
|
module.exports = function (key) {
|
|
3758
3779
|
return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36)
|
|
3759
3780
|
}
|
|
3760
|
-
}, { '../internals/function-uncurry-this':
|
|
3761
|
-
|
|
3781
|
+
}, { '../internals/function-uncurry-this': 52 }],
|
|
3782
|
+
145: [function (require, module, exports) {
|
|
3762
3783
|
'use strict'
|
|
3763
3784
|
/* eslint-disable es/no-symbol -- required for testing */
|
|
3764
3785
|
var NATIVE_SYMBOL = require('../internals/symbol-constructor-detection')
|
|
@@ -3766,8 +3787,8 @@
|
|
|
3766
3787
|
module.exports = NATIVE_SYMBOL &&
|
|
3767
3788
|
!Symbol.sham &&
|
|
3768
3789
|
typeof Symbol.iterator === 'symbol'
|
|
3769
|
-
}, { '../internals/symbol-constructor-detection':
|
|
3770
|
-
|
|
3790
|
+
}, { '../internals/symbol-constructor-detection': 130 }],
|
|
3791
|
+
146: [function (require, module, exports) {
|
|
3771
3792
|
'use strict'
|
|
3772
3793
|
var DESCRIPTORS = require('../internals/descriptors')
|
|
3773
3794
|
var fails = require('../internals/fails')
|
|
@@ -3781,8 +3802,8 @@
|
|
|
3781
3802
|
writable: false
|
|
3782
3803
|
}).prototype !== 42
|
|
3783
3804
|
})
|
|
3784
|
-
}, { '../internals/descriptors':
|
|
3785
|
-
|
|
3805
|
+
}, { '../internals/descriptors': 33, '../internals/fails': 42 }],
|
|
3806
|
+
147: [function (require, module, exports) {
|
|
3786
3807
|
'use strict'
|
|
3787
3808
|
var $TypeError = TypeError
|
|
3788
3809
|
|
|
@@ -3791,7 +3812,7 @@
|
|
|
3791
3812
|
return passed
|
|
3792
3813
|
}
|
|
3793
3814
|
}, {}],
|
|
3794
|
-
|
|
3815
|
+
148: [function (require, module, exports) {
|
|
3795
3816
|
'use strict'
|
|
3796
3817
|
var globalThis = require('../internals/global-this')
|
|
3797
3818
|
var isCallable = require('../internals/is-callable')
|
|
@@ -3799,8 +3820,8 @@
|
|
|
3799
3820
|
var WeakMap = globalThis.WeakMap
|
|
3800
3821
|
|
|
3801
3822
|
module.exports = isCallable(WeakMap) && /native code/.test(String(WeakMap))
|
|
3802
|
-
}, { '../internals/global-this':
|
|
3803
|
-
|
|
3823
|
+
}, { '../internals/global-this': 59, '../internals/is-callable': 71 }],
|
|
3824
|
+
149: [function (require, module, exports) {
|
|
3804
3825
|
'use strict'
|
|
3805
3826
|
var uncurryThis = require('../internals/function-uncurry-this')
|
|
3806
3827
|
|
|
@@ -3815,8 +3836,8 @@
|
|
|
3815
3836
|
has: uncurryThis(WeakMapPrototype.has),
|
|
3816
3837
|
remove: uncurryThis(WeakMapPrototype.delete)
|
|
3817
3838
|
}
|
|
3818
|
-
}, { '../internals/function-uncurry-this':
|
|
3819
|
-
|
|
3839
|
+
}, { '../internals/function-uncurry-this': 52 }],
|
|
3840
|
+
150: [function (require, module, exports) {
|
|
3820
3841
|
'use strict'
|
|
3821
3842
|
var path = require('../internals/path')
|
|
3822
3843
|
var hasOwn = require('../internals/has-own-property')
|
|
@@ -3831,14 +3852,14 @@
|
|
|
3831
3852
|
})
|
|
3832
3853
|
}
|
|
3833
3854
|
}
|
|
3834
|
-
}, { '../internals/has-own-property':
|
|
3835
|
-
|
|
3855
|
+
}, { '../internals/has-own-property': 60, '../internals/object-define-property': 94, '../internals/path': 110, '../internals/well-known-symbol-wrapped': 151 }],
|
|
3856
|
+
151: [function (require, module, exports) {
|
|
3836
3857
|
'use strict'
|
|
3837
3858
|
var wellKnownSymbol = require('../internals/well-known-symbol')
|
|
3838
3859
|
|
|
3839
3860
|
exports.f = wellKnownSymbol
|
|
3840
|
-
}, { '../internals/well-known-symbol':
|
|
3841
|
-
|
|
3861
|
+
}, { '../internals/well-known-symbol': 152 }],
|
|
3862
|
+
152: [function (require, module, exports) {
|
|
3842
3863
|
'use strict'
|
|
3843
3864
|
var globalThis = require('../internals/global-this')
|
|
3844
3865
|
var shared = require('../internals/shared')
|
|
@@ -3858,14 +3879,14 @@
|
|
|
3858
3879
|
: createWellKnownSymbol('Symbol.' + name)
|
|
3859
3880
|
} return WellKnownSymbolsStore[name]
|
|
3860
3881
|
}
|
|
3861
|
-
}, { '../internals/global-this':
|
|
3862
|
-
|
|
3882
|
+
}, { '../internals/global-this': 59, '../internals/has-own-property': 60, '../internals/shared': 126, '../internals/symbol-constructor-detection': 130, '../internals/uid': 144, '../internals/use-symbol-as-uid': 145 }],
|
|
3883
|
+
153: [function (require, module, exports) {
|
|
3863
3884
|
'use strict'
|
|
3864
3885
|
// a string of all valid unicode whitespaces
|
|
3865
3886
|
module.exports = '\u0009\u000A\u000B\u000C\u000D\u0020\u00A0\u1680\u2000\u2001\u2002' +
|
|
3866
3887
|
'\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF'
|
|
3867
3888
|
}, {}],
|
|
3868
|
-
|
|
3889
|
+
154: [function (require, module, exports) {
|
|
3869
3890
|
'use strict'
|
|
3870
3891
|
var $ = require('../internals/export')
|
|
3871
3892
|
var forEach = require('../internals/array-for-each')
|
|
@@ -3876,8 +3897,8 @@
|
|
|
3876
3897
|
$({ target: 'Array', proto: true, forced: [].forEach !== forEach }, {
|
|
3877
3898
|
forEach: forEach
|
|
3878
3899
|
})
|
|
3879
|
-
}, { '../internals/array-for-each': 10, '../internals/export':
|
|
3880
|
-
|
|
3900
|
+
}, { '../internals/array-for-each': 10, '../internals/export': 41 }],
|
|
3901
|
+
155: [function (require, module, exports) {
|
|
3881
3902
|
'use strict'
|
|
3882
3903
|
var toIndexedObject = require('../internals/to-indexed-object')
|
|
3883
3904
|
var addToUnscopables = require('../internals/add-to-unscopables')
|
|
@@ -3942,8 +3963,8 @@
|
|
|
3942
3963
|
defineProperty(values, 'name', { value: 'values' })
|
|
3943
3964
|
} catch (error) { /* empty */ }
|
|
3944
3965
|
}
|
|
3945
|
-
}, { '../internals/add-to-unscopables': 5, '../internals/create-iter-result-object':
|
|
3946
|
-
|
|
3966
|
+
}, { '../internals/add-to-unscopables': 5, '../internals/create-iter-result-object': 24, '../internals/descriptors': 33, '../internals/internal-state': 68, '../internals/is-pure': 77, '../internals/iterator-define': 84, '../internals/iterators': 87, '../internals/object-define-property': 94, '../internals/to-indexed-object': 135 }],
|
|
3967
|
+
156: [function (require, module, exports) {
|
|
3947
3968
|
'use strict'
|
|
3948
3969
|
var $ = require('../internals/export')
|
|
3949
3970
|
var uncurryThis = require('../internals/function-uncurry-this')
|
|
@@ -3963,8 +3984,8 @@
|
|
|
3963
3984
|
return nativeJoin(toIndexedObject(this), separator === undefined ? ',' : separator)
|
|
3964
3985
|
}
|
|
3965
3986
|
})
|
|
3966
|
-
}, { '../internals/array-method-is-strict': 13, '../internals/export':
|
|
3967
|
-
|
|
3987
|
+
}, { '../internals/array-method-is-strict': 13, '../internals/export': 41, '../internals/function-uncurry-this': 52, '../internals/indexed-object': 64, '../internals/to-indexed-object': 135 }],
|
|
3988
|
+
157: [function (require, module, exports) {
|
|
3968
3989
|
'use strict'
|
|
3969
3990
|
var hasOwn = require('../internals/has-own-property')
|
|
3970
3991
|
var defineBuiltIn = require('../internals/define-built-in')
|
|
@@ -3979,8 +4000,109 @@
|
|
|
3979
4000
|
if (!hasOwn(DatePrototype, TO_PRIMITIVE)) {
|
|
3980
4001
|
defineBuiltIn(DatePrototype, TO_PRIMITIVE, dateToPrimitive)
|
|
3981
4002
|
}
|
|
3982
|
-
}, { '../internals/date-to-primitive':
|
|
3983
|
-
|
|
4003
|
+
}, { '../internals/date-to-primitive': 28, '../internals/define-built-in': 30, '../internals/has-own-property': 60, '../internals/well-known-symbol': 152 }],
|
|
4004
|
+
158: [function (require, module, exports) {
|
|
4005
|
+
'use strict'
|
|
4006
|
+
var $ = require('../internals/export')
|
|
4007
|
+
var globalThis = require('../internals/global-this')
|
|
4008
|
+
var anInstance = require('../internals/an-instance')
|
|
4009
|
+
var anObject = require('../internals/an-object')
|
|
4010
|
+
var isCallable = require('../internals/is-callable')
|
|
4011
|
+
var getPrototypeOf = require('../internals/object-get-prototype-of')
|
|
4012
|
+
var defineBuiltInAccessor = require('../internals/define-built-in-accessor')
|
|
4013
|
+
var createProperty = require('../internals/create-property')
|
|
4014
|
+
var fails = require('../internals/fails')
|
|
4015
|
+
var hasOwn = require('../internals/has-own-property')
|
|
4016
|
+
var wellKnownSymbol = require('../internals/well-known-symbol')
|
|
4017
|
+
var IteratorPrototype = require('../internals/iterators-core').IteratorPrototype
|
|
4018
|
+
var DESCRIPTORS = require('../internals/descriptors')
|
|
4019
|
+
var IS_PURE = require('../internals/is-pure')
|
|
4020
|
+
|
|
4021
|
+
var CONSTRUCTOR = 'constructor'
|
|
4022
|
+
var ITERATOR = 'Iterator'
|
|
4023
|
+
var TO_STRING_TAG = wellKnownSymbol('toStringTag')
|
|
4024
|
+
|
|
4025
|
+
var $TypeError = TypeError
|
|
4026
|
+
var NativeIterator = globalThis[ITERATOR]
|
|
4027
|
+
|
|
4028
|
+
// FF56- have non-standard global helper `Iterator`
|
|
4029
|
+
var FORCED = IS_PURE ||
|
|
4030
|
+
!isCallable(NativeIterator) ||
|
|
4031
|
+
NativeIterator.prototype !== IteratorPrototype ||
|
|
4032
|
+
// FF44- non-standard `Iterator` passes previous tests
|
|
4033
|
+
!fails(function () { NativeIterator({}) })
|
|
4034
|
+
|
|
4035
|
+
var IteratorConstructor = function Iterator () {
|
|
4036
|
+
anInstance(this, IteratorPrototype)
|
|
4037
|
+
if (getPrototypeOf(this) === IteratorPrototype) throw new $TypeError('Abstract class Iterator not directly constructable')
|
|
4038
|
+
}
|
|
4039
|
+
|
|
4040
|
+
var defineIteratorPrototypeAccessor = function (key, value) {
|
|
4041
|
+
if (DESCRIPTORS) {
|
|
4042
|
+
defineBuiltInAccessor(IteratorPrototype, key, {
|
|
4043
|
+
configurable: true,
|
|
4044
|
+
get: function () {
|
|
4045
|
+
return value
|
|
4046
|
+
},
|
|
4047
|
+
set: function (replacement) {
|
|
4048
|
+
anObject(this)
|
|
4049
|
+
if (this === IteratorPrototype) throw new $TypeError("You can't redefine this property")
|
|
4050
|
+
if (hasOwn(this, key)) this[key] = replacement
|
|
4051
|
+
else createProperty(this, key, replacement)
|
|
4052
|
+
}
|
|
4053
|
+
})
|
|
4054
|
+
} else IteratorPrototype[key] = value
|
|
4055
|
+
}
|
|
4056
|
+
|
|
4057
|
+
if (!hasOwn(IteratorPrototype, TO_STRING_TAG)) defineIteratorPrototypeAccessor(TO_STRING_TAG, ITERATOR)
|
|
4058
|
+
|
|
4059
|
+
if (FORCED || !hasOwn(IteratorPrototype, CONSTRUCTOR) || IteratorPrototype[CONSTRUCTOR] === Object) {
|
|
4060
|
+
defineIteratorPrototypeAccessor(CONSTRUCTOR, IteratorConstructor)
|
|
4061
|
+
}
|
|
4062
|
+
|
|
4063
|
+
IteratorConstructor.prototype = IteratorPrototype
|
|
4064
|
+
|
|
4065
|
+
// `Iterator` constructor
|
|
4066
|
+
// https://tc39.es/ecma262/#sec-iterator
|
|
4067
|
+
$({ global: true, constructor: true, forced: FORCED }, {
|
|
4068
|
+
Iterator: IteratorConstructor
|
|
4069
|
+
})
|
|
4070
|
+
}, { '../internals/an-instance': 7, '../internals/an-object': 8, '../internals/create-property': 27, '../internals/define-built-in-accessor': 29, '../internals/descriptors': 33, '../internals/export': 41, '../internals/fails': 42, '../internals/global-this': 59, '../internals/has-own-property': 60, '../internals/is-callable': 71, '../internals/is-pure': 77, '../internals/iterators-core': 86, '../internals/object-get-prototype-of': 99, '../internals/well-known-symbol': 152 }],
|
|
4071
|
+
159: [function (require, module, exports) {
|
|
4072
|
+
'use strict'
|
|
4073
|
+
var $ = require('../internals/export')
|
|
4074
|
+
var call = require('../internals/function-call')
|
|
4075
|
+
var iterate = require('../internals/iterate')
|
|
4076
|
+
var aCallable = require('../internals/a-callable')
|
|
4077
|
+
var anObject = require('../internals/an-object')
|
|
4078
|
+
var getIteratorDirect = require('../internals/get-iterator-direct')
|
|
4079
|
+
var iteratorClose = require('../internals/iterator-close')
|
|
4080
|
+
var iteratorHelperWithoutClosingOnEarlyError = require('../internals/iterator-helper-without-closing-on-early-error')
|
|
4081
|
+
|
|
4082
|
+
var forEachWithoutClosingOnEarlyError = iteratorHelperWithoutClosingOnEarlyError('forEach', TypeError)
|
|
4083
|
+
|
|
4084
|
+
// `Iterator.prototype.forEach` method
|
|
4085
|
+
// https://tc39.es/ecma262/#sec-iterator.prototype.foreach
|
|
4086
|
+
$({ target: 'Iterator', proto: true, real: true, forced: forEachWithoutClosingOnEarlyError }, {
|
|
4087
|
+
forEach: function forEach (fn) {
|
|
4088
|
+
anObject(this)
|
|
4089
|
+
try {
|
|
4090
|
+
aCallable(fn)
|
|
4091
|
+
} catch (error) {
|
|
4092
|
+
iteratorClose(this, 'throw', error)
|
|
4093
|
+
}
|
|
4094
|
+
|
|
4095
|
+
if (forEachWithoutClosingOnEarlyError) return call(forEachWithoutClosingOnEarlyError, this, fn)
|
|
4096
|
+
|
|
4097
|
+
var record = getIteratorDirect(this)
|
|
4098
|
+
var counter = 0
|
|
4099
|
+
iterate(record, function (value) {
|
|
4100
|
+
fn(value, counter++)
|
|
4101
|
+
}, { IS_RECORD: true })
|
|
4102
|
+
}
|
|
4103
|
+
})
|
|
4104
|
+
}, { '../internals/a-callable': 2, '../internals/an-object': 8, '../internals/export': 41, '../internals/function-call': 48, '../internals/get-iterator-direct': 54, '../internals/iterate': 81, '../internals/iterator-close': 82, '../internals/iterator-helper-without-closing-on-early-error': 85 }],
|
|
4105
|
+
160: [function (require, module, exports) {
|
|
3984
4106
|
'use strict'
|
|
3985
4107
|
var $ = require('../internals/export')
|
|
3986
4108
|
var getBuiltIn = require('../internals/get-built-in')
|
|
@@ -3988,11 +4110,17 @@
|
|
|
3988
4110
|
var call = require('../internals/function-call')
|
|
3989
4111
|
var uncurryThis = require('../internals/function-uncurry-this')
|
|
3990
4112
|
var fails = require('../internals/fails')
|
|
4113
|
+
var isArray = require('../internals/is-array')
|
|
3991
4114
|
var isCallable = require('../internals/is-callable')
|
|
4115
|
+
var isRawJSON = require('../internals/is-raw-json')
|
|
3992
4116
|
var isSymbol = require('../internals/is-symbol')
|
|
4117
|
+
var classof = require('../internals/classof-raw')
|
|
4118
|
+
var toString = require('../internals/to-string')
|
|
3993
4119
|
var arraySlice = require('../internals/array-slice')
|
|
3994
|
-
var
|
|
4120
|
+
var parseJSONString = require('../internals/parse-json-string')
|
|
4121
|
+
var uid = require('../internals/uid')
|
|
3995
4122
|
var NATIVE_SYMBOL = require('../internals/symbol-constructor-detection')
|
|
4123
|
+
var NATIVE_RAW_JSON = require('../internals/native-raw-json')
|
|
3996
4124
|
|
|
3997
4125
|
var $String = String
|
|
3998
4126
|
var $stringify = getBuiltIn('JSON', 'stringify')
|
|
@@ -4000,11 +4128,16 @@
|
|
|
4000
4128
|
var charAt = uncurryThis(''.charAt)
|
|
4001
4129
|
var charCodeAt = uncurryThis(''.charCodeAt)
|
|
4002
4130
|
var replace = uncurryThis(''.replace)
|
|
4003
|
-
var
|
|
4131
|
+
var slice = uncurryThis(''.slice)
|
|
4132
|
+
var push = uncurryThis([].push)
|
|
4133
|
+
var numberToString = uncurryThis(1.1.toString)
|
|
4004
4134
|
|
|
4005
|
-
var
|
|
4006
|
-
var
|
|
4007
|
-
var
|
|
4135
|
+
var surrogates = /[\uD800-\uDFFF]/g
|
|
4136
|
+
var leadingSurrogates = /^[\uD800-\uDBFF]$/
|
|
4137
|
+
var trailingSurrogates = /^[\uDC00-\uDFFF]$/
|
|
4138
|
+
|
|
4139
|
+
var MARK = uid()
|
|
4140
|
+
var MARK_LENGTH = MARK.length
|
|
4008
4141
|
|
|
4009
4142
|
var WRONG_SYMBOLS_CONVERSION = !NATIVE_SYMBOL || fails(function () {
|
|
4010
4143
|
var symbol = getBuiltIn('Symbol')('stringify detection')
|
|
@@ -4022,7 +4155,7 @@
|
|
|
4022
4155
|
$stringify('\uDEAD') !== '"\\udead"'
|
|
4023
4156
|
})
|
|
4024
4157
|
|
|
4025
|
-
var
|
|
4158
|
+
var stringifyWithProperSymbolsConversion = WRONG_SYMBOLS_CONVERSION ? function (it, replacer) {
|
|
4026
4159
|
var args = arraySlice(arguments)
|
|
4027
4160
|
var $replacer = getReplacerFunction(replacer)
|
|
4028
4161
|
if (!isCallable($replacer) && (it === undefined || isSymbol(it))) return // IE8 returns string on undefined
|
|
@@ -4032,30 +4165,83 @@
|
|
|
4032
4165
|
if (!isSymbol(value)) return value
|
|
4033
4166
|
}
|
|
4034
4167
|
return apply($stringify, null, args)
|
|
4035
|
-
}
|
|
4168
|
+
} : $stringify
|
|
4036
4169
|
|
|
4037
|
-
var
|
|
4170
|
+
var fixIllFormedJSON = function (match, offset, string) {
|
|
4038
4171
|
var prev = charAt(string, offset - 1)
|
|
4039
4172
|
var next = charAt(string, offset + 1)
|
|
4040
|
-
if (
|
|
4173
|
+
if (
|
|
4174
|
+
(exec(leadingSurrogates, match) && !exec(trailingSurrogates, next)) ||
|
|
4175
|
+
(exec(trailingSurrogates, match) && !exec(leadingSurrogates, prev))
|
|
4176
|
+
) {
|
|
4041
4177
|
return '\\u' + numberToString(charCodeAt(match, 0), 16)
|
|
4042
4178
|
} return match
|
|
4043
4179
|
}
|
|
4044
4180
|
|
|
4181
|
+
var getReplacerFunction = function (replacer) {
|
|
4182
|
+
if (isCallable(replacer)) return replacer
|
|
4183
|
+
if (!isArray(replacer)) return
|
|
4184
|
+
var rawLength = replacer.length
|
|
4185
|
+
var keys = []
|
|
4186
|
+
for (var i = 0; i < rawLength; i++) {
|
|
4187
|
+
var element = replacer[i]
|
|
4188
|
+
if (typeof element === 'string') push(keys, element)
|
|
4189
|
+
else if (typeof element === 'number' || classof(element) === 'Number' || classof(element) === 'String') push(keys, toString(element))
|
|
4190
|
+
}
|
|
4191
|
+
var keysLength = keys.length
|
|
4192
|
+
var root = true
|
|
4193
|
+
return function (key, value) {
|
|
4194
|
+
if (root) {
|
|
4195
|
+
root = false
|
|
4196
|
+
return value
|
|
4197
|
+
}
|
|
4198
|
+
if (isArray(this)) return value
|
|
4199
|
+
for (var j = 0; j < keysLength; j++) if (keys[j] === key) return value
|
|
4200
|
+
}
|
|
4201
|
+
}
|
|
4202
|
+
|
|
4203
|
+
// `JSON.stringify` method
|
|
4204
|
+
// https://tc39.es/ecma262/#sec-json.stringify
|
|
4205
|
+
// https://github.com/tc39/proposal-json-parse-with-source
|
|
4045
4206
|
if ($stringify) {
|
|
4046
|
-
|
|
4047
|
-
|
|
4048
|
-
|
|
4049
|
-
|
|
4050
|
-
|
|
4051
|
-
var
|
|
4052
|
-
|
|
4053
|
-
|
|
4207
|
+
$({ target: 'JSON', stat: true, arity: 3, forced: WRONG_SYMBOLS_CONVERSION || ILL_FORMED_UNICODE || !NATIVE_RAW_JSON }, {
|
|
4208
|
+
stringify: function stringify (text, replacer, space) {
|
|
4209
|
+
var replacerFunction = getReplacerFunction(replacer)
|
|
4210
|
+
var rawStrings = []
|
|
4211
|
+
|
|
4212
|
+
var json = stringifyWithProperSymbolsConversion(text, function (key, value) {
|
|
4213
|
+
// some old implementations (like WebKit) could pass numbers as keys
|
|
4214
|
+
var v = isCallable(replacerFunction) ? call(replacerFunction, this, $String(key), value) : value
|
|
4215
|
+
return !NATIVE_RAW_JSON && isRawJSON(v) ? MARK + (push(rawStrings, v.rawJSON) - 1) : v
|
|
4216
|
+
}, space)
|
|
4217
|
+
|
|
4218
|
+
if (typeof json !== 'string') return json
|
|
4219
|
+
|
|
4220
|
+
if (ILL_FORMED_UNICODE) json = replace(json, surrogates, fixIllFormedJSON)
|
|
4221
|
+
|
|
4222
|
+
if (NATIVE_RAW_JSON) return json
|
|
4223
|
+
|
|
4224
|
+
var result = ''
|
|
4225
|
+
var length = json.length
|
|
4226
|
+
|
|
4227
|
+
for (var i = 0; i < length; i++) {
|
|
4228
|
+
var chr = charAt(json, i)
|
|
4229
|
+
if (chr === '"') {
|
|
4230
|
+
var end = parseJSONString(json, ++i).end - 1
|
|
4231
|
+
var string = slice(json, i, end)
|
|
4232
|
+
result += slice(string, 0, MARK_LENGTH) === MARK
|
|
4233
|
+
? rawStrings[slice(string, MARK_LENGTH)]
|
|
4234
|
+
: '"' + string + '"'
|
|
4235
|
+
i = end
|
|
4236
|
+
} else result += chr
|
|
4237
|
+
}
|
|
4238
|
+
|
|
4239
|
+
return result
|
|
4054
4240
|
}
|
|
4055
4241
|
})
|
|
4056
4242
|
}
|
|
4057
|
-
}, { '../internals/array-slice': 14, '../internals/export':
|
|
4058
|
-
|
|
4243
|
+
}, { '../internals/array-slice': 14, '../internals/classof-raw': 18, '../internals/export': 41, '../internals/fails': 42, '../internals/function-apply': 45, '../internals/function-call': 48, '../internals/function-uncurry-this': 52, '../internals/get-built-in': 53, '../internals/is-array': 70, '../internals/is-callable': 71, '../internals/is-raw-json': 78, '../internals/is-symbol': 80, '../internals/native-raw-json': 91, '../internals/parse-json-string': 109, '../internals/symbol-constructor-detection': 130, '../internals/to-string': 142, '../internals/uid': 144 }],
|
|
4244
|
+
161: [function (require, module, exports) {
|
|
4059
4245
|
'use strict'
|
|
4060
4246
|
var $ = require('../internals/export')
|
|
4061
4247
|
var IS_PURE = require('../internals/is-pure')
|
|
@@ -4171,8 +4357,8 @@
|
|
|
4171
4357
|
|
|
4172
4358
|
if (IS_PURE && PureNumberNamespace) copyConstructorProperties(path[NUMBER], PureNumberNamespace)
|
|
4173
4359
|
if (FORCED || IS_PURE) copyConstructorProperties(path[NUMBER], NativeNumber)
|
|
4174
|
-
}, { '../internals/descriptors':
|
|
4175
|
-
|
|
4360
|
+
}, { '../internals/descriptors': 33, '../internals/export': 41, '../internals/fails': 42, '../internals/function-uncurry-this': 52, '../internals/global-this': 59, '../internals/has-own-property': 60, '../internals/inherit-if-required': 65, '../internals/is-forced': 73, '../internals/is-pure': 77, '../internals/is-symbol': 80, '../internals/object-define-property': 94, '../internals/object-get-own-property-descriptor': 95, '../internals/object-get-own-property-names': 97, '../internals/object-is-prototype-of': 101, '../internals/path': 110, '../internals/string-trim': 129, '../internals/this-number-value': 133, '../internals/to-primitive': 139 }],
|
|
4361
|
+
162: [function (require, module, exports) {
|
|
4176
4362
|
'use strict'
|
|
4177
4363
|
var $ = require('../internals/export')
|
|
4178
4364
|
var DESCRIPTORS = require('../internals/descriptors')
|
|
@@ -4184,8 +4370,8 @@
|
|
|
4184
4370
|
$({ target: 'Object', stat: true, forced: Object.defineProperty !== defineProperty, sham: !DESCRIPTORS }, {
|
|
4185
4371
|
defineProperty: defineProperty
|
|
4186
4372
|
})
|
|
4187
|
-
}, { '../internals/descriptors':
|
|
4188
|
-
|
|
4373
|
+
}, { '../internals/descriptors': 33, '../internals/export': 41, '../internals/object-define-property': 94 }],
|
|
4374
|
+
163: [function (require, module, exports) {
|
|
4189
4375
|
'use strict'
|
|
4190
4376
|
var $ = require('../internals/export')
|
|
4191
4377
|
var NATIVE_SYMBOL = require('../internals/symbol-constructor-detection')
|
|
@@ -4205,8 +4391,8 @@
|
|
|
4205
4391
|
return $getOwnPropertySymbols ? $getOwnPropertySymbols(toObject(it)) : []
|
|
4206
4392
|
}
|
|
4207
4393
|
})
|
|
4208
|
-
}, { '../internals/export':
|
|
4209
|
-
|
|
4394
|
+
}, { '../internals/export': 41, '../internals/fails': 42, '../internals/object-get-own-property-symbols': 98, '../internals/symbol-constructor-detection': 130, '../internals/to-object': 138 }],
|
|
4395
|
+
164: [function (require, module, exports) {
|
|
4210
4396
|
'use strict'
|
|
4211
4397
|
var TO_STRING_TAG_SUPPORT = require('../internals/to-string-tag-support')
|
|
4212
4398
|
var defineBuiltIn = require('../internals/define-built-in')
|
|
@@ -4217,8 +4403,8 @@
|
|
|
4217
4403
|
if (!TO_STRING_TAG_SUPPORT) {
|
|
4218
4404
|
defineBuiltIn(Object.prototype, 'toString', toString, { unsafe: true })
|
|
4219
4405
|
}
|
|
4220
|
-
}, { '../internals/define-built-in':
|
|
4221
|
-
|
|
4406
|
+
}, { '../internals/define-built-in': 30, '../internals/object-to-string': 106, '../internals/to-string-tag-support': 141 }],
|
|
4407
|
+
165: [function (require, module, exports) {
|
|
4222
4408
|
'use strict'
|
|
4223
4409
|
var DESCRIPTORS = require('../internals/descriptors')
|
|
4224
4410
|
var globalThis = require('../internals/global-this')
|
|
@@ -4267,7 +4453,7 @@
|
|
|
4267
4453
|
(!CORRECT_NEW || MISSED_STICKY || UNSUPPORTED_DOT_ALL || UNSUPPORTED_NCG || fails(function () {
|
|
4268
4454
|
re2[MATCH] = false
|
|
4269
4455
|
// RegExp constructor can alter flags and IsRegExp works correct with @@match
|
|
4270
|
-
// eslint-disable-next-line
|
|
4456
|
+
// eslint-disable-next-line sonarjs/inconsistent-function-call -- required for testing
|
|
4271
4457
|
return NativeRegExp(re1) !== re1 || NativeRegExp(re2) === re2 || String(NativeRegExp(re1, 'i')) !== '/a/i'
|
|
4272
4458
|
}))
|
|
4273
4459
|
|
|
@@ -4277,7 +4463,7 @@
|
|
|
4277
4463
|
var result = ''
|
|
4278
4464
|
var brackets = false
|
|
4279
4465
|
var chr
|
|
4280
|
-
for (; index
|
|
4466
|
+
for (; index < length; index++) {
|
|
4281
4467
|
chr = charAt(string, index)
|
|
4282
4468
|
if (chr === '\\') {
|
|
4283
4469
|
result += chr + charAt(string, ++index)
|
|
@@ -4306,10 +4492,15 @@
|
|
|
4306
4492
|
var groupid = 0
|
|
4307
4493
|
var groupname = ''
|
|
4308
4494
|
var chr
|
|
4309
|
-
for (; index
|
|
4495
|
+
for (; index < length; index++) {
|
|
4310
4496
|
chr = charAt(string, index)
|
|
4311
4497
|
if (chr === '\\') {
|
|
4312
4498
|
chr += charAt(string, ++index)
|
|
4499
|
+
// use `\x5c` for escaped backslash to avoid corruption by `\k<name>` to `\N` replacement below
|
|
4500
|
+
if (!ncg && charAt(chr, 1) === '\\') {
|
|
4501
|
+
result += '\\x5c'
|
|
4502
|
+
continue
|
|
4503
|
+
}
|
|
4313
4504
|
} else if (chr === ']') {
|
|
4314
4505
|
brackets = false
|
|
4315
4506
|
} else if (!brackets) {
|
|
@@ -4319,15 +4510,13 @@
|
|
|
4319
4510
|
break
|
|
4320
4511
|
case chr === '(':
|
|
4321
4512
|
result += chr
|
|
4322
|
-
// ignore non-capturing groups
|
|
4323
|
-
if (stringSlice(string, index + 1, index + 3) === '?:') {
|
|
4324
|
-
continue
|
|
4325
|
-
}
|
|
4326
4513
|
if (exec(IS_NCG, stringSlice(string, index + 1))) {
|
|
4327
4514
|
index += 2
|
|
4328
4515
|
ncg = true
|
|
4516
|
+
groupid++
|
|
4517
|
+
} else if (charAt(string, index + 1) !== '?') {
|
|
4518
|
+
groupid++
|
|
4329
4519
|
}
|
|
4330
|
-
groupid++
|
|
4331
4520
|
continue
|
|
4332
4521
|
case chr === '>' && ncg:
|
|
4333
4522
|
if (groupname === '' || hasOwn(names, groupname)) {
|
|
@@ -4342,6 +4531,14 @@
|
|
|
4342
4531
|
}
|
|
4343
4532
|
if (ncg) groupname += chr
|
|
4344
4533
|
else result += chr
|
|
4534
|
+
}
|
|
4535
|
+
// convert `\k<name>` backreferences to numbered backreferences
|
|
4536
|
+
for (var ni = 0; ni < named.length; ni++) {
|
|
4537
|
+
var backref = '\\k<' + named[ni][0] + '>'
|
|
4538
|
+
var numRef = '\\' + named[ni][1]
|
|
4539
|
+
while (stringIndexOf(result, backref) > -1) {
|
|
4540
|
+
result = replace(result, backref, numRef)
|
|
4541
|
+
}
|
|
4345
4542
|
} return [result, named]
|
|
4346
4543
|
}
|
|
4347
4544
|
|
|
@@ -4420,8 +4617,8 @@
|
|
|
4420
4617
|
|
|
4421
4618
|
// https://tc39.es/ecma262/#sec-get-regexp-@@species
|
|
4422
4619
|
setSpecies('RegExp')
|
|
4423
|
-
}, { '../internals/create-non-enumerable-property':
|
|
4424
|
-
|
|
4620
|
+
}, { '../internals/create-non-enumerable-property': 25, '../internals/define-built-in': 30, '../internals/descriptors': 33, '../internals/fails': 42, '../internals/function-uncurry-this': 52, '../internals/global-this': 59, '../internals/has-own-property': 60, '../internals/inherit-if-required': 65, '../internals/internal-state': 68, '../internals/is-forced': 73, '../internals/is-regexp': 79, '../internals/object-create': 92, '../internals/object-get-own-property-names': 97, '../internals/object-is-prototype-of': 101, '../internals/proxy-accessor': 111, '../internals/regexp-get-flags': 116, '../internals/regexp-sticky-helpers': 117, '../internals/regexp-unsupported-dot-all': 118, '../internals/regexp-unsupported-ncg': 119, '../internals/set-species': 122, '../internals/to-string': 142, '../internals/well-known-symbol': 152 }],
|
|
4621
|
+
166: [function (require, module, exports) {
|
|
4425
4622
|
'use strict'
|
|
4426
4623
|
var $ = require('../internals/export')
|
|
4427
4624
|
var exec = require('../internals/regexp-exec')
|
|
@@ -4431,8 +4628,8 @@
|
|
|
4431
4628
|
$({ target: 'RegExp', proto: true, forced: /./.exec !== exec }, {
|
|
4432
4629
|
exec: exec
|
|
4433
4630
|
})
|
|
4434
|
-
}, { '../internals/export':
|
|
4435
|
-
|
|
4631
|
+
}, { '../internals/export': 41, '../internals/regexp-exec': 113 }],
|
|
4632
|
+
167: [function (require, module, exports) {
|
|
4436
4633
|
'use strict'
|
|
4437
4634
|
var DESCRIPTORS = require('../internals/descriptors')
|
|
4438
4635
|
var MISSED_STICKY = require('../internals/regexp-sticky-helpers').MISSED_STICKY
|
|
@@ -4459,8 +4656,8 @@
|
|
|
4459
4656
|
}
|
|
4460
4657
|
})
|
|
4461
4658
|
}
|
|
4462
|
-
}, { '../internals/classof-raw':
|
|
4463
|
-
|
|
4659
|
+
}, { '../internals/classof-raw': 18, '../internals/define-built-in-accessor': 29, '../internals/descriptors': 33, '../internals/internal-state': 68, '../internals/regexp-sticky-helpers': 117 }],
|
|
4660
|
+
168: [function (require, module, exports) {
|
|
4464
4661
|
'use strict'
|
|
4465
4662
|
var PROPER_FUNCTION_NAME = require('../internals/function-name').PROPER
|
|
4466
4663
|
var defineBuiltIn = require('../internals/define-built-in')
|
|
@@ -4487,8 +4684,8 @@
|
|
|
4487
4684
|
return '/' + pattern + '/' + flags
|
|
4488
4685
|
}, { unsafe: true })
|
|
4489
4686
|
}
|
|
4490
|
-
}, { '../internals/an-object': 8, '../internals/define-built-in':
|
|
4491
|
-
|
|
4687
|
+
}, { '../internals/an-object': 8, '../internals/define-built-in': 30, '../internals/fails': 42, '../internals/function-name': 49, '../internals/regexp-get-flags': 116, '../internals/to-string': 142 }],
|
|
4688
|
+
169: [function (require, module, exports) {
|
|
4492
4689
|
'use strict'
|
|
4493
4690
|
var charAt = require('../internals/string-multibyte').charAt
|
|
4494
4691
|
var toString = require('../internals/to-string')
|
|
@@ -4520,8 +4717,8 @@
|
|
|
4520
4717
|
state.index += point.length
|
|
4521
4718
|
return createIterResultObject(point, false)
|
|
4522
4719
|
})
|
|
4523
|
-
}, { '../internals/create-iter-result-object':
|
|
4524
|
-
|
|
4720
|
+
}, { '../internals/create-iter-result-object': 24, '../internals/internal-state': 68, '../internals/iterator-define': 84, '../internals/string-multibyte': 127, '../internals/to-string': 142 }],
|
|
4721
|
+
170: [function (require, module, exports) {
|
|
4525
4722
|
'use strict'
|
|
4526
4723
|
var apply = require('../internals/function-apply')
|
|
4527
4724
|
var call = require('../internals/function-call')
|
|
@@ -4530,7 +4727,7 @@
|
|
|
4530
4727
|
var fails = require('../internals/fails')
|
|
4531
4728
|
var anObject = require('../internals/an-object')
|
|
4532
4729
|
var isCallable = require('../internals/is-callable')
|
|
4533
|
-
var
|
|
4730
|
+
var isObject = require('../internals/is-object')
|
|
4534
4731
|
var toIntegerOrInfinity = require('../internals/to-integer-or-infinity')
|
|
4535
4732
|
var toLength = require('../internals/to-length')
|
|
4536
4733
|
var toString = require('../internals/to-string')
|
|
@@ -4538,6 +4735,7 @@
|
|
|
4538
4735
|
var advanceStringIndex = require('../internals/advance-string-index')
|
|
4539
4736
|
var getMethod = require('../internals/get-method')
|
|
4540
4737
|
var getSubstitution = require('../internals/get-substitution')
|
|
4738
|
+
var getRegExpFlags = require('../internals/regexp-get-flags')
|
|
4541
4739
|
var regExpExec = require('../internals/regexp-exec-abstract')
|
|
4542
4740
|
var wellKnownSymbol = require('../internals/well-known-symbol')
|
|
4543
4741
|
|
|
@@ -4588,7 +4786,7 @@
|
|
|
4588
4786
|
// https://tc39.es/ecma262/#sec-string.prototype.replace
|
|
4589
4787
|
function replace (searchValue, replaceValue) {
|
|
4590
4788
|
var O = requireObjectCoercible(this)
|
|
4591
|
-
var replacer =
|
|
4789
|
+
var replacer = isObject(searchValue) ? getMethod(searchValue, REPLACE) : undefined
|
|
4592
4790
|
return replacer
|
|
4593
4791
|
? call(replacer, searchValue, O, replaceValue)
|
|
4594
4792
|
: call(nativeReplace, toString(O), searchValue, replaceValue)
|
|
@@ -4599,22 +4797,24 @@
|
|
|
4599
4797
|
var rx = anObject(this)
|
|
4600
4798
|
var S = toString(string)
|
|
4601
4799
|
|
|
4800
|
+
var functionalReplace = isCallable(replaceValue)
|
|
4801
|
+
if (!functionalReplace) replaceValue = toString(replaceValue)
|
|
4802
|
+
var flags = toString(getRegExpFlags(rx))
|
|
4803
|
+
|
|
4602
4804
|
if (
|
|
4603
4805
|
typeof replaceValue === 'string' &&
|
|
4604
|
-
stringIndexOf(replaceValue, UNSAFE_SUBSTITUTE)
|
|
4605
|
-
stringIndexOf(replaceValue, '$<')
|
|
4806
|
+
!~stringIndexOf(replaceValue, UNSAFE_SUBSTITUTE) &&
|
|
4807
|
+
!~stringIndexOf(replaceValue, '$<') &&
|
|
4808
|
+
!~stringIndexOf(flags, 'y')
|
|
4606
4809
|
) {
|
|
4607
4810
|
var res = maybeCallNative(nativeReplace, rx, S, replaceValue)
|
|
4608
4811
|
if (res.done) return res.value
|
|
4609
4812
|
}
|
|
4610
4813
|
|
|
4611
|
-
var
|
|
4612
|
-
if (!functionalReplace) replaceValue = toString(replaceValue)
|
|
4613
|
-
|
|
4614
|
-
var global = rx.global
|
|
4814
|
+
var global = !!~stringIndexOf(flags, 'g')
|
|
4615
4815
|
var fullUnicode
|
|
4616
4816
|
if (global) {
|
|
4617
|
-
fullUnicode =
|
|
4817
|
+
fullUnicode = !!~stringIndexOf(flags, 'u') || !!~stringIndexOf(flags, 'v')
|
|
4618
4818
|
rx.lastIndex = 0
|
|
4619
4819
|
}
|
|
4620
4820
|
|
|
@@ -4664,8 +4864,8 @@
|
|
|
4664
4864
|
}
|
|
4665
4865
|
]
|
|
4666
4866
|
}, !REPLACE_SUPPORTS_NAMED_GROUPS || !REPLACE_KEEPS_$0 || REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE)
|
|
4667
|
-
}, { '../internals/advance-string-index': 6, '../internals/an-object': 8, '../internals/fails':
|
|
4668
|
-
|
|
4867
|
+
}, { '../internals/advance-string-index': 6, '../internals/an-object': 8, '../internals/fails': 42, '../internals/fix-regexp-well-known-symbol-logic': 43, '../internals/function-apply': 45, '../internals/function-call': 48, '../internals/function-uncurry-this': 52, '../internals/get-method': 57, '../internals/get-substitution': 58, '../internals/is-callable': 71, '../internals/is-object': 75, '../internals/regexp-exec-abstract': 112, '../internals/regexp-get-flags': 116, '../internals/require-object-coercible': 120, '../internals/to-integer-or-infinity': 136, '../internals/to-length': 137, '../internals/to-string': 142, '../internals/well-known-symbol': 152 }],
|
|
4868
|
+
171: [function (require, module, exports) {
|
|
4669
4869
|
'use strict'
|
|
4670
4870
|
var $ = require('../internals/export')
|
|
4671
4871
|
var $trim = require('../internals/string-trim').trim
|
|
@@ -4678,8 +4878,8 @@
|
|
|
4678
4878
|
return $trim(this)
|
|
4679
4879
|
}
|
|
4680
4880
|
})
|
|
4681
|
-
}, { '../internals/export':
|
|
4682
|
-
|
|
4881
|
+
}, { '../internals/export': 41, '../internals/string-trim': 129, '../internals/string-trim-forced': 128 }],
|
|
4882
|
+
172: [function (require, module, exports) {
|
|
4683
4883
|
'use strict'
|
|
4684
4884
|
var $ = require('../internals/export')
|
|
4685
4885
|
var globalThis = require('../internals/global-this')
|
|
@@ -4752,7 +4952,7 @@
|
|
|
4752
4952
|
nativeDefineProperty(O, P, Attributes)
|
|
4753
4953
|
if (ObjectPrototypeDescriptor && O !== ObjectPrototype) {
|
|
4754
4954
|
nativeDefineProperty(ObjectPrototype, P, ObjectPrototypeDescriptor)
|
|
4755
|
-
}
|
|
4955
|
+
} return O
|
|
4756
4956
|
}
|
|
4757
4957
|
|
|
4758
4958
|
var setSymbolDescriptor = DESCRIPTORS && fails(function () {
|
|
@@ -4778,7 +4978,8 @@
|
|
|
4778
4978
|
var key = toPropertyKey(P)
|
|
4779
4979
|
anObject(Attributes)
|
|
4780
4980
|
if (hasOwn(AllSymbols, key)) {
|
|
4781
|
-
|
|
4981
|
+
// first definition - default non-enumerable; redefinition - preserve existing state
|
|
4982
|
+
if (!('enumerable' in Attributes) ? !hasOwn(O, key) || (hasOwn(O, HIDDEN) && O[HIDDEN][key]) : !Attributes.enumerable) {
|
|
4782
4983
|
if (!hasOwn(O, HIDDEN)) nativeDefineProperty(O, HIDDEN, createPropertyDescriptor(1, nativeObjectCreate(null)))
|
|
4783
4984
|
O[HIDDEN][key] = true
|
|
4784
4985
|
} else {
|
|
@@ -4887,7 +5088,7 @@
|
|
|
4887
5088
|
}
|
|
4888
5089
|
|
|
4889
5090
|
if (DESCRIPTORS) {
|
|
4890
|
-
// https://
|
|
5091
|
+
// https://tc39.es/ecma262/#sec-symbol.prototype.description
|
|
4891
5092
|
defineBuiltInAccessor(SymbolPrototype, 'description', {
|
|
4892
5093
|
configurable: true,
|
|
4893
5094
|
get: function description () {
|
|
@@ -4943,14 +5144,15 @@
|
|
|
4943
5144
|
setToStringTag($Symbol, SYMBOL)
|
|
4944
5145
|
|
|
4945
5146
|
hiddenKeys[HIDDEN] = true
|
|
4946
|
-
}, { '../internals/an-object': 8, '../internals/array-iteration': 12, '../internals/create-property-descriptor':
|
|
4947
|
-
|
|
5147
|
+
}, { '../internals/an-object': 8, '../internals/array-iteration': 12, '../internals/create-property-descriptor': 26, '../internals/define-built-in': 30, '../internals/define-built-in-accessor': 29, '../internals/descriptors': 33, '../internals/export': 41, '../internals/fails': 42, '../internals/function-call': 48, '../internals/function-uncurry-this': 52, '../internals/global-this': 59, '../internals/has-own-property': 60, '../internals/hidden-keys': 61, '../internals/internal-state': 68, '../internals/is-pure': 77, '../internals/object-create': 92, '../internals/object-define-properties': 93, '../internals/object-define-property': 94, '../internals/object-get-own-property-descriptor': 95, '../internals/object-get-own-property-names': 97, '../internals/object-get-own-property-names-external': 96, '../internals/object-get-own-property-symbols': 98, '../internals/object-is-prototype-of': 101, '../internals/object-keys': 103, '../internals/object-property-is-enumerable': 104, '../internals/set-to-string-tag': 123, '../internals/shared': 126, '../internals/shared-key': 124, '../internals/symbol-constructor-detection': 130, '../internals/symbol-define-to-primitive': 131, '../internals/to-indexed-object': 135, '../internals/to-property-key': 140, '../internals/to-string': 142, '../internals/uid': 144, '../internals/well-known-symbol': 152, '../internals/well-known-symbol-define': 150, '../internals/well-known-symbol-wrapped': 151 }],
|
|
5148
|
+
173: [function (require, module, exports) {
|
|
4948
5149
|
// `Symbol.prototype.description` getter
|
|
4949
5150
|
// https://tc39.es/ecma262/#sec-symbol.prototype.description
|
|
4950
5151
|
'use strict'
|
|
4951
5152
|
var $ = require('../internals/export')
|
|
4952
5153
|
var DESCRIPTORS = require('../internals/descriptors')
|
|
4953
5154
|
var globalThis = require('../internals/global-this')
|
|
5155
|
+
var call = require('../internals/function-call')
|
|
4954
5156
|
var uncurryThis = require('../internals/function-uncurry-this')
|
|
4955
5157
|
var hasOwn = require('../internals/has-own-property')
|
|
4956
5158
|
var isCallable = require('../internals/is-callable')
|
|
@@ -4971,7 +5173,7 @@
|
|
|
4971
5173
|
var SymbolWrapper = function Symbol () {
|
|
4972
5174
|
var description = arguments.length < 1 || arguments[0] === undefined ? undefined : toString(arguments[0])
|
|
4973
5175
|
var result = isPrototypeOf(SymbolPrototype, this)
|
|
4974
|
-
// eslint-disable-next-line
|
|
5176
|
+
// eslint-disable-next-line sonarjs/inconsistent-function-call -- ok
|
|
4975
5177
|
? new NativeSymbol(description)
|
|
4976
5178
|
// in Edge 13, String(Symbol(undefined)) === 'Symbol(undefined)'
|
|
4977
5179
|
: description === undefined ? NativeSymbol() : NativeSymbol(description)
|
|
@@ -4980,6 +5182,16 @@
|
|
|
4980
5182
|
}
|
|
4981
5183
|
|
|
4982
5184
|
copyConstructorProperties(SymbolWrapper, NativeSymbol)
|
|
5185
|
+
// wrap Symbol.for for correct handling of empty string descriptions
|
|
5186
|
+
var nativeFor = SymbolWrapper.for
|
|
5187
|
+
SymbolWrapper.for = {
|
|
5188
|
+
for: function (key) {
|
|
5189
|
+
var stringKey = toString(key)
|
|
5190
|
+
var symbol = call(nativeFor, this, stringKey)
|
|
5191
|
+
if (stringKey === '') EmptyStringDescriptionStore[symbol] = true
|
|
5192
|
+
return symbol
|
|
5193
|
+
}
|
|
5194
|
+
}.for
|
|
4983
5195
|
SymbolWrapper.prototype = SymbolPrototype
|
|
4984
5196
|
SymbolPrototype.constructor = SymbolWrapper
|
|
4985
5197
|
|
|
@@ -5005,8 +5217,8 @@
|
|
|
5005
5217
|
Symbol: SymbolWrapper
|
|
5006
5218
|
})
|
|
5007
5219
|
}
|
|
5008
|
-
}, { '../internals/copy-constructor-properties':
|
|
5009
|
-
|
|
5220
|
+
}, { '../internals/copy-constructor-properties': 22, '../internals/define-built-in-accessor': 29, '../internals/descriptors': 33, '../internals/export': 41, '../internals/function-call': 48, '../internals/function-uncurry-this': 52, '../internals/global-this': 59, '../internals/has-own-property': 60, '../internals/is-callable': 71, '../internals/object-is-prototype-of': 101, '../internals/to-string': 142 }],
|
|
5221
|
+
174: [function (require, module, exports) {
|
|
5010
5222
|
'use strict'
|
|
5011
5223
|
var $ = require('../internals/export')
|
|
5012
5224
|
var getBuiltIn = require('../internals/get-built-in')
|
|
@@ -5030,16 +5242,16 @@
|
|
|
5030
5242
|
return symbol
|
|
5031
5243
|
}
|
|
5032
5244
|
})
|
|
5033
|
-
}, { '../internals/export':
|
|
5034
|
-
|
|
5245
|
+
}, { '../internals/export': 41, '../internals/get-built-in': 53, '../internals/has-own-property': 60, '../internals/shared': 126, '../internals/symbol-registry-detection': 132, '../internals/to-string': 142 }],
|
|
5246
|
+
175: [function (require, module, exports) {
|
|
5035
5247
|
'use strict'
|
|
5036
5248
|
var defineWellKnownSymbol = require('../internals/well-known-symbol-define')
|
|
5037
5249
|
|
|
5038
5250
|
// `Symbol.iterator` well-known symbol
|
|
5039
5251
|
// https://tc39.es/ecma262/#sec-symbol.iterator
|
|
5040
5252
|
defineWellKnownSymbol('iterator')
|
|
5041
|
-
}, { '../internals/well-known-symbol-define':
|
|
5042
|
-
|
|
5253
|
+
}, { '../internals/well-known-symbol-define': 150 }],
|
|
5254
|
+
176: [function (require, module, exports) {
|
|
5043
5255
|
'use strict'
|
|
5044
5256
|
// TODO: Remove this module from `core-js@4` since it's split to modules listed below
|
|
5045
5257
|
require('../modules/es.symbol.constructor')
|
|
@@ -5047,8 +5259,8 @@
|
|
|
5047
5259
|
require('../modules/es.symbol.key-for')
|
|
5048
5260
|
require('../modules/es.json.stringify')
|
|
5049
5261
|
require('../modules/es.object.get-own-property-symbols')
|
|
5050
|
-
}, { '../modules/es.json.stringify':
|
|
5051
|
-
|
|
5262
|
+
}, { '../modules/es.json.stringify': 160, '../modules/es.object.get-own-property-symbols': 163, '../modules/es.symbol.constructor': 172, '../modules/es.symbol.for': 174, '../modules/es.symbol.key-for': 177 }],
|
|
5263
|
+
177: [function (require, module, exports) {
|
|
5052
5264
|
'use strict'
|
|
5053
5265
|
var $ = require('../internals/export')
|
|
5054
5266
|
var hasOwn = require('../internals/has-own-property')
|
|
@@ -5067,8 +5279,8 @@
|
|
|
5067
5279
|
if (hasOwn(SymbolToStringRegistry, sym)) return SymbolToStringRegistry[sym]
|
|
5068
5280
|
}
|
|
5069
5281
|
})
|
|
5070
|
-
}, { '../internals/export':
|
|
5071
|
-
|
|
5282
|
+
}, { '../internals/export': 41, '../internals/has-own-property': 60, '../internals/is-symbol': 80, '../internals/shared': 126, '../internals/symbol-registry-detection': 132, '../internals/try-to-string': 143 }],
|
|
5283
|
+
178: [function (require, module, exports) {
|
|
5072
5284
|
'use strict'
|
|
5073
5285
|
var defineWellKnownSymbol = require('../internals/well-known-symbol-define')
|
|
5074
5286
|
var defineSymbolToPrimitive = require('../internals/symbol-define-to-primitive')
|
|
@@ -5080,8 +5292,8 @@
|
|
|
5080
5292
|
// `Symbol.prototype[@@toPrimitive]` method
|
|
5081
5293
|
// https://tc39.es/ecma262/#sec-symbol.prototype-@@toprimitive
|
|
5082
5294
|
defineSymbolToPrimitive()
|
|
5083
|
-
}, { '../internals/symbol-define-to-primitive':
|
|
5084
|
-
|
|
5295
|
+
}, { '../internals/symbol-define-to-primitive': 131, '../internals/well-known-symbol-define': 150 }],
|
|
5296
|
+
179: [function (require, module, exports) {
|
|
5085
5297
|
'use strict'
|
|
5086
5298
|
var FREEZING = require('../internals/freezing')
|
|
5087
5299
|
var globalThis = require('../internals/global-this')
|
|
@@ -5190,115 +5402,23 @@
|
|
|
5190
5402
|
})
|
|
5191
5403
|
}
|
|
5192
5404
|
}
|
|
5193
|
-
}, { '../internals/collection':
|
|
5194
|
-
|
|
5405
|
+
}, { '../internals/collection': 21, '../internals/collection-weak': 20, '../internals/define-built-ins': 31, '../internals/fails': 42, '../internals/freezing': 44, '../internals/function-uncurry-this': 52, '../internals/global-this': 59, '../internals/internal-metadata': 67, '../internals/internal-state': 68, '../internals/is-object': 75, '../internals/weak-map-basic-detection': 148 }],
|
|
5406
|
+
180: [function (require, module, exports) {
|
|
5195
5407
|
'use strict'
|
|
5196
5408
|
// TODO: Remove this module from `core-js@4` since it's replaced to module below
|
|
5197
5409
|
require('../modules/es.weak-map.constructor')
|
|
5198
|
-
}, { '../modules/es.weak-map.constructor':
|
|
5199
|
-
|
|
5200
|
-
'use strict'
|
|
5201
|
-
var $ = require('../internals/export')
|
|
5202
|
-
var $forEach = require('../internals/async-iterator-iteration').forEach
|
|
5203
|
-
|
|
5204
|
-
// `AsyncIterator.prototype.forEach` method
|
|
5205
|
-
// https://github.com/tc39/proposal-async-iterator-helpers
|
|
5206
|
-
$({ target: 'AsyncIterator', proto: true, real: true }, {
|
|
5207
|
-
forEach: function forEach (fn) {
|
|
5208
|
-
return $forEach(this, fn)
|
|
5209
|
-
}
|
|
5210
|
-
})
|
|
5211
|
-
}, { '../internals/async-iterator-iteration': 18, '../internals/export': 44 }],
|
|
5212
|
-
179: [function (require, module, exports) {
|
|
5410
|
+
}, { '../modules/es.weak-map.constructor': 179 }],
|
|
5411
|
+
181: [function (require, module, exports) {
|
|
5213
5412
|
'use strict'
|
|
5214
|
-
|
|
5215
|
-
|
|
5216
|
-
|
|
5217
|
-
|
|
5218
|
-
var isCallable = require('../internals/is-callable')
|
|
5219
|
-
var getPrototypeOf = require('../internals/object-get-prototype-of')
|
|
5220
|
-
var defineBuiltInAccessor = require('../internals/define-built-in-accessor')
|
|
5221
|
-
var createProperty = require('../internals/create-property')
|
|
5222
|
-
var fails = require('../internals/fails')
|
|
5223
|
-
var hasOwn = require('../internals/has-own-property')
|
|
5224
|
-
var wellKnownSymbol = require('../internals/well-known-symbol')
|
|
5225
|
-
var IteratorPrototype = require('../internals/iterators-core').IteratorPrototype
|
|
5226
|
-
var DESCRIPTORS = require('../internals/descriptors')
|
|
5227
|
-
var IS_PURE = require('../internals/is-pure')
|
|
5228
|
-
|
|
5229
|
-
var CONSTRUCTOR = 'constructor'
|
|
5230
|
-
var ITERATOR = 'Iterator'
|
|
5231
|
-
var TO_STRING_TAG = wellKnownSymbol('toStringTag')
|
|
5232
|
-
|
|
5233
|
-
var $TypeError = TypeError
|
|
5234
|
-
var NativeIterator = globalThis[ITERATOR]
|
|
5235
|
-
|
|
5236
|
-
// FF56- have non-standard global helper `Iterator`
|
|
5237
|
-
var FORCED = IS_PURE ||
|
|
5238
|
-
!isCallable(NativeIterator) ||
|
|
5239
|
-
NativeIterator.prototype !== IteratorPrototype ||
|
|
5240
|
-
// FF44- non-standard `Iterator` passes previous tests
|
|
5241
|
-
!fails(function () { NativeIterator({}) })
|
|
5242
|
-
|
|
5243
|
-
var IteratorConstructor = function Iterator () {
|
|
5244
|
-
anInstance(this, IteratorPrototype)
|
|
5245
|
-
if (getPrototypeOf(this) === IteratorPrototype) throw new $TypeError('Abstract class Iterator not directly constructable')
|
|
5246
|
-
}
|
|
5247
|
-
|
|
5248
|
-
var defineIteratorPrototypeAccessor = function (key, value) {
|
|
5249
|
-
if (DESCRIPTORS) {
|
|
5250
|
-
defineBuiltInAccessor(IteratorPrototype, key, {
|
|
5251
|
-
configurable: true,
|
|
5252
|
-
get: function () {
|
|
5253
|
-
return value
|
|
5254
|
-
},
|
|
5255
|
-
set: function (replacement) {
|
|
5256
|
-
anObject(this)
|
|
5257
|
-
if (this === IteratorPrototype) throw new $TypeError("You can't redefine this property")
|
|
5258
|
-
if (hasOwn(this, key)) this[key] = replacement
|
|
5259
|
-
else createProperty(this, key, replacement)
|
|
5260
|
-
}
|
|
5261
|
-
})
|
|
5262
|
-
} else IteratorPrototype[key] = value
|
|
5263
|
-
}
|
|
5264
|
-
|
|
5265
|
-
if (!hasOwn(IteratorPrototype, TO_STRING_TAG)) defineIteratorPrototypeAccessor(TO_STRING_TAG, ITERATOR)
|
|
5266
|
-
|
|
5267
|
-
if (FORCED || !hasOwn(IteratorPrototype, CONSTRUCTOR) || IteratorPrototype[CONSTRUCTOR] === Object) {
|
|
5268
|
-
defineIteratorPrototypeAccessor(CONSTRUCTOR, IteratorConstructor)
|
|
5269
|
-
}
|
|
5270
|
-
|
|
5271
|
-
IteratorConstructor.prototype = IteratorPrototype
|
|
5272
|
-
|
|
5273
|
-
// `Iterator` constructor
|
|
5274
|
-
// https://github.com/tc39/proposal-iterator-helpers
|
|
5275
|
-
$({ global: true, constructor: true, forced: FORCED }, {
|
|
5276
|
-
Iterator: IteratorConstructor
|
|
5277
|
-
})
|
|
5278
|
-
}, { '../internals/an-instance': 7, '../internals/an-object': 8, '../internals/create-property': 29, '../internals/define-built-in-accessor': 31, '../internals/descriptors': 35, '../internals/export': 44, '../internals/fails': 45, '../internals/global-this': 63, '../internals/has-own-property': 64, '../internals/is-callable': 75, '../internals/is-pure': 81, '../internals/iterators-core': 88, '../internals/object-get-prototype-of': 100, '../internals/well-known-symbol': 151 }],
|
|
5279
|
-
180: [function (require, module, exports) {
|
|
5413
|
+
// TODO: Remove from `core-js@4`
|
|
5414
|
+
require('../modules/es.iterator.constructor')
|
|
5415
|
+
}, { '../modules/es.iterator.constructor': 158 }],
|
|
5416
|
+
182: [function (require, module, exports) {
|
|
5280
5417
|
'use strict'
|
|
5281
|
-
|
|
5282
|
-
|
|
5283
|
-
|
|
5284
|
-
|
|
5285
|
-
var getIteratorDirect = require('../internals/get-iterator-direct')
|
|
5286
|
-
|
|
5287
|
-
// `Iterator.prototype.forEach` method
|
|
5288
|
-
// https://github.com/tc39/proposal-iterator-helpers
|
|
5289
|
-
$({ target: 'Iterator', proto: true, real: true }, {
|
|
5290
|
-
forEach: function forEach (fn) {
|
|
5291
|
-
anObject(this)
|
|
5292
|
-
aCallable(fn)
|
|
5293
|
-
var record = getIteratorDirect(this)
|
|
5294
|
-
var counter = 0
|
|
5295
|
-
iterate(record, function (value) {
|
|
5296
|
-
fn(value, counter++)
|
|
5297
|
-
}, { IS_RECORD: true })
|
|
5298
|
-
}
|
|
5299
|
-
})
|
|
5300
|
-
}, { '../internals/a-callable': 2, '../internals/an-object': 8, '../internals/export': 44, '../internals/get-iterator-direct': 57, '../internals/iterate': 84 }],
|
|
5301
|
-
181: [function (require, module, exports) {
|
|
5418
|
+
// TODO: Remove from `core-js@4`
|
|
5419
|
+
require('../modules/es.iterator.for-each')
|
|
5420
|
+
}, { '../modules/es.iterator.for-each': 159 }],
|
|
5421
|
+
183: [function (require, module, exports) {
|
|
5302
5422
|
'use strict'
|
|
5303
5423
|
var $ = require('../internals/export')
|
|
5304
5424
|
var aWeakMap = require('../internals/a-weak-map')
|
|
@@ -5317,8 +5437,8 @@
|
|
|
5317
5437
|
} return !!allDeleted
|
|
5318
5438
|
}
|
|
5319
5439
|
})
|
|
5320
|
-
}, { '../internals/a-weak-map': 4, '../internals/export':
|
|
5321
|
-
|
|
5440
|
+
}, { '../internals/a-weak-map': 4, '../internals/export': 41, '../internals/weak-map-helpers': 149 }],
|
|
5441
|
+
184: [function (require, module, exports) {
|
|
5322
5442
|
'use strict'
|
|
5323
5443
|
var globalThis = require('../internals/global-this')
|
|
5324
5444
|
var DOMIterables = require('../internals/dom-iterables')
|
|
@@ -5344,8 +5464,8 @@
|
|
|
5344
5464
|
}
|
|
5345
5465
|
|
|
5346
5466
|
handlePrototype(DOMTokenListPrototype)
|
|
5347
|
-
}, { '../internals/array-for-each': 10, '../internals/create-non-enumerable-property':
|
|
5348
|
-
|
|
5467
|
+
}, { '../internals/array-for-each': 10, '../internals/create-non-enumerable-property': 25, '../internals/dom-iterables': 35, '../internals/dom-token-list-prototype': 36, '../internals/global-this': 59 }],
|
|
5468
|
+
185: [function (require, module, exports) {
|
|
5349
5469
|
'use strict'
|
|
5350
5470
|
var globalThis = require('../internals/global-this')
|
|
5351
5471
|
var DOMIterables = require('../internals/dom-iterables')
|
|
@@ -5389,8 +5509,8 @@
|
|
|
5389
5509
|
}
|
|
5390
5510
|
|
|
5391
5511
|
handlePrototype(DOMTokenListPrototype, 'DOMTokenList')
|
|
5392
|
-
}, { '../internals/create-non-enumerable-property':
|
|
5393
|
-
|
|
5512
|
+
}, { '../internals/create-non-enumerable-property': 25, '../internals/dom-iterables': 35, '../internals/dom-token-list-prototype': 36, '../internals/global-this': 59, '../internals/set-to-string-tag': 123, '../internals/well-known-symbol': 152, '../modules/es.array.iterator': 155 }],
|
|
5513
|
+
186: [function (require, module, exports) {
|
|
5394
5514
|
'use strict'
|
|
5395
5515
|
var $ = require('../internals/export')
|
|
5396
5516
|
var globalThis = require('../internals/global-this')
|
|
@@ -5403,8 +5523,8 @@
|
|
|
5403
5523
|
$({ global: true, bind: true, forced: globalThis.setInterval !== setInterval }, {
|
|
5404
5524
|
setInterval: setInterval
|
|
5405
5525
|
})
|
|
5406
|
-
}, { '../internals/export':
|
|
5407
|
-
|
|
5526
|
+
}, { '../internals/export': 41, '../internals/global-this': 59, '../internals/schedulers-fix': 121 }],
|
|
5527
|
+
187: [function (require, module, exports) {
|
|
5408
5528
|
'use strict'
|
|
5409
5529
|
var $ = require('../internals/export')
|
|
5410
5530
|
var globalThis = require('../internals/global-this')
|
|
@@ -5417,11 +5537,11 @@
|
|
|
5417
5537
|
$({ global: true, bind: true, forced: globalThis.setTimeout !== setTimeout }, {
|
|
5418
5538
|
setTimeout: setTimeout
|
|
5419
5539
|
})
|
|
5420
|
-
}, { '../internals/export':
|
|
5421
|
-
|
|
5540
|
+
}, { '../internals/export': 41, '../internals/global-this': 59, '../internals/schedulers-fix': 121 }],
|
|
5541
|
+
188: [function (require, module, exports) {
|
|
5422
5542
|
'use strict'
|
|
5423
5543
|
// TODO: Remove this module from `core-js@4` since it's split to modules listed below
|
|
5424
5544
|
require('../modules/web.set-interval')
|
|
5425
5545
|
require('../modules/web.set-timeout')
|
|
5426
|
-
}, { '../modules/web.set-interval':
|
|
5546
|
+
}, { '../modules/web.set-interval': 186, '../modules/web.set-timeout': 187 }]
|
|
5427
5547
|
}, {}, [1])
|