@vscode/markdown-editor 0.0.2-42 → 0.0.2-44

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  import { S as Xn, O as Qn } from "./stringEdit-CVDbCUBY.js";
2
2
  var at;
3
- function d(e, t, n) {
3
+ function l(e, t, n) {
4
4
  function r(c, a) {
5
5
  if (c._zod || Object.defineProperty(c, "_zod", {
6
6
  value: {
@@ -12,9 +12,9 @@ function d(e, t, n) {
12
12
  }), c._zod.traits.has(e))
13
13
  return;
14
14
  c._zod.traits.add(e), t(c, a);
15
- const u = i.prototype, l = Object.keys(u);
16
- for (let h = 0; h < l.length; h++) {
17
- const f = l[h];
15
+ const u = i.prototype, d = Object.keys(u);
16
+ for (let h = 0; h < d.length; h++) {
17
+ const f = d[h];
18
18
  f in c || (c[f] = u[f].bind(c));
19
19
  }
20
20
  }
@@ -26,15 +26,15 @@ function d(e, t, n) {
26
26
  var a;
27
27
  const u = n?.Parent ? new s() : this;
28
28
  r(u, c), (a = u._zod).deferred ?? (a.deferred = []);
29
- for (const l of u._zod.deferred)
30
- l();
29
+ for (const d of u._zod.deferred)
30
+ d();
31
31
  return u;
32
32
  }
33
33
  return Object.defineProperty(i, "init", { value: r }), Object.defineProperty(i, Symbol.hasInstance, {
34
34
  value: (c) => n?.Parent && c instanceof n.Parent ? !0 : c?._zod?.traits?.has(e)
35
35
  }), Object.defineProperty(i, "name", { value: e }), i;
36
36
  }
37
- class ne extends Error {
37
+ class re extends Error {
38
38
  constructor() {
39
39
  super("Encountered Promise during synchronous parse. Use .parseAsync() instead.");
40
40
  }
@@ -46,7 +46,7 @@ class Ft extends Error {
46
46
  }
47
47
  (at = globalThis).__zod_globalConfig ?? (at.__zod_globalConfig = {});
48
48
  const Xe = globalThis.__zod_globalConfig;
49
- function G(e) {
49
+ function Y(e) {
50
50
  return Xe;
51
51
  }
52
52
  function Ut(e) {
@@ -78,7 +78,7 @@ function er(e, t) {
78
78
  return Math.abs(n - r) < o ? 0 : n - r;
79
79
  }
80
80
  const ut = /* @__PURE__ */ Symbol("evaluating");
81
- function y(e, t, n) {
81
+ function w(e, t, n) {
82
82
  let r;
83
83
  Object.defineProperty(e, t, {
84
84
  get() {
@@ -94,7 +94,7 @@ function y(e, t, n) {
94
94
  configurable: !0
95
95
  });
96
96
  }
97
- function X(e, t, n) {
97
+ function Q(e, t, n) {
98
98
  Object.defineProperty(e, t, {
99
99
  value: n,
100
100
  writable: !0,
@@ -102,7 +102,7 @@ function X(e, t, n) {
102
102
  configurable: !0
103
103
  });
104
104
  }
105
- function W(...e) {
105
+ function H(...e) {
106
106
  const t = {};
107
107
  for (const n of e) {
108
108
  const r = Object.getOwnPropertyDescriptors(n);
@@ -110,7 +110,7 @@ function W(...e) {
110
110
  }
111
111
  return Object.defineProperties({}, t);
112
112
  }
113
- function dt(e) {
113
+ function lt(e) {
114
114
  return JSON.stringify(e);
115
115
  }
116
116
  function tr(e) {
@@ -131,7 +131,7 @@ const nr = /* @__PURE__ */ Ne(() => {
131
131
  return !1;
132
132
  }
133
133
  });
134
- function de(e) {
134
+ function le(e) {
135
135
  if (ue(e) === !1)
136
136
  return !1;
137
137
  const t = e.constructor;
@@ -141,13 +141,13 @@ function de(e) {
141
141
  return !(ue(n) === !1 || Object.prototype.hasOwnProperty.call(n, "isPrototypeOf") === !1);
142
142
  }
143
143
  function Lt(e) {
144
- return de(e) ? { ...e } : Array.isArray(e) ? [...e] : e instanceof Map ? new Map(e) : e instanceof Set ? new Set(e) : e;
144
+ return le(e) ? { ...e } : Array.isArray(e) ? [...e] : e instanceof Map ? new Map(e) : e instanceof Set ? new Set(e) : e;
145
145
  }
146
146
  const rr = /* @__PURE__ */ new Set(["string", "number", "symbol"]);
147
147
  function ie(e) {
148
148
  return e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
149
149
  }
150
- function V(e, t, n) {
150
+ function L(e, t, n) {
151
151
  const r = new e._zod.constr(t ?? e._zod.def);
152
152
  return (!t || n?.parent) && (r._zod.parent = e), r;
153
153
  }
@@ -178,7 +178,7 @@ function sr(e, t) {
178
178
  const n = e._zod.def, r = n.checks;
179
179
  if (r && r.length > 0)
180
180
  throw new Error(".pick() cannot be used on object schemas containing refinements");
181
- const s = W(e._zod.def, {
181
+ const s = H(e._zod.def, {
182
182
  get shape() {
183
183
  const i = {};
184
184
  for (const c in t) {
@@ -186,17 +186,17 @@ function sr(e, t) {
186
186
  throw new Error(`Unrecognized key: "${c}"`);
187
187
  t[c] && (i[c] = n.shape[c]);
188
188
  }
189
- return X(this, "shape", i), i;
189
+ return Q(this, "shape", i), i;
190
190
  },
191
191
  checks: []
192
192
  });
193
- return V(e, s);
193
+ return L(e, s);
194
194
  }
195
195
  function cr(e, t) {
196
196
  const n = e._zod.def, r = n.checks;
197
197
  if (r && r.length > 0)
198
198
  throw new Error(".omit() cannot be used on object schemas containing refinements");
199
- const s = W(e._zod.def, {
199
+ const s = H(e._zod.def, {
200
200
  get shape() {
201
201
  const i = { ...e._zod.def.shape };
202
202
  for (const c in t) {
@@ -204,14 +204,14 @@ function cr(e, t) {
204
204
  throw new Error(`Unrecognized key: "${c}"`);
205
205
  t[c] && delete i[c];
206
206
  }
207
- return X(this, "shape", i), i;
207
+ return Q(this, "shape", i), i;
208
208
  },
209
209
  checks: []
210
210
  });
211
- return V(e, s);
211
+ return L(e, s);
212
212
  }
213
213
  function ar(e, t) {
214
- if (!de(t))
214
+ if (!le(t))
215
215
  throw new Error("Invalid input to extend: expected a plain object");
216
216
  const n = e._zod.def.checks;
217
217
  if (n && n.length > 0) {
@@ -220,45 +220,45 @@ function ar(e, t) {
220
220
  if (Object.getOwnPropertyDescriptor(s, i) !== void 0)
221
221
  throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.");
222
222
  }
223
- const o = W(e._zod.def, {
223
+ const o = H(e._zod.def, {
224
224
  get shape() {
225
225
  const s = { ...e._zod.def.shape, ...t };
226
- return X(this, "shape", s), s;
226
+ return Q(this, "shape", s), s;
227
227
  }
228
228
  });
229
- return V(e, o);
229
+ return L(e, o);
230
230
  }
231
231
  function ur(e, t) {
232
- if (!de(t))
232
+ if (!le(t))
233
233
  throw new Error("Invalid input to safeExtend: expected a plain object");
234
- const n = W(e._zod.def, {
234
+ const n = H(e._zod.def, {
235
235
  get shape() {
236
236
  const r = { ...e._zod.def.shape, ...t };
237
- return X(this, "shape", r), r;
237
+ return Q(this, "shape", r), r;
238
238
  }
239
239
  });
240
- return V(e, n);
240
+ return L(e, n);
241
241
  }
242
- function dr(e, t) {
242
+ function lr(e, t) {
243
243
  if (e._zod.def.checks?.length)
244
244
  throw new Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");
245
- const n = W(e._zod.def, {
245
+ const n = H(e._zod.def, {
246
246
  get shape() {
247
247
  const r = { ...e._zod.def.shape, ...t._zod.def.shape };
248
- return X(this, "shape", r), r;
248
+ return Q(this, "shape", r), r;
249
249
  },
250
250
  get catchall() {
251
251
  return t._zod.def.catchall;
252
252
  },
253
253
  checks: t._zod.def.checks ?? []
254
254
  });
255
- return V(e, n);
255
+ return L(e, n);
256
256
  }
257
- function lr(e, t, n) {
257
+ function dr(e, t, n) {
258
258
  const o = t._zod.def.checks;
259
259
  if (o && o.length > 0)
260
260
  throw new Error(".partial() cannot be used on object schemas containing refinements");
261
- const i = W(t._zod.def, {
261
+ const i = H(t._zod.def, {
262
262
  get shape() {
263
263
  const c = t._zod.def.shape, a = { ...c };
264
264
  if (n)
@@ -276,14 +276,14 @@ function lr(e, t, n) {
276
276
  type: "optional",
277
277
  innerType: c[u]
278
278
  }) : c[u];
279
- return X(this, "shape", a), a;
279
+ return Q(this, "shape", a), a;
280
280
  },
281
281
  checks: []
282
282
  });
283
- return V(t, i);
283
+ return L(t, i);
284
284
  }
285
285
  function fr(e, t, n) {
286
- const r = W(t._zod.def, {
286
+ const r = H(t._zod.def, {
287
287
  get shape() {
288
288
  const o = t._zod.def.shape, s = { ...o };
289
289
  if (n)
@@ -301,12 +301,12 @@ function fr(e, t, n) {
301
301
  type: "nonoptional",
302
302
  innerType: o[i]
303
303
  });
304
- return X(this, "shape", s), s;
304
+ return Q(this, "shape", s), s;
305
305
  }
306
306
  });
307
- return V(t, r);
307
+ return L(t, r);
308
308
  }
309
- function te(e, t = 0) {
309
+ function ne(e, t = 0) {
310
310
  if (e.aborted === !0)
311
311
  return !0;
312
312
  for (let n = t; n < e.issues.length; n++)
@@ -331,14 +331,14 @@ function Vt(e, t) {
331
331
  function me(e) {
332
332
  return typeof e == "string" ? e : e?.message;
333
333
  }
334
- function Y(e, t, n) {
334
+ function X(e, t, n) {
335
335
  const r = e.message ? e.message : me(e.inst?._zod.def?.error?.(e)) ?? me(t?.error?.(e)) ?? me(n.customError?.(e)) ?? me(n.localeError?.(e)) ?? "Invalid input", { inst: o, continue: s, input: i, ...c } = e;
336
336
  return c.path ?? (c.path = []), c.message = r, t?.reportInput && (c.input = i), c;
337
337
  }
338
338
  function tt(e) {
339
339
  return Array.isArray(e) ? "array" : typeof e == "string" ? "string" : "unknown";
340
340
  }
341
- function le(...e) {
341
+ function de(...e) {
342
342
  const [t, n, r] = e;
343
343
  return typeof t == "string" ? {
344
344
  message: t,
@@ -358,7 +358,7 @@ const qt = (e, t) => {
358
358
  value: () => e.message,
359
359
  enumerable: !1
360
360
  });
361
- }, Ht = d("$ZodError", qt), Ce = d("$ZodError", qt, { Parent: Error });
361
+ }, Ht = l("$ZodError", qt), Ce = l("$ZodError", qt, { Parent: Error });
362
362
  function pr(e, t = (n) => n.message) {
363
363
  const n = {}, r = [];
364
364
  for (const o of e.issues)
@@ -381,8 +381,8 @@ function mr(e, t = (n) => n.message) {
381
381
  else {
382
382
  let a = n, u = 0;
383
383
  for (; u < c.length; ) {
384
- const l = c[u];
385
- u === c.length - 1 ? (a[l] = a[l] || { _errors: [] }, a[l]._errors.push(t(i))) : a[l] = a[l] || { _errors: [] }, a = a[l], u++;
384
+ const d = c[u];
385
+ u === c.length - 1 ? (a[d] = a[d] || { _errors: [] }, a[d]._errors.push(t(i))) : a[d] = a[d] || { _errors: [] }, a = a[d], u++;
386
386
  }
387
387
  }
388
388
  }
@@ -392,9 +392,9 @@ function mr(e, t = (n) => n.message) {
392
392
  const Re = (e) => (t, n, r, o) => {
393
393
  const s = r ? { ...r, async: !1 } : { async: !1 }, i = t._zod.run({ value: n, issues: [] }, s);
394
394
  if (i instanceof Promise)
395
- throw new ne();
395
+ throw new re();
396
396
  if (i.issues.length) {
397
- const c = new (o?.Err ?? e)(i.issues.map((a) => Y(a, s, G())));
397
+ const c = new (o?.Err ?? e)(i.issues.map((a) => X(a, s, Y())));
398
398
  throw Jt(c, o?.callee), c;
399
399
  }
400
400
  return i.value;
@@ -402,24 +402,24 @@ const Re = (e) => (t, n, r, o) => {
402
402
  const s = r ? { ...r, async: !0 } : { async: !0 };
403
403
  let i = t._zod.run({ value: n, issues: [] }, s);
404
404
  if (i instanceof Promise && (i = await i), i.issues.length) {
405
- const c = new (o?.Err ?? e)(i.issues.map((a) => Y(a, s, G())));
405
+ const c = new (o?.Err ?? e)(i.issues.map((a) => X(a, s, Y())));
406
406
  throw Jt(c, o?.callee), c;
407
407
  }
408
408
  return i.value;
409
409
  }, gr = /* @__PURE__ */ xe(Ce), je = (e) => (t, n, r) => {
410
410
  const o = r ? { ...r, async: !1 } : { async: !1 }, s = t._zod.run({ value: n, issues: [] }, o);
411
411
  if (s instanceof Promise)
412
- throw new ne();
412
+ throw new re();
413
413
  return s.issues.length ? {
414
414
  success: !1,
415
- error: new (e ?? Ht)(s.issues.map((i) => Y(i, o, G())))
415
+ error: new (e ?? Ht)(s.issues.map((i) => X(i, o, Y())))
416
416
  } : { success: !0, data: s.value };
417
- }, J = /* @__PURE__ */ je(Ce), Ae = (e) => async (t, n, r) => {
417
+ }, F = /* @__PURE__ */ je(Ce), Ae = (e) => async (t, n, r) => {
418
418
  const o = r ? { ...r, async: !0 } : { async: !0 };
419
419
  let s = t._zod.run({ value: n, issues: [] }, o);
420
420
  return s instanceof Promise && (s = await s), s.issues.length ? {
421
421
  success: !1,
422
- error: new e(s.issues.map((i) => Y(i, o, G())))
422
+ error: new e(s.issues.map((i) => X(i, o, Y())))
423
423
  } : { success: !0, data: s.value };
424
424
  }, Wt = /* @__PURE__ */ Ae(Ce), vr = (e) => (t, n, r) => {
425
425
  const o = r ? { ...r, direction: "backward" } : { direction: "backward" };
@@ -433,7 +433,7 @@ const Re = (e) => (t, n, r, o) => {
433
433
  }, kr = (e) => (t, n, r) => je(e)(t, n, r), Sr = (e) => async (t, n, r) => {
434
434
  const o = r ? { ...r, direction: "backward" } : { direction: "backward" };
435
435
  return Ae(e)(t, n, o);
436
- }, $r = (e) => async (t, n, r) => Ae(e)(t, n, r), Er = /^[cC][0-9a-z]{6,}$/, Zr = /^[0-9a-z]+$/, Ir = /^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/, Or = /^[0-9a-vA-V]{20}$/, Pr = /^[A-Za-z0-9]{27}$/, Tr = /^[a-zA-Z0-9_-]{21}$/, Nr = /^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/, Cr = /^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/, lt = (e) => e ? new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`) : /^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/, Rr = /^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/, xr = "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";
436
+ }, $r = (e) => async (t, n, r) => Ae(e)(t, n, r), Er = /^[cC][0-9a-z]{6,}$/, Zr = /^[0-9a-z]+$/, Ir = /^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/, Or = /^[0-9a-vA-V]{20}$/, Pr = /^[A-Za-z0-9]{27}$/, Tr = /^[a-zA-Z0-9_-]{21}$/, Nr = /^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/, Cr = /^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/, dt = (e) => e ? new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`) : /^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/, Rr = /^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/, xr = "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";
437
437
  function jr() {
438
438
  return new RegExp(xr, "u");
439
439
  }
@@ -454,14 +454,14 @@ function Hr(e) {
454
454
  const Wr = (e) => {
455
455
  const t = e ? `[\\s\\S]{${e?.minimum ?? 0},${e?.maximum ?? ""}}` : "[\\s\\S]*";
456
456
  return new RegExp(`^${t}$`);
457
- }, Br = /^-?\d+$/, Kr = /^-?\d+(?:\.\d+)?$/, Gr = /^(?:true|false)$/i, Yr = /^[^A-Z]*$/, Xr = /^[^a-z]*$/, R = /* @__PURE__ */ d("$ZodCheck", (e, t) => {
457
+ }, Br = /^-?\d+$/, Kr = /^-?\d+(?:\.\d+)?$/, Gr = /^(?:true|false)$/i, Yr = /^[^A-Z]*$/, Xr = /^[^a-z]*$/, R = /* @__PURE__ */ l("$ZodCheck", (e, t) => {
458
458
  var n;
459
459
  e._zod ?? (e._zod = {}), e._zod.def = t, (n = e._zod).onattach ?? (n.onattach = []);
460
460
  }), Yt = {
461
461
  number: "number",
462
462
  bigint: "bigint",
463
463
  object: "date"
464
- }, Xt = /* @__PURE__ */ d("$ZodCheckLessThan", (e, t) => {
464
+ }, Xt = /* @__PURE__ */ l("$ZodCheckLessThan", (e, t) => {
465
465
  R.init(e, t);
466
466
  const n = Yt[typeof t.value];
467
467
  e._zod.onattach.push((r) => {
@@ -478,7 +478,7 @@ const Wr = (e) => {
478
478
  continue: !t.abort
479
479
  });
480
480
  };
481
- }), Qt = /* @__PURE__ */ d("$ZodCheckGreaterThan", (e, t) => {
481
+ }), Qt = /* @__PURE__ */ l("$ZodCheckGreaterThan", (e, t) => {
482
482
  R.init(e, t);
483
483
  const n = Yt[typeof t.value];
484
484
  e._zod.onattach.push((r) => {
@@ -495,7 +495,7 @@ const Wr = (e) => {
495
495
  continue: !t.abort
496
496
  });
497
497
  };
498
- }), Qr = /* @__PURE__ */ d("$ZodCheckMultipleOf", (e, t) => {
498
+ }), Qr = /* @__PURE__ */ l("$ZodCheckMultipleOf", (e, t) => {
499
499
  R.init(e, t), e._zod.onattach.push((n) => {
500
500
  var r;
501
501
  (r = n._zod.bag).multipleOf ?? (r.multipleOf = t.value);
@@ -511,7 +511,7 @@ const Wr = (e) => {
511
511
  continue: !t.abort
512
512
  });
513
513
  };
514
- }), eo = /* @__PURE__ */ d("$ZodCheckNumberFormat", (e, t) => {
514
+ }), eo = /* @__PURE__ */ l("$ZodCheckNumberFormat", (e, t) => {
515
515
  R.init(e, t), t.format = t.format || "float64";
516
516
  const n = t.format?.includes("int"), r = n ? "int" : "number", [o, s] = ir[t.format];
517
517
  e._zod.onattach.push((i) => {
@@ -572,7 +572,7 @@ const Wr = (e) => {
572
572
  continue: !t.abort
573
573
  });
574
574
  };
575
- }), to = /* @__PURE__ */ d("$ZodCheckMaxLength", (e, t) => {
575
+ }), to = /* @__PURE__ */ l("$ZodCheckMaxLength", (e, t) => {
576
576
  var n;
577
577
  R.init(e, t), (n = e._zod.def).when ?? (n.when = (r) => {
578
578
  const o = r.value;
@@ -595,7 +595,7 @@ const Wr = (e) => {
595
595
  continue: !t.abort
596
596
  });
597
597
  };
598
- }), no = /* @__PURE__ */ d("$ZodCheckMinLength", (e, t) => {
598
+ }), no = /* @__PURE__ */ l("$ZodCheckMinLength", (e, t) => {
599
599
  var n;
600
600
  R.init(e, t), (n = e._zod.def).when ?? (n.when = (r) => {
601
601
  const o = r.value;
@@ -618,7 +618,7 @@ const Wr = (e) => {
618
618
  continue: !t.abort
619
619
  });
620
620
  };
621
- }), ro = /* @__PURE__ */ d("$ZodCheckLengthEquals", (e, t) => {
621
+ }), ro = /* @__PURE__ */ l("$ZodCheckLengthEquals", (e, t) => {
622
622
  var n;
623
623
  R.init(e, t), (n = e._zod.def).when ?? (n.when = (r) => {
624
624
  const o = r.value;
@@ -641,7 +641,7 @@ const Wr = (e) => {
641
641
  continue: !t.abort
642
642
  });
643
643
  };
644
- }), De = /* @__PURE__ */ d("$ZodCheckStringFormat", (e, t) => {
644
+ }), De = /* @__PURE__ */ l("$ZodCheckStringFormat", (e, t) => {
645
645
  var n, r;
646
646
  R.init(e, t), e._zod.onattach.push((o) => {
647
647
  const s = o._zod.bag;
@@ -658,7 +658,7 @@ const Wr = (e) => {
658
658
  });
659
659
  }) : (r = e._zod).check ?? (r.check = () => {
660
660
  });
661
- }), oo = /* @__PURE__ */ d("$ZodCheckRegex", (e, t) => {
661
+ }), oo = /* @__PURE__ */ l("$ZodCheckRegex", (e, t) => {
662
662
  De.init(e, t), e._zod.check = (n) => {
663
663
  t.pattern.lastIndex = 0, !t.pattern.test(n.value) && n.issues.push({
664
664
  origin: "string",
@@ -670,11 +670,11 @@ const Wr = (e) => {
670
670
  continue: !t.abort
671
671
  });
672
672
  };
673
- }), io = /* @__PURE__ */ d("$ZodCheckLowerCase", (e, t) => {
673
+ }), io = /* @__PURE__ */ l("$ZodCheckLowerCase", (e, t) => {
674
674
  t.pattern ?? (t.pattern = Yr), De.init(e, t);
675
- }), so = /* @__PURE__ */ d("$ZodCheckUpperCase", (e, t) => {
675
+ }), so = /* @__PURE__ */ l("$ZodCheckUpperCase", (e, t) => {
676
676
  t.pattern ?? (t.pattern = Xr), De.init(e, t);
677
- }), co = /* @__PURE__ */ d("$ZodCheckIncludes", (e, t) => {
677
+ }), co = /* @__PURE__ */ l("$ZodCheckIncludes", (e, t) => {
678
678
  R.init(e, t);
679
679
  const n = ie(t.includes), r = new RegExp(typeof t.position == "number" ? `^.{${t.position}}${n}` : n);
680
680
  t.pattern = r, e._zod.onattach.push((o) => {
@@ -691,7 +691,7 @@ const Wr = (e) => {
691
691
  continue: !t.abort
692
692
  });
693
693
  };
694
- }), ao = /* @__PURE__ */ d("$ZodCheckStartsWith", (e, t) => {
694
+ }), ao = /* @__PURE__ */ l("$ZodCheckStartsWith", (e, t) => {
695
695
  R.init(e, t);
696
696
  const n = new RegExp(`^${ie(t.prefix)}.*`);
697
697
  t.pattern ?? (t.pattern = n), e._zod.onattach.push((r) => {
@@ -708,7 +708,7 @@ const Wr = (e) => {
708
708
  continue: !t.abort
709
709
  });
710
710
  };
711
- }), uo = /* @__PURE__ */ d("$ZodCheckEndsWith", (e, t) => {
711
+ }), uo = /* @__PURE__ */ l("$ZodCheckEndsWith", (e, t) => {
712
712
  R.init(e, t);
713
713
  const n = new RegExp(`.*${ie(t.suffix)}$`);
714
714
  t.pattern ?? (t.pattern = n), e._zod.onattach.push((r) => {
@@ -725,7 +725,7 @@ const Wr = (e) => {
725
725
  continue: !t.abort
726
726
  });
727
727
  };
728
- }), lo = /* @__PURE__ */ d("$ZodCheckOverwrite", (e, t) => {
728
+ }), lo = /* @__PURE__ */ l("$ZodCheckOverwrite", (e, t) => {
729
729
  R.init(e, t), e._zod.check = (n) => {
730
730
  n.value = t.tx(n.value);
731
731
  };
@@ -757,7 +757,7 @@ const ho = {
757
757
  major: 4,
758
758
  minor: 4,
759
759
  patch: 3
760
- }, S = /* @__PURE__ */ d("$ZodType", (e, t) => {
760
+ }, S = /* @__PURE__ */ l("$ZodType", (e, t) => {
761
761
  var n;
762
762
  e ?? (e = {}), e._zod.def = t, e._zod.bag = e._zod.bag || {}, e._zod.version = ho;
763
763
  const r = [...e._zod.def.checks ?? []];
@@ -771,7 +771,7 @@ const ho = {
771
771
  });
772
772
  else {
773
773
  const o = (i, c, a) => {
774
- let u = te(i), l;
774
+ let u = ne(i), d;
775
775
  for (const h of c) {
776
776
  if (h._zod.def.when) {
777
777
  if (hr(i) || !h._zod.def.when(i))
@@ -780,26 +780,26 @@ const ho = {
780
780
  continue;
781
781
  const f = i.issues.length, p = h._zod.check(i);
782
782
  if (p instanceof Promise && a?.async === !1)
783
- throw new ne();
784
- if (l || p instanceof Promise)
785
- l = (l ?? Promise.resolve()).then(async () => {
786
- await p, i.issues.length !== f && (u || (u = te(i, f)));
783
+ throw new re();
784
+ if (d || p instanceof Promise)
785
+ d = (d ?? Promise.resolve()).then(async () => {
786
+ await p, i.issues.length !== f && (u || (u = ne(i, f)));
787
787
  });
788
788
  else {
789
789
  if (i.issues.length === f)
790
790
  continue;
791
- u || (u = te(i, f));
791
+ u || (u = ne(i, f));
792
792
  }
793
793
  }
794
- return l ? l.then(() => i) : i;
794
+ return d ? d.then(() => i) : i;
795
795
  }, s = (i, c, a) => {
796
- if (te(i))
796
+ if (ne(i))
797
797
  return i.aborted = !0, i;
798
798
  const u = o(c, r, a);
799
799
  if (u instanceof Promise) {
800
800
  if (a.async === !1)
801
- throw new ne();
802
- return u.then((l) => e._zod.parse(l, a));
801
+ throw new re();
802
+ return u.then((d) => e._zod.parse(d, a));
803
803
  }
804
804
  return e._zod.parse(u, a);
805
805
  };
@@ -808,21 +808,21 @@ const ho = {
808
808
  return e._zod.parse(i, c);
809
809
  if (c.direction === "backward") {
810
810
  const u = e._zod.parse({ value: i.value, issues: [] }, { ...c, skipChecks: !0 });
811
- return u instanceof Promise ? u.then((l) => s(l, i, c)) : s(u, i, c);
811
+ return u instanceof Promise ? u.then((d) => s(d, i, c)) : s(u, i, c);
812
812
  }
813
813
  const a = e._zod.parse(i, c);
814
814
  if (a instanceof Promise) {
815
815
  if (c.async === !1)
816
- throw new ne();
816
+ throw new re();
817
817
  return a.then((u) => o(u, r, c));
818
818
  }
819
819
  return o(a, r, c);
820
820
  };
821
821
  }
822
- y(e, "~standard", () => ({
822
+ w(e, "~standard", () => ({
823
823
  validate: (o) => {
824
824
  try {
825
- const s = J(e, o);
825
+ const s = F(e, o);
826
826
  return s.success ? { value: s.data } : { issues: s.error?.issues };
827
827
  } catch {
828
828
  return Wt(e, o).then((i) => i.success ? { value: i.data } : { issues: i.error?.issues });
@@ -831,7 +831,7 @@ const ho = {
831
831
  vendor: "zod",
832
832
  version: 1
833
833
  }));
834
- }), Me = /* @__PURE__ */ d("$ZodString", (e, t) => {
834
+ }), Me = /* @__PURE__ */ l("$ZodString", (e, t) => {
835
835
  S.init(e, t), e._zod.pattern = [...e?._zod.bag?.patterns ?? []].pop() ?? Wr(e._zod.bag), e._zod.parse = (n, r) => {
836
836
  if (t.coerce)
837
837
  try {
@@ -845,11 +845,11 @@ const ho = {
845
845
  inst: e
846
846
  }), n;
847
847
  };
848
- }), $ = /* @__PURE__ */ d("$ZodStringFormat", (e, t) => {
848
+ }), $ = /* @__PURE__ */ l("$ZodStringFormat", (e, t) => {
849
849
  De.init(e, t), Me.init(e, t);
850
- }), po = /* @__PURE__ */ d("$ZodGUID", (e, t) => {
850
+ }), po = /* @__PURE__ */ l("$ZodGUID", (e, t) => {
851
851
  t.pattern ?? (t.pattern = Cr), $.init(e, t);
852
- }), mo = /* @__PURE__ */ d("$ZodUUID", (e, t) => {
852
+ }), mo = /* @__PURE__ */ l("$ZodUUID", (e, t) => {
853
853
  if (t.version) {
854
854
  const r = {
855
855
  v1: 1,
@@ -863,13 +863,13 @@ const ho = {
863
863
  }[t.version];
864
864
  if (r === void 0)
865
865
  throw new Error(`Invalid UUID version: "${t.version}"`);
866
- t.pattern ?? (t.pattern = lt(r));
866
+ t.pattern ?? (t.pattern = dt(r));
867
867
  } else
868
- t.pattern ?? (t.pattern = lt());
868
+ t.pattern ?? (t.pattern = dt());
869
869
  $.init(e, t);
870
- }), _o = /* @__PURE__ */ d("$ZodEmail", (e, t) => {
870
+ }), _o = /* @__PURE__ */ l("$ZodEmail", (e, t) => {
871
871
  t.pattern ?? (t.pattern = Rr), $.init(e, t);
872
- }), go = /* @__PURE__ */ d("$ZodURL", (e, t) => {
872
+ }), go = /* @__PURE__ */ l("$ZodURL", (e, t) => {
873
873
  $.init(e, t), e._zod.check = (n) => {
874
874
  try {
875
875
  const r = n.value.trim();
@@ -913,31 +913,31 @@ const ho = {
913
913
  });
914
914
  }
915
915
  };
916
- }), vo = /* @__PURE__ */ d("$ZodEmoji", (e, t) => {
916
+ }), vo = /* @__PURE__ */ l("$ZodEmoji", (e, t) => {
917
917
  t.pattern ?? (t.pattern = jr()), $.init(e, t);
918
- }), yo = /* @__PURE__ */ d("$ZodNanoID", (e, t) => {
918
+ }), yo = /* @__PURE__ */ l("$ZodNanoID", (e, t) => {
919
919
  t.pattern ?? (t.pattern = Tr), $.init(e, t);
920
- }), wo = /* @__PURE__ */ d("$ZodCUID", (e, t) => {
920
+ }), wo = /* @__PURE__ */ l("$ZodCUID", (e, t) => {
921
921
  t.pattern ?? (t.pattern = Er), $.init(e, t);
922
- }), bo = /* @__PURE__ */ d("$ZodCUID2", (e, t) => {
922
+ }), bo = /* @__PURE__ */ l("$ZodCUID2", (e, t) => {
923
923
  t.pattern ?? (t.pattern = Zr), $.init(e, t);
924
- }), zo = /* @__PURE__ */ d("$ZodULID", (e, t) => {
924
+ }), zo = /* @__PURE__ */ l("$ZodULID", (e, t) => {
925
925
  t.pattern ?? (t.pattern = Ir), $.init(e, t);
926
- }), ko = /* @__PURE__ */ d("$ZodXID", (e, t) => {
926
+ }), ko = /* @__PURE__ */ l("$ZodXID", (e, t) => {
927
927
  t.pattern ?? (t.pattern = Or), $.init(e, t);
928
- }), So = /* @__PURE__ */ d("$ZodKSUID", (e, t) => {
928
+ }), So = /* @__PURE__ */ l("$ZodKSUID", (e, t) => {
929
929
  t.pattern ?? (t.pattern = Pr), $.init(e, t);
930
- }), $o = /* @__PURE__ */ d("$ZodISODateTime", (e, t) => {
930
+ }), $o = /* @__PURE__ */ l("$ZodISODateTime", (e, t) => {
931
931
  t.pattern ?? (t.pattern = Hr(t)), $.init(e, t);
932
- }), Eo = /* @__PURE__ */ d("$ZodISODate", (e, t) => {
932
+ }), Eo = /* @__PURE__ */ l("$ZodISODate", (e, t) => {
933
933
  t.pattern ?? (t.pattern = Vr), $.init(e, t);
934
- }), Zo = /* @__PURE__ */ d("$ZodISOTime", (e, t) => {
934
+ }), Zo = /* @__PURE__ */ l("$ZodISOTime", (e, t) => {
935
935
  t.pattern ?? (t.pattern = qr(t)), $.init(e, t);
936
- }), Io = /* @__PURE__ */ d("$ZodISODuration", (e, t) => {
936
+ }), Io = /* @__PURE__ */ l("$ZodISODuration", (e, t) => {
937
937
  t.pattern ?? (t.pattern = Nr), $.init(e, t);
938
- }), Oo = /* @__PURE__ */ d("$ZodIPv4", (e, t) => {
938
+ }), Oo = /* @__PURE__ */ l("$ZodIPv4", (e, t) => {
939
939
  t.pattern ?? (t.pattern = Ar), $.init(e, t), e._zod.bag.format = "ipv4";
940
- }), Po = /* @__PURE__ */ d("$ZodIPv6", (e, t) => {
940
+ }), Po = /* @__PURE__ */ l("$ZodIPv6", (e, t) => {
941
941
  t.pattern ?? (t.pattern = Dr), $.init(e, t), e._zod.bag.format = "ipv6", e._zod.check = (n) => {
942
942
  try {
943
943
  new URL(`http://[${n.value}]`);
@@ -951,9 +951,9 @@ const ho = {
951
951
  });
952
952
  }
953
953
  };
954
- }), To = /* @__PURE__ */ d("$ZodCIDRv4", (e, t) => {
954
+ }), To = /* @__PURE__ */ l("$ZodCIDRv4", (e, t) => {
955
955
  t.pattern ?? (t.pattern = Mr), $.init(e, t);
956
- }), No = /* @__PURE__ */ d("$ZodCIDRv6", (e, t) => {
956
+ }), No = /* @__PURE__ */ l("$ZodCIDRv6", (e, t) => {
957
957
  t.pattern ?? (t.pattern = Fr), $.init(e, t), e._zod.check = (n) => {
958
958
  const r = n.value.split("/");
959
959
  try {
@@ -990,7 +990,7 @@ function en(e) {
990
990
  return !1;
991
991
  }
992
992
  }
993
- const Co = /* @__PURE__ */ d("$ZodBase64", (e, t) => {
993
+ const Co = /* @__PURE__ */ l("$ZodBase64", (e, t) => {
994
994
  t.pattern ?? (t.pattern = Ur), $.init(e, t), e._zod.bag.contentEncoding = "base64", e._zod.check = (n) => {
995
995
  en(n.value) || n.issues.push({
996
996
  code: "invalid_format",
@@ -1007,7 +1007,7 @@ function Ro(e) {
1007
1007
  const t = e.replace(/[-_]/g, (r) => r === "-" ? "+" : "/"), n = t.padEnd(Math.ceil(t.length / 4) * 4, "=");
1008
1008
  return en(n);
1009
1009
  }
1010
- const xo = /* @__PURE__ */ d("$ZodBase64URL", (e, t) => {
1010
+ const xo = /* @__PURE__ */ l("$ZodBase64URL", (e, t) => {
1011
1011
  t.pattern ?? (t.pattern = Bt), $.init(e, t), e._zod.bag.contentEncoding = "base64url", e._zod.check = (n) => {
1012
1012
  Ro(n.value) || n.issues.push({
1013
1013
  code: "invalid_format",
@@ -1017,7 +1017,7 @@ const xo = /* @__PURE__ */ d("$ZodBase64URL", (e, t) => {
1017
1017
  continue: !t.abort
1018
1018
  });
1019
1019
  };
1020
- }), jo = /* @__PURE__ */ d("$ZodE164", (e, t) => {
1020
+ }), jo = /* @__PURE__ */ l("$ZodE164", (e, t) => {
1021
1021
  t.pattern ?? (t.pattern = Lr), $.init(e, t);
1022
1022
  });
1023
1023
  function Ao(e, t = null) {
@@ -1034,7 +1034,7 @@ function Ao(e, t = null) {
1034
1034
  return !1;
1035
1035
  }
1036
1036
  }
1037
- const Do = /* @__PURE__ */ d("$ZodJWT", (e, t) => {
1037
+ const Do = /* @__PURE__ */ l("$ZodJWT", (e, t) => {
1038
1038
  $.init(e, t), e._zod.check = (n) => {
1039
1039
  Ao(n.value, t.alg) || n.issues.push({
1040
1040
  code: "invalid_format",
@@ -1044,7 +1044,7 @@ const Do = /* @__PURE__ */ d("$ZodJWT", (e, t) => {
1044
1044
  continue: !t.abort
1045
1045
  });
1046
1046
  };
1047
- }), nt = /* @__PURE__ */ d("$ZodNumber", (e, t) => {
1047
+ }), nt = /* @__PURE__ */ l("$ZodNumber", (e, t) => {
1048
1048
  S.init(e, t), e._zod.pattern = e._zod.bag.pattern ?? Kr, e._zod.parse = (n, r) => {
1049
1049
  if (t.coerce)
1050
1050
  try {
@@ -1063,9 +1063,9 @@ const Do = /* @__PURE__ */ d("$ZodJWT", (e, t) => {
1063
1063
  ...s ? { received: s } : {}
1064
1064
  }), n;
1065
1065
  };
1066
- }), tn = /* @__PURE__ */ d("$ZodNumberFormat", (e, t) => {
1066
+ }), tn = /* @__PURE__ */ l("$ZodNumberFormat", (e, t) => {
1067
1067
  eo.init(e, t), nt.init(e, t);
1068
- }), nn = /* @__PURE__ */ d("$ZodBoolean", (e, t) => {
1068
+ }), nn = /* @__PURE__ */ l("$ZodBoolean", (e, t) => {
1069
1069
  S.init(e, t), e._zod.pattern = Gr, e._zod.parse = (n, r) => {
1070
1070
  if (t.coerce)
1071
1071
  try {
@@ -1080,16 +1080,16 @@ const Do = /* @__PURE__ */ d("$ZodJWT", (e, t) => {
1080
1080
  inst: e
1081
1081
  }), n;
1082
1082
  };
1083
- }), rn = /* @__PURE__ */ d("$ZodUnknown", (e, t) => {
1083
+ }), rn = /* @__PURE__ */ l("$ZodUnknown", (e, t) => {
1084
1084
  S.init(e, t), e._zod.parse = (n) => n;
1085
- }), Mo = /* @__PURE__ */ d("$ZodNever", (e, t) => {
1085
+ }), Mo = /* @__PURE__ */ l("$ZodNever", (e, t) => {
1086
1086
  S.init(e, t), e._zod.parse = (n, r) => (n.issues.push({
1087
1087
  expected: "never",
1088
1088
  code: "invalid_type",
1089
1089
  input: n.value,
1090
1090
  inst: e
1091
1091
  }), n);
1092
- }), Fo = /* @__PURE__ */ d("$ZodVoid", (e, t) => {
1092
+ }), Fo = /* @__PURE__ */ l("$ZodVoid", (e, t) => {
1093
1093
  S.init(e, t), e._zod.parse = (n, r) => {
1094
1094
  const o = n.value;
1095
1095
  return typeof o > "u" || n.issues.push({
@@ -1103,7 +1103,7 @@ const Do = /* @__PURE__ */ d("$ZodJWT", (e, t) => {
1103
1103
  function ft(e, t, n) {
1104
1104
  e.issues.length && t.issues.push(...Vt(n, e.issues)), t.value[n] = e.value;
1105
1105
  }
1106
- const on = /* @__PURE__ */ d("$ZodArray", (e, t) => {
1106
+ const on = /* @__PURE__ */ l("$ZodArray", (e, t) => {
1107
1107
  S.init(e, t), e._zod.parse = (n, r) => {
1108
1108
  const o = n.value;
1109
1109
  if (!Array.isArray(o))
@@ -1158,7 +1158,7 @@ function sn(e) {
1158
1158
  };
1159
1159
  }
1160
1160
  function cn(e, t, n, r, o, s) {
1161
- const i = [], c = o.keySet, a = o.catchall._zod, u = a.def.type, l = a.optin === "optional", h = a.optout === "optional";
1161
+ const i = [], c = o.keySet, a = o.catchall._zod, u = a.def.type, d = a.optin === "optional", h = a.optout === "optional";
1162
1162
  for (const f in t) {
1163
1163
  if (f === "__proto__" || c.has(f))
1164
1164
  continue;
@@ -1167,7 +1167,7 @@ function cn(e, t, n, r, o, s) {
1167
1167
  continue;
1168
1168
  }
1169
1169
  const p = a.run({ value: t[f], issues: [] }, r);
1170
- p instanceof Promise ? e.push(p.then((_) => Se(_, n, f, t, l, h))) : Se(p, n, f, t, l, h);
1170
+ p instanceof Promise ? e.push(p.then((_) => Se(_, n, f, t, d, h))) : Se(p, n, f, t, d, h);
1171
1171
  }
1172
1172
  return i.length && n.issues.push({
1173
1173
  code: "unrecognized_keys",
@@ -1176,7 +1176,7 @@ function cn(e, t, n, r, o, s) {
1176
1176
  inst: s
1177
1177
  }), e.length ? Promise.all(e).then(() => n) : n;
1178
1178
  }
1179
- const an = /* @__PURE__ */ d("$ZodObject", (e, t) => {
1179
+ const an = /* @__PURE__ */ l("$ZodObject", (e, t) => {
1180
1180
  if (S.init(e, t), !Object.getOwnPropertyDescriptor(t, "shape")?.get) {
1181
1181
  const c = t.shape;
1182
1182
  Object.defineProperty(t, "shape", {
@@ -1189,13 +1189,13 @@ const an = /* @__PURE__ */ d("$ZodObject", (e, t) => {
1189
1189
  });
1190
1190
  }
1191
1191
  const r = Ne(() => sn(t));
1192
- y(e._zod, "propValues", () => {
1192
+ w(e._zod, "propValues", () => {
1193
1193
  const c = t.shape, a = {};
1194
1194
  for (const u in c) {
1195
- const l = c[u]._zod;
1196
- if (l.values) {
1195
+ const d = c[u]._zod;
1196
+ if (d.values) {
1197
1197
  a[u] ?? (a[u] = /* @__PURE__ */ new Set());
1198
- for (const h of l.values)
1198
+ for (const h of d.values)
1199
1199
  a[u].add(h);
1200
1200
  }
1201
1201
  }
@@ -1214,19 +1214,19 @@ const an = /* @__PURE__ */ d("$ZodObject", (e, t) => {
1214
1214
  inst: e
1215
1215
  }), c;
1216
1216
  c.value = {};
1217
- const l = [], h = i.shape;
1217
+ const d = [], h = i.shape;
1218
1218
  for (const f of i.keys) {
1219
1219
  const p = h[f], _ = p._zod.optin === "optional", N = p._zod.optout === "optional", k = p._zod.run({ value: u[f], issues: [] }, a);
1220
- k instanceof Promise ? l.push(k.then((x) => Se(x, c, f, u, _, N))) : Se(k, c, f, u, _, N);
1220
+ k instanceof Promise ? d.push(k.then((x) => Se(x, c, f, u, _, N))) : Se(k, c, f, u, _, N);
1221
1221
  }
1222
- return s ? cn(l, u, c, a, r.value, e) : l.length ? Promise.all(l).then(() => c) : c;
1222
+ return s ? cn(d, u, c, a, r.value, e) : d.length ? Promise.all(d).then(() => c) : c;
1223
1223
  };
1224
- }), Uo = /* @__PURE__ */ d("$ZodObjectJIT", (e, t) => {
1224
+ }), Uo = /* @__PURE__ */ l("$ZodObjectJIT", (e, t) => {
1225
1225
  an.init(e, t);
1226
1226
  const n = e._zod.parse, r = Ne(() => sn(t)), o = (f) => {
1227
1227
  const p = new fo(["shape", "payload", "ctx"]), _ = r.value, N = (g) => {
1228
- const w = dt(g);
1229
- return `shape[${w}]._zod.run({ value: input[${w}], issues: [] }, ctx)`;
1228
+ const v = lt(g);
1229
+ return `shape[${v}]._zod.run({ value: input[${v}], issues: [] }, ctx)`;
1230
1230
  };
1231
1231
  p.write("const input = payload.value;");
1232
1232
  const k = /* @__PURE__ */ Object.create(null);
@@ -1235,50 +1235,50 @@ const an = /* @__PURE__ */ d("$ZodObject", (e, t) => {
1235
1235
  k[g] = `key_${x++}`;
1236
1236
  p.write("const newResult = {};");
1237
1237
  for (const g of _.keys) {
1238
- const w = k[g], E = dt(g), B = f[g], Q = B?._zod?.optin === "optional", Yn = B?._zod?.optout === "optional";
1239
- p.write(`const ${w} = ${N(g)};`), Q && Yn ? p.write(`
1240
- if (${w}.issues.length) {
1238
+ const v = k[g], E = lt(g), B = f[g], ee = B?._zod?.optin === "optional", Yn = B?._zod?.optout === "optional";
1239
+ p.write(`const ${v} = ${N(g)};`), ee && Yn ? p.write(`
1240
+ if (${v}.issues.length) {
1241
1241
  if (${E} in input) {
1242
- payload.issues = payload.issues.concat(${w}.issues.map(iss => ({
1242
+ payload.issues = payload.issues.concat(${v}.issues.map(iss => ({
1243
1243
  ...iss,
1244
1244
  path: iss.path ? [${E}, ...iss.path] : [${E}]
1245
1245
  })));
1246
1246
  }
1247
1247
  }
1248
1248
 
1249
- if (${w}.value === undefined) {
1249
+ if (${v}.value === undefined) {
1250
1250
  if (${E} in input) {
1251
1251
  newResult[${E}] = undefined;
1252
1252
  }
1253
1253
  } else {
1254
- newResult[${E}] = ${w}.value;
1254
+ newResult[${E}] = ${v}.value;
1255
1255
  }
1256
1256
 
1257
- `) : Q ? p.write(`
1258
- if (${w}.issues.length) {
1259
- payload.issues = payload.issues.concat(${w}.issues.map(iss => ({
1257
+ `) : ee ? p.write(`
1258
+ if (${v}.issues.length) {
1259
+ payload.issues = payload.issues.concat(${v}.issues.map(iss => ({
1260
1260
  ...iss,
1261
1261
  path: iss.path ? [${E}, ...iss.path] : [${E}]
1262
1262
  })));
1263
1263
  }
1264
1264
 
1265
- if (${w}.value === undefined) {
1265
+ if (${v}.value === undefined) {
1266
1266
  if (${E} in input) {
1267
1267
  newResult[${E}] = undefined;
1268
1268
  }
1269
1269
  } else {
1270
- newResult[${E}] = ${w}.value;
1270
+ newResult[${E}] = ${v}.value;
1271
1271
  }
1272
1272
 
1273
1273
  `) : p.write(`
1274
- const ${w}_present = ${E} in input;
1275
- if (${w}.issues.length) {
1276
- payload.issues = payload.issues.concat(${w}.issues.map(iss => ({
1274
+ const ${v}_present = ${E} in input;
1275
+ if (${v}.issues.length) {
1276
+ payload.issues = payload.issues.concat(${v}.issues.map(iss => ({
1277
1277
  ...iss,
1278
1278
  path: iss.path ? [${E}, ...iss.path] : [${E}]
1279
1279
  })));
1280
1280
  }
1281
- if (!${w}_present && !${w}.issues.length) {
1281
+ if (!${v}_present && !${v}.issues.length) {
1282
1282
  payload.issues.push({
1283
1283
  code: "invalid_type",
1284
1284
  expected: "nonoptional",
@@ -1287,27 +1287,27 @@ const an = /* @__PURE__ */ d("$ZodObject", (e, t) => {
1287
1287
  });
1288
1288
  }
1289
1289
 
1290
- if (${w}_present) {
1291
- if (${w}.value === undefined) {
1290
+ if (${v}_present) {
1291
+ if (${v}.value === undefined) {
1292
1292
  newResult[${E}] = undefined;
1293
1293
  } else {
1294
- newResult[${E}] = ${w}.value;
1294
+ newResult[${E}] = ${v}.value;
1295
1295
  }
1296
1296
  }
1297
1297
 
1298
1298
  `);
1299
1299
  }
1300
1300
  p.write("payload.value = newResult;"), p.write("return payload;");
1301
- const A = p.compile();
1302
- return (g, w) => A(f, g, w);
1301
+ const W = p.compile();
1302
+ return (g, v) => W(f, g, v);
1303
1303
  };
1304
1304
  let s;
1305
- const i = ue, c = !Xe.jitless, u = c && nr.value, l = t.catchall;
1305
+ const i = ue, c = !Xe.jitless, u = c && nr.value, d = t.catchall;
1306
1306
  let h;
1307
1307
  e._zod.parse = (f, p) => {
1308
1308
  h ?? (h = r.value);
1309
1309
  const _ = f.value;
1310
- return i(_) ? c && u && p?.async === !1 && p.jitless !== !0 ? (s || (s = o(t.shape)), f = s(f, p), l ? cn([], _, f, p, h, e) : f) : n(f, p) : (f.issues.push({
1310
+ return i(_) ? c && u && p?.async === !1 && p.jitless !== !0 ? (s || (s = o(t.shape)), f = s(f, p), d ? cn([], _, f, p, h, e) : f) : n(f, p) : (f.issues.push({
1311
1311
  expected: "object",
1312
1312
  code: "invalid_type",
1313
1313
  input: _,
@@ -1319,19 +1319,19 @@ function ht(e, t, n, r) {
1319
1319
  for (const s of e)
1320
1320
  if (s.issues.length === 0)
1321
1321
  return t.value = s.value, t;
1322
- const o = e.filter((s) => !te(s));
1322
+ const o = e.filter((s) => !ne(s));
1323
1323
  return o.length === 1 ? (t.value = o[0].value, o[0]) : (t.issues.push({
1324
1324
  code: "invalid_union",
1325
1325
  input: t.value,
1326
1326
  inst: n,
1327
- errors: e.map((s) => s.issues.map((i) => Y(i, r, G())))
1327
+ errors: e.map((s) => s.issues.map((i) => X(i, r, Y())))
1328
1328
  }), t);
1329
1329
  }
1330
- const rt = /* @__PURE__ */ d("$ZodUnion", (e, t) => {
1331
- S.init(e, t), y(e._zod, "optin", () => t.options.some((r) => r._zod.optin === "optional") ? "optional" : void 0), y(e._zod, "optout", () => t.options.some((r) => r._zod.optout === "optional") ? "optional" : void 0), y(e._zod, "values", () => {
1330
+ const rt = /* @__PURE__ */ l("$ZodUnion", (e, t) => {
1331
+ S.init(e, t), w(e._zod, "optin", () => t.options.some((r) => r._zod.optin === "optional") ? "optional" : void 0), w(e._zod, "optout", () => t.options.some((r) => r._zod.optout === "optional") ? "optional" : void 0), w(e._zod, "values", () => {
1332
1332
  if (t.options.every((r) => r._zod.values))
1333
1333
  return new Set(t.options.flatMap((r) => Array.from(r._zod.values)));
1334
- }), y(e._zod, "pattern", () => {
1334
+ }), w(e._zod, "pattern", () => {
1335
1335
  if (t.options.every((r) => r._zod.pattern)) {
1336
1336
  const r = t.options.map((o) => o._zod.pattern);
1337
1337
  return new RegExp(`^(${r.map((o) => et(o.source)).join("|")})$`);
@@ -1358,10 +1358,10 @@ const rt = /* @__PURE__ */ d("$ZodUnion", (e, t) => {
1358
1358
  }
1359
1359
  return s ? Promise.all(i).then((c) => ht(c, r, e, o)) : ht(i, r, e, o);
1360
1360
  };
1361
- }), Jo = /* @__PURE__ */ d("$ZodDiscriminatedUnion", (e, t) => {
1361
+ }), Jo = /* @__PURE__ */ l("$ZodDiscriminatedUnion", (e, t) => {
1362
1362
  t.inclusive = !1, rt.init(e, t);
1363
1363
  const n = e._zod.parse;
1364
- y(e._zod, "propValues", () => {
1364
+ w(e._zod, "propValues", () => {
1365
1365
  const o = {};
1366
1366
  for (const s of t.options) {
1367
1367
  const i = s._zod.propValues;
@@ -1410,7 +1410,7 @@ const rt = /* @__PURE__ */ d("$ZodUnion", (e, t) => {
1410
1410
  inst: e
1411
1411
  }), o);
1412
1412
  };
1413
- }), Lo = /* @__PURE__ */ d("$ZodIntersection", (e, t) => {
1413
+ }), Lo = /* @__PURE__ */ l("$ZodIntersection", (e, t) => {
1414
1414
  S.init(e, t), e._zod.parse = (n, r) => {
1415
1415
  const o = n.value, s = t.left._zod.run({ value: o, issues: [] }, r), i = t.right._zod.run({ value: o, issues: [] }, r);
1416
1416
  return s instanceof Promise || i instanceof Promise ? Promise.all([s, i]).then(([a, u]) => pt(n, a, u)) : pt(n, s, i);
@@ -1421,7 +1421,7 @@ function qe(e, t) {
1421
1421
  return { valid: !0, data: e };
1422
1422
  if (e instanceof Date && t instanceof Date && +e == +t)
1423
1423
  return { valid: !0, data: e };
1424
- if (de(e) && de(t)) {
1424
+ if (le(e) && le(t)) {
1425
1425
  const n = Object.keys(t), r = Object.keys(e).filter((s) => n.indexOf(s) !== -1), o = { ...e, ...t };
1426
1426
  for (const s of r) {
1427
1427
  const i = qe(e[s], t[s]);
@@ -1468,14 +1468,14 @@ function pt(e, t, n) {
1468
1468
  else
1469
1469
  e.issues.push(c);
1470
1470
  const s = [...r].filter(([, c]) => c.l && c.r).map(([c]) => c);
1471
- if (s.length && o && e.issues.push({ ...o, keys: s }), te(e))
1471
+ if (s.length && o && e.issues.push({ ...o, keys: s }), ne(e))
1472
1472
  return e;
1473
1473
  const i = qe(t.value, n.value);
1474
1474
  if (!i.valid)
1475
1475
  throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(i.mergeErrorPath)}`);
1476
1476
  return e.value = i.data, e;
1477
1477
  }
1478
- const un = /* @__PURE__ */ d("$ZodEnum", (e, t) => {
1478
+ const un = /* @__PURE__ */ l("$ZodEnum", (e, t) => {
1479
1479
  S.init(e, t);
1480
1480
  const n = Ut(t.entries), r = new Set(n);
1481
1481
  e._zod.values = r, e._zod.pattern = new RegExp(`^(${n.filter((o) => rr.has(typeof o)).map((o) => typeof o == "string" ? ie(o) : o.toString()).join("|")})$`), e._zod.parse = (o, s) => {
@@ -1487,7 +1487,7 @@ const un = /* @__PURE__ */ d("$ZodEnum", (e, t) => {
1487
1487
  inst: e
1488
1488
  }), o;
1489
1489
  };
1490
- }), Vo = /* @__PURE__ */ d("$ZodLiteral", (e, t) => {
1490
+ }), Vo = /* @__PURE__ */ l("$ZodLiteral", (e, t) => {
1491
1491
  if (S.init(e, t), t.values.length === 0)
1492
1492
  throw new Error("Cannot create literal schema with no valid values");
1493
1493
  const n = new Set(t.values);
@@ -1500,7 +1500,7 @@ const un = /* @__PURE__ */ d("$ZodEnum", (e, t) => {
1500
1500
  inst: e
1501
1501
  }), r;
1502
1502
  };
1503
- }), qo = /* @__PURE__ */ d("$ZodTransform", (e, t) => {
1503
+ }), qo = /* @__PURE__ */ l("$ZodTransform", (e, t) => {
1504
1504
  S.init(e, t), e._zod.optin = "optional", e._zod.parse = (n, r) => {
1505
1505
  if (r.direction === "backward")
1506
1506
  throw new Ft(e.constructor.name);
@@ -1508,15 +1508,15 @@ const un = /* @__PURE__ */ d("$ZodEnum", (e, t) => {
1508
1508
  if (r.async)
1509
1509
  return (o instanceof Promise ? o : Promise.resolve(o)).then((i) => (n.value = i, n.fallback = !0, n));
1510
1510
  if (o instanceof Promise)
1511
- throw new ne();
1511
+ throw new re();
1512
1512
  return n.value = o, n.fallback = !0, n;
1513
1513
  };
1514
1514
  });
1515
1515
  function mt(e, t) {
1516
1516
  return t === void 0 && (e.issues.length || e.fallback) ? { issues: [], value: void 0 } : e;
1517
1517
  }
1518
- const ot = /* @__PURE__ */ d("$ZodOptional", (e, t) => {
1519
- S.init(e, t), e._zod.optin = "optional", e._zod.optout = "optional", y(e._zod, "values", () => t.innerType._zod.values ? /* @__PURE__ */ new Set([...t.innerType._zod.values, void 0]) : void 0), y(e._zod, "pattern", () => {
1518
+ const ot = /* @__PURE__ */ l("$ZodOptional", (e, t) => {
1519
+ S.init(e, t), e._zod.optin = "optional", e._zod.optout = "optional", w(e._zod, "values", () => t.innerType._zod.values ? /* @__PURE__ */ new Set([...t.innerType._zod.values, void 0]) : void 0), w(e._zod, "pattern", () => {
1520
1520
  const n = t.innerType._zod.pattern;
1521
1521
  return n ? new RegExp(`^(${et(n.source)})?$`) : void 0;
1522
1522
  }), e._zod.parse = (n, r) => {
@@ -1526,15 +1526,15 @@ const ot = /* @__PURE__ */ d("$ZodOptional", (e, t) => {
1526
1526
  }
1527
1527
  return n.value === void 0 ? n : t.innerType._zod.run(n, r);
1528
1528
  };
1529
- }), Ho = /* @__PURE__ */ d("$ZodExactOptional", (e, t) => {
1530
- ot.init(e, t), y(e._zod, "values", () => t.innerType._zod.values), y(e._zod, "pattern", () => t.innerType._zod.pattern), e._zod.parse = (n, r) => t.innerType._zod.run(n, r);
1531
- }), Wo = /* @__PURE__ */ d("$ZodNullable", (e, t) => {
1532
- S.init(e, t), y(e._zod, "optin", () => t.innerType._zod.optin), y(e._zod, "optout", () => t.innerType._zod.optout), y(e._zod, "pattern", () => {
1529
+ }), Ho = /* @__PURE__ */ l("$ZodExactOptional", (e, t) => {
1530
+ ot.init(e, t), w(e._zod, "values", () => t.innerType._zod.values), w(e._zod, "pattern", () => t.innerType._zod.pattern), e._zod.parse = (n, r) => t.innerType._zod.run(n, r);
1531
+ }), Wo = /* @__PURE__ */ l("$ZodNullable", (e, t) => {
1532
+ S.init(e, t), w(e._zod, "optin", () => t.innerType._zod.optin), w(e._zod, "optout", () => t.innerType._zod.optout), w(e._zod, "pattern", () => {
1533
1533
  const n = t.innerType._zod.pattern;
1534
1534
  return n ? new RegExp(`^(${et(n.source)}|null)$`) : void 0;
1535
- }), y(e._zod, "values", () => t.innerType._zod.values ? /* @__PURE__ */ new Set([...t.innerType._zod.values, null]) : void 0), e._zod.parse = (n, r) => n.value === null ? n : t.innerType._zod.run(n, r);
1536
- }), Bo = /* @__PURE__ */ d("$ZodDefault", (e, t) => {
1537
- S.init(e, t), e._zod.optin = "optional", y(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (n, r) => {
1535
+ }), w(e._zod, "values", () => t.innerType._zod.values ? /* @__PURE__ */ new Set([...t.innerType._zod.values, null]) : void 0), e._zod.parse = (n, r) => n.value === null ? n : t.innerType._zod.run(n, r);
1536
+ }), Bo = /* @__PURE__ */ l("$ZodDefault", (e, t) => {
1537
+ S.init(e, t), e._zod.optin = "optional", w(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (n, r) => {
1538
1538
  if (r.direction === "backward")
1539
1539
  return t.innerType._zod.run(n, r);
1540
1540
  if (n.value === void 0)
@@ -1546,10 +1546,10 @@ const ot = /* @__PURE__ */ d("$ZodOptional", (e, t) => {
1546
1546
  function _t(e, t) {
1547
1547
  return e.value === void 0 && (e.value = t.defaultValue), e;
1548
1548
  }
1549
- const Ko = /* @__PURE__ */ d("$ZodPrefault", (e, t) => {
1550
- S.init(e, t), e._zod.optin = "optional", y(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (n, r) => (r.direction === "backward" || n.value === void 0 && (n.value = t.defaultValue), t.innerType._zod.run(n, r));
1551
- }), Go = /* @__PURE__ */ d("$ZodNonOptional", (e, t) => {
1552
- S.init(e, t), y(e._zod, "values", () => {
1549
+ const Ko = /* @__PURE__ */ l("$ZodPrefault", (e, t) => {
1550
+ S.init(e, t), e._zod.optin = "optional", w(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (n, r) => (r.direction === "backward" || n.value === void 0 && (n.value = t.defaultValue), t.innerType._zod.run(n, r));
1551
+ }), Go = /* @__PURE__ */ l("$ZodNonOptional", (e, t) => {
1552
+ S.init(e, t), w(e._zod, "values", () => {
1553
1553
  const n = t.innerType._zod.values;
1554
1554
  return n ? new Set([...n].filter((r) => r !== void 0)) : void 0;
1555
1555
  }), e._zod.parse = (n, r) => {
@@ -1565,27 +1565,27 @@ function gt(e, t) {
1565
1565
  inst: t
1566
1566
  }), e;
1567
1567
  }
1568
- const Yo = /* @__PURE__ */ d("$ZodCatch", (e, t) => {
1569
- S.init(e, t), e._zod.optin = "optional", y(e._zod, "optout", () => t.innerType._zod.optout), y(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (n, r) => {
1568
+ const Yo = /* @__PURE__ */ l("$ZodCatch", (e, t) => {
1569
+ S.init(e, t), e._zod.optin = "optional", w(e._zod, "optout", () => t.innerType._zod.optout), w(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (n, r) => {
1570
1570
  if (r.direction === "backward")
1571
1571
  return t.innerType._zod.run(n, r);
1572
1572
  const o = t.innerType._zod.run(n, r);
1573
1573
  return o instanceof Promise ? o.then((s) => (n.value = s.value, s.issues.length && (n.value = t.catchValue({
1574
1574
  ...n,
1575
1575
  error: {
1576
- issues: s.issues.map((i) => Y(i, r, G()))
1576
+ issues: s.issues.map((i) => X(i, r, Y()))
1577
1577
  },
1578
1578
  input: n.value
1579
1579
  }), n.issues = [], n.fallback = !0), n)) : (n.value = o.value, o.issues.length && (n.value = t.catchValue({
1580
1580
  ...n,
1581
1581
  error: {
1582
- issues: o.issues.map((s) => Y(s, r, G()))
1582
+ issues: o.issues.map((s) => X(s, r, Y()))
1583
1583
  },
1584
1584
  input: n.value
1585
1585
  }), n.issues = [], n.fallback = !0), n);
1586
1586
  };
1587
- }), Xo = /* @__PURE__ */ d("$ZodPipe", (e, t) => {
1588
- S.init(e, t), y(e._zod, "values", () => t.in._zod.values), y(e._zod, "optin", () => t.in._zod.optin), y(e._zod, "optout", () => t.out._zod.optout), y(e._zod, "propValues", () => t.in._zod.propValues), e._zod.parse = (n, r) => {
1587
+ }), Xo = /* @__PURE__ */ l("$ZodPipe", (e, t) => {
1588
+ S.init(e, t), w(e._zod, "values", () => t.in._zod.values), w(e._zod, "optin", () => t.in._zod.optin), w(e._zod, "optout", () => t.out._zod.optout), w(e._zod, "propValues", () => t.in._zod.propValues), e._zod.parse = (n, r) => {
1589
1589
  if (r.direction === "backward") {
1590
1590
  const s = t.out._zod.run(n, r);
1591
1591
  return s instanceof Promise ? s.then((i) => _e(i, t.in, r)) : _e(s, t.in, r);
@@ -1597,8 +1597,8 @@ const Yo = /* @__PURE__ */ d("$ZodCatch", (e, t) => {
1597
1597
  function _e(e, t, n) {
1598
1598
  return e.issues.length ? (e.aborted = !0, e) : t._zod.run({ value: e.value, issues: e.issues, fallback: e.fallback }, n);
1599
1599
  }
1600
- const Qo = /* @__PURE__ */ d("$ZodReadonly", (e, t) => {
1601
- S.init(e, t), y(e._zod, "propValues", () => t.innerType._zod.propValues), y(e._zod, "values", () => t.innerType._zod.values), y(e._zod, "optin", () => t.innerType?._zod?.optin), y(e._zod, "optout", () => t.innerType?._zod?.optout), e._zod.parse = (n, r) => {
1600
+ const Qo = /* @__PURE__ */ l("$ZodReadonly", (e, t) => {
1601
+ S.init(e, t), w(e._zod, "propValues", () => t.innerType._zod.propValues), w(e._zod, "values", () => t.innerType._zod.values), w(e._zod, "optin", () => t.innerType?._zod?.optin), w(e._zod, "optout", () => t.innerType?._zod?.optout), e._zod.parse = (n, r) => {
1602
1602
  if (r.direction === "backward")
1603
1603
  return t.innerType._zod.run(n, r);
1604
1604
  const o = t.innerType._zod.run(n, r);
@@ -1608,7 +1608,7 @@ const Qo = /* @__PURE__ */ d("$ZodReadonly", (e, t) => {
1608
1608
  function vt(e) {
1609
1609
  return e.value = Object.freeze(e.value), e;
1610
1610
  }
1611
- const ei = /* @__PURE__ */ d("$ZodCustom", (e, t) => {
1611
+ const ei = /* @__PURE__ */ l("$ZodCustom", (e, t) => {
1612
1612
  R.init(e, t), S.init(e, t), e._zod.parse = (n, r) => n, e._zod.check = (n) => {
1613
1613
  const r = n.value, o = t.fn(r);
1614
1614
  if (o instanceof Promise)
@@ -1628,7 +1628,7 @@ function yt(e, t, n, r) {
1628
1628
  continue: !r._zod.def.abort
1629
1629
  // params: inst._zod.def.params,
1630
1630
  };
1631
- r._zod.def.params && (o.params = r._zod.def.params), t.issues.push(le(o));
1631
+ r._zod.def.params && (o.params = r._zod.def.params), t.issues.push(de(o));
1632
1632
  }
1633
1633
  }
1634
1634
  var wt;
@@ -1667,7 +1667,7 @@ function ni() {
1667
1667
  (wt = globalThis).__zod_globalRegistry ?? (wt.__zod_globalRegistry = ni());
1668
1668
  const ae = globalThis.__zod_globalRegistry;
1669
1669
  // @__NO_SIDE_EFFECTS__
1670
- function dn(e, t) {
1670
+ function ln(e, t) {
1671
1671
  return new e({
1672
1672
  type: "string",
1673
1673
  ...m(t)
@@ -1757,7 +1757,7 @@ function ui(e, t) {
1757
1757
  });
1758
1758
  }
1759
1759
  // @__NO_SIDE_EFFECTS__
1760
- function di(e, t) {
1760
+ function li(e, t) {
1761
1761
  return new e({
1762
1762
  type: "string",
1763
1763
  format: "nanoid",
@@ -1767,7 +1767,7 @@ function di(e, t) {
1767
1767
  });
1768
1768
  }
1769
1769
  // @__NO_SIDE_EFFECTS__
1770
- function li(e, t) {
1770
+ function di(e, t) {
1771
1771
  return new e({
1772
1772
  type: "string",
1773
1773
  format: "cuid",
@@ -1937,7 +1937,7 @@ function Zi(e, t) {
1937
1937
  });
1938
1938
  }
1939
1939
  // @__NO_SIDE_EFFECTS__
1940
- function ln(e, t) {
1940
+ function dn(e, t) {
1941
1941
  return new e({
1942
1942
  type: "number",
1943
1943
  checks: [],
@@ -2160,10 +2160,10 @@ function Vi(e, t, n) {
2160
2160
  function qi(e, t) {
2161
2161
  const n = /* @__PURE__ */ Hi((r) => (r.addIssue = (o) => {
2162
2162
  if (typeof o == "string")
2163
- r.issues.push(le(o, r.value, n._zod.def));
2163
+ r.issues.push(de(o, r.value, n._zod.def));
2164
2164
  else {
2165
2165
  const s = o;
2166
- s.fatal && (s.continue = !1), s.code ?? (s.code = "custom"), s.input ?? (s.input = r.value), s.inst ?? (s.inst = n), s.continue ?? (s.continue = !n._zod.def.abort), r.issues.push(le(s));
2166
+ s.fatal && (s.continue = !1), s.code ?? (s.code = "custom"), s.input ?? (s.input = r.value), s.inst ?? (s.inst = n), s.continue ?? (s.continue = !n._zod.def.abort), r.issues.push(de(s));
2167
2167
  }
2168
2168
  }, e(r.value, r)), t);
2169
2169
  return n;
@@ -2204,21 +2204,21 @@ function z(e, t, n = { path: [], schemaPath: [] }) {
2204
2204
  if (c)
2205
2205
  i.schema = c;
2206
2206
  else {
2207
- const l = {
2207
+ const d = {
2208
2208
  ...n,
2209
2209
  schemaPath: [...n.schemaPath, e],
2210
2210
  path: n.path
2211
2211
  };
2212
2212
  if (e._zod.processJSONSchema)
2213
- e._zod.processJSONSchema(t, i.schema, l);
2213
+ e._zod.processJSONSchema(t, i.schema, d);
2214
2214
  else {
2215
2215
  const f = i.schema, p = t.processors[o.type];
2216
2216
  if (!p)
2217
2217
  throw new Error(`[toJSONSchema]: Non-representable type encountered: ${o.type}`);
2218
- p(e, t, f, l);
2218
+ p(e, t, f, d);
2219
2219
  }
2220
2220
  const h = e._zod.parent;
2221
- h && (i.ref || (i.ref = h), z(h, t, l), t.seen.get(h).isParent = !0);
2221
+ h && (i.ref || (i.ref = h), z(h, t, d), t.seen.get(h).isParent = !0);
2222
2222
  }
2223
2223
  const a = t.metadataRegistry.get(e);
2224
2224
  return a && Object.assign(i.schema, a), t.io === "input" && C(e) && (delete i.schema.examples, delete i.schema.default), t.io === "input" && "_prefault" in i.schema && ((r = i.schema).default ?? (r.default = i.schema._prefault)), delete i.schema._prefault, t.seen.get(e).schema;
@@ -2248,17 +2248,17 @@ function Ze(e, t) {
2248
2248
  }
2249
2249
  if (i[1] === n)
2250
2250
  return { ref: "#" };
2251
- const u = `#/${c}/`, l = i[1].schema.id ?? `__schema${e.counter++}`;
2252
- return { defId: l, ref: u + l };
2251
+ const u = `#/${c}/`, d = i[1].schema.id ?? `__schema${e.counter++}`;
2252
+ return { defId: d, ref: u + d };
2253
2253
  }, s = (i) => {
2254
2254
  if (i[1].schema.$ref)
2255
2255
  return;
2256
2256
  const c = i[1], { ref: a, defId: u } = o(i);
2257
2257
  c.def = { ...c.schema }, u && (c.defId = u);
2258
- const l = c.schema;
2259
- for (const h in l)
2260
- delete l[h];
2261
- l.$ref = a;
2258
+ const d = c.schema;
2259
+ for (const h in d)
2260
+ delete d[h];
2261
+ d.$ref = a;
2262
2262
  };
2263
2263
  if (e.cycles === "throw")
2264
2264
  for (const i of e.seen.entries()) {
@@ -2303,13 +2303,13 @@ function Ie(e, t) {
2303
2303
  const a = e.seen.get(c);
2304
2304
  if (a.ref === null)
2305
2305
  return;
2306
- const u = a.def ?? a.schema, l = { ...u }, h = a.ref;
2306
+ const u = a.def ?? a.schema, d = { ...u }, h = a.ref;
2307
2307
  if (a.ref = null, h) {
2308
2308
  r(h);
2309
2309
  const p = e.seen.get(h), _ = p.schema;
2310
- if (_.$ref && (e.target === "draft-07" || e.target === "draft-04" || e.target === "openapi-3.0") ? (u.allOf = u.allOf ?? [], u.allOf.push(_)) : Object.assign(u, _), Object.assign(u, l), c._zod.parent === h)
2310
+ if (_.$ref && (e.target === "draft-07" || e.target === "draft-04" || e.target === "openapi-3.0") ? (u.allOf = u.allOf ?? [], u.allOf.push(_)) : Object.assign(u, _), Object.assign(u, d), c._zod.parent === h)
2311
2311
  for (const k in u)
2312
- k === "$ref" || k === "allOf" || k in l || delete u[k];
2312
+ k === "$ref" || k === "allOf" || k in d || delete u[k];
2313
2313
  if (_.$ref && p.def)
2314
2314
  for (const k in u)
2315
2315
  k === "$ref" || k === "allOf" || k in p.def && JSON.stringify(u[k]) === JSON.stringify(p.def[k]) && delete u[k];
@@ -2423,19 +2423,19 @@ const Wi = (e, t = {}) => (n) => {
2423
2423
  o.type = "string";
2424
2424
  const { minimum: s, maximum: i, format: c, patterns: a, contentEncoding: u } = e._zod.bag;
2425
2425
  if (typeof s == "number" && (o.minLength = s), typeof i == "number" && (o.maxLength = i), c && (o.format = Bi[c] ?? c, o.format === "" && delete o.format, c === "time" && delete o.format), u && (o.contentEncoding = u), a && a.size > 0) {
2426
- const l = [...a];
2427
- l.length === 1 ? o.pattern = l[0].source : l.length > 1 && (o.allOf = [
2428
- ...l.map((h) => ({
2426
+ const d = [...a];
2427
+ d.length === 1 ? o.pattern = d[0].source : d.length > 1 && (o.allOf = [
2428
+ ...d.map((h) => ({
2429
2429
  ...t.target === "draft-07" || t.target === "draft-04" || t.target === "openapi-3.0" ? { type: "string" } : {},
2430
2430
  pattern: h.source
2431
2431
  }))
2432
2432
  ]);
2433
2433
  }
2434
2434
  }, vn = (e, t, n, r) => {
2435
- const o = n, { minimum: s, maximum: i, format: c, multipleOf: a, exclusiveMaximum: u, exclusiveMinimum: l } = e._zod.bag;
2435
+ const o = n, { minimum: s, maximum: i, format: c, multipleOf: a, exclusiveMaximum: u, exclusiveMinimum: d } = e._zod.bag;
2436
2436
  typeof c == "string" && c.includes("int") ? o.type = "integer" : o.type = "number";
2437
- const h = typeof l == "number" && l >= (s ?? Number.NEGATIVE_INFINITY), f = typeof u == "number" && u <= (i ?? Number.POSITIVE_INFINITY), p = t.target === "draft-04" || t.target === "openapi-3.0";
2438
- h ? p ? (o.minimum = l, o.exclusiveMinimum = !0) : o.exclusiveMinimum = l : typeof s == "number" && (o.minimum = s), f ? p ? (o.maximum = u, o.exclusiveMaximum = !0) : o.exclusiveMaximum = u : typeof i == "number" && (o.maximum = i), typeof a == "number" && (o.multipleOf = a);
2437
+ const h = typeof d == "number" && d >= (s ?? Number.NEGATIVE_INFINITY), f = typeof u == "number" && u <= (i ?? Number.POSITIVE_INFINITY), p = t.target === "draft-04" || t.target === "openapi-3.0";
2438
+ h ? p ? (o.minimum = d, o.exclusiveMinimum = !0) : o.exclusiveMinimum = d : typeof s == "number" && (o.minimum = s), f ? p ? (o.maximum = u, o.exclusiveMaximum = !0) : o.exclusiveMaximum = u : typeof i == "number" && (o.maximum = i), typeof a == "number" && (o.multipleOf = a);
2439
2439
  }, yn = (e, t, n, r) => {
2440
2440
  n.type = "boolean";
2441
2441
  }, Ki = (e, t, n, r) => {
@@ -2527,8 +2527,8 @@ const Wi = (e, t = {}) => (n) => {
2527
2527
  path: [...r.path, "properties", u]
2528
2528
  });
2529
2529
  const c = new Set(Object.keys(i)), a = new Set([...c].filter((u) => {
2530
- const l = s.shape[u]._zod;
2531
- return t.io === "input" ? l.optin === void 0 : l.optout === void 0;
2530
+ const d = s.shape[u]._zod;
2531
+ return t.io === "input" ? d.optin === void 0 : d.optout === void 0;
2532
2532
  }));
2533
2533
  a.size > 0 && (o.required = Array.from(a)), s.catchall?._zod.def.type === "never" ? o.additionalProperties = !1 : s.catchall ? s.catchall && (o.additionalProperties = z(s.catchall, t, {
2534
2534
  ...r,
@@ -2565,20 +2565,20 @@ const Wi = (e, t = {}) => (n) => {
2565
2565
  t.target === "draft-2020-12" ? (o.prefixItems = a, u && (o.items = u)) : t.target === "openapi-3.0" ? (o.items = {
2566
2566
  anyOf: a
2567
2567
  }, u && o.items.anyOf.push(u), o.minItems = a.length, u || (o.maxItems = a.length)) : (o.items = a, u && (o.additionalItems = u));
2568
- const { minimum: l, maximum: h } = e._zod.bag;
2569
- typeof l == "number" && (o.minItems = l), typeof h == "number" && (o.maxItems = h);
2570
- }, ds = (e, t, n, r) => {
2568
+ const { minimum: d, maximum: h } = e._zod.bag;
2569
+ typeof d == "number" && (o.minItems = d), typeof h == "number" && (o.maxItems = h);
2570
+ }, ls = (e, t, n, r) => {
2571
2571
  const o = n, s = e._zod.def;
2572
2572
  o.type = "object";
2573
2573
  const i = s.keyType, a = i._zod.bag?.patterns;
2574
2574
  if (s.mode === "loose" && a && a.size > 0) {
2575
- const l = z(s.valueType, t, {
2575
+ const d = z(s.valueType, t, {
2576
2576
  ...r,
2577
2577
  path: [...r.path, "patternProperties", "*"]
2578
2578
  });
2579
2579
  o.patternProperties = {};
2580
2580
  for (const h of a)
2581
- o.patternProperties[h.source] = l;
2581
+ o.patternProperties[h.source] = d;
2582
2582
  } else
2583
2583
  (t.target === "draft-07" || t.target === "draft-2020-12") && (o.propertyNames = z(s.keyType, t, {
2584
2584
  ...r,
@@ -2589,8 +2589,8 @@ const Wi = (e, t = {}) => (n) => {
2589
2589
  });
2590
2590
  const u = i._zod.values;
2591
2591
  if (u) {
2592
- const l = [...u].filter((h) => typeof h == "string" || typeof h == "number");
2593
- l.length > 0 && (o.required = l);
2592
+ const d = [...u].filter((h) => typeof h == "string" || typeof h == "number");
2593
+ d.length > 0 && (o.required = d);
2594
2594
  }
2595
2595
  }, Pn = (e, t, n, r) => {
2596
2596
  const o = e._zod.def, s = z(o.innerType, t, r), i = t.seen.get(e);
@@ -2632,7 +2632,7 @@ const Wi = (e, t = {}) => (n) => {
2632
2632
  z(o.innerType, t, r);
2633
2633
  const s = t.seen.get(e);
2634
2634
  s.ref = o.innerType, n.readOnly = !0;
2635
- }, ls = (e, t, n, r) => {
2635
+ }, ds = (e, t, n, r) => {
2636
2636
  const o = e._zod.def;
2637
2637
  z(o.innerType, t, r);
2638
2638
  const s = t.seen.get(e);
@@ -2676,7 +2676,7 @@ const Wi = (e, t = {}) => (n) => {
2676
2676
  union: In,
2677
2677
  intersection: On,
2678
2678
  tuple: us,
2679
- record: ds,
2679
+ record: ls,
2680
2680
  nullable: Pn,
2681
2681
  nonoptional: Tn,
2682
2682
  default: Nn,
@@ -2684,7 +2684,7 @@ const Wi = (e, t = {}) => (n) => {
2684
2684
  catch: Rn,
2685
2685
  pipe: xn,
2686
2686
  readonly: jn,
2687
- promise: ls,
2687
+ promise: ds,
2688
2688
  optional: it,
2689
2689
  lazy: fs
2690
2690
  };
@@ -2692,8 +2692,8 @@ function hs(e, t) {
2692
2692
  if ("_idmap" in e) {
2693
2693
  const r = e, o = Ee({ ...t, processors: St }), s = {};
2694
2694
  for (const a of r._idmap.entries()) {
2695
- const [u, l] = a;
2696
- z(l, o);
2695
+ const [u, d] = a;
2696
+ z(d, o);
2697
2697
  }
2698
2698
  const i = {}, c = {
2699
2699
  registry: r,
@@ -2702,8 +2702,8 @@ function hs(e, t) {
2702
2702
  };
2703
2703
  o.external = c;
2704
2704
  for (const a of r._idmap.entries()) {
2705
- const [u, l] = a;
2706
- Ze(o, l), i[u] = Ie(o, l);
2705
+ const [u, d] = a;
2706
+ Ze(o, d), i[u] = Ie(o, d);
2707
2707
  }
2708
2708
  if (Object.keys(s).length > 0) {
2709
2709
  const a = o.target === "draft-2020-12" ? "$defs" : "definitions";
@@ -2716,10 +2716,10 @@ function hs(e, t) {
2716
2716
  const n = Ee({ ...t, processors: St });
2717
2717
  return z(e, n), Ze(n, e), Ie(n, e);
2718
2718
  }
2719
- const U = /* @__PURE__ */ d("ZodMiniType", (e, t) => {
2719
+ const U = /* @__PURE__ */ l("ZodMiniType", (e, t) => {
2720
2720
  if (!e._zod)
2721
2721
  throw new Error("Uninitialized schema in ZodMiniType.");
2722
- S.init(e, t), e.def = t, e.type = t.type, e.parse = (n, r) => _r(e, n, r, { callee: e.parse }), e.safeParse = (n, r) => J(e, n, r), e.parseAsync = async (n, r) => gr(e, n, r, { callee: e.parseAsync }), e.safeParseAsync = async (n, r) => Wt(e, n, r), e.check = (...n) => e.clone({
2722
+ S.init(e, t), e.def = t, e.type = t.type, e.parse = (n, r) => _r(e, n, r, { callee: e.parse }), e.safeParse = (n, r) => F(e, n, r), e.parseAsync = async (n, r) => gr(e, n, r, { callee: e.parseAsync }), e.safeParseAsync = async (n, r) => Wt(e, n, r), e.check = (...n) => e.clone({
2723
2723
  ...t,
2724
2724
  checks: [
2725
2725
  ...t.checks ?? [],
@@ -2727,50 +2727,50 @@ const U = /* @__PURE__ */ d("ZodMiniType", (e, t) => {
2727
2727
  _zod: { check: r, def: { check: "custom" }, onattach: [] }
2728
2728
  } : r)
2729
2729
  ]
2730
- }, { parent: !0 }), e.with = e.check, e.clone = (n, r) => V(e, n, r), e.brand = () => e, e.register = ((n, r) => (n.add(e, r), e)), e.apply = (n) => n(e);
2731
- }), ps = /* @__PURE__ */ d("ZodMiniString", (e, t) => {
2730
+ }, { parent: !0 }), e.with = e.check, e.clone = (n, r) => L(e, n, r), e.brand = () => e, e.register = ((n, r) => (n.add(e, r), e)), e.apply = (n) => n(e);
2731
+ }), ps = /* @__PURE__ */ l("ZodMiniString", (e, t) => {
2732
2732
  Me.init(e, t), U.init(e, t);
2733
2733
  });
2734
2734
  // @__NO_SIDE_EFFECTS__
2735
2735
  function b(e) {
2736
- return /* @__PURE__ */ dn(ps, e);
2736
+ return /* @__PURE__ */ ln(ps, e);
2737
2737
  }
2738
- const An = /* @__PURE__ */ d("ZodMiniNumber", (e, t) => {
2738
+ const An = /* @__PURE__ */ l("ZodMiniNumber", (e, t) => {
2739
2739
  nt.init(e, t), U.init(e, t);
2740
2740
  });
2741
2741
  // @__NO_SIDE_EFFECTS__
2742
2742
  function We(e) {
2743
- return /* @__PURE__ */ ln(An, e);
2743
+ return /* @__PURE__ */ dn(An, e);
2744
2744
  }
2745
- const ms = /* @__PURE__ */ d("ZodMiniNumberFormat", (e, t) => {
2745
+ const ms = /* @__PURE__ */ l("ZodMiniNumberFormat", (e, t) => {
2746
2746
  tn.init(e, t), An.init(e, t);
2747
2747
  });
2748
2748
  // @__NO_SIDE_EFFECTS__
2749
2749
  function $t(e) {
2750
2750
  return /* @__PURE__ */ fn(ms, e);
2751
2751
  }
2752
- const _s = /* @__PURE__ */ d("ZodMiniBoolean", (e, t) => {
2752
+ const _s = /* @__PURE__ */ l("ZodMiniBoolean", (e, t) => {
2753
2753
  nn.init(e, t), U.init(e, t);
2754
2754
  });
2755
2755
  // @__NO_SIDE_EFFECTS__
2756
2756
  function st(e) {
2757
2757
  return /* @__PURE__ */ hn(_s, e);
2758
2758
  }
2759
- const gs = /* @__PURE__ */ d("ZodMiniUnknown", (e, t) => {
2759
+ const gs = /* @__PURE__ */ l("ZodMiniUnknown", (e, t) => {
2760
2760
  rn.init(e, t), U.init(e, t);
2761
2761
  });
2762
2762
  // @__NO_SIDE_EFFECTS__
2763
2763
  function Pe() {
2764
2764
  return /* @__PURE__ */ pn(gs);
2765
2765
  }
2766
- const vs = /* @__PURE__ */ d("ZodMiniVoid", (e, t) => {
2766
+ const vs = /* @__PURE__ */ l("ZodMiniVoid", (e, t) => {
2767
2767
  Fo.init(e, t), U.init(e, t);
2768
2768
  });
2769
2769
  // @__NO_SIDE_EFFECTS__
2770
2770
  function Et(e) {
2771
2771
  return /* @__PURE__ */ Oi(vs, e);
2772
2772
  }
2773
- const ys = /* @__PURE__ */ d("ZodMiniArray", (e, t) => {
2773
+ const ys = /* @__PURE__ */ l("ZodMiniArray", (e, t) => {
2774
2774
  on.init(e, t), U.init(e, t);
2775
2775
  });
2776
2776
  // @__NO_SIDE_EFFECTS__
@@ -2781,11 +2781,11 @@ function Fe(e, t) {
2781
2781
  ...m(t)
2782
2782
  });
2783
2783
  }
2784
- const ws = /* @__PURE__ */ d("ZodMiniObject", (e, t) => {
2785
- an.init(e, t), U.init(e, t), y(e, "shape", () => t.shape);
2784
+ const ws = /* @__PURE__ */ l("ZodMiniObject", (e, t) => {
2785
+ an.init(e, t), U.init(e, t), w(e, "shape", () => t.shape);
2786
2786
  });
2787
2787
  // @__NO_SIDE_EFFECTS__
2788
- function v(e, t) {
2788
+ function y(e, t) {
2789
2789
  const n = {
2790
2790
  type: "object",
2791
2791
  shape: e ?? {},
@@ -2793,7 +2793,7 @@ function v(e, t) {
2793
2793
  };
2794
2794
  return new ws(n);
2795
2795
  }
2796
- const bs = /* @__PURE__ */ d("ZodMiniUnion", (e, t) => {
2796
+ const bs = /* @__PURE__ */ l("ZodMiniUnion", (e, t) => {
2797
2797
  rt.init(e, t), U.init(e, t);
2798
2798
  });
2799
2799
  // @__NO_SIDE_EFFECTS__
@@ -2804,7 +2804,7 @@ function zs(e, t) {
2804
2804
  ...m(t)
2805
2805
  });
2806
2806
  }
2807
- const ks = /* @__PURE__ */ d("ZodMiniEnum", (e, t) => {
2807
+ const ks = /* @__PURE__ */ l("ZodMiniEnum", (e, t) => {
2808
2808
  un.init(e, t), U.init(e, t), e.options = Object.values(t.entries);
2809
2809
  });
2810
2810
  // @__NO_SIDE_EFFECTS__
@@ -2816,7 +2816,7 @@ function Zt(e, t) {
2816
2816
  ...m(t)
2817
2817
  });
2818
2818
  }
2819
- const Ss = /* @__PURE__ */ d("ZodMiniOptional", (e, t) => {
2819
+ const Ss = /* @__PURE__ */ l("ZodMiniOptional", (e, t) => {
2820
2820
  ot.init(e, t), U.init(e, t);
2821
2821
  });
2822
2822
  // @__NO_SIDE_EFFECTS__
@@ -3080,21 +3080,21 @@ function Ts(e) {
3080
3080
  528734635,
3081
3081
  1541459225
3082
3082
  ]), c = /* @__PURE__ */ new Uint32Array(64);
3083
- for (let l = 0; l < r; l += 64) {
3084
- for (let g = 0; g < 16; g++) c[g] = s.getUint32(l + g * 4, !1);
3083
+ for (let d = 0; d < r; d += 64) {
3084
+ for (let g = 0; g < 16; g++) c[g] = s.getUint32(d + g * 4, !1);
3085
3085
  for (let g = 16; g < 64; g++) {
3086
- const w = c[g - 15], E = c[g - 2], B = M(w, 7) ^ M(w, 18) ^ w >>> 3, Q = M(E, 17) ^ M(E, 19) ^ E >>> 10;
3087
- c[g] = c[g - 16] + B + c[g - 7] + Q >>> 0;
3086
+ const v = c[g - 15], E = c[g - 2], B = M(v, 7) ^ M(v, 18) ^ v >>> 3, ee = M(E, 17) ^ M(E, 19) ^ E >>> 10;
3087
+ c[g] = c[g - 16] + B + c[g - 7] + ee >>> 0;
3088
3088
  }
3089
- let h = i[0], f = i[1], p = i[2], _ = i[3], N = i[4], k = i[5], x = i[6], A = i[7];
3089
+ let h = i[0], f = i[1], p = i[2], _ = i[3], N = i[4], k = i[5], x = i[6], W = i[7];
3090
3090
  for (let g = 0; g < 64; g++) {
3091
- const w = M(N, 6) ^ M(N, 11) ^ M(N, 25), E = N & k ^ ~N & x, B = A + w + E + Ps[g] + c[g] >>> 0, Q = (M(h, 2) ^ M(h, 13) ^ M(h, 22)) + (h & f ^ h & p ^ f & p) >>> 0;
3092
- A = x, x = k, k = N, N = _ + B >>> 0, _ = p, p = f, f = h, h = B + Q >>> 0;
3091
+ const v = M(N, 6) ^ M(N, 11) ^ M(N, 25), E = N & k ^ ~N & x, B = W + v + E + Ps[g] + c[g] >>> 0, ee = (M(h, 2) ^ M(h, 13) ^ M(h, 22)) + (h & f ^ h & p ^ f & p) >>> 0;
3092
+ W = x, x = k, k = N, N = _ + B >>> 0, _ = p, p = f, f = h, h = B + ee >>> 0;
3093
3093
  }
3094
- i[0] = i[0] + h >>> 0, i[1] = i[1] + f >>> 0, i[2] = i[2] + p >>> 0, i[3] = i[3] + _ >>> 0, i[4] = i[4] + N >>> 0, i[5] = i[5] + k >>> 0, i[6] = i[6] + x >>> 0, i[7] = i[7] + A >>> 0;
3094
+ i[0] = i[0] + h >>> 0, i[1] = i[1] + f >>> 0, i[2] = i[2] + p >>> 0, i[3] = i[3] + _ >>> 0, i[4] = i[4] + N >>> 0, i[5] = i[5] + k >>> 0, i[6] = i[6] + x >>> 0, i[7] = i[7] + W >>> 0;
3095
3095
  }
3096
3096
  const a = /* @__PURE__ */ new Uint8Array(32), u = new DataView(a.buffer);
3097
- for (let l = 0; l < 8; l++) u.setUint32(l * 4, i[l], !1);
3097
+ for (let d = 0; d < 8; d++) u.setUint32(d * 4, i[d], !1);
3098
3098
  return a;
3099
3099
  }
3100
3100
  function Ns(e) {
@@ -3159,21 +3159,21 @@ function Rs(e) {
3159
3159
  const n = { params: ce(e.paramsSchema) };
3160
3160
  return t.description !== void 0 && (n.description = t.description), t.comment !== void 0 && (n.comment = t.comment), t.annotations !== void 0 && (n.annotations = t.annotations), n;
3161
3161
  }
3162
- function q(e, t) {
3162
+ function V(e, t) {
3163
3163
  return new Cs(e, t);
3164
3164
  }
3165
- const Ot = q({
3165
+ const Ot = V({
3166
3166
  id: "hubrpc.defaults",
3167
3167
  description: "Reflection: preset default service / interface on this connection."
3168
- }, { get: T(/* @__PURE__ */ v({}), /* @__PURE__ */ v({
3168
+ }, { get: T(/* @__PURE__ */ y({}), /* @__PURE__ */ y({
3169
3169
  serviceId: /* @__PURE__ */ I(/* @__PURE__ */ b()),
3170
3170
  interfaceId: /* @__PURE__ */ I(/* @__PURE__ */ b()),
3171
3171
  /** Hash of the preset interface, if known. */
3172
3172
  interfaceHash: /* @__PURE__ */ I(/* @__PURE__ */ b())
3173
- })) }), xs = /* @__PURE__ */ Fe(/* @__PURE__ */ v({
3173
+ })) }), xs = /* @__PURE__ */ Fe(/* @__PURE__ */ y({
3174
3174
  principal: /* @__PURE__ */ b(),
3175
3175
  transitive: /* @__PURE__ */ I(/* @__PURE__ */ st())
3176
- })), js = /* @__PURE__ */ v({
3176
+ })), js = /* @__PURE__ */ y({
3177
3177
  serviceId: /* @__PURE__ */ b(),
3178
3178
  interfaceId: /* @__PURE__ */ b(),
3179
3179
  /** Hash of the interface as implemented by this service. */
@@ -3186,11 +3186,11 @@ const Ot = q({
3186
3186
  * principals (OR). Omitted/empty => no root-principal requirement.
3187
3187
  */
3188
3188
  rootPrincipalSets: /* @__PURE__ */ I(/* @__PURE__ */ Fe(xs))
3189
- }), As = q({
3189
+ }), As = V({
3190
3190
  id: "hubrpc.directory",
3191
3191
  description: "Reflection: list services exposed by this endpoint. Can also list other directory services that can be explored."
3192
3192
  }, {
3193
- list: T(/* @__PURE__ */ v({
3193
+ list: T(/* @__PURE__ */ y({
3194
3194
  /** Filter: only return services implementing this interface id. */
3195
3195
  interfaceId: /* @__PURE__ */ I(/* @__PURE__ */ b()),
3196
3196
  /** Filter: only return entries for this service id. */
@@ -3201,7 +3201,7 @@ const Ot = q({
3201
3201
  limit: /* @__PURE__ */ I((/* @__PURE__ */ We()).check(/* @__PURE__ */ $t(), /* @__PURE__ */ Pi())),
3202
3202
  /** Soft cap on time the server spends gathering this page, in ms. */
3203
3203
  timeoutMs: /* @__PURE__ */ I((/* @__PURE__ */ We()).check(/* @__PURE__ */ $t(), /* @__PURE__ */ Ti()))
3204
- }), /* @__PURE__ */ v({
3204
+ }), /* @__PURE__ */ y({
3205
3205
  items: /* @__PURE__ */ Fe(js),
3206
3206
  /** Omitted => no more pages. */
3207
3207
  nextCursor: /* @__PURE__ */ I(/* @__PURE__ */ b()),
@@ -3225,14 +3225,14 @@ const Ot = q({
3225
3225
  * The request resolves when the caller cancels (or the connection
3226
3226
  * drops); the runtime auto-detaches the stream when it settles.
3227
3227
  */
3228
- watch: T(/* @__PURE__ */ v({
3228
+ watch: T(/* @__PURE__ */ y({
3229
3229
  /** Relevance hint: changes touching this interface id. */
3230
3230
  interfaceId: /* @__PURE__ */ I(/* @__PURE__ */ b()),
3231
3231
  /** Relevance hint: changes touching this service id. */
3232
3232
  serviceId: /* @__PURE__ */ I(/* @__PURE__ */ b())
3233
- }), /* @__PURE__ */ v({})).withStream({
3233
+ }), /* @__PURE__ */ y({})).withStream({
3234
3234
  /** Empty tick: "the directory may have changed; re-list." */
3235
- server: /* @__PURE__ */ v({})
3235
+ server: /* @__PURE__ */ y({})
3236
3236
  })
3237
3237
  });
3238
3238
  function Ds(e, t, n) {
@@ -3244,22 +3244,22 @@ function Ds(e, t, n) {
3244
3244
  n.signal.addEventListener("abort", () => r({}), { once: !0 });
3245
3245
  });
3246
3246
  }
3247
- const Ms = q({
3247
+ const Ms = V({
3248
3248
  id: "hubrpc.schemas",
3249
3249
  description: "Reflection: fetch interface schemas by id (+ optional hash). Must serve the interfaces advertised in this endpoint's directory."
3250
- }, { get: T(/* @__PURE__ */ v({
3250
+ }, { get: T(/* @__PURE__ */ y({
3251
3251
  interfaceId: /* @__PURE__ */ b(),
3252
3252
  /** Omit => server picks the version it exposes. */
3253
3253
  hash: /* @__PURE__ */ I(/* @__PURE__ */ b())
3254
- }), /* @__PURE__ */ v({
3254
+ }), /* @__PURE__ */ y({
3255
3255
  /** A full `SvcInterfaceSchema`. */
3256
3256
  schema: /* @__PURE__ */ Pe()
3257
- })) }), ee = {
3257
+ })) }), te = {
3258
3258
  /** callee → caller: progress, partial results. Routes like a response. */
3259
3259
  toCaller: "toCaller",
3260
3260
  /** caller → callee: input, cancellation, keepalive ping. */
3261
3261
  toCallee: "toCallee"
3262
- }, H = {
3262
+ }, q = {
3263
3263
  /**
3264
3264
  * Ask the callee to abort the in-flight request. Always {@link
3265
3265
  * StreamDir.toCallee}. The callee surfaces this as an `AbortSignal`
@@ -3282,10 +3282,10 @@ const Ms = q({
3282
3282
  * Carries no app effect — purely a liveness acknowledgement.
3283
3283
  */
3284
3284
  pong: "pong"
3285
- }, Fs = q({
3285
+ }, Fs = V({
3286
3286
  id: "$stream",
3287
3287
  description: "Reserved sub-protocol for in-flight stream messages correlated to a request by `requestId`."
3288
- }, { send: fe(/* @__PURE__ */ v({
3288
+ }, { send: fe(/* @__PURE__ */ y({
3289
3289
  /**
3290
3290
  * Id of the in-flight request the message belongs to.
3291
3291
  * The hub rewrites this across the forwarding boundary
@@ -3303,7 +3303,7 @@ const Ms = q({
3303
3303
  * exclusive with `payload` in practice: a control message
3304
3304
  * is interpreted by the runtime, not the application.
3305
3305
  */
3306
- control: /* @__PURE__ */ I(/* @__PURE__ */ v({
3306
+ control: /* @__PURE__ */ I(/* @__PURE__ */ y({
3307
3307
  type: /* @__PURE__ */ Zt([
3308
3308
  "cancel",
3309
3309
  "ping",
@@ -3320,7 +3320,7 @@ const Ms = q({
3320
3320
  })),
3321
3321
  /** Opaque app payload — typed per call by the request's stream schema. */
3322
3322
  payload: /* @__PURE__ */ I(/* @__PURE__ */ Pe())
3323
- }), { description: "Emit a stream message tied to the request `requestId`." }) }), Pt = `${Fs.info.id}::send`, F = {
3323
+ }), { description: "Emit a stream message tied to the request `requestId`." }) }), Pt = `${Fs.info.id}::send`, D = {
3324
3324
  parseError: -32700,
3325
3325
  invalidRequest: -32600,
3326
3326
  methodNotFound: -32601,
@@ -3388,7 +3388,7 @@ var qs = class Un {
3388
3388
  withSender(t) {
3389
3389
  return new Un(t(this.sender), this._setHandler);
3390
3390
  }
3391
- }, re = class extends Error {
3391
+ }, G = class extends Error {
3392
3392
  code;
3393
3393
  data;
3394
3394
  constructor(e, t, n) {
@@ -3464,14 +3464,14 @@ var Jn = class Ln {
3464
3464
  resolve: i,
3465
3465
  reject: c
3466
3466
  }), r?.onStreamMessage && this._streamListeners.set(s, r.onStreamMessage);
3467
- const u = this._makePinger(o, ee.toCallee);
3467
+ const u = this._makePinger(o, te.toCallee);
3468
3468
  this._streamControl.set(s, u.onControl);
3469
- const l = setInterval(() => {
3470
- this._sendStream(o, ee.toCallee, { control: { type: H.ping } });
3469
+ const d = setInterval(() => {
3470
+ this._sendStream(o, te.toCallee, { control: { type: q.ping } });
3471
3471
  }, Hs);
3472
- l.unref?.();
3472
+ d.unref?.();
3473
3473
  const h = () => {
3474
- clearInterval(l), u.dispose(), this._streamControl.delete(s);
3474
+ clearInterval(d), u.dispose(), this._streamControl.delete(s);
3475
3475
  };
3476
3476
  return a.then(h, h), (async () => {
3477
3477
  const f = {
@@ -3484,11 +3484,11 @@ var Jn = class Ln {
3484
3484
  this._pending.delete(s), this._streamListeners.delete(s), h(), c(f instanceof Error ? f : new Error(String(f)));
3485
3485
  }), {
3486
3486
  result: a,
3487
- send: (f) => this._sendStream(o, ee.toCallee, { payload: f }),
3488
- cancel: (f) => this._sendStream(o, ee.toCallee, { control: f !== void 0 ? {
3489
- type: H.cancel,
3487
+ send: (f) => this._sendStream(o, te.toCallee, { payload: f }),
3488
+ cancel: (f) => this._sendStream(o, te.toCallee, { control: f !== void 0 ? {
3489
+ type: q.cancel,
3490
3490
  reason: f
3491
- } : { type: H.cancel } }),
3491
+ } : { type: q.cancel } }),
3492
3492
  ping: u.ping
3493
3493
  };
3494
3494
  }
@@ -3506,27 +3506,27 @@ var Jn = class Ln {
3506
3506
  let o = 1;
3507
3507
  return {
3508
3508
  ping: () => {
3509
- const a = `${t}:${o++}`, u = new Promise((l, h) => r.set(a, {
3510
- resolve: l,
3509
+ const a = `${t}:${o++}`, u = new Promise((d, h) => r.set(a, {
3510
+ resolve: d,
3511
3511
  reject: h
3512
3512
  }));
3513
3513
  return this._sendStream(t, n, { control: {
3514
- type: H.ping,
3514
+ type: q.ping,
3515
3515
  nonce: a
3516
3516
  } }), u;
3517
3517
  },
3518
3518
  onControl: (a) => {
3519
- if (a.type === H.ping) this._sendStream(t, n, { control: {
3520
- type: H.pong,
3519
+ if (a.type === q.ping) this._sendStream(t, n, { control: {
3520
+ type: q.pong,
3521
3521
  nonce: a.nonce
3522
3522
  } });
3523
- else if (a.type === H.pong && a.nonce !== void 0) {
3523
+ else if (a.type === q.pong && a.nonce !== void 0) {
3524
3524
  const u = r.get(a.nonce);
3525
3525
  u && (r.delete(a.nonce), u.resolve());
3526
3526
  }
3527
3527
  },
3528
3528
  dispose: () => {
3529
- const a = new re("Request settled before pong", F.cancelled);
3529
+ const a = new G("Request settled before pong", D.cancelled);
3530
3530
  for (const u of r.values()) u.reject(a);
3531
3531
  r.clear();
3532
3532
  }
@@ -3563,7 +3563,7 @@ var Jn = class Ln {
3563
3563
  const r = String(t.id), o = this._pending.get(r);
3564
3564
  if (!o) return;
3565
3565
  if (this._pending.delete(r), this._streamListeners.delete(r), "error" in t) {
3566
- const s = t.error, i = new re(s.message, s.code, s.data);
3566
+ const s = t.error, i = new G(s.message, s.code, s.data);
3567
3567
  o.reject(i);
3568
3568
  } else o.resolve(t.result);
3569
3569
  return;
@@ -3595,20 +3595,20 @@ var Jn = class Ln {
3595
3595
  s && s(n.payload);
3596
3596
  }
3597
3597
  async _handleRequest(t, n) {
3598
- const r = String(t.id), o = this._makePinger(t.id, ee.toCaller), s = {
3599
- send: (a) => this._sendStream(t.id, ee.toCaller, { payload: a }),
3598
+ const r = String(t.id), o = this._makePinger(t.id, te.toCaller), s = {
3599
+ send: (a) => this._sendStream(t.id, te.toCaller, { payload: a }),
3600
3600
  onMessage: (a) => {
3601
3601
  a ? this._streamListeners.set(r, a) : this._streamListeners.delete(r);
3602
3602
  },
3603
3603
  ping: o.ping
3604
3604
  }, i = new AbortController();
3605
3605
  this._streamControl.set(r, (a) => {
3606
- a.type === H.cancel ? i.abort(new re(a.reason ?? "cancelled", F.cancelled)) : o.onControl(a);
3606
+ a.type === q.cancel ? i.abort(new G(a.reason ?? "cancelled", D.cancelled)) : o.onControl(a);
3607
3607
  });
3608
3608
  let c;
3609
3609
  try {
3610
3610
  if (!this._handler) c = { error: {
3611
- code: F.methodNotFound,
3611
+ code: D.methodNotFound,
3612
3612
  message: `No handler registered on this endpoint (method: ${t.method}).`
3613
3613
  } };
3614
3614
  else try {
@@ -3621,7 +3621,7 @@ var Jn = class Ln {
3621
3621
  });
3622
3622
  } catch (a) {
3623
3623
  c = { error: {
3624
- code: F.internalError,
3624
+ code: D.internalError,
3625
3625
  message: a instanceof Error ? a.message : String(a)
3626
3626
  } };
3627
3627
  }
@@ -3783,22 +3783,22 @@ var Ks = class Vn {
3783
3783
  interfaceHash: this._preset.hash
3784
3784
  } : {} }, r), this.register(As, {
3785
3785
  list: ({ interfaceId: o, serviceId: s, cursor: i, limit: c }) => {
3786
- const a = this.listRegisteredInterfaces().filter((f) => o === void 0 || f.interfaceId === o).filter((f) => s === void 0 || f.serviceId === s), u = i === void 0 ? 0 : Number.parseInt(i, 10) || 0, l = c === void 0 ? a.length : Math.min(a.length, u + c), h = a.slice(u, l).map((f) => ({
3786
+ const a = this.listRegisteredInterfaces().filter((f) => o === void 0 || f.interfaceId === o).filter((f) => s === void 0 || f.serviceId === s), u = i === void 0 ? 0 : Number.parseInt(i, 10) || 0, d = c === void 0 ? a.length : Math.min(a.length, u + c), h = a.slice(u, d).map((f) => ({
3787
3787
  serviceId: f.serviceId,
3788
3788
  interfaceId: f.interfaceId,
3789
3789
  interfaceHash: f.interfaceHash,
3790
3790
  serviceDescription: f.serviceDescription,
3791
3791
  rootPrincipalSets: f.rootPrincipalSets?.map((p) => p.map((_) => ({ ..._ })))
3792
3792
  }));
3793
- return l < a.length ? {
3793
+ return d < a.length ? {
3794
3794
  items: h,
3795
- nextCursor: String(l)
3795
+ nextCursor: String(d)
3796
3796
  } : { items: h };
3797
3797
  },
3798
3798
  watch: Ds
3799
3799
  }, r), this.register(Ms, { get: ({ interfaceId: o, hash: s }) => {
3800
3800
  const i = this.findRegisteredInterface(o, s);
3801
- if (!i) throw new re("Interface not found", F.methodNotFound, {
3801
+ if (!i) throw new G("Interface not found", D.methodNotFound, {
3802
3802
  reason: "unknown-interface",
3803
3803
  interfaceId: o,
3804
3804
  hash: s
@@ -3812,18 +3812,18 @@ var Ks = class Vn {
3812
3812
  _buildClient(t, n) {
3813
3813
  const { serviceId: r, ...o } = n, s = o, i = t.schemaHash, c = {};
3814
3814
  for (const [a, u] of Object.entries(t.members)) {
3815
- const l = r ? `${r}::${t.info.id}::${a}` : `${t.info.id}::${a}`;
3815
+ const d = r ? `${r}::${t.info.id}::${a}` : `${t.info.id}::${a}`;
3816
3816
  if (u.kind === "request") if (u.clientStreamSchema !== void 0 || u.serverStreamSchema !== void 0) {
3817
3817
  const h = u.serverStreamSchema;
3818
3818
  c[a] = (f, p) => {
3819
- const _ = p?.onMessage, N = _ !== void 0 ? (A) => {
3819
+ const _ = p?.onMessage, N = _ !== void 0 ? (g) => {
3820
3820
  if (h !== void 0) {
3821
- const g = J(h, A);
3822
- if (!g.success) return;
3823
- _(g.data);
3821
+ const v = F(h, g);
3822
+ if (!v.success) return;
3823
+ _(v.data);
3824
3824
  return;
3825
3825
  }
3826
- _(A);
3826
+ _(g);
3827
3827
  } : void 0, k = N !== void 0 ? {
3828
3828
  ctx: s,
3829
3829
  interfaceHash: i,
@@ -3831,26 +3831,30 @@ var Ks = class Vn {
3831
3831
  } : {
3832
3832
  ctx: s,
3833
3833
  interfaceHash: i
3834
- }, x = this.channel.sendRequestWithStream(l, f, k);
3835
- return Object.assign(x.result, {
3836
- send: (A) => x.send(A),
3837
- cancel: (A) => x.cancel(A),
3834
+ }, x = this.channel.sendRequestWithStream(d, f, k), W = x.result.then((g) => {
3835
+ const v = F(u.resultSchema, g === null ? void 0 : g);
3836
+ if (!v.success) throw new G(D.internalError, `Invalid result for ${d}`, { issues: v.error.issues });
3837
+ return g;
3838
+ });
3839
+ return Object.assign(W, {
3840
+ send: (g) => x.send(g),
3841
+ cancel: (g) => x.cancel(g),
3838
3842
  ping: () => x.ping()
3839
3843
  });
3840
3844
  };
3841
3845
  } else {
3842
3846
  const h = u.resultSchema;
3843
3847
  c[a] = async (f) => {
3844
- const p = await this.channel.sendRequest(l, f, {
3848
+ const p = await this.channel.sendRequest(d, f, {
3845
3849
  ctx: s,
3846
3850
  interfaceHash: i
3847
- }), _ = J(h, p === null ? void 0 : p);
3848
- if (!_.success) throw new re(F.internalError, `Invalid result for ${l}`, { issues: _.error.issues });
3851
+ }), _ = F(h, p === null ? void 0 : p);
3852
+ if (!_.success) throw new G(D.internalError, `Invalid result for ${d}`, { issues: _.error.issues });
3849
3853
  return p;
3850
3854
  };
3851
3855
  }
3852
3856
  else c[a] = async (h) => {
3853
- this.channel.sendNotification(l, h, {
3857
+ this.channel.sendNotification(d, h, {
3854
3858
  ctx: s,
3855
3859
  interfaceHash: i
3856
3860
  });
@@ -3865,28 +3869,28 @@ var Ks = class Vn {
3865
3869
  if (!s) return ge("unknown-method", t.method);
3866
3870
  const i = r.handlers[o];
3867
3871
  if (!i) return ge("unknown-method", t.method);
3868
- const c = J(s.paramsSchema, t.params);
3872
+ const c = F(s.paramsSchema, t.params);
3869
3873
  if (!c.success) return { error: {
3870
- code: F.invalidParams,
3874
+ code: D.invalidParams,
3871
3875
  message: "Invalid params",
3872
3876
  data: { issues: c.error.issues }
3873
3877
  } };
3874
3878
  if (!(s instanceof Dn)) return ge("unknown-method", t.method);
3875
3879
  const a = this._buildStreamApi(t.stream, t.signal, s);
3876
3880
  try {
3877
- const u = await i(c.data, t.context, a), l = J(s.resultSchema, u);
3878
- return l.success ? { result: u === void 0 ? null : u } : { error: {
3879
- code: F.internalError,
3881
+ const u = await i(c.data, t.context, a), d = F(s.resultSchema, u);
3882
+ return d.success ? { result: u === void 0 ? null : u } : { error: {
3883
+ code: D.internalError,
3880
3884
  message: `Invalid result for ${t.method}`,
3881
- data: { issues: l.error.issues }
3885
+ data: { issues: d.error.issues }
3882
3886
  } };
3883
3887
  } catch (u) {
3884
- return u instanceof re ? { error: {
3888
+ return u instanceof G ? { error: {
3885
3889
  code: u.code,
3886
3890
  message: u.message,
3887
3891
  data: u.data
3888
3892
  } } : { error: {
3889
- code: F.internalError,
3893
+ code: D.internalError,
3890
3894
  message: u instanceof Error ? u.message : String(u)
3891
3895
  } };
3892
3896
  }
@@ -3895,7 +3899,7 @@ var Ks = class Vn {
3895
3899
  return {
3896
3900
  send: (o) => {
3897
3901
  if (r.serverStreamSchema) {
3898
- const s = J(r.serverStreamSchema, o);
3902
+ const s = F(r.serverStreamSchema, o);
3899
3903
  if (!s.success) throw new Error(`Server stream payload failed schema validation: ${s.error.message}`);
3900
3904
  }
3901
3905
  t.send(o);
@@ -3903,7 +3907,7 @@ var Ks = class Vn {
3903
3907
  onMessage: (o) => {
3904
3908
  t.onMessage((s) => {
3905
3909
  if (r.clientStreamSchema) {
3906
- const i = J(r.clientStreamSchema, s);
3910
+ const i = F(r.clientStreamSchema, s);
3907
3911
  if (!i.success) return;
3908
3912
  o(i.data);
3909
3913
  return;
@@ -3921,7 +3925,7 @@ var Ks = class Vn {
3921
3925
  if (!(s instanceof Fn)) return;
3922
3926
  const i = r.handlers[o];
3923
3927
  if (!i) return;
3924
- const c = J(s.paramsSchema, t.params);
3928
+ const c = F(s.paramsSchema, t.params);
3925
3929
  c.success && i(c.data, t.context);
3926
3930
  }
3927
3931
  _parseRouted(t) {
@@ -3987,7 +3991,7 @@ var Ys = class {
3987
3991
  };
3988
3992
  function ge(e, t) {
3989
3993
  return { error: {
3990
- code: F.methodNotFound,
3994
+ code: D.methodNotFound,
3991
3995
  message: `Method not found: ${t}`,
3992
3996
  data: {
3993
3997
  reason: e,
@@ -4024,53 +4028,53 @@ function Xs(e, t) {
4024
4028
  });
4025
4029
  }
4026
4030
  const K = /* @__PURE__ */ b();
4027
- q({
4031
+ V({
4028
4032
  id: "identity",
4029
4033
  description: "Per-participant key oracle: exposes signing and HPKE-based wrap/unwrap for the identity the executor has attached to this participant's root overlay. Private keys never leave the executor."
4030
4034
  }, {
4031
- getPrincipal: T(/* @__PURE__ */ v({}), /* @__PURE__ */ v({ principal: /* @__PURE__ */ b() })),
4032
- getWrapPublicKey: T(/* @__PURE__ */ v({}), /* @__PURE__ */ v({ wrapPublicKey: K })),
4033
- sign: T(/* @__PURE__ */ v({ bytes: K }), /* @__PURE__ */ v({ signature: K })),
4034
- wrap: T(/* @__PURE__ */ v({
4035
+ getPrincipal: T(/* @__PURE__ */ y({}), /* @__PURE__ */ y({ principal: /* @__PURE__ */ b() })),
4036
+ getWrapPublicKey: T(/* @__PURE__ */ y({}), /* @__PURE__ */ y({ wrapPublicKey: K })),
4037
+ sign: T(/* @__PURE__ */ y({ bytes: K }), /* @__PURE__ */ y({ signature: K })),
4038
+ wrap: T(/* @__PURE__ */ y({
4035
4039
  domain: /* @__PURE__ */ b(),
4036
4040
  bytes: K
4037
- }), /* @__PURE__ */ v({ blob: K })),
4038
- unwrap: T(/* @__PURE__ */ v({
4041
+ }), /* @__PURE__ */ y({ blob: K })),
4042
+ unwrap: T(/* @__PURE__ */ y({
4039
4043
  domain: /* @__PURE__ */ b(),
4040
4044
  blob: K
4041
- }), /* @__PURE__ */ v({ bytes: K }))
4045
+ }), /* @__PURE__ */ y({ bytes: K }))
4042
4046
  });
4043
- q({
4047
+ V({
4044
4048
  id: "identity.storage",
4045
4049
  description: "Per-identity persistent key/value store. Scope is the executor's managed-identity slot; lifecycle is tied to the identity itself. Backed by an at-rest-encrypted file in the executor."
4046
4050
  }, {
4047
- get: T(/* @__PURE__ */ v({ key: /* @__PURE__ */ b() }), /* @__PURE__ */ v({ value: /* @__PURE__ */ I(/* @__PURE__ */ Pe()) })),
4048
- set: T(/* @__PURE__ */ v({
4051
+ get: T(/* @__PURE__ */ y({ key: /* @__PURE__ */ b() }), /* @__PURE__ */ y({ value: /* @__PURE__ */ I(/* @__PURE__ */ Pe()) })),
4052
+ set: T(/* @__PURE__ */ y({
4049
4053
  key: /* @__PURE__ */ b(),
4050
4054
  value: /* @__PURE__ */ Pe()
4051
- }), /* @__PURE__ */ v({})),
4052
- delete: T(/* @__PURE__ */ v({ key: /* @__PURE__ */ b() }), /* @__PURE__ */ v({ existed: /* @__PURE__ */ st() })),
4053
- list: T(/* @__PURE__ */ v({ prefix: /* @__PURE__ */ I(/* @__PURE__ */ b()) }), /* @__PURE__ */ v({ keys: /* @__PURE__ */ Fe(/* @__PURE__ */ b()) }))
4055
+ }), /* @__PURE__ */ y({})),
4056
+ delete: T(/* @__PURE__ */ y({ key: /* @__PURE__ */ b() }), /* @__PURE__ */ y({ existed: /* @__PURE__ */ st() })),
4057
+ list: T(/* @__PURE__ */ y({ prefix: /* @__PURE__ */ I(/* @__PURE__ */ b()) }), /* @__PURE__ */ y({ keys: /* @__PURE__ */ Fe(/* @__PURE__ */ b()) }))
4054
4058
  });
4055
- const Qs = /* @__PURE__ */ d("ZodISODateTime", (e, t) => {
4059
+ const Qs = /* @__PURE__ */ l("ZodISODateTime", (e, t) => {
4056
4060
  $o.init(e, t), Z.init(e, t);
4057
4061
  });
4058
4062
  function ec(e) {
4059
4063
  return /* @__PURE__ */ Si(Qs, e);
4060
4064
  }
4061
- const tc = /* @__PURE__ */ d("ZodISODate", (e, t) => {
4065
+ const tc = /* @__PURE__ */ l("ZodISODate", (e, t) => {
4062
4066
  Eo.init(e, t), Z.init(e, t);
4063
4067
  });
4064
4068
  function nc(e) {
4065
4069
  return /* @__PURE__ */ $i(tc, e);
4066
4070
  }
4067
- const rc = /* @__PURE__ */ d("ZodISOTime", (e, t) => {
4071
+ const rc = /* @__PURE__ */ l("ZodISOTime", (e, t) => {
4068
4072
  Zo.init(e, t), Z.init(e, t);
4069
4073
  });
4070
4074
  function oc(e) {
4071
4075
  return /* @__PURE__ */ Ei(rc, e);
4072
4076
  }
4073
- const ic = /* @__PURE__ */ d("ZodISODuration", (e, t) => {
4077
+ const ic = /* @__PURE__ */ l("ZodISODuration", (e, t) => {
4074
4078
  Io.init(e, t), Z.init(e, t);
4075
4079
  });
4076
4080
  function sc(e) {
@@ -4105,9 +4109,9 @@ const cc = (e, t) => {
4105
4109
  // enumerable: false,
4106
4110
  }
4107
4111
  });
4108
- }, D = /* @__PURE__ */ d("ZodError", cc, {
4112
+ }, A = /* @__PURE__ */ l("ZodError", cc, {
4109
4113
  Parent: Error
4110
- }), ac = /* @__PURE__ */ Re(D), uc = /* @__PURE__ */ xe(D), dc = /* @__PURE__ */ je(D), lc = /* @__PURE__ */ Ae(D), fc = /* @__PURE__ */ vr(D), hc = /* @__PURE__ */ yr(D), pc = /* @__PURE__ */ wr(D), mc = /* @__PURE__ */ br(D), _c = /* @__PURE__ */ zr(D), gc = /* @__PURE__ */ kr(D), vc = /* @__PURE__ */ Sr(D), yc = /* @__PURE__ */ $r(D), Tt = /* @__PURE__ */ new WeakMap();
4114
+ }), ac = /* @__PURE__ */ Re(A), uc = /* @__PURE__ */ xe(A), lc = /* @__PURE__ */ je(A), dc = /* @__PURE__ */ Ae(A), fc = /* @__PURE__ */ vr(A), hc = /* @__PURE__ */ yr(A), pc = /* @__PURE__ */ wr(A), mc = /* @__PURE__ */ br(A), _c = /* @__PURE__ */ zr(A), gc = /* @__PURE__ */ kr(A), vc = /* @__PURE__ */ Sr(A), yc = /* @__PURE__ */ $r(A), Tt = /* @__PURE__ */ new WeakMap();
4111
4115
  function pe(e, t, n) {
4112
4116
  const r = Object.getPrototypeOf(e);
4113
4117
  let o = Tt.get(r);
@@ -4139,15 +4143,15 @@ function pe(e, t, n) {
4139
4143
  }
4140
4144
  }
4141
4145
  }
4142
- const O = /* @__PURE__ */ d("ZodType", (e, t) => (S.init(e, t), Object.assign(e["~standard"], {
4146
+ const O = /* @__PURE__ */ l("ZodType", (e, t) => (S.init(e, t), Object.assign(e["~standard"], {
4143
4147
  jsonSchema: {
4144
4148
  input: Oe(e, "input"),
4145
4149
  output: Oe(e, "output")
4146
4150
  }
4147
- }), e.toJSONSchema = Wi(e, {}), e.def = t, e.type = t.type, Object.defineProperty(e, "_def", { value: t }), e.parse = (n, r) => ac(e, n, r, { callee: e.parse }), e.safeParse = (n, r) => dc(e, n, r), e.parseAsync = async (n, r) => uc(e, n, r, { callee: e.parseAsync }), e.safeParseAsync = async (n, r) => lc(e, n, r), e.spa = e.safeParseAsync, e.encode = (n, r) => fc(e, n, r), e.decode = (n, r) => hc(e, n, r), e.encodeAsync = async (n, r) => pc(e, n, r), e.decodeAsync = async (n, r) => mc(e, n, r), e.safeEncode = (n, r) => _c(e, n, r), e.safeDecode = (n, r) => gc(e, n, r), e.safeEncodeAsync = async (n, r) => vc(e, n, r), e.safeDecodeAsync = async (n, r) => yc(e, n, r), pe(e, "ZodType", {
4151
+ }), e.toJSONSchema = Wi(e, {}), e.def = t, e.type = t.type, Object.defineProperty(e, "_def", { value: t }), e.parse = (n, r) => ac(e, n, r, { callee: e.parse }), e.safeParse = (n, r) => lc(e, n, r), e.parseAsync = async (n, r) => uc(e, n, r, { callee: e.parseAsync }), e.safeParseAsync = async (n, r) => dc(e, n, r), e.spa = e.safeParseAsync, e.encode = (n, r) => fc(e, n, r), e.decode = (n, r) => hc(e, n, r), e.encodeAsync = async (n, r) => pc(e, n, r), e.decodeAsync = async (n, r) => mc(e, n, r), e.safeEncode = (n, r) => _c(e, n, r), e.safeDecode = (n, r) => gc(e, n, r), e.safeEncodeAsync = async (n, r) => vc(e, n, r), e.safeDecodeAsync = async (n, r) => yc(e, n, r), pe(e, "ZodType", {
4148
4152
  check(...n) {
4149
4153
  const r = this.def;
4150
- return this.clone(W(r, {
4154
+ return this.clone(H(r, {
4151
4155
  checks: [
4152
4156
  ...r.checks ?? [],
4153
4157
  ...n.map((o) => typeof o == "function" ? { _zod: { check: o, def: { check: "custom" }, onattach: [] } } : o)
@@ -4158,7 +4162,7 @@ const O = /* @__PURE__ */ d("ZodType", (e, t) => (S.init(e, t), Object.assign(e[
4158
4162
  return this.check(...n);
4159
4163
  },
4160
4164
  clone(n, r) {
4161
- return V(this, n, r);
4165
+ return L(this, n, r);
4162
4166
  },
4163
4167
  brand() {
4164
4168
  return this;
@@ -4215,7 +4219,7 @@ const O = /* @__PURE__ */ d("ZodType", (e, t) => (S.init(e, t), Object.assign(e[
4215
4219
  return jt(this, n);
4216
4220
  },
4217
4221
  readonly() {
4218
- return la(this);
4222
+ return da(this);
4219
4223
  },
4220
4224
  describe(n) {
4221
4225
  const r = this.clone();
@@ -4241,7 +4245,7 @@ const O = /* @__PURE__ */ d("ZodType", (e, t) => (S.init(e, t), Object.assign(e[
4241
4245
  return ae.get(e)?.description;
4242
4246
  },
4243
4247
  configurable: !0
4244
- }), e)), qn = /* @__PURE__ */ d("_ZodString", (e, t) => {
4248
+ }), e)), qn = /* @__PURE__ */ l("_ZodString", (e, t) => {
4245
4249
  Me.init(e, t), O.init(e, t), e._zod.processJSONSchema = (r, o, s) => gn(e, r, o);
4246
4250
  const n = e._zod.bag;
4247
4251
  e.format = n.format ?? null, e.minLength = n.minimum ?? null, e.maxLength = n.maximum ?? null, pe(e, "_ZodString", {
@@ -4291,53 +4295,53 @@ const O = /* @__PURE__ */ d("ZodType", (e, t) => (S.init(e, t), Object.assign(e[
4291
4295
  return this.check(/* @__PURE__ */ Ji());
4292
4296
  }
4293
4297
  });
4294
- }), wc = /* @__PURE__ */ d("ZodString", (e, t) => {
4295
- Me.init(e, t), qn.init(e, t), e.email = (n) => e.check(/* @__PURE__ */ ri(bc, n)), e.url = (n) => e.check(/* @__PURE__ */ ai(zc, n)), e.jwt = (n) => e.check(/* @__PURE__ */ ki(Ac, n)), e.emoji = (n) => e.check(/* @__PURE__ */ ui(kc, n)), e.guid = (n) => e.check(/* @__PURE__ */ bt(Nt, n)), e.uuid = (n) => e.check(/* @__PURE__ */ oi(ve, n)), e.uuidv4 = (n) => e.check(/* @__PURE__ */ ii(ve, n)), e.uuidv6 = (n) => e.check(/* @__PURE__ */ si(ve, n)), e.uuidv7 = (n) => e.check(/* @__PURE__ */ ci(ve, n)), e.nanoid = (n) => e.check(/* @__PURE__ */ di(Sc, n)), e.guid = (n) => e.check(/* @__PURE__ */ bt(Nt, n)), e.cuid = (n) => e.check(/* @__PURE__ */ li($c, n)), e.cuid2 = (n) => e.check(/* @__PURE__ */ fi(Ec, n)), e.ulid = (n) => e.check(/* @__PURE__ */ hi(Zc, n)), e.base64 = (n) => e.check(/* @__PURE__ */ wi(Rc, n)), e.base64url = (n) => e.check(/* @__PURE__ */ bi(xc, n)), e.xid = (n) => e.check(/* @__PURE__ */ pi(Ic, n)), e.ksuid = (n) => e.check(/* @__PURE__ */ mi(Oc, n)), e.ipv4 = (n) => e.check(/* @__PURE__ */ _i(Pc, n)), e.ipv6 = (n) => e.check(/* @__PURE__ */ gi(Tc, n)), e.cidrv4 = (n) => e.check(/* @__PURE__ */ vi(Nc, n)), e.cidrv6 = (n) => e.check(/* @__PURE__ */ yi(Cc, n)), e.e164 = (n) => e.check(/* @__PURE__ */ zi(jc, n)), e.datetime = (n) => e.check(ec(n)), e.date = (n) => e.check(nc(n)), e.time = (n) => e.check(oc(n)), e.duration = (n) => e.check(sc(n));
4298
+ }), wc = /* @__PURE__ */ l("ZodString", (e, t) => {
4299
+ Me.init(e, t), qn.init(e, t), e.email = (n) => e.check(/* @__PURE__ */ ri(bc, n)), e.url = (n) => e.check(/* @__PURE__ */ ai(zc, n)), e.jwt = (n) => e.check(/* @__PURE__ */ ki(Ac, n)), e.emoji = (n) => e.check(/* @__PURE__ */ ui(kc, n)), e.guid = (n) => e.check(/* @__PURE__ */ bt(Nt, n)), e.uuid = (n) => e.check(/* @__PURE__ */ oi(ve, n)), e.uuidv4 = (n) => e.check(/* @__PURE__ */ ii(ve, n)), e.uuidv6 = (n) => e.check(/* @__PURE__ */ si(ve, n)), e.uuidv7 = (n) => e.check(/* @__PURE__ */ ci(ve, n)), e.nanoid = (n) => e.check(/* @__PURE__ */ li(Sc, n)), e.guid = (n) => e.check(/* @__PURE__ */ bt(Nt, n)), e.cuid = (n) => e.check(/* @__PURE__ */ di($c, n)), e.cuid2 = (n) => e.check(/* @__PURE__ */ fi(Ec, n)), e.ulid = (n) => e.check(/* @__PURE__ */ hi(Zc, n)), e.base64 = (n) => e.check(/* @__PURE__ */ wi(Rc, n)), e.base64url = (n) => e.check(/* @__PURE__ */ bi(xc, n)), e.xid = (n) => e.check(/* @__PURE__ */ pi(Ic, n)), e.ksuid = (n) => e.check(/* @__PURE__ */ mi(Oc, n)), e.ipv4 = (n) => e.check(/* @__PURE__ */ _i(Pc, n)), e.ipv6 = (n) => e.check(/* @__PURE__ */ gi(Tc, n)), e.cidrv4 = (n) => e.check(/* @__PURE__ */ vi(Nc, n)), e.cidrv6 = (n) => e.check(/* @__PURE__ */ yi(Cc, n)), e.e164 = (n) => e.check(/* @__PURE__ */ zi(jc, n)), e.datetime = (n) => e.check(ec(n)), e.date = (n) => e.check(nc(n)), e.time = (n) => e.check(oc(n)), e.duration = (n) => e.check(sc(n));
4296
4300
  });
4297
4301
  function he(e) {
4298
- return /* @__PURE__ */ dn(wc, e);
4302
+ return /* @__PURE__ */ ln(wc, e);
4299
4303
  }
4300
- const Z = /* @__PURE__ */ d("ZodStringFormat", (e, t) => {
4304
+ const Z = /* @__PURE__ */ l("ZodStringFormat", (e, t) => {
4301
4305
  $.init(e, t), qn.init(e, t);
4302
- }), bc = /* @__PURE__ */ d("ZodEmail", (e, t) => {
4306
+ }), bc = /* @__PURE__ */ l("ZodEmail", (e, t) => {
4303
4307
  _o.init(e, t), Z.init(e, t);
4304
- }), Nt = /* @__PURE__ */ d("ZodGUID", (e, t) => {
4308
+ }), Nt = /* @__PURE__ */ l("ZodGUID", (e, t) => {
4305
4309
  po.init(e, t), Z.init(e, t);
4306
- }), ve = /* @__PURE__ */ d("ZodUUID", (e, t) => {
4310
+ }), ve = /* @__PURE__ */ l("ZodUUID", (e, t) => {
4307
4311
  mo.init(e, t), Z.init(e, t);
4308
- }), zc = /* @__PURE__ */ d("ZodURL", (e, t) => {
4312
+ }), zc = /* @__PURE__ */ l("ZodURL", (e, t) => {
4309
4313
  go.init(e, t), Z.init(e, t);
4310
- }), kc = /* @__PURE__ */ d("ZodEmoji", (e, t) => {
4314
+ }), kc = /* @__PURE__ */ l("ZodEmoji", (e, t) => {
4311
4315
  vo.init(e, t), Z.init(e, t);
4312
- }), Sc = /* @__PURE__ */ d("ZodNanoID", (e, t) => {
4316
+ }), Sc = /* @__PURE__ */ l("ZodNanoID", (e, t) => {
4313
4317
  yo.init(e, t), Z.init(e, t);
4314
- }), $c = /* @__PURE__ */ d("ZodCUID", (e, t) => {
4318
+ }), $c = /* @__PURE__ */ l("ZodCUID", (e, t) => {
4315
4319
  wo.init(e, t), Z.init(e, t);
4316
- }), Ec = /* @__PURE__ */ d("ZodCUID2", (e, t) => {
4320
+ }), Ec = /* @__PURE__ */ l("ZodCUID2", (e, t) => {
4317
4321
  bo.init(e, t), Z.init(e, t);
4318
- }), Zc = /* @__PURE__ */ d("ZodULID", (e, t) => {
4322
+ }), Zc = /* @__PURE__ */ l("ZodULID", (e, t) => {
4319
4323
  zo.init(e, t), Z.init(e, t);
4320
- }), Ic = /* @__PURE__ */ d("ZodXID", (e, t) => {
4324
+ }), Ic = /* @__PURE__ */ l("ZodXID", (e, t) => {
4321
4325
  ko.init(e, t), Z.init(e, t);
4322
- }), Oc = /* @__PURE__ */ d("ZodKSUID", (e, t) => {
4326
+ }), Oc = /* @__PURE__ */ l("ZodKSUID", (e, t) => {
4323
4327
  So.init(e, t), Z.init(e, t);
4324
- }), Pc = /* @__PURE__ */ d("ZodIPv4", (e, t) => {
4328
+ }), Pc = /* @__PURE__ */ l("ZodIPv4", (e, t) => {
4325
4329
  Oo.init(e, t), Z.init(e, t);
4326
- }), Tc = /* @__PURE__ */ d("ZodIPv6", (e, t) => {
4330
+ }), Tc = /* @__PURE__ */ l("ZodIPv6", (e, t) => {
4327
4331
  Po.init(e, t), Z.init(e, t);
4328
- }), Nc = /* @__PURE__ */ d("ZodCIDRv4", (e, t) => {
4332
+ }), Nc = /* @__PURE__ */ l("ZodCIDRv4", (e, t) => {
4329
4333
  To.init(e, t), Z.init(e, t);
4330
- }), Cc = /* @__PURE__ */ d("ZodCIDRv6", (e, t) => {
4334
+ }), Cc = /* @__PURE__ */ l("ZodCIDRv6", (e, t) => {
4331
4335
  No.init(e, t), Z.init(e, t);
4332
- }), Rc = /* @__PURE__ */ d("ZodBase64", (e, t) => {
4336
+ }), Rc = /* @__PURE__ */ l("ZodBase64", (e, t) => {
4333
4337
  Co.init(e, t), Z.init(e, t);
4334
- }), xc = /* @__PURE__ */ d("ZodBase64URL", (e, t) => {
4338
+ }), xc = /* @__PURE__ */ l("ZodBase64URL", (e, t) => {
4335
4339
  xo.init(e, t), Z.init(e, t);
4336
- }), jc = /* @__PURE__ */ d("ZodE164", (e, t) => {
4340
+ }), jc = /* @__PURE__ */ l("ZodE164", (e, t) => {
4337
4341
  jo.init(e, t), Z.init(e, t);
4338
- }), Ac = /* @__PURE__ */ d("ZodJWT", (e, t) => {
4342
+ }), Ac = /* @__PURE__ */ l("ZodJWT", (e, t) => {
4339
4343
  Do.init(e, t), Z.init(e, t);
4340
- }), Hn = /* @__PURE__ */ d("ZodNumber", (e, t) => {
4344
+ }), Hn = /* @__PURE__ */ l("ZodNumber", (e, t) => {
4341
4345
  nt.init(e, t), O.init(e, t), e._zod.processJSONSchema = (r, o, s) => vn(e, r, o), pe(e, "ZodNumber", {
4342
4346
  gt(r, o) {
4343
4347
  return this.check(/* @__PURE__ */ He(r, o));
@@ -4388,34 +4392,34 @@ const Z = /* @__PURE__ */ d("ZodStringFormat", (e, t) => {
4388
4392
  const n = e._zod.bag;
4389
4393
  e.minValue = Math.max(n.minimum ?? Number.NEGATIVE_INFINITY, n.exclusiveMinimum ?? Number.NEGATIVE_INFINITY) ?? null, e.maxValue = Math.min(n.maximum ?? Number.POSITIVE_INFINITY, n.exclusiveMaximum ?? Number.POSITIVE_INFINITY) ?? null, e.isInt = (n.format ?? "").includes("int") || Number.isSafeInteger(n.multipleOf ?? 0.5), e.isFinite = !0, e.format = n.format ?? null;
4390
4394
  });
4391
- function L(e) {
4392
- return /* @__PURE__ */ ln(Hn, e);
4395
+ function J(e) {
4396
+ return /* @__PURE__ */ dn(Hn, e);
4393
4397
  }
4394
- const Dc = /* @__PURE__ */ d("ZodNumberFormat", (e, t) => {
4398
+ const Dc = /* @__PURE__ */ l("ZodNumberFormat", (e, t) => {
4395
4399
  tn.init(e, t), Hn.init(e, t);
4396
4400
  });
4397
4401
  function Ct(e) {
4398
4402
  return /* @__PURE__ */ fn(Dc, e);
4399
4403
  }
4400
- const Mc = /* @__PURE__ */ d("ZodBoolean", (e, t) => {
4404
+ const Mc = /* @__PURE__ */ l("ZodBoolean", (e, t) => {
4401
4405
  nn.init(e, t), O.init(e, t), e._zod.processJSONSchema = (n, r, o) => yn(e, n, r);
4402
4406
  });
4403
4407
  function j(e) {
4404
4408
  return /* @__PURE__ */ hn(Mc, e);
4405
4409
  }
4406
- const Fc = /* @__PURE__ */ d("ZodUnknown", (e, t) => {
4410
+ const Fc = /* @__PURE__ */ l("ZodUnknown", (e, t) => {
4407
4411
  rn.init(e, t), O.init(e, t), e._zod.processJSONSchema = (n, r, o) => bn();
4408
4412
  });
4409
4413
  function Ge() {
4410
4414
  return /* @__PURE__ */ pn(Fc);
4411
4415
  }
4412
- const Uc = /* @__PURE__ */ d("ZodNever", (e, t) => {
4416
+ const Uc = /* @__PURE__ */ l("ZodNever", (e, t) => {
4413
4417
  Mo.init(e, t), O.init(e, t), e._zod.processJSONSchema = (n, r, o) => wn(e, n, r);
4414
4418
  });
4415
4419
  function Jc(e) {
4416
4420
  return /* @__PURE__ */ Ii(Uc, e);
4417
4421
  }
4418
- const Lc = /* @__PURE__ */ d("ZodArray", (e, t) => {
4422
+ const Lc = /* @__PURE__ */ l("ZodArray", (e, t) => {
4419
4423
  on.init(e, t), O.init(e, t), e._zod.processJSONSchema = (n, r, o) => En(e, n, r, o), e.element = t.element, pe(e, "ZodArray", {
4420
4424
  min(n, r) {
4421
4425
  return this.check(/* @__PURE__ */ $e(n, r));
@@ -4437,8 +4441,8 @@ const Lc = /* @__PURE__ */ d("ZodArray", (e, t) => {
4437
4441
  function oe(e, t) {
4438
4442
  return /* @__PURE__ */ Li(Lc, e, t);
4439
4443
  }
4440
- const Vc = /* @__PURE__ */ d("ZodObject", (e, t) => {
4441
- Uo.init(e, t), O.init(e, t), e._zod.processJSONSchema = (n, r, o) => Zn(e, n, r, o), y(e, "shape", () => t.shape), pe(e, "ZodObject", {
4444
+ const Vc = /* @__PURE__ */ l("ZodObject", (e, t) => {
4445
+ Uo.init(e, t), O.init(e, t), e._zod.processJSONSchema = (n, r, o) => Zn(e, n, r, o), w(e, "shape", () => t.shape), pe(e, "ZodObject", {
4442
4446
  keyof() {
4443
4447
  return ct(Object.keys(this._zod.def.shape));
4444
4448
  },
@@ -4464,7 +4468,7 @@ const Vc = /* @__PURE__ */ d("ZodObject", (e, t) => {
4464
4468
  return ur(this, n);
4465
4469
  },
4466
4470
  merge(n) {
4467
- return dr(this, n);
4471
+ return lr(this, n);
4468
4472
  },
4469
4473
  pick(n) {
4470
4474
  return sr(this, n);
@@ -4473,7 +4477,7 @@ const Vc = /* @__PURE__ */ d("ZodObject", (e, t) => {
4473
4477
  return cr(this, n);
4474
4478
  },
4475
4479
  partial(...n) {
4476
- return lr(Bn, this, n[0]);
4480
+ return dr(Bn, this, n[0]);
4477
4481
  },
4478
4482
  required(...n) {
4479
4483
  return fr(Kn, this, n[0]);
@@ -4488,7 +4492,7 @@ function P(e, t) {
4488
4492
  };
4489
4493
  return new Vc(n);
4490
4494
  }
4491
- const Wn = /* @__PURE__ */ d("ZodUnion", (e, t) => {
4495
+ const Wn = /* @__PURE__ */ l("ZodUnion", (e, t) => {
4492
4496
  rt.init(e, t), O.init(e, t), e._zod.processJSONSchema = (n, r, o) => In(e, n, r, o), e.options = t.options;
4493
4497
  });
4494
4498
  function qc(e, t) {
@@ -4498,7 +4502,7 @@ function qc(e, t) {
4498
4502
  ...m(t)
4499
4503
  });
4500
4504
  }
4501
- const Hc = /* @__PURE__ */ d("ZodDiscriminatedUnion", (e, t) => {
4505
+ const Hc = /* @__PURE__ */ l("ZodDiscriminatedUnion", (e, t) => {
4502
4506
  Wn.init(e, t), Jo.init(e, t);
4503
4507
  });
4504
4508
  function Wc(e, t, n) {
@@ -4509,7 +4513,7 @@ function Wc(e, t, n) {
4509
4513
  ...m(n)
4510
4514
  });
4511
4515
  }
4512
- const Bc = /* @__PURE__ */ d("ZodIntersection", (e, t) => {
4516
+ const Bc = /* @__PURE__ */ l("ZodIntersection", (e, t) => {
4513
4517
  Lo.init(e, t), O.init(e, t), e._zod.processJSONSchema = (n, r, o) => On(e, n, r, o);
4514
4518
  });
4515
4519
  function Kc(e, t) {
@@ -4519,7 +4523,7 @@ function Kc(e, t) {
4519
4523
  right: t
4520
4524
  });
4521
4525
  }
4522
- const Ye = /* @__PURE__ */ d("ZodEnum", (e, t) => {
4526
+ const Ye = /* @__PURE__ */ l("ZodEnum", (e, t) => {
4523
4527
  un.init(e, t), O.init(e, t), e._zod.processJSONSchema = (r, o, s) => zn(e, r, o), e.enum = t.entries, e.options = Object.values(t.entries);
4524
4528
  const n = new Set(Object.keys(t.entries));
4525
4529
  e.extract = (r, o) => {
@@ -4558,7 +4562,7 @@ function ct(e, t) {
4558
4562
  ...m(t)
4559
4563
  });
4560
4564
  }
4561
- const Gc = /* @__PURE__ */ d("ZodLiteral", (e, t) => {
4565
+ const Gc = /* @__PURE__ */ l("ZodLiteral", (e, t) => {
4562
4566
  Vo.init(e, t), O.init(e, t), e._zod.processJSONSchema = (n, r, o) => kn(e, n, r), e.values = new Set(t.values), Object.defineProperty(e, "value", {
4563
4567
  get() {
4564
4568
  if (t.values.length > 1)
@@ -4574,16 +4578,16 @@ function Te(e, t) {
4574
4578
  ...m(t)
4575
4579
  });
4576
4580
  }
4577
- const Yc = /* @__PURE__ */ d("ZodTransform", (e, t) => {
4581
+ const Yc = /* @__PURE__ */ l("ZodTransform", (e, t) => {
4578
4582
  qo.init(e, t), O.init(e, t), e._zod.processJSONSchema = (n, r, o) => $n(e, n), e._zod.parse = (n, r) => {
4579
4583
  if (r.direction === "backward")
4580
4584
  throw new Ft(e.constructor.name);
4581
4585
  n.addIssue = (s) => {
4582
4586
  if (typeof s == "string")
4583
- n.issues.push(le(s, n.value, t));
4587
+ n.issues.push(de(s, n.value, t));
4584
4588
  else {
4585
4589
  const i = s;
4586
- i.fatal && (i.continue = !1), i.code ?? (i.code = "custom"), i.input ?? (i.input = n.value), i.inst ?? (i.inst = e), n.issues.push(le(i));
4590
+ i.fatal && (i.continue = !1), i.code ?? (i.code = "custom"), i.input ?? (i.input = n.value), i.inst ?? (i.inst = e), n.issues.push(de(i));
4587
4591
  }
4588
4592
  };
4589
4593
  const o = t.transform(n.value, n);
@@ -4596,7 +4600,7 @@ function Xc(e) {
4596
4600
  transform: e
4597
4601
  });
4598
4602
  }
4599
- const Bn = /* @__PURE__ */ d("ZodOptional", (e, t) => {
4603
+ const Bn = /* @__PURE__ */ l("ZodOptional", (e, t) => {
4600
4604
  ot.init(e, t), O.init(e, t), e._zod.processJSONSchema = (n, r, o) => it(e, n, r, o), e.unwrap = () => e._zod.def.innerType;
4601
4605
  });
4602
4606
  function Rt(e) {
@@ -4605,7 +4609,7 @@ function Rt(e) {
4605
4609
  innerType: e
4606
4610
  });
4607
4611
  }
4608
- const Qc = /* @__PURE__ */ d("ZodExactOptional", (e, t) => {
4612
+ const Qc = /* @__PURE__ */ l("ZodExactOptional", (e, t) => {
4609
4613
  Ho.init(e, t), O.init(e, t), e._zod.processJSONSchema = (n, r, o) => it(e, n, r, o), e.unwrap = () => e._zod.def.innerType;
4610
4614
  });
4611
4615
  function ea(e) {
@@ -4614,7 +4618,7 @@ function ea(e) {
4614
4618
  innerType: e
4615
4619
  });
4616
4620
  }
4617
- const ta = /* @__PURE__ */ d("ZodNullable", (e, t) => {
4621
+ const ta = /* @__PURE__ */ l("ZodNullable", (e, t) => {
4618
4622
  Wo.init(e, t), O.init(e, t), e._zod.processJSONSchema = (n, r, o) => Pn(e, n, r, o), e.unwrap = () => e._zod.def.innerType;
4619
4623
  });
4620
4624
  function xt(e) {
@@ -4623,7 +4627,7 @@ function xt(e) {
4623
4627
  innerType: e
4624
4628
  });
4625
4629
  }
4626
- const na = /* @__PURE__ */ d("ZodDefault", (e, t) => {
4630
+ const na = /* @__PURE__ */ l("ZodDefault", (e, t) => {
4627
4631
  Bo.init(e, t), O.init(e, t), e._zod.processJSONSchema = (n, r, o) => Nn(e, n, r, o), e.unwrap = () => e._zod.def.innerType, e.removeDefault = e.unwrap;
4628
4632
  });
4629
4633
  function ra(e, t) {
@@ -4635,7 +4639,7 @@ function ra(e, t) {
4635
4639
  }
4636
4640
  });
4637
4641
  }
4638
- const oa = /* @__PURE__ */ d("ZodPrefault", (e, t) => {
4642
+ const oa = /* @__PURE__ */ l("ZodPrefault", (e, t) => {
4639
4643
  Ko.init(e, t), O.init(e, t), e._zod.processJSONSchema = (n, r, o) => Cn(e, n, r, o), e.unwrap = () => e._zod.def.innerType;
4640
4644
  });
4641
4645
  function ia(e, t) {
@@ -4647,7 +4651,7 @@ function ia(e, t) {
4647
4651
  }
4648
4652
  });
4649
4653
  }
4650
- const Kn = /* @__PURE__ */ d("ZodNonOptional", (e, t) => {
4654
+ const Kn = /* @__PURE__ */ l("ZodNonOptional", (e, t) => {
4651
4655
  Go.init(e, t), O.init(e, t), e._zod.processJSONSchema = (n, r, o) => Tn(e, n, r, o), e.unwrap = () => e._zod.def.innerType;
4652
4656
  });
4653
4657
  function sa(e, t) {
@@ -4657,7 +4661,7 @@ function sa(e, t) {
4657
4661
  ...m(t)
4658
4662
  });
4659
4663
  }
4660
- const ca = /* @__PURE__ */ d("ZodCatch", (e, t) => {
4664
+ const ca = /* @__PURE__ */ l("ZodCatch", (e, t) => {
4661
4665
  Yo.init(e, t), O.init(e, t), e._zod.processJSONSchema = (n, r, o) => Rn(e, n, r, o), e.unwrap = () => e._zod.def.innerType, e.removeCatch = e.unwrap;
4662
4666
  });
4663
4667
  function aa(e, t) {
@@ -4667,7 +4671,7 @@ function aa(e, t) {
4667
4671
  catchValue: typeof t == "function" ? t : () => t
4668
4672
  });
4669
4673
  }
4670
- const ua = /* @__PURE__ */ d("ZodPipe", (e, t) => {
4674
+ const ua = /* @__PURE__ */ l("ZodPipe", (e, t) => {
4671
4675
  Xo.init(e, t), O.init(e, t), e._zod.processJSONSchema = (n, r, o) => xn(e, n, r, o), e.in = t.in, e.out = t.out;
4672
4676
  });
4673
4677
  function jt(e, t) {
@@ -4678,16 +4682,16 @@ function jt(e, t) {
4678
4682
  // ...util.normalizeParams(params),
4679
4683
  });
4680
4684
  }
4681
- const da = /* @__PURE__ */ d("ZodReadonly", (e, t) => {
4685
+ const la = /* @__PURE__ */ l("ZodReadonly", (e, t) => {
4682
4686
  Qo.init(e, t), O.init(e, t), e._zod.processJSONSchema = (n, r, o) => jn(e, n, r, o), e.unwrap = () => e._zod.def.innerType;
4683
4687
  });
4684
- function la(e) {
4685
- return new da({
4688
+ function da(e) {
4689
+ return new la({
4686
4690
  type: "readonly",
4687
4691
  innerType: e
4688
4692
  });
4689
4693
  }
4690
- const fa = /* @__PURE__ */ d("ZodCustom", (e, t) => {
4694
+ const fa = /* @__PURE__ */ l("ZodCustom", (e, t) => {
4691
4695
  ei.init(e, t), O.init(e, t), e._zod.processJSONSchema = (n, r, o) => Sn(e, n);
4692
4696
  });
4693
4697
  function ha(e, t = {}) {
@@ -4704,8 +4708,8 @@ const ke = Ge(), ma = P({
4704
4708
  supportsOptions: j().optional(),
4705
4709
  supportsForceUpdate: j().optional()
4706
4710
  }), ga = P({
4707
- offset: L().int().nonnegative(),
4708
- length: L().int().nonnegative(),
4711
+ offset: J().int().nonnegative(),
4712
+ length: J().int().nonnegative(),
4709
4713
  newText: he()
4710
4714
  }), Gn = Wc("kind", [
4711
4715
  P({
@@ -4718,7 +4722,7 @@ const ke = Ge(), ma = P({
4718
4722
  path: oe(he()),
4719
4723
  stringEdits: oe(ga)
4720
4724
  })
4721
- ]), va = q(
4725
+ ]), va = V(
4722
4726
  {
4723
4727
  id: "web-editor-host",
4724
4728
  description: "Methods the host exposes to the editor (web-editor/0.12)."
@@ -4738,8 +4742,8 @@ const ke = Ge(), ma = P({
4738
4742
  applyContentEdit: fe(
4739
4743
  P({
4740
4744
  edits: oe(Gn),
4741
- clientRevision: L().int().nonnegative(),
4742
- basedOnServerRevision: L().int().nonnegative()
4745
+ clientRevision: J().int().nonnegative(),
4746
+ basedOnServerRevision: J().int().nonnegative()
4743
4747
  })
4744
4748
  ),
4745
4749
  /**
@@ -4749,11 +4753,11 @@ const ke = Ge(), ma = P({
4749
4753
  */
4750
4754
  reportSize: fe(
4751
4755
  P({
4752
- height: L().nonnegative()
4756
+ height: J().nonnegative()
4753
4757
  })
4754
4758
  )
4755
4759
  }
4756
- ), ya = q(
4760
+ ), ya = V(
4757
4761
  {
4758
4762
  id: "web-editor",
4759
4763
  description: "Methods the editor exposes to the host (web-editor/0.12)."
@@ -4764,16 +4768,16 @@ const ke = Ge(), ma = P({
4764
4768
  content: ke.optional(),
4765
4769
  options: ke.optional(),
4766
4770
  readOnly: j().optional(),
4767
- serverRevision: L().int().nonnegative().optional(),
4768
- acknowledgedClientRevision: L().int().nonnegative().optional(),
4771
+ serverRevision: J().int().nonnegative().optional(),
4772
+ acknowledgedClientRevision: J().int().nonnegative().optional(),
4769
4773
  force: j().optional()
4770
4774
  })
4771
4775
  ),
4772
4776
  applyContentEdits: fe(
4773
4777
  P({
4774
4778
  edits: oe(Gn),
4775
- serverRevision: L().int().nonnegative(),
4776
- acknowledgedClientRevision: L().int().nonnegative()
4779
+ serverRevision: J().int().nonnegative(),
4780
+ acknowledgedClientRevision: J().int().nonnegative()
4777
4781
  })
4778
4782
  ),
4779
4783
  getContentSchema: T(
@@ -4785,7 +4789,7 @@ const ke = Ge(), ma = P({
4785
4789
  registered: j(),
4786
4790
  isDefault: j()
4787
4791
  });
4788
- q(
4792
+ V(
4789
4793
  {
4790
4794
  id: "vscode-app-host",
4791
4795
  description: "Methods an app `.vscode-app.html` exposes to the host (vscode-app-host/0.1)."