@tryghost/content-api 1.7.0 → 1.7.1

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.
package/es/content-api.js CHANGED
@@ -48,15 +48,9 @@ var descriptors = !fails(function () {
48
48
  return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
49
49
  });
50
50
 
51
- var functionBindNative = !fails(function () {
52
- var test = (function () { /* empty */ }).bind();
53
- // eslint-disable-next-line no-prototype-builtins -- safe
54
- return typeof test != 'function' || test.hasOwnProperty('prototype');
55
- });
56
-
57
51
  var call$2 = Function.prototype.call;
58
52
 
59
- var functionCall = functionBindNative ? call$2.bind(call$2) : function () {
53
+ var functionCall = call$2.bind ? call$2.bind(call$2) : function () {
60
54
  return call$2.apply(call$2, arguments);
61
55
  };
62
56
 
@@ -69,13 +63,13 @@ var NASHORN_BUG = getOwnPropertyDescriptor$4 && !$propertyIsEnumerable.call({ 1:
69
63
 
70
64
  // `Object.prototype.propertyIsEnumerable` method implementation
71
65
  // https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
72
- var f$6 = NASHORN_BUG ? function propertyIsEnumerable(V) {
66
+ var f$5 = NASHORN_BUG ? function propertyIsEnumerable(V) {
73
67
  var descriptor = getOwnPropertyDescriptor$4(this, V);
74
68
  return !!descriptor && descriptor.enumerable;
75
69
  } : $propertyIsEnumerable;
76
70
 
77
71
  var objectPropertyIsEnumerable = {
78
- f: f$6
72
+ f: f$5
79
73
  };
80
74
 
81
75
  var createPropertyDescriptor = function (bitmap, value) {
@@ -88,12 +82,12 @@ var createPropertyDescriptor = function (bitmap, value) {
88
82
  };
89
83
 
90
84
  var FunctionPrototype$3 = Function.prototype;
91
- var bind$3 = FunctionPrototype$3.bind;
85
+ var bind$4 = FunctionPrototype$3.bind;
92
86
  var call$1 = FunctionPrototype$3.call;
93
- var uncurryThis = functionBindNative && bind$3.bind(call$1, call$1);
87
+ var callBind = bind$4 && bind$4.bind(call$1);
94
88
 
95
- var functionUncurryThis = functionBindNative ? function (fn) {
96
- return fn && uncurryThis(fn);
89
+ var functionUncurryThis = bind$4 ? function (fn) {
90
+ return fn && callBind(call$1, fn);
97
91
  } : function (fn) {
98
92
  return fn && function () {
99
93
  return call$1.apply(fn, arguments);
@@ -119,12 +113,12 @@ var indexedObject = fails(function () {
119
113
  return classofRaw(it) == 'String' ? split(it, '') : Object$4(it);
120
114
  } : Object$4;
121
115
 
122
- var TypeError$g = global_1.TypeError;
116
+ var TypeError$f = global_1.TypeError;
123
117
 
124
118
  // `RequireObjectCoercible` abstract operation
125
119
  // https://tc39.es/ecma262/#sec-requireobjectcoercible
126
120
  var requireObjectCoercible = function (it) {
127
- if (it == undefined) throw TypeError$g("Can't call method on " + it);
121
+ if (it == undefined) throw TypeError$f("Can't call method on " + it);
128
122
  return it;
129
123
  };
130
124
 
@@ -223,12 +217,12 @@ var tryToString = function (argument) {
223
217
  }
224
218
  };
225
219
 
226
- var TypeError$f = global_1.TypeError;
220
+ var TypeError$e = global_1.TypeError;
227
221
 
228
222
  // `Assert: IsCallable(argument) is true`
229
223
  var aCallable = function (argument) {
230
224
  if (isCallable(argument)) return argument;
231
- throw TypeError$f(tryToString(argument) + ' is not a function');
225
+ throw TypeError$e(tryToString(argument) + ' is not a function');
232
226
  };
233
227
 
234
228
  // `GetMethod` abstract operation
@@ -238,7 +232,7 @@ var getMethod = function (V, P) {
238
232
  return func == null ? undefined : aCallable(func);
239
233
  };
240
234
 
241
- var TypeError$e = global_1.TypeError;
235
+ var TypeError$d = global_1.TypeError;
242
236
 
243
237
  // `OrdinaryToPrimitive` abstract operation
244
238
  // https://tc39.es/ecma262/#sec-ordinarytoprimitive
@@ -247,7 +241,7 @@ var ordinaryToPrimitive = function (input, pref) {
247
241
  if (pref === 'string' && isCallable(fn = input.toString) && !isObject$1(val = functionCall(fn, input))) return val;
248
242
  if (isCallable(fn = input.valueOf) && !isObject$1(val = functionCall(fn, input))) return val;
249
243
  if (pref !== 'string' && isCallable(fn = input.toString) && !isObject$1(val = functionCall(fn, input))) return val;
250
- throw TypeError$e("Can't convert object to primitive value");
244
+ throw TypeError$d("Can't convert object to primitive value");
251
245
  };
252
246
 
253
247
  // eslint-disable-next-line es/no-object-defineproperty -- safe
@@ -270,11 +264,9 @@ var shared = createCommonjsModule(function (module) {
270
264
  (module.exports = function (key, value) {
271
265
  return sharedStore[key] || (sharedStore[key] = value !== undefined ? value : {});
272
266
  })('versions', []).push({
273
- version: '3.21.1',
267
+ version: '3.19.1',
274
268
  mode: 'global',
275
- copyright: '© 2014-2022 Denis Pushkarev (zloirock.ru)',
276
- license: 'https://github.com/zloirock/core-js/blob/v3.21.1/LICENSE',
277
- source: 'https://github.com/zloirock/core-js'
269
+ copyright: '© 2021 Denis Pushkarev (zloirock.ru)'
278
270
  });
279
271
  });
280
272
 
@@ -320,7 +312,7 @@ var wellKnownSymbol = function (name) {
320
312
  } return WellKnownSymbolsStore[name];
321
313
  };
322
314
 
323
- var TypeError$d = global_1.TypeError;
315
+ var TypeError$c = global_1.TypeError;
324
316
  var TO_PRIMITIVE = wellKnownSymbol('toPrimitive');
325
317
 
326
318
  // `ToPrimitive` abstract operation
@@ -333,7 +325,7 @@ var toPrimitive = function (input, pref) {
333
325
  if (pref === undefined) pref = 'default';
334
326
  result = functionCall(exoticToPrim, input, pref);
335
327
  if (!isObject$1(result) || isSymbol(result)) return result;
336
- throw TypeError$d("Can't convert object to primitive value");
328
+ throw TypeError$c("Can't convert object to primitive value");
337
329
  }
338
330
  if (pref === undefined) pref = 'number';
339
331
  return ordinaryToPrimitive(input, pref);
@@ -354,91 +346,61 @@ var documentCreateElement = function (it) {
354
346
  return EXISTS$1 ? document$3.createElement(it) : {};
355
347
  };
356
348
 
357
- // Thanks to IE8 for its funny defineProperty
349
+ // Thank's IE8 for his funny defineProperty
358
350
  var ie8DomDefine = !descriptors && !fails(function () {
359
- // eslint-disable-next-line es/no-object-defineproperty -- required for testing
351
+ // eslint-disable-next-line es/no-object-defineproperty -- requied for testing
360
352
  return Object.defineProperty(documentCreateElement('div'), 'a', {
361
353
  get: function () { return 7; }
362
354
  }).a != 7;
363
355
  });
364
356
 
365
357
  // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
366
- var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
358
+ var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
367
359
 
368
360
  // `Object.getOwnPropertyDescriptor` method
369
361
  // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
370
- var f$5 = descriptors ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
362
+ var f$4 = descriptors ? $getOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {
371
363
  O = toIndexedObject(O);
372
364
  P = toPropertyKey(P);
373
365
  if (ie8DomDefine) try {
374
- return $getOwnPropertyDescriptor$1(O, P);
366
+ return $getOwnPropertyDescriptor(O, P);
375
367
  } catch (error) { /* empty */ }
376
368
  if (hasOwnProperty_1(O, P)) return createPropertyDescriptor(!functionCall(objectPropertyIsEnumerable.f, O, P), O[P]);
377
369
  };
378
370
 
379
371
  var objectGetOwnPropertyDescriptor = {
380
- f: f$5
372
+ f: f$4
381
373
  };
382
374
 
383
- // V8 ~ Chrome 36-
384
- // https://bugs.chromium.org/p/v8/issues/detail?id=3334
385
- var v8PrototypeDefineBug = descriptors && fails(function () {
386
- // eslint-disable-next-line es/no-object-defineproperty -- required for testing
387
- return Object.defineProperty(function () { /* empty */ }, 'prototype', {
388
- value: 42,
389
- writable: false
390
- }).prototype != 42;
391
- });
392
-
393
375
  var String$4 = global_1.String;
394
- var TypeError$c = global_1.TypeError;
376
+ var TypeError$b = global_1.TypeError;
395
377
 
396
378
  // `Assert: Type(argument) is Object`
397
379
  var anObject = function (argument) {
398
380
  if (isObject$1(argument)) return argument;
399
- throw TypeError$c(String$4(argument) + ' is not an object');
381
+ throw TypeError$b(String$4(argument) + ' is not an object');
400
382
  };
401
383
 
402
- var TypeError$b = global_1.TypeError;
384
+ var TypeError$a = global_1.TypeError;
403
385
  // eslint-disable-next-line es/no-object-defineproperty -- safe
404
386
  var $defineProperty = Object.defineProperty;
405
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
406
- var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
407
- var ENUMERABLE = 'enumerable';
408
- var CONFIGURABLE$1 = 'configurable';
409
- var WRITABLE = 'writable';
410
387
 
411
388
  // `Object.defineProperty` method
412
389
  // https://tc39.es/ecma262/#sec-object.defineproperty
413
- var f$4 = descriptors ? v8PrototypeDefineBug ? function defineProperty(O, P, Attributes) {
414
- anObject(O);
415
- P = toPropertyKey(P);
416
- anObject(Attributes);
417
- if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
418
- var current = $getOwnPropertyDescriptor(O, P);
419
- if (current && current[WRITABLE]) {
420
- O[P] = Attributes.value;
421
- Attributes = {
422
- configurable: CONFIGURABLE$1 in Attributes ? Attributes[CONFIGURABLE$1] : current[CONFIGURABLE$1],
423
- enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],
424
- writable: false
425
- };
426
- }
427
- } return $defineProperty(O, P, Attributes);
428
- } : $defineProperty : function defineProperty(O, P, Attributes) {
390
+ var f$3 = descriptors ? $defineProperty : function defineProperty(O, P, Attributes) {
429
391
  anObject(O);
430
392
  P = toPropertyKey(P);
431
393
  anObject(Attributes);
432
394
  if (ie8DomDefine) try {
433
395
  return $defineProperty(O, P, Attributes);
434
396
  } catch (error) { /* empty */ }
435
- if ('get' in Attributes || 'set' in Attributes) throw TypeError$b('Accessors not supported');
397
+ if ('get' in Attributes || 'set' in Attributes) throw TypeError$a('Accessors not supported');
436
398
  if ('value' in Attributes) O[P] = Attributes.value;
437
399
  return O;
438
400
  };
439
401
 
440
402
  var objectDefineProperty = {
441
- f: f$4
403
+ f: f$3
442
404
  };
443
405
 
444
406
  var createNonEnumerableProperty = descriptors ? function (object, key, value) {
@@ -472,7 +434,7 @@ var sharedKey = function (key) {
472
434
  var hiddenKeys$1 = {};
473
435
 
474
436
  var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
475
- var TypeError$a = global_1.TypeError;
437
+ var TypeError$9 = global_1.TypeError;
476
438
  var WeakMap = global_1.WeakMap;
477
439
  var set$1, get, has;
478
440
 
@@ -484,7 +446,7 @@ var getterFor = function (TYPE) {
484
446
  return function (it) {
485
447
  var state;
486
448
  if (!isObject$1(it) || (state = get(it)).type !== TYPE) {
487
- throw TypeError$a('Incompatible receiver, ' + TYPE + ' required');
449
+ throw TypeError$9('Incompatible receiver, ' + TYPE + ' required');
488
450
  } return state;
489
451
  };
490
452
  };
@@ -495,7 +457,7 @@ if (nativeWeakMap || sharedStore.state) {
495
457
  var wmhas = functionUncurryThis(store.has);
496
458
  var wmset = functionUncurryThis(store.set);
497
459
  set$1 = function (it, metadata) {
498
- if (wmhas(store, it)) throw new TypeError$a(OBJECT_ALREADY_INITIALIZED);
460
+ if (wmhas(store, it)) throw new TypeError$9(OBJECT_ALREADY_INITIALIZED);
499
461
  metadata.facade = it;
500
462
  wmset(store, it, metadata);
501
463
  return metadata;
@@ -510,7 +472,7 @@ if (nativeWeakMap || sharedStore.state) {
510
472
  var STATE = sharedKey('state');
511
473
  hiddenKeys$1[STATE] = true;
512
474
  set$1 = function (it, metadata) {
513
- if (hasOwnProperty_1(it, STATE)) throw new TypeError$a(OBJECT_ALREADY_INITIALIZED);
475
+ if (hasOwnProperty_1(it, STATE)) throw new TypeError$9(OBJECT_ALREADY_INITIALIZED);
514
476
  metadata.facade = it;
515
477
  createNonEnumerableProperty(it, STATE, metadata);
516
478
  return metadata;
@@ -687,19 +649,19 @@ var hiddenKeys = enumBugKeys.concat('length', 'prototype');
687
649
  // `Object.getOwnPropertyNames` method
688
650
  // https://tc39.es/ecma262/#sec-object.getownpropertynames
689
651
  // eslint-disable-next-line es/no-object-getownpropertynames -- safe
690
- var f$3 = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
652
+ var f$2 = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
691
653
  return objectKeysInternal(O, hiddenKeys);
692
654
  };
693
655
 
694
656
  var objectGetOwnPropertyNames = {
695
- f: f$3
657
+ f: f$2
696
658
  };
697
659
 
698
660
  // eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
699
- var f$2 = Object.getOwnPropertySymbols;
661
+ var f$1 = Object.getOwnPropertySymbols;
700
662
 
701
663
  var objectGetOwnPropertySymbols = {
702
- f: f$2
664
+ f: f$1
703
665
  };
704
666
 
705
667
  var concat$1 = functionUncurryThis([].concat);
@@ -711,15 +673,13 @@ var ownKeys = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {
711
673
  return getOwnPropertySymbols ? concat$1(keys, getOwnPropertySymbols(it)) : keys;
712
674
  };
713
675
 
714
- var copyConstructorProperties = function (target, source, exceptions) {
676
+ var copyConstructorProperties = function (target, source) {
715
677
  var keys = ownKeys(source);
716
678
  var defineProperty = objectDefineProperty.f;
717
679
  var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
718
680
  for (var i = 0; i < keys.length; i++) {
719
681
  var key = keys[i];
720
- if (!hasOwnProperty_1(target, key) && !(exceptions && hasOwnProperty_1(exceptions, key))) {
721
- defineProperty(target, key, getOwnPropertyDescriptor(source, key));
722
- }
682
+ if (!hasOwnProperty_1(target, key)) defineProperty(target, key, getOwnPropertyDescriptor(source, key));
723
683
  }
724
684
  };
725
685
 
@@ -801,8 +761,8 @@ var _export = function (options, source) {
801
761
  var arrayMethodIsStrict = function (METHOD_NAME, argument) {
802
762
  var method = [][METHOD_NAME];
803
763
  return !!method && fails(function () {
804
- // eslint-disable-next-line no-useless-call -- required for testing
805
- method.call(null, argument || function () { return 1; }, 1);
764
+ // eslint-disable-next-line no-useless-call,no-throw-literal -- required for testing
765
+ method.call(null, argument || function () { throw 1; }, 1);
806
766
  });
807
767
  };
808
768
 
@@ -900,7 +860,7 @@ var constructorRegExp = /^\s*(?:class|function)\b/;
900
860
  var exec = functionUncurryThis(constructorRegExp.exec);
901
861
  var INCORRECT_TO_STRING = !constructorRegExp.exec(noop);
902
862
 
903
- var isConstructorModern = function isConstructor(argument) {
863
+ var isConstructorModern = function (argument) {
904
864
  if (!isCallable(argument)) return false;
905
865
  try {
906
866
  construct(noop, empty, argument);
@@ -910,25 +870,16 @@ var isConstructorModern = function isConstructor(argument) {
910
870
  }
911
871
  };
912
872
 
913
- var isConstructorLegacy = function isConstructor(argument) {
873
+ var isConstructorLegacy = function (argument) {
914
874
  if (!isCallable(argument)) return false;
915
875
  switch (classof(argument)) {
916
876
  case 'AsyncFunction':
917
877
  case 'GeneratorFunction':
918
878
  case 'AsyncGeneratorFunction': return false;
919
- }
920
- try {
921
879
  // we can't check .prototype since constructors produced by .bind haven't it
922
- // `Function#toString` throws on some built-it function in some legacy engines
923
- // (for example, `DOMQuad` and similar in FF41-)
924
- return INCORRECT_TO_STRING || !!exec(constructorRegExp, inspectSource(argument));
925
- } catch (error) {
926
- return true;
927
- }
880
+ } return INCORRECT_TO_STRING || !!exec(constructorRegExp, inspectSource(argument));
928
881
  };
929
882
 
930
- isConstructorLegacy.sham = true;
931
-
932
883
  // `IsConstructor` abstract operation
933
884
  // https://tc39.es/ecma262/#sec-isconstructor
934
885
  var isConstructor = !construct || fails(function () {
@@ -982,7 +933,7 @@ var arrayMethodHasSpeciesSupport = function (METHOD_NAME) {
982
933
  var IS_CONCAT_SPREADABLE = wellKnownSymbol('isConcatSpreadable');
983
934
  var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF;
984
935
  var MAXIMUM_ALLOWED_INDEX_EXCEEDED = 'Maximum allowed index exceeded';
985
- var TypeError$9 = global_1.TypeError;
936
+ var TypeError$8 = global_1.TypeError;
986
937
 
987
938
  // We can't use this feature detection in V8 since it causes
988
939
  // deoptimization and serious performance degradation
@@ -1017,10 +968,10 @@ _export({ target: 'Array', proto: true, forced: FORCED$1 }, {
1017
968
  E = i === -1 ? O : arguments[i];
1018
969
  if (isConcatSpreadable(E)) {
1019
970
  len = lengthOfArrayLike(E);
1020
- if (n + len > MAX_SAFE_INTEGER) throw TypeError$9(MAXIMUM_ALLOWED_INDEX_EXCEEDED);
971
+ if (n + len > MAX_SAFE_INTEGER) throw TypeError$8(MAXIMUM_ALLOWED_INDEX_EXCEEDED);
1021
972
  for (k = 0; k < len; k++, n++) if (k in E) createProperty(A, n, E[k]);
1022
973
  } else {
1023
- if (n >= MAX_SAFE_INTEGER) throw TypeError$9(MAXIMUM_ALLOWED_INDEX_EXCEEDED);
974
+ if (n >= MAX_SAFE_INTEGER) throw TypeError$8(MAXIMUM_ALLOWED_INDEX_EXCEEDED);
1024
975
  createProperty(A, n++, E);
1025
976
  }
1026
977
  }
@@ -1032,7 +983,7 @@ _export({ target: 'Array', proto: true, forced: FORCED$1 }, {
1032
983
  // `Object.defineProperties` method
1033
984
  // https://tc39.es/ecma262/#sec-object.defineproperties
1034
985
  // eslint-disable-next-line es/no-object-defineproperties -- safe
1035
- var f$1 = descriptors && !v8PrototypeDefineBug ? Object.defineProperties : function defineProperties(O, Properties) {
986
+ var objectDefineProperties = descriptors ? Object.defineProperties : function defineProperties(O, Properties) {
1036
987
  anObject(O);
1037
988
  var props = toIndexedObject(Properties);
1038
989
  var keys = objectKeys(Properties);
@@ -1043,10 +994,6 @@ var f$1 = descriptors && !v8PrototypeDefineBug ? Object.defineProperties : funct
1043
994
  return O;
1044
995
  };
1045
996
 
1046
- var objectDefineProperties = {
1047
- f: f$1
1048
- };
1049
-
1050
997
  var html = getBuiltIn('document', 'documentElement');
1051
998
 
1052
999
  /* global ActiveXObject -- old IE, WSH */
@@ -1129,7 +1076,7 @@ var objectCreate = Object.create || function create(O, Properties) {
1129
1076
  // add "__proto__" for Object.getPrototypeOf polyfill
1130
1077
  result[IE_PROTO] = O;
1131
1078
  } else result = NullProtoObject();
1132
- return Properties === undefined ? result : objectDefineProperties.f(result, Properties);
1079
+ return Properties === undefined ? result : objectDefineProperties(result, Properties);
1133
1080
  };
1134
1081
 
1135
1082
  var UNSCOPABLES = wellKnownSymbol('unscopables');
@@ -1193,13 +1140,7 @@ var UNSUPPORTED_Y$1 = fails(function () {
1193
1140
  return re.exec('abcd') != null;
1194
1141
  });
1195
1142
 
1196
- // UC Browser bug
1197
- // https://github.com/zloirock/core-js/issues/1008
1198
- var MISSED_STICKY = UNSUPPORTED_Y$1 || fails(function () {
1199
- return !$RegExp$2('a', 'y').sticky;
1200
- });
1201
-
1202
- var BROKEN_CARET = UNSUPPORTED_Y$1 || fails(function () {
1143
+ var BROKEN_CARET = fails(function () {
1203
1144
  // https://bugzilla.mozilla.org/show_bug.cgi?id=773687
1204
1145
  var re = $RegExp$2('^r', 'gy');
1205
1146
  re.lastIndex = 2;
@@ -1207,9 +1148,8 @@ var BROKEN_CARET = UNSUPPORTED_Y$1 || fails(function () {
1207
1148
  });
1208
1149
 
1209
1150
  var regexpStickyHelpers = {
1210
- BROKEN_CARET: BROKEN_CARET,
1211
- MISSED_STICKY: MISSED_STICKY,
1212
- UNSUPPORTED_Y: UNSUPPORTED_Y$1
1151
+ UNSUPPORTED_Y: UNSUPPORTED_Y$1,
1152
+ BROKEN_CARET: BROKEN_CARET
1213
1153
  };
1214
1154
 
1215
1155
  // babel-minify and Closure Compiler transpiles RegExp('.', 's') -> /./s and it causes SyntaxError
@@ -1258,7 +1198,7 @@ var UPDATES_LAST_INDEX_WRONG = (function () {
1258
1198
  return re1.lastIndex !== 0 || re2.lastIndex !== 0;
1259
1199
  })();
1260
1200
 
1261
- var UNSUPPORTED_Y = regexpStickyHelpers.BROKEN_CARET;
1201
+ var UNSUPPORTED_Y = regexpStickyHelpers.UNSUPPORTED_Y || regexpStickyHelpers.BROKEN_CARET;
1262
1202
 
1263
1203
  // nonparticipating capturing group, copied from es5-shim's String#split patch.
1264
1204
  var NPCG_INCLUDED = /()??/.exec('')[1] !== undefined;
@@ -1266,6 +1206,7 @@ var NPCG_INCLUDED = /()??/.exec('')[1] !== undefined;
1266
1206
  var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED || UNSUPPORTED_Y || regexpUnsupportedDotAll || regexpUnsupportedNcg;
1267
1207
 
1268
1208
  if (PATCH) {
1209
+ // eslint-disable-next-line max-statements -- TODO
1269
1210
  patchedExec = function exec(string) {
1270
1211
  var re = this;
1271
1212
  var state = getInternalState$1(re);
@@ -1361,11 +1302,11 @@ var isRegexp = function (it) {
1361
1302
  return isObject$1(it) && ((isRegExp = it[MATCH$1]) !== undefined ? !!isRegExp : classofRaw(it) == 'RegExp');
1362
1303
  };
1363
1304
 
1364
- var TypeError$8 = global_1.TypeError;
1305
+ var TypeError$7 = global_1.TypeError;
1365
1306
 
1366
1307
  var notARegexp = function (it) {
1367
1308
  if (isRegexp(it)) {
1368
- throw TypeError$8("The method doesn't accept regular expressions");
1309
+ throw TypeError$7("The method doesn't accept regular expressions");
1369
1310
  } return it;
1370
1311
  };
1371
1312
 
@@ -1461,11 +1402,11 @@ var redefineAll = function (target, src, options) {
1461
1402
  };
1462
1403
 
1463
1404
  var String$2 = global_1.String;
1464
- var TypeError$7 = global_1.TypeError;
1405
+ var TypeError$6 = global_1.TypeError;
1465
1406
 
1466
1407
  var aPossiblePrototype = function (argument) {
1467
1408
  if (typeof argument == 'object' || isCallable(argument)) return argument;
1468
- throw TypeError$7("Can't set " + String$2(argument) + ' as a prototype');
1409
+ throw TypeError$6("Can't set " + String$2(argument) + ' as a prototype');
1469
1410
  };
1470
1411
 
1471
1412
  /* eslint-disable no-proto -- safe */
@@ -1502,10 +1443,9 @@ var defineProperty$2 = objectDefineProperty.f;
1502
1443
 
1503
1444
  var TO_STRING_TAG = wellKnownSymbol('toStringTag');
1504
1445
 
1505
- var setToStringTag = function (target, TAG, STATIC) {
1506
- if (target && !STATIC) target = target.prototype;
1507
- if (target && !hasOwnProperty_1(target, TO_STRING_TAG)) {
1508
- defineProperty$2(target, TO_STRING_TAG, { configurable: true, value: TAG });
1446
+ var setToStringTag = function (it, TAG, STATIC) {
1447
+ if (it && !hasOwnProperty_1(it = STATIC ? it : it.prototype, TO_STRING_TAG)) {
1448
+ defineProperty$2(it, TO_STRING_TAG, { configurable: true, value: TAG });
1509
1449
  }
1510
1450
  };
1511
1451
 
@@ -1523,19 +1463,19 @@ var setSpecies = function (CONSTRUCTOR_NAME) {
1523
1463
  }
1524
1464
  };
1525
1465
 
1526
- var TypeError$6 = global_1.TypeError;
1466
+ var TypeError$5 = global_1.TypeError;
1527
1467
 
1528
1468
  var anInstance = function (it, Prototype) {
1529
1469
  if (objectIsPrototypeOf(Prototype, it)) return it;
1530
- throw TypeError$6('Incorrect invocation');
1470
+ throw TypeError$5('Incorrect invocation');
1531
1471
  };
1532
1472
 
1533
- var bind$2 = functionUncurryThis(functionUncurryThis.bind);
1473
+ var bind$3 = functionUncurryThis(functionUncurryThis.bind);
1534
1474
 
1535
1475
  // optional / simple context binding
1536
1476
  var functionBindContext = function (fn, that) {
1537
1477
  aCallable(fn);
1538
- return that === undefined ? fn : functionBindNative ? bind$2(fn, that) : function (/* ...args */) {
1478
+ return that === undefined ? fn : bind$3 ? bind$3(fn, that) : function (/* ...args */) {
1539
1479
  return fn.apply(that, arguments);
1540
1480
  };
1541
1481
  };
@@ -1558,12 +1498,12 @@ var getIteratorMethod = function (it) {
1558
1498
  || iterators[classof(it)];
1559
1499
  };
1560
1500
 
1561
- var TypeError$5 = global_1.TypeError;
1501
+ var TypeError$4 = global_1.TypeError;
1562
1502
 
1563
1503
  var getIterator = function (argument, usingIterator) {
1564
1504
  var iteratorMethod = arguments.length < 2 ? getIteratorMethod(argument) : usingIterator;
1565
1505
  if (aCallable(iteratorMethod)) return anObject(functionCall(iteratorMethod, argument));
1566
- throw TypeError$5(tryToString(argument) + ' is not iterable');
1506
+ throw TypeError$4(tryToString(argument) + ' is not iterable');
1567
1507
  };
1568
1508
 
1569
1509
  var iteratorClose = function (iterator, kind, value) {
@@ -1586,7 +1526,7 @@ var iteratorClose = function (iterator, kind, value) {
1586
1526
  return value;
1587
1527
  };
1588
1528
 
1589
- var TypeError$4 = global_1.TypeError;
1529
+ var TypeError$3 = global_1.TypeError;
1590
1530
 
1591
1531
  var Result = function (stopped, result) {
1592
1532
  this.stopped = stopped;
@@ -1619,7 +1559,7 @@ var iterate = function (iterable, unboundFunction, options) {
1619
1559
  iterator = iterable;
1620
1560
  } else {
1621
1561
  iterFn = getIteratorMethod(iterable);
1622
- if (!iterFn) throw TypeError$4(tryToString(iterable) + ' is not iterable');
1562
+ if (!iterFn) throw TypeError$3(tryToString(iterable) + ' is not iterable');
1623
1563
  // optimisation for array iterators
1624
1564
  if (isArrayIteratorMethod(iterFn)) {
1625
1565
  for (index = 0, length = lengthOfArrayLike(iterable); length > index; index++) {
@@ -1678,12 +1618,12 @@ var checkCorrectnessOfIteration = function (exec, SKIP_CLOSING) {
1678
1618
  return ITERATION_SUPPORT;
1679
1619
  };
1680
1620
 
1681
- var TypeError$3 = global_1.TypeError;
1621
+ var TypeError$2 = global_1.TypeError;
1682
1622
 
1683
1623
  // `Assert: IsConstructor(argument) is true`
1684
1624
  var aConstructor = function (argument) {
1685
1625
  if (isConstructor(argument)) return argument;
1686
- throw TypeError$3(tryToString(argument) + ' is not a constructor');
1626
+ throw TypeError$2(tryToString(argument) + ' is not a constructor');
1687
1627
  };
1688
1628
 
1689
1629
  var SPECIES$1 = wellKnownSymbol('species');
@@ -1698,22 +1638,16 @@ var speciesConstructor = function (O, defaultConstructor) {
1698
1638
 
1699
1639
  var FunctionPrototype$1 = Function.prototype;
1700
1640
  var apply = FunctionPrototype$1.apply;
1641
+ var bind$2 = FunctionPrototype$1.bind;
1701
1642
  var call = FunctionPrototype$1.call;
1702
1643
 
1703
1644
  // eslint-disable-next-line es/no-reflect -- safe
1704
- var functionApply = typeof Reflect == 'object' && Reflect.apply || (functionBindNative ? call.bind(apply) : function () {
1645
+ var functionApply = typeof Reflect == 'object' && Reflect.apply || (bind$2 ? call.bind(apply) : function () {
1705
1646
  return call.apply(apply, arguments);
1706
1647
  });
1707
1648
 
1708
1649
  var arraySlice = functionUncurryThis([].slice);
1709
1650
 
1710
- var TypeError$2 = global_1.TypeError;
1711
-
1712
- var validateArgumentsLength = function (passed, required) {
1713
- if (passed < required) throw TypeError$2('Not enough arguments');
1714
- return passed;
1715
- };
1716
-
1717
1651
  var engineIsIos = /(?:ipad|iphone|ipod).*applewebkit/i.test(engineUserAgent);
1718
1652
 
1719
1653
  var engineIsNode = classofRaw(global_1.process) == 'process';
@@ -1726,7 +1660,7 @@ var Function$1 = global_1.Function;
1726
1660
  var MessageChannel = global_1.MessageChannel;
1727
1661
  var String$1 = global_1.String;
1728
1662
  var counter = 0;
1729
- var queue$1 = {};
1663
+ var queue = {};
1730
1664
  var ONREADYSTATECHANGE = 'onreadystatechange';
1731
1665
  var location, defer, channel, port;
1732
1666
 
@@ -1736,9 +1670,9 @@ try {
1736
1670
  } catch (error) { /* empty */ }
1737
1671
 
1738
1672
  var run = function (id) {
1739
- if (hasOwnProperty_1(queue$1, id)) {
1740
- var fn = queue$1[id];
1741
- delete queue$1[id];
1673
+ if (hasOwnProperty_1(queue, id)) {
1674
+ var fn = queue[id];
1675
+ delete queue[id];
1742
1676
  fn();
1743
1677
  }
1744
1678
  };
@@ -1760,18 +1694,16 @@ var post = function (id) {
1760
1694
 
1761
1695
  // Node.js 0.9+ & IE10+ has setImmediate, otherwise:
1762
1696
  if (!set || !clear) {
1763
- set = function setImmediate(handler) {
1764
- validateArgumentsLength(arguments.length, 1);
1765
- var fn = isCallable(handler) ? handler : Function$1(handler);
1697
+ set = function setImmediate(fn) {
1766
1698
  var args = arraySlice(arguments, 1);
1767
- queue$1[++counter] = function () {
1768
- functionApply(fn, undefined, args);
1699
+ queue[++counter] = function () {
1700
+ functionApply(isCallable(fn) ? fn : Function$1(fn), undefined, args);
1769
1701
  };
1770
1702
  defer(counter);
1771
1703
  return counter;
1772
1704
  };
1773
1705
  clear = function clearImmediate(id) {
1774
- delete queue$1[id];
1706
+ delete queue[id];
1775
1707
  };
1776
1708
  // Node.js 0.8-
1777
1709
  if (engineIsNode) {
@@ -1955,30 +1887,6 @@ var perform = function (exec) {
1955
1887
  }
1956
1888
  };
1957
1889
 
1958
- var Queue = function () {
1959
- this.head = null;
1960
- this.tail = null;
1961
- };
1962
-
1963
- Queue.prototype = {
1964
- add: function (item) {
1965
- var entry = { item: item, next: null };
1966
- if (this.head) this.tail.next = entry;
1967
- else this.head = entry;
1968
- this.tail = entry;
1969
- },
1970
- get: function () {
1971
- var entry = this.head;
1972
- if (entry) {
1973
- this.head = entry.next;
1974
- if (this.tail === entry) this.tail = null;
1975
- return entry.item;
1976
- }
1977
- }
1978
- };
1979
-
1980
- var queue = Queue;
1981
-
1982
1890
  var engineIsBrowser = typeof window == 'object';
1983
1891
 
1984
1892
  var task = task$1.set;
@@ -1994,11 +1902,10 @@ var task = task$1.set;
1994
1902
 
1995
1903
 
1996
1904
 
1997
-
1998
1905
  var SPECIES = wellKnownSymbol('species');
1999
1906
  var PROMISE = 'Promise';
2000
1907
 
2001
- var getInternalState = internalState.getterFor(PROMISE);
1908
+ var getInternalState = internalState.get;
2002
1909
  var setInternalState = internalState.set;
2003
1910
  var getInternalPromiseState = internalState.getterFor(PROMISE);
2004
1911
  var NativePromisePrototype = nativePromiseConstructor && nativePromiseConstructor.prototype;
@@ -2057,50 +1964,49 @@ var isThenable = function (it) {
2057
1964
  return isObject$1(it) && isCallable(then = it.then) ? then : false;
2058
1965
  };
2059
1966
 
2060
- var callReaction = function (reaction, state) {
2061
- var value = state.value;
2062
- var ok = state.state == FULFILLED;
2063
- var handler = ok ? reaction.ok : reaction.fail;
2064
- var resolve = reaction.resolve;
2065
- var reject = reaction.reject;
2066
- var domain = reaction.domain;
2067
- var result, then, exited;
2068
- try {
2069
- if (handler) {
2070
- if (!ok) {
2071
- if (state.rejection === UNHANDLED) onHandleUnhandled(state);
2072
- state.rejection = HANDLED;
2073
- }
2074
- if (handler === true) result = value;
2075
- else {
2076
- if (domain) domain.enter();
2077
- result = handler(value); // can throw
2078
- if (domain) {
2079
- domain.exit();
2080
- exited = true;
2081
- }
2082
- }
2083
- if (result === reaction.promise) {
2084
- reject(TypeError$1('Promise-chain cycle'));
2085
- } else if (then = isThenable(result)) {
2086
- functionCall(then, result, resolve, reject);
2087
- } else resolve(result);
2088
- } else reject(value);
2089
- } catch (error) {
2090
- if (domain && !exited) domain.exit();
2091
- reject(error);
2092
- }
2093
- };
2094
-
2095
1967
  var notify = function (state, isReject) {
2096
1968
  if (state.notified) return;
2097
1969
  state.notified = true;
1970
+ var chain = state.reactions;
2098
1971
  microtask(function () {
2099
- var reactions = state.reactions;
2100
- var reaction;
2101
- while (reaction = reactions.get()) {
2102
- callReaction(reaction, state);
1972
+ var value = state.value;
1973
+ var ok = state.state == FULFILLED;
1974
+ var index = 0;
1975
+ // variable length - can't use forEach
1976
+ while (chain.length > index) {
1977
+ var reaction = chain[index++];
1978
+ var handler = ok ? reaction.ok : reaction.fail;
1979
+ var resolve = reaction.resolve;
1980
+ var reject = reaction.reject;
1981
+ var domain = reaction.domain;
1982
+ var result, then, exited;
1983
+ try {
1984
+ if (handler) {
1985
+ if (!ok) {
1986
+ if (state.rejection === UNHANDLED) onHandleUnhandled(state);
1987
+ state.rejection = HANDLED;
1988
+ }
1989
+ if (handler === true) result = value;
1990
+ else {
1991
+ if (domain) domain.enter();
1992
+ result = handler(value); // can throw
1993
+ if (domain) {
1994
+ domain.exit();
1995
+ exited = true;
1996
+ }
1997
+ }
1998
+ if (result === reaction.promise) {
1999
+ reject(TypeError$1('Promise-chain cycle'));
2000
+ } else if (then = isThenable(result)) {
2001
+ functionCall(then, result, resolve, reject);
2002
+ } else resolve(result);
2003
+ } else reject(value);
2004
+ } catch (error) {
2005
+ if (domain && !exited) domain.exit();
2006
+ reject(error);
2007
+ }
2103
2008
  }
2009
+ state.reactions = [];
2104
2010
  state.notified = false;
2105
2011
  if (isReject && !state.rejection) onUnhandled(state);
2106
2012
  });
@@ -2217,7 +2123,7 @@ if (FORCED) {
2217
2123
  done: false,
2218
2124
  notified: false,
2219
2125
  parent: false,
2220
- reactions: new queue(),
2126
+ reactions: [],
2221
2127
  rejection: false,
2222
2128
  state: PENDING,
2223
2129
  value: undefined
@@ -2226,18 +2132,16 @@ if (FORCED) {
2226
2132
  Internal.prototype = redefineAll(PromisePrototype, {
2227
2133
  // `Promise.prototype.then` method
2228
2134
  // https://tc39.es/ecma262/#sec-promise.prototype.then
2229
- // eslint-disable-next-line unicorn/no-thenable -- safe
2230
2135
  then: function then(onFulfilled, onRejected) {
2231
2136
  var state = getInternalPromiseState(this);
2137
+ var reactions = state.reactions;
2232
2138
  var reaction = newPromiseCapability(speciesConstructor(this, PromiseConstructor));
2233
- state.parent = true;
2234
2139
  reaction.ok = isCallable(onFulfilled) ? onFulfilled : true;
2235
2140
  reaction.fail = isCallable(onRejected) && onRejected;
2236
2141
  reaction.domain = engineIsNode ? process$1.domain : undefined;
2237
- if (state.state == PENDING) state.reactions.add(reaction);
2238
- else microtask(function () {
2239
- callReaction(reaction, state);
2240
- });
2142
+ state.parent = true;
2143
+ reactions[reactions.length] = reaction;
2144
+ if (state.state != PENDING) notify(state, false);
2241
2145
  return reaction.promise;
2242
2146
  },
2243
2147
  // `Promise.prototype.catch` method
@@ -2422,7 +2326,7 @@ var defineProperty = objectDefineProperty.f;
2422
2326
 
2423
2327
  var FunctionPrototype = Function.prototype;
2424
2328
  var functionToString = functionUncurryThis(FunctionPrototype.toString);
2425
- var nameRE = /function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/;
2329
+ var nameRE = /^\s*function ([^ (]*)/;
2426
2330
  var regExpExec = functionUncurryThis(nameRE.exec);
2427
2331
  var NAME = 'name';
2428
2332