@digipair/skill-keycloak 0.22.2 → 0.23.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. package/index.cjs.js +118 -910
  2. package/index.esm.js +118 -910
  3. package/package.json +1 -1
package/index.cjs.js CHANGED
@@ -10247,7 +10247,7 @@ var InvalidZone = /*#__PURE__*/ function(Zone) {
10247
10247
 
10248
10248
  /**
10249
10249
  * @private
10250
- */ function _instanceof$h(left, right) {
10250
+ */ function _instanceof$g(left, right) {
10251
10251
  if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
10252
10252
  return !!right[Symbol.hasInstance](left);
10253
10253
  } else {
@@ -10257,7 +10257,7 @@ var InvalidZone = /*#__PURE__*/ function(Zone) {
10257
10257
  function normalizeZone(input, defaultZone) {
10258
10258
  if (isUndefined(input) || input === null) {
10259
10259
  return defaultZone;
10260
- } else if (_instanceof$h(input, Zone)) {
10260
+ } else if (_instanceof$g(input, Zone)) {
10261
10261
  return input;
10262
10262
  } else if (isString$4(input)) {
10263
10263
  var lowered = input.toLowerCase();
@@ -12231,7 +12231,7 @@ function _define_property$4(obj, key, value) {
12231
12231
  }
12232
12232
  return obj;
12233
12233
  }
12234
- function _instanceof$g(left, right) {
12234
+ function _instanceof$f(left, right) {
12235
12235
  if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
12236
12236
  return !!right[Symbol.hasInstance](left);
12237
12237
  } else {
@@ -13367,7 +13367,7 @@ var Duration = /*#__PURE__*/ function() {
13367
13367
  if (!reason) {
13368
13368
  throw new InvalidArgumentError("need to specify a reason the Duration is invalid");
13369
13369
  }
13370
- var invalid = _instanceof$g(reason, Invalid) ? reason : new Invalid(reason, explanation);
13370
+ var invalid = _instanceof$f(reason, Invalid) ? reason : new Invalid(reason, explanation);
13371
13371
  if (Settings.throwOnInvalid) {
13372
13372
  throw new InvalidDurationError(invalid);
13373
13373
  } else {
@@ -13450,7 +13450,7 @@ function _create_class$b(Constructor, protoProps, staticProps) {
13450
13450
  if (staticProps) _defineProperties$b(Constructor, staticProps);
13451
13451
  return Constructor;
13452
13452
  }
13453
- function _instanceof$f(left, right) {
13453
+ function _instanceof$e(left, right) {
13454
13454
  if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
13455
13455
  return !!right[Symbol.hasInstance](left);
13456
13456
  } else {
@@ -14002,7 +14002,7 @@ var Interval = /*#__PURE__*/ function() {
14002
14002
  if (!reason) {
14003
14003
  throw new InvalidArgumentError("need to specify a reason the Interval is invalid");
14004
14004
  }
14005
- var invalid = _instanceof$f(reason, Invalid) ? reason : new Invalid(reason, explanation);
14005
+ var invalid = _instanceof$e(reason, Invalid) ? reason : new Invalid(reason, explanation);
14006
14006
  if (Settings.throwOnInvalid) {
14007
14007
  throw new InvalidIntervalError(invalid);
14008
14008
  } else {
@@ -15397,7 +15397,7 @@ function _define_property$2(obj, key, value) {
15397
15397
  }
15398
15398
  return obj;
15399
15399
  }
15400
- function _instanceof$e(left, right) {
15400
+ function _instanceof$d(left, right) {
15401
15401
  if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
15402
15402
  return !!right[Symbol.hasInstance](left);
15403
15403
  } else {
@@ -17584,7 +17584,7 @@ var DateTime = /*#__PURE__*/ function() {
17584
17584
  if (!reason) {
17585
17585
  throw new InvalidArgumentError("need to specify a reason the DateTime is invalid");
17586
17586
  }
17587
- var invalid = _instanceof$e(reason, Invalid) ? reason : new Invalid(reason, explanation);
17587
+ var invalid = _instanceof$d(reason, Invalid) ? reason : new Invalid(reason, explanation);
17588
17588
  if (Settings.throwOnInvalid) {
17589
17589
  throw new InvalidDateTimeError(invalid);
17590
17590
  } else {
@@ -17969,7 +17969,7 @@ function _inherits$2(subClass, superClass) {
17969
17969
  });
17970
17970
  if (superClass) _set_prototype_of$2(subClass, superClass);
17971
17971
  }
17972
- function _instanceof$d(left, right) {
17972
+ function _instanceof$c(left, right) {
17973
17973
  if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
17974
17974
  return !!right[Symbol.hasInstance](left);
17975
17975
  } else {
@@ -18898,14 +18898,14 @@ function resolveNode(node, pos, side, overlays) {
18898
18898
  var _a;
18899
18899
  // Move up to a node that actually holds the position, if possible
18900
18900
  while(node.from == node.to || (side < 1 ? node.from >= pos : node.from > pos) || (side > -1 ? node.to <= pos : node.to < pos)){
18901
- var parent = !overlays && _instanceof$d(node, TreeNode) && node.index < 0 ? null : node.parent;
18901
+ var parent = !overlays && _instanceof$c(node, TreeNode) && node.index < 0 ? null : node.parent;
18902
18902
  if (!parent) return node;
18903
18903
  node = parent;
18904
18904
  }
18905
18905
  var mode = overlays ? 0 : IterMode.IgnoreOverlays;
18906
18906
  // Must go up out of overlays when those do not overlap with pos
18907
18907
  if (overlays) for(var scan = node, parent1 = scan.parent; parent1; scan = parent1, parent1 = scan.parent){
18908
- if (_instanceof$d(scan, TreeNode) && scan.index < 0 && ((_a = parent1.enter(pos, side, mode)) === null || _a === void 0 ? void 0 : _a.from) != scan.from) node = parent1;
18908
+ if (_instanceof$c(scan, TreeNode) && scan.index < 0 && ((_a = parent1.enter(pos, side, mode)) === null || _a === void 0 ? void 0 : _a.from) != scan.from) node = parent1;
18909
18909
  }
18910
18910
  for(;;){
18911
18911
  var inner = node.enter(pos, side, mode);
@@ -19033,7 +19033,7 @@ var TreeNode = /*#__PURE__*/ function(BaseNode) {
19033
19033
  for(var _parent__tree = parent._tree, children = _parent__tree.children, positions = _parent__tree.positions, e = dir > 0 ? children.length : -1; i != e; i += dir){
19034
19034
  var next = children[i], start = positions[i] + parent.from;
19035
19035
  if (!checkSide(side, pos, start, start + next.length)) continue;
19036
- if (_instanceof$d(next, TreeBuffer)) {
19036
+ if (_instanceof$c(next, TreeBuffer)) {
19037
19037
  if (mode & IterMode.ExcludeBuffers) continue;
19038
19038
  var index = next.findChild(0, next.buffer.length, dir, pos - start, side);
19039
19039
  if (index > -1) return new BufferNode(new BufferContext(parent, next, i, start), null, index);
@@ -19332,7 +19332,7 @@ function iterStack(heads) {
19332
19332
  pick = i;
19333
19333
  }
19334
19334
  }
19335
- var next = _instanceof$d(picked, TreeNode) && picked.index < 0 ? null : picked.parent;
19335
+ var next = _instanceof$c(picked, TreeNode) && picked.index < 0 ? null : picked.parent;
19336
19336
  var newHeads = heads.slice();
19337
19337
  if (next) newHeads[pick] = next;
19338
19338
  else newHeads.splice(pick, 1);
@@ -19356,7 +19356,7 @@ var StackIterator = /*#__PURE__*/ function() {
19356
19356
  }();
19357
19357
  function stackIterator(tree, pos, side) {
19358
19358
  var inner = tree.resolveInner(pos, side), layers = null;
19359
- for(var scan = _instanceof$d(inner, TreeNode) ? inner : inner.context.parent; scan; scan = scan.parent){
19359
+ for(var scan = _instanceof$c(inner, TreeNode) ? inner : inner.context.parent; scan; scan = scan.parent){
19360
19360
  if (scan.index < 0) {
19361
19361
  var parent = scan.parent;
19362
19362
  (layers || (layers = [
@@ -19394,7 +19394,7 @@ allows you to move to adjacent nodes.
19394
19394
  @internal
19395
19395
  */ this.index = 0;
19396
19396
  this.bufferNode = null;
19397
- if (_instanceof$d(node, TreeNode)) {
19397
+ if (_instanceof$c(node, TreeNode)) {
19398
19398
  this.yieldNode(node);
19399
19399
  } else {
19400
19400
  this._tree = node.context.parent;
@@ -19441,7 +19441,7 @@ allows you to move to adjacent nodes.
19441
19441
  */ key: "yield",
19442
19442
  value: function _yield(node) {
19443
19443
  if (!node) return false;
19444
- if (_instanceof$d(node, TreeNode)) {
19444
+ if (_instanceof$c(node, TreeNode)) {
19445
19445
  this.buffer = null;
19446
19446
  return this.yieldNode(node);
19447
19447
  }
@@ -19582,7 +19582,7 @@ allows you to move to adjacent nodes.
19582
19582
  for(; parent; ref2 = parent, index = ref2.index, parent = ref2._parent, ref2){
19583
19583
  if (index > -1) for(var i1 = index + dir, e = dir < 0 ? -1 : parent._tree.children.length; i1 != e; i1 += dir){
19584
19584
  var child = parent._tree.children[i1];
19585
- if (this.mode & IterMode.IncludeAnonymous || _instanceof$d(child, TreeBuffer) || !child.type.isAnonymous || hasChild(child)) return false;
19585
+ if (this.mode & IterMode.IncludeAnonymous || _instanceof$c(child, TreeBuffer) || !child.type.isAnonymous || hasChild(child)) return false;
19586
19586
  }
19587
19587
  }
19588
19588
  return true;
@@ -19725,7 +19725,7 @@ allows you to move to adjacent nodes.
19725
19725
  }();
19726
19726
  function hasChild(tree) {
19727
19727
  return tree.children.some(function(ch) {
19728
- return _instanceof$d(ch, TreeBuffer) || !ch.type.isAnonymous || hasChild(ch);
19728
+ return _instanceof$c(ch, TreeBuffer) || !ch.type.isAnonymous || hasChild(ch);
19729
19729
  });
19730
19730
  }
19731
19731
  function buildTree(data) {
@@ -19828,7 +19828,7 @@ function buildTree(data) {
19828
19828
  function makeBalanced(type) {
19829
19829
  return function(children, positions, length) {
19830
19830
  var lookAhead = 0, lastI = children.length - 1, last, lookAheadProp;
19831
- if (lastI >= 0 && _instanceof$d(last = children[lastI], Tree)) {
19831
+ if (lastI >= 0 && _instanceof$c(last = children[lastI], Tree)) {
19832
19832
  if (!lastI && last.type == type && last.length == length) return last;
19833
19833
  if (lookAheadProp = last.prop(NodeProp.lookAhead)) lookAhead = positions[lastI] + last.length + lookAheadProp;
19834
19834
  }
@@ -19950,7 +19950,7 @@ function buildTree(data) {
19950
19950
  }
19951
19951
  var nodeSizeCache = new WeakMap;
19952
19952
  function nodeSize(balanceType, node) {
19953
- if (!balanceType.isAnonymous || _instanceof$d(node, TreeBuffer) || node.type != balanceType) return 1;
19953
+ if (!balanceType.isAnonymous || _instanceof$c(node, TreeBuffer) || node.type != balanceType) return 1;
19954
19954
  var size = nodeSizeCache.get(node);
19955
19955
  if (size == null) {
19956
19956
  size = 1;
@@ -19958,7 +19958,7 @@ function nodeSize(balanceType, node) {
19958
19958
  try {
19959
19959
  for(var _iterator = node.children[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
19960
19960
  var child = _step.value;
19961
- if (child.type != balanceType || !_instanceof$d(child, Tree)) {
19961
+ if (child.type != balanceType || !_instanceof$c(child, Tree)) {
19962
19962
  size = 1;
19963
19963
  break;
19964
19964
  }
@@ -20157,7 +20157,7 @@ function _inherits$1(subClass, superClass) {
20157
20157
  });
20158
20158
  if (superClass) _set_prototype_of$1(subClass, superClass);
20159
20159
  }
20160
- function _instanceof$c(left, right) {
20160
+ function _instanceof$b(left, right) {
20161
20161
  if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
20162
20162
  return !!right[Symbol.hasInstance](left);
20163
20163
  } else {
@@ -20356,6 +20356,7 @@ about the parse state.
20356
20356
  var _a;
20357
20357
  var depth = action >> 19 /* Action.ReduceDepthShift */ , type = action & 65535 /* Action.ValueMask */ ;
20358
20358
  var parser = this.p.parser;
20359
+ if (this.reducePos < this.pos - 25 /* Lookahead.Margin */ ) this.setLookAhead(this.pos);
20359
20360
  var dPrec = parser.dynamicPrecedence(type);
20360
20361
  if (dPrec) this.score += dPrec;
20361
20362
  if (depth == 0) {
@@ -21308,7 +21309,7 @@ function cutAt(tree, pos, side) {
21308
21309
  cursor.moveTo(pos);
21309
21310
  for(;;){
21310
21311
  if (!(side < 0 ? cursor.childBefore(pos) : cursor.childAfter(pos))) for(;;){
21311
- if ((side < 0 ? cursor.to < pos : cursor.from > pos) && !cursor.type.isError) return side < 0 ? Math.max(0, Math.min(cursor.to - 1, pos - 25 /* Safety.Margin */ )) : Math.min(tree.length, Math.max(cursor.from + 1, pos + 25 /* Safety.Margin */ ));
21312
+ if ((side < 0 ? cursor.to < pos : cursor.from > pos) && !cursor.type.isError) return side < 0 ? Math.max(0, Math.min(cursor.to - 1, pos - 25 /* Lookahead.Margin */ )) : Math.min(tree.length, Math.max(cursor.from + 1, pos + 25 /* Lookahead.Margin */ ));
21312
21313
  if (side < 0 ? cursor.prevSibling() : cursor.nextSibling()) break;
21313
21314
  if (!cursor.parent()) return side < 0 ? 0 : tree.length;
21314
21315
  }
@@ -21376,7 +21377,7 @@ var FragmentCursor = /*#__PURE__*/ function() {
21376
21377
  this.nextStart = start;
21377
21378
  return null;
21378
21379
  }
21379
- if (_instanceof$c(next, Tree)) {
21380
+ if (_instanceof$b(next, Tree)) {
21380
21381
  if (start == pos) {
21381
21382
  if (start < this.safeFrom) return null;
21382
21383
  var end = start + next.length;
@@ -21431,7 +21432,7 @@ var TokenCache = /*#__PURE__*/ function() {
21431
21432
  token.mask = mask;
21432
21433
  token.context = context;
21433
21434
  }
21434
- if (token.lookAhead > token.end + 25 /* Safety.Margin */ ) lookAhead = Math.max(token.lookAhead, lookAhead);
21435
+ if (token.lookAhead > token.end + 25 /* Lookahead.Margin */ ) lookAhead = Math.max(token.lookAhead, lookAhead);
21435
21436
  if (token.value != 0 /* Term.Err */ ) {
21436
21437
  var startIndex = actionIndex;
21437
21438
  if (token.extended > -1) actionIndex = this.addActions(stack, token.extended, token.end, actionIndex);
@@ -21679,9 +21680,9 @@ var Parse = /*#__PURE__*/ function() {
21679
21680
  if (verbose) console.log(base + this.stackID(stack) + " (via reuse of ".concat(parser.getName(cached.type.id), ")"));
21680
21681
  return true;
21681
21682
  }
21682
- if (!_instanceof$c(cached, Tree) || cached.children.length == 0 || cached.positions[0] > 0) break;
21683
+ if (!_instanceof$b(cached, Tree) || cached.children.length == 0 || cached.positions[0] > 0) break;
21683
21684
  var inner = cached.children[0];
21684
- if (_instanceof$c(inner, Tree) && cached.positions[0] == 0) cached = inner;
21685
+ if (_instanceof$b(inner, Tree) && cached.positions[0] == 0) cached = inner;
21685
21686
  else break;
21686
21687
  }
21687
21688
  }
@@ -23255,7 +23256,7 @@ function _define_property$1(obj, key, value) {
23255
23256
  }
23256
23257
  return obj;
23257
23258
  }
23258
- function _instanceof$b(left, right) {
23259
+ function _instanceof$a(left, right) {
23259
23260
  if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
23260
23261
  return !!right[Symbol.hasInstance](left);
23261
23262
  } else {
@@ -23522,14 +23523,14 @@ function indent(str, spaces) {
23522
23523
  var match = parseIdentifier(input, i1, namePart) || namePart && parseAdditionalSymbol(input, i1) || maybeSpace && parseSpaces(input, i1);
23523
23524
  // match is required
23524
23525
  if (!match) {
23525
- return i = i1, nextMatch = nextMatch1, tokens = tokens1, {
23526
+ return tokens = tokens1, nextMatch = nextMatch1, i = i1, {
23526
23527
  v: nextMatch1
23527
23528
  };
23528
23529
  }
23529
23530
  var token = match.token, offset = match.offset;
23530
23531
  i1 += offset;
23531
23532
  if (token === " ") {
23532
- return i = i1, nextMatch = nextMatch1, tokens = tokens1, "continue";
23533
+ return tokens = tokens1, nextMatch = nextMatch1, i = i1, "continue";
23533
23534
  }
23534
23535
  tokens1 = _to_consumable_array$3(tokens1).concat([
23535
23536
  token
@@ -23548,7 +23549,7 @@ function indent(str, spaces) {
23548
23549
  if (contextKeys.some(function(el) {
23549
23550
  return el.startsWith(name);
23550
23551
  })) {
23551
- return i = i1, nextMatch = nextMatch1, tokens = tokens1, "continue";
23552
+ return tokens = tokens1, nextMatch = nextMatch1, i = i1, "continue";
23552
23553
  }
23553
23554
  if (dateTimeIdentifiers.some(function(el) {
23554
23555
  return el === name;
@@ -23567,9 +23568,9 @@ function indent(str, spaces) {
23567
23568
  if (dateTimeIdentifiers.some(function(el) {
23568
23569
  return el.startsWith(name);
23569
23570
  })) {
23570
- return i = i1, nextMatch = nextMatch1, tokens = tokens1, "continue";
23571
+ return tokens = tokens1, nextMatch = nextMatch1, i = i1, "continue";
23571
23572
  }
23572
- return i = i1, nextMatch = nextMatch1, tokens = tokens1, {
23573
+ return tokens = tokens1, nextMatch = nextMatch1, i = i1, {
23573
23574
  v: nextMatch1
23574
23575
  };
23575
23576
  };
@@ -23732,7 +23733,7 @@ var dateTimeIdentifiers = Object.keys(dateTimeLiterals);
23732
23733
  * @param {any} value
23733
23734
  * @returns {Boolean}
23734
23735
  */ function isAtomic(value) {
23735
- return !value || _instanceof$b(value, this) || _instanceof$b(value, ValueProducer) || typeof value !== "object";
23736
+ return !value || _instanceof$a(value, this) || _instanceof$a(value, ValueProducer) || typeof value !== "object";
23736
23737
  }
23737
23738
  },
23738
23739
  {
@@ -23751,7 +23752,7 @@ var dateTimeIdentifiers = Object.keys(dateTimeLiterals);
23751
23752
  if (!context || typeof context !== "object") {
23752
23753
  return {};
23753
23754
  }
23754
- if (_instanceof$b(context, _this)) {
23755
+ if (_instanceof$a(context, _this)) {
23755
23756
  return context.value;
23756
23757
  }
23757
23758
  return _object_spread({}, context);
@@ -23870,7 +23871,7 @@ var Variables = /*#__PURE__*/ function() {
23870
23871
  return undefined;
23871
23872
  }
23872
23873
  var val = this.context.get(contextKey);
23873
- if (_instanceof$b(val, ValueProducer)) {
23874
+ if (_instanceof$a(val, ValueProducer)) {
23874
23875
  return val.get(this);
23875
23876
  } else {
23876
23877
  return val;
@@ -24372,6 +24373,7 @@ var parser = LRParser.deserialize({
24372
24373
  },
24373
24374
  dynamicPrecedences: {
24374
24375
  "31": -1,
24376
+ "67": 1,
24375
24377
  "71": -1,
24376
24378
  "73": -1
24377
24379
  },
@@ -24471,7 +24473,7 @@ function _inherits(subClass, superClass) {
24471
24473
  });
24472
24474
  if (superClass) _set_prototype_of(subClass, superClass);
24473
24475
  }
24474
- function _instanceof$a(left, right) {
24476
+ function _instanceof$9(left, right) {
24475
24477
  if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
24476
24478
  return !!right[Symbol.hasInstance](left);
24477
24479
  } else {
@@ -24644,10 +24646,10 @@ function getType(e) {
24644
24646
  }
24645
24647
  return "date time";
24646
24648
  }
24647
- if (_instanceof$a(e, Range$c)) {
24649
+ if (_instanceof$9(e, Range$c)) {
24648
24650
  return "range";
24649
24651
  }
24650
- if (_instanceof$a(e, FunctionWrapper)) {
24652
+ if (_instanceof$9(e, FunctionWrapper)) {
24651
24653
  return "function";
24652
24654
  }
24653
24655
  return "literal";
@@ -25909,13 +25911,13 @@ function createArgsValidator(argDefinitions) {
25909
25911
  * @param {Range|number} a
25910
25912
  * @param {Range|number} b
25911
25913
  */ function before$1(a, b) {
25912
- if (_instanceof$a(a, Range$c) && _instanceof$a(b, Range$c)) {
25914
+ if (_instanceof$9(a, Range$c) && _instanceof$9(b, Range$c)) {
25913
25915
  return a.end < b.start || (!a["end included"] || !b["start included"]) && a.end == b.start;
25914
25916
  }
25915
- if (_instanceof$a(a, Range$c)) {
25917
+ if (_instanceof$9(a, Range$c)) {
25916
25918
  return a.end < b || !a["end included"] && a.end === b;
25917
25919
  }
25918
- if (_instanceof$a(b, Range$c)) {
25920
+ if (_instanceof$9(b, Range$c)) {
25919
25921
  return b.start > a || !b["start included"] && b.start === a;
25920
25922
  }
25921
25923
  return a < b;
@@ -26581,7 +26583,7 @@ function evalNode(node, input, args) {
26581
26583
  return tag(function(context) {
26582
26584
  var a = args[0](context);
26583
26585
  var b = args[3](context);
26584
- return _instanceof$a(a, b);
26586
+ return _instanceof$9(a, b);
26585
26587
  }, Test("boolean"));
26586
26588
  case "every":
26587
26589
  return tag(function(context) {
@@ -26858,7 +26860,7 @@ function evalNode(node, input, args) {
26858
26860
  if (typeof result === "function") {
26859
26861
  result = result(el);
26860
26862
  }
26861
- if (_instanceof$a(result, Range$c)) {
26863
+ if (_instanceof$9(result, Range$c)) {
26862
26864
  result = result.includes(el);
26863
26865
  }
26864
26866
  if (result === true) {
@@ -26960,7 +26962,7 @@ function compareValue(test, value) {
26960
26962
  if (typeof test === "function") {
26961
26963
  return test(value);
26962
26964
  }
26963
- if (_instanceof$a(test, Range$c)) {
26965
+ if (_instanceof$9(test, Range$c)) {
26964
26966
  return test.includes(value);
26965
26967
  }
26966
26968
  return equals(test, value);
@@ -27261,10 +27263,10 @@ function Test(type) {
27261
27263
  if (!fn) {
27262
27264
  return null;
27263
27265
  }
27264
- if (_instanceof$a(fn, FunctionWrapper)) {
27266
+ if (_instanceof$9(fn, FunctionWrapper)) {
27265
27267
  return fn;
27266
27268
  }
27267
- if (_instanceof$a(fn, Range$c)) {
27269
+ if (_instanceof$9(fn, Range$c)) {
27268
27270
  return new FunctionWrapper(function(value) {
27269
27271
  return fn.includes(value);
27270
27272
  }, [
@@ -28766,7 +28768,7 @@ function _create_class$3(Constructor, protoProps, staticProps) {
28766
28768
  if (staticProps) _defineProperties$3(Constructor, staticProps);
28767
28769
  return Constructor;
28768
28770
  }
28769
- function _instanceof$9(left, right) {
28771
+ function _instanceof$8(left, right) {
28770
28772
  if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
28771
28773
  return !!right[Symbol.hasInstance](left);
28772
28774
  } else {
@@ -28786,7 +28788,7 @@ var SemVer$f = /*#__PURE__*/ function() {
28786
28788
  function SemVer(version, options) {
28787
28789
  _class_call_check$3(this, SemVer);
28788
28790
  options = parseOptions$2(options);
28789
- if (_instanceof$9(version, SemVer)) {
28791
+ if (_instanceof$8(version, SemVer)) {
28790
28792
  if (version.loose === !!options.loose && version.includePrerelease === !!options.includePrerelease) {
28791
28793
  return version;
28792
28794
  } else {
@@ -28860,7 +28862,7 @@ var SemVer$f = /*#__PURE__*/ function() {
28860
28862
  key: "compare",
28861
28863
  value: function compare(other) {
28862
28864
  debug$2("SemVer.compare", this.version, this.options, other);
28863
- if (!_instanceof$9(other, SemVer)) {
28865
+ if (!_instanceof$8(other, SemVer)) {
28864
28866
  if (typeof other === "string" && other === this.version) {
28865
28867
  return 0;
28866
28868
  }
@@ -28875,7 +28877,7 @@ var SemVer$f = /*#__PURE__*/ function() {
28875
28877
  {
28876
28878
  key: "compareMain",
28877
28879
  value: function compareMain(other) {
28878
- if (!_instanceof$9(other, SemVer)) {
28880
+ if (!_instanceof$8(other, SemVer)) {
28879
28881
  other = new SemVer(other, this.options);
28880
28882
  }
28881
28883
  return compareIdentifiers(this.major, other.major) || compareIdentifiers(this.minor, other.minor) || compareIdentifiers(this.patch, other.patch);
@@ -28884,7 +28886,7 @@ var SemVer$f = /*#__PURE__*/ function() {
28884
28886
  {
28885
28887
  key: "comparePre",
28886
28888
  value: function comparePre(other) {
28887
- if (!_instanceof$9(other, SemVer)) {
28889
+ if (!_instanceof$8(other, SemVer)) {
28888
28890
  other = new SemVer(other, this.options);
28889
28891
  }
28890
28892
  // NOT having a prerelease is > having one
@@ -28917,14 +28919,14 @@ var SemVer$f = /*#__PURE__*/ function() {
28917
28919
  {
28918
28920
  key: "compareBuild",
28919
28921
  value: function compareBuild(other) {
28920
- if (!_instanceof$9(other, SemVer)) {
28922
+ if (!_instanceof$8(other, SemVer)) {
28921
28923
  other = new SemVer(other, this.options);
28922
28924
  }
28923
28925
  var i = 0;
28924
28926
  do {
28925
28927
  var a = this.build[i];
28926
28928
  var b = other.build[i];
28927
- debug$2("prerelease compare", i, a, b);
28929
+ debug$2("build compare", i, a, b);
28928
28930
  if (a === undefined && b === undefined) {
28929
28931
  return 0;
28930
28932
  } else if (b === undefined) {
@@ -29072,7 +29074,7 @@ var SemVer$f = /*#__PURE__*/ function() {
29072
29074
  }();
29073
29075
  var semver$4 = SemVer$f;
29074
29076
 
29075
- function _instanceof$8(left, right) {
29077
+ function _instanceof$7(left, right) {
29076
29078
  if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
29077
29079
  return !!right[Symbol.hasInstance](left);
29078
29080
  } else {
@@ -29082,7 +29084,7 @@ function _instanceof$8(left, right) {
29082
29084
  var SemVer$e = semver$4;
29083
29085
  var parse$6 = function(version, options) {
29084
29086
  var throwErrors = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : false;
29085
- if (_instanceof$8(version, SemVer$e)) {
29087
+ if (_instanceof$7(version, SemVer$e)) {
29086
29088
  return version;
29087
29089
  }
29088
29090
  try {
@@ -29110,7 +29112,7 @@ var clean$1 = function(version, options) {
29110
29112
  };
29111
29113
  var clean_1 = clean$1;
29112
29114
 
29113
- function _instanceof$7(left, right) {
29115
+ function _instanceof$6(left, right) {
29114
29116
  if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
29115
29117
  return !!right[Symbol.hasInstance](left);
29116
29118
  } else {
@@ -29125,7 +29127,7 @@ var inc$1 = function(version, release, options, identifier, identifierBase) {
29125
29127
  options = undefined;
29126
29128
  }
29127
29129
  try {
29128
- return new SemVer$d(_instanceof$7(version, SemVer$d) ? version.version : version, options).inc(release, identifier, identifierBase).version;
29130
+ return new SemVer$d(_instanceof$6(version, SemVer$d) ? version.version : version, options).inc(release, identifier, identifierBase).version;
29129
29131
  } catch (er) {
29130
29132
  return null;
29131
29133
  }
@@ -29330,7 +29332,7 @@ var cmp$2 = function(a, op, b, loose) {
29330
29332
  };
29331
29333
  var cmp_1 = cmp$2;
29332
29334
 
29333
- function _instanceof$6(left, right) {
29335
+ function _instanceof$5(left, right) {
29334
29336
  if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
29335
29337
  return !!right[Symbol.hasInstance](left);
29336
29338
  } else {
@@ -29341,7 +29343,7 @@ var SemVer$7 = semver$4;
29341
29343
  var parse$1 = parse_1;
29342
29344
  var _require$4 = re$4.exports, re$2 = _require$4.safeRe, t$2 = _require$4.t;
29343
29345
  var coerce$1 = function(version, options) {
29344
- if (_instanceof$6(version, SemVer$7)) {
29346
+ if (_instanceof$5(version, SemVer$7)) {
29345
29347
  return version;
29346
29348
  }
29347
29349
  if (typeof version === "number") {
@@ -29387,511 +29389,6 @@ var coerce$1 = function(version, options) {
29387
29389
  };
29388
29390
  var coerce_1 = coerce$1;
29389
29391
 
29390
- function _ts_generator(thisArg, body) {
29391
- var f, y, t, g, _ = {
29392
- label: 0,
29393
- sent: function() {
29394
- if (t[0] & 1) throw t[1];
29395
- return t[1];
29396
- },
29397
- trys: [],
29398
- ops: []
29399
- };
29400
- return g = {
29401
- next: verb(0),
29402
- "throw": verb(1),
29403
- "return": verb(2)
29404
- }, typeof Symbol === "function" && (g[Symbol.iterator] = function() {
29405
- return this;
29406
- }), g;
29407
- function verb(n) {
29408
- return function(v) {
29409
- return step([
29410
- n,
29411
- v
29412
- ]);
29413
- };
29414
- }
29415
- function step(op) {
29416
- if (f) throw new TypeError("Generator is already executing.");
29417
- while(_)try {
29418
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
29419
- if (y = 0, t) op = [
29420
- op[0] & 2,
29421
- t.value
29422
- ];
29423
- switch(op[0]){
29424
- case 0:
29425
- case 1:
29426
- t = op;
29427
- break;
29428
- case 4:
29429
- _.label++;
29430
- return {
29431
- value: op[1],
29432
- done: false
29433
- };
29434
- case 5:
29435
- _.label++;
29436
- y = op[1];
29437
- op = [
29438
- 0
29439
- ];
29440
- continue;
29441
- case 7:
29442
- op = _.ops.pop();
29443
- _.trys.pop();
29444
- continue;
29445
- default:
29446
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
29447
- _ = 0;
29448
- continue;
29449
- }
29450
- if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
29451
- _.label = op[1];
29452
- break;
29453
- }
29454
- if (op[0] === 6 && _.label < t[1]) {
29455
- _.label = t[1];
29456
- t = op;
29457
- break;
29458
- }
29459
- if (t && _.label < t[2]) {
29460
- _.label = t[2];
29461
- _.ops.push(op);
29462
- break;
29463
- }
29464
- if (t[2]) _.ops.pop();
29465
- _.trys.pop();
29466
- continue;
29467
- }
29468
- op = body.call(thisArg, _);
29469
- } catch (e) {
29470
- op = [
29471
- 6,
29472
- e
29473
- ];
29474
- y = 0;
29475
- } finally{
29476
- f = t = 0;
29477
- }
29478
- if (op[0] & 5) throw op[1];
29479
- return {
29480
- value: op[0] ? op[1] : void 0,
29481
- done: true
29482
- };
29483
- }
29484
- }
29485
- var iterator = function(Yallist) {
29486
- Yallist.prototype[Symbol.iterator] = function() {
29487
- var walker;
29488
- return _ts_generator(this, function(_state) {
29489
- switch(_state.label){
29490
- case 0:
29491
- walker = this.head;
29492
- _state.label = 1;
29493
- case 1:
29494
- if (!walker) return [
29495
- 3,
29496
- 4
29497
- ];
29498
- return [
29499
- 4,
29500
- walker.value
29501
- ];
29502
- case 2:
29503
- _state.sent();
29504
- _state.label = 3;
29505
- case 3:
29506
- walker = walker.next;
29507
- return [
29508
- 3,
29509
- 1
29510
- ];
29511
- case 4:
29512
- return [
29513
- 2
29514
- ];
29515
- }
29516
- });
29517
- };
29518
- };
29519
-
29520
- function _instanceof$5(left, right) {
29521
- if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
29522
- return !!right[Symbol.hasInstance](left);
29523
- } else {
29524
- return left instanceof right;
29525
- }
29526
- }
29527
- var yallist = Yallist$1;
29528
- Yallist$1.Node = Node;
29529
- Yallist$1.create = Yallist$1;
29530
- function Yallist$1(list) {
29531
- var self = this;
29532
- if (!_instanceof$5(self, Yallist$1)) {
29533
- self = new Yallist$1();
29534
- }
29535
- self.tail = null;
29536
- self.head = null;
29537
- self.length = 0;
29538
- if (list && typeof list.forEach === "function") {
29539
- list.forEach(function(item) {
29540
- self.push(item);
29541
- });
29542
- } else if (arguments.length > 0) {
29543
- for(var i = 0, l = arguments.length; i < l; i++){
29544
- self.push(arguments[i]);
29545
- }
29546
- }
29547
- return self;
29548
- }
29549
- Yallist$1.prototype.removeNode = function(node) {
29550
- if (node.list !== this) {
29551
- throw new Error("removing node which does not belong to this list");
29552
- }
29553
- var next = node.next;
29554
- var prev = node.prev;
29555
- if (next) {
29556
- next.prev = prev;
29557
- }
29558
- if (prev) {
29559
- prev.next = next;
29560
- }
29561
- if (node === this.head) {
29562
- this.head = next;
29563
- }
29564
- if (node === this.tail) {
29565
- this.tail = prev;
29566
- }
29567
- node.list.length--;
29568
- node.next = null;
29569
- node.prev = null;
29570
- node.list = null;
29571
- return next;
29572
- };
29573
- Yallist$1.prototype.unshiftNode = function(node) {
29574
- if (node === this.head) {
29575
- return;
29576
- }
29577
- if (node.list) {
29578
- node.list.removeNode(node);
29579
- }
29580
- var head = this.head;
29581
- node.list = this;
29582
- node.next = head;
29583
- if (head) {
29584
- head.prev = node;
29585
- }
29586
- this.head = node;
29587
- if (!this.tail) {
29588
- this.tail = node;
29589
- }
29590
- this.length++;
29591
- };
29592
- Yallist$1.prototype.pushNode = function(node) {
29593
- if (node === this.tail) {
29594
- return;
29595
- }
29596
- if (node.list) {
29597
- node.list.removeNode(node);
29598
- }
29599
- var tail = this.tail;
29600
- node.list = this;
29601
- node.prev = tail;
29602
- if (tail) {
29603
- tail.next = node;
29604
- }
29605
- this.tail = node;
29606
- if (!this.head) {
29607
- this.head = node;
29608
- }
29609
- this.length++;
29610
- };
29611
- Yallist$1.prototype.push = function() {
29612
- for(var i = 0, l = arguments.length; i < l; i++){
29613
- push(this, arguments[i]);
29614
- }
29615
- return this.length;
29616
- };
29617
- Yallist$1.prototype.unshift = function() {
29618
- for(var i = 0, l = arguments.length; i < l; i++){
29619
- unshift(this, arguments[i]);
29620
- }
29621
- return this.length;
29622
- };
29623
- Yallist$1.prototype.pop = function() {
29624
- if (!this.tail) {
29625
- return undefined;
29626
- }
29627
- var res = this.tail.value;
29628
- this.tail = this.tail.prev;
29629
- if (this.tail) {
29630
- this.tail.next = null;
29631
- } else {
29632
- this.head = null;
29633
- }
29634
- this.length--;
29635
- return res;
29636
- };
29637
- Yallist$1.prototype.shift = function() {
29638
- if (!this.head) {
29639
- return undefined;
29640
- }
29641
- var res = this.head.value;
29642
- this.head = this.head.next;
29643
- if (this.head) {
29644
- this.head.prev = null;
29645
- } else {
29646
- this.tail = null;
29647
- }
29648
- this.length--;
29649
- return res;
29650
- };
29651
- Yallist$1.prototype.forEach = function(fn, thisp) {
29652
- thisp = thisp || this;
29653
- for(var walker = this.head, i = 0; walker !== null; i++){
29654
- fn.call(thisp, walker.value, i, this);
29655
- walker = walker.next;
29656
- }
29657
- };
29658
- Yallist$1.prototype.forEachReverse = function(fn, thisp) {
29659
- thisp = thisp || this;
29660
- for(var walker = this.tail, i = this.length - 1; walker !== null; i--){
29661
- fn.call(thisp, walker.value, i, this);
29662
- walker = walker.prev;
29663
- }
29664
- };
29665
- Yallist$1.prototype.get = function(n) {
29666
- for(var i = 0, walker = this.head; walker !== null && i < n; i++){
29667
- // abort out of the list early if we hit a cycle
29668
- walker = walker.next;
29669
- }
29670
- if (i === n && walker !== null) {
29671
- return walker.value;
29672
- }
29673
- };
29674
- Yallist$1.prototype.getReverse = function(n) {
29675
- for(var i = 0, walker = this.tail; walker !== null && i < n; i++){
29676
- // abort out of the list early if we hit a cycle
29677
- walker = walker.prev;
29678
- }
29679
- if (i === n && walker !== null) {
29680
- return walker.value;
29681
- }
29682
- };
29683
- Yallist$1.prototype.map = function(fn, thisp) {
29684
- thisp = thisp || this;
29685
- var res = new Yallist$1();
29686
- for(var walker = this.head; walker !== null;){
29687
- res.push(fn.call(thisp, walker.value, this));
29688
- walker = walker.next;
29689
- }
29690
- return res;
29691
- };
29692
- Yallist$1.prototype.mapReverse = function(fn, thisp) {
29693
- thisp = thisp || this;
29694
- var res = new Yallist$1();
29695
- for(var walker = this.tail; walker !== null;){
29696
- res.push(fn.call(thisp, walker.value, this));
29697
- walker = walker.prev;
29698
- }
29699
- return res;
29700
- };
29701
- Yallist$1.prototype.reduce = function(fn, initial) {
29702
- var acc;
29703
- var walker = this.head;
29704
- if (arguments.length > 1) {
29705
- acc = initial;
29706
- } else if (this.head) {
29707
- walker = this.head.next;
29708
- acc = this.head.value;
29709
- } else {
29710
- throw new TypeError("Reduce of empty list with no initial value");
29711
- }
29712
- for(var i = 0; walker !== null; i++){
29713
- acc = fn(acc, walker.value, i);
29714
- walker = walker.next;
29715
- }
29716
- return acc;
29717
- };
29718
- Yallist$1.prototype.reduceReverse = function(fn, initial) {
29719
- var acc;
29720
- var walker = this.tail;
29721
- if (arguments.length > 1) {
29722
- acc = initial;
29723
- } else if (this.tail) {
29724
- walker = this.tail.prev;
29725
- acc = this.tail.value;
29726
- } else {
29727
- throw new TypeError("Reduce of empty list with no initial value");
29728
- }
29729
- for(var i = this.length - 1; walker !== null; i--){
29730
- acc = fn(acc, walker.value, i);
29731
- walker = walker.prev;
29732
- }
29733
- return acc;
29734
- };
29735
- Yallist$1.prototype.toArray = function() {
29736
- var arr = new Array(this.length);
29737
- for(var i = 0, walker = this.head; walker !== null; i++){
29738
- arr[i] = walker.value;
29739
- walker = walker.next;
29740
- }
29741
- return arr;
29742
- };
29743
- Yallist$1.prototype.toArrayReverse = function() {
29744
- var arr = new Array(this.length);
29745
- for(var i = 0, walker = this.tail; walker !== null; i++){
29746
- arr[i] = walker.value;
29747
- walker = walker.prev;
29748
- }
29749
- return arr;
29750
- };
29751
- Yallist$1.prototype.slice = function(from, to) {
29752
- to = to || this.length;
29753
- if (to < 0) {
29754
- to += this.length;
29755
- }
29756
- from = from || 0;
29757
- if (from < 0) {
29758
- from += this.length;
29759
- }
29760
- var ret = new Yallist$1();
29761
- if (to < from || to < 0) {
29762
- return ret;
29763
- }
29764
- if (from < 0) {
29765
- from = 0;
29766
- }
29767
- if (to > this.length) {
29768
- to = this.length;
29769
- }
29770
- for(var i = 0, walker = this.head; walker !== null && i < from; i++){
29771
- walker = walker.next;
29772
- }
29773
- for(; walker !== null && i < to; i++, walker = walker.next){
29774
- ret.push(walker.value);
29775
- }
29776
- return ret;
29777
- };
29778
- Yallist$1.prototype.sliceReverse = function(from, to) {
29779
- to = to || this.length;
29780
- if (to < 0) {
29781
- to += this.length;
29782
- }
29783
- from = from || 0;
29784
- if (from < 0) {
29785
- from += this.length;
29786
- }
29787
- var ret = new Yallist$1();
29788
- if (to < from || to < 0) {
29789
- return ret;
29790
- }
29791
- if (from < 0) {
29792
- from = 0;
29793
- }
29794
- if (to > this.length) {
29795
- to = this.length;
29796
- }
29797
- for(var i = this.length, walker = this.tail; walker !== null && i > to; i--){
29798
- walker = walker.prev;
29799
- }
29800
- for(; walker !== null && i > from; i--, walker = walker.prev){
29801
- ret.push(walker.value);
29802
- }
29803
- return ret;
29804
- };
29805
- Yallist$1.prototype.splice = function(start, deleteCount) {
29806
- for(var _len = arguments.length, nodes = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++){
29807
- nodes[_key - 2] = arguments[_key];
29808
- }
29809
- if (start > this.length) {
29810
- start = this.length - 1;
29811
- }
29812
- if (start < 0) {
29813
- start = this.length + start;
29814
- }
29815
- for(var i = 0, walker = this.head; walker !== null && i < start; i++){
29816
- walker = walker.next;
29817
- }
29818
- var ret = [];
29819
- for(var i = 0; walker && i < deleteCount; i++){
29820
- ret.push(walker.value);
29821
- walker = this.removeNode(walker);
29822
- }
29823
- if (walker === null) {
29824
- walker = this.tail;
29825
- }
29826
- if (walker !== this.head && walker !== this.tail) {
29827
- walker = walker.prev;
29828
- }
29829
- for(var i = 0; i < nodes.length; i++){
29830
- walker = insert(this, walker, nodes[i]);
29831
- }
29832
- return ret;
29833
- };
29834
- Yallist$1.prototype.reverse = function() {
29835
- var head = this.head;
29836
- var tail = this.tail;
29837
- for(var walker = head; walker !== null; walker = walker.prev){
29838
- var p = walker.prev;
29839
- walker.prev = walker.next;
29840
- walker.next = p;
29841
- }
29842
- this.head = tail;
29843
- this.tail = head;
29844
- return this;
29845
- };
29846
- function insert(self, node, value) {
29847
- var inserted = node === self.head ? new Node(value, null, node, self) : new Node(value, node, node.next, self);
29848
- if (inserted.next === null) {
29849
- self.tail = inserted;
29850
- }
29851
- if (inserted.prev === null) {
29852
- self.head = inserted;
29853
- }
29854
- self.length++;
29855
- return inserted;
29856
- }
29857
- function push(self, item) {
29858
- self.tail = new Node(item, self.tail, null, self);
29859
- if (!self.head) {
29860
- self.head = self.tail;
29861
- }
29862
- self.length++;
29863
- }
29864
- function unshift(self, item) {
29865
- self.head = new Node(item, null, self.head, self);
29866
- if (!self.tail) {
29867
- self.tail = self.head;
29868
- }
29869
- self.length++;
29870
- }
29871
- function Node(value, prev, next, list) {
29872
- if (!_instanceof$5(this, Node)) {
29873
- return new Node(value, prev, next, list);
29874
- }
29875
- this.list = list;
29876
- this.value = value;
29877
- if (prev) {
29878
- prev.next = this;
29879
- this.prev = prev;
29880
- } else {
29881
- this.prev = null;
29882
- }
29883
- if (next) {
29884
- next.prev = this;
29885
- this.next = next;
29886
- } else {
29887
- this.next = null;
29888
- }
29889
- }
29890
- try {
29891
- // add if support for Symbol.iterator is present
29892
- iterator(Yallist$1);
29893
- } catch (er) {}
29894
-
29895
29392
  function _class_call_check$2(instance, Constructor) {
29896
29393
  if (!(instance instanceof Constructor)) {
29897
29394
  throw new TypeError("Cannot call a class as a function");
@@ -29911,361 +29408,53 @@ function _create_class$2(Constructor, protoProps, staticProps) {
29911
29408
  if (staticProps) _defineProperties$2(Constructor, staticProps);
29912
29409
  return Constructor;
29913
29410
  }
29914
- // A linked list to keep track of recently-used-ness
29915
- var Yallist = yallist;
29916
- var MAX = Symbol("max");
29917
- var LENGTH = Symbol("length");
29918
- var LENGTH_CALCULATOR = Symbol("lengthCalculator");
29919
- var ALLOW_STALE = Symbol("allowStale");
29920
- var MAX_AGE = Symbol("maxAge");
29921
- var DISPOSE = Symbol("dispose");
29922
- var NO_DISPOSE_ON_SET = Symbol("noDisposeOnSet");
29923
- var LRU_LIST = Symbol("lruList");
29924
- var CACHE = Symbol("cache");
29925
- var UPDATE_AGE_ON_GET = Symbol("updateAgeOnGet");
29926
- var naiveLength = function() {
29927
- return 1;
29928
- };
29929
- // lruList is a yallist where the head is the youngest
29930
- // item, and the tail is the oldest. the list contains the Hit
29931
- // objects as the entries.
29932
- // Each Hit object has a reference to its Yallist.Node. This
29933
- // never changes.
29934
- //
29935
- // cache is a Map (or PseudoMap) that matches the keys to
29936
- // the Yallist.Node object.
29937
29411
  var LRUCache = /*#__PURE__*/ function() {
29938
- function LRUCache(options) {
29412
+ function LRUCache() {
29939
29413
  _class_call_check$2(this, LRUCache);
29940
- if (typeof options === "number") options = {
29941
- max: options
29942
- };
29943
- if (!options) options = {};
29944
- if (options.max && (typeof options.max !== "number" || options.max < 0)) throw new TypeError("max must be a non-negative number");
29945
- // Kind of weird to have a default max of Infinity, but oh well.
29946
- this[MAX] = options.max || Infinity;
29947
- var lc = options.length || naiveLength;
29948
- this[LENGTH_CALCULATOR] = typeof lc !== "function" ? naiveLength : lc;
29949
- this[ALLOW_STALE] = options.stale || false;
29950
- if (options.maxAge && typeof options.maxAge !== "number") throw new TypeError("maxAge must be a number");
29951
- this[MAX_AGE] = options.maxAge || 0;
29952
- this[DISPOSE] = options.dispose;
29953
- this[NO_DISPOSE_ON_SET] = options.noDisposeOnSet || false;
29954
- this[UPDATE_AGE_ON_GET] = options.updateAgeOnGet || false;
29955
- this.reset();
29414
+ this.max = 1000;
29415
+ this.map = new Map();
29956
29416
  }
29957
29417
  _create_class$2(LRUCache, [
29958
29418
  {
29959
- key: "max",
29960
- get: function get() {
29961
- return this[MAX];
29962
- },
29963
- set: // resize the cache when the max changes.
29964
- function set(mL) {
29965
- if (typeof mL !== "number" || mL < 0) throw new TypeError("max must be a non-negative number");
29966
- this[MAX] = mL || Infinity;
29967
- trim(this);
29968
- }
29969
- },
29970
- {
29971
- key: "allowStale",
29972
- get: function get() {
29973
- return this[ALLOW_STALE];
29974
- },
29975
- set: function set(allowStale) {
29976
- this[ALLOW_STALE] = !!allowStale;
29977
- }
29978
- },
29979
- {
29980
- key: "maxAge",
29981
- get: function get() {
29982
- return this[MAX_AGE];
29983
- },
29984
- set: function set(mA) {
29985
- if (typeof mA !== "number") throw new TypeError("maxAge must be a non-negative number");
29986
- this[MAX_AGE] = mA;
29987
- trim(this);
29988
- }
29989
- },
29990
- {
29991
- key: "lengthCalculator",
29992
- get: function get() {
29993
- return this[LENGTH_CALCULATOR];
29994
- },
29995
- set: // resize the cache when the lengthCalculator changes.
29996
- function set(lC) {
29997
- var _this = this;
29998
- if (typeof lC !== "function") lC = naiveLength;
29999
- if (lC !== this[LENGTH_CALCULATOR]) {
30000
- this[LENGTH_CALCULATOR] = lC;
30001
- this[LENGTH] = 0;
30002
- this[LRU_LIST].forEach(function(hit) {
30003
- hit.length = _this[LENGTH_CALCULATOR](hit.value, hit.key);
30004
- _this[LENGTH] += hit.length;
30005
- });
30006
- }
30007
- trim(this);
30008
- }
30009
- },
30010
- {
30011
- key: "length",
30012
- get: function get() {
30013
- return this[LENGTH];
30014
- }
30015
- },
30016
- {
30017
- key: "itemCount",
30018
- get: function get() {
30019
- return this[LRU_LIST].length;
30020
- }
30021
- },
30022
- {
30023
- key: "rforEach",
30024
- value: function rforEach(fn, thisp) {
30025
- thisp = thisp || this;
30026
- for(var walker = this[LRU_LIST].tail; walker !== null;){
30027
- var prev = walker.prev;
30028
- forEachStep(this, fn, walker, thisp);
30029
- walker = prev;
30030
- }
30031
- }
30032
- },
30033
- {
30034
- key: "forEach",
30035
- value: function forEach(fn, thisp) {
30036
- thisp = thisp || this;
30037
- for(var walker = this[LRU_LIST].head; walker !== null;){
30038
- var next = walker.next;
30039
- forEachStep(this, fn, walker, thisp);
30040
- walker = next;
30041
- }
30042
- }
30043
- },
30044
- {
30045
- key: "keys",
30046
- value: function keys() {
30047
- return this[LRU_LIST].toArray().map(function(k) {
30048
- return k.key;
30049
- });
30050
- }
30051
- },
30052
- {
30053
- key: "values",
30054
- value: function values() {
30055
- return this[LRU_LIST].toArray().map(function(k) {
30056
- return k.value;
30057
- });
30058
- }
30059
- },
30060
- {
30061
- key: "reset",
30062
- value: function reset() {
30063
- var _this = this;
30064
- if (this[DISPOSE] && this[LRU_LIST] && this[LRU_LIST].length) {
30065
- this[LRU_LIST].forEach(function(hit) {
30066
- return _this[DISPOSE](hit.key, hit.value);
30067
- });
29419
+ key: "get",
29420
+ value: function get(key) {
29421
+ var value = this.map.get(key);
29422
+ if (value === undefined) {
29423
+ return undefined;
29424
+ } else {
29425
+ // Remove the key from the map and add it to the end
29426
+ this.map.delete(key);
29427
+ this.map.set(key, value);
29428
+ return value;
30068
29429
  }
30069
- this[CACHE] = new Map() // hash of items by key
30070
- ;
30071
- this[LRU_LIST] = new Yallist() // list of items in order of use recency
30072
- ;
30073
- this[LENGTH] = 0 // length of items in the list
30074
- ;
30075
- }
30076
- },
30077
- {
30078
- key: "dump",
30079
- value: function dump() {
30080
- var _this = this;
30081
- return this[LRU_LIST].map(function(hit) {
30082
- return isStale(_this, hit) ? false : {
30083
- k: hit.key,
30084
- v: hit.value,
30085
- e: hit.now + (hit.maxAge || 0)
30086
- };
30087
- }).toArray().filter(function(h) {
30088
- return h;
30089
- });
30090
29430
  }
30091
29431
  },
30092
29432
  {
30093
- key: "dumpLru",
30094
- value: function dumpLru() {
30095
- return this[LRU_LIST];
29433
+ key: "delete",
29434
+ value: function _delete(key) {
29435
+ return this.map.delete(key);
30096
29436
  }
30097
29437
  },
30098
29438
  {
30099
29439
  key: "set",
30100
- value: function set(key, value, maxAge) {
30101
- maxAge = maxAge || this[MAX_AGE];
30102
- if (maxAge && typeof maxAge !== "number") throw new TypeError("maxAge must be a number");
30103
- var now = maxAge ? Date.now() : 0;
30104
- var len = this[LENGTH_CALCULATOR](value, key);
30105
- if (this[CACHE].has(key)) {
30106
- if (len > this[MAX]) {
30107
- del(this, this[CACHE].get(key));
30108
- return false;
30109
- }
30110
- var node = this[CACHE].get(key);
30111
- var item = node.value;
30112
- // dispose of the old one before overwriting
30113
- // split out into 2 ifs for better coverage tracking
30114
- if (this[DISPOSE]) {
30115
- if (!this[NO_DISPOSE_ON_SET]) this[DISPOSE](key, item.value);
30116
- }
30117
- item.now = now;
30118
- item.maxAge = maxAge;
30119
- item.value = value;
30120
- this[LENGTH] += len - item.length;
30121
- item.length = len;
30122
- this.get(key);
30123
- trim(this);
30124
- return true;
30125
- }
30126
- var hit = new Entry(key, value, len, now, maxAge);
30127
- // oversized objects fall out of cache automatically.
30128
- if (hit.length > this[MAX]) {
30129
- if (this[DISPOSE]) this[DISPOSE](key, value);
30130
- return false;
30131
- }
30132
- this[LENGTH] += hit.length;
30133
- this[LRU_LIST].unshift(hit);
30134
- this[CACHE].set(key, this[LRU_LIST].head);
30135
- trim(this);
30136
- return true;
30137
- }
30138
- },
30139
- {
30140
- key: "has",
30141
- value: function has(key) {
30142
- if (!this[CACHE].has(key)) return false;
30143
- var hit = this[CACHE].get(key).value;
30144
- return !isStale(this, hit);
30145
- }
30146
- },
30147
- {
30148
- key: "get",
30149
- value: function get1(key) {
30150
- return get(this, key, true);
30151
- }
30152
- },
30153
- {
30154
- key: "peek",
30155
- value: function peek(key) {
30156
- return get(this, key, false);
30157
- }
30158
- },
30159
- {
30160
- key: "pop",
30161
- value: function pop() {
30162
- var node = this[LRU_LIST].tail;
30163
- if (!node) return null;
30164
- del(this, node);
30165
- return node.value;
30166
- }
30167
- },
30168
- {
30169
- key: "del",
30170
- value: function del1(key) {
30171
- del(this, this[CACHE].get(key));
30172
- }
30173
- },
30174
- {
30175
- key: "load",
30176
- value: function load(arr) {
30177
- // reset the cache
30178
- this.reset();
30179
- var now = Date.now();
30180
- // A previous serialized cache has the most recent items first
30181
- for(var l = arr.length - 1; l >= 0; l--){
30182
- var hit = arr[l];
30183
- var expiresAt = hit.e || 0;
30184
- if (expiresAt === 0) // the item was created without expiration in a non aged cache
30185
- this.set(hit.k, hit.v);
30186
- else {
30187
- var maxAge = expiresAt - now;
30188
- // dont add already expired items
30189
- if (maxAge > 0) {
30190
- this.set(hit.k, hit.v, maxAge);
30191
- }
29440
+ value: function set(key, value) {
29441
+ var deleted = this.delete(key);
29442
+ if (!deleted && value !== undefined) {
29443
+ // If cache is full, delete the least recently used item
29444
+ if (this.map.size >= this.max) {
29445
+ var firstKey = this.map.keys().next().value;
29446
+ this.delete(firstKey);
30192
29447
  }
29448
+ this.map.set(key, value);
30193
29449
  }
30194
- }
30195
- },
30196
- {
30197
- key: "prune",
30198
- value: function prune() {
30199
- var _this = this;
30200
- this[CACHE].forEach(function(value, key) {
30201
- return get(_this, key, false);
30202
- });
29450
+ return this;
30203
29451
  }
30204
29452
  }
30205
29453
  ]);
30206
29454
  return LRUCache;
30207
29455
  }();
30208
- var get = function(self, key, doUse) {
30209
- var node = self[CACHE].get(key);
30210
- if (node) {
30211
- var hit = node.value;
30212
- if (isStale(self, hit)) {
30213
- del(self, node);
30214
- if (!self[ALLOW_STALE]) return undefined;
30215
- } else {
30216
- if (doUse) {
30217
- if (self[UPDATE_AGE_ON_GET]) node.value.now = Date.now();
30218
- self[LRU_LIST].unshiftNode(node);
30219
- }
30220
- }
30221
- return hit.value;
30222
- }
30223
- };
30224
- var isStale = function(self, hit) {
30225
- if (!hit || !hit.maxAge && !self[MAX_AGE]) return false;
30226
- var diff = Date.now() - hit.now;
30227
- return hit.maxAge ? diff > hit.maxAge : self[MAX_AGE] && diff > self[MAX_AGE];
30228
- };
30229
- var trim = function(self) {
30230
- if (self[LENGTH] > self[MAX]) {
30231
- for(var walker = self[LRU_LIST].tail; self[LENGTH] > self[MAX] && walker !== null;){
30232
- // We know that we're about to delete this one, and also
30233
- // what the next least recently used key will be, so just
30234
- // go ahead and set it now.
30235
- var prev = walker.prev;
30236
- del(self, walker);
30237
- walker = prev;
30238
- }
30239
- }
30240
- };
30241
- var del = function(self, node) {
30242
- if (node) {
30243
- var hit = node.value;
30244
- if (self[DISPOSE]) self[DISPOSE](hit.key, hit.value);
30245
- self[LENGTH] -= hit.length;
30246
- self[CACHE].delete(hit.key);
30247
- self[LRU_LIST].removeNode(node);
30248
- }
30249
- };
30250
- var Entry = function Entry(key, value, length, now, maxAge) {
30251
- _class_call_check$2(this, Entry);
30252
- this.key = key;
30253
- this.value = value;
30254
- this.length = length;
30255
- this.now = now;
30256
- this.maxAge = maxAge || 0;
30257
- };
30258
- var forEachStep = function(self, fn, node, thisp) {
30259
- var hit = node.value;
30260
- if (isStale(self, hit)) {
30261
- del(self, node);
30262
- if (!self[ALLOW_STALE]) hit = undefined;
30263
- }
30264
- if (hit) fn.call(thisp, hit.value, hit.key, self);
30265
- };
30266
- var lruCache = LRUCache;
29456
+ var lrucache = LRUCache;
30267
29457
 
30268
- // hoisted class for cyclic dependency
30269
29458
  function _array_like_to_array$1(arr, len) {
30270
29459
  if (len == null || len > arr.length) len = arr.length;
30271
29460
  for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
@@ -30317,6 +29506,8 @@ function _unsupported_iterable_to_array$1(o, minLen) {
30317
29506
  if (n === "Map" || n === "Set") return Array.from(n);
30318
29507
  if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$1(o, minLen);
30319
29508
  }
29509
+ var SPACE_CHARACTERS = /\s+/g;
29510
+ // hoisted class for cyclic dependency
30320
29511
  var Range$b = /*#__PURE__*/ function() {
30321
29512
  function Range(range, options) {
30322
29513
  var _this = this;
@@ -30337,7 +29528,7 @@ var Range$b = /*#__PURE__*/ function() {
30337
29528
  range
30338
29529
  ]
30339
29530
  ];
30340
- this.format();
29531
+ this.formatted = undefined;
30341
29532
  return this;
30342
29533
  }
30343
29534
  this.options = options;
@@ -30346,7 +29537,7 @@ var Range$b = /*#__PURE__*/ function() {
30346
29537
  // First reduce all whitespace as much as possible so we do not have to rely
30347
29538
  // on potentially slow regexes like \s*. This is then stored and used for
30348
29539
  // future error messages as well.
30349
- this.raw = range.trim().split(/\s+/).join(" ");
29540
+ this.raw = range.trim().replace(SPACE_CHARACTERS, " ");
30350
29541
  // First, split on ||
30351
29542
  this.set = this.raw.split("||")// map the range to a 2d array of comparators
30352
29543
  .map(function(r) {
@@ -30400,15 +29591,33 @@ var Range$b = /*#__PURE__*/ function() {
30400
29591
  }
30401
29592
  }
30402
29593
  }
30403
- this.format();
29594
+ this.formatted = undefined;
30404
29595
  }
30405
29596
  _create_class$1(Range, [
29597
+ {
29598
+ key: "range",
29599
+ get: function get() {
29600
+ if (this.formatted === undefined) {
29601
+ this.formatted = "";
29602
+ for(var i = 0; i < this.set.length; i++){
29603
+ if (i > 0) {
29604
+ this.formatted += "||";
29605
+ }
29606
+ var comps = this.set[i];
29607
+ for(var k = 0; k < comps.length; k++){
29608
+ if (k > 0) {
29609
+ this.formatted += " ";
29610
+ }
29611
+ this.formatted += comps[k].toString().trim();
29612
+ }
29613
+ }
29614
+ }
29615
+ return this.formatted;
29616
+ }
29617
+ },
30406
29618
  {
30407
29619
  key: "format",
30408
29620
  value: function format() {
30409
- this.range = this.set.map(function(comps) {
30410
- return comps.join(" ").trim();
30411
- }).join("||").trim();
30412
29621
  return this.range;
30413
29622
  }
30414
29623
  },
@@ -30543,10 +29752,8 @@ var Range$b = /*#__PURE__*/ function() {
30543
29752
  return Range;
30544
29753
  }();
30545
29754
  var range = Range$b;
30546
- var LRU = lruCache;
30547
- var cache = new LRU({
30548
- max: 1000
30549
- });
29755
+ var LRU = lrucache;
29756
+ var cache = new LRU();
30550
29757
  var parseOptions$1 = parseOptions_1;
30551
29758
  var Comparator$4 = comparator;
30552
29759
  var debug$1 = debug_1;
@@ -30770,8 +29977,9 @@ var replaceGTE0 = function(comp, options) {
30770
29977
  // 1.2 - 3.4.5 => >=1.2.0 <=3.4.5
30771
29978
  // 1.2.3 - 3.4 => >=1.2.0 <3.5.0-0 Any 3.4.x will do
30772
29979
  // 1.2 - 3.4 => >=1.2.0 <3.5.0-0
29980
+ // TODO build?
30773
29981
  var hyphenReplace = function(incPr) {
30774
- return function($0, from, fM, fm, fp, fpr, fb, to, tM, tm, tp, tpr, tb) {
29982
+ return function($0, from, fM, fm, fp, fpr, fb, to, tM, tm, tp, tpr) {
30775
29983
  if (isX(fM)) {
30776
29984
  from = "";
30777
29985
  } else if (isX(fm)) {