@dpuse/dpuse-development 0.3.623 → 0.3.624

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.
@@ -5873,16 +5873,17 @@ async function Yn() {
5873
5873
  try {
5874
5874
  G("Check configuration files"), q("1️⃣ Check individual files");
5875
5875
  let e = Un((await W("config.json")).id), t = n.dirname(o(import.meta.url));
5876
- await Xn(t, ".editorconfig"), await Xn(t, ".gitattributes"), await Xn(t, ".gitignore", e.publishedTo === "npm" ? ".gitignore_published" : ".gitignore_unpublished"), await Xn(t, ".markdownlint.json"), await Xn(t, ".ncurc.json"), await Xn(t, "LICENSE"), await Xn(t, "tsconfig.scripts.json"), ["kb"].includes(e.typeId) ? console.info("ℹ️ File 'vite.config.ts' is NOT required by this project") : [
5876
+ await J(t, ".editorconfig"), await J(t, ".gitattributes"), await J(t, ".gitignore", e.publishedTo === "npm" ? ".gitignore_published" : ".gitignore_unpublished"), await J(t, ".markdownlint.json"), await J(t, ".ncurc.json"), await J(t, "eslint.config.ts", "eslint.config.default.ts"), await J(t, "LICENSE"), await J(t, "tsconfig.scripts.json"), ["kb"].includes(e.typeId) ? console.info("ℹ️ File 'vite.config.ts' is NOT required by this project") : [
5877
5877
  "app",
5878
5878
  "api",
5879
- "development"
5880
- ].includes(e.typeId) ? console.info("ℹ️ File 'vite.config.ts' is UNIQUE to this project") : await Xn(t, "vite.config.ts", e.typeId === "tool" ? "vite.config.tool.ts" : "vite.config.default.ts"), await Xn(t, "vitest.config.ts"), K("Configuration files checked");
5879
+ "development",
5880
+ "shared"
5881
+ ].includes(e.typeId) ? console.info("ℹ️ File 'vite.config.ts' is UNIQUE to this project") : await J(t, "vite.config.ts", e.typeId === "tool" ? "vite.config.tool.ts" : "vite.config.default.ts"), await J(t, "vitest.config.ts"), K("Configuration files checked");
5881
5882
  } catch (e) {
5882
5883
  console.error("❌ Error checking configuration files", e), process.exit(1);
5883
5884
  }
5884
5885
  }
