bootstrap-table-rails 1.19.1 → 1.20.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (101) hide show
  1. checksums.yaml +4 -4
  2. data/lib/bootstrap-table-rails/version.rb +1 -1
  3. data/vendor/assets/javascripts/.DS_Store +0 -0
  4. data/vendor/assets/javascripts/bootstrap-table/.DS_Store +0 -0
  5. data/vendor/assets/javascripts/bootstrap-table/bootstrap-table-locale-all.js +906 -337
  6. data/vendor/assets/javascripts/bootstrap-table/bootstrap-table-vue.esm.js +816 -382
  7. data/vendor/assets/javascripts/bootstrap-table/bootstrap-table-vue.js +817 -383
  8. data/vendor/assets/javascripts/bootstrap-table/bootstrap-table.css +2 -1
  9. data/vendor/assets/javascripts/bootstrap-table/bootstrap-table.js +2787 -2003
  10. data/vendor/assets/javascripts/bootstrap-table/extensions/addrbar/bootstrap-table-addrbar.js +1003 -429
  11. data/vendor/assets/javascripts/bootstrap-table/extensions/auto-refresh/bootstrap-table-auto-refresh.js +536 -240
  12. data/vendor/assets/javascripts/bootstrap-table/extensions/cookie/bootstrap-table-cookie.js +1381 -923
  13. data/vendor/assets/javascripts/bootstrap-table/extensions/copy-rows/bootstrap-table-copy-rows.js +546 -250
  14. data/vendor/assets/javascripts/bootstrap-table/extensions/custom-view/bootstrap-table-custom-view.js +547 -249
  15. data/vendor/assets/javascripts/bootstrap-table/extensions/defer-url/bootstrap-table-defer-url.js +471 -186
  16. data/vendor/assets/javascripts/bootstrap-table/extensions/editable/bootstrap-table-editable.js +883 -525
  17. data/vendor/assets/javascripts/bootstrap-table/extensions/export/bootstrap-table-export.js +852 -449
  18. data/vendor/assets/javascripts/bootstrap-table/extensions/filter-control/bootstrap-table-filter-control.css +9 -1
  19. data/vendor/assets/javascripts/bootstrap-table/extensions/filter-control/bootstrap-table-filter-control.js +2649 -1097
  20. data/vendor/assets/javascripts/bootstrap-table/extensions/filter-control/utils.js +1276 -710
  21. data/vendor/assets/javascripts/bootstrap-table/extensions/fixed-columns/bootstrap-table-fixed-columns.js +566 -272
  22. data/vendor/assets/javascripts/bootstrap-table/extensions/group-by-v2/bootstrap-table-group-by.js +861 -414
  23. data/vendor/assets/javascripts/bootstrap-table/extensions/i18n-enhance/bootstrap-table-i18n-enhance.js +16 -8
  24. data/vendor/assets/javascripts/bootstrap-table/extensions/key-events/bootstrap-table-key-events.js +652 -351
  25. data/vendor/assets/javascripts/bootstrap-table/extensions/mobile/bootstrap-table-mobile.js +572 -249
  26. data/vendor/assets/javascripts/bootstrap-table/extensions/multiple-sort/bootstrap-table-multiple-sort.js +782 -370
  27. data/vendor/assets/javascripts/bootstrap-table/extensions/page-jump-to/bootstrap-table-page-jump-to.js +532 -237
  28. data/vendor/assets/javascripts/bootstrap-table/extensions/pipeline/bootstrap-table-pipeline.js +538 -246
  29. data/vendor/assets/javascripts/bootstrap-table/extensions/print/bootstrap-table-print.js +744 -294
  30. data/vendor/assets/javascripts/bootstrap-table/extensions/reorder-columns/bootstrap-table-reorder-columns.js +572 -258
  31. data/vendor/assets/javascripts/bootstrap-table/extensions/reorder-rows/bootstrap-table-reorder-rows.js +510 -200
  32. data/vendor/assets/javascripts/bootstrap-table/extensions/resizable/bootstrap-table-resizable.js +471 -186
  33. data/vendor/assets/javascripts/bootstrap-table/extensions/sticky-header/bootstrap-table-sticky-header.js +539 -244
  34. data/vendor/assets/javascripts/bootstrap-table/extensions/toolbar/bootstrap-table-toolbar.js +864 -531
  35. data/vendor/assets/javascripts/bootstrap-table/extensions/treegrid/bootstrap-table-treegrid.js +526 -235
  36. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-af-ZA.js +457 -180
  37. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ar-SA.js +457 -180
  38. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-bg-BG.js +465 -188
  39. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ca-ES.js +457 -180
  40. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-cs-CZ.js +477 -200
  41. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-da-DK.js +457 -180
  42. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-de-DE.js +457 -180
  43. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-el-GR.js +457 -180
  44. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-en-US.js +457 -180
  45. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-AR.js +457 -180
  46. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-CL.js +457 -180
  47. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-CR.js +457 -180
  48. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-ES.js +457 -180
  49. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-MX.js +457 -180
  50. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-NI.js +457 -180
  51. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-SP.js +457 -180
  52. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-et-EE.js +457 -180
  53. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-eu-EU.js +457 -180
  54. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fa-IR.js +457 -180
  55. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fi-FI.js +457 -180
  56. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fr-BE.js +457 -180
  57. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fr-CH.js +457 -180
  58. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fr-FR.js +457 -180
  59. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fr-LU.js +460 -182
  60. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-he-IL.js +457 -180
  61. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-hi-IN.js +1083 -0
  62. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-hr-HR.js +457 -180
  63. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-hu-HU.js +457 -180
  64. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-id-ID.js +457 -180
  65. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-it-IT.js +457 -180
  66. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ja-JP.js +457 -180
  67. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ka-GE.js +457 -180
  68. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ko-KR.js +482 -204
  69. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-lb-LU.js +1083 -0
  70. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ms-MY.js +457 -180
  71. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-nb-NO.js +457 -180
  72. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-nl-BE.js +496 -180
  73. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-nl-NL.js +496 -180
  74. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-pl-PL.js +457 -180
  75. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-pt-BR.js +457 -180
  76. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-pt-PT.js +457 -180
  77. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ro-RO.js +457 -180
  78. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ru-RU.js +457 -180
  79. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-sk-SK.js +457 -180
  80. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-sr-Cyrl-RS.js +457 -180
  81. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-sr-Latn-RS.js +457 -180
  82. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-sv-SE.js +457 -180
  83. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-th-TH.js +457 -180
  84. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-tr-TR.js +457 -180
  85. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-uk-UA.js +457 -180
  86. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ur-PK.js +457 -180
  87. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-uz-Latn-UZ.js +457 -180
  88. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-vi-VN.js +457 -180
  89. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-zh-CN.js +457 -180
  90. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-zh-TW.js +457 -180
  91. data/vendor/assets/javascripts/bootstrap-table/themes/bootstrap-table/bootstrap-table.css +1 -0
  92. data/vendor/assets/javascripts/bootstrap-table/themes/bootstrap-table/bootstrap-table.js +547 -255
  93. data/vendor/assets/javascripts/bootstrap-table/themes/bulma/bootstrap-table-bulma.css +1 -0
  94. data/vendor/assets/javascripts/bootstrap-table/themes/bulma/bootstrap-table-bulma.js +543 -235
  95. data/vendor/assets/javascripts/bootstrap-table/themes/foundation/bootstrap-table-foundation.css +1 -0
  96. data/vendor/assets/javascripts/bootstrap-table/themes/foundation/bootstrap-table-foundation.js +547 -239
  97. data/vendor/assets/javascripts/bootstrap-table/themes/materialize/bootstrap-table-materialize.css +1 -0
  98. data/vendor/assets/javascripts/bootstrap-table/themes/materialize/bootstrap-table-materialize.js +545 -252
  99. data/vendor/assets/javascripts/bootstrap-table/themes/semantic/bootstrap-table-semantic.css +1 -0
  100. data/vendor/assets/javascripts/bootstrap-table/themes/semantic/bootstrap-table-semantic.js +541 -233
  101. metadata +5 -3
