@cloud-cli/on 1.4.0 ā 1.5.1
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/README.md +5 -6
- package/dist/config.d.ts +4 -0
- package/dist/config.d.ts.map +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/on.js +1030 -1021
- package/dist/parser/yaml-loader.d.ts.map +1 -1
- package/dist/server.d.ts +1 -1
- package/dist/server.d.ts.map +1 -1
- package/dist/signals.d.ts +2 -0
- package/dist/signals.d.ts.map +1 -0
- package/dist/types.d.ts +3 -1
- package/dist/types.d.ts.map +1 -1
- package/dist/worker.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/on.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import e, { existsSync as t, readFileSync as n, readdirSync as r, statSync as i } from "node:fs";
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
7
|
-
import
|
|
3
|
+
import { parseArgs as a, parseEnv as o, promisify as s } from "node:util";
|
|
4
|
+
import c from "node:http";
|
|
5
|
+
import { URL as l } from "node:url";
|
|
6
|
+
import u, { randomUUID as d } from "node:crypto";
|
|
7
|
+
import f, { isAbsolute as p, join as m, resolve as h } from "node:path";
|
|
8
8
|
import { readdir as g } from "node:fs/promises";
|
|
9
9
|
import { exec as _, spawn as v } from "node:child_process";
|
|
10
10
|
//#region \0rolldown/runtime.js
|
|
@@ -3399,8 +3399,8 @@ var dn = {
|
|
|
3399
3399
|
parse(e, t, n) {
|
|
3400
3400
|
let r = !0, i = null, a = e["x-hub-signature-256"];
|
|
3401
3401
|
if (n || (r = !1), n && a) {
|
|
3402
|
-
let e = "sha256=" +
|
|
3403
|
-
r =
|
|
3402
|
+
let e = "sha256=" + u.createHmac("sha256", n).update(t).digest("hex");
|
|
3403
|
+
r = u.timingSafeEqual(Buffer.from(a), Buffer.from(e));
|
|
3404
3404
|
}
|
|
3405
3405
|
if (r) {
|
|
3406
3406
|
let n = JSON.parse(t.toString("utf-8")), r = e["x-github-event"] || "unknown", a = (n.ref || "").replace("refs/heads/", "").replace("refs/tags/", ""), [o, s] = (n.repository?.full_name || "").split("/");
|
|
@@ -3796,7 +3796,7 @@ var vn, yn, bn, xn = class {
|
|
|
3796
3796
|
}
|
|
3797
3797
|
async report(t) {
|
|
3798
3798
|
e.mkdirSync(this.outputDir, { recursive: !0 });
|
|
3799
|
-
let n = this.generateHtml(t), r =
|
|
3799
|
+
let n = this.generateHtml(t), r = f.join(this.outputDir, `run-${t.jobId}.html`);
|
|
3800
3800
|
e.writeFileSync(r, n, "utf-8"), console.log(`š HTML Execution Report generated: ${r}`);
|
|
3801
3801
|
}
|
|
3802
3802
|
generateHtml(e) {
|
|
@@ -3853,7 +3853,7 @@ var vn, yn, bn, xn = class {
|
|
|
3853
3853
|
</div>
|
|
3854
3854
|
|
|
3855
3855
|
<!-- Inputs Overview -->
|
|
3856
|
-
<div class="bg-gray-900 border border-gray-800 rounded-xl p-4">
|
|
3856
|
+
<div class="bg-gray-900 border border-gray-800 rounded-xl p-4 overflow-auto max-h-[400px]">
|
|
3857
3857
|
<h2 class="text-xs font-semibold text-gray-400 uppercase tracking-wider mb-2">Trigger Inputs</h2>
|
|
3858
3858
|
<pre class="font-mono text-xs text-indigo-300 bg-gray-950 p-3 rounded-lg overflow-x-auto">${JSON.stringify(e.inputs, null, 2)}</pre>
|
|
3859
3859
|
</div>
|
|
@@ -3862,277 +3862,83 @@ var vn, yn, bn, xn = class {
|
|
|
3862
3862
|
</body>
|
|
3863
3863
|
</html>`;
|
|
3864
3864
|
}
|
|
3865
|
-
}, Sn =
|
|
3866
|
-
server;
|
|
3867
|
-
preprocessors = /* @__PURE__ */ new Map();
|
|
3868
|
-
workflows = [];
|
|
3869
|
-
queue;
|
|
3870
|
-
secrets;
|
|
3871
|
-
adminToken;
|
|
3872
|
-
static async withPort(t) {
|
|
3873
|
-
let { port: n, ...r } = t;
|
|
3874
|
-
return new e(r).listen(n);
|
|
3875
|
-
}
|
|
3876
|
-
constructor(e) {
|
|
3877
|
-
this.queue = e.queue, this.secrets = e.secrets, this.adminToken = e.adminToken, this.workflows = e.workflows, this.registerPreprocessor(new pn()), this.server = f.createServer((e, t) => this.handleRequest(e, t));
|
|
3878
|
-
}
|
|
3879
|
-
registerPreprocessor(e) {
|
|
3880
|
-
this.preprocessors.set(e.name, e);
|
|
3881
|
-
}
|
|
3882
|
-
async handleRequest(e, t) {
|
|
3883
|
-
let n = new p(e.url || "/", `${e.headers["x-forwarded-proto"] || "http"}://${e.headers["x-forwarded-host"] || e.headers.host}`);
|
|
3884
|
-
if (e.method === "GET" && (n.pathname === "/runs" || n.pathname === "/")) return this.renderDashboard(t);
|
|
3885
|
-
if (e.method === "GET" && n.pathname.startsWith("/runs/")) {
|
|
3886
|
-
let e = n.pathname.replace("/runs/", "");
|
|
3887
|
-
return this.renderRunDetails(e, t);
|
|
3888
|
-
}
|
|
3889
|
-
if (e.method === "POST" && n.pathname === "/admin/reload-secrets") return this.handleSecretReload(e, t);
|
|
3890
|
-
if (e.method === "POST" && n.pathname.startsWith("/webhooks/")) {
|
|
3891
|
-
let r = n.pathname.replace("/webhooks/", "");
|
|
3892
|
-
return this.handleWebhook(r, e, t);
|
|
3893
|
-
}
|
|
3894
|
-
t.writeHead(404, { "Content-Type": "application/json" }), t.end(JSON.stringify({ error: "Endpoint not found" }));
|
|
3895
|
-
}
|
|
3896
|
-
async handleWebhook(e, t, n) {
|
|
3897
|
-
try {
|
|
3898
|
-
let { rawBuffer: r, headers: i } = await this.readRequest(t, n);
|
|
3899
|
-
if (n.headersSent || !r) return;
|
|
3900
|
-
let { isValid: a, inputs: o } = this.preprocess(e, i, r);
|
|
3901
|
-
if (!a) {
|
|
3902
|
-
n.writeHead(401, { "Content-Type": "application/json" }), n.end(JSON.stringify({ error: "Invalid HMAC signature or authentication failed" }));
|
|
3903
|
-
return;
|
|
3904
|
-
}
|
|
3905
|
-
let s = this.matchWorkflows(e, o);
|
|
3906
|
-
n.writeHead(202, { "Content-Type": "application/json" }), n.end(JSON.stringify({
|
|
3907
|
-
message: "Webhook processed",
|
|
3908
|
-
triggeredWorkflows: s
|
|
3909
|
-
}));
|
|
3910
|
-
} catch (e) {
|
|
3911
|
-
console.error("ā Webhook Ingress Error:", e), n.writeHead(500, { "Content-Type": "application/json" }), n.end(JSON.stringify({
|
|
3912
|
-
error: "Internal Ingress Error",
|
|
3913
|
-
details: e.message
|
|
3914
|
-
}));
|
|
3915
|
-
}
|
|
3916
|
-
}
|
|
3917
|
-
async readRequest(e, t) {
|
|
3918
|
-
let n = [], r = 0;
|
|
3919
|
-
for await (let i of e) {
|
|
3920
|
-
if (r += i.length, r > 5242880) return t.writeHead(413, { "Content-Type": "application/json" }), t.end(JSON.stringify({ error: "Payload size exceeds limit" })), {
|
|
3921
|
-
rawBuffer: null,
|
|
3922
|
-
headers: {}
|
|
3923
|
-
};
|
|
3924
|
-
n.push(typeof i == "string" ? Buffer.from(i) : i);
|
|
3925
|
-
}
|
|
3926
|
-
return {
|
|
3927
|
-
rawBuffer: Buffer.concat(n),
|
|
3928
|
-
headers: Object.fromEntries(Object.entries(e.headers).map(([e, t]) => [e.toLowerCase(), Array.isArray(t) ? t[0] : t || ""]))
|
|
3929
|
-
};
|
|
3930
|
-
}
|
|
3931
|
-
preprocess(e, t, n) {
|
|
3932
|
-
let r = this.secrets.get(`${e.toUpperCase()}_WEBHOOK_SECRET`), i = this.preprocessors.get(e);
|
|
3933
|
-
try {
|
|
3934
|
-
if (i) {
|
|
3935
|
-
let { inputs: e, isValid: a } = i.parse(t, n, r);
|
|
3936
|
-
return {
|
|
3937
|
-
inputs: e,
|
|
3938
|
-
isValid: a
|
|
3939
|
-
};
|
|
3940
|
-
}
|
|
3941
|
-
return {
|
|
3942
|
-
isValid: !0,
|
|
3943
|
-
inputs: JSON.parse(n.toString("utf-8"))
|
|
3944
|
-
};
|
|
3945
|
-
} catch {
|
|
3946
|
-
return {
|
|
3947
|
-
isValid: !1,
|
|
3948
|
-
inputs: null
|
|
3949
|
-
};
|
|
3950
|
-
}
|
|
3951
|
-
}
|
|
3952
|
-
async matchWorkflows(e, t) {
|
|
3953
|
-
let n = [];
|
|
3954
|
-
for (let r of this.workflows) {
|
|
3955
|
-
if (r.on.provider !== e) continue;
|
|
3956
|
-
if (r.on.if) try {
|
|
3957
|
-
if (!fn.evaluateCondition(r.on.if, { inputs: t })) continue;
|
|
3958
|
-
} catch (e) {
|
|
3959
|
-
console.error(`ā ļø Condition evaluation error in workflow [${r.id}]:`, e.message);
|
|
3960
|
-
continue;
|
|
3961
|
-
}
|
|
3962
|
-
let i;
|
|
3963
|
-
r.concurrency?.group && (i = await fn.evaluateValue(r.concurrency.group, { inputs: t }));
|
|
3964
|
-
let a = {
|
|
3965
|
-
workflowId: r.id,
|
|
3966
|
-
steps: r.steps,
|
|
3967
|
-
inputs: t
|
|
3968
|
-
};
|
|
3969
|
-
await this.queue.enqueue(r.id, a, i), n.push(r.id);
|
|
3970
|
-
}
|
|
3971
|
-
return n;
|
|
3972
|
-
}
|
|
3973
|
-
async handleSecretReload(e, t) {
|
|
3974
|
-
if (e.headers.authorization !== `Bearer ${this.adminToken}`) return t.writeHead(403, { "Content-Type": "application/json" }), t.end(JSON.stringify({ error: "Unauthorized" }));
|
|
3975
|
-
this.secrets.reload(), console.log("š SecretStore reloaded successfully without downtime!"), t.writeHead(200, { "Content-Type": "application/json" }), t.end(JSON.stringify({ message: "Secrets reloaded successfully" }));
|
|
3976
|
-
}
|
|
3977
|
-
async renderDashboard(e) {
|
|
3978
|
-
let t = (await this.queue.listJobs(500)).map((e) => {
|
|
3979
|
-
let t = e.status === "success" ? "bg-emerald-500/10 text-emerald-400" : e.status === "failed" ? "bg-rose-500/10 text-rose-400" : e.status === "running" ? "bg-indigo-500/10 text-indigo-400 animate-pulse" : "bg-gray-500/10 text-gray-400";
|
|
3980
|
-
return `
|
|
3981
|
-
<tr class="border-b border-gray-800 hover:bg-gray-900/50 transition">
|
|
3982
|
-
<td class="py-3 px-4 font-mono text-indigo-400"><a href="/runs/${e.id}" class="hover:underline">#${e.id}</a></td>
|
|
3983
|
-
<td class="py-3 px-4 font-medium text-white">${e.workflow_id}</td>
|
|
3984
|
-
<td class="py-3 px-4">
|
|
3985
|
-
<span class="px-2.5 py-0.5 rounded-full text-xs font-semibold ${t}">${e.status.toUpperCase()}</span>
|
|
3986
|
-
</td>
|
|
3987
|
-
<td class="py-3 px-4 text-xs font-mono text-gray-400">${e.worker_id || "-"}</td>
|
|
3988
|
-
<td class="py-3 px-4 text-xs text-gray-400">${e.created_at}</td>
|
|
3989
|
-
<td class="py-3 px-4 text-right">
|
|
3990
|
-
<a href="/runs/${e.id}" class="text-xs bg-gray-800 hover:bg-gray-700 text-gray-200 px-3 py-1 rounded border border-gray-700">View Trace ā</a>
|
|
3991
|
-
</td>
|
|
3992
|
-
</tr>
|
|
3993
|
-
`;
|
|
3994
|
-
}).join(""), n = `<!DOCTYPE html>
|
|
3995
|
-
<html lang="en" class="dark">
|
|
3996
|
-
<head>
|
|
3997
|
-
<meta charset="UTF-8">
|
|
3998
|
-
<meta http-equiv="refresh" content="10"> <!-- Auto-refreshes every 10s -->
|
|
3999
|
-
<title>Workflow Engine Dashboard</title>
|
|
4000
|
-
<script src="https://cdn.tailwindcss.com"><\/script>
|
|
4001
|
-
</head>
|
|
4002
|
-
<body class="bg-gray-950 text-gray-100 min-h-screen p-6 font-sans">
|
|
4003
|
-
<div class="max-w-6xl mx-auto space-y-6">
|
|
4004
|
-
<div class="flex items-center justify-between border-b border-gray-800 pb-4">
|
|
4005
|
-
<div>
|
|
4006
|
-
<h1 class="text-2xl font-bold text-white">āļø Runner Engine Status</h1>
|
|
4007
|
-
<p class="text-xs text-gray-400">Live Job Queue & Execution Traces</p>
|
|
4008
|
-
</div>
|
|
4009
|
-
<span class="text-xs font-mono bg-emerald-500/10 text-emerald-400 px-3 py-1 rounded-full border border-emerald-500/20">
|
|
4010
|
-
ā System Operational
|
|
4011
|
-
</span>
|
|
4012
|
-
</div>
|
|
4013
|
-
|
|
4014
|
-
<div class="bg-gray-900 border border-gray-800 rounded-xl overflow-hidden">
|
|
4015
|
-
<table class="w-full text-left text-sm">
|
|
4016
|
-
<thead class="bg-gray-800/50 text-gray-400 text-xs uppercase font-mono border-b border-gray-800">
|
|
4017
|
-
<tr>
|
|
4018
|
-
<th class="py-3 px-4">Job ID</th>
|
|
4019
|
-
<th class="py-3 px-4">Workflow</th>
|
|
4020
|
-
<th class="py-3 px-4">Status</th>
|
|
4021
|
-
<th class="py-3 px-4">Worker</th>
|
|
4022
|
-
<th class="py-3 px-4">Created At</th>
|
|
4023
|
-
<th class="py-3 px-4 text-right">Action</th>
|
|
4024
|
-
</tr>
|
|
4025
|
-
</thead>
|
|
4026
|
-
<tbody>${t.length ? t : "<tr><td colspan=\"6\" class=\"p-6 text-center text-gray-500\">No jobs recorded yet.</td></tr>"}</tbody>
|
|
4027
|
-
</table>
|
|
4028
|
-
</div>
|
|
4029
|
-
</div>
|
|
4030
|
-
</body>
|
|
4031
|
-
</html>`, r = this.secrets.redactText(n);
|
|
4032
|
-
e.writeHead(200, { "Content-Type": "text/html; charset=utf-8" }), e.end(r);
|
|
4033
|
-
}
|
|
4034
|
-
async renderRunDetails(e, t) {
|
|
4035
|
-
let n = await this.queue.getJob(e);
|
|
4036
|
-
if (!n || !n.report) return t.writeHead(404, { "Content-Type": "text/html; charset=utf-8" }), t.end("<h1>404 - Report Not Found</h1>");
|
|
4037
|
-
let r = JSON.parse(n.report), i = await this.queue.getJobLogs(e);
|
|
4038
|
-
r.steps = r.steps.map((e) => ({
|
|
4039
|
-
...e,
|
|
4040
|
-
logContent: i[e.id] || ""
|
|
4041
|
-
}));
|
|
4042
|
-
let a = new xn({ outputDir: "" }).generateHtml(r), o = this.secrets.redactText(a);
|
|
4043
|
-
t.writeHead(200, { "Content-Type": "text/html; charset=utf-8" }), t.end(o);
|
|
4044
|
-
}
|
|
4045
|
-
listen(e) {
|
|
4046
|
-
return new Promise((t) => {
|
|
4047
|
-
this.server.listen(e, process.env.RUNNER_HOST || "0.0.0.0", () => {
|
|
4048
|
-
console.log(`š Webhook Ingress Server running on port ${e}`), t(this);
|
|
4049
|
-
});
|
|
4050
|
-
});
|
|
4051
|
-
}
|
|
4052
|
-
async stop() {
|
|
4053
|
-
return new Promise((e) => {
|
|
4054
|
-
this.server.close(() => {
|
|
4055
|
-
console.log("š Webhook Ingress Server stopped listening."), e();
|
|
4056
|
-
});
|
|
4057
|
-
});
|
|
4058
|
-
}
|
|
4059
|
-
}, Cn = Symbol.for("yaml.alias"), wn = Symbol.for("yaml.document"), Tn = Symbol.for("yaml.map"), En = Symbol.for("yaml.pair"), Dn = Symbol.for("yaml.scalar"), On = Symbol.for("yaml.seq"), H = Symbol.for("yaml.node.type"), kn = (e) => !!e && typeof e == "object" && e[H] === Cn, An = (e) => !!e && typeof e == "object" && e[H] === wn, jn = (e) => !!e && typeof e == "object" && e[H] === Tn, U = (e) => !!e && typeof e == "object" && e[H] === En, W = (e) => !!e && typeof e == "object" && e[H] === Dn, Mn = (e) => !!e && typeof e == "object" && e[H] === On;
|
|
3865
|
+
}, Sn = Symbol.for("yaml.alias"), Cn = Symbol.for("yaml.document"), wn = Symbol.for("yaml.map"), Tn = Symbol.for("yaml.pair"), En = Symbol.for("yaml.scalar"), Dn = Symbol.for("yaml.seq"), H = Symbol.for("yaml.node.type"), On = (e) => !!e && typeof e == "object" && e[H] === Sn, kn = (e) => !!e && typeof e == "object" && e[H] === Cn, An = (e) => !!e && typeof e == "object" && e[H] === wn, U = (e) => !!e && typeof e == "object" && e[H] === Tn, W = (e) => !!e && typeof e == "object" && e[H] === En, jn = (e) => !!e && typeof e == "object" && e[H] === Dn;
|
|
4060
3866
|
function G(e) {
|
|
4061
3867
|
if (e && typeof e == "object") switch (e[H]) {
|
|
4062
|
-
case
|
|
4063
|
-
case
|
|
3868
|
+
case wn:
|
|
3869
|
+
case Dn: return !0;
|
|
4064
3870
|
}
|
|
4065
3871
|
return !1;
|
|
4066
3872
|
}
|
|
4067
3873
|
function K(e) {
|
|
4068
3874
|
if (e && typeof e == "object") switch (e[H]) {
|
|
4069
|
-
case
|
|
4070
|
-
case
|
|
4071
|
-
case
|
|
4072
|
-
case
|
|
3875
|
+
case Sn:
|
|
3876
|
+
case wn:
|
|
3877
|
+
case En:
|
|
3878
|
+
case Dn: return !0;
|
|
4073
3879
|
}
|
|
4074
3880
|
return !1;
|
|
4075
3881
|
}
|
|
4076
|
-
var
|
|
4077
|
-
function
|
|
4078
|
-
let n =
|
|
4079
|
-
|
|
3882
|
+
var Mn = (e) => (W(e) || G(e)) && !!e.anchor, q = Symbol("break visit"), Nn = Symbol("skip children"), Pn = Symbol("remove node");
|
|
3883
|
+
function Fn(e, t) {
|
|
3884
|
+
let n = zn(t);
|
|
3885
|
+
kn(e) ? In(null, e.contents, n, Object.freeze([e])) === Pn && (e.contents = null) : In(null, e, n, Object.freeze([]));
|
|
4080
3886
|
}
|
|
4081
|
-
|
|
4082
|
-
function
|
|
4083
|
-
let i =
|
|
4084
|
-
if (K(i) || U(i)) return
|
|
3887
|
+
Fn.BREAK = q, Fn.SKIP = Nn, Fn.REMOVE = Pn;
|
|
3888
|
+
function In(e, t, n, r) {
|
|
3889
|
+
let i = Bn(e, t, n, r);
|
|
3890
|
+
if (K(i) || U(i)) return Vn(e, r, i), In(e, i, n, r);
|
|
4085
3891
|
if (typeof i != "symbol") {
|
|
4086
3892
|
if (G(t)) {
|
|
4087
3893
|
r = Object.freeze(r.concat(t));
|
|
4088
3894
|
for (let e = 0; e < t.items.length; ++e) {
|
|
4089
|
-
let i =
|
|
3895
|
+
let i = In(e, t.items[e], n, r);
|
|
4090
3896
|
if (typeof i == "number") e = i - 1;
|
|
4091
3897
|
else if (i === q) return q;
|
|
4092
|
-
else i ===
|
|
3898
|
+
else i === Pn && (t.items.splice(e, 1), --e);
|
|
4093
3899
|
}
|
|
4094
3900
|
} else if (U(t)) {
|
|
4095
3901
|
r = Object.freeze(r.concat(t));
|
|
4096
|
-
let e =
|
|
3902
|
+
let e = In("key", t.key, n, r);
|
|
4097
3903
|
if (e === q) return q;
|
|
4098
|
-
e ===
|
|
4099
|
-
let i =
|
|
3904
|
+
e === Pn && (t.key = null);
|
|
3905
|
+
let i = In("value", t.value, n, r);
|
|
4100
3906
|
if (i === q) return q;
|
|
4101
|
-
i ===
|
|
3907
|
+
i === Pn && (t.value = null);
|
|
4102
3908
|
}
|
|
4103
3909
|
}
|
|
4104
3910
|
return i;
|
|
4105
3911
|
}
|
|
4106
|
-
async function
|
|
4107
|
-
let n =
|
|
4108
|
-
|
|
3912
|
+
async function Ln(e, t) {
|
|
3913
|
+
let n = zn(t);
|
|
3914
|
+
kn(e) ? await Rn(null, e.contents, n, Object.freeze([e])) === Pn && (e.contents = null) : await Rn(null, e, n, Object.freeze([]));
|
|
4109
3915
|
}
|
|
4110
|
-
|
|
4111
|
-
async function
|
|
4112
|
-
let i = await
|
|
4113
|
-
if (K(i) || U(i)) return
|
|
3916
|
+
Ln.BREAK = q, Ln.SKIP = Nn, Ln.REMOVE = Pn;
|
|
3917
|
+
async function Rn(e, t, n, r) {
|
|
3918
|
+
let i = await Bn(e, t, n, r);
|
|
3919
|
+
if (K(i) || U(i)) return Vn(e, r, i), Rn(e, i, n, r);
|
|
4114
3920
|
if (typeof i != "symbol") {
|
|
4115
3921
|
if (G(t)) {
|
|
4116
3922
|
r = Object.freeze(r.concat(t));
|
|
4117
3923
|
for (let e = 0; e < t.items.length; ++e) {
|
|
4118
|
-
let i = await
|
|
3924
|
+
let i = await Rn(e, t.items[e], n, r);
|
|
4119
3925
|
if (typeof i == "number") e = i - 1;
|
|
4120
3926
|
else if (i === q) return q;
|
|
4121
|
-
else i ===
|
|
3927
|
+
else i === Pn && (t.items.splice(e, 1), --e);
|
|
4122
3928
|
}
|
|
4123
3929
|
} else if (U(t)) {
|
|
4124
3930
|
r = Object.freeze(r.concat(t));
|
|
4125
|
-
let e = await
|
|
3931
|
+
let e = await Rn("key", t.key, n, r);
|
|
4126
3932
|
if (e === q) return q;
|
|
4127
|
-
e ===
|
|
4128
|
-
let i = await
|
|
3933
|
+
e === Pn && (t.key = null);
|
|
3934
|
+
let i = await Rn("value", t.value, n, r);
|
|
4129
3935
|
if (i === q) return q;
|
|
4130
|
-
i ===
|
|
3936
|
+
i === Pn && (t.value = null);
|
|
4131
3937
|
}
|
|
4132
3938
|
}
|
|
4133
3939
|
return i;
|
|
4134
3940
|
}
|
|
4135
|
-
function
|
|
3941
|
+
function zn(e) {
|
|
4136
3942
|
return typeof e == "object" && (e.Collection || e.Node || e.Value) ? Object.assign({
|
|
4137
3943
|
Alias: e.Node,
|
|
4138
3944
|
Map: e.Node,
|
|
@@ -4147,34 +3953,34 @@ function Bn(e) {
|
|
|
4147
3953
|
Seq: e.Collection
|
|
4148
3954
|
}, e) : e;
|
|
4149
3955
|
}
|
|
4150
|
-
function
|
|
3956
|
+
function Bn(e, t, n, r) {
|
|
4151
3957
|
if (typeof n == "function") return n(e, t, r);
|
|
4152
|
-
if (
|
|
4153
|
-
if (
|
|
3958
|
+
if (An(t)) return n.Map?.(e, t, r);
|
|
3959
|
+
if (jn(t)) return n.Seq?.(e, t, r);
|
|
4154
3960
|
if (U(t)) return n.Pair?.(e, t, r);
|
|
4155
3961
|
if (W(t)) return n.Scalar?.(e, t, r);
|
|
4156
|
-
if (
|
|
3962
|
+
if (On(t)) return n.Alias?.(e, t, r);
|
|
4157
3963
|
}
|
|
4158
|
-
function
|
|
3964
|
+
function Vn(e, t, n) {
|
|
4159
3965
|
let r = t[t.length - 1];
|
|
4160
3966
|
if (G(r)) r.items[e] = n;
|
|
4161
3967
|
else if (U(r)) e === "key" ? r.key = n : r.value = n;
|
|
4162
|
-
else if (
|
|
3968
|
+
else if (kn(r)) r.contents = n;
|
|
4163
3969
|
else {
|
|
4164
|
-
let e =
|
|
3970
|
+
let e = On(r) ? "alias" : "scalar";
|
|
4165
3971
|
throw Error(`Cannot replace node with ${e} parent`);
|
|
4166
3972
|
}
|
|
4167
3973
|
}
|
|
4168
3974
|
//#endregion
|
|
4169
3975
|
//#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/doc/directives.js
|
|
4170
|
-
var
|
|
3976
|
+
var Hn = {
|
|
4171
3977
|
"!": "%21",
|
|
4172
3978
|
",": "%2C",
|
|
4173
3979
|
"[": "%5B",
|
|
4174
3980
|
"]": "%5D",
|
|
4175
3981
|
"{": "%7B",
|
|
4176
3982
|
"}": "%7D"
|
|
4177
|
-
},
|
|
3983
|
+
}, Un = (e) => e.replace(/[!,[\]{}]/g, (e) => Hn[e]), Wn = class e {
|
|
4178
3984
|
constructor(t, n) {
|
|
4179
3985
|
this.docStart = null, this.docEnd = !1, this.yaml = Object.assign({}, e.defaultYaml, t), this.tags = Object.assign({}, e.defaultTags, n);
|
|
4180
3986
|
}
|
|
@@ -4237,14 +4043,14 @@ var Un = {
|
|
|
4237
4043
|
return n === "!" ? e : (t(`Could not resolve tag: ${e}`), null);
|
|
4238
4044
|
}
|
|
4239
4045
|
tagString(e) {
|
|
4240
|
-
for (let [t, n] of Object.entries(this.tags)) if (e.startsWith(n)) return t +
|
|
4046
|
+
for (let [t, n] of Object.entries(this.tags)) if (e.startsWith(n)) return t + Un(e.substring(n.length));
|
|
4241
4047
|
return e[0] === "!" ? e : `!<${e}>`;
|
|
4242
4048
|
}
|
|
4243
4049
|
toString(e) {
|
|
4244
4050
|
let t = this.yaml.explicit ? [`%YAML ${this.yaml.version || "1.2"}`] : [], n = Object.entries(this.tags), r;
|
|
4245
4051
|
if (e && n.length > 0 && K(e.contents)) {
|
|
4246
4052
|
let t = {};
|
|
4247
|
-
|
|
4053
|
+
Fn(e.contents, (e, n) => {
|
|
4248
4054
|
K(n) && n.tag && (t[n.tag] = !0);
|
|
4249
4055
|
}), r = Object.keys(t);
|
|
4250
4056
|
} else r = [];
|
|
@@ -4252,37 +4058,37 @@ var Un = {
|
|
|
4252
4058
|
return t.join("\n");
|
|
4253
4059
|
}
|
|
4254
4060
|
};
|
|
4255
|
-
|
|
4061
|
+
Wn.defaultYaml = {
|
|
4256
4062
|
explicit: !1,
|
|
4257
4063
|
version: "1.2"
|
|
4258
|
-
},
|
|
4064
|
+
}, Wn.defaultTags = { "!!": "tag:yaml.org,2002:" };
|
|
4259
4065
|
//#endregion
|
|
4260
4066
|
//#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/doc/anchors.js
|
|
4261
|
-
function
|
|
4067
|
+
function Gn(e) {
|
|
4262
4068
|
if (/[\x00-\x19\s,[\]{}]/.test(e)) {
|
|
4263
4069
|
let t = `Anchor must not contain whitespace or control characters: ${JSON.stringify(e)}`;
|
|
4264
4070
|
throw Error(t);
|
|
4265
4071
|
}
|
|
4266
4072
|
return !0;
|
|
4267
4073
|
}
|
|
4268
|
-
function
|
|
4074
|
+
function Kn(e) {
|
|
4269
4075
|
let t = /* @__PURE__ */ new Set();
|
|
4270
|
-
return
|
|
4076
|
+
return Fn(e, { Value(e, n) {
|
|
4271
4077
|
n.anchor && t.add(n.anchor);
|
|
4272
4078
|
} }), t;
|
|
4273
4079
|
}
|
|
4274
|
-
function
|
|
4080
|
+
function qn(e, t) {
|
|
4275
4081
|
for (let n = 1;; ++n) {
|
|
4276
4082
|
let r = `${e}${n}`;
|
|
4277
4083
|
if (!t.has(r)) return r;
|
|
4278
4084
|
}
|
|
4279
4085
|
}
|
|
4280
|
-
function
|
|
4086
|
+
function Jn(e, t) {
|
|
4281
4087
|
let n = [], r = /* @__PURE__ */ new Map(), i = null;
|
|
4282
4088
|
return {
|
|
4283
4089
|
onAnchor: (r) => {
|
|
4284
|
-
n.push(r), i ??=
|
|
4285
|
-
let a =
|
|
4090
|
+
n.push(r), i ??= Kn(e);
|
|
4091
|
+
let a = qn(t, i);
|
|
4286
4092
|
return i.add(a), a;
|
|
4287
4093
|
},
|
|
4288
4094
|
setAnchors: () => {
|
|
@@ -4300,22 +4106,22 @@ function Yn(e, t) {
|
|
|
4300
4106
|
}
|
|
4301
4107
|
//#endregion
|
|
4302
4108
|
//#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/doc/applyReviver.js
|
|
4303
|
-
function
|
|
4109
|
+
function Yn(e, t, n, r) {
|
|
4304
4110
|
if (r && typeof r == "object") {
|
|
4305
4111
|
if (Array.isArray(r)) for (let t = 0, n = r.length; t < n; ++t) {
|
|
4306
|
-
let n = r[t], i =
|
|
4112
|
+
let n = r[t], i = Yn(e, r, String(t), n);
|
|
4307
4113
|
i === void 0 ? delete r[t] : i !== n && (r[t] = i);
|
|
4308
4114
|
}
|
|
4309
4115
|
else if (r instanceof Map) for (let t of Array.from(r.keys())) {
|
|
4310
|
-
let n = r.get(t), i =
|
|
4116
|
+
let n = r.get(t), i = Yn(e, r, t, n);
|
|
4311
4117
|
i === void 0 ? r.delete(t) : i !== n && r.set(t, i);
|
|
4312
4118
|
}
|
|
4313
4119
|
else if (r instanceof Set) for (let t of Array.from(r)) {
|
|
4314
|
-
let n =
|
|
4120
|
+
let n = Yn(e, r, t, t);
|
|
4315
4121
|
n === void 0 ? r.delete(t) : n !== t && (r.delete(t), r.add(n));
|
|
4316
4122
|
}
|
|
4317
4123
|
else for (let [t, n] of Object.entries(r)) {
|
|
4318
|
-
let i =
|
|
4124
|
+
let i = Yn(e, r, t, n);
|
|
4319
4125
|
i === void 0 ? delete r[t] : i !== n && (r[t] = i);
|
|
4320
4126
|
}
|
|
4321
4127
|
}
|
|
@@ -4326,7 +4132,7 @@ function Xn(e, t, n, r) {
|
|
|
4326
4132
|
function J(e, t, n) {
|
|
4327
4133
|
if (Array.isArray(e)) return e.map((e, t) => J(e, String(t), n));
|
|
4328
4134
|
if (e && typeof e.toJSON == "function") {
|
|
4329
|
-
if (!n || !
|
|
4135
|
+
if (!n || !Mn(e)) return e.toJSON(t, n);
|
|
4330
4136
|
let r = {
|
|
4331
4137
|
aliasCount: 0,
|
|
4332
4138
|
count: 1,
|
|
@@ -4342,7 +4148,7 @@ function J(e, t, n) {
|
|
|
4342
4148
|
}
|
|
4343
4149
|
//#endregion
|
|
4344
4150
|
//#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/nodes/Node.js
|
|
4345
|
-
var
|
|
4151
|
+
var Xn = class {
|
|
4346
4152
|
constructor(e) {
|
|
4347
4153
|
Object.defineProperty(this, H, { value: e });
|
|
4348
4154
|
}
|
|
@@ -4351,7 +4157,7 @@ var Zn = class {
|
|
|
4351
4157
|
return this.range && (e.range = this.range.slice()), e;
|
|
4352
4158
|
}
|
|
4353
4159
|
toJS(e, { mapAsMap: t, maxAliasCount: n, onAnchor: r, reviver: i } = {}) {
|
|
4354
|
-
if (!
|
|
4160
|
+
if (!kn(e)) throw TypeError("A document argument is required");
|
|
4355
4161
|
let a = {
|
|
4356
4162
|
anchors: /* @__PURE__ */ new Map(),
|
|
4357
4163
|
doc: e,
|
|
@@ -4361,19 +4167,19 @@ var Zn = class {
|
|
|
4361
4167
|
maxAliasCount: typeof n == "number" ? n : 100
|
|
4362
4168
|
}, o = J(this, "", a);
|
|
4363
4169
|
if (typeof r == "function") for (let { count: e, res: t } of a.anchors.values()) r(t, e);
|
|
4364
|
-
return typeof i == "function" ?
|
|
4170
|
+
return typeof i == "function" ? Yn(i, { "": o }, "", o) : o;
|
|
4365
4171
|
}
|
|
4366
|
-
},
|
|
4172
|
+
}, Zn = class extends Xn {
|
|
4367
4173
|
constructor(e) {
|
|
4368
|
-
super(
|
|
4174
|
+
super(Sn), this.source = e, Object.defineProperty(this, "tag", { set() {
|
|
4369
4175
|
throw Error("Alias nodes cannot have tags");
|
|
4370
4176
|
} });
|
|
4371
4177
|
}
|
|
4372
4178
|
resolve(e, t) {
|
|
4373
4179
|
if (t?.maxAliasCount === 0) throw ReferenceError("Alias resolution is disabled");
|
|
4374
4180
|
let n;
|
|
4375
|
-
t?.aliasResolveCache ? n = t.aliasResolveCache : (n = [],
|
|
4376
|
-
(
|
|
4181
|
+
t?.aliasResolveCache ? n = t.aliasResolveCache : (n = [], Fn(e, { Node: (e, t) => {
|
|
4182
|
+
(On(t) || Mn(t)) && n.push(t);
|
|
4377
4183
|
} }), t && (t.aliasResolveCache = n));
|
|
4378
4184
|
let r;
|
|
4379
4185
|
for (let e of n) {
|
|
@@ -4392,13 +4198,13 @@ var Zn = class {
|
|
|
4392
4198
|
let o = n.get(a);
|
|
4393
4199
|
/* istanbul ignore if */
|
|
4394
4200
|
if (o ||= (J(a, null, t), n.get(a)), o?.res === void 0) throw ReferenceError("This should not happen: Alias anchor was not resolved?");
|
|
4395
|
-
if (i >= 0 && (o.count += 1, o.aliasCount === 0 && (o.aliasCount =
|
|
4201
|
+
if (i >= 0 && (o.count += 1, o.aliasCount === 0 && (o.aliasCount = Qn(r, a, n)), o.count * o.aliasCount > i)) throw ReferenceError("Excessive alias count indicates a resource exhaustion attack");
|
|
4396
4202
|
return o.res;
|
|
4397
4203
|
}
|
|
4398
4204
|
toString(e, t, n) {
|
|
4399
4205
|
let r = `*${this.source}`;
|
|
4400
4206
|
if (e) {
|
|
4401
|
-
if (
|
|
4207
|
+
if (Gn(this.source), e.options.verifyAliasOrder && !e.anchors.has(this.source)) {
|
|
4402
4208
|
let e = `Unresolved alias (the anchor must be set before the alias): ${this.source}`;
|
|
4403
4209
|
throw Error(e);
|
|
4404
4210
|
}
|
|
@@ -4407,30 +4213,30 @@ var Zn = class {
|
|
|
4407
4213
|
return r;
|
|
4408
4214
|
}
|
|
4409
4215
|
};
|
|
4410
|
-
function
|
|
4411
|
-
if (
|
|
4216
|
+
function Qn(e, t, n) {
|
|
4217
|
+
if (On(t)) {
|
|
4412
4218
|
let r = t.resolve(e), i = n && r && n.get(r);
|
|
4413
4219
|
return i ? i.count * i.aliasCount : 0;
|
|
4414
4220
|
}
|
|
4415
4221
|
if (G(t)) {
|
|
4416
4222
|
let r = 0;
|
|
4417
4223
|
for (let i of t.items) {
|
|
4418
|
-
let t =
|
|
4224
|
+
let t = Qn(e, i, n);
|
|
4419
4225
|
t > r && (r = t);
|
|
4420
4226
|
}
|
|
4421
4227
|
return r;
|
|
4422
4228
|
}
|
|
4423
4229
|
if (U(t)) {
|
|
4424
|
-
let r =
|
|
4230
|
+
let r = Qn(e, t.key, n), i = Qn(e, t.value, n);
|
|
4425
4231
|
return Math.max(r, i);
|
|
4426
4232
|
}
|
|
4427
4233
|
return 1;
|
|
4428
4234
|
}
|
|
4429
4235
|
//#endregion
|
|
4430
4236
|
//#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/nodes/Scalar.js
|
|
4431
|
-
var
|
|
4237
|
+
var $n = (e) => !e || typeof e != "function" && typeof e != "object", Y = class extends Xn {
|
|
4432
4238
|
constructor(e) {
|
|
4433
|
-
super(
|
|
4239
|
+
super(En), this.value = e;
|
|
4434
4240
|
}
|
|
4435
4241
|
toJSON(e, t) {
|
|
4436
4242
|
return t?.keep ? this.value : J(this.value, e, t);
|
|
@@ -4442,8 +4248,8 @@ var er = (e) => !e || typeof e != "function" && typeof e != "object", Y = class
|
|
|
4442
4248
|
Y.BLOCK_FOLDED = "BLOCK_FOLDED", Y.BLOCK_LITERAL = "BLOCK_LITERAL", Y.PLAIN = "PLAIN", Y.QUOTE_DOUBLE = "QUOTE_DOUBLE", Y.QUOTE_SINGLE = "QUOTE_SINGLE";
|
|
4443
4249
|
//#endregion
|
|
4444
4250
|
//#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/doc/createNode.js
|
|
4445
|
-
var
|
|
4446
|
-
function
|
|
4251
|
+
var er = "tag:yaml.org,2002:";
|
|
4252
|
+
function tr(e, t, n) {
|
|
4447
4253
|
if (t) {
|
|
4448
4254
|
let e = n.filter((e) => e.tag === t), r = e.find((e) => !e.format) ?? e[0];
|
|
4449
4255
|
if (!r) throw Error(`Tag ${t} not found`);
|
|
@@ -4451,29 +4257,29 @@ function nr(e, t, n) {
|
|
|
4451
4257
|
}
|
|
4452
4258
|
return n.find((t) => t.identify?.(e) && !t.format);
|
|
4453
4259
|
}
|
|
4454
|
-
function
|
|
4455
|
-
if (
|
|
4260
|
+
function nr(e, t, n) {
|
|
4261
|
+
if (kn(e) && (e = e.contents), K(e)) return e;
|
|
4456
4262
|
if (U(e)) {
|
|
4457
|
-
let t = n.schema[
|
|
4263
|
+
let t = n.schema[wn].createNode?.(n.schema, null, n);
|
|
4458
4264
|
return t.items.push(e), t;
|
|
4459
4265
|
}
|
|
4460
4266
|
(e instanceof String || e instanceof Number || e instanceof Boolean || typeof BigInt < "u" && e instanceof BigInt) && (e = e.valueOf());
|
|
4461
4267
|
let { aliasDuplicateObjects: r, onAnchor: i, onTagObj: a, schema: o, sourceObjects: s } = n, c;
|
|
4462
4268
|
if (r && e && typeof e == "object") {
|
|
4463
|
-
if (c = s.get(e), c) return c.anchor ?? (c.anchor = i(e)), new
|
|
4269
|
+
if (c = s.get(e), c) return c.anchor ?? (c.anchor = i(e)), new Zn(c.anchor);
|
|
4464
4270
|
c = {
|
|
4465
4271
|
anchor: null,
|
|
4466
4272
|
node: null
|
|
4467
4273
|
}, s.set(e, c);
|
|
4468
4274
|
}
|
|
4469
|
-
t?.startsWith("!!") && (t =
|
|
4470
|
-
let l =
|
|
4275
|
+
t?.startsWith("!!") && (t = er + t.slice(2));
|
|
4276
|
+
let l = tr(e, t, o.tags);
|
|
4471
4277
|
if (!l) {
|
|
4472
4278
|
if (e && typeof e.toJSON == "function" && (e = e.toJSON()), !e || typeof e != "object") {
|
|
4473
4279
|
let t = new Y(e);
|
|
4474
4280
|
return c && (c.node = t), t;
|
|
4475
4281
|
}
|
|
4476
|
-
l = e instanceof Map ? o[
|
|
4282
|
+
l = e instanceof Map ? o[wn] : Symbol.iterator in Object(e) ? o[Dn] : o[wn];
|
|
4477
4283
|
}
|
|
4478
4284
|
a && (a(l), delete n.onTagObj);
|
|
4479
4285
|
let u = l?.createNode ? l.createNode(n.schema, e, n) : typeof l?.nodeClass?.from == "function" ? l.nodeClass.from(n.schema, e, n) : new Y(e);
|
|
@@ -4481,7 +4287,7 @@ function rr(e, t, n) {
|
|
|
4481
4287
|
}
|
|
4482
4288
|
//#endregion
|
|
4483
4289
|
//#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/nodes/Collection.js
|
|
4484
|
-
function
|
|
4290
|
+
function rr(e, t, n) {
|
|
4485
4291
|
let r = n;
|
|
4486
4292
|
for (let e = t.length - 1; e >= 0; --e) {
|
|
4487
4293
|
let n = t[e];
|
|
@@ -4490,7 +4296,7 @@ function ir(e, t, n) {
|
|
|
4490
4296
|
e[n] = r, r = e;
|
|
4491
4297
|
} else r = /* @__PURE__ */ new Map([[n, r]]);
|
|
4492
4298
|
}
|
|
4493
|
-
return
|
|
4299
|
+
return nr(r, void 0, {
|
|
4494
4300
|
aliasDuplicateObjects: !1,
|
|
4495
4301
|
keepUndefined: !1,
|
|
4496
4302
|
onAnchor: () => {
|
|
@@ -4500,7 +4306,7 @@ function ir(e, t, n) {
|
|
|
4500
4306
|
sourceObjects: /* @__PURE__ */ new Map()
|
|
4501
4307
|
});
|
|
4502
4308
|
}
|
|
4503
|
-
var
|
|
4309
|
+
var ir = (e) => e == null || typeof e == "object" && !!e[Symbol.iterator]().next().done, ar = class extends Xn {
|
|
4504
4310
|
constructor(e, t) {
|
|
4505
4311
|
super(e), Object.defineProperty(this, "schema", {
|
|
4506
4312
|
value: t,
|
|
@@ -4514,11 +4320,11 @@ var ar = (e) => e == null || typeof e == "object" && !!e[Symbol.iterator]().next
|
|
|
4514
4320
|
return e && (t.schema = e), t.items = t.items.map((t) => K(t) || U(t) ? t.clone(e) : t), this.range && (t.range = this.range.slice()), t;
|
|
4515
4321
|
}
|
|
4516
4322
|
addIn(e, t) {
|
|
4517
|
-
if (
|
|
4323
|
+
if (ir(e)) this.add(t);
|
|
4518
4324
|
else {
|
|
4519
4325
|
let [n, ...r] = e, i = this.get(n, !0);
|
|
4520
4326
|
if (G(i)) i.addIn(r, t);
|
|
4521
|
-
else if (i === void 0 && this.schema) this.set(n,
|
|
4327
|
+
else if (i === void 0 && this.schema) this.set(n, rr(this.schema, r, t));
|
|
4522
4328
|
else throw Error(`Expected YAML collection at ${n}. Remaining path: ${r}`);
|
|
4523
4329
|
}
|
|
4524
4330
|
}
|
|
@@ -4552,16 +4358,16 @@ var ar = (e) => e == null || typeof e == "object" && !!e[Symbol.iterator]().next
|
|
|
4552
4358
|
else {
|
|
4553
4359
|
let e = this.get(n, !0);
|
|
4554
4360
|
if (G(e)) e.setIn(r, t);
|
|
4555
|
-
else if (e === void 0 && this.schema) this.set(n,
|
|
4361
|
+
else if (e === void 0 && this.schema) this.set(n, rr(this.schema, r, t));
|
|
4556
4362
|
else throw Error(`Expected YAML collection at ${n}. Remaining path: ${r}`);
|
|
4557
4363
|
}
|
|
4558
4364
|
}
|
|
4559
|
-
},
|
|
4560
|
-
function
|
|
4365
|
+
}, or = (e) => e.replace(/^(?!$)(?: $)?/gm, "#");
|
|
4366
|
+
function sr(e, t) {
|
|
4561
4367
|
return /^\n+$/.test(e) ? e.substring(1) : t ? e.replace(/^(?! *$)/gm, t) : e;
|
|
4562
4368
|
}
|
|
4563
|
-
var
|
|
4564
|
-
function
|
|
4369
|
+
var cr = (e, t, n) => e.endsWith("\n") ? sr(n, t) : n.includes("\n") ? "\n" + sr(n, t) : (e.endsWith(" ") ? "" : " ") + n, lr = "flow", ur = "block", dr = "quoted";
|
|
4370
|
+
function fr(e, t, n = "flow", { indentAtStart: r, lineWidth: i = 80, minContentWidth: a = 20, onFold: o, onOverflow: s } = {}) {
|
|
4565
4371
|
if (!i || i < 0) return e;
|
|
4566
4372
|
i < a && (a = 0);
|
|
4567
4373
|
let c = Math.max(1 + a, 1 + i - t.length);
|
|
@@ -4569,7 +4375,7 @@ function pr(e, t, n = "flow", { indentAtStart: r, lineWidth: i = 80, minContentW
|
|
|
4569
4375
|
let l = [], u = {}, d = i - t.length;
|
|
4570
4376
|
typeof r == "number" && (r > i - Math.max(2, a) ? l.push(0) : d = i - r);
|
|
4571
4377
|
let f, p, m = !1, h = -1, g = -1, _ = -1;
|
|
4572
|
-
n === "block" && (h =
|
|
4378
|
+
n === "block" && (h = pr(e, h, t.length), h !== -1 && (d = h + c));
|
|
4573
4379
|
for (let r; r = e[h += 1];) {
|
|
4574
4380
|
if (n === "quoted" && r === "\\") {
|
|
4575
4381
|
switch (g = h, e[h + 1]) {
|
|
@@ -4586,7 +4392,7 @@ function pr(e, t, n = "flow", { indentAtStart: r, lineWidth: i = 80, minContentW
|
|
|
4586
4392
|
}
|
|
4587
4393
|
_ = h;
|
|
4588
4394
|
}
|
|
4589
|
-
if (r === "\n") n === "block" && (h =
|
|
4395
|
+
if (r === "\n") n === "block" && (h = pr(e, h, t.length)), d = h + t.length + c, f = void 0;
|
|
4590
4396
|
else {
|
|
4591
4397
|
if (r === " " && p && p !== " " && p !== "\n" && p !== " ") {
|
|
4592
4398
|
let t = e[h + 1];
|
|
@@ -4613,7 +4419,7 @@ function pr(e, t, n = "flow", { indentAtStart: r, lineWidth: i = 80, minContentW
|
|
|
4613
4419
|
}
|
|
4614
4420
|
return v;
|
|
4615
4421
|
}
|
|
4616
|
-
function
|
|
4422
|
+
function pr(e, t, n) {
|
|
4617
4423
|
let r = t, i = t + 1, a = e[i];
|
|
4618
4424
|
for (; a === " " || a === " ";) if (t < i + n) a = e[++t];
|
|
4619
4425
|
else {
|
|
@@ -4626,12 +4432,12 @@ function mr(e, t, n) {
|
|
|
4626
4432
|
}
|
|
4627
4433
|
//#endregion
|
|
4628
4434
|
//#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/stringify/stringifyString.js
|
|
4629
|
-
var
|
|
4435
|
+
var mr = (e, t) => ({
|
|
4630
4436
|
indentAtStart: t ? e.indent.length : e.indentAtStart,
|
|
4631
4437
|
lineWidth: e.options.lineWidth,
|
|
4632
4438
|
minContentWidth: e.options.minContentWidth
|
|
4633
|
-
}),
|
|
4634
|
-
function
|
|
4439
|
+
}), hr = (e) => /^(%|---|\.\.\.)/m.test(e);
|
|
4440
|
+
function gr(e, t, n) {
|
|
4635
4441
|
if (!t || t < 0) return !1;
|
|
4636
4442
|
let r = t - n, i = e.length;
|
|
4637
4443
|
if (i <= r) return !1;
|
|
@@ -4641,10 +4447,10 @@ function _r(e, t, n) {
|
|
|
4641
4447
|
}
|
|
4642
4448
|
return !0;
|
|
4643
4449
|
}
|
|
4644
|
-
function
|
|
4450
|
+
function _r(e, t) {
|
|
4645
4451
|
let n = JSON.stringify(e);
|
|
4646
4452
|
if (t.options.doubleQuotedAsJSON) return n;
|
|
4647
|
-
let { implicitKey: r } = t, i = t.options.doubleQuotedMinMultiLineLength, a = t.indent || (
|
|
4453
|
+
let { implicitKey: r } = t, i = t.options.doubleQuotedMinMultiLineLength, a = t.indent || (hr(e) ? " " : ""), o = "", s = 0;
|
|
4648
4454
|
for (let e = 0, t = n[e]; t; t = n[++e]) if (t === " " && n[e + 1] === "\\" && n[e + 2] === "n" && (o += n.slice(s, e) + "\\ ", e += 1, s = e, t = "\\"), t === "\\") switch (n[e + 1]) {
|
|
4649
4455
|
case "u":
|
|
4650
4456
|
{
|
|
@@ -4689,32 +4495,32 @@ function vr(e, t) {
|
|
|
4689
4495
|
break;
|
|
4690
4496
|
default: e += 1;
|
|
4691
4497
|
}
|
|
4692
|
-
return o = s ? o + n.slice(s) : n, r ? o :
|
|
4498
|
+
return o = s ? o + n.slice(s) : n, r ? o : fr(o, a, dr, mr(t, !1));
|
|
4693
4499
|
}
|
|
4694
|
-
function
|
|
4695
|
-
if (t.options.singleQuote === !1 || t.implicitKey && e.includes("\n") || /[ \t]\n|\n[ \t]/.test(e)) return
|
|
4696
|
-
let n = t.indent || (
|
|
4697
|
-
return t.implicitKey ? r :
|
|
4500
|
+
function vr(e, t) {
|
|
4501
|
+
if (t.options.singleQuote === !1 || t.implicitKey && e.includes("\n") || /[ \t]\n|\n[ \t]/.test(e)) return _r(e, t);
|
|
4502
|
+
let n = t.indent || (hr(e) ? " " : ""), r = "'" + e.replace(/'/g, "''").replace(/\n+/g, `$&\n${n}`) + "'";
|
|
4503
|
+
return t.implicitKey ? r : fr(r, n, lr, mr(t, !1));
|
|
4698
4504
|
}
|
|
4699
|
-
function
|
|
4505
|
+
function yr(e, t) {
|
|
4700
4506
|
let { singleQuote: n } = t.options, r;
|
|
4701
|
-
if (n === !1) r =
|
|
4507
|
+
if (n === !1) r = _r;
|
|
4702
4508
|
else {
|
|
4703
4509
|
let t = e.includes("\""), i = e.includes("'");
|
|
4704
|
-
r = t && !i ?
|
|
4510
|
+
r = t && !i ? vr : i && !t ? _r : n ? vr : _r;
|
|
4705
4511
|
}
|
|
4706
4512
|
return r(e, t);
|
|
4707
4513
|
}
|
|
4708
|
-
var
|
|
4514
|
+
var br;
|
|
4709
4515
|
try {
|
|
4710
|
-
|
|
4516
|
+
br = /* @__PURE__ */ RegExp("(^|(?<!\n))\n+(?!\n|$)", "g");
|
|
4711
4517
|
} catch {
|
|
4712
|
-
|
|
4518
|
+
br = /\n+(?!\n|$)/g;
|
|
4713
4519
|
}
|
|
4714
|
-
function
|
|
4520
|
+
function xr({ comment: e, type: t, value: n }, r, i, a) {
|
|
4715
4521
|
let { blockQuote: o, commentString: s, lineWidth: c } = r.options;
|
|
4716
|
-
if (!o || /\n[\t ]+$/.test(n)) return
|
|
4717
|
-
let l = r.indent || (r.forceBlockIndent ||
|
|
4522
|
+
if (!o || /\n[\t ]+$/.test(n)) return yr(n, r);
|
|
4523
|
+
let l = r.indent || (r.forceBlockIndent || hr(n) ? " " : ""), u = o === "literal" ? !0 : o === "folded" || t === Y.BLOCK_FOLDED ? !1 : t === Y.BLOCK_LITERAL || !gr(n, c, l.length);
|
|
4718
4524
|
if (!n) return u ? "|\n" : ">\n";
|
|
4719
4525
|
let d, f;
|
|
4720
4526
|
for (f = n.length; f > 0; --f) {
|
|
@@ -4722,7 +4528,7 @@ function Sr({ comment: e, type: t, value: n }, r, i, a) {
|
|
|
4722
4528
|
if (e !== "\n" && e !== " " && e !== " ") break;
|
|
4723
4529
|
}
|
|
4724
4530
|
let p = n.substring(f), m = p.indexOf("\n");
|
|
4725
|
-
m === -1 ? d = "-" : n === p || m !== p.length - 1 ? (d = "+", a && a()) : d = "", p &&= (n = n.slice(0, -p.length), p[p.length - 1] === "\n" && (p = p.slice(0, -1)), p.replace(
|
|
4531
|
+
m === -1 ? d = "-" : n === p || m !== p.length - 1 ? (d = "+", a && a()) : d = "", p &&= (n = n.slice(0, -p.length), p[p.length - 1] === "\n" && (p = p.slice(0, -1)), p.replace(br, `$&${l}`));
|
|
4726
4532
|
let h = !1, g, _ = -1;
|
|
4727
4533
|
for (g = 0; g < n.length; ++g) {
|
|
4728
4534
|
let e = n[g];
|
|
@@ -4734,41 +4540,41 @@ function Sr({ comment: e, type: t, value: n }, r, i, a) {
|
|
|
4734
4540
|
v &&= (n = n.substring(v.length), v.replace(/\n+/g, `$&${l}`));
|
|
4735
4541
|
let y = (h ? l ? "2" : "1" : "") + d;
|
|
4736
4542
|
if (e && (y += " " + s(e.replace(/ ?[\r\n]+/g, " ")), i && i()), !u) {
|
|
4737
|
-
let e = n.replace(/\n+/g, "\n$&").replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g, "$1$2").replace(/\n+/g, `$&${l}`), i = !1, a =
|
|
4543
|
+
let e = n.replace(/\n+/g, "\n$&").replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g, "$1$2").replace(/\n+/g, `$&${l}`), i = !1, a = mr(r, !0);
|
|
4738
4544
|
o !== "folded" && t !== Y.BLOCK_FOLDED && (a.onOverflow = () => {
|
|
4739
4545
|
i = !0;
|
|
4740
4546
|
});
|
|
4741
|
-
let s =
|
|
4547
|
+
let s = fr(`${v}${e}${p}`, l, ur, a);
|
|
4742
4548
|
if (!i) return `>${y}\n${l}${s}`;
|
|
4743
4549
|
}
|
|
4744
4550
|
return n = n.replace(/\n+/g, `$&${l}`), `|${y}\n${l}${v}${n}${p}`;
|
|
4745
4551
|
}
|
|
4746
|
-
function
|
|
4552
|
+
function Sr(e, t, n, r) {
|
|
4747
4553
|
let { type: i, value: a } = e, { actualString: o, implicitKey: s, indent: c, indentStep: l, inFlow: u } = t;
|
|
4748
|
-
if (s && a.includes("\n") || u && /[[\]{},]/.test(a)) return
|
|
4749
|
-
if (/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(a)) return s || u || !a.includes("\n") ?
|
|
4750
|
-
if (!s && !u && i !== Y.PLAIN && a.includes("\n")) return
|
|
4751
|
-
if (
|
|
4752
|
-
if (c === "") return t.forceBlockIndent = !0,
|
|
4753
|
-
if (s && c === l) return
|
|
4554
|
+
if (s && a.includes("\n") || u && /[[\]{},]/.test(a)) return yr(a, t);
|
|
4555
|
+
if (/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(a)) return s || u || !a.includes("\n") ? yr(a, t) : xr(e, t, n, r);
|
|
4556
|
+
if (!s && !u && i !== Y.PLAIN && a.includes("\n")) return xr(e, t, n, r);
|
|
4557
|
+
if (hr(a)) {
|
|
4558
|
+
if (c === "") return t.forceBlockIndent = !0, xr(e, t, n, r);
|
|
4559
|
+
if (s && c === l) return yr(a, t);
|
|
4754
4560
|
}
|
|
4755
4561
|
let d = a.replace(/\n+/g, `$&\n${c}`);
|
|
4756
4562
|
if (o) {
|
|
4757
4563
|
let e = (e) => e.default && e.tag !== "tag:yaml.org,2002:str" && e.test?.test(d), { compat: n, tags: r } = t.doc.schema;
|
|
4758
|
-
if (r.some(e) || n?.some(e)) return
|
|
4564
|
+
if (r.some(e) || n?.some(e)) return yr(a, t);
|
|
4759
4565
|
}
|
|
4760
|
-
return s ? d :
|
|
4566
|
+
return s ? d : fr(d, c, lr, mr(t, !1));
|
|
4761
4567
|
}
|
|
4762
|
-
function
|
|
4568
|
+
function Cr(e, t, n, r) {
|
|
4763
4569
|
let { implicitKey: i, inFlow: a } = t, o = typeof e.value == "string" ? e : Object.assign({}, e, { value: String(e.value) }), { type: s } = e;
|
|
4764
4570
|
s !== Y.QUOTE_DOUBLE && /[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(o.value) && (s = Y.QUOTE_DOUBLE);
|
|
4765
4571
|
let c = (e) => {
|
|
4766
4572
|
switch (e) {
|
|
4767
4573
|
case Y.BLOCK_FOLDED:
|
|
4768
|
-
case Y.BLOCK_LITERAL: return i || a ?
|
|
4769
|
-
case Y.QUOTE_DOUBLE: return
|
|
4770
|
-
case Y.QUOTE_SINGLE: return
|
|
4771
|
-
case Y.PLAIN: return
|
|
4574
|
+
case Y.BLOCK_LITERAL: return i || a ? yr(o.value, t) : xr(o, t, n, r);
|
|
4575
|
+
case Y.QUOTE_DOUBLE: return _r(o.value, t);
|
|
4576
|
+
case Y.QUOTE_SINGLE: return vr(o.value, t);
|
|
4577
|
+
case Y.PLAIN: return Sr(o, t, n, r);
|
|
4772
4578
|
default: return null;
|
|
4773
4579
|
}
|
|
4774
4580
|
}, l = c(s);
|
|
@@ -4780,10 +4586,10 @@ function wr(e, t, n, r) {
|
|
|
4780
4586
|
}
|
|
4781
4587
|
//#endregion
|
|
4782
4588
|
//#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/stringify/stringify.js
|
|
4783
|
-
function
|
|
4589
|
+
function wr(e, t) {
|
|
4784
4590
|
let n = Object.assign({
|
|
4785
4591
|
blockQuote: !0,
|
|
4786
|
-
commentString:
|
|
4592
|
+
commentString: or,
|
|
4787
4593
|
defaultKeyType: null,
|
|
4788
4594
|
defaultStringType: "PLAIN",
|
|
4789
4595
|
directives: null,
|
|
@@ -4820,7 +4626,7 @@ function Tr(e, t) {
|
|
|
4820
4626
|
options: n
|
|
4821
4627
|
};
|
|
4822
4628
|
}
|
|
4823
|
-
function
|
|
4629
|
+
function Tr(e, t) {
|
|
4824
4630
|
if (t.tag) {
|
|
4825
4631
|
let n = e.filter((e) => e.tag === t.tag);
|
|
4826
4632
|
if (n.length > 0) return n.find((e) => e.format === t.format) ?? n[0];
|
|
@@ -4841,30 +4647,30 @@ function Er(e, t) {
|
|
|
4841
4647
|
}
|
|
4842
4648
|
return n;
|
|
4843
4649
|
}
|
|
4844
|
-
function
|
|
4650
|
+
function Er(e, t, { anchors: n, doc: r }) {
|
|
4845
4651
|
if (!r.directives) return "";
|
|
4846
4652
|
let i = [], a = (W(e) || G(e)) && e.anchor;
|
|
4847
|
-
a &&
|
|
4653
|
+
a && Gn(a) && (n.add(a), i.push(`&${a}`));
|
|
4848
4654
|
let o = e.tag ?? (t.default ? null : t.tag);
|
|
4849
4655
|
return o && i.push(r.directives.tagString(o)), i.join(" ");
|
|
4850
4656
|
}
|
|
4851
|
-
function
|
|
4657
|
+
function Dr(e, t, n, r) {
|
|
4852
4658
|
if (U(e)) return e.toString(t, n, r);
|
|
4853
|
-
if (
|
|
4659
|
+
if (On(e)) {
|
|
4854
4660
|
if (t.doc.directives) return e.toString(t);
|
|
4855
4661
|
if (t.resolvedAliases?.has(e)) throw TypeError("Cannot stringify circular structure without alias nodes");
|
|
4856
4662
|
t.resolvedAliases ? t.resolvedAliases.add(e) : t.resolvedAliases = /* @__PURE__ */ new Set([e]), e = e.resolve(t.doc);
|
|
4857
4663
|
}
|
|
4858
4664
|
let i, a = K(e) ? e : t.doc.createNode(e, { onTagObj: (e) => i = e });
|
|
4859
|
-
i ??=
|
|
4860
|
-
let o =
|
|
4665
|
+
i ??= Tr(t.doc.schema.tags, a);
|
|
4666
|
+
let o = Er(a, i, t);
|
|
4861
4667
|
o.length > 0 && (t.indentAtStart = (t.indentAtStart ?? 0) + o.length + 1);
|
|
4862
|
-
let s = typeof i.stringify == "function" ? i.stringify(a, t, n, r) : W(a) ?
|
|
4668
|
+
let s = typeof i.stringify == "function" ? i.stringify(a, t, n, r) : W(a) ? Cr(a, t, n, r) : a.toString(t, n, r);
|
|
4863
4669
|
return o ? W(a) || s[0] === "{" || s[0] === "[" ? `${o} ${s}` : `${o}\n${t.indent}${s}` : s;
|
|
4864
4670
|
}
|
|
4865
4671
|
//#endregion
|
|
4866
4672
|
//#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/stringify/stringifyPair.js
|
|
4867
|
-
function
|
|
4673
|
+
function Or({ key: e, value: t }, n, r, i) {
|
|
4868
4674
|
let { allNullValues: a, doc: o, indent: s, indentStep: c, options: { commentString: l, indentSeq: u, simpleKeys: d } } = n, f = K(e) && e.comment || null;
|
|
4869
4675
|
if (d) {
|
|
4870
4676
|
if (f) throw Error("With simple keys, key nodes cannot have comments");
|
|
@@ -4876,22 +4682,22 @@ function kr({ key: e, value: t }, n, r, i) {
|
|
|
4876
4682
|
implicitKey: !p && (d || !a),
|
|
4877
4683
|
indent: s + c
|
|
4878
4684
|
});
|
|
4879
|
-
let m = !1, h = !1, g =
|
|
4685
|
+
let m = !1, h = !1, g = Dr(e, n, () => m = !0, () => h = !0);
|
|
4880
4686
|
if (!p && !n.inFlow && g.length > 1024) {
|
|
4881
4687
|
if (d) throw Error("With simple keys, single line scalar must not span more than 1024 characters");
|
|
4882
4688
|
p = !0;
|
|
4883
4689
|
}
|
|
4884
4690
|
if (n.inFlow) {
|
|
4885
4691
|
if (a || t == null) return m && r && r(), g === "" ? "?" : p ? `? ${g}` : g;
|
|
4886
|
-
} else if (a && !d || t == null && p) return g = `? ${g}`, f && !m ? g +=
|
|
4887
|
-
m && (f = null), p ? (f && (g +=
|
|
4692
|
+
} else if (a && !d || t == null && p) return g = `? ${g}`, f && !m ? g += cr(g, n.indent, l(f)) : h && i && i(), g;
|
|
4693
|
+
m && (f = null), p ? (f && (g += cr(g, n.indent, l(f))), g = `? ${g}\n${s}:`) : (g = `${g}:`, f && (g += cr(g, n.indent, l(f))));
|
|
4888
4694
|
let _, v, y;
|
|
4889
|
-
K(t) ? (_ = !!t.spaceBefore, v = t.commentBefore, y = t.comment) : (_ = !1, v = null, y = null, t && typeof t == "object" && (t = o.createNode(t))), n.implicitKey = !1, !p && !f && W(t) && (n.indentAtStart = g.length + 1), h = !1, !u && c.length >= 2 && !n.inFlow && !p &&
|
|
4890
|
-
let ee = !1, b =
|
|
4695
|
+
K(t) ? (_ = !!t.spaceBefore, v = t.commentBefore, y = t.comment) : (_ = !1, v = null, y = null, t && typeof t == "object" && (t = o.createNode(t))), n.implicitKey = !1, !p && !f && W(t) && (n.indentAtStart = g.length + 1), h = !1, !u && c.length >= 2 && !n.inFlow && !p && jn(t) && !t.flow && !t.tag && !t.anchor && (n.indent = n.indent.substring(2));
|
|
4696
|
+
let ee = !1, b = Dr(t, n, () => ee = !0, () => h = !0), x = " ";
|
|
4891
4697
|
if (f || _ || v) {
|
|
4892
4698
|
if (x = _ ? "\n" : "", v) {
|
|
4893
4699
|
let e = l(v);
|
|
4894
|
-
x += `\n${
|
|
4700
|
+
x += `\n${sr(e, n.indent)}`;
|
|
4895
4701
|
}
|
|
4896
4702
|
b === "" && !n.inFlow ? x === "\n" && y && (x = "\n\n") : x += `\n${n.indent}`;
|
|
4897
4703
|
} else if (!p && G(t)) {
|
|
@@ -4905,32 +4711,32 @@ function kr({ key: e, value: t }, n, r, i) {
|
|
|
4905
4711
|
t || (x = `\n${n.indent}`);
|
|
4906
4712
|
}
|
|
4907
4713
|
} else (b === "" || b[0] === "\n") && (x = "");
|
|
4908
|
-
return g += x + b, n.inFlow ? ee && r && r() : y && !ee ? g +=
|
|
4714
|
+
return g += x + b, n.inFlow ? ee && r && r() : y && !ee ? g += cr(g, n.indent, l(y)) : h && i && i(), g;
|
|
4909
4715
|
}
|
|
4910
4716
|
//#endregion
|
|
4911
4717
|
//#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/log.js
|
|
4912
|
-
function
|
|
4718
|
+
function kr(e, t) {
|
|
4913
4719
|
(e === "debug" || e === "warn") && console.warn(t);
|
|
4914
4720
|
}
|
|
4915
4721
|
//#endregion
|
|
4916
4722
|
//#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/schema/yaml-1.1/merge.js
|
|
4917
|
-
var
|
|
4918
|
-
identify: (e) => e ===
|
|
4723
|
+
var Ar = "<<", jr = {
|
|
4724
|
+
identify: (e) => e === Ar || typeof e == "symbol" && e.description === Ar,
|
|
4919
4725
|
default: "key",
|
|
4920
4726
|
tag: "tag:yaml.org,2002:merge",
|
|
4921
4727
|
test: /^<<$/,
|
|
4922
|
-
resolve: () => Object.assign(new Y(Symbol(
|
|
4923
|
-
stringify: () =>
|
|
4924
|
-
},
|
|
4728
|
+
resolve: () => Object.assign(new Y(Symbol(Ar)), { addToJSMap: Nr }),
|
|
4729
|
+
stringify: () => Ar
|
|
4730
|
+
}, Mr = (e, t) => (jr.identify(t) || W(t) && (!t.type || t.type === Y.PLAIN) && jr.identify(t.value)) && e?.doc.schema.tags.some((e) => e.tag === jr.tag && e.default);
|
|
4731
|
+
function Nr(e, t, n) {
|
|
4732
|
+
let r = Fr(e, n);
|
|
4733
|
+
if (jn(r)) for (let n of r.items) Pr(e, t, n);
|
|
4734
|
+
else if (Array.isArray(r)) for (let n of r) Pr(e, t, n);
|
|
4735
|
+
else Pr(e, t, r);
|
|
4736
|
+
}
|
|
4925
4737
|
function Pr(e, t, n) {
|
|
4926
|
-
let r =
|
|
4927
|
-
if (
|
|
4928
|
-
else if (Array.isArray(r)) for (let n of r) Fr(e, t, n);
|
|
4929
|
-
else Fr(e, t, r);
|
|
4930
|
-
}
|
|
4931
|
-
function Fr(e, t, n) {
|
|
4932
|
-
let r = Ir(e, n);
|
|
4933
|
-
if (!jn(r)) throw Error("Merge sources must be maps or map aliases");
|
|
4738
|
+
let r = Fr(e, n);
|
|
4739
|
+
if (!An(r)) throw Error("Merge sources must be maps or map aliases");
|
|
4934
4740
|
let i = r.toJSON(null, e, Map);
|
|
4935
4741
|
for (let [e, n] of i) t instanceof Map ? t.has(e) || t.set(e, n) : t instanceof Set ? t.add(e) : Object.prototype.hasOwnProperty.call(t, e) || Object.defineProperty(t, e, {
|
|
4936
4742
|
value: n,
|
|
@@ -4940,20 +4746,20 @@ function Fr(e, t, n) {
|
|
|
4940
4746
|
});
|
|
4941
4747
|
return t;
|
|
4942
4748
|
}
|
|
4943
|
-
function
|
|
4944
|
-
return e &&
|
|
4749
|
+
function Fr(e, t) {
|
|
4750
|
+
return e && On(t) ? t.resolve(e.doc, e) : t;
|
|
4945
4751
|
}
|
|
4946
4752
|
//#endregion
|
|
4947
4753
|
//#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/nodes/addPairToJSMap.js
|
|
4948
|
-
function
|
|
4754
|
+
function Ir(e, t, { key: n, value: r }) {
|
|
4949
4755
|
if (K(n) && n.addToJSMap) n.addToJSMap(e, t, r);
|
|
4950
|
-
else if (
|
|
4756
|
+
else if (Mr(e, n)) Nr(e, t, r);
|
|
4951
4757
|
else {
|
|
4952
4758
|
let i = J(n, "", e);
|
|
4953
4759
|
if (t instanceof Map) t.set(i, J(r, i, e));
|
|
4954
4760
|
else if (t instanceof Set) t.add(i);
|
|
4955
4761
|
else {
|
|
4956
|
-
let a =
|
|
4762
|
+
let a = Lr(n, i, e), o = J(r, a, e);
|
|
4957
4763
|
a in t ? Object.defineProperty(t, a, {
|
|
4958
4764
|
value: o,
|
|
4959
4765
|
writable: !0,
|
|
@@ -4964,18 +4770,18 @@ function Lr(e, t, { key: n, value: r }) {
|
|
|
4964
4770
|
}
|
|
4965
4771
|
return t;
|
|
4966
4772
|
}
|
|
4967
|
-
function
|
|
4773
|
+
function Lr(e, t, n) {
|
|
4968
4774
|
if (t === null) return "";
|
|
4969
4775
|
if (typeof t != "object") return String(t);
|
|
4970
4776
|
if (K(e) && n?.doc) {
|
|
4971
|
-
let t =
|
|
4777
|
+
let t = wr(n.doc, {});
|
|
4972
4778
|
t.anchors = /* @__PURE__ */ new Set();
|
|
4973
4779
|
for (let e of n.anchors.keys()) t.anchors.add(e.anchor);
|
|
4974
4780
|
t.inFlow = !0, t.inStringifyKey = !0;
|
|
4975
4781
|
let r = e.toString(t);
|
|
4976
4782
|
if (!n.mapKeyWarned) {
|
|
4977
4783
|
let e = JSON.stringify(r);
|
|
4978
|
-
e.length > 40 && (e = e.substring(0, 36) + "...\""),
|
|
4784
|
+
e.length > 40 && (e = e.substring(0, 36) + "...\""), kr(n.doc.options.logLevel, `Keys with collection values will be stringified due to JS Object restrictions: ${e}. Set mapAsMap: true to use object keys.`), n.mapKeyWarned = !0;
|
|
4979
4785
|
}
|
|
4980
4786
|
return r;
|
|
4981
4787
|
}
|
|
@@ -4983,44 +4789,44 @@ function Rr(e, t, n) {
|
|
|
4983
4789
|
}
|
|
4984
4790
|
//#endregion
|
|
4985
4791
|
//#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/nodes/Pair.js
|
|
4986
|
-
function
|
|
4987
|
-
return new X(
|
|
4792
|
+
function Rr(e, t, n) {
|
|
4793
|
+
return new X(nr(e, void 0, n), nr(t, void 0, n));
|
|
4988
4794
|
}
|
|
4989
4795
|
var X = class e {
|
|
4990
4796
|
constructor(e, t = null) {
|
|
4991
|
-
Object.defineProperty(this, H, { value:
|
|
4797
|
+
Object.defineProperty(this, H, { value: Tn }), this.key = e, this.value = t;
|
|
4992
4798
|
}
|
|
4993
4799
|
clone(t) {
|
|
4994
4800
|
let { key: n, value: r } = this;
|
|
4995
4801
|
return K(n) && (n = n.clone(t)), K(r) && (r = r.clone(t)), new e(n, r);
|
|
4996
4802
|
}
|
|
4997
4803
|
toJSON(e, t) {
|
|
4998
|
-
return
|
|
4804
|
+
return Ir(t, t?.mapAsMap ? /* @__PURE__ */ new Map() : {}, this);
|
|
4999
4805
|
}
|
|
5000
4806
|
toString(e, t, n) {
|
|
5001
|
-
return e?.doc ?
|
|
4807
|
+
return e?.doc ? Or(this, e, t, n) : JSON.stringify(this);
|
|
5002
4808
|
}
|
|
5003
4809
|
};
|
|
5004
4810
|
//#endregion
|
|
5005
4811
|
//#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/stringify/stringifyCollection.js
|
|
5006
|
-
function
|
|
5007
|
-
return (t.inFlow ?? e.flow ?
|
|
4812
|
+
function zr(e, t, n) {
|
|
4813
|
+
return (t.inFlow ?? e.flow ? Vr : Br)(e, t, n);
|
|
5008
4814
|
}
|
|
5009
|
-
function
|
|
4815
|
+
function Br({ comment: e, items: t }, n, { blockItemPrefix: r, flowChars: i, itemIndent: a, onChompKeep: o, onComment: s }) {
|
|
5010
4816
|
let { indent: c, options: { commentString: l } } = n, u = Object.assign({}, n, {
|
|
5011
4817
|
indent: a,
|
|
5012
4818
|
type: null
|
|
5013
4819
|
}), d = !1, f = [];
|
|
5014
4820
|
for (let e = 0; e < t.length; ++e) {
|
|
5015
4821
|
let i = t[e], o = null;
|
|
5016
|
-
if (K(i)) !d && i.spaceBefore && f.push(""),
|
|
4822
|
+
if (K(i)) !d && i.spaceBefore && f.push(""), Hr(n, f, i.commentBefore, d), i.comment && (o = i.comment);
|
|
5017
4823
|
else if (U(i)) {
|
|
5018
4824
|
let e = K(i.key) ? i.key : null;
|
|
5019
|
-
e && (!d && e.spaceBefore && f.push(""),
|
|
4825
|
+
e && (!d && e.spaceBefore && f.push(""), Hr(n, f, e.commentBefore, d));
|
|
5020
4826
|
}
|
|
5021
4827
|
d = !1;
|
|
5022
|
-
let s =
|
|
5023
|
-
o && (s +=
|
|
4828
|
+
let s = Dr(i, u, () => o = null, () => d = !0);
|
|
4829
|
+
o && (s += cr(s, a, l(o))), d && o && (d = !1), f.push(r + s);
|
|
5024
4830
|
}
|
|
5025
4831
|
let p;
|
|
5026
4832
|
if (f.length === 0) p = i.start + i.end;
|
|
@@ -5031,9 +4837,9 @@ function Vr({ comment: e, items: t }, n, { blockItemPrefix: r, flowChars: i, ite
|
|
|
5031
4837
|
p += t ? `\n${c}${t}` : "\n";
|
|
5032
4838
|
}
|
|
5033
4839
|
}
|
|
5034
|
-
return e ? (p += "\n" +
|
|
4840
|
+
return e ? (p += "\n" + sr(l(e), c), s && s()) : d && o && o(), p;
|
|
5035
4841
|
}
|
|
5036
|
-
function
|
|
4842
|
+
function Vr({ items: e }, t, { flowChars: n, itemIndent: r }) {
|
|
5037
4843
|
let { indent: i, indentStep: a, flowCollectionPadding: o, options: { commentString: s } } = t;
|
|
5038
4844
|
r += a;
|
|
5039
4845
|
let c = Object.assign({}, t, {
|
|
@@ -5043,16 +4849,16 @@ function Hr({ items: e }, t, { flowChars: n, itemIndent: r }) {
|
|
|
5043
4849
|
}), l = !1, u = 0, d = [];
|
|
5044
4850
|
for (let n = 0; n < e.length; ++n) {
|
|
5045
4851
|
let i = e[n], a = null;
|
|
5046
|
-
if (K(i)) i.spaceBefore && d.push(""),
|
|
4852
|
+
if (K(i)) i.spaceBefore && d.push(""), Hr(t, d, i.commentBefore, !1), i.comment && (a = i.comment);
|
|
5047
4853
|
else if (U(i)) {
|
|
5048
4854
|
let e = K(i.key) ? i.key : null;
|
|
5049
|
-
e && (e.spaceBefore && d.push(""),
|
|
4855
|
+
e && (e.spaceBefore && d.push(""), Hr(t, d, e.commentBefore, !1), e.comment && (l = !0));
|
|
5050
4856
|
let n = K(i.value) ? i.value : null;
|
|
5051
4857
|
n ? (n.comment && (a = n.comment), n.commentBefore && (l = !0)) : i.value == null && e?.comment && (a = e.comment);
|
|
5052
4858
|
}
|
|
5053
4859
|
a && (l = !0);
|
|
5054
|
-
let o =
|
|
5055
|
-
l ||= d.length > u || o.includes("\n"), n < e.length - 1 ? o += "," : t.options.trailingComma && (t.options.lineWidth > 0 && (l ||= d.reduce((e, t) => e + t.length + 2, 2) + (o.length + 2) > t.options.lineWidth), l && (o += ",")), a && (o +=
|
|
4860
|
+
let o = Dr(i, c, () => a = null);
|
|
4861
|
+
l ||= d.length > u || o.includes("\n"), n < e.length - 1 ? o += "," : t.options.trailingComma && (t.options.lineWidth > 0 && (l ||= d.reduce((e, t) => e + t.length + 2, 2) + (o.length + 2) > t.options.lineWidth), l && (o += ",")), a && (o += cr(o, r, s(a))), d.push(o), u = d.length;
|
|
5056
4862
|
}
|
|
5057
4863
|
let { start: f, end: p } = n;
|
|
5058
4864
|
if (d.length === 0) return f + p;
|
|
@@ -5067,30 +4873,30 @@ function Hr({ items: e }, t, { flowChars: n, itemIndent: r }) {
|
|
|
5067
4873
|
}
|
|
5068
4874
|
return `${f}${o}${d.join(" ")}${o}${p}`;
|
|
5069
4875
|
}
|
|
5070
|
-
function
|
|
4876
|
+
function Hr({ indent: e, options: { commentString: t } }, n, r, i) {
|
|
5071
4877
|
if (r && i && (r = r.replace(/^\n+/, "")), r) {
|
|
5072
|
-
let i =
|
|
4878
|
+
let i = sr(t(r), e);
|
|
5073
4879
|
n.push(i.trimStart());
|
|
5074
4880
|
}
|
|
5075
4881
|
}
|
|
5076
4882
|
//#endregion
|
|
5077
4883
|
//#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/nodes/YAMLMap.js
|
|
5078
|
-
function
|
|
4884
|
+
function Ur(e, t) {
|
|
5079
4885
|
let n = W(t) ? t.value : t;
|
|
5080
4886
|
for (let r of e) if (U(r) && (r.key === t || r.key === n || W(r.key) && r.key.value === n)) return r;
|
|
5081
4887
|
}
|
|
5082
|
-
var Z = class extends
|
|
4888
|
+
var Z = class extends ar {
|
|
5083
4889
|
static get tagName() {
|
|
5084
4890
|
return "tag:yaml.org,2002:map";
|
|
5085
4891
|
}
|
|
5086
4892
|
constructor(e) {
|
|
5087
|
-
super(
|
|
4893
|
+
super(wn, e), this.items = [];
|
|
5088
4894
|
}
|
|
5089
4895
|
static from(e, t, n) {
|
|
5090
4896
|
let { keepUndefined: r, replacer: i } = n, a = new this(e), o = (e, o) => {
|
|
5091
4897
|
if (typeof i == "function") o = i.call(t, e, o);
|
|
5092
4898
|
else if (Array.isArray(i) && !i.includes(e)) return;
|
|
5093
|
-
(o !== void 0 || r) && a.items.push(
|
|
4899
|
+
(o !== void 0 || r) && a.items.push(Rr(e, o, n));
|
|
5094
4900
|
};
|
|
5095
4901
|
if (t instanceof Map) for (let [e, n] of t) o(e, n);
|
|
5096
4902
|
else if (t && typeof t == "object") for (let e of Object.keys(t)) o(e, t[e]);
|
|
@@ -5099,25 +4905,25 @@ var Z = class extends or {
|
|
|
5099
4905
|
add(e, t) {
|
|
5100
4906
|
let n;
|
|
5101
4907
|
n = U(e) ? e : !e || typeof e != "object" || !("key" in e) ? new X(e, e?.value) : new X(e.key, e.value);
|
|
5102
|
-
let r =
|
|
4908
|
+
let r = Ur(this.items, n.key), i = this.schema?.sortMapEntries;
|
|
5103
4909
|
if (r) {
|
|
5104
4910
|
if (!t) throw Error(`Key ${n.key} already set`);
|
|
5105
|
-
W(r.value) &&
|
|
4911
|
+
W(r.value) && $n(n.value) ? r.value.value = n.value : r.value = n.value;
|
|
5106
4912
|
} else if (i) {
|
|
5107
4913
|
let e = this.items.findIndex((e) => i(n, e) < 0);
|
|
5108
4914
|
e === -1 ? this.items.push(n) : this.items.splice(e, 0, n);
|
|
5109
4915
|
} else this.items.push(n);
|
|
5110
4916
|
}
|
|
5111
4917
|
delete(e) {
|
|
5112
|
-
let t =
|
|
4918
|
+
let t = Ur(this.items, e);
|
|
5113
4919
|
return t ? this.items.splice(this.items.indexOf(t), 1).length > 0 : !1;
|
|
5114
4920
|
}
|
|
5115
4921
|
get(e, t) {
|
|
5116
|
-
let n =
|
|
4922
|
+
let n = Ur(this.items, e)?.value;
|
|
5117
4923
|
return (!t && W(n) ? n.value : n) ?? void 0;
|
|
5118
4924
|
}
|
|
5119
4925
|
has(e) {
|
|
5120
|
-
return !!
|
|
4926
|
+
return !!Ur(this.items, e);
|
|
5121
4927
|
}
|
|
5122
4928
|
set(e, t) {
|
|
5123
4929
|
this.add(new X(e, t), !0);
|
|
@@ -5125,13 +4931,13 @@ var Z = class extends or {
|
|
|
5125
4931
|
toJSON(e, t, n) {
|
|
5126
4932
|
let r = n ? new n() : t?.mapAsMap ? /* @__PURE__ */ new Map() : {};
|
|
5127
4933
|
t?.onCreate && t.onCreate(r);
|
|
5128
|
-
for (let e of this.items)
|
|
4934
|
+
for (let e of this.items) Ir(t, r, e);
|
|
5129
4935
|
return r;
|
|
5130
4936
|
}
|
|
5131
4937
|
toString(e, t, n) {
|
|
5132
4938
|
if (!e) return JSON.stringify(this);
|
|
5133
4939
|
for (let e of this.items) if (!U(e)) throw Error(`Map items must all be pairs; found ${JSON.stringify(e)} instead`);
|
|
5134
|
-
return !e.allNullValues && this.hasAllNullValues(!1) && (e = Object.assign({}, e, { allNullValues: !0 })),
|
|
4940
|
+
return !e.allNullValues && this.hasAllNullValues(!1) && (e = Object.assign({}, e, { allNullValues: !0 })), zr(this, e, {
|
|
5135
4941
|
blockItemPrefix: "",
|
|
5136
4942
|
flowChars: {
|
|
5137
4943
|
start: "{",
|
|
@@ -5142,44 +4948,44 @@ var Z = class extends or {
|
|
|
5142
4948
|
onComment: t
|
|
5143
4949
|
});
|
|
5144
4950
|
}
|
|
5145
|
-
},
|
|
4951
|
+
}, Wr = {
|
|
5146
4952
|
collection: "map",
|
|
5147
4953
|
default: !0,
|
|
5148
4954
|
nodeClass: Z,
|
|
5149
4955
|
tag: "tag:yaml.org,2002:map",
|
|
5150
4956
|
resolve(e, t) {
|
|
5151
|
-
return
|
|
4957
|
+
return An(e) || t("Expected a mapping for this tag"), e;
|
|
5152
4958
|
},
|
|
5153
4959
|
createNode: (e, t, n) => Z.from(e, t, n)
|
|
5154
|
-
},
|
|
4960
|
+
}, Gr = class extends ar {
|
|
5155
4961
|
static get tagName() {
|
|
5156
4962
|
return "tag:yaml.org,2002:seq";
|
|
5157
4963
|
}
|
|
5158
4964
|
constructor(e) {
|
|
5159
|
-
super(
|
|
4965
|
+
super(Dn, e), this.items = [];
|
|
5160
4966
|
}
|
|
5161
4967
|
add(e) {
|
|
5162
4968
|
this.items.push(e);
|
|
5163
4969
|
}
|
|
5164
4970
|
delete(e) {
|
|
5165
|
-
let t =
|
|
4971
|
+
let t = Kr(e);
|
|
5166
4972
|
return typeof t == "number" && this.items.splice(t, 1).length > 0;
|
|
5167
4973
|
}
|
|
5168
4974
|
get(e, t) {
|
|
5169
|
-
let n =
|
|
4975
|
+
let n = Kr(e);
|
|
5170
4976
|
if (typeof n != "number") return;
|
|
5171
4977
|
let r = this.items[n];
|
|
5172
4978
|
return !t && W(r) ? r.value : r;
|
|
5173
4979
|
}
|
|
5174
4980
|
has(e) {
|
|
5175
|
-
let t =
|
|
4981
|
+
let t = Kr(e);
|
|
5176
4982
|
return typeof t == "number" && t < this.items.length;
|
|
5177
4983
|
}
|
|
5178
4984
|
set(e, t) {
|
|
5179
|
-
let n =
|
|
4985
|
+
let n = Kr(e);
|
|
5180
4986
|
if (typeof n != "number") throw Error(`Expected a valid index, not ${e}.`);
|
|
5181
4987
|
let r = this.items[n];
|
|
5182
|
-
W(r) &&
|
|
4988
|
+
W(r) && $n(t) ? r.value = t : this.items[n] = t;
|
|
5183
4989
|
}
|
|
5184
4990
|
toJSON(e, t) {
|
|
5185
4991
|
let n = [];
|
|
@@ -5189,7 +4995,7 @@ var Z = class extends or {
|
|
|
5189
4995
|
return n;
|
|
5190
4996
|
}
|
|
5191
4997
|
toString(e, t, n) {
|
|
5192
|
-
return e ?
|
|
4998
|
+
return e ? zr(this, e, {
|
|
5193
4999
|
blockItemPrefix: "- ",
|
|
5194
5000
|
flowChars: {
|
|
5195
5001
|
start: "[",
|
|
@@ -5209,51 +5015,51 @@ var Z = class extends or {
|
|
|
5209
5015
|
let n = t instanceof Set ? a : String(e++);
|
|
5210
5016
|
a = r.call(t, n, a);
|
|
5211
5017
|
}
|
|
5212
|
-
i.items.push(
|
|
5018
|
+
i.items.push(nr(a, void 0, n));
|
|
5213
5019
|
}
|
|
5214
5020
|
}
|
|
5215
5021
|
return i;
|
|
5216
5022
|
}
|
|
5217
5023
|
};
|
|
5218
|
-
function
|
|
5024
|
+
function Kr(e) {
|
|
5219
5025
|
let t = W(e) ? e.value : e;
|
|
5220
5026
|
return t && typeof t == "string" && (t = Number(t)), typeof t == "number" && Number.isInteger(t) && t >= 0 ? t : null;
|
|
5221
5027
|
}
|
|
5222
5028
|
//#endregion
|
|
5223
5029
|
//#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/schema/common/seq.js
|
|
5224
|
-
var
|
|
5030
|
+
var qr = {
|
|
5225
5031
|
collection: "seq",
|
|
5226
5032
|
default: !0,
|
|
5227
|
-
nodeClass:
|
|
5033
|
+
nodeClass: Gr,
|
|
5228
5034
|
tag: "tag:yaml.org,2002:seq",
|
|
5229
5035
|
resolve(e, t) {
|
|
5230
|
-
return
|
|
5036
|
+
return jn(e) || t("Expected a sequence for this tag"), e;
|
|
5231
5037
|
},
|
|
5232
|
-
createNode: (e, t, n) =>
|
|
5233
|
-
},
|
|
5038
|
+
createNode: (e, t, n) => Gr.from(e, t, n)
|
|
5039
|
+
}, Jr = {
|
|
5234
5040
|
identify: (e) => typeof e == "string",
|
|
5235
5041
|
default: !0,
|
|
5236
5042
|
tag: "tag:yaml.org,2002:str",
|
|
5237
5043
|
resolve: (e) => e,
|
|
5238
5044
|
stringify(e, t, n, r) {
|
|
5239
|
-
return t = Object.assign({ actualString: !0 }, t),
|
|
5045
|
+
return t = Object.assign({ actualString: !0 }, t), Cr(e, t, n, r);
|
|
5240
5046
|
}
|
|
5241
|
-
},
|
|
5047
|
+
}, Yr = {
|
|
5242
5048
|
identify: (e) => e == null,
|
|
5243
5049
|
createNode: () => new Y(null),
|
|
5244
5050
|
default: !0,
|
|
5245
5051
|
tag: "tag:yaml.org,2002:null",
|
|
5246
5052
|
test: /^(?:~|[Nn]ull|NULL)?$/,
|
|
5247
5053
|
resolve: () => new Y(null),
|
|
5248
|
-
stringify: ({ source: e }, t) => typeof e == "string" &&
|
|
5249
|
-
},
|
|
5054
|
+
stringify: ({ source: e }, t) => typeof e == "string" && Yr.test.test(e) ? e : t.options.nullStr
|
|
5055
|
+
}, Xr = {
|
|
5250
5056
|
identify: (e) => typeof e == "boolean",
|
|
5251
5057
|
default: !0,
|
|
5252
5058
|
tag: "tag:yaml.org,2002:bool",
|
|
5253
5059
|
test: /^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,
|
|
5254
5060
|
resolve: (e) => new Y(e[0] === "t" || e[0] === "T"),
|
|
5255
5061
|
stringify({ source: e, value: t }, n) {
|
|
5256
|
-
return e &&
|
|
5062
|
+
return e && Xr.test.test(e) && t === (e[0] === "t" || e[0] === "T") ? e : t ? n.options.trueStr : n.options.falseStr;
|
|
5257
5063
|
}
|
|
5258
5064
|
};
|
|
5259
5065
|
//#endregion
|
|
@@ -5273,14 +5079,14 @@ function Q({ format: e, minFractionDigits: t, tag: n, value: r }) {
|
|
|
5273
5079
|
}
|
|
5274
5080
|
//#endregion
|
|
5275
5081
|
//#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/schema/core/float.js
|
|
5276
|
-
var
|
|
5082
|
+
var Zr = {
|
|
5277
5083
|
identify: (e) => typeof e == "number",
|
|
5278
5084
|
default: !0,
|
|
5279
5085
|
tag: "tag:yaml.org,2002:float",
|
|
5280
5086
|
test: /^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,
|
|
5281
5087
|
resolve: (e) => e.slice(-3).toLowerCase() === "nan" ? NaN : e[0] === "-" ? -Infinity : Infinity,
|
|
5282
5088
|
stringify: Q
|
|
5283
|
-
},
|
|
5089
|
+
}, Qr = {
|
|
5284
5090
|
identify: (e) => typeof e == "number",
|
|
5285
5091
|
default: !0,
|
|
5286
5092
|
tag: "tag:yaml.org,2002:float",
|
|
@@ -5291,7 +5097,7 @@ var Qr = {
|
|
|
5291
5097
|
let t = Number(e.value);
|
|
5292
5098
|
return isFinite(t) ? t.toExponential() : Q(e);
|
|
5293
5099
|
}
|
|
5294
|
-
},
|
|
5100
|
+
}, $r = {
|
|
5295
5101
|
identify: (e) => typeof e == "number",
|
|
5296
5102
|
default: !0,
|
|
5297
5103
|
tag: "tag:yaml.org,2002:float",
|
|
@@ -5301,59 +5107,59 @@ var Qr = {
|
|
|
5301
5107
|
return n !== -1 && e[e.length - 1] === "0" && (t.minFractionDigits = e.length - n - 1), t;
|
|
5302
5108
|
},
|
|
5303
5109
|
stringify: Q
|
|
5304
|
-
},
|
|
5305
|
-
function
|
|
5110
|
+
}, ei = (e) => typeof e == "bigint" || Number.isInteger(e), ti = (e, t, n, { intAsBigInt: r }) => r ? BigInt(e) : parseInt(e.substring(t), n);
|
|
5111
|
+
function ni(e, t, n) {
|
|
5306
5112
|
let { value: r } = e;
|
|
5307
|
-
return
|
|
5113
|
+
return ei(r) && r >= 0 ? n + r.toString(t) : Q(e);
|
|
5308
5114
|
}
|
|
5309
|
-
var
|
|
5310
|
-
identify: (e) =>
|
|
5115
|
+
var ri = {
|
|
5116
|
+
identify: (e) => ei(e) && e >= 0,
|
|
5311
5117
|
default: !0,
|
|
5312
5118
|
tag: "tag:yaml.org,2002:int",
|
|
5313
5119
|
format: "OCT",
|
|
5314
5120
|
test: /^0o[0-7]+$/,
|
|
5315
|
-
resolve: (e, t, n) =>
|
|
5316
|
-
stringify: (e) =>
|
|
5317
|
-
},
|
|
5318
|
-
identify:
|
|
5121
|
+
resolve: (e, t, n) => ti(e, 2, 8, n),
|
|
5122
|
+
stringify: (e) => ni(e, 8, "0o")
|
|
5123
|
+
}, ii = {
|
|
5124
|
+
identify: ei,
|
|
5319
5125
|
default: !0,
|
|
5320
5126
|
tag: "tag:yaml.org,2002:int",
|
|
5321
5127
|
test: /^[-+]?[0-9]+$/,
|
|
5322
|
-
resolve: (e, t, n) =>
|
|
5128
|
+
resolve: (e, t, n) => ti(e, 0, 10, n),
|
|
5323
5129
|
stringify: Q
|
|
5324
|
-
},
|
|
5325
|
-
identify: (e) =>
|
|
5130
|
+
}, ai = {
|
|
5131
|
+
identify: (e) => ei(e) && e >= 0,
|
|
5326
5132
|
default: !0,
|
|
5327
5133
|
tag: "tag:yaml.org,2002:int",
|
|
5328
5134
|
format: "HEX",
|
|
5329
5135
|
test: /^0x[0-9a-fA-F]+$/,
|
|
5330
|
-
resolve: (e, t, n) =>
|
|
5331
|
-
stringify: (e) =>
|
|
5332
|
-
},
|
|
5333
|
-
|
|
5136
|
+
resolve: (e, t, n) => ti(e, 2, 16, n),
|
|
5137
|
+
stringify: (e) => ni(e, 16, "0x")
|
|
5138
|
+
}, oi = [
|
|
5139
|
+
Wr,
|
|
5140
|
+
qr,
|
|
5334
5141
|
Jr,
|
|
5335
5142
|
Yr,
|
|
5336
5143
|
Xr,
|
|
5337
|
-
|
|
5144
|
+
ri,
|
|
5338
5145
|
ii,
|
|
5339
5146
|
ai,
|
|
5340
|
-
|
|
5147
|
+
Zr,
|
|
5341
5148
|
Qr,
|
|
5342
|
-
$r
|
|
5343
|
-
ei
|
|
5149
|
+
$r
|
|
5344
5150
|
];
|
|
5345
5151
|
//#endregion
|
|
5346
5152
|
//#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/schema/json/schema.js
|
|
5347
|
-
function
|
|
5153
|
+
function si(e) {
|
|
5348
5154
|
return typeof e == "bigint" || Number.isInteger(e);
|
|
5349
5155
|
}
|
|
5350
|
-
var
|
|
5156
|
+
var ci = ({ value: e }) => JSON.stringify(e), li = [
|
|
5351
5157
|
{
|
|
5352
5158
|
identify: (e) => typeof e == "string",
|
|
5353
5159
|
default: !0,
|
|
5354
5160
|
tag: "tag:yaml.org,2002:str",
|
|
5355
5161
|
resolve: (e) => e,
|
|
5356
|
-
stringify:
|
|
5162
|
+
stringify: ci
|
|
5357
5163
|
},
|
|
5358
5164
|
{
|
|
5359
5165
|
identify: (e) => e == null,
|
|
@@ -5362,7 +5168,7 @@ var li = ({ value: e }) => JSON.stringify(e), ui = [
|
|
|
5362
5168
|
tag: "tag:yaml.org,2002:null",
|
|
5363
5169
|
test: /^null$/,
|
|
5364
5170
|
resolve: () => null,
|
|
5365
|
-
stringify:
|
|
5171
|
+
stringify: ci
|
|
5366
5172
|
},
|
|
5367
5173
|
{
|
|
5368
5174
|
identify: (e) => typeof e == "boolean",
|
|
@@ -5370,15 +5176,15 @@ var li = ({ value: e }) => JSON.stringify(e), ui = [
|
|
|
5370
5176
|
tag: "tag:yaml.org,2002:bool",
|
|
5371
5177
|
test: /^true$|^false$/,
|
|
5372
5178
|
resolve: (e) => e === "true",
|
|
5373
|
-
stringify:
|
|
5179
|
+
stringify: ci
|
|
5374
5180
|
},
|
|
5375
5181
|
{
|
|
5376
|
-
identify:
|
|
5182
|
+
identify: si,
|
|
5377
5183
|
default: !0,
|
|
5378
5184
|
tag: "tag:yaml.org,2002:int",
|
|
5379
5185
|
test: /^-?(?:0|[1-9][0-9]*)$/,
|
|
5380
5186
|
resolve: (e, t, { intAsBigInt: n }) => n ? BigInt(e) : parseInt(e, 10),
|
|
5381
|
-
stringify: ({ value: e }) =>
|
|
5187
|
+
stringify: ({ value: e }) => si(e) ? e.toString() : JSON.stringify(e)
|
|
5382
5188
|
},
|
|
5383
5189
|
{
|
|
5384
5190
|
identify: (e) => typeof e == "number",
|
|
@@ -5386,16 +5192,16 @@ var li = ({ value: e }) => JSON.stringify(e), ui = [
|
|
|
5386
5192
|
tag: "tag:yaml.org,2002:float",
|
|
5387
5193
|
test: /^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,
|
|
5388
5194
|
resolve: (e) => parseFloat(e),
|
|
5389
|
-
stringify:
|
|
5195
|
+
stringify: ci
|
|
5390
5196
|
}
|
|
5391
|
-
],
|
|
5197
|
+
], ui = [Wr, qr].concat(li, {
|
|
5392
5198
|
default: !0,
|
|
5393
5199
|
tag: "",
|
|
5394
5200
|
test: /^/,
|
|
5395
5201
|
resolve(e, t) {
|
|
5396
5202
|
return t(`Unresolved plain scalar ${JSON.stringify(e)}`), e;
|
|
5397
5203
|
}
|
|
5398
|
-
}),
|
|
5204
|
+
}), di = {
|
|
5399
5205
|
identify: (e) => e instanceof Uint8Array,
|
|
5400
5206
|
default: !1,
|
|
5401
5207
|
tag: "tag:yaml.org,2002:binary",
|
|
@@ -5420,7 +5226,7 @@ var li = ({ value: e }) => JSON.stringify(e), ui = [
|
|
|
5420
5226
|
for (let t = 0, r = 0; t < n; ++t, r += e) i[t] = s.substr(r, e);
|
|
5421
5227
|
s = i.join(t === Y.BLOCK_LITERAL ? "\n" : " ");
|
|
5422
5228
|
}
|
|
5423
|
-
return
|
|
5229
|
+
return Cr({
|
|
5424
5230
|
comment: e,
|
|
5425
5231
|
type: t,
|
|
5426
5232
|
value: s
|
|
@@ -5429,11 +5235,11 @@ var li = ({ value: e }) => JSON.stringify(e), ui = [
|
|
|
5429
5235
|
};
|
|
5430
5236
|
//#endregion
|
|
5431
5237
|
//#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/schema/yaml-1.1/pairs.js
|
|
5432
|
-
function
|
|
5433
|
-
if (
|
|
5238
|
+
function fi(e, t) {
|
|
5239
|
+
if (jn(e)) for (let n = 0; n < e.items.length; ++n) {
|
|
5434
5240
|
let r = e.items[n];
|
|
5435
5241
|
if (!U(r)) {
|
|
5436
|
-
if (
|
|
5242
|
+
if (An(r)) {
|
|
5437
5243
|
r.items.length > 1 && t("Each pair must have its own sequence indicator");
|
|
5438
5244
|
let e = r.items[0] || new X(new Y(null));
|
|
5439
5245
|
if (r.commentBefore && (e.key.commentBefore = e.key.commentBefore ? `${r.commentBefore}\n${e.key.commentBefore}` : r.commentBefore), r.comment) {
|
|
@@ -5448,8 +5254,8 @@ function pi(e, t) {
|
|
|
5448
5254
|
else t("Expected a sequence for this tag");
|
|
5449
5255
|
return e;
|
|
5450
5256
|
}
|
|
5451
|
-
function
|
|
5452
|
-
let { replacer: r } = n, i = new
|
|
5257
|
+
function pi(e, t, n) {
|
|
5258
|
+
let { replacer: r } = n, i = new Gr(e);
|
|
5453
5259
|
i.tag = "tag:yaml.org,2002:pairs";
|
|
5454
5260
|
let a = 0;
|
|
5455
5261
|
if (t && Symbol.iterator in Object(t)) for (let e of t) {
|
|
@@ -5463,17 +5269,17 @@ function mi(e, t, n) {
|
|
|
5463
5269
|
if (t.length === 1) o = t[0], s = e[o];
|
|
5464
5270
|
else throw TypeError(`Expected tuple with one key, not ${t.length} keys`);
|
|
5465
5271
|
} else o = e;
|
|
5466
|
-
i.items.push(
|
|
5272
|
+
i.items.push(Rr(o, s, n));
|
|
5467
5273
|
}
|
|
5468
5274
|
return i;
|
|
5469
5275
|
}
|
|
5470
|
-
var
|
|
5276
|
+
var mi = {
|
|
5471
5277
|
collection: "seq",
|
|
5472
5278
|
default: !1,
|
|
5473
5279
|
tag: "tag:yaml.org,2002:pairs",
|
|
5474
|
-
resolve:
|
|
5475
|
-
createNode:
|
|
5476
|
-
},
|
|
5280
|
+
resolve: fi,
|
|
5281
|
+
createNode: pi
|
|
5282
|
+
}, hi = class e extends Gr {
|
|
5477
5283
|
constructor() {
|
|
5478
5284
|
super(), this.add = Z.prototype.add.bind(this), this.delete = Z.prototype.delete.bind(this), this.get = Z.prototype.get.bind(this), this.has = Z.prototype.has.bind(this), this.set = Z.prototype.set.bind(this), this.tag = e.tag;
|
|
5479
5285
|
}
|
|
@@ -5489,51 +5295,51 @@ var hi = {
|
|
|
5489
5295
|
return n;
|
|
5490
5296
|
}
|
|
5491
5297
|
static from(e, t, n) {
|
|
5492
|
-
let r =
|
|
5298
|
+
let r = pi(e, t, n), i = new this();
|
|
5493
5299
|
return i.items = r.items, i;
|
|
5494
5300
|
}
|
|
5495
5301
|
};
|
|
5496
|
-
|
|
5497
|
-
var
|
|
5302
|
+
hi.tag = "tag:yaml.org,2002:omap";
|
|
5303
|
+
var gi = {
|
|
5498
5304
|
collection: "seq",
|
|
5499
5305
|
identify: (e) => e instanceof Map,
|
|
5500
|
-
nodeClass:
|
|
5306
|
+
nodeClass: hi,
|
|
5501
5307
|
default: !1,
|
|
5502
5308
|
tag: "tag:yaml.org,2002:omap",
|
|
5503
5309
|
resolve(e, t) {
|
|
5504
|
-
let n =
|
|
5310
|
+
let n = fi(e, t), r = [];
|
|
5505
5311
|
for (let { key: e } of n.items) W(e) && (r.includes(e.value) ? t(`Ordered maps must not include duplicate keys: ${e.value}`) : r.push(e.value));
|
|
5506
|
-
return Object.assign(new
|
|
5312
|
+
return Object.assign(new hi(), n);
|
|
5507
5313
|
},
|
|
5508
|
-
createNode: (e, t, n) =>
|
|
5314
|
+
createNode: (e, t, n) => hi.from(e, t, n)
|
|
5509
5315
|
};
|
|
5510
5316
|
//#endregion
|
|
5511
5317
|
//#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/schema/yaml-1.1/bool.js
|
|
5512
|
-
function
|
|
5513
|
-
return t && (e ?
|
|
5318
|
+
function _i({ value: e, source: t }, n) {
|
|
5319
|
+
return t && (e ? vi : yi).test.test(t) ? t : e ? n.options.trueStr : n.options.falseStr;
|
|
5514
5320
|
}
|
|
5515
|
-
var
|
|
5321
|
+
var vi = {
|
|
5516
5322
|
identify: (e) => e === !0,
|
|
5517
5323
|
default: !0,
|
|
5518
5324
|
tag: "tag:yaml.org,2002:bool",
|
|
5519
5325
|
test: /^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,
|
|
5520
5326
|
resolve: () => new Y(!0),
|
|
5521
|
-
stringify:
|
|
5522
|
-
},
|
|
5327
|
+
stringify: _i
|
|
5328
|
+
}, yi = {
|
|
5523
5329
|
identify: (e) => e === !1,
|
|
5524
5330
|
default: !0,
|
|
5525
5331
|
tag: "tag:yaml.org,2002:bool",
|
|
5526
5332
|
test: /^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,
|
|
5527
5333
|
resolve: () => new Y(!1),
|
|
5528
|
-
stringify:
|
|
5529
|
-
},
|
|
5334
|
+
stringify: _i
|
|
5335
|
+
}, bi = {
|
|
5530
5336
|
identify: (e) => typeof e == "number",
|
|
5531
5337
|
default: !0,
|
|
5532
5338
|
tag: "tag:yaml.org,2002:float",
|
|
5533
5339
|
test: /^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,
|
|
5534
5340
|
resolve: (e) => e.slice(-3).toLowerCase() === "nan" ? NaN : e[0] === "-" ? -Infinity : Infinity,
|
|
5535
5341
|
stringify: Q
|
|
5536
|
-
},
|
|
5342
|
+
}, xi = {
|
|
5537
5343
|
identify: (e) => typeof e == "number",
|
|
5538
5344
|
default: !0,
|
|
5539
5345
|
tag: "tag:yaml.org,2002:float",
|
|
@@ -5544,7 +5350,7 @@ var yi = {
|
|
|
5544
5350
|
let t = Number(e.value);
|
|
5545
5351
|
return isFinite(t) ? t.toExponential() : Q(e);
|
|
5546
5352
|
}
|
|
5547
|
-
},
|
|
5353
|
+
}, Si = {
|
|
5548
5354
|
identify: (e) => typeof e == "number",
|
|
5549
5355
|
default: !0,
|
|
5550
5356
|
tag: "tag:yaml.org,2002:float",
|
|
@@ -5558,8 +5364,8 @@ var yi = {
|
|
|
5558
5364
|
return t;
|
|
5559
5365
|
},
|
|
5560
5366
|
stringify: Q
|
|
5561
|
-
},
|
|
5562
|
-
function
|
|
5367
|
+
}, Ci = (e) => typeof e == "bigint" || Number.isInteger(e);
|
|
5368
|
+
function wi(e, t, n, { intAsBigInt: r }) {
|
|
5563
5369
|
let i = e[0];
|
|
5564
5370
|
if ((i === "-" || i === "+") && (t += 1), e = e.substring(t).replace(/_/g, ""), r) {
|
|
5565
5371
|
switch (n) {
|
|
@@ -5577,60 +5383,60 @@ function Ti(e, t, n, { intAsBigInt: r }) {
|
|
|
5577
5383
|
let a = parseInt(e, n);
|
|
5578
5384
|
return i === "-" ? -1 * a : a;
|
|
5579
5385
|
}
|
|
5580
|
-
function
|
|
5386
|
+
function Ti(e, t, n) {
|
|
5581
5387
|
let { value: r } = e;
|
|
5582
|
-
if (
|
|
5388
|
+
if (Ci(r)) {
|
|
5583
5389
|
let e = r.toString(t);
|
|
5584
5390
|
return r < 0 ? "-" + n + e.substr(1) : n + e;
|
|
5585
5391
|
}
|
|
5586
5392
|
return Q(e);
|
|
5587
5393
|
}
|
|
5588
|
-
var
|
|
5589
|
-
identify:
|
|
5394
|
+
var Ei = {
|
|
5395
|
+
identify: Ci,
|
|
5590
5396
|
default: !0,
|
|
5591
5397
|
tag: "tag:yaml.org,2002:int",
|
|
5592
5398
|
format: "BIN",
|
|
5593
5399
|
test: /^[-+]?0b[0-1_]+$/,
|
|
5594
|
-
resolve: (e, t, n) =>
|
|
5595
|
-
stringify: (e) =>
|
|
5596
|
-
},
|
|
5597
|
-
identify:
|
|
5400
|
+
resolve: (e, t, n) => wi(e, 2, 2, n),
|
|
5401
|
+
stringify: (e) => Ti(e, 2, "0b")
|
|
5402
|
+
}, Di = {
|
|
5403
|
+
identify: Ci,
|
|
5598
5404
|
default: !0,
|
|
5599
5405
|
tag: "tag:yaml.org,2002:int",
|
|
5600
5406
|
format: "OCT",
|
|
5601
5407
|
test: /^[-+]?0[0-7_]+$/,
|
|
5602
|
-
resolve: (e, t, n) =>
|
|
5603
|
-
stringify: (e) =>
|
|
5604
|
-
},
|
|
5605
|
-
identify:
|
|
5408
|
+
resolve: (e, t, n) => wi(e, 1, 8, n),
|
|
5409
|
+
stringify: (e) => Ti(e, 8, "0")
|
|
5410
|
+
}, Oi = {
|
|
5411
|
+
identify: Ci,
|
|
5606
5412
|
default: !0,
|
|
5607
5413
|
tag: "tag:yaml.org,2002:int",
|
|
5608
5414
|
test: /^[-+]?[0-9][0-9_]*$/,
|
|
5609
|
-
resolve: (e, t, n) =>
|
|
5415
|
+
resolve: (e, t, n) => wi(e, 0, 10, n),
|
|
5610
5416
|
stringify: Q
|
|
5611
|
-
},
|
|
5612
|
-
identify:
|
|
5417
|
+
}, ki = {
|
|
5418
|
+
identify: Ci,
|
|
5613
5419
|
default: !0,
|
|
5614
5420
|
tag: "tag:yaml.org,2002:int",
|
|
5615
5421
|
format: "HEX",
|
|
5616
5422
|
test: /^[-+]?0x[0-9a-fA-F_]+$/,
|
|
5617
|
-
resolve: (e, t, n) =>
|
|
5618
|
-
stringify: (e) =>
|
|
5619
|
-
},
|
|
5423
|
+
resolve: (e, t, n) => wi(e, 2, 16, n),
|
|
5424
|
+
stringify: (e) => Ti(e, 16, "0x")
|
|
5425
|
+
}, Ai = class e extends Z {
|
|
5620
5426
|
constructor(t) {
|
|
5621
5427
|
super(t), this.tag = e.tag;
|
|
5622
5428
|
}
|
|
5623
5429
|
add(e) {
|
|
5624
5430
|
let t;
|
|
5625
|
-
t = U(e) ? e : e && typeof e == "object" && "key" in e && "value" in e && e.value === null ? new X(e.key, null) : new X(e, null),
|
|
5431
|
+
t = U(e) ? e : e && typeof e == "object" && "key" in e && "value" in e && e.value === null ? new X(e.key, null) : new X(e, null), Ur(this.items, t.key) || this.items.push(t);
|
|
5626
5432
|
}
|
|
5627
5433
|
get(e, t) {
|
|
5628
|
-
let n =
|
|
5434
|
+
let n = Ur(this.items, e);
|
|
5629
5435
|
return !t && U(n) ? W(n.key) ? n.key.value : n.key : n;
|
|
5630
5436
|
}
|
|
5631
5437
|
set(e, t) {
|
|
5632
5438
|
if (typeof t != "boolean") throw Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof t}`);
|
|
5633
|
-
let n =
|
|
5439
|
+
let n = Ur(this.items, e);
|
|
5634
5440
|
n && !t ? this.items.splice(this.items.indexOf(n), 1) : !n && t && this.items.push(new X(e));
|
|
5635
5441
|
}
|
|
5636
5442
|
toJSON(e, t) {
|
|
@@ -5643,21 +5449,21 @@ var Di = {
|
|
|
5643
5449
|
}
|
|
5644
5450
|
static from(e, t, n) {
|
|
5645
5451
|
let { replacer: r } = n, i = new this(e);
|
|
5646
|
-
if (t && Symbol.iterator in Object(t)) for (let e of t) typeof r == "function" && (e = r.call(t, e, e)), i.items.push(
|
|
5452
|
+
if (t && Symbol.iterator in Object(t)) for (let e of t) typeof r == "function" && (e = r.call(t, e, e)), i.items.push(Rr(e, null, n));
|
|
5647
5453
|
return i;
|
|
5648
5454
|
}
|
|
5649
5455
|
};
|
|
5650
|
-
|
|
5651
|
-
var
|
|
5456
|
+
Ai.tag = "tag:yaml.org,2002:set";
|
|
5457
|
+
var ji = {
|
|
5652
5458
|
collection: "map",
|
|
5653
5459
|
identify: (e) => e instanceof Set,
|
|
5654
|
-
nodeClass:
|
|
5460
|
+
nodeClass: Ai,
|
|
5655
5461
|
default: !1,
|
|
5656
5462
|
tag: "tag:yaml.org,2002:set",
|
|
5657
|
-
createNode: (e, t, n) =>
|
|
5463
|
+
createNode: (e, t, n) => Ai.from(e, t, n),
|
|
5658
5464
|
resolve(e, t) {
|
|
5659
|
-
if (
|
|
5660
|
-
if (e.hasAllNullValues(!0)) return Object.assign(new
|
|
5465
|
+
if (An(e)) {
|
|
5466
|
+
if (e.hasAllNullValues(!0)) return Object.assign(new Ai(), e);
|
|
5661
5467
|
t("Set items must all have null values");
|
|
5662
5468
|
} else t("Expected a mapping for this tag");
|
|
5663
5469
|
return e;
|
|
@@ -5665,11 +5471,11 @@ var Mi = {
|
|
|
5665
5471
|
};
|
|
5666
5472
|
//#endregion
|
|
5667
5473
|
//#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/schema/yaml-1.1/timestamp.js
|
|
5668
|
-
function
|
|
5474
|
+
function Mi(e, t) {
|
|
5669
5475
|
let n = e[0], r = n === "-" || n === "+" ? e.substring(1) : e, i = (e) => t ? BigInt(e) : Number(e), a = r.replace(/_/g, "").split(":").reduce((e, t) => e * i(60) + i(t), i(0));
|
|
5670
5476
|
return n === "-" ? i(-1) * a : a;
|
|
5671
5477
|
}
|
|
5672
|
-
function
|
|
5478
|
+
function Ni(e) {
|
|
5673
5479
|
let { value: t } = e, n = (e) => e;
|
|
5674
5480
|
if (typeof t == "bigint") n = (e) => BigInt(e);
|
|
5675
5481
|
else if (isNaN(t) || !isFinite(t)) return Q(e);
|
|
@@ -5678,114 +5484,114 @@ function Pi(e) {
|
|
|
5678
5484
|
let i = n(60), a = [t % i];
|
|
5679
5485
|
return t < 60 ? a.unshift(0) : (t = (t - a[0]) / i, a.unshift(t % i), t >= 60 && (t = (t - a[0]) / i, a.unshift(t))), r + a.map((e) => String(e).padStart(2, "0")).join(":").replace(/000000\d*$/, "");
|
|
5680
5486
|
}
|
|
5681
|
-
var
|
|
5487
|
+
var Pi = {
|
|
5682
5488
|
identify: (e) => typeof e == "bigint" || Number.isInteger(e),
|
|
5683
5489
|
default: !0,
|
|
5684
5490
|
tag: "tag:yaml.org,2002:int",
|
|
5685
5491
|
format: "TIME",
|
|
5686
5492
|
test: /^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,
|
|
5687
|
-
resolve: (e, t, { intAsBigInt: n }) =>
|
|
5688
|
-
stringify:
|
|
5689
|
-
},
|
|
5493
|
+
resolve: (e, t, { intAsBigInt: n }) => Mi(e, n),
|
|
5494
|
+
stringify: Ni
|
|
5495
|
+
}, Fi = {
|
|
5690
5496
|
identify: (e) => typeof e == "number",
|
|
5691
5497
|
default: !0,
|
|
5692
5498
|
tag: "tag:yaml.org,2002:float",
|
|
5693
5499
|
format: "TIME",
|
|
5694
5500
|
test: /^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,
|
|
5695
|
-
resolve: (e) =>
|
|
5696
|
-
stringify:
|
|
5697
|
-
},
|
|
5501
|
+
resolve: (e) => Mi(e, !1),
|
|
5502
|
+
stringify: Ni
|
|
5503
|
+
}, Ii = {
|
|
5698
5504
|
identify: (e) => e instanceof Date,
|
|
5699
5505
|
default: !0,
|
|
5700
5506
|
tag: "tag:yaml.org,2002:timestamp",
|
|
5701
5507
|
test: RegExp("^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?$"),
|
|
5702
5508
|
resolve(e) {
|
|
5703
|
-
let t = e.match(
|
|
5509
|
+
let t = e.match(Ii.test);
|
|
5704
5510
|
if (!t) throw Error("!!timestamp expects a date, starting with yyyy-mm-dd");
|
|
5705
5511
|
let [, n, r, i, a, o, s] = t.map(Number), c = t[7] ? Number((t[7] + "00").substr(1, 3)) : 0, l = Date.UTC(n, r - 1, i, a || 0, o || 0, s || 0, c), u = t[8];
|
|
5706
5512
|
if (u && u !== "Z") {
|
|
5707
|
-
let e =
|
|
5513
|
+
let e = Mi(u, !1);
|
|
5708
5514
|
Math.abs(e) < 30 && (e *= 60), l -= 6e4 * e;
|
|
5709
5515
|
}
|
|
5710
5516
|
return new Date(l);
|
|
5711
5517
|
},
|
|
5712
5518
|
stringify: ({ value: e }) => e?.toISOString().replace(/(T00:00:00)?\.000Z$/, "") ?? ""
|
|
5713
|
-
},
|
|
5714
|
-
|
|
5519
|
+
}, Li = [
|
|
5520
|
+
Wr,
|
|
5521
|
+
qr,
|
|
5715
5522
|
Jr,
|
|
5716
5523
|
Yr,
|
|
5717
|
-
|
|
5524
|
+
vi,
|
|
5718
5525
|
yi,
|
|
5719
|
-
|
|
5526
|
+
Ei,
|
|
5720
5527
|
Di,
|
|
5721
5528
|
Oi,
|
|
5722
5529
|
ki,
|
|
5723
|
-
|
|
5530
|
+
bi,
|
|
5724
5531
|
xi,
|
|
5725
5532
|
Si,
|
|
5726
|
-
|
|
5727
|
-
|
|
5728
|
-
|
|
5729
|
-
|
|
5730
|
-
|
|
5731
|
-
|
|
5533
|
+
di,
|
|
5534
|
+
jr,
|
|
5535
|
+
gi,
|
|
5536
|
+
mi,
|
|
5537
|
+
ji,
|
|
5538
|
+
Pi,
|
|
5732
5539
|
Fi,
|
|
5733
|
-
Ii
|
|
5734
|
-
|
|
5735
|
-
],
|
|
5736
|
-
["core", si],
|
|
5540
|
+
Ii
|
|
5541
|
+
], Ri = /* @__PURE__ */ new Map([
|
|
5542
|
+
["core", oi],
|
|
5737
5543
|
["failsafe", [
|
|
5738
|
-
|
|
5739
|
-
|
|
5740
|
-
|
|
5544
|
+
Wr,
|
|
5545
|
+
qr,
|
|
5546
|
+
Jr
|
|
5741
5547
|
]],
|
|
5742
|
-
["json",
|
|
5743
|
-
["yaml11",
|
|
5744
|
-
["yaml-1.1",
|
|
5745
|
-
]),
|
|
5746
|
-
binary:
|
|
5747
|
-
bool:
|
|
5748
|
-
float:
|
|
5749
|
-
floatExp:
|
|
5750
|
-
floatNaN:
|
|
5751
|
-
floatTime:
|
|
5752
|
-
int:
|
|
5753
|
-
intHex:
|
|
5754
|
-
intOct:
|
|
5755
|
-
intTime:
|
|
5756
|
-
map:
|
|
5757
|
-
merge:
|
|
5758
|
-
null:
|
|
5759
|
-
omap:
|
|
5760
|
-
pairs:
|
|
5761
|
-
seq:
|
|
5762
|
-
set:
|
|
5763
|
-
timestamp:
|
|
5764
|
-
},
|
|
5765
|
-
"tag:yaml.org,2002:binary":
|
|
5766
|
-
"tag:yaml.org,2002:merge":
|
|
5767
|
-
"tag:yaml.org,2002:omap":
|
|
5768
|
-
"tag:yaml.org,2002:pairs":
|
|
5769
|
-
"tag:yaml.org,2002:set":
|
|
5770
|
-
"tag:yaml.org,2002:timestamp":
|
|
5548
|
+
["json", ui],
|
|
5549
|
+
["yaml11", Li],
|
|
5550
|
+
["yaml-1.1", Li]
|
|
5551
|
+
]), zi = {
|
|
5552
|
+
binary: di,
|
|
5553
|
+
bool: Xr,
|
|
5554
|
+
float: $r,
|
|
5555
|
+
floatExp: Qr,
|
|
5556
|
+
floatNaN: Zr,
|
|
5557
|
+
floatTime: Fi,
|
|
5558
|
+
int: ii,
|
|
5559
|
+
intHex: ai,
|
|
5560
|
+
intOct: ri,
|
|
5561
|
+
intTime: Pi,
|
|
5562
|
+
map: Wr,
|
|
5563
|
+
merge: jr,
|
|
5564
|
+
null: Yr,
|
|
5565
|
+
omap: gi,
|
|
5566
|
+
pairs: mi,
|
|
5567
|
+
seq: qr,
|
|
5568
|
+
set: ji,
|
|
5569
|
+
timestamp: Ii
|
|
5570
|
+
}, Bi = {
|
|
5571
|
+
"tag:yaml.org,2002:binary": di,
|
|
5572
|
+
"tag:yaml.org,2002:merge": jr,
|
|
5573
|
+
"tag:yaml.org,2002:omap": gi,
|
|
5574
|
+
"tag:yaml.org,2002:pairs": mi,
|
|
5575
|
+
"tag:yaml.org,2002:set": ji,
|
|
5576
|
+
"tag:yaml.org,2002:timestamp": Ii
|
|
5771
5577
|
};
|
|
5772
|
-
function
|
|
5773
|
-
let r =
|
|
5774
|
-
if (r && !e) return n && !r.includes(
|
|
5578
|
+
function Vi(e, t, n) {
|
|
5579
|
+
let r = Ri.get(t);
|
|
5580
|
+
if (r && !e) return n && !r.includes(jr) ? r.concat(jr) : r.slice();
|
|
5775
5581
|
let i = r;
|
|
5776
5582
|
if (!i) {
|
|
5777
5583
|
if (Array.isArray(e)) i = [];
|
|
5778
5584
|
else {
|
|
5779
|
-
let e = Array.from(
|
|
5585
|
+
let e = Array.from(Ri.keys()).filter((e) => e !== "yaml11").map((e) => JSON.stringify(e)).join(", ");
|
|
5780
5586
|
throw Error(`Unknown schema "${t}"; use one of ${e} or define customTags array`);
|
|
5781
5587
|
}
|
|
5782
5588
|
}
|
|
5783
5589
|
if (Array.isArray(e)) for (let t of e) i = i.concat(t);
|
|
5784
5590
|
else typeof e == "function" && (i = e(i.slice()));
|
|
5785
|
-
return n && (i = i.concat(
|
|
5786
|
-
let n = typeof t == "string" ?
|
|
5591
|
+
return n && (i = i.concat(jr)), i.reduce((e, t) => {
|
|
5592
|
+
let n = typeof t == "string" ? zi[t] : t;
|
|
5787
5593
|
if (!n) {
|
|
5788
|
-
let e = JSON.stringify(t), n = Object.keys(
|
|
5594
|
+
let e = JSON.stringify(t), n = Object.keys(zi).map((e) => JSON.stringify(e)).join(", ");
|
|
5789
5595
|
throw Error(`Unknown custom tag ${e}; use one of ${n}`);
|
|
5790
5596
|
}
|
|
5791
5597
|
return e.includes(n) || e.push(n), e;
|
|
@@ -5793,9 +5599,9 @@ function Hi(e, t, n) {
|
|
|
5793
5599
|
}
|
|
5794
5600
|
//#endregion
|
|
5795
5601
|
//#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/schema/Schema.js
|
|
5796
|
-
var
|
|
5602
|
+
var Hi = (e, t) => e.key < t.key ? -1 : +(e.key > t.key), Ui = class e {
|
|
5797
5603
|
constructor({ compat: e, customTags: t, merge: n, resolveKnownTags: r, schema: i, sortMapEntries: a, toStringDefaults: o }) {
|
|
5798
|
-
this.compat = Array.isArray(e) ?
|
|
5604
|
+
this.compat = Array.isArray(e) ? Vi(e, "compat") : e ? Vi(null, e) : null, this.name = typeof i == "string" && i || "core", this.knownTags = r ? Bi : {}, this.tags = Vi(t, this.name, n), this.toStringOptions = o ?? null, Object.defineProperty(this, wn, { value: Wr }), Object.defineProperty(this, En, { value: Jr }), Object.defineProperty(this, Dn, { value: qr }), this.sortMapEntries = typeof a == "function" ? a : a === !0 ? Hi : null;
|
|
5799
5605
|
}
|
|
5800
5606
|
clone() {
|
|
5801
5607
|
let t = Object.create(e.prototype, Object.getOwnPropertyDescriptors(this));
|
|
@@ -5804,47 +5610,47 @@ var Ui = (e, t) => e.key < t.key ? -1 : +(e.key > t.key), Wi = class e {
|
|
|
5804
5610
|
};
|
|
5805
5611
|
//#endregion
|
|
5806
5612
|
//#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/stringify/stringifyDocument.js
|
|
5807
|
-
function
|
|
5613
|
+
function Wi(e, t) {
|
|
5808
5614
|
let n = [], r = t.directives === !0;
|
|
5809
5615
|
if (t.directives !== !1 && e.directives) {
|
|
5810
5616
|
let t = e.directives.toString(e);
|
|
5811
5617
|
t ? (n.push(t), r = !0) : e.directives.docStart && (r = !0);
|
|
5812
5618
|
}
|
|
5813
5619
|
r && n.push("---");
|
|
5814
|
-
let i =
|
|
5620
|
+
let i = wr(e, t), { commentString: a } = i.options;
|
|
5815
5621
|
if (e.commentBefore) {
|
|
5816
5622
|
n.length !== 1 && n.unshift("");
|
|
5817
5623
|
let t = a(e.commentBefore);
|
|
5818
|
-
n.unshift(
|
|
5624
|
+
n.unshift(sr(t, ""));
|
|
5819
5625
|
}
|
|
5820
5626
|
let o = !1, s = null;
|
|
5821
5627
|
if (e.contents) {
|
|
5822
5628
|
if (K(e.contents)) {
|
|
5823
5629
|
if (e.contents.spaceBefore && r && n.push(""), e.contents.commentBefore) {
|
|
5824
5630
|
let t = a(e.contents.commentBefore);
|
|
5825
|
-
n.push(
|
|
5631
|
+
n.push(sr(t, ""));
|
|
5826
5632
|
}
|
|
5827
5633
|
i.forceBlockIndent = !!e.comment, s = e.contents.comment;
|
|
5828
5634
|
}
|
|
5829
|
-
let t = s ? void 0 : () => o = !0, c =
|
|
5830
|
-
s && (c +=
|
|
5831
|
-
} else n.push(
|
|
5635
|
+
let t = s ? void 0 : () => o = !0, c = Dr(e.contents, i, () => s = null, t);
|
|
5636
|
+
s && (c += cr(c, "", a(s))), (c[0] === "|" || c[0] === ">") && n[n.length - 1] === "---" ? n[n.length - 1] = `--- ${c}` : n.push(c);
|
|
5637
|
+
} else n.push(Dr(e.contents, i));
|
|
5832
5638
|
if (e.directives?.docEnd) {
|
|
5833
5639
|
if (e.comment) {
|
|
5834
5640
|
let t = a(e.comment);
|
|
5835
|
-
t.includes("\n") ? (n.push("..."), n.push(
|
|
5641
|
+
t.includes("\n") ? (n.push("..."), n.push(sr(t, ""))) : n.push(`... ${t}`);
|
|
5836
5642
|
} else n.push("...");
|
|
5837
5643
|
} else {
|
|
5838
5644
|
let t = e.comment;
|
|
5839
|
-
t && o && (t = t.replace(/^\n+/, "")), t && ((!o || s) && n[n.length - 1] !== "" && n.push(""), n.push(
|
|
5645
|
+
t && o && (t = t.replace(/^\n+/, "")), t && ((!o || s) && n[n.length - 1] !== "" && n.push(""), n.push(sr(a(t), "")));
|
|
5840
5646
|
}
|
|
5841
5647
|
return n.join("\n") + "\n";
|
|
5842
5648
|
}
|
|
5843
5649
|
//#endregion
|
|
5844
5650
|
//#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/doc/Document.js
|
|
5845
|
-
var
|
|
5651
|
+
var Gi = class e {
|
|
5846
5652
|
constructor(e, t, n) {
|
|
5847
|
-
this.commentBefore = null, this.comment = null, this.errors = [], this.warnings = [], Object.defineProperty(this, H, { value:
|
|
5653
|
+
this.commentBefore = null, this.comment = null, this.errors = [], this.warnings = [], Object.defineProperty(this, H, { value: Cn });
|
|
5848
5654
|
let r = null;
|
|
5849
5655
|
typeof t == "function" || Array.isArray(t) ? r = t : n === void 0 && t && (n = t, t = void 0);
|
|
5850
5656
|
let i = Object.assign({
|
|
@@ -5859,24 +5665,24 @@ var Ki = class e {
|
|
|
5859
5665
|
}, n);
|
|
5860
5666
|
this.options = i;
|
|
5861
5667
|
let { version: a } = i;
|
|
5862
|
-
n?._directives ? (this.directives = n._directives.atDocument(), this.directives.yaml.explicit && (a = this.directives.yaml.version)) : this.directives = new
|
|
5668
|
+
n?._directives ? (this.directives = n._directives.atDocument(), this.directives.yaml.explicit && (a = this.directives.yaml.version)) : this.directives = new Wn({ version: a }), this.setSchema(a, n), this.contents = e === void 0 ? null : this.createNode(e, r, n);
|
|
5863
5669
|
}
|
|
5864
5670
|
clone() {
|
|
5865
|
-
let t = Object.create(e.prototype, { [H]: { value:
|
|
5671
|
+
let t = Object.create(e.prototype, { [H]: { value: Cn } });
|
|
5866
5672
|
return t.commentBefore = this.commentBefore, t.comment = this.comment, t.errors = this.errors.slice(), t.warnings = this.warnings.slice(), t.options = Object.assign({}, this.options), this.directives && (t.directives = this.directives.clone()), t.schema = this.schema.clone(), t.contents = K(this.contents) ? this.contents.clone(t.schema) : this.contents, this.range && (t.range = this.range.slice()), t;
|
|
5867
5673
|
}
|
|
5868
5674
|
add(e) {
|
|
5869
|
-
|
|
5675
|
+
Ki(this.contents) && this.contents.add(e);
|
|
5870
5676
|
}
|
|
5871
5677
|
addIn(e, t) {
|
|
5872
|
-
|
|
5678
|
+
Ki(this.contents) && this.contents.addIn(e, t);
|
|
5873
5679
|
}
|
|
5874
5680
|
createAlias(e, t) {
|
|
5875
5681
|
if (!e.anchor) {
|
|
5876
|
-
let n =
|
|
5877
|
-
e.anchor = !t || n.has(t) ?
|
|
5682
|
+
let n = Kn(this);
|
|
5683
|
+
e.anchor = !t || n.has(t) ? qn(t || "a", n) : t;
|
|
5878
5684
|
}
|
|
5879
|
-
return new
|
|
5685
|
+
return new Zn(e.anchor);
|
|
5880
5686
|
}
|
|
5881
5687
|
createNode(e, t, n) {
|
|
5882
5688
|
let r;
|
|
@@ -5885,7 +5691,7 @@ var Ki = class e {
|
|
|
5885
5691
|
let e = t.filter((e) => typeof e == "number" || e instanceof String || e instanceof Number).map(String);
|
|
5886
5692
|
e.length > 0 && (t = t.concat(e)), r = t;
|
|
5887
5693
|
} else n === void 0 && t && (n = t, t = void 0);
|
|
5888
|
-
let { aliasDuplicateObjects: i, anchorPrefix: a, flow: o, keepUndefined: s, onTagObj: c, tag: l } = n ?? {}, { onAnchor: u, setAnchors: d, sourceObjects: f } =
|
|
5694
|
+
let { aliasDuplicateObjects: i, anchorPrefix: a, flow: o, keepUndefined: s, onTagObj: c, tag: l } = n ?? {}, { onAnchor: u, setAnchors: d, sourceObjects: f } = Jn(this, a || "a"), p = {
|
|
5889
5695
|
aliasDuplicateObjects: i ?? !0,
|
|
5890
5696
|
keepUndefined: s ?? !1,
|
|
5891
5697
|
onAnchor: u,
|
|
@@ -5893,49 +5699,49 @@ var Ki = class e {
|
|
|
5893
5699
|
replacer: r,
|
|
5894
5700
|
schema: this.schema,
|
|
5895
5701
|
sourceObjects: f
|
|
5896
|
-
}, m =
|
|
5702
|
+
}, m = nr(e, l, p);
|
|
5897
5703
|
return o && G(m) && (m.flow = !0), d(), m;
|
|
5898
5704
|
}
|
|
5899
5705
|
createPair(e, t, n = {}) {
|
|
5900
5706
|
return new X(this.createNode(e, null, n), this.createNode(t, null, n));
|
|
5901
5707
|
}
|
|
5902
5708
|
delete(e) {
|
|
5903
|
-
return
|
|
5709
|
+
return Ki(this.contents) ? this.contents.delete(e) : !1;
|
|
5904
5710
|
}
|
|
5905
5711
|
deleteIn(e) {
|
|
5906
|
-
return
|
|
5712
|
+
return ir(e) ? this.contents != null && (this.contents = null, !0) : Ki(this.contents) ? this.contents.deleteIn(e) : !1;
|
|
5907
5713
|
}
|
|
5908
5714
|
get(e, t) {
|
|
5909
5715
|
return G(this.contents) ? this.contents.get(e, t) : void 0;
|
|
5910
5716
|
}
|
|
5911
5717
|
getIn(e, t) {
|
|
5912
|
-
return
|
|
5718
|
+
return ir(e) ? !t && W(this.contents) ? this.contents.value : this.contents : G(this.contents) ? this.contents.getIn(e, t) : void 0;
|
|
5913
5719
|
}
|
|
5914
5720
|
has(e) {
|
|
5915
5721
|
return G(this.contents) ? this.contents.has(e) : !1;
|
|
5916
5722
|
}
|
|
5917
5723
|
hasIn(e) {
|
|
5918
|
-
return
|
|
5724
|
+
return ir(e) ? this.contents !== void 0 : G(this.contents) ? this.contents.hasIn(e) : !1;
|
|
5919
5725
|
}
|
|
5920
5726
|
set(e, t) {
|
|
5921
|
-
this.contents == null ? this.contents =
|
|
5727
|
+
this.contents == null ? this.contents = rr(this.schema, [e], t) : Ki(this.contents) && this.contents.set(e, t);
|
|
5922
5728
|
}
|
|
5923
5729
|
setIn(e, t) {
|
|
5924
|
-
|
|
5730
|
+
ir(e) ? this.contents = t : this.contents == null ? this.contents = rr(this.schema, Array.from(e), t) : Ki(this.contents) && this.contents.setIn(e, t);
|
|
5925
5731
|
}
|
|
5926
5732
|
setSchema(e, t = {}) {
|
|
5927
5733
|
typeof e == "number" && (e = String(e));
|
|
5928
5734
|
let n;
|
|
5929
5735
|
switch (e) {
|
|
5930
5736
|
case "1.1":
|
|
5931
|
-
this.directives ? this.directives.yaml.version = "1.1" : this.directives = new
|
|
5737
|
+
this.directives ? this.directives.yaml.version = "1.1" : this.directives = new Wn({ version: "1.1" }), n = {
|
|
5932
5738
|
resolveKnownTags: !1,
|
|
5933
5739
|
schema: "yaml-1.1"
|
|
5934
5740
|
};
|
|
5935
5741
|
break;
|
|
5936
5742
|
case "1.2":
|
|
5937
5743
|
case "next":
|
|
5938
|
-
this.directives ? this.directives.yaml.version = e : this.directives = new
|
|
5744
|
+
this.directives ? this.directives.yaml.version = e : this.directives = new Wn({ version: e }), n = {
|
|
5939
5745
|
resolveKnownTags: !0,
|
|
5940
5746
|
schema: "core"
|
|
5941
5747
|
};
|
|
@@ -5949,7 +5755,7 @@ var Ki = class e {
|
|
|
5949
5755
|
}
|
|
5950
5756
|
}
|
|
5951
5757
|
if (t.schema instanceof Object) this.schema = t.schema;
|
|
5952
|
-
else if (n) this.schema = new
|
|
5758
|
+
else if (n) this.schema = new Ui(Object.assign(n, t));
|
|
5953
5759
|
else throw Error("With a null YAML version, the { schema: Schema } option is required");
|
|
5954
5760
|
}
|
|
5955
5761
|
toJS({ json: e, jsonArg: t, mapAsMap: n, maxAliasCount: r, onAnchor: i, reviver: a } = {}) {
|
|
@@ -5962,7 +5768,7 @@ var Ki = class e {
|
|
|
5962
5768
|
maxAliasCount: typeof r == "number" ? r : 100
|
|
5963
5769
|
}, s = J(this.contents, t ?? "", o);
|
|
5964
5770
|
if (typeof i == "function") for (let { count: e, res: t } of o.anchors.values()) i(t, e);
|
|
5965
|
-
return typeof a == "function" ?
|
|
5771
|
+
return typeof a == "function" ? Yn(a, { "": s }, "", s) : s;
|
|
5966
5772
|
}
|
|
5967
5773
|
toJSON(e, t) {
|
|
5968
5774
|
return this.toJS({
|
|
@@ -5978,28 +5784,28 @@ var Ki = class e {
|
|
|
5978
5784
|
let t = JSON.stringify(e.indent);
|
|
5979
5785
|
throw Error(`"indent" option must be a positive integer, not ${t}`);
|
|
5980
5786
|
}
|
|
5981
|
-
return
|
|
5787
|
+
return Wi(this, e);
|
|
5982
5788
|
}
|
|
5983
5789
|
};
|
|
5984
|
-
function
|
|
5790
|
+
function Ki(e) {
|
|
5985
5791
|
if (G(e)) return !0;
|
|
5986
5792
|
throw Error("Expected a YAML collection as document contents");
|
|
5987
5793
|
}
|
|
5988
5794
|
//#endregion
|
|
5989
5795
|
//#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/errors.js
|
|
5990
|
-
var
|
|
5796
|
+
var qi = class extends Error {
|
|
5991
5797
|
constructor(e, t, n, r) {
|
|
5992
5798
|
super(), this.name = e, this.code = n, this.message = r, this.pos = t;
|
|
5993
5799
|
}
|
|
5994
|
-
},
|
|
5800
|
+
}, Ji = class extends qi {
|
|
5995
5801
|
constructor(e, t, n) {
|
|
5996
5802
|
super("YAMLParseError", e, t, n);
|
|
5997
5803
|
}
|
|
5998
|
-
},
|
|
5804
|
+
}, Yi = class extends qi {
|
|
5999
5805
|
constructor(e, t, n) {
|
|
6000
5806
|
super("YAMLWarning", e, t, n);
|
|
6001
5807
|
}
|
|
6002
|
-
},
|
|
5808
|
+
}, Xi = (e, t) => (n) => {
|
|
6003
5809
|
if (n.pos[0] === -1) return;
|
|
6004
5810
|
n.linePos = n.pos.map((e) => t.linePos(e));
|
|
6005
5811
|
let { line: r, col: i } = n.linePos[0];
|
|
@@ -6022,7 +5828,7 @@ var Ji = class extends Error {
|
|
|
6022
5828
|
};
|
|
6023
5829
|
//#endregion
|
|
6024
5830
|
//#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/compose/resolve-props.js
|
|
6025
|
-
function
|
|
5831
|
+
function Zi(e, { flow: t, indicator: n, next: r, offset: i, onError: a, parentIndent: o, startOnNewline: s }) {
|
|
6026
5832
|
let c = !1, l = s, u = s, d = "", f = "", p = !1, m = !1, h = null, g = null, _ = null, v = null, y = null, ee = null, b = null;
|
|
6027
5833
|
for (let i of e) switch (m &&= (i.type !== "space" && i.type !== "newline" && i.type !== "comma" && a(i.offset, "MISSING_CHAR", "Tags and anchors must be separated from the next token by white space"), !1), h &&= (l && i.type !== "comment" && i.type !== "newline" && a(h, "TAB_AS_INDENT", "Tabs are not allowed as indentation"), null), i.type) {
|
|
6028
5834
|
case "space":
|
|
@@ -6068,7 +5874,7 @@ function Qi(e, { flow: t, indicator: n, next: r, offset: i, onError: a, parentIn
|
|
|
6068
5874
|
}
|
|
6069
5875
|
//#endregion
|
|
6070
5876
|
//#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/compose/util-contains-newline.js
|
|
6071
|
-
function
|
|
5877
|
+
function Qi(e) {
|
|
6072
5878
|
if (!e) return null;
|
|
6073
5879
|
switch (e.type) {
|
|
6074
5880
|
case "alias":
|
|
@@ -6086,7 +5892,7 @@ function $i(e) {
|
|
|
6086
5892
|
if (t.sep) {
|
|
6087
5893
|
for (let e of t.sep) if (e.type === "newline") return !0;
|
|
6088
5894
|
}
|
|
6089
|
-
if (
|
|
5895
|
+
if (Qi(t.key) || Qi(t.value)) return !0;
|
|
6090
5896
|
}
|
|
6091
5897
|
return !1;
|
|
6092
5898
|
default: return !0;
|
|
@@ -6094,15 +5900,15 @@ function $i(e) {
|
|
|
6094
5900
|
}
|
|
6095
5901
|
//#endregion
|
|
6096
5902
|
//#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/compose/util-flow-indent-check.js
|
|
6097
|
-
function
|
|
5903
|
+
function $i(e, t, n) {
|
|
6098
5904
|
if (t?.type === "flow-collection") {
|
|
6099
5905
|
let r = t.end[0];
|
|
6100
|
-
r.indent === e && (r.source === "]" || r.source === "}") &&
|
|
5906
|
+
r.indent === e && (r.source === "]" || r.source === "}") && Qi(t) && n(r, "BAD_INDENT", "Flow end indicator should be more indented than parent", !0);
|
|
6101
5907
|
}
|
|
6102
5908
|
}
|
|
6103
5909
|
//#endregion
|
|
6104
5910
|
//#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/compose/util-map-includes.js
|
|
6105
|
-
function
|
|
5911
|
+
function ea(e, t, n) {
|
|
6106
5912
|
let { uniqueKeys: r } = e.options;
|
|
6107
5913
|
if (r === !1) return !1;
|
|
6108
5914
|
let i = typeof r == "function" ? r : (e, t) => e === t || W(e) && W(t) && e.value === t.value;
|
|
@@ -6110,13 +5916,13 @@ function ta(e, t, n) {
|
|
|
6110
5916
|
}
|
|
6111
5917
|
//#endregion
|
|
6112
5918
|
//#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/compose/resolve-block-map.js
|
|
6113
|
-
var
|
|
6114
|
-
function
|
|
5919
|
+
var ta = "All mapping items must start at the same column";
|
|
5920
|
+
function na({ composeNode: e, composeEmptyNode: t }, n, r, i, a) {
|
|
6115
5921
|
let o = new ((a?.nodeClass) ?? Z)(n.schema);
|
|
6116
5922
|
n.atRoot &&= !1;
|
|
6117
5923
|
let s = r.offset, c = null;
|
|
6118
5924
|
for (let a of r.items) {
|
|
6119
|
-
let { start: l, key: u, sep: d, value: f } = a, p =
|
|
5925
|
+
let { start: l, key: u, sep: d, value: f } = a, p = Zi(l, {
|
|
6120
5926
|
indicator: "explicit-key-ind",
|
|
6121
5927
|
next: u ?? d?.[0],
|
|
6122
5928
|
offset: s,
|
|
@@ -6125,16 +5931,16 @@ function ra({ composeNode: e, composeEmptyNode: t }, n, r, i, a) {
|
|
|
6125
5931
|
startOnNewline: !0
|
|
6126
5932
|
}), m = !p.found;
|
|
6127
5933
|
if (m) {
|
|
6128
|
-
if (u && (u.type === "block-seq" ? i(s, "BLOCK_AS_IMPLICIT_KEY", "A block sequence may not be used as an implicit map key") : "indent" in u && u.indent !== r.indent && i(s, "BAD_INDENT",
|
|
5934
|
+
if (u && (u.type === "block-seq" ? i(s, "BLOCK_AS_IMPLICIT_KEY", "A block sequence may not be used as an implicit map key") : "indent" in u && u.indent !== r.indent && i(s, "BAD_INDENT", ta)), !p.anchor && !p.tag && !d) {
|
|
6129
5935
|
c = p.end, p.comment && (o.comment ? o.comment += "\n" + p.comment : o.comment = p.comment);
|
|
6130
5936
|
continue;
|
|
6131
5937
|
}
|
|
6132
|
-
(p.newlineAfterProp ||
|
|
6133
|
-
} else p.found?.indent !== r.indent && i(s, "BAD_INDENT",
|
|
5938
|
+
(p.newlineAfterProp || Qi(u)) && i(u ?? l[l.length - 1], "MULTILINE_IMPLICIT_KEY", "Implicit keys need to be on a single line");
|
|
5939
|
+
} else p.found?.indent !== r.indent && i(s, "BAD_INDENT", ta);
|
|
6134
5940
|
n.atKey = !0;
|
|
6135
5941
|
let h = p.end, g = u ? e(n, u, p, i) : t(n, h, l, null, p, i);
|
|
6136
|
-
n.schema.compat &&
|
|
6137
|
-
let _ =
|
|
5942
|
+
n.schema.compat && $i(r.indent, u, i), n.atKey = !1, ea(n, o.items, g) && i(h, "DUPLICATE_KEY", "Map keys must be unique");
|
|
5943
|
+
let _ = Zi(d ?? [], {
|
|
6138
5944
|
indicator: "map-value-ind",
|
|
6139
5945
|
next: f,
|
|
6140
5946
|
offset: g.range[2],
|
|
@@ -6145,7 +5951,7 @@ function ra({ composeNode: e, composeEmptyNode: t }, n, r, i, a) {
|
|
|
6145
5951
|
if (s = _.end, _.found) {
|
|
6146
5952
|
m && (f?.type === "block-map" && !_.hasNewline && i(s, "BLOCK_AS_IMPLICIT_KEY", "Nested mappings are not allowed in compact mappings"), n.options.strict && p.start < _.found.offset - 1024 && i(g.range, "KEY_OVER_1024_CHARS", "The : indicator must be at most 1024 chars after the start of an implicit block mapping key"));
|
|
6147
5953
|
let c = f ? e(n, f, _, i) : t(n, s, d, null, _, i);
|
|
6148
|
-
n.schema.compat &&
|
|
5954
|
+
n.schema.compat && $i(r.indent, f, i), s = c.range[2];
|
|
6149
5955
|
let l = new X(g, c);
|
|
6150
5956
|
n.options.keepSourceTokens && (l.srcToken = a), o.items.push(l);
|
|
6151
5957
|
} else {
|
|
@@ -6162,12 +5968,12 @@ function ra({ composeNode: e, composeEmptyNode: t }, n, r, i, a) {
|
|
|
6162
5968
|
}
|
|
6163
5969
|
//#endregion
|
|
6164
5970
|
//#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/compose/resolve-block-seq.js
|
|
6165
|
-
function
|
|
6166
|
-
let o = new ((a?.nodeClass) ??
|
|
5971
|
+
function ra({ composeNode: e, composeEmptyNode: t }, n, r, i, a) {
|
|
5972
|
+
let o = new ((a?.nodeClass) ?? Gr)(n.schema);
|
|
6167
5973
|
n.atRoot &&= !1, n.atKey &&= !1;
|
|
6168
5974
|
let s = r.offset, c = null;
|
|
6169
5975
|
for (let { start: a, value: l } of r.items) {
|
|
6170
|
-
let u =
|
|
5976
|
+
let u = Zi(a, {
|
|
6171
5977
|
indicator: "seq-item-ind",
|
|
6172
5978
|
next: l,
|
|
6173
5979
|
offset: s,
|
|
@@ -6183,7 +5989,7 @@ function ia({ composeNode: e, composeEmptyNode: t }, n, r, i, a) {
|
|
|
6183
5989
|
}
|
|
6184
5990
|
}
|
|
6185
5991
|
let d = l ? e(n, l, u, i) : t(n, u.end, a, null, u, i);
|
|
6186
|
-
n.schema.compat &&
|
|
5992
|
+
n.schema.compat && $i(r.indent, l, i), s = d.range[2], o.items.push(d);
|
|
6187
5993
|
}
|
|
6188
5994
|
return o.range = [
|
|
6189
5995
|
r.offset,
|
|
@@ -6193,7 +5999,7 @@ function ia({ composeNode: e, composeEmptyNode: t }, n, r, i, a) {
|
|
|
6193
5999
|
}
|
|
6194
6000
|
//#endregion
|
|
6195
6001
|
//#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/compose/resolve-end.js
|
|
6196
|
-
function
|
|
6002
|
+
function ia(e, t, n, r) {
|
|
6197
6003
|
let i = "";
|
|
6198
6004
|
if (e) {
|
|
6199
6005
|
let a = !1, o = "";
|
|
@@ -6224,15 +6030,15 @@ function aa(e, t, n, r) {
|
|
|
6224
6030
|
}
|
|
6225
6031
|
//#endregion
|
|
6226
6032
|
//#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/compose/resolve-flow-collection.js
|
|
6227
|
-
var
|
|
6228
|
-
function
|
|
6229
|
-
let o = r.start.source === "{", s = o ? "flow map" : "flow sequence", c = new ((a?.nodeClass) ?? (o ? Z :
|
|
6033
|
+
var aa = "Block collections are not allowed within flow collections", oa = (e) => e && (e.type === "block-map" || e.type === "block-seq");
|
|
6034
|
+
function sa({ composeNode: e, composeEmptyNode: t }, n, r, i, a) {
|
|
6035
|
+
let o = r.start.source === "{", s = o ? "flow map" : "flow sequence", c = new ((a?.nodeClass) ?? (o ? Z : Gr))(n.schema);
|
|
6230
6036
|
c.flow = !0;
|
|
6231
6037
|
let l = n.atRoot;
|
|
6232
6038
|
l && (n.atRoot = !1), n.atKey &&= !1;
|
|
6233
6039
|
let u = r.offset + r.start.source.length;
|
|
6234
6040
|
for (let a = 0; a < r.items.length; ++a) {
|
|
6235
|
-
let l = r.items[a], { start: d, key: f, sep: p, value: m } = l, h =
|
|
6041
|
+
let l = r.items[a], { start: d, key: f, sep: p, value: m } = l, h = Zi(d, {
|
|
6236
6042
|
flow: s,
|
|
6237
6043
|
indicator: "explicit-key-ind",
|
|
6238
6044
|
next: f ?? p?.[0],
|
|
@@ -6246,7 +6052,7 @@ function ca({ composeNode: e, composeEmptyNode: t }, n, r, i, a) {
|
|
|
6246
6052
|
a === 0 && h.comma ? i(h.comma, "UNEXPECTED_TOKEN", `Unexpected , in ${s}`) : a < r.items.length - 1 && i(h.start, "UNEXPECTED_TOKEN", `Unexpected empty item in ${s}`), h.comment && (c.comment ? c.comment += "\n" + h.comment : c.comment = h.comment), u = h.end;
|
|
6247
6053
|
continue;
|
|
6248
6054
|
}
|
|
6249
|
-
!o && n.options.strict &&
|
|
6055
|
+
!o && n.options.strict && Qi(f) && i(f, "MULTILINE_IMPLICIT_KEY", "Implicit keys of flow sequence pairs need to be on a single line");
|
|
6250
6056
|
}
|
|
6251
6057
|
if (a === 0) h.comma && i(h.comma, "UNEXPECTED_TOKEN", `Unexpected , in ${s}`);
|
|
6252
6058
|
else if (h.comma || i(h.start, "MISSING_CHAR", `Missing , between ${s} items`), h.comment) {
|
|
@@ -6266,12 +6072,12 @@ function ca({ composeNode: e, composeEmptyNode: t }, n, r, i, a) {
|
|
|
6266
6072
|
}
|
|
6267
6073
|
if (!o && !p && !h.found) {
|
|
6268
6074
|
let r = m ? e(n, m, h, i) : t(n, h.end, p, null, h, i);
|
|
6269
|
-
c.items.push(r), u = r.range[2],
|
|
6075
|
+
c.items.push(r), u = r.range[2], oa(m) && i(r.range, "BLOCK_IN_FLOW", aa);
|
|
6270
6076
|
} else {
|
|
6271
6077
|
n.atKey = !0;
|
|
6272
6078
|
let a = h.end, g = f ? e(n, f, h, i) : t(n, a, d, null, h, i);
|
|
6273
|
-
|
|
6274
|
-
let _ =
|
|
6079
|
+
oa(f) && i(g.range, "BLOCK_IN_FLOW", aa), n.atKey = !1;
|
|
6080
|
+
let _ = Zi(p ?? [], {
|
|
6275
6081
|
flow: s,
|
|
6276
6082
|
indicator: "map-value-ind",
|
|
6277
6083
|
next: m,
|
|
@@ -6293,11 +6099,11 @@ function ca({ composeNode: e, composeEmptyNode: t }, n, r, i, a) {
|
|
|
6293
6099
|
}
|
|
6294
6100
|
} else m && ("source" in m && m.source?.[0] === ":" ? i(m, "MISSING_CHAR", `Missing space after : in ${s}`) : i(_.start, "MISSING_CHAR", `Missing , or : between ${s} items`));
|
|
6295
6101
|
let v = m ? e(n, m, _, i) : _.found ? t(n, _.end, p, null, _, i) : null;
|
|
6296
|
-
v ?
|
|
6102
|
+
v ? oa(m) && i(v.range, "BLOCK_IN_FLOW", aa) : _.comment && (g.comment ? g.comment += "\n" + _.comment : g.comment = _.comment);
|
|
6297
6103
|
let y = new X(g, v);
|
|
6298
6104
|
if (n.options.keepSourceTokens && (y.srcToken = l), o) {
|
|
6299
6105
|
let e = c;
|
|
6300
|
-
|
|
6106
|
+
ea(n, e.items, g) && i(a, "DUPLICATE_KEY", "Map keys must be unique"), e.items.push(y);
|
|
6301
6107
|
} else {
|
|
6302
6108
|
let e = new Z(n.schema);
|
|
6303
6109
|
e.flow = !0, e.items.push(y);
|
|
@@ -6318,7 +6124,7 @@ function ca({ composeNode: e, composeEmptyNode: t }, n, r, i, a) {
|
|
|
6318
6124
|
i(u, l ? "MISSING_CHAR" : "BAD_INDENT", t), f && f.source.length !== 1 && p.unshift(f);
|
|
6319
6125
|
}
|
|
6320
6126
|
if (p.length > 0) {
|
|
6321
|
-
let e =
|
|
6127
|
+
let e = ia(p, m, n.options.strict, i);
|
|
6322
6128
|
e.comment && (c.comment ? c.comment += "\n" + e.comment : c.comment = e.comment), c.range = [
|
|
6323
6129
|
r.offset,
|
|
6324
6130
|
m,
|
|
@@ -6333,31 +6139,31 @@ function ca({ composeNode: e, composeEmptyNode: t }, n, r, i, a) {
|
|
|
6333
6139
|
}
|
|
6334
6140
|
//#endregion
|
|
6335
6141
|
//#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/compose/compose-collection.js
|
|
6336
|
-
function
|
|
6337
|
-
let o = n.type === "block-map" ?
|
|
6142
|
+
function ca(e, t, n, r, i, a) {
|
|
6143
|
+
let o = n.type === "block-map" ? na(e, t, n, r, a) : n.type === "block-seq" ? ra(e, t, n, r, a) : sa(e, t, n, r, a), s = o.constructor;
|
|
6338
6144
|
return i === "!" || i === s.tagName ? (o.tag = s.tagName, o) : (i && (o.tag = i), o);
|
|
6339
6145
|
}
|
|
6340
|
-
function
|
|
6146
|
+
function la(e, t, n, r, i) {
|
|
6341
6147
|
let a = r.tag, o = a ? t.directives.tagName(a.source, (e) => i(a, "TAG_RESOLVE_FAILED", e)) : null;
|
|
6342
6148
|
if (n.type === "block-seq") {
|
|
6343
6149
|
let { anchor: e, newlineAfterProp: t } = r, n = e && a ? e.offset > a.offset ? e : a : e ?? a;
|
|
6344
6150
|
n && (!t || t.offset < n.offset) && i(n, "MISSING_CHAR", "Missing newline after block sequence props");
|
|
6345
6151
|
}
|
|
6346
6152
|
let s = n.type === "block-map" ? "map" : n.type === "block-seq" ? "seq" : n.start.source === "{" ? "map" : "seq";
|
|
6347
|
-
if (!a || !o || o === "!" || o === Z.tagName && s === "map" || o ===
|
|
6153
|
+
if (!a || !o || o === "!" || o === Z.tagName && s === "map" || o === Gr.tagName && s === "seq") return ca(e, t, n, i, o);
|
|
6348
6154
|
let c = t.schema.tags.find((e) => e.tag === o && e.collection === s);
|
|
6349
6155
|
if (!c) {
|
|
6350
6156
|
let r = t.schema.knownTags[o];
|
|
6351
6157
|
if (r?.collection === s) t.schema.tags.push(Object.assign({}, r, { default: !1 })), c = r;
|
|
6352
|
-
else return r ? i(a, "BAD_COLLECTION_TYPE", `${r.tag} used for ${s} collection, but expects ${r.collection ?? "scalar"}`, !0) : i(a, "TAG_RESOLVE_FAILED", `Unresolved tag: ${o}`, !0),
|
|
6158
|
+
else return r ? i(a, "BAD_COLLECTION_TYPE", `${r.tag} used for ${s} collection, but expects ${r.collection ?? "scalar"}`, !0) : i(a, "TAG_RESOLVE_FAILED", `Unresolved tag: ${o}`, !0), ca(e, t, n, i, o);
|
|
6353
6159
|
}
|
|
6354
|
-
let l =
|
|
6160
|
+
let l = ca(e, t, n, i, o, c), u = c.resolve?.(l, (e) => i(a, "TAG_RESOLVE_FAILED", e), t.options) ?? l, d = K(u) ? u : new Y(u);
|
|
6355
6161
|
return d.range = l.range, d.tag = o, c?.format && (d.format = c.format), d;
|
|
6356
6162
|
}
|
|
6357
6163
|
//#endregion
|
|
6358
6164
|
//#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/compose/resolve-block-scalar.js
|
|
6359
|
-
function
|
|
6360
|
-
let r = t.offset, i =
|
|
6165
|
+
function ua(e, t, n) {
|
|
6166
|
+
let r = t.offset, i = da(t, e.options.strict, n);
|
|
6361
6167
|
if (!i) return {
|
|
6362
6168
|
value: "",
|
|
6363
6169
|
type: null,
|
|
@@ -6368,7 +6174,7 @@ function da(e, t, n) {
|
|
|
6368
6174
|
r
|
|
6369
6175
|
]
|
|
6370
6176
|
};
|
|
6371
|
-
let a = i.mode === ">" ? Y.BLOCK_FOLDED : Y.BLOCK_LITERAL, o = t.source ?
|
|
6177
|
+
let a = i.mode === ">" ? Y.BLOCK_FOLDED : Y.BLOCK_LITERAL, o = t.source ? fa(t.source) : [], s = o.length;
|
|
6372
6178
|
for (let e = o.length - 1; e >= 0; --e) {
|
|
6373
6179
|
let t = o[e][1];
|
|
6374
6180
|
if (t === "" || t === "\r") s = e;
|
|
@@ -6431,7 +6237,7 @@ function da(e, t, n) {
|
|
|
6431
6237
|
]
|
|
6432
6238
|
};
|
|
6433
6239
|
}
|
|
6434
|
-
function
|
|
6240
|
+
function da({ offset: e, props: t }, n, r) {
|
|
6435
6241
|
/* istanbul ignore if should not happen */
|
|
6436
6242
|
if (t[0].type !== "block-scalar-header") return r(t[0], "IMPOSSIBLE", "Block scalar header not found"), null;
|
|
6437
6243
|
let { source: i } = t[0], a = i[0], o = 0, s = "", c = -1;
|
|
@@ -6474,24 +6280,24 @@ function fa({ offset: e, props: t }, n, r) {
|
|
|
6474
6280
|
length: d
|
|
6475
6281
|
};
|
|
6476
6282
|
}
|
|
6477
|
-
function
|
|
6283
|
+
function fa(e) {
|
|
6478
6284
|
let t = e.split(/\n( *)/), n = t[0], r = n.match(/^( *)/), i = [r?.[1] ? [r[1], n.slice(r[1].length)] : ["", n]];
|
|
6479
6285
|
for (let e = 1; e < t.length; e += 2) i.push([t[e], t[e + 1]]);
|
|
6480
6286
|
return i;
|
|
6481
6287
|
}
|
|
6482
6288
|
//#endregion
|
|
6483
6289
|
//#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/compose/resolve-flow-scalar.js
|
|
6484
|
-
function
|
|
6290
|
+
function pa(e, t, n) {
|
|
6485
6291
|
let { offset: r, type: i, source: a, end: o } = e, s, c, l = (e, t, i) => n(r + e, t, i);
|
|
6486
6292
|
switch (i) {
|
|
6487
6293
|
case "scalar":
|
|
6488
|
-
s = Y.PLAIN, c =
|
|
6294
|
+
s = Y.PLAIN, c = ma(a, l);
|
|
6489
6295
|
break;
|
|
6490
6296
|
case "single-quoted-scalar":
|
|
6491
|
-
s = Y.QUOTE_SINGLE, c =
|
|
6297
|
+
s = Y.QUOTE_SINGLE, c = ha(a, l);
|
|
6492
6298
|
break;
|
|
6493
6299
|
case "double-quoted-scalar":
|
|
6494
|
-
s = Y.QUOTE_DOUBLE, c =
|
|
6300
|
+
s = Y.QUOTE_DOUBLE, c = _a(a, l);
|
|
6495
6301
|
break;
|
|
6496
6302
|
/* istanbul ignore next should not happen */
|
|
6497
6303
|
default: return n(e, "UNEXPECTED_TOKEN", `Expected a flow scalar value, but found: ${i}`), {
|
|
@@ -6505,7 +6311,7 @@ function ma(e, t, n) {
|
|
|
6505
6311
|
]
|
|
6506
6312
|
};
|
|
6507
6313
|
}
|
|
6508
|
-
let u = r + a.length, d =
|
|
6314
|
+
let u = r + a.length, d = ia(o, u, t, n);
|
|
6509
6315
|
return {
|
|
6510
6316
|
value: c,
|
|
6511
6317
|
type: s,
|
|
@@ -6517,7 +6323,7 @@ function ma(e, t, n) {
|
|
|
6517
6323
|
]
|
|
6518
6324
|
};
|
|
6519
6325
|
}
|
|
6520
|
-
function
|
|
6326
|
+
function ma(e, t) {
|
|
6521
6327
|
let n = "";
|
|
6522
6328
|
switch (e[0]) {
|
|
6523
6329
|
/* istanbul ignore next should not happen */
|
|
@@ -6537,12 +6343,12 @@ function ha(e, t) {
|
|
|
6537
6343
|
case "@":
|
|
6538
6344
|
case "`": n = `reserved character ${e[0]}`;
|
|
6539
6345
|
}
|
|
6540
|
-
return n && t(0, "BAD_SCALAR_START", `Plain value cannot start with ${n}`),
|
|
6346
|
+
return n && t(0, "BAD_SCALAR_START", `Plain value cannot start with ${n}`), ga(e);
|
|
6541
6347
|
}
|
|
6542
|
-
function
|
|
6543
|
-
return (e[e.length - 1] !== "'" || e.length === 1) && t(e.length, "MISSING_CHAR", "Missing closing 'quote"),
|
|
6348
|
+
function ha(e, t) {
|
|
6349
|
+
return (e[e.length - 1] !== "'" || e.length === 1) && t(e.length, "MISSING_CHAR", "Missing closing 'quote"), ga(e.slice(1, -1)).replace(/''/g, "'");
|
|
6544
6350
|
}
|
|
6545
|
-
function
|
|
6351
|
+
function ga(e) {
|
|
6546
6352
|
let t, n;
|
|
6547
6353
|
try {
|
|
6548
6354
|
t = /* @__PURE__ */ RegExp("(.*?)(?<![ ])[ ]*\r?\n", "sy"), n = /* @__PURE__ */ RegExp("[ ]*(.*?)(?:(?<![ ])[ ]*)?\r?\n", "sy");
|
|
@@ -6556,22 +6362,22 @@ function _a(e) {
|
|
|
6556
6362
|
let s = /[ \t]*(.*)/sy;
|
|
6557
6363
|
return s.lastIndex = o, r = s.exec(e), i + a + (r?.[1] ?? "");
|
|
6558
6364
|
}
|
|
6559
|
-
function
|
|
6365
|
+
function _a(e, t) {
|
|
6560
6366
|
let n = "";
|
|
6561
6367
|
for (let r = 1; r < e.length - 1; ++r) {
|
|
6562
6368
|
let i = e[r];
|
|
6563
6369
|
if (i !== "\r" || e[r + 1] !== "\n") {
|
|
6564
6370
|
if (i === "\n") {
|
|
6565
|
-
let { fold: t, offset: i } =
|
|
6371
|
+
let { fold: t, offset: i } = va(e, r);
|
|
6566
6372
|
n += t, r = i;
|
|
6567
6373
|
} else if (i === "\\") {
|
|
6568
|
-
let i = e[++r], a =
|
|
6374
|
+
let i = e[++r], a = ya[i];
|
|
6569
6375
|
if (a) n += a;
|
|
6570
6376
|
else if (i === "\n") for (i = e[r + 1]; i === " " || i === " ";) i = e[++r + 1];
|
|
6571
6377
|
else if (i === "\r" && e[r + 1] === "\n") for (i = e[++r + 1]; i === " " || i === " ";) i = e[++r + 1];
|
|
6572
6378
|
else if (i === "x" || i === "u" || i === "U") {
|
|
6573
6379
|
let a = i === "x" ? 2 : i === "u" ? 4 : 8;
|
|
6574
|
-
n +=
|
|
6380
|
+
n += ba(e, r + 1, a, t), r += a;
|
|
6575
6381
|
} else {
|
|
6576
6382
|
let i = e.substr(r - 1, 2);
|
|
6577
6383
|
t(r - 1, "BAD_DQ_ESCAPE", `Invalid escape sequence ${i}`), n += i;
|
|
@@ -6585,7 +6391,7 @@ function va(e, t) {
|
|
|
6585
6391
|
}
|
|
6586
6392
|
return (e[e.length - 1] !== "\"" || e.length === 1) && t(e.length, "MISSING_CHAR", "Missing closing \"quote"), n;
|
|
6587
6393
|
}
|
|
6588
|
-
function
|
|
6394
|
+
function va(e, t) {
|
|
6589
6395
|
let n = "", r = e[t + 1];
|
|
6590
6396
|
for (; (r === " " || r === " " || r === "\n" || r === "\r") && (r !== "\r" || e[t + 2] === "\n");) r === "\n" && (n += "\n"), t += 1, r = e[t + 1];
|
|
6591
6397
|
return n ||= " ", {
|
|
@@ -6593,7 +6399,7 @@ function ya(e, t) {
|
|
|
6593
6399
|
offset: t
|
|
6594
6400
|
};
|
|
6595
6401
|
}
|
|
6596
|
-
var
|
|
6402
|
+
var ya = {
|
|
6597
6403
|
0: "\0",
|
|
6598
6404
|
a: "\x07",
|
|
6599
6405
|
b: "\b",
|
|
@@ -6613,7 +6419,7 @@ var ba = {
|
|
|
6613
6419
|
"\\": "\\",
|
|
6614
6420
|
" ": " "
|
|
6615
6421
|
};
|
|
6616
|
-
function
|
|
6422
|
+
function ba(e, t, n, r) {
|
|
6617
6423
|
let i = e.substr(t, n), a = i.length === n && /^[0-9a-fA-F]+$/.test(i) ? parseInt(i, 16) : NaN;
|
|
6618
6424
|
try {
|
|
6619
6425
|
return String.fromCodePoint(a);
|
|
@@ -6624,9 +6430,9 @@ function xa(e, t, n, r) {
|
|
|
6624
6430
|
}
|
|
6625
6431
|
//#endregion
|
|
6626
6432
|
//#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/compose/compose-scalar.js
|
|
6627
|
-
function
|
|
6628
|
-
let { value: i, type: a, comment: o, range: s } = t.type === "block-scalar" ?
|
|
6629
|
-
l = e.options.stringKeys && e.atKey ? e.schema[
|
|
6433
|
+
function xa(e, t, n, r) {
|
|
6434
|
+
let { value: i, type: a, comment: o, range: s } = t.type === "block-scalar" ? ua(e, t, r) : pa(t, e.options.strict, r), c = n ? e.directives.tagName(n.source, (e) => r(n, "TAG_RESOLVE_FAILED", e)) : null, l;
|
|
6435
|
+
l = e.options.stringKeys && e.atKey ? e.schema[En] : c ? Sa(e.schema, i, c, n, r) : t.type === "scalar" ? Ca(e, i, t, r) : e.schema[En];
|
|
6630
6436
|
let u;
|
|
6631
6437
|
try {
|
|
6632
6438
|
let a = l.resolve(i, (e) => r(n ?? t, "TAG_RESOLVE_FAILED", e), e.options);
|
|
@@ -6637,8 +6443,8 @@ function Sa(e, t, n, r) {
|
|
|
6637
6443
|
}
|
|
6638
6444
|
return u.range = s, u.source = i, a && (u.type = a), c && (u.tag = c), l.format && (u.format = l.format), o && (u.comment = o), u;
|
|
6639
6445
|
}
|
|
6640
|
-
function
|
|
6641
|
-
if (n === "!") return e[
|
|
6446
|
+
function Sa(e, t, n, r, i) {
|
|
6447
|
+
if (n === "!") return e[En];
|
|
6642
6448
|
let a = [];
|
|
6643
6449
|
for (let t of e.tags) if (!t.collection && t.tag === n) {
|
|
6644
6450
|
if (t.default && t.test) a.push(t);
|
|
@@ -6649,19 +6455,19 @@ function Ca(e, t, n, r, i) {
|
|
|
6649
6455
|
return o && !o.collection ? (e.tags.push(Object.assign({}, o, {
|
|
6650
6456
|
default: !1,
|
|
6651
6457
|
test: void 0
|
|
6652
|
-
})), o) : (i(r, "TAG_RESOLVE_FAILED", `Unresolved tag: ${n}`, n !== "tag:yaml.org,2002:str"), e[
|
|
6458
|
+
})), o) : (i(r, "TAG_RESOLVE_FAILED", `Unresolved tag: ${n}`, n !== "tag:yaml.org,2002:str"), e[En]);
|
|
6653
6459
|
}
|
|
6654
|
-
function
|
|
6655
|
-
let o = n.tags.find((t) => (t.default === !0 || e && t.default === "key") && t.test?.test(r)) || n[
|
|
6460
|
+
function Ca({ atKey: e, directives: t, schema: n }, r, i, a) {
|
|
6461
|
+
let o = n.tags.find((t) => (t.default === !0 || e && t.default === "key") && t.test?.test(r)) || n[En];
|
|
6656
6462
|
if (n.compat) {
|
|
6657
|
-
let e = n.compat.find((e) => e.default && e.test?.test(r)) ?? n[
|
|
6463
|
+
let e = n.compat.find((e) => e.default && e.test?.test(r)) ?? n[En];
|
|
6658
6464
|
o.tag !== e.tag && a(i, "TAG_RESOLVE_FAILED", `Value may be parsed as either ${t.tagString(o.tag)} or ${t.tagString(e.tag)}`, !0);
|
|
6659
6465
|
}
|
|
6660
6466
|
return o;
|
|
6661
6467
|
}
|
|
6662
6468
|
//#endregion
|
|
6663
6469
|
//#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/compose/util-empty-scalar-position.js
|
|
6664
|
-
function
|
|
6470
|
+
function wa(e, t, n) {
|
|
6665
6471
|
if (t) {
|
|
6666
6472
|
n ??= t.length;
|
|
6667
6473
|
for (let r = n - 1; r >= 0; --r) {
|
|
@@ -6681,48 +6487,48 @@ function Ta(e, t, n) {
|
|
|
6681
6487
|
}
|
|
6682
6488
|
//#endregion
|
|
6683
6489
|
//#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/compose/compose-node.js
|
|
6684
|
-
var
|
|
6685
|
-
composeNode:
|
|
6686
|
-
composeEmptyNode:
|
|
6490
|
+
var Ta = {
|
|
6491
|
+
composeNode: Ea,
|
|
6492
|
+
composeEmptyNode: Da
|
|
6687
6493
|
};
|
|
6688
|
-
function
|
|
6494
|
+
function Ea(e, t, n, r) {
|
|
6689
6495
|
let i = e.atKey, { spaceBefore: a, comment: o, anchor: s, tag: c } = n, l, u = !0;
|
|
6690
6496
|
switch (t.type) {
|
|
6691
6497
|
case "alias":
|
|
6692
|
-
l =
|
|
6498
|
+
l = Oa(e, t, r), (s || c) && r(t, "ALIAS_PROPS", "An alias node must not specify any properties");
|
|
6693
6499
|
break;
|
|
6694
6500
|
case "scalar":
|
|
6695
6501
|
case "single-quoted-scalar":
|
|
6696
6502
|
case "double-quoted-scalar":
|
|
6697
6503
|
case "block-scalar":
|
|
6698
|
-
l =
|
|
6504
|
+
l = xa(e, t, c, r), s && (l.anchor = s.source.substring(1));
|
|
6699
6505
|
break;
|
|
6700
6506
|
case "block-map":
|
|
6701
6507
|
case "block-seq":
|
|
6702
6508
|
case "flow-collection":
|
|
6703
6509
|
try {
|
|
6704
|
-
l =
|
|
6510
|
+
l = la(Ta, e, t, n, r), s && (l.anchor = s.source.substring(1));
|
|
6705
6511
|
} catch (e) {
|
|
6706
6512
|
r(t, "RESOURCE_EXHAUSTION", e instanceof Error ? e.message : String(e));
|
|
6707
6513
|
}
|
|
6708
6514
|
break;
|
|
6709
6515
|
default: r(t, "UNEXPECTED_TOKEN", t.type === "error" ? t.message : `Unsupported token (type: ${t.type})`), u = !1;
|
|
6710
6516
|
}
|
|
6711
|
-
return l ??=
|
|
6517
|
+
return l ??= Da(e, t.offset, void 0, null, n, r), s && l.anchor === "" && r(s, "BAD_ALIAS", "Anchor cannot be an empty string"), i && e.options.stringKeys && (!W(l) || typeof l.value != "string" || l.tag && l.tag !== "tag:yaml.org,2002:str") && r(c ?? t, "NON_STRING_KEY", "With stringKeys, all keys must be strings"), a && (l.spaceBefore = !0), o && (t.type === "scalar" && t.source === "" ? l.comment = o : l.commentBefore = o), e.options.keepSourceTokens && u && (l.srcToken = t), l;
|
|
6712
6518
|
}
|
|
6713
|
-
function
|
|
6714
|
-
let u =
|
|
6519
|
+
function Da(e, t, n, r, { spaceBefore: i, comment: a, anchor: o, tag: s, end: c }, l) {
|
|
6520
|
+
let u = xa(e, {
|
|
6715
6521
|
type: "scalar",
|
|
6716
|
-
offset:
|
|
6522
|
+
offset: wa(t, n, r),
|
|
6717
6523
|
indent: -1,
|
|
6718
6524
|
source: ""
|
|
6719
6525
|
}, s, l);
|
|
6720
6526
|
return o && (u.anchor = o.source.substring(1), u.anchor === "" && l(o, "BAD_ALIAS", "Anchor cannot be an empty string")), i && (u.spaceBefore = !0), a && (u.comment = a, u.range[2] = c), u;
|
|
6721
6527
|
}
|
|
6722
|
-
function
|
|
6723
|
-
let a = new
|
|
6528
|
+
function Oa({ options: e }, { offset: t, source: n, end: r }, i) {
|
|
6529
|
+
let a = new Zn(n.substring(1));
|
|
6724
6530
|
a.source === "" && i(t, "BAD_ALIAS", "Alias cannot be an empty string"), a.source.endsWith(":") && i(t + n.length - 1, "BAD_ALIAS", "Alias ending in : is ambiguous", !0);
|
|
6725
|
-
let o = t + n.length, s =
|
|
6531
|
+
let o = t + n.length, s = ia(r, o, e.strict, i);
|
|
6726
6532
|
return a.range = [
|
|
6727
6533
|
t,
|
|
6728
6534
|
o,
|
|
@@ -6731,14 +6537,14 @@ function ka({ options: e }, { offset: t, source: n, end: r }, i) {
|
|
|
6731
6537
|
}
|
|
6732
6538
|
//#endregion
|
|
6733
6539
|
//#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/compose/compose-doc.js
|
|
6734
|
-
function
|
|
6735
|
-
let s = new
|
|
6540
|
+
function ka(e, t, { offset: n, start: r, value: i, end: a }, o) {
|
|
6541
|
+
let s = new Gi(void 0, Object.assign({ _directives: t }, e)), c = {
|
|
6736
6542
|
atKey: !1,
|
|
6737
6543
|
atRoot: !0,
|
|
6738
6544
|
directives: s.directives,
|
|
6739
6545
|
options: s.options,
|
|
6740
6546
|
schema: s.schema
|
|
6741
|
-
}, l =
|
|
6547
|
+
}, l = Zi(r, {
|
|
6742
6548
|
indicator: "doc-start",
|
|
6743
6549
|
next: i ?? a?.[0],
|
|
6744
6550
|
offset: n,
|
|
@@ -6746,8 +6552,8 @@ function Aa(e, t, { offset: n, start: r, value: i, end: a }, o) {
|
|
|
6746
6552
|
parentIndent: 0,
|
|
6747
6553
|
startOnNewline: !0
|
|
6748
6554
|
});
|
|
6749
|
-
l.found && (s.directives.docStart = !0, i && (i.type === "block-map" || i.type === "block-seq") && !l.hasNewline && o(l.end, "MISSING_CHAR", "Block collection cannot start on same line with directives-end marker")), s.contents = i ?
|
|
6750
|
-
let u = s.contents.range[2], d =
|
|
6555
|
+
l.found && (s.directives.docStart = !0, i && (i.type === "block-map" || i.type === "block-seq") && !l.hasNewline && o(l.end, "MISSING_CHAR", "Block collection cannot start on same line with directives-end marker")), s.contents = i ? Ea(c, i, l, o) : Da(c, l.end, r, null, l, o);
|
|
6556
|
+
let u = s.contents.range[2], d = ia(a, u, !1, o);
|
|
6751
6557
|
return d.comment && (s.comment = d.comment), s.range = [
|
|
6752
6558
|
n,
|
|
6753
6559
|
u,
|
|
@@ -6756,13 +6562,13 @@ function Aa(e, t, { offset: n, start: r, value: i, end: a }, o) {
|
|
|
6756
6562
|
}
|
|
6757
6563
|
//#endregion
|
|
6758
6564
|
//#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/compose/composer.js
|
|
6759
|
-
function
|
|
6565
|
+
function Aa(e) {
|
|
6760
6566
|
if (typeof e == "number") return [e, e + 1];
|
|
6761
6567
|
if (Array.isArray(e)) return e.length === 2 ? e : [e[0], e[1]];
|
|
6762
6568
|
let { offset: t, source: n } = e;
|
|
6763
6569
|
return [t, t + (typeof n == "string" ? n.length : 1)];
|
|
6764
6570
|
}
|
|
6765
|
-
function
|
|
6571
|
+
function ja(e) {
|
|
6766
6572
|
let t = "", n = !1, r = !1;
|
|
6767
6573
|
for (let i = 0; i < e.length; ++i) {
|
|
6768
6574
|
let a = e[i];
|
|
@@ -6781,15 +6587,15 @@ function Ma(e) {
|
|
|
6781
6587
|
afterEmptyLine: r
|
|
6782
6588
|
};
|
|
6783
6589
|
}
|
|
6784
|
-
var
|
|
6590
|
+
var Ma = class {
|
|
6785
6591
|
constructor(e = {}) {
|
|
6786
6592
|
this.doc = null, this.atDirectives = !1, this.prelude = [], this.errors = [], this.warnings = [], this.onError = (e, t, n, r) => {
|
|
6787
|
-
let i =
|
|
6788
|
-
r ? this.warnings.push(new
|
|
6789
|
-
}, this.directives = new
|
|
6593
|
+
let i = Aa(e);
|
|
6594
|
+
r ? this.warnings.push(new Yi(i, t, n)) : this.errors.push(new Ji(i, t, n));
|
|
6595
|
+
}, this.directives = new Wn({ version: e.version || "1.2" }), this.options = e;
|
|
6790
6596
|
}
|
|
6791
6597
|
decorate(e, t) {
|
|
6792
|
-
let { comment: n, afterEmptyLine: r } =
|
|
6598
|
+
let { comment: n, afterEmptyLine: r } = ja(this.prelude);
|
|
6793
6599
|
if (n) {
|
|
6794
6600
|
let i = e.contents;
|
|
6795
6601
|
if (t) e.comment = e.comment ? `${e.comment}\n${n}` : n;
|
|
@@ -6812,7 +6618,7 @@ var Na = class {
|
|
|
6812
6618
|
}
|
|
6813
6619
|
streamInfo() {
|
|
6814
6620
|
return {
|
|
6815
|
-
comment:
|
|
6621
|
+
comment: ja(this.prelude).comment,
|
|
6816
6622
|
directives: this.directives,
|
|
6817
6623
|
errors: this.errors,
|
|
6818
6624
|
warnings: this.warnings
|
|
@@ -6826,12 +6632,12 @@ var Na = class {
|
|
|
6826
6632
|
switch (e.type) {
|
|
6827
6633
|
case "directive":
|
|
6828
6634
|
this.directives.add(e.source, (t, n, r) => {
|
|
6829
|
-
let i =
|
|
6635
|
+
let i = Aa(e);
|
|
6830
6636
|
i[0] += t, this.onError(i, "BAD_DIRECTIVE", n, r);
|
|
6831
6637
|
}), this.prelude.push(e.source), this.atDirectives = !0;
|
|
6832
6638
|
break;
|
|
6833
6639
|
case "document": {
|
|
6834
|
-
let t =
|
|
6640
|
+
let t = ka(this.options, this.directives, e, this.onError);
|
|
6835
6641
|
this.atDirectives && !t.directives.docStart && this.onError(e, "MISSING_CHAR", "Missing directives-end/doc-start indicator line"), this.decorate(t, !1), this.doc && (yield this.doc), this.doc = t, this.atDirectives = !1;
|
|
6836
6642
|
break;
|
|
6837
6643
|
}
|
|
@@ -6842,17 +6648,17 @@ var Na = class {
|
|
|
6842
6648
|
this.prelude.push(e.source);
|
|
6843
6649
|
break;
|
|
6844
6650
|
case "error": {
|
|
6845
|
-
let t = e.source ? `${e.message}: ${JSON.stringify(e.source)}` : e.message, n = new
|
|
6651
|
+
let t = e.source ? `${e.message}: ${JSON.stringify(e.source)}` : e.message, n = new Ji(Aa(e), "UNEXPECTED_TOKEN", t);
|
|
6846
6652
|
this.atDirectives || !this.doc ? this.errors.push(n) : this.doc.errors.push(n);
|
|
6847
6653
|
break;
|
|
6848
6654
|
}
|
|
6849
6655
|
case "doc-end": {
|
|
6850
6656
|
if (!this.doc) {
|
|
6851
|
-
this.errors.push(new
|
|
6657
|
+
this.errors.push(new Ji(Aa(e), "UNEXPECTED_TOKEN", "Unexpected doc-end without preceding document"));
|
|
6852
6658
|
break;
|
|
6853
6659
|
}
|
|
6854
6660
|
this.doc.directives.docEnd = !0;
|
|
6855
|
-
let t =
|
|
6661
|
+
let t = ia(e.end, e.offset + e.source.length, this.doc.options.strict, this.onError);
|
|
6856
6662
|
if (this.decorate(this.doc, !0), t.comment) {
|
|
6857
6663
|
let e = this.doc.comment;
|
|
6858
6664
|
this.doc.comment = e ? `${e}\n${t.comment}` : t.comment;
|
|
@@ -6860,13 +6666,13 @@ var Na = class {
|
|
|
6860
6666
|
this.doc.range[2] = t.offset;
|
|
6861
6667
|
break;
|
|
6862
6668
|
}
|
|
6863
|
-
default: this.errors.push(new
|
|
6669
|
+
default: this.errors.push(new Ji(Aa(e), "UNEXPECTED_TOKEN", `Unsupported token ${e.type}`));
|
|
6864
6670
|
}
|
|
6865
6671
|
}
|
|
6866
6672
|
*end(e = !1, t = -1) {
|
|
6867
6673
|
if (this.doc) this.decorate(this.doc, !0), yield this.doc, this.doc = null;
|
|
6868
6674
|
else if (e) {
|
|
6869
|
-
let e = new
|
|
6675
|
+
let e = new Gi(void 0, Object.assign({ _directives: this.directives }, this.options));
|
|
6870
6676
|
this.atDirectives && this.onError(t, "MISSING_CHAR", "Missing directives-end indicator line"), e.range = [
|
|
6871
6677
|
0,
|
|
6872
6678
|
t,
|
|
@@ -6877,24 +6683,24 @@ var Na = class {
|
|
|
6877
6683
|
};
|
|
6878
6684
|
//#endregion
|
|
6879
6685
|
//#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/parse/cst-scalar.js
|
|
6880
|
-
function
|
|
6686
|
+
function Na(e, t = !0, n) {
|
|
6881
6687
|
if (e) {
|
|
6882
6688
|
let r = (e, t, r) => {
|
|
6883
6689
|
let i = typeof e == "number" ? e : Array.isArray(e) ? e[0] : e.offset;
|
|
6884
6690
|
if (n) n(i, t, r);
|
|
6885
|
-
else throw new
|
|
6691
|
+
else throw new Ji([i, i + 1], t, r);
|
|
6886
6692
|
};
|
|
6887
6693
|
switch (e.type) {
|
|
6888
6694
|
case "scalar":
|
|
6889
6695
|
case "single-quoted-scalar":
|
|
6890
|
-
case "double-quoted-scalar": return
|
|
6891
|
-
case "block-scalar": return
|
|
6696
|
+
case "double-quoted-scalar": return pa(e, t, r);
|
|
6697
|
+
case "block-scalar": return ua({ options: { strict: t } }, e, r);
|
|
6892
6698
|
}
|
|
6893
6699
|
}
|
|
6894
6700
|
return null;
|
|
6895
6701
|
}
|
|
6896
|
-
function
|
|
6897
|
-
let { implicitKey: n = !1, indent: r, inFlow: i = !1, offset: a = -1, type: o = "PLAIN" } = t, s =
|
|
6702
|
+
function Pa(e, t) {
|
|
6703
|
+
let { implicitKey: n = !1, indent: r, inFlow: i = !1, offset: a = -1, type: o = "PLAIN" } = t, s = Cr({
|
|
6898
6704
|
type: o,
|
|
6899
6705
|
value: e
|
|
6900
6706
|
}, {
|
|
@@ -6920,7 +6726,7 @@ function Fa(e, t) {
|
|
|
6920
6726
|
indent: r,
|
|
6921
6727
|
source: t
|
|
6922
6728
|
}];
|
|
6923
|
-
return
|
|
6729
|
+
return La(i, c) || i.push({
|
|
6924
6730
|
type: "newline",
|
|
6925
6731
|
offset: -1,
|
|
6926
6732
|
indent: r,
|
|
@@ -6956,7 +6762,7 @@ function Fa(e, t) {
|
|
|
6956
6762
|
};
|
|
6957
6763
|
}
|
|
6958
6764
|
}
|
|
6959
|
-
function
|
|
6765
|
+
function Fa(e, t, n = {}) {
|
|
6960
6766
|
let { afterKey: r = !1, implicitKey: i = !1, inFlow: a = !1, type: o } = n, s = "indent" in e ? e.indent : null;
|
|
6961
6767
|
if (r && typeof s == "number" && (s += 2), !o) switch (e.type) {
|
|
6962
6768
|
case "single-quoted-scalar":
|
|
@@ -6973,7 +6779,7 @@ function Ia(e, t, n = {}) {
|
|
|
6973
6779
|
}
|
|
6974
6780
|
default: o = "PLAIN";
|
|
6975
6781
|
}
|
|
6976
|
-
let c =
|
|
6782
|
+
let c = Cr({
|
|
6977
6783
|
type: o,
|
|
6978
6784
|
value: t
|
|
6979
6785
|
}, {
|
|
@@ -6988,18 +6794,18 @@ function Ia(e, t, n = {}) {
|
|
|
6988
6794
|
switch (c[0]) {
|
|
6989
6795
|
case "|":
|
|
6990
6796
|
case ">":
|
|
6991
|
-
|
|
6797
|
+
Ia(e, c);
|
|
6992
6798
|
break;
|
|
6993
6799
|
case "\"":
|
|
6994
|
-
|
|
6800
|
+
Ra(e, c, "double-quoted-scalar");
|
|
6995
6801
|
break;
|
|
6996
6802
|
case "'":
|
|
6997
|
-
|
|
6803
|
+
Ra(e, c, "single-quoted-scalar");
|
|
6998
6804
|
break;
|
|
6999
|
-
default:
|
|
6805
|
+
default: Ra(e, c, "scalar");
|
|
7000
6806
|
}
|
|
7001
6807
|
}
|
|
7002
|
-
function
|
|
6808
|
+
function Ia(e, t) {
|
|
7003
6809
|
let n = t.indexOf("\n"), r = t.substring(0, n), i = t.substring(n + 1) + "\n";
|
|
7004
6810
|
if (e.type === "block-scalar") {
|
|
7005
6811
|
let t = e.props[0];
|
|
@@ -7012,7 +6818,7 @@ function La(e, t) {
|
|
|
7012
6818
|
indent: n,
|
|
7013
6819
|
source: r
|
|
7014
6820
|
}];
|
|
7015
|
-
|
|
6821
|
+
La(a, "end" in e ? e.end : void 0) || a.push({
|
|
7016
6822
|
type: "newline",
|
|
7017
6823
|
offset: -1,
|
|
7018
6824
|
indent: n,
|
|
@@ -7027,7 +6833,7 @@ function La(e, t) {
|
|
|
7027
6833
|
});
|
|
7028
6834
|
}
|
|
7029
6835
|
}
|
|
7030
|
-
function
|
|
6836
|
+
function La(e, t) {
|
|
7031
6837
|
if (t) for (let n of t) switch (n.type) {
|
|
7032
6838
|
case "space":
|
|
7033
6839
|
case "comment":
|
|
@@ -7037,7 +6843,7 @@ function Ra(e, t) {
|
|
|
7037
6843
|
}
|
|
7038
6844
|
return !1;
|
|
7039
6845
|
}
|
|
7040
|
-
function
|
|
6846
|
+
function Ra(e, t, n) {
|
|
7041
6847
|
switch (e.type) {
|
|
7042
6848
|
case "scalar":
|
|
7043
6849
|
case "double-quoted-scalar":
|
|
@@ -7084,28 +6890,28 @@ function za(e, t, n) {
|
|
|
7084
6890
|
}
|
|
7085
6891
|
//#endregion
|
|
7086
6892
|
//#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/parse/cst-stringify.js
|
|
7087
|
-
var
|
|
7088
|
-
function
|
|
6893
|
+
var za = (e) => "type" in e ? Ba(e) : Va(e);
|
|
6894
|
+
function Ba(e) {
|
|
7089
6895
|
switch (e.type) {
|
|
7090
6896
|
case "block-scalar": {
|
|
7091
6897
|
let t = "";
|
|
7092
|
-
for (let n of e.props) t +=
|
|
6898
|
+
for (let n of e.props) t += Ba(n);
|
|
7093
6899
|
return t + e.source;
|
|
7094
6900
|
}
|
|
7095
6901
|
case "block-map":
|
|
7096
6902
|
case "block-seq": {
|
|
7097
6903
|
let t = "";
|
|
7098
|
-
for (let n of e.items) t +=
|
|
6904
|
+
for (let n of e.items) t += Va(n);
|
|
7099
6905
|
return t;
|
|
7100
6906
|
}
|
|
7101
6907
|
case "flow-collection": {
|
|
7102
6908
|
let t = e.start.source;
|
|
7103
|
-
for (let n of e.items) t +=
|
|
6909
|
+
for (let n of e.items) t += Va(n);
|
|
7104
6910
|
for (let n of e.end) t += n.source;
|
|
7105
6911
|
return t;
|
|
7106
6912
|
}
|
|
7107
6913
|
case "document": {
|
|
7108
|
-
let t =
|
|
6914
|
+
let t = Va(e);
|
|
7109
6915
|
if (e.end) for (let n of e.end) t += n.source;
|
|
7110
6916
|
return t;
|
|
7111
6917
|
}
|
|
@@ -7116,22 +6922,22 @@ function Va(e) {
|
|
|
7116
6922
|
}
|
|
7117
6923
|
}
|
|
7118
6924
|
}
|
|
7119
|
-
function
|
|
6925
|
+
function Va({ start: e, key: t, sep: n, value: r }) {
|
|
7120
6926
|
let i = "";
|
|
7121
6927
|
for (let t of e) i += t.source;
|
|
7122
|
-
if (t && (i +=
|
|
7123
|
-
return r && (i +=
|
|
6928
|
+
if (t && (i += Ba(t)), n) for (let e of n) i += e.source;
|
|
6929
|
+
return r && (i += Ba(r)), i;
|
|
7124
6930
|
}
|
|
7125
6931
|
//#endregion
|
|
7126
6932
|
//#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/parse/cst-visit.js
|
|
7127
|
-
var
|
|
7128
|
-
function
|
|
6933
|
+
var Ha = Symbol("break visit"), Ua = Symbol("skip children"), Wa = Symbol("remove item");
|
|
6934
|
+
function Ga(e, t) {
|
|
7129
6935
|
"type" in e && e.type === "document" && (e = {
|
|
7130
6936
|
start: e.start,
|
|
7131
6937
|
value: e.value
|
|
7132
|
-
}),
|
|
6938
|
+
}), Ka(Object.freeze([]), e, t);
|
|
7133
6939
|
}
|
|
7134
|
-
|
|
6940
|
+
Ga.BREAK = Ha, Ga.SKIP = Ua, Ga.REMOVE = Wa, Ga.itemAtPath = (e, t) => {
|
|
7135
6941
|
let n = e;
|
|
7136
6942
|
for (let [e, r] of t) {
|
|
7137
6943
|
let t = n?.[e];
|
|
@@ -7139,22 +6945,22 @@ Ka.BREAK = Ua, Ka.SKIP = Wa, Ka.REMOVE = Ga, Ka.itemAtPath = (e, t) => {
|
|
|
7139
6945
|
else return;
|
|
7140
6946
|
}
|
|
7141
6947
|
return n;
|
|
7142
|
-
},
|
|
7143
|
-
let n =
|
|
6948
|
+
}, Ga.parentCollection = (e, t) => {
|
|
6949
|
+
let n = Ga.itemAtPath(e, t.slice(0, -1)), r = t[t.length - 1][0], i = n?.[r];
|
|
7144
6950
|
if (i && "items" in i) return i;
|
|
7145
6951
|
throw Error("Parent collection not found");
|
|
7146
6952
|
};
|
|
7147
|
-
function
|
|
6953
|
+
function Ka(e, t, n) {
|
|
7148
6954
|
let r = n(t, e);
|
|
7149
6955
|
if (typeof r == "symbol") return r;
|
|
7150
6956
|
for (let i of ["key", "value"]) {
|
|
7151
6957
|
let a = t[i];
|
|
7152
6958
|
if (a && "items" in a) {
|
|
7153
6959
|
for (let t = 0; t < a.items.length; ++t) {
|
|
7154
|
-
let r =
|
|
6960
|
+
let r = Ka(Object.freeze(e.concat([[i, t]])), a.items[t], n);
|
|
7155
6961
|
if (typeof r == "number") t = r - 1;
|
|
7156
|
-
else if (r ===
|
|
7157
|
-
else r ===
|
|
6962
|
+
else if (r === Ha) return Ha;
|
|
6963
|
+
else r === Wa && (a.items.splice(t, 1), --t);
|
|
7158
6964
|
}
|
|
7159
6965
|
typeof r == "function" && i === "key" && (r = r(t, e));
|
|
7160
6966
|
}
|
|
@@ -7163,23 +6969,23 @@ function qa(e, t, n) {
|
|
|
7163
6969
|
}
|
|
7164
6970
|
//#endregion
|
|
7165
6971
|
//#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/parse/cst.js
|
|
7166
|
-
var
|
|
6972
|
+
var qa = /* @__PURE__ */ ee({
|
|
7167
6973
|
BOM: () => "",
|
|
7168
6974
|
DOCUMENT: () => "",
|
|
7169
6975
|
FLOW_END: () => "",
|
|
7170
6976
|
SCALAR: () => "",
|
|
7171
|
-
createScalarToken: () =>
|
|
7172
|
-
isCollection: () =>
|
|
7173
|
-
isScalar: () =>
|
|
7174
|
-
prettyToken: () =>
|
|
7175
|
-
resolveAsScalar: () =>
|
|
7176
|
-
setScalarValue: () =>
|
|
7177
|
-
stringify: () =>
|
|
7178
|
-
tokenType: () =>
|
|
7179
|
-
visit: () =>
|
|
7180
|
-
}),
|
|
6977
|
+
createScalarToken: () => Pa,
|
|
6978
|
+
isCollection: () => Ja,
|
|
6979
|
+
isScalar: () => Ya,
|
|
6980
|
+
prettyToken: () => Xa,
|
|
6981
|
+
resolveAsScalar: () => Na,
|
|
6982
|
+
setScalarValue: () => Fa,
|
|
6983
|
+
stringify: () => za,
|
|
6984
|
+
tokenType: () => Za,
|
|
6985
|
+
visit: () => Ga
|
|
6986
|
+
}), Ja = (e) => !!e && "items" in e, Ya = (e) => !!e && (e.type === "scalar" || e.type === "single-quoted-scalar" || e.type === "double-quoted-scalar" || e.type === "block-scalar");
|
|
7181
6987
|
/* istanbul ignore next */
|
|
7182
|
-
function
|
|
6988
|
+
function Xa(e) {
|
|
7183
6989
|
switch (e) {
|
|
7184
6990
|
case "": return "<BOM>";
|
|
7185
6991
|
case "": return "<DOC>";
|
|
@@ -7188,7 +6994,7 @@ function Za(e) {
|
|
|
7188
6994
|
default: return JSON.stringify(e);
|
|
7189
6995
|
}
|
|
7190
6996
|
}
|
|
7191
|
-
function
|
|
6997
|
+
function Za(e) {
|
|
7192
6998
|
switch (e) {
|
|
7193
6999
|
case "": return "byte-order-mark";
|
|
7194
7000
|
case "": return "doc-mode";
|
|
@@ -7225,7 +7031,7 @@ function Qa(e) {
|
|
|
7225
7031
|
}
|
|
7226
7032
|
//#endregion
|
|
7227
7033
|
//#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/parse/lexer.js
|
|
7228
|
-
function
|
|
7034
|
+
function Qa(e) {
|
|
7229
7035
|
switch (e) {
|
|
7230
7036
|
case void 0:
|
|
7231
7037
|
case " ":
|
|
@@ -7235,7 +7041,7 @@ function $a(e) {
|
|
|
7235
7041
|
default: return !1;
|
|
7236
7042
|
}
|
|
7237
7043
|
}
|
|
7238
|
-
var
|
|
7044
|
+
var $a = /* @__PURE__ */ new Set("0123456789ABCDEFabcdef"), eo = /* @__PURE__ */ new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()"), to = /* @__PURE__ */ new Set(",[]{}"), no = /* @__PURE__ */ new Set(" ,[]{}\n\r "), ro = (e) => !e || no.has(e), io = class {
|
|
7239
7045
|
constructor() {
|
|
7240
7046
|
this.atEnd = !1, this.blockScalarIndent = -1, this.blockScalarKeep = !1, this.buffer = "", this.flowKey = !1, this.flowLevel = 0, this.indentNext = 0, this.indentValue = 0, this.lineEndPos = null, this.next = null, this.pos = 0;
|
|
7241
7047
|
}
|
|
@@ -7269,7 +7075,7 @@ var eo = /* @__PURE__ */ new Set("0123456789ABCDEFabcdef"), to = /* @__PURE__ */
|
|
|
7269
7075
|
}
|
|
7270
7076
|
if (t === "-" || t === ".") {
|
|
7271
7077
|
let t = this.buffer.substr(e, 3);
|
|
7272
|
-
if ((t === "---" || t === "...") &&
|
|
7078
|
+
if ((t === "---" || t === "...") && Qa(this.buffer[e + 3])) return -1;
|
|
7273
7079
|
}
|
|
7274
7080
|
return e;
|
|
7275
7081
|
}
|
|
@@ -7331,14 +7137,14 @@ var eo = /* @__PURE__ */ new Set("0123456789ABCDEFabcdef"), to = /* @__PURE__ */
|
|
|
7331
7137
|
if (e === "-" || e === ".") {
|
|
7332
7138
|
if (!this.atEnd && !this.hasChars(4)) return this.setNext("line-start");
|
|
7333
7139
|
let e = this.peek(3);
|
|
7334
|
-
if ((e === "---" || e === "...") &&
|
|
7140
|
+
if ((e === "---" || e === "...") && Qa(this.charAt(3))) return yield* this.pushCount(3), this.indentValue = 0, this.indentNext = 0, e === "---" ? "doc" : "stream";
|
|
7335
7141
|
}
|
|
7336
|
-
return this.indentValue = yield* this.pushSpaces(!1), this.indentNext > this.indentValue &&
|
|
7142
|
+
return this.indentValue = yield* this.pushSpaces(!1), this.indentNext > this.indentValue && !Qa(this.charAt(1)) && (this.indentNext = this.indentValue), yield* this.parseBlockStart();
|
|
7337
7143
|
}
|
|
7338
7144
|
*parseBlockStart() {
|
|
7339
7145
|
let [e, t] = this.peek(2);
|
|
7340
7146
|
if (!t && !this.atEnd) return this.setNext("block-start");
|
|
7341
|
-
if ((e === "-" || e === "?" || e === ":") &&
|
|
7147
|
+
if ((e === "-" || e === "?" || e === ":") && Qa(t)) {
|
|
7342
7148
|
let e = (yield* this.pushCount(1)) + (yield* this.pushSpaces(!0));
|
|
7343
7149
|
return this.indentNext = this.indentValue + 1, this.indentValue += e, "block-start";
|
|
7344
7150
|
}
|
|
@@ -7356,7 +7162,7 @@ var eo = /* @__PURE__ */ new Set("0123456789ABCDEFabcdef"), to = /* @__PURE__ */
|
|
|
7356
7162
|
case "[": return yield* this.pushCount(1), this.flowKey = !1, this.flowLevel = 1, "flow";
|
|
7357
7163
|
case "}":
|
|
7358
7164
|
case "]": return yield* this.pushCount(1), "doc";
|
|
7359
|
-
case "*": return yield* this.pushUntil(
|
|
7165
|
+
case "*": return yield* this.pushUntil(ro), "doc";
|
|
7360
7166
|
case "\"":
|
|
7361
7167
|
case "'": return yield* this.parseQuotedScalar();
|
|
7362
7168
|
case "|":
|
|
@@ -7371,7 +7177,7 @@ var eo = /* @__PURE__ */ new Set("0123456789ABCDEFabcdef"), to = /* @__PURE__ */
|
|
|
7371
7177
|
while (e + t > 0);
|
|
7372
7178
|
let r = this.getLine();
|
|
7373
7179
|
if (r === null) return this.setNext("flow");
|
|
7374
|
-
if ((n !== -1 && n < this.indentNext && r[0] !== "#" || n === 0 && (r.startsWith("---") || r.startsWith("...")) &&
|
|
7180
|
+
if ((n !== -1 && n < this.indentNext && r[0] !== "#" || n === 0 && (r.startsWith("---") || r.startsWith("...")) && Qa(r[3])) && (n !== this.indentNext - 1 || this.flowLevel !== 1 || r[0] !== "]" && r[0] !== "}")) return this.flowLevel = 0, yield "", yield* this.parseLineStart();
|
|
7375
7181
|
let i = 0;
|
|
7376
7182
|
for (; r[i] === ",";) i += yield* this.pushCount(1), i += yield* this.pushSpaces(!0), this.flowKey = !1;
|
|
7377
7183
|
switch (i += yield* this.pushIndicators(), r[i]) {
|
|
@@ -7381,12 +7187,12 @@ var eo = /* @__PURE__ */ new Set("0123456789ABCDEFabcdef"), to = /* @__PURE__ */
|
|
|
7381
7187
|
case "[": return yield* this.pushCount(1), this.flowKey = !1, this.flowLevel += 1, "flow";
|
|
7382
7188
|
case "}":
|
|
7383
7189
|
case "]": return yield* this.pushCount(1), this.flowKey = !0, --this.flowLevel, this.flowLevel ? "flow" : "doc";
|
|
7384
|
-
case "*": return yield* this.pushUntil(
|
|
7190
|
+
case "*": return yield* this.pushUntil(ro), "flow";
|
|
7385
7191
|
case "\"":
|
|
7386
7192
|
case "'": return this.flowKey = !0, yield* this.parseQuotedScalar();
|
|
7387
7193
|
case ":": {
|
|
7388
7194
|
let e = this.charAt(1);
|
|
7389
|
-
if (this.flowKey ||
|
|
7195
|
+
if (this.flowKey || Qa(e) || e === ",") return this.flowKey = !1, yield* this.pushCount(1), yield* this.pushSpaces(!0), "flow";
|
|
7390
7196
|
}
|
|
7391
7197
|
default: return this.flowKey = !1, yield* this.parsePlainScalar();
|
|
7392
7198
|
}
|
|
@@ -7424,7 +7230,7 @@ var eo = /* @__PURE__ */ new Set("0123456789ABCDEFabcdef"), to = /* @__PURE__ */
|
|
|
7424
7230
|
else if (t > "0" && t <= "9") this.blockScalarIndent = Number(t) - 1;
|
|
7425
7231
|
else if (t !== "-") break;
|
|
7426
7232
|
}
|
|
7427
|
-
return yield* this.pushUntil((e) =>
|
|
7233
|
+
return yield* this.pushUntil((e) => Qa(e) || e === "#");
|
|
7428
7234
|
}
|
|
7429
7235
|
*parseBlockScalar() {
|
|
7430
7236
|
let e = this.pos - 1, t = 0, n;
|
|
@@ -7474,18 +7280,18 @@ var eo = /* @__PURE__ */ new Set("0123456789ABCDEFabcdef"), to = /* @__PURE__ */
|
|
|
7474
7280
|
let e = this.flowLevel > 0, t = this.pos - 1, n = this.pos - 1, r;
|
|
7475
7281
|
for (; r = this.buffer[++n];) if (r === ":") {
|
|
7476
7282
|
let r = this.buffer[n + 1];
|
|
7477
|
-
if (
|
|
7283
|
+
if (Qa(r) || e && to.has(r)) break;
|
|
7478
7284
|
t = n;
|
|
7479
|
-
} else if (
|
|
7285
|
+
} else if (Qa(r)) {
|
|
7480
7286
|
let i = this.buffer[n + 1];
|
|
7481
|
-
if (r === "\r" && (i === "\n" ? (n += 1, r = "\n", i = this.buffer[n + 1]) : t = n), i === "#" || e &&
|
|
7287
|
+
if (r === "\r" && (i === "\n" ? (n += 1, r = "\n", i = this.buffer[n + 1]) : t = n), i === "#" || e && to.has(i)) break;
|
|
7482
7288
|
if (r === "\n") {
|
|
7483
7289
|
let e = this.continueScalar(n + 1);
|
|
7484
7290
|
if (e === -1) break;
|
|
7485
7291
|
n = Math.max(n, e - 2);
|
|
7486
7292
|
}
|
|
7487
7293
|
} else {
|
|
7488
|
-
if (e &&
|
|
7294
|
+
if (e && to.has(r)) break;
|
|
7489
7295
|
t = n;
|
|
7490
7296
|
}
|
|
7491
7297
|
return !r && !this.atEnd ? this.setNext("plain-scalar") : (yield "", yield* this.pushToIndex(t + 1, !0), e ? "flow" : "doc");
|
|
@@ -7505,13 +7311,13 @@ var eo = /* @__PURE__ */ new Set("0123456789ABCDEFabcdef"), to = /* @__PURE__ */
|
|
|
7505
7311
|
e += yield* this.pushTag(), e += yield* this.pushSpaces(!0);
|
|
7506
7312
|
continue loop;
|
|
7507
7313
|
case "&":
|
|
7508
|
-
e += yield* this.pushUntil(
|
|
7314
|
+
e += yield* this.pushUntil(ro), e += yield* this.pushSpaces(!0);
|
|
7509
7315
|
continue loop;
|
|
7510
7316
|
case "-":
|
|
7511
7317
|
case "?":
|
|
7512
7318
|
case ":": {
|
|
7513
7319
|
let t = this.flowLevel > 0, n = this.charAt(1);
|
|
7514
|
-
if (
|
|
7320
|
+
if (Qa(n) || t && to.has(n)) {
|
|
7515
7321
|
t ? this.flowKey &&= !1 : this.indentNext = this.indentValue + 1, e += yield* this.pushCount(1), e += yield* this.pushSpaces(!0);
|
|
7516
7322
|
continue loop;
|
|
7517
7323
|
}
|
|
@@ -7524,13 +7330,13 @@ var eo = /* @__PURE__ */ new Set("0123456789ABCDEFabcdef"), to = /* @__PURE__ */
|
|
|
7524
7330
|
*pushTag() {
|
|
7525
7331
|
if (this.charAt(1) === "<") {
|
|
7526
7332
|
let e = this.pos + 2, t = this.buffer[e];
|
|
7527
|
-
for (;
|
|
7333
|
+
for (; !Qa(t) && t !== ">";) t = this.buffer[++e];
|
|
7528
7334
|
return yield* this.pushToIndex(t === ">" ? e + 1 : e, !1);
|
|
7529
7335
|
}
|
|
7530
7336
|
{
|
|
7531
7337
|
let e = this.pos + 1, t = this.buffer[e];
|
|
7532
|
-
for (; t;) if (
|
|
7533
|
-
else if (t === "%" &&
|
|
7338
|
+
for (; t;) if (eo.has(t)) t = this.buffer[++e];
|
|
7339
|
+
else if (t === "%" && $a.has(this.buffer[e + 1]) && $a.has(this.buffer[e + 2])) t = this.buffer[e += 3];
|
|
7534
7340
|
else break;
|
|
7535
7341
|
return yield* this.pushToIndex(e, !1);
|
|
7536
7342
|
}
|
|
@@ -7552,7 +7358,7 @@ var eo = /* @__PURE__ */ new Set("0123456789ABCDEFabcdef"), to = /* @__PURE__ */
|
|
|
7552
7358
|
for (; !e(n);) n = this.buffer[++t];
|
|
7553
7359
|
return yield* this.pushToIndex(t, !1);
|
|
7554
7360
|
}
|
|
7555
|
-
},
|
|
7361
|
+
}, ao = class {
|
|
7556
7362
|
constructor() {
|
|
7557
7363
|
this.lineStarts = [], this.addNewLine = (e) => this.lineStarts.push(e), this.linePos = (e) => {
|
|
7558
7364
|
let t = 0, n = this.lineStarts.length;
|
|
@@ -7578,11 +7384,11 @@ var eo = /* @__PURE__ */ new Set("0123456789ABCDEFabcdef"), to = /* @__PURE__ */
|
|
|
7578
7384
|
};
|
|
7579
7385
|
//#endregion
|
|
7580
7386
|
//#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/parse/parser.js
|
|
7581
|
-
function
|
|
7387
|
+
function oo(e, t) {
|
|
7582
7388
|
for (let n = 0; n < e.length; ++n) if (e[n].type === t) return !0;
|
|
7583
7389
|
return !1;
|
|
7584
7390
|
}
|
|
7585
|
-
function
|
|
7391
|
+
function so(e) {
|
|
7586
7392
|
for (let t = 0; t < e.length; ++t) switch (e[t].type) {
|
|
7587
7393
|
case "space":
|
|
7588
7394
|
case "comment":
|
|
@@ -7591,7 +7397,7 @@ function co(e) {
|
|
|
7591
7397
|
}
|
|
7592
7398
|
return -1;
|
|
7593
7399
|
}
|
|
7594
|
-
function
|
|
7400
|
+
function co(e) {
|
|
7595
7401
|
switch (e?.type) {
|
|
7596
7402
|
case "alias":
|
|
7597
7403
|
case "scalar":
|
|
@@ -7601,7 +7407,7 @@ function lo(e) {
|
|
|
7601
7407
|
default: return !1;
|
|
7602
7408
|
}
|
|
7603
7409
|
}
|
|
7604
|
-
function
|
|
7410
|
+
function lo(e) {
|
|
7605
7411
|
switch (e.type) {
|
|
7606
7412
|
case "document": return e.start;
|
|
7607
7413
|
case "block-map": {
|
|
@@ -7613,7 +7419,7 @@ function uo(e) {
|
|
|
7613
7419
|
default: return [];
|
|
7614
7420
|
}
|
|
7615
7421
|
}
|
|
7616
|
-
function
|
|
7422
|
+
function uo(e) {
|
|
7617
7423
|
if (e.length === 0) return [];
|
|
7618
7424
|
let t = e.length;
|
|
7619
7425
|
loop: for (; --t >= 0;) switch (e[t].type) {
|
|
@@ -7626,16 +7432,16 @@ function fo(e) {
|
|
|
7626
7432
|
for (; e[++t]?.type === "space";);
|
|
7627
7433
|
return e.splice(t, e.length);
|
|
7628
7434
|
}
|
|
7629
|
-
function
|
|
7435
|
+
function fo(e, t) {
|
|
7630
7436
|
if (t.length < 1e5) Array.prototype.push.apply(e, t);
|
|
7631
7437
|
else for (let n = 0; n < t.length; ++n) e.push(t[n]);
|
|
7632
7438
|
}
|
|
7633
|
-
function
|
|
7634
|
-
if (e.start.type === "flow-seq-start") for (let t of e.items) t.sep && !t.value && !
|
|
7439
|
+
function po(e) {
|
|
7440
|
+
if (e.start.type === "flow-seq-start") for (let t of e.items) t.sep && !t.value && !oo(t.start, "explicit-key-ind") && !oo(t.sep, "map-value-ind") && (t.key && (t.value = t.key), delete t.key, co(t.value) ? t.value.end ? fo(t.value.end, t.sep) : t.value.end = t.sep : fo(t.start, t.sep), delete t.sep);
|
|
7635
7441
|
}
|
|
7636
|
-
var
|
|
7442
|
+
var mo = class {
|
|
7637
7443
|
constructor(e) {
|
|
7638
|
-
this.atNewLine = !0, this.atScalar = !1, this.indent = 0, this.offset = 0, this.onKeyLine = !1, this.stack = [], this.source = "", this.type = "", this.lexer = new
|
|
7444
|
+
this.atNewLine = !0, this.atScalar = !1, this.indent = 0, this.offset = 0, this.onKeyLine = !1, this.stack = [], this.source = "", this.type = "", this.lexer = new io(), this.onNewLine = e;
|
|
7639
7445
|
}
|
|
7640
7446
|
*parse(e, t = !1) {
|
|
7641
7447
|
this.onNewLine && this.offset === 0 && this.onNewLine(0);
|
|
@@ -7647,7 +7453,7 @@ var ho = class {
|
|
|
7647
7453
|
this.atScalar = !1, yield* this.step(), this.offset += e.length;
|
|
7648
7454
|
return;
|
|
7649
7455
|
}
|
|
7650
|
-
let t =
|
|
7456
|
+
let t = Za(e);
|
|
7651
7457
|
if (!t) {
|
|
7652
7458
|
let t = `Not a YAML token: ${e}`;
|
|
7653
7459
|
yield* this.pop({
|
|
@@ -7730,7 +7536,7 @@ var ho = class {
|
|
|
7730
7536
|
else if (this.stack.length === 0) yield t;
|
|
7731
7537
|
else {
|
|
7732
7538
|
let e = this.peek(1);
|
|
7733
|
-
switch (t.type === "block-scalar" ? t.indent = "indent" in e ? e.indent : 0 : t.type === "flow-collection" && e.type === "document" && (t.indent = 0), t.type === "flow-collection" &&
|
|
7539
|
+
switch (t.type === "block-scalar" ? t.indent = "indent" in e ? e.indent : 0 : t.type === "flow-collection" && e.type === "document" && (t.indent = 0), t.type === "flow-collection" && po(t), e.type) {
|
|
7734
7540
|
case "document":
|
|
7735
7541
|
e.value = t;
|
|
7736
7542
|
break;
|
|
@@ -7782,7 +7588,7 @@ var ho = class {
|
|
|
7782
7588
|
}
|
|
7783
7589
|
if ((e.type === "document" || e.type === "block-map" || e.type === "block-seq") && (t.type === "block-map" || t.type === "block-seq")) {
|
|
7784
7590
|
let n = t.items[t.items.length - 1];
|
|
7785
|
-
n && !n.sep && !n.value && n.start.length > 0 &&
|
|
7591
|
+
n && !n.sep && !n.value && n.start.length > 0 && so(n.start) === -1 && (t.indent === 0 || n.start.every((e) => e.type !== "comment" || e.indent < t.indent)) && (e.type === "document" ? e.end = n.start : e.items.push({ start: n.start }), t.items.splice(-1, 1));
|
|
7786
7592
|
}
|
|
7787
7593
|
}
|
|
7788
7594
|
}
|
|
@@ -7823,7 +7629,7 @@ var ho = class {
|
|
|
7823
7629
|
if (e.value) return yield* this.lineEnd(e);
|
|
7824
7630
|
switch (this.type) {
|
|
7825
7631
|
case "doc-start":
|
|
7826
|
-
|
|
7632
|
+
so(e.start) === -1 ? e.start.push(this.sourceToken) : (yield* this.pop(), yield* this.step());
|
|
7827
7633
|
return;
|
|
7828
7634
|
case "anchor":
|
|
7829
7635
|
case "tag":
|
|
@@ -7843,7 +7649,7 @@ var ho = class {
|
|
|
7843
7649
|
}
|
|
7844
7650
|
*scalar(e) {
|
|
7845
7651
|
if (this.type === "map-value-ind") {
|
|
7846
|
-
let t =
|
|
7652
|
+
let t = uo(lo(this.peek(2))), n;
|
|
7847
7653
|
e.end ? (n = e.end, n.push(this.sourceToken), delete e.end) : n = [this.sourceToken];
|
|
7848
7654
|
let r = {
|
|
7849
7655
|
type: "block-map",
|
|
@@ -7893,7 +7699,7 @@ var ho = class {
|
|
|
7893
7699
|
if (this.atIndentedComment(t.start, e.indent)) {
|
|
7894
7700
|
let n = e.items[e.items.length - 2]?.value?.end;
|
|
7895
7701
|
if (Array.isArray(n)) {
|
|
7896
|
-
|
|
7702
|
+
fo(n, t.start), n.push(this.sourceToken), e.items.pop();
|
|
7897
7703
|
return;
|
|
7898
7704
|
}
|
|
7899
7705
|
}
|
|
@@ -7942,12 +7748,12 @@ var ho = class {
|
|
|
7942
7748
|
case "map-value-ind":
|
|
7943
7749
|
if (t.explicitKey) {
|
|
7944
7750
|
if (!t.sep) {
|
|
7945
|
-
if (
|
|
7751
|
+
if (oo(t.start, "newline")) Object.assign(t, {
|
|
7946
7752
|
key: null,
|
|
7947
7753
|
sep: [this.sourceToken]
|
|
7948
7754
|
});
|
|
7949
7755
|
else {
|
|
7950
|
-
let e =
|
|
7756
|
+
let e = uo(t.start);
|
|
7951
7757
|
this.stack.push({
|
|
7952
7758
|
type: "block-map",
|
|
7953
7759
|
offset: this.offset,
|
|
@@ -7964,7 +7770,7 @@ var ho = class {
|
|
|
7964
7770
|
key: null,
|
|
7965
7771
|
sep: [this.sourceToken]
|
|
7966
7772
|
});
|
|
7967
|
-
else if (
|
|
7773
|
+
else if (oo(t.sep, "map-value-ind")) this.stack.push({
|
|
7968
7774
|
type: "block-map",
|
|
7969
7775
|
offset: this.offset,
|
|
7970
7776
|
indent: this.indent,
|
|
@@ -7974,8 +7780,8 @@ var ho = class {
|
|
|
7974
7780
|
sep: [this.sourceToken]
|
|
7975
7781
|
}]
|
|
7976
7782
|
});
|
|
7977
|
-
else if (
|
|
7978
|
-
let e =
|
|
7783
|
+
else if (co(t.key) && !oo(t.sep, "newline")) {
|
|
7784
|
+
let e = uo(t.start), n = t.key, r = t.sep;
|
|
7979
7785
|
r.push(this.sourceToken), delete t.key, delete t.sep, this.stack.push({
|
|
7980
7786
|
type: "block-map",
|
|
7981
7787
|
offset: this.offset,
|
|
@@ -7991,7 +7797,7 @@ var ho = class {
|
|
|
7991
7797
|
start: i,
|
|
7992
7798
|
key: null,
|
|
7993
7799
|
sep: [this.sourceToken]
|
|
7994
|
-
}) :
|
|
7800
|
+
}) : oo(t.sep, "map-value-ind") ? this.stack.push({
|
|
7995
7801
|
type: "block-map",
|
|
7996
7802
|
offset: this.offset,
|
|
7997
7803
|
indent: this.indent,
|
|
@@ -8025,7 +7831,7 @@ var ho = class {
|
|
|
8025
7831
|
let r = this.startBlockValue(e);
|
|
8026
7832
|
if (r) {
|
|
8027
7833
|
if (r.type === "block-seq") {
|
|
8028
|
-
if (!t.explicitKey && t.sep && !
|
|
7834
|
+
if (!t.explicitKey && t.sep && !oo(t.sep, "newline")) {
|
|
8029
7835
|
yield* this.pop({
|
|
8030
7836
|
type: "error",
|
|
8031
7837
|
offset: this.offset,
|
|
@@ -8059,7 +7865,7 @@ var ho = class {
|
|
|
8059
7865
|
if (this.atIndentedComment(t.start, e.indent)) {
|
|
8060
7866
|
let n = e.items[e.items.length - 2]?.value?.end;
|
|
8061
7867
|
if (Array.isArray(n)) {
|
|
8062
|
-
|
|
7868
|
+
fo(n, t.start), n.push(this.sourceToken), e.items.pop();
|
|
8063
7869
|
return;
|
|
8064
7870
|
}
|
|
8065
7871
|
}
|
|
@@ -8073,7 +7879,7 @@ var ho = class {
|
|
|
8073
7879
|
return;
|
|
8074
7880
|
case "seq-item-ind":
|
|
8075
7881
|
if (this.indent !== e.indent) break;
|
|
8076
|
-
t.value ||
|
|
7882
|
+
t.value || oo(t.start, "seq-item-ind") ? e.items.push({ start: [this.sourceToken] }) : t.start.push(this.sourceToken);
|
|
8077
7883
|
return;
|
|
8078
7884
|
}
|
|
8079
7885
|
if (this.indent > e.indent) {
|
|
@@ -8142,8 +7948,8 @@ var ho = class {
|
|
|
8142
7948
|
let t = this.peek(2);
|
|
8143
7949
|
if (t.type === "block-map" && (this.type === "map-value-ind" && t.indent === e.indent || this.type === "newline" && !t.items[t.items.length - 1].sep)) yield* this.pop(), yield* this.step();
|
|
8144
7950
|
else if (this.type === "map-value-ind" && t.type !== "flow-collection") {
|
|
8145
|
-
let n =
|
|
8146
|
-
|
|
7951
|
+
let n = uo(lo(t));
|
|
7952
|
+
po(e);
|
|
8147
7953
|
let r = e.end.splice(1, e.end.length);
|
|
8148
7954
|
r.push(this.sourceToken);
|
|
8149
7955
|
let i = {
|
|
@@ -8202,7 +8008,7 @@ var ho = class {
|
|
|
8202
8008
|
};
|
|
8203
8009
|
case "explicit-key-ind": {
|
|
8204
8010
|
this.onKeyLine = !0;
|
|
8205
|
-
let t =
|
|
8011
|
+
let t = uo(lo(e));
|
|
8206
8012
|
return t.push(this.sourceToken), {
|
|
8207
8013
|
type: "block-map",
|
|
8208
8014
|
offset: this.offset,
|
|
@@ -8215,7 +8021,7 @@ var ho = class {
|
|
|
8215
8021
|
}
|
|
8216
8022
|
case "map-value-ind": {
|
|
8217
8023
|
this.onKeyLine = !0;
|
|
8218
|
-
let t =
|
|
8024
|
+
let t = uo(lo(e));
|
|
8219
8025
|
return {
|
|
8220
8026
|
type: "block-map",
|
|
8221
8027
|
offset: this.offset,
|
|
@@ -8253,39 +8059,39 @@ var ho = class {
|
|
|
8253
8059
|
};
|
|
8254
8060
|
//#endregion
|
|
8255
8061
|
//#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/public-api.js
|
|
8256
|
-
function
|
|
8062
|
+
function ho(e) {
|
|
8257
8063
|
let t = e.prettyErrors !== !1;
|
|
8258
8064
|
return {
|
|
8259
|
-
lineCounter: e.lineCounter || t && new
|
|
8065
|
+
lineCounter: e.lineCounter || t && new ao() || null,
|
|
8260
8066
|
prettyErrors: t
|
|
8261
8067
|
};
|
|
8262
8068
|
}
|
|
8263
|
-
function
|
|
8264
|
-
let { lineCounter: n, prettyErrors: r } =
|
|
8265
|
-
if (r && n) for (let t of o) t.errors.forEach(
|
|
8069
|
+
function go(e, t = {}) {
|
|
8070
|
+
let { lineCounter: n, prettyErrors: r } = ho(t), i = new mo(n?.addNewLine), a = new Ma(t), o = Array.from(a.compose(i.parse(e)));
|
|
8071
|
+
if (r && n) for (let t of o) t.errors.forEach(Xi(e, n)), t.warnings.forEach(Xi(e, n));
|
|
8266
8072
|
return o.length > 0 ? o : Object.assign([], { empty: !0 }, a.streamInfo());
|
|
8267
8073
|
}
|
|
8268
|
-
function
|
|
8269
|
-
let { lineCounter: n, prettyErrors: r } =
|
|
8074
|
+
function _o(e, t = {}) {
|
|
8075
|
+
let { lineCounter: n, prettyErrors: r } = ho(t), i = new mo(n?.addNewLine), a = new Ma(t), o = null;
|
|
8270
8076
|
for (let t of a.compose(i.parse(e), !0, e.length)) if (!o) o = t;
|
|
8271
8077
|
else if (o.options.logLevel !== "silent") {
|
|
8272
|
-
o.errors.push(new
|
|
8078
|
+
o.errors.push(new Ji(t.range.slice(0, 2), "MULTIPLE_DOCS", "Source contains multiple documents; please use YAML.parseAllDocuments()"));
|
|
8273
8079
|
break;
|
|
8274
8080
|
}
|
|
8275
|
-
return r && n && (o.errors.forEach(
|
|
8081
|
+
return r && n && (o.errors.forEach(Xi(e, n)), o.warnings.forEach(Xi(e, n))), o;
|
|
8276
8082
|
}
|
|
8277
|
-
function
|
|
8083
|
+
function vo(e, t, n) {
|
|
8278
8084
|
let r;
|
|
8279
8085
|
typeof t == "function" ? r = t : n === void 0 && t && typeof t == "object" && (n = t);
|
|
8280
|
-
let i =
|
|
8086
|
+
let i = _o(e, n);
|
|
8281
8087
|
if (!i) return null;
|
|
8282
|
-
if (i.warnings.forEach((e) =>
|
|
8088
|
+
if (i.warnings.forEach((e) => kr(i.options.logLevel, e)), i.errors.length > 0) {
|
|
8283
8089
|
if (i.options.logLevel !== "silent") throw i.errors[0];
|
|
8284
8090
|
i.errors = [];
|
|
8285
8091
|
}
|
|
8286
8092
|
return i.toJS(Object.assign({ reviver: r }, n));
|
|
8287
8093
|
}
|
|
8288
|
-
function
|
|
8094
|
+
function yo(e, t, n) {
|
|
8289
8095
|
let r = null;
|
|
8290
8096
|
if (typeof t == "function" || Array.isArray(t) ? r = t : n === void 0 && t && (n = t), typeof n == "string" && (n = n.length), typeof n == "number") {
|
|
8291
8097
|
let e = Math.round(n);
|
|
@@ -8295,72 +8101,72 @@ function bo(e, t, n) {
|
|
|
8295
8101
|
let { keepUndefined: e } = n ?? t ?? {};
|
|
8296
8102
|
if (!e) return;
|
|
8297
8103
|
}
|
|
8298
|
-
return
|
|
8104
|
+
return kn(e) && !r ? e.toString(n) : new Gi(e, r, n).toString(n);
|
|
8299
8105
|
}
|
|
8300
8106
|
//#endregion
|
|
8301
8107
|
//#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/index.js
|
|
8302
|
-
var
|
|
8303
|
-
Alias: () =>
|
|
8304
|
-
CST: () =>
|
|
8305
|
-
Composer: () =>
|
|
8306
|
-
Document: () =>
|
|
8307
|
-
Lexer: () =>
|
|
8308
|
-
LineCounter: () =>
|
|
8108
|
+
var bo = /* @__PURE__ */ ee({
|
|
8109
|
+
Alias: () => Zn,
|
|
8110
|
+
CST: () => qa,
|
|
8111
|
+
Composer: () => Ma,
|
|
8112
|
+
Document: () => Gi,
|
|
8113
|
+
Lexer: () => io,
|
|
8114
|
+
LineCounter: () => ao,
|
|
8309
8115
|
Pair: () => X,
|
|
8310
|
-
Parser: () =>
|
|
8116
|
+
Parser: () => mo,
|
|
8311
8117
|
Scalar: () => Y,
|
|
8312
|
-
Schema: () =>
|
|
8313
|
-
YAMLError: () =>
|
|
8118
|
+
Schema: () => Ui,
|
|
8119
|
+
YAMLError: () => qi,
|
|
8314
8120
|
YAMLMap: () => Z,
|
|
8315
|
-
YAMLParseError: () =>
|
|
8316
|
-
YAMLSeq: () =>
|
|
8317
|
-
YAMLWarning: () =>
|
|
8318
|
-
isAlias: () =>
|
|
8121
|
+
YAMLParseError: () => Ji,
|
|
8122
|
+
YAMLSeq: () => Gr,
|
|
8123
|
+
YAMLWarning: () => Yi,
|
|
8124
|
+
isAlias: () => On,
|
|
8319
8125
|
isCollection: () => G,
|
|
8320
|
-
isDocument: () =>
|
|
8321
|
-
isMap: () =>
|
|
8126
|
+
isDocument: () => kn,
|
|
8127
|
+
isMap: () => An,
|
|
8322
8128
|
isNode: () => K,
|
|
8323
8129
|
isPair: () => U,
|
|
8324
8130
|
isScalar: () => W,
|
|
8325
|
-
isSeq: () =>
|
|
8326
|
-
parse: () =>
|
|
8327
|
-
parseAllDocuments: () =>
|
|
8328
|
-
parseDocument: () =>
|
|
8329
|
-
stringify: () =>
|
|
8330
|
-
visit: () =>
|
|
8331
|
-
visitAsync: () =>
|
|
8332
|
-
}),
|
|
8131
|
+
isSeq: () => jn,
|
|
8132
|
+
parse: () => vo,
|
|
8133
|
+
parseAllDocuments: () => go,
|
|
8134
|
+
parseDocument: () => _o,
|
|
8135
|
+
stringify: () => yo,
|
|
8136
|
+
visit: () => Fn,
|
|
8137
|
+
visitAsync: () => Ln
|
|
8138
|
+
}), xo = class {
|
|
8333
8139
|
baseDir;
|
|
8334
8140
|
maxDepth;
|
|
8335
8141
|
constructor(e, t = 5) {
|
|
8336
|
-
this.baseDir =
|
|
8142
|
+
this.baseDir = f.resolve(e), this.maxDepth = t;
|
|
8337
8143
|
}
|
|
8338
8144
|
resolve(t, n = /* @__PURE__ */ new Set(), r = 0) {
|
|
8339
8145
|
if (r > this.maxDepth) throw Error(`Max include depth of ${this.maxDepth} exceeded at ${t}`);
|
|
8340
|
-
let i =
|
|
8146
|
+
let i = f.resolve(this.baseDir, t);
|
|
8341
8147
|
if (!i.startsWith(this.baseDir)) throw Error(`Security Violation: Include path '${t}' is outside workspace directory.`);
|
|
8342
8148
|
if (n.has(i)) {
|
|
8343
8149
|
let e = Array.from(n).concat(i).join(" -> ");
|
|
8344
8150
|
throw Error(`Circular 'includes' dependency detected: ${e}`);
|
|
8345
8151
|
}
|
|
8346
8152
|
if (n.add(i), !e.existsSync(i)) throw Error(`Included workflow partial not found: ${t}`);
|
|
8347
|
-
let
|
|
8348
|
-
if (Array.isArray(
|
|
8349
|
-
for (let e of
|
|
8153
|
+
let a = e.readFileSync(i, "utf-8"), o = bo.parse(a);
|
|
8154
|
+
if (Array.isArray(o.includes)) {
|
|
8155
|
+
for (let e of o.includes) {
|
|
8350
8156
|
let t = this.resolve(e, new Set(n), r + 1);
|
|
8351
|
-
|
|
8157
|
+
o.steps = [...t.steps || [], ...o.steps || []], o.env = {
|
|
8352
8158
|
...t.env,
|
|
8353
|
-
...
|
|
8159
|
+
...o.env
|
|
8354
8160
|
};
|
|
8355
8161
|
}
|
|
8356
|
-
delete
|
|
8162
|
+
delete o.includes;
|
|
8357
8163
|
}
|
|
8358
|
-
return
|
|
8164
|
+
return o;
|
|
8359
8165
|
}
|
|
8360
8166
|
};
|
|
8361
8167
|
//#endregion
|
|
8362
8168
|
//#region src/parser/matrix-expander.ts
|
|
8363
|
-
function
|
|
8169
|
+
function So(e) {
|
|
8364
8170
|
if (!e.strategy?.matrix || Object.keys(e.strategy.matrix).length === 0) return [e];
|
|
8365
8171
|
let t = e.strategy.matrix;
|
|
8366
8172
|
return Object.keys(t).reduce((e, n) => {
|
|
@@ -8387,16 +8193,16 @@ function Co(e) {
|
|
|
8387
8193
|
}
|
|
8388
8194
|
//#endregion
|
|
8389
8195
|
//#region src/parser/yaml-loader.ts
|
|
8390
|
-
var
|
|
8196
|
+
var Co = class e {
|
|
8391
8197
|
static async from(t) {
|
|
8392
|
-
let n =
|
|
8198
|
+
let n = p(t) ? h("/", t) : m(process.cwd(), h("/", t)), r = (await g(n, { withFileTypes: !0 })).filter((e) => e.isFile() && (e.name.endsWith(".yml") || e.name.endsWith(".yaml"))).map((e) => m(n, e.name)), i = [], a = new xo(t);
|
|
8393
8199
|
for (let t of r) i.push(...await e.loadFile(t, a));
|
|
8394
8200
|
return i;
|
|
8395
8201
|
}
|
|
8396
8202
|
static loadFile(e, t) {
|
|
8397
8203
|
let n = [];
|
|
8398
8204
|
try {
|
|
8399
|
-
let r =
|
|
8205
|
+
let r = So(t.resolve(e));
|
|
8400
8206
|
for (let t of r) {
|
|
8401
8207
|
if (typeof t.on != "object") {
|
|
8402
8208
|
console.error(`on: not defined in ${e}! Ignoring this workflow.`);
|
|
@@ -8404,14 +8210,15 @@ var wo = class e {
|
|
|
8404
8210
|
}
|
|
8405
8211
|
let r = Object.keys(t.on)[0] || "generic";
|
|
8406
8212
|
n.push({
|
|
8407
|
-
id: (t.id || t.name)?.toLowerCase().replace(/[^a-z0-9]/g, "-") ??
|
|
8213
|
+
id: (t.id || t.name)?.toLowerCase().replace(/[^a-z0-9]/g, "-") ?? d(),
|
|
8408
8214
|
name: t.name,
|
|
8409
8215
|
on: {
|
|
8410
8216
|
provider: r,
|
|
8411
8217
|
if: t.on[r]?.if
|
|
8412
8218
|
},
|
|
8413
8219
|
concurrency: t.concurrency,
|
|
8414
|
-
steps: t.steps
|
|
8220
|
+
steps: t.steps,
|
|
8221
|
+
env: t.env
|
|
8415
8222
|
});
|
|
8416
8223
|
}
|
|
8417
8224
|
} catch (t) {
|
|
@@ -8419,6 +8226,206 @@ var wo = class e {
|
|
|
8419
8226
|
}
|
|
8420
8227
|
return n;
|
|
8421
8228
|
}
|
|
8229
|
+
}, wo = class e {
|
|
8230
|
+
server;
|
|
8231
|
+
preprocessors = /* @__PURE__ */ new Map();
|
|
8232
|
+
workflows = [];
|
|
8233
|
+
queue;
|
|
8234
|
+
secrets;
|
|
8235
|
+
adminToken;
|
|
8236
|
+
static async withPort(t) {
|
|
8237
|
+
let { port: n, ...r } = t;
|
|
8238
|
+
return new e(r).listen(n);
|
|
8239
|
+
}
|
|
8240
|
+
constructor(e) {
|
|
8241
|
+
this.queue = e.queue, this.secrets = e.secrets, this.adminToken = e.adminToken, Co.from(e.config.workflows).then((t) => {
|
|
8242
|
+
this.workflows = t, console.log(`ā
Loaded ${t.length} workflow(s) from ${e.config.workflows}`);
|
|
8243
|
+
}), this.registerPreprocessor(new pn()), this.server = c.createServer((e, t) => this.handleRequest(e, t));
|
|
8244
|
+
}
|
|
8245
|
+
registerPreprocessor(e) {
|
|
8246
|
+
this.preprocessors.set(e.name, e);
|
|
8247
|
+
}
|
|
8248
|
+
async handleRequest(e, t) {
|
|
8249
|
+
let n = new l(e.url || "/", `${e.headers["x-forwarded-proto"] || "http"}://${e.headers["x-forwarded-host"] || e.headers.host}`);
|
|
8250
|
+
if (e.method === "GET" && (n.pathname === "/runs" || n.pathname === "/")) return this.renderDashboard(t);
|
|
8251
|
+
if (e.method === "GET" && n.pathname.startsWith("/runs/")) {
|
|
8252
|
+
let e = n.pathname.replace("/runs/", "");
|
|
8253
|
+
return this.renderRunDetails(e, t);
|
|
8254
|
+
}
|
|
8255
|
+
if (e.method === "POST" && n.pathname === "/admin/reload-secrets") return this.handleSecretReload(e, t);
|
|
8256
|
+
if (e.method === "POST" && n.pathname.startsWith("/webhooks/")) {
|
|
8257
|
+
let r = n.pathname.replace("/webhooks/", "");
|
|
8258
|
+
return this.handleWebhook(r, e, t);
|
|
8259
|
+
}
|
|
8260
|
+
t.writeHead(404, { "Content-Type": "application/json" }), t.end(JSON.stringify({ error: "Endpoint not found" }));
|
|
8261
|
+
}
|
|
8262
|
+
async handleWebhook(e, t, n) {
|
|
8263
|
+
try {
|
|
8264
|
+
let { rawBuffer: r, headers: i } = await this.readRequest(t, n);
|
|
8265
|
+
if (n.headersSent || !r) return;
|
|
8266
|
+
let { isValid: a, inputs: o } = this.preprocess(e, i, r);
|
|
8267
|
+
if (!a) {
|
|
8268
|
+
n.writeHead(401, { "Content-Type": "application/json" }), n.end(JSON.stringify({ error: "Invalid HMAC signature or authentication failed" }));
|
|
8269
|
+
return;
|
|
8270
|
+
}
|
|
8271
|
+
let s = this.matchWorkflows(e, o);
|
|
8272
|
+
n.writeHead(202, { "Content-Type": "application/json" }), n.end(JSON.stringify({
|
|
8273
|
+
message: "Webhook processed",
|
|
8274
|
+
triggeredWorkflows: s
|
|
8275
|
+
}));
|
|
8276
|
+
} catch (e) {
|
|
8277
|
+
console.error("ā Webhook Ingress Error:", e), n.writeHead(500, { "Content-Type": "application/json" }), n.end(JSON.stringify({
|
|
8278
|
+
error: "Internal Ingress Error",
|
|
8279
|
+
details: e.message
|
|
8280
|
+
}));
|
|
8281
|
+
}
|
|
8282
|
+
}
|
|
8283
|
+
async readRequest(e, t) {
|
|
8284
|
+
let n = [], r = 0;
|
|
8285
|
+
for await (let i of e) {
|
|
8286
|
+
if (r += i.length, r > 5242880) return t.writeHead(413, { "Content-Type": "application/json" }), t.end(JSON.stringify({ error: "Payload size exceeds limit" })), {
|
|
8287
|
+
rawBuffer: null,
|
|
8288
|
+
headers: {}
|
|
8289
|
+
};
|
|
8290
|
+
n.push(typeof i == "string" ? Buffer.from(i) : i);
|
|
8291
|
+
}
|
|
8292
|
+
return {
|
|
8293
|
+
rawBuffer: Buffer.concat(n),
|
|
8294
|
+
headers: Object.fromEntries(Object.entries(e.headers).map(([e, t]) => [e.toLowerCase(), Array.isArray(t) ? t[0] : t || ""]))
|
|
8295
|
+
};
|
|
8296
|
+
}
|
|
8297
|
+
preprocess(e, t, n) {
|
|
8298
|
+
let r = this.secrets.get(`${e.toUpperCase()}_WEBHOOK_SECRET`), i = this.preprocessors.get(e);
|
|
8299
|
+
try {
|
|
8300
|
+
if (i) {
|
|
8301
|
+
let { inputs: e, isValid: a } = i.parse(t, n, r);
|
|
8302
|
+
return {
|
|
8303
|
+
inputs: e,
|
|
8304
|
+
isValid: a
|
|
8305
|
+
};
|
|
8306
|
+
}
|
|
8307
|
+
return {
|
|
8308
|
+
isValid: !0,
|
|
8309
|
+
inputs: JSON.parse(n.toString("utf-8"))
|
|
8310
|
+
};
|
|
8311
|
+
} catch {
|
|
8312
|
+
return {
|
|
8313
|
+
isValid: !1,
|
|
8314
|
+
inputs: null
|
|
8315
|
+
};
|
|
8316
|
+
}
|
|
8317
|
+
}
|
|
8318
|
+
async matchWorkflows(e, t) {
|
|
8319
|
+
let n = [];
|
|
8320
|
+
for (let r of this.workflows) {
|
|
8321
|
+
if (r.on.provider !== e) continue;
|
|
8322
|
+
if (r.on.if) try {
|
|
8323
|
+
if (!fn.evaluateCondition(r.on.if, { inputs: t })) {
|
|
8324
|
+
console.log(`ā© Skipped ${r.id} based on condition: ${r.on.if}`, { inputs: t });
|
|
8325
|
+
continue;
|
|
8326
|
+
}
|
|
8327
|
+
} catch (e) {
|
|
8328
|
+
console.error(`ā ļø Condition evaluation error in workflow [${r.id}]:`, e.message);
|
|
8329
|
+
continue;
|
|
8330
|
+
}
|
|
8331
|
+
let i;
|
|
8332
|
+
r.concurrency?.group && (i = await fn.evaluateValue(r.concurrency.group, { inputs: t }));
|
|
8333
|
+
let a = {
|
|
8334
|
+
workflowId: r.id,
|
|
8335
|
+
env: r.env,
|
|
8336
|
+
steps: r.steps,
|
|
8337
|
+
inputs: t
|
|
8338
|
+
};
|
|
8339
|
+
await this.queue.enqueue(r.id, a, i), n.push(r.id);
|
|
8340
|
+
}
|
|
8341
|
+
return n;
|
|
8342
|
+
}
|
|
8343
|
+
async handleSecretReload(e, t) {
|
|
8344
|
+
if (e.headers.authorization !== `Bearer ${this.adminToken}`) return t.writeHead(403, { "Content-Type": "application/json" }), t.end(JSON.stringify({ error: "Unauthorized" }));
|
|
8345
|
+
this.secrets.reload(), console.log("š SecretStore reloaded successfully without downtime!"), t.writeHead(200, { "Content-Type": "application/json" }), t.end(JSON.stringify({ message: "Secrets reloaded successfully" }));
|
|
8346
|
+
}
|
|
8347
|
+
async renderDashboard(e) {
|
|
8348
|
+
let t = (await this.queue.listJobs(500)).map((e) => {
|
|
8349
|
+
let t = e.status === "success" ? "bg-emerald-500/10 text-emerald-400" : e.status === "failed" ? "bg-rose-500/10 text-rose-400" : e.status === "running" ? "bg-indigo-500/10 text-indigo-400 animate-pulse" : "bg-gray-500/10 text-gray-400";
|
|
8350
|
+
return `
|
|
8351
|
+
<tr class="border-b border-gray-800 hover:bg-gray-900/50 transition">
|
|
8352
|
+
<td class="py-3 px-4 font-mono text-indigo-400"><a href="/runs/${e.id}" class="hover:underline">#${e.id}</a></td>
|
|
8353
|
+
<td class="py-3 px-4 font-medium text-white">${e.workflow_id}</td>
|
|
8354
|
+
<td class="py-3 px-4">
|
|
8355
|
+
<span class="px-2.5 py-0.5 rounded-full text-xs font-semibold ${t}">${e.status.toUpperCase()}</span>
|
|
8356
|
+
</td>
|
|
8357
|
+
<td class="py-3 px-4 text-xs font-mono text-gray-400">${e.worker_id || "-"}</td>
|
|
8358
|
+
<td class="py-3 px-4 text-xs text-gray-400">${e.created_at}</td>
|
|
8359
|
+
<td class="py-3 px-4 text-right">
|
|
8360
|
+
<a href="/runs/${e.id}" class="text-xs bg-gray-800 hover:bg-gray-700 text-gray-200 px-3 py-1 rounded border border-gray-700">View Trace ā</a>
|
|
8361
|
+
</td>
|
|
8362
|
+
</tr>
|
|
8363
|
+
`;
|
|
8364
|
+
}).join(""), n = `<!DOCTYPE html>
|
|
8365
|
+
<html lang="en" class="dark">
|
|
8366
|
+
<head>
|
|
8367
|
+
<meta charset="UTF-8">
|
|
8368
|
+
<meta http-equiv="refresh" content="10"> <!-- Auto-refreshes every 10s -->
|
|
8369
|
+
<title>Workflow Engine Dashboard</title>
|
|
8370
|
+
<script src="https://cdn.tailwindcss.com"><\/script>
|
|
8371
|
+
</head>
|
|
8372
|
+
<body class="bg-gray-950 text-gray-100 min-h-screen p-6 font-sans">
|
|
8373
|
+
<div class="max-w-6xl mx-auto space-y-6">
|
|
8374
|
+
<div class="flex items-center justify-between border-b border-gray-800 pb-4">
|
|
8375
|
+
<div>
|
|
8376
|
+
<h1 class="text-2xl font-bold text-white">āļø Runner Engine Status</h1>
|
|
8377
|
+
<p class="text-xs text-gray-400">Live Job Queue & Execution Traces</p>
|
|
8378
|
+
</div>
|
|
8379
|
+
<span class="text-xs font-mono bg-emerald-500/10 text-emerald-400 px-3 py-1 rounded-full border border-emerald-500/20">
|
|
8380
|
+
ā System Operational
|
|
8381
|
+
</span>
|
|
8382
|
+
</div>
|
|
8383
|
+
|
|
8384
|
+
<div class="bg-gray-900 border border-gray-800 rounded-xl overflow-hidden">
|
|
8385
|
+
<table class="w-full text-left text-sm">
|
|
8386
|
+
<thead class="bg-gray-800/50 text-gray-400 text-xs uppercase font-mono border-b border-gray-800">
|
|
8387
|
+
<tr>
|
|
8388
|
+
<th class="py-3 px-4">Job ID</th>
|
|
8389
|
+
<th class="py-3 px-4">Workflow</th>
|
|
8390
|
+
<th class="py-3 px-4">Status</th>
|
|
8391
|
+
<th class="py-3 px-4">Worker</th>
|
|
8392
|
+
<th class="py-3 px-4">Created At</th>
|
|
8393
|
+
<th class="py-3 px-4 text-right">Action</th>
|
|
8394
|
+
</tr>
|
|
8395
|
+
</thead>
|
|
8396
|
+
<tbody>${t.length ? t : "<tr><td colspan=\"6\" class=\"p-6 text-center text-gray-500\">No jobs recorded yet.</td></tr>"}</tbody>
|
|
8397
|
+
</table>
|
|
8398
|
+
</div>
|
|
8399
|
+
</div>
|
|
8400
|
+
</body>
|
|
8401
|
+
</html>`, r = this.secrets.redactText(n);
|
|
8402
|
+
e.writeHead(200, { "Content-Type": "text/html; charset=utf-8" }), e.end(r);
|
|
8403
|
+
}
|
|
8404
|
+
async renderRunDetails(e, t) {
|
|
8405
|
+
let n = await this.queue.getJob(e);
|
|
8406
|
+
if (!n || !n.report) return t.writeHead(404, { "Content-Type": "text/html; charset=utf-8" }), t.end("<h1>404 - Report Not Found</h1>");
|
|
8407
|
+
let r = JSON.parse(n.report), i = await this.queue.getJobLogs(e);
|
|
8408
|
+
r.steps = r.steps.map((e) => ({
|
|
8409
|
+
...e,
|
|
8410
|
+
logContent: i[e.id] || ""
|
|
8411
|
+
}));
|
|
8412
|
+
let a = new xn({ outputDir: "" }).generateHtml(r), o = this.secrets.redactText(a);
|
|
8413
|
+
t.writeHead(200, { "Content-Type": "text/html; charset=utf-8" }), t.end(o);
|
|
8414
|
+
}
|
|
8415
|
+
listen(e) {
|
|
8416
|
+
return new Promise((t) => {
|
|
8417
|
+
this.server.listen(e, process.env.RUNNER_HOST || "0.0.0.0", () => {
|
|
8418
|
+
console.log(`š Webhook Ingress Server running on port ${e}`), t(this);
|
|
8419
|
+
});
|
|
8420
|
+
});
|
|
8421
|
+
}
|
|
8422
|
+
async stop() {
|
|
8423
|
+
return new Promise((e) => {
|
|
8424
|
+
this.server.close(() => {
|
|
8425
|
+
console.log("š Webhook Ingress Server stopped listening."), e();
|
|
8426
|
+
});
|
|
8427
|
+
});
|
|
8428
|
+
}
|
|
8422
8429
|
}, To = process.env.DATABASE_URL, Eo = [];
|
|
8423
8430
|
async function Do(e, t, n, r = Eo) {
|
|
8424
8431
|
let i, a, o = 1;
|
|
@@ -8516,7 +8523,7 @@ var Po = class {
|
|
|
8516
8523
|
for (let [e, t] of Object.entries(process.env)) e.startsWith("SECRET_") && t && this.secrets.set(e.replace("SECRET_", ""), t);
|
|
8517
8524
|
if (this.envFilePath && t(this.envFilePath)) {
|
|
8518
8525
|
console.log("Found .env at " + this.envFilePath);
|
|
8519
|
-
let e =
|
|
8526
|
+
let e = o(n(this.envFilePath, "utf8"));
|
|
8520
8527
|
for (let [t, n] of Object.entries(e)) this.secrets.set(t, n || "");
|
|
8521
8528
|
}
|
|
8522
8529
|
}
|
|
@@ -8531,7 +8538,7 @@ var Po = class {
|
|
|
8531
8538
|
for (let n of t) e = e.replaceAll(n, "** masked **");
|
|
8532
8539
|
return e;
|
|
8533
8540
|
}
|
|
8534
|
-
}, Io =
|
|
8541
|
+
}, Io = s(_), Lo = class {
|
|
8535
8542
|
name = "systemd";
|
|
8536
8543
|
async isSupported() {
|
|
8537
8544
|
try {
|
|
@@ -8541,9 +8548,9 @@ var Po = class {
|
|
|
8541
8548
|
}
|
|
8542
8549
|
}
|
|
8543
8550
|
async execute(t) {
|
|
8544
|
-
let n = null, r = Date.now(), i =
|
|
8551
|
+
let n = null, r = Date.now(), i = f.join(t.workspacePath, ".logs"), a = f.join(i, `step-${t.stepId}.log`), o = f.join(t.workspacePath, "wd");
|
|
8545
8552
|
try {
|
|
8546
|
-
e.mkdirSync(i, { recursive: !0 }), e.mkdirSync(
|
|
8553
|
+
e.mkdirSync(i, { recursive: !0 }), e.mkdirSync(o, { recursive: !0 }), e.chmodSync(o, 511), n = e.openSync(a, "a");
|
|
8547
8554
|
} catch (e) {
|
|
8548
8555
|
return {
|
|
8549
8556
|
done: Promise.resolve({
|
|
@@ -8555,29 +8562,29 @@ var Po = class {
|
|
|
8555
8562
|
logFilePath: ""
|
|
8556
8563
|
};
|
|
8557
8564
|
}
|
|
8558
|
-
let
|
|
8559
|
-
`--unit=${
|
|
8565
|
+
let s = `workflow-${t.jobId}-${t.stepId}`.replace(/[^a-zA-Z0-9_-]/g, "_"), c = [
|
|
8566
|
+
`--unit=${s}`,
|
|
8560
8567
|
"--wait",
|
|
8561
8568
|
"--pipe",
|
|
8562
8569
|
"--collect",
|
|
8563
8570
|
"-p",
|
|
8564
8571
|
"RemainAfterExit=no",
|
|
8565
|
-
`--working-directory=${
|
|
8572
|
+
`--working-directory=${o}`
|
|
8566
8573
|
];
|
|
8567
|
-
if (t.env) for (let [e, n] of Object.entries(t.env))
|
|
8568
|
-
if (
|
|
8574
|
+
if (t.env) for (let [e, n] of Object.entries(t.env)) c.push(`--setenv=${e}=${n}`);
|
|
8575
|
+
if (c.push(`--setenv=PATH=${t.env?.PATH || process.env.PATH}`), t.timeoutMs) {
|
|
8569
8576
|
let e = Math.ceil(t.timeoutMs / 1e3);
|
|
8570
|
-
|
|
8577
|
+
c.push(`--property=RuntimeMaxSec=${e}`);
|
|
8571
8578
|
}
|
|
8572
|
-
let
|
|
8573
|
-
|
|
8579
|
+
let l;
|
|
8580
|
+
l = t.image ? [
|
|
8574
8581
|
"docker",
|
|
8575
8582
|
"run",
|
|
8576
8583
|
"--rm",
|
|
8577
8584
|
"--init",
|
|
8578
|
-
`--name=${
|
|
8585
|
+
`--name=${s}`,
|
|
8579
8586
|
"-v",
|
|
8580
|
-
`${
|
|
8587
|
+
`${o}:/workspace`,
|
|
8581
8588
|
"-w",
|
|
8582
8589
|
"/workspace",
|
|
8583
8590
|
t.image,
|
|
@@ -8590,16 +8597,16 @@ var Po = class {
|
|
|
8590
8597
|
"-c",
|
|
8591
8598
|
t.command
|
|
8592
8599
|
], process.env.DEBUG && console.log("$ systemd-run", [
|
|
8593
|
-
...
|
|
8600
|
+
...c,
|
|
8594
8601
|
"--",
|
|
8595
|
-
...
|
|
8602
|
+
...l
|
|
8596
8603
|
].join(" "));
|
|
8597
|
-
let
|
|
8604
|
+
let u;
|
|
8598
8605
|
try {
|
|
8599
|
-
|
|
8600
|
-
...
|
|
8606
|
+
u = v("systemd-run", [
|
|
8607
|
+
...c,
|
|
8601
8608
|
"--",
|
|
8602
|
-
...
|
|
8609
|
+
...l
|
|
8603
8610
|
], { stdio: [
|
|
8604
8611
|
"ignore",
|
|
8605
8612
|
n,
|
|
@@ -8616,10 +8623,10 @@ var Po = class {
|
|
|
8616
8623
|
error: /* @__PURE__ */ Error(`Failed to spawn systemd-run: ${t.message}`)
|
|
8617
8624
|
}),
|
|
8618
8625
|
cancel: async () => {},
|
|
8619
|
-
logFilePath:
|
|
8626
|
+
logFilePath: a
|
|
8620
8627
|
};
|
|
8621
8628
|
}
|
|
8622
|
-
let
|
|
8629
|
+
let d = !1;
|
|
8623
8630
|
return {
|
|
8624
8631
|
done: new Promise((t) => {
|
|
8625
8632
|
let i = !1, a = (r) => {
|
|
@@ -8631,14 +8638,14 @@ var Po = class {
|
|
|
8631
8638
|
t(r);
|
|
8632
8639
|
}
|
|
8633
8640
|
};
|
|
8634
|
-
|
|
8635
|
-
let n = e === null ? t ?
|
|
8641
|
+
u.on("close", (e, t) => {
|
|
8642
|
+
let n = e === null ? t ? d ? 130 : 1 : 0 : e;
|
|
8636
8643
|
console.log("close [exitCode, code, signal]", n, e, t), a({
|
|
8637
8644
|
exitCode: n,
|
|
8638
8645
|
durationMs: Date.now() - r,
|
|
8639
|
-
error:
|
|
8646
|
+
error: d ? /* @__PURE__ */ Error("Step cancelled by user or systemd timeout") : void 0
|
|
8640
8647
|
});
|
|
8641
|
-
}),
|
|
8648
|
+
}), u.on("error", (e) => {
|
|
8642
8649
|
console.log("error [exitCode, error]", 1, e), a({
|
|
8643
8650
|
exitCode: 1,
|
|
8644
8651
|
durationMs: Date.now() - r,
|
|
@@ -8647,12 +8654,12 @@ var Po = class {
|
|
|
8647
8654
|
});
|
|
8648
8655
|
}),
|
|
8649
8656
|
cancel: async () => {
|
|
8650
|
-
|
|
8657
|
+
d = !0;
|
|
8651
8658
|
try {
|
|
8652
|
-
t.image && await Io(`docker stop -t 2 ${
|
|
8659
|
+
t.image && await Io(`docker stop -t 2 ${s}`).catch(() => {}), await Io(`systemctl stop ${s}.service`).catch(() => {});
|
|
8653
8660
|
} catch {}
|
|
8654
8661
|
},
|
|
8655
|
-
logFilePath:
|
|
8662
|
+
logFilePath: a
|
|
8656
8663
|
};
|
|
8657
8664
|
}
|
|
8658
8665
|
}, Ro = class {
|
|
@@ -8661,9 +8668,9 @@ var Po = class {
|
|
|
8661
8668
|
return !0;
|
|
8662
8669
|
}
|
|
8663
8670
|
async execute(t) {
|
|
8664
|
-
let n = null, r = Date.now(), i =
|
|
8671
|
+
let n = null, r = Date.now(), i = f.join(t.workspacePath, ".logs"), a = f.join(i, `step-${t.stepId}.log`), o = f.join(t.workspacePath, "wd");
|
|
8665
8672
|
try {
|
|
8666
|
-
e.mkdirSync(i, { recursive: !0 }), e.mkdirSync(
|
|
8673
|
+
e.mkdirSync(i, { recursive: !0 }), e.mkdirSync(o, { recursive: !0 }), e.chmodSync(o, 511), n = e.openSync(a, "a");
|
|
8667
8674
|
} catch (e) {
|
|
8668
8675
|
return {
|
|
8669
8676
|
done: Promise.resolve({
|
|
@@ -8675,13 +8682,13 @@ var Po = class {
|
|
|
8675
8682
|
logFilePath: ""
|
|
8676
8683
|
};
|
|
8677
8684
|
}
|
|
8678
|
-
let
|
|
8679
|
-
t.image ? (
|
|
8685
|
+
let s, c;
|
|
8686
|
+
t.image ? (s = "docker", c = [
|
|
8680
8687
|
"run",
|
|
8681
8688
|
"--rm",
|
|
8682
8689
|
"--init",
|
|
8683
8690
|
"-v",
|
|
8684
|
-
`${
|
|
8691
|
+
`${o}:/workspace`,
|
|
8685
8692
|
"-w",
|
|
8686
8693
|
"/workspace",
|
|
8687
8694
|
"--entrypoint",
|
|
@@ -8689,15 +8696,15 @@ var Po = class {
|
|
|
8689
8696
|
t.image,
|
|
8690
8697
|
"-c",
|
|
8691
8698
|
t.command
|
|
8692
|
-
]) : (
|
|
8699
|
+
]) : (s = process.env.SHELL || "sh", c = [
|
|
8693
8700
|
"-e",
|
|
8694
8701
|
"-c",
|
|
8695
8702
|
t.command
|
|
8696
|
-
]), process.env.DEBUG && console.log("$ " +
|
|
8697
|
-
let
|
|
8703
|
+
]), process.env.DEBUG && console.log("$ " + s, c.join(" "));
|
|
8704
|
+
let l;
|
|
8698
8705
|
try {
|
|
8699
|
-
|
|
8700
|
-
cwd:
|
|
8706
|
+
l = v(s, c, {
|
|
8707
|
+
cwd: o,
|
|
8701
8708
|
env: {
|
|
8702
8709
|
...process.env,
|
|
8703
8710
|
...t.env
|
|
@@ -8720,30 +8727,30 @@ var Po = class {
|
|
|
8720
8727
|
error: /* @__PURE__ */ Error(`Failed to spawn process: ${t.message}`)
|
|
8721
8728
|
}),
|
|
8722
8729
|
cancel: async () => {},
|
|
8723
|
-
logFilePath:
|
|
8730
|
+
logFilePath: a
|
|
8724
8731
|
};
|
|
8725
8732
|
}
|
|
8726
|
-
let
|
|
8733
|
+
let u = !1, d = null;
|
|
8727
8734
|
return {
|
|
8728
8735
|
done: new Promise((i) => {
|
|
8729
8736
|
let a = !1, o = (t) => {
|
|
8730
8737
|
if (!a) {
|
|
8731
|
-
a = !0,
|
|
8738
|
+
a = !0, d && clearTimeout(d);
|
|
8732
8739
|
try {
|
|
8733
8740
|
e.closeSync(n);
|
|
8734
8741
|
} catch {}
|
|
8735
8742
|
i(t);
|
|
8736
8743
|
}
|
|
8737
8744
|
};
|
|
8738
|
-
t.timeoutMs && (
|
|
8739
|
-
|
|
8740
|
-
}, t.timeoutMs),
|
|
8745
|
+
t.timeoutMs && (d = setTimeout(() => {
|
|
8746
|
+
u = !0, this.killProcessGroup(l);
|
|
8747
|
+
}, t.timeoutMs), d.unref()), l.on("close", (e) => {
|
|
8741
8748
|
o({
|
|
8742
|
-
exitCode: e ?? (
|
|
8749
|
+
exitCode: e ?? (u ? 130 : 1),
|
|
8743
8750
|
durationMs: Date.now() - r,
|
|
8744
|
-
error:
|
|
8751
|
+
error: u ? /* @__PURE__ */ Error("Step timed out or was cancelled by user") : void 0
|
|
8745
8752
|
});
|
|
8746
|
-
}),
|
|
8753
|
+
}), l.on("error", (e) => {
|
|
8747
8754
|
o({
|
|
8748
8755
|
exitCode: 1,
|
|
8749
8756
|
durationMs: Date.now() - r,
|
|
@@ -8752,9 +8759,9 @@ var Po = class {
|
|
|
8752
8759
|
});
|
|
8753
8760
|
}),
|
|
8754
8761
|
cancel: async () => {
|
|
8755
|
-
|
|
8762
|
+
u = !0, this.killProcessGroup(l);
|
|
8756
8763
|
},
|
|
8757
|
-
logFilePath:
|
|
8764
|
+
logFilePath: a
|
|
8758
8765
|
};
|
|
8759
8766
|
}
|
|
8760
8767
|
killProcessGroup(e) {
|
|
@@ -8774,35 +8781,57 @@ async function zo() {
|
|
|
8774
8781
|
return await e.isSupported() ? (console.log("ā” Selected Execution Driver: Systemd (cgroups enabled)"), e) : (console.log("š¦ Selected Execution Driver: Standard Process (Fallback)"), new Ro());
|
|
8775
8782
|
}
|
|
8776
8783
|
//#endregion
|
|
8784
|
+
//#region src/signals.ts
|
|
8785
|
+
async function Bo(e) {
|
|
8786
|
+
let t = !1;
|
|
8787
|
+
async function n(n) {
|
|
8788
|
+
if (!t) {
|
|
8789
|
+
t = !0, console.log(`\nš Received ${n}. Initiating graceful shutdown...`), setTimeout(() => {
|
|
8790
|
+
console.error("ā ļø Graceful shutdown timed out after 10s. Forcing exit!"), process.exit(1);
|
|
8791
|
+
}, 1e4).unref();
|
|
8792
|
+
try {
|
|
8793
|
+
Vo.isStopping = !0, e.length > 0 && (console.log("āļø Waiting for active worker jobs to drain..."), await Promise.allSettled(e)), console.log("⨠Engine stopped cleanly. Goodbye!"), process.exit(0);
|
|
8794
|
+
} catch (e) {
|
|
8795
|
+
console.error("ā Error during graceful shutdown:", e.message), process.exit(1);
|
|
8796
|
+
}
|
|
8797
|
+
}
|
|
8798
|
+
}
|
|
8799
|
+
process.on("SIGINT", () => n("SIGINT")), process.on("SIGTERM", () => n("SIGTERM"));
|
|
8800
|
+
}
|
|
8801
|
+
//#endregion
|
|
8777
8802
|
//#region src/worker.ts
|
|
8778
|
-
var
|
|
8779
|
-
function
|
|
8780
|
-
|
|
8803
|
+
var Vo = { isStopping: !1 };
|
|
8804
|
+
function Ho(e, t, n, r) {
|
|
8805
|
+
Vo.isStopping = !1;
|
|
8806
|
+
let i = Array.from({ length: e }, (e, i) => Uo(`worker-${i + 1}`, t, n, r));
|
|
8807
|
+
return Bo(i), i;
|
|
8781
8808
|
}
|
|
8782
|
-
async function
|
|
8809
|
+
async function Uo(e, t, n, r) {
|
|
8783
8810
|
let i = await zo();
|
|
8784
|
-
for (console.log(`[${e}] š Worker started. Driver: ${i.name}`); !
|
|
8811
|
+
for (console.log(`[${e}] š Worker started. Driver: ${i.name}`); !Vo.isStopping;) try {
|
|
8785
8812
|
let a = await t.claimNextJob();
|
|
8786
8813
|
if (!a) {
|
|
8787
8814
|
await new Promise((e) => setTimeout(e, 2e3));
|
|
8788
8815
|
continue;
|
|
8789
8816
|
}
|
|
8790
|
-
await
|
|
8817
|
+
await Wo(e, a, t, n, r, i);
|
|
8791
8818
|
} catch (t) {
|
|
8792
8819
|
console.error(`[${e}] ā ļø Worker execution loop error:`, t), await new Promise((e) => setTimeout(e, 5e3));
|
|
8793
8820
|
}
|
|
8794
8821
|
console.log(`[${e}] š Worker loop stopped cleanly.`);
|
|
8795
8822
|
}
|
|
8796
|
-
async function
|
|
8823
|
+
async function Wo(e, t, n, r, i, a) {
|
|
8797
8824
|
console.log(`\n[${e}] š¦ Claimed Job #${t.id} (Workflow: ${t.workflow_id})`);
|
|
8798
8825
|
let o = typeof t.payload == "string" ? JSON.parse(t.payload) : t.payload, s = o.steps || [], c = o.inputs || {}, l = Date.now(), u = {
|
|
8799
8826
|
inputs: c,
|
|
8800
8827
|
env: { ...i.env },
|
|
8801
8828
|
secrets: r.getAll(),
|
|
8802
8829
|
steps: {}
|
|
8803
|
-
}
|
|
8830
|
+
};
|
|
8831
|
+
o.env && Object.assign(u.env, await qo(o.env, u));
|
|
8832
|
+
let d = [], f = !1, p = !1;
|
|
8804
8833
|
for (let r = 0; r < s.length; r++) {
|
|
8805
|
-
let o = s[r], c = await
|
|
8834
|
+
let o = s[r], c = await Go({
|
|
8806
8835
|
workerId: e,
|
|
8807
8836
|
jobId: t.id,
|
|
8808
8837
|
step: o,
|
|
@@ -8822,26 +8851,26 @@ async function Uo(e, t, n, r, i, a) {
|
|
|
8822
8851
|
break;
|
|
8823
8852
|
}
|
|
8824
8853
|
}
|
|
8825
|
-
f && d.length < s.length &&
|
|
8854
|
+
f && d.length < s.length && Yo(s, d.length, d);
|
|
8826
8855
|
let m = p ? "cancelled" : f ? "failed" : "success";
|
|
8827
8856
|
await n.finishJob(t.id, m), console.log(`[${e}] ā
Job #${t.id} completed as: ${m}`);
|
|
8828
|
-
let h =
|
|
8829
|
-
await n.saveReport(t.id, h), await
|
|
8857
|
+
let h = Xo(t, m, l, c, u.env, d, o);
|
|
8858
|
+
await n.saveReport(t.id, h), await Zo(e, i.reporters, h);
|
|
8830
8859
|
}
|
|
8831
|
-
async function
|
|
8860
|
+
async function Go(e) {
|
|
8832
8861
|
let { workerId: t, step: n, stepIndex: r, totalSteps: i } = e, a = n.id || `step-${r}`, o = n.name || a;
|
|
8833
|
-
return console.log(`[${t}] ā¶ļø Running step ${r + 1}/${i}: ${o}`), n.eval ?
|
|
8862
|
+
return console.log(`[${t}] ā¶ļø Running step ${r + 1}/${i}: ${o}`), n.eval ? Ko({
|
|
8834
8863
|
...e,
|
|
8835
8864
|
stepId: a,
|
|
8836
8865
|
stepName: o,
|
|
8837
8866
|
evalExpr: n.eval
|
|
8838
|
-
}) :
|
|
8867
|
+
}) : Jo({
|
|
8839
8868
|
...e,
|
|
8840
8869
|
stepId: a,
|
|
8841
8870
|
stepName: o
|
|
8842
8871
|
});
|
|
8843
8872
|
}
|
|
8844
|
-
async function
|
|
8873
|
+
async function Ko(e) {
|
|
8845
8874
|
let { queue: t, jobId: n, stepId: r, stepName: i, evalExpr: a, executionContext: o } = e, s = Date.now();
|
|
8846
8875
|
try {
|
|
8847
8876
|
let e = await fn.evaluateExpression(a, o);
|
|
@@ -8885,10 +8914,13 @@ async function Go(e) {
|
|
|
8885
8914
|
};
|
|
8886
8915
|
}
|
|
8887
8916
|
}
|
|
8888
|
-
async function
|
|
8889
|
-
let
|
|
8890
|
-
if (
|
|
8891
|
-
|
|
8917
|
+
async function qo(e, t) {
|
|
8918
|
+
let n = {};
|
|
8919
|
+
if (e) for (let [r, i] of Object.entries(e)) n[r] = String(await fn.evaluateValue(i, t));
|
|
8920
|
+
return n;
|
|
8921
|
+
}
|
|
8922
|
+
async function Jo(t) {
|
|
8923
|
+
let { workerId: n, jobId: r, step: i, stepId: a, stepName: o, executionContext: s, driver: c, queue: l, config: u } = t, d = await qo(i.env, s), f = {
|
|
8892
8924
|
jobId: r.toString(),
|
|
8893
8925
|
stepId: a,
|
|
8894
8926
|
workspacePath: `${u.storagePath}/job-${r}`,
|
|
@@ -8928,7 +8960,7 @@ async function Ko(t) {
|
|
|
8928
8960
|
}
|
|
8929
8961
|
};
|
|
8930
8962
|
}
|
|
8931
|
-
function
|
|
8963
|
+
function Yo(e, t, n) {
|
|
8932
8964
|
for (let r = t; r < e.length; r++) {
|
|
8933
8965
|
let t = e[r], i = t.id || `step-${r}`;
|
|
8934
8966
|
n.push({
|
|
@@ -8942,7 +8974,7 @@ function qo(e, t, n) {
|
|
|
8942
8974
|
});
|
|
8943
8975
|
}
|
|
8944
8976
|
}
|
|
8945
|
-
function
|
|
8977
|
+
function Xo(e, t, n, r, i, a, o) {
|
|
8946
8978
|
return {
|
|
8947
8979
|
jobId: e.id.toString(),
|
|
8948
8980
|
workflowName: e.workflow_id,
|
|
@@ -8960,7 +8992,7 @@ function Jo(e, t, n, r, i, a, o) {
|
|
|
8960
8992
|
})
|
|
8961
8993
|
};
|
|
8962
8994
|
}
|
|
8963
|
-
async function
|
|
8995
|
+
async function Zo(e, t = [], n) {
|
|
8964
8996
|
!Array.isArray(t) || t.length === 0 || (console.log(`[${e}] š¢ Dispatching execution report to ${t.length} reporter(s)...`), await Promise.allSettled(t.map(async (t) => {
|
|
8965
8997
|
try {
|
|
8966
8998
|
await t.report(n);
|
|
@@ -8970,8 +9002,34 @@ async function Yo(e, t = [], n) {
|
|
|
8970
9002
|
})));
|
|
8971
9003
|
}
|
|
8972
9004
|
//#endregion
|
|
9005
|
+
//#region src/config.ts
|
|
9006
|
+
async function Qo(e) {
|
|
9007
|
+
let n = {
|
|
9008
|
+
port: Number(e.port),
|
|
9009
|
+
database: e.database,
|
|
9010
|
+
workflows: e.workflows,
|
|
9011
|
+
workers: e.workers ? Number(e.workers) : void 0
|
|
9012
|
+
}, r = {}, a = h(e.config);
|
|
9013
|
+
t(a) && i(a).isFile() && (r = (await import(a)).default || {});
|
|
9014
|
+
let o = $o(r, n);
|
|
9015
|
+
return t(o.workflows) ? (No(o.database), o) : (console.warn(`ā ļø Warning: Workflows directory '${o.workflows}' not found.`), null);
|
|
9016
|
+
}
|
|
9017
|
+
function $o(e, t) {
|
|
9018
|
+
let n = process.env;
|
|
9019
|
+
return {
|
|
9020
|
+
port: Number(e.port || t.port || n.PORT || 11235),
|
|
9021
|
+
adminToken: e.adminToken ?? n.RUNNER_ADMIN_SECRET ?? "",
|
|
9022
|
+
database: e.database ?? t.database ?? n.RUNNER_DATABASE_URL ?? "",
|
|
9023
|
+
workflows: e.workflows ?? t.workflows ?? n.RUNNER_WORKFLOWS ?? "on/",
|
|
9024
|
+
workers: Number(e.workers ?? t.workers ?? n.RUNNER_WORKERS ?? 5),
|
|
9025
|
+
storagePath: e.storagePath ?? n.RUNNER_TMP ?? "/tmp/workspaces",
|
|
9026
|
+
env: e.env ?? {},
|
|
9027
|
+
reporters: e.reporters ?? []
|
|
9028
|
+
};
|
|
9029
|
+
}
|
|
9030
|
+
//#endregion
|
|
8973
9031
|
//#region src/reporters/json-file.reporter.ts
|
|
8974
|
-
var
|
|
9032
|
+
var es = class {
|
|
8975
9033
|
name = "json-file";
|
|
8976
9034
|
outputDir;
|
|
8977
9035
|
constructor(e) {
|
|
@@ -8979,10 +9037,10 @@ var Xo = class {
|
|
|
8979
9037
|
}
|
|
8980
9038
|
async report(t) {
|
|
8981
9039
|
e.mkdirSync(this.outputDir, { recursive: !0 });
|
|
8982
|
-
let n =
|
|
9040
|
+
let n = f.join(this.outputDir, `run-${t.jobId}.json`);
|
|
8983
9041
|
e.writeFileSync(n, JSON.stringify(t, null, 2), "utf-8"), console.log(`š Execution report saved to: ${n}`);
|
|
8984
9042
|
}
|
|
8985
|
-
},
|
|
9043
|
+
}, ts = class {
|
|
8986
9044
|
name = "slack";
|
|
8987
9045
|
webhookUrl = "";
|
|
8988
9046
|
token = "";
|
|
@@ -9006,7 +9064,7 @@ var Xo = class {
|
|
|
9006
9064
|
})
|
|
9007
9065
|
});
|
|
9008
9066
|
}
|
|
9009
|
-
},
|
|
9067
|
+
}, { values: ns, positionals: rs } = a({
|
|
9010
9068
|
allowPositionals: !0,
|
|
9011
9069
|
options: {
|
|
9012
9070
|
config: {
|
|
@@ -9036,101 +9094,52 @@ var Xo = class {
|
|
|
9036
9094
|
}
|
|
9037
9095
|
}
|
|
9038
9096
|
});
|
|
9039
|
-
function
|
|
9097
|
+
function is() {
|
|
9040
9098
|
console.log("\nš Runner CLI š\n\nUsage:\n npx -y @cloud-cli/on <command> [options]\n pnpm dlx -y @cloud-cli/on <command> [options]\n\nCommands:\n start Runs both Webhook Ingress Server and Workers (Default)\n start-server Runs Webhook Ingress Server only (API Gateway mode)\n start-workers Runs Worker Polling loops only (Scalable Worker mode)\n validate Parses and validates workflow YAML files without running\n\nOptions:\n -c, --config Path to runner.config.mjs (default: ./runner.config.mjs, env: RUNNER_CONFIG_PATH)\n -d, --database SQLite Database URL (env: RUNNER_DATABASE_URL)\n -w, --workflows Path to where your workflows are defined (default: on/, env: RUNNER_WORKFLOWS_PATH)\n -p, --port Port for Webhook Ingress Server (default: 11235, env: PORT)\n -k, --workers Number of worker thread loops to spawn (default: 5, env: RUNNER_WORKERS)\n -h, --help Show this help message\n ");
|
|
9041
9099
|
}
|
|
9042
|
-
|
|
9043
|
-
|
|
9044
|
-
let e = {
|
|
9045
|
-
port: Number(es.port),
|
|
9046
|
-
database: es.database,
|
|
9047
|
-
workflows: es.workflows,
|
|
9048
|
-
workers: es.workers ? Number(es.workers) : void 0
|
|
9049
|
-
}, n = {}, r = c(es.config);
|
|
9050
|
-
t(r) && i(r).isFile() && (n = (await import(r)).default || {});
|
|
9051
|
-
let a = os(n, e);
|
|
9052
|
-
return t(a.workflows) ? (No(a.database), a) : (console.warn(`ā ļø Warning: Workflows directory '${a.workflows}' not found.`), null);
|
|
9053
|
-
}
|
|
9054
|
-
function is(e) {
|
|
9100
|
+
ns.help && (is(), process.exit(0));
|
|
9101
|
+
function as(e) {
|
|
9055
9102
|
console.log("š Validating Workflows in:", e.workflows);
|
|
9056
|
-
let t = new
|
|
9103
|
+
let t = new xo(e.workflows), n = r(e.workflows).filter((e) => e.endsWith(".yml") || e.endsWith(".yaml"));
|
|
9057
9104
|
for (let e of n) {
|
|
9058
|
-
let n =
|
|
9105
|
+
let n = So(t.resolve(e));
|
|
9059
9106
|
console.log(` ā
${e} -> Valid! (${n.length} job matrix variant(s) generated)`);
|
|
9060
9107
|
}
|
|
9061
9108
|
}
|
|
9062
|
-
async function
|
|
9109
|
+
async function os() {
|
|
9063
9110
|
let e = new Fo("./.env"), t = new Po(process.env.WORKER_NAME || "cli");
|
|
9064
9111
|
return await t.init(), {
|
|
9065
9112
|
secrets: e,
|
|
9066
9113
|
queue: t
|
|
9067
9114
|
};
|
|
9068
9115
|
}
|
|
9069
|
-
function
|
|
9070
|
-
let
|
|
9071
|
-
return {
|
|
9072
|
-
port: Number(e.port || t.port || n.PORT || 11235),
|
|
9073
|
-
adminToken: e.adminToken ?? n.RUNNER_ADMIN_SECRET ?? "",
|
|
9074
|
-
database: e.database ?? t.database ?? n.RUNNER_DATABASE_URL ?? "",
|
|
9075
|
-
workflows: e.workflows ?? t.workflows ?? n.RUNNER_WORKFLOWS ?? "on/",
|
|
9076
|
-
workers: Number(e.workers ?? t.workers ?? n.RUNNER_WORKERS ?? 5),
|
|
9077
|
-
storagePath: e.storagePath ?? n.RUNNER_TMP ?? "/tmp/workspaces",
|
|
9078
|
-
env: e.env ?? {},
|
|
9079
|
-
reporters: e.reporters ?? []
|
|
9080
|
-
};
|
|
9081
|
-
}
|
|
9082
|
-
var ss = !1, cs = async (e) => {
|
|
9083
|
-
if (!ss) {
|
|
9084
|
-
ss = !0, console.log(`\nš Received ${e}. Initiating graceful shutdown...`), setTimeout(() => {
|
|
9085
|
-
console.error("ā ļø Graceful shutdown timed out after 10s. Forcing exit!"), process.exit(1);
|
|
9086
|
-
}, 1e4).unref();
|
|
9087
|
-
try {
|
|
9088
|
-
Qo && await Qo.stop(), Bo.isStopping = !0, $o.length > 0 && (console.log("āļø Waiting for active worker jobs to drain..."), await Promise.allSettled($o)), console.log("⨠Engine stopped cleanly. Goodbye!"), process.exit(0);
|
|
9089
|
-
} catch (e) {
|
|
9090
|
-
console.error("ā Error during graceful shutdown:", e.message), process.exit(1);
|
|
9091
|
-
}
|
|
9092
|
-
}
|
|
9093
|
-
};
|
|
9094
|
-
process.on("SIGINT", () => cs("SIGINT")), process.on("SIGTERM", () => cs("SIGTERM"));
|
|
9095
|
-
async function ls() {
|
|
9096
|
-
let e = ts[0] || "start", t = await rs();
|
|
9116
|
+
async function ss() {
|
|
9117
|
+
let e = rs[0] || "start", t = await Qo(ns);
|
|
9097
9118
|
switch (t || process.exit(1), e) {
|
|
9098
9119
|
case "validate":
|
|
9099
|
-
|
|
9120
|
+
as(t);
|
|
9100
9121
|
break;
|
|
9101
9122
|
case "start-server": {
|
|
9102
9123
|
console.log("š Starting Ingress Gateway...");
|
|
9103
|
-
let { queue: e, secrets: n } = await
|
|
9104
|
-
|
|
9124
|
+
let { queue: e, secrets: n } = await os();
|
|
9125
|
+
await wo.withPort({
|
|
9126
|
+
config: t,
|
|
9105
9127
|
queue: e,
|
|
9106
9128
|
secrets: n,
|
|
9107
9129
|
adminToken: t.adminToken,
|
|
9108
|
-
workflows: [],
|
|
9109
9130
|
port: t.port
|
|
9110
9131
|
});
|
|
9111
9132
|
break;
|
|
9112
9133
|
}
|
|
9113
9134
|
case "start-workers": {
|
|
9114
9135
|
console.log(`āļø Starting ${t.workers} Worker Loop(s)...`);
|
|
9115
|
-
let { queue: e, secrets: n } = await
|
|
9116
|
-
|
|
9117
|
-
break;
|
|
9118
|
-
}
|
|
9119
|
-
case "start": {
|
|
9120
|
-
console.log("š Starting Full Runner Engine (Ingress + Workers)...");
|
|
9121
|
-
let e = await wo.from(t.workflows), { queue: n, secrets: r } = await as();
|
|
9122
|
-
Qo = await Sn.withPort({
|
|
9123
|
-
queue: n,
|
|
9124
|
-
secrets: r,
|
|
9125
|
-
adminToken: t.adminToken,
|
|
9126
|
-
workflows: e,
|
|
9127
|
-
port: t.port
|
|
9128
|
-
}), $o = Vo(t.workers, n, r, t);
|
|
9136
|
+
let { queue: e, secrets: n } = await os();
|
|
9137
|
+
Ho(t.workers, e, n, t);
|
|
9129
9138
|
break;
|
|
9130
9139
|
}
|
|
9131
|
-
default: console.error(`ā Unknown command: '${e}'`),
|
|
9140
|
+
default: console.error(`ā Unknown command: '${e}'`), is(), process.exit(1);
|
|
9132
9141
|
}
|
|
9133
9142
|
}
|
|
9134
|
-
|
|
9143
|
+
ss().catch(console.error);
|
|
9135
9144
|
//#endregion
|
|
9136
|
-
export { xn as HtmlReporter,
|
|
9145
|
+
export { xn as HtmlReporter, es as JsonFileReporter, ts as SlackReporter };
|