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