collect-your-stuff 2.1.1 → 2.1.2
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/README.md +898 -213
- package/browser/collect-your-stuff.js +677 -648
- package/browser/collect-your-stuff.min.js +1 -1
- package/dist/collections/arrayable/ArrayElement.d.ts +38 -38
- package/dist/collections/arrayable/ArrayElement.js +66 -66
- package/dist/collections/arrayable/Arrayable.d.ts +122 -122
- package/dist/collections/arrayable/Arrayable.js +2 -2
- package/dist/collections/doubly-linked-list/DoubleLinker.d.ts +50 -50
- package/dist/collections/doubly-linked-list/DoubleLinker.js +1 -1
- package/dist/collections/doubly-linked-list/DoublyLinkedList.d.ts +125 -125
- package/dist/collections/doubly-linked-list/DoublyLinkedList.js +3 -3
- package/dist/collections/linked-list/LinkedList.d.ts +126 -126
- package/dist/collections/linked-list/LinkedList.js +3 -3
- package/dist/collections/linked-list/Linker.d.ts +46 -46
- package/dist/collections/linked-list/Linker.js +1 -1
- package/dist/collections/linked-tree-list/LinkedTreeList.d.ts +159 -159
- package/dist/collections/linked-tree-list/LinkedTreeList.js +3 -3
- package/dist/collections/linked-tree-list/TreeLinker.d.ts +71 -71
- package/dist/collections/linked-tree-list/TreeLinker.js +2 -2
- package/dist/collections/queue/Queue.d.ts +59 -59
- package/dist/collections/queue/Queue.js +11 -9
- package/dist/collections/queue/Queueable.d.ts +83 -83
- package/dist/collections/queue/Queueable.js +9 -7
- package/dist/collections/queue/TaskQueue.d.ts +68 -68
- package/dist/collections/queue/TaskQueue.js +2 -2
- package/dist/collections/stack/Stack.d.ts +64 -64
- package/dist/collections/stack/Stack.js +11 -9
- package/dist/collections/stack/Stackable.d.ts +59 -59
- package/dist/collections/stack/Stackable.js +1 -1
- package/dist/collections/stack/TaskStack.d.ts +65 -65
- package/dist/collections/stack/TaskStack.js +2 -2
- package/dist/main.d.ts +68 -68
- package/dist/main.js +1 -1
- package/dist/recipes/ArrayIterator.d.ts +20 -20
- package/dist/recipes/ArrayIterator.js +39 -39
- package/dist/recipes/DoubleLinkerIterator.d.ts +18 -18
- package/dist/recipes/DoubleLinkerIterator.js +33 -33
- package/dist/recipes/IsArrayable.d.ts +105 -105
- package/dist/recipes/IsArrayable.js +5 -5
- package/dist/recipes/IsDoubleLinker.d.ts +14 -14
- package/dist/recipes/IsDoubleLinker.js +5 -5
- package/dist/recipes/IsElement.d.ts +14 -14
- package/dist/recipes/IsElement.js +5 -5
- package/dist/recipes/IsLinker.d.ts +10 -10
- package/dist/recipes/IsLinker.js +5 -5
- package/dist/recipes/IsQueue.d.ts +37 -37
- package/dist/recipes/IsQueue.js +5 -5
- package/dist/recipes/IsStack.d.ts +36 -36
- package/dist/recipes/IsStack.js +5 -5
- package/dist/recipes/IsTree.d.ts +11 -11
- package/dist/recipes/IsTree.js +5 -5
- package/dist/recipes/IsTreeNode.d.ts +29 -29
- package/dist/recipes/IsTreeNode.js +5 -5
- package/dist/recipes/LinkerIterator.d.ts +18 -18
- package/dist/recipes/LinkerIterator.js +33 -33
- package/dist/recipes/Runnable.d.ts +55 -55
- package/dist/recipes/Runnable.js +69 -69
- package/dist/recipes/TreeLinkerIterator.d.ts +20 -20
- package/dist/recipes/TreeLinkerIterator.js +1 -1
- package/dist/recipes/recipes.d.ts +15 -15
- package/dist/recipes/recipes.js +2 -2
- package/dist/services/parseTree.d.ts +9 -9
- package/dist/services/parseTree.js +1 -1
- package/dist/services/parseTreeNext.d.ts +17 -17
- package/dist/services/parseTreeNext.js +42 -42
- package/dist/services/services.d.ts +13 -13
- package/dist/services/services.js +2 -2
- package/package.json +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function () { function r (e, n, t) { function o (i, f) { if (!n[i]) { if (!e[i]) {
|
|
1
|
+
(function () { function r (e, n, t) { function o (i, f) { if (!n[i]) { if (!e[i]) { const c = typeof require === 'function' && require; if (!f && c) return c(i, !0); if (u) return u(i, !0); const a = new Error("Cannot find module '" + i + "'"); throw a.code = 'MODULE_NOT_FOUND', a } const p = n[i] = { exports: {} }; e[i][0].call(p.exports, function (r) { const n = e[i][1][r]; return o(n || r) }, p, p.exports, r, e, n, t) } return n[i].exports } for (var u = typeof require === 'function' && require, i = 0; i < t.length; i++)o(t[i]); return o } return r })()({
|
|
2
2
|
1: [function (require, module, exports) {
|
|
3
3
|
'use strict'
|
|
4
4
|
|
|
@@ -74,8 +74,8 @@
|
|
|
74
74
|
value: true
|
|
75
75
|
})
|
|
76
76
|
exports.Arrayable = void 0
|
|
77
|
-
|
|
78
|
-
|
|
77
|
+
const _ArrayElement = require('./ArrayElement')
|
|
78
|
+
const _ArrayIterator = require('../../recipes/ArrayIterator')
|
|
79
79
|
/**
|
|
80
80
|
* @file arrayable list.
|
|
81
81
|
* @author Joshua Heagle <joshuaheagle@gmail.com>
|
|
@@ -301,7 +301,7 @@
|
|
|
301
301
|
exports.DoubleLinker = void 0
|
|
302
302
|
require('core-js/modules/esnext.iterator.constructor.js')
|
|
303
303
|
require('core-js/modules/esnext.iterator.reduce.js')
|
|
304
|
-
|
|
304
|
+
const _Linker = require('../linked-list/Linker')
|
|
305
305
|
/**
|
|
306
306
|
* DoubleLinker represents a node in a DoublyLinkedList which is chained by next and prev.
|
|
307
307
|
* @extends Linker
|
|
@@ -376,9 +376,9 @@
|
|
|
376
376
|
exports.DoublyLinkedList = void 0
|
|
377
377
|
require('core-js/modules/esnext.iterator.constructor.js')
|
|
378
378
|
require('core-js/modules/esnext.iterator.for-each.js')
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
379
|
+
const _DoubleLinker = require('./DoubleLinker')
|
|
380
|
+
const _DoubleLinkerIterator = require('../../recipes/DoubleLinkerIterator')
|
|
381
|
+
const _LinkedList = require('../linked-list/LinkedList')
|
|
382
382
|
/**
|
|
383
383
|
* @file doubly linked list.
|
|
384
384
|
* @author Joshua Heagle <joshuaheagle@gmail.com>
|
|
@@ -703,9 +703,9 @@
|
|
|
703
703
|
value: true
|
|
704
704
|
})
|
|
705
705
|
exports.LinkedList = void 0
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
706
|
+
const _Linker = require('./Linker')
|
|
707
|
+
const _LinkerIterator = require('../../recipes/LinkerIterator')
|
|
708
|
+
const _Arrayable = require('../arrayable/Arrayable')
|
|
709
709
|
/**
|
|
710
710
|
* LinkedList represents a collection stored as a LinkedList with next references.
|
|
711
711
|
* @extends Arrayable
|
|
@@ -1003,7 +1003,7 @@
|
|
|
1003
1003
|
exports.Linker = void 0
|
|
1004
1004
|
require('core-js/modules/esnext.iterator.constructor.js')
|
|
1005
1005
|
require('core-js/modules/esnext.iterator.reduce.js')
|
|
1006
|
-
|
|
1006
|
+
const _ArrayElement = require('../arrayable/ArrayElement')
|
|
1007
1007
|
/**
|
|
1008
1008
|
* Linker represents a node in a LinkedList.
|
|
1009
1009
|
* @extends ArrayElement
|
|
@@ -1089,9 +1089,9 @@
|
|
|
1089
1089
|
exports.LinkedTreeList = void 0
|
|
1090
1090
|
require('core-js/modules/esnext.iterator.constructor.js')
|
|
1091
1091
|
require('core-js/modules/esnext.iterator.for-each.js')
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1092
|
+
const _TreeLinker = require('./TreeLinker')
|
|
1093
|
+
const _TreeLinkerIterator = require('../../recipes/TreeLinkerIterator')
|
|
1094
|
+
const _DoublyLinkedList = require('../doubly-linked-list/DoublyLinkedList')
|
|
1095
1095
|
/**
|
|
1096
1096
|
* @file doubly linked tree list.
|
|
1097
1097
|
* @author Joshua Heagle <joshuaheagle@gmail.com>
|
|
@@ -1385,8 +1385,8 @@
|
|
|
1385
1385
|
exports.TreeLinker = void 0
|
|
1386
1386
|
require('core-js/modules/esnext.iterator.constructor.js')
|
|
1387
1387
|
require('core-js/modules/esnext.iterator.map.js')
|
|
1388
|
-
|
|
1389
|
-
|
|
1388
|
+
const _DoubleLinker = require('../doubly-linked-list/DoubleLinker')
|
|
1389
|
+
const _LinkedTreeList = require('./LinkedTreeList')
|
|
1390
1390
|
/**
|
|
1391
1391
|
* TreeLinker represents a node in a LinkedTreeList having a parent (or root) and child nodes.
|
|
1392
1392
|
* @extends DoubleLinker
|
|
@@ -1481,8 +1481,8 @@
|
|
|
1481
1481
|
exports.Queue = void 0
|
|
1482
1482
|
require('core-js/modules/esnext.iterator.constructor.js')
|
|
1483
1483
|
require('core-js/modules/esnext.iterator.for-each.js')
|
|
1484
|
-
|
|
1485
|
-
|
|
1484
|
+
const _LinkedList = require('../linked-list/LinkedList')
|
|
1485
|
+
const _Linker = require('../linked-list/Linker')
|
|
1486
1486
|
/**
|
|
1487
1487
|
* @file queue
|
|
1488
1488
|
* @author Joshua Heagle <joshuaheagle@gmail.com>
|
|
@@ -1568,13 +1568,15 @@
|
|
|
1568
1568
|
return {
|
|
1569
1569
|
next: () => {
|
|
1570
1570
|
const result = linkers.next()
|
|
1571
|
-
return result.done
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1571
|
+
return result.done
|
|
1572
|
+
? {
|
|
1573
|
+
done: true,
|
|
1574
|
+
value: undefined
|
|
1575
|
+
}
|
|
1576
|
+
: {
|
|
1577
|
+
done: false,
|
|
1578
|
+
value: result.value.data
|
|
1579
|
+
}
|
|
1578
1580
|
}
|
|
1579
1581
|
}
|
|
1580
1582
|
}
|
|
@@ -1600,7 +1602,7 @@
|
|
|
1600
1602
|
value: true
|
|
1601
1603
|
})
|
|
1602
1604
|
exports.Queueable = void 0
|
|
1603
|
-
|
|
1605
|
+
const _Linker = require('../linked-list/Linker')
|
|
1604
1606
|
/**
|
|
1605
1607
|
* Queueable represents a runnable entry in a queue.
|
|
1606
1608
|
* @extends Linker
|
|
@@ -1652,9 +1654,11 @@
|
|
|
1652
1654
|
if (typeof this.data === 'function') {
|
|
1653
1655
|
return this.data
|
|
1654
1656
|
}
|
|
1655
|
-
return complete => typeof complete === 'function'
|
|
1656
|
-
|
|
1657
|
-
|
|
1657
|
+
return complete => typeof complete === 'function'
|
|
1658
|
+
? complete({
|
|
1659
|
+
context: this.data
|
|
1660
|
+
}).context
|
|
1661
|
+
: this.data
|
|
1658
1662
|
}
|
|
1659
1663
|
|
|
1660
1664
|
/**
|
|
@@ -1673,9 +1677,9 @@
|
|
|
1673
1677
|
this.complete = true
|
|
1674
1678
|
this.running = false
|
|
1675
1679
|
return {
|
|
1676
|
-
success
|
|
1677
|
-
error
|
|
1678
|
-
context
|
|
1680
|
+
success,
|
|
1681
|
+
error,
|
|
1682
|
+
context
|
|
1679
1683
|
}
|
|
1680
1684
|
}
|
|
1681
1685
|
|
|
@@ -1748,8 +1752,8 @@
|
|
|
1748
1752
|
value: true
|
|
1749
1753
|
})
|
|
1750
1754
|
exports.TaskQueue = void 0
|
|
1751
|
-
|
|
1752
|
-
|
|
1755
|
+
const _Queueable = require('./Queueable')
|
|
1756
|
+
const _LinkedList = require('../linked-list/LinkedList')
|
|
1753
1757
|
/**
|
|
1754
1758
|
* @file task queue
|
|
1755
1759
|
* @author Joshua Heagle <joshuaheagle@gmail.com>
|
|
@@ -1889,8 +1893,8 @@
|
|
|
1889
1893
|
exports.Stack = void 0
|
|
1890
1894
|
require('core-js/modules/esnext.iterator.constructor.js')
|
|
1891
1895
|
require('core-js/modules/esnext.iterator.for-each.js')
|
|
1892
|
-
|
|
1893
|
-
|
|
1896
|
+
const _LinkedList = require('../linked-list/LinkedList')
|
|
1897
|
+
const _Linker = require('../linked-list/Linker')
|
|
1894
1898
|
/**
|
|
1895
1899
|
* @file stack.
|
|
1896
1900
|
* @author Joshua Heagle <joshuaheagle@gmail.com>
|
|
@@ -1984,13 +1988,15 @@
|
|
|
1984
1988
|
return {
|
|
1985
1989
|
next: () => {
|
|
1986
1990
|
const result = linkers.next()
|
|
1987
|
-
return result.done
|
|
1988
|
-
|
|
1989
|
-
|
|
1990
|
-
|
|
1991
|
-
|
|
1992
|
-
|
|
1993
|
-
|
|
1991
|
+
return result.done
|
|
1992
|
+
? {
|
|
1993
|
+
done: true,
|
|
1994
|
+
value: undefined
|
|
1995
|
+
}
|
|
1996
|
+
: {
|
|
1997
|
+
done: false,
|
|
1998
|
+
value: result.value.data
|
|
1999
|
+
}
|
|
1994
2000
|
}
|
|
1995
2001
|
}
|
|
1996
2002
|
}
|
|
@@ -2016,7 +2022,7 @@
|
|
|
2016
2022
|
value: true
|
|
2017
2023
|
})
|
|
2018
2024
|
exports.Stackable = void 0
|
|
2019
|
-
|
|
2025
|
+
const _Linker = require('../linked-list/Linker')
|
|
2020
2026
|
/**
|
|
2021
2027
|
* Stackable represents a runnable entry in stack.
|
|
2022
2028
|
* @extends Linker
|
|
@@ -2103,8 +2109,8 @@
|
|
|
2103
2109
|
value: true
|
|
2104
2110
|
})
|
|
2105
2111
|
exports.TaskStack = void 0
|
|
2106
|
-
|
|
2107
|
-
|
|
2112
|
+
const _Stackable = require('./Stackable')
|
|
2113
|
+
const _LinkedList = require('../linked-list/LinkedList')
|
|
2108
2114
|
/**
|
|
2109
2115
|
* @file task stack.
|
|
2110
2116
|
* @author Joshua Heagle <joshuaheagle@gmail.com>
|
|
@@ -2363,7 +2369,7 @@
|
|
|
2363
2369
|
recipes: _recipes.recipes,
|
|
2364
2370
|
services: _services.services
|
|
2365
2371
|
}
|
|
2366
|
-
|
|
2372
|
+
const _default = exports.default = collectYourStuff
|
|
2367
2373
|
if (void 0) {
|
|
2368
2374
|
// @ts-ignore
|
|
2369
2375
|
(void 0).collectYourStuff = collectYourStuff
|
|
@@ -2561,7 +2567,7 @@
|
|
|
2561
2567
|
value: true
|
|
2562
2568
|
})
|
|
2563
2569
|
exports.TreeLinkerIterator = void 0
|
|
2564
|
-
|
|
2570
|
+
const _parseTreeNext = require('../services/parseTreeNext')
|
|
2565
2571
|
/**
|
|
2566
2572
|
* Class TreeLinkerIterator returns the next value taking a left-first approach down a tree.
|
|
2567
2573
|
*/
|
|
@@ -2599,8 +2605,8 @@
|
|
|
2599
2605
|
value: true
|
|
2600
2606
|
})
|
|
2601
2607
|
exports.recipes = void 0
|
|
2602
|
-
|
|
2603
|
-
|
|
2608
|
+
const _ArrayIterator = require('./ArrayIterator')
|
|
2609
|
+
const _Runnable = require('./Runnable')
|
|
2604
2610
|
/**
|
|
2605
2611
|
* @file sample classes which follow a pattern (have certain members or methods).
|
|
2606
2612
|
* @author Joshua Heagle <joshuaheagle@gmail.com>
|
|
@@ -2623,7 +2629,7 @@
|
|
|
2623
2629
|
value: true
|
|
2624
2630
|
})
|
|
2625
2631
|
exports.parseTree = void 0
|
|
2626
|
-
|
|
2632
|
+
const _parseTreeNext = require('./parseTreeNext')
|
|
2627
2633
|
/**
|
|
2628
2634
|
* Loop over all the nodes in a tree starting from left and apply a callback for each
|
|
2629
2635
|
* @param {IsArrayable<IsTreeNode>} tree
|
|
@@ -2693,8 +2699,8 @@
|
|
|
2693
2699
|
value: true
|
|
2694
2700
|
})
|
|
2695
2701
|
exports.services = void 0
|
|
2696
|
-
|
|
2697
|
-
|
|
2702
|
+
const _parseTree = require('./parseTree')
|
|
2703
|
+
const _parseTreeNext = require('./parseTreeNext')
|
|
2698
2704
|
/**
|
|
2699
2705
|
* @file some useful resources when working with collections.
|
|
2700
2706
|
* @author Joshua Heagle <joshuaheagle@gmail.com>
|
|
@@ -2712,10 +2718,10 @@
|
|
|
2712
2718
|
}, { './parseTree': 22, './parseTreeNext': 23 }],
|
|
2713
2719
|
25: [function (require, module, exports) {
|
|
2714
2720
|
'use strict'
|
|
2715
|
-
|
|
2716
|
-
|
|
2721
|
+
const isCallable = require('../internals/is-callable')
|
|
2722
|
+
const tryToString = require('../internals/try-to-string')
|
|
2717
2723
|
|
|
2718
|
-
|
|
2724
|
+
const $TypeError = TypeError
|
|
2719
2725
|
|
|
2720
2726
|
// `Assert: IsCallable(argument) is true`
|
|
2721
2727
|
module.exports = function (argument) {
|
|
@@ -2725,9 +2731,9 @@
|
|
|
2725
2731
|
}, { '../internals/is-callable': 69, '../internals/try-to-string': 112 }],
|
|
2726
2732
|
26: [function (require, module, exports) {
|
|
2727
2733
|
'use strict'
|
|
2728
|
-
|
|
2734
|
+
const isPrototypeOf = require('../internals/object-is-prototype-of')
|
|
2729
2735
|
|
|
2730
|
-
|
|
2736
|
+
const $TypeError = TypeError
|
|
2731
2737
|
|
|
2732
2738
|
module.exports = function (it, Prototype) {
|
|
2733
2739
|
if (isPrototypeOf(Prototype, it)) return it
|
|
@@ -2736,10 +2742,10 @@
|
|
|
2736
2742
|
}, { '../internals/object-is-prototype-of': 94 }],
|
|
2737
2743
|
27: [function (require, module, exports) {
|
|
2738
2744
|
'use strict'
|
|
2739
|
-
|
|
2745
|
+
const isObject = require('../internals/is-object')
|
|
2740
2746
|
|
|
2741
|
-
|
|
2742
|
-
|
|
2747
|
+
const $String = String
|
|
2748
|
+
const $TypeError = TypeError
|
|
2743
2749
|
|
|
2744
2750
|
// `Assert: Type(argument) is Object`
|
|
2745
2751
|
module.exports = function (argument) {
|
|
@@ -2749,18 +2755,18 @@
|
|
|
2749
2755
|
}, { '../internals/is-object': 72 }],
|
|
2750
2756
|
28: [function (require, module, exports) {
|
|
2751
2757
|
'use strict'
|
|
2752
|
-
|
|
2753
|
-
|
|
2754
|
-
|
|
2758
|
+
const toIndexedObject = require('../internals/to-indexed-object')
|
|
2759
|
+
const toAbsoluteIndex = require('../internals/to-absolute-index')
|
|
2760
|
+
const lengthOfArrayLike = require('../internals/length-of-array-like')
|
|
2755
2761
|
|
|
2756
2762
|
// `Array.prototype.{ indexOf, includes }` methods implementation
|
|
2757
|
-
|
|
2763
|
+
const createMethod = function (IS_INCLUDES) {
|
|
2758
2764
|
return function ($this, el, fromIndex) {
|
|
2759
|
-
|
|
2760
|
-
|
|
2765
|
+
const O = toIndexedObject($this)
|
|
2766
|
+
const length = lengthOfArrayLike(O)
|
|
2761
2767
|
if (length === 0) return !IS_INCLUDES && -1
|
|
2762
|
-
|
|
2763
|
-
|
|
2768
|
+
let index = toAbsoluteIndex(fromIndex, length)
|
|
2769
|
+
let value
|
|
2764
2770
|
// Array#includes uses SameValueZero equality algorithm
|
|
2765
2771
|
// eslint-disable-next-line no-self-compare -- NaN check
|
|
2766
2772
|
if (IS_INCLUDES && el !== el) {
|
|
@@ -2789,8 +2795,8 @@
|
|
|
2789
2795
|
}, { '../internals/length-of-array-like': 84, '../internals/to-absolute-index': 105, '../internals/to-indexed-object': 106 }],
|
|
2790
2796
|
29: [function (require, module, exports) {
|
|
2791
2797
|
'use strict'
|
|
2792
|
-
|
|
2793
|
-
|
|
2798
|
+
const anObject = require('../internals/an-object')
|
|
2799
|
+
const iteratorClose = require('../internals/iterator-close')
|
|
2794
2800
|
|
|
2795
2801
|
// call something on iterator step with safe closing on error
|
|
2796
2802
|
module.exports = function (iterator, fn, value, ENTRIES) {
|
|
@@ -2803,10 +2809,10 @@
|
|
|
2803
2809
|
}, { '../internals/an-object': 27, '../internals/iterator-close': 78 }],
|
|
2804
2810
|
30: [function (require, module, exports) {
|
|
2805
2811
|
'use strict'
|
|
2806
|
-
|
|
2812
|
+
const uncurryThis = require('../internals/function-uncurry-this')
|
|
2807
2813
|
|
|
2808
|
-
|
|
2809
|
-
|
|
2814
|
+
const toString = uncurryThis({}.toString)
|
|
2815
|
+
const stringSlice = uncurryThis(''.slice)
|
|
2810
2816
|
|
|
2811
2817
|
module.exports = function (it) {
|
|
2812
2818
|
return stringSlice(toString(it), 8, -1)
|
|
@@ -2814,17 +2820,17 @@
|
|
|
2814
2820
|
}, { '../internals/function-uncurry-this': 54 }],
|
|
2815
2821
|
31: [function (require, module, exports) {
|
|
2816
2822
|
'use strict'
|
|
2817
|
-
|
|
2818
|
-
|
|
2819
|
-
|
|
2820
|
-
|
|
2823
|
+
const hasOwn = require('../internals/has-own-property')
|
|
2824
|
+
const ownKeys = require('../internals/own-keys')
|
|
2825
|
+
const getOwnPropertyDescriptorModule = require('../internals/object-get-own-property-descriptor')
|
|
2826
|
+
const definePropertyModule = require('../internals/object-define-property')
|
|
2821
2827
|
|
|
2822
2828
|
module.exports = function (target, source, exceptions) {
|
|
2823
|
-
|
|
2824
|
-
|
|
2825
|
-
|
|
2826
|
-
for (
|
|
2827
|
-
|
|
2829
|
+
const keys = ownKeys(source)
|
|
2830
|
+
const defineProperty = definePropertyModule.f
|
|
2831
|
+
const getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f
|
|
2832
|
+
for (let i = 0; i < keys.length; i++) {
|
|
2833
|
+
const key = keys[i]
|
|
2828
2834
|
if (!hasOwn(target, key) && !(exceptions && hasOwn(exceptions, key))) {
|
|
2829
2835
|
defineProperty(target, key, getOwnPropertyDescriptor(source, key))
|
|
2830
2836
|
}
|
|
@@ -2833,7 +2839,7 @@
|
|
|
2833
2839
|
}, { '../internals/has-own-property': 61, '../internals/object-define-property': 89, '../internals/object-get-own-property-descriptor': 90, '../internals/own-keys': 99 }],
|
|
2834
2840
|
32: [function (require, module, exports) {
|
|
2835
2841
|
'use strict'
|
|
2836
|
-
|
|
2842
|
+
const fails = require('../internals/fails')
|
|
2837
2843
|
|
|
2838
2844
|
module.exports = !fails(function () {
|
|
2839
2845
|
function F () { /* empty */ }
|
|
@@ -2847,21 +2853,23 @@
|
|
|
2847
2853
|
// `CreateIterResultObject` abstract operation
|
|
2848
2854
|
// https://tc39.es/ecma262/#sec-createiterresultobject
|
|
2849
2855
|
module.exports = function (value, done) {
|
|
2850
|
-
return { value
|
|
2856
|
+
return { value, done }
|
|
2851
2857
|
}
|
|
2852
2858
|
}, {}],
|
|
2853
2859
|
34: [function (require, module, exports) {
|
|
2854
2860
|
'use strict'
|
|
2855
|
-
|
|
2856
|
-
|
|
2857
|
-
|
|
2858
|
-
|
|
2859
|
-
module.exports = DESCRIPTORS
|
|
2860
|
-
|
|
2861
|
-
|
|
2862
|
-
|
|
2863
|
-
|
|
2864
|
-
|
|
2861
|
+
const DESCRIPTORS = require('../internals/descriptors')
|
|
2862
|
+
const definePropertyModule = require('../internals/object-define-property')
|
|
2863
|
+
const createPropertyDescriptor = require('../internals/create-property-descriptor')
|
|
2864
|
+
|
|
2865
|
+
module.exports = DESCRIPTORS
|
|
2866
|
+
? function (object, key, value) {
|
|
2867
|
+
return definePropertyModule.f(object, key, createPropertyDescriptor(1, value))
|
|
2868
|
+
}
|
|
2869
|
+
: function (object, key, value) {
|
|
2870
|
+
object[key] = value
|
|
2871
|
+
return object
|
|
2872
|
+
}
|
|
2865
2873
|
}, { '../internals/create-property-descriptor': 35, '../internals/descriptors': 41, '../internals/object-define-property': 89 }],
|
|
2866
2874
|
35: [function (require, module, exports) {
|
|
2867
2875
|
'use strict'
|
|
@@ -2870,15 +2878,15 @@
|
|
|
2870
2878
|
enumerable: !(bitmap & 1),
|
|
2871
2879
|
configurable: !(bitmap & 2),
|
|
2872
2880
|
writable: !(bitmap & 4),
|
|
2873
|
-
value
|
|
2881
|
+
value
|
|
2874
2882
|
}
|
|
2875
2883
|
}
|
|
2876
2884
|
}, {}],
|
|
2877
2885
|
36: [function (require, module, exports) {
|
|
2878
2886
|
'use strict'
|
|
2879
|
-
|
|
2880
|
-
|
|
2881
|
-
|
|
2887
|
+
const DESCRIPTORS = require('../internals/descriptors')
|
|
2888
|
+
const definePropertyModule = require('../internals/object-define-property')
|
|
2889
|
+
const createPropertyDescriptor = require('../internals/create-property-descriptor')
|
|
2882
2890
|
|
|
2883
2891
|
module.exports = function (object, key, value) {
|
|
2884
2892
|
if (DESCRIPTORS) definePropertyModule.f(object, key, createPropertyDescriptor(0, value))
|
|
@@ -2887,8 +2895,8 @@
|
|
|
2887
2895
|
}, { '../internals/create-property-descriptor': 35, '../internals/descriptors': 41, '../internals/object-define-property': 89 }],
|
|
2888
2896
|
37: [function (require, module, exports) {
|
|
2889
2897
|
'use strict'
|
|
2890
|
-
|
|
2891
|
-
|
|
2898
|
+
const makeBuiltIn = require('../internals/make-built-in')
|
|
2899
|
+
const defineProperty = require('../internals/object-define-property')
|
|
2892
2900
|
|
|
2893
2901
|
module.exports = function (target, name, descriptor) {
|
|
2894
2902
|
if (descriptor.get) makeBuiltIn(descriptor.get, name, { getter: true })
|
|
@@ -2898,15 +2906,15 @@
|
|
|
2898
2906
|
}, { '../internals/make-built-in': 85, '../internals/object-define-property': 89 }],
|
|
2899
2907
|
38: [function (require, module, exports) {
|
|
2900
2908
|
'use strict'
|
|
2901
|
-
|
|
2902
|
-
|
|
2903
|
-
|
|
2904
|
-
|
|
2909
|
+
const isCallable = require('../internals/is-callable')
|
|
2910
|
+
const definePropertyModule = require('../internals/object-define-property')
|
|
2911
|
+
const makeBuiltIn = require('../internals/make-built-in')
|
|
2912
|
+
const defineGlobalProperty = require('../internals/define-global-property')
|
|
2905
2913
|
|
|
2906
2914
|
module.exports = function (O, key, value, options) {
|
|
2907
2915
|
if (!options) options = {}
|
|
2908
|
-
|
|
2909
|
-
|
|
2916
|
+
let simple = options.enumerable
|
|
2917
|
+
const name = options.name !== undefined ? options.name : key
|
|
2910
2918
|
if (isCallable(value)) makeBuiltIn(value, name, options)
|
|
2911
2919
|
if (options.global) {
|
|
2912
2920
|
if (simple) O[key] = value
|
|
@@ -2919,7 +2927,7 @@
|
|
|
2919
2927
|
if (simple) O[key] = value
|
|
2920
2928
|
else {
|
|
2921
2929
|
definePropertyModule.f(O, key, {
|
|
2922
|
-
value
|
|
2930
|
+
value,
|
|
2923
2931
|
enumerable: false,
|
|
2924
2932
|
configurable: !options.nonConfigurable,
|
|
2925
2933
|
writable: !options.nonWritable
|
|
@@ -2930,23 +2938,23 @@
|
|
|
2930
2938
|
}, { '../internals/define-global-property': 40, '../internals/is-callable': 69, '../internals/make-built-in': 85, '../internals/object-define-property': 89 }],
|
|
2931
2939
|
39: [function (require, module, exports) {
|
|
2932
2940
|
'use strict'
|
|
2933
|
-
|
|
2941
|
+
const defineBuiltIn = require('../internals/define-built-in')
|
|
2934
2942
|
|
|
2935
2943
|
module.exports = function (target, src, options) {
|
|
2936
|
-
for (
|
|
2944
|
+
for (const key in src) defineBuiltIn(target, key, src[key], options)
|
|
2937
2945
|
return target
|
|
2938
2946
|
}
|
|
2939
2947
|
}, { '../internals/define-built-in': 38 }],
|
|
2940
2948
|
40: [function (require, module, exports) {
|
|
2941
2949
|
'use strict'
|
|
2942
|
-
|
|
2950
|
+
const globalThis = require('../internals/global-this')
|
|
2943
2951
|
|
|
2944
2952
|
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
2945
|
-
|
|
2953
|
+
const defineProperty = Object.defineProperty
|
|
2946
2954
|
|
|
2947
2955
|
module.exports = function (key, value) {
|
|
2948
2956
|
try {
|
|
2949
|
-
defineProperty(globalThis, key, { value
|
|
2957
|
+
defineProperty(globalThis, key, { value, configurable: true, writable: true })
|
|
2950
2958
|
} catch (error) {
|
|
2951
2959
|
globalThis[key] = value
|
|
2952
2960
|
} return value
|
|
@@ -2954,7 +2962,7 @@
|
|
|
2954
2962
|
}, { '../internals/global-this': 60 }],
|
|
2955
2963
|
41: [function (require, module, exports) {
|
|
2956
2964
|
'use strict'
|
|
2957
|
-
|
|
2965
|
+
const fails = require('../internals/fails')
|
|
2958
2966
|
|
|
2959
2967
|
// Detect IE8's incomplete defineProperty implementation
|
|
2960
2968
|
module.exports = !fails(function () {
|
|
@@ -2964,12 +2972,12 @@
|
|
|
2964
2972
|
}, { '../internals/fails': 47 }],
|
|
2965
2973
|
42: [function (require, module, exports) {
|
|
2966
2974
|
'use strict'
|
|
2967
|
-
|
|
2968
|
-
|
|
2975
|
+
const globalThis = require('../internals/global-this')
|
|
2976
|
+
const isObject = require('../internals/is-object')
|
|
2969
2977
|
|
|
2970
|
-
|
|
2978
|
+
const document = globalThis.document
|
|
2971
2979
|
// typeof document.createElement is 'object' in old IE
|
|
2972
|
-
|
|
2980
|
+
const EXISTS = isObject(document) && isObject(document.createElement)
|
|
2973
2981
|
|
|
2974
2982
|
module.exports = function (it) {
|
|
2975
2983
|
return EXISTS ? document.createElement(it) : {}
|
|
@@ -2990,23 +2998,23 @@
|
|
|
2990
2998
|
}, {}],
|
|
2991
2999
|
44: [function (require, module, exports) {
|
|
2992
3000
|
'use strict'
|
|
2993
|
-
|
|
3001
|
+
const globalThis = require('../internals/global-this')
|
|
2994
3002
|
|
|
2995
|
-
|
|
2996
|
-
|
|
3003
|
+
const navigator = globalThis.navigator
|
|
3004
|
+
const userAgent = navigator && navigator.userAgent
|
|
2997
3005
|
|
|
2998
3006
|
module.exports = userAgent ? String(userAgent) : ''
|
|
2999
3007
|
}, { '../internals/global-this': 60 }],
|
|
3000
3008
|
45: [function (require, module, exports) {
|
|
3001
3009
|
'use strict'
|
|
3002
|
-
|
|
3003
|
-
|
|
3010
|
+
const globalThis = require('../internals/global-this')
|
|
3011
|
+
const userAgent = require('../internals/environment-user-agent')
|
|
3004
3012
|
|
|
3005
|
-
|
|
3006
|
-
|
|
3007
|
-
|
|
3008
|
-
|
|
3009
|
-
|
|
3013
|
+
const process = globalThis.process
|
|
3014
|
+
const Deno = globalThis.Deno
|
|
3015
|
+
const versions = process && process.versions || Deno && Deno.version
|
|
3016
|
+
const v8 = versions && versions.v8
|
|
3017
|
+
let match, version
|
|
3010
3018
|
|
|
3011
3019
|
if (v8) {
|
|
3012
3020
|
match = v8.split('.')
|
|
@@ -3029,13 +3037,13 @@
|
|
|
3029
3037
|
}, { '../internals/environment-user-agent': 44, '../internals/global-this': 60 }],
|
|
3030
3038
|
46: [function (require, module, exports) {
|
|
3031
3039
|
'use strict'
|
|
3032
|
-
|
|
3033
|
-
|
|
3034
|
-
|
|
3035
|
-
|
|
3036
|
-
|
|
3037
|
-
|
|
3038
|
-
|
|
3040
|
+
const globalThis = require('../internals/global-this')
|
|
3041
|
+
const getOwnPropertyDescriptor = require('../internals/object-get-own-property-descriptor').f
|
|
3042
|
+
const createNonEnumerableProperty = require('../internals/create-non-enumerable-property')
|
|
3043
|
+
const defineBuiltIn = require('../internals/define-built-in')
|
|
3044
|
+
const defineGlobalProperty = require('../internals/define-global-property')
|
|
3045
|
+
const copyConstructorProperties = require('../internals/copy-constructor-properties')
|
|
3046
|
+
const isForced = require('../internals/is-forced')
|
|
3039
3047
|
|
|
3040
3048
|
/*
|
|
3041
3049
|
options.target - name of the target object
|
|
@@ -3053,10 +3061,10 @@
|
|
|
3053
3061
|
options.name - the .name of the function if it does not match the key
|
|
3054
3062
|
*/
|
|
3055
3063
|
module.exports = function (options, source) {
|
|
3056
|
-
|
|
3057
|
-
|
|
3058
|
-
|
|
3059
|
-
|
|
3064
|
+
const TARGET = options.target
|
|
3065
|
+
const GLOBAL = options.global
|
|
3066
|
+
const STATIC = options.stat
|
|
3067
|
+
let FORCED, target, key, targetProperty, sourceProperty, descriptor
|
|
3060
3068
|
if (GLOBAL) {
|
|
3061
3069
|
target = globalThis
|
|
3062
3070
|
} else if (STATIC) {
|
|
@@ -3098,24 +3106,26 @@
|
|
|
3098
3106
|
}, {}],
|
|
3099
3107
|
48: [function (require, module, exports) {
|
|
3100
3108
|
'use strict'
|
|
3101
|
-
|
|
3109
|
+
const NATIVE_BIND = require('../internals/function-bind-native')
|
|
3102
3110
|
|
|
3103
|
-
|
|
3104
|
-
|
|
3105
|
-
|
|
3111
|
+
const FunctionPrototype = Function.prototype
|
|
3112
|
+
const apply = FunctionPrototype.apply
|
|
3113
|
+
const call = FunctionPrototype.call
|
|
3106
3114
|
|
|
3107
3115
|
// eslint-disable-next-line es/no-function-prototype-bind, es/no-reflect -- safe
|
|
3108
|
-
module.exports = typeof Reflect === 'object' && Reflect.apply || (NATIVE_BIND
|
|
3109
|
-
|
|
3110
|
-
|
|
3116
|
+
module.exports = typeof Reflect === 'object' && Reflect.apply || (NATIVE_BIND
|
|
3117
|
+
? call.bind(apply)
|
|
3118
|
+
: function () {
|
|
3119
|
+
return call.apply(apply, arguments)
|
|
3120
|
+
})
|
|
3111
3121
|
}, { '../internals/function-bind-native': 50 }],
|
|
3112
3122
|
49: [function (require, module, exports) {
|
|
3113
3123
|
'use strict'
|
|
3114
|
-
|
|
3115
|
-
|
|
3116
|
-
|
|
3124
|
+
const uncurryThis = require('../internals/function-uncurry-this-clause')
|
|
3125
|
+
const aCallable = require('../internals/a-callable')
|
|
3126
|
+
const NATIVE_BIND = require('../internals/function-bind-native')
|
|
3117
3127
|
|
|
3118
|
-
|
|
3128
|
+
const bind = uncurryThis(uncurryThis.bind)
|
|
3119
3129
|
|
|
3120
3130
|
// optional / simple context binding
|
|
3121
3131
|
module.exports = function (fn, that) {
|
|
@@ -3127,49 +3137,51 @@
|
|
|
3127
3137
|
}, { '../internals/a-callable': 25, '../internals/function-bind-native': 50, '../internals/function-uncurry-this-clause': 53 }],
|
|
3128
3138
|
50: [function (require, module, exports) {
|
|
3129
3139
|
'use strict'
|
|
3130
|
-
|
|
3140
|
+
const fails = require('../internals/fails')
|
|
3131
3141
|
|
|
3132
3142
|
module.exports = !fails(function () {
|
|
3133
3143
|
// eslint-disable-next-line es/no-function-prototype-bind -- safe
|
|
3134
|
-
|
|
3144
|
+
const test = function () { /* empty */ }.bind()
|
|
3135
3145
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
3136
3146
|
return typeof test !== 'function' || test.hasOwnProperty('prototype')
|
|
3137
3147
|
})
|
|
3138
3148
|
}, { '../internals/fails': 47 }],
|
|
3139
3149
|
51: [function (require, module, exports) {
|
|
3140
3150
|
'use strict'
|
|
3141
|
-
|
|
3151
|
+
const NATIVE_BIND = require('../internals/function-bind-native')
|
|
3142
3152
|
|
|
3143
|
-
|
|
3153
|
+
const call = Function.prototype.call
|
|
3144
3154
|
// eslint-disable-next-line es/no-function-prototype-bind -- safe
|
|
3145
|
-
module.exports = NATIVE_BIND
|
|
3146
|
-
|
|
3147
|
-
|
|
3155
|
+
module.exports = NATIVE_BIND
|
|
3156
|
+
? call.bind(call)
|
|
3157
|
+
: function () {
|
|
3158
|
+
return call.apply(call, arguments)
|
|
3159
|
+
}
|
|
3148
3160
|
}, { '../internals/function-bind-native': 50 }],
|
|
3149
3161
|
52: [function (require, module, exports) {
|
|
3150
3162
|
'use strict'
|
|
3151
|
-
|
|
3152
|
-
|
|
3163
|
+
const DESCRIPTORS = require('../internals/descriptors')
|
|
3164
|
+
const hasOwn = require('../internals/has-own-property')
|
|
3153
3165
|
|
|
3154
|
-
|
|
3166
|
+
const FunctionPrototype = Function.prototype
|
|
3155
3167
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
3156
|
-
|
|
3168
|
+
const getDescriptor = DESCRIPTORS && Object.getOwnPropertyDescriptor
|
|
3157
3169
|
|
|
3158
|
-
|
|
3170
|
+
const EXISTS = hasOwn(FunctionPrototype, 'name')
|
|
3159
3171
|
// additional protection from minified / mangled / dropped function names
|
|
3160
|
-
|
|
3161
|
-
|
|
3172
|
+
const PROPER = EXISTS && function something () { /* empty */ }.name === 'something'
|
|
3173
|
+
const CONFIGURABLE = EXISTS && (!DESCRIPTORS || (DESCRIPTORS && getDescriptor(FunctionPrototype, 'name').configurable))
|
|
3162
3174
|
|
|
3163
3175
|
module.exports = {
|
|
3164
|
-
EXISTS
|
|
3165
|
-
PROPER
|
|
3166
|
-
CONFIGURABLE
|
|
3176
|
+
EXISTS,
|
|
3177
|
+
PROPER,
|
|
3178
|
+
CONFIGURABLE
|
|
3167
3179
|
}
|
|
3168
3180
|
}, { '../internals/descriptors': 41, '../internals/has-own-property': 61 }],
|
|
3169
3181
|
53: [function (require, module, exports) {
|
|
3170
3182
|
'use strict'
|
|
3171
|
-
|
|
3172
|
-
|
|
3183
|
+
const classofRaw = require('../internals/classof-raw')
|
|
3184
|
+
const uncurryThis = require('../internals/function-uncurry-this')
|
|
3173
3185
|
|
|
3174
3186
|
module.exports = function (fn) {
|
|
3175
3187
|
// Nashorn bug:
|
|
@@ -3180,25 +3192,27 @@
|
|
|
3180
3192
|
}, { '../internals/classof-raw': 30, '../internals/function-uncurry-this': 54 }],
|
|
3181
3193
|
54: [function (require, module, exports) {
|
|
3182
3194
|
'use strict'
|
|
3183
|
-
|
|
3195
|
+
const NATIVE_BIND = require('../internals/function-bind-native')
|
|
3184
3196
|
|
|
3185
|
-
|
|
3186
|
-
|
|
3197
|
+
const FunctionPrototype = Function.prototype
|
|
3198
|
+
const call = FunctionPrototype.call
|
|
3187
3199
|
// eslint-disable-next-line es/no-function-prototype-bind -- safe
|
|
3188
|
-
|
|
3200
|
+
const uncurryThisWithBind = NATIVE_BIND && FunctionPrototype.bind.bind(call, call)
|
|
3189
3201
|
|
|
3190
|
-
module.exports = NATIVE_BIND
|
|
3191
|
-
|
|
3192
|
-
|
|
3202
|
+
module.exports = NATIVE_BIND
|
|
3203
|
+
? uncurryThisWithBind
|
|
3204
|
+
: function (fn) {
|
|
3205
|
+
return function () {
|
|
3206
|
+
return call.apply(fn, arguments)
|
|
3207
|
+
}
|
|
3193
3208
|
}
|
|
3194
|
-
}
|
|
3195
3209
|
}, { '../internals/function-bind-native': 50 }],
|
|
3196
3210
|
55: [function (require, module, exports) {
|
|
3197
3211
|
'use strict'
|
|
3198
|
-
|
|
3199
|
-
|
|
3212
|
+
const globalThis = require('../internals/global-this')
|
|
3213
|
+
const isCallable = require('../internals/is-callable')
|
|
3200
3214
|
|
|
3201
|
-
|
|
3215
|
+
const aFunction = function (argument) {
|
|
3202
3216
|
return isCallable(argument) ? argument : undefined
|
|
3203
3217
|
}
|
|
3204
3218
|
|
|
@@ -3220,29 +3234,29 @@
|
|
|
3220
3234
|
}, {}],
|
|
3221
3235
|
57: [function (require, module, exports) {
|
|
3222
3236
|
'use strict'
|
|
3223
|
-
|
|
3224
|
-
|
|
3225
|
-
|
|
3226
|
-
|
|
3227
|
-
|
|
3237
|
+
const call = require('../internals/function-call')
|
|
3238
|
+
const isCallable = require('../internals/is-callable')
|
|
3239
|
+
const anObject = require('../internals/an-object')
|
|
3240
|
+
const tryToString = require('../internals/try-to-string')
|
|
3241
|
+
const getIteratorMethod = require('../internals/get-iterator-method-internal')
|
|
3228
3242
|
|
|
3229
|
-
|
|
3243
|
+
const $TypeError = TypeError
|
|
3230
3244
|
|
|
3231
3245
|
module.exports = function (argument, usingIterator) {
|
|
3232
|
-
|
|
3246
|
+
const iteratorMethod = arguments.length < 2 ? getIteratorMethod(argument) : usingIterator
|
|
3233
3247
|
if (isCallable(iteratorMethod)) return anObject(call(iteratorMethod, argument))
|
|
3234
3248
|
throw new $TypeError(tryToString(argument) + ' is not iterable')
|
|
3235
3249
|
}
|
|
3236
3250
|
}, { '../internals/an-object': 27, '../internals/function-call': 51, '../internals/get-iterator-method-internal': 58, '../internals/is-callable': 69, '../internals/try-to-string': 112 }],
|
|
3237
3251
|
58: [function (require, module, exports) {
|
|
3238
3252
|
'use strict'
|
|
3239
|
-
|
|
3240
|
-
|
|
3241
|
-
|
|
3242
|
-
|
|
3253
|
+
const classof = require('../internals/classof-raw')
|
|
3254
|
+
const isNullOrUndefined = require('../internals/is-null-or-undefined')
|
|
3255
|
+
const getMethod = require('../internals/get-method')
|
|
3256
|
+
const wellKnownSymbol = require('../internals/well-known-symbol')
|
|
3243
3257
|
|
|
3244
|
-
|
|
3245
|
-
|
|
3258
|
+
const ITERATOR = wellKnownSymbol('iterator')
|
|
3259
|
+
const ArrayPrototype = Array.prototype
|
|
3246
3260
|
|
|
3247
3261
|
module.exports = function (it) {
|
|
3248
3262
|
if (!isNullOrUndefined(it)) {
|
|
@@ -3254,13 +3268,13 @@
|
|
|
3254
3268
|
}, { '../internals/classof-raw': 30, '../internals/get-method': 59, '../internals/is-null-or-undefined': 71, '../internals/well-known-symbol': 117 }],
|
|
3255
3269
|
59: [function (require, module, exports) {
|
|
3256
3270
|
'use strict'
|
|
3257
|
-
|
|
3258
|
-
|
|
3271
|
+
const aCallable = require('../internals/a-callable')
|
|
3272
|
+
const isNullOrUndefined = require('../internals/is-null-or-undefined')
|
|
3259
3273
|
|
|
3260
3274
|
// `GetMethod` abstract operation
|
|
3261
3275
|
// https://tc39.es/ecma262/#sec-getmethod
|
|
3262
3276
|
module.exports = function (V, P) {
|
|
3263
|
-
|
|
3277
|
+
const func = V[P]
|
|
3264
3278
|
return isNullOrUndefined(func) ? undefined : aCallable(func)
|
|
3265
3279
|
}
|
|
3266
3280
|
}, { '../internals/a-callable': 25, '../internals/is-null-or-undefined': 71 }],
|
|
@@ -3268,7 +3282,7 @@
|
|
|
3268
3282
|
(function (global) {
|
|
3269
3283
|
(function () {
|
|
3270
3284
|
'use strict'
|
|
3271
|
-
|
|
3285
|
+
const check = function (it) {
|
|
3272
3286
|
return it && it.Math === Math && it
|
|
3273
3287
|
}
|
|
3274
3288
|
|
|
@@ -3288,10 +3302,10 @@
|
|
|
3288
3302
|
}, {}],
|
|
3289
3303
|
61: [function (require, module, exports) {
|
|
3290
3304
|
'use strict'
|
|
3291
|
-
|
|
3292
|
-
|
|
3305
|
+
const uncurryThis = require('../internals/function-uncurry-this')
|
|
3306
|
+
const toObject = require('../internals/to-object')
|
|
3293
3307
|
|
|
3294
|
-
|
|
3308
|
+
const hasOwnProperty = uncurryThis({}.hasOwnProperty)
|
|
3295
3309
|
|
|
3296
3310
|
// `HasOwnProperty` abstract operation
|
|
3297
3311
|
// https://tc39.es/ecma262/#sec-hasownproperty
|
|
@@ -3306,15 +3320,15 @@
|
|
|
3306
3320
|
}, {}],
|
|
3307
3321
|
63: [function (require, module, exports) {
|
|
3308
3322
|
'use strict'
|
|
3309
|
-
|
|
3323
|
+
const getBuiltIn = require('../internals/get-built-in')
|
|
3310
3324
|
|
|
3311
3325
|
module.exports = getBuiltIn('document', 'documentElement')
|
|
3312
3326
|
}, { '../internals/get-built-in': 55 }],
|
|
3313
3327
|
64: [function (require, module, exports) {
|
|
3314
3328
|
'use strict'
|
|
3315
|
-
|
|
3316
|
-
|
|
3317
|
-
|
|
3329
|
+
const DESCRIPTORS = require('../internals/descriptors')
|
|
3330
|
+
const fails = require('../internals/fails')
|
|
3331
|
+
const createElement = require('../internals/document-create-element')
|
|
3318
3332
|
|
|
3319
3333
|
// Thanks to IE8 for its funny defineProperty
|
|
3320
3334
|
module.exports = !DESCRIPTORS && !fails(function () {
|
|
@@ -3326,12 +3340,12 @@
|
|
|
3326
3340
|
}, { '../internals/descriptors': 41, '../internals/document-create-element': 42, '../internals/fails': 47 }],
|
|
3327
3341
|
65: [function (require, module, exports) {
|
|
3328
3342
|
'use strict'
|
|
3329
|
-
|
|
3330
|
-
|
|
3331
|
-
|
|
3343
|
+
const uncurryThis = require('../internals/function-uncurry-this')
|
|
3344
|
+
const fails = require('../internals/fails')
|
|
3345
|
+
const classof = require('../internals/classof-raw')
|
|
3332
3346
|
|
|
3333
|
-
|
|
3334
|
-
|
|
3347
|
+
const $Object = Object
|
|
3348
|
+
const split = uncurryThis(''.split)
|
|
3335
3349
|
|
|
3336
3350
|
// fallback for non-array-like ES3 and non-enumerable old V8 strings
|
|
3337
3351
|
module.exports = fails(function () {
|
|
@@ -3344,11 +3358,11 @@
|
|
|
3344
3358
|
}, { '../internals/classof-raw': 30, '../internals/fails': 47, '../internals/function-uncurry-this': 54 }],
|
|
3345
3359
|
66: [function (require, module, exports) {
|
|
3346
3360
|
'use strict'
|
|
3347
|
-
|
|
3348
|
-
|
|
3349
|
-
|
|
3361
|
+
const uncurryThis = require('../internals/function-uncurry-this')
|
|
3362
|
+
const isCallable = require('../internals/is-callable')
|
|
3363
|
+
const store = require('../internals/shared-store')
|
|
3350
3364
|
|
|
3351
|
-
|
|
3365
|
+
const functionToString = uncurryThis(Function.toString)
|
|
3352
3366
|
|
|
3353
3367
|
// this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
|
|
3354
3368
|
if (!isCallable(store.inspectSource)) {
|
|
@@ -3361,27 +3375,27 @@
|
|
|
3361
3375
|
}, { '../internals/function-uncurry-this': 54, '../internals/is-callable': 69, '../internals/shared-store': 102 }],
|
|
3362
3376
|
67: [function (require, module, exports) {
|
|
3363
3377
|
'use strict'
|
|
3364
|
-
|
|
3365
|
-
|
|
3366
|
-
|
|
3367
|
-
|
|
3368
|
-
|
|
3369
|
-
|
|
3370
|
-
|
|
3371
|
-
|
|
3372
|
-
|
|
3373
|
-
|
|
3374
|
-
|
|
3375
|
-
|
|
3376
|
-
|
|
3377
|
-
|
|
3378
|
-
|
|
3378
|
+
const NATIVE_WEAK_MAP = require('../internals/weak-map-basic-detection')
|
|
3379
|
+
const globalThis = require('../internals/global-this')
|
|
3380
|
+
const isObject = require('../internals/is-object')
|
|
3381
|
+
const createNonEnumerableProperty = require('../internals/create-non-enumerable-property')
|
|
3382
|
+
const hasOwn = require('../internals/has-own-property')
|
|
3383
|
+
const shared = require('../internals/shared-store')
|
|
3384
|
+
const sharedKey = require('../internals/shared-key')
|
|
3385
|
+
const hiddenKeys = require('../internals/hidden-keys')
|
|
3386
|
+
|
|
3387
|
+
const OBJECT_ALREADY_INITIALIZED = 'Object already initialized'
|
|
3388
|
+
const TypeError = globalThis.TypeError
|
|
3389
|
+
const WeakMap = globalThis.WeakMap
|
|
3390
|
+
let set, get, has
|
|
3391
|
+
|
|
3392
|
+
const enforce = function (it) {
|
|
3379
3393
|
return has(it) ? get(it) : set(it, {})
|
|
3380
3394
|
}
|
|
3381
3395
|
|
|
3382
|
-
|
|
3396
|
+
const getterFor = function (TYPE) {
|
|
3383
3397
|
return function (it) {
|
|
3384
|
-
|
|
3398
|
+
let state
|
|
3385
3399
|
if (!isObject(it) || (state = get(it)).type !== TYPE) {
|
|
3386
3400
|
throw new TypeError('Incompatible receiver, ' + TYPE + ' required')
|
|
3387
3401
|
} return state
|
|
@@ -3389,7 +3403,7 @@
|
|
|
3389
3403
|
}
|
|
3390
3404
|
|
|
3391
3405
|
if (NATIVE_WEAK_MAP || shared.state) {
|
|
3392
|
-
|
|
3406
|
+
const store = shared.state || (shared.state = new WeakMap())
|
|
3393
3407
|
/* eslint-disable no-self-assign -- prototype methods protection */
|
|
3394
3408
|
store.get = store.get
|
|
3395
3409
|
store.has = store.has
|
|
@@ -3408,7 +3422,7 @@
|
|
|
3408
3422
|
return store.has(it)
|
|
3409
3423
|
}
|
|
3410
3424
|
} else {
|
|
3411
|
-
|
|
3425
|
+
const STATE = sharedKey('state')
|
|
3412
3426
|
hiddenKeys[STATE] = true
|
|
3413
3427
|
set = function (it, metadata) {
|
|
3414
3428
|
if (hasOwn(it, STATE)) throw new TypeError(OBJECT_ALREADY_INITIALIZED)
|
|
@@ -3425,20 +3439,20 @@
|
|
|
3425
3439
|
}
|
|
3426
3440
|
|
|
3427
3441
|
module.exports = {
|
|
3428
|
-
set
|
|
3429
|
-
get
|
|
3430
|
-
has
|
|
3431
|
-
enforce
|
|
3432
|
-
getterFor
|
|
3442
|
+
set,
|
|
3443
|
+
get,
|
|
3444
|
+
has,
|
|
3445
|
+
enforce,
|
|
3446
|
+
getterFor
|
|
3433
3447
|
}
|
|
3434
3448
|
}, { '../internals/create-non-enumerable-property': 34, '../internals/global-this': 60, '../internals/has-own-property': 61, '../internals/hidden-keys': 62, '../internals/is-object': 72, '../internals/shared-key': 101, '../internals/shared-store': 102, '../internals/weak-map-basic-detection': 116 }],
|
|
3435
3449
|
68: [function (require, module, exports) {
|
|
3436
3450
|
'use strict'
|
|
3437
|
-
|
|
3438
|
-
|
|
3451
|
+
const wellKnownSymbol = require('../internals/well-known-symbol')
|
|
3452
|
+
const Iterators = require('../internals/iterators')
|
|
3439
3453
|
|
|
3440
|
-
|
|
3441
|
-
|
|
3454
|
+
const ITERATOR = wellKnownSymbol('iterator')
|
|
3455
|
+
const ArrayPrototype = Array.prototype
|
|
3442
3456
|
|
|
3443
3457
|
// check on default Array iterator
|
|
3444
3458
|
module.exports = function (it) {
|
|
@@ -3448,29 +3462,34 @@
|
|
|
3448
3462
|
69: [function (require, module, exports) {
|
|
3449
3463
|
'use strict'
|
|
3450
3464
|
// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
|
|
3451
|
-
|
|
3465
|
+
const documentAll = typeof document === 'object' && document.all
|
|
3452
3466
|
|
|
3453
3467
|
// `IsCallable` abstract operation
|
|
3454
3468
|
// https://tc39.es/ecma262/#sec-iscallable
|
|
3455
3469
|
// eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing
|
|
3456
|
-
module.exports = typeof documentAll === 'undefined' && documentAll !== undefined
|
|
3457
|
-
|
|
3458
|
-
|
|
3459
|
-
|
|
3460
|
-
|
|
3470
|
+
module.exports = typeof documentAll === 'undefined' && documentAll !== undefined
|
|
3471
|
+
? function (argument) {
|
|
3472
|
+
return typeof argument === 'function' || argument === documentAll
|
|
3473
|
+
}
|
|
3474
|
+
: function (argument) {
|
|
3475
|
+
return typeof argument === 'function'
|
|
3476
|
+
}
|
|
3461
3477
|
}, {}],
|
|
3462
3478
|
70: [function (require, module, exports) {
|
|
3463
3479
|
'use strict'
|
|
3464
|
-
|
|
3465
|
-
|
|
3466
|
-
|
|
3467
|
-
|
|
3468
|
-
|
|
3469
|
-
|
|
3470
|
-
|
|
3471
|
-
return value === POLYFILL
|
|
3472
|
-
|
|
3473
|
-
|
|
3480
|
+
const fails = require('../internals/fails')
|
|
3481
|
+
const isCallable = require('../internals/is-callable')
|
|
3482
|
+
|
|
3483
|
+
const replacement = /#|\.prototype\./
|
|
3484
|
+
|
|
3485
|
+
const isForced = function (feature, detection) {
|
|
3486
|
+
const value = data[normalize(feature)]
|
|
3487
|
+
return value === POLYFILL
|
|
3488
|
+
? true
|
|
3489
|
+
: value === NATIVE
|
|
3490
|
+
? false
|
|
3491
|
+
: isCallable(detection)
|
|
3492
|
+
? fails(detection)
|
|
3474
3493
|
: !!detection
|
|
3475
3494
|
}
|
|
3476
3495
|
|
|
@@ -3494,7 +3513,7 @@
|
|
|
3494
3513
|
}, {}],
|
|
3495
3514
|
72: [function (require, module, exports) {
|
|
3496
3515
|
'use strict'
|
|
3497
|
-
|
|
3516
|
+
const isCallable = require('../internals/is-callable')
|
|
3498
3517
|
|
|
3499
3518
|
module.exports = function (it) {
|
|
3500
3519
|
return typeof it === 'object' ? it !== null : isCallable(it)
|
|
@@ -3506,59 +3525,61 @@
|
|
|
3506
3525
|
}, {}],
|
|
3507
3526
|
74: [function (require, module, exports) {
|
|
3508
3527
|
'use strict'
|
|
3509
|
-
|
|
3510
|
-
|
|
3511
|
-
|
|
3512
|
-
|
|
3513
|
-
|
|
3514
|
-
|
|
3515
|
-
|
|
3516
|
-
module.exports = USE_SYMBOL_AS_UID
|
|
3517
|
-
|
|
3518
|
-
|
|
3519
|
-
|
|
3520
|
-
|
|
3521
|
-
|
|
3528
|
+
const getBuiltIn = require('../internals/get-built-in')
|
|
3529
|
+
const isCallable = require('../internals/is-callable')
|
|
3530
|
+
const isPrototypeOf = require('../internals/object-is-prototype-of')
|
|
3531
|
+
const USE_SYMBOL_AS_UID = require('../internals/use-symbol-as-uid')
|
|
3532
|
+
|
|
3533
|
+
const $Object = Object
|
|
3534
|
+
|
|
3535
|
+
module.exports = USE_SYMBOL_AS_UID
|
|
3536
|
+
? function (it) {
|
|
3537
|
+
return typeof it === 'symbol'
|
|
3538
|
+
}
|
|
3539
|
+
: function (it) {
|
|
3540
|
+
const $Symbol = getBuiltIn('Symbol')
|
|
3541
|
+
return isCallable($Symbol) && isPrototypeOf($Symbol.prototype, $Object(it))
|
|
3542
|
+
}
|
|
3522
3543
|
}, { '../internals/get-built-in': 55, '../internals/is-callable': 69, '../internals/object-is-prototype-of': 94, '../internals/use-symbol-as-uid': 114 }],
|
|
3523
3544
|
75: [function (require, module, exports) {
|
|
3524
3545
|
'use strict'
|
|
3525
|
-
|
|
3526
|
-
|
|
3527
|
-
|
|
3528
|
-
|
|
3529
|
-
|
|
3530
|
-
|
|
3531
|
-
|
|
3532
|
-
|
|
3533
|
-
|
|
3534
|
-
|
|
3535
|
-
|
|
3536
|
-
|
|
3537
|
-
|
|
3538
|
-
|
|
3546
|
+
const bind = require('../internals/function-bind-context')
|
|
3547
|
+
const call = require('../internals/function-call')
|
|
3548
|
+
const anObject = require('../internals/an-object')
|
|
3549
|
+
const tryToString = require('../internals/try-to-string')
|
|
3550
|
+
const isArrayIteratorMethod = require('../internals/is-array-iterator-method')
|
|
3551
|
+
const lengthOfArrayLike = require('../internals/length-of-array-like')
|
|
3552
|
+
const isPrototypeOf = require('../internals/object-is-prototype-of')
|
|
3553
|
+
const getIterator = require('../internals/get-iterator-internal')
|
|
3554
|
+
const getIteratorMethod = require('../internals/get-iterator-method-internal')
|
|
3555
|
+
const iteratorClose = require('../internals/iterator-close')
|
|
3556
|
+
|
|
3557
|
+
const $TypeError = TypeError
|
|
3558
|
+
|
|
3559
|
+
const Result = function (stopped, result) {
|
|
3539
3560
|
this.stopped = stopped
|
|
3540
3561
|
this.result = result
|
|
3541
3562
|
}
|
|
3542
3563
|
|
|
3543
|
-
|
|
3564
|
+
const ResultPrototype = Result.prototype
|
|
3544
3565
|
|
|
3545
3566
|
module.exports = function (iterable, unboundFunction, options) {
|
|
3546
|
-
|
|
3547
|
-
|
|
3548
|
-
|
|
3549
|
-
|
|
3550
|
-
|
|
3551
|
-
|
|
3552
|
-
|
|
3553
|
-
|
|
3554
|
-
|
|
3555
|
-
|
|
3567
|
+
const that = options && options.that
|
|
3568
|
+
const AS_ENTRIES = !!(options && options.AS_ENTRIES)
|
|
3569
|
+
const IS_RECORD = !!(options && options.IS_RECORD)
|
|
3570
|
+
const IS_ITERATOR = !!(options && options.IS_ITERATOR)
|
|
3571
|
+
const INTERRUPTED = !!(options && options.INTERRUPTED)
|
|
3572
|
+
const fn = bind(unboundFunction, that)
|
|
3573
|
+
let iterator, iterFn, index, length, result, next, step
|
|
3574
|
+
|
|
3575
|
+
const stop = function (condition) {
|
|
3576
|
+
const $iterator = iterator
|
|
3556
3577
|
iterator = undefined
|
|
3557
3578
|
if ($iterator) iteratorClose($iterator, 'normal')
|
|
3558
3579
|
return new Result(true, condition)
|
|
3559
3580
|
}
|
|
3560
3581
|
|
|
3561
|
-
|
|
3582
|
+
const callFn = function (value) {
|
|
3562
3583
|
if (AS_ENTRIES) {
|
|
3563
3584
|
anObject(value)
|
|
3564
3585
|
return INTERRUPTED ? fn(value[0], value[1], stop) : fn(value[0], value[1])
|
|
@@ -3585,7 +3606,7 @@
|
|
|
3585
3606
|
next = IS_RECORD ? iterable.next : iterator.next
|
|
3586
3607
|
while (!(step = call(next, iterator)).done) {
|
|
3587
3608
|
// `IteratorValue` errors should propagate without closing the iterator
|
|
3588
|
-
|
|
3609
|
+
const value = step.value
|
|
3589
3610
|
try {
|
|
3590
3611
|
result = callFn(value)
|
|
3591
3612
|
} catch (error) {
|
|
@@ -3606,10 +3627,10 @@
|
|
|
3606
3627
|
}, {}],
|
|
3607
3628
|
77: [function (require, module, exports) {
|
|
3608
3629
|
'use strict'
|
|
3609
|
-
|
|
3630
|
+
const iteratorClose = require('../internals/iterator-close')
|
|
3610
3631
|
|
|
3611
3632
|
module.exports = function (iters, kind, value) {
|
|
3612
|
-
for (
|
|
3633
|
+
for (let i = iters.length - 1; i >= 0; i--) {
|
|
3613
3634
|
if (iters[i] === undefined) continue
|
|
3614
3635
|
try {
|
|
3615
3636
|
value = iteratorClose(iters[i].iterator, kind, value)
|
|
@@ -3624,12 +3645,12 @@
|
|
|
3624
3645
|
}, { '../internals/iterator-close': 78 }],
|
|
3625
3646
|
78: [function (require, module, exports) {
|
|
3626
3647
|
'use strict'
|
|
3627
|
-
|
|
3628
|
-
|
|
3629
|
-
|
|
3648
|
+
const call = require('../internals/function-call')
|
|
3649
|
+
const anObject = require('../internals/an-object')
|
|
3650
|
+
const getMethod = require('../internals/get-method')
|
|
3630
3651
|
|
|
3631
3652
|
module.exports = function (iterator, kind, value) {
|
|
3632
|
-
|
|
3653
|
+
let innerResult, innerError
|
|
3633
3654
|
anObject(iterator)
|
|
3634
3655
|
try {
|
|
3635
3656
|
innerResult = getMethod(iterator, 'return')
|
|
@@ -3650,39 +3671,39 @@
|
|
|
3650
3671
|
}, { '../internals/an-object': 27, '../internals/function-call': 51, '../internals/get-method': 59 }],
|
|
3651
3672
|
79: [function (require, module, exports) {
|
|
3652
3673
|
'use strict'
|
|
3653
|
-
|
|
3654
|
-
|
|
3655
|
-
|
|
3656
|
-
|
|
3657
|
-
|
|
3658
|
-
|
|
3659
|
-
|
|
3660
|
-
|
|
3661
|
-
|
|
3662
|
-
|
|
3663
|
-
|
|
3664
|
-
|
|
3665
|
-
|
|
3666
|
-
|
|
3667
|
-
|
|
3668
|
-
|
|
3669
|
-
|
|
3670
|
-
|
|
3671
|
-
|
|
3672
|
-
|
|
3673
|
-
|
|
3674
|
-
|
|
3674
|
+
const call = require('../internals/function-call')
|
|
3675
|
+
const create = require('../internals/object-create')
|
|
3676
|
+
const createNonEnumerableProperty = require('../internals/create-non-enumerable-property')
|
|
3677
|
+
const defineBuiltIns = require('../internals/define-built-ins')
|
|
3678
|
+
const wellKnownSymbol = require('../internals/well-known-symbol')
|
|
3679
|
+
const InternalStateModule = require('../internals/internal-state')
|
|
3680
|
+
const getMethod = require('../internals/get-method')
|
|
3681
|
+
const IteratorPrototype = require('../internals/iterators-core').IteratorPrototype
|
|
3682
|
+
const createIterResultObject = require('../internals/create-iter-result-object')
|
|
3683
|
+
const iteratorClose = require('../internals/iterator-close')
|
|
3684
|
+
const iteratorCloseAll = require('../internals/iterator-close-all')
|
|
3685
|
+
const cleanupState = require('../internals/iterator-cleanup-state')
|
|
3686
|
+
|
|
3687
|
+
const TO_STRING_TAG = wellKnownSymbol('toStringTag')
|
|
3688
|
+
const ITERATOR_HELPER = 'IteratorHelper'
|
|
3689
|
+
const WRAP_FOR_VALID_ITERATOR = 'WrapForValidIterator'
|
|
3690
|
+
const NORMAL = 'normal'
|
|
3691
|
+
const THROW = 'throw'
|
|
3692
|
+
const setInternalState = InternalStateModule.set
|
|
3693
|
+
|
|
3694
|
+
const createIteratorProxyPrototype = function (IS_ITERATOR) {
|
|
3695
|
+
const getInternalState = InternalStateModule.getterFor(IS_ITERATOR ? WRAP_FOR_VALID_ITERATOR : ITERATOR_HELPER)
|
|
3675
3696
|
|
|
3676
3697
|
return defineBuiltIns(create(IteratorPrototype), {
|
|
3677
3698
|
next: function next () {
|
|
3678
|
-
|
|
3699
|
+
const state = getInternalState(this)
|
|
3679
3700
|
// for simplification:
|
|
3680
3701
|
// for `%WrapForValidIteratorPrototype%.next` or with `state.returnHandlerResult` our `nextHandler` returns `IterResultObject`
|
|
3681
3702
|
// for `%IteratorHelperPrototype%.next` - just a value
|
|
3682
3703
|
if (IS_ITERATOR) return state.nextHandler()
|
|
3683
3704
|
if (state.done) return createIterResultObject(undefined, true)
|
|
3684
3705
|
try {
|
|
3685
|
-
|
|
3706
|
+
const result = state.nextHandler()
|
|
3686
3707
|
if (state.done) cleanupState(state)
|
|
3687
3708
|
return state.returnHandlerResult ? result : createIterResultObject(result, state.done)
|
|
3688
3709
|
} catch (error) {
|
|
@@ -3692,14 +3713,14 @@
|
|
|
3692
3713
|
}
|
|
3693
3714
|
},
|
|
3694
3715
|
return: function () {
|
|
3695
|
-
|
|
3696
|
-
|
|
3697
|
-
|
|
3698
|
-
|
|
3699
|
-
|
|
3716
|
+
const state = getInternalState(this)
|
|
3717
|
+
const iterator = state.iterator
|
|
3718
|
+
const inner = state.inner
|
|
3719
|
+
const openIters = state.openIters
|
|
3720
|
+
const done = state.done
|
|
3700
3721
|
state.done = true
|
|
3701
3722
|
if (IS_ITERATOR) {
|
|
3702
|
-
|
|
3723
|
+
const returnMethod = getMethod(iterator, 'return')
|
|
3703
3724
|
return returnMethod ? call(returnMethod, iterator) : createIterResultObject(undefined, true)
|
|
3704
3725
|
}
|
|
3705
3726
|
cleanupState(state)
|
|
@@ -3725,13 +3746,13 @@
|
|
|
3725
3746
|
})
|
|
3726
3747
|
}
|
|
3727
3748
|
|
|
3728
|
-
|
|
3729
|
-
|
|
3749
|
+
const WrapForValidIteratorPrototype = createIteratorProxyPrototype(true)
|
|
3750
|
+
const IteratorHelperPrototype = createIteratorProxyPrototype(false)
|
|
3730
3751
|
|
|
3731
3752
|
createNonEnumerableProperty(IteratorHelperPrototype, TO_STRING_TAG, 'Iterator Helper')
|
|
3732
3753
|
|
|
3733
3754
|
module.exports = function (nextHandler, IS_ITERATOR, RETURN_HANDLER_RESULT) {
|
|
3734
|
-
|
|
3755
|
+
const IteratorProxy = function Iterator (record, state) {
|
|
3735
3756
|
if (state) {
|
|
3736
3757
|
state.iterator = record.iterator
|
|
3737
3758
|
state.next = record.next
|
|
@@ -3755,7 +3776,7 @@
|
|
|
3755
3776
|
// https://issues.chromium.org/issues/336839115
|
|
3756
3777
|
module.exports = function (methodName, argument) {
|
|
3757
3778
|
// eslint-disable-next-line es/no-iterator -- required for testing
|
|
3758
|
-
|
|
3779
|
+
const method = typeof Iterator === 'function' && Iterator.prototype[methodName]
|
|
3759
3780
|
if (method) {
|
|
3760
3781
|
try {
|
|
3761
3782
|
method.call({ next: null }, argument).next()
|
|
@@ -3767,15 +3788,15 @@
|
|
|
3767
3788
|
}, {}],
|
|
3768
3789
|
81: [function (require, module, exports) {
|
|
3769
3790
|
'use strict'
|
|
3770
|
-
|
|
3791
|
+
const globalThis = require('../internals/global-this')
|
|
3771
3792
|
|
|
3772
3793
|
// https://github.com/tc39/ecma262/pull/3467
|
|
3773
3794
|
module.exports = function (METHOD_NAME, ExpectedError) {
|
|
3774
|
-
|
|
3775
|
-
|
|
3776
|
-
|
|
3795
|
+
const Iterator = globalThis.Iterator
|
|
3796
|
+
const IteratorPrototype = Iterator && Iterator.prototype
|
|
3797
|
+
const method = IteratorPrototype && IteratorPrototype[METHOD_NAME]
|
|
3777
3798
|
|
|
3778
|
-
|
|
3799
|
+
let CLOSED = false
|
|
3779
3800
|
|
|
3780
3801
|
if (method) {
|
|
3781
3802
|
try {
|
|
@@ -3794,21 +3815,21 @@
|
|
|
3794
3815
|
}, { '../internals/global-this': 60 }],
|
|
3795
3816
|
82: [function (require, module, exports) {
|
|
3796
3817
|
'use strict'
|
|
3797
|
-
|
|
3798
|
-
|
|
3799
|
-
|
|
3800
|
-
|
|
3801
|
-
|
|
3802
|
-
|
|
3803
|
-
|
|
3804
|
-
|
|
3805
|
-
|
|
3806
|
-
|
|
3807
|
-
|
|
3818
|
+
const fails = require('../internals/fails')
|
|
3819
|
+
const isCallable = require('../internals/is-callable')
|
|
3820
|
+
const isObject = require('../internals/is-object')
|
|
3821
|
+
const create = require('../internals/object-create')
|
|
3822
|
+
const getPrototypeOf = require('../internals/object-get-prototype-of')
|
|
3823
|
+
const defineBuiltIn = require('../internals/define-built-in')
|
|
3824
|
+
const wellKnownSymbol = require('../internals/well-known-symbol')
|
|
3825
|
+
const IS_PURE = require('../internals/is-pure')
|
|
3826
|
+
|
|
3827
|
+
const ITERATOR = wellKnownSymbol('iterator')
|
|
3828
|
+
let BUGGY_SAFARI_ITERATORS = false
|
|
3808
3829
|
|
|
3809
3830
|
// `%IteratorPrototype%` object
|
|
3810
3831
|
// https://tc39.es/ecma262/#sec-%iteratorprototype%-object
|
|
3811
|
-
|
|
3832
|
+
let IteratorPrototype, PrototypeOfArrayIteratorPrototype, arrayIterator
|
|
3812
3833
|
|
|
3813
3834
|
/* eslint-disable es/no-array-prototype-keys -- safe */
|
|
3814
3835
|
if ([].keys) {
|
|
@@ -3821,8 +3842,8 @@
|
|
|
3821
3842
|
}
|
|
3822
3843
|
}
|
|
3823
3844
|
|
|
3824
|
-
|
|
3825
|
-
|
|
3845
|
+
const NEW_ITERATOR_PROTOTYPE = !isObject(IteratorPrototype) || fails(function () {
|
|
3846
|
+
const test = {}
|
|
3826
3847
|
// FF44- legacy iterators case
|
|
3827
3848
|
return IteratorPrototype[ITERATOR].call(test) !== test
|
|
3828
3849
|
})
|
|
@@ -3839,8 +3860,8 @@
|
|
|
3839
3860
|
}
|
|
3840
3861
|
|
|
3841
3862
|
module.exports = {
|
|
3842
|
-
IteratorPrototype
|
|
3843
|
-
BUGGY_SAFARI_ITERATORS
|
|
3863
|
+
IteratorPrototype,
|
|
3864
|
+
BUGGY_SAFARI_ITERATORS
|
|
3844
3865
|
}
|
|
3845
3866
|
}, { '../internals/define-built-in': 38, '../internals/fails': 47, '../internals/is-callable': 69, '../internals/is-object': 72, '../internals/is-pure': 73, '../internals/object-create': 87, '../internals/object-get-prototype-of': 93, '../internals/well-known-symbol': 117 }],
|
|
3846
3867
|
83: [function (require, module, exports) {
|
|
@@ -3849,7 +3870,7 @@
|
|
|
3849
3870
|
}, {}],
|
|
3850
3871
|
84: [function (require, module, exports) {
|
|
3851
3872
|
'use strict'
|
|
3852
|
-
|
|
3873
|
+
const toLength = require('../internals/to-length')
|
|
3853
3874
|
|
|
3854
3875
|
// `LengthOfArrayLike` abstract operation
|
|
3855
3876
|
// https://tc39.es/ecma262/#sec-lengthofarraylike
|
|
@@ -3859,31 +3880,31 @@
|
|
|
3859
3880
|
}, { '../internals/to-length': 108 }],
|
|
3860
3881
|
85: [function (require, module, exports) {
|
|
3861
3882
|
'use strict'
|
|
3862
|
-
|
|
3863
|
-
|
|
3864
|
-
|
|
3865
|
-
|
|
3866
|
-
|
|
3867
|
-
|
|
3868
|
-
|
|
3869
|
-
|
|
3870
|
-
|
|
3871
|
-
|
|
3872
|
-
|
|
3873
|
-
|
|
3883
|
+
const uncurryThis = require('../internals/function-uncurry-this')
|
|
3884
|
+
const fails = require('../internals/fails')
|
|
3885
|
+
const isCallable = require('../internals/is-callable')
|
|
3886
|
+
const hasOwn = require('../internals/has-own-property')
|
|
3887
|
+
const DESCRIPTORS = require('../internals/descriptors')
|
|
3888
|
+
const CONFIGURABLE_FUNCTION_NAME = require('../internals/function-name').CONFIGURABLE
|
|
3889
|
+
const inspectSource = require('../internals/inspect-source')
|
|
3890
|
+
const InternalStateModule = require('../internals/internal-state')
|
|
3891
|
+
|
|
3892
|
+
const enforceInternalState = InternalStateModule.enforce
|
|
3893
|
+
const getInternalState = InternalStateModule.get
|
|
3894
|
+
const $String = String
|
|
3874
3895
|
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
3875
|
-
|
|
3876
|
-
|
|
3877
|
-
|
|
3878
|
-
|
|
3896
|
+
const defineProperty = Object.defineProperty
|
|
3897
|
+
const stringSlice = uncurryThis(''.slice)
|
|
3898
|
+
const replace = uncurryThis(''.replace)
|
|
3899
|
+
const join = uncurryThis([].join)
|
|
3879
3900
|
|
|
3880
|
-
|
|
3901
|
+
const CONFIGURABLE_LENGTH = DESCRIPTORS && !fails(function () {
|
|
3881
3902
|
return defineProperty(function () { /* empty */ }, 'length', { value: 8 }).length !== 8
|
|
3882
3903
|
})
|
|
3883
3904
|
|
|
3884
|
-
|
|
3905
|
+
const TEMPLATE = String(String).split('String')
|
|
3885
3906
|
|
|
3886
|
-
|
|
3907
|
+
const makeBuiltIn = module.exports = function (value, name, options) {
|
|
3887
3908
|
if (stringSlice($String(name), 0, 7) === 'Symbol(') {
|
|
3888
3909
|
name = '[' + replace($String(name), /^Symbol\(([^)]*)\).*$/, '$1') + ']'
|
|
3889
3910
|
}
|
|
@@ -3902,7 +3923,7 @@
|
|
|
3902
3923
|
// in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable
|
|
3903
3924
|
} else if (value.prototype) value.prototype = undefined
|
|
3904
3925
|
} catch (error) { /* empty */ }
|
|
3905
|
-
|
|
3926
|
+
const state = enforceInternalState(value)
|
|
3906
3927
|
if (!hasOwn(state, 'source')) {
|
|
3907
3928
|
state.source = join(TEMPLATE, typeof name === 'string' ? name : '')
|
|
3908
3929
|
} return value
|
|
@@ -3916,56 +3937,56 @@
|
|
|
3916
3937
|
}, { '../internals/descriptors': 41, '../internals/fails': 47, '../internals/function-name': 52, '../internals/function-uncurry-this': 54, '../internals/has-own-property': 61, '../internals/inspect-source': 66, '../internals/internal-state': 67, '../internals/is-callable': 69 }],
|
|
3917
3938
|
86: [function (require, module, exports) {
|
|
3918
3939
|
'use strict'
|
|
3919
|
-
|
|
3920
|
-
|
|
3940
|
+
const ceil = Math.ceil
|
|
3941
|
+
const floor = Math.floor
|
|
3921
3942
|
|
|
3922
3943
|
// `Math.trunc` method
|
|
3923
3944
|
// https://tc39.es/ecma262/#sec-math.trunc
|
|
3924
3945
|
// eslint-disable-next-line es/no-math-trunc -- safe
|
|
3925
3946
|
module.exports = Math.trunc || function trunc (x) {
|
|
3926
|
-
|
|
3947
|
+
const n = +x
|
|
3927
3948
|
return (n > 0 ? floor : ceil)(n)
|
|
3928
3949
|
}
|
|
3929
3950
|
}, {}],
|
|
3930
3951
|
87: [function (require, module, exports) {
|
|
3931
3952
|
'use strict'
|
|
3932
3953
|
/* global ActiveXObject -- old IE, WSH */
|
|
3933
|
-
|
|
3934
|
-
|
|
3935
|
-
|
|
3936
|
-
|
|
3937
|
-
|
|
3938
|
-
|
|
3939
|
-
|
|
3940
|
-
|
|
3941
|
-
|
|
3942
|
-
|
|
3943
|
-
|
|
3944
|
-
|
|
3945
|
-
|
|
3946
|
-
|
|
3947
|
-
|
|
3948
|
-
|
|
3949
|
-
|
|
3954
|
+
const anObject = require('../internals/an-object')
|
|
3955
|
+
const definePropertiesModule = require('../internals/object-define-properties')
|
|
3956
|
+
const enumBugKeys = require('../internals/enum-bug-keys')
|
|
3957
|
+
const hiddenKeys = require('../internals/hidden-keys')
|
|
3958
|
+
const html = require('../internals/html')
|
|
3959
|
+
const documentCreateElement = require('../internals/document-create-element')
|
|
3960
|
+
const sharedKey = require('../internals/shared-key')
|
|
3961
|
+
|
|
3962
|
+
const GT = '>'
|
|
3963
|
+
const LT = '<'
|
|
3964
|
+
const PROTOTYPE = 'prototype'
|
|
3965
|
+
const SCRIPT = 'script'
|
|
3966
|
+
const IE_PROTO = sharedKey('IE_PROTO')
|
|
3967
|
+
|
|
3968
|
+
const EmptyConstructor = function () { /* empty */ }
|
|
3969
|
+
|
|
3970
|
+
const scriptTag = function (content) {
|
|
3950
3971
|
return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT
|
|
3951
3972
|
}
|
|
3952
3973
|
|
|
3953
3974
|
// Create object with fake `null` prototype: use ActiveX Object with cleared prototype
|
|
3954
|
-
|
|
3975
|
+
const NullProtoObjectViaActiveX = function (activeXDocument) {
|
|
3955
3976
|
activeXDocument.write(scriptTag(''))
|
|
3956
3977
|
activeXDocument.close()
|
|
3957
|
-
|
|
3978
|
+
const temp = activeXDocument.parentWindow.Object
|
|
3958
3979
|
// eslint-disable-next-line no-useless-assignment -- avoid memory leak
|
|
3959
3980
|
activeXDocument = null
|
|
3960
3981
|
return temp
|
|
3961
3982
|
}
|
|
3962
3983
|
|
|
3963
3984
|
// Create object with fake `null` prototype: use iframe Object with cleared prototype
|
|
3964
|
-
|
|
3985
|
+
const NullProtoObjectViaIFrame = function () {
|
|
3965
3986
|
// Thrash, waste and sodomy: IE GC bug
|
|
3966
|
-
|
|
3967
|
-
|
|
3968
|
-
|
|
3987
|
+
const iframe = documentCreateElement('iframe')
|
|
3988
|
+
const JS = 'java' + SCRIPT + ':'
|
|
3989
|
+
let iframeDocument
|
|
3969
3990
|
iframe.style.display = 'none'
|
|
3970
3991
|
html.appendChild(iframe)
|
|
3971
3992
|
// https://github.com/zloirock/core-js/issues/475
|
|
@@ -3982,8 +4003,8 @@
|
|
|
3982
4003
|
// see https://github.com/es-shims/es5-shim/issues/150
|
|
3983
4004
|
// variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346
|
|
3984
4005
|
// avoid IE GC bug
|
|
3985
|
-
|
|
3986
|
-
|
|
4006
|
+
let activeXDocument
|
|
4007
|
+
let NullProtoObject = function () {
|
|
3987
4008
|
try {
|
|
3988
4009
|
activeXDocument = new ActiveXObject('htmlfile')
|
|
3989
4010
|
} catch (error) { /* ignore */ }
|
|
@@ -3992,7 +4013,7 @@
|
|
|
3992
4013
|
? NullProtoObjectViaActiveX(activeXDocument) // old IE
|
|
3993
4014
|
: NullProtoObjectViaIFrame()
|
|
3994
4015
|
: NullProtoObjectViaActiveX(activeXDocument) // WSH
|
|
3995
|
-
|
|
4016
|
+
let length = enumBugKeys.length
|
|
3996
4017
|
while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]]
|
|
3997
4018
|
return NullProtoObject()
|
|
3998
4019
|
}
|
|
@@ -4003,7 +4024,7 @@
|
|
|
4003
4024
|
// https://tc39.es/ecma262/#sec-object.create
|
|
4004
4025
|
// eslint-disable-next-line es/no-object-create -- safe
|
|
4005
4026
|
module.exports = Object.create || function create (O, Properties) {
|
|
4006
|
-
|
|
4027
|
+
let result
|
|
4007
4028
|
if (O !== null) {
|
|
4008
4029
|
EmptyConstructor[PROTOTYPE] = anObject(O)
|
|
4009
4030
|
result = new EmptyConstructor()
|
|
@@ -4016,62 +4037,66 @@
|
|
|
4016
4037
|
}, { '../internals/an-object': 27, '../internals/document-create-element': 42, '../internals/enum-bug-keys': 43, '../internals/hidden-keys': 62, '../internals/html': 63, '../internals/object-define-properties': 88, '../internals/shared-key': 101 }],
|
|
4017
4038
|
88: [function (require, module, exports) {
|
|
4018
4039
|
'use strict'
|
|
4019
|
-
|
|
4020
|
-
|
|
4021
|
-
|
|
4022
|
-
|
|
4023
|
-
|
|
4024
|
-
|
|
4040
|
+
const DESCRIPTORS = require('../internals/descriptors')
|
|
4041
|
+
const V8_PROTOTYPE_DEFINE_BUG = require('../internals/v8-prototype-define-bug')
|
|
4042
|
+
const definePropertyModule = require('../internals/object-define-property')
|
|
4043
|
+
const anObject = require('../internals/an-object')
|
|
4044
|
+
const toIndexedObject = require('../internals/to-indexed-object')
|
|
4045
|
+
const objectKeys = require('../internals/object-keys')
|
|
4025
4046
|
|
|
4026
4047
|
// `Object.defineProperties` method
|
|
4027
4048
|
// https://tc39.es/ecma262/#sec-object.defineproperties
|
|
4028
4049
|
// eslint-disable-next-line es/no-object-defineproperties -- safe
|
|
4029
|
-
exports.f = DESCRIPTORS && !V8_PROTOTYPE_DEFINE_BUG
|
|
4030
|
-
|
|
4031
|
-
|
|
4032
|
-
|
|
4033
|
-
|
|
4034
|
-
|
|
4035
|
-
|
|
4036
|
-
|
|
4037
|
-
|
|
4038
|
-
|
|
4050
|
+
exports.f = DESCRIPTORS && !V8_PROTOTYPE_DEFINE_BUG
|
|
4051
|
+
? Object.defineProperties
|
|
4052
|
+
: function defineProperties (O, Properties) {
|
|
4053
|
+
anObject(O)
|
|
4054
|
+
const props = toIndexedObject(Properties)
|
|
4055
|
+
const keys = objectKeys(Properties)
|
|
4056
|
+
const length = keys.length
|
|
4057
|
+
let index = 0
|
|
4058
|
+
let key
|
|
4059
|
+
while (length > index) definePropertyModule.f(O, key = keys[index++], props[key])
|
|
4060
|
+
return O
|
|
4061
|
+
}
|
|
4039
4062
|
}, { '../internals/an-object': 27, '../internals/descriptors': 41, '../internals/object-define-property': 89, '../internals/object-keys': 96, '../internals/to-indexed-object': 106, '../internals/v8-prototype-define-bug': 115 }],
|
|
4040
4063
|
89: [function (require, module, exports) {
|
|
4041
4064
|
'use strict'
|
|
4042
|
-
|
|
4043
|
-
|
|
4044
|
-
|
|
4045
|
-
|
|
4046
|
-
|
|
4065
|
+
const DESCRIPTORS = require('../internals/descriptors')
|
|
4066
|
+
const IE8_DOM_DEFINE = require('../internals/ie8-dom-define')
|
|
4067
|
+
const V8_PROTOTYPE_DEFINE_BUG = require('../internals/v8-prototype-define-bug')
|
|
4068
|
+
const anObject = require('../internals/an-object')
|
|
4069
|
+
const toPropertyKey = require('../internals/to-property-key')
|
|
4047
4070
|
|
|
4048
|
-
|
|
4071
|
+
const $TypeError = TypeError
|
|
4049
4072
|
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
4050
|
-
|
|
4073
|
+
const $defineProperty = Object.defineProperty
|
|
4051
4074
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
4052
|
-
|
|
4053
|
-
|
|
4054
|
-
|
|
4055
|
-
|
|
4075
|
+
const $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor
|
|
4076
|
+
const ENUMERABLE = 'enumerable'
|
|
4077
|
+
const CONFIGURABLE = 'configurable'
|
|
4078
|
+
const WRITABLE = 'writable'
|
|
4056
4079
|
|
|
4057
4080
|
// `Object.defineProperty` method
|
|
4058
4081
|
// https://tc39.es/ecma262/#sec-object.defineproperty
|
|
4059
|
-
exports.f = DESCRIPTORS ? V8_PROTOTYPE_DEFINE_BUG
|
|
4060
|
-
|
|
4061
|
-
|
|
4062
|
-
|
|
4063
|
-
|
|
4064
|
-
|
|
4065
|
-
|
|
4066
|
-
|
|
4067
|
-
|
|
4068
|
-
|
|
4069
|
-
|
|
4070
|
-
|
|
4082
|
+
exports.f = DESCRIPTORS ? V8_PROTOTYPE_DEFINE_BUG
|
|
4083
|
+
? function defineProperty (O, P, Attributes) {
|
|
4084
|
+
anObject(O)
|
|
4085
|
+
P = toPropertyKey(P)
|
|
4086
|
+
anObject(Attributes)
|
|
4087
|
+
if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
|
|
4088
|
+
const current = $getOwnPropertyDescriptor(O, P)
|
|
4089
|
+
if (current && current[WRITABLE]) {
|
|
4090
|
+
O[P] = Attributes.value
|
|
4091
|
+
Attributes = {
|
|
4092
|
+
configurable: CONFIGURABLE in Attributes ? Attributes[CONFIGURABLE] : current[CONFIGURABLE],
|
|
4093
|
+
enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],
|
|
4094
|
+
writable: false
|
|
4095
|
+
}
|
|
4071
4096
|
}
|
|
4072
|
-
}
|
|
4073
|
-
}
|
|
4074
|
-
|
|
4097
|
+
} return $defineProperty(O, P, Attributes)
|
|
4098
|
+
}
|
|
4099
|
+
: $defineProperty : function defineProperty (O, P, Attributes) {
|
|
4075
4100
|
anObject(O)
|
|
4076
4101
|
P = toPropertyKey(P)
|
|
4077
4102
|
anObject(Attributes)
|
|
@@ -4087,17 +4112,17 @@
|
|
|
4087
4112
|
}, { '../internals/an-object': 27, '../internals/descriptors': 41, '../internals/ie8-dom-define': 64, '../internals/to-property-key': 111, '../internals/v8-prototype-define-bug': 115 }],
|
|
4088
4113
|
90: [function (require, module, exports) {
|
|
4089
4114
|
'use strict'
|
|
4090
|
-
|
|
4091
|
-
|
|
4092
|
-
|
|
4093
|
-
|
|
4094
|
-
|
|
4095
|
-
|
|
4096
|
-
|
|
4097
|
-
|
|
4115
|
+
const DESCRIPTORS = require('../internals/descriptors')
|
|
4116
|
+
const call = require('../internals/function-call')
|
|
4117
|
+
const propertyIsEnumerableModule = require('../internals/object-property-is-enumerable')
|
|
4118
|
+
const createPropertyDescriptor = require('../internals/create-property-descriptor')
|
|
4119
|
+
const toIndexedObject = require('../internals/to-indexed-object')
|
|
4120
|
+
const toPropertyKey = require('../internals/to-property-key')
|
|
4121
|
+
const hasOwn = require('../internals/has-own-property')
|
|
4122
|
+
const IE8_DOM_DEFINE = require('../internals/ie8-dom-define')
|
|
4098
4123
|
|
|
4099
4124
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
4100
|
-
|
|
4125
|
+
const $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor
|
|
4101
4126
|
|
|
4102
4127
|
// `Object.getOwnPropertyDescriptor` method
|
|
4103
4128
|
// https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
|
|
@@ -4114,10 +4139,10 @@
|
|
|
4114
4139
|
}, { '../internals/create-property-descriptor': 35, '../internals/descriptors': 41, '../internals/function-call': 51, '../internals/has-own-property': 61, '../internals/ie8-dom-define': 64, '../internals/object-property-is-enumerable': 97, '../internals/to-indexed-object': 106, '../internals/to-property-key': 111 }],
|
|
4115
4140
|
91: [function (require, module, exports) {
|
|
4116
4141
|
'use strict'
|
|
4117
|
-
|
|
4118
|
-
|
|
4142
|
+
const internalObjectKeys = require('../internals/object-keys-internal')
|
|
4143
|
+
const enumBugKeys = require('../internals/enum-bug-keys')
|
|
4119
4144
|
|
|
4120
|
-
|
|
4145
|
+
const hiddenKeys = enumBugKeys.concat('length', 'prototype')
|
|
4121
4146
|
|
|
4122
4147
|
// `Object.getOwnPropertyNames` method
|
|
4123
4148
|
// https://tc39.es/ecma262/#sec-object.getownpropertynames
|
|
@@ -4133,49 +4158,51 @@
|
|
|
4133
4158
|
}, {}],
|
|
4134
4159
|
93: [function (require, module, exports) {
|
|
4135
4160
|
'use strict'
|
|
4136
|
-
|
|
4137
|
-
|
|
4138
|
-
|
|
4139
|
-
|
|
4140
|
-
|
|
4161
|
+
const hasOwn = require('../internals/has-own-property')
|
|
4162
|
+
const isCallable = require('../internals/is-callable')
|
|
4163
|
+
const toObject = require('../internals/to-object')
|
|
4164
|
+
const sharedKey = require('../internals/shared-key')
|
|
4165
|
+
const CORRECT_PROTOTYPE_GETTER = require('../internals/correct-prototype-getter')
|
|
4141
4166
|
|
|
4142
|
-
|
|
4143
|
-
|
|
4144
|
-
|
|
4167
|
+
const IE_PROTO = sharedKey('IE_PROTO')
|
|
4168
|
+
const $Object = Object
|
|
4169
|
+
const ObjectPrototype = $Object.prototype
|
|
4145
4170
|
|
|
4146
4171
|
// `Object.getPrototypeOf` method
|
|
4147
4172
|
// https://tc39.es/ecma262/#sec-object.getprototypeof
|
|
4148
4173
|
// eslint-disable-next-line es/no-object-getprototypeof -- safe
|
|
4149
|
-
module.exports = CORRECT_PROTOTYPE_GETTER
|
|
4150
|
-
|
|
4151
|
-
|
|
4152
|
-
|
|
4153
|
-
|
|
4154
|
-
|
|
4155
|
-
|
|
4156
|
-
|
|
4174
|
+
module.exports = CORRECT_PROTOTYPE_GETTER
|
|
4175
|
+
? $Object.getPrototypeOf
|
|
4176
|
+
: function (O) {
|
|
4177
|
+
const object = toObject(O)
|
|
4178
|
+
if (hasOwn(object, IE_PROTO)) return object[IE_PROTO]
|
|
4179
|
+
const constructor = object.constructor
|
|
4180
|
+
if (isCallable(constructor) && object instanceof constructor) {
|
|
4181
|
+
return constructor.prototype
|
|
4182
|
+
} return object instanceof $Object ? ObjectPrototype : null
|
|
4183
|
+
}
|
|
4157
4184
|
}, { '../internals/correct-prototype-getter': 32, '../internals/has-own-property': 61, '../internals/is-callable': 69, '../internals/shared-key': 101, '../internals/to-object': 109 }],
|
|
4158
4185
|
94: [function (require, module, exports) {
|
|
4159
4186
|
'use strict'
|
|
4160
|
-
|
|
4187
|
+
const uncurryThis = require('../internals/function-uncurry-this')
|
|
4161
4188
|
|
|
4162
4189
|
module.exports = uncurryThis({}.isPrototypeOf)
|
|
4163
4190
|
}, { '../internals/function-uncurry-this': 54 }],
|
|
4164
4191
|
95: [function (require, module, exports) {
|
|
4165
4192
|
'use strict'
|
|
4166
|
-
|
|
4167
|
-
|
|
4168
|
-
|
|
4169
|
-
|
|
4170
|
-
|
|
4193
|
+
const uncurryThis = require('../internals/function-uncurry-this')
|
|
4194
|
+
const hasOwn = require('../internals/has-own-property')
|
|
4195
|
+
const toIndexedObject = require('../internals/to-indexed-object')
|
|
4196
|
+
const indexOf = require('../internals/array-includes').indexOf
|
|
4197
|
+
const hiddenKeys = require('../internals/hidden-keys')
|
|
4171
4198
|
|
|
4172
|
-
|
|
4199
|
+
const push = uncurryThis([].push)
|
|
4173
4200
|
|
|
4174
4201
|
module.exports = function (object, names) {
|
|
4175
|
-
|
|
4176
|
-
|
|
4177
|
-
|
|
4178
|
-
|
|
4202
|
+
const O = toIndexedObject(object)
|
|
4203
|
+
let i = 0
|
|
4204
|
+
const result = []
|
|
4205
|
+
let key
|
|
4179
4206
|
for (key in O) !hasOwn(hiddenKeys, key) && hasOwn(O, key) && push(result, key)
|
|
4180
4207
|
// Don't enum bug & hidden keys
|
|
4181
4208
|
while (names.length > i) {
|
|
@@ -4188,8 +4215,8 @@
|
|
|
4188
4215
|
}, { '../internals/array-includes': 28, '../internals/function-uncurry-this': 54, '../internals/has-own-property': 61, '../internals/hidden-keys': 62, '../internals/to-indexed-object': 106 }],
|
|
4189
4216
|
96: [function (require, module, exports) {
|
|
4190
4217
|
'use strict'
|
|
4191
|
-
|
|
4192
|
-
|
|
4218
|
+
const internalObjectKeys = require('../internals/object-keys-internal')
|
|
4219
|
+
const enumBugKeys = require('../internals/enum-bug-keys')
|
|
4193
4220
|
|
|
4194
4221
|
// `Object.keys` method
|
|
4195
4222
|
// https://tc39.es/ecma262/#sec-object.keys
|
|
@@ -4200,32 +4227,34 @@
|
|
|
4200
4227
|
}, { '../internals/enum-bug-keys': 43, '../internals/object-keys-internal': 95 }],
|
|
4201
4228
|
97: [function (require, module, exports) {
|
|
4202
4229
|
'use strict'
|
|
4203
|
-
|
|
4230
|
+
const $propertyIsEnumerable = {}.propertyIsEnumerable
|
|
4204
4231
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
4205
|
-
|
|
4232
|
+
const getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor
|
|
4206
4233
|
|
|
4207
4234
|
// Nashorn ~ JDK8 bug
|
|
4208
|
-
|
|
4235
|
+
const NASHORN_BUG = getOwnPropertyDescriptor && !$propertyIsEnumerable.call({ 1: 2 }, 1)
|
|
4209
4236
|
|
|
4210
4237
|
// `Object.prototype.propertyIsEnumerable` method implementation
|
|
4211
4238
|
// https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
|
|
4212
|
-
exports.f = NASHORN_BUG
|
|
4213
|
-
|
|
4214
|
-
|
|
4215
|
-
|
|
4239
|
+
exports.f = NASHORN_BUG
|
|
4240
|
+
? function propertyIsEnumerable (V) {
|
|
4241
|
+
const descriptor = getOwnPropertyDescriptor(this, V)
|
|
4242
|
+
return !!descriptor && descriptor.enumerable
|
|
4243
|
+
}
|
|
4244
|
+
: $propertyIsEnumerable
|
|
4216
4245
|
}, {}],
|
|
4217
4246
|
98: [function (require, module, exports) {
|
|
4218
4247
|
'use strict'
|
|
4219
|
-
|
|
4220
|
-
|
|
4221
|
-
|
|
4248
|
+
const call = require('../internals/function-call')
|
|
4249
|
+
const isCallable = require('../internals/is-callable')
|
|
4250
|
+
const isObject = require('../internals/is-object')
|
|
4222
4251
|
|
|
4223
|
-
|
|
4252
|
+
const $TypeError = TypeError
|
|
4224
4253
|
|
|
4225
4254
|
// `OrdinaryToPrimitive` abstract operation
|
|
4226
4255
|
// https://tc39.es/ecma262/#sec-ordinarytoprimitive
|
|
4227
4256
|
module.exports = function (input, pref) {
|
|
4228
|
-
|
|
4257
|
+
let fn, val
|
|
4229
4258
|
if (pref === 'string' && isCallable(fn = input.toString) && !isObject(val = call(fn, input))) return val
|
|
4230
4259
|
if (isCallable(fn = input.valueOf) && !isObject(val = call(fn, input))) return val
|
|
4231
4260
|
if (pref !== 'string' && isCallable(fn = input.toString) && !isObject(val = call(fn, input))) return val
|
|
@@ -4234,26 +4263,26 @@
|
|
|
4234
4263
|
}, { '../internals/function-call': 51, '../internals/is-callable': 69, '../internals/is-object': 72 }],
|
|
4235
4264
|
99: [function (require, module, exports) {
|
|
4236
4265
|
'use strict'
|
|
4237
|
-
|
|
4238
|
-
|
|
4239
|
-
|
|
4240
|
-
|
|
4241
|
-
|
|
4266
|
+
const getBuiltIn = require('../internals/get-built-in')
|
|
4267
|
+
const uncurryThis = require('../internals/function-uncurry-this')
|
|
4268
|
+
const getOwnPropertyNamesModule = require('../internals/object-get-own-property-names')
|
|
4269
|
+
const getOwnPropertySymbolsModule = require('../internals/object-get-own-property-symbols')
|
|
4270
|
+
const anObject = require('../internals/an-object')
|
|
4242
4271
|
|
|
4243
|
-
|
|
4272
|
+
const concat = uncurryThis([].concat)
|
|
4244
4273
|
|
|
4245
4274
|
// all object keys, includes non-enumerable and symbols
|
|
4246
4275
|
module.exports = getBuiltIn('Reflect', 'ownKeys') || function ownKeys (it) {
|
|
4247
|
-
|
|
4248
|
-
|
|
4276
|
+
const keys = getOwnPropertyNamesModule.f(anObject(it))
|
|
4277
|
+
const getOwnPropertySymbols = getOwnPropertySymbolsModule.f
|
|
4249
4278
|
return getOwnPropertySymbols ? concat(keys, getOwnPropertySymbols(it)) : keys
|
|
4250
4279
|
}
|
|
4251
4280
|
}, { '../internals/an-object': 27, '../internals/function-uncurry-this': 54, '../internals/get-built-in': 55, '../internals/object-get-own-property-names': 91, '../internals/object-get-own-property-symbols': 92 }],
|
|
4252
4281
|
100: [function (require, module, exports) {
|
|
4253
4282
|
'use strict'
|
|
4254
|
-
|
|
4283
|
+
const isNullOrUndefined = require('../internals/is-null-or-undefined')
|
|
4255
4284
|
|
|
4256
|
-
|
|
4285
|
+
const $TypeError = TypeError
|
|
4257
4286
|
|
|
4258
4287
|
// `RequireObjectCoercible` abstract operation
|
|
4259
4288
|
// https://tc39.es/ecma262/#sec-requireobjectcoercible
|
|
@@ -4264,10 +4293,10 @@
|
|
|
4264
4293
|
}, { '../internals/is-null-or-undefined': 71 }],
|
|
4265
4294
|
101: [function (require, module, exports) {
|
|
4266
4295
|
'use strict'
|
|
4267
|
-
|
|
4268
|
-
|
|
4296
|
+
const shared = require('../internals/shared')
|
|
4297
|
+
const uid = require('../internals/uid')
|
|
4269
4298
|
|
|
4270
|
-
|
|
4299
|
+
const keys = shared('keys')
|
|
4271
4300
|
|
|
4272
4301
|
module.exports = function (key) {
|
|
4273
4302
|
return keys[key] || (keys[key] = uid(key))
|
|
@@ -4275,12 +4304,12 @@
|
|
|
4275
4304
|
}, { '../internals/shared': 103, '../internals/uid': 113 }],
|
|
4276
4305
|
102: [function (require, module, exports) {
|
|
4277
4306
|
'use strict'
|
|
4278
|
-
|
|
4279
|
-
|
|
4280
|
-
|
|
4307
|
+
const IS_PURE = require('../internals/is-pure')
|
|
4308
|
+
const globalThis = require('../internals/global-this')
|
|
4309
|
+
const defineGlobalProperty = require('../internals/define-global-property')
|
|
4281
4310
|
|
|
4282
|
-
|
|
4283
|
-
|
|
4311
|
+
const SHARED = '__core-js_shared__'
|
|
4312
|
+
const store = module.exports = globalThis[SHARED] || defineGlobalProperty(SHARED, {});
|
|
4284
4313
|
|
|
4285
4314
|
(store.versions || (store.versions = [])).push({
|
|
4286
4315
|
version: '3.50.0',
|
|
@@ -4292,9 +4321,9 @@
|
|
|
4292
4321
|
}, { '../internals/define-global-property': 40, '../internals/global-this': 60, '../internals/is-pure': 73 }],
|
|
4293
4322
|
103: [function (require, module, exports) {
|
|
4294
4323
|
'use strict'
|
|
4295
|
-
|
|
4324
|
+
const store = require('../internals/shared-store')
|
|
4296
4325
|
// eslint-disable-next-line es/no-object-create -- safe
|
|
4297
|
-
|
|
4326
|
+
const create = Object.create || Object
|
|
4298
4327
|
|
|
4299
4328
|
module.exports = function (key, value) {
|
|
4300
4329
|
return store[key] || (store[key] = value || create(null))
|
|
@@ -4303,15 +4332,15 @@
|
|
|
4303
4332
|
104: [function (require, module, exports) {
|
|
4304
4333
|
'use strict'
|
|
4305
4334
|
/* eslint-disable es/no-symbol -- required for testing */
|
|
4306
|
-
|
|
4307
|
-
|
|
4308
|
-
|
|
4335
|
+
const V8_VERSION = require('../internals/environment-v8-version')
|
|
4336
|
+
const fails = require('../internals/fails')
|
|
4337
|
+
const globalThis = require('../internals/global-this')
|
|
4309
4338
|
|
|
4310
|
-
|
|
4339
|
+
const $String = globalThis.String
|
|
4311
4340
|
|
|
4312
4341
|
// eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
|
|
4313
4342
|
module.exports = !!Object.getOwnPropertySymbols && !fails(function () {
|
|
4314
|
-
|
|
4343
|
+
const symbol = Symbol('symbol detection')
|
|
4315
4344
|
// Chrome 38 Symbol has incorrect toString conversion
|
|
4316
4345
|
// `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
|
|
4317
4346
|
// nb: Do not call `String` directly to avoid this being optimized out to `symbol+''` which will,
|
|
@@ -4323,24 +4352,24 @@
|
|
|
4323
4352
|
}, { '../internals/environment-v8-version': 45, '../internals/fails': 47, '../internals/global-this': 60 }],
|
|
4324
4353
|
105: [function (require, module, exports) {
|
|
4325
4354
|
'use strict'
|
|
4326
|
-
|
|
4355
|
+
const toIntegerOrInfinity = require('../internals/to-integer-or-infinity')
|
|
4327
4356
|
|
|
4328
|
-
|
|
4329
|
-
|
|
4357
|
+
const max = Math.max
|
|
4358
|
+
const min = Math.min
|
|
4330
4359
|
|
|
4331
4360
|
// Helper for a popular repeating case of the spec:
|
|
4332
4361
|
// Let integer be ? ToInteger(index).
|
|
4333
4362
|
// If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
|
|
4334
4363
|
module.exports = function (index, length) {
|
|
4335
|
-
|
|
4364
|
+
const integer = toIntegerOrInfinity(index)
|
|
4336
4365
|
return integer < 0 ? max(integer + length, 0) : min(integer, length)
|
|
4337
4366
|
}
|
|
4338
4367
|
}, { '../internals/to-integer-or-infinity': 107 }],
|
|
4339
4368
|
106: [function (require, module, exports) {
|
|
4340
4369
|
'use strict'
|
|
4341
4370
|
// toObject with fallback for non-array-like ES3 strings
|
|
4342
|
-
|
|
4343
|
-
|
|
4371
|
+
const IndexedObject = require('../internals/indexed-object')
|
|
4372
|
+
const requireObjectCoercible = require('../internals/require-object-coercible')
|
|
4344
4373
|
|
|
4345
4374
|
module.exports = function (it) {
|
|
4346
4375
|
return IndexedObject(requireObjectCoercible(it))
|
|
@@ -4348,34 +4377,34 @@
|
|
|
4348
4377
|
}, { '../internals/indexed-object': 65, '../internals/require-object-coercible': 100 }],
|
|
4349
4378
|
107: [function (require, module, exports) {
|
|
4350
4379
|
'use strict'
|
|
4351
|
-
|
|
4380
|
+
const trunc = require('../internals/math-trunc')
|
|
4352
4381
|
|
|
4353
4382
|
// `ToIntegerOrInfinity` abstract operation
|
|
4354
4383
|
// https://tc39.es/ecma262/#sec-tointegerorinfinity
|
|
4355
4384
|
module.exports = function (argument) {
|
|
4356
|
-
|
|
4385
|
+
const number = +argument
|
|
4357
4386
|
// eslint-disable-next-line no-self-compare -- NaN check
|
|
4358
4387
|
return number !== number || number === 0 ? 0 : trunc(number)
|
|
4359
4388
|
}
|
|
4360
4389
|
}, { '../internals/math-trunc': 86 }],
|
|
4361
4390
|
108: [function (require, module, exports) {
|
|
4362
4391
|
'use strict'
|
|
4363
|
-
|
|
4392
|
+
const toIntegerOrInfinity = require('../internals/to-integer-or-infinity')
|
|
4364
4393
|
|
|
4365
|
-
|
|
4394
|
+
const min = Math.min
|
|
4366
4395
|
|
|
4367
4396
|
// `ToLength` abstract operation
|
|
4368
4397
|
// https://tc39.es/ecma262/#sec-tolength
|
|
4369
4398
|
module.exports = function (argument) {
|
|
4370
|
-
|
|
4399
|
+
const len = toIntegerOrInfinity(argument)
|
|
4371
4400
|
return len > 0 ? min(len, 0x1FFFFFFFFFFFFF) : 0 // 2 ** 53 - 1 == 9007199254740991
|
|
4372
4401
|
}
|
|
4373
4402
|
}, { '../internals/to-integer-or-infinity': 107 }],
|
|
4374
4403
|
109: [function (require, module, exports) {
|
|
4375
4404
|
'use strict'
|
|
4376
|
-
|
|
4405
|
+
const requireObjectCoercible = require('../internals/require-object-coercible')
|
|
4377
4406
|
|
|
4378
|
-
|
|
4407
|
+
const $Object = Object
|
|
4379
4408
|
|
|
4380
4409
|
// `ToObject` abstract operation
|
|
4381
4410
|
// https://tc39.es/ecma262/#sec-toobject
|
|
@@ -4385,22 +4414,22 @@
|
|
|
4385
4414
|
}, { '../internals/require-object-coercible': 100 }],
|
|
4386
4415
|
110: [function (require, module, exports) {
|
|
4387
4416
|
'use strict'
|
|
4388
|
-
|
|
4389
|
-
|
|
4390
|
-
|
|
4391
|
-
|
|
4392
|
-
|
|
4393
|
-
|
|
4417
|
+
const call = require('../internals/function-call')
|
|
4418
|
+
const isObject = require('../internals/is-object')
|
|
4419
|
+
const isSymbol = require('../internals/is-symbol')
|
|
4420
|
+
const getMethod = require('../internals/get-method')
|
|
4421
|
+
const ordinaryToPrimitive = require('../internals/ordinary-to-primitive')
|
|
4422
|
+
const wellKnownSymbol = require('../internals/well-known-symbol')
|
|
4394
4423
|
|
|
4395
|
-
|
|
4396
|
-
|
|
4424
|
+
const $TypeError = TypeError
|
|
4425
|
+
const TO_PRIMITIVE = wellKnownSymbol('toPrimitive')
|
|
4397
4426
|
|
|
4398
4427
|
// `ToPrimitive` abstract operation
|
|
4399
4428
|
// https://tc39.es/ecma262/#sec-toprimitive
|
|
4400
4429
|
module.exports = function (input, pref) {
|
|
4401
4430
|
if (!isObject(input) || isSymbol(input)) return input
|
|
4402
|
-
|
|
4403
|
-
|
|
4431
|
+
const exoticToPrim = getMethod(input, TO_PRIMITIVE)
|
|
4432
|
+
let result
|
|
4404
4433
|
if (exoticToPrim) {
|
|
4405
4434
|
if (pref === undefined) pref = 'default'
|
|
4406
4435
|
result = call(exoticToPrim, input, pref)
|
|
@@ -4413,19 +4442,19 @@
|
|
|
4413
4442
|
}, { '../internals/function-call': 51, '../internals/get-method': 59, '../internals/is-object': 72, '../internals/is-symbol': 74, '../internals/ordinary-to-primitive': 98, '../internals/well-known-symbol': 117 }],
|
|
4414
4443
|
111: [function (require, module, exports) {
|
|
4415
4444
|
'use strict'
|
|
4416
|
-
|
|
4417
|
-
|
|
4445
|
+
const toPrimitive = require('../internals/to-primitive')
|
|
4446
|
+
const isSymbol = require('../internals/is-symbol')
|
|
4418
4447
|
|
|
4419
4448
|
// `ToPropertyKey` abstract operation
|
|
4420
4449
|
// https://tc39.es/ecma262/#sec-topropertykey
|
|
4421
4450
|
module.exports = function (argument) {
|
|
4422
|
-
|
|
4451
|
+
const key = toPrimitive(argument, 'string')
|
|
4423
4452
|
return isSymbol(key) ? key : key + ''
|
|
4424
4453
|
}
|
|
4425
4454
|
}, { '../internals/is-symbol': 74, '../internals/to-primitive': 110 }],
|
|
4426
4455
|
112: [function (require, module, exports) {
|
|
4427
4456
|
'use strict'
|
|
4428
|
-
|
|
4457
|
+
const $String = String
|
|
4429
4458
|
|
|
4430
4459
|
module.exports = function (argument) {
|
|
4431
4460
|
try {
|
|
@@ -4437,11 +4466,11 @@
|
|
|
4437
4466
|
}, {}],
|
|
4438
4467
|
113: [function (require, module, exports) {
|
|
4439
4468
|
'use strict'
|
|
4440
|
-
|
|
4469
|
+
const uncurryThis = require('../internals/function-uncurry-this')
|
|
4441
4470
|
|
|
4442
|
-
|
|
4443
|
-
|
|
4444
|
-
|
|
4471
|
+
let id = 0
|
|
4472
|
+
const postfix = Math.random()
|
|
4473
|
+
const toString = uncurryThis(1.1.toString)
|
|
4445
4474
|
|
|
4446
4475
|
module.exports = function (key) {
|
|
4447
4476
|
return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36)
|
|
@@ -4450,7 +4479,7 @@
|
|
|
4450
4479
|
114: [function (require, module, exports) {
|
|
4451
4480
|
'use strict'
|
|
4452
4481
|
/* eslint-disable es/no-symbol -- required for testing */
|
|
4453
|
-
|
|
4482
|
+
const NATIVE_SYMBOL = require('../internals/symbol-constructor-detection')
|
|
4454
4483
|
|
|
4455
4484
|
module.exports = NATIVE_SYMBOL &&
|
|
4456
4485
|
!Symbol.sham &&
|
|
@@ -4458,8 +4487,8 @@
|
|
|
4458
4487
|
}, { '../internals/symbol-constructor-detection': 104 }],
|
|
4459
4488
|
115: [function (require, module, exports) {
|
|
4460
4489
|
'use strict'
|
|
4461
|
-
|
|
4462
|
-
|
|
4490
|
+
const DESCRIPTORS = require('../internals/descriptors')
|
|
4491
|
+
const fails = require('../internals/fails')
|
|
4463
4492
|
|
|
4464
4493
|
// V8 ~ Chrome 36-
|
|
4465
4494
|
// https://bugs.chromium.org/p/v8/issues/detail?id=3334
|
|
@@ -4473,25 +4502,25 @@
|
|
|
4473
4502
|
}, { '../internals/descriptors': 41, '../internals/fails': 47 }],
|
|
4474
4503
|
116: [function (require, module, exports) {
|
|
4475
4504
|
'use strict'
|
|
4476
|
-
|
|
4477
|
-
|
|
4505
|
+
const globalThis = require('../internals/global-this')
|
|
4506
|
+
const isCallable = require('../internals/is-callable')
|
|
4478
4507
|
|
|
4479
|
-
|
|
4508
|
+
const WeakMap = globalThis.WeakMap
|
|
4480
4509
|
|
|
4481
4510
|
module.exports = isCallable(WeakMap) && /native code/.test(String(WeakMap))
|
|
4482
4511
|
}, { '../internals/global-this': 60, '../internals/is-callable': 69 }],
|
|
4483
4512
|
117: [function (require, module, exports) {
|
|
4484
4513
|
'use strict'
|
|
4485
|
-
|
|
4486
|
-
|
|
4487
|
-
|
|
4488
|
-
|
|
4489
|
-
|
|
4490
|
-
|
|
4514
|
+
const globalThis = require('../internals/global-this')
|
|
4515
|
+
const shared = require('../internals/shared')
|
|
4516
|
+
const hasOwn = require('../internals/has-own-property')
|
|
4517
|
+
const uid = require('../internals/uid')
|
|
4518
|
+
const NATIVE_SYMBOL = require('../internals/symbol-constructor-detection')
|
|
4519
|
+
const USE_SYMBOL_AS_UID = require('../internals/use-symbol-as-uid')
|
|
4491
4520
|
|
|
4492
|
-
|
|
4493
|
-
|
|
4494
|
-
|
|
4521
|
+
const Symbol = globalThis.Symbol
|
|
4522
|
+
const WellKnownSymbolsStore = shared('wks')
|
|
4523
|
+
const createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol.for || Symbol : Symbol && Symbol.withoutSetter || uid
|
|
4495
4524
|
|
|
4496
4525
|
module.exports = function (name) {
|
|
4497
4526
|
if (!hasOwn(WellKnownSymbolsStore, name)) {
|
|
@@ -4503,41 +4532,41 @@
|
|
|
4503
4532
|
}, { '../internals/global-this': 60, '../internals/has-own-property': 61, '../internals/shared': 103, '../internals/symbol-constructor-detection': 104, '../internals/uid': 113, '../internals/use-symbol-as-uid': 114 }],
|
|
4504
4533
|
118: [function (require, module, exports) {
|
|
4505
4534
|
'use strict'
|
|
4506
|
-
|
|
4507
|
-
|
|
4508
|
-
|
|
4509
|
-
|
|
4510
|
-
|
|
4511
|
-
|
|
4512
|
-
|
|
4513
|
-
|
|
4514
|
-
|
|
4515
|
-
|
|
4516
|
-
|
|
4517
|
-
|
|
4518
|
-
|
|
4519
|
-
|
|
4520
|
-
|
|
4521
|
-
|
|
4522
|
-
|
|
4523
|
-
|
|
4524
|
-
|
|
4525
|
-
|
|
4526
|
-
|
|
4535
|
+
const $ = require('../internals/export')
|
|
4536
|
+
const globalThis = require('../internals/global-this')
|
|
4537
|
+
const anInstance = require('../internals/an-instance')
|
|
4538
|
+
const anObject = require('../internals/an-object')
|
|
4539
|
+
const isCallable = require('../internals/is-callable')
|
|
4540
|
+
const getPrototypeOf = require('../internals/object-get-prototype-of')
|
|
4541
|
+
const defineBuiltInAccessor = require('../internals/define-built-in-accessor')
|
|
4542
|
+
const createProperty = require('../internals/create-property')
|
|
4543
|
+
const fails = require('../internals/fails')
|
|
4544
|
+
const hasOwn = require('../internals/has-own-property')
|
|
4545
|
+
const wellKnownSymbol = require('../internals/well-known-symbol')
|
|
4546
|
+
const IteratorPrototype = require('../internals/iterators-core').IteratorPrototype
|
|
4547
|
+
const DESCRIPTORS = require('../internals/descriptors')
|
|
4548
|
+
const IS_PURE = require('../internals/is-pure')
|
|
4549
|
+
|
|
4550
|
+
const CONSTRUCTOR = 'constructor'
|
|
4551
|
+
const ITERATOR = 'Iterator'
|
|
4552
|
+
const TO_STRING_TAG = wellKnownSymbol('toStringTag')
|
|
4553
|
+
|
|
4554
|
+
const $TypeError = TypeError
|
|
4555
|
+
const NativeIterator = globalThis[ITERATOR]
|
|
4527
4556
|
|
|
4528
4557
|
// FF56- have non-standard global helper `Iterator`
|
|
4529
|
-
|
|
4558
|
+
const FORCED = IS_PURE ||
|
|
4530
4559
|
!isCallable(NativeIterator) ||
|
|
4531
4560
|
NativeIterator.prototype !== IteratorPrototype ||
|
|
4532
4561
|
// FF44- non-standard `Iterator` passes previous tests
|
|
4533
4562
|
!fails(function () { NativeIterator({}) })
|
|
4534
4563
|
|
|
4535
|
-
|
|
4564
|
+
const IteratorConstructor = function Iterator () {
|
|
4536
4565
|
anInstance(this, IteratorPrototype)
|
|
4537
4566
|
if (getPrototypeOf(this) === IteratorPrototype) throw new $TypeError('Abstract class Iterator not directly constructable')
|
|
4538
4567
|
}
|
|
4539
4568
|
|
|
4540
|
-
|
|
4569
|
+
const defineIteratorPrototypeAccessor = function (key, value) {
|
|
4541
4570
|
if (DESCRIPTORS) {
|
|
4542
4571
|
defineBuiltInAccessor(IteratorPrototype, key, {
|
|
4543
4572
|
configurable: true,
|
|
@@ -4570,16 +4599,16 @@
|
|
|
4570
4599
|
}, { '../internals/an-instance': 26, '../internals/an-object': 27, '../internals/create-property': 36, '../internals/define-built-in-accessor': 37, '../internals/descriptors': 41, '../internals/export': 46, '../internals/fails': 47, '../internals/global-this': 60, '../internals/has-own-property': 61, '../internals/is-callable': 69, '../internals/is-pure': 73, '../internals/iterators-core': 82, '../internals/object-get-prototype-of': 93, '../internals/well-known-symbol': 117 }],
|
|
4571
4600
|
119: [function (require, module, exports) {
|
|
4572
4601
|
'use strict'
|
|
4573
|
-
|
|
4574
|
-
|
|
4575
|
-
|
|
4576
|
-
|
|
4577
|
-
|
|
4578
|
-
|
|
4579
|
-
|
|
4580
|
-
|
|
4602
|
+
const $ = require('../internals/export')
|
|
4603
|
+
const call = require('../internals/function-call')
|
|
4604
|
+
const iterate = require('../internals/iterate')
|
|
4605
|
+
const aCallable = require('../internals/a-callable')
|
|
4606
|
+
const anObject = require('../internals/an-object')
|
|
4607
|
+
const getIteratorDirect = require('../internals/get-iterator-direct')
|
|
4608
|
+
const iteratorClose = require('../internals/iterator-close')
|
|
4609
|
+
const iteratorHelperWithoutClosingOnEarlyError = require('../internals/iterator-helper-without-closing-on-early-error')
|
|
4581
4610
|
|
|
4582
|
-
|
|
4611
|
+
const forEachWithoutClosingOnEarlyError = iteratorHelperWithoutClosingOnEarlyError('forEach', TypeError)
|
|
4583
4612
|
|
|
4584
4613
|
// `Iterator.prototype.forEach` method
|
|
4585
4614
|
// https://tc39.es/ecma262/#sec-iterator.prototype.foreach
|
|
@@ -4594,8 +4623,8 @@
|
|
|
4594
4623
|
|
|
4595
4624
|
if (forEachWithoutClosingOnEarlyError) return call(forEachWithoutClosingOnEarlyError, this, fn)
|
|
4596
4625
|
|
|
4597
|
-
|
|
4598
|
-
|
|
4626
|
+
const record = getIteratorDirect(this)
|
|
4627
|
+
let counter = 0
|
|
4599
4628
|
iterate(record, function (value) {
|
|
4600
4629
|
fn(value, counter++)
|
|
4601
4630
|
}, { IS_RECORD: true })
|
|
@@ -4604,28 +4633,28 @@
|
|
|
4604
4633
|
}, { '../internals/a-callable': 25, '../internals/an-object': 27, '../internals/export': 46, '../internals/function-call': 51, '../internals/get-iterator-direct': 56, '../internals/iterate': 75, '../internals/iterator-close': 78, '../internals/iterator-helper-without-closing-on-early-error': 81 }],
|
|
4605
4634
|
120: [function (require, module, exports) {
|
|
4606
4635
|
'use strict'
|
|
4607
|
-
|
|
4608
|
-
|
|
4609
|
-
|
|
4610
|
-
|
|
4611
|
-
|
|
4612
|
-
|
|
4613
|
-
|
|
4614
|
-
|
|
4615
|
-
|
|
4616
|
-
|
|
4617
|
-
|
|
4618
|
-
|
|
4619
|
-
|
|
4620
|
-
|
|
4636
|
+
const $ = require('../internals/export')
|
|
4637
|
+
const call = require('../internals/function-call')
|
|
4638
|
+
const aCallable = require('../internals/a-callable')
|
|
4639
|
+
const anObject = require('../internals/an-object')
|
|
4640
|
+
const getIteratorDirect = require('../internals/get-iterator-direct')
|
|
4641
|
+
const createIteratorProxy = require('../internals/iterator-create-proxy')
|
|
4642
|
+
const callWithSafeIterationClosing = require('../internals/call-with-safe-iteration-closing')
|
|
4643
|
+
const iteratorClose = require('../internals/iterator-close')
|
|
4644
|
+
const iteratorHelperThrowsOnInvalidIterator = require('../internals/iterator-helper-throws-on-invalid-iterator')
|
|
4645
|
+
const iteratorHelperWithoutClosingOnEarlyError = require('../internals/iterator-helper-without-closing-on-early-error')
|
|
4646
|
+
const IS_PURE = require('../internals/is-pure')
|
|
4647
|
+
|
|
4648
|
+
const MAP_WITHOUT_THROWING_ON_INVALID_ITERATOR = !IS_PURE && !iteratorHelperThrowsOnInvalidIterator('map', function () { /* empty */ })
|
|
4649
|
+
const mapWithoutClosingOnEarlyError = !IS_PURE && !MAP_WITHOUT_THROWING_ON_INVALID_ITERATOR &&
|
|
4621
4650
|
iteratorHelperWithoutClosingOnEarlyError('map', TypeError)
|
|
4622
4651
|
|
|
4623
|
-
|
|
4652
|
+
const FORCED = IS_PURE || MAP_WITHOUT_THROWING_ON_INVALID_ITERATOR || mapWithoutClosingOnEarlyError
|
|
4624
4653
|
|
|
4625
|
-
|
|
4626
|
-
|
|
4627
|
-
|
|
4628
|
-
|
|
4654
|
+
const IteratorProxy = createIteratorProxy(function () {
|
|
4655
|
+
const iterator = this.iterator
|
|
4656
|
+
const result = anObject(call(this.next, iterator))
|
|
4657
|
+
const done = this.done = !!result.done
|
|
4629
4658
|
if (!done) return callWithSafeIterationClosing(iterator, this.mapper, [result.value, this.counter++], true)
|
|
4630
4659
|
})
|
|
4631
4660
|
|
|
@@ -4643,32 +4672,32 @@
|
|
|
4643
4672
|
if (mapWithoutClosingOnEarlyError) return call(mapWithoutClosingOnEarlyError, this, mapper)
|
|
4644
4673
|
|
|
4645
4674
|
return new IteratorProxy(getIteratorDirect(this), {
|
|
4646
|
-
mapper
|
|
4675
|
+
mapper
|
|
4647
4676
|
})
|
|
4648
4677
|
}
|
|
4649
4678
|
})
|
|
4650
4679
|
}, { '../internals/a-callable': 25, '../internals/an-object': 27, '../internals/call-with-safe-iteration-closing': 29, '../internals/export': 46, '../internals/function-call': 51, '../internals/get-iterator-direct': 56, '../internals/is-pure': 73, '../internals/iterator-close': 78, '../internals/iterator-create-proxy': 79, '../internals/iterator-helper-throws-on-invalid-iterator': 80, '../internals/iterator-helper-without-closing-on-early-error': 81 }],
|
|
4651
4680
|
121: [function (require, module, exports) {
|
|
4652
4681
|
'use strict'
|
|
4653
|
-
|
|
4654
|
-
|
|
4655
|
-
|
|
4656
|
-
|
|
4657
|
-
|
|
4658
|
-
|
|
4659
|
-
|
|
4660
|
-
|
|
4661
|
-
|
|
4662
|
-
|
|
4663
|
-
|
|
4682
|
+
const $ = require('../internals/export')
|
|
4683
|
+
const iterate = require('../internals/iterate')
|
|
4684
|
+
const aCallable = require('../internals/a-callable')
|
|
4685
|
+
const anObject = require('../internals/an-object')
|
|
4686
|
+
const getIteratorDirect = require('../internals/get-iterator-direct')
|
|
4687
|
+
const iteratorClose = require('../internals/iterator-close')
|
|
4688
|
+
const iteratorHelperWithoutClosingOnEarlyError = require('../internals/iterator-helper-without-closing-on-early-error')
|
|
4689
|
+
const apply = require('../internals/function-apply')
|
|
4690
|
+
const fails = require('../internals/fails')
|
|
4691
|
+
|
|
4692
|
+
const $TypeError = TypeError
|
|
4664
4693
|
|
|
4665
4694
|
// https://bugs.webkit.org/show_bug.cgi?id=291651
|
|
4666
|
-
|
|
4695
|
+
const FAILS_ON_INITIAL_UNDEFINED = fails(function () {
|
|
4667
4696
|
// eslint-disable-next-line es/no-iterator-prototype-reduce, es/no-array-prototype-keys, array-callback-return -- required for testing
|
|
4668
4697
|
[].keys().reduce(function () { /* empty */ }, undefined)
|
|
4669
4698
|
})
|
|
4670
4699
|
|
|
4671
|
-
|
|
4700
|
+
const reduceWithoutClosingOnEarlyError = !FAILS_ON_INITIAL_UNDEFINED && iteratorHelperWithoutClosingOnEarlyError('reduce', $TypeError)
|
|
4672
4701
|
|
|
4673
4702
|
// `Iterator.prototype.reduce` method
|
|
4674
4703
|
// https://tc39.es/ecma262/#sec-iterator.prototype.reduce
|
|
@@ -4681,13 +4710,13 @@
|
|
|
4681
4710
|
iteratorClose(this, 'throw', error)
|
|
4682
4711
|
}
|
|
4683
4712
|
|
|
4684
|
-
|
|
4685
|
-
|
|
4713
|
+
let noInitial = arguments.length < 2
|
|
4714
|
+
let accumulator = noInitial ? undefined : arguments[1]
|
|
4686
4715
|
if (reduceWithoutClosingOnEarlyError) {
|
|
4687
4716
|
return apply(reduceWithoutClosingOnEarlyError, this, noInitial ? [reducer] : [reducer, accumulator])
|
|
4688
4717
|
}
|
|
4689
|
-
|
|
4690
|
-
|
|
4718
|
+
const record = getIteratorDirect(this)
|
|
4719
|
+
let counter = 0
|
|
4691
4720
|
iterate(record, function (value) {
|
|
4692
4721
|
if (noInitial) {
|
|
4693
4722
|
noInitial = false
|