bootstrap-table-rails 1.18.3 → 1.20.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (104) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +4 -4
  3. data/README.md +1 -1
  4. data/bootstrap-table-rails.gemspec +2 -2
  5. data/lib/bootstrap-table-rails/version.rb +1 -1
  6. data/vendor/assets/javascripts/.DS_Store +0 -0
  7. data/vendor/assets/javascripts/bootstrap-table/bootstrap-table-locale-all.js +939 -357
  8. data/vendor/assets/javascripts/bootstrap-table/bootstrap-table-vue.esm.js +947 -392
  9. data/vendor/assets/javascripts/bootstrap-table/bootstrap-table-vue.js +953 -396
  10. data/vendor/assets/javascripts/bootstrap-table/bootstrap-table.css +3 -1
  11. data/vendor/assets/javascripts/bootstrap-table/bootstrap-table.js +3034 -2119
  12. data/vendor/assets/javascripts/bootstrap-table/extensions/addrbar/bootstrap-table-addrbar.js +1017 -430
  13. data/vendor/assets/javascripts/bootstrap-table/extensions/auto-refresh/bootstrap-table-auto-refresh.js +564 -249
  14. data/vendor/assets/javascripts/bootstrap-table/extensions/cookie/bootstrap-table-cookie.js +1488 -961
  15. data/vendor/assets/javascripts/bootstrap-table/extensions/copy-rows/bootstrap-table-copy-rows.js +579 -260
  16. data/vendor/assets/javascripts/bootstrap-table/extensions/custom-view/bootstrap-table-custom-view.js +574 -258
  17. data/vendor/assets/javascripts/bootstrap-table/extensions/defer-url/bootstrap-table-defer-url.js +486 -189
  18. data/vendor/assets/javascripts/bootstrap-table/extensions/editable/bootstrap-table-editable.js +909 -538
  19. data/vendor/assets/javascripts/bootstrap-table/extensions/export/bootstrap-table-export.js +921 -501
  20. data/vendor/assets/javascripts/bootstrap-table/extensions/filter-control/bootstrap-table-filter-control.css +9 -1
  21. data/vendor/assets/javascripts/bootstrap-table/extensions/filter-control/bootstrap-table-filter-control.js +2712 -1132
  22. data/vendor/assets/javascripts/bootstrap-table/extensions/filter-control/utils.js +1326 -747
  23. data/vendor/assets/javascripts/bootstrap-table/extensions/fixed-columns/bootstrap-table-fixed-columns.js +586 -275
  24. data/vendor/assets/javascripts/bootstrap-table/extensions/group-by-v2/bootstrap-table-group-by.js +892 -425
  25. data/vendor/assets/javascripts/bootstrap-table/extensions/i18n-enhance/bootstrap-table-i18n-enhance.js +16 -8
  26. data/vendor/assets/javascripts/bootstrap-table/extensions/key-events/bootstrap-table-key-events.js +670 -357
  27. data/vendor/assets/javascripts/bootstrap-table/extensions/mobile/bootstrap-table-mobile.js +590 -252
  28. data/vendor/assets/javascripts/bootstrap-table/extensions/multiple-sort/bootstrap-table-multiple-sort.js +820 -386
  29. data/vendor/assets/javascripts/bootstrap-table/extensions/page-jump-to/bootstrap-table-page-jump-to.css +5 -2
  30. data/vendor/assets/javascripts/bootstrap-table/extensions/page-jump-to/bootstrap-table-page-jump-to.js +549 -240
  31. data/vendor/assets/javascripts/bootstrap-table/extensions/pipeline/bootstrap-table-pipeline.js +557 -251
  32. data/vendor/assets/javascripts/bootstrap-table/extensions/print/bootstrap-table-print.js +773 -304
  33. data/vendor/assets/javascripts/bootstrap-table/extensions/reorder-columns/bootstrap-table-reorder-columns.js +586 -258
  34. data/vendor/assets/javascripts/bootstrap-table/extensions/reorder-rows/bootstrap-table-reorder-rows.js +547 -205
  35. data/vendor/assets/javascripts/bootstrap-table/extensions/resizable/bootstrap-table-resizable.js +487 -189
  36. data/vendor/assets/javascripts/bootstrap-table/extensions/sticky-header/bootstrap-table-sticky-header.js +559 -247
  37. data/vendor/assets/javascripts/bootstrap-table/extensions/toolbar/bootstrap-table-toolbar.js +901 -551
  38. data/vendor/assets/javascripts/bootstrap-table/extensions/treegrid/bootstrap-table-treegrid.js +600 -245
  39. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-af-ZA.js +472 -183
  40. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ar-SA.js +472 -183
  41. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-bg-BG.js +480 -191
  42. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ca-ES.js +472 -183
  43. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-cs-CZ.js +492 -203
  44. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-da-DK.js +472 -183
  45. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-de-DE.js +472 -183
  46. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-el-GR.js +472 -183
  47. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-en-US.js +472 -183
  48. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-AR.js +472 -183
  49. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-CL.js +472 -183
  50. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-CR.js +472 -183
  51. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-ES.js +472 -183
  52. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-MX.js +490 -200
  53. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-NI.js +472 -183
  54. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-SP.js +472 -183
  55. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-et-EE.js +472 -183
  56. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-eu-EU.js +472 -183
  57. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fa-IR.js +472 -183
  58. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fi-FI.js +472 -183
  59. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fr-BE.js +472 -183
  60. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fr-CH.js +472 -183
  61. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fr-FR.js +472 -183
  62. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fr-LU.js +475 -185
  63. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-he-IL.js +472 -183
  64. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-hi-IN.js +1083 -0
  65. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-hr-HR.js +472 -183
  66. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-hu-HU.js +472 -183
  67. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-id-ID.js +472 -183
  68. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-it-IT.js +472 -183
  69. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ja-JP.js +472 -183
  70. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ka-GE.js +472 -183
  71. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ko-KR.js +497 -207
  72. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-lb-LU.js +1083 -0
  73. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ms-MY.js +472 -183
  74. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-nb-NO.js +472 -183
  75. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-nl-BE.js +511 -183
  76. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-nl-NL.js +511 -183
  77. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-pl-PL.js +472 -183
  78. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-pt-BR.js +472 -183
  79. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-pt-PT.js +472 -183
  80. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ro-RO.js +472 -183
  81. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ru-RU.js +472 -183
  82. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-sk-SK.js +472 -183
  83. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-sr-Cyrl-RS.js +472 -183
  84. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-sr-Latn-RS.js +472 -183
  85. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-sv-SE.js +472 -183
  86. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-th-TH.js +472 -183
  87. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-tr-TR.js +472 -183
  88. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-uk-UA.js +472 -183
  89. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ur-PK.js +472 -183
  90. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-uz-Latn-UZ.js +472 -183
  91. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-vi-VN.js +472 -183
  92. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-zh-CN.js +472 -183
  93. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-zh-TW.js +472 -183
  94. data/vendor/assets/javascripts/bootstrap-table/themes/bootstrap-table/bootstrap-table.css +2 -0
  95. data/vendor/assets/javascripts/bootstrap-table/themes/bootstrap-table/bootstrap-table.js +564 -258
  96. data/vendor/assets/javascripts/bootstrap-table/themes/bulma/bootstrap-table-bulma.css +2 -0
  97. data/vendor/assets/javascripts/bootstrap-table/themes/bulma/bootstrap-table-bulma.js +560 -238
  98. data/vendor/assets/javascripts/bootstrap-table/themes/foundation/bootstrap-table-foundation.css +2 -0
  99. data/vendor/assets/javascripts/bootstrap-table/themes/foundation/bootstrap-table-foundation.js +564 -242
  100. data/vendor/assets/javascripts/bootstrap-table/themes/materialize/bootstrap-table-materialize.css +2 -0
  101. data/vendor/assets/javascripts/bootstrap-table/themes/materialize/bootstrap-table-materialize.js +562 -255
  102. data/vendor/assets/javascripts/bootstrap-table/themes/semantic/bootstrap-table-semantic.css +2 -0
  103. data/vendor/assets/javascripts/bootstrap-table/themes/semantic/bootstrap-table-semantic.js +558 -236
  104. metadata +8 -6
@@ -2,7 +2,7 @@
2
2
  typeof exports === 'object' && typeof module !== 'undefined' ? factory(require('jquery')) :
3
3
  typeof define === 'function' && define.amd ? define(['jquery'], factory) :
4
4
  (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.jQuery));
5
- }(this, (function ($) { 'use strict';
5
+ })(this, (function ($) { 'use strict';
6
6
 
7
7
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
8
8
 
@@ -27,6 +27,9 @@
27
27
  function _createClass(Constructor, protoProps, staticProps) {
28
28
  if (protoProps) _defineProperties(Constructor.prototype, protoProps);
29
29
  if (staticProps) _defineProperties(Constructor, staticProps);
30
+ Object.defineProperty(Constructor, "prototype", {
31
+ writable: false
32
+ });
30
33
  return Constructor;
31
34
  }
32
35
 
@@ -42,6 +45,9 @@
42
45
  configurable: true
43
46
  }
44
47
  });
48
+ Object.defineProperty(subClass, "prototype", {
49
+ writable: false
50
+ });
45
51
  if (superClass) _setPrototypeOf(subClass, superClass);
46
52
  }
47
53
 
@@ -85,6 +91,8 @@
85
91
  function _possibleConstructorReturn(self, call) {
86
92
  if (call && (typeof call === "object" || typeof call === "function")) {
87
93
  return call;
94
+ } else if (call !== void 0) {
95
+ throw new TypeError("Derived constructors may only return object or undefined");
88
96
  }
89
97
 
90
98
  return _assertThisInitialized(self);
@@ -118,7 +126,7 @@
118
126
  return object;
119
127
  }
120
128
 
121
- function _get(target, property, receiver) {
129
+ function _get() {
122
130
  if (typeof Reflect !== "undefined" && Reflect.get) {
123
131
  _get = Reflect.get;
124
132
  } else {
@@ -129,14 +137,14 @@
129
137
  var desc = Object.getOwnPropertyDescriptor(base, property);
130
138
 
131
139
  if (desc.get) {
132
- return desc.get.call(receiver);
140
+ return desc.get.call(arguments.length < 3 ? target : receiver);
133
141
  }
134
142
 
135
143
  return desc.value;
136
144
  };
137
145
  }
138
146
 
139
- return _get(target, property, receiver || target);
147
+ return _get.apply(this, arguments);
140
148
  }
141
149
 
142
150
  function _slicedToArray(arr, i) {
@@ -148,14 +156,17 @@
148
156
  }
149
157
 
