bootstrap-table-rails 1.19.0 → 1.20.1

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