gci-chatbot-ai 1.0.23 → 1.0.25

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.
@@ -1,6 +1,6 @@
1
- import { ref as ee, h as rt, defineComponent as Bn, watch as Gn, nextTick as Wn, onMounted as Hn, onUnmounted as Xn, openBlock as G, createElementBlock as W, Fragment as Me, createCommentVNode as Ee, createElementVNode as w, normalizeClass as qn, createVNode as Ce, unref as ke, toDisplayString as Se, renderList as bt, withDirectives as At, vModelText as Kn, Transition as zt, withCtx as wt, vShow as eo } from "vue";
2
- const to = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIwIiBoZWlnaHQ9IjMwIiB2aWV3Qm94PSIwIDAgMTIwIDMwIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGZpbGw9Im5vbmUiPg0KICA8Y2lyY2xlIGN4PSIxNSIgY3k9IjE1IiByPSI2IiBmaWxsPSIjNUI4Q0ZGIj4NCiAgICA8YW5pbWF0ZSBhdHRyaWJ1dGVOYW1lPSJvcGFjaXR5IiB2YWx1ZXM9IjAuMzsxOzAuMyIgZHVyPSIxLjRzIiByZXBlYXRDb3VudD0iaW5kZWZpbml0ZSIgYmVnaW49IjBzIj48L2FuaW1hdGU+DQogIDwvY2lyY2xlPg0KDQogIDxjaXJjbGUgY3g9IjQ1IiBjeT0iMTUiIHI9IjYiIGZpbGw9IiM1QjhDRkYiPg0KICAgIDxhbmltYXRlIGF0dHJpYnV0ZU5hbWU9Im9wYWNpdHkiIHZhbHVlcz0iMC4zOzE7MC4zIiBkdXI9IjEuNHMiIHJlcGVhdENvdW50PSJpbmRlZmluaXRlIiBiZWdpbj0iMC4ycyI+PC9hbmltYXRlPg0KICA8L2NpcmNsZT4NCg0KICA8Y2lyY2xlIGN4PSI3NSIgY3k9IjE1IiByPSI2IiBmaWxsPSIjNUI4Q0ZGIj4NCiAgICA8YW5pbWF0ZSBhdHRyaWJ1dGVOY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mc2V0PSIxIiBzdG9wLWNvbG9yPSIjODc4M0ZGIi8+CiAgICAgICAgICAgICAgICAgICAgICA8L2xpbmVhckdyYWRpZW50PgogICAgICAgICAgICAgICAgICAgICAgPGxpbmVhckdyYWRpZW50IGlkPSJwYWludDFfbGluZWFyXzI3NjBfMjIwMTgiIHgxPSI0LjIzOTMyIiB5MT0iMi44MjYxNyIgeDI9IjQuMTcxMzUiIHkyPSI2LjgyNjEiIGdyYWRpZW50VW5pdHM9InVzZXJTcGFjZU9uVXNlIj4KICAgICAgICAgICAgICAgICAgICAgICAgPHN0b3Agc3RvcC1jb2xvcj0iI0Y2NkJGRSIvPgogICAgICAgICAgICAgICAgICAgICAgICA8c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiM4NzgzRkYiLz4KICAgICAgICAgICAgICAgICAgICAgIDwvbGluZWFyR3JhZGllbnQ+CiAgICAgICAgICAgICAgICAgICAgICA8bGluZWFyR3JhZGllbnQgaWQ9InBhaW50Ml9saW5lYXJfMjc2MF8yMjAxOCIgeDE9IjguMzE1NTgiIHkxPSIyLjgyNjE3IiB4Mj0iOC4xNDU2NiIgeTI9IjEyLjgyNiIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiPgogICAgICAgICAgICAgICAgICAgICAgICA8c3RvcCBzdG9wLWNvbG9yPSIjRjY2QkZFIi8+CiAgICAgICAgICAgICAgICAgICAgICAgIDxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0iIzg3ODNGRiIvPgogICAgICAgICAgICAgICAgICAgICAgPC9saW5lYXJHcmFkaWVudD4KICAgICAgICAgICAgICAgICAgICA8L2RlZnM+CiAgICAgICAgICAgICAgICAgIDwvc3ZnPg==", no = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjAiIGhlaWdodD0iNjAiIHZpZXdCb3g9IjAgMCA2MCA2MCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc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ICAgICAgICAgICAgIDxmaWx0ZXIgaWQ9ImZpbHRlcjBfZl8yNzIwXzExNzk5IiB4PSIwIiB5PSI0MC43Njk1IiB3aWR0aD0iNjAiIGhlaWdodD0iMTkiIGZpbHRlclVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgY29sb3ItaW50ZXJwb2xhdGlvbi1maWx0ZXJzPSJzUkdCIj4KICAgICAgICAgICAgICAgIDxmZUZsb29kIGZsb29kLW9wYWNpdHk9IjAiIHJlc3VsdD0iQmFja2dyb3VuZEltYWdlRml4Ii8+CiAgICAgICAgICAgICAgICA8ZmVCbGVuZCBtb2RlPSJub3JtYWwiIGluPSJTb3VyY2VHcmFwaGljIiBpbjI9IkJhY2tncm91bmRJbWFnZUZpeCIgcmVzdWx0PSJzaGFwZSIvPgogICAgICAgICAgICAgICAgPGZlR2F1c3NpYW5CbHVyIHN0ZERldmlhdGlvbj0iMyIgcmVzdWx0PSJlZmZlY3QxX2ZvcmVncm91bmRCbHVyXzI3MjBfMTE3OTkiLz4KICAgICAgICAgICAgICA8L2ZpbHRlcj4KICAgICAgICAgICAgICA8bGluZWFyR3JhZGllbnQgaWQ9InBhaW50MF9saW5lYXJfMjcyMF8xMTc5OSIgeDE9IjMwLjYxMDEiIHkxPSIzLjE2MTc1ZS0wOCIgeDI9IjI5Ljg2MSIgeTI9IjQ2LjAwMDMiIGdyYWRpZW50VW5pdHM9InVzZXJTcGFjZU9uVXNlIj4KICAgICAgICAgICAgICAgIDxzdG9wIHN0b3AtY29sb3I9IiNGREQxRkYiLz4KICAgICAgICAgICAgICAgIDxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0iIzVFODRGRiIvPgogICAgICAgICAgICAgIDwvbGluZWFyR3JhZGllbnQ+CiAgICAgICAgICAgIDwvZGVmcz4KICAgICAgICAgIDwvc3ZnPg==";
3
- var yr = "vercel.ai.error", oo = Symbol.for(yr), Dt, jt, K = class vr extends (jt = Error, Dt = oo, jt) {
1
+ import { ref as ee, h as rt, defineComponent as Bn, watch as Gn, nextTick as Wn, onMounted as Hn, onUnmounted as Xn, openBlock as B, createElementBlock as G, Fragment as Me, createCommentVNode as _e, createElementVNode as j, createVNode as Ce, unref as ke, toDisplayString as He, renderList as bt, withDirectives as At, vModelText as qn, Transition as zt, withCtx as wt, vShow as Kn } from "vue";
2
+ const eo = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIwIiBoZWlnaHQ9IjMwIiB2aWV3Qm94PSIwIDAgMTIwIDMwIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGZpbGw9Im5vbmUiPg0KICA8Y2lyY2xlIGN4PSIxNSIgY3k9IjE1IiByPSI2IiBmaWxsPSIjNUI4Q0ZGIj4NCiAgICA8YW5pbWF0ZSBhdHRyaWJ1dGVOYW1lPSJvcGFjaXR5IiB2YWx1ZXM9IjAuMzsxOzAuMyIgZHVyPSIxLjRzIiByZXBlYXRDb3VudD0iaW5kZWZpbml0ZSIgYmVnaW49IjBzIj48L2FuaW1hdGU+DQogIDwvY2lyY2xlPg0KDQogIDxjaXJjbGUgY3g9IjQ1IiBjeT0iMTUiIHI9IjYiIGZpbGw9IiM1QjhDRkYiPg0KICAgIDxhbmltYXRlIGF0dHJpYnV0ZU5hbWU9Im9wYWNpdHkiIHZhbHVlcz0iMC4zOzE7MC4zIiBkdXI9IjEuNHMiIHJlcGVhdENvdW50PSJpbmRlZmluaXRlIiBiZWdpbj0iMC4ycyI+PC9hbmltYXRlPg0KICA8L2NpcmNsZT4NCg0KICA8Y2lyY2xlIGN4PSI3NSIgY3k9IjE1IiByPSI2IiBmaWxsPSIjNUI4Q0ZGIj4NCiAgICA8YW5pbWF0ZSBhdHRyaWJ1dGVOYW1lPSJvcGFjaXR5IiB2YWx1ZXM9IjAuMzsxOzAuMyIgZHVyPSIxLjRzIiByZXBlYXRDb3VudD0iaW5kZWZpbml0ZSIgYmVnaW49IjAuNHMiPjwvYW5pbWF0ZT4NCiAgPC9jaXJ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YWludDFfbGluZWFyXzI3NjBfMjIwMTgiIHgxPSI0LjIzOTMyIiB5MT0iMi44MjYxNyIgeDI9IjQuMTcxMzUiIHkyPSI2LjgyNjEiIGdyYWRpZW50VW5pdHM9InVzZXJTcGFjZU9uVXNlIj4KICAgICAgICAgICAgICAgICAgICAgICAgPHN0b3Agc3RvcC1jb2xvcj0iI0Y2NkJGRSIvPgogICAgICAgICAgICAgICAgICAgICAgICA8c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiM4NzgzRkYiLz4KICAgICAgICAgICAgICAgICAgICAgIDwvbGluZWFyR3JhZGllbnQ+CiAgICAgICAgICAgICAgICAgICAgICA8bGluZWFyR3JhZGllbnQgaWQ9InBhaW50Ml9saW5lYXJfMjc2MF8yMjAxOCIgeDE9IjguMzE1NTgiIHkxPSIyLjgyNjE3IiB4Mj0iOC4xNDU2NiIgeTI9IjEyLjgyNiIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiPgogICAgICAgICAgICAgICAgICAgICAgICA8c3RvcCBzdG9wLWNvbG9yPSIjRjY2QkZFIi8+CiAgICAgICAgICAgICAgICAgICAgICAgIDxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0iIzg3ODNGRiIvPgogICAgICAgICAgICAgICAgICAgICAgPC9saW5lYXJHcmFkaWVudD4KICAgICAgICAgICAgICAgICAgICA8L2RlZnM+CiAgICAgICAgICAgICAgICAgIDwvc3ZnPg==", ro = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjAiIGhlaWdodD0iNjAiIHZpZXdCb3g9IjAgMCA2MCA2MCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICAgICAgICAgICAgPHBhdGggZD0iTTQ3LjQ1MDIgMTEuODM2Mkw1MC40MTYxIDkuNTQzNDJDNTAuOTA2IDkuMTY0NjggNTEuMTkyOSA4LjU4MDM1IDUxLjE5MjkgNy45NjEx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VyU3BhY2VPblVzZSIgY29sb3ItaW50ZXJwb2xhdGlvbi1maWx0ZXJzPSJzUkdCIj4KICAgICAgICAgICAgICAgIDxmZUZsb29kIGZsb29kLW9wYWNpdHk9IjAiIHJlc3VsdD0iQmFja2dyb3VuZEltYWdlRml4Ii8+CiAgICAgICAgICAgICAgICA8ZmVCbGVuZCBtb2RlPSJub3JtYWwiIGluPSJTb3VyY2VHcmFwaGljIiBpbjI9IkJhY2tncm91bmRJbWFnZUZpeCIgcmVzdWx0PSJzaGFwZSIvPgogICAgICAgICAgICAgICAgPGZlR2F1c3NpYW5CbHVyIHN0ZERldmlhdGlvbj0iMyIgcmVzdWx0PSJlZmZlY3QxX2ZvcmVncm91bmRCbHVyXzI3MjBfMTE3OTkiLz4KICAgICAgICAgICAgICA8L2ZpbHRlcj4KICAgICAgICAgICAgICA8bGluZWFyR3JhZGllbnQgaWQ9InBhaW50MF9saW5lYXJfMjcyMF8xMTc5OSIgeDE9IjMwLjYxMDEiIHkxPSIzLjE2MTc1ZS0wOCIgeDI9IjI5Ljg2MSIgeTI9IjQ2LjAwMDMiIGdyYWRpZW50VW5pdHM9InVzZXJTcGFjZU9uVXNlIj4KICAgICAgICAgICAgICAgIDxzdG9wIHN0b3AtY29sb3I9IiNGREQxRkYiLz4KICAgICAgICAgICAgICAgIDxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0iIzVFODRGRiIvPgogICAgICAgICAgICAgIDwvbGluZWFyR3JhZGllbnQ+CiAgICAgICAgICAgIDwvZGVmcz4KICAgICAgICAgIDwvc3ZnPg==";
3
+ var yr = "vercel.ai.error", no = Symbol.for(yr), Dt, jt, K = class vr extends (jt = Error, Dt = no, jt) {
4
4
  /**
5
5
  * Creates an AI SDK Error.
6
6
  *
@@ -32,7 +32,7 @@ var yr = "vercel.ai.error", oo = Symbol.for(yr), Dt, jt, K = class vr extends (j
32
32
  function Mr(e) {
33
33
  return e == null ? "unknown error" : typeof e == "string" ? e : e instanceof Error ? e.message : JSON.stringify(e);
34
34
  }
35
- var _r = "AI_InvalidArgumentError", Nr = `vercel.ai.error.${_r}`, so = Symbol.for(Nr), Tt, Ot, ao = class extends (Ot = K, Tt = so, Ot) {
35
+ var _r = "AI_InvalidArgumentError", Nr = `vercel.ai.error.${_r}`, oo = Symbol.for(Nr), Tt, Ot, so = class extends (Ot = K, Tt = oo, Ot) {
36
36
  constructor({
37
37
  message: e,
38
38
  cause: t,
@@ -43,7 +43,7 @@ var _r = "AI_InvalidArgumentError", Nr = `vercel.ai.error.${_r}`, so = Symbol.fo
43
43
  static isInstance(e) {
44
44
  return K.hasMarker(e, Nr);
45
45
  }
46
- }, br = "AI_JSONParseError", Ar = `vercel.ai.error.${br}`, io = Symbol.for(Ar), Et, Ct, kt = class extends (Ct = K, Et = io, Ct) {
46
+ }, br = "AI_JSONParseError", Ar = `vercel.ai.error.${br}`, ao = Symbol.for(Ar), Et, Ct, kt = class extends (Ct = K, Et = ao, Ct) {
47
47
  constructor({ text: e, cause: t }) {
48
48
  super({
49
49
  name: br,
@@ -55,7 +55,7 @@ Error message: ${Mr(t)}`,
55
55
  static isInstance(e) {
56
56
  return K.hasMarker(e, Ar);
57
57
  }
58
- }, zr = "AI_TypeValidationError", wr = `vercel.ai.error.${zr}`, uo = Symbol.for(wr), St, xt, me = class nt extends (xt = K, St = uo, xt) {
58
+ }, zr = "AI_TypeValidationError", wr = `vercel.ai.error.${zr}`, io = Symbol.for(wr), St, xt, me = class nt extends (xt = K, St = io, xt) {
59
59
  constructor({ value: t, cause: r }) {
60
60
  super({
61
61
  name: zr,
@@ -142,7 +142,7 @@ function jr(e) {
142
142
  function st(e, t) {
143
143
  return typeof t == "bigint" ? t.toString() : t;
144
144
  }
145
- function Ve(e) {
145
+ function Fe(e) {
146
146
  return {
147
147
  get value() {
148
148
  {
@@ -159,7 +159,7 @@ function ft(e) {
159
159
  const t = e.startsWith("^") ? 1 : 0, r = e.endsWith("$") ? e.length - 1 : e.length;
160
160
  return e.slice(t, r);
161
161
  }
162
- function co(e, t) {
162
+ function uo(e, t) {
163
163
  const r = (e.toString().split(".")[1] || "").length, n = t.toString();
164
164
  let o = (n.split(".")[1] || "").length;
165
165
  if (o === 0 && /\d?e-\d?/.test(n)) {
@@ -205,15 +205,15 @@ function se(...e) {
205
205
  function Pt(e) {
206
206
  return JSON.stringify(e);
207
207
  }
208
- function lo(e) {
208
+ function co(e) {
209
209
  return e.toLowerCase().trim().replace(/[^\w\s-]/g, "").replace(/[\s_-]+/g, "-").replace(/^-+|-+$/g, "");
210
210
  }
211
211
  const Tr = "captureStackTrace" in Error ? Error.captureStackTrace : (...e) => {
212
212
  };
213
- function be(e) {
213
+ function Ae(e) {
214
214
  return typeof e == "object" && e !== null && !Array.isArray(e);
215
215
  }
216
- const po = Ve(() => {
216
+ const lo = Fe(() => {
217
217
  var e;
218
218
  if (typeof navigator < "u" && ((e = navigator == null ? void 0 : navigator.userAgent) != null && e.includes("Cloudflare")))
219
219
  return !1;
@@ -225,18 +225,18 @@ const po = Ve(() => {
225
225
  }
226
226
  });
227
227
  function he(e) {
228
- if (be(e) === !1)
228
+ if (Ae(e) === !1)
229
229
  return !1;
230
230
  const t = e.constructor;
231
231
  if (t === void 0 || typeof t != "function")
232
232
  return !0;
233
233
  const r = t.prototype;
234
- return !(be(r) === !1 || Object.prototype.hasOwnProperty.call(r, "isPrototypeOf") === !1);
234
+ return !(Ae(r) === !1 || Object.prototype.hasOwnProperty.call(r, "isPrototypeOf") === !1);
235
235
  }
236
236
  function Or(e) {
237
237
  return he(e) ? { ...e } : Array.isArray(e) ? [...e] : e;
238
238
  }
239
- const fo = /* @__PURE__ */ new Set(["string", "number", "symbol"]);
239
+ const po = /* @__PURE__ */ new Set(["string", "number", "symbol"]);
240
240
  function Ie(e) {
241
241
  return e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
242
242
  }
@@ -257,17 +257,17 @@ function v(e) {
257
257
  }
258
258
  return delete t.message, typeof t.error == "string" ? { ...t, error: () => t.error } : t;
259
259
  }
260
- function go(e) {
260
+ function fo(e) {
261
261
  return Object.keys(e).filter((t) => e[t]._zod.optin === "optional" && e[t]._zod.optout === "optional");
262
262
  }
263
- const mo = {
263
+ const go = {
264
264
  safeint: [Number.MIN_SAFE_INTEGER, Number.MAX_SAFE_INTEGER],
265
265
  int32: [-2147483648, 2147483647],
266
266
  uint32: [0, 4294967295],
267
267
  float32: [-34028234663852886e22, 34028234663852886e22],
268
268
  float64: [-Number.MAX_VALUE, Number.MAX_VALUE]
269
269
  };
270
- function ho(e, t) {
270
+ function mo(e, t) {
271
271
  const r = e._zod.def, n = r.checks;
272
272
  if (n && n.length > 0)
273
273
  throw new Error(".pick() cannot be used on object schemas containing refinements");
@@ -285,7 +285,7 @@ function ho(e, t) {
285
285
  });
286
286
  return ae(e, s);
287
287
  }
288
- function Io(e, t) {
288
+ function ho(e, t) {
289
289
  const r = e._zod.def, n = r.checks;
290
290
  if (n && n.length > 0)
291
291
  throw new Error(".omit() cannot be used on object schemas containing refinements");
@@ -303,7 +303,7 @@ function Io(e, t) {
303
303
  });
304
304
  return ae(e, s);
305
305
  }
306
- function yo(e, t) {
306
+ function Io(e, t) {
307
307
  if (!he(t))
308
308
  throw new Error("Invalid input to extend: expected a plain object");
309
309
  const r = e._zod.def.checks;
@@ -321,7 +321,7 @@ function yo(e, t) {
321
321
  });
322
322
  return ae(e, o);
323
323
  }
324
- function vo(e, t) {
324
+ function yo(e, t) {
325
325
  if (!he(t))
326
326
  throw new Error("Invalid input to safeExtend: expected a plain object");
327
327
  const r = se(e._zod.def, {
@@ -332,7 +332,7 @@ function vo(e, t) {
332
332
  });
333
333
  return ae(e, r);
334
334
  }
335
- function Mo(e, t) {
335
+ function vo(e, t) {
336
336
  const r = se(e._zod.def, {
337
337
  get shape() {
338
338
  const n = { ...e._zod.def.shape, ...t._zod.def.shape };
@@ -346,7 +346,7 @@ function Mo(e, t) {
346
346
  });
347
347
  return ae(e, r);
348
348
  }
349
- function _o(e, t, r) {
349
+ function Mo(e, t, r) {
350
350
  const o = t._zod.def.checks;
351
351
  if (o && o.length > 0)
352
352
  throw new Error(".partial() cannot be used on object schemas containing refinements");
@@ -374,7 +374,7 @@ function _o(e, t, r) {
374
374
  });
375
375
  return ae(t, i);
376
376
  }
377
- function No(e, t, r) {
377
+ function _o(e, t, r) {
378
378
  const n = se(t._zod.def, {
379
379
  get shape() {
380
380
  const o = t._zod.def.shape, s = { ...o };
@@ -413,14 +413,14 @@ function fe(e, t) {
413
413
  return (n = r).path ?? (n.path = []), r.path.unshift(e), r;
414
414
  });
415
415
  }
416
- function xe(e) {
416
+ function Se(e) {
417
417
  return typeof e == "string" ? e : e == null ? void 0 : e.message;
418
418
  }
419
419
  function oe(e, t, r) {
420
420
  var o, s, i, a, c, u;
421
421
  const n = { ...e, path: e.path ?? [] };
422
422
  if (!e.message) {
423
- const l = xe((i = (s = (o = e.inst) == null ? void 0 : o._zod.def) == null ? void 0 : s.error) == null ? void 0 : i.call(s, e)) ?? xe((a = t == null ? void 0 : t.error) == null ? void 0 : a.call(t, e)) ?? xe((c = r.customError) == null ? void 0 : c.call(r, e)) ?? xe((u = r.localeError) == null ? void 0 : u.call(r, e)) ?? "Invalid input";
423
+ const l = Se((i = (s = (o = e.inst) == null ? void 0 : o._zod.def) == null ? void 0 : s.error) == null ? void 0 : i.call(s, e)) ?? Se((a = t == null ? void 0 : t.error) == null ? void 0 : a.call(t, e)) ?? Se((c = r.customError) == null ? void 0 : c.call(r, e)) ?? Se((u = r.localeError) == null ? void 0 : u.call(r, e)) ?? "Invalid input";
424
424
  n.message = l;
425
425
  }
426
426
  return delete n.inst, delete n.continue, t != null && t.reportInput || delete n.input, n;
@@ -428,7 +428,7 @@ function oe(e, t, r) {
428
428
  function gt(e) {
429
429
  return Array.isArray(e) ? "array" : typeof e == "string" ? "string" : "unknown";
430
430
  }
431
- function Ae(...e) {
431
+ function ze(...e) {
432
432
  const [t, r, n] = e;
433
433
  return typeof t == "string" ? {
434
434
  message: t,
@@ -449,13 +449,13 @@ const Er = (e, t) => {
449
449
  enumerable: !1
450
450
  });
451
451
  }, Cr = p("$ZodError", Er), kr = p("$ZodError", Er, { Parent: Error });
452
- function bo(e, t = (r) => r.message) {
452
+ function No(e, t = (r) => r.message) {
453
453
  const r = {}, n = [];
454
454
  for (const o of e.issues)
455
455
  o.path.length > 0 ? (r[o.path[0]] = r[o.path[0]] || [], r[o.path[0]].push(t(o))) : n.push(t(o));
456
456
  return { formErrors: n, fieldErrors: r };
457
457
  }
458
- function Ao(e, t = (r) => r.message) {
458
+ function bo(e, t = (r) => r.message) {
459
459
  const r = { _errors: [] }, n = (o) => {
460
460
  for (const s of o.issues)
461
461
  if (s.code === "invalid_union" && s.errors.length)
@@ -493,7 +493,7 @@ const mt = (e) => (t, r, n, o) => {
493
493
  throw Tr(a, o == null ? void 0 : o.callee), a;
494
494
  }
495
495
  return i.value;
496
- }, Be = (e) => (t, r, n) => {
496
+ }, Ve = (e) => (t, r, n) => {
497
497
  const o = n ? { ...n, async: !1 } : { async: !1 }, s = t._zod.run({ value: r, issues: [] }, o);
498
498
  if (s instanceof Promise)
499
499
  throw new ge();
@@ -501,47 +501,47 @@ const mt = (e) => (t, r, n, o) => {
501
501
  success: !1,
502
502
  error: new (e ?? Cr)(s.issues.map((i) => oe(i, o, ne())))
503
503
  } : { success: !0, data: s.value };
504
- }, zo = /* @__PURE__ */ Be(kr), Ge = (e) => async (t, r, n) => {
504
+ }, Ao = /* @__PURE__ */ Ve(kr), Be = (e) => async (t, r, n) => {
505
505
  const o = n ? Object.assign(n, { async: !0 }) : { async: !0 };
506
506
  let s = t._zod.run({ value: r, issues: [] }, o);
507
507
  return s instanceof Promise && (s = await s), s.issues.length ? {
508
508
  success: !1,
509
509
  error: new e(s.issues.map((i) => oe(i, o, ne())))
510
510
  } : { success: !0, data: s.value };
511
- }, wo = /* @__PURE__ */ Ge(kr), Do = (e) => (t, r, n) => {
511
+ }, zo = /* @__PURE__ */ Be(kr), wo = (e) => (t, r, n) => {
512
512
  const o = n ? Object.assign(n, { direction: "backward" }) : { direction: "backward" };
513
513
  return mt(e)(t, r, o);
514
- }, jo = (e) => (t, r, n) => mt(e)(t, r, n), To = (e) => async (t, r, n) => {
514
+ }, Do = (e) => (t, r, n) => mt(e)(t, r, n), jo = (e) => async (t, r, n) => {
515
515
  const o = n ? Object.assign(n, { direction: "backward" }) : { direction: "backward" };
516
516
  return ht(e)(t, r, o);
517
- }, Oo = (e) => async (t, r, n) => ht(e)(t, r, n), Eo = (e) => (t, r, n) => {
517
+ }, To = (e) => async (t, r, n) => ht(e)(t, r, n), Oo = (e) => (t, r, n) => {
518
518
  const o = n ? Object.assign(n, { direction: "backward" }) : { direction: "backward" };
519
- return Be(e)(t, r, o);
520
- }, Co = (e) => (t, r, n) => Be(e)(t, r, n), ko = (e) => async (t, r, n) => {
519
+ return Ve(e)(t, r, o);
520
+ }, Eo = (e) => (t, r, n) => Ve(e)(t, r, n), Co = (e) => async (t, r, n) => {
521
521
  const o = n ? Object.assign(n, { direction: "backward" }) : { direction: "backward" };
522
- return Ge(e)(t, r, o);
523
- }, So = (e) => async (t, r, n) => Ge(e)(t, r, n), xo = /^[cC][^\s-]{8,}$/, Zo = /^[0-9a-z]+$/, Po = /^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/, Lo = /^[0-9a-vA-V]{20}$/, Ro = /^[A-Za-z0-9]{27}$/, $o = /^[a-zA-Z0-9_-]{21}$/, Uo = /^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/, Yo = /^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/, Lt = (e) => e ? new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`) : /^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/, Qo = /^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/, Jo = "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";
524
- function Fo() {
525
- return new RegExp(Jo, "u");
522
+ return Be(e)(t, r, o);
523
+ }, ko = (e) => async (t, r, n) => Be(e)(t, r, n), So = /^[cC][^\s-]{8,}$/, xo = /^[0-9a-z]+$/, Zo = /^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/, Po = /^[0-9a-vA-V]{20}$/, Lo = /^[A-Za-z0-9]{27}$/, Ro = /^[a-zA-Z0-9_-]{21}$/, $o = /^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/, Uo = /^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/, Lt = (e) => e ? new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`) : /^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/, Yo = /^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/, Qo = "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";
524
+ function Jo() {
525
+ return new RegExp(Qo, "u");
526
526
  }
527
- const Vo = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/, Bo = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/, Go = /^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/, Wo = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/, Ho = /^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/, Sr = /^[A-Za-z0-9_-]*$/, Xo = /^\+[1-9]\d{6,14}$/, xr = "(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))", qo = /* @__PURE__ */ new RegExp(`^${xr}$`);
527
+ const Fo = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/, Vo = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/, Bo = /^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/, Go = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/, Wo = /^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/, Sr = /^[A-Za-z0-9_-]*$/, Ho = /^\+[1-9]\d{6,14}$/, xr = "(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))", Xo = /* @__PURE__ */ new RegExp(`^${xr}$`);
528
528
  function Zr(e) {
529
529
  const t = "(?:[01]\\d|2[0-3]):[0-5]\\d";
530
530
  return typeof e.precision == "number" ? e.precision === -1 ? `${t}` : e.precision === 0 ? `${t}:[0-5]\\d` : `${t}:[0-5]\\d\\.\\d{${e.precision}}` : `${t}(?::[0-5]\\d(?:\\.\\d+)?)?`;
531
531
  }
532
- function Ko(e) {
532
+ function qo(e) {
533
533
  return new RegExp(`^${Zr(e)}$`);
534
534
  }
535
- function es(e) {
535
+ function Ko(e) {
536
536
  const t = Zr({ precision: e.precision }), r = ["Z"];
537
537
  e.local && r.push(""), e.offset && r.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");
538
538
  const n = `${t}(?:${r.join("|")})`;
539
539
  return new RegExp(`^${xr}T(?:${n})$`);
540
540
  }
541
- const ts = (e) => {
541
+ const es = (e) => {
542
542
  const t = e ? `[\\s\\S]{${(e == null ? void 0 : e.minimum) ?? 0},${(e == null ? void 0 : e.maximum) ?? ""}}` : "[\\s\\S]*";
543
543
  return new RegExp(`^${t}$`);
544
- }, rs = /^-?\d+$/, Pr = /^-?\d+(?:\.\d+)?$/, ns = /^(?:true|false)$/i, os = /^null$/i, ss = /^[^A-Z]*$/, as = /^[^a-z]*$/, F = /* @__PURE__ */ p("$ZodCheck", (e, t) => {
544
+ }, ts = /^-?\d+$/, Pr = /^-?\d+(?:\.\d+)?$/, rs = /^(?:true|false)$/i, ns = /^null$/i, os = /^[^A-Z]*$/, ss = /^[^a-z]*$/, F = /* @__PURE__ */ p("$ZodCheck", (e, t) => {
545
545
  var r;
546
546
  e._zod ?? (e._zod = {}), e._zod.def = t, (r = e._zod).onattach ?? (r.onattach = []);
547
547
  }), Lr = {
@@ -582,14 +582,14 @@ const ts = (e) => {
582
582
  continue: !t.abort
583
583
  });
584
584
  };
585
- }), is = /* @__PURE__ */ p("$ZodCheckMultipleOf", (e, t) => {
585
+ }), as = /* @__PURE__ */ p("$ZodCheckMultipleOf", (e, t) => {
586
586
  F.init(e, t), e._zod.onattach.push((r) => {
587
587
  var n;
588
588
  (n = r._zod.bag).multipleOf ?? (n.multipleOf = t.value);
589
589
  }), e._zod.check = (r) => {
590
590
  if (typeof r.value != typeof t.value)
591
591
  throw new Error("Cannot mix number and bigint in multiple_of check.");
592
- (typeof r.value == "bigint" ? r.value % t.value === BigInt(0) : co(r.value, t.value) === 0) || r.issues.push({
592
+ (typeof r.value == "bigint" ? r.value % t.value === BigInt(0) : uo(r.value, t.value) === 0) || r.issues.push({
593
593
  origin: typeof r.value,
594
594
  code: "not_multiple_of",
595
595
  divisor: t.value,
@@ -598,13 +598,13 @@ const ts = (e) => {
598
598
  continue: !t.abort
599
599
  });
600
600
  };
601
- }), us = /* @__PURE__ */ p("$ZodCheckNumberFormat", (e, t) => {
601
+ }), is = /* @__PURE__ */ p("$ZodCheckNumberFormat", (e, t) => {
602
602
  var i;
603
603
  F.init(e, t), t.format = t.format || "float64";
604
- const r = (i = t.format) == null ? void 0 : i.includes("int"), n = r ? "int" : "number", [o, s] = mo[t.format];
604
+ const r = (i = t.format) == null ? void 0 : i.includes("int"), n = r ? "int" : "number", [o, s] = go[t.format];
605
605
  e._zod.onattach.push((a) => {
606
606
  const c = a._zod.bag;
607
- c.format = t.format, c.minimum = o, c.maximum = s, r && (c.pattern = rs);
607
+ c.format = t.format, c.minimum = o, c.maximum = s, r && (c.pattern = ts);
608
608
  }), e._zod.check = (a) => {
609
609
  const c = a.value;
610
610
  if (r) {
@@ -660,7 +660,7 @@ const ts = (e) => {
660
660
  continue: !t.abort
661
661
  });
662
662
  };
663
- }), cs = /* @__PURE__ */ p("$ZodCheckMaxLength", (e, t) => {
663
+ }), us = /* @__PURE__ */ p("$ZodCheckMaxLength", (e, t) => {
664
664
  var r;
665
665
  F.init(e, t), (r = e._zod.def).when ?? (r.when = (n) => {
666
666
  const o = n.value;
@@ -683,7 +683,7 @@ const ts = (e) => {
683
683
  continue: !t.abort
684
684
  });
685
685
  };
686
- }), ls = /* @__PURE__ */ p("$ZodCheckMinLength", (e, t) => {
686
+ }), cs = /* @__PURE__ */ p("$ZodCheckMinLength", (e, t) => {
687
687
  var r;
688
688
  F.init(e, t), (r = e._zod.def).when ?? (r.when = (n) => {
689
689
  const o = n.value;
@@ -706,7 +706,7 @@ const ts = (e) => {
706
706
  continue: !t.abort
707
707
  });
708
708
  };
709
- }), ds = /* @__PURE__ */ p("$ZodCheckLengthEquals", (e, t) => {
709
+ }), ls = /* @__PURE__ */ p("$ZodCheckLengthEquals", (e, t) => {
710
710
  var r;
711
711
  F.init(e, t), (r = e._zod.def).when ?? (r.when = (n) => {
712
712
  const o = n.value;
@@ -729,7 +729,7 @@ const ts = (e) => {
729
729
  continue: !t.abort
730
730
  });
731
731
  };
732
- }), We = /* @__PURE__ */ p("$ZodCheckStringFormat", (e, t) => {
732
+ }), Ge = /* @__PURE__ */ p("$ZodCheckStringFormat", (e, t) => {
733
733
  var r, n;
734
734
  F.init(e, t), e._zod.onattach.push((o) => {
735
735
  const s = o._zod.bag;
@@ -746,8 +746,8 @@ const ts = (e) => {
746
746
  });
747
747
  }) : (n = e._zod).check ?? (n.check = () => {
748
748
  });
749
- }), ps = /* @__PURE__ */ p("$ZodCheckRegex", (e, t) => {
750
- We.init(e, t), e._zod.check = (r) => {
749
+ }), ds = /* @__PURE__ */ p("$ZodCheckRegex", (e, t) => {
750
+ Ge.init(e, t), e._zod.check = (r) => {
751
751
  t.pattern.lastIndex = 0, !t.pattern.test(r.value) && r.issues.push({
752
752
  origin: "string",
753
753
  code: "invalid_format",
@@ -758,11 +758,11 @@ const ts = (e) => {
758
758
  continue: !t.abort
759
759
  });
760
760
  };
761
- }), fs = /* @__PURE__ */ p("$ZodCheckLowerCase", (e, t) => {
762
- t.pattern ?? (t.pattern = ss), We.init(e, t);
763
- }), gs = /* @__PURE__ */ p("$ZodCheckUpperCase", (e, t) => {
764
- t.pattern ?? (t.pattern = as), We.init(e, t);
765
- }), ms = /* @__PURE__ */ p("$ZodCheckIncludes", (e, t) => {
761
+ }), ps = /* @__PURE__ */ p("$ZodCheckLowerCase", (e, t) => {
762
+ t.pattern ?? (t.pattern = os), Ge.init(e, t);
763
+ }), fs = /* @__PURE__ */ p("$ZodCheckUpperCase", (e, t) => {
764
+ t.pattern ?? (t.pattern = ss), Ge.init(e, t);
765
+ }), gs = /* @__PURE__ */ p("$ZodCheckIncludes", (e, t) => {
766
766
  F.init(e, t);
767
767
  const r = Ie(t.includes), n = new RegExp(typeof t.position == "number" ? `^.{${t.position}}${r}` : r);
768
768
  t.pattern = n, e._zod.onattach.push((o) => {
@@ -779,7 +779,7 @@ const ts = (e) => {
779
779
  continue: !t.abort
780
780
  });
781
781
  };
782
- }), hs = /* @__PURE__ */ p("$ZodCheckStartsWith", (e, t) => {
782
+ }), ms = /* @__PURE__ */ p("$ZodCheckStartsWith", (e, t) => {
783
783
  F.init(e, t);
784
784
  const r = new RegExp(`^${Ie(t.prefix)}.*`);
785
785
  t.pattern ?? (t.pattern = r), e._zod.onattach.push((n) => {
@@ -796,7 +796,7 @@ const ts = (e) => {
796
796
  continue: !t.abort
797
797
  });
798
798
  };
799
- }), Is = /* @__PURE__ */ p("$ZodCheckEndsWith", (e, t) => {
799
+ }), hs = /* @__PURE__ */ p("$ZodCheckEndsWith", (e, t) => {
800
800
  F.init(e, t);
801
801
  const r = new RegExp(`.*${Ie(t.suffix)}$`);
802
802
  t.pattern ?? (t.pattern = r), e._zod.onattach.push((n) => {
@@ -813,12 +813,12 @@ const ts = (e) => {
813
813
  continue: !t.abort
814
814
  });
815
815
  };
816
- }), ys = /* @__PURE__ */ p("$ZodCheckOverwrite", (e, t) => {
816
+ }), Is = /* @__PURE__ */ p("$ZodCheckOverwrite", (e, t) => {
817
817
  F.init(e, t), e._zod.check = (r) => {
818
818
  r.value = t.tx(r.value);
819
819
  };
820
820
  });
821
- class vs {
821
+ class ys {
822
822
  constructor(t = []) {
823
823
  this.content = [], this.indent = 0, this && (this.args = t);
824
824
  }
@@ -841,14 +841,14 @@ class vs {
841
841
  `));
842
842
  }
843
843
  }
844
- const Ms = {
844
+ const vs = {
845
845
  major: 4,
846
846
  minor: 3,
847
847
  patch: 5
848
848
  }, Z = /* @__PURE__ */ p("$ZodType", (e, t) => {
849
849
  var o;
850
850
  var r;
851
- e ?? (e = {}), e._zod.def = t, e._zod.bag = e._zod.bag || {}, e._zod.version = Ms;
851
+ e ?? (e = {}), e._zod.def = t, e._zod.bag = e._zod.bag || {}, e._zod.version = vs;
852
852
  const n = [...e._zod.def.checks ?? []];
853
853
  e._zod.traits.has("$ZodCheck") && n.unshift(e);
854
854
  for (const s of n)
@@ -912,10 +912,10 @@ const Ms = {
912
912
  validate: (s) => {
913
913
  var i;
914
914
  try {
915
- const a = zo(e, s);
915
+ const a = Ao(e, s);
916
916
  return a.success ? { value: a.data } : { issues: (i = a.error) == null ? void 0 : i.issues };
917
917
  } catch {
918
- return wo(e, s).then((c) => {
918
+ return zo(e, s).then((c) => {
919
919
  var u;
920
920
  return c.success ? { value: c.data } : { issues: (u = c.error) == null ? void 0 : u.issues };
921
921
  });
@@ -926,7 +926,7 @@ const Ms = {
926
926
  }));
927
927
  }), It = /* @__PURE__ */ p("$ZodString", (e, t) => {
928
928
  var r;
929
- Z.init(e, t), e._zod.pattern = [...((r = e == null ? void 0 : e._zod.bag) == null ? void 0 : r.patterns) ?? []].pop() ?? ts(e._zod.bag), e._zod.parse = (n, o) => {
929
+ Z.init(e, t), e._zod.pattern = [...((r = e == null ? void 0 : e._zod.bag) == null ? void 0 : r.patterns) ?? []].pop() ?? es(e._zod.bag), e._zod.parse = (n, o) => {
930
930
  if (t.coerce)
931
931
  try {
932
932
  n.value = String(n.value);
@@ -940,10 +940,10 @@ const Ms = {
940
940
  }), n;
941
941
  };
942
942
  }), L = /* @__PURE__ */ p("$ZodStringFormat", (e, t) => {
943
- We.init(e, t), It.init(e, t);
944
- }), _s = /* @__PURE__ */ p("$ZodGUID", (e, t) => {
945
- t.pattern ?? (t.pattern = Yo), L.init(e, t);
946
- }), Ns = /* @__PURE__ */ p("$ZodUUID", (e, t) => {
943
+ Ge.init(e, t), It.init(e, t);
944
+ }), Ms = /* @__PURE__ */ p("$ZodGUID", (e, t) => {
945
+ t.pattern ?? (t.pattern = Uo), L.init(e, t);
946
+ }), _s = /* @__PURE__ */ p("$ZodUUID", (e, t) => {
947
947
  if (t.version) {
948
948
  const n = {
949
949
  v1: 1,
@@ -961,9 +961,9 @@ const Ms = {
961
961
  } else
962
962
  t.pattern ?? (t.pattern = Lt());
963
963
  L.init(e, t);
964
- }), bs = /* @__PURE__ */ p("$ZodEmail", (e, t) => {
965
- t.pattern ?? (t.pattern = Qo), L.init(e, t);
966
- }), As = /* @__PURE__ */ p("$ZodURL", (e, t) => {
964
+ }), Ns = /* @__PURE__ */ p("$ZodEmail", (e, t) => {
965
+ t.pattern ?? (t.pattern = Yo), L.init(e, t);
966
+ }), bs = /* @__PURE__ */ p("$ZodURL", (e, t) => {
967
967
  L.init(e, t), e._zod.check = (r) => {
968
968
  try {
969
969
  const n = r.value.trim(), o = new URL(n);
@@ -995,32 +995,32 @@ const Ms = {
995
995
  });
996
996
  }
997
997
  };
998
- }), zs = /* @__PURE__ */ p("$ZodEmoji", (e, t) => {
999
- t.pattern ?? (t.pattern = Fo()), L.init(e, t);
1000
- }), ws = /* @__PURE__ */ p("$ZodNanoID", (e, t) => {
1001
- t.pattern ?? (t.pattern = $o), L.init(e, t);
1002
- }), Ds = /* @__PURE__ */ p("$ZodCUID", (e, t) => {
998
+ }), As = /* @__PURE__ */ p("$ZodEmoji", (e, t) => {
999
+ t.pattern ?? (t.pattern = Jo()), L.init(e, t);
1000
+ }), zs = /* @__PURE__ */ p("$ZodNanoID", (e, t) => {
1001
+ t.pattern ?? (t.pattern = Ro), L.init(e, t);
1002
+ }), ws = /* @__PURE__ */ p("$ZodCUID", (e, t) => {
1003
+ t.pattern ?? (t.pattern = So), L.init(e, t);
1004
+ }), Ds = /* @__PURE__ */ p("$ZodCUID2", (e, t) => {
1003
1005
  t.pattern ?? (t.pattern = xo), L.init(e, t);
1004
- }), js = /* @__PURE__ */ p("$ZodCUID2", (e, t) => {
1006
+ }), js = /* @__PURE__ */ p("$ZodULID", (e, t) => {
1005
1007
  t.pattern ?? (t.pattern = Zo), L.init(e, t);
1006
- }), Ts = /* @__PURE__ */ p("$ZodULID", (e, t) => {
1008
+ }), Ts = /* @__PURE__ */ p("$ZodXID", (e, t) => {
1007
1009
  t.pattern ?? (t.pattern = Po), L.init(e, t);
1008
- }), Os = /* @__PURE__ */ p("$ZodXID", (e, t) => {
1010
+ }), Os = /* @__PURE__ */ p("$ZodKSUID", (e, t) => {
1009
1011
  t.pattern ?? (t.pattern = Lo), L.init(e, t);
1010
- }), Es = /* @__PURE__ */ p("$ZodKSUID", (e, t) => {
1011
- t.pattern ?? (t.pattern = Ro), L.init(e, t);
1012
- }), Cs = /* @__PURE__ */ p("$ZodISODateTime", (e, t) => {
1013
- t.pattern ?? (t.pattern = es(t)), L.init(e, t);
1014
- }), ks = /* @__PURE__ */ p("$ZodISODate", (e, t) => {
1015
- t.pattern ?? (t.pattern = qo), L.init(e, t);
1016
- }), Ss = /* @__PURE__ */ p("$ZodISOTime", (e, t) => {
1012
+ }), Es = /* @__PURE__ */ p("$ZodISODateTime", (e, t) => {
1017
1013
  t.pattern ?? (t.pattern = Ko(t)), L.init(e, t);
1018
- }), xs = /* @__PURE__ */ p("$ZodISODuration", (e, t) => {
1019
- t.pattern ?? (t.pattern = Uo), L.init(e, t);
1020
- }), Zs = /* @__PURE__ */ p("$ZodIPv4", (e, t) => {
1021
- t.pattern ?? (t.pattern = Vo), L.init(e, t), e._zod.bag.format = "ipv4";
1022
- }), Ps = /* @__PURE__ */ p("$ZodIPv6", (e, t) => {
1023
- t.pattern ?? (t.pattern = Bo), L.init(e, t), e._zod.bag.format = "ipv6", e._zod.check = (r) => {
1014
+ }), Cs = /* @__PURE__ */ p("$ZodISODate", (e, t) => {
1015
+ t.pattern ?? (t.pattern = Xo), L.init(e, t);
1016
+ }), ks = /* @__PURE__ */ p("$ZodISOTime", (e, t) => {
1017
+ t.pattern ?? (t.pattern = qo(t)), L.init(e, t);
1018
+ }), Ss = /* @__PURE__ */ p("$ZodISODuration", (e, t) => {
1019
+ t.pattern ?? (t.pattern = $o), L.init(e, t);
1020
+ }), xs = /* @__PURE__ */ p("$ZodIPv4", (e, t) => {
1021
+ t.pattern ?? (t.pattern = Fo), L.init(e, t), e._zod.bag.format = "ipv4";
1022
+ }), Zs = /* @__PURE__ */ p("$ZodIPv6", (e, t) => {
1023
+ t.pattern ?? (t.pattern = Vo), L.init(e, t), e._zod.bag.format = "ipv6", e._zod.check = (r) => {
1024
1024
  try {
1025
1025
  new URL(`http://[${r.value}]`);
1026
1026
  } catch {
@@ -1033,10 +1033,10 @@ const Ms = {
1033
1033
  });
1034
1034
  }
1035
1035
  };
1036
- }), Ls = /* @__PURE__ */ p("$ZodCIDRv4", (e, t) => {
1037
- t.pattern ?? (t.pattern = Go), L.init(e, t);
1038
- }), Rs = /* @__PURE__ */ p("$ZodCIDRv6", (e, t) => {
1039
- t.pattern ?? (t.pattern = Wo), L.init(e, t), e._zod.check = (r) => {
1036
+ }), Ps = /* @__PURE__ */ p("$ZodCIDRv4", (e, t) => {
1037
+ t.pattern ?? (t.pattern = Bo), L.init(e, t);
1038
+ }), Ls = /* @__PURE__ */ p("$ZodCIDRv6", (e, t) => {
1039
+ t.pattern ?? (t.pattern = Go), L.init(e, t), e._zod.check = (r) => {
1040
1040
  const n = r.value.split("/");
1041
1041
  try {
1042
1042
  if (n.length !== 2)
@@ -1072,8 +1072,8 @@ function Ur(e) {
1072
1072
  return !1;
1073
1073
  }
1074
1074
  }
1075
- const $s = /* @__PURE__ */ p("$ZodBase64", (e, t) => {
1076
- t.pattern ?? (t.pattern = Ho), L.init(e, t), e._zod.bag.contentEncoding = "base64", e._zod.check = (r) => {
1075
+ const Rs = /* @__PURE__ */ p("$ZodBase64", (e, t) => {
1076
+ t.pattern ?? (t.pattern = Wo), L.init(e, t), e._zod.bag.contentEncoding = "base64", e._zod.check = (r) => {
1077
1077
  Ur(r.value) || r.issues.push({
1078
1078
  code: "invalid_format",
1079
1079
  format: "base64",
@@ -1083,15 +1083,15 @@ const $s = /* @__PURE__ */ p("$ZodBase64", (e, t) => {
1083
1083
  });
1084
1084
  };
1085
1085
  });
1086
- function Us(e) {
1086
+ function $s(e) {
1087
1087
  if (!Sr.test(e))
1088
1088
  return !1;
1089
1089
  const t = e.replace(/[-_]/g, (n) => n === "-" ? "+" : "/"), r = t.padEnd(Math.ceil(t.length / 4) * 4, "=");
1090
1090
  return Ur(r);
1091
1091
  }
1092
- const Ys = /* @__PURE__ */ p("$ZodBase64URL", (e, t) => {
1092
+ const Us = /* @__PURE__ */ p("$ZodBase64URL", (e, t) => {
1093
1093
  t.pattern ?? (t.pattern = Sr), L.init(e, t), e._zod.bag.contentEncoding = "base64url", e._zod.check = (r) => {
1094
- Us(r.value) || r.issues.push({
1094
+ $s(r.value) || r.issues.push({
1095
1095
  code: "invalid_format",
1096
1096
  format: "base64url",
1097
1097
  input: r.value,
@@ -1099,10 +1099,10 @@ const Ys = /* @__PURE__ */ p("$ZodBase64URL", (e, t) => {
1099
1099
  continue: !t.abort
1100
1100
  });
1101
1101
  };
1102
- }), Qs = /* @__PURE__ */ p("$ZodE164", (e, t) => {
1103
- t.pattern ?? (t.pattern = Xo), L.init(e, t);
1102
+ }), Ys = /* @__PURE__ */ p("$ZodE164", (e, t) => {
1103
+ t.pattern ?? (t.pattern = Ho), L.init(e, t);
1104
1104
  });
1105
- function Js(e, t = null) {
1105
+ function Qs(e, t = null) {
1106
1106
  try {
1107
1107
  const r = e.split(".");
1108
1108
  if (r.length !== 3)
@@ -1116,9 +1116,9 @@ function Js(e, t = null) {
1116
1116
  return !1;
1117
1117
  }
1118
1118
  }
1119
- const Fs = /* @__PURE__ */ p("$ZodJWT", (e, t) => {
1119
+ const Js = /* @__PURE__ */ p("$ZodJWT", (e, t) => {
1120
1120
  L.init(e, t), e._zod.check = (r) => {
1121
- Js(r.value, t.alg) || r.issues.push({
1121
+ Qs(r.value, t.alg) || r.issues.push({
1122
1122
  code: "invalid_format",
1123
1123
  format: "jwt",
1124
1124
  input: r.value,
@@ -1145,10 +1145,10 @@ const Fs = /* @__PURE__ */ p("$ZodJWT", (e, t) => {
1145
1145
  ...s ? { received: s } : {}
1146
1146
  }), r;
1147
1147
  };
1148
- }), Vs = /* @__PURE__ */ p("$ZodNumberFormat", (e, t) => {
1149
- us.init(e, t), Yr.init(e, t);
1150
- }), Bs = /* @__PURE__ */ p("$ZodBoolean", (e, t) => {
1151
- Z.init(e, t), e._zod.pattern = ns, e._zod.parse = (r, n) => {
1148
+ }), Fs = /* @__PURE__ */ p("$ZodNumberFormat", (e, t) => {
1149
+ is.init(e, t), Yr.init(e, t);
1150
+ }), Vs = /* @__PURE__ */ p("$ZodBoolean", (e, t) => {
1151
+ Z.init(e, t), e._zod.pattern = rs, e._zod.parse = (r, n) => {
1152
1152
  if (t.coerce)
1153
1153
  try {
1154
1154
  r.value = !!r.value;
@@ -1162,8 +1162,8 @@ const Fs = /* @__PURE__ */ p("$ZodJWT", (e, t) => {
1162
1162
  inst: e
1163
1163
  }), r;
1164
1164
  };
1165
- }), Gs = /* @__PURE__ */ p("$ZodNull", (e, t) => {
1166
- Z.init(e, t), e._zod.pattern = os, e._zod.values = /* @__PURE__ */ new Set([null]), e._zod.parse = (r, n) => {
1165
+ }), Bs = /* @__PURE__ */ p("$ZodNull", (e, t) => {
1166
+ Z.init(e, t), e._zod.pattern = ns, e._zod.values = /* @__PURE__ */ new Set([null]), e._zod.parse = (r, n) => {
1167
1167
  const o = r.value;
1168
1168
  return o === null || r.issues.push({
1169
1169
  expected: "null",
@@ -1172,9 +1172,9 @@ const Fs = /* @__PURE__ */ p("$ZodJWT", (e, t) => {
1172
1172
  inst: e
1173
1173
  }), r;
1174
1174
  };
1175
- }), Ws = /* @__PURE__ */ p("$ZodUnknown", (e, t) => {
1175
+ }), Gs = /* @__PURE__ */ p("$ZodUnknown", (e, t) => {
1176
1176
  Z.init(e, t), e._zod.parse = (r) => r;
1177
- }), Hs = /* @__PURE__ */ p("$ZodNever", (e, t) => {
1177
+ }), Ws = /* @__PURE__ */ p("$ZodNever", (e, t) => {
1178
1178
  Z.init(e, t), e._zod.parse = (r, n) => (r.issues.push({
1179
1179
  expected: "never",
1180
1180
  code: "invalid_type",
@@ -1185,7 +1185,7 @@ const Fs = /* @__PURE__ */ p("$ZodJWT", (e, t) => {
1185
1185
  function Rt(e, t, r) {
1186
1186
  e.issues.length && t.issues.push(...fe(r, e.issues)), t.value[r] = e.value;
1187
1187
  }
1188
- const Xs = /* @__PURE__ */ p("$ZodArray", (e, t) => {
1188
+ const Hs = /* @__PURE__ */ p("$ZodArray", (e, t) => {
1189
1189
  Z.init(e, t), e._zod.parse = (r, n) => {
1190
1190
  const o = r.value;
1191
1191
  if (!Array.isArray(o))
@@ -1207,7 +1207,7 @@ const Xs = /* @__PURE__ */ p("$ZodArray", (e, t) => {
1207
1207
  return s.length ? Promise.all(s).then(() => r) : r;
1208
1208
  };
1209
1209
  });
1210
- function Le(e, t, r, n, o) {
1210
+ function Pe(e, t, r, n, o) {
1211
1211
  if (e.issues.length) {
1212
1212
  if (o && !(r in n))
1213
1213
  return;
@@ -1221,7 +1221,7 @@ function Qr(e) {
1221
1221
  for (const a of t)
1222
1222
  if (!((i = (s = (o = (n = e.shape) == null ? void 0 : n[a]) == null ? void 0 : o._zod) == null ? void 0 : s.traits) != null && i.has("$ZodType")))
1223
1223
  throw new Error(`Invalid element at key "${a}": expected a Zod schema`);
1224
- const r = go(e.shape);
1224
+ const r = fo(e.shape);
1225
1225
  return {
1226
1226
  ...e,
1227
1227
  keys: t,
@@ -1240,7 +1240,7 @@ function Jr(e, t, r, n, o, s) {
1240
1240
  continue;
1241
1241
  }
1242
1242
  const y = c.run({ value: t[d], issues: [] }, n);
1243
- y instanceof Promise ? e.push(y.then((g) => Le(g, r, d, t, l))) : Le(y, r, d, t, l);
1243
+ y instanceof Promise ? e.push(y.then((g) => Pe(g, r, d, t, l))) : Pe(y, r, d, t, l);
1244
1244
  }
1245
1245
  return i.length && r.issues.push({
1246
1246
  code: "unrecognized_keys",
@@ -1249,7 +1249,7 @@ function Jr(e, t, r, n, o, s) {
1249
1249
  inst: s
1250
1250
  }), e.length ? Promise.all(e).then(() => r) : r;
1251
1251
  }
1252
- const qs = /* @__PURE__ */ p("$ZodObject", (e, t) => {
1252
+ const Xs = /* @__PURE__ */ p("$ZodObject", (e, t) => {
1253
1253
  Z.init(e, t);
1254
1254
  const r = Object.getOwnPropertyDescriptor(t, "shape");
1255
1255
  if (!(r != null && r.get)) {
@@ -1263,7 +1263,7 @@ const qs = /* @__PURE__ */ p("$ZodObject", (e, t) => {
1263
1263
  }
1264
1264
  });
1265
1265
  }
1266
- const n = Ve(() => Qr(t));
1266
+ const n = Fe(() => Qr(t));
1267
1267
  O(e._zod, "propValues", () => {
1268
1268
  const a = t.shape, c = {};
1269
1269
  for (const u in a) {
@@ -1276,7 +1276,7 @@ const qs = /* @__PURE__ */ p("$ZodObject", (e, t) => {
1276
1276
  }
1277
1277
  return c;
1278
1278
  });
1279
- const o = be, s = t.catchall;
1279
+ const o = Ae, s = t.catchall;
1280
1280
  let i;
1281
1281
  e._zod.parse = (a, c) => {
1282
1282
  i ?? (i = n.value);
@@ -1292,17 +1292,17 @@ const qs = /* @__PURE__ */ p("$ZodObject", (e, t) => {
1292
1292
  const l = [], d = i.shape;
1293
1293
  for (const y of i.keys) {
1294
1294
  const g = d[y], M = g._zod.optout === "optional", h = g._zod.run({ value: u[y], issues: [] }, c);
1295
- h instanceof Promise ? l.push(h.then((m) => Le(m, a, y, u, M))) : Le(h, a, y, u, M);
1295
+ h instanceof Promise ? l.push(h.then((m) => Pe(m, a, y, u, M))) : Pe(h, a, y, u, M);
1296
1296
  }
1297
1297
  return s ? Jr(l, u, a, c, n.value, e) : l.length ? Promise.all(l).then(() => a) : a;
1298
1298
  };
1299
- }), Ks = /* @__PURE__ */ p("$ZodObjectJIT", (e, t) => {
1300
- qs.init(e, t);
1301
- const r = e._zod.parse, n = Ve(() => Qr(t)), o = (y) => {
1299
+ }), qs = /* @__PURE__ */ p("$ZodObjectJIT", (e, t) => {
1300
+ Xs.init(e, t);
1301
+ const r = e._zod.parse, n = Fe(() => Qr(t)), o = (y) => {
1302
1302
  var f;
1303
- const g = new vs(["shape", "payload", "ctx"]), M = n.value, h = (z) => {
1304
- const D = Pt(z);
1305
- return `shape[${D}]._zod.run({ value: input[${D}], issues: [] }, ctx)`;
1303
+ const g = new ys(["shape", "payload", "ctx"]), M = n.value, h = (z) => {
1304
+ const w = Pt(z);
1305
+ return `shape[${w}]._zod.run({ value: input[${w}], issues: [] }, ctx)`;
1306
1306
  };
1307
1307
  g.write("const input = payload.value;");
1308
1308
  const m = /* @__PURE__ */ Object.create(null);
@@ -1311,49 +1311,49 @@ const qs = /* @__PURE__ */ p("$ZodObject", (e, t) => {
1311
1311
  m[z] = `key_${b++}`;
1312
1312
  g.write("const newResult = {};");
1313
1313
  for (const z of M.keys) {
1314
- const D = m[z], j = Pt(z), C = y[z], J = ((f = C == null ? void 0 : C._zod) == null ? void 0 : f.optout) === "optional";
1315
- g.write(`const ${D} = ${h(z)};`), J ? g.write(`
1316
- if (${D}.issues.length) {
1317
- if (${j} in input) {
1318
- payload.issues = payload.issues.concat(${D}.issues.map(iss => ({
1314
+ const w = m[z], D = Pt(z), C = y[z], J = ((f = C == null ? void 0 : C._zod) == null ? void 0 : f.optout) === "optional";
1315
+ g.write(`const ${w} = ${h(z)};`), J ? g.write(`
1316
+ if (${w}.issues.length) {
1317
+ if (${D} in input) {
1318
+ payload.issues = payload.issues.concat(${w}.issues.map(iss => ({
1319
1319
  ...iss,
1320
- path: iss.path ? [${j}, ...iss.path] : [${j}]
1320
+ path: iss.path ? [${D}, ...iss.path] : [${D}]
1321
1321
  })));
1322
1322
  }
1323
1323
  }
1324
1324
 
1325
- if (${D}.value === undefined) {
1326
- if (${j} in input) {
1327
- newResult[${j}] = undefined;
1325
+ if (${w}.value === undefined) {
1326
+ if (${D} in input) {
1327
+ newResult[${D}] = undefined;
1328
1328
  }
1329
1329
  } else {
1330
- newResult[${j}] = ${D}.value;
1330
+ newResult[${D}] = ${w}.value;
1331
1331
  }
1332
1332
 
1333
1333
  `) : g.write(`
1334
- if (${D}.issues.length) {
1335
- payload.issues = payload.issues.concat(${D}.issues.map(iss => ({
1334
+ if (${w}.issues.length) {
1335
+ payload.issues = payload.issues.concat(${w}.issues.map(iss => ({
1336
1336
  ...iss,
1337
- path: iss.path ? [${j}, ...iss.path] : [${j}]
1337
+ path: iss.path ? [${D}, ...iss.path] : [${D}]
1338
1338
  })));
1339
1339
  }
1340
1340
 
1341
- if (${D}.value === undefined) {
1342
- if (${j} in input) {
1343
- newResult[${j}] = undefined;
1341
+ if (${w}.value === undefined) {
1342
+ if (${D} in input) {
1343
+ newResult[${D}] = undefined;
1344
1344
  }
1345
1345
  } else {
1346
- newResult[${j}] = ${D}.value;
1346
+ newResult[${D}] = ${w}.value;
1347
1347
  }
1348
1348
 
1349
1349
  `);
1350
1350
  }
1351
1351
  g.write("payload.value = newResult;"), g.write("return payload;");
1352
1352
  const N = g.compile();
1353
- return (z, D) => N(y, z, D);
1353
+ return (z, w) => N(y, z, w);
1354
1354
  };
1355
1355
  let s;
1356
- const i = be, a = !ot.jitless, u = a && po.value, l = t.catchall;
1356
+ const i = Ae, a = !ot.jitless, u = a && lo.value, l = t.catchall;
1357
1357
  let d;
1358
1358
  e._zod.parse = (y, g) => {
1359
1359
  d ?? (d = n.value);
@@ -1409,7 +1409,7 @@ const Fr = /* @__PURE__ */ p("$ZodUnion", (e, t) => {
1409
1409
  }
1410
1410
  return i ? Promise.all(a).then((c) => $t(c, o, e, s)) : $t(a, o, e, s);
1411
1411
  };
1412
- }), ea = /* @__PURE__ */ p("$ZodDiscriminatedUnion", (e, t) => {
1412
+ }), Ks = /* @__PURE__ */ p("$ZodDiscriminatedUnion", (e, t) => {
1413
1413
  t.inclusive = !1, Fr.init(e, t);
1414
1414
  const r = e._zod.parse;
1415
1415
  O(e._zod, "propValues", () => {
@@ -1426,7 +1426,7 @@ const Fr = /* @__PURE__ */ p("$ZodUnion", (e, t) => {
1426
1426
  }
1427
1427
  return o;
1428
1428
  });
1429
- const n = Ve(() => {
1429
+ const n = Fe(() => {
1430
1430
  var i;
1431
1431
  const o = t.options, s = /* @__PURE__ */ new Map();
1432
1432
  for (const a of o) {
@@ -1443,7 +1443,7 @@ const Fr = /* @__PURE__ */ p("$ZodUnion", (e, t) => {
1443
1443
  });
1444
1444
  e._zod.parse = (o, s) => {
1445
1445
  const i = o.value;
1446
- if (!be(i))
1446
+ if (!Ae(i))
1447
1447
  return o.issues.push({
1448
1448
  code: "invalid_type",
1449
1449
  expected: "object",
@@ -1461,7 +1461,7 @@ const Fr = /* @__PURE__ */ p("$ZodUnion", (e, t) => {
1461
1461
  inst: e
1462
1462
  }), o);
1463
1463
  };
1464
- }), ta = /* @__PURE__ */ p("$ZodIntersection", (e, t) => {
1464
+ }), ea = /* @__PURE__ */ p("$ZodIntersection", (e, t) => {
1465
1465
  Z.init(e, t), e._zod.parse = (r, n) => {
1466
1466
  const o = r.value, s = t.left._zod.run({ value: o, issues: [] }, n), i = t.right._zod.run({ value: o, issues: [] }, n);
1467
1467
  return s instanceof Promise || i instanceof Promise ? Promise.all([s, i]).then(([c, u]) => Ut(r, c, u)) : Ut(r, s, i);
@@ -1526,7 +1526,7 @@ function Ut(e, t, r) {
1526
1526
  throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(i.mergeErrorPath)}`);
1527
1527
  return e.value = i.data, e;
1528
1528
  }
1529
- const ra = /* @__PURE__ */ p("$ZodRecord", (e, t) => {
1529
+ const ta = /* @__PURE__ */ p("$ZodRecord", (e, t) => {
1530
1530
  Z.init(e, t), e._zod.parse = (r, n) => {
1531
1531
  const o = r.value;
1532
1532
  if (!he(o))
@@ -1590,10 +1590,10 @@ const ra = /* @__PURE__ */ p("$ZodRecord", (e, t) => {
1590
1590
  }
1591
1591
  return s.length ? Promise.all(s).then(() => r) : r;
1592
1592
  };
1593
- }), na = /* @__PURE__ */ p("$ZodEnum", (e, t) => {
1593
+ }), ra = /* @__PURE__ */ p("$ZodEnum", (e, t) => {
1594
1594
  Z.init(e, t);
1595
1595
  const r = jr(t.entries), n = new Set(r);
1596
- e._zod.values = n, e._zod.pattern = new RegExp(`^(${r.filter((o) => fo.has(typeof o)).map((o) => typeof o == "string" ? Ie(o) : o.toString()).join("|")})$`), e._zod.parse = (o, s) => {
1596
+ e._zod.values = n, e._zod.pattern = new RegExp(`^(${r.filter((o) => po.has(typeof o)).map((o) => typeof o == "string" ? Ie(o) : o.toString()).join("|")})$`), e._zod.parse = (o, s) => {
1597
1597
  const i = o.value;
1598
1598
  return n.has(i) || o.issues.push({
1599
1599
  code: "invalid_value",
@@ -1602,7 +1602,7 @@ const ra = /* @__PURE__ */ p("$ZodRecord", (e, t) => {
1602
1602
  inst: e
1603
1603
  }), o;
1604
1604
  };
1605
- }), oa = /* @__PURE__ */ p("$ZodLiteral", (e, t) => {
1605
+ }), na = /* @__PURE__ */ p("$ZodLiteral", (e, t) => {
1606
1606
  if (Z.init(e, t), t.values.length === 0)
1607
1607
  throw new Error("Cannot create literal schema with no valid values");
1608
1608
  const r = new Set(t.values);
@@ -1615,7 +1615,7 @@ const ra = /* @__PURE__ */ p("$ZodRecord", (e, t) => {
1615
1615
  inst: e
1616
1616
  }), n;
1617
1617
  };
1618
- }), sa = /* @__PURE__ */ p("$ZodTransform", (e, t) => {
1618
+ }), oa = /* @__PURE__ */ p("$ZodTransform", (e, t) => {
1619
1619
  Z.init(e, t), e._zod.parse = (r, n) => {
1620
1620
  if (n.direction === "backward")
1621
1621
  throw new Dr(e.constructor.name);
@@ -1641,14 +1641,14 @@ const Vr = /* @__PURE__ */ p("$ZodOptional", (e, t) => {
1641
1641
  }
1642
1642
  return r.value === void 0 ? r : t.innerType._zod.run(r, n);
1643
1643
  };
1644
- }), aa = /* @__PURE__ */ p("$ZodExactOptional", (e, t) => {
1644
+ }), sa = /* @__PURE__ */ p("$ZodExactOptional", (e, t) => {
1645
1645
  Vr.init(e, t), O(e._zod, "values", () => t.innerType._zod.values), O(e._zod, "pattern", () => t.innerType._zod.pattern), e._zod.parse = (r, n) => t.innerType._zod.run(r, n);
1646
- }), ia = /* @__PURE__ */ p("$ZodNullable", (e, t) => {
1646
+ }), aa = /* @__PURE__ */ p("$ZodNullable", (e, t) => {
1647
1647
  Z.init(e, t), O(e._zod, "optin", () => t.innerType._zod.optin), O(e._zod, "optout", () => t.innerType._zod.optout), O(e._zod, "pattern", () => {
1648
1648
  const r = t.innerType._zod.pattern;
1649
1649
  return r ? new RegExp(`^(${ft(r.source)}|null)$`) : void 0;
1650
1650
  }), O(e._zod, "values", () => t.innerType._zod.values ? /* @__PURE__ */ new Set([...t.innerType._zod.values, null]) : void 0), e._zod.parse = (r, n) => r.value === null ? r : t.innerType._zod.run(r, n);
1651
- }), ua = /* @__PURE__ */ p("$ZodDefault", (e, t) => {
1651
+ }), ia = /* @__PURE__ */ p("$ZodDefault", (e, t) => {
1652
1652
  Z.init(e, t), e._zod.optin = "optional", O(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (r, n) => {
1653
1653
  if (n.direction === "backward")
1654
1654
  return t.innerType._zod.run(r, n);
@@ -1661,9 +1661,9 @@ const Vr = /* @__PURE__ */ p("$ZodOptional", (e, t) => {
1661
1661
  function Qt(e, t) {
1662
1662
  return e.value === void 0 && (e.value = t.defaultValue), e;
1663
1663
  }
1664
- const ca = /* @__PURE__ */ p("$ZodPrefault", (e, t) => {
1664
+ const ua = /* @__PURE__ */ p("$ZodPrefault", (e, t) => {
1665
1665
  Z.init(e, t), e._zod.optin = "optional", O(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (r, n) => (n.direction === "backward" || r.value === void 0 && (r.value = t.defaultValue), t.innerType._zod.run(r, n));
1666
- }), la = /* @__PURE__ */ p("$ZodNonOptional", (e, t) => {
1666
+ }), ca = /* @__PURE__ */ p("$ZodNonOptional", (e, t) => {
1667
1667
  Z.init(e, t), O(e._zod, "values", () => {
1668
1668
  const r = t.innerType._zod.values;
1669
1669
  return r ? new Set([...r].filter((n) => n !== void 0)) : void 0;
@@ -1680,7 +1680,7 @@ function Jt(e, t) {
1680
1680
  inst: t
1681
1681
  }), e;
1682
1682
  }
1683
- const da = /* @__PURE__ */ p("$ZodCatch", (e, t) => {
1683
+ const la = /* @__PURE__ */ p("$ZodCatch", (e, t) => {
1684
1684
  Z.init(e, t), O(e._zod, "optin", () => t.innerType._zod.optin), O(e._zod, "optout", () => t.innerType._zod.optout), O(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (r, n) => {
1685
1685
  if (n.direction === "backward")
1686
1686
  return t.innerType._zod.run(r, n);
@@ -1699,20 +1699,20 @@ const da = /* @__PURE__ */ p("$ZodCatch", (e, t) => {
1699
1699
  input: r.value
1700
1700
  }), r.issues = []), r);
1701
1701
  };
1702
- }), pa = /* @__PURE__ */ p("$ZodPipe", (e, t) => {
1702
+ }), da = /* @__PURE__ */ p("$ZodPipe", (e, t) => {
1703
1703
  Z.init(e, t), O(e._zod, "values", () => t.in._zod.values), O(e._zod, "optin", () => t.in._zod.optin), O(e._zod, "optout", () => t.out._zod.optout), O(e._zod, "propValues", () => t.in._zod.propValues), e._zod.parse = (r, n) => {
1704
1704
  if (n.direction === "backward") {
1705
1705
  const s = t.out._zod.run(r, n);
1706
- return s instanceof Promise ? s.then((i) => Ze(i, t.in, n)) : Ze(s, t.in, n);
1706
+ return s instanceof Promise ? s.then((i) => xe(i, t.in, n)) : xe(s, t.in, n);
1707
1707
  }
1708
1708
  const o = t.in._zod.run(r, n);
1709
- return o instanceof Promise ? o.then((s) => Ze(s, t.out, n)) : Ze(o, t.out, n);
1709
+ return o instanceof Promise ? o.then((s) => xe(s, t.out, n)) : xe(o, t.out, n);
1710
1710
  };
1711
1711
  });
1712
- function Ze(e, t, r) {
1712
+ function xe(e, t, r) {
1713
1713
  return e.issues.length ? (e.aborted = !0, e) : t._zod.run({ value: e.value, issues: e.issues }, r);
1714
1714
  }
1715
- const fa = /* @__PURE__ */ p("$ZodReadonly", (e, t) => {
1715
+ const pa = /* @__PURE__ */ p("$ZodReadonly", (e, t) => {
1716
1716
  Z.init(e, t), O(e._zod, "propValues", () => t.innerType._zod.propValues), O(e._zod, "values", () => t.innerType._zod.values), O(e._zod, "optin", () => {
1717
1717
  var r, n;
1718
1718
  return (n = (r = t.innerType) == null ? void 0 : r._zod) == null ? void 0 : n.optin;
@@ -1729,7 +1729,7 @@ const fa = /* @__PURE__ */ p("$ZodReadonly", (e, t) => {
1729
1729
  function Ft(e) {
1730
1730
  return e.value = Object.freeze(e.value), e;
1731
1731
  }
1732
- const ga = /* @__PURE__ */ p("$ZodLazy", (e, t) => {
1732
+ const fa = /* @__PURE__ */ p("$ZodLazy", (e, t) => {
1733
1733
  Z.init(e, t), O(e._zod, "innerType", () => t.getter()), O(e._zod, "pattern", () => {
1734
1734
  var r, n;
1735
1735
  return (n = (r = e._zod.innerType) == null ? void 0 : r._zod) == null ? void 0 : n.pattern;
@@ -1743,7 +1743,7 @@ const ga = /* @__PURE__ */ p("$ZodLazy", (e, t) => {
1743
1743
  var r, n;
1744
1744
  return ((n = (r = e._zod.innerType) == null ? void 0 : r._zod) == null ? void 0 : n.optout) ?? void 0;
1745
1745
  }), e._zod.parse = (r, n) => e._zod.innerType._zod.run(r, n);
1746
- }), ma = /* @__PURE__ */ p("$ZodCustom", (e, t) => {
1746
+ }), ga = /* @__PURE__ */ p("$ZodCustom", (e, t) => {
1747
1747
  F.init(e, t), Z.init(e, t), e._zod.parse = (r, n) => r, e._zod.check = (r) => {
1748
1748
  const n = r.value, o = t.fn(n);
1749
1749
  if (o instanceof Promise)
@@ -1763,11 +1763,11 @@ function Vt(e, t, r, n) {
1763
1763
  continue: !n._zod.def.abort
1764
1764
  // params: inst._zod.def.params,
1765
1765
  };
1766
- n._zod.def.params && (o.params = n._zod.def.params), t.issues.push(Ae(o));
1766
+ n._zod.def.params && (o.params = n._zod.def.params), t.issues.push(ze(o));
1767
1767
  }
1768
1768
  }
1769
1769
  var Bt;
1770
- class ha {
1770
+ class ma {
1771
1771
  constructor() {
1772
1772
  this._map = /* @__PURE__ */ new WeakMap(), this._idmap = /* @__PURE__ */ new Map();
1773
1773
  }
@@ -1796,20 +1796,20 @@ class ha {
1796
1796
  return this._map.has(t);
1797
1797
  }
1798
1798
  }
1799
- function Ia() {
1800
- return new ha();
1799
+ function ha() {
1800
+ return new ma();
1801
1801
  }
1802
- (Bt = globalThis).__zod_globalRegistry ?? (Bt.__zod_globalRegistry = Ia());
1803
- const Ne = globalThis.__zod_globalRegistry;
1802
+ (Bt = globalThis).__zod_globalRegistry ?? (Bt.__zod_globalRegistry = ha());
1803
+ const be = globalThis.__zod_globalRegistry;
1804
1804
  // @__NO_SIDE_EFFECTS__
1805
- function ya(e, t) {
1805
+ function Ia(e, t) {
1806
1806
  return new e({
1807
1807
  type: "string",
1808
1808
  ...v(t)
1809
1809
  });
1810
1810
  }
1811
1811
  // @__NO_SIDE_EFFECTS__
1812
- function va(e, t) {
1812
+ function ya(e, t) {
1813
1813
  return new e({
1814
1814
  type: "string",
1815
1815
  format: "email",
@@ -1829,7 +1829,7 @@ function Gt(e, t) {
1829
1829
  });
1830
1830
  }
1831
1831
  // @__NO_SIDE_EFFECTS__
1832
- function Ma(e, t) {
1832
+ function va(e, t) {
1833
1833
  return new e({
1834
1834
  type: "string",
1835
1835
  format: "uuid",
@@ -1839,7 +1839,7 @@ function Ma(e, t) {
1839
1839
  });
1840
1840
  }
1841
1841
  // @__NO_SIDE_EFFECTS__
1842
- function _a(e, t) {
1842
+ function Ma(e, t) {
1843
1843
  return new e({
1844
1844
  type: "string",
1845
1845
  format: "uuid",
@@ -1850,7 +1850,7 @@ function _a(e, t) {
1850
1850
  });
1851
1851
  }
1852
1852
  // @__NO_SIDE_EFFECTS__
1853
- function Na(e, t) {
1853
+ function _a(e, t) {
1854
1854
  return new e({
1855
1855
  type: "string",
1856
1856
  format: "uuid",
@@ -1861,7 +1861,7 @@ function Na(e, t) {
1861
1861
  });
1862
1862
  }
1863
1863
  // @__NO_SIDE_EFFECTS__
1864
- function ba(e, t) {
1864
+ function Na(e, t) {
1865
1865
  return new e({
1866
1866
  type: "string",
1867
1867
  format: "uuid",
@@ -1872,7 +1872,7 @@ function ba(e, t) {
1872
1872
  });
1873
1873
  }
1874
1874
  // @__NO_SIDE_EFFECTS__
1875
- function Aa(e, t) {
1875
+ function ba(e, t) {
1876
1876
  return new e({
1877
1877
  type: "string",
1878
1878
  format: "url",
@@ -1882,7 +1882,7 @@ function Aa(e, t) {
1882
1882
  });
1883
1883
  }
1884
1884
  // @__NO_SIDE_EFFECTS__
1885
- function za(e, t) {
1885
+ function Aa(e, t) {
1886
1886
  return new e({
1887
1887
  type: "string",
1888
1888
  format: "emoji",
@@ -1892,7 +1892,7 @@ function za(e, t) {
1892
1892
  });
1893
1893
  }
1894
1894
  // @__NO_SIDE_EFFECTS__
1895
- function wa(e, t) {
1895
+ function za(e, t) {
1896
1896
  return new e({
1897
1897
  type: "string",
1898
1898
  format: "nanoid",
@@ -1902,7 +1902,7 @@ function wa(e, t) {
1902
1902
  });
1903
1903
  }
1904
1904
  // @__NO_SIDE_EFFECTS__
1905
- function Da(e, t) {
1905
+ function wa(e, t) {
1906
1906
  return new e({
1907
1907
  type: "string",
1908
1908
  format: "cuid",
@@ -1912,7 +1912,7 @@ function Da(e, t) {
1912
1912
  });
1913
1913
  }
1914
1914
  // @__NO_SIDE_EFFECTS__
1915
- function ja(e, t) {
1915
+ function Da(e, t) {
1916
1916
  return new e({
1917
1917
  type: "string",
1918
1918
  format: "cuid2",
@@ -1922,7 +1922,7 @@ function ja(e, t) {
1922
1922
  });
1923
1923
  }
1924
1924
  // @__NO_SIDE_EFFECTS__
1925
- function Ta(e, t) {
1925
+ function ja(e, t) {
1926
1926
  return new e({
1927
1927
  type: "string",
1928
1928
  format: "ulid",
@@ -1932,7 +1932,7 @@ function Ta(e, t) {
1932
1932
  });
1933
1933
  }
1934
1934
  // @__NO_SIDE_EFFECTS__
1935
- function Oa(e, t) {
1935
+ function Ta(e, t) {
1936
1936
  return new e({
1937
1937
  type: "string",
1938
1938
  format: "xid",
@@ -1942,7 +1942,7 @@ function Oa(e, t) {
1942
1942
  });
1943
1943
  }
1944
1944
  // @__NO_SIDE_EFFECTS__
1945
- function Ea(e, t) {
1945
+ function Oa(e, t) {
1946
1946
  return new e({
1947
1947
  type: "string",
1948
1948
  format: "ksuid",
@@ -1952,7 +1952,7 @@ function Ea(e, t) {
1952
1952
  });
1953
1953
  }
1954
1954
  // @__NO_SIDE_EFFECTS__
1955
- function Ca(e, t) {
1955
+ function Ea(e, t) {
1956
1956
  return new e({
1957
1957
  type: "string",
1958
1958
  format: "ipv4",
@@ -1962,7 +1962,7 @@ function Ca(e, t) {
1962
1962
  });
1963
1963
  }
1964
1964
  // @__NO_SIDE_EFFECTS__
1965
- function ka(e, t) {
1965
+ function Ca(e, t) {
1966
1966
  return new e({
1967
1967
  type: "string",
1968
1968
  format: "ipv6",
@@ -1972,7 +1972,7 @@ function ka(e, t) {
1972
1972
  });
1973
1973
  }
1974
1974
  // @__NO_SIDE_EFFECTS__
1975
- function Sa(e, t) {
1975
+ function ka(e, t) {
1976
1976
  return new e({
1977
1977
  type: "string",
1978
1978
  format: "cidrv4",
@@ -1982,7 +1982,7 @@ function Sa(e, t) {
1982
1982
  });
1983
1983
  }
1984
1984
  // @__NO_SIDE_EFFECTS__
1985
- function xa(e, t) {
1985
+ function Sa(e, t) {
1986
1986
  return new e({
1987
1987
  type: "string",
1988
1988
  format: "cidrv6",
@@ -1992,7 +1992,7 @@ function xa(e, t) {
1992
1992
  });
1993
1993
  }
1994
1994
  // @__NO_SIDE_EFFECTS__
1995
- function Za(e, t) {
1995
+ function xa(e, t) {
1996
1996
  return new e({
1997
1997
  type: "string",
1998
1998
  format: "base64",
@@ -2002,7 +2002,7 @@ function Za(e, t) {
2002
2002
  });
2003
2003
  }
2004
2004
  // @__NO_SIDE_EFFECTS__
2005
- function Pa(e, t) {
2005
+ function Za(e, t) {
2006
2006
  return new e({
2007
2007
  type: "string",
2008
2008
  format: "base64url",
@@ -2012,7 +2012,7 @@ function Pa(e, t) {
2012
2012
  });
2013
2013
  }
2014
2014
  // @__NO_SIDE_EFFECTS__
2015
- function La(e, t) {
2015
+ function Pa(e, t) {
2016
2016
  return new e({
2017
2017
  type: "string",
2018
2018
  format: "e164",
@@ -2022,7 +2022,7 @@ function La(e, t) {
2022
2022
  });
2023
2023
  }
2024
2024
  // @__NO_SIDE_EFFECTS__
2025
- function Ra(e, t) {
2025
+ function La(e, t) {
2026
2026
  return new e({
2027
2027
  type: "string",
2028
2028
  format: "jwt",
@@ -2032,7 +2032,7 @@ function Ra(e, t) {
2032
2032
  });
2033
2033
  }
2034
2034
  // @__NO_SIDE_EFFECTS__
2035
- function $a(e, t) {
2035
+ function Ra(e, t) {
2036
2036
  return new e({
2037
2037
  type: "string",
2038
2038
  format: "datetime",
@@ -2044,7 +2044,7 @@ function $a(e, t) {
2044
2044
  });
2045
2045
  }
2046
2046
  // @__NO_SIDE_EFFECTS__
2047
- function Ua(e, t) {
2047
+ function $a(e, t) {
2048
2048
  return new e({
2049
2049
  type: "string",
2050
2050
  format: "date",
@@ -2053,7 +2053,7 @@ function Ua(e, t) {
2053
2053
  });
2054
2054
  }
2055
2055
  // @__NO_SIDE_EFFECTS__
2056
- function Ya(e, t) {
2056
+ function Ua(e, t) {
2057
2057
  return new e({
2058
2058
  type: "string",
2059
2059
  format: "time",
@@ -2063,7 +2063,7 @@ function Ya(e, t) {
2063
2063
  });
2064
2064
  }
2065
2065
  // @__NO_SIDE_EFFECTS__
2066
- function Qa(e, t) {
2066
+ function Ya(e, t) {
2067
2067
  return new e({
2068
2068
  type: "string",
2069
2069
  format: "duration",
@@ -2072,7 +2072,7 @@ function Qa(e, t) {
2072
2072
  });
2073
2073
  }
2074
2074
  // @__NO_SIDE_EFFECTS__
2075
- function Ja(e, t) {
2075
+ function Qa(e, t) {
2076
2076
  return new e({
2077
2077
  type: "number",
2078
2078
  checks: [],
@@ -2080,7 +2080,7 @@ function Ja(e, t) {
2080
2080
  });
2081
2081
  }
2082
2082
  // @__NO_SIDE_EFFECTS__
2083
- function Fa(e, t) {
2083
+ function Ja(e, t) {
2084
2084
  return new e({
2085
2085
  type: "number",
2086
2086
  check: "number_format",
@@ -2090,27 +2090,27 @@ function Fa(e, t) {
2090
2090
  });
2091
2091
  }
2092
2092
  // @__NO_SIDE_EFFECTS__
2093
- function Va(e, t) {
2093
+ function Fa(e, t) {
2094
2094
  return new e({
2095
2095
  type: "boolean",
2096
2096
  ...v(t)
2097
2097
  });
2098
2098
  }
2099
2099
  // @__NO_SIDE_EFFECTS__
2100
- function Ba(e, t) {
2100
+ function Va(e, t) {
2101
2101
  return new e({
2102
2102
  type: "null",
2103
2103
  ...v(t)
2104
2104
  });
2105
2105
  }
2106
2106
  // @__NO_SIDE_EFFECTS__
2107
- function Ga(e) {
2107
+ function Ba(e) {
2108
2108
  return new e({
2109
2109
  type: "unknown"
2110
2110
  });
2111
2111
  }
2112
2112
  // @__NO_SIDE_EFFECTS__
2113
- function Wa(e, t) {
2113
+ function Ga(e, t) {
2114
2114
  return new e({
2115
2115
  type: "never",
2116
2116
  ...v(t)
@@ -2154,7 +2154,7 @@ function qe(e, t) {
2154
2154
  }
2155
2155
  // @__NO_SIDE_EFFECTS__
2156
2156
  function Xt(e, t) {
2157
- return new is({
2157
+ return new as({
2158
2158
  check: "multiple_of",
2159
2159
  ...v(t),
2160
2160
  value: e
@@ -2162,15 +2162,15 @@ function Xt(e, t) {
2162
2162
  }
2163
2163
  // @__NO_SIDE_EFFECTS__
2164
2164
  function Br(e, t) {
2165
- return new cs({
2165
+ return new us({
2166
2166
  check: "max_length",
2167
2167
  ...v(t),
2168
2168
  maximum: e
2169
2169
  });
2170
2170
  }
2171
2171
  // @__NO_SIDE_EFFECTS__
2172
- function Re(e, t) {
2173
- return new ls({
2172
+ function Le(e, t) {
2173
+ return new cs({
2174
2174
  check: "min_length",
2175
2175
  ...v(t),
2176
2176
  minimum: e
@@ -2178,15 +2178,15 @@ function Re(e, t) {
2178
2178
  }
2179
2179
  // @__NO_SIDE_EFFECTS__
2180
2180
  function Gr(e, t) {
2181
- return new ds({
2181
+ return new ls({
2182
2182
  check: "length_equals",
2183
2183
  ...v(t),
2184
2184
  length: e
2185
2185
  });
2186
2186
  }
2187
2187
  // @__NO_SIDE_EFFECTS__
2188
- function Ha(e, t) {
2189
- return new ps({
2188
+ function Wa(e, t) {
2189
+ return new ds({
2190
2190
  check: "string_format",
2191
2191
  format: "regex",
2192
2192
  ...v(t),
@@ -2194,24 +2194,24 @@ function Ha(e, t) {
2194
2194
  });
2195
2195
  }
2196
2196
  // @__NO_SIDE_EFFECTS__
2197
- function Xa(e) {
2198
- return new fs({
2197
+ function Ha(e) {
2198
+ return new ps({
2199
2199
  check: "string_format",
2200
2200
  format: "lowercase",
2201
2201
  ...v(e)
2202
2202
  });
2203
2203
  }
2204
2204
  // @__NO_SIDE_EFFECTS__
2205
- function qa(e) {
2206
- return new gs({
2205
+ function Xa(e) {
2206
+ return new fs({
2207
2207
  check: "string_format",
2208
2208
  format: "uppercase",
2209
2209
  ...v(e)
2210
2210
  });
2211
2211
  }
2212
2212
  // @__NO_SIDE_EFFECTS__
2213
- function Ka(e, t) {
2214
- return new ms({
2213
+ function qa(e, t) {
2214
+ return new gs({
2215
2215
  check: "string_format",
2216
2216
  format: "includes",
2217
2217
  ...v(t),
@@ -2219,8 +2219,8 @@ function Ka(e, t) {
2219
2219
  });
2220
2220
  }
2221
2221
  // @__NO_SIDE_EFFECTS__
2222
- function ei(e, t) {
2223
- return new hs({
2222
+ function Ka(e, t) {
2223
+ return new ms({
2224
2224
  check: "string_format",
2225
2225
  format: "starts_with",
2226
2226
  ...v(t),
@@ -2228,8 +2228,8 @@ function ei(e, t) {
2228
2228
  });
2229
2229
  }
2230
2230
  // @__NO_SIDE_EFFECTS__
2231
- function ti(e, t) {
2232
- return new Is({
2231
+ function ei(e, t) {
2232
+ return new hs({
2233
2233
  check: "string_format",
2234
2234
  format: "ends_with",
2235
2235
  ...v(t),
@@ -2238,33 +2238,33 @@ function ti(e, t) {
2238
2238
  }
2239
2239
  // @__NO_SIDE_EFFECTS__
2240
2240
  function ye(e) {
2241
- return new ys({
2241
+ return new Is({
2242
2242
  check: "overwrite",
2243
2243
  tx: e
2244
2244
  });
2245
2245
  }
2246
2246
  // @__NO_SIDE_EFFECTS__
2247
- function ri(e) {
2247
+ function ti(e) {
2248
2248
  return /* @__PURE__ */ ye((t) => t.normalize(e));
2249
2249
  }
2250
2250
  // @__NO_SIDE_EFFECTS__
2251
- function ni() {
2251
+ function ri() {
2252
2252
  return /* @__PURE__ */ ye((e) => e.trim());
2253
2253
  }
2254
2254
  // @__NO_SIDE_EFFECTS__
2255
- function oi() {
2255
+ function ni() {
2256
2256
  return /* @__PURE__ */ ye((e) => e.toLowerCase());
2257
2257
  }
2258
2258
  // @__NO_SIDE_EFFECTS__
2259
- function si() {
2259
+ function oi() {
2260
2260
  return /* @__PURE__ */ ye((e) => e.toUpperCase());
2261
2261
  }
2262
2262
  // @__NO_SIDE_EFFECTS__
2263
- function ai() {
2264
- return /* @__PURE__ */ ye((e) => lo(e));
2263
+ function si() {
2264
+ return /* @__PURE__ */ ye((e) => co(e));
2265
2265
  }
2266
2266
  // @__NO_SIDE_EFFECTS__
2267
- function ii(e, t, r) {
2267
+ function ai(e, t, r) {
2268
2268
  return new e({
2269
2269
  type: "array",
2270
2270
  element: t,
@@ -2275,7 +2275,7 @@ function ii(e, t, r) {
2275
2275
  });
2276
2276
  }
2277
2277
  // @__NO_SIDE_EFFECTS__
2278
- function ui(e, t, r) {
2278
+ function ii(e, t, r) {
2279
2279
  const n = v(r);
2280
2280
  return n.abort ?? (n.abort = !0), new e({
2281
2281
  type: "custom",
@@ -2285,7 +2285,7 @@ function ui(e, t, r) {
2285
2285
  });
2286
2286
  }
2287
2287
  // @__NO_SIDE_EFFECTS__
2288
- function ci(e, t, r) {
2288
+ function ui(e, t, r) {
2289
2289
  return new e({
2290
2290
  type: "custom",
2291
2291
  check: "custom",
@@ -2294,30 +2294,30 @@ function ci(e, t, r) {
2294
2294
  });
2295
2295
  }
2296
2296
  // @__NO_SIDE_EFFECTS__
2297
- function li(e) {
2298
- const t = /* @__PURE__ */ di((r) => (r.addIssue = (n) => {
2297
+ function ci(e) {
2298
+ const t = /* @__PURE__ */ li((r) => (r.addIssue = (n) => {
2299
2299
  if (typeof n == "string")
2300
- r.issues.push(Ae(n, r.value, t._zod.def));
2300
+ r.issues.push(ze(n, r.value, t._zod.def));
2301
2301
  else {
2302
2302
  const o = n;
2303
- o.fatal && (o.continue = !1), o.code ?? (o.code = "custom"), o.input ?? (o.input = r.value), o.inst ?? (o.inst = t), o.continue ?? (o.continue = !t._zod.def.abort), r.issues.push(Ae(o));
2303
+ o.fatal && (o.continue = !1), o.code ?? (o.code = "custom"), o.input ?? (o.input = r.value), o.inst ?? (o.inst = t), o.continue ?? (o.continue = !t._zod.def.abort), r.issues.push(ze(o));
2304
2304
  }
2305
2305
  }, e(r.value, r)));
2306
2306
  return t;
2307
2307
  }
2308
2308
  // @__NO_SIDE_EFFECTS__
2309
- function di(e, t) {
2309
+ function li(e, t) {
2310
2310
  const r = new F({
2311
2311
  check: "custom",
2312
2312
  ...v(t)
2313
2313
  });
2314
2314
  return r._zod.check = e, r;
2315
2315
  }
2316
- function $e(e) {
2316
+ function Re(e) {
2317
2317
  let t = (e == null ? void 0 : e.target) ?? "draft-2020-12";
2318
2318
  return t === "draft-4" && (t = "draft-04"), t === "draft-7" && (t = "draft-07"), {
2319
2319
  processors: e.processors ?? {},
2320
- metadataRegistry: (e == null ? void 0 : e.metadata) ?? Ne,
2320
+ metadataRegistry: (e == null ? void 0 : e.metadata) ?? be,
2321
2321
  target: t,
2322
2322
  unrepresentable: (e == null ? void 0 : e.unrepresentable) ?? "throw",
2323
2323
  override: (e == null ? void 0 : e.override) ?? (() => {
@@ -2361,7 +2361,7 @@ function S(e, t, r = { path: [], schemaPath: [] }) {
2361
2361
  const c = t.metadataRegistry.get(e);
2362
2362
  return c && Object.assign(i.schema, c), t.io === "input" && U(e) && (delete i.schema.examples, delete i.schema.default), t.io === "input" && i.schema._prefault && ((n = i.schema).default ?? (n.default = i.schema._prefault)), delete i.schema._prefault, t.seen.get(e).schema;
2363
2363
  }
2364
- function Ue(e, t) {
2364
+ function $e(e, t) {
2365
2365
  var i, a, c, u;
2366
2366
  const r = e.seen.get(t);
2367
2367
  if (!r)
@@ -2435,7 +2435,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
2435
2435
  }
2436
2436
  }
2437
2437
  }
2438
- function Ye(e, t) {
2438
+ function Ue(e, t) {
2439
2439
  var i, a, c;
2440
2440
  const r = e.seen.get(t);
2441
2441
  if (!r)
@@ -2491,8 +2491,8 @@ function Ye(e, t) {
2491
2491
  value: {
2492
2492
  ...t["~standard"],
2493
2493
  jsonSchema: {
2494
- input: Qe(t, "input", e.processors),
2495
- output: Qe(t, "output", e.processors)
2494
+ input: Ye(t, "input", e.processors),
2495
+ output: Ye(t, "output", e.processors)
2496
2496
  }
2497
2497
  },
2498
2498
  enumerable: !1,
@@ -2544,13 +2544,13 @@ function U(e, t) {
2544
2544
  }
2545
2545
  return !1;
2546
2546
  }
2547
- const pi = (e, t = {}) => (r) => {
2548
- const n = $e({ ...r, processors: t });
2549
- return S(e, n), Ue(n, e), Ye(n, e);
2550
- }, Qe = (e, t, r = {}) => (n) => {
2551
- const { libraryOptions: o, target: s } = n ?? {}, i = $e({ ...o ?? {}, target: s, io: t, processors: r });
2552
- return S(e, i), Ue(i, e), Ye(i, e);
2553
- }, fi = {
2547
+ const di = (e, t = {}) => (r) => {
2548
+ const n = Re({ ...r, processors: t });
2549
+ return S(e, n), $e(n, e), Ue(n, e);
2550
+ }, Ye = (e, t, r = {}) => (n) => {
2551
+ const { libraryOptions: o, target: s } = n ?? {}, i = Re({ ...o ?? {}, target: s, io: t, processors: r });
2552
+ return S(e, i), $e(i, e), Ue(i, e);
2553
+ }, pi = {
2554
2554
  guid: "uuid",
2555
2555
  url: "uri",
2556
2556
  datetime: "date-time",
@@ -2561,7 +2561,7 @@ const pi = (e, t = {}) => (r) => {
2561
2561
  const o = r;
2562
2562
  o.type = "string";
2563
2563
  const { minimum: s, maximum: i, format: a, patterns: c, contentEncoding: u } = e._zod.bag;
2564
- if (typeof s == "number" && (o.minLength = s), typeof i == "number" && (o.maxLength = i), a && (o.format = fi[a] ?? a, o.format === "" && delete o.format, a === "time" && delete o.format), u && (o.contentEncoding = u), c && c.size > 0) {
2564
+ if (typeof s == "number" && (o.minLength = s), typeof i == "number" && (o.maxLength = i), a && (o.format = pi[a] ?? a, o.format === "" && delete o.format, a === "time" && delete o.format), u && (o.contentEncoding = u), c && c.size > 0) {
2565
2565
  const l = [...c];
2566
2566
  l.length === 1 ? o.pattern = l[0].source : l.length > 1 && (o.allOf = [
2567
2567
  ...l.map((d) => ({
@@ -2575,25 +2575,25 @@ const pi = (e, t = {}) => (r) => {
2575
2575
  typeof a == "string" && a.includes("int") ? o.type = "integer" : o.type = "number", typeof l == "number" && (t.target === "draft-04" || t.target === "openapi-3.0" ? (o.minimum = l, o.exclusiveMinimum = !0) : o.exclusiveMinimum = l), typeof s == "number" && (o.minimum = s, typeof l == "number" && t.target !== "draft-04" && (l >= s ? delete o.minimum : delete o.exclusiveMinimum)), typeof u == "number" && (t.target === "draft-04" || t.target === "openapi-3.0" ? (o.maximum = u, o.exclusiveMaximum = !0) : o.exclusiveMaximum = u), typeof i == "number" && (o.maximum = i, typeof u == "number" && t.target !== "draft-04" && (u <= i ? delete o.maximum : delete o.exclusiveMaximum)), typeof c == "number" && (o.multipleOf = c);
2576
2576
  }, Xr = (e, t, r, n) => {
2577
2577
  r.type = "boolean";
2578
- }, gi = (e, t, r, n) => {
2578
+ }, fi = (e, t, r, n) => {
2579
2579
  if (t.unrepresentable === "throw")
2580
2580
  throw new Error("BigInt cannot be represented in JSON Schema");
2581
- }, mi = (e, t, r, n) => {
2581
+ }, gi = (e, t, r, n) => {
2582
2582
  if (t.unrepresentable === "throw")
2583
2583
  throw new Error("Symbols cannot be represented in JSON Schema");
2584
2584
  }, qr = (e, t, r, n) => {
2585
2585
  t.target === "openapi-3.0" ? (r.type = "string", r.nullable = !0, r.enum = [null]) : r.type = "null";
2586
- }, hi = (e, t, r, n) => {
2586
+ }, mi = (e, t, r, n) => {
2587
2587
  if (t.unrepresentable === "throw")
2588
2588
  throw new Error("Undefined cannot be represented in JSON Schema");
2589
- }, Ii = (e, t, r, n) => {
2589
+ }, hi = (e, t, r, n) => {
2590
2590
  if (t.unrepresentable === "throw")
2591
2591
  throw new Error("Void cannot be represented in JSON Schema");
2592
2592
  }, Kr = (e, t, r, n) => {
2593
2593
  r.not = {};
2594
- }, yi = (e, t, r, n) => {
2594
+ }, Ii = (e, t, r, n) => {
2595
2595
  }, en = (e, t, r, n) => {
2596
- }, vi = (e, t, r, n) => {
2596
+ }, yi = (e, t, r, n) => {
2597
2597
  if (t.unrepresentable === "throw")
2598
2598
  throw new Error("Date cannot be represented in JSON Schema");
2599
2599
  }, tn = (e, t, r, n) => {
@@ -2617,36 +2617,36 @@ const pi = (e, t = {}) => (r) => {
2617
2617
  r.type = i === null ? "null" : typeof i, t.target === "draft-04" || t.target === "openapi-3.0" ? r.enum = [i] : r.const = i;
2618
2618
  } else
2619
2619
  s.every((i) => typeof i == "number") && (r.type = "number"), s.every((i) => typeof i == "string") && (r.type = "string"), s.every((i) => typeof i == "boolean") && (r.type = "boolean"), s.every((i) => i === null) && (r.type = "null"), r.enum = s;
2620
- }, Mi = (e, t, r, n) => {
2620
+ }, vi = (e, t, r, n) => {
2621
2621
  if (t.unrepresentable === "throw")
2622
2622
  throw new Error("NaN cannot be represented in JSON Schema");
2623
- }, _i = (e, t, r, n) => {
2623
+ }, Mi = (e, t, r, n) => {
2624
2624
  const o = r, s = e._zod.pattern;
2625
2625
  if (!s)
2626
2626
  throw new Error("Pattern not found in template literal");
2627
2627
  o.type = "string", o.pattern = s.source;
2628
- }, Ni = (e, t, r, n) => {
2628
+ }, _i = (e, t, r, n) => {
2629
2629
  const o = r, s = {
2630
2630
  type: "string",
2631
2631
  format: "binary",
2632
2632
  contentEncoding: "binary"
2633
2633
  }, { minimum: i, maximum: a, mime: c } = e._zod.bag;
2634
2634
  i !== void 0 && (s.minLength = i), a !== void 0 && (s.maxLength = a), c ? c.length === 1 ? (s.contentMediaType = c[0], Object.assign(o, s)) : (Object.assign(o, s), o.anyOf = c.map((u) => ({ contentMediaType: u }))) : Object.assign(o, s);
2635
- }, bi = (e, t, r, n) => {
2635
+ }, Ni = (e, t, r, n) => {
2636
2636
  r.type = "boolean";
2637
2637
  }, nn = (e, t, r, n) => {
2638
2638
  if (t.unrepresentable === "throw")
2639
2639
  throw new Error("Custom types cannot be represented in JSON Schema");
2640
- }, Ai = (e, t, r, n) => {
2640
+ }, bi = (e, t, r, n) => {
2641
2641
  if (t.unrepresentable === "throw")
2642
2642
  throw new Error("Function types cannot be represented in JSON Schema");
2643
2643
  }, on = (e, t, r, n) => {
2644
2644
  if (t.unrepresentable === "throw")
2645
2645
  throw new Error("Transforms cannot be represented in JSON Schema");
2646
- }, zi = (e, t, r, n) => {
2646
+ }, Ai = (e, t, r, n) => {
2647
2647
  if (t.unrepresentable === "throw")
2648
2648
  throw new Error("Map cannot be represented in JSON Schema");
2649
- }, wi = (e, t, r, n) => {
2649
+ }, zi = (e, t, r, n) => {
2650
2650
  if (t.unrepresentable === "throw")
2651
2651
  throw new Error("Set cannot be represented in JSON Schema");
2652
2652
  }, sn = (e, t, r, n) => {
@@ -2688,7 +2688,7 @@ const pi = (e, t = {}) => (r) => {
2688
2688
  ...a(i) ? i.allOf : [i]
2689
2689
  ];
2690
2690
  r.allOf = c;
2691
- }, Di = (e, t, r, n) => {
2691
+ }, wi = (e, t, r, n) => {
2692
2692
  const o = r, s = e._zod.def;
2693
2693
  o.type = "array";
2694
2694
  const i = t.target === "draft-2020-12" ? "prefixItems" : "items", a = t.target === "draft-2020-12" || t.target === "openapi-3.0" ? "items" : "additionalItems", c = s.items.map((y, g) => S(y, t, {
@@ -2768,7 +2768,7 @@ const pi = (e, t = {}) => (r) => {
2768
2768
  S(o.innerType, t, n);
2769
2769
  const s = t.seen.get(e);
2770
2770
  s.ref = o.innerType, r.readOnly = !0;
2771
- }, ji = (e, t, r, n) => {
2771
+ }, Di = (e, t, r, n) => {
2772
2772
  const o = e._zod.def;
2773
2773
  S(o.innerType, t, n);
2774
2774
  const s = t.seen.get(e);
@@ -2787,31 +2787,31 @@ const pi = (e, t = {}) => (r) => {
2787
2787
  string: Wr,
2788
2788
  number: Hr,
2789
2789
  boolean: Xr,
2790
- bigint: gi,
2791
- symbol: mi,
2790
+ bigint: fi,
2791
+ symbol: gi,
2792
2792
  null: qr,
2793
- undefined: hi,
2794
- void: Ii,
2793
+ undefined: mi,
2794
+ void: hi,
2795
2795
  never: Kr,
2796
- any: yi,
2796
+ any: Ii,
2797
2797
  unknown: en,
2798
- date: vi,
2798
+ date: yi,
2799
2799
  enum: tn,
2800
2800
  literal: rn,
2801
- nan: Mi,
2802
- template_literal: _i,
2803
- file: Ni,
2804
- success: bi,
2801
+ nan: vi,
2802
+ template_literal: Mi,
2803
+ file: _i,
2804
+ success: Ni,
2805
2805
  custom: nn,
2806
- function: Ai,
2806
+ function: bi,
2807
2807
  transform: on,
2808
- map: zi,
2809
- set: wi,
2808
+ map: Ai,
2809
+ set: zi,
2810
2810
  array: sn,
2811
2811
  object: an,
2812
2812
  union: un,
2813
2813
  intersection: cn,
2814
- tuple: Di,
2814
+ tuple: wi,
2815
2815
  record: ln,
2816
2816
  nullable: dn,
2817
2817
  nonoptional: pn,
@@ -2820,13 +2820,13 @@ const pi = (e, t = {}) => (r) => {
2820
2820
  catch: mn,
2821
2821
  pipe: hn,
2822
2822
  readonly: In,
2823
- promise: ji,
2823
+ promise: Di,
2824
2824
  optional: yt,
2825
2825
  lazy: yn
2826
2826
  };
2827
- function Ti(e, t) {
2827
+ function ji(e, t) {
2828
2828
  if ("_idmap" in e) {
2829
- const n = e, o = $e({ ...t, processors: qt }), s = {};
2829
+ const n = e, o = Re({ ...t, processors: qt }), s = {};
2830
2830
  for (const c of n._idmap.entries()) {
2831
2831
  const [u, l] = c;
2832
2832
  S(l, o);
@@ -2839,7 +2839,7 @@ function Ti(e, t) {
2839
2839
  o.external = a;
2840
2840
  for (const c of n._idmap.entries()) {
2841
2841
  const [u, l] = c;
2842
- Ue(o, l), i[u] = Ye(o, l);
2842
+ $e(o, l), i[u] = Ue(o, l);
2843
2843
  }
2844
2844
  if (Object.keys(s).length > 0) {
2845
2845
  const c = o.target === "draft-2020-12" ? "$defs" : "definitions";
@@ -2849,41 +2849,41 @@ function Ti(e, t) {
2849
2849
  }
2850
2850
  return { schemas: i };
2851
2851
  }
2852
- const r = $e({ ...t, processors: qt });
2853
- return S(e, r), Ue(r, e), Ye(r, e);
2852
+ const r = Re({ ...t, processors: qt });
2853
+ return S(e, r), $e(r, e), Ue(r, e);
2854
+ }
2855
+ const Ti = /* @__PURE__ */ p("ZodISODateTime", (e, t) => {
2856
+ Es.init(e, t), R.init(e, t);
2857
+ });
2858
+ function Oi(e) {
2859
+ return /* @__PURE__ */ Ra(Ti, e);
2854
2860
  }
2855
- const Oi = /* @__PURE__ */ p("ZodISODateTime", (e, t) => {
2861
+ const Ei = /* @__PURE__ */ p("ZodISODate", (e, t) => {
2856
2862
  Cs.init(e, t), R.init(e, t);
2857
2863
  });
2858
- function Ei(e) {
2859
- return /* @__PURE__ */ $a(Oi, e);
2864
+ function Ci(e) {
2865
+ return /* @__PURE__ */ $a(Ei, e);
2860
2866
  }
2861
- const Ci = /* @__PURE__ */ p("ZodISODate", (e, t) => {
2867
+ const ki = /* @__PURE__ */ p("ZodISOTime", (e, t) => {
2862
2868
  ks.init(e, t), R.init(e, t);
2863
2869
  });
2864
- function ki(e) {
2865
- return /* @__PURE__ */ Ua(Ci, e);
2870
+ function Si(e) {
2871
+ return /* @__PURE__ */ Ua(ki, e);
2866
2872
  }
2867
- const Si = /* @__PURE__ */ p("ZodISOTime", (e, t) => {
2873
+ const xi = /* @__PURE__ */ p("ZodISODuration", (e, t) => {
2868
2874
  Ss.init(e, t), R.init(e, t);
2869
2875
  });
2870
- function xi(e) {
2871
- return /* @__PURE__ */ Ya(Si, e);
2876
+ function Zi(e) {
2877
+ return /* @__PURE__ */ Ya(xi, e);
2872
2878
  }
2873
- const Zi = /* @__PURE__ */ p("ZodISODuration", (e, t) => {
2874
- xs.init(e, t), R.init(e, t);
2875
- });
2876
- function Pi(e) {
2877
- return /* @__PURE__ */ Qa(Zi, e);
2878
- }
2879
- const Li = (e, t) => {
2879
+ const Pi = (e, t) => {
2880
2880
  Cr.init(e, t), e.name = "ZodError", Object.defineProperties(e, {
2881
2881
  format: {
2882
- value: (r) => Ao(e, r)
2882
+ value: (r) => bo(e, r)
2883
2883
  // enumerable: false,
2884
2884
  },
2885
2885
  flatten: {
2886
- value: (r) => bo(e, r)
2886
+ value: (r) => No(e, r)
2887
2887
  // enumerable: false,
2888
2888
  },
2889
2889
  addIssue: {
@@ -2905,130 +2905,130 @@ const Li = (e, t) => {
2905
2905
  // enumerable: false,
2906
2906
  }
2907
2907
  });
2908
- }, B = p("ZodError", Li, {
2908
+ }, W = p("ZodError", Pi, {
2909
2909
  Parent: Error
2910
- }), Ri = /* @__PURE__ */ mt(B), $i = /* @__PURE__ */ ht(B), Ui = /* @__PURE__ */ Be(B), vn = /* @__PURE__ */ Ge(B), Yi = /* @__PURE__ */ Do(B), Qi = /* @__PURE__ */ jo(B), Ji = /* @__PURE__ */ To(B), Fi = /* @__PURE__ */ Oo(B), Vi = /* @__PURE__ */ Eo(B), Bi = /* @__PURE__ */ Co(B), Gi = /* @__PURE__ */ ko(B), Wi = /* @__PURE__ */ So(B), P = /* @__PURE__ */ p("ZodType", (e, t) => (Z.init(e, t), Object.assign(e["~standard"], {
2910
+ }), Li = /* @__PURE__ */ mt(W), Ri = /* @__PURE__ */ ht(W), $i = /* @__PURE__ */ Ve(W), vn = /* @__PURE__ */ Be(W), Ui = /* @__PURE__ */ wo(W), Yi = /* @__PURE__ */ Do(W), Qi = /* @__PURE__ */ jo(W), Ji = /* @__PURE__ */ To(W), Fi = /* @__PURE__ */ Oo(W), Vi = /* @__PURE__ */ Eo(W), Bi = /* @__PURE__ */ Co(W), Gi = /* @__PURE__ */ ko(W), P = /* @__PURE__ */ p("ZodType", (e, t) => (Z.init(e, t), Object.assign(e["~standard"], {
2911
2911
  jsonSchema: {
2912
- input: Qe(e, "input"),
2913
- output: Qe(e, "output")
2912
+ input: Ye(e, "input"),
2913
+ output: Ye(e, "output")
2914
2914
  }
2915
- }), e.toJSONSchema = pi(e, {}), e.def = t, e.type = t.type, Object.defineProperty(e, "_def", { value: t }), e.check = (...r) => e.clone(se(t, {
2915
+ }), e.toJSONSchema = di(e, {}), e.def = t, e.type = t.type, Object.defineProperty(e, "_def", { value: t }), e.check = (...r) => e.clone(se(t, {
2916
2916
  checks: [
2917
2917
  ...t.checks ?? [],
2918
2918
  ...r.map((n) => typeof n == "function" ? { _zod: { check: n, def: { check: "custom" }, onattach: [] } } : n)
2919
2919
  ]
2920
2920
  }), {
2921
2921
  parent: !0
2922
- }), e.with = e.check, e.clone = (r, n) => ae(e, r, n), e.brand = () => e, e.register = (r, n) => (r.add(e, n), e), e.parse = (r, n) => Ri(e, r, n, { callee: e.parse }), e.safeParse = (r, n) => Ui(e, r, n), e.parseAsync = async (r, n) => $i(e, r, n, { callee: e.parseAsync }), e.safeParseAsync = async (r, n) => vn(e, r, n), e.spa = e.safeParseAsync, e.encode = (r, n) => Yi(e, r, n), e.decode = (r, n) => Qi(e, r, n), e.encodeAsync = async (r, n) => Ji(e, r, n), e.decodeAsync = async (r, n) => Fi(e, r, n), e.safeEncode = (r, n) => Vi(e, r, n), e.safeDecode = (r, n) => Bi(e, r, n), e.safeEncodeAsync = async (r, n) => Gi(e, r, n), e.safeDecodeAsync = async (r, n) => Wi(e, r, n), e.refine = (r, n) => e.check(Fu(r, n)), e.superRefine = (r) => e.check(Vu(r)), e.overwrite = (r) => e.check(/* @__PURE__ */ ye(r)), e.optional = () => tr(e), e.exactOptional = () => Eu(e), e.nullable = () => rr(e), e.nullish = () => tr(rr(e)), e.nonoptional = (r) => Pu(e, r), e.array = () => ve(e), e.or = (r) => Q([e, r]), e.and = (r) => zu(e, r), e.transform = (r) => nr(e, Tu(r)), e.default = (r) => Su(e, r), e.prefault = (r) => Zu(e, r), e.catch = (r) => Ru(e, r), e.pipe = (r) => nr(e, r), e.readonly = () => Yu(e), e.describe = (r) => {
2922
+ }), e.with = e.check, e.clone = (r, n) => ae(e, r, n), e.brand = () => e, e.register = (r, n) => (r.add(e, n), e), e.parse = (r, n) => Li(e, r, n, { callee: e.parse }), e.safeParse = (r, n) => $i(e, r, n), e.parseAsync = async (r, n) => Ri(e, r, n, { callee: e.parseAsync }), e.safeParseAsync = async (r, n) => vn(e, r, n), e.spa = e.safeParseAsync, e.encode = (r, n) => Ui(e, r, n), e.decode = (r, n) => Yi(e, r, n), e.encodeAsync = async (r, n) => Qi(e, r, n), e.decodeAsync = async (r, n) => Ji(e, r, n), e.safeEncode = (r, n) => Fi(e, r, n), e.safeDecode = (r, n) => Vi(e, r, n), e.safeEncodeAsync = async (r, n) => Bi(e, r, n), e.safeDecodeAsync = async (r, n) => Gi(e, r, n), e.refine = (r, n) => e.check(Ju(r, n)), e.superRefine = (r) => e.check(Fu(r)), e.overwrite = (r) => e.check(/* @__PURE__ */ ye(r)), e.optional = () => tr(e), e.exactOptional = () => Ou(e), e.nullable = () => rr(e), e.nullish = () => tr(rr(e)), e.nonoptional = (r) => Zu(e, r), e.array = () => ve(e), e.or = (r) => Q([e, r]), e.and = (r) => Au(e, r), e.transform = (r) => nr(e, ju(r)), e.default = (r) => ku(e, r), e.prefault = (r) => xu(e, r), e.catch = (r) => Lu(e, r), e.pipe = (r) => nr(e, r), e.readonly = () => Uu(e), e.describe = (r) => {
2923
2923
  const n = e.clone();
2924
- return Ne.add(n, { description: r }), n;
2924
+ return be.add(n, { description: r }), n;
2925
2925
  }, Object.defineProperty(e, "description", {
2926
2926
  get() {
2927
2927
  var r;
2928
- return (r = Ne.get(e)) == null ? void 0 : r.description;
2928
+ return (r = be.get(e)) == null ? void 0 : r.description;
2929
2929
  },
2930
2930
  configurable: !0
2931
2931
  }), e.meta = (...r) => {
2932
2932
  if (r.length === 0)
2933
- return Ne.get(e);
2933
+ return be.get(e);
2934
2934
  const n = e.clone();
2935
- return Ne.add(n, r[0]), n;
2935
+ return be.add(n, r[0]), n;
2936
2936
  }, e.isOptional = () => e.safeParse(void 0).success, e.isNullable = () => e.safeParse(null).success, e.apply = (r) => r(e), e)), Mn = /* @__PURE__ */ p("_ZodString", (e, t) => {
2937
2937
  It.init(e, t), P.init(e, t), e._zod.processJSONSchema = (n, o, s) => Wr(e, n, o);
2938
2938
  const r = e._zod.bag;
2939
- e.format = r.format ?? null, e.minLength = r.minimum ?? null, e.maxLength = r.maximum ?? null, e.regex = (...n) => e.check(/* @__PURE__ */ Ha(...n)), e.includes = (...n) => e.check(/* @__PURE__ */ Ka(...n)), e.startsWith = (...n) => e.check(/* @__PURE__ */ ei(...n)), e.endsWith = (...n) => e.check(/* @__PURE__ */ ti(...n)), e.min = (...n) => e.check(/* @__PURE__ */ Re(...n)), e.max = (...n) => e.check(/* @__PURE__ */ Br(...n)), e.length = (...n) => e.check(/* @__PURE__ */ Gr(...n)), e.nonempty = (...n) => e.check(/* @__PURE__ */ Re(1, ...n)), e.lowercase = (n) => e.check(/* @__PURE__ */ Xa(n)), e.uppercase = (n) => e.check(/* @__PURE__ */ qa(n)), e.trim = () => e.check(/* @__PURE__ */ ni()), e.normalize = (...n) => e.check(/* @__PURE__ */ ri(...n)), e.toLowerCase = () => e.check(/* @__PURE__ */ oi()), e.toUpperCase = () => e.check(/* @__PURE__ */ si()), e.slugify = () => e.check(/* @__PURE__ */ ai());
2940
- }), Hi = /* @__PURE__ */ p("ZodString", (e, t) => {
2941
- It.init(e, t), Mn.init(e, t), e.email = (r) => e.check(/* @__PURE__ */ va(Xi, r)), e.url = (r) => e.check(/* @__PURE__ */ Aa(qi, r)), e.jwt = (r) => e.check(/* @__PURE__ */ Ra(fu, r)), e.emoji = (r) => e.check(/* @__PURE__ */ za(Ki, r)), e.guid = (r) => e.check(/* @__PURE__ */ Gt(Kt, r)), e.uuid = (r) => e.check(/* @__PURE__ */ Ma(Pe, r)), e.uuidv4 = (r) => e.check(/* @__PURE__ */ _a(Pe, r)), e.uuidv6 = (r) => e.check(/* @__PURE__ */ Na(Pe, r)), e.uuidv7 = (r) => e.check(/* @__PURE__ */ ba(Pe, r)), e.nanoid = (r) => e.check(/* @__PURE__ */ wa(eu, r)), e.guid = (r) => e.check(/* @__PURE__ */ Gt(Kt, r)), e.cuid = (r) => e.check(/* @__PURE__ */ Da(tu, r)), e.cuid2 = (r) => e.check(/* @__PURE__ */ ja(ru, r)), e.ulid = (r) => e.check(/* @__PURE__ */ Ta(nu, r)), e.base64 = (r) => e.check(/* @__PURE__ */ Za(lu, r)), e.base64url = (r) => e.check(/* @__PURE__ */ Pa(du, r)), e.xid = (r) => e.check(/* @__PURE__ */ Oa(ou, r)), e.ksuid = (r) => e.check(/* @__PURE__ */ Ea(su, r)), e.ipv4 = (r) => e.check(/* @__PURE__ */ Ca(au, r)), e.ipv6 = (r) => e.check(/* @__PURE__ */ ka(iu, r)), e.cidrv4 = (r) => e.check(/* @__PURE__ */ Sa(uu, r)), e.cidrv6 = (r) => e.check(/* @__PURE__ */ xa(cu, r)), e.e164 = (r) => e.check(/* @__PURE__ */ La(pu, r)), e.datetime = (r) => e.check(Ei(r)), e.date = (r) => e.check(ki(r)), e.time = (r) => e.check(xi(r)), e.duration = (r) => e.check(Pi(r));
2939
+ e.format = r.format ?? null, e.minLength = r.minimum ?? null, e.maxLength = r.maximum ?? null, e.regex = (...n) => e.check(/* @__PURE__ */ Wa(...n)), e.includes = (...n) => e.check(/* @__PURE__ */ qa(...n)), e.startsWith = (...n) => e.check(/* @__PURE__ */ Ka(...n)), e.endsWith = (...n) => e.check(/* @__PURE__ */ ei(...n)), e.min = (...n) => e.check(/* @__PURE__ */ Le(...n)), e.max = (...n) => e.check(/* @__PURE__ */ Br(...n)), e.length = (...n) => e.check(/* @__PURE__ */ Gr(...n)), e.nonempty = (...n) => e.check(/* @__PURE__ */ Le(1, ...n)), e.lowercase = (n) => e.check(/* @__PURE__ */ Ha(n)), e.uppercase = (n) => e.check(/* @__PURE__ */ Xa(n)), e.trim = () => e.check(/* @__PURE__ */ ri()), e.normalize = (...n) => e.check(/* @__PURE__ */ ti(...n)), e.toLowerCase = () => e.check(/* @__PURE__ */ ni()), e.toUpperCase = () => e.check(/* @__PURE__ */ oi()), e.slugify = () => e.check(/* @__PURE__ */ si());
2940
+ }), Wi = /* @__PURE__ */ p("ZodString", (e, t) => {
2941
+ It.init(e, t), Mn.init(e, t), e.email = (r) => e.check(/* @__PURE__ */ ya(Hi, r)), e.url = (r) => e.check(/* @__PURE__ */ ba(Xi, r)), e.jwt = (r) => e.check(/* @__PURE__ */ La(pu, r)), e.emoji = (r) => e.check(/* @__PURE__ */ Aa(qi, r)), e.guid = (r) => e.check(/* @__PURE__ */ Gt(Kt, r)), e.uuid = (r) => e.check(/* @__PURE__ */ va(Ze, r)), e.uuidv4 = (r) => e.check(/* @__PURE__ */ Ma(Ze, r)), e.uuidv6 = (r) => e.check(/* @__PURE__ */ _a(Ze, r)), e.uuidv7 = (r) => e.check(/* @__PURE__ */ Na(Ze, r)), e.nanoid = (r) => e.check(/* @__PURE__ */ za(Ki, r)), e.guid = (r) => e.check(/* @__PURE__ */ Gt(Kt, r)), e.cuid = (r) => e.check(/* @__PURE__ */ wa(eu, r)), e.cuid2 = (r) => e.check(/* @__PURE__ */ Da(tu, r)), e.ulid = (r) => e.check(/* @__PURE__ */ ja(ru, r)), e.base64 = (r) => e.check(/* @__PURE__ */ xa(cu, r)), e.base64url = (r) => e.check(/* @__PURE__ */ Za(lu, r)), e.xid = (r) => e.check(/* @__PURE__ */ Ta(nu, r)), e.ksuid = (r) => e.check(/* @__PURE__ */ Oa(ou, r)), e.ipv4 = (r) => e.check(/* @__PURE__ */ Ea(su, r)), e.ipv6 = (r) => e.check(/* @__PURE__ */ Ca(au, r)), e.cidrv4 = (r) => e.check(/* @__PURE__ */ ka(iu, r)), e.cidrv6 = (r) => e.check(/* @__PURE__ */ Sa(uu, r)), e.e164 = (r) => e.check(/* @__PURE__ */ Pa(du, r)), e.datetime = (r) => e.check(Oi(r)), e.date = (r) => e.check(Ci(r)), e.time = (r) => e.check(Si(r)), e.duration = (r) => e.check(Zi(r));
2942
2942
  });
2943
2943
  function I(e) {
2944
- return /* @__PURE__ */ ya(Hi, e);
2944
+ return /* @__PURE__ */ Ia(Wi, e);
2945
2945
  }
2946
2946
  const R = /* @__PURE__ */ p("ZodStringFormat", (e, t) => {
2947
2947
  L.init(e, t), Mn.init(e, t);
2948
- }), Xi = /* @__PURE__ */ p("ZodEmail", (e, t) => {
2949
- bs.init(e, t), R.init(e, t);
2948
+ }), Hi = /* @__PURE__ */ p("ZodEmail", (e, t) => {
2949
+ Ns.init(e, t), R.init(e, t);
2950
2950
  }), Kt = /* @__PURE__ */ p("ZodGUID", (e, t) => {
2951
+ Ms.init(e, t), R.init(e, t);
2952
+ }), Ze = /* @__PURE__ */ p("ZodUUID", (e, t) => {
2951
2953
  _s.init(e, t), R.init(e, t);
2952
- }), Pe = /* @__PURE__ */ p("ZodUUID", (e, t) => {
2953
- Ns.init(e, t), R.init(e, t);
2954
- }), qi = /* @__PURE__ */ p("ZodURL", (e, t) => {
2954
+ }), Xi = /* @__PURE__ */ p("ZodURL", (e, t) => {
2955
+ bs.init(e, t), R.init(e, t);
2956
+ }), qi = /* @__PURE__ */ p("ZodEmoji", (e, t) => {
2955
2957
  As.init(e, t), R.init(e, t);
2956
- }), Ki = /* @__PURE__ */ p("ZodEmoji", (e, t) => {
2958
+ }), Ki = /* @__PURE__ */ p("ZodNanoID", (e, t) => {
2957
2959
  zs.init(e, t), R.init(e, t);
2958
- }), eu = /* @__PURE__ */ p("ZodNanoID", (e, t) => {
2960
+ }), eu = /* @__PURE__ */ p("ZodCUID", (e, t) => {
2959
2961
  ws.init(e, t), R.init(e, t);
2960
- }), tu = /* @__PURE__ */ p("ZodCUID", (e, t) => {
2962
+ }), tu = /* @__PURE__ */ p("ZodCUID2", (e, t) => {
2961
2963
  Ds.init(e, t), R.init(e, t);
2962
- }), ru = /* @__PURE__ */ p("ZodCUID2", (e, t) => {
2964
+ }), ru = /* @__PURE__ */ p("ZodULID", (e, t) => {
2963
2965
  js.init(e, t), R.init(e, t);
2964
- }), nu = /* @__PURE__ */ p("ZodULID", (e, t) => {
2966
+ }), nu = /* @__PURE__ */ p("ZodXID", (e, t) => {
2965
2967
  Ts.init(e, t), R.init(e, t);
2966
- }), ou = /* @__PURE__ */ p("ZodXID", (e, t) => {
2968
+ }), ou = /* @__PURE__ */ p("ZodKSUID", (e, t) => {
2967
2969
  Os.init(e, t), R.init(e, t);
2968
- }), su = /* @__PURE__ */ p("ZodKSUID", (e, t) => {
2969
- Es.init(e, t), R.init(e, t);
2970
- }), au = /* @__PURE__ */ p("ZodIPv4", (e, t) => {
2970
+ }), su = /* @__PURE__ */ p("ZodIPv4", (e, t) => {
2971
+ xs.init(e, t), R.init(e, t);
2972
+ }), au = /* @__PURE__ */ p("ZodIPv6", (e, t) => {
2971
2973
  Zs.init(e, t), R.init(e, t);
2972
- }), iu = /* @__PURE__ */ p("ZodIPv6", (e, t) => {
2974
+ }), iu = /* @__PURE__ */ p("ZodCIDRv4", (e, t) => {
2973
2975
  Ps.init(e, t), R.init(e, t);
2974
- }), uu = /* @__PURE__ */ p("ZodCIDRv4", (e, t) => {
2976
+ }), uu = /* @__PURE__ */ p("ZodCIDRv6", (e, t) => {
2975
2977
  Ls.init(e, t), R.init(e, t);
2976
- }), cu = /* @__PURE__ */ p("ZodCIDRv6", (e, t) => {
2978
+ }), cu = /* @__PURE__ */ p("ZodBase64", (e, t) => {
2977
2979
  Rs.init(e, t), R.init(e, t);
2978
- }), lu = /* @__PURE__ */ p("ZodBase64", (e, t) => {
2979
- $s.init(e, t), R.init(e, t);
2980
- }), du = /* @__PURE__ */ p("ZodBase64URL", (e, t) => {
2980
+ }), lu = /* @__PURE__ */ p("ZodBase64URL", (e, t) => {
2981
+ Us.init(e, t), R.init(e, t);
2982
+ }), du = /* @__PURE__ */ p("ZodE164", (e, t) => {
2981
2983
  Ys.init(e, t), R.init(e, t);
2982
- }), pu = /* @__PURE__ */ p("ZodE164", (e, t) => {
2983
- Qs.init(e, t), R.init(e, t);
2984
- }), fu = /* @__PURE__ */ p("ZodJWT", (e, t) => {
2985
- Fs.init(e, t), R.init(e, t);
2984
+ }), pu = /* @__PURE__ */ p("ZodJWT", (e, t) => {
2985
+ Js.init(e, t), R.init(e, t);
2986
2986
  }), _n = /* @__PURE__ */ p("ZodNumber", (e, t) => {
2987
2987
  Yr.init(e, t), P.init(e, t), e._zod.processJSONSchema = (n, o, s) => Hr(e, n, o), e.gt = (n, o) => e.check(/* @__PURE__ */ Ht(n, o)), e.gte = (n, o) => e.check(/* @__PURE__ */ qe(n, o)), e.min = (n, o) => e.check(/* @__PURE__ */ qe(n, o)), e.lt = (n, o) => e.check(/* @__PURE__ */ Wt(n, o)), e.lte = (n, o) => e.check(/* @__PURE__ */ Xe(n, o)), e.max = (n, o) => e.check(/* @__PURE__ */ Xe(n, o)), e.int = (n) => e.check(er(n)), e.safe = (n) => e.check(er(n)), e.positive = (n) => e.check(/* @__PURE__ */ Ht(0, n)), e.nonnegative = (n) => e.check(/* @__PURE__ */ qe(0, n)), e.negative = (n) => e.check(/* @__PURE__ */ Wt(0, n)), e.nonpositive = (n) => e.check(/* @__PURE__ */ Xe(0, n)), e.multipleOf = (n, o) => e.check(/* @__PURE__ */ Xt(n, o)), e.step = (n, o) => e.check(/* @__PURE__ */ Xt(n, o)), e.finite = () => e;
2988
2988
  const r = e._zod.bag;
2989
2989
  e.minValue = Math.max(r.minimum ?? Number.NEGATIVE_INFINITY, r.exclusiveMinimum ?? Number.NEGATIVE_INFINITY) ?? null, e.maxValue = Math.min(r.maximum ?? Number.POSITIVE_INFINITY, r.exclusiveMaximum ?? Number.POSITIVE_INFINITY) ?? null, e.isInt = (r.format ?? "").includes("int") || Number.isSafeInteger(r.multipleOf ?? 0.5), e.isFinite = !0, e.format = r.format ?? null;
2990
2990
  });
2991
- function gu(e) {
2992
- return /* @__PURE__ */ Ja(_n, e);
2991
+ function fu(e) {
2992
+ return /* @__PURE__ */ Qa(_n, e);
2993
2993
  }
2994
- const mu = /* @__PURE__ */ p("ZodNumberFormat", (e, t) => {
2995
- Vs.init(e, t), _n.init(e, t);
2994
+ const gu = /* @__PURE__ */ p("ZodNumberFormat", (e, t) => {
2995
+ Fs.init(e, t), _n.init(e, t);
2996
2996
  });
2997
2997
  function er(e) {
2998
- return /* @__PURE__ */ Fa(mu, e);
2998
+ return /* @__PURE__ */ Ja(gu, e);
2999
2999
  }
3000
- const hu = /* @__PURE__ */ p("ZodBoolean", (e, t) => {
3001
- Bs.init(e, t), P.init(e, t), e._zod.processJSONSchema = (r, n, o) => Xr(e, r, n);
3000
+ const mu = /* @__PURE__ */ p("ZodBoolean", (e, t) => {
3001
+ Vs.init(e, t), P.init(e, t), e._zod.processJSONSchema = (r, n, o) => Xr(e, r, n);
3002
3002
  });
3003
3003
  function Y(e) {
3004
- return /* @__PURE__ */ Va(hu, e);
3004
+ return /* @__PURE__ */ Fa(mu, e);
3005
3005
  }
3006
- const Iu = /* @__PURE__ */ p("ZodNull", (e, t) => {
3007
- Gs.init(e, t), P.init(e, t), e._zod.processJSONSchema = (r, n, o) => qr(e, r, n);
3006
+ const hu = /* @__PURE__ */ p("ZodNull", (e, t) => {
3007
+ Bs.init(e, t), P.init(e, t), e._zod.processJSONSchema = (r, n, o) => qr(e, r, n);
3008
3008
  });
3009
- function yu(e) {
3010
- return /* @__PURE__ */ Ba(Iu, e);
3009
+ function Iu(e) {
3010
+ return /* @__PURE__ */ Va(hu, e);
3011
3011
  }
3012
- const vu = /* @__PURE__ */ p("ZodUnknown", (e, t) => {
3013
- Ws.init(e, t), P.init(e, t), e._zod.processJSONSchema = (r, n, o) => en();
3012
+ const yu = /* @__PURE__ */ p("ZodUnknown", (e, t) => {
3013
+ Gs.init(e, t), P.init(e, t), e._zod.processJSONSchema = (r, n, o) => en();
3014
3014
  });
3015
3015
  function q() {
3016
- return /* @__PURE__ */ Ga(vu);
3016
+ return /* @__PURE__ */ Ba(yu);
3017
3017
  }
3018
- const Mu = /* @__PURE__ */ p("ZodNever", (e, t) => {
3019
- Hs.init(e, t), P.init(e, t), e._zod.processJSONSchema = (r, n, o) => Kr(e, r, n);
3018
+ const vu = /* @__PURE__ */ p("ZodNever", (e, t) => {
3019
+ Ws.init(e, t), P.init(e, t), e._zod.processJSONSchema = (r, n, o) => Kr(e, r, n);
3020
3020
  });
3021
3021
  function Nn(e) {
3022
- return /* @__PURE__ */ Wa(Mu, e);
3022
+ return /* @__PURE__ */ Ga(vu, e);
3023
3023
  }
3024
- const _u = /* @__PURE__ */ p("ZodArray", (e, t) => {
3025
- Xs.init(e, t), P.init(e, t), e._zod.processJSONSchema = (r, n, o) => sn(e, r, n, o), e.element = t.element, e.min = (r, n) => e.check(/* @__PURE__ */ Re(r, n)), e.nonempty = (r) => e.check(/* @__PURE__ */ Re(1, r)), e.max = (r, n) => e.check(/* @__PURE__ */ Br(r, n)), e.length = (r, n) => e.check(/* @__PURE__ */ Gr(r, n)), e.unwrap = () => e.element;
3024
+ const Mu = /* @__PURE__ */ p("ZodArray", (e, t) => {
3025
+ Hs.init(e, t), P.init(e, t), e._zod.processJSONSchema = (r, n, o) => sn(e, r, n, o), e.element = t.element, e.min = (r, n) => e.check(/* @__PURE__ */ Le(r, n)), e.nonempty = (r) => e.check(/* @__PURE__ */ Le(1, r)), e.max = (r, n) => e.check(/* @__PURE__ */ Br(r, n)), e.length = (r, n) => e.check(/* @__PURE__ */ Gr(r, n)), e.unwrap = () => e.element;
3026
3026
  });
3027
3027
  function ve(e, t) {
3028
- return /* @__PURE__ */ ii(_u, e, t);
3028
+ return /* @__PURE__ */ ai(Mu, e, t);
3029
3029
  }
3030
3030
  const bn = /* @__PURE__ */ p("ZodObject", (e, t) => {
3031
- Ks.init(e, t), P.init(e, t), e._zod.processJSONSchema = (r, n, o) => an(e, r, n, o), O(e, "shape", () => t.shape), e.keyof = () => zn(Object.keys(e._zod.def.shape)), e.catchall = (r) => e.clone({ ...e._zod.def, catchall: r }), e.passthrough = () => e.clone({ ...e._zod.def, catchall: q() }), e.loose = () => e.clone({ ...e._zod.def, catchall: q() }), e.strict = () => e.clone({ ...e._zod.def, catchall: Nn() }), e.strip = () => e.clone({ ...e._zod.def, catchall: void 0 }), e.extend = (r) => yo(e, r), e.safeExtend = (r) => vo(e, r), e.merge = (r) => Mo(e, r), e.pick = (r) => ho(e, r), e.omit = (r) => Io(e, r), e.partial = (...r) => _o(wn, e, r[0]), e.required = (...r) => No(Dn, e, r[0]);
3031
+ qs.init(e, t), P.init(e, t), e._zod.processJSONSchema = (r, n, o) => an(e, r, n, o), O(e, "shape", () => t.shape), e.keyof = () => zn(Object.keys(e._zod.def.shape)), e.catchall = (r) => e.clone({ ...e._zod.def, catchall: r }), e.passthrough = () => e.clone({ ...e._zod.def, catchall: q() }), e.loose = () => e.clone({ ...e._zod.def, catchall: q() }), e.strict = () => e.clone({ ...e._zod.def, catchall: Nn() }), e.strip = () => e.clone({ ...e._zod.def, catchall: void 0 }), e.extend = (r) => Io(e, r), e.safeExtend = (r) => yo(e, r), e.merge = (r) => vo(e, r), e.pick = (r) => mo(e, r), e.omit = (r) => ho(e, r), e.partial = (...r) => Mo(wn, e, r[0]), e.required = (...r) => _o(Dn, e, r[0]);
3032
3032
  });
3033
3033
  function k(e, t) {
3034
3034
  const r = {
@@ -3056,32 +3056,32 @@ function Q(e, t) {
3056
3056
  ...v(t)
3057
3057
  });
3058
3058
  }
3059
- const Nu = /* @__PURE__ */ p("ZodDiscriminatedUnion", (e, t) => {
3060
- An.init(e, t), ea.init(e, t);
3059
+ const _u = /* @__PURE__ */ p("ZodDiscriminatedUnion", (e, t) => {
3060
+ An.init(e, t), Ks.init(e, t);
3061
3061
  });
3062
- function bu(e, t, r) {
3063
- return new Nu({
3062
+ function Nu(e, t, r) {
3063
+ return new _u({
3064
3064
  type: "union",
3065
3065
  options: t,
3066
3066
  discriminator: e,
3067
3067
  ...v(r)
3068
3068
  });
3069
3069
  }
3070
- const Au = /* @__PURE__ */ p("ZodIntersection", (e, t) => {
3071
- ta.init(e, t), P.init(e, t), e._zod.processJSONSchema = (r, n, o) => cn(e, r, n, o);
3070
+ const bu = /* @__PURE__ */ p("ZodIntersection", (e, t) => {
3071
+ ea.init(e, t), P.init(e, t), e._zod.processJSONSchema = (r, n, o) => cn(e, r, n, o);
3072
3072
  });
3073
- function zu(e, t) {
3074
- return new Au({
3073
+ function Au(e, t) {
3074
+ return new bu({
3075
3075
  type: "intersection",
3076
3076
  left: e,
3077
3077
  right: t
3078
3078
  });
3079
3079
  }
3080
- const wu = /* @__PURE__ */ p("ZodRecord", (e, t) => {
3081
- ra.init(e, t), P.init(e, t), e._zod.processJSONSchema = (r, n, o) => ln(e, r, n, o), e.keyType = t.keyType, e.valueType = t.valueType;
3080
+ const zu = /* @__PURE__ */ p("ZodRecord", (e, t) => {
3081
+ ta.init(e, t), P.init(e, t), e._zod.processJSONSchema = (r, n, o) => ln(e, r, n, o), e.keyType = t.keyType, e.valueType = t.valueType;
3082
3082
  });
3083
- function ze(e, t, r) {
3084
- return new wu({
3083
+ function we(e, t, r) {
3084
+ return new zu({
3085
3085
  type: "record",
3086
3086
  keyType: e,
3087
3087
  valueType: t,
@@ -3089,7 +3089,7 @@ function ze(e, t, r) {
3089
3089
  });
3090
3090
  }
3091
3091
  const it = /* @__PURE__ */ p("ZodEnum", (e, t) => {
3092
- na.init(e, t), P.init(e, t), e._zod.processJSONSchema = (n, o, s) => tn(e, n, o), e.enum = t.entries, e.options = Object.values(t.entries);
3092
+ ra.init(e, t), P.init(e, t), e._zod.processJSONSchema = (n, o, s) => tn(e, n, o), e.enum = t.entries, e.options = Object.values(t.entries);
3093
3093
  const r = new Set(Object.keys(t.entries));
3094
3094
  e.extract = (n, o) => {
3095
3095
  const s = {};
@@ -3127,8 +3127,8 @@ function zn(e, t) {
3127
3127
  ...v(t)
3128
3128
  });
3129
3129
  }
3130
- const Du = /* @__PURE__ */ p("ZodLiteral", (e, t) => {
3131
- oa.init(e, t), P.init(e, t), e._zod.processJSONSchema = (r, n, o) => rn(e, r, n), e.values = new Set(t.values), Object.defineProperty(e, "value", {
3130
+ const wu = /* @__PURE__ */ p("ZodLiteral", (e, t) => {
3131
+ na.init(e, t), P.init(e, t), e._zod.processJSONSchema = (r, n, o) => rn(e, r, n), e.values = new Set(t.values), Object.defineProperty(e, "value", {
3132
3132
  get() {
3133
3133
  if (t.values.length > 1)
3134
3134
  throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");
@@ -3137,30 +3137,30 @@ const Du = /* @__PURE__ */ p("ZodLiteral", (e, t) => {
3137
3137
  });
3138
3138
  });
3139
3139
  function _(e, t) {
3140
- return new Du({
3140
+ return new wu({
3141
3141
  type: "literal",
3142
3142
  values: Array.isArray(e) ? e : [e],
3143
3143
  ...v(t)
3144
3144
  });
3145
3145
  }
3146
- const ju = /* @__PURE__ */ p("ZodTransform", (e, t) => {
3147
- sa.init(e, t), P.init(e, t), e._zod.processJSONSchema = (r, n, o) => on(e, r), e._zod.parse = (r, n) => {
3146
+ const Du = /* @__PURE__ */ p("ZodTransform", (e, t) => {
3147
+ oa.init(e, t), P.init(e, t), e._zod.processJSONSchema = (r, n, o) => on(e, r), e._zod.parse = (r, n) => {
3148
3148
  if (n.direction === "backward")
3149
3149
  throw new Dr(e.constructor.name);
3150
3150
  r.addIssue = (s) => {
3151
3151
  if (typeof s == "string")
3152
- r.issues.push(Ae(s, r.value, t));
3152
+ r.issues.push(ze(s, r.value, t));
3153
3153
  else {
3154
3154
  const i = s;
3155
- i.fatal && (i.continue = !1), i.code ?? (i.code = "custom"), i.input ?? (i.input = r.value), i.inst ?? (i.inst = e), r.issues.push(Ae(i));
3155
+ i.fatal && (i.continue = !1), i.code ?? (i.code = "custom"), i.input ?? (i.input = r.value), i.inst ?? (i.inst = e), r.issues.push(ze(i));
3156
3156
  }
3157
3157
  };
3158
3158
  const o = t.transform(r.value, r);
3159
3159
  return o instanceof Promise ? o.then((s) => (r.value = s, r)) : (r.value = o, r);
3160
3160
  };
3161
3161
  });
3162
- function Tu(e) {
3163
- return new ju({
3162
+ function ju(e) {
3163
+ return new Du({
3164
3164
  type: "transform",
3165
3165
  transform: e
3166
3166
  });
@@ -3174,29 +3174,29 @@ function tr(e) {
3174
3174
  innerType: e
3175
3175
  });
3176
3176
  }
3177
- const Ou = /* @__PURE__ */ p("ZodExactOptional", (e, t) => {
3178
- aa.init(e, t), P.init(e, t), e._zod.processJSONSchema = (r, n, o) => yt(e, r, n, o), e.unwrap = () => e._zod.def.innerType;
3177
+ const Tu = /* @__PURE__ */ p("ZodExactOptional", (e, t) => {
3178
+ sa.init(e, t), P.init(e, t), e._zod.processJSONSchema = (r, n, o) => yt(e, r, n, o), e.unwrap = () => e._zod.def.innerType;
3179
3179
  });
3180
- function Eu(e) {
3181
- return new Ou({
3180
+ function Ou(e) {
3181
+ return new Tu({
3182
3182
  type: "optional",
3183
3183
  innerType: e
3184
3184
  });
3185
3185
  }
3186
- const Cu = /* @__PURE__ */ p("ZodNullable", (e, t) => {
3187
- ia.init(e, t), P.init(e, t), e._zod.processJSONSchema = (r, n, o) => dn(e, r, n, o), e.unwrap = () => e._zod.def.innerType;
3186
+ const Eu = /* @__PURE__ */ p("ZodNullable", (e, t) => {
3187
+ aa.init(e, t), P.init(e, t), e._zod.processJSONSchema = (r, n, o) => dn(e, r, n, o), e.unwrap = () => e._zod.def.innerType;
3188
3188
  });
3189
3189
  function rr(e) {
3190
- return new Cu({
3190
+ return new Eu({
3191
3191
  type: "nullable",
3192
3192
  innerType: e
3193
3193
  });
3194
3194
  }
3195
- const ku = /* @__PURE__ */ p("ZodDefault", (e, t) => {
3196
- ua.init(e, t), P.init(e, t), e._zod.processJSONSchema = (r, n, o) => fn(e, r, n, o), e.unwrap = () => e._zod.def.innerType, e.removeDefault = e.unwrap;
3195
+ const Cu = /* @__PURE__ */ p("ZodDefault", (e, t) => {
3196
+ ia.init(e, t), P.init(e, t), e._zod.processJSONSchema = (r, n, o) => fn(e, r, n, o), e.unwrap = () => e._zod.def.innerType, e.removeDefault = e.unwrap;
3197
3197
  });
3198
- function Su(e, t) {
3199
- return new ku({
3198
+ function ku(e, t) {
3199
+ return new Cu({
3200
3200
  type: "default",
3201
3201
  innerType: e,
3202
3202
  get defaultValue() {
@@ -3204,11 +3204,11 @@ function Su(e, t) {
3204
3204
  }
3205
3205
  });
3206
3206
  }
3207
- const xu = /* @__PURE__ */ p("ZodPrefault", (e, t) => {
3208
- ca.init(e, t), P.init(e, t), e._zod.processJSONSchema = (r, n, o) => gn(e, r, n, o), e.unwrap = () => e._zod.def.innerType;
3207
+ const Su = /* @__PURE__ */ p("ZodPrefault", (e, t) => {
3208
+ ua.init(e, t), P.init(e, t), e._zod.processJSONSchema = (r, n, o) => gn(e, r, n, o), e.unwrap = () => e._zod.def.innerType;
3209
3209
  });
3210
- function Zu(e, t) {
3211
- return new xu({
3210
+ function xu(e, t) {
3211
+ return new Su({
3212
3212
  type: "prefault",
3213
3213
  innerType: e,
3214
3214
  get defaultValue() {
@@ -3217,67 +3217,67 @@ function Zu(e, t) {
3217
3217
  });
3218
3218
  }
3219
3219
  const Dn = /* @__PURE__ */ p("ZodNonOptional", (e, t) => {
3220
- la.init(e, t), P.init(e, t), e._zod.processJSONSchema = (r, n, o) => pn(e, r, n, o), e.unwrap = () => e._zod.def.innerType;
3220
+ ca.init(e, t), P.init(e, t), e._zod.processJSONSchema = (r, n, o) => pn(e, r, n, o), e.unwrap = () => e._zod.def.innerType;
3221
3221
  });
3222
- function Pu(e, t) {
3222
+ function Zu(e, t) {
3223
3223
  return new Dn({
3224
3224
  type: "nonoptional",
3225
3225
  innerType: e,
3226
3226
  ...v(t)
3227
3227
  });
3228
3228
  }
3229
- const Lu = /* @__PURE__ */ p("ZodCatch", (e, t) => {
3230
- da.init(e, t), P.init(e, t), e._zod.processJSONSchema = (r, n, o) => mn(e, r, n, o), e.unwrap = () => e._zod.def.innerType, e.removeCatch = e.unwrap;
3229
+ const Pu = /* @__PURE__ */ p("ZodCatch", (e, t) => {
3230
+ la.init(e, t), P.init(e, t), e._zod.processJSONSchema = (r, n, o) => mn(e, r, n, o), e.unwrap = () => e._zod.def.innerType, e.removeCatch = e.unwrap;
3231
3231
  });
3232
- function Ru(e, t) {
3233
- return new Lu({
3232
+ function Lu(e, t) {
3233
+ return new Pu({
3234
3234
  type: "catch",
3235
3235
  innerType: e,
3236
3236
  catchValue: typeof t == "function" ? t : () => t
3237
3237
  });
3238
3238
  }
3239
- const $u = /* @__PURE__ */ p("ZodPipe", (e, t) => {
3240
- pa.init(e, t), P.init(e, t), e._zod.processJSONSchema = (r, n, o) => hn(e, r, n, o), e.in = t.in, e.out = t.out;
3239
+ const Ru = /* @__PURE__ */ p("ZodPipe", (e, t) => {
3240
+ da.init(e, t), P.init(e, t), e._zod.processJSONSchema = (r, n, o) => hn(e, r, n, o), e.in = t.in, e.out = t.out;
3241
3241
  });
3242
3242
  function nr(e, t) {
3243
- return new $u({
3243
+ return new Ru({
3244
3244
  type: "pipe",
3245
3245
  in: e,
3246
3246
  out: t
3247
3247
  // ...util.normalizeParams(params),
3248
3248
  });
3249
3249
  }
3250
- const Uu = /* @__PURE__ */ p("ZodReadonly", (e, t) => {
3251
- fa.init(e, t), P.init(e, t), e._zod.processJSONSchema = (r, n, o) => In(e, r, n, o), e.unwrap = () => e._zod.def.innerType;
3250
+ const $u = /* @__PURE__ */ p("ZodReadonly", (e, t) => {
3251
+ pa.init(e, t), P.init(e, t), e._zod.processJSONSchema = (r, n, o) => In(e, r, n, o), e.unwrap = () => e._zod.def.innerType;
3252
3252
  });
3253
- function Yu(e) {
3254
- return new Uu({
3253
+ function Uu(e) {
3254
+ return new $u({
3255
3255
  type: "readonly",
3256
3256
  innerType: e
3257
3257
  });
3258
3258
  }
3259
- const Qu = /* @__PURE__ */ p("ZodLazy", (e, t) => {
3260
- ga.init(e, t), P.init(e, t), e._zod.processJSONSchema = (r, n, o) => yn(e, r, n, o), e.unwrap = () => e._zod.def.getter();
3259
+ const Yu = /* @__PURE__ */ p("ZodLazy", (e, t) => {
3260
+ fa.init(e, t), P.init(e, t), e._zod.processJSONSchema = (r, n, o) => yn(e, r, n, o), e.unwrap = () => e._zod.def.getter();
3261
3261
  });
3262
- function Ju(e) {
3263
- return new Qu({
3262
+ function Qu(e) {
3263
+ return new Yu({
3264
3264
  type: "lazy",
3265
3265
  getter: e
3266
3266
  });
3267
3267
  }
3268
3268
  const vt = /* @__PURE__ */ p("ZodCustom", (e, t) => {
3269
- ma.init(e, t), P.init(e, t), e._zod.processJSONSchema = (r, n, o) => nn(e, r);
3269
+ ga.init(e, t), P.init(e, t), e._zod.processJSONSchema = (r, n, o) => nn(e, r);
3270
3270
  });
3271
3271
  function jn(e, t) {
3272
- return /* @__PURE__ */ ui(vt, e ?? (() => !0), t);
3272
+ return /* @__PURE__ */ ii(vt, e ?? (() => !0), t);
3273
3273
  }
3274
- function Fu(e, t = {}) {
3275
- return /* @__PURE__ */ ci(vt, e, t);
3274
+ function Ju(e, t = {}) {
3275
+ return /* @__PURE__ */ ui(vt, e, t);
3276
3276
  }
3277
- function Vu(e) {
3278
- return /* @__PURE__ */ li(e);
3277
+ function Fu(e) {
3278
+ return /* @__PURE__ */ ci(e);
3279
3279
  }
3280
- function Je(e, t = {}) {
3280
+ function Qe(e, t = {}) {
3281
3281
  const r = new vt({
3282
3282
  type: "custom",
3283
3283
  check: "custom",
@@ -3295,7 +3295,7 @@ function Je(e, t = {}) {
3295
3295
  });
3296
3296
  }, r;
3297
3297
  }
3298
- var we;
3298
+ var De;
3299
3299
  (function(e) {
3300
3300
  e.assertEqual = (o) => {
3301
3301
  };
@@ -3331,7 +3331,7 @@ var we;
3331
3331
  return o.map((i) => typeof i == "string" ? `'${i}'` : i).join(s);
3332
3332
  }
3333
3333
  e.joinValues = n, e.jsonStringifyReplacer = (o, s) => typeof s == "bigint" ? s.toString() : s;
3334
- })(we || (we = {}));
3334
+ })(De || (De = {}));
3335
3335
  var or;
3336
3336
  (function(e) {
3337
3337
  e.mergeShapes = (t, r) => ({
@@ -3340,7 +3340,7 @@ var or;
3340
3340
  // second overwrites first
3341
3341
  });
3342
3342
  })(or || (or = {}));
3343
- we.arrayToEnum([
3343
+ De.arrayToEnum([
3344
3344
  "string",
3345
3345
  "nan",
3346
3346
  "number",
@@ -3362,7 +3362,7 @@ we.arrayToEnum([
3362
3362
  "map",
3363
3363
  "set"
3364
3364
  ]);
3365
- we.arrayToEnum([
3365
+ De.arrayToEnum([
3366
3366
  "invalid_type",
3367
3367
  "invalid_literal",
3368
3368
  "custom",
@@ -3380,7 +3380,7 @@ we.arrayToEnum([
3380
3380
  "not_multiple_of",
3381
3381
  "not_finite"
3382
3382
  ]);
3383
- class Fe extends Error {
3383
+ class Je extends Error {
3384
3384
  get errors() {
3385
3385
  return this.issues;
3386
3386
  }
@@ -3417,14 +3417,14 @@ class Fe extends Error {
3417
3417
  return o(this), n;
3418
3418
  }
3419
3419
  static assert(t) {
3420
- if (!(t instanceof Fe))
3420
+ if (!(t instanceof Je))
3421
3421
  throw new Error(`Not a ZodError: ${t}`);
3422
3422
  }
3423
3423
  toString() {
3424
3424
  return this.message;
3425
3425
  }
3426
3426
  get message() {
3427
- return JSON.stringify(this.issues, we.jsonStringifyReplacer, 2);
3427
+ return JSON.stringify(this.issues, De.jsonStringifyReplacer, 2);
3428
3428
  }
3429
3429
  get isEmpty() {
3430
3430
  return this.issues.length === 0;
@@ -3443,7 +3443,7 @@ class Fe extends Error {
3443
3443
  return this.flatten();
3444
3444
  }
3445
3445
  }
3446
- Fe.create = (e) => new Fe(e);
3446
+ Je.create = (e) => new Je(e);
3447
3447
  var sr;
3448
3448
  (function(e) {
3449
3449
  e.errToObj = (t) => typeof t == "string" ? { message: t } : t || {}, e.toString = (t) => typeof t == "string" ? t : t == null ? void 0 : t.message;
@@ -3459,7 +3459,7 @@ class ar extends Error {
3459
3459
  }
3460
3460
  function Ke(e) {
3461
3461
  }
3462
- function Bu(e) {
3462
+ function Vu(e) {
3463
3463
  if (typeof e == "function")
3464
3464
  throw new TypeError(
3465
3465
  "`callbacks` must be an object, got a function instead. Did you mean `{onEvent: fn}`?"
@@ -3467,7 +3467,7 @@ function Bu(e) {
3467
3467
  const { onEvent: t = Ke, onError: r = Ke, onRetry: n = Ke, onComment: o } = e;
3468
3468
  let s = "", i = !0, a, c = "", u = "";
3469
3469
  function l(h) {
3470
- const m = i ? h.replace(/^\xEF\xBB\xBF/, "") : h, [b, N] = Gu(`${s}${m}`);
3470
+ const m = i ? h.replace(/^\xEF\xBB\xBF/, "") : h, [b, N] = Bu(`${s}${m}`);
3471
3471
  for (const f of b)
3472
3472
  d(f);
3473
3473
  s = N, i = !1;
@@ -3535,7 +3535,7 @@ function Bu(e) {
3535
3535
  }
3536
3536
  return { feed: l, reset: M };
3537
3537
  }
3538
- function Gu(e) {
3538
+ function Bu(e) {
3539
3539
  const t = [];
3540
3540
  let r = "", n = 0;
3541
3541
  for (; n < e.length; ) {
@@ -3553,12 +3553,12 @@ function Gu(e) {
3553
3553
  }
3554
3554
  return [t, r];
3555
3555
  }
3556
- class Wu extends TransformStream {
3556
+ class Gu extends TransformStream {
3557
3557
  constructor({ onError: t, onRetry: r, onComment: n } = {}) {
3558
3558
  let o;
3559
3559
  super({
3560
3560
  start(s) {
3561
- o = Bu({
3561
+ o = Vu({
3562
3562
  onEvent: (i) => {
3563
3563
  s.enqueue(i);
3564
3564
  },
@@ -3575,7 +3575,7 @@ class Wu extends TransformStream {
3575
3575
  });
3576
3576
  }
3577
3577
  }
3578
- var Te = ({
3578
+ var Oe = ({
3579
3579
  prefix: e,
3580
3580
  size: t = 16,
3581
3581
  alphabet: r = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",
@@ -3590,12 +3590,12 @@ var Te = ({
3590
3590
  if (e == null)
3591
3591
  return o;
3592
3592
  if (r.includes(n))
3593
- throw new ao({
3593
+ throw new so({
3594
3594
  argument: "separator",
3595
3595
  message: `The separator "${n}" must not be part of the alphabet "${r}".`
3596
3596
  });
3597
3597
  return () => `${e}${n}${o()}`;
3598
- }, Hu = Te();
3598
+ }, Wu = Oe();
3599
3599
  function ir(e = globalThis) {
3600
3600
  var t, r, n;
3601
3601
  return e.window ? "runtime/browser" : (t = e.navigator) != null && t.userAgent ? `runtime/${e.navigator.userAgent.toLowerCase()}` : (n = (r = e.process) == null ? void 0 : r.versions) != null && n.node ? `runtime/node.js/${e.process.version.substring(0)}` : e.EdgeRuntime ? "runtime/vercel-edge" : "runtime/unknown";
@@ -3622,12 +3622,12 @@ function ur(e, ...t) {
3622
3622
  [n, ...t].filter(Boolean).join(" ")
3623
3623
  ), Object.fromEntries(r.entries());
3624
3624
  }
3625
- var Xu = /"__proto__"\s*:/, qu = /"constructor"\s*:/;
3625
+ var Hu = /"__proto__"\s*:/, Xu = /"constructor"\s*:/;
3626
3626
  function cr(e) {
3627
3627
  const t = JSON.parse(e);
3628
- return t === null || typeof t != "object" || Xu.test(e) === !1 && qu.test(e) === !1 ? t : Ku(t);
3628
+ return t === null || typeof t != "object" || Hu.test(e) === !1 && Xu.test(e) === !1 ? t : qu(t);
3629
3629
  }
3630
- function Ku(e) {
3630
+ function qu(e) {
3631
3631
  let t = [e];
3632
3632
  for (; t.length; ) {
3633
3633
  const r = t;
@@ -3645,7 +3645,7 @@ function Ku(e) {
3645
3645
  }
3646
3646
  return e;
3647
3647
  }
3648
- function ec(e) {
3648
+ function Ku(e) {
3649
3649
  const { stackTraceLimit: t } = Error;
3650
3650
  try {
3651
3651
  Error.stackTraceLimit = 0;
@@ -3676,7 +3676,7 @@ function Mt(e) {
3676
3676
  function ie(e) {
3677
3677
  return typeof e == "boolean" ? e : Mt(e);
3678
3678
  }
3679
- var tc = Symbol(
3679
+ var ec = Symbol(
3680
3680
  "Let zodToJsonSchema decide on which parser to use"
3681
3681
  ), lr = {
3682
3682
  name: void 0,
@@ -3698,7 +3698,7 @@ var tc = Symbol(
3698
3698
  emailStrategy: "format:email",
3699
3699
  base64Strategy: "contentEncoding:base64",
3700
3700
  nameStrategy: "ref"
3701
- }, rc = (e) => typeof e == "string" ? {
3701
+ }, tc = (e) => typeof e == "string" ? {
3702
3702
  ...lr,
3703
3703
  name: e
3704
3704
  } : {
@@ -3708,7 +3708,7 @@ var tc = Symbol(
3708
3708
  function V() {
3709
3709
  return {};
3710
3710
  }
3711
- function nc(e, t) {
3711
+ function rc(e, t) {
3712
3712
  var r, n, o;
3713
3713
  const s = {
3714
3714
  type: "array"
@@ -3718,7 +3718,7 @@ function nc(e, t) {
3718
3718
  currentPath: [...t.currentPath, "items"]
3719
3719
  })), e.minLength && (s.minItems = e.minLength.value), e.maxLength && (s.maxItems = e.maxLength.value), e.exactLength && (s.minItems = e.exactLength.value, s.maxItems = e.exactLength.value), s;
3720
3720
  }
3721
- function oc(e) {
3721
+ function nc(e) {
3722
3722
  const t = {
3723
3723
  type: "integer",
3724
3724
  format: "int64"
@@ -3739,13 +3739,13 @@ function oc(e) {
3739
3739
  }
3740
3740
  return t;
3741
3741
  }
3742
- function sc() {
3742
+ function oc() {
3743
3743
  return { type: "boolean" };
3744
3744
  }
3745
3745
  function Tn(e, t) {
3746
3746
  return E(e.type._def, t);
3747
3747
  }
3748
- var ac = (e, t) => E(e.innerType._def, t);
3748
+ var sc = (e, t) => E(e.innerType._def, t);
3749
3749
  function On(e, t, r) {
3750
3750
  const n = r ?? t.dateStrategy;
3751
3751
  if (Array.isArray(n))
@@ -3765,10 +3765,10 @@ function On(e, t, r) {
3765
3765
  format: "date"
3766
3766
  };
3767
3767
  case "integer":
3768
- return ic(e);
3768
+ return ac(e);
3769
3769
  }
3770
3770
  }
3771
- var ic = (e) => {
3771
+ var ac = (e) => {
3772
3772
  const t = {
3773
3773
  type: "integer",
3774
3774
  format: "unix-time"
@@ -3784,23 +3784,23 @@ var ic = (e) => {
3784
3784
  }
3785
3785
  return t;
3786
3786
  };
3787
- function uc(e, t) {
3787
+ function ic(e, t) {
3788
3788
  return {
3789
3789
  ...E(e.innerType._def, t),
3790
3790
  default: e.defaultValue()
3791
3791
  };
3792
3792
  }
3793
- function cc(e, t) {
3793
+ function uc(e, t) {
3794
3794
  return t.effectStrategy === "input" ? E(e.schema._def, t) : V();
3795
3795
  }
3796
- function lc(e) {
3796
+ function cc(e) {
3797
3797
  return {
3798
3798
  type: "string",
3799
3799
  enum: Array.from(e.values)
3800
3800
  };
3801
3801
  }
3802
- var dc = (e) => "type" in e && e.type === "string" ? !1 : "allOf" in e;
3803
- function pc(e, t) {
3802
+ var lc = (e) => "type" in e && e.type === "string" ? !1 : "allOf" in e;
3803
+ function dc(e, t) {
3804
3804
  const r = [
3805
3805
  E(e.left._def, {
3806
3806
  ...t,
@@ -3812,7 +3812,7 @@ function pc(e, t) {
3812
3812
  })
3813
3813
  ].filter((o) => !!o), n = [];
3814
3814
  return r.forEach((o) => {
3815
- if (dc(o))
3815
+ if (lc(o))
3816
3816
  n.push(...o.allOf);
3817
3817
  else {
3818
3818
  let s = o;
@@ -3824,7 +3824,7 @@ function pc(e, t) {
3824
3824
  }
3825
3825
  }), n.length ? { allOf: n } : void 0;
3826
3826
  }
3827
- function fc(e) {
3827
+ function pc(e) {
3828
3828
  const t = typeof e.value;
3829
3829
  return t !== "bigint" && t !== "number" && t !== "boolean" && t !== "string" ? {
3830
3830
  type: Array.isArray(e.value) ? "array" : "object"
@@ -4003,15 +4003,15 @@ function En(e, t) {
4003
4003
  return r;
4004
4004
  }
4005
4005
  function tt(e, t) {
4006
- return t.patternStrategy === "escape" ? mc(e) : e;
4006
+ return t.patternStrategy === "escape" ? gc(e) : e;
4007
4007
  }
4008
- var gc = new Set(
4008
+ var fc = new Set(
4009
4009
  "ABCDEFGHIJKLMNOPQRSTUVXYZabcdefghijklmnopqrstuvxyz0123456789"
4010
4010
  );
4011
- function mc(e) {
4011
+ function gc(e) {
4012
4012
  let t = "";
4013
4013
  for (let r = 0; r < e.length; r++)
4014
- gc.has(e[r]) || (t += "\\"), t += e[r];
4014
+ fc.has(e[r]) || (t += "\\"), t += e[r];
4015
4015
  return t;
4016
4016
  }
4017
4017
  function X(e, t, r, n) {
@@ -4127,7 +4127,7 @@ function Cn(e, t) {
4127
4127
  }
4128
4128
  return c;
4129
4129
  }
4130
- function hc(e, t) {
4130
+ function mc(e, t) {
4131
4131
  if (t.mapStrategy === "record")
4132
4132
  return Cn(e, t);
4133
4133
  const r = E(e.keyType._def, {
@@ -4148,7 +4148,7 @@ function hc(e, t) {
4148
4148
  }
4149
4149
  };
4150
4150
  }
4151
- function Ic(e) {
4151
+ function hc(e) {
4152
4152
  const t = e.values, n = Object.keys(e.values).filter((s) => typeof t[t[s]] != "number").map((s) => t[s]), o = Array.from(
4153
4153
  new Set(n.map((s) => typeof s))
4154
4154
  );
@@ -4157,10 +4157,10 @@ function Ic(e) {
4157
4157
  enum: n
4158
4158
  };
4159
4159
  }
4160
- function yc() {
4160
+ function Ic() {
4161
4161
  return { not: V() };
4162
4162
  }
4163
- function vc() {
4163
+ function yc() {
4164
4164
  return {
4165
4165
  type: "null"
4166
4166
  };
@@ -4172,7 +4172,7 @@ var ut = {
4172
4172
  ZodBoolean: "boolean",
4173
4173
  ZodNull: "null"
4174
4174
  };
4175
- function Mc(e, t) {
4175
+ function vc(e, t) {
4176
4176
  const r = e.options instanceof Map ? Array.from(e.options.values()) : e.options;
4177
4177
  if (r.every(
4178
4178
  (n) => n._def.typeName in ut && (!n._def.checks || !n._def.checks.length)
@@ -4228,9 +4228,9 @@ function Mc(e, t) {
4228
4228
  []
4229
4229
  )
4230
4230
  };
4231
- return _c(e, t);
4231
+ return Mc(e, t);
4232
4232
  }
4233
- var _c = (e, t) => {
4233
+ var Mc = (e, t) => {
4234
4234
  const r = (e.options instanceof Map ? Array.from(e.options.values()) : e.options).map(
4235
4235
  (n, o) => E(n._def, {
4236
4236
  ...t,
@@ -4241,7 +4241,7 @@ var _c = (e, t) => {
4241
4241
  );
4242
4242
  return r.length ? { anyOf: r } : void 0;
4243
4243
  };
4244
- function Nc(e, t) {
4244
+ function _c(e, t) {
4245
4245
  if (["ZodString", "ZodNumber", "ZodBigInt", "ZodBoolean", "ZodNull"].includes(
4246
4246
  e.innerType._def.typeName
4247
4247
  ) && (!e.innerType._def.checks || !e.innerType._def.checks.length))
@@ -4257,7 +4257,7 @@ function Nc(e, t) {
4257
4257
  });
4258
4258
  return r && { anyOf: [r, { type: "null" }] };
4259
4259
  }
4260
- function bc(e) {
4260
+ function Nc(e) {
4261
4261
  const t = {
4262
4262
  type: "number"
4263
4263
  };
@@ -4280,7 +4280,7 @@ function bc(e) {
4280
4280
  }
4281
4281
  return t;
4282
4282
  }
4283
- function Ac(e, t) {
4283
+ function bc(e, t) {
4284
4284
  const r = {
4285
4285
  type: "object",
4286
4286
  properties: {}
@@ -4289,7 +4289,7 @@ function Ac(e, t) {
4289
4289
  let a = o[i];
4290
4290
  if (a === void 0 || a._def === void 0)
4291
4291
  continue;
4292
- const c = wc(a), u = E(a._def, {
4292
+ const c = zc(a), u = E(a._def, {
4293
4293
  ...t,
4294
4294
  currentPath: [...t.currentPath, "properties", i],
4295
4295
  propertyPath: [...t.currentPath, "properties", i]
@@ -4297,10 +4297,10 @@ function Ac(e, t) {
4297
4297
  u !== void 0 && (r.properties[i] = u, c || n.push(i));
4298
4298
  }
4299
4299
  n.length && (r.required = n);
4300
- const s = zc(e, t);
4300
+ const s = Ac(e, t);
4301
4301
  return s !== void 0 && (r.additionalProperties = s), r;
4302
4302
  }
4303
- function zc(e, t) {
4303
+ function Ac(e, t) {
4304
4304
  if (e.catchall._def.typeName !== "ZodNever")
4305
4305
  return E(e.catchall._def, {
4306
4306
  ...t,
@@ -4315,14 +4315,14 @@ function zc(e, t) {
4315
4315
  return t.removeAdditionalStrategy === "strict" ? t.allowedAdditionalProperties : t.rejectedAdditionalProperties;
4316
4316
  }
4317
4317
  }
4318
- function wc(e) {
4318
+ function zc(e) {
4319
4319
  try {
4320
4320
  return e.isOptional();
4321
4321
  } catch {
4322
4322
  return !0;
4323
4323
  }
4324
4324
  }
4325
- var Dc = (e, t) => {
4325
+ var wc = (e, t) => {
4326
4326
  var r;
4327
4327
  if (t.currentPath.toString() === ((r = t.propertyPath) == null ? void 0 : r.toString()))
4328
4328
  return E(e.innerType._def, t);
@@ -4331,7 +4331,7 @@ var Dc = (e, t) => {
4331
4331
  currentPath: [...t.currentPath, "anyOf", "1"]
4332
4332
  });
4333
4333
  return n ? { anyOf: [{ not: V() }, n] } : V();
4334
- }, jc = (e, t) => {
4334
+ }, Dc = (e, t) => {
4335
4335
  if (t.pipeStrategy === "input")
4336
4336
  return E(e.in._def, t);
4337
4337
  if (t.pipeStrategy === "output")
@@ -4347,10 +4347,10 @@ var Dc = (e, t) => {
4347
4347
  allOf: [r, n].filter((o) => o !== void 0)
4348
4348
  };
4349
4349
  };
4350
- function Tc(e, t) {
4350
+ function jc(e, t) {
4351
4351
  return E(e.type._def, t);
4352
4352
  }
4353
- function Oc(e, t) {
4353
+ function Tc(e, t) {
4354
4354
  const n = {
4355
4355
  type: "array",
4356
4356
  uniqueItems: !0,
@@ -4361,7 +4361,7 @@ function Oc(e, t) {
4361
4361
  };
4362
4362
  return e.minSize && (n.minItems = e.minSize.value), e.maxSize && (n.maxItems = e.maxSize.value), n;
4363
4363
  }
4364
- function Ec(e, t) {
4364
+ function Oc(e, t) {
4365
4365
  return e.rest ? {
4366
4366
  type: "array",
4367
4367
  minItems: e.items.length,
@@ -4393,80 +4393,80 @@ function Ec(e, t) {
4393
4393
  )
4394
4394
  };
4395
4395
  }
4396
- function Cc() {
4396
+ function Ec() {
4397
4397
  return {
4398
4398
  not: V()
4399
4399
  };
4400
4400
  }
4401
- function kc() {
4401
+ function Cc() {
4402
4402
  return V();
4403
4403
  }
4404
- var Sc = (e, t) => E(e.innerType._def, t), xc = (e, t, r) => {
4404
+ var kc = (e, t) => E(e.innerType._def, t), Sc = (e, t, r) => {
4405
4405
  switch (t) {
4406
4406
  case A.ZodString:
4407
4407
  return En(e, r);
4408
4408
  case A.ZodNumber:
4409
- return bc(e);
4409
+ return Nc(e);
4410
4410
  case A.ZodObject:
4411
- return Ac(e, r);
4411
+ return bc(e, r);
4412
4412
  case A.ZodBigInt:
4413
- return oc(e);
4413
+ return nc(e);
4414
4414
  case A.ZodBoolean:
4415
- return sc();
4415
+ return oc();
4416
4416
  case A.ZodDate:
4417
4417
  return On(e, r);
4418
4418
  case A.ZodUndefined:
4419
- return Cc();
4419
+ return Ec();
4420
4420
  case A.ZodNull:
4421
- return vc();
4421
+ return yc();
4422
4422
  case A.ZodArray:
4423
- return nc(e, r);
4423
+ return rc(e, r);
4424
4424
  case A.ZodUnion:
4425
4425
  case A.ZodDiscriminatedUnion:
4426
- return Mc(e, r);
4426
+ return vc(e, r);
4427
4427
  case A.ZodIntersection:
4428
- return pc(e, r);
4428
+ return dc(e, r);
4429
4429
  case A.ZodTuple:
4430
- return Ec(e, r);
4430
+ return Oc(e, r);
4431
4431
  case A.ZodRecord:
4432
4432
  return Cn(e, r);
4433
4433
  case A.ZodLiteral:
4434
- return fc(e);
4434
+ return pc(e);
4435
4435
  case A.ZodEnum:
4436
- return lc(e);
4436
+ return cc(e);
4437
4437
  case A.ZodNativeEnum:
4438
- return Ic(e);
4438
+ return hc(e);
4439
4439
  case A.ZodNullable:
4440
- return Nc(e, r);
4440
+ return _c(e, r);
4441
4441
  case A.ZodOptional:
4442
- return Dc(e, r);
4442
+ return wc(e, r);
4443
4443
  case A.ZodMap:
4444
- return hc(e, r);
4444
+ return mc(e, r);
4445
4445
  case A.ZodSet:
4446
- return Oc(e, r);
4446
+ return Tc(e, r);
4447
4447
  case A.ZodLazy:
4448
4448
  return () => e.getter()._def;
4449
4449
  case A.ZodPromise:
4450
- return Tc(e, r);
4450
+ return jc(e, r);
4451
4451
  case A.ZodNaN:
4452
4452
  case A.ZodNever:
4453
- return yc();
4453
+ return Ic();
4454
4454
  case A.ZodEffects:
4455
- return cc(e, r);
4455
+ return uc(e, r);
4456
4456
  case A.ZodAny:
4457
4457
  return V();
4458
4458
  case A.ZodUnknown:
4459
- return kc();
4459
+ return Cc();
4460
4460
  case A.ZodDefault:
4461
- return uc(e, r);
4461
+ return ic(e, r);
4462
4462
  case A.ZodBranded:
4463
4463
  return Tn(e, r);
4464
4464
  case A.ZodReadonly:
4465
- return Sc(e, r);
4465
+ return kc(e, r);
4466
4466
  case A.ZodCatch:
4467
- return ac(e, r);
4467
+ return sc(e, r);
4468
4468
  case A.ZodPipeline:
4469
- return jc(e, r);
4469
+ return Dc(e, r);
4470
4470
  case A.ZodFunction:
4471
4471
  case A.ZodVoid:
4472
4472
  case A.ZodSymbol:
@@ -4475,7 +4475,7 @@ var Sc = (e, t) => E(e.innerType._def, t), xc = (e, t, r) => {
4475
4475
  return /* @__PURE__ */ ((n) => {
4476
4476
  })();
4477
4477
  }
4478
- }, Zc = (e, t) => {
4478
+ }, xc = (e, t) => {
4479
4479
  let r = 0;
4480
4480
  for (; r < e.length && r < t.length && e[r] === t[r]; r++)
4481
4481
  ;
@@ -4492,29 +4492,29 @@ function E(e, t, r = !1) {
4492
4492
  o,
4493
4493
  r
4494
4494
  );
4495
- if (c !== tc)
4495
+ if (c !== ec)
4496
4496
  return c;
4497
4497
  }
4498
4498
  if (o && !r) {
4499
- const c = Pc(o, t);
4499
+ const c = Zc(o, t);
4500
4500
  if (c !== void 0)
4501
4501
  return c;
4502
4502
  }
4503
4503
  const s = { def: e, path: t.currentPath, jsonSchema: void 0 };
4504
4504
  t.seen.set(e, s);
4505
- const i = xc(e, e.typeName, t), a = typeof i == "function" ? E(i(), t) : i;
4506
- if (a && Lc(e, t, a), t.postProcess) {
4505
+ const i = Sc(e, e.typeName, t), a = typeof i == "function" ? E(i(), t) : i;
4506
+ if (a && Pc(e, t, a), t.postProcess) {
4507
4507
  const c = t.postProcess(a, e, t);
4508
4508
  return s.jsonSchema = a, c;
4509
4509
  }
4510
4510
  return s.jsonSchema = a, a;
4511
4511
  }
4512
- var Pc = (e, t) => {
4512
+ var Zc = (e, t) => {
4513
4513
  switch (t.$refStrategy) {
4514
4514
  case "root":
4515
4515
  return { $ref: e.path.join("/") };
4516
4516
  case "relative":
4517
- return { $ref: Zc(t.currentPath, e.path) };
4517
+ return { $ref: xc(t.currentPath, e.path) };
4518
4518
  case "none":
4519
4519
  case "seen":
4520
4520
  return e.path.length < t.currentPath.length && e.path.every((r, n) => t.currentPath[n] === r) ? (console.warn(
@@ -4523,8 +4523,8 @@ var Pc = (e, t) => {
4523
4523
  )}! Defaulting to any`
4524
4524
  ), V()) : t.$refStrategy === "seen" ? V() : void 0;
4525
4525
  }
4526
- }, Lc = (e, t, r) => (e.description && (r.description = e.description), r), Rc = (e) => {
4527
- const t = rc(e), r = t.name !== void 0 ? [...t.basePath, t.definitionPath, t.name] : t.basePath;
4526
+ }, Pc = (e, t, r) => (e.description && (r.description = e.description), r), Lc = (e) => {
4527
+ const t = tc(e), r = t.name !== void 0 ? [...t.basePath, t.definitionPath, t.name] : t.basePath;
4528
4528
  return {
4529
4529
  ...t,
4530
4530
  currentPath: r,
@@ -4541,9 +4541,9 @@ var Pc = (e, t) => {
4541
4541
  ])
4542
4542
  )
4543
4543
  };
4544
- }, $c = (e, t) => {
4544
+ }, Rc = (e, t) => {
4545
4545
  var r;
4546
- const n = Rc(t);
4546
+ const n = Lc(t);
4547
4547
  let o = typeof t == "object" && t.definitions ? Object.entries(t.definitions).reduce(
4548
4548
  (u, [l, d]) => {
4549
4549
  var y;
@@ -4586,11 +4586,11 @@ var Pc = (e, t) => {
4586
4586
  };
4587
4587
  return c.$schema = "http://json-schema.org/draft-07/schema#", c;
4588
4588
  }, ct = Symbol.for("vercel.ai.schema");
4589
- function Uc(e) {
4589
+ function $c(e) {
4590
4590
  let t;
4591
4591
  return () => (t == null && (t = e()), t);
4592
4592
  }
4593
- function He(e, {
4593
+ function We(e, {
4594
4594
  validate: t
4595
4595
  } = {}) {
4596
4596
  return {
@@ -4603,14 +4603,14 @@ function He(e, {
4603
4603
  validate: t
4604
4604
  };
4605
4605
  }
4606
- function Yc(e) {
4606
+ function Uc(e) {
4607
4607
  return typeof e == "object" && e !== null && ct in e && e[ct] === !0 && "jsonSchema" in e && "validate" in e;
4608
4608
  }
4609
4609
  function _t(e) {
4610
- return e == null ? He({ properties: {}, additionalProperties: !1 }) : Yc(e) ? e : "~standard" in e ? e["~standard"].vendor === "zod" ? kn(e) : Qc(e) : e();
4610
+ return e == null ? We({ properties: {}, additionalProperties: !1 }) : Uc(e) ? e : "~standard" in e ? e["~standard"].vendor === "zod" ? kn(e) : Yc(e) : e();
4611
4611
  }
4612
- function Qc(e) {
4613
- return He(
4612
+ function Yc(e) {
4613
+ return We(
4614
4614
  () => Mt(
4615
4615
  e["~standard"].jsonSchema.input({
4616
4616
  target: "draft-07"
@@ -4630,12 +4630,12 @@ function Qc(e) {
4630
4630
  }
4631
4631
  );
4632
4632
  }
4633
- function Jc(e, t) {
4633
+ function Qc(e, t) {
4634
4634
  var r;
4635
4635
  const n = (r = t == null ? void 0 : t.useReferences) != null ? r : !1;
4636
- return He(
4636
+ return We(
4637
4637
  // defer json schema creation to avoid unnecessary computation when only validation is needed
4638
- () => $c(e, {
4638
+ () => Rc(e, {
4639
4639
  $refStrategy: n ? "root" : "none"
4640
4640
  }),
4641
4641
  {
@@ -4646,13 +4646,13 @@ function Jc(e, t) {
4646
4646
  }
4647
4647
  );
4648
4648
  }
4649
- function Fc(e, t) {
4649
+ function Jc(e, t) {
4650
4650
  var r;
4651
4651
  const n = (r = t == null ? void 0 : t.useReferences) != null ? r : !1;
4652
- return He(
4652
+ return We(
4653
4653
  // defer json schema creation to avoid unnecessary computation when only validation is needed
4654
4654
  () => Mt(
4655
- Ti(e, {
4655
+ ji(e, {
4656
4656
  target: "draft-7",
4657
4657
  io: "input",
4658
4658
  reused: n ? "ref" : "inline"
@@ -4666,22 +4666,22 @@ function Fc(e, t) {
4666
4666
  }
4667
4667
  );
4668
4668
  }
4669
- function Vc(e) {
4669
+ function Fc(e) {
4670
4670
  return "_zod" in e;
4671
4671
  }
4672
4672
  function kn(e, t) {
4673
- return Vc(e) ? Fc(e, t) : Jc(e, t);
4673
+ return Fc(e) ? Jc(e, t) : Qc(e, t);
4674
4674
  }
4675
4675
  async function pr({
4676
4676
  value: e,
4677
4677
  schema: t
4678
4678
  }) {
4679
- const r = await De({ value: e, schema: t });
4679
+ const r = await je({ value: e, schema: t });
4680
4680
  if (!r.success)
4681
4681
  throw me.wrap({ value: e, cause: r.error });
4682
4682
  return r.value;
4683
4683
  }
4684
- async function De({
4684
+ async function je({
4685
4685
  value: e,
4686
4686
  schema: t
4687
4687
  }) {
@@ -4708,8 +4708,8 @@ async function ce({
4708
4708
  schema: t
4709
4709
  }) {
4710
4710
  try {
4711
- const r = ec(e);
4712
- return t == null ? { success: !0, value: r, rawValue: r } : await De({ value: r, schema: t });
4711
+ const r = Ku(e);
4712
+ return t == null ? { success: !0, value: r, rawValue: r } : await je({ value: r, schema: t });
4713
4713
  } catch (r) {
4714
4714
  return {
4715
4715
  success: !1,
@@ -4718,11 +4718,11 @@ async function ce({
4718
4718
  };
4719
4719
  }
4720
4720
  }
4721
- function Bc({
4721
+ function Vc({
4722
4722
  stream: e,
4723
4723
  schema: t
4724
4724
  }) {
4725
- return e.pipeThrough(new TextDecoderStream()).pipeThrough(new Wu()).pipeThrough(
4725
+ return e.pipeThrough(new TextDecoderStream()).pipeThrough(new Gu()).pipeThrough(
4726
4726
  new TransformStream({
4727
4727
  async transform({ data: r }, n) {
4728
4728
  r !== "[DONE]" && n.enqueue(await ce({ text: r, schema: t }));
@@ -4733,10 +4733,10 @@ function Bc({
4733
4733
  async function te(e) {
4734
4734
  return typeof e == "function" && (e = e()), Promise.resolve(e);
4735
4735
  }
4736
- var Gc = Object.defineProperty, Wc = (e, t) => {
4736
+ var Bc = Object.defineProperty, Gc = (e, t) => {
4737
4737
  for (var r in t)
4738
- Gc(e, r, { get: t[r], enumerable: !0 });
4739
- }, Sn = "AI_NoObjectGeneratedError", xn = `vercel.ai.error.${Sn}`, Hc = Symbol.for(xn), Zn, re = class extends K {
4738
+ Bc(e, r, { get: t[r], enumerable: !0 });
4739
+ }, Sn = "AI_NoObjectGeneratedError", xn = `vercel.ai.error.${Sn}`, Wc = Symbol.for(xn), Zn, re = class extends K {
4740
4740
  constructor({
4741
4741
  message: e = "No object generated.",
4742
4742
  cause: t,
@@ -4751,8 +4751,8 @@ var Gc = Object.defineProperty, Wc = (e, t) => {
4751
4751
  return K.hasMarker(e, xn);
4752
4752
  }
4753
4753
  };
4754
- Zn = Hc;
4755
- var Pn = "AI_UIMessageStreamError", Ln = `vercel.ai.error.${Pn}`, Xc = Symbol.for(Ln), Rn, de = class extends K {
4754
+ Zn = Wc;
4755
+ var Pn = "AI_UIMessageStreamError", Ln = `vercel.ai.error.${Pn}`, Hc = Symbol.for(Ln), Rn, de = class extends K {
4756
4756
  constructor({
4757
4757
  chunkType: e,
4758
4758
  chunkId: t,
@@ -4764,11 +4764,11 @@ var Pn = "AI_UIMessageStreamError", Ln = `vercel.ai.error.${Pn}`, Xc = Symbol.fo
4764
4764
  return K.hasMarker(e, Ln);
4765
4765
  }
4766
4766
  };
4767
- Rn = Xc;
4767
+ Rn = Hc;
4768
4768
  var fr = "6.0.42", $n = Q([
4769
4769
  I(),
4770
- Je(Uint8Array),
4771
- Je(ArrayBuffer),
4770
+ Qe(Uint8Array),
4771
+ Qe(ArrayBuffer),
4772
4772
  jn(
4773
4773
  // Buffer might not be available in some environments such as CloudFlare:
4774
4774
  (e) => {
@@ -4777,45 +4777,45 @@ var fr = "6.0.42", $n = Q([
4777
4777
  },
4778
4778
  { message: "Must be a Buffer" }
4779
4779
  )
4780
- ]), je = Ju(
4780
+ ]), Te = Qu(
4781
4781
  () => Q([
4782
- yu(),
4782
+ Iu(),
4783
4783
  I(),
4784
- gu(),
4784
+ fu(),
4785
4785
  Y(),
4786
- ze(I(), je.optional()),
4787
- ve(je)
4786
+ we(I(), Te.optional()),
4787
+ ve(Te)
4788
4788
  ])
4789
- ), T = ze(
4789
+ ), T = we(
4790
4790
  I(),
4791
- ze(I(), je.optional())
4791
+ we(I(), Te.optional())
4792
4792
  ), Un = k({
4793
4793
  type: _("text"),
4794
4794
  text: I(),
4795
4795
  providerOptions: T.optional()
4796
- }), qc = k({
4796
+ }), Xc = k({
4797
4797
  type: _("image"),
4798
- image: Q([$n, Je(URL)]),
4798
+ image: Q([$n, Qe(URL)]),
4799
4799
  mediaType: I().optional(),
4800
4800
  providerOptions: T.optional()
4801
4801
  }), Yn = k({
4802
4802
  type: _("file"),
4803
- data: Q([$n, Je(URL)]),
4803
+ data: Q([$n, Qe(URL)]),
4804
4804
  filename: I().optional(),
4805
4805
  mediaType: I(),
4806
4806
  providerOptions: T.optional()
4807
- }), Kc = k({
4807
+ }), qc = k({
4808
4808
  type: _("reasoning"),
4809
4809
  text: I(),
4810
4810
  providerOptions: T.optional()
4811
- }), el = k({
4811
+ }), Kc = k({
4812
4812
  type: _("tool-call"),
4813
4813
  toolCallId: I(),
4814
4814
  toolName: I(),
4815
4815
  input: q(),
4816
4816
  providerOptions: T.optional(),
4817
4817
  providerExecuted: Y().optional()
4818
- }), tl = bu(
4818
+ }), el = Nu(
4819
4819
  "type",
4820
4820
  [
4821
4821
  k({
@@ -4825,7 +4825,7 @@ var fr = "6.0.42", $n = Q([
4825
4825
  }),
4826
4826
  k({
4827
4827
  type: _("json"),
4828
- value: je,
4828
+ value: Te,
4829
4829
  providerOptions: T.optional()
4830
4830
  }),
4831
4831
  k({
@@ -4840,7 +4840,7 @@ var fr = "6.0.42", $n = Q([
4840
4840
  }),
4841
4841
  k({
4842
4842
  type: _("error-json"),
4843
- value: je,
4843
+ value: Te,
4844
4844
  providerOptions: T.optional()
4845
4845
  }),
4846
4846
  k({
@@ -4871,7 +4871,7 @@ var fr = "6.0.42", $n = Q([
4871
4871
  }),
4872
4872
  k({
4873
4873
  type: _("file-id"),
4874
- fileId: Q([I(), ze(I(), I())]),
4874
+ fileId: Q([I(), we(I(), I())]),
4875
4875
  providerOptions: T.optional()
4876
4876
  }),
4877
4877
  k({
@@ -4887,7 +4887,7 @@ var fr = "6.0.42", $n = Q([
4887
4887
  }),
4888
4888
  k({
4889
4889
  type: _("image-file-id"),
4890
- fileId: Q([I(), ze(I(), I())]),
4890
+ fileId: Q([I(), we(I(), I())]),
4891
4891
  providerOptions: T.optional()
4892
4892
  }),
4893
4893
  k({
@@ -4902,31 +4902,31 @@ var fr = "6.0.42", $n = Q([
4902
4902
  type: _("tool-result"),
4903
4903
  toolCallId: I(),
4904
4904
  toolName: I(),
4905
- output: tl,
4905
+ output: el,
4906
4906
  providerOptions: T.optional()
4907
- }), rl = k({
4907
+ }), tl = k({
4908
4908
  type: _("tool-approval-request"),
4909
4909
  approvalId: I(),
4910
4910
  toolCallId: I()
4911
- }), nl = k({
4911
+ }), rl = k({
4912
4912
  type: _("tool-approval-response"),
4913
4913
  approvalId: I(),
4914
4914
  approved: Y(),
4915
4915
  reason: I().optional()
4916
- }), ol = k(
4916
+ }), nl = k(
4917
4917
  {
4918
4918
  role: _("system"),
4919
4919
  content: I(),
4920
4920
  providerOptions: T.optional()
4921
4921
  }
4922
- ), sl = k({
4922
+ ), ol = k({
4923
4923
  role: _("user"),
4924
4924
  content: Q([
4925
4925
  I(),
4926
- ve(Q([Un, qc, Yn]))
4926
+ ve(Q([Un, Xc, Yn]))
4927
4927
  ]),
4928
4928
  providerOptions: T.optional()
4929
- }), al = k({
4929
+ }), sl = k({
4930
4930
  role: _("assistant"),
4931
4931
  content: Q([
4932
4932
  I(),
@@ -4934,24 +4934,24 @@ var fr = "6.0.42", $n = Q([
4934
4934
  Q([
4935
4935
  Un,
4936
4936
  Yn,
4937
+ qc,
4937
4938
  Kc,
4938
- el,
4939
4939
  Qn,
4940
- rl
4940
+ tl
4941
4941
  ])
4942
4942
  )
4943
4943
  ]),
4944
4944
  providerOptions: T.optional()
4945
- }), il = k({
4945
+ }), al = k({
4946
4946
  role: _("tool"),
4947
- content: ve(Q([Qn, nl])),
4947
+ content: ve(Q([Qn, rl])),
4948
4948
  providerOptions: T.optional()
4949
4949
  });
4950
4950
  Q([
4951
+ nl,
4951
4952
  ol,
4952
4953
  sl,
4953
- al,
4954
- il
4954
+ al
4955
4955
  ]);
4956
4956
  function Jn(e, t) {
4957
4957
  if (e === void 0 && t === void 0)
@@ -4974,15 +4974,15 @@ function Jn(e, t) {
4974
4974
  }
4975
4975
  return r;
4976
4976
  }
4977
- var ul = {};
4978
- Wc(ul, {
4979
- array: () => pl,
4980
- choice: () => fl,
4981
- json: () => gl,
4982
- object: () => dl,
4983
- text: () => ll
4977
+ var il = {};
4978
+ Gc(il, {
4979
+ array: () => dl,
4980
+ choice: () => pl,
4981
+ json: () => fl,
4982
+ object: () => ll,
4983
+ text: () => cl
4984
4984
  });
4985
- function cl(e) {
4985
+ function ul(e) {
4986
4986
  const t = ["ROOT"];
4987
4987
  let r = -1, n = null;
4988
4988
  function o(c, u, l) {
@@ -5230,13 +5230,13 @@ function cl(e) {
5230
5230
  }
5231
5231
  return a;
5232
5232
  }
5233
- async function Oe(e) {
5233
+ async function Ee(e) {
5234
5234
  if (e === void 0)
5235
5235
  return { value: void 0, state: "undefined-input" };
5236
5236
  let t = await ce({ text: e });
5237
- return t.success ? { value: t.value, state: "successful-parse" } : (t = await ce({ text: cl(e) }), t.success ? { value: t.value, state: "repaired-parse" } : { value: void 0, state: "failed-parse" });
5237
+ return t.success ? { value: t.value, state: "successful-parse" } : (t = await ce({ text: ul(e) }), t.success ? { value: t.value, state: "repaired-parse" } : { value: void 0, state: "failed-parse" });
5238
5238
  }
5239
- var ll = () => ({
5239
+ var cl = () => ({
5240
5240
  name: "text",
5241
5241
  responseFormat: Promise.resolve({ type: "text" }),
5242
5242
  async parseCompleteOutput({ text: e }) {
@@ -5247,7 +5247,7 @@ var ll = () => ({
5247
5247
  },
5248
5248
  createElementStreamTransform() {
5249
5249
  }
5250
- }), dl = ({
5250
+ }), ll = ({
5251
5251
  schema: e,
5252
5252
  name: t,
5253
5253
  description: r
@@ -5272,7 +5272,7 @@ var ll = () => ({
5272
5272
  usage: s.usage,
5273
5273
  finishReason: s.finishReason
5274
5274
  });
5275
- const a = await De({
5275
+ const a = await je({
5276
5276
  value: i.value,
5277
5277
  schema: n
5278
5278
  });
@@ -5288,7 +5288,7 @@ var ll = () => ({
5288
5288
  return a.value;
5289
5289
  },
5290
5290
  async parsePartialOutput({ text: o }) {
5291
- const s = await Oe(o);
5291
+ const s = await Ee(o);
5292
5292
  switch (s.state) {
5293
5293
  case "failed-parse":
5294
5294
  case "undefined-input":
@@ -5304,7 +5304,7 @@ var ll = () => ({
5304
5304
  createElementStreamTransform() {
5305
5305
  }
5306
5306
  };
5307
- }, pl = ({
5307
+ }, dl = ({
5308
5308
  element: e,
5309
5309
  name: t,
5310
5310
  description: r
@@ -5355,7 +5355,7 @@ var ll = () => ({
5355
5355
  finishReason: s.finishReason
5356
5356
  });
5357
5357
  for (const c of a.elements) {
5358
- const u = await De({
5358
+ const u = await je({
5359
5359
  value: c,
5360
5360
  schema: n
5361
5361
  });
@@ -5372,7 +5372,7 @@ var ll = () => ({
5372
5372
  return a.elements;
5373
5373
  },
5374
5374
  async parsePartialOutput({ text: o }) {
5375
- const s = await Oe(o);
5375
+ const s = await Ee(o);
5376
5376
  switch (s.state) {
5377
5377
  case "failed-parse":
5378
5378
  case "undefined-input":
@@ -5384,7 +5384,7 @@ var ll = () => ({
5384
5384
  return;
5385
5385
  const a = s.state === "repaired-parse" && i.elements.length > 0 ? i.elements.slice(0, -1) : i.elements, c = [];
5386
5386
  for (const u of a) {
5387
- const l = await De({
5387
+ const l = await je({
5388
5388
  value: u,
5389
5389
  schema: n
5390
5390
  });
@@ -5405,7 +5405,7 @@ var ll = () => ({
5405
5405
  });
5406
5406
  }
5407
5407
  };
5408
- }, fl = ({
5408
+ }, pl = ({
5409
5409
  options: e,
5410
5410
  name: t,
5411
5411
  description: r
@@ -5453,7 +5453,7 @@ var ll = () => ({
5453
5453
  return i.result;
5454
5454
  },
5455
5455
  async parsePartialOutput({ text: n }) {
5456
- const o = await Oe(n);
5456
+ const o = await Ee(n);
5457
5457
  switch (o.state) {
5458
5458
  case "failed-parse":
5459
5459
  case "undefined-input":
@@ -5472,7 +5472,7 @@ var ll = () => ({
5472
5472
  },
5473
5473
  createElementStreamTransform() {
5474
5474
  }
5475
- }), gl = ({
5475
+ }), fl = ({
5476
5476
  name: e,
5477
5477
  description: t
5478
5478
  } = {}) => ({
@@ -5496,7 +5496,7 @@ var ll = () => ({
5496
5496
  return o.value;
5497
5497
  },
5498
5498
  async parsePartialOutput({ text: r }) {
5499
- const n = await Oe(r);
5499
+ const n = await Ee(r);
5500
5500
  switch (n.state) {
5501
5501
  case "failed-parse":
5502
5502
  case "undefined-input":
@@ -5509,7 +5509,7 @@ var ll = () => ({
5509
5509
  createElementStreamTransform() {
5510
5510
  }
5511
5511
  });
5512
- Te({
5512
+ Oe({
5513
5513
  prefix: "aitxt",
5514
5514
  size: 24
5515
5515
  });
@@ -5529,7 +5529,7 @@ Te({
5529
5529
  });
5530
5530
  }
5531
5531
  });
5532
- var ml = Uc(
5532
+ var gl = $c(
5533
5533
  () => kn(
5534
5534
  Q([
5535
5535
  x({
@@ -5691,22 +5691,22 @@ var ml = Uc(
5691
5691
  ])
5692
5692
  )
5693
5693
  );
5694
- function hl(e) {
5694
+ function ml(e) {
5695
5695
  return e.type.startsWith("data-");
5696
5696
  }
5697
5697
  function lt(e) {
5698
5698
  return e.type.startsWith("tool-");
5699
5699
  }
5700
- function Il(e) {
5700
+ function hl(e) {
5701
5701
  return e.type === "dynamic-tool";
5702
5702
  }
5703
5703
  function dt(e) {
5704
- return lt(e) || Il(e);
5704
+ return lt(e) || hl(e);
5705
5705
  }
5706
5706
  function gr(e) {
5707
5707
  return e.type.split("-").slice(1).join("-");
5708
5708
  }
5709
- function yl({
5709
+ function Il({
5710
5710
  lastMessage: e,
5711
5711
  messageId: t
5712
5712
  }) {
@@ -5722,7 +5722,7 @@ function yl({
5722
5722
  partialToolCalls: {}
5723
5723
  };
5724
5724
  }
5725
- function vl({
5725
+ function yl({
5726
5726
  stream: e,
5727
5727
  messageMetadataSchema: t,
5728
5728
  dataPartSchemas: r,
@@ -5737,42 +5737,42 @@ function vl({
5737
5737
  await n(async ({ state: u, write: l }) => {
5738
5738
  var d, y, g, M;
5739
5739
  function h(f) {
5740
- const D = u.message.parts.filter(dt).find(
5741
- (j) => j.toolCallId === f
5740
+ const w = u.message.parts.filter(dt).find(
5741
+ (D) => D.toolCallId === f
5742
5742
  );
5743
- if (D == null)
5743
+ if (w == null)
5744
5744
  throw new de({
5745
5745
  chunkType: "tool-invocation",
5746
5746
  chunkId: f,
5747
5747
  message: `No tool invocation found for tool call ID "${f}".`
5748
5748
  });
5749
- return D;
5749
+ return w;
5750
5750
  }
5751
5751
  function m(f) {
5752
5752
  var z;
5753
- const D = u.message.parts.find(
5753
+ const w = u.message.parts.find(
5754
5754
  (J) => lt(J) && J.toolCallId === f.toolCallId
5755
- ), j = f, C = D;
5756
- D != null ? (D.state = f.state, C.input = j.input, C.output = j.output, C.errorText = j.errorText, C.rawInput = j.rawInput, C.preliminary = j.preliminary, f.title !== void 0 && (C.title = f.title), C.providerExecuted = (z = j.providerExecuted) != null ? z : D.providerExecuted, j.providerMetadata != null && (D.callProviderMetadata = j.providerMetadata)) : u.message.parts.push({
5755
+ ), D = f, C = w;
5756
+ w != null ? (w.state = f.state, C.input = D.input, C.output = D.output, C.errorText = D.errorText, C.rawInput = D.rawInput, C.preliminary = D.preliminary, f.title !== void 0 && (C.title = f.title), C.providerExecuted = (z = D.providerExecuted) != null ? z : w.providerExecuted, D.providerMetadata != null && (w.callProviderMetadata = D.providerMetadata)) : u.message.parts.push({
5757
5757
  type: `tool-${f.toolName}`,
5758
5758
  toolCallId: f.toolCallId,
5759
5759
  state: f.state,
5760
5760
  title: f.title,
5761
- input: j.input,
5762
- output: j.output,
5763
- rawInput: j.rawInput,
5764
- errorText: j.errorText,
5765
- providerExecuted: j.providerExecuted,
5766
- preliminary: j.preliminary,
5767
- ...j.providerMetadata != null ? { callProviderMetadata: j.providerMetadata } : {}
5761
+ input: D.input,
5762
+ output: D.output,
5763
+ rawInput: D.rawInput,
5764
+ errorText: D.errorText,
5765
+ providerExecuted: D.providerExecuted,
5766
+ preliminary: D.preliminary,
5767
+ ...D.providerMetadata != null ? { callProviderMetadata: D.providerMetadata } : {}
5768
5768
  });
5769
5769
  }
5770
5770
  function b(f) {
5771
- var z, D;
5772
- const j = u.message.parts.find(
5771
+ var z, w;
5772
+ const D = u.message.parts.find(
5773
5773
  (Nt) => Nt.type === "dynamic-tool" && Nt.toolCallId === f.toolCallId
5774
- ), C = f, J = j;
5775
- j != null ? (j.state = f.state, J.toolName = f.toolName, J.input = C.input, J.output = C.output, J.errorText = C.errorText, J.rawInput = (z = C.rawInput) != null ? z : J.rawInput, J.preliminary = C.preliminary, f.title !== void 0 && (J.title = f.title), J.providerExecuted = (D = C.providerExecuted) != null ? D : j.providerExecuted, C.providerMetadata != null && (j.callProviderMetadata = C.providerMetadata)) : u.message.parts.push({
5774
+ ), C = f, J = D;
5775
+ D != null ? (D.state = f.state, J.toolName = f.toolName, J.input = C.input, J.output = C.output, J.errorText = C.errorText, J.rawInput = (z = C.rawInput) != null ? z : J.rawInput, J.preliminary = C.preliminary, f.title !== void 0 && (J.title = f.title), J.providerExecuted = (w = C.providerExecuted) != null ? w : D.providerExecuted, C.providerMetadata != null && (D.callProviderMetadata = C.providerMetadata)) : u.message.parts.push({
5776
5776
  type: "dynamic-tool",
5777
5777
  toolName: f.toolName,
5778
5778
  toolCallId: f.toolCallId,
@@ -5925,7 +5925,7 @@ function vl({
5925
5925
  message: `Received tool-input-delta for missing tool call with ID "${a.toolCallId}". Ensure a "tool-input-start" chunk is sent before any "tool-input-delta" chunks.`
5926
5926
  });
5927
5927
  f.text += a.inputTextDelta;
5928
- const { value: z } = await Oe(
5928
+ const { value: z } = await Ee(
5929
5929
  f.text
5930
5930
  );
5931
5931
  f.dynamic ? b({
@@ -6066,7 +6066,7 @@ function vl({
6066
6066
  break;
6067
6067
  }
6068
6068
  default:
6069
- if (hl(a)) {
6069
+ if (ml(a)) {
6070
6070
  (r == null ? void 0 : r[a.type]) != null && await pr({
6071
6071
  value: a.data,
6072
6072
  schema: r[a.type]
@@ -6077,7 +6077,7 @@ function vl({
6077
6077
  break;
6078
6078
  }
6079
6079
  const z = f.id != null ? u.message.parts.find(
6080
- (D) => f.type === D.type && f.id === D.id
6080
+ (w) => f.type === w.type && f.id === w.id
6081
6081
  ) : void 0;
6082
6082
  z != null ? z.data = f.data : u.message.parts.push(f), i == null || i(f), l();
6083
6083
  }
@@ -6088,7 +6088,7 @@ function vl({
6088
6088
  })
6089
6089
  );
6090
6090
  }
6091
- async function Ml({
6091
+ async function vl({
6092
6092
  stream: e,
6093
6093
  onError: t
6094
6094
  }) {
@@ -6105,12 +6105,12 @@ async function Ml({
6105
6105
  r.releaseLock();
6106
6106
  }
6107
6107
  }
6108
- Te({
6108
+ Oe({
6109
6109
  prefix: "aitxt",
6110
6110
  size: 24
6111
6111
  });
6112
- Te({ prefix: "aiobj", size: 24 });
6113
- var _l = class {
6112
+ Oe({ prefix: "aiobj", size: 24 });
6113
+ var Ml = class {
6114
6114
  constructor() {
6115
6115
  this.queue = [], this.isProcessing = !1;
6116
6116
  }
@@ -6133,8 +6133,8 @@ var _l = class {
6133
6133
  });
6134
6134
  }
6135
6135
  };
6136
- Te({ prefix: "aiobj", size: 24 });
6137
- async function Nl(e) {
6136
+ Oe({ prefix: "aiobj", size: 24 });
6137
+ async function _l(e) {
6138
6138
  if (e == null)
6139
6139
  return [];
6140
6140
  if (!globalThis.FileList || !(e instanceof globalThis.FileList))
@@ -6157,7 +6157,7 @@ async function Nl(e) {
6157
6157
  })
6158
6158
  );
6159
6159
  }
6160
- var bl = class {
6160
+ var Nl = class {
6161
6161
  constructor({
6162
6162
  api: e = "/api/chat",
6163
6163
  credentials: t,
@@ -6247,14 +6247,14 @@ var bl = class {
6247
6247
  throw new Error("The response body is empty.");
6248
6248
  return this.processResponseStream(h.body);
6249
6249
  }
6250
- }, Fn = class extends bl {
6250
+ }, Fn = class extends Nl {
6251
6251
  constructor(e = {}) {
6252
6252
  super(e);
6253
6253
  }
6254
6254
  processResponseStream(e) {
6255
- return Bc({
6255
+ return Vc({
6256
6256
  stream: e,
6257
- schema: ml
6257
+ schema: gl
6258
6258
  }).pipeThrough(
6259
6259
  new TransformStream({
6260
6260
  async transform(t, r) {
@@ -6265,9 +6265,9 @@ var bl = class {
6265
6265
  })
6266
6266
  );
6267
6267
  }
6268
- }, Al = class {
6268
+ }, bl = class {
6269
6269
  constructor({
6270
- generateId: e = Hu,
6270
+ generateId: e = Wu,
6271
6271
  id: t = e(),
6272
6272
  transport: r = new Fn(),
6273
6273
  messageMetadataSchema: n,
@@ -6279,7 +6279,7 @@ var bl = class {
6279
6279
  onData: u,
6280
6280
  sendAutomaticallyWhen: l
6281
6281
  }) {
6282
- this.activeResponse = void 0, this.jobExecutor = new _l(), this.sendMessage = async (d, y) => {
6282
+ this.activeResponse = void 0, this.jobExecutor = new Ml(), this.sendMessage = async (d, y) => {
6283
6283
  var g, M, h, m;
6284
6284
  if (d == null) {
6285
6285
  await this.makeRequest({
@@ -6292,7 +6292,7 @@ var bl = class {
6292
6292
  let b;
6293
6293
  if ("text" in d || "files" in d ? b = {
6294
6294
  parts: [
6295
- ...Array.isArray(d.files) ? d.files : await Nl(d.files),
6295
+ ...Array.isArray(d.files) ? d.files : await _l(d.files),
6296
6296
  ..."text" in d && d.text != null ? [{ type: "text", text: d.text }] : []
6297
6297
  ]
6298
6298
  } : b = d, d.messageId != null) {
@@ -6369,7 +6369,7 @@ var bl = class {
6369
6369
  errorText: h
6370
6370
  }) => this.jobExecutor.run(async () => {
6371
6371
  var m, b;
6372
- const N = this.state.messages, f = N[N.length - 1], z = (D) => dt(D) && D.toolCallId === g ? { ...D, state: d, output: M, errorText: h } : D;
6372
+ const N = this.state.messages, f = N[N.length - 1], z = (w) => dt(w) && w.toolCallId === g ? { ...w, state: d, output: M, errorText: h } : w;
6373
6373
  this.state.replaceMessage(N.length - 1, {
6374
6374
  ...f,
6375
6375
  parts: f.parts.map(z)
@@ -6424,7 +6424,7 @@ var bl = class {
6424
6424
  let l = !1, d = !1, y = !1;
6425
6425
  try {
6426
6426
  const g = {
6427
- state: yl({
6427
+ state: Il({
6428
6428
  lastMessage: this.state.snapshot(u),
6429
6429
  messageId: this.generateId()
6430
6430
  }),
@@ -6472,8 +6472,8 @@ var bl = class {
6472
6472
  })
6473
6473
  )
6474
6474
  );
6475
- await Ml({
6476
- stream: vl({
6475
+ await vl({
6476
+ stream: yl({
6477
6477
  stream: M,
6478
6478
  onToolCall: this.onToolCall,
6479
6479
  onData: this.onData,
@@ -6529,7 +6529,7 @@ globalThis && globalThis.__awaiter;
6529
6529
  globalThis && globalThis.__generator;
6530
6530
  globalThis && globalThis.__read;
6531
6531
  globalThis && globalThis.__spreadArray;
6532
- var zl = class {
6532
+ var Al = class {
6533
6533
  constructor(e) {
6534
6534
  this.statusRef = ee("ready"), this.errorRef = ee(void 0), this.pushMessage = (t) => {
6535
6535
  this.messagesRef.value = [...this.messagesRef.value, t];
@@ -6557,11 +6557,11 @@ var zl = class {
6557
6557
  set error(e) {
6558
6558
  this.errorRef.value = e;
6559
6559
  }
6560
- }, wl = class extends Al {
6560
+ }, zl = class extends bl {
6561
6561
  constructor({ messages: e, ...t }) {
6562
6562
  super({
6563
6563
  ...t,
6564
- state: new zl(e)
6564
+ state: new Al(e)
6565
6565
  });
6566
6566
  }
6567
6567
  };
@@ -6571,20 +6571,20 @@ var zl = class {
6571
6571
  * This source code is licensed under the ISC license.
6572
6572
  * See the LICENSE file in the root directory of this source tree.
6573
6573
  */
6574
- const hr = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), Dl = (e) => e.replace(
6574
+ const hr = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), wl = (e) => e.replace(
6575
6575
  /^([A-Z])|[\s-_]+(\w)/g,
6576
6576
  (t, r, n) => n ? n.toUpperCase() : r.toLowerCase()
6577
- ), jl = (e) => {
6578
- const t = Dl(e);
6577
+ ), Dl = (e) => {
6578
+ const t = wl(e);
6579
6579
  return t.charAt(0).toUpperCase() + t.slice(1);
6580
- }, Tl = (...e) => e.filter((t, r, n) => !!t && t.trim() !== "" && n.indexOf(t) === r).join(" ").trim(), Ir = (e) => e === "";
6580
+ }, jl = (...e) => e.filter((t, r, n) => !!t && t.trim() !== "" && n.indexOf(t) === r).join(" ").trim(), Ir = (e) => e === "";
6581
6581
  /**
6582
6582
  * @license lucide-vue-next v0.562.0 - ISC
6583
6583
  *
6584
6584
  * This source code is licensed under the ISC license.
6585
6585
  * See the LICENSE file in the root directory of this source tree.
6586
6586
  */
6587
- var _e = {
6587
+ var Ne = {
6588
6588
  xmlns: "http://www.w3.org/2000/svg",
6589
6589
  width: 24,
6590
6590
  height: 24,
@@ -6601,29 +6601,29 @@ var _e = {
6601
6601
  * This source code is licensed under the ISC license.
6602
6602
  * See the LICENSE file in the root directory of this source tree.
6603
6603
  */
6604
- const Ol = ({
6604
+ const Tl = ({
6605
6605
  name: e,
6606
6606
  iconNode: t,
6607
6607
  absoluteStrokeWidth: r,
6608
6608
  "absolute-stroke-width": n,
6609
6609
  strokeWidth: o,
6610
6610
  "stroke-width": s,
6611
- size: i = _e.width,
6612
- color: a = _e.stroke,
6611
+ size: i = Ne.width,
6612
+ color: a = Ne.stroke,
6613
6613
  ...c
6614
6614
  }, { slots: u }) => rt(
6615
6615
  "svg",
6616
6616
  {
6617
- ..._e,
6617
+ ...Ne,
6618
6618
  ...c,
6619
6619
  width: i,
6620
6620
  height: i,
6621
6621
  stroke: a,
6622
- "stroke-width": Ir(r) || Ir(n) || r === !0 || n === !0 ? Number(o || s || _e["stroke-width"]) * 24 / Number(i) : o || s || _e["stroke-width"],
6623
- class: Tl(
6622
+ "stroke-width": Ir(r) || Ir(n) || r === !0 || n === !0 ? Number(o || s || Ne["stroke-width"]) * 24 / Number(i) : o || s || Ne["stroke-width"],
6623
+ class: jl(
6624
6624
  "lucide",
6625
6625
  c.class,
6626
- ...e ? [`lucide-${hr(jl(e))}-icon`, `lucide-${hr(e)}`] : ["lucide-icon"]
6626
+ ...e ? [`lucide-${hr(Dl(e))}-icon`, `lucide-${hr(e)}`] : ["lucide-icon"]
6627
6627
  )
6628
6628
  },
6629
6629
  [...t.map((l) => rt(...l)), ...u.default ? [u.default()] : []]
@@ -6635,7 +6635,7 @@ const Ol = ({
6635
6635
  * See the LICENSE file in the root directory of this source tree.
6636
6636
  */
6637
6637
  const Vn = (e, t) => (r, { slots: n, attrs: o }) => rt(
6638
- Ol,
6638
+ Tl,
6639
6639
  {
6640
6640
  ...o,
6641
6641
  ...r,
@@ -6650,7 +6650,7 @@ const Vn = (e, t) => (r, { slots: n, attrs: o }) => rt(
6650
6650
  * This source code is licensed under the ISC license.
6651
6651
  * See the LICENSE file in the root directory of this source tree.
6652
6652
  */
6653
- const El = Vn("arrow-right", [
6653
+ const Ol = Vn("arrow-right", [
6654
6654
  ["path", { d: "M5 12h14", key: "1ays0h" }],
6655
6655
  ["path", { d: "m12 5 7 7-7 7", key: "xquz4c" }]
6656
6656
  ]);
@@ -6660,10 +6660,13 @@ const El = Vn("arrow-right", [
6660
6660
  * This source code is licensed under the ISC license.
6661
6661
  * See the LICENSE file in the root directory of this source tree.
6662
6662
  */
6663
- const Cl = Vn("x", [
6663
+ const El = Vn("x", [
6664
6664
  ["path", { d: "M18 6 6 18", key: "1bl5f8" }],
6665
6665
  ["path", { d: "m6 6 12 12", key: "d8bk6v" }]
6666
- ]), kl = { class: "z-[1000] w-fit flex flex-col items-end relative gci-chatbot" }, Sl = { class: "flex items-center justify-between" }, xl = {
6666
+ ]), Cl = { class: "z-[1000] w-fit flex flex-col items-end relative gci-chatbot" }, kl = {
6667
+ key: 0,
6668
+ class: "ai-card chat-popup transition-all duration-7"
6669
+ }, Sl = { class: "flex items-center justify-between" }, xl = {
6667
6670
  key: 0,
6668
6671
  class: "chat-empty-state"
6669
6672
  }, Zl = { class: "chat-empty-heading" }, Pl = { class: "chat-empty-greeting" }, Ll = {
@@ -6674,10 +6677,10 @@ const Cl = Vn("x", [
6674
6677
  class: "message-assistant"
6675
6678
  }, Ul = {
6676
6679
  key: 1,
6677
- src: to,
6680
+ src: eo,
6678
6681
  alt: "",
6679
6682
  class: "loading-message"
6680
- }, Yl = ["disabled"], Ql = { class: "chat-actions-content" }, Jl = { class: "chat-actions-tooltip bg-tooltip-chatbot" }, Fl = { class: "flex-center-box" }, Vl = { class: "tooltip-label-bot" }, Gl = /* @__PURE__ */ Bn({
6683
+ }, Yl = ["disabled"], Ql = { class: "chat-actions-content" }, Fl = /* @__PURE__ */ Bn({
6681
6684
  __name: "ChatbotComponent",
6682
6685
  props: {
6683
6686
  clientId: { type: String, default: "" },
@@ -6694,7 +6697,7 @@ const Cl = Vn("x", [
6694
6697
  "Need clarity? Let me explain it in simple terms.",
6695
6698
  "I can assist you with anything you're unsure about.",
6696
6699
  "Don't hesitate—I'm just a question away!"
6697
- ], d = new wl({
6700
+ ], d = new zl({
6698
6701
  transport: new Fn({
6699
6702
  api: "https://ai-chat-backend.dev02.dtsmart.dev/api/chat",
6700
6703
  body: {
@@ -6738,120 +6741,118 @@ const Cl = Vn("x", [
6738
6741
  n && clearInterval(n);
6739
6742
  }), (h, m) => {
6740
6743
  var b;
6741
- return G(), W(Me, null, [
6742
- s.value ? (G(), W("div", {
6744
+ return B(), G(Me, null, [
6745
+ s.value ? (B(), G("div", {
6743
6746
  key: 0,
6744
6747
  class: "bg-[#ffffff00] absolute w-full h-full",
6745
6748
  onClick: m[0] || (m[0] = (N) => s.value = !1)
6746
- })) : Ee("", !0),
6747
- w("div", kl, [
6748
- w("div", {
6749
- class: qn(["ai-card chat-popup transition-all duration-7", { "opacity-0": !s.value, "opacity-100": s.value }])
6750
- }, [
6751
- w("div", Sl, [
6752
- m[2] || (m[2] = w("p", { class: "ai-hello" }, "Hi, I’m Boko AI", -1)),
6753
- w("button", {
6749
+ })) : _e("", !0),
6750
+ j("div", Cl, [
6751
+ s.value ? (B(), G("div", kl, [
6752
+ j("div", Sl, [
6753
+ m[2] || (m[2] = j("p", { class: "ai-hello" }, "Hi, I’m Boko AI", -1)),
6754
+ j("button", {
6754
6755
  class: "ai-close",
6755
6756
  onClick: M
6756
6757
  }, [
6757
- Ce(ke(Cl))
6758
+ Ce(ke(El))
6758
6759
  ])
6759
6760
  ]),
6760
- w("div", {
6761
+ j("div", {
6761
6762
  ref_key: "scrollRef",
6762
6763
  ref: i,
6763
6764
  class: "chat-popup-message"
6764
6765
  }, [
6765
- ke(d).messages.length === 0 ? (G(), W("div", xl, [
6766
- w("div", Zl, [
6767
- w("p", Pl, " Hello " + Se(e.clientId), 1),
6768
- m[3] || (m[3] = w("p", { class: "chat-empty-title" }, " How Can I Help You Today ? ", -1))
6766
+ ke(d).messages.length === 0 ? (B(), G("div", xl, [
6767
+ j("div", Zl, [
6768
+ j("p", Pl, " Hello " + He(e.clientId), 1),
6769
+ m[3] || (m[3] = j("p", { class: "chat-empty-title" }, " How Can I Help You Today ? ", -1))
6769
6770
  ]),
6770
- m[4] || (m[4] = w("p", { class: "chat-empty-description" }, " I’m Boko, your friendly assistant. ", -1)),
6771
- m[5] || (m[5] = w("p", { class: "chat-empty-description" }, " Here to help — anytime you’re ready! ", -1))
6772
- ])) : Ee("", !0),
6773
- (G(!0), W(Me, null, bt(ke(d).messages, (N, f) => (G(), W("div", {
6771
+ m[4] || (m[4] = j("p", { class: "chat-empty-description" }, " I’m Boko, your friendly assistant. ", -1)),
6772
+ m[5] || (m[5] = j("p", { class: "chat-empty-description" }, " Here to help — anytime you’re ready! ", -1))
6773
+ ])) : _e("", !0),
6774
+ (B(!0), G(Me, null, bt(ke(d).messages, (N, f) => (B(), G("div", {
6774
6775
  key: N.id ?? f,
6775
6776
  class: "mb-3"
6776
6777
  }, [
6777
- (G(!0), W(Me, null, bt(N == null ? void 0 : N.parts, (z, D) => (G(), W(Me, {
6778
- key: `${N.id}-${z.type}-${D}`
6778
+ (B(!0), G(Me, null, bt(N == null ? void 0 : N.parts, (z, w) => (B(), G(Me, {
6779
+ key: `${N.id}-${z.type}-${w}`
6779
6780
  }, [
6780
- (z == null ? void 0 : z.type) === "text" ? (G(), W(Me, { key: 0 }, [
6781
- N.role === "user" ? (G(), W("div", Ll, [
6782
- w("div", Rl, [
6783
- w("div", null, Se(z == null ? void 0 : z.text), 1)
6781
+ (z == null ? void 0 : z.type) === "text" ? (B(), G(Me, { key: 0 }, [
6782
+ N.role === "user" ? (B(), G("div", Ll, [
6783
+ j("div", Rl, [
6784
+ j("div", null, He(z == null ? void 0 : z.text), 1)
6784
6785
  ])
6785
- ])) : (G(), W("div", $l, [
6786
- w("div", null, Se(z == null ? void 0 : z.text), 1)
6786
+ ])) : (B(), G("div", $l, [
6787
+ j("div", null, He(z == null ? void 0 : z.text), 1)
6787
6788
  ]))
6788
- ], 64)) : Ee("", !0)
6789
+ ], 64)) : _e("", !0)
6789
6790
  ], 64))), 128))
6790
6791
  ]))), 128)),
6791
- a.value ? (G(), W("img", Ul)) : Ee("", !0)
6792
+ a.value ? (B(), G("img", Ul)) : _e("", !0)
6792
6793
  ], 512),
6793
- w("form", {
6794
+ j("form", {
6794
6795
  onSubmit: y,
6795
6796
  class: "ai-input-wrap"
6796
6797
  }, [
6797
- At(w("input", {
6798
+ At(j("input", {
6798
6799
  class: "ai-input",
6799
6800
  "onUpdate:modelValue": m[1] || (m[1] = (N) => o.value = N),
6800
6801
  placeholder: "Ask me anything…"
6801
6802
  }, null, 512), [
6802
- [Kn, o.value]
6803
+ [qn, o.value]
6803
6804
  ]),
6804
- w("button", {
6805
+ j("button", {
6805
6806
  class: "ai-send",
6806
6807
  disabled: !o.value || ((b = o.value) == null ? void 0 : b.length) == 0 || a.value
6807
6808
  }, [
6808
- Ce(ke(El), { class: "w-5 h-5 text-white" })
6809
+ Ce(ke(Ol), { class: "w-5 h-5 text-white" })
6809
6810
  ], 8, Yl)
6810
6811
  ], 32)
6811
- ], 2),
6812
- w("div", {
6812
+ ])) : _e("", !0),
6813
+ j("div", {
6813
6814
  class: "chat-actions",
6814
6815
  onClick: g
6815
6816
  }, [
6816
6817
  Ce(zt, { name: "fade-slide" }, {
6817
6818
  default: wt(() => [
6818
- At(w("div", Ql, [
6819
- w("div", Jl, [
6820
- m[6] || (m[6] = w("span", { class: "tooltip-arrow" }, [
6821
- w("svg", {
6819
+ At(j("div", Ql, [...m[6] || (m[6] = [
6820
+ j("div", { class: "chat-actions-tooltip bg-tooltip-chatbot" }, [
6821
+ j("span", { class: "tooltip-arrow" }, [
6822
+ j("svg", {
6822
6823
  width: "15",
6823
6824
  height: "23",
6824
6825
  viewBox: "0 0 15 23",
6825
6826
  fill: "none",
6826
6827
  xmlns: "http://www.w3.org/2000/svg"
6827
6828
  }, [
6828
- w("path", {
6829
+ j("path", {
6829
6830
  d: "M14.5547 22.3335V0.000163078L0 9.19624L14.5547 22.3335Z",
6830
6831
  fill: "currentColor"
6831
6832
  })
6832
6833
  ])
6833
- ], -1)),
6834
- m[7] || (m[7] = w("div", { class: "tooltip-header" }, [
6835
- w("div", { class: "flex justify-start items-center" }, [
6836
- w("p", { class: "tooltip-label" }, "DigiAI"),
6837
- w("span", null, [
6838
- w("img", {
6839
- src: ro,
6834
+ ]),
6835
+ j("div", { class: "tooltip-header" }, [
6836
+ j("div", { class: "flex justify-start items-center" }, [
6837
+ j("p", { class: "tooltip-label" }, "DigiAI"),
6838
+ j("span", null, [
6839
+ j("img", {
6840
+ src: to,
6840
6841
  alt: ""
6841
6842
  })
6842
6843
  ])
6843
6844
  ]),
6844
- w("div", { class: "flex justify-start items-center" }, [
6845
- w("p", { class: "tooltip-label" }, "Try Now"),
6846
- w("span", null, [
6847
- w("svg", {
6845
+ j("div", { class: "flex justify-start items-center" }, [
6846
+ j("p", { class: "tooltip-label" }, "Try Now"),
6847
+ j("span", null, [
6848
+ j("svg", {
6848
6849
  width: "14",
6849
6850
  height: "15",
6850
6851
  viewBox: "0 0 14 15",
6851
6852
  fill: "none",
6852
6853
  xmlns: "http://www.w3.org/2000/svg"
6853
6854
  }, [
6854
- w("path", {
6855
+ j("path", {
6855
6856
  d: "M5.25003 3.82617L8.75 7.32617L5.25 10.8262",
6856
6857
  stroke: "#9970E2",
6857
6858
  "stroke-width": "1.5",
@@ -6861,22 +6862,22 @@ const Cl = Vn("x", [
6861
6862
  ])
6862
6863
  ])
6863
6864
  ])
6864
- ], -1)),
6865
- w("div", Fl, [
6866
- w("p", Vl, Se(l[c.value]), 1)
6865
+ ]),
6866
+ j("div", { class: "flex-center-box" }, [
6867
+ j("p", { class: "tooltip-label-bot" }, " Have questions? I’m here to help make things easier. ")
6867
6868
  ])
6868
- ])
6869
- ], 512), [
6870
- [eo, u.value && !s.value]
6869
+ ], -1)
6870
+ ])], 512), [
6871
+ [Kn, u.value && !s.value]
6871
6872
  ])
6872
6873
  ]),
6873
6874
  _: 1
6874
6875
  }),
6875
6876
  Ce(zt, { name: "fade-slide" }, {
6876
- default: wt(() => [...m[8] || (m[8] = [
6877
- w("div", { class: "chat-float" }, [
6878
- w("img", {
6879
- src: no,
6877
+ default: wt(() => [...m[7] || (m[7] = [
6878
+ j("div", { class: "chat-float" }, [
6879
+ j("img", {
6880
+ src: ro,
6880
6881
  alt: ""
6881
6882
  })
6882
6883
  ], -1)
@@ -6890,5 +6891,5 @@ const Cl = Vn("x", [
6890
6891
  }
6891
6892
  });
6892
6893
  export {
6893
- Gl as ChatbotComponent
6894
+ Fl as ChatbotComponent
6894
6895
  };