@storm-software/linting-tools 1.133.50 → 1.133.52
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/bin/{chunk-BAL4YR7J.cjs → chunk-36C2UH4F.cjs} +93 -93
- package/bin/{chunk-YDLNZUQQ.js → chunk-3E6AM2DT.js} +2 -2
- package/bin/{chunk-REVLN7O5.js → chunk-5GSLGMCP.js} +2 -2
- package/bin/{chunk-ILFBGIR3.js → chunk-6WYSFSIO.js} +1 -1
- package/bin/{chunk-3RPEXUFX.cjs → chunk-7CWFSLH2.cjs} +5 -5
- package/bin/{chunk-XR6FLKA6.cjs → chunk-CSNJPOQI.cjs} +2 -2
- package/bin/{chunk-D6UJI7DP.cjs → chunk-DECGHVEE.cjs} +5 -5
- package/bin/{chunk-5H4LWKH4.cjs → chunk-EE22TSFU.cjs} +14 -14
- package/bin/{chunk-L5WTOL2D.cjs → chunk-G3N3XZE6.cjs} +20 -20
- package/bin/{chunk-RBJRPZR3.js → chunk-KXVYKBVV.js} +2 -2
- package/bin/{chunk-TUT2UJME.cjs → chunk-MBJJAJIB.cjs} +5 -5
- package/bin/{chunk-47WV45TG.js → chunk-NTWVGXFR.js} +1 -1
- package/bin/{chunk-V6DMPCMH.cjs → chunk-PYU4XK3V.cjs} +2 -2
- package/bin/{chunk-WAD5SGY3.cjs → chunk-RPOM7DJT.cjs} +6 -6
- package/bin/{chunk-L5FQGZ6Z.js → chunk-SLCU23SU.js} +1 -1
- package/bin/{chunk-TLJEC7ED.js → chunk-V3TBD3T6.js} +2 -2
- package/bin/{chunk-BZFLOI5H.cjs → chunk-WOVEHUFH.cjs} +2 -2
- package/bin/{chunk-NYPSIS2H.js → chunk-YNBGKRZS.js} +2 -2
- package/bin/{chunk-VFM4D3AN.js → chunk-Z2SQYHMG.js} +2 -2
- package/bin/{chunk-AFYCBDX6.js → chunk-ZT3UHNMN.js} +2 -2
- package/bin/{dist-PJ4KGJZQ.js → dist-4NPPYNEO.js} +8 -8
- package/bin/{dist-M7DIZZLD.cjs → dist-IVLTODPM.cjs} +6 -6
- package/bin/{dist-EYKW3DH5.cjs → dist-W2LWBS72.cjs} +206 -206
- package/bin/{dist-BYM6J25O.js → dist-YR43BPMG.js} +2 -2
- package/bin/{esm-3GQBUEY5.cjs → esm-RZOSJ5E7.cjs} +4 -4
- package/bin/{esm-ADLQSXNQ.js → esm-Z73JGO2Q.js} +1 -1
- package/bin/json5-UVTEU4OW.cjs +10 -0
- package/bin/json5-YTFIE75F.js +10 -0
- package/bin/{jsonc-6VU54LY4.js → jsonc-HKSFIUGL.js} +3 -3
- package/bin/jsonc-TVLJZ2Z5.cjs +15 -0
- package/bin/lint.cjs +2697 -2693
- package/bin/lint.js +694 -690
- package/bin/{multipart-parser-VPBA2QGX.cjs → multipart-parser-4KYE4TLO.cjs} +6 -6
- package/bin/{multipart-parser-QVMZG2XL.js → multipart-parser-W5BEHHKH.js} +2 -2
- package/bin/{package-json-6LRIV6MY.js → package-json-MWS5EBHM.js} +2 -2
- package/bin/{package-json-263LLBOQ.cjs → package-json-OVI6EYZB.cjs} +94 -94
- package/bin/toml-Z5LTEBLA.js +10 -0
- package/bin/toml-Z63GEZLN.cjs +10 -0
- package/bin/{utils-RNBJFYKU.cjs → utils-4TVSNFXX.cjs} +5 -5
- package/bin/{utils-VQM3WD2S.js → utils-ZASOJD4X.js} +2 -2
- package/bin/yaml-3SS4FPLN.js +10 -0
- package/bin/yaml-T7RFAZQX.cjs +10 -0
- package/package.json +3 -3
- package/bin/json5-AUMLNRGV.cjs +0 -10
- package/bin/json5-QCULZZNB.js +0 -10
- package/bin/jsonc-HY2YIICO.cjs +0 -15
- package/bin/toml-H6FCTZ54.cjs +0 -10
- package/bin/toml-UZJIHCNF.js +0 -10
- package/bin/yaml-GHSQPK4L.cjs +0 -10
- package/bin/yaml-TDU5ONQQ.js +0 -10
package/bin/lint.js
CHANGED
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
require_clean,
|
|
4
4
|
require_semver,
|
|
5
5
|
require_valid
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-SLCU23SU.js";
|
|
7
7
|
import {
|
|
8
8
|
basename,
|
|
9
9
|
be,
|
|
@@ -15,12 +15,12 @@ import {
|
|
|
15
15
|
join,
|
|
16
16
|
readPackageJSON,
|
|
17
17
|
resolve
|
|
18
|
-
} from "./chunk-
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import "./chunk-
|
|
23
|
-
import "./chunk-
|
|
18
|
+
} from "./chunk-YNBGKRZS.js";
|
|
19
|
+
import "./chunk-KXVYKBVV.js";
|
|
20
|
+
import "./chunk-5GSLGMCP.js";
|
|
21
|
+
import "./chunk-ZT3UHNMN.js";
|
|
22
|
+
import "./chunk-3E6AM2DT.js";
|
|
23
|
+
import "./chunk-NTWVGXFR.js";
|
|
24
24
|
import {
|
|
25
25
|
__commonJS,
|
|
26
26
|
__dirname,
|
|
@@ -31,7 +31,7 @@ import {
|
|
|
31
31
|
__require,
|
|
32
32
|
__toESM,
|
|
33
33
|
init_esm_shims
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-V3TBD3T6.js";
|
|
35
35
|
|
|
36
36
|
// ../../node_modules/.pnpm/dotenv@16.6.1/node_modules/dotenv/package.json
|
|
37
37
|
var package_exports = {};
|
|
@@ -722,11 +722,11 @@ var require_conversions = __commonJS({
|
|
|
722
722
|
const r = rgb[0] / 255;
|
|
723
723
|
const g2 = rgb[1] / 255;
|
|
724
724
|
const b = rgb[2] / 255;
|
|
725
|
-
const
|
|
726
|
-
const c = (1 - r -
|
|
727
|
-
const m2 = (1 - g2 -
|
|
728
|
-
const y2 = (1 - b -
|
|
729
|
-
return [c * 100, m2 * 100, y2 * 100,
|
|
725
|
+
const k3 = Math.min(1 - r, 1 - g2, 1 - b);
|
|
726
|
+
const c = (1 - r - k3) / (1 - k3) || 0;
|
|
727
|
+
const m2 = (1 - g2 - k3) / (1 - k3) || 0;
|
|
728
|
+
const y2 = (1 - b - k3) / (1 - k3) || 0;
|
|
729
|
+
return [c * 100, m2 * 100, y2 * 100, k3 * 100];
|
|
730
730
|
};
|
|
731
731
|
function comparativeDistance(x, y2) {
|
|
732
732
|
return (x[0] - y2[0]) ** 2 + (x[1] - y2[1]) ** 2 + (x[2] - y2[2]) ** 2;
|
|
@@ -931,10 +931,10 @@ var require_conversions = __commonJS({
|
|
|
931
931
|
const c = cmyk[0] / 100;
|
|
932
932
|
const m2 = cmyk[1] / 100;
|
|
933
933
|
const y2 = cmyk[2] / 100;
|
|
934
|
-
const
|
|
935
|
-
const r = 1 - Math.min(1, c * (1 -
|
|
936
|
-
const g2 = 1 - Math.min(1, m2 * (1 -
|
|
937
|
-
const b = 1 - Math.min(1, y2 * (1 -
|
|
934
|
+
const k3 = cmyk[3] / 100;
|
|
935
|
+
const r = 1 - Math.min(1, c * (1 - k3) + k3);
|
|
936
|
+
const g2 = 1 - Math.min(1, m2 * (1 - k3) + k3);
|
|
937
|
+
const b = 1 - Math.min(1, y2 * (1 - k3) + k3);
|
|
938
938
|
return [r * 255, g2 * 255, b * 255];
|
|
939
939
|
};
|
|
940
940
|
convert3.xyz.rgb = function(xyz) {
|
|
@@ -16221,14 +16221,14 @@ var require_src = __commonJS({
|
|
|
16221
16221
|
var __import___getBorderCharacters = __toESM(require_getBorderCharacters());
|
|
16222
16222
|
var __import___table = __toESM(require_table());
|
|
16223
16223
|
var __import___types_api = __toESM(require_api());
|
|
16224
|
-
var __createBinding2 = exports2 && exports2.__createBinding || (Object.create ? (function(o, m2,
|
|
16225
|
-
if (k22 === void 0) k22 =
|
|
16224
|
+
var __createBinding2 = exports2 && exports2.__createBinding || (Object.create ? (function(o, m2, k3, k22) {
|
|
16225
|
+
if (k22 === void 0) k22 = k3;
|
|
16226
16226
|
Object.defineProperty(o, k22, { enumerable: true, get: function() {
|
|
16227
|
-
return m2[
|
|
16227
|
+
return m2[k3];
|
|
16228
16228
|
} });
|
|
16229
|
-
}) : (function(o, m2,
|
|
16230
|
-
if (k22 === void 0) k22 =
|
|
16231
|
-
o[k22] = m2[
|
|
16229
|
+
}) : (function(o, m2, k3, k22) {
|
|
16230
|
+
if (k22 === void 0) k22 = k3;
|
|
16231
|
+
o[k22] = m2[k3];
|
|
16232
16232
|
}));
|
|
16233
16233
|
var __exportStar2 = exports2 && exports2.__exportStar || function(m2, exports3) {
|
|
16234
16234
|
for (var p in m2) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports3, p)) __createBinding2(exports3, m2, p);
|
|
@@ -19308,30 +19308,30 @@ var require_ini = __commonJS({
|
|
|
19308
19308
|
let padToChars = 0;
|
|
19309
19309
|
if (opt.align) {
|
|
19310
19310
|
padToChars = safe(
|
|
19311
|
-
keys4.filter((
|
|
19311
|
+
keys4.filter((k3) => obj[k3] === null || Array.isArray(obj[k3]) || typeof obj[k3] !== "object").map((k3) => Array.isArray(obj[k3]) ? `${k3}[]` : k3).concat([""]).reduce((a2, b) => safe(a2).length >= safe(b).length ? a2 : b)
|
|
19312
19312
|
).length;
|
|
19313
19313
|
}
|
|
19314
19314
|
let out = "";
|
|
19315
19315
|
const arraySuffix = opt.bracketedArray ? "[]" : "";
|
|
19316
|
-
for (const
|
|
19317
|
-
const val = obj[
|
|
19316
|
+
for (const k3 of keys4) {
|
|
19317
|
+
const val = obj[k3];
|
|
19318
19318
|
if (val && Array.isArray(val)) {
|
|
19319
19319
|
for (const item of val) {
|
|
19320
|
-
out += safe(`${
|
|
19320
|
+
out += safe(`${k3}${arraySuffix}`).padEnd(padToChars, " ") + separator + safe(item) + eol2;
|
|
19321
19321
|
}
|
|
19322
19322
|
} else if (val && typeof val === "object") {
|
|
19323
|
-
children.push(
|
|
19323
|
+
children.push(k3);
|
|
19324
19324
|
} else {
|
|
19325
|
-
out += safe(
|
|
19325
|
+
out += safe(k3).padEnd(padToChars, " ") + separator + safe(val) + eol2;
|
|
19326
19326
|
}
|
|
19327
19327
|
}
|
|
19328
19328
|
if (opt.section && out.length) {
|
|
19329
19329
|
out = "[" + safe(opt.section) + "]" + (opt.newline ? eol2 + eol2 : eol2) + out;
|
|
19330
19330
|
}
|
|
19331
|
-
for (const
|
|
19332
|
-
const nk = splitSections(
|
|
19331
|
+
for (const k3 of children) {
|
|
19332
|
+
const nk = splitSections(k3, ".").join("\\.");
|
|
19333
19333
|
const section = (opt.section ? opt.section + "." : "") + nk;
|
|
19334
|
-
const child = encode2(obj[
|
|
19334
|
+
const child = encode2(obj[k3], {
|
|
19335
19335
|
...opt,
|
|
19336
19336
|
section
|
|
19337
19337
|
});
|
|
@@ -19414,11 +19414,11 @@ var require_ini = __commonJS({
|
|
|
19414
19414
|
}
|
|
19415
19415
|
}
|
|
19416
19416
|
const remove = [];
|
|
19417
|
-
for (const
|
|
19418
|
-
if (!hasOwnProperty4.call(out,
|
|
19417
|
+
for (const k3 of Object.keys(out)) {
|
|
19418
|
+
if (!hasOwnProperty4.call(out, k3) || typeof out[k3] !== "object" || Array.isArray(out[k3])) {
|
|
19419
19419
|
continue;
|
|
19420
19420
|
}
|
|
19421
|
-
const parts = splitSections(
|
|
19421
|
+
const parts = splitSections(k3, ".");
|
|
19422
19422
|
p = out;
|
|
19423
19423
|
const l = parts.pop();
|
|
19424
19424
|
const nl = l.replace(/\\\./g, ".");
|
|
@@ -19434,8 +19434,8 @@ var require_ini = __commonJS({
|
|
|
19434
19434
|
if (p === out && nl === l) {
|
|
19435
19435
|
continue;
|
|
19436
19436
|
}
|
|
19437
|
-
p[nl] = out[
|
|
19438
|
-
remove.push(
|
|
19437
|
+
p[nl] = out[k3];
|
|
19438
|
+
remove.push(k3);
|
|
19439
19439
|
}
|
|
19440
19440
|
for (const del of remove) {
|
|
19441
19441
|
delete out[del];
|
|
@@ -27838,9 +27838,9 @@ var require_src2 = __commonJS({
|
|
|
27838
27838
|
this.runLength[i2 + 1] = this.runLength[i2 + 2];
|
|
27839
27839
|
}
|
|
27840
27840
|
this.stackSize--;
|
|
27841
|
-
const
|
|
27842
|
-
start1 +=
|
|
27843
|
-
length1 -=
|
|
27841
|
+
const k3 = gallopRight(array2[start2], array2, start1, length1, 0, compare6);
|
|
27842
|
+
start1 += k3;
|
|
27843
|
+
length1 -= k3;
|
|
27844
27844
|
if (length1 === 0) {
|
|
27845
27845
|
return;
|
|
27846
27846
|
}
|
|
@@ -28858,7 +28858,7 @@ var require_parse4 = __commonJS({
|
|
|
28858
28858
|
var symbolFor = (prefix) => Symbol.for(
|
|
28859
28859
|
last_prop !== UNDEFINED ? prefix + COLON + last_prop : prefix
|
|
28860
28860
|
);
|
|
28861
|
-
var transform5 = (
|
|
28861
|
+
var transform5 = (k3, { value, context = {} }) => reviver ? reviver(k3, value, context) : value;
|
|
28862
28862
|
var unexpected = () => {
|
|
28863
28863
|
const error2 = new SyntaxError(`Unexpected token '${current.value.slice(0, 1)}', "${current_code}" is not valid JSON`);
|
|
28864
28864
|
Object.assign(error2, current.loc.start);
|
|
@@ -29900,13 +29900,13 @@ var require_applyReviver = __commonJS({
|
|
|
29900
29900
|
val[i2] = v1;
|
|
29901
29901
|
}
|
|
29902
29902
|
} else if (val instanceof Map) {
|
|
29903
|
-
for (const
|
|
29904
|
-
const v0 = val.get(
|
|
29905
|
-
const v1 = applyReviver(reviver, val,
|
|
29903
|
+
for (const k3 of Array.from(val.keys())) {
|
|
29904
|
+
const v0 = val.get(k3);
|
|
29905
|
+
const v1 = applyReviver(reviver, val, k3, v0);
|
|
29906
29906
|
if (v1 === void 0)
|
|
29907
|
-
val.delete(
|
|
29907
|
+
val.delete(k3);
|
|
29908
29908
|
else if (v1 !== v0)
|
|
29909
|
-
val.set(
|
|
29909
|
+
val.set(k3, v1);
|
|
29910
29910
|
}
|
|
29911
29911
|
} else if (val instanceof Set) {
|
|
29912
29912
|
for (const v0 of Array.from(val)) {
|
|
@@ -29919,12 +29919,12 @@ var require_applyReviver = __commonJS({
|
|
|
29919
29919
|
}
|
|
29920
29920
|
}
|
|
29921
29921
|
} else {
|
|
29922
|
-
for (const [
|
|
29923
|
-
const v1 = applyReviver(reviver, val,
|
|
29922
|
+
for (const [k3, v0] of Object.entries(val)) {
|
|
29923
|
+
const v1 = applyReviver(reviver, val, k3, v0);
|
|
29924
29924
|
if (v1 === void 0)
|
|
29925
|
-
delete val[
|
|
29925
|
+
delete val[k3];
|
|
29926
29926
|
else if (v1 !== v0)
|
|
29927
|
-
val[
|
|
29927
|
+
val[k3] = v1;
|
|
29928
29928
|
}
|
|
29929
29929
|
}
|
|
29930
29930
|
}
|
|
@@ -30254,13 +30254,13 @@ var require_Collection = __commonJS({
|
|
|
30254
30254
|
function collectionFromPath(schema2, path31, value) {
|
|
30255
30255
|
let v2 = value;
|
|
30256
30256
|
for (let i2 = path31.length - 1; i2 >= 0; --i2) {
|
|
30257
|
-
const
|
|
30258
|
-
if (typeof
|
|
30257
|
+
const k3 = path31[i2];
|
|
30258
|
+
if (typeof k3 === "number" && Number.isInteger(k3) && k3 >= 0) {
|
|
30259
30259
|
const a2 = [];
|
|
30260
|
-
a2[
|
|
30260
|
+
a2[k3] = v2;
|
|
30261
30261
|
v2 = a2;
|
|
30262
30262
|
} else {
|
|
30263
|
-
v2 = /* @__PURE__ */ new Map([[
|
|
30263
|
+
v2 = /* @__PURE__ */ new Map([[k3, v2]]);
|
|
30264
30264
|
}
|
|
30265
30265
|
}
|
|
30266
30266
|
return createNode.createNode(v2, void 0, {
|
|
@@ -31259,9 +31259,9 @@ var require_Pair = __commonJS({
|
|
|
31259
31259
|
var addPairToJSMap = __import___addPairToJSMap_js;
|
|
31260
31260
|
var identity2 = __import___identity_js;
|
|
31261
31261
|
function createPair(key, value, ctx) {
|
|
31262
|
-
const
|
|
31262
|
+
const k3 = createNode.createNode(key, void 0, ctx);
|
|
31263
31263
|
const v2 = createNode.createNode(value, void 0, ctx);
|
|
31264
|
-
return new Pair(
|
|
31264
|
+
return new Pair(k3, v2);
|
|
31265
31265
|
}
|
|
31266
31266
|
var Pair = class _Pair {
|
|
31267
31267
|
constructor(key, value = null) {
|
|
@@ -31461,12 +31461,12 @@ var require_YAMLMap = __commonJS({
|
|
|
31461
31461
|
var Pair = __import___Pair_js;
|
|
31462
31462
|
var Scalar = __import___Scalar_js;
|
|
31463
31463
|
function findPair(items, key) {
|
|
31464
|
-
const
|
|
31464
|
+
const k3 = identity2.isScalar(key) ? key.value : key;
|
|
31465
31465
|
for (const it of items) {
|
|
31466
31466
|
if (identity2.isPair(it)) {
|
|
31467
|
-
if (it.key === key || it.key ===
|
|
31467
|
+
if (it.key === key || it.key === k3)
|
|
31468
31468
|
return it;
|
|
31469
|
-
if (identity2.isScalar(it.key) && it.key.value ===
|
|
31469
|
+
if (identity2.isScalar(it.key) && it.key.value === k3)
|
|
31470
31470
|
return it;
|
|
31471
31471
|
}
|
|
31472
31472
|
}
|
|
@@ -33072,9 +33072,9 @@ var require_Document = __commonJS({
|
|
|
33072
33072
|
* recursively wrapping all values as `Scalar` or `Collection` nodes.
|
|
33073
33073
|
*/
|
|
33074
33074
|
createPair(key, value, options = {}) {
|
|
33075
|
-
const
|
|
33075
|
+
const k3 = this.createNode(key, null, options);
|
|
33076
33076
|
const v2 = this.createNode(value, null, options);
|
|
33077
|
-
return new Pair.Pair(
|
|
33077
|
+
return new Pair.Pair(k3, v2);
|
|
33078
33078
|
}
|
|
33079
33079
|
/**
|
|
33080
33080
|
* Removes a value from the document.
|
|
@@ -37244,19 +37244,19 @@ var require_json_buffer = __commonJS({
|
|
|
37244
37244
|
var array2 = Array.isArray(o);
|
|
37245
37245
|
s = array2 ? "[" : "{";
|
|
37246
37246
|
var first3 = true;
|
|
37247
|
-
for (var
|
|
37248
|
-
var ignore4 = "function" == typeof o[
|
|
37249
|
-
if (Object.hasOwnProperty.call(o,
|
|
37247
|
+
for (var k3 in o) {
|
|
37248
|
+
var ignore4 = "function" == typeof o[k3] || !array2 && "undefined" === typeof o[k3];
|
|
37249
|
+
if (Object.hasOwnProperty.call(o, k3) && !ignore4) {
|
|
37250
37250
|
if (!first3)
|
|
37251
37251
|
s += ",";
|
|
37252
37252
|
first3 = false;
|
|
37253
37253
|
if (array2) {
|
|
37254
|
-
if (o[
|
|
37254
|
+
if (o[k3] == void 0)
|
|
37255
37255
|
s += "null";
|
|
37256
37256
|
else
|
|
37257
|
-
s += stringify5(o[
|
|
37258
|
-
} else if (o[
|
|
37259
|
-
s += stringify5(
|
|
37257
|
+
s += stringify5(o[k3]);
|
|
37258
|
+
} else if (o[k3] !== void 0) {
|
|
37259
|
+
s += stringify5(k3) + ":" + stringify5(o[k3]);
|
|
37260
37260
|
}
|
|
37261
37261
|
}
|
|
37262
37262
|
}
|
|
@@ -37508,18 +37508,18 @@ var init_esm = __esm({
|
|
|
37508
37508
|
Primitives = (_2, value) => typeof value === primitive ? new Primitive(value) : value;
|
|
37509
37509
|
resolver = (input, lazy, parsed, $) => (output) => {
|
|
37510
37510
|
for (let ke = keys3(output), { length } = ke, y2 = 0; y2 < length; y2++) {
|
|
37511
|
-
const
|
|
37512
|
-
const value = output[
|
|
37511
|
+
const k3 = ke[y2];
|
|
37512
|
+
const value = output[k3];
|
|
37513
37513
|
if (value instanceof Primitive) {
|
|
37514
37514
|
const tmp = input[+value];
|
|
37515
37515
|
if (typeof tmp === object2 && !parsed.has(tmp)) {
|
|
37516
37516
|
parsed.add(tmp);
|
|
37517
|
-
output[
|
|
37518
|
-
lazy.push({ o: output, k:
|
|
37517
|
+
output[k3] = ignore;
|
|
37518
|
+
lazy.push({ o: output, k: k3, r: tmp });
|
|
37519
37519
|
} else
|
|
37520
|
-
output[
|
|
37521
|
-
} else if (output[
|
|
37522
|
-
output[
|
|
37520
|
+
output[k3] = $.call(output, k3, tmp);
|
|
37521
|
+
} else if (output[k3] !== ignore)
|
|
37522
|
+
output[k3] = $.call(output, k3, value);
|
|
37523
37523
|
}
|
|
37524
37524
|
return output;
|
|
37525
37525
|
};
|
|
@@ -37538,14 +37538,14 @@ var init_esm = __esm({
|
|
|
37538
37538
|
value = revive(value);
|
|
37539
37539
|
let i2 = 0;
|
|
37540
37540
|
while (i2 < lazy.length) {
|
|
37541
|
-
const { o, k:
|
|
37542
|
-
o[
|
|
37541
|
+
const { o, k: k3, r } = lazy[i2++];
|
|
37542
|
+
o[k3] = $.call(o, k3, revive(r));
|
|
37543
37543
|
}
|
|
37544
37544
|
}
|
|
37545
37545
|
return $.call({ "": value }, "", value);
|
|
37546
37546
|
};
|
|
37547
37547
|
stringify3 = (value, replacer, space) => {
|
|
37548
|
-
const $ = replacer && typeof replacer === object2 ? (
|
|
37548
|
+
const $ = replacer && typeof replacer === object2 ? (k3, v2) => k3 === "" || -1 < replacer.indexOf(k3) ? v2 : void 0 : replacer || noop;
|
|
37549
37549
|
const known = /* @__PURE__ */ new Map();
|
|
37550
37550
|
const input = [];
|
|
37551
37551
|
const output = [];
|
|
@@ -38364,9 +38364,9 @@ function __spread() {
|
|
|
38364
38364
|
}
|
|
38365
38365
|
function __spreadArrays() {
|
|
38366
38366
|
for (var s = 0, i2 = 0, il = arguments.length; i2 < il; i2++) s += arguments[i2].length;
|
|
38367
|
-
for (var r = Array(s),
|
|
38368
|
-
for (var a2 = arguments[i2], j2 = 0, jl = a2.length; j2 < jl; j2++,
|
|
38369
|
-
r[
|
|
38367
|
+
for (var r = Array(s), k3 = 0, i2 = 0; i2 < il; i2++)
|
|
38368
|
+
for (var a2 = arguments[i2], j2 = 0, jl = a2.length; j2 < jl; j2++, k3++)
|
|
38369
|
+
r[k3] = a2[j2];
|
|
38370
38370
|
return r;
|
|
38371
38371
|
}
|
|
38372
38372
|
function __spreadArray(to, from, pack) {
|
|
@@ -38466,7 +38466,7 @@ function __importStar(mod) {
|
|
|
38466
38466
|
if (mod && mod.__esModule) return mod;
|
|
38467
38467
|
var result = {};
|
|
38468
38468
|
if (mod != null) {
|
|
38469
|
-
for (var
|
|
38469
|
+
for (var k3 = ownKeys(mod), i2 = 0; i2 < k3.length; i2++) if (k3[i2] !== "default") __createBinding(result, mod, k3[i2]);
|
|
38470
38470
|
}
|
|
38471
38471
|
__setModuleDefault(result, mod);
|
|
38472
38472
|
return result;
|
|
@@ -38572,18 +38572,18 @@ var init_tslib_es6 = __esm({
|
|
|
38572
38572
|
};
|
|
38573
38573
|
return __assign.apply(this, arguments);
|
|
38574
38574
|
};
|
|
38575
|
-
__createBinding = Object.create ? (function(o, m2,
|
|
38576
|
-
if (k22 === void 0) k22 =
|
|
38577
|
-
var desc = Object.getOwnPropertyDescriptor(m2,
|
|
38575
|
+
__createBinding = Object.create ? (function(o, m2, k3, k22) {
|
|
38576
|
+
if (k22 === void 0) k22 = k3;
|
|
38577
|
+
var desc = Object.getOwnPropertyDescriptor(m2, k3);
|
|
38578
38578
|
if (!desc || ("get" in desc ? !m2.__esModule : desc.writable || desc.configurable)) {
|
|
38579
38579
|
desc = { enumerable: true, get: function() {
|
|
38580
|
-
return m2[
|
|
38580
|
+
return m2[k3];
|
|
38581
38581
|
} };
|
|
38582
38582
|
}
|
|
38583
38583
|
Object.defineProperty(o, k22, desc);
|
|
38584
|
-
}) : (function(o, m2,
|
|
38585
|
-
if (k22 === void 0) k22 =
|
|
38586
|
-
o[k22] = m2[
|
|
38584
|
+
}) : (function(o, m2, k3, k22) {
|
|
38585
|
+
if (k22 === void 0) k22 = k3;
|
|
38586
|
+
o[k22] = m2[k3];
|
|
38587
38587
|
});
|
|
38588
38588
|
__setModuleDefault = Object.create ? (function(o, v2) {
|
|
38589
38589
|
Object.defineProperty(o, "default", { enumerable: true, value: v2 });
|
|
@@ -38593,7 +38593,7 @@ var init_tslib_es6 = __esm({
|
|
|
38593
38593
|
ownKeys = function(o) {
|
|
38594
38594
|
ownKeys = Object.getOwnPropertyNames || function(o2) {
|
|
38595
38595
|
var ar = [];
|
|
38596
|
-
for (var
|
|
38596
|
+
for (var k3 in o2) if (Object.prototype.hasOwnProperty.call(o2, k3)) ar[ar.length] = k3;
|
|
38597
38597
|
return ar;
|
|
38598
38598
|
};
|
|
38599
38599
|
return ownKeys(o);
|
|
@@ -41003,8 +41003,8 @@ var require_brace_expansion = __commonJS({
|
|
|
41003
41003
|
var pre = m2.pre;
|
|
41004
41004
|
var post = m2.post.length ? expand5(m2.post, max4, false) : [""];
|
|
41005
41005
|
if (/\$$/.test(m2.pre)) {
|
|
41006
|
-
for (var
|
|
41007
|
-
var expansion = pre + "{" + m2.body + "}" + post[
|
|
41006
|
+
for (var k3 = 0; k3 < post.length && k3 < max4; k3++) {
|
|
41007
|
+
var expansion = pre + "{" + m2.body + "}" + post[k3];
|
|
41008
41008
|
expansions.push(expansion);
|
|
41009
41009
|
}
|
|
41010
41010
|
} else {
|
|
@@ -41075,8 +41075,8 @@ var require_brace_expansion = __commonJS({
|
|
|
41075
41075
|
}
|
|
41076
41076
|
}
|
|
41077
41077
|
for (var j2 = 0; j2 < N.length; j2++) {
|
|
41078
|
-
for (var
|
|
41079
|
-
var expansion = pre + N[j2] + post[
|
|
41078
|
+
for (var k3 = 0; k3 < post.length && expansions.length < max4; k3++) {
|
|
41079
|
+
var expansion = pre + N[j2] + post[k3];
|
|
41080
41080
|
if (!isTop || isSequence || expansion)
|
|
41081
41081
|
expansions.push(expansion);
|
|
41082
41082
|
}
|
|
@@ -42881,7 +42881,7 @@ var init_esm3 = __esm({
|
|
|
42881
42881
|
free: c.#free,
|
|
42882
42882
|
// methods
|
|
42883
42883
|
isBackgroundFetch: (p) => c.#isBackgroundFetch(p),
|
|
42884
|
-
backgroundFetch: (
|
|
42884
|
+
backgroundFetch: (k3, index2, options, context) => c.#backgroundFetch(k3, index2, options, context),
|
|
42885
42885
|
moveToTail: (index2) => c.#moveToTail(index2),
|
|
42886
42886
|
indexes: (options) => c.#indexes(options),
|
|
42887
42887
|
rindexes: (options) => c.#rindexes(options),
|
|
@@ -43118,7 +43118,7 @@ var init_esm3 = __esm({
|
|
|
43118
43118
|
this.#calculatedSize -= sizes[index2];
|
|
43119
43119
|
sizes[index2] = 0;
|
|
43120
43120
|
};
|
|
43121
|
-
this.#requireSize = (
|
|
43121
|
+
this.#requireSize = (k3, v2, size, sizeCalculation) => {
|
|
43122
43122
|
if (this.#isBackgroundFetch(v2)) {
|
|
43123
43123
|
return 0;
|
|
43124
43124
|
}
|
|
@@ -43127,7 +43127,7 @@ var init_esm3 = __esm({
|
|
|
43127
43127
|
if (typeof sizeCalculation !== "function") {
|
|
43128
43128
|
throw new TypeError("sizeCalculation must be a function");
|
|
43129
43129
|
}
|
|
43130
|
-
size = sizeCalculation(v2,
|
|
43130
|
+
size = sizeCalculation(v2, k3);
|
|
43131
43131
|
if (!isPosInt(size)) {
|
|
43132
43132
|
throw new TypeError("sizeCalculation return invalid (expect positive integer)");
|
|
43133
43133
|
}
|
|
@@ -43229,9 +43229,9 @@ var init_esm3 = __esm({
|
|
|
43229
43229
|
*/
|
|
43230
43230
|
*keys() {
|
|
43231
43231
|
for (const i2 of this.#indexes()) {
|
|
43232
|
-
const
|
|
43233
|
-
if (
|
|
43234
|
-
yield
|
|
43232
|
+
const k3 = this.#keyList[i2];
|
|
43233
|
+
if (k3 !== void 0 && !this.#isBackgroundFetch(this.#valList[i2])) {
|
|
43234
|
+
yield k3;
|
|
43235
43235
|
}
|
|
43236
43236
|
}
|
|
43237
43237
|
}
|
|
@@ -43243,9 +43243,9 @@ var init_esm3 = __esm({
|
|
|
43243
43243
|
*/
|
|
43244
43244
|
*rkeys() {
|
|
43245
43245
|
for (const i2 of this.#rindexes()) {
|
|
43246
|
-
const
|
|
43247
|
-
if (
|
|
43248
|
-
yield
|
|
43246
|
+
const k3 = this.#keyList[i2];
|
|
43247
|
+
if (k3 !== void 0 && !this.#isBackgroundFetch(this.#valList[i2])) {
|
|
43248
|
+
yield k3;
|
|
43249
43249
|
}
|
|
43250
43250
|
}
|
|
43251
43251
|
}
|
|
@@ -43468,28 +43468,28 @@ var init_esm3 = __esm({
|
|
|
43468
43468
|
* If the value is `undefined`, then this is an alias for
|
|
43469
43469
|
* `cache.delete(key)`. `undefined` is never stored in the cache.
|
|
43470
43470
|
*/
|
|
43471
|
-
set(
|
|
43471
|
+
set(k3, v2, setOptions = {}) {
|
|
43472
43472
|
if (v2 === void 0) {
|
|
43473
|
-
this.delete(
|
|
43473
|
+
this.delete(k3);
|
|
43474
43474
|
return this;
|
|
43475
43475
|
}
|
|
43476
43476
|
const { ttl = this.ttl, start, noDisposeOnSet = this.noDisposeOnSet, sizeCalculation = this.sizeCalculation, status } = setOptions;
|
|
43477
43477
|
let { noUpdateTTL = this.noUpdateTTL } = setOptions;
|
|
43478
|
-
const size = this.#requireSize(
|
|
43478
|
+
const size = this.#requireSize(k3, v2, setOptions.size || 0, sizeCalculation);
|
|
43479
43479
|
if (this.maxEntrySize && size > this.maxEntrySize) {
|
|
43480
43480
|
if (status) {
|
|
43481
43481
|
status.set = "miss";
|
|
43482
43482
|
status.maxEntrySizeExceeded = true;
|
|
43483
43483
|
}
|
|
43484
|
-
this.#delete(
|
|
43484
|
+
this.#delete(k3, "set");
|
|
43485
43485
|
return this;
|
|
43486
43486
|
}
|
|
43487
|
-
let index2 = this.#size === 0 ? void 0 : this.#keyMap.get(
|
|
43487
|
+
let index2 = this.#size === 0 ? void 0 : this.#keyMap.get(k3);
|
|
43488
43488
|
if (index2 === void 0) {
|
|
43489
43489
|
index2 = this.#size === 0 ? this.#tail : this.#free.length !== 0 ? this.#free.pop() : this.#size === this.#max ? this.#evict(false) : this.#size;
|
|
43490
|
-
this.#keyList[index2] =
|
|
43490
|
+
this.#keyList[index2] = k3;
|
|
43491
43491
|
this.#valList[index2] = v2;
|
|
43492
|
-
this.#keyMap.set(
|
|
43492
|
+
this.#keyMap.set(k3, index2);
|
|
43493
43493
|
this.#next[this.#tail] = index2;
|
|
43494
43494
|
this.#prev[index2] = this.#tail;
|
|
43495
43495
|
this.#tail = index2;
|
|
@@ -43507,18 +43507,18 @@ var init_esm3 = __esm({
|
|
|
43507
43507
|
const { __staleWhileFetching: s } = oldVal;
|
|
43508
43508
|
if (s !== void 0 && !noDisposeOnSet) {
|
|
43509
43509
|
if (this.#hasDispose) {
|
|
43510
|
-
this.#dispose?.(s,
|
|
43510
|
+
this.#dispose?.(s, k3, "set");
|
|
43511
43511
|
}
|
|
43512
43512
|
if (this.#hasDisposeAfter) {
|
|
43513
|
-
this.#disposed?.push([s,
|
|
43513
|
+
this.#disposed?.push([s, k3, "set"]);
|
|
43514
43514
|
}
|
|
43515
43515
|
}
|
|
43516
43516
|
} else if (!noDisposeOnSet) {
|
|
43517
43517
|
if (this.#hasDispose) {
|
|
43518
|
-
this.#dispose?.(oldVal,
|
|
43518
|
+
this.#dispose?.(oldVal, k3, "set");
|
|
43519
43519
|
}
|
|
43520
43520
|
if (this.#hasDisposeAfter) {
|
|
43521
|
-
this.#disposed?.push([oldVal,
|
|
43521
|
+
this.#disposed?.push([oldVal, k3, "set"]);
|
|
43522
43522
|
}
|
|
43523
43523
|
}
|
|
43524
43524
|
this.#removeItemSize(index2);
|
|
@@ -43582,16 +43582,16 @@ var init_esm3 = __esm({
|
|
|
43582
43582
|
}
|
|
43583
43583
|
#evict(free) {
|
|
43584
43584
|
const head = this.#head;
|
|
43585
|
-
const
|
|
43585
|
+
const k3 = this.#keyList[head];
|
|
43586
43586
|
const v2 = this.#valList[head];
|
|
43587
43587
|
if (this.#hasFetchMethod && this.#isBackgroundFetch(v2)) {
|
|
43588
43588
|
v2.__abortController.abort(new Error("evicted"));
|
|
43589
43589
|
} else if (this.#hasDispose || this.#hasDisposeAfter) {
|
|
43590
43590
|
if (this.#hasDispose) {
|
|
43591
|
-
this.#dispose?.(v2,
|
|
43591
|
+
this.#dispose?.(v2, k3, "evict");
|
|
43592
43592
|
}
|
|
43593
43593
|
if (this.#hasDisposeAfter) {
|
|
43594
|
-
this.#disposed?.push([v2,
|
|
43594
|
+
this.#disposed?.push([v2, k3, "evict"]);
|
|
43595
43595
|
}
|
|
43596
43596
|
}
|
|
43597
43597
|
this.#removeItemSize(head);
|
|
@@ -43606,7 +43606,7 @@ var init_esm3 = __esm({
|
|
|
43606
43606
|
} else {
|
|
43607
43607
|
this.#head = this.#next[head];
|
|
43608
43608
|
}
|
|
43609
|
-
this.#keyMap.delete(
|
|
43609
|
+
this.#keyMap.delete(k3);
|
|
43610
43610
|
this.#size--;
|
|
43611
43611
|
return head;
|
|
43612
43612
|
}
|
|
@@ -43626,9 +43626,9 @@ var init_esm3 = __esm({
|
|
|
43626
43626
|
* Will not update item age unless
|
|
43627
43627
|
* {@link LRUCache.OptionsBase.updateAgeOnHas} is set.
|
|
43628
43628
|
*/
|
|
43629
|
-
has(
|
|
43629
|
+
has(k3, hasOptions = {}) {
|
|
43630
43630
|
const { updateAgeOnHas = this.updateAgeOnHas, status } = hasOptions;
|
|
43631
|
-
const index2 = this.#keyMap.get(
|
|
43631
|
+
const index2 = this.#keyMap.get(k3);
|
|
43632
43632
|
if (index2 !== void 0) {
|
|
43633
43633
|
const v2 = this.#valList[index2];
|
|
43634
43634
|
if (this.#isBackgroundFetch(v2) && v2.__staleWhileFetching === void 0) {
|
|
@@ -43659,16 +43659,16 @@ var init_esm3 = __esm({
|
|
|
43659
43659
|
* Returns `undefined` if the item is stale, unless
|
|
43660
43660
|
* {@link LRUCache.OptionsBase.allowStale} is set.
|
|
43661
43661
|
*/
|
|
43662
|
-
peek(
|
|
43662
|
+
peek(k3, peekOptions = {}) {
|
|
43663
43663
|
const { allowStale = this.allowStale } = peekOptions;
|
|
43664
|
-
const index2 = this.#keyMap.get(
|
|
43664
|
+
const index2 = this.#keyMap.get(k3);
|
|
43665
43665
|
if (index2 === void 0 || !allowStale && this.#isStale(index2)) {
|
|
43666
43666
|
return;
|
|
43667
43667
|
}
|
|
43668
43668
|
const v2 = this.#valList[index2];
|
|
43669
43669
|
return this.#isBackgroundFetch(v2) ? v2.__staleWhileFetching : v2;
|
|
43670
43670
|
}
|
|
43671
|
-
#backgroundFetch(
|
|
43671
|
+
#backgroundFetch(k3, index2, options, context) {
|
|
43672
43672
|
const v2 = index2 === void 0 ? void 0 : this.#valList[index2];
|
|
43673
43673
|
if (this.#isBackgroundFetch(v2)) {
|
|
43674
43674
|
return v2;
|
|
@@ -43705,12 +43705,12 @@ var init_esm3 = __esm({
|
|
|
43705
43705
|
if (bf2.__staleWhileFetching) {
|
|
43706
43706
|
this.#valList[index2] = bf2.__staleWhileFetching;
|
|
43707
43707
|
} else {
|
|
43708
|
-
this.#delete(
|
|
43708
|
+
this.#delete(k3, "fetch");
|
|
43709
43709
|
}
|
|
43710
43710
|
} else {
|
|
43711
43711
|
if (options.status)
|
|
43712
43712
|
options.status.fetchUpdated = true;
|
|
43713
|
-
this.set(
|
|
43713
|
+
this.set(k3, v3, fetchOpts.options);
|
|
43714
43714
|
}
|
|
43715
43715
|
}
|
|
43716
43716
|
return v3;
|
|
@@ -43731,7 +43731,7 @@ var init_esm3 = __esm({
|
|
|
43731
43731
|
if (this.#valList[index2] === p) {
|
|
43732
43732
|
const del = !noDelete || bf2.__staleWhileFetching === void 0;
|
|
43733
43733
|
if (del) {
|
|
43734
|
-
this.#delete(
|
|
43734
|
+
this.#delete(k3, "fetch");
|
|
43735
43735
|
} else if (!allowStaleAborted) {
|
|
43736
43736
|
this.#valList[index2] = bf2.__staleWhileFetching;
|
|
43737
43737
|
}
|
|
@@ -43746,7 +43746,7 @@ var init_esm3 = __esm({
|
|
|
43746
43746
|
}
|
|
43747
43747
|
};
|
|
43748
43748
|
const pcall = (res, rej) => {
|
|
43749
|
-
const fmp = this.#fetchMethod?.(
|
|
43749
|
+
const fmp = this.#fetchMethod?.(k3, v2, fetchOpts);
|
|
43750
43750
|
if (fmp && fmp instanceof Promise) {
|
|
43751
43751
|
fmp.then((v3) => res(v3 === void 0 ? void 0 : v3), rej);
|
|
43752
43752
|
}
|
|
@@ -43768,8 +43768,8 @@ var init_esm3 = __esm({
|
|
|
43768
43768
|
__returned: void 0
|
|
43769
43769
|
});
|
|
43770
43770
|
if (index2 === void 0) {
|
|
43771
|
-
this.set(
|
|
43772
|
-
index2 = this.#keyMap.get(
|
|
43771
|
+
this.set(k3, bf, { ...fetchOpts.options, status: void 0 });
|
|
43772
|
+
index2 = this.#keyMap.get(k3);
|
|
43773
43773
|
} else {
|
|
43774
43774
|
this.#valList[index2] = bf;
|
|
43775
43775
|
}
|
|
@@ -43781,7 +43781,7 @@ var init_esm3 = __esm({
|
|
|
43781
43781
|
const b = p;
|
|
43782
43782
|
return !!b && b instanceof Promise && b.hasOwnProperty("__staleWhileFetching") && b.__abortController instanceof AC;
|
|
43783
43783
|
}
|
|
43784
|
-
async fetch(
|
|
43784
|
+
async fetch(k3, fetchOptions = {}) {
|
|
43785
43785
|
const {
|
|
43786
43786
|
// get options
|
|
43787
43787
|
allowStale = this.allowStale,
|
|
@@ -43806,7 +43806,7 @@ var init_esm3 = __esm({
|
|
|
43806
43806
|
if (!this.#hasFetchMethod) {
|
|
43807
43807
|
if (status)
|
|
43808
43808
|
status.fetch = "get";
|
|
43809
|
-
return this.get(
|
|
43809
|
+
return this.get(k3, {
|
|
43810
43810
|
allowStale,
|
|
43811
43811
|
updateAgeOnGet,
|
|
43812
43812
|
noDeleteOnStaleGet,
|
|
@@ -43829,11 +43829,11 @@ var init_esm3 = __esm({
|
|
|
43829
43829
|
status,
|
|
43830
43830
|
signal
|
|
43831
43831
|
};
|
|
43832
|
-
let index2 = this.#keyMap.get(
|
|
43832
|
+
let index2 = this.#keyMap.get(k3);
|
|
43833
43833
|
if (index2 === void 0) {
|
|
43834
43834
|
if (status)
|
|
43835
43835
|
status.fetch = "miss";
|
|
43836
|
-
const p = this.#backgroundFetch(
|
|
43836
|
+
const p = this.#backgroundFetch(k3, index2, options, context);
|
|
43837
43837
|
return p.__returned = p;
|
|
43838
43838
|
} else {
|
|
43839
43839
|
const v2 = this.#valList[index2];
|
|
@@ -43858,7 +43858,7 @@ var init_esm3 = __esm({
|
|
|
43858
43858
|
this.#statusTTL(status, index2);
|
|
43859
43859
|
return v2;
|
|
43860
43860
|
}
|
|
43861
|
-
const p = this.#backgroundFetch(
|
|
43861
|
+
const p = this.#backgroundFetch(k3, index2, options, context);
|
|
43862
43862
|
const hasStale = p.__staleWhileFetching !== void 0;
|
|
43863
43863
|
const staleVal = hasStale && allowStale;
|
|
43864
43864
|
if (status) {
|
|
@@ -43869,26 +43869,26 @@ var init_esm3 = __esm({
|
|
|
43869
43869
|
return staleVal ? p.__staleWhileFetching : p.__returned = p;
|
|
43870
43870
|
}
|
|
43871
43871
|
}
|
|
43872
|
-
async forceFetch(
|
|
43873
|
-
const v2 = await this.fetch(
|
|
43872
|
+
async forceFetch(k3, fetchOptions = {}) {
|
|
43873
|
+
const v2 = await this.fetch(k3, fetchOptions);
|
|
43874
43874
|
if (v2 === void 0)
|
|
43875
43875
|
throw new Error("fetch() returned undefined");
|
|
43876
43876
|
return v2;
|
|
43877
43877
|
}
|
|
43878
|
-
memo(
|
|
43878
|
+
memo(k3, memoOptions = {}) {
|
|
43879
43879
|
const memoMethod = this.#memoMethod;
|
|
43880
43880
|
if (!memoMethod) {
|
|
43881
43881
|
throw new Error("no memoMethod provided to constructor");
|
|
43882
43882
|
}
|
|
43883
43883
|
const { context, forceRefresh, ...options } = memoOptions;
|
|
43884
|
-
const v2 = this.get(
|
|
43884
|
+
const v2 = this.get(k3, options);
|
|
43885
43885
|
if (!forceRefresh && v2 !== void 0)
|
|
43886
43886
|
return v2;
|
|
43887
|
-
const vv = memoMethod(
|
|
43887
|
+
const vv = memoMethod(k3, v2, {
|
|
43888
43888
|
options,
|
|
43889
43889
|
context
|
|
43890
43890
|
});
|
|
43891
|
-
this.set(
|
|
43891
|
+
this.set(k3, vv, options);
|
|
43892
43892
|
return vv;
|
|
43893
43893
|
}
|
|
43894
43894
|
/**
|
|
@@ -43897,9 +43897,9 @@ var init_esm3 = __esm({
|
|
|
43897
43897
|
*
|
|
43898
43898
|
* If the key is not found, get() will return `undefined`.
|
|
43899
43899
|
*/
|
|
43900
|
-
get(
|
|
43900
|
+
get(k3, getOptions2 = {}) {
|
|
43901
43901
|
const { allowStale = this.allowStale, updateAgeOnGet = this.updateAgeOnGet, noDeleteOnStaleGet = this.noDeleteOnStaleGet, status } = getOptions2;
|
|
43902
|
-
const index2 = this.#keyMap.get(
|
|
43902
|
+
const index2 = this.#keyMap.get(k3);
|
|
43903
43903
|
if (index2 !== void 0) {
|
|
43904
43904
|
const value = this.#valList[index2];
|
|
43905
43905
|
const fetching = this.#isBackgroundFetch(value);
|
|
@@ -43910,7 +43910,7 @@ var init_esm3 = __esm({
|
|
|
43910
43910
|
status.get = "stale";
|
|
43911
43911
|
if (!fetching) {
|
|
43912
43912
|
if (!noDeleteOnStaleGet) {
|
|
43913
|
-
this.#delete(
|
|
43913
|
+
this.#delete(k3, "expire");
|
|
43914
43914
|
}
|
|
43915
43915
|
if (status && allowStale)
|
|
43916
43916
|
status.returnedStale = true;
|
|
@@ -43957,13 +43957,13 @@ var init_esm3 = __esm({
|
|
|
43957
43957
|
*
|
|
43958
43958
|
* Returns true if the key was deleted, false otherwise.
|
|
43959
43959
|
*/
|
|
43960
|
-
delete(
|
|
43961
|
-
return this.#delete(
|
|
43960
|
+
delete(k3) {
|
|
43961
|
+
return this.#delete(k3, "delete");
|
|
43962
43962
|
}
|
|
43963
|
-
#delete(
|
|
43963
|
+
#delete(k3, reason) {
|
|
43964
43964
|
let deleted = false;
|
|
43965
43965
|
if (this.#size !== 0) {
|
|
43966
|
-
const index2 = this.#keyMap.get(
|
|
43966
|
+
const index2 = this.#keyMap.get(k3);
|
|
43967
43967
|
if (index2 !== void 0) {
|
|
43968
43968
|
deleted = true;
|
|
43969
43969
|
if (this.#size === 1) {
|
|
@@ -43975,13 +43975,13 @@ var init_esm3 = __esm({
|
|
|
43975
43975
|
v2.__abortController.abort(new Error("deleted"));
|
|
43976
43976
|
} else if (this.#hasDispose || this.#hasDisposeAfter) {
|
|
43977
43977
|
if (this.#hasDispose) {
|
|
43978
|
-
this.#dispose?.(v2,
|
|
43978
|
+
this.#dispose?.(v2, k3, reason);
|
|
43979
43979
|
}
|
|
43980
43980
|
if (this.#hasDisposeAfter) {
|
|
43981
|
-
this.#disposed?.push([v2,
|
|
43981
|
+
this.#disposed?.push([v2, k3, reason]);
|
|
43982
43982
|
}
|
|
43983
43983
|
}
|
|
43984
|
-
this.#keyMap.delete(
|
|
43984
|
+
this.#keyMap.delete(k3);
|
|
43985
43985
|
this.#keyList[index2] = void 0;
|
|
43986
43986
|
this.#valList[index2] = void 0;
|
|
43987
43987
|
if (index2 === this.#tail) {
|
|
@@ -44020,12 +44020,12 @@ var init_esm3 = __esm({
|
|
|
44020
44020
|
if (this.#isBackgroundFetch(v2)) {
|
|
44021
44021
|
v2.__abortController.abort(new Error("deleted"));
|
|
44022
44022
|
} else {
|
|
44023
|
-
const
|
|
44023
|
+
const k3 = this.#keyList[index2];
|
|
44024
44024
|
if (this.#hasDispose) {
|
|
44025
|
-
this.#dispose?.(v2,
|
|
44025
|
+
this.#dispose?.(v2, k3, reason);
|
|
44026
44026
|
}
|
|
44027
44027
|
if (this.#hasDisposeAfter) {
|
|
44028
|
-
this.#disposed?.push([v2,
|
|
44028
|
+
this.#disposed?.push([v2, k3, reason]);
|
|
44029
44029
|
}
|
|
44030
44030
|
}
|
|
44031
44031
|
}
|
|
@@ -47012,7 +47012,7 @@ var init_processor = __esm({
|
|
|
47012
47012
|
return subs;
|
|
47013
47013
|
}
|
|
47014
47014
|
entries() {
|
|
47015
|
-
return this.keys().map((
|
|
47015
|
+
return this.keys().map((k3) => [k3, this.store.get(k3)]);
|
|
47016
47016
|
}
|
|
47017
47017
|
keys() {
|
|
47018
47018
|
return [...this.store.keys()].filter((t) => t.canReaddir());
|
|
@@ -95421,7 +95421,7 @@ ${lanes.join("\n")}
|
|
|
95421
95421
|
}
|
|
95422
95422
|
function createDiagnosticForInvalidCustomType(opt, createDiagnostic) {
|
|
95423
95423
|
const namesOfType = arrayFrom(opt.type.keys());
|
|
95424
|
-
const stringNames = (opt.deprecatedKeys ? namesOfType.filter((
|
|
95424
|
+
const stringNames = (opt.deprecatedKeys ? namesOfType.filter((k3) => !opt.deprecatedKeys.has(k3)) : namesOfType).map((key) => `'${key}'`).join(", ");
|
|
95425
95425
|
return createDiagnostic(Diagnostics.Argument_for_0_option_must_be_Colon_1, `--${opt.name}`, stringNames);
|
|
95426
95426
|
}
|
|
95427
95427
|
function parseCustomTypeOption(opt, value, errors) {
|
|
@@ -96143,7 +96143,7 @@ ${lanes.join("\n")}
|
|
|
96143
96143
|
function generateTSConfig(options, newLine2) {
|
|
96144
96144
|
const tab = " ";
|
|
96145
96145
|
const result = [];
|
|
96146
|
-
const allSetOptions = Object.keys(options).filter((
|
|
96146
|
+
const allSetOptions = Object.keys(options).filter((k3) => k3 !== "init" && k3 !== "help" && k3 !== "watch");
|
|
96147
96147
|
result.push(`{`);
|
|
96148
96148
|
result.push(`${tab}// ${getLocaleSpecificMessage(Diagnostics.Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file)}`);
|
|
96149
96149
|
result.push(`${tab}"compilerOptions": {`);
|
|
@@ -99165,10 +99165,10 @@ ${lanes.join("\n")}
|
|
|
99165
99165
|
return idx2 === -1 ? { packageName: moduleName, rest: "" } : { packageName: moduleName.slice(0, idx2), rest: moduleName.slice(idx2 + 1) };
|
|
99166
99166
|
}
|
|
99167
99167
|
function allKeysStartWithDot(obj) {
|
|
99168
|
-
return every(getOwnKeys(obj), (
|
|
99168
|
+
return every(getOwnKeys(obj), (k3) => startsWith(k3, "."));
|
|
99169
99169
|
}
|
|
99170
99170
|
function noKeyStartsWithDot(obj) {
|
|
99171
|
-
return !some(getOwnKeys(obj), (
|
|
99171
|
+
return !some(getOwnKeys(obj), (k3) => startsWith(k3, "."));
|
|
99172
99172
|
}
|
|
99173
99173
|
function loadModuleFromSelfNameReference(extensions, moduleName, directory, state, cache5, redirectedReference) {
|
|
99174
99174
|
var _a5, _b;
|
|
@@ -99336,7 +99336,7 @@ ${lanes.join("\n")}
|
|
|
99336
99336
|
moduleName
|
|
99337
99337
|
);
|
|
99338
99338
|
}
|
|
99339
|
-
const expandingKeys = toSorted(filter6(getOwnKeys(lookupTable), (
|
|
99339
|
+
const expandingKeys = toSorted(filter6(getOwnKeys(lookupTable), (k3) => hasOneAsterisk(k3) || endsWith(k3, "/")), comparePatternKeys);
|
|
99340
99340
|
for (const potentialTarget of expandingKeys) {
|
|
99341
99341
|
if (state.features & 16 && matchesPatternWithTrailer(potentialTarget, moduleName)) {
|
|
99342
99342
|
const target = lookupTable[potentialTarget];
|
|
@@ -104277,20 +104277,20 @@ ${lanes.join("\n")}
|
|
|
104277
104277
|
}
|
|
104278
104278
|
function tryGetModuleNameFromExports(options, host, targetFilePath, packageDirectory, packageName2, exports22, conditions) {
|
|
104279
104279
|
if (typeof exports22 === "object" && exports22 !== null && !Array.isArray(exports22) && allKeysStartWithDot(exports22)) {
|
|
104280
|
-
return forEach3(getOwnKeys(exports22), (
|
|
104280
|
+
return forEach3(getOwnKeys(exports22), (k3) => {
|
|
104281
104281
|
const subPackageName = getNormalizedAbsolutePath(
|
|
104282
|
-
combinePaths(packageName2,
|
|
104282
|
+
combinePaths(packageName2, k3),
|
|
104283
104283
|
/*currentDirectory*/
|
|
104284
104284
|
void 0
|
|
104285
104285
|
);
|
|
104286
|
-
const mode = endsWith(
|
|
104286
|
+
const mode = endsWith(k3, "/") ? 1 : k3.includes("*") ? 2 : 0;
|
|
104287
104287
|
return tryGetModuleNameFromExportsOrImports(
|
|
104288
104288
|
options,
|
|
104289
104289
|
host,
|
|
104290
104290
|
targetFilePath,
|
|
104291
104291
|
packageDirectory,
|
|
104292
104292
|
subPackageName,
|
|
104293
|
-
exports22[
|
|
104293
|
+
exports22[k3],
|
|
104294
104294
|
conditions,
|
|
104295
104295
|
mode,
|
|
104296
104296
|
/*isImports*/
|
|
@@ -104335,16 +104335,16 @@ ${lanes.join("\n")}
|
|
|
104335
104335
|
return void 0;
|
|
104336
104336
|
}
|
|
104337
104337
|
const conditions = getConditions(options, importMode);
|
|
104338
|
-
return (_c = forEach3(getOwnKeys(imports), (
|
|
104339
|
-
if (!startsWith(
|
|
104340
|
-
const mode = endsWith(
|
|
104338
|
+
return (_c = forEach3(getOwnKeys(imports), (k3) => {
|
|
104339
|
+
if (!startsWith(k3, "#") || k3 === "#" || startsWith(k3, "#/")) return void 0;
|
|
104340
|
+
const mode = endsWith(k3, "/") ? 1 : k3.includes("*") ? 2 : 0;
|
|
104341
104341
|
return tryGetModuleNameFromExportsOrImports(
|
|
104342
104342
|
options,
|
|
104343
104343
|
host,
|
|
104344
104344
|
moduleFileName,
|
|
104345
104345
|
ancestorDirectoryWithPackageJson,
|
|
104346
|
-
|
|
104347
|
-
imports[
|
|
104346
|
+
k3,
|
|
104347
|
+
imports[k3],
|
|
104348
104348
|
conditions,
|
|
104349
104349
|
mode,
|
|
104350
104350
|
/*isImports*/
|
|
@@ -189544,31 +189544,31 @@ ${lanes.join("\n")}
|
|
|
189544
189544
|
function create22(forward, reverse, deleted) {
|
|
189545
189545
|
const map22 = {
|
|
189546
189546
|
getKeys: (v2) => reverse.get(v2),
|
|
189547
|
-
getValues: (
|
|
189547
|
+
getValues: (k3) => forward.get(k3),
|
|
189548
189548
|
keys: () => forward.keys(),
|
|
189549
189549
|
size: () => forward.size,
|
|
189550
|
-
deleteKey: (
|
|
189551
|
-
(deleted || (deleted = /* @__PURE__ */ new Set())).add(
|
|
189552
|
-
const set5 = forward.get(
|
|
189550
|
+
deleteKey: (k3) => {
|
|
189551
|
+
(deleted || (deleted = /* @__PURE__ */ new Set())).add(k3);
|
|
189552
|
+
const set5 = forward.get(k3);
|
|
189553
189553
|
if (!set5) {
|
|
189554
189554
|
return false;
|
|
189555
189555
|
}
|
|
189556
|
-
set5.forEach((v2) => deleteFromMultimap(reverse, v2,
|
|
189557
|
-
forward.delete(
|
|
189556
|
+
set5.forEach((v2) => deleteFromMultimap(reverse, v2, k3));
|
|
189557
|
+
forward.delete(k3);
|
|
189558
189558
|
return true;
|
|
189559
189559
|
},
|
|
189560
|
-
set: (
|
|
189561
|
-
deleted == null ? void 0 : deleted.delete(
|
|
189562
|
-
const existingVSet = forward.get(
|
|
189563
|
-
forward.set(
|
|
189560
|
+
set: (k3, vSet) => {
|
|
189561
|
+
deleted == null ? void 0 : deleted.delete(k3);
|
|
189562
|
+
const existingVSet = forward.get(k3);
|
|
189563
|
+
forward.set(k3, vSet);
|
|
189564
189564
|
existingVSet == null ? void 0 : existingVSet.forEach((v2) => {
|
|
189565
189565
|
if (!vSet.has(v2)) {
|
|
189566
|
-
deleteFromMultimap(reverse, v2,
|
|
189566
|
+
deleteFromMultimap(reverse, v2, k3);
|
|
189567
189567
|
}
|
|
189568
189568
|
});
|
|
189569
189569
|
vSet.forEach((v2) => {
|
|
189570
189570
|
if (!(existingVSet == null ? void 0 : existingVSet.has(v2))) {
|
|
189571
|
-
addToMultimap(reverse, v2,
|
|
189571
|
+
addToMultimap(reverse, v2, k3);
|
|
189572
189572
|
}
|
|
189573
189573
|
});
|
|
189574
189574
|
return map22;
|
|
@@ -189584,19 +189584,19 @@ ${lanes.join("\n")}
|
|
|
189584
189584
|
);
|
|
189585
189585
|
}
|
|
189586
189586
|
BuilderState2.createManyToManyPathMap = createManyToManyPathMap;
|
|
189587
|
-
function addToMultimap(map22,
|
|
189588
|
-
let set5 = map22.get(
|
|
189587
|
+
function addToMultimap(map22, k3, v2) {
|
|
189588
|
+
let set5 = map22.get(k3);
|
|
189589
189589
|
if (!set5) {
|
|
189590
189590
|
set5 = /* @__PURE__ */ new Set();
|
|
189591
|
-
map22.set(
|
|
189591
|
+
map22.set(k3, set5);
|
|
189592
189592
|
}
|
|
189593
189593
|
set5.add(v2);
|
|
189594
189594
|
}
|
|
189595
|
-
function deleteFromMultimap(map22,
|
|
189596
|
-
const set5 = map22.get(
|
|
189595
|
+
function deleteFromMultimap(map22, k3, v2) {
|
|
189596
|
+
const set5 = map22.get(k3);
|
|
189597
189597
|
if (set5 == null ? void 0 : set5.delete(v2)) {
|
|
189598
189598
|
if (!set5.size) {
|
|
189599
|
-
map22.delete(
|
|
189599
|
+
map22.delete(k3);
|
|
189600
189600
|
}
|
|
189601
189601
|
return true;
|
|
189602
189602
|
}
|
|
@@ -250940,10 +250940,10 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
250940
250940
|
};
|
|
250941
250941
|
const pluginModule = pluginModuleFactory({ typescript: ts_exports2 });
|
|
250942
250942
|
const newLS = pluginModule.create(info);
|
|
250943
|
-
for (const
|
|
250944
|
-
if (!(
|
|
250945
|
-
this.projectService.logger.info(`Plugin activation warning: Missing proxied method ${
|
|
250946
|
-
newLS[
|
|
250943
|
+
for (const k3 of Object.keys(this.languageService)) {
|
|
250944
|
+
if (!(k3 in newLS)) {
|
|
250945
|
+
this.projectService.logger.info(`Plugin activation warning: Missing proxied method ${k3} in created LS. Patching.`);
|
|
250946
|
+
newLS[k3] = this.languageService[k3];
|
|
250947
250947
|
}
|
|
250948
250948
|
}
|
|
250949
250949
|
this.projectService.logger.info(`Plugin validation succeeded`);
|
|
@@ -252465,8 +252465,8 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
252465
252465
|
return;
|
|
252466
252466
|
}
|
|
252467
252467
|
const raw = JSON.parse(fileContent);
|
|
252468
|
-
for (const
|
|
252469
|
-
raw.typesMap[
|
|
252468
|
+
for (const k3 of Object.keys(raw.typesMap)) {
|
|
252469
|
+
raw.typesMap[k3].match = new RegExp(raw.typesMap[k3].match, "i");
|
|
252470
252470
|
}
|
|
252471
252471
|
this.safelist = raw.typesMap;
|
|
252472
252472
|
for (const key in raw.simpleMap) {
|
|
@@ -259845,12 +259845,12 @@ Additional information: BADCLIENT: Bad error code, ${badCode} not found in range
|
|
|
259845
259845
|
}
|
|
259846
259846
|
let branchParent;
|
|
259847
259847
|
let lastZeroCount;
|
|
259848
|
-
for (let
|
|
259849
|
-
this.endBranch[
|
|
259850
|
-
if (this.endBranch[
|
|
259851
|
-
lastZeroCount = this.endBranch[
|
|
259852
|
-
if (
|
|
259853
|
-
branchParent = this.endBranch[
|
|
259848
|
+
for (let k3 = this.endBranch.length - 1; k3 >= 0; k3--) {
|
|
259849
|
+
this.endBranch[k3].updateCounts();
|
|
259850
|
+
if (this.endBranch[k3].charCount() === 0) {
|
|
259851
|
+
lastZeroCount = this.endBranch[k3];
|
|
259852
|
+
if (k3 > 0) {
|
|
259853
|
+
branchParent = this.endBranch[k3 - 1];
|
|
259854
259854
|
} else {
|
|
259855
259855
|
branchParent = this.branchNode;
|
|
259856
259856
|
}
|
|
@@ -261096,8 +261096,8 @@ var require_utils10 = __commonJS({
|
|
|
261096
261096
|
if (v2 == null) {
|
|
261097
261097
|
return true;
|
|
261098
261098
|
}
|
|
261099
|
-
for (const
|
|
261100
|
-
if (v2.hasOwnProperty(
|
|
261099
|
+
for (const k3 in v2) {
|
|
261100
|
+
if (v2.hasOwnProperty(k3)) {
|
|
261101
261101
|
return false;
|
|
261102
261102
|
}
|
|
261103
261103
|
}
|
|
@@ -262264,8 +262264,8 @@ var require_node = __commonJS({
|
|
|
262264
262264
|
exports2.inspectOpts = Object.keys(process.env).filter((key) => {
|
|
262265
262265
|
return /^debug_/i.test(key);
|
|
262266
262266
|
}).reduce((obj, key) => {
|
|
262267
|
-
const prop = key.substring(6).toLowerCase().replace(/_([a-z])/g, (_2,
|
|
262268
|
-
return
|
|
262267
|
+
const prop = key.substring(6).toLowerCase().replace(/_([a-z])/g, (_2, k3) => {
|
|
262268
|
+
return k3.toUpperCase();
|
|
262269
262269
|
});
|
|
262270
262270
|
let val = process.env[key];
|
|
262271
262271
|
if (/^(yes|on|true|enabled)$/i.test(val)) {
|
|
@@ -262394,30 +262394,30 @@ var require_ini2 = __commonJS({
|
|
|
262394
262394
|
let padToChars = 0;
|
|
262395
262395
|
if (opt.align) {
|
|
262396
262396
|
padToChars = safe(
|
|
262397
|
-
keys4.filter((
|
|
262397
|
+
keys4.filter((k3) => obj[k3] === null || Array.isArray(obj[k3]) || typeof obj[k3] !== "object").map((k3) => Array.isArray(obj[k3]) ? `${k3}[]` : k3).concat([""]).reduce((a2, b) => safe(a2).length >= safe(b).length ? a2 : b)
|
|
262398
262398
|
).length;
|
|
262399
262399
|
}
|
|
262400
262400
|
let out = "";
|
|
262401
262401
|
const arraySuffix = opt.bracketedArray ? "[]" : "";
|
|
262402
|
-
for (const
|
|
262403
|
-
const val = obj[
|
|
262402
|
+
for (const k3 of keys4) {
|
|
262403
|
+
const val = obj[k3];
|
|
262404
262404
|
if (val && Array.isArray(val)) {
|
|
262405
262405
|
for (const item of val) {
|
|
262406
|
-
out += safe(`${
|
|
262406
|
+
out += safe(`${k3}${arraySuffix}`).padEnd(padToChars, " ") + separator + safe(item) + eol2;
|
|
262407
262407
|
}
|
|
262408
262408
|
} else if (val && typeof val === "object") {
|
|
262409
|
-
children.push(
|
|
262409
|
+
children.push(k3);
|
|
262410
262410
|
} else {
|
|
262411
|
-
out += safe(
|
|
262411
|
+
out += safe(k3).padEnd(padToChars, " ") + separator + safe(val) + eol2;
|
|
262412
262412
|
}
|
|
262413
262413
|
}
|
|
262414
262414
|
if (opt.section && out.length) {
|
|
262415
262415
|
out = "[" + safe(opt.section) + "]" + (opt.newline ? eol2 + eol2 : eol2) + out;
|
|
262416
262416
|
}
|
|
262417
|
-
for (const
|
|
262418
|
-
const nk = splitSections(
|
|
262417
|
+
for (const k3 of children) {
|
|
262418
|
+
const nk = splitSections(k3, ".").join("\\.");
|
|
262419
262419
|
const section = (opt.section ? opt.section + "." : "") + nk;
|
|
262420
|
-
const child = encode2(obj[
|
|
262420
|
+
const child = encode2(obj[k3], {
|
|
262421
262421
|
...opt,
|
|
262422
262422
|
section
|
|
262423
262423
|
});
|
|
@@ -262500,11 +262500,11 @@ var require_ini2 = __commonJS({
|
|
|
262500
262500
|
}
|
|
262501
262501
|
}
|
|
262502
262502
|
const remove = [];
|
|
262503
|
-
for (const
|
|
262504
|
-
if (!hasOwnProperty4.call(out,
|
|
262503
|
+
for (const k3 of Object.keys(out)) {
|
|
262504
|
+
if (!hasOwnProperty4.call(out, k3) || typeof out[k3] !== "object" || Array.isArray(out[k3])) {
|
|
262505
262505
|
continue;
|
|
262506
262506
|
}
|
|
262507
|
-
const parts = splitSections(
|
|
262507
|
+
const parts = splitSections(k3, ".");
|
|
262508
262508
|
p = out;
|
|
262509
262509
|
const l = parts.pop();
|
|
262510
262510
|
const nl = l.replace(/\\\./g, ".");
|
|
@@ -262520,8 +262520,8 @@ var require_ini2 = __commonJS({
|
|
|
262520
262520
|
if (p === out && nl === l) {
|
|
262521
262521
|
continue;
|
|
262522
262522
|
}
|
|
262523
|
-
p[nl] = out[
|
|
262524
|
-
remove.push(
|
|
262523
|
+
p[nl] = out[k3];
|
|
262524
|
+
remove.push(k3);
|
|
262525
262525
|
}
|
|
262526
262526
|
for (const del of remove) {
|
|
262527
262527
|
delete out[del];
|
|
@@ -262658,10 +262658,10 @@ var require_type_defs = __commonJS({
|
|
|
262658
262658
|
var Stream3 = __import_stream6.Stream;
|
|
262659
262659
|
var os7 = __import_os8;
|
|
262660
262660
|
var debug14 = __import___debug;
|
|
262661
|
-
function validateString(data,
|
|
262662
|
-
data[
|
|
262661
|
+
function validateString(data, k3, val) {
|
|
262662
|
+
data[k3] = String(val);
|
|
262663
262663
|
}
|
|
262664
|
-
function validatePath(data,
|
|
262664
|
+
function validatePath(data, k3, val) {
|
|
262665
262665
|
if (val === true) {
|
|
262666
262666
|
return false;
|
|
262667
262667
|
}
|
|
@@ -262673,28 +262673,28 @@ var require_type_defs = __commonJS({
|
|
|
262673
262673
|
const homePattern = isWin2 ? /^~(\/|\\)/ : /^~\//;
|
|
262674
262674
|
const home = os7.homedir();
|
|
262675
262675
|
if (home && val.match(homePattern)) {
|
|
262676
|
-
data[
|
|
262676
|
+
data[k3] = path31.resolve(home, val.slice(2));
|
|
262677
262677
|
} else {
|
|
262678
|
-
data[
|
|
262678
|
+
data[k3] = path31.resolve(val);
|
|
262679
262679
|
}
|
|
262680
262680
|
return true;
|
|
262681
262681
|
}
|
|
262682
|
-
function validateNumber(data,
|
|
262683
|
-
debug14("validate Number %j %j %j",
|
|
262682
|
+
function validateNumber(data, k3, val) {
|
|
262683
|
+
debug14("validate Number %j %j %j", k3, val, isNaN(val));
|
|
262684
262684
|
if (isNaN(val)) {
|
|
262685
262685
|
return false;
|
|
262686
262686
|
}
|
|
262687
|
-
data[
|
|
262687
|
+
data[k3] = +val;
|
|
262688
262688
|
}
|
|
262689
|
-
function validateDate(data,
|
|
262689
|
+
function validateDate(data, k3, val) {
|
|
262690
262690
|
const s = Date.parse(val);
|
|
262691
|
-
debug14("validate Date %j %j %j",
|
|
262691
|
+
debug14("validate Date %j %j %j", k3, val, s);
|
|
262692
262692
|
if (isNaN(s)) {
|
|
262693
262693
|
return false;
|
|
262694
262694
|
}
|
|
262695
|
-
data[
|
|
262695
|
+
data[k3] = new Date(val);
|
|
262696
262696
|
}
|
|
262697
|
-
function validateBoolean(data,
|
|
262697
|
+
function validateBoolean(data, k3, val) {
|
|
262698
262698
|
if (typeof val === "string") {
|
|
262699
262699
|
if (!isNaN(val)) {
|
|
262700
262700
|
val = !!+val;
|
|
@@ -262706,20 +262706,20 @@ var require_type_defs = __commonJS({
|
|
|
262706
262706
|
} else {
|
|
262707
262707
|
val = !!val;
|
|
262708
262708
|
}
|
|
262709
|
-
data[
|
|
262709
|
+
data[k3] = val;
|
|
262710
262710
|
}
|
|
262711
|
-
function validateUrl(data,
|
|
262711
|
+
function validateUrl(data, k3, val) {
|
|
262712
262712
|
val = url3.parse(String(val));
|
|
262713
262713
|
if (!val.host) {
|
|
262714
262714
|
return false;
|
|
262715
262715
|
}
|
|
262716
|
-
data[
|
|
262716
|
+
data[k3] = val.href;
|
|
262717
262717
|
}
|
|
262718
|
-
function validateStream(data,
|
|
262718
|
+
function validateStream(data, k3, val) {
|
|
262719
262719
|
if (!(val instanceof Stream3)) {
|
|
262720
262720
|
return false;
|
|
262721
262721
|
}
|
|
262722
|
-
data[
|
|
262722
|
+
data[k3] = val;
|
|
262723
262723
|
}
|
|
262724
262724
|
module.exports = {
|
|
262725
262725
|
String: { type: String, validate: validateString },
|
|
@@ -262744,12 +262744,12 @@ var require_nopt_lib = __commonJS({
|
|
|
262744
262744
|
var abbrev = __import_abbrev;
|
|
262745
262745
|
var debug14 = __import___debug;
|
|
262746
262746
|
var defaultTypeDefs = __import___typeDefs;
|
|
262747
|
-
var hasOwn2 = (o,
|
|
262748
|
-
var getType = (
|
|
262749
|
-
let hasType = hasOwn2(types5,
|
|
262750
|
-
let type2 = types5[
|
|
262747
|
+
var hasOwn2 = (o, k3) => Object.prototype.hasOwnProperty.call(o, k3);
|
|
262748
|
+
var getType = (k3, { types: types5, dynamicTypes }) => {
|
|
262749
|
+
let hasType = hasOwn2(types5, k3);
|
|
262750
|
+
let type2 = types5[k3];
|
|
262751
262751
|
if (!hasType && typeof dynamicTypes === "function") {
|
|
262752
|
-
const matchedType = dynamicTypes(
|
|
262752
|
+
const matchedType = dynamicTypes(k3);
|
|
262753
262753
|
if (matchedType !== void 0) {
|
|
262754
262754
|
type2 = matchedType;
|
|
262755
262755
|
hasType = true;
|
|
@@ -262809,14 +262809,14 @@ var require_nopt_lib = __commonJS({
|
|
|
262809
262809
|
}
|
|
262810
262810
|
}
|
|
262811
262811
|
const remove = {};
|
|
262812
|
-
Object.keys(data).forEach((
|
|
262813
|
-
if (
|
|
262812
|
+
Object.keys(data).forEach((k3) => {
|
|
262813
|
+
if (k3 === "argv") {
|
|
262814
262814
|
return;
|
|
262815
262815
|
}
|
|
262816
|
-
let val = data[
|
|
262816
|
+
let val = data[k3];
|
|
262817
262817
|
debug14("val=%j", val);
|
|
262818
262818
|
const isArray2 = Array.isArray(val);
|
|
262819
|
-
let [hasType, rawType] = getType(
|
|
262819
|
+
let [hasType, rawType] = getType(k3, { types: types5, dynamicTypes });
|
|
262820
262820
|
let type2 = rawType;
|
|
262821
262821
|
if (!isArray2) {
|
|
262822
262822
|
val = [val];
|
|
@@ -262857,76 +262857,76 @@ var require_nopt_lib = __commonJS({
|
|
|
262857
262857
|
v2 = null;
|
|
262858
262858
|
}
|
|
262859
262859
|
const d2 = {};
|
|
262860
|
-
d2[
|
|
262860
|
+
d2[k3] = v2;
|
|
262861
262861
|
debug14("prevalidated val", d2, v2, rawType);
|
|
262862
|
-
if (!validate(d2,
|
|
262862
|
+
if (!validate(d2, k3, v2, rawType, { typeDefs })) {
|
|
262863
262863
|
if (invalidHandler) {
|
|
262864
|
-
invalidHandler(
|
|
262864
|
+
invalidHandler(k3, v2, rawType, data);
|
|
262865
262865
|
} else if (invalidHandler !== false) {
|
|
262866
|
-
debug14("invalid: " +
|
|
262866
|
+
debug14("invalid: " + k3 + "=" + v2, rawType);
|
|
262867
262867
|
}
|
|
262868
262868
|
return remove;
|
|
262869
262869
|
}
|
|
262870
262870
|
debug14("validated v", d2, v2, rawType);
|
|
262871
|
-
return d2[
|
|
262871
|
+
return d2[k3];
|
|
262872
262872
|
}).filter((v2) => v2 !== remove);
|
|
262873
262873
|
if (!val.length && doesNotHaveTypeDef(type2, ArrayType)) {
|
|
262874
|
-
debug14("VAL HAS NO LENGTH, DELETE IT", val,
|
|
262875
|
-
delete data[
|
|
262874
|
+
debug14("VAL HAS NO LENGTH, DELETE IT", val, k3, type2.indexOf(ArrayType));
|
|
262875
|
+
delete data[k3];
|
|
262876
262876
|
} else if (isArray2) {
|
|
262877
|
-
debug14(isArray2, data[
|
|
262878
|
-
data[
|
|
262877
|
+
debug14(isArray2, data[k3], val);
|
|
262878
|
+
data[k3] = val;
|
|
262879
262879
|
} else {
|
|
262880
|
-
data[
|
|
262880
|
+
data[k3] = val[0];
|
|
262881
262881
|
}
|
|
262882
|
-
debug14("k=%s val=%j",
|
|
262882
|
+
debug14("k=%s val=%j", k3, val, data[k3]);
|
|
262883
262883
|
});
|
|
262884
262884
|
}
|
|
262885
|
-
function validate(data,
|
|
262885
|
+
function validate(data, k3, val, type2, { typeDefs } = {}) {
|
|
262886
262886
|
const ArrayType = typeDefs?.Array?.type;
|
|
262887
262887
|
if (Array.isArray(type2)) {
|
|
262888
262888
|
for (let i2 = 0, l = type2.length; i2 < l; i2++) {
|
|
262889
262889
|
if (isTypeDef(type2[i2], ArrayType)) {
|
|
262890
262890
|
continue;
|
|
262891
262891
|
}
|
|
262892
|
-
if (validate(data,
|
|
262892
|
+
if (validate(data, k3, val, type2[i2], { typeDefs })) {
|
|
262893
262893
|
return true;
|
|
262894
262894
|
}
|
|
262895
262895
|
}
|
|
262896
|
-
delete data[
|
|
262896
|
+
delete data[k3];
|
|
262897
262897
|
return false;
|
|
262898
262898
|
}
|
|
262899
262899
|
if (isTypeDef(type2, ArrayType)) {
|
|
262900
262900
|
return true;
|
|
262901
262901
|
}
|
|
262902
262902
|
if (type2 !== type2) {
|
|
262903
|
-
debug14("Poison NaN",
|
|
262904
|
-
delete data[
|
|
262903
|
+
debug14("Poison NaN", k3, val, type2);
|
|
262904
|
+
delete data[k3];
|
|
262905
262905
|
return false;
|
|
262906
262906
|
}
|
|
262907
262907
|
if (val === type2) {
|
|
262908
262908
|
debug14("Explicitly allowed %j", val);
|
|
262909
|
-
data[
|
|
262909
|
+
data[k3] = val;
|
|
262910
262910
|
return true;
|
|
262911
262911
|
}
|
|
262912
262912
|
let ok4 = false;
|
|
262913
262913
|
const types5 = Object.keys(typeDefs);
|
|
262914
262914
|
for (let i2 = 0, l = types5.length; i2 < l; i2++) {
|
|
262915
|
-
debug14("test type %j %j %j",
|
|
262915
|
+
debug14("test type %j %j %j", k3, val, types5[i2]);
|
|
262916
262916
|
const t = typeDefs[types5[i2]];
|
|
262917
262917
|
if (t && (type2 && type2.name && t.type && t.type.name ? type2.name === t.type.name : type2 === t.type)) {
|
|
262918
262918
|
const d2 = {};
|
|
262919
|
-
ok4 = t.validate(d2,
|
|
262920
|
-
val = d2[
|
|
262919
|
+
ok4 = t.validate(d2, k3, val) !== false;
|
|
262920
|
+
val = d2[k3];
|
|
262921
262921
|
if (ok4) {
|
|
262922
|
-
data[
|
|
262922
|
+
data[k3] = val;
|
|
262923
262923
|
break;
|
|
262924
262924
|
}
|
|
262925
262925
|
}
|
|
262926
262926
|
}
|
|
262927
|
-
debug14("OK? %j (%j %j %j)", ok4,
|
|
262927
|
+
debug14("OK? %j (%j %j %j)", ok4, k3, val, types5[types5.length - 1]);
|
|
262928
262928
|
if (!ok4) {
|
|
262929
|
-
delete data[
|
|
262929
|
+
delete data[k3];
|
|
262930
262930
|
}
|
|
262931
262931
|
return ok4;
|
|
262932
262932
|
}
|
|
@@ -263319,9 +263319,9 @@ var require_umask = __commonJS({
|
|
|
263319
263319
|
return val;
|
|
263320
263320
|
}
|
|
263321
263321
|
};
|
|
263322
|
-
var validate = (data,
|
|
263322
|
+
var validate = (data, k3, val) => {
|
|
263323
263323
|
try {
|
|
263324
|
-
data[
|
|
263324
|
+
data[k3] = parse9(val);
|
|
263325
263325
|
return true;
|
|
263326
263326
|
} catch (er) {
|
|
263327
263327
|
return false;
|
|
@@ -263345,19 +263345,19 @@ var require_type_defs2 = __commonJS({
|
|
|
263345
263345
|
var Semver = class {
|
|
263346
263346
|
};
|
|
263347
263347
|
var semverValid = __import_semver_functions_valid;
|
|
263348
|
-
var validateSemver = (data,
|
|
263348
|
+
var validateSemver = (data, k3, val) => {
|
|
263349
263349
|
const valid = semverValid(val);
|
|
263350
263350
|
if (!valid) {
|
|
263351
263351
|
return false;
|
|
263352
263352
|
}
|
|
263353
|
-
data[
|
|
263353
|
+
data[k3] = valid;
|
|
263354
263354
|
};
|
|
263355
263355
|
var noptValidatePath = nopt.typeDefs.path.validate;
|
|
263356
|
-
var validatePath = (data,
|
|
263356
|
+
var validatePath = (data, k3, val) => {
|
|
263357
263357
|
if (typeof val !== "string") {
|
|
263358
263358
|
return false;
|
|
263359
263359
|
}
|
|
263360
|
-
return noptValidatePath(data,
|
|
263360
|
+
return noptValidatePath(data, k3, val);
|
|
263361
263361
|
};
|
|
263362
263362
|
module.exports = {
|
|
263363
263363
|
...nopt.typeDefs,
|
|
@@ -265975,8 +265975,8 @@ var require_lib15 = __commonJS({
|
|
|
265975
265975
|
return normalizeObject(pkg);
|
|
265976
265976
|
};
|
|
265977
265977
|
var normalizeArray = (pkg) => {
|
|
265978
|
-
pkg.bin = pkg.bin.reduce((acc,
|
|
265979
|
-
acc[basename7(
|
|
265978
|
+
pkg.bin = pkg.bin.reduce((acc, k3) => {
|
|
265979
|
+
acc[basename7(k3)] = k3;
|
|
265980
265980
|
return acc;
|
|
265981
265981
|
}, {});
|
|
265982
265982
|
return normalizeObject(pkg);
|
|
@@ -267978,12 +267978,12 @@ var require_fixer = __commonJS({
|
|
|
267978
267978
|
delete data.scripts;
|
|
267979
267979
|
return;
|
|
267980
267980
|
}
|
|
267981
|
-
Object.keys(data.scripts).forEach(function(
|
|
267982
|
-
if (typeof data.scripts[
|
|
267981
|
+
Object.keys(data.scripts).forEach(function(k3) {
|
|
267982
|
+
if (typeof data.scripts[k3] !== "string") {
|
|
267983
267983
|
this.warn("nonStringScript");
|
|
267984
|
-
delete data.scripts[
|
|
267985
|
-
} else if (typos.script[
|
|
267986
|
-
this.warn("typo",
|
|
267984
|
+
delete data.scripts[k3];
|
|
267985
|
+
} else if (typos.script[k3] && !data.scripts[typos.script[k3]]) {
|
|
267986
|
+
this.warn("typo", k3, typos.script[k3], "scripts");
|
|
267987
267987
|
}
|
|
267988
267988
|
}, this);
|
|
267989
267989
|
},
|
|
@@ -268300,8 +268300,8 @@ var require_fixer = __commonJS({
|
|
|
268300
268300
|
return;
|
|
268301
268301
|
}
|
|
268302
268302
|
var d2 = data.dependencies || {};
|
|
268303
|
-
Object.keys(o).forEach(function(
|
|
268304
|
-
d2[
|
|
268303
|
+
Object.keys(o).forEach(function(k3) {
|
|
268304
|
+
d2[k3] = o[k3];
|
|
268305
268305
|
});
|
|
268306
268306
|
data.dependencies = d2;
|
|
268307
268307
|
}
|
|
@@ -268341,11 +268341,11 @@ var require_fixer = __commonJS({
|
|
|
268341
268341
|
if (!bugs2) {
|
|
268342
268342
|
return;
|
|
268343
268343
|
}
|
|
268344
|
-
Object.keys(bugs2).forEach(function(
|
|
268345
|
-
if (typos.bugs[
|
|
268346
|
-
warn("typo",
|
|
268347
|
-
bugs2[typos.bugs[
|
|
268348
|
-
delete bugs2[
|
|
268344
|
+
Object.keys(bugs2).forEach(function(k3) {
|
|
268345
|
+
if (typos.bugs[k3]) {
|
|
268346
|
+
warn("typo", k3, typos.bugs[k3], "bugs");
|
|
268347
|
+
bugs2[typos.bugs[k3]] = bugs2[k3];
|
|
268348
|
+
delete bugs2[k3];
|
|
268349
268349
|
}
|
|
268350
268350
|
});
|
|
268351
268351
|
}
|
|
@@ -268518,8 +268518,8 @@ var require_normalize = __commonJS({
|
|
|
268518
268518
|
pkg.bin = { [pkg.name]: pkg.bin };
|
|
268519
268519
|
} else if (Array.isArray(pkg.bin)) {
|
|
268520
268520
|
changes?.push('"bin" was converted to an object');
|
|
268521
|
-
pkg.bin = pkg.bin.reduce((acc,
|
|
268522
|
-
acc[path31.basename(
|
|
268521
|
+
pkg.bin = pkg.bin.reduce((acc, k3) => {
|
|
268522
|
+
acc[path31.basename(k3)] = k3;
|
|
268523
268523
|
return acc;
|
|
268524
268524
|
}, {});
|
|
268525
268525
|
}
|
|
@@ -269323,7 +269323,7 @@ var require_lib20 = __commonJS({
|
|
|
269323
269323
|
return obj;
|
|
269324
269324
|
};
|
|
269325
269325
|
var stripUnderscores = (data) => {
|
|
269326
|
-
for (const key of Object.keys(data).filter((
|
|
269326
|
+
for (const key of Object.keys(data).filter((k3) => /^_/.test(k3))) {
|
|
269327
269327
|
delete data[key];
|
|
269328
269328
|
}
|
|
269329
269329
|
return data;
|
|
@@ -269861,7 +269861,7 @@ var require_lib22 = __commonJS({
|
|
|
269861
269861
|
this.#loadObject(conf, "env", "environment");
|
|
269862
269862
|
}
|
|
269863
269863
|
loadCLI() {
|
|
269864
|
-
nopt.invalidHandler = (
|
|
269864
|
+
nopt.invalidHandler = (k3, val, type2) => this.invalidHandler(k3, val, type2, "command line options", "cli");
|
|
269865
269865
|
const conf = nopt(this.types, this.shorthands, this.argv);
|
|
269866
269866
|
nopt.invalidHandler = null;
|
|
269867
269867
|
this.parsedArgv = conf.argv;
|
|
@@ -269919,7 +269919,7 @@ var require_lib22 = __commonJS({
|
|
|
269919
269919
|
} else {
|
|
269920
269920
|
const obj = this.data.get(where);
|
|
269921
269921
|
obj[_valid] = true;
|
|
269922
|
-
nopt.invalidHandler = (
|
|
269922
|
+
nopt.invalidHandler = (k3, val, type2) => this.invalidHandler(k3, val, type2, obj.source, where);
|
|
269923
269923
|
nopt.clean(obj.data, this.types, typeDefs);
|
|
269924
269924
|
nopt.invalidHandler = null;
|
|
269925
269925
|
return obj[_valid];
|
|
@@ -269964,11 +269964,11 @@ var require_lib22 = __commonJS({
|
|
|
269964
269964
|
return !hasOwnProperty4(typeData, key);
|
|
269965
269965
|
});
|
|
269966
269966
|
}
|
|
269967
|
-
invalidHandler(
|
|
269967
|
+
invalidHandler(k3, val, type2, source, where) {
|
|
269968
269968
|
const typeDescription = __import___typeDescription_js;
|
|
269969
269969
|
log4.warn(
|
|
269970
269970
|
"invalid config",
|
|
269971
|
-
|
|
269971
|
+
k3 + "=" + JSON.stringify(val),
|
|
269972
269972
|
`set in ${source}`
|
|
269973
269973
|
);
|
|
269974
269974
|
this.data.get(where)[_valid] = false;
|
|
@@ -270020,10 +270020,10 @@ var require_lib22 = __commonJS({
|
|
|
270020
270020
|
} else {
|
|
270021
270021
|
conf.raw = obj;
|
|
270022
270022
|
for (const [key, value] of Object.entries(obj)) {
|
|
270023
|
-
const
|
|
270024
|
-
const v2 = this.parseField(value,
|
|
270023
|
+
const k3 = envReplace(key, this.env);
|
|
270024
|
+
const v2 = this.parseField(value, k3);
|
|
270025
270025
|
if (where !== "default") {
|
|
270026
|
-
this.#checkDeprecated(
|
|
270026
|
+
this.#checkDeprecated(k3);
|
|
270027
270027
|
if (this.definitions[key]?.exclusive) {
|
|
270028
270028
|
for (const exclusive of this.definitions[key].exclusive) {
|
|
270029
270029
|
if (!this.isDefault(exclusive)) {
|
|
@@ -270032,7 +270032,7 @@ var require_lib22 = __commonJS({
|
|
|
270032
270032
|
}
|
|
270033
270033
|
}
|
|
270034
270034
|
}
|
|
270035
|
-
conf.data[
|
|
270035
|
+
conf.data[k3] = v2;
|
|
270036
270036
|
}
|
|
270037
270037
|
}
|
|
270038
270038
|
}
|
|
@@ -270923,12 +270923,12 @@ var require_ci_info = __commonJS({
|
|
|
270923
270923
|
return env5[obj.env] && env5[obj.env].includes(obj.includes);
|
|
270924
270924
|
}
|
|
270925
270925
|
if ("any" in obj) {
|
|
270926
|
-
return obj.any.some(function(
|
|
270927
|
-
return !!env5[
|
|
270926
|
+
return obj.any.some(function(k3) {
|
|
270927
|
+
return !!env5[k3];
|
|
270928
270928
|
});
|
|
270929
270929
|
}
|
|
270930
|
-
return Object.keys(obj).every(function(
|
|
270931
|
-
return env5[
|
|
270930
|
+
return Object.keys(obj).every(function(k3) {
|
|
270931
|
+
return env5[k3] === obj[k3];
|
|
270932
270932
|
});
|
|
270933
270933
|
}
|
|
270934
270934
|
function checkPR(vendor) {
|
|
@@ -277436,19 +277436,19 @@ var require_light = __commonJS({
|
|
|
277436
277436
|
return n && n["default"] || n;
|
|
277437
277437
|
}
|
|
277438
277438
|
var load3 = function(received, defaults4, onto = {}) {
|
|
277439
|
-
var
|
|
277440
|
-
for (
|
|
277441
|
-
v2 = defaults4[
|
|
277442
|
-
onto[
|
|
277439
|
+
var k3, ref, v2;
|
|
277440
|
+
for (k3 in defaults4) {
|
|
277441
|
+
v2 = defaults4[k3];
|
|
277442
|
+
onto[k3] = (ref = received[k3]) != null ? ref : v2;
|
|
277443
277443
|
}
|
|
277444
277444
|
return onto;
|
|
277445
277445
|
};
|
|
277446
277446
|
var overwrite = function(received, defaults4, onto = {}) {
|
|
277447
|
-
var
|
|
277448
|
-
for (
|
|
277449
|
-
v2 = received[
|
|
277450
|
-
if (defaults4[
|
|
277451
|
-
onto[
|
|
277447
|
+
var k3, v2;
|
|
277448
|
+
for (k3 in received) {
|
|
277449
|
+
v2 = received[k3];
|
|
277450
|
+
if (defaults4[k3] !== void 0) {
|
|
277451
|
+
onto[k3] = v2;
|
|
277452
277452
|
}
|
|
277453
277453
|
}
|
|
277454
277454
|
return onto;
|
|
@@ -278048,7 +278048,7 @@ var require_light = __commonJS({
|
|
|
278048
278048
|
return (ref = this.status[this._jobs[id]]) != null ? ref : null;
|
|
278049
278049
|
}
|
|
278050
278050
|
statusJobs(status) {
|
|
278051
|
-
var
|
|
278051
|
+
var k3, pos, ref, results, v2;
|
|
278052
278052
|
if (status != null) {
|
|
278053
278053
|
pos = this.status.indexOf(status);
|
|
278054
278054
|
if (pos < 0) {
|
|
@@ -278056,10 +278056,10 @@ var require_light = __commonJS({
|
|
|
278056
278056
|
}
|
|
278057
278057
|
ref = this._jobs;
|
|
278058
278058
|
results = [];
|
|
278059
|
-
for (
|
|
278060
|
-
v2 = ref[
|
|
278059
|
+
for (k3 in ref) {
|
|
278060
|
+
v2 = ref[k3];
|
|
278061
278061
|
if (v2 === pos) {
|
|
278062
|
-
results.push(
|
|
278062
|
+
results.push(k3);
|
|
278063
278063
|
}
|
|
278064
278064
|
}
|
|
278065
278065
|
return results;
|
|
@@ -278186,13 +278186,13 @@ var require_light = __commonJS({
|
|
|
278186
278186
|
return instance != null || deleted > 0;
|
|
278187
278187
|
}
|
|
278188
278188
|
limiters() {
|
|
278189
|
-
var
|
|
278189
|
+
var k3, ref, results, v2;
|
|
278190
278190
|
ref = this.instances;
|
|
278191
278191
|
results = [];
|
|
278192
|
-
for (
|
|
278193
|
-
v2 = ref[
|
|
278192
|
+
for (k3 in ref) {
|
|
278193
|
+
v2 = ref[k3];
|
|
278194
278194
|
results.push({
|
|
278195
|
-
key:
|
|
278195
|
+
key: k3,
|
|
278196
278196
|
limiter: v2
|
|
278197
278197
|
});
|
|
278198
278198
|
}
|
|
@@ -278202,7 +278202,7 @@ var require_light = __commonJS({
|
|
|
278202
278202
|
return Object.keys(this.instances);
|
|
278203
278203
|
}
|
|
278204
278204
|
async clusterKeys() {
|
|
278205
|
-
var cursor, end, found, i2,
|
|
278205
|
+
var cursor, end, found, i2, k3, keys4, len, next, start;
|
|
278206
278206
|
if (this.connection == null) {
|
|
278207
278207
|
return this.Promise.resolve(this.keys());
|
|
278208
278208
|
}
|
|
@@ -278214,8 +278214,8 @@ var require_light = __commonJS({
|
|
|
278214
278214
|
[next, found] = await this.connection.__runCommand__(["scan", cursor != null ? cursor : 0, "match", `b_${this.id}-*_settings`, "count", 1e4]);
|
|
278215
278215
|
cursor = ~~next;
|
|
278216
278216
|
for (i2 = 0, len = found.length; i2 < len; i2++) {
|
|
278217
|
-
|
|
278218
|
-
keys4.push(
|
|
278217
|
+
k3 = found[i2];
|
|
278218
|
+
keys4.push(k3.slice(start, -end));
|
|
278219
278219
|
}
|
|
278220
278220
|
}
|
|
278221
278221
|
return keys4;
|
|
@@ -278224,15 +278224,15 @@ var require_light = __commonJS({
|
|
|
278224
278224
|
var base2;
|
|
278225
278225
|
clearInterval(this.interval);
|
|
278226
278226
|
return typeof (base2 = this.interval = setInterval(async () => {
|
|
278227
|
-
var e,
|
|
278227
|
+
var e, k3, ref, results, time2, v2;
|
|
278228
278228
|
time2 = Date.now();
|
|
278229
278229
|
ref = this.instances;
|
|
278230
278230
|
results = [];
|
|
278231
|
-
for (
|
|
278232
|
-
v2 = ref[
|
|
278231
|
+
for (k3 in ref) {
|
|
278232
|
+
v2 = ref[k3];
|
|
278233
278233
|
try {
|
|
278234
278234
|
if (await v2._store.__groupCheck__(time2)) {
|
|
278235
|
-
results.push(this.deleteKey(
|
|
278235
|
+
results.push(this.deleteKey(k3));
|
|
278236
278236
|
} else {
|
|
278237
278237
|
results.push(void 0);
|
|
278238
278238
|
}
|
|
@@ -278540,10 +278540,10 @@ var require_light = __commonJS({
|
|
|
278540
278540
|
return this.Promise.resolve(null);
|
|
278541
278541
|
}, this._registerLock.schedule(() => {
|
|
278542
278542
|
return this._submitLock.schedule(() => {
|
|
278543
|
-
var
|
|
278543
|
+
var k3, ref, v2;
|
|
278544
278544
|
ref = this._scheduled;
|
|
278545
|
-
for (
|
|
278546
|
-
v2 = ref[
|
|
278545
|
+
for (k3 in ref) {
|
|
278546
|
+
v2 = ref[k3];
|
|
278547
278547
|
if (this.jobStatus(v2.job.options.id) === "RUNNING") {
|
|
278548
278548
|
clearTimeout(v2.timeout);
|
|
278549
278549
|
clearTimeout(v2.expiration);
|
|
@@ -279866,10 +279866,10 @@ var require_analyze = __commonJS({
|
|
|
279866
279866
|
}
|
|
279867
279867
|
}
|
|
279868
279868
|
}
|
|
279869
|
-
for (var
|
|
279870
|
-
if (Object.keys(stats2[
|
|
279871
|
-
result[
|
|
279872
|
-
return stats2[
|
|
279869
|
+
for (var k3 in stats2) {
|
|
279870
|
+
if (Object.keys(stats2[k3]).length) {
|
|
279871
|
+
result[k3] = Object.keys(stats2[k3]).reduce(function(a2, b) {
|
|
279872
|
+
return stats2[k3][a2] > stats2[k3][b] ? a2 : b;
|
|
279873
279873
|
});
|
|
279874
279874
|
}
|
|
279875
279875
|
}
|
|
@@ -281982,7 +281982,7 @@ var require_which2 = __commonJS({
|
|
|
281982
281982
|
var pathExt = info.ext;
|
|
281983
281983
|
var pathExtExe = info.extExe;
|
|
281984
281984
|
var found = [];
|
|
281985
|
-
(function
|
|
281985
|
+
(function F2(i2, l) {
|
|
281986
281986
|
if (i2 === l) {
|
|
281987
281987
|
if (opt.all && found.length)
|
|
281988
281988
|
return cb(null, found);
|
|
@@ -281998,7 +281998,7 @@ var require_which2 = __commonJS({
|
|
|
281998
281998
|
}
|
|
281999
281999
|
;
|
|
282000
282000
|
(function E(ii, ll) {
|
|
282001
|
-
if (ii === ll) return
|
|
282001
|
+
if (ii === ll) return F2(i2 + 1, l);
|
|
282002
282002
|
var ext3 = pathExt[ii];
|
|
282003
282003
|
isexe(p + ext3, { pathExt: pathExtExe }, function(er, is3) {
|
|
282004
282004
|
if (!er && is3) {
|
|
@@ -282076,23 +282076,23 @@ var require_pseudomap = __commonJS({
|
|
|
282076
282076
|
}
|
|
282077
282077
|
PseudoMap.prototype.forEach = function(fn, thisp) {
|
|
282078
282078
|
thisp = thisp || this;
|
|
282079
|
-
Object.keys(this._data).forEach(function(
|
|
282080
|
-
if (
|
|
282081
|
-
fn.call(thisp, this._data[
|
|
282079
|
+
Object.keys(this._data).forEach(function(k3) {
|
|
282080
|
+
if (k3 !== "size")
|
|
282081
|
+
fn.call(thisp, this._data[k3].value, this._data[k3].key);
|
|
282082
282082
|
}, this);
|
|
282083
282083
|
};
|
|
282084
|
-
PseudoMap.prototype.has = function(
|
|
282085
|
-
return !!find2(this._data,
|
|
282084
|
+
PseudoMap.prototype.has = function(k3) {
|
|
282085
|
+
return !!find2(this._data, k3);
|
|
282086
282086
|
};
|
|
282087
|
-
PseudoMap.prototype.get = function(
|
|
282088
|
-
var res = find2(this._data,
|
|
282087
|
+
PseudoMap.prototype.get = function(k3) {
|
|
282088
|
+
var res = find2(this._data, k3);
|
|
282089
282089
|
return res && res.value;
|
|
282090
282090
|
};
|
|
282091
|
-
PseudoMap.prototype.set = function(
|
|
282092
|
-
set5(this._data,
|
|
282091
|
+
PseudoMap.prototype.set = function(k3, v2) {
|
|
282092
|
+
set5(this._data, k3, v2);
|
|
282093
282093
|
};
|
|
282094
|
-
PseudoMap.prototype.delete = function(
|
|
282095
|
-
var res = find2(this._data,
|
|
282094
|
+
PseudoMap.prototype.delete = function(k3) {
|
|
282095
|
+
var res = find2(this._data, k3);
|
|
282096
282096
|
if (res) {
|
|
282097
282097
|
delete this._data[res._index];
|
|
282098
282098
|
this._data.size--;
|
|
@@ -282123,26 +282123,26 @@ var require_pseudomap = __commonJS({
|
|
|
282123
282123
|
function same(a2, b) {
|
|
282124
282124
|
return a2 === b || a2 !== a2 && b !== b;
|
|
282125
282125
|
}
|
|
282126
|
-
function Entry(
|
|
282127
|
-
this.key =
|
|
282126
|
+
function Entry(k3, v2, i2) {
|
|
282127
|
+
this.key = k3;
|
|
282128
282128
|
this.value = v2;
|
|
282129
282129
|
this._index = i2;
|
|
282130
282130
|
}
|
|
282131
|
-
function find2(data,
|
|
282132
|
-
for (var i2 = 0, s = "_" +
|
|
282133
|
-
if (same(data[key].key,
|
|
282131
|
+
function find2(data, k3) {
|
|
282132
|
+
for (var i2 = 0, s = "_" + k3, key = s; hasOwnProperty4.call(data, key); key = s + i2++) {
|
|
282133
|
+
if (same(data[key].key, k3))
|
|
282134
282134
|
return data[key];
|
|
282135
282135
|
}
|
|
282136
282136
|
}
|
|
282137
|
-
function set5(data,
|
|
282138
|
-
for (var i2 = 0, s = "_" +
|
|
282139
|
-
if (same(data[key].key,
|
|
282137
|
+
function set5(data, k3, v2) {
|
|
282138
|
+
for (var i2 = 0, s = "_" + k3, key = s; hasOwnProperty4.call(data, key); key = s + i2++) {
|
|
282139
|
+
if (same(data[key].key, k3)) {
|
|
282140
282140
|
data[key].value = v2;
|
|
282141
282141
|
return;
|
|
282142
282142
|
}
|
|
282143
282143
|
}
|
|
282144
282144
|
data.size++;
|
|
282145
|
-
data[key] = new Entry(
|
|
282145
|
+
data[key] = new Entry(k3, v2, key);
|
|
282146
282146
|
}
|
|
282147
282147
|
}
|
|
282148
282148
|
});
|
|
@@ -282644,13 +282644,13 @@ var require_lru_cache = __commonJS({
|
|
|
282644
282644
|
}
|
|
282645
282645
|
};
|
|
282646
282646
|
LRUCache2.prototype.keys = function() {
|
|
282647
|
-
return this[LRU_LIST].toArray().map(function(
|
|
282648
|
-
return
|
|
282647
|
+
return this[LRU_LIST].toArray().map(function(k3) {
|
|
282648
|
+
return k3.key;
|
|
282649
282649
|
}, this);
|
|
282650
282650
|
};
|
|
282651
282651
|
LRUCache2.prototype.values = function() {
|
|
282652
|
-
return this[LRU_LIST].toArray().map(function(
|
|
282653
|
-
return
|
|
282652
|
+
return this[LRU_LIST].toArray().map(function(k3) {
|
|
282653
|
+
return k3.value;
|
|
282654
282654
|
}, this);
|
|
282655
282655
|
};
|
|
282656
282656
|
LRUCache2.prototype.reset = function() {
|
|
@@ -283813,11 +283813,11 @@ function interpolate(target, source = {}, parse9 = (v2) => v2) {
|
|
|
283813
283813
|
}
|
|
283814
283814
|
var _normalize = (p) => p?.replace(/\\/g, "/");
|
|
283815
283815
|
var ASYNC_LOADERS = {
|
|
283816
|
-
".yaml": () => import("./yaml-
|
|
283817
|
-
".yml": () => import("./yaml-
|
|
283818
|
-
".jsonc": () => import("./jsonc-
|
|
283819
|
-
".json5": () => import("./json5-
|
|
283820
|
-
".toml": () => import("./toml-
|
|
283816
|
+
".yaml": () => import("./yaml-3SS4FPLN.js").then((r) => r.parseYAML),
|
|
283817
|
+
".yml": () => import("./yaml-3SS4FPLN.js").then((r) => r.parseYAML),
|
|
283818
|
+
".jsonc": () => import("./jsonc-HKSFIUGL.js").then((r) => r.parseJSONC),
|
|
283819
|
+
".json5": () => import("./json5-YTFIE75F.js").then((r) => r.parseJSON5),
|
|
283820
|
+
".toml": () => import("./toml-Z5LTEBLA.js").then((r) => r.parseTOML)
|
|
283821
283821
|
};
|
|
283822
283822
|
var SUPPORTED_EXTENSIONS = [
|
|
283823
283823
|
// with jiti
|
|
@@ -284017,8 +284017,8 @@ async function resolveConfig(source, options, sourceOptions = {}) {
|
|
|
284017
284017
|
}
|
|
284018
284018
|
const _merger = options.merger || defu;
|
|
284019
284019
|
if (options.giget !== false && GIGET_PREFIXES.some((prefix) => source.startsWith(prefix))) {
|
|
284020
|
-
const { downloadTemplate } = await import("./dist-
|
|
284021
|
-
const { digest } = await import("./dist-
|
|
284020
|
+
const { downloadTemplate } = await import("./dist-4NPPYNEO.js");
|
|
284021
|
+
const { digest } = await import("./dist-YR43BPMG.js");
|
|
284022
284022
|
const cloneName = source.replace(/\W+/g, "_").split("_").splice(0, 3).join("_") + "_" + digest(source).slice(0, 10).replace(/[-_]/g, "");
|
|
284023
284023
|
let cloneDir;
|
|
284024
284024
|
const localNodeModules = resolve(options.cwd, "node_modules");
|
|
@@ -284456,7 +284456,9 @@ var formatLogMessage = (message, options = {}, depth2 = 0) => {
|
|
|
284456
284456
|
const skip3 = options.skip ?? [];
|
|
284457
284457
|
const sort = options.sort ?? true;
|
|
284458
284458
|
return typeof message === "undefined" || message === null ? "<empty>" : typeof message === "string" ? !message ? "<empty string>" : message : Array.isArray(message) ? `
|
|
284459
|
-
${message.
|
|
284459
|
+
${message.sort(
|
|
284460
|
+
sort ? (a2, b) => !a2 && !b ? 0 : !a2 ? 1 : !b ? -1 : String(a2).localeCompare(String(b)) : void 0
|
|
284461
|
+
).map(
|
|
284460
284462
|
(item, index2) => ` ${prefix}> #${index2} = ${formatLogMessage(
|
|
284461
284463
|
item,
|
|
284462
284464
|
{ prefix: `${prefix}--`, skip: skip3, sort },
|
|
@@ -284464,12 +284466,12 @@ ${message.map(
|
|
|
284464
284466
|
)}`
|
|
284465
284467
|
).join("\n")}` : typeof message === "object" ? `
|
|
284466
284468
|
${Object.keys(message).filter(
|
|
284467
|
-
(key) => !skip3.map((
|
|
284468
|
-
).sort(
|
|
284469
|
+
(key) => typeof key !== "string" || !skip3.map((k3) => k3.toLowerCase().trim()).includes(key.toLowerCase().trim())
|
|
284470
|
+
).sort(
|
|
284471
|
+
sort ? (a2, b) => !a2 && !b ? 0 : !a2 ? 1 : !b ? -1 : String(a2).localeCompare(String(b)) : void 0
|
|
284472
|
+
).map(
|
|
284469
284473
|
(key) => ` ${prefix}> ${key} = ${_isFunction(message[key]) ? "<function>" : typeof message[key] === "object" ? Object.keys(message[key]).filter(
|
|
284470
|
-
(key2) => !skip3.map((
|
|
284471
|
-
typeof key2 === "string" ? key2.toLowerCase() : key2
|
|
284472
|
-
)
|
|
284474
|
+
(key2) => typeof key2 !== "string" || !skip3.map((k3) => k3.toLowerCase().trim()).includes(key2.toLowerCase().trim())
|
|
284473
284475
|
).length === 0 ? "{}" : formatLogMessage(
|
|
284474
284476
|
message[key],
|
|
284475
284477
|
{ prefix: `${prefix}--`, skip: skip3, sort },
|
|
@@ -284767,9 +284769,9 @@ function $constructor(name3, initializer2, params) {
|
|
|
284767
284769
|
const proto2 = _2.prototype;
|
|
284768
284770
|
const keys4 = Object.keys(proto2);
|
|
284769
284771
|
for (let i2 = 0; i2 < keys4.length; i2++) {
|
|
284770
|
-
const
|
|
284771
|
-
if (!(
|
|
284772
|
-
inst[
|
|
284772
|
+
const k3 = keys4[i2];
|
|
284773
|
+
if (!(k3 in inst)) {
|
|
284774
|
+
inst[k3] = proto2[k3].bind(inst);
|
|
284773
284775
|
}
|
|
284774
284776
|
}
|
|
284775
284777
|
}
|
|
@@ -284822,7 +284824,7 @@ init_esm_shims();
|
|
|
284822
284824
|
init_esm_shims();
|
|
284823
284825
|
function getEnumValues(entries) {
|
|
284824
284826
|
const numericValues = Object.values(entries).filter((v2) => typeof v2 === "number");
|
|
284825
|
-
const values = Object.entries(entries).filter(([
|
|
284827
|
+
const values = Object.entries(entries).filter(([k3, _2]) => numericValues.indexOf(+k3) === -1).map(([_2, v2]) => v2);
|
|
284826
284828
|
return values;
|
|
284827
284829
|
}
|
|
284828
284830
|
function jsonStringifyReplacer(_2, value) {
|
|
@@ -284933,8 +284935,8 @@ function normalizeParams(_params) {
|
|
|
284933
284935
|
return params;
|
|
284934
284936
|
}
|
|
284935
284937
|
function optionalKeys(shape) {
|
|
284936
|
-
return Object.keys(shape).filter((
|
|
284937
|
-
return shape[
|
|
284938
|
+
return Object.keys(shape).filter((k3) => {
|
|
284939
|
+
return shape[k3]._zod.optin === "optional" && shape[k3]._zod.optout === "optional";
|
|
284938
284940
|
});
|
|
284939
284941
|
}
|
|
284940
284942
|
var NUMBER_FORMAT_RANGES = {
|
|
@@ -285476,9 +285478,9 @@ function handlePropertyResult(result, final, key, input, isOptionalIn, isOptiona
|
|
|
285476
285478
|
}
|
|
285477
285479
|
function normalizeDef(def) {
|
|
285478
285480
|
const keys4 = Object.keys(def.shape);
|
|
285479
|
-
for (const
|
|
285480
|
-
if (!def.shape?.[
|
|
285481
|
-
throw new Error(`Invalid element at key "${
|
|
285481
|
+
for (const k3 of keys4) {
|
|
285482
|
+
if (!def.shape?.[k3]?._zod?.traits?.has("$ZodType")) {
|
|
285483
|
+
throw new Error(`Invalid element at key "${k3}": expected a Zod schema`);
|
|
285482
285484
|
}
|
|
285483
285485
|
}
|
|
285484
285486
|
const okeys = optionalKeys(def.shape);
|
|
@@ -285787,7 +285789,7 @@ var $ZodEnum = /* @__PURE__ */ $constructor("$ZodEnum", (inst, def) => {
|
|
|
285787
285789
|
const values = getEnumValues(def.entries);
|
|
285788
285790
|
const valuesSet = new Set(values);
|
|
285789
285791
|
inst._zod.values = valuesSet;
|
|
285790
|
-
inst._zod.pattern = new RegExp(`^(${values.filter((
|
|
285792
|
+
inst._zod.pattern = new RegExp(`^(${values.filter((k3) => propertyKeyTypes.has(typeof k3)).map((o) => typeof o === "string" ? escapeRegex(o) : o.toString()).join("|")})$`);
|
|
285791
285793
|
inst._zod.parse = (payload, _ctx) => {
|
|
285792
285794
|
const input = payload.value;
|
|
285793
285795
|
if (valuesSet.has(input)) {
|
|
@@ -289716,12 +289718,12 @@ var opTap = (fn) => toPipeFn(opTapSync(fn), opTapAsync(fn));
|
|
|
289716
289718
|
|
|
289717
289719
|
// ../../node_modules/.pnpm/@cspell+cspell-pipe@8.19.4/node_modules/@cspell/cspell-pipe/dist/operators/unique.js
|
|
289718
289720
|
init_esm_shims();
|
|
289719
|
-
function opUniqueAsync(
|
|
289720
|
-
function fnK(
|
|
289721
|
+
function opUniqueAsync(k3) {
|
|
289722
|
+
function fnK(k4) {
|
|
289721
289723
|
async function* fn2(iter) {
|
|
289722
289724
|
const s = /* @__PURE__ */ new Set();
|
|
289723
289725
|
for await (const v2 of iter) {
|
|
289724
|
-
const kk =
|
|
289726
|
+
const kk = k4(v2);
|
|
289725
289727
|
if (s.has(kk))
|
|
289726
289728
|
continue;
|
|
289727
289729
|
s.add(kk);
|
|
@@ -289739,9 +289741,9 @@ function opUniqueAsync(k2) {
|
|
|
289739
289741
|
yield v2;
|
|
289740
289742
|
}
|
|
289741
289743
|
}
|
|
289742
|
-
return
|
|
289744
|
+
return k3 ? fnK(k3) : fn;
|
|
289743
289745
|
}
|
|
289744
|
-
function opUniqueSync(
|
|
289746
|
+
function opUniqueSync(k3) {
|
|
289745
289747
|
function fnK(key) {
|
|
289746
289748
|
function* fn2(iter) {
|
|
289747
289749
|
const s = /* @__PURE__ */ new Set();
|
|
@@ -289764,7 +289766,7 @@ function opUniqueSync(k2) {
|
|
|
289764
289766
|
yield v2;
|
|
289765
289767
|
}
|
|
289766
289768
|
}
|
|
289767
|
-
return
|
|
289769
|
+
return k3 ? fnK(k3) : fn;
|
|
289768
289770
|
}
|
|
289769
289771
|
var opUnique = (getKey) => toPipeFn(opUniqueSync(getKey), opUniqueAsync(getKey));
|
|
289770
289772
|
|
|
@@ -289960,14 +289962,14 @@ function autoCache(fn, size = CACHE_SIZE) {
|
|
|
289960
289962
|
ac.hits = 0;
|
|
289961
289963
|
ac.misses = 0;
|
|
289962
289964
|
ac.swaps = 0;
|
|
289963
|
-
function get3(
|
|
289964
|
-
const f = cache5.get(
|
|
289965
|
+
function get3(k3) {
|
|
289966
|
+
const f = cache5.get(k3);
|
|
289965
289967
|
if (f !== void 0) {
|
|
289966
289968
|
++ac.hits;
|
|
289967
289969
|
return f;
|
|
289968
289970
|
}
|
|
289969
|
-
const r = fn(
|
|
289970
|
-
cache5.set(
|
|
289971
|
+
const r = fn(k3);
|
|
289972
|
+
cache5.set(k3, r);
|
|
289971
289973
|
ac.swaps = cache5.swaps;
|
|
289972
289974
|
++ac.misses;
|
|
289973
289975
|
return r;
|
|
@@ -290805,7 +290807,7 @@ var ImplITrieNode = class _ImplITrieNode {
|
|
|
290805
290807
|
return !this.node.c ? EmptyValues : Object.values(this.node.c).map((n) => _ImplITrieNode.toITrieNode(n));
|
|
290806
290808
|
}
|
|
290807
290809
|
entries() {
|
|
290808
|
-
return !this.node.c ? EmptyEntries : Object.entries(this.node.c).map(([
|
|
290810
|
+
return !this.node.c ? EmptyEntries : Object.entries(this.node.c).map(([k3, n]) => [k3, _ImplITrieNode.toITrieNode(n)]);
|
|
290809
290811
|
}
|
|
290810
290812
|
/** get child ITrieNode */
|
|
290811
290813
|
get(char) {
|
|
@@ -290988,8 +290990,8 @@ function createSuggestionOptions(...opts) {
|
|
|
290988
290990
|
}
|
|
290989
290991
|
return options;
|
|
290990
290992
|
}
|
|
290991
|
-
function assign(dest, src,
|
|
290992
|
-
dest[
|
|
290993
|
+
function assign(dest, src, k3) {
|
|
290994
|
+
dest[k3] = src[k3] ?? dest[k3];
|
|
290993
290995
|
}
|
|
290994
290996
|
var PairingHeap = class {
|
|
290995
290997
|
constructor(compare42) {
|
|
@@ -292019,9 +292021,9 @@ var defaultTrieInfo = Object.freeze({
|
|
|
292019
292021
|
function mergeDefaults(value, defaultValue) {
|
|
292020
292022
|
const result = { ...defaultValue };
|
|
292021
292023
|
if (value) {
|
|
292022
|
-
for (const [
|
|
292023
|
-
if (
|
|
292024
|
-
result[
|
|
292024
|
+
for (const [k3, v2] of Object.entries(value)) {
|
|
292025
|
+
if (k3 in result) {
|
|
292026
|
+
result[k3] = v2 ?? result[k3];
|
|
292025
292027
|
}
|
|
292026
292028
|
}
|
|
292027
292029
|
}
|
|
@@ -294170,7 +294172,7 @@ function consolidate(root) {
|
|
|
294170
294172
|
}
|
|
294171
294173
|
function signature2(n) {
|
|
294172
294174
|
const isWord = n.f ? "*" : "";
|
|
294173
|
-
const ref = n.c ? JSON.stringify(Object.entries(n.c).map(([
|
|
294175
|
+
const ref = n.c ? JSON.stringify(Object.entries(n.c).map(([k3, n2]) => [k3, cached2.get(n2)])) : "";
|
|
294174
294176
|
return isWord + ref;
|
|
294175
294177
|
}
|
|
294176
294178
|
function findEow(n) {
|
|
@@ -294191,9 +294193,9 @@ function consolidate(root) {
|
|
|
294191
294193
|
return a2.length === b.size;
|
|
294192
294194
|
}
|
|
294193
294195
|
function deepCopy(n) {
|
|
294194
|
-
const
|
|
294195
|
-
if (
|
|
294196
|
-
return
|
|
294196
|
+
const k3 = knownMap.get(n);
|
|
294197
|
+
if (k3) {
|
|
294198
|
+
return k3;
|
|
294197
294199
|
}
|
|
294198
294200
|
const orig = n;
|
|
294199
294201
|
if (n.c) {
|
|
@@ -294222,7 +294224,7 @@ function consolidate(root) {
|
|
|
294222
294224
|
return knownMap.get(n) || deepCopy(n);
|
|
294223
294225
|
}
|
|
294224
294226
|
if (n.c) {
|
|
294225
|
-
const children = Object.entries(n.c).sort((a2, b) => a2[0] < b[0] ? -1 : 1).map(([
|
|
294227
|
+
const children = Object.entries(n.c).sort((a2, b) => a2[0] < b[0] ? -1 : 1).map(([k3, n2]) => [k3, process10(n2)]);
|
|
294226
294228
|
n.c = Object.fromEntries(children);
|
|
294227
294229
|
}
|
|
294228
294230
|
const sig = signature2(n);
|
|
@@ -294360,7 +294362,7 @@ function importTrie(linesX) {
|
|
|
294360
294362
|
const isWord = line[0] === EOW;
|
|
294361
294363
|
line = isWord ? line.slice(1) : line;
|
|
294362
294364
|
const flags = isWord ? flagsWord : {};
|
|
294363
|
-
const children = splitLine2(line).filter((a2) => !!a2).map((a2) => [a2[0], Number.parseInt(a2.slice(1) || "0", radix)]).map(([
|
|
294365
|
+
const children = splitLine2(line).filter((a2) => !!a2).map((a2) => [a2[0], Number.parseInt(a2.slice(1) || "0", radix)]).map(([k3, i2]) => [k3, nodes[i2]]);
|
|
294364
294366
|
const cNode = children.length ? { c: Object.fromEntries(children) } : {};
|
|
294365
294367
|
return { ...cNode, ...flags };
|
|
294366
294368
|
}
|
|
@@ -296271,14 +296273,14 @@ function autoResolveWeak(map4, key, resolve13) {
|
|
|
296271
296273
|
}
|
|
296272
296274
|
var AutoResolveWeakCache = class {
|
|
296273
296275
|
map = /* @__PURE__ */ new WeakMap();
|
|
296274
|
-
get(
|
|
296275
|
-
return resolve13 ? autoResolveWeak(this.map,
|
|
296276
|
+
get(k3, resolve13) {
|
|
296277
|
+
return resolve13 ? autoResolveWeak(this.map, k3, resolve13) : this.map.get(k3);
|
|
296276
296278
|
}
|
|
296277
|
-
has(
|
|
296278
|
-
return this.map.has(
|
|
296279
|
+
has(k3) {
|
|
296280
|
+
return this.map.has(k3);
|
|
296279
296281
|
}
|
|
296280
|
-
set(
|
|
296281
|
-
this.map.set(
|
|
296282
|
+
set(k3, v2) {
|
|
296283
|
+
this.map.set(k3, v2);
|
|
296282
296284
|
return this;
|
|
296283
296285
|
}
|
|
296284
296286
|
};
|
|
@@ -297001,8 +297003,8 @@ function createTrie(repMap, ignoreCharset) {
|
|
|
297001
297003
|
function addToTrie(node, match4, replaceWith) {
|
|
297002
297004
|
while (match4) {
|
|
297003
297005
|
const children = node.children || (node.children = /* @__PURE__ */ Object.create(null));
|
|
297004
|
-
const
|
|
297005
|
-
const childNode = children[
|
|
297006
|
+
const k3 = match4[0];
|
|
297007
|
+
const childNode = children[k3] || (children[k3] = /* @__PURE__ */ Object.create(null));
|
|
297006
297008
|
node = childNode;
|
|
297007
297009
|
match4 = match4.slice(1);
|
|
297008
297010
|
}
|
|
@@ -297340,7 +297342,7 @@ function extractAllSuggestions(typosDef) {
|
|
|
297340
297342
|
}
|
|
297341
297343
|
function extractIgnoreValues(typosDef, ignorePrefix) {
|
|
297342
297344
|
const pfxLen = ignorePrefix.length;
|
|
297343
|
-
return new Set(Object.keys(typosDef).filter((
|
|
297345
|
+
return new Set(Object.keys(typosDef).filter((k3) => k3.startsWith(ignorePrefix)).map((k3) => k3.slice(pfxLen)));
|
|
297344
297346
|
}
|
|
297345
297347
|
function isDefined3(v2) {
|
|
297346
297348
|
return v2 !== void 0 && v2 !== null;
|
|
@@ -298154,18 +298156,18 @@ var CacheStatsTracker = class {
|
|
|
298154
298156
|
};
|
|
298155
298157
|
var AutoResolveCache = class {
|
|
298156
298158
|
map = /* @__PURE__ */ new Map();
|
|
298157
|
-
get(
|
|
298158
|
-
return resolve13 ? autoResolve(this.map,
|
|
298159
|
+
get(k3, resolve13) {
|
|
298160
|
+
return resolve13 ? autoResolve(this.map, k3, resolve13) : this.map.get(k3);
|
|
298159
298161
|
}
|
|
298160
|
-
has(
|
|
298161
|
-
return this.map.has(
|
|
298162
|
+
has(k3) {
|
|
298163
|
+
return this.map.has(k3);
|
|
298162
298164
|
}
|
|
298163
|
-
set(
|
|
298164
|
-
this.map.set(
|
|
298165
|
+
set(k3, v2) {
|
|
298166
|
+
this.map.set(k3, v2);
|
|
298165
298167
|
return this;
|
|
298166
298168
|
}
|
|
298167
|
-
delete(
|
|
298168
|
-
return this.map.delete(
|
|
298169
|
+
delete(k3) {
|
|
298170
|
+
return this.map.delete(k3);
|
|
298169
298171
|
}
|
|
298170
298172
|
clear() {
|
|
298171
298173
|
this.map.clear();
|
|
@@ -298188,10 +298190,10 @@ function autoResolveWeak2(map4, key, resolve13) {
|
|
|
298188
298190
|
var AutoResolveWeakCache2 = class {
|
|
298189
298191
|
_map = /* @__PURE__ */ new WeakMap();
|
|
298190
298192
|
_stats = new CacheStatsTracker();
|
|
298191
|
-
get(
|
|
298193
|
+
get(k3, resolve13) {
|
|
298192
298194
|
const map4 = this._map;
|
|
298193
|
-
const found = map4.get(
|
|
298194
|
-
if (found !== void 0 || map4.has(
|
|
298195
|
+
const found = map4.get(k3);
|
|
298196
|
+
if (found !== void 0 || map4.has(k3)) {
|
|
298195
298197
|
++this._stats.hits;
|
|
298196
298198
|
return found;
|
|
298197
298199
|
}
|
|
@@ -298200,28 +298202,28 @@ var AutoResolveWeakCache2 = class {
|
|
|
298200
298202
|
return void 0;
|
|
298201
298203
|
}
|
|
298202
298204
|
++this._stats.resolved;
|
|
298203
|
-
const value = resolve13(
|
|
298204
|
-
map4.set(
|
|
298205
|
+
const value = resolve13(k3);
|
|
298206
|
+
map4.set(k3, value);
|
|
298205
298207
|
return value;
|
|
298206
298208
|
}
|
|
298207
298209
|
get map() {
|
|
298208
298210
|
return this._map;
|
|
298209
298211
|
}
|
|
298210
|
-
has(
|
|
298211
|
-
return this._map.has(
|
|
298212
|
+
has(k3) {
|
|
298213
|
+
return this._map.has(k3);
|
|
298212
298214
|
}
|
|
298213
|
-
set(
|
|
298215
|
+
set(k3, v2) {
|
|
298214
298216
|
++this._stats.sets;
|
|
298215
|
-
this._map.set(
|
|
298217
|
+
this._map.set(k3, v2);
|
|
298216
298218
|
return this;
|
|
298217
298219
|
}
|
|
298218
298220
|
clear() {
|
|
298219
298221
|
this._stats.clear();
|
|
298220
298222
|
this._map = /* @__PURE__ */ new WeakMap();
|
|
298221
298223
|
}
|
|
298222
|
-
delete(
|
|
298224
|
+
delete(k3) {
|
|
298223
298225
|
++this._stats.deletes;
|
|
298224
|
-
return this._map.delete(
|
|
298226
|
+
return this._map.delete(k3);
|
|
298225
298227
|
}
|
|
298226
298228
|
dispose() {
|
|
298227
298229
|
++this._stats.disposals;
|
|
@@ -298237,9 +298239,9 @@ function createAutoResolveWeakCache2() {
|
|
|
298237
298239
|
var AutoResolveWeakWeakCache = class {
|
|
298238
298240
|
_map = /* @__PURE__ */ new WeakMap();
|
|
298239
298241
|
_stats = new CacheStatsTracker();
|
|
298240
|
-
get(
|
|
298242
|
+
get(k3, resolve13) {
|
|
298241
298243
|
const map4 = this._map;
|
|
298242
|
-
const found = map4.get(
|
|
298244
|
+
const found = map4.get(k3);
|
|
298243
298245
|
const foundValue = found?.deref();
|
|
298244
298246
|
if (found !== void 0 && foundValue) {
|
|
298245
298247
|
++this._stats.hits;
|
|
@@ -298248,33 +298250,33 @@ var AutoResolveWeakWeakCache = class {
|
|
|
298248
298250
|
++this._stats.misses;
|
|
298249
298251
|
if (!resolve13) {
|
|
298250
298252
|
if (found) {
|
|
298251
|
-
map4.delete(
|
|
298253
|
+
map4.delete(k3);
|
|
298252
298254
|
}
|
|
298253
298255
|
return void 0;
|
|
298254
298256
|
}
|
|
298255
298257
|
++this._stats.resolved;
|
|
298256
|
-
const value = resolve13(
|
|
298257
|
-
map4.set(
|
|
298258
|
+
const value = resolve13(k3);
|
|
298259
|
+
map4.set(k3, new WeakRef(value));
|
|
298258
298260
|
return value;
|
|
298259
298261
|
}
|
|
298260
298262
|
get map() {
|
|
298261
298263
|
return this._map;
|
|
298262
298264
|
}
|
|
298263
|
-
has(
|
|
298264
|
-
return !!this._map.get(
|
|
298265
|
+
has(k3) {
|
|
298266
|
+
return !!this._map.get(k3)?.deref();
|
|
298265
298267
|
}
|
|
298266
|
-
set(
|
|
298268
|
+
set(k3, v2) {
|
|
298267
298269
|
++this._stats.sets;
|
|
298268
|
-
this._map.set(
|
|
298270
|
+
this._map.set(k3, new WeakRef(v2));
|
|
298269
298271
|
return this;
|
|
298270
298272
|
}
|
|
298271
298273
|
clear() {
|
|
298272
298274
|
this._stats.clear();
|
|
298273
298275
|
this._map = /* @__PURE__ */ new WeakMap();
|
|
298274
298276
|
}
|
|
298275
|
-
delete(
|
|
298277
|
+
delete(k3) {
|
|
298276
298278
|
++this._stats.deletes;
|
|
298277
|
-
return this._map.delete(
|
|
298279
|
+
return this._map.delete(k3);
|
|
298278
298280
|
}
|
|
298279
298281
|
dispose() {
|
|
298280
298282
|
++this._stats.disposals;
|
|
@@ -302051,7 +302053,7 @@ init_esm_shims();
|
|
|
302051
302053
|
var StrongWeakMap = class {
|
|
302052
302054
|
map;
|
|
302053
302055
|
constructor(init) {
|
|
302054
|
-
this.map = new Map(init?.map(([
|
|
302056
|
+
this.map = new Map(init?.map(([k3, v2]) => [k3, new WeakRef(v2)]));
|
|
302055
302057
|
}
|
|
302056
302058
|
clear() {
|
|
302057
302059
|
this.map.clear();
|
|
@@ -302398,7 +302400,7 @@ var DictionaryLoader = class {
|
|
|
302398
302400
|
calcKey(def) {
|
|
302399
302401
|
const path31 = def.path;
|
|
302400
302402
|
const loaderType = determineType(toFileURL(path31), def);
|
|
302401
|
-
const optValues = importantOptionKeys.map((
|
|
302403
|
+
const optValues = importantOptionKeys.map((k3) => def[k3]?.toString() || "");
|
|
302402
302404
|
const parts = [path31, loaderType, ...optValues];
|
|
302403
302405
|
return parts.join("|");
|
|
302404
302406
|
}
|
|
@@ -302504,7 +302506,7 @@ var specialDictionaryNames = {
|
|
|
302504
302506
|
ignoreWords: "[ignoreWords]",
|
|
302505
302507
|
suggestWords: "[suggestWords]"
|
|
302506
302508
|
};
|
|
302507
|
-
var mapSpecialDictionaryNamesToSettings = new Map(Object.entries(specialDictionaryNames).map(([
|
|
302509
|
+
var mapSpecialDictionaryNamesToSettings = new Map(Object.entries(specialDictionaryNames).map(([k3, v2]) => [v2, k3]));
|
|
302508
302510
|
function getInlineConfigDictionaries(settings) {
|
|
302509
302511
|
const { words = emptyWords, userWords = emptyWords, flagWords = emptyWords, ignoreWords = emptyWords, suggestWords = emptyWords } = settings;
|
|
302510
302512
|
const settingsWordsDictionary = createSpellingDictionary(words, specialDictionaryNames.words, "From Settings `words`", {
|
|
@@ -302964,7 +302966,7 @@ function buildLanguageExtensionMapSet(defs) {
|
|
|
302964
302966
|
}, /* @__PURE__ */ new Map());
|
|
302965
302967
|
}
|
|
302966
302968
|
function buildExtensionToLanguageIdMap(map4) {
|
|
302967
|
-
return new Map([...map4].map(([
|
|
302969
|
+
return new Map([...map4].map(([k3, s]) => [k3, [...s]]));
|
|
302968
302970
|
}
|
|
302969
302971
|
function matchPatternsToFilename(basename7) {
|
|
302970
302972
|
return idsWithRegExp.filter(({ regexp }) => regexp.test(basename7)).map(({ id }) => id);
|
|
@@ -303340,16 +303342,16 @@ var LIB;
|
|
|
303340
303342
|
}
|
|
303341
303343
|
return h2 && (n2 += "?", n2 += r2(h2, false, false)), a3 && (n2 += "#", n2 += e2 ? a3 : m2(a3, false, false)), n2;
|
|
303342
303344
|
}
|
|
303343
|
-
function
|
|
303345
|
+
function C2(t2) {
|
|
303344
303346
|
try {
|
|
303345
303347
|
return decodeURIComponent(t2);
|
|
303346
303348
|
} catch {
|
|
303347
|
-
return t2.length > 3 ? t2.substr(0, 3) +
|
|
303349
|
+
return t2.length > 3 ? t2.substr(0, 3) + C2(t2.substr(3)) : t2;
|
|
303348
303350
|
}
|
|
303349
303351
|
}
|
|
303350
303352
|
const A2 = /(%[0-9A-Za-z][0-9A-Za-z])+/g;
|
|
303351
303353
|
function w2(t2) {
|
|
303352
|
-
return t2.match(A2) ? t2.replace(A2, ((t3) =>
|
|
303354
|
+
return t2.match(A2) ? t2.replace(A2, ((t3) => C2(t3))) : t2;
|
|
303353
303355
|
}
|
|
303354
303356
|
var x = r(975);
|
|
303355
303357
|
const P3 = x.posix || x, _2 = "/";
|
|
@@ -306312,7 +306314,7 @@ var DirConfigScanner = class {
|
|
|
306312
306314
|
}
|
|
306313
306315
|
};
|
|
306314
306316
|
function setupSearchPlacesByProtocol(searchPlaces2, allowedExtensionsByProtocol) {
|
|
306315
|
-
const map4 = new Map([...allowedExtensionsByProtocol.entries()].map(([
|
|
306317
|
+
const map4 = new Map([...allowedExtensionsByProtocol.entries()].map(([k3, v2]) => [k3, new Set(v2)]).map(([protocol, exts]) => [protocol, searchPlaces2.filter((url3) => exts.has(extname5(url3)))]));
|
|
306316
306318
|
return map4;
|
|
306317
306319
|
}
|
|
306318
306320
|
async function checkPackageJson(fs18, filename) {
|
|
@@ -308009,7 +308011,7 @@ function stringToList(sList) {
|
|
|
308009
308011
|
}
|
|
308010
308012
|
function memorizer(resolver2) {
|
|
308011
308013
|
const cache5 = createAutoResolveCache();
|
|
308012
|
-
return (
|
|
308014
|
+
return (k3) => cache5.get(k3, resolver2);
|
|
308013
308015
|
}
|
|
308014
308016
|
var _normalizeLanguageId = memorizer(__normalizeLanguageId);
|
|
308015
308017
|
function __normalizeLanguageId(langId) {
|
|
@@ -309947,11 +309949,11 @@ function flatten2(data) {
|
|
|
309947
309949
|
size += data[i2].length;
|
|
309948
309950
|
}
|
|
309949
309951
|
const result = new Array(size);
|
|
309950
|
-
let
|
|
309952
|
+
let k3 = 0;
|
|
309951
309953
|
for (let i2 = 0; i2 < data.length; ++i2) {
|
|
309952
309954
|
const d2 = data[i2];
|
|
309953
309955
|
for (let j2 = 0; j2 < d2.length; ++j2) {
|
|
309954
|
-
result[
|
|
309956
|
+
result[k3++] = d2[j2];
|
|
309955
309957
|
}
|
|
309956
309958
|
}
|
|
309957
309959
|
return result;
|
|
@@ -310483,7 +310485,7 @@ async function spellCheckFullDocument(document2, options, settingsOrConfigFile)
|
|
|
310483
310485
|
const doc = documentToTextDocument(document2);
|
|
310484
310486
|
const docValOptions = options;
|
|
310485
310487
|
const docValidator = await DocumentValidator.create(doc, docValOptions, settingsOrConfigFile).finally(() => timerPrepare.end());
|
|
310486
|
-
Object.assign(perf2, Object.fromEntries(Object.entries(docValidator.perfTiming).map(([
|
|
310488
|
+
Object.assign(perf2, Object.fromEntries(Object.entries(docValidator.perfTiming).map(([k3, v2]) => ["_" + k3, v2])));
|
|
310487
310489
|
const prep = docValidator._getPreparations();
|
|
310488
310490
|
if (docValidator.errors.length) {
|
|
310489
310491
|
return {
|
|
@@ -310500,7 +310502,7 @@ async function spellCheckFullDocument(document2, options, settingsOrConfigFile)
|
|
|
310500
310502
|
timerCheck.start();
|
|
310501
310503
|
const issues = docValidator.checkDocument();
|
|
310502
310504
|
timerCheck.end();
|
|
310503
|
-
Object.assign(perf2, Object.fromEntries(Object.entries(docValidator.perfTiming).map(([
|
|
310505
|
+
Object.assign(perf2, Object.fromEntries(Object.entries(docValidator.perfTiming).map(([k3, v2]) => ["_" + k3, v2])));
|
|
310504
310506
|
const result = {
|
|
310505
310507
|
document: document2,
|
|
310506
310508
|
options,
|
|
@@ -312858,8 +312860,8 @@ var DiskCache = class {
|
|
|
312858
312860
|
};
|
|
312859
312861
|
function getTreeEntry(tree, keys4) {
|
|
312860
312862
|
let r = tree;
|
|
312861
|
-
for (const
|
|
312862
|
-
r = r.c?.get(
|
|
312863
|
+
for (const k3 of keys4) {
|
|
312864
|
+
r = r.c?.get(k3);
|
|
312863
312865
|
if (!r)
|
|
312864
312866
|
return r;
|
|
312865
312867
|
}
|
|
@@ -312868,14 +312870,14 @@ function getTreeEntry(tree, keys4) {
|
|
|
312868
312870
|
function setTreeEntry(tree, deps, update = false) {
|
|
312869
312871
|
let r = tree;
|
|
312870
312872
|
for (const d3 of deps) {
|
|
312871
|
-
const
|
|
312873
|
+
const k3 = d3.f;
|
|
312872
312874
|
if (!r.c) {
|
|
312873
312875
|
r.c = /* @__PURE__ */ new Map();
|
|
312874
312876
|
}
|
|
312875
|
-
const cn = r.c.get(
|
|
312877
|
+
const cn = r.c.get(k3);
|
|
312876
312878
|
const n = cn ?? {};
|
|
312877
312879
|
if (!cn) {
|
|
312878
|
-
r.c.set(
|
|
312880
|
+
r.c.set(k3, n);
|
|
312879
312881
|
}
|
|
312880
312882
|
r = n;
|
|
312881
312883
|
}
|
|
@@ -328563,8 +328565,8 @@ function expand_(str2, max4, isTop) {
|
|
|
328563
328565
|
const pre = m2.pre;
|
|
328564
328566
|
const post = m2.post.length ? expand_(m2.post, max4, false) : [""];
|
|
328565
328567
|
if (/\$$/.test(m2.pre)) {
|
|
328566
|
-
for (let
|
|
328567
|
-
const expansion = pre + "{" + m2.body + "}" + post[
|
|
328568
|
+
for (let k3 = 0; k3 < post.length && k3 < max4; k3++) {
|
|
328569
|
+
const expansion = pre + "{" + m2.body + "}" + post[k3];
|
|
328568
328570
|
expansions.push(expansion);
|
|
328569
328571
|
}
|
|
328570
328572
|
} else {
|
|
@@ -328635,8 +328637,8 @@ function expand_(str2, max4, isTop) {
|
|
|
328635
328637
|
}
|
|
328636
328638
|
}
|
|
328637
328639
|
for (let j2 = 0; j2 < N.length; j2++) {
|
|
328638
|
-
for (let
|
|
328639
|
-
const expansion = pre + N[j2] + post[
|
|
328640
|
+
for (let k3 = 0; k3 < post.length && expansions.length < max4; k3++) {
|
|
328641
|
+
const expansion = pre + N[j2] + post[k3];
|
|
328640
328642
|
if (!isTop || isSequence || expansion) {
|
|
328641
328643
|
expansions.push(expansion);
|
|
328642
328644
|
}
|
|
@@ -330249,22 +330251,21 @@ import { fileURLToPath as fileURLToPath26 } from "node:url";
|
|
|
330249
330251
|
// ../../node_modules/.pnpm/path-scurry@2.0.2/node_modules/path-scurry/dist/esm/index.js
|
|
330250
330252
|
init_esm_shims();
|
|
330251
330253
|
|
|
330252
|
-
// ../../node_modules/.pnpm/lru-cache@11.
|
|
330254
|
+
// ../../node_modules/.pnpm/lru-cache@11.5.0/node_modules/lru-cache/dist/esm/node/index.min.js
|
|
330253
330255
|
init_esm_shims();
|
|
330254
|
-
import { tracingChannel as
|
|
330255
|
-
var S2 =
|
|
330256
|
-
var W =
|
|
330257
|
-
var
|
|
330256
|
+
import { tracingChannel as G, channel as P2 } from "node:diagnostics_channel";
|
|
330257
|
+
var S2 = P2("lru-cache:metrics");
|
|
330258
|
+
var W = G("lru-cache");
|
|
330259
|
+
var L2 = typeof performance == "object" && performance && typeof performance.now == "function" ? performance : Date;
|
|
330258
330260
|
var D = () => S2.hasSubscribers || W.hasSubscribers;
|
|
330259
330261
|
var U2 = /* @__PURE__ */ new Set();
|
|
330260
|
-
var
|
|
330261
|
-
var
|
|
330262
|
-
typeof
|
|
330262
|
+
var M = typeof process == "object" && process ? process : {};
|
|
330263
|
+
var k2 = (u4, e, t, i2) => {
|
|
330264
|
+
typeof M.emitWarning == "function" ? M.emitWarning(u4, e, t, i2) : console.error(`[${t}] ${e}: ${u4}`);
|
|
330263
330265
|
};
|
|
330264
330266
|
var H = (u4) => !U2.has(u4);
|
|
330265
|
-
var
|
|
330266
|
-
var
|
|
330267
|
-
var j = (u4) => F2(u4) ? u4 <= Math.pow(2, 8) ? Uint8Array : u4 <= Math.pow(2, 16) ? Uint16Array : u4 <= Math.pow(2, 32) ? Uint32Array : u4 <= Number.MAX_SAFE_INTEGER ? O : null : null;
|
|
330267
|
+
var T2 = (u4) => !!u4 && u4 === Math.floor(u4) && u4 > 0 && isFinite(u4);
|
|
330268
|
+
var j = (u4) => T2(u4) ? u4 <= Math.pow(2, 8) ? Uint8Array : u4 <= Math.pow(2, 16) ? Uint16Array : u4 <= Math.pow(2, 32) ? Uint32Array : u4 <= Number.MAX_SAFE_INTEGER ? O : null : null;
|
|
330268
330269
|
var O = class extends Array {
|
|
330269
330270
|
constructor(e) {
|
|
330270
330271
|
super(e), this.fill(0);
|
|
@@ -330292,14 +330293,14 @@ var R2 = class u2 {
|
|
|
330292
330293
|
return this.heap[--this.length];
|
|
330293
330294
|
}
|
|
330294
330295
|
};
|
|
330295
|
-
var
|
|
330296
|
+
var I2 = class u3 {
|
|
330296
330297
|
#o;
|
|
330297
|
-
#
|
|
330298
|
-
#w;
|
|
330299
|
-
#x;
|
|
330298
|
+
#c;
|
|
330300
330299
|
#S;
|
|
330300
|
+
#O;
|
|
330301
|
+
#w;
|
|
330301
330302
|
#M;
|
|
330302
|
-
#
|
|
330303
|
+
#I;
|
|
330303
330304
|
#m;
|
|
330304
330305
|
get perf() {
|
|
330305
330306
|
return this.#m;
|
|
@@ -330319,14 +330320,15 @@ var M = class u3 {
|
|
|
330319
330320
|
allowStaleOnFetchAbort;
|
|
330320
330321
|
allowStaleOnFetchRejection;
|
|
330321
330322
|
ignoreFetchAbort;
|
|
330323
|
+
backgroundFetchSize;
|
|
330322
330324
|
#n;
|
|
330323
330325
|
#b;
|
|
330324
330326
|
#s;
|
|
330325
330327
|
#i;
|
|
330326
330328
|
#t;
|
|
330327
|
-
#a;
|
|
330328
|
-
#c;
|
|
330329
330329
|
#l;
|
|
330330
|
+
#u;
|
|
330331
|
+
#a;
|
|
330330
330332
|
#h;
|
|
330331
330333
|
#y;
|
|
330332
330334
|
#r;
|
|
@@ -330335,12 +330337,12 @@ var M = class u3 {
|
|
|
330335
330337
|
#d;
|
|
330336
330338
|
#g;
|
|
330337
330339
|
#T;
|
|
330338
|
-
#
|
|
330340
|
+
#U;
|
|
330339
330341
|
#f;
|
|
330340
|
-
#
|
|
330342
|
+
#x;
|
|
330341
330343
|
static unsafeExposeInternals(e) {
|
|
330342
|
-
return { starts: e.#F, ttls: e.#d, autopurgeTimers: e.#g, sizes: e.#_, keyMap: e.#s, keyList: e.#i, valList: e.#t, next: e.#
|
|
330343
|
-
return e.#
|
|
330344
|
+
return { starts: e.#F, ttls: e.#d, autopurgeTimers: e.#g, sizes: e.#_, keyMap: e.#s, keyList: e.#i, valList: e.#t, next: e.#l, prev: e.#u, get head() {
|
|
330345
|
+
return e.#a;
|
|
330344
330346
|
}, get tail() {
|
|
330345
330347
|
return e.#h;
|
|
330346
330348
|
}, free: e.#y, isBackgroundFetch: (t) => e.#e(t), backgroundFetch: (t, i2, s, n) => e.#P(t, i2, s, n), moveToTail: (t) => e.#L(t), indexes: (t) => e.#A(t), rindexes: (t) => e.#z(t), isStale: (t) => e.#p(t) };
|
|
@@ -330349,7 +330351,7 @@ var M = class u3 {
|
|
|
330349
330351
|
return this.#o;
|
|
330350
330352
|
}
|
|
330351
330353
|
get maxSize() {
|
|
330352
|
-
return this.#
|
|
330354
|
+
return this.#c;
|
|
330353
330355
|
}
|
|
330354
330356
|
get calculatedSize() {
|
|
330355
330357
|
return this.#b;
|
|
@@ -330361,116 +330363,118 @@ var M = class u3 {
|
|
|
330361
330363
|
return this.#M;
|
|
330362
330364
|
}
|
|
330363
330365
|
get memoMethod() {
|
|
330364
|
-
return this.#
|
|
330366
|
+
return this.#I;
|
|
330365
330367
|
}
|
|
330366
330368
|
get dispose() {
|
|
330367
|
-
return this.#
|
|
330369
|
+
return this.#S;
|
|
330368
330370
|
}
|
|
330369
330371
|
get onInsert() {
|
|
330370
|
-
return this.#
|
|
330372
|
+
return this.#O;
|
|
330371
330373
|
}
|
|
330372
330374
|
get disposeAfter() {
|
|
330373
|
-
return this.#
|
|
330375
|
+
return this.#w;
|
|
330374
330376
|
}
|
|
330375
330377
|
constructor(e) {
|
|
330376
|
-
let { max: t = 0, ttl: i2, ttlResolution: s = 1, ttlAutopurge: n, updateAgeOnGet:
|
|
330377
|
-
if (
|
|
330378
|
-
if (this.#m =
|
|
330378
|
+
let { max: t = 0, ttl: i2, ttlResolution: s = 1, ttlAutopurge: n, updateAgeOnGet: r, updateAgeOnHas: h, allowStale: a2, dispose: o, onInsert: d2, disposeAfter: y2, noDisposeOnSet: _2, noUpdateTTL: c, maxSize: g2 = 0, maxEntrySize: f = 0, sizeCalculation: b, fetchMethod: l, memoMethod: w2, noDeleteOnFetchRejection: F2, noDeleteOnStaleGet: m2, allowStaleOnFetchRejection: p, allowStaleOnFetchAbort: A2, ignoreFetchAbort: z, backgroundFetchSize: C2 = 1, perf: E } = e;
|
|
330379
|
+
if (this.backgroundFetchSize = C2, E !== void 0 && typeof E?.now != "function") throw new TypeError("perf option must have a now() method if specified");
|
|
330380
|
+
if (this.#m = E ?? L2, t !== 0 && !T2(t)) throw new TypeError("max option must be a nonnegative integer");
|
|
330379
330381
|
let v2 = t ? j(t) : Array;
|
|
330380
330382
|
if (!v2) throw new Error("invalid max value: " + t);
|
|
330381
|
-
if (this.#o = t, this.#
|
|
330382
|
-
if (!this.#
|
|
330383
|
+
if (this.#o = t, this.#c = g2, this.maxEntrySize = f || this.#c, this.sizeCalculation = b, this.sizeCalculation) {
|
|
330384
|
+
if (!this.#c && !this.maxEntrySize) throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");
|
|
330383
330385
|
if (typeof this.sizeCalculation != "function") throw new TypeError("sizeCalculation set to non-function");
|
|
330384
330386
|
}
|
|
330385
|
-
if (
|
|
330386
|
-
if (this.#
|
|
330387
|
-
if (this.#M =
|
|
330388
|
-
if (this.#
|
|
330389
|
-
if (!
|
|
330387
|
+
if (w2 !== void 0 && typeof w2 != "function") throw new TypeError("memoMethod must be a function if defined");
|
|
330388
|
+
if (this.#I = w2, l !== void 0 && typeof l != "function") throw new TypeError("fetchMethod must be a function if specified");
|
|
330389
|
+
if (this.#M = l, this.#U = !!l, this.#s = /* @__PURE__ */ new Map(), this.#i = Array.from({ length: t }).fill(void 0), this.#t = Array.from({ length: t }).fill(void 0), this.#l = new v2(t), this.#u = new v2(t), this.#a = 0, this.#h = 0, this.#y = R2.create(t), this.#n = 0, this.#b = 0, typeof o == "function" && (this.#S = o), typeof d2 == "function" && (this.#O = d2), typeof y2 == "function" ? (this.#w = y2, this.#r = []) : (this.#w = void 0, this.#r = void 0), this.#T = !!this.#S, this.#x = !!this.#O, this.#f = !!this.#w, this.noDisposeOnSet = !!_2, this.noUpdateTTL = !!c, this.noDeleteOnFetchRejection = !!F2, this.allowStaleOnFetchRejection = !!p, this.allowStaleOnFetchAbort = !!A2, this.ignoreFetchAbort = !!z, this.maxEntrySize !== 0) {
|
|
330390
|
+
if (this.#c !== 0 && !T2(this.#c)) throw new TypeError("maxSize must be a positive integer if specified");
|
|
330391
|
+
if (!T2(this.maxEntrySize)) throw new TypeError("maxEntrySize must be a positive integer if specified");
|
|
330390
330392
|
this.#X();
|
|
330391
330393
|
}
|
|
330392
|
-
if (this.allowStale = !!
|
|
330393
|
-
if (!
|
|
330394
|
-
this.#
|
|
330394
|
+
if (this.allowStale = !!a2, this.noDeleteOnStaleGet = !!m2, this.updateAgeOnGet = !!r, this.updateAgeOnHas = !!h, this.ttlResolution = T2(s) || s === 0 ? s : 1, this.ttlAutopurge = !!n, this.ttl = i2 || 0, this.ttl) {
|
|
330395
|
+
if (!T2(this.ttl)) throw new TypeError("ttl must be a positive integer if specified");
|
|
330396
|
+
this.#k();
|
|
330395
330397
|
}
|
|
330396
|
-
if (this.#o === 0 && this.ttl === 0 && this.#
|
|
330397
|
-
if (!this.ttlAutopurge && !this.#o && !this.#
|
|
330398
|
-
let
|
|
330399
|
-
H(
|
|
330398
|
+
if (this.#o === 0 && this.ttl === 0 && this.#c === 0) throw new TypeError("At least one of max, maxSize, or ttl is required");
|
|
330399
|
+
if (!this.ttlAutopurge && !this.#o && !this.#c) {
|
|
330400
|
+
let x = "LRU_CACHE_UNBOUNDED";
|
|
330401
|
+
H(x) && (U2.add(x), k2("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.", "UnboundedCacheWarning", x, u3));
|
|
330400
330402
|
}
|
|
330401
330403
|
}
|
|
330402
330404
|
getRemainingTTL(e) {
|
|
330403
330405
|
return this.#s.has(e) ? 1 / 0 : 0;
|
|
330404
330406
|
}
|
|
330405
|
-
#
|
|
330407
|
+
#k() {
|
|
330406
330408
|
let e = new O(this.#o), t = new O(this.#o);
|
|
330407
330409
|
this.#d = e, this.#F = t;
|
|
330408
330410
|
let i2 = this.ttlAutopurge ? Array.from({ length: this.#o }) : void 0;
|
|
330409
|
-
this.#g = i2, this.#
|
|
330410
|
-
t[
|
|
330411
|
-
}, this.#D = (
|
|
330412
|
-
t[
|
|
330413
|
-
};
|
|
330414
|
-
let s = this.ttlAutopurge ? (
|
|
330415
|
-
if (i2?.[
|
|
330416
|
-
let
|
|
330417
|
-
this.#p(
|
|
330418
|
-
},
|
|
330419
|
-
|
|
330411
|
+
this.#g = i2, this.#H = (h, a2, o = this.#m.now()) => {
|
|
330412
|
+
t[h] = a2 !== 0 ? o : 0, e[h] = a2, s(h, a2);
|
|
330413
|
+
}, this.#D = (h) => {
|
|
330414
|
+
t[h] = e[h] !== 0 ? this.#m.now() : 0, s(h, e[h]);
|
|
330415
|
+
};
|
|
330416
|
+
let s = this.ttlAutopurge ? (h, a2) => {
|
|
330417
|
+
if (i2?.[h] && (clearTimeout(i2[h]), i2[h] = void 0), a2 && a2 !== 0 && i2) {
|
|
330418
|
+
let o = setTimeout(() => {
|
|
330419
|
+
this.#p(h) && this.#E(this.#i[h], "expire");
|
|
330420
|
+
}, a2 + 1);
|
|
330421
|
+
o.unref && o.unref(), i2[h] = o;
|
|
330420
330422
|
}
|
|
330421
330423
|
} : () => {
|
|
330422
330424
|
};
|
|
330423
|
-
this.#
|
|
330424
|
-
if (e[
|
|
330425
|
-
let
|
|
330426
|
-
if (!
|
|
330427
|
-
|
|
330428
|
-
let
|
|
330429
|
-
|
|
330425
|
+
this.#v = (h, a2) => {
|
|
330426
|
+
if (e[a2]) {
|
|
330427
|
+
let o = e[a2], d2 = t[a2];
|
|
330428
|
+
if (!o || !d2) return;
|
|
330429
|
+
h.ttl = o, h.start = d2, h.now = n || r();
|
|
330430
|
+
let y2 = h.now - d2;
|
|
330431
|
+
h.remainingTTL = o - y2;
|
|
330430
330432
|
}
|
|
330431
330433
|
};
|
|
330432
|
-
let n = 0,
|
|
330433
|
-
let
|
|
330434
|
+
let n = 0, r = () => {
|
|
330435
|
+
let h = this.#m.now();
|
|
330434
330436
|
if (this.ttlResolution > 0) {
|
|
330435
|
-
n =
|
|
330436
|
-
let
|
|
330437
|
-
|
|
330437
|
+
n = h;
|
|
330438
|
+
let a2 = setTimeout(() => n = 0, this.ttlResolution);
|
|
330439
|
+
a2.unref && a2.unref();
|
|
330438
330440
|
}
|
|
330439
|
-
return
|
|
330441
|
+
return h;
|
|
330440
330442
|
};
|
|
330441
|
-
this.getRemainingTTL = (
|
|
330442
|
-
let
|
|
330443
|
-
if (
|
|
330444
|
-
let
|
|
330445
|
-
if (!
|
|
330446
|
-
let
|
|
330447
|
-
return
|
|
330448
|
-
}, this.#p = (
|
|
330449
|
-
let
|
|
330450
|
-
return !!
|
|
330443
|
+
this.getRemainingTTL = (h) => {
|
|
330444
|
+
let a2 = this.#s.get(h);
|
|
330445
|
+
if (a2 === void 0) return 0;
|
|
330446
|
+
let o = e[a2], d2 = t[a2];
|
|
330447
|
+
if (!o || !d2) return 1 / 0;
|
|
330448
|
+
let y2 = (n || r()) - d2;
|
|
330449
|
+
return o - y2;
|
|
330450
|
+
}, this.#p = (h) => {
|
|
330451
|
+
let a2 = t[h], o = e[h];
|
|
330452
|
+
return !!o && !!a2 && (n || r()) - a2 > o;
|
|
330451
330453
|
};
|
|
330452
330454
|
}
|
|
330453
330455
|
#D = () => {
|
|
330454
330456
|
};
|
|
330455
|
-
#
|
|
330457
|
+
#v = () => {
|
|
330456
330458
|
};
|
|
330457
|
-
#
|
|
330459
|
+
#H = () => {
|
|
330458
330460
|
};
|
|
330459
330461
|
#p = () => false;
|
|
330460
330462
|
#X() {
|
|
330461
330463
|
let e = new O(this.#o);
|
|
330462
330464
|
this.#b = 0, this.#_ = e, this.#R = (t) => {
|
|
330463
330465
|
this.#b -= e[t], e[t] = 0;
|
|
330464
|
-
}, this.#
|
|
330465
|
-
if (
|
|
330466
|
-
|
|
330467
|
-
if (
|
|
330468
|
-
|
|
330469
|
-
|
|
330466
|
+
}, this.#N = (t, i2, s, n) => {
|
|
330467
|
+
if (!T2(s)) {
|
|
330468
|
+
if (this.#e(i2)) return this.backgroundFetchSize;
|
|
330469
|
+
if (n) {
|
|
330470
|
+
if (typeof n != "function") throw new TypeError("sizeCalculation must be a function");
|
|
330471
|
+
if (s = n(i2, t), !T2(s)) throw new TypeError("sizeCalculation return invalid (expect positive integer)");
|
|
330472
|
+
} else throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");
|
|
330473
|
+
}
|
|
330470
330474
|
return s;
|
|
330471
|
-
}, this.#
|
|
330472
|
-
if (e[t] = i2, this.#
|
|
330473
|
-
let n = this.#
|
|
330475
|
+
}, this.#j = (t, i2, s) => {
|
|
330476
|
+
if (e[t] = i2, this.#c) {
|
|
330477
|
+
let n = this.#c - e[t];
|
|
330474
330478
|
for (; this.#b > n; ) this.#G(true);
|
|
330475
330479
|
}
|
|
330476
330480
|
this.#b += e[t], s && (s.entrySize = i2, s.totalCalculatedSize = this.#b);
|
|
@@ -330478,17 +330482,17 @@ var M = class u3 {
|
|
|
330478
330482
|
}
|
|
330479
330483
|
#R = (e) => {
|
|
330480
330484
|
};
|
|
330481
|
-
#
|
|
330485
|
+
#j = (e, t, i2) => {
|
|
330482
330486
|
};
|
|
330483
|
-
#
|
|
330487
|
+
#N = (e, t, i2, s) => {
|
|
330484
330488
|
if (i2 || s) throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");
|
|
330485
330489
|
return 0;
|
|
330486
330490
|
};
|
|
330487
330491
|
*#A({ allowStale: e = this.allowStale } = {}) {
|
|
330488
|
-
if (this.#n) for (let t = this.#h; this.#V(t) && ((e || !this.#p(t)) && (yield t), t !== this.#
|
|
330492
|
+
if (this.#n) for (let t = this.#h; this.#V(t) && ((e || !this.#p(t)) && (yield t), t !== this.#a); ) t = this.#u[t];
|
|
330489
330493
|
}
|
|
330490
330494
|
*#z({ allowStale: e = this.allowStale } = {}) {
|
|
330491
|
-
if (this.#n) for (let t = this.#
|
|
330495
|
+
if (this.#n) for (let t = this.#a; this.#V(t) && ((e || !this.#p(t)) && (yield t), t !== this.#h); ) t = this.#l[t];
|
|
330492
330496
|
}
|
|
330493
330497
|
#V(e) {
|
|
330494
330498
|
return e !== void 0 && this.#s.get(this.#i[e]) === e;
|
|
@@ -330541,7 +330545,7 @@ var M = class u3 {
|
|
|
330541
330545
|
}
|
|
330542
330546
|
purgeStale() {
|
|
330543
330547
|
let e = false;
|
|
330544
|
-
for (let t of this.#z({ allowStale: true })) this.#p(t) && (this.#
|
|
330548
|
+
for (let t of this.#z({ allowStale: true })) this.#p(t) && (this.#E(this.#i[t], "expire"), e = true);
|
|
330545
330549
|
return e;
|
|
330546
330550
|
}
|
|
330547
330551
|
info(e) {
|
|
@@ -330551,10 +330555,10 @@ var M = class u3 {
|
|
|
330551
330555
|
if (s === void 0) return;
|
|
330552
330556
|
let n = { value: s };
|
|
330553
330557
|
if (this.#d && this.#F) {
|
|
330554
|
-
let
|
|
330555
|
-
if (
|
|
330556
|
-
let
|
|
330557
|
-
n.ttl =
|
|
330558
|
+
let r = this.#d[t], h = this.#F[t];
|
|
330559
|
+
if (r && h) {
|
|
330560
|
+
let a2 = r - (this.#m.now() - h);
|
|
330561
|
+
n.ttl = a2, n.start = Date.now();
|
|
330558
330562
|
}
|
|
330559
330563
|
}
|
|
330560
330564
|
return this.#_ && (n.size = this.#_[t]), n;
|
|
@@ -330564,13 +330568,13 @@ var M = class u3 {
|
|
|
330564
330568
|
for (let t of this.#A({ allowStale: true })) {
|
|
330565
330569
|
let i2 = this.#i[t], s = this.#t[t], n = this.#e(s) ? s.__staleWhileFetching : s;
|
|
330566
330570
|
if (n === void 0 || i2 === void 0) continue;
|
|
330567
|
-
let
|
|
330571
|
+
let r = { value: n };
|
|
330568
330572
|
if (this.#d && this.#F) {
|
|
330569
|
-
|
|
330570
|
-
let
|
|
330571
|
-
|
|
330573
|
+
r.ttl = this.#d[t];
|
|
330574
|
+
let h = this.#m.now() - this.#F[t];
|
|
330575
|
+
r.start = Math.floor(Date.now() - h);
|
|
330572
330576
|
}
|
|
330573
|
-
this.#_ && (
|
|
330577
|
+
this.#_ && (r.size = this.#_[t]), e.unshift([i2, r]);
|
|
330574
330578
|
}
|
|
330575
330579
|
return e;
|
|
330576
330580
|
}
|
|
@@ -330581,51 +330585,49 @@ var M = class u3 {
|
|
|
330581
330585
|
let s = Date.now() - i2.start;
|
|
330582
330586
|
i2.start = this.#m.now() - s;
|
|
330583
330587
|
}
|
|
330584
|
-
this.#
|
|
330588
|
+
this.#W(t, i2.value, i2);
|
|
330585
330589
|
}
|
|
330586
330590
|
}
|
|
330587
330591
|
set(e, t, i2 = {}) {
|
|
330588
330592
|
let { status: s = S2.hasSubscribers ? {} : void 0 } = i2;
|
|
330589
|
-
i2.status = s, s && (s.op = "set", s.key = e, t !== void 0 && (s.value = t));
|
|
330590
|
-
let n = this.#
|
|
330593
|
+
i2.status = s, s && (s.op = "set", s.key = e, t !== void 0 && (s.value = t), s.cache = this);
|
|
330594
|
+
let n = this.#W(e, t, i2);
|
|
330591
330595
|
return s && S2.hasSubscribers && S2.publish(s), n;
|
|
330592
330596
|
}
|
|
330593
|
-
#
|
|
330594
|
-
let { ttl:
|
|
330595
|
-
if (t === void 0) return
|
|
330596
|
-
let { noUpdateTTL:
|
|
330597
|
-
|
|
330598
|
-
let
|
|
330599
|
-
if (this.maxEntrySize &&
|
|
330600
|
-
let
|
|
330601
|
-
if (
|
|
330597
|
+
#W(e, t, i2, s) {
|
|
330598
|
+
let { ttl: n = this.ttl, start: r, noDisposeOnSet: h = this.noDisposeOnSet, sizeCalculation: a2 = this.sizeCalculation, status: o } = i2, d2 = this.#e(t);
|
|
330599
|
+
if (t === void 0) return o && (o.set = "deleted"), this.delete(e), this;
|
|
330600
|
+
let { noUpdateTTL: y2 = this.noUpdateTTL } = i2;
|
|
330601
|
+
o && !d2 && (o.value = t);
|
|
330602
|
+
let _2 = this.#N(e, t, i2.size || 0, a2, o);
|
|
330603
|
+
if (this.maxEntrySize && _2 > this.maxEntrySize) return this.#E(e, "set"), o && (o.set = "miss", o.maxEntrySizeExceeded = true), this;
|
|
330604
|
+
let c = this.#n === 0 ? void 0 : this.#s.get(e);
|
|
330605
|
+
if (c === void 0) c = this.#n === 0 ? this.#h : this.#y.length !== 0 ? this.#y.pop() : this.#n === this.#o ? this.#G(false) : this.#n, this.#i[c] = e, this.#t[c] = t, this.#s.set(e, c), this.#l[this.#h] = c, this.#u[c] = this.#h, this.#h = c, this.#n++, this.#j(c, _2, o), o && (o.set = "add"), y2 = false, this.#x && !d2 && this.#O?.(t, e, "add");
|
|
330602
330606
|
else {
|
|
330603
|
-
this.#L(
|
|
330604
|
-
let g2 = this.#t[
|
|
330607
|
+
this.#L(c);
|
|
330608
|
+
let g2 = this.#t[c];
|
|
330605
330609
|
if (t !== g2) {
|
|
330606
|
-
if (
|
|
330607
|
-
g2.__abortController.abort(new Error("replaced"));
|
|
330608
|
-
let { __staleWhileFetching:
|
|
330609
|
-
|
|
330610
|
-
} else
|
|
330611
|
-
if (this.#R(
|
|
330612
|
-
|
|
330613
|
-
|
|
330614
|
-
|
|
330615
|
-
|
|
330616
|
-
|
|
330617
|
-
|
|
330618
|
-
|
|
330619
|
-
|
|
330620
|
-
let g2 = this.#r, p;
|
|
330621
|
-
for (; p = g2?.shift(); ) this.#S?.(...p);
|
|
330610
|
+
if (!h) if (this.#e(g2)) {
|
|
330611
|
+
g2 !== s && g2.__abortController.abort(new Error("replaced"));
|
|
330612
|
+
let { __staleWhileFetching: f } = g2;
|
|
330613
|
+
f !== void 0 && f !== t && (this.#T && this.#S?.(f, e, "set"), this.#f && this.#r?.push([f, e, "set"]));
|
|
330614
|
+
} else this.#T && this.#S?.(g2, e, "set"), this.#f && this.#r?.push([g2, e, "set"]);
|
|
330615
|
+
if (this.#R(c), this.#j(c, _2, o), this.#t[c] = t, !d2) {
|
|
330616
|
+
let f = g2 && this.#e(g2) ? g2.__staleWhileFetching : g2, b = f === void 0 ? "add" : t !== f ? "replace" : "update";
|
|
330617
|
+
o && (o.set = b, f !== void 0 && (o.oldValue = f)), this.#x && this.onInsert?.(t, e, b);
|
|
330618
|
+
}
|
|
330619
|
+
} else d2 || (o && (o.set = "update"), this.#x && this.onInsert?.(t, e, "update"));
|
|
330620
|
+
}
|
|
330621
|
+
if (n !== 0 && !this.#d && this.#k(), this.#d && (y2 || this.#H(c, n, r), o && this.#v(o, c)), !h && this.#f && this.#r) {
|
|
330622
|
+
let g2 = this.#r, f;
|
|
330623
|
+
for (; f = g2?.shift(); ) this.#w?.(...f);
|
|
330622
330624
|
}
|
|
330623
330625
|
return this;
|
|
330624
330626
|
}
|
|
330625
330627
|
pop() {
|
|
330626
330628
|
try {
|
|
330627
330629
|
for (; this.#n; ) {
|
|
330628
|
-
let e = this.#t[this.#
|
|
330630
|
+
let e = this.#t[this.#a];
|
|
330629
330631
|
if (this.#G(true), this.#e(e)) {
|
|
330630
330632
|
if (e.__staleWhileFetching) return e.__staleWhileFetching;
|
|
330631
330633
|
} else if (e !== void 0) return e;
|
|
@@ -330633,33 +330635,35 @@ var M = class u3 {
|
|
|
330633
330635
|
} finally {
|
|
330634
330636
|
if (this.#f && this.#r) {
|
|
330635
330637
|
let e = this.#r, t;
|
|
330636
|
-
for (; t = e?.shift(); ) this.#
|
|
330638
|
+
for (; t = e?.shift(); ) this.#w?.(...t);
|
|
330637
330639
|
}
|
|
330638
330640
|
}
|
|
330639
330641
|
}
|
|
330640
330642
|
#G(e) {
|
|
330641
|
-
let t = this.#
|
|
330642
|
-
|
|
330643
|
+
let t = this.#a, i2 = this.#i[t], s = this.#t[t], n = this.#e(s);
|
|
330644
|
+
n && s.__abortController.abort(new Error("evicted"));
|
|
330645
|
+
let r = n ? s.__staleWhileFetching : s;
|
|
330646
|
+
return (this.#T || this.#f) && r !== void 0 && (this.#T && this.#S?.(r, i2, "evict"), this.#f && this.#r?.push([r, i2, "evict"])), this.#R(t), this.#g?.[t] && (clearTimeout(this.#g[t]), this.#g[t] = void 0), e && (this.#i[t] = void 0, this.#t[t] = void 0, this.#y.push(t)), this.#n === 1 ? (this.#a = this.#h = 0, this.#y.length = 0) : this.#a = this.#l[t], this.#s.delete(i2), this.#n--, t;
|
|
330643
330647
|
}
|
|
330644
330648
|
has(e, t = {}) {
|
|
330645
330649
|
let { status: i2 = S2.hasSubscribers ? {} : void 0 } = t;
|
|
330646
|
-
t.status = i2, i2 && (i2.op = "has", i2.key = e);
|
|
330650
|
+
t.status = i2, i2 && (i2.op = "has", i2.key = e, i2.cache = this);
|
|
330647
330651
|
let s = this.#Y(e, t);
|
|
330648
330652
|
return S2.hasSubscribers && S2.publish(i2), s;
|
|
330649
330653
|
}
|
|
330650
330654
|
#Y(e, t = {}) {
|
|
330651
330655
|
let { updateAgeOnHas: i2 = this.updateAgeOnHas, status: s } = t, n = this.#s.get(e);
|
|
330652
330656
|
if (n !== void 0) {
|
|
330653
|
-
let
|
|
330654
|
-
if (this.#e(
|
|
330655
|
-
if (this.#p(n)) s && (s.has = "stale", this.#
|
|
330656
|
-
else return i2 && this.#D(n), s && (s.has = "hit", this.#
|
|
330657
|
+
let r = this.#t[n];
|
|
330658
|
+
if (this.#e(r) && r.__staleWhileFetching === void 0) return false;
|
|
330659
|
+
if (this.#p(n)) s && (s.has = "stale", this.#v(s, n));
|
|
330660
|
+
else return i2 && this.#D(n), s && (s.has = "hit", this.#v(s, n)), true;
|
|
330657
330661
|
} else s && (s.has = "miss");
|
|
330658
330662
|
return false;
|
|
330659
330663
|
}
|
|
330660
330664
|
peek(e, t = {}) {
|
|
330661
330665
|
let { status: i2 = D() ? {} : void 0 } = t;
|
|
330662
|
-
i2 && (i2.op = "peek", i2.key = e), t.status = i2;
|
|
330666
|
+
i2 && (i2.op = "peek", i2.key = e, i2.cache = this), t.status = i2;
|
|
330663
330667
|
let s = this.#J(e, t);
|
|
330664
330668
|
return S2.hasSubscribers && S2.publish(i2), s;
|
|
330665
330669
|
}
|
|
@@ -330669,35 +330673,35 @@ var M = class u3 {
|
|
|
330669
330673
|
i2 && (i2.peek = n === void 0 ? "miss" : "stale");
|
|
330670
330674
|
return;
|
|
330671
330675
|
}
|
|
330672
|
-
let
|
|
330673
|
-
return i2 && (
|
|
330676
|
+
let r = this.#t[n], h = this.#e(r) ? r.__staleWhileFetching : r;
|
|
330677
|
+
return i2 && (h !== void 0 ? (i2.peek = "hit", i2.value = h) : i2.peek = "miss"), h;
|
|
330674
330678
|
}
|
|
330675
330679
|
#P(e, t, i2, s) {
|
|
330676
330680
|
let n = t === void 0 ? void 0 : this.#t[t];
|
|
330677
330681
|
if (this.#e(n)) return n;
|
|
330678
|
-
let
|
|
330679
|
-
|
|
330680
|
-
let
|
|
330681
|
-
let { aborted:
|
|
330682
|
-
if (i2.status && (
|
|
330683
|
-
let
|
|
330684
|
-
return (
|
|
330685
|
-
},
|
|
330686
|
-
let { aborted:
|
|
330687
|
-
if (this.#t[t] ===
|
|
330688
|
-
if (
|
|
330689
|
-
},
|
|
330690
|
-
let
|
|
330691
|
-
|
|
330692
|
-
(!i2.ignoreFetchAbort || i2.allowStaleOnFetchAbort) && (
|
|
330693
|
-
});
|
|
330682
|
+
let r = new AbortController(), { signal: h } = i2;
|
|
330683
|
+
h?.addEventListener("abort", () => r.abort(h.reason), { signal: r.signal });
|
|
330684
|
+
let a2 = { signal: r.signal, options: i2, context: s }, o = (f, b = false) => {
|
|
330685
|
+
let { aborted: l } = r.signal, w2 = i2.ignoreFetchAbort && f !== void 0, F2 = i2.ignoreFetchAbort || !!(i2.allowStaleOnFetchAbort && f !== void 0);
|
|
330686
|
+
if (i2.status && (l && !b ? (i2.status.fetchAborted = true, i2.status.fetchError = r.signal.reason, w2 && (i2.status.fetchAbortIgnored = true)) : i2.status.fetchResolved = true), l && !w2 && !b) return y2(r.signal.reason, F2);
|
|
330687
|
+
let m2 = c, p = this.#t[t];
|
|
330688
|
+
return (p === c || p === void 0 && w2 && b) && (f === void 0 ? m2.__staleWhileFetching !== void 0 ? this.#t[t] = m2.__staleWhileFetching : this.#E(e, "fetch") : (i2.status && (i2.status.fetchUpdated = true), this.#W(e, f, a2.options, m2))), f;
|
|
330689
|
+
}, d2 = (f) => (i2.status && (i2.status.fetchRejected = true, i2.status.fetchError = f), y2(f, false)), y2 = (f, b) => {
|
|
330690
|
+
let { aborted: l } = r.signal, w2 = l && i2.allowStaleOnFetchAbort, F2 = w2 || i2.allowStaleOnFetchRejection, m2 = F2 || i2.noDeleteOnFetchRejection, p = c;
|
|
330691
|
+
if (this.#t[t] === c && (!m2 || !b && p.__staleWhileFetching === void 0 ? this.#E(e, "fetch") : w2 || (this.#t[t] = p.__staleWhileFetching)), F2) return i2.status && p.__staleWhileFetching !== void 0 && (i2.status.returnedStale = true), p.__staleWhileFetching;
|
|
330692
|
+
if (p.__returned === p) throw f;
|
|
330693
|
+
}, _2 = (f, b) => {
|
|
330694
|
+
let l = this.#M?.(e, n, a2);
|
|
330695
|
+
r.signal.addEventListener("abort", () => {
|
|
330696
|
+
(!i2.ignoreFetchAbort || i2.allowStaleOnFetchAbort) && (f(void 0), i2.allowStaleOnFetchAbort && (f = (w2) => o(w2, true)));
|
|
330697
|
+
}), l && l instanceof Promise ? l.then((w2) => f(w2 === void 0 ? void 0 : w2), b) : l !== void 0 && f(l);
|
|
330694
330698
|
};
|
|
330695
330699
|
i2.status && (i2.status.fetchDispatched = true);
|
|
330696
|
-
let
|
|
330697
|
-
return t === void 0 ? (this.#
|
|
330700
|
+
let c = new Promise(_2).then(o, d2), g2 = Object.assign(c, { __abortController: r, __staleWhileFetching: n, __returned: void 0 });
|
|
330701
|
+
return t === void 0 ? (this.#W(e, g2, { ...a2.options, status: void 0 }), t = this.#s.get(e)) : this.#t[t] = g2, g2;
|
|
330698
330702
|
}
|
|
330699
330703
|
#e(e) {
|
|
330700
|
-
if (!this.#
|
|
330704
|
+
if (!this.#U) return false;
|
|
330701
330705
|
let t = e;
|
|
330702
330706
|
return !!t && t instanceof Promise && t.hasOwnProperty("__staleWhileFetching") && t.__abortController instanceof AbortController;
|
|
330703
330707
|
}
|
|
@@ -330709,23 +330713,23 @@ var M = class u3 {
|
|
|
330709
330713
|
})), n;
|
|
330710
330714
|
}
|
|
330711
330715
|
async #B(e, t = {}) {
|
|
330712
|
-
let { allowStale: i2 = this.allowStale, updateAgeOnGet: s = this.updateAgeOnGet, noDeleteOnStaleGet: n = this.noDeleteOnStaleGet, ttl:
|
|
330713
|
-
if (
|
|
330714
|
-
let
|
|
330715
|
-
if (
|
|
330716
|
-
|
|
330717
|
-
let
|
|
330718
|
-
return
|
|
330716
|
+
let { allowStale: i2 = this.allowStale, updateAgeOnGet: s = this.updateAgeOnGet, noDeleteOnStaleGet: n = this.noDeleteOnStaleGet, ttl: r = this.ttl, noDisposeOnSet: h = this.noDisposeOnSet, size: a2 = 0, sizeCalculation: o = this.sizeCalculation, noUpdateTTL: d2 = this.noUpdateTTL, noDeleteOnFetchRejection: y2 = this.noDeleteOnFetchRejection, allowStaleOnFetchRejection: _2 = this.allowStaleOnFetchRejection, ignoreFetchAbort: c = this.ignoreFetchAbort, allowStaleOnFetchAbort: g2 = this.allowStaleOnFetchAbort, context: f, forceRefresh: b = false, status: l, signal: w2 } = t;
|
|
330717
|
+
if (l && (l.op = "fetch", l.key = e, b && (l.forceRefresh = true), l.cache = this), !this.#U) return l && (l.fetch = "get"), this.#C(e, { allowStale: i2, updateAgeOnGet: s, noDeleteOnStaleGet: n, status: l });
|
|
330718
|
+
let F2 = { allowStale: i2, updateAgeOnGet: s, noDeleteOnStaleGet: n, ttl: r, noDisposeOnSet: h, size: a2, sizeCalculation: o, noUpdateTTL: d2, noDeleteOnFetchRejection: y2, allowStaleOnFetchRejection: _2, allowStaleOnFetchAbort: g2, ignoreFetchAbort: c, status: l, signal: w2 }, m2 = this.#s.get(e);
|
|
330719
|
+
if (m2 === void 0) {
|
|
330720
|
+
l && (l.fetch = "miss");
|
|
330721
|
+
let p = this.#P(e, m2, F2, f);
|
|
330722
|
+
return p.__returned = p;
|
|
330719
330723
|
} else {
|
|
330720
|
-
let
|
|
330721
|
-
if (this.#e(
|
|
330722
|
-
let
|
|
330723
|
-
return
|
|
330724
|
+
let p = this.#t[m2];
|
|
330725
|
+
if (this.#e(p)) {
|
|
330726
|
+
let v2 = i2 && p.__staleWhileFetching !== void 0;
|
|
330727
|
+
return l && (l.fetch = "inflight", v2 && (l.returnedStale = true)), v2 ? p.__staleWhileFetching : p.__returned = p;
|
|
330724
330728
|
}
|
|
330725
|
-
let A2 = this.#p(
|
|
330726
|
-
if (!
|
|
330727
|
-
let z = this.#P(e,
|
|
330728
|
-
return
|
|
330729
|
+
let A2 = this.#p(m2);
|
|
330730
|
+
if (!b && !A2) return l && (l.fetch = "hit"), this.#L(m2), s && this.#D(m2), l && this.#v(l, m2), p;
|
|
330731
|
+
let z = this.#P(e, m2, F2, f), E = z.__staleWhileFetching !== void 0 && i2;
|
|
330732
|
+
return l && (l.fetch = A2 ? "stale" : "refresh", E && A2 && (l.returnedStale = true)), E ? z.__staleWhileFetching : z.__returned = z;
|
|
330729
330733
|
}
|
|
330730
330734
|
}
|
|
330731
330735
|
forceFetch(e, t = {}) {
|
|
@@ -330742,46 +330746,46 @@ var M = class u3 {
|
|
|
330742
330746
|
}
|
|
330743
330747
|
memo(e, t = {}) {
|
|
330744
330748
|
let { status: i2 = S2.hasSubscribers ? {} : void 0 } = t;
|
|
330745
|
-
t.status = i2, i2 && (i2.op = "memo", i2.key = e, t.context && (i2.context = t.context));
|
|
330749
|
+
t.status = i2, i2 && (i2.op = "memo", i2.key = e, t.context && (i2.context = t.context), i2.cache = this);
|
|
330746
330750
|
let s = this.#Q(e, t);
|
|
330747
330751
|
return i2 && (i2.value = s), S2.hasSubscribers && S2.publish(i2), s;
|
|
330748
330752
|
}
|
|
330749
330753
|
#Q(e, t = {}) {
|
|
330750
|
-
let i2 = this.#
|
|
330754
|
+
let i2 = this.#I;
|
|
330751
330755
|
if (!i2) throw new Error("no memoMethod provided to constructor");
|
|
330752
|
-
let { context: s, status: n, forceRefresh:
|
|
330753
|
-
n &&
|
|
330754
|
-
let
|
|
330755
|
-
if (n && (n.memo =
|
|
330756
|
-
let
|
|
330757
|
-
return n && (n.value =
|
|
330756
|
+
let { context: s, status: n, forceRefresh: r, ...h } = t;
|
|
330757
|
+
n && r && (n.forceRefresh = true);
|
|
330758
|
+
let a2 = this.#C(e, h), o = r || a2 === void 0;
|
|
330759
|
+
if (n && (n.memo = o ? "miss" : "hit", o || (n.value = a2)), !o) return a2;
|
|
330760
|
+
let d2 = i2(e, a2, { options: h, context: s });
|
|
330761
|
+
return n && (n.value = d2), this.#W(e, d2, h), d2;
|
|
330758
330762
|
}
|
|
330759
330763
|
get(e, t = {}) {
|
|
330760
330764
|
let { status: i2 = S2.hasSubscribers ? {} : void 0 } = t;
|
|
330761
|
-
t.status = i2, i2 && (i2.op = "get", i2.key = e);
|
|
330765
|
+
t.status = i2, i2 && (i2.op = "get", i2.key = e, i2.cache = this);
|
|
330762
330766
|
let s = this.#C(e, t);
|
|
330763
330767
|
return i2 && (s !== void 0 && (i2.value = s), S2.hasSubscribers && S2.publish(i2)), s;
|
|
330764
330768
|
}
|
|
330765
330769
|
#C(e, t = {}) {
|
|
330766
|
-
let { allowStale: i2 = this.allowStale, updateAgeOnGet: s = this.updateAgeOnGet, noDeleteOnStaleGet: n = this.noDeleteOnStaleGet, status:
|
|
330767
|
-
if (
|
|
330768
|
-
|
|
330770
|
+
let { allowStale: i2 = this.allowStale, updateAgeOnGet: s = this.updateAgeOnGet, noDeleteOnStaleGet: n = this.noDeleteOnStaleGet, status: r } = t, h = this.#s.get(e);
|
|
330771
|
+
if (h === void 0) {
|
|
330772
|
+
r && (r.get = "miss");
|
|
330769
330773
|
return;
|
|
330770
330774
|
}
|
|
330771
|
-
let
|
|
330772
|
-
return
|
|
330775
|
+
let a2 = this.#t[h], o = this.#e(a2);
|
|
330776
|
+
return r && this.#v(r, h), this.#p(h) ? o ? (r && (r.get = "stale-fetching"), i2 && a2.__staleWhileFetching !== void 0 ? (r && (r.returnedStale = true), a2.__staleWhileFetching) : void 0) : (n || this.#E(e, "expire"), r && (r.get = "stale"), i2 ? (r && (r.returnedStale = true), a2) : void 0) : (r && (r.get = o ? "fetching" : "hit"), this.#L(h), s && this.#D(h), o ? a2.__staleWhileFetching : a2);
|
|
330773
330777
|
}
|
|
330774
330778
|
#$(e, t) {
|
|
330775
|
-
this.#
|
|
330779
|
+
this.#u[t] = e, this.#l[e] = t;
|
|
330776
330780
|
}
|
|
330777
330781
|
#L(e) {
|
|
330778
|
-
e !== this.#h && (e === this.#
|
|
330782
|
+
e !== this.#h && (e === this.#a ? this.#a = this.#l[e] : this.#$(this.#u[e], this.#l[e]), this.#$(this.#h, e), this.#h = e);
|
|
330779
330783
|
}
|
|
330780
330784
|
delete(e) {
|
|
330781
|
-
return this.#
|
|
330785
|
+
return this.#E(e, "delete");
|
|
330782
330786
|
}
|
|
330783
|
-
#
|
|
330784
|
-
S2.hasSubscribers && S2.publish({ op: "delete", delete: t, key: e });
|
|
330787
|
+
#E(e, t) {
|
|
330788
|
+
S2.hasSubscribers && S2.publish({ op: "delete", delete: t, key: e, cache: this });
|
|
330785
330789
|
let i2 = false;
|
|
330786
330790
|
if (this.#n !== 0) {
|
|
330787
330791
|
let s = this.#s.get(e);
|
|
@@ -330789,20 +330793,20 @@ var M = class u3 {
|
|
|
330789
330793
|
else {
|
|
330790
330794
|
this.#R(s);
|
|
330791
330795
|
let n = this.#t[s];
|
|
330792
|
-
if (this.#e(n) ? n.__abortController.abort(new Error("deleted")) : (this.#T || this.#f) && (this.#T && this.#
|
|
330793
|
-
else if (s === this.#
|
|
330796
|
+
if (this.#e(n) ? n.__abortController.abort(new Error("deleted")) : (this.#T || this.#f) && (this.#T && this.#S?.(n, e, t), this.#f && this.#r?.push([n, e, t])), this.#s.delete(e), this.#i[s] = void 0, this.#t[s] = void 0, s === this.#h) this.#h = this.#u[s];
|
|
330797
|
+
else if (s === this.#a) this.#a = this.#l[s];
|
|
330794
330798
|
else {
|
|
330795
|
-
let
|
|
330796
|
-
this.#
|
|
330797
|
-
let
|
|
330798
|
-
this.#
|
|
330799
|
+
let r = this.#u[s];
|
|
330800
|
+
this.#l[r] = this.#l[s];
|
|
330801
|
+
let h = this.#l[s];
|
|
330802
|
+
this.#u[h] = this.#u[s];
|
|
330799
330803
|
}
|
|
330800
330804
|
this.#n--, this.#y.push(s);
|
|
330801
330805
|
}
|
|
330802
330806
|
}
|
|
330803
330807
|
if (this.#f && this.#r?.length) {
|
|
330804
330808
|
let s = this.#r, n;
|
|
330805
|
-
for (; n = s?.shift(); ) this.#
|
|
330809
|
+
for (; n = s?.shift(); ) this.#w?.(...n);
|
|
330806
330810
|
}
|
|
330807
330811
|
return i2;
|
|
330808
330812
|
}
|
|
@@ -330815,7 +330819,7 @@ var M = class u3 {
|
|
|
330815
330819
|
if (this.#e(i2)) i2.__abortController.abort(new Error("deleted"));
|
|
330816
330820
|
else {
|
|
330817
330821
|
let s = this.#i[t];
|
|
330818
|
-
this.#T && this.#
|
|
330822
|
+
this.#T && this.#S?.(i2, s, e), this.#f && this.#r?.push([i2, s, e]);
|
|
330819
330823
|
}
|
|
330820
330824
|
}
|
|
330821
330825
|
if (this.#s.clear(), this.#t.fill(void 0), this.#i.fill(void 0), this.#d && this.#F) {
|
|
@@ -330823,9 +330827,9 @@ var M = class u3 {
|
|
|
330823
330827
|
for (let t of this.#g ?? []) t !== void 0 && clearTimeout(t);
|
|
330824
330828
|
this.#g?.fill(void 0);
|
|
330825
330829
|
}
|
|
330826
|
-
if (this.#_ && this.#_.fill(0), this.#
|
|
330830
|
+
if (this.#_ && this.#_.fill(0), this.#a = 0, this.#h = 0, this.#y.length = 0, this.#b = 0, this.#n = 0, this.#f && this.#r) {
|
|
330827
330831
|
let t = this.#r, i2;
|
|
330828
|
-
for (; i2 = t?.shift(); ) this.#
|
|
330832
|
+
for (; i2 = t?.shift(); ) this.#w?.(...i2);
|
|
330829
330833
|
}
|
|
330830
330834
|
}
|
|
330831
330835
|
};
|
|
@@ -330881,7 +330885,7 @@ var ENOREALPATH2 = 512;
|
|
|
330881
330885
|
var ENOCHILD2 = ENOTDIR2 | ENOENT2 | ENOREALPATH2;
|
|
330882
330886
|
var TYPEMASK2 = 1023;
|
|
330883
330887
|
var entToType2 = (s) => s.isFile() ? IFREG2 : s.isDirectory() ? IFDIR2 : s.isSymbolicLink() ? IFLNK2 : s.isCharacterDevice() ? IFCHR2 : s.isBlockDevice() ? IFBLK2 : s.isSocket() ? IFSOCK2 : s.isFIFO() ? IFIFO2 : UNKNOWN2;
|
|
330884
|
-
var normalizeCache2 = new
|
|
330888
|
+
var normalizeCache2 = new I2({ max: 2 ** 12 });
|
|
330885
330889
|
var normalize6 = (s) => {
|
|
330886
330890
|
const c = normalizeCache2.get(s);
|
|
330887
330891
|
if (c)
|
|
@@ -330890,7 +330894,7 @@ var normalize6 = (s) => {
|
|
|
330890
330894
|
normalizeCache2.set(s, n);
|
|
330891
330895
|
return n;
|
|
330892
330896
|
};
|
|
330893
|
-
var normalizeNocaseCache2 = new
|
|
330897
|
+
var normalizeNocaseCache2 = new I2({ max: 2 ** 12 });
|
|
330894
330898
|
var normalizeNocase2 = (s) => {
|
|
330895
330899
|
const c = normalizeNocaseCache2.get(s);
|
|
330896
330900
|
if (c)
|
|
@@ -330899,12 +330903,12 @@ var normalizeNocase2 = (s) => {
|
|
|
330899
330903
|
normalizeNocaseCache2.set(s, n);
|
|
330900
330904
|
return n;
|
|
330901
330905
|
};
|
|
330902
|
-
var ResolveCache2 = class extends
|
|
330906
|
+
var ResolveCache2 = class extends I2 {
|
|
330903
330907
|
constructor() {
|
|
330904
330908
|
super({ max: 256 });
|
|
330905
330909
|
}
|
|
330906
330910
|
};
|
|
330907
|
-
var ChildrenCache2 = class extends
|
|
330911
|
+
var ChildrenCache2 = class extends I2 {
|
|
330908
330912
|
constructor(maxSize = 16 * 1024) {
|
|
330909
330913
|
super({
|
|
330910
330914
|
maxSize,
|
|
@@ -332882,7 +332886,7 @@ var SubWalks2 = class {
|
|
|
332882
332886
|
return subs;
|
|
332883
332887
|
}
|
|
332884
332888
|
entries() {
|
|
332885
|
-
return this.keys().map((
|
|
332889
|
+
return this.keys().map((k3) => [k3, this.store.get(k3)]);
|
|
332886
332890
|
}
|
|
332887
332891
|
keys() {
|
|
332888
332892
|
return [...this.store.keys()].filter((t) => t.canReaddir());
|
|
@@ -333918,9 +333922,9 @@ function getValues(context, operator, key, modifier) {
|
|
|
333918
333922
|
);
|
|
333919
333923
|
});
|
|
333920
333924
|
} else {
|
|
333921
|
-
Object.keys(value).forEach(function(
|
|
333922
|
-
if (isDefined7(value[
|
|
333923
|
-
result.push(encodeValue(operator, value[
|
|
333925
|
+
Object.keys(value).forEach(function(k3) {
|
|
333926
|
+
if (isDefined7(value[k3])) {
|
|
333927
|
+
result.push(encodeValue(operator, value[k3], k3));
|
|
333924
333928
|
}
|
|
333925
333929
|
});
|
|
333926
333930
|
}
|
|
@@ -333931,10 +333935,10 @@ function getValues(context, operator, key, modifier) {
|
|
|
333931
333935
|
tmp.push(encodeValue(operator, value2));
|
|
333932
333936
|
});
|
|
333933
333937
|
} else {
|
|
333934
|
-
Object.keys(value).forEach(function(
|
|
333935
|
-
if (isDefined7(value[
|
|
333936
|
-
tmp.push(encodeUnreserved(
|
|
333937
|
-
tmp.push(encodeValue(operator, value[
|
|
333938
|
+
Object.keys(value).forEach(function(k3) {
|
|
333939
|
+
if (isDefined7(value[k3])) {
|
|
333940
|
+
tmp.push(encodeUnreserved(k3));
|
|
333941
|
+
tmp.push(encodeValue(operator, value[k3].toString()));
|
|
333938
333942
|
}
|
|
333939
333943
|
});
|
|
333940
333944
|
}
|
|
@@ -337671,12 +337675,12 @@ function urlBuilderAuthorize(base2, options) {
|
|
|
337671
337675
|
state: "state"
|
|
337672
337676
|
};
|
|
337673
337677
|
let url3 = base2;
|
|
337674
|
-
Object.keys(map4).filter((
|
|
337675
|
-
if (
|
|
337678
|
+
Object.keys(map4).filter((k3) => options[k3] !== null).filter((k3) => {
|
|
337679
|
+
if (k3 !== "scopes")
|
|
337676
337680
|
return true;
|
|
337677
337681
|
if (options.clientType === "github-app")
|
|
337678
337682
|
return false;
|
|
337679
|
-
return !Array.isArray(options[
|
|
337683
|
+
return !Array.isArray(options[k3]) || options[k3].length > 0;
|
|
337680
337684
|
}).map((key) => [map4[key], `${options[key]}`]).forEach(([key, value], index2) => {
|
|
337681
337685
|
url3 += index2 === 0 ? `?` : "&";
|
|
337682
337686
|
url3 += `${key}=${encodeURIComponent(value)}`;
|
|
@@ -338456,7 +338460,7 @@ async function githubAppJwt({
|
|
|
338456
338460
|
};
|
|
338457
338461
|
}
|
|
338458
338462
|
|
|
338459
|
-
// ../../node_modules/.pnpm/toad-cache@3.7.
|
|
338463
|
+
// ../../node_modules/.pnpm/toad-cache@3.7.1/node_modules/toad-cache/dist/toad-cache.mjs
|
|
338460
338464
|
init_esm_shims();
|
|
338461
338465
|
var LruObject = class {
|
|
338462
338466
|
constructor(max4 = 1e3, ttlInMsecs = 0) {
|
|
@@ -341477,7 +341481,7 @@ async function upgradeDependency([name3, tag = "latest"]) {
|
|
|
341477
341481
|
var npmRequestLimit = (0, import_p_limit2.default)(40);
|
|
341478
341482
|
function getPackageInfo(pkgName) {
|
|
341479
341483
|
return npmRequestLimit(async () => {
|
|
341480
|
-
const getPackageJson = (await import("./package-json-
|
|
341484
|
+
const getPackageJson = (await import("./package-json-MWS5EBHM.js")).default;
|
|
341481
341485
|
return getPackageJson(pkgName, {
|
|
341482
341486
|
allVersions: true
|
|
341483
341487
|
});
|
|
@@ -342313,7 +342317,7 @@ toad-cache/dist/toad-cache.mjs:
|
|
|
342313
342317
|
(**
|
|
342314
342318
|
* toad-cache
|
|
342315
342319
|
*
|
|
342316
|
-
* @copyright
|
|
342320
|
+
* @copyright 2026 Igor Savin <kibertoad@gmail.com>
|
|
342317
342321
|
* @license MIT
|
|
342318
342322
|
* @version 3.7.0
|
|
342319
342323
|
*)
|