@oomol-lab/open-flow 0.1.0-beta.28 → 0.1.0-beta.29

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.
Files changed (33) hide show
  1. package/dist/browser/{createResourceDialog-C2ZLGPla.js → createResourceDialog-C_8I3Fua.js} +1 -1
  2. package/dist/browser/dist-CoszrK7m.js +4 -0
  3. package/dist/browser/{switch-DuB8aovT.js → editorComponent-Dq4IKp5R.js} +1222 -608
  4. package/dist/browser/flow-authoring-node.d.ts +3 -0
  5. package/dist/browser/flow-authoring.js +1388 -1555
  6. package/dist/browser/flow-change.d.ts +12 -7
  7. package/dist/browser/flow-change.js +966 -1105
  8. package/dist/browser/{flowChanges-Z49mslMz.js → flowChanges-BBtkyUGd.js} +1974 -1839
  9. package/dist/browser/{flowRunInputEditorStore-BBqQIOCR.js → flowRunInputEditorStore-CTORQcA2.js} +378 -429
  10. package/dist/browser/{flowWorkspace-DCaVDqtY.js → flowWorkspace-DNmBb3ZW.js} +52795 -52886
  11. package/dist/browser/{inputValues-CLnpqFAf.js → inputValues-BbSVOWQP.js} +2 -2
  12. package/dist/browser/{markdownContent-Bon8uhjM.js → markdownContent-D2oHGWc6.js} +1 -1
  13. package/dist/browser/ui.css +1 -1
  14. package/dist/browser/value-DPg_9yXB.js +93 -0
  15. package/dist/browser/workbench.css +1 -1
  16. package/dist/browser/workbench.js +508 -507
  17. package/dist/browser/{workbenchSelect-DX9IFmX-.js → workbenchSelect-CQOvpteT.js} +1057 -1223
  18. package/dist/common/authoringExamples.d.ts +3 -2
  19. package/dist/common/control-api-conformance.js +1359 -1484
  20. package/dist/common/control-api.d.ts +5 -1
  21. package/dist/common/control-api.js +942 -1077
  22. package/dist/common/control-requests.js +751 -834
  23. package/dist/common/flow-encoding.js +1502 -1637
  24. package/dist/common/flow-graph.d.ts +18 -2
  25. package/dist/common/flow-semantics.js +1982 -2116
  26. package/dist/common/mcp.js +908 -1016
  27. package/dist/common/provider-triggers.js +2048 -2183
  28. package/dist/common/run-events.js +1 -0
  29. package/dist/common/scheduler.d.ts +2 -2
  30. package/dist/common/scheduler.js +1282 -1477
  31. package/package.json +1 -1
  32. package/dist/browser/dist-B_T-OpQp.js +0 -4
  33. package/dist/browser/languages-C0zQ4GSo.js +0 -42
@@ -1804,88 +1804,7 @@ function pi(e, t, n) {
1804
1804
  }
1805
1805
  return e.value = c.data, e;
1806
1806
  }
