@digipair/skill-keycloak 0.21.15 → 0.22.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.
- package/index.cjs.js +911 -118
- package/index.esm.js +911 -118
- 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$
|
10250
|
+
*/ function _instanceof$h(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$
|
10260
|
+
} else if (_instanceof$h(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$
|
12234
|
+
function _instanceof$g(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$
|
13370
|
+
var invalid = _instanceof$g(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$
|
13453
|
+
function _instanceof$f(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$
|
14005
|
+
var invalid = _instanceof$f(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$
|
15400
|
+
function _instanceof$e(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$
|
17587
|
+
var invalid = _instanceof$e(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$
|
17972
|
+
function _instanceof$d(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$
|
18901
|
+
var parent = !overlays && _instanceof$d(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$
|
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;
|
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$
|
19036
|
+
if (_instanceof$d(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$
|
19335
|
+
var next = _instanceof$d(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$
|
19359
|
+
for(var scan = _instanceof$d(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$
|
19397
|
+
if (_instanceof$d(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$
|
19444
|
+
if (_instanceof$d(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$
|
19585
|
+
if (this.mode & IterMode.IncludeAnonymous || _instanceof$d(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$
|
19728
|
+
return _instanceof$d(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$
|
19831
|
+
if (lastI >= 0 && _instanceof$d(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$
|
19953
|
+
if (!balanceType.isAnonymous || _instanceof$d(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$
|
19961
|
+
if (child.type != balanceType || !_instanceof$d(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$
|
20160
|
+
function _instanceof$c(left, right) {
|
20161
20161
|
if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
|
20162
20162
|
return !!right[Symbol.hasInstance](left);
|
20163
20163
|
} else {
|
@@ -20356,7 +20356,6 @@ 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);
|
20360
20359
|
var dPrec = parser.dynamicPrecedence(type);
|
20361
20360
|
if (dPrec) this.score += dPrec;
|
20362
20361
|
if (depth == 0) {
|
@@ -21309,7 +21308,7 @@ function cutAt(tree, pos, side) {
|
|
21309
21308
|
cursor.moveTo(pos);
|
21310
21309
|
for(;;){
|
21311
21310
|
if (!(side < 0 ? cursor.childBefore(pos) : cursor.childAfter(pos))) for(;;){
|
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 /*
|
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 */ ));
|
21313
21312
|
if (side < 0 ? cursor.prevSibling() : cursor.nextSibling()) break;
|
21314
21313
|
if (!cursor.parent()) return side < 0 ? 0 : tree.length;
|
21315
21314
|
}
|
@@ -21377,7 +21376,7 @@ var FragmentCursor = /*#__PURE__*/ function() {
|
|
21377
21376
|
this.nextStart = start;
|
21378
21377
|
return null;
|
21379
21378
|
}
|
21380
|
-
if (_instanceof$
|
21379
|
+
if (_instanceof$c(next, Tree)) {
|
21381
21380
|
if (start == pos) {
|
21382
21381
|
if (start < this.safeFrom) return null;
|
21383
21382
|
var end = start + next.length;
|
@@ -21432,7 +21431,7 @@ var TokenCache = /*#__PURE__*/ function() {
|
|
21432
21431
|
token.mask = mask;
|
21433
21432
|
token.context = context;
|
21434
21433
|
}
|
21435
|
-
if (token.lookAhead > token.end + 25 /*
|
21434
|
+
if (token.lookAhead > token.end + 25 /* Safety.Margin */ ) lookAhead = Math.max(token.lookAhead, lookAhead);
|
21436
21435
|
if (token.value != 0 /* Term.Err */ ) {
|
21437
21436
|
var startIndex = actionIndex;
|
21438
21437
|
if (token.extended > -1) actionIndex = this.addActions(stack, token.extended, token.end, actionIndex);
|
@@ -21680,9 +21679,9 @@ var Parse = /*#__PURE__*/ function() {
|
|
21680
21679
|
if (verbose) console.log(base + this.stackID(stack) + " (via reuse of ".concat(parser.getName(cached.type.id), ")"));
|
21681
21680
|
return true;
|
21682
21681
|
}
|
21683
|
-
if (!_instanceof$
|
21682
|
+
if (!_instanceof$c(cached, Tree) || cached.children.length == 0 || cached.positions[0] > 0) break;
|
21684
21683
|
var inner = cached.children[0];
|
21685
|
-
if (_instanceof$
|
21684
|
+
if (_instanceof$c(inner, Tree) && cached.positions[0] == 0) cached = inner;
|
21686
21685
|
else break;
|
21687
21686
|
}
|
21688
21687
|
}
|
@@ -23256,7 +23255,7 @@ function _define_property$1(obj, key, value) {
|
|
23256
23255
|
}
|
23257
23256
|
return obj;
|
23258
23257
|
}
|
23259
|
-
function _instanceof$
|
23258
|
+
function _instanceof$b(left, right) {
|
23260
23259
|
if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
|
23261
23260
|
return !!right[Symbol.hasInstance](left);
|
23262
23261
|
} else {
|
@@ -23523,14 +23522,14 @@ function indent(str, spaces) {
|
|
23523
23522
|
var match = parseIdentifier(input, i1, namePart) || namePart && parseAdditionalSymbol(input, i1) || maybeSpace && parseSpaces(input, i1);
|
23524
23523
|
// match is required
|
23525
23524
|
if (!match) {
|
23526
|
-
return
|
23525
|
+
return i = i1, nextMatch = nextMatch1, tokens = tokens1, {
|
23527
23526
|
v: nextMatch1
|
23528
23527
|
};
|
23529
23528
|
}
|
23530
23529
|
var token = match.token, offset = match.offset;
|
23531
23530
|
i1 += offset;
|
23532
23531
|
if (token === " ") {
|
23533
|
-
return
|
23532
|
+
return i = i1, nextMatch = nextMatch1, tokens = tokens1, "continue";
|
23534
23533
|
}
|
23535
23534
|
tokens1 = _to_consumable_array$3(tokens1).concat([
|
23536
23535
|
token
|
@@ -23549,7 +23548,7 @@ function indent(str, spaces) {
|
|
23549
23548
|
if (contextKeys.some(function(el) {
|
23550
23549
|
return el.startsWith(name);
|
23551
23550
|
})) {
|
23552
|
-
return
|
23551
|
+
return i = i1, nextMatch = nextMatch1, tokens = tokens1, "continue";
|
23553
23552
|
}
|
23554
23553
|
if (dateTimeIdentifiers.some(function(el) {
|
23555
23554
|
return el === name;
|
@@ -23568,9 +23567,9 @@ function indent(str, spaces) {
|
|
23568
23567
|
if (dateTimeIdentifiers.some(function(el) {
|
23569
23568
|
return el.startsWith(name);
|
23570
23569
|
})) {
|
23571
|
-
return
|
23570
|
+
return i = i1, nextMatch = nextMatch1, tokens = tokens1, "continue";
|
23572
23571
|
}
|
23573
|
-
return
|
23572
|
+
return i = i1, nextMatch = nextMatch1, tokens = tokens1, {
|
23574
23573
|
v: nextMatch1
|
23575
23574
|
};
|
23576
23575
|
};
|
@@ -23733,7 +23732,7 @@ var dateTimeIdentifiers = Object.keys(dateTimeLiterals);
|
|
23733
23732
|
* @param {any} value
|
23734
23733
|
* @returns {Boolean}
|
23735
23734
|
*/ function isAtomic(value) {
|
23736
|
-
return !value || _instanceof$
|
23735
|
+
return !value || _instanceof$b(value, this) || _instanceof$b(value, ValueProducer) || typeof value !== "object";
|
23737
23736
|
}
|
23738
23737
|
},
|
23739
23738
|
{
|
@@ -23752,7 +23751,7 @@ var dateTimeIdentifiers = Object.keys(dateTimeLiterals);
|
|
23752
23751
|
if (!context || typeof context !== "object") {
|
23753
23752
|
return {};
|
23754
23753
|
}
|
23755
|
-
if (_instanceof$
|
23754
|
+
if (_instanceof$b(context, _this)) {
|
23756
23755
|
return context.value;
|
23757
23756
|
}
|
23758
23757
|
return _object_spread({}, context);
|
@@ -23871,7 +23870,7 @@ var Variables = /*#__PURE__*/ function() {
|
|
23871
23870
|
return undefined;
|
23872
23871
|
}
|
23873
23872
|
var val = this.context.get(contextKey);
|
23874
|
-
if (_instanceof$
|
23873
|
+
if (_instanceof$b(val, ValueProducer)) {
|
23875
23874
|
return val.get(this);
|
23876
23875
|
} else {
|
23877
23876
|
return val;
|
@@ -24373,7 +24372,6 @@ var parser = LRParser.deserialize({
|
|
24373
24372
|
},
|
24374
24373
|
dynamicPrecedences: {
|
24375
24374
|
"31": -1,
|
24376
|
-
"67": 1,
|
24377
24375
|
"71": -1,
|
24378
24376
|
"73": -1
|
24379
24377
|
},
|
@@ -24473,7 +24471,7 @@ function _inherits(subClass, superClass) {
|
|
24473
24471
|
});
|
24474
24472
|
if (superClass) _set_prototype_of(subClass, superClass);
|
24475
24473
|
}
|
24476
|
-
function _instanceof$
|
24474
|
+
function _instanceof$a(left, right) {
|
24477
24475
|
if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
|
24478
24476
|
return !!right[Symbol.hasInstance](left);
|
24479
24477
|
} else {
|
@@ -24646,10 +24644,10 @@ function getType(e) {
|
|
24646
24644
|
}
|
24647
24645
|
return "date time";
|
24648
24646
|
}
|
24649
|
-
if (_instanceof$
|
24647
|
+
if (_instanceof$a(e, Range$c)) {
|
24650
24648
|
return "range";
|
24651
24649
|
}
|
24652
|
-
if (_instanceof$
|
24650
|
+
if (_instanceof$a(e, FunctionWrapper)) {
|
24653
24651
|
return "function";
|
24654
24652
|
}
|
24655
24653
|
return "literal";
|
@@ -25911,13 +25909,13 @@ function createArgsValidator(argDefinitions) {
|
|
25911
25909
|
* @param {Range|number} a
|
25912
25910
|
* @param {Range|number} b
|
25913
25911
|
*/ function before$1(a, b) {
|
25914
|
-
if (_instanceof$
|
25912
|
+
if (_instanceof$a(a, Range$c) && _instanceof$a(b, Range$c)) {
|
25915
25913
|
return a.end < b.start || (!a["end included"] || !b["start included"]) && a.end == b.start;
|
25916
25914
|
}
|
25917
|
-
if (_instanceof$
|
25915
|
+
if (_instanceof$a(a, Range$c)) {
|
25918
25916
|
return a.end < b || !a["end included"] && a.end === b;
|
25919
25917
|
}
|
25920
|
-
if (_instanceof$
|
25918
|
+
if (_instanceof$a(b, Range$c)) {
|
25921
25919
|
return b.start > a || !b["start included"] && b.start === a;
|
25922
25920
|
}
|
25923
25921
|
return a < b;
|
@@ -26583,7 +26581,7 @@ function evalNode(node, input, args) {
|
|
26583
26581
|
return tag(function(context) {
|
26584
26582
|
var a = args[0](context);
|
26585
26583
|
var b = args[3](context);
|
26586
|
-
return _instanceof$
|
26584
|
+
return _instanceof$a(a, b);
|
26587
26585
|
}, Test("boolean"));
|
26588
26586
|
case "every":
|
26589
26587
|
return tag(function(context) {
|
@@ -26860,7 +26858,7 @@ function evalNode(node, input, args) {
|
|
26860
26858
|
if (typeof result === "function") {
|
26861
26859
|
result = result(el);
|
26862
26860
|
}
|
26863
|
-
if (_instanceof$
|
26861
|
+
if (_instanceof$a(result, Range$c)) {
|
26864
26862
|
result = result.includes(el);
|
26865
26863
|
}
|
26866
26864
|
if (result === true) {
|
@@ -26962,7 +26960,7 @@ function compareValue(test, value) {
|
|
26962
26960
|
if (typeof test === "function") {
|
26963
26961
|
return test(value);
|
26964
26962
|
}
|
26965
|
-
if (_instanceof$
|
26963
|
+
if (_instanceof$a(test, Range$c)) {
|
26966
26964
|
return test.includes(value);
|
26967
26965
|
}
|
26968
26966
|
return equals(test, value);
|
@@ -27263,10 +27261,10 @@ function Test(type) {
|
|
27263
27261
|
if (!fn) {
|
27264
27262
|
return null;
|
27265
27263
|
}
|
27266
|
-
if (_instanceof$
|
27264
|
+
if (_instanceof$a(fn, FunctionWrapper)) {
|
27267
27265
|
return fn;
|
27268
27266
|
}
|
27269
|
-
if (_instanceof$
|
27267
|
+
if (_instanceof$a(fn, Range$c)) {
|
27270
27268
|
return new FunctionWrapper(function(value) {
|
27271
27269
|
return fn.includes(value);
|
27272
27270
|
}, [
|
@@ -27377,6 +27375,7 @@ const applyTemplate = (value, context)=>{
|
|
27377
27375
|
const path = result.replace(/^EVALUATE:/, '');
|
27378
27376
|
result = evaluate(path, _extends({}, context, {
|
27379
27377
|
getTime: (time)=>new Date(time).getTime(),
|
27378
|
+
fromTime: (time)=>new Date(time).toISOString(),
|
27380
27379
|
atob: (value)=>atob(value),
|
27381
27380
|
btoa: (value)=>btoa(value),
|
27382
27381
|
encodeURIComponent: (value)=>encodeURIComponent(value),
|
@@ -28767,7 +28766,7 @@ function _create_class$3(Constructor, protoProps, staticProps) {
|
|
28767
28766
|
if (staticProps) _defineProperties$3(Constructor, staticProps);
|
28768
28767
|
return Constructor;
|
28769
28768
|
}
|
28770
|
-
function _instanceof$
|
28769
|
+
function _instanceof$9(left, right) {
|
28771
28770
|
if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
|
28772
28771
|
return !!right[Symbol.hasInstance](left);
|
28773
28772
|
} else {
|
@@ -28787,7 +28786,7 @@ var SemVer$f = /*#__PURE__*/ function() {
|
|
28787
28786
|
function SemVer(version, options) {
|
28788
28787
|
_class_call_check$3(this, SemVer);
|
28789
28788
|
options = parseOptions$2(options);
|
28790
|
-
if (_instanceof$
|
28789
|
+
if (_instanceof$9(version, SemVer)) {
|
28791
28790
|
if (version.loose === !!options.loose && version.includePrerelease === !!options.includePrerelease) {
|
28792
28791
|
return version;
|
28793
28792
|
} else {
|
@@ -28861,7 +28860,7 @@ var SemVer$f = /*#__PURE__*/ function() {
|
|
28861
28860
|
key: "compare",
|
28862
28861
|
value: function compare(other) {
|
28863
28862
|
debug$2("SemVer.compare", this.version, this.options, other);
|
28864
|
-
if (!_instanceof$
|
28863
|
+
if (!_instanceof$9(other, SemVer)) {
|
28865
28864
|
if (typeof other === "string" && other === this.version) {
|
28866
28865
|
return 0;
|
28867
28866
|
}
|
@@ -28876,7 +28875,7 @@ var SemVer$f = /*#__PURE__*/ function() {
|
|
28876
28875
|
{
|
28877
28876
|
key: "compareMain",
|
28878
28877
|
value: function compareMain(other) {
|
28879
|
-
if (!_instanceof$
|
28878
|
+
if (!_instanceof$9(other, SemVer)) {
|
28880
28879
|
other = new SemVer(other, this.options);
|
28881
28880
|
}
|
28882
28881
|
return compareIdentifiers(this.major, other.major) || compareIdentifiers(this.minor, other.minor) || compareIdentifiers(this.patch, other.patch);
|
@@ -28885,7 +28884,7 @@ var SemVer$f = /*#__PURE__*/ function() {
|
|
28885
28884
|
{
|
28886
28885
|
key: "comparePre",
|
28887
28886
|
value: function comparePre(other) {
|
28888
|
-
if (!_instanceof$
|
28887
|
+
if (!_instanceof$9(other, SemVer)) {
|
28889
28888
|
other = new SemVer(other, this.options);
|
28890
28889
|
}
|
28891
28890
|
// NOT having a prerelease is > having one
|
@@ -28918,14 +28917,14 @@ var SemVer$f = /*#__PURE__*/ function() {
|
|
28918
28917
|
{
|
28919
28918
|
key: "compareBuild",
|
28920
28919
|
value: function compareBuild(other) {
|
28921
|
-
if (!_instanceof$
|
28920
|
+
if (!_instanceof$9(other, SemVer)) {
|
28922
28921
|
other = new SemVer(other, this.options);
|
28923
28922
|
}
|
28924
28923
|
var i = 0;
|
28925
28924
|
do {
|
28926
28925
|
var a = this.build[i];
|
28927
28926
|
var b = other.build[i];
|
28928
|
-
debug$2("
|
28927
|
+
debug$2("prerelease compare", i, a, b);
|
28929
28928
|
if (a === undefined && b === undefined) {
|
28930
28929
|
return 0;
|
28931
28930
|
} else if (b === undefined) {
|
@@ -29073,7 +29072,7 @@ var SemVer$f = /*#__PURE__*/ function() {
|
|
29073
29072
|
}();
|
29074
29073
|
var semver$4 = SemVer$f;
|
29075
29074
|
|
29076
|
-
function _instanceof$
|
29075
|
+
function _instanceof$8(left, right) {
|
29077
29076
|
if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
|
29078
29077
|
return !!right[Symbol.hasInstance](left);
|
29079
29078
|
} else {
|
@@ -29083,7 +29082,7 @@ function _instanceof$7(left, right) {
|
|
29083
29082
|
var SemVer$e = semver$4;
|
29084
29083
|
var parse$6 = function(version, options) {
|
29085
29084
|
var throwErrors = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : false;
|
29086
|
-
if (_instanceof$
|
29085
|
+
if (_instanceof$8(version, SemVer$e)) {
|
29087
29086
|
return version;
|
29088
29087
|
}
|
29089
29088
|
try {
|
@@ -29111,7 +29110,7 @@ var clean$1 = function(version, options) {
|
|
29111
29110
|
};
|
29112
29111
|
var clean_1 = clean$1;
|
29113
29112
|
|
29114
|
-
function _instanceof$
|
29113
|
+
function _instanceof$7(left, right) {
|
29115
29114
|
if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
|
29116
29115
|
return !!right[Symbol.hasInstance](left);
|
29117
29116
|
} else {
|
@@ -29126,7 +29125,7 @@ var inc$1 = function(version, release, options, identifier, identifierBase) {
|
|
29126
29125
|
options = undefined;
|
29127
29126
|
}
|
29128
29127
|
try {
|
29129
|
-
return new SemVer$d(_instanceof$
|
29128
|
+
return new SemVer$d(_instanceof$7(version, SemVer$d) ? version.version : version, options).inc(release, identifier, identifierBase).version;
|
29130
29129
|
} catch (er) {
|
29131
29130
|
return null;
|
29132
29131
|
}
|
@@ -29331,7 +29330,7 @@ var cmp$2 = function(a, op, b, loose) {
|
|
29331
29330
|
};
|
29332
29331
|
var cmp_1 = cmp$2;
|
29333
29332
|
|
29334
|
-
function _instanceof$
|
29333
|
+
function _instanceof$6(left, right) {
|
29335
29334
|
if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
|
29336
29335
|
return !!right[Symbol.hasInstance](left);
|
29337
29336
|
} else {
|
@@ -29342,7 +29341,7 @@ var SemVer$7 = semver$4;
|
|
29342
29341
|
var parse$1 = parse_1;
|
29343
29342
|
var _require$4 = re$4.exports, re$2 = _require$4.safeRe, t$2 = _require$4.t;
|
29344
29343
|
var coerce$1 = function(version, options) {
|
29345
|
-
if (_instanceof$
|
29344
|
+
if (_instanceof$6(version, SemVer$7)) {
|
29346
29345
|
return version;
|
29347
29346
|
}
|
29348
29347
|
if (typeof version === "number") {
|
@@ -29388,6 +29387,511 @@ var coerce$1 = function(version, options) {
|
|
29388
29387
|
};
|
29389
29388
|
var coerce_1 = coerce$1;
|
29390
29389
|
|
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
|
+
|
29391
29895
|
function _class_call_check$2(instance, Constructor) {
|
29392
29896
|
if (!(instance instanceof Constructor)) {
|
29393
29897
|
throw new TypeError("Cannot call a class as a function");
|
@@ -29407,53 +29911,361 @@ function _create_class$2(Constructor, protoProps, staticProps) {
|
|
29407
29911
|
if (staticProps) _defineProperties$2(Constructor, staticProps);
|
29408
29912
|
return Constructor;
|
29409
29913
|
}
|
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.
|
29410
29937
|
var LRUCache = /*#__PURE__*/ function() {
|
29411
|
-
function LRUCache() {
|
29938
|
+
function LRUCache(options) {
|
29412
29939
|
_class_call_check$2(this, LRUCache);
|
29413
|
-
|
29414
|
-
|
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();
|
29415
29956
|
}
|
29416
29957
|
_create_class$2(LRUCache, [
|
29417
29958
|
{
|
29418
|
-
key: "
|
29419
|
-
|
29420
|
-
|
29421
|
-
|
29422
|
-
|
29423
|
-
|
29424
|
-
|
29425
|
-
|
29426
|
-
|
29427
|
-
|
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
|
+
});
|
29428
30068
|
}
|
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
|
+
});
|
29429
30090
|
}
|
29430
30091
|
},
|
29431
30092
|
{
|
29432
|
-
key: "
|
29433
|
-
value: function
|
29434
|
-
return this
|
30093
|
+
key: "dumpLru",
|
30094
|
+
value: function dumpLru() {
|
30095
|
+
return this[LRU_LIST];
|
29435
30096
|
}
|
29436
30097
|
},
|
29437
30098
|
{
|
29438
30099
|
key: "set",
|
29439
|
-
value: function set(key, value) {
|
29440
|
-
|
29441
|
-
if (
|
29442
|
-
|
29443
|
-
|
29444
|
-
|
29445
|
-
|
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);
|
29446
30116
|
}
|
29447
|
-
|
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;
|
29448
30125
|
}
|
29449
|
-
|
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
|
+
}
|
30192
|
+
}
|
30193
|
+
}
|
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
30203
|
}
|
29451
30204
|
}
|
29452
30205
|
]);
|
29453
30206
|
return LRUCache;
|
29454
30207
|
}();
|
29455
|
-
var
|
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
30267
|
|
30268
|
+
// hoisted class for cyclic dependency
|
29457
30269
|
function _array_like_to_array$1(arr, len) {
|
29458
30270
|
if (len == null || len > arr.length) len = arr.length;
|
29459
30271
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
@@ -29505,8 +30317,6 @@ function _unsupported_iterable_to_array$1(o, minLen) {
|
|
29505
30317
|
if (n === "Map" || n === "Set") return Array.from(n);
|
29506
30318
|
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$1(o, minLen);
|
29507
30319
|
}
|
29508
|
-
var SPACE_CHARACTERS = /\s+/g;
|
29509
|
-
// hoisted class for cyclic dependency
|
29510
30320
|
var Range$b = /*#__PURE__*/ function() {
|
29511
30321
|
function Range(range, options) {
|
29512
30322
|
var _this = this;
|
@@ -29527,7 +30337,7 @@ var Range$b = /*#__PURE__*/ function() {
|
|
29527
30337
|
range
|
29528
30338
|
]
|
29529
30339
|
];
|
29530
|
-
this.
|
30340
|
+
this.format();
|
29531
30341
|
return this;
|
29532
30342
|
}
|
29533
30343
|
this.options = options;
|
@@ -29536,7 +30346,7 @@ var Range$b = /*#__PURE__*/ function() {
|
|
29536
30346
|
// First reduce all whitespace as much as possible so we do not have to rely
|
29537
30347
|
// on potentially slow regexes like \s*. This is then stored and used for
|
29538
30348
|
// future error messages as well.
|
29539
|
-
this.raw = range.trim().
|
30349
|
+
this.raw = range.trim().split(/\s+/).join(" ");
|
29540
30350
|
// First, split on ||
|
29541
30351
|
this.set = this.raw.split("||")// map the range to a 2d array of comparators
|
29542
30352
|
.map(function(r) {
|
@@ -29590,33 +30400,15 @@ var Range$b = /*#__PURE__*/ function() {
|
|
29590
30400
|
}
|
29591
30401
|
}
|
29592
30402
|
}
|
29593
|
-
this.
|
30403
|
+
this.format();
|
29594
30404
|
}
|
29595
30405
|
_create_class$1(Range, [
|
29596
|
-
{
|
29597
|
-
key: "range",
|
29598
|
-
get: function get() {
|
29599
|
-
if (this.formatted === undefined) {
|
29600
|
-
this.formatted = "";
|
29601
|
-
for(var i = 0; i < this.set.length; i++){
|
29602
|
-
if (i > 0) {
|
29603
|
-
this.formatted += "||";
|
29604
|
-
}
|
29605
|
-
var comps = this.set[i];
|
29606
|
-
for(var k = 0; k < comps.length; k++){
|
29607
|
-
if (k > 0) {
|
29608
|
-
this.formatted += " ";
|
29609
|
-
}
|
29610
|
-
this.formatted += comps[k].toString().trim();
|
29611
|
-
}
|
29612
|
-
}
|
29613
|
-
}
|
29614
|
-
return this.formatted;
|
29615
|
-
}
|
29616
|
-
},
|
29617
30406
|
{
|
29618
30407
|
key: "format",
|
29619
30408
|
value: function format() {
|
30409
|
+
this.range = this.set.map(function(comps) {
|
30410
|
+
return comps.join(" ").trim();
|
30411
|
+
}).join("||").trim();
|
29620
30412
|
return this.range;
|
29621
30413
|
}
|
29622
30414
|
},
|
@@ -29751,8 +30543,10 @@ var Range$b = /*#__PURE__*/ function() {
|
|
29751
30543
|
return Range;
|
29752
30544
|
}();
|
29753
30545
|
var range = Range$b;
|
29754
|
-
var LRU =
|
29755
|
-
var cache = new LRU(
|
30546
|
+
var LRU = lruCache;
|
30547
|
+
var cache = new LRU({
|
30548
|
+
max: 1000
|
30549
|
+
});
|
29756
30550
|
var parseOptions$1 = parseOptions_1;
|
29757
30551
|
var Comparator$4 = comparator;
|
29758
30552
|
var debug$1 = debug_1;
|
@@ -29976,9 +30770,8 @@ var replaceGTE0 = function(comp, options) {
|
|
29976
30770
|
// 1.2 - 3.4.5 => >=1.2.0 <=3.4.5
|
29977
30771
|
// 1.2.3 - 3.4 => >=1.2.0 <3.5.0-0 Any 3.4.x will do
|
29978
30772
|
// 1.2 - 3.4 => >=1.2.0 <3.5.0-0
|
29979
|
-
// TODO build?
|
29980
30773
|
var hyphenReplace = function(incPr) {
|
29981
|
-
return function($0, from, fM, fm, fp, fpr, fb, to, tM, tm, tp, tpr) {
|
30774
|
+
return function($0, from, fM, fm, fp, fpr, fb, to, tM, tm, tp, tpr, tb) {
|
29982
30775
|
if (isX(fM)) {
|
29983
30776
|
from = "";
|
29984
30777
|
} else if (isX(fm)) {
|