gci-chatbot-ai 1.0.14 → 1.0.15

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,4 +1,4 @@
1
- import { ref as ee, h as rt, onMounted as Bn, defineComponent as Gn, watch as Wn, nextTick as Hn, openBlock as B, createElementBlock as W, Fragment as _e, createCommentVNode as Ne, createElementVNode as w, normalizeClass as Xn, createVNode as He, unref as ie, toDisplayString as ke, renderList as bt, withDirectives as At, vModelText as qn, Transition as zt, withCtx as wt, createBlock as Kn, vShow as eo } from "vue";
1
+ import { ref as ee, h as rt, defineComponent as Bn, watch as Gn, nextTick as Wn, onMounted as Hn, openBlock as B, createElementBlock as W, Fragment as Me, createCommentVNode as _e, createElementVNode as z, normalizeClass as Xn, createVNode as He, unref as Ce, toDisplayString as ke, renderList as bt, withDirectives as At, vModelText as qn, Transition as zt, withCtx as wt, createBlock as Kn, vShow as eo } from "vue";
2
2
  const to = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIwIiBoZWlnaHQ9IjMwIiB2aWV3Qm94PSIwIDAgMTIwIDMwIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGZpbGw9Im5vbmUiPg0KICA8Y2lyY2xlIGN4PSIxNSIgY3k9IjE1IiByPSI2IiBmaWxsPSIjNUI4Q0ZGIj4NCiAgICA8YW5pbWF0ZSBhdHRyaWJ1dGVOYW1lPSJvcGFjaXR5IiB2YWx1ZXM9IjAuMzsxOzAuMyIgZHVyPSIxLjRzIiByZXBlYXRDb3VudD0iaW5kZWZpbml0ZSIgYmVnaW49IjBzIj48L2FuaW1hdGU+DQogIDwvY2lyY2xlPg0KDQogIDxjaXJjbGUgY3g9IjQ1IiBjeT0iMTUiIHI9IjYiIGZpbGw9IiM1QjhDRkYiPg0KICAgIDxhbmltYXRlIGF0dHJpYnV0ZU5hbWU9Im9wYWNpdHkiIHZhbHVlcz0iMC4zOzE7MC4zIiBkdXI9I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RiIvPgogICAgICAgICAgICAgICAgICAgICAgPC9saW5lYXJHcmFkaWVudD4KICAgICAgICAgICAgICAgICAgICA8L2RlZnM+CiAgICAgICAgICAgICAgICAgIDwvc3ZnPg==";
3
3
  var yr = "vercel.ai.error", oo = Symbol.for(yr), jt, Dt, K = class vr extends (Dt = Error, jt = oo, Dt) {
4
4
  /**
@@ -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, he = class nt extends (xt = K, St = uo, xt) {
58
+ }, zr = "AI_TypeValidationError", wr = `vercel.ai.error.${zr}`, uo = Symbol.for(wr), St, xt, me = class nt extends (xt = K, St = uo, xt) {
59
59
  constructor({ value: t, cause: r }) {
60
60
  super({
61
61
  name: zr,
@@ -84,7 +84,7 @@ Error message: ${Mr(r)}`,
84
84
  return nt.isInstance(r) && r.value === t ? r : new nt({ value: t, cause: r });
85
85
  }
86
86
  };
87
- function p(e, t, r) {
87
+ function f(e, t, r) {
88
88
  function n(a, c) {
89
89
  if (a._zod || Object.defineProperty(a, "_zod", {
90
90
  value: {
@@ -98,8 +98,8 @@ function p(e, t, r) {
98
98
  a._zod.traits.add(e), t(a, c);
99
99
  const u = i.prototype, l = Object.keys(u);
100
100
  for (let d = 0; d < l.length; d++) {
101
- const y = l[d];
102
- y in a || (a[y] = u[y].bind(a));
101
+ const I = l[d];
102
+ I in a || (a[I] = u[I].bind(a));
103
103
  }
104
104
  }
105
105
  const o = (r == null ? void 0 : r.Parent) ?? Object;
@@ -121,7 +121,7 @@ function p(e, t, r) {
121
121
  }
122
122
  }), Object.defineProperty(i, "name", { value: e }), i;
123
123
  }
124
- class me extends Error {
124
+ class ge extends Error {
125
125
  constructor() {
126
126
  super("Encountered Promise during synchronous parse. Use .parseAsync() instead.");
127
127
  }
@@ -170,7 +170,7 @@ function co(e, t) {
170
170
  return i % a / 10 ** s;
171
171
  }
172
172
  const Zt = Symbol("evaluating");
173
- function O(e, t, r) {
173
+ function D(e, t, r) {
174
174
  let n;
175
175
  Object.defineProperty(e, t, {
176
176
  get() {
@@ -186,7 +186,7 @@ function O(e, t, r) {
186
186
  configurable: !0
187
187
  });
188
188
  }
189
- function de(e, t, r) {
189
+ function le(e, t, r) {
190
190
  Object.defineProperty(e, t, {
191
191
  value: r,
192
192
  writable: !0,
@@ -210,7 +210,7 @@ function lo(e) {
210
210
  }
211
211
  const Tr = "captureStackTrace" in Error ? Error.captureStackTrace : (...e) => {
212
212
  };
213
- function ze(e) {
213
+ function Ae(e) {
214
214
  return typeof e == "object" && e !== null && !Array.isArray(e);
215
215
  }
216
216
  const po = Fe(() => {
@@ -224,20 +224,20 @@ const po = Fe(() => {
224
224
  return !1;
225
225
  }
226
226
  });
227
- function Ie(e) {
228
- if (ze(e) === !1)
227
+ function he(e) {
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 !(ze(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
- return Ie(e) ? { ...e } : Array.isArray(e) ? [...e] : e;
237
+ return he(e) ? { ...e } : Array.isArray(e) ? [...e] : e;
238
238
  }
239
239
  const fo = /* @__PURE__ */ new Set(["string", "number", "symbol"]);
240
- function ye(e) {
240
+ function Ie(e) {
241
241
  return e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
242
242
  }
243
243
  function ae(e, t, r) {
@@ -279,7 +279,7 @@ function ho(e, t) {
279
279
  throw new Error(`Unrecognized key: "${a}"`);
280
280
  t[a] && (i[a] = r.shape[a]);
281
281
  }
282
- return de(this, "shape", i), i;
282
+ return le(this, "shape", i), i;
283
283
  },
284
284
  checks: []
285
285
  });
@@ -297,14 +297,14 @@ function Io(e, t) {
297
297
  throw new Error(`Unrecognized key: "${a}"`);
298
298
  t[a] && delete i[a];
299
299
  }
300
- return de(this, "shape", i), i;
300
+ return le(this, "shape", i), i;
301
301
  },
302
302
  checks: []
303
303
  });
304
304
  return ae(e, s);
305
305
  }
306
306
  function yo(e, t) {
307
- if (!Ie(t))
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;
310
310
  if (r && r.length > 0) {
@@ -316,18 +316,18 @@ function yo(e, t) {
316
316
  const o = se(e._zod.def, {
317
317
  get shape() {
318
318
  const s = { ...e._zod.def.shape, ...t };
319
- return de(this, "shape", s), s;
319
+ return le(this, "shape", s), s;
320
320
  }
321
321
  });
322
322
  return ae(e, o);
323
323
  }
324
324
  function vo(e, t) {
325
- if (!Ie(t))
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, {
328
328
  get shape() {
329
329
  const n = { ...e._zod.def.shape, ...t };
330
- return de(this, "shape", n), n;
330
+ return le(this, "shape", n), n;
331
331
  }
332
332
  });
333
333
  return ae(e, r);
@@ -336,7 +336,7 @@ function Mo(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 };
339
- return de(this, "shape", n), n;
339
+ return le(this, "shape", n), n;
340
340
  },
341
341
  get catchall() {
342
342
  return t._zod.def.catchall;
@@ -368,7 +368,7 @@ function _o(e, t, r) {
368
368
  type: "optional",
369
369
  innerType: a[u]
370
370
  }) : a[u];
371
- return de(this, "shape", c), c;
371
+ return le(this, "shape", c), c;
372
372
  },
373
373
  checks: []
374
374
  });
@@ -393,12 +393,12 @@ function No(e, t, r) {
393
393
  type: "nonoptional",
394
394
  innerType: o[i]
395
395
  });
396
- return de(this, "shape", s), s;
396
+ return le(this, "shape", s), s;
397
397
  }
398
398
  });
399
399
  return ae(t, n);
400
400
  }
401
- function fe(e, t = 0) {
401
+ function pe(e, t = 0) {
402
402
  var r;
403
403
  if (e.aborted === !0)
404
404
  return !0;
@@ -407,7 +407,7 @@ function fe(e, t = 0) {
407
407
  return !0;
408
408
  return !1;
409
409
  }
410
- function ge(e, t) {
410
+ function fe(e, t) {
411
411
  return t.map((r) => {
412
412
  var n;
413
413
  return (n = r).path ?? (n.path = []), r.path.unshift(e), r;
@@ -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 we(...e) {
431
+ function ze(...e) {
432
432
  const [t, r, n] = e;
433
433
  return typeof t == "string" ? {
434
434
  message: t,
@@ -448,7 +448,7 @@ const Er = (e, t) => {
448
448
  value: () => e.message,
449
449
  enumerable: !1
450
450
  });
451
- }, Cr = p("$ZodError", Er), kr = p("$ZodError", Er, { Parent: Error });
451
+ }, Cr = f("$ZodError", Er), kr = f("$ZodError", Er, { Parent: Error });
452
452
  function bo(e, t = (r) => r.message) {
453
453
  const r = {}, n = [];
454
454
  for (const o of e.issues)
@@ -479,7 +479,7 @@ function Ao(e, t = (r) => r.message) {
479
479
  const mt = (e) => (t, r, n, o) => {
480
480
  const s = n ? Object.assign(n, { async: !1 }) : { async: !1 }, i = t._zod.run({ value: r, issues: [] }, s);
481
481
  if (i instanceof Promise)
482
- throw new me();
482
+ throw new ge();
483
483
  if (i.issues.length) {
484
484
  const a = new ((o == null ? void 0 : o.Err) ?? e)(i.issues.map((c) => oe(c, s, ne())));
485
485
  throw Tr(a, o == null ? void 0 : o.callee), a;
@@ -496,7 +496,7 @@ const mt = (e) => (t, r, n, o) => {
496
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
- throw new me();
499
+ throw new ge();
500
500
  return s.issues.length ? {
501
501
  success: !1,
502
502
  error: new (e ?? Cr)(s.issues.map((i) => oe(i, o, ne())))
@@ -541,14 +541,14 @@ function es(e) {
541
541
  const ts = (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
+ }, rs = /^-?\d+$/, Pr = /^-?\d+(?:\.\d+)?$/, ns = /^(?:true|false)$/i, os = /^null$/i, ss = /^[^A-Z]*$/, as = /^[^a-z]*$/, F = /* @__PURE__ */ f("$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 = {
548
548
  number: "number",
549
549
  bigint: "bigint",
550
550
  object: "date"
551
- }, Rr = /* @__PURE__ */ p("$ZodCheckLessThan", (e, t) => {
551
+ }, Rr = /* @__PURE__ */ f("$ZodCheckLessThan", (e, t) => {
552
552
  F.init(e, t);
553
553
  const r = Lr[typeof t.value];
554
554
  e._zod.onattach.push((n) => {
@@ -565,7 +565,7 @@ const ts = (e) => {
565
565
  continue: !t.abort
566
566
  });
567
567
  };
568
- }), $r = /* @__PURE__ */ p("$ZodCheckGreaterThan", (e, t) => {
568
+ }), $r = /* @__PURE__ */ f("$ZodCheckGreaterThan", (e, t) => {
569
569
  F.init(e, t);
570
570
  const r = Lr[typeof t.value];
571
571
  e._zod.onattach.push((n) => {
@@ -582,7 +582,7 @@ const ts = (e) => {
582
582
  continue: !t.abort
583
583
  });
584
584
  };
585
- }), is = /* @__PURE__ */ p("$ZodCheckMultipleOf", (e, t) => {
585
+ }), is = /* @__PURE__ */ f("$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);
@@ -598,7 +598,7 @@ const ts = (e) => {
598
598
  continue: !t.abort
599
599
  });
600
600
  };
601
- }), us = /* @__PURE__ */ p("$ZodCheckNumberFormat", (e, t) => {
601
+ }), us = /* @__PURE__ */ f("$ZodCheckNumberFormat", (e, t) => {
602
602
  var i;
603
603
  F.init(e, t), t.format = t.format || "float64";
604
604
  const r = (i = t.format) == null ? void 0 : i.includes("int"), n = r ? "int" : "number", [o, s] = mo[t.format];
@@ -660,7 +660,7 @@ const ts = (e) => {
660
660
  continue: !t.abort
661
661
  });
662
662
  };
663
- }), cs = /* @__PURE__ */ p("$ZodCheckMaxLength", (e, t) => {
663
+ }), cs = /* @__PURE__ */ f("$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
+ }), ls = /* @__PURE__ */ f("$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
+ }), ds = /* @__PURE__ */ f("$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
- }), Ge = /* @__PURE__ */ p("$ZodCheckStringFormat", (e, t) => {
732
+ }), Ge = /* @__PURE__ */ f("$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,7 +746,7 @@ const ts = (e) => {
746
746
  });
747
747
  }) : (n = e._zod).check ?? (n.check = () => {
748
748
  });
749
- }), ps = /* @__PURE__ */ p("$ZodCheckRegex", (e, t) => {
749
+ }), ps = /* @__PURE__ */ f("$ZodCheckRegex", (e, t) => {
750
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",
@@ -758,13 +758,13 @@ const ts = (e) => {
758
758
  continue: !t.abort
759
759
  });
760
760
  };
761
- }), fs = /* @__PURE__ */ p("$ZodCheckLowerCase", (e, t) => {
761
+ }), fs = /* @__PURE__ */ f("$ZodCheckLowerCase", (e, t) => {
762
762
  t.pattern ?? (t.pattern = ss), Ge.init(e, t);
763
- }), gs = /* @__PURE__ */ p("$ZodCheckUpperCase", (e, t) => {
763
+ }), gs = /* @__PURE__ */ f("$ZodCheckUpperCase", (e, t) => {
764
764
  t.pattern ?? (t.pattern = as), Ge.init(e, t);
765
- }), ms = /* @__PURE__ */ p("$ZodCheckIncludes", (e, t) => {
765
+ }), ms = /* @__PURE__ */ f("$ZodCheckIncludes", (e, t) => {
766
766
  F.init(e, t);
767
- const r = ye(t.includes), n = new RegExp(typeof t.position == "number" ? `^.{${t.position}}${r}` : r);
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) => {
769
769
  const s = o._zod.bag;
770
770
  s.patterns ?? (s.patterns = /* @__PURE__ */ new Set()), s.patterns.add(n);
@@ -779,9 +779,9 @@ const ts = (e) => {
779
779
  continue: !t.abort
780
780
  });
781
781
  };
