core-js-bundle 3.23.1 → 3.23.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/index.js +34 -28
- package/minified.js +9 -9
- package/minified.js.map +1 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* core-js 3.23.
|
|
2
|
+
* core-js 3.23.2
|
|
3
3
|
* © 2014-2022 Denis Pushkarev (zloirock.ru)
|
|
4
|
-
* license: https://github.com/zloirock/core-js/blob/v3.23.
|
|
4
|
+
* license: https://github.com/zloirock/core-js/blob/v3.23.2/LICENSE
|
|
5
5
|
* source: https://github.com/zloirock/core-js
|
|
6
6
|
*/
|
|
7
7
|
!function (undefined) { 'use strict'; /******/ (function(modules) { // webpackBootstrap
|
|
@@ -1328,10 +1328,10 @@ var store = __webpack_require__(35);
|
|
|
1328
1328
|
(module.exports = function (key, value) {
|
|
1329
1329
|
return store[key] || (store[key] = value !== undefined ? value : {});
|
|
1330
1330
|
})('versions', []).push({
|
|
1331
|
-
version: '3.23.
|
|
1331
|
+
version: '3.23.2',
|
|
1332
1332
|
mode: IS_PURE ? 'pure' : 'global',
|
|
1333
1333
|
copyright: '© 2014-2022 Denis Pushkarev (zloirock.ru)',
|
|
1334
|
-
license: 'https://github.com/zloirock/core-js/blob/v3.23.
|
|
1334
|
+
license: 'https://github.com/zloirock/core-js/blob/v3.23.2/LICENSE',
|
|
1335
1335
|
source: 'https://github.com/zloirock/core-js'
|
|
1336
1336
|
});
|
|
1337
1337
|
|
|
@@ -5949,7 +5949,10 @@ var getPrototypeOf = __webpack_require__(123);
|
|
|
5949
5949
|
var setPrototypeOf = __webpack_require__(111);
|
|
5950
5950
|
var wellKnownSymbol = __webpack_require__(32);
|
|
5951
5951
|
var uid = __webpack_require__(39);
|
|
5952
|
+
var InternalStateModule = __webpack_require__(50);
|
|
5952
5953
|
|
|
5954
|
+
var enforceInternalState = InternalStateModule.enforce;
|
|
5955
|
+
var getInternalState = InternalStateModule.get;
|
|
5953
5956
|
var Int8Array = global.Int8Array;
|
|
5954
5957
|
var Int8ArrayPrototype = Int8Array && Int8Array.prototype;
|
|
5955
5958
|
var Uint8ClampedArray = global.Uint8ClampedArray;
|
|
@@ -5961,7 +5964,7 @@ var TypeError = global.TypeError;
|
|
|
5961
5964
|
|
|
5962
5965
|
var TO_STRING_TAG = wellKnownSymbol('toStringTag');
|
|
5963
5966
|
var TYPED_ARRAY_TAG = uid('TYPED_ARRAY_TAG');
|
|
5964
|
-
var TYPED_ARRAY_CONSTRUCTOR =
|
|
5967
|
+
var TYPED_ARRAY_CONSTRUCTOR = 'TypedArrayConstructor';
|
|
5965
5968
|
// Fixing native typed arrays in Opera Presto crashes the browser, see #595
|
|
5966
5969
|
var NATIVE_ARRAY_BUFFER_VIEWS = NATIVE_ARRAY_BUFFER && !!setPrototypeOf && classof(global.opera) !== 'Opera';
|
|
5967
5970
|
var TYPED_ARRAY_TAG_REQUIRED = false;
|
|
@@ -5992,6 +5995,13 @@ var isView = function isView(it) {
|
|
|
5992
5995
|
|| hasOwn(BigIntArrayConstructorsList, klass);
|
|
5993
5996
|
};
|
|
5994
5997
|
|
|
5998
|
+
var getTypedArrayConstructor = function (it) {
|
|
5999
|
+
var proto = getPrototypeOf(it);
|
|
6000
|
+
if (!isObject(proto)) return;
|
|
6001
|
+
var state = getInternalState(proto);
|
|
6002
|
+
return (state && hasOwn(state, TYPED_ARRAY_CONSTRUCTOR)) ? state[TYPED_ARRAY_CONSTRUCTOR] : getTypedArrayConstructor(proto);
|
|
6003
|
+
};
|
|
6004
|
+
|
|
5995
6005
|
var isTypedArray = function (it) {
|
|
5996
6006
|
if (!isObject(it)) return false;
|
|
5997
6007
|
var klass = classof(it);
|
|
@@ -6056,14 +6066,14 @@ var exportTypedArrayStaticMethod = function (KEY, property, forced) {
|
|
|
6056
6066
|
for (NAME in TypedArrayConstructorsList) {
|
|
6057
6067
|
Constructor = global[NAME];
|
|
6058
6068
|
Prototype = Constructor && Constructor.prototype;
|
|
6059
|
-
if (Prototype)
|
|
6069
|
+
if (Prototype) enforceInternalState(Prototype)[TYPED_ARRAY_CONSTRUCTOR] = Constructor;
|
|
6060
6070
|
else NATIVE_ARRAY_BUFFER_VIEWS = false;
|
|
6061
6071
|
}
|
|
6062
6072
|
|
|
6063
6073
|
for (NAME in BigIntArrayConstructorsList) {
|
|
6064
6074
|
Constructor = global[NAME];
|
|
6065
6075
|
Prototype = Constructor && Constructor.prototype;
|
|
6066
|
-
if (Prototype)
|
|
6076
|
+
if (Prototype) enforceInternalState(Prototype)[TYPED_ARRAY_CONSTRUCTOR] = Constructor;
|
|
6067
6077
|
}
|
|
6068
6078
|
|
|
6069
6079
|
// WebKit bug - typed arrays constructors prototype is Object.prototype
|
|
@@ -6101,12 +6111,12 @@ if (DESCRIPTORS && !hasOwn(TypedArrayPrototype, TO_STRING_TAG)) {
|
|
|
6101
6111
|
|
|
6102
6112
|
module.exports = {
|
|
6103
6113
|
NATIVE_ARRAY_BUFFER_VIEWS: NATIVE_ARRAY_BUFFER_VIEWS,
|
|
6104
|
-
TYPED_ARRAY_CONSTRUCTOR: TYPED_ARRAY_CONSTRUCTOR,
|
|
6105
6114
|
TYPED_ARRAY_TAG: TYPED_ARRAY_TAG_REQUIRED && TYPED_ARRAY_TAG,
|
|
6106
6115
|
aTypedArray: aTypedArray,
|
|
6107
6116
|
aTypedArrayConstructor: aTypedArrayConstructor,
|
|
6108
6117
|
exportTypedArrayMethod: exportTypedArrayMethod,
|
|
6109
6118
|
exportTypedArrayStaticMethod: exportTypedArrayStaticMethod,
|
|
6119
|
+
getTypedArrayConstructor: getTypedArrayConstructor,
|
|
6110
6120
|
isView: isView,
|
|
6111
6121
|
isTypedArray: isTypedArray,
|
|
6112
6122
|
TypedArray: TypedArray,
|
|
@@ -12854,6 +12864,7 @@ var inheritIfRequired = __webpack_require__(114);
|
|
|
12854
12864
|
|
|
12855
12865
|
var getInternalState = InternalStateModule.get;
|
|
12856
12866
|
var setInternalState = InternalStateModule.set;
|
|
12867
|
+
var enforceInternalState = InternalStateModule.enforce;
|
|
12857
12868
|
var nativeDefineProperty = definePropertyModule.f;
|
|
12858
12869
|
var nativeGetOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
|
|
12859
12870
|
var round = Math.round;
|
|
@@ -12862,7 +12873,6 @@ var ArrayBuffer = ArrayBufferModule.ArrayBuffer;
|
|
|
12862
12873
|
var ArrayBufferPrototype = ArrayBuffer.prototype;
|
|
12863
12874
|
var DataView = ArrayBufferModule.DataView;
|
|
12864
12875
|
var NATIVE_ARRAY_BUFFER_VIEWS = ArrayBufferViewCore.NATIVE_ARRAY_BUFFER_VIEWS;
|
|
12865
|
-
var TYPED_ARRAY_CONSTRUCTOR = ArrayBufferViewCore.TYPED_ARRAY_CONSTRUCTOR;
|
|
12866
12876
|
var TYPED_ARRAY_TAG = ArrayBufferViewCore.TYPED_ARRAY_TAG;
|
|
12867
12877
|
var TypedArray = ArrayBufferViewCore.TypedArray;
|
|
12868
12878
|
var TypedArrayPrototype = ArrayBufferViewCore.TypedArrayPrototype;
|
|
@@ -13039,7 +13049,7 @@ if (DESCRIPTORS) {
|
|
|
13039
13049
|
createNonEnumerableProperty(TypedArrayConstructorPrototype, 'constructor', TypedArrayConstructor);
|
|
13040
13050
|
}
|
|
13041
13051
|
|
|
13042
|
-
|
|
13052
|
+
enforceInternalState(TypedArrayConstructorPrototype).TypedArrayConstructor = TypedArrayConstructor;
|
|
13043
13053
|
|
|
13044
13054
|
if (TYPED_ARRAY_TAG) {
|
|
13045
13055
|
createNonEnumerableProperty(TypedArrayConstructorPrototype, TYPED_ARRAY_TAG, CONSTRUCTOR_NAME);
|
|
@@ -13457,13 +13467,13 @@ module.exports = function (Constructor, list) {
|
|
|
13457
13467
|
var ArrayBufferViewCore = __webpack_require__(198);
|
|
13458
13468
|
var speciesConstructor = __webpack_require__(200);
|
|
13459
13469
|
|
|
13460
|
-
var TYPED_ARRAY_CONSTRUCTOR = ArrayBufferViewCore.TYPED_ARRAY_CONSTRUCTOR;
|
|
13461
13470
|
var aTypedArrayConstructor = ArrayBufferViewCore.aTypedArrayConstructor;
|
|
13471
|
+
var getTypedArrayConstructor = ArrayBufferViewCore.getTypedArrayConstructor;
|
|
13462
13472
|
|
|
13463
13473
|
// a part of `TypedArraySpeciesCreate` abstract operation
|
|
13464
13474
|
// https://tc39.es/ecma262/#typedarray-species-create
|
|
13465
13475
|
module.exports = function (originalArray) {
|
|
13466
|
-
return aTypedArrayConstructor(speciesConstructor(originalArray, originalArray
|
|
13476
|
+
return aTypedArrayConstructor(speciesConstructor(originalArray, getTypedArrayConstructor(originalArray)));
|
|
13467
13477
|
};
|
|
13468
13478
|
|
|
13469
13479
|
|
|
@@ -17352,12 +17362,10 @@ $({ target: 'Math', stat: true, forced: true }, {
|
|
|
17352
17362
|
|
|
17353
17363
|
var $ = __webpack_require__(3);
|
|
17354
17364
|
|
|
17355
|
-
var DEG_PER_RAD = Math.PI / 180;
|
|
17356
|
-
|
|
17357
17365
|
// `Math.DEG_PER_RAD` constant
|
|
17358
17366
|
// https://rwaldron.github.io/proposal-math-extensions/
|
|
17359
|
-
$({ target: 'Math', stat: true, nonConfigurable: true, nonWritable: true
|
|
17360
|
-
DEG_PER_RAD:
|
|
17367
|
+
$({ target: 'Math', stat: true, nonConfigurable: true, nonWritable: true }, {
|
|
17368
|
+
DEG_PER_RAD: Math.PI / 180
|
|
17361
17369
|
});
|
|
17362
17370
|
|
|
17363
17371
|
|
|
@@ -17483,12 +17491,10 @@ $({ target: 'Math', stat: true, forced: true }, {
|
|
|
17483
17491
|
|
|
17484
17492
|
var $ = __webpack_require__(3);
|
|
17485
17493
|
|
|
17486
|
-
var RAD_PER_DEG = 180 / Math.PI;
|
|
17487
|
-
|
|
17488
17494
|
// `Math.RAD_PER_DEG` constant
|
|
17489
17495
|
// https://rwaldron.github.io/proposal-math-extensions/
|
|
17490
|
-
$({ target: 'Math', stat: true, nonConfigurable: true, nonWritable: true
|
|
17491
|
-
RAD_PER_DEG:
|
|
17496
|
+
$({ target: 'Math', stat: true, nonConfigurable: true, nonWritable: true }, {
|
|
17497
|
+
RAD_PER_DEG: 180 / Math.PI
|
|
17492
17498
|
});
|
|
17493
17499
|
|
|
17494
17500
|
|
|
@@ -19194,12 +19200,12 @@ var ArrayBufferViewCore = __webpack_require__(198);
|
|
|
19194
19200
|
|
|
19195
19201
|
var aTypedArray = ArrayBufferViewCore.aTypedArray;
|
|
19196
19202
|
var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
|
|
19197
|
-
var
|
|
19203
|
+
var getTypedArrayConstructor = ArrayBufferViewCore.getTypedArrayConstructor;
|
|
19198
19204
|
|
|
19199
19205
|
// `%TypedArray%.prototype.toReversed` method
|
|
19200
19206
|
// https://tc39.es/proposal-change-array-by-copy/#sec-%typedarray%.prototype.toReversed
|
|
19201
19207
|
exportTypedArrayMethod('toReversed', function toReversed() {
|
|
19202
|
-
return arrayToReversed(aTypedArray(this), this
|
|
19208
|
+
return arrayToReversed(aTypedArray(this), getTypedArrayConstructor(this));
|
|
19203
19209
|
});
|
|
19204
19210
|
|
|
19205
19211
|
|
|
@@ -19215,8 +19221,8 @@ var aCallable = __webpack_require__(29);
|
|
|
19215
19221
|
var arrayFromConstructorAndList = __webpack_require__(434);
|
|
19216
19222
|
|
|
19217
19223
|
var aTypedArray = ArrayBufferViewCore.aTypedArray;
|
|
19224
|
+
var getTypedArrayConstructor = ArrayBufferViewCore.getTypedArrayConstructor;
|
|
19218
19225
|
var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
|
|
19219
|
-
var TYPED_ARRAY_CONSTRUCTOR = ArrayBufferViewCore.TYPED_ARRAY_CONSTRUCTOR;
|
|
19220
19226
|
var sort = uncurryThis(ArrayBufferViewCore.TypedArrayPrototype.sort);
|
|
19221
19227
|
|
|
19222
19228
|
// `%TypedArray%.prototype.toSorted` method
|
|
@@ -19224,7 +19230,7 @@ var sort = uncurryThis(ArrayBufferViewCore.TypedArrayPrototype.sort);
|
|
|
19224
19230
|
exportTypedArrayMethod('toSorted', function toSorted(compareFn) {
|
|
19225
19231
|
if (compareFn !== undefined) aCallable(compareFn);
|
|
19226
19232
|
var O = aTypedArray(this);
|
|
19227
|
-
var A = arrayFromConstructorAndList(O
|
|
19233
|
+
var A = arrayFromConstructorAndList(getTypedArrayConstructor(O), O);
|
|
19228
19234
|
return sort(A, compareFn);
|
|
19229
19235
|
});
|
|
19230
19236
|
|
|
@@ -19240,14 +19246,14 @@ var arraySlice = __webpack_require__(93);
|
|
|
19240
19246
|
var arrayToSpliced = __webpack_require__(487);
|
|
19241
19247
|
|
|
19242
19248
|
var aTypedArray = ArrayBufferViewCore.aTypedArray;
|
|
19249
|
+
var getTypedArrayConstructor = ArrayBufferViewCore.getTypedArrayConstructor;
|
|
19243
19250
|
var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
|
|
19244
|
-
var TYPED_ARRAY_CONSTRUCTOR = ArrayBufferViewCore.TYPED_ARRAY_CONSTRUCTOR;
|
|
19245
19251
|
|
|
19246
19252
|
// `%TypedArray%.prototype.toSpliced` method
|
|
19247
19253
|
// https://tc39.es/proposal-change-array-by-copy/#sec-%typedarray%.prototype.toSpliced
|
|
19248
19254
|
// eslint-disable-next-line no-unused-vars -- required for .length
|
|
19249
19255
|
exportTypedArrayMethod('toSpliced', function toSpliced(start, deleteCount /* , ...items */) {
|
|
19250
|
-
return arrayToSpliced(aTypedArray(this), this
|
|
19256
|
+
return arrayToSpliced(aTypedArray(this), getTypedArrayConstructor(this), arraySlice(arguments));
|
|
19251
19257
|
}, { arity: 2 });
|
|
19252
19258
|
|
|
19253
19259
|
|
|
@@ -19287,8 +19293,8 @@ var classof = __webpack_require__(68);
|
|
|
19287
19293
|
var uncurryThis = __webpack_require__(14);
|
|
19288
19294
|
|
|
19289
19295
|
var aTypedArray = ArrayBufferViewCore.aTypedArray;
|
|
19296
|
+
var getTypedArrayConstructor = ArrayBufferViewCore.getTypedArrayConstructor;
|
|
19290
19297
|
var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
|
|
19291
|
-
var TYPED_ARRAY_CONSTRUCTOR = ArrayBufferViewCore.TYPED_ARRAY_CONSTRUCTOR;
|
|
19292
19298
|
var slice = uncurryThis(''.slice);
|
|
19293
19299
|
|
|
19294
19300
|
var PROPER_ORDER = !!function () {
|
|
@@ -19308,7 +19314,7 @@ exportTypedArrayMethod('with', { 'with': function (index, value) {
|
|
|
19308
19314
|
aTypedArray(this);
|
|
19309
19315
|
var relativeIndex = toIntegerOrInfinity(index);
|
|
19310
19316
|
var actualValue = slice(classof(this), 0, 3) === 'Big' ? toBigInt(value) : +value;
|
|
19311
|
-
return arrayWith(this, this
|
|
19317
|
+
return arrayWith(this, getTypedArrayConstructor(this), relativeIndex, actualValue);
|
|
19312
19318
|
} }['with'], !PROPER_ORDER);
|
|
19313
19319
|
|
|
19314
19320
|
|