@@ -1,27 +1,11 @@
1
- function _defineProperty(obj, key, value) {
2
- if (key in obj) {
3
- Object.defineProperty(obj, key, {
4
- value: value,
5
- enumerable: true,
6
- configurable: true,
7
- writable: true
8
- });
9
- } else {
10
- obj[key] = value;
11
- }
12
-
13
- return obj;
14
- }
15
-
16
1
  function ownKeys$1(object, enumerableOnly) {
17
2
  var keys = Object.keys(object);
18
3
 
19
4
  if (Object.getOwnPropertySymbols) {
20
5
  var symbols = Object.getOwnPropertySymbols(object);
21
- if (enumerableOnly) symbols = symbols.filter(function (sym) {
6
+ enumerableOnly && (symbols = symbols.filter(function (sym) {
22
7
  return Object.getOwnPropertyDescriptor(object, sym).enumerable;
23
- });
24
- keys.push.apply(keys, symbols);
8
+ })), keys.push.apply(keys, symbols);
25
9
  }
26
10
 
27
11
  return keys;
@@ -29,24 +13,32 @@ function ownKeys$1(object, enumerableOnly) {
29
13
 
30
14
  function _objectSpread2(target) {
31
15
  for (var i = 1; i < arguments.length; i++) {
32
- var source = arguments[i] != null ? arguments[i] : {};
33
-
34
- if (i % 2) {
35
- ownKeys$1(Object(source), true).forEach(function (key) {
36
- _defineProperty(target, key, source[key]);
37
- });
38
- } else if (Object.getOwnPropertyDescriptors) {
39
- Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
40
- } else {
41
- ownKeys$1(Object(source)).forEach(function (key) {
42
- Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
43
- });
44
- }
16
+ var source = null != arguments[i] ? arguments[i] : {};
17
+ i % 2 ? ownKeys$1(Object(source), !0).forEach(function (key) {
18
+ _defineProperty(target, key, source[key]);
19
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$1(Object(source)).forEach(function (key) {
20
+ Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
21
+ });
45
22
  }
46
23
 
47
24
  return target;
48
25
  }
49
26
 
27
+ function _defineProperty(obj, key, value) {
28
+ if (key in obj) {
29
+ Object.defineProperty(obj, key, {
30
+ value: value,
31
+ enumerable: true,
32
+ configurable: true,
33
+ writable: true
34
+ });
35
+ } else {
36
+ obj[key] = value;
37
+ }
38
+
39
+ return obj;
40
+ }
41
+
50
42
  function _toConsumableArray(arr) {
51
43
  return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
52
44
  }
@@ -56,7 +48,7 @@ function _arrayWithoutHoles(arr) {
56
48
  }
57
49
 
58
50
  function _iterableToArray(iter) {
59
- if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter);
51
+ if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
60
52
  }
61
53
 
62
54
  function _unsupportedIterableToArray(o, minLen) {
@@ -81,9 +73,9 @@ function _nonIterableSpread() {
81
73
  }
82
74
 
83
75
  function _createForOfIteratorHelper(o, allowArrayLike) {
84
- var it;
76
+ var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
85
77
 
86
- if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) {
78
+ if (!it) {
87
79
  if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
88
80
  if (it) o = it;
89
81
  var i = 0;
@@ -116,7 +108,7 @@ function _createForOfIteratorHelper(o, allowArrayLike) {
116
108
  err;
117
109
  return {
118
110
  s: function () {
119
- it = o[Symbol.iterator]();
111
+ it = it.call(o);
120
112
  },
121
113
  n: function () {
122
114
  var step = it.next();
@@ -172,6 +164,18 @@ var descriptors = !fails(function () {
172
164
  return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
173
165
  });
174
166
 
167
+ var functionBindNative = !fails(function () {
168
+ var test = (function () { /* empty */ }).bind();
169
+ // eslint-disable-next-line no-prototype-builtins -- safe
170
+ return typeof test != 'function' || test.hasOwnProperty('prototype');
171
+ });
172
+
173
+ var call$2 = Function.prototype.call;
174
+
175
+ var functionCall = functionBindNative ? call$2.bind(call$2) : function () {
176
+ return call$2.apply(call$2, arguments);
177
+ };
178
+
175
179
  var $propertyIsEnumerable = {}.propertyIsEnumerable;
176
180
  // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
177
181
  var getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
@@ -181,13 +185,13 @@ var NASHORN_BUG = getOwnPropertyDescriptor$1 && !$propertyIsEnumerable.call({ 1:
181
185
 
182
186
  // `Object.prototype.propertyIsEnumerable` method implementation
183
187
  // https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
184
- var f$4 = NASHORN_BUG ? function propertyIsEnumerable(V) {
188
+ var f$5 = NASHORN_BUG ? function propertyIsEnumerable(V) {
185
189
  var descriptor = getOwnPropertyDescriptor$1(this, V);
186
190
  return !!descriptor && descriptor.enumerable;
187
191
  } : $propertyIsEnumerable;
188
192
 
189
193
  var objectPropertyIsEnumerable = {
190
- f: f$4
194
+ f: f$5
191
195
  };
192
196
 
193
197
  var createPropertyDescriptor = function (bitmap, value) {
@@ -199,27 +203,44 @@ var createPropertyDescriptor = function (bitmap, value) {
199
203
  };
200
204
  };
201
205
 
202
- var toString = {}.toString;
206
+ var FunctionPrototype$2 = Function.prototype;
207
+ var bind = FunctionPrototype$2.bind;
208
+ var call$1 = FunctionPrototype$2.call;
209
+ var uncurryThis = functionBindNative && bind.bind(call$1, call$1);
210
+
211
+ var functionUncurryThis = functionBindNative ? function (fn) {
212
+ return fn && uncurryThis(fn);
213
+ } : function (fn) {
214
+ return fn && function () {
215
+ return call$1.apply(fn, arguments);
216
+ };
217
+ };
218
+
219
+ var toString$1 = functionUncurryThis({}.toString);
220
+ var stringSlice$4 = functionUncurryThis(''.slice);
203
221
 
204
222
  var classofRaw = function (it) {
205
- return toString.call(it).slice(8, -1);
223
+ return stringSlice$4(toString$1(it), 8, -1);
206
224
  };
207
225
 
208
- var split = ''.split;
226
+ var Object$4 = global_1.Object;
227
+ var split = functionUncurryThis(''.split);
209
228
 
210
229
  // fallback for non-array-like ES3 and non-enumerable old V8 strings
211
230
  var indexedObject = fails(function () {
212
231
  // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
213
232
  // eslint-disable-next-line no-prototype-builtins -- safe
214
- return !Object('z').propertyIsEnumerable(0);
233
+ return !Object$4('z').propertyIsEnumerable(0);
215
234
  }) ? function (it) {
216
- return classofRaw(it) == 'String' ? split.call(it, '') : Object(it);
217
- } : Object;
235
+ return classofRaw(it) == 'String' ? split(it, '') : Object$4(it);
236
+ } : Object$4;
237
+
238
+ var TypeError$9 = global_1.TypeError;
218
239
 
219
240
  // `RequireObjectCoercible` abstract operation
220
241
  // https://tc39.es/ecma262/#sec-requireobjectcoercible
221
242
  var requireObjectCoercible = function (it) {
222
- if (it == undefined) throw TypeError("Can't call method on " + it);
243
+ if (it == undefined) throw TypeError$9("Can't call method on " + it);
223
244
  return it;
224
245
  };
225
246
 
@@ -231,88 +252,309 @@ var toIndexedObject = function (it) {
231
252
  return indexedObject(requireObjectCoercible(it));
232
253
  };
233
254
 
255
+ // `IsCallable` abstract operation
256
+ // https://tc39.es/ecma262/#sec-iscallable
257
+ var isCallable = function (argument) {
258
+ return typeof argument == 'function';
259
+ };
260
+
234
261
  var isObject = function (it) {
235
- return typeof it === 'object' ? it !== null : typeof it === 'function';
262
+ return typeof it == 'object' ? it !== null : isCallable(it);
236
263
  };
237
264
 
238
- // `ToPrimitive` abstract operation
239
- // https://tc39.es/ecma262/#sec-toprimitive
240
- // instead of the ES6 spec version, we didn't implement @@toPrimitive case
241
- // and the second argument - flag - preferred type is a string
242
- var toPrimitive = function (input, PREFERRED_STRING) {
243
- if (!isObject(input)) return input;
265
+ var aFunction = function (argument) {
266
+ return isCallable(argument) ? argument : undefined;
267
+ };
268
+
269
+ var getBuiltIn = function (namespace, method) {
270
+ return arguments.length < 2 ? aFunction(global_1[namespace]) : global_1[namespace] && global_1[namespace][method];
271
+ };
272
+
273
+ var objectIsPrototypeOf = functionUncurryThis({}.isPrototypeOf);
274
+
275
+ var engineUserAgent = getBuiltIn('navigator', 'userAgent') || '';
276
+
277
+ var process = global_1.process;
278
+ var Deno = global_1.Deno;
279
+ var versions = process && process.versions || Deno && Deno.version;
280
+ var v8 = versions && versions.v8;
281
+ var match, version;
282
+
283
+ if (v8) {
284
+ match = v8.split('.');
285
+ // in old Chrome, versions of V8 isn't V8 = Chrome / 10
286
+ // but their correct versions are not interesting for us
287
+ version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);
288
+ }
289
+
290
+ // BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`
291
+ // so check `userAgent` even if `.v8` exists, but 0
292
+ if (!version && engineUserAgent) {
293
+ match = engineUserAgent.match(/Edge\/(\d+)/);
294
+ if (!match || match[1] >= 74) {
295
+ match = engineUserAgent.match(/Chrome\/(\d+)/);
296
+ if (match) version = +match[1];
297
+ }
298
+ }
299
+
300
+ var engineV8Version = version;
301
+
302
+ /* eslint-disable es/no-symbol -- required for testing */
303
+
304
+
305
+
306
+ // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
307
+ var nativeSymbol = !!Object.getOwnPropertySymbols && !fails(function () {
308
+ var symbol = Symbol();
309
+ // Chrome 38 Symbol has incorrect toString conversion
310
+ // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
311
+ return !String(symbol) || !(Object(symbol) instanceof Symbol) ||
312
+ // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
313
+ !Symbol.sham && engineV8Version && engineV8Version < 41;
314
+ });
315
+
316
+ /* eslint-disable es/no-symbol -- required for testing */
317
+
318
+
319
+ var useSymbolAsUid = nativeSymbol
320
+ && !Symbol.sham
321
+ && typeof Symbol.iterator == 'symbol';
322
+
323
+ var Object$3 = global_1.Object;
324
+
325
+ var isSymbol = useSymbolAsUid ? function (it) {
326
+ return typeof it == 'symbol';
327
+ } : function (it) {
328
+ var $Symbol = getBuiltIn('Symbol');
329
+ return isCallable($Symbol) && objectIsPrototypeOf($Symbol.prototype, Object$3(it));
330
+ };
331
+
332
+ var String$3 = global_1.String;
333
+
334
+ var tryToString = function (argument) {
335
+ try {
336
+ return String$3(argument);
337
+ } catch (error) {
338
+ return 'Object';
339
+ }
340
+ };
341
+
342
+ var TypeError$8 = global_1.TypeError;
343
+
344
+ // `Assert: IsCallable(argument) is true`
345
+ var aCallable = function (argument) {
346
+ if (isCallable(argument)) return argument;
347
+ throw TypeError$8(tryToString(argument) + ' is not a function');
348
+ };
349
+
350
+ // `GetMethod` abstract operation
351
+ // https://tc39.es/ecma262/#sec-getmethod
352
+ var getMethod = function (V, P) {
353
+ var func = V[P];
354
+ return func == null ? undefined : aCallable(func);
355
+ };
356
+
357
+ var TypeError$7 = global_1.TypeError;
358
+
359
+ // `OrdinaryToPrimitive` abstract operation
360
+ // https://tc39.es/ecma262/#sec-ordinarytoprimitive
361
+ var ordinaryToPrimitive = function (input, pref) {
244
362
  var fn, val;
245
- if (PREFERRED_STRING && typeof (fn = input.toString) == 'function' && !isObject(val = fn.call(input))) return val;
246
- if (typeof (fn = input.valueOf) == 'function' && !isObject(val = fn.call(input))) return val;
247
- if (!PREFERRED_STRING && typeof (fn = input.toString) == 'function' && !isObject(val = fn.call(input))) return val;
248
- throw TypeError("Can't convert object to primitive value");
363
+ if (pref === 'string' && isCallable(fn = input.toString) && !isObject(val = functionCall(fn, input))) return val;
364
+ if (isCallable(fn = input.valueOf) && !isObject(val = functionCall(fn, input))) return val;
365
+ if (pref !== 'string' && isCallable(fn = input.toString) && !isObject(val = functionCall(fn, input))) return val;
366
+ throw TypeError$7("Can't convert object to primitive value");
367
+ };
368
+
369
+ // eslint-disable-next-line es/no-object-defineproperty -- safe
370
+ var defineProperty = Object.defineProperty;
371
+
372
+ var setGlobal = function (key, value) {
373
+ try {
374
+ defineProperty(global_1, key, { value: value, configurable: true, writable: true });
375
+ } catch (error) {
376
+ global_1[key] = value;
377
+ } return value;
378
+ };
379
+
380
+ var SHARED = '__core-js_shared__';
381
+ var store$1 = global_1[SHARED] || setGlobal(SHARED, {});
382
+
383
+ var sharedStore = store$1;
384
+
385
+ var shared = createCommonjsModule(function (module) {
386
+ (module.exports = function (key, value) {
387
+ return sharedStore[key] || (sharedStore[key] = value !== undefined ? value : {});
388
+ })('versions', []).push({
389
+ version: '3.21.1',
390
+ mode: 'global',
391
+ copyright: '© 2014-2022 Denis Pushkarev (zloirock.ru)',
392
+ license: 'https://github.com/zloirock/core-js/blob/v3.21.1/LICENSE',
393
+ source: 'https://github.com/zloirock/core-js'
394
+ });
395
+ });
396
+
397
+ var Object$2 = global_1.Object;
398
+
399
+ // `ToObject` abstract operation
400
+ // https://tc39.es/ecma262/#sec-toobject
401
+ var toObject = function (argument) {
402
+ return Object$2(requireObjectCoercible(argument));
249
403
  };
250
404
 
251
- var hasOwnProperty = {}.hasOwnProperty;
405
+ var hasOwnProperty = functionUncurryThis({}.hasOwnProperty);
252
406
 
253
- var has$1 = function (it, key) {
254
- return hasOwnProperty.call(it, key);
407
+ // `HasOwnProperty` abstract operation
408
+ // https://tc39.es/ecma262/#sec-hasownproperty
409
+ var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
410
+ return hasOwnProperty(toObject(it), key);
255
411
  };
256
412
 
257
- var document = global_1.document;
413
+ var id = 0;
414
+ var postfix = Math.random();
415
+ var toString = functionUncurryThis(1.0.toString);
416
+
417
+ var uid = function (key) {
418
+ return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36);
419
+ };
420
+
421
+ var WellKnownSymbolsStore = shared('wks');
422
+ var Symbol$1 = global_1.Symbol;
423
+ var symbolFor = Symbol$1 && Symbol$1['for'];
424
+ var createWellKnownSymbol = useSymbolAsUid ? Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid;
425
+
426
+ var wellKnownSymbol = function (name) {
427
+ if (!hasOwnProperty_1(WellKnownSymbolsStore, name) || !(nativeSymbol || typeof WellKnownSymbolsStore[name] == 'string')) {
428
+ var description = 'Symbol.' + name;
429
+ if (nativeSymbol && hasOwnProperty_1(Symbol$1, name)) {
430
+ WellKnownSymbolsStore[name] = Symbol$1[name];
431
+ } else if (useSymbolAsUid && symbolFor) {
432
+ WellKnownSymbolsStore[name] = symbolFor(description);
433
+ } else {
434
+ WellKnownSymbolsStore[name] = createWellKnownSymbol(description);
435
+ }
436
+ } return WellKnownSymbolsStore[name];
437
+ };
438
+
439
+ var TypeError$6 = global_1.TypeError;
440
+ var TO_PRIMITIVE = wellKnownSymbol('toPrimitive');
441
+
442
+ // `ToPrimitive` abstract operation
443
+ // https://tc39.es/ecma262/#sec-toprimitive
444
+ var toPrimitive = function (input, pref) {
445
+ if (!isObject(input) || isSymbol(input)) return input;
446
+ var exoticToPrim = getMethod(input, TO_PRIMITIVE);
447
+ var result;
448
+ if (exoticToPrim) {
449
+ if (pref === undefined) pref = 'default';
450
+ result = functionCall(exoticToPrim, input, pref);
451
+ if (!isObject(result) || isSymbol(result)) return result;
452
+ throw TypeError$6("Can't convert object to primitive value");
453
+ }
454
+ if (pref === undefined) pref = 'number';
455
+ return ordinaryToPrimitive(input, pref);
456
+ };
457
+
458
+ // `ToPropertyKey` abstract operation
459
+ // https://tc39.es/ecma262/#sec-topropertykey
460
+ var toPropertyKey = function (argument) {
461
+ var key = toPrimitive(argument, 'string');
462
+ return isSymbol(key) ? key : key + '';
463
+ };
464
+
465
+ var document$1 = global_1.document;
258
466
  // typeof document.createElement is 'object' in old IE
259
- var EXISTS = isObject(document) && isObject(document.createElement);
467
+ var EXISTS$1 = isObject(document$1) && isObject(document$1.createElement);
260
468
 
261
469
  var documentCreateElement = function (it) {
262
- return EXISTS ? document.createElement(it) : {};
470
+ return EXISTS$1 ? document$1.createElement(it) : {};
263
471
  };
264
472
 
265
- // Thank's IE8 for his funny defineProperty
473
+ // Thanks to IE8 for its funny defineProperty
266
474
  var ie8DomDefine = !descriptors && !fails(function () {
267
- // eslint-disable-next-line es/no-object-defineproperty -- requied for testing
475
+ // eslint-disable-next-line es/no-object-defineproperty -- required for testing
268
476
  return Object.defineProperty(documentCreateElement('div'), 'a', {
269
477
  get: function () { return 7; }
270
478
  }).a != 7;
271
479
  });
272
480
 
273
481
  // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
274
- var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
482
+ var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
275
483
 
276
484
  // `Object.getOwnPropertyDescriptor` method
277
485
  // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
278
- var f$3 = descriptors ? $getOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {
486
+ var f$4 = descriptors ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
279
487
  O = toIndexedObject(O);
280
- P = toPrimitive(P, true);
488
+ P = toPropertyKey(P);
281
489
  if (ie8DomDefine) try {
282
- return $getOwnPropertyDescriptor(O, P);
490
+ return $getOwnPropertyDescriptor$1(O, P);
283
491
  } catch (error) { /* empty */ }
284
- if (has$1(O, P)) return createPropertyDescriptor(!objectPropertyIsEnumerable.f.call(O, P), O[P]);
492
+ if (hasOwnProperty_1(O, P)) return createPropertyDescriptor(!functionCall(objectPropertyIsEnumerable.f, O, P), O[P]);
285
493
  };
286
494
 
287
495
  var objectGetOwnPropertyDescriptor = {
288
- f: f$3
496
+ f: f$4
289
497
  };
290
498
 
291
- var anObject = function (it) {
292
- if (!isObject(it)) {
293
- throw TypeError(String(it) + ' is not an object');
294
- } return it;
499
+ // V8 ~ Chrome 36-
500
+ // https://bugs.chromium.org/p/v8/issues/detail?id=3334
501
+ var v8PrototypeDefineBug = descriptors && fails(function () {
502
+ // eslint-disable-next-line es/no-object-defineproperty -- required for testing
503
+ return Object.defineProperty(function () { /* empty */ }, 'prototype', {
504
+ value: 42,
505
+ writable: false
506
+ }).prototype != 42;
507
+ });
508
+
509
+ var String$2 = global_1.String;
510
+ var TypeError$5 = global_1.TypeError;
511
+
512
+ // `Assert: Type(argument) is Object`
513
+ var anObject = function (argument) {
514
+ if (isObject(argument)) return argument;
515
+ throw TypeError$5(String$2(argument) + ' is not an object');
295
516
  };
296
517
 
518
+ var TypeError$4 = global_1.TypeError;
297
519
  // eslint-disable-next-line es/no-object-defineproperty -- safe
298
520
  var $defineProperty = Object.defineProperty;
521
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
522
+ var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
523
+ var ENUMERABLE = 'enumerable';
524
+ var CONFIGURABLE$1 = 'configurable';
525
+ var WRITABLE = 'writable';
299
526
 
300
527
  // `Object.defineProperty` method
301
528
  // https://tc39.es/ecma262/#sec-object.defineproperty
302
- var f$2 = descriptors ? $defineProperty : function defineProperty(O, P, Attributes) {
529
+ var f$3 = descriptors ? v8PrototypeDefineBug ? function defineProperty(O, P, Attributes) {
530
+ anObject(O);
531
+ P = toPropertyKey(P);
532
+ anObject(Attributes);
533
+ if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
534
+ var current = $getOwnPropertyDescriptor(O, P);
535
+ if (current && current[WRITABLE]) {
536
+ O[P] = Attributes.value;
537
+ Attributes = {
538
+ configurable: CONFIGURABLE$1 in Attributes ? Attributes[CONFIGURABLE$1] : current[CONFIGURABLE$1],
539
+ enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],
540
+ writable: false
541
+ };
542
+ }
543
+ } return $defineProperty(O, P, Attributes);
544
+ } : $defineProperty : function defineProperty(O, P, Attributes) {
303
545
  anObject(O);
304
- P = toPrimitive(P, true);
546
+ P = toPropertyKey(P);
305
547
  anObject(Attributes);
306
548
  if (ie8DomDefine) try {
307
549
  return $defineProperty(O, P, Attributes);
308
550
  } catch (error) { /* empty */ }
309
- if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported');
551
+ if ('get' in Attributes || 'set' in Attributes) throw TypeError$4('Accessors not supported');
310
552
  if ('value' in Attributes) O[P] = Attributes.value;
311
553
  return O;
312
554
  };
313
555
 
314
556
  var objectDefineProperty = {
315
- f: f$2
557
+ f: f$3
316
558
  };
317
559
 
318
560
  var createNonEnumerableProperty = descriptors ? function (object, key, value) {
@@ -322,25 +564,12 @@ var createNonEnumerableProperty = descriptors ? function (object, key, value) {
322
564
  return object;
323
565
  };
324
566
 
325
- var setGlobal = function (key, value) {
326
- try {
327
- createNonEnumerableProperty(global_1, key, value);
328
- } catch (error) {
329
- global_1[key] = value;
330
- } return value;
331
- };
332
-
333
- var SHARED = '__core-js_shared__';
334
- var store$1 = global_1[SHARED] || setGlobal(SHARED, {});
335
-
336
- var sharedStore = store$1;
337
-
338
- var functionToString = Function.toString;
567
+ var functionToString = functionUncurryThis(Function.toString);
339
568
 
340
- // this helper broken in `3.4.1-3.4.4`, so we can't use `shared` helper
341
- if (typeof sharedStore.inspectSource != 'function') {
569
+ // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
570
+ if (!isCallable(sharedStore.inspectSource)) {
342
571
  sharedStore.inspectSource = function (it) {
343
- return functionToString.call(it);
572
+ return functionToString(it);
344
573
  };
345
574
  }
346
575
 
@@ -348,24 +577,7 @@ var inspectSource = sharedStore.inspectSource;
348
577
 
349
578
  var WeakMap$1 = global_1.WeakMap;
350
579
 
351
- var nativeWeakMap = typeof WeakMap$1 === 'function' && /native code/.test(inspectSource(WeakMap$1));
352
-
353
- var shared = createCommonjsModule(function (module) {
354
- (module.exports = function (key, value) {
355
- return sharedStore[key] || (sharedStore[key] = value !== undefined ? value : {});
356
- })('versions', []).push({
357
- version: '3.10.1',
358
- mode: 'global',
359
- copyright: '© 2021 Denis Pushkarev (zloirock.ru)'
360
- });
361
- });
362
-
363
- var id = 0;
364
- var postfix = Math.random();
365
-
366
- var uid = function (key) {
367
- return 'Symbol(' + String(key === undefined ? '' : key) + ')_' + (++id + postfix).toString(36);
368
- };
580
+ var nativeWeakMap = isCallable(WeakMap$1) && /native code/.test(inspectSource(WeakMap$1));
369
581
 
370
582
  var keys = shared('keys');
371
583
 
@@ -375,6 +587,8 @@ var sharedKey = function (key) {
375
587
 
376
588
  var hiddenKeys$1 = {};
377
589
 
590
+ var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
591
+ var TypeError$3 = global_1.TypeError;
378
592
  var WeakMap = global_1.WeakMap;
379
593
  var set, get, has;
380
594
 
@@ -386,40 +600,42 @@ var getterFor = function (TYPE) {
386
600
  return function (it) {
387
601
  var state;
388
602
  if (!isObject(it) || (state = get(it)).type !== TYPE) {
389
- throw TypeError('Incompatible receiver, ' + TYPE + ' required');
603
+ throw TypeError$3('Incompatible receiver, ' + TYPE + ' required');
390
604
  } return state;
391
605
  };
392
606
  };
393
607
 
394
- if (nativeWeakMap) {
608
+ if (nativeWeakMap || sharedStore.state) {
395
609
  var store = sharedStore.state || (sharedStore.state = new WeakMap());
396
- var wmget = store.get;
397
- var wmhas = store.has;
398
- var wmset = store.set;
610
+ var wmget = functionUncurryThis(store.get);
611
+ var wmhas = functionUncurryThis(store.has);
612
+ var wmset = functionUncurryThis(store.set);
399
613
  set = function (it, metadata) {
614
+ if (wmhas(store, it)) throw new TypeError$3(OBJECT_ALREADY_INITIALIZED);
400
615
  metadata.facade = it;
401
- wmset.call(store, it, metadata);
616
+ wmset(store, it, metadata);
402
617
  return metadata;
403
618
  };
404
619
  get = function (it) {
405
- return wmget.call(store, it) || {};
620
+ return wmget(store, it) || {};
406
621
  };
407
622
  has = function (it) {
408
- return wmhas.call(store, it);
623
+ return wmhas(store, it);
409
624
  };
410
625
  } else {
411
626
  var STATE = sharedKey('state');
412
627
  hiddenKeys$1[STATE] = true;
413
628
  set = function (it, metadata) {
629
+ if (hasOwnProperty_1(it, STATE)) throw new TypeError$3(OBJECT_ALREADY_INITIALIZED);
414
630
  metadata.facade = it;
415
631
  createNonEnumerableProperty(it, STATE, metadata);
416
632
  return metadata;
417
633
  };
418
634
  get = function (it) {
419
- return has$1(it, STATE) ? it[STATE] : {};
635
+ return hasOwnProperty_1(it, STATE) ? it[STATE] : {};
420
636
  };
421
637
  has = function (it) {
422
- return has$1(it, STATE);
638
+ return hasOwnProperty_1(it, STATE);
423
639
  };
424
640
  }
425
641
 
@@ -431,7 +647,24 @@ var internalState = {
431
647
  getterFor: getterFor
432
648
  };
433
649
 
650
+ var FunctionPrototype$1 = Function.prototype;
651
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
652
+ var getDescriptor = descriptors && Object.getOwnPropertyDescriptor;
653
+
654
+ var EXISTS = hasOwnProperty_1(FunctionPrototype$1, 'name');
655
+ // additional protection from minified / mangled / dropped function names
656
+ var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
657
+ var CONFIGURABLE = EXISTS && (!descriptors || (descriptors && getDescriptor(FunctionPrototype$1, 'name').configurable));
658
+
659
+ var functionName = {
660
+ EXISTS: EXISTS,
661
+ PROPER: PROPER,
662
+ CONFIGURABLE: CONFIGURABLE
663
+ };
664
+
434
665
  var redefine = createCommonjsModule(function (module) {
666
+ var CONFIGURABLE_FUNCTION_NAME = functionName.CONFIGURABLE;
667
+
435
668
  var getInternalState = internalState.get;
436
669
  var enforceInternalState = internalState.enforce;
437
670
  var TEMPLATE = String(String).split('String');
@@ -440,14 +673,18 @@ var TEMPLATE = String(String).split('String');
440
673
  var unsafe = options ? !!options.unsafe : false;
441
674
  var simple = options ? !!options.enumerable : false;
442
675
  var noTargetGet = options ? !!options.noTargetGet : false;
676
+ var name = options && options.name !== undefined ? options.name : key;
443
677
  var state;
444
- if (typeof value == 'function') {
445
- if (typeof key == 'string' && !has$1(value, 'name')) {
446
- createNonEnumerableProperty(value, 'name', key);
678
+ if (isCallable(value)) {
679
+ if (String(name).slice(0, 7) === 'Symbol(') {
680
+ name = '[' + String(name).replace(/^Symbol\(([^)]*)\)/, '$1') + ']';
681
+ }
682
+ if (!hasOwnProperty_1(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {
683
+ createNonEnumerableProperty(value, 'name', name);
447
684
  }
448
685
  state = enforceInternalState(value);
449
686
  if (!state.source) {
450
- state.source = TEMPLATE.join(typeof key == 'string' ? key : '');
687
+ state.source = TEMPLATE.join(typeof name == 'string' ? name : '');
451
688
  }
452
689
  }
453
690
  if (O === global_1) {
@@ -463,54 +700,51 @@ var TEMPLATE = String(String).split('String');
463
700
  else createNonEnumerableProperty(O, key, value);
464
701
  // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
465
702
  })(Function.prototype, 'toString', function toString() {
466
- return typeof this == 'function' && getInternalState(this).source || inspectSource(this);
703
+ return isCallable(this) && getInternalState(this).source || inspectSource(this);
467
704
  });
468
705
  });
469
706
 
470
- var path = global_1;
471
-
472
- var aFunction = function (variable) {
473
- return typeof variable == 'function' ? variable : undefined;
474
- };
475
-
476
- var getBuiltIn = function (namespace, method) {
477
- return arguments.length < 2 ? aFunction(path[namespace]) || aFunction(global_1[namespace])
478
- : path[namespace] && path[namespace][method] || global_1[namespace] && global_1[namespace][method];
479
- };
480
-
481
707
  var ceil = Math.ceil;
482
708
  var floor$1 = Math.floor;
483
709
 
484
- // `ToInteger` abstract operation
485
- // https://tc39.es/ecma262/#sec-tointeger
486
- var toInteger = function (argument) {
487
- return isNaN(argument = +argument) ? 0 : (argument > 0 ? floor$1 : ceil)(argument);
710
+ // `ToIntegerOrInfinity` abstract operation
711
+ // https://tc39.es/ecma262/#sec-tointegerorinfinity
712
+ var toIntegerOrInfinity = function (argument) {
713
+ var number = +argument;
714
+ // eslint-disable-next-line no-self-compare -- safe
715
+ return number !== number || number === 0 ? 0 : (number > 0 ? floor$1 : ceil)(number);
488
716
  };
489
717
 
718
+ var max$1 = Math.max;
490
719
  var min$2 = Math.min;
491
720
 
721
+ // Helper for a popular repeating case of the spec:
722
+ // Let integer be ? ToInteger(index).
723
+ // If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
724
+ var toAbsoluteIndex = function (index, length) {
725
+ var integer = toIntegerOrInfinity(index);
726
+ return integer < 0 ? max$1(integer + length, 0) : min$2(integer, length);
727
+ };
728
+
729
+ var min$1 = Math.min;
730
+
492
731
  // `ToLength` abstract operation
493
732
  // https://tc39.es/ecma262/#sec-tolength
494
733
  var toLength = function (argument) {
495
- return argument > 0 ? min$2(toInteger(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
734
+ return argument > 0 ? min$1(toIntegerOrInfinity(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
496
735
  };
497
736
 
498
- var max$1 = Math.max;
499
- var min$1 = Math.min;
500
-
501
- // Helper for a popular repeating case of the spec:
502
- // Let integer be ? ToInteger(index).
503
- // If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
504
- var toAbsoluteIndex = function (index, length) {
505
- var integer = toInteger(index);
506
- return integer < 0 ? max$1(integer + length, 0) : min$1(integer, length);
737
+ // `LengthOfArrayLike` abstract operation
738
+ // https://tc39.es/ecma262/#sec-lengthofarraylike
739
+ var lengthOfArrayLike = function (obj) {
740
+ return toLength(obj.length);
507
741
  };
508
742
 
509
743
  // `Array.prototype.{ indexOf, includes }` methods implementation
510
744
  var createMethod$1 = function (IS_INCLUDES) {
511
745
  return function ($this, el, fromIndex) {
512
746
  var O = toIndexedObject($this);
513
- var length = toLength(O.length);
747
+ var length = lengthOfArrayLike(O);
514
748
  var index = toAbsoluteIndex(fromIndex, length);
515
749
  var value;
516
750
  // Array#includes uses SameValueZero equality algorithm
@@ -535,18 +769,20 @@ var arrayIncludes = {
535
769
  indexOf: createMethod$1(false)
536
770
  };
537
771
 
538
- var indexOf = arrayIncludes.indexOf;
772
+ var indexOf$1 = arrayIncludes.indexOf;
539
773
 
540
774
 
775
+ var push$1 = functionUncurryThis([].push);
776
+
541
777
  var objectKeysInternal = function (object, names) {
542
778
  var O = toIndexedObject(object);
543
779
  var i = 0;
544
780
  var result = [];
545
781
  var key;
546
- for (key in O) !has$1(hiddenKeys$1, key) && has$1(O, key) && result.push(key);
782
+ for (key in O) !hasOwnProperty_1(hiddenKeys$1, key) && hasOwnProperty_1(O, key) && push$1(result, key);
547
783
  // Don't enum bug & hidden keys
548
- while (names.length > i) if (has$1(O, key = names[i++])) {
549
- ~indexOf(result, key) || result.push(key);
784
+ while (names.length > i) if (hasOwnProperty_1(O, key = names[i++])) {
785
+ ~indexOf$1(result, key) || push$1(result, key);
550
786
  }
551
787
  return result;
552
788
  };
@@ -567,35 +803,39 @@ var hiddenKeys = enumBugKeys.concat('length', 'prototype');
567
803
  // `Object.getOwnPropertyNames` method
568
804
  // https://tc39.es/ecma262/#sec-object.getownpropertynames
569
805
  // eslint-disable-next-line es/no-object-getownpropertynames -- safe
570
- var f$1 = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
806
+ var f$2 = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
571
807
  return objectKeysInternal(O, hiddenKeys);
572
808
  };
573
809
 
574
810
  var objectGetOwnPropertyNames = {
575
- f: f$1
811
+ f: f$2
576
812
  };
577
813
 
578
814
  // eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
579
- var f = Object.getOwnPropertySymbols;
815
+ var f$1 = Object.getOwnPropertySymbols;
580
816
 
581
817
  var objectGetOwnPropertySymbols = {
582
- f: f
818
+ f: f$1
583
819
  };
584
820
 
821
+ var concat$1 = functionUncurryThis([].concat);
822
+
585
823
  // all object keys, includes non-enumerable and symbols
586
824
  var ownKeys = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {
587
825
  var keys = objectGetOwnPropertyNames.f(anObject(it));
588
826
  var getOwnPropertySymbols = objectGetOwnPropertySymbols.f;
589
- return getOwnPropertySymbols ? keys.concat(getOwnPropertySymbols(it)) : keys;
827
+ return getOwnPropertySymbols ? concat$1(keys, getOwnPropertySymbols(it)) : keys;
590
828
  };
591
829
 
592
- var copyConstructorProperties = function (target, source) {
830
+ var copyConstructorProperties = function (target, source, exceptions) {
593
831
  var keys = ownKeys(source);
594
832
  var defineProperty = objectDefineProperty.f;
595
833
  var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
596
834
  for (var i = 0; i < keys.length; i++) {
597
835
  var key = keys[i];
598
- if (!has$1(target, key)) defineProperty(target, key, getOwnPropertyDescriptor(source, key));
836
+ if (!hasOwnProperty_1(target, key) && !(exceptions && hasOwnProperty_1(exceptions, key))) {
837
+ defineProperty(target, key, getOwnPropertyDescriptor(source, key));
838
+ }
599
839
  }
600
840
  };
601
841
 
@@ -605,7 +845,7 @@ var isForced = function (feature, detection) {
605
845
  var value = data[normalize(feature)];
606
846
  return value == POLYFILL ? true
607
847
  : value == NATIVE ? false
608
- : typeof detection == 'function' ? fails(detection)
848
+ : isCallable(detection) ? fails(detection)
609
849
  : !!detection;
610
850
  };
611
851
 
@@ -639,6 +879,7 @@ var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
639
879
  options.sham - add a flag to not completely full polyfills
640
880
  options.enumerable - export as enumerable property
641
881
  options.noTargetGet - prevent calling a getter on target
882
+ options.name - the .name of the function if it does not match the key
642
883
  */
643
884
  var _export = function (options, source) {
644
885
  var TARGET = options.target;
@@ -661,7 +902,7 @@ var _export = function (options, source) {
661
902
  FORCED = isForced_1(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
662
903
  // contained in target
663
904
  if (!FORCED && targetProperty !== undefined) {
664
- if (typeof sourceProperty === typeof targetProperty) continue;
905
+ if (typeof sourceProperty == typeof targetProperty) continue;
665
906
  copyConstructorProperties(sourceProperty, targetProperty);
666
907
  }
667
908
  // add a flag to not completely full polyfills
@@ -673,6 +914,45 @@ var _export = function (options, source) {
673
914
  }
674
915
  };
675
916
 
917
+ var TO_STRING_TAG$1 = wellKnownSymbol('toStringTag');
918
+ var test = {};
919
+
920
+ test[TO_STRING_TAG$1] = 'z';
921
+
922
+ var toStringTagSupport = String(test) === '[object z]';
923
+
924
+ var TO_STRING_TAG = wellKnownSymbol('toStringTag');
925
+ var Object$1 = global_1.Object;
926
+
927
+ // ES3 wrong here
928
+ var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments';
929
+
930
+ // fallback for IE11 Script Access Denied error
931
+ var tryGet = function (it, key) {
932
+ try {
933
+ return it[key];
934
+ } catch (error) { /* empty */ }
935
+ };
936
+
937
+ // getting tag from ES6+ `Object.prototype.toString`
938
+ var classof = toStringTagSupport ? classofRaw : function (it) {
939
+ var O, tag, result;
940
+ return it === undefined ? 'Undefined' : it === null ? 'Null'
941
+ // @@toStringTag case
942
+ : typeof (tag = tryGet(O = Object$1(it), TO_STRING_TAG)) == 'string' ? tag
943
+ // builtinTag case
944
+ : CORRECT_ARGUMENTS ? classofRaw(O)
945
+ // ES3 arguments fallback
946
+ : (result = classofRaw(O)) == 'Object' && isCallable(O.callee) ? 'Arguments' : result;
947
+ };
948
+
949
+ var String$1 = global_1.String;
950
+
951
+ var toString_1 = function (argument) {
952
+ if (classof(argument) === 'Symbol') throw TypeError('Cannot convert a Symbol value to a string');
953
+ return String$1(argument);
954
+ };
955
+
676
956
  // `RegExp.prototype.flags` getter implementation
677
957
  // https://tc39.es/ecma262/#sec-get-regexp.prototype.flags
678
958
  var regexpFlags = function () {
@@ -687,71 +967,228 @@ var regexpFlags = function () {
687
967
  return result;
688
968
  };
689
969
 
690
- // babel-minify transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError,
691
- // so we use an intermediate function.
692
- function RE(s, f) {
693
- return RegExp(s, f);
694
- }
970
+ // babel-minify and Closure Compiler transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError
971
+ var $RegExp$2 = global_1.RegExp;
695
972
 
696
973
  var UNSUPPORTED_Y$1 = fails(function () {
697
- // babel-minify transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError
698
- var re = RE('a', 'y');
974
+ var re = $RegExp$2('a', 'y');
699
975
  re.lastIndex = 2;
700
976
  return re.exec('abcd') != null;
701
977
  });
702
978
 
703
- var BROKEN_CARET = fails(function () {
979
+ // UC Browser bug
980
+ // https://github.com/zloirock/core-js/issues/1008
981
+ var MISSED_STICKY = UNSUPPORTED_Y$1 || fails(function () {
982
+ return !$RegExp$2('a', 'y').sticky;
983
+ });
984
+
985
+ var BROKEN_CARET = UNSUPPORTED_Y$1 || fails(function () {
704
986
  // https://bugzilla.mozilla.org/show_bug.cgi?id=773687
705
- var re = RE('^r', 'gy');
987
+ var re = $RegExp$2('^r', 'gy');
706
988
  re.lastIndex = 2;
707
989
  return re.exec('str') != null;
708
990
  });
709
991
 
710
992
  var regexpStickyHelpers = {
711
- UNSUPPORTED_Y: UNSUPPORTED_Y$1,
712
- BROKEN_CARET: BROKEN_CARET
993
+ BROKEN_CARET: BROKEN_CARET,
994
+ MISSED_STICKY: MISSED_STICKY,
995
+ UNSUPPORTED_Y: UNSUPPORTED_Y$1
713
996
  };
714
997
 
715
- var nativeExec = RegExp.prototype.exec;
716
- var nativeReplace = shared('native-string-replace', String.prototype.replace);
998
+ // `Object.keys` method
999
+ // https://tc39.es/ecma262/#sec-object.keys
1000
+ // eslint-disable-next-line es/no-object-keys -- safe
1001
+ var objectKeys = Object.keys || function keys(O) {
1002
+ return objectKeysInternal(O, enumBugKeys);
1003
+ };
1004
+
1005
+ // `Object.defineProperties` method
1006
+ // https://tc39.es/ecma262/#sec-object.defineproperties
1007
+ // eslint-disable-next-line es/no-object-defineproperties -- safe
1008
+ var f = descriptors && !v8PrototypeDefineBug ? Object.defineProperties : function defineProperties(O, Properties) {
1009
+ anObject(O);
1010
+ var props = toIndexedObject(Properties);
1011
+ var keys = objectKeys(Properties);
1012
+ var length = keys.length;
1013
+ var index = 0;
1014
+ var key;
1015
+ while (length > index) objectDefineProperty.f(O, key = keys[index++], props[key]);
1016
+ return O;
1017
+ };
1018
+
1019
+ var objectDefineProperties = {
1020
+ f: f
1021
+ };
1022
+
1023
+ var html = getBuiltIn('document', 'documentElement');
1024
+
1025
+ /* global ActiveXObject -- old IE, WSH */
1026
+
1027
+
1028
+
1029
+
1030
+
1031
+
1032
+
717
1033
 
1034
+ var GT = '>';
1035
+ var LT = '<';
1036
+ var PROTOTYPE = 'prototype';
1037
+ var SCRIPT = 'script';
1038
+ var IE_PROTO = sharedKey('IE_PROTO');
1039
+
1040
+ var EmptyConstructor = function () { /* empty */ };
1041
+
1042
+ var scriptTag = function (content) {
1043
+ return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;
1044
+ };
1045
+
1046
+ // Create object with fake `null` prototype: use ActiveX Object with cleared prototype
1047
+ var NullProtoObjectViaActiveX = function (activeXDocument) {
1048
+ activeXDocument.write(scriptTag(''));
1049
+ activeXDocument.close();
1050
+ var temp = activeXDocument.parentWindow.Object;
1051
+ activeXDocument = null; // avoid memory leak
1052
+ return temp;
1053
+ };
1054
+
1055
+ // Create object with fake `null` prototype: use iframe Object with cleared prototype
1056
+ var NullProtoObjectViaIFrame = function () {
1057
+ // Thrash, waste and sodomy: IE GC bug
1058
+ var iframe = documentCreateElement('iframe');
1059
+ var JS = 'java' + SCRIPT + ':';
1060
+ var iframeDocument;
1061
+ iframe.style.display = 'none';
1062
+ html.appendChild(iframe);
1063
+ // https://github.com/zloirock/core-js/issues/475
1064
+ iframe.src = String(JS);
1065
+ iframeDocument = iframe.contentWindow.document;
1066
+ iframeDocument.open();
1067
+ iframeDocument.write(scriptTag('document.F=Object'));
1068
+ iframeDocument.close();
1069
+ return iframeDocument.F;
1070
+ };
1071
+
1072
+ // Check for document.domain and active x support
1073
+ // No need to use active x approach when document.domain is not set
1074
+ // see https://github.com/es-shims/es5-shim/issues/150
1075
+ // variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346
1076
+ // avoid IE GC bug
1077
+ var activeXDocument;
1078
+ var NullProtoObject = function () {
1079
+ try {
1080
+ activeXDocument = new ActiveXObject('htmlfile');
1081
+ } catch (error) { /* ignore */ }
1082
+ NullProtoObject = typeof document != 'undefined'
1083
+ ? document.domain && activeXDocument
1084
+ ? NullProtoObjectViaActiveX(activeXDocument) // old IE
1085
+ : NullProtoObjectViaIFrame()
1086
+ : NullProtoObjectViaActiveX(activeXDocument); // WSH
1087
+ var length = enumBugKeys.length;
1088
+ while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];
1089
+ return NullProtoObject();
1090
+ };
1091
+
1092
+ hiddenKeys$1[IE_PROTO] = true;
1093
+
1094
+ // `Object.create` method
1095
+ // https://tc39.es/ecma262/#sec-object.create
1096
+ var objectCreate = Object.create || function create(O, Properties) {
1097
+ var result;
1098
+ if (O !== null) {
1099
+ EmptyConstructor[PROTOTYPE] = anObject(O);
1100
+ result = new EmptyConstructor();
1101
+ EmptyConstructor[PROTOTYPE] = null;
1102
+ // add "__proto__" for Object.getPrototypeOf polyfill
1103
+ result[IE_PROTO] = O;
1104
+ } else result = NullProtoObject();
1105
+ return Properties === undefined ? result : objectDefineProperties.f(result, Properties);
1106
+ };
1107
+
1108
+ // babel-minify and Closure Compiler transpiles RegExp('.', 's') -> /./s and it causes SyntaxError
1109
+ var $RegExp$1 = global_1.RegExp;
1110
+
1111
+ var regexpUnsupportedDotAll = fails(function () {
1112
+ var re = $RegExp$1('.', 's');
1113
+ return !(re.dotAll && re.exec('\n') && re.flags === 's');
1114
+ });
1115
+
1116
+ // babel-minify and Closure Compiler transpiles RegExp('(?<a>b)', 'g') -> /(?<a>b)/g and it causes SyntaxError
1117
+ var $RegExp = global_1.RegExp;
1118
+
1119
+ var regexpUnsupportedNcg = fails(function () {
1120
+ var re = $RegExp('(?<a>b)', 'g');
1121
+ return re.exec('b').groups.a !== 'b' ||
1122
+ 'b'.replace(re, '$<a>c') !== 'bc';
1123
+ });
1124
+
1125
+ /* eslint-disable regexp/no-empty-capturing-group, regexp/no-empty-group, regexp/no-lazy-ends -- testing */
1126
+ /* eslint-disable regexp/no-useless-quantifier -- testing */
1127
+
1128
+
1129
+
1130
+
1131
+
1132
+
1133
+
1134
+ var getInternalState = internalState.get;
1135
+
1136
+
1137
+
1138
+ var nativeReplace = shared('native-string-replace', String.prototype.replace);
1139
+ var nativeExec = RegExp.prototype.exec;
718
1140
  var patchedExec = nativeExec;
1141
+ var charAt$3 = functionUncurryThis(''.charAt);
1142
+ var indexOf = functionUncurryThis(''.indexOf);
1143
+ var replace$1 = functionUncurryThis(''.replace);
1144
+ var stringSlice$3 = functionUncurryThis(''.slice);
719
1145
 
720
1146
  var UPDATES_LAST_INDEX_WRONG = (function () {
721
1147
  var re1 = /a/;
722
1148
  var re2 = /b*/g;
723
- nativeExec.call(re1, 'a');
724
- nativeExec.call(re2, 'a');
1149
+ functionCall(nativeExec, re1, 'a');
1150
+ functionCall(nativeExec, re2, 'a');
725
1151
  return re1.lastIndex !== 0 || re2.lastIndex !== 0;
726
1152
  })();
727
1153
 
728
- var UNSUPPORTED_Y = regexpStickyHelpers.UNSUPPORTED_Y || regexpStickyHelpers.BROKEN_CARET;
1154
+ var UNSUPPORTED_Y = regexpStickyHelpers.BROKEN_CARET;
729
1155
 
730
1156
  // nonparticipating capturing group, copied from es5-shim's String#split patch.
731
- // eslint-disable-next-line regexp/no-assertion-capturing-group, regexp/no-empty-group -- required for testing
732
1157
  var NPCG_INCLUDED = /()??/.exec('')[1] !== undefined;
733
1158
 
734
- var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED || UNSUPPORTED_Y;
1159
+ var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED || UNSUPPORTED_Y || regexpUnsupportedDotAll || regexpUnsupportedNcg;
735
1160
 
736
1161
  if (PATCH) {
737
- patchedExec = function exec(str) {
1162
+ patchedExec = function exec(string) {
738
1163
  var re = this;
739
- var lastIndex, reCopy, match, i;
1164
+ var state = getInternalState(re);
1165
+ var str = toString_1(string);
1166
+ var raw = state.raw;
1167
+ var result, reCopy, lastIndex, match, i, object, group;
1168
+
1169
+ if (raw) {
1170
+ raw.lastIndex = re.lastIndex;
1171
+ result = functionCall(patchedExec, raw, str);
1172
+ re.lastIndex = raw.lastIndex;
1173
+ return result;
1174
+ }
1175
+
1176
+ var groups = state.groups;
740
1177
  var sticky = UNSUPPORTED_Y && re.sticky;
741
- var flags = regexpFlags.call(re);
1178
+ var flags = functionCall(regexpFlags, re);
742
1179
  var source = re.source;
743
1180
  var charsAdded = 0;
744
1181
  var strCopy = str;
745
1182
 
746
1183
  if (sticky) {
747
- flags = flags.replace('y', '');
748
- if (flags.indexOf('g') === -1) {
1184
+ flags = replace$1(flags, 'y', '');
1185
+ if (indexOf(flags, 'g') === -1) {
749
1186
  flags += 'g';
750
1187
  }
751
1188
 
752
- strCopy = String(str).slice(re.lastIndex);
1189
+ strCopy = stringSlice$3(str, re.lastIndex);
753
1190
  // Support anchored sticky behavior.
754
- if (re.lastIndex > 0 && (!re.multiline || re.multiline && str[re.lastIndex - 1] !== '\n')) {
1191
+ if (re.lastIndex > 0 && (!re.multiline || re.multiline && charAt$3(str, re.lastIndex - 1) !== '\n')) {
755
1192
  source = '(?: ' + source + ')';
756
1193
  strCopy = ' ' + strCopy;
757
1194
  charsAdded++;
@@ -766,12 +1203,12 @@ if (PATCH) {
766
1203
  }
767
1204
  if (UPDATES_LAST_INDEX_WRONG) lastIndex = re.lastIndex;
768
1205
 
769
- match = nativeExec.call(sticky ? reCopy : re, strCopy);
1206
+ match = functionCall(nativeExec, sticky ? reCopy : re, strCopy);
770
1207
 
771
1208
  if (sticky) {
772
1209
  if (match) {
773
- match.input = match.input.slice(charsAdded);
774
- match[0] = match[0].slice(charsAdded);
1210
+ match.input = stringSlice$3(match.input, charsAdded);
1211
+ match[0] = stringSlice$3(match[0], charsAdded);
775
1212
  match.index = re.lastIndex;
776
1213
  re.lastIndex += match[0].length;
777
1214
  } else re.lastIndex = 0;
@@ -781,13 +1218,21 @@ if (PATCH) {
781
1218
  if (NPCG_INCLUDED && match && match.length > 1) {
782
1219
  // Fix browsers whose `exec` methods don't consistently return `undefined`
783
1220
  // for NPCG, like IE8. NOTE: This doesn' work for /(.?)?/
784
- nativeReplace.call(match[0], reCopy, function () {
1221
+ functionCall(nativeReplace, match[0], reCopy, function () {
785
1222
  for (i = 1; i < arguments.length - 2; i++) {
786
1223
  if (arguments[i] === undefined) match[i] = undefined;
787
1224
  }
788
1225
  });
789
1226
  }
790
1227
 
1228
+ if (match && groups) {
1229
+ match.groups = object = objectCreate(null);
1230
+ for (i = 0; i < groups.length; i++) {
1231
+ group = groups[i];
1232
+ object[group[0]] = match[group[1]];
1233
+ }
1234
+ }
1235
+
791
1236
  return match;
792
1237
  };
793
1238
  }
@@ -800,58 +1245,15 @@ _export({ target: 'RegExp', proto: true, forced: /./.exec !== regexpExec }, {
800
1245
  exec: regexpExec
801
1246
  });
802
1247
 
803
- var engineIsNode = classofRaw(global_1.process) == 'process';
804
-
805
- var engineUserAgent = getBuiltIn('navigator', 'userAgent') || '';
1248
+ var FunctionPrototype = Function.prototype;
1249
+ var apply = FunctionPrototype.apply;
1250
+ var call = FunctionPrototype.call;
806
1251
 
807
- var process = global_1.process;
808
- var versions = process && process.versions;
809
- var v8 = versions && versions.v8;
810
- var match, version;
811
-
812
- if (v8) {
813
- match = v8.split('.');
814
- version = match[0] + match[1];
815
- } else if (engineUserAgent) {
816
- match = engineUserAgent.match(/Edge\/(\d+)/);
817
- if (!match || match[1] >= 74) {
818
- match = engineUserAgent.match(/Chrome\/(\d+)/);
819
- if (match) version = match[1];
820
- }
821
- }
822
-
823
- var engineV8Version = version && +version;
824
-
825
- // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
826
- var nativeSymbol = !!Object.getOwnPropertySymbols && !fails(function () {
827
- // eslint-disable-next-line es/no-symbol -- required for testing
828
- return !Symbol.sham &&
829
- // Chrome 38 Symbol has incorrect toString conversion
830
- // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
831
- (engineIsNode ? engineV8Version === 38 : engineV8Version > 37 && engineV8Version < 41);
1252
+ // eslint-disable-next-line es/no-reflect -- safe
1253
+ var functionApply = typeof Reflect == 'object' && Reflect.apply || (functionBindNative ? call.bind(apply) : function () {
1254
+ return call.apply(apply, arguments);
832
1255
  });
833
1256
 
834
- /* eslint-disable es/no-symbol -- required for testing */
835
-
836
-
837
- var useSymbolAsUid = nativeSymbol
838
- && !Symbol.sham
839
- && typeof Symbol.iterator == 'symbol';
840
-
841
- var WellKnownSymbolsStore = shared('wks');
842
- var Symbol$1 = global_1.Symbol;
843
- var createWellKnownSymbol = useSymbolAsUid ? Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid;
844
-
845
- var wellKnownSymbol = function (name) {
846
- if (!has$1(WellKnownSymbolsStore, name) || !(nativeSymbol || typeof WellKnownSymbolsStore[name] == 'string')) {
847
- if (nativeSymbol && has$1(Symbol$1, name)) {
848
- WellKnownSymbolsStore[name] = Symbol$1[name];
849
- } else {
850
- WellKnownSymbolsStore[name] = createWellKnownSymbol('Symbol.' + name);
851
- }
852
- } return WellKnownSymbolsStore[name];
853
- };
854
-
855
1257
  // TODO: Remove from `core-js@4` since it's moved to entry points
856
1258
 
857
1259
 
@@ -859,49 +1261,12 @@ var wellKnownSymbol = function (name) {
859
1261
 
860
1262
 
861
1263
 
862
- var SPECIES$2 = wellKnownSymbol('species');
863
1264
 
864
- var REPLACE_SUPPORTS_NAMED_GROUPS = !fails(function () {
865
- // #replace needs built-in support for named groups.
866
- // #match works fine because it just return the exec results, even if it has
867
- // a "grops" property.
868
- var re = /./;
869
- re.exec = function () {
870
- var result = [];
871
- result.groups = { a: '7' };
872
- return result;
873
- };
874
- return ''.replace(re, '$<a>') !== '7';
875
- });
876
1265
 
877
- // IE <= 11 replaces $0 with the whole match, as if it was $&
878
- // https://stackoverflow.com/questions/6024666/getting-ie-to-replace-a-regex-with-the-literal-string-0
879
- var REPLACE_KEEPS_$0 = (function () {
880
- // eslint-disable-next-line regexp/prefer-escape-replacement-dollar-char -- required for testing
881
- return 'a'.replace(/./, '$0') === '$0';
882
- })();
883
-
884
- var REPLACE = wellKnownSymbol('replace');
885
- // Safari <= 13.0.3(?) substitutes nth capture where n>m with an empty string
886
- var REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE = (function () {
887
- if (/./[REPLACE]) {
888
- return /./[REPLACE]('a', '$0') === '';
889
- }
890
- return false;
891
- })();
892
-
893
- // Chrome 51 has a buggy "split" implementation when RegExp#exec !== nativeExec
894
- // Weex JS has frozen built-in prototypes, so use try / catch wrapper
895
- var SPLIT_WORKS_WITH_OVERWRITTEN_EXEC = !fails(function () {
896
- // eslint-disable-next-line regexp/no-empty-group -- required for testing
897
- var re = /(?:)/;
898
- var originalExec = re.exec;
899
- re.exec = function () { return originalExec.apply(this, arguments); };
900
- var result = 'ab'.split(re);
901
- return result.length !== 2 || result[0] !== 'a' || result[1] !== 'b';
902
- });
1266
+ var SPECIES$2 = wellKnownSymbol('species');
1267
+ var RegExpPrototype = RegExp.prototype;
903
1268
 
904
- var fixRegexpWellKnownSymbolLogic = function (KEY, length, exec, sham) {
1269
+ var fixRegexpWellKnownSymbolLogic = function (KEY, exec, FORCED, SHAM) {
905
1270
  var SYMBOL = wellKnownSymbol(KEY);
906
1271
 
907
1272
  var DELEGATES_TO_SYMBOL = !fails(function () {
@@ -938,59 +1303,51 @@ var fixRegexpWellKnownSymbolLogic = function (KEY, length, exec, sham) {
938
1303
  if (
939
1304
  !DELEGATES_TO_SYMBOL ||
940
1305
  !DELEGATES_TO_EXEC ||
941
- (KEY === 'replace' && !(
942
- REPLACE_SUPPORTS_NAMED_GROUPS &&
943
- REPLACE_KEEPS_$0 &&
944
- !REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE
945
- )) ||
946
- (KEY === 'split' && !SPLIT_WORKS_WITH_OVERWRITTEN_EXEC)
1306
+ FORCED
947
1307
  ) {
948
- var nativeRegExpMethod = /./[SYMBOL];
1308
+ var uncurriedNativeRegExpMethod = functionUncurryThis(/./[SYMBOL]);
949
1309
  var methods = exec(SYMBOL, ''[KEY], function (nativeMethod, regexp, str, arg2, forceStringMethod) {
950
- if (regexp.exec === RegExp.prototype.exec) {
1310
+ var uncurriedNativeMethod = functionUncurryThis(nativeMethod);
1311
+ var $exec = regexp.exec;
1312
+ if ($exec === regexpExec || $exec === RegExpPrototype.exec) {
951
1313
  if (DELEGATES_TO_SYMBOL && !forceStringMethod) {
952
1314
  // The native String method already delegates to @@method (this
953
1315
  // polyfilled function), leasing to infinite recursion.
954
1316
  // We avoid it by directly calling the native @@method method.
955
- return { done: true, value: nativeRegExpMethod.call(regexp, str, arg2) };
1317
+ return { done: true, value: uncurriedNativeRegExpMethod(regexp, str, arg2) };
956
1318
  }
957
- return { done: true, value: nativeMethod.call(str, regexp, arg2) };
1319
+ return { done: true, value: uncurriedNativeMethod(str, regexp, arg2) };
958
1320
  }
959
1321
  return { done: false };
960
- }, {
961
- REPLACE_KEEPS_$0: REPLACE_KEEPS_$0,
962
- REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE: REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE
963
1322
  });
964
- var stringMethod = methods[0];
965
- var regexMethod = methods[1];
966
-
967
- redefine(String.prototype, KEY, stringMethod);
968
- redefine(RegExp.prototype, SYMBOL, length == 2
969
- // 21.2.5.8 RegExp.prototype[@@replace](string, replaceValue)
970
- // 21.2.5.11 RegExp.prototype[@@split](string, limit)
971
- ? function (string, arg) { return regexMethod.call(string, this, arg); }
972
- // 21.2.5.6 RegExp.prototype[@@match](string)
973
- // 21.2.5.9 RegExp.prototype[@@search](string)
974
- : function (string) { return regexMethod.call(string, this); }
975
- );
1323
+
1324
+ redefine(String.prototype, KEY, methods[0]);
1325
+ redefine(RegExpPrototype, SYMBOL, methods[1]);
976
1326
  }
977
1327
 
978
- if (sham) createNonEnumerableProperty(RegExp.prototype[SYMBOL], 'sham', true);
1328
+ if (SHAM) createNonEnumerableProperty(RegExpPrototype[SYMBOL], 'sham', true);
979
1329
  };
980
1330
 
981
- // `String.prototype.{ codePointAt, at }` methods implementation
1331
+ var charAt$2 = functionUncurryThis(''.charAt);
1332
+ var charCodeAt = functionUncurryThis(''.charCodeAt);
1333
+ var stringSlice$2 = functionUncurryThis(''.slice);
1334
+
982
1335
  var createMethod = function (CONVERT_TO_STRING) {
983
1336
  return function ($this, pos) {
984
- var S = String(requireObjectCoercible($this));
985
- var position = toInteger(pos);
1337
+ var S = toString_1(requireObjectCoercible($this));
1338
+ var position = toIntegerOrInfinity(pos);
986
1339
  var size = S.length;
987
1340
  var first, second;
988
1341
  if (position < 0 || position >= size) return CONVERT_TO_STRING ? '' : undefined;
989
- first = S.charCodeAt(position);
1342
+ first = charCodeAt(S, position);
990
1343
  return first < 0xD800 || first > 0xDBFF || position + 1 === size
991
- || (second = S.charCodeAt(position + 1)) < 0xDC00 || second > 0xDFFF
992
- ? CONVERT_TO_STRING ? S.charAt(position) : first
993
- : CONVERT_TO_STRING ? S.slice(position, position + 2) : (first - 0xD800 << 10) + (second - 0xDC00) + 0x10000;
1344
+ || (second = charCodeAt(S, position + 1)) < 0xDC00 || second > 0xDFFF
1345
+ ? CONVERT_TO_STRING
1346
+ ? charAt$2(S, position)
1347
+ : first
1348
+ : CONVERT_TO_STRING
1349
+ ? stringSlice$2(S, position, position + 2)
1350
+ : (first - 0xD800 << 10) + (second - 0xDC00) + 0x10000;
994
1351
  };
995
1352
  };
996
1353
 
@@ -1003,25 +1360,22 @@ var stringMultibyte = {
1003
1360
  charAt: createMethod(true)
1004
1361
  };
1005
1362
 
1006
- var charAt = stringMultibyte.charAt;
1363
+ var charAt$1 = stringMultibyte.charAt;
1007
1364
 
1008
1365
  // `AdvanceStringIndex` abstract operation
1009
1366
  // https://tc39.es/ecma262/#sec-advancestringindex
1010
1367
  var advanceStringIndex = function (S, index, unicode) {
1011
- return index + (unicode ? charAt(S, index).length : 1);
1012
- };
1013
-
1014
- // `ToObject` abstract operation
1015
- // https://tc39.es/ecma262/#sec-toobject
1016
- var toObject = function (argument) {
1017
- return Object(requireObjectCoercible(argument));
1368
+ return index + (unicode ? charAt$1(S, index).length : 1);
1018
1369
  };
1019
1370
 
1020
1371
  var floor = Math.floor;
1021
- var replace = ''.replace;
1372
+ var charAt = functionUncurryThis(''.charAt);
1373
+ var replace = functionUncurryThis(''.replace);
1374
+ var stringSlice$1 = functionUncurryThis(''.slice);
1022
1375
  var SUBSTITUTION_SYMBOLS = /\$([$&'`]|\d{1,2}|<[^>]*>)/g;
1023
1376
  var SUBSTITUTION_SYMBOLS_NO_NAMED = /\$([$&'`]|\d{1,2})/g;
1024
1377
 
1378
+ // `GetSubstitution` abstract operation
1025
1379
  // https://tc39.es/ecma262/#sec-getsubstitution
1026
1380
  var getSubstitution = function (matched, str, position, captures, namedCaptures, replacement) {
1027
1381
  var tailPos = position + matched.length;
@@ -1031,15 +1385,15 @@ var getSubstitution = function (matched, str, position, captures, namedCaptures,
1031
1385
  namedCaptures = toObject(namedCaptures);
1032
1386
  symbols = SUBSTITUTION_SYMBOLS;
1033
1387
  }
1034
- return replace.call(replacement, symbols, function (match, ch) {
1388
+ return replace(replacement, symbols, function (match, ch) {
1035
1389
  var capture;
1036
- switch (ch.charAt(0)) {
1390
+ switch (charAt(ch, 0)) {
1037
1391
  case '$': return '$';
1038
1392
  case '&': return matched;
1039
- case '`': return str.slice(0, position);
1040
- case "'": return str.slice(tailPos);
1393
+ case '`': return stringSlice$1(str, 0, position);
1394
+ case "'": return stringSlice$1(str, tailPos);
1041
1395
  case '<':
1042
- capture = namedCaptures[ch.slice(1, -1)];
1396
+ capture = namedCaptures[stringSlice$1(ch, 1, -1)];
1043
1397
  break;
1044
1398
  default: // \d\d?
1045
1399
  var n = +ch;
@@ -1047,7 +1401,7 @@ var getSubstitution = function (matched, str, position, captures, namedCaptures,
1047
1401
  if (n > m) {
1048
1402
  var f = floor(n / 10);
1049
1403
  if (f === 0) return match;
1050
- if (f <= m) return captures[f - 1] === undefined ? ch.charAt(1) : captures[f - 1] + ch.charAt(1);
1404
+ if (f <= m) return captures[f - 1] === undefined ? charAt(ch, 1) : captures[f - 1] + charAt(ch, 1);
1051
1405
  return match;
1052
1406
  }
1053
1407
  capture = captures[n - 1];
@@ -1056,36 +1410,61 @@ var getSubstitution = function (matched, str, position, captures, namedCaptures,
1056
1410
  });
1057
1411
  };
1058
1412
 
1413
+ var TypeError$2 = global_1.TypeError;
1414
+
1059
1415
  // `RegExpExec` abstract operation
1060
1416
  // https://tc39.es/ecma262/#sec-regexpexec
1061
1417
  var regexpExecAbstract = function (R, S) {
1062
1418
  var exec = R.exec;
1063
- if (typeof exec === 'function') {
1064
- var result = exec.call(R, S);
1065
- if (typeof result !== 'object') {
1066
- throw TypeError('RegExp exec method returned something other than an Object or null');
1067
- }
1419
+ if (isCallable(exec)) {
1420
+ var result = functionCall(exec, R, S);
1421
+ if (result !== null) anObject(result);
1068
1422
  return result;
1069
1423
  }
1070
-
1071
- if (classofRaw(R) !== 'RegExp') {
1072
- throw TypeError('RegExp#exec called on incompatible receiver');
1073
- }
1074
-
1075
- return regexpExec.call(R, S);
1424
+ if (classofRaw(R) === 'RegExp') return functionCall(regexpExec, R, S);
1425
+ throw TypeError$2('RegExp#exec called on incompatible receiver');
1076
1426
  };
1077
1427
 
1428
+ var REPLACE = wellKnownSymbol('replace');
1078
1429
  var max = Math.max;
1079
1430
  var min = Math.min;
1431
+ var concat = functionUncurryThis([].concat);
1432
+ var push = functionUncurryThis([].push);
1433
+ var stringIndexOf = functionUncurryThis(''.indexOf);
1434
+ var stringSlice = functionUncurryThis(''.slice);
1080
1435
 
1081
1436
  var maybeToString = function (it) {
1082
1437
  return it === undefined ? it : String(it);
1083
1438
  };
1084
1439
 
1440
+ // IE <= 11 replaces $0 with the whole match, as if it was $&
1441
+ // https://stackoverflow.com/questions/6024666/getting-ie-to-replace-a-regex-with-the-literal-string-0
1442
+ var REPLACE_KEEPS_$0 = (function () {
1443
+ // eslint-disable-next-line regexp/prefer-escape-replacement-dollar-char -- required for testing
1444
+ return 'a'.replace(/./, '$0') === '$0';
1445
+ })();
1446
+
1447
+ // Safari <= 13.0.3(?) substitutes nth capture where n>m with an empty string
1448
+ var REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE = (function () {
1449
+ if (/./[REPLACE]) {
1450
+ return /./[REPLACE]('a', '$0') === '';
1451
+ }
1452
+ return false;
1453
+ })();
1454
+
1455
+ var REPLACE_SUPPORTS_NAMED_GROUPS = !fails(function () {
1456
+ var re = /./;
1457
+ re.exec = function () {
1458
+ var result = [];
1459
+ result.groups = { a: '7' };
1460
+ return result;
1461
+ };
1462
+ // eslint-disable-next-line regexp/no-useless-dollar-replacements -- false positive
1463
+ return ''.replace(re, '$<a>') !== '7';
1464
+ });
1465
+
1085
1466
  // @@replace logic
1086
- fixRegexpWellKnownSymbolLogic('replace', 2, function (REPLACE, nativeReplace, maybeCallNative, reason) {
1087
- var REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE = reason.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE;
1088
- var REPLACE_KEEPS_$0 = reason.REPLACE_KEEPS_$0;
1467
+ fixRegexpWellKnownSymbolLogic('replace', function (_, nativeReplace, maybeCallNative) {
1089
1468
  var UNSAFE_SUBSTITUTE = REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE ? '$' : '$0';
1090
1469
 
1091
1470
  return [
@@ -1093,27 +1472,28 @@ fixRegexpWellKnownSymbolLogic('replace', 2, function (REPLACE, nativeReplace, ma
1093
1472
  // https://tc39.es/ecma262/#sec-string.prototype.replace
1094
1473
  function replace(searchValue, replaceValue) {
1095
1474
  var O = requireObjectCoercible(this);
1096
- var replacer = searchValue == undefined ? undefined : searchValue[REPLACE];
1097
- return replacer !== undefined
1098
- ? replacer.call(searchValue, O, replaceValue)
1099
- : nativeReplace.call(String(O), searchValue, replaceValue);
1475
+ var replacer = searchValue == undefined ? undefined : getMethod(searchValue, REPLACE);
1476
+ return replacer
1477
+ ? functionCall(replacer, searchValue, O, replaceValue)
1478
+ : functionCall(nativeReplace, toString_1(O), searchValue, replaceValue);
1100
1479
  },
1101
1480
  // `RegExp.prototype[@@replace]` method
1102
1481
  // https://tc39.es/ecma262/#sec-regexp.prototype-@@replace
1103
- function (regexp, replaceValue) {
1482
+ function (string, replaceValue) {
1483
+ var rx = anObject(this);
1484
+ var S = toString_1(string);
1485
+
1104
1486
  if (
1105
- (!REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE && REPLACE_KEEPS_$0) ||
1106
- (typeof replaceValue === 'string' && replaceValue.indexOf(UNSAFE_SUBSTITUTE) === -1)
1487
+ typeof replaceValue == 'string' &&
1488
+ stringIndexOf(replaceValue, UNSAFE_SUBSTITUTE) === -1 &&
1489
+ stringIndexOf(replaceValue, '$<') === -1
1107
1490
  ) {
1108
- var res = maybeCallNative(nativeReplace, regexp, this, replaceValue);
1491
+ var res = maybeCallNative(nativeReplace, rx, S, replaceValue);
1109
1492
  if (res.done) return res.value;
1110
1493
  }
1111
1494
 
1112
- var rx = anObject(regexp);
1113
- var S = String(this);
1114
-
1115
- var functionalReplace = typeof replaceValue === 'function';
1116
- if (!functionalReplace) replaceValue = String(replaceValue);
1495
+ var functionalReplace = isCallable(replaceValue);
1496
+ if (!functionalReplace) replaceValue = toString_1(replaceValue);
1117
1497
 
1118
1498
  var global = rx.global;
1119
1499
  if (global) {
@@ -1125,10 +1505,10 @@ fixRegexpWellKnownSymbolLogic('replace', 2, function (REPLACE, nativeReplace, ma
1125
1505
  var result = regexpExecAbstract(rx, S);
1126
1506
  if (result === null) break;
1127
1507
 
1128
- results.push(result);
1508
+ push(results, result);
1129
1509
  if (!global) break;
1130
1510
 
1131
- var matchStr = String(result[0]);
1511
+ var matchStr = toString_1(result[0]);
1132
1512
  if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode);
1133
1513
  }
1134
1514
 
@@ -1137,61 +1517,114 @@ fixRegexpWellKnownSymbolLogic('replace', 2, function (REPLACE, nativeReplace, ma
1137
1517
  for (var i = 0; i < results.length; i++) {
1138
1518
  result = results[i];
1139
1519
 
1140
- var matched = String(result[0]);
1141
- var position = max(min(toInteger(result.index), S.length), 0);
1520
+ var matched = toString_1(result[0]);
1521
+ var position = max(min(toIntegerOrInfinity(result.index), S.length), 0);
1142
1522
  var captures = [];
1143
1523
  // NOTE: This is equivalent to
1144
1524
  // captures = result.slice(1).map(maybeToString)
1145
1525
  // but for some reason `nativeSlice.call(result, 1, result.length)` (called in
1146
1526
  // the slice polyfill when slicing native arrays) "doesn't work" in safari 9 and
1147
1527
  // causes a crash (https://pastebin.com/N21QzeQA) when trying to debug it.
1148
- for (var j = 1; j < result.length; j++) captures.push(maybeToString(result[j]));
1528
+ for (var j = 1; j < result.length; j++) push(captures, maybeToString(result[j]));
1149
1529
  var namedCaptures = result.groups;
1150
1530
  if (functionalReplace) {
1151
- var replacerArgs = [matched].concat(captures, position, S);
1152
- if (namedCaptures !== undefined) replacerArgs.push(namedCaptures);
1153
- var replacement = String(replaceValue.apply(undefined, replacerArgs));
1531
+ var replacerArgs = concat([matched], captures, position, S);
1532
+ if (namedCaptures !== undefined) push(replacerArgs, namedCaptures);
1533
+ var replacement = toString_1(functionApply(replaceValue, undefined, replacerArgs));
1154
1534
  } else {
1155
1535
  replacement = getSubstitution(matched, S, position, captures, namedCaptures, replaceValue);
1156
1536
  }
1157
1537
  if (position >= nextSourcePosition) {
1158
- accumulatedResult += S.slice(nextSourcePosition, position) + replacement;
1538
+ accumulatedResult += stringSlice(S, nextSourcePosition, position) + replacement;
1159
1539
  nextSourcePosition = position + matched.length;
1160
1540
  }
1161
1541
  }
1162
- return accumulatedResult + S.slice(nextSourcePosition);
1542
+ return accumulatedResult + stringSlice(S, nextSourcePosition);
1163
1543
  }
1164
1544
  ];
1165
- });
1545
+ }, !REPLACE_SUPPORTS_NAMED_GROUPS || !REPLACE_KEEPS_$0 || REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE);
1166
1546
 
1167
1547
  // `IsArray` abstract operation
1168
1548
  // https://tc39.es/ecma262/#sec-isarray
1169
1549
  // eslint-disable-next-line es/no-array-isarray -- safe
1170
- var isArray = Array.isArray || function isArray(arg) {
1171
- return classofRaw(arg) == 'Array';
1550
+ var isArray = Array.isArray || function isArray(argument) {
1551
+ return classofRaw(argument) == 'Array';
1172
1552
  };
1173
1553
 
1174
1554
  var createProperty = function (object, key, value) {
1175
- var propertyKey = toPrimitive(key);
1555
+ var propertyKey = toPropertyKey(key);
1176
1556
  if (propertyKey in object) objectDefineProperty.f(object, propertyKey, createPropertyDescriptor(0, value));
1177
1557
  else object[propertyKey] = value;
1178
1558
  };
1179
1559
 
1560
+ var noop = function () { /* empty */ };
1561
+ var empty = [];
1562
+ var construct = getBuiltIn('Reflect', 'construct');
1563
+ var constructorRegExp = /^\s*(?:class|function)\b/;
1564
+ var exec = functionUncurryThis(constructorRegExp.exec);
1565
+ var INCORRECT_TO_STRING = !constructorRegExp.exec(noop);
1566
+
1567
+ var isConstructorModern = function isConstructor(argument) {
1568
+ if (!isCallable(argument)) return false;
1569
+ try {
1570
+ construct(noop, empty, argument);
1571
+ return true;
1572
+ } catch (error) {
1573
+ return false;
1574
+ }
1575
+ };
1576
+
1577
+ var isConstructorLegacy = function isConstructor(argument) {
1578
+ if (!isCallable(argument)) return false;
1579
+ switch (classof(argument)) {
1580
+ case 'AsyncFunction':
1581
+ case 'GeneratorFunction':
1582
+ case 'AsyncGeneratorFunction': return false;
1583
+ }
1584
+ try {
1585
+ // we can't check .prototype since constructors produced by .bind haven't it
1586
+ // `Function#toString` throws on some built-it function in some legacy engines
1587
+ // (for example, `DOMQuad` and similar in FF41-)
1588
+ return INCORRECT_TO_STRING || !!exec(constructorRegExp, inspectSource(argument));
1589
+ } catch (error) {
1590
+ return true;
1591
+ }
1592
+ };
1593
+
1594
+ isConstructorLegacy.sham = true;
1595
+
1596
+ // `IsConstructor` abstract operation
1597
+ // https://tc39.es/ecma262/#sec-isconstructor
1598
+ var isConstructor = !construct || fails(function () {
1599
+ var called;
1600
+ return isConstructorModern(isConstructorModern.call)
1601
+ || !isConstructorModern(Object)
1602
+ || !isConstructorModern(function () { called = true; })
1603
+ || called;
1604
+ }) ? isConstructorLegacy : isConstructorModern;
1605
+
1180
1606
  var SPECIES$1 = wellKnownSymbol('species');
1607
+ var Array$1 = global_1.Array;
1181
1608
 
1182
- // `ArraySpeciesCreate` abstract operation
1609
+ // a part of `ArraySpeciesCreate` abstract operation
1183
1610
  // https://tc39.es/ecma262/#sec-arrayspeciescreate
1184
- var arraySpeciesCreate = function (originalArray, length) {
1611
+ var arraySpeciesConstructor = function (originalArray) {
1185
1612
  var C;
1186
1613
  if (isArray(originalArray)) {
1187
1614
  C = originalArray.constructor;
1188
1615
  // cross-realm fallback
1189
- if (typeof C == 'function' && (C === Array || isArray(C.prototype))) C = undefined;
1616
+ if (isConstructor(C) && (C === Array$1 || isArray(C.prototype))) C = undefined;
1190
1617
  else if (isObject(C)) {
1191
1618
  C = C[SPECIES$1];
1192
1619
  if (C === null) C = undefined;
1193
1620
  }
1194
- } return new (C === undefined ? Array : C)(length === 0 ? 0 : length);
1621
+ } return C === undefined ? Array$1 : C;
1622
+ };
1623
+
1624
+ // `ArraySpeciesCreate` abstract operation
1625
+ // https://tc39.es/ecma262/#sec-arrayspeciescreate
1626
+ var arraySpeciesCreate = function (originalArray, length) {
1627
+ return new (arraySpeciesConstructor(originalArray))(length === 0 ? 0 : length);
1195
1628
  };
1196
1629
 
1197
1630
  var SPECIES = wellKnownSymbol('species');
@@ -1213,6 +1646,7 @@ var arrayMethodHasSpeciesSupport = function (METHOD_NAME) {
1213
1646
  var IS_CONCAT_SPREADABLE = wellKnownSymbol('isConcatSpreadable');
1214
1647
  var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF;
1215
1648
  var MAXIMUM_ALLOWED_INDEX_EXCEEDED = 'Maximum allowed index exceeded';
1649
+ var TypeError$1 = global_1.TypeError;
1216
1650
 
1217
1651
  // We can't use this feature detection in V8 since it causes
1218
1652
  // deoptimization and serious performance degradation
@@ -1246,11 +1680,11 @@ _export({ target: 'Array', proto: true, forced: FORCED }, {
1246
1680
  for (i = -1, length = arguments.length; i < length; i++) {
1247
1681
  E = i === -1 ? O : arguments[i];
1248
1682
  if (isConcatSpreadable(E)) {
1249
- len = toLength(E.length);
1250
- if (n + len > MAX_SAFE_INTEGER) throw TypeError(MAXIMUM_ALLOWED_INDEX_EXCEEDED);
1683
+ len = lengthOfArrayLike(E);
1684
+ if (n + len > MAX_SAFE_INTEGER) throw TypeError$1(MAXIMUM_ALLOWED_INDEX_EXCEEDED);
1251
1685
  for (k = 0; k < len; k++, n++) if (k in E) createProperty(A, n, E[k]);
1252
1686
  } else {
1253
- if (n >= MAX_SAFE_INTEGER) throw TypeError(MAXIMUM_ALLOWED_INDEX_EXCEEDED);
1687
+ if (n >= MAX_SAFE_INTEGER) throw TypeError$1(MAXIMUM_ALLOWED_INDEX_EXCEEDED);
1254
1688
  createProperty(A, n++, E);
1255
1689
  }
1256
1690
  }
@@ -1455,7 +1889,7 @@ function normalizeComponent(template, style, script, scopeId, isFunctionalTempla
1455
1889
  const __vue_script__ = script;
1456
1890
 
1457
1891
  /* template */
1458
- var __vue_render__ = function() {
1892
+ var __vue_render__ = function () {
1459
1893
  var _vm = this;
1460
1894
  var _h = _vm.$createElement;
1461
1895
  var _c = _vm._self._c || _h;
@@ -1493,4 +1927,4 @@ __vue_render__._withStripped = true;
1493
1927
  undefined
1494
1928
  );
1495
1929
 
1496
- export default __vue_component__;
1930
+ export { __vue_component__ as default };