bootstrap-table-rails 1.20.1 → 1.20.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.
- checksums.yaml +4 -4
- data/README.md +3 -1
- data/lib/bootstrap-table-rails/version.rb +1 -1
- data/vendor/assets/javascripts/.DS_Store +0 -0
- data/vendor/assets/javascripts/bootstrap-table/bootstrap-table-locale-all.js +1117 -898
- data/vendor/assets/javascripts/bootstrap-table/bootstrap-table-vue.esm.js +31 -1773
- data/vendor/assets/javascripts/bootstrap-table/bootstrap-table-vue.js +31 -1773
- data/vendor/assets/javascripts/bootstrap-table/bootstrap-table.css +1 -1
- data/vendor/assets/javascripts/bootstrap-table/bootstrap-table.js +1337 -773
- data/vendor/assets/javascripts/bootstrap-table/extensions/addrbar/bootstrap-table-addrbar.js +795 -462
- data/vendor/assets/javascripts/bootstrap-table/extensions/auto-refresh/bootstrap-table-auto-refresh.js +570 -304
- data/vendor/assets/javascripts/bootstrap-table/extensions/cookie/bootstrap-table-cookie.js +861 -479
- data/vendor/assets/javascripts/bootstrap-table/extensions/copy-rows/bootstrap-table-copy-rows.js +584 -310
- data/vendor/assets/javascripts/bootstrap-table/extensions/custom-view/bootstrap-table-custom-view.js +599 -318
- data/vendor/assets/javascripts/bootstrap-table/extensions/defer-url/bootstrap-table-defer-url.js +464 -245
- data/vendor/assets/javascripts/bootstrap-table/extensions/editable/bootstrap-table-editable.js +720 -403
- data/vendor/assets/javascripts/bootstrap-table/extensions/export/bootstrap-table-export.js +1107 -736
- data/vendor/assets/javascripts/bootstrap-table/extensions/filter-control/bootstrap-table-filter-control.js +1322 -754
- data/vendor/assets/javascripts/bootstrap-table/extensions/filter-control/utils.js +918 -515
- data/vendor/assets/javascripts/bootstrap-table/extensions/fixed-columns/bootstrap-table-fixed-columns.js +592 -318
- data/vendor/assets/javascripts/bootstrap-table/extensions/group-by-v2/bootstrap-table-group-by.js +700 -373
- data/vendor/assets/javascripts/bootstrap-table/extensions/key-events/bootstrap-table-key-events.js +642 -356
- data/vendor/assets/javascripts/bootstrap-table/extensions/mobile/bootstrap-table-mobile.js +600 -320
- data/vendor/assets/javascripts/bootstrap-table/extensions/multiple-sort/bootstrap-table-multiple-sort.js +739 -395
- data/vendor/assets/javascripts/bootstrap-table/extensions/page-jump-to/bootstrap-table-page-jump-to.js +543 -290
- data/vendor/assets/javascripts/bootstrap-table/extensions/pipeline/bootstrap-table-pipeline.js +548 -291
- data/vendor/assets/javascripts/bootstrap-table/extensions/print/bootstrap-table-print.js +719 -385
- data/vendor/assets/javascripts/bootstrap-table/extensions/reorder-columns/bootstrap-table-reorder-columns.js +592 -318
- data/vendor/assets/javascripts/bootstrap-table/extensions/reorder-rows/bootstrap-table-reorder-rows.js +492 -261
- data/vendor/assets/javascripts/bootstrap-table/extensions/resizable/bootstrap-table-resizable.js +464 -245
- data/vendor/assets/javascripts/bootstrap-table/extensions/sticky-header/bootstrap-table-sticky-header.js +543 -290
- data/vendor/assets/javascripts/bootstrap-table/extensions/toolbar/bootstrap-table-toolbar.js +754 -418
- data/vendor/assets/javascripts/bootstrap-table/extensions/treegrid/bootstrap-table-treegrid.js +551 -290
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-af-ZA.js +464 -245
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ar-SA.js +464 -245
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-bg-BG.js +464 -245
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ca-ES.js +464 -245
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-cs-CZ.js +464 -245
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-da-DK.js +464 -245
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-de-DE.js +464 -245
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-el-GR.js +464 -245
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-en-US.js +464 -245
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-AR.js +464 -245
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-CL.js +464 -245
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-CR.js +464 -245
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-ES.js +464 -245
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-MX.js +464 -245
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-NI.js +464 -245
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-SP.js +464 -245
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-et-EE.js +464 -245
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-eu-EU.js +464 -245
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fa-IR.js +464 -245
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fi-FI.js +464 -245
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fr-BE.js +464 -245
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fr-CH.js +464 -245
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fr-FR.js +464 -245
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fr-LU.js +464 -245
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-he-IL.js +464 -245
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-hi-IN.js +464 -245
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-hr-HR.js +464 -245
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-hu-HU.js +464 -245
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-id-ID.js +464 -245
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-it-IT.js +464 -245
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ja-JP.js +464 -245
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ka-GE.js +464 -245
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ko-KR.js +464 -245
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-lb-LU.js +464 -245
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ms-MY.js +464 -245
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-nb-NO.js +464 -245
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-nl-BE.js +464 -245
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-nl-NL.js +464 -245
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-pl-PL.js +464 -245
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-pt-BR.js +464 -245
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-pt-PT.js +464 -245
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ro-RO.js +464 -245
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ru-RU.js +464 -245
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-sk-SK.js +464 -245
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-sr-Cyrl-RS.js +464 -245
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-sr-Latn-RS.js +464 -245
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-sv-SE.js +464 -245
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-th-TH.js +464 -245
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-tr-TR.js +464 -245
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-uk-UA.js +464 -245
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ur-PK.js +464 -245
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-uz-Latn-UZ.js +464 -245
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-vi-VN.js +464 -245
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-zh-CN.js +464 -245
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-zh-TW.js +464 -245
- data/vendor/assets/javascripts/bootstrap-table/themes/bootstrap-table/bootstrap-table.js +543 -291
- data/vendor/assets/javascripts/bootstrap-table/themes/bulma/bootstrap-table-bulma.js +543 -291
- data/vendor/assets/javascripts/bootstrap-table/themes/foundation/bootstrap-table-foundation.js +543 -291
- data/vendor/assets/javascripts/bootstrap-table/themes/materialize/bootstrap-table-materialize.js +543 -291
- data/vendor/assets/javascripts/bootstrap-table/themes/semantic/bootstrap-table-semantic.js +543 -291
- metadata +1 -1
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(require('jquery')) :
|
|
3
3
|
typeof define === 'function' && define.amd ? define(['jquery'], factory) :
|
|
4
4
|
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.jQuery));
|
|
5
|
-
})(this, (function (
|
|
5
|
+
})(this, (function ($$8) { 'use strict';
|
|
6
6
|
|
|
7
7
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
8
8
|
|
|
9
|
-
var $__default = /*#__PURE__*/_interopDefaultLegacy(
|
|
9
|
+
var $__default = /*#__PURE__*/_interopDefaultLegacy($$8);
|
|
10
10
|
|
|
11
11
|
function _classCallCheck(instance, Constructor) {
|
|
12
12
|
if (!(instance instanceof Constructor)) {
|
|
@@ -223,16 +223,12 @@
|
|
|
223
223
|
|
|
224
224
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
225
225
|
|
|
226
|
-
function createCommonjsModule(fn, module) {
|
|
227
|
-
return module = { exports: {} }, fn(module, module.exports), module.exports;
|
|
228
|
-
}
|
|
229
|
-
|
|
230
226
|
var check = function (it) {
|
|
231
227
|
return it && it.Math == Math && it;
|
|
232
228
|
};
|
|
233
229
|
|
|
234
230
|
// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
|
|
235
|
-
var
|
|
231
|
+
var global$x =
|
|
236
232
|
// eslint-disable-next-line es-x/no-global-this -- safe
|
|
237
233
|
check(typeof globalThis == 'object' && globalThis) ||
|
|
238
234
|
check(typeof window == 'object' && window) ||
|
|
@@ -242,7 +238,9 @@
|
|
|
242
238
|
// eslint-disable-next-line no-new-func -- fallback
|
|
243
239
|
(function () { return this; })() || Function('return this')();
|
|
244
240
|
|
|
245
|
-
var
|
|
241
|
+
var objectGetOwnPropertyDescriptor = {};
|
|
242
|
+
|
|
243
|
+
var fails$k = function (exec) {
|
|
246
244
|
try {
|
|
247
245
|
return !!exec();
|
|
248
246
|
} catch (error) {
|
|
@@ -250,25 +248,33 @@
|
|
|
250
248
|
}
|
|
251
249
|
};
|
|
252
250
|
|
|
251
|
+
var fails$j = fails$k;
|
|
252
|
+
|
|
253
253
|
// Detect IE8's incomplete defineProperty implementation
|
|
254
|
-
var descriptors = !fails(function () {
|
|
254
|
+
var descriptors = !fails$j(function () {
|
|
255
255
|
// eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
|
|
256
256
|
return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
|
|
257
257
|
});
|
|
258
258
|
|
|
259
|
-
var
|
|
259
|
+
var fails$i = fails$k;
|
|
260
|
+
|
|
261
|
+
var functionBindNative = !fails$i(function () {
|
|
260
262
|
// eslint-disable-next-line es-x/no-function-prototype-bind -- safe
|
|
261
263
|
var test = (function () { /* empty */ }).bind();
|
|
262
264
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
263
265
|
return typeof test != 'function' || test.hasOwnProperty('prototype');
|
|
264
266
|
});
|
|
265
267
|
|
|
266
|
-
var
|
|
268
|
+
var NATIVE_BIND$3 = functionBindNative;
|
|
267
269
|
|
|
268
|
-
var
|
|
269
|
-
|
|
270
|
+
var call$b = Function.prototype.call;
|
|
271
|
+
|
|
272
|
+
var functionCall = NATIVE_BIND$3 ? call$b.bind(call$b) : function () {
|
|
273
|
+
return call$b.apply(call$b, arguments);
|
|
270
274
|
};
|
|
271
275
|
|
|
276
|
+
var objectPropertyIsEnumerable = {};
|
|
277
|
+
|
|
272
278
|
var $propertyIsEnumerable = {}.propertyIsEnumerable;
|
|
273
279
|
// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
|
|
274
280
|
var getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
|
|
@@ -278,16 +284,12 @@
|
|
|
278
284
|
|
|
279
285
|
// `Object.prototype.propertyIsEnumerable` method implementation
|
|
280
286
|
// https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
|
|
281
|
-
|
|
287
|
+
objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
|
|
282
288
|
var descriptor = getOwnPropertyDescriptor$1(this, V);
|
|
283
289
|
return !!descriptor && descriptor.enumerable;
|
|
284
290
|
} : $propertyIsEnumerable;
|
|
285
291
|
|
|
286
|
-
var
|
|
287
|
-
f: f$5
|
|
288
|
-
};
|
|
289
|
-
|
|
290
|
-
var createPropertyDescriptor = function (bitmap, value) {
|
|
292
|
+
var createPropertyDescriptor$3 = function (bitmap, value) {
|
|
291
293
|
return {
|
|
292
294
|
enumerable: !(bitmap & 1),
|
|
293
295
|
configurable: !(bitmap & 2),
|
|
@@ -296,79 +298,102 @@
|
|
|
296
298
|
};
|
|
297
299
|
};
|
|
298
300
|
|
|
301
|
+
var NATIVE_BIND$2 = functionBindNative;
|
|
302
|
+
|
|
299
303
|
var FunctionPrototype$2 = Function.prototype;
|
|
300
|
-
var bind$
|
|
301
|
-
var call$
|
|
302
|
-
var uncurryThis =
|
|
304
|
+
var bind$2 = FunctionPrototype$2.bind;
|
|
305
|
+
var call$a = FunctionPrototype$2.call;
|
|
306
|
+
var uncurryThis$k = NATIVE_BIND$2 && bind$2.bind(call$a, call$a);
|
|
303
307
|
|
|
304
|
-
var functionUncurryThis =
|
|
305
|
-
return fn && uncurryThis(fn);
|
|
308
|
+
var functionUncurryThis = NATIVE_BIND$2 ? function (fn) {
|
|
309
|
+
return fn && uncurryThis$k(fn);
|
|
306
310
|
} : function (fn) {
|
|
307
311
|
return fn && function () {
|
|
308
|
-
return call$
|
|
312
|
+
return call$a.apply(fn, arguments);
|
|
309
313
|
};
|
|
310
314
|
};
|
|
311
315
|
|
|
312
|
-
var
|
|
313
|
-
var stringSlice$5 = functionUncurryThis(''.slice);
|
|
316
|
+
var uncurryThis$j = functionUncurryThis;
|
|
314
317
|
|
|
315
|
-
var
|
|
316
|
-
|
|
318
|
+
var toString$9 = uncurryThis$j({}.toString);
|
|
319
|
+
var stringSlice$5 = uncurryThis$j(''.slice);
|
|
320
|
+
|
|
321
|
+
var classofRaw$1 = function (it) {
|
|
322
|
+
return stringSlice$5(toString$9(it), 8, -1);
|
|
317
323
|
};
|
|
318
324
|
|
|
319
|
-
var
|
|
320
|
-
var
|
|
325
|
+
var global$w = global$x;
|
|
326
|
+
var uncurryThis$i = functionUncurryThis;
|
|
327
|
+
var fails$h = fails$k;
|
|
328
|
+
var classof$7 = classofRaw$1;
|
|
329
|
+
|
|
330
|
+
var Object$4 = global$w.Object;
|
|
331
|
+
var split = uncurryThis$i(''.split);
|
|
321
332
|
|
|
322
333
|
// fallback for non-array-like ES3 and non-enumerable old V8 strings
|
|
323
|
-
var indexedObject = fails(function () {
|
|
334
|
+
var indexedObject = fails$h(function () {
|
|
324
335
|
// throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
|
|
325
336
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
326
337
|
return !Object$4('z').propertyIsEnumerable(0);
|
|
327
338
|
}) ? function (it) {
|
|
328
|
-
return
|
|
339
|
+
return classof$7(it) == 'String' ? split(it, '') : Object$4(it);
|
|
329
340
|
} : Object$4;
|
|
330
341
|
|
|
331
|
-
var
|
|
342
|
+
var global$v = global$x;
|
|
343
|
+
|
|
344
|
+
var TypeError$b = global$v.TypeError;
|
|
332
345
|
|
|
333
346
|
// `RequireObjectCoercible` abstract operation
|
|
334
347
|
// https://tc39.es/ecma262/#sec-requireobjectcoercible
|
|
335
|
-
var requireObjectCoercible = function (it) {
|
|
348
|
+
var requireObjectCoercible$7 = function (it) {
|
|
336
349
|
if (it == undefined) throw TypeError$b("Can't call method on " + it);
|
|
337
350
|
return it;
|
|
338
351
|
};
|
|
339
352
|
|
|
340
353
|
// toObject with fallback for non-array-like ES3 strings
|
|
354
|
+
var IndexedObject$2 = indexedObject;
|
|
355
|
+
var requireObjectCoercible$6 = requireObjectCoercible$7;
|
|
341
356
|
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
var toIndexedObject = function (it) {
|
|
345
|
-
return indexedObject(requireObjectCoercible(it));
|
|
357
|
+
var toIndexedObject$5 = function (it) {
|
|
358
|
+
return IndexedObject$2(requireObjectCoercible$6(it));
|
|
346
359
|
};
|
|
347
360
|
|
|
348
361
|
// `IsCallable` abstract operation
|
|
349
362
|
// https://tc39.es/ecma262/#sec-iscallable
|
|
350
|
-
var isCallable = function (argument) {
|
|
363
|
+
var isCallable$e = function (argument) {
|
|
351
364
|
return typeof argument == 'function';
|
|
352
365
|
};
|
|
353
366
|
|
|
354
|
-
var
|
|
355
|
-
|
|
367
|
+
var isCallable$d = isCallable$e;
|
|
368
|
+
|
|
369
|
+
var isObject$8 = function (it) {
|
|
370
|
+
return typeof it == 'object' ? it !== null : isCallable$d(it);
|
|
356
371
|
};
|
|
357
372
|
|
|
373
|
+
var global$u = global$x;
|
|
374
|
+
var isCallable$c = isCallable$e;
|
|
375
|
+
|
|
358
376
|
var aFunction = function (argument) {
|
|
359
|
-
return isCallable(argument) ? argument : undefined;
|
|
377
|
+
return isCallable$c(argument) ? argument : undefined;
|
|
360
378
|
};
|
|
361
379
|
|
|
362
|
-
var getBuiltIn = function (namespace, method) {
|
|
363
|
-
return arguments.length < 2 ? aFunction(
|
|
380
|
+
var getBuiltIn$5 = function (namespace, method) {
|
|
381
|
+
return arguments.length < 2 ? aFunction(global$u[namespace]) : global$u[namespace] && global$u[namespace][method];
|
|
364
382
|
};
|
|
365
383
|
|
|
366
|
-
var
|
|
384
|
+
var uncurryThis$h = functionUncurryThis;
|
|
385
|
+
|
|
386
|
+
var objectIsPrototypeOf = uncurryThis$h({}.isPrototypeOf);
|
|
387
|
+
|
|
388
|
+
var getBuiltIn$4 = getBuiltIn$5;
|
|
367
389
|
|
|
368
|
-
var engineUserAgent = getBuiltIn('navigator', 'userAgent') || '';
|
|
390
|
+
var engineUserAgent = getBuiltIn$4('navigator', 'userAgent') || '';
|
|
369
391
|
|
|
370
|
-
var
|
|
371
|
-
var
|
|
392
|
+
var global$t = global$x;
|
|
393
|
+
var userAgent = engineUserAgent;
|
|
394
|
+
|
|
395
|
+
var process = global$t.process;
|
|
396
|
+
var Deno = global$t.Deno;
|
|
372
397
|
var versions = process && process.versions || Deno && Deno.version;
|
|
373
398
|
var v8 = versions && versions.v8;
|
|
374
399
|
var match, version;
|
|
@@ -382,10 +407,10 @@
|
|
|
382
407
|
|
|
383
408
|
// BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`
|
|
384
409
|
// so check `userAgent` even if `.v8` exists, but 0
|
|
385
|
-
if (!version &&
|
|
386
|
-
match =
|
|
410
|
+
if (!version && userAgent) {
|
|
411
|
+
match = userAgent.match(/Edge\/(\d+)/);
|
|
387
412
|
if (!match || match[1] >= 74) {
|
|
388
|
-
match =
|
|
413
|
+
match = userAgent.match(/Chrome\/(\d+)/);
|
|
389
414
|
if (match) version = +match[1];
|
|
390
415
|
}
|
|
391
416
|
}
|
|
@@ -394,37 +419,47 @@
|
|
|
394
419
|
|
|
395
420
|
/* eslint-disable es-x/no-symbol -- required for testing */
|
|
396
421
|
|
|
397
|
-
|
|
422
|
+
var V8_VERSION$2 = engineV8Version;
|
|
423
|
+
var fails$g = fails$k;
|
|
398
424
|
|
|
399
425
|
// eslint-disable-next-line es-x/no-object-getownpropertysymbols -- required for testing
|
|
400
|
-
var nativeSymbol = !!Object.getOwnPropertySymbols && !fails(function () {
|
|
426
|
+
var nativeSymbol = !!Object.getOwnPropertySymbols && !fails$g(function () {
|
|
401
427
|
var symbol = Symbol();
|
|
402
428
|
// Chrome 38 Symbol has incorrect toString conversion
|
|
403
429
|
// `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
|
|
404
430
|
return !String(symbol) || !(Object(symbol) instanceof Symbol) ||
|
|
405
431
|
// Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
|
|
406
|
-
!Symbol.sham &&
|
|
432
|
+
!Symbol.sham && V8_VERSION$2 && V8_VERSION$2 < 41;
|
|
407
433
|
});
|
|
408
434
|
|
|
409
435
|
/* eslint-disable es-x/no-symbol -- required for testing */
|
|
410
436
|
|
|
437
|
+
var NATIVE_SYMBOL$1 = nativeSymbol;
|
|
411
438
|
|
|
412
|
-
var useSymbolAsUid =
|
|
439
|
+
var useSymbolAsUid = NATIVE_SYMBOL$1
|
|
413
440
|
&& !Symbol.sham
|
|
414
441
|
&& typeof Symbol.iterator == 'symbol';
|
|
415
442
|
|
|
416
|
-
var
|
|
443
|
+
var global$s = global$x;
|
|
444
|
+
var getBuiltIn$3 = getBuiltIn$5;
|
|
445
|
+
var isCallable$b = isCallable$e;
|
|
446
|
+
var isPrototypeOf$1 = objectIsPrototypeOf;
|
|
447
|
+
var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
|
|
448
|
+
|
|
449
|
+
var Object$3 = global$s.Object;
|
|
417
450
|
|
|
418
|
-
var isSymbol =
|
|
451
|
+
var isSymbol$2 = USE_SYMBOL_AS_UID$1 ? function (it) {
|
|
419
452
|
return typeof it == 'symbol';
|
|
420
453
|
} : function (it) {
|
|
421
|
-
var $Symbol = getBuiltIn('Symbol');
|
|
422
|
-
return isCallable($Symbol) &&
|
|
454
|
+
var $Symbol = getBuiltIn$3('Symbol');
|
|
455
|
+
return isCallable$b($Symbol) && isPrototypeOf$1($Symbol.prototype, Object$3(it));
|
|
423
456
|
};
|
|
424
457
|
|
|
425
|
-
var
|
|
458
|
+
var global$r = global$x;
|
|
426
459
|
|
|
427
|
-
var
|
|
460
|
+
var String$3 = global$r.String;
|
|
461
|
+
|
|
462
|
+
var tryToString$2 = function (argument) {
|
|
428
463
|
try {
|
|
429
464
|
return String$3(argument);
|
|
430
465
|
} catch (error) {
|
|
@@ -432,97 +467,130 @@
|
|
|
432
467
|
}
|
|
433
468
|
};
|
|
434
469
|
|
|
435
|
-
var
|
|
470
|
+
var global$q = global$x;
|
|
471
|
+
var isCallable$a = isCallable$e;
|
|
472
|
+
var tryToString$1 = tryToString$2;
|
|
473
|
+
|
|
474
|
+
var TypeError$a = global$q.TypeError;
|
|
436
475
|
|
|
437
476
|
// `Assert: IsCallable(argument) is true`
|
|
438
|
-
var aCallable = function (argument) {
|
|
439
|
-
if (isCallable(argument)) return argument;
|
|
440
|
-
throw TypeError$a(tryToString(argument) + ' is not a function');
|
|
477
|
+
var aCallable$2 = function (argument) {
|
|
478
|
+
if (isCallable$a(argument)) return argument;
|
|
479
|
+
throw TypeError$a(tryToString$1(argument) + ' is not a function');
|
|
441
480
|
};
|
|
442
481
|
|
|
482
|
+
var aCallable$1 = aCallable$2;
|
|
483
|
+
|
|
443
484
|
// `GetMethod` abstract operation
|
|
444
485
|
// https://tc39.es/ecma262/#sec-getmethod
|
|
445
|
-
var getMethod = function (V, P) {
|
|
486
|
+
var getMethod$4 = function (V, P) {
|
|
446
487
|
var func = V[P];
|
|
447
|
-
return func == null ? undefined : aCallable(func);
|
|
488
|
+
return func == null ? undefined : aCallable$1(func);
|
|
448
489
|
};
|
|
449
490
|
|
|
450
|
-
var
|
|
491
|
+
var global$p = global$x;
|
|
492
|
+
var call$9 = functionCall;
|
|
493
|
+
var isCallable$9 = isCallable$e;
|
|
494
|
+
var isObject$7 = isObject$8;
|
|
495
|
+
|
|
496
|
+
var TypeError$9 = global$p.TypeError;
|
|
451
497
|
|
|
452
498
|
// `OrdinaryToPrimitive` abstract operation
|
|
453
499
|
// https://tc39.es/ecma262/#sec-ordinarytoprimitive
|
|
454
|
-
var ordinaryToPrimitive = function (input, pref) {
|
|
500
|
+
var ordinaryToPrimitive$1 = function (input, pref) {
|
|
455
501
|
var fn, val;
|
|
456
|
-
if (pref === 'string' && isCallable(fn = input.toString) && !isObject(val =
|
|
457
|
-
if (isCallable(fn = input.valueOf) && !isObject(val =
|
|
458
|
-
if (pref !== 'string' && isCallable(fn = input.toString) && !isObject(val =
|
|
502
|
+
if (pref === 'string' && isCallable$9(fn = input.toString) && !isObject$7(val = call$9(fn, input))) return val;
|
|
503
|
+
if (isCallable$9(fn = input.valueOf) && !isObject$7(val = call$9(fn, input))) return val;
|
|
504
|
+
if (pref !== 'string' && isCallable$9(fn = input.toString) && !isObject$7(val = call$9(fn, input))) return val;
|
|
459
505
|
throw TypeError$9("Can't convert object to primitive value");
|
|
460
506
|
};
|
|
461
507
|
|
|
508
|
+
var shared$4 = {exports: {}};
|
|
509
|
+
|
|
510
|
+
var global$o = global$x;
|
|
511
|
+
|
|
462
512
|
// eslint-disable-next-line es-x/no-object-defineproperty -- safe
|
|
463
|
-
var defineProperty = Object.defineProperty;
|
|
513
|
+
var defineProperty$1 = Object.defineProperty;
|
|
464
514
|
|
|
465
|
-
var setGlobal = function (key, value) {
|
|
515
|
+
var setGlobal$3 = function (key, value) {
|
|
466
516
|
try {
|
|
467
|
-
defineProperty(
|
|
517
|
+
defineProperty$1(global$o, key, { value: value, configurable: true, writable: true });
|
|
468
518
|
} catch (error) {
|
|
469
|
-
|
|
519
|
+
global$o[key] = value;
|
|
470
520
|
} return value;
|
|
471
521
|
};
|
|
472
522
|
|
|
523
|
+
var global$n = global$x;
|
|
524
|
+
var setGlobal$2 = setGlobal$3;
|
|
525
|
+
|
|
473
526
|
var SHARED = '__core-js_shared__';
|
|
474
|
-
var store$
|
|
527
|
+
var store$3 = global$n[SHARED] || setGlobal$2(SHARED, {});
|
|
528
|
+
|
|
529
|
+
var sharedStore = store$3;
|
|
475
530
|
|
|
476
|
-
var
|
|
531
|
+
var store$2 = sharedStore;
|
|
477
532
|
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
return sharedStore[key] || (sharedStore[key] = value !== undefined ? value : {});
|
|
533
|
+
(shared$4.exports = function (key, value) {
|
|
534
|
+
return store$2[key] || (store$2[key] = value !== undefined ? value : {});
|
|
481
535
|
})('versions', []).push({
|
|
482
|
-
version: '3.22.
|
|
536
|
+
version: '3.22.5',
|
|
483
537
|
mode: 'global',
|
|
484
538
|
copyright: '© 2014-2022 Denis Pushkarev (zloirock.ru)',
|
|
485
|
-
license: 'https://github.com/zloirock/core-js/blob/v3.22.
|
|
539
|
+
license: 'https://github.com/zloirock/core-js/blob/v3.22.5/LICENSE',
|
|
486
540
|
source: 'https://github.com/zloirock/core-js'
|
|
487
541
|
});
|
|
488
|
-
});
|
|
489
542
|
|
|
490
|
-
var
|
|
543
|
+
var global$m = global$x;
|
|
544
|
+
var requireObjectCoercible$5 = requireObjectCoercible$7;
|
|
545
|
+
|
|
546
|
+
var Object$2 = global$m.Object;
|
|
491
547
|
|
|
492
548
|
// `ToObject` abstract operation
|
|
493
549
|
// https://tc39.es/ecma262/#sec-toobject
|
|
494
|
-
var toObject = function (argument) {
|
|
495
|
-
return Object$2(requireObjectCoercible(argument));
|
|
550
|
+
var toObject$4 = function (argument) {
|
|
551
|
+
return Object$2(requireObjectCoercible$5(argument));
|
|
496
552
|
};
|
|
497
553
|
|
|
498
|
-
var
|
|
554
|
+
var uncurryThis$g = functionUncurryThis;
|
|
555
|
+
var toObject$3 = toObject$4;
|
|
556
|
+
|
|
557
|
+
var hasOwnProperty = uncurryThis$g({}.hasOwnProperty);
|
|
499
558
|
|
|
500
559
|
// `HasOwnProperty` abstract operation
|
|
501
560
|
// https://tc39.es/ecma262/#sec-hasownproperty
|
|
502
561
|
// eslint-disable-next-line es-x/no-object-hasown -- safe
|
|
503
562
|
var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
|
|
504
|
-
return hasOwnProperty(toObject(it), key);
|
|
563
|
+
return hasOwnProperty(toObject$3(it), key);
|
|
505
564
|
};
|
|
506
565
|
|
|
566
|
+
var uncurryThis$f = functionUncurryThis;
|
|
567
|
+
|
|
507
568
|
var id = 0;
|
|
508
569
|
var postfix = Math.random();
|
|
509
|
-
var toString =
|
|
570
|
+
var toString$8 = uncurryThis$f(1.0.toString);
|
|
510
571
|
|
|
511
|
-
var uid = function (key) {
|
|
512
|
-
return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36);
|
|
572
|
+
var uid$2 = function (key) {
|
|
573
|
+
return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$8(++id + postfix, 36);
|
|
513
574
|
};
|
|
514
575
|
|
|
515
|
-
var
|
|
516
|
-
var
|
|
576
|
+
var global$l = global$x;
|
|
577
|
+
var shared$3 = shared$4.exports;
|
|
578
|
+
var hasOwn$7 = hasOwnProperty_1;
|
|
579
|
+
var uid$1 = uid$2;
|
|
580
|
+
var NATIVE_SYMBOL = nativeSymbol;
|
|
581
|
+
var USE_SYMBOL_AS_UID = useSymbolAsUid;
|
|
582
|
+
|
|
583
|
+
var WellKnownSymbolsStore = shared$3('wks');
|
|
584
|
+
var Symbol$1 = global$l.Symbol;
|
|
517
585
|
var symbolFor = Symbol$1 && Symbol$1['for'];
|
|
518
|
-
var createWellKnownSymbol =
|
|
586
|
+
var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1;
|
|
519
587
|
|
|
520
|
-
var wellKnownSymbol = function (name) {
|
|
521
|
-
if (!
|
|
588
|
+
var wellKnownSymbol$c = function (name) {
|
|
589
|
+
if (!hasOwn$7(WellKnownSymbolsStore, name) || !(NATIVE_SYMBOL || typeof WellKnownSymbolsStore[name] == 'string')) {
|
|
522
590
|
var description = 'Symbol.' + name;
|
|
523
|
-
if (
|
|
591
|
+
if (NATIVE_SYMBOL && hasOwn$7(Symbol$1, name)) {
|
|
524
592
|
WellKnownSymbolsStore[name] = Symbol$1[name];
|
|
525
|
-
} else if (
|
|
593
|
+
} else if (USE_SYMBOL_AS_UID && symbolFor) {
|
|
526
594
|
WellKnownSymbolsStore[name] = symbolFor(description);
|
|
527
595
|
} else {
|
|
528
596
|
WellKnownSymbolsStore[name] = createWellKnownSymbol(description);
|
|
@@ -530,69 +598,97 @@
|
|
|
530
598
|
} return WellKnownSymbolsStore[name];
|
|
531
599
|
};
|
|
532
600
|
|
|
533
|
-
var
|
|
534
|
-
var
|
|
601
|
+
var global$k = global$x;
|
|
602
|
+
var call$8 = functionCall;
|
|
603
|
+
var isObject$6 = isObject$8;
|
|
604
|
+
var isSymbol$1 = isSymbol$2;
|
|
605
|
+
var getMethod$3 = getMethod$4;
|
|
606
|
+
var ordinaryToPrimitive = ordinaryToPrimitive$1;
|
|
607
|
+
var wellKnownSymbol$b = wellKnownSymbol$c;
|
|
608
|
+
|
|
609
|
+
var TypeError$8 = global$k.TypeError;
|
|
610
|
+
var TO_PRIMITIVE = wellKnownSymbol$b('toPrimitive');
|
|
535
611
|
|
|
536
612
|
// `ToPrimitive` abstract operation
|
|
537
613
|
// https://tc39.es/ecma262/#sec-toprimitive
|
|
538
|
-
var toPrimitive = function (input, pref) {
|
|
539
|
-
if (!isObject(input) || isSymbol(input)) return input;
|
|
540
|
-
var exoticToPrim = getMethod(input, TO_PRIMITIVE);
|
|
614
|
+
var toPrimitive$1 = function (input, pref) {
|
|
615
|
+
if (!isObject$6(input) || isSymbol$1(input)) return input;
|
|
616
|
+
var exoticToPrim = getMethod$3(input, TO_PRIMITIVE);
|
|
541
617
|
var result;
|
|
542
618
|
if (exoticToPrim) {
|
|
543
619
|
if (pref === undefined) pref = 'default';
|
|
544
|
-
result =
|
|
545
|
-
if (!isObject(result) || isSymbol(result)) return result;
|
|
620
|
+
result = call$8(exoticToPrim, input, pref);
|
|
621
|
+
if (!isObject$6(result) || isSymbol$1(result)) return result;
|
|
546
622
|
throw TypeError$8("Can't convert object to primitive value");
|
|
547
623
|
}
|
|
548
624
|
if (pref === undefined) pref = 'number';
|
|
549
625
|
return ordinaryToPrimitive(input, pref);
|
|
550
626
|
};
|
|
551
627
|
|
|
628
|
+
var toPrimitive = toPrimitive$1;
|
|
629
|
+
var isSymbol = isSymbol$2;
|
|
630
|
+
|
|
552
631
|
// `ToPropertyKey` abstract operation
|
|
553
632
|
// https://tc39.es/ecma262/#sec-topropertykey
|
|
554
|
-
var toPropertyKey = function (argument) {
|
|
633
|
+
var toPropertyKey$3 = function (argument) {
|
|
555
634
|
var key = toPrimitive(argument, 'string');
|
|
556
635
|
return isSymbol(key) ? key : key + '';
|
|
557
636
|
};
|
|
558
637
|
|
|
559
|
-
var
|
|
638
|
+
var global$j = global$x;
|
|
639
|
+
var isObject$5 = isObject$8;
|
|
640
|
+
|
|
641
|
+
var document$1 = global$j.document;
|
|
560
642
|
// typeof document.createElement is 'object' in old IE
|
|
561
|
-
var EXISTS$1 = isObject(document$1) && isObject(document$1.createElement);
|
|
643
|
+
var EXISTS$1 = isObject$5(document$1) && isObject$5(document$1.createElement);
|
|
562
644
|
|
|
563
|
-
var documentCreateElement = function (it) {
|
|
645
|
+
var documentCreateElement$2 = function (it) {
|
|
564
646
|
return EXISTS$1 ? document$1.createElement(it) : {};
|
|
565
647
|
};
|
|
566
648
|
|
|
649
|
+
var DESCRIPTORS$7 = descriptors;
|
|
650
|
+
var fails$f = fails$k;
|
|
651
|
+
var createElement = documentCreateElement$2;
|
|
652
|
+
|
|
567
653
|
// Thanks to IE8 for its funny defineProperty
|
|
568
|
-
var ie8DomDefine = !
|
|
654
|
+
var ie8DomDefine = !DESCRIPTORS$7 && !fails$f(function () {
|
|
569
655
|
// eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
|
|
570
|
-
return Object.defineProperty(
|
|
656
|
+
return Object.defineProperty(createElement('div'), 'a', {
|
|
571
657
|
get: function () { return 7; }
|
|
572
658
|
}).a != 7;
|
|
573
659
|
});
|
|
574
660
|
|
|
661
|
+
var DESCRIPTORS$6 = descriptors;
|
|
662
|
+
var call$7 = functionCall;
|
|
663
|
+
var propertyIsEnumerableModule = objectPropertyIsEnumerable;
|
|
664
|
+
var createPropertyDescriptor$2 = createPropertyDescriptor$3;
|
|
665
|
+
var toIndexedObject$4 = toIndexedObject$5;
|
|
666
|
+
var toPropertyKey$2 = toPropertyKey$3;
|
|
667
|
+
var hasOwn$6 = hasOwnProperty_1;
|
|
668
|
+
var IE8_DOM_DEFINE$1 = ie8DomDefine;
|
|
669
|
+
|
|
575
670
|
// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
|
|
576
671
|
var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
|
|
577
672
|
|
|
578
673
|
// `Object.getOwnPropertyDescriptor` method
|
|
579
674
|
// https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
|
|
580
|
-
|
|
581
|
-
O = toIndexedObject(O);
|
|
582
|
-
P = toPropertyKey(P);
|
|
583
|
-
if (
|
|
675
|
+
objectGetOwnPropertyDescriptor.f = DESCRIPTORS$6 ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
|
|
676
|
+
O = toIndexedObject$4(O);
|
|
677
|
+
P = toPropertyKey$2(P);
|
|
678
|
+
if (IE8_DOM_DEFINE$1) try {
|
|
584
679
|
return $getOwnPropertyDescriptor$1(O, P);
|
|
585
680
|
} catch (error) { /* empty */ }
|
|
586
|
-
if (
|
|
681
|
+
if (hasOwn$6(O, P)) return createPropertyDescriptor$2(!call$7(propertyIsEnumerableModule.f, O, P), O[P]);
|
|
587
682
|
};
|
|
588
683
|
|
|
589
|
-
var
|
|
590
|
-
|
|
591
|
-
|
|
684
|
+
var objectDefineProperty = {};
|
|
685
|
+
|
|
686
|
+
var DESCRIPTORS$5 = descriptors;
|
|
687
|
+
var fails$e = fails$k;
|
|
592
688
|
|
|
593
689
|
// V8 ~ Chrome 36-
|
|
594
690
|
// https://bugs.chromium.org/p/v8/issues/detail?id=3334
|
|
595
|
-
var v8PrototypeDefineBug =
|
|
691
|
+
var v8PrototypeDefineBug = DESCRIPTORS$5 && fails$e(function () {
|
|
596
692
|
// eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
|
|
597
693
|
return Object.defineProperty(function () { /* empty */ }, 'prototype', {
|
|
598
694
|
value: 42,
|
|
@@ -600,16 +696,26 @@
|
|
|
600
696
|
}).prototype != 42;
|
|
601
697
|
});
|
|
602
698
|
|
|
603
|
-
var
|
|
604
|
-
var
|
|
699
|
+
var global$i = global$x;
|
|
700
|
+
var isObject$4 = isObject$8;
|
|
701
|
+
|
|
702
|
+
var String$2 = global$i.String;
|
|
703
|
+
var TypeError$7 = global$i.TypeError;
|
|
605
704
|
|
|
606
705
|
// `Assert: Type(argument) is Object`
|
|
607
|
-
var anObject = function (argument) {
|
|
608
|
-
if (isObject(argument)) return argument;
|
|
706
|
+
var anObject$b = function (argument) {
|
|
707
|
+
if (isObject$4(argument)) return argument;
|
|
609
708
|
throw TypeError$7(String$2(argument) + ' is not an object');
|
|
610
709
|
};
|
|
611
710
|
|
|
612
|
-
var
|
|
711
|
+
var global$h = global$x;
|
|
712
|
+
var DESCRIPTORS$4 = descriptors;
|
|
713
|
+
var IE8_DOM_DEFINE = ie8DomDefine;
|
|
714
|
+
var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug;
|
|
715
|
+
var anObject$a = anObject$b;
|
|
716
|
+
var toPropertyKey$1 = toPropertyKey$3;
|
|
717
|
+
|
|
718
|
+
var TypeError$6 = global$h.TypeError;
|
|
613
719
|
// eslint-disable-next-line es-x/no-object-defineproperty -- safe
|
|
614
720
|
var $defineProperty = Object.defineProperty;
|
|
615
721
|
// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
|
|
@@ -620,10 +726,10 @@
|
|
|
620
726
|
|
|
621
727
|
// `Object.defineProperty` method
|
|
622
728
|
// https://tc39.es/ecma262/#sec-object.defineproperty
|
|
623
|
-
|
|
624
|
-
anObject(O);
|
|
625
|
-
P = toPropertyKey(P);
|
|
626
|
-
anObject(Attributes);
|
|
729
|
+
objectDefineProperty.f = DESCRIPTORS$4 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
|
|
730
|
+
anObject$a(O);
|
|
731
|
+
P = toPropertyKey$1(P);
|
|
732
|
+
anObject$a(Attributes);
|
|
627
733
|
if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
|
|
628
734
|
var current = $getOwnPropertyDescriptor(O, P);
|
|
629
735
|
if (current && current[WRITABLE]) {
|
|
@@ -636,10 +742,10 @@
|
|
|
636
742
|
}
|
|
637
743
|
} return $defineProperty(O, P, Attributes);
|
|
638
744
|
} : $defineProperty : function defineProperty(O, P, Attributes) {
|
|
639
|
-
anObject(O);
|
|
640
|
-
P = toPropertyKey(P);
|
|
641
|
-
anObject(Attributes);
|
|
642
|
-
if (
|
|
745
|
+
anObject$a(O);
|
|
746
|
+
P = toPropertyKey$1(P);
|
|
747
|
+
anObject$a(Attributes);
|
|
748
|
+
if (IE8_DOM_DEFINE) try {
|
|
643
749
|
return $defineProperty(O, P, Attributes);
|
|
644
750
|
} catch (error) { /* empty */ }
|
|
645
751
|
if ('get' in Attributes || 'set' in Attributes) throw TypeError$6('Accessors not supported');
|
|
@@ -647,25 +753,30 @@
|
|
|
647
753
|
return O;
|
|
648
754
|
};
|
|
649
755
|
|
|
650
|
-
var
|
|
651
|
-
|
|
652
|
-
|
|
756
|
+
var DESCRIPTORS$3 = descriptors;
|
|
757
|
+
var definePropertyModule$4 = objectDefineProperty;
|
|
758
|
+
var createPropertyDescriptor$1 = createPropertyDescriptor$3;
|
|
653
759
|
|
|
654
|
-
var createNonEnumerableProperty =
|
|
655
|
-
return
|
|
760
|
+
var createNonEnumerableProperty$5 = DESCRIPTORS$3 ? function (object, key, value) {
|
|
761
|
+
return definePropertyModule$4.f(object, key, createPropertyDescriptor$1(1, value));
|
|
656
762
|
} : function (object, key, value) {
|
|
657
763
|
object[key] = value;
|
|
658
764
|
return object;
|
|
659
765
|
};
|
|
660
766
|
|
|
767
|
+
var makeBuiltIn$2 = {exports: {}};
|
|
768
|
+
|
|
769
|
+
var DESCRIPTORS$2 = descriptors;
|
|
770
|
+
var hasOwn$5 = hasOwnProperty_1;
|
|
771
|
+
|
|
661
772
|
var FunctionPrototype$1 = Function.prototype;
|
|
662
773
|
// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
|
|
663
|
-
var getDescriptor =
|
|
774
|
+
var getDescriptor = DESCRIPTORS$2 && Object.getOwnPropertyDescriptor;
|
|
664
775
|
|
|
665
|
-
var EXISTS =
|
|
776
|
+
var EXISTS = hasOwn$5(FunctionPrototype$1, 'name');
|
|
666
777
|
// additional protection from minified / mangled / dropped function names
|
|
667
778
|
var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
|
|
668
|
-
var CONFIGURABLE = EXISTS && (!
|
|
779
|
+
var CONFIGURABLE = EXISTS && (!DESCRIPTORS$2 || (DESCRIPTORS$2 && getDescriptor(FunctionPrototype$1, 'name').configurable));
|
|
669
780
|
|
|
670
781
|
var functionName = {
|
|
671
782
|
EXISTS: EXISTS,
|
|
@@ -673,32 +784,53 @@
|
|
|
673
784
|
CONFIGURABLE: CONFIGURABLE
|
|
674
785
|
};
|
|
675
786
|
|
|
676
|
-
var
|
|
787
|
+
var uncurryThis$e = functionUncurryThis;
|
|
788
|
+
var isCallable$8 = isCallable$e;
|
|
789
|
+
var store$1 = sharedStore;
|
|
790
|
+
|
|
791
|
+
var functionToString = uncurryThis$e(Function.toString);
|
|
677
792
|
|
|
678
793
|
// this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
|
|
679
|
-
if (!isCallable(
|
|
680
|
-
|
|
794
|
+
if (!isCallable$8(store$1.inspectSource)) {
|
|
795
|
+
store$1.inspectSource = function (it) {
|
|
681
796
|
return functionToString(it);
|
|
682
797
|
};
|
|
683
798
|
}
|
|
684
799
|
|
|
685
|
-
var inspectSource =
|
|
800
|
+
var inspectSource$3 = store$1.inspectSource;
|
|
801
|
+
|
|
802
|
+
var global$g = global$x;
|
|
803
|
+
var isCallable$7 = isCallable$e;
|
|
804
|
+
var inspectSource$2 = inspectSource$3;
|
|
805
|
+
|
|
806
|
+
var WeakMap$1 = global$g.WeakMap;
|
|
686
807
|
|
|
687
|
-
var WeakMap$1
|
|
808
|
+
var nativeWeakMap = isCallable$7(WeakMap$1) && /native code/.test(inspectSource$2(WeakMap$1));
|
|
688
809
|
|
|
689
|
-
var
|
|
810
|
+
var shared$2 = shared$4.exports;
|
|
811
|
+
var uid = uid$2;
|
|
690
812
|
|
|
691
|
-
var keys = shared('keys');
|
|
813
|
+
var keys = shared$2('keys');
|
|
692
814
|
|
|
693
|
-
var sharedKey = function (key) {
|
|
815
|
+
var sharedKey$2 = function (key) {
|
|
694
816
|
return keys[key] || (keys[key] = uid(key));
|
|
695
817
|
};
|
|
696
818
|
|
|
697
|
-
var hiddenKeys$
|
|
819
|
+
var hiddenKeys$4 = {};
|
|
820
|
+
|
|
821
|
+
var NATIVE_WEAK_MAP = nativeWeakMap;
|
|
822
|
+
var global$f = global$x;
|
|
823
|
+
var uncurryThis$d = functionUncurryThis;
|
|
824
|
+
var isObject$3 = isObject$8;
|
|
825
|
+
var createNonEnumerableProperty$4 = createNonEnumerableProperty$5;
|
|
826
|
+
var hasOwn$4 = hasOwnProperty_1;
|
|
827
|
+
var shared$1 = sharedStore;
|
|
828
|
+
var sharedKey$1 = sharedKey$2;
|
|
829
|
+
var hiddenKeys$3 = hiddenKeys$4;
|
|
698
830
|
|
|
699
831
|
var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
|
|
700
|
-
var TypeError$5 =
|
|
701
|
-
var WeakMap =
|
|
832
|
+
var TypeError$5 = global$f.TypeError;
|
|
833
|
+
var WeakMap = global$f.WeakMap;
|
|
702
834
|
var set, get, has;
|
|
703
835
|
|
|
704
836
|
var enforce = function (it) {
|
|
@@ -708,17 +840,17 @@
|
|
|
708
840
|
var getterFor = function (TYPE) {
|
|
709
841
|
return function (it) {
|
|
710
842
|
var state;
|
|
711
|
-
if (!isObject(it) || (state = get(it)).type !== TYPE) {
|
|
843
|
+
if (!isObject$3(it) || (state = get(it)).type !== TYPE) {
|
|
712
844
|
throw TypeError$5('Incompatible receiver, ' + TYPE + ' required');
|
|
713
845
|
} return state;
|
|
714
846
|
};
|
|
715
847
|
};
|
|
716
848
|
|
|
717
|
-
if (
|
|
718
|
-
var store =
|
|
719
|
-
var wmget =
|
|
720
|
-
var wmhas =
|
|
721
|
-
var wmset =
|
|
849
|
+
if (NATIVE_WEAK_MAP || shared$1.state) {
|
|
850
|
+
var store = shared$1.state || (shared$1.state = new WeakMap());
|
|
851
|
+
var wmget = uncurryThis$d(store.get);
|
|
852
|
+
var wmhas = uncurryThis$d(store.has);
|
|
853
|
+
var wmset = uncurryThis$d(store.set);
|
|
722
854
|
set = function (it, metadata) {
|
|
723
855
|
if (wmhas(store, it)) throw new TypeError$5(OBJECT_ALREADY_INITIALIZED);
|
|
724
856
|
metadata.facade = it;
|
|
@@ -732,19 +864,19 @@
|
|
|
732
864
|
return wmhas(store, it);
|
|
733
865
|
};
|
|
734
866
|
} else {
|
|
735
|
-
var STATE = sharedKey('state');
|
|
736
|
-
hiddenKeys$
|
|
867
|
+
var STATE = sharedKey$1('state');
|
|
868
|
+
hiddenKeys$3[STATE] = true;
|
|
737
869
|
set = function (it, metadata) {
|
|
738
|
-
if (
|
|
870
|
+
if (hasOwn$4(it, STATE)) throw new TypeError$5(OBJECT_ALREADY_INITIALIZED);
|
|
739
871
|
metadata.facade = it;
|
|
740
|
-
createNonEnumerableProperty(it, STATE, metadata);
|
|
872
|
+
createNonEnumerableProperty$4(it, STATE, metadata);
|
|
741
873
|
return metadata;
|
|
742
874
|
};
|
|
743
875
|
get = function (it) {
|
|
744
|
-
return
|
|
876
|
+
return hasOwn$4(it, STATE) ? it[STATE] : {};
|
|
745
877
|
};
|
|
746
878
|
has = function (it) {
|
|
747
|
-
return
|
|
879
|
+
return hasOwn$4(it, STATE);
|
|
748
880
|
};
|
|
749
881
|
}
|
|
750
882
|
|
|
@@ -756,55 +888,69 @@
|
|
|
756
888
|
getterFor: getterFor
|
|
757
889
|
};
|
|
758
890
|
|
|
759
|
-
var
|
|
760
|
-
var
|
|
891
|
+
var fails$d = fails$k;
|
|
892
|
+
var isCallable$6 = isCallable$e;
|
|
893
|
+
var hasOwn$3 = hasOwnProperty_1;
|
|
894
|
+
var DESCRIPTORS$1 = descriptors;
|
|
761
895
|
var CONFIGURABLE_FUNCTION_NAME = functionName.CONFIGURABLE;
|
|
896
|
+
var inspectSource$1 = inspectSource$3;
|
|
897
|
+
var InternalStateModule = internalState;
|
|
762
898
|
|
|
899
|
+
var enforceInternalState = InternalStateModule.enforce;
|
|
900
|
+
var getInternalState$1 = InternalStateModule.get;
|
|
901
|
+
// eslint-disable-next-line es-x/no-object-defineproperty -- safe
|
|
902
|
+
var defineProperty = Object.defineProperty;
|
|
763
903
|
|
|
764
|
-
|
|
765
|
-
var enforceInternalState = internalState.enforce;
|
|
766
|
-
var getInternalState = internalState.get;
|
|
767
|
-
|
|
768
|
-
var CONFIGURABLE_LENGTH = !fails(function () {
|
|
904
|
+
var CONFIGURABLE_LENGTH = DESCRIPTORS$1 && !fails$d(function () {
|
|
769
905
|
return defineProperty(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
|
|
770
906
|
});
|
|
771
907
|
|
|
772
908
|
var TEMPLATE = String(String).split('String');
|
|
773
909
|
|
|
774
|
-
var makeBuiltIn =
|
|
910
|
+
var makeBuiltIn$1 = makeBuiltIn$2.exports = function (value, name, options) {
|
|
775
911
|
if (String(name).slice(0, 7) === 'Symbol(') {
|
|
776
912
|
name = '[' + String(name).replace(/^Symbol\(([^)]*)\)/, '$1') + ']';
|
|
777
913
|
}
|
|
778
914
|
if (options && options.getter) name = 'get ' + name;
|
|
779
915
|
if (options && options.setter) name = 'set ' + name;
|
|
780
|
-
if (!
|
|
916
|
+
if (!hasOwn$3(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {
|
|
781
917
|
defineProperty(value, 'name', { value: name, configurable: true });
|
|
782
918
|
}
|
|
783
|
-
if (CONFIGURABLE_LENGTH && options &&
|
|
919
|
+
if (CONFIGURABLE_LENGTH && options && hasOwn$3(options, 'arity') && value.length !== options.arity) {
|
|
784
920
|
defineProperty(value, 'length', { value: options.arity });
|
|
785
921
|
}
|
|
922
|
+
if (options && hasOwn$3(options, 'constructor') && options.constructor) {
|
|
923
|
+
if (DESCRIPTORS$1) try {
|
|
924
|
+
defineProperty(value, 'prototype', { writable: false });
|
|
925
|
+
} catch (error) { /* empty */ }
|
|
926
|
+
} else value.prototype = undefined;
|
|
786
927
|
var state = enforceInternalState(value);
|
|
787
|
-
if (!
|
|
928
|
+
if (!hasOwn$3(state, 'source')) {
|
|
788
929
|
state.source = TEMPLATE.join(typeof name == 'string' ? name : '');
|
|
789
930
|
} return value;
|
|
790
931
|
};
|
|
791
932
|
|
|
792
933
|
// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
|
|
793
934
|
// eslint-disable-next-line no-extend-native -- required
|
|
794
|
-
Function.prototype.toString = makeBuiltIn(function toString() {
|
|
795
|
-
return isCallable(this) && getInternalState(this).source || inspectSource(this);
|
|
935
|
+
Function.prototype.toString = makeBuiltIn$1(function toString() {
|
|
936
|
+
return isCallable$6(this) && getInternalState$1(this).source || inspectSource$1(this);
|
|
796
937
|
}, 'toString');
|
|
797
|
-
});
|
|
798
938
|
|
|
799
|
-
var
|
|
939
|
+
var global$e = global$x;
|
|
940
|
+
var isCallable$5 = isCallable$e;
|
|
941
|
+
var createNonEnumerableProperty$3 = createNonEnumerableProperty$5;
|
|
942
|
+
var makeBuiltIn = makeBuiltIn$2.exports;
|
|
943
|
+
var setGlobal$1 = setGlobal$3;
|
|
944
|
+
|
|
945
|
+
var defineBuiltIn$4 = function (O, key, value, options) {
|
|
800
946
|
var unsafe = options ? !!options.unsafe : false;
|
|
801
947
|
var simple = options ? !!options.enumerable : false;
|
|
802
948
|
var noTargetGet = options ? !!options.noTargetGet : false;
|
|
803
949
|
var name = options && options.name !== undefined ? options.name : key;
|
|
804
|
-
if (isCallable(value))
|
|
805
|
-
if (O ===
|
|
950
|
+
if (isCallable$5(value)) makeBuiltIn(value, name, options);
|
|
951
|
+
if (O === global$e) {
|
|
806
952
|
if (simple) O[key] = value;
|
|
807
|
-
else setGlobal(key, value);
|
|
953
|
+
else setGlobal$1(key, value);
|
|
808
954
|
return O;
|
|
809
955
|
} else if (!unsafe) {
|
|
810
956
|
delete O[key];
|
|
@@ -812,52 +958,64 @@
|
|
|
812
958
|
simple = true;
|
|
813
959
|
}
|
|
814
960
|
if (simple) O[key] = value;
|
|
815
|
-
else createNonEnumerableProperty(O, key, value);
|
|
961
|
+
else createNonEnumerableProperty$3(O, key, value);
|
|
816
962
|
return O;
|
|
817
963
|
};
|
|
818
964
|
|
|
965
|
+
var objectGetOwnPropertyNames = {};
|
|
966
|
+
|
|
819
967
|
var ceil = Math.ceil;
|
|
820
968
|
var floor$1 = Math.floor;
|
|
821
969
|
|
|
822
970
|
// `ToIntegerOrInfinity` abstract operation
|
|
823
971
|
// https://tc39.es/ecma262/#sec-tointegerorinfinity
|
|
824
|
-
var toIntegerOrInfinity = function (argument) {
|
|
972
|
+
var toIntegerOrInfinity$4 = function (argument) {
|
|
825
973
|
var number = +argument;
|
|
826
974
|
// eslint-disable-next-line no-self-compare -- safe
|
|
827
975
|
return number !== number || number === 0 ? 0 : (number > 0 ? floor$1 : ceil)(number);
|
|
828
976
|
};
|
|
829
977
|
|
|
978
|
+
var toIntegerOrInfinity$3 = toIntegerOrInfinity$4;
|
|
979
|
+
|
|
830
980
|
var max$2 = Math.max;
|
|
831
981
|
var min$3 = Math.min;
|
|
832
982
|
|
|
833
983
|
// Helper for a popular repeating case of the spec:
|
|
834
984
|
// Let integer be ? ToInteger(index).
|
|
835
985
|
// If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
|
|
836
|
-
var toAbsoluteIndex = function (index, length) {
|
|
837
|
-
var integer = toIntegerOrInfinity(index);
|
|
986
|
+
var toAbsoluteIndex$2 = function (index, length) {
|
|
987
|
+
var integer = toIntegerOrInfinity$3(index);
|
|
838
988
|
return integer < 0 ? max$2(integer + length, 0) : min$3(integer, length);
|
|
839
989
|
};
|
|
840
990
|
|
|
991
|
+
var toIntegerOrInfinity$2 = toIntegerOrInfinity$4;
|
|
992
|
+
|
|
841
993
|
var min$2 = Math.min;
|
|
842
994
|
|
|
843
995
|
// `ToLength` abstract operation
|
|
844
996
|
// https://tc39.es/ecma262/#sec-tolength
|
|
845
|
-
var toLength = function (argument) {
|
|
846
|
-
return argument > 0 ? min$2(toIntegerOrInfinity(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
|
|
997
|
+
var toLength$3 = function (argument) {
|
|
998
|
+
return argument > 0 ? min$2(toIntegerOrInfinity$2(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
|
|
847
999
|
};
|
|
848
1000
|
|
|
1001
|
+
var toLength$2 = toLength$3;
|
|
1002
|
+
|
|
849
1003
|
// `LengthOfArrayLike` abstract operation
|
|
850
1004
|
// https://tc39.es/ecma262/#sec-lengthofarraylike
|
|
851
|
-
var lengthOfArrayLike = function (obj) {
|
|
852
|
-
return toLength(obj.length);
|
|
1005
|
+
var lengthOfArrayLike$4 = function (obj) {
|
|
1006
|
+
return toLength$2(obj.length);
|
|
853
1007
|
};
|
|
854
1008
|
|
|
1009
|
+
var toIndexedObject$3 = toIndexedObject$5;
|
|
1010
|
+
var toAbsoluteIndex$1 = toAbsoluteIndex$2;
|
|
1011
|
+
var lengthOfArrayLike$3 = lengthOfArrayLike$4;
|
|
1012
|
+
|
|
855
1013
|
// `Array.prototype.{ indexOf, includes }` methods implementation
|
|
856
1014
|
var createMethod$2 = function (IS_INCLUDES) {
|
|
857
1015
|
return function ($this, el, fromIndex) {
|
|
858
|
-
var O = toIndexedObject($this);
|
|
859
|
-
var length = lengthOfArrayLike(O);
|
|
860
|
-
var index = toAbsoluteIndex(fromIndex, length);
|
|
1016
|
+
var O = toIndexedObject$3($this);
|
|
1017
|
+
var length = lengthOfArrayLike$3(O);
|
|
1018
|
+
var index = toAbsoluteIndex$1(fromIndex, length);
|
|
861
1019
|
var value;
|
|
862
1020
|
// Array#includes uses SameValueZero equality algorithm
|
|
863
1021
|
// eslint-disable-next-line no-self-compare -- NaN check
|
|
@@ -881,26 +1039,29 @@
|
|
|
881
1039
|
indexOf: createMethod$2(false)
|
|
882
1040
|
};
|
|
883
1041
|
|
|
1042
|
+
var uncurryThis$c = functionUncurryThis;
|
|
1043
|
+
var hasOwn$2 = hasOwnProperty_1;
|
|
1044
|
+
var toIndexedObject$2 = toIndexedObject$5;
|
|
884
1045
|
var indexOf$1 = arrayIncludes.indexOf;
|
|
1046
|
+
var hiddenKeys$2 = hiddenKeys$4;
|
|
885
1047
|
|
|
886
|
-
|
|
887
|
-
var push$3 = functionUncurryThis([].push);
|
|
1048
|
+
var push$3 = uncurryThis$c([].push);
|
|
888
1049
|
|
|
889
1050
|
var objectKeysInternal = function (object, names) {
|
|
890
|
-
var O = toIndexedObject(object);
|
|
1051
|
+
var O = toIndexedObject$2(object);
|
|
891
1052
|
var i = 0;
|
|
892
1053
|
var result = [];
|
|
893
1054
|
var key;
|
|
894
|
-
for (key in O) !
|
|
1055
|
+
for (key in O) !hasOwn$2(hiddenKeys$2, key) && hasOwn$2(O, key) && push$3(result, key);
|
|
895
1056
|
// Don't enum bug & hidden keys
|
|
896
|
-
while (names.length > i) if (
|
|
1057
|
+
while (names.length > i) if (hasOwn$2(O, key = names[i++])) {
|
|
897
1058
|
~indexOf$1(result, key) || push$3(result, key);
|
|
898
1059
|
}
|
|
899
1060
|
return result;
|
|
900
1061
|
};
|
|
901
1062
|
|
|
902
1063
|
// IE8- don't enum bug keys
|
|
903
|
-
var enumBugKeys = [
|
|
1064
|
+
var enumBugKeys$3 = [
|
|
904
1065
|
'constructor',
|
|
905
1066
|
'hasOwnProperty',
|
|
906
1067
|
'isPrototypeOf',
|
|
@@ -910,73 +1071,85 @@
|
|
|
910
1071
|
'valueOf'
|
|
911
1072
|
];
|
|
912
1073
|
|
|
913
|
-
var
|
|
1074
|
+
var internalObjectKeys$1 = objectKeysInternal;
|
|
1075
|
+
var enumBugKeys$2 = enumBugKeys$3;
|
|
1076
|
+
|
|
1077
|
+
var hiddenKeys$1 = enumBugKeys$2.concat('length', 'prototype');
|
|
914
1078
|
|
|
915
1079
|
// `Object.getOwnPropertyNames` method
|
|
916
1080
|
// https://tc39.es/ecma262/#sec-object.getownpropertynames
|
|
917
1081
|
// eslint-disable-next-line es-x/no-object-getownpropertynames -- safe
|
|
918
|
-
|
|
919
|
-
return
|
|
1082
|
+
objectGetOwnPropertyNames.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
|
|
1083
|
+
return internalObjectKeys$1(O, hiddenKeys$1);
|
|
920
1084
|
};
|
|
921
1085
|
|
|
922
|
-
var
|
|
923
|
-
f: f$2
|
|
924
|
-
};
|
|
1086
|
+
var objectGetOwnPropertySymbols = {};
|
|
925
1087
|
|
|
926
1088
|
// eslint-disable-next-line es-x/no-object-getownpropertysymbols -- safe
|
|
927
|
-
|
|
1089
|
+
objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
|
|
928
1090
|
|
|
929
|
-
var
|
|
930
|
-
|
|
931
|
-
|
|
1091
|
+
var getBuiltIn$2 = getBuiltIn$5;
|
|
1092
|
+
var uncurryThis$b = functionUncurryThis;
|
|
1093
|
+
var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
|
|
1094
|
+
var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
|
|
1095
|
+
var anObject$9 = anObject$b;
|
|
932
1096
|
|
|
933
|
-
var concat$1 =
|
|
1097
|
+
var concat$1 = uncurryThis$b([].concat);
|
|
934
1098
|
|
|
935
1099
|
// all object keys, includes non-enumerable and symbols
|
|
936
|
-
var ownKeys = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {
|
|
937
|
-
var keys =
|
|
938
|
-
var getOwnPropertySymbols =
|
|
1100
|
+
var ownKeys$1 = getBuiltIn$2('Reflect', 'ownKeys') || function ownKeys(it) {
|
|
1101
|
+
var keys = getOwnPropertyNamesModule.f(anObject$9(it));
|
|
1102
|
+
var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
|
|
939
1103
|
return getOwnPropertySymbols ? concat$1(keys, getOwnPropertySymbols(it)) : keys;
|
|
940
1104
|
};
|
|
941
1105
|
|
|
942
|
-
var
|
|
1106
|
+
var hasOwn$1 = hasOwnProperty_1;
|
|
1107
|
+
var ownKeys = ownKeys$1;
|
|
1108
|
+
var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor;
|
|
1109
|
+
var definePropertyModule$3 = objectDefineProperty;
|
|
1110
|
+
|
|
1111
|
+
var copyConstructorProperties$1 = function (target, source, exceptions) {
|
|
943
1112
|
var keys = ownKeys(source);
|
|
944
|
-
var defineProperty =
|
|
945
|
-
var getOwnPropertyDescriptor =
|
|
1113
|
+
var defineProperty = definePropertyModule$3.f;
|
|
1114
|
+
var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
|
|
946
1115
|
for (var i = 0; i < keys.length; i++) {
|
|
947
1116
|
var key = keys[i];
|
|
948
|
-
if (!
|
|
1117
|
+
if (!hasOwn$1(target, key) && !(exceptions && hasOwn$1(exceptions, key))) {
|
|
949
1118
|
defineProperty(target, key, getOwnPropertyDescriptor(source, key));
|
|
950
1119
|
}
|
|
951
1120
|
}
|
|
952
1121
|
};
|
|
953
1122
|
|
|
1123
|
+
var fails$c = fails$k;
|
|
1124
|
+
var isCallable$4 = isCallable$e;
|
|
1125
|
+
|
|
954
1126
|
var replacement = /#|\.prototype\./;
|
|
955
1127
|
|
|
956
|
-
var isForced = function (feature, detection) {
|
|
1128
|
+
var isForced$1 = function (feature, detection) {
|
|
957
1129
|
var value = data[normalize(feature)];
|
|
958
1130
|
return value == POLYFILL ? true
|
|
959
1131
|
: value == NATIVE ? false
|
|
960
|
-
: isCallable(detection) ? fails(detection)
|
|
1132
|
+
: isCallable$4(detection) ? fails$c(detection)
|
|
961
1133
|
: !!detection;
|
|
962
1134
|
};
|
|
963
1135
|
|
|
964
|
-
var normalize = isForced.normalize = function (string) {
|
|
1136
|
+
var normalize = isForced$1.normalize = function (string) {
|
|
965
1137
|
return String(string).replace(replacement, '.').toLowerCase();
|
|
966
1138
|
};
|
|
967
1139
|
|
|
968
|
-
var data = isForced.data = {};
|
|
969
|
-
var NATIVE = isForced.NATIVE = 'N';
|
|
970
|
-
var POLYFILL = isForced.POLYFILL = 'P';
|
|
1140
|
+
var data = isForced$1.data = {};
|
|
1141
|
+
var NATIVE = isForced$1.NATIVE = 'N';
|
|
1142
|
+
var POLYFILL = isForced$1.POLYFILL = 'P';
|
|
971
1143
|
|
|
972
|
-
var isForced_1 = isForced;
|
|
1144
|
+
var isForced_1 = isForced$1;
|
|
973
1145
|
|
|
1146
|
+
var global$d = global$x;
|
|
974
1147
|
var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
1148
|
+
var createNonEnumerableProperty$2 = createNonEnumerableProperty$5;
|
|
1149
|
+
var defineBuiltIn$3 = defineBuiltIn$4;
|
|
1150
|
+
var setGlobal = setGlobal$3;
|
|
1151
|
+
var copyConstructorProperties = copyConstructorProperties$1;
|
|
1152
|
+
var isForced = isForced_1;
|
|
980
1153
|
|
|
981
1154
|
/*
|
|
982
1155
|
options.target - name of the target object
|
|
@@ -999,11 +1172,11 @@
|
|
|
999
1172
|
var STATIC = options.stat;
|
|
1000
1173
|
var FORCED, target, key, targetProperty, sourceProperty, descriptor;
|
|
1001
1174
|
if (GLOBAL) {
|
|
1002
|
-
target =
|
|
1175
|
+
target = global$d;
|
|
1003
1176
|
} else if (STATIC) {
|
|
1004
|
-
target =
|
|
1177
|
+
target = global$d[TARGET] || setGlobal(TARGET, {});
|
|
1005
1178
|
} else {
|
|
1006
|
-
target = (
|
|
1179
|
+
target = (global$d[TARGET] || {}).prototype;
|
|
1007
1180
|
}
|
|
1008
1181
|
if (target) for (key in source) {
|
|
1009
1182
|
sourceProperty = source[key];
|
|
@@ -1011,7 +1184,7 @@
|
|
|
1011
1184
|
descriptor = getOwnPropertyDescriptor(target, key);
|
|
1012
1185
|
targetProperty = descriptor && descriptor.value;
|
|
1013
1186
|
} else targetProperty = target[key];
|
|
1014
|
-
FORCED =
|
|
1187
|
+
FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
|
|
1015
1188
|
// contained in target
|
|
1016
1189
|
if (!FORCED && targetProperty !== undefined) {
|
|
1017
1190
|
if (typeof sourceProperty == typeof targetProperty) continue;
|
|
@@ -1019,47 +1192,58 @@
|
|
|
1019
1192
|
}
|
|
1020
1193
|
// add a flag to not completely full polyfills
|
|
1021
1194
|
if (options.sham || (targetProperty && targetProperty.sham)) {
|
|
1022
|
-
createNonEnumerableProperty(sourceProperty, 'sham', true);
|
|
1195
|
+
createNonEnumerableProperty$2(sourceProperty, 'sham', true);
|
|
1023
1196
|
}
|
|
1024
|
-
defineBuiltIn(target, key, sourceProperty, options);
|
|
1197
|
+
defineBuiltIn$3(target, key, sourceProperty, options);
|
|
1025
1198
|
}
|
|
1026
1199
|
};
|
|
1027
1200
|
|
|
1201
|
+
var objectDefineProperties = {};
|
|
1202
|
+
|
|
1203
|
+
var internalObjectKeys = objectKeysInternal;
|
|
1204
|
+
var enumBugKeys$1 = enumBugKeys$3;
|
|
1205
|
+
|
|
1028
1206
|
// `Object.keys` method
|
|
1029
1207
|
// https://tc39.es/ecma262/#sec-object.keys
|
|
1030
1208
|
// eslint-disable-next-line es-x/no-object-keys -- safe
|
|
1031
|
-
var objectKeys = Object.keys || function keys(O) {
|
|
1032
|
-
return
|
|
1209
|
+
var objectKeys$1 = Object.keys || function keys(O) {
|
|
1210
|
+
return internalObjectKeys(O, enumBugKeys$1);
|
|
1033
1211
|
};
|
|
1034
1212
|
|
|
1213
|
+
var DESCRIPTORS = descriptors;
|
|
1214
|
+
var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
|
|
1215
|
+
var definePropertyModule$2 = objectDefineProperty;
|
|
1216
|
+
var anObject$8 = anObject$b;
|
|
1217
|
+
var toIndexedObject$1 = toIndexedObject$5;
|
|
1218
|
+
var objectKeys = objectKeys$1;
|
|
1219
|
+
|
|
1035
1220
|
// `Object.defineProperties` method
|
|
1036
1221
|
// https://tc39.es/ecma262/#sec-object.defineproperties
|
|
1037
1222
|
// eslint-disable-next-line es-x/no-object-defineproperties -- safe
|
|
1038
|
-
|
|
1039
|
-
anObject(O);
|
|
1040
|
-
var props = toIndexedObject(Properties);
|
|
1223
|
+
objectDefineProperties.f = DESCRIPTORS && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
|
|
1224
|
+
anObject$8(O);
|
|
1225
|
+
var props = toIndexedObject$1(Properties);
|
|
1041
1226
|
var keys = objectKeys(Properties);
|
|
1042
1227
|
var length = keys.length;
|
|
1043
1228
|
var index = 0;
|
|
1044
1229
|
var key;
|
|
1045
|
-
while (length > index)
|
|
1230
|
+
while (length > index) definePropertyModule$2.f(O, key = keys[index++], props[key]);
|
|
1046
1231
|
return O;
|
|
1047
1232
|
};
|
|
1048
1233
|
|
|
1049
|
-
var
|
|
1050
|
-
f: f
|
|
1051
|
-
};
|
|
1234
|
+
var getBuiltIn$1 = getBuiltIn$5;
|
|
1052
1235
|
|
|
1053
|
-
var html = getBuiltIn('document', 'documentElement');
|
|
1236
|
+
var html$1 = getBuiltIn$1('document', 'documentElement');
|
|
1054
1237
|
|
|
1055
1238
|
/* global ActiveXObject -- old IE, WSH */
|
|
1056
1239
|
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1240
|
+
var anObject$7 = anObject$b;
|
|
1241
|
+
var definePropertiesModule = objectDefineProperties;
|
|
1242
|
+
var enumBugKeys = enumBugKeys$3;
|
|
1243
|
+
var hiddenKeys = hiddenKeys$4;
|
|
1244
|
+
var html = html$1;
|
|
1245
|
+
var documentCreateElement$1 = documentCreateElement$2;
|
|
1246
|
+
var sharedKey = sharedKey$2;
|
|
1063
1247
|
|
|
1064
1248
|
var GT = '>';
|
|
1065
1249
|
var LT = '<';
|
|
@@ -1085,7 +1269,7 @@
|
|
|
1085
1269
|
// Create object with fake `null` prototype: use iframe Object with cleared prototype
|
|
1086
1270
|
var NullProtoObjectViaIFrame = function () {
|
|
1087
1271
|
// Thrash, waste and sodomy: IE GC bug
|
|
1088
|
-
var iframe = documentCreateElement('iframe');
|
|
1272
|
+
var iframe = documentCreateElement$1('iframe');
|
|
1089
1273
|
var JS = 'java' + SCRIPT + ':';
|
|
1090
1274
|
var iframeDocument;
|
|
1091
1275
|
iframe.style.display = 'none';
|
|
@@ -1119,7 +1303,7 @@
|
|
|
1119
1303
|
return NullProtoObject();
|
|
1120
1304
|
};
|
|
1121
1305
|
|
|
1122
|
-
hiddenKeys
|
|
1306
|
+
hiddenKeys[IE_PROTO] = true;
|
|
1123
1307
|
|
|
1124
1308
|
// `Object.create` method
|
|
1125
1309
|
// https://tc39.es/ecma262/#sec-object.create
|
|
@@ -1127,78 +1311,98 @@
|
|
|
1127
1311
|
var objectCreate = Object.create || function create(O, Properties) {
|
|
1128
1312
|
var result;
|
|
1129
1313
|
if (O !== null) {
|
|
1130
|
-
EmptyConstructor[PROTOTYPE] = anObject(O);
|
|
1314
|
+
EmptyConstructor[PROTOTYPE] = anObject$7(O);
|
|
1131
1315
|
result = new EmptyConstructor();
|
|
1132
1316
|
EmptyConstructor[PROTOTYPE] = null;
|
|
1133
1317
|
// add "__proto__" for Object.getPrototypeOf polyfill
|
|
1134
1318
|
result[IE_PROTO] = O;
|
|
1135
1319
|
} else result = NullProtoObject();
|
|
1136
|
-
return Properties === undefined ? result :
|
|
1320
|
+
return Properties === undefined ? result : definePropertiesModule.f(result, Properties);
|
|
1137
1321
|
};
|
|
1138
1322
|
|
|
1139
|
-
var
|
|
1323
|
+
var wellKnownSymbol$a = wellKnownSymbol$c;
|
|
1324
|
+
var create$1 = objectCreate;
|
|
1325
|
+
var definePropertyModule$1 = objectDefineProperty;
|
|
1326
|
+
|
|
1327
|
+
var UNSCOPABLES = wellKnownSymbol$a('unscopables');
|
|
1140
1328
|
var ArrayPrototype = Array.prototype;
|
|
1141
1329
|
|
|
1142
1330
|
// Array.prototype[@@unscopables]
|
|
1143
1331
|
// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
|
|
1144
1332
|
if (ArrayPrototype[UNSCOPABLES] == undefined) {
|
|
1145
|
-
|
|
1333
|
+
definePropertyModule$1.f(ArrayPrototype, UNSCOPABLES, {
|
|
1146
1334
|
configurable: true,
|
|
1147
|
-
value:
|
|
1335
|
+
value: create$1(null)
|
|
1148
1336
|
});
|
|
1149
1337
|
}
|
|
1150
1338
|
|
|
1151
1339
|
// add a key to Array.prototype[@@unscopables]
|
|
1152
|
-
var addToUnscopables = function (key) {
|
|
1340
|
+
var addToUnscopables$2 = function (key) {
|
|
1153
1341
|
ArrayPrototype[UNSCOPABLES][key] = true;
|
|
1154
1342
|
};
|
|
1155
1343
|
|
|
1344
|
+
var $$7 = _export;
|
|
1156
1345
|
var $includes = arrayIncludes.includes;
|
|
1157
|
-
|
|
1158
|
-
|
|
1346
|
+
var fails$b = fails$k;
|
|
1347
|
+
var addToUnscopables$1 = addToUnscopables$2;
|
|
1159
1348
|
|
|
1160
1349
|
// FF99+ bug
|
|
1161
|
-
var BROKEN_ON_SPARSE = fails(function () {
|
|
1350
|
+
var BROKEN_ON_SPARSE = fails$b(function () {
|
|
1162
1351
|
return !Array(1).includes();
|
|
1163
1352
|
});
|
|
1164
1353
|
|
|
1165
1354
|
// `Array.prototype.includes` method
|
|
1166
1355
|
// https://tc39.es/ecma262/#sec-array.prototype.includes
|
|
1167
|
-
|
|
1356
|
+
$$7({ target: 'Array', proto: true, forced: BROKEN_ON_SPARSE }, {
|
|
1168
1357
|
includes: function includes(el /* , fromIndex = 0 */) {
|
|
1169
1358
|
return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined);
|
|
1170
1359
|
}
|
|
1171
1360
|
});
|
|
1172
1361
|
|
|
1173
1362
|
// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
|
|
1174
|
-
addToUnscopables('includes');
|
|
1363
|
+
addToUnscopables$1('includes');
|
|
1364
|
+
|
|
1365
|
+
var isObject$2 = isObject$8;
|
|
1366
|
+
var classof$6 = classofRaw$1;
|
|
1367
|
+
var wellKnownSymbol$9 = wellKnownSymbol$c;
|
|
1175
1368
|
|
|
1176
|
-
var MATCH$1 = wellKnownSymbol('match');
|
|
1369
|
+
var MATCH$1 = wellKnownSymbol$9('match');
|
|
1177
1370
|
|
|
1178
1371
|
// `IsRegExp` abstract operation
|
|
1179
1372
|
// https://tc39.es/ecma262/#sec-isregexp
|
|
1180
1373
|
var isRegexp = function (it) {
|
|
1181
1374
|
var isRegExp;
|
|
1182
|
-
return isObject(it) && ((isRegExp = it[MATCH$1]) !== undefined ? !!isRegExp :
|
|
1375
|
+
return isObject$2(it) && ((isRegExp = it[MATCH$1]) !== undefined ? !!isRegExp : classof$6(it) == 'RegExp');
|
|
1183
1376
|
};
|
|
1184
1377
|
|
|
1185
|
-
var
|
|
1378
|
+
var global$c = global$x;
|
|
1379
|
+
var isRegExp$1 = isRegexp;
|
|
1380
|
+
|
|
1381
|
+
var TypeError$4 = global$c.TypeError;
|
|
1186
1382
|
|
|
1187
1383
|
var notARegexp = function (it) {
|
|
1188
|
-
if (
|
|
1384
|
+
if (isRegExp$1(it)) {
|
|
1189
1385
|
throw TypeError$4("The method doesn't accept regular expressions");
|
|
1190
1386
|
} return it;
|
|
1191
1387
|
};
|
|
1192
1388
|
|
|
1193
|
-
var
|
|
1389
|
+
var wellKnownSymbol$8 = wellKnownSymbol$c;
|
|
1390
|
+
|
|
1391
|
+
var TO_STRING_TAG$1 = wellKnownSymbol$8('toStringTag');
|
|
1194
1392
|
var test = {};
|
|
1195
1393
|
|
|
1196
1394
|
test[TO_STRING_TAG$1] = 'z';
|
|
1197
1395
|
|
|
1198
1396
|
var toStringTagSupport = String(test) === '[object z]';
|
|
1199
1397
|
|
|
1200
|
-
var
|
|
1201
|
-
var
|
|
1398
|
+
var global$b = global$x;
|
|
1399
|
+
var TO_STRING_TAG_SUPPORT$2 = toStringTagSupport;
|
|
1400
|
+
var isCallable$3 = isCallable$e;
|
|
1401
|
+
var classofRaw = classofRaw$1;
|
|
1402
|
+
var wellKnownSymbol$7 = wellKnownSymbol$c;
|
|
1403
|
+
|
|
1404
|
+
var TO_STRING_TAG = wellKnownSymbol$7('toStringTag');
|
|
1405
|
+
var Object$1 = global$b.Object;
|
|
1202
1406
|
|
|
1203
1407
|
// ES3 wrong here
|
|
1204
1408
|
var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments';
|
|
@@ -1211,7 +1415,7 @@
|
|
|
1211
1415
|
};
|
|
1212
1416
|
|
|
1213
1417
|
// getting tag from ES6+ `Object.prototype.toString`
|
|
1214
|
-
var classof =
|
|
1418
|
+
var classof$5 = TO_STRING_TAG_SUPPORT$2 ? classofRaw : function (it) {
|
|
1215
1419
|
var O, tag, result;
|
|
1216
1420
|
return it === undefined ? 'Undefined' : it === null ? 'Null'
|
|
1217
1421
|
// @@toStringTag case
|
|
@@ -1219,17 +1423,22 @@
|
|
|
1219
1423
|
// builtinTag case
|
|
1220
1424
|
: CORRECT_ARGUMENTS ? classofRaw(O)
|
|
1221
1425
|
// ES3 arguments fallback
|
|
1222
|
-
: (result = classofRaw(O)) == 'Object' && isCallable(O.callee) ? 'Arguments' : result;
|
|
1426
|
+
: (result = classofRaw(O)) == 'Object' && isCallable$3(O.callee) ? 'Arguments' : result;
|
|
1223
1427
|
};
|
|
1224
1428
|
|
|
1225
|
-
var
|
|
1429
|
+
var global$a = global$x;
|
|
1430
|
+
var classof$4 = classof$5;
|
|
1431
|
+
|
|
1432
|
+
var String$1 = global$a.String;
|
|
1226
1433
|
|
|
1227
|
-
var
|
|
1228
|
-
if (classof(argument) === 'Symbol') throw TypeError('Cannot convert a Symbol value to a string');
|
|
1434
|
+
var toString$7 = function (argument) {
|
|
1435
|
+
if (classof$4(argument) === 'Symbol') throw TypeError('Cannot convert a Symbol value to a string');
|
|
1229
1436
|
return String$1(argument);
|
|
1230
1437
|
};
|
|
1231
1438
|
|
|
1232
|
-
var
|
|
1439
|
+
var wellKnownSymbol$6 = wellKnownSymbol$c;
|
|
1440
|
+
|
|
1441
|
+
var MATCH = wellKnownSymbol$6('match');
|
|
1233
1442
|
|
|
1234
1443
|
var correctIsRegexpLogic = function (METHOD_NAME) {
|
|
1235
1444
|
var regexp = /./;
|
|
@@ -1243,42 +1452,62 @@
|
|
|
1243
1452
|
} return false;
|
|
1244
1453
|
};
|
|
1245
1454
|
|
|
1246
|
-
var
|
|
1455
|
+
var $$6 = _export;
|
|
1456
|
+
var uncurryThis$a = functionUncurryThis;
|
|
1457
|
+
var notARegExp = notARegexp;
|
|
1458
|
+
var requireObjectCoercible$4 = requireObjectCoercible$7;
|
|
1459
|
+
var toString$6 = toString$7;
|
|
1460
|
+
var correctIsRegExpLogic = correctIsRegexpLogic;
|
|
1461
|
+
|
|
1462
|
+
var stringIndexOf$1 = uncurryThis$a(''.indexOf);
|
|
1247
1463
|
|
|
1248
1464
|
// `String.prototype.includes` method
|
|
1249
1465
|
// https://tc39.es/ecma262/#sec-string.prototype.includes
|
|
1250
|
-
|
|
1466
|
+
$$6({ target: 'String', proto: true, forced: !correctIsRegExpLogic('includes') }, {
|
|
1251
1467
|
includes: function includes(searchString /* , position = 0 */) {
|
|
1252
1468
|
return !!~stringIndexOf$1(
|
|
1253
|
-
|
|
1254
|
-
|
|
1469
|
+
toString$6(requireObjectCoercible$4(this)),
|
|
1470
|
+
toString$6(notARegExp(searchString)),
|
|
1255
1471
|
arguments.length > 1 ? arguments[1] : undefined
|
|
1256
1472
|
);
|
|
1257
1473
|
}
|
|
1258
1474
|
});
|
|
1259
1475
|
|
|
1476
|
+
var classof$3 = classofRaw$1;
|
|
1477
|
+
|
|
1260
1478
|
// `IsArray` abstract operation
|
|
1261
1479
|
// https://tc39.es/ecma262/#sec-isarray
|
|
1262
1480
|
// eslint-disable-next-line es-x/no-array-isarray -- safe
|
|
1263
|
-
var isArray = Array.isArray || function isArray(argument) {
|
|
1264
|
-
return
|
|
1481
|
+
var isArray$2 = Array.isArray || function isArray(argument) {
|
|
1482
|
+
return classof$3(argument) == 'Array';
|
|
1265
1483
|
};
|
|
1266
1484
|
|
|
1267
|
-
var
|
|
1485
|
+
var toPropertyKey = toPropertyKey$3;
|
|
1486
|
+
var definePropertyModule = objectDefineProperty;
|
|
1487
|
+
var createPropertyDescriptor = createPropertyDescriptor$3;
|
|
1488
|
+
|
|
1489
|
+
var createProperty$2 = function (object, key, value) {
|
|
1268
1490
|
var propertyKey = toPropertyKey(key);
|
|
1269
|
-
if (propertyKey in object)
|
|
1491
|
+
if (propertyKey in object) definePropertyModule.f(object, propertyKey, createPropertyDescriptor(0, value));
|
|
1270
1492
|
else object[propertyKey] = value;
|
|
1271
1493
|
};
|
|
1272
1494
|
|
|
1495
|
+
var uncurryThis$9 = functionUncurryThis;
|
|
1496
|
+
var fails$a = fails$k;
|
|
1497
|
+
var isCallable$2 = isCallable$e;
|
|
1498
|
+
var classof$2 = classof$5;
|
|
1499
|
+
var getBuiltIn = getBuiltIn$5;
|
|
1500
|
+
var inspectSource = inspectSource$3;
|
|
1501
|
+
|
|
1273
1502
|
var noop = function () { /* empty */ };
|
|
1274
1503
|
var empty = [];
|
|
1275
1504
|
var construct = getBuiltIn('Reflect', 'construct');
|
|
1276
1505
|
var constructorRegExp = /^\s*(?:class|function)\b/;
|
|
1277
|
-
var exec$
|
|
1506
|
+
var exec$2 = uncurryThis$9(constructorRegExp.exec);
|
|
1278
1507
|
var INCORRECT_TO_STRING = !constructorRegExp.exec(noop);
|
|
1279
1508
|
|
|
1280
1509
|
var isConstructorModern = function isConstructor(argument) {
|
|
1281
|
-
if (!isCallable(argument)) return false;
|
|
1510
|
+
if (!isCallable$2(argument)) return false;
|
|
1282
1511
|
try {
|
|
1283
1512
|
construct(noop, empty, argument);
|
|
1284
1513
|
return true;
|
|
@@ -1288,8 +1517,8 @@
|
|
|
1288
1517
|
};
|
|
1289
1518
|
|
|
1290
1519
|
var isConstructorLegacy = function isConstructor(argument) {
|
|
1291
|
-
if (!isCallable(argument)) return false;
|
|
1292
|
-
switch (classof(argument)) {
|
|
1520
|
+
if (!isCallable$2(argument)) return false;
|
|
1521
|
+
switch (classof$2(argument)) {
|
|
1293
1522
|
case 'AsyncFunction':
|
|
1294
1523
|
case 'GeneratorFunction':
|
|
1295
1524
|
case 'AsyncGeneratorFunction': return false;
|
|
@@ -1298,7 +1527,7 @@
|
|
|
1298
1527
|
// we can't check .prototype since constructors produced by .bind haven't it
|
|
1299
1528
|
// `Function#toString` throws on some built-it function in some legacy engines
|
|
1300
1529
|
// (for example, `DOMQuad` and similar in FF41-)
|
|
1301
|
-
return INCORRECT_TO_STRING || !!exec$
|
|
1530
|
+
return INCORRECT_TO_STRING || !!exec$2(constructorRegExp, inspectSource(argument));
|
|
1302
1531
|
} catch (error) {
|
|
1303
1532
|
return true;
|
|
1304
1533
|
}
|
|
@@ -1308,7 +1537,7 @@
|
|
|
1308
1537
|
|
|
1309
1538
|
// `IsConstructor` abstract operation
|
|
1310
1539
|
// https://tc39.es/ecma262/#sec-isconstructor
|
|
1311
|
-
var isConstructor = !construct || fails(function () {
|
|
1540
|
+
var isConstructor$2 = !construct || fails$a(function () {
|
|
1312
1541
|
var called;
|
|
1313
1542
|
return isConstructorModern(isConstructorModern.call)
|
|
1314
1543
|
|| !isConstructorModern(Object)
|
|
@@ -1316,37 +1545,49 @@
|
|
|
1316
1545
|
|| called;
|
|
1317
1546
|
}) ? isConstructorLegacy : isConstructorModern;
|
|
1318
1547
|
|
|
1319
|
-
var
|
|
1320
|
-
var
|
|
1548
|
+
var global$9 = global$x;
|
|
1549
|
+
var isArray$1 = isArray$2;
|
|
1550
|
+
var isConstructor$1 = isConstructor$2;
|
|
1551
|
+
var isObject$1 = isObject$8;
|
|
1552
|
+
var wellKnownSymbol$5 = wellKnownSymbol$c;
|
|
1553
|
+
|
|
1554
|
+
var SPECIES$3 = wellKnownSymbol$5('species');
|
|
1555
|
+
var Array$2 = global$9.Array;
|
|
1321
1556
|
|
|
1322
1557
|
// a part of `ArraySpeciesCreate` abstract operation
|
|
1323
1558
|
// https://tc39.es/ecma262/#sec-arrayspeciescreate
|
|
1324
|
-
var arraySpeciesConstructor = function (originalArray) {
|
|
1559
|
+
var arraySpeciesConstructor$1 = function (originalArray) {
|
|
1325
1560
|
var C;
|
|
1326
|
-
if (isArray(originalArray)) {
|
|
1561
|
+
if (isArray$1(originalArray)) {
|
|
1327
1562
|
C = originalArray.constructor;
|
|
1328
1563
|
// cross-realm fallback
|
|
1329
|
-
if (isConstructor(C) && (C === Array$2 || isArray(C.prototype))) C = undefined;
|
|
1330
|
-
else if (isObject(C)) {
|
|
1564
|
+
if (isConstructor$1(C) && (C === Array$2 || isArray$1(C.prototype))) C = undefined;
|
|
1565
|
+
else if (isObject$1(C)) {
|
|
1331
1566
|
C = C[SPECIES$3];
|
|
1332
1567
|
if (C === null) C = undefined;
|
|
1333
1568
|
}
|
|
1334
1569
|
} return C === undefined ? Array$2 : C;
|
|
1335
1570
|
};
|
|
1336
1571
|
|
|
1572
|
+
var arraySpeciesConstructor = arraySpeciesConstructor$1;
|
|
1573
|
+
|
|
1337
1574
|
// `ArraySpeciesCreate` abstract operation
|
|
1338
1575
|
// https://tc39.es/ecma262/#sec-arrayspeciescreate
|
|
1339
|
-
var arraySpeciesCreate = function (originalArray, length) {
|
|
1576
|
+
var arraySpeciesCreate$2 = function (originalArray, length) {
|
|
1340
1577
|
return new (arraySpeciesConstructor(originalArray))(length === 0 ? 0 : length);
|
|
1341
1578
|
};
|
|
1342
1579
|
|
|
1343
|
-
var
|
|
1580
|
+
var fails$9 = fails$k;
|
|
1581
|
+
var wellKnownSymbol$4 = wellKnownSymbol$c;
|
|
1582
|
+
var V8_VERSION$1 = engineV8Version;
|
|
1344
1583
|
|
|
1345
|
-
var
|
|
1584
|
+
var SPECIES$2 = wellKnownSymbol$4('species');
|
|
1585
|
+
|
|
1586
|
+
var arrayMethodHasSpeciesSupport$3 = function (METHOD_NAME) {
|
|
1346
1587
|
// We can't use this feature detection in V8 since it causes
|
|
1347
1588
|
// deoptimization and serious performance degradation
|
|
1348
1589
|
// https://github.com/zloirock/core-js/issues/677
|
|
1349
|
-
return
|
|
1590
|
+
return V8_VERSION$1 >= 51 || !fails$9(function () {
|
|
1350
1591
|
var array = [];
|
|
1351
1592
|
var constructor = array.constructor = {};
|
|
1352
1593
|
constructor[SPECIES$2] = function () {
|
|
@@ -1356,21 +1597,34 @@
|
|
|
1356
1597
|
});
|
|
1357
1598
|
};
|
|
1358
1599
|
|
|
1359
|
-
var
|
|
1600
|
+
var $$5 = _export;
|
|
1601
|
+
var global$8 = global$x;
|
|
1602
|
+
var fails$8 = fails$k;
|
|
1603
|
+
var isArray = isArray$2;
|
|
1604
|
+
var isObject = isObject$8;
|
|
1605
|
+
var toObject$2 = toObject$4;
|
|
1606
|
+
var lengthOfArrayLike$2 = lengthOfArrayLike$4;
|
|
1607
|
+
var createProperty$1 = createProperty$2;
|
|
1608
|
+
var arraySpeciesCreate$1 = arraySpeciesCreate$2;
|
|
1609
|
+
var arrayMethodHasSpeciesSupport$2 = arrayMethodHasSpeciesSupport$3;
|
|
1610
|
+
var wellKnownSymbol$3 = wellKnownSymbol$c;
|
|
1611
|
+
var V8_VERSION = engineV8Version;
|
|
1612
|
+
|
|
1613
|
+
var IS_CONCAT_SPREADABLE = wellKnownSymbol$3('isConcatSpreadable');
|
|
1360
1614
|
var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF;
|
|
1361
1615
|
var MAXIMUM_ALLOWED_INDEX_EXCEEDED = 'Maximum allowed index exceeded';
|
|
1362
|
-
var TypeError$3 =
|
|
1616
|
+
var TypeError$3 = global$8.TypeError;
|
|
1363
1617
|
|
|
1364
1618
|
// We can't use this feature detection in V8 since it causes
|
|
1365
1619
|
// deoptimization and serious performance degradation
|
|
1366
1620
|
// https://github.com/zloirock/core-js/issues/679
|
|
1367
|
-
var IS_CONCAT_SPREADABLE_SUPPORT =
|
|
1621
|
+
var IS_CONCAT_SPREADABLE_SUPPORT = V8_VERSION >= 51 || !fails$8(function () {
|
|
1368
1622
|
var array = [];
|
|
1369
1623
|
array[IS_CONCAT_SPREADABLE] = false;
|
|
1370
1624
|
return array.concat()[0] !== array;
|
|
1371
1625
|
});
|
|
1372
1626
|
|
|
1373
|
-
var SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('concat');
|
|
1627
|
+
var SPECIES_SUPPORT = arrayMethodHasSpeciesSupport$2('concat');
|
|
1374
1628
|
|
|
1375
1629
|
var isConcatSpreadable = function (O) {
|
|
1376
1630
|
if (!isObject(O)) return false;
|
|
@@ -1383,22 +1637,22 @@
|
|
|
1383
1637
|
// `Array.prototype.concat` method
|
|
1384
1638
|
// https://tc39.es/ecma262/#sec-array.prototype.concat
|
|
1385
1639
|
// with adding support of @@isConcatSpreadable and @@species
|
|
1386
|
-
|
|
1640
|
+
$$5({ target: 'Array', proto: true, arity: 1, forced: FORCED }, {
|
|
1387
1641
|
// eslint-disable-next-line no-unused-vars -- required for `.length`
|
|
1388
1642
|
concat: function concat(arg) {
|
|
1389
|
-
var O = toObject(this);
|
|
1390
|
-
var A = arraySpeciesCreate(O, 0);
|
|
1643
|
+
var O = toObject$2(this);
|
|
1644
|
+
var A = arraySpeciesCreate$1(O, 0);
|
|
1391
1645
|
var n = 0;
|
|
1392
1646
|
var i, k, length, len, E;
|
|
1393
1647
|
for (i = -1, length = arguments.length; i < length; i++) {
|
|
1394
1648
|
E = i === -1 ? O : arguments[i];
|
|
1395
1649
|
if (isConcatSpreadable(E)) {
|
|
1396
|
-
len = lengthOfArrayLike(E);
|
|
1650
|
+
len = lengthOfArrayLike$2(E);
|
|
1397
1651
|
if (n + len > MAX_SAFE_INTEGER) throw TypeError$3(MAXIMUM_ALLOWED_INDEX_EXCEEDED);
|
|
1398
|
-
for (k = 0; k < len; k++, n++) if (k in E) createProperty(A, n, E[k]);
|
|
1652
|
+
for (k = 0; k < len; k++, n++) if (k in E) createProperty$1(A, n, E[k]);
|
|
1399
1653
|
} else {
|
|
1400
1654
|
if (n >= MAX_SAFE_INTEGER) throw TypeError$3(MAXIMUM_ALLOWED_INDEX_EXCEEDED);
|
|
1401
|
-
createProperty(A, n++, E);
|
|
1655
|
+
createProperty$1(A, n++, E);
|
|
1402
1656
|
}
|
|
1403
1657
|
}
|
|
1404
1658
|
A.length = n;
|
|
@@ -1406,10 +1660,12 @@
|
|
|
1406
1660
|
}
|
|
1407
1661
|
});
|
|
1408
1662
|
|
|
1663
|
+
var anObject$6 = anObject$b;
|
|
1664
|
+
|
|
1409
1665
|
// `RegExp.prototype.flags` getter implementation
|
|
1410
1666
|
// https://tc39.es/ecma262/#sec-get-regexp.prototype.flags
|
|
1411
|
-
var regexpFlags = function () {
|
|
1412
|
-
var that = anObject(this);
|
|
1667
|
+
var regexpFlags$1 = function () {
|
|
1668
|
+
var that = anObject$6(this);
|
|
1413
1669
|
var result = '';
|
|
1414
1670
|
if (that.hasIndices) result += 'd';
|
|
1415
1671
|
if (that.global) result += 'g';
|
|
@@ -1421,10 +1677,13 @@
|
|
|
1421
1677
|
return result;
|
|
1422
1678
|
};
|
|
1423
1679
|
|
|
1680
|
+
var fails$7 = fails$k;
|
|
1681
|
+
var global$7 = global$x;
|
|
1682
|
+
|
|
1424
1683
|
// babel-minify and Closure Compiler transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError
|
|
1425
|
-
var $RegExp$2 =
|
|
1684
|
+
var $RegExp$2 = global$7.RegExp;
|
|
1426
1685
|
|
|
1427
|
-
var UNSUPPORTED_Y$2 = fails(function () {
|
|
1686
|
+
var UNSUPPORTED_Y$2 = fails$7(function () {
|
|
1428
1687
|
var re = $RegExp$2('a', 'y');
|
|
1429
1688
|
re.lastIndex = 2;
|
|
1430
1689
|
return re.exec('abcd') != null;
|
|
@@ -1432,11 +1691,11 @@
|
|
|
1432
1691
|
|
|
1433
1692
|
// UC Browser bug
|
|
1434
1693
|
// https://github.com/zloirock/core-js/issues/1008
|
|
1435
|
-
var MISSED_STICKY = UNSUPPORTED_Y$2 || fails(function () {
|
|
1694
|
+
var MISSED_STICKY = UNSUPPORTED_Y$2 || fails$7(function () {
|
|
1436
1695
|
return !$RegExp$2('a', 'y').sticky;
|
|
1437
1696
|
});
|
|
1438
1697
|
|
|
1439
|
-
var BROKEN_CARET = UNSUPPORTED_Y$2 || fails(function () {
|
|
1698
|
+
var BROKEN_CARET = UNSUPPORTED_Y$2 || fails$7(function () {
|
|
1440
1699
|
// https://bugzilla.mozilla.org/show_bug.cgi?id=773687
|
|
1441
1700
|
var re = $RegExp$2('^r', 'gy');
|
|
1442
1701
|
re.lastIndex = 2;
|
|
@@ -1449,18 +1708,24 @@
|
|
|
1449
1708
|
UNSUPPORTED_Y: UNSUPPORTED_Y$2
|
|
1450
1709
|
};
|
|
1451
1710
|
|
|
1711
|
+
var fails$6 = fails$k;
|
|
1712
|
+
var global$6 = global$x;
|
|
1713
|
+
|
|
1452
1714
|
// babel-minify and Closure Compiler transpiles RegExp('.', 's') -> /./s and it causes SyntaxError
|
|
1453
|
-
var $RegExp$1 =
|
|
1715
|
+
var $RegExp$1 = global$6.RegExp;
|
|
1454
1716
|
|
|
1455
|
-
var regexpUnsupportedDotAll = fails(function () {
|
|
1717
|
+
var regexpUnsupportedDotAll = fails$6(function () {
|
|
1456
1718
|
var re = $RegExp$1('.', 's');
|
|
1457
1719
|
return !(re.dotAll && re.exec('\n') && re.flags === 's');
|
|
1458
1720
|
});
|
|
1459
1721
|
|
|
1722
|
+
var fails$5 = fails$k;
|
|
1723
|
+
var global$5 = global$x;
|
|
1724
|
+
|
|
1460
1725
|
// babel-minify and Closure Compiler transpiles RegExp('(?<a>b)', 'g') -> /(?<a>b)/g and it causes SyntaxError
|
|
1461
|
-
var $RegExp =
|
|
1726
|
+
var $RegExp = global$5.RegExp;
|
|
1462
1727
|
|
|
1463
|
-
var regexpUnsupportedNcg = fails(function () {
|
|
1728
|
+
var regexpUnsupportedNcg = fails$5(function () {
|
|
1464
1729
|
var re = $RegExp('(?<a>b)', 'g');
|
|
1465
1730
|
return re.exec('b').groups.a !== 'b' ||
|
|
1466
1731
|
'b'.replace(re, '$<a>c') !== 'bc';
|
|
@@ -1468,58 +1733,58 @@
|
|
|
1468
1733
|
|
|
1469
1734
|
/* eslint-disable regexp/no-empty-capturing-group, regexp/no-empty-group, regexp/no-lazy-ends -- testing */
|
|
1470
1735
|
/* eslint-disable regexp/no-useless-quantifier -- testing */
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1736
|
+
var call$6 = functionCall;
|
|
1737
|
+
var uncurryThis$8 = functionUncurryThis;
|
|
1738
|
+
var toString$5 = toString$7;
|
|
1739
|
+
var regexpFlags = regexpFlags$1;
|
|
1740
|
+
var stickyHelpers$1 = regexpStickyHelpers;
|
|
1741
|
+
var shared = shared$4.exports;
|
|
1742
|
+
var create = objectCreate;
|
|
1478
1743
|
var getInternalState = internalState.get;
|
|
1479
|
-
|
|
1480
|
-
|
|
1744
|
+
var UNSUPPORTED_DOT_ALL = regexpUnsupportedDotAll;
|
|
1745
|
+
var UNSUPPORTED_NCG = regexpUnsupportedNcg;
|
|
1481
1746
|
|
|
1482
1747
|
var nativeReplace = shared('native-string-replace', String.prototype.replace);
|
|
1483
1748
|
var nativeExec = RegExp.prototype.exec;
|
|
1484
1749
|
var patchedExec = nativeExec;
|
|
1485
|
-
var charAt$3 =
|
|
1486
|
-
var indexOf =
|
|
1487
|
-
var replace$1 =
|
|
1488
|
-
var stringSlice$4 =
|
|
1750
|
+
var charAt$3 = uncurryThis$8(''.charAt);
|
|
1751
|
+
var indexOf = uncurryThis$8(''.indexOf);
|
|
1752
|
+
var replace$1 = uncurryThis$8(''.replace);
|
|
1753
|
+
var stringSlice$4 = uncurryThis$8(''.slice);
|
|
1489
1754
|
|
|
1490
1755
|
var UPDATES_LAST_INDEX_WRONG = (function () {
|
|
1491
1756
|
var re1 = /a/;
|
|
1492
1757
|
var re2 = /b*/g;
|
|
1493
|
-
|
|
1494
|
-
|
|
1758
|
+
call$6(nativeExec, re1, 'a');
|
|
1759
|
+
call$6(nativeExec, re2, 'a');
|
|
1495
1760
|
return re1.lastIndex !== 0 || re2.lastIndex !== 0;
|
|
1496
1761
|
})();
|
|
1497
1762
|
|
|
1498
|
-
var UNSUPPORTED_Y$1 =
|
|
1763
|
+
var UNSUPPORTED_Y$1 = stickyHelpers$1.BROKEN_CARET;
|
|
1499
1764
|
|
|
1500
1765
|
// nonparticipating capturing group, copied from es5-shim's String#split patch.
|
|
1501
1766
|
var NPCG_INCLUDED = /()??/.exec('')[1] !== undefined;
|
|
1502
1767
|
|
|
1503
|
-
var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED || UNSUPPORTED_Y$1 ||
|
|
1768
|
+
var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED || UNSUPPORTED_Y$1 || UNSUPPORTED_DOT_ALL || UNSUPPORTED_NCG;
|
|
1504
1769
|
|
|
1505
1770
|
if (PATCH) {
|
|
1506
1771
|
patchedExec = function exec(string) {
|
|
1507
1772
|
var re = this;
|
|
1508
1773
|
var state = getInternalState(re);
|
|
1509
|
-
var str =
|
|
1774
|
+
var str = toString$5(string);
|
|
1510
1775
|
var raw = state.raw;
|
|
1511
1776
|
var result, reCopy, lastIndex, match, i, object, group;
|
|
1512
1777
|
|
|
1513
1778
|
if (raw) {
|
|
1514
1779
|
raw.lastIndex = re.lastIndex;
|
|
1515
|
-
result =
|
|
1780
|
+
result = call$6(patchedExec, raw, str);
|
|
1516
1781
|
re.lastIndex = raw.lastIndex;
|
|
1517
1782
|
return result;
|
|
1518
1783
|
}
|
|
1519
1784
|
|
|
1520
1785
|
var groups = state.groups;
|
|
1521
1786
|
var sticky = UNSUPPORTED_Y$1 && re.sticky;
|
|
1522
|
-
var flags =
|
|
1787
|
+
var flags = call$6(regexpFlags, re);
|
|
1523
1788
|
var source = re.source;
|
|
1524
1789
|
var charsAdded = 0;
|
|
1525
1790
|
var strCopy = str;
|
|
@@ -1547,7 +1812,7 @@
|
|
|
1547
1812
|
}
|
|
1548
1813
|
if (UPDATES_LAST_INDEX_WRONG) lastIndex = re.lastIndex;
|
|
1549
1814
|
|
|
1550
|
-
match =
|
|
1815
|
+
match = call$6(nativeExec, sticky ? reCopy : re, strCopy);
|
|
1551
1816
|
|
|
1552
1817
|
if (sticky) {
|
|
1553
1818
|
if (match) {
|
|
@@ -1562,7 +1827,7 @@
|
|
|
1562
1827
|
if (NPCG_INCLUDED && match && match.length > 1) {
|
|
1563
1828
|
// Fix browsers whose `exec` methods don't consistently return `undefined`
|
|
1564
1829
|
// for NPCG, like IE8. NOTE: This doesn' work for /(.?)?/
|
|
1565
|
-
|
|
1830
|
+
call$6(nativeReplace, match[0], reCopy, function () {
|
|
1566
1831
|
for (i = 1; i < arguments.length - 2; i++) {
|
|
1567
1832
|
if (arguments[i] === undefined) match[i] = undefined;
|
|
1568
1833
|
}
|
|
@@ -1570,7 +1835,7 @@
|
|
|
1570
1835
|
}
|
|
1571
1836
|
|
|
1572
1837
|
if (match && groups) {
|
|
1573
|
-
match.groups = object =
|
|
1838
|
+
match.groups = object = create(null);
|
|
1574
1839
|
for (i = 0; i < groups.length; i++) {
|
|
1575
1840
|
group = groups[i];
|
|
1576
1841
|
object[group[0]] = match[group[1]];
|
|
@@ -1581,46 +1846,51 @@
|
|
|
1581
1846
|
};
|
|
1582
1847
|
}
|
|
1583
1848
|
|
|
1584
|
-
var regexpExec = patchedExec;
|
|
1849
|
+
var regexpExec$3 = patchedExec;
|
|
1850
|
+
|
|
1851
|
+
var $$4 = _export;
|
|
1852
|
+
var exec$1 = regexpExec$3;
|
|
1585
1853
|
|
|
1586
1854
|
// `RegExp.prototype.exec` method
|
|
1587
1855
|
// https://tc39.es/ecma262/#sec-regexp.prototype.exec
|
|
1588
|
-
|
|
1589
|
-
exec:
|
|
1856
|
+
$$4({ target: 'RegExp', proto: true, forced: /./.exec !== exec$1 }, {
|
|
1857
|
+
exec: exec$1
|
|
1590
1858
|
});
|
|
1591
1859
|
|
|
1860
|
+
var NATIVE_BIND$1 = functionBindNative;
|
|
1861
|
+
|
|
1592
1862
|
var FunctionPrototype = Function.prototype;
|
|
1593
|
-
var apply = FunctionPrototype.apply;
|
|
1594
|
-
var call = FunctionPrototype.call;
|
|
1863
|
+
var apply$2 = FunctionPrototype.apply;
|
|
1864
|
+
var call$5 = FunctionPrototype.call;
|
|
1595
1865
|
|
|
1596
1866
|
// eslint-disable-next-line es-x/no-reflect -- safe
|
|
1597
|
-
var functionApply = typeof Reflect == 'object' && Reflect.apply || (
|
|
1598
|
-
return call.apply(apply, arguments);
|
|
1867
|
+
var functionApply = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND$1 ? call$5.bind(apply$2) : function () {
|
|
1868
|
+
return call$5.apply(apply$2, arguments);
|
|
1599
1869
|
});
|
|
1600
1870
|
|
|
1601
1871
|
// TODO: Remove from `core-js@4` since it's moved to entry points
|
|
1602
1872
|
|
|
1873
|
+
var uncurryThis$7 = functionUncurryThis;
|
|
1874
|
+
var defineBuiltIn$2 = defineBuiltIn$4;
|
|
1875
|
+
var regexpExec$2 = regexpExec$3;
|
|
1876
|
+
var fails$4 = fails$k;
|
|
1877
|
+
var wellKnownSymbol$2 = wellKnownSymbol$c;
|
|
1878
|
+
var createNonEnumerableProperty$1 = createNonEnumerableProperty$5;
|
|
1603
1879
|
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
var SPECIES$1 = wellKnownSymbol('species');
|
|
1880
|
+
var SPECIES$1 = wellKnownSymbol$2('species');
|
|
1611
1881
|
var RegExpPrototype$2 = RegExp.prototype;
|
|
1612
1882
|
|
|
1613
1883
|
var fixRegexpWellKnownSymbolLogic = function (KEY, exec, FORCED, SHAM) {
|
|
1614
|
-
var SYMBOL = wellKnownSymbol(KEY);
|
|
1884
|
+
var SYMBOL = wellKnownSymbol$2(KEY);
|
|
1615
1885
|
|
|
1616
|
-
var DELEGATES_TO_SYMBOL = !fails(function () {
|
|
1886
|
+
var DELEGATES_TO_SYMBOL = !fails$4(function () {
|
|
1617
1887
|
// String methods call symbol-named RegEp methods
|
|
1618
1888
|
var O = {};
|
|
1619
1889
|
O[SYMBOL] = function () { return 7; };
|
|
1620
1890
|
return ''[KEY](O) != 7;
|
|
1621
1891
|
});
|
|
1622
1892
|
|
|
1623
|
-
var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL && !fails(function () {
|
|
1893
|
+
var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL && !fails$4(function () {
|
|
1624
1894
|
// Symbol-named RegExp methods call .exec
|
|
1625
1895
|
var execCalled = false;
|
|
1626
1896
|
var re = /a/;
|
|
@@ -1649,11 +1919,11 @@
|
|
|
1649
1919
|
!DELEGATES_TO_EXEC ||
|
|
1650
1920
|
FORCED
|
|
1651
1921
|
) {
|
|
1652
|
-
var uncurriedNativeRegExpMethod =
|
|
1922
|
+
var uncurriedNativeRegExpMethod = uncurryThis$7(/./[SYMBOL]);
|
|
1653
1923
|
var methods = exec(SYMBOL, ''[KEY], function (nativeMethod, regexp, str, arg2, forceStringMethod) {
|
|
1654
|
-
var uncurriedNativeMethod =
|
|
1924
|
+
var uncurriedNativeMethod = uncurryThis$7(nativeMethod);
|
|
1655
1925
|
var $exec = regexp.exec;
|
|
1656
|
-
if ($exec === regexpExec || $exec === RegExpPrototype$2.exec) {
|
|
1926
|
+
if ($exec === regexpExec$2 || $exec === RegExpPrototype$2.exec) {
|
|
1657
1927
|
if (DELEGATES_TO_SYMBOL && !forceStringMethod) {
|
|
1658
1928
|
// The native String method already delegates to @@method (this
|
|
1659
1929
|
// polyfilled function), leasing to infinite recursion.
|
|
@@ -1665,21 +1935,26 @@
|
|
|
1665
1935
|
return { done: false };
|
|
1666
1936
|
});
|
|
1667
1937
|
|
|
1668
|
-
defineBuiltIn(String.prototype, KEY, methods[0]);
|
|
1669
|
-
defineBuiltIn(RegExpPrototype$2, SYMBOL, methods[1]);
|
|
1938
|
+
defineBuiltIn$2(String.prototype, KEY, methods[0]);
|
|
1939
|
+
defineBuiltIn$2(RegExpPrototype$2, SYMBOL, methods[1]);
|
|
1670
1940
|
}
|
|
1671
1941
|
|
|
1672
|
-
if (SHAM) createNonEnumerableProperty(RegExpPrototype$2[SYMBOL], 'sham', true);
|
|
1942
|
+
if (SHAM) createNonEnumerableProperty$1(RegExpPrototype$2[SYMBOL], 'sham', true);
|
|
1673
1943
|
};
|
|
1674
1944
|
|
|
1675
|
-
var
|
|
1676
|
-
var
|
|
1677
|
-
var
|
|
1945
|
+
var uncurryThis$6 = functionUncurryThis;
|
|
1946
|
+
var toIntegerOrInfinity$1 = toIntegerOrInfinity$4;
|
|
1947
|
+
var toString$4 = toString$7;
|
|
1948
|
+
var requireObjectCoercible$3 = requireObjectCoercible$7;
|
|
1949
|
+
|
|
1950
|
+
var charAt$2 = uncurryThis$6(''.charAt);
|
|
1951
|
+
var charCodeAt = uncurryThis$6(''.charCodeAt);
|
|
1952
|
+
var stringSlice$3 = uncurryThis$6(''.slice);
|
|
1678
1953
|
|
|
1679
1954
|
var createMethod$1 = function (CONVERT_TO_STRING) {
|
|
1680
1955
|
return function ($this, pos) {
|
|
1681
|
-
var S =
|
|
1682
|
-
var position = toIntegerOrInfinity(pos);
|
|
1956
|
+
var S = toString$4(requireObjectCoercible$3($this));
|
|
1957
|
+
var position = toIntegerOrInfinity$1(pos);
|
|
1683
1958
|
var size = S.length;
|
|
1684
1959
|
var first, second;
|
|
1685
1960
|
if (position < 0 || position >= size) return CONVERT_TO_STRING ? '' : undefined;
|
|
@@ -1708,25 +1983,28 @@
|
|
|
1708
1983
|
|
|
1709
1984
|
// `AdvanceStringIndex` abstract operation
|
|
1710
1985
|
// https://tc39.es/ecma262/#sec-advancestringindex
|
|
1711
|
-
var advanceStringIndex = function (S, index, unicode) {
|
|
1986
|
+
var advanceStringIndex$2 = function (S, index, unicode) {
|
|
1712
1987
|
return index + (unicode ? charAt$1(S, index).length : 1);
|
|
1713
1988
|
};
|
|
1714
1989
|
|
|
1990
|
+
var uncurryThis$5 = functionUncurryThis;
|
|
1991
|
+
var toObject$1 = toObject$4;
|
|
1992
|
+
|
|
1715
1993
|
var floor = Math.floor;
|
|
1716
|
-
var charAt =
|
|
1717
|
-
var replace =
|
|
1718
|
-
var stringSlice$2 =
|
|
1994
|
+
var charAt = uncurryThis$5(''.charAt);
|
|
1995
|
+
var replace = uncurryThis$5(''.replace);
|
|
1996
|
+
var stringSlice$2 = uncurryThis$5(''.slice);
|
|
1719
1997
|
var SUBSTITUTION_SYMBOLS = /\$([$&'`]|\d{1,2}|<[^>]*>)/g;
|
|
1720
1998
|
var SUBSTITUTION_SYMBOLS_NO_NAMED = /\$([$&'`]|\d{1,2})/g;
|
|
1721
1999
|
|
|
1722
2000
|
// `GetSubstitution` abstract operation
|
|
1723
2001
|
// https://tc39.es/ecma262/#sec-getsubstitution
|
|
1724
|
-
var getSubstitution = function (matched, str, position, captures, namedCaptures, replacement) {
|
|
2002
|
+
var getSubstitution$1 = function (matched, str, position, captures, namedCaptures, replacement) {
|
|
1725
2003
|
var tailPos = position + matched.length;
|
|
1726
2004
|
var m = captures.length;
|
|
1727
2005
|
var symbols = SUBSTITUTION_SYMBOLS_NO_NAMED;
|
|
1728
2006
|
if (namedCaptures !== undefined) {
|
|
1729
|
-
namedCaptures = toObject(namedCaptures);
|
|
2007
|
+
namedCaptures = toObject$1(namedCaptures);
|
|
1730
2008
|
symbols = SUBSTITUTION_SYMBOLS;
|
|
1731
2009
|
}
|
|
1732
2010
|
return replace(replacement, symbols, function (match, ch) {
|
|
@@ -1754,28 +2032,52 @@
|
|
|
1754
2032
|
});
|
|
1755
2033
|
};
|
|
1756
2034
|
|
|
1757
|
-
var
|
|
2035
|
+
var global$4 = global$x;
|
|
2036
|
+
var call$4 = functionCall;
|
|
2037
|
+
var anObject$5 = anObject$b;
|
|
2038
|
+
var isCallable$1 = isCallable$e;
|
|
2039
|
+
var classof$1 = classofRaw$1;
|
|
2040
|
+
var regexpExec$1 = regexpExec$3;
|
|
2041
|
+
|
|
2042
|
+
var TypeError$2 = global$4.TypeError;
|
|
1758
2043
|
|
|
1759
2044
|
// `RegExpExec` abstract operation
|
|
1760
2045
|
// https://tc39.es/ecma262/#sec-regexpexec
|
|
1761
2046
|
var regexpExecAbstract = function (R, S) {
|
|
1762
2047
|
var exec = R.exec;
|
|
1763
|
-
if (isCallable(exec)) {
|
|
1764
|
-
var result =
|
|
1765
|
-
if (result !== null) anObject(result);
|
|
2048
|
+
if (isCallable$1(exec)) {
|
|
2049
|
+
var result = call$4(exec, R, S);
|
|
2050
|
+
if (result !== null) anObject$5(result);
|
|
1766
2051
|
return result;
|
|
1767
2052
|
}
|
|
1768
|
-
if (
|
|
2053
|
+
if (classof$1(R) === 'RegExp') return call$4(regexpExec$1, R, S);
|
|
1769
2054
|
throw TypeError$2('RegExp#exec called on incompatible receiver');
|
|
1770
2055
|
};
|
|
1771
2056
|
|
|
1772
|
-
var
|
|
2057
|
+
var apply$1 = functionApply;
|
|
2058
|
+
var call$3 = functionCall;
|
|
2059
|
+
var uncurryThis$4 = functionUncurryThis;
|
|
2060
|
+
var fixRegExpWellKnownSymbolLogic$2 = fixRegexpWellKnownSymbolLogic;
|
|
2061
|
+
var fails$3 = fails$k;
|
|
2062
|
+
var anObject$4 = anObject$b;
|
|
2063
|
+
var isCallable = isCallable$e;
|
|
2064
|
+
var toIntegerOrInfinity = toIntegerOrInfinity$4;
|
|
2065
|
+
var toLength$1 = toLength$3;
|
|
2066
|
+
var toString$3 = toString$7;
|
|
2067
|
+
var requireObjectCoercible$2 = requireObjectCoercible$7;
|
|
2068
|
+
var advanceStringIndex$1 = advanceStringIndex$2;
|
|
2069
|
+
var getMethod$2 = getMethod$4;
|
|
2070
|
+
var getSubstitution = getSubstitution$1;
|
|
2071
|
+
var regExpExec$1 = regexpExecAbstract;
|
|
2072
|
+
var wellKnownSymbol$1 = wellKnownSymbol$c;
|
|
2073
|
+
|
|
2074
|
+
var REPLACE = wellKnownSymbol$1('replace');
|
|
1773
2075
|
var max$1 = Math.max;
|
|
1774
2076
|
var min$1 = Math.min;
|
|
1775
|
-
var concat =
|
|
1776
|
-
var push$2 =
|
|
1777
|
-
var stringIndexOf =
|
|
1778
|
-
var stringSlice$1 =
|
|
2077
|
+
var concat = uncurryThis$4([].concat);
|
|
2078
|
+
var push$2 = uncurryThis$4([].push);
|
|
2079
|
+
var stringIndexOf = uncurryThis$4(''.indexOf);
|
|
2080
|
+
var stringSlice$1 = uncurryThis$4(''.slice);
|
|
1779
2081
|
|
|
1780
2082
|
var maybeToString = function (it) {
|
|
1781
2083
|
return it === undefined ? it : String(it);
|
|
@@ -1796,7 +2098,7 @@
|
|
|
1796
2098
|
return false;
|
|
1797
2099
|
})();
|
|
1798
2100
|
|
|
1799
|
-
var REPLACE_SUPPORTS_NAMED_GROUPS = !fails(function () {
|
|
2101
|
+
var REPLACE_SUPPORTS_NAMED_GROUPS = !fails$3(function () {
|
|
1800
2102
|
var re = /./;
|
|
1801
2103
|
re.exec = function () {
|
|
1802
2104
|
var result = [];
|
|
@@ -1808,24 +2110,24 @@
|
|
|
1808
2110
|
});
|
|
1809
2111
|
|
|
1810
2112
|
// @@replace logic
|
|
1811
|
-
|
|
2113
|
+
fixRegExpWellKnownSymbolLogic$2('replace', function (_, nativeReplace, maybeCallNative) {
|
|
1812
2114
|
var UNSAFE_SUBSTITUTE = REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE ? '$' : '$0';
|
|
1813
2115
|
|
|
1814
2116
|
return [
|
|
1815
2117
|
// `String.prototype.replace` method
|
|
1816
2118
|
// https://tc39.es/ecma262/#sec-string.prototype.replace
|
|
1817
2119
|
function replace(searchValue, replaceValue) {
|
|
1818
|
-
var O = requireObjectCoercible(this);
|
|
1819
|
-
var replacer = searchValue == undefined ? undefined : getMethod(searchValue, REPLACE);
|
|
2120
|
+
var O = requireObjectCoercible$2(this);
|
|
2121
|
+
var replacer = searchValue == undefined ? undefined : getMethod$2(searchValue, REPLACE);
|
|
1820
2122
|
return replacer
|
|
1821
|
-
?
|
|
1822
|
-
:
|
|
2123
|
+
? call$3(replacer, searchValue, O, replaceValue)
|
|
2124
|
+
: call$3(nativeReplace, toString$3(O), searchValue, replaceValue);
|
|
1823
2125
|
},
|
|
1824
2126
|
// `RegExp.prototype[@@replace]` method
|
|
1825
2127
|
// https://tc39.es/ecma262/#sec-regexp.prototype-@@replace
|
|
1826
2128
|
function (string, replaceValue) {
|
|
1827
|
-
var rx = anObject(this);
|
|
1828
|
-
var S =
|
|
2129
|
+
var rx = anObject$4(this);
|
|
2130
|
+
var S = toString$3(string);
|
|
1829
2131
|
|
|
1830
2132
|
if (
|
|
1831
2133
|
typeof replaceValue == 'string' &&
|
|
@@ -1837,7 +2139,7 @@
|
|
|
1837
2139
|
}
|
|
1838
2140
|
|
|
1839
2141
|
var functionalReplace = isCallable(replaceValue);
|
|
1840
|
-
if (!functionalReplace) replaceValue =
|
|
2142
|
+
if (!functionalReplace) replaceValue = toString$3(replaceValue);
|
|
1841
2143
|
|
|
1842
2144
|
var global = rx.global;
|
|
1843
2145
|
if (global) {
|
|
@@ -1846,14 +2148,14 @@
|
|
|
1846
2148
|
}
|
|
1847
2149
|
var results = [];
|
|
1848
2150
|
while (true) {
|
|
1849
|
-
var result =
|
|
2151
|
+
var result = regExpExec$1(rx, S);
|
|
1850
2152
|
if (result === null) break;
|
|
1851
2153
|
|
|
1852
2154
|
push$2(results, result);
|
|
1853
2155
|
if (!global) break;
|
|
1854
2156
|
|
|
1855
|
-
var matchStr =
|
|
1856
|
-
if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode);
|
|
2157
|
+
var matchStr = toString$3(result[0]);
|
|
2158
|
+
if (matchStr === '') rx.lastIndex = advanceStringIndex$1(S, toLength$1(rx.lastIndex), fullUnicode);
|
|
1857
2159
|
}
|
|
1858
2160
|
|
|
1859
2161
|
var accumulatedResult = '';
|
|
@@ -1861,7 +2163,7 @@
|
|
|
1861
2163
|
for (var i = 0; i < results.length; i++) {
|
|
1862
2164
|
result = results[i];
|
|
1863
2165
|
|
|
1864
|
-
var matched =
|
|
2166
|
+
var matched = toString$3(result[0]);
|
|
1865
2167
|
var position = max$1(min$1(toIntegerOrInfinity(result.index), S.length), 0);
|
|
1866
2168
|
var captures = [];
|
|
1867
2169
|
// NOTE: This is equivalent to
|
|
@@ -1874,7 +2176,7 @@
|
|
|
1874
2176
|
if (functionalReplace) {
|
|
1875
2177
|
var replacerArgs = concat([matched], captures, position, S);
|
|
1876
2178
|
if (namedCaptures !== undefined) push$2(replacerArgs, namedCaptures);
|
|
1877
|
-
var replacement =
|
|
2179
|
+
var replacement = toString$3(apply$1(replaceValue, undefined, replacerArgs));
|
|
1878
2180
|
} else {
|
|
1879
2181
|
replacement = getSubstitution(matched, S, position, captures, namedCaptures, replaceValue);
|
|
1880
2182
|
}
|
|
@@ -1888,16 +2190,23 @@
|
|
|
1888
2190
|
];
|
|
1889
2191
|
}, !REPLACE_SUPPORTS_NAMED_GROUPS || !REPLACE_KEEPS_$0 || REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE);
|
|
1890
2192
|
|
|
2193
|
+
var TO_STRING_TAG_SUPPORT$1 = toStringTagSupport;
|
|
2194
|
+
var classof = classof$5;
|
|
2195
|
+
|
|
1891
2196
|
// `Object.prototype.toString` method implementation
|
|
1892
2197
|
// https://tc39.es/ecma262/#sec-object.prototype.tostring
|
|
1893
|
-
var objectToString =
|
|
2198
|
+
var objectToString = TO_STRING_TAG_SUPPORT$1 ? {}.toString : function toString() {
|
|
1894
2199
|
return '[object ' + classof(this) + ']';
|
|
1895
2200
|
};
|
|
1896
2201
|
|
|
2202
|
+
var TO_STRING_TAG_SUPPORT = toStringTagSupport;
|
|
2203
|
+
var defineBuiltIn$1 = defineBuiltIn$4;
|
|
2204
|
+
var toString$2 = objectToString;
|
|
2205
|
+
|
|
1897
2206
|
// `Object.prototype.toString` method
|
|
1898
2207
|
// https://tc39.es/ecma262/#sec-object.prototype.tostring
|
|
1899
|
-
if (!
|
|
1900
|
-
defineBuiltIn(Object.prototype, 'toString',
|
|
2208
|
+
if (!TO_STRING_TAG_SUPPORT) {
|
|
2209
|
+
defineBuiltIn$1(Object.prototype, 'toString', toString$2, { unsafe: true });
|
|
1901
2210
|
}
|
|
1902
2211
|
|
|
1903
2212
|
// iterable DOM collections
|
|
@@ -1937,24 +2246,35 @@
|
|
|
1937
2246
|
};
|
|
1938
2247
|
|
|
1939
2248
|
// in old WebKit versions, `element.classList` is not an instance of global `DOMTokenList`
|
|
1940
|
-
|
|
2249
|
+
var documentCreateElement = documentCreateElement$2;
|
|
1941
2250
|
|
|
1942
2251
|
var classList = documentCreateElement('span').classList;
|
|
1943
|
-
var DOMTokenListPrototype = classList && classList.constructor && classList.constructor.prototype;
|
|
2252
|
+
var DOMTokenListPrototype$1 = classList && classList.constructor && classList.constructor.prototype;
|
|
2253
|
+
|
|
2254
|
+
var domTokenListPrototype = DOMTokenListPrototype$1 === Object.prototype ? undefined : DOMTokenListPrototype$1;
|
|
1944
2255
|
|
|
1945
|
-
var
|
|
2256
|
+
var uncurryThis$3 = functionUncurryThis;
|
|
2257
|
+
var aCallable = aCallable$2;
|
|
2258
|
+
var NATIVE_BIND = functionBindNative;
|
|
1946
2259
|
|
|
1947
|
-
var bind =
|
|
2260
|
+
var bind$1 = uncurryThis$3(uncurryThis$3.bind);
|
|
1948
2261
|
|
|
1949
2262
|
// optional / simple context binding
|
|
1950
2263
|
var functionBindContext = function (fn, that) {
|
|
1951
2264
|
aCallable(fn);
|
|
1952
|
-
return that === undefined ? fn :
|
|
2265
|
+
return that === undefined ? fn : NATIVE_BIND ? bind$1(fn, that) : function (/* ...args */) {
|
|
1953
2266
|
return fn.apply(that, arguments);
|
|
1954
2267
|
};
|
|
1955
2268
|
};
|
|
1956
2269
|
|
|
1957
|
-
var
|
|
2270
|
+
var bind = functionBindContext;
|
|
2271
|
+
var uncurryThis$2 = functionUncurryThis;
|
|
2272
|
+
var IndexedObject$1 = indexedObject;
|
|
2273
|
+
var toObject = toObject$4;
|
|
2274
|
+
var lengthOfArrayLike$1 = lengthOfArrayLike$4;
|
|
2275
|
+
var arraySpeciesCreate = arraySpeciesCreate$2;
|
|
2276
|
+
|
|
2277
|
+
var push$1 = uncurryThis$2([].push);
|
|
1958
2278
|
|
|
1959
2279
|
// `Array.prototype.{ forEach, map, filter, some, every, find, findIndex, filterReject }` methods implementation
|
|
1960
2280
|
var createMethod = function (TYPE) {
|
|
@@ -1967,9 +2287,9 @@
|
|
|
1967
2287
|
var NO_HOLES = TYPE == 5 || IS_FIND_INDEX;
|
|
1968
2288
|
return function ($this, callbackfn, that, specificCreate) {
|
|
1969
2289
|
var O = toObject($this);
|
|
1970
|
-
var self =
|
|
1971
|
-
var boundFunction =
|
|
1972
|
-
var length = lengthOfArrayLike(self);
|
|
2290
|
+
var self = IndexedObject$1(O);
|
|
2291
|
+
var boundFunction = bind(callbackfn, that);
|
|
2292
|
+
var length = lengthOfArrayLike$1(self);
|
|
1973
2293
|
var index = 0;
|
|
1974
2294
|
var create = specificCreate || arraySpeciesCreate;
|
|
1975
2295
|
var target = IS_MAP ? create($this, length) : IS_FILTER || IS_FILTER_REJECT ? create($this, 0) : undefined;
|
|
@@ -2021,18 +2341,20 @@
|
|
|
2021
2341
|
filterReject: createMethod(7)
|
|
2022
2342
|
};
|
|
2023
2343
|
|
|
2024
|
-
var
|
|
2344
|
+
var fails$2 = fails$k;
|
|
2345
|
+
|
|
2346
|
+
var arrayMethodIsStrict$2 = function (METHOD_NAME, argument) {
|
|
2025
2347
|
var method = [][METHOD_NAME];
|
|
2026
|
-
return !!method && fails(function () {
|
|
2348
|
+
return !!method && fails$2(function () {
|
|
2027
2349
|
// eslint-disable-next-line no-useless-call -- required for testing
|
|
2028
2350
|
method.call(null, argument || function () { return 1; }, 1);
|
|
2029
2351
|
});
|
|
2030
2352
|
};
|
|
2031
2353
|
|
|
2032
2354
|
var $forEach = arrayIteration.forEach;
|
|
2355
|
+
var arrayMethodIsStrict$1 = arrayMethodIsStrict$2;
|
|
2033
2356
|
|
|
2034
|
-
|
|
2035
|
-
var STRICT_METHOD$1 = arrayMethodIsStrict('forEach');
|
|
2357
|
+
var STRICT_METHOD$1 = arrayMethodIsStrict$1('forEach');
|
|
2036
2358
|
|
|
2037
2359
|
// `Array.prototype.forEach` method implementation
|
|
2038
2360
|
// https://tc39.es/ecma262/#sec-array.prototype.foreach
|
|
@@ -2041,43 +2363,54 @@
|
|
|
2041
2363
|
// eslint-disable-next-line es-x/no-array-prototype-foreach -- safe
|
|
2042
2364
|
} : [].forEach;
|
|
2043
2365
|
|
|
2366
|
+
var global$3 = global$x;
|
|
2367
|
+
var DOMIterables = domIterables;
|
|
2368
|
+
var DOMTokenListPrototype = domTokenListPrototype;
|
|
2369
|
+
var forEach = arrayForEach;
|
|
2370
|
+
var createNonEnumerableProperty = createNonEnumerableProperty$5;
|
|
2371
|
+
|
|
2044
2372
|
var handlePrototype = function (CollectionPrototype) {
|
|
2045
2373
|
// some Chrome versions have non-configurable methods on DOMTokenList
|
|
2046
|
-
if (CollectionPrototype && CollectionPrototype.forEach !==
|
|
2047
|
-
createNonEnumerableProperty(CollectionPrototype, 'forEach',
|
|
2374
|
+
if (CollectionPrototype && CollectionPrototype.forEach !== forEach) try {
|
|
2375
|
+
createNonEnumerableProperty(CollectionPrototype, 'forEach', forEach);
|
|
2048
2376
|
} catch (error) {
|
|
2049
|
-
CollectionPrototype.forEach =
|
|
2377
|
+
CollectionPrototype.forEach = forEach;
|
|
2050
2378
|
}
|
|
2051
2379
|
};
|
|
2052
2380
|
|
|
2053
|
-
for (var COLLECTION_NAME in
|
|
2054
|
-
if (
|
|
2055
|
-
handlePrototype(
|
|
2381
|
+
for (var COLLECTION_NAME in DOMIterables) {
|
|
2382
|
+
if (DOMIterables[COLLECTION_NAME]) {
|
|
2383
|
+
handlePrototype(global$3[COLLECTION_NAME] && global$3[COLLECTION_NAME].prototype);
|
|
2056
2384
|
}
|
|
2057
2385
|
}
|
|
2058
2386
|
|
|
2059
|
-
handlePrototype(
|
|
2387
|
+
handlePrototype(DOMTokenListPrototype);
|
|
2388
|
+
|
|
2389
|
+
var call$2 = functionCall;
|
|
2390
|
+
var hasOwn = hasOwnProperty_1;
|
|
2391
|
+
var isPrototypeOf = objectIsPrototypeOf;
|
|
2392
|
+
var regExpFlags = regexpFlags$1;
|
|
2060
2393
|
|
|
2061
2394
|
var RegExpPrototype$1 = RegExp.prototype;
|
|
2062
2395
|
|
|
2063
2396
|
var regexpGetFlags = function (R) {
|
|
2064
2397
|
var flags = R.flags;
|
|
2065
|
-
return flags === undefined && !('flags' in RegExpPrototype$1) && !
|
|
2066
|
-
?
|
|
2398
|
+
return flags === undefined && !('flags' in RegExpPrototype$1) && !hasOwn(R, 'flags') && isPrototypeOf(RegExpPrototype$1, R)
|
|
2399
|
+
? call$2(regExpFlags, R) : flags;
|
|
2067
2400
|
};
|
|
2068
2401
|
|
|
2069
2402
|
var PROPER_FUNCTION_NAME = functionName.PROPER;
|
|
2070
|
-
|
|
2071
|
-
|
|
2072
|
-
|
|
2073
|
-
|
|
2074
|
-
|
|
2403
|
+
var defineBuiltIn = defineBuiltIn$4;
|
|
2404
|
+
var anObject$3 = anObject$b;
|
|
2405
|
+
var $toString = toString$7;
|
|
2406
|
+
var fails$1 = fails$k;
|
|
2407
|
+
var getRegExpFlags = regexpGetFlags;
|
|
2075
2408
|
|
|
2076
2409
|
var TO_STRING = 'toString';
|
|
2077
2410
|
var RegExpPrototype = RegExp.prototype;
|
|
2078
2411
|
var n$ToString = RegExpPrototype[TO_STRING];
|
|
2079
2412
|
|
|
2080
|
-
var NOT_GENERIC = fails(function () { return n$ToString.call({ source: 'a', flags: 'b' }) != '/a/b'; });
|
|
2413
|
+
var NOT_GENERIC = fails$1(function () { return n$ToString.call({ source: 'a', flags: 'b' }) != '/a/b'; });
|
|
2081
2414
|
// FF44- RegExp#toString has a wrong name
|
|
2082
2415
|
var INCORRECT_NAME = PROPER_FUNCTION_NAME && n$ToString.name != TO_STRING;
|
|
2083
2416
|
|
|
@@ -2085,15 +2418,16 @@
|
|
|
2085
2418
|
// https://tc39.es/ecma262/#sec-regexp.prototype.tostring
|
|
2086
2419
|
if (NOT_GENERIC || INCORRECT_NAME) {
|
|
2087
2420
|
defineBuiltIn(RegExp.prototype, TO_STRING, function toString() {
|
|
2088
|
-
var R = anObject(this);
|
|
2089
|
-
var pattern =
|
|
2090
|
-
var flags =
|
|
2421
|
+
var R = anObject$3(this);
|
|
2422
|
+
var pattern = $toString(R.source);
|
|
2423
|
+
var flags = $toString(getRegExpFlags(R));
|
|
2091
2424
|
return '/' + pattern + '/' + flags;
|
|
2092
2425
|
}, { unsafe: true });
|
|
2093
2426
|
}
|
|
2094
2427
|
|
|
2428
|
+
var $$3 = _export;
|
|
2095
2429
|
var $find = arrayIteration.find;
|
|
2096
|
-
|
|
2430
|
+
var addToUnscopables = addToUnscopables$2;
|
|
2097
2431
|
|
|
2098
2432
|
var FIND = 'find';
|
|
2099
2433
|
var SKIPS_HOLES = true;
|
|
@@ -2103,7 +2437,7 @@
|
|
|
2103
2437
|
|
|
2104
2438
|
// `Array.prototype.find` method
|
|
2105
2439
|
// https://tc39.es/ecma262/#sec-array.prototype.find
|
|
2106
|
-
|
|
2440
|
+
$$3({ target: 'Array', proto: true, forced: SKIPS_HOLES }, {
|
|
2107
2441
|
find: function find(callbackfn /* , that = undefined */) {
|
|
2108
2442
|
return $find(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
|
|
2109
2443
|
}
|
|
@@ -2112,39 +2446,53 @@
|
|
|
2112
2446
|
// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
|
|
2113
2447
|
addToUnscopables(FIND);
|
|
2114
2448
|
|
|
2449
|
+
var $$2 = _export;
|
|
2115
2450
|
var $filter = arrayIteration.filter;
|
|
2451
|
+
var arrayMethodHasSpeciesSupport$1 = arrayMethodHasSpeciesSupport$3;
|
|
2116
2452
|
|
|
2117
|
-
|
|
2118
|
-
var HAS_SPECIES_SUPPORT$1 = arrayMethodHasSpeciesSupport('filter');
|
|
2453
|
+
var HAS_SPECIES_SUPPORT$1 = arrayMethodHasSpeciesSupport$1('filter');
|
|
2119
2454
|
|
|
2120
2455
|
// `Array.prototype.filter` method
|
|
2121
2456
|
// https://tc39.es/ecma262/#sec-array.prototype.filter
|
|
2122
2457
|
// with adding support of @@species
|
|
2123
|
-
|
|
2458
|
+
$$2({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT$1 }, {
|
|
2124
2459
|
filter: function filter(callbackfn /* , thisArg */) {
|
|
2125
2460
|
return $filter(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
|
|
2126
2461
|
}
|
|
2127
2462
|
});
|
|
2128
2463
|
|
|
2129
|
-
var
|
|
2464
|
+
var global$2 = global$x;
|
|
2465
|
+
var isConstructor = isConstructor$2;
|
|
2466
|
+
var tryToString = tryToString$2;
|
|
2467
|
+
|
|
2468
|
+
var TypeError$1 = global$2.TypeError;
|
|
2130
2469
|
|
|
2131
2470
|
// `Assert: IsConstructor(argument) is true`
|
|
2132
|
-
var aConstructor = function (argument) {
|
|
2471
|
+
var aConstructor$1 = function (argument) {
|
|
2133
2472
|
if (isConstructor(argument)) return argument;
|
|
2134
2473
|
throw TypeError$1(tryToString(argument) + ' is not a constructor');
|
|
2135
2474
|
};
|
|
2136
2475
|
|
|
2476
|
+
var anObject$2 = anObject$b;
|
|
2477
|
+
var aConstructor = aConstructor$1;
|
|
2478
|
+
var wellKnownSymbol = wellKnownSymbol$c;
|
|
2479
|
+
|
|
2137
2480
|
var SPECIES = wellKnownSymbol('species');
|
|
2138
2481
|
|
|
2139
2482
|
// `SpeciesConstructor` abstract operation
|
|
2140
2483
|
// https://tc39.es/ecma262/#sec-speciesconstructor
|
|
2141
|
-
var speciesConstructor = function (O, defaultConstructor) {
|
|
2142
|
-
var C = anObject(O).constructor;
|
|
2484
|
+
var speciesConstructor$1 = function (O, defaultConstructor) {
|
|
2485
|
+
var C = anObject$2(O).constructor;
|
|
2143
2486
|
var S;
|
|
2144
|
-
return C === undefined || (S = anObject(C)[SPECIES]) == undefined ? defaultConstructor : aConstructor(S);
|
|
2487
|
+
return C === undefined || (S = anObject$2(C)[SPECIES]) == undefined ? defaultConstructor : aConstructor(S);
|
|
2145
2488
|
};
|
|
2146
2489
|
|
|
2147
|
-
var
|
|
2490
|
+
var global$1 = global$x;
|
|
2491
|
+
var toAbsoluteIndex = toAbsoluteIndex$2;
|
|
2492
|
+
var lengthOfArrayLike = lengthOfArrayLike$4;
|
|
2493
|
+
var createProperty = createProperty$2;
|
|
2494
|
+
|
|
2495
|
+
var Array$1 = global$1.Array;
|
|
2148
2496
|
var max = Math.max;
|
|
2149
2497
|
|
|
2150
2498
|
var arraySliceSimple = function (O, start, end) {
|
|
@@ -2157,13 +2505,31 @@
|
|
|
2157
2505
|
return result;
|
|
2158
2506
|
};
|
|
2159
2507
|
|
|
2160
|
-
var
|
|
2508
|
+
var apply = functionApply;
|
|
2509
|
+
var call$1 = functionCall;
|
|
2510
|
+
var uncurryThis$1 = functionUncurryThis;
|
|
2511
|
+
var fixRegExpWellKnownSymbolLogic$1 = fixRegexpWellKnownSymbolLogic;
|
|
2512
|
+
var isRegExp = isRegexp;
|
|
2513
|
+
var anObject$1 = anObject$b;
|
|
2514
|
+
var requireObjectCoercible$1 = requireObjectCoercible$7;
|
|
2515
|
+
var speciesConstructor = speciesConstructor$1;
|
|
2516
|
+
var advanceStringIndex = advanceStringIndex$2;
|
|
2517
|
+
var toLength = toLength$3;
|
|
2518
|
+
var toString$1 = toString$7;
|
|
2519
|
+
var getMethod$1 = getMethod$4;
|
|
2520
|
+
var arraySlice = arraySliceSimple;
|
|
2521
|
+
var callRegExpExec = regexpExecAbstract;
|
|
2522
|
+
var regexpExec = regexpExec$3;
|
|
2523
|
+
var stickyHelpers = regexpStickyHelpers;
|
|
2524
|
+
var fails = fails$k;
|
|
2525
|
+
|
|
2526
|
+
var UNSUPPORTED_Y = stickyHelpers.UNSUPPORTED_Y;
|
|
2161
2527
|
var MAX_UINT32 = 0xFFFFFFFF;
|
|
2162
2528
|
var min = Math.min;
|
|
2163
2529
|
var $push = [].push;
|
|
2164
|
-
var exec =
|
|
2165
|
-
var push =
|
|
2166
|
-
var stringSlice =
|
|
2530
|
+
var exec = uncurryThis$1(/./.exec);
|
|
2531
|
+
var push = uncurryThis$1($push);
|
|
2532
|
+
var stringSlice = uncurryThis$1(''.slice);
|
|
2167
2533
|
|
|
2168
2534
|
// Chrome 51 has a buggy "split" implementation when RegExp#exec !== nativeExec
|
|
2169
2535
|
// Weex JS has frozen built-in prototypes, so use try / catch wrapper
|
|
@@ -2177,7 +2543,7 @@
|
|
|
2177
2543
|
});
|
|
2178
2544
|
|
|
2179
2545
|
// @@split logic
|
|
2180
|
-
|
|
2546
|
+
fixRegExpWellKnownSymbolLogic$1('split', function (SPLIT, nativeSplit, maybeCallNative) {
|
|
2181
2547
|
var internalSplit;
|
|
2182
2548
|
if (
|
|
2183
2549
|
'abbc'.split(/(b)*/)[1] == 'c' ||
|
|
@@ -2191,13 +2557,13 @@
|
|
|
2191
2557
|
) {
|
|
2192
2558
|
// based on es5-shim implementation, need to rework it
|
|
2193
2559
|
internalSplit = function (separator, limit) {
|
|
2194
|
-
var string =
|
|
2560
|
+
var string = toString$1(requireObjectCoercible$1(this));
|
|
2195
2561
|
var lim = limit === undefined ? MAX_UINT32 : limit >>> 0;
|
|
2196
2562
|
if (lim === 0) return [];
|
|
2197
2563
|
if (separator === undefined) return [string];
|
|
2198
2564
|
// If `separator` is not a regex, use native split
|
|
2199
|
-
if (!
|
|
2200
|
-
return
|
|
2565
|
+
if (!isRegExp(separator)) {
|
|
2566
|
+
return call$1(nativeSplit, string, separator, lim);
|
|
2201
2567
|
}
|
|
2202
2568
|
var output = [];
|
|
2203
2569
|
var flags = (separator.ignoreCase ? 'i' : '') +
|
|
@@ -2208,11 +2574,11 @@
|
|
|
2208
2574
|
// Make `global` and avoid `lastIndex` issues by working with a copy
|
|
2209
2575
|
var separatorCopy = new RegExp(separator.source, flags + 'g');
|
|
2210
2576
|
var match, lastIndex, lastLength;
|
|
2211
|
-
while (match =
|
|
2577
|
+
while (match = call$1(regexpExec, separatorCopy, string)) {
|
|
2212
2578
|
lastIndex = separatorCopy.lastIndex;
|
|
2213
2579
|
if (lastIndex > lastLastIndex) {
|
|
2214
2580
|
push(output, stringSlice(string, lastLastIndex, match.index));
|
|
2215
|
-
if (match.length > 1 && match.index < string.length)
|
|
2581
|
+
if (match.length > 1 && match.index < string.length) apply($push, output, arraySlice(match, 1));
|
|
2216
2582
|
lastLength = match[0].length;
|
|
2217
2583
|
lastLastIndex = lastIndex;
|
|
2218
2584
|
if (output.length >= lim) break;
|
|
@@ -2222,12 +2588,12 @@
|
|
|
2222
2588
|
if (lastLastIndex === string.length) {
|
|
2223
2589
|
if (lastLength || !exec(separatorCopy, '')) push(output, '');
|
|
2224
2590
|
} else push(output, stringSlice(string, lastLastIndex));
|
|
2225
|
-
return output.length > lim ?
|
|
2591
|
+
return output.length > lim ? arraySlice(output, 0, lim) : output;
|
|
2226
2592
|
};
|
|
2227
2593
|
// Chakra, V8
|
|
2228
2594
|
} else if ('0'.split(undefined, 0).length) {
|
|
2229
2595
|
internalSplit = function (separator, limit) {
|
|
2230
|
-
return separator === undefined && limit === 0 ? [] :
|
|
2596
|
+
return separator === undefined && limit === 0 ? [] : call$1(nativeSplit, this, separator, limit);
|
|
2231
2597
|
};
|
|
2232
2598
|
} else internalSplit = nativeSplit;
|
|
2233
2599
|
|
|
@@ -2235,11 +2601,11 @@
|
|
|
2235
2601
|
// `String.prototype.split` method
|
|
2236
2602
|
// https://tc39.es/ecma262/#sec-string.prototype.split
|
|
2237
2603
|
function split(separator, limit) {
|
|
2238
|
-
var O = requireObjectCoercible(this);
|
|
2239
|
-
var splitter = separator == undefined ? undefined : getMethod(separator, SPLIT);
|
|
2604
|
+
var O = requireObjectCoercible$1(this);
|
|
2605
|
+
var splitter = separator == undefined ? undefined : getMethod$1(separator, SPLIT);
|
|
2240
2606
|
return splitter
|
|
2241
|
-
?
|
|
2242
|
-
:
|
|
2607
|
+
? call$1(splitter, separator, O, limit)
|
|
2608
|
+
: call$1(internalSplit, toString$1(O), separator, limit);
|
|
2243
2609
|
},
|
|
2244
2610
|
// `RegExp.prototype[@@split]` method
|
|
2245
2611
|
// https://tc39.es/ecma262/#sec-regexp.prototype-@@split
|
|
@@ -2247,8 +2613,8 @@
|
|
|
2247
2613
|
// NOTE: This cannot be properly polyfilled in engines that don't support
|
|
2248
2614
|
// the 'y' flag.
|
|
2249
2615
|
function (string, limit) {
|
|
2250
|
-
var rx = anObject(this);
|
|
2251
|
-
var S =
|
|
2616
|
+
var rx = anObject$1(this);
|
|
2617
|
+
var S = toString$1(string);
|
|
2252
2618
|
var res = maybeCallNative(internalSplit, rx, S, limit, internalSplit !== nativeSplit);
|
|
2253
2619
|
|
|
2254
2620
|
if (res.done) return res.value;
|
|
@@ -2266,13 +2632,13 @@
|
|
|
2266
2632
|
var splitter = new C(UNSUPPORTED_Y ? '^(?:' + rx.source + ')' : rx, flags);
|
|
2267
2633
|
var lim = limit === undefined ? MAX_UINT32 : limit >>> 0;
|
|
2268
2634
|
if (lim === 0) return [];
|
|
2269
|
-
if (S.length === 0) return
|
|
2635
|
+
if (S.length === 0) return callRegExpExec(splitter, S) === null ? [S] : [];
|
|
2270
2636
|
var p = 0;
|
|
2271
2637
|
var q = 0;
|
|
2272
2638
|
var A = [];
|
|
2273
2639
|
while (q < S.length) {
|
|
2274
2640
|
splitter.lastIndex = UNSUPPORTED_Y ? 0 : q;
|
|
2275
|
-
var z =
|
|
2641
|
+
var z = callRegExpExec(splitter, UNSUPPORTED_Y ? stringSlice(S, q) : S);
|
|
2276
2642
|
var e;
|
|
2277
2643
|
if (
|
|
2278
2644
|
z === null ||
|
|
@@ -2295,15 +2661,16 @@
|
|
|
2295
2661
|
];
|
|
2296
2662
|
}, !SPLIT_WORKS_WITH_OVERWRITTEN_EXEC, UNSUPPORTED_Y);
|
|
2297
2663
|
|
|
2664
|
+
var $$1 = _export;
|
|
2298
2665
|
var $map = arrayIteration.map;
|
|
2299
|
-
|
|
2666
|
+
var arrayMethodHasSpeciesSupport = arrayMethodHasSpeciesSupport$3;
|
|
2300
2667
|
|
|
2301
2668
|
var HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('map');
|
|
2302
2669
|
|
|
2303
2670
|
// `Array.prototype.map` method
|
|
2304
2671
|
// https://tc39.es/ecma262/#sec-array.prototype.map
|
|
2305
2672
|
// with adding support of @@species
|
|
2306
|
-
|
|
2673
|
+
$$1({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT }, {
|
|
2307
2674
|
map: function map(callbackfn /* , thisArg */) {
|
|
2308
2675
|
return $map(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
|
|
2309
2676
|
}
|
|
@@ -2312,47 +2679,62 @@
|
|
|
2312
2679
|
// `SameValue` abstract operation
|
|
2313
2680
|
// https://tc39.es/ecma262/#sec-samevalue
|
|
2314
2681
|
// eslint-disable-next-line es-x/no-object-is -- safe
|
|
2315
|
-
var sameValue = Object.is || function is(x, y) {
|
|
2682
|
+
var sameValue$1 = Object.is || function is(x, y) {
|
|
2316
2683
|
// eslint-disable-next-line no-self-compare -- NaN check
|
|
2317
2684
|
return x === y ? x !== 0 || 1 / x === 1 / y : x != x && y != y;
|
|
2318
2685
|
};
|
|
2319
2686
|
|
|
2687
|
+
var call = functionCall;
|
|
2688
|
+
var fixRegExpWellKnownSymbolLogic = fixRegexpWellKnownSymbolLogic;
|
|
2689
|
+
var anObject = anObject$b;
|
|
2690
|
+
var requireObjectCoercible = requireObjectCoercible$7;
|
|
2691
|
+
var sameValue = sameValue$1;
|
|
2692
|
+
var toString = toString$7;
|
|
2693
|
+
var getMethod = getMethod$4;
|
|
2694
|
+
var regExpExec = regexpExecAbstract;
|
|
2695
|
+
|
|
2320
2696
|
// @@search logic
|
|
2321
|
-
|
|
2697
|
+
fixRegExpWellKnownSymbolLogic('search', function (SEARCH, nativeSearch, maybeCallNative) {
|
|
2322
2698
|
return [
|
|
2323
2699
|
// `String.prototype.search` method
|
|
2324
2700
|
// https://tc39.es/ecma262/#sec-string.prototype.search
|
|
2325
2701
|
function search(regexp) {
|
|
2326
2702
|
var O = requireObjectCoercible(this);
|
|
2327
2703
|
var searcher = regexp == undefined ? undefined : getMethod(regexp, SEARCH);
|
|
2328
|
-
return searcher ?
|
|
2704
|
+
return searcher ? call(searcher, regexp, O) : new RegExp(regexp)[SEARCH](toString(O));
|
|
2329
2705
|
},
|
|
2330
2706
|
// `RegExp.prototype[@@search]` method
|
|
2331
2707
|
// https://tc39.es/ecma262/#sec-regexp.prototype-@@search
|
|
2332
2708
|
function (string) {
|
|
2333
2709
|
var rx = anObject(this);
|
|
2334
|
-
var S =
|
|
2710
|
+
var S = toString(string);
|
|
2335
2711
|
var res = maybeCallNative(nativeSearch, rx, S);
|
|
2336
2712
|
|
|
2337
2713
|
if (res.done) return res.value;
|
|
2338
2714
|
|
|
2339
2715
|
var previousLastIndex = rx.lastIndex;
|
|
2340
2716
|
if (!sameValue(previousLastIndex, 0)) rx.lastIndex = 0;
|
|
2341
|
-
var result =
|
|
2717
|
+
var result = regExpExec(rx, S);
|
|
2342
2718
|
if (!sameValue(rx.lastIndex, previousLastIndex)) rx.lastIndex = previousLastIndex;
|
|
2343
2719
|
return result === null ? -1 : result.index;
|
|
2344
2720
|
}
|
|
2345
2721
|
];
|
|
2346
2722
|
});
|
|
2347
2723
|
|
|
2348
|
-
var
|
|
2724
|
+
var $ = _export;
|
|
2725
|
+
var uncurryThis = functionUncurryThis;
|
|
2726
|
+
var IndexedObject = indexedObject;
|
|
2727
|
+
var toIndexedObject = toIndexedObject$5;
|
|
2728
|
+
var arrayMethodIsStrict = arrayMethodIsStrict$2;
|
|
2729
|
+
|
|
2730
|
+
var un$Join = uncurryThis([].join);
|
|
2349
2731
|
|
|
2350
|
-
var ES3_STRINGS =
|
|
2732
|
+
var ES3_STRINGS = IndexedObject != Object;
|
|
2351
2733
|
var STRICT_METHOD = arrayMethodIsStrict('join', ',');
|
|
2352
2734
|
|
|
2353
2735
|
// `Array.prototype.join` method
|
|
2354
2736
|
// https://tc39.es/ecma262/#sec-array.prototype.join
|
|
2355
|
-
|
|
2737
|
+
$({ target: 'Array', proto: true, forced: ES3_STRINGS || !STRICT_METHOD }, {
|
|
2356
2738
|
join: function join(separator) {
|
|
2357
2739
|
return un$Join(toIndexedObject(this), separator === undefined ? ',' : separator);
|
|
2358
2740
|
}
|