mocha 9.1.3 → 9.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (44) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +1 -1
  3. package/browser-entry.js +15 -15
  4. package/lib/browser/growl.js +5 -5
  5. package/lib/browser/parse-query.js +1 -1
  6. package/lib/browser/progress.js +6 -6
  7. package/lib/cli/run.js +1 -1
  8. package/lib/cli/watch-run.js +1 -4
  9. package/lib/context.js +5 -5
  10. package/lib/errors.js +1 -1
  11. package/lib/hook.js +2 -2
  12. package/lib/interfaces/bdd.js +23 -20
  13. package/lib/interfaces/common.js +7 -7
  14. package/lib/interfaces/exports.js +1 -1
  15. package/lib/interfaces/qunit.js +7 -7
  16. package/lib/interfaces/tdd.js +9 -9
  17. package/lib/mocha.js +56 -58
  18. package/lib/nodejs/esm-utils.js +18 -3
  19. package/lib/reporters/base.js +18 -21
  20. package/lib/reporters/doc.js +4 -4
  21. package/lib/reporters/dot.js +5 -5
  22. package/lib/reporters/html.js +12 -12
  23. package/lib/reporters/json-stream.js +4 -4
  24. package/lib/reporters/json.js +7 -7
  25. package/lib/reporters/landing.js +5 -5
  26. package/lib/reporters/list.js +5 -5
  27. package/lib/reporters/markdown.js +5 -5
  28. package/lib/reporters/min.js +1 -1
  29. package/lib/reporters/nyan.js +16 -16
  30. package/lib/reporters/progress.js +3 -3
  31. package/lib/reporters/spec.js +6 -6
  32. package/lib/reporters/tap.js +17 -17
  33. package/lib/reporters/xunit.js +9 -9
  34. package/lib/runnable.js +21 -21
  35. package/lib/runner.js +44 -47
  36. package/lib/stats-collector.js +7 -7
  37. package/lib/suite.js +29 -29
  38. package/lib/test.js +4 -4
  39. package/lib/utils.js +18 -19
  40. package/mocha-es2018.js +380 -386
  41. package/mocha.js +752 -551
  42. package/mocha.js.map +1 -1
  43. package/package.json +16 -15
  44. package/CHANGELOG.md +0 -1025
package/mocha.js CHANGED
@@ -1,4 +1,4 @@
1
- // mocha@9.1.3 transpiled to javascript ES5
1
+ // mocha@9.1.4 transpiled to javascript ES5
2
2
  (function (global, factory) {
3
3
  typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
4
4
  typeof define === 'function' && define.amd ? define(factory) :
@@ -56,19 +56,25 @@
56
56
  return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
57
57
  });
58
58
 
59
- var $propertyIsEnumerable$1 = {}.propertyIsEnumerable;
59
+ var call$2 = Function.prototype.call;
60
+
61
+ var functionCall = call$2.bind ? call$2.bind(call$2) : function () {
62
+ return call$2.apply(call$2, arguments);
63
+ };
64
+
65
+ var $propertyIsEnumerable$2 = {}.propertyIsEnumerable;
60
66
  // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
61
67
  var getOwnPropertyDescriptor$3 = Object.getOwnPropertyDescriptor;
62
68
 
63
69
  // Nashorn ~ JDK8 bug
64
- var NASHORN_BUG = getOwnPropertyDescriptor$3 && !$propertyIsEnumerable$1.call({ 1: 2 }, 1);
70
+ var NASHORN_BUG = getOwnPropertyDescriptor$3 && !$propertyIsEnumerable$2.call({ 1: 2 }, 1);
65
71
 
66
72
  // `Object.prototype.propertyIsEnumerable` method implementation
67
73
  // https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
68
74
  var f$7 = NASHORN_BUG ? function propertyIsEnumerable(V) {
69
75
  var descriptor = getOwnPropertyDescriptor$3(this, V);
70
76
  return !!descriptor && descriptor.enumerable;
71
- } : $propertyIsEnumerable$1;
77
+ } : $propertyIsEnumerable$2;
72
78
 
73
79
  var objectPropertyIsEnumerable = {
74
80
  f: f$7
@@ -83,27 +89,44 @@
83
89
  };
84
90
  };
85
91
 
86
- var toString$4 = {}.toString;
92
+ var FunctionPrototype$3 = Function.prototype;
93
+ var bind$3 = FunctionPrototype$3.bind;
94
+ var call$1 = FunctionPrototype$3.call;
95
+ var callBind = bind$3 && bind$3.bind(call$1);
96
+
97
+ var functionUncurryThis = bind$3 ? function (fn) {
98
+ return fn && callBind(call$1, fn);
99
+ } : function (fn) {
100
+ return fn && function () {
101
+ return call$1.apply(fn, arguments);
102
+ };
103
+ };
104
+
105
+ var toString$4 = functionUncurryThis({}.toString);
106
+ var stringSlice$8 = functionUncurryThis(''.slice);
87
107
 
88
108
  var classofRaw = function (it) {
89
- return toString$4.call(it).slice(8, -1);
109
+ return stringSlice$8(toString$4(it), 8, -1);
90
110
  };
91
111
 
92
- var split = ''.split;
112
+ var Object$5 = global_1.Object;
113
+ var split = functionUncurryThis(''.split);
93
114
 
94
115
  // fallback for non-array-like ES3 and non-enumerable old V8 strings
95
116
  var indexedObject = fails(function () {
96
117
  // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
97
118
  // eslint-disable-next-line no-prototype-builtins -- safe
98
- return !Object('z').propertyIsEnumerable(0);
119
+ return !Object$5('z').propertyIsEnumerable(0);
99
120
  }) ? function (it) {
100
- return classofRaw(it) == 'String' ? split.call(it, '') : Object(it);
101
- } : Object;
121
+ return classofRaw(it) == 'String' ? split(it, '') : Object$5(it);
122
+ } : Object$5;
123
+
124
+ var TypeError$l = global_1.TypeError;
102
125
 
103
126
  // `RequireObjectCoercible` abstract operation
104
127
  // https://tc39.es/ecma262/#sec-requireobjectcoercible
105
128
  var requireObjectCoercible = function (it) {
106
- if (it == undefined) throw TypeError("Can't call method on " + it);
129
+ if (it == undefined) throw TypeError$l("Can't call method on " + it);
107
130
  return it;
108
131
  };
109
132
 
@@ -115,14 +138,14 @@
115
138
  return indexedObject(requireObjectCoercible(it));
116
139
  };
117
140
 
118
- // `isCallable` abstract operation
141
+ // `IsCallable` abstract operation
119
142
  // https://tc39.es/ecma262/#sec-iscallable
120
143
  var isCallable = function (argument) {
121
- return typeof argument === 'function';
144
+ return typeof argument == 'function';
122
145
  };
123
146
 
124
147
  var isObject$1 = function (it) {
125
- return typeof it === 'object' ? it !== null : isCallable(it);
148
+ return typeof it == 'object' ? it !== null : isCallable(it);
126
149
  };
127
150
 
128
151
  var aFunction = function (argument) {
@@ -133,6 +156,8 @@
133
156
  return arguments.length < 2 ? aFunction(global_1[namespace]) : global_1[namespace] && global_1[namespace][method];
134
157
  };
135
158
 
159
+ var objectIsPrototypeOf = functionUncurryThis({}.isPrototypeOf);
160
+
136
161
  var engineUserAgent = getBuiltIn('navigator', 'userAgent') || '';
137
162
 
138
163
  var process$5 = global_1.process;
@@ -143,23 +168,29 @@
143
168
 
144
169
  if (v8) {
145
170
  match = v8.split('.');
146
- version$3 = match[0] < 4 ? 1 : match[0] + match[1];
147
- } else if (engineUserAgent) {
171
+ // in old Chrome, versions of V8 isn't V8 = Chrome / 10
172
+ // but their correct versions are not interesting for us
173
+ version$3 = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);
174
+ }
175
+
176
+ // BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`
177
+ // so check `userAgent` even if `.v8` exists, but 0
178
+ if (!version$3 && engineUserAgent) {
148
179
  match = engineUserAgent.match(/Edge\/(\d+)/);
149
180
  if (!match || match[1] >= 74) {
150
181
  match = engineUserAgent.match(/Chrome\/(\d+)/);
151
- if (match) version$3 = match[1];
182
+ if (match) version$3 = +match[1];
152
183
  }
153
184
  }
154
185
 
155
- var engineV8Version = version$3 && +version$3;
186
+ var engineV8Version = version$3;
156
187
 
157
188
  /* eslint-disable es/no-symbol -- required for testing */
158
189
 
159
190
 
160
191
 
161
192
  // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
162
- var nativeSymbol$1 = !!Object.getOwnPropertySymbols && !fails(function () {
193
+ var nativeSymbol = !!Object.getOwnPropertySymbols && !fails(function () {
163
194
  var symbol = Symbol();
164
195
  // Chrome 38 Symbol has incorrect toString conversion
165
196
  // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
@@ -171,29 +202,35 @@
171
202
  /* eslint-disable es/no-symbol -- required for testing */
172
203
 
173
204
 
174
- var useSymbolAsUid = nativeSymbol$1
205
+ var useSymbolAsUid = nativeSymbol
175
206
  && !Symbol.sham
176
207
  && typeof Symbol.iterator == 'symbol';
177
208
 
209
+ var Object$4 = global_1.Object;
210
+
178
211
  var isSymbol$1 = useSymbolAsUid ? function (it) {
179
212
  return typeof it == 'symbol';
180
213
  } : function (it) {
181
214
  var $Symbol = getBuiltIn('Symbol');
182
- return isCallable($Symbol) && Object(it) instanceof $Symbol;
215
+ return isCallable($Symbol) && objectIsPrototypeOf($Symbol.prototype, Object$4(it));
183
216
  };
184
217
 
218
+ var String$6 = global_1.String;
219
+
185
220
  var tryToString = function (argument) {
186
221
  try {
187
- return String(argument);
222
+ return String$6(argument);
188
223
  } catch (error) {
189
224
  return 'Object';
190
225
  }
191
226
  };
192
227
 
228
+ var TypeError$k = global_1.TypeError;
229
+
193
230
  // `Assert: IsCallable(argument) is true`
194
231
  var aCallable = function (argument) {
195
232
  if (isCallable(argument)) return argument;
196
- throw TypeError(tryToString(argument) + ' is not a function');
233
+ throw TypeError$k(tryToString(argument) + ' is not a function');
197
234
  };
198
235
 
199
236
  // `GetMethod` abstract operation
@@ -203,20 +240,24 @@
203
240
  return func == null ? undefined : aCallable(func);
204
241
  };
205
242
 
243
+ var TypeError$j = global_1.TypeError;
244
+
206
245
  // `OrdinaryToPrimitive` abstract operation
207
246
  // https://tc39.es/ecma262/#sec-ordinarytoprimitive
208
247
  var ordinaryToPrimitive = function (input, pref) {
209
248
  var fn, val;
210
- if (pref === 'string' && isCallable(fn = input.toString) && !isObject$1(val = fn.call(input))) return val;
211
- if (isCallable(fn = input.valueOf) && !isObject$1(val = fn.call(input))) return val;
212
- if (pref !== 'string' && isCallable(fn = input.toString) && !isObject$1(val = fn.call(input))) return val;
213
- throw TypeError("Can't convert object to primitive value");
249
+ if (pref === 'string' && isCallable(fn = input.toString) && !isObject$1(val = functionCall(fn, input))) return val;
250
+ if (isCallable(fn = input.valueOf) && !isObject$1(val = functionCall(fn, input))) return val;
251
+ if (pref !== 'string' && isCallable(fn = input.toString) && !isObject$1(val = functionCall(fn, input))) return val;
252
+ throw TypeError$j("Can't convert object to primitive value");
214
253
  };
215
254
 
255
+ // eslint-disable-next-line es/no-object-defineproperty -- safe
256
+ var defineProperty$a = Object.defineProperty;
257
+
216
258
  var setGlobal = function (key, value) {
217
259
  try {
218
- // eslint-disable-next-line es/no-object-defineproperty -- safe
219
- Object.defineProperty(global_1, key, { value: value, configurable: true, writable: true });
260
+ defineProperty$a(global_1, key, { value: value, configurable: true, writable: true });
220
261
  } catch (error) {
221
262
  global_1[key] = value;
222
263
  } return value;
@@ -231,45 +272,55 @@
231
272
  (module.exports = function (key, value) {
232
273
  return sharedStore[key] || (sharedStore[key] = value !== undefined ? value : {});
233
274
  })('versions', []).push({
234
- version: '3.18.0',
275
+ version: '3.19.0',
235
276
  mode: 'global',
236
277
  copyright: '© 2021 Denis Pushkarev (zloirock.ru)'
237
278
  });
238
279
  });
239
280
 
281
+ var Object$3 = global_1.Object;
282
+
240
283
  // `ToObject` abstract operation
241
284
  // https://tc39.es/ecma262/#sec-toobject
242
285
  var toObject = function (argument) {
243
- return Object(requireObjectCoercible(argument));
286
+ return Object$3(requireObjectCoercible(argument));
244
287
  };
245
288
 
246
- var hasOwnProperty$1 = {}.hasOwnProperty;
289
+ var hasOwnProperty$1 = functionUncurryThis({}.hasOwnProperty);
247
290
 
248
- var has$1 = Object.hasOwn || function hasOwn(it, key) {
249
- return hasOwnProperty$1.call(toObject(it), key);
291
+ // `HasOwnProperty` abstract operation
292
+ // https://tc39.es/ecma262/#sec-hasownproperty
293
+ var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
294
+ return hasOwnProperty$1(toObject(it), key);
250
295
  };
251
296
 
252
297
  var id = 0;
253
298
  var postfix = Math.random();
299
+ var toString$3 = functionUncurryThis(1.0.toString);
254
300
 
255
301
  var uid = function (key) {
256
- return 'Symbol(' + String(key === undefined ? '' : key) + ')_' + (++id + postfix).toString(36);
302
+ return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$3(++id + postfix, 36);
257
303
  };
258
304
 
259
305
  var WellKnownSymbolsStore$1 = shared('wks');
260
306
  var Symbol$1 = global_1.Symbol;
307
+ var symbolFor = Symbol$1 && Symbol$1['for'];
261
308
  var createWellKnownSymbol = useSymbolAsUid ? Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid;
262
309
 
263
310
  var wellKnownSymbol = function (name) {
264
- if (!has$1(WellKnownSymbolsStore$1, name) || !(nativeSymbol$1 || typeof WellKnownSymbolsStore$1[name] == 'string')) {
265
- if (nativeSymbol$1 && has$1(Symbol$1, name)) {
311
+ if (!hasOwnProperty_1(WellKnownSymbolsStore$1, name) || !(nativeSymbol || typeof WellKnownSymbolsStore$1[name] == 'string')) {
312
+ var description = 'Symbol.' + name;
313
+ if (nativeSymbol && hasOwnProperty_1(Symbol$1, name)) {
266
314
  WellKnownSymbolsStore$1[name] = Symbol$1[name];
315
+ } else if (useSymbolAsUid && symbolFor) {
316
+ WellKnownSymbolsStore$1[name] = symbolFor(description);
267
317
  } else {
268
- WellKnownSymbolsStore$1[name] = createWellKnownSymbol('Symbol.' + name);
318
+ WellKnownSymbolsStore$1[name] = createWellKnownSymbol(description);
269
319
  }
270
320
  } return WellKnownSymbolsStore$1[name];
271
321
  };
272
322
 
323
+ var TypeError$i = global_1.TypeError;
273
324
  var TO_PRIMITIVE$1 = wellKnownSymbol('toPrimitive');
274
325
 
275
326
  // `ToPrimitive` abstract operation
@@ -280,9 +331,9 @@
280
331
  var result;
281
332
  if (exoticToPrim) {
282
333
  if (pref === undefined) pref = 'default';
283
- result = exoticToPrim.call(input, pref);
334
+ result = functionCall(exoticToPrim, input, pref);
284
335
  if (!isObject$1(result) || isSymbol$1(result)) return result;
285
- throw TypeError("Can't convert object to primitive value");
336
+ throw TypeError$i("Can't convert object to primitive value");
286
337
  }
287
338
  if (pref === undefined) pref = 'number';
288
339
  return ordinaryToPrimitive(input, pref);
@@ -292,7 +343,7 @@
292
343
  // https://tc39.es/ecma262/#sec-topropertykey
293
344
  var toPropertyKey = function (argument) {
294
345
  var key = toPrimitive(argument, 'string');
295
- return isSymbol$1(key) ? key : String(key);
346
+ return isSymbol$1(key) ? key : key + '';
296
347
  };
297
348
 
298
349
  var document$3 = global_1.document;
@@ -322,19 +373,23 @@
322
373
  if (ie8DomDefine) try {
323
374
  return $getOwnPropertyDescriptor$1(O, P);
324
375
  } catch (error) { /* empty */ }
325
- if (has$1(O, P)) return createPropertyDescriptor(!objectPropertyIsEnumerable.f.call(O, P), O[P]);
376
+ if (hasOwnProperty_1(O, P)) return createPropertyDescriptor(!functionCall(objectPropertyIsEnumerable.f, O, P), O[P]);
326
377
  };
327
378
 
328
379
  var objectGetOwnPropertyDescriptor = {
329
380
  f: f$6
330
381
  };
331
382
 
383
+ var String$5 = global_1.String;
384
+ var TypeError$h = global_1.TypeError;
385
+
332
386
  // `Assert: Type(argument) is Object`
333
387
  var anObject = function (argument) {
334
388
  if (isObject$1(argument)) return argument;
335
- throw TypeError(String(argument) + ' is not an object');
389
+ throw TypeError$h(String$5(argument) + ' is not an object');
336
390
  };
337
391
 
392
+ var TypeError$g = global_1.TypeError;
338
393
  // eslint-disable-next-line es/no-object-defineproperty -- safe
339
394
  var $defineProperty$1 = Object.defineProperty;
340
395
 
@@ -347,7 +402,7 @@
347
402
  if (ie8DomDefine) try {
348
403
  return $defineProperty$1(O, P, Attributes);
349
404
  } catch (error) { /* empty */ }
350
- if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported');
405
+ if ('get' in Attributes || 'set' in Attributes) throw TypeError$g('Accessors not supported');
351
406
  if ('value' in Attributes) O[P] = Attributes.value;
352
407
  return O;
353
408
  };
@@ -363,12 +418,12 @@
363
418
  return object;
364
419
  };
365
420
 
366
- var functionToString = Function.toString;
421
+ var functionToString$1 = functionUncurryThis(Function.toString);
367
422
 
368
423
  // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
369
424
  if (!isCallable(sharedStore.inspectSource)) {
370
425
  sharedStore.inspectSource = function (it) {
371
- return functionToString.call(it);
426
+ return functionToString$1(it);
372
427
  };
373
428
  }
374
429
 
@@ -387,6 +442,7 @@
387
442
  var hiddenKeys$1 = {};
388
443
 
389
444
  var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
445
+ var TypeError$f = global_1.TypeError;
390
446
  var WeakMap = global_1.WeakMap;
391
447
  var set$2, get$1, has;
392
448
 
@@ -398,42 +454,42 @@
398
454
  return function (it) {
399
455
  var state;
400
456
  if (!isObject$1(it) || (state = get$1(it)).type !== TYPE) {
401
- throw TypeError('Incompatible receiver, ' + TYPE + ' required');
457
+ throw TypeError$f('Incompatible receiver, ' + TYPE + ' required');
402
458
  } return state;
403
459
  };
404
460
  };
405
461
 
406
462
  if (nativeWeakMap || sharedStore.state) {
407
463
  var store = sharedStore.state || (sharedStore.state = new WeakMap());
408
- var wmget = store.get;
409
- var wmhas = store.has;
410
- var wmset = store.set;
464
+ var wmget = functionUncurryThis(store.get);
465
+ var wmhas = functionUncurryThis(store.has);
466
+ var wmset = functionUncurryThis(store.set);
411
467
  set$2 = function (it, metadata) {
412
- if (wmhas.call(store, it)) throw new TypeError(OBJECT_ALREADY_INITIALIZED);
468
+ if (wmhas(store, it)) throw new TypeError$f(OBJECT_ALREADY_INITIALIZED);
413
469
  metadata.facade = it;
414
- wmset.call(store, it, metadata);
470
+ wmset(store, it, metadata);
415
471
  return metadata;
416
472
  };
417
473
  get$1 = function (it) {
418
- return wmget.call(store, it) || {};
474
+ return wmget(store, it) || {};
419
475
  };
420
476
  has = function (it) {
421
- return wmhas.call(store, it);
477
+ return wmhas(store, it);
422
478
  };
423
479
  } else {
424
480
  var STATE = sharedKey('state');
425
481
  hiddenKeys$1[STATE] = true;
426
482
  set$2 = function (it, metadata) {
427
- if (has$1(it, STATE)) throw new TypeError(OBJECT_ALREADY_INITIALIZED);
483
+ if (hasOwnProperty_1(it, STATE)) throw new TypeError$f(OBJECT_ALREADY_INITIALIZED);
428
484
  metadata.facade = it;
429
485
  createNonEnumerableProperty(it, STATE, metadata);
430
486
  return metadata;
431
487
  };
432
488
  get$1 = function (it) {
433
- return has$1(it, STATE) ? it[STATE] : {};
489
+ return hasOwnProperty_1(it, STATE) ? it[STATE] : {};
434
490
  };
435
491
  has = function (it) {
436
- return has$1(it, STATE);
492
+ return hasOwnProperty_1(it, STATE);
437
493
  };
438
494
  }
439
495
 
@@ -445,14 +501,14 @@
445
501
  getterFor: getterFor
446
502
  };
447
503
 
448
- var FunctionPrototype$1 = Function.prototype;
504
+ var FunctionPrototype$2 = Function.prototype;
449
505
  // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
450
506
  var getDescriptor = descriptors && Object.getOwnPropertyDescriptor;
451
507
 
452
- var EXISTS = has$1(FunctionPrototype$1, 'name');
508
+ var EXISTS = hasOwnProperty_1(FunctionPrototype$2, 'name');
453
509
  // additional protection from minified / mangled / dropped function names
454
510
  var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
455
- var CONFIGURABLE = EXISTS && (!descriptors || (descriptors && getDescriptor(FunctionPrototype$1, 'name').configurable));
511
+ var CONFIGURABLE = EXISTS && (!descriptors || (descriptors && getDescriptor(FunctionPrototype$2, 'name').configurable));
456
512
 
457
513
  var functionName = {
458
514
  EXISTS: EXISTS,
@@ -477,7 +533,7 @@
477
533
  if (String(name).slice(0, 7) === 'Symbol(') {
478
534
  name = '[' + String(name).replace(/^Symbol\(([^)]*)\)/, '$1') + ']';
479
535
  }