782
- }), hs = /* @__PURE__ */ p("$ZodCheckStartsWith", (e, t) => {
782
+ }), hs = /* @__PURE__ */ f("$ZodCheckStartsWith", (e, t) => {
783
783
  F.init(e, t);
784
- const r = new RegExp(`^${ye(t.prefix)}.*`);
784
+ const r = new RegExp(`^${Ie(t.prefix)}.*`);
785
785
  t.pattern ?? (t.pattern = r), e._zod.onattach.push((n) => {
786
786
  const o = n._zod.bag;
787
787
  o.patterns ?? (o.patterns = /* @__PURE__ */ new Set()), o.patterns.add(r);
@@ -796,9 +796,9 @@ const ts = (e) => {
796
796
  continue: !t.abort
797
797
  });
798
798
  };
799
- }), Is = /* @__PURE__ */ p("$ZodCheckEndsWith", (e, t) => {
799
+ }), Is = /* @__PURE__ */ f("$ZodCheckEndsWith", (e, t) => {
800
800
  F.init(e, t);
801
- const r = new RegExp(`.*${ye(t.suffix)}$`);
801
+ const r = new RegExp(`.*${Ie(t.suffix)}$`);
802
802
  t.pattern ?? (t.pattern = r), e._zod.onattach.push((n) => {
803
803
  const o = n._zod.bag;
804
804
  o.patterns ?? (o.patterns = /* @__PURE__ */ new Set()), o.patterns.add(r);
@@ -813,7 +813,7 @@ const ts = (e) => {
813
813
  continue: !t.abort
814
814
  });
815
815
  };
816
- }), ys = /* @__PURE__ */ p("$ZodCheckOverwrite", (e, t) => {
816
+ }), ys = /* @__PURE__ */ f("$ZodCheckOverwrite", (e, t) => {
817
817
  F.init(e, t), e._zod.check = (r) => {
818
818
  r.value = t.tx(r.value);
819
819
  };
@@ -845,7 +845,7 @@ const Ms = {
845
845
  major: 4,
846
846
  minor: 3,
847
847
  patch: 5
848
- }, Z = /* @__PURE__ */ p("$ZodType", (e, t) => {
848
+ }, Z = /* @__PURE__ */ f("$ZodType", (e, t) => {
849
849
  var o;
850
850
  var r;
851
851
  e ?? (e = {}), e._zod.def = t, e._zod.bag = e._zod.bag || {}, e._zod.version = Ms;
@@ -860,34 +860,34 @@ const Ms = {
860
860
  });
861
861
  else {
862
862
  const s = (a, c, u) => {
863
- let l = fe(a), d;
864
- for (const y of c) {
865
- if (y._zod.def.when) {
866
- if (!y._zod.def.when(a))
863
+ let l = pe(a), d;
864
+ for (const I of c) {
865
+ if (I._zod.def.when) {
866
+ if (!I._zod.def.when(a))
867
867
  continue;
868
868
  } else if (l)
869
869
  continue;
870
- const g = a.issues.length, M = y._zod.check(a);
870
+ const m = a.issues.length, M = I._zod.check(a);
871
871
  if (M instanceof Promise && (u == null ? void 0 : u.async) === !1)
872
- throw new me();
872
+ throw new ge();
873
873
  if (d || M instanceof Promise)
874
874
  d = (d ?? Promise.resolve()).then(async () => {
875
- await M, a.issues.length !== g && (l || (l = fe(a, g)));
875
+ await M, a.issues.length !== m && (l || (l = pe(a, m)));
876
876
  });
877
877
  else {
878
- if (a.issues.length === g)
878
+ if (a.issues.length === m)
879
879
  continue;
880
- l || (l = fe(a, g));
880
+ l || (l = pe(a, m));
881
881
  }
882
882
  }
883
883
  return d ? d.then(() => a) : a;
884
884
  }, i = (a, c, u) => {
885
- if (fe(a))
885
+ if (pe(a))
886
886
  return a.aborted = !0, a;
887
887
  const l = s(c, n, u);
888
888
  if (l instanceof Promise) {
889
889
  if (u.async === !1)
890
- throw new me();
890
+ throw new ge();
891
891
  return l.then((d) => e._zod.parse(d, u));
892
892
  }
893
893
  return e._zod.parse(l, u);
@@ -902,13 +902,13 @@ const Ms = {
902
902
  const u = e._zod.parse(a, c);
903
903
  if (u instanceof Promise) {
904
904
  if (c.async === !1)
905
- throw new me();
905
+ throw new ge();
906
906
  return u.then((l) => s(l, n, c));
907
907
  }
908
908
  return s(u, n, c);
909
909
  };
910
910
  }
911
- O(e, "~standard", () => ({
911
+ D(e, "~standard", () => ({
912
912
  validate: (s) => {
913
913
  var i;
914
914
  try {
@@ -924,7 +924,7 @@ const Ms = {
924
924
  vendor: "zod",
925
925
  version: 1
926
926
  }));
927
- }), It = /* @__PURE__ */ p("$ZodString", (e, t) => {
927
+ }), It = /* @__PURE__ */ f("$ZodString", (e, t) => {
928
928
  var r;
929
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) => {
930
930
  if (t.coerce)
@@ -939,11 +939,11 @@ const Ms = {
939
939
  inst: e
940
940
  }), n;
941
941
  };
942
- }), L = /* @__PURE__ */ p("$ZodStringFormat", (e, t) => {
942
+ }), L = /* @__PURE__ */ f("$ZodStringFormat", (e, t) => {
943
943
  Ge.init(e, t), It.init(e, t);
944
- }), _s = /* @__PURE__ */ p("$ZodGUID", (e, t) => {
944
+ }), _s = /* @__PURE__ */ f("$ZodGUID", (e, t) => {
945
945
  t.pattern ?? (t.pattern = Yo), L.init(e, t);
946
- }), Ns = /* @__PURE__ */ p("$ZodUUID", (e, t) => {
946
+ }), Ns = /* @__PURE__ */ f("$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) => {
964
+ }), bs = /* @__PURE__ */ f("$ZodEmail", (e, t) => {
965
965
  t.pattern ?? (t.pattern = Qo), L.init(e, t);
966
- }), As = /* @__PURE__ */ p("$ZodURL", (e, t) => {
966
+ }), As = /* @__PURE__ */ f("$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,31 +995,31 @@ const Ms = {
995
995
  });
996
996
  }
997
997
  };
998
- }), zs = /* @__PURE__ */ p("$ZodEmoji", (e, t) => {
998
+ }), zs = /* @__PURE__ */ f("$ZodEmoji", (e, t) => {
999
999
  t.pattern ?? (t.pattern = Fo()), L.init(e, t);
1000
- }), ws = /* @__PURE__ */ p("$ZodNanoID", (e, t) => {
1000
+ }), ws = /* @__PURE__ */ f("$ZodNanoID", (e, t) => {
1001
1001
  t.pattern ?? (t.pattern = $o), L.init(e, t);
1002
- }), js = /* @__PURE__ */ p("$ZodCUID", (e, t) => {
1002
+ }), js = /* @__PURE__ */ f("$ZodCUID", (e, t) => {
1003
1003
  t.pattern ?? (t.pattern = xo), L.init(e, t);
1004
- }), Ds = /* @__PURE__ */ p("$ZodCUID2", (e, t) => {
1004
+ }), Ds = /* @__PURE__ */ f("$ZodCUID2", (e, t) => {
1005
1005
  t.pattern ?? (t.pattern = Zo), L.init(e, t);
1006
- }), Ts = /* @__PURE__ */ p("$ZodULID", (e, t) => {
1006
+ }), Ts = /* @__PURE__ */ f("$ZodULID", (e, t) => {
1007
1007
  t.pattern ?? (t.pattern = Po), L.init(e, t);
1008
- }), Os = /* @__PURE__ */ p("$ZodXID", (e, t) => {
1008
+ }), Os = /* @__PURE__ */ f("$ZodXID", (e, t) => {
1009
1009
  t.pattern ?? (t.pattern = Lo), L.init(e, t);
1010
- }), Es = /* @__PURE__ */ p("$ZodKSUID", (e, t) => {
1010
+ }), Es = /* @__PURE__ */ f("$ZodKSUID", (e, t) => {
1011
1011
  t.pattern ?? (t.pattern = Ro), L.init(e, t);
1012
- }), Cs = /* @__PURE__ */ p("$ZodISODateTime", (e, t) => {
1012
+ }), Cs = /* @__PURE__ */ f("$ZodISODateTime", (e, t) => {
1013
1013
  t.pattern ?? (t.pattern = es(t)), L.init(e, t);
1014
- }), ks = /* @__PURE__ */ p("$ZodISODate", (e, t) => {
1014
+ }), ks = /* @__PURE__ */ f("$ZodISODate", (e, t) => {
1015
1015
  t.pattern ?? (t.pattern = qo), L.init(e, t);
1016
- }), Ss = /* @__PURE__ */ p("$ZodISOTime", (e, t) => {
1016
+ }), Ss = /* @__PURE__ */ f("$ZodISOTime", (e, t) => {
1017
1017
  t.pattern ?? (t.pattern = Ko(t)), L.init(e, t);
1018
- }), xs = /* @__PURE__ */ p("$ZodISODuration", (e, t) => {
1018
+ }), xs = /* @__PURE__ */ f("$ZodISODuration", (e, t) => {
1019
1019
  t.pattern ?? (t.pattern = Uo), L.init(e, t);
1020
- }), Zs = /* @__PURE__ */ p("$ZodIPv4", (e, t) => {
1020
+ }), Zs = /* @__PURE__ */ f("$ZodIPv4", (e, t) => {
1021
1021
  t.pattern ?? (t.pattern = Vo), L.init(e, t), e._zod.bag.format = "ipv4";
1022
- }), Ps = /* @__PURE__ */ p("$ZodIPv6", (e, t) => {
1022
+ }), Ps = /* @__PURE__ */ f("$ZodIPv6", (e, t) => {
1023
1023
  t.pattern ?? (t.pattern = Bo), L.init(e, t), e._zod.bag.format = "ipv6", e._zod.check = (r) => {
1024
1024
  try {
1025
1025
  new URL(`http://[${r.value}]`);
@@ -1033,9 +1033,9 @@ const Ms = {
1033
1033
  });
1034
1034
  }
1035
1035
  };
1036
- }), Ls = /* @__PURE__ */ p("$ZodCIDRv4", (e, t) => {
1036
+ }), Ls = /* @__PURE__ */ f("$ZodCIDRv4", (e, t) => {
1037
1037
  t.pattern ?? (t.pattern = Go), L.init(e, t);
1038
- }), Rs = /* @__PURE__ */ p("$ZodCIDRv6", (e, t) => {
1038
+ }), Rs = /* @__PURE__ */ f("$ZodCIDRv6", (e, t) => {
1039
1039
  t.pattern ?? (t.pattern = Wo), L.init(e, t), e._zod.check = (r) => {
1040
1040
  const n = r.value.split("/");
1041
1041
  try {
@@ -1072,7 +1072,7 @@ function Ur(e) {
1072
1072
  return !1;
1073
1073
  }
1074
1074
  }
1075
- const $s = /* @__PURE__ */ p("$ZodBase64", (e, t) => {
1075
+ const $s = /* @__PURE__ */ f("$ZodBase64", (e, t) => {
1076
1076
  t.pattern ?? (t.pattern = Ho), 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",
@@ -1089,7 +1089,7 @@ function Us(e) {
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 Ys = /* @__PURE__ */ f("$ZodBase64URL", (e, t) => {
1093
1093
  t.pattern ?? (t.pattern = Sr), L.init(e, t), e._zod.bag.contentEncoding = "base64url", e._zod.check = (r) => {
1094
1094
  Us(r.value) || r.issues.push({
1095
1095
  code: "invalid_format",
@@ -1099,7 +1099,7 @@ const Ys = /* @__PURE__ */ p("$ZodBase64URL", (e, t) => {
1099
1099
  continue: !t.abort
1100
1100
  });
1101
1101
  };
1102
- }), Qs = /* @__PURE__ */ p("$ZodE164", (e, t) => {
1102
+ }), Qs = /* @__PURE__ */ f("$ZodE164", (e, t) => {
1103
1103
  t.pattern ?? (t.pattern = Xo), L.init(e, t);
1104
1104
  });
1105
1105
  function Js(e, t = null) {
@@ -1116,7 +1116,7 @@ function Js(e, t = null) {
1116
1116
  return !1;
1117
1117
  }
1118
1118
  }
1119
- const Fs = /* @__PURE__ */ p("$ZodJWT", (e, t) => {
1119
+ const Fs = /* @__PURE__ */ f("$ZodJWT", (e, t) => {
1120
1120
  L.init(e, t), e._zod.check = (r) => {
1121
1121
  Js(r.value, t.alg) || r.issues.push({
1122
1122
  code: "invalid_format",
@@ -1126,7 +1126,7 @@ const Fs = /* @__PURE__ */ p("$ZodJWT", (e, t) => {
1126
1126
  continue: !t.abort
1127
1127
  });
1128
1128
  };
1129
- }), Yr = /* @__PURE__ */ p("$ZodNumber", (e, t) => {
1129
+ }), Yr = /* @__PURE__ */ f("$ZodNumber", (e, t) => {
1130
1130
  Z.init(e, t), e._zod.pattern = e._zod.bag.pattern ?? Pr, e._zod.parse = (r, n) => {
1131
1131
  if (t.coerce)
1132
1132
  try {
@@ -1145,9 +1145,9 @@ const Fs = /* @__PURE__ */ p("$ZodJWT", (e, t) => {
1145
1145
  ...s ? { received: s } : {}
1146
1146
  }), r;
1147
1147
  };
1148
- }), Vs = /* @__PURE__ */ p("$ZodNumberFormat", (e, t) => {
1148
+ }), Vs = /* @__PURE__ */ f("$ZodNumberFormat", (e, t) => {
1149
1149
  us.init(e, t), Yr.init(e, t);
1150
- }), Bs = /* @__PURE__ */ p("$ZodBoolean", (e, t) => {
1150
+ }), Bs = /* @__PURE__ */ f("$ZodBoolean", (e, t) => {
1151
1151
  Z.init(e, t), e._zod.pattern = ns, e._zod.parse = (r, n) => {
1152
1152
  if (t.coerce)
1153
1153
  try {
@@ -1162,7 +1162,7 @@ const Fs = /* @__PURE__ */ p("$ZodJWT", (e, t) => {
1162
1162
  inst: e
1163
1163
  }), r;
1164
1164
  };
1165
- }), Gs = /* @__PURE__ */ p("$ZodNull", (e, t) => {
1165
+ }), Gs = /* @__PURE__ */ f("$ZodNull", (e, t) => {
1166
1166
  Z.init(e, t), e._zod.pattern = os, 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({
@@ -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
+ }), Ws = /* @__PURE__ */ f("$ZodUnknown", (e, t) => {
1176
1176
  Z.init(e, t), e._zod.parse = (r) => r;
1177
- }), Hs = /* @__PURE__ */ p("$ZodNever", (e, t) => {
1177
+ }), Hs = /* @__PURE__ */ f("$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",
@@ -1183,9 +1183,9 @@ const Fs = /* @__PURE__ */ p("$ZodJWT", (e, t) => {
1183
1183
  }), r);
1184
1184
  });
1185
1185
  function Rt(e, t, r) {
1186
- e.issues.length && t.issues.push(...ge(r, e.issues)), t.value[r] = e.value;
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 Xs = /* @__PURE__ */ f("$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))
@@ -1211,7 +1211,7 @@ function Pe(e, t, r, n, o) {
1211
1211
  if (e.issues.length) {
1212
1212
  if (o && !(r in n))
1213
1213
  return;
1214
- t.issues.push(...ge(r, e.issues));
1214
+ t.issues.push(...fe(r, e.issues));
1215
1215
  }
1216
1216
  e.value === void 0 ? r in n && (t.value[r] = void 0) : t.value[r] = e.value;
1217
1217
  }
@@ -1239,8 +1239,8 @@ function Jr(e, t, r, n, o, s) {
1239
1239
  i.push(d);
1240
1240
  continue;
1241
1241
  }
1242
- const y = c.run({ value: t[d], issues: [] }, n);
1243
- y instanceof Promise ? e.push(y.then((g) => Pe(g, r, d, t, l))) : Pe(y, r, d, t, l);
1242
+ const I = c.run({ value: t[d], issues: [] }, n);
1243
+ I instanceof Promise ? e.push(I.then((m) => Pe(m, r, d, t, l))) : Pe(I, 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 qs = /* @__PURE__ */ f("$ZodObject", (e, t) => {
1253
1253
  Z.init(e, t);
1254
1254
  const r = Object.getOwnPropertyDescriptor(t, "shape");
1255
1255
  if (!(r != null && r.get)) {
@@ -1264,7 +1264,7 @@ const qs = /* @__PURE__ */ p("$ZodObject", (e, t) => {
1264
1264
  });
1265
1265
  }
1266
1266
  const n = Fe(() => Qr(t));
1267
- O(e._zod, "propValues", () => {
1267
+ D(e._zod, "propValues", () => {
1268
1268
  const a = t.shape, c = {};
1269
1269
  for (const u in a) {
1270
1270
  const l = a[u]._zod;
@@ -1276,7 +1276,7 @@ const qs = /* @__PURE__ */ p("$ZodObject", (e, t) => {
1276
1276
  }
1277
1277
  return c;
1278
1278
  });
1279
- const o = ze, 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);
@@ -1290,87 +1290,87 @@ const qs = /* @__PURE__ */ p("$ZodObject", (e, t) => {
1290
1290
  }), a;
1291
1291
  a.value = {};
1292
1292
  const l = [], d = i.shape;
1293
- for (const y of i.keys) {
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) => Pe(m, a, y, u, M))) : Pe(h, a, y, u, M);
1293
+ for (const I of i.keys) {
1294
+ const m = d[I], M = m._zod.optout === "optional", g = m._zod.run({ value: u[I], issues: [] }, c);
1295
+ g instanceof Promise ? l.push(g.then((y) => Pe(y, a, I, u, M))) : Pe(g, a, I, 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) => {
1299
+ }), Ks = /* @__PURE__ */ f("$ZodObjectJIT", (e, t) => {
1300
1300
  qs.init(e, t);
1301
- const r = e._zod.parse, n = Fe(() => Qr(t)), o = (y) => {
1302
- var f;
1303
- const g = new vs(["shape", "payload", "ctx"]), M = n.value, h = (z) => {
1304
- const j = Pt(z);
1305
- return `shape[${j}]._zod.run({ value: input[${j}], issues: [] }, ctx)`;
1301
+ const r = e._zod.parse, n = Fe(() => Qr(t)), o = (I) => {
1302
+ var p;
1303
+ const m = new vs(["shape", "payload", "ctx"]), M = n.value, g = (O) => {
1304
+ const T = Pt(O);
1305
+ return `shape[${T}]._zod.run({ value: input[${T}], issues: [] }, ctx)`;
1306
1306
  };
1307
- g.write("const input = payload.value;");
1308
- const m = /* @__PURE__ */ Object.create(null);
1309
- let b = 0;
1310
- for (const z of M.keys)
1311
- m[z] = `key_${b++}`;
1312
- g.write("const newResult = {};");
1313
- for (const z of M.keys) {
1314
- const j = 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 ${j} = ${h(z)};`), J ? g.write(`
1316
- if (${j}.issues.length) {
1317
- if (${D} in input) {
1318
- payload.issues = payload.issues.concat(${j}.issues.map(iss => ({
1307
+ m.write("const input = payload.value;");
1308
+ const y = /* @__PURE__ */ Object.create(null);
1309
+ let _ = 0;
1310
+ for (const O of M.keys)
1311
+ y[O] = `key_${_++}`;
1312
+ m.write("const newResult = {};");
1313
+ for (const O of M.keys) {
1314
+ const T = y[O], w = Pt(O), C = I[O], J = ((p = C == null ? void 0 : C._zod) == null ? void 0 : p.optout) === "optional";
1315
+ m.write(`const ${T} = ${g(O)};`), J ? m.write(`
1316
+ if (${T}.issues.length) {
1317
+ if (${w} in input) {
1318
+ payload.issues = payload.issues.concat(${T}.issues.map(iss => ({
1319
1319
  ...iss,
1320
- path: iss.path ? [${D}, ...iss.path] : [${D}]
1320
+ path: iss.path ? [${w}, ...iss.path] : [${w}]
1321
1321
  })));
1322
1322
  }
1323
1323
  }
1324
1324
 
1325
- if (${j}.value === undefined) {
1326
- if (${D} in input) {
1327
- newResult[${D}] = undefined;
1325
+ if (${T}.value === undefined) {
1326
+ if (${w} in input) {
1327
+ newResult[${w}] = undefined;
1328
1328
  }
1329
1329
  } else {
1330
- newResult[${D}] = ${j}.value;
1330
+ newResult[${w}] = ${T}.value;
1331
1331
  }
1332
1332
 
1333
- `) : g.write(`
1334
- if (${j}.issues.length) {
1335
- payload.issues = payload.issues.concat(${j}.issues.map(iss => ({
1333
+ `) : m.write(`
1334
+ if (${T}.issues.length) {
1335
+ payload.issues = payload.issues.concat(${T}.issues.map(iss => ({
1336
1336
  ...iss,
1337
- path: iss.path ? [${D}, ...iss.path] : [${D}]
1337
+ path: iss.path ? [${w}, ...iss.path] : [${w}]
1338
1338
  })));
1339
1339
  }
1340
1340
 
1341
- if (${j}.value === undefined) {
1342
- if (${D} in input) {
1343
- newResult[${D}] = undefined;
1341
+ if (${T}.value === undefined) {
1342
+ if (${w} in input) {
1343
+ newResult[${w}] = undefined;
1344
1344
  }
1345
1345
  } else {
1346
- newResult[${D}] = ${j}.value;
1346
+ newResult[${w}] = ${T}.value;
1347
1347
  }
1348
1348
 
1349
1349
  `);
1350
1350
  }
1351
- g.write("payload.value = newResult;"), g.write("return payload;");
1352
- const N = g.compile();
1353
- return (z, j) => N(y, z, j);
1351
+ m.write("payload.value = newResult;"), m.write("return payload;");
1352
+ const A = m.compile();
1353
+ return (O, T) => A(I, O, T);
1354
1354
  };
1355
1355
  let s;
1356
- const i = ze, a = !ot.jitless, u = a && po.value, l = t.catchall;
1356
+ const i = Ae, a = !ot.jitless, u = a && po.value, l = t.catchall;
1357
1357
  let d;
1358
- e._zod.parse = (y, g) => {
1358
+ e._zod.parse = (I, m) => {
1359
1359
  d ?? (d = n.value);
1360
- const M = y.value;
1361
- return i(M) ? a && u && (g == null ? void 0 : g.async) === !1 && g.jitless !== !0 ? (s || (s = o(t.shape)), y = s(y, g), l ? Jr([], M, y, g, d, e) : y) : r(y, g) : (y.issues.push({
1360
+ const M = I.value;
1361
+ return i(M) ? a && u && (m == null ? void 0 : m.async) === !1 && m.jitless !== !0 ? (s || (s = o(t.shape)), I = s(I, m), l ? Jr([], M, I, m, d, e) : I) : r(I, m) : (I.issues.push({
1362
1362
  expected: "object",
1363
1363
  code: "invalid_type",
1364
1364
  input: M,
1365
1365
  inst: e
1366
- }), y);
1366
+ }), I);
1367
1367
  };
1368
1368
  });
1369
1369
  function $t(e, t, r, n) {
1370
1370
  for (const s of e)
1371
1371
  if (s.issues.length === 0)
1372
1372
  return t.value = s.value, t;
1373
- const o = e.filter((s) => !fe(s));
1373
+ const o = e.filter((s) => !pe(s));
1374
1374
  return o.length === 1 ? (t.value = o[0].value, o[0]) : (t.issues.push({
1375
1375
  code: "invalid_union",
1376
1376
  input: t.value,
@@ -1378,11 +1378,11 @@ function $t(e, t, r, n) {
1378
1378
  errors: e.map((s) => s.issues.map((i) => oe(i, n, ne())))
1379
1379
  }), t);
1380
1380
  }
1381
- const Fr = /* @__PURE__ */ p("$ZodUnion", (e, t) => {
1382
- Z.init(e, t), O(e._zod, "optin", () => t.options.some((o) => o._zod.optin === "optional") ? "optional" : void 0), O(e._zod, "optout", () => t.options.some((o) => o._zod.optout === "optional") ? "optional" : void 0), O(e._zod, "values", () => {
1381
+ const Fr = /* @__PURE__ */ f("$ZodUnion", (e, t) => {
1382
+ Z.init(e, t), D(e._zod, "optin", () => t.options.some((o) => o._zod.optin === "optional") ? "optional" : void 0), D(e._zod, "optout", () => t.options.some((o) => o._zod.optout === "optional") ? "optional" : void 0), D(e._zod, "values", () => {
1383
1383
  if (t.options.every((o) => o._zod.values))
1384
1384
  return new Set(t.options.flatMap((o) => Array.from(o._zod.values)));
1385
- }), O(e._zod, "pattern", () => {
1385
+ }), D(e._zod, "pattern", () => {
1386
1386
  if (t.options.every((o) => o._zod.pattern)) {
1387
1387
  const o = t.options.map((s) => s._zod.pattern);
1388
1388
  return new RegExp(`^(${o.map((s) => ft(s.source)).join("|")})$`);
@@ -1409,10 +1409,10 @@ 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
+ }), ea = /* @__PURE__ */ f("$ZodDiscriminatedUnion", (e, t) => {
1413
1413
  t.inclusive = !1, Fr.init(e, t);
1414
1414
  const r = e._zod.parse;
1415
- O(e._zod, "propValues", () => {
1415
+ D(e._zod, "propValues", () => {
1416
1416
  const o = {};
1417
1417
  for (const s of t.options) {
1418
1418
  const i = s._zod.propValues;
@@ -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 (!ze(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
+ }), ta = /* @__PURE__ */ f("$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);
@@ -1472,7 +1472,7 @@ function at(e, t) {
1472
1472
  return { valid: !0, data: e };
1473
1473
  if (e instanceof Date && t instanceof Date && +e == +t)
1474
1474
  return { valid: !0, data: e };
1475
- if (Ie(e) && Ie(t)) {
1475
+ if (he(e) && he(t)) {
1476
1476
  const r = Object.keys(t), n = Object.keys(e).filter((s) => r.indexOf(s) !== -1), o = { ...e, ...t };
1477
1477
  for (const s of n) {
1478
1478
  const i = at(e[s], t[s]);
@@ -1519,17 +1519,17 @@ function Ut(e, t, r) {
1519
1519
  else
1520
1520
  e.issues.push(a);
1521
1521
  const s = [...n].filter(([, a]) => a.l && a.r).map(([a]) => a);
1522
- if (s.length && o && e.issues.push({ ...o, keys: s }), fe(e))
1522
+ if (s.length && o && e.issues.push({ ...o, keys: s }), pe(e))
1523
1523
  return e;
1524
1524
  const i = at(t.value, r.value);
1525
1525
  if (!i.valid)
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 ra = /* @__PURE__ */ f("$ZodRecord", (e, t) => {
1530
1530
  Z.init(e, t), e._zod.parse = (r, n) => {
1531
1531
  const o = r.value;
1532
- if (!Ie(o))
1532
+ if (!he(o))
1533
1533
  return r.issues.push({
1534
1534
  expected: "record",
1535
1535
  code: "invalid_type",
@@ -1545,8 +1545,8 @@ const ra = /* @__PURE__ */ p("$ZodRecord", (e, t) => {
1545
1545
  a.add(typeof u == "number" ? u.toString() : u);
1546
1546
  const l = t.valueType._zod.run({ value: o[u], issues: [] }, n);
1547
1547
  l instanceof Promise ? s.push(l.then((d) => {
1548
- d.issues.length && r.issues.push(...ge(u, d.issues)), r.value[u] = d.value;
1549
- })) : (l.issues.length && r.issues.push(...ge(u, l.issues)), r.value[u] = l.value);
1548
+ d.issues.length && r.issues.push(...fe(u, d.issues)), r.value[u] = d.value;
1549
+ })) : (l.issues.length && r.issues.push(...fe(u, l.issues)), r.value[u] = l.value);
1550
1550
  }
1551
1551
  let c;
1552
1552
  for (const u in o)
@@ -1584,16 +1584,16 @@ const ra = /* @__PURE__ */ p("$ZodRecord", (e, t) => {
1584
1584
  }
1585
1585
  const l = t.valueType._zod.run({ value: o[a], issues: [] }, n);
1586
1586
  l instanceof Promise ? s.push(l.then((d) => {
1587
- d.issues.length && r.issues.push(...ge(a, d.issues)), r.value[c.value] = d.value;
1588
- })) : (l.issues.length && r.issues.push(...ge(a, l.issues)), r.value[c.value] = l.value);
1587
+ d.issues.length && r.issues.push(...fe(a, d.issues)), r.value[c.value] = d.value;
1588
+ })) : (l.issues.length && r.issues.push(...fe(a, l.issues)), r.value[c.value] = l.value);
1589
1589
  }
1590
1590
  }
1591
1591
  return s.length ? Promise.all(s).then(() => r) : r;
1592
1592
  };
1593
- }), na = /* @__PURE__ */ p("$ZodEnum", (e, t) => {
1593
+ }), na = /* @__PURE__ */ f("$ZodEnum", (e, t) => {
1594
1594
  Z.init(e, t);
1595
1595
  const r = Dr(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" ? ye(o) : o.toString()).join("|")})$`), e._zod.parse = (o, s) => {
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) => {
1597
1597
  const i = o.value;
1598
1598
  return n.has(i) || o.issues.push({
1599
1599
  code: "invalid_value",
@@ -1602,11 +1602,11 @@ const ra = /* @__PURE__ */ p("$ZodRecord", (e, t) => {
1602
1602
  inst: e
1603
1603
  }), o;
1604
1604
  };
1605
- }), oa = /* @__PURE__ */ p("$ZodLiteral", (e, t) => {
1605
+ }), oa = /* @__PURE__ */ f("$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);
1609
- e._zod.values = r, e._zod.pattern = new RegExp(`^(${t.values.map((n) => typeof n == "string" ? ye(n) : n ? ye(n.toString()) : String(n)).join("|")})$`), e._zod.parse = (n, o) => {
1609
+ e._zod.values = r, e._zod.pattern = new RegExp(`^(${t.values.map((n) => typeof n == "string" ? Ie(n) : n ? Ie(n.toString()) : String(n)).join("|")})$`), e._zod.parse = (n, o) => {
1610
1610
  const s = n.value;
1611
1611
  return r.has(s) || n.issues.push({
1612
1612
  code: "invalid_value",
@@ -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
+ }), sa = /* @__PURE__ */ f("$ZodTransform", (e, t) => {
1619
1619
  Z.init(e, t), e._zod.parse = (r, n) => {
1620
1620
  if (n.direction === "backward")
1621
1621
  throw new jr(e.constructor.name);
@@ -1623,15 +1623,15 @@ const ra = /* @__PURE__ */ p("$ZodRecord", (e, t) => {
1623
1623
  if (n.async)
1624
1624
  return (o instanceof Promise ? o : Promise.resolve(o)).then((i) => (r.value = i, r));
1625
1625
  if (o instanceof Promise)
1626
- throw new me();
1626
+ throw new ge();
1627
1627
  return r.value = o, r;
1628
1628
  };
1629
1629
  });
1630
1630
  function Yt(e, t) {
1631
1631
  return e.issues.length && t === void 0 ? { issues: [], value: void 0 } : e;
1632
1632
  }
1633
- const Vr = /* @__PURE__ */ p("$ZodOptional", (e, t) => {
1634
- Z.init(e, t), e._zod.optin = "optional", e._zod.optout = "optional", O(e._zod, "values", () => t.innerType._zod.values ? /* @__PURE__ */ new Set([...t.innerType._zod.values, void 0]) : void 0), O(e._zod, "pattern", () => {
1633
+ const Vr = /* @__PURE__ */ f("$ZodOptional", (e, t) => {
1634
+ Z.init(e, t), e._zod.optin = "optional", e._zod.optout = "optional", D(e._zod, "values", () => t.innerType._zod.values ? /* @__PURE__ */ new Set([...t.innerType._zod.values, void 0]) : void 0), D(e._zod, "pattern", () => {
1635
1635
  const r = t.innerType._zod.pattern;
1636
1636
  return r ? new RegExp(`^(${ft(r.source)})?$`) : void 0;
1637
1637
  }), e._zod.parse = (r, n) => {
@@ -1641,15 +1641,15 @@ 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) => {
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) => {
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", () => {
1644
+ }), aa = /* @__PURE__ */ f("$ZodExactOptional", (e, t) => {
1645
+ Vr.init(e, t), D(e._zod, "values", () => t.innerType._zod.values), D(e._zod, "pattern", () => t.innerType._zod.pattern), e._zod.parse = (r, n) => t.innerType._zod.run(r, n);
1646
+ }), ia = /* @__PURE__ */ f("$ZodNullable", (e, t) => {
1647
+ Z.init(e, t), D(e._zod, "optin", () => t.innerType._zod.optin), D(e._zod, "optout", () => t.innerType._zod.optout), D(e._zod, "pattern", () => {
1648
1648
  const r = t.innerType._zod.pattern;
1649
1649
  return r ? new RegExp(`^(${ft(r.source)}|null)$`) : void 0;
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) => {
1652
- Z.init(e, t), e._zod.optin = "optional", O(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (r, n) => {
1650
+ }), D(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__ */ f("$ZodDefault", (e, t) => {
1652
+ Z.init(e, t), e._zod.optin = "optional", D(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);
1655
1655
  if (r.value === void 0)
@@ -1661,10 +1661,10 @@ 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) => {
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) => {
1667
- Z.init(e, t), O(e._zod, "values", () => {
1664
+ const ca = /* @__PURE__ */ f("$ZodPrefault", (e, t) => {
1665
+ Z.init(e, t), e._zod.optin = "optional", D(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__ */ f("$ZodNonOptional", (e, t) => {
1667
+ Z.init(e, t), D(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;
1670
1670
  }), e._zod.parse = (r, n) => {
@@ -1680,8 +1680,8 @@ function Jt(e, t) {
1680
1680
  inst: t
1681
1681
  }), e;
1682
1682
  }
1683
- const da = /* @__PURE__ */ p("$ZodCatch", (e, t) => {
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) => {
1683
+ const da = /* @__PURE__ */ f("$ZodCatch", (e, t) => {
1684
+ Z.init(e, t), D(e._zod, "optin", () => t.innerType._zod.optin), D(e._zod, "optout", () => t.innerType._zod.optout), D(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);
1687
1687
  const o = t.innerType._zod.run(r, n);
@@ -1699,8 +1699,8 @@ 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) => {
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) => {
1702
+ }), pa = /* @__PURE__ */ f("$ZodPipe", (e, t) => {
1703
+ Z.init(e, t), D(e._zod, "values", () => t.in._zod.values), D(e._zod, "optin", () => t.in._zod.optin), D(e._zod, "optout", () => t.out._zod.optout), D(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
1706
  return s instanceof Promise ? s.then((i) => xe(i, t.in, n)) : xe(s, t.in, n);
@@ -1712,11 +1712,11 @@ const da = /* @__PURE__ */ p("$ZodCatch", (e, t) => {
1712
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) => {
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", () => {
1715
+ const fa = /* @__PURE__ */ f("$ZodReadonly", (e, t) => {
1716
+ Z.init(e, t), D(e._zod, "propValues", () => t.innerType._zod.propValues), D(e._zod, "values", () => t.innerType._zod.values), D(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;
1719
- }), O(e._zod, "optout", () => {
1719
+ }), D(e._zod, "optout", () => {
1720
1720
  var r, n;
1721
1721
  return (n = (r = t.innerType) == null ? void 0 : r._zod) == null ? void 0 : n.optout;
1722
1722
  }), e._zod.parse = (r, n) => {
@@ -1729,21 +1729,21 @@ 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) => {
1733
- Z.init(e, t), O(e._zod, "innerType", () => t.getter()), O(e._zod, "pattern", () => {
1732
+ const ga = /* @__PURE__ */ f("$ZodLazy", (e, t) => {
1733
+ Z.init(e, t), D(e._zod, "innerType", () => t.getter()), D(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;
1736
- }), O(e._zod, "propValues", () => {
1736
+ }), D(e._zod, "propValues", () => {
1737
1737
  var r, n;
1738
1738
  return (n = (r = e._zod.innerType) == null ? void 0 : r._zod) == null ? void 0 : n.propValues;
1739
- }), O(e._zod, "optin", () => {
1739
+ }), D(e._zod, "optin", () => {
1740
1740
  var r, n;
1741
1741
  return ((n = (r = e._zod.innerType) == null ? void 0 : r._zod) == null ? void 0 : n.optin) ?? void 0;
1742
- }), O(e._zod, "optout", () => {
1742
+ }), D(e._zod, "optout", () => {
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
+ }), ma = /* @__PURE__ */ f("$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,7 +1763,7 @@ 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(we(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;
@@ -1800,7 +1800,7 @@ function Ia() {
1800
1800
  return new ha();
1801
1801
  }
1802
1802
  (Bt = globalThis).__zod_globalRegistry ?? (Bt.__zod_globalRegistry = Ia());
1803
- const Ae = globalThis.__zod_globalRegistry;
1803
+ const be = globalThis.__zod_globalRegistry;
1804
1804
  // @__NO_SIDE_EFFECTS__
1805
1805
  function ya(e, t) {
1806
1806
  return new e({
@@ -2237,7 +2237,7 @@ function ti(e, t) {
2237
2237
  });
2238
2238
  }
2239
2239
  // @__NO_SIDE_EFFECTS__
2240
- function ve(e) {
2240
+ function ye(e) {
2241
2241
  return new ys({
2242
2242
  check: "overwrite",
2243
2243
  tx: e
@@ -2245,23 +2245,23 @@ function ve(e) {
2245
2245
  }
2246
2246
  // @__NO_SIDE_EFFECTS__
2247
2247
  function ri(e) {
2248
- return /* @__PURE__ */ ve((t) => t.normalize(e));
2248
+ return /* @__PURE__ */ ye((t) => t.normalize(e));
2249
2249
  }
2250
2250
  // @__NO_SIDE_EFFECTS__
2251
2251
  function ni() {
2252
- return /* @__PURE__ */ ve((e) => e.trim());
2252
+ return /* @__PURE__ */ ye((e) => e.trim());
2253
2253
  }
2254
2254
  // @__NO_SIDE_EFFECTS__
2255
2255
  function oi() {
2256
- return /* @__PURE__ */ ve((e) => e.toLowerCase());
2256
+ return /* @__PURE__ */ ye((e) => e.toLowerCase());
2257
2257
  }
2258
2258
  // @__NO_SIDE_EFFECTS__
2259
2259
  function si() {
2260
- return /* @__PURE__ */ ve((e) => e.toUpperCase());
2260
+ return /* @__PURE__ */ ye((e) => e.toUpperCase());
2261
2261
  }
2262
2262
  // @__NO_SIDE_EFFECTS__
2263
2263
  function ai() {
2264
- return /* @__PURE__ */ ve((e) => lo(e));
2264
+ return /* @__PURE__ */ ye((e) => lo(e));
2265
2265
  }
2266
2266
  // @__NO_SIDE_EFFECTS__
2267
2267
  function ii(e, t, r) {
@@ -2297,10 +2297,10 @@ function ci(e, t, r) {
2297
2297
  function li(e) {
2298
2298
  const t = /* @__PURE__ */ di((r) => (r.addIssue = (n) => {
2299
2299
  if (typeof n == "string")
2300
- r.issues.push(we(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(we(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;
@@ -2317,7 +2317,7 @@ 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) ?? Ae,
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) ?? (() => {
@@ -2342,21 +2342,21 @@ function S(e, t, r = { path: [], schemaPath: [] }) {
2342
2342
  if (a)
2343
2343
  i.schema = a;
2344
2344
  else {
2345
- const y = {
2345
+ const I = {
2346
2346
  ...r,
2347
2347
  schemaPath: [...r.schemaPath, e],
2348
2348
  path: r.path
2349
2349
  };
2350
2350
  if (e._zod.processJSONSchema)
2351
- e._zod.processJSONSchema(t, i.schema, y);
2351
+ e._zod.processJSONSchema(t, i.schema, I);
2352
2352
  else {
2353
- const M = i.schema, h = t.processors[o.type];
2354
- if (!h)
2353
+ const M = i.schema, g = t.processors[o.type];
2354
+ if (!g)
2355
2355
  throw new Error(`[toJSONSchema]: Non-representable type encountered: ${o.type}`);
2356
- h(e, t, M, y);
2356
+ g(e, t, M, I);
2357
2357
  }
2358
- const g = e._zod.parent;
2359
- g && (i.ref || (i.ref = g), S(g, t, y), t.seen.get(g).isParent = !0);
2358
+ const m = e._zod.parent;
2359
+ m && (i.ref || (i.ref = m), S(m, t, I), t.seen.get(m).isParent = !0);
2360
2360
  }
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;
@@ -2370,35 +2370,35 @@ function $e(e, t) {
2370
2370
  for (const l of e.seen.entries()) {
2371
2371
  const d = (i = e.metadataRegistry.get(l[0])) == null ? void 0 : i.id;
2372
2372
  if (d) {
2373
- const y = n.get(d);
2374
- if (y && y !== l[0])
2373
+ const I = n.get(d);
2374
+ if (I && I !== l[0])
2375
2375
  throw new Error(`Duplicate schema id "${d}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);
2376
2376
  n.set(d, l[0]);
2377
2377
  }
2378
2378
  }
2379
2379
  const o = (l) => {
2380
- var h;
2380
+ var g;
2381
2381
  const d = e.target === "draft-2020-12" ? "$defs" : "definitions";
2382
2382
  if (e.external) {
2383
- const m = (h = e.external.registry.get(l[0])) == null ? void 0 : h.id, b = e.external.uri ?? ((f) => f);
2384
- if (m)
2385
- return { ref: b(m) };
2386
- const N = l[1].defId ?? l[1].schema.id ?? `schema${e.counter++}`;
2387
- return l[1].defId = N, { defId: N, ref: `${b("__shared")}#/${d}/${N}` };
2383
+ const y = (g = e.external.registry.get(l[0])) == null ? void 0 : g.id, _ = e.external.uri ?? ((p) => p);
2384
+ if (y)
2385
+ return { ref: _(y) };
2386
+ const A = l[1].defId ?? l[1].schema.id ?? `schema${e.counter++}`;
2387
+ return l[1].defId = A, { defId: A, ref: `${_("__shared")}#/${d}/${A}` };
2388
2388
  }
2389
2389
  if (l[1] === r)
2390
2390
  return { ref: "#" };
2391
- const g = `#/${d}/`, M = l[1].schema.id ?? `__schema${e.counter++}`;
2392
- return { defId: M, ref: g + M };
2391
+ const m = `#/${d}/`, M = l[1].schema.id ?? `__schema${e.counter++}`;
2392
+ return { defId: M, ref: m + M };
2393
2393
  }, s = (l) => {
2394
2394
  if (l[1].schema.$ref)
2395
2395
  return;
2396
- const d = l[1], { ref: y, defId: g } = o(l);
2397
- d.def = { ...d.schema }, g && (d.defId = g);
2396
+ const d = l[1], { ref: I, defId: m } = o(l);
2397
+ d.def = { ...d.schema }, m && (d.defId = m);
2398
2398
  const M = d.schema;
2399
- for (const h in M)
2400
- delete M[h];
2401
- M.$ref = y;
2399
+ for (const g in M)
2400
+ delete M[g];
2401
+ M.$ref = I;
2402
2402
  };
2403
2403
  if (e.cycles === "throw")
2404
2404
  for (const l of e.seen.entries()) {
@@ -2415,8 +2415,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
2415
2415
  continue;
2416
2416
  }
2417
2417
  if (e.external) {
2418
- const g = (c = e.external.registry.get(l[0])) == null ? void 0 : c.id;
2419
- if (t !== l[0] && g) {
2418
+ const m = (c = e.external.registry.get(l[0])) == null ? void 0 : c.id;
2419
+ if (t !== l[0] && m) {
2420
2420
  s(l);
2421
2421
  continue;
2422
2422
  }
@@ -2444,24 +2444,24 @@ function Ue(e, t) {
2444
2444
  const l = e.seen.get(u);
2445
2445
  if (l.ref === null)
2446
2446
  return;
2447
- const d = l.def ?? l.schema, y = { ...d }, g = l.ref;
2448
- if (l.ref = null, g) {
2449
- n(g);
2450
- const h = e.seen.get(g), m = h.schema;
2451
- if (m.$ref && (e.target === "draft-07" || e.target === "draft-04" || e.target === "openapi-3.0") ? (d.allOf = d.allOf ?? [], d.allOf.push(m)) : Object.assign(d, m), Object.assign(d, y), u._zod.parent === g)
2452
- for (const N in d)
2453
- N === "$ref" || N === "allOf" || N in y || delete d[N];
2454
- if (m.$ref)
2455
- for (const N in d)
2456
- N === "$ref" || N === "allOf" || N in h.def && JSON.stringify(d[N]) === JSON.stringify(h.def[N]) && delete d[N];
2447
+ const d = l.def ?? l.schema, I = { ...d }, m = l.ref;
2448
+ if (l.ref = null, m) {
2449
+ n(m);
2450
+ const g = e.seen.get(m), y = g.schema;
2451
+ if (y.$ref && (e.target === "draft-07" || e.target === "draft-04" || e.target === "openapi-3.0") ? (d.allOf = d.allOf ?? [], d.allOf.push(y)) : Object.assign(d, y), Object.assign(d, I), u._zod.parent === m)
2452
+ for (const A in d)
2453
+ A === "$ref" || A === "allOf" || A in I || delete d[A];
2454
+ if (y.$ref)
2455
+ for (const A in d)
2456
+ A === "$ref" || A === "allOf" || A in g.def && JSON.stringify(d[A]) === JSON.stringify(g.def[A]) && delete d[A];
2457
2457
  }
2458
2458
  const M = u._zod.parent;
2459
- if (M && M !== g) {
2459
+ if (M && M !== m) {
2460
2460
  n(M);
2461
- const h = e.seen.get(M);
2462
- if (h != null && h.schema.$ref && (d.$ref = h.schema.$ref, h.def))
2463
- for (const m in d)
2464
- m === "$ref" || m === "allOf" || m in h.def && JSON.stringify(d[m]) === JSON.stringify(h.def[m]) && delete d[m];
2461
+ const g = e.seen.get(M);
2462
+ if (g != null && g.schema.$ref && (d.$ref = g.schema.$ref, g.def))
2463
+ for (const y in d)
2464
+ y === "$ref" || y === "allOf" || y in g.def && JSON.stringify(d[y]) === JSON.stringify(g.def[y]) && delete d[y];
2465
2465
  }
2466
2466
  e.override({
2467
2467
  zodSchema: u,
@@ -2691,9 +2691,9 @@ const pi = (e, t = {}) => (r) => {
2691
2691
  }, ji = (e, t, r, n) => {
2692
2692
  const o = r, s = e._zod.def;
2693
2693
  o.type = "array";
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, {
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((I, m) => S(I, t, {
2695
2695
  ...n,
2696
- path: [...n.path, i, g]
2696
+ path: [...n.path, i, m]
2697
2697
  })), u = s.rest ? S(s.rest, t, {
2698
2698
  ...n,
2699
2699
  path: [...n.path, a, ...t.target === "openapi-3.0" ? [s.items.length] : []]
@@ -2852,25 +2852,25 @@ function Ti(e, t) {
2852
2852
  const r = Re({ ...t, processors: qt });
2853
2853
  return S(e, r), $e(r, e), Ue(r, e);
2854
2854
  }
2855
- const Oi = /* @__PURE__ */ p("ZodISODateTime", (e, t) => {
2855
+ const Oi = /* @__PURE__ */ f("ZodISODateTime", (e, t) => {
2856
2856
  Cs.init(e, t), R.init(e, t);
2857
2857
  });
2858
2858
  function Ei(e) {
2859
2859
  return /* @__PURE__ */ $a(Oi, e);
2860
2860
  }
2861
- const Ci = /* @__PURE__ */ p("ZodISODate", (e, t) => {
2861
+ const Ci = /* @__PURE__ */ f("ZodISODate", (e, t) => {
2862
2862
  ks.init(e, t), R.init(e, t);
2863
2863
  });
2864
2864
  function ki(e) {
2865
2865
  return /* @__PURE__ */ Ua(Ci, e);
2866
2866
  }
2867
- const Si = /* @__PURE__ */ p("ZodISOTime", (e, t) => {
2867
+ const Si = /* @__PURE__ */ f("ZodISOTime", (e, t) => {
2868
2868
  Ss.init(e, t), R.init(e, t);
2869
2869
  });
2870
2870
  function xi(e) {
2871
2871
  return /* @__PURE__ */ Ya(Si, e);
2872
2872
  }
2873
- const Zi = /* @__PURE__ */ p("ZodISODuration", (e, t) => {
2873
+ const Zi = /* @__PURE__ */ f("ZodISODuration", (e, t) => {
2874
2874
  xs.init(e, t), R.init(e, t);
2875
2875
  });
2876
2876
  function Pi(e) {
@@ -2905,9 +2905,9 @@ const Li = (e, t) => {
2905
2905
  // enumerable: false,
2906
2906
  }
2907
2907
  });
2908
- }, G = p("ZodError", Li, {
2908
+ }, G = f("ZodError", Li, {
2909
2909
  Parent: Error
2910
- }), Ri = /* @__PURE__ */ mt(G), $i = /* @__PURE__ */ ht(G), Ui = /* @__PURE__ */ Ve(G), vn = /* @__PURE__ */ Be(G), Yi = /* @__PURE__ */ jo(G), Qi = /* @__PURE__ */ Do(G), Ji = /* @__PURE__ */ To(G), Fi = /* @__PURE__ */ Oo(G), Vi = /* @__PURE__ */ Eo(G), Bi = /* @__PURE__ */ Co(G), Gi = /* @__PURE__ */ ko(G), Wi = /* @__PURE__ */ So(G), P = /* @__PURE__ */ p("ZodType", (e, t) => (Z.init(e, t), Object.assign(e["~standard"], {
2910
+ }), Ri = /* @__PURE__ */ mt(G), $i = /* @__PURE__ */ ht(G), Ui = /* @__PURE__ */ Ve(G), vn = /* @__PURE__ */ Be(G), Yi = /* @__PURE__ */ jo(G), Qi = /* @__PURE__ */ Do(G), Ji = /* @__PURE__ */ To(G), Fi = /* @__PURE__ */ Oo(G), Vi = /* @__PURE__ */ Eo(G), Bi = /* @__PURE__ */ Co(G), Gi = /* @__PURE__ */ ko(G), Wi = /* @__PURE__ */ So(G), P = /* @__PURE__ */ f("ZodType", (e, t) => (Z.init(e, t), Object.assign(e["~standard"], {
2911
2911
  jsonSchema: {
2912
2912
  input: Ye(e, "input"),
2913
2913
  output: Ye(e, "output")
@@ -2919,71 +2919,71 @@ const Li = (e, t) => {
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__ */ ve(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 = () => Me(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) => 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) => {
2923
2923
  const n = e.clone();
2924
- return Ae.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 = Ae.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 Ae.get(e);
2933
+ return be.get(e);
2934
2934
  const n = e.clone();
2935
- return Ae.add(n, r[0]), n;
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) => {
2935
+ return be.add(n, r[0]), n;
2936
+ }, e.isOptional = () => e.safeParse(void 0).success, e.isNullable = () => e.safeParse(null).success, e.apply = (r) => r(e), e)), Mn = /* @__PURE__ */ f("_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
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__ */ 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__ */ 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) => {
2940
+ }), Hi = /* @__PURE__ */ f("ZodString", (e, t) => {
2941
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(Ze, r)), e.uuidv4 = (r) => e.check(/* @__PURE__ */ _a(Ze, r)), e.uuidv6 = (r) => e.check(/* @__PURE__ */ Na(Ze, r)), e.uuidv7 = (r) => e.check(/* @__PURE__ */ ba(Ze, 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__ */ ja(tu, r)), e.cuid2 = (r) => e.check(/* @__PURE__ */ Da(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));
2942
2942
  });
2943
- function I(e) {
2943
+ function h(e) {
2944
2944
  return /* @__PURE__ */ ya(Hi, e);
2945
2945
  }
2946
- const R = /* @__PURE__ */ p("ZodStringFormat", (e, t) => {
2946
+ const R = /* @__PURE__ */ f("ZodStringFormat", (e, t) => {
2947
2947
  L.init(e, t), Mn.init(e, t);
2948
- }), Xi = /* @__PURE__ */ p("ZodEmail", (e, t) => {
2948
+ }), Xi = /* @__PURE__ */ f("ZodEmail", (e, t) => {
2949
2949
  bs.init(e, t), R.init(e, t);
2950
- }), Kt = /* @__PURE__ */ p("ZodGUID", (e, t) => {
2950
+ }), Kt = /* @__PURE__ */ f("ZodGUID", (e, t) => {
2951
2951
  _s.init(e, t), R.init(e, t);
2952
- }), Ze = /* @__PURE__ */ p("ZodUUID", (e, t) => {
2952
+ }), Ze = /* @__PURE__ */ f("ZodUUID", (e, t) => {
2953
2953
  Ns.init(e, t), R.init(e, t);
2954
- }), qi = /* @__PURE__ */ p("ZodURL", (e, t) => {
2954
+ }), qi = /* @__PURE__ */ f("ZodURL", (e, t) => {
2955
2955
  As.init(e, t), R.init(e, t);
2956
- }), Ki = /* @__PURE__ */ p("ZodEmoji", (e, t) => {
2956
+ }), Ki = /* @__PURE__ */ f("ZodEmoji", (e, t) => {
2957
2957
  zs.init(e, t), R.init(e, t);
2958
- }), eu = /* @__PURE__ */ p("ZodNanoID", (e, t) => {
2958
+ }), eu = /* @__PURE__ */ f("ZodNanoID", (e, t) => {
2959
2959
  ws.init(e, t), R.init(e, t);
2960
- }), tu = /* @__PURE__ */ p("ZodCUID", (e, t) => {
2960
+ }), tu = /* @__PURE__ */ f("ZodCUID", (e, t) => {
2961
2961
  js.init(e, t), R.init(e, t);
2962
- }), ru = /* @__PURE__ */ p("ZodCUID2", (e, t) => {
2962
+ }), ru = /* @__PURE__ */ f("ZodCUID2", (e, t) => {
2963
2963
  Ds.init(e, t), R.init(e, t);
2964
- }), nu = /* @__PURE__ */ p("ZodULID", (e, t) => {
2964
+ }), nu = /* @__PURE__ */ f("ZodULID", (e, t) => {
2965
2965
  Ts.init(e, t), R.init(e, t);
2966
- }), ou = /* @__PURE__ */ p("ZodXID", (e, t) => {
2966
+ }), ou = /* @__PURE__ */ f("ZodXID", (e, t) => {
2967
2967
  Os.init(e, t), R.init(e, t);
2968
- }), su = /* @__PURE__ */ p("ZodKSUID", (e, t) => {
2968
+ }), su = /* @__PURE__ */ f("ZodKSUID", (e, t) => {
2969
2969
  Es.init(e, t), R.init(e, t);
2970
- }), au = /* @__PURE__ */ p("ZodIPv4", (e, t) => {
2970
+ }), au = /* @__PURE__ */ f("ZodIPv4", (e, t) => {
2971
2971
  Zs.init(e, t), R.init(e, t);
2972
- }), iu = /* @__PURE__ */ p("ZodIPv6", (e, t) => {
2972
+ }), iu = /* @__PURE__ */ f("ZodIPv6", (e, t) => {
2973
2973
  Ps.init(e, t), R.init(e, t);
2974
- }), uu = /* @__PURE__ */ p("ZodCIDRv4", (e, t) => {
2974
+ }), uu = /* @__PURE__ */ f("ZodCIDRv4", (e, t) => {
2975
2975
  Ls.init(e, t), R.init(e, t);
2976
- }), cu = /* @__PURE__ */ p("ZodCIDRv6", (e, t) => {
2976
+ }), cu = /* @__PURE__ */ f("ZodCIDRv6", (e, t) => {
2977
2977
  Rs.init(e, t), R.init(e, t);
2978
- }), lu = /* @__PURE__ */ p("ZodBase64", (e, t) => {
2978
+ }), lu = /* @__PURE__ */ f("ZodBase64", (e, t) => {
2979
2979
  $s.init(e, t), R.init(e, t);
2980
- }), du = /* @__PURE__ */ p("ZodBase64URL", (e, t) => {
2980
+ }), du = /* @__PURE__ */ f("ZodBase64URL", (e, t) => {
2981
2981
  Ys.init(e, t), R.init(e, t);
2982
- }), pu = /* @__PURE__ */ p("ZodE164", (e, t) => {
2982
+ }), pu = /* @__PURE__ */ f("ZodE164", (e, t) => {
2983
2983
  Qs.init(e, t), R.init(e, t);
2984
- }), fu = /* @__PURE__ */ p("ZodJWT", (e, t) => {
2984
+ }), fu = /* @__PURE__ */ f("ZodJWT", (e, t) => {
2985
2985
  Fs.init(e, t), R.init(e, t);
2986
- }), _n = /* @__PURE__ */ p("ZodNumber", (e, t) => {
2986
+ }), _n = /* @__PURE__ */ f("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;
@@ -2991,44 +2991,44 @@ const R = /* @__PURE__ */ p("ZodStringFormat", (e, t) => {
2991
2991
  function gu(e) {
2992
2992
  return /* @__PURE__ */ Ja(_n, e);
2993
2993
  }
2994
- const mu = /* @__PURE__ */ p("ZodNumberFormat", (e, t) => {
2994
+ const mu = /* @__PURE__ */ f("ZodNumberFormat", (e, t) => {
2995
2995
  Vs.init(e, t), _n.init(e, t);
2996
2996
  });
2997
2997
  function er(e) {
2998
2998
  return /* @__PURE__ */ Fa(mu, e);
2999
2999
  }
3000
- const hu = /* @__PURE__ */ p("ZodBoolean", (e, t) => {
3000
+ const hu = /* @__PURE__ */ f("ZodBoolean", (e, t) => {
3001
3001
  Bs.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
3004
  return /* @__PURE__ */ Va(hu, e);
3005
3005
  }
3006
- const Iu = /* @__PURE__ */ p("ZodNull", (e, t) => {
3006
+ const Iu = /* @__PURE__ */ f("ZodNull", (e, t) => {
3007
3007
  Gs.init(e, t), P.init(e, t), e._zod.processJSONSchema = (r, n, o) => qr(e, r, n);
3008
3008
  });
3009
3009
  function yu(e) {
3010
3010
  return /* @__PURE__ */ Ba(Iu, e);
3011
3011
  }
3012
- const vu = /* @__PURE__ */ p("ZodUnknown", (e, t) => {
3012
+ const vu = /* @__PURE__ */ f("ZodUnknown", (e, t) => {
3013
3013
  Ws.init(e, t), P.init(e, t), e._zod.processJSONSchema = (r, n, o) => en();
3014
3014
  });
3015
3015
  function q() {
3016
3016
  return /* @__PURE__ */ Ga(vu);
3017
3017
  }
3018
- const Mu = /* @__PURE__ */ p("ZodNever", (e, t) => {
3018
+ const Mu = /* @__PURE__ */ f("ZodNever", (e, t) => {
3019
3019
  Hs.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
3022
  return /* @__PURE__ */ Wa(Mu, e);
3023
3023
  }
3024
- const _u = /* @__PURE__ */ p("ZodArray", (e, t) => {
3024
+ const _u = /* @__PURE__ */ f("ZodArray", (e, t) => {
3025
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__ */ 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
- function Me(e, t) {
3027
+ function ve(e, t) {
3028
3028
  return /* @__PURE__ */ ii(_u, e, t);
3029
3029
  }
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(jn, e, r[0]);
3030
+ const bn = /* @__PURE__ */ f("ZodObject", (e, t) => {
3031
+ Ks.init(e, t), P.init(e, t), e._zod.processJSONSchema = (r, n, o) => an(e, r, n, o), D(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(jn, e, r[0]);
3032
3032
  });
3033
3033
  function k(e, t) {
3034
3034
  const r = {
@@ -3046,7 +3046,7 @@ function x(e, t) {
3046
3046
  ...v(t)
3047
3047
  });
3048
3048
  }
3049
- const An = /* @__PURE__ */ p("ZodUnion", (e, t) => {
3049
+ const An = /* @__PURE__ */ f("ZodUnion", (e, t) => {
3050
3050
  Fr.init(e, t), P.init(e, t), e._zod.processJSONSchema = (r, n, o) => un(e, r, n, o), e.options = t.options;
3051
3051
  });
3052
3052
  function Q(e, t) {
@@ -3056,7 +3056,7 @@ function Q(e, t) {
3056
3056
  ...v(t)
3057
3057
  });
3058
3058
  }
3059
- const Nu = /* @__PURE__ */ p("ZodDiscriminatedUnion", (e, t) => {
3059
+ const Nu = /* @__PURE__ */ f("ZodDiscriminatedUnion", (e, t) => {
3060
3060
  An.init(e, t), ea.init(e, t);
3061
3061
  });
3062
3062
  function bu(e, t, r) {
@@ -3067,7 +3067,7 @@ function bu(e, t, r) {
3067
3067
  ...v(r)
3068
3068
  });
3069
3069
  }
3070
- const Au = /* @__PURE__ */ p("ZodIntersection", (e, t) => {
3070
+ const Au = /* @__PURE__ */ f("ZodIntersection", (e, t) => {
3071
3071
  ta.init(e, t), P.init(e, t), e._zod.processJSONSchema = (r, n, o) => cn(e, r, n, o);
3072
3072
  });
3073
3073
  function zu(e, t) {
@@ -3077,10 +3077,10 @@ function zu(e, t) {
3077
3077
  right: t
3078
3078
  });
3079
3079
  }
3080
- const wu = /* @__PURE__ */ p("ZodRecord", (e, t) => {
3080
+ const wu = /* @__PURE__ */ f("ZodRecord", (e, t) => {
3081
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;
3082
3082
  });
3083
- function je(e, t, r) {
3083
+ function we(e, t, r) {
3084
3084
  return new wu({
3085
3085
  type: "record",
3086
3086
  keyType: e,
@@ -3088,7 +3088,7 @@ function je(e, t, r) {
3088
3088
  ...v(r)
3089
3089
  });
3090
3090
  }
3091
- const it = /* @__PURE__ */ p("ZodEnum", (e, t) => {
3091
+ const it = /* @__PURE__ */ f("ZodEnum", (e, t) => {
3092
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);
3093
3093
  const r = new Set(Object.keys(t.entries));
3094
3094
  e.extract = (n, o) => {
@@ -3127,7 +3127,7 @@ function zn(e, t) {
3127
3127
  ...v(t)
3128
3128
  });
3129
3129
  }
3130
- const ju = /* @__PURE__ */ p("ZodLiteral", (e, t) => {
3130
+ const ju = /* @__PURE__ */ f("ZodLiteral", (e, t) => {
3131
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", {
3132
3132
  get() {
3133
3133
  if (t.values.length > 1)
@@ -3136,23 +3136,23 @@ const ju = /* @__PURE__ */ p("ZodLiteral", (e, t) => {
3136
3136
  }
3137
3137
  });
3138
3138
  });
3139
- function _(e, t) {
3139
+ function N(e, t) {
3140
3140
  return new ju({
3141
3141
  type: "literal",
3142
3142
  values: Array.isArray(e) ? e : [e],
3143
3143
  ...v(t)
3144
3144
  });
3145
3145
  }
3146
- const Du = /* @__PURE__ */ p("ZodTransform", (e, t) => {
3146
+ const Du = /* @__PURE__ */ f("ZodTransform", (e, t) => {
3147
3147
  sa.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 jr(e.constructor.name);
3150
3150
  r.addIssue = (s) => {
3151
3151
  if (typeof s == "string")
3152
- r.issues.push(we(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(we(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);
@@ -3165,7 +3165,7 @@ function Tu(e) {
3165
3165
  transform: e
3166
3166
  });
3167
3167
  }
3168
- const wn = /* @__PURE__ */ p("ZodOptional", (e, t) => {
3168
+ const wn = /* @__PURE__ */ f("ZodOptional", (e, t) => {
3169
3169
  Vr.init(e, t), P.init(e, t), e._zod.processJSONSchema = (r, n, o) => yt(e, r, n, o), e.unwrap = () => e._zod.def.innerType;
3170
3170
  });
3171
3171
  function tr(e) {
@@ -3174,7 +3174,7 @@ function tr(e) {
3174
3174
  innerType: e
3175
3175
  });
3176
3176
  }
3177
- const Ou = /* @__PURE__ */ p("ZodExactOptional", (e, t) => {
3177
+ const Ou = /* @__PURE__ */ f("ZodExactOptional", (e, t) => {
3178
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;
3179
3179
  });
3180
3180
  function Eu(e) {
@@ -3183,7 +3183,7 @@ function Eu(e) {
3183
3183
  innerType: e
3184
3184
  });
3185
3185
  }
3186
- const Cu = /* @__PURE__ */ p("ZodNullable", (e, t) => {
3186
+ const Cu = /* @__PURE__ */ f("ZodNullable", (e, t) => {
3187
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;
3188
3188
  });
3189
3189
  function rr(e) {
@@ -3192,7 +3192,7 @@ function rr(e) {
3192
3192
  innerType: e
3193
3193
  });
3194
3194
  }
3195
- const ku = /* @__PURE__ */ p("ZodDefault", (e, t) => {
3195
+ const ku = /* @__PURE__ */ f("ZodDefault", (e, t) => {
3196
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;
3197
3197
  });
3198
3198
  function Su(e, t) {
@@ -3204,7 +3204,7 @@ function Su(e, t) {
3204
3204
  }
3205
3205
  });
3206
3206
  }
3207
- const xu = /* @__PURE__ */ p("ZodPrefault", (e, t) => {
3207
+ const xu = /* @__PURE__ */ f("ZodPrefault", (e, t) => {
3208
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;
3209
3209
  });
3210
3210
  function Zu(e, t) {
@@ -3216,7 +3216,7 @@ function Zu(e, t) {
3216
3216
  }
3217
3217
  });
3218
3218
  }
3219
- const jn = /* @__PURE__ */ p("ZodNonOptional", (e, t) => {
3219
+ const jn = /* @__PURE__ */ f("ZodNonOptional", (e, t) => {
3220
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;
3221
3221
  });
3222
3222
  function Pu(e, t) {
@@ -3226,7 +3226,7 @@ function Pu(e, t) {
3226
3226
  ...v(t)
3227
3227
  });
3228
3228
  }
3229
- const Lu = /* @__PURE__ */ p("ZodCatch", (e, t) => {
3229
+ const Lu = /* @__PURE__ */ f("ZodCatch", (e, t) => {
3230
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;
3231
3231
  });
3232
3232
  function Ru(e, t) {
@@ -3236,7 +3236,7 @@ function Ru(e, t) {
3236
3236
  catchValue: typeof t == "function" ? t : () => t
3237
3237
  });
3238
3238
  }
3239
- const $u = /* @__PURE__ */ p("ZodPipe", (e, t) => {
3239
+ const $u = /* @__PURE__ */ f("ZodPipe", (e, t) => {
3240
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;
3241
3241
  });
3242
3242
  function nr(e, t) {
@@ -3247,7 +3247,7 @@ function nr(e, t) {
3247
3247
  // ...util.normalizeParams(params),
3248
3248
  });
3249
3249
  }
3250
- const Uu = /* @__PURE__ */ p("ZodReadonly", (e, t) => {
3250
+ const Uu = /* @__PURE__ */ f("ZodReadonly", (e, t) => {
3251
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;
3252
3252
  });
3253
3253
  function Yu(e) {
@@ -3256,7 +3256,7 @@ function Yu(e) {
3256
3256
  innerType: e
3257
3257
  });
3258
3258
  }
3259
- const Qu = /* @__PURE__ */ p("ZodLazy", (e, t) => {
3259
+ const Qu = /* @__PURE__ */ f("ZodLazy", (e, t) => {
3260
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();
3261
3261
  });
3262
3262
  function Ju(e) {
@@ -3265,7 +3265,7 @@ function Ju(e) {
3265
3265
  getter: e
3266
3266
  });
3267
3267
  }
3268
- const vt = /* @__PURE__ */ p("ZodCustom", (e, t) => {
3268
+ const vt = /* @__PURE__ */ f("ZodCustom", (e, t) => {
3269
3269
  ma.init(e, t), P.init(e, t), e._zod.processJSONSchema = (r, n, o) => nn(e, r);
3270
3270
  });
3271
3271
  function Dn(e, t) {
@@ -3295,7 +3295,7 @@ function Qe(e, t = {}) {
3295
3295
  });
3296
3296
  }, r;
3297
3297
  }
3298
- var De;
3298
+ var je;
3299
3299
  (function(e) {
3300
3300
  e.assertEqual = (o) => {
3301
3301
  };
@@ -3331,7 +3331,7 @@ var De;
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
- })(De || (De = {}));
3334
+ })(je || (je = {}));
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
- De.arrayToEnum([
3343
+ je.arrayToEnum([
3344
3344
  "string",
3345
3345
  "nan",
3346
3346
  "number",
@@ -3362,7 +3362,7 @@ De.arrayToEnum([
3362
3362
  "map",
3363
3363
  "set"
3364
3364
  ]);
3365
- De.arrayToEnum([
3365
+ je.arrayToEnum([
3366
3366
  "invalid_type",
3367
3367
  "invalid_literal",
3368
3368
  "custom",
@@ -3424,7 +3424,7 @@ class Je extends Error {
3424
3424
  return this.message;
3425
3425
  }
3426
3426
  get message() {
3427
- return JSON.stringify(this.issues, De.jsonStringifyReplacer, 2);
3427
+ return JSON.stringify(this.issues, je.jsonStringifyReplacer, 2);
3428
3428
  }
3429
3429
  get isEmpty() {
3430
3430
  return this.issues.length === 0;
@@ -3448,10 +3448,10 @@ 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;
3450
3450
  })(sr || (sr = {}));
3451
- var A;
3451
+ var b;
3452
3452
  (function(e) {
3453
3453
  e.ZodString = "ZodString", e.ZodNumber = "ZodNumber", e.ZodNaN = "ZodNaN", e.ZodBigInt = "ZodBigInt", e.ZodBoolean = "ZodBoolean", e.ZodDate = "ZodDate", e.ZodSymbol = "ZodSymbol", e.ZodUndefined = "ZodUndefined", e.ZodNull = "ZodNull", e.ZodAny = "ZodAny", e.ZodUnknown = "ZodUnknown", e.ZodNever = "ZodNever", e.ZodVoid = "ZodVoid", e.ZodArray = "ZodArray", e.ZodObject = "ZodObject", e.ZodUnion = "ZodUnion", e.ZodDiscriminatedUnion = "ZodDiscriminatedUnion", e.ZodIntersection = "ZodIntersection", e.ZodTuple = "ZodTuple", e.ZodRecord = "ZodRecord", e.ZodMap = "ZodMap", e.ZodSet = "ZodSet", e.ZodFunction = "ZodFunction", e.ZodLazy = "ZodLazy", e.ZodLiteral = "ZodLiteral", e.ZodEnum = "ZodEnum", e.ZodEffects = "ZodEffects", e.ZodNativeEnum = "ZodNativeEnum", e.ZodOptional = "ZodOptional", e.ZodNullable = "ZodNullable", e.ZodDefault = "ZodDefault", e.ZodCatch = "ZodCatch", e.ZodPromise = "ZodPromise", e.ZodBranded = "ZodBranded", e.ZodPipeline = "ZodPipeline", e.ZodReadonly = "ZodReadonly";
3454
- })(A || (A = {}));
3454
+ })(b || (b = {}));
3455
3455
  class ar extends Error {
3456
3456
  constructor(t, r) {
3457
3457
  super(t), this.name = "ParseError", this.type = r.type, this.field = r.field, this.value = r.value, this.line = r.line;
@@ -3466,61 +3466,61 @@ function Bu(e) {
3466
3466
  );
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
- function l(h) {
3470
- const m = i ? h.replace(/^\xEF\xBB\xBF/, "") : h, [b, N] = Gu(`${s}${m}`);
3471
- for (const f of b)
3472
- d(f);
3473
- s = N, i = !1;
3474
- }
3475
- function d(h) {
3476
- if (h === "") {
3477
- g();
3469
+ function l(g) {
3470
+ const y = i ? g.replace(/^\xEF\xBB\xBF/, "") : g, [_, A] = Gu(`${s}${y}`);
3471
+ for (const p of _)
3472
+ d(p);
3473
+ s = A, i = !1;
3474
+ }
3475
+ function d(g) {
3476
+ if (g === "") {
3477
+ m();
3478
3478
  return;
3479
3479
  }
3480
- if (h.startsWith(":")) {
3481
- o && o(h.slice(h.startsWith(": ") ? 2 : 1));
3480
+ if (g.startsWith(":")) {
3481
+ o && o(g.slice(g.startsWith(": ") ? 2 : 1));
3482
3482
  return;
3483
3483
  }
3484
- const m = h.indexOf(":");
3485
- if (m !== -1) {
3486
- const b = h.slice(0, m), N = h[m + 1] === " " ? 2 : 1, f = h.slice(m + N);
3487
- y(b, f, h);
3484
+ const y = g.indexOf(":");
3485
+ if (y !== -1) {
3486
+ const _ = g.slice(0, y), A = g[y + 1] === " " ? 2 : 1, p = g.slice(y + A);
3487
+ I(_, p, g);
3488
3488
  return;
3489
3489
  }
3490
- y(h, "", h);
3490
+ I(g, "", g);
3491
3491
  }
3492
- function y(h, m, b) {
3493
- switch (h) {
3492
+ function I(g, y, _) {
3493
+ switch (g) {
3494
3494
  case "event":
3495
- u = m;
3495
+ u = y;
3496
3496
  break;
3497
3497
  case "data":
3498
- c = `${c}${m}
3498
+ c = `${c}${y}
3499
3499
  `;
3500
3500
  break;
3501
3501
  case "id":
3502
- a = m.includes("\0") ? void 0 : m;
3502
+ a = y.includes("\0") ? void 0 : y;
3503
3503
  break;
3504
3504
  case "retry":
3505
- /^\d+$/.test(m) ? n(parseInt(m, 10)) : r(
3506
- new ar(`Invalid \`retry\` value: "${m}"`, {
3505
+ /^\d+$/.test(y) ? n(parseInt(y, 10)) : r(
3506
+ new ar(`Invalid \`retry\` value: "${y}"`, {
3507
3507
  type: "invalid-retry",
3508
- value: m,
3509
- line: b
3508
+ value: y,
3509
+ line: _
3510
3510
  })
3511
3511
  );
3512
3512
  break;
3513
3513
  default:
3514
3514
  r(
3515
3515
  new ar(
3516
- `Unknown field "${h.length > 20 ? `${h.slice(0, 20)}…` : h}"`,
3517
- { type: "unknown-field", field: h, value: m, line: b }
3516
+ `Unknown field "${g.length > 20 ? `${g.slice(0, 20)}…` : g}"`,
3517
+ { type: "unknown-field", field: g, value: y, line: _ }
3518
3518
  )
3519
3519
  );
3520
3520
  break;
3521
3521
  }
3522
3522
  }
3523
- function g() {
3523
+ function m() {
3524
3524
  c.length > 0 && t({
3525
3525
  id: a,
3526
3526
  event: u || void 0,
@@ -3530,8 +3530,8 @@ function Bu(e) {
3530
3530
  `) ? c.slice(0, -1) : c
3531
3531
  }), a = void 0, c = "", u = "";
3532
3532
  }
3533
- function M(h = {}) {
3534
- s && h.consume && d(s), i = !0, a = void 0, c = "", u = "", s = "";
3533
+ function M(g = {}) {
3534
+ s && g.consume && d(s), i = !0, a = void 0, c = "", u = "", s = "";
3535
3535
  }
3536
3536
  return { feed: l, reset: M };
3537
3537
  }
@@ -3575,7 +3575,7 @@ class Wu extends TransformStream {
3575
3575
  });
3576
3576
  }
3577
3577
  }
3578
- var Ee = ({
3578
+ var Oe = ({
3579
3579
  prefix: e,
3580
3580
  size: t = 16,
3581
3581
  alphabet: r = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",
@@ -3595,12 +3595,12 @@ var Ee = ({
3595
3595
  message: `The separator "${n}" must not be part of the alphabet "${r}".`
3596
3596
  });
3597
3597
  return () => `${e}${n}${o()}`;
3598
- }, Hu = Ee();
3598
+ }, Hu = 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";
3602
3602
  }
3603
- function ce(e) {
3603
+ function ue(e) {
3604
3604
  if (e == null)
3605
3605
  return {};
3606
3606
  const t = {};
@@ -3616,7 +3616,7 @@ function ce(e) {
3616
3616
  return t;
3617
3617
  }
3618
3618
  function ur(e, ...t) {
3619
- const r = new Headers(ce(e)), n = r.get("user-agent") || "";
3619
+ const r = new Headers(ue(e)), n = r.get("user-agent") || "";
3620
3620
  return r.set(
3621
3621
  "user-agent",
3622
3622
  [n, ...t].filter(Boolean).join(" ")
@@ -3664,16 +3664,16 @@ function Mt(e) {
3664
3664
  const { properties: r } = e;
3665
3665
  if (r != null)
3666
3666
  for (const n of Object.keys(r))
3667
- r[n] = ue(r[n]);
3667
+ r[n] = ie(r[n]);
3668
3668
  }
3669
- e.items != null && (e.items = Array.isArray(e.items) ? e.items.map(ue) : ue(e.items)), e.anyOf != null && (e.anyOf = e.anyOf.map(ue)), e.allOf != null && (e.allOf = e.allOf.map(ue)), e.oneOf != null && (e.oneOf = e.oneOf.map(ue));
3669
+ e.items != null && (e.items = Array.isArray(e.items) ? e.items.map(ie) : ie(e.items)), e.anyOf != null && (e.anyOf = e.anyOf.map(ie)), e.allOf != null && (e.allOf = e.allOf.map(ie)), e.oneOf != null && (e.oneOf = e.oneOf.map(ie));
3670
3670
  const { definitions: t } = e;
3671
3671
  if (t != null)
3672
3672
  for (const r of Object.keys(t))
3673
- t[r] = ue(t[r]);
3673
+ t[r] = ie(t[r]);
3674
3674
  return e;
3675
3675
  }
3676
- function ue(e) {
3676
+ function ie(e) {
3677
3677
  return typeof e == "boolean" ? e : Mt(e);
3678
3678
  }
3679
3679
  var tc = Symbol(
@@ -3713,7 +3713,7 @@ function nc(e, t) {
3713
3713
  const s = {
3714
3714
  type: "array"
3715
3715
  };
3716
- return (r = e.type) != null && r._def && ((o = (n = e.type) == null ? void 0 : n._def) == null ? void 0 : o.typeName) !== A.ZodAny && (s.items = E(e.type._def, {
3716
+ return (r = e.type) != null && r._def && ((o = (n = e.type) == null ? void 0 : n._def) == null ? void 0 : o.typeName) !== b.ZodAny && (s.items = E(e.type._def, {
3717
3717
  ...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;
@@ -4100,21 +4100,21 @@ function Cn(e, t) {
4100
4100
  currentPath: [...t.currentPath, "additionalProperties"]
4101
4101
  })) != null ? r : t.allowedAdditionalProperties
4102
4102
  };
4103
- if (((n = e.keyType) == null ? void 0 : n._def.typeName) === A.ZodString && ((o = e.keyType._def.checks) != null && o.length)) {
4103
+ if (((n = e.keyType) == null ? void 0 : n._def.typeName) === b.ZodString && ((o = e.keyType._def.checks) != null && o.length)) {
4104
4104
  const { type: u, ...l } = En(e.keyType._def, t);
4105
4105
  return {
4106
4106
  ...c,
4107
4107
  propertyNames: l
4108
4108
  };
4109
4109
  } else {
4110
- if (((s = e.keyType) == null ? void 0 : s._def.typeName) === A.ZodEnum)
4110
+ if (((s = e.keyType) == null ? void 0 : s._def.typeName) === b.ZodEnum)
4111
4111
  return {
4112
4112
  ...c,
4113
4113
  propertyNames: {
4114
4114
  enum: e.keyType._def.values
4115
4115
  }
4116
4116
  };
4117
- if (((i = e.keyType) == null ? void 0 : i._def.typeName) === A.ZodBranded && e.keyType._def.type._def.typeName === A.ZodString && ((a = e.keyType._def.type._def.checks) != null && a.length)) {
4117
+ if (((i = e.keyType) == null ? void 0 : i._def.typeName) === b.ZodBranded && e.keyType._def.type._def.typeName === b.ZodString && ((a = e.keyType._def.type._def.checks) != null && a.length)) {
4118
4118
  const { type: u, ...l } = Tn(
4119
4119
  e.keyType._def,
4120
4120
  t
@@ -4403,73 +4403,73 @@ function kc() {
4403
4403
  }
4404
4404
  var Sc = (e, t) => E(e.innerType._def, t), xc = (e, t, r) => {
4405
4405
  switch (t) {
4406
- case A.ZodString:
4406
+ case b.ZodString:
4407
4407
  return En(e, r);
4408
- case A.ZodNumber:
4408
+ case b.ZodNumber:
4409
4409
  return bc(e);
4410
- case A.ZodObject:
4410
+ case b.ZodObject:
4411
4411
  return Ac(e, r);
4412
- case A.ZodBigInt:
4412
+ case b.ZodBigInt:
4413
4413
  return oc(e);
4414
- case A.ZodBoolean:
4414
+ case b.ZodBoolean:
4415
4415
  return sc();
4416
- case A.ZodDate:
4416
+ case b.ZodDate:
4417
4417
  return On(e, r);
4418
- case A.ZodUndefined:
4418
+ case b.ZodUndefined:
4419
4419
  return Cc();
4420
- case A.ZodNull:
4420
+ case b.ZodNull:
4421
4421
  return vc();
4422
- case A.ZodArray:
4422
+ case b.ZodArray:
4423
4423
  return nc(e, r);
4424
- case A.ZodUnion:
4425
- case A.ZodDiscriminatedUnion:
4424
+ case b.ZodUnion:
4425
+ case b.ZodDiscriminatedUnion:
4426
4426
  return Mc(e, r);
4427
- case A.ZodIntersection:
4427
+ case b.ZodIntersection:
4428
4428
  return pc(e, r);
4429
- case A.ZodTuple:
4429
+ case b.ZodTuple:
4430
4430
  return Ec(e, r);
4431
- case A.ZodRecord:
4431
+ case b.ZodRecord:
4432
4432
  return Cn(e, r);
4433
- case A.ZodLiteral:
4433
+ case b.ZodLiteral:
4434
4434
  return fc(e);
4435
- case A.ZodEnum:
4435
+ case b.ZodEnum:
4436
4436
  return lc(e);
4437
- case A.ZodNativeEnum:
4437
+ case b.ZodNativeEnum:
4438
4438
  return Ic(e);
4439
- case A.ZodNullable:
4439
+ case b.ZodNullable:
4440
4440
  return Nc(e, r);
4441
- case A.ZodOptional:
4441
+ case b.ZodOptional:
4442
4442
  return jc(e, r);
4443
- case A.ZodMap:
4443
+ case b.ZodMap:
4444
4444
  return hc(e, r);
4445
- case A.ZodSet:
4445
+ case b.ZodSet:
4446
4446
  return Oc(e, r);
4447
- case A.ZodLazy:
4447
+ case b.ZodLazy:
4448
4448
  return () => e.getter()._def;
4449
- case A.ZodPromise:
4449
+ case b.ZodPromise:
4450
4450
  return Tc(e, r);
4451
- case A.ZodNaN:
4452
- case A.ZodNever:
4451
+ case b.ZodNaN:
4452
+ case b.ZodNever:
4453
4453
  return yc();
4454
- case A.ZodEffects:
4454
+ case b.ZodEffects:
4455
4455
  return cc(e, r);
4456
- case A.ZodAny:
4456
+ case b.ZodAny:
4457
4457
  return V();
4458
- case A.ZodUnknown:
4458
+ case b.ZodUnknown:
4459
4459
  return kc();
4460
- case A.ZodDefault:
4460
+ case b.ZodDefault:
4461
4461
  return uc(e, r);
4462
- case A.ZodBranded:
4462
+ case b.ZodBranded:
4463
4463
  return Tn(e, r);
4464
- case A.ZodReadonly:
4464
+ case b.ZodReadonly:
4465
4465
  return Sc(e, r);
4466
- case A.ZodCatch:
4466
+ case b.ZodCatch:
4467
4467
  return ac(e, r);
4468
- case A.ZodPipeline:
4468
+ case b.ZodPipeline:
4469
4469
  return Dc(e, r);
4470
- case A.ZodFunction:
4471
- case A.ZodVoid:
4472
- case A.ZodSymbol:
4470
+ case b.ZodFunction:
4471
+ case b.ZodVoid:
4472
+ case b.ZodSymbol:
4473
4473
  return;
4474
4474
  default:
4475
4475
  return /* @__PURE__ */ ((n) => {
@@ -4546,17 +4546,17 @@ var Pc = (e, t) => {
4546
4546
  const n = Rc(t);
4547
4547
  let o = typeof t == "object" && t.definitions ? Object.entries(t.definitions).reduce(
4548
4548
  (u, [l, d]) => {
4549
- var y;
4549
+ var I;
4550
4550
  return {
4551
4551
  ...u,
4552
- [l]: (y = E(
4552
+ [l]: (I = E(
4553
4553
  d._def,
4554
4554
  {
4555
4555
  ...n,
4556
4556
  currentPath: [...n.basePath, n.definitionPath, l]
4557
4557
  },
4558
4558
  !0
4559
- )) != null ? y : V()
4559
+ )) != null ? I : V()
4560
4560
  };
4561
4561
  },
4562
4562
  {}
@@ -4621,7 +4621,7 @@ function Qc(e) {
4621
4621
  const r = await e["~standard"].validate(t);
4622
4622
  return "value" in r ? { success: !0, value: r.value } : {
4623
4623
  success: !1,
4624
- error: new he({
4624
+ error: new me({
4625
4625
  value: t,
4626
4626
  cause: r.issues
4627
4627
  })
@@ -4676,12 +4676,12 @@ async function pr({
4676
4676
  value: e,
4677
4677
  schema: t
4678
4678
  }) {
4679
- const r = await Te({ value: e, schema: t });
4679
+ const r = await De({ value: e, schema: t });
4680
4680
  if (!r.success)
4681
- throw he.wrap({ value: e, cause: r.error });
4681
+ throw me.wrap({ value: e, cause: r.error });
4682
4682
  return r.value;
4683
4683
  }
4684
- async function Te({
4684
+ async function De({
4685
4685
  value: e,
4686
4686
  schema: t
4687
4687
  }) {
@@ -4692,24 +4692,24 @@ async function Te({
4692
4692
  const n = await r.validate(e);
4693
4693
  return n.success ? { success: !0, value: n.value, rawValue: e } : {
4694
4694
  success: !1,
4695
- error: he.wrap({ value: e, cause: n.error }),
4695
+ error: me.wrap({ value: e, cause: n.error }),
4696
4696
  rawValue: e
4697
4697
  };
4698
4698
  } catch (n) {
4699
4699
  return {
4700
4700
  success: !1,
4701
- error: he.wrap({ value: e, cause: n }),
4701
+ error: me.wrap({ value: e, cause: n }),
4702
4702
  rawValue: e
4703
4703
  };
4704
4704
  }
4705
4705
  }
4706
- async function le({
4706
+ async function ce({
4707
4707
  text: e,
4708
4708
  schema: t
4709
4709
  }) {
4710
4710
  try {
4711
4711
  const r = ec(e);
4712
- return t == null ? { success: !0, value: r, rawValue: r } : await Te({ value: r, schema: t });
4712
+ return t == null ? { success: !0, value: r, rawValue: r } : await De({ value: r, schema: t });
4713
4713
  } catch (r) {
4714
4714
  return {
4715
4715
  success: !1,
@@ -4725,7 +4725,7 @@ function Bc({
4725
4725
  return e.pipeThrough(new TextDecoderStream()).pipeThrough(new Wu()).pipeThrough(
4726
4726
  new TransformStream({
4727
4727
  async transform({ data: r }, n) {
4728
- r !== "[DONE]" && n.enqueue(await le({ text: r, schema: t }));
4728
+ r !== "[DONE]" && n.enqueue(await ce({ text: r, schema: t }));
4729
4729
  }
4730
4730
  })
4731
4731
  );
@@ -4752,7 +4752,7 @@ var Gc = Object.defineProperty, Wc = (e, t) => {
4752
4752
  }
4753
4753
  };
4754
4754
  Zn = Hc;
4755
- var Pn = "AI_UIMessageStreamError", Ln = `vercel.ai.error.${Pn}`, Xc = Symbol.for(Ln), Rn, pe = class extends K {
4755
+ var Pn = "AI_UIMessageStreamError", Ln = `vercel.ai.error.${Pn}`, Xc = Symbol.for(Ln), Rn, de = class extends K {
4756
4756
  constructor({
4757
4757
  chunkType: e,
4758
4758
  chunkId: t,
@@ -4766,7 +4766,7 @@ var Pn = "AI_UIMessageStreamError", Ln = `vercel.ai.error.${Pn}`, Xc = Symbol.fo
4766
4766
  };
4767
4767
  Rn = Xc;
4768
4768
  var fr = "6.0.42", $n = Q([
4769
- I(),
4769
+ h(),
4770
4770
  Qe(Uint8Array),
4771
4771
  Qe(ArrayBuffer),
4772
4772
  Dn(
@@ -4777,160 +4777,160 @@ var fr = "6.0.42", $n = Q([
4777
4777
  },
4778
4778
  { message: "Must be a Buffer" }
4779
4779
  )
4780
- ]), Oe = Ju(
4780
+ ]), Te = Ju(
4781
4781
  () => Q([
4782
4782
  yu(),
4783
- I(),
4783
+ h(),
4784
4784
  gu(),
4785
4785
  Y(),
4786
- je(I(), Oe.optional()),
4787
- Me(Oe)
4786
+ we(h(), Te.optional()),
4787
+ ve(Te)
4788
4788
  ])
4789
- ), T = je(
4790
- I(),
4791
- je(I(), Oe.optional())
4789
+ ), j = we(
4790
+ h(),
4791
+ we(h(), Te.optional())
4792
4792
  ), Un = k({
4793
- type: _("text"),
4794
- text: I(),
4795
- providerOptions: T.optional()
4793
+ type: N("text"),
4794
+ text: h(),
4795
+ providerOptions: j.optional()
4796
4796
  }), qc = k({
4797
- type: _("image"),
4797
+ type: N("image"),
4798
4798
  image: Q([$n, Qe(URL)]),
4799
- mediaType: I().optional(),
4800
- providerOptions: T.optional()
4799
+ mediaType: h().optional(),
4800
+ providerOptions: j.optional()
4801
4801
  }), Yn = k({
4802
- type: _("file"),
4802
+ type: N("file"),
4803
4803
  data: Q([$n, Qe(URL)]),
4804
- filename: I().optional(),
4805
- mediaType: I(),
4806
- providerOptions: T.optional()
4804
+ filename: h().optional(),
4805
+ mediaType: h(),
4806
+ providerOptions: j.optional()
4807
4807
  }), Kc = k({
4808
- type: _("reasoning"),
4809
- text: I(),
4810
- providerOptions: T.optional()
4808
+ type: N("reasoning"),
4809
+ text: h(),
4810
+ providerOptions: j.optional()
4811
4811
  }), el = k({
4812
- type: _("tool-call"),
4813
- toolCallId: I(),
4814
- toolName: I(),
4812
+ type: N("tool-call"),
4813
+ toolCallId: h(),
4814
+ toolName: h(),
4815
4815
  input: q(),
4816
- providerOptions: T.optional(),
4816
+ providerOptions: j.optional(),
4817
4817
  providerExecuted: Y().optional()
4818
4818
  }), tl = bu(
4819
4819
  "type",
4820
4820
  [
4821
4821
  k({
4822
- type: _("text"),
4823
- value: I(),
4824
- providerOptions: T.optional()
4822
+ type: N("text"),
4823
+ value: h(),
4824
+ providerOptions: j.optional()
4825
4825
  }),
4826
4826
  k({
4827
- type: _("json"),
4828
- value: Oe,
4829
- providerOptions: T.optional()
4827
+ type: N("json"),
4828
+ value: Te,
4829
+ providerOptions: j.optional()
4830
4830
  }),
4831
4831
  k({
4832
- type: _("execution-denied"),
4833
- reason: I().optional(),
4834
- providerOptions: T.optional()
4832
+ type: N("execution-denied"),
4833
+ reason: h().optional(),
4834
+ providerOptions: j.optional()
4835
4835
  }),
4836
4836
  k({
4837
- type: _("error-text"),
4838
- value: I(),
4839
- providerOptions: T.optional()
4837
+ type: N("error-text"),
4838
+ value: h(),
4839
+ providerOptions: j.optional()
4840
4840
  }),
4841
4841
  k({
4842
- type: _("error-json"),
4843
- value: Oe,
4844
- providerOptions: T.optional()
4842
+ type: N("error-json"),
4843
+ value: Te,
4844
+ providerOptions: j.optional()
4845
4845
  }),
4846
4846
  k({
4847
- type: _("content"),
4848
- value: Me(
4847
+ type: N("content"),
4848
+ value: ve(
4849
4849
  Q([
4850
4850
  k({
4851
- type: _("text"),
4852
- text: I(),
4853
- providerOptions: T.optional()
4851
+ type: N("text"),
4852
+ text: h(),
4853
+ providerOptions: j.optional()
4854
4854
  }),
4855
4855
  k({
4856
- type: _("media"),
4857
- data: I(),
4858
- mediaType: I()
4856
+ type: N("media"),
4857
+ data: h(),
4858
+ mediaType: h()
4859
4859
  }),
4860
4860
  k({
4861
- type: _("file-data"),
4862
- data: I(),
4863
- mediaType: I(),
4864
- filename: I().optional(),
4865
- providerOptions: T.optional()
4861
+ type: N("file-data"),
4862
+ data: h(),
4863
+ mediaType: h(),
4864
+ filename: h().optional(),
4865
+ providerOptions: j.optional()
4866
4866
  }),
4867
4867
  k({
4868
- type: _("file-url"),
4869
- url: I(),
4870
- providerOptions: T.optional()
4868
+ type: N("file-url"),
4869
+ url: h(),
4870
+ providerOptions: j.optional()
4871
4871
  }),
4872
4872
  k({
4873
- type: _("file-id"),
4874
- fileId: Q([I(), je(I(), I())]),
4875
- providerOptions: T.optional()
4873
+ type: N("file-id"),
4874
+ fileId: Q([h(), we(h(), h())]),
4875
+ providerOptions: j.optional()
4876
4876
  }),
4877
4877
  k({
4878
- type: _("image-data"),
4879
- data: I(),
4880
- mediaType: I(),
4881
- providerOptions: T.optional()
4878
+ type: N("image-data"),
4879
+ data: h(),
4880
+ mediaType: h(),
4881
+ providerOptions: j.optional()
4882
4882
  }),
4883
4883
  k({
4884
- type: _("image-url"),
4885
- url: I(),
4886
- providerOptions: T.optional()
4884
+ type: N("image-url"),
4885
+ url: h(),
4886
+ providerOptions: j.optional()
4887
4887
  }),
4888
4888
  k({
4889
- type: _("image-file-id"),
4890
- fileId: Q([I(), je(I(), I())]),
4891
- providerOptions: T.optional()
4889
+ type: N("image-file-id"),
4890
+ fileId: Q([h(), we(h(), h())]),
4891
+ providerOptions: j.optional()
4892
4892
  }),
4893
4893
  k({
4894
- type: _("custom"),
4895
- providerOptions: T.optional()
4894
+ type: N("custom"),
4895
+ providerOptions: j.optional()
4896
4896
  })
4897
4897
  ])
4898
4898
  )
4899
4899
  })
4900
4900
  ]
4901
4901
  ), Qn = k({
4902
- type: _("tool-result"),
4903
- toolCallId: I(),
4904
- toolName: I(),
4902
+ type: N("tool-result"),
4903
+ toolCallId: h(),
4904
+ toolName: h(),
4905
4905
  output: tl,
4906
- providerOptions: T.optional()
4906
+ providerOptions: j.optional()
4907
4907
  }), rl = k({
4908
- type: _("tool-approval-request"),
4909
- approvalId: I(),
4910
- toolCallId: I()
4908
+ type: N("tool-approval-request"),
4909
+ approvalId: h(),
4910
+ toolCallId: h()
4911
4911
  }), nl = k({
4912
- type: _("tool-approval-response"),
4913
- approvalId: I(),
4912
+ type: N("tool-approval-response"),
4913
+ approvalId: h(),
4914
4914
  approved: Y(),
4915
- reason: I().optional()
4915
+ reason: h().optional()
4916
4916
  }), ol = k(
4917
4917
  {
4918
- role: _("system"),
4919
- content: I(),
4920
- providerOptions: T.optional()
4918
+ role: N("system"),
4919
+ content: h(),
4920
+ providerOptions: j.optional()
4921
4921
  }
4922
4922
  ), sl = k({
4923
- role: _("user"),
4923
+ role: N("user"),
4924
4924
  content: Q([
4925
- I(),
4926
- Me(Q([Un, qc, Yn]))
4925
+ h(),
4926
+ ve(Q([Un, qc, Yn]))
4927
4927
  ]),
4928
- providerOptions: T.optional()
4928
+ providerOptions: j.optional()
4929
4929
  }), al = k({
4930
- role: _("assistant"),
4930
+ role: N("assistant"),
4931
4931
  content: Q([
4932
- I(),
4933
- Me(
4932
+ h(),
4933
+ ve(
4934
4934
  Q([
4935
4935
  Un,
4936
4936
  Yn,
@@ -4941,11 +4941,11 @@ var fr = "6.0.42", $n = Q([
4941
4941
  ])
4942
4942
  )
4943
4943
  ]),
4944
- providerOptions: T.optional()
4944
+ providerOptions: j.optional()
4945
4945
  }), il = k({
4946
- role: _("tool"),
4947
- content: Me(Q([Qn, nl])),
4948
- providerOptions: T.optional()
4946
+ role: N("tool"),
4947
+ content: ve(Q([Qn, nl])),
4948
+ providerOptions: j.optional()
4949
4949
  });
4950
4950
  Q([
4951
4951
  ol,
@@ -5230,11 +5230,11 @@ function cl(e) {
5230
5230
  }
5231
5231
  return a;
5232
5232
  }
5233
- async function Ce(e) {
5233
+ async function Ee(e) {
5234
5234
  if (e === void 0)
5235
5235
  return { value: void 0, state: "undefined-input" };
5236
- let t = await le({ text: e });
5237
- return t.success ? { value: t.value, state: "successful-parse" } : (t = await le({ text: cl(e) }), t.success ? { value: t.value, state: "repaired-parse" } : { value: void 0, state: "failed-parse" });
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" });
5238
5238
  }
5239
5239
  var ll = () => ({
5240
5240
  name: "text",
@@ -5262,7 +5262,7 @@ var ll = () => ({
5262
5262
  ...r != null && { description: r }
5263
5263
  })),
5264
5264
  async parseCompleteOutput({ text: o }, s) {
5265
- const i = await le({ text: o });
5265
+ const i = await ce({ text: o });
5266
5266
  if (!i.success)
5267
5267
  throw new re({
5268
5268
  message: "No object generated: could not parse the response.",
@@ -5272,7 +5272,7 @@ var ll = () => ({
5272
5272
  usage: s.usage,
5273
5273
  finishReason: s.finishReason
5274
5274
  });
5275
- const a = await Te({
5275
+ const a = await De({
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 Ce(o);
5291
+ const s = await Ee(o);
5292
5292
  switch (s.state) {
5293
5293
  case "failed-parse":
5294
5294
  case "undefined-input":
@@ -5331,7 +5331,7 @@ var ll = () => ({
5331
5331
  };
5332
5332
  }),
5333
5333
  async parseCompleteOutput({ text: o }, s) {
5334
- const i = await le({ text: o });
5334
+ const i = await ce({ text: o });
5335
5335
  if (!i.success)
5336
5336
  throw new re({
5337
5337
  message: "No object generated: could not parse the response.",
@@ -5345,7 +5345,7 @@ var ll = () => ({
5345
5345
  if (a == null || typeof a != "object" || !("elements" in a) || !Array.isArray(a.elements))
5346
5346
  throw new re({
5347
5347
  message: "No object generated: response did not match schema.",
5348
- cause: new he({
5348
+ cause: new me({
5349
5349
  value: a,
5350
5350
  cause: "response must be an object with an elements array"
5351
5351
  }),
@@ -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 Te({
5358
+ const u = await De({
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 Ce(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 Te({
5387
+ const l = await De({
5388
5388
  value: u,
5389
5389
  schema: n
5390
5390
  });
@@ -5427,7 +5427,7 @@ var ll = () => ({
5427
5427
  ...r != null && { description: r }
5428
5428
  }),
5429
5429
  async parseCompleteOutput({ text: n }, o) {
5430
- const s = await le({ text: n });
5430
+ const s = await ce({ text: n });
5431
5431
  if (!s.success)
5432
5432
  throw new re({
5433
5433
  message: "No object generated: could not parse the response.",
@@ -5441,7 +5441,7 @@ var ll = () => ({
5441
5441
  if (i == null || typeof i != "object" || !("result" in i) || typeof i.result != "string" || !e.includes(i.result))
5442
5442
  throw new re({
5443
5443
  message: "No object generated: response did not match schema.",
5444
- cause: new he({
5444
+ cause: new me({
5445
5445
  value: i,
5446
5446
  cause: "response must be an object that contains a choice value."
5447
5447
  }),
@@ -5453,7 +5453,7 @@ var ll = () => ({
5453
5453
  return i.result;
5454
5454
  },
5455
5455
  async parsePartialOutput({ text: n }) {
5456
- const o = await Ce(n);
5456
+ const o = await Ee(n);
5457
5457
  switch (o.state) {
5458
5458
  case "failed-parse":
5459
5459
  case "undefined-input":
@@ -5483,7 +5483,7 @@ var ll = () => ({
5483
5483
  ...t != null && { description: t }
5484
5484
  }),
5485
5485
  async parseCompleteOutput({ text: r }, n) {
5486
- const o = await le({ text: r });
5486
+ const o = await ce({ text: r });
5487
5487
  if (!o.success)
5488
5488
  throw new re({
5489
5489
  message: "No object generated: could not parse the response.",
@@ -5496,7 +5496,7 @@ var ll = () => ({
5496
5496
  return o.value;
5497
5497
  },
5498
5498
  async parsePartialOutput({ text: r }) {
5499
- const n = await Ce(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
- Ee({
5512
+ Oe({
5513
5513
  prefix: "aitxt",
5514
5514
  size: 24
5515
5515
  });
@@ -5533,143 +5533,143 @@ var ml = Uc(
5533
5533
  () => kn(
5534
5534
  Q([
5535
5535
  x({
5536
- type: _("text-start"),
5537
- id: I(),
5538
- providerMetadata: T.optional()
5536
+ type: N("text-start"),
5537
+ id: h(),
5538
+ providerMetadata: j.optional()
5539
5539
  }),
5540
5540
  x({
5541
- type: _("text-delta"),
5542
- id: I(),
5543
- delta: I(),
5544
- providerMetadata: T.optional()
5541
+ type: N("text-delta"),
5542
+ id: h(),
5543
+ delta: h(),
5544
+ providerMetadata: j.optional()
5545
5545
  }),
5546
5546
  x({
5547
- type: _("text-end"),
5548
- id: I(),
5549
- providerMetadata: T.optional()
5547
+ type: N("text-end"),
5548
+ id: h(),
5549
+ providerMetadata: j.optional()
5550
5550
  }),
5551
5551
  x({
5552
- type: _("error"),
5553
- errorText: I()
5552
+ type: N("error"),
5553
+ errorText: h()
5554
5554
  }),
5555
5555
  x({
5556
- type: _("tool-input-start"),
5557
- toolCallId: I(),
5558
- toolName: I(),
5556
+ type: N("tool-input-start"),
5557
+ toolCallId: h(),
5558
+ toolName: h(),
5559
5559
  providerExecuted: Y().optional(),
5560
- providerMetadata: T.optional(),
5560
+ providerMetadata: j.optional(),
5561
5561
  dynamic: Y().optional(),
5562
- title: I().optional()
5562
+ title: h().optional()
5563
5563
  }),
5564
5564
  x({
5565
- type: _("tool-input-delta"),
5566
- toolCallId: I(),
5567
- inputTextDelta: I()
5565
+ type: N("tool-input-delta"),
5566
+ toolCallId: h(),
5567
+ inputTextDelta: h()
5568
5568
  }),
5569
5569
  x({
5570
- type: _("tool-input-available"),
5571
- toolCallId: I(),
5572
- toolName: I(),
5570
+ type: N("tool-input-available"),
5571
+ toolCallId: h(),
5572
+ toolName: h(),
5573
5573
  input: q(),
5574
5574
  providerExecuted: Y().optional(),
5575
- providerMetadata: T.optional(),
5575
+ providerMetadata: j.optional(),
5576
5576
  dynamic: Y().optional(),
5577
- title: I().optional()
5577
+ title: h().optional()
5578
5578
  }),
5579
5579
  x({
5580
- type: _("tool-input-error"),
5581
- toolCallId: I(),
5582
- toolName: I(),
5580
+ type: N("tool-input-error"),
5581
+ toolCallId: h(),
5582
+ toolName: h(),
5583
5583
  input: q(),
5584
5584
  providerExecuted: Y().optional(),
5585
- providerMetadata: T.optional(),
5585
+ providerMetadata: j.optional(),
5586
5586
  dynamic: Y().optional(),
5587
- errorText: I(),
5588
- title: I().optional()
5587
+ errorText: h(),
5588
+ title: h().optional()
5589
5589
  }),
5590
5590
  x({
5591
- type: _("tool-approval-request"),
5592
- approvalId: I(),
5593
- toolCallId: I()
5591
+ type: N("tool-approval-request"),
5592
+ approvalId: h(),
5593
+ toolCallId: h()
5594
5594
  }),
5595
5595
  x({
5596
- type: _("tool-output-available"),
5597
- toolCallId: I(),
5596
+ type: N("tool-output-available"),
5597
+ toolCallId: h(),
5598
5598
  output: q(),
5599
5599
  providerExecuted: Y().optional(),
5600
5600
  dynamic: Y().optional(),
5601
5601
  preliminary: Y().optional()
5602
5602
  }),
5603
5603
  x({
5604
- type: _("tool-output-error"),
5605
- toolCallId: I(),
5606
- errorText: I(),
5604
+ type: N("tool-output-error"),
5605
+ toolCallId: h(),
5606
+ errorText: h(),
5607
5607
  providerExecuted: Y().optional(),
5608
5608
  dynamic: Y().optional()
5609
5609
  }),
5610
5610
  x({
5611
- type: _("tool-output-denied"),
5612
- toolCallId: I()
5611
+ type: N("tool-output-denied"),
5612
+ toolCallId: h()
5613
5613
  }),
5614
5614
  x({
5615
- type: _("reasoning-start"),
5616
- id: I(),
5617
- providerMetadata: T.optional()
5615
+ type: N("reasoning-start"),
5616
+ id: h(),
5617
+ providerMetadata: j.optional()
5618
5618
  }),
5619
5619
  x({
5620
- type: _("reasoning-delta"),
5621
- id: I(),
5622
- delta: I(),
5623
- providerMetadata: T.optional()
5620
+ type: N("reasoning-delta"),
5621
+ id: h(),
5622
+ delta: h(),
5623
+ providerMetadata: j.optional()
5624
5624
  }),
5625
5625
  x({
5626
- type: _("reasoning-end"),
5627
- id: I(),
5628
- providerMetadata: T.optional()
5626
+ type: N("reasoning-end"),
5627
+ id: h(),
5628
+ providerMetadata: j.optional()
5629
5629
  }),
5630
5630
  x({
5631
- type: _("source-url"),
5632
- sourceId: I(),
5633
- url: I(),
5634
- title: I().optional(),
5635
- providerMetadata: T.optional()
5631
+ type: N("source-url"),
5632
+ sourceId: h(),
5633
+ url: h(),
5634
+ title: h().optional(),
5635
+ providerMetadata: j.optional()
5636
5636
  }),
5637
5637
  x({
5638
- type: _("source-document"),
5639
- sourceId: I(),
5640
- mediaType: I(),
5641
- title: I(),
5642
- filename: I().optional(),
5643
- providerMetadata: T.optional()
5638
+ type: N("source-document"),
5639
+ sourceId: h(),
5640
+ mediaType: h(),
5641
+ title: h(),
5642
+ filename: h().optional(),
5643
+ providerMetadata: j.optional()
5644
5644
  }),
5645
5645
  x({
5646
- type: _("file"),
5647
- url: I(),
5648
- mediaType: I(),
5649
- providerMetadata: T.optional()
5646
+ type: N("file"),
5647
+ url: h(),
5648
+ mediaType: h(),
5649
+ providerMetadata: j.optional()
5650
5650
  }),
5651
5651
  x({
5652
5652
  type: Dn(
5653
5653
  (e) => typeof e == "string" && e.startsWith("data-"),
5654
5654
  { message: 'Type must start with "data-"' }
5655
5655
  ),
5656
- id: I().optional(),
5656
+ id: h().optional(),
5657
5657
  data: q(),
5658
5658
  transient: Y().optional()
5659
5659
  }),
5660
5660
  x({
5661
- type: _("start-step")
5661
+ type: N("start-step")
5662
5662
  }),
5663
5663
  x({
5664
- type: _("finish-step")
5664
+ type: N("finish-step")
5665
5665
  }),
5666
5666
  x({
5667
- type: _("start"),
5668
- messageId: I().optional(),
5667
+ type: N("start"),
5668
+ messageId: h().optional(),
5669
5669
  messageMetadata: q().optional()
5670
5670
  }),
5671
5671
  x({
5672
- type: _("finish"),
5672
+ type: N("finish"),
5673
5673
  finishReason: zn([
5674
5674
  "stop",
5675
5675
  "length",
@@ -5681,11 +5681,11 @@ var ml = Uc(
5681
5681
  messageMetadata: q().optional()
5682
5682
  }),
5683
5683
  x({
5684
- type: _("abort"),
5685
- reason: I().optional()
5684
+ type: N("abort"),
5685
+ reason: h().optional()
5686
5686
  }),
5687
5687
  x({
5688
- type: _("message-metadata"),
5688
+ type: N("message-metadata"),
5689
5689
  messageMetadata: q()
5690
5690
  })
5691
5691
  ])
@@ -5735,129 +5735,129 @@ function vl({
5735
5735
  new TransformStream({
5736
5736
  async transform(a, c) {
5737
5737
  await n(async ({ state: u, write: l }) => {
5738
- var d, y, g, M;
5739
- function h(f) {
5740
- const j = u.message.parts.filter(dt).find(
5741
- (D) => D.toolCallId === f
5738
+ var d, I, m, M;
5739
+ function g(p) {
5740
+ const T = u.message.parts.filter(dt).find(
5741
+ (w) => w.toolCallId === p
5742
5742
  );
5743
- if (j == null)
5744
- throw new pe({
5743
+ if (T == null)
5744
+ throw new de({
5745
5745
  chunkType: "tool-invocation",
5746
- chunkId: f,
5747
- message: `No tool invocation found for tool call ID "${f}".`
5746
+ chunkId: p,
5747
+ message: `No tool invocation found for tool call ID "${p}".`
5748
5748
  });
5749
- return j;
5749
+ return T;
5750
5750
  }
5751
- function m(f) {
5752
- var z;
5753
- const j = u.message.parts.find(
5754
- (J) => lt(J) && J.toolCallId === f.toolCallId
5755
- ), D = f, C = j;
5756
- j != null ? (j.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 : j.providerExecuted, D.providerMetadata != null && (j.callProviderMetadata = D.providerMetadata)) : u.message.parts.push({
5757
- type: `tool-${f.toolName}`,
5758
- toolCallId: f.toolCallId,
5759
- state: f.state,
5760
- title: f.title,
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 } : {}
5751
+ function y(p) {
5752
+ var O;
5753
+ const T = u.message.parts.find(
5754
+ (J) => lt(J) && J.toolCallId === p.toolCallId
5755
+ ), w = p, C = T;
5756
+ T != null ? (T.state = p.state, C.input = w.input, C.output = w.output, C.errorText = w.errorText, C.rawInput = w.rawInput, C.preliminary = w.preliminary, p.title !== void 0 && (C.title = p.title), C.providerExecuted = (O = w.providerExecuted) != null ? O : T.providerExecuted, w.providerMetadata != null && (T.callProviderMetadata = w.providerMetadata)) : u.message.parts.push({
5757
+ type: `tool-${p.toolName}`,
5758
+ toolCallId: p.toolCallId,
5759
+ state: p.state,
5760
+ title: p.title,
5761
+ input: w.input,
5762
+ output: w.output,
5763
+ rawInput: w.rawInput,
5764
+ errorText: w.errorText,
5765
+ providerExecuted: w.providerExecuted,
5766
+ preliminary: w.preliminary,
5767
+ ...w.providerMetadata != null ? { callProviderMetadata: w.providerMetadata } : {}
5768
5768
  });
5769
5769
  }
5770
- function b(f) {
5771
- var z, j;
5772
- const D = u.message.parts.find(
5773
- (Nt) => Nt.type === "dynamic-tool" && Nt.toolCallId === f.toolCallId
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 = (j = C.providerExecuted) != null ? j : D.providerExecuted, C.providerMetadata != null && (D.callProviderMetadata = C.providerMetadata)) : u.message.parts.push({
5770
+ function _(p) {
5771
+ var O, T;
5772
+ const w = u.message.parts.find(
5773
+ (Nt) => Nt.type === "dynamic-tool" && Nt.toolCallId === p.toolCallId
5774
+ ), C = p, J = w;
5775
+ w != null ? (w.state = p.state, J.toolName = p.toolName, J.input = C.input, J.output = C.output, J.errorText = C.errorText, J.rawInput = (O = C.rawInput) != null ? O : J.rawInput, J.preliminary = C.preliminary, p.title !== void 0 && (J.title = p.title), J.providerExecuted = (T = C.providerExecuted) != null ? T : w.providerExecuted, C.providerMetadata != null && (w.callProviderMetadata = C.providerMetadata)) : u.message.parts.push({
5776
5776
  type: "dynamic-tool",
5777
- toolName: f.toolName,
5778
- toolCallId: f.toolCallId,
5779
- state: f.state,
5777
+ toolName: p.toolName,
5778
+ toolCallId: p.toolCallId,
5779
+ state: p.state,
5780
5780
  input: C.input,
5781
5781
  output: C.output,
5782
5782
  errorText: C.errorText,
5783
5783
  preliminary: C.preliminary,
5784
5784
  providerExecuted: C.providerExecuted,
5785
- title: f.title,
5785
+ title: p.title,
5786
5786
  ...C.providerMetadata != null ? { callProviderMetadata: C.providerMetadata } : {}
5787
5787
  });
5788
5788
  }
5789
- async function N(f) {
5790
- if (f != null) {
5791
- const z = u.message.metadata != null ? Jn(u.message.metadata, f) : f;
5789
+ async function A(p) {
5790
+ if (p != null) {
5791
+ const O = u.message.metadata != null ? Jn(u.message.metadata, p) : p;
5792
5792
  t != null && await pr({
5793
- value: z,
5793
+ value: O,
5794
5794
  schema: t
5795
- }), u.message.metadata = z;
5795
+ }), u.message.metadata = O;
5796
5796
  }
5797
5797
  }
5798
5798
  switch (a.type) {
5799
5799
  case "text-start": {
5800
- const f = {
5800
+ const p = {
5801
5801
  type: "text",
5802
5802
  text: "",
5803
5803
  providerMetadata: a.providerMetadata,
5804
5804
  state: "streaming"
5805
5805
  };
5806
- u.activeTextParts[a.id] = f, u.message.parts.push(f), l();
5806
+ u.activeTextParts[a.id] = p, u.message.parts.push(p), l();
5807
5807
  break;
5808
5808
  }
5809
5809
  case "text-delta": {
5810
- const f = u.activeTextParts[a.id];
5811
- if (f == null)
5812
- throw new pe({
5810
+ const p = u.activeTextParts[a.id];
5811
+ if (p == null)
5812
+ throw new de({
5813
5813
  chunkType: "text-delta",
5814
5814
  chunkId: a.id,
5815
5815
  message: `Received text-delta for missing text part with ID "${a.id}". Ensure a "text-start" chunk is sent before any "text-delta" chunks.`
5816
5816
  });
5817
- f.text += a.delta, f.providerMetadata = (d = a.providerMetadata) != null ? d : f.providerMetadata, l();
5817
+ p.text += a.delta, p.providerMetadata = (d = a.providerMetadata) != null ? d : p.providerMetadata, l();
5818
5818
  break;
5819
5819
  }
5820
5820
  case "text-end": {
5821
- const f = u.activeTextParts[a.id];
5822
- if (f == null)
5823
- throw new pe({
5821
+ const p = u.activeTextParts[a.id];
5822
+ if (p == null)
5823
+ throw new de({
5824
5824
  chunkType: "text-end",
5825
5825
  chunkId: a.id,
5826
5826
  message: `Received text-end for missing text part with ID "${a.id}". Ensure a "text-start" chunk is sent before any "text-end" chunks.`
5827
5827
  });
5828
- f.state = "done", f.providerMetadata = (y = a.providerMetadata) != null ? y : f.providerMetadata, delete u.activeTextParts[a.id], l();
5828
+ p.state = "done", p.providerMetadata = (I = a.providerMetadata) != null ? I : p.providerMetadata, delete u.activeTextParts[a.id], l();
5829
5829
  break;
5830
5830
  }
5831
5831
  case "reasoning-start": {
5832
- const f = {
5832
+ const p = {
5833
5833
  type: "reasoning",
5834
5834
  text: "",
5835
5835
  providerMetadata: a.providerMetadata,
5836
5836
  state: "streaming"
5837
5837
  };
5838
- u.activeReasoningParts[a.id] = f, u.message.parts.push(f), l();
5838
+ u.activeReasoningParts[a.id] = p, u.message.parts.push(p), l();
5839
5839
  break;
5840
5840
  }
5841
5841
  case "reasoning-delta": {
5842
- const f = u.activeReasoningParts[a.id];
5843
- if (f == null)
5844
- throw new pe({
5842
+ const p = u.activeReasoningParts[a.id];
5843
+ if (p == null)
5844
+ throw new de({
5845
5845
  chunkType: "reasoning-delta",
5846
5846
  chunkId: a.id,
5847
5847
  message: `Received reasoning-delta for missing reasoning part with ID "${a.id}". Ensure a "reasoning-start" chunk is sent before any "reasoning-delta" chunks.`
5848
5848
  });
5849
- f.text += a.delta, f.providerMetadata = (g = a.providerMetadata) != null ? g : f.providerMetadata, l();
5849
+ p.text += a.delta, p.providerMetadata = (m = a.providerMetadata) != null ? m : p.providerMetadata, l();
5850
5850
  break;
5851
5851
  }
5852
5852
  case "reasoning-end": {
5853
- const f = u.activeReasoningParts[a.id];
5854
- if (f == null)
5855
- throw new pe({
5853
+ const p = u.activeReasoningParts[a.id];
5854
+ if (p == null)
5855
+ throw new de({
5856
5856
  chunkType: "reasoning-end",
5857
5857
  chunkId: a.id,
5858
5858
  message: `Received reasoning-end for missing reasoning part with ID "${a.id}". Ensure a "reasoning-start" chunk is sent before any "reasoning-end" chunks.`
5859
5859
  });
5860
- f.providerMetadata = (M = a.providerMetadata) != null ? M : f.providerMetadata, f.state = "done", delete u.activeReasoningParts[a.id], l();
5860
+ p.providerMetadata = (M = a.providerMetadata) != null ? M : p.providerMetadata, p.state = "done", delete u.activeReasoningParts[a.id], l();
5861
5861
  break;
5862
5862
  }
5863
5863
  case "file": {
@@ -5890,14 +5890,14 @@ function vl({
5890
5890
  break;
5891
5891
  }
5892
5892
  case "tool-input-start": {
5893
- const f = u.message.parts.filter(lt);
5893
+ const p = u.message.parts.filter(lt);
5894
5894
  u.partialToolCalls[a.toolCallId] = {
5895
5895
  text: "",
5896
5896
  toolName: a.toolName,
5897
- index: f.length,
5897
+ index: p.length,
5898
5898
  dynamic: a.dynamic,
5899
5899
  title: a.title
5900
- }, a.dynamic ? b({
5900
+ }, a.dynamic ? _({
5901
5901
  toolCallId: a.toolCallId,
5902
5902
  toolName: a.toolName,
5903
5903
  state: "input-streaming",
@@ -5905,7 +5905,7 @@ function vl({
5905
5905
  providerExecuted: a.providerExecuted,
5906
5906
  title: a.title,
5907
5907
  providerMetadata: a.providerMetadata
5908
- }) : m({
5908
+ }) : y({
5909
5909
  toolCallId: a.toolCallId,
5910
5910
  toolName: a.toolName,
5911
5911
  state: "input-streaming",
@@ -5917,34 +5917,34 @@ function vl({
5917
5917
  break;
5918
5918
  }
5919
5919
  case "tool-input-delta": {
5920
- const f = u.partialToolCalls[a.toolCallId];
5921
- if (f == null)
5922
- throw new pe({
5920
+ const p = u.partialToolCalls[a.toolCallId];
5921
+ if (p == null)
5922
+ throw new de({
5923
5923
  chunkType: "tool-input-delta",
5924
5924
  chunkId: a.toolCallId,
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
- f.text += a.inputTextDelta;
5928
- const { value: z } = await Ce(
5929
- f.text
5927
+ p.text += a.inputTextDelta;
5928
+ const { value: O } = await Ee(
5929
+ p.text
5930
5930
  );
5931
- f.dynamic ? b({
5931
+ p.dynamic ? _({
5932
5932
  toolCallId: a.toolCallId,
5933
- toolName: f.toolName,
5933
+ toolName: p.toolName,
5934
5934
  state: "input-streaming",
5935
- input: z,
5936
- title: f.title
5937
- }) : m({
5935
+ input: O,
5936
+ title: p.title
5937
+ }) : y({
5938
5938
  toolCallId: a.toolCallId,
5939
- toolName: f.toolName,
5939
+ toolName: p.toolName,
5940
5940
  state: "input-streaming",
5941
- input: z,
5942
- title: f.title
5941
+ input: O,
5942
+ title: p.title
5943
5943
  }), l();
5944
5944
  break;
5945
5945
  }
5946
5946
  case "tool-input-available": {
5947
- a.dynamic ? b({
5947
+ a.dynamic ? _({
5948
5948
  toolCallId: a.toolCallId,
5949
5949
  toolName: a.toolName,
5950
5950
  state: "input-available",
@@ -5952,7 +5952,7 @@ function vl({
5952
5952
  providerExecuted: a.providerExecuted,
5953
5953
  providerMetadata: a.providerMetadata,
5954
5954
  title: a.title
5955
- }) : m({
5955
+ }) : y({
5956
5956
  toolCallId: a.toolCallId,
5957
5957
  toolName: a.toolName,
5958
5958
  state: "input-available",
@@ -5966,7 +5966,7 @@ function vl({
5966
5966
  break;
5967
5967
  }
5968
5968
  case "tool-input-error": {
5969
- a.dynamic ? b({
5969
+ a.dynamic ? _({
5970
5970
  toolCallId: a.toolCallId,
5971
5971
  toolName: a.toolName,
5972
5972
  state: "output-error",
@@ -5974,7 +5974,7 @@ function vl({
5974
5974
  errorText: a.errorText,
5975
5975
  providerExecuted: a.providerExecuted,
5976
5976
  providerMetadata: a.providerMetadata
5977
- }) : m({
5977
+ }) : y({
5978
5978
  toolCallId: a.toolCallId,
5979
5979
  toolName: a.toolName,
5980
5980
  state: "output-error",
@@ -5987,57 +5987,57 @@ function vl({
5987
5987
  break;
5988
5988
  }
5989
5989
  case "tool-approval-request": {
5990
- const f = h(a.toolCallId);
5991
- f.state = "approval-requested", f.approval = { id: a.approvalId }, l();
5990
+ const p = g(a.toolCallId);
5991
+ p.state = "approval-requested", p.approval = { id: a.approvalId }, l();
5992
5992
  break;
5993
5993
  }
5994
5994
  case "tool-output-denied": {
5995
- const f = h(a.toolCallId);
5996
- f.state = "output-denied", l();
5995
+ const p = g(a.toolCallId);
5996
+ p.state = "output-denied", l();
5997
5997
  break;
5998
5998
  }
5999
5999
  case "tool-output-available": {
6000
- const f = h(a.toolCallId);
6001
- f.type === "dynamic-tool" ? b({
6000
+ const p = g(a.toolCallId);
6001
+ p.type === "dynamic-tool" ? _({
6002
6002
  toolCallId: a.toolCallId,
6003
- toolName: f.toolName,
6003
+ toolName: p.toolName,
6004
6004
  state: "output-available",
6005
- input: f.input,
6005
+ input: p.input,
6006
6006
  output: a.output,
6007
6007
  preliminary: a.preliminary,
6008
6008
  providerExecuted: a.providerExecuted,
6009
- title: f.title
6010
- }) : m({
6009
+ title: p.title
6010
+ }) : y({
6011
6011
  toolCallId: a.toolCallId,
6012
- toolName: gr(f),
6012
+ toolName: gr(p),
6013
6013
  state: "output-available",
6014
- input: f.input,
6014
+ input: p.input,
6015
6015
  output: a.output,
6016
6016
  providerExecuted: a.providerExecuted,
6017
6017
  preliminary: a.preliminary,
6018
- title: f.title
6018
+ title: p.title
6019
6019
  }), l();
6020
6020
  break;
6021
6021
  }
6022
6022
  case "tool-output-error": {
6023
- const f = h(a.toolCallId);
6024
- f.type === "dynamic-tool" ? b({
6023
+ const p = g(a.toolCallId);
6024
+ p.type === "dynamic-tool" ? _({
6025
6025
  toolCallId: a.toolCallId,
6026
- toolName: f.toolName,
6026
+ toolName: p.toolName,
6027
6027
  state: "output-error",
6028
- input: f.input,
6028
+ input: p.input,
6029
6029
  errorText: a.errorText,
6030
6030
  providerExecuted: a.providerExecuted,
6031
- title: f.title
6032
- }) : m({
6031
+ title: p.title
6032
+ }) : y({
6033
6033
  toolCallId: a.toolCallId,
6034
- toolName: gr(f),
6034
+ toolName: gr(p),
6035
6035
  state: "output-error",
6036
- input: f.input,
6037
- rawInput: f.rawInput,
6036
+ input: p.input,
6037
+ rawInput: p.rawInput,
6038
6038
  errorText: a.errorText,
6039
6039
  providerExecuted: a.providerExecuted,
6040
- title: f.title
6040
+ title: p.title
6041
6041
  }), l();
6042
6042
  break;
6043
6043
  }
@@ -6050,15 +6050,15 @@ function vl({
6050
6050
  break;
6051
6051
  }
6052
6052
  case "start": {
6053
- a.messageId != null && (u.message.id = a.messageId), await N(a.messageMetadata), (a.messageId != null || a.messageMetadata != null) && l();
6053
+ a.messageId != null && (u.message.id = a.messageId), await A(a.messageMetadata), (a.messageId != null || a.messageMetadata != null) && l();
6054
6054
  break;
6055
6055
  }
6056
6056
  case "finish": {
6057
- a.finishReason != null && (u.finishReason = a.finishReason), await N(a.messageMetadata), a.messageMetadata != null && l();
6057
+ a.finishReason != null && (u.finishReason = a.finishReason), await A(a.messageMetadata), a.messageMetadata != null && l();
6058
6058
  break;
6059
6059
  }
6060
6060
  case "message-metadata": {
6061
- await N(a.messageMetadata), a.messageMetadata != null && l();
6061
+ await A(a.messageMetadata), a.messageMetadata != null && l();
6062
6062
  break;
6063
6063
  }
6064
6064
  case "error": {
@@ -6071,15 +6071,15 @@ function vl({
6071
6071
  value: a.data,
6072
6072
  schema: r[a.type]
6073
6073
  });
6074
- const f = a;
6075
- if (f.transient) {
6076
- i == null || i(f);
6074
+ const p = a;
6075
+ if (p.transient) {
6076
+ i == null || i(p);
6077
6077
  break;
6078
6078
  }
6079
- const z = f.id != null ? u.message.parts.find(
6080
- (j) => f.type === j.type && f.id === j.id
6079
+ const O = p.id != null ? u.message.parts.find(
6080
+ (T) => p.type === T.type && p.id === T.id
6081
6081
  ) : void 0;
6082
- z != null ? z.data = f.data : u.message.parts.push(f), i == null || i(f), l();
6082
+ O != null ? O.data = p.data : u.message.parts.push(p), i == null || i(p), l();
6083
6083
  }
6084
6084
  }
6085
6085
  c.enqueue(a);
@@ -6105,11 +6105,11 @@ async function Ml({
6105
6105
  r.releaseLock();
6106
6106
  }
6107
6107
  }
6108
- Ee({
6108
+ Oe({
6109
6109
  prefix: "aitxt",
6110
6110
  size: 24
6111
6111
  });
6112
- Ee({ prefix: "aiobj", size: 24 });
6112
+ Oe({ prefix: "aiobj", size: 24 });
6113
6113
  var _l = class {
6114
6114
  constructor() {
6115
6115
  this.queue = [], this.isProcessing = !1;
@@ -6133,7 +6133,7 @@ var _l = class {
6133
6133
  });
6134
6134
  }
6135
6135
  };
6136
- Ee({ prefix: "aiobj", size: 24 });
6136
+ Oe({ prefix: "aiobj", size: 24 });
6137
6137
  async function Nl(e) {
6138
6138
  if (e == null)
6139
6139
  return [];
@@ -6175,8 +6175,8 @@ var bl = class {
6175
6175
  }) {
6176
6176
  var r, n, o, s, i;
6177
6177
  const a = await te(this.body), c = await te(this.headers), u = await te(this.credentials), l = {
6178
- ...ce(c),
6179
- ...ce(t.headers)
6178
+ ...ue(c),
6179
+ ...ue(t.headers)
6180
6180
  }, d = await ((r = this.prepareSendMessagesRequest) == null ? void 0 : r.call(this, {
6181
6181
  api: this.api,
6182
6182
  id: t.chatId,
@@ -6187,40 +6187,40 @@ var bl = class {
6187
6187
  requestMetadata: t.metadata,
6188
6188
  trigger: t.trigger,
6189
6189
  messageId: t.messageId
6190
- })), y = (n = d == null ? void 0 : d.api) != null ? n : this.api, g = (d == null ? void 0 : d.headers) !== void 0 ? ce(d.headers) : l, M = (d == null ? void 0 : d.body) !== void 0 ? d.body : {
6190
+ })), I = (n = d == null ? void 0 : d.api) != null ? n : this.api, m = (d == null ? void 0 : d.headers) !== void 0 ? ue(d.headers) : l, M = (d == null ? void 0 : d.body) !== void 0 ? d.body : {
6191
6191
  ...a,
6192
6192
  ...t.body,
6193
6193
  id: t.chatId,
6194
6194
  messages: t.messages,
6195
6195
  trigger: t.trigger,
6196
6196
  messageId: t.messageId
6197
- }, h = (o = d == null ? void 0 : d.credentials) != null ? o : u, b = await ((s = this.fetch) != null ? s : globalThis.fetch)(y, {
6197
+ }, g = (o = d == null ? void 0 : d.credentials) != null ? o : u, _ = await ((s = this.fetch) != null ? s : globalThis.fetch)(I, {
6198
6198
  method: "POST",
6199
6199
  headers: ur(
6200
6200
  {
6201
6201
  "Content-Type": "application/json",
6202
- ...g
6202
+ ...m
6203
6203
  },
6204
6204
  `ai-sdk/${fr}`,
6205
6205
  ir()
6206
6206
  ),
6207
6207
  body: JSON.stringify(M),
6208
- credentials: h,
6208
+ credentials: g,
6209
6209
  signal: e
6210
6210
  });
6211
- if (!b.ok)
6211
+ if (!_.ok)
6212
6212
  throw new Error(
6213
- (i = await b.text()) != null ? i : "Failed to fetch the chat response."
6213
+ (i = await _.text()) != null ? i : "Failed to fetch the chat response."
6214
6214
  );
6215
- if (!b.body)
6215
+ if (!_.body)
6216
6216
  throw new Error("The response body is empty.");
6217
- return this.processResponseStream(b.body);
6217
+ return this.processResponseStream(_.body);
6218
6218
  }
6219
6219
  async reconnectToStream(e) {
6220
6220
  var t, r, n, o, s;
6221
6221
  const i = await te(this.body), a = await te(this.headers), c = await te(this.credentials), u = {
6222
- ...ce(a),
6223
- ...ce(e.headers)
6222
+ ...ue(a),
6223
+ ...ue(e.headers)
6224
6224
  }, l = await ((t = this.prepareReconnectToStreamRequest) == null ? void 0 : t.call(this, {
6225
6225
  api: this.api,
6226
6226
  id: e.chatId,
@@ -6228,24 +6228,24 @@ var bl = class {
6228
6228
  headers: u,
6229
6229
  credentials: c,
6230
6230
  requestMetadata: e.metadata
6231
- })), d = (r = l == null ? void 0 : l.api) != null ? r : `${this.api}/${e.chatId}/stream`, y = (l == null ? void 0 : l.headers) !== void 0 ? ce(l.headers) : u, g = (n = l == null ? void 0 : l.credentials) != null ? n : c, h = await ((o = this.fetch) != null ? o : globalThis.fetch)(d, {
6231
+ })), d = (r = l == null ? void 0 : l.api) != null ? r : `${this.api}/${e.chatId}/stream`, I = (l == null ? void 0 : l.headers) !== void 0 ? ue(l.headers) : u, m = (n = l == null ? void 0 : l.credentials) != null ? n : c, g = await ((o = this.fetch) != null ? o : globalThis.fetch)(d, {
6232
6232
  method: "GET",
6233
6233
  headers: ur(
6234
- y,
6234
+ I,
6235
6235
  `ai-sdk/${fr}`,
6236
6236
  ir()
6237
6237
  ),
6238
- credentials: g
6238
+ credentials: m
6239
6239
  });
6240
- if (h.status === 204)
6240
+ if (g.status === 204)
6241
6241
  return null;
6242
- if (!h.ok)
6242
+ if (!g.ok)
6243
6243
  throw new Error(
6244
- (s = await h.text()) != null ? s : "Failed to fetch the chat response."
6244
+ (s = await g.text()) != null ? s : "Failed to fetch the chat response."
6245
6245
  );
6246
- if (!h.body)
6246
+ if (!g.body)
6247
6247
  throw new Error("The response body is empty.");
6248
- return this.processResponseStream(h.body);
6248
+ return this.processResponseStream(g.body);
6249
6249
  }
6250
6250
  }, Fn = class extends bl {
6251
6251
  constructor(e = {}) {
@@ -6279,65 +6279,65 @@ 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) => {
6283
- var g, M, h, m;
6282
+ this.activeResponse = void 0, this.jobExecutor = new _l(), this.sendMessage = async (d, I) => {
6283
+ var m, M, g, y;
6284
6284
  if (d == null) {
6285
6285
  await this.makeRequest({
6286
6286
  trigger: "submit-message",
6287
- messageId: (g = this.lastMessage) == null ? void 0 : g.id,
6288
- ...y
6287
+ messageId: (m = this.lastMessage) == null ? void 0 : m.id,
6288
+ ...I
6289
6289
  });
6290
6290
  return;
6291
6291
  }
6292
- let b;
6293
- if ("text" in d || "files" in d ? b = {
6292
+ let _;
6293
+ if ("text" in d || "files" in d ? _ = {
6294
6294
  parts: [
6295
6295
  ...Array.isArray(d.files) ? d.files : await Nl(d.files),
6296
6296
  ..."text" in d && d.text != null ? [{ type: "text", text: d.text }] : []
6297
6297
  ]
6298
- } : b = d, d.messageId != null) {
6299
- const N = this.state.messages.findIndex(
6300
- (f) => f.id === d.messageId
6298
+ } : _ = d, d.messageId != null) {
6299
+ const A = this.state.messages.findIndex(
6300
+ (p) => p.id === d.messageId
6301
6301
  );
6302
- if (N === -1)
6302
+ if (A === -1)
6303
6303
  throw new Error(`message with id ${d.messageId} not found`);
6304
- if (this.state.messages[N].role !== "user")
6304
+ if (this.state.messages[A].role !== "user")
6305
6305
  throw new Error(
6306
6306
  `message with id ${d.messageId} is not a user message`
6307
6307
  );
6308
- this.state.messages = this.state.messages.slice(0, N + 1), this.state.replaceMessage(N, {
6309
- ...b,
6308
+ this.state.messages = this.state.messages.slice(0, A + 1), this.state.replaceMessage(A, {
6309
+ ..._,
6310
6310
  id: d.messageId,
6311
- role: (M = b.role) != null ? M : "user",
6311
+ role: (M = _.role) != null ? M : "user",
6312
6312
  metadata: d.metadata
6313
6313
  });
6314
6314
  } else
6315
6315
  this.state.pushMessage({
6316
- ...b,
6317
- id: (h = b.id) != null ? h : this.generateId(),
6318
- role: (m = b.role) != null ? m : "user",
6316
+ ..._,
6317
+ id: (g = _.id) != null ? g : this.generateId(),
6318
+ role: (y = _.role) != null ? y : "user",
6319
6319
  metadata: d.metadata
6320
6320
  });
6321
6321
  await this.makeRequest({
6322
6322
  trigger: "submit-message",
6323
6323
  messageId: d.messageId,
6324
- ...y
6324
+ ...I
6325
6325
  });
6326
6326
  }, this.regenerate = async ({
6327
6327
  messageId: d,
6328
- ...y
6328
+ ...I
6329
6329
  } = {}) => {
6330
- const g = d == null ? this.state.messages.length - 1 : this.state.messages.findIndex((M) => M.id === d);
6331
- if (g === -1)
6330
+ const m = d == null ? this.state.messages.length - 1 : this.state.messages.findIndex((M) => M.id === d);
6331
+ if (m === -1)
6332
6332
  throw new Error(`message ${d} not found`);
6333
6333
  this.state.messages = this.state.messages.slice(
6334
6334
  0,
6335
6335
  // if the message is a user message, we need to include it in the request:
6336
- this.messages[g].role === "assistant" ? g : g + 1
6336
+ this.messages[m].role === "assistant" ? m : m + 1
6337
6337
  ), await this.makeRequest({
6338
6338
  trigger: "regenerate-message",
6339
6339
  messageId: d,
6340
- ...y
6340
+ ...I
6341
6341
  });
6342
6342
  }, this.resumeStream = async (d = {}) => {
6343
6343
  await this.makeRequest({ trigger: "resume-stream", ...d });
@@ -6345,37 +6345,37 @@ var bl = class {
6345
6345
  this.status === "error" && (this.state.error = void 0, this.setStatus({ status: "ready" }));
6346
6346
  }, this.addToolApprovalResponse = async ({
6347
6347
  id: d,
6348
- approved: y,
6349
- reason: g
6348
+ approved: I,
6349
+ reason: m
6350
6350
  }) => this.jobExecutor.run(async () => {
6351
- var M, h;
6352
- const m = this.state.messages, b = m[m.length - 1], N = (f) => dt(f) && f.state === "approval-requested" && f.approval.id === d ? {
6353
- ...f,
6351
+ var M, g;
6352
+ const y = this.state.messages, _ = y[y.length - 1], A = (p) => dt(p) && p.state === "approval-requested" && p.approval.id === d ? {
6353
+ ...p,
6354
6354
  state: "approval-responded",
6355
- approval: { id: d, approved: y, reason: g }
6356
- } : f;
6357
- this.state.replaceMessage(m.length - 1, {
6358
- ...b,
6359
- parts: b.parts.map(N)
6360
- }), this.activeResponse && (this.activeResponse.state.message.parts = this.activeResponse.state.message.parts.map(N)), this.status !== "streaming" && this.status !== "submitted" && ((M = this.sendAutomaticallyWhen) != null && M.call(this, { messages: this.state.messages })) && this.makeRequest({
6355
+ approval: { id: d, approved: I, reason: m }
6356
+ } : p;
6357
+ this.state.replaceMessage(y.length - 1, {
6358
+ ..._,
6359
+ parts: _.parts.map(A)
6360
+ }), this.activeResponse && (this.activeResponse.state.message.parts = this.activeResponse.state.message.parts.map(A)), this.status !== "streaming" && this.status !== "submitted" && ((M = this.sendAutomaticallyWhen) != null && M.call(this, { messages: this.state.messages })) && this.makeRequest({
6361
6361
  trigger: "submit-message",
6362
- messageId: (h = this.lastMessage) == null ? void 0 : h.id
6362
+ messageId: (g = this.lastMessage) == null ? void 0 : g.id
6363
6363
  });
6364
6364
  }), this.addToolOutput = async ({
6365
6365
  state: d = "output-available",
6366
- tool: y,
6367
- toolCallId: g,
6366
+ tool: I,
6367
+ toolCallId: m,
6368
6368
  output: M,
6369
- errorText: h
6369
+ errorText: g
6370
6370
  }) => this.jobExecutor.run(async () => {
6371
- var m, b;
6372
- const N = this.state.messages, f = N[N.length - 1], z = (j) => dt(j) && j.toolCallId === g ? { ...j, state: d, output: M, errorText: h } : j;
6373
- this.state.replaceMessage(N.length - 1, {
6374
- ...f,
6375
- parts: f.parts.map(z)
6376
- }), this.activeResponse && (this.activeResponse.state.message.parts = this.activeResponse.state.message.parts.map(z)), this.status !== "streaming" && this.status !== "submitted" && ((m = this.sendAutomaticallyWhen) != null && m.call(this, { messages: this.state.messages })) && this.makeRequest({
6371
+ var y, _;
6372
+ const A = this.state.messages, p = A[A.length - 1], O = (T) => dt(T) && T.toolCallId === m ? { ...T, state: d, output: M, errorText: g } : T;
6373
+ this.state.replaceMessage(A.length - 1, {
6374
+ ...p,
6375
+ parts: p.parts.map(O)
6376
+ }), this.activeResponse && (this.activeResponse.state.message.parts = this.activeResponse.state.message.parts.map(O)), this.status !== "streaming" && this.status !== "submitted" && ((y = this.sendAutomaticallyWhen) != null && y.call(this, { messages: this.state.messages })) && this.makeRequest({
6377
6377
  trigger: "submit-message",
6378
- messageId: (b = this.lastMessage) == null ? void 0 : b.id
6378
+ messageId: (_ = this.lastMessage) == null ? void 0 : _.id
6379
6379
  });
6380
6380
  }), this.addToolResult = this.addToolOutput, this.stop = async () => {
6381
6381
  var d;
@@ -6421,53 +6421,53 @@ var bl = class {
6421
6421
  var s, i, a, c;
6422
6422
  this.setStatus({ status: "submitted", error: void 0 });
6423
6423
  const u = this.lastMessage;
6424
- let l = !1, d = !1, y = !1;
6424
+ let l = !1, d = !1, I = !1;
6425
6425
  try {
6426
- const g = {
6426
+ const m = {
6427
6427
  state: yl({
6428
6428
  lastMessage: this.state.snapshot(u),
6429
6429
  messageId: this.generateId()
6430
6430
  }),
6431
6431
  abortController: new AbortController()
6432
6432
  };
6433
- g.abortController.signal.addEventListener("abort", () => {
6433
+ m.abortController.signal.addEventListener("abort", () => {
6434
6434
  l = !0;
6435
- }), this.activeResponse = g;
6435
+ }), this.activeResponse = m;
6436
6436
  let M;
6437
6437
  if (e === "resume-stream") {
6438
- const m = await this.transport.reconnectToStream({
6438
+ const y = await this.transport.reconnectToStream({
6439
6439
  chatId: this.id,
6440
6440
  metadata: t,
6441
6441
  headers: r,
6442
6442
  body: n
6443
6443
  });
6444
- if (m == null) {
6444
+ if (y == null) {
6445
6445
  this.setStatus({ status: "ready" });
6446
6446
  return;
6447
6447
  }
6448
- M = m;
6448
+ M = y;
6449
6449
  } else
6450
6450
  M = await this.transport.sendMessages({
6451
6451
  chatId: this.id,
6452
6452
  messages: this.state.messages,
6453
- abortSignal: g.abortController.signal,
6453
+ abortSignal: m.abortController.signal,
6454
6454
  metadata: t,
6455
6455
  headers: r,
6456
6456
  body: n,
6457
6457
  trigger: e,
6458
6458
  messageId: o
6459
6459
  });
6460
- const h = (m) => (
6460
+ const g = (y) => (
6461
6461
  // serialize the job execution to avoid race conditions:
6462
6462
  this.jobExecutor.run(
6463
- () => m({
6464
- state: g.state,
6463
+ () => y({
6464
+ state: m.state,
6465
6465
  write: () => {
6466
- var b;
6467
- this.setStatus({ status: "streaming" }), g.state.message.id === ((b = this.lastMessage) == null ? void 0 : b.id) ? this.state.replaceMessage(
6466
+ var _;
6467
+ this.setStatus({ status: "streaming" }), m.state.message.id === ((_ = this.lastMessage) == null ? void 0 : _.id) ? this.state.replaceMessage(
6468
6468
  this.state.messages.length - 1,
6469
- g.state.message
6470
- ) : this.state.pushMessage(g.state.message);
6469
+ m.state.message
6470
+ ) : this.state.pushMessage(m.state.message);
6471
6471
  }
6472
6472
  })
6473
6473
  )
@@ -6479,19 +6479,19 @@ var bl = class {
6479
6479
  onData: this.onData,
6480
6480
  messageMetadataSchema: this.messageMetadataSchema,
6481
6481
  dataPartSchemas: this.dataPartSchemas,
6482
- runUpdateMessageJob: h,
6483
- onError: (m) => {
6484
- throw m;
6482
+ runUpdateMessageJob: g,
6483
+ onError: (y) => {
6484
+ throw y;
6485
6485
  }
6486
6486
  }),
6487
- onError: (m) => {
6488
- throw m;
6487
+ onError: (y) => {
6488
+ throw y;
6489
6489
  }
6490
6490
  }), this.setStatus({ status: "ready" });
6491
- } catch (g) {
6492
- if (l || g.name === "AbortError")
6491
+ } catch (m) {
6492
+ if (l || m.name === "AbortError")
6493
6493
  return l = !0, this.setStatus({ status: "ready" }), null;
6494
- y = !0, g instanceof TypeError && (g.message.toLowerCase().includes("fetch") || g.message.toLowerCase().includes("network")) && (d = !0), this.onError && g instanceof Error && this.onError(g), this.setStatus({ status: "error", error: g });
6494
+ I = !0, m instanceof TypeError && (m.message.toLowerCase().includes("fetch") || m.message.toLowerCase().includes("network")) && (d = !0), this.onError && m instanceof Error && this.onError(m), this.setStatus({ status: "error", error: m });
6495
6495
  } finally {
6496
6496
  try {
6497
6497
  (i = this.onFinish) == null || i.call(this, {
@@ -6499,15 +6499,15 @@ var bl = class {
6499
6499
  messages: this.state.messages,
6500
6500
  isAbort: l,
6501
6501
  isDisconnect: d,
6502
- isError: y,
6502
+ isError: I,
6503
6503
  finishReason: (s = this.activeResponse) == null ? void 0 : s.state.finishReason
6504
6504
  });
6505
- } catch (g) {
6506
- console.error(g);
6505
+ } catch (m) {
6506
+ console.error(m);
6507
6507
  }
6508
6508
  this.activeResponse = void 0;
6509
6509
  }
6510
- (a = this.sendAutomaticallyWhen) != null && a.call(this, { messages: this.state.messages }) && !y && await this.makeRequest({
6510
+ (a = this.sendAutomaticallyWhen) != null && a.call(this, { messages: this.state.messages }) && !I && await this.makeRequest({
6511
6511
  trigger: "submit-message",
6512
6512
  messageId: (c = this.lastMessage) == null ? void 0 : c.id,
6513
6513
  metadata: t,
@@ -6584,7 +6584,7 @@ const hr = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), jl = (
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 be = {
6587
+ var Ne = {
6588
6588
  xmlns: "http://www.w3.org/2000/svg",
6589
6589
  width: 24,
6590
6590
  height: 24,
@@ -6608,18 +6608,18 @@ const Ol = ({
6608
6608
  "absolute-stroke-width": n,
6609
6609
  strokeWidth: o,
6610
6610
  "stroke-width": s,
6611
- size: i = be.width,
6612
- color: a = be.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
- ...be,
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 || be["stroke-width"]) * 24 / Number(i) : o || s || be["stroke-width"],
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
6623
  class: Tl(
6624
6624
  "lucide",
6625
6625
  c.class,
@@ -6663,51 +6663,21 @@ const El = Vn("arrow-right", [
6663
6663
  const Cl = Vn("x", [
6664
6664
  ["path", { d: "M18 6 6 18", key: "1bl5f8" }],
6665
6665
  ["path", { d: "m6 6 12 12", key: "d8bk6v" }]
6666
- ]);
6667
- function kl() {
6668
- const e = ee(0), t = ee(!0), r = [
6669
- "Ask me anything you're curious about, and I will help you understand it clearly.",
6670
- "Have questions? I’m here to help make things easier.",
6671
- "Need clarity? Let me explain it in simple terms.",
6672
- "I can assist you with anything you're unsure about.",
6673
- "Don't hesitate—I'm just a question away!"
6674
- ];
6675
- return Bn(() => {
6676
- setInterval(() => {
6677
- t.value = !1, setTimeout(() => {
6678
- e.value = (e.value + 1) % (r == null ? void 0 : r.length), t.value = !0;
6679
- }, 300);
6680
- }, 6e3);
6681
- }), {
6682
- messageIndex: e,
6683
- showContent: t,
6684
- messagesSuggest: r,
6685
- getColSpanClass: (o) => {
6686
- const s = [
6687
- "md:col-span-5",
6688
- "md:col-span-7",
6689
- "md:col-span-8",
6690
- "md:col-span-4"
6691
- ];
6692
- return s[o % (s == null ? void 0 : s.length)];
6693
- }
6694
- };
6695
- }
6696
- const Sl = { class: "z-[1000] w-fit flex flex-col items-end relative gci-chatbot" }, xl = { class: "flex items-center justify-between" }, Zl = {
6666
+ ]), kl = { class: "z-[1000] w-fit flex flex-col items-end relative gci-chatbot" }, Sl = { class: "flex items-center justify-between" }, xl = {
6697
6667
  key: 0,
6698
6668
  class: "chat-empty-state"
6699
- }, Pl = { class: "chat-empty-heading" }, Ll = { class: "chat-empty-greeting" }, Rl = {
6669
+ }, Zl = { class: "chat-empty-heading" }, Pl = { class: "chat-empty-greeting" }, Ll = {
6700
6670
  key: 0,
6701
6671
  class: "flex justify-end"
6702
- }, $l = { class: "message-user" }, Ul = {
6672
+ }, Rl = { class: "message-user" }, $l = {
6703
6673
  key: 1,
6704
6674
  class: "message-assistant"
6705
- }, Yl = {
6675
+ }, Ul = {
6706
6676
  key: 1,
6707
6677
  src: to,
6708
6678
  alt: "",
6709
6679
  class: "loading-message"
6710
- }, Ql = ["disabled"], Jl = { class: "md:w-fit md:flex-row-reverse w-full min-h-[67px] flex md:justify-end justify-center items-center md:gap-[8px] gap-[4px] mt-5" }, Fl = { class: "tooltip bg-tooltip-chatbox min-h-[67px] w-[98%] rounded-[12px] relative flex flex-col" }, Vl = { class: "px-[9px] py-[3px] flex-center w-full flex-1" }, Bl = { class: "text-[12px] font-[400] text-[#000F6D] italic" }, Gl = /* @__PURE__ */ Gn({
6680
+ }, Yl = ["disabled"], Ql = { class: "md:w-fit md:flex-row-reverse w-full min-h-[67px] flex md:justify-end justify-center items-center md:gap-[8px] gap-[4px] mt-5" }, Jl = { class: "tooltip bg-tooltip-chatbox min-h-[67px] w-[98%] rounded-[12px] relative flex flex-col" }, Fl = { class: "px-[9px] py-[3px] flex-center w-full flex-1" }, Vl = { class: "text-[12px] font-[400] text-[#000F6D] italic" }, Bl = /* @__PURE__ */ Bn({
6711
6681
  __name: "ChatbotComponent",
6712
6682
  props: {
6713
6683
  clientId: { type: String, default: "" },
@@ -6716,121 +6686,133 @@ const Sl = { class: "z-[1000] w-fit flex flex-col items-end relative gci-chatbot
6716
6686
  },
6717
6687
  emits: ["update:modelValue"],
6718
6688
  setup(e, { emit: t }) {
6719
- const { messageIndex: r, showContent: n, messagesSuggest: o, getColSpanClass: s } = kl(), i = e, a = ee(""), c = ee(!1), u = ee(null), l = ee(!1), d = new wl({
6689
+ const r = e, n = ee(""), o = ee(!1), s = ee(null), i = ee(!1), a = ee(0), c = ee(!0), u = [
6690
+ "Ask me anything you're curious about, and I will help you understand it clearly.",
6691
+ "Have questions? I’m here to help make things easier.",
6692
+ "Need clarity? Let me explain it in simple terms.",
6693
+ "I can assist you with anything you're unsure about.",
6694
+ "Don't hesitate—I'm just a question away!"
6695
+ ], l = new wl({
6720
6696
  transport: new Fn({
6721
6697
  api: "https://ai-chat-backend.dev02.dtsmart.dev/api/chat",
6722
6698
  body: {
6723
- client_id: i.clientId,
6724
- mcp_token: i.token
6699
+ client_id: r.clientId,
6700
+ mcp_token: r.token
6725
6701
  }
6726
6702
  })
6727
- }), y = async (h) => {
6703
+ }), d = async (M) => {
6728
6704
  try {
6729
- if (!a.value.trim())
6705
+ if (!n.value.trim())
6730
6706
  return;
6731
- const m = a.value.trim();
6732
- a.value = "", l.value = !0, h.preventDefault(), await d.sendMessage({ text: m });
6733
- } catch (m) {
6734
- console.error(m);
6707
+ const g = n.value.trim();
6708
+ n.value = "", i.value = !0, M.preventDefault(), await l.sendMessage({ text: g });
6709
+ } catch (g) {
6710
+ console.error(g);
6735
6711
  } finally {
6736
- l.value = !1;
6712
+ i.value = !1;
6737
6713
  }
6738
- }, g = () => {
6739
- c.value = !c.value;
6740
- }, M = () => {
6741
- c.value = !1, d.messages = [];
6714
+ }, I = () => {
6715
+ o.value = !o.value;
6716
+ }, m = () => {
6717
+ o.value = !1, l.messages = [];
6742
6718
  };
6743
- return Wn(
6744
- () => d.messages,
6719
+ return Gn(
6720
+ () => l.messages,
6745
6721
  async () => {
6746
- var h;
6747
- await Hn(), (h = u.value) == null || h.scrollTo({
6748
- top: u.value.scrollHeight,
6722
+ var M;
6723
+ await Wn(), (M = s.value) == null || M.scrollTo({
6724
+ top: s.value.scrollHeight,
6749
6725
  behavior: "smooth"
6750
6726
  });
6751
6727
  },
6752
6728
  { deep: !0 }
6753
- ), (h, m) => {
6754
- var b;
6755
- return B(), W(_e, null, [
6756
- c.value ? (B(), W("div", {
6729
+ ), Hn(() => {
6730
+ setInterval(() => {
6731
+ c.value = !1, setTimeout(() => {
6732
+ a.value = (a.value + 1) % (u == null ? void 0 : u.length), c.value = !0;
6733
+ }, 300);
6734
+ }, 6e3);
6735
+ }), (M, g) => {
6736
+ var y;
6737
+ return B(), W(Me, null, [
6738
+ o.value ? (B(), W("div", {
6757
6739
  key: 0,
6758
6740
  class: "bg-[#ffffff00] absolute w-full h-full",
6759
- onClick: m[0] || (m[0] = (N) => c.value = !1)
6760
- })) : Ne("", !0),
6761
- w("div", Sl, [
6762
- w("div", {
6763
- class: Xn(["ai-card chat-popup transition-all duration-7", { "opacity-0": !c.value, "opacity-100": c.value }])
6741
+ onClick: g[0] || (g[0] = (_) => o.value = !1)
6742
+ })) : _e("", !0),
6743
+ z("div", kl, [
6744
+ z("div", {
6745
+ class: Xn(["ai-card chat-popup transition-all duration-7", { "opacity-0": !o.value, "opacity-100": o.value }])
6764
6746
  }, [
6765
- w("div", xl, [
6766
- m[2] || (m[2] = w("p", { class: "ai-hello" }, "Hi, I’m Boko AI", -1)),
6767
- w("button", {
6747
+ z("div", Sl, [
6748
+ g[2] || (g[2] = z("p", { class: "ai-hello" }, "Hi, I’m Boko AI", -1)),
6749
+ z("button", {
6768
6750
  class: "ai-close",
6769
- onClick: M
6751
+ onClick: m
6770
6752
  }, [
6771
- He(ie(Cl))
6753
+ He(Ce(Cl))
6772
6754
  ])
6773
6755
  ]),
6774
- w("div", {
6756
+ z("div", {
6775
6757
  ref_key: "scrollRef",
6776
- ref: u,
6758
+ ref: s,
6777
6759
  class: "chat-popup-message"
6778
6760
  }, [
6779
- ie(d).messages.length === 0 ? (B(), W("div", Zl, [
6780
- w("div", Pl, [
6781
- w("p", Ll, " Hello " + ke(e.clientId), 1),
6782
- m[3] || (m[3] = w("p", { class: "chat-empty-title" }, " How Can I Help You Today ? ", -1))
6761
+ Ce(l).messages.length === 0 ? (B(), W("div", xl, [
6762
+ z("div", Zl, [
6763
+ z("p", Pl, " Hello " + ke(e.clientId), 1),
6764
+ g[3] || (g[3] = z("p", { class: "chat-empty-title" }, " How Can I Help You Today ? ", -1))
6783
6765
  ]),
6784
- m[4] || (m[4] = w("p", { class: "chat-empty-description" }, " I’m Boko, your friendly assistant. ", -1)),
6785
- m[5] || (m[5] = w("p", { class: "chat-empty-description" }, " Here to help — anytime you’re ready! ", -1))
6786
- ])) : Ne("", !0),
6787
- (B(!0), W(_e, null, bt(ie(d).messages, (N, f) => (B(), W("div", {
6788
- key: N.id ?? f,
6766
+ g[4] || (g[4] = z("p", { class: "chat-empty-description" }, " I’m Boko, your friendly assistant. ", -1)),
6767
+ g[5] || (g[5] = z("p", { class: "chat-empty-description" }, " Here to help — anytime you’re ready! ", -1))
6768
+ ])) : _e("", !0),
6769
+ (B(!0), W(Me, null, bt(Ce(l).messages, (_, A) => (B(), W("div", {
6770
+ key: _.id ?? A,
6789
6771
  class: "mb-3"
6790
6772
  }, [
6791
- (B(!0), W(_e, null, bt(N == null ? void 0 : N.parts, (z, j) => (B(), W(_e, {
6792
- key: `${N.id}-${z.type}-${j}`
6773
+ (B(!0), W(Me, null, bt(_ == null ? void 0 : _.parts, (p, O) => (B(), W(Me, {
6774
+ key: `${_.id}-${p.type}-${O}`
6793
6775
  }, [
6794
- (z == null ? void 0 : z.type) === "text" ? (B(), W(_e, { key: 0 }, [
6795
- N.role === "user" ? (B(), W("div", Rl, [
6796
- w("div", $l, [
6797
- w("div", null, ke(z == null ? void 0 : z.text), 1)
6776
+ (p == null ? void 0 : p.type) === "text" ? (B(), W(Me, { key: 0 }, [
6777
+ _.role === "user" ? (B(), W("div", Ll, [
6778
+ z("div", Rl, [
6779
+ z("div", null, ke(p == null ? void 0 : p.text), 1)
6798
6780
  ])
6799
- ])) : (B(), W("div", Ul, [
6800
- w("div", null, ke(z == null ? void 0 : z.text), 1)
6781
+ ])) : (B(), W("div", $l, [
6782
+ z("div", null, ke(p == null ? void 0 : p.text), 1)
6801
6783
  ]))
6802
- ], 64)) : Ne("", !0)
6784
+ ], 64)) : _e("", !0)
6803
6785
  ], 64))), 128))
6804
6786
  ]))), 128)),
6805
- l.value ? (B(), W("img", Yl)) : Ne("", !0)
6787
+ i.value ? (B(), W("img", Ul)) : _e("", !0)
6806
6788
  ], 512),
6807
- w("form", {
6808
- onSubmit: y,
6789
+ z("form", {
6790
+ onSubmit: d,
6809
6791
  class: "ai-input-wrap"
6810
6792
  }, [
6811
- At(w("input", {
6793
+ At(z("input", {
6812
6794
  class: "ai-input",
6813
- "onUpdate:modelValue": m[1] || (m[1] = (N) => a.value = N),
6795
+ "onUpdate:modelValue": g[1] || (g[1] = (_) => n.value = _),
6814
6796
  placeholder: "Ask me anything…"
6815
6797
  }, null, 512), [
6816
- [qn, a.value]
6798
+ [qn, n.value]
6817
6799
  ]),
6818
- w("button", {
6800
+ z("button", {
6819
6801
  class: "ai-send",
6820
- disabled: !a.value || ((b = a.value) == null ? void 0 : b.length) == 0 || l.value
6802
+ disabled: !n.value || ((y = n.value) == null ? void 0 : y.length) == 0 || i.value
6821
6803
  }, [
6822
- He(ie(El), { class: "w-5 h-5 text-white" })
6823
- ], 8, Ql)
6804
+ He(Ce(El), { class: "w-5 h-5 text-white" })
6805
+ ], 8, Yl)
6824
6806
  ], 32)
6825
6807
  ], 2),
6826
- w("div", Jl, [
6808
+ z("div", Ql, [
6827
6809
  He(zt, { name: "fade-slide" }, {
6828
6810
  default: wt(() => [
6829
- w("span", {
6830
- onClick: g,
6811
+ z("span", {
6812
+ onClick: I,
6831
6813
  class: "cursor-pointer animate-float transition-all duration-300 hover:scale-105 translate-y-[10px]"
6832
- }, [...m[6] || (m[6] = [
6833
- w("img", {
6814
+ }, [...g[6] || (g[6] = [
6815
+ z("img", {
6834
6816
  src: ro,
6835
6817
  alt: ""
6836
6818
  }, null, -1)
@@ -6838,51 +6820,51 @@ const Sl = { class: "z-[1000] w-fit flex flex-col items-end relative gci-chatbot
6838
6820
  ]),
6839
6821
  _: 1
6840
6822
  }),
6841
- c.value ? Ne("", !0) : (B(), Kn(zt, {
6823
+ o.value ? _e("", !0) : (B(), Kn(zt, {
6842
6824
  key: 0,
6843
6825
  name: "fade-slide"
6844
6826
  }, {
6845
6827
  default: wt(() => [
6846
- At(w("div", {
6828
+ At(z("div", {
6847
6829
  class: "content flex-1 flex justify-end items-center cursor-pointer",
6848
- onClick: g
6830
+ onClick: I
6849
6831
  }, [
6850
- w("div", Fl, [
6851
- m[7] || (m[7] = w("span", { class: "absolute w-[30px] md:left-[93%] md:rotate-180 left-[-10px] md:top-[20px] top-[30px] text-[#E9E4FF] md:text-[#d9e6ff]" }, [
6852
- w("svg", {
6832
+ z("div", Jl, [
6833
+ g[7] || (g[7] = z("span", { class: "absolute w-[30px] md:left-[93%] md:rotate-180 left-[-10px] md:top-[20px] top-[30px] text-[#E9E4FF] md:text-[#d9e6ff]" }, [
6834
+ z("svg", {
6853
6835
  width: "15",
6854
6836
  height: "23",
6855
6837
  viewBox: "0 0 15 23",
6856
6838
  fill: "none",
6857
6839
  xmlns: "http://www.w3.org/2000/svg"
6858
6840
  }, [
6859
- w("path", {
6841
+ z("path", {
6860
6842
  d: "M14.5547 22.3335V0.000163078L0 9.19624L14.5547 22.3335Z",
6861
6843
  fill: "currentColor"
6862
6844
  })
6863
6845
  ])
6864
6846
  ], -1)),
6865
- m[8] || (m[8] = w("div", { class: "px-[8px] flex justify-between items-center rounded-tl-[12px] rounded-tr-[12px] bg-[#FFFFFFB2] p-[2px]" }, [
6866
- w("div", { class: "flex justify-start items-center" }, [
6867
- w("p", { class: "text-[12px] font-[600] text-[#9970E2]" }, "DigiAI"),
6868
- w("span", null, [
6869
- w("img", {
6847
+ g[8] || (g[8] = z("div", { class: "px-[8px] flex justify-between items-center rounded-tl-[12px] rounded-tr-[12px] bg-[#FFFFFFB2] p-[2px]" }, [
6848
+ z("div", { class: "flex justify-start items-center" }, [
6849
+ z("p", { class: "text-[12px] font-[600] text-[#9970E2]" }, "DigiAI"),
6850
+ z("span", null, [
6851
+ z("img", {
6870
6852
  src: no,
6871
6853
  alt: ""
6872
6854
  })
6873
6855
  ])
6874
6856
  ]),
6875
- w("div", { class: "flex justify-start items-center" }, [
6876
- w("p", { class: "text-[12px] font-[600] text-[#9970E2]" }, "Try Now"),
6877
- w("span", null, [
6878
- w("svg", {
6857
+ z("div", { class: "flex justify-start items-center" }, [
6858
+ z("p", { class: "text-[12px] font-[600] text-[#9970E2]" }, "Try Now"),
6859
+ z("span", null, [
6860
+ z("svg", {
6879
6861
  width: "14",
6880
6862
  height: "15",
6881
6863
  viewBox: "0 0 14 15",
6882
6864
  fill: "none",
6883
6865
  xmlns: "http://www.w3.org/2000/svg"
6884
6866
  }, [
6885
- w("path", {
6867
+ z("path", {
6886
6868
  d: "M5.25003 3.82617L8.75 7.32617L5.25 10.8262",
6887
6869
  stroke: "#9970E2",
6888
6870
  "stroke-width": "1.5",
@@ -6893,12 +6875,12 @@ const Sl = { class: "z-[1000] w-fit flex flex-col items-end relative gci-chatbot
6893
6875
  ])
6894
6876
  ])
6895
6877
  ], -1)),
6896
- w("div", Vl, [
6897
- w("p", Bl, ke(ie(o)[ie(r)]), 1)
6878
+ z("div", Fl, [
6879
+ z("p", Vl, ke(u[a.value]), 1)
6898
6880
  ])
6899
6881
  ])
6900
6882
  ], 512), [
6901
- [eo, ie(n)]
6883
+ [eo, c.value]
6902
6884
  ])
6903
6885
  ]),
6904
6886
  _: 1
@@ -6909,12 +6891,12 @@ const Sl = { class: "z-[1000] w-fit flex flex-col items-end relative gci-chatbot
6909
6891
  };
6910
6892
  }
6911
6893
  });
6912
- const Wl = (e, t) => {
6894
+ const Gl = (e, t) => {
6913
6895
  const r = e.__vccOpts || e;
6914
6896
  for (const [n, o] of t)
6915
6897
  r[n] = o;
6916
6898
  return r;
6917
- }, Xl = /* @__PURE__ */ Wl(Gl, [["__scopeId", "data-v-2a28cfd0"]]);
6899
+ }, Hl = /* @__PURE__ */ Gl(Bl, [["__scopeId", "data-v-4a7510ae"]]);
6918
6900
  export {
6919
- Xl as ChatbotComponent
6901
+ Hl as ChatbotComponent
6920
6902
  };