bootstrap-table-rails 1.19.1 → 1.20.0

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