@gamaro.io/widget 2.1.0 → 2.1.1

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.
package/dist/widget.es.js CHANGED
@@ -23,7 +23,7 @@
23
23
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
24
24
  * SOFTWARE.
25
25
  */
26
- var ar = {
26
+ var cr = {
27
27
  instant: 0,
28
28
  fast: 150,
29
29
  base: 250,
@@ -38,7 +38,7 @@ var ar = {
38
38
  function ze(e, ...t) {
39
39
  console.error(Ze, e, ...t);
40
40
  }
41
- function _t(e, ...t) {
41
+ function yt(e, ...t) {
42
42
  console.warn(Ze, e, ...t);
43
43
  }
44
44
  function Se(e, ...t) {
@@ -47,37 +47,37 @@ function Se(e, ...t) {
47
47
  function we(e, ...t) {
48
48
  console.debug(Ze, e, ...t);
49
49
  }
50
- function ln(e) {
50
+ function fn(e) {
51
51
  return e ? we : () => {
52
52
  };
53
53
  }
54
- var fn = "gamaro:", dn = ["https://gamaro.io"];
55
- function cr(e, t) {
54
+ var dn = "gamaro:", hn = ["https://gamaro.io"];
55
+ function ur(e, t) {
56
56
  return t.includes(e);
57
57
  }
58
- function ur(e) {
58
+ function lr(e) {
59
59
  const t = e.data;
60
- return typeof t == "object" && t !== null && typeof t.type == "string" && t.type.startsWith(fn);
60
+ return typeof t == "object" && t !== null && typeof t.type == "string" && t.type.startsWith(dn);
61
61
  }
62
62
  function V(e, t, r) {
63
63
  if (!e.contentWindow) {
64
- _t("Cannot send command: iframe not ready");
64
+ yt("Cannot send command: iframe not ready");
65
65
  return;
66
66
  }
67
67
  try {
68
68
  e.contentWindow.postMessage(t, r);
69
69
  } catch {
70
- _t("Failed to post message to iframe");
70
+ yt("Failed to post message to iframe");
71
71
  }
72
72
  }
73
- function hn(e) {
74
- const { allowedOrigins: t = dn, onMessage: r, debug: n, sourceWindow: i } = e, o = (s) => {
73
+ function pn(e) {
74
+ const { allowedOrigins: t = hn, onMessage: r, debug: n, sourceWindow: i } = e, o = (s) => {
75
75
  if (!(i && s.source && s.source !== i)) {
76
- if (!cr(s.origin, t)) {
76
+ if (!ur(s.origin, t)) {
77
77
  n && we("Ignored message from untrusted origin:", s.origin);
78
78
  return;
79
79
  }
80
- if (ur(s)) {
80
+ if (lr(s)) {
81
81
  if (n) try {
82
82
  const a = JSON.parse(JSON.stringify(s.data));
83
83
  we("Received message:", a);
@@ -92,20 +92,20 @@ function hn(e) {
92
92
  window.removeEventListener("message", o);
93
93
  };
94
94
  }
95
- function pn(e) {
95
+ function mn(e) {
96
96
  return btoa(JSON.stringify(e));
97
97
  }
98
98
  function Ke(e) {
99
99
  const t = Object.values(e).filter((r) => typeof r == "number");
100
100
  return Object.entries(e).filter(([r, n]) => t.indexOf(+r) === -1).map(([r, n]) => n);
101
101
  }
102
- function yt(e, t = "|") {
103
- return e.map((r) => mr(r)).join(t);
102
+ function wt(e, t = "|") {
103
+ return e.map((r) => gr(r)).join(t);
104
104
  }
105
105
  function He(e, t) {
106
106
  return typeof t == "bigint" ? t.toString() : t;
107
107
  }
108
- var mn = class {
108
+ var gn = class {
109
109
  constructor(e) {
110
110
  this._getter = e, this._value = void 0;
111
111
  }
@@ -114,17 +114,17 @@ var mn = class {
114
114
  return e !== void 0 && (this._value = e(), this._getter = void 0), this._value;
115
115
  }
116
116
  };
117
- function rt(e) {
118
- return new mn(e);
117
+ function nt(e) {
118
+ return new gn(e);
119
119
  }
120
- function gn(e) {
120
+ function vn(e) {
121
121
  return e == null;
122
122
  }
123
- function nt(e) {
123
+ function it(e) {
124
124
  const t = e.startsWith("^") ? 1 : 0, r = e.endsWith("$") ? e.length - 1 : e.length;
125
125
  return e.slice(t, r);
126
126
  }
127
- function vn(e, t) {
127
+ function bn(e, t) {
128
128
  const r = e / t, n = Math.round(r), i = 4 * Number.EPSILON * Math.max(Math.abs(r), 1);
129
129
  return Math.abs(r - n) < i ? 0 : r - n;
130
130
  }
@@ -136,14 +136,14 @@ function q(e, t, r) {
136
136
  configurable: !0
137
137
  });
138
138
  }
139
- function lr(e) {
139
+ function fr(e) {
140
140
  const t = Object.getOwnPropertyDescriptor(e, "shape");
141
141
  return t?.get ? t.get.raw : t?.value;
142
142
  }
143
143
  function L(e) {
144
- return lr(e._zod.def) ?? e._zod.def.shape;
144
+ return fr(e._zod.def) ?? e._zod.def.shape;
145
145
  }
146
- function fr(e, t, r) {
146
+ function dr(e, t, r) {
147
147
  Object.defineProperty(e, t, {
148
148
  get() {
149
149
  const n = r();
@@ -153,23 +153,23 @@ function fr(e, t, r) {
153
153
  configurable: !0
154
154
  });
155
155
  }
156
- function dr(e, t, r) {
156
+ function hr(e, t, r) {
157
157
  t in e ? q(e, t, r) : e[t] = r;
158
158
  }
159
159
  function G(e, t, r, n) {
160
160
  const i = L(t);
161
161
  for (const o of r) {
162
162
  const s = Object.getOwnPropertyDescriptor(i, o);
163
- s.enumerable && (s.get ? fr(e, o, () => {
163
+ s.enumerable && (s.get ? dr(e, o, () => {
164
164
  const a = t._zod.def.shape[o];
165
165
  return n ? n(a, o) : a;
166
- }) : dr(e, o, n ? n(s.value, o) : s.value));
166
+ }) : hr(e, o, n ? n(s.value, o) : s.value));
167
167
  }
168
168
  }
169
- function bn(e, t) {
169
+ function _n(e, t) {
170
170
  for (const r of Reflect.ownKeys(t)) {
171
171
  const n = Object.getOwnPropertyDescriptor(t, r);
172
- n.enumerable && (n.get ? fr(e, r, () => t[r]) : dr(e, r, n.value));
172
+ n.enumerable && (n.get ? dr(e, r, () => t[r]) : hr(e, r, n.value));
173
173
  }
174
174
  }
175
175
  function Z(...e) {
@@ -180,18 +180,18 @@ function Z(...e) {
180
180
  }
181
181
  return Object.defineProperties({}, t);
182
182
  }
183
- function _n(e) {
183
+ function yn(e) {
184
184
  return JSON.stringify(e);
185
185
  }
186
- function yn(e) {
186
+ function wn(e) {
187
187
  return e.toLowerCase().trim().replace(/[^\w\s-]/g, "").replace(/[\s_-]+/g, "-").replace(/^-+|-+$/g, "");
188
188
  }
189
- var hr = "captureStackTrace" in Error ? Error.captureStackTrace : (...e) => {
189
+ var pr = "captureStackTrace" in Error ? Error.captureStackTrace : (...e) => {
190
190
  };
191
- function Ee(e) {
191
+ function $e(e) {
192
192
  return typeof e == "object" && e !== null && !Array.isArray(e);
193
193
  }
194
- var wn = /* @__PURE__ */ rt(() => {
194
+ var kn = /* @__PURE__ */ nt(() => {
195
195
  if (M.jitless || typeof navigator < "u" && navigator?.userAgent?.includes("Cloudflare")) return !1;
196
196
  try {
197
197
  return new Function(""), !0;
@@ -200,16 +200,16 @@ var wn = /* @__PURE__ */ rt(() => {
200
200
  }
201
201
  });
202
202
  function de(e) {
203
- if (Ee(e) === !1) return !1;
203
+ if ($e(e) === !1) return !1;
204
204
  const t = e.constructor;
205
205
  if (t === void 0 || typeof t != "function") return !0;
206
206
  const r = t.prototype;
207
- return !(Ee(r) === !1 || Object.prototype.hasOwnProperty.call(r, "isPrototypeOf") === !1);
207
+ return !($e(r) === !1 || Object.prototype.hasOwnProperty.call(r, "isPrototypeOf") === !1);
208
208
  }
209
- function pr(e) {
209
+ function mr(e) {
210
210
  return de(e) ? { ...e } : Array.isArray(e) ? [...e] : e instanceof Map ? new Map(e) : e instanceof Set ? new Set(e) : e;
211
211
  }
212
- var kn = /* @__PURE__ */ new Set([
212
+ var On = /* @__PURE__ */ new Set([
213
213
  "string",
214
214
  "number",
215
215
  "symbol"
@@ -234,23 +234,23 @@ function g(e) {
234
234
  error: () => t.error
235
235
  } : t;
236
236
  }
237
- function mr(e) {
237
+ function gr(e) {
238
238
  return typeof e == "bigint" ? e.toString() + "n" : typeof e == "string" ? `"${e}"` : `${e}`;
239
239
  }
240
- function On(e) {
240
+ function zn(e) {
241
241
  return Object.keys(e).filter((t) => e[t]._zod.optin !== void 0 && e[t]._zod.optout === "optional");
242
242
  }
243
- var gr = {
243
+ var vr = {
244
244
  safeint: [Number.MIN_SAFE_INTEGER, Number.MAX_SAFE_INTEGER],
245
245
  int32: [-2147483648, 2147483647],
246
246
  uint32: [0, 4294967295],
247
247
  float32: [-34028234663852886e22, 34028234663852886e22],
248
248
  float64: [-Number.MAX_VALUE, Number.MAX_VALUE]
249
- }, zn = {
249
+ }, Sn = {
250
250
  int64: [/* @__PURE__ */ BigInt("-9223372036854775808"), /* @__PURE__ */ BigInt("9223372036854775807")],
251
251
  uint64: [/* @__PURE__ */ BigInt(0), /* @__PURE__ */ BigInt("18446744073709551615")]
252
252
  };
253
- function Sn(e, t) {
253
+ function $n(e, t) {
254
254
  const r = e._zod.def, n = r.checks;
255
255
  if (n && n.length > 0) throw new Error(".pick() cannot be used on object schemas containing refinements");
256
256
  const i = {};
@@ -276,24 +276,24 @@ function En(e, t) {
276
276
  checks: []
277
277
  }));
278
278
  }
279
- function $n(e, t) {
279
+ function In(e, t) {
280
280
  if (!de(t)) throw new Error("Invalid input to extend: expected a plain object");
281
281
  const r = e._zod.def.checks;
282
282
  if (r && r.length > 0) {
283
283
  const n = L(e);
284
284
  for (const i of Reflect.ownKeys(t)) if (Object.getOwnPropertyDescriptor(n, i) !== void 0) throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.");
285
285
  }
286
- return J(e, Z(e._zod.def, { shape: vr(e, t) }));
286
+ return J(e, Z(e._zod.def, { shape: br(e, t) }));
287
287
  }
288
- function vr(e, t) {
288
+ function br(e, t) {
289
289
  const r = {};
290
- return G(r, e, Reflect.ownKeys(L(e))), bn(r, t), r;
290
+ return G(r, e, Reflect.ownKeys(L(e))), _n(r, t), r;
291
291
  }
292
- function In(e, t) {
292
+ function An(e, t) {
293
293
  if (!de(t)) throw new Error("Invalid input to safeExtend: expected a plain object");
294
- return J(e, Z(e._zod.def, { shape: vr(e, t) }));
294
+ return J(e, Z(e._zod.def, { shape: br(e, t) }));
295
295
  }
296
- function An(e, t) {
296
+ function Tn(e, t) {
297
297
  if (!t?._zod?.def) throw new Error("Invalid input to merge: expected an object schema. To merge a plain shape, use `.extend()`.");
298
298
  if (e._zod.def.checks?.length) throw new Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");
299
299
  const r = {};
@@ -305,7 +305,7 @@ function An(e, t) {
305
305
  checks: t._zod.def.checks ?? []
306
306
  }));
307
307
  }
308
- function wt(e, t, r, n = "partial") {
308
+ function kt(e, t, r, n = "partial") {
309
309
  const i = t._zod.def.checks;
310
310
  if (i && i.length > 0) throw new Error(`.${n}() cannot be used on object schemas containing refinements`);
311
311
  const o = r ? new Set(Re(t, r)) : void 0, s = {};
@@ -317,7 +317,7 @@ function wt(e, t, r, n = "partial") {
317
317
  checks: []
318
318
  }));
319
319
  }
320
- function Tn(e, t, r) {
320
+ function Pn(e, t, r) {
321
321
  const n = r ? new Set(Re(t, r)) : void 0, i = {};
322
322
  return G(i, t, Reflect.ownKeys(L(t)), (o, s) => n && !n.has(s) ? o : new e({
323
323
  type: "nonoptional",
@@ -329,12 +329,12 @@ function D(e, t = 0) {
329
329
  for (let r = t; r < e.issues.length; r++) if (e.issues[r]?.continue !== !0) return !0;
330
330
  return !1;
331
331
  }
332
- function Pn(e, t = 0) {
332
+ function Zn(e, t = 0) {
333
333
  if (e.aborted === !0) return !0;
334
334
  for (let r = t; r < e.issues.length; r++) if (e.issues[r]?.continue === !1) return !0;
335
335
  return !1;
336
336
  }
337
- function br(e, t) {
337
+ function _r(e, t) {
338
338
  return t.map((r) => {
339
339
  var n;
340
340
  return (n = r).path ?? (n.path = []), r.path.unshift(e), r;
@@ -343,7 +343,17 @@ function br(e, t) {
343
343
  function se(e) {
344
344
  return typeof e == "string" ? e : e?.message;
345
345
  }
346
- function kt(e, t, r) {
346
+ function Ot(e) {
347
+ const t = [];
348
+ for (const r of e ?? []) {
349
+ const n = r._zod.def;
350
+ if (!/_(length|size)$|_equals$/.test(n.check)) break;
351
+ const i = n.maximum ?? n.length ?? n.size;
352
+ i >= 0 && t.push([i, r]);
353
+ }
354
+ return t;
355
+ }
356
+ function Ge(e, t, r) {
347
357
  var n;
348
358
  for (let i = t; i < e.length; i++) (n = e[i]).schema ?? (n.schema = r);
349
359
  }
@@ -356,18 +366,18 @@ function te(e, t, r) {
356
366
  c === "inst" || c === "schema" || c === "continue" || c === "input" || c === "__proto__" || (a[c] = e[c]);
357
367
  return a.path ?? (a.path = []), a.message = s, t?.reportInput && (a.input = e.input), a;
358
368
  }
359
- var Zn = /[\uD800-\uDBFF]/;
360
- function it(e) {
369
+ var Cn = /[\uD800-\uDBFF]/;
370
+ function ot(e) {
361
371
  const t = e.length;
362
- if (!Zn.test(e)) return t;
372
+ if (!Cn.test(e)) return t;
363
373
  let r = t;
364
374
  for (let n = 0; n < t - 1; n++) (e.charCodeAt(n) & 64512) === 55296 && (e.charCodeAt(n + 1) & 64512) === 56320 && (r--, n++);
365
375
  return r;
366
376
  }
367
- function ot(e) {
377
+ function st(e) {
368
378
  return Array.isArray(e) ? "array" : typeof e == "string" ? "string" : "unknown";
369
379
  }
370
- function Cn(e) {
380
+ function Rn(e) {
371
381
  const t = typeof e;
372
382
  switch (t) {
373
383
  case "number":
@@ -390,13 +400,13 @@ function he(...e) {
390
400
  inst: n
391
401
  } : { ...t };
392
402
  }
393
- function Rn(e, t) {
403
+ function Nn(e, t) {
394
404
  for (const r in t) {
395
405
  const n = Object.getOwnPropertyDescriptor(t, r);
396
406
  n.get ? Object.defineProperty(e, r, {
397
407
  ...n,
398
408
  enumerable: !1
399
- }) : Nn(e, r, n.value);
409
+ }) : jn(e, r, n.value);
400
410
  }
401
411
  }
402
412
  function B(e, t, r, n = !0) {
@@ -407,10 +417,10 @@ function B(e, t, r, n = !0) {
407
417
  value: r
408
418
  }), r;
409
419
  }
410
- function _r(e, t, r) {
420
+ function yr(e, t, r) {
411
421
  return B(e, t, r, !1);
412
422
  }
413
- function yr(e, t) {
423
+ function wr(e, t) {
414
424
  for (const r in e) {
415
425
  const n = e[r];
416
426
  Object.defineProperty(t, r, {
@@ -426,7 +436,7 @@ function yr(e, t) {
426
436
  }
427
437
  return t;
428
438
  }
429
- function Nn(e, t, r) {
439
+ function jn(e, t, r) {
430
440
  Object.defineProperty(e, t, {
431
441
  configurable: !0,
432
442
  get() {
@@ -437,11 +447,11 @@ function Nn(e, t, r) {
437
447
  }
438
448
  });
439
449
  }
440
- function jn(e, t) {
450
+ function xn(e, t) {
441
451
  const r = Object.getPrototypeOf(e);
442
452
  return t in r ? void 0 : r;
443
453
  }
444
- var De, U = !1, xn = {
454
+ var De, U = !1, Mn = {
445
455
  configurable: !0,
446
456
  get() {
447
457
  U = !0;
@@ -456,7 +466,7 @@ function y(e, t, r) {
456
466
  De = e._zod, Object.defineProperty(n, t, {
457
467
  configurable: !0,
458
468
  get() {
459
- Object.defineProperty(this, t, xn);
469
+ Object.defineProperty(this, t, Mn);
460
470
  const i = U;
461
471
  U = !1;
462
472
  try {
@@ -479,8 +489,8 @@ function y(e, t, r) {
479
489
  }
480
490
  });
481
491
  }
482
- function Mn(e, t, r, n) {
483
- const i = jn(e, t);
492
+ function Dn(e, t, r, n) {
493
+ const i = xn(e, t);
484
494
  i && Object.defineProperty(i, t, {
485
495
  configurable: !0,
486
496
  get() {
@@ -502,24 +512,24 @@ function Mn(e, t, r, n) {
502
512
  }
503
513
  });
504
514
  }
505
- var Dn = "~constantCatch";
506
- function Ln(e) {
515
+ var Ln = "~constantCatch";
516
+ function Un(e) {
507
517
  const t = () => e;
508
- return t[Dn] = !0, t;
518
+ return t[Ln] = !0, t;
509
519
  }
510
- var Ot, Le = {
520
+ var zt, Le = {
511
521
  value: void 0,
512
522
  enumerable: !1
513
- }, zt = "captureStackTrace" in Error ? Error : null;
514
- function Un(e) {
515
- const t = zt;
523
+ }, St = "captureStackTrace" in Error ? Error : null;
524
+ function Fn(e) {
525
+ const t = St;
516
526
  if (t) {
517
527
  const r = t.stackTraceLimit;
518
528
  if (typeof r == "number") {
519
529
  try {
520
530
  t.stackTraceLimit = 0;
521
531
  } catch {
522
- return zt = null, new e();
532
+ return St = null, new e();
523
533
  }
524
534
  try {
525
535
  return new e();
@@ -553,7 +563,7 @@ function l(e, t, r, n) {
553
563
  let _ = v;
554
564
  for (; _ && _ !== b; ) _ = Object.getPrototypeOf(_);
555
565
  const N = _ ?? v;
556
- a.has(N) || (a.add(N), Rn(N, s));
566
+ a.has(N) || (a.add(N), Nn(N, s));
557
567
  }
558
568
  const m = d.prototype;
559
569
  for (const v in m)
@@ -564,7 +574,7 @@ function l(e, t, r, n) {
564
574
  }
565
575
  Object.defineProperty(f, "name", { value: e });
566
576
  function d(h) {
567
- const p = n?.Parent ? Un(f) : this;
577
+ const p = n?.Parent ? Fn(f) : this;
568
578
  c(p, h);
569
579
  const m = p._zod.deferred;
570
580
  if (m) {
@@ -580,35 +590,35 @@ var H = class extends Error {
580
590
  constructor() {
581
591
  super("Encountered Promise during synchronous parse. Use .parseAsync() instead.");
582
592
  }
583
- }, wr = class extends Error {
593
+ }, kr = class extends Error {
584
594
  constructor(e) {
585
595
  super(`Encountered unidirectional transform during encode: ${e}`), this.name = "ZodEncodeError";
586
596
  }
587
597
  };
588
- (Ot = globalThis).__zod_globalConfig ?? (Ot.__zod_globalConfig = {});
598
+ (zt = globalThis).__zod_globalConfig ?? (zt.__zod_globalConfig = {});
589
599
  var M = globalThis.__zod_globalConfig;
590
600
  function W(e) {
591
601
  return e && Object.assign(M, e), M;
592
602
  }
593
- function Fn() {
603
+ function Bn() {
594
604
  const e = this._zod;
595
605
  return e.message ?? (e.message = JSON.stringify(e.def, He, 2)), e.message;
596
606
  }
597
- function Bn(e) {
607
+ function Jn(e) {
598
608
  this._zod.message = e;
599
609
  }
600
- var Jn = {
601
- get: Fn,
602
- set: Bn,
610
+ var Wn = {
611
+ get: Bn,
612
+ set: Jn,
603
613
  enumerable: !0,
604
614
  configurable: !0
605
615
  }, Ue = {
606
616
  value: void 0,
607
617
  enumerable: !1
608
- }, St = /* @__PURE__ */ new WeakSet([Object.prototype, Error.prototype]), kr = (e, t) => {
609
- e.name = "$ZodError", Ue.value = t, Object.defineProperty(e, "issues", Ue), Ue.value = void 0, Object.defineProperty(e, "message", Jn);
618
+ }, $t = /* @__PURE__ */ new WeakSet([Object.prototype, Error.prototype]), Or = (e, t) => {
619
+ e.name = "$ZodError", Ue.value = t, Object.defineProperty(e, "issues", Ue), Ue.value = void 0, Object.defineProperty(e, "message", Wn);
610
620
  const r = Object.getPrototypeOf(e);
611
- St.has(r) || (St.add(r), Object.defineProperty(r, "toString", {
621
+ $t.has(r) || ($t.add(r), Object.defineProperty(r, "toString", {
612
622
  configurable: !0,
613
623
  enumerable: !1,
614
624
  get() {
@@ -627,8 +637,8 @@ var Jn = {
627
637
  });
628
638
  }
629
639
  }));
630
- }, Wn = l("$ZodError", kr), gu = l("$ZodError", kr, void 0, { Parent: Error });
631
- function Vn(e, t, r) {
640
+ }, Vn = l("$ZodError", Or), _u = l("$ZodError", Or, void 0, { Parent: Error });
641
+ function Kn(e, t, r) {
632
642
  return Object.prototype.hasOwnProperty.call(e, t) || (t === "__proto__" ? Object.defineProperty(e, t, {
633
643
  value: r(),
634
644
  writable: !0,
@@ -636,15 +646,15 @@ function Vn(e, t, r) {
636
646
  configurable: !0
637
647
  }) : e[t] = r()), e[t];
638
648
  }
639
- function Kn(e, t = (r) => r.message) {
649
+ function Hn(e, t = (r) => r.message) {
640
650
  const r = {}, n = [];
641
- for (const i of e.issues) i.path.length > 0 ? Vn(r, i.path[0], () => []).push(t(i)) : n.push(t(i));
651
+ for (const i of e.issues) i.path.length > 0 ? Kn(r, i.path[0], () => []).push(t(i)) : n.push(t(i));
642
652
  return {
643
653
  formErrors: n,
644
654
  fieldErrors: r
645
655
  };
646
656
  }
647
- function Hn(e, t = (r) => r.message) {
657
+ function Gn(e, t = (r) => r.message) {
648
658
  const r = { _errors: [] }, n = (i, o = []) => {
649
659
  for (const s of i.issues) if (s.code === "invalid_union" && s.errors.length) s.errors.map((a) => n({ issues: a }, [...o, ...s.path]));
650
660
  else if (s.code === "invalid_key") n({ issues: s.issues }, [...o, ...s.path]);
@@ -680,7 +690,7 @@ function Ne(e, t) {
680
690
  Err: t?.Err
681
691
  };
682
692
  }
683
- var st = (e) => {
693
+ var at = (e) => {
684
694
  const t = (r, n, i, o) => {
685
695
  const s = i ? {
686
696
  ...i,
@@ -692,12 +702,12 @@ var st = (e) => {
692
702
  if (a instanceof Promise) throw new H();
693
703
  if (a.issues.length) {
694
704
  const c = new (o?.Err ?? e)(a.issues.map((u) => te(u, s, W())));
695
- throw hr(c, o?.callee ?? t), c;
705
+ throw pr(c, o?.callee ?? t), c;
696
706
  }
697
707
  return a.value;
698
708
  };
699
709
  return t;
700
- }, at = (e) => {
710
+ }, ct = (e) => {
701
711
  const t = async (r, n, i, o) => {
702
712
  const s = i ? {
703
713
  ...i,
@@ -709,12 +719,12 @@ var st = (e) => {
709
719
  }, s);
710
720
  if (a instanceof Promise && (a = await a), a.issues.length) {
711
721
  const c = new (o?.Err ?? e)(a.issues.map((u) => te(u, s, W())));
712
- throw hr(c, o?.callee ?? t), c;
722
+ throw pr(c, o?.callee ?? t), c;
713
723
  }
714
724
  return a.value;
715
725
  };
716
726
  return t;
717
- }, ct = (e) => (t, r, n) => {
727
+ }, ut = (e) => (t, r, n) => {
718
728
  const i = n ? {
719
729
  ...n,
720
730
  async: !1
@@ -723,12 +733,12 @@ var st = (e) => {
723
733
  issues: []
724
734
  }, i);
725
735
  if (o instanceof Promise) throw new H();
726
- return o.issues.length ? Or(e, o.issues, i) : {
736
+ return o.issues.length ? zr(e, o.issues, i) : {
727
737
  success: !0,
728
738
  data: o.value
729
739
  };
730
740
  };
731
- function Or(e, t, r) {
741
+ function zr(e, t, r) {
732
742
  let n;
733
743
  return {
734
744
  success: !1,
@@ -740,7 +750,7 @@ function Or(e, t, r) {
740
750
  }
741
751
  };
742
752
  }
743
- var ut = (e) => async (t, r, n) => {
753
+ var lt = (e) => async (t, r, n) => {
744
754
  const i = n ? {
745
755
  ...n,
746
756
  async: !0
@@ -749,19 +759,19 @@ var ut = (e) => async (t, r, n) => {
749
759
  value: r,
750
760
  issues: []
751
761
  }, i);
752
- return o instanceof Promise && (o = await o), o.issues.length ? Or(e, o.issues, i) : {
762
+ return o instanceof Promise && (o = await o), o.issues.length ? zr(e, o.issues, i) : {
753
763
  success: !0,
754
764
  data: o.value
755
765
  };
756
- }, Gn = /* @__PURE__ */ Symbol.for("zod.compile.invalid"), qn = /* @__PURE__ */ Symbol.for("zod.compile.fallback"), Yn = ((e, t, r) => {
766
+ }, qn = /* @__PURE__ */ Symbol.for("zod.compile.invalid"), Yn = /* @__PURE__ */ Symbol.for("zod.compile.fallback"), Xn = ((e, t, r) => {
757
767
  const n = e._zod.bag.validator;
758
768
  if (n !== void 0) {
759
- if (n(t) !== Gn) return !0;
769
+ if (n(t) !== qn) return !0;
760
770
  if (n.definite === !0 && r === void 0) return !1;
761
771
  }
762
- return Xn(e, t, r);
772
+ return Qn(e, t, r);
763
773
  });
764
- function Xn(e, t, r) {
774
+ function Qn(e, t, r) {
765
775
  const n = r ? {
766
776
  ...r,
767
777
  async: !1,
@@ -771,7 +781,7 @@ function Xn(e, t, r) {
771
781
  abortEarly: !0
772
782
  }, i = e._zod.bag.fallbackRun;
773
783
  let o;
774
- if (i ? (n[qn] = !0, o = i({
784
+ if (i ? (n[Yn] = !0, o = i({
775
785
  value: t,
776
786
  issues: []
777
787
  }, n)) : o = e._zod.run({
@@ -780,7 +790,7 @@ function Xn(e, t, r) {
780
790
  }, n), o instanceof Promise) throw new H();
781
791
  return o.issues.length === 0;
782
792
  }
783
- var Qn = async (e, t, r) => {
793
+ var ei = async (e, t, r) => {
784
794
  const n = r ? {
785
795
  ...r,
786
796
  async: !0,
@@ -794,8 +804,8 @@ var Qn = async (e, t, r) => {
794
804
  issues: []
795
805
  }, n);
796
806
  return i instanceof Promise && (i = await i), i.issues.length === 0;
797
- }, ei = (e) => {
798
- const t = st(e), r = (n, i, o, s) => {
807
+ }, ti = (e) => {
808
+ const t = at(e), r = (n, i, o, s) => {
799
809
  const a = o ? {
800
810
  ...o,
801
811
  direction: "backward"
@@ -803,11 +813,11 @@ var Qn = async (e, t, r) => {
803
813
  return t(n, i, a, Ne(r, s));
804
814
  };
805
815
  return r;
806
- }, ti = (e) => {
807
- const t = st(e), r = (n, i, o, s) => t(n, i, o, Ne(r, s));
808
- return r;
809
816
  }, ri = (e) => {
810
- const t = at(e), r = async (n, i, o, s) => {
817
+ const t = at(e), r = (n, i, o, s) => t(n, i, o, Ne(r, s));
818
+ return r;
819
+ }, ni = (e) => {
820
+ const t = ct(e), r = async (n, i, o, s) => {
811
821
  const a = o ? {
812
822
  ...o,
813
823
  direction: "backward"
@@ -815,66 +825,66 @@ var Qn = async (e, t, r) => {
815
825
  return await t(n, i, a, Ne(r, s));
816
826
  };
817
827
  return r;
818
- }, ni = (e) => {
819
- const t = at(e), r = async (n, i, o, s) => await t(n, i, o, Ne(r, s));
828
+ }, ii = (e) => {
829
+ const t = ct(e), r = async (n, i, o, s) => await t(n, i, o, Ne(r, s));
820
830
  return r;
821
- }, ii = (e) => (t, r, n) => {
831
+ }, oi = (e) => (t, r, n) => {
822
832
  const i = n ? {
823
833
  ...n,
824
834
  direction: "backward"
825
835
  } : { direction: "backward" };
826
- return ct(e)(t, r, i);
827
- }, oi = (e) => (t, r, n) => ct(e)(t, r, n), si = (e) => async (t, r, n) => {
836
+ return ut(e)(t, r, i);
837
+ }, si = (e) => (t, r, n) => ut(e)(t, r, n), ai = (e) => async (t, r, n) => {
828
838
  const i = n ? {
829
839
  ...n,
830
840
  direction: "backward"
831
841
  } : { direction: "backward" };
832
- return ut(e)(t, r, i);
833
- }, ai = (e) => async (t, r, n) => ut(e)(t, r, n), ci = /^[cC][0-9a-z]{6,}$/, ui = /^[0-9a-z]+$/, li = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/, fi = /^[0-9a-vA-V]{20}$/, di = /^[A-Za-z0-9]{27}$/, hi = /^[a-zA-Z0-9_-]{21}$/;
834
- function pi(e) {
842
+ return lt(e)(t, r, i);
843
+ }, ci = (e) => async (t, r, n) => lt(e)(t, r, n), ui = /^[cC][0-9a-z]{6,}$/, li = /^[0-9a-z]+$/, fi = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/, di = /^[0-9a-vA-V]{20}$/, hi = /^[A-Za-z0-9]{27}$/, pi = /^[a-zA-Z0-9_-]{21}$/;
844
+ function mi(e) {
835
845
  return new RegExp(`^[a-zA-Z0-9_-]{${e}}$`);
836
846
  }
837
- var mi = /^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/, gi = /^([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})$/, Et = (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)$/, vi = /^(?:[A-Za-z0-9_'+\-]+\.)*[A-Za-z0-9_'+\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/, bi = "^(?=[\\s\\S]*[\\p{Extended_Pictographic}\\p{Regional_Indicator}\\u20E3])[\\p{Extended_Pictographic}\\p{Emoji_Component}]+$";
838
- function _i() {
839
- return new RegExp(bi, "u");
847
+ var gi = /^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/, vi = /^([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})$/, Et = (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)$/, bi = /^(?:[A-Za-z0-9_'+\-]+\.)*[A-Za-z0-9_'+\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/, _i = "^(?=[\\s\\S]*[\\p{Extended_Pictographic}\\p{Regional_Indicator}\\u20E3])[\\p{Extended_Pictographic}\\p{Emoji_Component}]+$";
848
+ function yi() {
849
+ return new RegExp(_i, "u");
840
850
  }
841
- var yi = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/, wi = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/, ki = /^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/, Oi = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/, zi = /^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/, Si = /^(?:[A-Za-z0-9_-]{4})*(?:[A-Za-z0-9_-]{2,3})?$/, Ei = /^https?$/, $i = /^\+[1-9]\d{6,14}$/, zr = "(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))";
842
- function Ii(e) {
851
+ var wi = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/, ki = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/, Oi = /^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/, zi = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/, Si = /^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/, $i = /^(?:[A-Za-z0-9_-]{4})*(?:[A-Za-z0-9_-]{2,3})?$/, Ei = /^https?$/, Ii = /^\+[1-9]\d{6,14}$/, Sr = "(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))";
852
+ function Ai(e) {
843
853
  return new RegExp(`^${e}$`);
844
854
  }
845
- var Ai = /* @__PURE__ */ Ii(zr);
846
- function Ge(e) {
855
+ var Ti = /* @__PURE__ */ Ai(Sr);
856
+ function qe(e) {
847
857
  const t = "(?:[01]\\d|2[0-3]):[0-5]\\d";
848
858
  return typeof e.precision == "number" ? e.precision === -1 ? `${t}` : e.precision === 0 ? `${t}:[0-5]\\d` : `${t}:[0-5]\\d\\.\\d{${e.precision}}` : e.seconds ? `${t}:[0-5]\\d(?:\\.\\d+)?` : `${t}(?::[0-5]\\d(?:\\.\\d+)?)?`;
849
859
  }
850
- function Ti(e) {
851
- return new RegExp(`^${Ge(e)}$`);
852
- }
853
860
  function Pi(e) {
861
+ return new RegExp(`^${qe(e)}$`);
862
+ }
863
+ function Zi(e) {
854
864
  const t = ["Z"];
855
865
  e.offset && t.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");
856
- const r = `${Ge({
866
+ const r = `${qe({
857
867
  precision: e.precision,
858
868
  seconds: !0
859
- })}(?:${t.join("|")})`, n = e.local ? `${r}|${Ge({ precision: e.precision })}` : r;
860
- return new RegExp(`^${zr}T(?:${n})$`);
869
+ })}(?:${t.join("|")})`, n = e.local ? `${r}|${qe({ precision: e.precision })}` : r;
870
+ return new RegExp(`^${Sr}T(?:${n})$`);
861
871
  }
862
- var Zi = /^[\s\S]{0,}$/, Ci = /^-?\d+(?:\.\d+)?$/, Ri = /^(?:true|false)$/i, Ni = /^[^A-Z]*$/, ji = /^[^a-z]*$/, T = /* @__PURE__ */ l("$ZodCheck", (e, t) => {
872
+ var Ci = /^[\s\S]{0,}$/, Ri = /^-?\d+(?:\.\d+)?$/, Ni = /^(?:true|false)$/i, ji = /^[^A-Z]*$/, xi = /^[^a-z]*$/, T = /* @__PURE__ */ l("$ZodCheck", (e, t) => {
863
873
  var r;
864
874
  e._zod ?? (e._zod = {}), e._zod.def = t, (r = e._zod).onattach ?? (r.onattach = []);
865
- }), lt = (e) => {
875
+ }), ft = (e) => {
866
876
  const t = e.value;
867
- return !gn(t) && t.length !== void 0;
868
- }, $e = {
877
+ return !vn(t) && t.length !== void 0;
878
+ }, Ee = {
869
879
  number: "number",
870
880
  bigint: "bigint",
871
881
  object: "date"
872
- }, Sr = /* @__PURE__ */ l("$ZodCheckLessThan", (e, t) => {
882
+ }, $r = /* @__PURE__ */ l("$ZodCheckLessThan", (e, t) => {
873
883
  T.init(e, t);
874
- const r = $e[typeof t.value];
884
+ const r = Ee[typeof t.value];
875
885
  e._zod.check = (n) => {
876
886
  (t.inclusive ? n.value <= t.value : n.value < t.value) || n.issues.push({
877
- origin: $e[typeof n.value] ?? r,
887
+ origin: Ee[typeof n.value] ?? r,
878
888
  code: "too_big",
879
889
  maximum: typeof t.value == "object" ? t.value.getTime() : t.value,
880
890
  input: n.value,
@@ -885,10 +895,10 @@ var Zi = /^[\s\S]{0,}$/, Ci = /^-?\d+(?:\.\d+)?$/, Ri = /^(?:true|false)$/i, Ni
885
895
  };
886
896
  }), Er = /* @__PURE__ */ l("$ZodCheckGreaterThan", (e, t) => {
887
897
  T.init(e, t);
888
- const r = $e[typeof t.value];
898
+ const r = Ee[typeof t.value];
889
899
  e._zod.check = (n) => {
890
900
  (t.inclusive ? n.value >= t.value : n.value > t.value) || n.issues.push({
891
- origin: $e[typeof n.value] ?? r,
901
+ origin: Ee[typeof n.value] ?? r,
892
902
  code: "too_small",
893
903
  minimum: typeof t.value == "object" ? t.value.getTime() : t.value,
894
904
  input: n.value,
@@ -897,10 +907,10 @@ var Zi = /^[\s\S]{0,}$/, Ci = /^-?\d+(?:\.\d+)?$/, Ri = /^(?:true|false)$/i, Ni
897
907
  continue: !t.abort
898
908
  });
899
909
  };
900
- }), xi = /* @__PURE__ */ l("$ZodCheckMultipleOf", (e, t) => {
910
+ }), Mi = /* @__PURE__ */ l("$ZodCheckMultipleOf", (e, t) => {
901
911
  T.init(e, t), e._zod.check = (r) => {
902
912
  if (typeof r.value != typeof t.value) throw new Error("Cannot mix number and bigint in multiple_of check.");
903
- (typeof r.value == "bigint" ? t.value !== BigInt(0) && r.value % t.value === BigInt(0) : vn(r.value, t.value) === 0) || r.issues.push({
913
+ (typeof r.value == "bigint" ? t.value !== BigInt(0) && r.value % t.value === BigInt(0) : bn(r.value, t.value) === 0) || r.issues.push({
904
914
  origin: typeof r.value,
905
915
  code: "not_multiple_of",
906
916
  divisor: t.value,
@@ -909,9 +919,9 @@ var Zi = /^[\s\S]{0,}$/, Ci = /^-?\d+(?:\.\d+)?$/, Ri = /^(?:true|false)$/i, Ni
909
919
  continue: !t.abort
910
920
  });
911
921
  };
912
- }), Mi = /* @__PURE__ */ l("$ZodCheckNumberFormat", (e, t) => {
922
+ }), Di = /* @__PURE__ */ l("$ZodCheckNumberFormat", (e, t) => {
913
923
  T.init(e, t), t.format = t.format || "float64";
914
- const r = t.format?.includes("int"), n = r ? "int" : "number", [i, o] = gr[t.format];
924
+ const r = t.format?.includes("int"), n = r ? "int" : "number", [i, o] = vr[t.format];
915
925
  e._zod.check = (s) => {
916
926
  const a = s.value;
917
927
  if (r) {
@@ -967,12 +977,12 @@ var Zi = /^[\s\S]{0,}$/, Ci = /^-?\d+(?:\.\d+)?$/, Ri = /^(?:true|false)$/i, Ni
967
977
  continue: !t.abort
968
978
  });
969
979
  };
970
- }), Di = /* @__PURE__ */ l("$ZodCheckMaxLength", (e, t) => {
980
+ }), Li = /* @__PURE__ */ l("$ZodCheckMaxLength", (e, t) => {
971
981
  var r;
972
- T.init(e, t), (r = e._zod.def).when ?? (r.when = lt), e._zod.check = (n) => {
982
+ T.init(e, t), (r = e._zod.def).when ?? (r.when = ft), e._zod.check = (n) => {
973
983
  const i = n.value, o = i.length;
974
- if ((typeof i == "string" && o > t.maximum ? it(i) : o) <= t.maximum) return;
975
- const s = ot(i);
984
+ if ((typeof i == "string" && o > t.maximum ? ot(i) : o) <= t.maximum) return;
985
+ const s = st(i);
976
986
  n.issues.push({
977
987
  origin: s,
978
988
  code: "too_big",
@@ -983,12 +993,12 @@ var Zi = /^[\s\S]{0,}$/, Ci = /^-?\d+(?:\.\d+)?$/, Ri = /^(?:true|false)$/i, Ni
983
993
  continue: !t.abort
984
994
  });
985
995
  };
986
- }), Li = /* @__PURE__ */ l("$ZodCheckMinLength", (e, t) => {
996
+ }), Ui = /* @__PURE__ */ l("$ZodCheckMinLength", (e, t) => {
987
997
  var r;
988
- T.init(e, t), (r = e._zod.def).when ?? (r.when = lt), e._zod.check = (n) => {
998
+ T.init(e, t), (r = e._zod.def).when ?? (r.when = ft), e._zod.check = (n) => {
989
999
  const i = n.value, o = i.length;
990
- if ((typeof i == "string" && o >= t.minimum && o < t.minimum * 2 ? it(i) : o) >= t.minimum) return;
991
- const s = ot(i);
1000
+ if ((typeof i == "string" && o >= t.minimum && o < t.minimum * 2 ? ot(i) : o) >= t.minimum) return;
1001
+ const s = st(i);
992
1002
  n.issues.push({
993
1003
  origin: s,
994
1004
  code: "too_small",
@@ -999,12 +1009,12 @@ var Zi = /^[\s\S]{0,}$/, Ci = /^-?\d+(?:\.\d+)?$/, Ri = /^(?:true|false)$/i, Ni
999
1009
  continue: !t.abort
1000
1010
  });
1001
1011
  };
1002
- }), Ui = /* @__PURE__ */ l("$ZodCheckLengthEquals", (e, t) => {
1012
+ }), Fi = /* @__PURE__ */ l("$ZodCheckLengthEquals", (e, t) => {
1003
1013
  var r;
1004
- T.init(e, t), (r = e._zod.def).when ?? (r.when = lt), e._zod.check = (n) => {
1005
- const i = n.value, o = i.length, s = typeof i == "string" && o >= t.length && o <= t.length * 2 ? it(i) : o;
1014
+ T.init(e, t), (r = e._zod.def).when ?? (r.when = ft), e._zod.check = (n) => {
1015
+ const i = n.value, o = i.length, s = typeof i == "string" && o >= t.length && o <= t.length * 2 ? ot(i) : o;
1006
1016
  if (s === t.length) return;
1007
- const a = ot(i), c = s > t.length;
1017
+ const a = st(i), c = s > t.length;
1008
1018
  n.issues.push({
1009
1019
  origin: a,
1010
1020
  ...c ? {
@@ -1035,7 +1045,7 @@ var Zi = /^[\s\S]{0,}$/, Ci = /^-?\d+(?:\.\d+)?$/, Ri = /^(?:true|false)$/i, Ni
1035
1045
  });
1036
1046
  }) : (n = e._zod).check ?? (n.check = () => {
1037
1047
  });
1038
- }), Fi = /* @__PURE__ */ l("$ZodCheckRegex", (e, t) => {
1048
+ }), Bi = /* @__PURE__ */ l("$ZodCheckRegex", (e, t) => {
1039
1049
  je.init(e, t), e._zod.check = (r) => {
1040
1050
  t.pattern.lastIndex = 0, !t.pattern.test(r.value) && r.issues.push({
1041
1051
  origin: "string",
@@ -1047,11 +1057,11 @@ var Zi = /^[\s\S]{0,}$/, Ci = /^-?\d+(?:\.\d+)?$/, Ri = /^(?:true|false)$/i, Ni
1047
1057
  continue: !t.abort
1048
1058
  });
1049
1059
  };
1050
- }), Bi = /* @__PURE__ */ l("$ZodCheckLowerCase", (e, t) => {
1051
- t.pattern ?? (t.pattern = Ni), je.init(e, t);
1052
- }), Ji = /* @__PURE__ */ l("$ZodCheckUpperCase", (e, t) => {
1060
+ }), Ji = /* @__PURE__ */ l("$ZodCheckLowerCase", (e, t) => {
1053
1061
  t.pattern ?? (t.pattern = ji), je.init(e, t);
1054
- }), Wi = /* @__PURE__ */ l("$ZodCheckIncludes", (e, t) => {
1062
+ }), Wi = /* @__PURE__ */ l("$ZodCheckUpperCase", (e, t) => {
1063
+ t.pattern ?? (t.pattern = xi), je.init(e, t);
1064
+ }), Vi = /* @__PURE__ */ l("$ZodCheckIncludes", (e, t) => {
1055
1065
  T.init(e, t);
1056
1066
  const r = Ce(t.includes);
1057
1067
  t.pattern = new RegExp(typeof t.position == "number" ? `^.{${t.position},}${r}` : r), e._zod.check = (n) => {
@@ -1065,7 +1075,7 @@ var Zi = /^[\s\S]{0,}$/, Ci = /^-?\d+(?:\.\d+)?$/, Ri = /^(?:true|false)$/i, Ni
1065
1075
  continue: !t.abort
1066
1076
  });
1067
1077
  };
1068
- }), Vi = /* @__PURE__ */ l("$ZodCheckStartsWith", (e, t) => {
1078
+ }), Ki = /* @__PURE__ */ l("$ZodCheckStartsWith", (e, t) => {
1069
1079
  T.init(e, t);
1070
1080
  const r = new RegExp(`^${Ce(t.prefix)}.*`);
1071
1081
  t.pattern ?? (t.pattern = r), e._zod.check = (n) => {
@@ -1079,7 +1089,7 @@ var Zi = /^[\s\S]{0,}$/, Ci = /^-?\d+(?:\.\d+)?$/, Ri = /^(?:true|false)$/i, Ni
1079
1089
  continue: !t.abort
1080
1090
  });
1081
1091
  };
1082
- }), Ki = /* @__PURE__ */ l("$ZodCheckEndsWith", (e, t) => {
1092
+ }), Hi = /* @__PURE__ */ l("$ZodCheckEndsWith", (e, t) => {
1083
1093
  T.init(e, t);
1084
1094
  const r = new RegExp(`.*${Ce(t.suffix)}$`);
1085
1095
  t.pattern ?? (t.pattern = r), e._zod.check = (n) => {
@@ -1093,11 +1103,11 @@ var Zi = /^[\s\S]{0,}$/, Ci = /^-?\d+(?:\.\d+)?$/, Ri = /^(?:true|false)$/i, Ni
1093
1103
  continue: !t.abort
1094
1104
  });
1095
1105
  };
1096
- }), Hi = /* @__PURE__ */ l("$ZodCheckOverwrite", (e, t) => {
1106
+ }), Gi = /* @__PURE__ */ l("$ZodCheckOverwrite", (e, t) => {
1097
1107
  T.init(e, t), e._zod.check = (r) => {
1098
1108
  r.value = t.tx(r.value);
1099
1109
  };
1100
- }), Gi = class {
1110
+ }), qi = class {
1101
1111
  constructor(e = [], t = {}) {
1102
1112
  this.content = [], this.indent = 0, this.args = e, this.closed = t;
1103
1113
  }
@@ -1125,13 +1135,13 @@ ${t.join(`
1125
1135
  `)}
1126
1136
  };`)(...Object.values(this.closed));
1127
1137
  }
1128
- }, qi = {
1138
+ }, Yi = {
1129
1139
  major: 4,
1130
1140
  minor: 6,
1131
- patch: 5
1141
+ patch: 6
1132
1142
  }, S = /* @__PURE__ */ l("$ZodType", (e, t) => {
1133
1143
  var r;
1134
- e ?? (e = {}), e._zod.def = t, e._zod.bag = e._zod.bag || {}, e._zod.version = qi;
1144
+ e ?? (e = {}), e._zod.def = t, e._zod.bag = e._zod.bag || {}, e._zod.version = Yi;
1135
1145
  const n = e._zod.def.checks, i = e._zod.traits.has("$ZodCheck") ? [e, ...n ?? []] : n?.length ? [...n] : [];
1136
1146
  for (const o of i) for (const s of o._zod.onattach) s(e);
1137
1147
  if (i.length === 0)
@@ -1144,16 +1154,16 @@ ${t.join(`
1144
1154
  let f = D(a), d;
1145
1155
  for (const h of c) {
1146
1156
  if (h._zod.def.when) {
1147
- if (Pn(a) || !h._zod.def.when(a)) continue;
1157
+ if (Zn(a) || !h._zod.def.when(a)) continue;
1148
1158
  } else if (f) continue;
1149
1159
  const p = a.issues.length, m = h._zod.check(a);
1150
1160
  if (m instanceof Promise && u?.async === !1) throw new H();
1151
1161
  if (d || m instanceof Promise) d = (d ?? Promise.resolve()).then(async () => {
1152
- await m, a.issues.length !== p && (kt(a.issues, p, e), f || (f = D(a, p)));
1162
+ await m, a.issues.length !== p && (Ge(a.issues, p, e), f || (f = D(a, p)));
1153
1163
  });
1154
1164
  else {
1155
1165
  if (a.issues.length === p) continue;
1156
- kt(a.issues, p, e), f || (f = D(a, p));
1166
+ Ge(a.issues, p, e), f || (f = D(a, p));
1157
1167
  }
1158
1168
  }
1159
1169
  return d ? d.then(() => a) : a;
@@ -1189,20 +1199,20 @@ ${t.join(`
1189
1199
  }
1190
1200
  }, {
1191
1201
  get "~standard"() {
1192
- return _r(this, "~standard", Ir(this));
1202
+ return yr(this, "~standard", Ar(this));
1193
1203
  },
1194
1204
  set "~standard"(e) {
1195
1205
  B(this, "~standard", e);
1196
1206
  }
1197
- }), $r = (e, t) => e.issues.length ? { issues: e.issues.map((r) => te(r, t, W())) } : { value: e.value };
1198
- async function Yi(e, t) {
1207
+ }), Ir = (e, t) => e.issues.length ? { issues: e.issues.map((r) => te(r, t, W())) } : { value: e.value };
1208
+ async function Xi(e, t) {
1199
1209
  const r = { async: !0 };
1200
- return $r(await e._zod.run({
1210
+ return Ir(await e._zod.run({
1201
1211
  value: t,
1202
1212
  issues: []
1203
1213
  }, r), r);
1204
1214
  }
1205
- function Ir(e) {
1215
+ function Ar(e) {
1206
1216
  return {
1207
1217
  validate: (t) => {
1208
1218
  const r = { async: !1 };
@@ -1211,17 +1221,17 @@ function Ir(e) {
1211
1221
  value: t,
1212
1222
  issues: []
1213
1223
  }, r);
1214
- if (!(n instanceof Promise)) return $r(n, r);
1224
+ if (!(n instanceof Promise)) return Ir(n, r);
1215
1225
  } catch {
1216
1226
  }
1217
- return Yi(e, t);
1227
+ return Xi(e, t);
1218
1228
  },
1219
1229
  vendor: "zod",
1220
1230
  version: 1
1221
1231
  };
1222
1232
  }
1223
- var ft = /* @__PURE__ */ l("$ZodString", (e, t) => {
1224
- S.init(e, t), e._zod.pattern = t.pattern ?? Zi, e._zod.parse = (r, n) => {
1233
+ var dt = /* @__PURE__ */ l("$ZodString", (e, t) => {
1234
+ S.init(e, t), e._zod.pattern = t.pattern ?? Ci, e._zod.parse = (r, n) => {
1225
1235
  if (t.coerce) try {
1226
1236
  r.value = String(r.value);
1227
1237
  } catch {
@@ -1234,10 +1244,10 @@ var ft = /* @__PURE__ */ l("$ZodString", (e, t) => {
1234
1244
  }), r;
1235
1245
  };
1236
1246
  }), O = /* @__PURE__ */ l("$ZodStringFormat", (e, t) => {
1237
- je.init(e, t), ft.init(e, t);
1238
- }), Xi = /* @__PURE__ */ l("$ZodGUID", (e, t) => {
1239
- t.pattern ?? (t.pattern = gi), O.init(e, t);
1240
- }), Qi = /* @__PURE__ */ l("$ZodUUID", (e, t) => {
1247
+ je.init(e, t), dt.init(e, t);
1248
+ }), Qi = /* @__PURE__ */ l("$ZodGUID", (e, t) => {
1249
+ t.pattern ?? (t.pattern = vi), O.init(e, t);
1250
+ }), eo = /* @__PURE__ */ l("$ZodUUID", (e, t) => {
1241
1251
  if (t.version) {
1242
1252
  const r = {
1243
1253
  v1: 1,
@@ -1253,20 +1263,20 @@ var ft = /* @__PURE__ */ l("$ZodString", (e, t) => {
1253
1263
  t.pattern ?? (t.pattern = Et(r));
1254
1264
  } else t.pattern ?? (t.pattern = Et());
1255
1265
  O.init(e, t);
1256
- }), eo = /* @__PURE__ */ l("$ZodEmail", (e, t) => {
1257
- t.pattern ?? (t.pattern = vi), O.init(e, t);
1266
+ }), to = /* @__PURE__ */ l("$ZodEmail", (e, t) => {
1267
+ t.pattern ?? (t.pattern = bi), O.init(e, t);
1258
1268
  });
1259
- function Ar(e) {
1269
+ function Tr(e) {
1260
1270
  try {
1261
1271
  return typeof URL < "u" && typeof URL.canParse == "function" ? URL.canParse(e) : (new URL(e), !0);
1262
1272
  } catch {
1263
1273
  return !1;
1264
1274
  }
1265
1275
  }
1266
- function to(e, t) {
1267
- return !("normalize" in t) && !("hostname" in t) && !("protocol" in t) ? Ar(e) || 2 : ro(e, t);
1268
- }
1269
1276
  function ro(e, t) {
1277
+ return !("normalize" in t) && !("hostname" in t) && !("protocol" in t) ? Tr(e) || 2 : no(e, t);
1278
+ }
1279
+ function no(e, t) {
1270
1280
  if (!t.normalize && t.protocol?.source === Ei.source && !/^https?:\/\//i.test(e)) return 1;
1271
1281
  try {
1272
1282
  if (typeof URL < "u") {
@@ -1278,20 +1288,20 @@ function ro(e, t) {
1278
1288
  return 2;
1279
1289
  }
1280
1290
  }
1281
- var no = /[\t\n\r]/g;
1282
- function $t(e) {
1283
- return e.replace(no, "");
1291
+ var io = /[\t\n\r]/g;
1292
+ function It(e) {
1293
+ return e.replace(io, "");
1284
1294
  }
1285
- function io(e, t) {
1295
+ function oo(e, t) {
1286
1296
  return t.lastIndex = 0, t.test(e.hostname);
1287
1297
  }
1288
- function oo(e, t) {
1298
+ function so(e, t) {
1289
1299
  return t.lastIndex = 0, t.test(e.protocol.endsWith(":") ? e.protocol.slice(0, -1) : e.protocol);
1290
1300
  }
1291
- var so = /* @__PURE__ */ l("$ZodURL", (e, t) => {
1301
+ var ao = /* @__PURE__ */ l("$ZodURL", (e, t) => {
1292
1302
  O.init(e, t), e._zod.check = (r) => {
1293
1303
  try {
1294
- const n = r.value.trim(), i = to(n, t);
1304
+ const n = r.value.trim(), i = ro(n, t);
1295
1305
  if (i === 1) {
1296
1306
  r.issues.push({
1297
1307
  code: "invalid_format",
@@ -1314,10 +1324,10 @@ var so = /* @__PURE__ */ l("$ZodURL", (e, t) => {
1314
1324
  return;
1315
1325
  }
1316
1326
  if (i === !0) {
1317
- r.value = $t(n);
1327
+ r.value = It(n);
1318
1328
  return;
1319
1329
  }
1320
- t.hostname && !io(i, t.hostname) && r.issues.push({
1330
+ t.hostname && !oo(i, t.hostname) && r.issues.push({
1321
1331
  code: "invalid_format",
1322
1332
  format: "url",
1323
1333
  note: "Invalid hostname",
@@ -1325,7 +1335,7 @@ var so = /* @__PURE__ */ l("$ZodURL", (e, t) => {
1325
1335
  input: r.value,
1326
1336
  inst: e,
1327
1337
  continue: !t.abort
1328
- }), t.protocol && !oo(i, t.protocol) && r.issues.push({
1338
+ }), t.protocol && !so(i, t.protocol) && r.issues.push({
1329
1339
  code: "invalid_format",
1330
1340
  format: "url",
1331
1341
  note: "Invalid protocol",
@@ -1333,7 +1343,7 @@ var so = /* @__PURE__ */ l("$ZodURL", (e, t) => {
1333
1343
  input: r.value,
1334
1344
  inst: e,
1335
1345
  continue: !t.abort
1336
- }), r.value = t.normalize ? i.href : $t(n);
1346
+ }), r.value = t.normalize ? i.href : It(n);
1337
1347
  return;
1338
1348
  } catch {
1339
1349
  r.issues.push({
@@ -1345,38 +1355,38 @@ var so = /* @__PURE__ */ l("$ZodURL", (e, t) => {
1345
1355
  });
1346
1356
  }
1347
1357
  };
1348
- }), ao = /* @__PURE__ */ l("$ZodEmoji", (e, t) => {
1349
- t.pattern ?? (t.pattern = _i()), O.init(e, t);
1350
- }), co = /* @__PURE__ */ l("$ZodNanoID", (e, t) => {
1358
+ }), co = /* @__PURE__ */ l("$ZodEmoji", (e, t) => {
1359
+ t.pattern ?? (t.pattern = yi()), O.init(e, t);
1360
+ }), uo = /* @__PURE__ */ l("$ZodNanoID", (e, t) => {
1351
1361
  if (t.length !== void 0 && (!Number.isInteger(t.length) || t.length < 1)) throw new Error(`Invalid nanoid length: ${t.length}`);
1352
- t.pattern ?? (t.pattern = t.length === void 0 ? hi : pi(t.length)), O.init(e, t);
1353
- }), uo = /* @__PURE__ */ l("$ZodCUID", (e, t) => {
1354
- t.pattern ?? (t.pattern = ci), O.init(e, t);
1355
- }), lo = /* @__PURE__ */ l("$ZodCUID2", (e, t) => {
1362
+ t.pattern ?? (t.pattern = t.length === void 0 ? pi : mi(t.length)), O.init(e, t);
1363
+ }), lo = /* @__PURE__ */ l("$ZodCUID", (e, t) => {
1356
1364
  t.pattern ?? (t.pattern = ui), O.init(e, t);
1357
- }), fo = /* @__PURE__ */ l("$ZodULID", (e, t) => {
1365
+ }), fo = /* @__PURE__ */ l("$ZodCUID2", (e, t) => {
1358
1366
  t.pattern ?? (t.pattern = li), O.init(e, t);
1359
- }), ho = /* @__PURE__ */ l("$ZodXID", (e, t) => {
1367
+ }), ho = /* @__PURE__ */ l("$ZodULID", (e, t) => {
1360
1368
  t.pattern ?? (t.pattern = fi), O.init(e, t);
1361
- }), po = /* @__PURE__ */ l("$ZodKSUID", (e, t) => {
1369
+ }), po = /* @__PURE__ */ l("$ZodXID", (e, t) => {
1362
1370
  t.pattern ?? (t.pattern = di), O.init(e, t);
1363
- }), mo = /* @__PURE__ */ l("$ZodISODateTime", (e, t) => {
1371
+ }), mo = /* @__PURE__ */ l("$ZodKSUID", (e, t) => {
1372
+ t.pattern ?? (t.pattern = hi), O.init(e, t);
1373
+ }), go = /* @__PURE__ */ l("$ZodISODateTime", (e, t) => {
1374
+ t.pattern ?? (t.pattern = Zi(t)), O.init(e, t);
1375
+ }), vo = /* @__PURE__ */ l("$ZodISODate", (e, t) => {
1376
+ t.pattern ?? (t.pattern = Ti), O.init(e, t);
1377
+ }), bo = /* @__PURE__ */ l("$ZodISOTime", (e, t) => {
1364
1378
  t.pattern ?? (t.pattern = Pi(t)), O.init(e, t);
1365
- }), go = /* @__PURE__ */ l("$ZodISODate", (e, t) => {
1366
- t.pattern ?? (t.pattern = Ai), O.init(e, t);
1367
- }), vo = /* @__PURE__ */ l("$ZodISOTime", (e, t) => {
1368
- t.pattern ?? (t.pattern = Ti(t)), O.init(e, t);
1369
- }), bo = /* @__PURE__ */ l("$ZodISODuration", (e, t) => {
1370
- t.pattern ?? (t.pattern = mi), O.init(e, t);
1371
- }), _o = /* @__PURE__ */ l("$ZodIPv4", (e, t) => {
1372
- t.pattern ?? (t.pattern = yi), O.init(e, t);
1373
- }), yo = /^[0-9a-fA-F:.]+$/;
1374
- function Tr(e) {
1375
- return yo.test(e) ? Ar(`http://[${e}]`) : !1;
1379
+ }), _o = /* @__PURE__ */ l("$ZodISODuration", (e, t) => {
1380
+ t.pattern ?? (t.pattern = gi), O.init(e, t);
1381
+ }), yo = /* @__PURE__ */ l("$ZodIPv4", (e, t) => {
1382
+ t.pattern ?? (t.pattern = wi), O.init(e, t);
1383
+ }), wo = /^[0-9a-fA-F:.]+$/;
1384
+ function Pr(e) {
1385
+ return wo.test(e) ? Tr(`http://[${e}]`) : !1;
1376
1386
  }
1377
- var wo = /* @__PURE__ */ l("$ZodIPv6", (e, t) => {
1378
- t.pattern ?? (t.pattern = wi), O.init(e, t), e._zod.check = (r) => {
1379
- Tr(r.value) || r.issues.push({
1387
+ var ko = /* @__PURE__ */ l("$ZodIPv6", (e, t) => {
1388
+ t.pattern ?? (t.pattern = ki), O.init(e, t), e._zod.check = (r) => {
1389
+ Pr(r.value) || r.issues.push({
1380
1390
  code: "invalid_format",
1381
1391
  format: "ipv6",
1382
1392
  input: r.value,
@@ -1384,20 +1394,20 @@ var wo = /* @__PURE__ */ l("$ZodIPv6", (e, t) => {
1384
1394
  continue: !t.abort
1385
1395
  });
1386
1396
  };
1387
- }), ko = /* @__PURE__ */ l("$ZodCIDRv4", (e, t) => {
1388
- t.pattern ?? (t.pattern = ki), O.init(e, t);
1397
+ }), Oo = /* @__PURE__ */ l("$ZodCIDRv4", (e, t) => {
1398
+ t.pattern ?? (t.pattern = Oi), O.init(e, t);
1389
1399
  });
1390
- function Oo(e) {
1400
+ function zo(e) {
1391
1401
  const t = e.split("/");
1392
1402
  if (t.length !== 2) return !1;
1393
1403
  const [r, n] = t;
1394
1404
  if (!n) return !1;
1395
1405
  const i = Number(n);
1396
- return `${i}` !== n || i < 0 || i > 128 ? !1 : Tr(r);
1406
+ return `${i}` !== n || i < 0 || i > 128 ? !1 : Pr(r);
1397
1407
  }
1398
- var zo = /* @__PURE__ */ l("$ZodCIDRv6", (e, t) => {
1399
- t.pattern ?? (t.pattern = Oi), O.init(e, t), e._zod.check = (r) => {
1400
- Oo(r.value) || r.issues.push({
1408
+ var So = /* @__PURE__ */ l("$ZodCIDRv6", (e, t) => {
1409
+ t.pattern ?? (t.pattern = zi), O.init(e, t), e._zod.check = (r) => {
1410
+ zo(r.value) || r.issues.push({
1401
1411
  code: "invalid_format",
1402
1412
  format: "cidrv6",
1403
1413
  input: r.value,
@@ -1406,7 +1416,7 @@ var zo = /* @__PURE__ */ l("$ZodCIDRv6", (e, t) => {
1406
1416
  });
1407
1417
  };
1408
1418
  });
1409
- function Pr(e) {
1419
+ function Zr(e) {
1410
1420
  if (e === "") return !0;
1411
1421
  if (/\s/.test(e) || e.length % 4 !== 0) return !1;
1412
1422
  try {
@@ -1415,9 +1425,9 @@ function Pr(e) {
1415
1425
  return !1;
1416
1426
  }
1417
1427
  }
1418
- var Zr = /^[0-9a-zA-Z+/]*={0,2}$/, So = /* @__PURE__ */ l("$ZodBase64", (e, t) => {
1419
- t.pattern ?? (t.pattern = Zr), O.init(e, t), e._zod.check = (r) => {
1420
- Pr(r.value) || r.issues.push({
1428
+ var Cr = /^[0-9a-zA-Z+/]*={0,2}$/, $o = /* @__PURE__ */ l("$ZodBase64", (e, t) => {
1429
+ t.pattern ?? (t.pattern = Cr), O.init(e, t), e._zod.check = (r) => {
1430
+ Zr(r.value) || r.issues.push({
1421
1431
  code: "invalid_format",
1422
1432
  format: "base64",
1423
1433
  input: r.value,
@@ -1425,14 +1435,14 @@ var Zr = /^[0-9a-zA-Z+/]*={0,2}$/, So = /* @__PURE__ */ l("$ZodBase64", (e, t) =
1425
1435
  continue: !t.abort
1426
1436
  });
1427
1437
  };
1428
- }), dt = /^[A-Za-z0-9_-]*$/;
1438
+ }), ht = /^[A-Za-z0-9_-]*$/;
1429
1439
  function Eo(e) {
1430
- if (!dt.test(e)) return !1;
1440
+ if (!ht.test(e)) return !1;
1431
1441
  const t = e.replace(/[-_]/g, (r) => r === "-" ? "+" : "/");
1432
- return Pr(t.padEnd(Math.ceil(t.length / 4) * 4, "="));
1442
+ return Zr(t.padEnd(Math.ceil(t.length / 4) * 4, "="));
1433
1443
  }
1434
- var $o = /* @__PURE__ */ l("$ZodBase64URL", (e, t) => {
1435
- t.pattern ?? (t.pattern = dt), O.init(e, t), e._zod.check = (r) => {
1444
+ var Io = /* @__PURE__ */ l("$ZodBase64URL", (e, t) => {
1445
+ t.pattern ?? (t.pattern = ht), O.init(e, t), e._zod.check = (r) => {
1436
1446
  Eo(r.value) || r.issues.push({
1437
1447
  code: "invalid_format",
1438
1448
  format: "base64url",
@@ -1441,10 +1451,10 @@ var $o = /* @__PURE__ */ l("$ZodBase64URL", (e, t) => {
1441
1451
  continue: !t.abort
1442
1452
  });
1443
1453
  };
1444
- }), Io = /* @__PURE__ */ l("$ZodE164", (e, t) => {
1445
- t.pattern ?? (t.pattern = $i), O.init(e, t);
1454
+ }), Ao = /* @__PURE__ */ l("$ZodE164", (e, t) => {
1455
+ t.pattern ?? (t.pattern = Ii), O.init(e, t);
1446
1456
  });
1447
- function Ao(e, t = null) {
1457
+ function To(e, t = null) {
1448
1458
  try {
1449
1459
  const r = e.split(".");
1450
1460
  if (r.length !== 3) return !1;
@@ -1456,9 +1466,9 @@ function Ao(e, t = null) {
1456
1466
  return !1;
1457
1467
  }
1458
1468
  }
1459
- var To = /* @__PURE__ */ l("$ZodJWT", (e, t) => {
1469
+ var Po = /* @__PURE__ */ l("$ZodJWT", (e, t) => {
1460
1470
  O.init(e, t), e._zod.check = (r) => {
1461
- Ao(r.value, t.alg) || r.issues.push({
1471
+ To(r.value, t.alg) || r.issues.push({
1462
1472
  code: "invalid_format",
1463
1473
  format: "jwt",
1464
1474
  input: r.value,
@@ -1466,8 +1476,8 @@ var To = /* @__PURE__ */ l("$ZodJWT", (e, t) => {
1466
1476
  continue: !t.abort
1467
1477
  });
1468
1478
  };
1469
- }), Cr = /* @__PURE__ */ l("$ZodNumber", (e, t) => {
1470
- S.init(e, t), e._zod.pattern = Ci, e._zod.parse = (r, n) => {
1479
+ }), Rr = /* @__PURE__ */ l("$ZodNumber", (e, t) => {
1480
+ S.init(e, t), e._zod.pattern = Ri, e._zod.parse = (r, n) => {
1471
1481
  if (t.coerce) try {
1472
1482
  r.value = Number(r.value);
1473
1483
  } catch {
@@ -1483,10 +1493,10 @@ var To = /* @__PURE__ */ l("$ZodJWT", (e, t) => {
1483
1493
  ...o ? { received: o } : {}
1484
1494
  }), r;
1485
1495
  };
1486
- }), Po = /* @__PURE__ */ l("$ZodNumberFormat", (e, t) => {
1487
- Mi.init(e, t), Cr.init(e, t);
1488
- }), Zo = /* @__PURE__ */ l("$ZodBoolean", (e, t) => {
1489
- S.init(e, t), e._zod.pattern = Ri, e._zod.parse = (r, n) => {
1496
+ }), Zo = /* @__PURE__ */ l("$ZodNumberFormat", (e, t) => {
1497
+ Di.init(e, t), Rr.init(e, t);
1498
+ }), Co = /* @__PURE__ */ l("$ZodBoolean", (e, t) => {
1499
+ S.init(e, t), e._zod.pattern = Ni, e._zod.parse = (r, n) => {
1490
1500
  if (t.coerce) try {
1491
1501
  r.value = !!r.value;
1492
1502
  } catch {
@@ -1499,9 +1509,9 @@ var To = /* @__PURE__ */ l("$ZodJWT", (e, t) => {
1499
1509
  inst: e
1500
1510
  }), r;
1501
1511
  };
1502
- }), Co = /* @__PURE__ */ l("$ZodUnknown", (e, t) => {
1512
+ }), Ro = /* @__PURE__ */ l("$ZodUnknown", (e, t) => {
1503
1513
  S.init(e, t), e._zod.parse = (r) => r;
1504
- }), Ro = /* @__PURE__ */ l("$ZodNever", (e, t) => {
1514
+ }), No = /* @__PURE__ */ l("$ZodNever", (e, t) => {
1505
1515
  S.init(e, t), e._zod.parse = (r, n) => (r.issues.push({
1506
1516
  expected: "never",
1507
1517
  code: "invalid_type",
@@ -1509,10 +1519,26 @@ var To = /* @__PURE__ */ l("$ZodJWT", (e, t) => {
1509
1519
  inst: e
1510
1520
  }), r);
1511
1521
  });
1512
- function It(e, t, r) {
1513
- e.issues.length && t.issues.push(...br(r, e.issues)), t.value[r] = e.value;
1522
+ function jo(e, t) {
1523
+ const r = Ot(e._zod.def.checks);
1524
+ if (!r.length) return;
1525
+ const n = Math.min(...r.map((o) => o[0])), i = e._zod.parse;
1526
+ e._zod.parse = (o, s) => {
1527
+ const a = t(o.value);
1528
+ if (a > n && !s?.skipChecks && s?.direction !== "backward") {
1529
+ for (const [c, u] of Ot(e._zod.def.checks)) if (a > c && u._zod.def.when(o)) {
1530
+ const f = o.issues.length;
1531
+ return u._zod.check(o), o.issues[f].continue = !1, Ge(o.issues, f, e), o;
1532
+ }
1533
+ }
1534
+ return i(o, s);
1535
+ };
1514
1536
  }
1515
- var No = /* @__PURE__ */ l("$ZodArray", (e, t) => {
1537
+ var xo = (e) => Array.isArray(e) ? e.length : -1;
1538
+ function At(e, t, r) {
1539
+ e.issues.length && t.issues.push(..._r(r, e.issues)), t.value[r] = e.value;
1540
+ }
1541
+ var Mo = /* @__PURE__ */ l("$ZodArray", (e, t) => {
1516
1542
  S.init(e, t);
1517
1543
  const r = M.memoizer;
1518
1544
  r?.attach(e), e._zod.parse = (n, i) => {
@@ -1531,18 +1557,18 @@ var No = /* @__PURE__ */ l("$ZodArray", (e, t) => {
1531
1557
  value: u,
1532
1558
  issues: []
1533
1559
  }, i);
1534
- if (f instanceof Promise) s.push(f.then((d) => It(d, n, c)));
1535
- else if (It(f, n, c), a && f.issues.length !== 0 && D(f)) break;
1560
+ if (f instanceof Promise) s.push(f.then((d) => At(d, n, c)));
1561
+ else if (At(f, n, c), a && f.issues.length !== 0 && D(f)) break;
1536
1562
  }
1537
1563
  return s.length ? Promise.all(s).then(() => n) : n;
1538
- };
1564
+ }, jo(e, xo);
1539
1565
  });
1540
1566
  function Ie(e, t, r, n, i, o) {
1541
1567
  const s = r in n, a = o === "optional";
1542
1568
  if (!(!s && a && i === "optional")) {
1543
1569
  if (e.issues.length) {
1544
1570
  if (i !== void 0 && a && !s) return;
1545
- t.issues.push(...br(r, e.issues));
1571
+ t.issues.push(..._r(r, e.issues));
1546
1572
  }
1547
1573
  if (!s && i === void 0) {
1548
1574
  e.issues.length || t.issues.push({
@@ -1556,11 +1582,11 @@ function Ie(e, t, r, n, i, o) {
1556
1582
  e.value === void 0 ? (s || i === "defaulted" && !a) && (t.value[r] = void 0) : t.value[r] = e.value;
1557
1583
  }
1558
1584
  }
1559
- var jo = [];
1560
- function Rr(e) {
1561
- const t = Object.keys(e.shape), r = Object.getOwnPropertySymbols(e.shape), n = r.length ? r : jo, i = n.length ? [...t, ...n] : t;
1585
+ var Do = [];
1586
+ function Nr(e) {
1587
+ const t = Object.keys(e.shape), r = Object.getOwnPropertySymbols(e.shape), n = r.length ? r : Do, i = n.length ? [...t, ...n] : t;
1562
1588
  for (const s of i) if (!e.shape?.[s]?._zod?.traits?.has("$ZodType")) throw new Error(`Invalid element at key "${String(s)}": expected a Zod schema`);
1563
- const o = On(e.shape);
1589
+ const o = zn(e.shape);
1564
1590
  return {
1565
1591
  ...e,
1566
1592
  allKeys: i,
@@ -1570,7 +1596,7 @@ function Rr(e) {
1570
1596
  optionalKeys: new Set(o)
1571
1597
  };
1572
1598
  }
1573
- function Nr(e, t, r, n, i, o, s) {
1599
+ function jr(e, t, r, n, i, o, s) {
1574
1600
  const a = [], c = i.keySet, u = i.catchall._zod, f = u.def.type, d = u.optin, h = u.optout;
1575
1601
  let p = 0;
1576
1602
  for (const m in t) {
@@ -1601,7 +1627,7 @@ function Nr(e, t, r, n, i, o, s) {
1601
1627
  continue: !0
1602
1628
  }), e.length ? Promise.all(e).then(() => r) : r;
1603
1629
  }
1604
- var xo = /* @__PURE__ */ l("$ZodObject", (e, t) => {
1630
+ var Lo = /* @__PURE__ */ l("$ZodObject", (e, t) => {
1605
1631
  S.init(e, t);
1606
1632
  const r = Object.getOwnPropertyDescriptor(t, "shape"), n = r?.get ? r.get.raw : t.shape ?? {};
1607
1633
  if (n) {
@@ -1611,7 +1637,7 @@ var xo = /* @__PURE__ */ l("$ZodObject", (e, t) => {
1611
1637
  };
1612
1638
  u.raw = n, Object.defineProperty(t, "shape", { get: u });
1613
1639
  }
1614
- const i = rt(() => Rr(t));
1640
+ const i = nt(() => Nr(t));
1615
1641
  y(e, "propValues", (u) => {
1616
1642
  const f = u.def.shape, d = {};
1617
1643
  for (const h in f) {
@@ -1624,7 +1650,7 @@ var xo = /* @__PURE__ */ l("$ZodObject", (e, t) => {
1624
1650
  }
1625
1651
  return d;
1626
1652
  });
1627
- const o = Ee, s = t.catchall;
1653
+ const o = $e, s = t.catchall;
1628
1654
  let a;
1629
1655
  const c = M.memoizer;
1630
1656
  c?.attach(e), e._zod.parse = (u, f) => {
@@ -1650,53 +1676,53 @@ var xo = /* @__PURE__ */ l("$ZodObject", (e, t) => {
1650
1676
  value: d[b],
1651
1677
  issues: []
1652
1678
  }, f);
1653
- oe instanceof Promise ? h.push(oe.then(($) => Ie($, u, b, d, N, ie))) : Ie(oe, u, b, d, N, ie);
1679
+ oe instanceof Promise ? h.push(oe.then((E) => Ie(E, u, b, d, N, ie))) : Ie(oe, u, b, d, N, ie);
1654
1680
  }
1655
- return s ? Nr(h, d, u, f, i.value, e, m === !0) : h.length ? Promise.all(h).then(() => u) : u;
1681
+ return s ? jr(h, d, u, f, i.value, e, m === !0) : h.length ? Promise.all(h).then(() => u) : u;
1656
1682
  };
1657
- }), Mo = /* @__PURE__ */ l("$ZodObjectJIT", (e, t) => {
1658
- xo.init(e, t);
1659
- const r = e._zod.parse, n = rt(() => Rr(t)), i = M.memoizer, o = (p) => {
1660
- const m = n.value, v = m.symbolKeys, b = new Gi(["payload", "ctx"], {
1683
+ }), Uo = /* @__PURE__ */ l("$ZodObjectJIT", (e, t) => {
1684
+ Lo.init(e, t);
1685
+ const r = e._zod.parse, n = nt(() => Nr(t)), i = M.memoizer, o = (p) => {
1686
+ const m = n.value, v = m.symbolKeys, b = new qi(["payload", "ctx"], {
1661
1687
  shape: p,
1662
1688
  inst: e,
1663
1689
  memo: i,
1664
1690
  syms: v
1665
- }), _ = ($) => `shape[${$}]._zod.run({ value: input[${$}], issues: [] }, ctx)`, N = ($, w) => `
1666
- let ${$}_ab = false;
1667
- for (let i = 0; i < ${$}.issues.length; i++) {
1668
- const iss = ${$}.issues[i];
1691
+ }), _ = (E) => `shape[${E}]._zod.run({ value: input[${E}], issues: [] }, ctx)`, N = (E, w) => `
1692
+ let ${E}_ab = false;
1693
+ for (let i = 0; i < ${E}.issues.length; i++) {
1694
+ const iss = ${E}.issues[i];
1669
1695
  iss.path = iss.path ? [${w}, ...iss.path] : [${w}];
1670
1696
  payload.issues.push(iss);
1671
- if (iss.continue !== true) ${$}_ab = true;
1697
+ if (iss.continue !== true) ${E}_ab = true;
1672
1698
  }
1673
- if (${$}_ab && ctx && ctx.abortEarly) {
1699
+ if (${E}_ab && ctx && ctx.abortEarly) {
1674
1700
  payload.value = newResult;
1675
1701
  return payload;
1676
1702
  }`;
1677
1703
  b.write("const input = payload.value;");
1678
1704
  const ie = /* @__PURE__ */ Object.create(null);
1679
1705
  let oe = 0;
1680
- for (const $ of m.allKeys) ie[$] = `key_${oe++}`;
1706
+ for (const E of m.allKeys) ie[E] = `key_${oe++}`;
1681
1707
  b.write(i ? "const newResult = memo.alloc(inst, payload, {}, ctx);" : "const newResult = {};");
1682
- for (const $ of m.allKeys) {
1683
- if ($ === "__proto__") continue;
1684
- const w = ie[$], j = typeof $ == "symbol" ? `syms[${v.indexOf($)}]` : _n($), xe = `${j} in input`, vt = p[$], Me = vt?._zod?.optin, bt = Me !== void 0, cn = vt?._zod?.optout === "optional";
1685
- if (b.write(`const ${w} = ${_(j)};`), bt && cn) {
1686
- const un = Me === "optional" ? `${w}_present` : `${w}.value !== undefined || ${w}_present`;
1708
+ for (const E of m.allKeys) {
1709
+ if (E === "__proto__") continue;
1710
+ const w = ie[E], j = typeof E == "symbol" ? `syms[${v.indexOf(E)}]` : yn(E), xe = `${j} in input`, bt = p[E], Me = bt?._zod?.optin, _t = Me !== void 0, un = bt?._zod?.optout === "optional";
1711
+ if (b.write(`const ${w} = ${_(j)};`), _t && un) {
1712
+ const ln = Me === "optional" ? `${w}_present` : `${w}.value !== undefined || ${w}_present`;
1687
1713
  b.write(`
1688
1714
  const ${w}_present = ${xe};
1689
1715
  if (!${w}.issues.length || ${w}_present) {
1690
1716
  if (${w}.issues.length) {${N(w, j)}
1691
1717
  }
1692
1718
 
1693
- if (${un}) {
1719
+ if (${ln}) {
1694
1720
  newResult[${j}] = ${w}.value;
1695
1721
  }
1696
1722
  }
1697
1723
 
1698
1724
  `);
1699
- } else bt ? (b.write(`
1725
+ } else _t ? (b.write(`
1700
1726
  if (${w}.issues.length) {${N(w, j)}
1701
1727
  }
1702
1728
  `), Me === "defaulted" ? b.write(`newResult[${j}] = ${w}.value;`) : b.write(`
@@ -1729,12 +1755,12 @@ var xo = /* @__PURE__ */ l("$ZodObject", (e, t) => {
1729
1755
  return b.write("payload.value = newResult;"), b.write("return payload;"), b.compile();
1730
1756
  };
1731
1757
  let s;
1732
- const a = Ee, c = !M.jitless, f = c && wn.value, d = t.catchall;
1758
+ const a = $e, c = !M.jitless, f = c && kn.value, d = t.catchall;
1733
1759
  let h;
1734
1760
  e._zod.parse = (p, m) => {
1735
1761
  h ?? (h = n.value);
1736
1762
  const v = p.value;
1737
- return a(v) ? c && f && m?.async === !1 && m.jitless !== !0 ? (s || (s = o(t.shape)), p = s(p, m), d ? Nr([], v, p, m, h, e, m?.abortEarly === !0) : p) : r(p, m) : (p.issues.push({
1763
+ return a(v) ? c && f && m?.async === !1 && m.jitless !== !0 ? (s || (s = o(t.shape)), p = s(p, m), d ? jr([], v, p, m, h, e, m?.abortEarly === !0) : p) : r(p, m) : (p.issues.push({
1738
1764
  expected: "object",
1739
1765
  code: "invalid_type",
1740
1766
  input: v,
@@ -1742,7 +1768,7 @@ var xo = /* @__PURE__ */ l("$ZodObject", (e, t) => {
1742
1768
  }), p);
1743
1769
  };
1744
1770
  });
1745
- function At(e, t, r, n) {
1771
+ function Tt(e, t, r, n) {
1746
1772
  for (const o of e) if (o.issues.length === 0)
1747
1773
  return t.value = o.value, t;
1748
1774
  const i = e.filter((o) => !D(o));
@@ -1753,13 +1779,13 @@ function At(e, t, r, n) {
1753
1779
  errors: e.map((o) => o.issues.map((s) => te(s, n, W())))
1754
1780
  }), t);
1755
1781
  }
1756
- var Do = /* @__PURE__ */ l("$ZodUnion", (e, t) => {
1782
+ var Fo = /* @__PURE__ */ l("$ZodUnion", (e, t) => {
1757
1783
  S.init(e, t), y(e, "optin", (n) => n.def.options.some((i) => i._zod.optin === "defaulted") ? "defaulted" : n.def.options.some((i) => i._zod.optin !== void 0) ? "optional" : void 0), y(e, "optout", (n) => n.def.options.some((i) => i._zod.optout === "optional") ? "optional" : void 0), y(e, "values", (n) => {
1758
1784
  if (n.def.options.every((i) => i._zod.values)) return new Set(n.def.options.flatMap((i) => Array.from(i._zod.values)));
1759
1785
  }), y(e, "pattern", (n) => {
1760
1786
  if (n.def.options.every((i) => i._zod.pattern)) {
1761
1787
  const i = n.def.options.map((o) => o._zod.pattern);
1762
- return new RegExp(`^(${i.map((o) => nt(o.source)).join("|")})$`);
1788
+ return new RegExp(`^(${i.map((o) => it(o.source)).join("|")})$`);
1763
1789
  }
1764
1790
  });
1765
1791
  const r = t.options.length === 1 ? t.options[0]._zod.run : null;
@@ -1779,9 +1805,9 @@ var Do = /* @__PURE__ */ l("$ZodUnion", (e, t) => {
1779
1805
  s.push(c);
1780
1806
  }
1781
1807
  }
1782
- return o ? Promise.all(s).then((a) => At(a, n, e, i)) : At(s, n, e, i);
1808
+ return o ? Promise.all(s).then((a) => Tt(a, n, e, i)) : Tt(s, n, e, i);
1783
1809
  };
1784
- }), Lo = /* @__PURE__ */ l("$ZodIntersection", (e, t) => {
1810
+ }), Bo = /* @__PURE__ */ l("$ZodIntersection", (e, t) => {
1785
1811
  S.init(e, t), e._zod.parse = (r, n) => {
1786
1812
  const i = r.value, o = t.left._zod.run({
1787
1813
  value: i,
@@ -1790,10 +1816,10 @@ var Do = /* @__PURE__ */ l("$ZodUnion", (e, t) => {
1790
1816
  value: i,
1791
1817
  issues: []
1792
1818
  }, n);
1793
- return o instanceof Promise || s instanceof Promise ? Promise.all([o, s]).then(([a, c]) => Tt(r, a, c)) : Tt(r, o, s);
1819
+ return o instanceof Promise || s instanceof Promise ? Promise.all([o, s]).then(([a, c]) => Pt(r, a, c)) : Pt(r, o, s);
1794
1820
  };
1795
1821
  });
1796
- function qe(e, t) {
1822
+ function Ye(e, t) {
1797
1823
  if (e === t) return {
1798
1824
  valid: !0,
1799
1825
  data: e
@@ -1810,7 +1836,7 @@ function qe(e, t) {
1810
1836
  Object.prototype.hasOwnProperty.call(i, "__proto__") && delete i.__proto__;
1811
1837
  for (const o of n) {
1812
1838
  if (o === "__proto__") continue;
1813
- const s = qe(e[o], t[o]);
1839
+ const s = Ye(e[o], t[o]);
1814
1840
  if (!s.valid) return {
1815
1841
  valid: !1,
1816
1842
  mergeErrorPath: [o, ...s.mergeErrorPath]
@@ -1829,7 +1855,7 @@ function qe(e, t) {
1829
1855
  };
1830
1856
  const r = [];
1831
1857
  for (let n = 0; n < e.length; n++) {
1832
- const i = e[n], o = t[n], s = qe(i, o);
1858
+ const i = e[n], o = t[n], s = Ye(i, o);
1833
1859
  if (!s.valid) return {
1834
1860
  valid: !1,
1835
1861
  mergeErrorPath: [n, ...s.mergeErrorPath]
@@ -1846,7 +1872,7 @@ function qe(e, t) {
1846
1872
  mergeErrorPath: []
1847
1873
  };
1848
1874
  }
1849
- function Tt(e, t, r) {
1875
+ function Pt(e, t, r) {
1850
1876
  const n = /* @__PURE__ */ new Map();
1851
1877
  let i;
1852
1878
  const o = /* @__PURE__ */ new Map(), s = (u, f) => {
@@ -1872,18 +1898,18 @@ function Tt(e, t, r) {
1872
1898
  });
1873
1899
  for (const f of a) !u.includes(f) && o.has(f) && e.issues.push(o.get(f));
1874
1900
  }
1875
- const c = qe(t.value, r.value);
1901
+ const c = Ye(t.value, r.value);
1876
1902
  if (!c.valid) {
1877
1903
  if (D(e)) return e;
1878
1904
  throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(c.mergeErrorPath)}`);
1879
1905
  }
1880
1906
  return e.value = c.data, e;
1881
1907
  }
1882
- var Uo = /* @__PURE__ */ l("$ZodEnum", (e, t) => {
1908
+ var Jo = /* @__PURE__ */ l("$ZodEnum", (e, t) => {
1883
1909
  S.init(e, t);
1884
1910
  const r = Ke(t.entries), n = new Set(r);
1885
1911
  e._zod.values = n, y(e, "pattern", (i) => {
1886
- const o = Ke(i.def.entries).filter((s) => kn.has(typeof s));
1912
+ const o = Ke(i.def.entries).filter((s) => On.has(typeof s));
1887
1913
  return new RegExp(o.length ? `^(${o.map((s) => Ce(s.toString())).join("|")})$` : "^[^\\s\\S]$");
1888
1914
  }), e._zod.parse = (i, o) => {
1889
1915
  const s = i.value;
@@ -1894,25 +1920,25 @@ var Uo = /* @__PURE__ */ l("$ZodEnum", (e, t) => {
1894
1920
  inst: e
1895
1921
  }), i;
1896
1922
  };
1897
- }), Fo = /* @__PURE__ */ l("$ZodTransform", (e, t) => {
1923
+ }), Wo = /* @__PURE__ */ l("$ZodTransform", (e, t) => {
1898
1924
  S.init(e, t), e._zod.optin = "optional", M.memoizer?.guard(e), e._zod.parse = (r, n) => {
1899
- if (n.direction === "backward") throw new wr(e.constructor.name);
1925
+ if (n.direction === "backward") throw new kr(e.constructor.name);
1900
1926
  const i = t.transform(r.value, r);
1901
1927
  if (n.async) return (i instanceof Promise ? i : Promise.resolve(i)).then((o) => (r.value = o, r));
1902
1928
  if (i instanceof Promise) throw new H();
1903
1929
  return r.value = i, r;
1904
1930
  };
1905
1931
  });
1906
- function Pt(e, t) {
1932
+ function Zt(e, t) {
1907
1933
  return e.value = t.issues.length ? void 0 : t.value, e;
1908
1934
  }
1909
- var jr = /* @__PURE__ */ l("$ZodOptional", (e, t) => {
1935
+ var xr = /* @__PURE__ */ l("$ZodOptional", (e, t) => {
1910
1936
  S.init(e, t), y(e, "optin", (r) => r.def.innerType._zod.optin === "defaulted" ? "defaulted" : "optional"), e._zod.optout = "optional", y(e, "values", (r) => {
1911
1937
  const n = r.def.innerType._zod.values;
1912
1938
  return n ? /* @__PURE__ */ new Set([...n, void 0]) : void 0;
1913
1939
  }), y(e, "pattern", (r) => {
1914
1940
  const n = r.def.innerType._zod.pattern;
1915
- return n ? new RegExp(`^(${nt(n.source)})?$`) : void 0;
1941
+ return n ? new RegExp(`^(${it(n.source)})?$`) : void 0;
1916
1942
  }), e._zod.parse = (r, n) => {
1917
1943
  if (r.value === void 0) {
1918
1944
  if (t.innerType._zod.optin !== "defaulted") return r;
@@ -1920,41 +1946,41 @@ var jr = /* @__PURE__ */ l("$ZodOptional", (e, t) => {
1920
1946
  value: r.value,
1921
1947
  issues: []
1922
1948
  }, n);
1923
- return i instanceof Promise ? i.then((o) => Pt(r, o)) : Pt(r, i);
1949
+ return i instanceof Promise ? i.then((o) => Zt(r, o)) : Zt(r, i);
1924
1950
  }
1925
1951
  return t.innerType._zod.run(r, n);
1926
1952
  };
1927
- }), Bo = /* @__PURE__ */ l("$ZodExactOptional", (e, t) => {
1928
- jr.init(e, t), y(e, "values", (r) => r.def.innerType._zod.values), y(e, "pattern", (r) => r.def.innerType._zod.pattern), e._zod.parse = (r, n) => t.innerType._zod.run(r, n);
1929
- }), Jo = /* @__PURE__ */ l("$ZodNullable", (e, t) => {
1953
+ }), Vo = /* @__PURE__ */ l("$ZodExactOptional", (e, t) => {
1954
+ xr.init(e, t), y(e, "values", (r) => r.def.innerType._zod.values), y(e, "pattern", (r) => r.def.innerType._zod.pattern), e._zod.parse = (r, n) => t.innerType._zod.run(r, n);
1955
+ }), Ko = /* @__PURE__ */ l("$ZodNullable", (e, t) => {
1930
1956
  S.init(e, t), y(e, "optin", (r) => r.def.innerType._zod.optin), y(e, "optout", (r) => r.def.innerType._zod.optout), y(e, "pattern", (r) => {
1931
1957
  const n = r.def.innerType._zod.pattern;
1932
- return n ? new RegExp(`^(${nt(n.source)}|null)$`) : void 0;
1958
+ return n ? new RegExp(`^(${it(n.source)}|null)$`) : void 0;
1933
1959
  }), y(e, "values", (r) => r.def.innerType._zod.values ? /* @__PURE__ */ new Set([...r.def.innerType._zod.values, null]) : void 0), e._zod.parse = (r, n) => r.value === null ? r : t.innerType._zod.run(r, n);
1934
- }), Wo = /* @__PURE__ */ l("$ZodDefault", (e, t) => {
1960
+ }), Ho = /* @__PURE__ */ l("$ZodDefault", (e, t) => {
1935
1961
  S.init(e, t), e._zod.optin = "defaulted", y(e, "values", (r) => r.def.innerType._zod.values), e._zod.parse = (r, n) => {
1936
1962
  if (n.direction === "backward") return t.innerType._zod.run(r, n);
1937
1963
  if (r.value === void 0)
1938
1964
  return r.value = t.defaultValue, r;
1939
1965
  const i = t.innerType._zod.run(r, n);
1940
- return i instanceof Promise ? i.then((o) => Zt(o, t)) : Zt(i, t);
1966
+ return i instanceof Promise ? i.then((o) => Ct(o, t)) : Ct(i, t);
1941
1967
  };
1942
1968
  });
1943
- function Zt(e, t) {
1969
+ function Ct(e, t) {
1944
1970
  return e.value === void 0 && (e.value = t.defaultValue), e;
1945
1971
  }
1946
- var Vo = /* @__PURE__ */ l("$ZodPrefault", (e, t) => {
1972
+ var Go = /* @__PURE__ */ l("$ZodPrefault", (e, t) => {
1947
1973
  S.init(e, t), e._zod.optin = "defaulted", y(e, "values", (r) => r.def.innerType._zod.values), e._zod.parse = (r, n) => (n.direction === "backward" || r.value === void 0 && (r.value = t.defaultValue), t.innerType._zod.run(r, n));
1948
- }), Ko = /* @__PURE__ */ l("$ZodNonOptional", (e, t) => {
1974
+ }), qo = /* @__PURE__ */ l("$ZodNonOptional", (e, t) => {
1949
1975
  S.init(e, t), y(e, "values", (r) => {
1950
1976
  const n = r.def.innerType._zod.values;
1951
1977
  return n ? new Set([...n].filter((i) => i !== void 0)) : void 0;
1952
1978
  }), e._zod.parse = (r, n) => {
1953
1979
  const i = t.innerType._zod.run(r, n);
1954
- return i instanceof Promise ? i.then((o) => Ct(o, e)) : Ct(i, e);
1980
+ return i instanceof Promise ? i.then((o) => Rt(o, e)) : Rt(i, e);
1955
1981
  };
1956
1982
  });
1957
- function Ct(e, t) {
1983
+ function Rt(e, t) {
1958
1984
  return !e.issues.length && e.value === void 0 && e.issues.push({
1959
1985
  code: "invalid_type",
1960
1986
  expected: "nonoptional",
@@ -1962,7 +1988,7 @@ function Ct(e, t) {
1962
1988
  inst: t
1963
1989
  }), e;
1964
1990
  }
1965
- function Rt(e, t, r, n) {
1991
+ function Nt(e, t, r, n) {
1966
1992
  return t.issues.length ? (e.value = r.catchValue({
1967
1993
  ...t,
1968
1994
  value: e.value,
@@ -1970,16 +1996,16 @@ function Rt(e, t, r, n) {
1970
1996
  input: e.value
1971
1997
  }), e) : (e.value = t.value, t.memo && (e.memo = !0), e);
1972
1998
  }
1973
- var Ho = /* @__PURE__ */ l("$ZodCatch", (e, t) => {
1999
+ var Yo = /* @__PURE__ */ l("$ZodCatch", (e, t) => {
1974
2000
  S.init(e, t), y(e, "optin", (r) => r.def.innerType._zod.optin === "defaulted" ? "defaulted" : "optional"), y(e, "optout", (r) => r.def.innerType._zod.optout), y(e, "values", (r) => r.def.innerType._zod.values), e._zod.parse = (r, n) => {
1975
2001
  if (n.direction === "backward") return t.innerType._zod.run(r, n);
1976
2002
  const i = t.innerType._zod.run({
1977
2003
  value: r.value,
1978
2004
  issues: []
1979
2005
  }, n);
1980
- return i instanceof Promise ? i.then((o) => Rt(r, o, t, n)) : Rt(r, i, t, n);
2006
+ return i instanceof Promise ? i.then((o) => Nt(r, o, t, n)) : Nt(r, i, t, n);
1981
2007
  };
1982
- }), Go = /* @__PURE__ */ l("$ZodPipe", (e, t) => {
2008
+ }), Xo = /* @__PURE__ */ l("$ZodPipe", (e, t) => {
1983
2009
  S.init(e, t), y(e, "values", (r) => r.def.in._zod.values), y(e, "optin", (r) => r.def.in._zod.optin), y(e, "optout", (r) => r.def.out._zod.optout), y(e, "propValues", (r) => r.def.in._zod.propValues), e._zod.parse = (r, n) => {
1984
2010
  if (n.direction === "backward") {
1985
2011
  const o = t.out._zod.run(r, n);
@@ -1995,24 +2021,24 @@ function pe(e, t, r) {
1995
2021
  issues: e.issues
1996
2022
  }, r);
1997
2023
  }
1998
- var qo = /* @__PURE__ */ l("$ZodReadonly", (e, t) => {
2024
+ var Qo = /* @__PURE__ */ l("$ZodReadonly", (e, t) => {
1999
2025
  S.init(e, t), y(e, "propValues", (r) => r.def.innerType._zod.propValues), y(e, "values", (r) => r.def.innerType._zod.values), y(e, "optin", (r) => r.def.innerType?._zod?.optin), y(e, "optout", (r) => r.def.innerType?._zod?.optout), e._zod.parse = (r, n) => {
2000
2026
  if (n.direction === "backward") return t.innerType._zod.run(r, n);
2001
2027
  const i = t.innerType._zod.run(r, n);
2002
- return i instanceof Promise ? i.then(Nt) : Nt(i);
2028
+ return i instanceof Promise ? i.then(jt) : jt(i);
2003
2029
  };
2004
2030
  });
2005
- function Nt(e) {
2031
+ function jt(e) {
2006
2032
  return e.memo || (e.value = Object.freeze(e.value)), e;
2007
2033
  }
2008
- var Yo = /* @__PURE__ */ l("$ZodCustom", (e, t) => {
2034
+ var es = /* @__PURE__ */ l("$ZodCustom", (e, t) => {
2009
2035
  T.init(e, t), S.init(e, t), e._zod.parse = (r, n) => r, e._zod.check = (r) => {
2010
2036
  const n = r.value, i = t.fn(n);
2011
- if (i instanceof Promise) return i.then((o) => jt(o, r, n, e));
2012
- jt(i, r, n, e);
2037
+ if (i instanceof Promise) return i.then((o) => xt(o, r, n, e));
2038
+ xt(i, r, n, e);
2013
2039
  };
2014
2040
  });
2015
- function jt(e, t, r, n) {
2041
+ function xt(e, t, r, n) {
2016
2042
  if (!e) {
2017
2043
  const i = {
2018
2044
  code: "custom",
@@ -2024,12 +2050,12 @@ function jt(e, t, r, n) {
2024
2050
  n._zod.def.params && (i.params = n._zod.def.params), t.issues.push(he(i));
2025
2051
  }
2026
2052
  }
2027
- var Xo = class extends Error {
2053
+ var ts = class extends Error {
2028
2054
  constructor() {
2029
2055
  super("Cannot parse a reference cycle that closes through a transform"), this.name = "ZodCyclicError";
2030
2056
  }
2031
- }, Ye = "~memo", xt = [];
2032
- function xr(e) {
2057
+ }, Xe = "~memo", Mt = [];
2058
+ function Mr(e) {
2033
2059
  return e !== null && typeof e == "object";
2034
2060
  }
2035
2061
  function Fe(e) {
@@ -2038,9 +2064,9 @@ function Fe(e) {
2038
2064
  path: t.path.slice()
2039
2065
  } : { ...t });
2040
2066
  }
2041
- var Mr = /* @__PURE__ */ new WeakMap(), ce = 0, ke = 1, le = 2;
2067
+ var Dr = /* @__PURE__ */ new WeakMap(), ce = 0, ke = 1, le = 2;
2042
2068
  function Oe(e, t, r) {
2043
- const n = Mr.get(e);
2069
+ const n = Dr.get(e);
2044
2070
  if (n !== void 0) return n ? le : ce;
2045
2071
  if (t.has(e)) return le;
2046
2072
  t.add(e);
@@ -2064,7 +2090,7 @@ function Oe(e, t, r) {
2064
2090
  }, c = e._zod.def;
2065
2091
  switch (c.type) {
2066
2092
  case "object": {
2067
- const u = lr(c);
2093
+ const u = fr(c);
2068
2094
  a(u ? s(u, !0) : ke), o(c.catchall);
2069
2095
  break;
2070
2096
  }
@@ -2142,16 +2168,16 @@ function Oe(e, t, r) {
2142
2168
  }
2143
2169
  }
2144
2170
  }
2145
- return t.delete(e), Qo(e, i);
2171
+ return t.delete(e), rs(e, i);
2146
2172
  }
2147
- function Qo(e, t) {
2148
- return t !== ke && Mr.set(e, t === le), t;
2173
+ function rs(e, t) {
2174
+ return t !== ke && Dr.set(e, t === le), t;
2149
2175
  }
2150
- function es(e, t) {
2176
+ function ns(e, t) {
2151
2177
  let r = e.buckets.get(t);
2152
2178
  return r || (r = /* @__PURE__ */ new WeakMap(), e.buckets.set(t, r)), r;
2153
2179
  }
2154
- var me, ge = [], ts = {
2180
+ var me, ge = [], is = {
2155
2181
  alloc(e, t, r) {
2156
2182
  const n = me;
2157
2183
  if (!n) return r;
@@ -2166,7 +2192,7 @@ var me, ge = [], ts = {
2166
2192
  var t;
2167
2193
  (t = e._zod).deferred ?? (t.deferred = []), e._zod.deferred.push(() => {
2168
2194
  const r = e._zod.parse, n = (i, o) => {
2169
- if (o.direction !== "backward" && ns(o, i.value)) throw new Xo();
2195
+ if (o.direction !== "backward" && ss(o, i.value)) throw new ts();
2170
2196
  return r(i, o);
2171
2197
  };
2172
2198
  e._zod.parse = n, e._zod.run === r && (e._zod.run = n);
@@ -2184,14 +2210,14 @@ var me, ge = [], ts = {
2184
2210
  _ === le || n ? r = !0 : n = !0;
2185
2211
  }
2186
2212
  const f = c.value;
2187
- if (!xr(f)) return s(c, u);
2188
- let d = u[Ye];
2213
+ if (!Mr(f)) return s(c, u);
2214
+ let d = u[Xe];
2189
2215
  d || (d = {
2190
2216
  buckets: /* @__PURE__ */ new WeakMap(),
2191
2217
  backEdges: void 0
2192
- }, u[Ye] = d);
2218
+ }, u[Xe] = d);
2193
2219
  let h;
2194
- i === u ? h = o : (h = es(d, e), i = u, o = h);
2220
+ i === u ? h = o : (h = ns(d, e), i = u, o = h);
2195
2221
  const p = h.get(f);
2196
2222
  if (p)
2197
2223
  return c.value = p.value, p.issues ? p.issues.length && c.issues.push(...Fe(p.issues)) : (c.memo = !0, d.backEdges ?? (d.backEdges = /* @__PURE__ */ new WeakSet()), d.backEdges.add(p.value)), c;
@@ -2199,20 +2225,20 @@ var me, ge = [], ts = {
2199
2225
  const m = ge.length, v = s(c, u);
2200
2226
  me = void 0;
2201
2227
  const b = ge.length > m ? ge.pop() : void 0;
2202
- return v instanceof Promise ? v.then((_) => (b && (b.issues = _.issues.length ? Fe(_.issues) : xt), _)) : (b && (b.issues = v.issues.length ? Fe(v.issues) : xt), v);
2228
+ return v instanceof Promise ? v.then((_) => (b && (b.issues = _.issues.length ? Fe(_.issues) : Mt), _)) : (b && (b.issues = v.issues.length ? Fe(v.issues) : Mt), v);
2203
2229
  };
2204
2230
  e._zod.parse = a, e._zod.run === s && (e._zod.run = a);
2205
2231
  });
2206
2232
  }
2207
2233
  };
2208
- function rs() {
2209
- return ts;
2234
+ function os() {
2235
+ return is;
2210
2236
  }
2211
- function ns(e, t) {
2212
- const r = e[Ye]?.backEdges;
2213
- return r !== void 0 && xr(t) && r.has(t);
2237
+ function ss(e, t) {
2238
+ const r = e[Xe]?.backEdges;
2239
+ return r !== void 0 && Mr(t) && r.has(t);
2214
2240
  }
2215
- var is = () => {
2241
+ var as = () => {
2216
2242
  const e = {
2217
2243
  string: {
2218
2244
  unit: "characters",
@@ -2278,9 +2304,9 @@ var is = () => {
2278
2304
  return (o) => {
2279
2305
  switch (o.code) {
2280
2306
  case "invalid_type":
2281
- return `Invalid input: expected ${i(o.expected)}, received ${i(Cn(o.input), o.input)}`;
2307
+ return `Invalid input: expected ${i(o.expected)}, received ${i(Rn(o.input), o.input)}`;
2282
2308
  case "invalid_value":
2283
- return o.values.length === 1 ? `Invalid input: expected ${mr(o.values[0])}` : `Invalid option: expected one of ${yt(o.values, "|")}`;
2309
+ return o.values.length === 1 ? `Invalid input: expected ${gr(o.values[0])}` : `Invalid option: expected one of ${wt(o.values, "|")}`;
2284
2310
  case "too_big": {
2285
2311
  const s = o.exact ? "exactly " : o.inclusive ? "<=" : "<", a = t(o.origin);
2286
2312
  return a ? `Too big: expected ${o.origin ?? "value"} to have ${s}${o.maximum.toString()} ${a.unit ?? "elements"}` : `Too big: expected ${o.origin ?? "value"} to be ${s}${o.maximum.toString()}`;
@@ -2296,7 +2322,7 @@ var is = () => {
2296
2322
  case "not_multiple_of":
2297
2323
  return `Invalid number: must be a multiple of ${o.divisor}`;
2298
2324
  case "unrecognized_keys":
2299
- return `Unrecognized key${o.keys.length > 1 ? "s" : ""}: ${yt(o.keys, ", ")}`;
2325
+ return `Unrecognized key${o.keys.length > 1 ? "s" : ""}: ${wt(o.keys, ", ")}`;
2300
2326
  case "invalid_key":
2301
2327
  return `Invalid key in ${o.origin}`;
2302
2328
  case "invalid_union":
@@ -2308,10 +2334,10 @@ var is = () => {
2308
2334
  }
2309
2335
  };
2310
2336
  };
2311
- function os() {
2312
- return { localeError: is() };
2337
+ function cs() {
2338
+ return { localeError: as() };
2313
2339
  }
2314
- var Mt, ss = class {
2340
+ var Dt, us = class {
2315
2341
  constructor() {
2316
2342
  this._map = /* @__PURE__ */ new WeakMap(), this._idmap = /* @__PURE__ */ new Map();
2317
2343
  }
@@ -2343,23 +2369,23 @@ var Mt, ss = class {
2343
2369
  return this._map.has(e);
2344
2370
  }
2345
2371
  };
2346
- function as() {
2347
- return new ss();
2372
+ function ls() {
2373
+ return new us();
2348
2374
  }
2349
- (Mt = globalThis).__zod_globalRegistry ?? (Mt.__zod_globalRegistry = as());
2375
+ (Dt = globalThis).__zod_globalRegistry ?? (Dt.__zod_globalRegistry = ls());
2350
2376
  var ue = globalThis.__zod_globalRegistry;
2351
- function Dr(e) {
2377
+ function Lr(e) {
2352
2378
  return e.checks && (e.checks = [...e.checks]), e;
2353
2379
  }
2354
2380
  // @__NO_SIDE_EFFECTS__
2355
- function cs(e, t) {
2356
- return new e(Dr({
2381
+ function fs(e, t) {
2382
+ return new e(Lr({
2357
2383
  type: "string",
2358
2384
  ...g(t)
2359
2385
  }));
2360
2386
  }
2361
2387
  // @__NO_SIDE_EFFECTS__
2362
- function us(e, t) {
2388
+ function ds(e, t) {
2363
2389
  return new e({
2364
2390
  type: "string",
2365
2391
  format: "email",
@@ -2369,7 +2395,7 @@ function us(e, t) {
2369
2395
  });
2370
2396
  }
2371
2397
  // @__NO_SIDE_EFFECTS__
2372
- function ls(e, t) {
2398
+ function hs(e, t) {
2373
2399
  return new e({
2374
2400
  type: "string",
2375
2401
  format: "guid",
@@ -2379,7 +2405,7 @@ function ls(e, t) {
2379
2405
  });
2380
2406
  }
2381
2407
  // @__NO_SIDE_EFFECTS__
2382
- function fs(e, t) {
2408
+ function ps(e, t) {
2383
2409
  return new e({
2384
2410
  type: "string",
2385
2411
  format: "uuid",
@@ -2389,7 +2415,7 @@ function fs(e, t) {
2389
2415
  });
2390
2416
  }
2391
2417
  // @__NO_SIDE_EFFECTS__
2392
- function ds(e, t) {
2418
+ function ms(e, t) {
2393
2419
  return new e({
2394
2420
  type: "string",
2395
2421
  format: "uuid",
@@ -2400,7 +2426,7 @@ function ds(e, t) {
2400
2426
  });
2401
2427
  }
2402
2428
  // @__NO_SIDE_EFFECTS__
2403
- function hs(e, t) {
2429
+ function gs(e, t) {
2404
2430
  return new e({
2405
2431
  type: "string",
2406
2432
  format: "uuid",
@@ -2411,7 +2437,7 @@ function hs(e, t) {
2411
2437
  });
2412
2438
  }
2413
2439
  // @__NO_SIDE_EFFECTS__
2414
- function ps(e, t) {
2440
+ function vs(e, t) {
2415
2441
  return new e({
2416
2442
  type: "string",
2417
2443
  format: "uuid",
@@ -2422,7 +2448,7 @@ function ps(e, t) {
2422
2448
  });
2423
2449
  }
2424
2450
  // @__NO_SIDE_EFFECTS__
2425
- function ms(e, t) {
2451
+ function bs(e, t) {
2426
2452
  return new e({
2427
2453
  type: "string",
2428
2454
  format: "url",
@@ -2432,7 +2458,7 @@ function ms(e, t) {
2432
2458
  });
2433
2459
  }
2434
2460
  // @__NO_SIDE_EFFECTS__
2435
- function gs(e, t) {
2461
+ function _s(e, t) {
2436
2462
  return new e({
2437
2463
  type: "string",
2438
2464
  format: "emoji",
@@ -2442,7 +2468,7 @@ function gs(e, t) {
2442
2468
  });
2443
2469
  }
2444
2470
  // @__NO_SIDE_EFFECTS__
2445
- function vs(e, t) {
2471
+ function ys(e, t) {
2446
2472
  return new e({
2447
2473
  type: "string",
2448
2474
  format: "nanoid",
@@ -2452,7 +2478,7 @@ function vs(e, t) {
2452
2478
  });
2453
2479
  }
2454
2480
  // @__NO_SIDE_EFFECTS__
2455
- function bs(e, t) {
2481
+ function ws(e, t) {
2456
2482
  return new e({
2457
2483
  type: "string",
2458
2484
  format: "cuid",
@@ -2462,7 +2488,7 @@ function bs(e, t) {
2462
2488
  });
2463
2489
  }
2464
2490
  // @__NO_SIDE_EFFECTS__
2465
- function _s(e, t) {
2491
+ function ks(e, t) {
2466
2492
  return new e({
2467
2493
  type: "string",
2468
2494
  format: "cuid2",
@@ -2472,7 +2498,7 @@ function _s(e, t) {
2472
2498
  });
2473
2499
  }
2474
2500
  // @__NO_SIDE_EFFECTS__
2475
- function ys(e, t) {
2501
+ function Os(e, t) {
2476
2502
  return new e({
2477
2503
  type: "string",
2478
2504
  format: "ulid",
@@ -2482,7 +2508,7 @@ function ys(e, t) {
2482
2508
  });
2483
2509
  }
2484
2510
  // @__NO_SIDE_EFFECTS__
2485
- function ws(e, t) {
2511
+ function zs(e, t) {
2486
2512
  return new e({
2487
2513
  type: "string",
2488
2514
  format: "xid",
@@ -2492,7 +2518,7 @@ function ws(e, t) {
2492
2518
  });
2493
2519
  }
2494
2520
  // @__NO_SIDE_EFFECTS__
2495
- function ks(e, t) {
2521
+ function Ss(e, t) {
2496
2522
  return new e({
2497
2523
  type: "string",
2498
2524
  format: "ksuid",
@@ -2502,7 +2528,7 @@ function ks(e, t) {
2502
2528
  });
2503
2529
  }
2504
2530
  // @__NO_SIDE_EFFECTS__
2505
- function Os(e, t) {
2531
+ function $s(e, t) {
2506
2532
  return new e({
2507
2533
  type: "string",
2508
2534
  format: "ipv4",
@@ -2512,7 +2538,7 @@ function Os(e, t) {
2512
2538
  });
2513
2539
  }
2514
2540
  // @__NO_SIDE_EFFECTS__
2515
- function zs(e, t) {
2541
+ function Es(e, t) {
2516
2542
  return new e({
2517
2543
  type: "string",
2518
2544
  format: "ipv6",
@@ -2522,7 +2548,7 @@ function zs(e, t) {
2522
2548
  });
2523
2549
  }
2524
2550
  // @__NO_SIDE_EFFECTS__
2525
- function Ss(e, t) {
2551
+ function Is(e, t) {
2526
2552
  return new e({
2527
2553
  type: "string",
2528
2554
  format: "cidrv4",
@@ -2532,7 +2558,7 @@ function Ss(e, t) {
2532
2558
  });
2533
2559
  }
2534
2560
  // @__NO_SIDE_EFFECTS__
2535
- function Es(e, t) {
2561
+ function As(e, t) {
2536
2562
  return new e({
2537
2563
  type: "string",
2538
2564
  format: "cidrv6",
@@ -2542,7 +2568,7 @@ function Es(e, t) {
2542
2568
  });
2543
2569
  }
2544
2570
  // @__NO_SIDE_EFFECTS__
2545
- function $s(e, t) {
2571
+ function Ts(e, t) {
2546
2572
  return new e({
2547
2573
  type: "string",
2548
2574
  format: "base64",
@@ -2552,7 +2578,7 @@ function $s(e, t) {
2552
2578
  });
2553
2579
  }
2554
2580
  // @__NO_SIDE_EFFECTS__
2555
- function Is(e, t) {
2581
+ function Ps(e, t) {
2556
2582
  return new e({
2557
2583
  type: "string",
2558
2584
  format: "base64url",
@@ -2562,7 +2588,7 @@ function Is(e, t) {
2562
2588
  });
2563
2589
  }
2564
2590
  // @__NO_SIDE_EFFECTS__
2565
- function As(e, t) {
2591
+ function Zs(e, t) {
2566
2592
  return new e({
2567
2593
  type: "string",
2568
2594
  format: "e164",
@@ -2572,7 +2598,7 @@ function As(e, t) {
2572
2598
  });
2573
2599
  }
2574
2600
  // @__NO_SIDE_EFFECTS__
2575
- function Ts(e, t) {
2601
+ function Cs(e, t) {
2576
2602
  return new e({
2577
2603
  type: "string",
2578
2604
  format: "jwt",
@@ -2582,7 +2608,7 @@ function Ts(e, t) {
2582
2608
  });
2583
2609
  }
2584
2610
  // @__NO_SIDE_EFFECTS__
2585
- function Ps(e, t) {
2611
+ function Rs(e, t) {
2586
2612
  return new e({
2587
2613
  type: "string",
2588
2614
  format: "datetime",
@@ -2594,7 +2620,7 @@ function Ps(e, t) {
2594
2620
  });
2595
2621
  }
2596
2622
  // @__NO_SIDE_EFFECTS__
2597
- function Zs(e, t) {
2623
+ function Ns(e, t) {
2598
2624
  return new e({
2599
2625
  type: "string",
2600
2626
  format: "date",
@@ -2603,7 +2629,7 @@ function Zs(e, t) {
2603
2629
  });
2604
2630
  }
2605
2631
  // @__NO_SIDE_EFFECTS__
2606
- function Cs(e, t) {
2632
+ function js(e, t) {
2607
2633
  return new e({
2608
2634
  type: "string",
2609
2635
  format: "time",
@@ -2613,7 +2639,7 @@ function Cs(e, t) {
2613
2639
  });
2614
2640
  }
2615
2641
  // @__NO_SIDE_EFFECTS__
2616
- function Rs(e, t) {
2642
+ function xs(e, t) {
2617
2643
  return new e({
2618
2644
  type: "string",
2619
2645
  format: "duration",
@@ -2622,15 +2648,15 @@ function Rs(e, t) {
2622
2648
  });
2623
2649
  }
2624
2650
  // @__NO_SIDE_EFFECTS__
2625
- function Ns(e, t) {
2626
- return new e(Dr({
2651
+ function Ms(e, t) {
2652
+ return new e(Lr({
2627
2653
  type: "number",
2628
2654
  checks: [],
2629
2655
  ...g(t)
2630
2656
  }));
2631
2657
  }
2632
2658
  // @__NO_SIDE_EFFECTS__
2633
- function js(e, t) {
2659
+ function Ds(e, t) {
2634
2660
  return new e({
2635
2661
  type: "number",
2636
2662
  check: "number_format",
@@ -2640,26 +2666,26 @@ function js(e, t) {
2640
2666
  });
2641
2667
  }
2642
2668
  // @__NO_SIDE_EFFECTS__
2643
- function xs(e, t) {
2669
+ function Ls(e, t) {
2644
2670
  return new e({
2645
2671
  type: "boolean",
2646
2672
  ...g(t)
2647
2673
  });
2648
2674
  }
2649
2675
  // @__NO_SIDE_EFFECTS__
2650
- function Ms(e) {
2676
+ function Us(e) {
2651
2677
  return new e({ type: "unknown" });
2652
2678
  }
2653
2679
  // @__NO_SIDE_EFFECTS__
2654
- function Ds(e, t) {
2680
+ function Fs(e, t) {
2655
2681
  return new e({
2656
2682
  type: "never",
2657
2683
  ...g(t)
2658
2684
  });
2659
2685
  }
2660
2686
  // @__NO_SIDE_EFFECTS__
2661
- function Dt(e, t) {
2662
- return new Sr({
2687
+ function Lt(e, t) {
2688
+ return new $r({
2663
2689
  check: "less_than",
2664
2690
  ...g(t),
2665
2691
  value: e,
@@ -2668,7 +2694,7 @@ function Dt(e, t) {
2668
2694
  }
2669
2695
  // @__NO_SIDE_EFFECTS__
2670
2696
  function Be(e, t) {
2671
- return new Sr({
2697
+ return new $r({
2672
2698
  check: "less_than",
2673
2699
  ...g(t),
2674
2700
  value: e,
@@ -2676,7 +2702,7 @@ function Be(e, t) {
2676
2702
  });
2677
2703
  }
2678
2704
  // @__NO_SIDE_EFFECTS__
2679
- function Lt(e, t) {
2705
+ function Ut(e, t) {
2680
2706
  return new Er({
2681
2707
  check: "greater_than",
2682
2708
  ...g(t),
@@ -2694,16 +2720,16 @@ function Je(e, t) {
2694
2720
  });
2695
2721
  }
2696
2722
  // @__NO_SIDE_EFFECTS__
2697
- function Ut(e, t) {
2698
- return new xi({
2723
+ function Ft(e, t) {
2724
+ return new Mi({
2699
2725
  check: "multiple_of",
2700
2726
  ...g(t),
2701
2727
  value: e
2702
2728
  });
2703
2729
  }
2704
2730
  // @__NO_SIDE_EFFECTS__
2705
- function Lr(e, t) {
2706
- return new Di({
2731
+ function Ur(e, t) {
2732
+ return new Li({
2707
2733
  check: "max_length",
2708
2734
  ...g(t),
2709
2735
  maximum: e
@@ -2711,23 +2737,23 @@ function Lr(e, t) {
2711
2737
  }
2712
2738
  // @__NO_SIDE_EFFECTS__
2713
2739
  function Ae(e, t) {
2714
- return new Li({
2740
+ return new Ui({
2715
2741
  check: "min_length",
2716
2742
  ...g(t),
2717
2743
  minimum: e
2718
2744
  });
2719
2745
  }
2720
2746
  // @__NO_SIDE_EFFECTS__
2721
- function Ur(e, t) {
2722
- return new Ui({
2747
+ function Fr(e, t) {
2748
+ return new Fi({
2723
2749
  check: "length_equals",
2724
2750
  ...g(t),
2725
2751
  length: e
2726
2752
  });
2727
2753
  }
2728
2754
  // @__NO_SIDE_EFFECTS__
2729
- function Ls(e, t) {
2730
- return new Fi({
2755
+ function Bs(e, t) {
2756
+ return new Bi({
2731
2757
  check: "string_format",
2732
2758
  format: "regex",
2733
2759
  ...g(t),
@@ -2735,24 +2761,24 @@ function Ls(e, t) {
2735
2761
  });
2736
2762
  }
2737
2763
  // @__NO_SIDE_EFFECTS__
2738
- function Us(e) {
2739
- return new Bi({
2764
+ function Js(e) {
2765
+ return new Ji({
2740
2766
  check: "string_format",
2741
2767
  format: "lowercase",
2742
2768
  ...g(e)
2743
2769
  });
2744
2770
  }
2745
2771
  // @__NO_SIDE_EFFECTS__
2746
- function Fs(e) {
2747
- return new Ji({
2772
+ function Ws(e) {
2773
+ return new Wi({
2748
2774
  check: "string_format",
2749
2775
  format: "uppercase",
2750
2776
  ...g(e)
2751
2777
  });
2752
2778
  }
2753
2779
  // @__NO_SIDE_EFFECTS__
2754
- function Bs(e, t) {
2755
- return new Wi({
2780
+ function Vs(e, t) {
2781
+ return new Vi({
2756
2782
  check: "string_format",
2757
2783
  format: "includes",
2758
2784
  ...g(t),
@@ -2760,8 +2786,8 @@ function Bs(e, t) {
2760
2786
  });
2761
2787
  }
2762
2788
  // @__NO_SIDE_EFFECTS__
2763
- function Js(e, t) {
2764
- return new Vi({
2789
+ function Ks(e, t) {
2790
+ return new Ki({
2765
2791
  check: "string_format",
2766
2792
  format: "starts_with",
2767
2793
  ...g(t),
@@ -2769,8 +2795,8 @@ function Js(e, t) {
2769
2795
  });
2770
2796
  }
2771
2797
  // @__NO_SIDE_EFFECTS__
2772
- function Ws(e, t) {
2773
- return new Ki({
2798
+ function Hs(e, t) {
2799
+ return new Hi({
2774
2800
  check: "string_format",
2775
2801
  format: "ends_with",
2776
2802
  ...g(t),
@@ -2779,33 +2805,33 @@ function Ws(e, t) {
2779
2805
  }
2780
2806
  // @__NO_SIDE_EFFECTS__
2781
2807
  function re(e) {
2782
- return new Hi({
2808
+ return new Gi({
2783
2809
  check: "overwrite",
2784
2810
  tx: e
2785
2811
  });
2786
2812
  }
2787
2813
  // @__NO_SIDE_EFFECTS__
2788
- function Vs(e) {
2814
+ function Gs(e) {
2789
2815
  return /* @__PURE__ */ re((t) => t.normalize(e));
2790
2816
  }
2791
2817
  // @__NO_SIDE_EFFECTS__
2792
- function Ks() {
2818
+ function qs() {
2793
2819
  return /* @__PURE__ */ re((e) => e.trim());
2794
2820
  }
2795
2821
  // @__NO_SIDE_EFFECTS__
2796
- function Hs() {
2822
+ function Ys() {
2797
2823
  return /* @__PURE__ */ re((e) => e.toLowerCase());
2798
2824
  }
2799
2825
  // @__NO_SIDE_EFFECTS__
2800
- function Gs() {
2826
+ function Xs() {
2801
2827
  return /* @__PURE__ */ re((e) => e.toUpperCase());
2802
2828
  }
2803
2829
  // @__NO_SIDE_EFFECTS__
2804
- function qs() {
2805
- return /* @__PURE__ */ re((e) => yn(e));
2830
+ function Qs() {
2831
+ return /* @__PURE__ */ re((e) => wn(e));
2806
2832
  }
2807
2833
  // @__NO_SIDE_EFFECTS__
2808
- function Ys(e, t, r) {
2834
+ function ea(e, t, r) {
2809
2835
  return new e({
2810
2836
  type: "array",
2811
2837
  element: t,
@@ -2813,7 +2839,7 @@ function Ys(e, t, r) {
2813
2839
  });
2814
2840
  }
2815
2841
  // @__NO_SIDE_EFFECTS__
2816
- function Xs(e, t, r) {
2842
+ function ta(e, t, r) {
2817
2843
  const n = g(r);
2818
2844
  return n.abort ?? (n.abort = !0), new e({
2819
2845
  type: "custom",
@@ -2823,7 +2849,7 @@ function Xs(e, t, r) {
2823
2849
  });
2824
2850
  }
2825
2851
  // @__NO_SIDE_EFFECTS__
2826
- function Qs(e, t, r) {
2852
+ function ra(e, t, r) {
2827
2853
  return new e({
2828
2854
  type: "custom",
2829
2855
  check: "custom",
@@ -2832,8 +2858,8 @@ function Qs(e, t, r) {
2832
2858
  });
2833
2859
  }
2834
2860
  // @__NO_SIDE_EFFECTS__
2835
- function ea(e, t) {
2836
- const r = /* @__PURE__ */ ta((n) => (n.addIssue = (i) => {
2861
+ function na(e, t) {
2862
+ const r = /* @__PURE__ */ ia((n) => (n.addIssue = (i) => {
2837
2863
  if (typeof i == "string") n.issues.push(he(i, n.value, r._zod.def));
2838
2864
  else {
2839
2865
  const o = i;
@@ -2843,7 +2869,7 @@ function ea(e, t) {
2843
2869
  return r;
2844
2870
  }
2845
2871
  // @__NO_SIDE_EFFECTS__
2846
- function ta(e, t) {
2872
+ function ia(e, t) {
2847
2873
  const r = new T({
2848
2874
  check: "custom",
2849
2875
  ...g(t)
@@ -2854,7 +2880,7 @@ function fe(e, ...t) {
2854
2880
  for (const r of t) for (const n of Reflect.ownKeys(r)) Object.prototype.propertyIsEnumerable.call(r, n) && q(e, n, r[n]);
2855
2881
  return e;
2856
2882
  }
2857
- function Fr(e) {
2883
+ function Br(e) {
2858
2884
  let t = e?.target ?? "draft-2020-12";
2859
2885
  return t === "draft-4" && (t = "draft-04"), t === "draft-7" && (t = "draft-07"), {
2860
2886
  processors: e.processors ?? {},
@@ -2920,10 +2946,10 @@ function I(e, t, r = {
2920
2946
  const c = t.metadataRegistry.get(e);
2921
2947
  return c && fe(s.schema, c), t.io === "input" && A(e) && (delete s.schema.examples, delete s.schema.default), t.io === "input" && "_prefault" in s.schema && ((n = s.schema).default ?? (n.default = s.schema._prefault)), delete s.schema._prefault, t.seen.get(e).schema;
2922
2948
  }
2923
- function Ft(e) {
2949
+ function Bt(e) {
2924
2950
  return e.replace(/~/g, "~0").replace(/\//g, "~1");
2925
2951
  }
2926
- function Br(e, t) {
2952
+ function Jr(e, t) {
2927
2953
  const r = e.seen.get(t);
2928
2954
  if (!r) throw new Error("Unprocessed schema. This is a bug in Zod.");
2929
2955
  if (e.external && e.sharedDefsExtractedFor === e.external) return;
@@ -2944,7 +2970,7 @@ function Br(e, t) {
2944
2970
  const p = s[1].defId ?? s[1].schema.id ?? `schema${e.counter++}`;
2945
2971
  return s[1].defId = p, {
2946
2972
  defId: p,
2947
- ref: `${h("__shared")}#/${a}/${Ft(p)}`
2973
+ ref: `${h("__shared")}#/${a}/${Bt(p)}`
2948
2974
  };
2949
2975
  }
2950
2976
  const c = "#", u = `${c}/${a}/`;
@@ -2952,7 +2978,7 @@ function Br(e, t) {
2952
2978
  const f = s[1].schema.id ?? `__schema${e.counter++}`;
2953
2979
  return {
2954
2980
  defId: f,
2955
- ref: u + Ft(f)
2981
+ ref: u + Bt(f)
2956
2982
  };
2957
2983
  }, o = (s) => {
2958
2984
  if (s[1].schema.$ref) return;
@@ -2993,13 +3019,13 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
2993
3019
  }
2994
3020
  e.external && (e.sharedDefsExtractedFor = e.external);
2995
3021
  }
2996
- function Jr(e) {
3022
+ function Wr(e) {
2997
3023
  const t = e.anyOf;
2998
3024
  if (!Array.isArray(t) || t.length === 0 || e.type !== void 0) return;
2999
3025
  const r = [];
3000
3026
  for (const n of t) {
3001
3027
  if (!n || typeof n != "object") return;
3002
- Jr(n);
3028
+ Wr(n);
3003
3029
  const i = Object.keys(n);
3004
3030
  if (i.length !== 1 || i[0] !== "type") return;
3005
3031
  const o = n.type;
@@ -3010,21 +3036,21 @@ function Jr(e) {
3010
3036
  }
3011
3037
  delete e.anyOf, e.type = r.length === 1 ? r[0] : r;
3012
3038
  }
3013
- var Wr = /* @__PURE__ */ new Set([
3039
+ var Vr = /* @__PURE__ */ new Set([
3014
3040
  "type",
3015
3041
  "properties",
3016
3042
  "required",
3017
3043
  "additionalProperties"
3018
- ]), Bt = ["oneOf", "anyOf"];
3019
- function Jt(e) {
3044
+ ]), Jt = ["oneOf", "anyOf"];
3045
+ function Wt(e) {
3020
3046
  const t = e.additionalProperties;
3021
3047
  return t === void 0 || t === !1 || typeof t != "object" || t === null ? null : Object.keys(t).length ? t : null;
3022
3048
  }
3023
- function Xe(e) {
3049
+ function Qe(e) {
3024
3050
  const t = [];
3025
3051
  for (const o of e) {
3026
3052
  if (typeof o != "object" || o.type !== "object") return null;
3027
- for (const s in o) if (!Wr.has(s)) return null;
3053
+ for (const s in o) if (!Vr.has(s)) return null;
3028
3054
  t.push(o);
3029
3055
  }
3030
3056
  const r = {}, n = /* @__PURE__ */ new Set();
@@ -3033,10 +3059,10 @@ function Xe(e) {
3033
3059
  if (Object.prototype.hasOwnProperty.call(r, s)) continue;
3034
3060
  const a = [];
3035
3061
  for (const u of t) {
3036
- const f = u.properties?.[s] ?? Jt(u);
3062
+ const f = u.properties?.[s] ?? Wt(u);
3037
3063
  f != null && (a.some((d) => JSON.stringify(d) === JSON.stringify(f)) || a.push(f));
3038
3064
  }
3039
- const c = a.length === 1 ? a[0] : Xe(a) ?? { allOf: a };
3065
+ const c = a.length === 1 ? a[0] : Qe(a) ?? { allOf: a };
3040
3066
  q(r, s, c);
3041
3067
  }
3042
3068
  for (const s of o.required ?? []) n.add(s);
@@ -3049,30 +3075,30 @@ function Xe(e) {
3049
3075
  else {
3050
3076
  const o = [];
3051
3077
  for (const s of t) {
3052
- const a = Jt(s);
3078
+ const a = Wt(s);
3053
3079
  a && !o.some((c) => JSON.stringify(c) === JSON.stringify(a)) && o.push(a);
3054
3080
  }
3055
3081
  o.length === 1 ? i.additionalProperties = o[0] : o.length > 1 && (i.additionalProperties = { allOf: o });
3056
3082
  }
3057
3083
  return i;
3058
3084
  }
3059
- function ra(e) {
3085
+ function oa(e) {
3060
3086
  const t = e.allOf;
3061
3087
  if (!Array.isArray(t) || t.length < 2) return;
3062
- for (const i of Wr) if (i in e) return;
3063
- const r = t.filter((i) => Bt.some((o) => Array.isArray(i[o])));
3088
+ for (const i of Vr) if (i in e) return;
3089
+ const r = t.filter((i) => Jt.some((o) => Array.isArray(i[o])));
3064
3090
  let n = null;
3065
- if (!r.length) n = Xe(t);
3091
+ if (!r.length) n = Qe(t);
3066
3092
  else {
3067
- const i = r[0], o = Bt.find((c) => Array.isArray(i[c]));
3093
+ const i = r[0], o = Jt.find((c) => Array.isArray(i[c]));
3068
3094
  if (Object.keys(i).length !== 1) return;
3069
- const s = t.filter((c) => c !== i), a = i[o].map((c) => Xe([...s, c]));
3095
+ const s = t.filter((c) => c !== i), a = i[o].map((c) => Qe([...s, c]));
3070
3096
  if (a.some((c) => !c)) return;
3071
3097
  n = { [o]: a };
3072
3098
  }
3073
3099
  n && (delete e.allOf, fe(e, n));
3074
3100
  }
3075
- function Vr(e, t) {
3101
+ function Kr(e, t) {
3076
3102
  const r = e.seen.get(t);
3077
3103
  if (!r) throw new Error("Unprocessed schema. This is a bug in Zod.");
3078
3104
  const n = (a) => {
@@ -3103,7 +3129,7 @@ function Vr(e, t) {
3103
3129
  };
3104
3130
  if (!e.external || e.sharedEmitDoneFor !== e.external) {
3105
3131
  for (const a of [...e.seen.entries()].reverse()) n(a[0]);
3106
- if (e.target !== "openapi-3.0") for (const a of e.seen.entries()) Jr(a[1].def ?? a[1].schema);
3132
+ if (e.target !== "openapi-3.0") for (const a of e.seen.entries()) Wr(a[1].def ?? a[1].schema);
3107
3133
  for (const a of e.deferred) a();
3108
3134
  if (e.intersections.length) {
3109
3135
  const a = /* @__PURE__ */ new Map();
@@ -3113,7 +3139,7 @@ function Vr(e, t) {
3113
3139
  const d = a.get(f);
3114
3140
  d ? d.push(u) : a.set(f, [u]);
3115
3141
  }
3116
- for (const c of e.intersections) for (const u of a.get(c) ?? []) ra(u);
3142
+ for (const c of e.intersections) for (const u of a.get(c) ?? []) oa(u);
3117
3143
  }
3118
3144
  }
3119
3145
  const i = {};
@@ -3176,81 +3202,81 @@ function A(e, t) {
3176
3202
  }
3177
3203
  return !1;
3178
3204
  }
3179
- var na = (e, t = {}) => (r) => {
3180
- const n = Fr({
3205
+ var sa = (e, t = {}) => (r) => {
3206
+ const n = Br({
3181
3207
  ...r,
3182
3208
  processors: t
3183
3209
  });
3184
- return I(e, n), Br(n, e), Vr(n, e);
3210
+ return I(e, n), Jr(n, e), Kr(n, e);
3185
3211
  }, Te = (e, t, r = {}) => (n) => {
3186
- const { libraryOptions: i, target: o } = n ?? {}, s = Fr({
3212
+ const { libraryOptions: i, target: o } = n ?? {}, s = Br({
3187
3213
  ...i ?? {},
3188
3214
  target: o,
3189
3215
  io: t,
3190
3216
  processors: r
3191
3217
  });
3192
- return I(e, s), Br(s, e), Vr(s, e);
3218
+ return I(e, s), Jr(s, e), Kr(s, e);
3193
3219
  }, Q = (e, t, r) => {
3194
3220
  (e[t] === void 0 || r > e[t]) && (e[t] = r);
3195
3221
  }, ee = (e, t, r) => {
3196
3222
  (e[t] === void 0 || r < e[t]) && (e[t] = r);
3197
- }, Wt = (e, t) => {
3223
+ }, Vt = (e, t) => {
3198
3224
  Q(e, "minimum", t), ee(e, "maximum", t);
3199
- }, Kr = (e, t) => {
3200
- e.multipleOf ?? (e.multipleOf = []), e.multipleOf.includes(t) || e.multipleOf.push(t);
3201
3225
  }, Hr = (e, t) => {
3202
- e.patterns ?? (e.patterns = /* @__PURE__ */ new Set()), e.patterns.add(t);
3226
+ e.multipleOf ?? (e.multipleOf = []), e.multipleOf.includes(t) || e.multipleOf.push(t);
3203
3227
  }, Gr = (e, t) => {
3204
- e.mime = e.mime ? e.mime.filter((r) => t.includes(r)) : [...t];
3228
+ e.patterns ?? (e.patterns = /* @__PURE__ */ new Set()), e.patterns.add(t);
3205
3229
  }, qr = (e, t) => {
3230
+ e.mime = e.mime ? e.mime.filter((r) => t.includes(r)) : [...t];
3231
+ }, Yr = (e, t) => {
3206
3232
  e.format = t, t.includes("int") && (e.isInt = !0);
3207
- }, Vt = (e, t) => Q(e, "minimum", t.minimum), Kt = (e, t) => ee(e, "maximum", t.maximum), Ht = (e) => (t, r) => {
3208
- qr(t, r.format);
3233
+ }, Kt = (e, t) => Q(e, "minimum", t.minimum), Ht = (e, t) => ee(e, "maximum", t.maximum), Gt = (e) => (t, r) => {
3234
+ Yr(t, r.format);
3209
3235
  const [n, i] = e[r.format];
3210
3236
  Q(t, "minimum", n), ee(t, "maximum", i);
3211
- }, ia = {
3237
+ }, aa = {
3212
3238
  greater_than: (e, t) => Q(e, t.inclusive ? "minimum" : "exclusiveMinimum", t.value),
3213
3239
  less_than: (e, t) => ee(e, t.inclusive ? "maximum" : "exclusiveMaximum", t.value),
3214
- multiple_of: (e, t) => Kr(e, t.value),
3215
- number_format: Ht(gr),
3216
- bigint_format: Ht(zn),
3217
- min_length: Vt,
3218
- max_length: Kt,
3219
- length_equals: (e, t) => Wt(e, t.length),
3220
- min_size: Vt,
3221
- max_size: Kt,
3222
- size_equals: (e, t) => Wt(e, t.size),
3240
+ multiple_of: (e, t) => Hr(e, t.value),
3241
+ number_format: Gt(vr),
3242
+ bigint_format: Gt(Sn),
3243
+ min_length: Kt,
3244
+ max_length: Ht,
3245
+ length_equals: (e, t) => Vt(e, t.length),
3246
+ min_size: Kt,
3247
+ max_size: Ht,
3248
+ size_equals: (e, t) => Vt(e, t.size),
3223
3249
  string_format: (e, t) => {
3224
- qr(e, t.format), t.pattern && Hr(e, t.pattern), (t.format === "base64" || t.format === "base64url") && (e.contentEncoding = t.format), (t.local || t.precision === -1) && (e.laxFormat = !0);
3250
+ Yr(e, t.format), t.pattern && Gr(e, t.pattern), (t.format === "base64" || t.format === "base64url") && (e.contentEncoding = t.format), (t.local || t.precision === -1) && (e.laxFormat = !0);
3225
3251
  },
3226
- mime_type: (e, t) => Gr(e, t.mime)
3252
+ mime_type: (e, t) => qr(e, t.mime)
3227
3253
  };
3228
3254
  function x(e) {
3229
3255
  const t = {}, r = e._zod.def, n = e._zod.traits.has("$ZodCheck") ? [e, ...r.checks ?? []] : r.checks ?? [];
3230
- for (const o of n) ia[o._zod.def.check]?.(t, o._zod.def);
3256
+ for (const o of n) aa[o._zod.def.check]?.(t, o._zod.def);
3231
3257
  const i = e._zod.bag;
3232
- i.minimum !== void 0 && Q(t, "minimum", i.minimum), i.exclusiveMinimum !== void 0 && Q(t, "exclusiveMinimum", i.exclusiveMinimum), i.maximum !== void 0 && ee(t, "maximum", i.maximum), i.exclusiveMaximum !== void 0 && ee(t, "exclusiveMaximum", i.exclusiveMaximum), i.multipleOf !== void 0 && Kr(t, i.multipleOf), i.format !== void 0 && (t.format ?? (t.format = i.format), i.format.includes("int") && (t.isInt = !0)), i.mime && Gr(t, i.mime);
3233
- for (const o of i.patterns ?? []) Hr(t, o);
3258
+ i.minimum !== void 0 && Q(t, "minimum", i.minimum), i.exclusiveMinimum !== void 0 && Q(t, "exclusiveMinimum", i.exclusiveMinimum), i.maximum !== void 0 && ee(t, "maximum", i.maximum), i.exclusiveMaximum !== void 0 && ee(t, "exclusiveMaximum", i.exclusiveMaximum), i.multipleOf !== void 0 && Hr(t, i.multipleOf), i.format !== void 0 && (t.format ?? (t.format = i.format), i.format.includes("int") && (t.isInt = !0)), i.mime && qr(t, i.mime);
3259
+ for (const o of i.patterns ?? []) Gr(t, o);
3234
3260
  return t;
3235
3261
  }
3236
- var oa = {
3262
+ var ca = {
3237
3263
  guid: "uuid",
3238
3264
  url: "uri",
3239
3265
  datetime: "date-time",
3240
3266
  json_string: "json-string",
3241
3267
  regex: ""
3242
- }, sa = /* @__PURE__ */ new Map([[Zr, zi], [dt, Si]]), aa = (e) => sa.get(e) ?? e, ca = (e, t, r, n) => {
3268
+ }, ua = /* @__PURE__ */ new Map([[Cr, Si], [ht, $i]]), la = (e) => ua.get(e) ?? e, fa = (e, t, r, n) => {
3243
3269
  const i = r;
3244
3270
  i.type = "string";
3245
3271
  const { minimum: o, maximum: s, format: a, patterns: c, contentEncoding: u, laxFormat: f } = x(e);
3246
- if (typeof o == "number" && (i.minLength = o), typeof s == "number" && (i.maxLength = s), a && (i.format = oa[a] ?? a, i.format === "" && delete i.format, (a === "time" || f) && delete i.format), u && (i.contentEncoding = u), c && c.size > 0) {
3247
- const d = [...c].map(aa);
3272
+ if (typeof o == "number" && (i.minLength = o), typeof s == "number" && (i.maxLength = s), a && (i.format = ca[a] ?? a, i.format === "" && delete i.format, (a === "time" || f) && delete i.format), u && (i.contentEncoding = u), c && c.size > 0) {
3273
+ const d = [...c].map(la);
3248
3274
  d.length === 1 ? i.pattern = d[0].source : d.length > 1 && (i.allOf = [...d.map((h) => ({
3249
3275
  ...t.target === "draft-07" || t.target === "draft-04" || t.target === "openapi-3.0" ? { type: "string" } : {},
3250
3276
  pattern: h.source
3251
3277
  }))]);
3252
3278
  }
3253
- }, ua = (e, t, r, n) => {
3279
+ }, da = (e, t, r, n) => {
3254
3280
  const i = r, { minimum: o, maximum: s, multipleOf: a, exclusiveMaximum: c, exclusiveMinimum: u, isInt: f } = x(e);
3255
3281
  i.type = f ? "integer" : "number";
3256
3282
  const d = typeof u == "number" && u >= (o ?? Number.NEGATIVE_INFINITY), h = typeof c == "number" && c <= (s ?? Number.POSITIVE_INFINITY), p = t.target === "draft-04" || t.target === "openapi-3.0";
@@ -3260,34 +3286,34 @@ var oa = {
3260
3286
  const [v, ...b] = m;
3261
3287
  v !== void 0 && (i.multipleOf = v), b.length && (i.allOf = [...i.allOf ?? [], ...b.map((_) => ({ multipleOf: _ }))]);
3262
3288
  }
3263
- }, la = (e, t, r, n) => {
3289
+ }, ha = (e, t, r, n) => {
3264
3290
  r.type = "boolean";
3265
- }, fa = (e, t, r, n) => {
3291
+ }, pa = (e, t, r, n) => {
3266
3292
  r.not = {};
3267
- }, da = (e, t, r, n) => {
3268
- }, ha = (e, t, r, n) => {
3293
+ }, ma = (e, t, r, n) => {
3294
+ }, ga = (e, t, r, n) => {
3269
3295
  const i = e._zod.def, o = Ke(i.entries);
3270
3296
  if (o.length === 0) {
3271
3297
  r.not = {};
3272
3298
  return;
3273
3299
  }
3274
3300
  o.every((s) => typeof s == "number") && (r.type = "number"), o.every((s) => typeof s == "string") && (r.type = "string"), r.enum = o;
3275
- }, pa = (e, t, r, n) => {
3301
+ }, va = (e, t, r, n) => {
3276
3302
  ne(e, t, r, n, "Custom types cannot be represented in JSON Schema");
3277
- }, ma = (e, t, r, n) => {
3303
+ }, ba = (e, t, r, n) => {
3278
3304
  ne(e, t, r, n, "Transforms cannot be represented in JSON Schema");
3279
- }, ga = (e, t, r, n) => {
3305
+ }, _a = (e, t, r, n) => {
3280
3306
  const i = r, o = e._zod.def, { minimum: s, maximum: a } = x(e);
3281
3307
  typeof s == "number" && (i.minItems = s), typeof a == "number" && (i.maxItems = a), i.type = "array", i.items = I(o.element, t, {
3282
3308
  ...n,
3283
3309
  path: [...n.path, "items"]
3284
3310
  });
3285
3311
  };
3286
- function Qe(e) {
3312
+ function et(e) {
3287
3313
  const t = e._zod.def;
3288
- return t.type === "pipe" && t.in._zod.traits.has("$ZodTransform") ? Qe(t.out) : t.type === "catch" ? Qe(t.innerType) : e._zod.optin;
3314
+ return t.type === "pipe" && t.in._zod.traits.has("$ZodTransform") ? et(t.out) : t.type === "catch" ? et(t.innerType) : e._zod.optin;
3289
3315
  }
3290
- var va = (e, t, r, n) => {
3316
+ var ya = (e, t, r, n) => {
3291
3317
  const i = r, o = e._zod.def, s = o.shape;
3292
3318
  if (Object.getOwnPropertySymbols(s).length && ne(e, t, i, n, "Symbol keys cannot be represented in JSON Schema")) return;
3293
3319
  i.type = "object", i.properties = {};
@@ -3302,13 +3328,13 @@ var va = (e, t, r, n) => {
3302
3328
  const a = [];
3303
3329
  for (const c of Object.keys(s)) {
3304
3330
  const u = o.shape[c];
3305
- (t.io === "input" ? Qe(u) === void 0 : u._zod.optout === void 0) && a.push(c);
3331
+ (t.io === "input" ? et(u) === void 0 : u._zod.optout === void 0) && a.push(c);
3306
3332
  }
3307
3333
  a.length > 0 && (i.required = a), o.catchall?._zod.def.type === "never" ? i.additionalProperties = !1 : o.catchall ? o.catchall && (i.additionalProperties = I(o.catchall, t, {
3308
3334
  ...n,
3309
3335
  path: [...n.path, "additionalProperties"]
3310
3336
  })) : t.io === "output" && (i.additionalProperties = !1);
3311
- }, ba = (e, t, r, n) => {
3337
+ }, wa = (e, t, r, n) => {
3312
3338
  const i = e._zod.def, o = i.inclusive === !1, s = i.options.map((a, c) => I(a, t, {
3313
3339
  ...n,
3314
3340
  path: [
@@ -3318,7 +3344,7 @@ var va = (e, t, r, n) => {
3318
3344
  ]
3319
3345
  }));
3320
3346
  o ? r.oneOf = s : r.anyOf = s;
3321
- }, _a = (e, t, r, n) => {
3347
+ }, ka = (e, t, r, n) => {
3322
3348
  const i = e._zod.def, o = I(i.left, t, {
3323
3349
  ...n,
3324
3350
  path: [
@@ -3335,35 +3361,35 @@ var va = (e, t, r, n) => {
3335
3361
  ]
3336
3362
  }), a = (u) => "allOf" in u && Object.keys(u).length === 1, c = [...a(o) ? o.allOf : [o], ...a(s) ? s.allOf : [s]];
3337
3363
  r.allOf = c, t.intersections.push(c);
3338
- }, ya = (e, t, r, n) => {
3364
+ }, Oa = (e, t, r, n) => {
3339
3365
  const i = e._zod.def, o = I(i.innerType, t, n), s = t.seen.get(e);
3340
3366
  t.target === "openapi-3.0" ? (s.ref = i.innerType, r.nullable = !0) : r.anyOf = [o, { type: "null" }];
3341
- }, wa = (e, t, r, n) => {
3367
+ }, za = (e, t, r, n) => {
3342
3368
  const i = e._zod.def;
3343
3369
  I(i.innerType, t, n);
3344
3370
  const o = t.seen.get(e);
3345
3371
  o.ref = i.innerType;
3346
- }, ht = /* @__PURE__ */ Symbol();
3347
- function Yr(e, t, r, n, i) {
3372
+ }, pt = /* @__PURE__ */ Symbol();
3373
+ function Xr(e, t, r, n, i) {
3348
3374
  let o = !1;
3349
3375
  const s = JSON.stringify(e, (a, c) => typeof c != "bigint" ? c : (o = !0, null));
3350
- return o ? (ne(t, r, n, i, "BigInt defaults cannot be represented in JSON Schema"), ht) : JSON.parse(s);
3376
+ return o ? (ne(t, r, n, i, "BigInt defaults cannot be represented in JSON Schema"), pt) : JSON.parse(s);
3351
3377
  }
3352
- var ka = (e, t, r, n) => {
3378
+ var Sa = (e, t, r, n) => {
3353
3379
  const i = e._zod.def;
3354
3380
  I(i.innerType, t, n);
3355
3381
  const o = t.seen.get(e);
3356
3382
  o.ref = i.innerType;
3357
- const s = Yr(i.defaultValue, e, t, r, n);
3358
- s !== ht && (r.default = s);
3359
- }, Oa = (e, t, r, n) => {
3383
+ const s = Xr(i.defaultValue, e, t, r, n);
3384
+ s !== pt && (r.default = s);
3385
+ }, $a = (e, t, r, n) => {
3360
3386
  const i = e._zod.def;
3361
3387
  I(i.innerType, t, n);
3362
3388
  const o = t.seen.get(e);
3363
3389
  if (o.ref = i.innerType, t.io !== "input") return;
3364
- const s = Yr(i.defaultValue, e, t, r, n);
3365
- s !== ht && (r._prefault = s);
3366
- }, za = (e, t, r, n) => {
3390
+ const s = Xr(i.defaultValue, e, t, r, n);
3391
+ s !== pt && (r._prefault = s);
3392
+ }, Ea = (e, t, r, n) => {
3367
3393
  const i = e._zod.def;
3368
3394
  I(i.innerType, t, n);
3369
3395
  const o = t.seen.get(e);
@@ -3376,22 +3402,22 @@ var ka = (e, t, r, n) => {
3376
3402
  return;
3377
3403
  }
3378
3404
  r.default = s;
3379
- }, Sa = (e, t, r, n) => {
3405
+ }, Ia = (e, t, r, n) => {
3380
3406
  const i = e._zod.def, o = i.in._zod.traits.has("$ZodTransform"), s = t.io === "input" ? o ? i.out : i.in : i.out;
3381
3407
  I(s, t, n);
3382
3408
  const a = t.seen.get(e);
3383
3409
  a.ref = s;
3384
- }, Ea = (e, t, r, n) => {
3410
+ }, Aa = (e, t, r, n) => {
3385
3411
  const i = e._zod.def;
3386
3412
  I(i.innerType, t, n);
3387
3413
  const o = t.seen.get(e);
3388
3414
  o.ref = i.innerType, r.readOnly = !0;
3389
- }, Xr = (e, t, r, n) => {
3415
+ }, Qr = (e, t, r, n) => {
3390
3416
  const i = e._zod.def;
3391
3417
  I(i.innerType, t, n);
3392
3418
  const o = t.seen.get(e);
3393
3419
  o.ref = i.innerType;
3394
- }, Gt = /* @__PURE__ */ new WeakSet([Object.prototype, Error.prototype]);
3420
+ }, qt = /* @__PURE__ */ new WeakSet([Object.prototype, Error.prototype]);
3395
3421
  function ve(e, t, r) {
3396
3422
  Object.defineProperty(e, t, {
3397
3423
  configurable: !0,
@@ -3413,10 +3439,10 @@ function ve(e, t, r) {
3413
3439
  }
3414
3440
  });
3415
3441
  }
3416
- var $a = (e, t) => {
3417
- Wn.init(e, t), e.name = "ZodError";
3442
+ var Ta = (e, t) => {
3443
+ Vn.init(e, t), e.name = "ZodError";
3418
3444
  const r = Object.getPrototypeOf(e);
3419
- Gt.has(r) || (Gt.add(r), ve(r, "format", (n) => (i) => Hn(n, i)), ve(r, "flatten", (n) => (i) => Kn(n, i)), ve(r, "addIssue", (n) => (i) => {
3445
+ qt.has(r) || (qt.add(r), ve(r, "format", (n) => (i) => Gn(n, i)), ve(r, "flatten", (n) => (i) => Hn(n, i)), ve(r, "addIssue", (n) => (i) => {
3420
3446
  n.issues.push(i), n.message = JSON.stringify(n.issues, He, 2);
3421
3447
  }), ve(r, "addIssues", (n) => (i) => {
3422
3448
  n.issues.push(...i), n.message = JSON.stringify(n.issues, He, 2);
@@ -3427,14 +3453,14 @@ var $a = (e, t) => {
3427
3453
  return this.issues.length === 0;
3428
3454
  }
3429
3455
  }));
3430
- }, C = /* @__PURE__ */ l("ZodError", $a, void 0, { Parent: Error }), Ia = /* @__PURE__ */ st(C), Aa = /* @__PURE__ */ at(C), Ta = /* @__PURE__ */ ct(C), Pa = /* @__PURE__ */ ut(C), Za = /* @__PURE__ */ ei(C), Ca = /* @__PURE__ */ ti(C), Ra = /* @__PURE__ */ ri(C), Na = /* @__PURE__ */ ni(C), ja = /* @__PURE__ */ ii(C), xa = /* @__PURE__ */ oi(C), Ma = /* @__PURE__ */ si(C), Da = /* @__PURE__ */ ai(C);
3431
- function La() {
3432
- M.localeError || W(os());
3456
+ }, C = /* @__PURE__ */ l("ZodError", Ta, void 0, { Parent: Error }), Pa = /* @__PURE__ */ at(C), Za = /* @__PURE__ */ ct(C), Ca = /* @__PURE__ */ ut(C), Ra = /* @__PURE__ */ lt(C), Na = /* @__PURE__ */ ti(C), ja = /* @__PURE__ */ ri(C), xa = /* @__PURE__ */ ni(C), Ma = /* @__PURE__ */ ii(C), Da = /* @__PURE__ */ oi(C), La = /* @__PURE__ */ si(C), Ua = /* @__PURE__ */ ai(C), Fa = /* @__PURE__ */ ci(C);
3457
+ function Ba() {
3458
+ M.localeError || W(cs());
3433
3459
  }
3434
- function pt() {
3435
- M.memoizer || W({ memoizer: rs() });
3460
+ function mt() {
3461
+ M.memoizer || W({ memoizer: os() });
3436
3462
  }
3437
- var E = /* @__PURE__ */ l("ZodType", (e, t) => (La(), S.init(e, t), e.def = t, e.type = t.type, e), {
3463
+ var $ = /* @__PURE__ */ l("ZodType", (e, t) => (Ba(), S.init(e, t), e.def = t, e.type = t.type, e), {
3438
3464
  check(...e) {
3439
3465
  const t = this.def;
3440
3466
  return this.clone(Z(t, { checks: [...t.checks ?? [], ...e.map((r) => typeof r == "function" ? { _zod: {
@@ -3456,55 +3482,55 @@ var E = /* @__PURE__ */ l("ZodType", (e, t) => (La(), S.init(e, t), e.def = t, e
3456
3482
  return e.add(this, t), this;
3457
3483
  },
3458
3484
  refine(e, t) {
3459
- return this.check(Nc(e, t));
3485
+ return this.check(Mc(e, t));
3460
3486
  },
3461
3487
  superRefine(e, t) {
3462
- return this.check(jc(e, t));
3488
+ return this.check(Dc(e, t));
3463
3489
  },
3464
3490
  overwrite(e) {
3465
3491
  return this.check(/* @__PURE__ */ re(e));
3466
3492
  },
3467
3493
  optional() {
3468
- return Xt(this);
3494
+ return Qt(this);
3469
3495
  },
3470
3496
  exactOptional() {
3471
- return kc(this);
3497
+ return Sc(this);
3472
3498
  },
3473
3499
  nullable() {
3474
- return Qt(this);
3500
+ return er(this);
3475
3501
  },
3476
3502
  nullish() {
3477
- return Xt(Qt(this));
3503
+ return Qt(er(this));
3478
3504
  },
3479
3505
  nonoptional(e) {
3480
- return Ic(this, e);
3506
+ return Pc(this, e);
3481
3507
  },
3482
3508
  array() {
3483
- return mt(this);
3509
+ return gt(this);
3484
3510
  },
3485
3511
  or(e) {
3486
- return tn([this, e]);
3512
+ return rn([this, e]);
3487
3513
  },
3488
3514
  and(e) {
3489
- return _c(this, e);
3515
+ return kc(this, e);
3490
3516
  },
3491
3517
  transform(e) {
3492
- return er(this, wc(e));
3518
+ return tr(this, zc(e));
3493
3519
  },
3494
3520
  default(e) {
3495
- return Sc(this, e);
3521
+ return Ic(this, e);
3496
3522
  },
3497
3523
  prefault(e) {
3498
- return $c(this, e);
3524
+ return Tc(this, e);
3499
3525
  },
3500
3526
  catch(e) {
3501
- return Tc(this, e);
3527
+ return Cc(this, e);
3502
3528
  },
3503
3529
  pipe(e) {
3504
- return er(this, e);
3530
+ return tr(this, e);
3505
3531
  },
3506
3532
  readonly() {
3507
- return Cc(this);
3533
+ return jc(this);
3508
3534
  },
3509
3535
  describe(e) {
3510
3536
  const t = this.clone();
@@ -3525,8 +3551,8 @@ var E = /* @__PURE__ */ l("ZodType", (e, t) => (La(), S.init(e, t), e.def = t, e
3525
3551
  return t.length === 0 ? e(this) : e(this, ...t);
3526
3552
  },
3527
3553
  get "~standard"() {
3528
- return _r(this, "~standard", {
3529
- ...Ir(this),
3554
+ return yr(this, "~standard", {
3555
+ ...Ar(this),
3530
3556
  jsonSchema: {
3531
3557
  input: Te(this, "input"),
3532
3558
  output: Te(this, "output")
@@ -3537,16 +3563,16 @@ var E = /* @__PURE__ */ l("ZodType", (e, t) => (La(), S.init(e, t), e.def = t, e
3537
3563
  B(this, "~standard", e);
3538
3564
  },
3539
3565
  parse: function e(t, r) {
3540
- return Ia(this, t, r, { callee: e });
3566
+ return Pa(this, t, r, { callee: e });
3541
3567
  },
3542
3568
  parseAsync: async function e(t, r) {
3543
- return await Aa(this, t, r, { callee: e });
3569
+ return await Za(this, t, r, { callee: e });
3544
3570
  },
3545
3571
  safeParse(e, t) {
3546
- return Ta(this, e, t);
3572
+ return Ca(this, e, t);
3547
3573
  },
3548
3574
  async safeParseAsync(e, t) {
3549
- return Pa(this, e, t);
3575
+ return Ra(this, e, t);
3550
3576
  },
3551
3577
  get spa() {
3552
3578
  return this?.safeParseAsync;
@@ -3555,37 +3581,37 @@ var E = /* @__PURE__ */ l("ZodType", (e, t) => (La(), S.init(e, t), e.def = t, e
3555
3581
  B(this, "spa", e);
3556
3582
  },
3557
3583
  validate(e, t) {
3558
- return Yn(this, e, t);
3584
+ return Xn(this, e, t);
3559
3585
  },
3560
3586
  validateAsync(e, t) {
3561
- return Qn(this, e, t);
3587
+ return ei(this, e, t);
3562
3588
  },
3563
3589
  encode: function e(t, r) {
3564
- return Za(this, t, r, { callee: e });
3590
+ return Na(this, t, r, { callee: e });
3565
3591
  },
3566
3592
  decode: function e(t, r) {
3567
- return Ca(this, t, r, { callee: e });
3593
+ return ja(this, t, r, { callee: e });
3568
3594
  },
3569
3595
  encodeAsync: async function e(t, r) {
3570
- return await Ra(this, t, r, { callee: e });
3596
+ return await xa(this, t, r, { callee: e });
3571
3597
  },
3572
3598
  decodeAsync: async function e(t, r) {
3573
- return await Na(this, t, r, { callee: e });
3599
+ return await Ma(this, t, r, { callee: e });
3574
3600
  },
3575
3601
  safeEncode(e, t) {
3576
- return ja(this, e, t);
3602
+ return Da(this, e, t);
3577
3603
  },
3578
3604
  safeDecode(e, t) {
3579
- return xa(this, e, t);
3605
+ return La(this, e, t);
3580
3606
  },
3581
3607
  async safeEncodeAsync(e, t) {
3582
- return Ma(this, e, t);
3608
+ return Ua(this, e, t);
3583
3609
  },
3584
3610
  async safeDecodeAsync(e, t) {
3585
- return Da(this, e, t);
3611
+ return Fa(this, e, t);
3586
3612
  },
3587
3613
  toJSONSchema(e) {
3588
- return na(this, {})(e);
3614
+ return sa(this, {})(e);
3589
3615
  },
3590
3616
  get description() {
3591
3617
  return ue.get(this)?.description;
@@ -3593,194 +3619,194 @@ var E = /* @__PURE__ */ l("ZodType", (e, t) => (La(), S.init(e, t), e.def = t, e
3593
3619
  get _def() {
3594
3620
  return this._zod.def;
3595
3621
  }
3596
- }), Qr = /* @__PURE__ */ l("_ZodString", (e, t) => {
3597
- ft.init(e, t), E.init(e, t), e._zod.processJSONSchema = (r, n, i) => ca(e, r, n, i);
3598
- }, /* @__PURE__ */ yr({
3622
+ }), en = /* @__PURE__ */ l("_ZodString", (e, t) => {
3623
+ dt.init(e, t), $.init(e, t), e._zod.processJSONSchema = (r, n, i) => fa(e, r, n, i);
3624
+ }, /* @__PURE__ */ wr({
3599
3625
  format: (e) => x(e).format ?? null,
3600
3626
  minLength: (e) => x(e).minimum ?? null,
3601
3627
  maxLength: (e) => x(e).maximum ?? null
3602
3628
  }, {
3603
3629
  regex(...e) {
3604
- return this.check(/* @__PURE__ */ Ls(...e));
3630
+ return this.check(/* @__PURE__ */ Bs(...e));
3605
3631
  },
3606
3632
  includes(...e) {
3607
- return this.check(/* @__PURE__ */ Bs(...e));
3633
+ return this.check(/* @__PURE__ */ Vs(...e));
3608
3634
  },
3609
3635
  startsWith(...e) {
3610
- return this.check(/* @__PURE__ */ Js(...e));
3636
+ return this.check(/* @__PURE__ */ Ks(...e));
3611
3637
  },
3612
3638
  endsWith(...e) {
3613
- return this.check(/* @__PURE__ */ Ws(...e));
3639
+ return this.check(/* @__PURE__ */ Hs(...e));
3614
3640
  },
3615
3641
  min(...e) {
3616
3642
  return this.check(/* @__PURE__ */ Ae(...e));
3617
3643
  },
3618
3644
  max(...e) {
3619
- return this.check(/* @__PURE__ */ Lr(...e));
3645
+ return this.check(/* @__PURE__ */ Ur(...e));
3620
3646
  },
3621
3647
  length(...e) {
3622
- return this.check(/* @__PURE__ */ Ur(...e));
3648
+ return this.check(/* @__PURE__ */ Fr(...e));
3623
3649
  },
3624
3650
  nonempty(...e) {
3625
3651
  return this.check(/* @__PURE__ */ Ae(1, ...e));
3626
3652
  },
3627
3653
  lowercase(e) {
3628
- return this.check(/* @__PURE__ */ Us(e));
3654
+ return this.check(/* @__PURE__ */ Js(e));
3629
3655
  },
3630
3656
  uppercase(e) {
3631
- return this.check(/* @__PURE__ */ Fs(e));
3657
+ return this.check(/* @__PURE__ */ Ws(e));
3632
3658
  },
3633
3659
  trim() {
3634
- return this.check(/* @__PURE__ */ Ks());
3660
+ return this.check(/* @__PURE__ */ qs());
3635
3661
  },
3636
3662
  normalize(...e) {
3637
- return this.check(/* @__PURE__ */ Vs(...e));
3663
+ return this.check(/* @__PURE__ */ Gs(...e));
3638
3664
  },
3639
3665
  toLowerCase() {
3640
- return this.check(/* @__PURE__ */ Hs());
3666
+ return this.check(/* @__PURE__ */ Ys());
3641
3667
  },
3642
3668
  toUpperCase() {
3643
- return this.check(/* @__PURE__ */ Gs());
3669
+ return this.check(/* @__PURE__ */ Xs());
3644
3670
  },
3645
3671
  slugify() {
3646
- return this.check(/* @__PURE__ */ qs());
3672
+ return this.check(/* @__PURE__ */ Qs());
3647
3673
  }
3648
- })), Ua = /* @__PURE__ */ l("ZodString", (e, t) => {
3649
- ft.init(e, t), Qr.init(e, t);
3674
+ })), Ja = /* @__PURE__ */ l("ZodString", (e, t) => {
3675
+ dt.init(e, t), en.init(e, t);
3650
3676
  }, {
3651
3677
  email(e) {
3652
- return this.check(/* @__PURE__ */ us(Va, e));
3678
+ return this.check(/* @__PURE__ */ ds(Ga, e));
3653
3679
  },
3654
3680
  url(e) {
3655
- return this.check(/* @__PURE__ */ ms(Ha, e));
3681
+ return this.check(/* @__PURE__ */ bs(Ya, e));
3656
3682
  },
3657
3683
  jwt(e) {
3658
- return this.check(/* @__PURE__ */ Ts(uc, e));
3684
+ return this.check(/* @__PURE__ */ Cs(dc, e));
3659
3685
  },
3660
3686
  emoji(e) {
3661
- return this.check(/* @__PURE__ */ gs(Ga, e));
3687
+ return this.check(/* @__PURE__ */ _s(Xa, e));
3662
3688
  },
3663
3689
  guid(e) {
3664
- return this.check(/* @__PURE__ */ ls(Ka, e));
3690
+ return this.check(/* @__PURE__ */ hs(qa, e));
3665
3691
  },
3666
3692
  uuid(e) {
3667
- return this.check(/* @__PURE__ */ fs(be, e));
3693
+ return this.check(/* @__PURE__ */ ps(be, e));
3668
3694
  },
3669
3695
  uuidv4(e) {
3670
- return this.check(/* @__PURE__ */ ds(be, e));
3696
+ return this.check(/* @__PURE__ */ ms(be, e));
3671
3697
  },
3672
3698
  uuidv6(e) {
3673
- return this.check(/* @__PURE__ */ hs(be, e));
3699
+ return this.check(/* @__PURE__ */ gs(be, e));
3674
3700
  },
3675
3701
  uuidv7(e) {
3676
- return this.check(/* @__PURE__ */ ps(be, e));
3702
+ return this.check(/* @__PURE__ */ vs(be, e));
3677
3703
  },
3678
3704
  nanoid(e) {
3679
- return this.check(/* @__PURE__ */ vs(qa, e));
3705
+ return this.check(/* @__PURE__ */ ys(Qa, e));
3680
3706
  },
3681
3707
  cuid(e) {
3682
- return this.check(/* @__PURE__ */ bs(Ya, e));
3708
+ return this.check(/* @__PURE__ */ ws(ec, e));
3683
3709
  },
3684
3710
  cuid2(e) {
3685
- return this.check(/* @__PURE__ */ _s(Xa, e));
3711
+ return this.check(/* @__PURE__ */ ks(tc, e));
3686
3712
  },
3687
3713
  ulid(e) {
3688
- return this.check(/* @__PURE__ */ ys(Qa, e));
3714
+ return this.check(/* @__PURE__ */ Os(rc, e));
3689
3715
  },
3690
3716
  base64(e) {
3691
- return this.check(/* @__PURE__ */ $s(sc, e));
3717
+ return this.check(/* @__PURE__ */ Ts(uc, e));
3692
3718
  },
3693
3719
  base64url(e) {
3694
- return this.check(/* @__PURE__ */ Is(ac, e));
3720
+ return this.check(/* @__PURE__ */ Ps(lc, e));
3695
3721
  },
3696
3722
  xid(e) {
3697
- return this.check(/* @__PURE__ */ ws(ec, e));
3723
+ return this.check(/* @__PURE__ */ zs(nc, e));
3698
3724
  },
3699
3725
  ksuid(e) {
3700
- return this.check(/* @__PURE__ */ ks(tc, e));
3726
+ return this.check(/* @__PURE__ */ Ss(ic, e));
3701
3727
  },
3702
3728
  ipv4(e) {
3703
- return this.check(/* @__PURE__ */ Os(rc, e));
3729
+ return this.check(/* @__PURE__ */ $s(oc, e));
3704
3730
  },
3705
3731
  ipv6(e) {
3706
- return this.check(/* @__PURE__ */ zs(nc, e));
3732
+ return this.check(/* @__PURE__ */ Es(sc, e));
3707
3733
  },
3708
3734
  cidrv4(e) {
3709
- return this.check(/* @__PURE__ */ Ss(ic, e));
3735
+ return this.check(/* @__PURE__ */ Is(ac, e));
3710
3736
  },
3711
3737
  cidrv6(e) {
3712
- return this.check(/* @__PURE__ */ Es(oc, e));
3738
+ return this.check(/* @__PURE__ */ As(cc, e));
3713
3739
  },
3714
3740
  e164(e) {
3715
- return this.check(/* @__PURE__ */ As(cc, e));
3741
+ return this.check(/* @__PURE__ */ Zs(fc, e));
3716
3742
  },
3717
3743
  datetime(e) {
3718
- return this.check(/* @__PURE__ */ Ps(Fa, e));
3744
+ return this.check(/* @__PURE__ */ Rs(Wa, e));
3719
3745
  },
3720
3746
  date(e) {
3721
- return this.check(/* @__PURE__ */ Zs(Ba, e));
3747
+ return this.check(/* @__PURE__ */ Ns(Va, e));
3722
3748
  },
3723
3749
  time(e) {
3724
- return this.check(/* @__PURE__ */ Cs(Ja, e));
3750
+ return this.check(/* @__PURE__ */ js(Ka, e));
3725
3751
  },
3726
3752
  duration(e) {
3727
- return this.check(/* @__PURE__ */ Rs(Wa, e));
3753
+ return this.check(/* @__PURE__ */ xs(Ha, e));
3728
3754
  }
3729
3755
  });
3730
3756
  function k(e) {
3731
- return /* @__PURE__ */ cs(Ua, e);
3757
+ return /* @__PURE__ */ fs(Ja, e);
3732
3758
  }
3733
3759
  var z = /* @__PURE__ */ l("ZodStringFormat", (e, t) => {
3734
- O.init(e, t), Qr.init(e, t);
3735
- }), Fa = /* @__PURE__ */ l("ZodISODateTime", (e, t) => {
3736
- mo.init(e, t), z.init(e, t);
3737
- }), Ba = /* @__PURE__ */ l("ZodISODate", (e, t) => {
3760
+ O.init(e, t), en.init(e, t);
3761
+ }), Wa = /* @__PURE__ */ l("ZodISODateTime", (e, t) => {
3738
3762
  go.init(e, t), z.init(e, t);
3739
- }), Ja = /* @__PURE__ */ l("ZodISOTime", (e, t) => {
3763
+ }), Va = /* @__PURE__ */ l("ZodISODate", (e, t) => {
3740
3764
  vo.init(e, t), z.init(e, t);
3741
- }), Wa = /* @__PURE__ */ l("ZodISODuration", (e, t) => {
3765
+ }), Ka = /* @__PURE__ */ l("ZodISOTime", (e, t) => {
3742
3766
  bo.init(e, t), z.init(e, t);
3743
- }), Va = /* @__PURE__ */ l("ZodEmail", (e, t) => {
3744
- eo.init(e, t), z.init(e, t);
3745
- }), Ka = /* @__PURE__ */ l("ZodGUID", (e, t) => {
3746
- Xi.init(e, t), z.init(e, t);
3747
- }), be = /* @__PURE__ */ l("ZodUUID", (e, t) => {
3767
+ }), Ha = /* @__PURE__ */ l("ZodISODuration", (e, t) => {
3768
+ _o.init(e, t), z.init(e, t);
3769
+ }), Ga = /* @__PURE__ */ l("ZodEmail", (e, t) => {
3770
+ to.init(e, t), z.init(e, t);
3771
+ }), qa = /* @__PURE__ */ l("ZodGUID", (e, t) => {
3748
3772
  Qi.init(e, t), z.init(e, t);
3749
- }), Ha = /* @__PURE__ */ l("ZodURL", (e, t) => {
3750
- so.init(e, t), z.init(e, t);
3751
- }), Ga = /* @__PURE__ */ l("ZodEmoji", (e, t) => {
3773
+ }), be = /* @__PURE__ */ l("ZodUUID", (e, t) => {
3774
+ eo.init(e, t), z.init(e, t);
3775
+ }), Ya = /* @__PURE__ */ l("ZodURL", (e, t) => {
3752
3776
  ao.init(e, t), z.init(e, t);
3753
- }), qa = /* @__PURE__ */ l("ZodNanoID", (e, t) => {
3777
+ }), Xa = /* @__PURE__ */ l("ZodEmoji", (e, t) => {
3754
3778
  co.init(e, t), z.init(e, t);
3755
- }), Ya = /* @__PURE__ */ l("ZodCUID", (e, t) => {
3779
+ }), Qa = /* @__PURE__ */ l("ZodNanoID", (e, t) => {
3756
3780
  uo.init(e, t), z.init(e, t);
3757
- }), Xa = /* @__PURE__ */ l("ZodCUID2", (e, t) => {
3781
+ }), ec = /* @__PURE__ */ l("ZodCUID", (e, t) => {
3758
3782
  lo.init(e, t), z.init(e, t);
3759
- }), Qa = /* @__PURE__ */ l("ZodULID", (e, t) => {
3783
+ }), tc = /* @__PURE__ */ l("ZodCUID2", (e, t) => {
3760
3784
  fo.init(e, t), z.init(e, t);
3761
- }), ec = /* @__PURE__ */ l("ZodXID", (e, t) => {
3785
+ }), rc = /* @__PURE__ */ l("ZodULID", (e, t) => {
3762
3786
  ho.init(e, t), z.init(e, t);
3763
- }), tc = /* @__PURE__ */ l("ZodKSUID", (e, t) => {
3787
+ }), nc = /* @__PURE__ */ l("ZodXID", (e, t) => {
3764
3788
  po.init(e, t), z.init(e, t);
3765
- }), rc = /* @__PURE__ */ l("ZodIPv4", (e, t) => {
3766
- _o.init(e, t), z.init(e, t);
3767
- }), nc = /* @__PURE__ */ l("ZodIPv6", (e, t) => {
3768
- wo.init(e, t), z.init(e, t);
3769
- }), ic = /* @__PURE__ */ l("ZodCIDRv4", (e, t) => {
3789
+ }), ic = /* @__PURE__ */ l("ZodKSUID", (e, t) => {
3790
+ mo.init(e, t), z.init(e, t);
3791
+ }), oc = /* @__PURE__ */ l("ZodIPv4", (e, t) => {
3792
+ yo.init(e, t), z.init(e, t);
3793
+ }), sc = /* @__PURE__ */ l("ZodIPv6", (e, t) => {
3770
3794
  ko.init(e, t), z.init(e, t);
3771
- }), oc = /* @__PURE__ */ l("ZodCIDRv6", (e, t) => {
3772
- zo.init(e, t), z.init(e, t);
3773
- }), sc = /* @__PURE__ */ l("ZodBase64", (e, t) => {
3795
+ }), ac = /* @__PURE__ */ l("ZodCIDRv4", (e, t) => {
3796
+ Oo.init(e, t), z.init(e, t);
3797
+ }), cc = /* @__PURE__ */ l("ZodCIDRv6", (e, t) => {
3774
3798
  So.init(e, t), z.init(e, t);
3775
- }), ac = /* @__PURE__ */ l("ZodBase64URL", (e, t) => {
3799
+ }), uc = /* @__PURE__ */ l("ZodBase64", (e, t) => {
3776
3800
  $o.init(e, t), z.init(e, t);
3777
- }), cc = /* @__PURE__ */ l("ZodE164", (e, t) => {
3801
+ }), lc = /* @__PURE__ */ l("ZodBase64URL", (e, t) => {
3778
3802
  Io.init(e, t), z.init(e, t);
3779
- }), uc = /* @__PURE__ */ l("ZodJWT", (e, t) => {
3780
- To.init(e, t), z.init(e, t);
3781
- }), en = /* @__PURE__ */ l("ZodNumber", (e, t) => {
3782
- Cr.init(e, t), E.init(e, t), e._zod.processJSONSchema = (r, n, i) => ua(e, r, n, i), e.isFinite = !0;
3783
- }, /* @__PURE__ */ yr({
3803
+ }), fc = /* @__PURE__ */ l("ZodE164", (e, t) => {
3804
+ Ao.init(e, t), z.init(e, t);
3805
+ }), dc = /* @__PURE__ */ l("ZodJWT", (e, t) => {
3806
+ Po.init(e, t), z.init(e, t);
3807
+ }), tn = /* @__PURE__ */ l("ZodNumber", (e, t) => {
3808
+ Rr.init(e, t), $.init(e, t), e._zod.processJSONSchema = (r, n, i) => da(e, r, n, i), e.isFinite = !0;
3809
+ }, /* @__PURE__ */ wr({
3784
3810
  minValue: (e) => {
3785
3811
  const { minimum: t, exclusiveMinimum: r } = x(e);
3786
3812
  return Math.max(t ?? Number.NEGATIVE_INFINITY, r ?? Number.NEGATIVE_INFINITY);
@@ -3796,7 +3822,7 @@ var z = /* @__PURE__ */ l("ZodStringFormat", (e, t) => {
3796
3822
  format: (e) => x(e).format ?? null
3797
3823
  }, {
3798
3824
  gt(e, t) {
3799
- return this.check(/* @__PURE__ */ Lt(e, t));
3825
+ return this.check(/* @__PURE__ */ Ut(e, t));
3800
3826
  },
3801
3827
  gte(e, t) {
3802
3828
  return this.check(/* @__PURE__ */ Je(e, t));
@@ -3805,7 +3831,7 @@ var z = /* @__PURE__ */ l("ZodStringFormat", (e, t) => {
3805
3831
  return this.check(/* @__PURE__ */ Je(e, t));
3806
3832
  },
3807
3833
  lt(e, t) {
3808
- return this.check(/* @__PURE__ */ Dt(e, t));
3834
+ return this.check(/* @__PURE__ */ Lt(e, t));
3809
3835
  },
3810
3836
  lte(e, t) {
3811
3837
  return this.check(/* @__PURE__ */ Be(e, t));
@@ -3814,62 +3840,62 @@ var z = /* @__PURE__ */ l("ZodStringFormat", (e, t) => {
3814
3840
  return this.check(/* @__PURE__ */ Be(e, t));
3815
3841
  },
3816
3842
  int(e) {
3817
- return this.check(qt(e));
3843
+ return this.check(Yt(e));
3818
3844
  },
3819
3845
  safe(e) {
3820
- return this.check(qt(e));
3846
+ return this.check(Yt(e));
3821
3847
  },
3822
3848
  positive(e) {
3823
- return this.check(/* @__PURE__ */ Lt(0, e));
3849
+ return this.check(/* @__PURE__ */ Ut(0, e));
3824
3850
  },
3825
3851
  nonnegative(e) {
3826
3852
  return this.check(/* @__PURE__ */ Je(0, e));
3827
3853
  },
3828
3854
  negative(e) {
3829
- return this.check(/* @__PURE__ */ Dt(0, e));
3855
+ return this.check(/* @__PURE__ */ Lt(0, e));
3830
3856
  },
3831
3857
  nonpositive(e) {
3832
3858
  return this.check(/* @__PURE__ */ Be(0, e));
3833
3859
  },
3834
3860
  multipleOf(e, t) {
3835
- return this.check(/* @__PURE__ */ Ut(e, t));
3861
+ return this.check(/* @__PURE__ */ Ft(e, t));
3836
3862
  },
3837
3863
  step(e, t) {
3838
- return this.check(/* @__PURE__ */ Ut(e, t));
3864
+ return this.check(/* @__PURE__ */ Ft(e, t));
3839
3865
  },
3840
3866
  finite() {
3841
3867
  return this;
3842
3868
  }
3843
3869
  }));
3844
3870
  function Pe(e) {
3845
- return /* @__PURE__ */ Ns(en, e);
3871
+ return /* @__PURE__ */ Ms(tn, e);
3846
3872
  }
3847
- var lc = /* @__PURE__ */ l("ZodNumberFormat", (e, t) => {
3848
- Po.init(e, t), en.init(e, t);
3873
+ var hc = /* @__PURE__ */ l("ZodNumberFormat", (e, t) => {
3874
+ Zo.init(e, t), tn.init(e, t);
3849
3875
  });
3850
- function qt(e) {
3851
- return /* @__PURE__ */ js(lc, e);
3876
+ function Yt(e) {
3877
+ return /* @__PURE__ */ Ds(hc, e);
3852
3878
  }
3853
- var fc = /* @__PURE__ */ l("ZodBoolean", (e, t) => {
3854
- Zo.init(e, t), E.init(e, t), e._zod.processJSONSchema = (r, n, i) => la(e, r, n, i);
3879
+ var pc = /* @__PURE__ */ l("ZodBoolean", (e, t) => {
3880
+ Co.init(e, t), $.init(e, t), e._zod.processJSONSchema = (r, n, i) => ha(e, r, n, i);
3855
3881
  });
3856
3882
  function F(e) {
3857
- return /* @__PURE__ */ xs(fc, e);
3883
+ return /* @__PURE__ */ Ls(pc, e);
3858
3884
  }
3859
- var dc = /* @__PURE__ */ l("ZodUnknown", (e, t) => {
3860
- Co.init(e, t), E.init(e, t), e._zod.processJSONSchema = (r, n, i) => da(e, r, n, i);
3885
+ var mc = /* @__PURE__ */ l("ZodUnknown", (e, t) => {
3886
+ Ro.init(e, t), $.init(e, t), e._zod.processJSONSchema = (r, n, i) => ma(e, r, n, i);
3861
3887
  });
3862
- function Yt() {
3863
- return /* @__PURE__ */ Ms(dc);
3888
+ function Xt() {
3889
+ return /* @__PURE__ */ Us(mc);
3864
3890
  }
3865
- var hc = /* @__PURE__ */ l("ZodNever", (e, t) => {
3866
- Ro.init(e, t), E.init(e, t), e._zod.processJSONSchema = (r, n, i) => fa(e, r, n, i);
3891
+ var gc = /* @__PURE__ */ l("ZodNever", (e, t) => {
3892
+ No.init(e, t), $.init(e, t), e._zod.processJSONSchema = (r, n, i) => pa(e, r, n, i);
3867
3893
  });
3868
- function pc(e) {
3869
- return /* @__PURE__ */ Ds(hc, e);
3894
+ function vc(e) {
3895
+ return /* @__PURE__ */ Fs(gc, e);
3870
3896
  }
3871
- var mc = /* @__PURE__ */ l("ZodArray", (e, t) => {
3872
- pt(), No.init(e, t), E.init(e, t), e._zod.processJSONSchema = (r, n, i) => ga(e, r, n, i), e.element = t.element;
3897
+ var bc = /* @__PURE__ */ l("ZodArray", (e, t) => {
3898
+ mt(), Mo.init(e, t), $.init(e, t), e._zod.processJSONSchema = (r, n, i) => _a(e, r, n, i), e.element = t.element;
3873
3899
  }, {
3874
3900
  min(e, t) {
3875
3901
  return this.check(/* @__PURE__ */ Ae(e, t));
@@ -3878,20 +3904,20 @@ var mc = /* @__PURE__ */ l("ZodArray", (e, t) => {
3878
3904
  return this.check(/* @__PURE__ */ Ae(1, e));
3879
3905
  },
3880
3906
  max(e, t) {
3881
- return this.check(/* @__PURE__ */ Lr(e, t));
3907
+ return this.check(/* @__PURE__ */ Ur(e, t));
3882
3908
  },
3883
3909
  length(e, t) {
3884
- return this.check(/* @__PURE__ */ Ur(e, t));
3910
+ return this.check(/* @__PURE__ */ Fr(e, t));
3885
3911
  },
3886
3912
  unwrap() {
3887
3913
  return this.element;
3888
3914
  }
3889
3915
  });
3890
- function mt(e, t) {
3891
- return /* @__PURE__ */ Ys(mc, e, t);
3916
+ function gt(e, t) {
3917
+ return /* @__PURE__ */ ea(bc, e, t);
3892
3918
  }
3893
- var gc = /* @__PURE__ */ l("ZodObject", (e, t) => {
3894
- pt(), Mo.init(e, t), E.init(e, t), e._zod.processJSONSchema = (r, n, i) => va(e, r, n, i), Mn(e, "shape", (r) => r._zod.def.shape, !1);
3919
+ var _c = /* @__PURE__ */ l("ZodObject", (e, t) => {
3920
+ mt(), Uo.init(e, t), $.init(e, t), e._zod.processJSONSchema = (r, n, i) => ya(e, r, n, i), Dn(e, "shape", (r) => r._zod.def.shape, !1);
3895
3921
  }, {
3896
3922
  keyof() {
3897
3923
  return P(Object.keys(this._zod.def.shape));
@@ -3900,40 +3926,40 @@ var gc = /* @__PURE__ */ l("ZodObject", (e, t) => {
3900
3926
  return this.clone(Z(this._zod.def, { catchall: e }));
3901
3927
  },
3902
3928
  passthrough() {
3903
- return this.clone(Z(this._zod.def, { catchall: Yt() }));
3929
+ return this.clone(Z(this._zod.def, { catchall: Xt() }));
3904
3930
  },
3905
3931
  loose() {
3906
- return this.clone(Z(this._zod.def, { catchall: Yt() }));
3932
+ return this.clone(Z(this._zod.def, { catchall: Xt() }));
3907
3933
  },
3908
3934
  strict() {
3909
- return this.clone(Z(this._zod.def, { catchall: pc() }));
3935
+ return this.clone(Z(this._zod.def, { catchall: vc() }));
3910
3936
  },
3911
3937
  strip() {
3912
3938
  return this.clone(Z(this._zod.def, { catchall: void 0 }));
3913
3939
  },
3914
3940
  extend(e) {
3915
- return $n(this, e);
3941
+ return In(this, e);
3916
3942
  },
3917
3943
  safeExtend(e) {
3918
- return In(this, e);
3944
+ return An(this, e);
3919
3945
  },
3920
3946
  merge(e) {
3921
- return An(this, e);
3947
+ return Tn(this, e);
3922
3948
  },
3923
3949
  pick(e) {
3924
- return Sn(this, e);
3950
+ return $n(this, e);
3925
3951
  },
3926
3952
  omit(e) {
3927
3953
  return En(this, e);
3928
3954
  },
3929
3955
  partial(...e) {
3930
- return wt(rn, this, e[0]);
3956
+ return kt(nn, this, e[0]);
3931
3957
  },
3932
3958
  exactPartial(...e) {
3933
- return wt(nn, this, e[0], "exactPartial");
3959
+ return kt(on, this, e[0], "exactPartial");
3934
3960
  },
3935
3961
  required(...e) {
3936
- return Tn(on, this, e[0]);
3962
+ return Pn(sn, this, e[0]);
3937
3963
  }
3938
3964
  });
3939
3965
  function R(e, t) {
@@ -3942,36 +3968,36 @@ function R(e, t) {
3942
3968
  shape: e ?? {},
3943
3969
  ...g(t)
3944
3970
  };
3945
- return new gc(r);
3971
+ return new _c(r);
3946
3972
  }
3947
- var vc = /* @__PURE__ */ l("ZodUnion", (e, t) => {
3948
- Do.init(e, t), E.init(e, t), e._zod.processJSONSchema = (r, n, i) => ba(e, r, n, i), e.options = t.options;
3973
+ var yc = /* @__PURE__ */ l("ZodUnion", (e, t) => {
3974
+ Fo.init(e, t), $.init(e, t), e._zod.processJSONSchema = (r, n, i) => wa(e, r, n, i), e.options = t.options;
3949
3975
  });
3950
- function tn(e, t) {
3951
- return new vc({
3976
+ function rn(e, t) {
3977
+ return new yc({
3952
3978
  type: "union",
3953
3979
  options: e,
3954
3980
  ...g(t)
3955
3981
  });
3956
3982
  }
3957
- var bc = /* @__PURE__ */ l("ZodIntersection", (e, t) => {
3958
- Lo.init(e, t), E.init(e, t), e._zod.processJSONSchema = (r, n, i) => _a(e, r, n, i);
3983
+ var wc = /* @__PURE__ */ l("ZodIntersection", (e, t) => {
3984
+ Bo.init(e, t), $.init(e, t), e._zod.processJSONSchema = (r, n, i) => ka(e, r, n, i);
3959
3985
  });
3960
- function _c(e, t) {
3961
- return new bc({
3986
+ function kc(e, t) {
3987
+ return new wc({
3962
3988
  type: "intersection",
3963
3989
  left: e,
3964
3990
  right: t
3965
3991
  });
3966
3992
  }
3967
- var et = /* @__PURE__ */ l("ZodEnum", (e, t) => {
3968
- Uo.init(e, t), E.init(e, t), e._zod.processJSONSchema = (n, i, o) => ha(e, n, i, o), e.enum = t.entries, e.options = [...e._zod.values];
3993
+ var tt = /* @__PURE__ */ l("ZodEnum", (e, t) => {
3994
+ Jo.init(e, t), $.init(e, t), e._zod.processJSONSchema = (n, i, o) => ga(e, n, i, o), e.enum = t.entries, e.options = [...e._zod.values];
3969
3995
  const r = new Set(Object.keys(t.entries));
3970
3996
  e.extract = (n, i) => {
3971
3997
  const o = {};
3972
3998
  for (const s of n) if (r.has(s)) o[s] = t.entries[s];
3973
3999
  else throw new Error(`Key ${s} not found in enum`);
3974
- return new et({
4000
+ return new tt({
3975
4001
  ...t,
3976
4002
  checks: [],
3977
4003
  ...g(i),
@@ -3981,7 +4007,7 @@ var et = /* @__PURE__ */ l("ZodEnum", (e, t) => {
3981
4007
  const o = { ...t.entries };
3982
4008
  for (const s of n) if (r.has(s)) delete o[s];
3983
4009
  else throw new Error(`Key ${s} not found in enum`);
3984
- return new et({
4010
+ return new tt({
3985
4011
  ...t,
3986
4012
  checks: [],
3987
4013
  ...g(i),
@@ -3991,15 +4017,15 @@ var et = /* @__PURE__ */ l("ZodEnum", (e, t) => {
3991
4017
  });
3992
4018
  function P(e, t) {
3993
4019
  const r = Array.isArray(e) ? Object.fromEntries(e.map((n) => [n, n])) : e;
3994
- return new et({
4020
+ return new tt({
3995
4021
  type: "enum",
3996
4022
  entries: r,
3997
4023
  ...g(t)
3998
4024
  });
3999
4025
  }
4000
- var yc = /* @__PURE__ */ l("ZodTransform", (e, t) => {
4001
- pt(), Fo.init(e, t), E.init(e, t), e._zod.processJSONSchema = (r, n, i) => ma(e, r, n, i), e._zod.parse = (r, n) => {
4002
- if (n.direction === "backward") throw new wr(e.constructor.name);
4026
+ var Oc = /* @__PURE__ */ l("ZodTransform", (e, t) => {
4027
+ mt(), Wo.init(e, t), $.init(e, t), e._zod.processJSONSchema = (r, n, i) => ba(e, r, n, i), e._zod.parse = (r, n) => {
4028
+ if (n.direction === "backward") throw new kr(e.constructor.name);
4003
4029
  r.addIssue = (o) => {
4004
4030
  if (typeof o == "string") r.issues.push(he(o, r.value, t));
4005
4031
  else {
@@ -4011,115 +4037,115 @@ var yc = /* @__PURE__ */ l("ZodTransform", (e, t) => {
4011
4037
  return i instanceof Promise ? i.then((o) => (r.value = o, r)) : (r.value = i, r);
4012
4038
  };
4013
4039
  });
4014
- function wc(e) {
4015
- return new yc({
4040
+ function zc(e) {
4041
+ return new Oc({
4016
4042
  type: "transform",
4017
4043
  transform: e
4018
4044
  });
4019
4045
  }
4020
- var rn = /* @__PURE__ */ l("ZodOptional", (e, t) => {
4021
- jr.init(e, t), E.init(e, t), e._zod.processJSONSchema = (r, n, i) => Xr(e, r, n, i), e.unwrap = () => e._zod.def.innerType;
4046
+ var nn = /* @__PURE__ */ l("ZodOptional", (e, t) => {
4047
+ xr.init(e, t), $.init(e, t), e._zod.processJSONSchema = (r, n, i) => Qr(e, r, n, i), e.unwrap = () => e._zod.def.innerType;
4022
4048
  });
4023
- function Xt(e) {
4024
- return new rn({
4049
+ function Qt(e) {
4050
+ return new nn({
4025
4051
  type: "optional",
4026
4052
  innerType: e
4027
4053
  });
4028
4054
  }
4029
- var nn = /* @__PURE__ */ l("ZodExactOptional", (e, t) => {
4030
- Bo.init(e, t), E.init(e, t), e._zod.processJSONSchema = (r, n, i) => Xr(e, r, n, i), e.unwrap = () => e._zod.def.innerType;
4055
+ var on = /* @__PURE__ */ l("ZodExactOptional", (e, t) => {
4056
+ Vo.init(e, t), $.init(e, t), e._zod.processJSONSchema = (r, n, i) => Qr(e, r, n, i), e.unwrap = () => e._zod.def.innerType;
4031
4057
  });
4032
- function kc(e) {
4033
- return new nn({
4058
+ function Sc(e) {
4059
+ return new on({
4034
4060
  type: "optional",
4035
4061
  innerType: e
4036
4062
  });
4037
4063
  }
4038
- var Oc = /* @__PURE__ */ l("ZodNullable", (e, t) => {
4039
- Jo.init(e, t), E.init(e, t), e._zod.processJSONSchema = (r, n, i) => ya(e, r, n, i), e.unwrap = () => e._zod.def.innerType;
4064
+ var $c = /* @__PURE__ */ l("ZodNullable", (e, t) => {
4065
+ Ko.init(e, t), $.init(e, t), e._zod.processJSONSchema = (r, n, i) => Oa(e, r, n, i), e.unwrap = () => e._zod.def.innerType;
4040
4066
  });
4041
- function Qt(e) {
4042
- return new Oc({
4067
+ function er(e) {
4068
+ return new $c({
4043
4069
  type: "nullable",
4044
4070
  innerType: e
4045
4071
  });
4046
4072
  }
4047
- var zc = /* @__PURE__ */ l("ZodDefault", (e, t) => {
4048
- Wo.init(e, t), E.init(e, t), e._zod.processJSONSchema = (r, n, i) => ka(e, r, n, i), e.unwrap = () => e._zod.def.innerType, e.removeDefault = e.unwrap;
4073
+ var Ec = /* @__PURE__ */ l("ZodDefault", (e, t) => {
4074
+ Ho.init(e, t), $.init(e, t), e._zod.processJSONSchema = (r, n, i) => Sa(e, r, n, i), e.unwrap = () => e._zod.def.innerType, e.removeDefault = e.unwrap;
4049
4075
  });
4050
- function Sc(e, t) {
4051
- return new zc({
4076
+ function Ic(e, t) {
4077
+ return new Ec({
4052
4078
  type: "default",
4053
4079
  innerType: e,
4054
4080
  get defaultValue() {
4055
- return typeof t == "function" ? t() : pr(t);
4081
+ return typeof t == "function" ? t() : mr(t);
4056
4082
  }
4057
4083
  });
4058
4084
  }
4059
- var Ec = /* @__PURE__ */ l("ZodPrefault", (e, t) => {
4060
- Vo.init(e, t), E.init(e, t), e._zod.processJSONSchema = (r, n, i) => Oa(e, r, n, i), e.unwrap = () => e._zod.def.innerType;
4085
+ var Ac = /* @__PURE__ */ l("ZodPrefault", (e, t) => {
4086
+ Go.init(e, t), $.init(e, t), e._zod.processJSONSchema = (r, n, i) => $a(e, r, n, i), e.unwrap = () => e._zod.def.innerType;
4061
4087
  });
4062
- function $c(e, t) {
4063
- return new Ec({
4088
+ function Tc(e, t) {
4089
+ return new Ac({
4064
4090
  type: "prefault",
4065
4091
  innerType: e,
4066
4092
  get defaultValue() {
4067
- return typeof t == "function" ? t() : pr(t);
4093
+ return typeof t == "function" ? t() : mr(t);
4068
4094
  }
4069
4095
  });
4070
4096
  }
4071
- var on = /* @__PURE__ */ l("ZodNonOptional", (e, t) => {
4072
- Ko.init(e, t), E.init(e, t), e._zod.processJSONSchema = (r, n, i) => wa(e, r, n, i), e.unwrap = () => e._zod.def.innerType;
4097
+ var sn = /* @__PURE__ */ l("ZodNonOptional", (e, t) => {
4098
+ qo.init(e, t), $.init(e, t), e._zod.processJSONSchema = (r, n, i) => za(e, r, n, i), e.unwrap = () => e._zod.def.innerType;
4073
4099
  });
4074
- function Ic(e, t) {
4075
- return new on({
4100
+ function Pc(e, t) {
4101
+ return new sn({
4076
4102
  type: "nonoptional",
4077
4103
  innerType: e,
4078
4104
  ...g(t)
4079
4105
  });
4080
4106
  }
4081
- var Ac = /* @__PURE__ */ l("ZodCatch", (e, t) => {
4082
- Ho.init(e, t), E.init(e, t), e._zod.processJSONSchema = (r, n, i) => za(e, r, n, i), e.unwrap = () => e._zod.def.innerType, e.removeCatch = e.unwrap;
4107
+ var Zc = /* @__PURE__ */ l("ZodCatch", (e, t) => {
4108
+ Yo.init(e, t), $.init(e, t), e._zod.processJSONSchema = (r, n, i) => Ea(e, r, n, i), e.unwrap = () => e._zod.def.innerType, e.removeCatch = e.unwrap;
4083
4109
  });
4084
- function Tc(e, t) {
4085
- return new Ac({
4110
+ function Cc(e, t) {
4111
+ return new Zc({
4086
4112
  type: "catch",
4087
4113
  innerType: e,
4088
- catchValue: typeof t == "function" ? t : Ln(t)
4114
+ catchValue: typeof t == "function" ? t : Un(t)
4089
4115
  });
4090
4116
  }
4091
- var Pc = /* @__PURE__ */ l("ZodPipe", (e, t) => {
4092
- Go.init(e, t), E.init(e, t), e._zod.processJSONSchema = (r, n, i) => Sa(e, r, n, i), e.in = t.in, e.out = t.out;
4117
+ var Rc = /* @__PURE__ */ l("ZodPipe", (e, t) => {
4118
+ Xo.init(e, t), $.init(e, t), e._zod.processJSONSchema = (r, n, i) => Ia(e, r, n, i), e.in = t.in, e.out = t.out;
4093
4119
  });
4094
- function er(e, t) {
4095
- return new Pc({
4120
+ function tr(e, t) {
4121
+ return new Rc({
4096
4122
  type: "pipe",
4097
4123
  in: e,
4098
4124
  out: t
4099
4125
  });
4100
4126
  }
4101
- var Zc = /* @__PURE__ */ l("ZodReadonly", (e, t) => {
4102
- qo.init(e, t), E.init(e, t), e._zod.processJSONSchema = (r, n, i) => Ea(e, r, n, i), e.unwrap = () => e._zod.def.innerType;
4127
+ var Nc = /* @__PURE__ */ l("ZodReadonly", (e, t) => {
4128
+ Qo.init(e, t), $.init(e, t), e._zod.processJSONSchema = (r, n, i) => Aa(e, r, n, i), e.unwrap = () => e._zod.def.innerType;
4103
4129
  });
4104
- function Cc(e) {
4105
- return new Zc({
4130
+ function jc(e) {
4131
+ return new Nc({
4106
4132
  type: "readonly",
4107
4133
  innerType: e
4108
4134
  });
4109
4135
  }
4110
- var sn = /* @__PURE__ */ l("ZodCustom", (e, t) => {
4111
- Yo.init(e, t), E.init(e, t), e._zod.processJSONSchema = (r, n, i) => pa(e, r, n, i);
4136
+ var an = /* @__PURE__ */ l("ZodCustom", (e, t) => {
4137
+ es.init(e, t), $.init(e, t), e._zod.processJSONSchema = (r, n, i) => va(e, r, n, i);
4112
4138
  });
4113
- function Rc(e, t) {
4114
- return /* @__PURE__ */ Xs(sn, e ?? (() => !0), t);
4139
+ function xc(e, t) {
4140
+ return /* @__PURE__ */ ta(an, e ?? (() => !0), t);
4115
4141
  }
4116
- function Nc(e, t = {}) {
4117
- return /* @__PURE__ */ Qs(sn, e, t);
4142
+ function Mc(e, t = {}) {
4143
+ return /* @__PURE__ */ ra(an, e, t);
4118
4144
  }
4119
- function jc(e, t) {
4120
- return /* @__PURE__ */ ea(e, t);
4145
+ function Dc(e, t) {
4146
+ return /* @__PURE__ */ na(e, t);
4121
4147
  }
4122
- var We = /^#[0-9a-fA-F]{6}$/, Ve = "Color must be a 6-digit hex code (e.g. '#3B82F6'). Short hex, rgb(), and named colors are not supported.", gt = R({
4148
+ var We = /^#[0-9a-fA-F]{6}$/, Ve = "Color must be a 6-digit hex code (e.g. '#3B82F6'). Short hex, rgb(), and named colors are not supported.", vt = R({
4123
4149
  primaryColor: k().max(20).regex(We, Ve).describe("Primary brand color (hex format, e.g., '#3B82F6')").optional(),
4124
4150
  backgroundColor: k().max(20).regex(We, Ve).describe("Background color for the widget container").optional(),
4125
4151
  textColor: k().max(20).regex(We, Ve).describe("Text color").optional(),
@@ -4130,29 +4156,29 @@ var We = /^#[0-9a-fA-F]{6}$/, Ve = "Color must be a 6-digit hex code (e.g. '#3B8
4130
4156
  "dark",
4131
4157
  "auto"
4132
4158
  ]).describe("Widget color scheme: 'light' (default), 'dark', or 'auto' (follows the visitor's prefers-color-scheme).").optional()
4133
- }), vu = P([
4159
+ }), yu = P([
4134
4160
  "mobile",
4135
4161
  "tablet",
4136
4162
  "desktop"
4137
- ]).describe("Viewport mode: mobile (<480px), tablet (480-768px), desktop (>768px)"), an = P([
4163
+ ]).describe("Viewport mode: mobile (<480px), tablet (480-768px), desktop (>768px)"), cn = P([
4138
4164
  "bottom-right",
4139
4165
  "bottom-left",
4140
4166
  "inline"
4141
- ]).describe("Widget position on the page"), xc = R({
4167
+ ]).describe("Widget position on the page"), Lc = R({
4142
4168
  mobile: Pe().min(0).max(1e3).describe("Max width for mobile viewport (default: 480)").optional(),
4143
4169
  tablet: Pe().min(0).max(2e3).describe("Max width for tablet viewport (default: 768)").optional()
4144
- }), Mc = R({
4170
+ }), Uc = R({
4145
4171
  enabled: F().describe("Enable responsive behavior (default: true)").optional(),
4146
- breakpoints: xc.describe("Custom breakpoint values").optional()
4172
+ breakpoints: Lc.describe("Custom breakpoint values").optional()
4147
4173
  });
4148
- var bu = R({
4149
- theme: gt.describe("Custom theme configuration").optional(),
4150
- position: an.describe("Widget position (default: 'bottom-right')").optional(),
4174
+ var wu = R({
4175
+ theme: vt.describe("Custom theme configuration").optional(),
4176
+ position: cn.describe("Widget position (default: 'bottom-right')").optional(),
4151
4177
  open: F().describe("Initial open state (default: false)").optional(),
4152
- container: tn([Rc((e) => e instanceof HTMLElement), k().max(200)]).describe("Container element for inline mode").optional(),
4178
+ container: rn([xc((e) => e instanceof HTMLElement), k().max(200)]).describe("Container element for inline mode").optional(),
4153
4179
  baseUrl: k().url().max(200).describe("Base URL for the widget embed (default: production URL)").optional(),
4154
4180
  debug: F().describe("Enable debug logging").optional(),
4155
- responsive: Mc.describe("Responsive behavior configuration").optional(),
4181
+ responsive: Uc.describe("Responsive behavior configuration").optional(),
4156
4182
  showProfile: F().describe("Force the profile panel visible in the widget header from the start of the conversation. The panel already shows on its own once the visitor's profile has data, regardless of this flag (default: false).").optional(),
4157
4183
  language: k().max(10).describe("Language for UI labels (e.g., 'fr', 'en'). Defaults to browser language.").optional(),
4158
4184
  apiKey: k().max(100).describe("Publishable API key (pk_*) for application authentication"),
@@ -4160,9 +4186,9 @@ var bu = R({
4160
4186
  userId: k().max(255).describe("Host-side unique user identifier").optional(),
4161
4187
  userHash: k().max(128).describe("HMAC-SHA256 of email (or userId), signed with identity secret").optional(),
4162
4188
  initialMessage: k().max(300).describe("Auto-sent first visitor message, injected once via postMessage when the widget is ready (e.g. a demo deep-link). Never carried on the iframe URL. The authoritative bound is enforced again at the embed's trust boundary (useEmbedChatHandlers' INIT handler), this schema is not the sole enforcement point.").optional()
4163
- }), Dc = R({
4164
- theme: gt.describe("Full visual theme palette applied by the widget. Admin-configured, no client-side override.").optional(),
4165
- position: an.describe("Default launcher position. `inline` only applies when integrator supplies `data-container`.").optional(),
4189
+ }), Fc = R({
4190
+ theme: vt.describe("Full visual theme palette applied by the widget. Admin-configured, no client-side override.").optional(),
4191
+ position: cn.describe("Default launcher position. `inline` only applies when integrator supplies `data-container`.").optional(),
4166
4192
  language: k().max(10).describe("Locale forced for widget UI labels (ISO 639-1). Falls back to browser language when null.").optional(),
4167
4193
  showProfile: F().describe("Forces the profile panel visible from the start of the conversation. The panel already shows on its own once the visitor's profile has data, regardless of this flag.").optional(),
4168
4194
  open: F().describe("Default open state on load. Host can still call `window.Gamaro.open()` programmatically.").optional(),
@@ -4170,12 +4196,12 @@ var bu = R({
4170
4196
  title: k().max(60).describe("Custom widget header title. Falls back to a vertical-specific default (e.g. 'Gamaro Chat' for B2B) when unset.").optional(),
4171
4197
  avatarUrl: k().url().max(2048).describe("Public URL of the custom widget avatar (PNG or JPEG). MUST originate from the branding-upload endpoint — arbitrary external URLs are rejected at the API boundary.").optional()
4172
4198
  }).strict().describe("White-label branding overrides (issue #1083 Piste 5). Both fields are optional.").optional()
4173
- }).strict(), Lc = R({
4199
+ }).strict(), Bc = R({
4174
4200
  applicationId: k().uuid().describe("Application UUID"),
4175
4201
  applicationSlug: k().max(100).describe("Application slug (kebab-case)"),
4176
4202
  applicationName: k().max(200).describe("Application display name"),
4177
- theme: gt.nullable().describe("Application theme"),
4178
- allowedOrigins: mt(k().max(200)).max(50).describe("Allowed origins for this application"),
4203
+ theme: vt.nullable().describe("Application theme"),
4204
+ allowedOrigins: gt(k().max(200)).max(50).describe("Allowed origins for this application"),
4179
4205
  monitoring: F().describe("Monitoring enabled flag"),
4180
4206
  primaryObjective: R({
4181
4207
  id: k().uuid(),
@@ -4184,11 +4210,11 @@ var bu = R({
4184
4210
  ctaLabel: k().nullable()
4185
4211
  }).nullable().describe("Primary conversion objective"),
4186
4212
  identityVerificationRequired: F().describe("Whether HMAC identity verification is required"),
4187
- widget: Dc.nullable().describe("Admin-configured widget runtime config (theme, position, language, showProfile, open). Null when the application has not yet persisted a widget_config JSONB.")
4188
- }), Uc = P(["user", "assistant"]).describe("Message sender role"), _u = R({
4189
- role: Uc.describe("Message sender role"),
4213
+ widget: Fc.nullable().describe("Admin-configured widget runtime config (theme, position, language, showProfile, open). Null when the application has not yet persisted a widget_config JSONB.")
4214
+ }), Jc = P(["user", "assistant"]).describe("Message sender role"), ku = R({
4215
+ role: Jc.describe("Message sender role"),
4190
4216
  content: k().max(1e4).describe("Message content (max 10000 characters)")
4191
- }), Fc = {
4217
+ }), Wc = {
4192
4218
  INIT: "gamaro:init",
4193
4219
  OPEN: "gamaro:open",
4194
4220
  CLOSE: "gamaro:close",
@@ -4208,68 +4234,68 @@ var bu = R({
4208
4234
  CTA_CLICKED: "gamaro:cta-clicked",
4209
4235
  LEAD_CAPTURED: "gamaro:lead-captured",
4210
4236
  IDENTITY_VERIFIED: "gamaro:identity-verified"
4211
- }, yu = R({
4237
+ }, Ou = R({
4212
4238
  reason: P(["timeout", "error"]).describe("Why the iframe load failed (timeout vs. transport error)"),
4213
4239
  attempts: Pe().int().min(1).describe("Total attempts made before giving up (e.g. 3 = 1 + 2 retries)")
4214
- }).describe("Payload emitted with the widget-unavailable SDK event (#867)"), Bc = P([
4240
+ }).describe("Payload emitted with the widget-unavailable SDK event (#867)"), Vc = P([
4215
4241
  "prospect",
4216
4242
  "partner",
4217
4243
  "unknown"
4218
- ]).describe("Type of user"), Jc = P([
4244
+ ]).describe("Type of user"), Kc = P([
4219
4245
  "ecommerce",
4220
4246
  "real-estate",
4221
4247
  "automotive",
4222
4248
  "travel",
4223
4249
  "recruitment",
4224
4250
  "other"
4225
- ]).describe("Business sector"), Wc = P([
4251
+ ]).describe("Business sector"), Hc = P([
4226
4252
  "startup",
4227
4253
  "pme",
4228
4254
  "eti",
4229
4255
  "grand-groupe"
4230
- ]).describe("Company size category"), Vc = P([
4256
+ ]).describe("Company size category"), Gc = P([
4231
4257
  "< 10k",
4232
4258
  "10k-50k",
4233
4259
  "50k-200k",
4234
4260
  "> 200k"
4235
- ]).describe("Monthly website traffic"), Kc = P([
4261
+ ]).describe("Monthly website traffic"), qc = P([
4236
4262
  "lead-qualification",
4237
4263
  "personalization",
4238
4264
  "cart-abandonment",
4239
4265
  "conversion",
4240
4266
  "other"
4241
- ]).describe("Business objective"), Hc = P([
4267
+ ]).describe("Business objective"), Yc = P([
4242
4268
  "shopify",
4243
4269
  "woocommerce",
4244
4270
  "prestashop",
4245
4271
  "custom",
4246
4272
  "none"
4247
- ]).describe("E-commerce platform"), Gc = P([
4273
+ ]).describe("E-commerce platform"), Xc = P([
4248
4274
  "immediate",
4249
4275
  "1-month",
4250
4276
  "3-months",
4251
4277
  "exploring"
4252
- ]).describe("Implementation timeline"), qc = P([
4278
+ ]).describe("Implementation timeline"), Qc = P([
4253
4279
  "< 500",
4254
4280
  "500-2000",
4255
4281
  "2000-5000",
4256
4282
  "> 5000"
4257
- ]).describe("Monthly budget range in EUR"), wu = R({
4258
- userType: Bc.optional().describe("User type: prospect, partner, or unknown"),
4259
- sector: Jc.optional().describe("Business sector"),
4260
- companySize: Wc.optional().describe("Company size range"),
4261
- monthlyTraffic: Vc.optional().describe("Monthly website traffic"),
4262
- objectives: mt(Kc).max(5).describe("List of business objectives (max 5)").optional(),
4263
- platform: Hc.optional().describe("E-commerce platform"),
4264
- timeline: Gc.optional().describe("Project timeline"),
4265
- budgetRange: qc.optional().describe("Monthly budget range")
4283
+ ]).describe("Monthly budget range in EUR"), zu = R({
4284
+ userType: Vc.optional().describe("User type: prospect, partner, or unknown"),
4285
+ sector: Kc.optional().describe("Business sector"),
4286
+ companySize: Hc.optional().describe("Company size range"),
4287
+ monthlyTraffic: Gc.optional().describe("Monthly website traffic"),
4288
+ objectives: gt(qc).max(5).describe("List of business objectives (max 5)").optional(),
4289
+ platform: Yc.optional().describe("E-commerce platform"),
4290
+ timeline: Xc.optional().describe("Project timeline"),
4291
+ budgetRange: Qc.optional().describe("Monthly budget range")
4266
4292
  }), Y = class extends Error {
4267
4293
  constructor(e, t) {
4268
4294
  super(e), this.code = t, this.name = "ConfigFetchError";
4269
4295
  }
4270
- }, tr = 1e4;
4271
- async function Yc(e, t, r) {
4272
- const n = t.endsWith("/") ? t : `${t}/`, i = new URL("api/application/config", n), o = new AbortController(), s = setTimeout(() => o.abort(), tr), a = r ? AbortSignal.any([o.signal, r]) : o.signal;
4296
+ }, rr = 1e4;
4297
+ async function eu(e, t, r) {
4298
+ const n = t.endsWith("/") ? t : `${t}/`, i = new URL("api/application/config", n), o = new AbortController(), s = setTimeout(() => o.abort(), rr), a = r ? AbortSignal.any([o.signal, r]) : o.signal;
4273
4299
  let c;
4274
4300
  try {
4275
4301
  c = await fetch(i.toString(), {
@@ -4277,22 +4303,22 @@ async function Yc(e, t, r) {
4277
4303
  headers: { "x-gamaro-key": e }
4278
4304
  });
4279
4305
  } catch (d) {
4280
- throw clearTimeout(s), r?.aborted ? new Y("Config fetch aborted by caller", "ABORTED") : d instanceof DOMException && d.name === "AbortError" ? new Y(`Config fetch timed out after ${tr}ms`, "TIMEOUT") : new Y(`Network error fetching application config: ${d instanceof Error ? d.message : String(d)}`, "NETWORK_ERROR");
4306
+ throw clearTimeout(s), r?.aborted ? new Y("Config fetch aborted by caller", "ABORTED") : d instanceof DOMException && d.name === "AbortError" ? new Y(`Config fetch timed out after ${rr}ms`, "TIMEOUT") : new Y(`Network error fetching application config: ${d instanceof Error ? d.message : String(d)}`, "NETWORK_ERROR");
4281
4307
  }
4282
4308
  if (clearTimeout(s), !c.ok) {
4283
4309
  const d = await c.text().catch(() => "");
4284
4310
  throw new Y(`HTTP ${c.status} fetching application config: ${d}`, `HTTP_${c.status}`);
4285
4311
  }
4286
- const u = await c.json(), f = Lc.safeParse(u);
4312
+ const u = await c.json(), f = Bc.safeParse(u);
4287
4313
  if (!f.success) throw new Y(`Invalid application config response: ${f.error.message}`, "PARSE_ERROR");
4288
4314
  return f.data;
4289
4315
  }
4290
- var Xc = [1e3, 3e3], X = class extends Error {
4316
+ var tu = [1e3, 3e3], X = class extends Error {
4291
4317
  constructor(e, t) {
4292
4318
  super(`Iframe load failed after ${t} attempt(s): ${e}`), this.reason = e, this.attempts = t, this.name = "IframeLoadError";
4293
4319
  }
4294
4320
  };
4295
- function Qc(e, t) {
4321
+ function ru(e, t) {
4296
4322
  return new Promise((r, n) => {
4297
4323
  if (t?.aborted) {
4298
4324
  n(new DOMException("Aborted", "AbortError"));
@@ -4306,7 +4332,7 @@ function Qc(e, t) {
4306
4332
  t?.addEventListener("abort", i, { once: !0 });
4307
4333
  });
4308
4334
  }
4309
- function eu(e, t) {
4335
+ function nu(e, t) {
4310
4336
  return new Promise((r, n) => {
4311
4337
  if (e.signal?.aborted) {
4312
4338
  n(new DOMException("Aborted", "AbortError"));
@@ -4326,7 +4352,7 @@ function eu(e, t) {
4326
4352
  }, d = () => {
4327
4353
  v(), n(new X("error", t + 1));
4328
4354
  }, h = (_) => {
4329
- _.source && (_.source && _.source !== i.contentWindow || cr(_.origin, e.allowedOrigins) && ur(_) && _.data.type === Fc.READY && (c = !0, b()));
4355
+ _.source && (_.source && _.source !== i.contentWindow || ur(_.origin, e.allowedOrigins) && lr(_) && _.data.type === Wc.READY && (c = !0, b()));
4330
4356
  }, p = () => {
4331
4357
  v(), n(new DOMException("Aborted", "AbortError"));
4332
4358
  }, i.addEventListener("load", f), i.addEventListener("error", d), window.addEventListener("message", h), e.signal?.addEventListener("abort", p, { once: !0 }), u = setTimeout(() => {
@@ -4338,15 +4364,15 @@ function eu(e, t) {
4338
4364
  e.container.appendChild(i);
4339
4365
  });
4340
4366
  }
4341
- async function tu(e) {
4342
- const t = e.backoffMs ?? Xc, r = t.length + 1;
4367
+ async function iu(e) {
4368
+ const t = e.backoffMs ?? tu, r = t.length + 1;
4343
4369
  for (let n = 0; n < r; n++) {
4344
4370
  e.onStateChange?.({
4345
4371
  kind: "loading",
4346
4372
  attempt: n
4347
4373
  });
4348
4374
  try {
4349
- const i = await eu(e, n);
4375
+ const i = await nu(e, n);
4350
4376
  return e.onStateChange?.({
4351
4377
  kind: "loaded",
4352
4378
  iframe: i
@@ -4365,20 +4391,20 @@ async function tu(e) {
4365
4391
  kind: "retrying",
4366
4392
  attempt: n + 1,
4367
4393
  reason: o
4368
- }), Se(`Iframe load attempt ${n + 1} ${o === "timeout" ? "timed out" : "errored"}, retrying in ${s}ms`), await Qc(s, e.signal);
4394
+ }), Se(`Iframe load attempt ${n + 1} ${o === "timeout" ? "timed out" : "errored"}, retrying in ${s}ms`), await ru(s, e.signal);
4369
4395
  }
4370
4396
  }
4371
4397
  throw new X("error", r);
4372
4398
  }
4373
- var ru = "0.1.0", _e = "https://gamaro.io/app", nu = [
4399
+ var ou = "0.1.0", _e = "https://gamaro.io/app", su = [
4374
4400
  1e3,
4375
4401
  2e3,
4376
4402
  3e3,
4377
4403
  4e3
4378
- ], iu = 0.3, ou = 0, su = {
4404
+ ], au = 0.3, cu = 0, uu = {
4379
4405
  mobile: 480,
4380
4406
  tablet: 768
4381
- }, rr = {
4407
+ }, nr = {
4382
4408
  mobile: {
4383
4409
  width: "100vw",
4384
4410
  height: "100vh"
@@ -4391,19 +4417,19 @@ var ru = "0.1.0", _e = "https://gamaro.io/app", nu = [
4391
4417
  width: "380px",
4392
4418
  height: "600px"
4393
4419
  }
4394
- }, au = 100, cu = {
4420
+ }, lu = 100, fu = {
4395
4421
  position: "fixed",
4396
4422
  zIndex: "999999",
4397
4423
  border: "none",
4398
4424
  overflow: "hidden"
4399
- }, ae = `${ar.slow}ms`, nr = `${ar.base}ms`, uu = [
4425
+ }, ae = `${cr.slow}ms`, ir = `${cr.base}ms`, du = [
4400
4426
  `width ${ae} ${K.emphasized}`,
4401
4427
  `height ${ae} ${K.emphasized}`,
4402
4428
  `border-radius ${ae} ${K.emphasized}`,
4403
4429
  `box-shadow ${ae} ${K.emphasized}`,
4404
4430
  `transform ${ae} ${K.emphasized}`
4405
- ].join(", "), lu = [`opacity ${nr} ${K.standard}`, `background ${nr} ${K.standard}`].join(", ");
4406
- function ir() {
4431
+ ].join(", "), hu = [`opacity ${ir} ${K.standard}`, `background ${ir} ${K.standard}`].join(", ");
4432
+ function or() {
4407
4433
  return typeof window < "u" && typeof window.matchMedia == "function" && window.matchMedia("(prefers-reduced-motion: reduce)").matches;
4408
4434
  }
4409
4435
  var ye = {
@@ -4415,23 +4441,23 @@ var ye = {
4415
4441
  bottom: "20px",
4416
4442
  left: "20px"
4417
4443
  }
4418
- }, fu = {
4444
+ }, pu = {
4419
4445
  width: "100%",
4420
4446
  height: "100%",
4421
4447
  border: "none",
4422
4448
  backgroundColor: "transparent"
4423
- }, du = class {
4449
+ }, mu = class {
4424
4450
  get applicationId() {
4425
4451
  return this._applicationId;
4426
4452
  }
4427
4453
  constructor(e) {
4428
- this.version = ru, this.iframe = null, this.container = null, this.skeletonButton = null, this.isOpen = !1, this.isReady = !1, this.isInitialized = !1, this.isDestroyed = !1, this.fetchAbortController = null, this.iframeLoadAbortController = null, this._applicationId = "", this.pendingCommands = [], this.eventHandlers = /* @__PURE__ */ new Map(), this.cleanupListener = null, this.currentViewportMode = "desktop", this.mobileMediaQuery = null, this.tabletMediaQuery = null, this.debounceTimer = null, this.viewportChangeHandler = null, this.originalConfig = { ...e }, this.config = {
4454
+ this.version = ou, this.iframe = null, this.container = null, this.skeletonButton = null, this.isOpen = !1, this.isReady = !1, this.isInitialized = !1, this.isDestroyed = !1, this.fetchAbortController = null, this.iframeLoadAbortController = null, this._applicationId = "", this.pendingCommands = [], this.eventHandlers = /* @__PURE__ */ new Map(), this.cleanupListener = null, this.currentViewportMode = "desktop", this.mobileMediaQuery = null, this.tabletMediaQuery = null, this.debounceTimer = null, this.viewportChangeHandler = null, this.originalConfig = { ...e }, this.config = {
4429
4455
  position: "bottom-right",
4430
4456
  open: !1,
4431
4457
  baseUrl: _e,
4432
4458
  debug: !1,
4433
4459
  ...e
4434
- }, this.instanceId = ++ou, this.debugLog = ln(this.config.debug ?? !1), this.renderSkeleton(), this.resolveConfig();
4460
+ }, this.instanceId = ++cu, this.debugLog = fn(this.config.debug ?? !1), this.renderSkeleton(), this.resolveConfig();
4435
4461
  }
4436
4462
  renderSkeleton() {
4437
4463
  this.config.position !== "inline" && (this.container = this.createContainer(), this.renderSkeletonInto(this.container), document.body.appendChild(this.container));
@@ -4446,7 +4472,7 @@ var ye = {
4446
4472
  "background: #9ca3af",
4447
4473
  "cursor: default",
4448
4474
  "opacity: 0.6",
4449
- `transition: ${ir() ? "none" : lu}`
4475
+ `transition: ${or() ? "none" : hu}`
4450
4476
  ].join(";"), e.appendChild(t), this.skeletonButton = t, t;
4451
4477
  }
4452
4478
  setSkeletonStateUnavailable() {
@@ -4455,12 +4481,12 @@ var ye = {
4455
4481
  resolveConfig() {
4456
4482
  const e = this.config.baseUrl ?? _e;
4457
4483
  this.fetchAbortController = new AbortController();
4458
- const t = (r) => Yc(this.config.apiKey, e, this.fetchAbortController?.signal).then((n) => this.applyServerConfig(n)).catch((n) => {
4484
+ const t = (r) => eu(this.config.apiKey, e, this.fetchAbortController?.signal).then((n) => this.applyServerConfig(n)).catch((n) => {
4459
4485
  const i = n instanceof Y ? n.code : "UNKNOWN_ERROR", o = n instanceof Error ? n.message : "Unknown config fetch error";
4460
4486
  if (i === "ABORTED" || this.isDestroyed) return;
4461
- const s = nu[r];
4487
+ const s = su[r];
4462
4488
  if (s !== void 0 && this.isTransientFetchError(i)) {
4463
- const a = s * (1 + (Math.random() * 2 - 1) * iu);
4489
+ const a = s * (1 + (Math.random() * 2 - 1) * au);
4464
4490
  return Se(`Config fetch failed transiently (${i}), retrying in ${Math.round(a)}ms`), new Promise((c) => setTimeout(() => {
4465
4491
  this.isDestroyed || c(t(r + 1));
4466
4492
  }, a));
@@ -4503,7 +4529,7 @@ var ye = {
4503
4529
  this.config.position !== "inline" && (e = this.renderSkeletonInto(this.container)), this.attachContainerToDom(), this.iframeLoadAbortController = new AbortController();
4504
4530
  let t;
4505
4531
  try {
4506
- t = await tu({
4532
+ t = await iu({
4507
4533
  buildIframe: () => this.createIframe(),
4508
4534
  container: this.container,
4509
4535
  allowedOrigins: [this.resolveReadyOrigin()],
@@ -4530,7 +4556,7 @@ var ye = {
4530
4556
  t.remove();
4531
4557
  return;
4532
4558
  }
4533
- this.iframe = t, e?.remove(), this.skeletonButton = null, this.isReady = !0, this.sendConfig(), this.emit("ready", void 0), this.cleanupListener = hn({
4559
+ this.iframe = t, e?.remove(), this.skeletonButton = null, this.isReady = !0, this.sendConfig(), this.emit("ready", void 0), this.cleanupListener = pn({
4534
4560
  onMessage: (r) => this.handleMessage(r),
4535
4561
  debug: this.config.debug,
4536
4562
  sourceWindow: this.iframe.contentWindow,
@@ -4560,7 +4586,7 @@ var ye = {
4560
4586
  boxShadow: "0 4px 20px rgba(0, 0, 0, 0.1)"
4561
4587
  });
4562
4588
  else {
4563
- Object.assign(e.style, cu);
4589
+ Object.assign(e.style, fu);
4564
4590
  const t = ye[this.config.position ?? "bottom-right"];
4565
4591
  Object.assign(e.style, t), e.style.width = "60px", e.style.height = "60px", e.style.borderRadius = "50%";
4566
4592
  }
@@ -4568,16 +4594,16 @@ var ye = {
4568
4594
  }
4569
4595
  createIframe() {
4570
4596
  const e = document.createElement("iframe");
4571
- return e.id = `gamaro-widget-iframe-${this.instanceId}`, e.src = this.buildIframeUrl(), e.setAttribute("title", "Gamaro Chat Widget"), e.setAttribute("allow", "clipboard-write; geolocation"), Object.assign(e.style, fu), e;
4597
+ return e.id = `gamaro-widget-iframe-${this.instanceId}`, e.src = this.buildIframeUrl(), e.setAttribute("title", "Gamaro Chat Widget"), e.setAttribute("allow", "clipboard-write; geolocation"), Object.assign(e.style, pu), e;
4572
4598
  }
4573
4599
  buildIframeUrl() {
4574
4600
  const e = this.config.baseUrl ?? _e, t = new URL("/app/widget/embed", e);
4575
- return this.config.theme && t.searchParams.set("theme", pn(this.config.theme)), this.config.position === "inline" && t.searchParams.set("mode", "inline"), this.config.open && t.searchParams.set("open", "true"), this.config.showProfile && t.searchParams.set("showProfile", "true"), this.config.language && t.searchParams.set("language", this.config.language), this.config.apiKey && t.searchParams.set("apiKey", this.config.apiKey), t.searchParams.set("hostOrigin", window.location.origin), t.toString();
4601
+ return this.config.theme && t.searchParams.set("theme", mn(this.config.theme)), this.config.position === "inline" && t.searchParams.set("mode", "inline"), this.config.open && t.searchParams.set("open", "true"), this.config.showProfile && t.searchParams.set("showProfile", "true"), this.config.language && t.searchParams.set("language", this.config.language), this.config.apiKey && t.searchParams.set("apiKey", this.config.apiKey), t.searchParams.set("hostOrigin", window.location.origin), t.toString();
4576
4602
  }
4577
4603
  setupViewportListener() {
4578
4604
  if (this.config.position === "inline" || this.config.responsive?.enabled === !1) return;
4579
4605
  const e = {
4580
- ...su,
4606
+ ...uu,
4581
4607
  ...this.config.responsive?.breakpoints
4582
4608
  };
4583
4609
  this.mobileMediaQuery = window.matchMedia(`(max-width: ${e.mobile}px)`), this.tabletMediaQuery = window.matchMedia(`(max-width: ${e.tablet}px)`), this.viewportChangeHandler = () => this.handleViewportChange(), this.mobileMediaQuery.addEventListener("change", this.viewportChangeHandler), this.tabletMediaQuery.addEventListener("change", this.viewportChangeHandler), this.currentViewportMode = this.getViewportMode(), this.log("Initial viewport mode:", this.currentViewportMode);
@@ -4589,18 +4615,18 @@ var ye = {
4589
4615
  type: "gamaro:viewport",
4590
4616
  mode: e
4591
4617
  }, this.resolveReadyOrigin()));
4592
- }, au);
4618
+ }, lu);
4593
4619
  }
4594
4620
  getViewportMode() {
4595
4621
  return this.mobileMediaQuery?.matches ? "mobile" : this.tabletMediaQuery?.matches ? "tablet" : "desktop";
4596
4622
  }
4597
4623
  applyContainerTransition() {
4598
- this.container && (this.container.style.transition = ir() ? "none" : uu);
4624
+ this.container && (this.container.style.transition = or() ? "none" : du);
4599
4625
  }
4600
4626
  updateContainerForViewport(e) {
4601
4627
  if (!this.container) return;
4602
4628
  this.applyContainerTransition();
4603
- const t = rr[e];
4629
+ const t = nr[e];
4604
4630
  if (e === "mobile") Object.assign(this.container.style, {
4605
4631
  width: t.width,
4606
4632
  height: t.height,
@@ -4715,7 +4741,7 @@ var ye = {
4715
4741
  if (this.applyContainerTransition(), this.isOpen) {
4716
4742
  if (this.config.responsive?.enabled !== !1) this.updateContainerForViewport(this.currentViewportMode);
4717
4743
  else {
4718
- const e = rr.desktop;
4744
+ const e = nr.desktop;
4719
4745
  this.container.style.width = e.width, this.container.style.height = e.height, this.container.style.borderRadius = "16px";
4720
4746
  }
4721
4747
  this.container.style.boxShadow = "0 10px 40px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05)";
@@ -4828,11 +4854,11 @@ var ye = {
4828
4854
  this.debugLog(e, ...r);
4829
4855
  }
4830
4856
  };
4831
- function hu(e) {
4832
- return new du(e);
4857
+ function gu(e) {
4858
+ return new mu(e);
4833
4859
  }
4834
- var tt = /* @__PURE__ */ new WeakSet();
4835
- function pu(e) {
4860
+ var rt = /* @__PURE__ */ new WeakSet();
4861
+ function vu(e) {
4836
4862
  const t = e.getAttribute("data-api-key") ?? void 0;
4837
4863
  if (!t)
4838
4864
  return ze("Missing required data-api-key attribute on script tag"), null;
@@ -4847,7 +4873,7 @@ function pu(e) {
4847
4873
  ...a && { userHash: a }
4848
4874
  };
4849
4875
  }
4850
- function mu() {
4876
+ function bu() {
4851
4877
  if (document.currentScript instanceof HTMLScriptElement) return document.currentScript;
4852
4878
  const e = document.querySelectorAll("script[src]");
4853
4879
  for (const t of e) {
@@ -4856,38 +4882,38 @@ function mu() {
4856
4882
  }
4857
4883
  return null;
4858
4884
  }
4859
- function or() {
4885
+ function sr() {
4860
4886
  const e = document.querySelectorAll("script[data-api-key]");
4861
4887
  if (e.length === 0) {
4862
- const t = mu();
4863
- t && t.hasAttribute("data-api-key") && !tt.has(t) && sr(t);
4888
+ const t = bu();
4889
+ t && t.hasAttribute("data-api-key") && !rt.has(t) && ar(t);
4864
4890
  return;
4865
4891
  }
4866
- for (const t of e) sr(t);
4892
+ for (const t of e) ar(t);
4867
4893
  }
4868
- function sr(e) {
4869
- if (tt.has(e)) return;
4870
- tt.add(e);
4871
- const t = pu(e);
4894
+ function ar(e) {
4895
+ if (rt.has(e)) return;
4896
+ rt.add(e);
4897
+ const t = vu(e);
4872
4898
  if (!t) return;
4873
- const r = hu(t);
4899
+ const r = gu(t);
4874
4900
  window.Gamaro || (window.Gamaro = r), window.GamaroApps || (window.GamaroApps = /* @__PURE__ */ new Map()), r.on("ready", () => {
4875
4901
  r.applicationId && window.GamaroApps && window.GamaroApps.set(r.applicationId, r);
4876
4902
  }), Se(`Widget v${r.version} initializing...`);
4877
4903
  }
4878
- typeof document < "u" && (document.readyState === "loading" ? document.addEventListener("DOMContentLoaded", or) : or());
4904
+ typeof document < "u" && (document.readyState === "loading" ? document.addEventListener("DOMContentLoaded", sr) : sr());
4879
4905
  export {
4880
4906
  Y as ConfigFetchError,
4881
- du as GamaroWidget,
4882
- or as __autoInit,
4883
- mu as __getCurrentScript,
4884
- pu as __parseScriptAttributes,
4885
- Lc as applicationConfigResponseSchema,
4886
- wu as b2bProfileSchema,
4887
- hu as createWidget,
4888
- Yc as fetchApplicationConfig,
4889
- gt as themeConfigSchema,
4890
- bu as widgetConfigSchema,
4891
- _u as widgetMessageSchema,
4892
- an as widgetPositionSchema
4907
+ mu as GamaroWidget,
4908
+ sr as __autoInit,
4909
+ bu as __getCurrentScript,
4910
+ vu as __parseScriptAttributes,
4911
+ Bc as applicationConfigResponseSchema,
4912
+ zu as b2bProfileSchema,
4913
+ gu as createWidget,
4914
+ eu as fetchApplicationConfig,
4915
+ vt as themeConfigSchema,
4916
+ wu as widgetConfigSchema,
4917
+ ku as widgetMessageSchema,
4918
+ cn as widgetPositionSchema
4893
4919
  };