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