150
158
  function _iterableToArrayLimit(arr, i) {
151
- if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return;
159
+ var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
160
+
161
+ if (_i == null) return;
152
162
  var _arr = [];
153
163
  var _n = true;
154
164
  var _d = false;
155
- var _e = undefined;
165
+
166
+ var _s, _e;
156
167
 
157
168
  try {
158
- for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {
169
+ for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
159
170
  _arr.push(_s.value);
160
171
 
161
172
  if (i && _arr.length === i) break;
@@ -196,9 +207,9 @@
196
207
  }
197
208
 
198
209
  function _createForOfIteratorHelper(o, allowArrayLike) {
199
- var it;
210
+ var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
200
211
 
201
- if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) {
212
+ if (!it) {
202
213
  if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
203
214
  if (it) o = it;
204
215
  var i = 0;
@@ -231,7 +242,7 @@
231
242
  err;
232
243
  return {
233
244
  s: function () {
234
- it = o[Symbol.iterator]();
245
+ it = it.call(o);
235
246
  },
236
247
  n: function () {
237
248
  var step = it.next();
@@ -264,9 +275,10 @@
264
275
 
265
276
  // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
266
277
  var global_1 =
267
- /* global globalThis -- safe */
278
+ // eslint-disable-next-line es/no-global-this -- safe
268
279
  check(typeof globalThis == 'object' && globalThis) ||
269
280
  check(typeof window == 'object' && window) ||
281
+ // eslint-disable-next-line no-restricted-globals -- safe
270
282
  check(typeof self == 'object' && self) ||
271
283
  check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
272
284
  // eslint-disable-next-line no-new-func -- fallback
@@ -282,24 +294,38 @@
282
294
 
283
295
  // Detect IE8's incomplete defineProperty implementation
284
296
  var descriptors = !fails(function () {
297
+ // eslint-disable-next-line es/no-object-defineproperty -- required for testing
285
298
  return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
286
299
  });
287
300
 
288
- var nativePropertyIsEnumerable = {}.propertyIsEnumerable;
301
+ var functionBindNative = !fails(function () {
302
+ var test = (function () { /* empty */ }).bind();
303
+ // eslint-disable-next-line no-prototype-builtins -- safe
304
+ return typeof test != 'function' || test.hasOwnProperty('prototype');
305
+ });
306
+
307
+ var call$2 = Function.prototype.call;
308
+
309
+ var functionCall = functionBindNative ? call$2.bind(call$2) : function () {
310
+ return call$2.apply(call$2, arguments);
311
+ };
312
+
313
+ var $propertyIsEnumerable$1 = {}.propertyIsEnumerable;
314
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
289
315
  var getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
290
316
 
291
317
  // Nashorn ~ JDK8 bug
292
- var NASHORN_BUG = getOwnPropertyDescriptor$1 && !nativePropertyIsEnumerable.call({ 1: 2 }, 1);
318
+ var NASHORN_BUG = getOwnPropertyDescriptor$1 && !$propertyIsEnumerable$1.call({ 1: 2 }, 1);
293
319
 
294
320
  // `Object.prototype.propertyIsEnumerable` method implementation
295
321
  // https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
296
- var f$4 = NASHORN_BUG ? function propertyIsEnumerable(V) {
322
+ var f$5 = NASHORN_BUG ? function propertyIsEnumerable(V) {
297
323
  var descriptor = getOwnPropertyDescriptor$1(this, V);
298
324
  return !!descriptor && descriptor.enumerable;
299
- } : nativePropertyIsEnumerable;
325
+ } : $propertyIsEnumerable$1;
300
326
 
301
327
  var objectPropertyIsEnumerable = {
302
- f: f$4
328
+ f: f$5
303
329
  };
304
330
 
305
331
  var createPropertyDescriptor = function (bitmap, value) {
@@ -311,27 +337,44 @@
311
337
  };
312
338
  };
313
339
 
314
- var toString = {}.toString;
340
+ var FunctionPrototype$2 = Function.prototype;
341
+ var bind$1 = FunctionPrototype$2.bind;
342
+ var call$1 = FunctionPrototype$2.call;
343
+ var uncurryThis = functionBindNative && bind$1.bind(call$1, call$1);
344
+
345
+ var functionUncurryThis = functionBindNative ? function (fn) {
346
+ return fn && uncurryThis(fn);
347
+ } : function (fn) {
348
+ return fn && function () {
349
+ return call$1.apply(fn, arguments);
350
+ };
351
+ };
352
+
353
+ var toString$1 = functionUncurryThis({}.toString);
354
+ var stringSlice$4 = functionUncurryThis(''.slice);
315
355
 
316
356
  var classofRaw = function (it) {
317
- return toString.call(it).slice(8, -1);
357
+ return stringSlice$4(toString$1(it), 8, -1);
318
358
  };
319
359
 
320
- var split = ''.split;
360
+ var Object$4 = global_1.Object;
361
+ var split = functionUncurryThis(''.split);
321
362
 
322
363
  // fallback for non-array-like ES3 and non-enumerable old V8 strings
323
364
  var indexedObject = fails(function () {
324
365
  // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
325
366
  // eslint-disable-next-line no-prototype-builtins -- safe
326
- return !Object('z').propertyIsEnumerable(0);
367
+ return !Object$4('z').propertyIsEnumerable(0);
327
368
  }) ? function (it) {
328
- return classofRaw(it) == 'String' ? split.call(it, '') : Object(it);
329
- } : Object;
369
+ return classofRaw(it) == 'String' ? split(it, '') : Object$4(it);
370
+ } : Object$4;
371
+
372
+ var TypeError$9 = global_1.TypeError;
330
373
 
331
374
  // `RequireObjectCoercible` abstract operation
332
375
  // https://tc39.es/ecma262/#sec-requireobjectcoercible
333
376
  var requireObjectCoercible = function (it) {
334
- if (it == undefined) throw TypeError("Can't call method on " + it);
377
+ if (it == undefined) throw TypeError$9("Can't call method on " + it);
335
378
  return it;
336
379
  };
337
380
 
@@ -343,85 +386,309 @@
343
386
  return indexedObject(requireObjectCoercible(it));
344
387
  };
345
388
 
389
+ // `IsCallable` abstract operation
390
+ // https://tc39.es/ecma262/#sec-iscallable
391
+ var isCallable = function (argument) {
392
+ return typeof argument == 'function';
393
+ };
394
+
346
395
  var isObject = function (it) {
347
- return typeof it === 'object' ? it !== null : typeof it === 'function';
396
+ return typeof it == 'object' ? it !== null : isCallable(it);
348
397
  };
349
398
 
350
- // `ToPrimitive` abstract operation
351
- // https://tc39.es/ecma262/#sec-toprimitive
352
- // instead of the ES6 spec version, we didn't implement @@toPrimitive case
353
- // and the second argument - flag - preferred type is a string
354
- var toPrimitive = function (input, PREFERRED_STRING) {
355
- if (!isObject(input)) return input;
399
+ var aFunction = function (argument) {
400
+ return isCallable(argument) ? argument : undefined;
401
+ };
402
+
403
+ var getBuiltIn = function (namespace, method) {
404
+ return arguments.length < 2 ? aFunction(global_1[namespace]) : global_1[namespace] && global_1[namespace][method];
405
+ };
406
+
407
+ var objectIsPrototypeOf = functionUncurryThis({}.isPrototypeOf);
408
+
409
+ var engineUserAgent = getBuiltIn('navigator', 'userAgent') || '';
410
+
411
+ var process = global_1.process;
412
+ var Deno = global_1.Deno;
413
+ var versions = process && process.versions || Deno && Deno.version;
414
+ var v8 = versions && versions.v8;
415
+ var match, version;
416
+
417
+ if (v8) {
418
+ match = v8.split('.');
419
+ // in old Chrome, versions of V8 isn't V8 = Chrome / 10
420
+ // but their correct versions are not interesting for us
421
+ version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);
422
+ }
423
+
424
+ // BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`
425
+ // so check `userAgent` even if `.v8` exists, but 0
426
+ if (!version && engineUserAgent) {
427
+ match = engineUserAgent.match(/Edge\/(\d+)/);
428
+ if (!match || match[1] >= 74) {
429
+ match = engineUserAgent.match(/Chrome\/(\d+)/);
430
+ if (match) version = +match[1];
431
+ }
432
+ }
433
+
434
+ var engineV8Version = version;
435
+
436
+ /* eslint-disable es/no-symbol -- required for testing */
437
+
438
+
439
+
440
+ // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
441
+ var nativeSymbol = !!Object.getOwnPropertySymbols && !fails(function () {
442
+ var symbol = Symbol();
443
+ // Chrome 38 Symbol has incorrect toString conversion
444
+ // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
445
+ return !String(symbol) || !(Object(symbol) instanceof Symbol) ||
446
+ // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
447
+ !Symbol.sham && engineV8Version && engineV8Version < 41;
448
+ });
449
+
450
+ /* eslint-disable es/no-symbol -- required for testing */
451
+
452
+
453
+ var useSymbolAsUid = nativeSymbol
454
+ && !Symbol.sham
455
+ && typeof Symbol.iterator == 'symbol';
456
+
457
+ var Object$3 = global_1.Object;
458
+
459
+ var isSymbol = useSymbolAsUid ? function (it) {
460
+ return typeof it == 'symbol';
461
+ } : function (it) {
462
+ var $Symbol = getBuiltIn('Symbol');
463
+ return isCallable($Symbol) && objectIsPrototypeOf($Symbol.prototype, Object$3(it));
464
+ };
465
+
466
+ var String$3 = global_1.String;
467
+
468
+ var tryToString = function (argument) {
469
+ try {
470
+ return String$3(argument);
471
+ } catch (error) {
472
+ return 'Object';
473
+ }
474
+ };
475
+
476
+ var TypeError$8 = global_1.TypeError;
477
+
478
+ // `Assert: IsCallable(argument) is true`
479
+ var aCallable = function (argument) {
480
+ if (isCallable(argument)) return argument;
481
+ throw TypeError$8(tryToString(argument) + ' is not a function');
482
+ };
483
+
484
+ // `GetMethod` abstract operation
485
+ // https://tc39.es/ecma262/#sec-getmethod
486
+ var getMethod = function (V, P) {
487
+ var func = V[P];
488
+ return func == null ? undefined : aCallable(func);
489
+ };
490
+
491
+ var TypeError$7 = global_1.TypeError;
492
+
493
+ // `OrdinaryToPrimitive` abstract operation
494
+ // https://tc39.es/ecma262/#sec-ordinarytoprimitive
495
+ var ordinaryToPrimitive = function (input, pref) {
356
496
  var fn, val;
357
- if (PREFERRED_STRING && typeof (fn = input.toString) == 'function' && !isObject(val = fn.call(input))) return val;
358
- if (typeof (fn = input.valueOf) == 'function' && !isObject(val = fn.call(input))) return val;
359
- if (!PREFERRED_STRING && typeof (fn = input.toString) == 'function' && !isObject(val = fn.call(input))) return val;
360
- throw TypeError("Can't convert object to primitive value");
497
+ if (pref === 'string' && isCallable(fn = input.toString) && !isObject(val = functionCall(fn, input))) return val;
498
+ if (isCallable(fn = input.valueOf) && !isObject(val = functionCall(fn, input))) return val;
499
+ if (pref !== 'string' && isCallable(fn = input.toString) && !isObject(val = functionCall(fn, input))) return val;
500
+ throw TypeError$7("Can't convert object to primitive value");
501
+ };
502
+
503
+ // eslint-disable-next-line es/no-object-defineproperty -- safe
504
+ var defineProperty = Object.defineProperty;
505
+
506
+ var setGlobal = function (key, value) {
507
+ try {
508
+ defineProperty(global_1, key, { value: value, configurable: true, writable: true });
509
+ } catch (error) {
510
+ global_1[key] = value;
511
+ } return value;
512
+ };
513
+
514
+ var SHARED = '__core-js_shared__';
515
+ var store$1 = global_1[SHARED] || setGlobal(SHARED, {});
516
+
517
+ var sharedStore = store$1;
518
+
519
+ var shared = createCommonjsModule(function (module) {
520
+ (module.exports = function (key, value) {
521
+ return sharedStore[key] || (sharedStore[key] = value !== undefined ? value : {});
522
+ })('versions', []).push({
523
+ version: '3.21.1',
524
+ mode: 'global',
525
+ copyright: '© 2014-2022 Denis Pushkarev (zloirock.ru)',
526
+ license: 'https://github.com/zloirock/core-js/blob/v3.21.1/LICENSE',
527
+ source: 'https://github.com/zloirock/core-js'
528
+ });
529
+ });
530
+
531
+ var Object$2 = global_1.Object;
532
+
533
+ // `ToObject` abstract operation
534
+ // https://tc39.es/ecma262/#sec-toobject
535
+ var toObject = function (argument) {
536
+ return Object$2(requireObjectCoercible(argument));
537
+ };
538
+
539
+ var hasOwnProperty = functionUncurryThis({}.hasOwnProperty);
540
+
541
+ // `HasOwnProperty` abstract operation
542
+ // https://tc39.es/ecma262/#sec-hasownproperty
543
+ var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
544
+ return hasOwnProperty(toObject(it), key);
545
+ };
546
+
547
+ var id = 0;
548
+ var postfix = Math.random();
549
+ var toString = functionUncurryThis(1.0.toString);
550
+
551
+ var uid = function (key) {
552
+ return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36);
553
+ };
554
+
555
+ var WellKnownSymbolsStore = shared('wks');
556
+ var Symbol$1 = global_1.Symbol;
557
+ var symbolFor = Symbol$1 && Symbol$1['for'];
558
+ var createWellKnownSymbol = useSymbolAsUid ? Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid;
559
+
560
+ var wellKnownSymbol = function (name) {
561
+ if (!hasOwnProperty_1(WellKnownSymbolsStore, name) || !(nativeSymbol || typeof WellKnownSymbolsStore[name] == 'string')) {
562
+ var description = 'Symbol.' + name;
563
+ if (nativeSymbol && hasOwnProperty_1(Symbol$1, name)) {
564
+ WellKnownSymbolsStore[name] = Symbol$1[name];
565
+ } else if (useSymbolAsUid && symbolFor) {
566
+ WellKnownSymbolsStore[name] = symbolFor(description);
567
+ } else {
568
+ WellKnownSymbolsStore[name] = createWellKnownSymbol(description);
569
+ }
570
+ } return WellKnownSymbolsStore[name];
361
571
  };
362
572
 
363
- var hasOwnProperty = {}.hasOwnProperty;
573
+ var TypeError$6 = global_1.TypeError;
574
+ var TO_PRIMITIVE = wellKnownSymbol('toPrimitive');
575
+
576
+ // `ToPrimitive` abstract operation
577
+ // https://tc39.es/ecma262/#sec-toprimitive
578
+ var toPrimitive = function (input, pref) {
579
+ if (!isObject(input) || isSymbol(input)) return input;
580
+ var exoticToPrim = getMethod(input, TO_PRIMITIVE);
581
+ var result;
582
+ if (exoticToPrim) {
583
+ if (pref === undefined) pref = 'default';
584
+ result = functionCall(exoticToPrim, input, pref);
585
+ if (!isObject(result) || isSymbol(result)) return result;
586
+ throw TypeError$6("Can't convert object to primitive value");
587
+ }
588
+ if (pref === undefined) pref = 'number';
589
+ return ordinaryToPrimitive(input, pref);
590
+ };
364
591
 
365
- var has$1 = function (it, key) {
366
- return hasOwnProperty.call(it, key);
592
+ // `ToPropertyKey` abstract operation
593
+ // https://tc39.es/ecma262/#sec-topropertykey
594
+ var toPropertyKey = function (argument) {
595
+ var key = toPrimitive(argument, 'string');
596
+ return isSymbol(key) ? key : key + '';
367
597
  };
368
598
 
369
599
  var document$1 = global_1.document;
370
600
  // typeof document.createElement is 'object' in old IE
371
- var EXISTS = isObject(document$1) && isObject(document$1.createElement);
601
+ var EXISTS$1 = isObject(document$1) && isObject(document$1.createElement);
372
602
 
373
603
  var documentCreateElement = function (it) {
374
- return EXISTS ? document$1.createElement(it) : {};
604
+ return EXISTS$1 ? document$1.createElement(it) : {};
375
605
  };
376
606
 
377
- // Thank's IE8 for his funny defineProperty
607
+ // Thanks to IE8 for its funny defineProperty
378
608
  var ie8DomDefine = !descriptors && !fails(function () {
609
+ // eslint-disable-next-line es/no-object-defineproperty -- required for testing
379
610
  return Object.defineProperty(documentCreateElement('div'), 'a', {
380
611
  get: function () { return 7; }
381
612
  }).a != 7;
382
613
  });
383
614
 
384
- var nativeGetOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
615
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
616
+ var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
385
617
 
386
618
  // `Object.getOwnPropertyDescriptor` method
387
619
  // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
388
- var f$3 = descriptors ? nativeGetOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {
620
+ var f$4 = descriptors ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
389
621
  O = toIndexedObject(O);
390
- P = toPrimitive(P, true);
622
+ P = toPropertyKey(P);
391
623
  if (ie8DomDefine) try {
392
- return nativeGetOwnPropertyDescriptor(O, P);
624
+ return $getOwnPropertyDescriptor$1(O, P);
393
625
  } catch (error) { /* empty */ }
394
- if (has$1(O, P)) return createPropertyDescriptor(!objectPropertyIsEnumerable.f.call(O, P), O[P]);
626
+ if (hasOwnProperty_1(O, P)) return createPropertyDescriptor(!functionCall(objectPropertyIsEnumerable.f, O, P), O[P]);
395
627
  };
396
628
 
397
629
  var objectGetOwnPropertyDescriptor = {
398
- f: f$3
630
+ f: f$4
399
631
  };
400
632
 
401
- var anObject = function (it) {
402
- if (!isObject(it)) {
403
- throw TypeError(String(it) + ' is not an object');
404
- } return it;
633
+ // V8 ~ Chrome 36-
634
+ // https://bugs.chromium.org/p/v8/issues/detail?id=3334
635
+ var v8PrototypeDefineBug = descriptors && fails(function () {
636
+ // eslint-disable-next-line es/no-object-defineproperty -- required for testing
637
+ return Object.defineProperty(function () { /* empty */ }, 'prototype', {
638
+ value: 42,
639
+ writable: false
640
+ }).prototype != 42;
641
+ });
642
+
643
+ var String$2 = global_1.String;
644
+ var TypeError$5 = global_1.TypeError;
645
+
646
+ // `Assert: Type(argument) is Object`
647
+ var anObject = function (argument) {
648
+ if (isObject(argument)) return argument;
649
+ throw TypeError$5(String$2(argument) + ' is not an object');
405
650
  };
406
651
 
407
- var nativeDefineProperty = Object.defineProperty;
652
+ var TypeError$4 = global_1.TypeError;
653
+ // eslint-disable-next-line es/no-object-defineproperty -- safe
654
+ var $defineProperty = Object.defineProperty;
655
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
656
+ var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
657
+ var ENUMERABLE = 'enumerable';
658
+ var CONFIGURABLE$1 = 'configurable';
659
+ var WRITABLE = 'writable';
408
660
 
409
661
  // `Object.defineProperty` method
410
662
  // https://tc39.es/ecma262/#sec-object.defineproperty
411
- var f$2 = descriptors ? nativeDefineProperty : function defineProperty(O, P, Attributes) {
663
+ var f$3 = descriptors ? v8PrototypeDefineBug ? function defineProperty(O, P, Attributes) {
664
+ anObject(O);
665
+ P = toPropertyKey(P);
666
+ anObject(Attributes);
667
+ if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
668
+ var current = $getOwnPropertyDescriptor(O, P);
669
+ if (current && current[WRITABLE]) {
670
+ O[P] = Attributes.value;
671
+ Attributes = {
672
+ configurable: CONFIGURABLE$1 in Attributes ? Attributes[CONFIGURABLE$1] : current[CONFIGURABLE$1],
673
+ enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],
674
+ writable: false
675
+ };
676
+ }
677
+ } return $defineProperty(O, P, Attributes);
678
+ } : $defineProperty : function defineProperty(O, P, Attributes) {
412
679
  anObject(O);
413
- P = toPrimitive(P, true);
680
+ P = toPropertyKey(P);
414
681
  anObject(Attributes);
415
682
  if (ie8DomDefine) try {
416
- return nativeDefineProperty(O, P, Attributes);
683
+ return $defineProperty(O, P, Attributes);
417
684
  } catch (error) { /* empty */ }
418
- if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported');
685
+ if ('get' in Attributes || 'set' in Attributes) throw TypeError$4('Accessors not supported');
419
686
  if ('value' in Attributes) O[P] = Attributes.value;
420
687
  return O;
421
688
  };
422
689
 
423
690
  var objectDefineProperty = {
424
- f: f$2
691
+ f: f$3
425
692
  };
426
693
 
427
694
  var createNonEnumerableProperty = descriptors ? function (object, key, value) {
@@ -431,25 +698,12 @@
431
698
  return object;
432
699
  };
433
700
 
434
- var setGlobal = function (key, value) {
435
- try {
436
- createNonEnumerableProperty(global_1, key, value);
437
- } catch (error) {
438
- global_1[key] = value;
439
- } return value;
440
- };
441
-
442
- var SHARED = '__core-js_shared__';
443
- var store$1 = global_1[SHARED] || setGlobal(SHARED, {});
444
-
445
- var sharedStore = store$1;
446
-
447
- var functionToString = Function.toString;
701
+ var functionToString = functionUncurryThis(Function.toString);
448
702
 
449
- // this helper broken in `3.4.1-3.4.4`, so we can't use `shared` helper
450
- if (typeof sharedStore.inspectSource != 'function') {
703
+ // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
704
+ if (!isCallable(sharedStore.inspectSource)) {
451
705
  sharedStore.inspectSource = function (it) {
452
- return functionToString.call(it);
706
+ return functionToString(it);
453
707
  };
454
708
  }
455
709
 
@@ -457,24 +711,7 @@
457
711
 
458
712
  var WeakMap$1 = global_1.WeakMap;
459
713
 
460
- var nativeWeakMap = typeof WeakMap$1 === 'function' && /native code/.test(inspectSource(WeakMap$1));
461
-
462
- var shared = createCommonjsModule(function (module) {
463
- (module.exports = function (key, value) {
464
- return sharedStore[key] || (sharedStore[key] = value !== undefined ? value : {});
465
- })('versions', []).push({
466
- version: '3.9.1',
467
- mode: 'global',
468
- copyright: '© 2021 Denis Pushkarev (zloirock.ru)'
469
- });
470
- });
471
-
472
- var id = 0;
473
- var postfix = Math.random();
474
-
475
- var uid = function (key) {
476
- return 'Symbol(' + String(key === undefined ? '' : key) + ')_' + (++id + postfix).toString(36);
477
- };
714
+ var nativeWeakMap = isCallable(WeakMap$1) && /native code/.test(inspectSource(WeakMap$1));
478
715
 
479
716
  var keys = shared('keys');
480
717
 
@@ -484,6 +721,8 @@
484
721
 
485
722
  var hiddenKeys$1 = {};
486
723
 
724
+ var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
725
+ var TypeError$3 = global_1.TypeError;
487
726
  var WeakMap = global_1.WeakMap;
488
727
  var set, get, has;
489
728
 
@@ -495,40 +734,42 @@
495
734
  return function (it) {
496
735
  var state;
497
736
  if (!isObject(it) || (state = get(it)).type !== TYPE) {
498
- throw TypeError('Incompatible receiver, ' + TYPE + ' required');
737
+ throw TypeError$3('Incompatible receiver, ' + TYPE + ' required');
499
738
  } return state;
500
739
  };
501
740
  };
502
741
 
503
- if (nativeWeakMap) {
742
+ if (nativeWeakMap || sharedStore.state) {
504
743
  var store = sharedStore.state || (sharedStore.state = new WeakMap());
505
- var wmget = store.get;
506
- var wmhas = store.has;
507
- var wmset = store.set;
744
+ var wmget = functionUncurryThis(store.get);
745
+ var wmhas = functionUncurryThis(store.has);
746
+ var wmset = functionUncurryThis(store.set);
508
747
  set = function (it, metadata) {
748
+ if (wmhas(store, it)) throw new TypeError$3(OBJECT_ALREADY_INITIALIZED);
509
749
  metadata.facade = it;
510
- wmset.call(store, it, metadata);
750
+ wmset(store, it, metadata);
511
751
  return metadata;
512
752
  };
513
753
  get = function (it) {
514
- return wmget.call(store, it) || {};
754
+ return wmget(store, it) || {};
515
755
  };
516
756
  has = function (it) {
517
- return wmhas.call(store, it);
757
+ return wmhas(store, it);
518
758
  };
519
759
  } else {
520
760
  var STATE = sharedKey('state');
521
761
  hiddenKeys$1[STATE] = true;
522
762
  set = function (it, metadata) {
763
+ if (hasOwnProperty_1(it, STATE)) throw new TypeError$3(OBJECT_ALREADY_INITIALIZED);
523
764
  metadata.facade = it;
524
765
  createNonEnumerableProperty(it, STATE, metadata);
525
766
  return metadata;
526
767
  };
527
768
  get = function (it) {
528
- return has$1(it, STATE) ? it[STATE] : {};
769
+ return hasOwnProperty_1(it, STATE) ? it[STATE] : {};
529
770
  };
530
771
  has = function (it) {
531
- return has$1(it, STATE);
772
+ return hasOwnProperty_1(it, STATE);
532
773
  };
533
774
  }
534
775
 
@@ -540,7 +781,24 @@
540
781
  getterFor: getterFor
541
782
  };
542
783
 
784
+ var FunctionPrototype$1 = Function.prototype;
785
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
786
+ var getDescriptor = descriptors && Object.getOwnPropertyDescriptor;
787
+
788
+ var EXISTS = hasOwnProperty_1(FunctionPrototype$1, 'name');
789
+ // additional protection from minified / mangled / dropped function names
790
+ var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
791
+ var CONFIGURABLE = EXISTS && (!descriptors || (descriptors && getDescriptor(FunctionPrototype$1, 'name').configurable));
792
+
793
+ var functionName = {
794
+ EXISTS: EXISTS,
795
+ PROPER: PROPER,
796
+ CONFIGURABLE: CONFIGURABLE
797
+ };
798
+
543
799
  var redefine = createCommonjsModule(function (module) {
800
+ var CONFIGURABLE_FUNCTION_NAME = functionName.CONFIGURABLE;
801
+
544
802
  var getInternalState = internalState.get;
545
803
  var enforceInternalState = internalState.enforce;
546
804
  var TEMPLATE = String(String).split('String');
@@ -549,14 +807,18 @@
549
807
  var unsafe = options ? !!options.unsafe : false;
550
808
  var simple = options ? !!options.enumerable : false;
551
809
  var noTargetGet = options ? !!options.noTargetGet : false;
810
+ var name = options && options.name !== undefined ? options.name : key;
552
811
  var state;
553
- if (typeof value == 'function') {
554
- if (typeof key == 'string' && !has$1(value, 'name')) {
555
- createNonEnumerableProperty(value, 'name', key);
812
+ if (isCallable(value)) {
813
+ if (String(name).slice(0, 7) === 'Symbol(') {
814
+ name = '[' + String(name).replace(/^Symbol\(([^)]*)\)/, '$1') + ']';
815
+ }
816
+ if (!hasOwnProperty_1(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {
817
+ createNonEnumerableProperty(value, 'name', name);
556
818
  }
557
819
  state = enforceInternalState(value);
558
820
  if (!state.source) {
559
- state.source = TEMPLATE.join(typeof key == 'string' ? key : '');
821
+ state.source = TEMPLATE.join(typeof name == 'string' ? name : '');
560
822
  }
561
823
  }
562
824
  if (O === global_1) {
@@ -572,54 +834,51 @@
572
834
  else createNonEnumerableProperty(O, key, value);
573
835
  // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
574
836
  })(Function.prototype, 'toString', function toString() {
575
- return typeof this == 'function' && getInternalState(this).source || inspectSource(this);
837
+ return isCallable(this) && getInternalState(this).source || inspectSource(this);
576
838
  });
577
839
  });
578
840
 
579
- var path = global_1;
580
-
581
- var aFunction$1 = function (variable) {
582
- return typeof variable == 'function' ? variable : undefined;
583
- };
584
-
585
- var getBuiltIn = function (namespace, method) {
586
- return arguments.length < 2 ? aFunction$1(path[namespace]) || aFunction$1(global_1[namespace])
587
- : path[namespace] && path[namespace][method] || global_1[namespace] && global_1[namespace][method];
588
- };
589
-
590
841
  var ceil = Math.ceil;
591
842
  var floor$1 = Math.floor;
592
843
 
593
- // `ToInteger` abstract operation
594
- // https://tc39.es/ecma262/#sec-tointeger
595
- var toInteger = function (argument) {
596
- return isNaN(argument = +argument) ? 0 : (argument > 0 ? floor$1 : ceil)(argument);
844
+ // `ToIntegerOrInfinity` abstract operation
845
+ // https://tc39.es/ecma262/#sec-tointegerorinfinity
846
+ var toIntegerOrInfinity = function (argument) {
847
+ var number = +argument;
848
+ // eslint-disable-next-line no-self-compare -- safe
849
+ return number !== number || number === 0 ? 0 : (number > 0 ? floor$1 : ceil)(number);
597
850
  };
598
851
 
852
+ var max$1 = Math.max;
599
853
  var min$2 = Math.min;
600
854
 
855
+ // Helper for a popular repeating case of the spec:
856
+ // Let integer be ? ToInteger(index).
857
+ // If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
858
+ var toAbsoluteIndex = function (index, length) {
859
+ var integer = toIntegerOrInfinity(index);
860
+ return integer < 0 ? max$1(integer + length, 0) : min$2(integer, length);
861
+ };
862
+
863
+ var min$1 = Math.min;
864
+
601
865
  // `ToLength` abstract operation
602
866
  // https://tc39.es/ecma262/#sec-tolength
603
867
  var toLength = function (argument) {
604
- return argument > 0 ? min$2(toInteger(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
868
+ return argument > 0 ? min$1(toIntegerOrInfinity(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
605
869
  };
606
870
 
607
- var max$1 = Math.max;
608
- var min$1 = Math.min;
609
-
610
- // Helper for a popular repeating case of the spec:
611
- // Let integer be ? ToInteger(index).
612
- // If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
613
- var toAbsoluteIndex = function (index, length) {
614
- var integer = toInteger(index);
615
- return integer < 0 ? max$1(integer + length, 0) : min$1(integer, length);
871
+ // `LengthOfArrayLike` abstract operation
872
+ // https://tc39.es/ecma262/#sec-lengthofarraylike
873
+ var lengthOfArrayLike = function (obj) {
874
+ return toLength(obj.length);
616
875
  };
617
876
 
618
877
  // `Array.prototype.{ indexOf, includes }` methods implementation
619
878
  var createMethod$3 = function (IS_INCLUDES) {
620
879
  return function ($this, el, fromIndex) {
621
880
  var O = toIndexedObject($this);
622
- var length = toLength(O.length);
881
+ var length = lengthOfArrayLike(O);
623
882
  var index = toAbsoluteIndex(fromIndex, length);
624
883
  var value;
625
884
  // Array#includes uses SameValueZero equality algorithm
@@ -644,18 +903,20 @@
644
903
  indexOf: createMethod$3(false)
645
904
  };
646
905
 
647
- var indexOf = arrayIncludes.indexOf;
906
+ var indexOf$1 = arrayIncludes.indexOf;
907
+
648
908
 
909
+ var push$3 = functionUncurryThis([].push);
649
910
 
650
911
  var objectKeysInternal = function (object, names) {
651
912
  var O = toIndexedObject(object);
652
913
  var i = 0;
653
914
  var result = [];
654
915
  var key;
655
- for (key in O) !has$1(hiddenKeys$1, key) && has$1(O, key) && result.push(key);
916
+ for (key in O) !hasOwnProperty_1(hiddenKeys$1, key) && hasOwnProperty_1(O, key) && push$3(result, key);
656
917
  // Don't enum bug & hidden keys
657
- while (names.length > i) if (has$1(O, key = names[i++])) {
658
- ~indexOf(result, key) || result.push(key);
918
+ while (names.length > i) if (hasOwnProperty_1(O, key = names[i++])) {
919
+ ~indexOf$1(result, key) || push$3(result, key);
659
920
  }
660
921
  return result;
661
922
  };
@@ -675,34 +936,40 @@
675
936
 
676
937
  // `Object.getOwnPropertyNames` method
677
938
  // https://tc39.es/ecma262/#sec-object.getownpropertynames
678
- var f$1 = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
939
+ // eslint-disable-next-line es/no-object-getownpropertynames -- safe
940
+ var f$2 = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
679
941
  return objectKeysInternal(O, hiddenKeys);
680
942
  };
681
943
 
682
944
  var objectGetOwnPropertyNames = {
683
- f: f$1
945
+ f: f$2
684
946
  };
685
947
 
686
- var f = Object.getOwnPropertySymbols;
948
+ // eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
949
+ var f$1 = Object.getOwnPropertySymbols;
687
950
 
688
951
  var objectGetOwnPropertySymbols = {
689
- f: f
952
+ f: f$1
690
953
  };
691
954
 
955
+ var concat$1 = functionUncurryThis([].concat);
956
+
692
957
  // all object keys, includes non-enumerable and symbols
693
958
  var ownKeys = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {
694
959
  var keys = objectGetOwnPropertyNames.f(anObject(it));
695
960
  var getOwnPropertySymbols = objectGetOwnPropertySymbols.f;
696
- return getOwnPropertySymbols ? keys.concat(getOwnPropertySymbols(it)) : keys;
961
+ return getOwnPropertySymbols ? concat$1(keys, getOwnPropertySymbols(it)) : keys;
697
962
  };
698
963
 
699
- var copyConstructorProperties = function (target, source) {
964
+ var copyConstructorProperties = function (target, source, exceptions) {
700
965
  var keys = ownKeys(source);
701
966
  var defineProperty = objectDefineProperty.f;
702
967
  var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
703
968
  for (var i = 0; i < keys.length; i++) {
704
969
  var key = keys[i];
705
- if (!has$1(target, key)) defineProperty(target, key, getOwnPropertyDescriptor(source, key));
970
+ if (!hasOwnProperty_1(target, key) && !(exceptions && hasOwnProperty_1(exceptions, key))) {
971
+ defineProperty(target, key, getOwnPropertyDescriptor(source, key));
972
+ }
706
973
  }
707
974
  };
708
975
 
@@ -712,7 +979,7 @@
712
979
  var value = data[normalize(feature)];
713
980
  return value == POLYFILL ? true
714
981
  : value == NATIVE ? false
715
- : typeof detection == 'function' ? fails(detection)
982
+ : isCallable(detection) ? fails(detection)
716
983
  : !!detection;
717
984
  };
718
985
 
@@ -746,6 +1013,7 @@
746
1013
  options.sham - add a flag to not completely full polyfills
747
1014
  options.enumerable - export as enumerable property
748
1015
  options.noTargetGet - prevent calling a getter on target
1016
+ options.name - the .name of the function if it does not match the key
749
1017
  */
750
1018
  var _export = function (options, source) {
751
1019
  var TARGET = options.target;
@@ -768,7 +1036,7 @@
768
1036
  FORCED = isForced_1(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
769
1037
  // contained in target
770
1038
  if (!FORCED && targetProperty !== undefined) {
771
- if (typeof sourceProperty === typeof targetProperty) continue;
1039
+ if (typeof sourceProperty == typeof targetProperty) continue;
772
1040
  copyConstructorProperties(sourceProperty, targetProperty);
773
1041
  }
774
1042
  // add a flag to not completely full polyfills
@@ -780,6 +1048,45 @@
780
1048
  }
781
1049
  };
782
1050
 
1051
+ var TO_STRING_TAG$1 = wellKnownSymbol('toStringTag');
1052
+ var test = {};
1053
+
1054
+ test[TO_STRING_TAG$1] = 'z';
1055
+
1056
+ var toStringTagSupport = String(test) === '[object z]';
1057
+
1058
+ var TO_STRING_TAG = wellKnownSymbol('toStringTag');
1059
+ var Object$1 = global_1.Object;
1060
+
1061
+ // ES3 wrong here
1062
+ var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments';
1063
+
1064
+ // fallback for IE11 Script Access Denied error
1065
+ var tryGet = function (it, key) {
1066
+ try {
1067
+ return it[key];
1068
+ } catch (error) { /* empty */ }
1069
+ };
1070
+
1071
+ // getting tag from ES6+ `Object.prototype.toString`
1072
+ var classof = toStringTagSupport ? classofRaw : function (it) {
1073
+ var O, tag, result;
1074
+ return it === undefined ? 'Undefined' : it === null ? 'Null'
1075
+ // @@toStringTag case
1076
+ : typeof (tag = tryGet(O = Object$1(it), TO_STRING_TAG)) == 'string' ? tag
1077
+ // builtinTag case
1078
+ : CORRECT_ARGUMENTS ? classofRaw(O)
1079
+ // ES3 arguments fallback
1080
+ : (result = classofRaw(O)) == 'Object' && isCallable(O.callee) ? 'Arguments' : result;
1081
+ };
1082
+
1083
+ var String$1 = global_1.String;
1084
+
1085
+ var toString_1 = function (argument) {
1086
+ if (classof(argument) === 'Symbol') throw TypeError('Cannot convert a Symbol value to a string');
1087
+ return String$1(argument);
1088
+ };
1089
+
783
1090
  // `RegExp.prototype.flags` getter implementation
784
1091
  // https://tc39.es/ecma262/#sec-get-regexp.prototype.flags
785
1092
  var regexpFlags = function () {
@@ -794,81 +1101,235 @@
794
1101
  return result;
795
1102
  };
796
1103
 
797
- // babel-minify transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError,
798
- // so we use an intermediate function.
799
- function RE(s, f) {
800
- return RegExp(s, f);
801
- }
1104
+ // babel-minify and Closure Compiler transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError
1105
+ var $RegExp$2 = global_1.RegExp;
802
1106
 
803
1107
  var UNSUPPORTED_Y$1 = fails(function () {
804
- // babel-minify transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError
805
- var re = RE('a', 'y');
1108
+ var re = $RegExp$2('a', 'y');
806
1109
  re.lastIndex = 2;
807
1110
  return re.exec('abcd') != null;
808
1111
  });
809
1112
 
810
- var BROKEN_CARET = fails(function () {
1113
+ // UC Browser bug
1114
+ // https://github.com/zloirock/core-js/issues/1008
1115
+ var MISSED_STICKY = UNSUPPORTED_Y$1 || fails(function () {
1116
+ return !$RegExp$2('a', 'y').sticky;
1117
+ });
1118
+
1119
+ var BROKEN_CARET = UNSUPPORTED_Y$1 || fails(function () {
811
1120
  // https://bugzilla.mozilla.org/show_bug.cgi?id=773687
812
- var re = RE('^r', 'gy');
1121
+ var re = $RegExp$2('^r', 'gy');
813
1122
  re.lastIndex = 2;
814
1123
  return re.exec('str') != null;
815
1124
  });
816
1125
 
817
1126
  var regexpStickyHelpers = {
818
- UNSUPPORTED_Y: UNSUPPORTED_Y$1,
819
- BROKEN_CARET: BROKEN_CARET
1127
+ BROKEN_CARET: BROKEN_CARET,
1128
+ MISSED_STICKY: MISSED_STICKY,
1129
+ UNSUPPORTED_Y: UNSUPPORTED_Y$1
820
1130
  };
821
1131
 
822
- var nativeExec = RegExp.prototype.exec;
823
- // This always refers to the native implementation, because the
824
- // String#replace polyfill uses ./fix-regexp-well-known-symbol-logic.js,
825
- // which loads this file before patching the method.
826
- var nativeReplace = String.prototype.replace;
1132
+ // `Object.keys` method
1133
+ // https://tc39.es/ecma262/#sec-object.keys
1134
+ // eslint-disable-next-line es/no-object-keys -- safe
1135
+ var objectKeys = Object.keys || function keys(O) {
1136
+ return objectKeysInternal(O, enumBugKeys);
1137
+ };
827
1138
 
828
- var patchedExec = nativeExec;
1139
+ // `Object.defineProperties` method
1140
+ // https://tc39.es/ecma262/#sec-object.defineproperties
1141
+ // eslint-disable-next-line es/no-object-defineproperties -- safe
1142
+ var f = descriptors && !v8PrototypeDefineBug ? Object.defineProperties : function defineProperties(O, Properties) {
1143
+ anObject(O);
1144
+ var props = toIndexedObject(Properties);
1145
+ var keys = objectKeys(Properties);
1146
+ var length = keys.length;
1147
+ var index = 0;
1148
+ var key;
1149
+ while (length > index) objectDefineProperty.f(O, key = keys[index++], props[key]);
1150
+ return O;
1151
+ };
829
1152
 
830
- var UPDATES_LAST_INDEX_WRONG = (function () {
831
- var re1 = /a/;
832
- var re2 = /b*/g;
833
- nativeExec.call(re1, 'a');
834
- nativeExec.call(re2, 'a');
835
- return re1.lastIndex !== 0 || re2.lastIndex !== 0;
836
- })();
1153
+ var objectDefineProperties = {
1154
+ f: f
1155
+ };
837
1156
 
838
- var UNSUPPORTED_Y = regexpStickyHelpers.UNSUPPORTED_Y || regexpStickyHelpers.BROKEN_CARET;
1157
+ var html = getBuiltIn('document', 'documentElement');
839
1158
 
840
- // nonparticipating capturing group, copied from es5-shim's String#split patch.
841
- // eslint-disable-next-line regexp/no-assertion-capturing-group, regexp/no-empty-group -- required for testing
842
- var NPCG_INCLUDED = /()??/.exec('')[1] !== undefined;
1159
+ /* global ActiveXObject -- old IE, WSH */
843
1160
 
844
- var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED || UNSUPPORTED_Y;
845
1161
 
846
- if (PATCH) {
847
- patchedExec = function exec(str) {
848
- var re = this;
849
- var lastIndex, reCopy, match, i;
850
- var sticky = UNSUPPORTED_Y && re.sticky;
851
- var flags = regexpFlags.call(re);
852
- var source = re.source;
853
- var charsAdded = 0;
854
- var strCopy = str;
855
1162
 
856
- if (sticky) {
857
- flags = flags.replace('y', '');
858
- if (flags.indexOf('g') === -1) {
859
- flags += 'g';
860
- }
861
1163
 
862
- strCopy = String(str).slice(re.lastIndex);
863
- // Support anchored sticky behavior.
864
- if (re.lastIndex > 0 && (!re.multiline || re.multiline && str[re.lastIndex - 1] !== '\n')) {
865
- source = '(?: ' + source + ')';
866
- strCopy = ' ' + strCopy;
867
- charsAdded++;
868
- }
869
- // ^(? + rx + ) is needed, in combination with some str slicing, to
870
- // simulate the 'y' flag.
871
- reCopy = new RegExp('^(?:' + source + ')', flags);
1164
+
1165
+
1166
+
1167
+
1168
+ var GT = '>';
1169
+ var LT = '<';
1170
+ var PROTOTYPE = 'prototype';
1171
+ var SCRIPT = 'script';
1172
+ var IE_PROTO = sharedKey('IE_PROTO');
1173
+
1174
+ var EmptyConstructor = function () { /* empty */ };
1175
+
1176
+ var scriptTag = function (content) {
1177
+ return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;
1178
+ };
1179
+
1180
+ // Create object with fake `null` prototype: use ActiveX Object with cleared prototype
1181
+ var NullProtoObjectViaActiveX = function (activeXDocument) {
1182
+ activeXDocument.write(scriptTag(''));
1183
+ activeXDocument.close();
1184
+ var temp = activeXDocument.parentWindow.Object;
1185
+ activeXDocument = null; // avoid memory leak
1186
+ return temp;
1187
+ };
1188
+
1189
+ // Create object with fake `null` prototype: use iframe Object with cleared prototype
1190
+ var NullProtoObjectViaIFrame = function () {
1191
+ // Thrash, waste and sodomy: IE GC bug
1192
+ var iframe = documentCreateElement('iframe');
1193
+ var JS = 'java' + SCRIPT + ':';
1194
+ var iframeDocument;
1195
+ iframe.style.display = 'none';
1196
+ html.appendChild(iframe);
1197
+ // https://github.com/zloirock/core-js/issues/475
1198
+ iframe.src = String(JS);
1199
+ iframeDocument = iframe.contentWindow.document;
1200
+ iframeDocument.open();
1201
+ iframeDocument.write(scriptTag('document.F=Object'));
1202
+ iframeDocument.close();
1203
+ return iframeDocument.F;
1204
+ };
1205
+
1206
+ // Check for document.domain and active x support
1207
+ // No need to use active x approach when document.domain is not set
1208
+ // see https://github.com/es-shims/es5-shim/issues/150
1209
+ // variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346
1210
+ // avoid IE GC bug
1211
+ var activeXDocument;
1212
+ var NullProtoObject = function () {
1213
+ try {
1214
+ activeXDocument = new ActiveXObject('htmlfile');
1215
+ } catch (error) { /* ignore */ }
1216
+ NullProtoObject = typeof document != 'undefined'
1217
+ ? document.domain && activeXDocument
1218
+ ? NullProtoObjectViaActiveX(activeXDocument) // old IE
1219
+ : NullProtoObjectViaIFrame()
1220
+ : NullProtoObjectViaActiveX(activeXDocument); // WSH
1221
+ var length = enumBugKeys.length;
1222
+ while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];
1223
+ return NullProtoObject();
1224
+ };
1225
+
1226
+ hiddenKeys$1[IE_PROTO] = true;
1227
+
1228
+ // `Object.create` method
1229
+ // https://tc39.es/ecma262/#sec-object.create
1230
+ var objectCreate = Object.create || function create(O, Properties) {
1231
+ var result;
1232
+ if (O !== null) {
1233
+ EmptyConstructor[PROTOTYPE] = anObject(O);
1234
+ result = new EmptyConstructor();
1235
+ EmptyConstructor[PROTOTYPE] = null;
1236
+ // add "__proto__" for Object.getPrototypeOf polyfill
1237
+ result[IE_PROTO] = O;
1238
+ } else result = NullProtoObject();
1239
+ return Properties === undefined ? result : objectDefineProperties.f(result, Properties);
1240
+ };
1241
+
1242
+ // babel-minify and Closure Compiler transpiles RegExp('.', 's') -> /./s and it causes SyntaxError
1243
+ var $RegExp$1 = global_1.RegExp;
1244
+
1245
+ var regexpUnsupportedDotAll = fails(function () {
1246
+ var re = $RegExp$1('.', 's');
1247
+ return !(re.dotAll && re.exec('\n') && re.flags === 's');
1248
+ });
1249
+
1250
+ // babel-minify and Closure Compiler transpiles RegExp('(?<a>b)', 'g') -> /(?<a>b)/g and it causes SyntaxError
1251
+ var $RegExp = global_1.RegExp;
1252
+
1253
+ var regexpUnsupportedNcg = fails(function () {
1254
+ var re = $RegExp('(?<a>b)', 'g');
1255
+ return re.exec('b').groups.a !== 'b' ||
1256
+ 'b'.replace(re, '$<a>c') !== 'bc';
1257
+ });
1258
+
1259
+ /* eslint-disable regexp/no-empty-capturing-group, regexp/no-empty-group, regexp/no-lazy-ends -- testing */
1260
+ /* eslint-disable regexp/no-useless-quantifier -- testing */
1261
+
1262
+
1263
+
1264
+
1265
+
1266
+
1267
+
1268
+ var getInternalState = internalState.get;
1269
+
1270
+
1271
+
1272
+ var nativeReplace = shared('native-string-replace', String.prototype.replace);
1273
+ var nativeExec = RegExp.prototype.exec;
1274
+ var patchedExec = nativeExec;
1275
+ var charAt$3 = functionUncurryThis(''.charAt);
1276
+ var indexOf = functionUncurryThis(''.indexOf);
1277
+ var replace$1 = functionUncurryThis(''.replace);
1278
+ var stringSlice$3 = functionUncurryThis(''.slice);
1279
+
1280
+ var UPDATES_LAST_INDEX_WRONG = (function () {
1281
+ var re1 = /a/;
1282
+ var re2 = /b*/g;
1283
+ functionCall(nativeExec, re1, 'a');
1284
+ functionCall(nativeExec, re2, 'a');
1285
+ return re1.lastIndex !== 0 || re2.lastIndex !== 0;
1286
+ })();
1287
+
1288
+ var UNSUPPORTED_Y = regexpStickyHelpers.BROKEN_CARET;
1289
+
1290
+ // nonparticipating capturing group, copied from es5-shim's String#split patch.
1291
+ var NPCG_INCLUDED = /()??/.exec('')[1] !== undefined;
1292
+
1293
+ var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED || UNSUPPORTED_Y || regexpUnsupportedDotAll || regexpUnsupportedNcg;
1294
+
1295
+ if (PATCH) {
1296
+ patchedExec = function exec(string) {
1297
+ var re = this;
1298
+ var state = getInternalState(re);
1299
+ var str = toString_1(string);
1300
+ var raw = state.raw;
1301
+ var result, reCopy, lastIndex, match, i, object, group;
1302
+
1303
+ if (raw) {
1304
+ raw.lastIndex = re.lastIndex;
1305
+ result = functionCall(patchedExec, raw, str);
1306
+ re.lastIndex = raw.lastIndex;
1307
+ return result;
1308
+ }
1309
+
1310
+ var groups = state.groups;
1311
+ var sticky = UNSUPPORTED_Y && re.sticky;
1312
+ var flags = functionCall(regexpFlags, re);
1313
+ var source = re.source;
1314
+ var charsAdded = 0;
1315
+ var strCopy = str;
1316
+
1317
+ if (sticky) {
1318
+ flags = replace$1(flags, 'y', '');
1319
+ if (indexOf(flags, 'g') === -1) {
1320
+ flags += 'g';
1321
+ }
1322
+
1323
+ strCopy = stringSlice$3(str, re.lastIndex);
1324
+ // Support anchored sticky behavior.
1325
+ if (re.lastIndex > 0 && (!re.multiline || re.multiline && charAt$3(str, re.lastIndex - 1) !== '\n')) {
1326
+ source = '(?: ' + source + ')';
1327
+ strCopy = ' ' + strCopy;
1328
+ charsAdded++;
1329
+ }
1330
+ // ^(? + rx + ) is needed, in combination with some str slicing, to
1331
+ // simulate the 'y' flag.
1332
+ reCopy = new RegExp('^(?:' + source + ')', flags);
872
1333
  }
873
1334
 
874
1335
  if (NPCG_INCLUDED) {
@@ -876,12 +1337,12 @@
876
1337
  }
877
1338
  if (UPDATES_LAST_INDEX_WRONG) lastIndex = re.lastIndex;
878
1339
 
879
- match = nativeExec.call(sticky ? reCopy : re, strCopy);
1340
+ match = functionCall(nativeExec, sticky ? reCopy : re, strCopy);
880
1341
 
881
1342
  if (sticky) {
882
1343
  if (match) {
883
- match.input = match.input.slice(charsAdded);
884
- match[0] = match[0].slice(charsAdded);
1344
+ match.input = stringSlice$3(match.input, charsAdded);
1345
+ match[0] = stringSlice$3(match[0], charsAdded);
885
1346
  match.index = re.lastIndex;
886
1347
  re.lastIndex += match[0].length;
887
1348
  } else re.lastIndex = 0;
@@ -891,13 +1352,21 @@
891
1352
  if (NPCG_INCLUDED && match && match.length > 1) {
892
1353
  // Fix browsers whose `exec` methods don't consistently return `undefined`
893
1354
  // for NPCG, like IE8. NOTE: This doesn' work for /(.?)?/
894
- nativeReplace.call(match[0], reCopy, function () {
1355
+ functionCall(nativeReplace, match[0], reCopy, function () {
895
1356
  for (i = 1; i < arguments.length - 2; i++) {
896
1357
  if (arguments[i] === undefined) match[i] = undefined;
897
1358
  }
898
1359
  });
899
1360
  }
900
1361
 
1362
+ if (match && groups) {
1363
+ match.groups = object = objectCreate(null);
1364
+ for (i = 0; i < groups.length; i++) {
1365
+ group = groups[i];
1366
+ object[group[0]] = match[group[1]];
1367
+ }
1368
+ }
1369
+
901
1370
  return match;
902
1371
  };
903
1372
  }
@@ -910,55 +1379,15 @@
910
1379
  exec: regexpExec
911
1380
  });
912
1381
 
913
- var engineIsNode = classofRaw(global_1.process) == 'process';
1382
+ var FunctionPrototype = Function.prototype;
1383
+ var apply = FunctionPrototype.apply;
1384
+ var call = FunctionPrototype.call;
914
1385
 
915
- var engineUserAgent = getBuiltIn('navigator', 'userAgent') || '';
916
-
917
- var process = global_1.process;
918
- var versions = process && process.versions;
919
- var v8 = versions && versions.v8;
920
- var match, version;
921
-
922
- if (v8) {
923
- match = v8.split('.');
924
- version = match[0] + match[1];
925
- } else if (engineUserAgent) {
926
- match = engineUserAgent.match(/Edge\/(\d+)/);
927
- if (!match || match[1] >= 74) {
928
- match = engineUserAgent.match(/Chrome\/(\d+)/);
929
- if (match) version = match[1];
930
- }
931
- }
932
-
933
- var engineV8Version = version && +version;
934
-
935
- var nativeSymbol = !!Object.getOwnPropertySymbols && !fails(function () {
936
- /* global Symbol -- required for testing */
937
- return !Symbol.sham &&
938
- // Chrome 38 Symbol has incorrect toString conversion
939
- // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
940
- (engineIsNode ? engineV8Version === 38 : engineV8Version > 37 && engineV8Version < 41);
1386
+ // eslint-disable-next-line es/no-reflect -- safe
1387
+ var functionApply = typeof Reflect == 'object' && Reflect.apply || (functionBindNative ? call.bind(apply) : function () {
1388
+ return call.apply(apply, arguments);
941
1389
  });
942
1390
 
943
- var useSymbolAsUid = nativeSymbol
944
- /* global Symbol -- safe */
945
- && !Symbol.sham
946
- && typeof Symbol.iterator == 'symbol';
947
-
948
- var WellKnownSymbolsStore = shared('wks');
949
- var Symbol$1 = global_1.Symbol;
950
- var createWellKnownSymbol = useSymbolAsUid ? Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid;
951
-
952
- var wellKnownSymbol = function (name) {
953
- if (!has$1(WellKnownSymbolsStore, name) || !(nativeSymbol || typeof WellKnownSymbolsStore[name] == 'string')) {
954
- if (nativeSymbol && has$1(Symbol$1, name)) {
955
- WellKnownSymbolsStore[name] = Symbol$1[name];
956
- } else {
957
- WellKnownSymbolsStore[name] = createWellKnownSymbol('Symbol.' + name);
958
- }
959
- } return WellKnownSymbolsStore[name];
960
- };
961
-
962
1391
  // TODO: Remove from `core-js@4` since it's moved to entry points
963
1392
 
964
1393
 
@@ -967,48 +1396,11 @@
967
1396
 
968
1397
 
969
1398
 
970
- var SPECIES$2 = wellKnownSymbol('species');
971
-
972
- var REPLACE_SUPPORTS_NAMED_GROUPS = !fails(function () {
973
- // #replace needs built-in support for named groups.
974
- // #match works fine because it just return the exec results, even if it has
975
- // a "grops" property.
976
- var re = /./;
977
- re.exec = function () {
978
- var result = [];
979
- result.groups = { a: '7' };
980
- return result;
981
- };
982
- return ''.replace(re, '$<a>') !== '7';
983
- });
984
-
985
- // IE <= 11 replaces $0 with the whole match, as if it was $&
986
- // https://stackoverflow.com/questions/6024666/getting-ie-to-replace-a-regex-with-the-literal-string-0
987
- var REPLACE_KEEPS_$0 = (function () {
988
- return 'a'.replace(/./, '$0') === '$0';
989
- })();
990
-
991
- var REPLACE = wellKnownSymbol('replace');
992
- // Safari <= 13.0.3(?) substitutes nth capture where n>m with an empty string
993
- var REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE = (function () {
994
- if (/./[REPLACE]) {
995
- return /./[REPLACE]('a', '$0') === '';
996
- }
997
- return false;
998
- })();
999
1399
 
1000
- // Chrome 51 has a buggy "split" implementation when RegExp#exec !== nativeExec
1001
- // Weex JS has frozen built-in prototypes, so use try / catch wrapper
1002
- var SPLIT_WORKS_WITH_OVERWRITTEN_EXEC = !fails(function () {
1003
- // eslint-disable-next-line regexp/no-empty-group -- required for testing
1004
- var re = /(?:)/;
1005
- var originalExec = re.exec;
1006
- re.exec = function () { return originalExec.apply(this, arguments); };
1007
- var result = 'ab'.split(re);
1008
- return result.length !== 2 || result[0] !== 'a' || result[1] !== 'b';
1009
- });
1400
+ var SPECIES$2 = wellKnownSymbol('species');
1401
+ var RegExpPrototype = RegExp.prototype;
1010
1402
 
1011
- var fixRegexpWellKnownSymbolLogic = function (KEY, length, exec, sham) {
1403
+ var fixRegexpWellKnownSymbolLogic = function (KEY, exec, FORCED, SHAM) {
1012
1404
  var SYMBOL = wellKnownSymbol(KEY);
1013
1405
 
1014
1406
  var DELEGATES_TO_SYMBOL = !fails(function () {
@@ -1045,59 +1437,51 @@
1045
1437
  if (
1046
1438
  !DELEGATES_TO_SYMBOL ||
1047
1439
  !DELEGATES_TO_EXEC ||
1048
- (KEY === 'replace' && !(
1049
- REPLACE_SUPPORTS_NAMED_GROUPS &&
1050
- REPLACE_KEEPS_$0 &&
1051
- !REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE
1052
- )) ||
1053
- (KEY === 'split' && !SPLIT_WORKS_WITH_OVERWRITTEN_EXEC)
1440
+ FORCED
1054
1441
  ) {
1055
- var nativeRegExpMethod = /./[SYMBOL];
1442
+ var uncurriedNativeRegExpMethod = functionUncurryThis(/./[SYMBOL]);
1056
1443
  var methods = exec(SYMBOL, ''[KEY], function (nativeMethod, regexp, str, arg2, forceStringMethod) {
1057
- if (regexp.exec === regexpExec) {
1444
+ var uncurriedNativeMethod = functionUncurryThis(nativeMethod);
1445
+ var $exec = regexp.exec;
1446
+ if ($exec === regexpExec || $exec === RegExpPrototype.exec) {
1058
1447
  if (DELEGATES_TO_SYMBOL && !forceStringMethod) {
1059
1448
  // The native String method already delegates to @@method (this
1060
1449
  // polyfilled function), leasing to infinite recursion.
1061
1450
  // We avoid it by directly calling the native @@method method.
1062
- return { done: true, value: nativeRegExpMethod.call(regexp, str, arg2) };
1451
+ return { done: true, value: uncurriedNativeRegExpMethod(regexp, str, arg2) };
1063
1452
  }
1064
- return { done: true, value: nativeMethod.call(str, regexp, arg2) };
1453
+ return { done: true, value: uncurriedNativeMethod(str, regexp, arg2) };
1065
1454
  }
1066
1455
  return { done: false };
1067
- }, {
1068
- REPLACE_KEEPS_$0: REPLACE_KEEPS_$0,
1069
- REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE: REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE
1070
1456
  });
1071
- var stringMethod = methods[0];
1072
- var regexMethod = methods[1];
1073
-
1074
- redefine(String.prototype, KEY, stringMethod);
1075
- redefine(RegExp.prototype, SYMBOL, length == 2
1076
- // 21.2.5.8 RegExp.prototype[@@replace](string, replaceValue)
1077
- // 21.2.5.11 RegExp.prototype[@@split](string, limit)
1078
- ? function (string, arg) { return regexMethod.call(string, this, arg); }
1079
- // 21.2.5.6 RegExp.prototype[@@match](string)
1080
- // 21.2.5.9 RegExp.prototype[@@search](string)
1081
- : function (string) { return regexMethod.call(string, this); }
1082
- );
1457
+
1458
+ redefine(String.prototype, KEY, methods[0]);
1459
+ redefine(RegExpPrototype, SYMBOL, methods[1]);
1083
1460
  }
1084
1461
 
1085
- if (sham) createNonEnumerableProperty(RegExp.prototype[SYMBOL], 'sham', true);
1462
+ if (SHAM) createNonEnumerableProperty(RegExpPrototype[SYMBOL], 'sham', true);
1086
1463
  };
1087
1464
 
1088
- // `String.prototype.{ codePointAt, at }` methods implementation
1465
+ var charAt$2 = functionUncurryThis(''.charAt);
1466
+ var charCodeAt = functionUncurryThis(''.charCodeAt);
1467
+ var stringSlice$2 = functionUncurryThis(''.slice);
1468
+
1089
1469
  var createMethod$2 = function (CONVERT_TO_STRING) {
1090
1470
  return function ($this, pos) {
1091
- var S = String(requireObjectCoercible($this));
1092
- var position = toInteger(pos);
1471
+ var S = toString_1(requireObjectCoercible($this));
1472
+ var position = toIntegerOrInfinity(pos);
1093
1473
  var size = S.length;
1094
1474
  var first, second;
1095
1475
  if (position < 0 || position >= size) return CONVERT_TO_STRING ? '' : undefined;
1096
- first = S.charCodeAt(position);
1476
+ first = charCodeAt(S, position);
1097
1477
  return first < 0xD800 || first > 0xDBFF || position + 1 === size
1098
- || (second = S.charCodeAt(position + 1)) < 0xDC00 || second > 0xDFFF
1099
- ? CONVERT_TO_STRING ? S.charAt(position) : first
1100
- : CONVERT_TO_STRING ? S.slice(position, position + 2) : (first - 0xD800 << 10) + (second - 0xDC00) + 0x10000;
1478
+ || (second = charCodeAt(S, position + 1)) < 0xDC00 || second > 0xDFFF
1479
+ ? CONVERT_TO_STRING
1480
+ ? charAt$2(S, position)
1481
+ : first
1482
+ : CONVERT_TO_STRING
1483
+ ? stringSlice$2(S, position, position + 2)
1484
+ : (first - 0xD800 << 10) + (second - 0xDC00) + 0x10000;
1101
1485
  };
1102
1486
  };
1103
1487
 
@@ -1110,25 +1494,22 @@
1110
1494
  charAt: createMethod$2(true)
1111
1495
  };
1112
1496
 
1113
- var charAt = stringMultibyte.charAt;
1497
+ var charAt$1 = stringMultibyte.charAt;
1114
1498
 
1115
1499
  // `AdvanceStringIndex` abstract operation
1116
1500
  // https://tc39.es/ecma262/#sec-advancestringindex
1117
1501
  var advanceStringIndex = function (S, index, unicode) {
1118
- return index + (unicode ? charAt(S, index).length : 1);
1119
- };
1120
-
1121
- // `ToObject` abstract operation
1122
- // https://tc39.es/ecma262/#sec-toobject
1123
- var toObject = function (argument) {
1124
- return Object(requireObjectCoercible(argument));
1502
+ return index + (unicode ? charAt$1(S, index).length : 1);
1125
1503
  };
1126
1504
 
1127
1505
  var floor = Math.floor;
1128
- var replace = ''.replace;
1506
+ var charAt = functionUncurryThis(''.charAt);
1507
+ var replace = functionUncurryThis(''.replace);
1508
+ var stringSlice$1 = functionUncurryThis(''.slice);
1129
1509
  var SUBSTITUTION_SYMBOLS = /\$([$&'`]|\d{1,2}|<[^>]*>)/g;
1130
1510
  var SUBSTITUTION_SYMBOLS_NO_NAMED = /\$([$&'`]|\d{1,2})/g;
1131
1511
 
1512
+ // `GetSubstitution` abstract operation
1132
1513
  // https://tc39.es/ecma262/#sec-getsubstitution
1133
1514
  var getSubstitution = function (matched, str, position, captures, namedCaptures, replacement) {
1134
1515
  var tailPos = position + matched.length;
@@ -1138,15 +1519,15 @@
1138
1519
  namedCaptures = toObject(namedCaptures);
1139
1520
  symbols = SUBSTITUTION_SYMBOLS;
1140
1521
  }
1141
- return replace.call(replacement, symbols, function (match, ch) {
1522
+ return replace(replacement, symbols, function (match, ch) {
1142
1523
  var capture;
1143
- switch (ch.charAt(0)) {
1524
+ switch (charAt(ch, 0)) {
1144
1525
  case '$': return '$';
1145
1526
  case '&': return matched;
1146
- case '`': return str.slice(0, position);
1147
- case "'": return str.slice(tailPos);
1527
+ case '`': return stringSlice$1(str, 0, position);
1528
+ case "'": return stringSlice$1(str, tailPos);
1148
1529
  case '<':
1149
- capture = namedCaptures[ch.slice(1, -1)];
1530
+ capture = namedCaptures[stringSlice$1(ch, 1, -1)];
1150
1531
  break;
1151
1532
  default: // \d\d?
1152
1533
  var n = +ch;
@@ -1154,7 +1535,7 @@
1154
1535
  if (n > m) {
1155
1536
  var f = floor(n / 10);
1156
1537
  if (f === 0) return match;
1157
- if (f <= m) return captures[f - 1] === undefined ? ch.charAt(1) : captures[f - 1] + ch.charAt(1);
1538
+ if (f <= m) return captures[f - 1] === undefined ? charAt(ch, 1) : captures[f - 1] + charAt(ch, 1);
1158
1539
  return match;
1159
1540
  }
1160
1541
  capture = captures[n - 1];
@@ -1163,36 +1544,61 @@
1163
1544
  });
1164
1545
  };
1165
1546
 
1547
+ var TypeError$2 = global_1.TypeError;
1548
+
1166
1549
  // `RegExpExec` abstract operation
1167
1550
  // https://tc39.es/ecma262/#sec-regexpexec
1168
1551
  var regexpExecAbstract = function (R, S) {
1169
1552
  var exec = R.exec;
1170
- if (typeof exec === 'function') {
1171
- var result = exec.call(R, S);
1172
- if (typeof result !== 'object') {
1173
- throw TypeError('RegExp exec method returned something other than an Object or null');
1174
- }
1553
+ if (isCallable(exec)) {
1554
+ var result = functionCall(exec, R, S);
1555
+ if (result !== null) anObject(result);
1175
1556
  return result;
1176
1557
  }
1177
-
1178
- if (classofRaw(R) !== 'RegExp') {
1179
- throw TypeError('RegExp#exec called on incompatible receiver');
1180
- }
1181
-
1182
- return regexpExec.call(R, S);
1558
+ if (classofRaw(R) === 'RegExp') return functionCall(regexpExec, R, S);
1559
+ throw TypeError$2('RegExp#exec called on incompatible receiver');
1183
1560
  };
1184
1561
 
1562
+ var REPLACE = wellKnownSymbol('replace');
1185
1563
  var max = Math.max;
1186
1564
  var min = Math.min;
1565
+ var concat = functionUncurryThis([].concat);
1566
+ var push$2 = functionUncurryThis([].push);
1567
+ var stringIndexOf = functionUncurryThis(''.indexOf);
1568
+ var stringSlice = functionUncurryThis(''.slice);
1187
1569
 
1188
1570
  var maybeToString = function (it) {
1189
1571
  return it === undefined ? it : String(it);
1190
1572
  };
1191
1573
 
1574
+ // IE <= 11 replaces $0 with the whole match, as if it was $&
1575
+ // https://stackoverflow.com/questions/6024666/getting-ie-to-replace-a-regex-with-the-literal-string-0
1576
+ var REPLACE_KEEPS_$0 = (function () {
1577
+ // eslint-disable-next-line regexp/prefer-escape-replacement-dollar-char -- required for testing
1578
+ return 'a'.replace(/./, '$0') === '$0';
1579
+ })();
1580
+
1581
+ // Safari <= 13.0.3(?) substitutes nth capture where n>m with an empty string
1582
+ var REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE = (function () {
1583
+ if (/./[REPLACE]) {
1584
+ return /./[REPLACE]('a', '$0') === '';
1585
+ }
1586
+ return false;
1587
+ })();
1588
+
1589
+ var REPLACE_SUPPORTS_NAMED_GROUPS = !fails(function () {
1590
+ var re = /./;
1591
+ re.exec = function () {
1592
+ var result = [];
1593
+ result.groups = { a: '7' };
1594
+ return result;
1595
+ };
1596
+ // eslint-disable-next-line regexp/no-useless-dollar-replacements -- false positive
1597
+ return ''.replace(re, '$<a>') !== '7';
1598
+ });
1599
+
1192
1600
  // @@replace logic
1193
- fixRegexpWellKnownSymbolLogic('replace', 2, function (REPLACE, nativeReplace, maybeCallNative, reason) {
1194
- var REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE = reason.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE;
1195
- var REPLACE_KEEPS_$0 = reason.REPLACE_KEEPS_$0;
1601
+ fixRegexpWellKnownSymbolLogic('replace', function (_, nativeReplace, maybeCallNative) {
1196
1602
  var UNSAFE_SUBSTITUTE = REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE ? '$' : '$0';
1197
1603
 
1198
1604
  return [
@@ -1200,27 +1606,28 @@
1200
1606
  // https://tc39.es/ecma262/#sec-string.prototype.replace
1201
1607
  function replace(searchValue, replaceValue) {
1202
1608
  var O = requireObjectCoercible(this);
1203
- var replacer = searchValue == undefined ? undefined : searchValue[REPLACE];
1204
- return replacer !== undefined
1205
- ? replacer.call(searchValue, O, replaceValue)
1206
- : nativeReplace.call(String(O), searchValue, replaceValue);
1609
+ var replacer = searchValue == undefined ? undefined : getMethod(searchValue, REPLACE);
1610
+ return replacer
1611
+ ? functionCall(replacer, searchValue, O, replaceValue)
1612
+ : functionCall(nativeReplace, toString_1(O), searchValue, replaceValue);
1207
1613
  },
1208
1614
  // `RegExp.prototype[@@replace]` method
1209
1615
  // https://tc39.es/ecma262/#sec-regexp.prototype-@@replace
1210
- function (regexp, replaceValue) {
1616
+ function (string, replaceValue) {
1617
+ var rx = anObject(this);
1618
+ var S = toString_1(string);
1619
+
1211
1620
  if (
1212
- (!REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE && REPLACE_KEEPS_$0) ||
1213
- (typeof replaceValue === 'string' && replaceValue.indexOf(UNSAFE_SUBSTITUTE) === -1)
1621
+ typeof replaceValue == 'string' &&
1622
+ stringIndexOf(replaceValue, UNSAFE_SUBSTITUTE) === -1 &&
1623
+ stringIndexOf(replaceValue, '$<') === -1
1214
1624
  ) {
1215
- var res = maybeCallNative(nativeReplace, regexp, this, replaceValue);
1625
+ var res = maybeCallNative(nativeReplace, rx, S, replaceValue);
1216
1626
  if (res.done) return res.value;
1217
1627
  }
1218
1628
 
1219
- var rx = anObject(regexp);
1220
- var S = String(this);
1221
-
1222
- var functionalReplace = typeof replaceValue === 'function';
1223
- if (!functionalReplace) replaceValue = String(replaceValue);
1629
+ var functionalReplace = isCallable(replaceValue);
1630
+ if (!functionalReplace) replaceValue = toString_1(replaceValue);
1224
1631
 
1225
1632
  var global = rx.global;
1226
1633
  if (global) {
@@ -1232,10 +1639,10 @@
1232
1639
  var result = regexpExecAbstract(rx, S);
1233
1640
  if (result === null) break;
1234
1641
 
1235
- results.push(result);
1642
+ push$2(results, result);
1236
1643
  if (!global) break;
1237
1644
 
1238
- var matchStr = String(result[0]);
1645
+ var matchStr = toString_1(result[0]);
1239
1646
  if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode);
1240
1647
  }
1241
1648
 
@@ -1244,87 +1651,145 @@
1244
1651
  for (var i = 0; i < results.length; i++) {
1245
1652
  result = results[i];
1246
1653
 
1247
- var matched = String(result[0]);
1248
- var position = max(min(toInteger(result.index), S.length), 0);
1654
+ var matched = toString_1(result[0]);
1655
+ var position = max(min(toIntegerOrInfinity(result.index), S.length), 0);
1249
1656
  var captures = [];
1250
1657
  // NOTE: This is equivalent to
1251
1658
  // captures = result.slice(1).map(maybeToString)
1252
1659
  // but for some reason `nativeSlice.call(result, 1, result.length)` (called in
1253
1660
  // the slice polyfill when slicing native arrays) "doesn't work" in safari 9 and
1254
1661
  // causes a crash (https://pastebin.com/N21QzeQA) when trying to debug it.
1255
- for (var j = 1; j < result.length; j++) captures.push(maybeToString(result[j]));
1662
+ for (var j = 1; j < result.length; j++) push$2(captures, maybeToString(result[j]));
1256
1663
  var namedCaptures = result.groups;
1257
1664
  if (functionalReplace) {
1258
- var replacerArgs = [matched].concat(captures, position, S);
1259
- if (namedCaptures !== undefined) replacerArgs.push(namedCaptures);
1260
- var replacement = String(replaceValue.apply(undefined, replacerArgs));
1665
+ var replacerArgs = concat([matched], captures, position, S);
1666
+ if (namedCaptures !== undefined) push$2(replacerArgs, namedCaptures);
1667
+ var replacement = toString_1(functionApply(replaceValue, undefined, replacerArgs));
1261
1668
  } else {
1262
1669
  replacement = getSubstitution(matched, S, position, captures, namedCaptures, replaceValue);
1263
1670
  }
1264
1671
  if (position >= nextSourcePosition) {
1265
- accumulatedResult += S.slice(nextSourcePosition, position) + replacement;
1672
+ accumulatedResult += stringSlice(S, nextSourcePosition, position) + replacement;
1266
1673
  nextSourcePosition = position + matched.length;
1267
1674
  }
1268
1675
  }
1269
- return accumulatedResult + S.slice(nextSourcePosition);
1676
+ return accumulatedResult + stringSlice(S, nextSourcePosition);
1270
1677
  }
1271
1678
  ];
1272
- });
1679
+ }, !REPLACE_SUPPORTS_NAMED_GROUPS || !REPLACE_KEEPS_$0 || REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE);
1273
1680
 
1274
1681
  var arrayMethodIsStrict = function (METHOD_NAME, argument) {
1275
1682
  var method = [][METHOD_NAME];
1276
1683
  return !!method && fails(function () {
1277
- // eslint-disable-next-line no-useless-call,no-throw-literal -- required for testing
1278
- method.call(null, argument || function () { throw 1; }, 1);
1684
+ // eslint-disable-next-line no-useless-call -- required for testing
1685
+ method.call(null, argument || function () { return 1; }, 1);
1279
1686
  });
1280
1687
  };
1281
1688
 
1282
- var $indexOf = arrayIncludes.indexOf;
1689
+ /* eslint-disable es/no-array-prototype-indexof -- required for testing */
1690
+
1283
1691
 
1692
+ var $IndexOf = arrayIncludes.indexOf;
1284
1693
 
1285
- var nativeIndexOf = [].indexOf;
1286
1694
 
1287
- var NEGATIVE_ZERO = !!nativeIndexOf && 1 / [1].indexOf(1, -0) < 0;
1695
+ var un$IndexOf = functionUncurryThis([].indexOf);
1696
+
1697
+ var NEGATIVE_ZERO = !!un$IndexOf && 1 / un$IndexOf([1], 1, -0) < 0;
1288
1698
  var STRICT_METHOD$1 = arrayMethodIsStrict('indexOf');
1289
1699
 
1290
1700
  // `Array.prototype.indexOf` method
1291
1701
  // https://tc39.es/ecma262/#sec-array.prototype.indexof
1292
1702
  _export({ target: 'Array', proto: true, forced: NEGATIVE_ZERO || !STRICT_METHOD$1 }, {
1293
1703
  indexOf: function indexOf(searchElement /* , fromIndex = 0 */) {
1704
+ var fromIndex = arguments.length > 1 ? arguments[1] : undefined;
1294
1705
  return NEGATIVE_ZERO
1295
1706
  // convert -0 to +0
1296
- ? nativeIndexOf.apply(this, arguments) || 0
1297
- : $indexOf(this, searchElement, arguments.length > 1 ? arguments[1] : undefined);
1707
+ ? un$IndexOf(this, searchElement, fromIndex) || 0
1708
+ : $IndexOf(this, searchElement, fromIndex);
1298
1709
  }
1299
1710
  });
1300
1711
 
1301
1712
  // `IsArray` abstract operation
1302
1713
  // https://tc39.es/ecma262/#sec-isarray
1303
- var isArray = Array.isArray || function isArray(arg) {
1304
- return classofRaw(arg) == 'Array';
1714
+ // eslint-disable-next-line es/no-array-isarray -- safe
1715
+ var isArray = Array.isArray || function isArray(argument) {
1716
+ return classofRaw(argument) == 'Array';
1305
1717
  };
1306
1718
 
1307
1719
  var createProperty = function (object, key, value) {
1308
- var propertyKey = toPrimitive(key);
1720
+ var propertyKey = toPropertyKey(key);
1309
1721
  if (propertyKey in object) objectDefineProperty.f(object, propertyKey, createPropertyDescriptor(0, value));
1310
1722
  else object[propertyKey] = value;
1311
1723
  };
1312
1724
 
1725
+ var noop = function () { /* empty */ };
1726
+ var empty = [];
1727
+ var construct = getBuiltIn('Reflect', 'construct');
1728
+ var constructorRegExp = /^\s*(?:class|function)\b/;
1729
+ var exec = functionUncurryThis(constructorRegExp.exec);
1730
+ var INCORRECT_TO_STRING = !constructorRegExp.exec(noop);
1731
+
1732
+ var isConstructorModern = function isConstructor(argument) {
1733
+ if (!isCallable(argument)) return false;
1734
+ try {
1735
+ construct(noop, empty, argument);
1736
+ return true;
1737
+ } catch (error) {
1738
+ return false;
1739
+ }
1740
+ };
1741
+
1742
+ var isConstructorLegacy = function isConstructor(argument) {
1743
+ if (!isCallable(argument)) return false;
1744
+ switch (classof(argument)) {
1745
+ case 'AsyncFunction':
1746
+ case 'GeneratorFunction':
1747
+ case 'AsyncGeneratorFunction': return false;
1748
+ }
1749
+ try {
1750
+ // we can't check .prototype since constructors produced by .bind haven't it
1751
+ // `Function#toString` throws on some built-it function in some legacy engines
1752
+ // (for example, `DOMQuad` and similar in FF41-)
1753
+ return INCORRECT_TO_STRING || !!exec(constructorRegExp, inspectSource(argument));
1754
+ } catch (error) {
1755
+ return true;
1756
+ }
1757
+ };
1758
+
1759
+ isConstructorLegacy.sham = true;
1760
+
1761
+ // `IsConstructor` abstract operation
1762
+ // https://tc39.es/ecma262/#sec-isconstructor
1763
+ var isConstructor = !construct || fails(function () {
1764
+ var called;
1765
+ return isConstructorModern(isConstructorModern.call)
1766
+ || !isConstructorModern(Object)
1767
+ || !isConstructorModern(function () { called = true; })
1768
+ || called;
1769
+ }) ? isConstructorLegacy : isConstructorModern;
1770
+
1313
1771
  var SPECIES$1 = wellKnownSymbol('species');
1772
+ var Array$1 = global_1.Array;
1314
1773
 
1315
- // `ArraySpeciesCreate` abstract operation
1774
+ // a part of `ArraySpeciesCreate` abstract operation
1316
1775
  // https://tc39.es/ecma262/#sec-arrayspeciescreate
1317
- var arraySpeciesCreate = function (originalArray, length) {
1776
+ var arraySpeciesConstructor = function (originalArray) {
1318
1777
  var C;
1319
1778
  if (isArray(originalArray)) {
1320
1779
  C = originalArray.constructor;
1321
1780
  // cross-realm fallback
1322
- if (typeof C == 'function' && (C === Array || isArray(C.prototype))) C = undefined;
1781
+ if (isConstructor(C) && (C === Array$1 || isArray(C.prototype))) C = undefined;
1323
1782
  else if (isObject(C)) {
1324
1783
  C = C[SPECIES$1];
1325
1784
  if (C === null) C = undefined;
1326
1785
  }
1327
- } return new (C === undefined ? Array : C)(length === 0 ? 0 : length);
1786
+ } return C === undefined ? Array$1 : C;
1787
+ };
1788
+
1789
+ // `ArraySpeciesCreate` abstract operation
1790
+ // https://tc39.es/ecma262/#sec-arrayspeciescreate
1791
+ var arraySpeciesCreate = function (originalArray, length) {
1792
+ return new (arraySpeciesConstructor(originalArray))(length === 0 ? 0 : length);
1328
1793
  };
1329
1794
 
1330
1795
  var SPECIES = wellKnownSymbol('species');
@@ -1346,6 +1811,7 @@
1346
1811
  var IS_CONCAT_SPREADABLE = wellKnownSymbol('isConcatSpreadable');
1347
1812
  var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF;
1348
1813
  var MAXIMUM_ALLOWED_INDEX_EXCEEDED = 'Maximum allowed index exceeded';
1814
+ var TypeError$1 = global_1.TypeError;
1349
1815
 
1350
1816
  // We can't use this feature detection in V8 since it causes
1351
1817
  // deoptimization and serious performance degradation
@@ -1379,11 +1845,11 @@
1379
1845
  for (i = -1, length = arguments.length; i < length; i++) {
1380
1846
  E = i === -1 ? O : arguments[i];
1381
1847
  if (isConcatSpreadable(E)) {
1382
- len = toLength(E.length);
1383
- if (n + len > MAX_SAFE_INTEGER) throw TypeError(MAXIMUM_ALLOWED_INDEX_EXCEEDED);
1848
+ len = lengthOfArrayLike(E);
1849
+ if (n + len > MAX_SAFE_INTEGER) throw TypeError$1(MAXIMUM_ALLOWED_INDEX_EXCEEDED);
1384
1850
  for (k = 0; k < len; k++, n++) if (k in E) createProperty(A, n, E[k]);
1385
1851
  } else {
1386
- if (n >= MAX_SAFE_INTEGER) throw TypeError(MAXIMUM_ALLOWED_INDEX_EXCEEDED);
1852
+ if (n >= MAX_SAFE_INTEGER) throw TypeError$1(MAXIMUM_ALLOWED_INDEX_EXCEEDED);
1387
1853
  createProperty(A, n++, E);
1388
1854
  }
1389
1855
  }
@@ -1392,7 +1858,7 @@
1392
1858
  }
1393
1859
  });
1394
1860
 
1395
- var nativeJoin = [].join;
1861
+ var un$Join = functionUncurryThis([].join);
1396
1862
 
1397
1863
  var ES3_STRINGS = indexedObject != Object;
1398
1864
  var STRICT_METHOD = arrayMethodIsStrict('join', ',');
@@ -1401,58 +1867,39 @@
1401
1867
  // https://tc39.es/ecma262/#sec-array.prototype.join
1402
1868
  _export({ target: 'Array', proto: true, forced: ES3_STRINGS || !STRICT_METHOD }, {
1403
1869
  join: function join(separator) {
1404
- return nativeJoin.call(toIndexedObject(this), separator === undefined ? ',' : separator);
1870
+ return un$Join(toIndexedObject(this), separator === undefined ? ',' : separator);
1405
1871
  }
1406
1872
  });
1407
1873
 
1408
- var aFunction = function (it) {
1409
- if (typeof it != 'function') {
1410
- throw TypeError(String(it) + ' is not a function');
1411
- } return it;
1412
- };
1874
+ var bind = functionUncurryThis(functionUncurryThis.bind);
1413
1875
 
1414
1876
  // optional / simple context binding
1415
- var functionBindContext = function (fn, that, length) {
1416
- aFunction(fn);
1417
- if (that === undefined) return fn;
1418
- switch (length) {
1419
- case 0: return function () {
1420
- return fn.call(that);
1421
- };
1422
- case 1: return function (a) {
1423
- return fn.call(that, a);
1424
- };
1425
- case 2: return function (a, b) {
1426
- return fn.call(that, a, b);
1427
- };
1428
- case 3: return function (a, b, c) {
1429
- return fn.call(that, a, b, c);
1430
- };
1431
- }
1432
- return function (/* ...args */) {
1877
+ var functionBindContext = function (fn, that) {
1878
+ aCallable(fn);
1879
+ return that === undefined ? fn : functionBindNative ? bind(fn, that) : function (/* ...args */) {
1433
1880
  return fn.apply(that, arguments);
1434
1881
  };
1435
1882
  };
1436
1883
 
1437
- var push = [].push;
1884
+ var push$1 = functionUncurryThis([].push);
1438
1885
 
1439
- // `Array.prototype.{ forEach, map, filter, some, every, find, findIndex, filterOut }` methods implementation
1886
+ // `Array.prototype.{ forEach, map, filter, some, every, find, findIndex, filterReject }` methods implementation
1440
1887
  var createMethod$1 = function (TYPE) {
1441
1888
  var IS_MAP = TYPE == 1;
1442
1889
  var IS_FILTER = TYPE == 2;
1443
1890
  var IS_SOME = TYPE == 3;
1444
1891
  var IS_EVERY = TYPE == 4;
1445
1892
  var IS_FIND_INDEX = TYPE == 6;
1446
- var IS_FILTER_OUT = TYPE == 7;
1893
+ var IS_FILTER_REJECT = TYPE == 7;
1447
1894
  var NO_HOLES = TYPE == 5 || IS_FIND_INDEX;
1448
1895
  return function ($this, callbackfn, that, specificCreate) {
1449
1896
  var O = toObject($this);
1450
1897
  var self = indexedObject(O);
1451
- var boundFunction = functionBindContext(callbackfn, that, 3);
1452
- var length = toLength(self.length);
1898
+ var boundFunction = functionBindContext(callbackfn, that);
1899
+ var length = lengthOfArrayLike(self);
1453
1900
  var index = 0;
1454
1901
  var create = specificCreate || arraySpeciesCreate;
1455
- var target = IS_MAP ? create($this, length) : IS_FILTER || IS_FILTER_OUT ? create($this, 0) : undefined;
1902
+ var target = IS_MAP ? create($this, length) : IS_FILTER || IS_FILTER_REJECT ? create($this, 0) : undefined;
1456
1903
  var value, result;
1457
1904
  for (;length > index; index++) if (NO_HOLES || index in self) {
1458
1905
  value = self[index];
@@ -1463,10 +1910,10 @@
1463
1910
  case 3: return true; // some
1464
1911
  case 5: return value; // find
1465
1912
  case 6: return index; // findIndex
1466
- case 2: push.call(target, value); // filter
1913
+ case 2: push$1(target, value); // filter
1467
1914
  } else switch (TYPE) {
1468
1915
  case 4: return false; // every
1469
- case 7: push.call(target, value); // filterOut
1916
+ case 7: push$1(target, value); // filterReject
1470
1917
  }
1471
1918
  }
1472
1919
  }
@@ -1496,100 +1943,9 @@
1496
1943
  // `Array.prototype.findIndex` method
1497
1944
  // https://tc39.es/ecma262/#sec-array.prototype.findIndex
1498
1945
  findIndex: createMethod$1(6),
1499
- // `Array.prototype.filterOut` method
1946
+ // `Array.prototype.filterReject` method
1500
1947
  // https://github.com/tc39/proposal-array-filtering
1501
- filterOut: createMethod$1(7)
1502
- };
1503
-
1504
- // `Object.keys` method
1505
- // https://tc39.es/ecma262/#sec-object.keys
1506
- var objectKeys = Object.keys || function keys(O) {
1507
- return objectKeysInternal(O, enumBugKeys);
1508
- };
1509
-
1510
- // `Object.defineProperties` method
1511
- // https://tc39.es/ecma262/#sec-object.defineproperties
1512
- var objectDefineProperties = descriptors ? Object.defineProperties : function defineProperties(O, Properties) {
1513
- anObject(O);
1514
- var keys = objectKeys(Properties);
1515
- var length = keys.length;
1516
- var index = 0;
1517
- var key;
1518
- while (length > index) objectDefineProperty.f(O, key = keys[index++], Properties[key]);
1519
- return O;
1520
- };
1521
-
1522
- var html = getBuiltIn('document', 'documentElement');
1523
-
1524
- var GT = '>';
1525
- var LT = '<';
1526
- var PROTOTYPE = 'prototype';
1527
- var SCRIPT = 'script';
1528
- var IE_PROTO = sharedKey('IE_PROTO');
1529
-
1530
- var EmptyConstructor = function () { /* empty */ };
1531
-
1532
- var scriptTag = function (content) {
1533
- return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;
1534
- };
1535
-
1536
- // Create object with fake `null` prototype: use ActiveX Object with cleared prototype
1537
- var NullProtoObjectViaActiveX = function (activeXDocument) {
1538
- activeXDocument.write(scriptTag(''));
1539
- activeXDocument.close();
1540
- var temp = activeXDocument.parentWindow.Object;
1541
- activeXDocument = null; // avoid memory leak
1542
- return temp;
1543
- };
1544
-
1545
- // Create object with fake `null` prototype: use iframe Object with cleared prototype
1546
- var NullProtoObjectViaIFrame = function () {
1547
- // Thrash, waste and sodomy: IE GC bug
1548
- var iframe = documentCreateElement('iframe');
1549
- var JS = 'java' + SCRIPT + ':';
1550
- var iframeDocument;
1551
- iframe.style.display = 'none';
1552
- html.appendChild(iframe);
1553
- // https://github.com/zloirock/core-js/issues/475
1554
- iframe.src = String(JS);
1555
- iframeDocument = iframe.contentWindow.document;
1556
- iframeDocument.open();
1557
- iframeDocument.write(scriptTag('document.F=Object'));
1558
- iframeDocument.close();
1559
- return iframeDocument.F;
1560
- };
1561
-
1562
- // Check for document.domain and active x support
1563
- // No need to use active x approach when document.domain is not set
1564
- // see https://github.com/es-shims/es5-shim/issues/150
1565
- // variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346
1566
- // avoid IE GC bug
1567
- var activeXDocument;
1568
- var NullProtoObject = function () {
1569
- try {
1570
- /* global ActiveXObject -- old IE */
1571
- activeXDocument = document.domain && new ActiveXObject('htmlfile');
1572
- } catch (error) { /* ignore */ }
1573
- NullProtoObject = activeXDocument ? NullProtoObjectViaActiveX(activeXDocument) : NullProtoObjectViaIFrame();
1574
- var length = enumBugKeys.length;
1575
- while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];
1576
- return NullProtoObject();
1577
- };
1578
-
1579
- hiddenKeys$1[IE_PROTO] = true;
1580
-
1581
- // `Object.create` method
1582
- // https://tc39.es/ecma262/#sec-object.create
1583
- var objectCreate = Object.create || function create(O, Properties) {
1584
- var result;
1585
- if (O !== null) {
1586
- EmptyConstructor[PROTOTYPE] = anObject(O);
1587
- result = new EmptyConstructor();
1588
- EmptyConstructor[PROTOTYPE] = null;
1589
- // add "__proto__" for Object.getPrototypeOf polyfill
1590
- result[IE_PROTO] = O;
1591
- } else result = NullProtoObject();
1592
- return Properties === undefined ? result : objectDefineProperties(result, Properties);
1948
+ filterReject: createMethod$1(7)
1593
1949
  };
1594
1950
 
1595
1951
  var UNSCOPABLES = wellKnownSymbol('unscopables');
@@ -1629,7 +1985,22 @@
1629
1985
  // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
1630
1986
  addToUnscopables(FIND);
1631
1987
 
1632
- var propertyIsEnumerable = objectPropertyIsEnumerable.f;
1988
+ // `Object.prototype.toString` method implementation
1989
+ // https://tc39.es/ecma262/#sec-object.prototype.tostring
1990
+ var objectToString = toStringTagSupport ? {}.toString : function toString() {
1991
+ return '[object ' + classof(this) + ']';
1992
+ };
1993
+
1994
+ // `Object.prototype.toString` method
1995
+ // https://tc39.es/ecma262/#sec-object.prototype.tostring
1996
+ if (!toStringTagSupport) {
1997
+ redefine(Object.prototype, 'toString', objectToString, { unsafe: true });
1998
+ }
1999
+
2000
+ var $propertyIsEnumerable = objectPropertyIsEnumerable.f;
2001
+
2002
+ var propertyIsEnumerable = functionUncurryThis($propertyIsEnumerable);
2003
+ var push = functionUncurryThis([].push);
1633
2004
 
1634
2005
  // `Object.{ entries, values }` methods implementation
1635
2006
  var createMethod = function (TO_ENTRIES) {
@@ -1642,8 +2013,8 @@
1642
2013
  var key;
1643
2014
  while (length > i) {
1644
2015
  key = keys[i++];
1645
- if (!descriptors || propertyIsEnumerable.call(O, key)) {
1646
- result.push(TO_ENTRIES ? [key, O[key]] : O[key]);
2016
+ if (!descriptors || propertyIsEnumerable(O, key)) {
2017
+ push(result, TO_ENTRIES ? [key, O[key]] : O[key]);
1647
2018
  }
1648
2019
  }
1649
2020
  return result;
@@ -1676,8 +2047,8 @@
1676
2047
  * extensions: https://github.com/vitalets/x-editable
1677
2048
  */
1678
2049
 
1679
- var Utils = $__default['default'].fn.bootstrapTable.utils;
1680
- $__default['default'].extend($__default['default'].fn.bootstrapTable.defaults, {
2050
+ var Utils = $__default["default"].fn.bootstrapTable.utils;
2051
+ $__default["default"].extend($__default["default"].fn.bootstrapTable.defaults, {
1681
2052
  editable: true,
1682
2053
  onEditableInit: function onEditableInit() {
1683
2054
  return false;
@@ -1692,17 +2063,17 @@
1692
2063
  return false;
1693
2064
  }
1694
2065
  });
1695
- $__default['default'].extend($__default['default'].fn.bootstrapTable.columnDefaults, {
2066
+ $__default["default"].extend($__default["default"].fn.bootstrapTable.columnDefaults, {
1696
2067
  alwaysUseFormatter: false
1697
2068
  });
1698
- $__default['default'].extend($__default['default'].fn.bootstrapTable.Constructor.EVENTS, {
2069
+ $__default["default"].extend($__default["default"].fn.bootstrapTable.Constructor.EVENTS, {
1699
2070
  'editable-init.bs.table': 'onEditableInit',
1700
2071
  'editable-save.bs.table': 'onEditableSave',
1701
2072
  'editable-shown.bs.table': 'onEditableShown',
1702
2073
  'editable-hidden.bs.table': 'onEditableHidden'
1703
2074
  });
1704
2075
 
1705
- $__default['default'].BootstrapTable = /*#__PURE__*/function (_$$BootstrapTable) {
2076
+ $__default["default"].BootstrapTable = /*#__PURE__*/function (_$$BootstrapTable) {
1706
2077
  _inherits(_class, _$$BootstrapTable);
1707
2078
 
1708
2079
  var _super = _createSuper(_class);
@@ -1725,7 +2096,7 @@
1725
2096
  }
1726
2097
 
1727
2098
  this.editedCells = [];
1728
- $__default['default'].each(this.columns, function (i, column) {
2099
+ $__default["default"].each(this.columns, function (i, column) {
1729
2100
  if (!column.editable) {
1730
2101
  return;
1731
2102
  }
@@ -1745,7 +2116,7 @@
1745
2116
  }
1746
2117
  };
1747
2118
 
1748
- $__default['default'].each(_this.options, processDataOptions);
2119
+ $__default["default"].each(_this.options, processDataOptions);
1749
2120
 
1750
2121
  column.formatter = column.formatter || function (value) {
1751
2122
  return value;
@@ -1760,13 +2131,13 @@
1760
2131
  if (_this.options.uniqueId !== undefined && !column.alwaysUseFormatter) {
1761
2132
  var uniqueId = Utils.getItemField(row, _this.options.uniqueId, false);
1762
2133
 
1763
- if ($__default['default'].inArray(column.field + uniqueId, _this.editedCells) !== -1) {
2134
+ if ($__default["default"].inArray(column.field + uniqueId, _this.editedCells) !== -1) {
1764
2135
  result = value;
1765
2136
  }
1766
2137
  }
1767
2138
 
1768
- $__default['default'].each(column, processDataOptions);
1769
- $__default['default'].each(editableOptions, function (key, value) {
2139
+ $__default["default"].each(column, processDataOptions);
2140
+ $__default["default"].each(editableOptions, function (key, value) {
1770
2141
  editableDataMarkup.push(" ".concat(key, "=\"").concat(value, "\""));
1771
2142
  });
1772
2143
  var noEditFormatter = false;
@@ -1795,7 +2166,7 @@
1795
2166
  return;
1796
2167
  }
1797
2168
 
1798
- $__default['default'].each(this.columns, function (i, column) {
2169
+ $__default["default"].each(this.columns, function (i, column) {
1799
2170
  if (!column.editable) {
1800
2171
  return;
1801
2172
  }
@@ -1807,7 +2178,7 @@
1807
2178
  var $field = _this2.$body.find("a[data-name=\"".concat(column.field, "\"]"));
1808
2179
 
1809
2180
  $field.each(function (i, element) {
1810
- var $element = $__default['default'](element);
2181
+ var $element = $__default["default"](element);
1811
2182
  var $tr = $element.closest('tr');
1812
2183
  var index = $tr.data('index');
1813
2184
  var row = data[index];
@@ -1817,7 +2188,7 @@
1817
2188
  $field.off('save').on('save', function (_ref, _ref2) {
1818
2189
  var currentTarget = _ref.currentTarget;
1819
2190
  var submitValue = _ref2.submitValue;
1820
- var $this = $__default['default'](currentTarget);
2191
+ var $this = $__default["default"](currentTarget);
1821
2192
 
1822
2193
  var data = _this2.getData();
1823
2194
 
@@ -1828,7 +2199,7 @@
1828
2199
  if (_this2.options.uniqueId !== undefined && !column.alwaysUseFormatter) {
1829
2200
  var uniqueId = Utils.getItemField(row, _this2.options.uniqueId, false);
1830
2201
 
1831
- if ($__default['default'].inArray(column.field + uniqueId, _this2.editedCells) === -1) {
2202
+ if ($__default["default"].inArray(column.field + uniqueId, _this2.editedCells) === -1) {
1832
2203
  _this2.editedCells.push(column.field + uniqueId);
1833
2204
  }
1834
2205
  }
@@ -1843,7 +2214,7 @@
1843
2214
  });
1844
2215
  $field.off('shown').on('shown', function (_ref3, editable) {
1845
2216
  var currentTarget = _ref3.currentTarget;
1846
- var $this = $__default['default'](currentTarget);
2217
+ var $this = $__default["default"](currentTarget);
1847
2218
 
1848
2219
  var data = _this2.getData();
1849
2220
 
@@ -1854,7 +2225,7 @@
1854
2225
  });
1855
2226
  $field.off('hidden').on('hidden', function (_ref4, reason) {
1856
2227
  var currentTarget = _ref4.currentTarget;
1857
- var $this = $__default['default'](currentTarget);
2228
+ var $this = $__default["default"](currentTarget);
1858
2229
 
1859
2230
  var data = _this2.getData();
1860
2231
 
@@ -1899,6 +2270,6 @@
1899
2270
  }]);
1900
2271
 
1901
2272
  return _class;
1902
- }($__default['default'].BootstrapTable);
2273
+ }($__default["default"].BootstrapTable);
1903
2274
 
1904
- })));
2275
+ }));