480
- if (!has$1(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {
536
+ if (!hasOwnProperty_1(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {
481
537
  createNonEnumerableProperty(value, 'name', name);
482
538
  }
483
539
  state = enforceInternalState(value);
@@ -505,36 +561,44 @@
505
561
  var ceil = Math.ceil;
506
562
  var floor$6 = Math.floor;
507
563
 
508
- // `ToInteger` abstract operation
509
- // https://tc39.es/ecma262/#sec-tointeger
510
- var toInteger = function (argument) {
511
- return isNaN(argument = +argument) ? 0 : (argument > 0 ? floor$6 : ceil)(argument);
564
+ // `ToIntegerOrInfinity` abstract operation
565
+ // https://tc39.es/ecma262/#sec-tointegerorinfinity
566
+ var toIntegerOrInfinity = function (argument) {
567
+ var number = +argument;
568
+ // eslint-disable-next-line no-self-compare -- safe
569
+ return number !== number || number === 0 ? 0 : (number > 0 ? floor$6 : ceil)(number);
512
570
  };
513
571
 
572
+ var max$3 = Math.max;
514
573
  var min$7 = Math.min;
515
574
 
575
+ // Helper for a popular repeating case of the spec:
576
+ // Let integer be ? ToInteger(index).
577
+ // If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
578
+ var toAbsoluteIndex = function (index, length) {
579
+ var integer = toIntegerOrInfinity(index);
580
+ return integer < 0 ? max$3(integer + length, 0) : min$7(integer, length);
581
+ };
582
+
583
+ var min$6 = Math.min;
584
+
516
585
  // `ToLength` abstract operation
517
586
  // https://tc39.es/ecma262/#sec-tolength
518
587
  var toLength = function (argument) {
519
- return argument > 0 ? min$7(toInteger(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
588
+ return argument > 0 ? min$6(toIntegerOrInfinity(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
520
589
  };
521
590
 
522
- var max$3 = Math.max;
523
- var min$6 = Math.min;
524
-
525
- // Helper for a popular repeating case of the spec:
526
- // Let integer be ? ToInteger(index).
527
- // If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
528
- var toAbsoluteIndex = function (index, length) {
529
- var integer = toInteger(index);
530
- return integer < 0 ? max$3(integer + length, 0) : min$6(integer, length);
591
+ // `LengthOfArrayLike` abstract operation
592
+ // https://tc39.es/ecma262/#sec-lengthofarraylike
593
+ var lengthOfArrayLike = function (obj) {
594
+ return toLength(obj.length);
531
595
  };
532
596
 
533
597
  // `Array.prototype.{ indexOf, includes }` methods implementation
534
598
  var createMethod$5 = function (IS_INCLUDES) {
535
599
  return function ($this, el, fromIndex) {
536
600
  var O = toIndexedObject($this);
537
- var length = toLength(O.length);
601
+ var length = lengthOfArrayLike(O);
538
602
  var index = toAbsoluteIndex(fromIndex, length);
539
603
  var value;
540
604
  // Array#includes uses SameValueZero equality algorithm
@@ -559,18 +623,20 @@
559
623
  indexOf: createMethod$5(false)
560
624
  };
561
625
 
562
- var indexOf$1 = arrayIncludes.indexOf;
626
+ var indexOf$2 = arrayIncludes.indexOf;
563
627
 
564
628
 
629
+ var push$6 = functionUncurryThis([].push);
630
+
565
631
  var objectKeysInternal = function (object, names) {
566
632
  var O = toIndexedObject(object);
567
633
  var i = 0;
568
634
  var result = [];
569
635
  var key;
570
- for (key in O) !has$1(hiddenKeys$1, key) && has$1(O, key) && result.push(key);
636
+ for (key in O) !hasOwnProperty_1(hiddenKeys$1, key) && hasOwnProperty_1(O, key) && push$6(result, key);
571
637
  // Don't enum bug & hidden keys
572
- while (names.length > i) if (has$1(O, key = names[i++])) {
573
- ~indexOf$1(result, key) || result.push(key);
638
+ while (names.length > i) if (hasOwnProperty_1(O, key = names[i++])) {
639
+ ~indexOf$2(result, key) || push$6(result, key);
574
640
  }
575
641
  return result;
576
642
  };
@@ -606,11 +672,13 @@
606
672
  f: f$3
607
673
  };
608
674
 
675
+ var concat$2 = functionUncurryThis([].concat);
676
+
609
677
  // all object keys, includes non-enumerable and symbols
610
678
  var ownKeys$1 = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {
611
679
  var keys = objectGetOwnPropertyNames.f(anObject(it));
612
680
  var getOwnPropertySymbols = objectGetOwnPropertySymbols.f;
613
- return getOwnPropertySymbols ? keys.concat(getOwnPropertySymbols(it)) : keys;
681
+ return getOwnPropertySymbols ? concat$2(keys, getOwnPropertySymbols(it)) : keys;
614
682
  };
615
683
 
616
684
  var copyConstructorProperties = function (target, source) {
@@ -619,7 +687,7 @@
619
687
  var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
620
688
  for (var i = 0; i < keys.length; i++) {
621
689
  var key = keys[i];
622
- if (!has$1(target, key)) defineProperty(target, key, getOwnPropertyDescriptor(source, key));
690
+ if (!hasOwnProperty_1(target, key)) defineProperty(target, key, getOwnPropertyDescriptor(source, key));
623
691
  }
624
692
  };
625
693
 
@@ -686,7 +754,7 @@
686
754
  FORCED = isForced_1(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
687
755
  // contained in target
688
756
  if (!FORCED && targetProperty !== undefined) {
689
- if (typeof sourceProperty === typeof targetProperty) continue;
757
+ if (typeof sourceProperty == typeof targetProperty) continue;
690
758
  copyConstructorProperties(sourceProperty, targetProperty);
691
759
  }
692
760
  // add a flag to not completely full polyfills
@@ -713,6 +781,8 @@
713
781
  var toStringTagSupport = String(test$2) === '[object z]';
714
782
 
715
783
  var TO_STRING_TAG$3 = wellKnownSymbol('toStringTag');
784
+ var Object$2 = global_1.Object;
785
+
716
786
  // ES3 wrong here
717
787
  var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments';
718
788
 
@@ -728,23 +798,24 @@
728
798
  var O, tag, result;
729
799
  return it === undefined ? 'Undefined' : it === null ? 'Null'
730
800
  // @@toStringTag case
731
- : typeof (tag = tryGet(O = Object(it), TO_STRING_TAG$3)) == 'string' ? tag
801
+ : typeof (tag = tryGet(O = Object$2(it), TO_STRING_TAG$3)) == 'string' ? tag
732
802
  // builtinTag case
733
803
  : CORRECT_ARGUMENTS ? classofRaw(O)
734
804
  // ES3 arguments fallback
735
805
  : (result = classofRaw(O)) == 'Object' && isCallable(O.callee) ? 'Arguments' : result;
736
806
  };
737
807
 
808
+ var noop$2 = function () { /* empty */ };
738
809
  var empty = [];
739
810
  var construct = getBuiltIn('Reflect', 'construct');
740
811
  var constructorRegExp = /^\s*(?:class|function)\b/;
741
- var exec = constructorRegExp.exec;
742
- var INCORRECT_TO_STRING = !constructorRegExp.exec(function () { /* empty */ });
812
+ var exec$2 = functionUncurryThis(constructorRegExp.exec);
813
+ var INCORRECT_TO_STRING = !constructorRegExp.exec(noop$2);
743
814
 
744
815
  var isConstructorModern = function (argument) {
745
816
  if (!isCallable(argument)) return false;
746
817
  try {
747
- construct(Object, empty, argument);
818
+ construct(noop$2, empty, argument);
748
819
  return true;
749
820
  } catch (error) {
750
821
  return false;
@@ -758,7 +829,7 @@
758
829
  case 'GeneratorFunction':
759
830
  case 'AsyncGeneratorFunction': return false;
760
831
  // we can't check .prototype since constructors produced by .bind haven't it
761
- } return INCORRECT_TO_STRING || !!exec.call(constructorRegExp, inspectSource(argument));
832
+ } return INCORRECT_TO_STRING || !!exec$2(constructorRegExp, inspectSource(argument));
762
833
  };
763
834
 
764
835
  // `IsConstructor` abstract operation
@@ -772,6 +843,7 @@
772
843
  }) ? isConstructorLegacy : isConstructorModern;
773
844
 
774
845
  var SPECIES$6 = wellKnownSymbol('species');
846
+ var Array$6 = global_1.Array;
775
847
 
776
848
  // a part of `ArraySpeciesCreate` abstract operation
777
849
  // https://tc39.es/ecma262/#sec-arrayspeciescreate
@@ -780,12 +852,12 @@
780
852
  if (isArray$3(originalArray)) {
781
853
  C = originalArray.constructor;
782
854
  // cross-realm fallback
783
- if (isConstructor(C) && (C === Array || isArray$3(C.prototype))) C = undefined;
855
+ if (isConstructor(C) && (C === Array$6 || isArray$3(C.prototype))) C = undefined;
784
856
  else if (isObject$1(C)) {
785
857
  C = C[SPECIES$6];
786
858
  if (C === null) C = undefined;
787
859
  }
788
- } return C === undefined ? Array : C;
860
+ } return C === undefined ? Array$6 : C;
789
861
  };
790
862
 
791
863
  // `ArraySpeciesCreate` abstract operation
@@ -818,6 +890,7 @@
818
890
 
819
891
  var HAS_SPECIES_SUPPORT$3 = arrayMethodHasSpeciesSupport('splice');
820
892
 
893
+ var TypeError$e = global_1.TypeError;
821
894
  var max$2 = Math.max;
822
895
  var min$5 = Math.min;
823
896
  var MAX_SAFE_INTEGER$1 = 0x1FFFFFFFFFFFFF;
@@ -829,7 +902,7 @@
829
902
  _export({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT$3 }, {
830
903
  splice: function splice(start, deleteCount /* , ...items */) {
831
904
  var O = toObject(this);
832
- var len = toLength(O.length);
905
+ var len = lengthOfArrayLike(O);
833
906
  var actualStart = toAbsoluteIndex(start, len);
834
907
  var argumentsLength = arguments.length;
835
908
  var insertCount, actualDeleteCount, A, k, from, to;
@@ -840,10 +913,10 @@
840
913
  actualDeleteCount = len - actualStart;
841
914
  } else {
842
915
  insertCount = argumentsLength - 2;
843
- actualDeleteCount = min$5(max$2(toInteger(deleteCount), 0), len - actualStart);
916
+ actualDeleteCount = min$5(max$2(toIntegerOrInfinity(deleteCount), 0), len - actualStart);
844
917
  }
845
918
  if (len + insertCount - actualDeleteCount > MAX_SAFE_INTEGER$1) {
846
- throw TypeError(MAXIMUM_ALLOWED_LENGTH_EXCEEDED);
919
+ throw TypeError$e(MAXIMUM_ALLOWED_LENGTH_EXCEEDED);
847
920
  }
848
921
  A = arraySpeciesCreate(O, actualDeleteCount);
849
922
  for (k = 0; k < actualDeleteCount; k++) {
@@ -919,30 +992,17 @@
919
992
 
920
993
  var domTokenListPrototype = DOMTokenListPrototype === Object.prototype ? undefined : DOMTokenListPrototype;
921
994
 
995
+ var bind$2 = functionUncurryThis(functionUncurryThis.bind);
996
+
922
997
  // optional / simple context binding
923
- var functionBindContext = function (fn, that, length) {
998
+ var functionBindContext = function (fn, that) {
924
999
  aCallable(fn);
925
- if (that === undefined) return fn;
926
- switch (length) {
927
- case 0: return function () {
928
- return fn.call(that);
929
- };
930
- case 1: return function (a) {
931
- return fn.call(that, a);
932
- };
933
- case 2: return function (a, b) {
934
- return fn.call(that, a, b);
935
- };
936
- case 3: return function (a, b, c) {
937
- return fn.call(that, a, b, c);
938
- };
939
- }
940
- return function (/* ...args */) {
1000
+ return that === undefined ? fn : bind$2 ? bind$2(fn, that) : function (/* ...args */) {
941
1001
  return fn.apply(that, arguments);
942
1002
  };
943
1003
  };
944
1004
 
945
- var push = [].push;
1005
+ var push$5 = functionUncurryThis([].push);
946
1006
 
947
1007
  // `Array.prototype.{ forEach, map, filter, some, every, find, findIndex, filterReject }` methods implementation
948
1008
  var createMethod$4 = function (TYPE) {
@@ -956,8 +1016,8 @@
956
1016
  return function ($this, callbackfn, that, specificCreate) {
957
1017
  var O = toObject($this);
958
1018
  var self = indexedObject(O);
959
- var boundFunction = functionBindContext(callbackfn, that, 3);
960
- var length = toLength(self.length);
1019
+ var boundFunction = functionBindContext(callbackfn, that);
1020
+ var length = lengthOfArrayLike(self);
961
1021
  var index = 0;
962
1022
  var create = specificCreate || arraySpeciesCreate;
963
1023
  var target = IS_MAP ? create($this, length) : IS_FILTER || IS_FILTER_REJECT ? create($this, 0) : undefined;
@@ -971,10 +1031,10 @@
971
1031
  case 3: return true; // some
972
1032
  case 5: return value; // find
973
1033
  case 6: return index; // findIndex
974
- case 2: push.call(target, value); // filter
1034
+ case 2: push$5(target, value); // filter
975
1035
  } else switch (TYPE) {
976
1036
  case 4: return false; // every
977
- case 7: push.call(target, value); // filterReject
1037
+ case 7: push$5(target, value); // filterReject
978
1038
  }
979
1039
  }
980
1040
  }
@@ -1039,7 +1099,9 @@
1039
1099
  };
1040
1100
 
1041
1101
  for (var COLLECTION_NAME$1 in domIterables) {
1042
- handlePrototype$1(global_1[COLLECTION_NAME$1] && global_1[COLLECTION_NAME$1].prototype);
1102
+ if (domIterables[COLLECTION_NAME$1]) {
1103
+ handlePrototype$1(global_1[COLLECTION_NAME$1] && global_1[COLLECTION_NAME$1].prototype);
1104
+ }
1043
1105
  }
1044
1106
 
1045
1107
  handlePrototype$1(domTokenListPrototype);
@@ -1075,9 +1137,11 @@
1075
1137
  }
1076
1138
  });
1077
1139
 
1140
+ var String$4 = global_1.String;
1141
+
1078
1142
  var toString_1 = function (argument) {
1079
1143
  if (classof(argument) === 'Symbol') throw TypeError('Cannot convert a Symbol value to a string');
1080
- return String(argument);
1144
+ return String$4(argument);
1081
1145
  };
1082
1146
 
1083
1147
  // `RegExp.prototype.flags` getter implementation
@@ -1120,11 +1184,12 @@
1120
1184
  // eslint-disable-next-line es/no-object-defineproperties -- safe
1121
1185
  var objectDefineProperties = descriptors ? Object.defineProperties : function defineProperties(O, Properties) {
1122
1186
  anObject(O);
1187
+ var props = toIndexedObject(Properties);
1123
1188
  var keys = objectKeys(Properties);
1124
1189
  var length = keys.length;
1125
1190
  var index = 0;
1126
1191
  var key;
1127
- while (length > index) objectDefineProperty.f(O, key = keys[index++], Properties[key]);
1192
+ while (length > index) objectDefineProperty.f(O, key = keys[index++], props[key]);
1128
1193
  return O;
1129
1194
  };
1130
1195
 
@@ -1237,20 +1302,25 @@
1237
1302
 
1238
1303
 
1239
1304
 
1305
+
1306
+
1240
1307
  var getInternalState$5 = internalState.get;
1241
1308
 
1242
1309
 
1243
1310
 
1244
- var nativeExec = RegExp.prototype.exec;
1245
1311
  var nativeReplace = shared('native-string-replace', String.prototype.replace);
1246
-
1312
+ var nativeExec = RegExp.prototype.exec;
1247
1313
  var patchedExec = nativeExec;
1314
+ var charAt$5 = functionUncurryThis(''.charAt);
1315
+ var indexOf$1 = functionUncurryThis(''.indexOf);
1316
+ var replace$4 = functionUncurryThis(''.replace);
1317
+ var stringSlice$7 = functionUncurryThis(''.slice);
1248
1318
 
1249
1319
  var UPDATES_LAST_INDEX_WRONG = (function () {
1250
1320
  var re1 = /a/;
1251
1321
  var re2 = /b*/g;
1252
- nativeExec.call(re1, 'a');
1253
- nativeExec.call(re2, 'a');
1322
+ functionCall(nativeExec, re1, 'a');
1323
+ functionCall(nativeExec, re2, 'a');
1254
1324
  return re1.lastIndex !== 0 || re2.lastIndex !== 0;
1255
1325
  })();
1256
1326
 
@@ -1272,27 +1342,27 @@
1272
1342
 
1273
1343
  if (raw) {
1274
1344
  raw.lastIndex = re.lastIndex;
1275
- result = patchedExec.call(raw, str);
1345
+ result = functionCall(patchedExec, raw, str);
1276
1346
  re.lastIndex = raw.lastIndex;
1277
1347
  return result;
1278
1348
  }
1279
1349
 
1280
1350
  var groups = state.groups;
1281
1351
  var sticky = UNSUPPORTED_Y$2 && re.sticky;
1282
- var flags = regexpFlags.call(re);
1352
+ var flags = functionCall(regexpFlags, re);
1283
1353
  var source = re.source;
1284
1354
  var charsAdded = 0;
1285
1355
  var strCopy = str;
1286
1356
 
1287
1357
  if (sticky) {
1288
- flags = flags.replace('y', '');
1289
- if (flags.indexOf('g') === -1) {
1358
+ flags = replace$4(flags, 'y', '');
1359
+ if (indexOf$1(flags, 'g') === -1) {
1290
1360
  flags += 'g';
1291
1361
  }
1292
1362
 
1293
- strCopy = str.slice(re.lastIndex);
1363
+ strCopy = stringSlice$7(str, re.lastIndex);
1294
1364
  // Support anchored sticky behavior.
1295
- if (re.lastIndex > 0 && (!re.multiline || re.multiline && str.charAt(re.lastIndex - 1) !== '\n')) {
1365
+ if (re.lastIndex > 0 && (!re.multiline || re.multiline && charAt$5(str, re.lastIndex - 1) !== '\n')) {
1296
1366
  source = '(?: ' + source + ')';
1297
1367
  strCopy = ' ' + strCopy;
1298
1368
  charsAdded++;
@@ -1307,12 +1377,12 @@
1307
1377
  }
1308
1378
  if (UPDATES_LAST_INDEX_WRONG) lastIndex = re.lastIndex;
1309
1379
 
1310
- match = nativeExec.call(sticky ? reCopy : re, strCopy);
1380
+ match = functionCall(nativeExec, sticky ? reCopy : re, strCopy);
1311
1381
 
1312
1382
  if (sticky) {
1313
1383
  if (match) {
1314
- match.input = match.input.slice(charsAdded);
1315
- match[0] = match[0].slice(charsAdded);
1384
+ match.input = stringSlice$7(match.input, charsAdded);
1385
+ match[0] = stringSlice$7(match[0], charsAdded);
1316
1386
  match.index = re.lastIndex;
1317
1387
  re.lastIndex += match[0].length;
1318
1388
  } else re.lastIndex = 0;
@@ -1322,7 +1392,7 @@
1322
1392
  if (NPCG_INCLUDED && match && match.length > 1) {
1323
1393
  // Fix browsers whose `exec` methods don't consistently return `undefined`
1324
1394
  // for NPCG, like IE8. NOTE: This doesn' work for /(.?)?/
1325
- nativeReplace.call(match[0], reCopy, function () {
1395
+ functionCall(nativeReplace, match[0], reCopy, function () {
1326
1396
  for (i = 1; i < arguments.length - 2; i++) {
1327
1397
  if (arguments[i] === undefined) match[i] = undefined;
1328
1398
  }
@@ -1357,6 +1427,7 @@
1357
1427
 
1358
1428
 
1359
1429
 
1430
+
1360
1431
  var SPECIES$4 = wellKnownSymbol('species');
1361
1432
  var RegExpPrototype$2 = RegExp.prototype;
1362
1433
 
@@ -1399,17 +1470,18 @@
1399
1470
  !DELEGATES_TO_EXEC ||
1400
1471
  FORCED
1401
1472
  ) {
1402
- var nativeRegExpMethod = /./[SYMBOL];
1473
+ var uncurriedNativeRegExpMethod = functionUncurryThis(/./[SYMBOL]);
1403
1474
  var methods = exec(SYMBOL, ''[KEY], function (nativeMethod, regexp, str, arg2, forceStringMethod) {
1475
+ var uncurriedNativeMethod = functionUncurryThis(nativeMethod);
1404
1476
  var $exec = regexp.exec;
1405
1477
  if ($exec === regexpExec || $exec === RegExpPrototype$2.exec) {
1406
1478
  if (DELEGATES_TO_SYMBOL && !forceStringMethod) {
1407
1479
  // The native String method already delegates to @@method (this
1408
1480
  // polyfilled function), leasing to infinite recursion.
1409
1481
  // We avoid it by directly calling the native @@method method.
1410
- return { done: true, value: nativeRegExpMethod.call(regexp, str, arg2) };
1482
+ return { done: true, value: uncurriedNativeRegExpMethod(regexp, str, arg2) };
1411
1483
  }
1412
- return { done: true, value: nativeMethod.call(str, regexp, arg2) };
1484
+ return { done: true, value: uncurriedNativeMethod(str, regexp, arg2) };
1413
1485
  }
1414
1486
  return { done: false };
1415
1487
  });
@@ -1429,17 +1501,19 @@
1429
1501
  return x === y ? x !== 0 || 1 / x === 1 / y : x != x && y != y;
1430
1502
  };
1431
1503
 
1504
+ var TypeError$d = global_1.TypeError;
1505
+
1432
1506
  // `RegExpExec` abstract operation
1433
1507
  // https://tc39.es/ecma262/#sec-regexpexec
1434
1508
  var regexpExecAbstract = function (R, S) {
1435
1509
  var exec = R.exec;
1436
1510
  if (isCallable(exec)) {
1437
- var result = exec.call(R, S);
1511
+ var result = functionCall(exec, R, S);
1438
1512
  if (result !== null) anObject(result);
1439
1513
  return result;
1440
1514
  }
1441
- if (classofRaw(R) === 'RegExp') return regexpExec.call(R, S);
1442
- throw TypeError('RegExp#exec called on incompatible receiver');
1515
+ if (classofRaw(R) === 'RegExp') return functionCall(regexpExec, R, S);
1516
+ throw TypeError$d('RegExp#exec called on incompatible receiver');
1443
1517
  };
1444
1518
 
1445
1519
  // @@search logic
@@ -1450,7 +1524,7 @@
1450
1524
  function search(regexp) {
1451
1525
  var O = requireObjectCoercible(this);
1452
1526
  var searcher = regexp == undefined ? undefined : getMethod(regexp, SEARCH);
1453
- return searcher ? searcher.call(regexp, O) : new RegExp(regexp)[SEARCH](toString_1(O));
1527
+ return searcher ? functionCall(searcher, regexp, O) : new RegExp(regexp)[SEARCH](toString_1(O));
1454
1528
  },
1455
1529
  // `RegExp.prototype[@@search]` method
1456
1530
  // https://tc39.es/ecma262/#sec-regexp.prototype-@@search
@@ -1473,6 +1547,7 @@
1473
1547
  var IS_CONCAT_SPREADABLE = wellKnownSymbol('isConcatSpreadable');
1474
1548
  var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF;
1475
1549
  var MAXIMUM_ALLOWED_INDEX_EXCEEDED = 'Maximum allowed index exceeded';
1550
+ var TypeError$c = global_1.TypeError;
1476
1551
 
1477
1552
  // We can't use this feature detection in V8 since it causes
1478
1553
  // deoptimization and serious performance degradation
@@ -1506,11 +1581,11 @@
1506
1581
  for (i = -1, length = arguments.length; i < length; i++) {
1507
1582
  E = i === -1 ? O : arguments[i];
1508
1583
  if (isConcatSpreadable(E)) {
1509
- len = toLength(E.length);
1510
- if (n + len > MAX_SAFE_INTEGER) throw TypeError(MAXIMUM_ALLOWED_INDEX_EXCEEDED);
1584
+ len = lengthOfArrayLike(E);
1585
+ if (n + len > MAX_SAFE_INTEGER) throw TypeError$c(MAXIMUM_ALLOWED_INDEX_EXCEEDED);
1511
1586
  for (k = 0; k < len; k++, n++) if (k in E) createProperty(A, n, E[k]);
1512
1587
  } else {
1513
- if (n >= MAX_SAFE_INTEGER) throw TypeError(MAXIMUM_ALLOWED_INDEX_EXCEEDED);
1588
+ if (n >= MAX_SAFE_INTEGER) throw TypeError$c(MAXIMUM_ALLOWED_INDEX_EXCEEDED);
1514
1589
  createProperty(A, n++, E);
1515
1590
  }
1516
1591
  }
@@ -1782,13 +1857,15 @@
1782
1857
 
1783
1858
 
1784
1859
 
1860
+
1785
1861
  var TO_STRING = 'toString';
1786
1862
  var RegExpPrototype$1 = RegExp.prototype;
1787
- var nativeToString = RegExpPrototype$1[TO_STRING];
1863
+ var n$ToString = RegExpPrototype$1[TO_STRING];
1864
+ var getFlags$1 = functionUncurryThis(regexpFlags);
1788
1865
 
1789
- var NOT_GENERIC = fails(function () { return nativeToString.call({ source: 'a', flags: 'b' }) != '/a/b'; });
1866
+ var NOT_GENERIC = fails(function () { return n$ToString.call({ source: 'a', flags: 'b' }) != '/a/b'; });
1790
1867
  // FF44- RegExp#toString has a wrong name
1791
- var INCORRECT_NAME = PROPER_FUNCTION_NAME$4 && nativeToString.name != TO_STRING;
1868
+ var INCORRECT_NAME = PROPER_FUNCTION_NAME$4 && n$ToString.name != TO_STRING;
1792
1869
 
1793
1870
  // `RegExp.prototype.toString` method
1794
1871
  // https://tc39.es/ecma262/#sec-regexp.prototype.tostring
@@ -1797,7 +1874,7 @@
1797
1874
  var R = anObject(this);
1798
1875
  var p = toString_1(R.source);
1799
1876
  var rf = R.flags;
1800
- var f = toString_1(rf === undefined && R instanceof RegExp && !('flags' in RegExpPrototype$1) ? regexpFlags.call(R) : rf);
1877
+ var f = toString_1(rf === undefined && objectIsPrototypeOf(RegExpPrototype$1, R) && !('flags' in RegExpPrototype$1) ? getFlags$1(R) : rf);
1801
1878
  return '/' + p + '/' + f;
1802
1879
  }, { unsafe: true });
1803
1880
  }
@@ -1810,18 +1887,18 @@
1810
1887
  });
1811
1888
 
1812
1889
  var IE_PROTO = sharedKey('IE_PROTO');
1813
- var ObjectPrototype$3 = Object.prototype;
1890
+ var Object$1 = global_1.Object;
1891
+ var ObjectPrototype$3 = Object$1.prototype;
1814
1892
 
1815
1893
  // `Object.getPrototypeOf` method
1816
1894
  // https://tc39.es/ecma262/#sec-object.getprototypeof
1817
- // eslint-disable-next-line es/no-object-getprototypeof -- safe
1818
- var objectGetPrototypeOf = correctPrototypeGetter ? Object.getPrototypeOf : function (O) {
1895
+ var objectGetPrototypeOf = correctPrototypeGetter ? Object$1.getPrototypeOf : function (O) {
1819
1896
  var object = toObject(O);
1820
- if (has$1(object, IE_PROTO)) return object[IE_PROTO];
1897
+ if (hasOwnProperty_1(object, IE_PROTO)) return object[IE_PROTO];
1821
1898
  var constructor = object.constructor;
1822
1899
  if (isCallable(constructor) && object instanceof constructor) {
1823
1900
  return constructor.prototype;
1824
- } return object instanceof Object ? ObjectPrototype$3 : null;
1901
+ } return object instanceof Object$1 ? ObjectPrototype$3 : null;
1825
1902
  };
1826
1903
 
1827
1904
  var FAILS_ON_PRIMITIVES$3 = fails(function () { objectGetPrototypeOf(1); });
@@ -1835,21 +1912,23 @@
1835
1912
  });
1836
1913
 
1837
1914
  var FUNCTION_NAME_EXISTS = functionName.EXISTS;
1915
+
1838
1916
  var defineProperty$9 = objectDefineProperty.f;
1839
1917
 
1840
- var FunctionPrototype = Function.prototype;
1841
- var FunctionPrototypeToString = FunctionPrototype.toString;
1918
+ var FunctionPrototype$1 = Function.prototype;
1919
+ var functionToString = functionUncurryThis(FunctionPrototype$1.toString);
1842
1920
  var nameRE = /^\s*function ([^ (]*)/;
1921
+ var regExpExec = functionUncurryThis(nameRE.exec);
1843
1922
  var NAME$1 = 'name';
1844
1923
 
1845
1924
  // Function instances `.name` property
1846
1925
  // https://tc39.es/ecma262/#sec-function-instances-name
1847
1926
  if (descriptors && !FUNCTION_NAME_EXISTS) {
1848
- defineProperty$9(FunctionPrototype, NAME$1, {
1927
+ defineProperty$9(FunctionPrototype$1, NAME$1, {
1849
1928
  configurable: true,
1850
1929
  get: function () {
1851
1930
  try {
1852
- return FunctionPrototypeToString.call(this).match(nameRE)[1];
1931
+ return regExpExec(nameRE, functionToString(this))[1];
1853
1932
  } catch (error) {
1854
1933
  return '';
1855
1934
  }
@@ -2544,7 +2623,7 @@
2544
2623
  throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
2545
2624
  }
2546
2625
 
2547
- var nativeJoin = [].join;
2626
+ var un$Join = functionUncurryThis([].join);
2548
2627
 
2549
2628
  var ES3_STRINGS = indexedObject != Object;
2550
2629
  var STRICT_METHOD$2 = arrayMethodIsStrict('join', ',');
@@ -2553,23 +2632,40 @@
2553
2632
  // https://tc39.es/ecma262/#sec-array.prototype.join
2554
2633
  _export({ target: 'Array', proto: true, forced: ES3_STRINGS || !STRICT_METHOD$2 }, {
2555
2634
  join: function join(separator) {
2556
- return nativeJoin.call(toIndexedObject(this), separator === undefined ? ',' : separator);
2635
+ return un$Join(toIndexedObject(this), separator === undefined ? ',' : separator);
2557
2636
  }
2558
2637
  });
2559
2638
 
2560
- // `String.prototype.codePointAt` methods implementation
2639
+ var FunctionPrototype = Function.prototype;
2640
+ var apply = FunctionPrototype.apply;
2641
+ var bind$1 = FunctionPrototype.bind;
2642
+ var call = FunctionPrototype.call;
2643
+
2644
+ // eslint-disable-next-line es/no-reflect -- safe
2645
+ var functionApply = typeof Reflect == 'object' && Reflect.apply || (bind$1 ? call.bind(apply) : function () {
2646
+ return call.apply(apply, arguments);
2647
+ });
2648
+
2649
+ var charAt$4 = functionUncurryThis(''.charAt);
2650
+ var charCodeAt$1 = functionUncurryThis(''.charCodeAt);
2651
+ var stringSlice$6 = functionUncurryThis(''.slice);
2652
+
2561
2653
  var createMethod$3 = function (CONVERT_TO_STRING) {
2562
2654
  return function ($this, pos) {
2563
2655
  var S = toString_1(requireObjectCoercible($this));
2564
- var position = toInteger(pos);
2656
+ var position = toIntegerOrInfinity(pos);
2565
2657
  var size = S.length;
2566
2658
  var first, second;
2567
2659
  if (position < 0 || position >= size) return CONVERT_TO_STRING ? '' : undefined;
2568
- first = S.charCodeAt(position);
2660
+ first = charCodeAt$1(S, position);
2569
2661
  return first < 0xD800 || first > 0xDBFF || position + 1 === size
2570
- || (second = S.charCodeAt(position + 1)) < 0xDC00 || second > 0xDFFF
2571
- ? CONVERT_TO_STRING ? S.charAt(position) : first
2572
- : CONVERT_TO_STRING ? S.slice(position, position + 2) : (first - 0xD800 << 10) + (second - 0xDC00) + 0x10000;
2662
+ || (second = charCodeAt$1(S, position + 1)) < 0xDC00 || second > 0xDFFF
2663
+ ? CONVERT_TO_STRING
2664
+ ? charAt$4(S, position)
2665
+ : first
2666
+ : CONVERT_TO_STRING
2667
+ ? stringSlice$6(S, position, position + 2)
2668
+ : (first - 0xD800 << 10) + (second - 0xDC00) + 0x10000;
2573
2669
  };
2574
2670
  };
2575
2671
 
@@ -2582,16 +2678,18 @@
2582
2678
  charAt: createMethod$3(true)
2583
2679
  };
2584
2680
 
2585
- var charAt$1 = stringMultibyte.charAt;
2681
+ var charAt$3 = stringMultibyte.charAt;
2586
2682
 
2587
2683
  // `AdvanceStringIndex` abstract operation
2588
2684
  // https://tc39.es/ecma262/#sec-advancestringindex
2589
2685
  var advanceStringIndex = function (S, index, unicode) {
2590
- return index + (unicode ? charAt$1(S, index).length : 1);
2686
+ return index + (unicode ? charAt$3(S, index).length : 1);
2591
2687
  };
2592
2688
 
2593
2689
  var floor$5 = Math.floor;
2594
- var replace = ''.replace;
2690
+ var charAt$2 = functionUncurryThis(''.charAt);
2691
+ var replace$3 = functionUncurryThis(''.replace);
2692
+ var stringSlice$5 = functionUncurryThis(''.slice);
2595
2693
  var SUBSTITUTION_SYMBOLS = /\$([$&'`]|\d{1,2}|<[^>]*>)/g;
2596
2694
  var SUBSTITUTION_SYMBOLS_NO_NAMED = /\$([$&'`]|\d{1,2})/g;
2597
2695
 
@@ -2605,15 +2703,15 @@
2605
2703
  namedCaptures = toObject(namedCaptures);
2606
2704
  symbols = SUBSTITUTION_SYMBOLS;
2607
2705
  }
2608
- return replace.call(replacement, symbols, function (match, ch) {
2706
+ return replace$3(replacement, symbols, function (match, ch) {
2609
2707
  var capture;
2610
- switch (ch.charAt(0)) {
2708
+ switch (charAt$2(ch, 0)) {
2611
2709
  case '$': return '$';
2612
2710
  case '&': return matched;
2613
- case '`': return str.slice(0, position);
2614
- case "'": return str.slice(tailPos);
2711
+ case '`': return stringSlice$5(str, 0, position);
2712
+ case "'": return stringSlice$5(str, tailPos);
2615
2713
  case '<':
2616
- capture = namedCaptures[ch.slice(1, -1)];
2714
+ capture = namedCaptures[stringSlice$5(ch, 1, -1)];
2617
2715
  break;
2618
2716
  default: // \d\d?
2619
2717
  var n = +ch;
@@ -2621,7 +2719,7 @@
2621
2719
  if (n > m) {
2622
2720
  var f = floor$5(n / 10);
2623
2721
  if (f === 0) return match;
2624
- if (f <= m) return captures[f - 1] === undefined ? ch.charAt(1) : captures[f - 1] + ch.charAt(1);
2722
+ if (f <= m) return captures[f - 1] === undefined ? charAt$2(ch, 1) : captures[f - 1] + charAt$2(ch, 1);
2625
2723
  return match;
2626
2724
  }
2627
2725
  capture = captures[n - 1];
@@ -2633,6 +2731,10 @@
2633
2731
  var REPLACE = wellKnownSymbol('replace');
2634
2732
  var max$1 = Math.max;
2635
2733
  var min$4 = Math.min;
2734
+ var concat$1 = functionUncurryThis([].concat);
2735
+ var push$4 = functionUncurryThis([].push);
2736
+ var stringIndexOf$2 = functionUncurryThis(''.indexOf);
2737
+ var stringSlice$4 = functionUncurryThis(''.slice);
2636
2738
 
2637
2739
  var maybeToString = function (it) {
2638
2740
  return it === undefined ? it : String(it);
@@ -2675,8 +2777,8 @@
2675
2777
  var O = requireObjectCoercible(this);
2676
2778
  var replacer = searchValue == undefined ? undefined : getMethod(searchValue, REPLACE);
2677
2779
  return replacer
2678
- ? replacer.call(searchValue, O, replaceValue)
2679
- : nativeReplace.call(toString_1(O), searchValue, replaceValue);
2780
+ ? functionCall(replacer, searchValue, O, replaceValue)
2781
+ : functionCall(nativeReplace, toString_1(O), searchValue, replaceValue);
2680
2782
  },
2681
2783
  // `RegExp.prototype[@@replace]` method
2682
2784
  // https://tc39.es/ecma262/#sec-regexp.prototype-@@replace
@@ -2685,9 +2787,9 @@
2685
2787
  var S = toString_1(string);
2686
2788
 
2687
2789
  if (
2688
- typeof replaceValue === 'string' &&
2689
- replaceValue.indexOf(UNSAFE_SUBSTITUTE) === -1 &&
2690
- replaceValue.indexOf('$<') === -1
2790
+ typeof replaceValue == 'string' &&
2791
+ stringIndexOf$2(replaceValue, UNSAFE_SUBSTITUTE) === -1 &&
2792
+ stringIndexOf$2(replaceValue, '$<') === -1
2691
2793
  ) {
2692
2794
  var res = maybeCallNative(nativeReplace, rx, S, replaceValue);
2693
2795
  if (res.done) return res.value;
@@ -2706,7 +2808,7 @@
2706
2808
  var result = regexpExecAbstract(rx, S);
2707
2809
  if (result === null) break;
2708
2810
 
2709
- results.push(result);
2811
+ push$4(results, result);
2710
2812
  if (!global) break;
2711
2813
 
2712
2814
  var matchStr = toString_1(result[0]);
@@ -2719,41 +2821,45 @@
2719
2821
  result = results[i];
2720
2822
 
2721
2823
  var matched = toString_1(result[0]);
2722
- var position = max$1(min$4(toInteger(result.index), S.length), 0);
2824
+ var position = max$1(min$4(toIntegerOrInfinity(result.index), S.length), 0);
2723
2825
  var captures = [];
2724
2826
  // NOTE: This is equivalent to
2725
2827
  // captures = result.slice(1).map(maybeToString)
2726
2828
  // but for some reason `nativeSlice.call(result, 1, result.length)` (called in
2727
2829
  // the slice polyfill when slicing native arrays) "doesn't work" in safari 9 and
2728
2830
  // causes a crash (https://pastebin.com/N21QzeQA) when trying to debug it.
2729
- for (var j = 1; j < result.length; j++) captures.push(maybeToString(result[j]));
2831
+ for (var j = 1; j < result.length; j++) push$4(captures, maybeToString(result[j]));
2730
2832
  var namedCaptures = result.groups;
2731
2833
  if (functionalReplace) {
2732
- var replacerArgs = [matched].concat(captures, position, S);
2733
- if (namedCaptures !== undefined) replacerArgs.push(namedCaptures);
2734
- var replacement = toString_1(replaceValue.apply(undefined, replacerArgs));
2834
+ var replacerArgs = concat$1([matched], captures, position, S);
2835
+ if (namedCaptures !== undefined) push$4(replacerArgs, namedCaptures);
2836
+ var replacement = toString_1(functionApply(replaceValue, undefined, replacerArgs));
2735
2837
  } else {
2736
2838
  replacement = getSubstitution(matched, S, position, captures, namedCaptures, replaceValue);
2737
2839
  }
2738
2840
  if (position >= nextSourcePosition) {
2739
- accumulatedResult += S.slice(nextSourcePosition, position) + replacement;
2841
+ accumulatedResult += stringSlice$4(S, nextSourcePosition, position) + replacement;
2740
2842
  nextSourcePosition = position + matched.length;
2741
2843
  }
2742
2844
  }
2743
- return accumulatedResult + S.slice(nextSourcePosition);
2845
+ return accumulatedResult + stringSlice$4(S, nextSourcePosition);
2744
2846
  }
2745
2847
  ];
2746
2848
  }, !REPLACE_SUPPORTS_NAMED_GROUPS || !REPLACE_KEEPS_$0 || REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE);
2747
2849
 
2850
+ var String$3 = global_1.String;
2851
+ var TypeError$b = global_1.TypeError;
2852
+
2748
2853
  var aPossiblePrototype = function (argument) {
2749
- if (typeof argument === 'object' || isCallable(argument)) return argument;
2750
- throw TypeError("Can't set " + String(argument) + ' as a prototype');
2854
+ if (typeof argument == 'object' || isCallable(argument)) return argument;
2855
+ throw TypeError$b("Can't set " + String$3(argument) + ' as a prototype');
2751
2856
  };
2752
2857
 
2753
2858
  /* eslint-disable no-proto -- safe */
2754
2859
 
2755
2860
 
2756
2861
 
2862
+
2757
2863
  // `Object.setPrototypeOf` method
2758
2864
  // https://tc39.es/ecma262/#sec-object.setprototypeof
2759
2865
  // Works with __proto__ only. Old v8 can't work with null proto objects.
@@ -2764,14 +2870,14 @@
2764
2870
  var setter;
2765
2871
  try {
2766
2872
  // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
2767
- setter = Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set;
2768
- setter.call(test, []);
2873
+ setter = functionUncurryThis(Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set);
2874
+ setter(test, []);
2769
2875
  CORRECT_SETTER = test instanceof Array;
2770
2876
  } catch (error) { /* empty */ }
2771
2877
  return function setPrototypeOf(O, proto) {
2772
2878
  anObject(O);
2773
2879
  aPossiblePrototype(proto);
2774
- if (CORRECT_SETTER) setter.call(O, proto);
2880
+ if (CORRECT_SETTER) setter(O, proto);
2775
2881
  else O.__proto__ = proto;
2776
2882
  return O;
2777
2883
  };
@@ -2792,10 +2898,15 @@
2792
2898
  return $this;
2793
2899
  };
2794
2900
 
2901
+ // `thisNumberValue` abstract operation
2902
+ // https://tc39.es/ecma262/#sec-thisnumbervalue
2903
+ var thisNumberValue = functionUncurryThis(1.0.valueOf);
2904
+
2795
2905
  // a string of all valid unicode whitespaces
2796
2906
  var whitespaces = '\u0009\u000A\u000B\u000C\u000D\u0020\u00A0\u1680\u2000\u2001\u2002' +
2797
2907
  '\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF';
2798
2908
 
2909
+ var replace$2 = functionUncurryThis(''.replace);
2799
2910
  var whitespace = '[' + whitespaces + ']';
2800
2911
  var ltrim = RegExp('^' + whitespace + whitespace + '*');
2801
2912
  var rtrim = RegExp(whitespace + whitespace + '*$');
@@ -2804,8 +2915,8 @@
2804
2915
  var createMethod$2 = function (TYPE) {
2805
2916
  return function ($this) {
2806
2917
  var string = toString_1(requireObjectCoercible($this));
2807
- if (TYPE & 1) string = string.replace(ltrim, '');
2808
- if (TYPE & 2) string = string.replace(rtrim, '');
2918
+ if (TYPE & 1) string = replace$2(string, ltrim, '');
2919
+ if (TYPE & 2) string = replace$2(string, rtrim, '');
2809
2920
  return string;
2810
2921
  };
2811
2922
  };
@@ -2825,37 +2936,45 @@
2825
2936
  var getOwnPropertyNames$3 = objectGetOwnPropertyNames.f;
2826
2937
  var getOwnPropertyDescriptor$1 = objectGetOwnPropertyDescriptor.f;
2827
2938
  var defineProperty$8 = objectDefineProperty.f;
2939
+
2828
2940
  var trim = stringTrim.trim;
2829
2941
 
2830
2942
  var NUMBER = 'Number';
2831
2943
  var NativeNumber = global_1[NUMBER];
2832
2944
  var NumberPrototype = NativeNumber.prototype;
2945
+ var TypeError$a = global_1.TypeError;
2946
+ var arraySlice$1 = functionUncurryThis(''.slice);
2947
+ var charCodeAt = functionUncurryThis(''.charCodeAt);
2833
2948
 
2834
- // Opera ~12 has broken Object#toString
2835
- var BROKEN_CLASSOF = classofRaw(objectCreate(NumberPrototype)) == NUMBER;
2949
+ // `ToNumeric` abstract operation
2950
+ // https://tc39.es/ecma262/#sec-tonumeric
2951
+ var toNumeric = function (value) {
2952
+ var primValue = toPrimitive(value, 'number');
2953
+ return typeof primValue == 'bigint' ? primValue : toNumber(primValue);
2954
+ };
2836
2955
 
2837
2956
  // `ToNumber` abstract operation
2838
2957
  // https://tc39.es/ecma262/#sec-tonumber
2839
2958
  var toNumber = function (argument) {
2840
- if (isSymbol$1(argument)) throw TypeError('Cannot convert a Symbol value to a number');
2841
2959
  var it = toPrimitive(argument, 'number');
2842
2960
  var first, third, radix, maxCode, digits, length, index, code;
2961
+ if (isSymbol$1(it)) throw TypeError$a('Cannot convert a Symbol value to a number');
2843
2962
  if (typeof it == 'string' && it.length > 2) {
2844
2963
  it = trim(it);
2845
- first = it.charCodeAt(0);
2964
+ first = charCodeAt(it, 0);
2846
2965
  if (first === 43 || first === 45) {
2847
- third = it.charCodeAt(2);
2966
+ third = charCodeAt(it, 2);
2848
2967
  if (third === 88 || third === 120) return NaN; // Number('+0x1') should be NaN, old V8 fix
2849
2968
  } else if (first === 48) {
2850
- switch (it.charCodeAt(1)) {
2969
+ switch (charCodeAt(it, 1)) {
2851
2970
  case 66: case 98: radix = 2; maxCode = 49; break; // fast equal of /^0b[01]+$/i
2852
2971
  case 79: case 111: radix = 8; maxCode = 55; break; // fast equal of /^0o[0-7]+$/i
2853
2972
  default: return +it;
2854
2973
  }
2855
- digits = it.slice(2);
2974
+ digits = arraySlice$1(it, 2);
2856
2975
  length = digits.length;
2857
2976
  for (index = 0; index < length; index++) {
2858
- code = digits.charCodeAt(index);
2977
+ code = charCodeAt(digits, index);
2859
2978
  // parseInt parses a string to a first unavailable symbol
2860
2979
  // but ToNumber should return NaN if a string contains unavailable symbols
2861
2980
  if (code < 48 || code > maxCode) return NaN;
@@ -2868,23 +2987,21 @@
2868
2987
  // https://tc39.es/ecma262/#sec-number-constructor
2869
2988
  if (isForced_1(NUMBER, !NativeNumber(' 0o1') || !NativeNumber('0b1') || NativeNumber('+0x1'))) {
2870
2989
  var NumberWrapper = function Number(value) {
2871
- var it = arguments.length < 1 ? 0 : value;
2990
+ var n = arguments.length < 1 ? 0 : NativeNumber(toNumeric(value));
2872
2991
  var dummy = this;
2873
- return dummy instanceof NumberWrapper
2874
- // check on 1..constructor(foo) case
2875
- && (BROKEN_CLASSOF ? fails(function () { NumberPrototype.valueOf.call(dummy); }) : classofRaw(dummy) != NUMBER)
2876
- ? inheritIfRequired(new NativeNumber(toNumber(it)), dummy, NumberWrapper) : toNumber(it);
2992
+ // check on 1..constructor(foo) case
2993
+ return objectIsPrototypeOf(NumberPrototype, dummy) && fails(function () { thisNumberValue(dummy); })
2994
+ ? inheritIfRequired(Object(n), dummy, NumberWrapper) : n;
2877
2995
  };
2878
2996
  for (var keys$3 = descriptors ? getOwnPropertyNames$3(NativeNumber) : (
2879
2997
  // ES3:
2880
2998
  'MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,' +
2881
2999
  // ES2015 (in case, if modules with ES2015 Number statics required before):
2882
- 'EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,' +
2883
- 'MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger,' +
3000
+ 'EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,' +
2884
3001
  // ESNext
2885
3002
  'fromString,range'
2886
3003
  ).split(','), j$1 = 0, key$1; keys$3.length > j$1; j$1++) {
2887
- if (has$1(NativeNumber, key$1 = keys$3[j$1]) && !has$1(NumberWrapper, key$1)) {
3004
+ if (hasOwnProperty_1(NativeNumber, key$1 = keys$3[j$1]) && !hasOwnProperty_1(NumberWrapper, key$1)) {
2888
3005
  defineProperty$8(NumberWrapper, key$1, getOwnPropertyDescriptor$1(NativeNumber, key$1));
2889
3006
  }
2890
3007
  }
@@ -2925,6 +3042,7 @@
2925
3042
 
2926
3043
 
2927
3044
 
3045
+
2928
3046
  var enforceInternalState = internalState.enforce;
2929
3047
 
2930
3048
 
@@ -2934,6 +3052,13 @@
2934
3052
  var MATCH$1 = wellKnownSymbol('match');
2935
3053
  var NativeRegExp = global_1.RegExp;
2936
3054
  var RegExpPrototype = NativeRegExp.prototype;
3055
+ var SyntaxError = global_1.SyntaxError;
3056
+ var getFlags = functionUncurryThis(regexpFlags);
3057
+ var exec$1 = functionUncurryThis(RegExpPrototype.exec);
3058
+ var charAt$1 = functionUncurryThis(''.charAt);
3059
+ var replace$1 = functionUncurryThis(''.replace);
3060
+ var stringIndexOf$1 = functionUncurryThis(''.indexOf);
3061
+ var stringSlice$3 = functionUncurryThis(''.slice);
2937
3062
  // TODO: Use only propper RegExpIdentifierName
2938
3063
  var IS_NCG = /^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/;
2939
3064
  var re1 = /a/g;
@@ -2958,9 +3083,9 @@
2958
3083
  var brackets = false;
2959
3084
  var chr;
2960
3085
  for (; index <= length; index++) {
2961
- chr = string.charAt(index);
3086
+ chr = charAt$1(string, index);
2962
3087
  if (chr === '\\') {
2963
- result += chr + string.charAt(++index);
3088
+ result += chr + charAt$1(string, ++index);
2964
3089
  continue;
2965
3090
  }
2966
3091
  if (!brackets && chr === '.') {
@@ -2987,9 +3112,9 @@
2987
3112
  var groupname = '';
2988
3113
  var chr;
2989
3114
  for (; index <= length; index++) {
2990
- chr = string.charAt(index);
3115
+ chr = charAt$1(string, index);
2991
3116
  if (chr === '\\') {
2992
- chr = chr + string.charAt(++index);
3117
+ chr = chr + charAt$1(string, ++index);
2993
3118
  } else if (chr === ']') {
2994
3119
  brackets = false;
2995
3120
  } else if (!brackets) switch (true) {
@@ -2997,7 +3122,7 @@
2997
3122
  brackets = true;
2998
3123
  break;
2999
3124
  case chr === '(':
3000
- if (IS_NCG.test(string.slice(index + 1))) {
3125
+ if (exec$1(IS_NCG, stringSlice$3(string, index + 1))) {
3001
3126
  index += 2;
3002
3127
  ncg = true;
3003
3128
  }
@@ -3005,11 +3130,11 @@
3005
3130
  groupid++;
3006
3131
  continue;
3007
3132
  case chr === '>' && ncg:
3008
- if (groupname === '' || has$1(names, groupname)) {
3133
+ if (groupname === '' || hasOwnProperty_1(names, groupname)) {
3009
3134
  throw new SyntaxError('Invalid capture group name');
3010
3135
  }
3011
3136
  names[groupname] = true;
3012
- named.push([groupname, groupid]);
3137
+ named[named.length] = [groupname, groupid];
3013
3138
  ncg = false;
3014
3139
  groupname = '';
3015
3140
  continue;
@@ -3023,7 +3148,7 @@
3023
3148
  // https://tc39.es/ecma262/#sec-regexp-constructor
3024
3149
  if (isForced_1('RegExp', BASE_FORCED)) {
3025
3150
  var RegExpWrapper = function RegExp(pattern, flags) {
3026
- var thisIsRegExp = this instanceof RegExpWrapper;
3151
+ var thisIsRegExp = objectIsPrototypeOf(RegExpPrototype, this);
3027
3152
  var patternIsRegExp = isRegexp(pattern);
3028
3153
  var flagsAreUndefined = flags === undefined;
3029
3154
  var groups = [];
@@ -3034,9 +3159,9 @@
3034
3159
  return pattern;
3035
3160
  }
3036
3161
 
3037
- if (patternIsRegExp || pattern instanceof RegExpWrapper) {
3162
+ if (patternIsRegExp || objectIsPrototypeOf(RegExpPrototype, pattern)) {
3038
3163
  pattern = pattern.source;
3039
- if (flagsAreUndefined) flags = 'flags' in rawPattern ? rawPattern.flags : regexpFlags.call(rawPattern);
3164
+ if (flagsAreUndefined) flags = 'flags' in rawPattern ? rawPattern.flags : getFlags(rawPattern);
3040
3165
  }
3041
3166
 
3042
3167
  pattern = pattern === undefined ? '' : toString_1(pattern);
@@ -3044,15 +3169,15 @@
3044
3169
  rawPattern = pattern;
3045
3170
 
3046
3171
  if (regexpUnsupportedDotAll && 'dotAll' in re1) {
3047
- dotAll = !!flags && flags.indexOf('s') > -1;
3048
- if (dotAll) flags = flags.replace(/s/g, '');
3172
+ dotAll = !!flags && stringIndexOf$1(flags, 's') > -1;
3173
+ if (dotAll) flags = replace$1(flags, /s/g, '');
3049
3174
  }
3050
3175
 
3051
3176
  rawFlags = flags;
3052
3177
 
3053
3178
  if (UNSUPPORTED_Y$1 && 'sticky' in re1) {
3054
- sticky = !!flags && flags.indexOf('y') > -1;
3055
- if (sticky) flags = flags.replace(/y/g, '');
3179
+ sticky = !!flags && stringIndexOf$1(flags, 'y') > -1;
3180
+ if (sticky) flags = replace$1(flags, /y/g, '');
3056
3181
  }
3057
3182
 
3058
3183
  if (regexpUnsupportedNcg) {
@@ -3101,11 +3226,13 @@
3101
3226
  // https://tc39.es/ecma262/#sec-get-regexp-@@species
3102
3227
  setSpecies('RegExp');
3103
3228
 
3229
+ var arraySlice = functionUncurryThis([].slice);
3230
+
3104
3231
  /* eslint-disable es/no-object-getownpropertynames -- safe */
3105
3232
 
3233
+
3106
3234
  var $getOwnPropertyNames$1 = objectGetOwnPropertyNames.f;
3107
3235
 
3108
- var toString$3 = {}.toString;
3109
3236
 
3110
3237
  var windowNames = typeof window == 'object' && window && Object.getOwnPropertyNames
3111
3238
  ? Object.getOwnPropertyNames(window) : [];
@@ -3114,13 +3241,13 @@
3114
3241
  try {
3115
3242
  return $getOwnPropertyNames$1(it);
3116
3243
  } catch (error) {
3117
- return windowNames.slice();
3244
+ return arraySlice(windowNames);
3118
3245
  }
3119
3246
  };
3120
3247
 
3121
3248
  // fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window
3122
3249
  var f$2 = function getOwnPropertyNames(it) {
3123
- return windowNames && toString$3.call(it) == '[object Window]'
3250
+ return windowNames && classofRaw(it) == 'Window'
3124
3251
  ? getWindowNames(it)
3125
3252
  : $getOwnPropertyNames$1(toIndexedObject(it));
3126
3253
  };
@@ -3162,7 +3289,7 @@
3162
3289
  function match(regexp) {
3163
3290
  var O = requireObjectCoercible(this);
3164
3291
  var matcher = regexp == undefined ? undefined : getMethod(regexp, MATCH);
3165
- return matcher ? matcher.call(regexp, O) : new RegExp(regexp)[MATCH](toString_1(O));
3292
+ return matcher ? functionCall(matcher, regexp, O) : new RegExp(regexp)[MATCH](toString_1(O));
3166
3293
  },
3167
3294
  // `RegExp.prototype[@@match]` method
3168
3295
  // https://tc39.es/ecma262/#sec-regexp.prototype-@@match
@@ -3205,10 +3332,12 @@
3205
3332
  }
3206
3333
  });
3207
3334
 
3335
+ var TypeError$9 = global_1.TypeError;
3336
+
3208
3337
  // `Assert: IsConstructor(argument) is true`
3209
3338
  var aConstructor = function (argument) {
3210
3339
  if (isConstructor(argument)) return argument;
3211
- throw TypeError(tryToString(argument) + ' is not a constructor');
3340
+ throw TypeError$9(tryToString(argument) + ' is not a constructor');
3212
3341
  };
3213
3342
 
3214
3343
  var SPECIES$2 = wellKnownSymbol('species');
@@ -3222,9 +3351,12 @@
3222
3351
  };
3223
3352
 
3224
3353
  var UNSUPPORTED_Y = regexpStickyHelpers.UNSUPPORTED_Y;
3225
- var arrayPush = [].push;
3226
- var min$3 = Math.min;
3227
3354
  var MAX_UINT32 = 0xFFFFFFFF;
3355
+ var min$3 = Math.min;
3356
+ var $push = [].push;
3357
+ var exec = functionUncurryThis(/./.exec);
3358
+ var push$3 = functionUncurryThis($push);
3359
+ var stringSlice$2 = functionUncurryThis(''.slice);
3228
3360
 
3229
3361
  // Chrome 51 has a buggy "split" implementation when RegExp#exec !== nativeExec
3230
3362
  // Weex JS has frozen built-in prototypes, so use try / catch wrapper
@@ -3258,7 +3390,7 @@
3258
3390
  if (separator === undefined) return [string];
3259
3391
  // If `separator` is not a regex, use native split
3260
3392
  if (!isRegexp(separator)) {
3261
- return nativeSplit.call(string, separator, lim);
3393
+ return functionCall(nativeSplit, string, separator, lim);
3262
3394
  }
3263
3395
  var output = [];
3264
3396
  var flags = (separator.ignoreCase ? 'i' : '') +
@@ -3269,11 +3401,11 @@
3269
3401
  // Make `global` and avoid `lastIndex` issues by working with a copy
3270
3402
  var separatorCopy = new RegExp(separator.source, flags + 'g');
3271
3403
  var match, lastIndex, lastLength;
3272
- while (match = regexpExec.call(separatorCopy, string)) {
3404
+ while (match = functionCall(regexpExec, separatorCopy, string)) {
3273
3405
  lastIndex = separatorCopy.lastIndex;
3274
3406
  if (lastIndex > lastLastIndex) {
3275
- output.push(string.slice(lastLastIndex, match.index));
3276
- if (match.length > 1 && match.index < string.length) arrayPush.apply(output, match.slice(1));
3407
+ push$3(output, stringSlice$2(string, lastLastIndex, match.index));
3408
+ if (match.length > 1 && match.index < string.length) functionApply($push, output, arraySlice(match, 1));
3277
3409
  lastLength = match[0].length;
3278
3410
  lastLastIndex = lastIndex;
3279
3411
  if (output.length >= lim) break;
@@ -3281,14 +3413,14 @@
3281
3413
  if (separatorCopy.lastIndex === match.index) separatorCopy.lastIndex++; // Avoid an infinite loop
3282
3414
  }
3283
3415
  if (lastLastIndex === string.length) {
3284
- if (lastLength || !separatorCopy.test('')) output.push('');
3285
- } else output.push(string.slice(lastLastIndex));
3286
- return output.length > lim ? output.slice(0, lim) : output;
3416
+ if (lastLength || !exec(separatorCopy, '')) push$3(output, '');
3417
+ } else push$3(output, stringSlice$2(string, lastLastIndex));
3418
+ return output.length > lim ? arraySlice(output, 0, lim) : output;
3287
3419
  };
3288
3420
  // Chakra, V8
3289
3421
  } else if ('0'.split(undefined, 0).length) {
3290
3422
  internalSplit = function (separator, limit) {
3291
- return separator === undefined && limit === 0 ? [] : nativeSplit.call(this, separator, limit);
3423
+ return separator === undefined && limit === 0 ? [] : functionCall(nativeSplit, this, separator, limit);
3292
3424
  };
3293
3425
  } else internalSplit = nativeSplit;
3294
3426
 
@@ -3299,8 +3431,8 @@
3299
3431
  var O = requireObjectCoercible(this);
3300
3432
  var splitter = separator == undefined ? undefined : getMethod(separator, SPLIT);
3301
3433
  return splitter
3302
- ? splitter.call(separator, O, limit)
3303
- : internalSplit.call(toString_1(O), separator, limit);
3434
+ ? functionCall(splitter, separator, O, limit)
3435
+ : functionCall(internalSplit, toString_1(O), separator, limit);
3304
3436
  },
3305
3437
  // `RegExp.prototype[@@split]` method
3306
3438
  // https://tc39.es/ecma262/#sec-regexp.prototype-@@split
@@ -3333,7 +3465,7 @@
3333
3465
  var A = [];
3334
3466
  while (q < S.length) {
3335
3467
  splitter.lastIndex = UNSUPPORTED_Y ? 0 : q;
3336
- var z = regexpExecAbstract(splitter, UNSUPPORTED_Y ? S.slice(q) : S);
3468
+ var z = regexpExecAbstract(splitter, UNSUPPORTED_Y ? stringSlice$2(S, q) : S);
3337
3469
  var e;
3338
3470
  if (
3339
3471
  z === null ||
@@ -3341,16 +3473,16 @@
3341
3473
  ) {
3342
3474
  q = advanceStringIndex(S, q, unicodeMatching);
3343
3475
  } else {
3344
- A.push(S.slice(p, q));
3476
+ push$3(A, stringSlice$2(S, p, q));
3345
3477
  if (A.length === lim) return A;
3346
3478
  for (var i = 1; i <= z.length - 1; i++) {
3347
- A.push(z[i]);
3479
+ push$3(A, z[i]);
3348
3480
  if (A.length === lim) return A;
3349
3481
  }
3350
3482
  q = p = e;
3351
3483
  }
3352
3484
  }
3353
- A.push(S.slice(p));
3485
+ push$3(A, stringSlice$2(S, p));
3354
3486
  return A;
3355
3487
  }
3356
3488
  ];
@@ -3421,7 +3553,7 @@
3421
3553
  var TO_STRING_TAG$2 = wellKnownSymbol('toStringTag');
3422
3554
 
3423
3555
  var setToStringTag = function (it, TAG, STATIC) {
3424
- if (it && !has$1(it = STATIC ? it : it.prototype, TO_STRING_TAG$2)) {
3556
+ if (it && !hasOwnProperty_1(it = STATIC ? it : it.prototype, TO_STRING_TAG$2)) {
3425
3557
  defineProperty$6(it, TO_STRING_TAG$2, { configurable: true, value: TAG });
3426
3558
  }
3427
3559
  };
@@ -3498,7 +3630,7 @@
3498
3630
  createNonEnumerableProperty(IterablePrototype, 'name', VALUES);
3499
3631
  } else {
3500
3632
  INCORRECT_VALUES_NAME = true;
3501
- defaultIterator = function values() { return nativeIterator.call(this); };
3633
+ defaultIterator = function values() { return functionCall(nativeIterator, this); };
3502
3634
  }
3503
3635
  }
3504
3636
 
@@ -3610,7 +3742,7 @@
3610
3742
  };
3611
3743
 
3612
3744
  // eslint-disable-next-line es/no-typed-arrays -- safe
3613
- var arrayBufferNative = typeof ArrayBuffer !== 'undefined' && typeof DataView !== 'undefined';
3745
+ var arrayBufferNative = typeof ArrayBuffer != 'undefined' && typeof DataView != 'undefined';
3614
3746
 
3615
3747
  var defineProperty$5 = objectDefineProperty.f;
3616
3748
 
@@ -3618,6 +3750,7 @@
3618
3750
 
3619
3751
 
3620
3752
 
3753
+
3621
3754
  var Int8Array$3 = global_1.Int8Array;
3622
3755
  var Int8ArrayPrototype = Int8Array$3 && Int8Array$3.prototype;
3623
3756
  var Uint8ClampedArray = global_1.Uint8ClampedArray;
@@ -3625,7 +3758,7 @@
3625
3758
  var TypedArray = Int8Array$3 && objectGetPrototypeOf(Int8Array$3);
3626
3759
  var TypedArrayPrototype = Int8ArrayPrototype && objectGetPrototypeOf(Int8ArrayPrototype);
3627
3760
  var ObjectPrototype$2 = Object.prototype;
3628
- var isPrototypeOf = ObjectPrototype$2.isPrototypeOf;
3761
+ var TypeError$8 = global_1.TypeError;
3629
3762
 
3630
3763
  var TO_STRING_TAG$1 = wellKnownSymbol('toStringTag');
3631
3764
  var TYPED_ARRAY_TAG = uid('TYPED_ARRAY_TAG');
@@ -3656,32 +3789,32 @@
3656
3789
  if (!isObject$1(it)) return false;
3657
3790
  var klass = classof(it);
3658
3791
  return klass === 'DataView'
3659
- || has$1(TypedArrayConstructorsList, klass)
3660
- || has$1(BigIntArrayConstructorsList, klass);
3792
+ || hasOwnProperty_1(TypedArrayConstructorsList, klass)
3793
+ || hasOwnProperty_1(BigIntArrayConstructorsList, klass);
3661
3794
  };
3662
3795
 
3663
3796
  var isTypedArray = function (it) {
3664
3797
  if (!isObject$1(it)) return false;
3665
3798
  var klass = classof(it);
3666
- return has$1(TypedArrayConstructorsList, klass)
3667
- || has$1(BigIntArrayConstructorsList, klass);
3799
+ return hasOwnProperty_1(TypedArrayConstructorsList, klass)
3800
+ || hasOwnProperty_1(BigIntArrayConstructorsList, klass);
3668
3801
  };
3669
3802
 
3670
3803
  var aTypedArray$m = function (it) {
3671
3804
  if (isTypedArray(it)) return it;
3672
- throw TypeError('Target is not a typed array');
3805
+ throw TypeError$8('Target is not a typed array');
3673
3806
  };
3674
3807
 
3675
3808
  var aTypedArrayConstructor$2 = function (C) {
3676
- if (isCallable(C) && (!objectSetPrototypeOf || isPrototypeOf.call(TypedArray, C))) return C;
3677
- throw TypeError(tryToString(C) + ' is not a typed array constructor');
3809
+ if (isCallable(C) && (!objectSetPrototypeOf || objectIsPrototypeOf(TypedArray, C))) return C;
3810
+ throw TypeError$8(tryToString(C) + ' is not a typed array constructor');
3678
3811
  };
3679
3812
 
3680
3813
  var exportTypedArrayMethod$n = function (KEY, property, forced) {
3681
3814
  if (!descriptors) return;
3682
3815
  if (forced) for (var ARRAY in TypedArrayConstructorsList) {
3683
3816
  var TypedArrayConstructor = global_1[ARRAY];
3684
- if (TypedArrayConstructor && has$1(TypedArrayConstructor.prototype, KEY)) try {
3817
+ if (TypedArrayConstructor && hasOwnProperty_1(TypedArrayConstructor.prototype, KEY)) try {
3685
3818
  delete TypedArrayConstructor.prototype[KEY];
3686
3819
  } catch (error) { /* empty */ }
3687
3820
  }
@@ -3697,7 +3830,7 @@
3697
3830
  if (objectSetPrototypeOf) {
3698
3831
  if (forced) for (ARRAY in TypedArrayConstructorsList) {
3699
3832
  TypedArrayConstructor = global_1[ARRAY];
3700
- if (TypedArrayConstructor && has$1(TypedArrayConstructor, KEY)) try {
3833
+ if (TypedArrayConstructor && hasOwnProperty_1(TypedArrayConstructor, KEY)) try {
3701
3834
  delete TypedArrayConstructor[KEY];
3702
3835
  } catch (error) { /* empty */ }
3703
3836
  }
@@ -3733,7 +3866,7 @@
3733
3866
  if (!NATIVE_ARRAY_BUFFER_VIEWS$1 || !isCallable(TypedArray) || TypedArray === Function.prototype) {
3734
3867
  // eslint-disable-next-line no-shadow -- safe
3735
3868
  TypedArray = function TypedArray() {
3736
- throw TypeError('Incorrect invocation');
3869
+ throw TypeError$8('Incorrect invocation');
3737
3870
  };
3738
3871
  if (NATIVE_ARRAY_BUFFER_VIEWS$1) for (NAME in TypedArrayConstructorsList) {
3739
3872
  if (global_1[NAME]) objectSetPrototypeOf(global_1[NAME], TypedArray);
@@ -3752,7 +3885,7 @@
3752
3885
  objectSetPrototypeOf(Uint8ClampedArrayPrototype, TypedArrayPrototype);
3753
3886
  }
3754
3887
 
3755
- if (descriptors && !has$1(TypedArrayPrototype, TO_STRING_TAG$1)) {
3888
+ if (descriptors && !hasOwnProperty_1(TypedArrayPrototype, TO_STRING_TAG$1)) {
3756
3889
  TYPED_ARRAY_TAG_REQIRED = true;
3757
3890
  defineProperty$5(TypedArrayPrototype, TO_STRING_TAG$1, { get: function () {
3758
3891
  return isObject$1(this) ? this[TYPED_ARRAY_TAG] : undefined;
@@ -3804,22 +3937,29 @@
3804
3937
  return target;
3805
3938
  };
3806
3939
 
3807
- var anInstance = function (it, Constructor, name) {
3808
- if (it instanceof Constructor) return it;
3809
- throw TypeError('Incorrect ' + (name ? name + ' ' : '') + 'invocation');
3940
+ var TypeError$7 = global_1.TypeError;
3941
+
3942
+ var anInstance = function (it, Prototype) {
3943
+ if (objectIsPrototypeOf(Prototype, it)) return it;
3944
+ throw TypeError$7('Incorrect invocation');
3810
3945
  };
3811
3946
 
3947
+ var RangeError$7 = global_1.RangeError;
3948
+
3812
3949
  // `ToIndex` abstract operation
3813
3950
  // https://tc39.es/ecma262/#sec-toindex
3814
3951
  var toIndex = function (it) {
3815
3952
  if (it === undefined) return 0;
3816
- var number = toInteger(it);
3953
+ var number = toIntegerOrInfinity(it);
3817
3954
  var length = toLength(number);
3818
- if (number !== length) throw RangeError('Wrong length or index');
3955
+ if (number !== length) throw RangeError$7('Wrong length or index');
3819
3956
  return length;
3820
3957
  };
3821
3958
 
3822
3959
  // IEEE754 conversions based on https://github.com/feross/ieee754
3960
+
3961
+
3962
+ var Array$5 = global_1.Array;
3823
3963
  var abs = Math.abs;
3824
3964
  var pow$1 = Math.pow;
3825
3965
  var floor$4 = Math.floor;
@@ -3827,7 +3967,7 @@
3827
3967
  var LN2 = Math.LN2;
3828
3968
 
3829
3969
  var pack = function (number, mantissaLength, bytes) {
3830
- var buffer = new Array(bytes);
3970
+ var buffer = Array$5(bytes);
3831
3971
  var exponentLength = bytes * 8 - mantissaLength - 1;
3832
3972
  var eMax = (1 << exponentLength) - 1;
3833
3973
  var eBias = eMax >> 1;
@@ -3910,7 +4050,7 @@
3910
4050
  // https://tc39.es/ecma262/#sec-array.prototype.fill
3911
4051
  var arrayFill = function fill(value /* , start = 0, end = @length */) {
3912
4052
  var O = toObject(this);
3913
- var length = toLength(O.length);
4053
+ var length = lengthOfArrayLike(O);
3914
4054
  var argumentsLength = arguments.length;
3915
4055
  var index = toAbsoluteIndex(argumentsLength > 1 ? arguments[1] : undefined, length);
3916
4056
  var end = argumentsLength > 2 ? arguments[2] : undefined;
@@ -3925,6 +4065,7 @@
3925
4065
 
3926
4066
 
3927
4067
 
4068
+
3928
4069
  var PROPER_FUNCTION_NAME$2 = functionName.PROPER;
3929
4070
  var CONFIGURABLE_FUNCTION_NAME = functionName.CONFIGURABLE;
3930
4071
  var getInternalState$3 = internalState.get;
@@ -3936,10 +4077,14 @@
3936
4077
  var WRONG_INDEX = 'Wrong index';
3937
4078
  var NativeArrayBuffer$1 = global_1[ARRAY_BUFFER$1];
3938
4079
  var $ArrayBuffer = NativeArrayBuffer$1;
4080
+ var ArrayBufferPrototype = $ArrayBuffer && $ArrayBuffer[PROTOTYPE$1];
3939
4081
  var $DataView = global_1[DATA_VIEW];
3940
- var $DataViewPrototype = $DataView && $DataView[PROTOTYPE$1];
4082
+ var DataViewPrototype = $DataView && $DataView[PROTOTYPE$1];
3941
4083
  var ObjectPrototype$1 = Object.prototype;
3942
- var RangeError$1 = global_1.RangeError;
4084
+ var Array$4 = global_1.Array;
4085
+ var RangeError$6 = global_1.RangeError;
4086
+ var fill = functionUncurryThis(arrayFill);
4087
+ var reverse = functionUncurryThis([].reverse);
3943
4088
 
3944
4089
  var packIEEE754 = ieee754.pack;
3945
4090
  var unpackIEEE754 = ieee754.unpack;
@@ -3975,17 +4120,17 @@
3975
4120
  var get = function (view, count, index, isLittleEndian) {
3976
4121
  var intIndex = toIndex(index);
3977
4122
  var store = getInternalState$3(view);
3978
- if (intIndex + count > store.byteLength) throw RangeError$1(WRONG_INDEX);
4123
+ if (intIndex + count > store.byteLength) throw RangeError$6(WRONG_INDEX);
3979
4124
  var bytes = getInternalState$3(store.buffer).bytes;
3980
4125
  var start = intIndex + store.byteOffset;
3981
- var pack = bytes.slice(start, start + count);
3982
- return isLittleEndian ? pack : pack.reverse();
4126
+ var pack = arraySlice(bytes, start, start + count);
4127
+ return isLittleEndian ? pack : reverse(pack);
3983
4128
  };
3984
4129
 
3985
4130
  var set$1 = function (view, count, index, conversion, value, isLittleEndian) {
3986
4131
  var intIndex = toIndex(index);
3987
4132
  var store = getInternalState$3(view);
3988
- if (intIndex + count > store.byteLength) throw RangeError$1(WRONG_INDEX);
4133
+ if (intIndex + count > store.byteLength) throw RangeError$6(WRONG_INDEX);
3989
4134
  var bytes = getInternalState$3(store.buffer).bytes;
3990
4135
  var start = intIndex + store.byteOffset;
3991
4136
  var pack = conversion(+value);
@@ -3994,23 +4139,25 @@
3994
4139
 
3995
4140
  if (!arrayBufferNative) {
3996
4141
  $ArrayBuffer = function ArrayBuffer(length) {
3997
- anInstance(this, $ArrayBuffer, ARRAY_BUFFER$1);
4142
+ anInstance(this, ArrayBufferPrototype);
3998
4143
  var byteLength = toIndex(length);
3999
4144
  setInternalState$4(this, {
4000
- bytes: arrayFill.call(new Array(byteLength), 0),
4145
+ bytes: fill(Array$4(byteLength), 0),
4001
4146
  byteLength: byteLength
4002
4147
  });
4003
4148
  if (!descriptors) this.byteLength = byteLength;
4004
4149
  };
4005
4150
 
4151
+ ArrayBufferPrototype = $ArrayBuffer[PROTOTYPE$1];
4152
+
4006
4153
  $DataView = function DataView(buffer, byteOffset, byteLength) {
4007
- anInstance(this, $DataView, DATA_VIEW);
4008
- anInstance(buffer, $ArrayBuffer, DATA_VIEW);
4154
+ anInstance(this, DataViewPrototype);
4155
+ anInstance(buffer, ArrayBufferPrototype);
4009
4156
  var bufferLength = getInternalState$3(buffer).byteLength;
4010
- var offset = toInteger(byteOffset);
4011
- if (offset < 0 || offset > bufferLength) throw RangeError$1('Wrong offset');
4157
+ var offset = toIntegerOrInfinity(byteOffset);
4158
+ if (offset < 0 || offset > bufferLength) throw RangeError$6('Wrong offset');
4012
4159
  byteLength = byteLength === undefined ? bufferLength - offset : toLength(byteLength);
4013
- if (offset + byteLength > bufferLength) throw RangeError$1(WRONG_LENGTH);
4160
+ if (offset + byteLength > bufferLength) throw RangeError$6(WRONG_LENGTH);
4014
4161
  setInternalState$4(this, {
4015
4162
  buffer: buffer,
4016
4163
  byteLength: byteLength,
@@ -4023,6 +4170,8 @@
4023
4170
  }
4024
4171
  };
4025
4172
 
4173
+ DataViewPrototype = $DataView[PROTOTYPE$1];
4174
+
4026
4175
  if (descriptors) {
4027
4176
  addGetter($ArrayBuffer, 'byteLength');
4028
4177
  addGetter($DataView, 'buffer');
@@ -4030,7 +4179,7 @@
4030
4179
  addGetter($DataView, 'byteOffset');
4031
4180
  }
4032
4181
 
4033
- redefineAll($DataView[PROTOTYPE$1], {
4182
+ redefineAll(DataViewPrototype, {
4034
4183
  getInt8: function getInt8(byteOffset) {
4035
4184
  return get(this, 1, byteOffset)[0] << 24 >> 24;
4036
4185
  },
@@ -4097,36 +4246,39 @@
4097
4246
  })) {
4098
4247
  /* eslint-enable no-new -- required for testing */
4099
4248
  $ArrayBuffer = function ArrayBuffer(length) {
4100
- anInstance(this, $ArrayBuffer);
4249
+ anInstance(this, ArrayBufferPrototype);
4101
4250
  return new NativeArrayBuffer$1(toIndex(length));
4102
4251
  };
4103
- var ArrayBufferPrototype = $ArrayBuffer[PROTOTYPE$1] = NativeArrayBuffer$1[PROTOTYPE$1];
4252
+
4253
+ $ArrayBuffer[PROTOTYPE$1] = ArrayBufferPrototype;
4254
+
4104
4255
  for (var keys$1 = getOwnPropertyNames(NativeArrayBuffer$1), j = 0, key; keys$1.length > j;) {
4105
4256
  if (!((key = keys$1[j++]) in $ArrayBuffer)) {
4106
4257
  createNonEnumerableProperty($ArrayBuffer, key, NativeArrayBuffer$1[key]);
4107
4258
  }
4108
4259
  }
4260
+
4109
4261
  ArrayBufferPrototype.constructor = $ArrayBuffer;
4110
4262
  } else if (INCORRECT_ARRAY_BUFFER_NAME && CONFIGURABLE_FUNCTION_NAME) {
4111
4263
  createNonEnumerableProperty(NativeArrayBuffer$1, 'name', ARRAY_BUFFER$1);
4112
4264
  }
4113
4265
 
4114
4266
  // WebKit bug - the same parent prototype for typed arrays and data view
4115
- if (objectSetPrototypeOf && objectGetPrototypeOf($DataViewPrototype) !== ObjectPrototype$1) {
4116
- objectSetPrototypeOf($DataViewPrototype, ObjectPrototype$1);
4267
+ if (objectSetPrototypeOf && objectGetPrototypeOf(DataViewPrototype) !== ObjectPrototype$1) {
4268
+ objectSetPrototypeOf(DataViewPrototype, ObjectPrototype$1);
4117
4269
  }
4118
4270
 
4119
4271
  // iOS Safari 7.x bug
4120
4272
  var testView = new $DataView(new $ArrayBuffer(2));
4121
- var $setInt8 = $DataViewPrototype.setInt8;
4273
+ var $setInt8 = functionUncurryThis(DataViewPrototype.setInt8);
4122
4274
  testView.setInt8(0, 2147483648);
4123
4275
  testView.setInt8(1, 2147483649);
4124
- if (testView.getInt8(0) || !testView.getInt8(1)) redefineAll($DataViewPrototype, {
4276
+ if (testView.getInt8(0) || !testView.getInt8(1)) redefineAll(DataViewPrototype, {
4125
4277
  setInt8: function setInt8(byteOffset, value) {
4126
- $setInt8.call(this, byteOffset, value << 24 >> 24);
4278
+ $setInt8(this, byteOffset, value << 24 >> 24);
4127
4279
  },
4128
4280
  setUint8: function setUint8(byteOffset, value) {
4129
- $setInt8.call(this, byteOffset, value << 24 >> 24);
4281
+ $setInt8(this, byteOffset, value << 24 >> 24);
4130
4282
  }
4131
4283
  }, { unsafe: true });
4132
4284
  }
@@ -4141,21 +4293,26 @@
4141
4293
 
4142
4294
  var floor$3 = Math.floor;
4143
4295
 
4144
- // `Number.isInteger` method implementation
4145
- // https://tc39.es/ecma262/#sec-number.isinteger
4146
- var isInteger = function isInteger(it) {
4296
+ // `IsIntegralNumber` abstract operation
4297
+ // https://tc39.es/ecma262/#sec-isintegralnumber
4298
+ // eslint-disable-next-line es/no-number-isinteger -- safe
4299
+ var isIntegralNumber = Number.isInteger || function isInteger(it) {
4147
4300
  return !isObject$1(it) && isFinite(it) && floor$3(it) === it;
4148
4301
  };
4149
4302
 
4303
+ var RangeError$5 = global_1.RangeError;
4304
+
4150
4305
  var toPositiveInteger = function (it) {
4151
- var result = toInteger(it);
4152
- if (result < 0) throw RangeError("The argument can't be less than 0");
4306
+ var result = toIntegerOrInfinity(it);
4307
+ if (result < 0) throw RangeError$5("The argument can't be less than 0");
4153
4308
  return result;
4154
4309
  };
4155
4310
 
4311
+ var RangeError$4 = global_1.RangeError;
4312
+
4156
4313
  var toOffset = function (it, BYTES) {
4157
4314
  var offset = toPositiveInteger(it);
4158
- if (offset % BYTES) throw RangeError('Wrong offset');
4315
+ if (offset % BYTES) throw RangeError$4('Wrong offset');
4159
4316
  return offset;
4160
4317
  };
4161
4318
 
@@ -4167,10 +4324,12 @@
4167
4324
  || iterators[classof(it)];
4168
4325
  };
4169
4326
 
4327
+ var TypeError$6 = global_1.TypeError;
4328
+
4170
4329
  var getIterator = function (argument, usingIterator) {
4171
4330
  var iteratorMethod = arguments.length < 2 ? getIteratorMethod(argument) : usingIterator;
4172
- if (aCallable(iteratorMethod)) return anObject(iteratorMethod.call(argument));
4173
- throw TypeError(String(argument) + ' is not iterable');
4331
+ if (aCallable(iteratorMethod)) return anObject(functionCall(iteratorMethod, argument));
4332
+ throw TypeError$6(tryToString(argument) + ' is not iterable');
4174
4333
  };
4175
4334
 
4176
4335
  var ITERATOR$2 = wellKnownSymbol('iterator');
@@ -4195,14 +4354,14 @@
4195
4354
  iterator = getIterator(O, iteratorMethod);
4196
4355
  next = iterator.next;
4197
4356
  O = [];
4198
- while (!(step = next.call(iterator)).done) {
4357
+ while (!(step = functionCall(next, iterator)).done) {
4199
4358
  O.push(step.value);
4200
4359
  }
4201
4360
  }
4202
4361
  if (mapping && argumentsLength > 2) {
4203
- mapfn = functionBindContext(mapfn, arguments[2], 2);
4362
+ mapfn = functionBindContext(mapfn, arguments[2]);
4204
4363
  }
4205
- length = toLength(O.length);
4364
+ length = lengthOfArrayLike(O);
4206
4365
  result = new (aTypedArrayConstructor$1(C))(length);
4207
4366
  for (i = 0; length > i; i++) {
4208
4367
  result[i] = mapping ? mapfn(O[i], i) : O[i];
@@ -4229,6 +4388,8 @@
4229
4388
 
4230
4389
 
4231
4390
 
4391
+
4392
+
4232
4393
 
4233
4394
 
4234
4395
  var getOwnPropertyNames = objectGetOwnPropertyNames.f;
@@ -4247,6 +4408,7 @@
4247
4408
  var round = Math.round;
4248
4409
  var RangeError = global_1.RangeError;
4249
4410
  var ArrayBuffer = arrayBuffer.ArrayBuffer;
4411
+ var ArrayBufferPrototype = ArrayBuffer.prototype;
4250
4412
  var DataView = arrayBuffer.DataView;
4251
4413
  var NATIVE_ARRAY_BUFFER_VIEWS = arrayBufferViewCore.NATIVE_ARRAY_BUFFER_VIEWS;
4252
4414
  var TYPED_ARRAY_CONSTRUCTOR = arrayBufferViewCore.TYPED_ARRAY_CONSTRUCTOR;
@@ -4259,9 +4421,10 @@
4259
4421
  var WRONG_LENGTH = 'Wrong length';
4260
4422
 
4261
4423
  var fromList = function (C, list) {
4424
+ aTypedArrayConstructor(C);
4262
4425
  var index = 0;
4263
4426
  var length = list.length;
4264
- var result = new (aTypedArrayConstructor(C))(length);
4427
+ var result = new C(length);
4265
4428
  while (length > index) result[index] = list[index++];
4266
4429
  return result;
4267
4430
  };
@@ -4274,14 +4437,14 @@
4274
4437
 
4275
4438
  var isArrayBuffer = function (it) {
4276
4439
  var klass;
4277
- return it instanceof ArrayBuffer || (klass = classof(it)) == 'ArrayBuffer' || klass == 'SharedArrayBuffer';
4440
+ return objectIsPrototypeOf(ArrayBufferPrototype, it) || (klass = classof(it)) == 'ArrayBuffer' || klass == 'SharedArrayBuffer';
4278
4441
  };
4279
4442
 
4280
4443
  var isTypedArrayIndex = function (target, key) {
4281
4444
  return isTypedArray(target)
4282
4445
  && !isSymbol$1(key)
4283
4446
  && key in target
4284
- && isInteger(+key)
4447
+ && isIntegralNumber(+key)
4285
4448
  && key >= 0;
4286
4449
  };
4287
4450
 
@@ -4296,13 +4459,13 @@
4296
4459
  key = toPropertyKey(key);
4297
4460
  if (isTypedArrayIndex(target, key)
4298
4461
  && isObject$1(descriptor)
4299
- && has$1(descriptor, 'value')
4300
- && !has$1(descriptor, 'get')
4301
- && !has$1(descriptor, 'set')
4462
+ && hasOwnProperty_1(descriptor, 'value')
4463
+ && !hasOwnProperty_1(descriptor, 'get')
4464
+ && !hasOwnProperty_1(descriptor, 'set')
4302
4465
  // TODO: add validation descriptor w/o calling accessors
4303
4466
  && !descriptor.configurable
4304
- && (!has$1(descriptor, 'writable') || descriptor.writable)
4305
- && (!has$1(descriptor, 'enumerable') || descriptor.enumerable)
4467
+ && (!hasOwnProperty_1(descriptor, 'writable') || descriptor.writable)
4468
+ && (!hasOwnProperty_1(descriptor, 'enumerable') || descriptor.enumerable)
4306
4469
  ) {
4307
4470
  target[key] = descriptor.value;
4308
4471
  return target;
@@ -4359,7 +4522,7 @@
4359
4522
 
4360
4523
  if (!NATIVE_ARRAY_BUFFER_VIEWS) {
4361
4524
  TypedArrayConstructor = wrapper(function (that, data, offset, $length) {
4362
- anInstance(that, TypedArrayConstructor, CONSTRUCTOR_NAME);
4525
+ anInstance(that, TypedArrayConstructorPrototype);
4363
4526
  var index = 0;
4364
4527
  var byteOffset = 0;
4365
4528
  var buffer, byteLength, length;
@@ -4383,7 +4546,7 @@
4383
4546
  } else if (isTypedArray(data)) {
4384
4547
  return fromList(TypedArrayConstructor, data);
4385
4548
  } else {
4386
- return typedArrayFrom.call(TypedArrayConstructor, data);
4549
+ return functionCall(typedArrayFrom, TypedArrayConstructor, data);
4387
4550
  }
4388
4551
  setInternalState(that, {
4389
4552
  buffer: buffer,
@@ -4399,7 +4562,7 @@
4399
4562
  TypedArrayConstructorPrototype = TypedArrayConstructor.prototype = objectCreate(TypedArrayPrototype);
4400
4563
  } else if (typedArrayConstructorsRequireWrappers) {
4401
4564
  TypedArrayConstructor = wrapper(function (dummy, data, typedArrayOffset, $length) {
4402
- anInstance(dummy, TypedArrayConstructor, CONSTRUCTOR_NAME);
4565
+ anInstance(dummy, TypedArrayConstructorPrototype);
4403
4566
  return inheritIfRequired(function () {
4404
4567
  if (!isObject$1(data)) return new NativeTypedArrayConstructor(toIndex(data));
4405
4568
  if (isArrayBuffer(data)) return $length !== undefined
@@ -4408,7 +4571,7 @@
4408
4571
  ? new NativeTypedArrayConstructor(data, toOffset(typedArrayOffset, BYTES))
4409
4572
  : new NativeTypedArrayConstructor(data);
4410
4573
  if (isTypedArray(data)) return fromList(TypedArrayConstructor, data);
4411
- return typedArrayFrom.call(TypedArrayConstructor, data);
4574
+ return functionCall(typedArrayFrom, TypedArrayConstructor, data);
4412
4575
  }(), dummy, TypedArrayConstructor);
4413
4576
  });
4414
4577
 
@@ -4465,7 +4628,7 @@
4465
4628
  // eslint-disable-next-line es/no-array-prototype-copywithin -- safe
4466
4629
  var arrayCopyWithin = [].copyWithin || function copyWithin(target /* = 0 */, start /* = 0, end = @length */) {
4467
4630
  var O = toObject(this);
4468
- var len = toLength(O.length);
4631
+ var len = lengthOfArrayLike(O);
4469
4632
  var to = toAbsoluteIndex(target, len);
4470
4633
  var from = toAbsoluteIndex(start, len);
4471
4634
  var end = arguments.length > 2 ? arguments[2] : undefined;
@@ -4484,13 +4647,14 @@
4484
4647
  } return O;
4485
4648
  };
4486
4649
 
4650
+ var u$ArrayCopyWithin = functionUncurryThis(arrayCopyWithin);
4487
4651
  var aTypedArray$l = arrayBufferViewCore.aTypedArray;
4488
4652
  var exportTypedArrayMethod$m = arrayBufferViewCore.exportTypedArrayMethod;
4489
4653
 
4490
4654
  // `%TypedArray%.prototype.copyWithin` method
4491
4655
  // https://tc39.es/ecma262/#sec-%typedarray%.prototype.copywithin
4492
4656
  exportTypedArrayMethod$m('copyWithin', function copyWithin(target, start /* , end */) {
4493
- return arrayCopyWithin.call(aTypedArray$l(this), target, start, arguments.length > 2 ? arguments[2] : undefined);
4657
+ return u$ArrayCopyWithin(aTypedArray$l(this), target, start, arguments.length > 2 ? arguments[2] : undefined);
4494
4658
  });
4495
4659
 
4496
4660
  var $every = arrayIteration.every;
@@ -4509,9 +4673,15 @@
4509
4673
 
4510
4674
  // `%TypedArray%.prototype.fill` method
4511
4675
  // https://tc39.es/ecma262/#sec-%typedarray%.prototype.fill
4512
- // eslint-disable-next-line no-unused-vars -- required for `.length`
4513
4676
  exportTypedArrayMethod$k('fill', function fill(value /* , start, end */) {
4514
- return arrayFill.apply(aTypedArray$j(this), arguments);
4677
+ var length = arguments.length;
4678
+ return functionCall(
4679
+ arrayFill,
4680
+ aTypedArray$j(this),
4681
+ value,
4682
+ length > 1 ? arguments[1] : undefined,
4683
+ length > 2 ? arguments[2] : undefined
4684
+ );
4515
4685
  });
4516
4686
 
4517
4687
  var arrayFromConstructorAndList = function (Constructor, list) {
@@ -4610,9 +4780,9 @@
4610
4780
 
4611
4781
  var ITERATOR$1 = wellKnownSymbol('iterator');
4612
4782
  var Uint8Array$2 = global_1.Uint8Array;
4613
- var arrayValues = es_array_iterator.values;
4614
- var arrayKeys = es_array_iterator.keys;
4615
- var arrayEntries = es_array_iterator.entries;
4783
+ var arrayValues = functionUncurryThis(es_array_iterator.values);
4784
+ var arrayKeys = functionUncurryThis(es_array_iterator.keys);
4785
+ var arrayEntries = functionUncurryThis(es_array_iterator.entries);
4616
4786
  var aTypedArray$c = arrayBufferViewCore.aTypedArray;
4617
4787
  var exportTypedArrayMethod$d = arrayBufferViewCore.exportTypedArrayMethod;
4618
4788
  var nativeTypedArrayIterator = Uint8Array$2 && Uint8Array$2.prototype[ITERATOR$1];
@@ -4620,18 +4790,18 @@
4620
4790
  var PROPER_ARRAY_VALUES_NAME = !!nativeTypedArrayIterator && nativeTypedArrayIterator.name === 'values';
4621
4791
 
4622
4792
  var typedArrayValues = function values() {
4623
- return arrayValues.call(aTypedArray$c(this));
4793
+ return arrayValues(aTypedArray$c(this));
4624
4794
  };
4625
4795
 
4626
4796
  // `%TypedArray%.prototype.entries` method
4627
4797
  // https://tc39.es/ecma262/#sec-%typedarray%.prototype.entries
4628
4798
  exportTypedArrayMethod$d('entries', function entries() {
4629
- return arrayEntries.call(aTypedArray$c(this));
4799
+ return arrayEntries(aTypedArray$c(this));
4630
4800
  });
4631
4801
  // `%TypedArray%.prototype.keys` method
4632
4802
  // https://tc39.es/ecma262/#sec-%typedarray%.prototype.keys
4633
4803
  exportTypedArrayMethod$d('keys', function keys() {
4634
- return arrayKeys.call(aTypedArray$c(this));
4804
+ return arrayKeys(aTypedArray$c(this));
4635
4805
  });
4636
4806
  // `%TypedArray%.prototype.values` method
4637
4807
  // https://tc39.es/ecma262/#sec-%typedarray%.prototype.values
@@ -4642,13 +4812,12 @@
4642
4812
 
4643
4813
  var aTypedArray$b = arrayBufferViewCore.aTypedArray;
4644
4814
  var exportTypedArrayMethod$c = arrayBufferViewCore.exportTypedArrayMethod;
4645
- var $join = [].join;
4815
+ var $join = functionUncurryThis([].join);
4646
4816
 
4647
4817
  // `%TypedArray%.prototype.join` method
4648
4818
  // https://tc39.es/ecma262/#sec-%typedarray%.prototype.join
4649
- // eslint-disable-next-line no-unused-vars -- required for `.length`
4650
4819
  exportTypedArrayMethod$c('join', function join(separator) {
4651
- return $join.apply(aTypedArray$b(this), arguments);
4820
+ return $join(aTypedArray$b(this), separator);
4652
4821
  });
4653
4822
 
4654
4823
  /* eslint-disable es/no-array-prototype-lastindexof -- safe */
@@ -4657,6 +4826,7 @@
4657
4826
 
4658
4827
 
4659
4828
 
4829
+
4660
4830
  var min$1 = Math.min;
4661
4831
  var $lastIndexOf = [].lastIndexOf;
4662
4832
  var NEGATIVE_ZERO = !!$lastIndexOf && 1 / [1].lastIndexOf(1, -0) < 0;
@@ -4667,11 +4837,11 @@
4667
4837
  // https://tc39.es/ecma262/#sec-array.prototype.lastindexof
4668
4838
  var arrayLastIndexOf = FORCED$6 ? function lastIndexOf(searchElement /* , fromIndex = @[*-1] */) {
4669
4839
  // convert -0 to +0
4670
- if (NEGATIVE_ZERO) return $lastIndexOf.apply(this, arguments) || 0;
4840
+ if (NEGATIVE_ZERO) return functionApply($lastIndexOf, this, arguments) || 0;
4671
4841
  var O = toIndexedObject(this);
4672
- var length = toLength(O.length);
4842
+ var length = lengthOfArrayLike(O);
4673
4843
  var index = length - 1;
4674
- if (arguments.length > 1) index = min$1(index, toInteger(arguments[1]));
4844
+ if (arguments.length > 1) index = min$1(index, toIntegerOrInfinity(arguments[1]));
4675
4845
  if (index < 0) index = length + index;
4676
4846
  for (;index >= 0; index--) if (index in O && O[index] === searchElement) return index || 0;
4677
4847
  return -1;
@@ -4682,9 +4852,9 @@
4682
4852
 
4683
4853
  // `%TypedArray%.prototype.lastIndexOf` method
4684
4854
  // https://tc39.es/ecma262/#sec-%typedarray%.prototype.lastindexof
4685
- // eslint-disable-next-line no-unused-vars -- required for `.length`
4686
4855
  exportTypedArrayMethod$b('lastIndexOf', function lastIndexOf(searchElement /* , fromIndex */) {
4687
- return arrayLastIndexOf.apply(aTypedArray$a(this), arguments);
4856
+ var length = arguments.length;
4857
+ return functionApply(arrayLastIndexOf, aTypedArray$a(this), length > 1 ? [searchElement, arguments[1]] : [searchElement]);
4688
4858
  });
4689
4859
 
4690
4860
  var $map = arrayIteration.map;
@@ -4701,13 +4871,15 @@
4701
4871
  });
4702
4872
  });
4703
4873
 
4874
+ var TypeError$5 = global_1.TypeError;
4875
+
4704
4876
  // `Array.prototype.{ reduce, reduceRight }` methods implementation
4705
4877
  var createMethod$1 = function (IS_RIGHT) {
4706
4878
  return function (that, callbackfn, argumentsLength, memo) {
4707
4879
  aCallable(callbackfn);
4708
4880
  var O = toObject(that);
4709
4881
  var self = indexedObject(O);
4710
- var length = toLength(O.length);
4882
+ var length = lengthOfArrayLike(O);
4711
4883
  var index = IS_RIGHT ? length - 1 : 0;
4712
4884
  var i = IS_RIGHT ? -1 : 1;
4713
4885
  if (argumentsLength < 2) while (true) {
@@ -4718,7 +4890,7 @@
4718
4890
  }
4719
4891
  index += i;
4720
4892
  if (IS_RIGHT ? index < 0 : length <= index) {
4721
- throw TypeError('Reduce of empty array with no initial value');
4893
+ throw TypeError$5('Reduce of empty array with no initial value');
4722
4894
  }
4723
4895
  }
4724
4896
  for (;IS_RIGHT ? index >= 0 : length > index; index += i) if (index in self) {
@@ -4745,7 +4917,8 @@
4745
4917
  // `%TypedArray%.prototype.reduce` method
4746
4918
  // https://tc39.es/ecma262/#sec-%typedarray%.prototype.reduce
4747
4919
  exportTypedArrayMethod$9('reduce', function reduce(callbackfn /* , initialValue */) {
4748
- return $reduce(aTypedArray$8(this), callbackfn, arguments.length, arguments.length > 1 ? arguments[1] : undefined);
4920
+ var length = arguments.length;
4921
+ return $reduce(aTypedArray$8(this), callbackfn, length, length > 1 ? arguments[1] : undefined);
4749
4922
  });
4750
4923
 
4751
4924
  var $reduceRight = arrayReduce.right;
@@ -4756,7 +4929,8 @@
4756
4929
  // `%TypedArray%.prototype.reduceRicht` method
4757
4930
  // https://tc39.es/ecma262/#sec-%typedarray%.prototype.reduceright
4758
4931
  exportTypedArrayMethod$8('reduceRight', function reduceRight(callbackfn /* , initialValue */) {
4759
- return $reduceRight(aTypedArray$7(this), callbackfn, arguments.length, arguments.length > 1 ? arguments[1] : undefined);
4932
+ var length = arguments.length;
4933
+ return $reduceRight(aTypedArray$7(this), callbackfn, length, length > 1 ? arguments[1] : undefined);
4760
4934
  });
4761
4935
 
4762
4936
  var aTypedArray$6 = arrayBufferViewCore.aTypedArray;
@@ -4778,6 +4952,7 @@
4778
4952
  } return that;
4779
4953
  });
4780
4954
 
4955
+ var RangeError$3 = global_1.RangeError;
4781
4956
  var aTypedArray$5 = arrayBufferViewCore.aTypedArray;
4782
4957
  var exportTypedArrayMethod$6 = arrayBufferViewCore.exportTypedArrayMethod;
4783
4958
 
@@ -4793,15 +4968,14 @@
4793
4968
  var offset = toOffset(arguments.length > 1 ? arguments[1] : undefined, 1);
4794
4969
  var length = this.length;
4795
4970
  var src = toObject(arrayLike);
4796
- var len = toLength(src.length);
4971
+ var len = lengthOfArrayLike(src);
4797
4972
  var index = 0;
4798
- if (len + offset > length) throw RangeError('Wrong length');
4973
+ if (len + offset > length) throw RangeError$3('Wrong length');
4799
4974
  while (index < len) this[offset + index] = src[index++];
4800
4975
  }, FORCED$5);
4801
4976
 
4802
4977
  var aTypedArray$4 = arrayBufferViewCore.aTypedArray;
4803
4978
  var exportTypedArrayMethod$5 = arrayBufferViewCore.exportTypedArrayMethod;
4804
- var $slice$1 = [].slice;
4805
4979
 
4806
4980
  var FORCED$4 = fails(function () {
4807
4981
  // eslint-disable-next-line es/no-typed-arrays -- required for testing
@@ -4811,7 +4985,7 @@
4811
4985
  // `%TypedArray%.prototype.slice` method
4812
4986
  // https://tc39.es/ecma262/#sec-%typedarray%.prototype.slice
4813
4987
  exportTypedArrayMethod$5('slice', function slice(start, end) {
4814
- var list = $slice$1.call(aTypedArray$4(this), start, end);
4988
+ var list = arraySlice(aTypedArray$4(this), start, end);
4815
4989
  var C = typedArraySpeciesConstructor(this);
4816
4990
  var index = 0;
4817
4991
  var length = list.length;
@@ -4831,15 +5005,15 @@
4831
5005
  return $some(aTypedArray$3(this), callbackfn, arguments.length > 1 ? arguments[1] : undefined);
4832
5006
  });
4833
5007
 
4834
- // TODO: use something more complex like timsort?
4835
5008
  var floor$1 = Math.floor;
4836
5009
 
4837
5010
  var mergeSort = function (array, comparefn) {
4838
5011
  var length = array.length;
4839
5012
  var middle = floor$1(length / 2);
4840
5013
  return length < 8 ? insertionSort(array, comparefn) : merge(
4841
- mergeSort(array.slice(0, middle), comparefn),
4842
- mergeSort(array.slice(middle), comparefn),
5014
+ array,
5015
+ mergeSort(arraySlice(array, 0, middle), comparefn),
5016
+ mergeSort(arraySlice(array, middle), comparefn),
4843
5017
  comparefn
4844
5018
  );
4845
5019
  };
@@ -4859,20 +5033,17 @@
4859
5033
  } return array;
4860
5034
  };
4861
5035
 
4862
- var merge = function (left, right, comparefn) {
5036
+ var merge = function (array, left, right, comparefn) {
4863
5037
  var llength = left.length;
4864
5038
  var rlength = right.length;
4865
5039
  var lindex = 0;
4866
5040
  var rindex = 0;
4867
- var result = [];
4868
5041
 
4869
5042
  while (lindex < llength || rindex < rlength) {
4870
- if (lindex < llength && rindex < rlength) {
4871
- result.push(comparefn(left[lindex], right[rindex]) <= 0 ? left[lindex++] : right[rindex++]);
4872
- } else {
4873
- result.push(lindex < llength ? left[lindex++] : right[rindex++]);
4874
- }
4875
- } return result;
5043
+ array[lindex + rindex] = (lindex < llength && rindex < rlength)
5044
+ ? comparefn(left[lindex], right[rindex]) <= 0 ? left[lindex++] : right[rindex++]
5045
+ : lindex < llength ? left[lindex++] : right[rindex++];
5046
+ } return array;
4876
5047
  };
4877
5048
 
4878
5049
  var arraySort = mergeSort;
@@ -4887,19 +5058,20 @@
4887
5058
 
4888
5059
  var engineWebkitVersion = !!webkit && +webkit[1];
4889
5060
 
5061
+ var Array$3 = global_1.Array;
4890
5062
  var aTypedArray$2 = arrayBufferViewCore.aTypedArray;
4891
5063
  var exportTypedArrayMethod$3 = arrayBufferViewCore.exportTypedArrayMethod;
4892
5064
  var Uint16Array = global_1.Uint16Array;
4893
- var nativeSort$1 = Uint16Array && Uint16Array.prototype.sort;
5065
+ var un$Sort$1 = Uint16Array && functionUncurryThis(Uint16Array.prototype.sort);
4894
5066
 
4895
5067
  // WebKit
4896
- var ACCEPT_INCORRECT_ARGUMENTS = !!nativeSort$1 && !fails(function () {
4897
- var array = new Uint16Array(2);
4898
- array.sort(null);
4899
- array.sort({});
4900
- });
5068
+ var ACCEPT_INCORRECT_ARGUMENTS = !!un$Sort$1 && !(fails(function () {
5069
+ un$Sort$1(new Uint16Array(2), null);
5070
+ }) && fails(function () {
5071
+ un$Sort$1(new Uint16Array(2), {});
5072
+ }));
4901
5073
 
4902
- var STABLE_SORT$1 = !!nativeSort$1 && !fails(function () {
5074
+ var STABLE_SORT$1 = !!un$Sort$1 && !fails(function () {
4903
5075
  // feature detection can be too slow, so check engines versions
4904
5076
  if (engineV8Version) return engineV8Version < 74;
4905
5077
  if (engineFfVersion) return engineFfVersion < 67;
@@ -4907,7 +5079,7 @@
4907
5079
  if (engineWebkitVersion) return engineWebkitVersion < 602;
4908
5080
 
4909
5081
  var array = new Uint16Array(516);
4910
- var expected = Array(516);
5082
+ var expected = Array$3(516);
4911
5083
  var index, mod;
4912
5084
 
4913
5085
  for (index = 0; index < 516; index++) {
@@ -4916,7 +5088,7 @@
4916
5088
  expected[index] = index - 2 * mod + 3;
4917
5089
  }
4918
5090
 
4919
- array.sort(function (a, b) {
5091
+ un$Sort$1(array, function (a, b) {
4920
5092
  return (a / 4 | 0) - (b / 4 | 0);
4921
5093
  });
4922
5094
 
@@ -4940,26 +5112,10 @@
4940
5112
  // `%TypedArray%.prototype.sort` method
4941
5113
  // https://tc39.es/ecma262/#sec-%typedarray%.prototype.sort
4942
5114
  exportTypedArrayMethod$3('sort', function sort(comparefn) {
4943
- var array = this;
4944
5115
  if (comparefn !== undefined) aCallable(comparefn);
4945
- if (STABLE_SORT$1) return nativeSort$1.call(array, comparefn);
4946
-
4947
- aTypedArray$2(array);
4948
- var arrayLength = toLength(array.length);
4949
- var items = Array(arrayLength);
4950
- var index;
5116
+ if (STABLE_SORT$1) return un$Sort$1(this, comparefn);
4951
5117
 
4952
- for (index = 0; index < arrayLength; index++) {
4953
- items[index] = array[index];
4954
- }
4955
-
4956
- items = arraySort(array, getSortCompare$1(comparefn));
4957
-
4958
- for (index = 0; index < arrayLength; index++) {
4959
- array[index] = items[index];
4960
- }
4961
-
4962
- return array;
5118
+ return arraySort(aTypedArray$2(this), getSortCompare$1(comparefn));
4963
5119
  }, !STABLE_SORT$1 || ACCEPT_INCORRECT_ARGUMENTS);
4964
5120
 
4965
5121
  var aTypedArray$1 = arrayBufferViewCore.aTypedArray;
@@ -4983,7 +5139,6 @@
4983
5139
  var aTypedArray = arrayBufferViewCore.aTypedArray;
4984
5140
  var exportTypedArrayMethod$1 = arrayBufferViewCore.exportTypedArrayMethod;
4985
5141
  var $toLocaleString = [].toLocaleString;
4986
- var $slice = [].slice;
4987
5142
 
4988
5143
  // iOS Safari 6.x fails here
4989
5144
  var TO_LOCALE_STRING_BUG = !!Int8Array$1 && fails(function () {
@@ -4999,21 +5154,26 @@
4999
5154
  // `%TypedArray%.prototype.toLocaleString` method
5000
5155
  // https://tc39.es/ecma262/#sec-%typedarray%.prototype.tolocalestring
5001
5156
  exportTypedArrayMethod$1('toLocaleString', function toLocaleString() {
5002
- return $toLocaleString.apply(TO_LOCALE_STRING_BUG ? $slice.call(aTypedArray(this)) : aTypedArray(this), arguments);
5157
+ return functionApply(
5158
+ $toLocaleString,
5159
+ TO_LOCALE_STRING_BUG ? arraySlice(aTypedArray(this)) : aTypedArray(this),
5160
+ arraySlice(arguments)
5161
+ );
5003
5162
  }, FORCED$3);
5004
5163
 
5005
5164
  var exportTypedArrayMethod = arrayBufferViewCore.exportTypedArrayMethod;
5006
5165
 
5007
5166
 
5008
5167
 
5168
+
5009
5169
  var Uint8Array$1 = global_1.Uint8Array;
5010
5170
  var Uint8ArrayPrototype = Uint8Array$1 && Uint8Array$1.prototype || {};
5011
5171
  var arrayToString = [].toString;
5012
- var arrayJoin = [].join;
5172
+ var join$1 = functionUncurryThis([].join);
5013
5173
 
5014
5174
  if (fails(function () { arrayToString.call({}); })) {
5015
5175
  arrayToString = function toString() {
5016
- return arrayJoin.call(this);
5176
+ return join$1(this);
5017
5177
  };
5018
5178
  }
5019
5179
 
@@ -5047,7 +5207,7 @@
5047
5207
 
5048
5208
  var defineWellKnownSymbol = function (NAME) {
5049
5209
  var Symbol = path$1.Symbol || (path$1.Symbol = {});
5050
- if (!has$1(Symbol, NAME)) defineProperty$3(Symbol, NAME, {
5210
+ if (!hasOwnProperty_1(Symbol, NAME)) defineProperty$3(Symbol, NAME, {
5051
5211
  value: wellKnownSymbolWrapped.f(NAME)
5052
5212
  });
5053
5213
  };
@@ -5058,21 +5218,28 @@
5058
5218
  var SYMBOL = 'Symbol';
5059
5219
  var PROTOTYPE = 'prototype';
5060
5220
  var TO_PRIMITIVE = wellKnownSymbol('toPrimitive');
5221
+
5061
5222
  var setInternalState$3 = internalState.set;
5062
5223
  var getInternalState$2 = internalState.getterFor(SYMBOL);
5224
+
5063
5225
  var ObjectPrototype = Object[PROTOTYPE];
5064
5226
  var $Symbol = global_1.Symbol;
5227
+ var SymbolPrototype$1 = $Symbol && $Symbol[PROTOTYPE];
5228
+ var TypeError$4 = global_1.TypeError;
5229
+ var QObject = global_1.QObject;
5065
5230
  var $stringify = getBuiltIn('JSON', 'stringify');
5066
5231
  var nativeGetOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
5067
5232
  var nativeDefineProperty = objectDefineProperty.f;
5068
5233
  var nativeGetOwnPropertyNames = objectGetOwnPropertyNamesExternal.f;
5069
5234
  var nativePropertyIsEnumerable = objectPropertyIsEnumerable.f;
5235
+ var push$2 = functionUncurryThis([].push);
5236
+
5070
5237
  var AllSymbols = shared('symbols');
5071
5238
  var ObjectPrototypeSymbols = shared('op-symbols');
5072
5239
  var StringToSymbolRegistry = shared('string-to-symbol-registry');
5073
5240
  var SymbolToStringRegistry = shared('symbol-to-string-registry');
5074
5241
  var WellKnownSymbolsStore = shared('wks');
5075
- var QObject = global_1.QObject;
5242
+
5076
5243
  // Don't use setters in Qt Script, https://github.com/zloirock/core-js/issues/173
5077
5244
  var USE_SETTER = !QObject || !QObject[PROTOTYPE] || !QObject[PROTOTYPE].findChild;
5078
5245
 
@@ -5091,7 +5258,7 @@
5091
5258
  } : nativeDefineProperty;
5092
5259
 
5093
5260
  var wrap = function (tag, description) {
5094
- var symbol = AllSymbols[tag] = objectCreate($Symbol[PROTOTYPE]);
5261
+ var symbol = AllSymbols[tag] = objectCreate(SymbolPrototype$1);
5095
5262
  setInternalState$3(symbol, {
5096
5263
  type: SYMBOL,
5097
5264
  tag: tag,
@@ -5106,12 +5273,12 @@
5106
5273
  anObject(O);
5107
5274
  var key = toPropertyKey(P);
5108
5275
  anObject(Attributes);
5109
- if (has$1(AllSymbols, key)) {
5276
+ if (hasOwnProperty_1(AllSymbols, key)) {
5110
5277
  if (!Attributes.enumerable) {
5111
- if (!has$1(O, HIDDEN)) nativeDefineProperty(O, HIDDEN, createPropertyDescriptor(1, {}));
5278
+ if (!hasOwnProperty_1(O, HIDDEN)) nativeDefineProperty(O, HIDDEN, createPropertyDescriptor(1, {}));
5112
5279
  O[HIDDEN][key] = true;
5113
5280
  } else {
5114
- if (has$1(O, HIDDEN) && O[HIDDEN][key]) O[HIDDEN][key] = false;
5281
+ if (hasOwnProperty_1(O, HIDDEN) && O[HIDDEN][key]) O[HIDDEN][key] = false;
5115
5282
  Attributes = objectCreate(Attributes, { enumerable: createPropertyDescriptor(0, false) });
5116
5283
  } return setSymbolDescriptor(O, key, Attributes);
5117
5284
  } return nativeDefineProperty(O, key, Attributes);
@@ -5122,7 +5289,7 @@
5122
5289
  var properties = toIndexedObject(Properties);
5123
5290
  var keys = objectKeys(properties).concat($getOwnPropertySymbols(properties));
5124
5291
  $forEach(keys, function (key) {
5125
- if (!descriptors || $propertyIsEnumerable.call(properties, key)) $defineProperty(O, key, properties[key]);
5292
+ if (!descriptors || functionCall($propertyIsEnumerable$1, properties, key)) $defineProperty(O, key, properties[key]);
5126
5293
  });
5127
5294
  return O;
5128
5295
  };
@@ -5131,19 +5298,20 @@
5131
5298
  return Properties === undefined ? objectCreate(O) : $defineProperties(objectCreate(O), Properties);
5132
5299
  };
5133
5300
 
5134
- var $propertyIsEnumerable = function propertyIsEnumerable(V) {
5301
+ var $propertyIsEnumerable$1 = function propertyIsEnumerable(V) {
5135
5302
  var P = toPropertyKey(V);
5136
- var enumerable = nativePropertyIsEnumerable.call(this, P);
5137
- if (this === ObjectPrototype && has$1(AllSymbols, P) && !has$1(ObjectPrototypeSymbols, P)) return false;
5138
- return enumerable || !has$1(this, P) || !has$1(AllSymbols, P) || has$1(this, HIDDEN) && this[HIDDEN][P] ? enumerable : true;
5303
+ var enumerable = functionCall(nativePropertyIsEnumerable, this, P);
5304
+ if (this === ObjectPrototype && hasOwnProperty_1(AllSymbols, P) && !hasOwnProperty_1(ObjectPrototypeSymbols, P)) return false;
5305
+ return enumerable || !hasOwnProperty_1(this, P) || !hasOwnProperty_1(AllSymbols, P) || hasOwnProperty_1(this, HIDDEN) && this[HIDDEN][P]
5306
+ ? enumerable : true;
5139
5307
  };
5140
5308
 
5141
5309
  var $getOwnPropertyDescriptor = function getOwnPropertyDescriptor(O, P) {
5142
5310
  var it = toIndexedObject(O);
5143
5311
  var key = toPropertyKey(P);
5144
- if (it === ObjectPrototype && has$1(AllSymbols, key) && !has$1(ObjectPrototypeSymbols, key)) return;
5312
+ if (it === ObjectPrototype && hasOwnProperty_1(AllSymbols, key) && !hasOwnProperty_1(ObjectPrototypeSymbols, key)) return;
5145
5313
  var descriptor = nativeGetOwnPropertyDescriptor(it, key);
5146
- if (descriptor && has$1(AllSymbols, key) && !(has$1(it, HIDDEN) && it[HIDDEN][key])) {
5314
+ if (descriptor && hasOwnProperty_1(AllSymbols, key) && !(hasOwnProperty_1(it, HIDDEN) && it[HIDDEN][key])) {
5147
5315
  descriptor.enumerable = true;
5148
5316
  }
5149
5317
  return descriptor;
@@ -5153,7 +5321,7 @@
5153
5321
  var names = nativeGetOwnPropertyNames(toIndexedObject(O));
5154
5322
  var result = [];
5155
5323
  $forEach(names, function (key) {
5156
- if (!has$1(AllSymbols, key) && !has$1(hiddenKeys$1, key)) result.push(key);
5324
+ if (!hasOwnProperty_1(AllSymbols, key) && !hasOwnProperty_1(hiddenKeys$1, key)) push$2(result, key);
5157
5325
  });
5158
5326
  return result;
5159
5327
  };
@@ -5163,8 +5331,8 @@
5163
5331
  var names = nativeGetOwnPropertyNames(IS_OBJECT_PROTOTYPE ? ObjectPrototypeSymbols : toIndexedObject(O));
5164
5332
  var result = [];
5165
5333
  $forEach(names, function (key) {
5166
- if (has$1(AllSymbols, key) && (!IS_OBJECT_PROTOTYPE || has$1(ObjectPrototype, key))) {
5167
- result.push(AllSymbols[key]);
5334
+ if (hasOwnProperty_1(AllSymbols, key) && (!IS_OBJECT_PROTOTYPE || hasOwnProperty_1(ObjectPrototype, key))) {
5335
+ push$2(result, AllSymbols[key]);
5168
5336
  }
5169
5337
  });
5170
5338
  return result;
@@ -5172,21 +5340,23 @@
5172
5340
 
5173
5341
  // `Symbol` constructor
5174
5342
  // https://tc39.es/ecma262/#sec-symbol-constructor
5175
- if (!nativeSymbol$1) {
5343
+ if (!nativeSymbol) {
5176
5344
  $Symbol = function Symbol() {
5177
- if (this instanceof $Symbol) throw TypeError('Symbol is not a constructor');
5345
+ if (objectIsPrototypeOf(SymbolPrototype$1, this)) throw TypeError$4('Symbol is not a constructor');
5178
5346
  var description = !arguments.length || arguments[0] === undefined ? undefined : toString_1(arguments[0]);
5179
5347
  var tag = uid(description);
5180
5348
  var setter = function (value) {
5181
- if (this === ObjectPrototype) setter.call(ObjectPrototypeSymbols, value);
5182
- if (has$1(this, HIDDEN) && has$1(this[HIDDEN], tag)) this[HIDDEN][tag] = false;
5349
+ if (this === ObjectPrototype) functionCall(setter, ObjectPrototypeSymbols, value);
5350
+ if (hasOwnProperty_1(this, HIDDEN) && hasOwnProperty_1(this[HIDDEN], tag)) this[HIDDEN][tag] = false;
5183
5351
  setSymbolDescriptor(this, tag, createPropertyDescriptor(1, value));
5184
5352
  };
5185
5353
  if (descriptors && USE_SETTER) setSymbolDescriptor(ObjectPrototype, tag, { configurable: true, set: setter });
5186
5354
  return wrap(tag, description);
5187
5355
  };
5188
5356
 
5189
- redefine($Symbol[PROTOTYPE], 'toString', function toString() {
5357
+ SymbolPrototype$1 = $Symbol[PROTOTYPE];
5358
+
5359
+ redefine(SymbolPrototype$1, 'toString', function toString() {
5190
5360
  return getInternalState$2(this).tag;
5191
5361
  });
5192
5362
 
@@ -5194,7 +5364,7 @@
5194
5364
  return wrap(uid(description), description);
5195
5365
  });
5196
5366
 
5197
- objectPropertyIsEnumerable.f = $propertyIsEnumerable;
5367
+ objectPropertyIsEnumerable.f = $propertyIsEnumerable$1;
5198
5368
  objectDefineProperty.f = $defineProperty;
5199
5369
  objectGetOwnPropertyDescriptor.f = $getOwnPropertyDescriptor;
5200
5370
  objectGetOwnPropertyNames.f = objectGetOwnPropertyNamesExternal.f = $getOwnPropertyNames;
@@ -5206,19 +5376,19 @@
5206
5376
 
5207
5377
  if (descriptors) {
5208
5378
  // https://github.com/tc39/proposal-Symbol-description
5209
- nativeDefineProperty($Symbol[PROTOTYPE], 'description', {
5379
+ nativeDefineProperty(SymbolPrototype$1, 'description', {
5210
5380
  configurable: true,
5211
5381
  get: function description() {
5212
5382
  return getInternalState$2(this).description;
5213
5383
  }
5214
5384
  });
5215
5385
  {
5216
- redefine(ObjectPrototype, 'propertyIsEnumerable', $propertyIsEnumerable, { unsafe: true });
5386
+ redefine(ObjectPrototype, 'propertyIsEnumerable', $propertyIsEnumerable$1, { unsafe: true });
5217
5387
  }
5218
5388
  }
5219
5389
  }
5220
5390
 
5221
- _export({ global: true, wrap: true, forced: !nativeSymbol$1, sham: !nativeSymbol$1 }, {
5391
+ _export({ global: true, wrap: true, forced: !nativeSymbol, sham: !nativeSymbol }, {
5222
5392
  Symbol: $Symbol
5223
5393
  });
5224
5394
 
@@ -5226,12 +5396,12 @@
5226
5396
  defineWellKnownSymbol(name);
5227
5397
  });
5228
5398
 
5229
- _export({ target: SYMBOL, stat: true, forced: !nativeSymbol$1 }, {
5399
+ _export({ target: SYMBOL, stat: true, forced: !nativeSymbol }, {
5230
5400
  // `Symbol.for` method
5231
5401
  // https://tc39.es/ecma262/#sec-symbol.for
5232
5402
  'for': function (key) {
5233
5403
  var string = toString_1(key);
5234
- if (has$1(StringToSymbolRegistry, string)) return StringToSymbolRegistry[string];
5404
+ if (hasOwnProperty_1(StringToSymbolRegistry, string)) return StringToSymbolRegistry[string];
5235
5405
  var symbol = $Symbol(string);
5236
5406
  StringToSymbolRegistry[string] = symbol;
5237
5407
  SymbolToStringRegistry[symbol] = string;
@@ -5240,14 +5410,14 @@
5240
5410
  // `Symbol.keyFor` method
5241
5411
  // https://tc39.es/ecma262/#sec-symbol.keyfor
5242
5412
  keyFor: function keyFor(sym) {
5243
- if (!isSymbol$1(sym)) throw TypeError(sym + ' is not a symbol');
5244
- if (has$1(SymbolToStringRegistry, sym)) return SymbolToStringRegistry[sym];
5413
+ if (!isSymbol$1(sym)) throw TypeError$4(sym + ' is not a symbol');
5414
+ if (hasOwnProperty_1(SymbolToStringRegistry, sym)) return SymbolToStringRegistry[sym];
5245
5415
  },
5246
5416
  useSetter: function () { USE_SETTER = true; },
5247
5417
  useSimple: function () { USE_SETTER = false; }
5248
5418
  });
5249
5419
 
5250
- _export({ target: 'Object', stat: true, forced: !nativeSymbol$1, sham: !descriptors }, {
5420
+ _export({ target: 'Object', stat: true, forced: !nativeSymbol, sham: !descriptors }, {
5251
5421
  // `Object.create` method
5252
5422
  // https://tc39.es/ecma262/#sec-object.create
5253
5423
  create: $create,
@@ -5262,7 +5432,7 @@
5262
5432
  getOwnPropertyDescriptor: $getOwnPropertyDescriptor
5263
5433
  });
5264
5434
 
5265
- _export({ target: 'Object', stat: true, forced: !nativeSymbol$1 }, {
5435
+ _export({ target: 'Object', stat: true, forced: !nativeSymbol }, {
5266
5436
  // `Object.getOwnPropertyNames` method
5267
5437
  // https://tc39.es/ecma262/#sec-object.getownpropertynames
5268
5438
  getOwnPropertyNames: $getOwnPropertyNames,
@@ -5282,7 +5452,7 @@
5282
5452
  // `JSON.stringify` method behavior with symbols
5283
5453
  // https://tc39.es/ecma262/#sec-json.stringify
5284
5454
  if ($stringify) {
5285
- var FORCED_JSON_STRINGIFY = !nativeSymbol$1 || fails(function () {
5455
+ var FORCED_JSON_STRINGIFY = !nativeSymbol || fails(function () {
5286
5456
  var symbol = $Symbol();
5287
5457
  // MS Edge converts symbol values to JSON as {}
5288
5458
  return $stringify([symbol]) != '[null]'
@@ -5295,28 +5465,27 @@
5295
5465
  _export({ target: 'JSON', stat: true, forced: FORCED_JSON_STRINGIFY }, {
5296
5466
  // eslint-disable-next-line no-unused-vars -- required for `.length`
5297
5467
  stringify: function stringify(it, replacer, space) {
5298
- var args = [it];
5299
- var index = 1;
5300
- var $replacer;
5301
- while (arguments.length > index) args.push(arguments[index++]);
5302
- $replacer = replacer;
5468
+ var args = arraySlice(arguments);
5469
+ var $replacer = replacer;
5303
5470
  if (!isObject$1(replacer) && it === undefined || isSymbol$1(it)) return; // IE8 returns string on undefined
5304
5471
  if (!isArray$3(replacer)) replacer = function (key, value) {
5305
- if (isCallable($replacer)) value = $replacer.call(this, key, value);
5472
+ if (isCallable($replacer)) value = functionCall($replacer, this, key, value);
5306
5473
  if (!isSymbol$1(value)) return value;
5307
5474
  };
5308
5475
  args[1] = replacer;
5309
- return $stringify.apply(null, args);
5476
+ return functionApply($stringify, null, args);
5310
5477
  }
5311
5478
  });
5312
5479
  }
5313
5480
 
5314
5481
  // `Symbol.prototype[@@toPrimitive]` method
5315
5482
  // https://tc39.es/ecma262/#sec-symbol.prototype-@@toprimitive
5316
- if (!$Symbol[PROTOTYPE][TO_PRIMITIVE]) {
5317
- var valueOf$1 = $Symbol[PROTOTYPE].valueOf;
5318
- redefine($Symbol[PROTOTYPE], TO_PRIMITIVE, function () {
5319
- return valueOf$1.apply(this, arguments);
5483
+ if (!SymbolPrototype$1[TO_PRIMITIVE]) {
5484
+ var valueOf = SymbolPrototype$1.valueOf;
5485
+ // eslint-disable-next-line no-unused-vars -- required for .length
5486
+ redefine(SymbolPrototype$1, TO_PRIMITIVE, function (hint) {
5487
+ // TODO: improve hint logic
5488
+ return functionCall(valueOf, this);
5320
5489
  });
5321
5490
  }
5322
5491
  // `Symbol.prototype[@@toStringTag]` property
@@ -5329,36 +5498,42 @@
5329
5498
 
5330
5499
 
5331
5500
  var NativeSymbol = global_1.Symbol;
5501
+ var SymbolPrototype = NativeSymbol && NativeSymbol.prototype;
5332
5502
 
5333
- if (descriptors && isCallable(NativeSymbol) && (!('description' in NativeSymbol.prototype) ||
5503
+ if (descriptors && isCallable(NativeSymbol) && (!('description' in SymbolPrototype) ||
5334
5504
  // Safari 12 bug
5335
5505
  NativeSymbol().description !== undefined
5336
5506
  )) {
5337
5507
  var EmptyStringDescriptionStore = {};
5338
5508
  // wrap Symbol constructor for correct work with undefined description
5339
5509
  var SymbolWrapper = function Symbol() {
5340
- var description = arguments.length < 1 || arguments[0] === undefined ? undefined : String(arguments[0]);
5341
- var result = this instanceof SymbolWrapper
5510
+ var description = arguments.length < 1 || arguments[0] === undefined ? undefined : toString_1(arguments[0]);
5511
+ var result = objectIsPrototypeOf(SymbolPrototype, this)
5342
5512
  ? new NativeSymbol(description)
5343
5513
  // in Edge 13, String(Symbol(undefined)) === 'Symbol(undefined)'
5344
5514
  : description === undefined ? NativeSymbol() : NativeSymbol(description);
5345
5515
  if (description === '') EmptyStringDescriptionStore[result] = true;
5346
5516
  return result;
5347
5517
  };
5518
+
5348
5519
  copyConstructorProperties(SymbolWrapper, NativeSymbol);
5349
- var symbolPrototype = SymbolWrapper.prototype = NativeSymbol.prototype;
5350
- symbolPrototype.constructor = SymbolWrapper;
5520
+ SymbolWrapper.prototype = SymbolPrototype;
5521
+ SymbolPrototype.constructor = SymbolWrapper;
5351
5522
 
5352
- var symbolToString = symbolPrototype.toString;
5353
- var nativeSymbol = String(NativeSymbol('test')) == 'Symbol(test)';
5523
+ var NATIVE_SYMBOL = String(NativeSymbol('test')) == 'Symbol(test)';
5524
+ var symbolToString = functionUncurryThis(SymbolPrototype.toString);
5525
+ var symbolValueOf = functionUncurryThis(SymbolPrototype.valueOf);
5354
5526
  var regexp = /^Symbol\((.*)\)[^)]+$/;
5355
- defineProperty$2(symbolPrototype, 'description', {
5527
+ var replace = functionUncurryThis(''.replace);
5528
+ var stringSlice$1 = functionUncurryThis(''.slice);
5529
+
5530
+ defineProperty$2(SymbolPrototype, 'description', {
5356
5531
  configurable: true,
5357
5532
  get: function description() {
5358
- var symbol = isObject$1(this) ? this.valueOf() : this;
5359
- var string = symbolToString.call(symbol);
5360
- if (has$1(EmptyStringDescriptionStore, symbol)) return '';
5361
- var desc = nativeSymbol ? string.slice(7, -1) : string.replace(regexp, '$1');
5533
+ var symbol = symbolValueOf(this);
5534
+ var string = symbolToString(symbol);
5535
+ if (hasOwnProperty_1(EmptyStringDescriptionStore, symbol)) return '';
5536
+ var desc = NATIVE_SYMBOL ? stringSlice$1(string, 7, -1) : replace(string, regexp, '$1');
5362
5537
  return desc === '' ? undefined : desc;
5363
5538
  }
5364
5539
  });
@@ -5388,7 +5563,7 @@
5388
5563
  var HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('slice');
5389
5564
 
5390
5565
  var SPECIES$1 = wellKnownSymbol('species');
5391
- var nativeSlice = [].slice;
5566
+ var Array$2 = global_1.Array;
5392
5567
  var max = Math.max;
5393
5568
 
5394
5569
  // `Array.prototype.slice` method
@@ -5397,7 +5572,7 @@
5397
5572
  _export({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT }, {
5398
5573
  slice: function slice(start, end) {
5399
5574
  var O = toIndexedObject(this);
5400
- var length = toLength(O.length);
5575
+ var length = lengthOfArrayLike(O);
5401
5576
  var k = toAbsoluteIndex(start, length);
5402
5577
  var fin = toAbsoluteIndex(end === undefined ? length : end, length);
5403
5578
  // inline `ArraySpeciesCreate` for usage native `Array#slice` where it's possible
@@ -5405,17 +5580,17 @@
5405
5580
  if (isArray$3(O)) {
5406
5581
  Constructor = O.constructor;
5407
5582
  // cross-realm fallback
5408
- if (isConstructor(Constructor) && (Constructor === Array || isArray$3(Constructor.prototype))) {
5583
+ if (isConstructor(Constructor) && (Constructor === Array$2 || isArray$3(Constructor.prototype))) {
5409
5584
  Constructor = undefined;
5410
5585
  } else if (isObject$1(Constructor)) {
5411
5586
  Constructor = Constructor[SPECIES$1];
5412
5587
  if (Constructor === null) Constructor = undefined;
5413
5588
  }
5414
- if (Constructor === Array || Constructor === undefined) {
5415
- return nativeSlice.call(O, k, fin);
5589
+ if (Constructor === Array$2 || Constructor === undefined) {
5590
+ return arraySlice(O, k, fin);
5416
5591
  }
5417
5592
  }
5418
- result = new (Constructor === undefined ? Array : Constructor)(max(fin - k, 0));
5593
+ result = new (Constructor === undefined ? Array$2 : Constructor)(max(fin - k, 0));
5419
5594
  for (n = 0; k < fin; k++, n++) if (k in O) createProperty(result, n, O[k]);
5420
5595
  result.length = n;
5421
5596
  return result;
@@ -5436,9 +5611,11 @@
5436
5611
  // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
5437
5612
  addToUnscopables('includes');
5438
5613
 
5614
+ var TypeError$3 = global_1.TypeError;
5615
+
5439
5616
  var notARegexp = function (it) {
5440
5617
  if (isRegexp(it)) {
5441
- throw TypeError("The method doesn't accept regular expressions");
5618
+ throw TypeError$3("The method doesn't accept regular expressions");
5442
5619
  } return it;
5443
5620
  };
5444
5621
 
@@ -5456,12 +5633,17 @@
5456
5633
  } return false;
5457
5634
  };
5458
5635
 
5636
+ var stringIndexOf = functionUncurryThis(''.indexOf);
5637
+
5459
5638
  // `String.prototype.includes` method
5460
5639
  // https://tc39.es/ecma262/#sec-string.prototype.includes
5461
5640
  _export({ target: 'String', proto: true, forced: !correctIsRegexpLogic('includes') }, {
5462
5641
  includes: function includes(searchString /* , position = 0 */) {
5463
- return !!~toString_1(requireObjectCoercible(this))
5464
- .indexOf(toString_1(notARegexp(searchString)), arguments.length > 1 ? arguments[1] : undefined);
5642
+ return !!~stringIndexOf(
5643
+ toString_1(requireObjectCoercible(this)),
5644
+ toString_1(notARegexp(searchString)),
5645
+ arguments.length > 1 ? arguments[1] : undefined
5646
+ );
5465
5647
  }
5466
5648
  });
5467
5649
 
@@ -5469,7 +5651,7 @@
5469
5651
  // https://url.spec.whatwg.org/#dom-url-tojson
5470
5652
  _export({ target: 'URL', proto: true, enumerable: true }, {
5471
5653
  toJSON: function toJSON() {
5472
- return URL.prototype.toString.call(this);
5654
+ return functionCall(URL.prototype.toString, this);
5473
5655
  }
5474
5656
  });
5475
5657
 
@@ -12353,7 +12535,7 @@
12353
12535
  if (kind === 'throw') throw value;
12354
12536
  return value;
12355
12537
  }
12356
- innerResult = innerResult.call(iterator);
12538
+ innerResult = functionCall(innerResult, iterator);
12357
12539
  } catch (error) {
12358
12540
  innerError = true;
12359
12541
  innerResult = error;
@@ -12364,17 +12546,21 @@
12364
12546
  return value;
12365
12547
  };
12366
12548
 
12549
+ var TypeError$2 = global_1.TypeError;
12550
+
12367
12551
  var Result = function (stopped, result) {
12368
12552
  this.stopped = stopped;
12369
12553
  this.result = result;
12370
12554
  };
12371
12555
 
12556
+ var ResultPrototype = Result.prototype;
12557
+
12372
12558
  var iterate = function (iterable, unboundFunction, options) {
12373
12559
  var that = options && options.that;
12374
12560
  var AS_ENTRIES = !!(options && options.AS_ENTRIES);
12375
12561
  var IS_ITERATOR = !!(options && options.IS_ITERATOR);
12376
12562
  var INTERRUPTED = !!(options && options.INTERRUPTED);
12377
- var fn = functionBindContext(unboundFunction, that, 1 + AS_ENTRIES + INTERRUPTED);
12563
+ var fn = functionBindContext(unboundFunction, that);
12378
12564
  var iterator, iterFn, index, length, result, next, step;
12379
12565
 
12380
12566
  var stop = function (condition) {
@@ -12393,25 +12579,25 @@
12393
12579
  iterator = iterable;
12394
12580
  } else {
12395
12581
  iterFn = getIteratorMethod(iterable);
12396
- if (!iterFn) throw TypeError(String(iterable) + ' is not iterable');
12582
+ if (!iterFn) throw TypeError$2(tryToString(iterable) + ' is not iterable');
12397
12583
  // optimisation for array iterators
12398
12584
  if (isArrayIteratorMethod(iterFn)) {
12399
- for (index = 0, length = toLength(iterable.length); length > index; index++) {
12585
+ for (index = 0, length = lengthOfArrayLike(iterable); length > index; index++) {
12400
12586
  result = callFn(iterable[index]);
12401
- if (result && result instanceof Result) return result;
12587
+ if (result && objectIsPrototypeOf(ResultPrototype, result)) return result;
12402
12588
  } return new Result(false);
12403
12589
  }
12404
12590
  iterator = getIterator(iterable, iterFn);
12405
12591
  }
12406
12592
 
12407
12593
  next = iterator.next;
12408
- while (!(step = next.call(iterator)).done) {
12594
+ while (!(step = functionCall(next, iterator)).done) {
12409
12595
  try {
12410
12596
  result = callFn(step.value);
12411
12597
  } catch (error) {
12412
12598
  iteratorClose(iterator, 'throw', error);
12413
12599
  }
12414
- if (typeof result == 'object' && result && result instanceof Result) return result;
12600
+ if (typeof result == 'object' && result && objectIsPrototypeOf(ResultPrototype, result)) return result;
12415
12601
  } return new Result(false);
12416
12602
  };
12417
12603
 
@@ -12422,8 +12608,10 @@
12422
12608
  var set = global_1.setImmediate;
12423
12609
  var clear = global_1.clearImmediate;
12424
12610
  var process$2 = global_1.process;
12425
- var MessageChannel = global_1.MessageChannel;
12426
12611
  var Dispatch = global_1.Dispatch;
12612
+ var Function$1 = global_1.Function;
12613
+ var MessageChannel = global_1.MessageChannel;
12614
+ var String$2 = global_1.String;
12427
12615
  var counter = 0;
12428
12616
  var queue = {};
12429
12617
  var ONREADYSTATECHANGE = 'onreadystatechange';
@@ -12435,8 +12623,7 @@
12435
12623
  } catch (error) { /* empty */ }
12436
12624
 
12437
12625
  var run = function (id) {
12438
- // eslint-disable-next-line no-prototype-builtins -- safe
12439
- if (queue.hasOwnProperty(id)) {
12626
+ if (hasOwnProperty_1(queue, id)) {
12440
12627
  var fn = queue[id];
12441
12628
  delete queue[id];
12442
12629
  fn();
@@ -12455,19 +12642,15 @@
12455
12642
 
12456
12643
  var post = function (id) {
12457
12644
  // old engines have not location.origin
12458
- global_1.postMessage(String(id), location$1.protocol + '//' + location$1.host);
12645
+ global_1.postMessage(String$2(id), location$1.protocol + '//' + location$1.host);
12459
12646
  };
12460
12647
 
12461
12648
  // Node.js 0.9+ & IE10+ has setImmediate, otherwise:
12462
12649
  if (!set || !clear) {
12463
12650
  set = function setImmediate(fn) {
12464
- var args = [];
12465
- var argumentsLength = arguments.length;
12466
- var i = 1;
12467
- while (argumentsLength > i) args.push(arguments[i++]);
12651
+ var args = arraySlice(arguments, 1);
12468
12652
  queue[++counter] = function () {
12469
- // eslint-disable-next-line no-new-func -- spec requirement
12470
- (isCallable(fn) ? fn : Function(fn)).apply(undefined, args);
12653
+ functionApply(isCallable(fn) ? fn : Function$1(fn), undefined, args);
12471
12654
  };
12472
12655
  defer(counter);
12473
12656
  return counter;
@@ -12491,7 +12674,7 @@
12491
12674
  channel = new MessageChannel();
12492
12675
  port = channel.port2;
12493
12676
  channel.port1.onmessage = listener;
12494
- defer = functionBindContext(port.postMessage, port, 1);
12677
+ defer = functionBindContext(port.postMessage, port);
12495
12678
  // Browsers with postMessage, skip WebWorkers
12496
12679
  // IE8 has postMessage, but it's sync & typeof its postMessage is 'object'
12497
12680
  } else if (
@@ -12579,9 +12762,9 @@
12579
12762
  promise = Promise$1.resolve(undefined);
12580
12763
  // workaround of WebKit ~ iOS Safari 10.1 bug
12581
12764
  promise.constructor = Promise$1;
12582
- then = promise.then;
12765
+ then = functionBindContext(promise.then, promise);
12583
12766
  notify$2 = function () {
12584
- then.call(promise, flush);
12767
+ then(flush);
12585
12768
  };
12586
12769
  // Node.js without promises
12587
12770
  } else if (engineIsNode) {
@@ -12595,9 +12778,10 @@
12595
12778
  // - onreadystatechange
12596
12779
  // - setTimeout
12597
12780
  } else {
12781
+ // strange IE + webpack dev server bug - use .bind(global)
12782
+ macrotask = functionBindContext(macrotask, global_1);
12598
12783
  notify$2 = function () {
12599
- // strange IE + webpack dev server bug - use .call(global)
12600
- macrotask.call(global_1, flush);
12784
+ macrotask(flush);
12601
12785
  };
12602
12786
  }
12603
12787
  }
@@ -12644,7 +12828,7 @@
12644
12828
  var hostReportErrors = function (a, b) {
12645
12829
  var console = global_1.console;
12646
12830
  if (console && console.error) {
12647
- arguments.length === 1 ? console.error(a) : console.error(a, b);
12831
+ arguments.length == 1 ? console.error(a) : console.error(a, b);
12648
12832
  }
12649
12833
  };
12650
12834
 
@@ -12673,17 +12857,19 @@
12673
12857
 
12674
12858
  var SPECIES = wellKnownSymbol('species');
12675
12859
  var PROMISE = 'Promise';
12860
+
12676
12861
  var getInternalState = internalState.get;
12677
12862
  var setInternalState$1 = internalState.set;
12678
12863
  var getInternalPromiseState = internalState.getterFor(PROMISE);
12679
12864
  var NativePromisePrototype = nativePromiseConstructor && nativePromiseConstructor.prototype;
12680
12865
  var PromiseConstructor = nativePromiseConstructor;
12681
- var PromiseConstructorPrototype = NativePromisePrototype;
12866
+ var PromisePrototype = NativePromisePrototype;
12682
12867
  var TypeError$1 = global_1.TypeError;
12683
12868
  var document$1 = global_1.document;
12684
12869
  var process = global_1.process;
12685
12870
  var newPromiseCapability = newPromiseCapability$1.f;
12686
12871
  var newGenericPromiseCapability = newPromiseCapability;
12872
+
12687
12873
  var DISPATCH_EVENT = !!(document$1 && document$1.createEvent && global_1.dispatchEvent);
12688
12874
  var NATIVE_REJECTION_EVENT = isCallable(global_1.PromiseRejectionEvent);
12689
12875
  var UNHANDLED_REJECTION = 'unhandledrejection';
@@ -12694,6 +12880,7 @@
12694
12880
  var HANDLED = 1;
12695
12881
  var UNHANDLED = 2;
12696
12882
  var SUBCLASSING = false;
12883
+
12697
12884
  var Internal, OwnPromiseCapability, PromiseWrapper, nativeThen;
12698
12885
 
12699
12886
  var FORCED$2 = isForced_1(PROMISE, function () {
@@ -12764,7 +12951,7 @@
12764
12951
  if (result === reaction.promise) {
12765
12952
  reject(TypeError$1('Promise-chain cycle'));
12766
12953
  } else if (then = isThenable(result)) {
12767
- then.call(result, resolve, reject);
12954
+ functionCall(then, result, resolve, reject);
12768
12955
  } else resolve(result);
12769
12956
  } else reject(value);
12770
12957
  } catch (error) {
@@ -12792,7 +12979,7 @@
12792
12979
  };
12793
12980
 
12794
12981
  var onUnhandled = function (state) {
12795
- task.call(global_1, function () {
12982
+ functionCall(task, global_1, function () {
12796
12983
  var promise = state.facade;
12797
12984
  var value = state.value;
12798
12985
  var IS_UNHANDLED = isUnhandled(state);
@@ -12815,7 +13002,7 @@
12815
13002
  };
12816
13003
 
12817
13004
  var onHandleUnhandled = function (state) {
12818
- task.call(global_1, function () {
13005
+ functionCall(task, global_1, function () {
12819
13006
  var promise = state.facade;
12820
13007
  if (engineIsNode) {
12821
13008
  process.emit('rejectionHandled', promise);
@@ -12849,7 +13036,7 @@
12849
13036
  microtask(function () {
12850
13037
  var wrapper = { done: false };
12851
13038
  try {
12852
- then.call(value,
13039
+ functionCall(then, value,
12853
13040
  bind(internalResolve, wrapper, state),
12854
13041
  bind(internalReject, wrapper, state)
12855
13042
  );
@@ -12871,9 +13058,9 @@
12871
13058
  if (FORCED$2) {
12872
13059
  // 25.4.3.1 Promise(executor)
12873
13060
  PromiseConstructor = function Promise(executor) {
12874
- anInstance(this, PromiseConstructor, PROMISE);
13061
+ anInstance(this, PromisePrototype);
12875
13062
  aCallable(executor);
12876
- Internal.call(this);
13063
+ functionCall(Internal, this);
12877
13064
  var state = getInternalState(this);
12878
13065
  try {
12879
13066
  executor(bind(internalResolve, state), bind(internalReject, state));
@@ -12881,7 +13068,7 @@
12881
13068
  internalReject(state, error);
12882
13069
  }
12883
13070
  };
12884
- PromiseConstructorPrototype = PromiseConstructor.prototype;
13071
+ PromisePrototype = PromiseConstructor.prototype;
12885
13072
  // eslint-disable-next-line no-unused-vars -- required for `.length`
12886
13073
  Internal = function Promise(executor) {
12887
13074
  setInternalState$1(this, {
@@ -12895,17 +13082,18 @@
12895
13082
  value: undefined
12896
13083
  });
12897
13084
  };
12898
- Internal.prototype = redefineAll(PromiseConstructorPrototype, {
13085
+ Internal.prototype = redefineAll(PromisePrototype, {
12899
13086
  // `Promise.prototype.then` method
12900
13087
  // https://tc39.es/ecma262/#sec-promise.prototype.then
12901
13088
  then: function then(onFulfilled, onRejected) {
12902
13089
  var state = getInternalPromiseState(this);
13090
+ var reactions = state.reactions;
12903
13091
  var reaction = newPromiseCapability(speciesConstructor(this, PromiseConstructor));
12904
13092
  reaction.ok = isCallable(onFulfilled) ? onFulfilled : true;
12905
13093
  reaction.fail = isCallable(onRejected) && onRejected;
12906
13094
  reaction.domain = engineIsNode ? process.domain : undefined;
12907
13095
  state.parent = true;
12908
- state.reactions.push(reaction);
13096
+ reactions[reactions.length] = reaction;
12909
13097
  if (state.state != PENDING) notify$1(state, false);
12910
13098
  return reaction.promise;
12911
13099
  },
@@ -12936,13 +13124,13 @@
12936
13124
  redefine(NativePromisePrototype, 'then', function then(onFulfilled, onRejected) {
12937
13125
  var that = this;
12938
13126
  return new PromiseConstructor(function (resolve, reject) {
12939
- nativeThen.call(that, resolve, reject);
13127
+ functionCall(nativeThen, that, resolve, reject);
12940
13128
  }).then(onFulfilled, onRejected);
12941
13129
  // https://github.com/zloirock/core-js/issues/640
12942
13130
  }, { unsafe: true });
12943
13131
 
12944
13132
  // makes sure that native promise-based APIs `Promise#catch` properly works with patched `Promise#then`
12945
- redefine(NativePromisePrototype, 'catch', PromiseConstructorPrototype['catch'], { unsafe: true });
13133
+ redefine(NativePromisePrototype, 'catch', PromisePrototype['catch'], { unsafe: true });
12946
13134
  }
12947
13135
 
12948
13136
  // make `.constructor === Promise` work for native promise-based APIs
@@ -12952,7 +13140,7 @@
12952
13140
 
12953
13141
  // make `instanceof Promise` work for native promise-based APIs
12954
13142
  if (objectSetPrototypeOf) {
12955
- objectSetPrototypeOf(NativePromisePrototype, PromiseConstructorPrototype);
13143
+ objectSetPrototypeOf(NativePromisePrototype, PromisePrototype);
12956
13144
  }
12957
13145
  }
12958
13146
  }
@@ -12972,7 +13160,7 @@
12972
13160
  // https://tc39.es/ecma262/#sec-promise.reject
12973
13161
  reject: function reject(r) {
12974
13162
  var capability = newPromiseCapability(this);
12975
- capability.reject.call(undefined, r);
13163
+ functionCall(capability.reject, undefined, r);
12976
13164
  return capability.promise;
12977
13165
  }
12978
13166
  });
@@ -13001,9 +13189,8 @@
13001
13189
  iterate(iterable, function (promise) {
13002
13190
  var index = counter++;
13003
13191
  var alreadyCalled = false;
13004
- values.push(undefined);
13005
13192
  remaining++;
13006
- $promiseResolve.call(C, promise).then(function (value) {
13193
+ functionCall($promiseResolve, C, promise).then(function (value) {
13007
13194
  if (alreadyCalled) return;
13008
13195
  alreadyCalled = true;
13009
13196
  values[index] = value;
@@ -13024,7 +13211,7 @@
13024
13211
  var result = perform(function () {
13025
13212
  var $promiseResolve = aCallable(C.resolve);
13026
13213
  iterate(iterable, function (promise) {
13027
- $promiseResolve.call(C, promise).then(capability.resolve, reject);
13214
+ functionCall($promiseResolve, C, promise).then(capability.resolve, reject);
13028
13215
  });
13029
13216
  });
13030
13217
  if (result.error) reject(result.value);
@@ -14004,6 +14191,8 @@
14004
14191
  }
14005
14192
  };
14006
14193
 
14194
+ var Array$1 = global_1.Array;
14195
+
14007
14196
  // `Array.from` method implementation
14008
14197
  // https://tc39.es/ecma262/#sec-array.from
14009
14198
  var arrayFrom = function from(arrayLike /* , mapfn = undefined, thisArg = undefined */) {
@@ -14012,22 +14201,22 @@
14012
14201
  var argumentsLength = arguments.length;
14013
14202
  var mapfn = argumentsLength > 1 ? arguments[1] : undefined;
14014
14203
  var mapping = mapfn !== undefined;
14015
- if (mapping) mapfn = functionBindContext(mapfn, argumentsLength > 2 ? arguments[2] : undefined, 2);
14204
+ if (mapping) mapfn = functionBindContext(mapfn, argumentsLength > 2 ? arguments[2] : undefined);
14016
14205
  var iteratorMethod = getIteratorMethod(O);
14017
14206
  var index = 0;
14018
14207
  var length, result, step, iterator, next, value;
14019
14208
  // if the target is not iterable or it's an array with the default iterator - use a simple case
14020
- if (iteratorMethod && !(this == Array && isArrayIteratorMethod(iteratorMethod))) {
14209
+ if (iteratorMethod && !(this == Array$1 && isArrayIteratorMethod(iteratorMethod))) {
14021
14210
  iterator = getIterator(O, iteratorMethod);
14022
14211
  next = iterator.next;
14023
14212
  result = IS_CONSTRUCTOR ? new this() : [];
14024
- for (;!(step = next.call(iterator)).done; index++) {
14213
+ for (;!(step = functionCall(next, iterator)).done; index++) {
14025
14214
  value = mapping ? callWithSafeIterationClosing(iterator, mapfn, [step.value, index], true) : step.value;
14026
14215
  createProperty(result, index, value);
14027
14216
  }
14028
14217
  } else {
14029
- length = toLength(O.length);
14030
- result = IS_CONSTRUCTOR ? new this(length) : Array(length);
14218
+ length = lengthOfArrayLike(O);
14219
+ result = IS_CONSTRUCTOR ? new this(length) : Array$1(length);
14031
14220
  for (;length > index; index++) {
14032
14221
  value = mapping ? mapfn(O[index], index) : O[index];
14033
14222
  createProperty(result, index, value);
@@ -14049,7 +14238,8 @@
14049
14238
  });
14050
14239
 
14051
14240
  var test$1 = [];
14052
- var nativeSort = test$1.sort;
14241
+ var un$Sort = functionUncurryThis(test$1.sort);
14242
+ var push$1 = functionUncurryThis(test$1.push);
14053
14243
 
14054
14244
  // IE8-
14055
14245
  var FAILS_ON_UNDEFINED = fails(function () {
@@ -14116,17 +14306,18 @@
14116
14306
 
14117
14307
  var array = toObject(this);
14118
14308
 
14119
- if (STABLE_SORT) return comparefn === undefined ? nativeSort.call(array) : nativeSort.call(array, comparefn);
14309
+ if (STABLE_SORT) return comparefn === undefined ? un$Sort(array) : un$Sort(array, comparefn);
14120
14310
 
14121
14311
  var items = [];
14122
- var arrayLength = toLength(array.length);
14312
+ var arrayLength = lengthOfArrayLike(array);
14123
14313
  var itemsLength, index;
14124
14314
 
14125
14315
  for (index = 0; index < arrayLength; index++) {
14126
- if (index in array) items.push(array[index]);
14316
+ if (index in array) push$1(items, array[index]);
14127
14317
  }
14128
14318
 
14129
- items = arraySort(items, getSortCompare(comparefn));
14319
+ arraySort(items, getSortCompare(comparefn));
14320
+
14130
14321
  itemsLength = items.length;
14131
14322
  index = 0;
14132
14323
 
@@ -15944,7 +16135,7 @@
15944
16135
  var fastKey = function (it, create) {
15945
16136
  // return a primitive with prefix
15946
16137
  if (!isObject$1(it)) return typeof it == 'symbol' ? it : (typeof it == 'string' ? 'S' : 'P') + it;
15947
- if (!has$1(it, METADATA)) {
16138
+ if (!hasOwnProperty_1(it, METADATA)) {
15948
16139
  // can't set metadata to uncaught frozen object
15949
16140
  if (!isExtensible(it)) return 'F';
15950
16141
  // not necessary to add metadata
@@ -15956,7 +16147,7 @@
15956
16147
  };
15957
16148
 
15958
16149
  var getWeakData = function (it, create) {
15959
- if (!has$1(it, METADATA)) {
16150
+ if (!hasOwnProperty_1(it, METADATA)) {
15960
16151
  // can't set metadata to uncaught frozen object
15961
16152
  if (!isExtensible(it)) return true;
15962
16153
  // not necessary to add metadata
@@ -15969,7 +16160,7 @@
15969
16160
 
15970
16161
  // add metadata on freeze-family methods calling
15971
16162
  var onFreeze = function (it) {
15972
- if (freezing && REQUIRED && isExtensible(it) && !has$1(it, METADATA)) setMetadata(it);
16163
+ if (freezing && REQUIRED && isExtensible(it) && !hasOwnProperty_1(it, METADATA)) setMetadata(it);
15973
16164
  return it;
15974
16165
  };
15975
16166
 
@@ -15977,7 +16168,7 @@
15977
16168
  meta.enable = function () { /* empty */ };
15978
16169
  REQUIRED = true;
15979
16170
  var getOwnPropertyNames = objectGetOwnPropertyNames.f;
15980
- var splice = [].splice;
16171
+ var splice = functionUncurryThis([].splice);
15981
16172
  var test = {};
15982
16173
  test[METADATA] = 1;
15983
16174
 
@@ -15987,7 +16178,7 @@
15987
16178
  var result = getOwnPropertyNames(it);
15988
16179
  for (var i = 0, length = result.length; i < length; i++) {
15989
16180
  if (result[i] === METADATA) {
15990
- splice.call(result, i, 1);
16181
+ splice(result, i, 1);
15991
16182
  break;
15992
16183
  }
15993
16184
  } return result;
@@ -16019,19 +16210,19 @@
16019
16210
  var exported = {};
16020
16211
 
16021
16212
  var fixMethod = function (KEY) {
16022
- var nativeMethod = NativePrototype[KEY];
16213
+ var uncurriedNativeMethod = functionUncurryThis(NativePrototype[KEY]);
16023
16214
  redefine(NativePrototype, KEY,
16024
16215
  KEY == 'add' ? function add(value) {
16025
- nativeMethod.call(this, value === 0 ? 0 : value);
16216
+ uncurriedNativeMethod(this, value === 0 ? 0 : value);
16026
16217
  return this;
16027
16218
  } : KEY == 'delete' ? function (key) {
16028
- return IS_WEAK && !isObject$1(key) ? false : nativeMethod.call(this, key === 0 ? 0 : key);
16219
+ return IS_WEAK && !isObject$1(key) ? false : uncurriedNativeMethod(this, key === 0 ? 0 : key);
16029
16220
  } : KEY == 'get' ? function get(key) {
16030
- return IS_WEAK && !isObject$1(key) ? undefined : nativeMethod.call(this, key === 0 ? 0 : key);
16221
+ return IS_WEAK && !isObject$1(key) ? undefined : uncurriedNativeMethod(this, key === 0 ? 0 : key);
16031
16222
  } : KEY == 'has' ? function has(key) {
16032
- return IS_WEAK && !isObject$1(key) ? false : nativeMethod.call(this, key === 0 ? 0 : key);
16223
+ return IS_WEAK && !isObject$1(key) ? false : uncurriedNativeMethod(this, key === 0 ? 0 : key);
16033
16224
  } : function set(key, value) {
16034
- nativeMethod.call(this, key === 0 ? 0 : key, value);
16225
+ uncurriedNativeMethod(this, key === 0 ? 0 : key, value);
16035
16226
  return this;
16036
16227
  }
16037
16228
  );
@@ -16068,7 +16259,7 @@
16068
16259
 
16069
16260
  if (!ACCEPT_ITERABLES) {
16070
16261
  Constructor = wrapper(function (dummy, iterable) {
16071
- anInstance(dummy, Constructor, CONSTRUCTOR_NAME);
16262
+ anInstance(dummy, NativePrototype);
16072
16263
  var that = inheritIfRequired(new NativeConstructor(), dummy, Constructor);
16073
16264
  if (iterable != undefined) iterate(iterable, that[ADDER], { that: that, AS_ENTRIES: IS_MAP });
16074
16265
  return that;
@@ -16116,8 +16307,8 @@
16116
16307
 
16117
16308
  var collectionStrong = {
16118
16309
  getConstructor: function (wrapper, CONSTRUCTOR_NAME, IS_MAP, ADDER) {
16119
- var C = wrapper(function (that, iterable) {
16120
- anInstance(that, C, CONSTRUCTOR_NAME);
16310
+ var Constructor = wrapper(function (that, iterable) {
16311
+ anInstance(that, Prototype);
16121
16312
  setInternalState(that, {
16122
16313
  type: CONSTRUCTOR_NAME,
16123
16314
  index: objectCreate(null),
@@ -16129,6 +16320,8 @@
16129
16320
  if (iterable != undefined) iterate(iterable, that[ADDER], { that: that, AS_ENTRIES: IS_MAP });
16130
16321
  });
16131
16322
 
16323
+ var Prototype = Constructor.prototype;
16324
+
16132
16325
  var getInternalState = internalStateGetterFor(CONSTRUCTOR_NAME);
16133
16326
 
16134
16327
  var define = function (that, key, value) {
@@ -16169,7 +16362,7 @@
16169
16362
  }
16170
16363
  };
16171
16364
 
16172
- redefineAll(C.prototype, {
16365
+ redefineAll(Prototype, {
16173
16366
  // `{ Map, Set }.prototype.clear()` methods
16174
16367
  // https://tc39.es/ecma262/#sec-map.prototype.clear
16175
16368
  // https://tc39.es/ecma262/#sec-set.prototype.clear
@@ -16213,7 +16406,7 @@
16213
16406
  // https://tc39.es/ecma262/#sec-set.prototype.foreach
16214
16407
  forEach: function forEach(callbackfn /* , that = undefined */) {
16215
16408
  var state = getInternalState(this);
16216
- var boundFunction = functionBindContext(callbackfn, arguments.length > 1 ? arguments[1] : undefined, 3);
16409
+ var boundFunction = functionBindContext(callbackfn, arguments.length > 1 ? arguments[1] : undefined);
16217
16410
  var entry;
16218
16411
  while (entry = entry ? entry.next : state.first) {
16219
16412
  boundFunction(entry.value, entry.key, this);
@@ -16229,7 +16422,7 @@
16229
16422
  }
16230
16423
  });
16231
16424
 
16232
- redefineAll(C.prototype, IS_MAP ? {
16425
+ redefineAll(Prototype, IS_MAP ? {
16233
16426
  // `Map.prototype.get(key)` method
16234
16427
  // https://tc39.es/ecma262/#sec-map.prototype.get
16235
16428
  get: function get(key) {
@@ -16248,14 +16441,14 @@
16248
16441
  return define(this, value = value === 0 ? 0 : value, value);
16249
16442
  }
16250
16443
  });
16251
- if (descriptors) defineProperty$1(C.prototype, 'size', {
16444
+ if (descriptors) defineProperty$1(Prototype, 'size', {
16252
16445
  get: function () {
16253
16446
  return getInternalState(this).size;
16254
16447
  }
16255
16448
  });
16256
- return C;
16449
+ return Constructor;
16257
16450
  },
16258
- setStrong: function (C, CONSTRUCTOR_NAME, IS_MAP) {
16451
+ setStrong: function (Constructor, CONSTRUCTOR_NAME, IS_MAP) {
16259
16452
  var ITERATOR_NAME = CONSTRUCTOR_NAME + ' Iterator';
16260
16453
  var getInternalCollectionState = internalStateGetterFor(CONSTRUCTOR_NAME);
16261
16454
  var getInternalIteratorState = internalStateGetterFor(ITERATOR_NAME);
@@ -16268,7 +16461,7 @@
16268
16461
  // https://tc39.es/ecma262/#sec-set.prototype.keys
16269
16462
  // https://tc39.es/ecma262/#sec-set.prototype.values
16270
16463
  // https://tc39.es/ecma262/#sec-set.prototype-@@iterator
16271
- defineIterator(C, CONSTRUCTOR_NAME, function (iterated, kind) {
16464
+ defineIterator(Constructor, CONSTRUCTOR_NAME, function (iterated, kind) {
16272
16465
  setInternalState(this, {
16273
16466
  type: ITERATOR_NAME,
16274
16467
  target: iterated,
@@ -16311,6 +16504,7 @@
16311
16504
  var $assign = Object.assign;
16312
16505
  // eslint-disable-next-line es/no-object-defineproperty -- required for testing
16313
16506
  var defineProperty = Object.defineProperty;
16507
+ var concat = functionUncurryThis([].concat);
16314
16508
 
16315
16509
  // `Object.assign` method
16316
16510
  // https://tc39.es/ecma262/#sec-object.assign
@@ -16342,13 +16536,13 @@
16342
16536
  var propertyIsEnumerable = objectPropertyIsEnumerable.f;
16343
16537
  while (argumentsLength > index) {
16344
16538
  var S = indexedObject(arguments[index++]);
16345
- var keys = getOwnPropertySymbols ? objectKeys(S).concat(getOwnPropertySymbols(S)) : objectKeys(S);
16539
+ var keys = getOwnPropertySymbols ? concat(objectKeys(S), getOwnPropertySymbols(S)) : objectKeys(S);
16346
16540
  var length = keys.length;
16347
16541
  var j = 0;
16348
16542
  var key;
16349
16543
  while (length > j) {
16350
16544
  key = keys[j++];
16351
- if (!descriptors || propertyIsEnumerable.call(S, key)) T[key] = S[key];
16545
+ if (!descriptors || functionCall(propertyIsEnumerable, S, key)) T[key] = S[key];
16352
16546
  }
16353
16547
  } return T;
16354
16548
  } : $assign;
@@ -20848,10 +21042,12 @@
20848
21042
 
20849
21043
  --length;
20850
21044
  str += '\n ' + repeat(' ', space) + (Array.isArray(object) ? '' : '"' + i + '": ') + // key
20851
- _stringify(object[i]) + (length ? ',' : ''); // comma
21045
+ _stringify(object[i]) + ( // value
21046
+ length ? ',' : ''); // comma
20852
21047
  }
20853
21048
 
20854
- return str + (str.length !== 1 ? '\n' + repeat(' ', --space) + end : end);
21049
+ return str + ( // [], {}
21050
+ str.length !== 1 ? '\n' + repeat(' ', --space) + end : end);
20855
21051
  }
20856
21052
  /**
20857
21053
  * Return a new Thing that has the keys in sorted order. Recursive.
@@ -21705,7 +21901,11 @@
21705
21901
  // document is undefined in react-native: https://github.com/facebook/react-native/pull/1632
21706
21902
 
21707
21903
 
21708
- return typeof document !== 'undefined' && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance || typeof window !== 'undefined' && window.console && (window.console.firebug || window.console.exception && window.console.table) || typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/) && parseInt(RegExp.$1, 10) >= 31 || typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/);
21904
+ return typeof document !== 'undefined' && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance || // Is firebug? http://stackoverflow.com/a/398120/376773
21905
+ typeof window !== 'undefined' && window.console && (window.console.firebug || window.console.exception && window.console.table) || // Is firefox >= v31?
21906
+ // https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages
21907
+ typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/) && parseInt(RegExp.$1, 10) >= 31 || // Double check webkit in userAgent just in case we are in a worker
21908
+ typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/);
21709
21909
  }
21710
21910
  /**
21711
21911
  * Colorize log arguments if enabled.
@@ -21834,7 +22034,10 @@
21834
22034
  };
21835
22035
  });
21836
22036
 
21837
- var propertyIsEnumerable = objectPropertyIsEnumerable.f;
22037
+ var $propertyIsEnumerable = objectPropertyIsEnumerable.f;
22038
+
22039
+ var propertyIsEnumerable = functionUncurryThis($propertyIsEnumerable);
22040
+ var push = functionUncurryThis([].push);
21838
22041
 
21839
22042
  // `Object.{ entries, values }` methods implementation
21840
22043
  var createMethod = function (TO_ENTRIES) {
@@ -21847,8 +22050,8 @@
21847
22050
  var key;
21848
22051
  while (length > i) {
21849
22052
  key = keys[i++];
21850
- if (!descriptors || propertyIsEnumerable.call(O, key)) {
21851
- result.push(TO_ENTRIES ? [key, O[key]] : O[key]);
22053
+ if (!descriptors || propertyIsEnumerable(O, key)) {
22054
+ push(result, TO_ENTRIES ? [key, O[key]] : O[key]);
21852
22055
  }
21853
22056
  }
21854
22057
  return result;
@@ -23879,7 +24082,7 @@
23879
24082
  * @param {boolean} [opts.cleanReferencesAfterRun] - Whether to clean references to test fns and hooks when a suite is done.
23880
24083
  * @param {boolean} [opts.delay] - Whether to delay execution of root suite until ready.
23881
24084
  * @param {boolean} [opts.dryRun] - Whether to report tests without running them.
23882
- * @param {boolean} [options.failZero] - Whether to fail test run if zero tests encountered.
24085
+ * @param {boolean} [opts.failZero] - Whether to fail test run if zero tests encountered.
23883
24086
  */
23884
24087
  function Runner(suite, opts) {
23885
24088
  var _this;
@@ -25846,8 +26049,8 @@
25846
26049
 
25847
26050
  function createProducer(tapVersion) {
25848
26051
  var producers = {
25849
- '12': new TAP12Producer(),
25850
- '13': new TAP13Producer()
26052
+ 12: new TAP12Producer(),
26053
+ 13: new TAP13Producer()
25851
26054
  };
25852
26055
  var producer = producers[tapVersion];
25853
26056
 
@@ -26201,27 +26404,25 @@
26201
26404
  JSONReporter.description = 'single JSON object';
26202
26405
  });
26203
26406
 
26204
- var valueOf = 1.0.valueOf;
26205
-
26206
- // `thisNumberValue` abstract operation
26207
- // https://tc39.es/ecma262/#sec-thisnumbervalue
26208
- var thisNumberValue = function (value) {
26209
- return valueOf.call(value);
26210
- };
26407
+ var RangeError$2 = global_1.RangeError;
26211
26408
 
26212
26409
  // `String.prototype.repeat` method implementation
26213
26410
  // https://tc39.es/ecma262/#sec-string.prototype.repeat
26214
26411
  var stringRepeat = function repeat(count) {
26215
26412
  var str = toString_1(requireObjectCoercible(this));
26216
26413
  var result = '';
26217
- var n = toInteger(count);
26218
- if (n < 0 || n == Infinity) throw RangeError('Wrong number of repetitions');
26414
+ var n = toIntegerOrInfinity(count);
26415
+ if (n < 0 || n == Infinity) throw RangeError$2('Wrong number of repetitions');
26219
26416
  for (;n > 0; (n >>>= 1) && (str += str)) if (n & 1) result += str;
26220
26417
  return result;
26221
26418
  };
26222
26419
 
26223
- var nativeToFixed = 1.0.toFixed;
26420
+ var RangeError$1 = global_1.RangeError;
26421
+ var String$1 = global_1.String;
26224
26422
  var floor = Math.floor;
26423
+ var repeat = functionUncurryThis(stringRepeat);
26424
+ var stringSlice = functionUncurryThis(''.slice);
26425
+ var un$ToFixed = functionUncurryThis(1.0.toFixed);
26225
26426
 
26226
26427
  var pow = function (x, n, acc) {
26227
26428
  return n === 0 ? acc : n % 2 === 1 ? pow(x, n - 1, acc * x) : pow(x * x, n / 2, acc);
@@ -26265,20 +26466,20 @@
26265
26466
  var s = '';
26266
26467
  while (--index >= 0) {
26267
26468
  if (s !== '' || index === 0 || data[index] !== 0) {
26268
- var t = String(data[index]);
26269
- s = s === '' ? t : s + stringRepeat.call('0', 7 - t.length) + t;
26469
+ var t = String$1(data[index]);
26470
+ s = s === '' ? t : s + repeat('0', 7 - t.length) + t;
26270
26471
  }
26271
26472
  } return s;
26272
26473
  };
26273
26474
 
26274
- var FORCED = nativeToFixed && (
26275
- 0.00008.toFixed(3) !== '0.000' ||
26276
- 0.9.toFixed(0) !== '1' ||
26277
- 1.255.toFixed(2) !== '1.25' ||
26278
- 1000000000000000128.0.toFixed(0) !== '1000000000000000128'
26279
- ) || !fails(function () {
26475
+ var FORCED = fails(function () {
26476
+ return un$ToFixed(0.00008, 3) !== '0.000' ||
26477
+ un$ToFixed(0.9, 0) !== '1' ||
26478
+ un$ToFixed(1.255, 2) !== '1.25' ||
26479
+ un$ToFixed(1000000000000000128.0, 0) !== '1000000000000000128';
26480
+ }) || !fails(function () {
26280
26481
  // V8 ~ Android 4.3-
26281
- nativeToFixed.call({});
26482
+ un$ToFixed({});
26282
26483
  });
26283
26484
 
26284
26485
  // `Number.prototype.toFixed` method
@@ -26286,16 +26487,16 @@
26286
26487
  _export({ target: 'Number', proto: true, forced: FORCED }, {
26287
26488
  toFixed: function toFixed(fractionDigits) {
26288
26489
  var number = thisNumberValue(this);
26289
- var fractDigits = toInteger(fractionDigits);
26490
+ var fractDigits = toIntegerOrInfinity(fractionDigits);
26290
26491
  var data = [0, 0, 0, 0, 0, 0];
26291
26492
  var sign = '';
26292
26493
  var result = '0';
26293
26494
  var e, z, j, k;
26294
26495
 
26295
- if (fractDigits < 0 || fractDigits > 20) throw RangeError('Incorrect fraction digits');
26496
+ if (fractDigits < 0 || fractDigits > 20) throw RangeError$1('Incorrect fraction digits');
26296
26497
  // eslint-disable-next-line no-self-compare -- NaN check
26297
26498
  if (number != number) return 'NaN';
26298
- if (number <= -1e21 || number >= 1e21) return String(number);
26499
+ if (number <= -1e21 || number >= 1e21) return String$1(number);
26299
26500
  if (number < 0) {
26300
26501
  sign = '-';
26301
26502
  number = -number;
@@ -26325,14 +26526,14 @@
26325
26526
  } else {
26326
26527
  multiply(data, 0, z);
26327
26528
  multiply(data, 1 << -e, 0);
26328
- result = dataToString(data) + stringRepeat.call('0', fractDigits);
26529
+ result = dataToString(data) + repeat('0', fractDigits);
26329
26530
  }
26330
26531
  }
26331
26532
  if (fractDigits > 0) {
26332
26533
  k = result.length;
26333
26534
  result = sign + (k <= fractDigits
26334
- ? '0.' + stringRepeat.call('0', fractDigits - k) + result
26335
- : result.slice(0, k - fractDigits) + '.' + result.slice(k - fractDigits));
26535
+ ? '0.' + repeat('0', fractDigits - k) + result
26536
+ : stringSlice(result, 0, k - fractDigits) + '.' + stringSlice(result, k - fractDigits));
26336
26537
  } else {
26337
26538
  result = sign + result;
26338
26539
  } return result;
@@ -27906,7 +28107,7 @@
27906
28107
  });
27907
28108
 
27908
28109
  var name = "mocha";
27909
- var version = "9.1.3";
28110
+ var version = "9.1.4";
27910
28111
  var homepage = "https://mochajs.org/";
27911
28112
  var notifyLogo = "https://ibin.co/4QuRuGjXvl36.png";
27912
28113
  var _package = {