@digipair/skill-keycloak 0.22.2 → 0.23.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (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.esm.js CHANGED
@@ -10218,7 +10218,7 @@ var InvalidZone = /*#__PURE__*/ function(Zone) {
10218
10218
 
10219
10219
  /**
10220
10220
  * @private
10221
- */ function _instanceof$h(left, right) {
10221
+ */ function _instanceof$g(left, right) {
10222
10222
  if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
10223
10223
  return !!right[Symbol.hasInstance](left);
10224
10224
  } else {
@@ -10228,7 +10228,7 @@ var InvalidZone = /*#__PURE__*/ function(Zone) {
10228
10228
  function normalizeZone(input, defaultZone) {
10229
10229
  if (isUndefined(input) || input === null) {
10230
10230
  return defaultZone;
10231
- } else if (_instanceof$h(input, Zone)) {
10231
+ } else if (_instanceof$g(input, Zone)) {
10232
10232
  return input;
10233
10233
  } else if (isString$4(input)) {
10234
10234
  var lowered = input.toLowerCase();
@@ -12202,7 +12202,7 @@ function _define_property$4(obj, key, value) {
12202
12202
  }
12203
12203
  return obj;
12204
12204
  }
12205
- function _instanceof$g(left, right) {
12205
+ function _instanceof$f(left, right) {
12206
12206
  if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
12207
12207
  return !!right[Symbol.hasInstance](left);
12208
12208
  } else {
@@ -13338,7 +13338,7 @@ var Duration = /*#__PURE__*/ function() {
13338
13338
  if (!reason) {
13339
13339
  throw new InvalidArgumentError("need to specify a reason the Duration is invalid");
13340
13340
  }
13341
- var invalid = _instanceof$g(reason, Invalid) ? reason : new Invalid(reason, explanation);
13341
+ var invalid = _instanceof$f(reason, Invalid) ? reason : new Invalid(reason, explanation);
13342
13342
  if (Settings.throwOnInvalid) {
13343
13343
  throw new InvalidDurationError(invalid);
13344
13344
  } else {
@@ -13421,7 +13421,7 @@ function _create_class$b(Constructor, protoProps, staticProps) {
13421
13421
  if (staticProps) _defineProperties$b(Constructor, staticProps);
13422
13422
  return Constructor;
13423
13423
  }
13424
- function _instanceof$f(left, right) {
13424
+ function _instanceof$e(left, right) {
13425
13425
  if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
13426
13426
  return !!right[Symbol.hasInstance](left);
13427
13427
  } else {
@@ -13973,7 +13973,7 @@ var Interval = /*#__PURE__*/ function() {
13973
13973
  if (!reason) {
13974
13974
  throw new InvalidArgumentError("need to specify a reason the Interval is invalid");
13975
13975
  }
13976
- var invalid = _instanceof$f(reason, Invalid) ? reason : new Invalid(reason, explanation);
13976
+ var invalid = _instanceof$e(reason, Invalid) ? reason : new Invalid(reason, explanation);
13977
13977
  if (Settings.throwOnInvalid) {
13978
13978
  throw new InvalidIntervalError(invalid);
13979
13979
  } else {
@@ -15368,7 +15368,7 @@ function _define_property$2(obj, key, value) {
15368
15368
  }
15369
15369
  return obj;
15370
15370
  }
15371
- function _instanceof$e(left, right) {
15371
+ function _instanceof$d(left, right) {
15372
15372
  if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
15373
15373
  return !!right[Symbol.hasInstance](left);
15374
15374
  } else {
@@ -17555,7 +17555,7 @@ var DateTime = /*#__PURE__*/ function() {
17555
17555
  if (!reason) {
17556
17556
  throw new InvalidArgumentError("need to specify a reason the DateTime is invalid");
17557
17557
  }
17558
- var invalid = _instanceof$e(reason, Invalid) ? reason : new Invalid(reason, explanation);
17558
+ var invalid = _instanceof$d(reason, Invalid) ? reason : new Invalid(reason, explanation);
17559
17559
  if (Settings.throwOnInvalid) {
17560
17560
  throw new InvalidDateTimeError(invalid);
17561
17561
  } else {
@@ -17940,7 +17940,7 @@ function _inherits$2(subClass, superClass) {
17940
17940
  });
17941
17941
  if (superClass) _set_prototype_of$2(subClass, superClass);
17942
17942
  }
17943
- function _instanceof$d(left, right) {
17943
+ function _instanceof$c(left, right) {
17944
17944
  if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
17945
17945
  return !!right[Symbol.hasInstance](left);
17946
17946
  } else {
@@ -18869,14 +18869,14 @@ function resolveNode(node, pos, side, overlays) {
18869
18869
  var _a;
18870
18870
  // Move up to a node that actually holds the position, if possible
18871
18871
  while(node.from == node.to || (side < 1 ? node.from >= pos : node.from > pos) || (side > -1 ? node.to <= pos : node.to < pos)){
18872
- var parent = !overlays && _instanceof$d(node, TreeNode) && node.index < 0 ? null : node.parent;
18872
+ var parent = !overlays && _instanceof$c(node, TreeNode) && node.index < 0 ? null : node.parent;
18873
18873
  if (!parent) return node;
18874
18874
  node = parent;
18875
18875
  }
18876
18876
  var mode = overlays ? 0 : IterMode.IgnoreOverlays;
18877
18877
  // Must go up out of overlays when those do not overlap with pos
18878
18878
  if (overlays) for(var scan = node, parent1 = scan.parent; parent1; scan = parent1, parent1 = scan.parent){
18879
- 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;
18879
+ 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;
18880
18880
  }
18881
18881
  for(;;){
18882
18882
  var inner = node.enter(pos, side, mode);
@@ -19004,7 +19004,7 @@ var TreeNode = /*#__PURE__*/ function(BaseNode) {
19004
19004
  for(var _parent__tree = parent._tree, children = _parent__tree.children, positions = _parent__tree.positions, e = dir > 0 ? children.length : -1; i != e; i += dir){
19005
19005
  var next = children[i], start = positions[i] + parent.from;
19006
19006
  if (!checkSide(side, pos, start, start + next.length)) continue;
19007
- if (_instanceof$d(next, TreeBuffer)) {
19007
+ if (_instanceof$c(next, TreeBuffer)) {
19008
19008
  if (mode & IterMode.ExcludeBuffers) continue;
19009
19009
  var index = next.findChild(0, next.buffer.length, dir, pos - start, side);
19010
19010
  if (index > -1) return new BufferNode(new BufferContext(parent, next, i, start), null, index);
@@ -19303,7 +19303,7 @@ function iterStack(heads) {
19303
19303
  pick = i;
19304
19304
  }
19305
19305
  }
19306
- var next = _instanceof$d(picked, TreeNode) && picked.index < 0 ? null : picked.parent;
19306
+ var next = _instanceof$c(picked, TreeNode) && picked.index < 0 ? null : picked.parent;
19307
19307
  var newHeads = heads.slice();
19308
19308
  if (next) newHeads[pick] = next;
19309
19309
  else newHeads.splice(pick, 1);
@@ -19327,7 +19327,7 @@ var StackIterator = /*#__PURE__*/ function() {
19327
19327
  }();
19328
19328
  function stackIterator(tree, pos, side) {
19329
19329
  var inner = tree.resolveInner(pos, side), layers = null;
19330
- for(var scan = _instanceof$d(inner, TreeNode) ? inner : inner.context.parent; scan; scan = scan.parent){
19330
+ for(var scan = _instanceof$c(inner, TreeNode) ? inner : inner.context.parent; scan; scan = scan.parent){
19331
19331
  if (scan.index < 0) {
19332
19332
  var parent = scan.parent;
19333
19333
  (layers || (layers = [
@@ -19365,7 +19365,7 @@ allows you to move to adjacent nodes.
19365
19365
  @internal
19366
19366
  */ this.index = 0;
19367
19367
  this.bufferNode = null;
19368
- if (_instanceof$d(node, TreeNode)) {
19368
+ if (_instanceof$c(node, TreeNode)) {
19369
19369
  this.yieldNode(node);
19370
19370
  } else {
19371
19371
  this._tree = node.context.parent;
@@ -19412,7 +19412,7 @@ allows you to move to adjacent nodes.
19412
19412
  */ key: "yield",
19413
19413
  value: function _yield(node) {
19414
19414
  if (!node) return false;
19415
- if (_instanceof$d(node, TreeNode)) {
19415
+ if (_instanceof$c(node, TreeNode)) {
19416
19416
  this.buffer = null;
19417
19417
  return this.yieldNode(node);
19418
19418
  }
@@ -19553,7 +19553,7 @@ allows you to move to adjacent nodes.
19553
19553
  for(; parent; ref2 = parent, index = ref2.index, parent = ref2._parent, ref2){
19554
19554
  if (index > -1) for(var i1 = index + dir, e = dir < 0 ? -1 : parent._tree.children.length; i1 != e; i1 += dir){
19555
19555
  var child = parent._tree.children[i1];
19556
- if (this.mode & IterMode.IncludeAnonymous || _instanceof$d(child, TreeBuffer) || !child.type.isAnonymous || hasChild(child)) return false;
19556
+ if (this.mode & IterMode.IncludeAnonymous || _instanceof$c(child, TreeBuffer) || !child.type.isAnonymous || hasChild(child)) return false;
19557
19557
  }
19558
19558
  }
19559
19559
  return true;
@@ -19696,7 +19696,7 @@ allows you to move to adjacent nodes.
19696
19696
  }();
19697
19697
  function hasChild(tree) {
19698
19698
  return tree.children.some(function(ch) {
19699
- return _instanceof$d(ch, TreeBuffer) || !ch.type.isAnonymous || hasChild(ch);
19699
+ return _instanceof$c(ch, TreeBuffer) || !ch.type.isAnonymous || hasChild(ch);
19700
19700
  });
19701
19701
  }
19702
19702
  function buildTree(data) {
@@ -19799,7 +19799,7 @@ function buildTree(data) {
19799
19799
  function makeBalanced(type) {
19800
19800
  return function(children, positions, length) {
19801
19801
  var lookAhead = 0, lastI = children.length - 1, last, lookAheadProp;
19802
- if (lastI >= 0 && _instanceof$d(last = children[lastI], Tree)) {
19802
+ if (lastI >= 0 && _instanceof$c(last = children[lastI], Tree)) {
19803
19803
  if (!lastI && last.type == type && last.length == length) return last;
19804
19804
  if (lookAheadProp = last.prop(NodeProp.lookAhead)) lookAhead = positions[lastI] + last.length + lookAheadProp;
19805
19805
  }
@@ -19921,7 +19921,7 @@ function buildTree(data) {
19921
19921
  }
19922
19922
  var nodeSizeCache = new WeakMap;
19923
19923
  function nodeSize(balanceType, node) {
19924
- if (!balanceType.isAnonymous || _instanceof$d(node, TreeBuffer) || node.type != balanceType) return 1;
19924
+ if (!balanceType.isAnonymous || _instanceof$c(node, TreeBuffer) || node.type != balanceType) return 1;
19925
19925
  var size = nodeSizeCache.get(node);
19926
19926
  if (size == null) {
19927
19927
  size = 1;
@@ -19929,7 +19929,7 @@ function nodeSize(balanceType, node) {
19929
19929
  try {
19930
19930
  for(var _iterator = node.children[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
19931
19931
  var child = _step.value;
19932
- if (child.type != balanceType || !_instanceof$d(child, Tree)) {
19932
+ if (child.type != balanceType || !_instanceof$c(child, Tree)) {
19933
19933
  size = 1;
19934
19934
  break;
19935
19935
  }
@@ -20128,7 +20128,7 @@ function _inherits$1(subClass, superClass) {
20128
20128
  });
20129
20129
  if (superClass) _set_prototype_of$1(subClass, superClass);
20130
20130
  }
20131
- function _instanceof$c(left, right) {
20131
+ function _instanceof$b(left, right) {
20132
20132
  if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
20133
20133
  return !!right[Symbol.hasInstance](left);
20134
20134
  } else {
@@ -20327,6 +20327,7 @@ about the parse state.
20327
20327
  var _a;
20328
20328
  var depth = action >> 19 /* Action.ReduceDepthShift */ , type = action & 65535 /* Action.ValueMask */ ;
20329
20329
  var parser = this.p.parser;
20330
+ if (this.reducePos < this.pos - 25 /* Lookahead.Margin */ ) this.setLookAhead(this.pos);
20330
20331
  var dPrec = parser.dynamicPrecedence(type);
20331
20332
  if (dPrec) this.score += dPrec;
20332
20333
  if (depth == 0) {
@@ -21279,7 +21280,7 @@ function cutAt(tree, pos, side) {
21279
21280
  cursor.moveTo(pos);
21280
21281
  for(;;){
21281
21282
  if (!(side < 0 ? cursor.childBefore(pos) : cursor.childAfter(pos))) for(;;){
21282
- 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 */ ));
21283
+ 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 */ ));
21283
21284
  if (side < 0 ? cursor.prevSibling() : cursor.nextSibling()) break;
21284
21285
  if (!cursor.parent()) return side < 0 ? 0 : tree.length;
21285
21286
  }
@@ -21347,7 +21348,7 @@ var FragmentCursor = /*#__PURE__*/ function() {
21347
21348
  this.nextStart = start;
21348
21349
  return null;
21349
21350
  }
21350
- if (_instanceof$c(next, Tree)) {
21351
+ if (_instanceof$b(next, Tree)) {
21351
21352
  if (start == pos) {
21352
21353
  if (start < this.safeFrom) return null;
21353
21354
  var end = start + next.length;
@@ -21402,7 +21403,7 @@ var TokenCache = /*#__PURE__*/ function() {
21402
21403
  token.mask = mask;
21403
21404
  token.context = context;
21404
21405
  }
21405
- if (token.lookAhead > token.end + 25 /* Safety.Margin */ ) lookAhead = Math.max(token.lookAhead, lookAhead);
21406
+ if (token.lookAhead > token.end + 25 /* Lookahead.Margin */ ) lookAhead = Math.max(token.lookAhead, lookAhead);
21406
21407
  if (token.value != 0 /* Term.Err */ ) {
21407
21408
  var startIndex = actionIndex;
21408
21409
  if (token.extended > -1) actionIndex = this.addActions(stack, token.extended, token.end, actionIndex);
@@ -21650,9 +21651,9 @@ var Parse = /*#__PURE__*/ function() {
21650
21651
  if (verbose) console.log(base + this.stackID(stack) + " (via reuse of ".concat(parser.getName(cached.type.id), ")"));
21651
21652
  return true;
21652
21653
  }
21653
- if (!_instanceof$c(cached, Tree) || cached.children.length == 0 || cached.positions[0] > 0) break;
21654
+ if (!_instanceof$b(cached, Tree) || cached.children.length == 0 || cached.positions[0] > 0) break;
21654
21655
  var inner = cached.children[0];
21655
- if (_instanceof$c(inner, Tree) && cached.positions[0] == 0) cached = inner;
21656
+ if (_instanceof$b(inner, Tree) && cached.positions[0] == 0) cached = inner;
21656
21657
  else break;
21657
21658
  }
21658
21659
  }
@@ -23226,7 +23227,7 @@ function _define_property$1(obj, key, value) {
23226
23227
  }
23227
23228
  return obj;
23228
23229
  }
23229
- function _instanceof$b(left, right) {
23230
+ function _instanceof$a(left, right) {
23230
23231
  if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
23231
23232
  return !!right[Symbol.hasInstance](left);
23232
23233
  } else {
@@ -23493,14 +23494,14 @@ function indent(str, spaces) {
23493
23494
  var match = parseIdentifier(input, i1, namePart) || namePart && parseAdditionalSymbol(input, i1) || maybeSpace && parseSpaces(input, i1);
23494
23495
  // match is required
23495
23496
  if (!match) {
23496
- return nextMatch = nextMatch1, i = i1, tokens = tokens1, {
23497
+ return i = i1, tokens = tokens1, nextMatch = nextMatch1, {
23497
23498
  v: nextMatch1
23498
23499
  };
23499
23500
  }
23500
23501
  var token = match.token, offset = match.offset;
23501
23502
  i1 += offset;
23502
23503
  if (token === " ") {
23503
- return nextMatch = nextMatch1, i = i1, tokens = tokens1, "continue";
23504
+ return i = i1, tokens = tokens1, nextMatch = nextMatch1, "continue";
23504
23505
  }
23505
23506
  tokens1 = _to_consumable_array$3(tokens1).concat([
23506
23507
  token
@@ -23519,7 +23520,7 @@ function indent(str, spaces) {
23519
23520
  if (contextKeys.some(function(el) {
23520
23521
  return el.startsWith(name);
23521
23522
  })) {
23522
- return nextMatch = nextMatch1, i = i1, tokens = tokens1, "continue";
23523
+ return i = i1, tokens = tokens1, nextMatch = nextMatch1, "continue";
23523
23524
  }
23524
23525
  if (dateTimeIdentifiers.some(function(el) {
23525
23526
  return el === name;
@@ -23538,9 +23539,9 @@ function indent(str, spaces) {
23538
23539
  if (dateTimeIdentifiers.some(function(el) {
23539
23540
  return el.startsWith(name);
23540
23541
  })) {
23541
- return nextMatch = nextMatch1, i = i1, tokens = tokens1, "continue";
23542
+ return i = i1, tokens = tokens1, nextMatch = nextMatch1, "continue";
23542
23543
  }
23543
- return nextMatch = nextMatch1, i = i1, tokens = tokens1, {
23544
+ return i = i1, tokens = tokens1, nextMatch = nextMatch1, {
23544
23545
  v: nextMatch1
23545
23546
  };
23546
23547
  };
@@ -23703,7 +23704,7 @@ var dateTimeIdentifiers = Object.keys(dateTimeLiterals);
23703
23704
  * @param {any} value
23704
23705
  * @returns {Boolean}
23705
23706
  */ function isAtomic(value) {
23706
- return !value || _instanceof$b(value, this) || _instanceof$b(value, ValueProducer) || typeof value !== "object";
23707
+ return !value || _instanceof$a(value, this) || _instanceof$a(value, ValueProducer) || typeof value !== "object";
23707
23708
  }
23708
23709
  },
23709
23710
  {
@@ -23722,7 +23723,7 @@ var dateTimeIdentifiers = Object.keys(dateTimeLiterals);
23722
23723
  if (!context || typeof context !== "object") {
23723
23724
  return {};
23724
23725
  }
23725
- if (_instanceof$b(context, _this)) {
23726
+ if (_instanceof$a(context, _this)) {
23726
23727
  return context.value;
23727
23728
  }
23728
23729
  return _object_spread({}, context);
@@ -23841,7 +23842,7 @@ var Variables = /*#__PURE__*/ function() {
23841
23842
  return undefined;
23842
23843
  }
23843
23844
  var val = this.context.get(contextKey);
23844
- if (_instanceof$b(val, ValueProducer)) {
23845
+ if (_instanceof$a(val, ValueProducer)) {
23845
23846
  return val.get(this);
23846
23847
  } else {
23847
23848
  return val;
@@ -24343,6 +24344,7 @@ var parser = LRParser.deserialize({
24343
24344
  },
24344
24345
  dynamicPrecedences: {
24345
24346
  "31": -1,
24347
+ "67": 1,
24346
24348
  "71": -1,
24347
24349
  "73": -1
24348
24350
  },
@@ -24442,7 +24444,7 @@ function _inherits(subClass, superClass) {
24442
24444
  });
24443
24445
  if (superClass) _set_prototype_of(subClass, superClass);
24444
24446
  }
24445
- function _instanceof$a(left, right) {
24447
+ function _instanceof$9(left, right) {
24446
24448
  if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
24447
24449
  return !!right[Symbol.hasInstance](left);
24448
24450
  } else {
@@ -24615,10 +24617,10 @@ function getType(e) {
24615
24617
  }
24616
24618
  return "date time";
24617
24619
  }
24618
- if (_instanceof$a(e, Range$c)) {
24620
+ if (_instanceof$9(e, Range$c)) {
24619
24621
  return "range";
24620
24622
  }
24621
- if (_instanceof$a(e, FunctionWrapper)) {
24623
+ if (_instanceof$9(e, FunctionWrapper)) {
24622
24624
  return "function";
24623
24625
  }
24624
24626
  return "literal";
@@ -25880,13 +25882,13 @@ function createArgsValidator(argDefinitions) {
25880
25882
  * @param {Range|number} a
25881
25883
  * @param {Range|number} b
25882
25884
  */ function before$1(a, b) {
25883
- if (_instanceof$a(a, Range$c) && _instanceof$a(b, Range$c)) {
25885
+ if (_instanceof$9(a, Range$c) && _instanceof$9(b, Range$c)) {
25884
25886
  return a.end < b.start || (!a["end included"] || !b["start included"]) && a.end == b.start;
25885
25887
  }
25886
- if (_instanceof$a(a, Range$c)) {
25888
+ if (_instanceof$9(a, Range$c)) {
25887
25889
  return a.end < b || !a["end included"] && a.end === b;
25888
25890
  }
25889
- if (_instanceof$a(b, Range$c)) {
25891
+ if (_instanceof$9(b, Range$c)) {
25890
25892
  return b.start > a || !b["start included"] && b.start === a;
25891
25893
  }
25892
25894
  return a < b;
@@ -26552,7 +26554,7 @@ function evalNode(node, input, args) {
26552
26554
  return tag(function(context) {
26553
26555
  var a = args[0](context);
26554
26556
  var b = args[3](context);
26555
- return _instanceof$a(a, b);
26557
+ return _instanceof$9(a, b);
26556
26558
  }, Test("boolean"));
26557
26559
  case "every":
26558
26560
  return tag(function(context) {
@@ -26829,7 +26831,7 @@ function evalNode(node, input, args) {
26829
26831
  if (typeof result === "function") {
26830
26832
  result = result(el);
26831
26833
  }
26832
- if (_instanceof$a(result, Range$c)) {
26834
+ if (_instanceof$9(result, Range$c)) {
26833
26835
  result = result.includes(el);
26834
26836
  }
26835
26837
  if (result === true) {
@@ -26931,7 +26933,7 @@ function compareValue(test, value) {
26931
26933
  if (typeof test === "function") {
26932
26934
  return test(value);
26933
26935
  }
26934
- if (_instanceof$a(test, Range$c)) {
26936
+ if (_instanceof$9(test, Range$c)) {
26935
26937
  return test.includes(value);
26936
26938
  }
26937
26939
  return equals(test, value);
@@ -27232,10 +27234,10 @@ function Test(type) {
27232
27234
  if (!fn) {
27233
27235
  return null;
27234
27236
  }
27235
- if (_instanceof$a(fn, FunctionWrapper)) {
27237
+ if (_instanceof$9(fn, FunctionWrapper)) {
27236
27238
  return fn;
27237
27239
  }
27238
- if (_instanceof$a(fn, Range$c)) {
27240
+ if (_instanceof$9(fn, Range$c)) {
27239
27241
  return new FunctionWrapper(function(value) {
27240
27242
  return fn.includes(value);
27241
27243
  }, [
@@ -28737,7 +28739,7 @@ function _create_class$3(Constructor, protoProps, staticProps) {
28737
28739
  if (staticProps) _defineProperties$3(Constructor, staticProps);
28738
28740
  return Constructor;
28739
28741
  }
28740
- function _instanceof$9(left, right) {
28742
+ function _instanceof$8(left, right) {
28741
28743
  if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
28742
28744
  return !!right[Symbol.hasInstance](left);
28743
28745
  } else {
@@ -28757,7 +28759,7 @@ var SemVer$f = /*#__PURE__*/ function() {
28757
28759
  function SemVer(version, options) {
28758
28760
  _class_call_check$3(this, SemVer);
28759
28761
  options = parseOptions$2(options);
28760
- if (_instanceof$9(version, SemVer)) {
28762
+ if (_instanceof$8(version, SemVer)) {
28761
28763
  if (version.loose === !!options.loose && version.includePrerelease === !!options.includePrerelease) {
28762
28764
  return version;
28763
28765
  } else {
@@ -28831,7 +28833,7 @@ var SemVer$f = /*#__PURE__*/ function() {
28831
28833
  key: "compare",
28832
28834
  value: function compare(other) {
28833
28835
  debug$2("SemVer.compare", this.version, this.options, other);
28834
- if (!_instanceof$9(other, SemVer)) {
28836
+ if (!_instanceof$8(other, SemVer)) {
28835
28837
  if (typeof other === "string" && other === this.version) {
28836
28838
  return 0;
28837
28839
  }
@@ -28846,7 +28848,7 @@ var SemVer$f = /*#__PURE__*/ function() {
28846
28848
  {
28847
28849
  key: "compareMain",
28848
28850
  value: function compareMain(other) {
28849
- if (!_instanceof$9(other, SemVer)) {
28851
+ if (!_instanceof$8(other, SemVer)) {
28850
28852
  other = new SemVer(other, this.options);
28851
28853
  }
28852
28854
  return compareIdentifiers(this.major, other.major) || compareIdentifiers(this.minor, other.minor) || compareIdentifiers(this.patch, other.patch);
@@ -28855,7 +28857,7 @@ var SemVer$f = /*#__PURE__*/ function() {
28855
28857
  {
28856
28858
  key: "comparePre",
28857
28859
  value: function comparePre(other) {
28858
- if (!_instanceof$9(other, SemVer)) {
28860
+ if (!_instanceof$8(other, SemVer)) {
28859
28861
  other = new SemVer(other, this.options);
28860
28862
  }
28861
28863
  // NOT having a prerelease is > having one
@@ -28888,14 +28890,14 @@ var SemVer$f = /*#__PURE__*/ function() {
28888
28890
  {
28889
28891
  key: "compareBuild",
28890
28892
  value: function compareBuild(other) {
28891
- if (!_instanceof$9(other, SemVer)) {
28893
+ if (!_instanceof$8(other, SemVer)) {
28892
28894
  other = new SemVer(other, this.options);
28893
28895
  }
28894
28896
  var i = 0;
28895
28897
  do {
28896
28898
  var a = this.build[i];
28897
28899
  var b = other.build[i];
28898
- debug$2("prerelease compare", i, a, b);
28900
+ debug$2("build compare", i, a, b);
28899
28901
  if (a === undefined && b === undefined) {
28900
28902
  return 0;
28901
28903
  } else if (b === undefined) {
@@ -29043,7 +29045,7 @@ var SemVer$f = /*#__PURE__*/ function() {
29043
29045
  }();
29044
29046
  var semver$4 = SemVer$f;
29045
29047
 
29046
- function _instanceof$8(left, right) {
29048
+ function _instanceof$7(left, right) {
29047
29049
  if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
29048
29050
  return !!right[Symbol.hasInstance](left);
29049
29051
  } else {
@@ -29053,7 +29055,7 @@ function _instanceof$8(left, right) {
29053
29055
  var SemVer$e = semver$4;
29054
29056
  var parse$6 = function(version, options) {
29055
29057
  var throwErrors = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : false;
29056
- if (_instanceof$8(version, SemVer$e)) {
29058
+ if (_instanceof$7(version, SemVer$e)) {
29057
29059
  return version;
29058
29060
  }
29059
29061
  try {
@@ -29081,7 +29083,7 @@ var clean$1 = function(version, options) {
29081
29083
  };
29082
29084
  var clean_1 = clean$1;
29083
29085
 
29084
- function _instanceof$7(left, right) {
29086
+ function _instanceof$6(left, right) {
29085
29087
  if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
29086
29088
  return !!right[Symbol.hasInstance](left);
29087
29089
  } else {
@@ -29096,7 +29098,7 @@ var inc$1 = function(version, release, options, identifier, identifierBase) {
29096
29098
  options = undefined;
29097
29099
  }
29098
29100
  try {
29099
- return new SemVer$d(_instanceof$7(version, SemVer$d) ? version.version : version, options).inc(release, identifier, identifierBase).version;
29101
+ return new SemVer$d(_instanceof$6(version, SemVer$d) ? version.version : version, options).inc(release, identifier, identifierBase).version;
29100
29102
  } catch (er) {
29101
29103
  return null;
29102
29104
  }
@@ -29301,7 +29303,7 @@ var cmp$2 = function(a, op, b, loose) {
29301
29303
  };
29302
29304
  var cmp_1 = cmp$2;
29303
29305
 
29304
- function _instanceof$6(left, right) {
29306
+ function _instanceof$5(left, right) {
29305
29307
  if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
29306
29308
  return !!right[Symbol.hasInstance](left);
29307
29309
  } else {
@@ -29312,7 +29314,7 @@ var SemVer$7 = semver$4;
29312
29314
  var parse$1 = parse_1;
29313
29315
  var _require$4 = re$4.exports, re$2 = _require$4.safeRe, t$2 = _require$4.t;
29314
29316
  var coerce$1 = function(version, options) {
29315
- if (_instanceof$6(version, SemVer$7)) {
29317
+ if (_instanceof$5(version, SemVer$7)) {
29316
29318
  return version;
29317
29319
  }
29318
29320
  if (typeof version === "number") {
@@ -29358,511 +29360,6 @@ var coerce$1 = function(version, options) {
29358
29360
  };
29359
29361
  var coerce_1 = coerce$1;
29360
29362
 
29361
- function _ts_generator(thisArg, body) {
29362
- var f, y, t, g, _ = {
29363
- label: 0,
29364
- sent: function() {
29365
- if (t[0] & 1) throw t[1];
29366
- return t[1];
29367
- },
29368
- trys: [],
29369
- ops: []
29370
- };
29371
- return g = {
29372
- next: verb(0),
29373
- "throw": verb(1),
29374
- "return": verb(2)
29375
- }, typeof Symbol === "function" && (g[Symbol.iterator] = function() {
29376
- return this;
29377
- }), g;
29378
- function verb(n) {
29379
- return function(v) {
29380
- return step([
29381
- n,
29382
- v
29383
- ]);
29384
- };
29385
- }
29386
- function step(op) {
29387
- if (f) throw new TypeError("Generator is already executing.");
29388
- while(_)try {
29389
- 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;
29390
- if (y = 0, t) op = [
29391
- op[0] & 2,
29392
- t.value
29393
- ];
29394
- switch(op[0]){
29395
- case 0:
29396
- case 1:
29397
- t = op;
29398
- break;
29399
- case 4:
29400
- _.label++;
29401
- return {
29402
- value: op[1],
29403
- done: false
29404
- };
29405
- case 5:
29406
- _.label++;
29407
- y = op[1];
29408
- op = [
29409
- 0
29410
- ];
29411
- continue;
29412
- case 7:
29413
- op = _.ops.pop();
29414
- _.trys.pop();
29415
- continue;
29416
- default:
29417
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
29418
- _ = 0;
29419
- continue;
29420
- }
29421
- if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
29422
- _.label = op[1];
29423
- break;
29424
- }
29425
- if (op[0] === 6 && _.label < t[1]) {
29426
- _.label = t[1];
29427
- t = op;
29428
- break;
29429
- }
29430
- if (t && _.label < t[2]) {
29431
- _.label = t[2];
29432
- _.ops.push(op);
29433
- break;
29434
- }
29435
- if (t[2]) _.ops.pop();
29436
- _.trys.pop();
29437
- continue;
29438
- }
29439
- op = body.call(thisArg, _);
29440
- } catch (e) {
29441
- op = [
29442
- 6,
29443
- e
29444
- ];
29445
- y = 0;
29446
- } finally{
29447
- f = t = 0;
29448
- }
29449
- if (op[0] & 5) throw op[1];
29450
- return {
29451
- value: op[0] ? op[1] : void 0,
29452
- done: true
29453
- };
29454
- }
29455
- }
29456
- var iterator = function(Yallist) {
29457
- Yallist.prototype[Symbol.iterator] = function() {
29458
- var walker;
29459
- return _ts_generator(this, function(_state) {
29460
- switch(_state.label){
29461
- case 0:
29462
- walker = this.head;
29463
- _state.label = 1;
29464
- case 1:
29465
- if (!walker) return [
29466
- 3,
29467
- 4
29468
- ];
29469
- return [
29470
- 4,
29471
- walker.value
29472
- ];
29473
- case 2:
29474
- _state.sent();
29475
- _state.label = 3;
29476
- case 3:
29477
- walker = walker.next;
29478
- return [
29479
- 3,
29480
- 1
29481
- ];
29482
- case 4:
29483
- return [
29484
- 2
29485
- ];
29486
- }
29487
- });
29488
- };
29489
- };
29490
-
29491
- function _instanceof$5(left, right) {
29492
- if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
29493
- return !!right[Symbol.hasInstance](left);
29494
- } else {
29495
- return left instanceof right;
29496
- }
29497
- }
29498
- var yallist = Yallist$1;
29499
- Yallist$1.Node = Node;
29500
- Yallist$1.create = Yallist$1;
29501
- function Yallist$1(list) {
29502
- var self = this;
29503
- if (!_instanceof$5(self, Yallist$1)) {
29504
- self = new Yallist$1();
29505
- }
29506
- self.tail = null;
29507
- self.head = null;
29508
- self.length = 0;
29509
- if (list && typeof list.forEach === "function") {
29510
- list.forEach(function(item) {
29511
- self.push(item);
29512
- });
29513
- } else if (arguments.length > 0) {
29514
- for(var i = 0, l = arguments.length; i < l; i++){
29515
- self.push(arguments[i]);
29516
- }
29517
- }
29518
- return self;
29519
- }
29520
- Yallist$1.prototype.removeNode = function(node) {
29521
- if (node.list !== this) {
29522
- throw new Error("removing node which does not belong to this list");
29523
- }
29524
- var next = node.next;
29525
- var prev = node.prev;
29526
- if (next) {
29527
- next.prev = prev;
29528
- }
29529
- if (prev) {
29530
- prev.next = next;
29531
- }
29532
- if (node === this.head) {
29533
- this.head = next;
29534
- }
29535
- if (node === this.tail) {
29536
- this.tail = prev;
29537
- }
29538
- node.list.length--;
29539
- node.next = null;
29540
- node.prev = null;
29541
- node.list = null;
29542
- return next;
29543
- };
29544
- Yallist$1.prototype.unshiftNode = function(node) {
29545
- if (node === this.head) {
29546
- return;
29547
- }
29548
- if (node.list) {
29549
- node.list.removeNode(node);
29550
- }
29551
- var head = this.head;
29552
- node.list = this;
29553
- node.next = head;
29554
- if (head) {
29555
- head.prev = node;
29556
- }
29557
- this.head = node;
29558
- if (!this.tail) {
29559
- this.tail = node;
29560
- }
29561
- this.length++;
29562
- };
29563
- Yallist$1.prototype.pushNode = function(node) {
29564
- if (node === this.tail) {
29565
- return;
29566
- }
29567
- if (node.list) {
29568
- node.list.removeNode(node);
29569
- }
29570
- var tail = this.tail;
29571
- node.list = this;
29572
- node.prev = tail;
29573
- if (tail) {
29574
- tail.next = node;
29575
- }
29576
- this.tail = node;
29577
- if (!this.head) {
29578
- this.head = node;
29579
- }
29580
- this.length++;
29581
- };
29582
- Yallist$1.prototype.push = function() {
29583
- for(var i = 0, l = arguments.length; i < l; i++){
29584
- push(this, arguments[i]);
29585
- }
29586
- return this.length;
29587
- };
29588
- Yallist$1.prototype.unshift = function() {
29589
- for(var i = 0, l = arguments.length; i < l; i++){
29590
- unshift(this, arguments[i]);
29591
- }
29592
- return this.length;
29593
- };
29594
- Yallist$1.prototype.pop = function() {
29595
- if (!this.tail) {
29596
- return undefined;
29597
- }
29598
- var res = this.tail.value;
29599
- this.tail = this.tail.prev;
29600
- if (this.tail) {
29601
- this.tail.next = null;
29602
- } else {
29603
- this.head = null;
29604
- }
29605
- this.length--;
29606
- return res;
29607
- };
29608
- Yallist$1.prototype.shift = function() {
29609
- if (!this.head) {
29610
- return undefined;
29611
- }
29612
- var res = this.head.value;
29613
- this.head = this.head.next;
29614
- if (this.head) {
29615
- this.head.prev = null;
29616
- } else {
29617
- this.tail = null;
29618
- }
29619
- this.length--;
29620
- return res;
29621
- };
29622
- Yallist$1.prototype.forEach = function(fn, thisp) {
29623
- thisp = thisp || this;
29624
- for(var walker = this.head, i = 0; walker !== null; i++){
29625
- fn.call(thisp, walker.value, i, this);
29626
- walker = walker.next;
29627
- }
29628
- };
29629
- Yallist$1.prototype.forEachReverse = function(fn, thisp) {
29630
- thisp = thisp || this;
29631
- for(var walker = this.tail, i = this.length - 1; walker !== null; i--){
29632
- fn.call(thisp, walker.value, i, this);
29633
- walker = walker.prev;
29634
- }
29635
- };
29636
- Yallist$1.prototype.get = function(n) {
29637
- for(var i = 0, walker = this.head; walker !== null && i < n; i++){
29638
- // abort out of the list early if we hit a cycle
29639
- walker = walker.next;
29640
- }
29641
- if (i === n && walker !== null) {
29642
- return walker.value;
29643
- }
29644
- };
29645
- Yallist$1.prototype.getReverse = function(n) {
29646
- for(var i = 0, walker = this.tail; walker !== null && i < n; i++){
29647
- // abort out of the list early if we hit a cycle
29648
- walker = walker.prev;
29649
- }
29650
- if (i === n && walker !== null) {
29651
- return walker.value;
29652
- }
29653
- };
29654
- Yallist$1.prototype.map = function(fn, thisp) {
29655
- thisp = thisp || this;
29656
- var res = new Yallist$1();
29657
- for(var walker = this.head; walker !== null;){
29658
- res.push(fn.call(thisp, walker.value, this));
29659
- walker = walker.next;
29660
- }
29661
- return res;
29662
- };
29663
- Yallist$1.prototype.mapReverse = function(fn, thisp) {
29664
- thisp = thisp || this;
29665
- var res = new Yallist$1();
29666
- for(var walker = this.tail; walker !== null;){
29667
- res.push(fn.call(thisp, walker.value, this));
29668
- walker = walker.prev;
29669
- }
29670
- return res;
29671
- };
29672
- Yallist$1.prototype.reduce = function(fn, initial) {
29673
- var acc;
29674
- var walker = this.head;
29675
- if (arguments.length > 1) {
29676
- acc = initial;
29677
- } else if (this.head) {
29678
- walker = this.head.next;
29679
- acc = this.head.value;
29680
- } else {
29681
- throw new TypeError("Reduce of empty list with no initial value");
29682
- }
29683
- for(var i = 0; walker !== null; i++){
29684
- acc = fn(acc, walker.value, i);
29685
- walker = walker.next;
29686
- }
29687
- return acc;
29688
- };
29689
- Yallist$1.prototype.reduceReverse = function(fn, initial) {
29690
- var acc;
29691
- var walker = this.tail;
29692
- if (arguments.length > 1) {
29693
- acc = initial;
29694
- } else if (this.tail) {
29695
- walker = this.tail.prev;
29696
- acc = this.tail.value;
29697
- } else {
29698
- throw new TypeError("Reduce of empty list with no initial value");
29699
- }
29700
- for(var i = this.length - 1; walker !== null; i--){
29701
- acc = fn(acc, walker.value, i);
29702
- walker = walker.prev;
29703
- }
29704
- return acc;
29705
- };
29706
- Yallist$1.prototype.toArray = function() {
29707
- var arr = new Array(this.length);
29708
- for(var i = 0, walker = this.head; walker !== null; i++){
29709
- arr[i] = walker.value;
29710
- walker = walker.next;
29711
- }
29712
- return arr;
29713
- };
29714
- Yallist$1.prototype.toArrayReverse = function() {
29715
- var arr = new Array(this.length);
29716
- for(var i = 0, walker = this.tail; walker !== null; i++){
29717
- arr[i] = walker.value;
29718
- walker = walker.prev;
29719
- }
29720
- return arr;
29721
- };
29722
- Yallist$1.prototype.slice = function(from, to) {
29723
- to = to || this.length;
29724
- if (to < 0) {
29725
- to += this.length;
29726
- }
29727
- from = from || 0;
29728
- if (from < 0) {
29729
- from += this.length;
29730
- }
29731
- var ret = new Yallist$1();
29732
- if (to < from || to < 0) {
29733
- return ret;
29734
- }
29735
- if (from < 0) {
29736
- from = 0;
29737
- }
29738
- if (to > this.length) {
29739
- to = this.length;
29740
- }
29741
- for(var i = 0, walker = this.head; walker !== null && i < from; i++){
29742
- walker = walker.next;
29743
- }
29744
- for(; walker !== null && i < to; i++, walker = walker.next){
29745
- ret.push(walker.value);
29746
- }
29747
- return ret;
29748
- };
29749
- Yallist$1.prototype.sliceReverse = function(from, to) {
29750
- to = to || this.length;
29751
- if (to < 0) {
29752
- to += this.length;
29753
- }
29754
- from = from || 0;
29755
- if (from < 0) {
29756
- from += this.length;
29757
- }
29758
- var ret = new Yallist$1();
29759
- if (to < from || to < 0) {
29760
- return ret;
29761
- }
29762
- if (from < 0) {
29763
- from = 0;
29764
- }
29765
- if (to > this.length) {
29766
- to = this.length;
29767
- }
29768
- for(var i = this.length, walker = this.tail; walker !== null && i > to; i--){
29769
- walker = walker.prev;
29770
- }
29771
- for(; walker !== null && i > from; i--, walker = walker.prev){
29772
- ret.push(walker.value);
29773
- }
29774
- return ret;
29775
- };
29776
- Yallist$1.prototype.splice = function(start, deleteCount) {
29777
- for(var _len = arguments.length, nodes = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++){
29778
- nodes[_key - 2] = arguments[_key];
29779
- }
29780
- if (start > this.length) {
29781
- start = this.length - 1;
29782
- }
29783
- if (start < 0) {
29784
- start = this.length + start;
29785
- }
29786
- for(var i = 0, walker = this.head; walker !== null && i < start; i++){
29787
- walker = walker.next;
29788
- }
29789
- var ret = [];
29790
- for(var i = 0; walker && i < deleteCount; i++){
29791
- ret.push(walker.value);
29792
- walker = this.removeNode(walker);
29793
- }
29794
- if (walker === null) {
29795
- walker = this.tail;
29796
- }
29797
- if (walker !== this.head && walker !== this.tail) {
29798
- walker = walker.prev;
29799
- }
29800
- for(var i = 0; i < nodes.length; i++){
29801
- walker = insert(this, walker, nodes[i]);
29802
- }
29803
- return ret;
29804
- };
29805
- Yallist$1.prototype.reverse = function() {
29806
- var head = this.head;
29807
- var tail = this.tail;
29808
- for(var walker = head; walker !== null; walker = walker.prev){
29809
- var p = walker.prev;
29810
- walker.prev = walker.next;
29811
- walker.next = p;
29812
- }
29813
- this.head = tail;
29814
- this.tail = head;
29815
- return this;
29816
- };
29817
- function insert(self, node, value) {
29818
- var inserted = node === self.head ? new Node(value, null, node, self) : new Node(value, node, node.next, self);
29819
- if (inserted.next === null) {
29820
- self.tail = inserted;
29821
- }
29822
- if (inserted.prev === null) {
29823
- self.head = inserted;
29824
- }
29825
- self.length++;
29826
- return inserted;
29827
- }
29828
- function push(self, item) {
29829
- self.tail = new Node(item, self.tail, null, self);
29830
- if (!self.head) {
29831
- self.head = self.tail;
29832
- }
29833
- self.length++;
29834
- }
29835
- function unshift(self, item) {
29836
- self.head = new Node(item, null, self.head, self);
29837
- if (!self.tail) {
29838
- self.tail = self.head;
29839
- }
29840
- self.length++;
29841
- }
29842
- function Node(value, prev, next, list) {
29843
- if (!_instanceof$5(this, Node)) {
29844
- return new Node(value, prev, next, list);
29845
- }
29846
- this.list = list;
29847
- this.value = value;
29848
- if (prev) {
29849
- prev.next = this;
29850
- this.prev = prev;
29851
- } else {
29852
- this.prev = null;
29853
- }
29854
- if (next) {
29855
- next.prev = this;
29856
- this.next = next;
29857
- } else {
29858
- this.next = null;
29859
- }
29860
- }
29861
- try {
29862
- // add if support for Symbol.iterator is present
29863
- iterator(Yallist$1);
29864
- } catch (er) {}
29865
-
29866
29363
  function _class_call_check$2(instance, Constructor) {
29867
29364
  if (!(instance instanceof Constructor)) {
29868
29365
  throw new TypeError("Cannot call a class as a function");
@@ -29882,361 +29379,53 @@ function _create_class$2(Constructor, protoProps, staticProps) {
29882
29379
  if (staticProps) _defineProperties$2(Constructor, staticProps);
29883
29380
  return Constructor;
29884
29381
  }
29885
- // A linked list to keep track of recently-used-ness
29886
- var Yallist = yallist;
29887
- var MAX = Symbol("max");
29888
- var LENGTH = Symbol("length");
29889
- var LENGTH_CALCULATOR = Symbol("lengthCalculator");
29890
- var ALLOW_STALE = Symbol("allowStale");
29891
- var MAX_AGE = Symbol("maxAge");
29892
- var DISPOSE = Symbol("dispose");
29893
- var NO_DISPOSE_ON_SET = Symbol("noDisposeOnSet");
29894
- var LRU_LIST = Symbol("lruList");
29895
- var CACHE = Symbol("cache");
29896
- var UPDATE_AGE_ON_GET = Symbol("updateAgeOnGet");
29897
- var naiveLength = function() {
29898
- return 1;
29899
- };
29900
- // lruList is a yallist where the head is the youngest
29901
- // item, and the tail is the oldest. the list contains the Hit
29902
- // objects as the entries.
29903
- // Each Hit object has a reference to its Yallist.Node. This
29904
- // never changes.
29905
- //
29906
- // cache is a Map (or PseudoMap) that matches the keys to
29907
- // the Yallist.Node object.
29908
29382
  var LRUCache = /*#__PURE__*/ function() {
29909
- function LRUCache(options) {
29383
+ function LRUCache() {
29910
29384
  _class_call_check$2(this, LRUCache);
29911
- if (typeof options === "number") options = {
29912
- max: options
29913
- };
29914
- if (!options) options = {};
29915
- if (options.max && (typeof options.max !== "number" || options.max < 0)) throw new TypeError("max must be a non-negative number");
29916
- // Kind of weird to have a default max of Infinity, but oh well.
29917
- this[MAX] = options.max || Infinity;
29918
- var lc = options.length || naiveLength;
29919
- this[LENGTH_CALCULATOR] = typeof lc !== "function" ? naiveLength : lc;
29920
- this[ALLOW_STALE] = options.stale || false;
29921
- if (options.maxAge && typeof options.maxAge !== "number") throw new TypeError("maxAge must be a number");
29922
- this[MAX_AGE] = options.maxAge || 0;
29923
- this[DISPOSE] = options.dispose;
29924
- this[NO_DISPOSE_ON_SET] = options.noDisposeOnSet || false;
29925
- this[UPDATE_AGE_ON_GET] = options.updateAgeOnGet || false;
29926
- this.reset();
29385
+ this.max = 1000;
29386
+ this.map = new Map();
29927
29387
  }
29928
29388
  _create_class$2(LRUCache, [
29929
29389
  {
29930
- key: "max",
29931
- get: function get() {
29932
- return this[MAX];
29933
- },
29934
- set: // resize the cache when the max changes.
29935
- function set(mL) {
29936
- if (typeof mL !== "number" || mL < 0) throw new TypeError("max must be a non-negative number");
29937
- this[MAX] = mL || Infinity;
29938
- trim(this);
29939
- }
29940
- },
29941
- {
29942
- key: "allowStale",
29943
- get: function get() {
29944
- return this[ALLOW_STALE];
29945
- },
29946
- set: function set(allowStale) {
29947
- this[ALLOW_STALE] = !!allowStale;
29948
- }
29949
- },
29950
- {
29951
- key: "maxAge",
29952
- get: function get() {
29953
- return this[MAX_AGE];
29954
- },
29955
- set: function set(mA) {
29956
- if (typeof mA !== "number") throw new TypeError("maxAge must be a non-negative number");
29957
- this[MAX_AGE] = mA;
29958
- trim(this);
29959
- }
29960
- },
29961
- {
29962
- key: "lengthCalculator",
29963
- get: function get() {
29964
- return this[LENGTH_CALCULATOR];
29965
- },
29966
- set: // resize the cache when the lengthCalculator changes.
29967
- function set(lC) {
29968
- var _this = this;
29969
- if (typeof lC !== "function") lC = naiveLength;
29970
- if (lC !== this[LENGTH_CALCULATOR]) {
29971
- this[LENGTH_CALCULATOR] = lC;
29972
- this[LENGTH] = 0;
29973
- this[LRU_LIST].forEach(function(hit) {
29974
- hit.length = _this[LENGTH_CALCULATOR](hit.value, hit.key);
29975
- _this[LENGTH] += hit.length;
29976
- });
29977
- }
29978
- trim(this);
29979
- }
29980
- },
29981
- {
29982
- key: "length",
29983
- get: function get() {
29984
- return this[LENGTH];
29985
- }
29986
- },
29987
- {
29988
- key: "itemCount",
29989
- get: function get() {
29990
- return this[LRU_LIST].length;
29991
- }
29992
- },
29993
- {
29994
- key: "rforEach",
29995
- value: function rforEach(fn, thisp) {
29996
- thisp = thisp || this;
29997
- for(var walker = this[LRU_LIST].tail; walker !== null;){
29998
- var prev = walker.prev;
29999
- forEachStep(this, fn, walker, thisp);
30000
- walker = prev;
30001
- }
30002
- }
30003
- },
30004
- {
30005
- key: "forEach",
30006
- value: function forEach(fn, thisp) {
30007
- thisp = thisp || this;
30008
- for(var walker = this[LRU_LIST].head; walker !== null;){
30009
- var next = walker.next;
30010
- forEachStep(this, fn, walker, thisp);
30011
- walker = next;
30012
- }
30013
- }
30014
- },
30015
- {
30016
- key: "keys",
30017
- value: function keys() {
30018
- return this[LRU_LIST].toArray().map(function(k) {
30019
- return k.key;
30020
- });
30021
- }
30022
- },
30023
- {
30024
- key: "values",
30025
- value: function values() {
30026
- return this[LRU_LIST].toArray().map(function(k) {
30027
- return k.value;
30028
- });
30029
- }
30030
- },
30031
- {
30032
- key: "reset",
30033
- value: function reset() {
30034
- var _this = this;
30035
- if (this[DISPOSE] && this[LRU_LIST] && this[LRU_LIST].length) {
30036
- this[LRU_LIST].forEach(function(hit) {
30037
- return _this[DISPOSE](hit.key, hit.value);
30038
- });
29390
+ key: "get",
29391
+ value: function get(key) {
29392
+ var value = this.map.get(key);
29393
+ if (value === undefined) {
29394
+ return undefined;
29395
+ } else {
29396
+ // Remove the key from the map and add it to the end
29397
+ this.map.delete(key);
29398
+ this.map.set(key, value);
29399
+ return value;
30039
29400
  }
30040
- this[CACHE] = new Map() // hash of items by key
30041
- ;
30042
- this[LRU_LIST] = new Yallist() // list of items in order of use recency
30043
- ;
30044
- this[LENGTH] = 0 // length of items in the list
30045
- ;
30046
- }
30047
- },
30048
- {
30049
- key: "dump",
30050
- value: function dump() {
30051
- var _this = this;
30052
- return this[LRU_LIST].map(function(hit) {
30053
- return isStale(_this, hit) ? false : {
30054
- k: hit.key,
30055
- v: hit.value,
30056
- e: hit.now + (hit.maxAge || 0)
30057
- };
30058
- }).toArray().filter(function(h) {
30059
- return h;
30060
- });
30061
29401
  }
30062
29402
  },
30063
29403
  {
30064
- key: "dumpLru",
30065
- value: function dumpLru() {
30066
- return this[LRU_LIST];
29404
+ key: "delete",
29405
+ value: function _delete(key) {
29406
+ return this.map.delete(key);
30067
29407
  }
30068
29408
  },
30069
29409
  {
30070
29410
  key: "set",
30071
- value: function set(key, value, maxAge) {
30072
- maxAge = maxAge || this[MAX_AGE];
30073
- if (maxAge && typeof maxAge !== "number") throw new TypeError("maxAge must be a number");
30074
- var now = maxAge ? Date.now() : 0;
30075
- var len = this[LENGTH_CALCULATOR](value, key);
30076
- if (this[CACHE].has(key)) {
30077
- if (len > this[MAX]) {
30078
- del(this, this[CACHE].get(key));
30079
- return false;
30080
- }
30081
- var node = this[CACHE].get(key);
30082
- var item = node.value;
30083
- // dispose of the old one before overwriting
30084
- // split out into 2 ifs for better coverage tracking
30085
- if (this[DISPOSE]) {
30086
- if (!this[NO_DISPOSE_ON_SET]) this[DISPOSE](key, item.value);
30087
- }
30088
- item.now = now;
30089
- item.maxAge = maxAge;
30090
- item.value = value;
30091
- this[LENGTH] += len - item.length;
30092
- item.length = len;
30093
- this.get(key);
30094
- trim(this);
30095
- return true;
30096
- }
30097
- var hit = new Entry(key, value, len, now, maxAge);
30098
- // oversized objects fall out of cache automatically.
30099
- if (hit.length > this[MAX]) {
30100
- if (this[DISPOSE]) this[DISPOSE](key, value);
30101
- return false;
30102
- }
30103
- this[LENGTH] += hit.length;
30104
- this[LRU_LIST].unshift(hit);
30105
- this[CACHE].set(key, this[LRU_LIST].head);
30106
- trim(this);
30107
- return true;
30108
- }
30109
- },
30110
- {
30111
- key: "has",
30112
- value: function has(key) {
30113
- if (!this[CACHE].has(key)) return false;
30114
- var hit = this[CACHE].get(key).value;
30115
- return !isStale(this, hit);
30116
- }
30117
- },
30118
- {
30119
- key: "get",
30120
- value: function get1(key) {
30121
- return get(this, key, true);
30122
- }
30123
- },
30124
- {
30125
- key: "peek",
30126
- value: function peek(key) {
30127
- return get(this, key, false);
30128
- }
30129
- },
30130
- {
30131
- key: "pop",
30132
- value: function pop() {
30133
- var node = this[LRU_LIST].tail;
30134
- if (!node) return null;
30135
- del(this, node);
30136
- return node.value;
30137
- }
30138
- },
30139
- {
30140
- key: "del",
30141
- value: function del1(key) {
30142
- del(this, this[CACHE].get(key));
30143
- }
30144
- },
30145
- {
30146
- key: "load",
30147
- value: function load(arr) {
30148
- // reset the cache
30149
- this.reset();
30150
- var now = Date.now();
30151
- // A previous serialized cache has the most recent items first
30152
- for(var l = arr.length - 1; l >= 0; l--){
30153
- var hit = arr[l];
30154
- var expiresAt = hit.e || 0;
30155
- if (expiresAt === 0) // the item was created without expiration in a non aged cache
30156
- this.set(hit.k, hit.v);
30157
- else {
30158
- var maxAge = expiresAt - now;
30159
- // dont add already expired items
30160
- if (maxAge > 0) {
30161
- this.set(hit.k, hit.v, maxAge);
30162
- }
29411
+ value: function set(key, value) {
29412
+ var deleted = this.delete(key);
29413
+ if (!deleted && value !== undefined) {
29414
+ // If cache is full, delete the least recently used item
29415
+ if (this.map.size >= this.max) {
29416
+ var firstKey = this.map.keys().next().value;
29417
+ this.delete(firstKey);
30163
29418
  }
29419
+ this.map.set(key, value);
30164
29420
  }
30165
- }
30166
- },
30167
- {
30168
- key: "prune",
30169
- value: function prune() {
30170
- var _this = this;
30171
- this[CACHE].forEach(function(value, key) {
30172
- return get(_this, key, false);
30173
- });
29421
+ return this;
30174
29422
  }
30175
29423
  }
30176
29424
  ]);
30177
29425
  return LRUCache;
30178
29426
  }();
30179
- var get = function(self, key, doUse) {
30180
- var node = self[CACHE].get(key);
30181
- if (node) {
30182
- var hit = node.value;
30183
- if (isStale(self, hit)) {
30184
- del(self, node);
30185
- if (!self[ALLOW_STALE]) return undefined;
30186
- } else {
30187
- if (doUse) {
30188
- if (self[UPDATE_AGE_ON_GET]) node.value.now = Date.now();
30189
- self[LRU_LIST].unshiftNode(node);
30190
- }
30191
- }
30192
- return hit.value;
30193
- }
30194
- };
30195
- var isStale = function(self, hit) {
30196
- if (!hit || !hit.maxAge && !self[MAX_AGE]) return false;
30197
- var diff = Date.now() - hit.now;
30198
- return hit.maxAge ? diff > hit.maxAge : self[MAX_AGE] && diff > self[MAX_AGE];
30199
- };
30200
- var trim = function(self) {
30201
- if (self[LENGTH] > self[MAX]) {
30202
- for(var walker = self[LRU_LIST].tail; self[LENGTH] > self[MAX] && walker !== null;){
30203
- // We know that we're about to delete this one, and also
30204
- // what the next least recently used key will be, so just
30205
- // go ahead and set it now.
30206
- var prev = walker.prev;
30207
- del(self, walker);
30208
- walker = prev;
30209
- }
30210
- }
30211
- };
30212
- var del = function(self, node) {
30213
- if (node) {
30214
- var hit = node.value;
30215
- if (self[DISPOSE]) self[DISPOSE](hit.key, hit.value);
30216
- self[LENGTH] -= hit.length;
30217
- self[CACHE].delete(hit.key);
30218
- self[LRU_LIST].removeNode(node);
30219
- }
30220
- };
30221
- var Entry = function Entry(key, value, length, now, maxAge) {
30222
- _class_call_check$2(this, Entry);
30223
- this.key = key;
30224
- this.value = value;
30225
- this.length = length;
30226
- this.now = now;
30227
- this.maxAge = maxAge || 0;
30228
- };
30229
- var forEachStep = function(self, fn, node, thisp) {
30230
- var hit = node.value;
30231
- if (isStale(self, hit)) {
30232
- del(self, node);
30233
- if (!self[ALLOW_STALE]) hit = undefined;
30234
- }
30235
- if (hit) fn.call(thisp, hit.value, hit.key, self);
30236
- };
30237
- var lruCache = LRUCache;
29427
+ var lrucache = LRUCache;
30238
29428
 
30239
- // hoisted class for cyclic dependency
30240
29429
  function _array_like_to_array$1(arr, len) {
30241
29430
  if (len == null || len > arr.length) len = arr.length;
30242
29431
  for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
@@ -30288,6 +29477,8 @@ function _unsupported_iterable_to_array$1(o, minLen) {
30288
29477
  if (n === "Map" || n === "Set") return Array.from(n);
30289
29478
  if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$1(o, minLen);
30290
29479
  }
29480
+ var SPACE_CHARACTERS = /\s+/g;
29481
+ // hoisted class for cyclic dependency
30291
29482
  var Range$b = /*#__PURE__*/ function() {
30292
29483
  function Range(range, options) {
30293
29484
  var _this = this;
@@ -30308,7 +29499,7 @@ var Range$b = /*#__PURE__*/ function() {
30308
29499
  range
30309
29500
  ]
30310
29501
  ];
30311
- this.format();
29502
+ this.formatted = undefined;
30312
29503
  return this;
30313
29504
  }
30314
29505
  this.options = options;
@@ -30317,7 +29508,7 @@ var Range$b = /*#__PURE__*/ function() {
30317
29508
  // First reduce all whitespace as much as possible so we do not have to rely
30318
29509
  // on potentially slow regexes like \s*. This is then stored and used for
30319
29510
  // future error messages as well.
30320
- this.raw = range.trim().split(/\s+/).join(" ");
29511
+ this.raw = range.trim().replace(SPACE_CHARACTERS, " ");
30321
29512
  // First, split on ||
30322
29513
  this.set = this.raw.split("||")// map the range to a 2d array of comparators
30323
29514
  .map(function(r) {
@@ -30371,15 +29562,33 @@ var Range$b = /*#__PURE__*/ function() {
30371
29562
  }
30372
29563
  }
30373
29564
  }
30374
- this.format();
29565
+ this.formatted = undefined;
30375
29566
  }
30376
29567
  _create_class$1(Range, [
29568
+ {
29569
+ key: "range",
29570
+ get: function get() {
29571
+ if (this.formatted === undefined) {
29572
+ this.formatted = "";
29573
+ for(var i = 0; i < this.set.length; i++){
29574
+ if (i > 0) {
29575
+ this.formatted += "||";
29576
+ }
29577
+ var comps = this.set[i];
29578
+ for(var k = 0; k < comps.length; k++){
29579
+ if (k > 0) {
29580
+ this.formatted += " ";
29581
+ }
29582
+ this.formatted += comps[k].toString().trim();
29583
+ }
29584
+ }
29585
+ }
29586
+ return this.formatted;
29587
+ }
29588
+ },
30377
29589
  {
30378
29590
  key: "format",
30379
29591
  value: function format() {
30380
- this.range = this.set.map(function(comps) {
30381
- return comps.join(" ").trim();
30382
- }).join("||").trim();
30383
29592
  return this.range;
30384
29593
  }
30385
29594
  },
@@ -30514,10 +29723,8 @@ var Range$b = /*#__PURE__*/ function() {
30514
29723
  return Range;
30515
29724
  }();
30516
29725
  var range = Range$b;
30517
- var LRU = lruCache;
30518
- var cache = new LRU({
30519
- max: 1000
30520
- });
29726
+ var LRU = lrucache;
29727
+ var cache = new LRU();
30521
29728
  var parseOptions$1 = parseOptions_1;
30522
29729
  var Comparator$4 = comparator;
30523
29730
  var debug$1 = debug_1;
@@ -30741,8 +29948,9 @@ var replaceGTE0 = function(comp, options) {
30741
29948
  // 1.2 - 3.4.5 => >=1.2.0 <=3.4.5
30742
29949
  // 1.2.3 - 3.4 => >=1.2.0 <3.5.0-0 Any 3.4.x will do
30743
29950
  // 1.2 - 3.4 => >=1.2.0 <3.5.0-0
29951
+ // TODO build?
30744
29952
  var hyphenReplace = function(incPr) {
30745
- return function($0, from, fM, fm, fp, fpr, fb, to, tM, tm, tp, tpr, tb) {
29953
+ return function($0, from, fM, fm, fp, fpr, fb, to, tM, tm, tp, tpr) {
30746
29954
  if (isX(fM)) {
30747
29955
  from = "";
30748
29956
  } else if (isX(fm)) {