1807
- var mi = /*@__PURE__*/ D("$ZodTuple", (e, t) => {
1808
- j.init(e, t);
1809
- let n = t.items, r = O.memoizer;
1810
- r?.attach(e), e._zod.parse = (i, a) => {
1811
- let o = i.value;
1812
- if (!Array.isArray(o)) return i.issues.push({
1813
- input: o,
1814
- inst: e,
1815
- expected: "tuple",
1816
- code: "invalid_type"
1817
- }), i;
1818
- i.value = r ? r.alloc(e, i, [], a) : [];
1819
- let s = [], c = hi(n, "optin"), l = hi(n, "optout");
1820
- if (!t.rest) {
1821
- if (o.length < c) return i.issues.push({
1822
- code: "too_small",
1823
- minimum: c,
1824
- inclusive: !0,
1825
- input: o,
1826
- inst: e,
1827
- origin: "array"
1828
- }), i;
1829
- o.length > n.length && i.issues.push({
1830
- code: "too_big",
1831
- maximum: n.length,
1832
- inclusive: !0,
1833
- input: o,
1834
- inst: e,
1835
- origin: "array"
1836
- });
1837
- }
1838
- let u = Array(n.length);
1839
- for (let e = 0; e < n.length; e++) {
1840
- let t = n[e]._zod.run({
1841
- value: o[e],
1842
- issues: []
1843
- }, a);
1844
- t instanceof Promise ? s.push(t.then((t) => {
1845
- u[e] = t;
1846
- })) : u[e] = t;
1847
- }
1848
- if (t.rest) {
1849
- let e = n.length - 1, r = o.slice(n.length);
1850
- for (let n of r) {
1851
- e++;
1852
- let r = t.rest._zod.run({
1853
- value: n,
1854
- issues: []
1855
- }, a);
1856
- r instanceof Promise ? s.push(r.then((t) => gi(t, i, e))) : gi(r, i, e);
1857
- }
1858
- }
1859
- return s.length ? Promise.all(s).then(() => _i(u, i, n, o, l)) : _i(u, i, n, o, l);
1860
- };
1861
- });
1862
- function hi(e, t) {
1863
- for (let n = e.length - 1; n >= 0; n--) if (!(t === "optin" ? e[n]._zod.optin !== void 0 : e[n]._zod.optout === "optional")) return n + 1;
1864
- return 0;
1865
- }
1866
- function gi(e, t, n) {
1867
- e.issues.length && t.issues.push(...dt(n, e.issues)), t.value[n] = e.value;
1868
- }
1869
- function _i(e, t, n, r, i) {
1870
- for (let a = 0; a < n.length; a++) {
1871
- let o = e[a], s = a < r.length;
1872
- if (!s && a >= i && n[a]._zod.optin === "optional") {
1873
- t.value.length = a;
1874
- break;
1875
- }
1876
- if (o.issues.length) {
1877
- if (!s && a >= i) {
1878
- t.value.length = a;
1879
- break;
1880
- }
1881
- t.issues.push(...dt(a, o.issues));
1882
- }
1883
- t.value[a] = o.value;
1884
- }
1885
- for (let e = t.value.length - 1; e >= r.length && n[e]._zod.optout === "optional" && t.value[e] === void 0; e--) t.value.length = e;
1886
- return t;
1887
- }
1888
- var vi = /*@__PURE__*/ D("$ZodRecord", (e, t) => {
1807
+ var mi = /*@__PURE__*/ D("$ZodRecord", (e, t) => {
1889
1808
  j.init(e, t);
1890
1809
  let n = O.memoizer;
1891
1810
  n?.attach(e), e._zod.parse = (r, i) => {
@@ -1991,7 +1910,7 @@ var vi = /*@__PURE__*/ D("$ZodRecord", (e, t) => {
1991
1910
  }
1992
1911
  return o.length ? Promise.all(o).then(() => r) : r;
1993
1912
  };
1994
- }), yi = /*@__PURE__*/ D("$ZodEnum", (e, t) => {
1913
+ }), hi = /*@__PURE__*/ D("$ZodEnum", (e, t) => {
1995
1914
  j.init(e, t);
1996
1915
  let n = Pe(t.entries), r = new Set(n);
1997
1916
  e._zod.values = r;
@@ -2005,7 +1924,7 @@ var vi = /*@__PURE__*/ D("$ZodRecord", (e, t) => {
2005
1924
  inst: e
2006
1925
  }), t;
2007
1926
  };
2008
- }), bi = /*@__PURE__*/ D("$ZodLiteral", (e, t) => {
1927
+ }), gi = /*@__PURE__*/ D("$ZodLiteral", (e, t) => {
2009
1928
  j.init(e, t);
2010
1929
  let n = new Set(t.values);
2011
1930
  e._zod.values = n, e._zod.pattern = RegExp(t.values.length ? `^(${t.values.map((e) => typeof e == "string" ? Ze(e) : e ? Ze(e.toString()) : String(e)).join("|")})$` : "^[^\\s\\S]$"), e._zod.parse = (r, i) => {
@@ -2017,7 +1936,7 @@ var vi = /*@__PURE__*/ D("$ZodRecord", (e, t) => {
2017
1936
  inst: e
2018
1937
  }), r;
2019
1938
  };
2020
- }), xi = /*@__PURE__*/ D("$ZodTransform", (e, t) => {
1939
+ }), _i = /*@__PURE__*/ D("$ZodTransform", (e, t) => {
2021
1940
  j.init(e, t), e._zod.optin = "optional", O.memoizer?.guard(e), e._zod.parse = (n, r) => {
2022
1941
  if (r.direction === "backward") throw new It(e.constructor.name);
2023
1942
  let i = t.transform(n.value, n);
@@ -2026,10 +1945,10 @@ var vi = /*@__PURE__*/ D("$ZodRecord", (e, t) => {
2026
1945
  return n.value = i, n;
2027
1946
  };
2028
1947
  });
2029
- function Si(e, t) {
1948
+ function vi(e, t) {
2030
1949
  return e.value = t.issues.length ? void 0 : t.value, e;
2031
1950
  }
2032
- var Ci = /*@__PURE__*/ D("$ZodOptional", (e, t) => {
1951
+ var yi = /*@__PURE__*/ D("$ZodOptional", (e, t) => {
2033
1952
  j.init(e, t), E(e, "optin", (e) => e.def.innerType._zod.optin === "defaulted" ? "defaulted" : "optional"), e._zod.optout = "optional", E(e, "values", (e) => {
2034
1953
  let t = e.def.innerType._zod.values;
2035
1954
  return t ? /* @__PURE__ */ new Set([...t, void 0]) : void 0;
@@ -2043,40 +1962,40 @@ var Ci = /*@__PURE__*/ D("$ZodOptional", (e, t) => {
2043
1962
  value: e.value,
2044
1963
  issues: []
2045
1964
  }, n);
2046
- return r instanceof Promise ? r.then((t) => Si(e, t)) : Si(e, r);
1965
+ return r instanceof Promise ? r.then((t) => vi(e, t)) : vi(e, r);
2047
1966
  }
2048
1967
  return t.innerType._zod.run(e, n);
2049
1968
  };
2050
- }), wi = /*@__PURE__*/ D("$ZodExactOptional", (e, t) => {
2051
- Ci.init(e, t), E(e, "values", (e) => e.def.innerType._zod.values), E(e, "pattern", (e) => e.def.innerType._zod.pattern), e._zod.parse = (e, n) => t.innerType._zod.run(e, n);
2052
- }), Ti = /*@__PURE__*/ D("$ZodNullable", (e, t) => {
1969
+ }), bi = /*@__PURE__*/ D("$ZodExactOptional", (e, t) => {
1970
+ yi.init(e, t), E(e, "values", (e) => e.def.innerType._zod.values), E(e, "pattern", (e) => e.def.innerType._zod.pattern), e._zod.parse = (e, n) => t.innerType._zod.run(e, n);
1971
+ }), xi = /*@__PURE__*/ D("$ZodNullable", (e, t) => {
2053
1972
  j.init(e, t), E(e, "optin", (e) => e.def.innerType._zod.optin), E(e, "optout", (e) => e.def.innerType._zod.optout), E(e, "pattern", (e) => {
2054
1973
  let t = e.def.innerType._zod.pattern;
2055
1974
  return t ? RegExp(`^(${ze(t.source)}|null)$`) : void 0;
2056
1975
  }), E(e, "values", (e) => e.def.innerType._zod.values ? /* @__PURE__ */ new Set([...e.def.innerType._zod.values, null]) : void 0), e._zod.parse = (e, n) => e.value === null ? e : t.innerType._zod.run(e, n);
2057
- }), Ei = /*@__PURE__*/ D("$ZodDefault", (e, t) => {
1976
+ }), Si = /*@__PURE__*/ D("$ZodDefault", (e, t) => {
2058
1977
  j.init(e, t), e._zod.optin = "defaulted", E(e, "values", (e) => e.def.innerType._zod.values), e._zod.parse = (e, n) => {
2059
1978
  if (n.direction === "backward") return t.innerType._zod.run(e, n);
2060
1979
  if (e.value === void 0) return e.value = t.defaultValue, e;
2061
1980
  let r = t.innerType._zod.run(e, n);
2062
- return r instanceof Promise ? r.then((e) => Di(e, t)) : Di(r, t);
1981
+ return r instanceof Promise ? r.then((e) => Ci(e, t)) : Ci(r, t);
2063
1982
  };
2064
1983
  });
2065
- function Di(e, t) {
1984
+ function Ci(e, t) {
2066
1985
  return e.value === void 0 && (e.value = t.defaultValue), e;
2067
1986
  }
2068
- var Oi = /*@__PURE__*/ D("$ZodPrefault", (e, t) => {
1987
+ var wi = /*@__PURE__*/ D("$ZodPrefault", (e, t) => {
2069
1988
  j.init(e, t), e._zod.optin = "defaulted", E(e, "values", (e) => e.def.innerType._zod.values), e._zod.parse = (e, n) => (n.direction === "backward" || e.value === void 0 && (e.value = t.defaultValue), t.innerType._zod.run(e, n));
2070
- }), ki = /*@__PURE__*/ D("$ZodNonOptional", (e, t) => {
1989
+ }), Ti = /*@__PURE__*/ D("$ZodNonOptional", (e, t) => {
2071
1990
  j.init(e, t), E(e, "values", (e) => {
2072
1991
  let t = e.def.innerType._zod.values;
2073
1992
  return t ? new Set([...t].filter((e) => e !== void 0)) : void 0;
2074
1993
  }), e._zod.parse = (n, r) => {
2075
1994
  let i = t.innerType._zod.run(n, r);
2076
- return i instanceof Promise ? i.then((t) => Ai(t, e)) : Ai(i, e);
1995
+ return i instanceof Promise ? i.then((t) => Ei(t, e)) : Ei(i, e);
2077
1996
  };
2078
1997
  });
2079
- function Ai(e, t) {
1998
+ function Ei(e, t) {
2080
1999
  return !e.issues.length && e.value === void 0 && e.issues.push({
2081
2000
  code: "invalid_type",
2082
2001
  expected: "nonoptional",
@@ -2084,7 +2003,7 @@ function Ai(e, t) {
2084
2003
  inst: t
2085
2004
  }), e;
2086
2005
  }
2087
- function ji(e, t, n, r) {
2006
+ function Di(e, t, n, r) {
2088
2007
  return t.issues.length ? (e.value = n.catchValue({
2089
2008
  ...t,
2090
2009
  value: e.value,
@@ -2092,54 +2011,54 @@ function ji(e, t, n, r) {
2092
2011
  input: e.value
2093
2012
  }), e) : (e.value = t.value, t.memo && (e.memo = !0), e);
2094
2013
  }
2095
- var Mi = /*@__PURE__*/ D("$ZodCatch", (e, t) => {
2014
+ var Oi = /*@__PURE__*/ D("$ZodCatch", (e, t) => {
2096
2015
  j.init(e, t), E(e, "optin", (e) => e.def.innerType._zod.optin === "defaulted" ? "defaulted" : "optional"), E(e, "optout", (e) => e.def.innerType._zod.optout), E(e, "values", (e) => e.def.innerType._zod.values), e._zod.parse = (e, n) => {
2097
2016
  if (n.direction === "backward") return t.innerType._zod.run(e, n);
2098
2017
  let r = t.innerType._zod.run({
2099
2018
  value: e.value,
2100
2019
  issues: []
2101
2020
  }, n);
2102
- return r instanceof Promise ? r.then((r) => ji(e, r, t, n)) : ji(e, r, t, n);
2021
+ return r instanceof Promise ? r.then((r) => Di(e, r, t, n)) : Di(e, r, t, n);
2103
2022
  };
2104
- }), Ni = /*@__PURE__*/ D("$ZodPipe", (e, t) => {
2023
+ }), ki = /*@__PURE__*/ D("$ZodPipe", (e, t) => {
2105
2024
  j.init(e, t), E(e, "values", (e) => e.def.in._zod.values), E(e, "optin", (e) => e.def.in._zod.optin), E(e, "optout", (e) => e.def.out._zod.optout), E(e, "propValues", (e) => e.def.in._zod.propValues), e._zod.parse = (e, n) => {
2106
2025
  if (n.direction === "backward") {
2107
2026
  let r = t.out._zod.run(e, n);
2108
- return r instanceof Promise ? r.then((e) => Pi(e, t.in, n)) : Pi(r, t.in, n);
2027
+ return r instanceof Promise ? r.then((e) => Ai(e, t.in, n)) : Ai(r, t.in, n);
2109
2028
  }
2110
2029
  let r = t.in._zod.run(e, n);
2111
- return r instanceof Promise ? r.then((e) => Pi(e, t.out, n)) : Pi(r, t.out, n);
2030
+ return r instanceof Promise ? r.then((e) => Ai(e, t.out, n)) : Ai(r, t.out, n);
2112
2031
  };
2113
2032
  });
2114
- function Pi(e, t, n) {
2033
+ function Ai(e, t, n) {
2115
2034
  return e.issues.some((e) => e.code !== "unrecognized_keys") ? (e.aborted = !0, e) : t._zod.run({
2116
2035
  value: e.value,
2117
2036
  issues: e.issues
2118
2037
  }, n);
2119
2038
  }
2120
- var Fi = /*@__PURE__*/ D("$ZodReadonly", (e, t) => {
2039
+ var ji = /*@__PURE__*/ D("$ZodReadonly", (e, t) => {
2121
2040
  j.init(e, t), E(e, "propValues", (e) => e.def.innerType._zod.propValues), E(e, "values", (e) => e.def.innerType._zod.values), E(e, "optin", (e) => e.def.innerType?._zod?.optin), E(e, "optout", (e) => e.def.innerType?._zod?.optout), e._zod.parse = (e, n) => {
2122
2041
  if (n.direction === "backward") return t.innerType._zod.run(e, n);
2123
2042
  let r = t.innerType._zod.run(e, n);
2124
- return r instanceof Promise ? r.then(Ii) : Ii(r);
2043
+ return r instanceof Promise ? r.then(Mi) : Mi(r);
2125
2044
  };
2126
2045
  });
2127
- function Ii(e) {
2046
+ function Mi(e) {
2128
2047
  return e.memo || (e.value = Object.freeze(e.value)), e;
2129
2048
  }
2130
- var Li = /*@__PURE__*/ D("$ZodLazy", (e, t) => {
2049
+ var Ni = /*@__PURE__*/ D("$ZodLazy", (e, t) => {
2131
2050
  j.init(e, t), He(e._zod, "innerType", () => {
2132
2051
  let e = t;
2133
2052
  return e._cachedInner ||= t.getter(), e._cachedInner;
2134
2053
  }), E(e, "pattern", (e) => e.innerType?._zod?.pattern), E(e, "propValues", (e) => e.innerType?._zod?.propValues), E(e, "optin", (e) => e.innerType?._zod?.optin ?? void 0), E(e, "optout", (e) => e.innerType?._zod?.optout ?? void 0), e._zod.parse = (t, n) => e._zod.innerType._zod.run(t, n);
2135
- }), Ri = /*@__PURE__*/ D("$ZodCustom", (e, t) => {
2054
+ }), Pi = /*@__PURE__*/ D("$ZodCustom", (e, t) => {
2136
2055
  A.init(e, t), j.init(e, t), e._zod.parse = (e, t) => e, e._zod.check = (n) => {
2137
2056
  let r = n.value, i = t.fn(r);
2138
- if (i instanceof Promise) return i.then((t) => zi(t, n, r, e));
2139
- zi(i, n, r, e);
2057
+ if (i instanceof Promise) return i.then((t) => Fi(t, n, r, e));
2058
+ Fi(i, n, r, e);
2140
2059
  };
2141
2060
  });
2142
- function zi(e, t, n, r) {
2061
+ function Fi(e, t, n, r) {
2143
2062
  if (!e) {
2144
2063
  let e = {
2145
2064
  code: "custom",
@@ -2153,25 +2072,25 @@ function zi(e, t, n, r) {
2153
2072
  }
2154
2073
  //#endregion
2155
2074
  //#region ../../node_modules/.bun/zod@4.5.4/node_modules/zod/v4/core/memoizer.js
2156
- var Bi = class extends Error {
2075
+ var Ii = class extends Error {
2157
2076
  constructor() {
2158
2077
  super("Cannot parse a reference cycle that closes through a transform"), this.name = "ZodCyclicError";
2159
2078
  }
2160
- }, Vi = "~memo", Hi = [];
2161
- function Ui(e) {
2079
+ }, Li = "~memo", Ri = [];
2080
+ function zi(e) {
2162
2081
  return e.map((e) => e.path ? {
2163
2082
  ...e,
2164
2083
  path: e.path.slice()
2165
2084
  } : { ...e });
2166
2085
  }
2167
- var Wi = /*@__PURE__*/ new WeakMap();
2168
- function Gi(e, t) {
2169
- let n = Wi.get(e);
2086
+ var Bi = /*@__PURE__*/ new WeakMap();
2087
+ function Vi(e, t) {
2088
+ let n = Bi.get(e);
2170
2089
  if (n !== void 0) return n;
2171
2090
  if (t.has(e)) return !0;
2172
2091
  t.add(e);
2173
2092
  let r = !1, i = (e) => {
2174
- !r && e?._zod && Gi(e, t) && (r = !0);
2093
+ !r && e?._zod && Vi(e, t) && (r = !0);
2175
2094
  }, a = e._zod.def;
2176
2095
  switch (a.type) {
2177
2096
  case "object":
@@ -2248,28 +2167,28 @@ function Gi(e, t) {
2248
2167
  }
2249
2168
  }
2250
2169
  }
2251
- return t.delete(e), Wi.set(e, r), r;
2170
+ return t.delete(e), Bi.set(e, r), r;
2252
2171
  }
2253
- function Ki(e, t) {
2172
+ function Hi(e, t) {
2254
2173
  let n = e.buckets.get(t);
2255
2174
  return n || (n = /* @__PURE__ */ new Map(), e.buckets.set(t, n)), n;
2256
2175
  }
2257
- var qi, Ji = [], Yi = {
2176
+ var Ui, Wi = [], Gi = {
2258
2177
  alloc(e, t, n) {
2259
- let r = qi;
2178
+ let r = Ui;
2260
2179
  if (!r) return n;
2261
- qi = void 0;
2180
+ Ui = void 0;
2262
2181
  let i = {
2263
2182
  value: n,
2264
2183
  issues: null
2265
2184
  };
2266
- return r.set(t.value, i), Ji.push(i), n;
2185
+ return r.set(t.value, i), Wi.push(i), n;
2267
2186
  },
2268
2187
  guard(e) {
2269
2188
  var t;
2270
2189
  (t = e._zod).deferred ?? (t.deferred = []), e._zod.deferred.push(() => {
2271
2190
  let t = e._zod.parse, n = (e, n) => {
2272
- if (n.direction !== "backward" && Zi(n, e.value)) throw new Bi();
2191
+ if (n.direction !== "backward" && qi(n, e.value)) throw new Ii();
2273
2192
  return t(e, n);
2274
2193
  };
2275
2194
  e._zod.parse = n, e._zod.run === t && (e._zod.run = n);
@@ -2280,38 +2199,38 @@ var qi, Ji = [], Yi = {
2280
2199
  let n, r, i;
2281
2200
  (t = e._zod).deferred ?? (t.deferred = []), e._zod.deferred.push(() => {
2282
2201
  let t = e._zod.parse, a = (o, s) => {
2283
- if (n === void 0 && (n = Gi(e, /* @__PURE__ */ new Set()), !n)) return e._zod.parse = t, e._zod.run === a && (e._zod.run = t), t(o, s);
2202
+ if (n === void 0 && (n = Vi(e, /* @__PURE__ */ new Set()), !n)) return e._zod.parse = t, e._zod.run === a && (e._zod.run = t), t(o, s);
2284
2203
  let c = o.value;
2285
2204
  if (typeof c != "object" || !c) return t(o, s);
2286
- let l = s[Vi];
2205
+ let l = s[Li];
2287
2206
  l || (l = {
2288
2207
  buckets: /* @__PURE__ */ new Map(),
2289
2208
  backEdges: void 0
2290
- }, s[Vi] = l);
2209
+ }, s[Li] = l);
2291
2210
  let u;
2292
- r === s ? u = i : (u = Ki(l, e), r = s, i = u);
2211
+ r === s ? u = i : (u = Hi(l, e), r = s, i = u);
2293
2212
  let d = u.get(c);
2294
- if (d) return o.value = d.value, d.issues ? d.issues.length && o.issues.push(...Ui(d.issues)) : (o.memo = !0, l.backEdges ?? (l.backEdges = /* @__PURE__ */ new Set()), l.backEdges.add(d.value)), o;
2295
- qi = u;
2296
- let f = Ji.length, p = t(o, s);
2297
- qi = void 0;
2298
- let m = Ji.length > f ? Ji.pop() : void 0;
2299
- return p instanceof Promise ? p.then((e) => (m && (m.issues = e.issues.length ? Ui(e.issues) : Hi), e)) : (m && (m.issues = p.issues.length ? Ui(p.issues) : Hi), p);
2213
+ if (d) return o.value = d.value, d.issues ? d.issues.length && o.issues.push(...zi(d.issues)) : (o.memo = !0, l.backEdges ?? (l.backEdges = /* @__PURE__ */ new Set()), l.backEdges.add(d.value)), o;
2214
+ Ui = u;
2215
+ let f = Wi.length, p = t(o, s);
2216
+ Ui = void 0;
2217
+ let m = Wi.length > f ? Wi.pop() : void 0;
2218
+ return p instanceof Promise ? p.then((e) => (m && (m.issues = e.issues.length ? zi(e.issues) : Ri), e)) : (m && (m.issues = p.issues.length ? zi(p.issues) : Ri), p);
2300
2219
  };
2301
2220
  e._zod.parse = a, e._zod.run === t && (e._zod.run = a);
2302
2221
  });
2303
2222
  }
2304
2223
  };
2305
- function Xi() {
2306
- return Yi;
2224
+ function Ki() {
2225
+ return Gi;
2307
2226
  }
2308
- function Zi(e, t) {
2309
- let n = e[Vi]?.backEdges;
2227
+ function qi(e, t) {
2228
+ let n = e[Li]?.backEdges;
2310
2229
  return n !== void 0 && typeof t == "object" && !!t && n.has(t);
2311
2230
  }
2312
2231
  //#endregion
2313
2232
  //#region ../../node_modules/.bun/zod@4.5.4/node_modules/zod/v4/locales/en.js
2314
- var Qi = () => {
2233
+ var Ji = () => {
2315
2234
  let e = {
2316
2235
  string: {
2317
2236
  unit: "characters",
@@ -2397,12 +2316,12 @@ var Qi = () => {
2397
2316
  }
2398
2317
  };
2399
2318
  };
2400
- function $i() {
2401
- return { localeError: Qi() };
2319
+ function Yi() {
2320
+ return { localeError: Ji() };
2402
2321
  }
2403
2322
  //#endregion
2404
2323
  //#region ../../node_modules/.bun/zod@4.5.4/node_modules/zod/v4/core/registries.js
2405
- var ea, ta = class {
2324
+ var Xi, Zi = class {
2406
2325
  constructor() {
2407
2326
  this._map = /* @__PURE__ */ new WeakMap(), this._idmap = /* @__PURE__ */ new Map();
2408
2327
  }
@@ -2434,22 +2353,22 @@ var ea, ta = class {
2434
2353
  return this._map.has(e);
2435
2354
  }
2436
2355
  };
2437
- function na() {
2438
- return new ta();
2356
+ function Qi() {
2357
+ return new Zi();
2439
2358
  }
2440
- (ea = globalThis).__zod_globalRegistry ?? (ea.__zod_globalRegistry = na());
2441
- var ra = globalThis.__zod_globalRegistry;
2359
+ (Xi = globalThis).__zod_globalRegistry ?? (Xi.__zod_globalRegistry = Qi());
2360
+ var $i = globalThis.__zod_globalRegistry;
2442
2361
  //#endregion
2443
2362
  //#region ../../node_modules/.bun/zod@4.5.4/node_modules/zod/v4/core/api.js
2444
2363
  // @__NO_SIDE_EFFECTS__
2445
- function ia(e, t) {
2364
+ function ea(e, t) {
2446
2365
  return new e({
2447
2366
  type: "string",
2448
2367
  ...T(t)
2449
2368
  });
2450
2369
  }
2451
2370
  // @__NO_SIDE_EFFECTS__
2452
- function aa(e, t) {
2371
+ function ta(e, t) {
2453
2372
  return new e({
2454
2373
  type: "string",
2455
2374
  format: "email",
@@ -2459,7 +2378,7 @@ function aa(e, t) {
2459
2378
  });
2460
2379
  }
2461
2380
  // @__NO_SIDE_EFFECTS__
2462
- function oa(e, t) {
2381
+ function na(e, t) {
2463
2382
  return new e({
2464
2383
  type: "string",
2465
2384
  format: "guid",
@@ -2469,7 +2388,7 @@ function oa(e, t) {
2469
2388
  });
2470
2389
  }
2471
2390
  // @__NO_SIDE_EFFECTS__
2472
- function sa(e, t) {
2391
+ function ra(e, t) {
2473
2392
  return new e({
2474
2393
  type: "string",
2475
2394
  format: "uuid",
@@ -2479,7 +2398,7 @@ function sa(e, t) {
2479
2398
  });
2480
2399
  }
2481
2400
  // @__NO_SIDE_EFFECTS__
2482
- function ca(e, t) {
2401
+ function ia(e, t) {
2483
2402
  return new e({
2484
2403
  type: "string",
2485
2404
  format: "uuid",
@@ -2490,7 +2409,7 @@ function ca(e, t) {
2490
2409
  });
2491
2410
  }
2492
2411
  // @__NO_SIDE_EFFECTS__
2493
- function la(e, t) {
2412
+ function aa(e, t) {
2494
2413
  return new e({
2495
2414
  type: "string",
2496
2415
  format: "uuid",
@@ -2501,7 +2420,7 @@ function la(e, t) {
2501
2420
  });
2502
2421
  }
2503
2422
  // @__NO_SIDE_EFFECTS__
2504
- function ua(e, t) {
2423
+ function oa(e, t) {
2505
2424
  return new e({
2506
2425
  type: "string",
2507
2426
  format: "uuid",
@@ -2512,7 +2431,7 @@ function ua(e, t) {
2512
2431
  });
2513
2432
  }
2514
2433
  // @__NO_SIDE_EFFECTS__
2515
- function da(e, t) {
2434
+ function sa(e, t) {
2516
2435
  return new e({
2517
2436
  type: "string",
2518
2437
  format: "url",
@@ -2522,7 +2441,7 @@ function da(e, t) {
2522
2441
  });
2523
2442
  }
2524
2443
  // @__NO_SIDE_EFFECTS__
2525
- function fa(e, t) {
2444
+ function ca(e, t) {
2526
2445
  return new e({
2527
2446
  type: "string",
2528
2447
  format: "emoji",
@@ -2532,7 +2451,7 @@ function fa(e, t) {
2532
2451
  });
2533
2452
  }
2534
2453
  // @__NO_SIDE_EFFECTS__
2535
- function pa(e, t) {
2454
+ function la(e, t) {
2536
2455
  return new e({
2537
2456
  type: "string",
2538
2457
  format: "nanoid",
@@ -2542,7 +2461,7 @@ function pa(e, t) {
2542
2461
  });
2543
2462
  }
2544
2463
  // @__NO_SIDE_EFFECTS__
2545
- function ma(e, t) {
2464
+ function ua(e, t) {
2546
2465
  return new e({
2547
2466
  type: "string",
2548
2467
  format: "cuid",
@@ -2552,7 +2471,7 @@ function ma(e, t) {
2552
2471
  });
2553
2472
  }
2554
2473
  // @__NO_SIDE_EFFECTS__
2555
- function ha(e, t) {
2474
+ function da(e, t) {
2556
2475
  return new e({
2557
2476
  type: "string",
2558
2477
  format: "cuid2",
@@ -2562,7 +2481,7 @@ function ha(e, t) {
2562
2481
  });
2563
2482
  }
2564
2483
  // @__NO_SIDE_EFFECTS__
2565
- function ga(e, t) {
2484
+ function fa(e, t) {
2566
2485
  return new e({
2567
2486
  type: "string",
2568
2487
  format: "ulid",
@@ -2572,7 +2491,7 @@ function ga(e, t) {
2572
2491
  });
2573
2492
  }
2574
2493
  // @__NO_SIDE_EFFECTS__
2575
- function _a(e, t) {
2494
+ function pa(e, t) {
2576
2495
  return new e({
2577
2496
  type: "string",
2578
2497
  format: "xid",
@@ -2582,7 +2501,7 @@ function _a(e, t) {
2582
2501
  });
2583
2502
  }
2584
2503
  // @__NO_SIDE_EFFECTS__
2585
- function va(e, t) {
2504
+ function ma(e, t) {
2586
2505
  return new e({
2587
2506
  type: "string",
2588
2507
  format: "ksuid",
@@ -2592,7 +2511,7 @@ function va(e, t) {
2592
2511
  });
2593
2512
  }
2594
2513
  // @__NO_SIDE_EFFECTS__
2595
- function ya(e, t) {
2514
+ function ha(e, t) {
2596
2515
  return new e({
2597
2516
  type: "string",
2598
2517
  format: "ipv4",
@@ -2602,7 +2521,7 @@ function ya(e, t) {
2602
2521
  });
2603
2522
  }
2604
2523
  // @__NO_SIDE_EFFECTS__
2605
- function ba(e, t) {
2524
+ function ga(e, t) {
2606
2525
  return new e({
2607
2526
  type: "string",
2608
2527
  format: "ipv6",
@@ -2612,7 +2531,7 @@ function ba(e, t) {
2612
2531
  });
2613
2532
  }
2614
2533
  // @__NO_SIDE_EFFECTS__
2615
- function xa(e, t) {
2534
+ function _a(e, t) {
2616
2535
  return new e({
2617
2536
  type: "string",
2618
2537
  format: "cidrv4",
@@ -2622,7 +2541,7 @@ function xa(e, t) {
2622
2541
  });
2623
2542
  }
2624
2543
  // @__NO_SIDE_EFFECTS__
2625
- function Sa(e, t) {
2544
+ function va(e, t) {
2626
2545
  return new e({
2627
2546
  type: "string",
2628
2547
  format: "cidrv6",
@@ -2632,7 +2551,7 @@ function Sa(e, t) {
2632
2551
  });
2633
2552
  }
2634
2553
  // @__NO_SIDE_EFFECTS__
2635
- function Ca(e, t) {
2554
+ function ya(e, t) {
2636
2555
  return new e({
2637
2556
  type: "string",
2638
2557
  format: "base64",
@@ -2642,7 +2561,7 @@ function Ca(e, t) {
2642
2561
  });
2643
2562
  }
2644
2563
  // @__NO_SIDE_EFFECTS__
2645
- function wa(e, t) {
2564
+ function ba(e, t) {
2646
2565
  return new e({
2647
2566
  type: "string",
2648
2567
  format: "base64url",
@@ -2652,7 +2571,7 @@ function wa(e, t) {
2652
2571
  });
2653
2572
  }
2654
2573
  // @__NO_SIDE_EFFECTS__
2655
- function Ta(e, t) {
2574
+ function xa(e, t) {
2656
2575
  return new e({
2657
2576
  type: "string",
2658
2577
  format: "e164",
@@ -2662,7 +2581,7 @@ function Ta(e, t) {
2662
2581
  });
2663
2582
  }
2664
2583
  // @__NO_SIDE_EFFECTS__
2665
- function Ea(e, t) {
2584
+ function Sa(e, t) {
2666
2585
  return new e({
2667
2586
  type: "string",
2668
2587
  format: "jwt",
@@ -2672,7 +2591,7 @@ function Ea(e, t) {
2672
2591
  });
2673
2592
  }
2674
2593
  // @__NO_SIDE_EFFECTS__
2675
- function Da(e, t) {
2594
+ function Ca(e, t) {
2676
2595
  return new e({
2677
2596
  type: "string",
2678
2597
  format: "datetime",
@@ -2684,7 +2603,7 @@ function Da(e, t) {
2684
2603
  });
2685
2604
  }
2686
2605
  // @__NO_SIDE_EFFECTS__
2687
- function Oa(e, t) {
2606
+ function wa(e, t) {
2688
2607
  return new e({
2689
2608
  type: "string",
2690
2609
  format: "date",
@@ -2693,7 +2612,7 @@ function Oa(e, t) {
2693
2612
  });
2694
2613
  }
2695
2614
  // @__NO_SIDE_EFFECTS__
2696
- function ka(e, t) {
2615
+ function Ta(e, t) {
2697
2616
  return new e({
2698
2617
  type: "string",
2699
2618
  format: "time",
@@ -2703,7 +2622,7 @@ function ka(e, t) {
2703
2622
  });
2704
2623
  }
2705
2624
  // @__NO_SIDE_EFFECTS__
2706
- function Aa(e, t) {
2625
+ function Ea(e, t) {
2707
2626
  return new e({
2708
2627
  type: "string",
2709
2628
  format: "duration",
@@ -2712,7 +2631,7 @@ function Aa(e, t) {
2712
2631
  });
2713
2632
  }
2714
2633
  // @__NO_SIDE_EFFECTS__
2715
- function ja(e, t) {
2634
+ function Da(e, t) {
2716
2635
  return new e({
2717
2636
  type: "number",
2718
2637
  checks: [],
@@ -2720,7 +2639,7 @@ function ja(e, t) {
2720
2639
  });
2721
2640
  }
2722
2641
  // @__NO_SIDE_EFFECTS__
2723
- function Ma(e, t) {
2642
+ function Oa(e, t) {
2724
2643
  return new e({
2725
2644
  type: "number",
2726
2645
  check: "number_format",
@@ -2730,32 +2649,32 @@ function Ma(e, t) {
2730
2649
  });
2731
2650
  }
2732
2651
  // @__NO_SIDE_EFFECTS__
2733
- function Na(e, t) {
2652
+ function ka(e, t) {
2734
2653
  return new e({
2735
2654
  type: "boolean",
2736
2655
  ...T(t)
2737
2656
  });
2738
2657
  }
2739
2658
  // @__NO_SIDE_EFFECTS__
2740
- function Pa(e, t) {
2659
+ function Aa(e, t) {
2741
2660
  return new e({
2742
2661
  type: "null",
2743
2662
  ...T(t)
2744
2663
  });
2745
2664
  }
2746
2665
  // @__NO_SIDE_EFFECTS__
2747
- function Fa(e) {
2666
+ function ja(e) {
2748
2667
  return new e({ type: "unknown" });
2749
2668
  }
2750
2669
  // @__NO_SIDE_EFFECTS__
2751
- function Ia(e, t) {
2670
+ function Ma(e, t) {
2752
2671
  return new e({
2753
2672
  type: "never",
2754
2673
  ...T(t)
2755
2674
  });
2756
2675
  }
2757
2676
  // @__NO_SIDE_EFFECTS__
2758
- function La(e, t) {
2677
+ function Na(e, t) {
2759
2678
  return new qn({
2760
2679
  check: "less_than",
2761
2680
  ...T(t),
@@ -2764,7 +2683,7 @@ function La(e, t) {
2764
2683
  });
2765
2684
  }
2766
2685
  // @__NO_SIDE_EFFECTS__
2767
- function Ra(e, t) {
2686
+ function Pa(e, t) {
2768
2687
  return new qn({
2769
2688
  check: "less_than",
2770
2689
  ...T(t),
@@ -2773,7 +2692,7 @@ function Ra(e, t) {
2773
2692
  });
2774
2693
  }
2775
2694
  // @__NO_SIDE_EFFECTS__
2776
- function za(e, t) {
2695
+ function Fa(e, t) {
2777
2696
  return new Jn({
2778
2697
  check: "greater_than",
2779
2698
  ...T(t),
@@ -2782,7 +2701,7 @@ function za(e, t) {
2782
2701
  });
2783
2702
  }
2784
2703
  // @__NO_SIDE_EFFECTS__
2785
- function Ba(e, t) {
2704
+ function Ia(e, t) {
2786
2705
  return new Jn({
2787
2706
  check: "greater_than",
2788
2707
  ...T(t),
@@ -2791,7 +2710,7 @@ function Ba(e, t) {
2791
2710
  });
2792
2711
  }
2793
2712
  // @__NO_SIDE_EFFECTS__
2794
- function Va(e, t) {
2713
+ function La(e, t) {
2795
2714
  return new Yn({
2796
2715
  check: "multiple_of",
2797
2716
  ...T(t),
@@ -2799,7 +2718,7 @@ function Va(e, t) {
2799
2718
  });
2800
2719
  }
2801
2720
  // @__NO_SIDE_EFFECTS__
2802
- function Ha(e, t) {
2721
+ function Ra(e, t) {
2803
2722
  return new Zn({
2804
2723
  check: "max_length",
2805
2724
  ...T(t),
@@ -2807,7 +2726,7 @@ function Ha(e, t) {
2807
2726
  });
2808
2727
  }
2809
2728
  // @__NO_SIDE_EFFECTS__
2810
- function Ua(e, t) {
2729
+ function za(e, t) {
2811
2730
  return new Qn({
2812
2731
  check: "min_length",
2813
2732
  ...T(t),
@@ -2815,7 +2734,7 @@ function Ua(e, t) {
2815
2734
  });
2816
2735
  }
2817
2736
  // @__NO_SIDE_EFFECTS__
2818
- function Wa(e, t) {
2737
+ function Ba(e, t) {
2819
2738
  return new $n({
2820
2739
  check: "length_equals",
2821
2740
  ...T(t),
@@ -2823,7 +2742,7 @@ function Wa(e, t) {
2823
2742
  });
2824
2743
  }
2825
2744
  // @__NO_SIDE_EFFECTS__
2826
- function Ga(e, t) {
2745
+ function Va(e, t) {
2827
2746
  return new tr({
2828
2747
  check: "string_format",
2829
2748
  format: "regex",
@@ -2832,7 +2751,7 @@ function Ga(e, t) {
2832
2751
  });
2833
2752
  }
2834
2753
  // @__NO_SIDE_EFFECTS__
2835
- function Ka(e) {
2754
+ function Ha(e) {
2836
2755
  return new nr({
2837
2756
  check: "string_format",
2838
2757
  format: "lowercase",
@@ -2840,7 +2759,7 @@ function Ka(e) {
2840
2759
  });
2841
2760
  }
2842
2761
  // @__NO_SIDE_EFFECTS__
2843
- function qa(e) {
2762
+ function Ua(e) {
2844
2763
  return new rr({
2845
2764
  check: "string_format",
2846
2765
  format: "uppercase",
@@ -2848,7 +2767,7 @@ function qa(e) {
2848
2767
  });
2849
2768
  }
2850
2769
  // @__NO_SIDE_EFFECTS__
2851
- function Ja(e, t) {
2770
+ function Wa(e, t) {
2852
2771
  return new ir({
2853
2772
  check: "string_format",
2854
2773
  format: "includes",
@@ -2857,7 +2776,7 @@ function Ja(e, t) {
2857
2776
  });
2858
2777
  }
2859
2778
  // @__NO_SIDE_EFFECTS__
2860
- function Ya(e, t) {
2779
+ function Ga(e, t) {
2861
2780
  return new ar({
2862
2781
  check: "string_format",
2863
2782
  format: "starts_with",
@@ -2866,7 +2785,7 @@ function Ya(e, t) {
2866
2785
  });
2867
2786
  }
2868
2787
  // @__NO_SIDE_EFFECTS__
2869
- function Xa(e, t) {
2788
+ function Ka(e, t) {
2870
2789
  return new or({
2871
2790
  check: "string_format",
2872
2791
  format: "ends_with",
@@ -2875,34 +2794,34 @@ function Xa(e, t) {
2875
2794
  });
2876
2795
  }
2877
2796
  // @__NO_SIDE_EFFECTS__
2878
- function Za(e) {
2797
+ function qa(e) {
2879
2798
  return new sr({
2880
2799
  check: "overwrite",
2881
2800
  tx: e
2882
2801
  });
2883
2802
  }
2884
2803
  // @__NO_SIDE_EFFECTS__
2885
- function Qa(e) {
2886
- return /* @__PURE__ */ Za((t) => t.normalize(e));
2804
+ function Ja(e) {
2805
+ return /* @__PURE__ */ qa((t) => t.normalize(e));
2887
2806
  }
2888
2807
  // @__NO_SIDE_EFFECTS__
2889
- function $a() {
2890
- return /* @__PURE__ */ Za((e) => e.trim());
2808
+ function Ya() {
2809
+ return /* @__PURE__ */ qa((e) => e.trim());
2891
2810
  }
2892
2811
  // @__NO_SIDE_EFFECTS__
2893
- function eo() {
2894
- return /* @__PURE__ */ Za((e) => e.toLowerCase());
2812
+ function Xa() {
2813
+ return /* @__PURE__ */ qa((e) => e.toLowerCase());
2895
2814
  }
2896
2815
  // @__NO_SIDE_EFFECTS__
2897
- function to() {
2898
- return /* @__PURE__ */ Za((e) => e.toUpperCase());
2816
+ function Za() {
2817
+ return /* @__PURE__ */ qa((e) => e.toUpperCase());
2899
2818
  }
2900
2819
  // @__NO_SIDE_EFFECTS__
2901
- function no() {
2902
- return /* @__PURE__ */ Za((e) => We(e));
2820
+ function Qa() {
2821
+ return /* @__PURE__ */ qa((e) => We(e));
2903
2822
  }
2904
2823
  // @__NO_SIDE_EFFECTS__
2905
- function ro(e, t, n) {
2824
+ function $a(e, t, n) {
2906
2825
  return new e({
2907
2826
  type: "array",
2908
2827
  element: t,
@@ -2910,7 +2829,7 @@ function ro(e, t, n) {
2910
2829
  });
2911
2830
  }
2912
2831
  // @__NO_SIDE_EFFECTS__
2913
- function io(e, t, n) {
2832
+ function eo(e, t, n) {
2914
2833
  return new e({
2915
2834
  type: "custom",
2916
2835
  check: "custom",
@@ -2919,8 +2838,8 @@ function io(e, t, n) {
2919
2838
  });
2920
2839
  }
2921
2840
  // @__NO_SIDE_EFFECTS__
2922
- function ao(e, t) {
2923
- let n = /* @__PURE__ */ oo((t) => (t.addIssue = (e) => {
2841
+ function to(e, t) {
2842
+ let n = /* @__PURE__ */ no((t) => (t.addIssue = (e) => {
2924
2843
  if (typeof e == "string") t.issues.push(yt(e, t.value, n._zod.def));
2925
2844
  else {
2926
2845
  let r = e;
@@ -2930,7 +2849,7 @@ function ao(e, t) {
2930
2849
  return n;
2931
2850
  }
2932
2851
  // @__NO_SIDE_EFFECTS__
2933
- function oo(e, t) {
2852
+ function no(e, t) {
2934
2853
  let n = new A({
2935
2854
  check: "custom",
2936
2855
  ...T(t)
@@ -2939,15 +2858,15 @@ function oo(e, t) {
2939
2858
  }
2940
2859
  //#endregion
2941
2860
  //#region ../../node_modules/.bun/zod@4.5.4/node_modules/zod/v4/core/to-json-schema.js
2942
- function so(e, ...t) {
2861
+ function ro(e, ...t) {
2943
2862
  for (let n of t) for (let t of Reflect.ownKeys(n)) Object.prototype.propertyIsEnumerable.call(n, t) && C(e, t, n[t]);
2944
2863
  return e;
2945
2864
  }
2946
- function co(e) {
2865
+ function io(e) {
2947
2866
  let t = e?.target ?? "draft-2020-12";
2948
2867
  return t === "draft-4" && (t = "draft-04"), t === "draft-7" && (t = "draft-07"), {
2949
2868
  processors: e.processors ?? {},
2950
- metadataRegistry: e?.metadata ?? ra,
2869
+ metadataRegistry: e?.metadata ?? $i,
2951
2870
  target: t,
2952
2871
  unrepresentable: e?.unrepresentable ?? "throw",
2953
2872
  override: e?.override ?? (() => {}),
@@ -2963,7 +2882,7 @@ function co(e) {
2963
2882
  external: e?.external ?? void 0
2964
2883
  };
2965
2884
  }
2966
- function N(e, t, n, r, i) {
2885
+ function ao(e, t, n, r, i) {
2967
2886
  let a = typeof t.unrepresentable == "function" ? t.unrepresentable({
2968
2887
  zodSchema: e,
2969
2888
  path: r.path,
@@ -2973,7 +2892,7 @@ function N(e, t, n, r, i) {
2973
2892
  if (a === void 0 || a === "throw") throw Error(i);
2974
2893
  return Object.assign(n, a), !0;
2975
2894
  }
2976
- function P(e, t, n = {
2895
+ function N(e, t, n = {
2977
2896
  path: [],
2978
2897
  schemaPath: []
2979
2898
  }) {
@@ -3002,15 +2921,15 @@ function P(e, t, n = {
3002
2921
  a(e, t, n, r);
3003
2922
  }
3004
2923
  let a = e._zod.parent;
3005
- a && (o.ref ||= a, P(a, t, r), t.seen.get(a).isParent = !0);
2924
+ a && (o.ref ||= a, N(a, t, r), t.seen.get(a).isParent = !0);
3006
2925
  }
3007
2926
  let c = t.metadataRegistry.get(e);
3008
- return c && so(o.schema, c), t.io === "input" && F(e) && (delete o.schema.examples, delete o.schema.default), t.io === "input" && "_prefault" in o.schema && ((r = o.schema).default ?? (r.default = o.schema._prefault)), delete o.schema._prefault, t.seen.get(e).schema;
2927
+ return c && ro(o.schema, c), t.io === "input" && P(e) && (delete o.schema.examples, delete o.schema.default), t.io === "input" && "_prefault" in o.schema && ((r = o.schema).default ?? (r.default = o.schema._prefault)), delete o.schema._prefault, t.seen.get(e).schema;
3009
2928
  }
3010
- function lo(e) {
2929
+ function oo(e) {
3011
2930
  return e.replace(/~/g, "~0").replace(/\//g, "~1");
3012
2931
  }
3013
- function uo(e, t) {
2932
+ function so(e, t) {
3014
2933
  let n = e.seen.get(t);
3015
2934
  if (!n) throw Error("Unprocessed schema. This is a bug in Zod.");
3016
2935
  if (e.external && e.sharedDefsExtractedFor === e.external) return;
@@ -3031,7 +2950,7 @@ function uo(e, t) {
3031
2950
  let a = t[1].defId ?? t[1].schema.id ?? `schema${e.counter++}`;
3032
2951
  return t[1].defId = a, {
3033
2952
  defId: a,
3034
- ref: `${i("__shared")}#/${r}/${lo(a)}`
2953
+ ref: `${i("__shared")}#/${r}/${oo(a)}`
3035
2954
  };
3036
2955
  }
3037
2956
  let i = `#/${r}/`;
@@ -3039,7 +2958,7 @@ function uo(e, t) {
3039
2958
  let a = t[1].schema.id ?? `__schema${e.counter++}`;
3040
2959
  return {
3041
2960
  defId: a,
3042
- ref: i + lo(a)
2961
+ ref: i + oo(a)
3043
2962
  };
3044
2963
  }, a = (e) => {
3045
2964
  if (e[1].schema.$ref) return;
@@ -3083,13 +3002,13 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
3083
3002
  }
3084
3003
  e.external && (e.sharedDefsExtractedFor = e.external);
3085
3004
  }
3086
- function fo(e) {
3005
+ function co(e) {
3087
3006
  let t = e.anyOf;
3088
3007
  if (!Array.isArray(t) || t.length === 0 || e.type !== void 0) return;
3089
3008
  let n = [];
3090
3009
  for (let e of t) {
3091
3010
  if (!e || typeof e != "object") return;
3092
- fo(e);
3011
+ co(e);
3093
3012
  let t = Object.keys(e);
3094
3013
  if (t.length !== 1 || t[0] !== "type") return;
3095
3014
  let r = e.type;
@@ -3100,21 +3019,21 @@ function fo(e) {
3100
3019
  }
3101
3020
  delete e.anyOf, e.type = n.length === 1 ? n[0] : n;
3102
3021
  }
3103
- var po = /* @__PURE__ */ new Set([
3022
+ var lo = /* @__PURE__ */ new Set([
3104
3023
  "type",
3105
3024
  "properties",
3106
3025
  "required",
3107
3026
  "additionalProperties"
3108
- ]), mo = ["oneOf", "anyOf"];
3109
- function ho(e) {
3027
+ ]), uo = ["oneOf", "anyOf"];
3028
+ function fo(e) {
3110
3029
  let t = e.additionalProperties;
3111
3030
  return t === void 0 || t === !1 || typeof t != "object" || !t ? null : Object.keys(t).length ? t : null;
3112
3031
  }
3113
- function go(e) {
3032
+ function po(e) {
3114
3033
  let t = [];
3115
3034
  for (let n of e) {
3116
3035
  if (typeof n != "object" || n.type !== "object") return null;
3117
- for (let e in n) if (!po.has(e)) return null;
3036
+ for (let e in n) if (!lo.has(e)) return null;
3118
3037
  t.push(n);
3119
3038
  }
3120
3039
  let n = {}, r = /* @__PURE__ */ new Set();
@@ -3123,10 +3042,10 @@ function go(e) {
3123
3042
  if (Object.prototype.hasOwnProperty.call(n, r)) continue;
3124
3043
  let e = [];
3125
3044
  for (let n of t) {
3126
- let t = n.properties?.[r] ?? ho(n);
3045
+ let t = n.properties?.[r] ?? fo(n);
3127
3046
  t != null && (e.some((e) => JSON.stringify(e) === JSON.stringify(t)) || e.push(t));
3128
3047
  }
3129
- C(n, r, e.length === 1 ? e[0] : go(e) ?? { allOf: e });
3048
+ C(n, r, e.length === 1 ? e[0] : po(e) ?? { allOf: e });
3130
3049
  }
3131
3050
  for (let t of e.required ?? []) r.add(t);
3132
3051
  }
@@ -3138,29 +3057,29 @@ function go(e) {
3138
3057
  else {
3139
3058
  let e = [];
3140
3059
  for (let n of t) {
3141
- let t = ho(n);
3060
+ let t = fo(n);
3142
3061
  t && !e.some((e) => JSON.stringify(e) === JSON.stringify(t)) && e.push(t);
3143
3062
  }
3144
3063
  e.length === 1 ? i.additionalProperties = e[0] : e.length > 1 && (i.additionalProperties = { allOf: e });
3145
3064
  }
3146
3065
  return i;
3147
3066
  }
3148
- function _o(e) {
3067
+ function mo(e) {
3149
3068
  let t = e.allOf;
3150
3069
  if (!Array.isArray(t) || t.length < 2) return;
3151
- for (let t of po) if (t in e) return;
3152
- let n = t.filter((e) => mo.some((t) => Array.isArray(e[t]))), r = null;
3153
- if (!n.length) r = go(t);
3070
+ for (let t of lo) if (t in e) return;
3071
+ let n = t.filter((e) => uo.some((t) => Array.isArray(e[t]))), r = null;
3072
+ if (!n.length) r = po(t);
3154
3073
  else {
3155
- let e = n[0], i = mo.find((t) => Array.isArray(e[t]));
3074
+ let e = n[0], i = uo.find((t) => Array.isArray(e[t]));
3156
3075
  if (Object.keys(e).length !== 1) return;
3157
- let a = t.filter((t) => t !== e), o = e[i].map((e) => go([...a, e]));
3076
+ let a = t.filter((t) => t !== e), o = e[i].map((e) => po([...a, e]));
3158
3077
  if (o.some((e) => !e)) return;
3159
3078
  r = { [i]: o };
3160
3079
  }
3161
- r && (delete e.allOf, so(e, r));
3080
+ r && (delete e.allOf, ro(e, r));
3162
3081
  }
3163
- function vo(e, t) {
3082
+ function ho(e, t) {
3164
3083
  let n = e.seen.get(t);
3165
3084
  if (!n) throw Error("Unprocessed schema. This is a bug in Zod.");
3166
3085
  let r = (t) => {
@@ -3170,7 +3089,7 @@ function vo(e, t) {
3170
3089
  if (n.ref = null, o) {
3171
3090
  r(o);
3172
3091
  let n = e.seen.get(o), s = n.schema;
3173
- if (s.$ref && (e.target === "draft-07" || e.target === "draft-04" || e.target === "openapi-3.0") ? (i.allOf = i.allOf ?? [], i.allOf.push(s)) : so(i, s), so(i, a), t._zod.parent === o) for (let e in i) e !== "$ref" && e !== "allOf" && (e in a || delete i[e]);
3092
+ if (s.$ref && (e.target === "draft-07" || e.target === "draft-04" || e.target === "openapi-3.0") ? (i.allOf = i.allOf ?? [], i.allOf.push(s)) : ro(i, s), ro(i, a), t._zod.parent === o) for (let e in i) e !== "$ref" && e !== "allOf" && (e in a || delete i[e]);
3174
3093
  if (s.$ref && n.def) for (let e in i) e !== "$ref" && e !== "allOf" && e in n.def && JSON.stringify(i[e]) === JSON.stringify(n.def[e]) && delete i[e];
3175
3094
  }
3176
3095
  let s = t._zod.parent;
@@ -3187,7 +3106,7 @@ function vo(e, t) {
3187
3106
  };
3188
3107
  if (!e.external || e.sharedEmitDoneFor !== e.external) {
3189
3108
  for (let t of [...e.seen.entries()].reverse()) r(t[0]);
3190
- if (e.target !== "openapi-3.0") for (let t of e.seen.entries()) fo(t[1].def ?? t[1].schema);
3109
+ if (e.target !== "openapi-3.0") for (let t of e.seen.entries()) co(t[1].def ?? t[1].schema);
3191
3110
  for (let t of e.deferred) t();
3192
3111
  if (e.intersections.length) {
3193
3112
  let t = /* @__PURE__ */ new Map();
@@ -3197,7 +3116,7 @@ function vo(e, t) {
3197
3116
  let r = t.get(n);
3198
3117
  r ? r.push(e) : t.set(n, [e]);
3199
3118
  }
3200
- for (let n of e.intersections) for (let e of t.get(n) ?? []) _o(e);
3119
+ for (let n of e.intersections) for (let e of t.get(n) ?? []) mo(e);
3201
3120
  }
3202
3121
  }
3203
3122
  let i = {};
@@ -3206,7 +3125,7 @@ function vo(e, t) {
3206
3125
  if (!n) throw Error("Schema is missing an `id` property");
3207
3126
  i.$id = e.external.uri(n);
3208
3127
  }
3209
- so(i, n.defId ? n.schema : n.def ?? n.schema);
3128
+ ro(i, n.defId ? n.schema : n.def ?? n.schema);
3210
3129
  let a = e.metadataRegistry.get(t)?.id;
3211
3130
  a !== void 0 && i.id === a && delete i.id;
3212
3131
  let o = e.external?.defs ?? {};
@@ -3221,8 +3140,8 @@ function vo(e, t) {
3221
3140
  value: {
3222
3141
  ...t["~standard"],
3223
3142
  jsonSchema: {
3224
- input: bo(t, "input", e.processors),
3225
- output: bo(t, "output", e.processors)
3143
+ input: _o(t, "input", e.processors),
3144
+ output: _o(t, "output", e.processors)
3226
3145
  }
3227
3146
  },
3228
3147
  enumerable: !1,
@@ -3232,83 +3151,83 @@ function vo(e, t) {
3232
3151
  throw Error("Error converting schema to JSON.");
3233
3152
  }
3234
3153
  }
3235
- function F(e, t) {
3154
+ function P(e, t) {
3236
3155
  let n = t ?? { seen: /* @__PURE__ */ new Set() };
3237
3156
  if (n.seen.has(e)) return !1;
3238
3157
  n.seen.add(e);
3239
3158
  let r = e._zod.def;
3240
3159
  if (r.type === "transform") return !0;
3241
- if (r.type === "array") return F(r.element, n);
3242
- if (r.type === "set") return F(r.valueType, n);
3243
- if (r.type === "lazy") return F(r.getter(), n);
3244
- if (r.type === "promise" || r.type === "optional" || r.type === "nonoptional" || r.type === "nullable" || r.type === "readonly" || r.type === "default" || r.type === "prefault" || r.type === "catch") return F(r.innerType, n);
3245
- if (r.type === "intersection") return F(r.left, n) || F(r.right, n);
3246
- if (r.type === "record" || r.type === "map") return F(r.keyType, n) || F(r.valueType, n);
3247
- if (r.type === "pipe") return e._zod.traits.has("$ZodCodec") ? !0 : F(r.in, n) || F(r.out, n);
3160
+ if (r.type === "array") return P(r.element, n);
3161
+ if (r.type === "set") return P(r.valueType, n);
3162
+ if (r.type === "lazy") return P(r.getter(), n);
3163
+ if (r.type === "promise" || r.type === "optional" || r.type === "nonoptional" || r.type === "nullable" || r.type === "readonly" || r.type === "default" || r.type === "prefault" || r.type === "catch") return P(r.innerType, n);
3164
+ if (r.type === "intersection") return P(r.left, n) || P(r.right, n);
3165
+ if (r.type === "record" || r.type === "map") return P(r.keyType, n) || P(r.valueType, n);
3166
+ if (r.type === "pipe") return e._zod.traits.has("$ZodCodec") ? !0 : P(r.in, n) || P(r.out, n);
3248
3167
  if (r.type === "object") {
3249
- for (let e in r.shape) if (F(r.shape[e], n)) return !0;
3168
+ for (let e in r.shape) if (P(r.shape[e], n)) return !0;
3250
3169
  return !1;
3251
3170
  }
3252
3171
  if (r.type === "union") {
3253
- for (let e of r.options) if (F(e, n)) return !0;
3172
+ for (let e of r.options) if (P(e, n)) return !0;
3254
3173
  return !1;
3255
3174
  }
3256
3175
  if (r.type === "tuple") {
3257
- for (let e of r.items) if (F(e, n)) return !0;
3258
- return !!(r.rest && F(r.rest, n));
3176
+ for (let e of r.items) if (P(e, n)) return !0;
3177
+ return !!(r.rest && P(r.rest, n));
3259
3178
  }
3260
3179
  return !1;
3261
3180
  }
3262
- var yo = (e, t = {}) => (n) => {
3263
- let r = co({
3181
+ var go = (e, t = {}) => (n) => {
3182
+ let r = io({
3264
3183
  ...n,
3265
3184
  processors: t
3266
3185
  });
3267
- return P(e, r), uo(r, e), vo(r, e);
3268
- }, bo = (e, t, n = {}) => (r) => {
3269
- let { libraryOptions: i, target: a } = r ?? {}, o = co({
3186
+ return N(e, r), so(r, e), ho(r, e);
3187
+ }, _o = (e, t, n = {}) => (r) => {
3188
+ let { libraryOptions: i, target: a } = r ?? {}, o = io({
3270
3189
  ...i ?? {},
3271
3190
  target: a,
3272
3191
  io: t,
3273
3192
  processors: n
3274
3193
  });
3275
- return P(e, o), uo(o, e), vo(o, e);
3276
- }, xo = {
3194
+ return N(e, o), so(o, e), ho(o, e);
3195
+ }, vo = {
3277
3196
  guid: "uuid",
3278
3197
  url: "uri",
3279
3198
  datetime: "date-time",
3280
3199
  json_string: "json-string",
3281
3200
  regex: ""
3282
- }, So = (e, t, n, r) => {
3201
+ }, yo = (e, t, n, r) => {
3283
3202
  let i = n;
3284
3203
  i.type = "string";
3285
3204
  let { minimum: a, maximum: o, format: s, patterns: c, contentEncoding: l, laxFormat: u } = e._zod.bag;
3286
- if (typeof a == "number" && (i.minLength = a), typeof o == "number" && (i.maxLength = o), s && (i.format = xo[s] ?? s, i.format === "" && delete i.format, (s === "time" || u) && delete i.format), l && (i.contentEncoding = l), c && c.size > 0) {
3205
+ if (typeof a == "number" && (i.minLength = a), typeof o == "number" && (i.maxLength = o), s && (i.format = vo[s] ?? s, i.format === "" && delete i.format, (s === "time" || u) && delete i.format), l && (i.contentEncoding = l), c && c.size > 0) {
3287
3206
  let e = [...c];
3288
3207
  e.length === 1 ? i.pattern = e[0].source : e.length > 1 && (i.allOf = [...e.map((e) => ({
3289
3208
  ...t.target === "draft-07" || t.target === "draft-04" || t.target === "openapi-3.0" ? { type: "string" } : {},
3290
3209
  pattern: e.source
3291
3210
  }))]);
3292
3211
  }
3293
- }, Co = (e, t, n, r) => {
3212
+ }, bo = (e, t, n, r) => {
3294
3213
  let i = n, { minimum: a, maximum: o, format: s, multipleOf: c, exclusiveMaximum: l, exclusiveMinimum: u } = e._zod.bag;
3295
3214
  i.type = typeof s == "string" && s.includes("int") ? "integer" : "number";
3296
3215
  let d = typeof u == "number" && u >= (a ?? -Infinity), f = typeof l == "number" && l <= (o ?? Infinity), p = t.target === "draft-04" || t.target === "openapi-3.0";
3297
- d ? p ? (i.minimum = u, i.exclusiveMinimum = !0) : i.exclusiveMinimum = u : typeof a == "number" && (i.minimum = a), f ? p ? (i.maximum = l, i.exclusiveMaximum = !0) : i.exclusiveMaximum = l : typeof o == "number" && (i.maximum = o), typeof c == "number" && (Number.isFinite(c) && c !== 0 ? i.multipleOf = Math.abs(c) : N(e, t, i, r, `A multipleOf divisor of ${c} cannot be represented in JSON Schema`));
3298
- }, wo = (e, t, n, r) => {
3216
+ d ? p ? (i.minimum = u, i.exclusiveMinimum = !0) : i.exclusiveMinimum = u : typeof a == "number" && (i.minimum = a), f ? p ? (i.maximum = l, i.exclusiveMaximum = !0) : i.exclusiveMaximum = l : typeof o == "number" && (i.maximum = o), typeof c == "number" && (Number.isFinite(c) && c !== 0 ? i.multipleOf = Math.abs(c) : ao(e, t, i, r, `A multipleOf divisor of ${c} cannot be represented in JSON Schema`));
3217
+ }, xo = (e, t, n, r) => {
3299
3218
  n.type = "boolean";
3300
- }, To = (e, t, n, r) => {
3219
+ }, So = (e, t, n, r) => {
3301
3220
  t.target === "openapi-3.0" ? (n.type = "string", n.nullable = !0, n.enum = [null]) : n.type = "null";
3302
- }, Eo = (e, t, n, r) => {
3221
+ }, Co = (e, t, n, r) => {
3303
3222
  n.not = {};
3304
- }, Do = (e, t, n, r) => {
3223
+ }, wo = (e, t, n, r) => {
3305
3224
  let i = e._zod.def, a = Pe(i.entries);
3306
3225
  if (a.length === 0) {
3307
3226
  n.not = {};
3308
3227
  return;
3309
3228
  }
3310
3229
  a.every((e) => typeof e == "number") && (n.type = "number"), a.every((e) => typeof e == "string") && (n.type = "string"), n.enum = a;
3311
- }, Oo = (e, t, n, r) => {
3230
+ }, To = (e, t, n, r) => {
3312
3231
  let i = e._zod.def;
3313
3232
  if (i.values.length === 0) {
3314
3233
  n.not = {};
@@ -3316,9 +3235,9 @@ var yo = (e, t = {}) => (n) => {
3316
3235
  }
3317
3236
  let a = [];
3318
3237
  for (let o of i.values) if (o === void 0) {
3319
- if (N(e, t, n, r, "Literal `undefined` cannot be represented in JSON Schema")) return;
3238
+ if (ao(e, t, n, r, "Literal `undefined` cannot be represented in JSON Schema")) return;
3320
3239
  } else if (typeof o == "bigint") {
3321
- if (N(e, t, n, r, "BigInt literals cannot be represented in JSON Schema")) return;
3240
+ if (ao(e, t, n, r, "BigInt literals cannot be represented in JSON Schema")) return;
3322
3241
  a.push(Number(o));
3323
3242
  } else a.push(o);
3324
3243
  if (a.length !== 0) {
@@ -3327,26 +3246,26 @@ var yo = (e, t = {}) => (n) => {
3327
3246
  n.type = e === null ? "null" : typeof e, t.target === "draft-04" || t.target === "openapi-3.0" ? n.enum = [e] : n.const = e;
3328
3247
  } else a.every((e) => typeof e == "number") && (n.type = "number"), a.every((e) => typeof e == "string") && (n.type = "string"), a.every((e) => typeof e == "boolean") && (n.type = "boolean"), a.every((e) => e === null) && (n.type = "null"), n.enum = a;
3329
3248
  }
3330
- }, ko = (e, t, n, r) => {
3331
- N(e, t, n, r, "Custom types cannot be represented in JSON Schema");
3332
- }, Ao = (e, t, n, r) => {
3333
- N(e, t, n, r, "Transforms cannot be represented in JSON Schema");
3334
- }, jo = (e, t, n, r) => {
3249
+ }, Eo = (e, t, n, r) => {
3250
+ ao(e, t, n, r, "Custom types cannot be represented in JSON Schema");
3251
+ }, Do = (e, t, n, r) => {
3252
+ ao(e, t, n, r, "Transforms cannot be represented in JSON Schema");
3253
+ }, Oo = (e, t, n, r) => {
3335
3254
  let i = n, a = e._zod.def, { minimum: o, maximum: s } = e._zod.bag;
3336
- typeof o == "number" && (i.minItems = o), typeof s == "number" && (i.maxItems = s), i.type = "array", i.items = P(a.element, t, {
3255
+ typeof o == "number" && (i.minItems = o), typeof s == "number" && (i.maxItems = s), i.type = "array", i.items = N(a.element, t, {
3337
3256
  ...r,
3338
3257
  path: [...r.path, "items"]
3339
3258
  });
3340
3259
  };
3341
- function Mo(e) {
3260
+ function ko(e) {
3342
3261
  let t = e._zod.def;
3343
- return t.type === "pipe" && t.in._zod.traits.has("$ZodTransform") ? Mo(t.out) : t.type === "catch" ? Mo(t.innerType) : e._zod.optin;
3262
+ return t.type === "pipe" && t.in._zod.traits.has("$ZodTransform") ? ko(t.out) : t.type === "catch" ? ko(t.innerType) : e._zod.optin;
3344
3263
  }
3345
- var No = (e, t, n, r) => {
3264
+ var Ao = (e, t, n, r) => {
3346
3265
  let i = n, a = e._zod.def, o = a.shape;
3347
- if (Object.getOwnPropertySymbols(o).length && N(e, t, i, r, "Symbol keys cannot be represented in JSON Schema")) return;
3266
+ if (Object.getOwnPropertySymbols(o).length && ao(e, t, i, r, "Symbol keys cannot be represented in JSON Schema")) return;
3348
3267
  i.type = "object", i.properties = {};
3349
- for (let e in o) C(i.properties, e, P(o[e], t, {
3268
+ for (let e in o) C(i.properties, e, N(o[e], t, {
3350
3269
  ...r,
3351
3270
  path: [
3352
3271
  ...r.path,
@@ -3356,14 +3275,14 @@ var No = (e, t, n, r) => {
3356
3275
  }));
3357
3276
  let s = new Set(Object.keys(o)), c = new Set([...s].filter((e) => {
3358
3277
  let n = a.shape[e];
3359
- return t.io === "input" ? Mo(n) === void 0 : n._zod.optout === void 0;
3278
+ return t.io === "input" ? ko(n) === void 0 : n._zod.optout === void 0;
3360
3279
  }));
3361
- c.size > 0 && (i.required = Array.from(c)), a.catchall?._zod.def.type === "never" ? i.additionalProperties = !1 : a.catchall ? a.catchall && (i.additionalProperties = P(a.catchall, t, {
3280
+ c.size > 0 && (i.required = Array.from(c)), a.catchall?._zod.def.type === "never" ? i.additionalProperties = !1 : a.catchall ? a.catchall && (i.additionalProperties = N(a.catchall, t, {
3362
3281
  ...r,
3363
3282
  path: [...r.path, "additionalProperties"]
3364
3283
  })) : t.io === "output" && (i.additionalProperties = !1);
3365
- }, Po = (e, t, n, r) => {
3366
- let i = e._zod.def, a = i.inclusive === !1, o = i.options.map((e, n) => P(e, t, {
3284
+ }, jo = (e, t, n, r) => {
3285
+ let i = e._zod.def, a = i.inclusive === !1, o = i.options.map((e, n) => N(e, t, {
3367
3286
  ...r,
3368
3287
  path: [
3369
3288
  ...r.path,
@@ -3372,15 +3291,15 @@ var No = (e, t, n, r) => {
3372
3291
  ]
3373
3292
  }));
3374
3293
  a ? n.oneOf = o : n.anyOf = o;
3375
- }, Fo = (e, t, n, r) => {
3376
- let i = e._zod.def, a = P(i.left, t, {
3294
+ }, Mo = (e, t, n, r) => {
3295
+ let i = e._zod.def, a = N(i.left, t, {
3377
3296
  ...r,
3378
3297
  path: [
3379
3298
  ...r.path,
3380
3299
  "allOf",
3381
3300
  0
3382
3301
  ]
3383
- }), o = P(i.right, t, {
3302
+ }), o = N(i.right, t, {
3384
3303
  ...r,
3385
3304
  path: [
3386
3305
  ...r.path,
@@ -3389,47 +3308,20 @@ var No = (e, t, n, r) => {
3389
3308
  ]
3390
3309
  }), s = (e) => "allOf" in e && Object.keys(e).length === 1, c = [...s(a) ? a.allOf : [a], ...s(o) ? o.allOf : [o]];
3391
3310
  n.allOf = c, t.intersections.push(c);
3392
- }, Io = (e, t, n, r) => {
3393
- let i = n, a = e._zod.def;
3394
- i.type = "array";
3395
- let o = t.target === "draft-2020-12" ? "prefixItems" : "items", s = t.target === "draft-2020-12" || t.target === "openapi-3.0" ? "items" : "additionalItems", c = a.items.map((e, n) => P(e, t, {
3396
- ...r,
3397
- path: [
3398
- ...r.path,
3399
- o,
3400
- n
3401
- ]
3402
- })), l = a.rest ? P(a.rest, t, {
3403
- ...r,
3404
- path: [
3405
- ...r.path,
3406
- s,
3407
- ...t.target === "openapi-3.0" ? [a.items.length] : []
3408
- ]
3409
- }) : null, u = a.items.length;
3410
- for (; u > 0;) {
3411
- let e = a.items[u - 1];
3412
- if (!(t.io === "input" ? Mo(e) !== void 0 : e._zod.optout === "optional")) break;
3413
- u--;
3414
- }
3415
- let d = a.items.length, f = !a.rest;
3416
- t.target === "draft-2020-12" ? (i.prefixItems = c, f ? i.items = !1 : l && (i.items = l), u > 0 && (i.minItems = u), f && (i.maxItems = d)) : t.target === "openapi-3.0" ? (i.items = { anyOf: c }, l && i.items.anyOf.push(l), u > 0 && (i.minItems = u), f && (i.maxItems = d)) : (i.items = c, f ? i.additionalItems = !1 : l && (i.additionalItems = l), u > 0 && (i.minItems = u), f && (i.maxItems = d));
3417
- let { minimum: p, maximum: m } = e._zod.bag;
3418
- typeof p == "number" && (i.minItems = p), typeof m == "number" && (i.maxItems = m);
3419
3311
  };
3420
- function Lo(e, t, n) {
3312
+ function No(e, t, n) {
3421
3313
  if (t.$ref) {
3422
3314
  if (n.has(t)) return t;
3423
3315
  n.add(t);
3424
3316
  let r = e.get(t)?.def;
3425
3317
  if (!r) return t;
3426
- let i = Lo(e, r, n);
3318
+ let i = No(e, r, n);
3427
3319
  return i === r ? t : i;
3428
3320
  }
3429
3321
  for (let r of ["anyOf", "oneOf"]) {
3430
3322
  let i = t[r];
3431
3323
  if (!Array.isArray(i)) continue;
3432
- let a = i.map((t) => Lo(e, t, n));
3324
+ let a = i.map((t) => No(e, t, n));
3433
3325
  a.some((e, t) => e !== i[t]) && (t = {
3434
3326
  ...t,
3435
3327
  [r]: a
@@ -3440,15 +3332,15 @@ function Lo(e, t, n) {
3440
3332
  let { minimum: o, maximum: s, exclusiveMinimum: c, exclusiveMaximum: l, multipleOf: u, format: d, id: f, ...p } = t;
3441
3333
  return p.enum ? p.enum = p.enum.map((e) => typeof e == "number" ? String(e) : e) : typeof p.const == "number" && (p.const = String(p.const)), i ? (p.type = "string", a || (p.pattern = (r.includes("number") ? Bn : zn).source), p) : p;
3442
3334
  }
3443
- var Ro = /* @__PURE__ */ new WeakMap();
3444
- function zo(e) {
3335
+ var Po = /* @__PURE__ */ new WeakMap();
3336
+ function Fo(e) {
3445
3337
  let t = /* @__PURE__ */ new Map();
3446
3338
  for (let n of e.seen.values()) n.def && !t.has(n.schema) && t.set(n.schema, n);
3447
3339
  let n = /* @__PURE__ */ new Map();
3448
- for (let r of Ro.get(e) ?? []) {
3340
+ for (let r of Po.get(e) ?? []) {
3449
3341
  let i = e.seen.get(r), a = (i?.def ?? i?.schema)?.propertyNames;
3450
3342
  if (!a || a === !0 || n.has(a)) continue;
3451
- let o = Lo(t, a, /* @__PURE__ */ new Set());
3343
+ let o = No(t, a, /* @__PURE__ */ new Set());
3452
3344
  o !== a && n.set(a, o);
3453
3345
  }
3454
3346
  if (n.size) for (let t of e.seen.values()) for (let e of [t.schema, t.def]) {
@@ -3456,12 +3348,12 @@ function zo(e) {
3456
3348
  t && (e.propertyNames = t);
3457
3349
  }
3458
3350
  }
3459
- var Bo = (e, t, n, r) => {
3351
+ var Io = (e, t, n, r) => {
3460
3352
  let i = n, a = e._zod.def;
3461
3353
  i.type = "object";
3462
3354
  let o = a.keyType, s = o._zod.bag?.patterns;
3463
3355
  if (a.mode === "loose" && s && s.size > 0) {
3464
- let e = P(a.valueType, t, {
3356
+ let e = N(a.valueType, t, {
3465
3357
  ...r,
3466
3358
  path: [
3467
3359
  ...r.path,
@@ -3473,85 +3365,85 @@ var Bo = (e, t, n, r) => {
3473
3365
  for (let t of s) C(i.patternProperties, t.source, e);
3474
3366
  } else {
3475
3367
  if (t.target === "draft-07" || t.target === "draft-2020-12") {
3476
- i.propertyNames = P(a.keyType, t, {
3368
+ i.propertyNames = N(a.keyType, t, {
3477
3369
  ...r,
3478
3370
  path: [...r.path, "propertyNames"]
3479
3371
  });
3480
- let n = Ro.get(t);
3481
- n || (n = [], Ro.set(t, n), t.deferred.push(() => zo(t))), n.push(e);
3372
+ let n = Po.get(t);
3373
+ n || (n = [], Po.set(t, n), t.deferred.push(() => Fo(t))), n.push(e);
3482
3374
  }
3483
- i.additionalProperties = P(a.valueType, t, {
3375
+ i.additionalProperties = N(a.valueType, t, {
3484
3376
  ...r,
3485
3377
  path: [...r.path, "additionalProperties"]
3486
3378
  });
3487
3379
  }
3488
- let c = o._zod.values, l = t.io === "input" && Mo(a.valueType) !== void 0;
3380
+ let c = o._zod.values, l = t.io === "input" && ko(a.valueType) !== void 0;
3489
3381
  if (c && !a.partial && !l) {
3490
3382
  let e = [...c].filter((e) => typeof e == "string" || typeof e == "number");
3491
3383
  e.length > 0 && (i.required = e.map(String));
3492
3384
  }
3493
- }, Vo = (e, t, n, r) => {
3494
- let i = e._zod.def, a = P(i.innerType, t, r), o = t.seen.get(e);
3385
+ }, Lo = (e, t, n, r) => {
3386
+ let i = e._zod.def, a = N(i.innerType, t, r), o = t.seen.get(e);
3495
3387
  t.target === "openapi-3.0" ? (o.ref = i.innerType, n.nullable = !0) : n.anyOf = [a, { type: "null" }];
3496
- }, Ho = (e, t, n, r) => {
3388
+ }, Ro = (e, t, n, r) => {
3497
3389
  let i = e._zod.def;
3498
- P(i.innerType, t, r);
3390
+ N(i.innerType, t, r);
3499
3391
  let a = t.seen.get(e);
3500
3392
  a.ref = i.innerType;
3501
- }, Uo = Symbol();
3502
- function Wo(e, t, n, r, i) {
3393
+ }, zo = Symbol();
3394
+ function Bo(e, t, n, r, i) {
3503
3395
  let a = !1, o = JSON.stringify(e, (e, t) => typeof t == "bigint" ? (a = !0, null) : t);
3504
- return a ? (N(t, n, r, i, "BigInt defaults cannot be represented in JSON Schema"), Uo) : JSON.parse(o);
3396
+ return a ? (ao(t, n, r, i, "BigInt defaults cannot be represented in JSON Schema"), zo) : JSON.parse(o);
3505
3397
  }
3506
- var Go = (e, t, n, r) => {
3398
+ var Vo = (e, t, n, r) => {
3507
3399
  let i = e._zod.def;
3508
- P(i.innerType, t, r);
3400
+ N(i.innerType, t, r);
3509
3401
  let a = t.seen.get(e);
3510
3402
  a.ref = i.innerType;
3511
- let o = Wo(i.defaultValue, e, t, n, r);
3512
- o !== Uo && (n.default = o);
3513
- }, Ko = (e, t, n, r) => {
3403
+ let o = Bo(i.defaultValue, e, t, n, r);
3404
+ o !== zo && (n.default = o);
3405
+ }, Ho = (e, t, n, r) => {
3514
3406
  let i = e._zod.def;
3515
- P(i.innerType, t, r);
3407
+ N(i.innerType, t, r);
3516
3408
  let a = t.seen.get(e);
3517
3409
  if (a.ref = i.innerType, t.io !== "input") return;
3518
- let o = Wo(i.defaultValue, e, t, n, r);
3519
- o !== Uo && (n._prefault = o);
3520
- }, qo = (e, t, n, r) => {
3410
+ let o = Bo(i.defaultValue, e, t, n, r);
3411
+ o !== zo && (n._prefault = o);
3412
+ }, Uo = (e, t, n, r) => {
3521
3413
  let i = e._zod.def;
3522
- P(i.innerType, t, r);
3414
+ N(i.innerType, t, r);
3523
3415
  let a = t.seen.get(e);
3524
3416
  a.ref = i.innerType;
3525
3417
  let o;
3526
3418
  try {
3527
3419
  o = i.catchValue(void 0);
3528
3420
  } catch {
3529
- N(e, t, n, r, "Dynamic catch values are not supported in JSON Schema");
3421
+ ao(e, t, n, r, "Dynamic catch values are not supported in JSON Schema");
3530
3422
  return;
3531
3423
  }
3532
3424
  n.default = o;
3533
- }, Jo = (e, t, n, r) => {
3425
+ }, Wo = (e, t, n, r) => {
3534
3426
  let i = e._zod.def, a = i.in._zod.traits.has("$ZodTransform"), o = t.io === "input" ? a ? i.out : i.in : i.out;
3535
- P(o, t, r);
3427
+ N(o, t, r);
3536
3428
  let s = t.seen.get(e);
3537
3429
  s.ref = o;
3538
- }, Yo = (e, t, n, r) => {
3430
+ }, Go = (e, t, n, r) => {
3539
3431
  let i = e._zod.def;
3540
- P(i.innerType, t, r);
3432
+ N(i.innerType, t, r);
3541
3433
  let a = t.seen.get(e);
3542
3434
  a.ref = i.innerType, n.readOnly = !0;
3543
- }, Xo = (e, t, n, r) => {
3435
+ }, Ko = (e, t, n, r) => {
3544
3436
  let i = e._zod.def;
3545
- P(i.innerType, t, r);
3437
+ N(i.innerType, t, r);
3546
3438
  let a = t.seen.get(e);
3547
3439
  a.ref = i.innerType;
3548
- }, Zo = (e, t, n, r) => {
3440
+ }, qo = (e, t, n, r) => {
3549
3441
  let i = e._zod.innerType;
3550
- P(i, t, r);
3442
+ N(i, t, r);
3551
3443
  let a = t.seen.get(e);
3552
3444
  a.ref = i;
3553
- }, Qo = /* @__PURE__ */ new WeakSet([Object.prototype, Error.prototype]);
3554
- function $o(e, t, n) {
3445
+ }, Jo = /* @__PURE__ */ new WeakSet([Object.prototype, Error.prototype]);
3446
+ function Yo(e, t, n) {
3555
3447
  Object.defineProperty(e, t, {
3556
3448
  configurable: !0,
3557
3449
  enumerable: !1,
@@ -3572,12 +3464,12 @@ function $o(e, t, n) {
3572
3464
  }
3573
3465
  });
3574
3466
  }
3575
- var I = /*@__PURE__*/ D("ZodError", (e, t) => {
3467
+ var F = /*@__PURE__*/ D("ZodError", (e, t) => {
3576
3468
  Wt.init(e, t), e.name = "ZodError";
3577
3469
  let n = Object.getPrototypeOf(e);
3578
- Qo.has(n) || (Qo.add(n), $o(n, "format", (e) => (t) => Jt(e, t)), $o(n, "flatten", (e) => (t) => qt(e, t)), $o(n, "addIssue", (e) => (t) => {
3470
+ Jo.has(n) || (Jo.add(n), Yo(n, "format", (e) => (t) => Jt(e, t)), Yo(n, "flatten", (e) => (t) => qt(e, t)), Yo(n, "addIssue", (e) => (t) => {
3579
3471
  e.issues.push(t), e.message = JSON.stringify(e.issues, Ie, 2);
3580
- }), $o(n, "addIssues", (e) => (t) => {
3472
+ }), Yo(n, "addIssues", (e) => (t) => {
3581
3473
  e.issues.push(...t), e.message = JSON.stringify(e.issues, Ie, 2);
3582
3474
  }), Object.defineProperty(n, "isEmpty", {
3583
3475
  configurable: !0,
@@ -3586,16 +3478,16 @@ var I = /*@__PURE__*/ D("ZodError", (e, t) => {
3586
3478
  return this.issues.length === 0;
3587
3479
  }
3588
3480
  }));
3589
- }, void 0, { Parent: Error }), es = /* @__PURE__ */ Xt(I), ts = /* @__PURE__ */ Zt(I), ns = /* @__PURE__ */ Qt(I), rs = /* @__PURE__ */ en(I), is = /* @__PURE__ */ nn(I), as = /* @__PURE__ */ rn(I), os = /* @__PURE__ */ an(I), ss = /* @__PURE__ */ on(I), cs = /* @__PURE__ */ sn(I), ls = /* @__PURE__ */ cn(I), us = /* @__PURE__ */ ln(I), ds = /* @__PURE__ */ un(I);
3481
+ }, void 0, { Parent: Error }), Xo = /* @__PURE__ */ Xt(F), Zo = /* @__PURE__ */ Zt(F), Qo = /* @__PURE__ */ Qt(F), $o = /* @__PURE__ */ en(F), es = /* @__PURE__ */ nn(F), ts = /* @__PURE__ */ rn(F), ns = /* @__PURE__ */ an(F), rs = /* @__PURE__ */ on(F), is = /* @__PURE__ */ sn(F), as = /* @__PURE__ */ cn(F), os = /* @__PURE__ */ ln(F), ss = /* @__PURE__ */ un(F);
3590
3482
  //#endregion
3591
3483
  //#region ../../node_modules/.bun/zod@4.5.4/node_modules/zod/v4/classic/schemas.js
3592
- function fs() {
3593
- O.localeError || k($i());
3484
+ function cs() {
3485
+ O.localeError || k(Yi());
3594
3486
  }
3595
- function ps() {
3596
- O.memoizer || k({ memoizer: Xi() });
3487
+ function ls() {
3488
+ O.memoizer || k({ memoizer: Ki() });
3597
3489
  }
3598
- var L = /*@__PURE__*/ D("ZodType", (e, t) => (fs(), j.init(e, t), e.def = t, e.type = t.type, e), {
3490
+ var I = /*@__PURE__*/ D("ZodType", (e, t) => (cs(), j.init(e, t), e.def = t, e.type = t.type, e), {
3599
3491
  check(...e) {
3600
3492
  let t = this.def;
3601
3493
  return this.clone(w(t, { checks: [...t.checks ?? [], ...e.map((e) => typeof e == "function" ? { _zod: {
@@ -3617,64 +3509,64 @@ var L = /*@__PURE__*/ D("ZodType", (e, t) => (fs(), j.init(e, t), e.def = t, e.t
3617
3509
  return e.add(this, t), this;
3618
3510
  },
3619
3511
  refine(e, t) {
3620
- return this.check(Mc(e, t));
3512
+ return this.check(Ec(e, t));
3621
3513
  },
3622
3514
  superRefine(e, t) {
3623
- return this.check(Nc(e, t));
3515
+ return this.check(Dc(e, t));
3624
3516
  },
3625
3517
  overwrite(e) {
3626
- return this.check(/* @__PURE__ */ Za(e));
3518
+ return this.check(/* @__PURE__ */ qa(e));
3627
3519
  },
3628
3520
  optional() {
3629
- return fc(this);
3521
+ return oc(this);
3630
3522
  },
3631
3523
  exactOptional() {
3632
- return mc(this);
3524
+ return cc(this);
3633
3525
  },
3634
3526
  nullable() {
3635
- return gc(this);
3527
+ return uc(this);
3636
3528
  },
3637
3529
  nullish() {
3638
- return fc(gc(this));
3530
+ return oc(uc(this));
3639
3531
  },
3640
3532
  nonoptional(e) {
3641
- return Sc(this, e);
3533
+ return gc(this, e);
3642
3534
  },
3643
3535
  array() {
3644
- return V(this);
3536
+ return B(this);
3645
3537
  },
3646
3538
  or(e) {
3647
- return U([this, e]);
3539
+ return H([this, e]);
3648
3540
  },
3649
3541
  and(e) {
3650
- return rc(this, e);
3542
+ return $s(this, e);
3651
3543
  },
3652
3544
  transform(e) {
3653
- return Ec(this, uc(e));
3545
+ return bc(this, ic(e));
3654
3546
  },
3655
3547
  default(e) {
3656
- return vc(this, e);
3548
+ return fc(this, e);
3657
3549
  },
3658
3550
  prefault(e) {
3659
- return bc(this, e);
3551
+ return mc(this, e);
3660
3552
  },
3661
3553
  catch(e) {
3662
- return wc(this, e);
3554
+ return vc(this, e);
3663
3555
  },
3664
3556
  pipe(e) {
3665
- return Ec(this, e);
3557
+ return bc(this, e);
3666
3558
  },
3667
3559
  readonly() {
3668
- return Oc(this);
3560
+ return Sc(this);
3669
3561
  },
3670
3562
  describe(e) {
3671
3563
  let t = this.clone();
3672
- return ra.add(t, { description: e }), t;
3564
+ return $i.add(t, { description: e }), t;
3673
3565
  },
3674
3566
  meta(...e) {
3675
- if (e.length === 0) return ra.get(this);
3567
+ if (e.length === 0) return $i.get(this);
3676
3568
  let t = this.clone();
3677
- return ra.add(t, e[0]), t;
3569
+ return $i.add(t, e[0]), t;
3678
3570
  },
3679
3571
  isOptional() {
3680
3572
  return this.safeParse(void 0).success;
@@ -3689,8 +3581,8 @@ var L = /*@__PURE__*/ D("ZodType", (e, t) => (fs(), j.init(e, t), e.def = t, e.t
3689
3581
  return St(this, "~standard", {
3690
3582
  ...dr(this),
3691
3583
  jsonSchema: {
3692
- input: bo(this, "input"),
3693
- output: bo(this, "output")
3584
+ input: _o(this, "input"),
3585
+ output: _o(this, "output")
3694
3586
  }
3695
3587
  });
3696
3588
  },
@@ -3698,16 +3590,16 @@ var L = /*@__PURE__*/ D("ZodType", (e, t) => (fs(), j.init(e, t), e.def = t, e.t
3698
3590
  xt(this, "~standard", e);
3699
3591
  },
3700
3592
  parse: function e(t, n) {
3701
- return es(this, t, n, { callee: e });
3593
+ return Xo(this, t, n, { callee: e });
3702
3594
  },
3703
3595
  parseAsync: async function e(t, n) {
3704
- return await ts(this, t, n, { callee: e });
3596
+ return await Zo(this, t, n, { callee: e });
3705
3597
  },
3706
3598
  safeParse(e, t) {
3707
- return ns(this, e, t);
3599
+ return Qo(this, e, t);
3708
3600
  },
3709
3601
  async safeParseAsync(e, t) {
3710
- return rs(this, e, t);
3602
+ return $o(this, e, t);
3711
3603
  },
3712
3604
  get spa() {
3713
3605
  return this?.safeParseAsync;
@@ -3716,332 +3608,332 @@ var L = /*@__PURE__*/ D("ZodType", (e, t) => (fs(), j.init(e, t), e.def = t, e.t
3716
3608
  xt(this, "spa", e);
3717
3609
  },
3718
3610
  encode: function e(t, n) {
3719
- return is(this, t, n, { callee: e });
3611
+ return es(this, t, n, { callee: e });
3720
3612
  },
3721
3613
  decode: function e(t, n) {
3722
- return as(this, t, n, { callee: e });
3614
+ return ts(this, t, n, { callee: e });
3723
3615
  },
3724
3616
  encodeAsync: async function e(t, n) {
3725
- return await os(this, t, n, { callee: e });
3617
+ return await ns(this, t, n, { callee: e });
3726
3618
  },
3727
3619
  decodeAsync: async function e(t, n) {
3728
- return await ss(this, t, n, { callee: e });
3620
+ return await rs(this, t, n, { callee: e });
3729
3621
  },
3730
3622
  safeEncode(e, t) {
3731
- return cs(this, e, t);
3623
+ return is(this, e, t);
3732
3624
  },
3733
3625
  safeDecode(e, t) {
3734
- return ls(this, e, t);
3626
+ return as(this, e, t);
3735
3627
  },
3736
3628
  async safeEncodeAsync(e, t) {
3737
- return us(this, e, t);
3629
+ return os(this, e, t);
3738
3630
  },
3739
3631
  async safeDecodeAsync(e, t) {
3740
- return ds(this, e, t);
3632
+ return ss(this, e, t);
3741
3633
  },
3742
3634
  toJSONSchema(e) {
3743
- return yo(this, {})(e);
3635
+ return go(this, {})(e);
3744
3636
  },
3745
3637
  get description() {
3746
- return ra.get(this)?.description;
3638
+ return $i.get(this)?.description;
3747
3639
  },
3748
3640
  get _def() {
3749
3641
  return this._zod.def;
3750
3642
  }
3751
- }), ms = /*@__PURE__*/ D("_ZodString", (e, t) => {
3752
- fr.init(e, t), L.init(e, t), e._zod.processJSONSchema = (t, n, r) => So(e, t, n, r);
3643
+ }), us = /*@__PURE__*/ D("_ZodString", (e, t) => {
3644
+ fr.init(e, t), I.init(e, t), e._zod.processJSONSchema = (t, n, r) => yo(e, t, n, r);
3753
3645
  let n = e._zod.bag;
3754
3646
  e.format = n.format ?? null, e.minLength = n.minimum ?? null, e.maxLength = n.maximum ?? null;
3755
3647
  }, {
3756
3648
  regex(...e) {
3757
- return this.check(/* @__PURE__ */ Ga(...e));
3649
+ return this.check(/* @__PURE__ */ Va(...e));
3758
3650
  },
3759
3651
  includes(...e) {
3760
- return this.check(/* @__PURE__ */ Ja(...e));
3652
+ return this.check(/* @__PURE__ */ Wa(...e));
3761
3653
  },
3762
3654
  startsWith(...e) {
3763
- return this.check(/* @__PURE__ */ Ya(...e));
3655
+ return this.check(/* @__PURE__ */ Ga(...e));
3764
3656
  },
3765
3657
  endsWith(...e) {
3766
- return this.check(/* @__PURE__ */ Xa(...e));
3658
+ return this.check(/* @__PURE__ */ Ka(...e));
3767
3659
  },
3768
3660
  min(...e) {
3769
- return this.check(/* @__PURE__ */ Ua(...e));
3661
+ return this.check(/* @__PURE__ */ za(...e));
3770
3662
  },
3771
3663
  max(...e) {
3772
- return this.check(/* @__PURE__ */ Ha(...e));
3664
+ return this.check(/* @__PURE__ */ Ra(...e));
3773
3665
  },
3774
3666
  length(...e) {
3775
- return this.check(/* @__PURE__ */ Wa(...e));
3667
+ return this.check(/* @__PURE__ */ Ba(...e));
3776
3668
  },
3777
3669
  nonempty(...e) {
3778
- return this.check(/* @__PURE__ */ Ua(1, ...e));
3670
+ return this.check(/* @__PURE__ */ za(1, ...e));
3779
3671
  },
3780
3672
  lowercase(e) {
3781
- return this.check(/* @__PURE__ */ Ka(e));
3673
+ return this.check(/* @__PURE__ */ Ha(e));
3782
3674
  },
3783
3675
  uppercase(e) {
3784
- return this.check(/* @__PURE__ */ qa(e));
3676
+ return this.check(/* @__PURE__ */ Ua(e));
3785
3677
  },
3786
3678
  trim() {
3787
- return this.check(/* @__PURE__ */ $a());
3679
+ return this.check(/* @__PURE__ */ Ya());
3788
3680
  },
3789
3681
  normalize(...e) {
3790
- return this.check(/* @__PURE__ */ Qa(...e));
3682
+ return this.check(/* @__PURE__ */ Ja(...e));
3791
3683
  },
3792
3684
  toLowerCase() {
3793
- return this.check(/* @__PURE__ */ eo());
3685
+ return this.check(/* @__PURE__ */ Xa());
3794
3686
  },
3795
3687
  toUpperCase() {
3796
- return this.check(/* @__PURE__ */ to());
3688
+ return this.check(/* @__PURE__ */ Za());
3797
3689
  },
3798
3690
  slugify() {
3799
- return this.check(/* @__PURE__ */ no());
3691
+ return this.check(/* @__PURE__ */ Qa());
3800
3692
  }
3801
- }), hs = /*@__PURE__*/ D("ZodString", (e, t) => {
3802
- fr.init(e, t), ms.init(e, t);
3693
+ }), ds = /*@__PURE__*/ D("ZodString", (e, t) => {
3694
+ fr.init(e, t), us.init(e, t);
3803
3695
  }, {
3804
3696
  email(e) {
3805
- return this.check(/* @__PURE__ */ aa(xs, e));
3697
+ return this.check(/* @__PURE__ */ ta(_s, e));
3806
3698
  },
3807
3699
  url(e) {
3808
- return this.check(/* @__PURE__ */ da(ws, e));
3700
+ return this.check(/* @__PURE__ */ sa(bs, e));
3809
3701
  },
3810
3702
  jwt(e) {
3811
- return this.check(/* @__PURE__ */ Ea(zs, e));
3703
+ return this.check(/* @__PURE__ */ Sa(Fs, e));
3812
3704
  },
3813
3705
  emoji(e) {
3814
- return this.check(/* @__PURE__ */ fa(Ts, e));
3706
+ return this.check(/* @__PURE__ */ ca(xs, e));
3815
3707
  },
3816
3708
  guid(e) {
3817
- return this.check(/* @__PURE__ */ oa(Ss, e));
3709
+ return this.check(/* @__PURE__ */ na(vs, e));
3818
3710
  },
3819
3711
  uuid(e) {
3820
- return this.check(/* @__PURE__ */ sa(Cs, e));
3712
+ return this.check(/* @__PURE__ */ ra(ys, e));
3821
3713
  },
3822
3714
  uuidv4(e) {
3823
- return this.check(/* @__PURE__ */ ca(Cs, e));
3715
+ return this.check(/* @__PURE__ */ ia(ys, e));
3824
3716
  },
3825
3717
  uuidv6(e) {
3826
- return this.check(/* @__PURE__ */ la(Cs, e));
3718
+ return this.check(/* @__PURE__ */ aa(ys, e));
3827
3719
  },
3828
3720
  uuidv7(e) {
3829
- return this.check(/* @__PURE__ */ ua(Cs, e));
3721
+ return this.check(/* @__PURE__ */ oa(ys, e));
3830
3722
  },
3831
3723
  nanoid(e) {
3832
- return this.check(/* @__PURE__ */ pa(Es, e));
3724
+ return this.check(/* @__PURE__ */ la(Ss, e));
3833
3725
  },
3834
3726
  cuid(e) {
3835
- return this.check(/* @__PURE__ */ ma(Ds, e));
3727
+ return this.check(/* @__PURE__ */ ua(Cs, e));
3836
3728
  },
3837
3729
  cuid2(e) {
3838
- return this.check(/* @__PURE__ */ ha(Os, e));
3730
+ return this.check(/* @__PURE__ */ da(ws, e));
3839
3731
  },
3840
3732
  ulid(e) {
3841
- return this.check(/* @__PURE__ */ ga(ks, e));
3733
+ return this.check(/* @__PURE__ */ fa(Ts, e));
3842
3734
  },
3843
3735
  base64(e) {
3844
- return this.check(/* @__PURE__ */ Ca(Is, e));
3736
+ return this.check(/* @__PURE__ */ ya(Ms, e));
3845
3737
  },
3846
3738
  base64url(e) {
3847
- return this.check(/* @__PURE__ */ wa(Ls, e));
3739
+ return this.check(/* @__PURE__ */ ba(Ns, e));
3848
3740
  },
3849
3741
  xid(e) {
3850
- return this.check(/* @__PURE__ */ _a(As, e));
3742
+ return this.check(/* @__PURE__ */ pa(Es, e));
3851
3743
  },
3852
3744
  ksuid(e) {
3853
- return this.check(/* @__PURE__ */ va(js, e));
3745
+ return this.check(/* @__PURE__ */ ma(Ds, e));
3854
3746
  },
3855
3747
  ipv4(e) {
3856
- return this.check(/* @__PURE__ */ ya(Ms, e));
3748
+ return this.check(/* @__PURE__ */ ha(Os, e));
3857
3749
  },
3858
3750
  ipv6(e) {
3859
- return this.check(/* @__PURE__ */ ba(Ns, e));
3751
+ return this.check(/* @__PURE__ */ ga(ks, e));
3860
3752
  },
3861
3753
  cidrv4(e) {
3862
- return this.check(/* @__PURE__ */ xa(Ps, e));
3754
+ return this.check(/* @__PURE__ */ _a(As, e));
3863
3755
  },
3864
3756
  cidrv6(e) {
3865
- return this.check(/* @__PURE__ */ Sa(Fs, e));
3757
+ return this.check(/* @__PURE__ */ va(js, e));
3866
3758
  },
3867
3759
  e164(e) {
3868
- return this.check(/* @__PURE__ */ Ta(Rs, e));
3760
+ return this.check(/* @__PURE__ */ xa(Ps, e));
3869
3761
  },
3870
3762
  datetime(e) {
3871
- return this.check(/* @__PURE__ */ Da(_s, e));
3763
+ return this.check(/* @__PURE__ */ Ca(ps, e));
3872
3764
  },
3873
3765
  date(e) {
3874
- return this.check(/* @__PURE__ */ Oa(vs, e));
3766
+ return this.check(/* @__PURE__ */ wa(ms, e));
3875
3767
  },
3876
3768
  time(e) {
3877
- return this.check(/* @__PURE__ */ ka(ys, e));
3769
+ return this.check(/* @__PURE__ */ Ta(hs, e));
3878
3770
  },
3879
3771
  duration(e) {
3880
- return this.check(/* @__PURE__ */ Aa(bs, e));
3772
+ return this.check(/* @__PURE__ */ Ea(gs, e));
3881
3773
  }
3882
3774
  });
3883
- function gs(e) {
3884
- return /* @__PURE__ */ ia(hs, e);
3885
- }
3886
- var R = /*@__PURE__*/ D("ZodStringFormat", (e, t) => {
3887
- M.init(e, t), ms.init(e, t);
3888
- }), _s = /*@__PURE__*/ D("ZodISODateTime", (e, t) => {
3889
- kr.init(e, t), R.init(e, t);
3890
- }), vs = /*@__PURE__*/ D("ZodISODate", (e, t) => {
3891
- Ar.init(e, t), R.init(e, t);
3892
- }), ys = /*@__PURE__*/ D("ZodISOTime", (e, t) => {
3893
- jr.init(e, t), R.init(e, t);
3894
- }), bs = /*@__PURE__*/ D("ZodISODuration", (e, t) => {
3895
- Mr.init(e, t), R.init(e, t);
3896
- }), xs = /*@__PURE__*/ D("ZodEmail", (e, t) => {
3897
- hr.init(e, t), R.init(e, t);
3898
- }), Ss = /*@__PURE__*/ D("ZodGUID", (e, t) => {
3899
- pr.init(e, t), R.init(e, t);
3900
- }), Cs = /*@__PURE__*/ D("ZodUUID", (e, t) => {
3901
- mr.init(e, t), R.init(e, t);
3902
- }), ws = /*@__PURE__*/ D("ZodURL", (e, t) => {
3903
- xr.init(e, t), R.init(e, t);
3904
- }), Ts = /*@__PURE__*/ D("ZodEmoji", (e, t) => {
3905
- Sr.init(e, t), R.init(e, t);
3906
- }), Es = /*@__PURE__*/ D("ZodNanoID", (e, t) => {
3907
- Cr.init(e, t), R.init(e, t);
3908
- }), Ds = /*@__PURE__*/ D("ZodCUID", (e, t) => {
3909
- wr.init(e, t), R.init(e, t);
3910
- }), Os = /*@__PURE__*/ D("ZodCUID2", (e, t) => {
3911
- Tr.init(e, t), R.init(e, t);
3912
- }), ks = /*@__PURE__*/ D("ZodULID", (e, t) => {
3913
- Er.init(e, t), R.init(e, t);
3914
- }), As = /*@__PURE__*/ D("ZodXID", (e, t) => {
3915
- Dr.init(e, t), R.init(e, t);
3916
- }), js = /*@__PURE__*/ D("ZodKSUID", (e, t) => {
3917
- Or.init(e, t), R.init(e, t);
3918
- }), Ms = /*@__PURE__*/ D("ZodIPv4", (e, t) => {
3919
- Nr.init(e, t), R.init(e, t);
3920
- }), Ns = /*@__PURE__*/ D("ZodIPv6", (e, t) => {
3921
- Ir.init(e, t), R.init(e, t);
3922
- }), Ps = /*@__PURE__*/ D("ZodCIDRv4", (e, t) => {
3923
- Lr.init(e, t), R.init(e, t);
3924
- }), Fs = /*@__PURE__*/ D("ZodCIDRv6", (e, t) => {
3925
- zr.init(e, t), R.init(e, t);
3926
- }), Is = /*@__PURE__*/ D("ZodBase64", (e, t) => {
3927
- Vr.init(e, t), R.init(e, t);
3928
- }), Ls = /*@__PURE__*/ D("ZodBase64URL", (e, t) => {
3929
- Ur.init(e, t), R.init(e, t);
3930
- }), Rs = /*@__PURE__*/ D("ZodE164", (e, t) => {
3931
- Wr.init(e, t), R.init(e, t);
3932
- }), zs = /*@__PURE__*/ D("ZodJWT", (e, t) => {
3933
- Kr.init(e, t), R.init(e, t);
3934
- }), Bs = /*@__PURE__*/ D("ZodNumber", (e, t) => {
3935
- qr.init(e, t), L.init(e, t), e._zod.processJSONSchema = (t, n, r) => Co(e, t, n, r);
3775
+ function fs(e) {
3776
+ return /* @__PURE__ */ ea(ds, e);
3777
+ }
3778
+ var L = /*@__PURE__*/ D("ZodStringFormat", (e, t) => {
3779
+ M.init(e, t), us.init(e, t);
3780
+ }), ps = /*@__PURE__*/ D("ZodISODateTime", (e, t) => {
3781
+ kr.init(e, t), L.init(e, t);
3782
+ }), ms = /*@__PURE__*/ D("ZodISODate", (e, t) => {
3783
+ Ar.init(e, t), L.init(e, t);
3784
+ }), hs = /*@__PURE__*/ D("ZodISOTime", (e, t) => {
3785
+ jr.init(e, t), L.init(e, t);
3786
+ }), gs = /*@__PURE__*/ D("ZodISODuration", (e, t) => {
3787
+ Mr.init(e, t), L.init(e, t);
3788
+ }), _s = /*@__PURE__*/ D("ZodEmail", (e, t) => {
3789
+ hr.init(e, t), L.init(e, t);
3790
+ }), vs = /*@__PURE__*/ D("ZodGUID", (e, t) => {
3791
+ pr.init(e, t), L.init(e, t);
3792
+ }), ys = /*@__PURE__*/ D("ZodUUID", (e, t) => {
3793
+ mr.init(e, t), L.init(e, t);
3794
+ }), bs = /*@__PURE__*/ D("ZodURL", (e, t) => {
3795
+ xr.init(e, t), L.init(e, t);
3796
+ }), xs = /*@__PURE__*/ D("ZodEmoji", (e, t) => {
3797
+ Sr.init(e, t), L.init(e, t);
3798
+ }), Ss = /*@__PURE__*/ D("ZodNanoID", (e, t) => {
3799
+ Cr.init(e, t), L.init(e, t);
3800
+ }), Cs = /*@__PURE__*/ D("ZodCUID", (e, t) => {
3801
+ wr.init(e, t), L.init(e, t);
3802
+ }), ws = /*@__PURE__*/ D("ZodCUID2", (e, t) => {
3803
+ Tr.init(e, t), L.init(e, t);
3804
+ }), Ts = /*@__PURE__*/ D("ZodULID", (e, t) => {
3805
+ Er.init(e, t), L.init(e, t);
3806
+ }), Es = /*@__PURE__*/ D("ZodXID", (e, t) => {
3807
+ Dr.init(e, t), L.init(e, t);
3808
+ }), Ds = /*@__PURE__*/ D("ZodKSUID", (e, t) => {
3809
+ Or.init(e, t), L.init(e, t);
3810
+ }), Os = /*@__PURE__*/ D("ZodIPv4", (e, t) => {
3811
+ Nr.init(e, t), L.init(e, t);
3812
+ }), ks = /*@__PURE__*/ D("ZodIPv6", (e, t) => {
3813
+ Ir.init(e, t), L.init(e, t);
3814
+ }), As = /*@__PURE__*/ D("ZodCIDRv4", (e, t) => {
3815
+ Lr.init(e, t), L.init(e, t);
3816
+ }), js = /*@__PURE__*/ D("ZodCIDRv6", (e, t) => {
3817
+ zr.init(e, t), L.init(e, t);
3818
+ }), Ms = /*@__PURE__*/ D("ZodBase64", (e, t) => {
3819
+ Vr.init(e, t), L.init(e, t);
3820
+ }), Ns = /*@__PURE__*/ D("ZodBase64URL", (e, t) => {
3821
+ Ur.init(e, t), L.init(e, t);
3822
+ }), Ps = /*@__PURE__*/ D("ZodE164", (e, t) => {
3823
+ Wr.init(e, t), L.init(e, t);
3824
+ }), Fs = /*@__PURE__*/ D("ZodJWT", (e, t) => {
3825
+ Kr.init(e, t), L.init(e, t);
3826
+ }), Is = /*@__PURE__*/ D("ZodNumber", (e, t) => {
3827
+ qr.init(e, t), I.init(e, t), e._zod.processJSONSchema = (t, n, r) => bo(e, t, n, r);
3936
3828
  let n = e._zod.bag;
3937
3829
  e.minValue = Math.max(n.minimum ?? -Infinity, n.exclusiveMinimum ?? -Infinity) ?? null, e.maxValue = Math.min(n.maximum ?? Infinity, n.exclusiveMaximum ?? Infinity) ?? null, e.isInt = (n.format ?? "").includes("int") || Number.isSafeInteger(n.multipleOf ?? .5), e.isFinite = !0, e.format = n.format ?? null;
3938
3830
  }, {
3939
3831
  gt(e, t) {
3940
- return this.check(/* @__PURE__ */ za(e, t));
3832
+ return this.check(/* @__PURE__ */ Fa(e, t));
3941
3833
  },
3942
3834
  gte(e, t) {
3943
- return this.check(/* @__PURE__ */ Ba(e, t));
3835
+ return this.check(/* @__PURE__ */ Ia(e, t));
3944
3836
  },
3945
3837
  min(e, t) {
3946
- return this.check(/* @__PURE__ */ Ba(e, t));
3838
+ return this.check(/* @__PURE__ */ Ia(e, t));
3947
3839
  },
3948
3840
  lt(e, t) {
3949
- return this.check(/* @__PURE__ */ La(e, t));
3841
+ return this.check(/* @__PURE__ */ Na(e, t));
3950
3842
  },
3951
3843
  lte(e, t) {
3952
- return this.check(/* @__PURE__ */ Ra(e, t));
3844
+ return this.check(/* @__PURE__ */ Pa(e, t));
3953
3845
  },
3954
3846
  max(e, t) {
3955
- return this.check(/* @__PURE__ */ Ra(e, t));
3847
+ return this.check(/* @__PURE__ */ Pa(e, t));
3956
3848
  },
3957
3849
  int(e) {
3958
- return this.check(Hs(e));
3850
+ return this.check(Rs(e));
3959
3851
  },
3960
3852
  safe(e) {
3961
- return this.check(Hs(e));
3853
+ return this.check(Rs(e));
3962
3854
  },
3963
3855
  positive(e) {
3964
- return this.check(/* @__PURE__ */ za(0, e));
3856
+ return this.check(/* @__PURE__ */ Fa(0, e));
3965
3857
  },
3966
3858
  nonnegative(e) {
3967
- return this.check(/* @__PURE__ */ Ba(0, e));
3859
+ return this.check(/* @__PURE__ */ Ia(0, e));
3968
3860
  },
3969
3861
  negative(e) {
3970
- return this.check(/* @__PURE__ */ La(0, e));
3862
+ return this.check(/* @__PURE__ */ Na(0, e));
3971
3863
  },
3972
3864
  nonpositive(e) {
3973
- return this.check(/* @__PURE__ */ Ra(0, e));
3865
+ return this.check(/* @__PURE__ */ Pa(0, e));
3974
3866
  },
3975
3867
  multipleOf(e, t) {
3976
- return this.check(/* @__PURE__ */ Va(e, t));
3868
+ return this.check(/* @__PURE__ */ La(e, t));
3977
3869
  },
3978
3870
  step(e, t) {
3979
- return this.check(/* @__PURE__ */ Va(e, t));
3871
+ return this.check(/* @__PURE__ */ La(e, t));
3980
3872
  },
3981
3873
  finite() {
3982
3874
  return this;
3983
3875
  }
3984
3876
  });
3985
- function z(e) {
3986
- return /* @__PURE__ */ ja(Bs, e);
3877
+ function R(e) {
3878
+ return /* @__PURE__ */ Da(Is, e);
3987
3879
  }
3988
- var Vs = /*@__PURE__*/ D("ZodNumberFormat", (e, t) => {
3989
- Jr.init(e, t), Bs.init(e, t);
3880
+ var Ls = /*@__PURE__*/ D("ZodNumberFormat", (e, t) => {
3881
+ Jr.init(e, t), Is.init(e, t);
3990
3882
  });
3991
- function Hs(e) {
3992
- return /* @__PURE__ */ Ma(Vs, e);
3883
+ function Rs(e) {
3884
+ return /* @__PURE__ */ Oa(Ls, e);
3993
3885
  }
3994
- var Us = /*@__PURE__*/ D("ZodBoolean", (e, t) => {
3995
- Yr.init(e, t), L.init(e, t), e._zod.processJSONSchema = (t, n, r) => wo(e, t, n, r);
3886
+ var zs = /*@__PURE__*/ D("ZodBoolean", (e, t) => {
3887
+ Yr.init(e, t), I.init(e, t), e._zod.processJSONSchema = (t, n, r) => xo(e, t, n, r);
3996
3888
  });
3997
- function B(e) {
3998
- return /* @__PURE__ */ Na(Us, e);
3889
+ function z(e) {
3890
+ return /* @__PURE__ */ ka(zs, e);
3999
3891
  }
4000
- var Ws = /*@__PURE__*/ D("ZodNull", (e, t) => {
4001
- Xr.init(e, t), L.init(e, t), e._zod.processJSONSchema = (t, n, r) => To(e, t, n, r);
3892
+ var Bs = /*@__PURE__*/ D("ZodNull", (e, t) => {
3893
+ Xr.init(e, t), I.init(e, t), e._zod.processJSONSchema = (t, n, r) => So(e, t, n, r);
4002
3894
  });
4003
- function Gs(e) {
4004
- return /* @__PURE__ */ Pa(Ws, e);
3895
+ function Vs(e) {
3896
+ return /* @__PURE__ */ Aa(Bs, e);
4005
3897
  }
4006
- var Ks = /*@__PURE__*/ D("ZodUnknown", (e, t) => {
4007
- Zr.init(e, t), L.init(e, t), e._zod.processJSONSchema = (e, t, n) => void 0;
3898
+ var Hs = /*@__PURE__*/ D("ZodUnknown", (e, t) => {
3899
+ Zr.init(e, t), I.init(e, t), e._zod.processJSONSchema = (e, t, n) => void 0;
4008
3900
  });
4009
- function qs() {
4010
- return /* @__PURE__ */ Fa(Ks);
3901
+ function Us() {
3902
+ return /* @__PURE__ */ ja(Hs);
4011
3903
  }
4012
- var Js = /*@__PURE__*/ D("ZodNever", (e, t) => {
4013
- Qr.init(e, t), L.init(e, t), e._zod.processJSONSchema = (t, n, r) => Eo(e, t, n, r);
3904
+ var Ws = /*@__PURE__*/ D("ZodNever", (e, t) => {
3905
+ Qr.init(e, t), I.init(e, t), e._zod.processJSONSchema = (t, n, r) => Co(e, t, n, r);
4014
3906
  });
4015
- function Ys(e) {
4016
- return /* @__PURE__ */ Ia(Js, e);
3907
+ function Gs(e) {
3908
+ return /* @__PURE__ */ Ma(Ws, e);
4017
3909
  }
4018
- var Xs = /*@__PURE__*/ D("ZodArray", (e, t) => {
4019
- ps(), ei.init(e, t), L.init(e, t), e._zod.processJSONSchema = (t, n, r) => jo(e, t, n, r), e.element = t.element;
3910
+ var Ks = /*@__PURE__*/ D("ZodArray", (e, t) => {
3911
+ ls(), ei.init(e, t), I.init(e, t), e._zod.processJSONSchema = (t, n, r) => Oo(e, t, n, r), e.element = t.element;
4020
3912
  }, {
4021
3913
  min(e, t) {
4022
- return this.check(/* @__PURE__ */ Ua(e, t));
3914
+ return this.check(/* @__PURE__ */ za(e, t));
4023
3915
  },
4024
3916
  nonempty(e) {
4025
- return this.check(/* @__PURE__ */ Ua(1, e));
3917
+ return this.check(/* @__PURE__ */ za(1, e));
4026
3918
  },
4027
3919
  max(e, t) {
4028
- return this.check(/* @__PURE__ */ Ha(e, t));
3920
+ return this.check(/* @__PURE__ */ Ra(e, t));
4029
3921
  },
4030
3922
  length(e, t) {
4031
- return this.check(/* @__PURE__ */ Wa(e, t));
3923
+ return this.check(/* @__PURE__ */ Ba(e, t));
4032
3924
  },
4033
3925
  unwrap() {
4034
3926
  return this.element;
4035
3927
  }
4036
3928
  });
4037
- function V(e, t) {
4038
- return /* @__PURE__ */ ro(Xs, e, t);
3929
+ function B(e, t) {
3930
+ return /* @__PURE__ */ $a(Ks, e, t);
4039
3931
  }
4040
- var Zs = /*@__PURE__*/ D("ZodObject", (e, t) => {
4041
- ps(), si.init(e, t), L.init(e, t), e._zod.processJSONSchema = (t, n, r) => No(e, t, n, r), Ot(e, "shape", (e) => e._zod.def.shape, !1);
3932
+ var qs = /*@__PURE__*/ D("ZodObject", (e, t) => {
3933
+ ls(), si.init(e, t), I.init(e, t), e._zod.processJSONSchema = (t, n, r) => Ao(e, t, n, r), Ot(e, "shape", (e) => e._zod.def.shape, !1);
4042
3934
  }, {
4043
3935
  keyof() {
4044
- return G(Object.keys(this._zod.def.shape));
3936
+ return W(Object.keys(this._zod.def.shape));
4045
3937
  },
4046
3938
  catchall(e) {
4047
3939
  return this.clone({
@@ -4052,19 +3944,19 @@ var Zs = /*@__PURE__*/ D("ZodObject", (e, t) => {
4052
3944
  passthrough() {
4053
3945
  return this.clone({
4054
3946
  ...this._zod.def,
4055
- catchall: qs()
3947
+ catchall: Us()
4056
3948
  });
4057
3949
  },
4058
3950
  loose() {
4059
3951
  return this.clone({
4060
3952
  ...this._zod.def,
4061
- catchall: qs()
3953
+ catchall: Us()
4062
3954
  });
4063
3955
  },
4064
3956
  strict() {
4065
3957
  return this.clone({
4066
3958
  ...this._zod.def,
4067
- catchall: Ys()
3959
+ catchall: Gs()
4068
3960
  });
4069
3961
  },
4070
3962
  strip() {
@@ -4089,115 +3981,85 @@ var Zs = /*@__PURE__*/ D("ZodObject", (e, t) => {
4089
3981
  return rt(this, e);
4090
3982
  },
4091
3983
  partial(...e) {
4092
- return st(dc, this, e[0]);
3984
+ return st(ac, this, e[0]);
4093
3985
  },
4094
3986
  exactPartial(...e) {
4095
- return st(pc, this, e[0], "exactPartial");
3987
+ return st(sc, this, e[0], "exactPartial");
4096
3988
  },
4097
3989
  required(...e) {
4098
- return ct(xc, this, e[0]);
3990
+ return ct(hc, this, e[0]);
4099
3991
  }
4100
3992
  });
4101
- function H(e, t) {
4102
- return new Zs({
3993
+ function V(e, t) {
3994
+ return new qs({
4103
3995
  type: "object",
4104
3996
  shape: e ?? {},
4105
3997
  ...T(t)
4106
3998
  });
4107
3999
  }
4108
- function Qs(e, t) {
4109
- return new Zs({
4000
+ function Js(e, t) {
4001
+ return new qs({
4110
4002
  type: "object",
4111
4003
  shape: e,
4112
- catchall: Ys(),
4004
+ catchall: Gs(),
4113
4005
  ...T(t)
4114
4006
  });
4115
4007
  }
4116
- var $s = /*@__PURE__*/ D("ZodUnion", (e, t) => {
4117
- li.init(e, t), L.init(e, t), e._zod.processJSONSchema = (t, n, r) => Po(e, t, n, r), e.options = t.options;
4008
+ var Ys = /*@__PURE__*/ D("ZodUnion", (e, t) => {
4009
+ li.init(e, t), I.init(e, t), e._zod.processJSONSchema = (t, n, r) => jo(e, t, n, r), e.options = t.options;
4118
4010
  });
4119
- function U(e, t) {
4120
- return new $s({
4011
+ function H(e, t) {
4012
+ return new Ys({
4121
4013
  type: "union",
4122
4014
  options: e,
4123
4015
  ...T(t)
4124
4016
  });
4125
4017
  }
4126
- var ec = /*@__PURE__*/ D("ZodDiscriminatedUnion", (e, t) => {
4127
- $s.init(e, t), ui.init(e, t);
4018
+ var Xs = /*@__PURE__*/ D("ZodDiscriminatedUnion", (e, t) => {
4019
+ Ys.init(e, t), ui.init(e, t);
4128
4020
  });
4129
- function tc(e, t, n) {
4130
- return new ec({
4021
+ function Zs(e, t, n) {
4022
+ return new Xs({
4131
4023
  type: "union",
4132
4024
  options: t,
4133
4025
  discriminator: e,
4134
4026
  ...T(n)
4135
4027
  });
4136
4028
  }
4137
- var nc = /*@__PURE__*/ D("ZodIntersection", (e, t) => {
4138
- di.init(e, t), L.init(e, t), e._zod.processJSONSchema = (t, n, r) => Fo(e, t, n, r);
4029
+ var Qs = /*@__PURE__*/ D("ZodIntersection", (e, t) => {
4030
+ di.init(e, t), I.init(e, t), e._zod.processJSONSchema = (t, n, r) => Mo(e, t, n, r);
4139
4031
  });
4140
- function rc(e, t) {
4141
- return new nc({
4032
+ function $s(e, t) {
4033
+ return new Qs({
4142
4034
  type: "intersection",
4143
4035
  left: e,
4144
4036
  right: t
4145
4037
  });
4146
4038
  }
4147
- var ic = /*@__PURE__*/ D("ZodTuple", (e, t) => {
4148
- ps(), mi.init(e, t), L.init(e, t), e._zod.processJSONSchema = (t, n, r) => Io(e, t, n, r);
4149
- }, {
4150
- rest(e) {
4151
- return this.clone({
4152
- ...this._zod.def,
4153
- rest: e
4154
- });
4155
- },
4156
- partial() {
4157
- let e = this._zod.def;
4158
- if (e.checks?.length) throw Error(".partial() cannot be used on tuple schemas containing refinements");
4159
- return this.clone({
4160
- ...e,
4161
- items: e.items.map((e) => new dc({
4162
- type: "optional",
4163
- innerType: e
4164
- }))
4165
- });
4166
- }
4039
+ var ec = /*@__PURE__*/ D("ZodRecord", (e, t) => {
4040
+ ls(), mi.init(e, t), I.init(e, t), e._zod.processJSONSchema = (t, n, r) => Io(e, t, n, r), e.keyType = t.keyType, e.valueType = t.valueType;
4167
4041
  });
4168
- function ac(e, t, n) {
4169
- let r = t instanceof j;
4170
- return new ic({
4171
- type: "tuple",
4172
- items: e,
4173
- rest: r ? t : null,
4174
- ...T(r ? n : t)
4175
- });
4176
- }
4177
- var oc = /*@__PURE__*/ D("ZodRecord", (e, t) => {
4178
- ps(), vi.init(e, t), L.init(e, t), e._zod.processJSONSchema = (t, n, r) => Bo(e, t, n, r), e.keyType = t.keyType, e.valueType = t.valueType;
4179
- });
4180
- function W(e, t, n) {
4181
- return !t || !t._zod ? new oc({
4042
+ function U(e, t, n) {
4043
+ return !t || !t._zod ? new ec({
4182
4044
  type: "record",
4183
- keyType: gs(),
4045
+ keyType: fs(),
4184
4046
  valueType: e,
4185
4047
  ...T(t)
4186
- }) : new oc({
4048
+ }) : new ec({
4187
4049
  type: "record",
4188
4050
  keyType: e,
4189
4051
  valueType: t,
4190
4052
  ...T(n)
4191
4053
  });
4192
4054
  }
4193
- var sc = /*@__PURE__*/ D("ZodEnum", (e, t) => {
4194
- yi.init(e, t), L.init(e, t), e._zod.processJSONSchema = (t, n, r) => Do(e, t, n, r), e.enum = t.entries, e.options = Object.values(t.entries);
4055
+ var tc = /*@__PURE__*/ D("ZodEnum", (e, t) => {
4056
+ hi.init(e, t), I.init(e, t), e._zod.processJSONSchema = (t, n, r) => wo(e, t, n, r), e.enum = t.entries, e.options = Object.values(t.entries);
4195
4057
  let n = new Set(Object.keys(t.entries));
4196
4058
  e.extract = (e, r) => {
4197
4059
  let i = {};
4198
4060
  for (let r of e) if (n.has(r)) i[r] = t.entries[r];
4199
4061
  else throw Error(`Key ${r} not found in enum`);
4200
- return new sc({
4062
+ return new tc({
4201
4063
  ...t,
4202
4064
  checks: [],
4203
4065
  ...T(r),
@@ -4207,7 +4069,7 @@ var sc = /*@__PURE__*/ D("ZodEnum", (e, t) => {
4207
4069
  let i = { ...t.entries };
4208
4070
  for (let t of e) if (n.has(t)) delete i[t];
4209
4071
  else throw Error(`Key ${t} not found in enum`);
4210
- return new sc({
4072
+ return new tc({
4211
4073
  ...t,
4212
4074
  checks: [],
4213
4075
  ...T(r),
@@ -4215,28 +4077,28 @@ var sc = /*@__PURE__*/ D("ZodEnum", (e, t) => {
4215
4077
  });
4216
4078
  };
4217
4079
  });
4218
- function G(e, t) {
4219
- return new sc({
4080
+ function W(e, t) {
4081
+ return new tc({
4220
4082
  type: "enum",
4221
4083
  entries: Array.isArray(e) ? Object.fromEntries(e.map((e) => [e, e])) : e,
4222
4084
  ...T(t)
4223
4085
  });
4224
4086
  }
4225
- var cc = /*@__PURE__*/ D("ZodLiteral", (e, t) => {
4226
- bi.init(e, t), L.init(e, t), e._zod.processJSONSchema = (t, n, r) => Oo(e, t, n, r), e.values = new Set(t.values), Object.defineProperty(e, "value", { get() {
4087
+ var nc = /*@__PURE__*/ D("ZodLiteral", (e, t) => {
4088
+ gi.init(e, t), I.init(e, t), e._zod.processJSONSchema = (t, n, r) => To(e, t, n, r), e.values = new Set(t.values), Object.defineProperty(e, "value", { get() {
4227
4089
  if (t.values.length > 1) throw Error("This schema contains multiple valid literal values. Use `.values` instead.");
4228
4090
  return t.values[0];
4229
4091
  } });
4230
4092
  });
4231
- function K(e, t) {
4232
- return new cc({
4093
+ function G(e, t) {
4094
+ return new nc({
4233
4095
  type: "literal",
4234
4096
  values: Array.isArray(e) ? e : [e],
4235
4097
  ...T(t)
4236
4098
  });
4237
4099
  }
4238
- var lc = /*@__PURE__*/ D("ZodTransform", (e, t) => {
4239
- ps(), xi.init(e, t), L.init(e, t), e._zod.processJSONSchema = (t, n, r) => Ao(e, t, n, r), e._zod.parse = (n, r) => {
4100
+ var rc = /*@__PURE__*/ D("ZodTransform", (e, t) => {
4101
+ ls(), _i.init(e, t), I.init(e, t), e._zod.processJSONSchema = (t, n, r) => Do(e, t, n, r), e._zod.parse = (n, r) => {
4240
4102
  if (r.direction === "backward") throw new It(e.constructor.name);
4241
4103
  n.addIssue = (r) => {
4242
4104
  if (typeof r == "string") n.issues.push(yt(r, n.value, t));
@@ -4249,44 +4111,44 @@ var lc = /*@__PURE__*/ D("ZodTransform", (e, t) => {
4249
4111
  return i instanceof Promise ? i.then((e) => (n.value = e, n)) : (n.value = i, n);
4250
4112
  };
4251
4113
  });
4252
- function uc(e) {
4253
- return new lc({
4114
+ function ic(e) {
4115
+ return new rc({
4254
4116
  type: "transform",
4255
4117
  transform: e
4256
4118
  });
4257
4119
  }
4258
- var dc = /*@__PURE__*/ D("ZodOptional", (e, t) => {
4259
- Ci.init(e, t), L.init(e, t), e._zod.processJSONSchema = (t, n, r) => Xo(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
4120
+ var ac = /*@__PURE__*/ D("ZodOptional", (e, t) => {
4121
+ yi.init(e, t), I.init(e, t), e._zod.processJSONSchema = (t, n, r) => Ko(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
4260
4122
  });
4261
- function fc(e) {
4262
- return new dc({
4123
+ function oc(e) {
4124
+ return new ac({
4263
4125
  type: "optional",
4264
4126
  innerType: e
4265
4127
  });
4266
4128
  }
4267
- var pc = /*@__PURE__*/ D("ZodExactOptional", (e, t) => {
4268
- wi.init(e, t), L.init(e, t), e._zod.processJSONSchema = (t, n, r) => Xo(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
4129
+ var sc = /*@__PURE__*/ D("ZodExactOptional", (e, t) => {
4130
+ bi.init(e, t), I.init(e, t), e._zod.processJSONSchema = (t, n, r) => Ko(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
4269
4131
  });
4270
- function mc(e) {
4271
- return new pc({
4132
+ function cc(e) {
4133
+ return new sc({
4272
4134
  type: "optional",
4273
4135
  innerType: e
4274
4136
  });
4275
4137
  }
4276
- var hc = /*@__PURE__*/ D("ZodNullable", (e, t) => {
4277
- Ti.init(e, t), L.init(e, t), e._zod.processJSONSchema = (t, n, r) => Vo(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
4138
+ var lc = /*@__PURE__*/ D("ZodNullable", (e, t) => {
4139
+ xi.init(e, t), I.init(e, t), e._zod.processJSONSchema = (t, n, r) => Lo(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
4278
4140
  });
4279
- function gc(e) {
4280
- return new hc({
4141
+ function uc(e) {
4142
+ return new lc({
4281
4143
  type: "nullable",
4282
4144
  innerType: e
4283
4145
  });
4284
4146
  }
4285
- var _c = /*@__PURE__*/ D("ZodDefault", (e, t) => {
4286
- Ei.init(e, t), L.init(e, t), e._zod.processJSONSchema = (t, n, r) => Go(e, t, n, r), e.unwrap = () => e._zod.def.innerType, e.removeDefault = e.unwrap;
4147
+ var dc = /*@__PURE__*/ D("ZodDefault", (e, t) => {
4148
+ Si.init(e, t), I.init(e, t), e._zod.processJSONSchema = (t, n, r) => Vo(e, t, n, r), e.unwrap = () => e._zod.def.innerType, e.removeDefault = e.unwrap;
4287
4149
  });
4288
- function vc(e, t) {
4289
- return new _c({
4150
+ function fc(e, t) {
4151
+ return new dc({
4290
4152
  type: "default",
4291
4153
  innerType: e,
4292
4154
  get defaultValue() {
@@ -4294,11 +4156,11 @@ function vc(e, t) {
4294
4156
  }
4295
4157
  });
4296
4158
  }
4297
- var yc = /*@__PURE__*/ D("ZodPrefault", (e, t) => {
4298
- Oi.init(e, t), L.init(e, t), e._zod.processJSONSchema = (t, n, r) => Ko(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
4159
+ var pc = /*@__PURE__*/ D("ZodPrefault", (e, t) => {
4160
+ wi.init(e, t), I.init(e, t), e._zod.processJSONSchema = (t, n, r) => Ho(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
4299
4161
  });
4300
- function bc(e, t) {
4301
- return new yc({
4162
+ function mc(e, t) {
4163
+ return new pc({
4302
4164
  type: "prefault",
4303
4165
  innerType: e,
4304
4166
  get defaultValue() {
@@ -4306,188 +4168,188 @@ function bc(e, t) {
4306
4168
  }
4307
4169
  });
4308
4170
  }
4309
- var xc = /*@__PURE__*/ D("ZodNonOptional", (e, t) => {
4310
- ki.init(e, t), L.init(e, t), e._zod.processJSONSchema = (t, n, r) => Ho(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
4171
+ var hc = /*@__PURE__*/ D("ZodNonOptional", (e, t) => {
4172
+ Ti.init(e, t), I.init(e, t), e._zod.processJSONSchema = (t, n, r) => Ro(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
4311
4173
  });
4312
- function Sc(e, t) {
4313
- return new xc({
4174
+ function gc(e, t) {
4175
+ return new hc({
4314
4176
  type: "nonoptional",
4315
4177
  innerType: e,
4316
4178
  ...T(t)
4317
4179
  });
4318
4180
  }
4319
- var Cc = /*@__PURE__*/ D("ZodCatch", (e, t) => {
4320
- Mi.init(e, t), L.init(e, t), e._zod.processJSONSchema = (t, n, r) => qo(e, t, n, r), e.unwrap = () => e._zod.def.innerType, e.removeCatch = e.unwrap;
4181
+ var _c = /*@__PURE__*/ D("ZodCatch", (e, t) => {
4182
+ Oi.init(e, t), I.init(e, t), e._zod.processJSONSchema = (t, n, r) => Uo(e, t, n, r), e.unwrap = () => e._zod.def.innerType, e.removeCatch = e.unwrap;
4321
4183
  });
4322
- function wc(e, t) {
4323
- return new Cc({
4184
+ function vc(e, t) {
4185
+ return new _c({
4324
4186
  type: "catch",
4325
4187
  innerType: e,
4326
4188
  catchValue: typeof t == "function" ? t : At(t)
4327
4189
  });
4328
4190
  }
4329
- var Tc = /*@__PURE__*/ D("ZodPipe", (e, t) => {
4330
- Ni.init(e, t), L.init(e, t), e._zod.processJSONSchema = (t, n, r) => Jo(e, t, n, r), e.in = t.in, e.out = t.out;
4191
+ var yc = /*@__PURE__*/ D("ZodPipe", (e, t) => {
4192
+ ki.init(e, t), I.init(e, t), e._zod.processJSONSchema = (t, n, r) => Wo(e, t, n, r), e.in = t.in, e.out = t.out;
4331
4193
  });
4332
- function Ec(e, t) {
4333
- return new Tc({
4194
+ function bc(e, t) {
4195
+ return new yc({
4334
4196
  type: "pipe",
4335
4197
  in: e,
4336
4198
  out: t
4337
4199
  });
4338
4200
  }
4339
- var Dc = /*@__PURE__*/ D("ZodReadonly", (e, t) => {
4340
- Fi.init(e, t), L.init(e, t), e._zod.processJSONSchema = (t, n, r) => Yo(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
4201
+ var xc = /*@__PURE__*/ D("ZodReadonly", (e, t) => {
4202
+ ji.init(e, t), I.init(e, t), e._zod.processJSONSchema = (t, n, r) => Go(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
4341
4203
  });
4342
- function Oc(e) {
4343
- return new Dc({
4204
+ function Sc(e) {
4205
+ return new xc({
4344
4206
  type: "readonly",
4345
4207
  innerType: e
4346
4208
  });
4347
4209
  }
4348
- var kc = /*@__PURE__*/ D("ZodLazy", (e, t) => {
4349
- Li.init(e, t), L.init(e, t), e._zod.processJSONSchema = (t, n, r) => Zo(e, t, n, r), e.unwrap = () => e._zod.def.getter();
4210
+ var Cc = /*@__PURE__*/ D("ZodLazy", (e, t) => {
4211
+ Ni.init(e, t), I.init(e, t), e._zod.processJSONSchema = (t, n, r) => qo(e, t, n, r), e.unwrap = () => e._zod.def.getter();
4350
4212
  });
4351
- function Ac(e) {
4352
- return new kc({
4213
+ function wc(e) {
4214
+ return new Cc({
4353
4215
  type: "lazy",
4354
4216
  getter: e
4355
4217
  });
4356
4218
  }
4357
- var jc = /*@__PURE__*/ D("ZodCustom", (e, t) => {
4358
- Ri.init(e, t), L.init(e, t), e._zod.processJSONSchema = (t, n, r) => ko(e, t, n, r);
4219
+ var Tc = /*@__PURE__*/ D("ZodCustom", (e, t) => {
4220
+ Pi.init(e, t), I.init(e, t), e._zod.processJSONSchema = (t, n, r) => Eo(e, t, n, r);
4359
4221
  });
4360
- function Mc(e, t = {}) {
4361
- return /* @__PURE__ */ io(jc, e, t);
4222
+ function Ec(e, t = {}) {
4223
+ return /* @__PURE__ */ eo(Tc, e, t);
4362
4224
  }
4363
- function Nc(e, t) {
4364
- return /* @__PURE__ */ ao(e, t);
4225
+ function Dc(e, t) {
4226
+ return /* @__PURE__ */ to(e, t);
4365
4227
  }
4366
- function Pc(e) {
4367
- let t = Ac(() => U([
4368
- gs(e),
4228
+ function Oc(e) {
4229
+ let t = wc(() => H([
4230
+ fs(e),
4231
+ R(),
4369
4232
  z(),
4370
- B(),
4371
- Gs(),
4372
- V(t),
4373
- W(gs(), t)
4233
+ Vs(),
4234
+ B(t),
4235
+ U(fs(), t)
4374
4236
  ]));
4375
4237
  return t;
4376
4238
  }
4377
- function Fc(e, t = 0) {
4239
+ function kc(e, t = 0) {
4378
4240
  if (t > 64) throw TypeError("Value exceeds the maximum JSON depth.");
4379
- if (typeof e == "object" && e) for (let n of Object.values(e)) Fc(n, t + 1);
4241
+ if (typeof e == "object" && e) for (let n of Object.values(e)) kc(n, t + 1);
4380
4242
  }
4381
4243
  //#endregion
4382
4244
  //#region src/flow/common/triggerScheduleSchema.ts
4383
- var Ic = V(U([H({
4384
- type: K("cron"),
4385
- expression: gs(),
4386
- timezone: gs()
4387
- }), H({
4388
- type: K("every"),
4389
- unit: G([
4245
+ var Ac = B(H([V({
4246
+ type: G("cron"),
4247
+ expression: fs(),
4248
+ timezone: fs()
4249
+ }), V({
4250
+ type: G("every"),
4251
+ unit: W([
4390
4252
  "day",
4391
4253
  "hour",
4392
4254
  "minute",
4393
4255
  "month",
4394
4256
  "week"
4395
4257
  ]),
4396
- value: z()
4397
- })])), q = gs(), J = Pc(), Lc = V(q), Rc = H({
4398
- description: q.optional(),
4399
- jsonSchema: J,
4400
- nullable: B(),
4401
- handle: q
4402
- }), Y = Rc.extend({ value: J.optional() }), zc = H({
4403
- collapsed: B().optional(),
4404
- group: q
4405
- }), Bc = H({
4406
- kind: K("node"),
4407
- nodeId: q,
4408
- output: q
4409
- }), Vc = H({
4410
- kind: K("flow"),
4411
- input: q
4412
- }), Hc = U([
4413
- Bc,
4414
- Vc,
4415
- H({
4416
- kind: K("binding"),
4417
- bindingId: q
4258
+ value: R()
4259
+ })])), K = fs(), q = Oc(), jc = B(K), Mc = V({
4260
+ description: K.optional(),
4261
+ jsonSchema: q,
4262
+ nullable: z(),
4263
+ handle: K
4264
+ }), J = Mc.extend({ value: q.optional() }), Nc = V({
4265
+ collapsed: z().optional(),
4266
+ group: K
4267
+ }), Pc = V({
4268
+ kind: G("node"),
4269
+ nodeId: K,
4270
+ output: K
4271
+ }), Fc = V({
4272
+ kind: G("flow"),
4273
+ input: K
4274
+ }), Ic = H([
4275
+ Pc,
4276
+ Fc,
4277
+ V({
4278
+ kind: G("binding"),
4279
+ bindingId: K
4418
4280
  })
4419
- ]), Uc = U([H({
4420
- kind: K("value"),
4421
- value: J
4422
- }), H({
4423
- kind: K("sources"),
4424
- sources: V(Hc)
4425
- })]), Wc = W(q, Uc), Gc = {
4426
- inputs: V(U([Y, zc])),
4427
- outputs: V(U([Rc, zc]))
4428
- }, Kc = H({
4429
- kind: K("connector"),
4430
- action: q,
4431
- connectionId: q.optional(),
4432
- connections: V(H({
4433
- connectionId: q,
4434
- alias: q.optional()
4281
+ ]), Lc = H([V({
4282
+ kind: G("value"),
4283
+ value: q
4284
+ }), V({
4285
+ kind: G("sources"),
4286
+ sources: B(Ic)
4287
+ })]), Rc = U(K, Lc), zc = {
4288
+ inputs: B(H([J, Nc])),
4289
+ outputs: B(H([Mc, Nc]))
4290
+ }, Bc = V({
4291
+ kind: G("connector"),
4292
+ action: K,
4293
+ connectionId: K.optional(),
4294
+ connections: B(V({
4295
+ connectionId: K,
4296
+ alias: K.optional()
4435
4297
  }))
4436
- }), qc = H({
4437
- ...Gc,
4438
- name: q,
4439
- moduleId: q,
4440
- capabilities: V(Kc).optional()
4441
- }), Jc = U([H({
4442
- kind: K("value"),
4443
- value: J
4444
- }), H({
4445
- kind: K("input"),
4446
- input: q
4447
- })]), Yc = U([Jc, H({ kind: K("model") })]), Xc = H({
4448
- ...Gc,
4449
- name: q,
4450
- executor: U([
4451
- H({
4452
- kind: K("connector"),
4453
- action: q,
4454
- connectionId: q.optional()
4298
+ }), Vc = V({
4299
+ ...zc,
4300
+ name: K,
4301
+ moduleId: K,
4302
+ capabilities: B(Bc).optional()
4303
+ }), Hc = H([V({
4304
+ kind: G("value"),
4305
+ value: q
4306
+ }), V({
4307
+ kind: G("input"),
4308
+ input: K
4309
+ })]), Uc = H([Hc, V({ kind: G("model") })]), Wc = V({
4310
+ ...zc,
4311
+ name: K,
4312
+ executor: H([
4313
+ V({
4314
+ kind: G("connector"),
4315
+ action: K,
4316
+ connectionId: K.optional()
4455
4317
  }),
4456
- H({
4457
- kind: K("llm"),
4458
- mode: G(["chat", "json"])
4318
+ V({
4319
+ kind: G("llm"),
4320
+ mode: W(["chat", "json"])
4459
4321
  }),
4460
- H({
4461
- kind: K("agent"),
4462
- code: B().optional(),
4463
- model: q,
4464
- prompt: Jc,
4465
- system: q,
4466
- maxRounds: z(),
4467
- tools: V(H({
4468
- id: q,
4469
- name: q,
4470
- description: q,
4471
- action: q,
4472
- connectionId: q.optional(),
4473
- approval: B(),
4474
- inputs: V(Y.extend({ source: Yc }))
4322
+ V({
4323
+ kind: G("agent"),
4324
+ code: z().optional(),
4325
+ model: K,
4326
+ prompt: Hc,
4327
+ system: K,
4328
+ maxRounds: R(),
4329
+ tools: B(V({
4330
+ id: K,
4331
+ name: K,
4332
+ description: K,
4333
+ action: K,
4334
+ connectionId: K.optional(),
4335
+ approval: z(),
4336
+ inputs: B(J.extend({ source: Uc }))
4475
4337
  })),
4476
- notification: H({
4477
- taskId: q,
4478
- messageHandle: q,
4479
- inputs: W(q, Jc)
4338
+ notification: V({
4339
+ taskId: K,
4340
+ messageHandle: K,
4341
+ inputs: U(K, Hc)
4480
4342
  }).optional()
4481
4343
  })
4482
4344
  ])
4483
- }), Zc = {
4484
- input: Y,
4485
- cases: V(H({
4486
- output: q,
4487
- relation: G(["all", "any"]),
4488
- expressions: V(H({
4489
- input: q,
4490
- operator: G([
4345
+ }), Gc = {
4346
+ input: J,
4347
+ cases: B(V({
4348
+ output: K,
4349
+ relation: W(["all", "any"]),
4350
+ expressions: B(V({
4351
+ input: K,
4352
+ operator: W([
4491
4353
  "!=",
4492
4354
  "<",
4493
4355
  "<=",
@@ -4509,44 +4371,41 @@ var Ic = V(U([H({
4509
4371
  "notHasValue",
4510
4372
  "startsWith"
4511
4373
  ]),
4512
- value: J.optional()
4374
+ value: q.optional()
4513
4375
  }))
4514
4376
  })),
4515
- defaultOutput: q.optional()
4516
- }, Qc = {
4517
- actions: U([ac([K("continue")]), ac([K("approve"), K("reject")])]),
4518
- prompt: q
4519
- }, $c = {
4520
- bodyFields: V(Y),
4521
- options: H({
4522
- allowedMethods: Lc.optional(),
4523
- allowedOrigins: Lc.optional(),
4524
- noResponseBody: B().optional(),
4525
- responseData: q.optional(),
4526
- responseHeaders: W(q, q).optional(),
4527
- responseStatusCode: z().optional()
4377
+ defaultOutput: K.optional()
4378
+ }, Kc = { prompt: K }, qc = {
4379
+ bodyFields: B(J),
4380
+ options: V({
4381
+ allowedMethods: jc.optional(),
4382
+ allowedOrigins: jc.optional(),
4383
+ noResponseBody: z().optional(),
4384
+ responseData: K.optional(),
4385
+ responseHeaders: U(K, K).optional(),
4386
+ responseStatusCode: R().optional()
4528
4387
  }).optional()
4529
- }, el = {
4530
- configSchema: J,
4531
- definitionVersion: K(2),
4532
- description: q,
4533
- displayName: q,
4534
- key: q,
4535
- name: q,
4536
- outputs: V(Rc).refine((e) => new Set(e.map((e) => e.handle)).size === e.length, "Duplicate Trigger output handle."),
4537
- provider: q
4538
- }, tl = H({
4539
- body: H({
4540
- allowArray: B(),
4541
- allowEmpty: B(),
4542
- formats: V(G([
4388
+ }, Jc = {
4389
+ configSchema: q,
4390
+ definitionVersion: G(2),
4391
+ description: K,
4392
+ displayName: K,
4393
+ key: K,
4394
+ name: K,
4395
+ outputs: B(Mc).refine((e) => new Set(e.map((e) => e.handle)).size === e.length, "Duplicate Trigger output handle."),
4396
+ provider: K
4397
+ }, Yc = V({
4398
+ body: V({
4399
+ allowArray: z(),
4400
+ allowEmpty: z(),
4401
+ formats: B(W([
4543
4402
  "form",
4544
4403
  "json",
4545
4404
  "multipart",
4546
4405
  "text"
4547
4406
  ]))
4548
4407
  }),
4549
- methods: V(G([
4408
+ methods: B(W([
4550
4409
  "DELETE",
4551
4410
  "GET",
4552
4411
  "HEAD",
@@ -4554,300 +4413,306 @@ var Ic = V(U([H({
4554
4413
  "POST",
4555
4414
  "PUT"
4556
4415
  ])),
4557
- successStatus: z()
4558
- }), nl = {
4559
- name: q,
4560
- description: q.optional(),
4561
- icon: q.optional()
4562
- }, rl = {
4563
- maxExecutions: z().int().positive().max(2 ** 53 - 1).optional(),
4564
- inputs: Wc,
4565
- name: q.optional(),
4566
- description: q.optional(),
4567
- icon: q.optional(),
4568
- timeoutMs: z().optional()
4569
- }, il = U([
4570
- H({
4571
- ...rl,
4572
- kind: K("condition"),
4573
- ...Zc
4416
+ successStatus: R()
4417
+ }), Xc = {
4418
+ name: K,
4419
+ description: K.optional(),
4420
+ icon: K.optional()
4421
+ }, Zc = {
4422
+ maxExecutions: R().int().positive().max(2 ** 53 - 1).optional(),
4423
+ inputs: Rc,
4424
+ name: K.optional(),
4425
+ description: K.optional(),
4426
+ icon: K.optional(),
4427
+ timeoutMs: R().optional()
4428
+ }, Qc = H([
4429
+ V({
4430
+ ...Zc,
4431
+ kind: G("condition"),
4432
+ ...Gc
4574
4433
  }),
4575
- H({
4576
- ...rl,
4577
- inputs: qs().transform(() => ({})).default({}),
4578
- kind: K("value"),
4579
- values: V(Y)
4434
+ V({
4435
+ ...Zc,
4436
+ inputs: Us().transform(() => ({})).default({}),
4437
+ kind: G("value"),
4438
+ values: B(J)
4580
4439
  }),
4581
- H({
4582
- ...rl,
4583
- kind: K("subflow"),
4584
- subflowId: q
4440
+ V({
4441
+ ...Zc,
4442
+ kind: G("subflow"),
4443
+ subflowId: K
4585
4444
  }),
4586
- H({
4587
- ...rl,
4588
- kind: K("task"),
4589
- task: qc,
4590
- additionalInputs: V(Y).optional()
4445
+ V({
4446
+ ...Zc,
4447
+ kind: G("task"),
4448
+ task: Vc,
4449
+ additionalInputs: B(J).optional()
4591
4450
  }),
4592
- H({
4593
- ...rl,
4594
- kind: K("task"),
4595
- taskId: q,
4596
- additionalInputs: V(Y).optional()
4451
+ V({
4452
+ ...Zc,
4453
+ kind: G("task"),
4454
+ taskId: K,
4455
+ additionalInputs: B(J).optional()
4597
4456
  }),
4598
- Qs({
4599
- ...rl,
4600
- kind: K("wait"),
4601
- input: Y,
4602
- ...Qc
4457
+ Js({
4458
+ ...Zc,
4459
+ kind: G("approval"),
4460
+ input: J,
4461
+ ...Kc
4603
4462
  }).omit({ timeoutMs: !0 }),
4604
- H({
4605
- ...nl,
4606
- kind: K("manual")
4463
+ Js({
4464
+ ...Zc,
4465
+ kind: G("wait"),
4466
+ input: J,
4467
+ ...Kc
4468
+ }).omit({ timeoutMs: !0 }),
4469
+ V({
4470
+ ...Xc,
4471
+ kind: G("manual")
4607
4472
  }),
4608
- H({
4609
- ...nl,
4610
- kind: K("webhook"),
4611
- ...$c
4473
+ V({
4474
+ ...Xc,
4475
+ kind: G("webhook"),
4476
+ ...qc
4612
4477
  }),
4613
- H({
4614
- ...nl,
4615
- kind: K("cron"),
4616
- cronTimes: Ic
4478
+ V({
4479
+ ...Xc,
4480
+ kind: G("cron"),
4481
+ cronTimes: Ac
4617
4482
  }),
4618
- H({
4619
- ...nl,
4620
- kind: K("poll"),
4621
- bindingId: q,
4622
- config: W(q, J),
4623
- definition: H({
4624
- ...el,
4625
- type: K("poll")
4483
+ V({
4484
+ ...Xc,
4485
+ kind: G("poll"),
4486
+ bindingId: K,
4487
+ config: U(K, q),
4488
+ definition: V({
4489
+ ...Jc,
4490
+ type: G("poll")
4626
4491
  }),
4627
- pollTimes: Ic
4492
+ pollTimes: Ac
4628
4493
  }),
4629
- H({
4630
- ...nl,
4631
- kind: K("integration"),
4632
- bindingId: q,
4633
- config: W(q, J),
4634
- definition: H({
4635
- ...el,
4636
- type: K("integration"),
4637
- endpoint: tl
4494
+ V({
4495
+ ...Xc,
4496
+ kind: G("integration"),
4497
+ bindingId: K,
4498
+ config: U(K, q),
4499
+ definition: V({
4500
+ ...Jc,
4501
+ type: G("integration"),
4502
+ endpoint: Yc
4638
4503
  })
4639
4504
  })
4640
- ]), al = U([H({ kind: K("flow") }), H({
4641
- kind: K("subflow"),
4642
- id: q
4643
- })]), ol = H({
4644
- source: q,
4645
- target: q,
4646
- sourceHandle: q.optional()
4647
- }), X = {
4648
- nodeId: q,
4649
- target: al
4650
- }, sl = H({
4651
- name: q,
4652
- inputs: V(Y),
4653
- outputs: V(Rc.extend({ sources: V(U([Bc, Vc])) }))
4654
- }), cl = H({
4655
- nodes: W(q, il),
4656
- edges: V(ol).default([])
4657
- }), ll = H({
4658
- kind: G(["connection", "variable"]),
4659
- target: q
4660
- }), ul = H({
4661
- name: q,
4662
- imports: Lc,
4663
- source: q
4664
- }), dl = H({
4665
- bindings: W(q, ll),
4666
- graph: cl,
4667
- subflows: W(q, sl.extend({ graph: cl })),
4668
- tasks: W(q, Xc)
4669
- }), fl = H({
4670
- modelVersion: K(2),
4671
- document: dl,
4672
- modules: W(q, ul)
4505
+ ]), $c = H([V({ kind: G("flow") }), V({
4506
+ kind: G("subflow"),
4507
+ id: K
4508
+ })]), el = V({
4509
+ source: K,
4510
+ target: K,
4511
+ sourceHandle: K.optional()
4512
+ }), Y = {
4513
+ nodeId: K,
4514
+ target: $c
4515
+ }, tl = V({
4516
+ name: K,
4517
+ inputs: B(J),
4518
+ outputs: B(Mc.extend({ sources: B(H([Pc, Fc])) }))
4519
+ }), nl = V({
4520
+ nodes: U(K, Qc),
4521
+ edges: B(el).default([])
4522
+ }), rl = V({
4523
+ kind: W(["connection", "variable"]),
4524
+ target: K
4525
+ }), il = V({
4526
+ name: K,
4527
+ imports: jc,
4528
+ source: K
4529
+ }), al = V({
4530
+ bindings: U(K, rl),
4531
+ graph: nl,
4532
+ subflows: U(K, tl.extend({ graph: nl })),
4533
+ tasks: U(K, Wc)
4534
+ }), ol = V({
4535
+ modelVersion: G(2),
4536
+ document: al,
4537
+ modules: U(K, il)
4673
4538
  });
4674
- fl.extend({
4675
- kind: K("open-flow-flow-revision"),
4676
- version: K(1)
4539
+ ol.extend({
4540
+ kind: G("open-flow-flow-revision"),
4541
+ version: G(1)
4677
4542
  });
4678
- function pl(e) {
4679
- return Fc(e), fl.parse(e);
4543
+ function sl(e) {
4544
+ return kc(e), ol.parse(e);
4680
4545
  }
4681
- var ml = {
4546
+ var cl = {
4682
4547
  "binding.create": {
4683
- bindingId: q,
4684
- binding: ll
4548
+ bindingId: K,
4549
+ binding: rl
4685
4550
  },
4686
- "binding.delete": { bindingId: q },
4551
+ "binding.delete": { bindingId: K },
4687
4552
  "binding.target.set": {
4688
- bindingId: q,
4689
- before: q,
4690
- value: q
4553
+ bindingId: K,
4554
+ before: K,
4555
+ value: K
4691
4556
  },
4692
4557
  "graph.edge.connect": {
4693
- target: al,
4694
- edge: ol
4558
+ target: $c,
4559
+ edge: el
4695
4560
  },
4696
4561
  "graph.edge.disconnect": {
4697
- target: al,
4698
- edge: ol
4562
+ target: $c,
4563
+ edge: el
4699
4564
  },
4700
4565
  "graph.node.create": {
4701
- ...X,
4702
- node: il
4703
- },
4704
- "graph.node.delete": X,
4705
- "graph.node.field.set": U([
4706
- H({
4707
- ...X,
4708
- kind: K("graph.node.field.set"),
4709
- field: G([
4566
+ ...Y,
4567
+ node: Qc
4568
+ },
4569
+ "graph.node.delete": Y,
4570
+ "graph.node.field.set": H([
4571
+ V({
4572
+ ...Y,
4573
+ kind: G("graph.node.field.set"),
4574
+ field: W([
4710
4575
  "description",
4711
4576
  "icon",
4712
4577
  "name"
4713
4578
  ]),
4714
- before: q.optional(),
4715
- value: q.optional()
4579
+ before: K.optional(),
4580
+ value: K.optional()
4716
4581
  }),
4717
- H({
4718
- ...X,
4719
- kind: K("graph.node.field.set"),
4720
- field: K("maxExecutions"),
4721
- before: z().int().positive().max(2 ** 53 - 1).optional(),
4722
- value: z().int().positive().max(2 ** 53 - 1).optional()
4582
+ V({
4583
+ ...Y,
4584
+ kind: G("graph.node.field.set"),
4585
+ field: G("maxExecutions"),
4586
+ before: R().int().positive().max(2 ** 53 - 1).optional(),
4587
+ value: R().int().positive().max(2 ** 53 - 1).optional()
4723
4588
  }),
4724
- H({
4725
- ...X,
4726
- kind: K("graph.node.field.set"),
4727
- field: K("timeoutMs"),
4728
- before: z().optional(),
4729
- value: z().optional()
4589
+ V({
4590
+ ...Y,
4591
+ kind: G("graph.node.field.set"),
4592
+ field: G("timeoutMs"),
4593
+ before: R().optional(),
4594
+ value: R().optional()
4730
4595
  })
4731
4596
  ]),
4732
4597
  "graph.node.input.set": {
4733
- ...X,
4734
- handle: q,
4735
- before: Uc.optional(),
4736
- value: Uc.optional()
4598
+ ...Y,
4599
+ handle: K,
4600
+ before: Lc.optional(),
4601
+ value: Lc.optional()
4737
4602
  },
4738
4603
  "graph.node.additional-inputs.set": {
4739
- ...X,
4740
- before: V(Y).optional(),
4741
- value: V(Y).optional()
4604
+ ...Y,
4605
+ before: B(J).optional(),
4606
+ value: B(J).optional()
4742
4607
  },
4743
4608
  "graph.node.condition.set": {
4744
- ...X,
4745
- before: H(Zc),
4746
- value: H(Zc)
4609
+ ...Y,
4610
+ before: V(Gc),
4611
+ value: V(Gc)
4747
4612
  },
4748
4613
  "graph.node.values.set": {
4749
- ...X,
4750
- before: V(Y),
4751
- value: V(Y)
4614
+ ...Y,
4615
+ before: B(J),
4616
+ value: B(J)
4752
4617
  },
4753
- "graph.node.wait.set": {
4754
- ...X,
4755
- target: H({ kind: K("flow") }),
4756
- before: H(Qc),
4757
- value: H(Qc)
4618
+ "graph.node.resolution.set": {
4619
+ ...Y,
4620
+ target: V({ kind: G("flow") }),
4621
+ before: V(Kc),
4622
+ value: V(Kc)
4758
4623
  },
4759
4624
  "graph.node.webhook.set": {
4760
- ...X,
4761
- target: H({ kind: K("flow") }),
4762
- before: H($c),
4763
- value: H($c)
4625
+ ...Y,
4626
+ target: V({ kind: G("flow") }),
4627
+ before: V(qc),
4628
+ value: V(qc)
4764
4629
  },
4765
4630
  "graph.node.task.ports.set": {
4766
- ...X,
4767
- before: H(Gc),
4768
- value: H(Gc)
4631
+ ...Y,
4632
+ before: V(zc),
4633
+ value: V(zc)
4769
4634
  },
4770
4635
  "graph.node.task.name.set": {
4771
- ...X,
4772
- before: q,
4773
- value: q
4636
+ ...Y,
4637
+ before: K,
4638
+ value: K
4774
4639
  },
4775
4640
  "graph.node.task.capabilities.set": {
4776
- ...X,
4777
- before: V(Kc).optional(),
4778
- value: V(Kc).optional()
4641
+ ...Y,
4642
+ before: B(Bc).optional(),
4643
+ value: B(Bc).optional()
4779
4644
  },
4780
4645
  "graph.trigger.config.set": {
4781
- nodeId: q,
4782
- name: q,
4783
- before: J.optional(),
4784
- value: J.optional()
4646
+ nodeId: K,
4647
+ name: K,
4648
+ before: q.optional(),
4649
+ value: q.optional()
4785
4650
  },
4786
4651
  "graph.trigger.schedule.set": {
4787
- nodeId: q,
4788
- before: Ic,
4789
- value: Ic
4652
+ nodeId: K,
4653
+ before: Ac,
4654
+ value: Ac
4790
4655
  },
4791
4656
  "module.create": {
4792
- moduleId: q,
4793
- module: ul
4657
+ moduleId: K,
4658
+ module: il
4794
4659
  },
4795
- "module.delete": { moduleId: q },
4660
+ "module.delete": { moduleId: K },
4796
4661
  "module.rename": {
4797
- moduleId: q,
4798
- before: q,
4799
- name: q
4662
+ moduleId: K,
4663
+ before: K,
4664
+ name: K
4800
4665
  },
4801
4666
  "module.source.replace": {
4802
- moduleId: q,
4803
- beforeImports: Lc,
4804
- beforeSource: q,
4805
- imports: Lc,
4806
- source: q
4667
+ moduleId: K,
4668
+ beforeImports: jc,
4669
+ beforeSource: K,
4670
+ imports: jc,
4671
+ source: K
4807
4672
  },
4808
4673
  "subflow.create": {
4809
- subflowId: q,
4810
- subflow: sl.extend({ graph: cl })
4674
+ subflowId: K,
4675
+ subflow: tl.extend({ graph: nl })
4811
4676
  },
4812
4677
  "subflow.definition.set": {
4813
- subflowId: q,
4814
- before: sl,
4815
- definition: sl
4678
+ subflowId: K,
4679
+ before: tl,
4680
+ definition: tl
4816
4681
  },
4817
- "subflow.delete": { subflowId: q },
4682
+ "subflow.delete": { subflowId: K },
4818
4683
  "task.create": {
4819
- taskId: q,
4820
- task: Xc
4684
+ taskId: K,
4685
+ task: Wc
4821
4686
  },
4822
- "task.delete": { taskId: q },
4687
+ "task.delete": { taskId: K },
4823
4688
  "task.connector.connection.set": {
4824
- taskId: q,
4825
- before: q.optional(),
4826
- value: q.optional()
4689
+ taskId: K,
4690
+ before: K.optional(),
4691
+ value: K.optional()
4827
4692
  },
4828
4693
  "task.agent.set": {
4829
- taskId: q,
4830
- before: Xc,
4831
- value: Xc
4694
+ taskId: K,
4695
+ before: Wc,
4696
+ value: Wc
4832
4697
  },
4833
4698
  "task.llm.mode.set": {
4834
- taskId: q,
4835
- before: G(["chat", "json"]),
4836
- value: G(["chat", "json"])
4699
+ taskId: K,
4700
+ before: W(["chat", "json"]),
4701
+ value: W(["chat", "json"])
4837
4702
  },
4838
4703
  "task.name.set": {
4839
- taskId: q,
4840
- before: q,
4841
- value: q
4704
+ taskId: K,
4705
+ before: K,
4706
+ value: K
4842
4707
  }
4843
4708
  };
4844
- V(U([...new Map(Object.entries(ml).map(([e, t]) => [e, t instanceof L ? t : H({
4845
- kind: K(e),
4709
+ B(H([...new Map(Object.entries(cl).map(([e, t]) => [e, t instanceof I ? t : V({
4710
+ kind: G(e),
4846
4711
  ...t
4847
4712
  })])).values()])).min(1);
4848
4713
  //#endregion
4849
4714
  //#region src/flow/common/change.ts
4850
- var hl = /* @__PURE__ */ new Set([
4715
+ var ll = /* @__PURE__ */ new Set([
4851
4716
  "const",
4852
4717
  "enum",
4853
4718
  "exclusiveMaximum",
@@ -4865,10 +4730,10 @@ var hl = /* @__PURE__ */ new Set([
4865
4730
  "required",
4866
4731
  "type"
4867
4732
  ]);
4868
- function gl(e) {
4869
- return hl.has(e);
4733
+ function ul(e) {
4734
+ return ll.has(e);
4870
4735
  }
4871
- function _l(e) {
4736
+ function dl(e) {
4872
4737
  let t = e.trim();
4873
4738
  if (t.length == 0) return "empty";
4874
4739
  if (t.length > 80) return "tooLong";
@@ -4878,10 +4743,10 @@ function _l(e) {
4878
4743
  }
4879
4744
  if (!/^[\p{L}\p{N}](?:[\p{L}\p{N} _-]*[\p{L}\p{N}])?$/u.test(t)) return "specialCharacter";
4880
4745
  }
4881
- function vl(e) {
4746
+ function fl(e) {
4882
4747
  return Object.fromEntries(e.flatMap((e) => "handle" in e ? [[e.handle, e]] : []));
4883
4748
  }
4884
- function yl(e) {
4749
+ function pl(e) {
4885
4750
  if (!Array.isArray(e)) throw TypeError("Connector capabilities must be an array.");
4886
4751
  let t = /* @__PURE__ */ new Set();
4887
4752
  return e.map((e) => {
@@ -4917,40 +4782,40 @@ function yl(e) {
4917
4782
  };
4918
4783
  });
4919
4784
  }
4920
- function bl(e) {
4785
+ function ml(e) {
4921
4786
  return e.trim().normalize("NFC");
4922
4787
  }
4923
- function xl(e, t) {
4924
- let n = bl(e), r = new Set([...t].map(bl));
4788
+ function hl(e, t) {
4789
+ let n = ml(e), r = new Set([...t].map(ml));
4925
4790
  if (!r.has(n)) return n;
4926
4791
  let i = /^(.*) \((\d+)\)$/.exec(n), a = i?.[2], o = a != null && Number(a) >= 2 ? Number(a) : void 0, s = o == null ? n : i?.[1] ?? n, c = o == null ? 2 : o + 1;
4927
4792
  for (; r.has(`${s} (${c})`);) c += 1;
4928
4793
  return `${s} (${c})`;
4929
4794
  }
4930
- function Sl(e, t, n) {
4931
- let r = bl(n);
4932
- return r.length == 0 ? "empty" : Object.entries(e.nodes).some(([e, n]) => e != t && n.name != null && bl(n.name) == r) ? "duplicate" : void 0;
4795
+ function gl(e, t, n) {
4796
+ let r = ml(n);
4797
+ return r.length == 0 ? "empty" : Object.entries(e.nodes).some(([e, n]) => e != t && n.name != null && ml(n.name) == r) ? "duplicate" : void 0;
4933
4798
  }
4934
- var Cl = class extends Error {
4799
+ var _l = class extends Error {
4935
4800
  constructor(e) {
4936
4801
  super(e), this.name = "FlowChangeError";
4937
4802
  }
4938
4803
  };
4939
- function Z(e) {
4940
- throw new Cl(e);
4804
+ function X(e) {
4805
+ throw new _l(e);
4941
4806
  }
4942
- function Q(e, t) {
4807
+ function Z(e, t) {
4943
4808
  if (t.kind == "flow") return e.graph;
4944
4809
  let n = e.subflows[t.id];
4945
- return n ?? Z("The target Subflow does not exist."), n.graph;
4810
+ return n ?? X("The target Subflow does not exist."), n.graph;
4946
4811
  }
4947
- function $(e, t, n) {
4812
+ function Q(e, t, n) {
4948
4813
  if (t.kind == "flow") return {
4949
4814
  ...e,
4950
4815
  graph: n
4951
4816
  };
4952
4817
  let r = e.subflows[t.id];
4953
- return r ?? Z("The target Subflow does not exist."), {
4818
+ return r ?? X("The target Subflow does not exist."), {
4954
4819
  ...e,
4955
4820
  subflows: {
4956
4821
  ...e.subflows,
@@ -4961,40 +4826,24 @@ function $(e, t, n) {
4961
4826
  }
4962
4827
  };
4963
4828
  }
4964
- function wl(e, t) {
4965
- if (!("inputs" in e)) return e;
4966
- let n = { ...e.inputs };
4967
- for (let [e, r] of Object.entries(n)) {
4968
- if (r.kind != "sources") continue;
4969
- let i = r.sources.filter((e) => e.kind != "node" || !t.has(e.nodeId));
4970
- i.length == 0 ? delete n[e] : n[e] = {
4971
- kind: "sources",
4972
- sources: i
4973
- };
4974
- }
4975
- return {
4976
- ...e,
4977
- inputs: n
4978
- };
4979
- }
4980
- function Tl(e, t) {
4829
+ function vl(e, t) {
4981
4830
  let n = { ...e.document }, r = { ...e.modules };
4982
4831
  for (let e of t) switch (e.kind) {
4983
4832
  case "binding.create":
4984
- n.bindings[e.bindingId] != null && Z("A Binding with this ID already exists."), n.bindings = {
4833
+ n.bindings[e.bindingId] != null && X("A Binding with this ID already exists."), n.bindings = {
4985
4834
  ...n.bindings,
4986
4835
  [e.bindingId]: e.binding
4987
4836
  };
4988
4837
  break;
4989
4838
  case "binding.delete": {
4990
- n.bindings[e.bindingId] ?? Z("The Binding does not exist.");
4839
+ n.bindings[e.bindingId] ?? X("The Binding does not exist.");
4991
4840
  let t = { ...n.bindings };
4992
4841
  delete t[e.bindingId], n.bindings = t;
4993
4842
  break;
4994
4843
  }
4995
4844
  case "binding.target.set": {
4996
4845
  let t = n.bindings[e.bindingId];
4997
- t ?? Z("The Binding does not exist."), t.target != e.before && Z("The Binding target changed before this operation was applied."), n.bindings = {
4846
+ t ?? X("The Binding does not exist."), t.target != e.before && X("The Binding target changed before this operation was applied."), n.bindings = {
4998
4847
  ...n.bindings,
4999
4848
  [e.bindingId]: {
5000
4849
  ...t,
@@ -5004,31 +4853,31 @@ function Tl(e, t) {
5004
4853
  break;
5005
4854
  }
5006
4855
  case "graph.edge.connect": {
5007
- let t = Q(n, e.target);
5008
- t.nodes[e.edge.source] ?? Z("The source Node does not exist.");
4856
+ let t = Z(n, e.target);
4857
+ t.nodes[e.edge.source] ?? X("The source Node does not exist.");
5009
4858
  let r = t.nodes[e.edge.target];
5010
- (r == null || !("inputs" in r)) && Z("The target Node does not accept execution dependencies."), t.edges.some((t) => v(t, e.edge)) && Z("The Nodes are already connected."), Object.assign(n, $(n, e.target, {
4859
+ (r == null || !("inputs" in r)) && X("The target Node does not accept execution dependencies."), t.edges.some((t) => v(t, e.edge)) && X("The Nodes are already connected."), Object.assign(n, Q(n, e.target, {
5011
4860
  ...t,
5012
4861
  edges: [...t.edges, e.edge]
5013
4862
  }));
5014
4863
  break;
5015
4864
  }
5016
4865
  case "graph.edge.disconnect": {
5017
- let t = Q(n, e.target), r = t.edges.filter((t) => !v(t, e.edge));
5018
- r.length == t.edges.length && Z("The Nodes are not connected."), Object.assign(n, $(n, e.target, {
4866
+ let t = Z(n, e.target), r = t.edges.filter((t) => !v(t, e.edge));
4867
+ r.length == t.edges.length && X("The Nodes are not connected."), Object.assign(n, Q(n, e.target, {
5019
4868
  ...t,
5020
4869
  edges: r
5021
4870
  }));
5022
4871
  break;
5023
4872
  }
5024
4873
  case "graph.node.additional-inputs.set": {
5025
- let t = Q(n, e.target), r = t.nodes[e.nodeId];
5026
- r?.kind != "task" && Z("The Task Node does not exist."), v(r.additionalInputs, e.before) || Z("The Task Node inputs changed before this operation was applied.");
4874
+ let t = Z(n, e.target), r = t.nodes[e.nodeId];
4875
+ r?.kind != "task" && X("The Task Node does not exist."), v(r.additionalInputs, e.before) || X("The Task Node inputs changed before this operation was applied.");
5027
4876
  let { additionalInputs: i, ...a } = r, o = e.value == null ? a : {
5028
4877
  ...a,
5029
4878
  additionalInputs: e.value
5030
4879
  };
5031
- Object.assign(n, $(n, e.target, {
4880
+ Object.assign(n, Q(n, e.target, {
5032
4881
  ...t,
5033
4882
  nodes: {
5034
4883
  ...t.nodes,
@@ -5038,8 +4887,8 @@ function Tl(e, t) {
5038
4887
  break;
5039
4888
  }
5040
4889
  case "graph.node.condition.set": {
5041
- let t = Q(n, e.target), r = t.nodes[e.nodeId];
5042
- r?.kind != "condition" && Z("The Condition Node does not exist."), (!v(r.cases, e.before.cases) || r.defaultOutput != e.before.defaultOutput || !v(r.input, e.before.input)) && Z("The Condition Node changed before this operation was applied.");
4890
+ let t = Z(n, e.target), r = t.nodes[e.nodeId];
4891
+ r?.kind != "condition" && X("The Condition Node does not exist."), (!v(r.cases, e.before.cases) || r.defaultOutput != e.before.defaultOutput || !v(r.input, e.before.input)) && X("The Condition Node changed before this operation was applied.");
5043
4892
  let { defaultOutput: i, ...a } = r, o = e.value.defaultOutput == null ? {
5044
4893
  ...a,
5045
4894
  ...e.value
@@ -5047,7 +4896,7 @@ function Tl(e, t) {
5047
4896
  ...r,
5048
4897
  ...e.value
5049
4898
  };
5050
- Object.assign(n, $(n, e.target, {
4899
+ Object.assign(n, Q(n, e.target, {
5051
4900
  ...t,
5052
4901
  nodes: {
5053
4902
  ...t.nodes,
@@ -5057,15 +4906,15 @@ function Tl(e, t) {
5057
4906
  break;
5058
4907
  }
5059
4908
  case "graph.node.create": {
5060
- let t = Q(n, e.target);
5061
- t.nodes[e.nodeId] != null && Z("A Node with this ID already exists in the target graph."), e.target.kind == "subflow" && !("inputs" in e.node) && Z("Trigger Nodes cannot be created inside a Subflow."), e.node.kind == "manual" && Object.values(t.nodes).some((e) => e.kind == "manual") && Z("A graph can contain only one manual Trigger."), e.node.kind == "task" && e.node.task?.capabilities !== void 0 && yl(e.node.task.capabilities), e.node.name ?? Z("A Node name cannot be empty.");
5062
- let r = bl(e.node.name), i = Sl(t, e.nodeId, r);
5063
- i == "empty" && Z("A Node name cannot be empty."), i == "duplicate" && Z("A Node with this name already exists in the target graph.");
4909
+ let t = Z(n, e.target);
4910
+ t.nodes[e.nodeId] != null && X("A Node with this ID already exists in the target graph."), e.target.kind == "subflow" && !("inputs" in e.node) && X("Trigger Nodes cannot be created inside a Subflow."), e.node.kind == "manual" && Object.values(t.nodes).some((e) => e.kind == "manual") && X("A graph can contain only one manual Trigger."), e.node.kind == "task" && e.node.task?.capabilities !== void 0 && pl(e.node.task.capabilities), e.node.name ?? X("A Node name cannot be empty.");
4911
+ let r = ml(e.node.name), i = gl(t, e.nodeId, r);
4912
+ i == "empty" && X("A Node name cannot be empty."), i == "duplicate" && X("A Node with this name already exists in the target graph.");
5064
4913
  let a = r == e.node.name ? e.node : {
5065
4914
  ...e.node,
5066
4915
  name: r
5067
4916
  };
5068
- Object.assign(n, $(n, e.target, {
4917
+ Object.assign(n, Q(n, e.target, {
5069
4918
  ...t,
5070
4919
  nodes: {
5071
4920
  ...t.nodes,
@@ -5075,38 +4924,26 @@ function Tl(e, t) {
5075
4924
  break;
5076
4925
  }
5077
4926
  case "graph.node.delete": {
5078
- let t = Q(n, e.target);
5079
- t.nodes[e.nodeId] ?? Z("The Node does not exist in the target graph.");
5080
- let r = /* @__PURE__ */ new Set([e.nodeId]), i = Object.fromEntries(Object.entries(t.nodes).flatMap(([e, t]) => r.has(e) ? [] : [[e, wl(t, r)]]));
5081
- if (Object.assign(n, $(n, e.target, {
4927
+ let t = Z(n, e.target);
4928
+ t.nodes[e.nodeId] ?? X("The Node does not exist in the target graph.");
4929
+ let r = /* @__PURE__ */ new Set([e.nodeId]), i = Object.fromEntries(Object.entries(t.nodes).filter(([e]) => !r.has(e)));
4930
+ Object.assign(n, Q(n, e.target, {
5082
4931
  ...t,
5083
4932
  edges: t.edges.filter((e) => !r.has(e.source) && !r.has(e.target)),
5084
4933
  nodes: i
5085
- })), e.target.kind == "subflow") {
5086
- let t = n.subflows[e.target.id], i = t.outputs.map((e) => ({
5087
- ...e,
5088
- sources: e.sources.filter((e) => e.kind != "node" || !r.has(e.nodeId))
5089
- }));
5090
- n.subflows = {
5091
- ...n.subflows,
5092
- [e.target.id]: {
5093
- ...t,
5094
- outputs: i
5095
- }
5096
- };
5097
- }
4934
+ }));
5098
4935
  break;
5099
4936
  }
5100
4937
  case "graph.node.field.set": {
5101
- let t = Q(n, e.target), r = t.nodes[e.nodeId];
5102
- r ?? Z("The Node does not exist in the target graph."), v(Reflect.get(r, e.field), e.before) || Z("The Node field changed before this operation was applied.");
4938
+ let t = Z(n, e.target), r = t.nodes[e.nodeId];
4939
+ r ?? X("The Node does not exist in the target graph."), v(Reflect.get(r, e.field), e.before) || X("The Node field changed before this operation was applied.");
5103
4940
  let i = { ...r };
5104
4941
  if (e.field == "name") {
5105
- typeof e.value != "string" && Z("A Node name cannot be empty.");
5106
- let n = bl(e.value), r = Sl(t, e.nodeId, n);
5107
- r == "empty" && Z("A Node name cannot be empty."), r == "duplicate" && Z("A Node with this name already exists in the target graph."), Object.assign(i, { name: n });
4942
+ typeof e.value != "string" && X("A Node name cannot be empty.");
4943
+ let n = ml(e.value), r = gl(t, e.nodeId, n);
4944
+ r == "empty" && X("A Node name cannot be empty."), r == "duplicate" && X("A Node with this name already exists in the target graph."), Object.assign(i, { name: n });
5108
4945
  } else e.value == null ? Reflect.deleteProperty(i, e.field) : Object.assign(i, { [e.field]: e.value });
5109
- Object.assign(n, $(n, e.target, {
4946
+ Object.assign(n, Q(n, e.target, {
5110
4947
  ...t,
5111
4948
  nodes: {
5112
4949
  ...t.nodes,
@@ -5116,10 +4953,10 @@ function Tl(e, t) {
5116
4953
  break;
5117
4954
  }
5118
4955
  case "graph.node.input.set": {
5119
- let t = Q(n, e.target), r = t.nodes[e.nodeId];
5120
- (r == null || !("inputs" in r)) && Z("The Node does not accept inputs."), v(r.inputs[e.handle], e.before) || Z("The Node input changed before this operation was applied.");
4956
+ let t = Z(n, e.target), r = t.nodes[e.nodeId];
4957
+ (r == null || !("inputs" in r)) && X("The Node does not accept inputs."), v(r.inputs[e.handle], e.before) || X("The Node input changed before this operation was applied.");
5121
4958
  let i = { ...r.inputs };
5122
- e.value == null ? delete i[e.handle] : i[e.handle] = e.value, Object.assign(n, $(n, e.target, {
4959
+ e.value == null ? delete i[e.handle] : i[e.handle] = e.value, Object.assign(n, Q(n, e.target, {
5123
4960
  ...t,
5124
4961
  nodes: {
5125
4962
  ...t.nodes,
@@ -5132,10 +4969,10 @@ function Tl(e, t) {
5132
4969
  break;
5133
4970
  }
5134
4971
  case "graph.node.task.capabilities.set": {
5135
- let t = Q(n, e.target), r = t.nodes[e.nodeId];
5136
- (r?.kind != "task" || r.task == null) && Z("The inline Task Node does not exist."), v(r.task.capabilities, e.before) || Z("The inline Task capabilities changed before this operation was applied.");
4972
+ let t = Z(n, e.target), r = t.nodes[e.nodeId];
4973
+ (r?.kind != "task" || r.task == null) && X("The inline Task Node does not exist."), v(r.task.capabilities, e.before) || X("The inline Task capabilities changed before this operation was applied.");
5137
4974
  let i = { ...r.task };
5138
- e.value === void 0 ? delete i.capabilities : i.capabilities = yl(e.value), Object.assign(n, $(n, e.target, {
4975
+ e.value === void 0 ? delete i.capabilities : i.capabilities = pl(e.value), Object.assign(n, Q(n, e.target, {
5139
4976
  ...t,
5140
4977
  nodes: {
5141
4978
  ...t.nodes,
@@ -5148,8 +4985,8 @@ function Tl(e, t) {
5148
4985
  break;
5149
4986
  }
5150
4987
  case "graph.node.task.name.set": {
5151
- let t = Q(n, e.target), r = t.nodes[e.nodeId];
5152
- (r?.kind != "task" || r.task == null) && Z("The inline Task Node does not exist."), r.task.name != e.before && Z("The inline Task name changed before this operation was applied.");
4988
+ let t = Z(n, e.target), r = t.nodes[e.nodeId];
4989
+ (r?.kind != "task" || r.task == null) && X("The inline Task Node does not exist."), r.task.name != e.before && X("The inline Task name changed before this operation was applied.");
5153
4990
  let i = {
5154
4991
  ...r,
5155
4992
  task: {
@@ -5157,7 +4994,7 @@ function Tl(e, t) {
5157
4994
  name: e.value
5158
4995
  }
5159
4996
  };
5160
- Object.assign(n, $(n, e.target, {
4997
+ Object.assign(n, Q(n, e.target, {
5161
4998
  ...t,
5162
4999
  nodes: {
5163
5000
  ...t.nodes,
@@ -5167,11 +5004,11 @@ function Tl(e, t) {
5167
5004
  break;
5168
5005
  }
5169
5006
  case "graph.node.task.ports.set": {
5170
- let t = Q(n, e.target), r = t.nodes[e.nodeId];
5171
- (r?.kind != "task" || r.task == null) && Z("The inline Task Node does not exist."), v({
5007
+ let t = Z(n, e.target), r = t.nodes[e.nodeId];
5008
+ (r?.kind != "task" || r.task == null) && X("The inline Task Node does not exist."), v({
5172
5009
  inputs: r.task.inputs,
5173
5010
  outputs: r.task.outputs
5174
- }, e.before) || Z("The inline Task ports changed before this operation was applied.");
5011
+ }, e.before) || X("The inline Task ports changed before this operation was applied.");
5175
5012
  let i = {
5176
5013
  ...r,
5177
5014
  task: {
@@ -5180,7 +5017,7 @@ function Tl(e, t) {
5180
5017
  outputs: e.value.outputs
5181
5018
  }
5182
5019
  };
5183
- Object.assign(n, $(n, e.target, {
5020
+ Object.assign(n, Q(n, e.target, {
5184
5021
  ...t,
5185
5022
  nodes: {
5186
5023
  ...t.nodes,
@@ -5190,8 +5027,8 @@ function Tl(e, t) {
5190
5027
  break;
5191
5028
  }
5192
5029
  case "graph.node.values.set": {
5193
- let t = Q(n, e.target), r = t.nodes[e.nodeId];
5194
- r?.kind != "value" && Z("The Value Node does not exist."), v(r.values, e.before) || Z("The Value Node changed before this operation was applied."), Object.assign(n, $(n, e.target, {
5030
+ let t = Z(n, e.target), r = t.nodes[e.nodeId];
5031
+ r?.kind != "value" && X("The Value Node does not exist."), v(r.values, e.before) || X("The Value Node changed before this operation was applied."), Object.assign(n, Q(n, e.target, {
5195
5032
  ...t,
5196
5033
  nodes: {
5197
5034
  ...t.nodes,
@@ -5203,12 +5040,9 @@ function Tl(e, t) {
5203
5040
  }));
5204
5041
  break;
5205
5042
  }
5206
- case "graph.node.wait.set": {
5043
+ case "graph.node.resolution.set": {
5207
5044
  let t = n.graph, r = t.nodes[e.nodeId];
5208
- (r?.kind != "wait" || !v({
5209
- actions: r.actions,
5210
- prompt: r.prompt
5211
- }, e.before)) && Z("The Wait Node changed before this operation was applied.");
5045
+ (r?.kind != "wait" && r?.kind != "approval" || !v({ prompt: r.prompt }, e.before)) && X("The resolution node changed before this operation was applied.");
5212
5046
  let i = {
5213
5047
  ...r,
5214
5048
  ...e.value
@@ -5223,8 +5057,8 @@ function Tl(e, t) {
5223
5057
  break;
5224
5058
  }
5225
5059
  case "graph.node.webhook.set": {
5226
- let t = Q(n, e.target), r = t.nodes[e.nodeId];
5227
- r?.kind != "webhook" && Z("The Webhook Node does not exist."), (!v(r.bodyFields, e.before.bodyFields) || !v(r.options, e.before.options)) && Z("The Webhook Node changed before this operation was applied.");
5060
+ let t = Z(n, e.target), r = t.nodes[e.nodeId];
5061
+ r?.kind != "webhook" && X("The Webhook Node does not exist."), (!v(r.bodyFields, e.before.bodyFields) || !v(r.options, e.before.options)) && X("The Webhook Node changed before this operation was applied.");
5228
5062
  let { options: i, ...a } = r, o = e.value.options == null ? {
5229
5063
  ...a,
5230
5064
  bodyFields: e.value.bodyFields
@@ -5232,7 +5066,7 @@ function Tl(e, t) {
5232
5066
  ...r,
5233
5067
  ...e.value
5234
5068
  };
5235
- Object.assign(n, $(n, e.target, {
5069
+ Object.assign(n, Q(n, e.target, {
5236
5070
  ...t,
5237
5071
  nodes: {
5238
5072
  ...t.nodes,
@@ -5243,7 +5077,7 @@ function Tl(e, t) {
5243
5077
  }
5244
5078
  case "graph.trigger.config.set": {
5245
5079
  let t = n.graph, r = t.nodes[e.nodeId];
5246
- (r == null || r.kind != "integration" && r.kind != "poll") && Z("The configurable Trigger Node does not exist."), v(r.config[e.name], e.before) || Z("The Trigger configuration changed before this operation was applied.");
5080
+ (r == null || r.kind != "integration" && r.kind != "poll") && X("The configurable Trigger Node does not exist."), v(r.config[e.name], e.before) || X("The Trigger configuration changed before this operation was applied.");
5247
5081
  let i = { ...r.config };
5248
5082
  e.value === void 0 ? delete i[e.name] : i[e.name] = e.value, n.graph = {
5249
5083
  ...t,
@@ -5259,9 +5093,9 @@ function Tl(e, t) {
5259
5093
  }
5260
5094
  case "graph.trigger.schedule.set": {
5261
5095
  let t = n.graph, r = t.nodes[e.nodeId];
5262
- (r == null || r.kind != "cron" && r.kind != "poll") && Z("The scheduled Trigger Node does not exist.");
5096
+ (r == null || r.kind != "cron" && r.kind != "poll") && X("The scheduled Trigger Node does not exist.");
5263
5097
  let i = r.kind == "cron" ? r.cronTimes : r.pollTimes;
5264
- v(i, e.before) || Z("The Trigger schedule changed before this operation was applied.");
5098
+ v(i, e.before) || X("The Trigger schedule changed before this operation was applied.");
5265
5099
  let a = r.kind == "cron" ? {
5266
5100
  ...r,
5267
5101
  cronTimes: e.value
@@ -5279,14 +5113,14 @@ function Tl(e, t) {
5279
5113
  break;
5280
5114
  }
5281
5115
  case "module.create":
5282
- r[e.moduleId] != null && Z("A CodeModule with this ID already exists."), r[e.moduleId] = e.module;
5116
+ r[e.moduleId] != null && X("A CodeModule with this ID already exists."), r[e.moduleId] = e.module;
5283
5117
  break;
5284
5118
  case "module.delete":
5285
- r[e.moduleId] ?? Z("The CodeModule does not exist."), delete r[e.moduleId];
5119
+ r[e.moduleId] ?? X("The CodeModule does not exist."), delete r[e.moduleId];
5286
5120
  break;
5287
5121
  case "module.rename": {
5288
5122
  let t = r[e.moduleId];
5289
- t ?? Z("The CodeModule does not exist."), t.name != e.before && Z("The CodeModule name changed before this operation was applied."), r[e.moduleId] = {
5123
+ t ?? X("The CodeModule does not exist."), t.name != e.before && X("The CodeModule name changed before this operation was applied."), r[e.moduleId] = {
5290
5124
  ...t,
5291
5125
  name: e.name
5292
5126
  };
@@ -5294,7 +5128,7 @@ function Tl(e, t) {
5294
5128
  }
5295
5129
  case "module.source.replace": {
5296
5130
  let t = r[e.moduleId];
5297
- t ?? Z("The CodeModule does not exist."), (t.source != e.beforeSource || !v(t.imports, e.beforeImports)) && Z("The CodeModule source changed before this operation was applied."), r[e.moduleId] = {
5131
+ t ?? X("The CodeModule does not exist."), (t.source != e.beforeSource || !v(t.imports, e.beforeImports)) && X("The CodeModule source changed before this operation was applied."), r[e.moduleId] = {
5298
5132
  ...t,
5299
5133
  imports: e.imports,
5300
5134
  source: e.source
@@ -5302,8 +5136,8 @@ function Tl(e, t) {
5302
5136
  break;
5303
5137
  }
5304
5138
  case "subflow.create":
5305
- n.subflows[e.subflowId] != null && Z("A Subflow with this ID already exists.");
5306
- for (let t of Object.values(e.subflow.graph.nodes)) t.kind == "task" && t.task?.capabilities !== void 0 && yl(t.task.capabilities);
5139
+ n.subflows[e.subflowId] != null && X("A Subflow with this ID already exists.");
5140
+ for (let t of Object.values(e.subflow.graph.nodes)) t.kind == "task" && t.task?.capabilities !== void 0 && pl(t.task.capabilities);
5307
5141
  n.subflows = {
5308
5142
  ...n.subflows,
5309
5143
  [e.subflowId]: e.subflow
@@ -5311,11 +5145,11 @@ function Tl(e, t) {
5311
5145
  break;
5312
5146
  case "subflow.definition.set": {
5313
5147
  let t = n.subflows[e.subflowId];
5314
- t ?? Z("The Subflow does not exist."), v({
5148
+ t ?? X("The Subflow does not exist."), v({
5315
5149
  inputs: t.inputs,
5316
5150
  name: t.name,
5317
5151
  outputs: t.outputs
5318
- }, e.before) || Z("The Subflow definition changed before this operation was applied."), n.subflows = {
5152
+ }, e.before) || X("The Subflow definition changed before this operation was applied."), n.subflows = {
5319
5153
  ...n.subflows,
5320
5154
  [e.subflowId]: {
5321
5155
  ...e.definition,
@@ -5325,20 +5159,20 @@ function Tl(e, t) {
5325
5159
  break;
5326
5160
  }
5327
5161
  case "subflow.delete": {
5328
- n.subflows[e.subflowId] ?? Z("The Subflow does not exist.");
5162
+ n.subflows[e.subflowId] ?? X("The Subflow does not exist.");
5329
5163
  let t = { ...n.subflows };
5330
5164
  delete t[e.subflowId], n.subflows = t;
5331
5165
  break;
5332
5166
  }
5333
5167
  case "task.create":
5334
- n.tasks[e.taskId] != null && Z("A Task with this ID already exists."), n.tasks = {
5168
+ n.tasks[e.taskId] != null && X("A Task with this ID already exists."), n.tasks = {
5335
5169
  ...n.tasks,
5336
5170
  [e.taskId]: e.task
5337
5171
  };
5338
5172
  break;
5339
5173
  case "task.connector.connection.set": {
5340
5174
  let t = n.tasks[e.taskId];
5341
- (t == null || !("executor" in t) || t.executor.kind != "connector") && Z("The Connector Task does not exist."), t.executor.connectionId != e.before && Z("The Connector Task connection changed before this operation was applied.");
5175
+ (t == null || !("executor" in t) || t.executor.kind != "connector") && X("The Connector Task does not exist."), t.executor.connectionId != e.before && X("The Connector Task connection changed before this operation was applied.");
5342
5176
  let { connectionId: r, ...i } = t.executor, a = e.value == null ? i : {
5343
5177
  ...i,
5344
5178
  connectionId: e.value
@@ -5353,14 +5187,14 @@ function Tl(e, t) {
5353
5187
  break;
5354
5188
  }
5355
5189
  case "task.delete": {
5356
- n.tasks[e.taskId] ?? Z("The Task does not exist.");
5190
+ n.tasks[e.taskId] ?? X("The Task does not exist.");
5357
5191
  let t = { ...n.tasks };
5358
5192
  delete t[e.taskId], n.tasks = t;
5359
5193
  break;
5360
5194
  }
5361
5195
  case "task.agent.set": {
5362
5196
  let t = n.tasks[e.taskId];
5363
- (t?.executor.kind != "agent" || e.value.executor.kind != "agent") && Z("The Agent Task does not exist."), v(t, e.before) || Z("The Agent Task changed before this operation was applied."), n.tasks = {
5197
+ (t?.executor.kind != "agent" || e.value.executor.kind != "agent") && X("The Agent Task does not exist."), v(t, e.before) || X("The Agent Task changed before this operation was applied."), n.tasks = {
5364
5198
  ...n.tasks,
5365
5199
  [e.taskId]: e.value
5366
5200
  };
@@ -5368,7 +5202,7 @@ function Tl(e, t) {
5368
5202
  }
5369
5203
  case "task.llm.mode.set": {
5370
5204
  let t = n.tasks[e.taskId];
5371
- (t == null || !("executor" in t) || t.executor.kind != "llm") && Z("The LLM Task does not exist."), t.executor.mode != e.before && Z("The LLM Task mode changed before this operation was applied."), n.tasks = {
5205
+ (t == null || !("executor" in t) || t.executor.kind != "llm") && X("The LLM Task does not exist."), t.executor.mode != e.before && X("The LLM Task mode changed before this operation was applied."), n.tasks = {
5372
5206
  ...n.tasks,
5373
5207
  [e.taskId]: {
5374
5208
  ...t,
@@ -5382,7 +5216,7 @@ function Tl(e, t) {
5382
5216
  }
5383
5217
  case "task.name.set": {
5384
5218
  let t = n.tasks[e.taskId];
5385
- t ?? Z("The Task does not exist."), t.name != e.before && Z("The Task name changed before this operation was applied."), n.tasks = {
5219
+ t ?? X("The Task does not exist."), t.name != e.before && X("The Task name changed before this operation was applied."), n.tasks = {
5386
5220
  ...n.tasks,
5387
5221
  [e.taskId]: {
5388
5222
  ...t,
@@ -5400,14 +5234,14 @@ function Tl(e, t) {
5400
5234
  }
5401
5235
  //#endregion
5402
5236
  //#region src/ui/browser/field.tsx
5403
- function El({ className: e, ...t }) {
5237
+ function yl({ className: e, ...t }) {
5404
5238
  return /* @__PURE__ */ b("div", {
5405
5239
  "data-slot": "field-group",
5406
5240
  className: a("group/field-group @container/field-group flex w-full flex-col gap-5 data-[slot=checkbox-group]:gap-3 *:data-[slot=field-group]:gap-4", e),
5407
5241
  ...t
5408
5242
  });
5409
5243
  }
5410
- var Dl = m("group/field flex w-full gap-2 data-[invalid=true]:text-destructive", {
5244
+ var bl = m("group/field flex w-full gap-2 data-[invalid=true]:text-destructive", {
5411
5245
  variants: { orientation: {
5412
5246
  vertical: "flex-col *:w-full [&>.sr-only]:w-auto",
5413
5247
  horizontal: "flex-row items-center has-[>[data-slot=field-content]]:items-start *:data-[slot=field-label]:flex-auto has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px",
@@ -5415,30 +5249,30 @@ var Dl = m("group/field flex w-full gap-2 data-[invalid=true]:text-destructive",
5415
5249
  } },
5416
5250
  defaultVariants: { orientation: "vertical" }
5417
5251
  });
5418
- function Ol({ className: e, orientation: t = "vertical", ...n }) {
5252
+ function xl({ className: e, orientation: t = "vertical", ...n }) {
5419
5253
  return /* @__PURE__ */ b("div", {
5420
5254
  role: "group",
5421
5255
  "data-slot": "field",
5422
5256
  "data-orientation": t,
5423
- className: a(Dl({ orientation: t }), e),
5257
+ className: a(bl({ orientation: t }), e),
5424
5258
  ...n
5425
5259
  });
5426
5260
  }
5427
- function kl({ className: e, ...t }) {
5261
+ function Sl({ className: e, ...t }) {
5428
5262
  return /* @__PURE__ */ b(Ne, {
5429
5263
  "data-slot": "field-label",
5430
5264
  className: a("group/field-label peer/field-label flex w-fit gap-2 leading-snug group-data-[disabled=true]/field:opacity-50 has-data-checked:border-primary/30 has-data-checked:bg-primary/5 has-[>[data-slot=field]]:rounded-lg has-[>[data-slot=field]]:border has-[>[data-slot=field]]:not-has-[:disabled,[data-disabled]]:hover:bg-muted/50 has-[>[data-slot=field]]:has-[:focus-visible]:outline-2 has-[>[data-slot=field]]:has-[:focus-visible]:outline-solid has-[>[data-slot=field]]:has-[:focus-visible]:ring-0 has-[>[data-slot=field]]:has-[:focus-visible]:outline-offset-1 has-[>[data-slot=field]]:has-[:focus-visible]:outline-ring *:data-[slot=field]:p-2.5 dark:has-data-checked:border-primary/20 dark:has-data-checked:bg-primary/10", "has-[>[data-slot=field]]:w-full has-[>[data-slot=field]]:flex-col", e),
5431
5265
  ...t
5432
5266
  });
5433
5267
  }
5434
- function Al({ className: e, ...t }) {
5268
+ function Cl({ className: e, ...t }) {
5435
5269
  return /* @__PURE__ */ b("p", {
5436
5270
  "data-slot": "field-description",
5437
5271
  className: a("text-left text-sm leading-normal font-normal text-muted-foreground group-has-data-horizontal/field:text-balance [[data-variant=legend]+&]:-mt-1.5", "last:mt-0 nth-last-2:-mt-1", "[&>a]:underline [&>a]:underline-offset-4 [&>a:hover]:text-primary", e),
5438
5272
  ...t
5439
5273
  });
5440
5274
  }
5441
- function jl({ className: e, children: t, errors: n, ...r }) {
5275
+ function wl({ className: e, children: t, errors: n, ...r }) {
5442
5276
  let i = ke(() => {
5443
5277
  if (t) return t;
5444
5278
  if (!n?.length) return null;
@@ -5458,7 +5292,7 @@ function jl({ className: e, children: t, errors: n, ...r }) {
5458
5292
  }
5459
5293
  //#endregion
5460
5294
  //#region src/ui/browser/spinner.tsx
5461
- function Ml({ className: e, ...t }) {
5295
+ function Tl({ className: e, ...t }) {
5462
5296
  return /* @__PURE__ */ b(Ae, {
5463
5297
  "data-slot": "spinner",
5464
5298
  role: "status",
@@ -5469,27 +5303,27 @@ function Ml({ className: e, ...t }) {
5469
5303
  }
5470
5304
  //#endregion
5471
5305
  //#region ../../node_modules/.bun/@base-ui+react@1.4.1+fa6c2f29eeb10566/node_modules/@base-ui/react/esm/dialog/root/DialogRootContext.js
5472
- var Nl = /*#__PURE__*/ S.createContext(void 0);
5473
- process.env.NODE_ENV !== "production" && (Nl.displayName = "DialogRootContext");
5474
- function Pl(e) {
5475
- let t = S.useContext(Nl);
5306
+ var El = /*#__PURE__*/ S.createContext(void 0);
5307
+ process.env.NODE_ENV !== "production" && (El.displayName = "DialogRootContext");
5308
+ function $(e) {
5309
+ let t = S.useContext(El);
5476
5310
  if (e === !1 && t === void 0) throw Error(process.env.NODE_ENV === "production" ? ce(27) : "Base UI: DialogRootContext is missing. Dialog parts must be placed within <Dialog.Root>.");
5477
5311
  return t;
5478
5312
  }
5479
5313
  //#endregion
5480
5314
  //#region ../../node_modules/.bun/@base-ui+react@1.4.1+fa6c2f29eeb10566/node_modules/@base-ui/react/esm/dialog/backdrop/DialogBackdrop.js
5481
- var Fl = {
5315
+ var Dl = {
5482
5316
  ...h,
5483
5317
  ...ue
5484
- }, Il = /*#__PURE__*/ S.forwardRef(function(e, t) {
5485
- let { render: n, className: r, style: a, forceRender: o = !1, ...s } = e, { store: c } = Pl(), l = c.useState("open"), u = c.useState("nested"), d = c.useState("mounted"), f = {
5318
+ }, Ol = /*#__PURE__*/ S.forwardRef(function(e, t) {
5319
+ let { render: n, className: r, style: a, forceRender: o = !1, ...s } = e, { store: c } = $(), l = c.useState("open"), u = c.useState("nested"), d = c.useState("mounted"), f = {
5486
5320
  open: l,
5487
5321
  transitionStatus: c.useState("transitionStatus")
5488
5322
  };
5489
5323
  return i("div", e, {
5490
5324
  state: f,
5491
5325
  ref: [c.context.backdropRef, t],
5492
- stateAttributesMapping: Fl,
5326
+ stateAttributesMapping: Dl,
5493
5327
  props: [{
5494
5328
  role: "presentation",
5495
5329
  hidden: !d,
@@ -5501,11 +5335,11 @@ var Fl = {
5501
5335
  enabled: o || !u
5502
5336
  });
5503
5337
  });
5504
- process.env.NODE_ENV !== "production" && (Il.displayName = "DialogBackdrop");
5338
+ process.env.NODE_ENV !== "production" && (Ol.displayName = "DialogBackdrop");
5505
5339
  //#endregion
5506
5340
  //#region ../../node_modules/.bun/@base-ui+react@1.4.1+fa6c2f29eeb10566/node_modules/@base-ui/react/esm/dialog/close/DialogClose.js
5507
- var Ll = /*#__PURE__*/ S.forwardRef(function(e, t) {
5508
- let { render: n, className: r, disabled: a = !1, nativeButton: o = !0, style: s, ...c } = e, { store: l } = Pl(), u = l.useState("open");
5341
+ var kl = /*#__PURE__*/ S.forwardRef(function(e, t) {
5342
+ let { render: n, className: r, disabled: a = !1, nativeButton: o = !0, style: s, ...c } = e, { store: l } = $(), u = l.useState("open");
5509
5343
  function d(e) {
5510
5344
  u && l.setOpen(!1, fe(re, e.nativeEvent));
5511
5345
  }
@@ -5523,41 +5357,41 @@ var Ll = /*#__PURE__*/ S.forwardRef(function(e, t) {
5523
5357
  ]
5524
5358
  });
5525
5359
  });
5526
- process.env.NODE_ENV !== "production" && (Ll.displayName = "DialogClose");
5360
+ process.env.NODE_ENV !== "production" && (kl.displayName = "DialogClose");
5527
5361
  //#endregion
5528
5362
  //#region ../../node_modules/.bun/@base-ui+react@1.4.1+fa6c2f29eeb10566/node_modules/@base-ui/react/esm/dialog/description/DialogDescription.js
5529
- var Rl = /*#__PURE__*/ S.forwardRef(function(e, t) {
5530
- let { render: n, className: r, style: a, id: o, ...s } = e, { store: c } = Pl(), l = d(o);
5363
+ var Al = /*#__PURE__*/ S.forwardRef(function(e, t) {
5364
+ let { render: n, className: r, style: a, id: o, ...s } = e, { store: c } = $(), l = d(o);
5531
5365
  return c.useSyncedValueWithCleanup("descriptionElementId", l), i("p", e, {
5532
5366
  ref: t,
5533
5367
  props: [{ id: l }, s]
5534
5368
  });
5535
5369
  });
5536
- process.env.NODE_ENV !== "production" && (Rl.displayName = "DialogDescription");
5370
+ process.env.NODE_ENV !== "production" && (Al.displayName = "DialogDescription");
5537
5371
  //#endregion
5538
5372
  //#region ../../node_modules/.bun/@base-ui+react@1.4.1+fa6c2f29eeb10566/node_modules/@base-ui/react/esm/dialog/popup/DialogPopupCssVars.js
5539
- var zl = /*#__PURE__*/ function(e) {
5373
+ var jl = /*#__PURE__*/ function(e) {
5540
5374
  return e.nestedDialogs = "--nested-dialogs", e;
5541
- }({}), Bl = function(e) {
5375
+ }({}), Ml = function(e) {
5542
5376
  return e[e.open = Oe.open] = "open", e[e.closed = Oe.closed] = "closed", e[e.startingStyle = Oe.startingStyle] = "startingStyle", e[e.endingStyle = Oe.endingStyle] = "endingStyle", e.nested = "data-nested", e.nestedDialogOpen = "data-nested-dialog-open", e;
5543
- }({}), Vl = /*#__PURE__*/ S.createContext(void 0);
5544
- process.env.NODE_ENV !== "production" && (Vl.displayName = "DialogPortalContext");
5545
- function Hl() {
5546
- let e = S.useContext(Vl);
5377
+ }({}), Nl = /*#__PURE__*/ S.createContext(void 0);
5378
+ process.env.NODE_ENV !== "production" && (Nl.displayName = "DialogPortalContext");
5379
+ function Pl() {
5380
+ let e = S.useContext(Nl);
5547
5381
  if (e === void 0) throw Error(process.env.NODE_ENV === "production" ? ce(26) : "Base UI: <Dialog.Portal> is missing.");
5548
5382
  return e;
5549
5383
  }
5550
5384
  //#endregion
5551
5385
  //#region ../../node_modules/.bun/@base-ui+react@1.4.1+fa6c2f29eeb10566/node_modules/@base-ui/react/esm/dialog/popup/DialogPopup.js
5552
- var Ul = {
5386
+ var Fl = {
5553
5387
  ...h,
5554
5388
  ...ue,
5555
5389
  nestedDialogOpen(e) {
5556
- return e ? { [Bl.nestedDialogOpen]: "" } : null;
5390
+ return e ? { [Ml.nestedDialogOpen]: "" } : null;
5557
5391
  }
5558
- }, Wl = /*#__PURE__*/ S.forwardRef(function(e, t) {
5559
- let { className: n, finalFocus: r, initialFocus: a, render: o, style: s, ...c } = e, { store: l } = Pl(), u = l.useState("descriptionElementId"), d = l.useState("disablePointerDismissal"), f = l.useState("floatingRootContext"), p = l.useState("popupProps"), m = l.useState("modal"), h = l.useState("mounted"), g = l.useState("nested"), _ = l.useState("nestedOpenDialogCount"), ee = l.useState("open"), te = l.useState("openMethod"), ne = l.useState("titleElementId"), re = l.useState("transitionStatus"), ie = l.useState("role");
5560
- Hl(), _e({
5392
+ }, Il = /*#__PURE__*/ S.forwardRef(function(e, t) {
5393
+ let { className: n, finalFocus: r, initialFocus: a, render: o, style: s, ...c } = e, { store: l } = $(), u = l.useState("descriptionElementId"), d = l.useState("disablePointerDismissal"), f = l.useState("floatingRootContext"), p = l.useState("popupProps"), m = l.useState("modal"), h = l.useState("mounted"), g = l.useState("nested"), _ = l.useState("nestedOpenDialogCount"), ee = l.useState("open"), te = l.useState("openMethod"), ne = l.useState("titleElementId"), re = l.useState("transitionStatus"), ie = l.useState("role");
5394
+ Pl(), _e({
5561
5395
  open: ee,
5562
5396
  ref: l.context.popupRef,
5563
5397
  onComplete() {
@@ -5585,7 +5419,7 @@ var Ul = {
5585
5419
  onKeyDown(e) {
5586
5420
  Te.has(e.key) && e.stopPropagation();
5587
5421
  },
5588
- style: { [zl.nestedDialogs]: _ }
5422
+ style: { [jl.nestedDialogs]: _ }
5589
5423
  },
5590
5424
  c
5591
5425
  ],
@@ -5594,7 +5428,7 @@ var Ul = {
5594
5428
  l.context.popupRef,
5595
5429
  l.useStateSetter("popupElement")
5596
5430
  ],
5597
- stateAttributesMapping: Ul
5431
+ stateAttributesMapping: Fl
5598
5432
  });
5599
5433
  return /*#__PURE__*/ b(ae, {
5600
5434
  context: f,
@@ -5608,12 +5442,12 @@ var Ul = {
5608
5442
  children: ce
5609
5443
  });
5610
5444
  });
5611
- process.env.NODE_ENV !== "production" && (Wl.displayName = "DialogPopup");
5445
+ process.env.NODE_ENV !== "production" && (Il.displayName = "DialogPopup");
5612
5446
  //#endregion
5613
5447
  //#region ../../node_modules/.bun/@base-ui+react@1.4.1+fa6c2f29eeb10566/node_modules/@base-ui/react/esm/dialog/portal/DialogPortal.js
5614
- var Gl = /*#__PURE__*/ S.forwardRef(function(e, t) {
5615
- let { keepMounted: n = !1, ...r } = e, { store: i } = Pl(), a = i.useState("mounted"), o = i.useState("modal"), s = i.useState("open");
5616
- return a || n ? /*#__PURE__*/ b(Vl.Provider, {
5448
+ var Ll = /*#__PURE__*/ S.forwardRef(function(e, t) {
5449
+ let { keepMounted: n = !1, ...r } = e, { store: i } = $(), a = i.useState("mounted"), o = i.useState("modal"), s = i.useState("open");
5450
+ return a || n ? /*#__PURE__*/ b(Nl.Provider, {
5617
5451
  value: n,
5618
5452
  children: /*#__PURE__*/ x(de, {
5619
5453
  ref: t,
@@ -5625,10 +5459,10 @@ var Gl = /*#__PURE__*/ S.forwardRef(function(e, t) {
5625
5459
  })
5626
5460
  }) : null;
5627
5461
  });
5628
- process.env.NODE_ENV !== "production" && (Gl.displayName = "DialogPortal");
5462
+ process.env.NODE_ENV !== "production" && (Ll.displayName = "DialogPortal");
5629
5463
  //#endregion
5630
5464
  //#region ../../node_modules/.bun/@base-ui+react@1.4.1+fa6c2f29eeb10566/node_modules/@base-ui/react/esm/dialog/root/useDialogRoot.js
5631
- function Kl(n) {
5465
+ function Rl(n) {
5632
5466
  let { store: r, parentContext: i, actionsRef: a, isDrawer: c } = n, l = r.useState("open"), u = r.useState("disablePointerDismissal"), d = r.useState("modal"), f = r.useState("popupElement"), { openMethod: p, triggerProps: m } = g(l);
5633
5467
  e(r);
5634
5468
  let { forceUnmount: h } = le(l, r), _ = S.useCallback(() => {
@@ -5688,7 +5522,7 @@ function Kl(n) {
5688
5522
  }
5689
5523
  //#endregion
5690
5524
  //#region ../../node_modules/.bun/@base-ui+react@1.4.1+fa6c2f29eeb10566/node_modules/@base-ui/react/esm/dialog/store/DialogStore.js
5691
- var ql = {
5525
+ var zl = {
5692
5526
  ...te,
5693
5527
  modal: r((e) => e.modal),
5694
5528
  nested: r((e) => e.nested),
@@ -5700,9 +5534,9 @@ var ql = {
5700
5534
  titleElementId: r((e) => e.titleElementId),
5701
5535
  viewportElement: r((e) => e.viewportElement),
5702
5536
  role: r((e) => e.role)
5703
- }, Jl = class e extends De {
5537
+ }, Bl = class e extends De {
5704
5538
  constructor(e) {
5705
- super(Yl(e), {
5539
+ super(Vl(e), {
5706
5540
  popupRef: /*#__PURE__*/ S.createRef(),
5707
5541
  backdropRef: /*#__PURE__*/ S.createRef(),
5708
5542
  internalBackdropRef: /*#__PURE__*/ S.createRef(),
@@ -5710,7 +5544,7 @@ var ql = {
5710
5544
  triggerElements: new f(),
5711
5545
  onOpenChange: void 0,
5712
5546
  onOpenChangeComplete: void 0
5713
- }, ql);
5547
+ }, zl);
5714
5548
  }
5715
5549
  setOpen = (e, t) => {
5716
5550
  if (t.preventUnmountOnClose = () => {
@@ -5725,7 +5559,7 @@ var ql = {
5725
5559
  return t ?? r;
5726
5560
  }
5727
5561
  };
5728
- function Yl(e = {}) {
5562
+ function Vl(e = {}) {
5729
5563
  return {
5730
5564
  ..._(),
5731
5565
  modal: !0,
@@ -5744,10 +5578,10 @@ function Yl(e = {}) {
5744
5578
  }
5745
5579
  //#endregion
5746
5580
  //#region ../../node_modules/.bun/@base-ui+react@1.4.1+fa6c2f29eeb10566/node_modules/@base-ui/react/esm/dialog/root/DialogRoot.js
5747
- var Xl = /*#__PURE__*/ S.createContext(!1);
5748
- process.env.NODE_ENV !== "production" && (Xl.displayName = "IsDrawerContext");
5749
- function Zl(e) {
5750
- let { children: t, open: n, defaultOpen: r = !1, onOpenChange: i, onOpenChangeComplete: a, disablePointerDismissal: o = !1, modal: s = !0, actionsRef: c, handle: l, triggerId: d, defaultTriggerId: f = null } = e, p = Pl(!0), m = S.useContext(Xl), h = !!p, g = Jl.useStore(l?.store, {
5581
+ var Hl = /*#__PURE__*/ S.createContext(!1);
5582
+ process.env.NODE_ENV !== "production" && (Hl.displayName = "IsDrawerContext");
5583
+ function Ul(e) {
5584
+ let { children: t, open: n, defaultOpen: r = !1, onOpenChange: i, onOpenChangeComplete: a, disablePointerDismissal: o = !1, modal: s = !0, actionsRef: c, handle: l, triggerId: d, defaultTriggerId: f = null } = e, p = $(!0), m = S.useContext(Hl), h = !!p, g = Bl.useStore(l?.store, {
5751
5585
  open: r,
5752
5586
  openProp: n,
5753
5587
  activeTriggerId: f,
@@ -5767,7 +5601,7 @@ function Zl(e) {
5767
5601
  modal: s
5768
5602
  }), g.useContextCallback("onOpenChange", i), g.useContextCallback("onOpenChangeComplete", a);
5769
5603
  let _ = g.useState("payload");
5770
- Kl({
5604
+ Rl({
5771
5605
  store: g,
5772
5606
  actionsRef: c,
5773
5607
  parentContext: p?.store.context,
@@ -5776,9 +5610,9 @@ function Zl(e) {
5776
5610
  triggerIdProp: d
5777
5611
  });
5778
5612
  let ee = S.useMemo(() => ({ store: g }), [g]);
5779
- return /*#__PURE__*/ b(Xl.Provider, {
5613
+ return /*#__PURE__*/ b(Hl.Provider, {
5780
5614
  value: !1,
5781
- children: /*#__PURE__*/ b(Nl.Provider, {
5615
+ children: /*#__PURE__*/ b(El.Provider, {
5782
5616
  value: ee,
5783
5617
  children: typeof t == "function" ? t({ payload: _ }) : t
5784
5618
  })
@@ -5786,18 +5620,18 @@ function Zl(e) {
5786
5620
  }
5787
5621
  //#endregion
5788
5622
  //#region ../../node_modules/.bun/@base-ui+react@1.4.1+fa6c2f29eeb10566/node_modules/@base-ui/react/esm/dialog/title/DialogTitle.js
5789
- var Ql = /*#__PURE__*/ S.forwardRef(function(e, t) {
5790
- let { render: n, className: r, style: a, id: o, ...s } = e, { store: c } = Pl(), l = d(o);
5623
+ var Wl = /*#__PURE__*/ S.forwardRef(function(e, t) {
5624
+ let { render: n, className: r, style: a, id: o, ...s } = e, { store: c } = $(), l = d(o);
5791
5625
  return c.useSyncedValueWithCleanup("titleElementId", l), i("h2", e, {
5792
5626
  ref: t,
5793
5627
  props: [{ id: l }, s]
5794
5628
  });
5795
5629
  });
5796
- process.env.NODE_ENV !== "production" && (Ql.displayName = "DialogTitle");
5630
+ process.env.NODE_ENV !== "production" && (Wl.displayName = "DialogTitle");
5797
5631
  //#endregion
5798
5632
  //#region ../../node_modules/.bun/@base-ui+react@1.4.1+fa6c2f29eeb10566/node_modules/@base-ui/react/esm/dialog/trigger/DialogTrigger.js
5799
- var $l = /*#__PURE__*/ S.forwardRef(function(e, t) {
5800
- let { render: n, className: r, disabled: a = !1, nativeButton: s = !0, id: c, payload: l, handle: u, style: f, ...m } = e, h = Pl(!0), g = u?.store ?? h?.store;
5633
+ var Gl = /*#__PURE__*/ S.forwardRef(function(e, t) {
5634
+ let { render: n, className: r, disabled: a = !1, nativeButton: s = !0, id: c, payload: l, handle: u, style: f, ...m } = e, h = $(!0), g = u?.store ?? h?.store;
5801
5635
  if (!g) throw Error(process.env.NODE_ENV === "production" ? ce(79) : "Base UI: <Dialog.Trigger> must be used within <Dialog.Root> or provided with a handle.");
5802
5636
  let _ = d(c), ee = g.useState("floatingRootContext"), te = g.useState("isOpenedByTrigger", _), re = S.useRef(null), { registerTrigger: ie, isMountedByThisTrigger: ae } = we(_, re, g, { payload: l }), { getButtonProps: oe, buttonRef: se } = ne({
5803
5637
  disabled: a,
@@ -5827,48 +5661,48 @@ var $l = /*#__PURE__*/ S.forwardRef(function(e, t) {
5827
5661
  stateAttributesMapping: p
5828
5662
  });
5829
5663
  });
5830
- process.env.NODE_ENV !== "production" && ($l.displayName = "DialogTrigger");
5664
+ process.env.NODE_ENV !== "production" && (Gl.displayName = "DialogTrigger");
5831
5665
  //#endregion
5832
5666
  //#region src/ui/browser/dialog.tsx
5833
- function eu(e) {
5834
- return /* @__PURE__ */ b(Zl, {
5667
+ function Kl(e) {
5668
+ return /* @__PURE__ */ b(Ul, {
5835
5669
  "data-slot": "dialog",
5836
5670
  ...e
5837
5671
  });
5838
5672
  }
5839
- function tu(e) {
5840
- return /* @__PURE__ */ b($l, {
5673
+ function ql(e) {
5674
+ return /* @__PURE__ */ b(Gl, {
5841
5675
  "data-slot": "dialog-trigger",
5842
5676
  ...e
5843
5677
  });
5844
5678
  }
5845
- function nu(e) {
5846
- return /* @__PURE__ */ b(Gl, {
5679
+ function Jl(e) {
5680
+ return /* @__PURE__ */ b(Ll, {
5847
5681
  "data-slot": "dialog-portal",
5848
5682
  ...e
5849
5683
  });
5850
5684
  }
5851
- function ru(e) {
5852
- return /* @__PURE__ */ b(Ll, {
5685
+ function Yl(e) {
5686
+ return /* @__PURE__ */ b(kl, {
5853
5687
  "data-slot": "dialog-close",
5854
5688
  ...e
5855
5689
  });
5856
5690
  }
5857
- function iu({ className: e, ...t }) {
5858
- return /* @__PURE__ */ b(Il, {
5691
+ function Xl({ className: e, ...t }) {
5692
+ return /* @__PURE__ */ b(Ol, {
5859
5693
  "data-slot": "dialog-overlay",
5860
5694
  className: a("fixed inset-0 isolate z-50 bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0 motion-reduce:animate-none motion-reduce:transition-none", e),
5861
5695
  ...t
5862
5696
  });
5863
5697
  }
5864
- function au({ children: e, className: t, closeLabel: r = "Close", container: i, showCloseButton: o = !0, ...s }) {
5865
- return /* @__PURE__ */ x(nu, {
5698
+ function Zl({ children: e, className: t, closeLabel: r = "Close", container: i, showCloseButton: o = !0, ...s }) {
5699
+ return /* @__PURE__ */ x(Jl, {
5866
5700
  container: i,
5867
- children: [/* @__PURE__ */ b(iu, {}), /* @__PURE__ */ x(Wl, {
5701
+ children: [/* @__PURE__ */ b(Xl, {}), /* @__PURE__ */ x(Il, {
5868
5702
  "data-slot": "dialog-content",
5869
5703
  className: a("fixed top-1/2 left-1/2 z-50 grid w-full max-w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2 gap-4 rounded-xl bg-popover p-4 text-sm text-popover-foreground shadow-lg ring-1 ring-foreground/10 duration-100 outline-none sm:max-w-sm data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95 motion-reduce:animate-none motion-reduce:transition-none", t),
5870
5704
  ...s,
5871
- children: [e, o && /* @__PURE__ */ x(Ll, {
5705
+ children: [e, o && /* @__PURE__ */ x(kl, {
5872
5706
  "data-slot": "dialog-close",
5873
5707
  render: /* @__PURE__ */ b(n, {
5874
5708
  className: "absolute top-2 right-2",
@@ -5883,29 +5717,29 @@ function au({ children: e, className: t, closeLabel: r = "Close", container: i,
5883
5717
  })]
5884
5718
  });
5885
5719
  }
5886
- function ou({ className: e, ...t }) {
5720
+ function Ql({ className: e, ...t }) {
5887
5721
  return /* @__PURE__ */ b("div", {
5888
5722
  "data-slot": "dialog-header",
5889
5723
  className: a("flex flex-col gap-2", e),
5890
5724
  ...t
5891
5725
  });
5892
5726
  }
5893
- function su({ className: e, ...t }) {
5727
+ function $l({ className: e, ...t }) {
5894
5728
  return /* @__PURE__ */ b("div", {
5895
5729
  "data-slot": "dialog-footer",
5896
5730
  className: a("-mx-4 -mb-4 flex flex-col-reverse gap-2 rounded-b-xl border-t border-border bg-muted/50 p-4 sm:flex-row sm:justify-end", e),
5897
5731
  ...t
5898
5732
  });
5899
5733
  }
5900
- function cu({ className: e, ...t }) {
5901
- return /* @__PURE__ */ b(Ql, {
5734
+ function eu({ className: e, ...t }) {
5735
+ return /* @__PURE__ */ b(Wl, {
5902
5736
  "data-slot": "dialog-title",
5903
5737
  className: a("text-base leading-none font-medium", e),
5904
5738
  ...t
5905
5739
  });
5906
5740
  }
5907
- function lu({ className: e, ...t }) {
5908
- return /* @__PURE__ */ b(Rl, {
5741
+ function tu({ className: e, ...t }) {
5742
+ return /* @__PURE__ */ b(Al, {
5909
5743
  "data-slot": "dialog-description",
5910
5744
  className: a("text-sm text-muted-foreground *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground", e),
5911
5745
  ...t
@@ -5913,7 +5747,7 @@ function lu({ className: e, ...t }) {
5913
5747
  }
5914
5748
  //#endregion
5915
5749
  //#region src/workbench/browser/runtime/icons.tsx
5916
- function uu(e) {
5750
+ function nu(e) {
5917
5751
  switch (e) {
5918
5752
  case "alert": return /* @__PURE__ */ x(y, { children: [
5919
5753
  /* @__PURE__ */ b("circle", {
@@ -6079,7 +5913,7 @@ function uu(e) {
6079
5913
  ] });
6080
5914
  }
6081
5915
  }
6082
- function du({ name: e, size: t = 18, ...n }) {
5916
+ function ru({ name: e, size: t = 18, ...n }) {
6083
5917
  return e === "flow" ? /* @__PURE__ */ b(je, {
6084
5918
  "aria-hidden": "true",
6085
5919
  size: t,
@@ -6097,13 +5931,13 @@ function du({ name: e, size: t = 18, ...n }) {
6097
5931
  strokeLinecap: "round",
6098
5932
  strokeLinejoin: "round",
6099
5933
  strokeWidth: "1.7",
6100
- children: uu(e)
5934
+ children: nu(e)
6101
5935
  })
6102
5936
  });
6103
5937
  }
6104
5938
  //#endregion
6105
5939
  //#region src/workbench/browser/runtime/shell/workbenchSelect.tsx
6106
- function fu({ ariaLabel: e, className: t, disabled: n = !1, id: r, onValueChange: i, options: o, portalRoot: s, size: c, value: l, variant: u }) {
5940
+ function iu({ ariaLabel: e, className: t, disabled: n = !1, id: r, onValueChange: i, options: o, portalRoot: s, size: c, value: l, variant: u }) {
6107
5941
  return /* @__PURE__ */ x(ye, {
6108
5942
  disabled: n,
6109
5943
  onValueChange: (e) => {
@@ -6130,4 +5964,4 @@ function fu({ ariaLabel: e, className: t, disabled: n = !1, id: r, onValueChange
6130
5964
  });
6131
5965
  }
6132
5966
  //#endregion
6133
- export { Hs as A, qs as B, vl as C, V as D, G as E, H as F, Me as H, W as I, Qs as L, Ac as M, K as N, B as O, z as P, gs as R, bl as S, pl as T, Ne as V, Cl as _, au as a, xl as b, ou as c, Ml as d, Ol as f, kl as g, El as h, ru as i, Pc as j, tc as k, cu as l, jl as m, du as n, lu as o, Al as p, eu as r, su as s, fu as t, tu as u, Tl as v, _l as w, Sl as x, gl as y, U as z };
5967
+ export { Rs as A, Us as B, fl as C, B as D, W as E, V as F, Me as H, U as I, Js as L, wc as M, G as N, z as O, R as P, fs as R, ml as S, sl as T, Ne as V, _l as _, Zl as a, hl as b, Ql as c, Tl as d, xl as f, Sl as g, yl as h, Yl as i, Oc as j, Zs as k, eu as l, wl as m, ru as n, tu as o, Cl as p, Kl as r, $l as s, iu as t, ql as u, vl as v, dl as w, gl as x, ul as y, H as z };