bootstrap-table-rails 1.19.0 → 1.20.1

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