@eigenpal/cli 0.10.23 → 0.10.24
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/dist/cli.js
CHANGED
|
@@ -19460,8 +19460,8 @@ var init_extract = __esm(() => {
|
|
|
19460
19460
|
provider: exports_external.string().optional().describe('Provider ID to use (e.g., "openai-gpt4o", "anthropic-claude")'),
|
|
19461
19461
|
model: exports_external.string().optional().describe("Model to use (overrides provider default)"),
|
|
19462
19462
|
maxInputTokens: exports_external.number().int().optional().describe("Max input tokens. Truncates input text and logs a warning when exceeded. Omit for no limit."),
|
|
19463
|
-
grounded: exports_external.boolean().optional().describe("When true, run a grounding pass over the schema fields and attach per-field source spans + confidence under a `_grounding` key, flagging ungrounded/fuzzy fields for human review. Grounding always calls OpenAI directly (independent of the extract provider) and requires OPENAI_API_KEY."),
|
|
19464
|
-
groundingModel: exports_external.string().optional().describe("Provider/model for the grounding pass. Defaults to the workspace default LLM
|
|
19463
|
+
grounded: exports_external.boolean().optional().describe("When true, run a grounding pass over the schema fields and attach per-field source spans + confidence under a `_grounding` key, flagging ungrounded/fuzzy fields for human review. Grounding is OpenAI-only: the pass (langextract) always calls OpenAI directly (independent of the extract provider) and requires OPENAI_API_KEY on the worker. If the key is missing or the grounding model resolves to a non-OpenAI provider, the step fails at runtime instead of silently skipping grounding."),
|
|
19464
|
+
groundingModel: exports_external.string().optional().describe("Provider/model for the grounding pass. Defaults to the workspace default LLM. Grounding is OpenAI-only, so this must resolve to an OpenAI model; a non-OpenAI model fails the step at runtime."),
|
|
19465
19465
|
groundingExamples: exports_external.array(exports_external.object({
|
|
19466
19466
|
text: exports_external.string(),
|
|
19467
19467
|
extractions: exports_external.array(exports_external.object({ field: exports_external.string(), text: exports_external.string() }))
|
|
@@ -64875,8 +64875,8 @@ var init_step_configs = __esm(() => {
|
|
|
64875
64875
|
provider: exports_external.string().optional().describe('Provider ID (e.g., "openai-gpt4o")'),
|
|
64876
64876
|
model: exports_external.string().optional().describe("Model override"),
|
|
64877
64877
|
maxInputTokens: exports_external.number().int().optional().describe("Max input tokens. Truncates input text and logs a warning when exceeded. Omit for no limit."),
|
|
64878
|
-
grounded: exports_external.boolean().optional().describe("Optional. When true, adds a grounding pass: each schema field gets a source span + confidence (high=verbatim, medium=fuzzy, low=ungrounded) under a `_grounding` key, and ungrounded/fuzzy fields are flagged for human review. Grounding always calls OpenAI directly (independent of the extract provider) and requires OPENAI_API_KEY. Values stay the reliable schema-typed ones."),
|
|
64879
|
-
groundingModel: exports_external.string().optional().describe("Provider/model for the grounding pass. Defaults to the workspace default LLM
|
|
64878
|
+
grounded: exports_external.boolean().optional().describe("Optional. When true, adds a grounding pass: each schema field gets a source span + confidence (high=verbatim, medium=fuzzy, low=ungrounded) under a `_grounding` key, and ungrounded/fuzzy fields are flagged for human review. Grounding is OpenAI-only: the pass always calls OpenAI directly (independent of the extract provider) and requires OPENAI_API_KEY on the worker. If the key is missing or the grounding model resolves to a non-OpenAI provider, the step fails instead of silently skipping grounding. Values stay the reliable schema-typed ones."),
|
|
64879
|
+
groundingModel: exports_external.string().optional().describe("Provider/model for the grounding pass. Defaults to the workspace default LLM. Grounding is OpenAI-only, so this must resolve to an OpenAI model; a non-OpenAI model fails the step at runtime."),
|
|
64880
64880
|
groundingExamples: exports_external.array(exports_external.object({
|
|
64881
64881
|
text: exports_external.string(),
|
|
64882
64882
|
extractions: exports_external.array(exports_external.object({ field: exports_external.string(), text: exports_external.string() }))
|
|
@@ -78999,7 +78999,7 @@ function cleanDoc(doc2) {
|
|
|
78999
78999
|
return mapDoc(doc2, (currentDoc) => cleanDocFn(currentDoc));
|
|
79000
79000
|
}
|
|
79001
79001
|
function replaceEndOfLine(doc2, replacement = literalline) {
|
|
79002
|
-
return mapDoc(doc2, (currentDoc) => typeof currentDoc === "string" ?
|
|
79002
|
+
return mapDoc(doc2, (currentDoc) => typeof currentDoc === "string" ? join2(replacement, currentDoc.split(`
|
|
79003
79003
|
`)) : currentDoc);
|
|
79004
79004
|
}
|
|
79005
79005
|
function canBreakFn(doc2) {
|
|
@@ -79079,7 +79079,7 @@ function indentIfBreak(contents, options) {
|
|
|
79079
79079
|
negate: options.negate
|
|
79080
79080
|
};
|
|
79081
79081
|
}
|
|
79082
|
-
function
|
|
79082
|
+
function join2(separator, docs) {
|
|
79083
79083
|
assertDoc(separator);
|
|
79084
79084
|
assertDocArray(docs);
|
|
79085
79085
|
const parts = [];
|
|
@@ -79790,7 +79790,7 @@ var init_doc = __esm(() => {
|
|
|
79790
79790
|
MODE_FLAT = Symbol("MODE_FLAT");
|
|
79791
79791
|
DOC_FILL_PRINTED_LENGTH = Symbol("DOC_FILL_PRINTED_LENGTH");
|
|
79792
79792
|
builders = {
|
|
79793
|
-
join:
|
|
79793
|
+
join: join2,
|
|
79794
79794
|
line,
|
|
79795
79795
|
softline,
|
|
79796
79796
|
hardline,
|
|
@@ -83726,7 +83726,7 @@ ${i2.comment}` : s.comment), s = i2;
|
|
|
83726
83726
|
ws.scalarFallback = (t) => {
|
|
83727
83727
|
throw new SyntaxError(`Unresolved plain scalar ${JSON.stringify(t)}`);
|
|
83728
83728
|
};
|
|
83729
|
-
var
|
|
83729
|
+
var fs7 = ({ value: t }) => t ? E3.boolOptions.trueStr : E3.boolOptions.falseStr, lt2 = (t) => typeof t == "bigint" || Number.isInteger(t);
|
|
83730
83730
|
function qt(t, e2, n) {
|
|
83731
83731
|
let r = e2.replace(/_/g, "");
|
|
83732
83732
|
if (E3.intOptions.asBigInt) {
|
|
@@ -83755,7 +83755,7 @@ ${i2.comment}` : s.comment), s = i2;
|
|
|
83755
83755
|
}
|
|
83756
83756
|
return E3.stringifyNumber(t);
|
|
83757
83757
|
}
|
|
83758
|
-
var la = Vn.concat([{ identify: (t) => t == null, createNode: (t, e2, n) => n.wrapScalars ? new E3.Scalar(null) : null, default: true, tag: "tag:yaml.org,2002:null", test: /^(?:~|[Nn]ull|NULL)?$/, resolve: () => null, options: E3.nullOptions, stringify: () => E3.nullOptions.nullStr }, { identify: (t) => typeof t == "boolean", default: true, tag: "tag:yaml.org,2002:bool", test: /^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/, resolve: () => true, options: E3.boolOptions, stringify:
|
|
83758
|
+
var la = Vn.concat([{ identify: (t) => t == null, createNode: (t, e2, n) => n.wrapScalars ? new E3.Scalar(null) : null, default: true, tag: "tag:yaml.org,2002:null", test: /^(?:~|[Nn]ull|NULL)?$/, resolve: () => null, options: E3.nullOptions, stringify: () => E3.nullOptions.nullStr }, { identify: (t) => typeof t == "boolean", default: true, tag: "tag:yaml.org,2002:bool", test: /^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/, resolve: () => true, options: E3.boolOptions, stringify: fs7 }, { identify: (t) => typeof t == "boolean", default: true, tag: "tag:yaml.org,2002:bool", test: /^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/i, resolve: () => false, options: E3.boolOptions, stringify: fs7 }, { identify: lt2, default: true, tag: "tag:yaml.org,2002:int", format: "BIN", test: /^([-+]?)0b([0-1_]+)$/, resolve: (t, e2, n) => qt(e2, n, 2), stringify: (t) => Un(t, 2, "0b") }, { identify: lt2, default: true, tag: "tag:yaml.org,2002:int", format: "OCT", test: /^([-+]?)0([0-7_]+)$/, resolve: (t, e2, n) => qt(e2, n, 8), stringify: (t) => Un(t, 8, "0") }, { identify: lt2, default: true, tag: "tag:yaml.org,2002:int", test: /^([-+]?)([0-9][0-9_]*)$/, resolve: (t, e2, n) => qt(e2, n, 10), stringify: E3.stringifyNumber }, { identify: lt2, default: true, tag: "tag:yaml.org,2002:int", format: "HEX", test: /^([-+]?)0x([0-9a-fA-F_]+)$/, resolve: (t, e2, n) => qt(e2, n, 16), stringify: (t) => Un(t, 16, "0x") }, { identify: (t) => typeof t == "number", default: true, tag: "tag:yaml.org,2002:float", test: /^(?:[-+]?\.inf|(\.nan))$/i, resolve: (t, e2) => e2 ? NaN : t[0] === "-" ? Number.NEGATIVE_INFINITY : Number.POSITIVE_INFINITY, stringify: E3.stringifyNumber }, { identify: (t) => typeof t == "number", default: true, tag: "tag:yaml.org,2002:float", format: "EXP", test: /^[-+]?([0-9][0-9_]*)?(\.[0-9_]*)?[eE][-+]?[0-9]+$/, resolve: (t) => parseFloat(t.replace(/_/g, "")), stringify: ({ value: t }) => Number(t).toExponential() }, { identify: (t) => typeof t == "number", default: true, tag: "tag:yaml.org,2002:float", test: /^[-+]?(?:[0-9][0-9_]*)?\.([0-9_]*)$/, resolve(t, e2) {
|
|
83759
83759
|
let n = new E3.Scalar(parseFloat(t.replace(/_/g, "")));
|
|
83760
83760
|
if (e2) {
|
|
83761
83761
|
let r = e2.replace(/_/g, "");
|
|
@@ -85752,10 +85752,10 @@ function kc({ node: e2, parent: t }) {
|
|
|
85752
85752
|
}
|
|
85753
85753
|
function oo2(e2) {
|
|
85754
85754
|
let t = (n) => n.type === "TemplateLiteral", r = (n, s) => Oe3(n) && !n.computed && n.key.type === "Identifier" && n.key.name === "styles" && s === "value";
|
|
85755
|
-
return e2.match(t, (n, s) => q3(n) && s === "elements", r, ...
|
|
85755
|
+
return e2.match(t, (n, s) => q3(n) && s === "elements", r, ...fs7) || e2.match(t, r, ...fs7);
|
|
85756
85756
|
}
|
|
85757
85757
|
function ys(e2) {
|
|
85758
|
-
return e2.match((t) => t.type === "TemplateLiteral", (t, r) => Oe3(t) && !t.computed && t.key.type === "Identifier" && t.key.name === "template" && r === "value", ...
|
|
85758
|
+
return e2.match((t) => t.type === "TemplateLiteral", (t, r) => Oe3(t) && !t.computed && t.key.type === "Identifier" && t.key.name === "template" && r === "value", ...fs7);
|
|
85759
85759
|
}
|
|
85760
85760
|
function Ds2(e2, t) {
|
|
85761
85761
|
return T(e2, x3.Block | x3.Leading, ({ value: r }) => r === ` ${t} `);
|
|
@@ -88984,7 +88984,7 @@ var Ba2, jn = (e2, t) => {
|
|
|
88984
88984
|
delete t.value;
|
|
88985
88985
|
}, Bi2, Cp, Ap = (e2, [t]) => t?.type === "ComponentParameter" && t.shorthand && t.name === e2 && t.local !== t.name || t?.type === "MatchObjectPatternProperty" && t.shorthand && t.key === e2 && t.value !== t.key || t?.type === "ObjectProperty" && t.shorthand && t.key === e2 && t.value !== t.key || t?.type === "Property" && t.shorthand && t.key === e2 && !mt3(t) && t.value !== t.key, Tp = (e2, [t]) => !!(e2.type === "FunctionExpression" && t.type === "MethodDefinition" && t.value === e2 && K4(e2).length === 0 && !e2.returnType && !R3(e2.typeParameters) && e2.body), bi2 = (e2, [t]) => t?.typeAnnotation === e2 && hi2(t), xp = (e2, [t, ...r]) => bi2(e2, [t]) || t?.typeName === e2 && bi2(t, r), Pi2, at4, _e3, ue2, Qn, Hr, Zn2 = (e2, t) => At3(e2) || !ue2(t, w3(e2), I3(e2)), Mp, Np, wi2, Xp, Vp, Ri2, nc, Ji2, Gi2, ic, Wi2, Ye = "string", Be = "array", tt4 = "cursor", He2 = "indent", Xe2 = "align", rt3 = "trim", Fe = "group", Me3 = "fill", be2 = "if-break", Ve2 = "indent-if-break", $e2 = "line-suffix", Ge3 = "line-suffix-boundary", me3 = "line", Pe2 = "label", Ne = "break-parent", Xr, We2, ac = (e2) => new Intl.ListFormat("en-US", { type: "disjunction" }).format(e2), is, gt3, qi2, Vr2, de3, Kr, $i2, Ki2, ke2, Tr2, A2, f, os, E3, yc, $r2, je2, Ec = "cr", Fc = "crlf", dc = "\r", Cc = `\r
|
|
88986
88986
|
`, Ac = `
|
|
88987
|
-
`, Tc, xc, gc, as, ve3, ct2, cs, no2, so2,
|
|
88987
|
+
`, Tc, xc, gc, as, ve3, ct2, cs, no2, so2, fs7, po2 = (e2) => Oc(e2) || wc(e2) || _c(e2) || oo2(e2), Es = 0, fo2, yo, jc, Co, Gc, Wc, go, qc, Ao, Uc, To, Yc, ho, ko = "format", Io, Fs2, Oo, Qc, ge2, Mo, sl2 = () => true, Et3, pl, cl, ll, ml = (e2) => ll.test(e2), vo, dt3, fl2 = 0, Ro = (e2) => e2.type === "BinaryExpression" && e2.operator === "|", Fl, dl, Cl, Go = (e2) => e2.match((t) => t.type === "TSTypeAnnotation", (t, r) => (r === "returnType" || r === "typeAnnotation") && (t.type === "TSFunctionType" || t.type === "TSConstructorType")) ? "=>" : e2.match((t) => t.type === "TSTypeAnnotation", (t, r) => r === "typeAnnotation" && (t.type === "TSJSDocNullableType" || t.type === "TSJSDocNonNullableType" || t.type === "TSTypePredicate")) || e2.match((t) => t.type === "TypeAnnotation", (t, r) => r === "typeAnnotation" && t.type === "Identifier", (t, r) => r === "id" && t.type === "DeclareFunction") || e2.match((t) => t.type === "TypeAnnotation", (t, r) => r === "typeAnnotation" && t.type === "Identifier", (t, r) => r === "id" && t.type === "DeclareHook") || e2.match((t) => t.type === "TypeAnnotation", (t, r) => r === "bound" && t.type === "TypeParameter" && t.usesExtendsBound) ? "" : ":", hr2, kl = (e2) => ((e2.type === "ChainExpression" || e2.type === "TSNonNullExpression") && (e2 = e2.expression), M2(e2) && le2(e2).length > 0), Vo, Ll, cn2, Yl = ({ node: e2, key: t, parent: r }) => t === "value" && e2.type === "FunctionExpression" && (r.type === "ObjectMethod" || r.type === "ClassMethod" || r.type === "ClassPrivateMethod" || r.type === "MethodDefinition" || r.type === "TSAbstractMethodDefinition" || r.type === "TSDeclareMethod" || r.type === "Property" && mt3(r)), bs = ({ node: e2, parent: t }) => e2.type === "ExpressionStatement" && t.type === "Program" && t.body.length === 1 && (Array.isArray(t.directives) && t.directives.length === 0 || !t.directives), Ls2, Qe2, ws = class {
|
|
88988
88988
|
#e;
|
|
88989
88989
|
constructor(t) {
|
|
88990
88990
|
this.#e = new Set(t);
|
|
@@ -89216,7 +89216,7 @@ var init_estree = __esm(() => {
|
|
|
89216
89216
|
cs = Symbol("DOC_FILL_PRINTED_LENGTH");
|
|
89217
89217
|
no2 = Sc;
|
|
89218
89218
|
so2 = Bc;
|
|
89219
|
-
|
|
89219
|
+
fs7 = [(e2, t) => e2.type === "ObjectExpression" && t === "properties", (e2, t) => e2.type === "CallExpression" && e2.callee.type === "Identifier" && e2.callee.name === "Component" && t === "arguments", (e2, t) => e2.type === "Decorator" && t === "expression"];
|
|
89220
89220
|
fo2 = mo.bind(undefined, "html");
|
|
89221
89221
|
yo = mo.bind(undefined, "angular");
|
|
89222
89222
|
jc = [{ test: po2, print: ao2 }, { test: lo2, print: co2 }, { test: Do, print: fo2 }, { test: ys, print: yo }, { test: Fo, print: Eo }].map(({ test: e2, print: t }) => ({ test: e2, print: Rc(t) }));
|
|
@@ -89428,7 +89428,7 @@ function ls2(e2) {
|
|
|
89428
89428
|
function Ut2(e2) {
|
|
89429
89429
|
return e2 >= 65 && e2 <= 90 || e2 >= 97 && e2 <= 122;
|
|
89430
89430
|
}
|
|
89431
|
-
function
|
|
89431
|
+
function fs8(e2) {
|
|
89432
89432
|
return e2 >= 0 && e2 <= 1114111;
|
|
89433
89433
|
}
|
|
89434
89434
|
function ds2(e2) {
|
|
@@ -91807,7 +91807,7 @@ var init_acorn = __esm(() => {
|
|
|
91807
91807
|
}
|
|
91808
91808
|
return true;
|
|
91809
91809
|
}
|
|
91810
|
-
if (s && e2.eat(123) && this.regexp_eatHexDigits(e2) && e2.eat(125) &&
|
|
91810
|
+
if (s && e2.eat(123) && this.regexp_eatHexDigits(e2) && e2.eat(125) && fs8(e2.lastIntValue))
|
|
91811
91811
|
return true;
|
|
91812
91812
|
s && e2.raise("Invalid unicode escape"), e2.pos = i2;
|
|
91813
91813
|
}
|
|
@@ -92707,7 +92707,7 @@ function W5(t19) {
|
|
|
92707
92707
|
return Oi4 <= t19 && t19 <= Fi4;
|
|
92708
92708
|
}
|
|
92709
92709
|
function Dt3(t19) {
|
|
92710
|
-
return t19 >= hs3 && t19 <=
|
|
92710
|
+
return t19 >= hs3 && t19 <= fs9 || t19 >= qt3 && t19 <= jt4;
|
|
92711
92711
|
}
|
|
92712
92712
|
function Mn(t19) {
|
|
92713
92713
|
return t19 === cs3 || t19 === ls3 || t19 === $t3;
|
|
@@ -92740,7 +92740,7 @@ function mr2(t24, e2, n2) {
|
|
|
92740
92740
|
return new A4(t24, e2, h2.RegExpFlags, 0, n2);
|
|
92741
92741
|
}
|
|
92742
92742
|
function Zn3(t24) {
|
|
92743
|
-
return hs3 <= t24 && t24 <=
|
|
92743
|
+
return hs3 <= t24 && t24 <= fs9 || qt3 <= t24 && t24 <= jt4 || t24 == Xe4 || t24 == Wt3;
|
|
92744
92744
|
}
|
|
92745
92745
|
function es3(t24) {
|
|
92746
92746
|
return Dt3(t24) || W5(t24) || t24 == Xe4 || t24 == Wt3;
|
|
@@ -93112,7 +93112,7 @@ var Ci4, _i4, Ti4, an3 = (t) => {
|
|
|
93112
93112
|
for (let s of e2)
|
|
93113
93113
|
this.visit(s, n2);
|
|
93114
93114
|
}
|
|
93115
|
-
}, kn2, bn2, L4, An2, pe3 = 0, os3 = 9, Ie4 = 10, Ni4 = 11, Pi4 = 12, Li4 = 13, as3 = 32, Mi3 = 33, ls3 = 34, Ri4 = 35, Wt3 = 36, $i4 = 37, In2 = 38, cs3 = 39, ve5 = 40, q5 = 41, Nn = 42, us3 = 43, Q5 = 44, ps3 = 45, H5 = 46, Fe3 = 47, j4 = 58, fe3 = 59, Di4 = 60, k5 = 61, Bi4 = 62, Pn2 = 63, Oi4 = 48, Fi4 = 57, qt3 = 65, Vi4 = 69, jt4 = 90, te6 = 91, it4 = 92, G4 = 93, Ui4 = 94, Xe4 = 95, hs3 = 97, Hi4 = 101, Wi4 = 102, qi4 = 110, ji4 = 114, zi4 = 116, Gi4 = 117, Xi4 = 118,
|
|
93115
|
+
}, kn2, bn2, L4, An2, pe3 = 0, os3 = 9, Ie4 = 10, Ni4 = 11, Pi4 = 12, Li4 = 13, as3 = 32, Mi3 = 33, ls3 = 34, Ri4 = 35, Wt3 = 36, $i4 = 37, In2 = 38, cs3 = 39, ve5 = 40, q5 = 41, Nn = 42, us3 = 43, Q5 = 44, ps3 = 45, H5 = 46, Fe3 = 47, j4 = 58, fe3 = 59, Di4 = 60, k5 = 61, Bi4 = 62, Pn2 = 63, Oi4 = 48, Fi4 = 57, qt3 = 65, Vi4 = 69, jt4 = 90, te6 = 91, it4 = 92, G4 = 93, Ui4 = 94, Xe4 = 95, hs3 = 97, Hi4 = 101, Wi4 = 102, qi4 = 110, ji4 = 114, zi4 = 116, Gi4 = 117, Xi4 = 118, fs9 = 122, Ve4 = 123, Ln2 = 124, K6 = 125, ds3 = 160, $t3 = 96, Ue3 = class t19 {
|
|
93116
93116
|
file;
|
|
93117
93117
|
offset;
|
|
93118
93118
|
line;
|
|
@@ -96347,7 +96347,7 @@ function cr4(a4, t24) {
|
|
|
96347
96347
|
function lr4(a4, t24) {
|
|
96348
96348
|
let e2 = null, s = t24;
|
|
96349
96349
|
for (;s !== e2; )
|
|
96350
|
-
e2 = s, s = cs4(a4, s), s = ps4(a4, s), s = ds4(a4, s), s =
|
|
96350
|
+
e2 = s, s = cs4(a4, s), s = ps4(a4, s), s = ds4(a4, s), s = fs10(a4, s);
|
|
96351
96351
|
return s;
|
|
96352
96352
|
}
|
|
96353
96353
|
function ys4(a4) {
|
|
@@ -100242,7 +100242,7 @@ var Hs5, Re5 = (a3, t24) => {
|
|
|
100242
100242
|
return this.parseV8Intrinsic() || super.parseExprAtom(e2);
|
|
100243
100243
|
}
|
|
100244
100244
|
}, Kt4, Ht5, hs4, tr5, pt6, ze5, sr5, ir5, qe4, ut6, Ee5, ua2, Wt4, da2, cs4, ma2, ls4, ps4, us4 = (a4) => a4 === `
|
|
100245
|
-
` || a4 === "\r" || a4 === "\u2028" || a4 === "\u2029",
|
|
100245
|
+
` || a4 === "\r" || a4 === "\u2028" || a4 === "\u2029", fs10, ds4, ms4, ve6, ee4 = (a4, t24) => (e2, s, ...i2) => e2 | 1 && s == null ? undefined : (t24.call(s) ?? s[a4]).apply(s, i2), ur5, fr5, xs5, mr3, Ps5, te7, xr4, se6, Pr3, gs4, St6, Ts3, wt6, Ct6, bs4, As4, me6 = null, wr4 = 10, Ss3, c3, ws4, Er4, Cs3, Es3, fn4, Ns4, De5, ks4 = "Unexpected parseExpression() input: ", Me6, vr4, Lr4, xe5, Dr4, Mr4, Or4, Fr4, vs5, Br4, Ls5, Rr4, Ur4, Os4, Fs5, H6, Oe5 = "module", Nt5 = "commonjs", Fe4, ie5 = (a4) => H6(Kr3(a4)), Vr4, js5 = "v8intrinsic", Vs4, _3 = (a4, t24 = Vr4) => ({ ...t24, plugins: [...t24.plugins, ...a4] }), zr3, Hr3, zs5, Wr2, Jr2, Gr3, Xr2, qs5, Yr4, Lt5, vt5, $s4, ea2, ta2, sa2, ia2, ra2;
|
|
100246
100246
|
var init_babel = __esm(() => {
|
|
100247
100247
|
Hs5 = Object.defineProperty;
|
|
100248
100248
|
Ks4 = {};
|
|
@@ -103375,7 +103375,7 @@ var init_babel = __esm(() => {
|
|
|
103375
103375
|
ma2 = ke5(",; \t");
|
|
103376
103376
|
ls4 = ke5(/[^\n\r]/u);
|
|
103377
103377
|
ps4 = or5;
|
|
103378
|
-
|
|
103378
|
+
fs10 = hr5;
|
|
103379
103379
|
ds4 = cr4;
|
|
103380
103380
|
ms4 = lr4;
|
|
103381
103381
|
ve6 = pr5;
|
|
@@ -103710,7 +103710,7 @@ var init_flow = __esm(() => {
|
|
|
103710
103710
|
(function(a0) {
|
|
103711
103711
|
var ox = 320, Yx = "loc", xr5 = 289, E1 = 70416, S22 = 69748, da3 = 163, Tt7 = 92159, Vr5 = 43587, G1 = "labeled_statement", yo3 = "&=", Et7 = "int_of_string", G32 = 110591, _o3 = 92909, gp2 = 11559, nD2 = "regexp", W52 = 43301, bp2 = 11703, V52 = 122654, ya2 = 255, uD2 = "%ni", $52 = 68252, iD2 = 232, Q52 = 42785, qn4 = "declare_variable", Tp2 = "while", Z52 = 66938, xy = 70301, ry = 124907, Ep2 = 126515, fD2 = 218, Bn3 = "pattern_identifier", ey = 67643, Un3 = "export_source", ty = 216, ny = 64279, cD2 = "Out_of_memory", uy = 113788, sD2 = "comments", iy = 126624, aD2 = "win32", Xn4 = "object_key_bigint_literal", oD2 = 185, Sp2 = 123214, _a6 = "constructor", fy = 69955, Gn4 = "import_declaration", cy = 68437, sy = "Failure", Ap2 = "Unix.Unix_error", ay = 64255, oy = 42539, vy = 110579, Yn3 = "export_default_declaration", zn4 = "jsx_attribute_name", Ip2 = 11727, ly = 43002, Pp2 = 126500, Jn3 = "component_param_pattern", vD = "collect_comments_opt", Kn4 = "match_unary_pattern", lD2 = 321, Hn4 = "keyof_type", pD2 = "Invalid binary/octal ", kD = "range", py = 170, wa2 = "false", ky = 43798, mD2 = ", characters ", Wn3 = "object_type_property_getter", my = 65547, hy = 126467, dy = 65007, yy = 42237, _y = 8318, wy = 71215, Vn3 = "object_property_type", $n3 = "type_alias", gy = 67742, Qn3 = "function_body", hD = 304, by = 68111, Cp2 = 120745, Ty = 71959, Np2 = 43880, dD2 = "Match_failure", Zn4 = "type_cast", wo3 = 109, ga = "void", Ey = "generator", Sy = 125124, Ay = 101589, Op2 = 94179, yD2 = ">>>", jp2 = 70404, x7 = "optional_indexed_access_type", $1 = "argument", r7 = "object_property", e7 = "object_type_property", Iy = 67004, Py = 42783, Cy = 68850, _D = "@", Ny = 43741, Oy = 43487, Dp2 = "object", wD = "end", Rp2 = 126571, jy = 71956, gD = 208, Dy = 126566, Ry = 67702, bD = "EEXIST", t72 = "this_expression", TD = 203, Fy = 11507, My = 113807, Fp2 = 119893, Ly = 42735, p6 = "rest", n7 = "null_literal", k6 = "protected", qy = 43615, v22 = 8231, By = 68149, Uy = 73727, Xy = 72348, Gy = 92995, Sv = 224, Yy = 11686, zy = 43013, u7 = "assignment_pattern", Jy = 12329, i7 = "function_type", Y32 = 192, f7 = "jsx_element_name", Ky = 70018, ED2 = -57, c7 = "catch_clause_pattern", Mp2 = 126540, s7 = "template_literal", Hy = 120654, Wy = 68497, Vy = 67679, a7 = "readonly_type", $y = 68735, Qy = "<", Lp2 = ": No such file or directory", Zy = 66915, x9 = "chain", SD = "!", o7 = "object_type", r9 = 43712, qp2 = 64297, e9 = 183969, t92 = -105, n9 = 43503, u9 = 67591, Av = 65278, i9 = 67669, v7 = "for_of_assignment_pattern", m6 = "`", f9 = 11502, l7 = "catch_body", c9 = 42191, go3 = -744106340, s9 = 182, Iv = ":", AD = "a string", a9 = 65663, o9 = 66978, v9 = 71947, Bp2 = 43519, l9 = 71086, p9 = 125258, k9 = 12538, p7 = "expression_or_spread", ID = "Printexc.handle_uncaught_exception", Up2 = 69956, Xp2 = 120122, Gp2 = 247, PD = 231, m9 = " : flags Open_rdonly and Open_wronly are not compatible", k7 = "statement_fork_point", CD2 = 710, ND = -692038429, Ue5 = "static", h9 = 55203, d9 = 64324, y9 = 64111, OD = "!==", _9 = 120132, w9 = 124903, h6 = "class", jD = 222, m7 = "pattern_number_literal", ba2 = "kind", g9 = 71903, h7 = "variable_declarator", DD2 = " named `", d7 = "typeof_expression", b9 = 126627, T9 = 70084, RD = 228, Yp2 = 70480, y7 = "class_private_field", E9 = 239, zp2 = 120713, rn3 = 65535, z32 = -26, _7 = "private_name", S9 = 43137, w7 = "remote_identifier", A9 = 70161, g7 = "label_identifier", I9 = "src/parser/statement_parser.ml", P9 = 8335, C9 = 19903, N9 = 64310, Pv = "_", b7 = "for_init_declaration", FD2 = "infer", O9 = 64466, j9 = 43018, MD = "tokens", D9 = 92735, R9 = 66954, F9 = 65473, M9 = 70285, T7 = "sequence", L9 = "compare: functional value", q9 = 69890, d6 = 1000, B9 = 65487, U9 = 42653, LD = "\\\\", qD = "%=", E7 = "match_member_pattern_base", X9 = 72367, S7 = "function_rest_param", BD = "/static/", G9 = 124911, Y9 = 65276, Jp2 = 126558, z9 = 11498, UD = 137, A7 = "export_default_declaration_decl", J9 = "cases", Kp2 = 126602, I7 = "jsx_child", Xe6 = "continue", K9 = 42962, XD = "importKind", e1 = 122, J32 = "Literal", P7 = "pattern_object_property_identifier_key", H9 = 42508, bo3 = "in", W9 = 55238, V9 = 67071, $9 = 70831, Q9 = 72161, Z9 = 67462, GD = "<<=", x_ = 43009, r_ = 66383, Hp2 = 67827, e_ = 72202, t_ = 69839, n_ = 66775, YD = "-=", Cv = 8202, u_ = 70105, i_ = 120538, zD = -92, C7 = "for_in_left_declaration", f_ = "rendersType", Wp2 = 126563, c_ = 70708, Vp2 = 126523, JD2 = 166, N7 = "match_", KD = 202, s_ = 110951, Ta2 = "component", $p2 = 126552, a_ = 66977, o_ = 213, O7 = "enum_member_identifier", HD = 210, j7 = "enum_bigint_body", WD = ">=", v_ = 126495, l_ = "specifiers", p_ = "=", k_ = 65338, y6 = "members", m_ = 123535, h_ = 43702, d_ = 72767, Nv = "get", y_ = 126633, Qp2 = 126536, __ = 94098, w_ = "types", g_ = 113663, VD = "Internal Error: Found private field in object props", D7 = "jsx_element", b_ = 70366, T_ = 110959, Zp2 = 120655, $D = "trailingComments", QD = 282, To3 = 24029, ZD = -100, xR = 144, H22 = "yield", R7 = "binding_pattern", F7 = "typeof_identifier", rR = "ENOTEMPTY", xk = 126468, E_ = 1255, S_ = 120628, M7 = "pattern_object_property_string_literal_key", A_ = 8521, eR = "leadingComments", tR = 8204, Eo3 = "@ ", I_ = 70319, Ea2 = "left", nR = 188, rk = "case", P_ = 19967, ek = 42622, C_ = 43492, N_ = 113770, L7 = "match_instance_pattern_constructor", O_ = 42774, j_ = 183, tk = 8468, q7 = "record_body", B7 = "class_implements", nk = 126579, K32 = "string", uR = 211, r2 = -48, D_ = 69926, R_ = 123213, U7 = "if_consequent_statement", F_ = 124927, H32 = "number", M_ = 126546, L_ = 68119, q_ = 70726, uk = 70750, B_ = 65489, iR = "SpreadElement", fR = "callee", cR = 193, U_ = 70492, X_ = 71934, sR = 164, G_ = 110580, Y_ = 12320, ik = "any", se7 = "/", X7 = "type_guard", w1 = "body", fk = 178, ge6 = "pattern", aR = "comment_bounds", oR = 297, G7 = "binding_type_identifier", z_ = 187, Y7 = "pattern_array_rest_element_pattern", ck = "@])", J_ = 12543, K_ = 11623, vR = "start", H_ = 67871, ae5 = "interface", W_ = 8449, V_ = 67637, $_ = 42961, sk = 120085, Q_ = 126463, lR = "alternate", pR = -1053382366, Z_ = 70143, kR = "--", xw = 68031, z72 = "jsx_expression", J72 = "type_identifier_reference", ak = 11647, rw = "proto", St7 = "identifier", ew = 43696, At7 = "raw", tw = 126529, nw = 11564, ok = 126557, uw = 64911, vk = 67592, iw = 43493, lk = 215, fw = 110588, _6 = 461894857, cw = 92927, sw = 67861, aw = 119980, ow = 43042, mR = -89, vw = 66965, lw = 67391, W32 = "computed", hR = "unreachable jsxtext", pw = 71167, kw = 42559, mw = 72966, dR = 180, hw = 197, pk = 64319, yR = 169, _R = "*", kk = 129, dw = 66335, w6 = "meta", yw = 43388, mk = 94178, ft6 = "optional", hk = "unknown", _w = 120121, ww = 123180, dk = 8469, gw = 68220, wR = "|", bw = 43187, Tw = 94207, Ew = 124895, yk = 120513, Sw = 42527, Ov = 8286, Aw = 94177, g6 = "var", K72 = "component_type_param", Iw = 66421, gR = 285, Pw = 92991, Cw = 68415, H7 = "comment", W7 = "match_pattern_array_element", jv = 244, _k = "^", Nw = 173791, bR = 136, Ow = 42890, jw = "ENOTDIR", Dw = "??", Rw = 43711, Fw = 66303, Mw = 113800, Lw = 42239, qw = 12703, V7 = "variance_opt", $7 = "+", TR = ">>>=", ER = 147, SR = 376, wk = "mixed", Bw = 65613, Uw = 73029, AR = 318, Xw = 68191, IR = "*=", gk = 8487, Gw = 8477, Q7 = "toplevel_statement_list", bk = "never", Tk = "do", So3 = 125, Yw = 72249, PR = "Pervasives.do_at_exit", CR = "visit_trailing_comment", Z7 = "jsx_closing_element", xu2 = "jsx_namespaced_name", zw = 124908, Jw = 126651, ru2 = "component_declaration", Kw = 15, eu2 = "interface_type", tu2 = "function_type_return_annotation", Hw = 64109, Ek = 65595, Sk = 126560, Ww = 110927, Ak = 65598, Ik = 8488, nu2 = "`.", NR = 175, Pk = "package", Ck = "else", Nk = 120771, Vw = 68023, OR = "fd ", Dv = 8238, Ok = 888960333, jk = 119965, $w = 42655, uu2 = "match_object_pattern", Qw = 11710, Zw = 119993, iu2 = "boolean_literal", jR = 290, fu2 = "statement_list", cu2 = "function_param", su2 = "match_as_pattern", au2 = "pattern_object_property_bigint_literal_key", Dk = 69959, xg = 120485, DR = 240, rg = 191456, ou2 = "declare_enum", Rk = 120597, Fk = 70281, vu2 = "type_annotation", lu2 = "spread_element", Mk = 126544, eg = 120069, en4 = "key", tg = 43583, ng = "out", ug = `
|
|
103712
103712
|
`, RR = "**=", pu2 = "pattern_object_property_pattern", ig = "e", fg = 72712, FR = "Internal Error: Found object private prop", cg = "ENOENT", sg = -42, ku2 = "jsx_opening_attribute", ag = 67646, mu2 = "component_type", og = 64296, vg = 43887, MR = "Division_by_zero", LR = "EnumDefaultedMember", hu2 = "typeof_member_identifier", lg = 43792, du2 = "match_member_pattern_property", yu2 = "declare_export_declaration_decl", pg = 93026, _u2 = "type_annotation_hint", kg = 42887, mg = 43881, hg = 43761, Lk = 8526, qR = 287, b6 = 119, dg = 43866, yg = 72847, _g = 8348, k1 = 101, wg = 94026, qk = 72272, BR = "src/parser/flow_lexer.ml", gg = 120744, Rv = 8191, V32 = "implies", Bk = 255, Uk = 11711, wu2 = "match_unary_pattern_argument", bg = 71235, UR = 288, Xk = 68116, cr5 = 100, gu2 = "match_expression", bu2 = "enum_body", Gk = 1114111, Tu2 = "assignment", Tg = 71955, Yk = 43260, Eu2 = "pattern_array_e", Eg = 126583, XR = "prefix", Su2 = "class_body", T6 = "shorthand", Sg = 171, Ag = 66256, zk = -97, GR = " =", Ig = 94032, Pg = 42606, Au2 = "match_case", Cg = 71839, Jk = 120134, Ng = 55291, Og = 92862, jg = 43019, Dg = 126543, $32 = "function", Rg = 111355, Fg = 11389, Mg = 70753, Lg = 43249, qg = 64829, Kk = "line", Iu2 = "function_declaration", Hk = "undefined", YR = "([^/]+)", Bg = 110947, Ug = 70002, zR = "Cygwin", Pu2 = "as_expression", Xg = 12591, Wk = 64285, Gg = 2048, Yg = 73112, Vk = 126589, JR = 225, $k = 43259, zg = 72817, Qk = 64318, KR = 172, HR = 209, Cu2 = "match_binding_pattern", Nu2 = " ", Ou2 = "import_source", E6 = "delete", WR = "Enum `", Zk = 126553, Jg = 67001, Fv = "default", Kg = 11630, Hg = 206, ju2 = "enum_bigint_member", Wg = 67504, x8 = 67593, Vg = 113791, VR = "MatchObjectPatternProperty", $g = 69572, Du2 = "typeof_type", $R = 212, QR = "%i", Ru2 = "function_this_param", Qg = 72329, Ao3 = "0x", Mv = 8239, Zg = 75075, ZR = 57343, Fu2 = "pattern_bigint_literal", xb = 12341, xF = 201, Lv = "hook", rF = ": closedir failed", rb = 42959, r8 = 119970, eb = 43560, eF = "||=", Mu2 = "member_private_name", tb = 120570, Lu2 = "object_key_identifier", e8 = 223, tF = "Not_found", qu2 = "record_static_property", nF = 230, Bu2 = "jsx_element_name_member_expression", Uu2 = "string_literal", nb = 120596, ub = 43807, ib = 69687, fb = 63743, t82 = 72192, Xu2 = "member_property", cb = 43262, Gu2 = "class_declaration", uF = "renders*", iF = "%Li", sb = 126578, Yu2 = "jsx_attribute", Q32 = 254, be6 = "empty", S6 = "label", zu2 = "object_internal_slot_property_type", n8 = 120133, ab = 43359, Ge7 = "predicate", fF = "??=", ob = 43697, vb = -43, Ju2 = "default_opt", cF = "the start of a statement", lb = 67826, Ku2 = "record_element", Hu2 = "object_", Wu2 = "class_element", u82 = 11631, i8 = 70855, Vu2 = "opaque_type", $u2 = "number_literal", sF = ", ", f8 = 8319, c8 = 120004, s8 = 133, Qu2 = "type_params", Zu2 = "pattern_object_rest_property", W22 = "import", pb = 72000, kb = 67413, mb = 12343, hb = 70080, xi6 = "intersection_type", l22 = -36, db = 70005, A6 = "properties", yb = 11679, _b2 = 8483, wb = 110587, aF = 43520, ri6 = "computed_key", oF = 207, ei6 = "class_identifier", gb = "Invalid number ", ti6 = "function_param_pattern", qv = 12288, bb = 113817, Tb = 70730, Eb = 178207, a8 = 71236, Sb = 167, ni6 = "object_indexer_property_type", Ab = 64286, vF = "TypeAnnotation", lF = 220, ui7 = "type_identifier", ii6 = "spread_property", fi6 = "jsx_attribute_value_expression", Ib = 126519, o8 = 70108, v8 = 126, l8 = 42999, Sa = "prototype", Pb = " : flags Open_text and Open_binary are not compatible", pF = "**", p8 = 43823, Cb = ": Not a directory", ci6 = "render_type", k8 = 72349, Z32 = "test", Nb = 43776, Ob = 92879, jb = 11263, kF = 241, Db = 93052, si6 = "nullable_type", Rb = 43704, Fb = 64321, mF = "Property", Mb = 72191, hF = 165, I6 = "instanceof", Lb = 69247, dF = 302, Ye4 = "name", m8 = 126634, qb = 8516, h8 = "typeArguments", Bb = 71127, ai6 = "jsx_spread_attribute", Ub = 66559, Xb = 44031, Gb = 43645, e2 = 8233, Yb = 71494, zb = "opaque", d8 = 72967, Jb = 70106, oi6 = "logical", yF = "@[%s =@ ", P6 = "0o", y8 = 126554, Kb = 71351, _8 = 8484, Hb = 72242, w8 = 120687, xl2 = 252, Wb = 183983, C6 = "%S", vi6 = "function_this_param_type", _F = 292, g8 = "decorators", Vb = 43255, li6 = "catch_clause", ze6 = "-", $b = 67711, wF = ": file descriptor already closed", b8 = 64311, pi6 = "record_declaration", T8 = 120539, Qb = "arguments", E8 = 73062, Zb = 173823, xT = 42124, rT = 72095, eT = 125259, tT = 42969, S8 = 70280, gF = 12520, nT = 69749, uT = 70066, ki6 = "binary", mi6 = "for_in_statement", iT = 43010, bF = "^=", fT = 126570, hi6 = "for_statement", A8 = 126584, di6 = "function_return_annotation", cT = 72144, sT = 8505, TF = -101, yi5 = "class_expression", aT = 120076, oT = 69807, vT = 40981, lT = -24976191, pT = 72768, kT = 126550, I8 = '"', _i6 = "call_type_arg", EF = "f", Bv = "this", P8 = 126628, SF = "===", AF = 56320, wi6 = "declare_module_exports", mT = 120512, p22 = 105, hT = 119974, dT = 71450, yT = 71942, IF = 195, C8 = 120629, PF = "/=", CF = ">>", gi6 = "declare_interface", NF = 4096, bi6 = "pattern_array_rest_element", _T = 71338, N8 = 126520, Ti6 = "as_const_expression", OF = "Popping lex mode from empty stack", jF = "renders?", wT = 68405, Ei6 = "member", Si6 = "class_extends", Uv = 12287, O8 = 126590, gT = 66377, DF = "fields", Io3 = "async", Ai6 = "pattern_array_element", rl2 = 240, RF = 308, bT = 69864, Xv = "readonly", TT = 70460, ET = 120779, ST = 66378, Ii6 = "new_", j8 = 126551, Pi6 = "pattern_object_rest_property_pattern", Ci6 = "for_statement_init", AT = 43595, D8 = 68296, FF = 148, MF = "\x01\x00\x00\x00\x00\x02", IT = 120712, PT = 64217, CT = 69295, LF = "||", NT = ";", OT = 70461, jT = 66939, DT = "record", qF = "collect_comments", BF = 279, Ni6 = "generic_type", RT = 68295, FT = 44002, R8 = 72162, Oi6 = "object_call_property_type", F8 = 8305, M8 = 119995, L8 = "with", ji6 = "class_property", UF = "qualification", Di6 = "jsx_attribute_name_namespaced", Ri6 = "if_statement", Fi6 = "typeof_qualified_identifier", XF = 238, MT = 65615, GF = 176, t24 = "expression", q8 = 126559, Mi5 = "jsx_attribute_value", Li6 = "<2>", qi6 = "component_param", B8 = "Map.bal", N6 = 132, LT = 70412, qT = 70440, YF = "<<", U8 = "finally", zF = "v", Bi6 = "syntax_opt", Ui6 = "meta_property", BT = 12447, UT = 67514, X8 = 12448, Xi6 = "object_mapped_type_property", Gv = "operator", JF = "closedir", Gi6 = "unary_expression", XT = 126588, GT = 70851, Yi6 = "export_batch_specifier", el2 = "renders", KF = 226, YT = 73111, HF = 221, rx = "", zT = 66927, JT = 64967, KT = "elements", HT = 67640, WT = 43754, zi6 = "declare_export_declaration", G8 = -26065557, VT = 65855, O6 = "boolean", Aa2 = "typeof", $T = 124902, WF = 139, QT = 65629, VF = 224, ZT = 43123, Y8 = 70449, xE = 12735, Te7 = 107, z8 = 11719, $F = "!=", Ji6 = "call_type_args", tl2 = "asserts", Po3 = -46, rE = "namespace", Ki6 = "match_pattern", Hi6 = "for_of_statement_lhs", J8 = 126504, eE = 69505, K8 = "for", tE = 72703, H8 = 120127, W8 = 43471, nE = 93047, QF = "Undefined_recursive_module", ZF = 2147483647, Wi6 = "template_literal_element", xM = "Unexpected ", uE = 101631, iE = 65497, V8 = 68120, Vi6 = "import_default_specifier", tn4 = "array", rM = "expressions", fE = 110930, eM = 204, $i6 = "while_", Qi6 = "function_rest_param_type", Co3 = 63, cE = 77808, tM = "Unexpected token `", k22 = 114, Zi6 = "pattern_object_p", sE = 65140, aE = 123190, xf2 = "pattern_object_property_number_literal_key", j6 = "enum", rf = "conditional_type", ef = 113, tf = "array_type", nM = "minus", oE = 43790, nf = "do_while", vE = 11567, lE = 11694, D6 = 256, pE = 119976, uf = "component_body", nn4 = 111, kE = 177976, $8 = 67644, mE = 73439, R62 = 951901561, uM = "?", iM = ")", Q8 = 43867, Z8 = 65575, hE = 69445, fM = "FunctionTypeParam", xm2 = 119996, dE = 65019, ff = "conditional", yE = 11505, cM = 135, _E = 71295, wE = 12799, gE = 67382, cf = "type_guard_annotation", sf = "object_key_computed", un4 = 123, af = "pattern_object_property_key", bE = 119892, TE = 67505, EE = 66962, of = "with_", SE = 43273, vf2 = "interface_declaration", rm2 = "bool", AE = 71945, IE = "declaration", PE = 11519, F62 = ">", CE = 66771, em2 = "}", sM = 8472, NE = 43014, lf = "declare_function", Gr4 = 127, OE = "RestElement", jE = 190, DE = 8467, aM = "module", tm2 = 126522, oM = "Sys_blocked_io", pf = "jsx_opening_element", kf2 = "object_key_number_literal", mf = "match_instance_pattern", vM = "|=", lM = "mixins", RE = 205, pM = 217, nm2 = "if", kM = "+=", hf = "match_object_pattern_property_key", df = "match_rest_pattern", yf = "export_named_declaration_specifier", um2 = "try", im2 = "_bigarr02", FE = 70479, fn5 = "right", ME = 245, LE = 11718, _f2 = "tuple_labeled_element", mM = "TypeParameterInstantiation", qE = "mkdir", BE = 71999, UE = 870530776, hM = "@[", dM = -908856609, yM = 331416730, XE = 11670, GE = 66735, YE = 43709, fm2 = 43642, zE = 67002, JE = 69375, wf = "function_body_any", KE = 119807, _M = "Assert_failure", gf = "function_identifier", HE = 65479, M6 = 131, Yv = "new", bf = "for_of_left_declaration", WE = 120084, VE = 100343, $E = 73030, cm2 = 70452, sm2 = 134, QE = 253, ZE = 42954, wM = 227, Tf = "jsx_member_expression_object", Ef = "class_property_value", xS = 120144, gM = 314, rS = 66994, nl2 = "set", eS = 126498, Sf = "tuple_element", Af = "arg_list", tS = 65481, nS = 8511, uS = 42964, iS = 11492, am2 = 126555, fS = 71039, cS = "exportKind", If2 = "program", sS = 70187, bM = 173, It6 = "as", zv = 124, TM = "visit_leading_comment", aS = 110575, Pf2 = "class_", oS = 72440, vS = 67897, EM = 235, lS = 8543, SM = 141, Cf2 = 120, Nf = "match_object_pattern_property", L6 = 1024, pS = 101640, AM = 1027, IM = 236, ul2 = 246, PM = "(", kS = 66511, Of = "regexp_literal", mS = 65574, hS = 43513, dS = 43695, CM = "&&", om2 = 11558, yS = 66503, _S = 93071, jf = "pattern_expression", wS = 65381, vm2 = 126538, gS = 12292, Df2 = "import_namespace_specifier", bS = 67583, TS = 120137, ES = 69622, SS = 120770, AS = 71131, Jv = 8287, IS = 110590, PS = 65135, CS = "Fatal error: exception ", q62 = 118, NS = 181, lm2 = 11687, m22 = "camlinternalFormat.ml", OS = 72959, jS = 249, Rf2 = "union_type", NM = 8206, DS = 73064, RS = 70271, FS = 92728, pm2 = 65344, km2 = 11695, Ff = "class_decorator", OM = "the end of an expression statement (`;`)", MS = 177983, LS = 8457, jM = 931, qS = 66499, BS = 94175, DM = "#", US = "Identifier", Mf2 = "for_in_statement_lhs", Lf = "pattern_string_literal", mm2 = 70302, hm2 = 126496, XS = 66461, GS = 82943, dm2 = 8450, YS = 72271, zS = 70853, JS = "of", RM = "Stack_overflow", B6 = "hasUnknownMembers", U62 = "a", qf = "variable_declarator_pattern", KS = 73061, HS = 77711, ym2 = 64317, WS = 73097, FM = 269, Bf = "enum_declaration", VS = 66966, $S = 189, QS = 119964, Uf = "type_param", cn4 = 782176664, _m2 = 65535, MM = -10, ZS = 64433, wm2 = 43815, gm2 = 94031, bm2 = 73065, xA = 69958, LM = 145, Tm2 = "property", Xf = "jsx_children", Gf = "member_property_identifier", rA = 42537, No3 = "const", eA = 70278, Yf = "enum_string_member", X62 = "local", zf = "jsx_element_name_identifier", tA = 68223, Em2 = "\x01\x02", nA = 119967, Sm2 = 119994, uA = 66993, Jf = "jsx_member_expression_identifier", Am2 = "explicitType", iA = 67589, fA = 65597, cA = "exported", sA = 94111, aA = 113775, Kf = "object_spread_property_type", oA = 64847, Hf = "component_identifier", Wf = "class_implements_interface", qM = 162, BM = 243, vA = 12783, UM = `Fatal error: exception %s
|
|
103713
|
-
`, Im2 = 120093, G6 = "column", Vf = "component_rest_param", XM = "methods", lA = 70451, pA = 70312, kA = 69967, Pm2 = 70279, mA = 66463, hA = 92975, Cm2 = 70286, $f2 = "pattern_object_property_computed_key", Qf = "object_key_string_literal", dA = "jsError", Zf = "type_args", yA = 8304, GM = "==", wr5 = 115, xc2 = "declare_component", _A = 120092, wA = 43638, gA = 66811, Ia2 = -87, bA = 43334, TA = 66863, EA = 77823, YM = 143, rc2 = "optional_call", SA = 126562, Nm2 = 70162, ec3 = 104, zM = "static ", AA = 66963, Kv = "await", Om2 = 70107, V22 = "0", IA = 72250, PA = 8507, CA = 100351, jm2 = "AssignmentPattern", tc2 = "type", JM = "%u", NA = "NonNullExpression", nc2 = "function_expression_or_method", OA = 43470, KM = 146, HM = 242, WM = "camlinternalMod.ml", uc2 = "match_or_pattern", jA = 72750, DA = 69414, RA = 65370, ic2 = "syntax", VM = 32752, FA = 42963, $M = "End_of_file", MA = 12294, LA = 8471, QM = "elementType", qA = 43782, ZM = "++", BA = 43641, UA = 71944, fc2 = "record_property", XA = 126601, GA = 78894, xL = -45, Hv = "null", rL = 177, eL = "satisfies", YA = 131071, cc2 = "import_specifier", sc2 = "class_method", ac2 = "type_", zA = 126514, JA = 8454, tL = "inexact", KA = 67807, HA = 8525, WA = 65470, VA = 71352, oc2 = "tuple_spread_element", nL = 219, $A = "abstract", QA = 73458, Je6 = "return", Y6 = 65536, Dm2 = 126548, vc2 = "array_element", ZA = -253313196, xI = 186, Rm2 = "catch", lc3 = "infer_type", rI = 12295, uL = "Invalid legacy octal ", eI = 69762, tI = 43311, nI = 65437, pc3 = "variable_declaration", iL = -696510241, kc2 = "function_params", uI = 64316, fL = 311, Fm2 = 11565, cL = "infinity", iI = "@]", fI = 65908, mc2 = "extends", cI = 66204, sI = 43784, aI = 11742, Mm2 = 126503, Ke6 = "debugger", oI = 70457, z62 = 912068366, vI = 68786, Lm2 = "keyof", qm2 = 69415, lI = 12686, sn4 = 127343600, hc2 = "declare_type_alias", sL = "the", aL = 233, dc2 = "jsx_element_name_namespaced", pI = 72283, kI = 161, yc2 = "class_static_block", _c2 = "function_param_type", Pt7 = 128, mI = -673950933, Bm2 = 126591, oL = "Sys_error", hI = 74649, dI = 74862, J62 = "is", yI = 43738, _I = 68479, vL = 196, Um2 = 70854, wc2 = "enum_boolean_member", Xm2 = 72163, wI = 92783, lL = 281, gc2 = "component_param_name", gI = 68863, an4 = 32768, pL = 2048, bI = 64284, kL = "@{", TI = "\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01", Gm2 = 8455, bc2 = "update_expression", mL = 276, EI = 65500, K62 = "from", SI = 68447, Ym2 = 12592, AI = 92766, hL = ">>=", n2 = 110, II = 66431, PI = 43586, Tc2 = "jsx_identifier", CI = " : file already exists", R1 = 128, NI = 71958, OI = 66717, Ec2 = "enum_boolean_body", jI = 64262, Yr5 = "id", Sc2 = "component_renders_annotation", DI = 42888, RI = 8584, FI = 73008, Ac2 = "enum_symbol_body", Ic2 = "declare_namespace", zm2 = 72713, MI = 55215, Pc2 = "object_property_value_type", Cc2 = "match_wildcard_pattern", Nc2 = "for_in_assignment_pattern", Jm2 = 8485, LI = 43395, qI = 229, Pa2 = "true", BI = 43743, Oc2 = "enum_number_member", dL = 234, UI = 72969, yL = "expected *", Ee6 = 102, _L = 200, H62 = "symbol", Wv = "source", jc2 = "tparam_const_modifier", XI = 43714, Dc2 = "jsx_fragment", Rc2 = "jsx_attribute_name_identifier", W62 = "public", GI = 43442, Fc2 = "pattern_object_property", YI = 65786, zI = 70783, JI = 43713, KI = 72160, wL = "*-/", Mc2 = "export_named_specifier", Lc2 = "arrow_function", HI = 122623, Km2 = 70006, gL = "${", WI = 43814, qc2 = "generic_qualified_identifier_type", VI = 199, Bc2 = "jsx_spread_child", Hm2 = 8489, Wm2 = 184, bL = 2047, $I = 66955, Uc2 = "try_catch", QI = 70497, TL = 313, EL = 237, ZI = 67431, xP = 125183, SL = -602162310, on3 = "params", rP = "consequent", eP = 68029, tP = 67829, nP = 68095, Xc2 = "enum_string_body", uP = 93823, iP = 68351, fP = 65495, Gc2 = "declare_module", Yc2 = "match_as_pattern_target", zc2 = "body_expression", cP = 66175, sP = 191, Vm2 = 70441, $m2 = 65141, Qm2 = "&", Jc2 = "super_expression", Zm2 = 126564, aP = 72105, LI0 = "fs", He6 = "throw", oP = 68287, vP = 67839, Ca2 = 116, lP = 110882, pP = 69404, kP = 123197, Vv = 65279, il3 = "src/parser/type_parser.ml", mP = 68115, xh = 126547, rh = 126556, hP = 73055, Kc2 = "member_property_expression", Hc2 = "enum_defaulted_member", dP = 43071, yP = 11726, Wc2 = "component_type_rest_param", _P = 68607, Vc2 = "object_key", AL = 160, $22 = "variance", wP = 70655, gP = 70414, fl3 = "super", bP = 123583, TP = 65594, V6 = "method", EP = 73648, $62 = 121, SP = 93951, $c2 = "pattern_array_element_pattern", AP = 43764, IP = 42993, eh = 120145, PP = 74879, IL = 168, th = 8486, CP = 72001, Qc2 = "tagged_template", Zc2 = "module_ref_literal", NP = 65312, Oo2 = "implements", OP = 43700, jP = 120003, PL = "Invalid_argument", xs6 = 16777215, DP = 83526, nh = 69744, uh = 12336, rs5 = "switch_case", CL = -61, es5 = "optional_member", RP = 64274, ih = 64322, fh = 126530, FP = 71998, ch = 72970, MP = 13311, LP = 73647, qP = 120074, cl2 = "let", NL = "global", ts5 = "expression_statement", ns5 = "component_type_params", BP = 512, UP = 69634, XP = 67461, GP = 123627, YP = 64913, OL = "children", jL = "PropertyDefinition", DL = 1026, RL = "%li", us5 = "declare_class", zP = 43258, is5 = "indexed_access_type", JP = 124926, h22 = 112, KP = "b",
|
|
103713
|
+
`, Im2 = 120093, G6 = "column", Vf = "component_rest_param", XM = "methods", lA = 70451, pA = 70312, kA = 69967, Pm2 = 70279, mA = 66463, hA = 92975, Cm2 = 70286, $f2 = "pattern_object_property_computed_key", Qf = "object_key_string_literal", dA = "jsError", Zf = "type_args", yA = 8304, GM = "==", wr5 = 115, xc2 = "declare_component", _A = 120092, wA = 43638, gA = 66811, Ia2 = -87, bA = 43334, TA = 66863, EA = 77823, YM = 143, rc2 = "optional_call", SA = 126562, Nm2 = 70162, ec3 = 104, zM = "static ", AA = 66963, Kv = "await", Om2 = 70107, V22 = "0", IA = 72250, PA = 8507, CA = 100351, jm2 = "AssignmentPattern", tc2 = "type", JM = "%u", NA = "NonNullExpression", nc2 = "function_expression_or_method", OA = 43470, KM = 146, HM = 242, WM = "camlinternalMod.ml", uc2 = "match_or_pattern", jA = 72750, DA = 69414, RA = 65370, ic2 = "syntax", VM = 32752, FA = 42963, $M = "End_of_file", MA = 12294, LA = 8471, QM = "elementType", qA = 43782, ZM = "++", BA = 43641, UA = 71944, fc2 = "record_property", XA = 126601, GA = 78894, xL = -45, Hv = "null", rL = 177, eL = "satisfies", YA = 131071, cc2 = "import_specifier", sc2 = "class_method", ac2 = "type_", zA = 126514, JA = 8454, tL = "inexact", KA = 67807, HA = 8525, WA = 65470, VA = 71352, oc2 = "tuple_spread_element", nL = 219, $A = "abstract", QA = 73458, Je6 = "return", Y6 = 65536, Dm2 = 126548, vc2 = "array_element", ZA = -253313196, xI = 186, Rm2 = "catch", lc3 = "infer_type", rI = 12295, uL = "Invalid legacy octal ", eI = 69762, tI = 43311, nI = 65437, pc3 = "variable_declaration", iL = -696510241, kc2 = "function_params", uI = 64316, fL = 311, Fm2 = 11565, cL = "infinity", iI = "@]", fI = 65908, mc2 = "extends", cI = 66204, sI = 43784, aI = 11742, Mm2 = 126503, Ke6 = "debugger", oI = 70457, z62 = 912068366, vI = 68786, Lm2 = "keyof", qm2 = 69415, lI = 12686, sn4 = 127343600, hc2 = "declare_type_alias", sL = "the", aL = 233, dc2 = "jsx_element_name_namespaced", pI = 72283, kI = 161, yc2 = "class_static_block", _c2 = "function_param_type", Pt7 = 128, mI = -673950933, Bm2 = 126591, oL = "Sys_error", hI = 74649, dI = 74862, J62 = "is", yI = 43738, _I = 68479, vL = 196, Um2 = 70854, wc2 = "enum_boolean_member", Xm2 = 72163, wI = 92783, lL = 281, gc2 = "component_param_name", gI = 68863, an4 = 32768, pL = 2048, bI = 64284, kL = "@{", TI = "\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01", Gm2 = 8455, bc2 = "update_expression", mL = 276, EI = 65500, K62 = "from", SI = 68447, Ym2 = 12592, AI = 92766, hL = ">>=", n2 = 110, II = 66431, PI = 43586, Tc2 = "jsx_identifier", CI = " : file already exists", R1 = 128, NI = 71958, OI = 66717, Ec2 = "enum_boolean_body", jI = 64262, Yr5 = "id", Sc2 = "component_renders_annotation", DI = 42888, RI = 8584, FI = 73008, Ac2 = "enum_symbol_body", Ic2 = "declare_namespace", zm2 = 72713, MI = 55215, Pc2 = "object_property_value_type", Cc2 = "match_wildcard_pattern", Nc2 = "for_in_assignment_pattern", Jm2 = 8485, LI = 43395, qI = 229, Pa2 = "true", BI = 43743, Oc2 = "enum_number_member", dL = 234, UI = 72969, yL = "expected *", Ee6 = 102, _L = 200, H62 = "symbol", Wv = "source", jc2 = "tparam_const_modifier", XI = 43714, Dc2 = "jsx_fragment", Rc2 = "jsx_attribute_name_identifier", W62 = "public", GI = 43442, Fc2 = "pattern_object_property", YI = 65786, zI = 70783, JI = 43713, KI = 72160, wL = "*-/", Mc2 = "export_named_specifier", Lc2 = "arrow_function", HI = 122623, Km2 = 70006, gL = "${", WI = 43814, qc2 = "generic_qualified_identifier_type", VI = 199, Bc2 = "jsx_spread_child", Hm2 = 8489, Wm2 = 184, bL = 2047, $I = 66955, Uc2 = "try_catch", QI = 70497, TL = 313, EL = 237, ZI = 67431, xP = 125183, SL = -602162310, on3 = "params", rP = "consequent", eP = 68029, tP = 67829, nP = 68095, Xc2 = "enum_string_body", uP = 93823, iP = 68351, fP = 65495, Gc2 = "declare_module", Yc2 = "match_as_pattern_target", zc2 = "body_expression", cP = 66175, sP = 191, Vm2 = 70441, $m2 = 65141, Qm2 = "&", Jc2 = "super_expression", Zm2 = 126564, aP = 72105, LI0 = "fs", He6 = "throw", oP = 68287, vP = 67839, Ca2 = 116, lP = 110882, pP = 69404, kP = 123197, Vv = 65279, il3 = "src/parser/type_parser.ml", mP = 68115, xh = 126547, rh = 126556, hP = 73055, Kc2 = "member_property_expression", Hc2 = "enum_defaulted_member", dP = 43071, yP = 11726, Wc2 = "component_type_rest_param", _P = 68607, Vc2 = "object_key", AL = 160, $22 = "variance", wP = 70655, gP = 70414, fl3 = "super", bP = 123583, TP = 65594, V6 = "method", EP = 73648, $62 = 121, SP = 93951, $c2 = "pattern_array_element_pattern", AP = 43764, IP = 42993, eh = 120145, PP = 74879, IL = 168, th = 8486, CP = 72001, Qc2 = "tagged_template", Zc2 = "module_ref_literal", NP = 65312, Oo2 = "implements", OP = 43700, jP = 120003, PL = "Invalid_argument", xs6 = 16777215, DP = 83526, nh = 69744, uh = 12336, rs5 = "switch_case", CL = -61, es5 = "optional_member", RP = 64274, ih = 64322, fh = 126530, FP = 71998, ch = 72970, MP = 13311, LP = 73647, qP = 120074, cl2 = "let", NL = "global", ts5 = "expression_statement", ns5 = "component_type_params", BP = 512, UP = 69634, XP = 67461, GP = 123627, YP = 64913, OL = "children", jL = "PropertyDefinition", DL = 1026, RL = "%li", us5 = "declare_class", zP = 43258, is5 = "indexed_access_type", JP = 124926, h22 = 112, KP = "b", fs11 = "predicate_expression", cs5 = "if_alternate_statement", Q62 = "private", FL = -594953737, ML = 140, HP = "nan", WP = 72103, sh = 11735, ss5 = "statement", VP = "rmdir", ah = 66512, $P = "match", QP = 198, ZP = 11734, as5 = "import_named_specifier", xC = 69599, rC = 68799, eC = 194559, os5 = "match_array_pattern", LL = 174, vs6 = "function_", ls5 = "bigint_literal", t1 = 248, oh = 67638, vh = 126539, tC = 11557, qL = 214, nC = 5760, We6 = "break", vn3 = "block", ps5 = "match_member_pattern", uC = 123565, iC = 66815, m1 = "value", BL = 1039100673, fC = 69746, cC = 70448, sC = 74751, ks5 = "init", aC = 69551, lh = 65548, ms5 = "jsx_member_expression", ph = 68096, d22 = 108, kh = 126521, oC = 71487, hs5 = "match_statement", vC = 178205, lC = 12548, UL = " : is a directory", ln5 = ".", pC = 12348, sl3 = -835925911, B22 = "typeParameters", kC = 66855, Y1 = "typeAnnotation", $v = "bigint", ds5 = "jsx_attribute_value_literal", mh = 194, XL = "T_JSX_TEXT", mC = 68466, hh = 126537, GL = 67714067, hC = 69487, dh = "export", dC = 43822, yh = 126499, yC = 55242, ys5 = "member_type_identifier", YL = 138, _C = 71679, Qv = 130, wC = 12438, gC = 119969, zL = 298, _h = 12539, bC = 119972, JL = ",", TC = 71423, EC = "index out of bounds", Ct7 = 106, al2 = "%d", KL = "T_RENDERS_QUESTION", wh = 120571, gh = "returnType", SC = 69423, bh = 120070, HL = "%", Z62 = 117, AC = 179, IC = "EBADF", PC = 93759, Th = 64325, _s5 = "component_params", CC = 66517, NC = 67423, OC = 605857695, jC = 43518, WL = 251, ws5 = "for_of_statement", DC = 71983, VL = "~", RC = 12442, Ve6 = "switch", FC = 66207, Eh = 126535, $L = "&&=", MC = 69289, LC = 71723, gs5 = "generic_identifier_type", qC = 126619, bs5 = "object_type_property_setter", BC = 70418, QL = "<=", UC = 125251, XC = 11702, Ts4 = "enum_number_body", ol3 = 250, GC = 124910, YC = 69297, zC = 67455, JC = 42511, Es4 = "ts_satisfies", ZL = 268, KC = 68324, Sh = "an identifier", HC = 126534, Ss4 = 103, WC = 120126, jo2 = 449540197, x42 = "declare", VC = 68899, $C = 126502, As5 = "function_expression", xq = 142, QC = 123135, ZC = 67967, xN = 120487, rN = 120686, Is6 = "export_named_declaration", eN = 66348, Ah = 119981, tN = 12352, Ps6 = "tuple_type", nN = 68680, Ih = "target", Cs4 = "call";
|
|
103714
103714
|
function Ez(x6, r, e6, t25, u) {
|
|
103715
103715
|
if (t25 <= r)
|
|
103716
103716
|
for (var i6 = 1;i6 <= u; i6++)
|
|
@@ -106048,7 +106048,7 @@ var init_flow = __esm(() => {
|
|
|
106048
106048
|
function XJ(x6, r, e6, t25, u, i6, c6, v6) {
|
|
106049
106049
|
return (x6.l >= 0 ? x6.l : x6.l = x6.length) == 7 ? x6(r, e6, t25, u, i6, c6, v6) : Os5(x6, [r, e6, t25, u, i6, c6, v6]);
|
|
106050
106050
|
}
|
|
106051
|
-
var D5 = undefined, NN = [t1, cD2, -1], Lq = [t1, oL, -2], mn4 = [t1, sy, -3], Kh = [t1, PL, -4], Ds6 = [t1, tF, -7], qq = [t1, dD2, -8], Bq = [t1, RM, -9], Nr5 = [t1, _M, -11], s4 = [t1, QF, -12], GJ = [4, 0, 0, 0, [12, 45, [4, 0, 0, 0, 0]]], ON = [0, [11, 'File "', [2, 0, [11, '", line ', [4, 0, 0, 0, [11, mD2, [4, 0, 0, 0, [12, 45, [4, 0, 0, 0, [11, ": ", [2, 0, 0]]]]]]]]]], 'File "%s", line %d, characters %d-%d: %s'], dl2 = [0, 0, [0, 0, 0], [0, 0, 0]], Lo3 = [0, 0, 0, 0, 0, 0, 1, 0, 0, 0], Uq = [0, "first_leading", "last_trailing"], Xq = [0, Af, tn4, vc2, tf, Lc2, Ti6, Pu2, Tu2, u7, ls5, ki6, R7, G7, vn3, zc2, iu2, We6, Cs4, _i6, Ji6, l7, li6, c7, Pf2, Su2, Gu2, Ff, Wu2, yi5, Si6, ei6, B7, Wf, sc2, y7, ji6, Ef, yc2, H7, uf, ru2, Hf, qi6, gc2, Jn3, _s5, Sc2, Vf, mu2, K72, ns5, Wc2, ri6, ff, rf, Xe6, Ke6, us5, xc2, ou2, zi6, yu2, lf, gi6, Gc2, wi6, Ic2, hc2, qn4, Ju2, nf, be6, j7, ju2, bu2, Ec2, wc2, Bf, Hc2, O7, Ts4, Oc2, Xc2, Yf, Ac2, Yi6, Yn3, A7, Is6, yf, Mc2, Un3, t24, p7, ts5, Nc2, C7, mi6, Mf2, b7, v7, bf, ws5, Hi6, hi6, Ci6, vs6, Qn3, wf, Iu2, As5, nc2, gf, cu2, ti6, _c2, kc2, S7, Qi6, di6, Ru2, vi6, i7, tu2, gs5, qc2, Ni6, St7, cs5, U7, Ri6, W22, Gn4, Vi6, as5, Df2, Ou2, cc2, is5, lc3, ae5, vf2, eu2, xi6, Yu2, zn4, Rc2, Di6, Mi5, fi6, ds5, I7, Xf, Z7, D7, f7, zf, Bu2, dc2, z72, Dc2, Tc2, ms5, Jf, Tf, xu2, ku2, pf, ai6, Bc2, Hn4, g7, G1, oi6, N7, os5, su2, Yc2, Cu2, Au2, gu2, mf, L7, ps5, E7, du2, uu2, Nf, hf, uc2, Ki6, W7, df, hs5, Kn4, wu2, Cc2, Ei6, Mu2, Xu2, Kc2, Gf, ys5, Ui6, Zc2, Ii6, n7, si6, $u2, Hu2, Oi6, ni6, zu2, Vc2, Xn4, sf, Lu2, kf2, Qf, Xi6, r7, Vn3, Pc2, Kf, o7, e7, Wn3, bs5, Vu2, rc2, x7, es5, ge6, Eu2, Ai6, $c2, bi6, Y7, Fu2, jf, Bn3, m7, Zi6, Fc2, au2, $f2, P7, af, xf2, pu2, M7, Zu2, Pi6, Lf, Ge7,
|
|
106051
|
+
var D5 = undefined, NN = [t1, cD2, -1], Lq = [t1, oL, -2], mn4 = [t1, sy, -3], Kh = [t1, PL, -4], Ds6 = [t1, tF, -7], qq = [t1, dD2, -8], Bq = [t1, RM, -9], Nr5 = [t1, _M, -11], s4 = [t1, QF, -12], GJ = [4, 0, 0, 0, [12, 45, [4, 0, 0, 0, 0]]], ON = [0, [11, 'File "', [2, 0, [11, '", line ', [4, 0, 0, 0, [11, mD2, [4, 0, 0, 0, [12, 45, [4, 0, 0, 0, [11, ": ", [2, 0, 0]]]]]]]]]], 'File "%s", line %d, characters %d-%d: %s'], dl2 = [0, 0, [0, 0, 0], [0, 0, 0]], Lo3 = [0, 0, 0, 0, 0, 0, 1, 0, 0, 0], Uq = [0, "first_leading", "last_trailing"], Xq = [0, Af, tn4, vc2, tf, Lc2, Ti6, Pu2, Tu2, u7, ls5, ki6, R7, G7, vn3, zc2, iu2, We6, Cs4, _i6, Ji6, l7, li6, c7, Pf2, Su2, Gu2, Ff, Wu2, yi5, Si6, ei6, B7, Wf, sc2, y7, ji6, Ef, yc2, H7, uf, ru2, Hf, qi6, gc2, Jn3, _s5, Sc2, Vf, mu2, K72, ns5, Wc2, ri6, ff, rf, Xe6, Ke6, us5, xc2, ou2, zi6, yu2, lf, gi6, Gc2, wi6, Ic2, hc2, qn4, Ju2, nf, be6, j7, ju2, bu2, Ec2, wc2, Bf, Hc2, O7, Ts4, Oc2, Xc2, Yf, Ac2, Yi6, Yn3, A7, Is6, yf, Mc2, Un3, t24, p7, ts5, Nc2, C7, mi6, Mf2, b7, v7, bf, ws5, Hi6, hi6, Ci6, vs6, Qn3, wf, Iu2, As5, nc2, gf, cu2, ti6, _c2, kc2, S7, Qi6, di6, Ru2, vi6, i7, tu2, gs5, qc2, Ni6, St7, cs5, U7, Ri6, W22, Gn4, Vi6, as5, Df2, Ou2, cc2, is5, lc3, ae5, vf2, eu2, xi6, Yu2, zn4, Rc2, Di6, Mi5, fi6, ds5, I7, Xf, Z7, D7, f7, zf, Bu2, dc2, z72, Dc2, Tc2, ms5, Jf, Tf, xu2, ku2, pf, ai6, Bc2, Hn4, g7, G1, oi6, N7, os5, su2, Yc2, Cu2, Au2, gu2, mf, L7, ps5, E7, du2, uu2, Nf, hf, uc2, Ki6, W7, df, hs5, Kn4, wu2, Cc2, Ei6, Mu2, Xu2, Kc2, Gf, ys5, Ui6, Zc2, Ii6, n7, si6, $u2, Hu2, Oi6, ni6, zu2, Vc2, Xn4, sf, Lu2, kf2, Qf, Xi6, r7, Vn3, Pc2, Kf, o7, e7, Wn3, bs5, Vu2, rc2, x7, es5, ge6, Eu2, Ai6, $c2, bi6, Y7, Fu2, jf, Bn3, m7, Zi6, Fc2, au2, $f2, P7, af, xf2, pu2, M7, Zu2, Pi6, Lf, Ge7, fs11, _7, If2, a7, q7, pi6, Ku2, fc2, qu2, Of, w7, ci6, Je6, T7, lu2, ii6, ss5, k7, fu2, Uu2, Jc2, Ve6, rs5, ic2, Bi6, Qc2, s7, Wi6, t72, He6, Q7, jc2, Uc2, Es4, Sf, _f2, oc2, Ps6, ac2, $n3, vu2, _u2, Zf, Zn4, X7, cf, ui7, J72, Uf, Qu2, d7, F7, hu2, Fi6, Du2, Gi6, Rf2, bc2, pc3, h7, qf, $22, V7, $i6, of, H22], hn4 = [0, 0, 0];
|
|
106052
106052
|
Dt5(11, s4, QF), Dt5(10, Nr5, _M), Dt5(9, [t1, oM, MM], oM), Dt5(8, Bq, RM), Dt5(7, qq, dD2), Dt5(6, Ds6, tF), Dt5(5, [t1, MR, -6], MR), Dt5(4, [t1, $M, -5], $M), Dt5(3, Kh, PL), Dt5(2, mn4, sy), Dt5(1, Lq, oL), Dt5(0, NN, cD2);
|
|
106053
106053
|
function L1(x6) {
|
|
106054
106054
|
if (typeof x6 == "number")
|
|
@@ -109441,8 +109441,8 @@ var init_flow = __esm(() => {
|
|
|
109441
109441
|
}, 0, r[1]);
|
|
109442
109442
|
};
|
|
109443
109443
|
}
|
|
109444
|
-
var KV = "Array.sub", HV = "first domain already spawned", WV = [0, "camlinternalOO.ml", BF, 50], VV = [0, WM, 72, 5], $V = [0, WM, 81, 2], QV = "/tmp", ZV = ln5, x$ = [0, "src/wtf8.ml", 65, 9], r$ = [0, "src/third-party/sedlex/flow_sedlexing.ml", jS, 4], e$ = "Flow_sedlexing.MalFormed", t$ = O6, n$ = H32, u$ = K32, i$ = H62, f$ = $v, c$ = [0, [12, 40, [18, [1, [0, [11, Li6, 0], Li6]], [11, "File_key.LibFile", [17, [0, Eo3, 1, 0], 0]]]], "(@[<2>File_key.LibFile@ "], s$ = [0, [3, 0, 0], C6], a$ = [0, [17, 0, [12, 41, 0]], ck], o$ = [0, [12, 40, [18, [1, [0, [11, Li6, 0], Li6]], [11, "File_key.SourceFile", [17, [0, Eo3, 1, 0], 0]]]], "(@[<2>File_key.SourceFile@ "], v$ = [0, [3, 0, 0], C6], l$ = [0, [17, 0, [12, 41, 0]], ck], p$ = [0, [12, 40, [18, [1, [0, [11, Li6, 0], Li6]], [11, "File_key.JsonFile", [17, [0, Eo3, 1, 0], 0]]]], "(@[<2>File_key.JsonFile@ "], k$ = [0, [3, 0, 0], C6], m$ = [0, [17, 0, [12, 41, 0]], ck], h$ = [0, [12, 40, [18, [1, [0, [11, Li6, 0], Li6]], [11, "File_key.ResourceFile", [17, [0, Eo3, 1, 0], 0]]]], "(@[<2>File_key.ResourceFile@ "], d$ = [0, [3, 0, 0], C6], y$ = [0, [17, 0, [12, 41, 0]], ck], _$ = [0, 1], w$ = [0, 0], g$ = [0, 1], b$ = [0, 2], T$ = [0, 2], E$ = [0, 0], S$ = [0, 1], A$ = [0, 1], I$ = [0, 1], P$ = [0, 1], C$ = [0, 2], N$ = [0, 1], O$ = [0, 1], j$ = [0, 0, 0], D$ = [0, 0, 0], R$ = [0, ss5, fi6, _c2, Ni6, di6, Cs4, mf, si6, sf, z72, eu2, zc2, _u2, e7, Ve6, bs5, Mc2, W7, hf, Ff, Es4, Xi6, Z7, Ii6, lc3, I7, Ec2, O7, of, Fu2, tu2, Ku2, jc2, hi6, m7, pf, Ic2, Vf, gs5, wc2, ys5, St7, V7, Mf2, $f2, lf, Ji6, ti6, l7, f7, Ac2, Lf, vi6, Hi6, rs5, Vc2, U7, Au2, fu2, Kn4, Ou2, bu2, ai6, Ui6, Si6, ji6, es5, Af, pu2, Ki6, qi6, X7, Lu2, Zu2, ms5, Wf, o7, Ge7, r7, Qi6, x7, Gf, dc2, D7, qc2, G1, ff, $n3, Oc2, E7, Nf, Tc2, g7, kc2, su2, P7, tf, Gc2, Yn3, Mu2, a7, Eu2, vc2, j7, _i6, T7, $22, Pi6, ou2, d7, w7, Ri6, wu2, ki6, Ci6, Q7, Rc2, Wu2, Oi6, ic2, be6, v7, vu2, H22, Hn4, Uc2, zi6, xf2, Du2, $c2, xc2, Yc2, If2, ls5, Gi6, Ef, yu2, $u2, pc3, du2, Xf, Pu2, oc2, xi6, Cc2, Hc2, Nc2, Wn3, yf, Bc2, bi6, mi6, Uf, Ps6, Hf, qf, _f2, ii6, Qu2, Uu2, Rf2, B7, is5, ws5, y7, oi6, S7, ru2, bc2, H7, Hu2, xu2, Sc2, u7, Ei6, Pf2, yi5, Jn3, L7, ps5, Y7, Tf, gc2, Xu2, W22, Je6, F7, J72, Jc2, jf, He6, Ke6, n7, cs5, Vu2, p7, ds5, ge6, iu2, As5, Bf, cc2, sc2, Un3, cu2, Mi5, Ru2, hu2, Ts4, q7, fs13, fc2, Qn3, Vi6, uc2, qu2, Xc2, A7, ns5, ni6, lu2, Xn4, Df2, Pc2, Fc2, ac2, kf2, M7, Vn3, ui7, wi6, uu2, c7, gi6, G7, zn4, Bi6, ju2, Sf, i7, _7, Gn4, Qf, Su2, zu2, zf, ei6, Cu2, vf2, nf, Zf, tn4, h7, Ju2, li6, Zn4, qn4, Bu2, Di6, ri6, ku2, Zi6, Zc2, Yu2, C7, gu2, Jf, cf, s7, Tu2, df, K72, Bn3, Ti6, R7, t24, Ai6, uf, ts5, hs5, Iu2, wf, k7, Xe6, gf, _s5, af, Yi6, hc2, yc2, Wi6, Qc2, vs6, Is6, Fi6, bf, os5, rc2, vn3, as5, Gu2, Dc2, Kf, nc2, us5, pi6, ci6, Yf, We6, Lc2, ae5, N7, rf, $i6, mu2, Of, b7, Wc2, au2, t72, Kc2], F$ = [0, H22, of, $i6, V7, $22, qf, h7, pc3, bc2, Rf2, Gi6, Du2, Fi6, hu2, F7, d7, Qu2, Uf, J72, ui7, cf, X7, Zn4, Zf, _u2, vu2, $n3, ac2, Ps6, oc2, _f2, Sf, Es4, Uc2, jc2, Q7, He6, t72, Wi6, s7, Qc2, Bi6, ic2, rs5, Ve6, Jc2, Uu2, fu2, k7, ss5, ii6, lu2, T7, Je6, ci6, w7, Of, qu2, fc2, Ku2, pi6, q7, a7, If2, _7, fs13, Ge7, Lf, Pi6, Zu2, M7, pu2, xf2, af, P7, $f2, au2, Fc2, Zi6, m7, Bn3, jf, Fu2, Y7, bi6, $c2, Ai6, Eu2, ge6, es5, x7, rc2, Vu2, bs5, Wn3, e7, o7, Kf, Pc2, Vn3, r7, Xi6, Qf, kf2, Lu2, sf, Xn4, Vc2, zu2, ni6, Oi6, Hu2, $u2, si6, n7, Ii6, Zc2, Ui6, ys5, Gf, Kc2, Xu2, Mu2, Ei6, Cc2, wu2, Kn4, hs5, df, W7, Ki6, uc2, hf, Nf, uu2, du2, E7, ps5, L7, mf, gu2, Au2, Cu2, Yc2, su2, os5, N7, oi6, G1, g7, Hn4, Bc2, ai6, pf, ku2, xu2, Tf, Jf, ms5, Tc2, Dc2, z72, dc2, Bu2, zf, f7, D7, Z7, Xf, I7, ds5, fi6, Mi5, Di6, Rc2, zn4, Yu2, xi6, eu2, vf2, ae5, lc3, is5, cc2, Ou2, Df2, as5, Vi6, Gn4, W22, Ri6, U7, cs5, St7, Ni6, qc2, gs5, tu2, i7, vi6, Ru2, di6, Qi6, S7, kc2, _c2, ti6, cu2, gf, nc2, As5, Iu2, wf, Qn3, vs6, Ci6, hi6, Hi6, ws5, bf, v7, b7, Mf2, mi6, C7, Nc2, ts5, p7, t24, Un3, Mc2, yf, Is6, A7, Yn3, Yi6, Ac2, Yf, Xc2, Oc2, Ts4, O7, Hc2, Bf, wc2, Ec2, bu2, ju2, j7, be6, nf, Ju2, qn4, hc2, Ic2, wi6, Gc2, gi6, lf, yu2, zi6, ou2, xc2, us5, Ke6, Xe6, rf, ff, ri6, Wc2, ns5, K72, mu2, Vf, Sc2, _s5, Jn3, gc2, qi6, Hf, ru2, uf, H7, yc2, Ef, ji6, y7, sc2, Wf, B7, ei6, Si6, yi5, Wu2, Ff, Gu2, Su2, Pf2, c7, li6, l7, Ji6, _i6, Cs4, We6, iu2, zc2, vn3, G7, R7, ki6, ls5, u7, Tu2, Pu2, Ti6, Lc2, tf, vc2, tn4, Af], M$ = GM, L$ = $F, q$ = SF, B$ = OD, U$ = Qy, X$ = QL, G$ = F62, Y$ = WD, z$ = YF, J$ = CF, K$ = yD2, H$ = $7, W$ = ze6, V$ = _R, $$ = pF, Q$ = se7, Z$ = HL, xQ = wR, rQ = _k, eQ = Qm2, tQ = bo3, nQ = I6, uQ = kM, iQ = YD, fQ = IR, cQ = RR, sQ = PF, aQ = qD, oQ = GD, vQ = hL, lQ = TR, pQ = vM, kQ = bF, mQ = yo3, hQ = fF, dQ = $L, yQ = eF, _Q = g6, wQ = cl2, gQ = No3, bQ = [0, [18, [1, [0, [11, Li6, 0], Li6]], [11, "{ ", 0]], "@[<2>{ "], TQ = "Loc.line", EQ = [0, [18, [1, [0, 0, rx]], [2, 0, [11, GR, [17, [0, Eo3, 1, 0], 0]]]], yF], SQ = [0, [4, 0, 0, 0, 0], al2], AQ = [0, [17, 0, 0], iI], IQ = [0, [12, 59, [17, [0, Eo3, 1, 0], 0]], ";@ "], PQ = G6, CQ = [0, [18, [1, [0, 0, rx]], [2, 0, [11, GR, [17, [0, Eo3, 1, 0], 0]]]], yF], NQ = [0, [4, 0, 0, 0, 0], al2], OQ = [0, [17, 0, 0], iI], jQ = [0, [17, [0, Eo3, 1, 0], [12, So3, [17, 0, 0]]], "@ }@]"], DQ = rx, RQ = "Object literal may not have data and accessor property with the same name", FQ = "Object literal may not have multiple get/set accessors with the same name", MQ = "Unexpected token <. Remember, adjacent JSX elements must be wrapped in an enclosing parent tag", LQ = "`let [` is ambiguous in this position because it is either a `let` binding pattern, or a member expression.", qQ = "Async functions can only be declared at top level or immediately within another function.", BQ = "`await` is an invalid identifier in async functions", UQ = "`await` is not allowed in async function parameters.", XQ = "Computed properties must have a value.", GQ = "Constructor can't be an accessor.", YQ = "Constructor can't be an async function.", zQ = "Constructor can't be a generator.", JQ = "It is sufficient for your declare function to just have a Promise return type.", KQ = "async is an implementation detail and isn't necessary for your declare function statement. ", HQ = "`declare` modifier can only appear on class fields.", WQ = "Unexpected token `=`. Initializers are not allowed in a `declare`.", VQ = "Unexpected token `=`. Initializers are not allowed in a `declare opaque type`.", $Q = "Classes may only have one constructor", QQ = "Rest element must be final element of an array pattern", ZQ = "Cannot export an enum with `export type`, try `export enum E {}` or `module.exports = E;` instead.", xZ = "Enum members are separated with `,`. Replace `;` with `,`.", rZ = "`const` enums are not supported. Flow Enums are designed to allow for inlining, however the inlining itself needs to be part of the build system (whatever you use) rather than Flow itself.", eZ = "Expected an object pattern, array pattern, or an identifier but found an expression instead", tZ = "Missing comma between export specifiers", nZ = "Generators can only be declared at top level or immediately within another function.", uZ = "Getter should have zero parameters", iZ = "A getter cannot have a `this` parameter.", fZ = "Illegal continue statement", cZ = "Illegal return statement", sZ = "Illegal Unicode escape", aZ = "Missing comma between import specifiers", oZ = "It cannot be used with `import type` or `import typeof` statements", vZ = "The `type` and `typeof` keywords on named imports can only be used on regular `import` statements. ", lZ = "Explicit inexact syntax cannot appear inside an explicit exact object type", pZ = "Explicit inexact syntax can only appear inside an object type", kZ = "Component params must be an identifier. If you'd like to destructure, you should use `name as {destructure}`", mZ = "A bigint literal must be an integer", hZ = "JSX value should be either an expression or a quoted JSX text", dZ = "Invalid left-hand side in assignment", yZ = "Invalid left-hand side in exponentiation expression", _Z = "Invalid left-hand side in for-in", wZ = "Invalid left-hand side in for-of", gZ = "Invalid optional indexed access. Indexed access uses bracket notation. Use the format `T?.[K]`.", bZ = "Invalid regular expression", TZ = "A bigint literal cannot use exponential notation", EZ = "Tuple spread elements cannot be optional.", SZ = "Tuple variance annotations can only be used with labeled tuple elements, e.g. `[+foo: number]`", AZ = "`typeof` can only be used to get the type of variables.", IZ = "JSX attributes must only be assigned a non-empty expression", PZ = "Literals cannot be used as shorthand properties.", CZ = "Malformed unicode", NZ = "`match` argument must not be empty", OZ = "`match` argument cannot contain spread elements", jZ = "`await` is not yet supported in `match` expressions", DZ = "`yield` is not yet supported in `match` expressions", RZ = "Object pattern can't contain methods", FZ = "Expected at least one type parameter.", MZ = "Type parameter declaration needs a default, since a preceding type parameter declaration has a default.", LZ = "More than one default clause in switch statement", qZ = "Illegal newline after throw", BZ = "Illegal newline before arrow", UZ = "Missing catch or finally after try", XZ = "Const must be initialized", GZ = "Destructuring assignment must be initialized", YZ = "An optional chain may not be used in a `new` expression.", zZ = "Template literals may not be used in an optional chain.", JZ = "Rest parameter must be final parameter of an argument list", KZ = "Private fields may not be deleted.", HZ = "Private fields can only be referenced from within a class.", WZ = "Rest property must be final property of an object pattern", VZ = "Records to not support private elements. Remove the `#`.", $Z = "Setter should have exactly one parameter", QZ = "A setter cannot have a `this` parameter.", ZZ = "Catch variable may not be eval or arguments in strict mode", x00 = "Delete of an unqualified identifier in strict mode.", r00 = "Duplicate data property in object literal not allowed in strict mode", e00 = "Function name may not be eval or arguments in strict mode", t00 = "Assignment to eval or arguments is not allowed in strict mode", n00 = "Postfix increment/decrement may not have eval or arguments operand in strict mode", u00 = "Prefix increment/decrement may not have eval or arguments operand in strict mode", i00 = "Strict mode code may not include a with statement", f00 = "Number literals with leading zeros are not allowed in strict mode.", c00 = "Octal literals are not allowed in strict mode.", s00 = "Strict mode function may not have duplicate parameter names", a00 = "Parameter name eval or arguments is not allowed in strict mode", o00 = 'Illegal "use strict" directive in function with non-simple parameter list', v00 = "Use of reserved word in strict mode", l00 = "Variable name may not be eval or arguments in strict mode", p00 = "You may not access a private field through the `super` keyword.", k00 = "Flow does not support abstract classes.", m00 = "Flow does not support template literal types.", h00 = "A type annotation is required for the `this` parameter.", d00 = "Arrow functions cannot have a `this` parameter; arrow functions automatically bind `this` when declared.", y00 = "Constructors cannot have a `this` parameter; constructors don't bind `this` like other functions.", _00 = "The `this` parameter cannot be optional.", w00 = "The `this` parameter must be the first function parameter.", g00 = "A trailing comma is not permitted after the rest element", b00 = "Unexpected end of input", T00 = "Explicit inexact syntax must come at the end of an object type", E00 = "Opaque type aliases are not allowed in untyped mode", S00 = "Unexpected proto modifier", A00 = "Unexpected reserved word", I00 = "Unexpected reserved type", P00 = "Spreading a type is only allowed inside an object type", C00 = "Unexpected static modifier", N00 = "Unexpected `super` outside of a class method", O00 = "`super()` is only valid in a class constructor", j00 = "Type aliases are not allowed in untyped mode", D00 = "Type annotations are not allowed in untyped mode", R00 = "Type declarations are not allowed in untyped mode", F00 = "Type exports are not allowed in untyped mode", M00 = "Type imports are not allowed in untyped mode", L00 = "Interfaces are not allowed in untyped mode", q00 = "Unexpected variance sigil", B00 = "Found a decorator in an unsupported position.", U00 = "Invalid regular expression: missing /", X00 = "Unexpected whitespace between `#` and identifier", G00 = "`yield` is an invalid identifier in generators", Y00 = "Yield expression not allowed in formal parameter", z00 = [0, [11, "Duplicate export for `", [2, 0, [12, 96, 0]]], "Duplicate export for `%s`"], J00 = [0, [11, "Private fields may only be declared once. `#", [2, 0, [11, "` is declared more than once.", 0]]], "Private fields may only be declared once. `#%s` is declared more than once."], K00 = [0, [11, "bigint enum members need to be initialized, e.g. `", [2, 0, [11, " = 1n,` in enum `", [2, 0, [11, nu2, 0]]]]], "bigint enum members need to be initialized, e.g. `%s = 1n,` in enum `%s`."], H00 = [0, [11, "Boolean enum members need to be initialized. Use either `", [2, 0, [11, " = true,` or `", [2, 0, [11, " = false,` in enum `", [2, 0, [11, nu2, 0]]]]]]], "Boolean enum members need to be initialized. Use either `%s = true,` or `%s = false,` in enum `%s`."], W00 = [0, [11, "Enum member names need to be unique, but the name `", [2, 0, [11, "` has already been used before in enum `", [2, 0, [11, nu2, 0]]]]], "Enum member names need to be unique, but the name `%s` has already been used before in enum `%s`."], V00 = [0, [11, WR, [2, 0, [11, "` has inconsistent member initializers. Either use no initializers, or consistently use literals (either booleans, numbers, or strings) for all member initializers.", 0]]], "Enum `%s` has inconsistent member initializers. Either use no initializers, or consistently use literals (either booleans, numbers, or strings) for all member initializers."], $00 = "The `...` must come at the end of the enum body. Remove the trailing comma.", Q00 = "The `...` must come after all enum members. Move it to the end of the enum body.", Z00 = [0, [11, "Use one of `boolean`, `number`, `string`, `symbol`, or `bigint` in enum `", [2, 0, [11, nu2, 0]]], "Use one of `boolean`, `number`, `string`, `symbol`, or `bigint` in enum `%s`."], xx0 = [0, [11, "Enum type `", [2, 0, [11, "` is not valid. ", [2, 0, 0]]]], "Enum type `%s` is not valid. %s"], rx0 = [0, [11, "Supplied enum type is not valid. ", [2, 0, 0]], "Supplied enum type is not valid. %s"], ex0 = [0, [11, "Enum member names and initializers are separated with `=`. Replace `", [2, 0, [11, ":` with `", [2, 0, [11, " =`.", 0]]]]], "Enum member names and initializers are separated with `=`. Replace `%s:` with `%s =`."], tx0 = [0, [11, WR, [2, 0, [11, "` has type `", [2, 0, [11, "`, so the initializer of `", [2, 0, [11, "` needs to be a ", [2, 0, [11, " literal.", 0]]]]]]]]], "Enum `%s` has type `%s`, so the initializer of `%s` needs to be a %s literal."], nx0 = [0, [11, "Symbol enum members cannot be initialized. Use `", [2, 0, [11, ",` in enum `", [2, 0, [11, nu2, 0]]]]], "Symbol enum members cannot be initialized. Use `%s,` in enum `%s`."], ux0 = [0, [11, "The enum member initializer for `", [2, 0, [11, "` needs to be a literal (either a boolean, number, or string) in enum `", [2, 0, [11, nu2, 0]]]]], "The enum member initializer for `%s` needs to be a literal (either a boolean, number, or string) in enum `%s`."], ix0 = [0, [11, "Enum member names cannot start with lowercase 'a' through 'z'. Instead of using `", [2, 0, [11, "`, consider using `", [2, 0, [11, "`, in enum `", [2, 0, [11, nu2, 0]]]]]]], "Enum member names cannot start with lowercase 'a' through 'z'. Instead of using `%s`, consider using `%s`, in enum `%s`."], fx0 = [0, [11, "Number enum members need to be initialized, e.g. `", [2, 0, [11, " = 1,` in enum `", [2, 0, [11, nu2, 0]]]]], "Number enum members need to be initialized, e.g. `%s = 1,` in enum `%s`."], cx0 = [0, [11, "String enum members need to consistently either all use initializers, or use no initializers, in enum ", [2, 0, [12, 46, 0]]], "String enum members need to consistently either all use initializers, or use no initializers, in enum %s."], sx0 = [0, [11, "Expected corresponding JSX closing tag for ", [2, 0, 0]], "Expected corresponding JSX closing tag for %s"], ax0 = "immediately within another function.", ox0 = "In strict mode code, functions can only be declared at top level or ", vx0 = "inside a block, or as the body of an if statement.", lx0 = "In non-strict mode code, functions can only be declared at top level, ", px0 = " `break` statements are not required in `match` statements, as unlike `switch` statements, `match` statement cases do not fall-through by default.", kx0 = rx, mx0 = [0, [11, "Illegal break statement.", [2, 0, 0]], "Illegal break statement.%s"], hx0 = zM, dx0 = rx, yx0 = XM, _x0 = DF, wx0 = DM, gx0 = [0, [11, "Classes may not have ", [2, 0, [2, 0, [11, DD2, [2, 0, [11, nu2, 0]]]]]], "Classes may not have %s%s named `%s`."], bx0 = "Components use `renders` instead of `:` to annotate the render type of a component.", Tx0 = uM, Ex0 = rx, Sx0 = [0, [11, "String params require local bindings using `as` renaming. You can use `'", [2, 0, [11, "' as ", [2, 0, [2, 0, [11, ": <TYPE>` ", 0]]]]]], "String params require local bindings using `as` renaming. You can use `'%s' as %s%s: <TYPE>` "], Ax0 = "Remove the period.", Ix0 = "Indexed access uses bracket notation.", Px0 = [0, [11, "Invalid indexed access. ", [2, 0, [11, " Use the format `T[K]`.", 0]]], "Invalid indexed access. %s Use the format `T[K]`."], Cx0 = [0, [11, "Invalid flags supplied to RegExp constructor '", [2, 0, [12, 39, 0]]], "Invalid flags supplied to RegExp constructor '%s'"], Nx0 = tn4, Ox0 = Dp2, jx0 = [0, [11, "In match ", [2, 0, [11, " pattern, the rest must be the last element in the pattern", 0]]], "In match %s pattern, the rest must be the last element in the pattern"], Dx0 = [0, [11, "JSX element ", [2, 0, [11, " has no corresponding closing tag.", 0]]], "JSX element %s has no corresponding closing tag."], Rx0 = [0, [11, tM, [2, 0, [11, "`. Parentheses are required to combine `??` with `&&` or `||` expressions.", 0]]], "Unexpected token `%s`. Parentheses are required to combine `??` with `&&` or `||` expressions."], Fx0 = zM, Mx0 = rx, Lx0 = XM, qx0 = A6, Bx0 = [0, [11, "Records may not have ", [2, 0, [2, 0, [11, DD2, [2, 0, [11, nu2, 0]]]]]], "Records may not have %s%s named `%s`."], Ux0 = [0, [2, 0, [11, " '", [2, 0, [11, "' has already been declared", 0]]]], "%s '%s' has already been declared"], Xx0 = rx, Gx0 = k6, Yx0 = " You can try using JavaScript private fields by prepending `#` to the field name.", zx0 = Q62, Jx0 = " Fields and methods are public by default. You can simply omit the `public` keyword.", Kx0 = W62, Hx0 = [0, [11, "Flow does not support using `", [2, 0, [11, "` in classes.", [2, 0, 0]]]], "Flow does not support using `%s` in classes.%s"], Wx0 = [0, [11, "Private fields must be declared before they can be referenced. `#", [2, 0, [11, "` has not been declared.", 0]]], "Private fields must be declared before they can be referenced. `#%s` has not been declared."], Vx0 = [0, [11, xM, [2, 0, 0]], "Unexpected %s"], $x0 = [0, [11, tM, [2, 0, [11, "`. Did you mean `", [2, 0, [11, "`?", 0]]]]], "Unexpected token `%s`. Did you mean `%s`?"], Qx0 = [0, [11, xM, [2, 0, [11, ", expected ", [2, 0, 0]]]], "Unexpected %s, expected %s"], Zx0 = [0, [11, "Undefined label '", [2, 0, [12, 39, 0]]], "Undefined label '%s'"], xr0 = "Parse_error.Error", rr0 = [0, [0, 36, 37], [0, 48, 58], [0, 65, 91], [0, 95, 96], [0, 97, un4], [0, py, Sg], [0, NS, s9], [0, j_, Wm2], [0, xI, z_], [0, Y32, lk], [0, ty, Gp2], [0, t1, 706], [0, CD2, 722], [0, 736, 741], [0, 748, 749], [0, 750, 751], [0, 768, 885], [0, 886, 888], [0, 890, 894], [0, 895, 896], [0, 902, 907], [0, 908, 909], [0, 910, 930], [0, jM, 1014], [0, 1015, 1154], [0, 1155, 1160], [0, 1162, 1328], [0, 1329, 1367], [0, 1369, 1370], [0, 1376, 1417], [0, 1425, 1470], [0, 1471, 1472], [0, 1473, 1475], [0, 1476, 1478], [0, 1479, 1480], [0, 1488, 1515], [0, 1519, 1523], [0, 1552, 1563], [0, 1568, 1642], [0, 1646, 1748], [0, 1749, 1757], [0, 1759, 1769], [0, 1770, 1789], [0, 1791, 1792], [0, 1808, 1867], [0, 1869, 1970], [0, 1984, 2038], [0, 2042, 2043], [0, 2045, 2046], [0, Gg, 2094], [0, 2112, 2140], [0, 2144, 2155], [0, 2208, 2229], [0, 2230, 2238], [0, 2259, 2274], [0, 2275, 2404], [0, 2406, 2416], [0, 2417, 2436], [0, 2437, 2445], [0, 2447, 2449], [0, 2451, 2473], [0, 2474, 2481], [0, 2482, 2483], [0, 2486, 2490], [0, 2492, 2501], [0, 2503, 2505], [0, 2507, 2511], [0, 2519, 2520], [0, 2524, 2526], [0, 2527, 2532], [0, 2534, 2546], [0, 2556, 2557], [0, 2558, 2559], [0, 2561, 2564], [0, 2565, 2571], [0, 2575, 2577], [0, 2579, 2601], [0, 2602, 2609], [0, 2610, 2612], [0, 2613, 2615], [0, 2616, 2618], [0, 2620, 2621], [0, 2622, 2627], [0, 2631, 2633], [0, 2635, 2638], [0, 2641, 2642], [0, 2649, 2653], [0, 2654, 2655], [0, 2662, 2678], [0, 2689, 2692], [0, 2693, 2702], [0, 2703, 2706], [0, 2707, 2729], [0, 2730, 2737], [0, 2738, 2740], [0, 2741, 2746], [0, 2748, 2758], [0, 2759, 2762], [0, 2763, 2766], [0, 2768, 2769], [0, 2784, 2788], [0, 2790, 2800], [0, 2809, 2816], [0, 2817, 2820], [0, 2821, 2829], [0, 2831, 2833], [0, 2835, 2857], [0, 2858, 2865], [0, 2866, 2868], [0, 2869, 2874], [0, 2876, 2885], [0, 2887, 2889], [0, 2891, 2894], [0, 2902, 2904], [0, 2908, 2910], [0, 2911, 2916], [0, 2918, 2928], [0, 2929, 2930], [0, 2946, 2948], [0, 2949, 2955], [0, 2958, 2961], [0, 2962, 2966], [0, 2969, 2971], [0, 2972, 2973], [0, 2974, 2976], [0, 2979, 2981], [0, 2984, 2987], [0, 2990, 3002], [0, 3006, 3011], [0, 3014, 3017], [0, 3018, 3022], [0, 3024, 3025], [0, 3031, 3032], [0, 3046, 3056], [0, 3072, 3085], [0, 3086, 3089], [0, 3090, 3113], [0, 3114, 3130], [0, 3133, 3141], [0, 3142, 3145], [0, 3146, 3150], [0, 3157, 3159], [0, 3160, 3163], [0, 3168, 3172], [0, 3174, 3184], [0, 3200, 3204], [0, 3205, 3213], [0, 3214, 3217], [0, 3218, 3241], [0, 3242, 3252], [0, 3253, 3258], [0, 3260, 3269], [0, 3270, 3273], [0, 3274, 3278], [0, 3285, 3287], [0, 3294, 3295], [0, 3296, 3300], [0, 3302, 3312], [0, 3313, 3315], [0, 3328, 3332], [0, 3333, 3341], [0, 3342, 3345], [0, 3346, 3397], [0, 3398, 3401], [0, 3402, 3407], [0, 3412, 3416], [0, 3423, 3428], [0, 3430, 3440], [0, 3450, 3456], [0, 3458, 3460], [0, 3461, 3479], [0, 3482, 3506], [0, 3507, 3516], [0, 3517, 3518], [0, 3520, 3527], [0, 3530, 3531], [0, 3535, 3541], [0, 3542, 3543], [0, 3544, 3552], [0, 3558, 3568], [0, 3570, 3572], [0, 3585, 3643], [0, 3648, 3663], [0, 3664, 3674], [0, 3713, 3715], [0, 3716, 3717], [0, 3718, 3723], [0, 3724, 3748], [0, 3749, 3750], [0, 3751, 3774], [0, 3776, 3781], [0, 3782, 3783], [0, 3784, 3790], [0, 3792, 3802], [0, 3804, 3808], [0, 3840, 3841], [0, 3864, 3866], [0, 3872, 3882], [0, 3893, 3894], [0, 3895, 3896], [0, 3897, 3898], [0, 3902, 3912], [0, 3913, 3949], [0, 3953, 3973], [0, 3974, 3992], [0, 3993, 4029], [0, 4038, 4039], [0, NF, 4170], [0, 4176, 4254], [0, 4256, 4294], [0, 4295, 4296], [0, 4301, 4302], [0, 4304, 4347], [0, 4348, 4681], [0, 4682, 4686], [0, 4688, 4695], [0, 4696, 4697], [0, 4698, 4702], [0, 4704, 4745], [0, 4746, 4750], [0, 4752, 4785], [0, 4786, 4790], [0, 4792, 4799], [0, 4800, 4801], [0, 4802, 4806], [0, 4808, 4823], [0, 4824, 4881], [0, 4882, 4886], [0, 4888, 4955], [0, 4957, 4960], [0, 4969, 4978], [0, 4992, 5008], [0, 5024, 5110], [0, 5112, 5118], [0, 5121, 5741], [0, 5743, nC], [0, 5761, 5787], [0, 5792, 5867], [0, 5870, 5881], [0, 5888, 5901], [0, 5902, 5909], [0, 5920, 5941], [0, 5952, 5972], [0, 5984, 5997], [0, 5998, 6001], [0, 6002, 6004], [0, 6016, 6100], [0, 6103, 6104], [0, 6108, 6110], [0, 6112, 6122], [0, 6155, 6158], [0, 6160, 6170], [0, 6176, 6265], [0, 6272, 6315], [0, 6320, 6390], [0, 6400, 6431], [0, 6432, 6444], [0, 6448, 6460], [0, 6470, 6510], [0, 6512, 6517], [0, 6528, 6572], [0, 6576, 6602], [0, 6608, 6619], [0, 6656, 6684], [0, 6688, 6751], [0, 6752, 6781], [0, 6783, 6794], [0, 6800, 6810], [0, 6823, 6824], [0, 6832, 6846], [0, 6912, 6988], [0, 6992, 7002], [0, 7019, 7028], [0, 7040, 7156], [0, 7168, 7224], [0, 7232, 7242], [0, 7245, 7294], [0, 7296, 7305], [0, 7312, 7355], [0, 7357, 7360], [0, 7376, 7379], [0, 7380, 7419], [0, 7424, 7674], [0, 7675, 7958], [0, 7960, 7966], [0, 7968, 8006], [0, 8008, 8014], [0, 8016, 8024], [0, 8025, 8026], [0, 8027, 8028], [0, 8029, 8030], [0, 8031, 8062], [0, 8064, 8117], [0, 8118, 8125], [0, 8126, 8127], [0, 8130, 8133], [0, 8134, 8141], [0, 8144, 8148], [0, 8150, 8156], [0, 8160, 8173], [0, 8178, 8181], [0, 8182, 8189], [0, tR, NM], [0, 8255, 8257], [0, 8276, 8277], [0, F8, 8306], [0, f8, 8320], [0, 8336, 8349], [0, 8400, 8413], [0, 8417, 8418], [0, 8421, 8433], [0, dm2, 8451], [0, Gm2, 8456], [0, 8458, tk], [0, dk, 8470], [0, sM, 8478], [0, _8, Jm2], [0, th, gk], [0, Ik, Hm2], [0, 8490, 8506], [0, 8508, 8512], [0, 8517, 8522], [0, Lk, 8527], [0, 8544, 8585], [0, 11264, 11311], [0, 11312, 11359], [0, 11360, 11493], [0, 11499, 11508], [0, 11520, om2], [0, gp2, 11560], [0, Fm2, 11566], [0, 11568, 11624], [0, u82, 11632], [0, ak, 11671], [0, 11680, lm2], [0, 11688, km2], [0, 11696, bp2], [0, 11704, Uk], [0, 11712, z8], [0, 11720, Ip2], [0, 11728, sh], [0, 11736, 11743], [0, 11744, 11776], [0, 12293, 12296], [0, 12321, uh], [0, 12337, 12342], [0, 12344, 12349], [0, 12353, 12439], [0, 12441, X8], [0, 12449, _h], [0, 12540, 12544], [0, 12549, Ym2], [0, 12593, 12687], [0, 12704, 12731], [0, 12784, 12800], [0, 13312, 19894], [0, 19968, 40944], [0, 40960, 42125], [0, 42192, 42238], [0, 42240, 42509], [0, 42512, 42540], [0, 42560, 42608], [0, 42612, ek], [0, 42623, 42738], [0, 42775, 42784], [0, 42786, 42889], [0, 42891, 42944], [0, 42946, 42951], [0, l8, 43048], [0, 43072, 43124], [0, 43136, 43206], [0, 43216, 43226], [0, 43232, 43256], [0, $k, Yk], [0, 43261, 43310], [0, 43312, 43348], [0, 43360, 43389], [0, 43392, 43457], [0, W8, 43482], [0, 43488, Bp2], [0, aF, 43575], [0, 43584, 43598], [0, 43600, 43610], [0, 43616, 43639], [0, fm2, 43715], [0, 43739, 43742], [0, 43744, 43760], [0, 43762, 43767], [0, 43777, 43783], [0, 43785, 43791], [0, 43793, 43799], [0, 43808, wm2], [0, 43816, p8], [0, 43824, Q8], [0, 43868, Np2], [0, 43888, 44011], [0, 44012, 44014], [0, 44016, 44026], [0, 44032, 55204], [0, 55216, 55239], [0, 55243, 55292], [0, 63744, 64110], [0, 64112, 64218], [0, 64256, 64263], [0, 64275, 64280], [0, Wk, qp2], [0, 64298, b8], [0, 64312, ym2], [0, Qk, pk], [0, 64320, ih], [0, 64323, Th], [0, 64326, 64434], [0, 64467, 64830], [0, 64848, 64912], [0, 64914, 64968], [0, 65008, 65020], [0, 65024, 65040], [0, 65056, 65072], [0, 65075, 65077], [0, 65101, 65104], [0, 65136, $m2], [0, 65142, 65277], [0, 65296, 65306], [0, 65313, 65339], [0, 65343, pm2], [0, 65345, 65371], [0, 65382, 65471], [0, 65474, 65480], [0, 65482, 65488], [0, 65490, 65496], [0, 65498, 65501], [0, Y6, lh], [0, 65549, Z8], [0, 65576, Ek], [0, 65596, Ak], [0, 65599, 65614], [0, 65616, 65630], [0, 65664, 65787], [0, 65856, 65909], [0, 66045, 66046], [0, 66176, 66205], [0, 66208, 66257], [0, 66272, 66273], [0, 66304, 66336], [0, 66349, 66379], [0, 66384, 66427], [0, 66432, 66462], [0, 66464, 66500], [0, 66504, ah], [0, 66513, 66518], [0, 66560, 66718], [0, 66720, 66730], [0, 66736, 66772], [0, 66776, 66812], [0, 66816, 66856], [0, 66864, 66916], [0, 67072, 67383], [0, 67392, 67414], [0, 67424, 67432], [0, 67584, 67590], [0, vk, x8], [0, 67594, oh], [0, 67639, 67641], [0, $8, 67645], [0, 67647, 67670], [0, 67680, 67703], [0, 67712, 67743], [0, 67808, Hp2], [0, 67828, 67830], [0, 67840, 67862], [0, 67872, 67898], [0, 67968, 68024], [0, 68030, 68032], [0, ph, 68100], [0, 68101, 68103], [0, 68108, Xk], [0, 68117, V8], [0, 68121, 68150], [0, 68152, 68155], [0, 68159, 68160], [0, 68192, 68221], [0, 68224, 68253], [0, 68288, D8], [0, 68297, 68327], [0, 68352, 68406], [0, 68416, 68438], [0, 68448, 68467], [0, 68480, 68498], [0, 68608, 68681], [0, 68736, 68787], [0, 68800, 68851], [0, 68864, 68904], [0, 68912, 68922], [0, 69376, 69405], [0, qm2, 69416], [0, 69424, 69457], [0, 69600, 69623], [0, 69632, 69703], [0, 69734, nh], [0, 69759, 69819], [0, 69840, 69865], [0, 69872, 69882], [0, 69888, 69941], [0, 69942, 69952], [0, Up2, Dk], [0, 69968, 70004], [0, Km2, 70007], [0, 70016, 70085], [0, 70089, 70093], [0, 70096, Om2], [0, o8, 70109], [0, 70144, Nm2], [0, 70163, 70200], [0, 70206, 70207], [0, 70272, Pm2], [0, S8, Fk], [0, 70282, Cm2], [0, 70287, mm2], [0, 70303, 70313], [0, 70320, 70379], [0, 70384, 70394], [0, 70400, jp2], [0, 70405, 70413], [0, 70415, 70417], [0, 70419, Vm2], [0, 70442, Y8], [0, 70450, cm2], [0, 70453, 70458], [0, 70459, 70469], [0, 70471, 70473], [0, 70475, 70478], [0, Yp2, 70481], [0, 70487, 70488], [0, 70493, 70500], [0, 70502, 70509], [0, 70512, 70517], [0, 70656, 70731], [0, 70736, 70746], [0, uk, 70752], [0, 70784, Um2], [0, i8, 70856], [0, 70864, 70874], [0, 71040, 71094], [0, 71096, 71105], [0, 71128, 71134], [0, 71168, 71233], [0, a8, 71237], [0, 71248, 71258], [0, 71296, 71353], [0, 71360, 71370], [0, 71424, 71451], [0, 71453, 71468], [0, 71472, 71482], [0, 71680, 71739], [0, 71840, 71914], [0, 71935, 71936], [0, 72096, 72104], [0, 72106, 72152], [0, 72154, R8], [0, Xm2, 72165], [0, t82, 72255], [0, 72263, 72264], [0, qk, 72346], [0, k8, 72350], [0, 72384, 72441], [0, 72704, zm2], [0, 72714, 72759], [0, 72760, 72769], [0, 72784, 72794], [0, 72818, 72848], [0, 72850, 72872], [0, 72873, 72887], [0, 72960, d8], [0, 72968, ch], [0, 72971, 73015], [0, 73018, 73019], [0, 73020, 73022], [0, 73023, 73032], [0, 73040, 73050], [0, 73056, E8], [0, 73063, bm2], [0, 73066, 73103], [0, 73104, 73106], [0, 73107, 73113], [0, 73120, 73130], [0, 73440, 73463], [0, 73728, 74650], [0, 74752, 74863], [0, 74880, 75076], [0, 77824, 78895], [0, 82944, 83527], [0, 92160, 92729], [0, 92736, 92767], [0, 92768, 92778], [0, 92880, 92910], [0, 92912, 92917], [0, 92928, 92983], [0, 92992, 92996], [0, 93008, 93018], [0, 93027, 93048], [0, 93053, 93072], [0, 93760, 93824], [0, 93952, 94027], [0, gm2, 94088], [0, 94095, 94112], [0, 94176, mk], [0, Op2, 94180], [0, 94208, 100344], [0, 100352, 101107], [0, 110592, 110879], [0, 110928, 110931], [0, 110948, 110952], [0, 110960, 111356], [0, 113664, 113771], [0, 113776, 113789], [0, 113792, 113801], [0, 113808, 113818], [0, 113821, 113823], [0, 119141, 119146], [0, 119149, 119155], [0, 119163, 119171], [0, 119173, 119180], [0, 119210, 119214], [0, 119362, 119365], [0, 119808, Fp2], [0, 119894, jk], [0, 119966, 119968], [0, r8, 119971], [0, 119973, 119975], [0, 119977, Ah], [0, 119982, Sm2], [0, M8, xm2], [0, 119997, c8], [0, 120005, bh], [0, 120071, 120075], [0, 120077, sk], [0, 120086, Im2], [0, 120094, Xp2], [0, 120123, H8], [0, 120128, n8], [0, Jk, 120135], [0, 120138, eh], [0, 120146, 120486], [0, 120488, yk], [0, 120514, T8], [0, 120540, wh], [0, 120572, Rk], [0, 120598, C8], [0, 120630, Zp2], [0, 120656, w8], [0, 120688, zp2], [0, 120714, Cp2], [0, 120746, Nk], [0, 120772, 120780], [0, 120782, 120832], [0, 121344, 121399], [0, 121403, 121453], [0, 121461, 121462], [0, 121476, 121477], [0, 121499, 121504], [0, 121505, 121520], [0, 122880, 122887], [0, 122888, 122905], [0, 122907, 122914], [0, 122915, 122917], [0, 122918, 122923], [0, 123136, 123181], [0, 123184, 123198], [0, 123200, 123210], [0, Sp2, 123215], [0, 123584, 123642], [0, 124928, 125125], [0, 125136, 125143], [0, 125184, 125260], [0, 125264, 125274], [0, 126464, xk], [0, 126469, hm2], [0, 126497, yh], [0, Pp2, 126501], [0, Mm2, J8], [0, 126505, Ep2], [0, 126516, N8], [0, kh, tm2], [0, Vp2, 126524], [0, fh, 126531], [0, Eh, Qp2], [0, hh, vm2], [0, vh, Mp2], [0, 126541, Mk], [0, 126545, xh], [0, Dm2, 126549], [0, j8, $p2], [0, Zk, y8], [0, am2, rh], [0, ok, Jp2], [0, q8, Sk], [0, 126561, Wp2], [0, Zm2, 126565], [0, 126567, Rp2], [0, 126572, nk], [0, 126580, A8], [0, 126585, Vk], [0, O8, Bm2], [0, 126592, Kp2], [0, 126603, 126620], [0, 126625, P8], [0, 126629, m8], [0, 126635, 126652], [0, 131072, 173783], [0, 173824, 177973], [0, 177984, 178206], [0, 178208, 183970], [0, 183984, 191457], [0, 194560, 195102], [0, 917760, 918000]], er0 = [0, 1, 0], tr0 = [0, 0, [0, 1, 0], [0, 1, 0]], nr0 = sL, ur0 = "end of input", ir0 = U62, fr0 = "template literal part", cr0 = U62, sr0 = nD2, ar0 = sL, or0 = U62, vr0 = H32, lr0 = U62, pr0 = $v, kr0 = U62, mr0 = K32, hr0 = "an", dr0 = St7, yr0 = Nu2, _r0 = [0, [11, "token `", [2, 0, [12, 96, 0]]], "token `%s`"], wr0 = "{", gr0 = em2, br0 = "{|", Tr0 = "|}", Er0 = PM, Sr0 = iM, Ar0 = "[", Ir0 = "]", Pr0 = NT, Cr0 = JL, Nr0 = ln5, Or0 = "=>", jr0 = "...", Dr0 = _D, Rr0 = DM, Fr0 = $32, Mr0 = nm2, Lr0 = bo3, qr0 = I6, Br0 = Je6, Ur0 = Ve6, Xr0 = $P, Gr0 = DT, Yr0 = Bv, zr0 = He6, Jr0 = um2, Kr0 = g6, Hr0 = Tp2, Wr0 = L8, Vr0 = No3, $r0 = cl2, Qr0 = Hv, Zr0 = wa2, x10 = Pa2, r10 = We6, e10 = rk, t102 = Rm2, n10 = Xe6, u10 = Fv, i10 = Tk, f10 = U8, c10 = K8, s10 = h6, a10 = mc2, o10 = Ue5, v10 = Ck, l10 = Yv, p10 = E6, k10 = Aa2, m10 = ga, h10 = j6, d10 = dh, y10 = W22, _10 = fl3, w10 = Oo2, g10 = ae5, b10 = Pk, T10 = Q62, E10 = k6, S10 = W62, A10 = H22, I10 = Ke6, P10 = x42, C10 = tc2, N10 = zb, O10 = JS, j10 = Io3, D10 = Kv, R10 = "%checks", F10 = TR, M10 = hL, L10 = GD, q10 = bF, B10 = vM, U10 = yo3, X10 = qD, G10 = PF, Y10 = IR, z10 = RR, J10 = YD, K10 = kM, H10 = fF, W10 = $L, V10 = eF, $10 = p_, Q10 = "?.", Z10 = Dw, x20 = uM, r20 = Iv, e20 = LF, t202 = CM, n20 = wR, u20 = _k, i20 = Qm2, f20 = GM, c20 = $F, s20 = SF, a20 = OD, o20 = QL, v20 = WD, l20 = Qy, p20 = F62, k20 = YF, m20 = CF, h20 = yD2, d20 = $7, y20 = ze6, _20 = se7, w20 = _R, g20 = pF, b20 = HL, T20 = SD, E20 = VL, S20 = ZM, A20 = kR, I20 = rx, P20 = ik, C20 = wk, N20 = be6, O20 = H32, j20 = $v, D20 = K32, R20 = ga, F20 = H62, M20 = hk, L20 = bk, q20 = Hk, B20 = Lm2, U20 = Xv, X20 = FD2, G20 = J62, Y20 = tl2, z20 = V32, J20 = jF, K20 = uF, H20 = m6, W20 = m6, V20 = gL, $20 = m6, Q20 = m6, Z20 = em2, xe0 = em2, re0 = gL, ee0 = se7, te0 = se7, ne0 = O6, ue0 = rm2, ie0 = "T_LCURLY", fe0 = "T_RCURLY", ce0 = "T_LCURLYBAR", se0 = "T_RCURLYBAR", ae0 = "T_LPAREN", oe0 = "T_RPAREN", ve0 = "T_LBRACKET", le0 = "T_RBRACKET", pe0 = "T_SEMICOLON", ke0 = "T_COMMA", me0 = "T_PERIOD", he0 = "T_ARROW", de0 = "T_ELLIPSIS", ye0 = "T_AT", _e0 = "T_POUND", we0 = "T_FUNCTION", ge0 = "T_IF", be0 = "T_IN", Te0 = "T_INSTANCEOF", Ee0 = "T_RETURN", Se0 = "T_SWITCH", Ae0 = "T_MATCH", Ie0 = "T_RECORD", Pe0 = "T_THIS", Ce0 = "T_THROW", Ne0 = "T_TRY", Oe0 = "T_VAR", je0 = "T_WHILE", De0 = "T_WITH", Re0 = "T_CONST", Fe0 = "T_LET", Me0 = "T_NULL", Le0 = "T_FALSE", qe0 = "T_TRUE", Be0 = "T_BREAK", Ue0 = "T_CASE", Xe0 = "T_CATCH", Ge0 = "T_CONTINUE", Ye0 = "T_DEFAULT", ze0 = "T_DO", Je0 = "T_FINALLY", Ke0 = "T_FOR", He0 = "T_CLASS", We0 = "T_EXTENDS", Ve0 = "T_STATIC", $e0 = "T_ELSE", Qe0 = "T_NEW", Ze0 = "T_DELETE", xt0 = "T_TYPEOF", rt0 = "T_VOID", et0 = "T_ENUM", tt0 = "T_EXPORT", nt0 = "T_IMPORT", ut0 = "T_SUPER", it0 = "T_IMPLEMENTS", ft0 = "T_INTERFACE", ct0 = "T_PACKAGE", st0 = "T_PRIVATE", at0 = "T_PROTECTED", ot0 = "T_PUBLIC", vt0 = "T_YIELD", lt0 = "T_DEBUGGER", pt0 = "T_DECLARE", kt0 = "T_TYPE", mt0 = "T_OPAQUE", ht0 = "T_OF", dt0 = "T_ASYNC", yt0 = "T_AWAIT", _t0 = "T_CHECKS", wt0 = "T_RSHIFT3_ASSIGN", gt0 = "T_RSHIFT_ASSIGN", bt0 = "T_LSHIFT_ASSIGN", Tt0 = "T_BIT_XOR_ASSIGN", Et0 = "T_BIT_OR_ASSIGN", St0 = "T_BIT_AND_ASSIGN", At0 = "T_MOD_ASSIGN", It0 = "T_DIV_ASSIGN", Pt0 = "T_MULT_ASSIGN", Ct0 = "T_EXP_ASSIGN", Nt0 = "T_MINUS_ASSIGN", Ot0 = "T_PLUS_ASSIGN", jt0 = "T_NULLISH_ASSIGN", Dt0 = "T_AND_ASSIGN", Rt0 = "T_OR_ASSIGN", Ft0 = "T_ASSIGN", Mt0 = "T_PLING_PERIOD", Lt0 = "T_PLING_PLING", qt0 = "T_PLING", Bt0 = "T_COLON", Ut0 = "T_OR", Xt0 = "T_AND", Gt0 = "T_BIT_OR", Yt0 = "T_BIT_XOR", zt0 = "T_BIT_AND", Jt0 = "T_EQUAL", Kt0 = "T_NOT_EQUAL", Ht0 = "T_STRICT_EQUAL", Wt0 = "T_STRICT_NOT_EQUAL", Vt0 = "T_LESS_THAN_EQUAL", $t0 = "T_GREATER_THAN_EQUAL", Qt0 = "T_LESS_THAN", Zt0 = "T_GREATER_THAN", xn0 = "T_LSHIFT", rn0 = "T_RSHIFT", en0 = "T_RSHIFT3", tn0 = "T_PLUS", nn0 = "T_MINUS", un0 = "T_DIV", in0 = "T_MULT", fn0 = "T_EXP", cn0 = "T_MOD", sn0 = "T_NOT", an0 = "T_BIT_NOT", on0 = "T_INCR", vn0 = "T_DECR", ln0 = "T_EOF", pn0 = "T_ANY_TYPE", kn0 = "T_MIXED_TYPE", mn0 = "T_EMPTY_TYPE", hn0 = "T_NUMBER_TYPE", dn0 = "T_BIGINT_TYPE", yn0 = "T_STRING_TYPE", _n0 = "T_VOID_TYPE", wn0 = "T_SYMBOL_TYPE", gn0 = "T_UNKNOWN_TYPE", bn0 = "T_NEVER_TYPE", Tn0 = "T_UNDEFINED_TYPE", En0 = "T_KEYOF", Sn0 = "T_READONLY", An0 = "T_INFER", In0 = "T_IS", Pn0 = "T_ASSERTS", Cn0 = "T_IMPLIES", Nn0 = KL, On0 = KL, jn0 = "T_NUMBER", Dn0 = "T_BIGINT", Rn0 = "T_STRING", Fn0 = "T_TEMPLATE_PART", Mn0 = "T_IDENTIFIER", Ln0 = "T_REGEXP", qn0 = "T_INTERPRETER", Bn0 = "T_ERROR", Un0 = "T_JSX_IDENTIFIER", Xn0 = XL, Gn0 = XL, Yn0 = "T_BOOLEAN_TYPE", zn0 = "T_NUMBER_SINGLETON_TYPE", Jn0 = "T_BIGINT_SINGLETON_TYPE", Kn0 = [0, BR, $S, 9], Hn0 = [0, BR, Hg, 9], Wn0 = wL, Vn0 = "*/", $n0 = wL, Qn0 = "unreachable line_comment", Zn0 = "unreachable string_quote", x70 = "\\", r70 = "unreachable template_part", e70 = `\r
|
|
109445
|
-
`, t70 = ug, n70 = "unreachable regexp_class", u70 = LD, i70 = "unreachable regexp_body", f70 = rx, c70 = rx, s70 = rx, a70 = rx, o70 = hR, v70 = "{'>'}", l70 = F62, p70 = "{'}'}", k70 = em2, m70 = Ao3, h70 = NT, d70 = Qm2, y70 = hR, _70 = Ao3, w70 = NT, g70 = Qm2, b70 = "unreachable type_token wholenumber", T70 = "unreachable type_token wholebigint", E70 = "unreachable type_token floatbigint", S70 = "unreachable type_token scinumber", A70 = "unreachable type_token scibigint", I70 = "unreachable type_token hexnumber", P70 = "unreachable type_token hexbigint", C70 = "unreachable type_token legacyoctnumber", N70 = "unreachable type_token octnumber", O70 = "unreachable type_token octbigint", j70 = "unreachable type_token binnumber", D70 = "unreachable type_token bigbigint", R70 = "unreachable type_token", F70 = yL, M70 = [11, 1], L70 = [11, 0], q70 = "unreachable template_tail", B70 = rx, U70 = rx, X70 = "unreachable jsx_child", G70 = "unreachable jsx_tag", Y70 = [0, hw], z70 = [0, 913], J70 = [0, Y32], K70 = [0, mh], H70 = [0, cR], W70 = [0, QP], V70 = [0, 8747], $70 = [0, gD], Q70 = [0, 916], Z70 = [0, 8225], xu0 = [0, 935], ru0 = [0, VI], eu0 = [0, 914], tu0 = [0, vL], nu0 = [0, IF], uu0 = [0, RE], iu0 = [0, 915], fu0 = [0, TD], cu0 = [0, 919], su0 = [0, 917], au0 = [0, _L], ou0 = [0, KD], vu0 = [0, HR], lu0 = [0, 924], pu0 = [0, 923], ku0 = [0, 922], mu0 = [0, oF], hu0 = [0, 921], du0 = [0, eM], yu0 = [0, Hg], _u0 = [0, xF], wu0 = [0, ty], gu0 = [0, 927], bu0 = [0, 937], Tu0 = [0, HD], Eu0 = [0, $R], Su0 = [0, uR], Au0 = [0, 338], Iu0 = [0, 352], Pu0 = [0, 929], Cu0 = [0, 936], Nu0 = [0, 8243], Ou0 = [0, 928], ju0 = [0, 934], Du0 = [0, qL], Ru0 = [0, o_], Fu0 = [0, 933], Mu0 = [0, pM], Lu0 = [0, nL], qu0 = [0, fD2], Bu0 = [0, 920], Uu0 = [0, 932], Xu0 = [0, jD], Gu0 = [0, dR], Yu0 = [0, KF], zu0 = [0, JR], Ju0 = [0, 918], Ku0 = [0, SR], Hu0 = [0, HF], Wu0 = [0, 926], Vu0 = [0, lF], $u0 = [0, jM], Qu0 = [0, 925], Zu0 = [0, 39], xi0 = [0, 8736], ri0 = [0, 8743], ei0 = [0, 38], ti0 = [0, 945], ni0 = [0, 8501], ui0 = [0, Sv], ii0 = [0, 8226], fi0 = [0, JD2], ci0 = [0, 946], si0 = [0, 8222], ai0 = [0, RD], oi0 = [0, wM], vi0 = [0, 8776], li0 = [0, qI], pi0 = [0, 8773], ki0 = [0, 9827], mi0 = [0, CD2], hi0 = [0, 967], di0 = [0, qM], yi0 = [0, Wm2], _i0 = [0, PD], wi0 = [0, GF], gi0 = [0, 8595], bi0 = [0, 8224], Ti0 = [0, 8659], Ei0 = [0, sR], Si0 = [0, 8746], Ai0 = [0, 8629], Ii0 = [0, yR], Pi0 = [0, 8745], Ci0 = [0, 8195], Ni0 = [0, 8709], Oi0 = [0, iD2], ji0 = [0, dL], Di0 = [0, aL], Ri0 = [0, Gp2], Fi0 = [0, 9830], Mi0 = [0, 8707], Li0 = [0, 8364], qi0 = [0, EM], Bi0 = [0, rl2], Ui0 = [0, 951], Xi0 = [0, 8801], Gi0 = [0, 949], Yi0 = [0, 8194], zi0 = [0, 8805], Ji0 = [0, 947], Ki0 = [0, 8260], Hi0 = [0, jE], Wi0 = [0, nR], Vi0 = [0, $S], $i0 = [0, 8704], Qi0 = [0, XF], Zi0 = [0, EL], xf0 = [0, 8230], rf0 = [0, 9829], ef0 = [0, 8596], tf0 = [0, 8660], nf0 = [0, 62], uf0 = [0, 402], if0 = [0, 948], ff0 = [0, nF], cf0 = [0, E9], sf0 = [0, 8712], af0 = [0, sP], of0 = [0, 953], vf0 = [0, 8734], lf0 = [0, 8465], pf0 = [0, IM], kf0 = [0, 8220], mf0 = [0, 8968], hf0 = [0, 8592], df0 = [0, Sg], yf0 = [0, 10216], _f0 = [0, 955], wf0 = [0, 8656], gf0 = [0, 954], bf0 = [0, 60], Tf0 = [0, 8216], Ef0 = [0, 8249], Sf0 = [0, NM], Af0 = [0, 9674], If0 = [0, 8727], Pf0 = [0, 8970], Cf0 = [0, AL], Nf0 = [0, 8711], Of0 = [0, 956], jf0 = [0, 8722], Df0 = [0, j_], Rf0 = [0, NS], Ff0 = [0, 8212], Mf0 = [0, NR], Lf0 = [0, 8804], qf0 = [0, 957], Bf0 = [0, kF], Uf0 = [0, 8836], Xf0 = [0, 8713], Gf0 = [0, KR], Yf0 = [0, 8715], zf0 = [0, 8800], Jf0 = [0, 8853], Kf0 = [0, 959], Hf0 = [0, 969], Wf0 = [0, 8254], Vf0 = [0, HM], $f0 = [0, 339], Qf0 = [0, jv], Zf0 = [0, BM], xc0 = [0, s9], rc0 = [0, ul2], ec0 = [0, 8855], tc0 = [0, ME], nc0 = [0, t1], uc0 = [0, xI], ic0 = [0, py], fc0 = [0, da3], cc0 = [0, rL], sc0 = [0, 982], ac0 = [0, 960], oc0 = [0, 966], vc0 = [0, 8869], lc0 = [0, 8240], pc0 = [0, 8706], kc0 = [0, 8744], mc0 = [0, 8211], hc0 = [0, 10217], dc0 = [0, 8730], yc0 = [0, 8658], _c0 = [0, 34], wc0 = [0, 968], gc0 = [0, 8733], bc0 = [0, 8719], Tc0 = [0, 961], Ec0 = [0, 8971], Sc0 = [0, LL], Ac0 = [0, 8476], Ic0 = [0, 8221], Pc0 = [0, 8969], Cc0 = [0, 8594], Nc0 = [0, z_], Oc0 = [0, bM], jc0 = [0, Sb], Dc0 = [0, 8901], Rc0 = [0, 353], Fc0 = [0, 8218], Mc0 = [0, 8217], Lc0 = [0, 8250], qc0 = [0, 8835], Bc0 = [0, 8721], Uc0 = [0, 8838], Xc0 = [0, 8834], Gc0 = [0, 9824], Yc0 = [0, 8764], zc0 = [0, 962], Jc0 = [0, 963], Kc0 = [0, 8207], Hc0 = [0, 952], Wc0 = [0, 8756], Vc0 = [0, 964], $c0 = [0, e8], Qc0 = [0, 8839], Zc0 = [0, AC], xs0 = [0, fk], rs0 = [0, ol3], es0 = [0, 8657], ts0 = [0, 8482], ns0 = [0, lk], us0 = [0, 732], is0 = [0, Q32], fs0 = [0, 8201], cs0 = [0, 977], ss0 = [0, sM], as0 = [0, xl2], os0 = [0, 965], vs0 = [0, 978], ls0 = [0, IL], ps0 = [0, jS], ks0 = [0, WL], ms0 = [0, tR], hs0 = [0, 8205], ds0 = [0, 950], ys0 = [0, Bk], _s0 = [0, hF], ws0 = [0, QE], gs0 = [0, 958], bs0 = [0, 8593], Ts0 = [0, oD2], Es0 = [0, 8242], Ss0 = [0, kI], As0 = "unreachable regexp", Is0 = "unreachable token wholenumber", Ps0 = "unreachable token wholebigint", Cs0 = "unreachable token floatbigint", Ns0 = "unreachable token scinumber", Os0 = "unreachable token scibigint", js0 = "unreachable token hexnumber", Ds0 = "unreachable token hexbigint", Rs0 = "unreachable token legacyoctnumber", Fs0 = "unreachable token legacynonoctnumber", Ms0 = "unreachable token octnumber", Ls0 = "unreachable token octbigint", qs0 = "unreachable token bignumber", Bs0 = "unreachable token bigint", Us0 = "unreachable token", Xs0 = yL, Gs0 = [7, "#!"], Ys0 = "expected ?", zs0 = "unreachable string_escape", Js0 = V22, Ks0 = P6, Hs0 = P6, Ws0 = V22, Vs0 = KP, $s0 = EF, Qs0 = "n", Zs0 = "r", xa0 = "t", ra0 = zF, ea0 = P6, ta0 = Ao3, na0 = Ao3, ua0 = "unreachable id_char", ia0 = Ao3, fa0 = Ao3, ca0 = P6, sa0 = uL, aa0 = pD2, oa0 = gb, va0 = [28, "token ILLEGAL"], la0 = [0, [11, "the identifier `", [2, 0, [12, 96, 0]]], "the identifier `%s`"], pa0 = [0, 1], ka0 = [0, 1], ma0 = OF, ha0 = OF, da0 = [0, [11, "an identifier. When exporting a ", [2, 0, [11, " as a named export, you must specify a ", [2, 0, [11, " name. Did you mean `export default ", [2, 0, [11, " ...`?", 0]]]]]]], "an identifier. When exporting a %s as a named export, you must specify a %s name. Did you mean `export default %s ...`?"], ya0 = Sh, _a0 = "Peeking current location when not available", wa0 = [0, "src/parser/parser_env.ml", SR, 9], ga0 = "Internal Error: Tried to add_declared_private with outside of class scope.", ba0 = "Internal Error: `exit_class` called before a matching `enter_class`", Ta0 = rx, Ea0 = [0, 0, 0], Sa0 = [0, 0, 0], Aa0 = "Parser_env.Try.Rollback", Ia0 = rx, Pa0 = rx, Ca0 = [0, H22, of, $i6, CR, TM, V7, $22, qf, h7, pc3, bc2, Rf2, Gi6, Du2, Fi6, hu2, F7, d7, Qu2, Uf, J72, ui7, cf, X7, Zn4, Zf, _u2, vu2, $n3, ac2, Ps6, oc2, _f2, Sf, Es4, Uc2, jc2, Q7, He6, t72, Wi6, s7, Qc2, Bi6, ic2, rs5, Ve6, Jc2, Uu2, fu2, k7, ss5, ii6, lu2, T7, Je6, ci6, w7, Of, qu2, fc2, Ku2, pi6, q7, a7, If2, _7, fs13, Ge7, Lf, Pi6, Zu2, M7, pu2, xf2, af, P7, $f2, au2, Fc2, Zi6, m7, Bn3, jf, Fu2, Y7, bi6, $c2, Ai6, Eu2, ge6, es5, x7, rc2, Vu2, bs5, Wn3, e7, o7, Kf, Pc2, Vn3, r7, Xi6, Qf, kf2, Lu2, sf, Xn4, Vc2, zu2, ni6, Oi6, Hu2, $u2, si6, n7, Ii6, Zc2, Ui6, ys5, Gf, Kc2, Xu2, Mu2, Ei6, Cc2, wu2, Kn4, hs5, df, W7, Ki6, uc2, hf, Nf, uu2, du2, E7, ps5, L7, mf, gu2, Au2, Cu2, Yc2, su2, os5, N7, oi6, G1, g7, Hn4, Bc2, ai6, pf, ku2, xu2, Tf, Jf, ms5, Tc2, Dc2, z72, dc2, Bu2, zf, f7, D7, Z7, Xf, I7, ds5, fi6, Mi5, Di6, Rc2, zn4, Yu2, xi6, eu2, vf2, ae5, lc3, is5, cc2, Ou2, Df2, as5, Vi6, Gn4, W22, Ri6, U7, cs5, St7, Ni6, qc2, gs5, tu2, i7, vi6, Ru2, di6, Qi6, S7, kc2, _c2, ti6, cu2, gf, nc2, As5, Iu2, wf, Qn3, vs6, Ci6, hi6, Hi6, ws5, bf, v7, b7, Mf2, mi6, C7, Nc2, ts5, p7, t24, Un3, Mc2, yf, Is6, A7, Yn3, Yi6, Ac2, Yf, Xc2, Oc2, Ts4, O7, Hc2, Bf, wc2, Ec2, bu2, ju2, j7, be6, nf, Ju2, qn4, hc2, Ic2, wi6, Gc2, gi6, lf, yu2, zi6, ou2, xc2, us5, Ke6, Xe6, rf, ff, ri6, Wc2, ns5, K72, mu2, Vf, Sc2, _s5, Jn3, gc2, qi6, Hf, ru2, uf, aR, H7, vD, qF, yc2, Ef, ji6, y7, sc2, Wf, B7, ei6, Si6, yi5, Wu2, Ff, Gu2, Su2, Pf2, c7, li6, l7, Ji6, _i6, Cs4, We6, iu2, zc2, vn3, G7, R7, ki6, ls5, u7, Tu2, Pu2, Ti6, Lc2, tf, vc2, tn4, Af], Na0 = [0, ss5, fi6, _c2, Ni6, di6, Cs4, mf, si6, sf, z72, eu2, zc2, _u2, e7, Ve6, bs5, Mc2, W7, hf, Ff, Es4, Xi6, Z7, Ii6, lc3, I7, Ec2, O7, of, Fu2, tu2, Ku2, jc2, hi6, m7, pf, Ic2, Vf, gs5, wc2, ys5, St7, V7, Mf2, $f2, lf, Ji6, ti6, l7, f7, Ac2, Lf, vi6, Hi6, rs5, Vc2, U7, Au2, fu2, Kn4, Ou2, bu2, ai6, Ui6, Si6, ji6, es5, Af, pu2, Ki6, qi6, X7, Lu2, Zu2, ms5, Wf, o7, Ge7, r7, Qi6, x7, Gf, dc2, D7, qc2, G1, ff, $n3, Oc2, E7, Nf, Tc2, g7, kc2, su2, P7, tf, Gc2, Yn3, Mu2, a7, Eu2, vc2, j7, _i6, T7, $22, Pi6, ou2, d7, w7, Ri6, wu2, ki6, Ci6, Q7, Rc2, Wu2, Oi6, ic2, be6, v7, vu2, H22, Hn4, Uc2, zi6, xf2, Du2, $c2, xc2, Yc2, If2, ls5, Gi6, Ef, yu2, $u2, pc3, du2, Xf, Pu2, oc2, xi6, Cc2, Hc2, Nc2, Wn3, yf, Bc2, bi6, mi6, Uf, Ps6, Hf, qf, _f2, ii6, Qu2, Uu2, Rf2, B7, is5, ws5, y7, oi6, S7, ru2, bc2, H7, Hu2, xu2, Sc2, u7, Ei6, Pf2, yi5, Jn3, L7, ps5, Y7, Tf, gc2, Xu2, W22, Je6, F7, J72, Jc2, jf, He6, Ke6, n7, cs5, Vu2, p7, ds5, ge6, iu2, As5, Bf, cc2, sc2, Un3, cu2, Mi5, Ru2, hu2, Ts4, q7, fs13, fc2, Qn3, Vi6, uc2, qu2, Xc2, A7, ns5, ni6, lu2, Xn4, Df2, Pc2, Fc2, ac2, kf2, M7, Vn3, ui7, wi6, uu2, c7, gi6, G7, zn4, Bi6, ju2, Sf, i7, _7, Gn4, Qf, Su2, zu2, zf, ei6, Cu2, vf2, nf, Zf, tn4, h7, Ju2, li6, Zn4, qn4, Bu2, Di6, ri6, ku2, Zi6, Zc2, Yu2, C7, gu2, Jf, cf, s7, Tu2, df, K72, Bn3, Ti6, R7, t24, Ai6, uf, ts5, hs5, Iu2, wf, k7, Xe6, gf, _s5, af, Yi6, hc2, yc2, Wi6, Qc2, vs6, Is6, Fi6, bf, os5, rc2, vn3, as5, Gu2, Dc2, Kf, nc2, us5, pi6, ci6, Yf, We6, Lc2, ae5, N7, rf, $i6, mu2, Of, b7, Wc2, au2, t72, Kc2], Oa0 = [0, ss5, fi6, _c2, Ni6, di6, Cs4, mf, si6, sf, z72, eu2, zc2, _u2, e7, Ve6, bs5, Mc2, W7, hf, Ff, Es4, Xi6, Z7, Ii6, lc3, I7, Ec2, O7, of, Fu2, tu2, Ku2, jc2, hi6, m7, pf, Ic2, Vf, gs5, wc2, ys5, St7, V7, TM, Mf2, $f2, lf, Ji6, ti6, l7, f7, Ac2, Lf, vi6, Hi6, rs5, Vc2, U7, Au2, fu2, Kn4, Ou2, bu2, ai6, Ui6, Si6, ji6, es5, Af, pu2, Ki6, qi6, vD, X7, Lu2, Zu2, ms5, Wf, o7, Ge7, r7, Qi6, x7, Gf, dc2, D7, qc2, G1, ff, $n3, Oc2, E7, Nf, Tc2, g7, kc2, su2, P7, tf, Gc2, Yn3, Mu2, a7, Eu2, vc2, j7, _i6, T7, $22, Pi6, ou2, d7, w7, Ri6, wu2, ki6, Ci6, Q7, Rc2, Wu2, Oi6, ic2, be6, v7, vu2, H22, Hn4, Uc2, zi6, xf2, Du2, $c2, xc2, Yc2, If2, ls5, Gi6, Ef, yu2, $u2, pc3, du2, Xf, Pu2, oc2, xi6, Cc2, Hc2, Nc2, Wn3, yf, Bc2, bi6, mi6, Uf, Ps6, Hf, qf, _f2, ii6, Qu2, Uu2, Rf2, B7, is5, ws5, y7, oi6, S7, ru2, bc2, H7, Hu2, xu2, Sc2, u7, Ei6, Pf2, yi5, Jn3, L7, ps5, Y7, Tf, gc2, Xu2, W22, Je6, F7, J72, Jc2, jf, He6, Ke6, n7, cs5, Vu2, p7, ds5, ge6, iu2, As5, Bf, cc2, sc2, Un3, cu2, Mi5, Ru2, hu2, Ts4, q7, fs13, fc2, Qn3, Vi6, uc2, qu2, Xc2, A7, ns5, ni6, lu2, Xn4, Df2, Pc2, Fc2, ac2, kf2, M7, Vn3, ui7, wi6, uu2, c7, gi6, G7, zn4, qF, Bi6, ju2, Sf, i7, _7, Gn4, Qf, Su2, zu2, zf, ei6, Cu2, vf2, nf, Zf, aR, tn4, h7, Ju2, li6, Zn4, CR, qn4, Bu2, Di6, ri6, ku2, Zi6, Zc2, Yu2, C7, gu2, Jf, cf, s7, Tu2, df, K72, Bn3, Ti6, R7, t24, Ai6, uf, ts5, hs5, Iu2, wf, k7, Xe6, gf, _s5, af, Yi6, hc2, yc2, Wi6, Qc2, vs6, Is6, Fi6, bf, os5, rc2, vn3, as5, Gu2, Dc2, Kf, nc2, us5, pi6, ci6, Yf, We6, Lc2, ae5, N7, rf, $i6, mu2, Of, b7, Wc2, au2, t72, Kc2], ja0 = [0, H22, of, $i6, V7, $22, qf, h7, pc3, bc2, Rf2, Gi6, Du2, Fi6, hu2, F7, d7, Qu2, Uf, J72, ui7, cf, X7, Zn4, Zf, _u2, vu2, $n3, ac2, Ps6, oc2, _f2, Sf, Es4, Uc2, jc2, Q7, He6, t72, Wi6, s7, Qc2, Bi6, ic2, rs5, Ve6, Jc2, Uu2, fu2, k7, ss5, ii6, lu2, T7, Je6, ci6, w7, Of, qu2, fc2, Ku2, pi6, q7, a7, If2, _7, fs13, Ge7, Lf, Pi6, Zu2, M7, pu2, xf2, af, P7, $f2, au2, Fc2, Zi6, m7, Bn3, jf, Fu2, Y7, bi6, $c2, Ai6, Eu2, ge6, es5, x7, rc2, Vu2, bs5, Wn3, e7, o7, Kf, Pc2, Vn3, r7, Xi6, Qf, kf2, Lu2, sf, Xn4, Vc2, zu2, ni6, Oi6, Hu2, $u2, si6, n7, Ii6, Zc2, Ui6, ys5, Gf, Kc2, Xu2, Mu2, Ei6, Cc2, wu2, Kn4, hs5, df, W7, Ki6, uc2, hf, Nf, uu2, du2, E7, ps5, L7, mf, gu2, Au2, Cu2, Yc2, su2, os5, N7, oi6, G1, g7, Hn4, Bc2, ai6, pf, ku2, xu2, Tf, Jf, ms5, Tc2, Dc2, z72, dc2, Bu2, zf, f7, D7, Z7, Xf, I7, ds5, fi6, Mi5, Di6, Rc2, zn4, Yu2, xi6, eu2, vf2, ae5, lc3, is5, cc2, Ou2, Df2, as5, Vi6, Gn4, W22, Ri6, U7, cs5, St7, Ni6, qc2, gs5, tu2, i7, vi6, Ru2, di6, Qi6, S7, kc2, _c2, ti6, cu2, gf, nc2, As5, Iu2, wf, Qn3, vs6, Ci6, hi6, Hi6, ws5, bf, v7, b7, Mf2, mi6, C7, Nc2, ts5, p7, t24, Un3, Mc2, yf, Is6, A7, Yn3, Yi6, Ac2, Yf, Xc2, Oc2, Ts4, O7, Hc2, Bf, wc2, Ec2, bu2, ju2, j7, be6, nf, Ju2, qn4, hc2, Ic2, wi6, Gc2, gi6, lf, yu2, zi6, ou2, xc2, us5, Ke6, Xe6, rf, ff, ri6, Wc2, ns5, K72, mu2, Vf, Sc2, _s5, Jn3, gc2, qi6, Hf, ru2, uf, H7, yc2, Ef, ji6, y7, sc2, Wf, B7, ei6, Si6, yi5, Wu2, Ff, Gu2, Su2, Pf2, c7, li6, l7, Ji6, _i6, Cs4, We6, iu2, zc2, vn3, G7, R7, ki6, ls5, u7, Tu2, Pu2, Ti6, Lc2, tf, vc2, tn4, Af], Da0 = $32, Ra0 = nm2, Fa0 = bo3, Ma0 = I6, La0 = Je6, qa0 = Ve6, Ba0 = $P, Ua0 = DT, Xa0 = Bv, Ga0 = He6, Ya0 = um2, za0 = g6, Ja0 = Tp2, Ka0 = L8, Ha0 = No3, Wa0 = cl2, Va0 = Hv, $a0 = wa2, Qa0 = Pa2, Za0 = We6, xo0 = rk, ro0 = Rm2, eo0 = Xe6, to0 = Fv, no0 = Tk, uo0 = U8, io0 = K8, fo0 = h6, co0 = mc2, so0 = Ue5, ao0 = Ck, oo0 = Yv, vo0 = E6, lo0 = Aa2, po0 = ga, ko0 = j6, mo0 = dh, ho0 = W22, do0 = fl3, yo0 = Oo2, _o0 = ae5, wo0 = Pk, go0 = Q62, bo0 = k6, To0 = W62, Eo0 = H22, So0 = Ke6, Ao0 = x42, Io0 = tc2, Po0 = zb, Co0 = JS, No0 = Io3, Oo0 = Kv, jo0 = ik, Do0 = wk, Ro0 = be6, Fo0 = H32, Mo0 = $v, Lo0 = K32, qo0 = ga, Bo0 = H62, Uo0 = hk, Xo0 = bk, Go0 = Hk, Yo0 = Lm2, zo0 = Xv, Jo0 = J62, Ko0 = tl2, Ho0 = V32, Wo0 = O6, Vo0 = rm2, $o0 = [0, Sh], Qo0 = rx, Zo0 = [19, 1], xv0 = [19, 0], rv0 = [0, 0], ev0 = Ta2, tv0 = [0, 0], nv0 = [0, "a type"], uv0 = [0, 0], iv0 = [0, "a number literal type"], fv0 = [0, 0], cv0 = J62, sv0 = tl2, av0 = V32, ov0 = "You should only call render_type after making sure the next token is a renders variant", vv0 = [0, [0, 0, 0, 0, 0]], lv0 = [0, 0, 0, 0], pv0 = [0, 1], kv0 = [0, il3, 1466, 6], mv0 = [0, il3, 1469, 6], hv0 = [0, il3, 1572, 8], dv0 = [0, 1], yv0 = [0, il3, 1589, 8], _v0 = "Can not have both `static` and `proto`", wv0 = Ue5, gv0 = rw, bv0 = [0, 0], Tv0 = [0, "the end of a tuple type (no trailing comma is allowed in inexact tuple type)."], Ev0 = [0, il3, Sv, 15], Sv0 = [0, il3, sP, 15], Av0 = ze6, Iv0 = ze6, Pv0 = Kk, Cv0 = G6, Nv0 = [0, [11, "Failure while looking up ", [2, 0, [11, ". Index: ", [4, 0, 0, 0, [11, ". Length: ", [4, 0, 0, 0, [12, 46, 0]]]]]]], "Failure while looking up %s. Index: %d. Length: %d."], Ov0 = [0, 0, 0, 0], jv0 = "Offset_utils.Offset_lookup_failed", Dv0 = m1, Rv0 = kD, Fv0 = G6, Mv0 = Kk, Lv0 = wD, qv0 = G6, Bv0 = Kk, Uv0 = vR, Xv0 = Yx, Gv0 = "normal", Yv0 = tc2, zv0 = "jsxTag", Jv0 = "jsxChild", Kv0 = "template", Hv0 = nD2, Wv0 = "context", Vv0 = tc2, $v0 = [6, 0], Qv0 = [0, 0], Zv0 = [0, 1], x30 = [0, 4], r30 = [0, 2], e30 = [0, 3], t30 = [0, 0], n30 = ze6, u30 = [0, 0, 0, 0, 0, 0], i30 = [0, 0], f30 = [0, OM], c30 = [0, 1], s30 = [0, 0], a30 = Ta2, o30 = [0, 73], v30 = [0, 84], l30 = aM, p30 = rE, k30 = "exports", m30 = K62, h30 = [0, rx, rx, 0], d30 = [0, AD], y30 = [0, 84], _30 = [0, "a declaration, statement or export specifiers"], w30 = [0, 1], g30 = [0, I9, 1971, 21], b30 = [0, "the keyword `as`"], T30 = [0, 29], E30 = [0, 29], S30 = [0, 0], A30 = [0, 1], I30 = [0, AD], P30 = [0, "the keyword `from`"], C30 = [0, rx, rx, 0], N30 = "Label", O30 = [0, OM], j30 = [0, 0, 0], D30 = [0, 38], R30 = [0, I9, 372, 22], F30 = [0, 37], M30 = [0, I9, 391, 22], L30 = [0, 0], q30 = "the token `;`", B30 = [0, 0], U30 = [0, 0], X30 = FR, G30 = [0, Sh], Y30 = FR, z30 = [28, St7], J30 = Ta2, K30 = [0, 73], H30 = [0, rx, 0], W30 = It6, V30 = [0, rx, 0], $30 = [0, 73], Q30 = [0, 73], Z30 = $32, xl0 = [0, rx, 0], rl0 = [0, 0, 0], el0 = [0, 0, 0], tl0 = [0, [0, 8]], nl0 = [0, [0, 7]], ul0 = [0, [0, 6]], il0 = [0, [0, 10]], fl0 = [0, [0, 9]], cl0 = [0, [0, 11]], sl0 = [0, [0, 5]], al0 = [0, [0, 4]], ol0 = [0, [0, 2]], vl0 = [0, [0, 3]], ll0 = [0, [0, 1]], pl0 = [0, [0, 0]], kl0 = [0, [0, 12]], ml0 = [0, [0, 13]], hl0 = [0, [0, 14]], dl0 = [0, 0], yl0 = [0, 1], _l0 = [0, 0], wl0 = [0, 2], gl0 = [0, 3], bl0 = [0, 7], Tl0 = [0, 6], El0 = [0, 4], Sl0 = [0, 5], Al0 = [0, 1], Il0 = [0, 0], Pl0 = [0, 1], Cl0 = [0, 0], Nl0 = fl3, Ol0 = [0, "either a call or access of `super`"], jl0 = fl3, Dl0 = W22, Rl0 = w6, Fl0 = w6, Ml0 = [0, 2], Ll0 = [0, 0], ql0 = [0, 1], Bl0 = Yv, Ul0 = [0, "the identifier `target`"], Xl0 = [0, 0], Gl0 = [0, 1], Yl0 = [0, 0], zl0 = [0, 0], Jl0 = [0, 2], Kl0 = [0, 2], Hl0 = [0, 1], Wl0 = [0, 73], Vl0 = P6, $l0 = uL, Ql0 = gb, Zl0 = gb, x60 = pD2, r60 = [0, 0], e60 = [0, 1], t60 = [0, 0], n60 = se7, u60 = se7, i60 = [0, "a regular expression"], f60 = rx, c60 = rx, s60 = rx, a60 = [0, 81], o60 = [0, "src/parser/expression_parser.ml", 1550, 17], v60 = [0, "a template literal part"], l60 = [0, [0, rx, rx], 1], p60 = Pv, k60 = [0, 6], m60 = [0, [0, 17, [0, 2]]], h60 = [0, [0, 18, [0, 3]]], d60 = [0, [0, 19, [0, 4]]], y60 = [0, [0, 0, [0, 5]]], _60 = [0, [0, 1, [0, 5]]], w60 = [0, [0, 2, [0, 5]]], g60 = [0, [0, 3, [0, 5]]], b60 = [0, [0, 5, [0, 6]]], T60 = [0, [0, 7, [0, 6]]], E60 = [0, [0, 4, [0, 6]]], S60 = [0, [0, 6, [0, 6]]], A60 = [0, [0, 8, [0, 7]]], I60 = [0, [0, 9, [0, 7]]], P60 = [0, [0, 10, [0, 7]]], C60 = [0, [0, 11, [0, 8]]], N60 = [0, [0, 12, [0, 8]]], O60 = [0, [0, 15, [0, 9]]], j60 = [0, [0, 13, [0, 9]]], D60 = [0, [0, 14, [1, 10]]], R60 = [0, [0, 16, [0, 9]]], F60 = [0, [0, 21, [0, 6]]], M60 = [0, [0, 20, [0, 6]]], L60 = [23, Dw], q60 = [13, "JSX fragment"], B60 = Iv, U60 = ln5, X60 = [0, sn4], G60 = [1, sn4], Y60 = [0, rx, rx, 0], z60 = [0, Sh], J60 = rx, K60 = [0, "a numeric or string literal"], H60 = [0, rx, '""', 0], W60 = [0, 0], V60 = [0, "a number literal"], $60 = [0, [0, 0, V22, 0]], Q60 = [0, 84], Z60 = [21, dM], x40 = [21, R62], r40 = [0, 0, 0], e40 = h6, t40 = [0, rx, 0], n40 = "unexpected PrivateName in Property, expected a PrivateField", u40 = [0, 0, 0], i40 = Sa, f40 = "Must be one of the above", c40 = [0, 1], s40 = [0, 1], a40 = [0, 1], o40 = Sa, v40 = Sa, l40 = p_, p40 = "Internal Error: private name found in object props", k40 = [0, 0, 0, 0], m40 = [0, cF], h40 = [19, [0, 0]], d40 = [0, cF], y40 = ug, _40 = "Nooo: ", w40 = Fv, g40 = "Parser error: No such thing as an expression pattern!", b40 = [0, [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]], T40 = [0, "src/parser/parser_flow.ml", fk, 28], E40 = [0, [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]], S40 = kD, A40 = Yx, I40 = $D, P40 = eR, C40 = eR, N40 = $D, O40 = tc2, j40 = sD2, D40 = w1, R40 = m1, F40 = "InterpreterDirective", M40 = "interpreter", L40 = "Program", q40 = w1, B40 = "RecordBody", U40 = m1, X40 = Y1, G40 = en4, Y40 = "RecordStaticProperty", z40 = "defaultValue", J40 = Y1, K40 = en4, H40 = "RecordProperty", W40 = S6, V40 = "BreakStatement", $40 = S6, Q40 = "ContinueStatement", Z40 = "DebuggerStatement", xp0 = Wv, rp0 = "DeclareExportAllDeclaration", ep0 = Wv, tp0 = l_, np0 = IE, up0 = Fv, ip0 = "DeclareExportDeclaration", fp0 = w1, cp0 = Yr5, sp0 = "DeclareModule", ap0 = Y1, op0 = "DeclareModuleExports", vp0 = w1, lp0 = Yr5, pp0 = NL, kp0 = "DeclareNamespace", mp0 = Z32, hp0 = w1, dp0 = "DoWhileStatement", yp0 = "EmptyStatement", _p0 = cS, wp0 = IE, gp0 = "ExportDefaultDeclaration", bp0 = cS, Tp0 = cA, Ep0 = Wv, Sp0 = "ExportAllDeclaration", Ap0 = cS, Ip0 = Wv, Pp0 = l_, Cp0 = IE, Np0 = "ExportNamedDeclaration", Op0 = "directive", jp0 = t24, Dp0 = "ExpressionStatement", Rp0 = w1, Fp0 = "update", Mp0 = Z32, Lp0 = ks5, qp0 = "ForStatement", Bp0 = "each", Up0 = w1, Xp0 = fn5, Gp0 = Ea2, Yp0 = "ForInStatement", zp0 = Kv, Jp0 = w1, Kp0 = fn5, Hp0 = Ea2, Wp0 = "ForOfStatement", Vp0 = lR, $p0 = rP, Qp0 = Z32, Zp0 = "IfStatement", xk0 = tc2, rk0 = Aa2, ek0 = m1, tk0 = XD, nk0 = Wv, uk0 = l_, ik0 = "ImportDeclaration", fk0 = w1, ck0 = S6, sk0 = "LabeledStatement", ak0 = J9, ok0 = $1, vk0 = "MatchStatement", lk0 = "RecordImplements", pk0 = w1, kk0 = Oo2, mk0 = B22, hk0 = Yr5, dk0 = "RecordDeclaration", yk0 = $1, _k0 = "ReturnStatement", wk0 = J9, gk0 = "discriminant", bk0 = "SwitchStatement", Tk0 = $1, Ek0 = "ThrowStatement", Sk0 = "finalizer", Ak0 = "handler", Ik0 = vn3, Pk0 = "TryStatement", Ck0 = w1, Nk0 = Z32, Ok0 = "WhileStatement", jk0 = w1, Dk0 = Dp2, Rk0 = "WithStatement", Fk0 = x9, Mk0 = $1, Lk0 = NA, qk0 = x9, Bk0 = $1, Uk0 = NA, Xk0 = KT, Gk0 = "ArrayExpression", Yk0 = B22, zk0 = gh, Jk0 = t24, Kk0 = Ge7, Hk0 = Ey, Wk0 = Io3, Vk0 = w1, $k0 = on3, Qk0 = Yr5, Zk0 = "ArrowFunctionExpression", x80 = t24, r80 = "AsConstExpression", e80 = Y1, t80 = t24, n80 = "AsExpression", u80 = p_, i80 = fn5, f80 = Ea2, c80 = Gv, s80 = "AssignmentExpression", a80 = fn5, o80 = Ea2, v80 = Gv, l80 = "BinaryExpression", p80 = "CallExpression", k80 = lR, m80 = rP, h80 = Z32, d80 = "ConditionalExpression", y80 = Wv, _80 = "ImportExpression", w80 = LF, g80 = CM, b80 = Dw, T80 = fn5, E80 = Ea2, S80 = Gv, A80 = "LogicalExpression", I80 = J9, P80 = $1, C80 = "MatchExpression", N80 = "MemberExpression", O80 = Tm2, j80 = w6, D80 = "MetaProperty", R80 = Qb, F80 = h8, M80 = fR, L80 = "NewExpression", q80 = A6, B80 = "ObjectExpression", U80 = ft6, X80 = "OptionalCallExpression", G80 = ft6, Y80 = "OptionalMemberExpression", z80 = rM, J80 = "SequenceExpression", K80 = "Super", H80 = "ThisExpression", W80 = Y1, V80 = t24, $80 = "TypeCastExpression", Q80 = Y1, Z80 = t24, xm0 = "SatisfiesExpression", rm0 = x9, em0 = $1, tm0 = NA, nm0 = ze6, um0 = $7, im0 = SD, fm0 = VL, cm0 = Aa2, sm0 = ga, am0 = E6, om0 = "matched above", vm0 = $1, lm0 = XR, pm0 = Gv, km0 = "UnaryExpression", mm0 = $1, hm0 = "AwaitExpression", dm0 = kR, ym0 = ZM, _m0 = XR, wm0 = $1, gm0 = Gv, bm0 = "UpdateExpression", Tm0 = "delegate", Em0 = $1, Sm0 = "YieldExpression", Am0 = "MatchExpressionCase", Im0 = "guard", Pm0 = w1, Cm0 = ge6, Nm0 = "MatchStatementCase", Om0 = "literal", jm0 = "MatchLiteralPattern", Dm0 = "MatchWildcardPattern", Rm0 = ze6, Fm0 = $7, Mm0 = $1, Lm0 = Gv, qm0 = "MatchUnaryPattern", Bm0 = "MatchObjectPattern", Um0 = "MatchInstanceObjectPattern", Xm0 = DF, Gm0 = _a6, Ym0 = "MatchInstancePattern", zm0 = "patterns", Jm0 = "MatchOrPattern", Km0 = Ih, Hm0 = ge6, Wm0 = "MatchAsPattern", Vm0 = Yr5, $m0 = "MatchIdentifierPattern", Qm0 = Tm2, Zm0 = "base", xh0 = "MatchMemberPattern", rh0 = ba2, eh0 = Yr5, th0 = "MatchBindingPattern", nh0 = p6, uh0 = KT, ih0 = "MatchArrayPattern", fh0 = T6, ch0 = ge6, sh0 = en4, ah0 = VR, oh0 = T6, vh0 = ge6, lh0 = en4, ph0 = VR, kh0 = p6, mh0 = A6, hh0 = $1, dh0 = "MatchRestPattern", yh0 = "Unexpected FunctionDeclaration with BodyExpression", _h0 = "HookDeclaration", wh0 = t24, gh0 = Ge7, bh0 = Ey, Th0 = Io3, Eh0 = "FunctionDeclaration", Sh0 = B22, Ah0 = gh, Ih0 = w1, Ph0 = on3, Ch0 = Yr5, Nh0 = "Unexpected FunctionExpression with BodyExpression", Oh0 = B22, jh0 = gh, Dh0 = t24, Rh0 = Ge7, Fh0 = Ey, Mh0 = Io3, Lh0 = w1, qh0 = on3, Bh0 = Yr5, Uh0 = "FunctionExpression", Xh0 = ft6, Gh0 = Y1, Yh0 = Ye4, zh0 = US, Jh0 = ft6, Kh0 = Y1, Hh0 = Ye4, Wh0 = "PrivateIdentifier", Vh0 = ft6, $h0 = Y1, Qh0 = Ye4, Zh0 = US, xd0 = rP, rd0 = Z32, ed0 = "SwitchCase", td0 = w1, nd0 = "param", ud0 = "CatchClause", id0 = w1, fd0 = "BlockStatement", cd0 = ba2, sd0 = Yr5, ad0 = "DeclareVariable", od0 = "DeclareHook", vd0 = Ge7, ld0 = "DeclareFunction", pd0 = Yr5, kd0 = lM, md0 = Oo2, hd0 = mc2, dd0 = w1, yd0 = B22, _d0 = Yr5, wd0 = "DeclareClass", gd0 = B22, bd0 = f_, Td0 = on3, Ed0 = p6, Sd0 = on3, Ad0 = Yr5, Id0 = "DeclareComponent", Pd0 = B22, Cd0 = f_, Nd0 = p6, Od0 = on3, jd0 = "ComponentTypeAnnotation", Dd0 = ft6, Rd0 = Y1, Fd0 = Ye4, Md0 = "ComponentTypeParameter", Ld0 = w1, qd0 = Yr5, Bd0 = "DeclareEnum", Ud0 = mc2, Xd0 = w1, Gd0 = B22, Yd0 = Yr5, zd0 = "DeclareInterface", Jd0 = m1, Kd0 = tc2, Hd0 = cA, Wd0 = "ExportNamespaceSpecifier", Vd0 = fn5, $d0 = B22, Qd0 = Yr5, Zd0 = "DeclareTypeAlias", x50 = fn5, r50 = B22, e50 = Yr5, t50 = "TypeAlias", n50 = "DeclareOpaqueType", u50 = "OpaqueType", i50 = "supertype", f50 = "upperBound", c50 = "lowerBound", s50 = "impltype", a50 = B22, o50 = Yr5, v50 = "ClassDeclaration", l50 = "ClassExpression", p50 = g8, k50 = Oo2, m50 = "superTypeParameters", h50 = "superClass", d50 = B22, y50 = w1, _50 = Yr5, w50 = t24, g50 = "Decorator", b50 = B22, T50 = Yr5, E50 = "ClassImplements", S50 = w1, A50 = "ClassBody", I50 = w1, P50 = "StaticBlock", C50 = _a6, N50 = V6, O50 = Nv, j50 = nl2, D50 = g8, R50 = W32, F50 = Ue5, M50 = ba2, L50 = m1, q50 = en4, B50 = "MethodDefinition", U50 = x42, X50 = g8, G50 = $22, Y50 = Ue5, z50 = W32, J50 = Y1, K50 = m1, H50 = en4, W50 = jL, V50 = "Internal Error: Private name found in class prop", $50 = x42, Q50 = g8, Z50 = $22, xy0 = Ue5, ry0 = W32, ey0 = Y1, ty0 = m1, ny0 = en4, uy0 = jL, iy0 = B22, fy0 = f_, cy0 = on3, sy0 = Yr5, ay0 = w1, oy0 = "ComponentDeclaration", vy0 = $1, ly0 = OE, py0 = fn5, ky0 = Ea2, my0 = jm2, hy0 = T6, dy0 = X62, yy0 = Ye4, _y0 = "ComponentParameter", wy0 = ks5, gy0 = Yr5, by0 = "EnumBigIntMember", Ty0 = Yr5, Ey0 = LR, Sy0 = ks5, Ay0 = Yr5, Iy0 = "EnumStringMember", Py0 = Yr5, Cy0 = LR, Ny0 = ks5, Oy0 = Yr5, jy0 = "EnumNumberMember", Dy0 = ks5, Ry0 = Yr5, Fy0 = "EnumBooleanMember", My0 = B6, Ly0 = Am2, qy0 = y6, By0 = "EnumBooleanBody", Uy0 = B6, Xy0 = Am2, Gy0 = y6, Yy0 = "EnumNumberBody", zy0 = B6, Jy0 = Am2, Ky0 = y6, Hy0 = "EnumStringBody", Wy0 = B6, Vy0 = y6, $y0 = "EnumSymbolBody", Qy0 = B6, Zy0 = Am2, x90 = y6, r90 = "EnumBigIntBody", e90 = w1, t90 = Yr5, n90 = "EnumDeclaration", u90 = mc2, i90 = w1, f90 = B22, c90 = Yr5, s90 = "InterfaceDeclaration", a90 = B22, o90 = Yr5, v90 = "InterfaceExtends", l90 = Y1, p90 = A6, k90 = "ObjectPattern", m90 = Y1, h90 = KT, d90 = "ArrayPattern", y90 = fn5, _90 = Ea2, w90 = jm2, g90 = Y1, b90 = Ye4, T90 = US, E90 = $1, S90 = OE, A90 = $1, I90 = OE, P90 = fn5, C90 = Ea2, N90 = jm2, O90 = ks5, j90 = ks5, D90 = Nv, R90 = nl2, F90 = VD, M90 = W32, L90 = T6, q90 = V6, B90 = ba2, U90 = m1, X90 = en4, G90 = mF, Y90 = $1, z90 = iR, J90 = fn5, K90 = Ea2, H90 = jm2, W90 = W32, V90 = T6, $90 = V6, Q90 = ba2, Z90 = m1, x_0 = en4, r_0 = mF, e_0 = $1, t_0 = iR, n_0 = At7, u_0 = m1, i_0 = J32, f_0 = rx, c_0 = At7, s_0 = $v, a_0 = m1, o_0 = J32, v_0 = At7, l_0 = m1, p_0 = J32, k_0 = Pa2, m_0 = wa2, h_0 = At7, d_0 = m1, y_0 = J32, __0 = "flags", w_0 = ge6, g_0 = "regex", b_0 = At7, T_0 = m1, E_0 = J32, S_0 = At7, A_0 = m1, I_0 = J32, P_0 = rM, C_0 = "quasis", N_0 = "TemplateLiteral", O_0 = "cooked", j_0 = At7, D_0 = "tail", R_0 = m1, F_0 = "TemplateElement", M_0 = "quasi", L_0 = "tag", q_0 = "TaggedTemplateExpression", B_0 = ba2, U_0 = "declarations", X_0 = "VariableDeclaration", G_0 = ks5, Y_0 = Yr5, z_0 = "VariableDeclarator", J_0 = "plus", K_0 = nM, H_0 = Xv, W_0 = bo3, V_0 = ng, $_0 = "in-out", Q_0 = ba2, Z_0 = "Variance", xw0 = "AnyTypeAnnotation", rw0 = "MixedTypeAnnotation", ew0 = "EmptyTypeAnnotation", tw0 = "VoidTypeAnnotation", nw0 = "NullLiteralTypeAnnotation", uw0 = "SymbolTypeAnnotation", iw0 = "NumberTypeAnnotation", fw0 = "BigIntTypeAnnotation", cw0 = "StringTypeAnnotation", sw0 = "BooleanTypeAnnotation", aw0 = Y1, ow0 = "NullableTypeAnnotation", vw0 = "UnknownTypeAnnotation", lw0 = "NeverTypeAnnotation", pw0 = "UndefinedTypeAnnotation", kw0 = ba2, mw0 = Y1, hw0 = "parameterName", dw0 = "TypePredicate", yw0 = "HookTypeAnnotation", _w0 = "FunctionTypeAnnotation", ww0 = Bv, gw0 = B22, bw0 = p6, Tw0 = gh, Ew0 = on3, Sw0 = ft6, Aw0 = Y1, Iw0 = Ye4, Pw0 = fM, Cw0 = ft6, Nw0 = Y1, Ow0 = Ye4, jw0 = fM, Dw0 = [0, 0, 0, 0, 0], Rw0 = "internalSlots", Fw0 = "callProperties", Mw0 = "indexers", Lw0 = A6, qw0 = "exact", Bw0 = tL, Uw0 = "ObjectTypeAnnotation", Xw0 = VD, Gw0 = "There should not be computed object type property keys", Yw0 = ks5, zw0 = Nv, Jw0 = nl2, Kw0 = ba2, Hw0 = $22, Ww0 = rw, Vw0 = Ue5, $w0 = ft6, Qw0 = V6, Zw0 = m1, xg0 = en4, rg0 = "ObjectTypeProperty", eg0 = $1, tg0 = "ObjectTypeSpreadProperty", ng0 = $22, ug0 = Ue5, ig0 = m1, fg0 = en4, cg0 = Yr5, sg0 = "ObjectTypeIndexer", ag0 = Ue5, og0 = m1, vg0 = "ObjectTypeCallProperty", lg0 = ft6, pg0 = $22, kg0 = "sourceType", mg0 = "propType", hg0 = "keyTparam", dg0 = "ObjectTypeMappedTypeProperty", yg0 = m1, _g0 = V6, wg0 = Ue5, gg0 = ft6, bg0 = Yr5, Tg0 = "ObjectTypeInternalSlot", Eg0 = w1, Sg0 = mc2, Ag0 = "InterfaceTypeAnnotation", Ig0 = QM, Pg0 = "ArrayTypeAnnotation", Cg0 = "falseType", Ng0 = "trueType", Og0 = "extendsType", jg0 = "checkType", Dg0 = "ConditionalTypeAnnotation", Rg0 = "typeParameter", Fg0 = "InferTypeAnnotation", Mg0 = Yr5, Lg0 = UF, qg0 = "QualifiedTypeIdentifier", Bg0 = B22, Ug0 = Yr5, Xg0 = "GenericTypeAnnotation", Gg0 = "indexType", Yg0 = "objectType", zg0 = "IndexedAccessType", Jg0 = ft6, Kg0 = "OptionalIndexedAccessType", Hg0 = w_, Wg0 = "UnionTypeAnnotation", Vg0 = w_, $g0 = "IntersectionTypeAnnotation", Qg0 = h8, Zg0 = $1, xb0 = "TypeofTypeAnnotation", rb0 = Yr5, eb0 = UF, tb0 = "QualifiedTypeofIdentifier", nb0 = $1, ub0 = "KeyofTypeAnnotation", ib0 = el2, fb0 = jF, cb0 = uF, sb0 = Y1, ab0 = Gv, ob0 = "TypeOperator", vb0 = Xv, lb0 = tL, pb0 = "elementTypes", kb0 = "TupleTypeAnnotation", mb0 = ft6, hb0 = $22, db0 = QM, yb0 = S6, _b0 = "TupleTypeLabeledElement", wb0 = Y1, gb0 = S6, bb0 = "TupleTypeSpreadElement", Tb0 = At7, Eb0 = m1, Sb0 = "StringLiteralTypeAnnotation", Ab0 = At7, Ib0 = m1, Pb0 = "NumberLiteralTypeAnnotation", Cb0 = At7, Nb0 = m1, Ob0 = "BigIntLiteralTypeAnnotation", jb0 = Pa2, Db0 = wa2, Rb0 = At7, Fb0 = m1, Mb0 = "BooleanLiteralTypeAnnotation", Lb0 = "ExistsTypeAnnotation", qb0 = Y1, Bb0 = vF, Ub0 = Y1, Xb0 = vF, Gb0 = on3, Yb0 = "TypeParameterDeclaration", zb0 = "usesExtendsBound", Jb0 = Fv, Kb0 = $22, Hb0 = No3, Wb0 = "bound", Vb0 = Ye4, $b0 = "TypeParameter", Qb0 = on3, Zb0 = mM, xT0 = on3, rT0 = mM, eT0 = Pv, tT0 = OL, nT0 = "closingElement", uT0 = "openingElement", iT0 = "JSXElement", fT0 = "closingFragment", cT0 = OL, sT0 = "openingFragment", aT0 = "JSXFragment", oT0 = h8, vT0 = "selfClosing", lT0 = "attributes", pT0 = Ye4, kT0 = "JSXOpeningElement", mT0 = "JSXOpeningFragment", hT0 = Ye4, dT0 = "JSXClosingElement", yT0 = "JSXClosingFragment", _T0 = m1, wT0 = Ye4, gT0 = "JSXAttribute", bT0 = $1, TT0 = "JSXSpreadAttribute", ET0 = "JSXEmptyExpression", ST0 = t24, AT0 = "JSXExpressionContainer", IT0 = t24, PT0 = "JSXSpreadChild", CT0 = At7, NT0 = m1, OT0 = "JSXText", jT0 = Tm2, DT0 = Dp2, RT0 = "JSXMemberExpression", FT0 = Ye4, MT0 = rE, LT0 = "JSXNamespacedName", qT0 = Ye4, BT0 = "JSXIdentifier", UT0 = cA, XT0 = X62, GT0 = "ExportSpecifier", YT0 = X62, zT0 = "ImportDefaultSpecifier", JT0 = X62, KT0 = "ImportNamespaceSpecifier", HT0 = XD, WT0 = X62, VT0 = "imported", $T0 = "ImportSpecifier", QT0 = "Line", ZT0 = "Block", xE0 = m1, rE0 = m1, eE0 = "DeclaredPredicate", tE0 = "InferredPredicate", nE0 = Qb, uE0 = h8, iE0 = fR, fE0 = W32, cE0 = Tm2, sE0 = Dp2, aE0 = "message", oE0 = Yx, vE0 = wD, lE0 = vR, pE0 = Wv, kE0 = G6, mE0 = Kk, hE0 = [0, ss5, fi6, _c2, Ni6, di6, Cs4, mf, si6, sf, z72, eu2, zc2, _u2, e7, Ve6, bs5, Mc2, W7, hf, Ff, Es4, Xi6, Z7, Ii6, lc3, I7, Ec2, O7, of, Fu2, tu2, Ku2, jc2, hi6, m7, pf, Ic2, Vf, gs5, wc2, ys5, St7, V7, Mf2, $f2, lf, Ji6, ti6, l7, f7, Ac2, Lf, vi6, Hi6, rs5, Vc2, U7, Au2, fu2, Kn4, Ou2, bu2, ai6, Ui6, Si6, ji6, es5, Af, pu2, Ki6, qi6, X7, Lu2, Zu2, ms5, Wf, o7, Ge7, r7, Qi6, x7, Gf, dc2, D7, qc2, G1, ff, $n3, Oc2, E7, Nf, Tc2, g7, kc2, su2, P7, tf, Gc2, Yn3, Mu2, a7, Eu2, vc2, j7, _i6, T7, $22, Pi6, ou2, d7, w7, Ri6, wu2, ki6, Ci6, Q7, Rc2, Wu2, Oi6, ic2, be6, v7, vu2, H22, Hn4, Uc2, zi6, xf2, Du2, $c2, xc2, Yc2, If2, ls5, Gi6, Ef, yu2, $u2, pc3, du2, Xf, Pu2, oc2, xi6, Cc2, Hc2, Nc2, Wn3, yf, Bc2, bi6, mi6, Uf, Ps6, Hf, qf, _f2, ii6, Qu2, Uu2, Rf2, B7, is5, ws5, y7, oi6, S7, ru2, bc2, H7, Hu2, xu2, Sc2, u7, Ei6, Pf2, yi5, Jn3, L7, ps5, Y7, Tf, gc2, Xu2, W22, Je6, F7, J72, Jc2, jf, He6, Ke6, n7, cs5, Vu2, p7, ds5, ge6, iu2, As5, Bf, cc2, sc2, Un3, cu2, Mi5, Ru2, hu2, Ts4, q7, fs13, fc2, Qn3, Vi6, uc2, qu2, Xc2, A7, ns5, ni6, lu2, Xn4, Df2, Pc2, Fc2, ac2, kf2, M7, Vn3, ui7, wi6, uu2, c7, gi6, G7, zn4, Bi6, ju2, Sf, i7, _7, Gn4, Qf, Su2, zu2, zf, ei6, Cu2, vf2, nf, Zf, tn4, h7, Ju2, li6, Zn4, qn4, Bu2, Di6, ri6, ku2, Zi6, Zc2, Yu2, C7, gu2, Jf, cf, s7, Tu2, df, K72, Bn3, Ti6, R7, t24, Ai6, uf, ts5, hs5, Iu2, wf, k7, Xe6, gf, _s5, af, Yi6, hc2, yc2, Wi6, Qc2, vs6, Is6, Fi6, bf, os5, rc2, vn3, as5, Gu2, Dc2, Kf, nc2, us5, pi6, ci6, Yf, We6, Lc2, ae5, N7, rf, $i6, mu2, Of, b7, Wc2, au2, t72, Kc2], dE0 = [0, H22, of, $i6, V7, $22, qf, h7, pc3, bc2, Rf2, Gi6, Du2, Fi6, hu2, F7, d7, Qu2, Uf, J72, ui7, cf, X7, Zn4, Zf, _u2, vu2, $n3, ac2, Ps6, oc2, _f2, Sf, Es4, Uc2, jc2, Q7, He6, t72, Wi6, s7, Qc2, Bi6, ic2, rs5, Ve6, Jc2, Uu2, fu2, k7, ss5, ii6, lu2, T7, Je6, ci6, w7, Of, qu2, fc2, Ku2, pi6, q7, a7, If2, _7, fs13, Ge7, Lf, Pi6, Zu2, M7, pu2, xf2, af, P7, $f2, au2, Fc2, Zi6, m7, Bn3, jf, Fu2, Y7, bi6, $c2, Ai6, Eu2, ge6, es5, x7, rc2, Vu2, bs5, Wn3, e7, o7, Kf, Pc2, Vn3, r7, Xi6, Qf, kf2, Lu2, sf, Xn4, Vc2, zu2, ni6, Oi6, Hu2, $u2, si6, n7, Ii6, Zc2, Ui6, ys5, Gf, Kc2, Xu2, Mu2, Ei6, Cc2, wu2, Kn4, hs5, df, W7, Ki6, uc2, hf, Nf, uu2, du2, E7, ps5, L7, mf, gu2, Au2, Cu2, Yc2, su2, os5, N7, oi6, G1, g7, Hn4, Bc2, ai6, pf, ku2, xu2, Tf, Jf, ms5, Tc2, Dc2, z72, dc2, Bu2, zf, f7, D7, Z7, Xf, I7, ds5, fi6, Mi5, Di6, Rc2, zn4, Yu2, xi6, eu2, vf2, ae5, lc3, is5, cc2, Ou2, Df2, as5, Vi6, Gn4, W22, Ri6, U7, cs5, St7, Ni6, qc2, gs5, tu2, i7, vi6, Ru2, di6, Qi6, S7, kc2, _c2, ti6, cu2, gf, nc2, As5, Iu2, wf, Qn3, vs6, Ci6, hi6, Hi6, ws5, bf, v7, b7, Mf2, mi6, C7, Nc2, ts5, p7, t24, Un3, Mc2, yf, Is6, A7, Yn3, Yi6, Ac2, Yf, Xc2, Oc2, Ts4, O7, Hc2, Bf, wc2, Ec2, bu2, ju2, j7, be6, nf, Ju2, qn4, hc2, Ic2, wi6, Gc2, gi6, lf, yu2, zi6, ou2, xc2, us5, Ke6, Xe6, rf, ff, ri6, Wc2, ns5, K72, mu2, Vf, Sc2, _s5, Jn3, gc2, qi6, Hf, ru2, uf, H7, yc2, Ef, ji6, y7, sc2, Wf, B7, ei6, Si6, yi5, Wu2, Ff, Gu2, Su2, Pf2, c7, li6, l7, Ji6, _i6, Cs4, We6, iu2, zc2, vn3, G7, R7, ki6, ls5, u7, Tu2, Pu2, Ti6, Lc2, tf, vc2, tn4, Af], yE0 = [0, Af, tn4, vc2, tf, Lc2, Ti6, Pu2, Tu2, u7, ls5, ki6, R7, G7, vn3, zc2, iu2, We6, Cs4, _i6, Ji6, l7, li6, c7, Pf2, Su2, Gu2, Ff, Wu2, yi5, Si6, ei6, B7, Wf, sc2, y7, ji6, Ef, yc2, H7, uf, ru2, Hf, qi6, gc2, Jn3, _s5, Sc2, Vf, mu2, K72, ns5, Wc2, ri6, ff, rf, Xe6, Ke6, us5, xc2, ou2, zi6, yu2, lf, gi6, Gc2, wi6, Ic2, hc2, qn4, Ju2, nf, be6, j7, ju2, bu2, Ec2, wc2, Bf, Hc2, O7, Ts4, Oc2, Xc2, Yf, Ac2, Yi6, Yn3, A7, Is6, yf, Mc2, Un3, t24, p7, ts5, Nc2, C7, mi6, Mf2, b7, v7, bf, ws5, Hi6, hi6, Ci6, vs6, Qn3, wf, Iu2, As5, nc2, gf, cu2, ti6, _c2, kc2, S7, Qi6, di6, Ru2, vi6, i7, tu2, gs5, qc2, Ni6, St7, cs5, U7, Ri6, W22, Gn4, Vi6, as5, Df2, Ou2, cc2, is5, lc3, ae5, vf2, eu2, xi6, Yu2, zn4, Rc2, Di6, Mi5, fi6, ds5, I7, Xf, Z7, D7, f7, zf, Bu2, dc2, z72, Dc2, Tc2, ms5, Jf, Tf, xu2, ku2, pf, ai6, Bc2, Hn4, g7, G1, oi6, N7, os5, su2, Yc2, Cu2, Au2, gu2, mf, L7, ps5, E7, du2, uu2, Nf, hf, uc2, Ki6, W7, df, hs5, Kn4, wu2, Cc2, Ei6, Mu2, Xu2, Kc2, Gf, ys5, Ui6, Zc2, Ii6, n7, si6, $u2, Hu2, Oi6, ni6, zu2, Vc2, Xn4, sf, Lu2, kf2, Qf, Xi6, r7, Vn3, Pc2, Kf, o7, e7, Wn3, bs5, Vu2, rc2, x7, es5, ge6, Eu2, Ai6, $c2, bi6, Y7, Fu2, jf, Bn3, m7, Zi6, Fc2, au2, $f2, P7, af, xf2, pu2, M7, Zu2, Pi6, Lf, Ge7, fs13, _7, If2, a7, q7, pi6, Ku2, fc2, qu2, Of, w7, ci6, Je6, T7, lu2, ii6, ss5, k7, fu2, Uu2, Jc2, Ve6, rs5, ic2, Bi6, Qc2, s7, Wi6, t72, He6, Q7, jc2, Uc2, Es4, Sf, _f2, oc2, Ps6, ac2, $n3, vu2, _u2, Zf, Zn4, X7, cf, ui7, J72, Uf, Qu2, d7, F7, hu2, Fi6, Du2, Gi6, Rf2, bc2, pc3, h7, qf, $22, V7, $i6, of, H22], _E0 = "Jsoo_runtime.Error.Exn", wE0 = [0, 0], gE0 = "assert_operator", bE0 = "use_strict", TE0 = w_, EE0 = "esproposal_decorators", SE0 = "records", AE0 = "pattern_matching", IE0 = "enums", PE0 = "components", CE0 = "Internal error: ", NE0 = [t1, "CamlinternalLazy.Undefined", js6(0)];
|
|
109444
|
+
var KV = "Array.sub", HV = "first domain already spawned", WV = [0, "camlinternalOO.ml", BF, 50], VV = [0, WM, 72, 5], $V = [0, WM, 81, 2], QV = "/tmp", ZV = ln5, x$ = [0, "src/wtf8.ml", 65, 9], r$ = [0, "src/third-party/sedlex/flow_sedlexing.ml", jS, 4], e$ = "Flow_sedlexing.MalFormed", t$ = O6, n$ = H32, u$ = K32, i$ = H62, f$ = $v, c$ = [0, [12, 40, [18, [1, [0, [11, Li6, 0], Li6]], [11, "File_key.LibFile", [17, [0, Eo3, 1, 0], 0]]]], "(@[<2>File_key.LibFile@ "], s$ = [0, [3, 0, 0], C6], a$ = [0, [17, 0, [12, 41, 0]], ck], o$ = [0, [12, 40, [18, [1, [0, [11, Li6, 0], Li6]], [11, "File_key.SourceFile", [17, [0, Eo3, 1, 0], 0]]]], "(@[<2>File_key.SourceFile@ "], v$ = [0, [3, 0, 0], C6], l$ = [0, [17, 0, [12, 41, 0]], ck], p$ = [0, [12, 40, [18, [1, [0, [11, Li6, 0], Li6]], [11, "File_key.JsonFile", [17, [0, Eo3, 1, 0], 0]]]], "(@[<2>File_key.JsonFile@ "], k$ = [0, [3, 0, 0], C6], m$ = [0, [17, 0, [12, 41, 0]], ck], h$ = [0, [12, 40, [18, [1, [0, [11, Li6, 0], Li6]], [11, "File_key.ResourceFile", [17, [0, Eo3, 1, 0], 0]]]], "(@[<2>File_key.ResourceFile@ "], d$ = [0, [3, 0, 0], C6], y$ = [0, [17, 0, [12, 41, 0]], ck], _$ = [0, 1], w$ = [0, 0], g$ = [0, 1], b$ = [0, 2], T$ = [0, 2], E$ = [0, 0], S$ = [0, 1], A$ = [0, 1], I$ = [0, 1], P$ = [0, 1], C$ = [0, 2], N$ = [0, 1], O$ = [0, 1], j$ = [0, 0, 0], D$ = [0, 0, 0], R$ = [0, ss5, fi6, _c2, Ni6, di6, Cs4, mf, si6, sf, z72, eu2, zc2, _u2, e7, Ve6, bs5, Mc2, W7, hf, Ff, Es4, Xi6, Z7, Ii6, lc3, I7, Ec2, O7, of, Fu2, tu2, Ku2, jc2, hi6, m7, pf, Ic2, Vf, gs5, wc2, ys5, St7, V7, Mf2, $f2, lf, Ji6, ti6, l7, f7, Ac2, Lf, vi6, Hi6, rs5, Vc2, U7, Au2, fu2, Kn4, Ou2, bu2, ai6, Ui6, Si6, ji6, es5, Af, pu2, Ki6, qi6, X7, Lu2, Zu2, ms5, Wf, o7, Ge7, r7, Qi6, x7, Gf, dc2, D7, qc2, G1, ff, $n3, Oc2, E7, Nf, Tc2, g7, kc2, su2, P7, tf, Gc2, Yn3, Mu2, a7, Eu2, vc2, j7, _i6, T7, $22, Pi6, ou2, d7, w7, Ri6, wu2, ki6, Ci6, Q7, Rc2, Wu2, Oi6, ic2, be6, v7, vu2, H22, Hn4, Uc2, zi6, xf2, Du2, $c2, xc2, Yc2, If2, ls5, Gi6, Ef, yu2, $u2, pc3, du2, Xf, Pu2, oc2, xi6, Cc2, Hc2, Nc2, Wn3, yf, Bc2, bi6, mi6, Uf, Ps6, Hf, qf, _f2, ii6, Qu2, Uu2, Rf2, B7, is5, ws5, y7, oi6, S7, ru2, bc2, H7, Hu2, xu2, Sc2, u7, Ei6, Pf2, yi5, Jn3, L7, ps5, Y7, Tf, gc2, Xu2, W22, Je6, F7, J72, Jc2, jf, He6, Ke6, n7, cs5, Vu2, p7, ds5, ge6, iu2, As5, Bf, cc2, sc2, Un3, cu2, Mi5, Ru2, hu2, Ts4, q7, fs11, fc2, Qn3, Vi6, uc2, qu2, Xc2, A7, ns5, ni6, lu2, Xn4, Df2, Pc2, Fc2, ac2, kf2, M7, Vn3, ui7, wi6, uu2, c7, gi6, G7, zn4, Bi6, ju2, Sf, i7, _7, Gn4, Qf, Su2, zu2, zf, ei6, Cu2, vf2, nf, Zf, tn4, h7, Ju2, li6, Zn4, qn4, Bu2, Di6, ri6, ku2, Zi6, Zc2, Yu2, C7, gu2, Jf, cf, s7, Tu2, df, K72, Bn3, Ti6, R7, t24, Ai6, uf, ts5, hs5, Iu2, wf, k7, Xe6, gf, _s5, af, Yi6, hc2, yc2, Wi6, Qc2, vs6, Is6, Fi6, bf, os5, rc2, vn3, as5, Gu2, Dc2, Kf, nc2, us5, pi6, ci6, Yf, We6, Lc2, ae5, N7, rf, $i6, mu2, Of, b7, Wc2, au2, t72, Kc2], F$ = [0, H22, of, $i6, V7, $22, qf, h7, pc3, bc2, Rf2, Gi6, Du2, Fi6, hu2, F7, d7, Qu2, Uf, J72, ui7, cf, X7, Zn4, Zf, _u2, vu2, $n3, ac2, Ps6, oc2, _f2, Sf, Es4, Uc2, jc2, Q7, He6, t72, Wi6, s7, Qc2, Bi6, ic2, rs5, Ve6, Jc2, Uu2, fu2, k7, ss5, ii6, lu2, T7, Je6, ci6, w7, Of, qu2, fc2, Ku2, pi6, q7, a7, If2, _7, fs11, Ge7, Lf, Pi6, Zu2, M7, pu2, xf2, af, P7, $f2, au2, Fc2, Zi6, m7, Bn3, jf, Fu2, Y7, bi6, $c2, Ai6, Eu2, ge6, es5, x7, rc2, Vu2, bs5, Wn3, e7, o7, Kf, Pc2, Vn3, r7, Xi6, Qf, kf2, Lu2, sf, Xn4, Vc2, zu2, ni6, Oi6, Hu2, $u2, si6, n7, Ii6, Zc2, Ui6, ys5, Gf, Kc2, Xu2, Mu2, Ei6, Cc2, wu2, Kn4, hs5, df, W7, Ki6, uc2, hf, Nf, uu2, du2, E7, ps5, L7, mf, gu2, Au2, Cu2, Yc2, su2, os5, N7, oi6, G1, g7, Hn4, Bc2, ai6, pf, ku2, xu2, Tf, Jf, ms5, Tc2, Dc2, z72, dc2, Bu2, zf, f7, D7, Z7, Xf, I7, ds5, fi6, Mi5, Di6, Rc2, zn4, Yu2, xi6, eu2, vf2, ae5, lc3, is5, cc2, Ou2, Df2, as5, Vi6, Gn4, W22, Ri6, U7, cs5, St7, Ni6, qc2, gs5, tu2, i7, vi6, Ru2, di6, Qi6, S7, kc2, _c2, ti6, cu2, gf, nc2, As5, Iu2, wf, Qn3, vs6, Ci6, hi6, Hi6, ws5, bf, v7, b7, Mf2, mi6, C7, Nc2, ts5, p7, t24, Un3, Mc2, yf, Is6, A7, Yn3, Yi6, Ac2, Yf, Xc2, Oc2, Ts4, O7, Hc2, Bf, wc2, Ec2, bu2, ju2, j7, be6, nf, Ju2, qn4, hc2, Ic2, wi6, Gc2, gi6, lf, yu2, zi6, ou2, xc2, us5, Ke6, Xe6, rf, ff, ri6, Wc2, ns5, K72, mu2, Vf, Sc2, _s5, Jn3, gc2, qi6, Hf, ru2, uf, H7, yc2, Ef, ji6, y7, sc2, Wf, B7, ei6, Si6, yi5, Wu2, Ff, Gu2, Su2, Pf2, c7, li6, l7, Ji6, _i6, Cs4, We6, iu2, zc2, vn3, G7, R7, ki6, ls5, u7, Tu2, Pu2, Ti6, Lc2, tf, vc2, tn4, Af], M$ = GM, L$ = $F, q$ = SF, B$ = OD, U$ = Qy, X$ = QL, G$ = F62, Y$ = WD, z$ = YF, J$ = CF, K$ = yD2, H$ = $7, W$ = ze6, V$ = _R, $$ = pF, Q$ = se7, Z$ = HL, xQ = wR, rQ = _k, eQ = Qm2, tQ = bo3, nQ = I6, uQ = kM, iQ = YD, fQ = IR, cQ = RR, sQ = PF, aQ = qD, oQ = GD, vQ = hL, lQ = TR, pQ = vM, kQ = bF, mQ = yo3, hQ = fF, dQ = $L, yQ = eF, _Q = g6, wQ = cl2, gQ = No3, bQ = [0, [18, [1, [0, [11, Li6, 0], Li6]], [11, "{ ", 0]], "@[<2>{ "], TQ = "Loc.line", EQ = [0, [18, [1, [0, 0, rx]], [2, 0, [11, GR, [17, [0, Eo3, 1, 0], 0]]]], yF], SQ = [0, [4, 0, 0, 0, 0], al2], AQ = [0, [17, 0, 0], iI], IQ = [0, [12, 59, [17, [0, Eo3, 1, 0], 0]], ";@ "], PQ = G6, CQ = [0, [18, [1, [0, 0, rx]], [2, 0, [11, GR, [17, [0, Eo3, 1, 0], 0]]]], yF], NQ = [0, [4, 0, 0, 0, 0], al2], OQ = [0, [17, 0, 0], iI], jQ = [0, [17, [0, Eo3, 1, 0], [12, So3, [17, 0, 0]]], "@ }@]"], DQ = rx, RQ = "Object literal may not have data and accessor property with the same name", FQ = "Object literal may not have multiple get/set accessors with the same name", MQ = "Unexpected token <. Remember, adjacent JSX elements must be wrapped in an enclosing parent tag", LQ = "`let [` is ambiguous in this position because it is either a `let` binding pattern, or a member expression.", qQ = "Async functions can only be declared at top level or immediately within another function.", BQ = "`await` is an invalid identifier in async functions", UQ = "`await` is not allowed in async function parameters.", XQ = "Computed properties must have a value.", GQ = "Constructor can't be an accessor.", YQ = "Constructor can't be an async function.", zQ = "Constructor can't be a generator.", JQ = "It is sufficient for your declare function to just have a Promise return type.", KQ = "async is an implementation detail and isn't necessary for your declare function statement. ", HQ = "`declare` modifier can only appear on class fields.", WQ = "Unexpected token `=`. Initializers are not allowed in a `declare`.", VQ = "Unexpected token `=`. Initializers are not allowed in a `declare opaque type`.", $Q = "Classes may only have one constructor", QQ = "Rest element must be final element of an array pattern", ZQ = "Cannot export an enum with `export type`, try `export enum E {}` or `module.exports = E;` instead.", xZ = "Enum members are separated with `,`. Replace `;` with `,`.", rZ = "`const` enums are not supported. Flow Enums are designed to allow for inlining, however the inlining itself needs to be part of the build system (whatever you use) rather than Flow itself.", eZ = "Expected an object pattern, array pattern, or an identifier but found an expression instead", tZ = "Missing comma between export specifiers", nZ = "Generators can only be declared at top level or immediately within another function.", uZ = "Getter should have zero parameters", iZ = "A getter cannot have a `this` parameter.", fZ = "Illegal continue statement", cZ = "Illegal return statement", sZ = "Illegal Unicode escape", aZ = "Missing comma between import specifiers", oZ = "It cannot be used with `import type` or `import typeof` statements", vZ = "The `type` and `typeof` keywords on named imports can only be used on regular `import` statements. ", lZ = "Explicit inexact syntax cannot appear inside an explicit exact object type", pZ = "Explicit inexact syntax can only appear inside an object type", kZ = "Component params must be an identifier. If you'd like to destructure, you should use `name as {destructure}`", mZ = "A bigint literal must be an integer", hZ = "JSX value should be either an expression or a quoted JSX text", dZ = "Invalid left-hand side in assignment", yZ = "Invalid left-hand side in exponentiation expression", _Z = "Invalid left-hand side in for-in", wZ = "Invalid left-hand side in for-of", gZ = "Invalid optional indexed access. Indexed access uses bracket notation. Use the format `T?.[K]`.", bZ = "Invalid regular expression", TZ = "A bigint literal cannot use exponential notation", EZ = "Tuple spread elements cannot be optional.", SZ = "Tuple variance annotations can only be used with labeled tuple elements, e.g. `[+foo: number]`", AZ = "`typeof` can only be used to get the type of variables.", IZ = "JSX attributes must only be assigned a non-empty expression", PZ = "Literals cannot be used as shorthand properties.", CZ = "Malformed unicode", NZ = "`match` argument must not be empty", OZ = "`match` argument cannot contain spread elements", jZ = "`await` is not yet supported in `match` expressions", DZ = "`yield` is not yet supported in `match` expressions", RZ = "Object pattern can't contain methods", FZ = "Expected at least one type parameter.", MZ = "Type parameter declaration needs a default, since a preceding type parameter declaration has a default.", LZ = "More than one default clause in switch statement", qZ = "Illegal newline after throw", BZ = "Illegal newline before arrow", UZ = "Missing catch or finally after try", XZ = "Const must be initialized", GZ = "Destructuring assignment must be initialized", YZ = "An optional chain may not be used in a `new` expression.", zZ = "Template literals may not be used in an optional chain.", JZ = "Rest parameter must be final parameter of an argument list", KZ = "Private fields may not be deleted.", HZ = "Private fields can only be referenced from within a class.", WZ = "Rest property must be final property of an object pattern", VZ = "Records to not support private elements. Remove the `#`.", $Z = "Setter should have exactly one parameter", QZ = "A setter cannot have a `this` parameter.", ZZ = "Catch variable may not be eval or arguments in strict mode", x00 = "Delete of an unqualified identifier in strict mode.", r00 = "Duplicate data property in object literal not allowed in strict mode", e00 = "Function name may not be eval or arguments in strict mode", t00 = "Assignment to eval or arguments is not allowed in strict mode", n00 = "Postfix increment/decrement may not have eval or arguments operand in strict mode", u00 = "Prefix increment/decrement may not have eval or arguments operand in strict mode", i00 = "Strict mode code may not include a with statement", f00 = "Number literals with leading zeros are not allowed in strict mode.", c00 = "Octal literals are not allowed in strict mode.", s00 = "Strict mode function may not have duplicate parameter names", a00 = "Parameter name eval or arguments is not allowed in strict mode", o00 = 'Illegal "use strict" directive in function with non-simple parameter list', v00 = "Use of reserved word in strict mode", l00 = "Variable name may not be eval or arguments in strict mode", p00 = "You may not access a private field through the `super` keyword.", k00 = "Flow does not support abstract classes.", m00 = "Flow does not support template literal types.", h00 = "A type annotation is required for the `this` parameter.", d00 = "Arrow functions cannot have a `this` parameter; arrow functions automatically bind `this` when declared.", y00 = "Constructors cannot have a `this` parameter; constructors don't bind `this` like other functions.", _00 = "The `this` parameter cannot be optional.", w00 = "The `this` parameter must be the first function parameter.", g00 = "A trailing comma is not permitted after the rest element", b00 = "Unexpected end of input", T00 = "Explicit inexact syntax must come at the end of an object type", E00 = "Opaque type aliases are not allowed in untyped mode", S00 = "Unexpected proto modifier", A00 = "Unexpected reserved word", I00 = "Unexpected reserved type", P00 = "Spreading a type is only allowed inside an object type", C00 = "Unexpected static modifier", N00 = "Unexpected `super` outside of a class method", O00 = "`super()` is only valid in a class constructor", j00 = "Type aliases are not allowed in untyped mode", D00 = "Type annotations are not allowed in untyped mode", R00 = "Type declarations are not allowed in untyped mode", F00 = "Type exports are not allowed in untyped mode", M00 = "Type imports are not allowed in untyped mode", L00 = "Interfaces are not allowed in untyped mode", q00 = "Unexpected variance sigil", B00 = "Found a decorator in an unsupported position.", U00 = "Invalid regular expression: missing /", X00 = "Unexpected whitespace between `#` and identifier", G00 = "`yield` is an invalid identifier in generators", Y00 = "Yield expression not allowed in formal parameter", z00 = [0, [11, "Duplicate export for `", [2, 0, [12, 96, 0]]], "Duplicate export for `%s`"], J00 = [0, [11, "Private fields may only be declared once. `#", [2, 0, [11, "` is declared more than once.", 0]]], "Private fields may only be declared once. `#%s` is declared more than once."], K00 = [0, [11, "bigint enum members need to be initialized, e.g. `", [2, 0, [11, " = 1n,` in enum `", [2, 0, [11, nu2, 0]]]]], "bigint enum members need to be initialized, e.g. `%s = 1n,` in enum `%s`."], H00 = [0, [11, "Boolean enum members need to be initialized. Use either `", [2, 0, [11, " = true,` or `", [2, 0, [11, " = false,` in enum `", [2, 0, [11, nu2, 0]]]]]]], "Boolean enum members need to be initialized. Use either `%s = true,` or `%s = false,` in enum `%s`."], W00 = [0, [11, "Enum member names need to be unique, but the name `", [2, 0, [11, "` has already been used before in enum `", [2, 0, [11, nu2, 0]]]]], "Enum member names need to be unique, but the name `%s` has already been used before in enum `%s`."], V00 = [0, [11, WR, [2, 0, [11, "` has inconsistent member initializers. Either use no initializers, or consistently use literals (either booleans, numbers, or strings) for all member initializers.", 0]]], "Enum `%s` has inconsistent member initializers. Either use no initializers, or consistently use literals (either booleans, numbers, or strings) for all member initializers."], $00 = "The `...` must come at the end of the enum body. Remove the trailing comma.", Q00 = "The `...` must come after all enum members. Move it to the end of the enum body.", Z00 = [0, [11, "Use one of `boolean`, `number`, `string`, `symbol`, or `bigint` in enum `", [2, 0, [11, nu2, 0]]], "Use one of `boolean`, `number`, `string`, `symbol`, or `bigint` in enum `%s`."], xx0 = [0, [11, "Enum type `", [2, 0, [11, "` is not valid. ", [2, 0, 0]]]], "Enum type `%s` is not valid. %s"], rx0 = [0, [11, "Supplied enum type is not valid. ", [2, 0, 0]], "Supplied enum type is not valid. %s"], ex0 = [0, [11, "Enum member names and initializers are separated with `=`. Replace `", [2, 0, [11, ":` with `", [2, 0, [11, " =`.", 0]]]]], "Enum member names and initializers are separated with `=`. Replace `%s:` with `%s =`."], tx0 = [0, [11, WR, [2, 0, [11, "` has type `", [2, 0, [11, "`, so the initializer of `", [2, 0, [11, "` needs to be a ", [2, 0, [11, " literal.", 0]]]]]]]]], "Enum `%s` has type `%s`, so the initializer of `%s` needs to be a %s literal."], nx0 = [0, [11, "Symbol enum members cannot be initialized. Use `", [2, 0, [11, ",` in enum `", [2, 0, [11, nu2, 0]]]]], "Symbol enum members cannot be initialized. Use `%s,` in enum `%s`."], ux0 = [0, [11, "The enum member initializer for `", [2, 0, [11, "` needs to be a literal (either a boolean, number, or string) in enum `", [2, 0, [11, nu2, 0]]]]], "The enum member initializer for `%s` needs to be a literal (either a boolean, number, or string) in enum `%s`."], ix0 = [0, [11, "Enum member names cannot start with lowercase 'a' through 'z'. Instead of using `", [2, 0, [11, "`, consider using `", [2, 0, [11, "`, in enum `", [2, 0, [11, nu2, 0]]]]]]], "Enum member names cannot start with lowercase 'a' through 'z'. Instead of using `%s`, consider using `%s`, in enum `%s`."], fx0 = [0, [11, "Number enum members need to be initialized, e.g. `", [2, 0, [11, " = 1,` in enum `", [2, 0, [11, nu2, 0]]]]], "Number enum members need to be initialized, e.g. `%s = 1,` in enum `%s`."], cx0 = [0, [11, "String enum members need to consistently either all use initializers, or use no initializers, in enum ", [2, 0, [12, 46, 0]]], "String enum members need to consistently either all use initializers, or use no initializers, in enum %s."], sx0 = [0, [11, "Expected corresponding JSX closing tag for ", [2, 0, 0]], "Expected corresponding JSX closing tag for %s"], ax0 = "immediately within another function.", ox0 = "In strict mode code, functions can only be declared at top level or ", vx0 = "inside a block, or as the body of an if statement.", lx0 = "In non-strict mode code, functions can only be declared at top level, ", px0 = " `break` statements are not required in `match` statements, as unlike `switch` statements, `match` statement cases do not fall-through by default.", kx0 = rx, mx0 = [0, [11, "Illegal break statement.", [2, 0, 0]], "Illegal break statement.%s"], hx0 = zM, dx0 = rx, yx0 = XM, _x0 = DF, wx0 = DM, gx0 = [0, [11, "Classes may not have ", [2, 0, [2, 0, [11, DD2, [2, 0, [11, nu2, 0]]]]]], "Classes may not have %s%s named `%s`."], bx0 = "Components use `renders` instead of `:` to annotate the render type of a component.", Tx0 = uM, Ex0 = rx, Sx0 = [0, [11, "String params require local bindings using `as` renaming. You can use `'", [2, 0, [11, "' as ", [2, 0, [2, 0, [11, ": <TYPE>` ", 0]]]]]], "String params require local bindings using `as` renaming. You can use `'%s' as %s%s: <TYPE>` "], Ax0 = "Remove the period.", Ix0 = "Indexed access uses bracket notation.", Px0 = [0, [11, "Invalid indexed access. ", [2, 0, [11, " Use the format `T[K]`.", 0]]], "Invalid indexed access. %s Use the format `T[K]`."], Cx0 = [0, [11, "Invalid flags supplied to RegExp constructor '", [2, 0, [12, 39, 0]]], "Invalid flags supplied to RegExp constructor '%s'"], Nx0 = tn4, Ox0 = Dp2, jx0 = [0, [11, "In match ", [2, 0, [11, " pattern, the rest must be the last element in the pattern", 0]]], "In match %s pattern, the rest must be the last element in the pattern"], Dx0 = [0, [11, "JSX element ", [2, 0, [11, " has no corresponding closing tag.", 0]]], "JSX element %s has no corresponding closing tag."], Rx0 = [0, [11, tM, [2, 0, [11, "`. Parentheses are required to combine `??` with `&&` or `||` expressions.", 0]]], "Unexpected token `%s`. Parentheses are required to combine `??` with `&&` or `||` expressions."], Fx0 = zM, Mx0 = rx, Lx0 = XM, qx0 = A6, Bx0 = [0, [11, "Records may not have ", [2, 0, [2, 0, [11, DD2, [2, 0, [11, nu2, 0]]]]]], "Records may not have %s%s named `%s`."], Ux0 = [0, [2, 0, [11, " '", [2, 0, [11, "' has already been declared", 0]]]], "%s '%s' has already been declared"], Xx0 = rx, Gx0 = k6, Yx0 = " You can try using JavaScript private fields by prepending `#` to the field name.", zx0 = Q62, Jx0 = " Fields and methods are public by default. You can simply omit the `public` keyword.", Kx0 = W62, Hx0 = [0, [11, "Flow does not support using `", [2, 0, [11, "` in classes.", [2, 0, 0]]]], "Flow does not support using `%s` in classes.%s"], Wx0 = [0, [11, "Private fields must be declared before they can be referenced. `#", [2, 0, [11, "` has not been declared.", 0]]], "Private fields must be declared before they can be referenced. `#%s` has not been declared."], Vx0 = [0, [11, xM, [2, 0, 0]], "Unexpected %s"], $x0 = [0, [11, tM, [2, 0, [11, "`. Did you mean `", [2, 0, [11, "`?", 0]]]]], "Unexpected token `%s`. Did you mean `%s`?"], Qx0 = [0, [11, xM, [2, 0, [11, ", expected ", [2, 0, 0]]]], "Unexpected %s, expected %s"], Zx0 = [0, [11, "Undefined label '", [2, 0, [12, 39, 0]]], "Undefined label '%s'"], xr0 = "Parse_error.Error", rr0 = [0, [0, 36, 37], [0, 48, 58], [0, 65, 91], [0, 95, 96], [0, 97, un4], [0, py, Sg], [0, NS, s9], [0, j_, Wm2], [0, xI, z_], [0, Y32, lk], [0, ty, Gp2], [0, t1, 706], [0, CD2, 722], [0, 736, 741], [0, 748, 749], [0, 750, 751], [0, 768, 885], [0, 886, 888], [0, 890, 894], [0, 895, 896], [0, 902, 907], [0, 908, 909], [0, 910, 930], [0, jM, 1014], [0, 1015, 1154], [0, 1155, 1160], [0, 1162, 1328], [0, 1329, 1367], [0, 1369, 1370], [0, 1376, 1417], [0, 1425, 1470], [0, 1471, 1472], [0, 1473, 1475], [0, 1476, 1478], [0, 1479, 1480], [0, 1488, 1515], [0, 1519, 1523], [0, 1552, 1563], [0, 1568, 1642], [0, 1646, 1748], [0, 1749, 1757], [0, 1759, 1769], [0, 1770, 1789], [0, 1791, 1792], [0, 1808, 1867], [0, 1869, 1970], [0, 1984, 2038], [0, 2042, 2043], [0, 2045, 2046], [0, Gg, 2094], [0, 2112, 2140], [0, 2144, 2155], [0, 2208, 2229], [0, 2230, 2238], [0, 2259, 2274], [0, 2275, 2404], [0, 2406, 2416], [0, 2417, 2436], [0, 2437, 2445], [0, 2447, 2449], [0, 2451, 2473], [0, 2474, 2481], [0, 2482, 2483], [0, 2486, 2490], [0, 2492, 2501], [0, 2503, 2505], [0, 2507, 2511], [0, 2519, 2520], [0, 2524, 2526], [0, 2527, 2532], [0, 2534, 2546], [0, 2556, 2557], [0, 2558, 2559], [0, 2561, 2564], [0, 2565, 2571], [0, 2575, 2577], [0, 2579, 2601], [0, 2602, 2609], [0, 2610, 2612], [0, 2613, 2615], [0, 2616, 2618], [0, 2620, 2621], [0, 2622, 2627], [0, 2631, 2633], [0, 2635, 2638], [0, 2641, 2642], [0, 2649, 2653], [0, 2654, 2655], [0, 2662, 2678], [0, 2689, 2692], [0, 2693, 2702], [0, 2703, 2706], [0, 2707, 2729], [0, 2730, 2737], [0, 2738, 2740], [0, 2741, 2746], [0, 2748, 2758], [0, 2759, 2762], [0, 2763, 2766], [0, 2768, 2769], [0, 2784, 2788], [0, 2790, 2800], [0, 2809, 2816], [0, 2817, 2820], [0, 2821, 2829], [0, 2831, 2833], [0, 2835, 2857], [0, 2858, 2865], [0, 2866, 2868], [0, 2869, 2874], [0, 2876, 2885], [0, 2887, 2889], [0, 2891, 2894], [0, 2902, 2904], [0, 2908, 2910], [0, 2911, 2916], [0, 2918, 2928], [0, 2929, 2930], [0, 2946, 2948], [0, 2949, 2955], [0, 2958, 2961], [0, 2962, 2966], [0, 2969, 2971], [0, 2972, 2973], [0, 2974, 2976], [0, 2979, 2981], [0, 2984, 2987], [0, 2990, 3002], [0, 3006, 3011], [0, 3014, 3017], [0, 3018, 3022], [0, 3024, 3025], [0, 3031, 3032], [0, 3046, 3056], [0, 3072, 3085], [0, 3086, 3089], [0, 3090, 3113], [0, 3114, 3130], [0, 3133, 3141], [0, 3142, 3145], [0, 3146, 3150], [0, 3157, 3159], [0, 3160, 3163], [0, 3168, 3172], [0, 3174, 3184], [0, 3200, 3204], [0, 3205, 3213], [0, 3214, 3217], [0, 3218, 3241], [0, 3242, 3252], [0, 3253, 3258], [0, 3260, 3269], [0, 3270, 3273], [0, 3274, 3278], [0, 3285, 3287], [0, 3294, 3295], [0, 3296, 3300], [0, 3302, 3312], [0, 3313, 3315], [0, 3328, 3332], [0, 3333, 3341], [0, 3342, 3345], [0, 3346, 3397], [0, 3398, 3401], [0, 3402, 3407], [0, 3412, 3416], [0, 3423, 3428], [0, 3430, 3440], [0, 3450, 3456], [0, 3458, 3460], [0, 3461, 3479], [0, 3482, 3506], [0, 3507, 3516], [0, 3517, 3518], [0, 3520, 3527], [0, 3530, 3531], [0, 3535, 3541], [0, 3542, 3543], [0, 3544, 3552], [0, 3558, 3568], [0, 3570, 3572], [0, 3585, 3643], [0, 3648, 3663], [0, 3664, 3674], [0, 3713, 3715], [0, 3716, 3717], [0, 3718, 3723], [0, 3724, 3748], [0, 3749, 3750], [0, 3751, 3774], [0, 3776, 3781], [0, 3782, 3783], [0, 3784, 3790], [0, 3792, 3802], [0, 3804, 3808], [0, 3840, 3841], [0, 3864, 3866], [0, 3872, 3882], [0, 3893, 3894], [0, 3895, 3896], [0, 3897, 3898], [0, 3902, 3912], [0, 3913, 3949], [0, 3953, 3973], [0, 3974, 3992], [0, 3993, 4029], [0, 4038, 4039], [0, NF, 4170], [0, 4176, 4254], [0, 4256, 4294], [0, 4295, 4296], [0, 4301, 4302], [0, 4304, 4347], [0, 4348, 4681], [0, 4682, 4686], [0, 4688, 4695], [0, 4696, 4697], [0, 4698, 4702], [0, 4704, 4745], [0, 4746, 4750], [0, 4752, 4785], [0, 4786, 4790], [0, 4792, 4799], [0, 4800, 4801], [0, 4802, 4806], [0, 4808, 4823], [0, 4824, 4881], [0, 4882, 4886], [0, 4888, 4955], [0, 4957, 4960], [0, 4969, 4978], [0, 4992, 5008], [0, 5024, 5110], [0, 5112, 5118], [0, 5121, 5741], [0, 5743, nC], [0, 5761, 5787], [0, 5792, 5867], [0, 5870, 5881], [0, 5888, 5901], [0, 5902, 5909], [0, 5920, 5941], [0, 5952, 5972], [0, 5984, 5997], [0, 5998, 6001], [0, 6002, 6004], [0, 6016, 6100], [0, 6103, 6104], [0, 6108, 6110], [0, 6112, 6122], [0, 6155, 6158], [0, 6160, 6170], [0, 6176, 6265], [0, 6272, 6315], [0, 6320, 6390], [0, 6400, 6431], [0, 6432, 6444], [0, 6448, 6460], [0, 6470, 6510], [0, 6512, 6517], [0, 6528, 6572], [0, 6576, 6602], [0, 6608, 6619], [0, 6656, 6684], [0, 6688, 6751], [0, 6752, 6781], [0, 6783, 6794], [0, 6800, 6810], [0, 6823, 6824], [0, 6832, 6846], [0, 6912, 6988], [0, 6992, 7002], [0, 7019, 7028], [0, 7040, 7156], [0, 7168, 7224], [0, 7232, 7242], [0, 7245, 7294], [0, 7296, 7305], [0, 7312, 7355], [0, 7357, 7360], [0, 7376, 7379], [0, 7380, 7419], [0, 7424, 7674], [0, 7675, 7958], [0, 7960, 7966], [0, 7968, 8006], [0, 8008, 8014], [0, 8016, 8024], [0, 8025, 8026], [0, 8027, 8028], [0, 8029, 8030], [0, 8031, 8062], [0, 8064, 8117], [0, 8118, 8125], [0, 8126, 8127], [0, 8130, 8133], [0, 8134, 8141], [0, 8144, 8148], [0, 8150, 8156], [0, 8160, 8173], [0, 8178, 8181], [0, 8182, 8189], [0, tR, NM], [0, 8255, 8257], [0, 8276, 8277], [0, F8, 8306], [0, f8, 8320], [0, 8336, 8349], [0, 8400, 8413], [0, 8417, 8418], [0, 8421, 8433], [0, dm2, 8451], [0, Gm2, 8456], [0, 8458, tk], [0, dk, 8470], [0, sM, 8478], [0, _8, Jm2], [0, th, gk], [0, Ik, Hm2], [0, 8490, 8506], [0, 8508, 8512], [0, 8517, 8522], [0, Lk, 8527], [0, 8544, 8585], [0, 11264, 11311], [0, 11312, 11359], [0, 11360, 11493], [0, 11499, 11508], [0, 11520, om2], [0, gp2, 11560], [0, Fm2, 11566], [0, 11568, 11624], [0, u82, 11632], [0, ak, 11671], [0, 11680, lm2], [0, 11688, km2], [0, 11696, bp2], [0, 11704, Uk], [0, 11712, z8], [0, 11720, Ip2], [0, 11728, sh], [0, 11736, 11743], [0, 11744, 11776], [0, 12293, 12296], [0, 12321, uh], [0, 12337, 12342], [0, 12344, 12349], [0, 12353, 12439], [0, 12441, X8], [0, 12449, _h], [0, 12540, 12544], [0, 12549, Ym2], [0, 12593, 12687], [0, 12704, 12731], [0, 12784, 12800], [0, 13312, 19894], [0, 19968, 40944], [0, 40960, 42125], [0, 42192, 42238], [0, 42240, 42509], [0, 42512, 42540], [0, 42560, 42608], [0, 42612, ek], [0, 42623, 42738], [0, 42775, 42784], [0, 42786, 42889], [0, 42891, 42944], [0, 42946, 42951], [0, l8, 43048], [0, 43072, 43124], [0, 43136, 43206], [0, 43216, 43226], [0, 43232, 43256], [0, $k, Yk], [0, 43261, 43310], [0, 43312, 43348], [0, 43360, 43389], [0, 43392, 43457], [0, W8, 43482], [0, 43488, Bp2], [0, aF, 43575], [0, 43584, 43598], [0, 43600, 43610], [0, 43616, 43639], [0, fm2, 43715], [0, 43739, 43742], [0, 43744, 43760], [0, 43762, 43767], [0, 43777, 43783], [0, 43785, 43791], [0, 43793, 43799], [0, 43808, wm2], [0, 43816, p8], [0, 43824, Q8], [0, 43868, Np2], [0, 43888, 44011], [0, 44012, 44014], [0, 44016, 44026], [0, 44032, 55204], [0, 55216, 55239], [0, 55243, 55292], [0, 63744, 64110], [0, 64112, 64218], [0, 64256, 64263], [0, 64275, 64280], [0, Wk, qp2], [0, 64298, b8], [0, 64312, ym2], [0, Qk, pk], [0, 64320, ih], [0, 64323, Th], [0, 64326, 64434], [0, 64467, 64830], [0, 64848, 64912], [0, 64914, 64968], [0, 65008, 65020], [0, 65024, 65040], [0, 65056, 65072], [0, 65075, 65077], [0, 65101, 65104], [0, 65136, $m2], [0, 65142, 65277], [0, 65296, 65306], [0, 65313, 65339], [0, 65343, pm2], [0, 65345, 65371], [0, 65382, 65471], [0, 65474, 65480], [0, 65482, 65488], [0, 65490, 65496], [0, 65498, 65501], [0, Y6, lh], [0, 65549, Z8], [0, 65576, Ek], [0, 65596, Ak], [0, 65599, 65614], [0, 65616, 65630], [0, 65664, 65787], [0, 65856, 65909], [0, 66045, 66046], [0, 66176, 66205], [0, 66208, 66257], [0, 66272, 66273], [0, 66304, 66336], [0, 66349, 66379], [0, 66384, 66427], [0, 66432, 66462], [0, 66464, 66500], [0, 66504, ah], [0, 66513, 66518], [0, 66560, 66718], [0, 66720, 66730], [0, 66736, 66772], [0, 66776, 66812], [0, 66816, 66856], [0, 66864, 66916], [0, 67072, 67383], [0, 67392, 67414], [0, 67424, 67432], [0, 67584, 67590], [0, vk, x8], [0, 67594, oh], [0, 67639, 67641], [0, $8, 67645], [0, 67647, 67670], [0, 67680, 67703], [0, 67712, 67743], [0, 67808, Hp2], [0, 67828, 67830], [0, 67840, 67862], [0, 67872, 67898], [0, 67968, 68024], [0, 68030, 68032], [0, ph, 68100], [0, 68101, 68103], [0, 68108, Xk], [0, 68117, V8], [0, 68121, 68150], [0, 68152, 68155], [0, 68159, 68160], [0, 68192, 68221], [0, 68224, 68253], [0, 68288, D8], [0, 68297, 68327], [0, 68352, 68406], [0, 68416, 68438], [0, 68448, 68467], [0, 68480, 68498], [0, 68608, 68681], [0, 68736, 68787], [0, 68800, 68851], [0, 68864, 68904], [0, 68912, 68922], [0, 69376, 69405], [0, qm2, 69416], [0, 69424, 69457], [0, 69600, 69623], [0, 69632, 69703], [0, 69734, nh], [0, 69759, 69819], [0, 69840, 69865], [0, 69872, 69882], [0, 69888, 69941], [0, 69942, 69952], [0, Up2, Dk], [0, 69968, 70004], [0, Km2, 70007], [0, 70016, 70085], [0, 70089, 70093], [0, 70096, Om2], [0, o8, 70109], [0, 70144, Nm2], [0, 70163, 70200], [0, 70206, 70207], [0, 70272, Pm2], [0, S8, Fk], [0, 70282, Cm2], [0, 70287, mm2], [0, 70303, 70313], [0, 70320, 70379], [0, 70384, 70394], [0, 70400, jp2], [0, 70405, 70413], [0, 70415, 70417], [0, 70419, Vm2], [0, 70442, Y8], [0, 70450, cm2], [0, 70453, 70458], [0, 70459, 70469], [0, 70471, 70473], [0, 70475, 70478], [0, Yp2, 70481], [0, 70487, 70488], [0, 70493, 70500], [0, 70502, 70509], [0, 70512, 70517], [0, 70656, 70731], [0, 70736, 70746], [0, uk, 70752], [0, 70784, Um2], [0, i8, 70856], [0, 70864, 70874], [0, 71040, 71094], [0, 71096, 71105], [0, 71128, 71134], [0, 71168, 71233], [0, a8, 71237], [0, 71248, 71258], [0, 71296, 71353], [0, 71360, 71370], [0, 71424, 71451], [0, 71453, 71468], [0, 71472, 71482], [0, 71680, 71739], [0, 71840, 71914], [0, 71935, 71936], [0, 72096, 72104], [0, 72106, 72152], [0, 72154, R8], [0, Xm2, 72165], [0, t82, 72255], [0, 72263, 72264], [0, qk, 72346], [0, k8, 72350], [0, 72384, 72441], [0, 72704, zm2], [0, 72714, 72759], [0, 72760, 72769], [0, 72784, 72794], [0, 72818, 72848], [0, 72850, 72872], [0, 72873, 72887], [0, 72960, d8], [0, 72968, ch], [0, 72971, 73015], [0, 73018, 73019], [0, 73020, 73022], [0, 73023, 73032], [0, 73040, 73050], [0, 73056, E8], [0, 73063, bm2], [0, 73066, 73103], [0, 73104, 73106], [0, 73107, 73113], [0, 73120, 73130], [0, 73440, 73463], [0, 73728, 74650], [0, 74752, 74863], [0, 74880, 75076], [0, 77824, 78895], [0, 82944, 83527], [0, 92160, 92729], [0, 92736, 92767], [0, 92768, 92778], [0, 92880, 92910], [0, 92912, 92917], [0, 92928, 92983], [0, 92992, 92996], [0, 93008, 93018], [0, 93027, 93048], [0, 93053, 93072], [0, 93760, 93824], [0, 93952, 94027], [0, gm2, 94088], [0, 94095, 94112], [0, 94176, mk], [0, Op2, 94180], [0, 94208, 100344], [0, 100352, 101107], [0, 110592, 110879], [0, 110928, 110931], [0, 110948, 110952], [0, 110960, 111356], [0, 113664, 113771], [0, 113776, 113789], [0, 113792, 113801], [0, 113808, 113818], [0, 113821, 113823], [0, 119141, 119146], [0, 119149, 119155], [0, 119163, 119171], [0, 119173, 119180], [0, 119210, 119214], [0, 119362, 119365], [0, 119808, Fp2], [0, 119894, jk], [0, 119966, 119968], [0, r8, 119971], [0, 119973, 119975], [0, 119977, Ah], [0, 119982, Sm2], [0, M8, xm2], [0, 119997, c8], [0, 120005, bh], [0, 120071, 120075], [0, 120077, sk], [0, 120086, Im2], [0, 120094, Xp2], [0, 120123, H8], [0, 120128, n8], [0, Jk, 120135], [0, 120138, eh], [0, 120146, 120486], [0, 120488, yk], [0, 120514, T8], [0, 120540, wh], [0, 120572, Rk], [0, 120598, C8], [0, 120630, Zp2], [0, 120656, w8], [0, 120688, zp2], [0, 120714, Cp2], [0, 120746, Nk], [0, 120772, 120780], [0, 120782, 120832], [0, 121344, 121399], [0, 121403, 121453], [0, 121461, 121462], [0, 121476, 121477], [0, 121499, 121504], [0, 121505, 121520], [0, 122880, 122887], [0, 122888, 122905], [0, 122907, 122914], [0, 122915, 122917], [0, 122918, 122923], [0, 123136, 123181], [0, 123184, 123198], [0, 123200, 123210], [0, Sp2, 123215], [0, 123584, 123642], [0, 124928, 125125], [0, 125136, 125143], [0, 125184, 125260], [0, 125264, 125274], [0, 126464, xk], [0, 126469, hm2], [0, 126497, yh], [0, Pp2, 126501], [0, Mm2, J8], [0, 126505, Ep2], [0, 126516, N8], [0, kh, tm2], [0, Vp2, 126524], [0, fh, 126531], [0, Eh, Qp2], [0, hh, vm2], [0, vh, Mp2], [0, 126541, Mk], [0, 126545, xh], [0, Dm2, 126549], [0, j8, $p2], [0, Zk, y8], [0, am2, rh], [0, ok, Jp2], [0, q8, Sk], [0, 126561, Wp2], [0, Zm2, 126565], [0, 126567, Rp2], [0, 126572, nk], [0, 126580, A8], [0, 126585, Vk], [0, O8, Bm2], [0, 126592, Kp2], [0, 126603, 126620], [0, 126625, P8], [0, 126629, m8], [0, 126635, 126652], [0, 131072, 173783], [0, 173824, 177973], [0, 177984, 178206], [0, 178208, 183970], [0, 183984, 191457], [0, 194560, 195102], [0, 917760, 918000]], er0 = [0, 1, 0], tr0 = [0, 0, [0, 1, 0], [0, 1, 0]], nr0 = sL, ur0 = "end of input", ir0 = U62, fr0 = "template literal part", cr0 = U62, sr0 = nD2, ar0 = sL, or0 = U62, vr0 = H32, lr0 = U62, pr0 = $v, kr0 = U62, mr0 = K32, hr0 = "an", dr0 = St7, yr0 = Nu2, _r0 = [0, [11, "token `", [2, 0, [12, 96, 0]]], "token `%s`"], wr0 = "{", gr0 = em2, br0 = "{|", Tr0 = "|}", Er0 = PM, Sr0 = iM, Ar0 = "[", Ir0 = "]", Pr0 = NT, Cr0 = JL, Nr0 = ln5, Or0 = "=>", jr0 = "...", Dr0 = _D, Rr0 = DM, Fr0 = $32, Mr0 = nm2, Lr0 = bo3, qr0 = I6, Br0 = Je6, Ur0 = Ve6, Xr0 = $P, Gr0 = DT, Yr0 = Bv, zr0 = He6, Jr0 = um2, Kr0 = g6, Hr0 = Tp2, Wr0 = L8, Vr0 = No3, $r0 = cl2, Qr0 = Hv, Zr0 = wa2, x10 = Pa2, r10 = We6, e10 = rk, t102 = Rm2, n10 = Xe6, u10 = Fv, i10 = Tk, f10 = U8, c10 = K8, s10 = h6, a10 = mc2, o10 = Ue5, v10 = Ck, l10 = Yv, p10 = E6, k10 = Aa2, m10 = ga, h10 = j6, d10 = dh, y10 = W22, _10 = fl3, w10 = Oo2, g10 = ae5, b10 = Pk, T10 = Q62, E10 = k6, S10 = W62, A10 = H22, I10 = Ke6, P10 = x42, C10 = tc2, N10 = zb, O10 = JS, j10 = Io3, D10 = Kv, R10 = "%checks", F10 = TR, M10 = hL, L10 = GD, q10 = bF, B10 = vM, U10 = yo3, X10 = qD, G10 = PF, Y10 = IR, z10 = RR, J10 = YD, K10 = kM, H10 = fF, W10 = $L, V10 = eF, $10 = p_, Q10 = "?.", Z10 = Dw, x20 = uM, r20 = Iv, e20 = LF, t202 = CM, n20 = wR, u20 = _k, i20 = Qm2, f20 = GM, c20 = $F, s20 = SF, a20 = OD, o20 = QL, v20 = WD, l20 = Qy, p20 = F62, k20 = YF, m20 = CF, h20 = yD2, d20 = $7, y20 = ze6, _20 = se7, w20 = _R, g20 = pF, b20 = HL, T20 = SD, E20 = VL, S20 = ZM, A20 = kR, I20 = rx, P20 = ik, C20 = wk, N20 = be6, O20 = H32, j20 = $v, D20 = K32, R20 = ga, F20 = H62, M20 = hk, L20 = bk, q20 = Hk, B20 = Lm2, U20 = Xv, X20 = FD2, G20 = J62, Y20 = tl2, z20 = V32, J20 = jF, K20 = uF, H20 = m6, W20 = m6, V20 = gL, $20 = m6, Q20 = m6, Z20 = em2, xe0 = em2, re0 = gL, ee0 = se7, te0 = se7, ne0 = O6, ue0 = rm2, ie0 = "T_LCURLY", fe0 = "T_RCURLY", ce0 = "T_LCURLYBAR", se0 = "T_RCURLYBAR", ae0 = "T_LPAREN", oe0 = "T_RPAREN", ve0 = "T_LBRACKET", le0 = "T_RBRACKET", pe0 = "T_SEMICOLON", ke0 = "T_COMMA", me0 = "T_PERIOD", he0 = "T_ARROW", de0 = "T_ELLIPSIS", ye0 = "T_AT", _e0 = "T_POUND", we0 = "T_FUNCTION", ge0 = "T_IF", be0 = "T_IN", Te0 = "T_INSTANCEOF", Ee0 = "T_RETURN", Se0 = "T_SWITCH", Ae0 = "T_MATCH", Ie0 = "T_RECORD", Pe0 = "T_THIS", Ce0 = "T_THROW", Ne0 = "T_TRY", Oe0 = "T_VAR", je0 = "T_WHILE", De0 = "T_WITH", Re0 = "T_CONST", Fe0 = "T_LET", Me0 = "T_NULL", Le0 = "T_FALSE", qe0 = "T_TRUE", Be0 = "T_BREAK", Ue0 = "T_CASE", Xe0 = "T_CATCH", Ge0 = "T_CONTINUE", Ye0 = "T_DEFAULT", ze0 = "T_DO", Je0 = "T_FINALLY", Ke0 = "T_FOR", He0 = "T_CLASS", We0 = "T_EXTENDS", Ve0 = "T_STATIC", $e0 = "T_ELSE", Qe0 = "T_NEW", Ze0 = "T_DELETE", xt0 = "T_TYPEOF", rt0 = "T_VOID", et0 = "T_ENUM", tt0 = "T_EXPORT", nt0 = "T_IMPORT", ut0 = "T_SUPER", it0 = "T_IMPLEMENTS", ft0 = "T_INTERFACE", ct0 = "T_PACKAGE", st0 = "T_PRIVATE", at0 = "T_PROTECTED", ot0 = "T_PUBLIC", vt0 = "T_YIELD", lt0 = "T_DEBUGGER", pt0 = "T_DECLARE", kt0 = "T_TYPE", mt0 = "T_OPAQUE", ht0 = "T_OF", dt0 = "T_ASYNC", yt0 = "T_AWAIT", _t0 = "T_CHECKS", wt0 = "T_RSHIFT3_ASSIGN", gt0 = "T_RSHIFT_ASSIGN", bt0 = "T_LSHIFT_ASSIGN", Tt0 = "T_BIT_XOR_ASSIGN", Et0 = "T_BIT_OR_ASSIGN", St0 = "T_BIT_AND_ASSIGN", At0 = "T_MOD_ASSIGN", It0 = "T_DIV_ASSIGN", Pt0 = "T_MULT_ASSIGN", Ct0 = "T_EXP_ASSIGN", Nt0 = "T_MINUS_ASSIGN", Ot0 = "T_PLUS_ASSIGN", jt0 = "T_NULLISH_ASSIGN", Dt0 = "T_AND_ASSIGN", Rt0 = "T_OR_ASSIGN", Ft0 = "T_ASSIGN", Mt0 = "T_PLING_PERIOD", Lt0 = "T_PLING_PLING", qt0 = "T_PLING", Bt0 = "T_COLON", Ut0 = "T_OR", Xt0 = "T_AND", Gt0 = "T_BIT_OR", Yt0 = "T_BIT_XOR", zt0 = "T_BIT_AND", Jt0 = "T_EQUAL", Kt0 = "T_NOT_EQUAL", Ht0 = "T_STRICT_EQUAL", Wt0 = "T_STRICT_NOT_EQUAL", Vt0 = "T_LESS_THAN_EQUAL", $t0 = "T_GREATER_THAN_EQUAL", Qt0 = "T_LESS_THAN", Zt0 = "T_GREATER_THAN", xn0 = "T_LSHIFT", rn0 = "T_RSHIFT", en0 = "T_RSHIFT3", tn0 = "T_PLUS", nn0 = "T_MINUS", un0 = "T_DIV", in0 = "T_MULT", fn0 = "T_EXP", cn0 = "T_MOD", sn0 = "T_NOT", an0 = "T_BIT_NOT", on0 = "T_INCR", vn0 = "T_DECR", ln0 = "T_EOF", pn0 = "T_ANY_TYPE", kn0 = "T_MIXED_TYPE", mn0 = "T_EMPTY_TYPE", hn0 = "T_NUMBER_TYPE", dn0 = "T_BIGINT_TYPE", yn0 = "T_STRING_TYPE", _n0 = "T_VOID_TYPE", wn0 = "T_SYMBOL_TYPE", gn0 = "T_UNKNOWN_TYPE", bn0 = "T_NEVER_TYPE", Tn0 = "T_UNDEFINED_TYPE", En0 = "T_KEYOF", Sn0 = "T_READONLY", An0 = "T_INFER", In0 = "T_IS", Pn0 = "T_ASSERTS", Cn0 = "T_IMPLIES", Nn0 = KL, On0 = KL, jn0 = "T_NUMBER", Dn0 = "T_BIGINT", Rn0 = "T_STRING", Fn0 = "T_TEMPLATE_PART", Mn0 = "T_IDENTIFIER", Ln0 = "T_REGEXP", qn0 = "T_INTERPRETER", Bn0 = "T_ERROR", Un0 = "T_JSX_IDENTIFIER", Xn0 = XL, Gn0 = XL, Yn0 = "T_BOOLEAN_TYPE", zn0 = "T_NUMBER_SINGLETON_TYPE", Jn0 = "T_BIGINT_SINGLETON_TYPE", Kn0 = [0, BR, $S, 9], Hn0 = [0, BR, Hg, 9], Wn0 = wL, Vn0 = "*/", $n0 = wL, Qn0 = "unreachable line_comment", Zn0 = "unreachable string_quote", x70 = "\\", r70 = "unreachable template_part", e70 = `\r
|
|
109445
|
+
`, t70 = ug, n70 = "unreachable regexp_class", u70 = LD, i70 = "unreachable regexp_body", f70 = rx, c70 = rx, s70 = rx, a70 = rx, o70 = hR, v70 = "{'>'}", l70 = F62, p70 = "{'}'}", k70 = em2, m70 = Ao3, h70 = NT, d70 = Qm2, y70 = hR, _70 = Ao3, w70 = NT, g70 = Qm2, b70 = "unreachable type_token wholenumber", T70 = "unreachable type_token wholebigint", E70 = "unreachable type_token floatbigint", S70 = "unreachable type_token scinumber", A70 = "unreachable type_token scibigint", I70 = "unreachable type_token hexnumber", P70 = "unreachable type_token hexbigint", C70 = "unreachable type_token legacyoctnumber", N70 = "unreachable type_token octnumber", O70 = "unreachable type_token octbigint", j70 = "unreachable type_token binnumber", D70 = "unreachable type_token bigbigint", R70 = "unreachable type_token", F70 = yL, M70 = [11, 1], L70 = [11, 0], q70 = "unreachable template_tail", B70 = rx, U70 = rx, X70 = "unreachable jsx_child", G70 = "unreachable jsx_tag", Y70 = [0, hw], z70 = [0, 913], J70 = [0, Y32], K70 = [0, mh], H70 = [0, cR], W70 = [0, QP], V70 = [0, 8747], $70 = [0, gD], Q70 = [0, 916], Z70 = [0, 8225], xu0 = [0, 935], ru0 = [0, VI], eu0 = [0, 914], tu0 = [0, vL], nu0 = [0, IF], uu0 = [0, RE], iu0 = [0, 915], fu0 = [0, TD], cu0 = [0, 919], su0 = [0, 917], au0 = [0, _L], ou0 = [0, KD], vu0 = [0, HR], lu0 = [0, 924], pu0 = [0, 923], ku0 = [0, 922], mu0 = [0, oF], hu0 = [0, 921], du0 = [0, eM], yu0 = [0, Hg], _u0 = [0, xF], wu0 = [0, ty], gu0 = [0, 927], bu0 = [0, 937], Tu0 = [0, HD], Eu0 = [0, $R], Su0 = [0, uR], Au0 = [0, 338], Iu0 = [0, 352], Pu0 = [0, 929], Cu0 = [0, 936], Nu0 = [0, 8243], Ou0 = [0, 928], ju0 = [0, 934], Du0 = [0, qL], Ru0 = [0, o_], Fu0 = [0, 933], Mu0 = [0, pM], Lu0 = [0, nL], qu0 = [0, fD2], Bu0 = [0, 920], Uu0 = [0, 932], Xu0 = [0, jD], Gu0 = [0, dR], Yu0 = [0, KF], zu0 = [0, JR], Ju0 = [0, 918], Ku0 = [0, SR], Hu0 = [0, HF], Wu0 = [0, 926], Vu0 = [0, lF], $u0 = [0, jM], Qu0 = [0, 925], Zu0 = [0, 39], xi0 = [0, 8736], ri0 = [0, 8743], ei0 = [0, 38], ti0 = [0, 945], ni0 = [0, 8501], ui0 = [0, Sv], ii0 = [0, 8226], fi0 = [0, JD2], ci0 = [0, 946], si0 = [0, 8222], ai0 = [0, RD], oi0 = [0, wM], vi0 = [0, 8776], li0 = [0, qI], pi0 = [0, 8773], ki0 = [0, 9827], mi0 = [0, CD2], hi0 = [0, 967], di0 = [0, qM], yi0 = [0, Wm2], _i0 = [0, PD], wi0 = [0, GF], gi0 = [0, 8595], bi0 = [0, 8224], Ti0 = [0, 8659], Ei0 = [0, sR], Si0 = [0, 8746], Ai0 = [0, 8629], Ii0 = [0, yR], Pi0 = [0, 8745], Ci0 = [0, 8195], Ni0 = [0, 8709], Oi0 = [0, iD2], ji0 = [0, dL], Di0 = [0, aL], Ri0 = [0, Gp2], Fi0 = [0, 9830], Mi0 = [0, 8707], Li0 = [0, 8364], qi0 = [0, EM], Bi0 = [0, rl2], Ui0 = [0, 951], Xi0 = [0, 8801], Gi0 = [0, 949], Yi0 = [0, 8194], zi0 = [0, 8805], Ji0 = [0, 947], Ki0 = [0, 8260], Hi0 = [0, jE], Wi0 = [0, nR], Vi0 = [0, $S], $i0 = [0, 8704], Qi0 = [0, XF], Zi0 = [0, EL], xf0 = [0, 8230], rf0 = [0, 9829], ef0 = [0, 8596], tf0 = [0, 8660], nf0 = [0, 62], uf0 = [0, 402], if0 = [0, 948], ff0 = [0, nF], cf0 = [0, E9], sf0 = [0, 8712], af0 = [0, sP], of0 = [0, 953], vf0 = [0, 8734], lf0 = [0, 8465], pf0 = [0, IM], kf0 = [0, 8220], mf0 = [0, 8968], hf0 = [0, 8592], df0 = [0, Sg], yf0 = [0, 10216], _f0 = [0, 955], wf0 = [0, 8656], gf0 = [0, 954], bf0 = [0, 60], Tf0 = [0, 8216], Ef0 = [0, 8249], Sf0 = [0, NM], Af0 = [0, 9674], If0 = [0, 8727], Pf0 = [0, 8970], Cf0 = [0, AL], Nf0 = [0, 8711], Of0 = [0, 956], jf0 = [0, 8722], Df0 = [0, j_], Rf0 = [0, NS], Ff0 = [0, 8212], Mf0 = [0, NR], Lf0 = [0, 8804], qf0 = [0, 957], Bf0 = [0, kF], Uf0 = [0, 8836], Xf0 = [0, 8713], Gf0 = [0, KR], Yf0 = [0, 8715], zf0 = [0, 8800], Jf0 = [0, 8853], Kf0 = [0, 959], Hf0 = [0, 969], Wf0 = [0, 8254], Vf0 = [0, HM], $f0 = [0, 339], Qf0 = [0, jv], Zf0 = [0, BM], xc0 = [0, s9], rc0 = [0, ul2], ec0 = [0, 8855], tc0 = [0, ME], nc0 = [0, t1], uc0 = [0, xI], ic0 = [0, py], fc0 = [0, da3], cc0 = [0, rL], sc0 = [0, 982], ac0 = [0, 960], oc0 = [0, 966], vc0 = [0, 8869], lc0 = [0, 8240], pc0 = [0, 8706], kc0 = [0, 8744], mc0 = [0, 8211], hc0 = [0, 10217], dc0 = [0, 8730], yc0 = [0, 8658], _c0 = [0, 34], wc0 = [0, 968], gc0 = [0, 8733], bc0 = [0, 8719], Tc0 = [0, 961], Ec0 = [0, 8971], Sc0 = [0, LL], Ac0 = [0, 8476], Ic0 = [0, 8221], Pc0 = [0, 8969], Cc0 = [0, 8594], Nc0 = [0, z_], Oc0 = [0, bM], jc0 = [0, Sb], Dc0 = [0, 8901], Rc0 = [0, 353], Fc0 = [0, 8218], Mc0 = [0, 8217], Lc0 = [0, 8250], qc0 = [0, 8835], Bc0 = [0, 8721], Uc0 = [0, 8838], Xc0 = [0, 8834], Gc0 = [0, 9824], Yc0 = [0, 8764], zc0 = [0, 962], Jc0 = [0, 963], Kc0 = [0, 8207], Hc0 = [0, 952], Wc0 = [0, 8756], Vc0 = [0, 964], $c0 = [0, e8], Qc0 = [0, 8839], Zc0 = [0, AC], xs0 = [0, fk], rs0 = [0, ol3], es0 = [0, 8657], ts0 = [0, 8482], ns0 = [0, lk], us0 = [0, 732], is0 = [0, Q32], fs0 = [0, 8201], cs0 = [0, 977], ss0 = [0, sM], as0 = [0, xl2], os0 = [0, 965], vs0 = [0, 978], ls0 = [0, IL], ps0 = [0, jS], ks0 = [0, WL], ms0 = [0, tR], hs0 = [0, 8205], ds0 = [0, 950], ys0 = [0, Bk], _s0 = [0, hF], ws0 = [0, QE], gs0 = [0, 958], bs0 = [0, 8593], Ts0 = [0, oD2], Es0 = [0, 8242], Ss0 = [0, kI], As0 = "unreachable regexp", Is0 = "unreachable token wholenumber", Ps0 = "unreachable token wholebigint", Cs0 = "unreachable token floatbigint", Ns0 = "unreachable token scinumber", Os0 = "unreachable token scibigint", js0 = "unreachable token hexnumber", Ds0 = "unreachable token hexbigint", Rs0 = "unreachable token legacyoctnumber", Fs0 = "unreachable token legacynonoctnumber", Ms0 = "unreachable token octnumber", Ls0 = "unreachable token octbigint", qs0 = "unreachable token bignumber", Bs0 = "unreachable token bigint", Us0 = "unreachable token", Xs0 = yL, Gs0 = [7, "#!"], Ys0 = "expected ?", zs0 = "unreachable string_escape", Js0 = V22, Ks0 = P6, Hs0 = P6, Ws0 = V22, Vs0 = KP, $s0 = EF, Qs0 = "n", Zs0 = "r", xa0 = "t", ra0 = zF, ea0 = P6, ta0 = Ao3, na0 = Ao3, ua0 = "unreachable id_char", ia0 = Ao3, fa0 = Ao3, ca0 = P6, sa0 = uL, aa0 = pD2, oa0 = gb, va0 = [28, "token ILLEGAL"], la0 = [0, [11, "the identifier `", [2, 0, [12, 96, 0]]], "the identifier `%s`"], pa0 = [0, 1], ka0 = [0, 1], ma0 = OF, ha0 = OF, da0 = [0, [11, "an identifier. When exporting a ", [2, 0, [11, " as a named export, you must specify a ", [2, 0, [11, " name. Did you mean `export default ", [2, 0, [11, " ...`?", 0]]]]]]], "an identifier. When exporting a %s as a named export, you must specify a %s name. Did you mean `export default %s ...`?"], ya0 = Sh, _a0 = "Peeking current location when not available", wa0 = [0, "src/parser/parser_env.ml", SR, 9], ga0 = "Internal Error: Tried to add_declared_private with outside of class scope.", ba0 = "Internal Error: `exit_class` called before a matching `enter_class`", Ta0 = rx, Ea0 = [0, 0, 0], Sa0 = [0, 0, 0], Aa0 = "Parser_env.Try.Rollback", Ia0 = rx, Pa0 = rx, Ca0 = [0, H22, of, $i6, CR, TM, V7, $22, qf, h7, pc3, bc2, Rf2, Gi6, Du2, Fi6, hu2, F7, d7, Qu2, Uf, J72, ui7, cf, X7, Zn4, Zf, _u2, vu2, $n3, ac2, Ps6, oc2, _f2, Sf, Es4, Uc2, jc2, Q7, He6, t72, Wi6, s7, Qc2, Bi6, ic2, rs5, Ve6, Jc2, Uu2, fu2, k7, ss5, ii6, lu2, T7, Je6, ci6, w7, Of, qu2, fc2, Ku2, pi6, q7, a7, If2, _7, fs11, Ge7, Lf, Pi6, Zu2, M7, pu2, xf2, af, P7, $f2, au2, Fc2, Zi6, m7, Bn3, jf, Fu2, Y7, bi6, $c2, Ai6, Eu2, ge6, es5, x7, rc2, Vu2, bs5, Wn3, e7, o7, Kf, Pc2, Vn3, r7, Xi6, Qf, kf2, Lu2, sf, Xn4, Vc2, zu2, ni6, Oi6, Hu2, $u2, si6, n7, Ii6, Zc2, Ui6, ys5, Gf, Kc2, Xu2, Mu2, Ei6, Cc2, wu2, Kn4, hs5, df, W7, Ki6, uc2, hf, Nf, uu2, du2, E7, ps5, L7, mf, gu2, Au2, Cu2, Yc2, su2, os5, N7, oi6, G1, g7, Hn4, Bc2, ai6, pf, ku2, xu2, Tf, Jf, ms5, Tc2, Dc2, z72, dc2, Bu2, zf, f7, D7, Z7, Xf, I7, ds5, fi6, Mi5, Di6, Rc2, zn4, Yu2, xi6, eu2, vf2, ae5, lc3, is5, cc2, Ou2, Df2, as5, Vi6, Gn4, W22, Ri6, U7, cs5, St7, Ni6, qc2, gs5, tu2, i7, vi6, Ru2, di6, Qi6, S7, kc2, _c2, ti6, cu2, gf, nc2, As5, Iu2, wf, Qn3, vs6, Ci6, hi6, Hi6, ws5, bf, v7, b7, Mf2, mi6, C7, Nc2, ts5, p7, t24, Un3, Mc2, yf, Is6, A7, Yn3, Yi6, Ac2, Yf, Xc2, Oc2, Ts4, O7, Hc2, Bf, wc2, Ec2, bu2, ju2, j7, be6, nf, Ju2, qn4, hc2, Ic2, wi6, Gc2, gi6, lf, yu2, zi6, ou2, xc2, us5, Ke6, Xe6, rf, ff, ri6, Wc2, ns5, K72, mu2, Vf, Sc2, _s5, Jn3, gc2, qi6, Hf, ru2, uf, aR, H7, vD, qF, yc2, Ef, ji6, y7, sc2, Wf, B7, ei6, Si6, yi5, Wu2, Ff, Gu2, Su2, Pf2, c7, li6, l7, Ji6, _i6, Cs4, We6, iu2, zc2, vn3, G7, R7, ki6, ls5, u7, Tu2, Pu2, Ti6, Lc2, tf, vc2, tn4, Af], Na0 = [0, ss5, fi6, _c2, Ni6, di6, Cs4, mf, si6, sf, z72, eu2, zc2, _u2, e7, Ve6, bs5, Mc2, W7, hf, Ff, Es4, Xi6, Z7, Ii6, lc3, I7, Ec2, O7, of, Fu2, tu2, Ku2, jc2, hi6, m7, pf, Ic2, Vf, gs5, wc2, ys5, St7, V7, Mf2, $f2, lf, Ji6, ti6, l7, f7, Ac2, Lf, vi6, Hi6, rs5, Vc2, U7, Au2, fu2, Kn4, Ou2, bu2, ai6, Ui6, Si6, ji6, es5, Af, pu2, Ki6, qi6, X7, Lu2, Zu2, ms5, Wf, o7, Ge7, r7, Qi6, x7, Gf, dc2, D7, qc2, G1, ff, $n3, Oc2, E7, Nf, Tc2, g7, kc2, su2, P7, tf, Gc2, Yn3, Mu2, a7, Eu2, vc2, j7, _i6, T7, $22, Pi6, ou2, d7, w7, Ri6, wu2, ki6, Ci6, Q7, Rc2, Wu2, Oi6, ic2, be6, v7, vu2, H22, Hn4, Uc2, zi6, xf2, Du2, $c2, xc2, Yc2, If2, ls5, Gi6, Ef, yu2, $u2, pc3, du2, Xf, Pu2, oc2, xi6, Cc2, Hc2, Nc2, Wn3, yf, Bc2, bi6, mi6, Uf, Ps6, Hf, qf, _f2, ii6, Qu2, Uu2, Rf2, B7, is5, ws5, y7, oi6, S7, ru2, bc2, H7, Hu2, xu2, Sc2, u7, Ei6, Pf2, yi5, Jn3, L7, ps5, Y7, Tf, gc2, Xu2, W22, Je6, F7, J72, Jc2, jf, He6, Ke6, n7, cs5, Vu2, p7, ds5, ge6, iu2, As5, Bf, cc2, sc2, Un3, cu2, Mi5, Ru2, hu2, Ts4, q7, fs11, fc2, Qn3, Vi6, uc2, qu2, Xc2, A7, ns5, ni6, lu2, Xn4, Df2, Pc2, Fc2, ac2, kf2, M7, Vn3, ui7, wi6, uu2, c7, gi6, G7, zn4, Bi6, ju2, Sf, i7, _7, Gn4, Qf, Su2, zu2, zf, ei6, Cu2, vf2, nf, Zf, tn4, h7, Ju2, li6, Zn4, qn4, Bu2, Di6, ri6, ku2, Zi6, Zc2, Yu2, C7, gu2, Jf, cf, s7, Tu2, df, K72, Bn3, Ti6, R7, t24, Ai6, uf, ts5, hs5, Iu2, wf, k7, Xe6, gf, _s5, af, Yi6, hc2, yc2, Wi6, Qc2, vs6, Is6, Fi6, bf, os5, rc2, vn3, as5, Gu2, Dc2, Kf, nc2, us5, pi6, ci6, Yf, We6, Lc2, ae5, N7, rf, $i6, mu2, Of, b7, Wc2, au2, t72, Kc2], Oa0 = [0, ss5, fi6, _c2, Ni6, di6, Cs4, mf, si6, sf, z72, eu2, zc2, _u2, e7, Ve6, bs5, Mc2, W7, hf, Ff, Es4, Xi6, Z7, Ii6, lc3, I7, Ec2, O7, of, Fu2, tu2, Ku2, jc2, hi6, m7, pf, Ic2, Vf, gs5, wc2, ys5, St7, V7, TM, Mf2, $f2, lf, Ji6, ti6, l7, f7, Ac2, Lf, vi6, Hi6, rs5, Vc2, U7, Au2, fu2, Kn4, Ou2, bu2, ai6, Ui6, Si6, ji6, es5, Af, pu2, Ki6, qi6, vD, X7, Lu2, Zu2, ms5, Wf, o7, Ge7, r7, Qi6, x7, Gf, dc2, D7, qc2, G1, ff, $n3, Oc2, E7, Nf, Tc2, g7, kc2, su2, P7, tf, Gc2, Yn3, Mu2, a7, Eu2, vc2, j7, _i6, T7, $22, Pi6, ou2, d7, w7, Ri6, wu2, ki6, Ci6, Q7, Rc2, Wu2, Oi6, ic2, be6, v7, vu2, H22, Hn4, Uc2, zi6, xf2, Du2, $c2, xc2, Yc2, If2, ls5, Gi6, Ef, yu2, $u2, pc3, du2, Xf, Pu2, oc2, xi6, Cc2, Hc2, Nc2, Wn3, yf, Bc2, bi6, mi6, Uf, Ps6, Hf, qf, _f2, ii6, Qu2, Uu2, Rf2, B7, is5, ws5, y7, oi6, S7, ru2, bc2, H7, Hu2, xu2, Sc2, u7, Ei6, Pf2, yi5, Jn3, L7, ps5, Y7, Tf, gc2, Xu2, W22, Je6, F7, J72, Jc2, jf, He6, Ke6, n7, cs5, Vu2, p7, ds5, ge6, iu2, As5, Bf, cc2, sc2, Un3, cu2, Mi5, Ru2, hu2, Ts4, q7, fs11, fc2, Qn3, Vi6, uc2, qu2, Xc2, A7, ns5, ni6, lu2, Xn4, Df2, Pc2, Fc2, ac2, kf2, M7, Vn3, ui7, wi6, uu2, c7, gi6, G7, zn4, qF, Bi6, ju2, Sf, i7, _7, Gn4, Qf, Su2, zu2, zf, ei6, Cu2, vf2, nf, Zf, aR, tn4, h7, Ju2, li6, Zn4, CR, qn4, Bu2, Di6, ri6, ku2, Zi6, Zc2, Yu2, C7, gu2, Jf, cf, s7, Tu2, df, K72, Bn3, Ti6, R7, t24, Ai6, uf, ts5, hs5, Iu2, wf, k7, Xe6, gf, _s5, af, Yi6, hc2, yc2, Wi6, Qc2, vs6, Is6, Fi6, bf, os5, rc2, vn3, as5, Gu2, Dc2, Kf, nc2, us5, pi6, ci6, Yf, We6, Lc2, ae5, N7, rf, $i6, mu2, Of, b7, Wc2, au2, t72, Kc2], ja0 = [0, H22, of, $i6, V7, $22, qf, h7, pc3, bc2, Rf2, Gi6, Du2, Fi6, hu2, F7, d7, Qu2, Uf, J72, ui7, cf, X7, Zn4, Zf, _u2, vu2, $n3, ac2, Ps6, oc2, _f2, Sf, Es4, Uc2, jc2, Q7, He6, t72, Wi6, s7, Qc2, Bi6, ic2, rs5, Ve6, Jc2, Uu2, fu2, k7, ss5, ii6, lu2, T7, Je6, ci6, w7, Of, qu2, fc2, Ku2, pi6, q7, a7, If2, _7, fs11, Ge7, Lf, Pi6, Zu2, M7, pu2, xf2, af, P7, $f2, au2, Fc2, Zi6, m7, Bn3, jf, Fu2, Y7, bi6, $c2, Ai6, Eu2, ge6, es5, x7, rc2, Vu2, bs5, Wn3, e7, o7, Kf, Pc2, Vn3, r7, Xi6, Qf, kf2, Lu2, sf, Xn4, Vc2, zu2, ni6, Oi6, Hu2, $u2, si6, n7, Ii6, Zc2, Ui6, ys5, Gf, Kc2, Xu2, Mu2, Ei6, Cc2, wu2, Kn4, hs5, df, W7, Ki6, uc2, hf, Nf, uu2, du2, E7, ps5, L7, mf, gu2, Au2, Cu2, Yc2, su2, os5, N7, oi6, G1, g7, Hn4, Bc2, ai6, pf, ku2, xu2, Tf, Jf, ms5, Tc2, Dc2, z72, dc2, Bu2, zf, f7, D7, Z7, Xf, I7, ds5, fi6, Mi5, Di6, Rc2, zn4, Yu2, xi6, eu2, vf2, ae5, lc3, is5, cc2, Ou2, Df2, as5, Vi6, Gn4, W22, Ri6, U7, cs5, St7, Ni6, qc2, gs5, tu2, i7, vi6, Ru2, di6, Qi6, S7, kc2, _c2, ti6, cu2, gf, nc2, As5, Iu2, wf, Qn3, vs6, Ci6, hi6, Hi6, ws5, bf, v7, b7, Mf2, mi6, C7, Nc2, ts5, p7, t24, Un3, Mc2, yf, Is6, A7, Yn3, Yi6, Ac2, Yf, Xc2, Oc2, Ts4, O7, Hc2, Bf, wc2, Ec2, bu2, ju2, j7, be6, nf, Ju2, qn4, hc2, Ic2, wi6, Gc2, gi6, lf, yu2, zi6, ou2, xc2, us5, Ke6, Xe6, rf, ff, ri6, Wc2, ns5, K72, mu2, Vf, Sc2, _s5, Jn3, gc2, qi6, Hf, ru2, uf, H7, yc2, Ef, ji6, y7, sc2, Wf, B7, ei6, Si6, yi5, Wu2, Ff, Gu2, Su2, Pf2, c7, li6, l7, Ji6, _i6, Cs4, We6, iu2, zc2, vn3, G7, R7, ki6, ls5, u7, Tu2, Pu2, Ti6, Lc2, tf, vc2, tn4, Af], Da0 = $32, Ra0 = nm2, Fa0 = bo3, Ma0 = I6, La0 = Je6, qa0 = Ve6, Ba0 = $P, Ua0 = DT, Xa0 = Bv, Ga0 = He6, Ya0 = um2, za0 = g6, Ja0 = Tp2, Ka0 = L8, Ha0 = No3, Wa0 = cl2, Va0 = Hv, $a0 = wa2, Qa0 = Pa2, Za0 = We6, xo0 = rk, ro0 = Rm2, eo0 = Xe6, to0 = Fv, no0 = Tk, uo0 = U8, io0 = K8, fo0 = h6, co0 = mc2, so0 = Ue5, ao0 = Ck, oo0 = Yv, vo0 = E6, lo0 = Aa2, po0 = ga, ko0 = j6, mo0 = dh, ho0 = W22, do0 = fl3, yo0 = Oo2, _o0 = ae5, wo0 = Pk, go0 = Q62, bo0 = k6, To0 = W62, Eo0 = H22, So0 = Ke6, Ao0 = x42, Io0 = tc2, Po0 = zb, Co0 = JS, No0 = Io3, Oo0 = Kv, jo0 = ik, Do0 = wk, Ro0 = be6, Fo0 = H32, Mo0 = $v, Lo0 = K32, qo0 = ga, Bo0 = H62, Uo0 = hk, Xo0 = bk, Go0 = Hk, Yo0 = Lm2, zo0 = Xv, Jo0 = J62, Ko0 = tl2, Ho0 = V32, Wo0 = O6, Vo0 = rm2, $o0 = [0, Sh], Qo0 = rx, Zo0 = [19, 1], xv0 = [19, 0], rv0 = [0, 0], ev0 = Ta2, tv0 = [0, 0], nv0 = [0, "a type"], uv0 = [0, 0], iv0 = [0, "a number literal type"], fv0 = [0, 0], cv0 = J62, sv0 = tl2, av0 = V32, ov0 = "You should only call render_type after making sure the next token is a renders variant", vv0 = [0, [0, 0, 0, 0, 0]], lv0 = [0, 0, 0, 0], pv0 = [0, 1], kv0 = [0, il3, 1466, 6], mv0 = [0, il3, 1469, 6], hv0 = [0, il3, 1572, 8], dv0 = [0, 1], yv0 = [0, il3, 1589, 8], _v0 = "Can not have both `static` and `proto`", wv0 = Ue5, gv0 = rw, bv0 = [0, 0], Tv0 = [0, "the end of a tuple type (no trailing comma is allowed in inexact tuple type)."], Ev0 = [0, il3, Sv, 15], Sv0 = [0, il3, sP, 15], Av0 = ze6, Iv0 = ze6, Pv0 = Kk, Cv0 = G6, Nv0 = [0, [11, "Failure while looking up ", [2, 0, [11, ". Index: ", [4, 0, 0, 0, [11, ". Length: ", [4, 0, 0, 0, [12, 46, 0]]]]]]], "Failure while looking up %s. Index: %d. Length: %d."], Ov0 = [0, 0, 0, 0], jv0 = "Offset_utils.Offset_lookup_failed", Dv0 = m1, Rv0 = kD, Fv0 = G6, Mv0 = Kk, Lv0 = wD, qv0 = G6, Bv0 = Kk, Uv0 = vR, Xv0 = Yx, Gv0 = "normal", Yv0 = tc2, zv0 = "jsxTag", Jv0 = "jsxChild", Kv0 = "template", Hv0 = nD2, Wv0 = "context", Vv0 = tc2, $v0 = [6, 0], Qv0 = [0, 0], Zv0 = [0, 1], x30 = [0, 4], r30 = [0, 2], e30 = [0, 3], t30 = [0, 0], n30 = ze6, u30 = [0, 0, 0, 0, 0, 0], i30 = [0, 0], f30 = [0, OM], c30 = [0, 1], s30 = [0, 0], a30 = Ta2, o30 = [0, 73], v30 = [0, 84], l30 = aM, p30 = rE, k30 = "exports", m30 = K62, h30 = [0, rx, rx, 0], d30 = [0, AD], y30 = [0, 84], _30 = [0, "a declaration, statement or export specifiers"], w30 = [0, 1], g30 = [0, I9, 1971, 21], b30 = [0, "the keyword `as`"], T30 = [0, 29], E30 = [0, 29], S30 = [0, 0], A30 = [0, 1], I30 = [0, AD], P30 = [0, "the keyword `from`"], C30 = [0, rx, rx, 0], N30 = "Label", O30 = [0, OM], j30 = [0, 0, 0], D30 = [0, 38], R30 = [0, I9, 372, 22], F30 = [0, 37], M30 = [0, I9, 391, 22], L30 = [0, 0], q30 = "the token `;`", B30 = [0, 0], U30 = [0, 0], X30 = FR, G30 = [0, Sh], Y30 = FR, z30 = [28, St7], J30 = Ta2, K30 = [0, 73], H30 = [0, rx, 0], W30 = It6, V30 = [0, rx, 0], $30 = [0, 73], Q30 = [0, 73], Z30 = $32, xl0 = [0, rx, 0], rl0 = [0, 0, 0], el0 = [0, 0, 0], tl0 = [0, [0, 8]], nl0 = [0, [0, 7]], ul0 = [0, [0, 6]], il0 = [0, [0, 10]], fl0 = [0, [0, 9]], cl0 = [0, [0, 11]], sl0 = [0, [0, 5]], al0 = [0, [0, 4]], ol0 = [0, [0, 2]], vl0 = [0, [0, 3]], ll0 = [0, [0, 1]], pl0 = [0, [0, 0]], kl0 = [0, [0, 12]], ml0 = [0, [0, 13]], hl0 = [0, [0, 14]], dl0 = [0, 0], yl0 = [0, 1], _l0 = [0, 0], wl0 = [0, 2], gl0 = [0, 3], bl0 = [0, 7], Tl0 = [0, 6], El0 = [0, 4], Sl0 = [0, 5], Al0 = [0, 1], Il0 = [0, 0], Pl0 = [0, 1], Cl0 = [0, 0], Nl0 = fl3, Ol0 = [0, "either a call or access of `super`"], jl0 = fl3, Dl0 = W22, Rl0 = w6, Fl0 = w6, Ml0 = [0, 2], Ll0 = [0, 0], ql0 = [0, 1], Bl0 = Yv, Ul0 = [0, "the identifier `target`"], Xl0 = [0, 0], Gl0 = [0, 1], Yl0 = [0, 0], zl0 = [0, 0], Jl0 = [0, 2], Kl0 = [0, 2], Hl0 = [0, 1], Wl0 = [0, 73], Vl0 = P6, $l0 = uL, Ql0 = gb, Zl0 = gb, x60 = pD2, r60 = [0, 0], e60 = [0, 1], t60 = [0, 0], n60 = se7, u60 = se7, i60 = [0, "a regular expression"], f60 = rx, c60 = rx, s60 = rx, a60 = [0, 81], o60 = [0, "src/parser/expression_parser.ml", 1550, 17], v60 = [0, "a template literal part"], l60 = [0, [0, rx, rx], 1], p60 = Pv, k60 = [0, 6], m60 = [0, [0, 17, [0, 2]]], h60 = [0, [0, 18, [0, 3]]], d60 = [0, [0, 19, [0, 4]]], y60 = [0, [0, 0, [0, 5]]], _60 = [0, [0, 1, [0, 5]]], w60 = [0, [0, 2, [0, 5]]], g60 = [0, [0, 3, [0, 5]]], b60 = [0, [0, 5, [0, 6]]], T60 = [0, [0, 7, [0, 6]]], E60 = [0, [0, 4, [0, 6]]], S60 = [0, [0, 6, [0, 6]]], A60 = [0, [0, 8, [0, 7]]], I60 = [0, [0, 9, [0, 7]]], P60 = [0, [0, 10, [0, 7]]], C60 = [0, [0, 11, [0, 8]]], N60 = [0, [0, 12, [0, 8]]], O60 = [0, [0, 15, [0, 9]]], j60 = [0, [0, 13, [0, 9]]], D60 = [0, [0, 14, [1, 10]]], R60 = [0, [0, 16, [0, 9]]], F60 = [0, [0, 21, [0, 6]]], M60 = [0, [0, 20, [0, 6]]], L60 = [23, Dw], q60 = [13, "JSX fragment"], B60 = Iv, U60 = ln5, X60 = [0, sn4], G60 = [1, sn4], Y60 = [0, rx, rx, 0], z60 = [0, Sh], J60 = rx, K60 = [0, "a numeric or string literal"], H60 = [0, rx, '""', 0], W60 = [0, 0], V60 = [0, "a number literal"], $60 = [0, [0, 0, V22, 0]], Q60 = [0, 84], Z60 = [21, dM], x40 = [21, R62], r40 = [0, 0, 0], e40 = h6, t40 = [0, rx, 0], n40 = "unexpected PrivateName in Property, expected a PrivateField", u40 = [0, 0, 0], i40 = Sa, f40 = "Must be one of the above", c40 = [0, 1], s40 = [0, 1], a40 = [0, 1], o40 = Sa, v40 = Sa, l40 = p_, p40 = "Internal Error: private name found in object props", k40 = [0, 0, 0, 0], m40 = [0, cF], h40 = [19, [0, 0]], d40 = [0, cF], y40 = ug, _40 = "Nooo: ", w40 = Fv, g40 = "Parser error: No such thing as an expression pattern!", b40 = [0, [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]], T40 = [0, "src/parser/parser_flow.ml", fk, 28], E40 = [0, [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]], S40 = kD, A40 = Yx, I40 = $D, P40 = eR, C40 = eR, N40 = $D, O40 = tc2, j40 = sD2, D40 = w1, R40 = m1, F40 = "InterpreterDirective", M40 = "interpreter", L40 = "Program", q40 = w1, B40 = "RecordBody", U40 = m1, X40 = Y1, G40 = en4, Y40 = "RecordStaticProperty", z40 = "defaultValue", J40 = Y1, K40 = en4, H40 = "RecordProperty", W40 = S6, V40 = "BreakStatement", $40 = S6, Q40 = "ContinueStatement", Z40 = "DebuggerStatement", xp0 = Wv, rp0 = "DeclareExportAllDeclaration", ep0 = Wv, tp0 = l_, np0 = IE, up0 = Fv, ip0 = "DeclareExportDeclaration", fp0 = w1, cp0 = Yr5, sp0 = "DeclareModule", ap0 = Y1, op0 = "DeclareModuleExports", vp0 = w1, lp0 = Yr5, pp0 = NL, kp0 = "DeclareNamespace", mp0 = Z32, hp0 = w1, dp0 = "DoWhileStatement", yp0 = "EmptyStatement", _p0 = cS, wp0 = IE, gp0 = "ExportDefaultDeclaration", bp0 = cS, Tp0 = cA, Ep0 = Wv, Sp0 = "ExportAllDeclaration", Ap0 = cS, Ip0 = Wv, Pp0 = l_, Cp0 = IE, Np0 = "ExportNamedDeclaration", Op0 = "directive", jp0 = t24, Dp0 = "ExpressionStatement", Rp0 = w1, Fp0 = "update", Mp0 = Z32, Lp0 = ks5, qp0 = "ForStatement", Bp0 = "each", Up0 = w1, Xp0 = fn5, Gp0 = Ea2, Yp0 = "ForInStatement", zp0 = Kv, Jp0 = w1, Kp0 = fn5, Hp0 = Ea2, Wp0 = "ForOfStatement", Vp0 = lR, $p0 = rP, Qp0 = Z32, Zp0 = "IfStatement", xk0 = tc2, rk0 = Aa2, ek0 = m1, tk0 = XD, nk0 = Wv, uk0 = l_, ik0 = "ImportDeclaration", fk0 = w1, ck0 = S6, sk0 = "LabeledStatement", ak0 = J9, ok0 = $1, vk0 = "MatchStatement", lk0 = "RecordImplements", pk0 = w1, kk0 = Oo2, mk0 = B22, hk0 = Yr5, dk0 = "RecordDeclaration", yk0 = $1, _k0 = "ReturnStatement", wk0 = J9, gk0 = "discriminant", bk0 = "SwitchStatement", Tk0 = $1, Ek0 = "ThrowStatement", Sk0 = "finalizer", Ak0 = "handler", Ik0 = vn3, Pk0 = "TryStatement", Ck0 = w1, Nk0 = Z32, Ok0 = "WhileStatement", jk0 = w1, Dk0 = Dp2, Rk0 = "WithStatement", Fk0 = x9, Mk0 = $1, Lk0 = NA, qk0 = x9, Bk0 = $1, Uk0 = NA, Xk0 = KT, Gk0 = "ArrayExpression", Yk0 = B22, zk0 = gh, Jk0 = t24, Kk0 = Ge7, Hk0 = Ey, Wk0 = Io3, Vk0 = w1, $k0 = on3, Qk0 = Yr5, Zk0 = "ArrowFunctionExpression", x80 = t24, r80 = "AsConstExpression", e80 = Y1, t80 = t24, n80 = "AsExpression", u80 = p_, i80 = fn5, f80 = Ea2, c80 = Gv, s80 = "AssignmentExpression", a80 = fn5, o80 = Ea2, v80 = Gv, l80 = "BinaryExpression", p80 = "CallExpression", k80 = lR, m80 = rP, h80 = Z32, d80 = "ConditionalExpression", y80 = Wv, _80 = "ImportExpression", w80 = LF, g80 = CM, b80 = Dw, T80 = fn5, E80 = Ea2, S80 = Gv, A80 = "LogicalExpression", I80 = J9, P80 = $1, C80 = "MatchExpression", N80 = "MemberExpression", O80 = Tm2, j80 = w6, D80 = "MetaProperty", R80 = Qb, F80 = h8, M80 = fR, L80 = "NewExpression", q80 = A6, B80 = "ObjectExpression", U80 = ft6, X80 = "OptionalCallExpression", G80 = ft6, Y80 = "OptionalMemberExpression", z80 = rM, J80 = "SequenceExpression", K80 = "Super", H80 = "ThisExpression", W80 = Y1, V80 = t24, $80 = "TypeCastExpression", Q80 = Y1, Z80 = t24, xm0 = "SatisfiesExpression", rm0 = x9, em0 = $1, tm0 = NA, nm0 = ze6, um0 = $7, im0 = SD, fm0 = VL, cm0 = Aa2, sm0 = ga, am0 = E6, om0 = "matched above", vm0 = $1, lm0 = XR, pm0 = Gv, km0 = "UnaryExpression", mm0 = $1, hm0 = "AwaitExpression", dm0 = kR, ym0 = ZM, _m0 = XR, wm0 = $1, gm0 = Gv, bm0 = "UpdateExpression", Tm0 = "delegate", Em0 = $1, Sm0 = "YieldExpression", Am0 = "MatchExpressionCase", Im0 = "guard", Pm0 = w1, Cm0 = ge6, Nm0 = "MatchStatementCase", Om0 = "literal", jm0 = "MatchLiteralPattern", Dm0 = "MatchWildcardPattern", Rm0 = ze6, Fm0 = $7, Mm0 = $1, Lm0 = Gv, qm0 = "MatchUnaryPattern", Bm0 = "MatchObjectPattern", Um0 = "MatchInstanceObjectPattern", Xm0 = DF, Gm0 = _a6, Ym0 = "MatchInstancePattern", zm0 = "patterns", Jm0 = "MatchOrPattern", Km0 = Ih, Hm0 = ge6, Wm0 = "MatchAsPattern", Vm0 = Yr5, $m0 = "MatchIdentifierPattern", Qm0 = Tm2, Zm0 = "base", xh0 = "MatchMemberPattern", rh0 = ba2, eh0 = Yr5, th0 = "MatchBindingPattern", nh0 = p6, uh0 = KT, ih0 = "MatchArrayPattern", fh0 = T6, ch0 = ge6, sh0 = en4, ah0 = VR, oh0 = T6, vh0 = ge6, lh0 = en4, ph0 = VR, kh0 = p6, mh0 = A6, hh0 = $1, dh0 = "MatchRestPattern", yh0 = "Unexpected FunctionDeclaration with BodyExpression", _h0 = "HookDeclaration", wh0 = t24, gh0 = Ge7, bh0 = Ey, Th0 = Io3, Eh0 = "FunctionDeclaration", Sh0 = B22, Ah0 = gh, Ih0 = w1, Ph0 = on3, Ch0 = Yr5, Nh0 = "Unexpected FunctionExpression with BodyExpression", Oh0 = B22, jh0 = gh, Dh0 = t24, Rh0 = Ge7, Fh0 = Ey, Mh0 = Io3, Lh0 = w1, qh0 = on3, Bh0 = Yr5, Uh0 = "FunctionExpression", Xh0 = ft6, Gh0 = Y1, Yh0 = Ye4, zh0 = US, Jh0 = ft6, Kh0 = Y1, Hh0 = Ye4, Wh0 = "PrivateIdentifier", Vh0 = ft6, $h0 = Y1, Qh0 = Ye4, Zh0 = US, xd0 = rP, rd0 = Z32, ed0 = "SwitchCase", td0 = w1, nd0 = "param", ud0 = "CatchClause", id0 = w1, fd0 = "BlockStatement", cd0 = ba2, sd0 = Yr5, ad0 = "DeclareVariable", od0 = "DeclareHook", vd0 = Ge7, ld0 = "DeclareFunction", pd0 = Yr5, kd0 = lM, md0 = Oo2, hd0 = mc2, dd0 = w1, yd0 = B22, _d0 = Yr5, wd0 = "DeclareClass", gd0 = B22, bd0 = f_, Td0 = on3, Ed0 = p6, Sd0 = on3, Ad0 = Yr5, Id0 = "DeclareComponent", Pd0 = B22, Cd0 = f_, Nd0 = p6, Od0 = on3, jd0 = "ComponentTypeAnnotation", Dd0 = ft6, Rd0 = Y1, Fd0 = Ye4, Md0 = "ComponentTypeParameter", Ld0 = w1, qd0 = Yr5, Bd0 = "DeclareEnum", Ud0 = mc2, Xd0 = w1, Gd0 = B22, Yd0 = Yr5, zd0 = "DeclareInterface", Jd0 = m1, Kd0 = tc2, Hd0 = cA, Wd0 = "ExportNamespaceSpecifier", Vd0 = fn5, $d0 = B22, Qd0 = Yr5, Zd0 = "DeclareTypeAlias", x50 = fn5, r50 = B22, e50 = Yr5, t50 = "TypeAlias", n50 = "DeclareOpaqueType", u50 = "OpaqueType", i50 = "supertype", f50 = "upperBound", c50 = "lowerBound", s50 = "impltype", a50 = B22, o50 = Yr5, v50 = "ClassDeclaration", l50 = "ClassExpression", p50 = g8, k50 = Oo2, m50 = "superTypeParameters", h50 = "superClass", d50 = B22, y50 = w1, _50 = Yr5, w50 = t24, g50 = "Decorator", b50 = B22, T50 = Yr5, E50 = "ClassImplements", S50 = w1, A50 = "ClassBody", I50 = w1, P50 = "StaticBlock", C50 = _a6, N50 = V6, O50 = Nv, j50 = nl2, D50 = g8, R50 = W32, F50 = Ue5, M50 = ba2, L50 = m1, q50 = en4, B50 = "MethodDefinition", U50 = x42, X50 = g8, G50 = $22, Y50 = Ue5, z50 = W32, J50 = Y1, K50 = m1, H50 = en4, W50 = jL, V50 = "Internal Error: Private name found in class prop", $50 = x42, Q50 = g8, Z50 = $22, xy0 = Ue5, ry0 = W32, ey0 = Y1, ty0 = m1, ny0 = en4, uy0 = jL, iy0 = B22, fy0 = f_, cy0 = on3, sy0 = Yr5, ay0 = w1, oy0 = "ComponentDeclaration", vy0 = $1, ly0 = OE, py0 = fn5, ky0 = Ea2, my0 = jm2, hy0 = T6, dy0 = X62, yy0 = Ye4, _y0 = "ComponentParameter", wy0 = ks5, gy0 = Yr5, by0 = "EnumBigIntMember", Ty0 = Yr5, Ey0 = LR, Sy0 = ks5, Ay0 = Yr5, Iy0 = "EnumStringMember", Py0 = Yr5, Cy0 = LR, Ny0 = ks5, Oy0 = Yr5, jy0 = "EnumNumberMember", Dy0 = ks5, Ry0 = Yr5, Fy0 = "EnumBooleanMember", My0 = B6, Ly0 = Am2, qy0 = y6, By0 = "EnumBooleanBody", Uy0 = B6, Xy0 = Am2, Gy0 = y6, Yy0 = "EnumNumberBody", zy0 = B6, Jy0 = Am2, Ky0 = y6, Hy0 = "EnumStringBody", Wy0 = B6, Vy0 = y6, $y0 = "EnumSymbolBody", Qy0 = B6, Zy0 = Am2, x90 = y6, r90 = "EnumBigIntBody", e90 = w1, t90 = Yr5, n90 = "EnumDeclaration", u90 = mc2, i90 = w1, f90 = B22, c90 = Yr5, s90 = "InterfaceDeclaration", a90 = B22, o90 = Yr5, v90 = "InterfaceExtends", l90 = Y1, p90 = A6, k90 = "ObjectPattern", m90 = Y1, h90 = KT, d90 = "ArrayPattern", y90 = fn5, _90 = Ea2, w90 = jm2, g90 = Y1, b90 = Ye4, T90 = US, E90 = $1, S90 = OE, A90 = $1, I90 = OE, P90 = fn5, C90 = Ea2, N90 = jm2, O90 = ks5, j90 = ks5, D90 = Nv, R90 = nl2, F90 = VD, M90 = W32, L90 = T6, q90 = V6, B90 = ba2, U90 = m1, X90 = en4, G90 = mF, Y90 = $1, z90 = iR, J90 = fn5, K90 = Ea2, H90 = jm2, W90 = W32, V90 = T6, $90 = V6, Q90 = ba2, Z90 = m1, x_0 = en4, r_0 = mF, e_0 = $1, t_0 = iR, n_0 = At7, u_0 = m1, i_0 = J32, f_0 = rx, c_0 = At7, s_0 = $v, a_0 = m1, o_0 = J32, v_0 = At7, l_0 = m1, p_0 = J32, k_0 = Pa2, m_0 = wa2, h_0 = At7, d_0 = m1, y_0 = J32, __0 = "flags", w_0 = ge6, g_0 = "regex", b_0 = At7, T_0 = m1, E_0 = J32, S_0 = At7, A_0 = m1, I_0 = J32, P_0 = rM, C_0 = "quasis", N_0 = "TemplateLiteral", O_0 = "cooked", j_0 = At7, D_0 = "tail", R_0 = m1, F_0 = "TemplateElement", M_0 = "quasi", L_0 = "tag", q_0 = "TaggedTemplateExpression", B_0 = ba2, U_0 = "declarations", X_0 = "VariableDeclaration", G_0 = ks5, Y_0 = Yr5, z_0 = "VariableDeclarator", J_0 = "plus", K_0 = nM, H_0 = Xv, W_0 = bo3, V_0 = ng, $_0 = "in-out", Q_0 = ba2, Z_0 = "Variance", xw0 = "AnyTypeAnnotation", rw0 = "MixedTypeAnnotation", ew0 = "EmptyTypeAnnotation", tw0 = "VoidTypeAnnotation", nw0 = "NullLiteralTypeAnnotation", uw0 = "SymbolTypeAnnotation", iw0 = "NumberTypeAnnotation", fw0 = "BigIntTypeAnnotation", cw0 = "StringTypeAnnotation", sw0 = "BooleanTypeAnnotation", aw0 = Y1, ow0 = "NullableTypeAnnotation", vw0 = "UnknownTypeAnnotation", lw0 = "NeverTypeAnnotation", pw0 = "UndefinedTypeAnnotation", kw0 = ba2, mw0 = Y1, hw0 = "parameterName", dw0 = "TypePredicate", yw0 = "HookTypeAnnotation", _w0 = "FunctionTypeAnnotation", ww0 = Bv, gw0 = B22, bw0 = p6, Tw0 = gh, Ew0 = on3, Sw0 = ft6, Aw0 = Y1, Iw0 = Ye4, Pw0 = fM, Cw0 = ft6, Nw0 = Y1, Ow0 = Ye4, jw0 = fM, Dw0 = [0, 0, 0, 0, 0], Rw0 = "internalSlots", Fw0 = "callProperties", Mw0 = "indexers", Lw0 = A6, qw0 = "exact", Bw0 = tL, Uw0 = "ObjectTypeAnnotation", Xw0 = VD, Gw0 = "There should not be computed object type property keys", Yw0 = ks5, zw0 = Nv, Jw0 = nl2, Kw0 = ba2, Hw0 = $22, Ww0 = rw, Vw0 = Ue5, $w0 = ft6, Qw0 = V6, Zw0 = m1, xg0 = en4, rg0 = "ObjectTypeProperty", eg0 = $1, tg0 = "ObjectTypeSpreadProperty", ng0 = $22, ug0 = Ue5, ig0 = m1, fg0 = en4, cg0 = Yr5, sg0 = "ObjectTypeIndexer", ag0 = Ue5, og0 = m1, vg0 = "ObjectTypeCallProperty", lg0 = ft6, pg0 = $22, kg0 = "sourceType", mg0 = "propType", hg0 = "keyTparam", dg0 = "ObjectTypeMappedTypeProperty", yg0 = m1, _g0 = V6, wg0 = Ue5, gg0 = ft6, bg0 = Yr5, Tg0 = "ObjectTypeInternalSlot", Eg0 = w1, Sg0 = mc2, Ag0 = "InterfaceTypeAnnotation", Ig0 = QM, Pg0 = "ArrayTypeAnnotation", Cg0 = "falseType", Ng0 = "trueType", Og0 = "extendsType", jg0 = "checkType", Dg0 = "ConditionalTypeAnnotation", Rg0 = "typeParameter", Fg0 = "InferTypeAnnotation", Mg0 = Yr5, Lg0 = UF, qg0 = "QualifiedTypeIdentifier", Bg0 = B22, Ug0 = Yr5, Xg0 = "GenericTypeAnnotation", Gg0 = "indexType", Yg0 = "objectType", zg0 = "IndexedAccessType", Jg0 = ft6, Kg0 = "OptionalIndexedAccessType", Hg0 = w_, Wg0 = "UnionTypeAnnotation", Vg0 = w_, $g0 = "IntersectionTypeAnnotation", Qg0 = h8, Zg0 = $1, xb0 = "TypeofTypeAnnotation", rb0 = Yr5, eb0 = UF, tb0 = "QualifiedTypeofIdentifier", nb0 = $1, ub0 = "KeyofTypeAnnotation", ib0 = el2, fb0 = jF, cb0 = uF, sb0 = Y1, ab0 = Gv, ob0 = "TypeOperator", vb0 = Xv, lb0 = tL, pb0 = "elementTypes", kb0 = "TupleTypeAnnotation", mb0 = ft6, hb0 = $22, db0 = QM, yb0 = S6, _b0 = "TupleTypeLabeledElement", wb0 = Y1, gb0 = S6, bb0 = "TupleTypeSpreadElement", Tb0 = At7, Eb0 = m1, Sb0 = "StringLiteralTypeAnnotation", Ab0 = At7, Ib0 = m1, Pb0 = "NumberLiteralTypeAnnotation", Cb0 = At7, Nb0 = m1, Ob0 = "BigIntLiteralTypeAnnotation", jb0 = Pa2, Db0 = wa2, Rb0 = At7, Fb0 = m1, Mb0 = "BooleanLiteralTypeAnnotation", Lb0 = "ExistsTypeAnnotation", qb0 = Y1, Bb0 = vF, Ub0 = Y1, Xb0 = vF, Gb0 = on3, Yb0 = "TypeParameterDeclaration", zb0 = "usesExtendsBound", Jb0 = Fv, Kb0 = $22, Hb0 = No3, Wb0 = "bound", Vb0 = Ye4, $b0 = "TypeParameter", Qb0 = on3, Zb0 = mM, xT0 = on3, rT0 = mM, eT0 = Pv, tT0 = OL, nT0 = "closingElement", uT0 = "openingElement", iT0 = "JSXElement", fT0 = "closingFragment", cT0 = OL, sT0 = "openingFragment", aT0 = "JSXFragment", oT0 = h8, vT0 = "selfClosing", lT0 = "attributes", pT0 = Ye4, kT0 = "JSXOpeningElement", mT0 = "JSXOpeningFragment", hT0 = Ye4, dT0 = "JSXClosingElement", yT0 = "JSXClosingFragment", _T0 = m1, wT0 = Ye4, gT0 = "JSXAttribute", bT0 = $1, TT0 = "JSXSpreadAttribute", ET0 = "JSXEmptyExpression", ST0 = t24, AT0 = "JSXExpressionContainer", IT0 = t24, PT0 = "JSXSpreadChild", CT0 = At7, NT0 = m1, OT0 = "JSXText", jT0 = Tm2, DT0 = Dp2, RT0 = "JSXMemberExpression", FT0 = Ye4, MT0 = rE, LT0 = "JSXNamespacedName", qT0 = Ye4, BT0 = "JSXIdentifier", UT0 = cA, XT0 = X62, GT0 = "ExportSpecifier", YT0 = X62, zT0 = "ImportDefaultSpecifier", JT0 = X62, KT0 = "ImportNamespaceSpecifier", HT0 = XD, WT0 = X62, VT0 = "imported", $T0 = "ImportSpecifier", QT0 = "Line", ZT0 = "Block", xE0 = m1, rE0 = m1, eE0 = "DeclaredPredicate", tE0 = "InferredPredicate", nE0 = Qb, uE0 = h8, iE0 = fR, fE0 = W32, cE0 = Tm2, sE0 = Dp2, aE0 = "message", oE0 = Yx, vE0 = wD, lE0 = vR, pE0 = Wv, kE0 = G6, mE0 = Kk, hE0 = [0, ss5, fi6, _c2, Ni6, di6, Cs4, mf, si6, sf, z72, eu2, zc2, _u2, e7, Ve6, bs5, Mc2, W7, hf, Ff, Es4, Xi6, Z7, Ii6, lc3, I7, Ec2, O7, of, Fu2, tu2, Ku2, jc2, hi6, m7, pf, Ic2, Vf, gs5, wc2, ys5, St7, V7, Mf2, $f2, lf, Ji6, ti6, l7, f7, Ac2, Lf, vi6, Hi6, rs5, Vc2, U7, Au2, fu2, Kn4, Ou2, bu2, ai6, Ui6, Si6, ji6, es5, Af, pu2, Ki6, qi6, X7, Lu2, Zu2, ms5, Wf, o7, Ge7, r7, Qi6, x7, Gf, dc2, D7, qc2, G1, ff, $n3, Oc2, E7, Nf, Tc2, g7, kc2, su2, P7, tf, Gc2, Yn3, Mu2, a7, Eu2, vc2, j7, _i6, T7, $22, Pi6, ou2, d7, w7, Ri6, wu2, ki6, Ci6, Q7, Rc2, Wu2, Oi6, ic2, be6, v7, vu2, H22, Hn4, Uc2, zi6, xf2, Du2, $c2, xc2, Yc2, If2, ls5, Gi6, Ef, yu2, $u2, pc3, du2, Xf, Pu2, oc2, xi6, Cc2, Hc2, Nc2, Wn3, yf, Bc2, bi6, mi6, Uf, Ps6, Hf, qf, _f2, ii6, Qu2, Uu2, Rf2, B7, is5, ws5, y7, oi6, S7, ru2, bc2, H7, Hu2, xu2, Sc2, u7, Ei6, Pf2, yi5, Jn3, L7, ps5, Y7, Tf, gc2, Xu2, W22, Je6, F7, J72, Jc2, jf, He6, Ke6, n7, cs5, Vu2, p7, ds5, ge6, iu2, As5, Bf, cc2, sc2, Un3, cu2, Mi5, Ru2, hu2, Ts4, q7, fs11, fc2, Qn3, Vi6, uc2, qu2, Xc2, A7, ns5, ni6, lu2, Xn4, Df2, Pc2, Fc2, ac2, kf2, M7, Vn3, ui7, wi6, uu2, c7, gi6, G7, zn4, Bi6, ju2, Sf, i7, _7, Gn4, Qf, Su2, zu2, zf, ei6, Cu2, vf2, nf, Zf, tn4, h7, Ju2, li6, Zn4, qn4, Bu2, Di6, ri6, ku2, Zi6, Zc2, Yu2, C7, gu2, Jf, cf, s7, Tu2, df, K72, Bn3, Ti6, R7, t24, Ai6, uf, ts5, hs5, Iu2, wf, k7, Xe6, gf, _s5, af, Yi6, hc2, yc2, Wi6, Qc2, vs6, Is6, Fi6, bf, os5, rc2, vn3, as5, Gu2, Dc2, Kf, nc2, us5, pi6, ci6, Yf, We6, Lc2, ae5, N7, rf, $i6, mu2, Of, b7, Wc2, au2, t72, Kc2], dE0 = [0, H22, of, $i6, V7, $22, qf, h7, pc3, bc2, Rf2, Gi6, Du2, Fi6, hu2, F7, d7, Qu2, Uf, J72, ui7, cf, X7, Zn4, Zf, _u2, vu2, $n3, ac2, Ps6, oc2, _f2, Sf, Es4, Uc2, jc2, Q7, He6, t72, Wi6, s7, Qc2, Bi6, ic2, rs5, Ve6, Jc2, Uu2, fu2, k7, ss5, ii6, lu2, T7, Je6, ci6, w7, Of, qu2, fc2, Ku2, pi6, q7, a7, If2, _7, fs11, Ge7, Lf, Pi6, Zu2, M7, pu2, xf2, af, P7, $f2, au2, Fc2, Zi6, m7, Bn3, jf, Fu2, Y7, bi6, $c2, Ai6, Eu2, ge6, es5, x7, rc2, Vu2, bs5, Wn3, e7, o7, Kf, Pc2, Vn3, r7, Xi6, Qf, kf2, Lu2, sf, Xn4, Vc2, zu2, ni6, Oi6, Hu2, $u2, si6, n7, Ii6, Zc2, Ui6, ys5, Gf, Kc2, Xu2, Mu2, Ei6, Cc2, wu2, Kn4, hs5, df, W7, Ki6, uc2, hf, Nf, uu2, du2, E7, ps5, L7, mf, gu2, Au2, Cu2, Yc2, su2, os5, N7, oi6, G1, g7, Hn4, Bc2, ai6, pf, ku2, xu2, Tf, Jf, ms5, Tc2, Dc2, z72, dc2, Bu2, zf, f7, D7, Z7, Xf, I7, ds5, fi6, Mi5, Di6, Rc2, zn4, Yu2, xi6, eu2, vf2, ae5, lc3, is5, cc2, Ou2, Df2, as5, Vi6, Gn4, W22, Ri6, U7, cs5, St7, Ni6, qc2, gs5, tu2, i7, vi6, Ru2, di6, Qi6, S7, kc2, _c2, ti6, cu2, gf, nc2, As5, Iu2, wf, Qn3, vs6, Ci6, hi6, Hi6, ws5, bf, v7, b7, Mf2, mi6, C7, Nc2, ts5, p7, t24, Un3, Mc2, yf, Is6, A7, Yn3, Yi6, Ac2, Yf, Xc2, Oc2, Ts4, O7, Hc2, Bf, wc2, Ec2, bu2, ju2, j7, be6, nf, Ju2, qn4, hc2, Ic2, wi6, Gc2, gi6, lf, yu2, zi6, ou2, xc2, us5, Ke6, Xe6, rf, ff, ri6, Wc2, ns5, K72, mu2, Vf, Sc2, _s5, Jn3, gc2, qi6, Hf, ru2, uf, H7, yc2, Ef, ji6, y7, sc2, Wf, B7, ei6, Si6, yi5, Wu2, Ff, Gu2, Su2, Pf2, c7, li6, l7, Ji6, _i6, Cs4, We6, iu2, zc2, vn3, G7, R7, ki6, ls5, u7, Tu2, Pu2, Ti6, Lc2, tf, vc2, tn4, Af], yE0 = [0, Af, tn4, vc2, tf, Lc2, Ti6, Pu2, Tu2, u7, ls5, ki6, R7, G7, vn3, zc2, iu2, We6, Cs4, _i6, Ji6, l7, li6, c7, Pf2, Su2, Gu2, Ff, Wu2, yi5, Si6, ei6, B7, Wf, sc2, y7, ji6, Ef, yc2, H7, uf, ru2, Hf, qi6, gc2, Jn3, _s5, Sc2, Vf, mu2, K72, ns5, Wc2, ri6, ff, rf, Xe6, Ke6, us5, xc2, ou2, zi6, yu2, lf, gi6, Gc2, wi6, Ic2, hc2, qn4, Ju2, nf, be6, j7, ju2, bu2, Ec2, wc2, Bf, Hc2, O7, Ts4, Oc2, Xc2, Yf, Ac2, Yi6, Yn3, A7, Is6, yf, Mc2, Un3, t24, p7, ts5, Nc2, C7, mi6, Mf2, b7, v7, bf, ws5, Hi6, hi6, Ci6, vs6, Qn3, wf, Iu2, As5, nc2, gf, cu2, ti6, _c2, kc2, S7, Qi6, di6, Ru2, vi6, i7, tu2, gs5, qc2, Ni6, St7, cs5, U7, Ri6, W22, Gn4, Vi6, as5, Df2, Ou2, cc2, is5, lc3, ae5, vf2, eu2, xi6, Yu2, zn4, Rc2, Di6, Mi5, fi6, ds5, I7, Xf, Z7, D7, f7, zf, Bu2, dc2, z72, Dc2, Tc2, ms5, Jf, Tf, xu2, ku2, pf, ai6, Bc2, Hn4, g7, G1, oi6, N7, os5, su2, Yc2, Cu2, Au2, gu2, mf, L7, ps5, E7, du2, uu2, Nf, hf, uc2, Ki6, W7, df, hs5, Kn4, wu2, Cc2, Ei6, Mu2, Xu2, Kc2, Gf, ys5, Ui6, Zc2, Ii6, n7, si6, $u2, Hu2, Oi6, ni6, zu2, Vc2, Xn4, sf, Lu2, kf2, Qf, Xi6, r7, Vn3, Pc2, Kf, o7, e7, Wn3, bs5, Vu2, rc2, x7, es5, ge6, Eu2, Ai6, $c2, bi6, Y7, Fu2, jf, Bn3, m7, Zi6, Fc2, au2, $f2, P7, af, xf2, pu2, M7, Zu2, Pi6, Lf, Ge7, fs11, _7, If2, a7, q7, pi6, Ku2, fc2, qu2, Of, w7, ci6, Je6, T7, lu2, ii6, ss5, k7, fu2, Uu2, Jc2, Ve6, rs5, ic2, Bi6, Qc2, s7, Wi6, t72, He6, Q7, jc2, Uc2, Es4, Sf, _f2, oc2, Ps6, ac2, $n3, vu2, _u2, Zf, Zn4, X7, cf, ui7, J72, Uf, Qu2, d7, F7, hu2, Fi6, Du2, Gi6, Rf2, bc2, pc3, h7, qf, $22, V7, $i6, of, H22], _E0 = "Jsoo_runtime.Error.Exn", wE0 = [0, 0], gE0 = "assert_operator", bE0 = "use_strict", TE0 = w_, EE0 = "esproposal_decorators", SE0 = "records", AE0 = "pattern_matching", IE0 = "enums", PE0 = "components", CE0 = "Internal error: ", NE0 = [t1, "CamlinternalLazy.Undefined", js6(0)];
|
|
109446
109446
|
function OE0(x6, r) {
|
|
109447
109447
|
var e6 = Rx(r) - 1 | 0, t25 = 0;
|
|
109448
109448
|
if (e6 >= 0)
|
|
@@ -133818,7 +133818,7 @@ function Qe6(e2, t24) {
|
|
|
133818
133818
|
function ps5(e2) {
|
|
133819
133819
|
return /^\[.*\]$/.test(e2) ? e2.substring(1, e2.length - 1) : e2;
|
|
133820
133820
|
}
|
|
133821
|
-
function
|
|
133821
|
+
function fs11(e2, t24) {
|
|
133822
133822
|
return { open: e2.charAt(2) === "~", close: t24.charAt(t24.length - 3) === "~" };
|
|
133823
133823
|
}
|
|
133824
133824
|
function ms5(e2) {
|
|
@@ -135669,7 +135669,7 @@ Expecting ` + Qt6.join(", ") + ", got '" + (this.terminals_[L6] || L6) + "'" : D
|
|
|
135669
135669
|
};
|
|
135670
135670
|
jr3 = G6;
|
|
135671
135671
|
Ft5 = {};
|
|
135672
|
-
Oe6(Ft5, { SourceLocation: () => Qe6, id: () => ps5, prepareBlock: () => ys5, prepareMustache: () => gs5, preparePartialBlock: () => ks5, preparePath: () => ds5, prepareProgram: () => Ss4, prepareRawBlock: () => bs5, stripComment: () => ms5, stripFlags: () =>
|
|
135672
|
+
Oe6(Ft5, { SourceLocation: () => Qe6, id: () => ps5, prepareBlock: () => ys5, prepareMustache: () => gs5, preparePartialBlock: () => ks5, preparePath: () => ds5, prepareProgram: () => Ss4, prepareRawBlock: () => bs5, stripComment: () => ms5, stripFlags: () => fs11 });
|
|
135673
135673
|
Qr5 = {};
|
|
135674
135674
|
for (ue6 in Ft5)
|
|
135675
135675
|
Object.prototype.hasOwnProperty.call(Ft5, ue6) && (Qr5[ue6] = Ft5[ue6]);
|
|
@@ -140446,7 +140446,7 @@ ${e7}`, wi7, Ja3 = (e7) => e7?.kind === "angularControlFlowBlock" && (e7.name ==
|
|
|
140446
140446
|
}
|
|
140447
140447
|
return i2;
|
|
140448
140448
|
}
|
|
140449
|
-
}, us6, Ur6 = null, $o2 = () => (Ur6 || (Ur6 = new us6), Ur6), zo2, ps6, al2, hs6, ms6, Wr4,
|
|
140449
|
+
}, us6, Ur6 = null, $o2 = () => (Ur6 || (Ur6 = new us6), Ur6), zo2, ps6, al2, hs6, ms6, Wr4, fs12 = "HTML", ol3, ds6, Qr6, gs6, cl2, Zt9, _s6, er7, Ss5, oe8, $r6, zr5, We8 = class We9 {
|
|
140450
140450
|
constructor(t24 = {}) {
|
|
140451
140451
|
tn6(this, oe8);
|
|
140452
140452
|
ir7(this, "kind");
|
|
@@ -140944,7 +140944,7 @@ If '${e7}' is a directive input, make sure the directive is imported by the curr
|
|
|
140944
140944
|
hs6 = al2;
|
|
140945
140945
|
ms6 = [{ name: "Angular", type: "markup", aceMode: "html", extensions: [".component.html"], tmScope: "text.html.basic", aliases: ["xhtml"], codemirrorMode: "htmlmixed", codemirrorMimeType: "text/html", parsers: ["angular"], vscodeLanguageIds: ["html"], filenames: [], linguistLanguageId: 146 }, { name: "HTML", type: "markup", aceMode: "html", extensions: [".html", ".hta", ".htm", ".html.hl", ".inc", ".xht", ".xhtml"], tmScope: "text.html.basic", aliases: ["xhtml"], codemirrorMode: "htmlmixed", codemirrorMimeType: "text/html", parsers: ["html"], vscodeLanguageIds: ["html"], linguistLanguageId: 146 }, { name: "Lightning Web Components", type: "markup", aceMode: "html", extensions: [], tmScope: "text.html.basic", aliases: ["xhtml"], codemirrorMode: "htmlmixed", codemirrorMimeType: "text/html", parsers: ["lwc"], vscodeLanguageIds: ["html"], filenames: [], linguistLanguageId: 146 }, { name: "MJML", type: "markup", aceMode: "html", extensions: [".mjml"], tmScope: "text.mjml.basic", aliases: ["MJML", "mjml"], codemirrorMode: "htmlmixed", codemirrorMimeType: "text/html", parsers: ["mjml"], filenames: [], vscodeLanguageIds: ["mjml"], linguistLanguageId: 146 }, { name: "Vue", type: "markup", aceMode: "vue", extensions: [".vue"], tmScope: "source.vue", codemirrorMode: "vue", codemirrorMimeType: "text/x-vue", parsers: ["vue"], vscodeLanguageIds: ["vue"], linguistLanguageId: 391 }];
|
|
140946
140946
|
Wr4 = { bracketSpacing: { category: "Common", type: "boolean", default: true, description: "Print spaces between brackets.", oppositeDescription: "Do not print spaces between brackets." }, objectWrap: { category: "Common", type: "choice", default: "preserve", description: "How to wrap object literals.", choices: [{ value: "preserve", description: "Keep as multi-line, if there is a newline between the opening brace and first property." }, { value: "collapse", description: "Fit to a single line when possible." }] }, singleQuote: { category: "Common", type: "boolean", default: false, description: "Use single quotes instead of double quotes." }, proseWrap: { category: "Common", type: "choice", default: "preserve", description: "How to wrap prose.", choices: [{ value: "always", description: "Wrap prose if it exceeds the print width." }, { value: "never", description: "Do not wrap prose." }, { value: "preserve", description: "Wrap prose as-is." }] }, bracketSameLine: { category: "Common", type: "boolean", default: false, description: "Put > of opening tags on the last line instead of on a new line." }, singleAttributePerLine: { category: "Common", type: "boolean", default: false, description: "Enforce single attribute per line in HTML, Vue and JSX." } };
|
|
140947
|
-
ol3 = { bracketSameLine: Wr4.bracketSameLine, htmlWhitespaceSensitivity: { category:
|
|
140947
|
+
ol3 = { bracketSameLine: Wr4.bracketSameLine, htmlWhitespaceSensitivity: { category: fs12, type: "choice", default: "css", description: "How to handle whitespaces in HTML.", choices: [{ value: "css", description: "Respect the default value of CSS display property." }, { value: "strict", description: "Whitespaces are considered sensitive." }, { value: "ignore", description: "Whitespaces are considered insensitive." }] }, singleAttributePerLine: Wr4.singleAttributePerLine, vueIndentScriptAndStyle: { category: fs12, type: "boolean", default: false, description: "Indent script and style tags in Vue files." } };
|
|
140948
140948
|
ds6 = ol3;
|
|
140949
140949
|
Qr6 = {};
|
|
140950
140950
|
en6(Qr6, { angular: () => Al2, html: () => wl2, lwc: () => Nl2, mjml: () => xl2, vue: () => yl2 });
|
|
@@ -143850,7 +143850,7 @@ $$`;
|
|
|
143850
143850
|
ds7.exports = hs7;
|
|
143851
143851
|
hs7.locator = T0;
|
|
143852
143852
|
var B0 = `
|
|
143853
|
-
`, _0 = "!", ls7 = '"',
|
|
143853
|
+
`, _0 = "!", ls7 = '"', fs13 = "'", Ze9 = "(", xr6 = ")", wn5 = "<", kn6 = ">", Ds8 = "[", yr7 = "\\", O0 = "]", ps7 = "`";
|
|
143854
143854
|
function hs7(e7, r, t24) {
|
|
143855
143855
|
var n2 = this, i3 = "", u = 0, a4 = r.charAt(0), o3 = n2.options.pedantic, s = n2.options.commonmark, l5 = n2.options.gfm, c5, f6, D6, m5, p3, h5, F10, g5, E7, v8, A8, b8, d4, y4, w8, C6, k9, T5;
|
|
143856
143856
|
if (a4 === _0 && (g5 = true, i3 = a4, a4 = r.charAt(++u)), a4 === Ds8 && !(!g5 && n2.inLink)) {
|
|
@@ -143887,7 +143887,7 @@ $$`;
|
|
|
143887
143887
|
return;
|
|
143888
143888
|
i3 += wn5 + y4 + kn6, w8 = y4, u++;
|
|
143889
143889
|
} else {
|
|
143890
|
-
for (a4 = null, h5 = "";u < A8 && (a4 = r.charAt(u), !(h5 && (a4 === ls7 || a4 ===
|
|
143890
|
+
for (a4 = null, h5 = "";u < A8 && (a4 = r.charAt(u), !(h5 && (a4 === ls7 || a4 === fs13 || s && a4 === Ze9))); ) {
|
|
143891
143891
|
if (br7(a4)) {
|
|
143892
143892
|
if (!o3)
|
|
143893
143893
|
break;
|
|
@@ -143908,7 +143908,7 @@ $$`;
|
|
|
143908
143908
|
}
|
|
143909
143909
|
for (y4 = "";u < A8 && (a4 = r.charAt(u), !!br7(a4)); )
|
|
143910
143910
|
y4 += a4, u++;
|
|
143911
|
-
if (a4 = r.charAt(u), i3 += y4, y4 && (a4 === ls7 || a4 ===
|
|
143911
|
+
if (a4 = r.charAt(u), i3 += y4, y4 && (a4 === ls7 || a4 === fs13 || s && a4 === Ze9))
|
|
143912
143912
|
if (u++, i3 += a4, y4 = "", v8 = a4 === Ze9 ? xr6 : a4, p3 = i3, s) {
|
|
143913
143913
|
for (;u < A8 && (a4 = r.charAt(u), a4 !== v8); )
|
|
143914
143914
|
a4 === yr7 && (y4 += yr7, a4 = r.charAt(++u)), u++, y4 += a4;
|
|
@@ -149361,7 +149361,7 @@ var init_postcss = __esm(() => {
|
|
|
149361
149361
|
ct10.default = ct10;
|
|
149362
149362
|
});
|
|
149363
149363
|
fe10 = w8((wx, zi8) => {
|
|
149364
|
-
var Bi8 = Me12(), Ui8 = ft10(), Fc2 = ut11(), { isClean: Fi8, my: $i8 } = Ht10(),
|
|
149364
|
+
var Bi8 = Me12(), Ui8 = ft10(), Fc2 = ut11(), { isClean: Fi8, my: $i8 } = Ht10(), fs13, Wi8, Gi8, ps7;
|
|
149365
149365
|
function Yi8(t25) {
|
|
149366
149366
|
return t25.map((e8) => (e8.nodes && (e8.nodes = Yi8(e8.nodes)), delete e8.source, e8));
|
|
149367
149367
|
}
|
|
@@ -149460,7 +149460,7 @@ var init_postcss = __esm(() => {
|
|
|
149460
149460
|
} else if (e8.selector || e8.selectors)
|
|
149461
149461
|
e8 = [new ps7(e8)];
|
|
149462
149462
|
else if (e8.name)
|
|
149463
|
-
e8 = [new
|
|
149463
|
+
e8 = [new fs13(e8)];
|
|
149464
149464
|
else if (e8.text)
|
|
149465
149465
|
e8 = [new Bi8(e8)];
|
|
149466
149466
|
else
|
|
@@ -149562,7 +149562,7 @@ var init_postcss = __esm(() => {
|
|
|
149562
149562
|
ps7 = t25;
|
|
149563
149563
|
};
|
|
149564
149564
|
z11.registerAtRule = (t25) => {
|
|
149565
|
-
|
|
149565
|
+
fs13 = t25;
|
|
149566
149566
|
};
|
|
149567
149567
|
z11.registerRoot = (t25) => {
|
|
149568
149568
|
Gi8 = t25;
|
|
@@ -149570,7 +149570,7 @@ var init_postcss = __esm(() => {
|
|
|
149570
149570
|
zi8.exports = z11;
|
|
149571
149571
|
z11.default = z11;
|
|
149572
149572
|
z11.rebuild = (t25) => {
|
|
149573
|
-
t25.type === "atrule" ? Object.setPrototypeOf(t25,
|
|
149573
|
+
t25.type === "atrule" ? Object.setPrototypeOf(t25, fs13.prototype) : t25.type === "rule" ? Object.setPrototypeOf(t25, ps7.prototype) : t25.type === "decl" ? Object.setPrototypeOf(t25, Ui8.prototype) : t25.type === "comment" ? Object.setPrototypeOf(t25, Bi8.prototype) : t25.type === "root" && Object.setPrototypeOf(t25, Gi8.prototype), t25[$i8] = true, t25.nodes && t25.nodes.forEach((e8) => {
|
|
149574
149574
|
z11.rebuild(e8);
|
|
149575
149575
|
});
|
|
149576
149576
|
};
|
|
@@ -156669,7 +156669,7 @@ function wf2(e8, t25) {
|
|
|
156669
156669
|
return _9();
|
|
156670
156670
|
}, get converters() {
|
|
156671
156671
|
return f6();
|
|
156672
|
-
}, baseFactory: t25, flags: e8, createNodeArray: de12, createNumericLiteral: V12, createBigIntLiteral: oe11, createStringLiteral: ft11, createStringLiteralFromNode: nr9, createRegularExpressionLiteral: mn8, createLiteralLikeNode: rr8, createIdentifier: We12, createTempVariable: ir10, createLoopVariable: Ir6, createUniqueName: Ot13, getGeneratedNameForNode: Bn7, createPrivateIdentifier: Mt13, createUniquePrivateName: $e12, getGeneratedPrivateNameForNode: qn8, createToken: ot10, createSuper: at12, createThis: Bt10, createNull: Lt10, createTrue: ct10, createFalse: ar9, createModifier: dt9, createModifiersFromModifierFlags: yn9, createQualifiedName: yt11, updateQualifiedName: _n7, createComputedPropertyName: tt13, updateComputedPropertyName: qt11, createTypeParameterDeclaration: tn8, updateTypeParameterDeclaration: sr10, createParameterDeclaration: mr7, updateParameterDeclaration: hr8, createDecorator: Fn6, updateDecorator: zn9, createPropertySignature: Or7, updatePropertySignature: Vn7, createPropertyDeclaration: yr7, updatePropertyDeclaration: L10, createMethodSignature: se12, updateMethodSignature: fe11, createMethodDeclaration: Te11, updateMethodDeclaration: He10, createConstructorDeclaration: lt9, updateConstructorDeclaration: Mr8, createGetAccessorDeclaration: Nn6, updateGetAccessorDeclaration: Wn8, createSetAccessorDeclaration: U11, updateSetAccessorDeclaration: K13, createCallSignature: xe11, updateCallSignature: Se12, createConstructSignature: we10, updateConstructSignature: me13, createIndexSignature: Ve9, updateIndexSignature: Ze11, createClassStaticBlockDeclaration: st10, updateClassStaticBlockDeclaration: Ct13, createTemplateLiteralTypeSpan: Ye10, updateTemplateLiteralTypeSpan: Ee10, createKeywordTypeNode: gn8, createTypePredicateNode: rt13, updateTypePredicateNode: on7, createTypeReferenceNode: Zr8, updateTypeReferenceNode: M11, createFunctionTypeNode: Ue10, updateFunctionTypeNode: u, createConstructorTypeNode: Me13, updateConstructorTypeNode: nn10, createTypeQueryNode: Dt10, updateTypeQueryNode: wt12, createTypeLiteralNode: Pt13, updateTypeLiteralNode: Ft11, createArrayTypeNode: Gn8, updateArrayTypeNode: ki10, createTupleTypeNode: cn9, updateTupleTypeNode: H12, createNamedTupleMember: le10, updateNamedTupleMember: qe11, createOptionalTypeNode: ve12, updateOptionalTypeNode: J14, createRestTypeNode: mt11, updateRestTypeNode: xt11, createUnionTypeNode: ql4, updateUnionTypeNode: C_, createIntersectionTypeNode: Lr8, updateIntersectionTypeNode: Le11, createConditionalTypeNode: pt11, updateConditionalTypeNode: Fl3, createInferTypeNode: Yn7, updateInferTypeNode: zl4, createImportTypeNode: _r8, updateImportTypeNode: oa3, createParenthesizedType: Qt11, updateParenthesizedType: At13, createThisTypeNode: P9, createTypeOperatorNode: Gt10, updateTypeOperatorNode: Jr6, createIndexedAccessTypeNode: or9, updateIndexedAccessTypeNode: Ka4, createMappedTypeNode: gt11, updateMappedTypeNode: jt9, createLiteralTypeNode: ei10, updateLiteralTypeNode: br7, createTemplateLiteralType: Wt10, updateTemplateLiteralType: Vl4, createObjectBindingPattern: D_, updateObjectBindingPattern: Wl4, createArrayBindingPattern: jr6, updateArrayBindingPattern: Gl4, createBindingElement: ca4, updateBindingElement: ti10, createArrayLiteralExpression: Za3, updateArrayLiteralExpression: P_, createObjectLiteralExpression: Ei10, updateObjectLiteralExpression: Yl4, createPropertyAccessExpression: e8 & 4 ? (n4, i4) => setEmitFlags(cr8(n4, i4), 262144) : cr8, updatePropertyAccessExpression: Hl4, createPropertyAccessChain: e8 & 4 ? (n4, i4, s4) => setEmitFlags(Ai9(n4, i4, s4), 262144) : Ai9, updatePropertyAccessChain: la3, createElementAccessExpression: Ci8, updateElementAccessExpression: Xl4, createElementAccessChain: O_, updateElementAccessChain: es8, createCallExpression: Di8, updateCallExpression: ua5, createCallChain: ts8, updateCallChain: L_, createNewExpression: bn7, updateNewExpression: ns8, createTaggedTemplateExpression: pa5, updateTaggedTemplateExpression: J_, createTypeAssertion: j_, updateTypeAssertion: R_, createParenthesizedExpression: rs8, updateParenthesizedExpression: U_, createFunctionExpression: is8, updateFunctionExpression: B_, createArrowFunction: as8, updateArrowFunction: q_, createDeleteExpression: F_, updateDeleteExpression: z_, createTypeOfExpression: fa4, updateTypeOfExpression: un8, createVoidExpression: ss9, updateVoidExpression: lr8, createAwaitExpression: V_, updateAwaitExpression: Rr7, createPrefixUnaryExpression: Ur8, updatePrefixUnaryExpression: $l4, createPostfixUnaryExpression: ni10, updatePostfixUnaryExpression: Ql4, createBinaryExpression: da5, updateBinaryExpression: Kl4, createConditionalExpression: G_, updateConditionalExpression: Y_, createTemplateExpression: H_, updateTemplateExpression: Hn8, createTemplateHead: $_, createTemplateMiddle: ma5, createTemplateTail: _s7, createNoSubstitutionTemplateLiteral: eu4, createTemplateLiteralLikeNode: ii10, createYieldExpression: os7, updateYieldExpression: tu3, createSpreadElement: Q_, updateSpreadElement: nu3, createClassExpression: K_, updateClassExpression: cs7, createOmittedExpression: ls7, createExpressionWithTypeArguments: Z_, updateExpressionWithTypeArguments: eo5, createAsExpression: pn8, updateAsExpression: ha2, createNonNullExpression: to5, updateNonNullExpression: no6, createSatisfiesExpression: us8, updateSatisfiesExpression: ro5, createNonNullChain: ps7, updateNonNullChain: In7, createMetaProperty: io5, updateMetaProperty:
|
|
156672
|
+
}, baseFactory: t25, flags: e8, createNodeArray: de12, createNumericLiteral: V12, createBigIntLiteral: oe11, createStringLiteral: ft11, createStringLiteralFromNode: nr9, createRegularExpressionLiteral: mn8, createLiteralLikeNode: rr8, createIdentifier: We12, createTempVariable: ir10, createLoopVariable: Ir6, createUniqueName: Ot13, getGeneratedNameForNode: Bn7, createPrivateIdentifier: Mt13, createUniquePrivateName: $e12, getGeneratedPrivateNameForNode: qn8, createToken: ot10, createSuper: at12, createThis: Bt10, createNull: Lt10, createTrue: ct10, createFalse: ar9, createModifier: dt9, createModifiersFromModifierFlags: yn9, createQualifiedName: yt11, updateQualifiedName: _n7, createComputedPropertyName: tt13, updateComputedPropertyName: qt11, createTypeParameterDeclaration: tn8, updateTypeParameterDeclaration: sr10, createParameterDeclaration: mr7, updateParameterDeclaration: hr8, createDecorator: Fn6, updateDecorator: zn9, createPropertySignature: Or7, updatePropertySignature: Vn7, createPropertyDeclaration: yr7, updatePropertyDeclaration: L10, createMethodSignature: se12, updateMethodSignature: fe11, createMethodDeclaration: Te11, updateMethodDeclaration: He10, createConstructorDeclaration: lt9, updateConstructorDeclaration: Mr8, createGetAccessorDeclaration: Nn6, updateGetAccessorDeclaration: Wn8, createSetAccessorDeclaration: U11, updateSetAccessorDeclaration: K13, createCallSignature: xe11, updateCallSignature: Se12, createConstructSignature: we10, updateConstructSignature: me13, createIndexSignature: Ve9, updateIndexSignature: Ze11, createClassStaticBlockDeclaration: st10, updateClassStaticBlockDeclaration: Ct13, createTemplateLiteralTypeSpan: Ye10, updateTemplateLiteralTypeSpan: Ee10, createKeywordTypeNode: gn8, createTypePredicateNode: rt13, updateTypePredicateNode: on7, createTypeReferenceNode: Zr8, updateTypeReferenceNode: M11, createFunctionTypeNode: Ue10, updateFunctionTypeNode: u, createConstructorTypeNode: Me13, updateConstructorTypeNode: nn10, createTypeQueryNode: Dt10, updateTypeQueryNode: wt12, createTypeLiteralNode: Pt13, updateTypeLiteralNode: Ft11, createArrayTypeNode: Gn8, updateArrayTypeNode: ki10, createTupleTypeNode: cn9, updateTupleTypeNode: H12, createNamedTupleMember: le10, updateNamedTupleMember: qe11, createOptionalTypeNode: ve12, updateOptionalTypeNode: J14, createRestTypeNode: mt11, updateRestTypeNode: xt11, createUnionTypeNode: ql4, updateUnionTypeNode: C_, createIntersectionTypeNode: Lr8, updateIntersectionTypeNode: Le11, createConditionalTypeNode: pt11, updateConditionalTypeNode: Fl3, createInferTypeNode: Yn7, updateInferTypeNode: zl4, createImportTypeNode: _r8, updateImportTypeNode: oa3, createParenthesizedType: Qt11, updateParenthesizedType: At13, createThisTypeNode: P9, createTypeOperatorNode: Gt10, updateTypeOperatorNode: Jr6, createIndexedAccessTypeNode: or9, updateIndexedAccessTypeNode: Ka4, createMappedTypeNode: gt11, updateMappedTypeNode: jt9, createLiteralTypeNode: ei10, updateLiteralTypeNode: br7, createTemplateLiteralType: Wt10, updateTemplateLiteralType: Vl4, createObjectBindingPattern: D_, updateObjectBindingPattern: Wl4, createArrayBindingPattern: jr6, updateArrayBindingPattern: Gl4, createBindingElement: ca4, updateBindingElement: ti10, createArrayLiteralExpression: Za3, updateArrayLiteralExpression: P_, createObjectLiteralExpression: Ei10, updateObjectLiteralExpression: Yl4, createPropertyAccessExpression: e8 & 4 ? (n4, i4) => setEmitFlags(cr8(n4, i4), 262144) : cr8, updatePropertyAccessExpression: Hl4, createPropertyAccessChain: e8 & 4 ? (n4, i4, s4) => setEmitFlags(Ai9(n4, i4, s4), 262144) : Ai9, updatePropertyAccessChain: la3, createElementAccessExpression: Ci8, updateElementAccessExpression: Xl4, createElementAccessChain: O_, updateElementAccessChain: es8, createCallExpression: Di8, updateCallExpression: ua5, createCallChain: ts8, updateCallChain: L_, createNewExpression: bn7, updateNewExpression: ns8, createTaggedTemplateExpression: pa5, updateTaggedTemplateExpression: J_, createTypeAssertion: j_, updateTypeAssertion: R_, createParenthesizedExpression: rs8, updateParenthesizedExpression: U_, createFunctionExpression: is8, updateFunctionExpression: B_, createArrowFunction: as8, updateArrowFunction: q_, createDeleteExpression: F_, updateDeleteExpression: z_, createTypeOfExpression: fa4, updateTypeOfExpression: un8, createVoidExpression: ss9, updateVoidExpression: lr8, createAwaitExpression: V_, updateAwaitExpression: Rr7, createPrefixUnaryExpression: Ur8, updatePrefixUnaryExpression: $l4, createPostfixUnaryExpression: ni10, updatePostfixUnaryExpression: Ql4, createBinaryExpression: da5, updateBinaryExpression: Kl4, createConditionalExpression: G_, updateConditionalExpression: Y_, createTemplateExpression: H_, updateTemplateExpression: Hn8, createTemplateHead: $_, createTemplateMiddle: ma5, createTemplateTail: _s7, createNoSubstitutionTemplateLiteral: eu4, createTemplateLiteralLikeNode: ii10, createYieldExpression: os7, updateYieldExpression: tu3, createSpreadElement: Q_, updateSpreadElement: nu3, createClassExpression: K_, updateClassExpression: cs7, createOmittedExpression: ls7, createExpressionWithTypeArguments: Z_, updateExpressionWithTypeArguments: eo5, createAsExpression: pn8, updateAsExpression: ha2, createNonNullExpression: to5, updateNonNullExpression: no6, createSatisfiesExpression: us8, updateSatisfiesExpression: ro5, createNonNullChain: ps7, updateNonNullChain: In7, createMetaProperty: io5, updateMetaProperty: fs13, createTemplateSpan: Xn9, updateTemplateSpan: ya3, createSemicolonClassElement: ao5, createBlock: Br8, updateBlock: ru4, createVariableStatement: ds7, updateVariableStatement: so5, createEmptyStatement: _o3, createExpressionStatement: Ni9, updateExpressionStatement: oo6, createIfStatement: co5, updateIfStatement: lo5, createDoStatement: uo5, updateDoStatement: po6, createWhileStatement: fo5, updateWhileStatement: iu3, createForStatement: mo3, updateForStatement: ho3, createForInStatement: ms8, updateForInStatement: au3, createForOfStatement: yo3, updateForOfStatement: su3, createContinueStatement: go3, updateContinueStatement: _u4, createBreakStatement: hs8, updateBreakStatement: bo5, createReturnStatement: ys8, updateReturnStatement: ou3, createWithStatement: gs7, updateWithStatement: vo4, createSwitchStatement: bs8, updateSwitchStatement: ai10, createLabeledStatement: To4, updateLabeledStatement: xo4, createThrowStatement: So4, updateThrowStatement: cu3, createTryStatement: wo6, updateTryStatement: lu4, createDebuggerStatement: ko3, createVariableDeclaration: ga2, updateVariableDeclaration: Eo3, createVariableDeclarationList: vs9, updateVariableDeclarationList: uu4, createFunctionDeclaration: Ao3, updateFunctionDeclaration: Ts6, createClassDeclaration: Co3, updateClassDeclaration: ba3, createInterfaceDeclaration: Do3, updateInterfaceDeclaration: Po5, createTypeAliasDeclaration: _t10, updateTypeAliasDeclaration: vr6, createEnumDeclaration: xs8, updateEnumDeclaration: Tr7, createModuleDeclaration: No3, updateModuleDeclaration: kt12, createModuleBlock: xr6, updateModuleBlock: zt11, createCaseBlock: Io6, updateCaseBlock: fu4, createNamespaceExportDeclaration: Oo5, updateNamespaceExportDeclaration: Mo3, createImportEqualsDeclaration: Lo4, updateImportEqualsDeclaration: Jo5, createImportDeclaration: jo4, updateImportDeclaration: Ro3, createImportClause: Uo4, updateImportClause: Bo4, createAssertClause: Ss8, updateAssertClause: mu3, createAssertEntry: Ii8, updateAssertEntry: qo4, createImportTypeAssertionContainer: ws8, updateImportTypeAssertionContainer: Fo3, createImportAttributes: zo4, updateImportAttributes: ks8, createImportAttribute: Vo3, updateImportAttribute: Wo3, createNamespaceImport: Go3, updateNamespaceImport: hu4, createNamespaceExport: Yo4, updateNamespaceExport: yu5, createNamedImports: Ho3, updateNamedImports: Xo3, createImportSpecifier: Sr7, updateImportSpecifier: gu4, createExportAssignment: va4, updateExportAssignment: Oi9, createExportDeclaration: Ta3, updateExportDeclaration: $o3, createNamedExports: Es8, updateNamedExports: bu4, createExportSpecifier: xa5, updateExportSpecifier: vu4, createMissingDeclaration: Tu5, createExternalModuleReference: As8, updateExternalModuleReference: xu3, get createJSDocAllType() {
|
|
156673
156673
|
return c5(313);
|
|
156674
156674
|
}, get createJSDocUnknownType() {
|
|
156675
156675
|
return c5(314);
|
|
@@ -157644,7 +157644,7 @@ function wf2(e8, t25) {
|
|
|
157644
157644
|
}
|
|
157645
157645
|
return s4.flowNode = undefined, s4;
|
|
157646
157646
|
}
|
|
157647
|
-
function
|
|
157647
|
+
function fs13(n4, i4) {
|
|
157648
157648
|
return n4.name !== i4 ? j11(io5(n4.keywordToken, i4), n4) : n4;
|
|
157649
157649
|
}
|
|
157650
157650
|
function Xn9(n4, i4) {
|
|
@@ -163786,7 +163786,7 @@ ${Me13.join(`
|
|
|
163786
163786
|
function io5(o4, p4) {
|
|
163787
163787
|
return o4 === 39 ? (J14(o4), true) : Le11(59) ? true : p4 && u() === 39 ? (Ee10(A8._0_expected, nt12(59)), B8(), true) : false;
|
|
163788
163788
|
}
|
|
163789
|
-
function
|
|
163789
|
+
function fs13(o4, p4) {
|
|
163790
163790
|
let m7 = we10(), g5 = Ye10();
|
|
163791
163791
|
He10(!!(o4 & 1)), st10(!!(o4 & 2));
|
|
163792
163792
|
let b8 = o4 & 32 ? un8(17, cs7) : un8(16, () => p4 ? us8(g5) : ro5(g5));
|
|
@@ -163795,7 +163795,7 @@ ${Me13.join(`
|
|
|
163795
163795
|
function Xn9(o4) {
|
|
163796
163796
|
if (!J14(21))
|
|
163797
163797
|
return lr8();
|
|
163798
|
-
let p4 =
|
|
163798
|
+
let p4 = fs13(o4, true);
|
|
163799
163799
|
return J14(22), p4;
|
|
163800
163800
|
}
|
|
163801
163801
|
function ya3() {
|
|
@@ -164404,9 +164404,9 @@ ${Me13.join(`
|
|
|
164404
164404
|
let m7 = M11(), g5 = Ue10(), b8 = Uc2(), N9 = Zt11(b8, cl5) ? 2 : 0, Q12 = pn8(), _e12;
|
|
164405
164405
|
if (J14(21)) {
|
|
164406
164406
|
if (o4)
|
|
164407
|
-
_e12 =
|
|
164407
|
+
_e12 = fs13(N9, o4);
|
|
164408
164408
|
else {
|
|
164409
|
-
let ur9 =
|
|
164409
|
+
let ur9 = fs13(N9, o4);
|
|
164410
164410
|
if (!ur9)
|
|
164411
164411
|
return;
|
|
164412
164412
|
_e12 = ur9;
|
|
@@ -167028,11 +167028,11 @@ import { createRequire as __prettierCreateRequire } from "module";
|
|
|
167028
167028
|
import { fileURLToPath as __prettierFileUrlToPath } from "url";
|
|
167029
167029
|
import { dirname as __prettierDirname } from "path";
|
|
167030
167030
|
import path102 from "path";
|
|
167031
|
-
import * as
|
|
167031
|
+
import * as path11 from "path";
|
|
167032
167032
|
import * as url2 from "url";
|
|
167033
167033
|
import path52 from "path";
|
|
167034
167034
|
import * as path42 from "path";
|
|
167035
|
-
import * as
|
|
167035
|
+
import * as fs13 from "fs/promises";
|
|
167036
167036
|
import * as path22 from "path";
|
|
167037
167037
|
import process22 from "process";
|
|
167038
167038
|
import * as path32 from "path";
|
|
@@ -167043,7 +167043,7 @@ import fs22 from "fs/promises";
|
|
|
167043
167043
|
import path82 from "path";
|
|
167044
167044
|
import { pathToFileURL as pathToFileURL4 } from "url";
|
|
167045
167045
|
import assert3 from "assert";
|
|
167046
|
-
import { statSync as
|
|
167046
|
+
import { statSync as statSync2, realpathSync as realpathSync2 } from "fs";
|
|
167047
167047
|
import process4 from "process";
|
|
167048
167048
|
import { fileURLToPath as fileURLToPath4, pathToFileURL as pathToFileURL3 } from "url";
|
|
167049
167049
|
import path72 from "path";
|
|
@@ -167051,7 +167051,7 @@ import { builtinModules } from "module";
|
|
|
167051
167051
|
import { fileURLToPath as fileURLToPath3 } from "url";
|
|
167052
167052
|
import fs32 from "fs";
|
|
167053
167053
|
import path62 from "path";
|
|
167054
|
-
import { fileURLToPath as
|
|
167054
|
+
import { fileURLToPath as fileURLToPath2 } from "url";
|
|
167055
167055
|
import v8 from "v8";
|
|
167056
167056
|
import assert2 from "assert";
|
|
167057
167057
|
import { format, inspect } from "util";
|
|
@@ -167059,10 +167059,10 @@ import { createRequire as createRequire3 } from "module";
|
|
|
167059
167059
|
import { equal, ok, strictEqual } from "assert";
|
|
167060
167060
|
import path112 from "path";
|
|
167061
167061
|
import { fileURLToPath as fileURLToPath5 } from "url";
|
|
167062
|
-
import
|
|
167062
|
+
import path13 from "path";
|
|
167063
167063
|
import { pathToFileURL as pathToFileURL5 } from "url";
|
|
167064
|
-
import
|
|
167065
|
-
import
|
|
167064
|
+
import path12 from "path";
|
|
167065
|
+
import path14 from "path";
|
|
167066
167066
|
import url22 from "url";
|
|
167067
167067
|
function diffLines(oldStr, newStr, options8) {
|
|
167068
167068
|
return lineDiff.diff(oldStr, newStr, options8);
|
|
@@ -167578,7 +167578,7 @@ async function findInDirectory(nameOrNames, { typeCheck, cwd, allowSymlinks = tr
|
|
|
167578
167578
|
}
|
|
167579
167579
|
async function safeStat(path15, allowSymlinks = true) {
|
|
167580
167580
|
try {
|
|
167581
|
-
return await (allowSymlinks ?
|
|
167581
|
+
return await (allowSymlinks ? fs13.stat : fs13.lstat)(path15);
|
|
167582
167582
|
} catch {}
|
|
167583
167583
|
}
|
|
167584
167584
|
function findFile(nameOrNames, options8) {
|
|
@@ -168732,7 +168732,7 @@ async function readFile2(file2) {
|
|
|
168732
168732
|
throw new Error(`Unable to read '${file2}': ${error52.message}`);
|
|
168733
168733
|
}
|
|
168734
168734
|
}
|
|
168735
|
-
async function
|
|
168735
|
+
async function readJson2(file2) {
|
|
168736
168736
|
const content = await read_file_default(file2);
|
|
168737
168737
|
try {
|
|
168738
168738
|
return parseJson(content);
|
|
@@ -168748,7 +168748,7 @@ async function importModuleDefault(file2) {
|
|
|
168748
168748
|
}
|
|
168749
168749
|
async function readBunPackageJson(file2) {
|
|
168750
168750
|
try {
|
|
168751
|
-
return await
|
|
168751
|
+
return await readJson2(file2);
|
|
168752
168752
|
} catch (error52) {
|
|
168753
168753
|
try {
|
|
168754
168754
|
return await importModuleDefault(file2);
|
|
@@ -168762,11 +168762,11 @@ async function loadConfigFromPackageYaml(file2) {
|
|
|
168762
168762
|
}
|
|
168763
168763
|
async function loadYaml(file2) {
|
|
168764
168764
|
const content = await read_file_default(file2);
|
|
168765
|
-
if (!
|
|
168766
|
-
({ __parsePrettierYamlConfig:
|
|
168765
|
+
if (!parseYaml) {
|
|
168766
|
+
({ __parsePrettierYamlConfig: parseYaml } = await Promise.resolve().then(() => (init_yaml(), exports_yaml)));
|
|
168767
168767
|
}
|
|
168768
168768
|
try {
|
|
168769
|
-
return
|
|
168769
|
+
return parseYaml(content);
|
|
168770
168770
|
} catch (error52) {
|
|
168771
168771
|
error52.message = `YAML Error in ${file2}:
|
|
168772
168772
|
${error52.message}`;
|
|
@@ -168933,7 +168933,7 @@ function read2(jsonPath, { base, specifier }) {
|
|
|
168933
168933
|
parsed = JSON.parse(string4);
|
|
168934
168934
|
} catch (error_) {
|
|
168935
168935
|
const cause = error_;
|
|
168936
|
-
const error52 = new ERR_INVALID_PACKAGE_CONFIG(jsonPath, (base ? `"${specifier}" from ` : "") +
|
|
168936
|
+
const error52 = new ERR_INVALID_PACKAGE_CONFIG(jsonPath, (base ? `"${specifier}" from ` : "") + fileURLToPath2(base || specifier), cause.message);
|
|
168937
168937
|
error52.cause = cause;
|
|
168938
168938
|
throw error52;
|
|
168939
168939
|
}
|
|
@@ -168964,7 +168964,7 @@ function getPackageScopeConfig(resolved) {
|
|
|
168964
168964
|
if (packageJSONPath2.endsWith("node_modules/package.json")) {
|
|
168965
168965
|
break;
|
|
168966
168966
|
}
|
|
168967
|
-
const packageConfig = read2(
|
|
168967
|
+
const packageConfig = read2(fileURLToPath2(packageJSONUrl), {
|
|
168968
168968
|
specifier: resolved
|
|
168969
168969
|
});
|
|
168970
168970
|
if (packageConfig.exists) {
|
|
@@ -168976,7 +168976,7 @@ function getPackageScopeConfig(resolved) {
|
|
|
168976
168976
|
break;
|
|
168977
168977
|
}
|
|
168978
168978
|
}
|
|
168979
|
-
const packageJSONPath =
|
|
168979
|
+
const packageJSONPath = fileURLToPath2(packageJSONUrl);
|
|
168980
168980
|
return {
|
|
168981
168981
|
pjsonPath: packageJSONPath,
|
|
168982
168982
|
exists: false,
|
|
@@ -168997,7 +168997,7 @@ function getDataProtocolModuleFormat(parsed) {
|
|
|
168997
168997
|
const { 1: mime } = /^([^/]+\/[^;,]+)[^,]*?(;base64)?,/.exec(parsed.pathname) || [null, null, null];
|
|
168998
168998
|
return mimeToFormat(mime);
|
|
168999
168999
|
}
|
|
169000
|
-
function
|
|
169000
|
+
function extname(url3) {
|
|
169001
169001
|
const pathname = url3.pathname;
|
|
169002
169002
|
let index = pathname.length;
|
|
169003
169003
|
while (index--) {
|
|
@@ -169012,7 +169012,7 @@ function extname2(url3) {
|
|
|
169012
169012
|
return "";
|
|
169013
169013
|
}
|
|
169014
169014
|
function getFileProtocolModuleFormat(url3, _context, ignoreErrors) {
|
|
169015
|
-
const value =
|
|
169015
|
+
const value = extname(url3);
|
|
169016
169016
|
if (value === ".js") {
|
|
169017
169017
|
const packageType = getPackageType(url3);
|
|
169018
169018
|
if (packageType !== "none") {
|
|
@@ -169087,11 +169087,11 @@ Default "index" lookups for the main are deprecated for ES modules.`, "Deprecati
|
|
|
169087
169087
|
}
|
|
169088
169088
|
function tryStatSync(path15) {
|
|
169089
169089
|
try {
|
|
169090
|
-
return
|
|
169090
|
+
return statSync2(path15);
|
|
169091
169091
|
} catch {}
|
|
169092
169092
|
}
|
|
169093
169093
|
function fileExists(url3) {
|
|
169094
|
-
const stats =
|
|
169094
|
+
const stats = statSync2(url3, { throwIfNoEntry: false });
|
|
169095
169095
|
const isFile2 = stats ? stats.isFile() : undefined;
|
|
169096
169096
|
return isFile2 === null || isFile2 === undefined ? false : isFile2;
|
|
169097
169097
|
}
|
|
@@ -169610,7 +169610,7 @@ function defaultResolve(specifier, context = {}) {
|
|
|
169610
169610
|
format: defaultGetFormatWithoutErrors(url3, { parentURL })
|
|
169611
169611
|
};
|
|
169612
169612
|
}
|
|
169613
|
-
function
|
|
169613
|
+
function resolve2(specifier, parent) {
|
|
169614
169614
|
if (!parent) {
|
|
169615
169615
|
throw new Error("Please pass `parent`: `import-meta-resolve` cannot ponyfill that");
|
|
169616
169616
|
}
|
|
@@ -169625,7 +169625,7 @@ function resolve22(specifier, parent) {
|
|
|
169625
169625
|
}
|
|
169626
169626
|
}
|
|
169627
169627
|
function importFromFile(specifier, parent) {
|
|
169628
|
-
const url3 =
|
|
169628
|
+
const url3 = resolve2(specifier, pathToFileURL4(parent).href);
|
|
169629
169629
|
return import(url3);
|
|
169630
169630
|
}
|
|
169631
169631
|
function requireFromFile(id2, parent) {
|
|
@@ -171754,17 +171754,17 @@ function loadBuiltinPlugins() {
|
|
|
171754
171754
|
return builtin_plugins_proxy_default;
|
|
171755
171755
|
}
|
|
171756
171756
|
function importFromDirectory(specifier, directory) {
|
|
171757
|
-
return import_from_file_default(specifier,
|
|
171757
|
+
return import_from_file_default(specifier, path12.join(directory, "noop.js"));
|
|
171758
171758
|
}
|
|
171759
171759
|
async function importPlugin(name, cwd) {
|
|
171760
171760
|
if (isUrl(name)) {
|
|
171761
171761
|
return import(name);
|
|
171762
171762
|
}
|
|
171763
|
-
if (
|
|
171763
|
+
if (path13.isAbsolute(name)) {
|
|
171764
171764
|
return import(pathToFileURL5(name).href);
|
|
171765
171765
|
}
|
|
171766
171766
|
try {
|
|
171767
|
-
return await import(pathToFileURL5(
|
|
171767
|
+
return await import(pathToFileURL5(path13.resolve(name)).href);
|
|
171768
171768
|
} catch {
|
|
171769
171769
|
return import_from_directory_default(name, cwd);
|
|
171770
171770
|
}
|
|
@@ -171794,8 +171794,8 @@ function loadPlugins(plugins = []) {
|
|
|
171794
171794
|
}
|
|
171795
171795
|
function getRelativePath(file2, ignoreFile) {
|
|
171796
171796
|
const ignoreFilePath = toPath(ignoreFile);
|
|
171797
|
-
const filePath = isUrl(file2) ? url22.fileURLToPath(file2) :
|
|
171798
|
-
return
|
|
171797
|
+
const filePath = isUrl(file2) ? url22.fileURLToPath(file2) : path14.resolve(file2);
|
|
171798
|
+
return path14.relative(ignoreFilePath ? path14.dirname(ignoreFilePath) : process.cwd(), filePath);
|
|
171799
171799
|
}
|
|
171800
171800
|
async function createSingleIsIgnoredFunction(ignoreFile, withNodeModules) {
|
|
171801
171801
|
let content = "";
|
|
@@ -172120,13 +172120,13 @@ var require3, __filename2, __dirname2, __create2, __defProp3, __getOwnPropDesc,
|
|
|
172120
172120
|
editLength++;
|
|
172121
172121
|
};
|
|
172122
172122
|
if (callback) {
|
|
172123
|
-
(function
|
|
172123
|
+
(function exec2() {
|
|
172124
172124
|
setTimeout(function() {
|
|
172125
172125
|
if (editLength > maxEditLength || Date.now() > abortAfterTimestamp) {
|
|
172126
172126
|
return callback(undefined);
|
|
172127
172127
|
}
|
|
172128
172128
|
if (!execEditLength()) {
|
|
172129
|
-
|
|
172129
|
+
exec2();
|
|
172130
172130
|
}
|
|
172131
172131
|
}, 0);
|
|
172132
172132
|
})();
|
|
@@ -172478,7 +172478,7 @@ var require3, __filename2, __dirname2, __create2, __defProp3, __getOwnPropDesc,
|
|
|
172478
172478
|
}
|
|
172479
172479
|
}
|
|
172480
172480
|
}
|
|
172481
|
-
}, errors_exports, ConfigError, UndefinedParserError, ArgExpansionBailout, create_mockable_default, mockable, mockable_default, import_micromatch, URL_STRING_PREFIX = "file:", isUrlInstance = (value) => value instanceof URL, isUrlString = (value) => typeof value === "string" && value.startsWith(URL_STRING_PREFIX), isUrl = (urlOrPath) => isUrlInstance(urlOrPath) || isUrlString(urlOrPath), toPath = (urlOrPath) => isUrl(urlOrPath) ? url2.fileURLToPath(urlOrPath) : urlOrPath, toAbsolutePath = (urlOrPath) => urlOrPath ?
|
|
172481
|
+
}, errors_exports, ConfigError, UndefinedParserError, ArgExpansionBailout, create_mockable_default, mockable, mockable_default, import_micromatch, URL_STRING_PREFIX = "file:", isUrlInstance = (value) => value instanceof URL, isUrlString = (value) => typeof value === "string" && value.startsWith(URL_STRING_PREFIX), isUrl = (urlOrPath) => isUrlInstance(urlOrPath) || isUrlString(urlOrPath), toPath = (urlOrPath) => isUrl(urlOrPath) ? url2.fileURLToPath(urlOrPath) : urlOrPath, toAbsolutePath = (urlOrPath) => urlOrPath ? path11.resolve(isUrl(urlOrPath) ? url2.fileURLToPath(urlOrPath) : urlOrPath) : urlOrPath, partition_default, import_editorconfig, isFile = (stats) => stats?.isFile(), isDirectory = (stats) => stats?.isDirectory(), iterate_directory_up_default, Searcher = class {
|
|
172482
172482
|
#stopDirectory;
|
|
172483
172483
|
#cache;
|
|
172484
172484
|
#resultCache = /* @__PURE__ */ new Map;
|
|
@@ -172539,7 +172539,7 @@ var require3, __filename2, __dirname2, __create2, __defProp3, __getOwnPropDesc,
|
|
|
172539
172539
|
return { line: Number(line3), column: Number(column2) };
|
|
172540
172540
|
}
|
|
172541
172541
|
return indexToPosition(string4, Number(index), { oneBased: true });
|
|
172542
|
-
}, addCodePointToUnexpectedToken = (message) => message.replace(/(?<=^Unexpected token )(?<quote>')?(.)\k<quote>/, (_9, _quote, token2) => `"${token2}"(${getCodePoint(token2)})`), TomlError, DATE_TIME_RE, TomlDate, INT_REGEX, FLOAT_REGEX, LEADING_ZERO, ESCAPE_REGEX, ESC_MAP, KEY_PART_RE, read_file_default, loadConfigFromPackageJson,
|
|
172542
|
+
}, addCodePointToUnexpectedToken = (message) => message.replace(/(?<=^Unexpected token )(?<quote>')?(.)\k<quote>/, (_9, _quote, token2) => `"${token2}"(${getCodePoint(token2)})`), TomlError, DATE_TIME_RE, TomlDate, INT_REGEX, FLOAT_REGEX, LEADING_ZERO, ESCAPE_REGEX, ESC_MAP, KEY_PART_RE, read_file_default, loadConfigFromPackageJson, parseYaml, loaders, loaders_default, CONFIG_FILE_NAMES, config_searcher_default, own, classRegExp, kTypes, codes, messages, nodeInternalPrefix = "__node_internal_", userStackTraceLimit, captureLargerStackTrace, hasOwnProperty2, ERR_INVALID_PACKAGE_CONFIG, cache, ERR_UNKNOWN_FILE_EXTENSION, hasOwnProperty22, extensionFormatMap, protocolHandlers, ERR_INVALID_ARG_VALUE, DEFAULT_CONDITIONS, DEFAULT_CONDITIONS_SET, RegExpPrototypeSymbolReplace, ERR_NETWORK_IMPORT_DISALLOWED, ERR_INVALID_MODULE_SPECIFIER, ERR_INVALID_PACKAGE_CONFIG2, ERR_INVALID_PACKAGE_TARGET, ERR_MODULE_NOT_FOUND, ERR_PACKAGE_IMPORT_NOT_DEFINED, ERR_PACKAGE_PATH_NOT_EXPORTED, ERR_UNSUPPORTED_DIR_IMPORT, ERR_UNSUPPORTED_RESOLVE_REQUEST, own2, invalidSegmentRegEx, deprecatedInvalidSegmentRegEx, invalidPackageNameRegEx, patternRegEx, encodedSeparatorRegEx, emittedPackageWarnings, doubleSlashRegEx, import_from_file_default, require_from_file_default, requireErrorCodesShouldBeIgnored, load_external_config_default, load_config_default, loadCache, searchCache, OPTIONAL_OBJECT2 = 1, createMethodShim2 = (methodName, getImplementation) => (flags, object2, ...arguments_) => {
|
|
172543
172543
|
if (flags | OPTIONAL_OBJECT2 && (object2 === undefined || object2 === null)) {
|
|
172544
172544
|
return;
|
|
172545
172545
|
}
|
|
@@ -173607,7 +173607,7 @@ var init_prettier = __esm(() => {
|
|
|
173607
173607
|
var fill2 = require_fill_range();
|
|
173608
173608
|
var utils2 = require_utils4();
|
|
173609
173609
|
var compile = (ast, options8 = {}) => {
|
|
173610
|
-
const
|
|
173610
|
+
const walk = (node, parent = {}) => {
|
|
173611
173611
|
const invalidBlock = utils2.isInvalidBrace(parent);
|
|
173612
173612
|
const invalidNode = node.invalid === true && options8.escapeInvalid === true;
|
|
173613
173613
|
const invalid = invalidBlock === true || invalidNode === true;
|
|
@@ -173641,12 +173641,12 @@ var init_prettier = __esm(() => {
|
|
|
173641
173641
|
}
|
|
173642
173642
|
if (node.nodes) {
|
|
173643
173643
|
for (const child of node.nodes) {
|
|
173644
|
-
output +=
|
|
173644
|
+
output += walk(child, node);
|
|
173645
173645
|
}
|
|
173646
173646
|
}
|
|
173647
173647
|
return output;
|
|
173648
173648
|
};
|
|
173649
|
-
return
|
|
173649
|
+
return walk(ast);
|
|
173650
173650
|
};
|
|
173651
173651
|
module.exports = compile;
|
|
173652
173652
|
}
|
|
@@ -173682,7 +173682,7 @@ var init_prettier = __esm(() => {
|
|
|
173682
173682
|
};
|
|
173683
173683
|
var expand = (ast, options8 = {}) => {
|
|
173684
173684
|
const rangeLimit = options8.rangeLimit === undefined ? 1000 : options8.rangeLimit;
|
|
173685
|
-
const
|
|
173685
|
+
const walk = (node, parent = {}) => {
|
|
173686
173686
|
node.queue = [];
|
|
173687
173687
|
let p4 = parent;
|
|
173688
173688
|
let q12 = parent.queue;
|
|
@@ -173735,12 +173735,12 @@ var init_prettier = __esm(() => {
|
|
|
173735
173735
|
continue;
|
|
173736
173736
|
}
|
|
173737
173737
|
if (child.nodes) {
|
|
173738
|
-
|
|
173738
|
+
walk(child, node);
|
|
173739
173739
|
}
|
|
173740
173740
|
}
|
|
173741
173741
|
return queue;
|
|
173742
173742
|
};
|
|
173743
|
-
return utils2.flatten(
|
|
173743
|
+
return utils2.flatten(walk(ast));
|
|
173744
173744
|
};
|
|
173745
173745
|
module.exports = expand;
|
|
173746
173746
|
}
|
|
@@ -175832,15 +175832,15 @@ var init_prettier = __esm(() => {
|
|
|
175832
175832
|
exports.removeDuplicateSlashes = removeDuplicateSlashes;
|
|
175833
175833
|
function partitionAbsoluteAndRelative(patterns) {
|
|
175834
175834
|
const absolute = [];
|
|
175835
|
-
const
|
|
175835
|
+
const relative2 = [];
|
|
175836
175836
|
for (const pattern of patterns) {
|
|
175837
175837
|
if (isAbsolute(pattern)) {
|
|
175838
175838
|
absolute.push(pattern);
|
|
175839
175839
|
} else {
|
|
175840
|
-
|
|
175840
|
+
relative2.push(pattern);
|
|
175841
175841
|
}
|
|
175842
175842
|
}
|
|
175843
|
-
return [absolute,
|
|
175843
|
+
return [absolute, relative2];
|
|
175844
175844
|
}
|
|
175845
175845
|
exports.partitionAbsoluteAndRelative = partitionAbsoluteAndRelative;
|
|
175846
175846
|
function isAbsolute(pattern) {
|
|
@@ -175989,10 +175989,10 @@ var init_prettier = __esm(() => {
|
|
|
175989
175989
|
"node_modules/fast-glob/out/utils/string.js"(exports) {
|
|
175990
175990
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
175991
175991
|
exports.isEmpty = exports.isString = undefined;
|
|
175992
|
-
function
|
|
175992
|
+
function isString(input) {
|
|
175993
175993
|
return typeof input === "string";
|
|
175994
175994
|
}
|
|
175995
|
-
exports.isString =
|
|
175995
|
+
exports.isString = isString;
|
|
175996
175996
|
function isEmpty(input) {
|
|
175997
175997
|
return input === "";
|
|
175998
175998
|
}
|
|
@@ -176834,42 +176834,42 @@ var init_prettier = __esm(() => {
|
|
|
176834
176834
|
queue.drained = drained;
|
|
176835
176835
|
return queue;
|
|
176836
176836
|
function push2(value) {
|
|
176837
|
-
var p4 = new Promise(function(
|
|
176837
|
+
var p4 = new Promise(function(resolve3, reject) {
|
|
176838
176838
|
pushCb(value, function(err2, result) {
|
|
176839
176839
|
if (err2) {
|
|
176840
176840
|
reject(err2);
|
|
176841
176841
|
return;
|
|
176842
176842
|
}
|
|
176843
|
-
|
|
176843
|
+
resolve3(result);
|
|
176844
176844
|
});
|
|
176845
176845
|
});
|
|
176846
176846
|
p4.catch(noop2);
|
|
176847
176847
|
return p4;
|
|
176848
176848
|
}
|
|
176849
176849
|
function unshift(value) {
|
|
176850
|
-
var p4 = new Promise(function(
|
|
176850
|
+
var p4 = new Promise(function(resolve3, reject) {
|
|
176851
176851
|
unshiftCb(value, function(err2, result) {
|
|
176852
176852
|
if (err2) {
|
|
176853
176853
|
reject(err2);
|
|
176854
176854
|
return;
|
|
176855
176855
|
}
|
|
176856
|
-
|
|
176856
|
+
resolve3(result);
|
|
176857
176857
|
});
|
|
176858
176858
|
});
|
|
176859
176859
|
p4.catch(noop2);
|
|
176860
176860
|
return p4;
|
|
176861
176861
|
}
|
|
176862
176862
|
function drained() {
|
|
176863
|
-
var p4 = new Promise(function(
|
|
176863
|
+
var p4 = new Promise(function(resolve3) {
|
|
176864
176864
|
process.nextTick(function() {
|
|
176865
176865
|
if (queue.idle()) {
|
|
176866
|
-
|
|
176866
|
+
resolve3();
|
|
176867
176867
|
} else {
|
|
176868
176868
|
var previousDrain = queue.drain;
|
|
176869
176869
|
queue.drain = function() {
|
|
176870
176870
|
if (typeof previousDrain === "function")
|
|
176871
176871
|
previousDrain();
|
|
176872
|
-
|
|
176872
|
+
resolve3();
|
|
176873
176873
|
queue.drain = previousDrain;
|
|
176874
176874
|
};
|
|
176875
176875
|
}
|
|
@@ -177213,14 +177213,14 @@ var init_prettier = __esm(() => {
|
|
|
177213
177213
|
var sync_1 = require_sync4();
|
|
177214
177214
|
var settings_1 = require_settings3();
|
|
177215
177215
|
exports.Settings = settings_1.default;
|
|
177216
|
-
function
|
|
177216
|
+
function walk(directory, optionsOrSettingsOrCallback, callback) {
|
|
177217
177217
|
if (typeof optionsOrSettingsOrCallback === "function") {
|
|
177218
177218
|
new async_1.default(directory, getSettings()).read(optionsOrSettingsOrCallback);
|
|
177219
177219
|
return;
|
|
177220
177220
|
}
|
|
177221
177221
|
new async_1.default(directory, getSettings(optionsOrSettingsOrCallback)).read(callback);
|
|
177222
177222
|
}
|
|
177223
|
-
exports.walk =
|
|
177223
|
+
exports.walk = walk;
|
|
177224
177224
|
function walkSync(directory, optionsOrSettings) {
|
|
177225
177225
|
const settings = getSettings(optionsOrSettings);
|
|
177226
177226
|
const provider = new sync_1.default(directory, settings);
|
|
@@ -177321,9 +177321,9 @@ var init_prettier = __esm(() => {
|
|
|
177321
177321
|
});
|
|
177322
177322
|
}
|
|
177323
177323
|
_getStat(filepath) {
|
|
177324
|
-
return new Promise((
|
|
177324
|
+
return new Promise((resolve3, reject) => {
|
|
177325
177325
|
this._stat(filepath, this._fsStatSettings, (error52, stats) => {
|
|
177326
|
-
return error52 === null ?
|
|
177326
|
+
return error52 === null ? resolve3(stats) : reject(error52);
|
|
177327
177327
|
});
|
|
177328
177328
|
});
|
|
177329
177329
|
}
|
|
@@ -177344,10 +177344,10 @@ var init_prettier = __esm(() => {
|
|
|
177344
177344
|
this._readerStream = new stream_1.default(this._settings);
|
|
177345
177345
|
}
|
|
177346
177346
|
dynamic(root2, options8) {
|
|
177347
|
-
return new Promise((
|
|
177347
|
+
return new Promise((resolve3, reject) => {
|
|
177348
177348
|
this._walkAsync(root2, options8, (error52, entries) => {
|
|
177349
177349
|
if (error52 === null) {
|
|
177350
|
-
|
|
177350
|
+
resolve3(entries);
|
|
177351
177351
|
} else {
|
|
177352
177352
|
reject(error52);
|
|
177353
177353
|
}
|
|
@@ -177357,10 +177357,10 @@ var init_prettier = __esm(() => {
|
|
|
177357
177357
|
async static(patterns, options8) {
|
|
177358
177358
|
const entries = [];
|
|
177359
177359
|
const stream = this._readerStream.static(patterns, options8);
|
|
177360
|
-
return new Promise((
|
|
177360
|
+
return new Promise((resolve3, reject) => {
|
|
177361
177361
|
stream.once("error", reject);
|
|
177362
177362
|
stream.on("data", (entry) => entries.push(entry));
|
|
177363
|
-
stream.once("end", () =>
|
|
177363
|
+
stream.once("end", () => resolve3(entries));
|
|
177364
177364
|
});
|
|
177365
177365
|
}
|
|
177366
177366
|
};
|
|
@@ -179980,7 +179980,7 @@ globstar while`, file2, fr10, pattern, pr8, swallowee);
|
|
|
179980
179980
|
require_ini = __commonJS2({
|
|
179981
179981
|
"node_modules/editorconfig/src/lib/ini.js"(exports) {
|
|
179982
179982
|
var __awaiter = exports && exports.__awaiter || function(thisArg, _arguments, P9, generator) {
|
|
179983
|
-
return new (P9 || (P9 = Promise))(function(
|
|
179983
|
+
return new (P9 || (P9 = Promise))(function(resolve3, reject) {
|
|
179984
179984
|
function fulfilled(value) {
|
|
179985
179985
|
try {
|
|
179986
179986
|
step(generator.next(value));
|
|
@@ -179996,7 +179996,7 @@ globstar while`, file2, fr10, pattern, pr8, swallowee);
|
|
|
179996
179996
|
}
|
|
179997
179997
|
}
|
|
179998
179998
|
function step(result) {
|
|
179999
|
-
result.done ?
|
|
179999
|
+
result.done ? resolve3(result.value) : new P9(function(resolve4) {
|
|
180000
180000
|
resolve4(result.value);
|
|
180001
180001
|
}).then(fulfilled, rejected);
|
|
180002
180002
|
}
|
|
@@ -180101,13 +180101,13 @@ globstar while`, file2, fr10, pattern, pr8, swallowee);
|
|
|
180101
180101
|
function parse7(file2) {
|
|
180102
180102
|
return __awaiter(this, undefined, undefined, function() {
|
|
180103
180103
|
return __generator(this, function(_a9) {
|
|
180104
|
-
return [2, new Promise(function(
|
|
180104
|
+
return [2, new Promise(function(resolve3, reject) {
|
|
180105
180105
|
fs42.readFile(file2, "utf8", function(err2, data) {
|
|
180106
180106
|
if (err2) {
|
|
180107
180107
|
reject(err2);
|
|
180108
180108
|
return;
|
|
180109
180109
|
}
|
|
180110
|
-
|
|
180110
|
+
resolve3(parseString2(data));
|
|
180111
180111
|
});
|
|
180112
180112
|
})];
|
|
180113
180113
|
});
|
|
@@ -180209,7 +180209,7 @@ globstar while`, file2, fr10, pattern, pr8, swallowee);
|
|
|
180209
180209
|
require_src3 = __commonJS2({
|
|
180210
180210
|
"node_modules/editorconfig/src/index.js"(exports) {
|
|
180211
180211
|
var __awaiter = exports && exports.__awaiter || function(thisArg, _arguments, P9, generator) {
|
|
180212
|
-
return new (P9 || (P9 = Promise))(function(
|
|
180212
|
+
return new (P9 || (P9 = Promise))(function(resolve3, reject) {
|
|
180213
180213
|
function fulfilled(value) {
|
|
180214
180214
|
try {
|
|
180215
180215
|
step(generator.next(value));
|
|
@@ -180225,7 +180225,7 @@ globstar while`, file2, fr10, pattern, pr8, swallowee);
|
|
|
180225
180225
|
}
|
|
180226
180226
|
}
|
|
180227
180227
|
function step(result) {
|
|
180228
|
-
result.done ?
|
|
180228
|
+
result.done ? resolve3(result.value) : new P9(function(resolve4) {
|
|
180229
180229
|
resolve4(result.value);
|
|
180230
180230
|
}).then(fulfilled, rejected);
|
|
180231
180231
|
}
|
|
@@ -180454,9 +180454,9 @@ globstar while`, file2, fr10, pattern, pr8, swallowee);
|
|
|
180454
180454
|
return __awaiter(this, undefined, undefined, function() {
|
|
180455
180455
|
return __generator(this, function(_a9) {
|
|
180456
180456
|
return [2, Promise.all(filepaths.map(function(name) {
|
|
180457
|
-
return new Promise(function(
|
|
180457
|
+
return new Promise(function(resolve3) {
|
|
180458
180458
|
fs42.readFile(name, "utf8", function(err2, data) {
|
|
180459
|
-
|
|
180459
|
+
resolve3({
|
|
180460
180460
|
name,
|
|
180461
180461
|
contents: err2 ? "" : data
|
|
180462
180462
|
});
|
|
@@ -181190,8 +181190,8 @@ globstar while`, file2, fr10, pattern, pr8, swallowee);
|
|
|
181190
181190
|
}
|
|
181191
181191
|
};
|
|
181192
181192
|
var makeRegexPrefix = (pattern) => REPLACERS.reduce((prev, [matcher, replacer]) => prev.replace(matcher, replacer.bind(pattern)), pattern);
|
|
181193
|
-
var
|
|
181194
|
-
var checkPattern = (pattern) => pattern &&
|
|
181193
|
+
var isString = (subject) => typeof subject === "string";
|
|
181194
|
+
var checkPattern = (pattern) => pattern && isString(pattern) && !REGEX_TEST_BLANK_LINE.test(pattern) && !REGEX_INVALID_TRAILING_BACKSLASH.test(pattern) && pattern.indexOf("#") !== 0;
|
|
181195
181195
|
var splitPattern = (pattern) => pattern.split(REGEX_SPLITALL_CRLF).filter(Boolean);
|
|
181196
181196
|
var IgnoreRule = class {
|
|
181197
181197
|
constructor(pattern, mark, body, ignoreCase, negative, prefix) {
|
|
@@ -181247,7 +181247,7 @@ globstar while`, file2, fr10, pattern, pr8, swallowee);
|
|
|
181247
181247
|
this._added = true;
|
|
181248
181248
|
return;
|
|
181249
181249
|
}
|
|
181250
|
-
if (
|
|
181250
|
+
if (isString(pattern)) {
|
|
181251
181251
|
pattern = {
|
|
181252
181252
|
pattern
|
|
181253
181253
|
};
|
|
@@ -181260,7 +181260,7 @@ globstar while`, file2, fr10, pattern, pr8, swallowee);
|
|
|
181260
181260
|
}
|
|
181261
181261
|
add(pattern) {
|
|
181262
181262
|
this._added = false;
|
|
181263
|
-
makeArray(
|
|
181263
|
+
makeArray(isString(pattern) ? splitPattern(pattern) : pattern).forEach(this._add, this);
|
|
181264
181264
|
return this._added;
|
|
181265
181265
|
}
|
|
181266
181266
|
test(path15, checkUnignored, mode) {
|
|
@@ -181294,7 +181294,7 @@ globstar while`, file2, fr10, pattern, pr8, swallowee);
|
|
|
181294
181294
|
throw new Ctor(message);
|
|
181295
181295
|
};
|
|
181296
181296
|
var checkPath = (path15, originalPath, doThrow) => {
|
|
181297
|
-
if (!
|
|
181297
|
+
if (!isString(path15)) {
|
|
181298
181298
|
return doThrow(`path must be a string, but got \`${originalPath}\``, TypeError);
|
|
181299
181299
|
}
|
|
181300
181300
|
if (!path15) {
|
|
@@ -182518,13 +182518,13 @@ ${codeblock}`, options8);
|
|
|
182518
182518
|
const { prettier } = await readBunPackageJson(file2);
|
|
182519
182519
|
return prettier;
|
|
182520
182520
|
} : async function loadConfigFromPackageJson2(file2) {
|
|
182521
|
-
const { prettier } = await
|
|
182521
|
+
const { prettier } = await readJson2(file2);
|
|
182522
182522
|
return prettier;
|
|
182523
182523
|
};
|
|
182524
182524
|
loaders = {
|
|
182525
182525
|
".toml": loadToml,
|
|
182526
182526
|
".json5": loadJson5,
|
|
182527
|
-
".json":
|
|
182527
|
+
".json": readJson2,
|
|
182528
182528
|
".js": importModuleDefault,
|
|
182529
182529
|
".mjs": importModuleDefault,
|
|
182530
182530
|
".cjs": importModuleDefault,
|
|
@@ -184150,7 +184150,7 @@ The range will extend backwards to the start of the first line containing the se
|
|
|
184150
184150
|
cache2 = /* @__PURE__ */ new Map;
|
|
184151
184151
|
load_plugins_default = loadPlugins;
|
|
184152
184152
|
import_ignore = __toESM2(require_ignore(), 1);
|
|
184153
|
-
slash =
|
|
184153
|
+
slash = path14.sep === "\\" ? (filePath) => method_replace_all_default2(0, filePath, "\\", "/") : (filePath) => filePath;
|
|
184154
184154
|
object_omit_default = omit2;
|
|
184155
184155
|
get_file_info_default = getFileInfo;
|
|
184156
184156
|
public_exports2 = {};
|
|
@@ -184260,12 +184260,12 @@ var {
|
|
|
184260
184260
|
|
|
184261
184261
|
// src/cli.ts
|
|
184262
184262
|
import { realpathSync as realpathSync3 } from "fs";
|
|
184263
|
-
import
|
|
184264
|
-
import { fileURLToPath as
|
|
184263
|
+
import path20 from "path";
|
|
184264
|
+
import { fileURLToPath as fileURLToPath9 } from "url";
|
|
184265
184265
|
// package.json
|
|
184266
184266
|
var package_default = {
|
|
184267
184267
|
name: "@eigenpal/cli",
|
|
184268
|
-
version: "0.10.
|
|
184268
|
+
version: "0.10.24",
|
|
184269
184269
|
description: "Eigenpal CLI — author and run document workflows from your terminal. Agent-ready.",
|
|
184270
184270
|
keywords: [
|
|
184271
184271
|
"eigenpal",
|
|
@@ -184341,8 +184341,8 @@ var package_default = {
|
|
|
184341
184341
|
};
|
|
184342
184342
|
|
|
184343
184343
|
// src/commands/agents/index.ts
|
|
184344
|
-
import { existsSync as
|
|
184345
|
-
import
|
|
184344
|
+
import { existsSync as existsSync12 } from "node:fs";
|
|
184345
|
+
import path17 from "node:path";
|
|
184346
184346
|
|
|
184347
184347
|
// src/lib/client.ts
|
|
184348
184348
|
class ApiError extends Error {
|
|
@@ -184602,6 +184602,7 @@ var env = createEnv({
|
|
|
184602
184602
|
EIGENPAL_TENANT_ID: exports_external.string().optional(),
|
|
184603
184603
|
EIGENPAL_DIR: exports_external.string().optional(),
|
|
184604
184604
|
EIGENPAL_PROFILE: exports_external.string().optional(),
|
|
184605
|
+
EIGENPAL_EVAL_GRACE_MS: exports_external.string().optional(),
|
|
184605
184606
|
DEBUG: exports_external.string().optional(),
|
|
184606
184607
|
NO_COLOR: exports_external.string().optional(),
|
|
184607
184608
|
CI: exports_external.string().optional()
|
|
@@ -186042,11 +186043,33 @@ async function importSecrets(envFile, opts) {
|
|
|
186042
186043
|
writeSecretsFile(context.packageRoot, { schemaVersion: 1, secrets });
|
|
186043
186044
|
success2(`Imported ${ui.bold(String(entries.length))} secret(s) into secrets.enc.yaml.`);
|
|
186044
186045
|
}
|
|
186046
|
+
function listSecrets(opts) {
|
|
186047
|
+
const context = requirePackageContext(opts);
|
|
186048
|
+
const secretsFile = readSecretsFile(context.packageRoot);
|
|
186049
|
+
const rows = Object.entries(secretsFile.secrets).map(([name, entry]) => ({ name, description: entry.description ?? "" })).sort((left, right) => left.name.localeCompare(right.name));
|
|
186050
|
+
if (opts.json) {
|
|
186051
|
+
console.log(JSON.stringify(rows, null, 2));
|
|
186052
|
+
return;
|
|
186053
|
+
}
|
|
186054
|
+
if (rows.length === 0) {
|
|
186055
|
+
info(`No secrets in ${SOURCE_SECRETS_FILENAME}. Add one with \`agents secrets set <name>\`.`);
|
|
186056
|
+
return;
|
|
186057
|
+
}
|
|
186058
|
+
console.log(table(rows, [
|
|
186059
|
+
{ key: "name", header: "NAME" },
|
|
186060
|
+
{ key: "description", header: "DESCRIPTION" }
|
|
186061
|
+
]));
|
|
186062
|
+
}
|
|
186045
186063
|
function registerSourceSecretCommands(agent) {
|
|
186046
|
-
const
|
|
186047
|
-
|
|
186048
|
-
|
|
186049
|
-
|
|
186064
|
+
const secrets = agent.command("secrets").alias("secret").description("Manage encrypted secrets.enc.yaml (list, set, unset, import, export).").action(() => {
|
|
186065
|
+
process.stderr.write("`eigenpal agents secrets` requires a subcommand. Run `eigenpal agents secrets --help`.\n");
|
|
186066
|
+
process.exit(2);
|
|
186067
|
+
});
|
|
186068
|
+
addJsonFlag(secrets.command("list")).description("List secret names declared in secrets.enc.yaml (never prints values).").option("--dir <dir>", "Directory to inspect").action(action(async (opts) => listSecrets(opts)));
|
|
186069
|
+
secrets.command("set <name>").description("Encrypt and set a secret value in secrets.enc.yaml.").option("--dir <dir>", "Directory to inspect").option("--stdin", "Read the secret value from stdin").option("--value-file <path>", "Read the secret value from a file").option("--description <text>", "Secret description").action(action(setSecret));
|
|
186070
|
+
secrets.command("unset <name>").description("Remove a secret from secrets.enc.yaml.").option("--dir <dir>", "Directory to inspect").action(action(async (name, opts) => unsetSecret(name, opts)));
|
|
186071
|
+
secrets.command("import <env-file>").description("Import KEY=value entries from an env file into secrets.enc.yaml.").option("--dir <dir>", "Directory to inspect").action(action(importSecrets));
|
|
186072
|
+
return secrets;
|
|
186050
186073
|
}
|
|
186051
186074
|
|
|
186052
186075
|
// src/commands/git/index.ts
|
|
@@ -186443,9 +186466,26 @@ function bumpReleaseVersion(releases, bump) {
|
|
|
186443
186466
|
return `${major}.${minor + 1}.0`;
|
|
186444
186467
|
return `${major}.${minor}.${patch + 1}`;
|
|
186445
186468
|
}
|
|
186469
|
+
var RETRYABLE_SYNC_STATUSES = new Set([502, 503, 504]);
|
|
186470
|
+
async function retrySyncRequest(request, opts = {}) {
|
|
186471
|
+
const attempts = opts.attempts ?? 4;
|
|
186472
|
+
const delayMs = opts.delayMs ?? ((attempt) => attempt * 1500);
|
|
186473
|
+
for (let attempt = 1;; attempt++) {
|
|
186474
|
+
try {
|
|
186475
|
+
await request();
|
|
186476
|
+
return;
|
|
186477
|
+
} catch (err) {
|
|
186478
|
+
const retryable = err instanceof ApiError && RETRYABLE_SYNC_STATUSES.has(err.status) && attempt < attempts;
|
|
186479
|
+
if (!retryable)
|
|
186480
|
+
throw err;
|
|
186481
|
+
dim(` sync attempt ${attempt} failed (HTTP ${err.status}), retrying...`);
|
|
186482
|
+
await new Promise((resolve) => setTimeout(resolve, delayMs(attempt)));
|
|
186483
|
+
}
|
|
186484
|
+
}
|
|
186485
|
+
}
|
|
186446
186486
|
async function syncLatestAutomation(client, packagePath) {
|
|
186447
186487
|
const automation = pathToDottedPackageName(packagePath);
|
|
186448
|
-
await client.post(`/api/v1/automations/${encodeURIComponent(automation)}/sync`);
|
|
186488
|
+
await retrySyncRequest(() => client.post(`/api/v1/automations/${encodeURIComponent(automation)}/sync`));
|
|
186449
186489
|
success2(`Synced ${automation} to latest release.`);
|
|
186450
186490
|
}
|
|
186451
186491
|
async function cloneSource(opts) {
|
|
@@ -187696,27 +187736,191 @@ async function validateDatasetDir(dir, opts = {}) {
|
|
|
187696
187736
|
}
|
|
187697
187737
|
if (errors3.length > 0)
|
|
187698
187738
|
return { valid: false, errors: errors3 };
|
|
187739
|
+
if (existsSync7(path7.join(dir, "manifest.json"))) {
|
|
187740
|
+
return {
|
|
187741
|
+
valid: false,
|
|
187742
|
+
errors: [
|
|
187743
|
+
"manifest.json: legacy dataset format — manifest-based archives are no longer accepted. " + "Re-export the dataset using the folder convention (examples/<name>/input.json)."
|
|
187744
|
+
]
|
|
187745
|
+
};
|
|
187746
|
+
}
|
|
187747
|
+
const examplesDir = path7.join(dir, "examples");
|
|
187748
|
+
if (!existsSync7(examplesDir) || !(await fs2.stat(examplesDir)).isDirectory()) {
|
|
187749
|
+
errors3.push("examples/: missing examples/ directory at dataset root");
|
|
187750
|
+
const flatFolders = await listImmediateDirs(dir);
|
|
187751
|
+
if (flatFolders.length > 0) {
|
|
187752
|
+
errors3.push(`examples/: found example-like folders at the dataset root (${flatFolders.join(", ")}); ` + "move them under examples/ — the canonical layout is examples/<name>/input.json");
|
|
187753
|
+
}
|
|
187754
|
+
return { valid: false, errors: errors3 };
|
|
187755
|
+
}
|
|
187699
187756
|
const agentDir = opts.agentDir ?? process.cwd();
|
|
187700
187757
|
const inputSchema = await loadOptionalWorkspaceSchema(agentDir, "input-schema.json", errors3);
|
|
187701
187758
|
const outputSchema = await loadOptionalWorkspaceSchema(agentDir, "output-schema.json", errors3);
|
|
187702
187759
|
if (errors3.length > 0)
|
|
187703
187760
|
return { valid: false, errors: errors3 };
|
|
187704
|
-
const
|
|
187705
|
-
|
|
187761
|
+
const examples = (await fs2.readdir(examplesDir, { withFileTypes: true })).filter((entry) => entry.isDirectory()).map((entry) => entry.name).sort();
|
|
187762
|
+
if (examples.length === 0) {
|
|
187763
|
+
return { valid: false, errors: ["examples/: dataset contains no examples"] };
|
|
187764
|
+
}
|
|
187706
187765
|
for (const example of examples) {
|
|
187707
|
-
|
|
187708
|
-
|
|
187709
|
-
|
|
187710
|
-
}
|
|
187711
|
-
|
|
187766
|
+
errors3.push(...await validateDatasetExample(path7.join(examplesDir, example), example, {
|
|
187767
|
+
inputSchema,
|
|
187768
|
+
outputSchema
|
|
187769
|
+
}));
|
|
187770
|
+
}
|
|
187771
|
+
return { valid: errors3.length === 0, errors: errors3 };
|
|
187772
|
+
}
|
|
187773
|
+
async function validateDatasetExample(exampleRoot, example, schemas3) {
|
|
187774
|
+
const errors3 = [];
|
|
187775
|
+
const label = `examples/${example}`;
|
|
187776
|
+
if (!DATASET_NAME_PATTERN.test(example)) {
|
|
187777
|
+
return [
|
|
187778
|
+
`${label}: example folder name must be lowercase kebab/snake-case (matching ${DATASET_NAME_PATTERN})`
|
|
187779
|
+
];
|
|
187780
|
+
}
|
|
187781
|
+
const inputFiles = await listFilesUnder(path7.join(exampleRoot, "input"));
|
|
187782
|
+
const expectedFiles = await listFilesUnder(path7.join(exampleRoot, "expected"));
|
|
187783
|
+
if (inputFiles.delete("arguments.json")) {
|
|
187784
|
+
errors3.push(`${label}/input/arguments.json: legacy workflow archive path is no longer accepted; use input.json at the example root`);
|
|
187785
|
+
}
|
|
187786
|
+
for (const legacy of ["output.json", "error.json"]) {
|
|
187787
|
+
if (expectedFiles.delete(legacy)) {
|
|
187788
|
+
errors3.push(`${label}/expected/${legacy}: legacy workflow archive path is no longer accepted; use expected.json at the example root`);
|
|
187712
187789
|
}
|
|
187713
|
-
|
|
187714
|
-
|
|
187715
|
-
|
|
187716
|
-
|
|
187790
|
+
}
|
|
187791
|
+
const inputJsonPath = path7.join(exampleRoot, AGENT_EXAMPLE_INPUT_JSON);
|
|
187792
|
+
if (!existsSync7(inputJsonPath)) {
|
|
187793
|
+
errors3.push(`${label}/input.json: input.json is required`);
|
|
187794
|
+
return errors3;
|
|
187795
|
+
}
|
|
187796
|
+
const input = await readJson(inputJsonPath, `${label}/input.json`, errors3);
|
|
187797
|
+
if (input === undefined)
|
|
187798
|
+
return errors3;
|
|
187799
|
+
if (!isJsonObject(input)) {
|
|
187800
|
+
errors3.push(`${label}/input.json: must be a JSON object`);
|
|
187801
|
+
return errors3;
|
|
187802
|
+
}
|
|
187803
|
+
errors3.push(...validateFileRefs({
|
|
187804
|
+
refs: collectFileRefs(input),
|
|
187805
|
+
files: inputFiles,
|
|
187806
|
+
root: "input",
|
|
187807
|
+
fieldPrefix: `${label}/input.json`,
|
|
187808
|
+
exampleLabel: label
|
|
187809
|
+
}));
|
|
187810
|
+
const expectedJsonPath = path7.join(exampleRoot, AGENT_EXAMPLE_EXPECTED_JSON);
|
|
187811
|
+
let expectedOutput = null;
|
|
187812
|
+
if (existsSync7(expectedJsonPath)) {
|
|
187813
|
+
const expected = await readJson(expectedJsonPath, `${label}/expected.json`, errors3);
|
|
187814
|
+
if (expected !== undefined) {
|
|
187815
|
+
if (isExpectedErrorRef(expected)) {
|
|
187816
|
+
errors3.push(`${label}/expected.json: failure-expected examples ({ "$error": ... }) are not supported for agent datasets. ` + "Agent runs are evaluated only when they complete, so a failed run can never produce a passing score. " + 'Remove the example or replace "$error" with the expected output object.');
|
|
187817
|
+
} else if (!isJsonObject(expected)) {
|
|
187818
|
+
errors3.push(`${label}/expected.json: must be the raw automation output object`);
|
|
187819
|
+
} else {
|
|
187820
|
+
expectedOutput = expected;
|
|
187821
|
+
errors3.push(...validateFileRefs({
|
|
187822
|
+
refs: collectFileRefs(expected),
|
|
187823
|
+
files: expectedFiles,
|
|
187824
|
+
root: "expected",
|
|
187825
|
+
fieldPrefix: `${label}/expected.json`,
|
|
187826
|
+
exampleLabel: label
|
|
187827
|
+
}));
|
|
187828
|
+
}
|
|
187829
|
+
}
|
|
187830
|
+
} else if (expectedFiles.size > 0) {
|
|
187831
|
+
for (const file2 of [...expectedFiles].sort()) {
|
|
187832
|
+
errors3.push(`${label}/expected/${file2}: file is not referenced from expected.json (expected/ files require an expected.json with { "$file": "expected/${file2}" })`);
|
|
187717
187833
|
}
|
|
187718
187834
|
}
|
|
187719
|
-
|
|
187835
|
+
const metaJsonPath = path7.join(exampleRoot, "meta.json");
|
|
187836
|
+
if (existsSync7(metaJsonPath)) {
|
|
187837
|
+
const meta3 = await readJson(metaJsonPath, `${label}/meta.json`, errors3);
|
|
187838
|
+
if (meta3 !== undefined) {
|
|
187839
|
+
const parsed = DatasetMetaSchema.safeParse(meta3);
|
|
187840
|
+
if (!parsed.success) {
|
|
187841
|
+
for (const issue2 of parsed.error.issues) {
|
|
187842
|
+
const at3 = issue2.path.length > 0 ? issue2.path.map(String).join(".") : "(root)";
|
|
187843
|
+
errors3.push(`${label}/meta.json:${at3}: ${issue2.message}`);
|
|
187844
|
+
}
|
|
187845
|
+
}
|
|
187846
|
+
}
|
|
187847
|
+
}
|
|
187848
|
+
if (schemas3.inputSchema) {
|
|
187849
|
+
errors3.push(...validateValueAgainstSchema(input, allowFileRefsInSchema(schemas3.inputSchema), `${label}/input.json`));
|
|
187850
|
+
}
|
|
187851
|
+
if (schemas3.outputSchema && expectedOutput) {
|
|
187852
|
+
errors3.push(...validateValuesAgainstSchemaProps(expectedOutput, schemas3.outputSchema, `${label}/expected.json`));
|
|
187853
|
+
}
|
|
187854
|
+
return errors3;
|
|
187855
|
+
}
|
|
187856
|
+
function collectFileRefs(value, jsonPath = "<root>") {
|
|
187857
|
+
if (isScopedFileRef(value))
|
|
187858
|
+
return [{ path: value.$file, jsonPath }];
|
|
187859
|
+
if (Array.isArray(value)) {
|
|
187860
|
+
return value.flatMap((item, index) => collectFileRefs(item, `${jsonPath}.${index}`));
|
|
187861
|
+
}
|
|
187862
|
+
if (value && typeof value === "object") {
|
|
187863
|
+
return Object.entries(value).flatMap(([key, item]) => collectFileRefs(item, jsonPath === "<root>" ? key : `${jsonPath}.${key}`));
|
|
187864
|
+
}
|
|
187865
|
+
return [];
|
|
187866
|
+
}
|
|
187867
|
+
function validateFileRefs(args) {
|
|
187868
|
+
const errors3 = [];
|
|
187869
|
+
const referenced = new Set;
|
|
187870
|
+
for (const ref of args.refs) {
|
|
187871
|
+
const validation2 = validateScopedArtifactPath(ref.path, { allowedRoots: [args.root] });
|
|
187872
|
+
const relative = validation2.ok ? validation2.value.segments.slice(1).join("/") : "";
|
|
187873
|
+
if (!validation2.ok || relative.length === 0) {
|
|
187874
|
+
errors3.push(`${args.fieldPrefix}:${ref.jsonPath}: file reference must point inside ${args.root}/ and must not contain path traversal (got "${ref.path}")`);
|
|
187875
|
+
continue;
|
|
187876
|
+
}
|
|
187877
|
+
referenced.add(relative);
|
|
187878
|
+
if (!args.files.has(relative)) {
|
|
187879
|
+
errors3.push(`${args.fieldPrefix}:${ref.jsonPath}: referenced file does not exist: ${ref.path}`);
|
|
187880
|
+
}
|
|
187881
|
+
}
|
|
187882
|
+
const source = args.root === "input" ? "input.json" : "expected.json";
|
|
187883
|
+
for (const filePath of [...args.files].sort()) {
|
|
187884
|
+
if (!referenced.has(filePath)) {
|
|
187885
|
+
errors3.push(`${args.exampleLabel}/${args.root}/${filePath}: file is not referenced from ${source}; add { "$file": "${args.root}/${filePath}" }`);
|
|
187886
|
+
}
|
|
187887
|
+
}
|
|
187888
|
+
return errors3;
|
|
187889
|
+
}
|
|
187890
|
+
async function listFilesUnder(dir) {
|
|
187891
|
+
const out = new Set;
|
|
187892
|
+
if (!existsSync7(dir))
|
|
187893
|
+
return out;
|
|
187894
|
+
async function walk(current, relPrefix) {
|
|
187895
|
+
for (const entry of await fs2.readdir(current, { withFileTypes: true })) {
|
|
187896
|
+
if (entry.name.startsWith(".") || entry.name === "node_modules")
|
|
187897
|
+
continue;
|
|
187898
|
+
const relative = relPrefix ? `${relPrefix}/${entry.name}` : entry.name;
|
|
187899
|
+
if (entry.isDirectory())
|
|
187900
|
+
await walk(path7.join(current, entry.name), relative);
|
|
187901
|
+
else if (entry.isFile())
|
|
187902
|
+
out.add(relative);
|
|
187903
|
+
}
|
|
187904
|
+
}
|
|
187905
|
+
await walk(dir, "");
|
|
187906
|
+
return out;
|
|
187907
|
+
}
|
|
187908
|
+
async function listImmediateDirs(dir) {
|
|
187909
|
+
return (await fs2.readdir(dir, { withFileTypes: true })).filter((entry) => entry.isDirectory() && !entry.name.startsWith(".")).map((entry) => entry.name).sort();
|
|
187910
|
+
}
|
|
187911
|
+
async function readJson(filePath, label, errors3) {
|
|
187912
|
+
try {
|
|
187913
|
+
return JSON.parse(await fs2.readFile(filePath, "utf8"));
|
|
187914
|
+
} catch (err2) {
|
|
187915
|
+
errors3.push(`${label}: not valid JSON — ${err2 instanceof Error ? err2.message : String(err2)}`);
|
|
187916
|
+
return;
|
|
187917
|
+
}
|
|
187918
|
+
}
|
|
187919
|
+
function isJsonObject(value) {
|
|
187920
|
+
return value !== null && typeof value === "object" && !Array.isArray(value);
|
|
187921
|
+
}
|
|
187922
|
+
function isExpectedErrorRef(value) {
|
|
187923
|
+
return isJsonObject(value) && Object.keys(value).length === 1 && Object.prototype.hasOwnProperty.call(value, "$error");
|
|
187720
187924
|
}
|
|
187721
187925
|
async function loadOptionalWorkspaceSchema(agentDir, filename, errors3) {
|
|
187722
187926
|
const schemaPath = path7.join(agentDir, filename);
|
|
@@ -187736,145 +187940,54 @@ function schemaProperties(schema) {
|
|
|
187736
187940
|
return {};
|
|
187737
187941
|
return props;
|
|
187738
187942
|
}
|
|
187739
|
-
function schemaRequired(schema) {
|
|
187740
|
-
return new Set(Array.isArray(schema.required) ? schema.required.filter(isString) : []);
|
|
187741
|
-
}
|
|
187742
|
-
function isString(value) {
|
|
187743
|
-
return typeof value === "string";
|
|
187744
|
-
}
|
|
187745
187943
|
function isFileField(propSchema) {
|
|
187746
|
-
if (!
|
|
187944
|
+
if (!isJsonObject(propSchema))
|
|
187747
187945
|
return false;
|
|
187748
|
-
|
|
187749
|
-
if (prop["x-eigenpal-type"] === "file")
|
|
187946
|
+
if (propSchema["x-eigenpal-type"] === "file")
|
|
187750
187947
|
return true;
|
|
187751
|
-
if (
|
|
187752
|
-
return
|
|
187948
|
+
if (propSchema.type === "array" && isJsonObject(propSchema.items)) {
|
|
187949
|
+
return propSchema.items["x-eigenpal-type"] === "file";
|
|
187753
187950
|
}
|
|
187754
187951
|
return false;
|
|
187755
187952
|
}
|
|
187756
|
-
|
|
187757
|
-
|
|
187758
|
-
|
|
187759
|
-
|
|
187760
|
-
|
|
187761
|
-
|
|
187762
|
-
|
|
187763
|
-
|
|
187764
|
-
|
|
187765
|
-
|
|
187766
|
-
|
|
187767
|
-
|
|
187768
|
-
|
|
187769
|
-
|
|
187770
|
-
errors3.push(`${example}/input: missing file for "${fieldName}" (expected ${fieldName} or ${fieldName}.*)`);
|
|
187771
|
-
}
|
|
187772
|
-
}
|
|
187773
|
-
const dataFields = Object.entries(props).filter(([, propSchema]) => !isFileField(propSchema)).map(([fieldName]) => fieldName);
|
|
187774
|
-
const inputJsonPath = path7.join(exampleRoot, AGENT_EXAMPLE_INPUT_JSON);
|
|
187775
|
-
let inputData = null;
|
|
187776
|
-
if (existsSync7(inputJsonPath)) {
|
|
187777
|
-
inputData = await readJsonObject(inputJsonPath, `${example}/${AGENT_EXAMPLE_INPUT_JSON}`, errors3);
|
|
187778
|
-
} else {
|
|
187779
|
-
const missingRequired = dataFields.filter((fieldName) => required2.has(fieldName));
|
|
187780
|
-
if (missingRequired.length > 0) {
|
|
187781
|
-
errors3.push(`${example}/${AGENT_EXAMPLE_INPUT_JSON}: missing file (needed for ${missingRequired.join(", ")})`);
|
|
187782
|
-
}
|
|
187783
|
-
}
|
|
187784
|
-
if (inputData) {
|
|
187785
|
-
for (const fieldName of dataFields) {
|
|
187786
|
-
if (required2.has(fieldName) && !(fieldName in inputData)) {
|
|
187787
|
-
errors3.push(`${example}/${AGENT_EXAMPLE_INPUT_JSON}: missing field "${fieldName}"`);
|
|
187788
|
-
}
|
|
187789
|
-
}
|
|
187790
|
-
for (const key of Object.keys(inputData)) {
|
|
187791
|
-
const propSchema = props[key];
|
|
187792
|
-
if (!propSchema) {
|
|
187793
|
-
errors3.push(`${example}/${AGENT_EXAMPLE_INPUT_JSON}: extra field "${key}" not in input schema`);
|
|
187794
|
-
} else if (isFileField(propSchema)) {
|
|
187795
|
-
errors3.push(`${example}/${AGENT_EXAMPLE_INPUT_JSON}: "${key}" is a file field; put it under input/`);
|
|
187796
|
-
} else {
|
|
187797
|
-
errors3.push(...validateValueAgainstSchema(inputData[key], propSchema, `${example}/${AGENT_EXAMPLE_INPUT_JSON}/${key}`));
|
|
187798
|
-
}
|
|
187799
|
-
}
|
|
187800
|
-
}
|
|
187801
|
-
for (const file2 of inputFiles) {
|
|
187802
|
-
if (matchedFiles.has(file2))
|
|
187803
|
-
continue;
|
|
187804
|
-
const stem = file2.includes(".") ? file2.slice(0, file2.indexOf(".")) : file2;
|
|
187805
|
-
if (!props[stem] || !isFileField(props[stem])) {
|
|
187806
|
-
errors3.push(`${example}/input: extra file "${file2}" does not match a file input field`);
|
|
187807
|
-
}
|
|
187953
|
+
var SCOPED_FILE_REF_JSON_SCHEMA = {
|
|
187954
|
+
type: "object",
|
|
187955
|
+
properties: { $file: { type: "string", minLength: 1 } },
|
|
187956
|
+
required: ["$file"],
|
|
187957
|
+
additionalProperties: false
|
|
187958
|
+
};
|
|
187959
|
+
function allowFileRefsInSchema(node) {
|
|
187960
|
+
if (node === null || typeof node !== "object")
|
|
187961
|
+
return node;
|
|
187962
|
+
if (Array.isArray(node))
|
|
187963
|
+
return node.map(allowFileRefsInSchema);
|
|
187964
|
+
const record2 = node;
|
|
187965
|
+
if (record2["x-eigenpal-type"] === "file") {
|
|
187966
|
+
return { anyOf: [SCOPED_FILE_REF_JSON_SCHEMA, record2] };
|
|
187808
187967
|
}
|
|
187809
|
-
|
|
187968
|
+
const out = {};
|
|
187969
|
+
for (const [key, value] of Object.entries(record2))
|
|
187970
|
+
out[key] = allowFileRefsInSchema(value);
|
|
187971
|
+
return out;
|
|
187810
187972
|
}
|
|
187811
|
-
|
|
187973
|
+
function validateValuesAgainstSchemaProps(data, schema, label) {
|
|
187974
|
+
const props = schemaProperties(schema);
|
|
187812
187975
|
const errors3 = [];
|
|
187813
|
-
const
|
|
187814
|
-
|
|
187815
|
-
|
|
187816
|
-
|
|
187817
|
-
|
|
187818
|
-
|
|
187819
|
-
|
|
187820
|
-
|
|
187821
|
-
errors3.push(`${
|
|
187822
|
-
}
|
|
187823
|
-
if (expected) {
|
|
187824
|
-
for (const [key, value] of Object.entries(expected)) {
|
|
187825
|
-
const propSchema = props[key];
|
|
187826
|
-
if (!propSchema) {
|
|
187827
|
-
errors3.push(`${example}/${AGENT_EXAMPLE_EXPECTED_JSON}: extra field "${key}" not in output schema`);
|
|
187828
|
-
continue;
|
|
187829
|
-
}
|
|
187830
|
-
if (isFileField(propSchema) && filePlaceholderValue(value))
|
|
187831
|
-
continue;
|
|
187832
|
-
errors3.push(...validateValueAgainstSchema(value, propSchema, `${example}/${AGENT_EXAMPLE_EXPECTED_JSON}/${key}`));
|
|
187833
|
-
}
|
|
187834
|
-
}
|
|
187835
|
-
for (const file2 of goldenFiles) {
|
|
187836
|
-
const matched = Object.entries(props).some(([fieldName, propSchema]) => isFileField(propSchema) && goldenNameMatchesFileField(file2, fieldName));
|
|
187837
|
-
if (!matched) {
|
|
187838
|
-
errors3.push(`${example}/expected: extra golden file "${file2}" does not match a file output field`);
|
|
187839
|
-
}
|
|
187976
|
+
for (const [key, value] of Object.entries(data)) {
|
|
187977
|
+
const propSchema = props[key];
|
|
187978
|
+
if (!propSchema)
|
|
187979
|
+
continue;
|
|
187980
|
+
if (isFileField(propSchema))
|
|
187981
|
+
continue;
|
|
187982
|
+
if (collectFileRefs(value).length > 0)
|
|
187983
|
+
continue;
|
|
187984
|
+
errors3.push(...validateValueAgainstSchema(value, propSchema, `${label}/${key}`));
|
|
187840
187985
|
}
|
|
187841
187986
|
return errors3;
|
|
187842
187987
|
}
|
|
187843
|
-
function filePlaceholderValue(value) {
|
|
187844
|
-
if (value === "__any__")
|
|
187845
|
-
return true;
|
|
187846
|
-
return Array.isArray(value) && value.every((item) => item === "__any__");
|
|
187847
|
-
}
|
|
187848
|
-
function goldenNameMatchesFileField(goldenName, fieldName) {
|
|
187849
|
-
if (goldenName === fieldName)
|
|
187850
|
-
return true;
|
|
187851
|
-
if (goldenName.startsWith(`${fieldName}.`))
|
|
187852
|
-
return true;
|
|
187853
|
-
const dot = goldenName.indexOf(".");
|
|
187854
|
-
const stem = dot === -1 ? goldenName : goldenName.slice(0, dot);
|
|
187855
|
-
return stem === fieldName;
|
|
187856
|
-
}
|
|
187857
|
-
async function validateJsonObjectIfPresent(filePath, label, errors3) {
|
|
187858
|
-
if (!existsSync7(filePath))
|
|
187859
|
-
return;
|
|
187860
|
-
await readJsonObject(filePath, label, errors3);
|
|
187861
|
-
}
|
|
187862
|
-
async function readJsonObject(filePath, label, errors3) {
|
|
187863
|
-
try {
|
|
187864
|
-
const parsed = JSON.parse(await fs2.readFile(filePath, "utf8"));
|
|
187865
|
-
if (!parsed || typeof parsed !== "object" || Array.isArray(parsed)) {
|
|
187866
|
-
errors3.push(`${label}: must be a JSON object`);
|
|
187867
|
-
return null;
|
|
187868
|
-
}
|
|
187869
|
-
return parsed;
|
|
187870
|
-
} catch (err2) {
|
|
187871
|
-
errors3.push(`${label}: invalid JSON — ${err2 instanceof Error ? err2.message : String(err2)}`);
|
|
187872
|
-
return null;
|
|
187873
|
-
}
|
|
187874
|
-
}
|
|
187875
187988
|
function validateValueAgainstSchema(value, schema, label) {
|
|
187876
187989
|
try {
|
|
187877
|
-
const validate = eigenpalAjv.compile(
|
|
187990
|
+
const validate = eigenpalAjv.compile(schema);
|
|
187878
187991
|
if (validate(value))
|
|
187879
187992
|
return [];
|
|
187880
187993
|
return (validate.errors ?? []).map((err2) => {
|
|
@@ -187887,20 +188000,6 @@ function validateValueAgainstSchema(value, schema, label) {
|
|
|
187887
188000
|
return [`${label}: schema compile error — ${err2 instanceof Error ? err2.message : String(err2)}`];
|
|
187888
188001
|
}
|
|
187889
188002
|
}
|
|
187890
|
-
function tightenObjectSchemas(node) {
|
|
187891
|
-
if (node === null || typeof node !== "object")
|
|
187892
|
-
return node;
|
|
187893
|
-
if (Array.isArray(node))
|
|
187894
|
-
return node.map(tightenObjectSchemas);
|
|
187895
|
-
const out = {};
|
|
187896
|
-
for (const [key, value] of Object.entries(node))
|
|
187897
|
-
out[key] = tightenObjectSchemas(value);
|
|
187898
|
-
const type = out.type;
|
|
187899
|
-
const isObjectType = type === "object" || Array.isArray(type) && type.includes("object");
|
|
187900
|
-
if (isObjectType && out.additionalProperties === undefined)
|
|
187901
|
-
out.additionalProperties = false;
|
|
187902
|
-
return out;
|
|
187903
|
-
}
|
|
187904
188003
|
|
|
187905
188004
|
// src/commands/agents/dataset.ts
|
|
187906
188005
|
function registerDatasetCommands(agent) {
|
|
@@ -187909,9 +188008,29 @@ function registerDatasetCommands(agent) {
|
|
|
187909
188008
|
process.exit(2);
|
|
187910
188009
|
});
|
|
187911
188010
|
addJsonFlag(withPagination(withBaseUrl(dataset.command("list <agent-id-or-slug>")), 50)).description("List dataset examples for an agent.").action(action(listDataset));
|
|
187912
|
-
addJsonFlag(withBaseUrl(dataset.command("push <agent-id-or-slug>"))).description("Upload dataset examples from a local dataset directory or zip archive.").requiredOption("--file <path>", "Dataset directory or .zip archive").option("--mode <append|replace>", "Upload mode", parseDatasetMode, "append").option("--yes", "Confirm replace mode in non-interactive environments").
|
|
188011
|
+
addJsonFlag(withBaseUrl(dataset.command("push <agent-id-or-slug>"))).description("Upload dataset examples from a local dataset directory or zip archive.").requiredOption("--file <path>", "Dataset directory or .zip archive").option("--mode <append|replace>", "Upload mode", parseDatasetMode, "append").option("--yes", "Confirm replace mode in non-interactive environments").addHelpText("after", `
|
|
188012
|
+
Layout
|
|
188013
|
+
` + ` The directory (or archive) must contain an examples/ wrapper:
|
|
188014
|
+
` + ` examples/<name>/input.json (required), examples/<name>/input/<file>
|
|
188015
|
+
` + ` (referenced via { "$file": "input/<path>" }), plus optional
|
|
188016
|
+
` + ` expected.json, expected/<file>, and meta.json.
|
|
188017
|
+
` + " Run `eigenpal agents dataset validate` first to check locally.\n").action(action(pushDataset));
|
|
187913
188018
|
withBaseUrl(dataset.command("pull <agent-id-or-slug>")).description("Download an agent dataset as a .zip archive.").option("--out <path>", "Output .zip path (default: dataset.zip)", DATASET_DIR).action(action(pullDataset));
|
|
187914
|
-
addJsonFlag(dataset.command("validate [path]")).description("Validate a local dataset directory against the
|
|
188019
|
+
addJsonFlag(dataset.command("validate [path]")).description("Validate a local dataset directory against the canonical examples/<name> layout. Defaults to ./dataset/.").option("--agent-dir <dir>", "Agent package directory with optional input/output schemas for extra value-level checks", ".").addHelpText("after", `
|
|
188020
|
+
Layout (mirrors the server import rules)
|
|
188021
|
+
` + ` examples/<name>/input.json REQUIRED, full run input object
|
|
188022
|
+
` + ` examples/<name>/input/<file> referenced via { "$file": "input/<path>" }
|
|
188023
|
+
` + ` examples/<name>/expected.json OPTIONAL, expected output object
|
|
188024
|
+
` + ` examples/<name>/expected/<file> referenced via { "$file": "expected/<path>" }
|
|
188025
|
+
` + ` examples/<name>/meta.json OPTIONAL, { rowOrder?, annotation?, overrides? }
|
|
188026
|
+
` + `
|
|
188027
|
+
` + ` Every file on disk under input/ or expected/ must be referenced from the
|
|
188028
|
+
` + ` matching JSON, and every { "$file": ... } reference must resolve to a file.
|
|
188029
|
+
` + ` A top-level manifest.json is the legacy format and is rejected.
|
|
188030
|
+
` + ` Failure-expected examples ({ "$error": ... } in expected.json) are
|
|
188031
|
+
` + ` workflow-only and rejected for agent datasets: agent runs are evaluated
|
|
188032
|
+
` + ` only when they complete.
|
|
188033
|
+
`).action(action(validateDatasetCommand));
|
|
187915
188034
|
}
|
|
187916
188035
|
async function listDataset(agentId, opts) {
|
|
187917
188036
|
const client = buildClient(opts);
|
|
@@ -188017,10 +188136,10 @@ function registerEnvCommands(agent) {
|
|
|
188017
188136
|
withBaseUrl(env2.command("pull [target]")).description("Decrypt source secrets and print shell exports.").option("--dir <dir>", "Installed agent package directory", ".").option("--format <format>", "Output format: shell or dotenv", "shell").action(action(pullAgentEnv));
|
|
188018
188137
|
}
|
|
188019
188138
|
function registerSecretsExportCommands(agent) {
|
|
188020
|
-
const secrets = agent.command
|
|
188021
|
-
|
|
188022
|
-
|
|
188023
|
-
}
|
|
188139
|
+
const secrets = agent.commands.find((command) => command.name() === "secrets");
|
|
188140
|
+
if (!secrets) {
|
|
188141
|
+
throw new Error("registerSecretsExportCommands must run after registerSourceSecretCommands.");
|
|
188142
|
+
}
|
|
188024
188143
|
withBaseUrl(secrets.command("export [target]")).description("Decrypt source secrets and print shell exports.").option("--dir <dir>", "Installed agent package directory", ".").option("--format <format>", "Output format: shell or dotenv", "shell").action(action(pullAgentEnv));
|
|
188025
188144
|
}
|
|
188026
188145
|
async function pullAgentEnv(target, opts) {
|
|
@@ -188718,8 +188837,8 @@ async function stopSession(sessionId, opts) {
|
|
|
188718
188837
|
init_src();
|
|
188719
188838
|
import { spawnSync as spawnSync4 } from "node:child_process";
|
|
188720
188839
|
import { createHash as createHash3 } from "node:crypto";
|
|
188721
|
-
import { promises as
|
|
188722
|
-
import
|
|
188840
|
+
import { promises as fs14, readFileSync as readFileSync11 } from "node:fs";
|
|
188841
|
+
import path15 from "node:path";
|
|
188723
188842
|
|
|
188724
188843
|
// src/lib/resolve-workflow.ts
|
|
188725
188844
|
var WORKFLOW_ID_PREFIX = "wf_";
|
|
@@ -188914,6 +189033,487 @@ async function watchExecution(opts) {
|
|
|
188914
189033
|
}
|
|
188915
189034
|
}
|
|
188916
189035
|
|
|
189036
|
+
// src/lib/execution-artifacts.ts
|
|
189037
|
+
import { existsSync as existsSync10, mkdirSync as mkdirSync4, readdirSync as readdirSync2, readFileSync as readFileSync9, writeFileSync as writeFileSync6 } from "fs";
|
|
189038
|
+
import { join as join4 } from "path";
|
|
189039
|
+
|
|
189040
|
+
// src/lib/format.ts
|
|
189041
|
+
import { readFileSync as readFileSync8, writeFileSync as writeFileSync5 } from "fs";
|
|
189042
|
+
import { extname as extname2, resolve as resolve3 } from "path";
|
|
189043
|
+
var PRETTIER_EXTENSIONS = new Set([".json", ".yaml", ".yml"]);
|
|
189044
|
+
async function formatFileIfAvailable(filepath) {
|
|
189045
|
+
if (!PRETTIER_EXTENSIONS.has(extname2(filepath)))
|
|
189046
|
+
return;
|
|
189047
|
+
try {
|
|
189048
|
+
const content = readFileSync8(filepath, "utf-8");
|
|
189049
|
+
const prettier = await Promise.resolve().then(() => (init_prettier(), exports_prettier));
|
|
189050
|
+
const formatted = await prettier.format(content, {
|
|
189051
|
+
filepath: resolve3(filepath)
|
|
189052
|
+
});
|
|
189053
|
+
if (formatted !== content) {
|
|
189054
|
+
writeFileSync5(filepath, formatted, "utf-8");
|
|
189055
|
+
}
|
|
189056
|
+
} catch (err2) {
|
|
189057
|
+
if (env.DEBUG?.includes("prettier")) {
|
|
189058
|
+
console.debug("[format] Prettier unavailable or format failed:", err2);
|
|
189059
|
+
}
|
|
189060
|
+
}
|
|
189061
|
+
}
|
|
189062
|
+
|
|
189063
|
+
// src/lib/execution-artifacts.ts
|
|
189064
|
+
function isWorkflowResult2(value) {
|
|
189065
|
+
return value != null && typeof value === "object" && "files" in value && Array.isArray(value.files);
|
|
189066
|
+
}
|
|
189067
|
+
async function listResultArtifacts(client, executionId) {
|
|
189068
|
+
try {
|
|
189069
|
+
const payload = await client.get(`/api/v1/runs/${encodeURIComponent(executionId)}/artifacts`);
|
|
189070
|
+
return (payload.artifacts ?? []).filter((artifact) => typeof artifact.path === "string" && artifact.path.startsWith("output/") && typeof artifact.name === "string");
|
|
189071
|
+
} catch {
|
|
189072
|
+
return [];
|
|
189073
|
+
}
|
|
189074
|
+
}
|
|
189075
|
+
async function downloadRunArtifact(client, executionId, artifactPath) {
|
|
189076
|
+
const encodedPath = artifactPath.split("/").map(encodeURIComponent).join("/");
|
|
189077
|
+
return client.getStream(`/api/v1/runs/${encodeURIComponent(executionId)}/artifacts/${encodedPath}`);
|
|
189078
|
+
}
|
|
189079
|
+
function filenameFromContentDisposition(header) {
|
|
189080
|
+
if (!header)
|
|
189081
|
+
return null;
|
|
189082
|
+
const match = /filename\*?=(?:UTF-8'')?"?([^";\n]+)"?/i.exec(header);
|
|
189083
|
+
if (match)
|
|
189084
|
+
return decodeURIComponent(match[1].trim());
|
|
189085
|
+
const simple = /filename="?([^";\n]+)"?/i.exec(header);
|
|
189086
|
+
return simple ? simple[1].trim() : null;
|
|
189087
|
+
}
|
|
189088
|
+
function safeFilename(name, fallback) {
|
|
189089
|
+
const base = name.replace(/[/\\]/g, "_").trim();
|
|
189090
|
+
return base.length > 0 ? base : fallback;
|
|
189091
|
+
}
|
|
189092
|
+
function timestampFolderName(payload) {
|
|
189093
|
+
const raw = payload.completedAt ?? payload.createdAt ?? new Date().toISOString();
|
|
189094
|
+
return raw.replace(/[:.]/g, "-");
|
|
189095
|
+
}
|
|
189096
|
+
async function writeExecutionArtifacts(client, exampleDir, payload) {
|
|
189097
|
+
const folderName = timestampFolderName(payload);
|
|
189098
|
+
const executionsDir = join4(exampleDir, "executions", folderName);
|
|
189099
|
+
const filesDir = join4(executionsDir, "files");
|
|
189100
|
+
mkdirSync4(filesDir, { recursive: true });
|
|
189101
|
+
const generatedFiles = [];
|
|
189102
|
+
const resultArtifacts = await listResultArtifacts(client, payload.executionId);
|
|
189103
|
+
if (resultArtifacts.length > 0) {
|
|
189104
|
+
for (let i5 = 0;i5 < resultArtifacts.length; i5++) {
|
|
189105
|
+
const artifact = resultArtifacts[i5];
|
|
189106
|
+
const artifactPath = artifact.path;
|
|
189107
|
+
if (typeof artifactPath !== "string")
|
|
189108
|
+
continue;
|
|
189109
|
+
const name = typeof artifact.name === "string" ? artifact.name : `file-${i5}.bin`;
|
|
189110
|
+
try {
|
|
189111
|
+
const res = await downloadRunArtifact(client, payload.executionId, artifactPath);
|
|
189112
|
+
const disposition = res.headers.get("Content-Disposition");
|
|
189113
|
+
const filename = filenameFromContentDisposition(disposition) ?? name;
|
|
189114
|
+
const safe = safeFilename(filename, `file-${i5}${filename.includes(".") ? "" : ".bin"}`);
|
|
189115
|
+
const destPath = join4(filesDir, safe);
|
|
189116
|
+
const buf = Buffer.from(await res.arrayBuffer());
|
|
189117
|
+
writeFileSync6(destPath, buf);
|
|
189118
|
+
generatedFiles.push({
|
|
189119
|
+
fileId: artifact.fileId ?? artifactPath,
|
|
189120
|
+
stepName: artifact.stepName ?? "",
|
|
189121
|
+
filename: safe
|
|
189122
|
+
});
|
|
189123
|
+
} catch (err2) {
|
|
189124
|
+
console.warn(` Warning: could not download artifact ${artifactPath}:`, err2);
|
|
189125
|
+
}
|
|
189126
|
+
}
|
|
189127
|
+
}
|
|
189128
|
+
const result = payload.output;
|
|
189129
|
+
if (generatedFiles.length === 0 && isWorkflowResult2(result) && result.files.length > 0) {
|
|
189130
|
+
for (let i5 = 0;i5 < result.files.length; i5++) {
|
|
189131
|
+
const entry = result.files[i5];
|
|
189132
|
+
const fileId = entry?.fileId;
|
|
189133
|
+
const stepName = entry?.stepName ?? "";
|
|
189134
|
+
if (typeof fileId !== "string")
|
|
189135
|
+
continue;
|
|
189136
|
+
try {
|
|
189137
|
+
const res = await client.getStream(`/api/v1/files/${fileId}`);
|
|
189138
|
+
const disposition = res.headers.get("Content-Disposition");
|
|
189139
|
+
const filename = filenameFromContentDisposition(disposition) ?? fileId;
|
|
189140
|
+
const safe = safeFilename(filename, `file-${i5}${filename.includes(".") ? "" : ".bin"}`);
|
|
189141
|
+
const destPath = join4(filesDir, safe);
|
|
189142
|
+
const buf = Buffer.from(await res.arrayBuffer());
|
|
189143
|
+
writeFileSync6(destPath, buf);
|
|
189144
|
+
generatedFiles.push({ fileId, stepName, filename: safe });
|
|
189145
|
+
} catch (err2) {
|
|
189146
|
+
console.warn(` Warning: could not download file ${fileId}:`, err2);
|
|
189147
|
+
}
|
|
189148
|
+
}
|
|
189149
|
+
}
|
|
189150
|
+
const output = {
|
|
189151
|
+
...payload,
|
|
189152
|
+
generatedFiles: generatedFiles.length > 0 ? generatedFiles : undefined
|
|
189153
|
+
};
|
|
189154
|
+
const outputPath = join4(executionsDir, "output.json");
|
|
189155
|
+
writeFileSync6(outputPath, JSON.stringify(output, null, 2) + `
|
|
189156
|
+
`, "utf-8");
|
|
189157
|
+
await formatFileIfAvailable(outputPath);
|
|
189158
|
+
return executionsDir;
|
|
189159
|
+
}
|
|
189160
|
+
|
|
189161
|
+
// src/lib/grade-example.ts
|
|
189162
|
+
var MAX_VALUE_LEN = 60;
|
|
189163
|
+
function preview(value) {
|
|
189164
|
+
let text;
|
|
189165
|
+
try {
|
|
189166
|
+
text = typeof value === "string" ? value : JSON.stringify(value);
|
|
189167
|
+
} catch {
|
|
189168
|
+
text = String(value);
|
|
189169
|
+
}
|
|
189170
|
+
if (text === undefined)
|
|
189171
|
+
text = String(value);
|
|
189172
|
+
return text.length > MAX_VALUE_LEN ? `${text.slice(0, MAX_VALUE_LEN)}…` : text;
|
|
189173
|
+
}
|
|
189174
|
+
function isPlainObject3(value) {
|
|
189175
|
+
return value !== null && typeof value === "object" && !Array.isArray(value);
|
|
189176
|
+
}
|
|
189177
|
+
function joinPath(path15, key2) {
|
|
189178
|
+
return path15 ? `${path15}.${key2}` : key2;
|
|
189179
|
+
}
|
|
189180
|
+
function walk(expected, actual, path15, diffs) {
|
|
189181
|
+
if (Array.isArray(expected)) {
|
|
189182
|
+
if (!Array.isArray(actual)) {
|
|
189183
|
+
diffs.push(`${path15 || "(root)"}: expected array, got ${preview(actual)}`);
|
|
189184
|
+
return;
|
|
189185
|
+
}
|
|
189186
|
+
if (expected.length !== actual.length) {
|
|
189187
|
+
diffs.push(`${path15 || "(root)"}: length ${expected.length} != ${actual.length}`);
|
|
189188
|
+
}
|
|
189189
|
+
const overlap = Math.min(expected.length, actual.length);
|
|
189190
|
+
for (let i5 = 0;i5 < overlap; i5++) {
|
|
189191
|
+
walk(expected[i5], actual[i5], `${path15}[${i5}]`, diffs);
|
|
189192
|
+
}
|
|
189193
|
+
return;
|
|
189194
|
+
}
|
|
189195
|
+
if (isPlainObject3(expected)) {
|
|
189196
|
+
if (!isPlainObject3(actual)) {
|
|
189197
|
+
diffs.push(`${path15 || "(root)"}: expected object, got ${preview(actual)}`);
|
|
189198
|
+
return;
|
|
189199
|
+
}
|
|
189200
|
+
for (const [key2, value] of Object.entries(expected)) {
|
|
189201
|
+
const childPath = joinPath(path15, key2);
|
|
189202
|
+
if (!(key2 in actual)) {
|
|
189203
|
+
diffs.push(`${childPath}: missing in output`);
|
|
189204
|
+
continue;
|
|
189205
|
+
}
|
|
189206
|
+
walk(value, actual[key2], childPath, diffs);
|
|
189207
|
+
}
|
|
189208
|
+
return;
|
|
189209
|
+
}
|
|
189210
|
+
if (!Object.is(expected, actual)) {
|
|
189211
|
+
diffs.push(`${path15 || "(root)"}: ${preview(expected)} != ${preview(actual)}`);
|
|
189212
|
+
}
|
|
189213
|
+
}
|
|
189214
|
+
function gradeAgainstExpected(expected, actual) {
|
|
189215
|
+
const diffs = [];
|
|
189216
|
+
walk(expected, actual, "", diffs);
|
|
189217
|
+
return { matched: diffs.length === 0, diffs };
|
|
189218
|
+
}
|
|
189219
|
+
|
|
189220
|
+
// src/lib/payload.ts
|
|
189221
|
+
import { existsSync as existsSync11, readdirSync as readdirSync3, readFileSync as readFileSync10, statSync as statSync3 } from "fs";
|
|
189222
|
+
import { join as join6 } from "path";
|
|
189223
|
+
|
|
189224
|
+
// src/lib/fs-helpers.ts
|
|
189225
|
+
var import_yaml6 = __toESM(require_dist4(), 1);
|
|
189226
|
+
import { extname as extname3, join as join5 } from "path";
|
|
189227
|
+
|
|
189228
|
+
// src/lib/normalize.ts
|
|
189229
|
+
var import_yaml5 = __toESM(require_dist4(), 1);
|
|
189230
|
+
|
|
189231
|
+
// src/lib/fs-helpers.ts
|
|
189232
|
+
var EXT_MIME = {
|
|
189233
|
+
".pdf": "application/pdf",
|
|
189234
|
+
".png": "image/png",
|
|
189235
|
+
".jpg": "image/jpeg",
|
|
189236
|
+
".jpeg": "image/jpeg",
|
|
189237
|
+
".webp": "image/webp",
|
|
189238
|
+
".tiff": "image/tiff",
|
|
189239
|
+
".odt": "application/vnd.oasis.opendocument.text",
|
|
189240
|
+
".txt": "text/plain",
|
|
189241
|
+
".csv": "text/csv",
|
|
189242
|
+
".docx": "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
|
|
189243
|
+
".xlsx": "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
|
|
189244
|
+
".doc": "application/msword",
|
|
189245
|
+
".xls": "application/vnd.ms-excel",
|
|
189246
|
+
".rtf": "application/rtf",
|
|
189247
|
+
".json": "application/json",
|
|
189248
|
+
".xml": "application/xml",
|
|
189249
|
+
".html": "text/html"
|
|
189250
|
+
};
|
|
189251
|
+
function guessMimeType(filename) {
|
|
189252
|
+
return EXT_MIME[extname3(filename).toLowerCase()] || "";
|
|
189253
|
+
}
|
|
189254
|
+
|
|
189255
|
+
// src/lib/payload.ts
|
|
189256
|
+
var DATASET_EXAMPLES_DIR = ["dataset", "examples"];
|
|
189257
|
+
function resolveEvalBaseDir(dir) {
|
|
189258
|
+
const candidates = [join6(dir, ...DATASET_EXAMPLES_DIR), join6(...DATASET_EXAMPLES_DIR)];
|
|
189259
|
+
for (const candidate of candidates) {
|
|
189260
|
+
if (existsSync11(candidate))
|
|
189261
|
+
return candidate;
|
|
189262
|
+
}
|
|
189263
|
+
return null;
|
|
189264
|
+
}
|
|
189265
|
+
|
|
189266
|
+
// src/commands/workflow/eval-example.ts
|
|
189267
|
+
var RUN_POLL_INTERVAL_MS = 2000;
|
|
189268
|
+
var RUN_MAX_WAIT_MS = 5 * 60 * 1000;
|
|
189269
|
+
function resolveEvalGraceMs() {
|
|
189270
|
+
const raw = env.EIGENPAL_EVAL_GRACE_MS;
|
|
189271
|
+
if (raw !== undefined) {
|
|
189272
|
+
const parsed = Number(raw);
|
|
189273
|
+
if (Number.isFinite(parsed) && parsed >= 0)
|
|
189274
|
+
return parsed;
|
|
189275
|
+
}
|
|
189276
|
+
return 90 * 1000;
|
|
189277
|
+
}
|
|
189278
|
+
var EVAL_GRACE_MS = resolveEvalGraceMs();
|
|
189279
|
+
var EVAL_POLL_INTERVAL_MS = 2000;
|
|
189280
|
+
var EXAMPLE_PAGE_SIZE = 100;
|
|
189281
|
+
var TERMINAL = new Set(["completed", "failed", "cancelled", "rejected", "timeout"]);
|
|
189282
|
+
function fmtScore(score) {
|
|
189283
|
+
return typeof score === "number" ? score.toFixed(2) : "n/a";
|
|
189284
|
+
}
|
|
189285
|
+
function toNumberOrNull(value) {
|
|
189286
|
+
if (typeof value === "number")
|
|
189287
|
+
return Number.isFinite(value) ? value : null;
|
|
189288
|
+
if (typeof value === "string") {
|
|
189289
|
+
const parsed = Number(value);
|
|
189290
|
+
return Number.isFinite(parsed) ? parsed : null;
|
|
189291
|
+
}
|
|
189292
|
+
return null;
|
|
189293
|
+
}
|
|
189294
|
+
function runOutput(run) {
|
|
189295
|
+
return run.output !== undefined ? run.output : run.result?.output;
|
|
189296
|
+
}
|
|
189297
|
+
async function fetchHasEvaluators(client, workflowId) {
|
|
189298
|
+
const cfg = await client.get(`/api/v1/automations/${workflowId}/evaluators`);
|
|
189299
|
+
return Array.isArray(cfg.config?.evaluators) && cfg.config.evaluators.length > 0;
|
|
189300
|
+
}
|
|
189301
|
+
async function resolveExample(client, workflowId, name) {
|
|
189302
|
+
let offset = 0;
|
|
189303
|
+
for (;; ) {
|
|
189304
|
+
const page = await client.get(`/api/v1/automations/${workflowId}/examples`, {
|
|
189305
|
+
limit: String(EXAMPLE_PAGE_SIZE),
|
|
189306
|
+
offset: String(offset)
|
|
189307
|
+
});
|
|
189308
|
+
const rows = page.data ?? [];
|
|
189309
|
+
const hit = rows.find((r5) => r5.name === name);
|
|
189310
|
+
if (hit)
|
|
189311
|
+
return { id: hit.id, expected: hit.expected };
|
|
189312
|
+
if (rows.length < EXAMPLE_PAGE_SIZE)
|
|
189313
|
+
return null;
|
|
189314
|
+
offset += rows.length;
|
|
189315
|
+
}
|
|
189316
|
+
}
|
|
189317
|
+
async function pollRunTerminal(client, runId) {
|
|
189318
|
+
const start = Date.now();
|
|
189319
|
+
const base = `/api/v1/runs/${encodeURIComponent(runId)}`;
|
|
189320
|
+
for (;; ) {
|
|
189321
|
+
const run = await client.get(base);
|
|
189322
|
+
const status = run.execution?.status ?? run.status;
|
|
189323
|
+
if (run.finished || status && TERMINAL.has(status)) {
|
|
189324
|
+
return await client.get(`${base}?expand=execution`);
|
|
189325
|
+
}
|
|
189326
|
+
if (Date.now() - start > RUN_MAX_WAIT_MS) {
|
|
189327
|
+
return { ...run, status: "timeout", execution: { status: "timeout" } };
|
|
189328
|
+
}
|
|
189329
|
+
await new Promise((r5) => setTimeout(r5, RUN_POLL_INTERVAL_MS));
|
|
189330
|
+
}
|
|
189331
|
+
}
|
|
189332
|
+
async function pollEvalRollup(client, runId) {
|
|
189333
|
+
const start = Date.now();
|
|
189334
|
+
for (;; ) {
|
|
189335
|
+
const run = await client.get(`/api/v1/runs/${encodeURIComponent(runId)}`);
|
|
189336
|
+
if (run.eval && run.eval.passed != null) {
|
|
189337
|
+
return { score: run.eval.score ?? null, passed: run.eval.passed };
|
|
189338
|
+
}
|
|
189339
|
+
if (Date.now() - start > EVAL_GRACE_MS)
|
|
189340
|
+
return null;
|
|
189341
|
+
await new Promise((r5) => setTimeout(r5, EVAL_POLL_INTERVAL_MS));
|
|
189342
|
+
}
|
|
189343
|
+
}
|
|
189344
|
+
async function fetchEvalRows(client, workflowId, batchId, runId) {
|
|
189345
|
+
const detail = await client.get(`/api/v1/automations/${workflowId}/experiments/${batchId}`);
|
|
189346
|
+
return detail.resultsByRun?.[runId] ?? [];
|
|
189347
|
+
}
|
|
189348
|
+
function toArtifactPayload(run, runId) {
|
|
189349
|
+
return {
|
|
189350
|
+
executionId: runId,
|
|
189351
|
+
status: run.execution?.status ?? run.status ?? "unknown",
|
|
189352
|
+
createdAt: run.timing?.createdAt ?? new Date().toISOString(),
|
|
189353
|
+
completedAt: run.timing?.completedAt ?? null,
|
|
189354
|
+
error: run.error !== undefined ? run.error : run.result?.error ?? null,
|
|
189355
|
+
output: runOutput(run),
|
|
189356
|
+
stepExecutions: []
|
|
189357
|
+
};
|
|
189358
|
+
}
|
|
189359
|
+
async function runWorkflowExamplesWithEval(client, dir, workflowIdOrSlug, workflowId, exampleNames) {
|
|
189360
|
+
const hasEvaluators = await fetchHasEvaluators(client, workflowId);
|
|
189361
|
+
const mode = hasEvaluators ? "evaluators" : "diff";
|
|
189362
|
+
info(`Running ${ui.bold(`"${workflowIdOrSlug}"`)} ${ui.dim(`(${workflowId}, ${exampleNames.length} example(s))`)}`);
|
|
189363
|
+
dim(hasEvaluators ? "Server example run; grading with configured evaluators." : "Server example run; no evaluators configured, grading by structural diff vs expected.");
|
|
189364
|
+
const evalBaseDir = resolveEvalBaseDir(dir);
|
|
189365
|
+
const results = [];
|
|
189366
|
+
for (const name of exampleNames) {
|
|
189367
|
+
process.stderr.write(`${ui.dim("→")} ${name}
|
|
189368
|
+
`);
|
|
189369
|
+
try {
|
|
189370
|
+
const example = await resolveExample(client, workflowId, name);
|
|
189371
|
+
if (!example) {
|
|
189372
|
+
throw new Error(`example "${name}" not found in the server dataset for ${workflowId}. ` + `Push it first: eigenpal workflow dataset push ${workflowId}`);
|
|
189373
|
+
}
|
|
189374
|
+
const started = await client.post(`/api/v1/automations/${workflowId}/examples/${example.id}/run`, {});
|
|
189375
|
+
const runId = started.id;
|
|
189376
|
+
if (typeof runId !== "string")
|
|
189377
|
+
throw new Error("Example run did not return a run id");
|
|
189378
|
+
process.stderr.write(` ${ui.dim(`run: ${runId}`)}
|
|
189379
|
+
`);
|
|
189380
|
+
const run = await pollRunTerminal(client, runId);
|
|
189381
|
+
const status = run.execution?.status ?? run.status;
|
|
189382
|
+
const runOk = status === "completed";
|
|
189383
|
+
const result = {
|
|
189384
|
+
name,
|
|
189385
|
+
exampleId: example.id,
|
|
189386
|
+
executionId: runId,
|
|
189387
|
+
run: runOk ? "ok" : "error",
|
|
189388
|
+
runError: runOk ? undefined : run.error ?? status ?? "unknown",
|
|
189389
|
+
mode: "none"
|
|
189390
|
+
};
|
|
189391
|
+
if (runOk && hasEvaluators && started.batchId) {
|
|
189392
|
+
const rollup = await pollEvalRollup(client, runId);
|
|
189393
|
+
if (rollup) {
|
|
189394
|
+
const rows = await fetchEvalRows(client, workflowId, started.batchId, runId);
|
|
189395
|
+
result.mode = "evaluators";
|
|
189396
|
+
result.score = rollup.score;
|
|
189397
|
+
result.passed = rollup.passed;
|
|
189398
|
+
result.evaluators = rows.map((r5) => ({
|
|
189399
|
+
name: r5.evaluatorName ?? "evaluator",
|
|
189400
|
+
score: toNumberOrNull(r5.score),
|
|
189401
|
+
passed: r5.passed ?? null,
|
|
189402
|
+
weight: toNumberOrNull(r5.weight),
|
|
189403
|
+
error: r5.error ?? null
|
|
189404
|
+
}));
|
|
189405
|
+
} else {
|
|
189406
|
+
warn(` ${name}: no evaluator score after ${EVAL_GRACE_MS / 1000}s; grading by diff.`);
|
|
189407
|
+
gradeByDiff(result, example.expected, runOutput(run));
|
|
189408
|
+
}
|
|
189409
|
+
} else if (runOk) {
|
|
189410
|
+
gradeByDiff(result, example.expected, runOutput(run));
|
|
189411
|
+
}
|
|
189412
|
+
results.push(result);
|
|
189413
|
+
reportLine(result);
|
|
189414
|
+
if (evalBaseDir) {
|
|
189415
|
+
try {
|
|
189416
|
+
await writeExecutionArtifacts(client, `${evalBaseDir}/${name}`, toArtifactPayload(run, runId));
|
|
189417
|
+
} catch {}
|
|
189418
|
+
}
|
|
189419
|
+
} catch (err2) {
|
|
189420
|
+
const result = {
|
|
189421
|
+
name,
|
|
189422
|
+
run: "error",
|
|
189423
|
+
runError: formatCliError(err2),
|
|
189424
|
+
mode: "none"
|
|
189425
|
+
};
|
|
189426
|
+
results.push(result);
|
|
189427
|
+
reportLine(result);
|
|
189428
|
+
}
|
|
189429
|
+
}
|
|
189430
|
+
const summary = summarize(workflowIdOrSlug, mode, results);
|
|
189431
|
+
process.stderr.write(`
|
|
189432
|
+
${formatEvalSummary(summary)}
|
|
189433
|
+
`);
|
|
189434
|
+
return summary;
|
|
189435
|
+
}
|
|
189436
|
+
function gradeByDiff(result, expected, output) {
|
|
189437
|
+
if (expected === undefined || expected === null) {
|
|
189438
|
+
result.mode = "none";
|
|
189439
|
+
return;
|
|
189440
|
+
}
|
|
189441
|
+
const graded = gradeAgainstExpected(expected, output);
|
|
189442
|
+
result.mode = "diff";
|
|
189443
|
+
result.matched = graded.matched;
|
|
189444
|
+
result.diffCount = graded.diffs.length;
|
|
189445
|
+
result.diffs = graded.diffs.length ? graded.diffs : undefined;
|
|
189446
|
+
}
|
|
189447
|
+
function formatExampleLines(result) {
|
|
189448
|
+
if (result.run === "error") {
|
|
189449
|
+
return `${result.name} ${ui.err(`err ${result.runError ?? ""}`.trimEnd())}`;
|
|
189450
|
+
}
|
|
189451
|
+
if (result.mode === "evaluators") {
|
|
189452
|
+
const verdict = result.passed === true ? ui.ok("PASS") : ui.err("FAIL");
|
|
189453
|
+
const head = `${result.name} ${ui.ok("ok")} score ${fmtScore(result.score)} ${verdict}`;
|
|
189454
|
+
const detail = (result.evaluators ?? []).map((e8) => {
|
|
189455
|
+
const mark = e8.error ? ui.warn("error") : e8.passed === true ? ui.ok("pass") : e8.passed === false ? ui.err("fail") : ui.dim("n/a");
|
|
189456
|
+
return ` ${e8.name} ${fmtScore(e8.score)} ${mark}`;
|
|
189457
|
+
});
|
|
189458
|
+
return [head, ...detail].join(`
|
|
189459
|
+
`);
|
|
189460
|
+
}
|
|
189461
|
+
if (result.mode === "diff") {
|
|
189462
|
+
const verdict = result.matched ? ui.ok("PASS") : ui.err(`FAIL (${result.diffCount} diff)`);
|
|
189463
|
+
return `${result.name} ${ui.ok("ok")} ${verdict}`;
|
|
189464
|
+
}
|
|
189465
|
+
return `${result.name} ${ui.ok("ok")} ${ui.dim("-")}`;
|
|
189466
|
+
}
|
|
189467
|
+
function reportLine(result) {
|
|
189468
|
+
process.stderr.write(`${formatExampleLines(result)}
|
|
189469
|
+
`);
|
|
189470
|
+
}
|
|
189471
|
+
function summarize(workflow2, mode, examples) {
|
|
189472
|
+
const ok2 = examples.filter((r5) => r5.run === "ok").length;
|
|
189473
|
+
const errored = examples.length - ok2;
|
|
189474
|
+
const gradedResults = examples.filter((r5) => r5.mode === "evaluators" || r5.mode === "diff");
|
|
189475
|
+
const passedCases = gradedResults.filter((r5) => r5.mode === "evaluators" ? r5.passed === true : r5.matched === true).length;
|
|
189476
|
+
const scores = gradedResults.filter((r5) => r5.mode === "evaluators" && typeof r5.score === "number").map((r5) => r5.score);
|
|
189477
|
+
return {
|
|
189478
|
+
workflow: workflow2,
|
|
189479
|
+
mode,
|
|
189480
|
+
total: examples.length,
|
|
189481
|
+
ok: ok2,
|
|
189482
|
+
errored,
|
|
189483
|
+
graded: gradedResults.length,
|
|
189484
|
+
passedCases,
|
|
189485
|
+
failedCases: gradedResults.length - passedCases,
|
|
189486
|
+
ungraded: ok2 - gradedResults.length,
|
|
189487
|
+
weightedAvg: scores.length ? scores.reduce((s5, n5) => s5 + n5, 0) / scores.length : null,
|
|
189488
|
+
examples,
|
|
189489
|
+
passed: ok2,
|
|
189490
|
+
failed: errored
|
|
189491
|
+
};
|
|
189492
|
+
}
|
|
189493
|
+
function formatEvalSummary(summary) {
|
|
189494
|
+
const lines = [];
|
|
189495
|
+
let line3 = `${ui.bold("Ran")} ${summary.total}: ${ui.ok(`${summary.ok} ok`)}`;
|
|
189496
|
+
if (summary.errored > 0)
|
|
189497
|
+
line3 += `, ${ui.err(`${summary.errored} errored`)}`;
|
|
189498
|
+
if (summary.graded > 0) {
|
|
189499
|
+
const allPass = summary.failedCases === 0;
|
|
189500
|
+
if (summary.mode === "evaluators") {
|
|
189501
|
+
const cases = `${summary.passedCases}/${summary.graded} cases pass`;
|
|
189502
|
+
const weighted = summary.weightedAvg != null ? `weighted ${summary.weightedAvg.toFixed(2)}, ` : "";
|
|
189503
|
+
line3 += ` ${ui.dim("/")} ${weighted}${allPass ? ui.ok(cases) : ui.err(cases)}`;
|
|
189504
|
+
} else {
|
|
189505
|
+
const acc = `${summary.passedCases}/${summary.graded} matched`;
|
|
189506
|
+
line3 += ` ${ui.dim("/")} accuracy ${allPass ? ui.ok(acc) : ui.err(acc)}`;
|
|
189507
|
+
}
|
|
189508
|
+
}
|
|
189509
|
+
lines.push(line3);
|
|
189510
|
+
if (summary.ungraded > 0) {
|
|
189511
|
+
lines.push(ui.dim(` ${summary.ungraded} ungraded (no stored expected output)`));
|
|
189512
|
+
}
|
|
189513
|
+
return lines.join(`
|
|
189514
|
+
`);
|
|
189515
|
+
}
|
|
189516
|
+
|
|
188917
189517
|
// src/commands/runs.ts
|
|
188918
189518
|
function registerRunsCommands(program2) {
|
|
188919
189519
|
const runs = program2.command("runs").description("Inspect, watch, and manage workflow, agent, and eval runs.").action(() => {
|
|
@@ -188973,10 +189573,37 @@ async function runExample(agentId, opts) {
|
|
|
188973
189573
|
...opts.sourceRef ? { sourceRef: opts.sourceRef } : {}
|
|
188974
189574
|
});
|
|
188975
189575
|
const runId = started.runs?.[0]?.id;
|
|
189576
|
+
if (opts.failOnMismatch && !opts.wait) {
|
|
189577
|
+
warn("--fail-on-mismatch has no effect without --wait; the evaluator verdict is not awaited.");
|
|
189578
|
+
}
|
|
188976
189579
|
if (opts.wait && runId) {
|
|
188977
|
-
|
|
189580
|
+
let payload2 = await pollRun(client, runId, opts.interval, opts.maxWait);
|
|
189581
|
+
const status = payload2.execution?.status;
|
|
189582
|
+
let wait = { kind: "no-evaluators" };
|
|
189583
|
+
if (status === "completed") {
|
|
189584
|
+
wait = await waitForExampleEvalRollup(client, agentId, runId);
|
|
189585
|
+
if (wait.kind === "landed") {
|
|
189586
|
+
payload2 = await client.get(`/api/v1/runs/${encodeURIComponent(runId)}?expand=usage,execution`);
|
|
189587
|
+
}
|
|
189588
|
+
}
|
|
188978
189589
|
renderRunPayload(payload2, opts);
|
|
189590
|
+
if (!opts.json && wait.kind === "landed") {
|
|
189591
|
+
const score = typeof wait.rollup.score === "number" ? wait.rollup.score.toFixed(2) : "n/a";
|
|
189592
|
+
const verdict = wait.rollup.passed === true ? ui.ok("PASS") : ui.err("FAIL");
|
|
189593
|
+
process.stderr.write(` eval: score ${score} ${verdict}
|
|
189594
|
+
`);
|
|
189595
|
+
}
|
|
188979
189596
|
setExitCodeForFailedTerminalRun(payload2);
|
|
189597
|
+
if (opts.failOnMismatch && status === "completed") {
|
|
189598
|
+
if (wait.kind === "landed" && wait.rollup.passed !== true) {
|
|
189599
|
+
process.exitCode = 1;
|
|
189600
|
+
} else if (wait.kind === "timeout") {
|
|
189601
|
+
error51(`--fail-on-mismatch: no evaluator verdict landed within ${EVAL_GRACE_MS / 1000}s; refusing to report success without a verdict.`);
|
|
189602
|
+
process.exitCode = 2;
|
|
189603
|
+
} else if (wait.kind === "no-evaluators") {
|
|
189604
|
+
warn("--fail-on-mismatch cannot gate this run: no evaluators are configured.");
|
|
189605
|
+
}
|
|
189606
|
+
}
|
|
188980
189607
|
return;
|
|
188981
189608
|
}
|
|
188982
189609
|
const payload = {
|
|
@@ -188989,6 +189616,22 @@ async function runExample(agentId, opts) {
|
|
|
188989
189616
|
return printJson(payload);
|
|
188990
189617
|
success2(`Run ${runId ?? ""} queued for example ${opts.example}`);
|
|
188991
189618
|
}
|
|
189619
|
+
async function waitForExampleEvalRollup(client, agentId, runId) {
|
|
189620
|
+
let hasEvaluators = true;
|
|
189621
|
+
try {
|
|
189622
|
+
hasEvaluators = await fetchHasEvaluators(client, agentAutomationId(agentId));
|
|
189623
|
+
} catch {}
|
|
189624
|
+
if (!hasEvaluators) {
|
|
189625
|
+
warn("No evaluators configured for this automation; run not graded.");
|
|
189626
|
+
return { kind: "no-evaluators" };
|
|
189627
|
+
}
|
|
189628
|
+
const rollup = await pollEvalRollup(client, runId);
|
|
189629
|
+
if (!rollup) {
|
|
189630
|
+
warn(`No evaluator verdict for this run after ${EVAL_GRACE_MS / 1000}s.`);
|
|
189631
|
+
return { kind: "timeout" };
|
|
189632
|
+
}
|
|
189633
|
+
return { kind: "landed", rollup };
|
|
189634
|
+
}
|
|
188992
189635
|
var SERVER_EXPAND_SECTIONS = new Set(RUN_EXPAND_SECTIONS);
|
|
188993
189636
|
var LEGACY_INCLUDE_EXPAND_MAP = {
|
|
188994
189637
|
output: null,
|
|
@@ -189012,11 +189655,11 @@ function splitCsv(raw) {
|
|
|
189012
189655
|
function collectExactServerExpandTokens(raw) {
|
|
189013
189656
|
const valid = [];
|
|
189014
189657
|
const invalid = [];
|
|
189015
|
-
for (const
|
|
189016
|
-
if (SERVER_EXPAND_SECTIONS.has(
|
|
189017
|
-
valid.push(
|
|
189658
|
+
for (const token2 of splitCsv(raw)) {
|
|
189659
|
+
if (SERVER_EXPAND_SECTIONS.has(token2)) {
|
|
189660
|
+
valid.push(token2);
|
|
189018
189661
|
} else {
|
|
189019
|
-
invalid.push(
|
|
189662
|
+
invalid.push(token2);
|
|
189020
189663
|
}
|
|
189021
189664
|
}
|
|
189022
189665
|
if (invalid.length > 0) {
|
|
@@ -189026,11 +189669,11 @@ function collectExactServerExpandTokens(raw) {
|
|
|
189026
189669
|
}
|
|
189027
189670
|
function collectIncludeExpandTokens(raw) {
|
|
189028
189671
|
const sections = new Set;
|
|
189029
|
-
for (const
|
|
189030
|
-
if (SERVER_EXPAND_SECTIONS.has(
|
|
189031
|
-
sections.add(
|
|
189032
|
-
else if (
|
|
189033
|
-
const mapped = LEGACY_INCLUDE_EXPAND_MAP[
|
|
189672
|
+
for (const token2 of splitCsv(raw)) {
|
|
189673
|
+
if (SERVER_EXPAND_SECTIONS.has(token2))
|
|
189674
|
+
sections.add(token2);
|
|
189675
|
+
else if (token2 in LEGACY_INCLUDE_EXPAND_MAP) {
|
|
189676
|
+
const mapped = LEGACY_INCLUDE_EXPAND_MAP[token2];
|
|
189034
189677
|
if (mapped)
|
|
189035
189678
|
sections.add(mapped);
|
|
189036
189679
|
}
|
|
@@ -189085,8 +189728,8 @@ function objectOrNull(value) {
|
|
|
189085
189728
|
}
|
|
189086
189729
|
function toLegacyRunView(run) {
|
|
189087
189730
|
const timing = objectOrNull(run.timing);
|
|
189088
|
-
const
|
|
189089
|
-
const sourceGit = objectOrNull(
|
|
189731
|
+
const source2 = objectOrNull(run.source);
|
|
189732
|
+
const sourceGit = objectOrNull(source2?.git);
|
|
189090
189733
|
const trigger = objectOrNull(run.trigger);
|
|
189091
189734
|
const lineage = objectOrNull(run.lineage);
|
|
189092
189735
|
const execution = objectOrNull(run.execution);
|
|
@@ -189101,7 +189744,7 @@ function toLegacyRunView(run) {
|
|
|
189101
189744
|
const executionFiles = objectOrNull(execution?.files);
|
|
189102
189745
|
const executionExpected = objectOrNull(execution?.expected);
|
|
189103
189746
|
const debug = objectOrNull(run.debug);
|
|
189104
|
-
const hasGroupedShape = timing != null ||
|
|
189747
|
+
const hasGroupedShape = timing != null || source2 != null || result != null || run.output !== undefined;
|
|
189105
189748
|
if (!hasGroupedShape)
|
|
189106
189749
|
return run;
|
|
189107
189750
|
const terminalOutput = run.output !== undefined ? run.output : result?.output;
|
|
@@ -189115,12 +189758,12 @@ function toLegacyRunView(run) {
|
|
|
189115
189758
|
completedAt: timing?.completedAt,
|
|
189116
189759
|
durationMs: timing?.durationMs,
|
|
189117
189760
|
cancelRequestedAt: timing?.cancelRequestedAt,
|
|
189118
|
-
sourceId:
|
|
189119
|
-
sourceName:
|
|
189120
|
-
version:
|
|
189121
|
-
versionId:
|
|
189122
|
-
agentSlug:
|
|
189123
|
-
model:
|
|
189761
|
+
sourceId: source2?.id,
|
|
189762
|
+
sourceName: source2?.name,
|
|
189763
|
+
version: source2?.version,
|
|
189764
|
+
versionId: source2?.versionId,
|
|
189765
|
+
agentSlug: source2?.slug,
|
|
189766
|
+
model: source2?.model,
|
|
189124
189767
|
requestedSourceRef: sourceGit?.requestedRef,
|
|
189125
189768
|
resolvedGitRef: sourceGit?.resolvedRef,
|
|
189126
189769
|
resolvedGitTag: sourceGit?.resolvedTag,
|
|
@@ -189262,8 +189905,8 @@ async function rerunRun(executionId, opts) {
|
|
|
189262
189905
|
params.set("version", version2);
|
|
189263
189906
|
}
|
|
189264
189907
|
const query = params.toString();
|
|
189265
|
-
const
|
|
189266
|
-
let payload = await client.post(
|
|
189908
|
+
const path16 = `/api/v1/runs/${encodeURIComponent(executionId)}/rerun${query ? `?${query}` : ""}`;
|
|
189909
|
+
let payload = await client.post(path16);
|
|
189267
189910
|
const rerunId = String(payload.id ?? "");
|
|
189268
189911
|
if (opts.wait && rerunId) {
|
|
189269
189912
|
payload = await pollRun(client, rerunId, opts.interval, opts.maxWait);
|
|
@@ -189291,8 +189934,8 @@ async function fetchRunArtifacts(executionId, opts) {
|
|
|
189291
189934
|
expand: "input,execution"
|
|
189292
189935
|
}));
|
|
189293
189936
|
const run = await attachListedArtifacts(client, executionId, baseRun);
|
|
189294
|
-
const out =
|
|
189295
|
-
await
|
|
189937
|
+
const out = path15.resolve(opts.out ?? path15.join(".eigenpal", "artifacts", "runs", executionId));
|
|
189938
|
+
await fs14.mkdir(out, { recursive: true });
|
|
189296
189939
|
const written = [];
|
|
189297
189940
|
const skipped = [];
|
|
189298
189941
|
const selectedPaths = opts.path && opts.path.length > 0 ? opts.path : runArtifactInventory(run).filter((artifact) => artifactIncluded(artifact, opts.include)).map((artifact) => artifact.path);
|
|
@@ -189355,11 +189998,11 @@ async function attachListedArtifacts(client, executionId, run) {
|
|
|
189355
189998
|
...run,
|
|
189356
189999
|
resultFiles: [
|
|
189357
190000
|
...artifactEntries(run.resultFiles),
|
|
189358
|
-
...artifacts.filter((
|
|
190001
|
+
...artifacts.filter((a5) => a5.kind === "output").map(({ name, path: path16 }) => ({ name, path: path16 }))
|
|
189359
190002
|
],
|
|
189360
|
-
issueFiles: artifacts.filter((
|
|
189361
|
-
traceFiles: artifacts.filter((
|
|
189362
|
-
lockfileFiles: artifacts.filter((
|
|
190003
|
+
issueFiles: artifacts.filter((a5) => a5.kind === "issue").map(({ name }) => ({ name })),
|
|
190004
|
+
traceFiles: artifacts.filter((a5) => a5.kind === "trace").map(({ name }) => ({ name })),
|
|
190005
|
+
lockfileFiles: artifacts.filter((a5) => a5.kind === "lockfile").map(({ name }) => ({ name }))
|
|
189363
190006
|
};
|
|
189364
190007
|
}
|
|
189365
190008
|
function artifactPathForKind(kind, name) {
|
|
@@ -189402,14 +190045,14 @@ function normalizeArtifactPath(artifactPath) {
|
|
|
189402
190045
|
return artifactPath;
|
|
189403
190046
|
}
|
|
189404
190047
|
async function writeJsonRunArtifact(out, artifactPath, value) {
|
|
189405
|
-
await
|
|
189406
|
-
await
|
|
190048
|
+
await fs14.mkdir(path15.dirname(path15.join(out, artifactPath)), { recursive: true });
|
|
190049
|
+
await fs14.writeFile(path15.join(out, artifactPath), JSON.stringify(value, null, 2));
|
|
189407
190050
|
}
|
|
189408
190051
|
async function writeDownloadedRunArtifact(client, executionId, out, artifactPath) {
|
|
189409
190052
|
const response = await client.getStream(`/api/v1/runs/${encodeURIComponent(executionId)}/artifacts/${encodeRunArtifactPath(artifactPath)}`);
|
|
189410
|
-
const outPath =
|
|
189411
|
-
await
|
|
189412
|
-
await
|
|
190053
|
+
const outPath = path15.join(out, artifactPath);
|
|
190054
|
+
await fs14.mkdir(path15.dirname(outPath), { recursive: true });
|
|
190055
|
+
await fs14.writeFile(outPath, Buffer.from(await response.arrayBuffer()));
|
|
189413
190056
|
}
|
|
189414
190057
|
async function writeRunArtifact(client, executionId, out, artifactPath, run) {
|
|
189415
190058
|
if (artifactPath === "run.json") {
|
|
@@ -189440,13 +190083,16 @@ async function writeRunArtifact(client, executionId, out, artifactPath, run) {
|
|
|
189440
190083
|
async function traceRun(executionId, opts) {
|
|
189441
190084
|
const client = buildClient(opts);
|
|
189442
190085
|
const text = await downloadTraceText(client, executionId);
|
|
190086
|
+
if (text.length === 0) {
|
|
190087
|
+
warn(`No trace events recorded for run ${executionId}.`);
|
|
190088
|
+
}
|
|
189443
190089
|
if (!opts.out) {
|
|
189444
190090
|
process.stdout.write(text);
|
|
189445
190091
|
return;
|
|
189446
190092
|
}
|
|
189447
|
-
const out =
|
|
189448
|
-
await
|
|
189449
|
-
await
|
|
190093
|
+
const out = path15.resolve(opts.out);
|
|
190094
|
+
await fs14.mkdir(path15.dirname(out), { recursive: true });
|
|
190095
|
+
await fs14.writeFile(out, text);
|
|
189450
190096
|
success2(`Downloaded trace for ${executionId} to ${ui.bold(out)}`);
|
|
189451
190097
|
}
|
|
189452
190098
|
async function compareRun(referenceId, executionId, opts) {
|
|
@@ -189475,8 +190121,8 @@ async function compareRun(referenceId, executionId, opts) {
|
|
|
189475
190121
|
if (isWorkflowRun(reference) || isWorkflowRun(target)) {
|
|
189476
190122
|
throw new Error("Mixed workflow/agent comparisons are not supported. Compare two workflow runs or two agent runs.");
|
|
189477
190123
|
}
|
|
189478
|
-
const out =
|
|
189479
|
-
await
|
|
190124
|
+
const out = path15.resolve(opts.out ?? path15.join(".eigenpal", "artifacts", "comparisons", `${referenceId}..${executionId}`));
|
|
190125
|
+
await fs14.mkdir(out, { recursive: true });
|
|
189480
190126
|
const warnings = [];
|
|
189481
190127
|
if (mode === "expected" && reference.expected == null && fileNames(reference.expectedFiles).length === 0) {
|
|
189482
190128
|
warnings.push(`Reference run ${referenceId} has no expected JSON or expected files; comparison has no baseline artifacts. Use --baseline to compare actual outputs.`);
|
|
@@ -189498,7 +190144,7 @@ async function compareRun(referenceId, executionId, opts) {
|
|
|
189498
190144
|
extraFiles: inventory.extra,
|
|
189499
190145
|
textDifferences
|
|
189500
190146
|
};
|
|
189501
|
-
await
|
|
190147
|
+
await fs14.writeFile(path15.join(out, "comparison.json"), JSON.stringify(report, null, 2));
|
|
189502
190148
|
if (opts.json) {
|
|
189503
190149
|
printJson(report);
|
|
189504
190150
|
} else {
|
|
@@ -189591,13 +190237,13 @@ function compareOutputs(reference, target) {
|
|
|
189591
190237
|
return "identical";
|
|
189592
190238
|
return `differs (A=${referenceJson.length}b, B=${targetJson.length}b)`;
|
|
189593
190239
|
}
|
|
189594
|
-
async function listRuns(
|
|
190240
|
+
async function listRuns(source2, opts) {
|
|
189595
190241
|
const client = buildClient(opts);
|
|
189596
|
-
const parsedAgentTarget =
|
|
189597
|
-
const resolvedWorkflowSource =
|
|
190242
|
+
const parsedAgentTarget = source2 && (opts.type === "agent" || source2.startsWith("agents.") || source2.includes("@")) ? parseAgentTarget(source2) : null;
|
|
190243
|
+
const resolvedWorkflowSource = source2 && opts.type === "workflow" ? await resolveWorkflowId(client, source2) : undefined;
|
|
189598
190244
|
const params = {
|
|
189599
190245
|
...buildRunListParams(opts),
|
|
189600
|
-
...parsedAgentTarget ? { type: opts.type ?? "agent", source: parsedAgentTarget.slug } : resolvedWorkflowSource ? { source: resolvedWorkflowSource } :
|
|
190246
|
+
...parsedAgentTarget ? { type: opts.type ?? "agent", source: parsedAgentTarget.slug } : resolvedWorkflowSource ? { source: resolvedWorkflowSource } : source2 ? { source: source2 } : {},
|
|
189601
190247
|
...parsedAgentTarget?.sourceRef ? { sourceRef: parsedAgentTarget.sourceRef } : {}
|
|
189602
190248
|
};
|
|
189603
190249
|
const payload = await client.get("/api/v1/runs", params);
|
|
@@ -189655,13 +190301,13 @@ async function updateRunReview(executionId, opts) {
|
|
|
189655
190301
|
if (opts.verdict !== undefined)
|
|
189656
190302
|
body.verdict = opts.verdict;
|
|
189657
190303
|
if (opts.noteFile)
|
|
189658
|
-
body.note = await
|
|
190304
|
+
body.note = await fs14.readFile(opts.noteFile, "utf-8");
|
|
189659
190305
|
if (opts.note !== undefined)
|
|
189660
190306
|
body.note = opts.note;
|
|
189661
190307
|
if (opts.clearNote)
|
|
189662
190308
|
body.note = "";
|
|
189663
190309
|
if (opts.correctedJsonFile)
|
|
189664
|
-
body.correctedOutput = JSON.parse(await
|
|
190310
|
+
body.correctedOutput = JSON.parse(await fs14.readFile(opts.correctedJsonFile, "utf-8"));
|
|
189665
190311
|
if (opts.correctedJson !== undefined)
|
|
189666
190312
|
body.correctedOutput = JSON.parse(opts.correctedJson);
|
|
189667
190313
|
if (opts.clearCorrectedJson)
|
|
@@ -189673,7 +190319,7 @@ async function closeRunReview(executionId, opts) {
|
|
|
189673
190319
|
const client = buildClient(opts);
|
|
189674
190320
|
const body = { status: opts.status ?? "closed" };
|
|
189675
190321
|
if (opts.noteFile)
|
|
189676
|
-
body.note = await
|
|
190322
|
+
body.note = await fs14.readFile(opts.noteFile, "utf-8");
|
|
189677
190323
|
if (opts.note !== undefined)
|
|
189678
190324
|
body.note = opts.note;
|
|
189679
190325
|
const payload = await client.patch(`/api/v1/runs/${encodeURIComponent(executionId)}/reviews`, body);
|
|
@@ -189725,10 +190371,10 @@ async function listRunExpected(executionId, opts) {
|
|
|
189725
190371
|
async function pullRunExpected(executionId, opts) {
|
|
189726
190372
|
const client = buildClient(opts);
|
|
189727
190373
|
const payload = await readRunExpected(client, executionId);
|
|
189728
|
-
const out =
|
|
189729
|
-
await
|
|
190374
|
+
const out = path15.resolve(opts.out ?? path15.join(executionId, "expected"));
|
|
190375
|
+
await fs14.mkdir(out, { recursive: true });
|
|
189730
190376
|
if (payload.expected != null) {
|
|
189731
|
-
await
|
|
190377
|
+
await fs14.writeFile(path15.join(out, "expected.json"), JSON.stringify(payload.expected, null, 2));
|
|
189732
190378
|
}
|
|
189733
190379
|
await downloadExpectedFiles(client, executionId, out, payload.files);
|
|
189734
190380
|
success2(`Pulled expected artifacts for ${executionId} to ${out}`);
|
|
@@ -189740,8 +190386,8 @@ async function downloadExpectedFiles(client, executionId, out, files) {
|
|
|
189740
190386
|
if (!name || name.includes("/") || name.includes(".."))
|
|
189741
190387
|
return null;
|
|
189742
190388
|
const response = await client.getStream(`/api/v1/runs/${encodeURIComponent(executionId)}/artifacts/expected/${encodeURIComponent(name)}`);
|
|
189743
|
-
await
|
|
189744
|
-
await
|
|
190389
|
+
await fs14.mkdir(out, { recursive: true });
|
|
190390
|
+
await fs14.writeFile(path15.join(out, name), Buffer.from(await response.arrayBuffer()));
|
|
189745
190391
|
return name;
|
|
189746
190392
|
}));
|
|
189747
190393
|
return written.filter((name) => Boolean(name));
|
|
@@ -189749,8 +190395,8 @@ async function downloadExpectedFiles(client, executionId, out, files) {
|
|
|
189749
190395
|
async function uploadRunExpected(executionId, file2, opts) {
|
|
189750
190396
|
const client = buildClient(opts);
|
|
189751
190397
|
const form = new FormData;
|
|
189752
|
-
const data = await
|
|
189753
|
-
form.append("file", new Blob([data]),
|
|
190398
|
+
const data = await fs14.readFile(file2);
|
|
190399
|
+
form.append("file", new Blob([data]), path15.basename(file2));
|
|
189754
190400
|
if (opts.name)
|
|
189755
190401
|
form.append("name", opts.name);
|
|
189756
190402
|
const payload = await client.postFormData(`/api/v1/runs/${encodeURIComponent(executionId)}/reviews/expected`, form);
|
|
@@ -189814,8 +190460,11 @@ async function cancelRun(executionId, opts) {
|
|
|
189814
190460
|
renderRunPayload(payload, opts);
|
|
189815
190461
|
}
|
|
189816
190462
|
async function downloadTraceText(client, executionId) {
|
|
189817
|
-
const
|
|
189818
|
-
|
|
190463
|
+
const payload = await client.get(`/api/v1/runs/${encodeURIComponent(executionId)}/trace`);
|
|
190464
|
+
const events = Array.isArray(payload?.events) ? payload.events : [];
|
|
190465
|
+
return events.map((event) => JSON.stringify(event)).join(`
|
|
190466
|
+
`) + (events.length > 0 ? `
|
|
190467
|
+
` : "");
|
|
189819
190468
|
}
|
|
189820
190469
|
function diffJson(expected, actual, basePath = "$") {
|
|
189821
190470
|
if (expected === undefined || expected === null)
|
|
@@ -189824,13 +190473,13 @@ function diffJson(expected, actual, basePath = "$") {
|
|
|
189824
190473
|
return [];
|
|
189825
190474
|
if (expected && actual && typeof expected === "object" && typeof actual === "object" && !Array.isArray(expected) && !Array.isArray(actual)) {
|
|
189826
190475
|
const keys = new Set([...Object.keys(expected), ...Object.keys(actual)]);
|
|
189827
|
-
return [...keys].flatMap((
|
|
189828
|
-
const next = `${basePath}.${
|
|
189829
|
-
if (!(
|
|
190476
|
+
return [...keys].flatMap((key2) => {
|
|
190477
|
+
const next = `${basePath}.${key2}`;
|
|
190478
|
+
if (!(key2 in actual))
|
|
189830
190479
|
return [{ path: next, type: "missing" }];
|
|
189831
|
-
if (!(
|
|
190480
|
+
if (!(key2 in expected))
|
|
189832
190481
|
return [{ path: next, type: "extra" }];
|
|
189833
|
-
return diffJson(expected[
|
|
190482
|
+
return diffJson(expected[key2], actual[key2], next);
|
|
189834
190483
|
});
|
|
189835
190484
|
}
|
|
189836
190485
|
if (Array.isArray(expected) && Array.isArray(actual)) {
|
|
@@ -189870,7 +190519,7 @@ function artifactEntries(files) {
|
|
|
189870
190519
|
name,
|
|
189871
190520
|
...artifactPath ? { path: artifactPath } : {}
|
|
189872
190521
|
};
|
|
189873
|
-
}).filter((entry) => entry !== null).sort((
|
|
190522
|
+
}).filter((entry) => entry !== null).sort((a5, b8) => a5.name.localeCompare(b8.name));
|
|
189874
190523
|
}
|
|
189875
190524
|
function stringOrNull(value) {
|
|
189876
190525
|
return typeof value === "string" && value.length > 0 ? value : null;
|
|
@@ -189914,7 +190563,7 @@ function runArtifactInventory(run) {
|
|
|
189914
190563
|
const byPath = new Map;
|
|
189915
190564
|
for (const row of rows)
|
|
189916
190565
|
byPath.set(row.path, row);
|
|
189917
|
-
return [...byPath.values()].sort((
|
|
190566
|
+
return [...byPath.values()].sort((a5, b8) => a5.path.localeCompare(b8.path));
|
|
189918
190567
|
}
|
|
189919
190568
|
function normalizeGeneratedTokens(value) {
|
|
189920
190569
|
return value.replace(/\d{4}-\d{2}-\d{2}/g, "<date>").replace(/\d{8}/g, "<date>");
|
|
@@ -189934,22 +190583,22 @@ function compareFileInventory(expected, output, normalizeDates) {
|
|
|
189934
190583
|
};
|
|
189935
190584
|
}
|
|
189936
190585
|
async function compareMatchedFileText(client, left, right, out, matched, normalizeDates) {
|
|
189937
|
-
const expectedDir =
|
|
189938
|
-
const outputDir =
|
|
189939
|
-
await
|
|
189940
|
-
await
|
|
190586
|
+
const expectedDir = path15.join(out, "expected");
|
|
190587
|
+
const outputDir = path15.join(out, "output");
|
|
190588
|
+
await fs14.mkdir(expectedDir, { recursive: true });
|
|
190589
|
+
await fs14.mkdir(outputDir, { recursive: true });
|
|
189941
190590
|
const diffs = [];
|
|
189942
190591
|
for (const pair of matched) {
|
|
189943
|
-
const expectedPath =
|
|
189944
|
-
const outputPath =
|
|
190592
|
+
const expectedPath = path15.join(expectedDir, pair.expected);
|
|
190593
|
+
const outputPath = path15.join(outputDir, pair.output);
|
|
189945
190594
|
await downloadStreamToFile(client, runFileUrl(left, pair.expected), expectedPath);
|
|
189946
190595
|
await downloadStreamToFile(client, runFileUrl(right, pair.output), outputPath);
|
|
189947
190596
|
const expectedText = extractComparableText(expectedPath);
|
|
189948
190597
|
const outputText = extractComparableText(outputPath);
|
|
189949
190598
|
if (expectedText.text == null || outputText.text == null) {
|
|
189950
190599
|
const [expectedBuffer, outputBuffer] = await Promise.all([
|
|
189951
|
-
|
|
189952
|
-
|
|
190600
|
+
fs14.readFile(expectedPath),
|
|
190601
|
+
fs14.readFile(outputPath)
|
|
189953
190602
|
]);
|
|
189954
190603
|
const expectedHash = createHash3("sha256").update(expectedBuffer).digest("hex");
|
|
189955
190604
|
const outputHash = createHash3("sha256").update(outputBuffer).digest("hex");
|
|
@@ -189983,15 +190632,15 @@ function runFileUrl(side, name) {
|
|
|
189983
190632
|
function encodeRunArtifactPath(artifactPath) {
|
|
189984
190633
|
return artifactPath.split("/").map(encodeURIComponent).join("/");
|
|
189985
190634
|
}
|
|
189986
|
-
async function downloadStreamToFile(client,
|
|
189987
|
-
await
|
|
189988
|
-
const response = await client.getStream(
|
|
189989
|
-
await
|
|
190635
|
+
async function downloadStreamToFile(client, url3, target) {
|
|
190636
|
+
await fs14.mkdir(path15.dirname(target), { recursive: true });
|
|
190637
|
+
const response = await client.getStream(url3);
|
|
190638
|
+
await fs14.writeFile(target, Buffer.from(await response.arrayBuffer()));
|
|
189990
190639
|
}
|
|
189991
190640
|
function extractComparableText(file2) {
|
|
189992
|
-
const ext =
|
|
190641
|
+
const ext = path15.extname(file2).toLowerCase();
|
|
189993
190642
|
if ([".txt", ".md", ".json", ".csv", ".xml"].includes(ext)) {
|
|
189994
|
-
return { text:
|
|
190643
|
+
return { text: readFileSync11(file2, "utf8") };
|
|
189995
190644
|
}
|
|
189996
190645
|
if (ext === ".pdf") {
|
|
189997
190646
|
const result = spawnSync4("pdftotext", [file2, "-"], { encoding: "utf8" });
|
|
@@ -190073,14 +190722,14 @@ async function listAgents(opts) {
|
|
|
190073
190722
|
dim(`${payload.data.length}${payload.total > payload.data.length ? ` of ${payload.total}` : ""} agents · use --json for the raw payload`);
|
|
190074
190723
|
}
|
|
190075
190724
|
async function validateAgentCommand(dir = ".", opts) {
|
|
190076
|
-
const
|
|
190077
|
-
const legacy = await validateAgentProject(
|
|
190725
|
+
const root2 = path17.resolve(dir);
|
|
190726
|
+
const legacy = await validateAgentProject(root2);
|
|
190078
190727
|
const result = { ...legacy };
|
|
190079
|
-
if (
|
|
190080
|
-
const
|
|
190081
|
-
result.valid = legacy.valid &&
|
|
190082
|
-
result.packagePath =
|
|
190083
|
-
for (const issue2 of
|
|
190728
|
+
if (existsSync12(path17.join(root2, PACKAGE_MANIFEST))) {
|
|
190729
|
+
const source2 = validateSourcePackage(root2);
|
|
190730
|
+
result.valid = legacy.valid && source2.valid;
|
|
190731
|
+
result.packagePath = source2.packagePath;
|
|
190732
|
+
for (const issue2 of source2.errors) {
|
|
190084
190733
|
if (!result.errors.includes(issue2))
|
|
190085
190734
|
result.errors.push(issue2);
|
|
190086
190735
|
}
|
|
@@ -190106,9 +190755,9 @@ async function validateAgentCommand(dir = ".", opts) {
|
|
|
190106
190755
|
init_dist4();
|
|
190107
190756
|
import { exec as exec2 } from "child_process";
|
|
190108
190757
|
var CLOUD_BASE_URL = "https://studio.eigenpal.com";
|
|
190109
|
-
function openBrowser(
|
|
190758
|
+
function openBrowser(url3) {
|
|
190110
190759
|
const cmd = process.platform === "darwin" ? "open" : process.platform === "win32" ? "start" : "xdg-open";
|
|
190111
|
-
exec2(`${cmd} "${
|
|
190760
|
+
exec2(`${cmd} "${url3}"`);
|
|
190112
190761
|
}
|
|
190113
190762
|
function exitOnCancel(value) {
|
|
190114
190763
|
if (q(value)) {
|
|
@@ -190153,9 +190802,9 @@ function normalizeBaseUrl(input) {
|
|
|
190153
190802
|
error: `Hostname "${parsed.hostname}" looks incomplete — did you mean "${parsed.hostname}.com"? Use a fully qualified domain name.`
|
|
190154
190803
|
};
|
|
190155
190804
|
}
|
|
190156
|
-
const
|
|
190805
|
+
const url3 = parsed.origin.replace(/\/+$/, "");
|
|
190157
190806
|
const insecure = parsed.protocol === "http:" && !isLoopback;
|
|
190158
|
-
return { ok: true, url:
|
|
190807
|
+
return { ok: true, url: url3, insecure };
|
|
190159
190808
|
}
|
|
190160
190809
|
async function pickBaseUrlInteractive() {
|
|
190161
190810
|
const onPrem = new Map;
|
|
@@ -190172,20 +190821,20 @@ async function pickBaseUrlInteractive() {
|
|
|
190172
190821
|
names.push(name);
|
|
190173
190822
|
onPrem.set(norm2.url, names);
|
|
190174
190823
|
}
|
|
190175
|
-
const
|
|
190824
|
+
const options8 = [
|
|
190176
190825
|
{ value: CLOUD_BASE_URL, label: `EigenPal Studio (${CLOUD_BASE_URL})` }
|
|
190177
190826
|
];
|
|
190178
|
-
for (const [
|
|
190179
|
-
|
|
190180
|
-
value:
|
|
190181
|
-
label:
|
|
190827
|
+
for (const [url3, profiles] of onPrem) {
|
|
190828
|
+
options8.push({
|
|
190829
|
+
value: url3,
|
|
190830
|
+
label: url3,
|
|
190182
190831
|
hint: `saved profile: ${profiles.join(", ")}`
|
|
190183
190832
|
});
|
|
190184
190833
|
}
|
|
190185
|
-
|
|
190834
|
+
options8.push({ value: "__custom__", label: "Custom URL…", hint: "paste your own" });
|
|
190186
190835
|
const picked = exitOnCancel(await Ee({
|
|
190187
190836
|
message: "Authenticate against",
|
|
190188
|
-
options,
|
|
190837
|
+
options: options8,
|
|
190189
190838
|
initialValue: CLOUD_BASE_URL
|
|
190190
190839
|
}));
|
|
190191
190840
|
if (picked !== "__custom__")
|
|
@@ -190246,29 +190895,29 @@ async function authLogin(flagBaseUrl) {
|
|
|
190246
190895
|
if (shouldOpen)
|
|
190247
190896
|
openBrowser(settingsUrl);
|
|
190248
190897
|
R2.info(`Dashboard URL: ${ui.bold(settingsUrl)}`);
|
|
190249
|
-
const
|
|
190898
|
+
const key2 = exitOnCancel(await Ce({
|
|
190250
190899
|
message: "Paste your API key (eig_live_…)",
|
|
190251
190900
|
mask: "*",
|
|
190252
190901
|
validate: (value) => value?.trim() ? undefined : "Paste the key from your dashboard, or press Ctrl-C to cancel."
|
|
190253
190902
|
}));
|
|
190254
|
-
const trimmedKey =
|
|
190903
|
+
const trimmedKey = key2.trim();
|
|
190255
190904
|
const config2 = { baseUrl, apiKey: trimmedKey, dir: "" };
|
|
190256
190905
|
const client = new ApiClient(config2);
|
|
190257
|
-
const
|
|
190258
|
-
|
|
190906
|
+
const s5 = ft();
|
|
190907
|
+
s5.start("Validating key with the server");
|
|
190259
190908
|
let authCheck;
|
|
190260
190909
|
try {
|
|
190261
190910
|
authCheck = await client.get("/api/v1/auth/check");
|
|
190262
190911
|
} catch (err2) {
|
|
190263
|
-
|
|
190912
|
+
s5.error("API key validation failed");
|
|
190264
190913
|
error51(err2 instanceof Error ? err2.message : String(err2));
|
|
190265
190914
|
process.exit(1);
|
|
190266
190915
|
}
|
|
190267
190916
|
if (!authCheck.ok) {
|
|
190268
|
-
|
|
190917
|
+
s5.error("API key validation failed");
|
|
190269
190918
|
process.exit(1);
|
|
190270
190919
|
}
|
|
190271
|
-
|
|
190920
|
+
s5.stop(`Validated against ${ui.bold(authCheck.tenantName || authCheck.tenantId)}`);
|
|
190272
190921
|
const existingProfiles = listProfiles().profiles;
|
|
190273
190922
|
const profileName = upsertProfile({
|
|
190274
190923
|
apiKey: trimmedKey,
|
|
@@ -190298,15 +190947,15 @@ async function authList() {
|
|
|
190298
190947
|
return;
|
|
190299
190948
|
}
|
|
190300
190949
|
const rows = names.sort().map((name) => {
|
|
190301
|
-
const
|
|
190302
|
-
const tenant =
|
|
190303
|
-
return { name, baseUrl:
|
|
190950
|
+
const p4 = profiles[name];
|
|
190951
|
+
const tenant = p4.tenantName ?? p4.tenantId ?? "?";
|
|
190952
|
+
return { name, baseUrl: p4.baseUrl, tenant };
|
|
190304
190953
|
});
|
|
190305
|
-
const tenantWidth = Math.max(16, ...rows.map((
|
|
190306
|
-
const nameWidth = Math.max(16, ...rows.map((
|
|
190307
|
-
for (const
|
|
190308
|
-
const marker =
|
|
190309
|
-
console.log(`${marker} ${ui.bold(
|
|
190954
|
+
const tenantWidth = Math.max(16, ...rows.map((r5) => r5.tenant.length));
|
|
190955
|
+
const nameWidth = Math.max(16, ...rows.map((r5) => r5.name.length));
|
|
190956
|
+
for (const r5 of rows) {
|
|
190957
|
+
const marker = r5.name === current ? ui.ok("●") : ui.dim("○");
|
|
190958
|
+
console.log(`${marker} ${ui.bold(r5.tenant.padEnd(tenantWidth))} ${ui.dim(r5.name.padEnd(nameWidth))} ${ui.dim(r5.baseUrl)}`);
|
|
190310
190959
|
}
|
|
190311
190960
|
console.log("");
|
|
190312
190961
|
dim(`(● = active. Switch with \`eigenpal auth use <name>\` or \`EIGENPAL_PROFILE=<name>\` for one shell.)`);
|
|
@@ -190329,13 +190978,13 @@ async function authUse(profileName) {
|
|
|
190329
190978
|
message: "Pick a profile",
|
|
190330
190979
|
initialValue: current,
|
|
190331
190980
|
options: names.sort().map((name) => {
|
|
190332
|
-
const
|
|
190333
|
-
const tenant =
|
|
190981
|
+
const p5 = profiles[name];
|
|
190982
|
+
const tenant = p5.tenantName ?? p5.tenantId ?? "";
|
|
190334
190983
|
const isActive = name === current;
|
|
190335
190984
|
return {
|
|
190336
190985
|
value: name,
|
|
190337
190986
|
label: isActive ? `${name} ${ui.dim("(active)")}` : name,
|
|
190338
|
-
hint: tenant ? `${tenant} · ${
|
|
190987
|
+
hint: tenant ? `${tenant} · ${p5.baseUrl}` : p5.baseUrl
|
|
190339
190988
|
};
|
|
190340
190989
|
})
|
|
190341
190990
|
}));
|
|
@@ -190349,8 +190998,8 @@ async function authUse(profileName) {
|
|
|
190349
190998
|
error51(`No profile named ${ui.bold(target)}. Run \`eigenpal auth list\` to see what is available.`);
|
|
190350
190999
|
process.exit(1);
|
|
190351
191000
|
}
|
|
190352
|
-
const
|
|
190353
|
-
const tenantSuffix =
|
|
191001
|
+
const p4 = profiles[target];
|
|
191002
|
+
const tenantSuffix = p4?.tenantName ? ` ${ui.dim(`(${p4.tenantName})`)}` : "";
|
|
190354
191003
|
if (profileName) {
|
|
190355
191004
|
success2(`Switched to ${ui.bold(target)}${tenantSuffix}`);
|
|
190356
191005
|
} else {
|
|
@@ -190363,26 +191012,26 @@ async function authUse(profileName) {
|
|
|
190363
191012
|
function isShell(value) {
|
|
190364
191013
|
return value === "bash" || value === "zsh" || value === "fish";
|
|
190365
191014
|
}
|
|
190366
|
-
function
|
|
191015
|
+
function walk2(root2) {
|
|
190367
191016
|
const out = [];
|
|
190368
191017
|
const isHidden = (cmd) => Boolean(cmd.hidden);
|
|
190369
|
-
const visit = (cmd,
|
|
190370
|
-
const subcommands = cmd.commands.filter((
|
|
190371
|
-
const flags = cmd.options.map((
|
|
191018
|
+
const visit = (cmd, path16) => {
|
|
191019
|
+
const subcommands = cmd.commands.filter((c7) => c7.name() !== "help" && !isHidden(c7)).map((c7) => c7.name()).sort();
|
|
191020
|
+
const flags = cmd.options.map((o5) => o5.long).filter((flag) => Boolean(flag)).sort();
|
|
190372
191021
|
if (!flags.includes("--help"))
|
|
190373
191022
|
flags.push("--help");
|
|
190374
|
-
out.push({ path:
|
|
191023
|
+
out.push({ path: path16, subcommands, flags });
|
|
190375
191024
|
for (const child of cmd.commands) {
|
|
190376
191025
|
if (child.name() === "help" || isHidden(child))
|
|
190377
191026
|
continue;
|
|
190378
|
-
visit(child, [...
|
|
191027
|
+
visit(child, [...path16, child.name()]);
|
|
190379
191028
|
}
|
|
190380
191029
|
};
|
|
190381
|
-
visit(
|
|
191030
|
+
visit(root2, []);
|
|
190382
191031
|
return out;
|
|
190383
191032
|
}
|
|
190384
191033
|
function generateCompletionScript(program2, shell) {
|
|
190385
|
-
const tree =
|
|
191034
|
+
const tree = walk2(program2);
|
|
190386
191035
|
switch (shell) {
|
|
190387
191036
|
case "bash":
|
|
190388
191037
|
return renderBash(program2.name(), tree);
|
|
@@ -190394,9 +191043,9 @@ function generateCompletionScript(program2, shell) {
|
|
|
190394
191043
|
}
|
|
190395
191044
|
function renderBash(programName, tree) {
|
|
190396
191045
|
const cases = tree.map((node) => {
|
|
190397
|
-
const
|
|
191046
|
+
const key2 = node.path.join(" ");
|
|
190398
191047
|
const completions = [...node.subcommands, ...node.flags].join(" ");
|
|
190399
|
-
const pattern =
|
|
191048
|
+
const pattern = key2 === "" ? '""' : `"${key2}"`;
|
|
190400
191049
|
return ` ${pattern})
|
|
190401
191050
|
COMPREPLY=( $(compgen -W "${completions}" -- "$cur") )
|
|
190402
191051
|
;;`;
|
|
@@ -190445,9 +191094,9 @@ complete -F _${programName}_completions ${programName}
|
|
|
190445
191094
|
}
|
|
190446
191095
|
function renderZsh(programName, tree) {
|
|
190447
191096
|
const cases = tree.map((node) => {
|
|
190448
|
-
const
|
|
191097
|
+
const key2 = node.path.join(" ");
|
|
190449
191098
|
const completions = [...node.subcommands, ...node.flags].join(" ");
|
|
190450
|
-
const pattern =
|
|
191099
|
+
const pattern = key2 === "" ? "''" : `'${key2}'`;
|
|
190451
191100
|
return ` ${pattern})
|
|
190452
191101
|
_values 'completion' ${completions.split(" ").filter(Boolean).map((tok) => `'${tok}'`).join(" ")}
|
|
190453
191102
|
;;`;
|
|
@@ -190494,7 +191143,7 @@ function renderFish(programName, tree) {
|
|
|
190494
191143
|
lines.push(`# ${programName} completion fish > ~/.config/fish/completions/${programName}.fish`);
|
|
190495
191144
|
lines.push("");
|
|
190496
191145
|
for (const node of tree) {
|
|
190497
|
-
const condition = node.path.length === 0 ? `not __fish_seen_subcommand_from ${tree.find((
|
|
191146
|
+
const condition = node.path.length === 0 ? `not __fish_seen_subcommand_from ${tree.find((n5) => n5.path.length === 0)?.subcommands.join(" ") ?? ""}` : `__fish_${programName}_using_path ${node.path.join(" ")}`;
|
|
190498
191147
|
for (const sub of node.subcommands) {
|
|
190499
191148
|
lines.push(`complete -c ${programName} -f -n '${condition}' -a '${sub}'`);
|
|
190500
191149
|
}
|
|
@@ -190555,15 +191204,15 @@ async function completion(shell, program2) {
|
|
|
190555
191204
|
init_dist4();
|
|
190556
191205
|
import {
|
|
190557
191206
|
copyFileSync,
|
|
190558
|
-
existsSync as
|
|
190559
|
-
mkdirSync as
|
|
190560
|
-
readdirSync as
|
|
190561
|
-
readFileSync as
|
|
190562
|
-
statSync as
|
|
190563
|
-
writeFileSync as
|
|
191207
|
+
existsSync as existsSync13,
|
|
191208
|
+
mkdirSync as mkdirSync5,
|
|
191209
|
+
readdirSync as readdirSync4,
|
|
191210
|
+
readFileSync as readFileSync12,
|
|
191211
|
+
statSync as statSync4,
|
|
191212
|
+
writeFileSync as writeFileSync7
|
|
190564
191213
|
} from "node:fs";
|
|
190565
|
-
import { dirname as
|
|
190566
|
-
import { fileURLToPath } from "node:url";
|
|
191214
|
+
import { dirname as dirname4, join as join7, relative as relative2, resolve as resolve5 } from "node:path";
|
|
191215
|
+
import { fileURLToPath as fileURLToPath6 } from "node:url";
|
|
190567
191216
|
var TEMPLATE_NAMES = ["blank", "pdf-extraction", "text-classification"];
|
|
190568
191217
|
var TEMPLATE_DESCRIPTIONS = {
|
|
190569
191218
|
blank: "Single-step pass-through. Good starting point when you know what you want to build.",
|
|
@@ -190574,12 +191223,12 @@ function isValidProjectName(name) {
|
|
|
190574
191223
|
return /^[a-z0-9][a-z0-9-_]*$/.test(name) && name.length <= 60;
|
|
190575
191224
|
}
|
|
190576
191225
|
function resolveTemplatesRoot() {
|
|
190577
|
-
const here =
|
|
190578
|
-
const srcCandidate =
|
|
190579
|
-
if (
|
|
191226
|
+
const here = dirname4(fileURLToPath6(import.meta.url));
|
|
191227
|
+
const srcCandidate = resolve5(here, "..", "..", "templates");
|
|
191228
|
+
if (existsSync13(srcCandidate))
|
|
190580
191229
|
return srcCandidate;
|
|
190581
|
-
const distCandidate =
|
|
190582
|
-
if (
|
|
191230
|
+
const distCandidate = resolve5(here, "templates");
|
|
191231
|
+
if (existsSync13(distCandidate))
|
|
190583
191232
|
return distCandidate;
|
|
190584
191233
|
throw new Error(`Cannot locate bundled templates. Looked in:
|
|
190585
191234
|
${srcCandidate}
|
|
@@ -190589,10 +191238,10 @@ async function init(name, opts) {
|
|
|
190589
191238
|
if (!isValidProjectName(name)) {
|
|
190590
191239
|
throw new Error(`Invalid project name "${name}". Use lowercase kebab/snake-case (e.g. parse-invoices), max 60 chars.`);
|
|
190591
191240
|
}
|
|
190592
|
-
const target =
|
|
191241
|
+
const target = resolve5(process.cwd(), opts.dir ?? name);
|
|
190593
191242
|
assertSafeTargetDir(target, opts.dir);
|
|
190594
|
-
if (
|
|
190595
|
-
throw new Error(`Target directory ${
|
|
191243
|
+
if (existsSync13(target) && readdirSync4(target).length > 0) {
|
|
191244
|
+
throw new Error(`Target directory ${relative2(process.cwd(), target)} exists and is not empty.`);
|
|
190596
191245
|
}
|
|
190597
191246
|
let template2;
|
|
190598
191247
|
if (opts.template) {
|
|
@@ -190605,12 +191254,12 @@ async function init(name, opts) {
|
|
|
190605
191254
|
} else {
|
|
190606
191255
|
template2 = await promptForTemplate();
|
|
190607
191256
|
}
|
|
190608
|
-
const sourceRoot =
|
|
190609
|
-
if (!
|
|
191257
|
+
const sourceRoot = join7(resolveTemplatesRoot(), template2);
|
|
191258
|
+
if (!existsSync13(sourceRoot)) {
|
|
190610
191259
|
throw new Error(`Template directory missing on disk: ${sourceRoot}`);
|
|
190611
191260
|
}
|
|
190612
191261
|
const written = copyTemplate(sourceRoot, target, name);
|
|
190613
|
-
const targetDisplay =
|
|
191262
|
+
const targetDisplay = relative2(process.cwd(), target) || ".";
|
|
190614
191263
|
success2(`Created ${written} files in ${ui.bold(`${targetDisplay}/`)}`);
|
|
190615
191264
|
console.log("");
|
|
190616
191265
|
info("Next steps:");
|
|
@@ -190619,7 +191268,7 @@ async function init(name, opts) {
|
|
|
190619
191268
|
dim(` eigenpal run workflows.${name} --example sample`);
|
|
190620
191269
|
}
|
|
190621
191270
|
function assertSafeTargetDir(target, dir) {
|
|
190622
|
-
if (dir !== undefined && !dir.startsWith("/") && dir.split(/[/\\]/).some((
|
|
191271
|
+
if (dir !== undefined && !dir.startsWith("/") && dir.split(/[/\\]/).some((s5) => s5 === "..")) {
|
|
190623
191272
|
throw new Error(`Refusing to scaffold into ${target}: --dir contains "..". Pass an absolute path if you intend this.`);
|
|
190624
191273
|
}
|
|
190625
191274
|
}
|
|
@@ -190630,10 +191279,10 @@ async function promptForTemplate() {
|
|
|
190630
191279
|
const choice = await Ee({
|
|
190631
191280
|
message: "Pick a template",
|
|
190632
191281
|
initialValue: TEMPLATE_NAMES[0],
|
|
190633
|
-
options: TEMPLATE_NAMES.map((
|
|
190634
|
-
value:
|
|
190635
|
-
label:
|
|
190636
|
-
hint: TEMPLATE_DESCRIPTIONS[
|
|
191282
|
+
options: TEMPLATE_NAMES.map((t25) => ({
|
|
191283
|
+
value: t25,
|
|
191284
|
+
label: t25,
|
|
191285
|
+
hint: TEMPLATE_DESCRIPTIONS[t25]
|
|
190637
191286
|
}))
|
|
190638
191287
|
});
|
|
190639
191288
|
if (q(choice)) {
|
|
@@ -190645,22 +191294,22 @@ async function promptForTemplate() {
|
|
|
190645
191294
|
var PLACEHOLDER = "__NAME__";
|
|
190646
191295
|
function copyTemplate(src, dst, projectName) {
|
|
190647
191296
|
let count = 0;
|
|
190648
|
-
const
|
|
190649
|
-
while (
|
|
190650
|
-
const dir =
|
|
190651
|
-
for (const entry of
|
|
190652
|
-
const sourcePath =
|
|
190653
|
-
const relativePath =
|
|
190654
|
-
const targetPath =
|
|
190655
|
-
const stats =
|
|
191297
|
+
const stack2 = [src];
|
|
191298
|
+
while (stack2.length > 0) {
|
|
191299
|
+
const dir = stack2.pop();
|
|
191300
|
+
for (const entry of readdirSync4(dir)) {
|
|
191301
|
+
const sourcePath = join7(dir, entry);
|
|
191302
|
+
const relativePath = relative2(src, sourcePath);
|
|
191303
|
+
const targetPath = join7(dst, relativePath);
|
|
191304
|
+
const stats = statSync4(sourcePath);
|
|
190656
191305
|
if (stats.isDirectory()) {
|
|
190657
|
-
|
|
191306
|
+
stack2.push(sourcePath);
|
|
190658
191307
|
continue;
|
|
190659
191308
|
}
|
|
190660
|
-
|
|
191309
|
+
mkdirSync5(dirname4(targetPath), { recursive: true });
|
|
190661
191310
|
if (isTextFile(sourcePath)) {
|
|
190662
|
-
const text =
|
|
190663
|
-
|
|
191311
|
+
const text = readFileSync12(sourcePath, "utf-8").replaceAll(PLACEHOLDER, projectName);
|
|
191312
|
+
writeFileSync7(targetPath, text);
|
|
190664
191313
|
} else {
|
|
190665
191314
|
copyFileSync(sourcePath, targetPath);
|
|
190666
191315
|
}
|
|
@@ -190682,52 +191331,19 @@ var TEXT_EXTENSIONS = new Set([
|
|
|
190682
191331
|
".html",
|
|
190683
191332
|
".css"
|
|
190684
191333
|
]);
|
|
190685
|
-
function isTextFile(
|
|
190686
|
-
const dotIndex =
|
|
191334
|
+
function isTextFile(path16) {
|
|
191335
|
+
const dotIndex = path16.lastIndexOf(".");
|
|
190687
191336
|
if (dotIndex < 0)
|
|
190688
191337
|
return false;
|
|
190689
|
-
return TEXT_EXTENSIONS.has(
|
|
191338
|
+
return TEXT_EXTENSIONS.has(path16.slice(dotIndex).toLowerCase());
|
|
190690
191339
|
}
|
|
190691
191340
|
|
|
190692
191341
|
// src/commands/run.ts
|
|
190693
191342
|
init_src();
|
|
190694
191343
|
|
|
190695
191344
|
// src/commands/run-form-data.ts
|
|
190696
|
-
import { promises as
|
|
190697
|
-
import
|
|
190698
|
-
|
|
190699
|
-
// src/lib/fs-helpers.ts
|
|
190700
|
-
var import_yaml6 = __toESM(require_dist4(), 1);
|
|
190701
|
-
import { extname, join as join3 } from "path";
|
|
190702
|
-
|
|
190703
|
-
// src/lib/normalize.ts
|
|
190704
|
-
var import_yaml5 = __toESM(require_dist4(), 1);
|
|
190705
|
-
|
|
190706
|
-
// src/lib/fs-helpers.ts
|
|
190707
|
-
var EXT_MIME = {
|
|
190708
|
-
".pdf": "application/pdf",
|
|
190709
|
-
".png": "image/png",
|
|
190710
|
-
".jpg": "image/jpeg",
|
|
190711
|
-
".jpeg": "image/jpeg",
|
|
190712
|
-
".webp": "image/webp",
|
|
190713
|
-
".tiff": "image/tiff",
|
|
190714
|
-
".odt": "application/vnd.oasis.opendocument.text",
|
|
190715
|
-
".txt": "text/plain",
|
|
190716
|
-
".csv": "text/csv",
|
|
190717
|
-
".docx": "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
|
|
190718
|
-
".xlsx": "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
|
|
190719
|
-
".doc": "application/msword",
|
|
190720
|
-
".xls": "application/vnd.ms-excel",
|
|
190721
|
-
".rtf": "application/rtf",
|
|
190722
|
-
".json": "application/json",
|
|
190723
|
-
".xml": "application/xml",
|
|
190724
|
-
".html": "text/html"
|
|
190725
|
-
};
|
|
190726
|
-
function guessMimeType(filename) {
|
|
190727
|
-
return EXT_MIME[extname(filename).toLowerCase()] || "";
|
|
190728
|
-
}
|
|
190729
|
-
|
|
190730
|
-
// src/commands/run-form-data.ts
|
|
191345
|
+
import { promises as fs15 } from "node:fs";
|
|
191346
|
+
import path18 from "node:path";
|
|
190731
191347
|
var RESERVED_FIELD_NAMES = new Set([
|
|
190732
191348
|
"_json",
|
|
190733
191349
|
"_metadata",
|
|
@@ -190749,8 +191365,8 @@ async function buildRunFormData(input) {
|
|
|
190749
191365
|
form.append("metadata", JSON.stringify(input.metadata));
|
|
190750
191366
|
}
|
|
190751
191367
|
for (const spec of parseInputFileSpecs(input.inputFile ?? [])) {
|
|
190752
|
-
const data = await
|
|
190753
|
-
appendFilePart(form, spec.fieldName, data,
|
|
191368
|
+
const data = await fs15.readFile(spec.filePath);
|
|
191369
|
+
appendFilePart(form, spec.fieldName, data, path18.basename(spec.filePath));
|
|
190754
191370
|
}
|
|
190755
191371
|
for (const file2 of input.files ?? []) {
|
|
190756
191372
|
appendFilePart(form, file2.fieldName, file2.content, file2.filename, file2.mimeType);
|
|
@@ -190786,8 +191402,8 @@ function parseInputFileSpecs(inputFile) {
|
|
|
190786
191402
|
|
|
190787
191403
|
// src/lib/format-eigenpal.ts
|
|
190788
191404
|
import { spawnSync as spawnSync5 } from "child_process";
|
|
190789
|
-
import { existsSync as
|
|
190790
|
-
import { join as
|
|
191405
|
+
import { existsSync as existsSync14, readFileSync as readFileSync13 } from "fs";
|
|
191406
|
+
import { join as join8, resolve as resolve6 } from "path";
|
|
190791
191407
|
var PRETTRC_NAMES = [
|
|
190792
191408
|
".prettierrc",
|
|
190793
191409
|
".prettierrc.json",
|
|
@@ -190800,14 +191416,14 @@ var PRETTRC_NAMES = [
|
|
|
190800
191416
|
];
|
|
190801
191417
|
function hasPrettierConfig(cwd) {
|
|
190802
191418
|
for (const name of PRETTRC_NAMES) {
|
|
190803
|
-
if (
|
|
191419
|
+
if (existsSync14(join8(cwd, name)))
|
|
190804
191420
|
return true;
|
|
190805
191421
|
}
|
|
190806
191422
|
try {
|
|
190807
|
-
const pkgPath =
|
|
190808
|
-
if (!
|
|
191423
|
+
const pkgPath = join8(cwd, "package.json");
|
|
191424
|
+
if (!existsSync14(pkgPath))
|
|
190809
191425
|
return false;
|
|
190810
|
-
const raw =
|
|
191426
|
+
const raw = readFileSync13(pkgPath, "utf-8");
|
|
190811
191427
|
const pkg = JSON.parse(raw);
|
|
190812
191428
|
return pkg != null && typeof pkg === "object" && "prettier" in pkg;
|
|
190813
191429
|
} catch {
|
|
@@ -190816,8 +191432,8 @@ function hasPrettierConfig(cwd) {
|
|
|
190816
191432
|
}
|
|
190817
191433
|
function formatEigenpalDirIfAvailable(dir) {
|
|
190818
191434
|
const cwd = process.cwd();
|
|
190819
|
-
const absDir =
|
|
190820
|
-
if (!
|
|
191435
|
+
const absDir = resolve6(cwd, dir);
|
|
191436
|
+
if (!existsSync14(absDir))
|
|
190821
191437
|
return;
|
|
190822
191438
|
if (!hasPrettierConfig(cwd))
|
|
190823
191439
|
return;
|
|
@@ -190829,445 +191445,6 @@ function formatEigenpalDirIfAvailable(dir) {
|
|
|
190829
191445
|
});
|
|
190830
191446
|
}
|
|
190831
191447
|
|
|
190832
|
-
// src/lib/execution-artifacts.ts
|
|
190833
|
-
import { existsSync as existsSync13, mkdirSync as mkdirSync5, readdirSync as readdirSync3, readFileSync as readFileSync12, writeFileSync as writeFileSync7 } from "fs";
|
|
190834
|
-
import { join as join7 } from "path";
|
|
190835
|
-
|
|
190836
|
-
// src/lib/format.ts
|
|
190837
|
-
import { readFileSync as readFileSync11, writeFileSync as writeFileSync6 } from "fs";
|
|
190838
|
-
import { extname as extname3, resolve as resolve4 } from "path";
|
|
190839
|
-
var PRETTIER_EXTENSIONS = new Set([".json", ".yaml", ".yml"]);
|
|
190840
|
-
async function formatFileIfAvailable(filepath) {
|
|
190841
|
-
if (!PRETTIER_EXTENSIONS.has(extname3(filepath)))
|
|
190842
|
-
return;
|
|
190843
|
-
try {
|
|
190844
|
-
const content = readFileSync11(filepath, "utf-8");
|
|
190845
|
-
const prettier = await Promise.resolve().then(() => (init_prettier(), exports_prettier));
|
|
190846
|
-
const formatted = await prettier.format(content, {
|
|
190847
|
-
filepath: resolve4(filepath)
|
|
190848
|
-
});
|
|
190849
|
-
if (formatted !== content) {
|
|
190850
|
-
writeFileSync6(filepath, formatted, "utf-8");
|
|
190851
|
-
}
|
|
190852
|
-
} catch (err2) {
|
|
190853
|
-
if (env.DEBUG?.includes("prettier")) {
|
|
190854
|
-
console.debug("[format] Prettier unavailable or format failed:", err2);
|
|
190855
|
-
}
|
|
190856
|
-
}
|
|
190857
|
-
}
|
|
190858
|
-
|
|
190859
|
-
// src/lib/execution-artifacts.ts
|
|
190860
|
-
function isWorkflowResult2(value) {
|
|
190861
|
-
return value != null && typeof value === "object" && "files" in value && Array.isArray(value.files);
|
|
190862
|
-
}
|
|
190863
|
-
async function listResultArtifacts(client, executionId) {
|
|
190864
|
-
try {
|
|
190865
|
-
const payload = await client.get(`/api/v1/runs/${encodeURIComponent(executionId)}/artifacts`);
|
|
190866
|
-
return (payload.artifacts ?? []).filter((artifact) => typeof artifact.path === "string" && artifact.path.startsWith("output/") && typeof artifact.name === "string");
|
|
190867
|
-
} catch {
|
|
190868
|
-
return [];
|
|
190869
|
-
}
|
|
190870
|
-
}
|
|
190871
|
-
async function downloadRunArtifact(client, executionId, artifactPath) {
|
|
190872
|
-
const encodedPath = artifactPath.split("/").map(encodeURIComponent).join("/");
|
|
190873
|
-
return client.getStream(`/api/v1/runs/${encodeURIComponent(executionId)}/artifacts/${encodedPath}`);
|
|
190874
|
-
}
|
|
190875
|
-
function filenameFromContentDisposition(header) {
|
|
190876
|
-
if (!header)
|
|
190877
|
-
return null;
|
|
190878
|
-
const match = /filename\*?=(?:UTF-8'')?"?([^";\n]+)"?/i.exec(header);
|
|
190879
|
-
if (match)
|
|
190880
|
-
return decodeURIComponent(match[1].trim());
|
|
190881
|
-
const simple = /filename="?([^";\n]+)"?/i.exec(header);
|
|
190882
|
-
return simple ? simple[1].trim() : null;
|
|
190883
|
-
}
|
|
190884
|
-
function safeFilename(name, fallback) {
|
|
190885
|
-
const base = name.replace(/[/\\]/g, "_").trim();
|
|
190886
|
-
return base.length > 0 ? base : fallback;
|
|
190887
|
-
}
|
|
190888
|
-
function timestampFolderName(payload) {
|
|
190889
|
-
const raw = payload.completedAt ?? payload.createdAt ?? new Date().toISOString();
|
|
190890
|
-
return raw.replace(/[:.]/g, "-");
|
|
190891
|
-
}
|
|
190892
|
-
async function writeExecutionArtifacts(client, exampleDir, payload) {
|
|
190893
|
-
const folderName = timestampFolderName(payload);
|
|
190894
|
-
const executionsDir = join7(exampleDir, "executions", folderName);
|
|
190895
|
-
const filesDir = join7(executionsDir, "files");
|
|
190896
|
-
mkdirSync5(filesDir, { recursive: true });
|
|
190897
|
-
const generatedFiles = [];
|
|
190898
|
-
const resultArtifacts = await listResultArtifacts(client, payload.executionId);
|
|
190899
|
-
if (resultArtifacts.length > 0) {
|
|
190900
|
-
for (let i5 = 0;i5 < resultArtifacts.length; i5++) {
|
|
190901
|
-
const artifact = resultArtifacts[i5];
|
|
190902
|
-
const artifactPath = artifact.path;
|
|
190903
|
-
if (typeof artifactPath !== "string")
|
|
190904
|
-
continue;
|
|
190905
|
-
const name = typeof artifact.name === "string" ? artifact.name : `file-${i5}.bin`;
|
|
190906
|
-
try {
|
|
190907
|
-
const res = await downloadRunArtifact(client, payload.executionId, artifactPath);
|
|
190908
|
-
const disposition = res.headers.get("Content-Disposition");
|
|
190909
|
-
const filename = filenameFromContentDisposition(disposition) ?? name;
|
|
190910
|
-
const safe = safeFilename(filename, `file-${i5}${filename.includes(".") ? "" : ".bin"}`);
|
|
190911
|
-
const destPath = join7(filesDir, safe);
|
|
190912
|
-
const buf = Buffer.from(await res.arrayBuffer());
|
|
190913
|
-
writeFileSync7(destPath, buf);
|
|
190914
|
-
generatedFiles.push({
|
|
190915
|
-
fileId: artifact.fileId ?? artifactPath,
|
|
190916
|
-
stepName: artifact.stepName ?? "",
|
|
190917
|
-
filename: safe
|
|
190918
|
-
});
|
|
190919
|
-
} catch (err2) {
|
|
190920
|
-
console.warn(` Warning: could not download artifact ${artifactPath}:`, err2);
|
|
190921
|
-
}
|
|
190922
|
-
}
|
|
190923
|
-
}
|
|
190924
|
-
const result = payload.output;
|
|
190925
|
-
if (generatedFiles.length === 0 && isWorkflowResult2(result) && result.files.length > 0) {
|
|
190926
|
-
for (let i5 = 0;i5 < result.files.length; i5++) {
|
|
190927
|
-
const entry = result.files[i5];
|
|
190928
|
-
const fileId = entry?.fileId;
|
|
190929
|
-
const stepName = entry?.stepName ?? "";
|
|
190930
|
-
if (typeof fileId !== "string")
|
|
190931
|
-
continue;
|
|
190932
|
-
try {
|
|
190933
|
-
const res = await client.getStream(`/api/v1/files/${fileId}`);
|
|
190934
|
-
const disposition = res.headers.get("Content-Disposition");
|
|
190935
|
-
const filename = filenameFromContentDisposition(disposition) ?? fileId;
|
|
190936
|
-
const safe = safeFilename(filename, `file-${i5}${filename.includes(".") ? "" : ".bin"}`);
|
|
190937
|
-
const destPath = join7(filesDir, safe);
|
|
190938
|
-
const buf = Buffer.from(await res.arrayBuffer());
|
|
190939
|
-
writeFileSync7(destPath, buf);
|
|
190940
|
-
generatedFiles.push({ fileId, stepName, filename: safe });
|
|
190941
|
-
} catch (err2) {
|
|
190942
|
-
console.warn(` Warning: could not download file ${fileId}:`, err2);
|
|
190943
|
-
}
|
|
190944
|
-
}
|
|
190945
|
-
}
|
|
190946
|
-
const output = {
|
|
190947
|
-
...payload,
|
|
190948
|
-
generatedFiles: generatedFiles.length > 0 ? generatedFiles : undefined
|
|
190949
|
-
};
|
|
190950
|
-
const outputPath = join7(executionsDir, "output.json");
|
|
190951
|
-
writeFileSync7(outputPath, JSON.stringify(output, null, 2) + `
|
|
190952
|
-
`, "utf-8");
|
|
190953
|
-
await formatFileIfAvailable(outputPath);
|
|
190954
|
-
return executionsDir;
|
|
190955
|
-
}
|
|
190956
|
-
|
|
190957
|
-
// src/lib/grade-example.ts
|
|
190958
|
-
var MAX_VALUE_LEN = 60;
|
|
190959
|
-
function preview(value) {
|
|
190960
|
-
let text;
|
|
190961
|
-
try {
|
|
190962
|
-
text = typeof value === "string" ? value : JSON.stringify(value);
|
|
190963
|
-
} catch {
|
|
190964
|
-
text = String(value);
|
|
190965
|
-
}
|
|
190966
|
-
if (text === undefined)
|
|
190967
|
-
text = String(value);
|
|
190968
|
-
return text.length > MAX_VALUE_LEN ? `${text.slice(0, MAX_VALUE_LEN)}…` : text;
|
|
190969
|
-
}
|
|
190970
|
-
function isPlainObject3(value) {
|
|
190971
|
-
return value !== null && typeof value === "object" && !Array.isArray(value);
|
|
190972
|
-
}
|
|
190973
|
-
function joinPath(path15, key2) {
|
|
190974
|
-
return path15 ? `${path15}.${key2}` : key2;
|
|
190975
|
-
}
|
|
190976
|
-
function walk2(expected, actual, path15, diffs) {
|
|
190977
|
-
if (Array.isArray(expected)) {
|
|
190978
|
-
if (!Array.isArray(actual)) {
|
|
190979
|
-
diffs.push(`${path15 || "(root)"}: expected array, got ${preview(actual)}`);
|
|
190980
|
-
return;
|
|
190981
|
-
}
|
|
190982
|
-
if (expected.length !== actual.length) {
|
|
190983
|
-
diffs.push(`${path15 || "(root)"}: length ${expected.length} != ${actual.length}`);
|
|
190984
|
-
}
|
|
190985
|
-
const overlap = Math.min(expected.length, actual.length);
|
|
190986
|
-
for (let i5 = 0;i5 < overlap; i5++) {
|
|
190987
|
-
walk2(expected[i5], actual[i5], `${path15}[${i5}]`, diffs);
|
|
190988
|
-
}
|
|
190989
|
-
return;
|
|
190990
|
-
}
|
|
190991
|
-
if (isPlainObject3(expected)) {
|
|
190992
|
-
if (!isPlainObject3(actual)) {
|
|
190993
|
-
diffs.push(`${path15 || "(root)"}: expected object, got ${preview(actual)}`);
|
|
190994
|
-
return;
|
|
190995
|
-
}
|
|
190996
|
-
for (const [key2, value] of Object.entries(expected)) {
|
|
190997
|
-
const childPath = joinPath(path15, key2);
|
|
190998
|
-
if (!(key2 in actual)) {
|
|
190999
|
-
diffs.push(`${childPath}: missing in output`);
|
|
191000
|
-
continue;
|
|
191001
|
-
}
|
|
191002
|
-
walk2(value, actual[key2], childPath, diffs);
|
|
191003
|
-
}
|
|
191004
|
-
return;
|
|
191005
|
-
}
|
|
191006
|
-
if (!Object.is(expected, actual)) {
|
|
191007
|
-
diffs.push(`${path15 || "(root)"}: ${preview(expected)} != ${preview(actual)}`);
|
|
191008
|
-
}
|
|
191009
|
-
}
|
|
191010
|
-
function gradeAgainstExpected(expected, actual) {
|
|
191011
|
-
const diffs = [];
|
|
191012
|
-
walk2(expected, actual, "", diffs);
|
|
191013
|
-
return { matched: diffs.length === 0, diffs };
|
|
191014
|
-
}
|
|
191015
|
-
|
|
191016
|
-
// src/lib/payload.ts
|
|
191017
|
-
import { existsSync as existsSync14, readdirSync as readdirSync4, readFileSync as readFileSync13, statSync as statSync4 } from "fs";
|
|
191018
|
-
import { join as join8 } from "path";
|
|
191019
|
-
var DATASET_EXAMPLES_DIR = ["dataset", "examples"];
|
|
191020
|
-
function resolveEvalBaseDir(dir) {
|
|
191021
|
-
const candidates = [join8(dir, ...DATASET_EXAMPLES_DIR), join8(...DATASET_EXAMPLES_DIR)];
|
|
191022
|
-
for (const candidate of candidates) {
|
|
191023
|
-
if (existsSync14(candidate))
|
|
191024
|
-
return candidate;
|
|
191025
|
-
}
|
|
191026
|
-
return null;
|
|
191027
|
-
}
|
|
191028
|
-
|
|
191029
|
-
// src/commands/workflow/eval-example.ts
|
|
191030
|
-
var RUN_POLL_INTERVAL_MS = 2000;
|
|
191031
|
-
var RUN_MAX_WAIT_MS = 5 * 60 * 1000;
|
|
191032
|
-
var EVAL_GRACE_MS = 90 * 1000;
|
|
191033
|
-
var EVAL_POLL_INTERVAL_MS = 2000;
|
|
191034
|
-
var EXAMPLE_PAGE_SIZE = 100;
|
|
191035
|
-
var TERMINAL = new Set(["completed", "failed", "cancelled", "rejected", "timeout"]);
|
|
191036
|
-
function fmtScore(score) {
|
|
191037
|
-
return typeof score === "number" ? score.toFixed(2) : "n/a";
|
|
191038
|
-
}
|
|
191039
|
-
function toNumberOrNull(value) {
|
|
191040
|
-
if (typeof value === "number")
|
|
191041
|
-
return Number.isFinite(value) ? value : null;
|
|
191042
|
-
if (typeof value === "string") {
|
|
191043
|
-
const parsed = Number(value);
|
|
191044
|
-
return Number.isFinite(parsed) ? parsed : null;
|
|
191045
|
-
}
|
|
191046
|
-
return null;
|
|
191047
|
-
}
|
|
191048
|
-
function runOutput(run) {
|
|
191049
|
-
return run.output !== undefined ? run.output : run.result?.output;
|
|
191050
|
-
}
|
|
191051
|
-
async function fetchHasEvaluators(client, workflowId) {
|
|
191052
|
-
const cfg = await client.get(`/api/v1/automations/${workflowId}/evaluators`);
|
|
191053
|
-
return Array.isArray(cfg.config?.evaluators) && cfg.config.evaluators.length > 0;
|
|
191054
|
-
}
|
|
191055
|
-
async function resolveExample(client, workflowId, name) {
|
|
191056
|
-
let offset = 0;
|
|
191057
|
-
for (;; ) {
|
|
191058
|
-
const page = await client.get(`/api/v1/automations/${workflowId}/examples`, {
|
|
191059
|
-
limit: String(EXAMPLE_PAGE_SIZE),
|
|
191060
|
-
offset: String(offset)
|
|
191061
|
-
});
|
|
191062
|
-
const rows = page.data ?? [];
|
|
191063
|
-
const hit = rows.find((r5) => r5.name === name);
|
|
191064
|
-
if (hit)
|
|
191065
|
-
return { id: hit.id, expected: hit.expected };
|
|
191066
|
-
if (rows.length < EXAMPLE_PAGE_SIZE)
|
|
191067
|
-
return null;
|
|
191068
|
-
offset += rows.length;
|
|
191069
|
-
}
|
|
191070
|
-
}
|
|
191071
|
-
async function pollRunTerminal(client, runId) {
|
|
191072
|
-
const start = Date.now();
|
|
191073
|
-
const base = `/api/v1/runs/${encodeURIComponent(runId)}`;
|
|
191074
|
-
for (;; ) {
|
|
191075
|
-
const run = await client.get(base);
|
|
191076
|
-
const status = run.execution?.status ?? run.status;
|
|
191077
|
-
if (run.finished || status && TERMINAL.has(status)) {
|
|
191078
|
-
return await client.get(`${base}?expand=execution`);
|
|
191079
|
-
}
|
|
191080
|
-
if (Date.now() - start > RUN_MAX_WAIT_MS) {
|
|
191081
|
-
return { ...run, status: "timeout", execution: { status: "timeout" } };
|
|
191082
|
-
}
|
|
191083
|
-
await new Promise((r5) => setTimeout(r5, RUN_POLL_INTERVAL_MS));
|
|
191084
|
-
}
|
|
191085
|
-
}
|
|
191086
|
-
async function pollEvalRollup(client, runId) {
|
|
191087
|
-
const start = Date.now();
|
|
191088
|
-
for (;; ) {
|
|
191089
|
-
const run = await client.get(`/api/v1/runs/${encodeURIComponent(runId)}`);
|
|
191090
|
-
if (run.eval && run.eval.passed != null) {
|
|
191091
|
-
return { score: run.eval.score ?? null, passed: run.eval.passed };
|
|
191092
|
-
}
|
|
191093
|
-
if (Date.now() - start > EVAL_GRACE_MS)
|
|
191094
|
-
return null;
|
|
191095
|
-
await new Promise((r5) => setTimeout(r5, EVAL_POLL_INTERVAL_MS));
|
|
191096
|
-
}
|
|
191097
|
-
}
|
|
191098
|
-
async function fetchEvalRows(client, workflowId, batchId, runId) {
|
|
191099
|
-
const detail = await client.get(`/api/v1/automations/${workflowId}/experiments/${batchId}`);
|
|
191100
|
-
return detail.resultsByRun?.[runId] ?? [];
|
|
191101
|
-
}
|
|
191102
|
-
function toArtifactPayload(run, runId) {
|
|
191103
|
-
return {
|
|
191104
|
-
executionId: runId,
|
|
191105
|
-
status: run.execution?.status ?? run.status ?? "unknown",
|
|
191106
|
-
createdAt: run.timing?.createdAt ?? new Date().toISOString(),
|
|
191107
|
-
completedAt: run.timing?.completedAt ?? null,
|
|
191108
|
-
error: run.error !== undefined ? run.error : run.result?.error ?? null,
|
|
191109
|
-
output: runOutput(run),
|
|
191110
|
-
stepExecutions: []
|
|
191111
|
-
};
|
|
191112
|
-
}
|
|
191113
|
-
async function runWorkflowExamplesWithEval(client, dir, workflowIdOrSlug, workflowId, exampleNames) {
|
|
191114
|
-
const hasEvaluators = await fetchHasEvaluators(client, workflowId);
|
|
191115
|
-
const mode = hasEvaluators ? "evaluators" : "diff";
|
|
191116
|
-
info(`Running ${ui.bold(`"${workflowIdOrSlug}"`)} ${ui.dim(`(${workflowId}, ${exampleNames.length} example(s))`)}`);
|
|
191117
|
-
dim(hasEvaluators ? "Server example run; grading with configured evaluators." : "Server example run; no evaluators configured, grading by structural diff vs expected.");
|
|
191118
|
-
const evalBaseDir = resolveEvalBaseDir(dir);
|
|
191119
|
-
const results = [];
|
|
191120
|
-
for (const name of exampleNames) {
|
|
191121
|
-
process.stderr.write(`${ui.dim("→")} ${name}
|
|
191122
|
-
`);
|
|
191123
|
-
try {
|
|
191124
|
-
const example = await resolveExample(client, workflowId, name);
|
|
191125
|
-
if (!example) {
|
|
191126
|
-
throw new Error(`example "${name}" not found in the server dataset for ${workflowId}. ` + `Push it first: eigenpal workflow dataset push ${workflowId}`);
|
|
191127
|
-
}
|
|
191128
|
-
const started = await client.post(`/api/v1/automations/${workflowId}/examples/${example.id}/run`, {});
|
|
191129
|
-
const runId = started.id;
|
|
191130
|
-
if (typeof runId !== "string")
|
|
191131
|
-
throw new Error("Example run did not return a run id");
|
|
191132
|
-
process.stderr.write(` ${ui.dim(`run: ${runId}`)}
|
|
191133
|
-
`);
|
|
191134
|
-
const run = await pollRunTerminal(client, runId);
|
|
191135
|
-
const status = run.execution?.status ?? run.status;
|
|
191136
|
-
const runOk = status === "completed";
|
|
191137
|
-
const result = {
|
|
191138
|
-
name,
|
|
191139
|
-
exampleId: example.id,
|
|
191140
|
-
executionId: runId,
|
|
191141
|
-
run: runOk ? "ok" : "error",
|
|
191142
|
-
runError: runOk ? undefined : run.error ?? status ?? "unknown",
|
|
191143
|
-
mode: "none"
|
|
191144
|
-
};
|
|
191145
|
-
if (runOk && hasEvaluators && started.batchId) {
|
|
191146
|
-
const rollup = await pollEvalRollup(client, runId);
|
|
191147
|
-
if (rollup) {
|
|
191148
|
-
const rows = await fetchEvalRows(client, workflowId, started.batchId, runId);
|
|
191149
|
-
result.mode = "evaluators";
|
|
191150
|
-
result.score = rollup.score;
|
|
191151
|
-
result.passed = rollup.passed;
|
|
191152
|
-
result.evaluators = rows.map((r5) => ({
|
|
191153
|
-
name: r5.evaluatorName ?? "evaluator",
|
|
191154
|
-
score: toNumberOrNull(r5.score),
|
|
191155
|
-
passed: r5.passed ?? null,
|
|
191156
|
-
weight: toNumberOrNull(r5.weight),
|
|
191157
|
-
error: r5.error ?? null
|
|
191158
|
-
}));
|
|
191159
|
-
} else {
|
|
191160
|
-
warn(` ${name}: no evaluator score after ${EVAL_GRACE_MS / 1000}s; grading by diff.`);
|
|
191161
|
-
gradeByDiff(result, example.expected, runOutput(run));
|
|
191162
|
-
}
|
|
191163
|
-
} else if (runOk) {
|
|
191164
|
-
gradeByDiff(result, example.expected, runOutput(run));
|
|
191165
|
-
}
|
|
191166
|
-
results.push(result);
|
|
191167
|
-
reportLine(result);
|
|
191168
|
-
if (evalBaseDir) {
|
|
191169
|
-
try {
|
|
191170
|
-
await writeExecutionArtifacts(client, `${evalBaseDir}/${name}`, toArtifactPayload(run, runId));
|
|
191171
|
-
} catch {}
|
|
191172
|
-
}
|
|
191173
|
-
} catch (err2) {
|
|
191174
|
-
const result = {
|
|
191175
|
-
name,
|
|
191176
|
-
run: "error",
|
|
191177
|
-
runError: formatCliError(err2),
|
|
191178
|
-
mode: "none"
|
|
191179
|
-
};
|
|
191180
|
-
results.push(result);
|
|
191181
|
-
reportLine(result);
|
|
191182
|
-
}
|
|
191183
|
-
}
|
|
191184
|
-
const summary = summarize(workflowIdOrSlug, mode, results);
|
|
191185
|
-
process.stderr.write(`
|
|
191186
|
-
${formatEvalSummary(summary)}
|
|
191187
|
-
`);
|
|
191188
|
-
return summary;
|
|
191189
|
-
}
|
|
191190
|
-
function gradeByDiff(result, expected, output) {
|
|
191191
|
-
if (expected === undefined || expected === null) {
|
|
191192
|
-
result.mode = "none";
|
|
191193
|
-
return;
|
|
191194
|
-
}
|
|
191195
|
-
const graded = gradeAgainstExpected(expected, output);
|
|
191196
|
-
result.mode = "diff";
|
|
191197
|
-
result.matched = graded.matched;
|
|
191198
|
-
result.diffCount = graded.diffs.length;
|
|
191199
|
-
result.diffs = graded.diffs.length ? graded.diffs : undefined;
|
|
191200
|
-
}
|
|
191201
|
-
function formatExampleLines(result) {
|
|
191202
|
-
if (result.run === "error") {
|
|
191203
|
-
return `${result.name} ${ui.err(`err ${result.runError ?? ""}`.trimEnd())}`;
|
|
191204
|
-
}
|
|
191205
|
-
if (result.mode === "evaluators") {
|
|
191206
|
-
const verdict = result.passed === true ? ui.ok("PASS") : ui.err("FAIL");
|
|
191207
|
-
const head = `${result.name} ${ui.ok("ok")} score ${fmtScore(result.score)} ${verdict}`;
|
|
191208
|
-
const detail = (result.evaluators ?? []).map((e8) => {
|
|
191209
|
-
const mark = e8.error ? ui.warn("error") : e8.passed === true ? ui.ok("pass") : e8.passed === false ? ui.err("fail") : ui.dim("n/a");
|
|
191210
|
-
return ` ${e8.name} ${fmtScore(e8.score)} ${mark}`;
|
|
191211
|
-
});
|
|
191212
|
-
return [head, ...detail].join(`
|
|
191213
|
-
`);
|
|
191214
|
-
}
|
|
191215
|
-
if (result.mode === "diff") {
|
|
191216
|
-
const verdict = result.matched ? ui.ok("PASS") : ui.err(`FAIL (${result.diffCount} diff)`);
|
|
191217
|
-
return `${result.name} ${ui.ok("ok")} ${verdict}`;
|
|
191218
|
-
}
|
|
191219
|
-
return `${result.name} ${ui.ok("ok")} ${ui.dim("-")}`;
|
|
191220
|
-
}
|
|
191221
|
-
function reportLine(result) {
|
|
191222
|
-
process.stderr.write(`${formatExampleLines(result)}
|
|
191223
|
-
`);
|
|
191224
|
-
}
|
|
191225
|
-
function summarize(workflow2, mode, examples) {
|
|
191226
|
-
const ok2 = examples.filter((r5) => r5.run === "ok").length;
|
|
191227
|
-
const errored = examples.length - ok2;
|
|
191228
|
-
const gradedResults = examples.filter((r5) => r5.mode === "evaluators" || r5.mode === "diff");
|
|
191229
|
-
const passedCases = gradedResults.filter((r5) => r5.mode === "evaluators" ? r5.passed === true : r5.matched === true).length;
|
|
191230
|
-
const scores = gradedResults.filter((r5) => r5.mode === "evaluators" && typeof r5.score === "number").map((r5) => r5.score);
|
|
191231
|
-
return {
|
|
191232
|
-
workflow: workflow2,
|
|
191233
|
-
mode,
|
|
191234
|
-
total: examples.length,
|
|
191235
|
-
ok: ok2,
|
|
191236
|
-
errored,
|
|
191237
|
-
graded: gradedResults.length,
|
|
191238
|
-
passedCases,
|
|
191239
|
-
failedCases: gradedResults.length - passedCases,
|
|
191240
|
-
ungraded: ok2 - gradedResults.length,
|
|
191241
|
-
weightedAvg: scores.length ? scores.reduce((s5, n5) => s5 + n5, 0) / scores.length : null,
|
|
191242
|
-
examples,
|
|
191243
|
-
passed: ok2,
|
|
191244
|
-
failed: errored
|
|
191245
|
-
};
|
|
191246
|
-
}
|
|
191247
|
-
function formatEvalSummary(summary) {
|
|
191248
|
-
const lines = [];
|
|
191249
|
-
let line3 = `${ui.bold("Ran")} ${summary.total}: ${ui.ok(`${summary.ok} ok`)}`;
|
|
191250
|
-
if (summary.errored > 0)
|
|
191251
|
-
line3 += `, ${ui.err(`${summary.errored} errored`)}`;
|
|
191252
|
-
if (summary.graded > 0) {
|
|
191253
|
-
const allPass = summary.failedCases === 0;
|
|
191254
|
-
if (summary.mode === "evaluators") {
|
|
191255
|
-
const cases = `${summary.passedCases}/${summary.graded} cases pass`;
|
|
191256
|
-
const weighted = summary.weightedAvg != null ? `weighted ${summary.weightedAvg.toFixed(2)}, ` : "";
|
|
191257
|
-
line3 += ` ${ui.dim("/")} ${weighted}${allPass ? ui.ok(cases) : ui.err(cases)}`;
|
|
191258
|
-
} else {
|
|
191259
|
-
const acc = `${summary.passedCases}/${summary.graded} matched`;
|
|
191260
|
-
line3 += ` ${ui.dim("/")} accuracy ${allPass ? ui.ok(acc) : ui.err(acc)}`;
|
|
191261
|
-
}
|
|
191262
|
-
}
|
|
191263
|
-
lines.push(line3);
|
|
191264
|
-
if (summary.ungraded > 0) {
|
|
191265
|
-
lines.push(ui.dim(` ${summary.ungraded} ungraded (no stored expected output)`));
|
|
191266
|
-
}
|
|
191267
|
-
return lines.join(`
|
|
191268
|
-
`);
|
|
191269
|
-
}
|
|
191270
|
-
|
|
191271
191448
|
// src/commands/workflow/execution.ts
|
|
191272
191449
|
async function runSavedWorkflowExamples(workflow2, examples, opts) {
|
|
191273
191450
|
const config2 = resolveConfig(opts);
|
|
@@ -191298,19 +191475,24 @@ async function runSavedWorkflowExamples(workflow2, examples, opts) {
|
|
|
191298
191475
|
function registerRunCommands(program2) {
|
|
191299
191476
|
addJsonFlag(withBaseUrl(program2.command("run <target>"))).description("Start a workflow or agent run, e.g. workflows.extract-invoice.").option("--input-json <json>", "JSON input object").option("--input-file <field=path>", 'Input file to upload as multipart form-data. Repeat for multiple files; bare paths use field "file".', collectRepeated, []).option("--example <name>", "Run one persisted example by name").option("--dir <dir>", "Local eigenpal directory for workflow examples", undefined).option("--fail-on-mismatch", "For --example runs, exit non-zero when a graded example fails (evaluator fail, or output mismatch)").option("--wait", "Poll until the run reaches a terminal status").option("--interval <seconds>", "Polling interval in seconds", intArg, 2).option("--max-wait <seconds>", "Maximum wait before exit code 2", intArg, 1800).action(action(runTarget)).addHelpText("after", `
|
|
191300
191477
|
Grading --example runs
|
|
191301
|
-
--example runs the
|
|
191302
|
-
|
|
191303
|
-
(eigenpal workflow dataset push /
|
|
191304
|
-
|
|
191305
|
-
|
|
191306
|
-
|
|
191307
|
-
|
|
191308
|
-
|
|
191309
|
-
|
|
191310
|
-
|
|
191478
|
+
--example runs the SERVER's stored dataset example for the target — workflows
|
|
191479
|
+
(workflows.<slug>) and agents (agents.<slug>) alike — so push your latest
|
|
191480
|
+
dataset/evaluators first (eigenpal {workflow|agent} dataset push /
|
|
191481
|
+
evaluators push).
|
|
191482
|
+
|
|
191483
|
+
If the target has evaluators configured, they run automatically after the
|
|
191484
|
+
execution completes and the CLI shows the real weighted score and PASS/FAIL
|
|
191485
|
+
verdict (agent runs need --wait to observe it). Workflow targets without
|
|
191486
|
+
evaluators are graded by a structural diff against the example's stored
|
|
191487
|
+
expected output (every expected field must be present and equal; extra output
|
|
191488
|
+
fields are ignored, arrays match by index); agent targets without evaluators
|
|
191489
|
+
print a warning and are not graded.
|
|
191311
191490
|
|
|
191312
191491
|
Exit codes
|
|
191313
191492
|
1 a run errored (or, with --fail-on-mismatch, a graded example failed)
|
|
191493
|
+
2 with --fail-on-mismatch on an agent target: evaluators are configured but
|
|
191494
|
+
no verdict landed inside the grace window — the command refuses to report
|
|
191495
|
+
success without a verdict (re-run, or check evaluator health)
|
|
191314
191496
|
By default a grading failure is informational and does not change the exit code.
|
|
191315
191497
|
`);
|
|
191316
191498
|
addJsonFlag(withBaseUrl(program2.command("rerun <run-id>"))).description("Create a new run from a previous run's stored input snapshot.").option("--version <version>", "Version/source ref for the new run: latest, original, or an explicit ref", "latest").option("--wait", "Poll until the rerun reaches a terminal status").option("--interval <seconds>", "Polling interval in seconds", intArg, 2).option("--max-wait <seconds>", "Maximum wait before exit code 2", intArg, 1800).action(action(rerunTarget));
|
|
@@ -191376,8 +191558,8 @@ import {
|
|
|
191376
191558
|
unlinkSync as unlinkSync2,
|
|
191377
191559
|
writeFileSync as writeFileSync8
|
|
191378
191560
|
} from "node:fs";
|
|
191379
|
-
import { sep as PATH_SEP, dirname as dirname5, join as join10, relative as relative3, resolve as
|
|
191380
|
-
import { fileURLToPath as
|
|
191561
|
+
import { sep as PATH_SEP, dirname as dirname5, join as join10, relative as relative3, resolve as resolve7 } from "node:path";
|
|
191562
|
+
import { fileURLToPath as fileURLToPath8 } from "node:url";
|
|
191381
191563
|
|
|
191382
191564
|
// src/commands/skill/tools.ts
|
|
191383
191565
|
import { join as join9 } from "node:path";
|
|
@@ -191450,11 +191632,11 @@ var TOOLS = [
|
|
|
191450
191632
|
// src/commands/skill/index.ts
|
|
191451
191633
|
var MANIFEST_NAME = ".eigenpal-manifest.json";
|
|
191452
191634
|
function resolveSkillSource() {
|
|
191453
|
-
const here = dirname5(
|
|
191454
|
-
const srcCandidate =
|
|
191635
|
+
const here = dirname5(fileURLToPath8(import.meta.url));
|
|
191636
|
+
const srcCandidate = resolve7(here, "..", "..", "skill");
|
|
191455
191637
|
if (existsSync15(srcCandidate))
|
|
191456
191638
|
return srcCandidate;
|
|
191457
|
-
const distCandidate =
|
|
191639
|
+
const distCandidate = resolve7(here, "skill");
|
|
191458
191640
|
if (existsSync15(distCandidate))
|
|
191459
191641
|
return distCandidate;
|
|
191460
191642
|
throw new Error(`Cannot locate bundled skill content. Looked in:
|
|
@@ -191560,24 +191742,24 @@ async function uninstallSkill(opts) {
|
|
|
191560
191742
|
return;
|
|
191561
191743
|
}
|
|
191562
191744
|
}
|
|
191563
|
-
const targetReal =
|
|
191745
|
+
const targetReal = resolve7(target);
|
|
191564
191746
|
const safeBase = targetReal + PATH_SEP;
|
|
191565
191747
|
let removed = 0;
|
|
191566
191748
|
let kept = 0;
|
|
191567
191749
|
for (const entry of manifest.files) {
|
|
191568
|
-
const
|
|
191569
|
-
if (
|
|
191570
|
-
console.error(`Refusing to touch ${
|
|
191750
|
+
const path16 = resolve7(targetReal, entry.path);
|
|
191751
|
+
if (path16 !== targetReal && !path16.startsWith(safeBase)) {
|
|
191752
|
+
console.error(`Refusing to touch ${path16}: manifest path escapes ${targetReal}`);
|
|
191571
191753
|
continue;
|
|
191572
191754
|
}
|
|
191573
|
-
if (!existsSync15(
|
|
191755
|
+
if (!existsSync15(path16))
|
|
191574
191756
|
continue;
|
|
191575
|
-
const currentHash = sha2562(readFileSync14(
|
|
191757
|
+
const currentHash = sha2562(readFileSync14(path16));
|
|
191576
191758
|
if (currentHash !== entry.sha256 && !opts.yes) {
|
|
191577
191759
|
kept += 1;
|
|
191578
191760
|
continue;
|
|
191579
191761
|
}
|
|
191580
|
-
unlinkSync2(
|
|
191762
|
+
unlinkSync2(path16);
|
|
191581
191763
|
removed += 1;
|
|
191582
191764
|
}
|
|
191583
191765
|
rmSync2(join10(target, MANIFEST_NAME), { force: true });
|
|
@@ -191798,22 +191980,22 @@ function listFiles(root2) {
|
|
|
191798
191980
|
return out.sort();
|
|
191799
191981
|
}
|
|
191800
191982
|
function readManifest(target) {
|
|
191801
|
-
const
|
|
191802
|
-
if (!existsSync15(
|
|
191983
|
+
const path16 = join10(target, MANIFEST_NAME);
|
|
191984
|
+
if (!existsSync15(path16))
|
|
191803
191985
|
return null;
|
|
191804
191986
|
try {
|
|
191805
|
-
return JSON.parse(readFileSync14(
|
|
191987
|
+
return JSON.parse(readFileSync14(path16, "utf-8"));
|
|
191806
191988
|
} catch {
|
|
191807
191989
|
return null;
|
|
191808
191990
|
}
|
|
191809
191991
|
}
|
|
191810
191992
|
function readCliVersion() {
|
|
191811
191993
|
try {
|
|
191812
|
-
const here = dirname5(
|
|
191994
|
+
const here = dirname5(fileURLToPath8(import.meta.url));
|
|
191813
191995
|
const candidates = [
|
|
191814
|
-
|
|
191815
|
-
|
|
191816
|
-
|
|
191996
|
+
resolve7(here, "..", "..", "..", "package.json"),
|
|
191997
|
+
resolve7(here, "..", "..", "package.json"),
|
|
191998
|
+
resolve7(here, "..", "package.json")
|
|
191817
191999
|
];
|
|
191818
192000
|
for (const candidate of candidates) {
|
|
191819
192001
|
if (existsSync15(candidate)) {
|
|
@@ -191847,8 +192029,8 @@ function pruneEmptyDirs(root2) {
|
|
|
191847
192029
|
} catch {}
|
|
191848
192030
|
}
|
|
191849
192031
|
}
|
|
191850
|
-
async function promptThreeWay(
|
|
191851
|
-
const display = relative3(process.cwd(),
|
|
192032
|
+
async function promptThreeWay(path16, source2, current) {
|
|
192033
|
+
const display = relative3(process.cwd(), path16) || path16;
|
|
191852
192034
|
while (true) {
|
|
191853
192035
|
const choice = await Ee({
|
|
191854
192036
|
message: `${display} has been edited locally`,
|
|
@@ -191953,9 +192135,9 @@ async function status(opts) {
|
|
|
191953
192135
|
console.log(lines.join(`
|
|
191954
192136
|
`));
|
|
191955
192137
|
}
|
|
191956
|
-
async function fetchAuthOrNull(client,
|
|
192138
|
+
async function fetchAuthOrNull(client, path16) {
|
|
191957
192139
|
try {
|
|
191958
|
-
return await client.get(
|
|
192140
|
+
return await client.get(path16);
|
|
191959
192141
|
} catch (err2) {
|
|
191960
192142
|
if (err2 instanceof ApiError && (err2.status === 401 || err2.status === 403)) {
|
|
191961
192143
|
return null;
|
|
@@ -191963,9 +192145,9 @@ async function fetchAuthOrNull(client, path15) {
|
|
|
191963
192145
|
throw err2;
|
|
191964
192146
|
}
|
|
191965
192147
|
}
|
|
191966
|
-
async function fetchOrNull(client,
|
|
192148
|
+
async function fetchOrNull(client, path16) {
|
|
191967
192149
|
try {
|
|
191968
|
-
return await client.get(
|
|
192150
|
+
return await client.get(path16);
|
|
191969
192151
|
} catch {
|
|
191970
192152
|
return null;
|
|
191971
192153
|
}
|
|
@@ -191974,20 +192156,20 @@ async function fetchOrNull(client, path15) {
|
|
|
191974
192156
|
// src/commands/workflow/index.ts
|
|
191975
192157
|
init_src();
|
|
191976
192158
|
import { existsSync as existsSync18, promises as fs17 } from "node:fs";
|
|
191977
|
-
import
|
|
192159
|
+
import path19 from "node:path";
|
|
191978
192160
|
import { createInterface as createInterface3 } from "node:readline/promises";
|
|
191979
192161
|
|
|
191980
192162
|
// src/commands/workflow/clear.ts
|
|
191981
192163
|
import { existsSync as existsSync16, readdirSync as readdirSync6, rmSync as rmSync3, statSync as statSync5 } from "fs";
|
|
191982
192164
|
import { basename, join as join11 } from "path";
|
|
191983
192165
|
var EMPTY_REPORT = { removed: 0, kept: 0, touched: 0 };
|
|
191984
|
-
function getDirectoryEntries(
|
|
191985
|
-
if (!existsSync16(
|
|
192166
|
+
function getDirectoryEntries(path16) {
|
|
192167
|
+
if (!existsSync16(path16))
|
|
191986
192168
|
return [];
|
|
191987
|
-
return readdirSync6(
|
|
192169
|
+
return readdirSync6(path16).filter((entry) => statSync5(join11(path16, entry)).isDirectory()).sort();
|
|
191988
192170
|
}
|
|
191989
|
-
function removeDirEntriesWithRetention(
|
|
191990
|
-
const entries = getDirectoryEntries(
|
|
192171
|
+
function removeDirEntriesWithRetention(path16, removeAll) {
|
|
192172
|
+
const entries = getDirectoryEntries(path16);
|
|
191991
192173
|
if (entries.length === 0)
|
|
191992
192174
|
return EMPTY_REPORT;
|
|
191993
192175
|
const keepSet = new Set;
|
|
@@ -191997,7 +192179,7 @@ function removeDirEntriesWithRetention(path15, removeAll) {
|
|
|
191997
192179
|
for (const entry of entries) {
|
|
191998
192180
|
if (keepSet.has(entry))
|
|
191999
192181
|
continue;
|
|
192000
|
-
rmSync3(join11(
|
|
192182
|
+
rmSync3(join11(path16, entry), { recursive: true, force: true });
|
|
192001
192183
|
removed++;
|
|
192002
192184
|
}
|
|
192003
192185
|
return { removed, kept: keepSet.size, touched: entries.length };
|
|
@@ -192506,6 +192688,33 @@ var CATEGORICAL_NAMES = new Set([
|
|
|
192506
192688
|
"phase"
|
|
192507
192689
|
]);
|
|
192508
192690
|
var SEPARATOR_LIST_RE = /(?:^|[\s(])((?:[A-Za-z0-9_-]{1,20})(?:\s*[|,/]\s*[A-Za-z0-9_-]{1,20}){1,7})(?:$|[\s).])/;
|
|
192691
|
+
var IDENTIFIER_NAME_RE = /(number|num|id|identifier|reference|ref|sku|key|uuid|guid|iban|email|phone|url|uri|path|filename|name|date|address)$/i;
|
|
192692
|
+
var FREEFORM_NAMES = new Set([
|
|
192693
|
+
"terms",
|
|
192694
|
+
"notes",
|
|
192695
|
+
"note",
|
|
192696
|
+
"comment",
|
|
192697
|
+
"comments",
|
|
192698
|
+
"remarks",
|
|
192699
|
+
"description",
|
|
192700
|
+
"summary",
|
|
192701
|
+
"text",
|
|
192702
|
+
"title"
|
|
192703
|
+
]);
|
|
192704
|
+
var EXAMPLE_MARKER_RE = /\b(e\.\s?g\.?|eg\.|for example|for instance|such as|examples?[:\s])/i;
|
|
192705
|
+
var ID_LIKE_TOKEN_RE = /^[A-Za-z]{1,8}[-_]?\d{2,}$/;
|
|
192706
|
+
function descriptionLooksCategorical(description) {
|
|
192707
|
+
if (description.length === 0)
|
|
192708
|
+
return false;
|
|
192709
|
+
if (EXAMPLE_MARKER_RE.test(description))
|
|
192710
|
+
return false;
|
|
192711
|
+
const match = SEPARATOR_LIST_RE.exec(description);
|
|
192712
|
+
if (!match?.[1])
|
|
192713
|
+
return false;
|
|
192714
|
+
const tokens = match[1].split(/\s*[|,/]\s*/).map((t25) => t25.trim()).filter(Boolean);
|
|
192715
|
+
const idLike = tokens.filter((t25) => ID_LIKE_TOKEN_RE.test(t25)).length;
|
|
192716
|
+
return idLike * 2 < tokens.length;
|
|
192717
|
+
}
|
|
192509
192718
|
function validateSchemaQuality(workflow2) {
|
|
192510
192719
|
const warnings = [];
|
|
192511
192720
|
for (let i5 = 0;i5 < workflow2.steps.length; i5++) {
|
|
@@ -192584,7 +192793,7 @@ function validateStepRefs(step, stepPath, inScope, out) {
|
|
|
192584
192793
|
scanValue(s5.with, `${stepPath}.with`, inScope, out);
|
|
192585
192794
|
scanValue(s5.inputs, `${stepPath}.inputs`, inScope, out);
|
|
192586
192795
|
}
|
|
192587
|
-
function scanValue(value,
|
|
192796
|
+
function scanValue(value, path16, inScope, out) {
|
|
192588
192797
|
if (typeof value === "string") {
|
|
192589
192798
|
if (!value.includes("{{") && !value.includes("{%"))
|
|
192590
192799
|
return;
|
|
@@ -192593,7 +192802,7 @@ function scanValue(value, path15, inScope, out) {
|
|
|
192593
192802
|
if (!inScope.has(name)) {
|
|
192594
192803
|
out.push({
|
|
192595
192804
|
code: "unknown-step-reference",
|
|
192596
|
-
field:
|
|
192805
|
+
field: path16,
|
|
192597
192806
|
message: `references \`steps.${name}\` but no step named "${name}" is in scope here. Steps nested inside control.parallel branches, control.parallel_map/control.foreach bodies, and control.if branches are not addressable from outside the container — reach inner outputs through the container's aggregate output instead.`,
|
|
192598
192807
|
hint: `Use the container step's aggregate output, e.g. \`steps.<parallel>.output.<branch>.${name}.<field>\` or \`steps.<foreach>.output.items[i].${name}.<field>\`. See the "Control containers" section of \`step-types.md\`.`
|
|
192599
192808
|
});
|
|
@@ -192603,13 +192812,13 @@ function scanValue(value, path15, inScope, out) {
|
|
|
192603
192812
|
}
|
|
192604
192813
|
if (Array.isArray(value)) {
|
|
192605
192814
|
for (let i5 = 0;i5 < value.length; i5++) {
|
|
192606
|
-
scanValue(value[i5], `${
|
|
192815
|
+
scanValue(value[i5], `${path16}.${i5}`, inScope, out);
|
|
192607
192816
|
}
|
|
192608
192817
|
return;
|
|
192609
192818
|
}
|
|
192610
192819
|
if (value && typeof value === "object") {
|
|
192611
192820
|
for (const [k9, v11] of Object.entries(value)) {
|
|
192612
|
-
scanValue(v11, `${
|
|
192821
|
+
scanValue(v11, `${path16}.${k9}`, inScope, out);
|
|
192613
192822
|
}
|
|
192614
192823
|
}
|
|
192615
192824
|
}
|
|
@@ -192702,7 +192911,8 @@ function walkSchema(schema, basePath, out) {
|
|
|
192702
192911
|
const lower = name.toLowerCase();
|
|
192703
192912
|
const description = typeof prop.description === "string" ? prop.description : "";
|
|
192704
192913
|
const looksCategoricalByName = CATEGORICAL_NAMES.has(lower);
|
|
192705
|
-
const
|
|
192914
|
+
const looksLikeIdentifier = !looksCategoricalByName && (IDENTIFIER_NAME_RE.test(lower) || FREEFORM_NAMES.has(lower));
|
|
192915
|
+
const looksCategoricalByDescription = !looksLikeIdentifier && descriptionLooksCategorical(description);
|
|
192706
192916
|
if (propType === "string" && !propEnum && (looksCategoricalByName || looksCategoricalByDescription) && !looksLikeFreeform(prop)) {
|
|
192707
192917
|
out.push({
|
|
192708
192918
|
code: "categorical-missing-enum",
|
|
@@ -192727,11 +192937,11 @@ function looksLikeFreeform(prop) {
|
|
|
192727
192937
|
// src/commands/workflow/validation.ts
|
|
192728
192938
|
var import_yaml8 = __toESM(require_dist4(), 1);
|
|
192729
192939
|
import { existsSync as existsSync17, readdirSync as readdirSync7, readFileSync as readFileSync15, statSync as statSync6 } from "fs";
|
|
192730
|
-
import { join as join12, resolve as
|
|
192940
|
+
import { join as join12, resolve as resolve8 } from "path";
|
|
192731
192941
|
var NAME_RE = /^[a-z0-9][a-z0-9-_]*$/;
|
|
192732
|
-
function isDirSafe(
|
|
192942
|
+
function isDirSafe(path16, issues, field) {
|
|
192733
192943
|
try {
|
|
192734
|
-
return statSync6(
|
|
192944
|
+
return statSync6(path16).isDirectory();
|
|
192735
192945
|
} catch (err2) {
|
|
192736
192946
|
issues.push({
|
|
192737
192947
|
field,
|
|
@@ -192763,15 +192973,15 @@ function countInvokeWorkflowSteps(steps) {
|
|
|
192763
192973
|
}
|
|
192764
192974
|
return count;
|
|
192765
192975
|
}
|
|
192766
|
-
function validateWorkflowYaml(
|
|
192767
|
-
if (!existsSync17(
|
|
192976
|
+
function validateWorkflowYaml(path16) {
|
|
192977
|
+
if (!existsSync17(path16)) {
|
|
192768
192978
|
return {
|
|
192769
|
-
issues: [{ field:
|
|
192979
|
+
issues: [{ field: path16, message: "File not found." }],
|
|
192770
192980
|
warnings: [],
|
|
192771
192981
|
invokeStepCount: 0
|
|
192772
192982
|
};
|
|
192773
192983
|
}
|
|
192774
|
-
const text = readFileSync15(
|
|
192984
|
+
const text = readFileSync15(path16, "utf-8");
|
|
192775
192985
|
try {
|
|
192776
192986
|
const definition = parseWorkflow(text);
|
|
192777
192987
|
let warnings = [];
|
|
@@ -192813,21 +193023,21 @@ function printInvokeOnlineHint(invokeStepCount, online) {
|
|
|
192813
193023
|
const plural = invokeStepCount === 1 ? "" : "s";
|
|
192814
193024
|
info(`${invokeStepCount} action.invoke-workflow step${plural} not checked locally. Run \`validate --online\` (or push) to validate invoke targets, input types, and cycles against the server.`);
|
|
192815
193025
|
}
|
|
192816
|
-
function printSchemaQualityWarnings(
|
|
193026
|
+
function printSchemaQualityWarnings(path16, warnings) {
|
|
192817
193027
|
if (warnings.length === 0)
|
|
192818
193028
|
return;
|
|
192819
|
-
warn(`workflow.yaml ${ui.dim(`(${
|
|
193029
|
+
warn(`workflow.yaml ${ui.dim(`(${path16})`)}: ${warnings.length} schema-quality warning${warnings.length === 1 ? "" : "s"}`);
|
|
192820
193030
|
for (const w10 of warnings) {
|
|
192821
193031
|
warn(` ${ui.dim(w10.field)} ${w10.message}`);
|
|
192822
193032
|
if (w10.hint)
|
|
192823
193033
|
warn(` ${ui.dim("hint:")} ${w10.hint}`);
|
|
192824
193034
|
}
|
|
192825
193035
|
}
|
|
192826
|
-
function validateEvaluatorsYaml(
|
|
192827
|
-
if (!existsSync17(
|
|
192828
|
-
return [{ field:
|
|
193036
|
+
function validateEvaluatorsYaml(path16) {
|
|
193037
|
+
if (!existsSync17(path16)) {
|
|
193038
|
+
return [{ field: path16, message: "File not found." }];
|
|
192829
193039
|
}
|
|
192830
|
-
const text = readFileSync15(
|
|
193040
|
+
const text = readFileSync15(path16, "utf-8");
|
|
192831
193041
|
let parsed;
|
|
192832
193042
|
try {
|
|
192833
193043
|
parsed = import_yaml8.parse(text);
|
|
@@ -192904,7 +193114,7 @@ function validateDatasetFolder(root2) {
|
|
|
192904
193114
|
});
|
|
192905
193115
|
}
|
|
192906
193116
|
const fileRefs = collectDatasetFileRefs(args);
|
|
192907
|
-
for (const issue2 of
|
|
193117
|
+
for (const issue2 of validateFileRefs2({
|
|
192908
193118
|
refs: fileRefs,
|
|
192909
193119
|
filesRoot: inputDir,
|
|
192910
193120
|
root: "input",
|
|
@@ -192961,7 +193171,7 @@ function validateDatasetFolder(root2) {
|
|
|
192961
193171
|
});
|
|
192962
193172
|
continue;
|
|
192963
193173
|
}
|
|
192964
|
-
if (
|
|
193174
|
+
if (isExpectedErrorRef2(parsed)) {
|
|
192965
193175
|
const result = ExpectedErrorSchema.safeParse(parsed.$error);
|
|
192966
193176
|
if (!result.success) {
|
|
192967
193177
|
for (const err2 of result.error.issues) {
|
|
@@ -192977,7 +193187,7 @@ function validateDatasetFolder(root2) {
|
|
|
192977
193187
|
message: "expected.json must be a JSON object."
|
|
192978
193188
|
});
|
|
192979
193189
|
} else {
|
|
192980
|
-
for (const issue2 of
|
|
193190
|
+
for (const issue2 of validateFileRefs2({
|
|
192981
193191
|
refs: collectDatasetFileRefs(parsed),
|
|
192982
193192
|
filesRoot: join12(exampleFolder, "expected"),
|
|
192983
193193
|
root: "expected",
|
|
@@ -192990,12 +193200,12 @@ function validateDatasetFolder(root2) {
|
|
|
192990
193200
|
}
|
|
192991
193201
|
return issues;
|
|
192992
193202
|
}
|
|
192993
|
-
function printIssues(label2,
|
|
193203
|
+
function printIssues(label2, path16, issues) {
|
|
192994
193204
|
if (issues.length === 0) {
|
|
192995
|
-
success2(`${label2} ${ui.dim(`(${
|
|
193205
|
+
success2(`${label2} ${ui.dim(`(${path16})`)} ✓`);
|
|
192996
193206
|
return true;
|
|
192997
193207
|
}
|
|
192998
|
-
error51(`${label2} ${ui.dim(`(${
|
|
193208
|
+
error51(`${label2} ${ui.dim(`(${path16})`)} — ${issues.length} issue${issues.length > 1 ? "s" : ""}`);
|
|
192999
193209
|
const fieldWidth = Math.max(...issues.map((i5) => i5.field.length));
|
|
193000
193210
|
for (const issue2 of issues) {
|
|
193001
193211
|
const field = issue2.field.padEnd(fieldWidth);
|
|
@@ -193007,7 +193217,7 @@ function printIssues(label2, path15, issues) {
|
|
|
193007
193217
|
function isFileRef(value) {
|
|
193008
193218
|
return value !== null && typeof value === "object" && !Array.isArray(value) && typeof value.$file === "string";
|
|
193009
193219
|
}
|
|
193010
|
-
function
|
|
193220
|
+
function isExpectedErrorRef2(value) {
|
|
193011
193221
|
return value !== null && typeof value === "object" && !Array.isArray(value) && Object.keys(value).length === 1 && Object.prototype.hasOwnProperty.call(value, "$error");
|
|
193012
193222
|
}
|
|
193013
193223
|
function collectDatasetFileRefs(value, jsonPath = "<root>") {
|
|
@@ -193021,7 +193231,7 @@ function collectDatasetFileRefs(value, jsonPath = "<root>") {
|
|
|
193021
193231
|
}
|
|
193022
193232
|
return [];
|
|
193023
193233
|
}
|
|
193024
|
-
function
|
|
193234
|
+
function validateFileRefs2(args) {
|
|
193025
193235
|
const issues = [];
|
|
193026
193236
|
for (const ref of args.refs) {
|
|
193027
193237
|
const relative4 = parseDatasetFileRef(ref.path, args.root);
|
|
@@ -193041,19 +193251,19 @@ function validateFileRefs(args) {
|
|
|
193041
193251
|
}
|
|
193042
193252
|
return issues;
|
|
193043
193253
|
}
|
|
193044
|
-
function parseDatasetFileRef(
|
|
193045
|
-
if (!
|
|
193254
|
+
function parseDatasetFileRef(path16, root2) {
|
|
193255
|
+
if (!path16.startsWith(`${root2}/`))
|
|
193046
193256
|
return null;
|
|
193047
|
-
if (
|
|
193257
|
+
if (path16.startsWith("/") || path16.includes("\\") || path16.includes("\x00"))
|
|
193048
193258
|
return null;
|
|
193049
|
-
const relative4 =
|
|
193259
|
+
const relative4 = path16.slice(root2.length + 1);
|
|
193050
193260
|
const parts = relative4.split("/");
|
|
193051
193261
|
if (parts.some((part) => !part || part === "." || part === ".."))
|
|
193052
193262
|
return null;
|
|
193053
193263
|
return parts.join("/");
|
|
193054
193264
|
}
|
|
193055
193265
|
function rootDir(opts) {
|
|
193056
|
-
return
|
|
193266
|
+
return resolve8(opts.dir ?? process.cwd());
|
|
193057
193267
|
}
|
|
193058
193268
|
async function onlineInvokeIssues(yamlText, opts) {
|
|
193059
193269
|
const config2 = resolveConfig(opts);
|
|
@@ -193068,9 +193278,9 @@ Note
|
|
|
193068
193278
|
` + ` Local validation cannot resolve action.invoke-workflow targets (they live
|
|
193069
193279
|
` + ` in the server DB), so invoke reference/type/cycle errors only surface at
|
|
193070
193280
|
` + " push — or run `validate --online` to check them before pushing.\n");
|
|
193071
|
-
withBaseUrl(cmd).action(action(async (
|
|
193072
|
-
if (
|
|
193073
|
-
const target =
|
|
193281
|
+
withBaseUrl(cmd).action(action(async (path16, opts) => {
|
|
193282
|
+
if (path16) {
|
|
193283
|
+
const target = resolve8(path16);
|
|
193074
193284
|
const wfResult2 = validateWorkflowYaml(target);
|
|
193075
193285
|
const wfOk2 = printIssues("workflow.yaml", target, wfResult2.issues);
|
|
193076
193286
|
if (wfOk2) {
|
|
@@ -193105,15 +193315,15 @@ Note
|
|
|
193105
193315
|
}));
|
|
193106
193316
|
}
|
|
193107
193317
|
function registerEvaluatorsValidateCommand(parent) {
|
|
193108
|
-
parent.command("validate [path]").description("Validate an evaluators YAML file against the EvalConfig schema. Defaults to ./evaluators.yaml.").action((
|
|
193109
|
-
const target =
|
|
193318
|
+
parent.command("validate [path]").description("Validate an evaluators YAML file against the EvalConfig schema. Defaults to ./evaluators.yaml.").action((path16) => {
|
|
193319
|
+
const target = resolve8(path16 ?? "evaluators.yaml");
|
|
193110
193320
|
if (!printIssues("evaluators", target, validateEvaluatorsYaml(target)))
|
|
193111
193321
|
process.exit(1);
|
|
193112
193322
|
});
|
|
193113
193323
|
}
|
|
193114
193324
|
function registerDatasetValidateCommand(parent) {
|
|
193115
|
-
parent.command("validate [path]").description("Validate a dataset folder against the examples/<name>/{input,expected,meta} convention. Defaults to ./dataset/.").action((
|
|
193116
|
-
const target =
|
|
193325
|
+
parent.command("validate [path]").description("Validate a dataset folder against the examples/<name>/{input,expected,meta} convention. Defaults to ./dataset/.").action((path16) => {
|
|
193326
|
+
const target = resolve8(path16 ?? "dataset");
|
|
193117
193327
|
if (!printIssues("dataset", target, validateDatasetFolder(target)))
|
|
193118
193328
|
process.exit(1);
|
|
193119
193329
|
});
|
|
@@ -193180,7 +193390,7 @@ async function readDirAsZip2(dir) {
|
|
|
193180
193390
|
for (const e8 of entries) {
|
|
193181
193391
|
if (e8.name.startsWith(".") || e8.name === "node_modules")
|
|
193182
193392
|
continue;
|
|
193183
|
-
const full =
|
|
193393
|
+
const full = path19.join(current, e8.name);
|
|
193184
193394
|
const rel = relPrefix ? `${relPrefix}/${e8.name}` : e8.name;
|
|
193185
193395
|
if (e8.isDirectory())
|
|
193186
193396
|
await walk3(full, rel);
|
|
@@ -193276,10 +193486,11 @@ function registerWorkflowCoreCommands(parent) {
|
|
|
193276
193486
|
withBaseUrl(pullCmd).action(action(async (workflow2, opts) => {
|
|
193277
193487
|
const { client, workflowId } = await buildClientForWorkflow(workflow2, opts);
|
|
193278
193488
|
const result = await client.get(`/api/workflows/${workflowId}`);
|
|
193279
|
-
|
|
193489
|
+
const yamlContent = result?.currentVersion?.yamlContent ?? result?.yamlContent;
|
|
193490
|
+
if (typeof yamlContent !== "string" || yamlContent.length === 0) {
|
|
193280
193491
|
throw new Error(`Workflow ${workflowId} has no published version yet, nothing to pull. Run \`eigenpal workflow push\` first.`);
|
|
193281
193492
|
}
|
|
193282
|
-
await writeOrPrint(opts.out,
|
|
193493
|
+
await writeOrPrint(opts.out, yamlContent);
|
|
193283
193494
|
}));
|
|
193284
193495
|
const schemaCmd = parent.command("schema <workflow-id>").description("Show the inferred output schema for a workflow (what it returns).").option("--format <format>", "json | typescript | python", "json").option("--out <path>", "Write to file instead of stdout").addHelpText("after", `
|
|
193285
193496
|
Examples
|
|
@@ -193567,7 +193778,7 @@ skip in CI). Folder layout reference: \`packages/cli/src/skill/reference/dataset
|
|
|
193567
193778
|
}
|
|
193568
193779
|
const stat2 = await fs17.stat(opts.file);
|
|
193569
193780
|
const data = stat2.isDirectory() ? await readDirAsZip2(opts.file) : new Uint8Array(await fs17.readFile(opts.file));
|
|
193570
|
-
const filename = stat2.isDirectory() ? `${
|
|
193781
|
+
const filename = stat2.isDirectory() ? `${path19.basename(opts.file)}.zip` : opts.file;
|
|
193571
193782
|
const formData = new FormData;
|
|
193572
193783
|
formData.append("file", new Blob([data]), filename);
|
|
193573
193784
|
formData.append("mode", opts.mode);
|
|
@@ -193653,11 +193864,11 @@ async function readJsonInput(literal3, filePath, flagName) {
|
|
|
193653
193864
|
}
|
|
193654
193865
|
}
|
|
193655
193866
|
if (filePath !== undefined) {
|
|
193656
|
-
const raw = filePath === "-" ? await new Promise((
|
|
193867
|
+
const raw = filePath === "-" ? await new Promise((resolve4, reject) => {
|
|
193657
193868
|
let buf = "";
|
|
193658
193869
|
process.stdin.setEncoding("utf8");
|
|
193659
193870
|
process.stdin.on("data", (chunk) => buf += chunk);
|
|
193660
|
-
process.stdin.once("end", () =>
|
|
193871
|
+
process.stdin.once("end", () => resolve4(buf));
|
|
193661
193872
|
process.stdin.once("error", reject);
|
|
193662
193873
|
}) : await fs17.readFile(filePath, "utf8");
|
|
193663
193874
|
try {
|
|
@@ -193871,7 +194082,7 @@ returns immediately with \`{ batchId, total }\`; poll
|
|
|
193871
194082
|
const total = start.runCount ?? start.total ?? 0;
|
|
193872
194083
|
if (!opts.wait) {
|
|
193873
194084
|
if (opts.json) {
|
|
193874
|
-
printJson2(start);
|
|
194085
|
+
printJson2({ ...start, batchId: experimentId, total });
|
|
193875
194086
|
return;
|
|
193876
194087
|
}
|
|
193877
194088
|
success2(`Started experiment ${ui.bold(experimentId)} ${ui.dim(`(${total} run${total === 1 ? "" : "s"} queued)`)}`);
|
|
@@ -193903,9 +194114,23 @@ returns immediately with \`{ batchId, total }\`; poll
|
|
|
193903
194114
|
const { client, workflowId } = await buildClientForWorkflow(workflow2, opts);
|
|
193904
194115
|
const url3 = `/api/v1/automations/${workflowId}/experiments/${batchId}`;
|
|
193905
194116
|
if (!opts.watch) {
|
|
193906
|
-
|
|
193907
|
-
|
|
194117
|
+
let result = {};
|
|
194118
|
+
let execs = [];
|
|
194119
|
+
for (let attempt = 1;attempt <= 3; attempt++) {
|
|
194120
|
+
result = await client.get(url3);
|
|
194121
|
+
execs = result.executions ?? result.runs ?? [];
|
|
194122
|
+
if (execs.length > 0)
|
|
194123
|
+
break;
|
|
194124
|
+
if (attempt < 3)
|
|
194125
|
+
await new Promise((r5) => setTimeout(r5, 2000));
|
|
194126
|
+
}
|
|
193908
194127
|
const summary = summarizeExperimentExecutions(execs);
|
|
194128
|
+
if (execs.length === 0) {
|
|
194129
|
+
if (opts.json)
|
|
194130
|
+
printJson2({ ...result, summary: rollupForJson(summary) });
|
|
194131
|
+
error51(`Experiment ${batchId} still has no executions after retrying — check the batch id.`);
|
|
194132
|
+
process.exit(1);
|
|
194133
|
+
}
|
|
193909
194134
|
if (opts.json) {
|
|
193910
194135
|
printJson2({ ...result, summary: rollupForJson(summary) });
|
|
193911
194136
|
return;
|
|
@@ -194069,7 +194294,7 @@ Behavior:
|
|
|
194069
194294
|
const url3 = `/api/v1/automations/${workflowId}/experiments/${batchId}`;
|
|
194070
194295
|
const dest = opts.pull ? opts.pullOnComplete ?? `./results-${batchId}.${opts.format}` : null;
|
|
194071
194296
|
if (dest) {
|
|
194072
|
-
const dir =
|
|
194297
|
+
const dir = path19.dirname(dest);
|
|
194073
194298
|
if (!existsSync18(dir)) {
|
|
194074
194299
|
error51(`Destination directory does not exist: ${dir}. Create it first or pass a path under an existing directory.`);
|
|
194075
194300
|
process.exit(2);
|
|
@@ -194167,9 +194392,22 @@ async function pollExperimentUntilTerminal({
|
|
|
194167
194392
|
}) {
|
|
194168
194393
|
const deadline = Date.now() + maxWait * 1000;
|
|
194169
194394
|
let lastSummary = "";
|
|
194395
|
+
let emptyPolls = 0;
|
|
194170
194396
|
while (true) {
|
|
194171
194397
|
const result = await client.get(url3);
|
|
194172
194398
|
const execs = result.executions ?? result.runs ?? [];
|
|
194399
|
+
if (execs.length === 0) {
|
|
194400
|
+
emptyPolls += 1;
|
|
194401
|
+
if (emptyPolls >= 3) {
|
|
194402
|
+
if (process.stderr.isTTY)
|
|
194403
|
+
process.stderr.write(`
|
|
194404
|
+
`);
|
|
194405
|
+
error51(`Experiment still has no executions after ${emptyPolls} polls — check the batch id.`);
|
|
194406
|
+
process.exit(1);
|
|
194407
|
+
}
|
|
194408
|
+
} else {
|
|
194409
|
+
emptyPolls = 0;
|
|
194410
|
+
}
|
|
194173
194411
|
const summary = summarizeExperimentExecutions(execs);
|
|
194174
194412
|
const line3 = renderTickLine(summary);
|
|
194175
194413
|
if (line3 !== lastSummary) {
|
|
@@ -194649,7 +194887,7 @@ function commandLineWidth(cmd) {
|
|
|
194649
194887
|
}
|
|
194650
194888
|
|
|
194651
194889
|
// src/cli.ts
|
|
194652
|
-
var __filename3 =
|
|
194890
|
+
var __filename3 = path20.resolve(fileURLToPath9(import.meta.url));
|
|
194653
194891
|
var program2 = new Command;
|
|
194654
194892
|
var cliVersion = package_default.version === "0.0.0-placeholder" ? "dev" : package_default.version;
|
|
194655
194893
|
program2.name("eigenpal").description("Eigenpal CLI — AI workflows, evals, and experiments").enablePositionalOptions().version(cliVersion, "-v, --version", "Print the CLI version and exit").option("-q, --quiet", "Suppress informational status output (success/info/dim). Errors and warnings still print; --json output is unaffected.").hook("preAction", () => {
|
|
@@ -194662,8 +194900,8 @@ var initCmd = program2.command("init [name]").description("Scaffold a new workfl
|
|
|
194662
194900
|
if (name) {
|
|
194663
194901
|
await init(name, opts);
|
|
194664
194902
|
} else {
|
|
194665
|
-
const
|
|
194666
|
-
const raw =
|
|
194903
|
+
const path16 = await import("node:path");
|
|
194904
|
+
const raw = path16.basename(process.cwd());
|
|
194667
194905
|
const slug = /^[a-z0-9][a-z0-9-_]*$/.test(raw) && raw.length <= 60 ? raw : "my-workflow";
|
|
194668
194906
|
await init(slug, { ...opts, dir: opts.dir ?? "." });
|
|
194669
194907
|
}
|