5885
- async function Xn(e, t, r) {
5886
+ async function J(e, t, r) {
5886
5887
  let i = n.resolve(process.cwd(), t), a = n.resolve(e, `../${r ?? t}`), o;
5887
5888
  try {
5888
5889
  o = await zn(i);
@@ -5898,7 +5899,7 @@ async function Xn(e, t, r) {
5898
5899
  }
5899
5900
  //#endregion
5900
5901
  //#region src/actions/checkDependencies.ts
5901
- async function Zn() {
5902
+ async function Xn() {
5902
5903
  try {
5903
5904
  G("Check Dependencies"), await Ln("1️⃣ Check using 'npm outdated'", "npm", ["outdated"], !0), q("2️⃣ Check using 'npm-check-updates'"), await s({
5904
5905
  interactive: !0,
@@ -5912,74 +5913,74 @@ async function Zn() {
5912
5913
  }
5913
5914
  //#endregion
5914
5915
  //#region src/actions/documentBundleSizes.ts
5915
- var Qn = r(l), $n = r(c), er = "<!-- BUNDLE_START -->", tr = "<!-- BUNDLE_END -->", nr = "&nbsp;&nbsp;&nbsp;&nbsp;", rr = 20;
5916
- async function ir(e) {
5916
+ var Zn = r(l), Qn = r(c), $n = "<!-- BUNDLE_START -->", er = "<!-- BUNDLE_END -->", tr = "&nbsp;&nbsp;&nbsp;&nbsp;", nr = 20;
5917
+ async function rr(e) {
5917
5918
  try {
5918
5919
  G("Document Bundle Sizes"), q("1️⃣ Read bundle analysis report");
5919
5920
  let t = await W("./bundle-analysis-reports/rollup-visualiser/index.json");
5920
5921
  q("2️⃣ Insert table into 'README.md'");
5921
- let n = await sr(t, await ar(), e?.moduleLevel ?? !1);
5922
- await Hn("README.md", qn(await zn("./README.md"), `\n${n}\n`, er, tr)), K("Bundle sizes documented");
5922
+ let n = await or(t, await ir(), e?.moduleLevel ?? !1);
5923
+ await Hn("README.md", qn(await zn("./README.md"), `\n${n}\n`, $n, er)), K("Bundle sizes documented");
5923
5924
  } catch (e) {
5924
5925
  console.error("❌ Error documenting bundle sizes", e), process.exit(1);
5925
5926
  }
5926
5927
  }
5927
- async function ar() {
5928
+ async function ir() {
5928
5929
  try {
5929
5930
  return await t.access("./dist/client/assets"), "./dist/client/assets";
5930
5931
  } catch {
5931
5932
  return "./dist";
5932
5933
  }
5933
5934
  }
5934
- function or(e) {
5935
- return `${Sr(e.rendered)} · gz ${Sr(e.gzip)} · br ${Sr(e.brotli)}`;
5935
+ function ar(e) {
5936
+ return `${xr(e.rendered)} · gz ${xr(e.gzip)} · br ${xr(e.brotli)}`;
5936
5937
  }
5937
- async function sr(e, t, n) {
5938
- let r = hr(e), i = r.values().flatMap((e) => e.values().toArray()).reduce((e, t) => e + t.sizes.rendered, 0), a = await pr(t);
5938
+ async function or(e, t, n) {
5939
+ let r = mr(e), i = r.values().flatMap((e) => e.values().toArray()).reduce((e, t) => e + t.sizes.rendered, 0), a = await fr(t);
5939
5940
  a.sort((e, t) => t[1].rendered - e[1].rendered);
5940
5941
  let o = ["|Chunk/Module/File|Composition|", "|:------ |:-----------|"];
5941
5942
  for (let [e, t] of a) {
5942
- let a = [...r.get(e) ?? /* @__PURE__ */ new Map()].toSorted((e, t) => t[1].sizes.rendered - e[1].sizes.rendered), s = a.length === 1 ? cr(e, t, dr(a), i, n) : lr(e, t, a, i, n);
5943
+ let a = [...r.get(e) ?? /* @__PURE__ */ new Map()].toSorted((e, t) => t[1].sizes.rendered - e[1].sizes.rendered), s = a.length === 1 ? sr(e, t, ur(a), i, n) : cr(e, t, a, i, n);
5943
5944
  o.push(...s);
5944
5945
  }
5945
5946
  return o.join("\n");
5946
5947
  }
5947
- function cr(e, t, n, r, i) {
5948
+ function sr(e, t, n, r, i) {
5948
5949
  let [a, { sizes: o, files: s }] = n, c = r > 0 ? o.rendered / r * 100 : 0;
5949
- if (s.size === 1) return [`| ${e} → ${a} → ${fr(s)} | ${or(t)} · ${gr(c)} |`];
5950
- let l = [`| ${e} → ${a} | ${or(t)} · ${gr(c)} |`];
5951
- return i || l.push(...ur(s, nr, r)), l;
5950
+ if (s.size === 1) return [`| ${e} → ${a} → ${dr(s)} | ${ar(t)} · ${hr(c)} |`];
5951
+ let l = [`| ${e} → ${a} | ${ar(t)} · ${hr(c)} |`];
5952
+ return i || l.push(...lr(s, tr, r)), l;
5952
5953
  }
5953
- function lr(e, t, n, r, i) {
5954
- let a = [`| ${e} | ${or(t)} |`];
5954
+ function cr(e, t, n, r, i) {
5955
+ let a = [`| ${e} | ${ar(t)} |`];
5955
5956
  for (let [e, { sizes: t, files: o }] of n) {
5956
5957
  let n = r > 0 ? t.rendered / r * 100 : 0;
5957
5958
  if (o.size === 1) {
5958
- let t = fr(o);
5959
- a.push(`| ${nr}${e} → ${t} | ${gr(n)} |`);
5959
+ let t = dr(o);
5960
+ a.push(`| ${tr}${e} → ${t} | ${hr(n)} |`);
5960
5961
  continue;
5961
5962
  }
5962
- a.push(`| ${nr}${e} | ${gr(n)} |`), i || a.push(...ur(o, `${nr}${nr}`, r));
5963
+ a.push(`| ${tr}${e} | ${hr(n)} |`), i || a.push(...lr(o, `${tr}${tr}`, r));
5963
5964
  }
5964
5965
  return a;
5965
5966
  }
5966
- function ur(e, t, n) {
5967
- return [...e].toSorted((e, t) => t[1].rendered - e[1].rendered).map(([e, r]) => `| ${t}${e} | ${gr(n > 0 ? r.rendered / n * 100 : 0)} |`);
5967
+ function lr(e, t, n) {
5968
+ return [...e].toSorted((e, t) => t[1].rendered - e[1].rendered).map(([e, r]) => `| ${t}${e} | ${hr(n > 0 ? r.rendered / n * 100 : 0)} |`);
5968
5969
  }
5969
- function dr(e) {
5970
+ function ur(e) {
5970
5971
  let [t] = e;
5971
5972
  if (t === void 0) throw Error("Expected exactly one entry");
5972
5973
  return t;
5973
5974
  }
5974
- function fr(e) {
5975
+ function dr(e) {
5975
5976
  let [t] = e.keys();
5976
5977
  if (t === void 0) throw Error("Expected exactly one file");
5977
5978
  return t;
5978
5979
  }
5979
- async function pr(e) {
5980
+ async function fr(e) {
5980
5981
  let n = (await t.readdir(e)).filter((e) => e.endsWith(".js") && !e.endsWith(".map"));
5981
5982
  return Promise.all(n.map(async (n) => {
5982
- let r = await t.readFile(`${e}/${n}`), [i, a] = await Promise.all([Qn(r), $n(r)]);
5983
+ let r = await t.readFile(`${e}/${n}`), [i, a] = await Promise.all([Zn(r), Qn(r)]);
5983
5984
  return [n, {
5984
5985
  rendered: r.length,
5985
5986
  gzip: i.length,
@@ -5987,32 +5988,32 @@ async function pr(e) {
5987
5988
  }];
5988
5989
  }));
5989
5990
  }
5990
- function mr(e, t, n, r, i, a) {
5991
+ function pr(e, t, n, r, i, a) {
5991
5992
  let o = t.nodeParts[a];
5992
5993
  if (!o) return;
5993
- let s = yr(o), c = e.get(i);
5994
+ let s = vr(o), c = e.get(i);
5994
5995
  c === void 0 && (c = /* @__PURE__ */ new Map(), e.set(i, c));
5995
5996
  let l = c.get(n);
5996
5997
  l === void 0 && (l = {
5997
- sizes: br(),
5998
+ sizes: yr(),
5998
5999
  files: /* @__PURE__ */ new Map()
5999
- }, c.set(n, l)), xr(l.sizes, s);
6000
+ }, c.set(n, l)), br(l.sizes, s);
6000
6001
  let u = l.files.get(r);
6001
- u === void 0 && (u = br(), l.files.set(r, u)), xr(u, s);
6002
+ u === void 0 && (u = yr(), l.files.set(r, u)), br(u, s);
6002
6003
  }
6003
- function hr(e) {
6004
+ function mr(e) {
6004
6005
  let t = /* @__PURE__ */ new Map();
6005
6006
  for (let n of Object.values(e.nodeMetas)) {
6006
- let r = _r(n.id), i = vr(n.id);
6007
- for (let [a, o] of Object.entries(n.moduleParts)) mr(t, e, r, i, a.split("/").at(-1) ?? a, o);
6007
+ let r = gr(n.id), i = _r(n.id);
6008
+ for (let [a, o] of Object.entries(n.moduleParts)) pr(t, e, r, i, a.split("/").at(-1) ?? a, o);
6008
6009
  }
6009
6010
  return t;
6010
6011
  }
6011
- function gr(e) {
6012
- let t = Math.round(e / 100 * rr);
6013
- return `\`${"█".repeat(t)}${"░".repeat(rr - t)}\` ${e.toFixed(1)}%`;
6012
+ function hr(e) {
6013
+ let t = Math.round(e / 100 * nr);
6014
+ return `\`${"█".repeat(t)}${"░".repeat(nr - t)}\` ${e.toFixed(1)}%`;
6014
6015
  }
6015
- function _r(e) {
6016
+ function gr(e) {
6016
6017
  let t = e.startsWith("/") ? e.slice(1) : e;
6017
6018
  if (t.startsWith("\0")) return "(runtime)";
6018
6019
  if (t.startsWith("node_modules/")) {
@@ -6025,7 +6026,7 @@ function _r(e) {
6025
6026
  }
6026
6027
  return t.startsWith("rust/") || t.startsWith("__vite-plugin-wasm") ? "wasm" : "src";
6027
6028
  }
6028
- function vr(e) {
6029
+ function _r(e) {
6029
6030
  let t = e.startsWith("/") ? e.slice(1) : e;
6030
6031
  if (t.startsWith("\0")) return t.slice(1);
6031
6032
  if (t.startsWith("node_modules/")) {
@@ -6034,35 +6035,35 @@ function vr(e) {
6034
6035
  }
6035
6036
  return t.split("/").at(-1) ?? t;
6036
6037
  }
6037
- function yr(e) {
6038
+ function vr(e) {
6038
6039
  return {
6039
6040
  rendered: e.renderedLength,
6040
6041
  gzip: e.gzipLength,
6041
6042
  brotli: e.brotliLength
6042
6043
  };
6043
6044
  }
6044
- function br() {
6045
+ function yr() {
6045
6046
  return {
6046
6047
  rendered: 0,
6047
6048
  gzip: 0,
6048
6049
  brotli: 0
6049
6050
  };
6050
6051
  }
6051
- function xr(e, t) {
6052
+ function br(e, t) {
6052
6053
  e.rendered += t.rendered, e.gzip += t.gzip, e.brotli += t.brotli;
6053
6054
  }
6054
- function Sr(e) {
6055
+ function xr(e) {
6055
6056
  return e < 1024 ? `${String(e)} B` : `${(e / 1024).toFixed(1)} kB`;
6056
6057
  }
6057
6058
  //#endregion
6058
6059
  //#region src/actions/documentDependencies.ts
6059
- var Cr = "<!-- DEPENDENCY_LICENSES_START -->", wr = "<!-- DEPENDENCY_LICENSES_END -->", Tr = "<!-- DEPENDENCY_TREE_START -->", Er = "<!-- DEPENDENCY_TREE_END -->";
6060
- async function Dr(e = "MIT") {
6060
+ var Sr = "<!-- DEPENDENCY_LICENSES_START -->", Cr = "<!-- DEPENDENCY_LICENSES_END -->", wr = "<!-- DEPENDENCY_TREE_START -->", Tr = "<!-- DEPENDENCY_TREE_END -->";
6061
+ async function Er(e = "MIT") {
6061
6062
  try {
6062
6063
  G("Document Dependencies");
6063
6064
  let t = await W("package.json");
6064
6065
  if (t.name === "@dpuse/dpuse-development") {
6065
- await Or(), K("Dependencies documented");
6066
+ await Dr(), K("Dependencies documented");
6066
6067
  return;
6067
6068
  }
6068
6069
  await Pn("1️⃣ Clear downloaded licenses", "licenses/downloads"), q("2️⃣ Identify production licenses"), await new Promise((n, r) => {
@@ -6084,30 +6085,30 @@ async function Dr(e = "MIT") {
6084
6085
  "--all",
6085
6086
  "--json",
6086
6087
  "--omit=dev"
6087
- ], "licenses/licenseTree.json"), await kr("4️⃣ "), K("Dependencies documented");
6088
+ ], "licenses/licenseTree.json"), await Or("4️⃣ "), K("Dependencies documented");
6088
6089
  } catch (e) {
6089
6090
  console.error("❌ Error documenting dependencies", e), process.exit(1);
6090
6091
  }
6091
6092
  }
6092
- async function Or() {
6093
+ async function Dr() {
6093
6094
  q("1️⃣ Skip: @dpuse/dpuse-development is a development-only tool and is never part of a production release");
6094
6095
  let e = "> [!WARNING]\n> Dependency licenses are not documented here: @dpuse/dpuse-development is a development-only tool and is never part of a production release";
6095
- await Hn("README.md", qn(qn(await zn("./README.md"), e, Cr, wr), e, Tr, Er));
6096
+ await Hn("README.md", qn(qn(await zn("./README.md"), e, Sr, Cr), e, wr, Tr));
6096
6097
  }
6097
- async function kr(e) {
6098
+ async function Or(e) {
6098
6099
  q(`${e} Insert licenses into 'README.md'`);
6099
6100
  let [t, n] = await Promise.all([W("licenses/licenses.json"), W("licenses/licenseTree.json")]), r = /* @__PURE__ */ new Map();
6100
- for (let [e, n] of Object.entries(t)) r.set(e, Ar(e, n));
6101
+ for (let [e, n] of Object.entries(t)) r.set(e, kr(e, n));
6101
6102
  await Promise.all(r.values().map(async (e) => {
6102
- let t = await jr(e.name, e.installedVersion);
6103
+ let t = await Ar(e.name, e.installedVersion);
6103
6104
  e.latestVersion = t.latestVersion, e.latestPublishedDate = t.latestPublishedDate, e.publishedDate = t.publishedDate;
6104
6105
  }));
6105
6106
  let i = "|Dependency|Version|License(s)|Document|\n|:-|:-:|:-|:-|\n";
6106
- for (let e of r.values()) i += Mr(e);
6107
+ for (let e of r.values()) i += jr(e);
6107
6108
  let a = [];
6108
- n.dependencies != null && Nr(n.dependencies, r, a, 0), await Hn("README.md", qn(qn(await zn("./README.md"), i, Cr, wr), a.join("\n"), Tr, Er));
6109
+ n.dependencies != null && Mr(n.dependencies, r, a, 0), await Hn("README.md", qn(qn(await zn("./README.md"), i, Sr, Cr), a.join("\n"), wr, Tr));
6109
6110
  }
6110
- function Ar(e, t) {
6111
+ function kr(e, t) {
6111
6112
  let n = e.lastIndexOf("@"), r = n > 0 ? e.slice(0, n) : e, i = n > 0 ? e.slice(n + 1) : "";
6112
6113
  return {
6113
6114
  name: r,
@@ -6121,7 +6122,7 @@ function Ar(e, t) {
6121
6122
  ...t.licenseFile != null && { licenseFileLink: t.licenseFile }
6122
6123
  };
6123
6124
  }
6124
- async function jr(e, t) {
6125
+ async function Ar(e, t) {
6125
6126
  try {
6126
6127
  let n = await fetch(`https://registry.npmjs.org/${encodeURIComponent(e)}`);
6127
6128
  if (n.ok) {
@@ -6139,25 +6140,25 @@ async function jr(e, t) {
6139
6140
  publishedDate: ""
6140
6141
  };
6141
6142
  }
6142
- function Mr(e) {
6143
+ function jr(e) {
6143
6144
  let t = e.licenseFileLink == null || e.licenseFileLink === "" ? "⚠️ No license file" : `[LICENSE](licenses/${e.licenseFileLink})`;
6144
6145
  return `|[${e.name}](${e.repository})|${e.installedVersion}|${e.licenseTypes}|${t}|\n`;
6145
6146
  }
6146
- function Nr(e, t, n, r) {
6147
+ function Mr(e, t, n, r) {
6147
6148
  let i = " ".repeat(r);
6148
6149
  for (let [a, o] of Object.entries(e)) {
6149
- let e = o.version ?? "", s = t.get(`${a}@${e}`), c = s == null ? a : `[${a}](${s.repository})`, l = Pr(s);
6150
- n.push(`${i}- **${c}** ${e}${l}`), o.dependencies != null && Nr(o.dependencies, t, n, r + 1);
6150
+ let e = o.version ?? "", s = t.get(`${a}@${e}`), c = s == null ? a : `[${a}](${s.repository})`, l = Nr(s);
6151
+ n.push(`${i}- **${c}** ${e}${l}`), o.dependencies != null && Mr(o.dependencies, t, n, r + 1);
6151
6152
  }
6152
6153
  }
6153
- function Pr(e) {
6154
+ function Nr(e) {
6154
6155
  if (e == null) return "";
6155
- let t = e.publishedDate ? Fr(e.publishedDate.split("T", 1)[0]) : "";
6156
+ let t = e.publishedDate ? Pr(e.publishedDate.split("T", 1)[0]) : "";
6156
6157
  if (!(e.latestVersion !== "" && e.latestVersion !== e.installedVersion)) return t === "" ? "" : ` — ${t}`;
6157
- let n = e.latestPublishedDate ? Fr(e.latestPublishedDate.split("T", 1)[0]) : "", r = n === "" ? `**latest**: ${e.latestVersion} ❗` : `**latest**: ${e.latestVersion} — ${n} ❗`;
6158
+ let n = e.latestPublishedDate ? Pr(e.latestPublishedDate.split("T", 1)[0]) : "", r = n === "" ? `**latest**: ${e.latestVersion} ❗` : `**latest**: ${e.latestVersion} — ${n} ❗`;
6158
6159
  return t === "" ? ` — → ${r}` : ` — ${t} → ${r}`;
6159
6160
  }
6160
- function Fr(e) {
6161
+ function Pr(e) {
6161
6162
  if (e == null || e === "") return "n/a";
6162
6163
  let t = e.split("T", 1)[0];
6163
6164
  if (t == null || t === "") return "n/a";
@@ -6166,43 +6167,43 @@ function Fr(e) {
6166
6167
  }
6167
6168
  //#endregion
6168
6169
  //#region node_modules/@dpuse/dpuse-shared/dist/componentConfig.schema-dBVLwQIt.js
6169
- var Ir, Lr = {
6170
+ var Fr, Ir = {
6170
6171
  lang: void 0,
6171
6172
  message: void 0,
6172
6173
  abortEarly: void 0,
6173
6174
  abortPipeEarly: void 0
6174
6175
  };
6175
6176
  /* @__NO_SIDE_EFFECTS__ */
6176
- function Rr(e) {
6177
- return !e && !Ir ? Lr : {
6178
- lang: e?.lang ?? Ir?.lang,
6177
+ function Lr(e) {
6178
+ return !e && !Fr ? Ir : {
6179
+ lang: e?.lang ?? Fr?.lang,
6179
6180
  message: e?.message,
6180
- abortEarly: e?.abortEarly ?? Ir?.abortEarly,
6181
- abortPipeEarly: e?.abortPipeEarly ?? Ir?.abortPipeEarly
6181
+ abortEarly: e?.abortEarly ?? Fr?.abortEarly,
6182
+ abortPipeEarly: e?.abortPipeEarly ?? Fr?.abortPipeEarly
6182
6183
  };
6183
6184
  }
6184
- var zr;
6185
+ var Rr;
6185
6186
  /* @__NO_SIDE_EFFECTS__ */
6186
- function Br(e) {
6187
- return zr?.get(e);
6187
+ function zr(e) {
6188
+ return Rr?.get(e);
6188
6189
  }
6189
- var Vr;
6190
+ var Br;
6190
6191
  /* @__NO_SIDE_EFFECTS__ */
6191
- function Hr(e) {
6192
- return Vr?.get(e);
6192
+ function Vr(e) {
6193
+ return Br?.get(e);
6193
6194
  }
6194
- var Ur;
6195
+ var Hr;
6195
6196
  /* @__NO_SIDE_EFFECTS__ */
6196
- function Wr(e, t) {
6197
- return Ur?.get(e)?.get(t);
6197
+ function Ur(e, t) {
6198
+ return Hr?.get(e)?.get(t);
6198
6199
  }
6199
6200
  /* @__NO_SIDE_EFFECTS__ */
6200
- function Gr(e) {
6201
+ function Wr(e) {
6201
6202
  let t = typeof e;
6202
6203
  return t === "string" ? `"${e}"` : t === "number" || t === "bigint" || t === "boolean" ? `${e}` : t === "object" || t === "function" ? (e && Object.getPrototypeOf(e)?.constructor?.name) ?? "null" : t;
6203
6204
  }
6204
- function J(e, t, n, r, i) {
6205
- let a = i && "input" in i ? i.input : n.value, o = i?.expected ?? e.expects ?? null, s = i?.received ?? /* @__PURE__ */ Gr(a), c = {
6205
+ function Y(e, t, n, r, i) {
6206
+ let a = i && "input" in i ? i.input : n.value, o = i?.expected ?? e.expects ?? null, s = i?.received ?? /* @__PURE__ */ Wr(a), c = {
6206
6207
  kind: e.kind,
6207
6208
  type: e.type,
6208
6209
  input: a,
@@ -6215,50 +6216,50 @@ function J(e, t, n, r, i) {
6215
6216
  lang: r.lang,
6216
6217
  abortEarly: r.abortEarly,
6217
6218
  abortPipeEarly: r.abortPipeEarly
6218
- }, l = e.kind === "schema", u = i?.message ?? e.message ?? /* @__PURE__ */ Wr(e.reference, c.lang) ?? (l ? /* @__PURE__ */ Hr(c.lang) : null) ?? r.message ?? /* @__PURE__ */ Br(c.lang);
6219
+ }, l = e.kind === "schema", u = i?.message ?? e.message ?? /* @__PURE__ */ Ur(e.reference, c.lang) ?? (l ? /* @__PURE__ */ Vr(c.lang) : null) ?? r.message ?? /* @__PURE__ */ zr(c.lang);
6219
6220
  u !== void 0 && (c.message = typeof u == "function" ? u(c) : u), l && (n.typed = !1), n.issues ? n.issues.push(c) : n.issues = [c];
6220
6221
  }
6221
- var Kr = /* @__PURE__ */ new WeakMap();
6222
+ var Gr = /* @__PURE__ */ new WeakMap();
6222
6223
  /* @__NO_SIDE_EFFECTS__ */
6223
- function Y(e) {
6224
- let t = Kr.get(e);
6224
+ function X(e) {
6225
+ let t = Gr.get(e);
6225
6226
  return t || (t = {
6226
6227
  version: 1,
6227
6228
  vendor: "valibot",
6228
6229
  validate(t) {
6229
- return e["~run"]({ value: t }, /* @__PURE__ */ Rr());
6230
+ return e["~run"]({ value: t }, /* @__PURE__ */ Lr());
6230
6231
  }
6231
- }, Kr.set(e, t)), t;
6232
+ }, Gr.set(e, t)), t;
6232
6233
  }
6233
6234
  /* @__NO_SIDE_EFFECTS__ */
6234
- function qr(e, t) {
6235
+ function Kr(e, t) {
6235
6236
  return Object.prototype.hasOwnProperty.call(e, t) && t !== "__proto__" && t !== "prototype" && t !== "constructor";
6236
6237
  }
6237
6238
  /* @__NO_SIDE_EFFECTS__ */
6238
- function Jr(e, t) {
6239
+ function qr(e, t) {
6239
6240
  let n = [...new Set(e)];
6240
6241
  return n.length > 1 ? `(${n.join(` ${t} `)})` : n[0] ?? "never";
6241
6242
  }
6242
6243
  /* @__NO_SIDE_EFFECTS__ */
6243
- function Yr(e, t, n) {
6244
+ function Jr(e, t, n) {
6244
6245
  return typeof e.fallback == "function" ? e.fallback(t, n) : e.fallback;
6245
6246
  }
6246
6247
  /* @__NO_SIDE_EFFECTS__ */
6247
- function Xr(e, t, n) {
6248
+ function Yr(e, t, n) {
6248
6249
  return typeof e.default == "function" ? e.default(t, n) : e.default;
6249
6250
  }
6250
6251
  /* @__NO_SIDE_EFFECTS__ */
6251
- function X(e, t) {
6252
+ function Xr(e, t) {
6252
6253
  return {
6253
6254
  kind: "schema",
6254
6255
  type: "array",
6255
- reference: X,
6256
+ reference: Xr,
6256
6257
  expects: "Array",
6257
6258
  async: !1,
6258
6259
  item: e,
6259
6260
  message: t,
6260
6261
  get "~standard"() {
6261
- return /* @__PURE__ */ Y(this);
6262
+ return /* @__PURE__ */ X(this);
6262
6263
  },
6263
6264
  "~run"(e, t) {
6264
6265
  let n = e.value;
@@ -6282,7 +6283,7 @@ function X(e, t) {
6282
6283
  }
6283
6284
  a.typed || (e.typed = !1), e.value.push(a.value);
6284
6285
  }
6285
- } else J(this, "type", e, t);
6286
+ } else Y(this, "type", e, t);
6286
6287
  return e;
6287
6288
  }
6288
6289
  };
@@ -6297,10 +6298,10 @@ function Zr(e) {
6297
6298
  async: !1,
6298
6299
  message: e,
6299
6300
  get "~standard"() {
6300
- return /* @__PURE__ */ Y(this);
6301
+ return /* @__PURE__ */ X(this);
6301
6302
  },
6302
6303
  "~run"(e, t) {
6303
- return typeof e.value == "boolean" ? e.typed = !0 : J(this, "type", e, t), e;
6304
+ return typeof e.value == "boolean" ? e.typed = !0 : Y(this, "type", e, t), e;
6304
6305
  }
6305
6306
  };
6306
6307
  }
@@ -6310,15 +6311,15 @@ function Qr(e, t) {
6310
6311
  kind: "schema",
6311
6312
  type: "literal",
6312
6313
  reference: Qr,
6313
- expects: /* @__PURE__ */ Gr(e),
6314
+ expects: /* @__PURE__ */ Wr(e),
6314
6315
  async: !1,
6315
6316
  literal: e,
6316
6317
  message: t,
6317
6318
  get "~standard"() {
6318
- return /* @__PURE__ */ Y(this);
6319
+ return /* @__PURE__ */ X(this);
6319
6320
  },
6320
6321
  "~run"(e, t) {
6321
- return e.value === this.literal ? e.typed = !0 : J(this, "type", e, t), e;
6322
+ return e.value === this.literal ? e.typed = !0 : Y(this, "type", e, t), e;
6322
6323
  }
6323
6324
  };
6324
6325
  }
@@ -6333,10 +6334,10 @@ function Z(e, t) {
6333
6334
  wrapped: e,
6334
6335
  default: t,
6335
6336
  get "~standard"() {
6336
- return /* @__PURE__ */ Y(this);
6337
+ return /* @__PURE__ */ X(this);
6337
6338
  },
6338
6339
  "~run"(e, t) {
6339
- return e.value === null && (this.default !== void 0 && (e.value = /* @__PURE__ */ Xr(this, e, t)), e.value === null) ? (e.typed = !0, e) : this.wrapped["~run"](e, t);
6340
+ return e.value === null && (this.default !== void 0 && (e.value = /* @__PURE__ */ Yr(this, e, t)), e.value === null) ? (e.typed = !0, e) : this.wrapped["~run"](e, t);
6340
6341
  }
6341
6342
  };
6342
6343
  }
@@ -6350,10 +6351,10 @@ function $r(e) {
6350
6351
  async: !1,
6351
6352
  message: e,
6352
6353
  get "~standard"() {
6353
- return /* @__PURE__ */ Y(this);
6354
+ return /* @__PURE__ */ X(this);
6354
6355
  },
6355
6356
  "~run"(e, t) {
6356
- return typeof e.value == "number" && !isNaN(e.value) ? e.typed = !0 : J(this, "type", e, t), e;
6357
+ return typeof e.value == "number" && !isNaN(e.value) ? e.typed = !0 : Y(this, "type", e, t), e;
6357
6358
  }
6358
6359
  };
6359
6360
  }
@@ -6368,7 +6369,7 @@ function Q(e, t) {
6368
6369
  entries: e,
6369
6370
  message: t,
6370
6371
  get "~standard"() {
6371
- return /* @__PURE__ */ Y(this);
6372
+ return /* @__PURE__ */ X(this);
6372
6373
  },
6373
6374
  "~run"(e, t) {
6374
6375
  let n = e.value;
@@ -6377,7 +6378,7 @@ function Q(e, t) {
6377
6378
  for (let r in this.entries) {
6378
6379
  let i = this.entries[r];
6379
6380
  if (r in n || (i.type === "exact_optional" || i.type === "optional" || i.type === "nullish") && i.default !== void 0) {
6380
- let a = r in n ? n[r] : /* @__PURE__ */ Xr(i), o = i["~run"]({ value: a }, t);
6381
+ let a = r in n ? n[r] : /* @__PURE__ */ Yr(i), o = i["~run"]({ value: a }, t);
6381
6382
  if (o.issues) {
6382
6383
  let i = {
6383
6384
  type: "object",
@@ -6393,8 +6394,8 @@ function Q(e, t) {
6393
6394
  }
6394
6395
  }
6395
6396
  o.typed || (e.typed = !1), e.value[r] = o.value;
6396
- } else if (i.fallback !== void 0) e.value[r] = /* @__PURE__ */ Yr(i);
6397
- else if (i.type !== "exact_optional" && i.type !== "optional" && i.type !== "nullish" && (J(this, "key", e, t, {
6397
+ } else if (i.fallback !== void 0) e.value[r] = /* @__PURE__ */ Jr(i);
6398
+ else if (i.type !== "exact_optional" && i.type !== "optional" && i.type !== "nullish" && (Y(this, "key", e, t, {
6398
6399
  input: void 0,
6399
6400
  expected: `"${r}"`,
6400
6401
  path: [{
@@ -6406,7 +6407,7 @@ function Q(e, t) {
6406
6407
  }]
6407
6408
  }), t.abortEarly)) break;
6408
6409
  }
6409
- } else J(this, "type", e, t);
6410
+ } else Y(this, "type", e, t);
6410
6411
  return e;
6411
6412
  }
6412
6413
  };
@@ -6422,10 +6423,10 @@ function ei(e, t) {
6422
6423
  wrapped: e,
6423
6424
  default: t,
6424
6425
  get "~standard"() {
6425
- return /* @__PURE__ */ Y(this);
6426
+ return /* @__PURE__ */ X(this);
6426
6427
  },
6427
6428
  "~run"(e, t) {
6428
- return e.value === void 0 && (this.default !== void 0 && (e.value = /* @__PURE__ */ Xr(this, e, t)), e.value === void 0) ? (e.typed = !0, e) : this.wrapped["~run"](e, t);
6429
+ return e.value === void 0 && (this.default !== void 0 && (e.value = /* @__PURE__ */ Yr(this, e, t)), e.value === void 0) ? (e.typed = !0, e) : this.wrapped["~run"](e, t);
6429
6430
  }
6430
6431
  };
6431
6432
  }
@@ -6441,13 +6442,13 @@ function ti(e, t, n) {
6441
6442
  value: t,
6442
6443
  message: n,
6443
6444
  get "~standard"() {
6444
- return /* @__PURE__ */ Y(this);
6445
+ return /* @__PURE__ */ X(this);
6445
6446
  },
6446
6447
  "~run"(e, t) {
6447
6448
  let n = e.value;
6448
6449
  if (n && typeof n == "object") {
6449
6450
  e.typed = !0, e.value = {};
6450
- for (let r in n) if (/* @__PURE__ */ qr(n, r)) {
6451
+ for (let r in n) if (/* @__PURE__ */ Kr(n, r)) {
6451
6452
  let i = n[r], a = this.key["~run"]({ value: r }, t);
6452
6453
  if (a.issues) {
6453
6454
  let o = {
@@ -6480,7 +6481,7 @@ function ti(e, t, n) {
6480
6481
  }
6481
6482
  (!a.typed || !o.typed) && (e.typed = !1), a.typed && (e.value[a.value] = o.value);
6482
6483
  }
6483
- } else J(this, "type", e, t);
6484
+ } else Y(this, "type", e, t);
6484
6485
  return e;
6485
6486
  }
6486
6487
  };
@@ -6495,10 +6496,10 @@ function $(e) {
6495
6496
  async: !1,
6496
6497
  message: e,
6497
6498
  get "~standard"() {
6498
- return /* @__PURE__ */ Y(this);
6499
+ return /* @__PURE__ */ X(this);
6499
6500
  },
6500
6501
  "~run"(e, t) {
6501
- return typeof e.value == "string" ? e.typed = !0 : J(this, "type", e, t), e;
6502
+ return typeof e.value == "string" ? e.typed = !0 : Y(this, "type", e, t), e;
6502
6503
  }
6503
6504
  };
6504
6505
  }
@@ -6515,12 +6516,12 @@ function ri(e, t) {
6515
6516
  kind: "schema",
6516
6517
  type: "union",
6517
6518
  reference: ri,
6518
- expects: /* @__PURE__ */ Jr(e.map((e) => e.expects), "|"),
6519
+ expects: /* @__PURE__ */ qr(e.map((e) => e.expects), "|"),
6519
6520
  async: !1,
6520
6521
  options: e,
6521
6522
  message: t,
6522
6523
  get "~standard"() {
6523
- return /* @__PURE__ */ Y(this);
6524
+ return /* @__PURE__ */ X(this);
6524
6525
  },
6525
6526
  "~run"(e, t) {
6526
6527
  let n, r, i;
@@ -6536,9 +6537,9 @@ function ri(e, t) {
6536
6537
  if (n) return n;
6537
6538
  if (r) {
6538
6539
  if (r.length === 1) return r[0];
6539
- J(this, "type", e, t, { issues: /* @__PURE__ */ ni(r) }), e.typed = !0;
6540
+ Y(this, "type", e, t, { issues: /* @__PURE__ */ ni(r) }), e.typed = !0;
6540
6541
  } else if (i?.length === 1) return i[0];
6541
- else J(this, "type", e, t, { issues: /* @__PURE__ */ ni(i) });
6542
+ else Y(this, "type", e, t, { issues: /* @__PURE__ */ ni(i) });
6542
6543
  return e;
6543
6544
  }
6544
6545
  };
@@ -6547,8 +6548,8 @@ var ii = (e) => /* @__PURE__ */ ri(e.map((e) => /* @__PURE__ */ Qr(e))), ai = /*
6547
6548
  en: /* @__PURE__ */ $(),
6548
6549
  es: /* @__PURE__ */ $()
6549
6550
  }), oi = /* @__PURE__ */ Q({
6550
- en: /* @__PURE__ */ ei(/* @__PURE__ */ X(/* @__PURE__ */ $())),
6551
- es: /* @__PURE__ */ ei(/* @__PURE__ */ X(/* @__PURE__ */ $()))
6551
+ en: /* @__PURE__ */ ei(/* @__PURE__ */ Xr(/* @__PURE__ */ $())),
6552
+ es: /* @__PURE__ */ ei(/* @__PURE__ */ Xr(/* @__PURE__ */ $()))
6552
6553
  }), si = /* @__PURE__ */ Q({
6553
6554
  en: /* @__PURE__ */ ei(/* @__PURE__ */ $()),
6554
6555
  es: /* @__PURE__ */ ei(/* @__PURE__ */ $())
@@ -6667,11 +6668,11 @@ var mi = ii([
6667
6668
  id: /* @__PURE__ */ ei(/* @__PURE__ */ $()),
6668
6669
  label: /* @__PURE__ */ ei(ai),
6669
6670
  maxConnectionCount: /* @__PURE__ */ Z(/* @__PURE__ */ $r()),
6670
- params: /* @__PURE__ */ ei(/* @__PURE__ */ X(/* @__PURE__ */ ti(/* @__PURE__ */ $(), /* @__PURE__ */ $())))
6671
+ params: /* @__PURE__ */ ei(/* @__PURE__ */ Xr(/* @__PURE__ */ ti(/* @__PURE__ */ $(), /* @__PURE__ */ $())))
6671
6672
  }), vi = /* @__PURE__ */ Q({
6672
6673
  typeId: /* @__PURE__ */ Qr("connector"),
6673
6674
  ...pi,
6674
- actionNames: /* @__PURE__ */ X(mi),
6675
+ actionNames: /* @__PURE__ */ Xr(mi),
6675
6676
  category: /* @__PURE__ */ Z(gi),
6676
6677
  categoryId: hi,
6677
6678
  implementations: /* @__PURE__ */ ti(/* @__PURE__ */ $(), _i),
@@ -6826,13 +6827,13 @@ function Ni(e, t, n) {
6826
6827
  var Pi = /* @__PURE__ */ Q({
6827
6828
  typeId: /* @__PURE__ */ Qr("contextArea"),
6828
6829
  ...fi,
6829
- modelRefs: /* @__PURE__ */ X(di),
6830
+ modelRefs: /* @__PURE__ */ Xr(di),
6830
6831
  order: /* @__PURE__ */ $r()
6831
6832
  }), Fi = ii(["listContextFocuses"]), Ii = /* @__PURE__ */ Q({
6832
6833
  typeId: /* @__PURE__ */ Qr("context"),
6833
6834
  ...pi,
6834
- actionNames: /* @__PURE__ */ X(Fi),
6835
- models: /* @__PURE__ */ X(Pi)
6835
+ actionNames: /* @__PURE__ */ Xr(Fi),
6836
+ models: /* @__PURE__ */ Xr(Pi)
6836
6837
  }), Li = ii([
6837
6838
  "list",
6838
6839
  "render",
@@ -6840,8 +6841,8 @@ var Pi = /* @__PURE__ */ Q({
6840
6841
  ]), Ri = /* @__PURE__ */ Q({
6841
6842
  typeId: /* @__PURE__ */ Qr("presenter"),
6842
6843
  ...pi,
6843
- actionNames: /* @__PURE__ */ X(Li),
6844
- presentations: /* @__PURE__ */ X(di)
6844
+ actionNames: /* @__PURE__ */ Xr(Li),
6845
+ presentations: /* @__PURE__ */ Xr(di)
6845
6846
  }), zi = /* @__PURE__ */ new Set([
6846
6847
  "createObject",
6847
6848
  "dropObject",
@@ -7009,6 +7010,6 @@ async function Qi(e, t, n = "./") {
7009
7010
  await Vn(`${n}package.json`, t);
7010
7011
  }
7011
7012
  //#endregion
7012
- export { Jn as auditDependencies, Vi as buildProject, Yn as checkConfigFiles, Zn as checkDependencies, Ci as documentActions, ir as documentBundleSizes, Dr as documentDependencies, wi as formatCode, Ti as lintCode, Yi as publishProject, Hi as releaseProject, Xi as syncProjectWithGitHub, Zi as testProject, Di as uploadDirectoryToR2 };
7013
+ export { Jn as auditDependencies, Vi as buildProject, Yn as checkConfigFiles, Xn as checkDependencies, Ci as documentActions, rr as documentBundleSizes, Er as documentDependencies, wi as formatCode, Ti as lintCode, Yi as publishProject, Hi as releaseProject, Xi as syncProjectWithGitHub, Zi as testProject, Di as uploadDirectoryToR2 };
7013
7014
 
7014
7015
  //# sourceMappingURL=dpuse-development.es.js.map