@coffer-org/web 1.2.4 → 1.3.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.
Files changed (82) hide show
  1. package/dist/assets/ExtendReasonInfo--21FkkoL.js +1 -0
  2. package/dist/assets/GeoMap-BQkjLI1p.js +1 -0
  3. package/dist/assets/MarkdownEditor-DojqYLfa.js +1059 -0
  4. package/dist/assets/NewRecordView-d9dzfC7R.js +1 -0
  5. package/dist/assets/NoMac-BhpqH06Q.js +1 -0
  6. package/dist/assets/PageBody-DXEdPT8C.js +1 -0
  7. package/dist/assets/PluginSettingsPage-BzNvTqpx.js +1 -0
  8. package/dist/assets/ScanSummary-CmBQJkl4.js +1 -0
  9. package/dist/assets/SettingsForm-Bhsv5BEu.js +1 -0
  10. package/dist/assets/SettingsPage-Dxv3eZrP.js +1 -0
  11. package/dist/assets/Toolbar-CXro4MxC.js +1 -0
  12. package/dist/assets/api-gSu-mjEH.js +1 -0
  13. package/dist/assets/auth-context-BLh4J0hg.js +1 -0
  14. package/dist/assets/button-CbB4uqRh.js +5 -0
  15. package/dist/assets/chunk-6CSD65Y2-FavEEIOj.js +3 -0
  16. package/dist/assets/chunk-QTnfLwEv.js +1 -0
  17. package/dist/assets/clsx-CjYvs854.js +1 -0
  18. package/dist/assets/color-names-CKKZbleV.js +1 -0
  19. package/dist/assets/countries-BSm8PNWW.js +1 -0
  20. package/dist/assets/data-size-D-ZPRlPP.js +1 -0
  21. package/dist/assets/development-C9_TDKdP.js +1 -0
  22. package/dist/assets/dist-C-RcoeMS.js +1 -0
  23. package/dist/assets/dist-CdBkAqXL.js +1 -0
  24. package/dist/assets/dist-iFwZyFpC.js +1 -0
  25. package/dist/assets/esm-Bpmih92m.js +24 -0
  26. package/dist/assets/esm-C4bBicMr.js +1 -0
  27. package/dist/assets/esm-YFvMvTG9.css +1 -0
  28. package/dist/assets/extend-DLMSdMhy.js +1 -0
  29. package/dist/assets/field-frame-BY_3TvHn.js +1 -0
  30. package/dist/assets/fields-DVMUyXbG.js +64 -0
  31. package/dist/assets/floating-ui.dom-CRUx2QLQ.js +1 -0
  32. package/dist/assets/index-BWdgp_qe.js +318 -0
  33. package/dist/assets/index-Bkh3f49V.css +2 -0
  34. package/dist/assets/json-Dm-WBmNs.js +41 -0
  35. package/dist/assets/jsx-dev-runtime-BMBl2lag.js +6 -0
  36. package/dist/assets/jsx-runtime-DV9KAPzc.js +6 -0
  37. package/dist/assets/lib-CMoTMQza.js +1 -0
  38. package/dist/assets/lib-lakrpPuj.js +1 -0
  39. package/dist/assets/micromark-extension-gfm-BCNbxHdH.js +3 -0
  40. package/dist/assets/module-DytlXfXo.js +1 -0
  41. package/dist/assets/objectWithoutPropertiesLoose-DBYSo7QU.js +1 -0
  42. package/dist/assets/plugin-b0fDTTXJ.js +1 -0
  43. package/dist/assets/react-D4J6PwTK.js +13 -0
  44. package/dist/assets/settings-Dfvzj6n2.js +1 -0
  45. package/dist/assets/shared-QzShdLB7.js +1 -0
  46. package/dist/assets/src-29EVe5AR.js +4 -0
  47. package/dist/assets/src-791s3ufb.js +1 -0
  48. package/dist/assets/src-7ex3j1NP.js +1 -0
  49. package/dist/assets/src-B8iacye4.js +1 -0
  50. package/dist/assets/src-BiPG5Wj0.js +1 -0
  51. package/dist/assets/src-BljX5hzg.js +1 -0
  52. package/dist/assets/src-C-Dv1uXg.js +1 -0
  53. package/dist/assets/src-C2Pe7TE7.js +1 -0
  54. package/dist/assets/src-CEDC2fUY.js +2 -0
  55. package/dist/assets/src-CLRRfAdi2.js +1 -0
  56. package/dist/assets/src-CSA8Ms7c.js +1 -0
  57. package/dist/assets/src-CVUcsaPt.js +1 -0
  58. package/dist/assets/src-CXN5nPkW.js +1 -0
  59. package/dist/assets/src-CsYFDJmY.js +1 -0
  60. package/dist/assets/src-CuLO2WBn2.js +1 -0
  61. package/dist/assets/src-D6UndSMF.js +1 -0
  62. package/dist/assets/src-D8ptIyqZ.js +1 -0
  63. package/dist/assets/src-DLcSAptE.js +1 -0
  64. package/dist/assets/src-DW-wOHmI.js +1 -0
  65. package/dist/assets/src-DiUhYfl4.js +1 -0
  66. package/dist/assets/src-Do7Z4dhu.js +4 -0
  67. package/dist/assets/src-YMuIAAH1.js +1 -0
  68. package/dist/assets/src-pd92-ym6.js +1 -0
  69. package/dist/assets/src-zakS1nJb.js +7 -0
  70. package/dist/assets/ui-Bl7rNE-K.js +2 -0
  71. package/dist/index.html +30 -4
  72. package/dist-vendor/web-sdk.js +1070 -1036
  73. package/package.json +2 -2
  74. package/dist/assets/GeoMap-DLVKadTs.js +0 -1
  75. package/dist/assets/MarkdownEditor-BnlH5uW-.js +0 -1052
  76. package/dist/assets/index-CU234TqI.css +0 -1
  77. package/dist/assets/index-Cn4XUIR5.js +0 -205
  78. package/dist/assets/jsx-runtime-n5LQ9ujS.js +0 -1
  79. package/dist/assets/micromark-extension-gfm-B-iJ66UA.js +0 -4
  80. /package/dist/assets/{dist-DBnWo8ZP.js → dist-DBnWo8ZP2.js} +0 -0
  81. /package/dist/assets/{dist-DchZ6_p1.js → dist-DchZ6_p12.js} +0 -0
  82. /package/dist/assets/{dist-IN8WN7NI.js → dist-IN8WN7NI2.js} +0 -0
@@ -297,17 +297,17 @@ function be(e, t) {
297
297
  return (n = t).path ?? (n.path = []), t.path.unshift(e), t;
298
298
  });
299
299
  }
300
- function xe(e) {
300
+ function x(e) {
301
301
  return typeof e == "string" ? e : e?.message;
302
302
  }
303
- function x(e, t, n) {
304
- let r = e.message ? e.message : xe(e.inst?._zod.def?.error?.(e)) ?? xe(t?.error?.(e)) ?? xe(n.customError?.(e)) ?? xe(n.localeError?.(e)) ?? "Invalid input", { inst: i, continue: a, input: o, ...s } = e;
303
+ function S(e, t, n) {
304
+ let r = e.message ? e.message : x(e.inst?._zod.def?.error?.(e)) ?? x(t?.error?.(e)) ?? x(n.customError?.(e)) ?? x(n.localeError?.(e)) ?? "Invalid input", { inst: i, continue: a, input: o, ...s } = e;
305
305
  return s.path ??= [], s.message = r, t?.reportInput && (s.input = o), s;
306
306
  }
307
- function Se(e) {
307
+ function xe(e) {
308
308
  return Array.isArray(e) ? "array" : typeof e == "string" ? "string" : "unknown";
309
309
  }
310
- function S(...e) {
310
+ function C(...e) {
311
311
  let [t, n, r] = e;
312
312
  return typeof t == "string" ? {
313
313
  message: t,
@@ -318,7 +318,7 @@ function S(...e) {
318
318
  }
319
319
  //#endregion
320
320
  //#region ../../node_modules/zod/v4/core/errors.js
321
- var Ce = (e, t) => {
321
+ var Se = (e, t) => {
322
322
  e.name = "$ZodError", Object.defineProperty(e, "_zod", {
323
323
  value: e._zod,
324
324
  enumerable: !1
@@ -329,8 +329,8 @@ var Ce = (e, t) => {
329
329
  value: () => e.message,
330
330
  enumerable: !1
331
331
  });
332
- }, we = i("$ZodError", Ce), Te = i("$ZodError", Ce, { Parent: Error });
333
- function Ee(e, t = (e) => e.message) {
332
+ }, Ce = i("$ZodError", Se), we = i("$ZodError", Se, { Parent: Error });
333
+ function Te(e, t = (e) => e.message) {
334
334
  let n = {}, r = [];
335
335
  for (let i of e.issues) i.path.length > 0 ? (n[i.path[0]] = n[i.path[0]] || [], n[i.path[0]].push(t(i))) : r.push(t(i));
336
336
  return {
@@ -338,7 +338,7 @@ function Ee(e, t = (e) => e.message) {
338
338
  fieldErrors: n
339
339
  };
340
340
  }
341
- function De(e, t = (e) => e.message) {
341
+ function Ee(e, t = (e) => e.message) {
342
342
  let n = { _errors: [] }, r = (e, i = []) => {
343
343
  for (let a of e.issues) if (a.code === "invalid_union" && a.errors.length) a.errors.map((e) => r({ issues: e }, [...i, ...a.path]));
344
344
  else if (a.code === "invalid_key") r({ issues: a.issues }, [...i, ...a.path]);
@@ -359,7 +359,7 @@ function De(e, t = (e) => e.message) {
359
359
  }
360
360
  //#endregion
361
361
  //#region ../../node_modules/zod/v4/core/parse.js
362
- var Oe = (e) => (t, n, r, i) => {
362
+ var De = (e) => (t, n, r, i) => {
363
363
  let o = r ? {
364
364
  ...r,
365
365
  async: !1
@@ -369,11 +369,11 @@ var Oe = (e) => (t, n, r, i) => {
369
369
  }, o);
370
370
  if (s instanceof Promise) throw new a();
371
371
  if (s.issues.length) {
372
- let t = new (i?.Err ?? e)(s.issues.map((e) => x(e, o, c())));
372
+ let t = new (i?.Err ?? e)(s.issues.map((e) => S(e, o, c())));
373
373
  throw ie(t, i?.callee), t;
374
374
  }
375
375
  return s.value;
376
- }, ke = (e) => async (t, n, r, i) => {
376
+ }, Oe = (e) => async (t, n, r, i) => {
377
377
  let a = r ? {
378
378
  ...r,
379
379
  async: !0
@@ -382,11 +382,11 @@ var Oe = (e) => (t, n, r, i) => {
382
382
  issues: []
383
383
  }, a);
384
384
  if (o instanceof Promise && (o = await o), o.issues.length) {
385
- let t = new (i?.Err ?? e)(o.issues.map((e) => x(e, a, c())));
385
+ let t = new (i?.Err ?? e)(o.issues.map((e) => S(e, a, c())));
386
386
  throw ie(t, i?.callee), t;
387
387
  }
388
388
  return o.value;
389
- }, Ae = (e) => (t, n, r) => {
389
+ }, w = (e) => (t, n, r) => {
390
390
  let i = r ? {
391
391
  ...r,
392
392
  async: !1
@@ -397,12 +397,12 @@ var Oe = (e) => (t, n, r, i) => {
397
397
  if (o instanceof Promise) throw new a();
398
398
  return o.issues.length ? {
399
399
  success: !1,
400
- error: new (e ?? we)(o.issues.map((e) => x(e, i, c())))
400
+ error: new (e ?? Ce)(o.issues.map((e) => S(e, i, c())))
401
401
  } : {
402
402
  success: !0,
403
403
  data: o.value
404
404
  };
405
- }, je = /* @__PURE__*/ Ae(Te), Me = (e) => async (t, n, r) => {
405
+ }, ke = /* @__PURE__*/ w(we), T = (e) => async (t, n, r) => {
406
406
  let i = r ? {
407
407
  ...r,
408
408
  async: !0
@@ -412,66 +412,66 @@ var Oe = (e) => (t, n, r, i) => {
412
412
  }, i);
413
413
  return a instanceof Promise && (a = await a), a.issues.length ? {
414
414
  success: !1,
415
- error: new e(a.issues.map((e) => x(e, i, c())))
415
+ error: new e(a.issues.map((e) => S(e, i, c())))
416
416
  } : {
417
417
  success: !0,
418
418
  data: a.value
419
419
  };
420
- }, Ne = /* @__PURE__*/ Me(Te), Pe = (e) => (t, n, r) => {
420
+ }, Ae = /* @__PURE__*/ T(we), je = (e) => (t, n, r) => {
421
421
  let i = r ? {
422
422
  ...r,
423
423
  direction: "backward"
424
424
  } : { direction: "backward" };
425
- return Oe(e)(t, n, i);
426
- }, Fe = (e) => (t, n, r) => Oe(e)(t, n, r), Ie = (e) => async (t, n, r) => {
425
+ return De(e)(t, n, i);
426
+ }, Me = (e) => (t, n, r) => De(e)(t, n, r), Ne = (e) => async (t, n, r) => {
427
427
  let i = r ? {
428
428
  ...r,
429
429
  direction: "backward"
430
430
  } : { direction: "backward" };
431
- return ke(e)(t, n, i);
432
- }, Le = (e) => async (t, n, r) => ke(e)(t, n, r), Re = (e) => (t, n, r) => {
431
+ return Oe(e)(t, n, i);
432
+ }, Pe = (e) => async (t, n, r) => Oe(e)(t, n, r), Fe = (e) => (t, n, r) => {
433
433
  let i = r ? {
434
434
  ...r,
435
435
  direction: "backward"
436
436
  } : { direction: "backward" };
437
- return Ae(e)(t, n, i);
438
- }, ze = (e) => (t, n, r) => Ae(e)(t, n, r), Be = (e) => async (t, n, r) => {
437
+ return w(e)(t, n, i);
438
+ }, Ie = (e) => (t, n, r) => w(e)(t, n, r), Le = (e) => async (t, n, r) => {
439
439
  let i = r ? {
440
440
  ...r,
441
441
  direction: "backward"
442
442
  } : { direction: "backward" };
443
- return Me(e)(t, n, i);
444
- }, Ve = (e) => async (t, n, r) => Me(e)(t, n, r), He = /^[cC][0-9a-z]{6,}$/, Ue = /^[0-9a-z]+$/, We = /^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/, Ge = /^[0-9a-vA-V]{20}$/, Ke = /^[A-Za-z0-9]{27}$/, qe = /^[a-zA-Z0-9_-]{21}$/, Je = /^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/, Ye = /^([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})$/, Xe = (e) => e ? 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)$/, Ze = /^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/, Qe = "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";
445
- function $e() {
446
- return new RegExp(Qe, "u");
443
+ return T(e)(t, n, i);
444
+ }, Re = (e) => async (t, n, r) => T(e)(t, n, r), ze = /^[cC][0-9a-z]{6,}$/, Be = /^[0-9a-z]+$/, Ve = /^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/, He = /^[0-9a-vA-V]{20}$/, Ue = /^[A-Za-z0-9]{27}$/, We = /^[a-zA-Z0-9_-]{21}$/, Ge = /^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/, Ke = /^([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})$/, qe = (e) => e ? 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)$/, Je = /^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/, Ye = "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";
445
+ function Xe() {
446
+ return new RegExp(Ye, "u");
447
447
  }
448
- var et = /^(?:(?: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])$/, tt = /^(([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}|:))$/, nt = /^((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])$/, rt = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/, it = /^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/, at = /^[A-Za-z0-9_-]*$/, ot = /^https?$/, st = /^\+[1-9]\d{6,14}$/, ct = "(?:(?:\\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])))", lt = /*@__PURE__*/ RegExp(`^${ct}$`);
449
- function ut(e) {
448
+ var Ze = /^(?:(?: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])$/, Qe = /^(([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}|:))$/, $e = /^((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])$/, et = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/, tt = /^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/, nt = /^[A-Za-z0-9_-]*$/, rt = /^https?$/, it = /^\+[1-9]\d{6,14}$/, at = "(?:(?:\\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])))", ot = /*@__PURE__*/ RegExp(`^${at}$`);
449
+ function st(e) {
450
450
  let t = "(?:[01]\\d|2[0-3]):[0-5]\\d";
451
451
  return typeof e.precision == "number" ? e.precision === -1 ? `${t}` : e.precision === 0 ? `${t}:[0-5]\\d` : `${t}:[0-5]\\d\\.\\d{${e.precision}}` : `${t}(?::[0-5]\\d(?:\\.\\d+)?)?`;
452
452
  }
453
- function dt(e) {
454
- return RegExp(`^${ut(e)}$`);
453
+ function ct(e) {
454
+ return RegExp(`^${st(e)}$`);
455
455
  }
456
- function ft(e) {
457
- let t = ut({ precision: e.precision }), n = ["Z"];
456
+ function lt(e) {
457
+ let t = st({ precision: e.precision }), n = ["Z"];
458
458
  e.local && n.push(""), e.offset && n.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");
459
459
  let r = `${t}(?:${n.join("|")})`;
460
- return RegExp(`^${ct}T(?:${r})$`);
460
+ return RegExp(`^${at}T(?:${r})$`);
461
461
  }
462
- var pt = (e) => {
462
+ var ut = (e) => {
463
463
  let t = e ? `[\\s\\S]{${e?.minimum ?? 0},${e?.maximum ?? ""}}` : "[\\s\\S]*";
464
464
  return RegExp(`^${t}$`);
465
- }, mt = /^-?\d+$/, ht = /^-?\d+(?:\.\d+)?$/, gt = /^(?:true|false)$/i, _t = /^[^A-Z]*$/, vt = /^[^a-z]*$/, C = /*@__PURE__*/ i("$ZodCheck", (e, t) => {
465
+ }, dt = /^-?\d+$/, ft = /^-?\d+(?:\.\d+)?$/, pt = /^(?:true|false)$/i, mt = /^[^A-Z]*$/, ht = /^[^a-z]*$/, E = /*@__PURE__*/ i("$ZodCheck", (e, t) => {
466
466
  var n;
467
467
  e._zod ??= {}, e._zod.def = t, (n = e._zod).onattach ?? (n.onattach = []);
468
- }), yt = {
468
+ }), gt = {
469
469
  number: "number",
470
470
  bigint: "bigint",
471
471
  object: "date"
472
- }, bt = /*@__PURE__*/ i("$ZodCheckLessThan", (e, t) => {
473
- C.init(e, t);
474
- let n = yt[typeof t.value];
472
+ }, _t = /*@__PURE__*/ i("$ZodCheckLessThan", (e, t) => {
473
+ E.init(e, t);
474
+ let n = gt[typeof t.value];
475
475
  e._zod.onattach.push((e) => {
476
476
  let n = e._zod.bag, r = (t.inclusive ? n.maximum : n.exclusiveMaximum) ?? Infinity;
477
477
  t.value < r && (t.inclusive ? n.maximum = t.value : n.exclusiveMaximum = t.value);
@@ -486,9 +486,9 @@ var pt = (e) => {
486
486
  continue: !t.abort
487
487
  });
488
488
  };
489
- }), xt = /*@__PURE__*/ i("$ZodCheckGreaterThan", (e, t) => {
490
- C.init(e, t);
491
- let n = yt[typeof t.value];
489
+ }), vt = /*@__PURE__*/ i("$ZodCheckGreaterThan", (e, t) => {
490
+ E.init(e, t);
491
+ let n = gt[typeof t.value];
492
492
  e._zod.onattach.push((e) => {
493
493
  let n = e._zod.bag, r = (t.inclusive ? n.minimum : n.exclusiveMinimum) ?? -Infinity;
494
494
  t.value > r && (t.inclusive ? n.minimum = t.value : n.exclusiveMinimum = t.value);
@@ -503,8 +503,8 @@ var pt = (e) => {
503
503
  continue: !t.abort
504
504
  });
505
505
  };
506
- }), St = /*@__PURE__*/ i("$ZodCheckMultipleOf", (e, t) => {
507
- C.init(e, t), e._zod.onattach.push((e) => {
506
+ }), yt = /*@__PURE__*/ i("$ZodCheckMultipleOf", (e, t) => {
507
+ E.init(e, t), e._zod.onattach.push((e) => {
508
508
  var n;
509
509
  (n = e._zod.bag).multipleOf ?? (n.multipleOf = t.value);
510
510
  }), e._zod.check = (n) => {
@@ -518,12 +518,12 @@ var pt = (e) => {
518
518
  continue: !t.abort
519
519
  });
520
520
  };
521
- }), Ct = /*@__PURE__*/ i("$ZodCheckNumberFormat", (e, t) => {
522
- C.init(e, t), t.format = t.format || "float64";
521
+ }), bt = /*@__PURE__*/ i("$ZodCheckNumberFormat", (e, t) => {
522
+ E.init(e, t), t.format = t.format || "float64";
523
523
  let n = t.format?.includes("int"), r = n ? "int" : "number", [i, a] = de[t.format];
524
524
  e._zod.onattach.push((e) => {
525
525
  let r = e._zod.bag;
526
- r.format = t.format, r.minimum = i, r.maximum = a, n && (r.pattern = mt);
526
+ r.format = t.format, r.minimum = i, r.maximum = a, n && (r.pattern = dt);
527
527
  }), e._zod.check = (o) => {
528
528
  let s = o.value;
529
529
  if (n) {
@@ -579,9 +579,9 @@ var pt = (e) => {
579
579
  continue: !t.abort
580
580
  });
581
581
  };
582
- }), wt = /*@__PURE__*/ i("$ZodCheckMaxLength", (e, t) => {
582
+ }), xt = /*@__PURE__*/ i("$ZodCheckMaxLength", (e, t) => {
583
583
  var n;
584
- C.init(e, t), (n = e._zod.def).when ?? (n.when = (e) => {
584
+ E.init(e, t), (n = e._zod.def).when ?? (n.when = (e) => {
585
585
  let t = e.value;
586
586
  return !f(t) && t.length !== void 0;
587
587
  }), e._zod.onattach.push((e) => {
@@ -590,7 +590,7 @@ var pt = (e) => {
590
590
  }), e._zod.check = (n) => {
591
591
  let r = n.value;
592
592
  if (r.length <= t.maximum) return;
593
- let i = Se(r);
593
+ let i = xe(r);
594
594
  n.issues.push({
595
595
  origin: i,
596
596
  code: "too_big",
@@ -601,9 +601,9 @@ var pt = (e) => {
601
601
  continue: !t.abort
602
602
  });
603
603
  };
604
- }), Tt = /*@__PURE__*/ i("$ZodCheckMinLength", (e, t) => {
604
+ }), St = /*@__PURE__*/ i("$ZodCheckMinLength", (e, t) => {
605
605
  var n;
606
- C.init(e, t), (n = e._zod.def).when ?? (n.when = (e) => {
606
+ E.init(e, t), (n = e._zod.def).when ?? (n.when = (e) => {
607
607
  let t = e.value;
608
608
  return !f(t) && t.length !== void 0;
609
609
  }), e._zod.onattach.push((e) => {
@@ -612,7 +612,7 @@ var pt = (e) => {
612
612
  }), e._zod.check = (n) => {
613
613
  let r = n.value;
614
614
  if (r.length >= t.minimum) return;
615
- let i = Se(r);
615
+ let i = xe(r);
616
616
  n.issues.push({
617
617
  origin: i,
618
618
  code: "too_small",
@@ -623,9 +623,9 @@ var pt = (e) => {
623
623
  continue: !t.abort
624
624
  });
625
625
  };
626
- }), Et = /*@__PURE__*/ i("$ZodCheckLengthEquals", (e, t) => {
626
+ }), Ct = /*@__PURE__*/ i("$ZodCheckLengthEquals", (e, t) => {
627
627
  var n;
628
- C.init(e, t), (n = e._zod.def).when ?? (n.when = (e) => {
628
+ E.init(e, t), (n = e._zod.def).when ?? (n.when = (e) => {
629
629
  let t = e.value;
630
630
  return !f(t) && t.length !== void 0;
631
631
  }), e._zod.onattach.push((e) => {
@@ -634,7 +634,7 @@ var pt = (e) => {
634
634
  }), e._zod.check = (n) => {
635
635
  let r = n.value, i = r.length;
636
636
  if (i === t.length) return;
637
- let a = Se(r), o = i > t.length;
637
+ let a = xe(r), o = i > t.length;
638
638
  n.issues.push({
639
639
  origin: a,
640
640
  ...o ? {
@@ -651,9 +651,9 @@ var pt = (e) => {
651
651
  continue: !t.abort
652
652
  });
653
653
  };
654
- }), w = /*@__PURE__*/ i("$ZodCheckStringFormat", (e, t) => {
654
+ }), wt = /*@__PURE__*/ i("$ZodCheckStringFormat", (e, t) => {
655
655
  var n, r;
656
- C.init(e, t), e._zod.onattach.push((e) => {
656
+ E.init(e, t), e._zod.onattach.push((e) => {
657
657
  let n = e._zod.bag;
658
658
  n.format = t.format, t.pattern && (n.patterns ??= /* @__PURE__ */ new Set(), n.patterns.add(t.pattern));
659
659
  }), t.pattern ? (n = e._zod).check ?? (n.check = (n) => {
@@ -667,8 +667,8 @@ var pt = (e) => {
667
667
  continue: !t.abort
668
668
  });
669
669
  }) : (r = e._zod).check ?? (r.check = () => {});
670
- }), Dt = /*@__PURE__*/ i("$ZodCheckRegex", (e, t) => {
671
- w.init(e, t), e._zod.check = (n) => {
670
+ }), Tt = /*@__PURE__*/ i("$ZodCheckRegex", (e, t) => {
671
+ wt.init(e, t), e._zod.check = (n) => {
672
672
  t.pattern.lastIndex = 0, !t.pattern.test(n.value) && n.issues.push({
673
673
  origin: "string",
674
674
  code: "invalid_format",
@@ -679,12 +679,12 @@ var pt = (e) => {
679
679
  continue: !t.abort
680
680
  });
681
681
  };
682
- }), Ot = /*@__PURE__*/ i("$ZodCheckLowerCase", (e, t) => {
683
- t.pattern ??= _t, w.init(e, t);
684
- }), kt = /*@__PURE__*/ i("$ZodCheckUpperCase", (e, t) => {
685
- t.pattern ??= vt, w.init(e, t);
686
- }), At = /*@__PURE__*/ i("$ZodCheckIncludes", (e, t) => {
687
- C.init(e, t);
682
+ }), Et = /*@__PURE__*/ i("$ZodCheckLowerCase", (e, t) => {
683
+ t.pattern ??= mt, wt.init(e, t);
684
+ }), Dt = /*@__PURE__*/ i("$ZodCheckUpperCase", (e, t) => {
685
+ t.pattern ??= ht, wt.init(e, t);
686
+ }), Ot = /*@__PURE__*/ i("$ZodCheckIncludes", (e, t) => {
687
+ E.init(e, t);
688
688
  let n = le(t.includes), r = new RegExp(typeof t.position == "number" ? `^.{${t.position}}${n}` : n);
689
689
  t.pattern = r, e._zod.onattach.push((e) => {
690
690
  let t = e._zod.bag;
@@ -700,8 +700,8 @@ var pt = (e) => {
700
700
  continue: !t.abort
701
701
  });
702
702
  };
703
- }), jt = /*@__PURE__*/ i("$ZodCheckStartsWith", (e, t) => {
704
- C.init(e, t);
703
+ }), kt = /*@__PURE__*/ i("$ZodCheckStartsWith", (e, t) => {
704
+ E.init(e, t);
705
705
  let n = RegExp(`^${le(t.prefix)}.*`);
706
706
  t.pattern ??= n, e._zod.onattach.push((e) => {
707
707
  let t = e._zod.bag;
@@ -717,8 +717,8 @@ var pt = (e) => {
717
717
  continue: !t.abort
718
718
  });
719
719
  };
720
- }), Mt = /*@__PURE__*/ i("$ZodCheckEndsWith", (e, t) => {
721
- C.init(e, t);
720
+ }), At = /*@__PURE__*/ i("$ZodCheckEndsWith", (e, t) => {
721
+ E.init(e, t);
722
722
  let n = RegExp(`.*${le(t.suffix)}$`);
723
723
  t.pattern ??= n, e._zod.onattach.push((e) => {
724
724
  let t = e._zod.bag;
@@ -734,11 +734,11 @@ var pt = (e) => {
734
734
  continue: !t.abort
735
735
  });
736
736
  };
737
- }), Nt = /*@__PURE__*/ i("$ZodCheckOverwrite", (e, t) => {
738
- C.init(e, t), e._zod.check = (e) => {
737
+ }), jt = /*@__PURE__*/ i("$ZodCheckOverwrite", (e, t) => {
738
+ E.init(e, t), e._zod.check = (e) => {
739
739
  e.value = t.tx(e.value);
740
740
  };
741
- }), Pt = class {
741
+ }), Mt = class {
742
742
  constructor(e = []) {
743
743
  this.content = [], this.indent = 0, this && (this.args = e);
744
744
  }
@@ -757,13 +757,13 @@ var pt = (e) => {
757
757
  let e = Function, t = this?.args, n = [...(this?.content ?? [""]).map((e) => ` ${e}`)];
758
758
  return new e(...t, n.join("\n"));
759
759
  }
760
- }, Ft = {
760
+ }, Nt = {
761
761
  major: 4,
762
762
  minor: 4,
763
763
  patch: 3
764
- }, T = /*@__PURE__*/ i("$ZodType", (e, t) => {
764
+ }, D = /*@__PURE__*/ i("$ZodType", (e, t) => {
765
765
  var n;
766
- e ??= {}, e._zod.def = t, e._zod.bag = e._zod.bag || {}, e._zod.version = Ft;
766
+ e ??= {}, e._zod.def = t, e._zod.bag = e._zod.bag || {}, e._zod.version = Nt;
767
767
  let r = [...e._zod.def.checks ?? []];
768
768
  e._zod.traits.has("$ZodCheck") && r.unshift(e);
769
769
  for (let t of r) for (let n of t._zod.onattach) n(e);
@@ -820,17 +820,17 @@ var pt = (e) => {
820
820
  m(e, "~standard", () => ({
821
821
  validate: (t) => {
822
822
  try {
823
- let n = je(e, t);
823
+ let n = ke(e, t);
824
824
  return n.success ? { value: n.data } : { issues: n.error?.issues };
825
825
  } catch {
826
- return Ne(e, t).then((e) => e.success ? { value: e.data } : { issues: e.error?.issues });
826
+ return Ae(e, t).then((e) => e.success ? { value: e.data } : { issues: e.error?.issues });
827
827
  }
828
828
  },
829
829
  vendor: "zod",
830
830
  version: 1
831
831
  }));
832
- }), It = /*@__PURE__*/ i("$ZodString", (e, t) => {
833
- T.init(e, t), e._zod.pattern = [...e?._zod.bag?.patterns ?? []].pop() ?? pt(e._zod.bag), e._zod.parse = (n, r) => {
832
+ }), Pt = /*@__PURE__*/ i("$ZodString", (e, t) => {
833
+ D.init(e, t), e._zod.pattern = [...e?._zod.bag?.patterns ?? []].pop() ?? ut(e._zod.bag), e._zod.parse = (n, r) => {
834
834
  if (t.coerce) try {
835
835
  n.value = String(n.value);
836
836
  } catch {}
@@ -841,11 +841,11 @@ var pt = (e) => {
841
841
  inst: e
842
842
  }), n;
843
843
  };
844
- }), E = /*@__PURE__*/ i("$ZodStringFormat", (e, t) => {
845
- w.init(e, t), It.init(e, t);
846
- }), Lt = /*@__PURE__*/ i("$ZodGUID", (e, t) => {
847
- t.pattern ??= Ye, E.init(e, t);
848
- }), Rt = /*@__PURE__*/ i("$ZodUUID", (e, t) => {
844
+ }), O = /*@__PURE__*/ i("$ZodStringFormat", (e, t) => {
845
+ wt.init(e, t), Pt.init(e, t);
846
+ }), Ft = /*@__PURE__*/ i("$ZodGUID", (e, t) => {
847
+ t.pattern ??= Ke, O.init(e, t);
848
+ }), It = /*@__PURE__*/ i("$ZodUUID", (e, t) => {
849
849
  if (t.version) {
850
850
  let e = {
851
851
  v1: 1,
@@ -858,16 +858,16 @@ var pt = (e) => {
858
858
  v8: 8
859
859
  }[t.version];
860
860
  if (e === void 0) throw Error(`Invalid UUID version: "${t.version}"`);
861
- t.pattern ??= Xe(e);
862
- } else t.pattern ??= Xe();
863
- E.init(e, t);
864
- }), zt = /*@__PURE__*/ i("$ZodEmail", (e, t) => {
865
- t.pattern ??= Ze, E.init(e, t);
866
- }), Bt = /*@__PURE__*/ i("$ZodURL", (e, t) => {
867
- E.init(e, t), e._zod.check = (n) => {
861
+ t.pattern ??= qe(e);
862
+ } else t.pattern ??= qe();
863
+ O.init(e, t);
864
+ }), Lt = /*@__PURE__*/ i("$ZodEmail", (e, t) => {
865
+ t.pattern ??= Je, O.init(e, t);
866
+ }), Rt = /*@__PURE__*/ i("$ZodURL", (e, t) => {
867
+ O.init(e, t), e._zod.check = (n) => {
868
868
  try {
869
869
  let r = n.value.trim();
870
- if (!t.normalize && t.protocol?.source === ot.source && !/^https?:\/\//i.test(r)) {
870
+ if (!t.normalize && t.protocol?.source === rt.source && !/^https?:\/\//i.test(r)) {
871
871
  n.issues.push({
872
872
  code: "invalid_format",
873
873
  format: "url",
@@ -907,32 +907,32 @@ var pt = (e) => {
907
907
  });
908
908
  }
909
909
  };
910
- }), Vt = /*@__PURE__*/ i("$ZodEmoji", (e, t) => {
911
- t.pattern ??= $e(), E.init(e, t);
912
- }), Ht = /*@__PURE__*/ i("$ZodNanoID", (e, t) => {
913
- t.pattern ??= qe, E.init(e, t);
914
- }), Ut = /*@__PURE__*/ i("$ZodCUID", (e, t) => {
915
- t.pattern ??= He, E.init(e, t);
916
- }), Wt = /*@__PURE__*/ i("$ZodCUID2", (e, t) => {
917
- t.pattern ??= Ue, E.init(e, t);
918
- }), Gt = /*@__PURE__*/ i("$ZodULID", (e, t) => {
919
- t.pattern ??= We, E.init(e, t);
920
- }), Kt = /*@__PURE__*/ i("$ZodXID", (e, t) => {
921
- t.pattern ??= Ge, E.init(e, t);
922
- }), qt = /*@__PURE__*/ i("$ZodKSUID", (e, t) => {
923
- t.pattern ??= Ke, E.init(e, t);
924
- }), Jt = /*@__PURE__*/ i("$ZodISODateTime", (e, t) => {
925
- t.pattern ??= ft(t), E.init(e, t);
926
- }), Yt = /*@__PURE__*/ i("$ZodISODate", (e, t) => {
927
- t.pattern ??= lt, E.init(e, t);
928
- }), Xt = /*@__PURE__*/ i("$ZodISOTime", (e, t) => {
929
- t.pattern ??= dt(t), E.init(e, t);
930
- }), Zt = /*@__PURE__*/ i("$ZodISODuration", (e, t) => {
931
- t.pattern ??= Je, E.init(e, t);
932
- }), Qt = /*@__PURE__*/ i("$ZodIPv4", (e, t) => {
933
- t.pattern ??= et, E.init(e, t), e._zod.bag.format = "ipv4";
934
- }), $t = /*@__PURE__*/ i("$ZodIPv6", (e, t) => {
935
- t.pattern ??= tt, E.init(e, t), e._zod.bag.format = "ipv6", e._zod.check = (n) => {
910
+ }), zt = /*@__PURE__*/ i("$ZodEmoji", (e, t) => {
911
+ t.pattern ??= Xe(), O.init(e, t);
912
+ }), Bt = /*@__PURE__*/ i("$ZodNanoID", (e, t) => {
913
+ t.pattern ??= We, O.init(e, t);
914
+ }), Vt = /*@__PURE__*/ i("$ZodCUID", (e, t) => {
915
+ t.pattern ??= ze, O.init(e, t);
916
+ }), Ht = /*@__PURE__*/ i("$ZodCUID2", (e, t) => {
917
+ t.pattern ??= Be, O.init(e, t);
918
+ }), Ut = /*@__PURE__*/ i("$ZodULID", (e, t) => {
919
+ t.pattern ??= Ve, O.init(e, t);
920
+ }), Wt = /*@__PURE__*/ i("$ZodXID", (e, t) => {
921
+ t.pattern ??= He, O.init(e, t);
922
+ }), Gt = /*@__PURE__*/ i("$ZodKSUID", (e, t) => {
923
+ t.pattern ??= Ue, O.init(e, t);
924
+ }), Kt = /*@__PURE__*/ i("$ZodISODateTime", (e, t) => {
925
+ t.pattern ??= lt(t), O.init(e, t);
926
+ }), qt = /*@__PURE__*/ i("$ZodISODate", (e, t) => {
927
+ t.pattern ??= ot, O.init(e, t);
928
+ }), Jt = /*@__PURE__*/ i("$ZodISOTime", (e, t) => {
929
+ t.pattern ??= ct(t), O.init(e, t);
930
+ }), Yt = /*@__PURE__*/ i("$ZodISODuration", (e, t) => {
931
+ t.pattern ??= Ge, O.init(e, t);
932
+ }), Xt = /*@__PURE__*/ i("$ZodIPv4", (e, t) => {
933
+ t.pattern ??= Ze, O.init(e, t), e._zod.bag.format = "ipv4";
934
+ }), Zt = /*@__PURE__*/ i("$ZodIPv6", (e, t) => {
935
+ t.pattern ??= Qe, O.init(e, t), e._zod.bag.format = "ipv6", e._zod.check = (n) => {
936
936
  try {
937
937
  new URL(`http://[${n.value}]`);
938
938
  } catch {
@@ -945,10 +945,10 @@ var pt = (e) => {
945
945
  });
946
946
  }
947
947
  };
948
- }), en = /*@__PURE__*/ i("$ZodCIDRv4", (e, t) => {
949
- t.pattern ??= nt, E.init(e, t);
950
- }), tn = /*@__PURE__*/ i("$ZodCIDRv6", (e, t) => {
951
- t.pattern ??= rt, E.init(e, t), e._zod.check = (n) => {
948
+ }), Qt = /*@__PURE__*/ i("$ZodCIDRv4", (e, t) => {
949
+ t.pattern ??= $e, O.init(e, t);
950
+ }), $t = /*@__PURE__*/ i("$ZodCIDRv6", (e, t) => {
951
+ t.pattern ??= et, O.init(e, t), e._zod.check = (n) => {
952
952
  let r = n.value.split("/");
953
953
  try {
954
954
  if (r.length !== 2) throw Error();
@@ -968,7 +968,7 @@ var pt = (e) => {
968
968
  }
969
969
  };
970
970
  });
971
- function nn(e) {
971
+ function en(e) {
972
972
  if (e === "") return !0;
973
973
  if (/\s/.test(e) || e.length % 4 != 0) return !1;
974
974
  try {
@@ -977,9 +977,9 @@ function nn(e) {
977
977
  return !1;
978
978
  }
979
979
  }
980
- var rn = /*@__PURE__*/ i("$ZodBase64", (e, t) => {
981
- t.pattern ??= it, E.init(e, t), e._zod.bag.contentEncoding = "base64", e._zod.check = (n) => {
982
- nn(n.value) || n.issues.push({
980
+ var tn = /*@__PURE__*/ i("$ZodBase64", (e, t) => {
981
+ t.pattern ??= tt, O.init(e, t), e._zod.bag.contentEncoding = "base64", e._zod.check = (n) => {
982
+ en(n.value) || n.issues.push({
983
983
  code: "invalid_format",
984
984
  format: "base64",
985
985
  input: n.value,
@@ -988,14 +988,14 @@ var rn = /*@__PURE__*/ i("$ZodBase64", (e, t) => {
988
988
  });
989
989
  };
990
990
  });
991
- function an(e) {
992
- if (!at.test(e)) return !1;
991
+ function nn(e) {
992
+ if (!nt.test(e)) return !1;
993
993
  let t = e.replace(/[-_]/g, (e) => e === "-" ? "+" : "/");
994
- return nn(t.padEnd(Math.ceil(t.length / 4) * 4, "="));
994
+ return en(t.padEnd(Math.ceil(t.length / 4) * 4, "="));
995
995
  }
996
- var on = /*@__PURE__*/ i("$ZodBase64URL", (e, t) => {
997
- t.pattern ??= at, E.init(e, t), e._zod.bag.contentEncoding = "base64url", e._zod.check = (n) => {
998
- an(n.value) || n.issues.push({
996
+ var rn = /*@__PURE__*/ i("$ZodBase64URL", (e, t) => {
997
+ t.pattern ??= nt, O.init(e, t), e._zod.bag.contentEncoding = "base64url", e._zod.check = (n) => {
998
+ nn(n.value) || n.issues.push({
999
999
  code: "invalid_format",
1000
1000
  format: "base64url",
1001
1001
  input: n.value,
@@ -1003,10 +1003,10 @@ var on = /*@__PURE__*/ i("$ZodBase64URL", (e, t) => {
1003
1003
  continue: !t.abort
1004
1004
  });
1005
1005
  };
1006
- }), sn = /*@__PURE__*/ i("$ZodE164", (e, t) => {
1007
- t.pattern ??= st, E.init(e, t);
1006
+ }), an = /*@__PURE__*/ i("$ZodE164", (e, t) => {
1007
+ t.pattern ??= it, O.init(e, t);
1008
1008
  });
1009
- function cn(e, t = null) {
1009
+ function on(e, t = null) {
1010
1010
  try {
1011
1011
  let n = e.split(".");
1012
1012
  if (n.length !== 3) return !1;
@@ -1018,9 +1018,9 @@ function cn(e, t = null) {
1018
1018
  return !1;
1019
1019
  }
1020
1020
  }
1021
- var ln = /*@__PURE__*/ i("$ZodJWT", (e, t) => {
1022
- E.init(e, t), e._zod.check = (n) => {
1023
- cn(n.value, t.alg) || n.issues.push({
1021
+ var sn = /*@__PURE__*/ i("$ZodJWT", (e, t) => {
1022
+ O.init(e, t), e._zod.check = (n) => {
1023
+ on(n.value, t.alg) || n.issues.push({
1024
1024
  code: "invalid_format",
1025
1025
  format: "jwt",
1026
1026
  input: n.value,
@@ -1028,8 +1028,8 @@ var ln = /*@__PURE__*/ i("$ZodJWT", (e, t) => {
1028
1028
  continue: !t.abort
1029
1029
  });
1030
1030
  };
1031
- }), un = /*@__PURE__*/ i("$ZodNumber", (e, t) => {
1032
- T.init(e, t), e._zod.pattern = e._zod.bag.pattern ?? ht, e._zod.parse = (n, r) => {
1031
+ }), cn = /*@__PURE__*/ i("$ZodNumber", (e, t) => {
1032
+ D.init(e, t), e._zod.pattern = e._zod.bag.pattern ?? ft, e._zod.parse = (n, r) => {
1033
1033
  if (t.coerce) try {
1034
1034
  n.value = Number(n.value);
1035
1035
  } catch {}
@@ -1044,10 +1044,10 @@ var ln = /*@__PURE__*/ i("$ZodJWT", (e, t) => {
1044
1044
  ...a ? { received: a } : {}
1045
1045
  }), n;
1046
1046
  };
1047
- }), dn = /*@__PURE__*/ i("$ZodNumberFormat", (e, t) => {
1048
- Ct.init(e, t), un.init(e, t);
1049
- }), fn = /*@__PURE__*/ i("$ZodBoolean", (e, t) => {
1050
- T.init(e, t), e._zod.pattern = gt, e._zod.parse = (n, r) => {
1047
+ }), ln = /*@__PURE__*/ i("$ZodNumberFormat", (e, t) => {
1048
+ bt.init(e, t), cn.init(e, t);
1049
+ }), un = /*@__PURE__*/ i("$ZodBoolean", (e, t) => {
1050
+ D.init(e, t), e._zod.pattern = pt, e._zod.parse = (n, r) => {
1051
1051
  if (t.coerce) try {
1052
1052
  n.value = !!n.value;
1053
1053
  } catch {}
@@ -1059,23 +1059,23 @@ var ln = /*@__PURE__*/ i("$ZodJWT", (e, t) => {
1059
1059
  inst: e
1060
1060
  }), n;
1061
1061
  };
1062
- }), pn = /*@__PURE__*/ i("$ZodAny", (e, t) => {
1063
- T.init(e, t), e._zod.parse = (e) => e;
1064
- }), mn = /*@__PURE__*/ i("$ZodUnknown", (e, t) => {
1065
- T.init(e, t), e._zod.parse = (e) => e;
1066
- }), hn = /*@__PURE__*/ i("$ZodNever", (e, t) => {
1067
- T.init(e, t), e._zod.parse = (t, n) => (t.issues.push({
1062
+ }), dn = /*@__PURE__*/ i("$ZodAny", (e, t) => {
1063
+ D.init(e, t), e._zod.parse = (e) => e;
1064
+ }), fn = /*@__PURE__*/ i("$ZodUnknown", (e, t) => {
1065
+ D.init(e, t), e._zod.parse = (e) => e;
1066
+ }), pn = /*@__PURE__*/ i("$ZodNever", (e, t) => {
1067
+ D.init(e, t), e._zod.parse = (t, n) => (t.issues.push({
1068
1068
  expected: "never",
1069
1069
  code: "invalid_type",
1070
1070
  input: t.value,
1071
1071
  inst: e
1072
1072
  }), t);
1073
1073
  });
1074
- function gn(e, t, n) {
1074
+ function mn(e, t, n) {
1075
1075
  e.issues.length && t.issues.push(...be(n, e.issues)), t.value[n] = e.value;
1076
1076
  }
1077
- var _n = /*@__PURE__*/ i("$ZodArray", (e, t) => {
1078
- T.init(e, t), e._zod.parse = (n, r) => {
1077
+ var hn = /*@__PURE__*/ i("$ZodArray", (e, t) => {
1078
+ D.init(e, t), e._zod.parse = (n, r) => {
1079
1079
  let i = n.value;
1080
1080
  if (!Array.isArray(i)) return n.issues.push({
1081
1081
  expected: "array",
@@ -1090,12 +1090,12 @@ var _n = /*@__PURE__*/ i("$ZodArray", (e, t) => {
1090
1090
  value: o,
1091
1091
  issues: []
1092
1092
  }, r);
1093
- s instanceof Promise ? a.push(s.then((t) => gn(t, n, e))) : gn(s, n, e);
1093
+ s instanceof Promise ? a.push(s.then((t) => mn(t, n, e))) : mn(s, n, e);
1094
1094
  }
1095
1095
  return a.length ? Promise.all(a).then(() => n) : n;
1096
1096
  };
1097
1097
  });
1098
- function vn(e, t, n, r, i, a) {
1098
+ function gn(e, t, n, r, i, a) {
1099
1099
  let o = n in r;
1100
1100
  if (e.issues.length) {
1101
1101
  if (i && a && !o) return;
@@ -1112,7 +1112,7 @@ function vn(e, t, n, r, i, a) {
1112
1112
  }
1113
1113
  e.value === void 0 ? o && (t.value[n] = void 0) : t.value[n] = e.value;
1114
1114
  }
1115
- function yn(e) {
1115
+ function _n(e) {
1116
1116
  let t = Object.keys(e.shape);
1117
1117
  for (let n of t) if (!e.shape?.[n]?._zod?.traits?.has("$ZodType")) throw Error(`Invalid element at key "${n}": expected a Zod schema`);
1118
1118
  let n = ue(e.shape);
@@ -1124,7 +1124,7 @@ function yn(e) {
1124
1124
  optionalKeys: new Set(n)
1125
1125
  };
1126
1126
  }
1127
- function bn(e, t, n, r, i, a) {
1127
+ function vn(e, t, n, r, i, a) {
1128
1128
  let o = [], s = i.keySet, c = i.catchall._zod, l = c.def.type, u = c.optin === "optional", d = c.optout === "optional";
1129
1129
  for (let i in t) {
1130
1130
  if (i === "__proto__" || s.has(i)) continue;
@@ -1136,7 +1136,7 @@ function bn(e, t, n, r, i, a) {
1136
1136
  value: t[i],
1137
1137
  issues: []
1138
1138
  }, r);
1139
- a instanceof Promise ? e.push(a.then((e) => vn(e, n, i, t, u, d))) : vn(a, n, i, t, u, d);
1139
+ a instanceof Promise ? e.push(a.then((e) => gn(e, n, i, t, u, d))) : gn(a, n, i, t, u, d);
1140
1140
  }
1141
1141
  return o.length && n.issues.push({
1142
1142
  code: "unrecognized_keys",
@@ -1145,15 +1145,15 @@ function bn(e, t, n, r, i, a) {
1145
1145
  inst: a
1146
1146
  }), e.length ? Promise.all(e).then(() => n) : n;
1147
1147
  }
1148
- var xn = /*@__PURE__*/ i("$ZodObject", (e, t) => {
1149
- if (T.init(e, t), !Object.getOwnPropertyDescriptor(t, "shape")?.get) {
1148
+ var yn = /*@__PURE__*/ i("$ZodObject", (e, t) => {
1149
+ if (D.init(e, t), !Object.getOwnPropertyDescriptor(t, "shape")?.get) {
1150
1150
  let e = t.shape;
1151
1151
  Object.defineProperty(t, "shape", { get: () => {
1152
1152
  let n = { ...e };
1153
1153
  return Object.defineProperty(t, "shape", { value: n }), n;
1154
1154
  } });
1155
1155
  }
1156
- let n = d(() => yn(t));
1156
+ let n = d(() => _n(t));
1157
1157
  m(e._zod, "propValues", () => {
1158
1158
  let e = t.shape, n = {};
1159
1159
  for (let t in e) {
@@ -1182,14 +1182,14 @@ var xn = /*@__PURE__*/ i("$ZodObject", (e, t) => {
1182
1182
  value: s[e],
1183
1183
  issues: []
1184
1184
  }, o);
1185
- a instanceof Promise ? c.push(a.then((n) => vn(n, t, e, s, r, i))) : vn(a, t, e, s, r, i);
1185
+ a instanceof Promise ? c.push(a.then((n) => gn(n, t, e, s, r, i))) : gn(a, t, e, s, r, i);
1186
1186
  }
1187
- return i ? bn(c, s, t, o, n.value, e) : c.length ? Promise.all(c).then(() => t) : t;
1187
+ return i ? vn(c, s, t, o, n.value, e) : c.length ? Promise.all(c).then(() => t) : t;
1188
1188
  };
1189
- }), Sn = /*@__PURE__*/ i("$ZodObjectJIT", (e, t) => {
1190
- xn.init(e, t);
1191
- let n = e._zod.parse, r = d(() => yn(t)), i = (e) => {
1192
- let t = new Pt([
1189
+ }), bn = /*@__PURE__*/ i("$ZodObjectJIT", (e, t) => {
1190
+ yn.init(e, t);
1191
+ let n = e._zod.parse, r = d(() => _n(t)), i = (e) => {
1192
+ let t = new Mt([
1193
1193
  "shape",
1194
1194
  "payload",
1195
1195
  "ctx"
@@ -1271,7 +1271,7 @@ var xn = /*@__PURE__*/ i("$ZodObject", (e, t) => {
1271
1271
  e._zod.parse = (s, d) => {
1272
1272
  f ??= r.value;
1273
1273
  let p = s.value;
1274
- return o(p) ? c && l && d?.async === !1 && d.jitless !== !0 ? (a ||= i(t.shape), s = a(s, d), u ? bn([], p, s, d, f, e) : s) : n(s, d) : (s.issues.push({
1274
+ return o(p) ? c && l && d?.async === !1 && d.jitless !== !0 ? (a ||= i(t.shape), s = a(s, d), u ? vn([], p, s, d, f, e) : s) : n(s, d) : (s.issues.push({
1275
1275
  expected: "object",
1276
1276
  code: "invalid_type",
1277
1277
  input: p,
@@ -1279,18 +1279,18 @@ var xn = /*@__PURE__*/ i("$ZodObject", (e, t) => {
1279
1279
  }), s);
1280
1280
  };
1281
1281
  });
1282
- function Cn(e, t, n, r) {
1282
+ function xn(e, t, n, r) {
1283
1283
  for (let n of e) if (n.issues.length === 0) return t.value = n.value, t;
1284
1284
  let i = e.filter((e) => !b(e));
1285
1285
  return i.length === 1 ? (t.value = i[0].value, i[0]) : (t.issues.push({
1286
1286
  code: "invalid_union",
1287
1287
  input: t.value,
1288
1288
  inst: n,
1289
- errors: e.map((e) => e.issues.map((e) => x(e, r, c())))
1289
+ errors: e.map((e) => e.issues.map((e) => S(e, r, c())))
1290
1290
  }), t);
1291
1291
  }
1292
- var wn = /*@__PURE__*/ i("$ZodUnion", (e, t) => {
1293
- T.init(e, t), m(e._zod, "optin", () => t.options.some((e) => e._zod.optin === "optional") ? "optional" : void 0), m(e._zod, "optout", () => t.options.some((e) => e._zod.optout === "optional") ? "optional" : void 0), m(e._zod, "values", () => {
1292
+ var Sn = /*@__PURE__*/ i("$ZodUnion", (e, t) => {
1293
+ D.init(e, t), m(e._zod, "optin", () => t.options.some((e) => e._zod.optin === "optional") ? "optional" : void 0), m(e._zod, "optout", () => t.options.some((e) => e._zod.optout === "optional") ? "optional" : void 0), m(e._zod, "values", () => {
1294
1294
  if (t.options.every((e) => e._zod.values)) return new Set(t.options.flatMap((e) => Array.from(e._zod.values)));
1295
1295
  }), m(e._zod, "pattern", () => {
1296
1296
  if (t.options.every((e) => e._zod.pattern)) {
@@ -1313,10 +1313,10 @@ var wn = /*@__PURE__*/ i("$ZodUnion", (e, t) => {
1313
1313
  o.push(t);
1314
1314
  }
1315
1315
  }
1316
- return a ? Promise.all(o).then((t) => Cn(t, r, e, i)) : Cn(o, r, e, i);
1316
+ return a ? Promise.all(o).then((t) => xn(t, r, e, i)) : xn(o, r, e, i);
1317
1317
  };
1318
- }), Tn = /*@__PURE__*/ i("$ZodIntersection", (e, t) => {
1319
- T.init(e, t), e._zod.parse = (e, n) => {
1318
+ }), Cn = /*@__PURE__*/ i("$ZodIntersection", (e, t) => {
1319
+ D.init(e, t), e._zod.parse = (e, n) => {
1320
1320
  let r = e.value, i = t.left._zod.run({
1321
1321
  value: r,
1322
1322
  issues: []
@@ -1324,10 +1324,10 @@ var wn = /*@__PURE__*/ i("$ZodUnion", (e, t) => {
1324
1324
  value: r,
1325
1325
  issues: []
1326
1326
  }, n);
1327
- return i instanceof Promise || a instanceof Promise ? Promise.all([i, a]).then(([t, n]) => Dn(e, t, n)) : Dn(e, i, a);
1327
+ return i instanceof Promise || a instanceof Promise ? Promise.all([i, a]).then(([t, n]) => Tn(e, t, n)) : Tn(e, i, a);
1328
1328
  };
1329
1329
  });
1330
- function En(e, t) {
1330
+ function wn(e, t) {
1331
1331
  if (e === t || e instanceof Date && t instanceof Date && +e == +t) return {
1332
1332
  valid: !0,
1333
1333
  data: e
@@ -1338,7 +1338,7 @@ function En(e, t) {
1338
1338
  ...t
1339
1339
  };
1340
1340
  for (let n of r) {
1341
- let r = En(e[n], t[n]);
1341
+ let r = wn(e[n], t[n]);
1342
1342
  if (!r.valid) return {
1343
1343
  valid: !1,
1344
1344
  mergeErrorPath: [n, ...r.mergeErrorPath]
@@ -1357,7 +1357,7 @@ function En(e, t) {
1357
1357
  };
1358
1358
  let n = [];
1359
1359
  for (let r = 0; r < e.length; r++) {
1360
- let i = e[r], a = t[r], o = En(i, a);
1360
+ let i = e[r], a = t[r], o = wn(i, a);
1361
1361
  if (!o.valid) return {
1362
1362
  valid: !1,
1363
1363
  mergeErrorPath: [r, ...o.mergeErrorPath]
@@ -1374,7 +1374,7 @@ function En(e, t) {
1374
1374
  mergeErrorPath: []
1375
1375
  };
1376
1376
  }
1377
- function Dn(e, t, n) {
1377
+ function Tn(e, t, n) {
1378
1378
  let r = /* @__PURE__ */ new Map(), i;
1379
1379
  for (let n of t.issues) if (n.code === "unrecognized_keys") {
1380
1380
  i ??= n;
@@ -1387,12 +1387,12 @@ function Dn(e, t, n) {
1387
1387
  ...i,
1388
1388
  keys: a
1389
1389
  }), b(e)) return e;
1390
- let o = En(t.value, n.value);
1390
+ let o = wn(t.value, n.value);
1391
1391
  if (!o.valid) throw Error(`Unmergable intersection. Error path: ${JSON.stringify(o.mergeErrorPath)}`);
1392
1392
  return e.value = o.data, e;
1393
1393
  }
1394
- var On = /*@__PURE__*/ i("$ZodEnum", (e, t) => {
1395
- T.init(e, t);
1394
+ var En = /*@__PURE__*/ i("$ZodEnum", (e, t) => {
1395
+ D.init(e, t);
1396
1396
  let n = l(t.entries), r = new Set(n);
1397
1397
  e._zod.values = r, e._zod.pattern = RegExp(`^(${n.filter((e) => ce.has(typeof e)).map((e) => typeof e == "string" ? le(e) : e.toString()).join("|")})$`), e._zod.parse = (t, i) => {
1398
1398
  let a = t.value;
@@ -1403,8 +1403,8 @@ var On = /*@__PURE__*/ i("$ZodEnum", (e, t) => {
1403
1403
  inst: e
1404
1404
  }), t;
1405
1405
  };
1406
- }), kn = /*@__PURE__*/ i("$ZodTransform", (e, t) => {
1407
- T.init(e, t), e._zod.optin = "optional", e._zod.parse = (n, r) => {
1406
+ }), Dn = /*@__PURE__*/ i("$ZodTransform", (e, t) => {
1407
+ D.init(e, t), e._zod.optin = "optional", e._zod.parse = (n, r) => {
1408
1408
  if (r.direction === "backward") throw new o(e.constructor.name);
1409
1409
  let i = t.transform(n.value, n);
1410
1410
  if (r.async) return (i instanceof Promise ? i : Promise.resolve(i)).then((e) => (n.value = e, n.fallback = !0, n));
@@ -1412,53 +1412,53 @@ var On = /*@__PURE__*/ i("$ZodEnum", (e, t) => {
1412
1412
  return n.value = i, n.fallback = !0, n;
1413
1413
  };
1414
1414
  });
1415
- function An(e, t) {
1415
+ function On(e, t) {
1416
1416
  return t === void 0 && (e.issues.length || e.fallback) ? {
1417
1417
  issues: [],
1418
1418
  value: void 0
1419
1419
  } : e;
1420
1420
  }
1421
- var jn = /*@__PURE__*/ i("$ZodOptional", (e, t) => {
1422
- T.init(e, t), e._zod.optin = "optional", e._zod.optout = "optional", m(e._zod, "values", () => t.innerType._zod.values ? new Set([...t.innerType._zod.values, void 0]) : void 0), m(e._zod, "pattern", () => {
1421
+ var kn = /*@__PURE__*/ i("$ZodOptional", (e, t) => {
1422
+ D.init(e, t), e._zod.optin = "optional", e._zod.optout = "optional", m(e._zod, "values", () => t.innerType._zod.values ? new Set([...t.innerType._zod.values, void 0]) : void 0), m(e._zod, "pattern", () => {
1423
1423
  let e = t.innerType._zod.pattern;
1424
1424
  return e ? RegExp(`^(${p(e.source)})?$`) : void 0;
1425
1425
  }), e._zod.parse = (e, n) => {
1426
1426
  if (t.innerType._zod.optin === "optional") {
1427
1427
  let r = e.value, i = t.innerType._zod.run(e, n);
1428
- return i instanceof Promise ? i.then((e) => An(e, r)) : An(i, r);
1428
+ return i instanceof Promise ? i.then((e) => On(e, r)) : On(i, r);
1429
1429
  }
1430
1430
  return e.value === void 0 ? e : t.innerType._zod.run(e, n);
1431
1431
  };
1432
- }), Mn = /*@__PURE__*/ i("$ZodExactOptional", (e, t) => {
1433
- jn.init(e, t), m(e._zod, "values", () => t.innerType._zod.values), m(e._zod, "pattern", () => t.innerType._zod.pattern), e._zod.parse = (e, n) => t.innerType._zod.run(e, n);
1434
- }), Nn = /*@__PURE__*/ i("$ZodNullable", (e, t) => {
1435
- T.init(e, t), m(e._zod, "optin", () => t.innerType._zod.optin), m(e._zod, "optout", () => t.innerType._zod.optout), m(e._zod, "pattern", () => {
1432
+ }), An = /*@__PURE__*/ i("$ZodExactOptional", (e, t) => {
1433
+ kn.init(e, t), m(e._zod, "values", () => t.innerType._zod.values), m(e._zod, "pattern", () => t.innerType._zod.pattern), e._zod.parse = (e, n) => t.innerType._zod.run(e, n);
1434
+ }), jn = /*@__PURE__*/ i("$ZodNullable", (e, t) => {
1435
+ D.init(e, t), m(e._zod, "optin", () => t.innerType._zod.optin), m(e._zod, "optout", () => t.innerType._zod.optout), m(e._zod, "pattern", () => {
1436
1436
  let e = t.innerType._zod.pattern;
1437
1437
  return e ? RegExp(`^(${p(e.source)}|null)$`) : void 0;
1438
1438
  }), m(e._zod, "values", () => t.innerType._zod.values ? new Set([...t.innerType._zod.values, null]) : void 0), e._zod.parse = (e, n) => e.value === null ? e : t.innerType._zod.run(e, n);
1439
- }), Pn = /*@__PURE__*/ i("$ZodDefault", (e, t) => {
1440
- T.init(e, t), e._zod.optin = "optional", m(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (e, n) => {
1439
+ }), Mn = /*@__PURE__*/ i("$ZodDefault", (e, t) => {
1440
+ D.init(e, t), e._zod.optin = "optional", m(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (e, n) => {
1441
1441
  if (n.direction === "backward") return t.innerType._zod.run(e, n);
1442
1442
  if (e.value === void 0) return e.value = t.defaultValue, e;
1443
1443
  let r = t.innerType._zod.run(e, n);
1444
- return r instanceof Promise ? r.then((e) => Fn(e, t)) : Fn(r, t);
1444
+ return r instanceof Promise ? r.then((e) => Nn(e, t)) : Nn(r, t);
1445
1445
  };
1446
1446
  });
1447
- function Fn(e, t) {
1447
+ function Nn(e, t) {
1448
1448
  return e.value === void 0 && (e.value = t.defaultValue), e;
1449
1449
  }
1450
- var In = /*@__PURE__*/ i("$ZodPrefault", (e, t) => {
1451
- T.init(e, t), e._zod.optin = "optional", m(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (e, n) => (n.direction === "backward" || e.value === void 0 && (e.value = t.defaultValue), t.innerType._zod.run(e, n));
1452
- }), Ln = /*@__PURE__*/ i("$ZodNonOptional", (e, t) => {
1453
- T.init(e, t), m(e._zod, "values", () => {
1450
+ var Pn = /*@__PURE__*/ i("$ZodPrefault", (e, t) => {
1451
+ D.init(e, t), e._zod.optin = "optional", m(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (e, n) => (n.direction === "backward" || e.value === void 0 && (e.value = t.defaultValue), t.innerType._zod.run(e, n));
1452
+ }), Fn = /*@__PURE__*/ i("$ZodNonOptional", (e, t) => {
1453
+ D.init(e, t), m(e._zod, "values", () => {
1454
1454
  let e = t.innerType._zod.values;
1455
1455
  return e ? new Set([...e].filter((e) => e !== void 0)) : void 0;
1456
1456
  }), e._zod.parse = (n, r) => {
1457
1457
  let i = t.innerType._zod.run(n, r);
1458
- return i instanceof Promise ? i.then((t) => Rn(t, e)) : Rn(i, e);
1458
+ return i instanceof Promise ? i.then((t) => In(t, e)) : In(i, e);
1459
1459
  };
1460
1460
  });
1461
- function Rn(e, t) {
1461
+ function In(e, t) {
1462
1462
  return !e.issues.length && e.value === void 0 && e.issues.push({
1463
1463
  code: "invalid_type",
1464
1464
  expected: "nonoptional",
@@ -1466,57 +1466,57 @@ function Rn(e, t) {
1466
1466
  inst: t
1467
1467
  }), e;
1468
1468
  }
1469
- var zn = /*@__PURE__*/ i("$ZodCatch", (e, t) => {
1470
- T.init(e, t), e._zod.optin = "optional", m(e._zod, "optout", () => t.innerType._zod.optout), m(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (e, n) => {
1469
+ var Ln = /*@__PURE__*/ i("$ZodCatch", (e, t) => {
1470
+ D.init(e, t), e._zod.optin = "optional", m(e._zod, "optout", () => t.innerType._zod.optout), m(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (e, n) => {
1471
1471
  if (n.direction === "backward") return t.innerType._zod.run(e, n);
1472
1472
  let r = t.innerType._zod.run(e, n);
1473
1473
  return r instanceof Promise ? r.then((r) => (e.value = r.value, r.issues.length && (e.value = t.catchValue({
1474
1474
  ...e,
1475
- error: { issues: r.issues.map((e) => x(e, n, c())) },
1475
+ error: { issues: r.issues.map((e) => S(e, n, c())) },
1476
1476
  input: e.value
1477
1477
  }), e.issues = [], e.fallback = !0), e)) : (e.value = r.value, r.issues.length && (e.value = t.catchValue({
1478
1478
  ...e,
1479
- error: { issues: r.issues.map((e) => x(e, n, c())) },
1479
+ error: { issues: r.issues.map((e) => S(e, n, c())) },
1480
1480
  input: e.value
1481
1481
  }), e.issues = [], e.fallback = !0), e);
1482
1482
  };
1483
- }), Bn = /*@__PURE__*/ i("$ZodPipe", (e, t) => {
1484
- T.init(e, t), m(e._zod, "values", () => t.in._zod.values), m(e._zod, "optin", () => t.in._zod.optin), m(e._zod, "optout", () => t.out._zod.optout), m(e._zod, "propValues", () => t.in._zod.propValues), e._zod.parse = (e, n) => {
1483
+ }), Rn = /*@__PURE__*/ i("$ZodPipe", (e, t) => {
1484
+ D.init(e, t), m(e._zod, "values", () => t.in._zod.values), m(e._zod, "optin", () => t.in._zod.optin), m(e._zod, "optout", () => t.out._zod.optout), m(e._zod, "propValues", () => t.in._zod.propValues), e._zod.parse = (e, n) => {
1485
1485
  if (n.direction === "backward") {
1486
1486
  let r = t.out._zod.run(e, n);
1487
- return r instanceof Promise ? r.then((e) => Vn(e, t.in, n)) : Vn(r, t.in, n);
1487
+ return r instanceof Promise ? r.then((e) => zn(e, t.in, n)) : zn(r, t.in, n);
1488
1488
  }
1489
1489
  let r = t.in._zod.run(e, n);
1490
- return r instanceof Promise ? r.then((e) => Vn(e, t.out, n)) : Vn(r, t.out, n);
1490
+ return r instanceof Promise ? r.then((e) => zn(e, t.out, n)) : zn(r, t.out, n);
1491
1491
  };
1492
1492
  });
1493
- function Vn(e, t, n) {
1493
+ function zn(e, t, n) {
1494
1494
  return e.issues.length ? (e.aborted = !0, e) : t._zod.run({
1495
1495
  value: e.value,
1496
1496
  issues: e.issues,
1497
1497
  fallback: e.fallback
1498
1498
  }, n);
1499
1499
  }
1500
- var Hn = /*@__PURE__*/ i("$ZodPreprocess", (e, t) => {
1501
- Bn.init(e, t);
1502
- }), Un = /*@__PURE__*/ i("$ZodReadonly", (e, t) => {
1503
- T.init(e, t), m(e._zod, "propValues", () => t.innerType._zod.propValues), m(e._zod, "values", () => t.innerType._zod.values), m(e._zod, "optin", () => t.innerType?._zod?.optin), m(e._zod, "optout", () => t.innerType?._zod?.optout), e._zod.parse = (e, n) => {
1500
+ var Bn = /*@__PURE__*/ i("$ZodPreprocess", (e, t) => {
1501
+ Rn.init(e, t);
1502
+ }), Vn = /*@__PURE__*/ i("$ZodReadonly", (e, t) => {
1503
+ D.init(e, t), m(e._zod, "propValues", () => t.innerType._zod.propValues), m(e._zod, "values", () => t.innerType._zod.values), m(e._zod, "optin", () => t.innerType?._zod?.optin), m(e._zod, "optout", () => t.innerType?._zod?.optout), e._zod.parse = (e, n) => {
1504
1504
  if (n.direction === "backward") return t.innerType._zod.run(e, n);
1505
1505
  let r = t.innerType._zod.run(e, n);
1506
- return r instanceof Promise ? r.then(Wn) : Wn(r);
1506
+ return r instanceof Promise ? r.then(Hn) : Hn(r);
1507
1507
  };
1508
1508
  });
1509
- function Wn(e) {
1509
+ function Hn(e) {
1510
1510
  return e.value = Object.freeze(e.value), e;
1511
1511
  }
1512
- var Gn = /*@__PURE__*/ i("$ZodCustom", (e, t) => {
1513
- C.init(e, t), T.init(e, t), e._zod.parse = (e, t) => e, e._zod.check = (n) => {
1512
+ var Un = /*@__PURE__*/ i("$ZodCustom", (e, t) => {
1513
+ E.init(e, t), D.init(e, t), e._zod.parse = (e, t) => e, e._zod.check = (n) => {
1514
1514
  let r = n.value, i = t.fn(r);
1515
- if (i instanceof Promise) return i.then((t) => Kn(t, n, r, e));
1516
- Kn(i, n, r, e);
1515
+ if (i instanceof Promise) return i.then((t) => Wn(t, n, r, e));
1516
+ Wn(i, n, r, e);
1517
1517
  };
1518
1518
  });
1519
- function Kn(e, t, n, r) {
1519
+ function Wn(e, t, n, r) {
1520
1520
  if (!e) {
1521
1521
  let e = {
1522
1522
  code: "custom",
@@ -1525,12 +1525,12 @@ function Kn(e, t, n, r) {
1525
1525
  path: [...r._zod.def.path ?? []],
1526
1526
  continue: !r._zod.def.abort
1527
1527
  };
1528
- r._zod.def.params && (e.params = r._zod.def.params), t.issues.push(S(e));
1528
+ r._zod.def.params && (e.params = r._zod.def.params), t.issues.push(C(e));
1529
1529
  }
1530
1530
  }
1531
1531
  //#endregion
1532
1532
  //#region ../../node_modules/zod/v4/core/registries.js
1533
- var qn, Jn = class {
1533
+ var Gn, Kn = class {
1534
1534
  constructor() {
1535
1535
  this._map = /* @__PURE__ */ new WeakMap(), this._idmap = /* @__PURE__ */ new Map();
1536
1536
  }
@@ -1562,22 +1562,22 @@ var qn, Jn = class {
1562
1562
  return this._map.has(e);
1563
1563
  }
1564
1564
  };
1565
- function Yn() {
1566
- return new Jn();
1565
+ function qn() {
1566
+ return new Kn();
1567
1567
  }
1568
- (qn = globalThis).__zod_globalRegistry ?? (qn.__zod_globalRegistry = Yn());
1569
- var D = globalThis.__zod_globalRegistry;
1568
+ (Gn = globalThis).__zod_globalRegistry ?? (Gn.__zod_globalRegistry = qn());
1569
+ var k = globalThis.__zod_globalRegistry;
1570
1570
  //#endregion
1571
1571
  //#region ../../node_modules/zod/v4/core/api.js
1572
1572
  // @__NO_SIDE_EFFECTS__
1573
- function Xn(e, t) {
1573
+ function Jn(e, t) {
1574
1574
  return new e({
1575
1575
  type: "string",
1576
1576
  ...y(t)
1577
1577
  });
1578
1578
  }
1579
1579
  // @__NO_SIDE_EFFECTS__
1580
- function Zn(e, t) {
1580
+ function Yn(e, t) {
1581
1581
  return new e({
1582
1582
  type: "string",
1583
1583
  format: "email",
@@ -1587,7 +1587,7 @@ function Zn(e, t) {
1587
1587
  });
1588
1588
  }
1589
1589
  // @__NO_SIDE_EFFECTS__
1590
- function Qn(e, t) {
1590
+ function Xn(e, t) {
1591
1591
  return new e({
1592
1592
  type: "string",
1593
1593
  format: "guid",
@@ -1597,7 +1597,7 @@ function Qn(e, t) {
1597
1597
  });
1598
1598
  }
1599
1599
  // @__NO_SIDE_EFFECTS__
1600
- function $n(e, t) {
1600
+ function Zn(e, t) {
1601
1601
  return new e({
1602
1602
  type: "string",
1603
1603
  format: "uuid",
@@ -1607,7 +1607,7 @@ function $n(e, t) {
1607
1607
  });
1608
1608
  }
1609
1609
  // @__NO_SIDE_EFFECTS__
1610
- function er(e, t) {
1610
+ function Qn(e, t) {
1611
1611
  return new e({
1612
1612
  type: "string",
1613
1613
  format: "uuid",
@@ -1618,7 +1618,7 @@ function er(e, t) {
1618
1618
  });
1619
1619
  }
1620
1620
  // @__NO_SIDE_EFFECTS__
1621
- function tr(e, t) {
1621
+ function $n(e, t) {
1622
1622
  return new e({
1623
1623
  type: "string",
1624
1624
  format: "uuid",
@@ -1629,7 +1629,7 @@ function tr(e, t) {
1629
1629
  });
1630
1630
  }
1631
1631
  // @__NO_SIDE_EFFECTS__
1632
- function nr(e, t) {
1632
+ function er(e, t) {
1633
1633
  return new e({
1634
1634
  type: "string",
1635
1635
  format: "uuid",
@@ -1640,7 +1640,7 @@ function nr(e, t) {
1640
1640
  });
1641
1641
  }
1642
1642
  // @__NO_SIDE_EFFECTS__
1643
- function rr(e, t) {
1643
+ function tr(e, t) {
1644
1644
  return new e({
1645
1645
  type: "string",
1646
1646
  format: "url",
@@ -1650,7 +1650,7 @@ function rr(e, t) {
1650
1650
  });
1651
1651
  }
1652
1652
  // @__NO_SIDE_EFFECTS__
1653
- function ir(e, t) {
1653
+ function nr(e, t) {
1654
1654
  return new e({
1655
1655
  type: "string",
1656
1656
  format: "emoji",
@@ -1660,7 +1660,7 @@ function ir(e, t) {
1660
1660
  });
1661
1661
  }
1662
1662
  // @__NO_SIDE_EFFECTS__
1663
- function ar(e, t) {
1663
+ function rr(e, t) {
1664
1664
  return new e({
1665
1665
  type: "string",
1666
1666
  format: "nanoid",
@@ -1670,7 +1670,7 @@ function ar(e, t) {
1670
1670
  });
1671
1671
  }
1672
1672
  // @__NO_SIDE_EFFECTS__
1673
- function or(e, t) {
1673
+ function ir(e, t) {
1674
1674
  return new e({
1675
1675
  type: "string",
1676
1676
  format: "cuid",
@@ -1680,7 +1680,7 @@ function or(e, t) {
1680
1680
  });
1681
1681
  }
1682
1682
  // @__NO_SIDE_EFFECTS__
1683
- function sr(e, t) {
1683
+ function ar(e, t) {
1684
1684
  return new e({
1685
1685
  type: "string",
1686
1686
  format: "cuid2",
@@ -1690,7 +1690,7 @@ function sr(e, t) {
1690
1690
  });
1691
1691
  }
1692
1692
  // @__NO_SIDE_EFFECTS__
1693
- function cr(e, t) {
1693
+ function or(e, t) {
1694
1694
  return new e({
1695
1695
  type: "string",
1696
1696
  format: "ulid",
@@ -1700,7 +1700,7 @@ function cr(e, t) {
1700
1700
  });
1701
1701
  }
1702
1702
  // @__NO_SIDE_EFFECTS__
1703
- function lr(e, t) {
1703
+ function sr(e, t) {
1704
1704
  return new e({
1705
1705
  type: "string",
1706
1706
  format: "xid",
@@ -1710,7 +1710,7 @@ function lr(e, t) {
1710
1710
  });
1711
1711
  }
1712
1712
  // @__NO_SIDE_EFFECTS__
1713
- function ur(e, t) {
1713
+ function cr(e, t) {
1714
1714
  return new e({
1715
1715
  type: "string",
1716
1716
  format: "ksuid",
@@ -1720,7 +1720,7 @@ function ur(e, t) {
1720
1720
  });
1721
1721
  }
1722
1722
  // @__NO_SIDE_EFFECTS__
1723
- function dr(e, t) {
1723
+ function lr(e, t) {
1724
1724
  return new e({
1725
1725
  type: "string",
1726
1726
  format: "ipv4",
@@ -1730,7 +1730,7 @@ function dr(e, t) {
1730
1730
  });
1731
1731
  }
1732
1732
  // @__NO_SIDE_EFFECTS__
1733
- function fr(e, t) {
1733
+ function ur(e, t) {
1734
1734
  return new e({
1735
1735
  type: "string",
1736
1736
  format: "ipv6",
@@ -1740,7 +1740,7 @@ function fr(e, t) {
1740
1740
  });
1741
1741
  }
1742
1742
  // @__NO_SIDE_EFFECTS__
1743
- function pr(e, t) {
1743
+ function dr(e, t) {
1744
1744
  return new e({
1745
1745
  type: "string",
1746
1746
  format: "cidrv4",
@@ -1750,7 +1750,7 @@ function pr(e, t) {
1750
1750
  });
1751
1751
  }
1752
1752
  // @__NO_SIDE_EFFECTS__
1753
- function mr(e, t) {
1753
+ function fr(e, t) {
1754
1754
  return new e({
1755
1755
  type: "string",
1756
1756
  format: "cidrv6",
@@ -1760,7 +1760,7 @@ function mr(e, t) {
1760
1760
  });
1761
1761
  }
1762
1762
  // @__NO_SIDE_EFFECTS__
1763
- function hr(e, t) {
1763
+ function pr(e, t) {
1764
1764
  return new e({
1765
1765
  type: "string",
1766
1766
  format: "base64",
@@ -1770,7 +1770,7 @@ function hr(e, t) {
1770
1770
  });
1771
1771
  }
1772
1772
  // @__NO_SIDE_EFFECTS__
1773
- function gr(e, t) {
1773
+ function mr(e, t) {
1774
1774
  return new e({
1775
1775
  type: "string",
1776
1776
  format: "base64url",
@@ -1780,7 +1780,7 @@ function gr(e, t) {
1780
1780
  });
1781
1781
  }
1782
1782
  // @__NO_SIDE_EFFECTS__
1783
- function _r(e, t) {
1783
+ function hr(e, t) {
1784
1784
  return new e({
1785
1785
  type: "string",
1786
1786
  format: "e164",
@@ -1790,7 +1790,7 @@ function _r(e, t) {
1790
1790
  });
1791
1791
  }
1792
1792
  // @__NO_SIDE_EFFECTS__
1793
- function vr(e, t) {
1793
+ function gr(e, t) {
1794
1794
  return new e({
1795
1795
  type: "string",
1796
1796
  format: "jwt",
@@ -1800,7 +1800,7 @@ function vr(e, t) {
1800
1800
  });
1801
1801
  }
1802
1802
  // @__NO_SIDE_EFFECTS__
1803
- function yr(e, t) {
1803
+ function _r(e, t) {
1804
1804
  return new e({
1805
1805
  type: "string",
1806
1806
  format: "datetime",
@@ -1812,7 +1812,7 @@ function yr(e, t) {
1812
1812
  });
1813
1813
  }
1814
1814
  // @__NO_SIDE_EFFECTS__
1815
- function br(e, t) {
1815
+ function vr(e, t) {
1816
1816
  return new e({
1817
1817
  type: "string",
1818
1818
  format: "date",
@@ -1821,7 +1821,7 @@ function br(e, t) {
1821
1821
  });
1822
1822
  }
1823
1823
  // @__NO_SIDE_EFFECTS__
1824
- function xr(e, t) {
1824
+ function yr(e, t) {
1825
1825
  return new e({
1826
1826
  type: "string",
1827
1827
  format: "time",
@@ -1831,7 +1831,7 @@ function xr(e, t) {
1831
1831
  });
1832
1832
  }
1833
1833
  // @__NO_SIDE_EFFECTS__
1834
- function Sr(e, t) {
1834
+ function br(e, t) {
1835
1835
  return new e({
1836
1836
  type: "string",
1837
1837
  format: "duration",
@@ -1840,7 +1840,7 @@ function Sr(e, t) {
1840
1840
  });
1841
1841
  }
1842
1842
  // @__NO_SIDE_EFFECTS__
1843
- function Cr(e, t) {
1843
+ function xr(e, t) {
1844
1844
  return new e({
1845
1845
  type: "number",
1846
1846
  checks: [],
@@ -1848,7 +1848,7 @@ function Cr(e, t) {
1848
1848
  });
1849
1849
  }
1850
1850
  // @__NO_SIDE_EFFECTS__
1851
- function wr(e, t) {
1851
+ function Sr(e, t) {
1852
1852
  return new e({
1853
1853
  type: "number",
1854
1854
  coerce: !0,
@@ -1857,7 +1857,7 @@ function wr(e, t) {
1857
1857
  });
1858
1858
  }
1859
1859
  // @__NO_SIDE_EFFECTS__
1860
- function Tr(e, t) {
1860
+ function Cr(e, t) {
1861
1861
  return new e({
1862
1862
  type: "number",
1863
1863
  check: "number_format",
@@ -1867,30 +1867,30 @@ function Tr(e, t) {
1867
1867
  });
1868
1868
  }
1869
1869
  // @__NO_SIDE_EFFECTS__
1870
- function Er(e, t) {
1870
+ function wr(e, t) {
1871
1871
  return new e({
1872
1872
  type: "boolean",
1873
1873
  ...y(t)
1874
1874
  });
1875
1875
  }
1876
1876
  // @__NO_SIDE_EFFECTS__
1877
- function Dr(e) {
1877
+ function Tr(e) {
1878
1878
  return new e({ type: "any" });
1879
1879
  }
1880
1880
  // @__NO_SIDE_EFFECTS__
1881
- function Or(e) {
1881
+ function Er(e) {
1882
1882
  return new e({ type: "unknown" });
1883
1883
  }
1884
1884
  // @__NO_SIDE_EFFECTS__
1885
- function kr(e, t) {
1885
+ function Dr(e, t) {
1886
1886
  return new e({
1887
1887
  type: "never",
1888
1888
  ...y(t)
1889
1889
  });
1890
1890
  }
1891
1891
  // @__NO_SIDE_EFFECTS__
1892
- function Ar(e, t) {
1893
- return new bt({
1892
+ function Or(e, t) {
1893
+ return new _t({
1894
1894
  check: "less_than",
1895
1895
  ...y(t),
1896
1896
  value: e,
@@ -1898,8 +1898,8 @@ function Ar(e, t) {
1898
1898
  });
1899
1899
  }
1900
1900
  // @__NO_SIDE_EFFECTS__
1901
- function jr(e, t) {
1902
- return new bt({
1901
+ function kr(e, t) {
1902
+ return new _t({
1903
1903
  check: "less_than",
1904
1904
  ...y(t),
1905
1905
  value: e,
@@ -1907,8 +1907,8 @@ function jr(e, t) {
1907
1907
  });
1908
1908
  }
1909
1909
  // @__NO_SIDE_EFFECTS__
1910
- function Mr(e, t) {
1911
- return new xt({
1910
+ function Ar(e, t) {
1911
+ return new vt({
1912
1912
  check: "greater_than",
1913
1913
  ...y(t),
1914
1914
  value: e,
@@ -1916,8 +1916,8 @@ function Mr(e, t) {
1916
1916
  });
1917
1917
  }
1918
1918
  // @__NO_SIDE_EFFECTS__
1919
- function Nr(e, t) {
1920
- return new xt({
1919
+ function jr(e, t) {
1920
+ return new vt({
1921
1921
  check: "greater_than",
1922
1922
  ...y(t),
1923
1923
  value: e,
@@ -1925,40 +1925,40 @@ function Nr(e, t) {
1925
1925
  });
1926
1926
  }
1927
1927
  // @__NO_SIDE_EFFECTS__
1928
- function Pr(e, t) {
1929
- return new St({
1928
+ function Mr(e, t) {
1929
+ return new yt({
1930
1930
  check: "multiple_of",
1931
1931
  ...y(t),
1932
1932
  value: e
1933
1933
  });
1934
1934
  }
1935
1935
  // @__NO_SIDE_EFFECTS__
1936
- function Fr(e, t) {
1937
- return new wt({
1936
+ function Nr(e, t) {
1937
+ return new xt({
1938
1938
  check: "max_length",
1939
1939
  ...y(t),
1940
1940
  maximum: e
1941
1941
  });
1942
1942
  }
1943
1943
  // @__NO_SIDE_EFFECTS__
1944
- function Ir(e, t) {
1945
- return new Tt({
1944
+ function Pr(e, t) {
1945
+ return new St({
1946
1946
  check: "min_length",
1947
1947
  ...y(t),
1948
1948
  minimum: e
1949
1949
  });
1950
1950
  }
1951
1951
  // @__NO_SIDE_EFFECTS__
1952
- function Lr(e, t) {
1953
- return new Et({
1952
+ function Fr(e, t) {
1953
+ return new Ct({
1954
1954
  check: "length_equals",
1955
1955
  ...y(t),
1956
1956
  length: e
1957
1957
  });
1958
1958
  }
1959
1959
  // @__NO_SIDE_EFFECTS__
1960
- function Rr(e, t) {
1961
- return new Dt({
1960
+ function Ir(e, t) {
1961
+ return new Tt({
1962
1962
  check: "string_format",
1963
1963
  format: "regex",
1964
1964
  ...y(t),
@@ -1966,24 +1966,24 @@ function Rr(e, t) {
1966
1966
  });
1967
1967
  }
1968
1968
  // @__NO_SIDE_EFFECTS__
1969
- function zr(e) {
1970
- return new Ot({
1969
+ function Lr(e) {
1970
+ return new Et({
1971
1971
  check: "string_format",
1972
1972
  format: "lowercase",
1973
1973
  ...y(e)
1974
1974
  });
1975
1975
  }
1976
1976
  // @__NO_SIDE_EFFECTS__
1977
- function Br(e) {
1978
- return new kt({
1977
+ function Rr(e) {
1978
+ return new Dt({
1979
1979
  check: "string_format",
1980
1980
  format: "uppercase",
1981
1981
  ...y(e)
1982
1982
  });
1983
1983
  }
1984
1984
  // @__NO_SIDE_EFFECTS__
1985
- function Vr(e, t) {
1986
- return new At({
1985
+ function zr(e, t) {
1986
+ return new Ot({
1987
1987
  check: "string_format",
1988
1988
  format: "includes",
1989
1989
  ...y(t),
@@ -1991,8 +1991,8 @@ function Vr(e, t) {
1991
1991
  });
1992
1992
  }
1993
1993
  // @__NO_SIDE_EFFECTS__
1994
- function Hr(e, t) {
1995
- return new jt({
1994
+ function Br(e, t) {
1995
+ return new kt({
1996
1996
  check: "string_format",
1997
1997
  format: "starts_with",
1998
1998
  ...y(t),
@@ -2000,8 +2000,8 @@ function Hr(e, t) {
2000
2000
  });
2001
2001
  }
2002
2002
  // @__NO_SIDE_EFFECTS__
2003
- function Ur(e, t) {
2004
- return new Mt({
2003
+ function Vr(e, t) {
2004
+ return new At({
2005
2005
  check: "string_format",
2006
2006
  format: "ends_with",
2007
2007
  ...y(t),
@@ -2009,34 +2009,34 @@ function Ur(e, t) {
2009
2009
  });
2010
2010
  }
2011
2011
  // @__NO_SIDE_EFFECTS__
2012
- function O(e) {
2013
- return new Nt({
2012
+ function A(e) {
2013
+ return new jt({
2014
2014
  check: "overwrite",
2015
2015
  tx: e
2016
2016
  });
2017
2017
  }
2018
2018
  // @__NO_SIDE_EFFECTS__
2019
- function Wr(e) {
2020
- return /* @__PURE__ */ O((t) => t.normalize(e));
2019
+ function Hr(e) {
2020
+ return /* @__PURE__ */ A((t) => t.normalize(e));
2021
2021
  }
2022
2022
  // @__NO_SIDE_EFFECTS__
2023
- function Gr() {
2024
- return /* @__PURE__ */ O((e) => e.trim());
2023
+ function Ur() {
2024
+ return /* @__PURE__ */ A((e) => e.trim());
2025
2025
  }
2026
2026
  // @__NO_SIDE_EFFECTS__
2027
- function Kr() {
2028
- return /* @__PURE__ */ O((e) => e.toLowerCase());
2027
+ function Wr() {
2028
+ return /* @__PURE__ */ A((e) => e.toLowerCase());
2029
2029
  }
2030
2030
  // @__NO_SIDE_EFFECTS__
2031
- function qr() {
2032
- return /* @__PURE__ */ O((e) => e.toUpperCase());
2031
+ function Gr() {
2032
+ return /* @__PURE__ */ A((e) => e.toUpperCase());
2033
2033
  }
2034
2034
  // @__NO_SIDE_EFFECTS__
2035
- function Jr() {
2036
- return /* @__PURE__ */ O((e) => re(e));
2035
+ function Kr() {
2036
+ return /* @__PURE__ */ A((e) => re(e));
2037
2037
  }
2038
2038
  // @__NO_SIDE_EFFECTS__
2039
- function Yr(e, t, n) {
2039
+ function qr(e, t, n) {
2040
2040
  return new e({
2041
2041
  type: "array",
2042
2042
  element: t,
@@ -2044,7 +2044,7 @@ function Yr(e, t, n) {
2044
2044
  });
2045
2045
  }
2046
2046
  // @__NO_SIDE_EFFECTS__
2047
- function Xr(e, t, n) {
2047
+ function Jr(e, t, n) {
2048
2048
  return new e({
2049
2049
  type: "custom",
2050
2050
  check: "custom",
@@ -2053,19 +2053,19 @@ function Xr(e, t, n) {
2053
2053
  });
2054
2054
  }
2055
2055
  // @__NO_SIDE_EFFECTS__
2056
- function Zr(e, t) {
2057
- let n = /* @__PURE__ */ Qr((t) => (t.addIssue = (e) => {
2058
- if (typeof e == "string") t.issues.push(S(e, t.value, n._zod.def));
2056
+ function Yr(e, t) {
2057
+ let n = /* @__PURE__ */ Xr((t) => (t.addIssue = (e) => {
2058
+ if (typeof e == "string") t.issues.push(C(e, t.value, n._zod.def));
2059
2059
  else {
2060
2060
  let r = e;
2061
- r.fatal && (r.continue = !1), r.code ??= "custom", r.input ??= t.value, r.inst ??= n, r.continue ??= !n._zod.def.abort, t.issues.push(S(r));
2061
+ r.fatal && (r.continue = !1), r.code ??= "custom", r.input ??= t.value, r.inst ??= n, r.continue ??= !n._zod.def.abort, t.issues.push(C(r));
2062
2062
  }
2063
2063
  }, e(t.value, t)), t);
2064
2064
  return n;
2065
2065
  }
2066
2066
  // @__NO_SIDE_EFFECTS__
2067
- function Qr(e, t) {
2068
- let n = new C({
2067
+ function Xr(e, t) {
2068
+ let n = new E({
2069
2069
  check: "custom",
2070
2070
  ...y(t)
2071
2071
  });
@@ -2073,11 +2073,11 @@ function Qr(e, t) {
2073
2073
  }
2074
2074
  //#endregion
2075
2075
  //#region ../../node_modules/zod/v4/core/to-json-schema.js
2076
- function $r(e) {
2076
+ function Zr(e) {
2077
2077
  let t = e?.target ?? "draft-2020-12";
2078
2078
  return t === "draft-4" && (t = "draft-04"), t === "draft-7" && (t = "draft-07"), {
2079
2079
  processors: e.processors ?? {},
2080
- metadataRegistry: e?.metadata ?? D,
2080
+ metadataRegistry: e?.metadata ?? k,
2081
2081
  target: t,
2082
2082
  unrepresentable: e?.unrepresentable ?? "throw",
2083
2083
  override: e?.override ?? (() => {}),
@@ -2089,7 +2089,7 @@ function $r(e) {
2089
2089
  external: e?.external ?? void 0
2090
2090
  };
2091
2091
  }
2092
- function k(e, t, n = {
2092
+ function j(e, t, n = {
2093
2093
  path: [],
2094
2094
  schemaPath: []
2095
2095
  }) {
@@ -2118,12 +2118,12 @@ function k(e, t, n = {
2118
2118
  a(e, t, n, r);
2119
2119
  }
2120
2120
  let a = e._zod.parent;
2121
- a && (o.ref ||= a, k(a, t, r), t.seen.get(a).isParent = !0);
2121
+ a && (o.ref ||= a, j(a, t, r), t.seen.get(a).isParent = !0);
2122
2122
  }
2123
2123
  let c = t.metadataRegistry.get(e);
2124
- return c && Object.assign(o.schema, c), t.io === "input" && A(e) && (delete o.schema.examples, delete o.schema.default), t.io === "input" && "_prefault" in o.schema && ((r = o.schema).default ?? (r.default = o.schema._prefault)), delete o.schema._prefault, t.seen.get(e).schema;
2124
+ return c && Object.assign(o.schema, c), t.io === "input" && M(e) && (delete o.schema.examples, delete o.schema.default), t.io === "input" && "_prefault" in o.schema && ((r = o.schema).default ?? (r.default = o.schema._prefault)), delete o.schema._prefault, t.seen.get(e).schema;
2125
2125
  }
2126
- function ei(e, t) {
2126
+ function Qr(e, t) {
2127
2127
  let n = e.seen.get(t);
2128
2128
  if (!n) throw Error("Unprocessed schema. This is a bug in Zod.");
2129
2129
  let r = /* @__PURE__ */ new Map();
@@ -2193,7 +2193,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
2193
2193
  }
2194
2194
  }
2195
2195
  }
2196
- function ti(e, t) {
2196
+ function $r(e, t) {
2197
2197
  let n = e.seen.get(t);
2198
2198
  if (!n) throw Error("Unprocessed schema. This is a bug in Zod.");
2199
2199
  let r = (t) => {
@@ -2240,8 +2240,8 @@ function ti(e, t) {
2240
2240
  value: {
2241
2241
  ...t["~standard"],
2242
2242
  jsonSchema: {
2243
- input: ri(t, "input", e.processors),
2244
- output: ri(t, "output", e.processors)
2243
+ input: ti(t, "input", e.processors),
2244
+ output: ti(t, "output", e.processors)
2245
2245
  }
2246
2246
  },
2247
2247
  enumerable: !1,
@@ -2251,91 +2251,91 @@ function ti(e, t) {
2251
2251
  throw Error("Error converting schema to JSON.");
2252
2252
  }
2253
2253
  }
2254
- function A(e, t) {
2254
+ function M(e, t) {
2255
2255
  let n = t ?? { seen: /* @__PURE__ */ new Set() };
2256
2256
  if (n.seen.has(e)) return !1;
2257
2257
  n.seen.add(e);
2258
2258
  let r = e._zod.def;
2259
2259
  if (r.type === "transform") return !0;
2260
- if (r.type === "array") return A(r.element, n);
2261
- if (r.type === "set") return A(r.valueType, n);
2262
- if (r.type === "lazy") return A(r.getter(), n);
2263
- if (r.type === "promise" || r.type === "optional" || r.type === "nonoptional" || r.type === "nullable" || r.type === "readonly" || r.type === "default" || r.type === "prefault") return A(r.innerType, n);
2264
- if (r.type === "intersection") return A(r.left, n) || A(r.right, n);
2265
- if (r.type === "record" || r.type === "map") return A(r.keyType, n) || A(r.valueType, n);
2266
- if (r.type === "pipe") return e._zod.traits.has("$ZodCodec") ? !0 : A(r.in, n) || A(r.out, n);
2260
+ if (r.type === "array") return M(r.element, n);
2261
+ if (r.type === "set") return M(r.valueType, n);
2262
+ if (r.type === "lazy") return M(r.getter(), n);
2263
+ if (r.type === "promise" || r.type === "optional" || r.type === "nonoptional" || r.type === "nullable" || r.type === "readonly" || r.type === "default" || r.type === "prefault") return M(r.innerType, n);
2264
+ if (r.type === "intersection") return M(r.left, n) || M(r.right, n);
2265
+ if (r.type === "record" || r.type === "map") return M(r.keyType, n) || M(r.valueType, n);
2266
+ if (r.type === "pipe") return e._zod.traits.has("$ZodCodec") ? !0 : M(r.in, n) || M(r.out, n);
2267
2267
  if (r.type === "object") {
2268
- for (let e in r.shape) if (A(r.shape[e], n)) return !0;
2268
+ for (let e in r.shape) if (M(r.shape[e], n)) return !0;
2269
2269
  return !1;
2270
2270
  }
2271
2271
  if (r.type === "union") {
2272
- for (let e of r.options) if (A(e, n)) return !0;
2272
+ for (let e of r.options) if (M(e, n)) return !0;
2273
2273
  return !1;
2274
2274
  }
2275
2275
  if (r.type === "tuple") {
2276
- for (let e of r.items) if (A(e, n)) return !0;
2277
- return !!(r.rest && A(r.rest, n));
2276
+ for (let e of r.items) if (M(e, n)) return !0;
2277
+ return !!(r.rest && M(r.rest, n));
2278
2278
  }
2279
2279
  return !1;
2280
2280
  }
2281
- var ni = (e, t = {}) => (n) => {
2282
- let r = $r({
2281
+ var ei = (e, t = {}) => (n) => {
2282
+ let r = Zr({
2283
2283
  ...n,
2284
2284
  processors: t
2285
2285
  });
2286
- return k(e, r), ei(r, e), ti(r, e);
2287
- }, ri = (e, t, n = {}) => (r) => {
2288
- let { libraryOptions: i, target: a } = r ?? {}, o = $r({
2286
+ return j(e, r), Qr(r, e), $r(r, e);
2287
+ }, ti = (e, t, n = {}) => (r) => {
2288
+ let { libraryOptions: i, target: a } = r ?? {}, o = Zr({
2289
2289
  ...i ?? {},
2290
2290
  target: a,
2291
2291
  io: t,
2292
2292
  processors: n
2293
2293
  });
2294
- return k(e, o), ei(o, e), ti(o, e);
2295
- }, ii = {
2294
+ return j(e, o), Qr(o, e), $r(o, e);
2295
+ }, ni = {
2296
2296
  guid: "uuid",
2297
2297
  url: "uri",
2298
2298
  datetime: "date-time",
2299
2299
  json_string: "json-string",
2300
2300
  regex: ""
2301
- }, ai = (e, t, n, r) => {
2301
+ }, ri = (e, t, n, r) => {
2302
2302
  let i = n;
2303
2303
  i.type = "string";
2304
2304
  let { minimum: a, maximum: o, format: s, patterns: c, contentEncoding: l } = e._zod.bag;
2305
- if (typeof a == "number" && (i.minLength = a), typeof o == "number" && (i.maxLength = o), s && (i.format = ii[s] ?? s, i.format === "" && delete i.format, s === "time" && delete i.format), l && (i.contentEncoding = l), c && c.size > 0) {
2305
+ if (typeof a == "number" && (i.minLength = a), typeof o == "number" && (i.maxLength = o), s && (i.format = ni[s] ?? s, i.format === "" && delete i.format, s === "time" && delete i.format), l && (i.contentEncoding = l), c && c.size > 0) {
2306
2306
  let e = [...c];
2307
2307
  e.length === 1 ? i.pattern = e[0].source : e.length > 1 && (i.allOf = [...e.map((e) => ({
2308
2308
  ...t.target === "draft-07" || t.target === "draft-04" || t.target === "openapi-3.0" ? { type: "string" } : {},
2309
2309
  pattern: e.source
2310
2310
  }))]);
2311
2311
  }
2312
- }, oi = (e, t, n, r) => {
2312
+ }, ii = (e, t, n, r) => {
2313
2313
  let i = n, { minimum: a, maximum: o, format: s, multipleOf: c, exclusiveMaximum: l, exclusiveMinimum: u } = e._zod.bag;
2314
2314
  typeof s == "string" && s.includes("int") ? i.type = "integer" : i.type = "number";
2315
2315
  let d = typeof u == "number" && u >= (a ?? -Infinity), f = typeof l == "number" && l <= (o ?? Infinity), p = t.target === "draft-04" || t.target === "openapi-3.0";
2316
2316
  d ? p ? (i.minimum = u, i.exclusiveMinimum = !0) : i.exclusiveMinimum = u : typeof a == "number" && (i.minimum = a), f ? p ? (i.maximum = l, i.exclusiveMaximum = !0) : i.exclusiveMaximum = l : typeof o == "number" && (i.maximum = o), typeof c == "number" && (i.multipleOf = c);
2317
- }, si = (e, t, n, r) => {
2317
+ }, ai = (e, t, n, r) => {
2318
2318
  n.type = "boolean";
2319
- }, ci = (e, t, n, r) => {
2319
+ }, oi = (e, t, n, r) => {
2320
2320
  n.not = {};
2321
- }, li = (e, t, n, r) => {
2321
+ }, si = (e, t, n, r) => {
2322
2322
  let i = e._zod.def, a = l(i.entries);
2323
2323
  a.every((e) => typeof e == "number") && (n.type = "number"), a.every((e) => typeof e == "string") && (n.type = "string"), n.enum = a;
2324
- }, ui = (e, t, n, r) => {
2324
+ }, ci = (e, t, n, r) => {
2325
2325
  if (t.unrepresentable === "throw") throw Error("Custom types cannot be represented in JSON Schema");
2326
- }, di = (e, t, n, r) => {
2326
+ }, li = (e, t, n, r) => {
2327
2327
  if (t.unrepresentable === "throw") throw Error("Transforms cannot be represented in JSON Schema");
2328
- }, fi = (e, t, n, r) => {
2328
+ }, ui = (e, t, n, r) => {
2329
2329
  let i = n, a = e._zod.def, { minimum: o, maximum: s } = e._zod.bag;
2330
- typeof o == "number" && (i.minItems = o), typeof s == "number" && (i.maxItems = s), i.type = "array", i.items = k(a.element, t, {
2330
+ typeof o == "number" && (i.minItems = o), typeof s == "number" && (i.maxItems = s), i.type = "array", i.items = j(a.element, t, {
2331
2331
  ...r,
2332
2332
  path: [...r.path, "items"]
2333
2333
  });
2334
- }, pi = (e, t, n, r) => {
2334
+ }, di = (e, t, n, r) => {
2335
2335
  let i = n, a = e._zod.def;
2336
2336
  i.type = "object", i.properties = {};
2337
2337
  let o = a.shape;
2338
- for (let e in o) i.properties[e] = k(o[e], t, {
2338
+ for (let e in o) i.properties[e] = j(o[e], t, {
2339
2339
  ...r,
2340
2340
  path: [
2341
2341
  ...r.path,
@@ -2347,12 +2347,12 @@ var ni = (e, t = {}) => (n) => {
2347
2347
  let n = a.shape[e]._zod;
2348
2348
  return t.io === "input" ? n.optin === void 0 : n.optout === void 0;
2349
2349
  }));
2350
- c.size > 0 && (i.required = Array.from(c)), a.catchall?._zod.def.type === "never" ? i.additionalProperties = !1 : a.catchall ? a.catchall && (i.additionalProperties = k(a.catchall, t, {
2350
+ c.size > 0 && (i.required = Array.from(c)), a.catchall?._zod.def.type === "never" ? i.additionalProperties = !1 : a.catchall ? a.catchall && (i.additionalProperties = j(a.catchall, t, {
2351
2351
  ...r,
2352
2352
  path: [...r.path, "additionalProperties"]
2353
2353
  })) : t.io === "output" && (i.additionalProperties = !1);
2354
- }, mi = (e, t, n, r) => {
2355
- let i = e._zod.def, a = i.inclusive === !1, o = i.options.map((e, n) => k(e, t, {
2354
+ }, fi = (e, t, n, r) => {
2355
+ let i = e._zod.def, a = i.inclusive === !1, o = i.options.map((e, n) => j(e, t, {
2356
2356
  ...r,
2357
2357
  path: [
2358
2358
  ...r.path,
@@ -2361,15 +2361,15 @@ var ni = (e, t = {}) => (n) => {
2361
2361
  ]
2362
2362
  }));
2363
2363
  a ? n.oneOf = o : n.anyOf = o;
2364
- }, hi = (e, t, n, r) => {
2365
- let i = e._zod.def, a = k(i.left, t, {
2364
+ }, pi = (e, t, n, r) => {
2365
+ let i = e._zod.def, a = j(i.left, t, {
2366
2366
  ...r,
2367
2367
  path: [
2368
2368
  ...r.path,
2369
2369
  "allOf",
2370
2370
  0
2371
2371
  ]
2372
- }), o = k(i.right, t, {
2372
+ }), o = j(i.right, t, {
2373
2373
  ...r,
2374
2374
  path: [
2375
2375
  ...r.path,
@@ -2378,27 +2378,27 @@ var ni = (e, t = {}) => (n) => {
2378
2378
  ]
2379
2379
  }), s = (e) => "allOf" in e && Object.keys(e).length === 1;
2380
2380
  n.allOf = [...s(a) ? a.allOf : [a], ...s(o) ? o.allOf : [o]];
2381
- }, gi = (e, t, n, r) => {
2382
- let i = e._zod.def, a = k(i.innerType, t, r), o = t.seen.get(e);
2381
+ }, mi = (e, t, n, r) => {
2382
+ let i = e._zod.def, a = j(i.innerType, t, r), o = t.seen.get(e);
2383
2383
  t.target === "openapi-3.0" ? (o.ref = i.innerType, n.nullable = !0) : n.anyOf = [a, { type: "null" }];
2384
- }, _i = (e, t, n, r) => {
2384
+ }, hi = (e, t, n, r) => {
2385
2385
  let i = e._zod.def;
2386
- k(i.innerType, t, r);
2386
+ j(i.innerType, t, r);
2387
2387
  let a = t.seen.get(e);
2388
2388
  a.ref = i.innerType;
2389
- }, vi = (e, t, n, r) => {
2389
+ }, gi = (e, t, n, r) => {
2390
2390
  let i = e._zod.def;
2391
- k(i.innerType, t, r);
2391
+ j(i.innerType, t, r);
2392
2392
  let a = t.seen.get(e);
2393
2393
  a.ref = i.innerType, n.default = JSON.parse(JSON.stringify(i.defaultValue));
2394
- }, yi = (e, t, n, r) => {
2394
+ }, _i = (e, t, n, r) => {
2395
2395
  let i = e._zod.def;
2396
- k(i.innerType, t, r);
2396
+ j(i.innerType, t, r);
2397
2397
  let a = t.seen.get(e);
2398
2398
  a.ref = i.innerType, t.io === "input" && (n._prefault = JSON.parse(JSON.stringify(i.defaultValue)));
2399
- }, bi = (e, t, n, r) => {
2399
+ }, vi = (e, t, n, r) => {
2400
2400
  let i = e._zod.def;
2401
- k(i.innerType, t, r);
2401
+ j(i.innerType, t, r);
2402
2402
  let a = t.seen.get(e);
2403
2403
  a.ref = i.innerType;
2404
2404
  let o;
@@ -2408,49 +2408,49 @@ var ni = (e, t = {}) => (n) => {
2408
2408
  throw Error("Dynamic catch values are not supported in JSON Schema");
2409
2409
  }
2410
2410
  n.default = o;
2411
- }, xi = (e, t, n, r) => {
2411
+ }, yi = (e, t, n, r) => {
2412
2412
  let i = e._zod.def, a = i.in._zod.traits.has("$ZodTransform"), o = t.io === "input" ? a ? i.out : i.in : i.out;
2413
- k(o, t, r);
2413
+ j(o, t, r);
2414
2414
  let s = t.seen.get(e);
2415
2415
  s.ref = o;
2416
- }, Si = (e, t, n, r) => {
2416
+ }, bi = (e, t, n, r) => {
2417
2417
  let i = e._zod.def;
2418
- k(i.innerType, t, r);
2418
+ j(i.innerType, t, r);
2419
2419
  let a = t.seen.get(e);
2420
2420
  a.ref = i.innerType, n.readOnly = !0;
2421
- }, Ci = (e, t, n, r) => {
2421
+ }, xi = (e, t, n, r) => {
2422
2422
  let i = e._zod.def;
2423
- k(i.innerType, t, r);
2423
+ j(i.innerType, t, r);
2424
2424
  let a = t.seen.get(e);
2425
2425
  a.ref = i.innerType;
2426
- }, wi = /*@__PURE__*/ i("ZodISODateTime", (e, t) => {
2427
- Jt.init(e, t), F.init(e, t);
2426
+ }, Si = /*@__PURE__*/ i("ZodISODateTime", (e, t) => {
2427
+ Kt.init(e, t), L.init(e, t);
2428
+ });
2429
+ function Ci(e) {
2430
+ return /* @__PURE__ */ _r(Si, e);
2431
+ }
2432
+ var wi = /*@__PURE__*/ i("ZodISODate", (e, t) => {
2433
+ qt.init(e, t), L.init(e, t);
2428
2434
  });
2429
2435
  function Ti(e) {
2430
- return /* @__PURE__ */ yr(wi, e);
2436
+ return /* @__PURE__ */ vr(wi, e);
2431
2437
  }
2432
- var Ei = /*@__PURE__*/ i("ZodISODate", (e, t) => {
2433
- Yt.init(e, t), F.init(e, t);
2438
+ var Ei = /*@__PURE__*/ i("ZodISOTime", (e, t) => {
2439
+ Jt.init(e, t), L.init(e, t);
2434
2440
  });
2435
2441
  function Di(e) {
2436
- return /* @__PURE__ */ br(Ei, e);
2442
+ return /* @__PURE__ */ yr(Ei, e);
2437
2443
  }
2438
- var Oi = /*@__PURE__*/ i("ZodISOTime", (e, t) => {
2439
- Xt.init(e, t), F.init(e, t);
2444
+ var Oi = /*@__PURE__*/ i("ZodISODuration", (e, t) => {
2445
+ Yt.init(e, t), L.init(e, t);
2440
2446
  });
2441
2447
  function ki(e) {
2442
- return /* @__PURE__ */ xr(Oi, e);
2443
- }
2444
- var Ai = /*@__PURE__*/ i("ZodISODuration", (e, t) => {
2445
- Zt.init(e, t), F.init(e, t);
2446
- });
2447
- function ji(e) {
2448
- return /* @__PURE__ */ Sr(Ai, e);
2448
+ return /* @__PURE__ */ br(Oi, e);
2449
2449
  }
2450
- var j = /*@__PURE__*/ i("ZodError", (e, t) => {
2451
- we.init(e, t), e.name = "ZodError", Object.defineProperties(e, {
2452
- format: { value: (t) => De(e, t) },
2453
- flatten: { value: (t) => Ee(e, t) },
2450
+ var N = /*@__PURE__*/ i("ZodError", (e, t) => {
2451
+ Ce.init(e, t), e.name = "ZodError", Object.defineProperties(e, {
2452
+ format: { value: (t) => Ee(e, t) },
2453
+ flatten: { value: (t) => Te(e, t) },
2454
2454
  addIssue: { value: (t) => {
2455
2455
  e.issues.push(t), e.message = JSON.stringify(e.issues, u, 2);
2456
2456
  } },
@@ -2461,10 +2461,10 @@ var j = /*@__PURE__*/ i("ZodError", (e, t) => {
2461
2461
  return e.issues.length === 0;
2462
2462
  } }
2463
2463
  });
2464
- }, { Parent: Error }), Mi = /* @__PURE__ */ Oe(j), Ni = /* @__PURE__ */ ke(j), Pi = /* @__PURE__ */ Ae(j), Fi = /* @__PURE__ */ Me(j), Ii = /* @__PURE__ */ Pe(j), Li = /* @__PURE__ */ Fe(j), Ri = /* @__PURE__ */ Ie(j), zi = /* @__PURE__ */ Le(j), Bi = /* @__PURE__ */ Re(j), Vi = /* @__PURE__ */ ze(j), Hi = /* @__PURE__ */ Be(j), Ui = /* @__PURE__ */ Ve(j), Wi = /* @__PURE__ */ new WeakMap();
2465
- function M(e, t, n) {
2466
- let r = Object.getPrototypeOf(e), i = Wi.get(r);
2467
- if (i || (i = /* @__PURE__ */ new Set(), Wi.set(r, i)), !i.has(t)) {
2464
+ }, { Parent: Error }), Ai = /* @__PURE__ */ De(N), ji = /* @__PURE__ */ Oe(N), Mi = /* @__PURE__ */ w(N), Ni = /* @__PURE__ */ T(N), Pi = /* @__PURE__ */ je(N), Fi = /* @__PURE__ */ Me(N), Ii = /* @__PURE__ */ Ne(N), Li = /* @__PURE__ */ Pe(N), Ri = /* @__PURE__ */ Fe(N), zi = /* @__PURE__ */ Ie(N), Bi = /* @__PURE__ */ Le(N), Vi = /* @__PURE__ */ Re(N), Hi = /* @__PURE__ */ new WeakMap();
2465
+ function P(e, t, n) {
2466
+ let r = Object.getPrototypeOf(e), i = Hi.get(r);
2467
+ if (i || (i = /* @__PURE__ */ new Set(), Hi.set(r, i)), !i.has(t)) {
2468
2468
  i.add(t);
2469
2469
  for (let e in n) {
2470
2470
  let t = n[e];
@@ -2492,10 +2492,10 @@ function M(e, t, n) {
2492
2492
  }
2493
2493
  }
2494
2494
  }
2495
- var N = /*@__PURE__*/ i("ZodType", (e, t) => (T.init(e, t), Object.assign(e["~standard"], { jsonSchema: {
2496
- input: ri(e, "input"),
2497
- output: ri(e, "output")
2498
- } }), e.toJSONSchema = ni(e, {}), e.def = t, e.type = t.type, Object.defineProperty(e, "_def", { value: t }), e.parse = (t, n) => Mi(e, t, n, { callee: e.parse }), e.safeParse = (t, n) => Pi(e, t, n), e.parseAsync = async (t, n) => Ni(e, t, n, { callee: e.parseAsync }), e.safeParseAsync = async (t, n) => Fi(e, t, n), e.spa = e.safeParseAsync, e.encode = (t, n) => Ii(e, t, n), e.decode = (t, n) => Li(e, t, n), e.encodeAsync = async (t, n) => Ri(e, t, n), e.decodeAsync = async (t, n) => zi(e, t, n), e.safeEncode = (t, n) => Bi(e, t, n), e.safeDecode = (t, n) => Vi(e, t, n), e.safeEncodeAsync = async (t, n) => Hi(e, t, n), e.safeDecodeAsync = async (t, n) => Ui(e, t, n), M(e, "ZodType", {
2495
+ var F = /*@__PURE__*/ i("ZodType", (e, t) => (D.init(e, t), Object.assign(e["~standard"], { jsonSchema: {
2496
+ input: ti(e, "input"),
2497
+ output: ti(e, "output")
2498
+ } }), e.toJSONSchema = ei(e, {}), e.def = t, e.type = t.type, Object.defineProperty(e, "_def", { value: t }), e.parse = (t, n) => Ai(e, t, n, { callee: e.parse }), e.safeParse = (t, n) => Mi(e, t, n), e.parseAsync = async (t, n) => ji(e, t, n, { callee: e.parseAsync }), e.safeParseAsync = async (t, n) => Ni(e, t, n), e.spa = e.safeParseAsync, e.encode = (t, n) => Pi(e, t, n), e.decode = (t, n) => Fi(e, t, n), e.encodeAsync = async (t, n) => Ii(e, t, n), e.decodeAsync = async (t, n) => Li(e, t, n), e.safeEncode = (t, n) => Ri(e, t, n), e.safeDecode = (t, n) => zi(e, t, n), e.safeEncodeAsync = async (t, n) => Bi(e, t, n), e.safeDecodeAsync = async (t, n) => Vi(e, t, n), P(e, "ZodType", {
2499
2499
  check(...e) {
2500
2500
  let t = this.def;
2501
2501
  return this.clone(g(t, { checks: [...t.checks ?? [], ...e.map((e) => typeof e == "function" ? { _zod: {
@@ -2517,64 +2517,64 @@ var N = /*@__PURE__*/ i("ZodType", (e, t) => (T.init(e, t), Object.assign(e["~st
2517
2517
  return e.add(this, t), this;
2518
2518
  },
2519
2519
  refine(e, t) {
2520
- return this.check($a(e, t));
2520
+ return this.check(Za(e, t));
2521
2521
  },
2522
2522
  superRefine(e, t) {
2523
- return this.check(eo(e, t));
2523
+ return this.check(Qa(e, t));
2524
2524
  },
2525
2525
  overwrite(e) {
2526
- return this.check(/* @__PURE__ */ O(e));
2526
+ return this.check(/* @__PURE__ */ A(e));
2527
2527
  },
2528
2528
  optional() {
2529
- return Pa(this);
2529
+ return Ma(this);
2530
2530
  },
2531
2531
  exactOptional() {
2532
- return Ia(this);
2532
+ return Pa(this);
2533
2533
  },
2534
2534
  nullable() {
2535
- return Ra(this);
2535
+ return Ia(this);
2536
2536
  },
2537
2537
  nullish() {
2538
- return Pa(Ra(this));
2538
+ return Ma(Ia(this));
2539
2539
  },
2540
2540
  nonoptional(e) {
2541
- return Wa(this, e);
2541
+ return Ha(this, e);
2542
2542
  },
2543
2543
  array() {
2544
- return Ca(this);
2544
+ return xa(this);
2545
2545
  },
2546
2546
  or(e) {
2547
- return Ea([this, e]);
2547
+ return wa([this, e]);
2548
2548
  },
2549
2549
  and(e) {
2550
- return Oa(this, e);
2550
+ return Ea(this, e);
2551
2551
  },
2552
2552
  transform(e) {
2553
- return Ja(this, Ma(e));
2553
+ return Ka(this, Aa(e));
2554
2554
  },
2555
2555
  default(e) {
2556
- return Ba(this, e);
2556
+ return Ra(this, e);
2557
2557
  },
2558
2558
  prefault(e) {
2559
- return Ha(this, e);
2559
+ return Ba(this, e);
2560
2560
  },
2561
2561
  catch(e) {
2562
- return Ka(this, e);
2562
+ return Wa(this, e);
2563
2563
  },
2564
2564
  pipe(e) {
2565
- return Ja(this, e);
2565
+ return Ka(this, e);
2566
2566
  },
2567
2567
  readonly() {
2568
- return Za(this);
2568
+ return Ya(this);
2569
2569
  },
2570
2570
  describe(e) {
2571
2571
  let t = this.clone();
2572
- return D.add(t, { description: e }), t;
2572
+ return k.add(t, { description: e }), t;
2573
2573
  },
2574
2574
  meta(...e) {
2575
- if (e.length === 0) return D.get(this);
2575
+ if (e.length === 0) return k.get(this);
2576
2576
  let t = this.clone();
2577
- return D.add(t, e[0]), t;
2577
+ return k.add(t, e[0]), t;
2578
2578
  },
2579
2579
  isOptional() {
2580
2580
  return this.safeParse(void 0).success;
@@ -2587,148 +2587,148 @@ var N = /*@__PURE__*/ i("ZodType", (e, t) => (T.init(e, t), Object.assign(e["~st
2587
2587
  }
2588
2588
  }), Object.defineProperty(e, "description", {
2589
2589
  get() {
2590
- return D.get(e)?.description;
2590
+ return k.get(e)?.description;
2591
2591
  },
2592
2592
  configurable: !0
2593
- }), e)), Gi = /*@__PURE__*/ i("_ZodString", (e, t) => {
2594
- It.init(e, t), N.init(e, t), e._zod.processJSONSchema = (t, n, r) => ai(e, t, n, r);
2593
+ }), e)), Ui = /*@__PURE__*/ i("_ZodString", (e, t) => {
2594
+ Pt.init(e, t), F.init(e, t), e._zod.processJSONSchema = (t, n, r) => ri(e, t, n, r);
2595
2595
  let n = e._zod.bag;
2596
- e.format = n.format ?? null, e.minLength = n.minimum ?? null, e.maxLength = n.maximum ?? null, M(e, "_ZodString", {
2596
+ e.format = n.format ?? null, e.minLength = n.minimum ?? null, e.maxLength = n.maximum ?? null, P(e, "_ZodString", {
2597
2597
  regex(...e) {
2598
- return this.check(/* @__PURE__ */ Rr(...e));
2598
+ return this.check(/* @__PURE__ */ Ir(...e));
2599
2599
  },
2600
2600
  includes(...e) {
2601
- return this.check(/* @__PURE__ */ Vr(...e));
2601
+ return this.check(/* @__PURE__ */ zr(...e));
2602
2602
  },
2603
2603
  startsWith(...e) {
2604
- return this.check(/* @__PURE__ */ Hr(...e));
2604
+ return this.check(/* @__PURE__ */ Br(...e));
2605
2605
  },
2606
2606
  endsWith(...e) {
2607
- return this.check(/* @__PURE__ */ Ur(...e));
2607
+ return this.check(/* @__PURE__ */ Vr(...e));
2608
2608
  },
2609
2609
  min(...e) {
2610
- return this.check(/* @__PURE__ */ Ir(...e));
2610
+ return this.check(/* @__PURE__ */ Pr(...e));
2611
2611
  },
2612
2612
  max(...e) {
2613
- return this.check(/* @__PURE__ */ Fr(...e));
2613
+ return this.check(/* @__PURE__ */ Nr(...e));
2614
2614
  },
2615
2615
  length(...e) {
2616
- return this.check(/* @__PURE__ */ Lr(...e));
2616
+ return this.check(/* @__PURE__ */ Fr(...e));
2617
2617
  },
2618
2618
  nonempty(...e) {
2619
- return this.check(/* @__PURE__ */ Ir(1, ...e));
2619
+ return this.check(/* @__PURE__ */ Pr(1, ...e));
2620
2620
  },
2621
2621
  lowercase(e) {
2622
- return this.check(/* @__PURE__ */ zr(e));
2622
+ return this.check(/* @__PURE__ */ Lr(e));
2623
2623
  },
2624
2624
  uppercase(e) {
2625
- return this.check(/* @__PURE__ */ Br(e));
2625
+ return this.check(/* @__PURE__ */ Rr(e));
2626
2626
  },
2627
2627
  trim() {
2628
- return this.check(/* @__PURE__ */ Gr());
2628
+ return this.check(/* @__PURE__ */ Ur());
2629
2629
  },
2630
2630
  normalize(...e) {
2631
- return this.check(/* @__PURE__ */ Wr(...e));
2631
+ return this.check(/* @__PURE__ */ Hr(...e));
2632
2632
  },
2633
2633
  toLowerCase() {
2634
- return this.check(/* @__PURE__ */ Kr());
2634
+ return this.check(/* @__PURE__ */ Wr());
2635
2635
  },
2636
2636
  toUpperCase() {
2637
- return this.check(/* @__PURE__ */ qr());
2637
+ return this.check(/* @__PURE__ */ Gr());
2638
2638
  },
2639
2639
  slugify() {
2640
- return this.check(/* @__PURE__ */ Jr());
2640
+ return this.check(/* @__PURE__ */ Kr());
2641
2641
  }
2642
2642
  });
2643
- }), Ki = /*@__PURE__*/ i("ZodString", (e, t) => {
2644
- It.init(e, t), Gi.init(e, t), e.email = (t) => e.check(/* @__PURE__ */ Zn(qi, t)), e.url = (t) => e.check(/* @__PURE__ */ rr(Xi, t)), e.jwt = (t) => e.check(/* @__PURE__ */ vr(da, t)), e.emoji = (t) => e.check(/* @__PURE__ */ ir(Zi, t)), e.guid = (t) => e.check(/* @__PURE__ */ Qn(Ji, t)), e.uuid = (t) => e.check(/* @__PURE__ */ $n(Yi, t)), e.uuidv4 = (t) => e.check(/* @__PURE__ */ er(Yi, t)), e.uuidv6 = (t) => e.check(/* @__PURE__ */ tr(Yi, t)), e.uuidv7 = (t) => e.check(/* @__PURE__ */ nr(Yi, t)), e.nanoid = (t) => e.check(/* @__PURE__ */ ar(Qi, t)), e.guid = (t) => e.check(/* @__PURE__ */ Qn(Ji, t)), e.cuid = (t) => e.check(/* @__PURE__ */ or($i, t)), e.cuid2 = (t) => e.check(/* @__PURE__ */ sr(ea, t)), e.ulid = (t) => e.check(/* @__PURE__ */ cr(ta, t)), e.base64 = (t) => e.check(/* @__PURE__ */ hr(ca, t)), e.base64url = (t) => e.check(/* @__PURE__ */ gr(la, t)), e.xid = (t) => e.check(/* @__PURE__ */ lr(na, t)), e.ksuid = (t) => e.check(/* @__PURE__ */ ur(ra, t)), e.ipv4 = (t) => e.check(/* @__PURE__ */ dr(ia, t)), e.ipv6 = (t) => e.check(/* @__PURE__ */ fr(aa, t)), e.cidrv4 = (t) => e.check(/* @__PURE__ */ pr(oa, t)), e.cidrv6 = (t) => e.check(/* @__PURE__ */ mr(sa, t)), e.e164 = (t) => e.check(/* @__PURE__ */ _r(ua, t)), e.datetime = (t) => e.check(Ti(t)), e.date = (t) => e.check(Di(t)), e.time = (t) => e.check(ki(t)), e.duration = (t) => e.check(ji(t));
2643
+ }), Wi = /*@__PURE__*/ i("ZodString", (e, t) => {
2644
+ Pt.init(e, t), Ui.init(e, t), e.email = (t) => e.check(/* @__PURE__ */ Yn(Gi, t)), e.url = (t) => e.check(/* @__PURE__ */ tr(Ji, t)), e.jwt = (t) => e.check(/* @__PURE__ */ gr(la, t)), e.emoji = (t) => e.check(/* @__PURE__ */ nr(Yi, t)), e.guid = (t) => e.check(/* @__PURE__ */ Xn(Ki, t)), e.uuid = (t) => e.check(/* @__PURE__ */ Zn(qi, t)), e.uuidv4 = (t) => e.check(/* @__PURE__ */ Qn(qi, t)), e.uuidv6 = (t) => e.check(/* @__PURE__ */ $n(qi, t)), e.uuidv7 = (t) => e.check(/* @__PURE__ */ er(qi, t)), e.nanoid = (t) => e.check(/* @__PURE__ */ rr(Xi, t)), e.guid = (t) => e.check(/* @__PURE__ */ Xn(Ki, t)), e.cuid = (t) => e.check(/* @__PURE__ */ ir(Zi, t)), e.cuid2 = (t) => e.check(/* @__PURE__ */ ar(Qi, t)), e.ulid = (t) => e.check(/* @__PURE__ */ or($i, t)), e.base64 = (t) => e.check(/* @__PURE__ */ pr(oa, t)), e.base64url = (t) => e.check(/* @__PURE__ */ mr(sa, t)), e.xid = (t) => e.check(/* @__PURE__ */ sr(ea, t)), e.ksuid = (t) => e.check(/* @__PURE__ */ cr(ta, t)), e.ipv4 = (t) => e.check(/* @__PURE__ */ lr(na, t)), e.ipv6 = (t) => e.check(/* @__PURE__ */ ur(ra, t)), e.cidrv4 = (t) => e.check(/* @__PURE__ */ dr(ia, t)), e.cidrv6 = (t) => e.check(/* @__PURE__ */ fr(aa, t)), e.e164 = (t) => e.check(/* @__PURE__ */ hr(ca, t)), e.datetime = (t) => e.check(Ci(t)), e.date = (t) => e.check(Ti(t)), e.time = (t) => e.check(Di(t)), e.duration = (t) => e.check(ki(t));
2645
2645
  });
2646
- function P(e) {
2647
- return /* @__PURE__ */ Xn(Ki, e);
2648
- }
2649
- var F = /*@__PURE__*/ i("ZodStringFormat", (e, t) => {
2650
- E.init(e, t), Gi.init(e, t);
2651
- }), qi = /*@__PURE__*/ i("ZodEmail", (e, t) => {
2652
- zt.init(e, t), F.init(e, t);
2653
- }), Ji = /*@__PURE__*/ i("ZodGUID", (e, t) => {
2654
- Lt.init(e, t), F.init(e, t);
2655
- }), Yi = /*@__PURE__*/ i("ZodUUID", (e, t) => {
2656
- Rt.init(e, t), F.init(e, t);
2657
- }), Xi = /*@__PURE__*/ i("ZodURL", (e, t) => {
2658
- Bt.init(e, t), F.init(e, t);
2659
- }), Zi = /*@__PURE__*/ i("ZodEmoji", (e, t) => {
2660
- Vt.init(e, t), F.init(e, t);
2661
- }), Qi = /*@__PURE__*/ i("ZodNanoID", (e, t) => {
2662
- Ht.init(e, t), F.init(e, t);
2663
- }), $i = /*@__PURE__*/ i("ZodCUID", (e, t) => {
2664
- Ut.init(e, t), F.init(e, t);
2665
- }), ea = /*@__PURE__*/ i("ZodCUID2", (e, t) => {
2666
- Wt.init(e, t), F.init(e, t);
2667
- }), ta = /*@__PURE__*/ i("ZodULID", (e, t) => {
2668
- Gt.init(e, t), F.init(e, t);
2669
- }), na = /*@__PURE__*/ i("ZodXID", (e, t) => {
2670
- Kt.init(e, t), F.init(e, t);
2671
- }), ra = /*@__PURE__*/ i("ZodKSUID", (e, t) => {
2672
- qt.init(e, t), F.init(e, t);
2673
- }), ia = /*@__PURE__*/ i("ZodIPv4", (e, t) => {
2674
- Qt.init(e, t), F.init(e, t);
2675
- }), aa = /*@__PURE__*/ i("ZodIPv6", (e, t) => {
2676
- $t.init(e, t), F.init(e, t);
2677
- }), oa = /*@__PURE__*/ i("ZodCIDRv4", (e, t) => {
2678
- en.init(e, t), F.init(e, t);
2679
- }), sa = /*@__PURE__*/ i("ZodCIDRv6", (e, t) => {
2680
- tn.init(e, t), F.init(e, t);
2681
- }), ca = /*@__PURE__*/ i("ZodBase64", (e, t) => {
2682
- rn.init(e, t), F.init(e, t);
2683
- }), la = /*@__PURE__*/ i("ZodBase64URL", (e, t) => {
2684
- on.init(e, t), F.init(e, t);
2685
- }), ua = /*@__PURE__*/ i("ZodE164", (e, t) => {
2686
- sn.init(e, t), F.init(e, t);
2687
- }), da = /*@__PURE__*/ i("ZodJWT", (e, t) => {
2688
- ln.init(e, t), F.init(e, t);
2689
- }), fa = /*@__PURE__*/ i("ZodNumber", (e, t) => {
2690
- un.init(e, t), N.init(e, t), e._zod.processJSONSchema = (t, n, r) => oi(e, t, n, r), M(e, "ZodNumber", {
2646
+ function I(e) {
2647
+ return /* @__PURE__ */ Jn(Wi, e);
2648
+ }
2649
+ var L = /*@__PURE__*/ i("ZodStringFormat", (e, t) => {
2650
+ O.init(e, t), Ui.init(e, t);
2651
+ }), Gi = /*@__PURE__*/ i("ZodEmail", (e, t) => {
2652
+ Lt.init(e, t), L.init(e, t);
2653
+ }), Ki = /*@__PURE__*/ i("ZodGUID", (e, t) => {
2654
+ Ft.init(e, t), L.init(e, t);
2655
+ }), qi = /*@__PURE__*/ i("ZodUUID", (e, t) => {
2656
+ It.init(e, t), L.init(e, t);
2657
+ }), Ji = /*@__PURE__*/ i("ZodURL", (e, t) => {
2658
+ Rt.init(e, t), L.init(e, t);
2659
+ }), Yi = /*@__PURE__*/ i("ZodEmoji", (e, t) => {
2660
+ zt.init(e, t), L.init(e, t);
2661
+ }), Xi = /*@__PURE__*/ i("ZodNanoID", (e, t) => {
2662
+ Bt.init(e, t), L.init(e, t);
2663
+ }), Zi = /*@__PURE__*/ i("ZodCUID", (e, t) => {
2664
+ Vt.init(e, t), L.init(e, t);
2665
+ }), Qi = /*@__PURE__*/ i("ZodCUID2", (e, t) => {
2666
+ Ht.init(e, t), L.init(e, t);
2667
+ }), $i = /*@__PURE__*/ i("ZodULID", (e, t) => {
2668
+ Ut.init(e, t), L.init(e, t);
2669
+ }), ea = /*@__PURE__*/ i("ZodXID", (e, t) => {
2670
+ Wt.init(e, t), L.init(e, t);
2671
+ }), ta = /*@__PURE__*/ i("ZodKSUID", (e, t) => {
2672
+ Gt.init(e, t), L.init(e, t);
2673
+ }), na = /*@__PURE__*/ i("ZodIPv4", (e, t) => {
2674
+ Xt.init(e, t), L.init(e, t);
2675
+ }), ra = /*@__PURE__*/ i("ZodIPv6", (e, t) => {
2676
+ Zt.init(e, t), L.init(e, t);
2677
+ }), ia = /*@__PURE__*/ i("ZodCIDRv4", (e, t) => {
2678
+ Qt.init(e, t), L.init(e, t);
2679
+ }), aa = /*@__PURE__*/ i("ZodCIDRv6", (e, t) => {
2680
+ $t.init(e, t), L.init(e, t);
2681
+ }), oa = /*@__PURE__*/ i("ZodBase64", (e, t) => {
2682
+ tn.init(e, t), L.init(e, t);
2683
+ }), sa = /*@__PURE__*/ i("ZodBase64URL", (e, t) => {
2684
+ rn.init(e, t), L.init(e, t);
2685
+ }), ca = /*@__PURE__*/ i("ZodE164", (e, t) => {
2686
+ an.init(e, t), L.init(e, t);
2687
+ }), la = /*@__PURE__*/ i("ZodJWT", (e, t) => {
2688
+ sn.init(e, t), L.init(e, t);
2689
+ }), ua = /*@__PURE__*/ i("ZodNumber", (e, t) => {
2690
+ cn.init(e, t), F.init(e, t), e._zod.processJSONSchema = (t, n, r) => ii(e, t, n, r), P(e, "ZodNumber", {
2691
2691
  gt(e, t) {
2692
- return this.check(/* @__PURE__ */ Mr(e, t));
2692
+ return this.check(/* @__PURE__ */ Ar(e, t));
2693
2693
  },
2694
2694
  gte(e, t) {
2695
- return this.check(/* @__PURE__ */ Nr(e, t));
2695
+ return this.check(/* @__PURE__ */ jr(e, t));
2696
2696
  },
2697
2697
  min(e, t) {
2698
- return this.check(/* @__PURE__ */ Nr(e, t));
2698
+ return this.check(/* @__PURE__ */ jr(e, t));
2699
2699
  },
2700
2700
  lt(e, t) {
2701
- return this.check(/* @__PURE__ */ Ar(e, t));
2701
+ return this.check(/* @__PURE__ */ Or(e, t));
2702
2702
  },
2703
2703
  lte(e, t) {
2704
- return this.check(/* @__PURE__ */ jr(e, t));
2704
+ return this.check(/* @__PURE__ */ kr(e, t));
2705
2705
  },
2706
2706
  max(e, t) {
2707
- return this.check(/* @__PURE__ */ jr(e, t));
2707
+ return this.check(/* @__PURE__ */ kr(e, t));
2708
2708
  },
2709
2709
  int(e) {
2710
- return this.check(ma(e));
2710
+ return this.check(fa(e));
2711
2711
  },
2712
2712
  safe(e) {
2713
- return this.check(ma(e));
2713
+ return this.check(fa(e));
2714
2714
  },
2715
2715
  positive(e) {
2716
- return this.check(/* @__PURE__ */ Mr(0, e));
2716
+ return this.check(/* @__PURE__ */ Ar(0, e));
2717
2717
  },
2718
2718
  nonnegative(e) {
2719
- return this.check(/* @__PURE__ */ Nr(0, e));
2719
+ return this.check(/* @__PURE__ */ jr(0, e));
2720
2720
  },
2721
2721
  negative(e) {
2722
- return this.check(/* @__PURE__ */ Ar(0, e));
2722
+ return this.check(/* @__PURE__ */ Or(0, e));
2723
2723
  },
2724
2724
  nonpositive(e) {
2725
- return this.check(/* @__PURE__ */ jr(0, e));
2725
+ return this.check(/* @__PURE__ */ kr(0, e));
2726
2726
  },
2727
2727
  multipleOf(e, t) {
2728
- return this.check(/* @__PURE__ */ Pr(e, t));
2728
+ return this.check(/* @__PURE__ */ Mr(e, t));
2729
2729
  },
2730
2730
  step(e, t) {
2731
- return this.check(/* @__PURE__ */ Pr(e, t));
2731
+ return this.check(/* @__PURE__ */ Mr(e, t));
2732
2732
  },
2733
2733
  finite() {
2734
2734
  return this;
@@ -2737,65 +2737,65 @@ var F = /*@__PURE__*/ i("ZodStringFormat", (e, t) => {
2737
2737
  let n = e._zod.bag;
2738
2738
  e.minValue = Math.max(n.minimum ?? -Infinity, n.exclusiveMinimum ?? -Infinity) ?? null, e.maxValue = Math.min(n.maximum ?? Infinity, n.exclusiveMaximum ?? Infinity) ?? null, e.isInt = (n.format ?? "").includes("int") || Number.isSafeInteger(n.multipleOf ?? .5), e.isFinite = !0, e.format = n.format ?? null;
2739
2739
  });
2740
- function I(e) {
2741
- return /* @__PURE__ */ Cr(fa, e);
2740
+ function R(e) {
2741
+ return /* @__PURE__ */ xr(ua, e);
2742
2742
  }
2743
- var pa = /*@__PURE__*/ i("ZodNumberFormat", (e, t) => {
2744
- dn.init(e, t), fa.init(e, t);
2743
+ var da = /*@__PURE__*/ i("ZodNumberFormat", (e, t) => {
2744
+ ln.init(e, t), ua.init(e, t);
2745
2745
  });
2746
- function ma(e) {
2747
- return /* @__PURE__ */ Tr(pa, e);
2746
+ function fa(e) {
2747
+ return /* @__PURE__ */ Cr(da, e);
2748
2748
  }
2749
- var ha = /*@__PURE__*/ i("ZodBoolean", (e, t) => {
2750
- fn.init(e, t), N.init(e, t), e._zod.processJSONSchema = (t, n, r) => si(e, t, n, r);
2749
+ var pa = /*@__PURE__*/ i("ZodBoolean", (e, t) => {
2750
+ un.init(e, t), F.init(e, t), e._zod.processJSONSchema = (t, n, r) => ai(e, t, n, r);
2751
2751
  });
2752
- function ga(e) {
2753
- return /* @__PURE__ */ Er(ha, e);
2752
+ function ma(e) {
2753
+ return /* @__PURE__ */ wr(pa, e);
2754
2754
  }
2755
- var _a = /*@__PURE__*/ i("ZodAny", (e, t) => {
2756
- pn.init(e, t), N.init(e, t), e._zod.processJSONSchema = (e, t, n) => void 0;
2755
+ var ha = /*@__PURE__*/ i("ZodAny", (e, t) => {
2756
+ dn.init(e, t), F.init(e, t), e._zod.processJSONSchema = (e, t, n) => void 0;
2757
2757
  });
2758
- function va() {
2759
- return /* @__PURE__ */ Dr(_a);
2758
+ function ga() {
2759
+ return /* @__PURE__ */ Tr(ha);
2760
2760
  }
2761
- var ya = /*@__PURE__*/ i("ZodUnknown", (e, t) => {
2762
- mn.init(e, t), N.init(e, t), e._zod.processJSONSchema = (e, t, n) => void 0;
2761
+ var _a = /*@__PURE__*/ i("ZodUnknown", (e, t) => {
2762
+ fn.init(e, t), F.init(e, t), e._zod.processJSONSchema = (e, t, n) => void 0;
2763
2763
  });
2764
- function L() {
2765
- return /* @__PURE__ */ Or(ya);
2764
+ function z() {
2765
+ return /* @__PURE__ */ Er(_a);
2766
2766
  }
2767
- var ba = /*@__PURE__*/ i("ZodNever", (e, t) => {
2768
- hn.init(e, t), N.init(e, t), e._zod.processJSONSchema = (t, n, r) => ci(e, t, n, r);
2767
+ var va = /*@__PURE__*/ i("ZodNever", (e, t) => {
2768
+ pn.init(e, t), F.init(e, t), e._zod.processJSONSchema = (t, n, r) => oi(e, t, n, r);
2769
2769
  });
2770
- function xa(e) {
2771
- return /* @__PURE__ */ kr(ba, e);
2770
+ function ya(e) {
2771
+ return /* @__PURE__ */ Dr(va, e);
2772
2772
  }
2773
- var Sa = /*@__PURE__*/ i("ZodArray", (e, t) => {
2774
- _n.init(e, t), N.init(e, t), e._zod.processJSONSchema = (t, n, r) => fi(e, t, n, r), e.element = t.element, M(e, "ZodArray", {
2773
+ var ba = /*@__PURE__*/ i("ZodArray", (e, t) => {
2774
+ hn.init(e, t), F.init(e, t), e._zod.processJSONSchema = (t, n, r) => ui(e, t, n, r), e.element = t.element, P(e, "ZodArray", {
2775
2775
  min(e, t) {
2776
- return this.check(/* @__PURE__ */ Ir(e, t));
2776
+ return this.check(/* @__PURE__ */ Pr(e, t));
2777
2777
  },
2778
2778
  nonempty(e) {
2779
- return this.check(/* @__PURE__ */ Ir(1, e));
2779
+ return this.check(/* @__PURE__ */ Pr(1, e));
2780
2780
  },
2781
2781
  max(e, t) {
2782
- return this.check(/* @__PURE__ */ Fr(e, t));
2782
+ return this.check(/* @__PURE__ */ Nr(e, t));
2783
2783
  },
2784
2784
  length(e, t) {
2785
- return this.check(/* @__PURE__ */ Lr(e, t));
2785
+ return this.check(/* @__PURE__ */ Fr(e, t));
2786
2786
  },
2787
2787
  unwrap() {
2788
2788
  return this.element;
2789
2789
  }
2790
2790
  });
2791
2791
  });
2792
- function Ca(e, t) {
2793
- return /* @__PURE__ */ Yr(Sa, e, t);
2792
+ function xa(e, t) {
2793
+ return /* @__PURE__ */ qr(ba, e, t);
2794
2794
  }
2795
- var wa = /*@__PURE__*/ i("ZodObject", (e, t) => {
2796
- Sn.init(e, t), N.init(e, t), e._zod.processJSONSchema = (t, n, r) => pi(e, t, n, r), m(e, "shape", () => t.shape), M(e, "ZodObject", {
2795
+ var Sa = /*@__PURE__*/ i("ZodObject", (e, t) => {
2796
+ bn.init(e, t), F.init(e, t), e._zod.processJSONSchema = (t, n, r) => di(e, t, n, r), m(e, "shape", () => t.shape), P(e, "ZodObject", {
2797
2797
  keyof() {
2798
- return Aa(Object.keys(this._zod.def.shape));
2798
+ return Oa(Object.keys(this._zod.def.shape));
2799
2799
  },
2800
2800
  catchall(e) {
2801
2801
  return this.clone({
@@ -2806,19 +2806,19 @@ var wa = /*@__PURE__*/ i("ZodObject", (e, t) => {
2806
2806
  passthrough() {
2807
2807
  return this.clone({
2808
2808
  ...this._zod.def,
2809
- catchall: L()
2809
+ catchall: z()
2810
2810
  });
2811
2811
  },
2812
2812
  loose() {
2813
2813
  return this.clone({
2814
2814
  ...this._zod.def,
2815
- catchall: L()
2815
+ catchall: z()
2816
2816
  });
2817
2817
  },
2818
2818
  strict() {
2819
2819
  return this.clone({
2820
2820
  ...this._zod.def,
2821
- catchall: xa()
2821
+ catchall: ya()
2822
2822
  });
2823
2823
  },
2824
2824
  strip() {
@@ -2843,48 +2843,48 @@ var wa = /*@__PURE__*/ i("ZodObject", (e, t) => {
2843
2843
  return pe(this, e);
2844
2844
  },
2845
2845
  partial(...e) {
2846
- return _e(Na, this, e[0]);
2846
+ return _e(ja, this, e[0]);
2847
2847
  },
2848
2848
  required(...e) {
2849
- return ve(Ua, this, e[0]);
2849
+ return ve(Va, this, e[0]);
2850
2850
  }
2851
2851
  });
2852
2852
  });
2853
- function R(e, t) {
2854
- return new wa({
2853
+ function B(e, t) {
2854
+ return new Sa({
2855
2855
  type: "object",
2856
2856
  shape: e ?? {},
2857
2857
  ...y(t)
2858
2858
  });
2859
2859
  }
2860
- var Ta = /*@__PURE__*/ i("ZodUnion", (e, t) => {
2861
- wn.init(e, t), N.init(e, t), e._zod.processJSONSchema = (t, n, r) => mi(e, t, n, r), e.options = t.options;
2860
+ var Ca = /*@__PURE__*/ i("ZodUnion", (e, t) => {
2861
+ Sn.init(e, t), F.init(e, t), e._zod.processJSONSchema = (t, n, r) => fi(e, t, n, r), e.options = t.options;
2862
2862
  });
2863
- function Ea(e, t) {
2864
- return new Ta({
2863
+ function wa(e, t) {
2864
+ return new Ca({
2865
2865
  type: "union",
2866
2866
  options: e,
2867
2867
  ...y(t)
2868
2868
  });
2869
2869
  }
2870
- var Da = /*@__PURE__*/ i("ZodIntersection", (e, t) => {
2871
- Tn.init(e, t), N.init(e, t), e._zod.processJSONSchema = (t, n, r) => hi(e, t, n, r);
2870
+ var Ta = /*@__PURE__*/ i("ZodIntersection", (e, t) => {
2871
+ Cn.init(e, t), F.init(e, t), e._zod.processJSONSchema = (t, n, r) => pi(e, t, n, r);
2872
2872
  });
2873
- function Oa(e, t) {
2874
- return new Da({
2873
+ function Ea(e, t) {
2874
+ return new Ta({
2875
2875
  type: "intersection",
2876
2876
  left: e,
2877
2877
  right: t
2878
2878
  });
2879
2879
  }
2880
- var ka = /*@__PURE__*/ i("ZodEnum", (e, t) => {
2881
- On.init(e, t), N.init(e, t), e._zod.processJSONSchema = (t, n, r) => li(e, t, n, r), e.enum = t.entries, e.options = Object.values(t.entries);
2880
+ var Da = /*@__PURE__*/ i("ZodEnum", (e, t) => {
2881
+ En.init(e, t), F.init(e, t), e._zod.processJSONSchema = (t, n, r) => si(e, t, n, r), e.enum = t.entries, e.options = Object.values(t.entries);
2882
2882
  let n = new Set(Object.keys(t.entries));
2883
2883
  e.extract = (e, r) => {
2884
2884
  let i = {};
2885
2885
  for (let r of e) if (n.has(r)) i[r] = t.entries[r];
2886
2886
  else throw Error(`Key ${r} not found in enum`);
2887
- return new ka({
2887
+ return new Da({
2888
2888
  ...t,
2889
2889
  checks: [],
2890
2890
  ...y(r),
@@ -2894,7 +2894,7 @@ var ka = /*@__PURE__*/ i("ZodEnum", (e, t) => {
2894
2894
  let i = { ...t.entries };
2895
2895
  for (let t of e) if (n.has(t)) delete i[t];
2896
2896
  else throw Error(`Key ${t} not found in enum`);
2897
- return new ka({
2897
+ return new Da({
2898
2898
  ...t,
2899
2899
  checks: [],
2900
2900
  ...y(r),
@@ -2902,65 +2902,65 @@ var ka = /*@__PURE__*/ i("ZodEnum", (e, t) => {
2902
2902
  });
2903
2903
  };
2904
2904
  });
2905
- function Aa(e, t) {
2906
- return new ka({
2905
+ function Oa(e, t) {
2906
+ return new Da({
2907
2907
  type: "enum",
2908
2908
  entries: Array.isArray(e) ? Object.fromEntries(e.map((e) => [e, e])) : e,
2909
2909
  ...y(t)
2910
2910
  });
2911
2911
  }
2912
- var ja = /*@__PURE__*/ i("ZodTransform", (e, t) => {
2913
- kn.init(e, t), N.init(e, t), e._zod.processJSONSchema = (t, n, r) => di(e, t, n, r), e._zod.parse = (n, r) => {
2912
+ var ka = /*@__PURE__*/ i("ZodTransform", (e, t) => {
2913
+ Dn.init(e, t), F.init(e, t), e._zod.processJSONSchema = (t, n, r) => li(e, t, n, r), e._zod.parse = (n, r) => {
2914
2914
  if (r.direction === "backward") throw new o(e.constructor.name);
2915
2915
  n.addIssue = (r) => {
2916
- if (typeof r == "string") n.issues.push(S(r, n.value, t));
2916
+ if (typeof r == "string") n.issues.push(C(r, n.value, t));
2917
2917
  else {
2918
2918
  let t = r;
2919
- t.fatal && (t.continue = !1), t.code ??= "custom", t.input ??= n.value, t.inst ??= e, n.issues.push(S(t));
2919
+ t.fatal && (t.continue = !1), t.code ??= "custom", t.input ??= n.value, t.inst ??= e, n.issues.push(C(t));
2920
2920
  }
2921
2921
  };
2922
2922
  let i = t.transform(n.value, n);
2923
2923
  return i instanceof Promise ? i.then((e) => (n.value = e, n.fallback = !0, n)) : (n.value = i, n.fallback = !0, n);
2924
2924
  };
2925
2925
  });
2926
- function Ma(e) {
2927
- return new ja({
2926
+ function Aa(e) {
2927
+ return new ka({
2928
2928
  type: "transform",
2929
2929
  transform: e
2930
2930
  });
2931
2931
  }
2932
- var Na = /*@__PURE__*/ i("ZodOptional", (e, t) => {
2933
- jn.init(e, t), N.init(e, t), e._zod.processJSONSchema = (t, n, r) => Ci(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
2932
+ var ja = /*@__PURE__*/ i("ZodOptional", (e, t) => {
2933
+ kn.init(e, t), F.init(e, t), e._zod.processJSONSchema = (t, n, r) => xi(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
2934
2934
  });
2935
- function Pa(e) {
2936
- return new Na({
2935
+ function Ma(e) {
2936
+ return new ja({
2937
2937
  type: "optional",
2938
2938
  innerType: e
2939
2939
  });
2940
2940
  }
2941
- var Fa = /*@__PURE__*/ i("ZodExactOptional", (e, t) => {
2942
- Mn.init(e, t), N.init(e, t), e._zod.processJSONSchema = (t, n, r) => Ci(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
2941
+ var Na = /*@__PURE__*/ i("ZodExactOptional", (e, t) => {
2942
+ An.init(e, t), F.init(e, t), e._zod.processJSONSchema = (t, n, r) => xi(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
2943
2943
  });
2944
- function Ia(e) {
2945
- return new Fa({
2944
+ function Pa(e) {
2945
+ return new Na({
2946
2946
  type: "optional",
2947
2947
  innerType: e
2948
2948
  });
2949
2949
  }
2950
- var La = /*@__PURE__*/ i("ZodNullable", (e, t) => {
2951
- Nn.init(e, t), N.init(e, t), e._zod.processJSONSchema = (t, n, r) => gi(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
2950
+ var Fa = /*@__PURE__*/ i("ZodNullable", (e, t) => {
2951
+ jn.init(e, t), F.init(e, t), e._zod.processJSONSchema = (t, n, r) => mi(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
2952
2952
  });
2953
- function Ra(e) {
2954
- return new La({
2953
+ function Ia(e) {
2954
+ return new Fa({
2955
2955
  type: "nullable",
2956
2956
  innerType: e
2957
2957
  });
2958
2958
  }
2959
- var za = /*@__PURE__*/ i("ZodDefault", (e, t) => {
2960
- Pn.init(e, t), N.init(e, t), e._zod.processJSONSchema = (t, n, r) => vi(e, t, n, r), e.unwrap = () => e._zod.def.innerType, e.removeDefault = e.unwrap;
2959
+ var La = /*@__PURE__*/ i("ZodDefault", (e, t) => {
2960
+ Mn.init(e, t), F.init(e, t), e._zod.processJSONSchema = (t, n, r) => gi(e, t, n, r), e.unwrap = () => e._zod.def.innerType, e.removeDefault = e.unwrap;
2961
2961
  });
2962
- function Ba(e, t) {
2963
- return new za({
2962
+ function Ra(e, t) {
2963
+ return new La({
2964
2964
  type: "default",
2965
2965
  innerType: e,
2966
2966
  get defaultValue() {
@@ -2968,11 +2968,11 @@ function Ba(e, t) {
2968
2968
  }
2969
2969
  });
2970
2970
  }
2971
- var Va = /*@__PURE__*/ i("ZodPrefault", (e, t) => {
2972
- In.init(e, t), N.init(e, t), e._zod.processJSONSchema = (t, n, r) => yi(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
2971
+ var za = /*@__PURE__*/ i("ZodPrefault", (e, t) => {
2972
+ Pn.init(e, t), F.init(e, t), e._zod.processJSONSchema = (t, n, r) => _i(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
2973
2973
  });
2974
- function Ha(e, t) {
2975
- return new Va({
2974
+ function Ba(e, t) {
2975
+ return new za({
2976
2976
  type: "prefault",
2977
2977
  innerType: e,
2978
2978
  get defaultValue() {
@@ -2980,66 +2980,66 @@ function Ha(e, t) {
2980
2980
  }
2981
2981
  });
2982
2982
  }
2983
- var Ua = /*@__PURE__*/ i("ZodNonOptional", (e, t) => {
2984
- Ln.init(e, t), N.init(e, t), e._zod.processJSONSchema = (t, n, r) => _i(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
2983
+ var Va = /*@__PURE__*/ i("ZodNonOptional", (e, t) => {
2984
+ Fn.init(e, t), F.init(e, t), e._zod.processJSONSchema = (t, n, r) => hi(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
2985
2985
  });
2986
- function Wa(e, t) {
2987
- return new Ua({
2986
+ function Ha(e, t) {
2987
+ return new Va({
2988
2988
  type: "nonoptional",
2989
2989
  innerType: e,
2990
2990
  ...y(t)
2991
2991
  });
2992
2992
  }
2993
- var Ga = /*@__PURE__*/ i("ZodCatch", (e, t) => {
2994
- zn.init(e, t), N.init(e, t), e._zod.processJSONSchema = (t, n, r) => bi(e, t, n, r), e.unwrap = () => e._zod.def.innerType, e.removeCatch = e.unwrap;
2993
+ var Ua = /*@__PURE__*/ i("ZodCatch", (e, t) => {
2994
+ Ln.init(e, t), F.init(e, t), e._zod.processJSONSchema = (t, n, r) => vi(e, t, n, r), e.unwrap = () => e._zod.def.innerType, e.removeCatch = e.unwrap;
2995
2995
  });
2996
- function Ka(e, t) {
2997
- return new Ga({
2996
+ function Wa(e, t) {
2997
+ return new Ua({
2998
2998
  type: "catch",
2999
2999
  innerType: e,
3000
3000
  catchValue: typeof t == "function" ? t : () => t
3001
3001
  });
3002
3002
  }
3003
- var qa = /*@__PURE__*/ i("ZodPipe", (e, t) => {
3004
- Bn.init(e, t), N.init(e, t), e._zod.processJSONSchema = (t, n, r) => xi(e, t, n, r), e.in = t.in, e.out = t.out;
3003
+ var Ga = /*@__PURE__*/ i("ZodPipe", (e, t) => {
3004
+ Rn.init(e, t), F.init(e, t), e._zod.processJSONSchema = (t, n, r) => yi(e, t, n, r), e.in = t.in, e.out = t.out;
3005
3005
  });
3006
- function Ja(e, t) {
3007
- return new qa({
3006
+ function Ka(e, t) {
3007
+ return new Ga({
3008
3008
  type: "pipe",
3009
3009
  in: e,
3010
3010
  out: t
3011
3011
  });
3012
3012
  }
3013
- var Ya = /*@__PURE__*/ i("ZodPreprocess", (e, t) => {
3014
- qa.init(e, t), Hn.init(e, t);
3015
- }), Xa = /*@__PURE__*/ i("ZodReadonly", (e, t) => {
3016
- Un.init(e, t), N.init(e, t), e._zod.processJSONSchema = (t, n, r) => Si(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
3013
+ var qa = /*@__PURE__*/ i("ZodPreprocess", (e, t) => {
3014
+ Ga.init(e, t), Bn.init(e, t);
3015
+ }), Ja = /*@__PURE__*/ i("ZodReadonly", (e, t) => {
3016
+ Vn.init(e, t), F.init(e, t), e._zod.processJSONSchema = (t, n, r) => bi(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
3017
3017
  });
3018
- function Za(e) {
3019
- return new Xa({
3018
+ function Ya(e) {
3019
+ return new Ja({
3020
3020
  type: "readonly",
3021
3021
  innerType: e
3022
3022
  });
3023
3023
  }
3024
- var Qa = /*@__PURE__*/ i("ZodCustom", (e, t) => {
3025
- Gn.init(e, t), N.init(e, t), e._zod.processJSONSchema = (t, n, r) => ui(e, t, n, r);
3024
+ var Xa = /*@__PURE__*/ i("ZodCustom", (e, t) => {
3025
+ Un.init(e, t), F.init(e, t), e._zod.processJSONSchema = (t, n, r) => ci(e, t, n, r);
3026
3026
  });
3027
- function $a(e, t = {}) {
3028
- return /* @__PURE__ */ Xr(Qa, e, t);
3027
+ function Za(e, t = {}) {
3028
+ return /* @__PURE__ */ Jr(Xa, e, t);
3029
3029
  }
3030
- function eo(e, t) {
3031
- return /* @__PURE__ */ Zr(e, t);
3030
+ function Qa(e, t) {
3031
+ return /* @__PURE__ */ Yr(e, t);
3032
3032
  }
3033
- function to(e, t) {
3034
- return new Ya({
3033
+ function $a(e, t) {
3034
+ return new qa({
3035
3035
  type: "pipe",
3036
- in: Ma(e),
3036
+ in: Aa(e),
3037
3037
  out: t
3038
3038
  });
3039
3039
  }
3040
3040
  //#endregion
3041
3041
  //#region ../../node_modules/zod/v4/classic/compat.js
3042
- var z = {
3042
+ var V = {
3043
3043
  invalid_type: "invalid_type",
3044
3044
  too_big: "too_big",
3045
3045
  too_small: "too_small",
@@ -3051,16 +3051,16 @@ var z = {
3051
3051
  invalid_element: "invalid_element",
3052
3052
  invalid_value: "invalid_value",
3053
3053
  custom: "custom"
3054
- }, no;
3055
- no ||= {};
3054
+ }, eo;
3055
+ eo ||= {};
3056
3056
  //#endregion
3057
3057
  //#region ../../node_modules/zod/v4/classic/coerce.js
3058
- function B(e) {
3059
- return /* @__PURE__ */ wr(fa, e);
3058
+ function H(e) {
3059
+ return /* @__PURE__ */ Sr(ua, e);
3060
3060
  }
3061
3061
  //#endregion
3062
3062
  //#region ../sdk/src/units.ts
3063
- var ro = [
3063
+ var to = [
3064
3064
  {
3065
3065
  value: "UAH",
3066
3066
  label: "core.units.UAH"
@@ -3085,7 +3085,7 @@ var ro = [
3085
3085
  value: "PLN",
3086
3086
  label: "core.units.PLN"
3087
3087
  }
3088
- ], io = [
3088
+ ], no = [
3089
3089
  {
3090
3090
  value: "mg",
3091
3091
  label: "core.units.mg"
@@ -3110,7 +3110,7 @@ var ro = [
3110
3110
  value: "lb",
3111
3111
  label: "core.units.lb"
3112
3112
  }
3113
- ], ao = [
3113
+ ], ro = [
3114
3114
  {
3115
3115
  value: "ml",
3116
3116
  label: "core.units.ml"
@@ -3143,13 +3143,13 @@ var ro = [
3143
3143
  value: "fl_oz",
3144
3144
  label: "core.units.fl_oz"
3145
3145
  }
3146
- ], oo = {
3147
- currency: ro,
3148
- weight: io,
3149
- volume: ao,
3146
+ ], io = {
3147
+ currency: to,
3148
+ weight: no,
3149
+ volume: ro,
3150
3150
  cooking: [
3151
- ...io,
3152
- ...ao,
3151
+ ...no,
3152
+ ...ro,
3153
3153
  {
3154
3154
  value: "pcs",
3155
3155
  label: "core.units.pcs"
@@ -3360,12 +3360,12 @@ var ro = [
3360
3360
  label: "core.units.ppm"
3361
3361
  }]
3362
3362
  };
3363
- function so(e) {
3364
- return typeof e == "string" ? oo[e] : e;
3363
+ function ao(e) {
3364
+ return typeof e == "string" ? io[e] : e;
3365
3365
  }
3366
3366
  //#endregion
3367
3367
  //#region ../sdk/src/currencies.ts
3368
- var co = (() => {
3368
+ var oo = (() => {
3369
3369
  try {
3370
3370
  return Intl.supportedValuesOf("currency");
3371
3371
  } catch {
@@ -3377,25 +3377,25 @@ var co = (() => {
3377
3377
  "PLN"
3378
3378
  ];
3379
3379
  }
3380
- })(), lo = new Set(co), uo = (e) => lo.has(e);
3380
+ })(), so = new Set(oo), co = (e) => so.has(e);
3381
3381
  //#endregion
3382
3382
  //#region ../sdk/src/fields/validation.ts
3383
- function V(e, t) {
3383
+ function U(e, t) {
3384
3384
  return JSON.stringify(t ? {
3385
3385
  code: e,
3386
3386
  params: t
3387
3387
  } : { code: e });
3388
3388
  }
3389
- function H(e = "required") {
3390
- return { error: (t) => t.input === void 0 ? V(e) : void 0 };
3389
+ function W(e = "required") {
3390
+ return { error: (t) => t.input === void 0 ? U(e) : void 0 };
3391
3391
  }
3392
- function fo(e = "invalid_type") {
3393
- return { error: (t) => t.code === "invalid_type" ? V(e) : void 0 };
3392
+ function lo(e = "invalid_type") {
3393
+ return { error: (t) => t.code === "invalid_type" ? U(e) : void 0 };
3394
3394
  }
3395
- function po() {
3396
- return { error: (e) => e.code === "invalid_type" ? e.input === void 0 ? V("required") : V("invalid_type") : void 0 };
3395
+ function uo() {
3396
+ return { error: (e) => e.code === "invalid_type" ? e.input === void 0 ? U("required") : U("invalid_type") : void 0 };
3397
3397
  }
3398
- function U(e) {
3398
+ function G(e) {
3399
3399
  if (typeof e == "string") try {
3400
3400
  return JSON.parse(e);
3401
3401
  } catch {
@@ -3403,28 +3403,34 @@ function U(e) {
3403
3403
  }
3404
3404
  return e;
3405
3405
  }
3406
- function mo(e, t) {
3407
- return L().superRefine((n, r) => {
3408
- let i = U(n);
3406
+ function fo(e, t) {
3407
+ return z().superRefine((n, r) => {
3408
+ let i = G(n);
3409
3409
  if (typeof n == "string" && typeof i == "string") {
3410
3410
  r.addIssue({
3411
- code: z.custom,
3412
- message: V("json")
3411
+ code: V.custom,
3412
+ message: U("json")
3413
3413
  });
3414
3414
  return;
3415
3415
  }
3416
3416
  e.safeParse(i).success || r.addIssue({
3417
- code: z.custom,
3418
- message: V(t)
3417
+ code: V.custom,
3418
+ message: U(t)
3419
3419
  });
3420
3420
  });
3421
3421
  }
3422
- function W(e, t) {
3423
- return to((e) => e === "" || e === null ? void 0 : e, t === !0 ? e : e.optional());
3422
+ function K(e, t) {
3423
+ let n = t === !0, r = (e) => e === "" || e === null ? void 0 : e;
3424
+ return n ? $a(r, z().superRefine((e, t) => {
3425
+ e === void 0 && t.addIssue({
3426
+ code: V.custom,
3427
+ message: U("required")
3428
+ });
3429
+ }).pipe(e)) : $a(r, e.optional());
3424
3430
  }
3425
3431
  //#endregion
3426
3432
  //#region ../sdk/src/fields/normalize.ts
3427
- function G(e) {
3433
+ function q(e) {
3428
3434
  let t = e, n = t.rules ?? {}, r = t.view ?? {}, i = {};
3429
3435
  n.min != null && typeof n.min == "number" && (i.min = n.min), n.max != null && typeof n.max == "number" && (i.max = n.max), n.step != null && (i.step = n.step), n.pattern != null && (i.pattern = n.pattern), n.messageKey != null && (i.messageKey = n.messageKey), n.granularity != null && (i.granularity = n.granularity), n.language != null && (i.language = n.language), n.defaultCurrency != null && (i.defaultCurrency = n.defaultCurrency), n.defaultLang != null && (i.defaultLang = n.defaultLang);
3430
3436
  let { rules: a, view: o, ...s } = t, c = {
@@ -3452,9 +3458,9 @@ function G(e) {
3452
3458
  }
3453
3459
  //#endregion
3454
3460
  //#region ../sdk/src/field-presets.ts
3455
- function ho(e) {
3456
- let t = G(e), n = t.required ?? !1, r = P().email({ message: V("email") });
3457
- return n && (r = r.min(1, { message: V("min_length", { min: 1 }) })), q(t, Y({
3461
+ function po(e) {
3462
+ let t = q(e), n = t.required ?? !1, r = I().email({ message: U("email") });
3463
+ return n && (r = r.min(1, { message: U("min_length", { min: 1 }) })), Y(t, X({
3458
3464
  kind: "email",
3459
3465
  label: t.label ?? "",
3460
3466
  required: n,
@@ -3464,12 +3470,12 @@ function ho(e) {
3464
3470
  format: "email",
3465
3471
  inputType: "email"
3466
3472
  },
3467
- zod: W(r, n)
3473
+ zod: K(r, n)
3468
3474
  }, t.multiple ?? !1));
3469
3475
  }
3470
- function go(e) {
3471
- let t = G(e), n = t.required ?? !1, r = P().regex(To, { message: V("pattern", { messageKey: "core.presets.tel" }) }), i = n ? r.min(1, { message: V("min_length", { min: 1 }) }) : r;
3472
- return q(t, Y({
3476
+ function mo(e) {
3477
+ let t = q(e), n = t.required ?? !1, r = I().regex(wo, { message: U("pattern", { messageKey: "core.presets.tel" }) }), i = n ? r.min(1, { message: U("min_length", { min: 1 }) }) : r;
3478
+ return Y(t, X({
3473
3479
  kind: "tel",
3474
3480
  label: t.label ?? "",
3475
3481
  required: n,
@@ -3479,12 +3485,12 @@ function go(e) {
3479
3485
  format: "tel",
3480
3486
  inputType: "tel"
3481
3487
  },
3482
- zod: W(i, n)
3488
+ zod: K(i, n)
3483
3489
  }, t.multiple ?? !1));
3484
3490
  }
3485
- function _o(e) {
3486
- let t = G(e), n = t.required ?? !1, r = n ? P().min(1, { message: V("min_length", { min: 1 }) }) : P();
3487
- return q(t, {
3491
+ function ho(e) {
3492
+ let t = q(e), n = t.required ?? !1, r = n ? I().min(1, { message: U("min_length", { min: 1 }) }) : I();
3493
+ return Y(t, {
3488
3494
  kind: "password",
3489
3495
  label: t.label ?? "",
3490
3496
  required: n,
@@ -3494,62 +3500,77 @@ function _o(e) {
3494
3500
  format: "password",
3495
3501
  inputType: "password"
3496
3502
  },
3497
- zod: W(r, n)
3503
+ zod: K(r, n)
3498
3504
  });
3499
3505
  }
3500
- var vo = /^[a-z0-9-]+$/;
3501
- function yo(e) {
3502
- let t = G(e), n = t.required ?? !1, r = P().regex(vo, { message: V("pattern", { messageKey: "core.presets.slug" }) });
3503
- return q(t, Y({
3506
+ function go(e) {
3507
+ return J({
3508
+ key: e.key,
3509
+ label: e.label ?? e.key,
3510
+ multiple: !0,
3511
+ rules: { unique: ["name"] },
3512
+ view: { kind: "internalApiToken" },
3513
+ fields: [
3514
+ Z({ key: "name" }),
3515
+ ho({ key: "token" }),
3516
+ Z({ key: "createdAt" }),
3517
+ Z({ key: "lastUsedAt" })
3518
+ ]
3519
+ });
3520
+ }
3521
+ var _o = /^[a-z0-9-]+$/;
3522
+ function vo(e) {
3523
+ let t = q(e), n = t.required ?? !1, r = I().regex(_o, { message: U("pattern", { messageKey: "core.presets.slug" }) });
3524
+ return Y(t, X({
3504
3525
  kind: "slug",
3505
3526
  label: t.label ?? "",
3506
3527
  required: n,
3507
3528
  prim: "text",
3508
3529
  column: "text",
3509
3530
  hints: {},
3510
- zod: W(r, n)
3531
+ zod: K(r, n)
3511
3532
  }, t.multiple ?? !1));
3512
3533
  }
3513
- var bo = /^#[0-9a-fA-F]{6}$/;
3514
- function xo(e) {
3515
- let t = G(e), n = t.required ?? !1, r = P().regex(bo, { message: V("color_format") });
3516
- return q(t, Y({
3534
+ var yo = /^#[0-9a-fA-F]{6}$/;
3535
+ function bo(e) {
3536
+ let t = q(e), n = t.required ?? !1, r = I().regex(yo, { message: U("color_format") });
3537
+ return Y(t, X({
3517
3538
  kind: "color",
3518
3539
  label: t.label ?? "",
3519
3540
  required: n,
3520
3541
  prim: "text",
3521
3542
  column: "text",
3522
3543
  hints: {},
3523
- zod: W(r, n)
3544
+ zod: K(r, n)
3524
3545
  }, t.multiple ?? !1));
3525
3546
  }
3526
- function So(e) {
3527
- let t = G(e), n = t.required ?? !1, r = (n ? P().min(1, { message: V("min_length", { min: 1 }) }) : P()).refine((e) => Do.has(e.toLowerCase()), { message: V("colorname") });
3528
- return q(t, Y({
3547
+ function xo(e) {
3548
+ let t = q(e), n = t.required ?? !1, r = (n ? I().min(1, { message: U("min_length", { min: 1 }) }) : I()).refine((e) => Eo.has(e.toLowerCase()), { message: U("colorname") });
3549
+ return Y(t, X({
3529
3550
  kind: "colorname",
3530
3551
  label: t.label ?? "",
3531
3552
  required: n,
3532
3553
  prim: "text",
3533
3554
  column: "text",
3534
3555
  hints: {},
3535
- zod: W(r, n)
3556
+ zod: K(r, n)
3536
3557
  }, t.multiple ?? !1));
3537
3558
  }
3538
- function Co(e) {
3539
- let t = G(e), n = t.required ?? !1, r = n ? P().min(1, { message: V("min_length", { min: 1 }) }) : P();
3540
- return q(t, Y({
3559
+ function So(e) {
3560
+ let t = q(e), n = t.required ?? !1, r = n ? I().min(1, { message: U("min_length", { min: 1 }) }) : I();
3561
+ return Y(t, X({
3541
3562
  kind: "title",
3542
3563
  label: t.label ?? "",
3543
3564
  required: n,
3544
3565
  prim: "text",
3545
3566
  column: "text",
3546
3567
  hints: {},
3547
- zod: W(r, n)
3568
+ zod: K(r, n)
3548
3569
  }, t.multiple ?? !1));
3549
3570
  }
3550
- function wo(e) {
3551
- let t = G(e), n = t.required ?? !1, r = P().regex(Eo, { message: V("pattern", { messageKey: "core.presets.link" }) }), i = n ? r.min(1, { message: V("min_length", { min: 1 }) }) : r;
3552
- return q(t, Y({
3571
+ function Co(e) {
3572
+ let t = q(e), n = t.required ?? !1, r = I().regex(To, { message: U("pattern", { messageKey: "core.presets.link" }) }), i = n ? r.min(1, { message: U("min_length", { min: 1 }) }) : r;
3573
+ return Y(t, X({
3553
3574
  kind: "link",
3554
3575
  label: t.label ?? "",
3555
3576
  required: n,
@@ -3559,13 +3580,13 @@ function wo(e) {
3559
3580
  format: "url",
3560
3581
  inputType: "url"
3561
3582
  },
3562
- zod: W(i, n)
3583
+ zod: K(i, n)
3563
3584
  }, t.multiple ?? !1));
3564
3585
  }
3565
- var To = /^\+?[\d\s()-]{4,}$/, Eo = /^([a-z][a-z0-9+.-]*:\/\/\S+|[\w-]+(\.[\w-]+)+(:\d+)?(\/\S*)?)$/i, Do = new Set(/* @__PURE__ */ "aliceblue.antiquewhite.aqua.aquamarine.azure.beige.bisque.black.blanchedalmond.blue.blueviolet.brown.burlywood.cadetblue.chartreuse.chocolate.coral.cornflowerblue.cornsilk.crimson.cyan.darkblue.darkcyan.darkgoldenrod.darkgray.darkgreen.darkgrey.darkkhaki.darkmagenta.darkolivegreen.darkorange.darkorchid.darkred.darksalmon.darkseagreen.darkslateblue.darkslategray.darkslategrey.darkturquoise.darkviolet.deeppink.deepskyblue.dimgray.dimgrey.dodgerblue.firebrick.floralwhite.forestgreen.fuchsia.gainsboro.ghostwhite.gold.goldenrod.gray.green.greenyellow.grey.honeydew.hotpink.indianred.indigo.ivory.khaki.lavender.lavenderblush.lawngreen.lemonchiffon.lightblue.lightcoral.lightcyan.lightgoldenrodyellow.lightgray.lightgreen.lightgrey.lightpink.lightsalmon.lightseagreen.lightskyblue.lightslategray.lightslategrey.lightsteelblue.lightyellow.lime.limegreen.linen.magenta.maroon.mediumaquamarine.mediumblue.mediumorchid.mediumpurple.mediumseagreen.mediumslateblue.mediumspringgreen.mediumturquoise.mediumvioletred.midnightblue.mintcream.mistyrose.moccasin.navajowhite.navy.oldlace.olive.olivedrab.orange.orangered.orchid.palegoldenrod.palegreen.paleturquoise.palevioletred.papayawhip.peachpuff.peru.pink.plum.powderblue.purple.rebeccapurple.red.rosybrown.royalblue.saddlebrown.salmon.sandybrown.seagreen.seashell.sienna.silver.skyblue.slateblue.slategray.slategrey.snow.springgreen.steelblue.tan.teal.thistle.tomato.turquoise.violet.wheat.white.whitesmoke.yellow.yellowgreen.transparent".split("."));
3566
- function Oo(e) {
3567
- let t = G(e), n = t.required ?? !1, r = P().min(1, { message: V("min_length", { min: 1 }) }), i = Array.isArray(e.options) ? e.options : [], a = typeof e.options == "string" ? e.options : null;
3568
- return q(t, Y({
3586
+ var wo = /^\+?[\d\s()-]{4,}$/, To = /^([a-z][a-z0-9+.-]*:\/\/\S+|[\w-]+(\.[\w-]+)+(:\d+)?(\/\S*)?)$/i, Eo = new Set(/* @__PURE__ */ "aliceblue.antiquewhite.aqua.aquamarine.azure.beige.bisque.black.blanchedalmond.blue.blueviolet.brown.burlywood.cadetblue.chartreuse.chocolate.coral.cornflowerblue.cornsilk.crimson.cyan.darkblue.darkcyan.darkgoldenrod.darkgray.darkgreen.darkgrey.darkkhaki.darkmagenta.darkolivegreen.darkorange.darkorchid.darkred.darksalmon.darkseagreen.darkslateblue.darkslategray.darkslategrey.darkturquoise.darkviolet.deeppink.deepskyblue.dimgray.dimgrey.dodgerblue.firebrick.floralwhite.forestgreen.fuchsia.gainsboro.ghostwhite.gold.goldenrod.gray.green.greenyellow.grey.honeydew.hotpink.indianred.indigo.ivory.khaki.lavender.lavenderblush.lawngreen.lemonchiffon.lightblue.lightcoral.lightcyan.lightgoldenrodyellow.lightgray.lightgreen.lightgrey.lightpink.lightsalmon.lightseagreen.lightskyblue.lightslategray.lightslategrey.lightsteelblue.lightyellow.lime.limegreen.linen.magenta.maroon.mediumaquamarine.mediumblue.mediumorchid.mediumpurple.mediumseagreen.mediumslateblue.mediumspringgreen.mediumturquoise.mediumvioletred.midnightblue.mintcream.mistyrose.moccasin.navajowhite.navy.oldlace.olive.olivedrab.orange.orangered.orchid.palegoldenrod.palegreen.paleturquoise.palevioletred.papayawhip.peachpuff.peru.pink.plum.powderblue.purple.rebeccapurple.red.rosybrown.royalblue.saddlebrown.salmon.sandybrown.seagreen.seashell.sienna.silver.skyblue.slateblue.slategray.slategrey.snow.springgreen.steelblue.tan.teal.thistle.tomato.turquoise.violet.wheat.white.whitesmoke.yellow.yellowgreen.transparent".split("."));
3587
+ function Do(e) {
3588
+ let t = q(e), n = t.required ?? !1, r = I().min(1, { message: U("min_length", { min: 1 }) }), i = Array.isArray(e.options) ? e.options : [], a = typeof e.options == "string" ? e.options : null;
3589
+ return Y(t, X({
3569
3590
  kind: "tag",
3570
3591
  label: t.label ?? "",
3571
3592
  required: n,
@@ -3575,18 +3596,18 @@ function Oo(e) {
3575
3596
  suggestions: i,
3576
3597
  ...a ? { source: a } : {}
3577
3598
  },
3578
- zod: W(r, n)
3599
+ zod: K(r, n)
3579
3600
  }, t.multiple ?? !1));
3580
3601
  }
3581
- function ko(e) {
3582
- return Oo({
3602
+ function Oo(e) {
3603
+ return Do({
3583
3604
  ...e,
3584
3605
  multiple: !0
3585
3606
  });
3586
3607
  }
3587
- function Ao(e) {
3588
- return q(G(e), {
3589
- ...Z({
3608
+ function ko(e) {
3609
+ return Y(q(e), {
3610
+ ...Q({
3590
3611
  label: e.label,
3591
3612
  rules: e.rules,
3592
3613
  view: e.view
@@ -3595,13 +3616,13 @@ function Ao(e) {
3595
3616
  kind: "markdown"
3596
3617
  });
3597
3618
  }
3598
- function jo(e) {
3599
- let t = e.rules?.language, n = G(e), r = Z({
3619
+ function Ao(e) {
3620
+ let t = e.rules?.language, n = q(e), r = Q({
3600
3621
  label: e.label,
3601
3622
  rules: e.rules,
3602
3623
  view: e.view
3603
3624
  });
3604
- return q(n, {
3625
+ return Y(n, {
3605
3626
  ...r,
3606
3627
  prim: "text",
3607
3628
  kind: "snippet",
@@ -3611,21 +3632,21 @@ function jo(e) {
3611
3632
  }
3612
3633
  });
3613
3634
  }
3614
- function Mo(e) {
3615
- let t = G(e), n = t.required ?? !1, r = e.rules?.max ?? 5, i = B(fo()).int({ message: V("int") }).min(1, { message: V("min", { min: 1 }) }).max(r, { message: V("max", { max: r }) });
3616
- return q(t, Y({
3635
+ function jo(e) {
3636
+ let t = q(e), n = t.required ?? !1, r = e.rules?.max ?? 5, i = H(lo()).int({ message: U("int") }).min(1, { message: U("min", { min: 1 }) }).max(r, { message: U("max", { max: r }) });
3637
+ return Y(t, X({
3617
3638
  kind: "rating",
3618
3639
  label: t.label ?? "",
3619
3640
  required: n,
3620
3641
  prim: "number",
3621
3642
  column: "integer",
3622
3643
  hints: { max: r },
3623
- zod: W(i, n)
3644
+ zod: K(i, n)
3624
3645
  }, t.multiple ?? !1));
3625
3646
  }
3626
- function No(e) {
3627
- let t = G(e), n = t.required ?? !1, r = e.rules?.max ?? 604800, i = e.rules?.step ?? 60, a = B(fo()).int({ message: V("int") }).min(0, { message: V("min", { min: 0 }) }).max(r, { message: V("max", { max: r }) });
3628
- return q(t, Y({
3647
+ function Mo(e) {
3648
+ let t = q(e), n = t.required ?? !1, r = e.rules?.max ?? 604800, i = e.rules?.step ?? 60, a = H(lo()).int({ message: U("int") }).min(0, { message: U("min", { min: 0 }) }).max(r, { message: U("max", { max: r }) });
3649
+ return Y(t, X({
3629
3650
  kind: "duration",
3630
3651
  label: t.label ?? "",
3631
3652
  required: n,
@@ -3635,16 +3656,16 @@ function No(e) {
3635
3656
  step: i,
3636
3657
  max: r
3637
3658
  },
3638
- zod: W(a, n)
3659
+ zod: K(a, n)
3639
3660
  }, t.multiple ?? !1));
3640
3661
  }
3641
- function Po(e) {
3642
- let t = G(e), n = _s({
3662
+ function No(e) {
3663
+ let t = q(e), n = _s({
3643
3664
  label: e.label,
3644
3665
  rules: e.rules,
3645
3666
  view: e.view
3646
3667
  });
3647
- return q(t, {
3668
+ return Y(t, {
3648
3669
  ...n,
3649
3670
  kind: "reminder",
3650
3671
  hints: {
@@ -3654,9 +3675,9 @@ function Po(e) {
3654
3675
  }
3655
3676
  });
3656
3677
  }
3657
- var Fo = hs, Io = gs;
3658
- function Lo(e) {
3659
- return Fo({
3678
+ var Po = hs, Fo = gs;
3679
+ function Io(e) {
3680
+ return Po({
3660
3681
  ...e,
3661
3682
  rules: {
3662
3683
  min: 0,
@@ -3665,8 +3686,8 @@ function Lo(e) {
3665
3686
  }
3666
3687
  });
3667
3688
  }
3668
- function Ro(e) {
3669
- return Io({
3689
+ function Lo(e) {
3690
+ return Fo({
3670
3691
  ...e,
3671
3692
  rules: {
3672
3693
  min: 1900,
@@ -3675,8 +3696,8 @@ function Ro(e) {
3675
3696
  }
3676
3697
  });
3677
3698
  }
3678
- function zo(e) {
3679
- let t = G(e), n = gs({
3699
+ function Ro(e) {
3700
+ let t = q(e), n = gs({
3680
3701
  label: e.label,
3681
3702
  rules: {
3682
3703
  min: 1,
@@ -3684,7 +3705,7 @@ function zo(e) {
3684
3705
  },
3685
3706
  view: e.view
3686
3707
  });
3687
- return q(t, {
3708
+ return Y(t, {
3688
3709
  ...n,
3689
3710
  kind: "weight",
3690
3711
  hints: {
@@ -3693,13 +3714,13 @@ function zo(e) {
3693
3714
  }
3694
3715
  });
3695
3716
  }
3696
- function Bo(e) {
3697
- let t = G(e), n = t.required ?? !1, r = mo(R({
3698
- w: I().int().nonnegative(),
3699
- h: I().int().nonnegative(),
3700
- d: I().int().nonnegative()
3717
+ function zo(e) {
3718
+ let t = q(e), n = t.required ?? !1, r = fo(B({
3719
+ w: R().int().nonnegative(),
3720
+ h: R().int().nonnegative(),
3721
+ d: R().int().nonnegative()
3701
3722
  }), "json");
3702
- return q(t, {
3723
+ return Y(t, {
3703
3724
  kind: "dimensions",
3704
3725
  label: t.label ?? "",
3705
3726
  required: n,
@@ -3711,37 +3732,38 @@ function Bo(e) {
3711
3732
  h: "integer",
3712
3733
  d: "integer"
3713
3734
  },
3714
- zod: W(r, n)
3735
+ zod: K(r, n)
3715
3736
  });
3716
3737
  }
3717
- function Vo(e) {
3738
+ function Bo(e) {
3718
3739
  return Ss({
3719
3740
  ...e,
3720
3741
  options: "countries"
3721
3742
  });
3722
3743
  }
3723
- var Ho = {
3724
- email: ho,
3725
- tel: go,
3726
- slug: yo,
3727
- color: xo,
3728
- colorname: So,
3729
- title: Co,
3730
- password: _o,
3731
- link: wo,
3732
- tag: Oo,
3733
- tags: ko,
3734
- markdown: Ao,
3735
- snippet: jo,
3736
- rating: Mo,
3737
- duration: No,
3738
- reminder: Po,
3739
- percent: Lo,
3740
- year: Ro,
3741
- weight: zo,
3742
- dimensions: Bo,
3743
- country: Vo
3744
- }, Uo = /* @__PURE__ */ t(((e, t) => {
3744
+ var Vo = {
3745
+ email: po,
3746
+ tel: mo,
3747
+ slug: vo,
3748
+ color: bo,
3749
+ colorname: xo,
3750
+ title: So,
3751
+ password: ho,
3752
+ link: Co,
3753
+ tag: Do,
3754
+ tags: Oo,
3755
+ markdown: ko,
3756
+ snippet: Ao,
3757
+ rating: jo,
3758
+ duration: Mo,
3759
+ reminder: No,
3760
+ percent: Io,
3761
+ year: Lo,
3762
+ weight: Ro,
3763
+ dimensions: zo,
3764
+ country: Bo,
3765
+ internalApiToken: go
3766
+ }, Ho = /* @__PURE__ */ t(((e, t) => {
3745
3767
  t.exports = {
3746
3768
  aa: {
3747
3769
  name: "Afar",
@@ -4476,8 +4498,8 @@ var Ho = {
4476
4498
  nativeName: "isiZulu"
4477
4499
  }
4478
4500
  };
4479
- })), Wo = /* @__PURE__ */ e((/* @__PURE__ */ t(((e, t) => {
4480
- var n = Uo(), r = {}, i = {}, a = [], o = [], s = [];
4501
+ })), Uo = /* @__PURE__ */ e((/* @__PURE__ */ t(((e, t) => {
4502
+ var n = Ho(), r = {}, i = {}, a = [], o = [], s = [];
4481
4503
  for (let e in n) {
4482
4504
  let { name: t, nativeName: c } = n[e];
4483
4505
  r[e] = i[t.toLowerCase()] = i[c.toLowerCase()] = {
@@ -4517,14 +4539,14 @@ var Ho = {
4517
4539
  }
4518
4540
  };
4519
4541
  })))(), 1);
4520
- Wo.default.getAllCodes().map((e) => ({
4542
+ Uo.default.getAllCodes().map((e) => ({
4521
4543
  code: e,
4522
- name: Wo.default.getNativeName(e)
4544
+ name: Uo.default.getNativeName(e)
4523
4545
  })).sort((e, t) => e.name.localeCompare(t.name));
4524
4546
  //#endregion
4525
4547
  //#region ../sdk/src/fields.ts
4526
- var Go = (e) => "key" in e && !("el" in e), Ko = (e) => "el" in e && e.el === "static", qo = (e) => "el" in e && e.el === "group", Jo = (e) => "el" in e && e.el === "divider", Yo = (e) => "el" in e && e.el === "info", Xo = (e) => "el" in e && e.el === "button";
4527
- function K(e) {
4548
+ var Wo = (e) => "key" in e && !("el" in e), Go = (e) => "el" in e && e.el === "static", Ko = (e) => "el" in e && e.el === "group", qo = (e) => "el" in e && e.el === "divider", Jo = (e) => "el" in e && e.el === "info", Yo = (e) => "el" in e && e.el === "button";
4549
+ function J(e) {
4528
4550
  let t = e.rules ?? {}, n = e.view ?? {};
4529
4551
  if (e.key) {
4530
4552
  if (!e.label) throw Error(`[field.group] storage group '${e.key}' requires a label`);
@@ -4545,8 +4567,8 @@ function K(e) {
4545
4567
  fields: e.fields
4546
4568
  };
4547
4569
  }
4548
- function Zo(e) {
4549
- return K({
4570
+ function Xo(e) {
4571
+ return J({
4550
4572
  label: e.label,
4551
4573
  fields: e.fields,
4552
4574
  view: {
@@ -4555,8 +4577,8 @@ function Zo(e) {
4555
4577
  }
4556
4578
  });
4557
4579
  }
4558
- function Qo(e) {
4559
- return K({
4580
+ function Zo(e) {
4581
+ return J({
4560
4582
  key: e.key,
4561
4583
  label: e.label,
4562
4584
  fields: e.fields,
@@ -4569,11 +4591,11 @@ function Qo(e) {
4569
4591
  }
4570
4592
  });
4571
4593
  }
4572
- function $o(e) {
4594
+ function Qo(e) {
4573
4595
  let t = [];
4574
4596
  return e.fields.forEach((e, n) => {
4575
- n > 0 && t.push(as()), t.push(...e);
4576
- }), K({
4597
+ n > 0 && t.push(is()), t.push(...e);
4598
+ }), J({
4577
4599
  label: e.label,
4578
4600
  fields: t,
4579
4601
  view: {
@@ -4582,28 +4604,28 @@ function $o(e) {
4582
4604
  }
4583
4605
  });
4584
4606
  }
4585
- function es(e) {
4586
- return K({
4607
+ function $o(e) {
4608
+ return J({
4587
4609
  key: e.key,
4588
4610
  label: e.label ?? e.key,
4589
4611
  required: e.required,
4590
4612
  view: { kind: "url" },
4591
4613
  fields: [
4592
- X({ key: "scheme" }),
4593
- X({ key: "username" }),
4594
- X({ key: "password" }),
4595
- X({ key: "host" }),
4614
+ Z({ key: "scheme" }),
4615
+ Z({ key: "username" }),
4616
+ Z({ key: "password" }),
4617
+ Z({ key: "host" }),
4596
4618
  gs({ key: "port" }),
4597
- X({ key: "path" }),
4598
- X({ key: "query" }),
4599
- X({ key: "hash" })
4619
+ Z({ key: "path" }),
4620
+ Z({ key: "query" }),
4621
+ Z({ key: "hash" })
4600
4622
  ]
4601
4623
  });
4602
4624
  }
4603
- function ts(e) {
4625
+ function es(e) {
4604
4626
  if (e.fixed && e.by.type.prim !== "select") throw Error(`[field.keyed] fixed requires by=select (enumerated), got '${e.by.type.prim}'`);
4605
4627
  return {
4606
- ...(e.container ?? K)({
4628
+ ...(e.container ?? J)({
4607
4629
  label: e.label,
4608
4630
  fields: [e.by, ...e.fields],
4609
4631
  view: e.view
@@ -4615,20 +4637,20 @@ function ts(e) {
4615
4637
  fixed: e.fixed
4616
4638
  };
4617
4639
  }
4618
- var ns = (e) => e.key != null && e.multiple === !0, rs = (e) => e.key != null && e.multiple !== !0;
4619
- function is() {
4640
+ var ts = (e) => e.key != null && e.multiple === !0, ns = (e) => e.key != null && e.multiple !== !0;
4641
+ function rs() {
4620
4642
  return { el: "divider" };
4621
4643
  }
4622
- function as() {
4644
+ function is() {
4623
4645
  return { el: "break" };
4624
4646
  }
4625
- function os(e) {
4647
+ function as(e) {
4626
4648
  return {
4627
4649
  el: "info",
4628
4650
  text: e
4629
4651
  };
4630
4652
  }
4631
- function ss(e) {
4653
+ function os(e) {
4632
4654
  return {
4633
4655
  el: "button",
4634
4656
  label: e.label,
@@ -4637,7 +4659,7 @@ function ss(e) {
4637
4659
  variant: e.variant
4638
4660
  };
4639
4661
  }
4640
- function q(e, t) {
4662
+ function Y(e, t) {
4641
4663
  let n = t;
4642
4664
  return e.noEditControl && (n = {
4643
4665
  ...n,
@@ -4660,7 +4682,7 @@ function q(e, t) {
4660
4682
  value: e.value
4661
4683
  } : n;
4662
4684
  }
4663
- function J(e) {
4685
+ function ss(e) {
4664
4686
  return e === "today" ? (/* @__PURE__ */ new Date()).toISOString().slice(0, 10) : e;
4665
4687
  }
4666
4688
  function cs(e) {
@@ -4671,42 +4693,42 @@ function cs(e) {
4671
4693
  }
4672
4694
  }
4673
4695
  function ls(e) {
4674
- return L().superRefine((t, n) => {
4696
+ return z().superRefine((t, n) => {
4675
4697
  let r;
4676
4698
  if (Array.isArray(t)) r = t;
4677
4699
  else if (typeof t == "string") try {
4678
4700
  r = JSON.parse(t);
4679
4701
  } catch {
4680
4702
  n.addIssue({
4681
- code: z.custom,
4682
- message: V("json")
4703
+ code: V.custom,
4704
+ message: U("json")
4683
4705
  });
4684
4706
  return;
4685
4707
  }
4686
4708
  else {
4687
4709
  n.addIssue({
4688
- code: z.custom,
4689
- message: V("array")
4710
+ code: V.custom,
4711
+ message: U("array")
4690
4712
  });
4691
4713
  return;
4692
4714
  }
4693
4715
  if (!Array.isArray(r)) {
4694
4716
  n.addIssue({
4695
- code: z.custom,
4696
- message: V("array")
4717
+ code: V.custom,
4718
+ message: U("array")
4697
4719
  });
4698
4720
  return;
4699
4721
  }
4700
4722
  for (let t of r) if (!e.safeParse(t).success) {
4701
4723
  n.addIssue({
4702
- code: z.custom,
4703
- message: V("array_item")
4724
+ code: V.custom,
4725
+ message: U("array_item")
4704
4726
  });
4705
4727
  return;
4706
4728
  }
4707
4729
  });
4708
4730
  }
4709
- function Y(e, t) {
4731
+ function X(e, t) {
4710
4732
  if (!t) return e;
4711
4733
  let n = ls(e.zod);
4712
4734
  return {
@@ -4717,12 +4739,12 @@ function Y(e, t) {
4717
4739
  multiple: !0
4718
4740
  },
4719
4741
  json: !0,
4720
- zod: W(n, e.required)
4742
+ zod: K(n, e.required)
4721
4743
  };
4722
4744
  }
4723
- function X(e) {
4724
- let t = G(e), n = t.required ?? !1, r = t.config ?? {}, i = r.min ?? +(t.required === !0), a = P(po());
4725
- return i > 0 && (a = a.min(i, { message: V("min_length", { min: i }) })), r.max != null && (a = a.max(r.max, { message: V("max_length", { max: r.max }) })), r.pattern && (a = a.regex(new RegExp(r.pattern), { message: V("pattern", r.messageKey ? { messageKey: r.messageKey } : void 0) })), q(t, Y({
4745
+ function Z(e) {
4746
+ let t = q(e), n = t.required ?? !1, r = t.config ?? {}, i = r.min ?? +(t.required === !0), a = I(uo());
4747
+ return i > 0 && (a = a.min(i, { message: U("min_length", { min: i }) })), r.max != null && (a = a.max(r.max, { message: U("max_length", { max: r.max }) })), r.pattern && (a = a.regex(new RegExp(r.pattern), { message: U("pattern", r.messageKey ? { messageKey: r.messageKey } : void 0) })), Y(t, X({
4726
4748
  kind: "text",
4727
4749
  label: t.label ?? "",
4728
4750
  required: n,
@@ -4732,32 +4754,32 @@ function X(e) {
4732
4754
  minLength: r.min,
4733
4755
  maxLength: r.max
4734
4756
  },
4735
- zod: W(a, n)
4757
+ zod: K(a, n)
4736
4758
  }, t.multiple ?? !1));
4737
4759
  }
4738
4760
  function us(e, t, n) {
4739
- let r = e.required ?? !1, i = P(po());
4740
- return e.required === !0 && (i = i.min(1, { message: V("min_length", { min: 1 }) })), q(e, {
4761
+ let r = e.required ?? !1, i = I(uo());
4762
+ return e.required === !0 && (i = i.min(1, { message: U("min_length", { min: 1 }) })), Y(e, {
4741
4763
  kind: t,
4742
4764
  label: e.label ?? "",
4743
4765
  required: r,
4744
4766
  prim: "text",
4745
4767
  column: "text",
4746
4768
  hints: n && n.length ? { exts: n } : {},
4747
- zod: W(i, r),
4769
+ zod: K(i, r),
4748
4770
  ...e.default === void 0 ? {} : { default: e.default }
4749
4771
  });
4750
4772
  }
4751
4773
  function ds(e) {
4752
- return us(G(e), "localDir");
4774
+ return us(q(e), "localDir");
4753
4775
  }
4754
4776
  function fs(e) {
4755
- let t = G(e);
4777
+ let t = q(e);
4756
4778
  return us(t, "localFile", t.exts);
4757
4779
  }
4758
- function Z(e) {
4759
- return q(G(e), {
4760
- ...X({
4780
+ function Q(e) {
4781
+ return Y(q(e), {
4782
+ ...Z({
4761
4783
  ...e,
4762
4784
  key: void 0,
4763
4785
  value: void 0
@@ -4767,8 +4789,8 @@ function Z(e) {
4767
4789
  });
4768
4790
  }
4769
4791
  function ps(e) {
4770
- return q(G(e), {
4771
- ...Z({
4792
+ return Y(q(e), {
4793
+ ...Q({
4772
4794
  ...e,
4773
4795
  key: void 0,
4774
4796
  value: void 0
@@ -4777,8 +4799,8 @@ function ps(e) {
4777
4799
  });
4778
4800
  }
4779
4801
  function ms(e) {
4780
- return q(G(e), {
4781
- ...Z({
4802
+ return Y(q(e), {
4803
+ ...Q({
4782
4804
  ...e,
4783
4805
  key: void 0,
4784
4806
  value: void 0
@@ -4787,8 +4809,8 @@ function ms(e) {
4787
4809
  });
4788
4810
  }
4789
4811
  function hs(e) {
4790
- let t = G(e), n = t.required ?? !1, r = t.config ?? {}, i = B(fo());
4791
- return r.min != null && (i = i.min(r.min, { message: V("min", { min: r.min }) })), r.max != null && (i = i.max(r.max, { message: V("max", { max: r.max }) })), q(t, Y({
4812
+ let t = q(e), n = t.required ?? !1, r = t.config ?? {}, i = H(lo());
4813
+ return r.min != null && (i = i.min(r.min, { message: U("min", { min: r.min }) })), r.max != null && (i = i.max(r.max, { message: U("max", { max: r.max }) })), Y(t, X({
4792
4814
  kind: "number",
4793
4815
  label: t.label ?? "",
4794
4816
  required: n,
@@ -4799,12 +4821,12 @@ function hs(e) {
4799
4821
  max: r.max,
4800
4822
  step: r.step ?? "any"
4801
4823
  },
4802
- zod: W(i, n)
4824
+ zod: K(i, n)
4803
4825
  }, t.multiple ?? !1));
4804
4826
  }
4805
4827
  function gs(e) {
4806
- let t = G(e), n = t.required ?? !1, r = t.config ?? {}, i = B(fo()).int({ message: V("int") });
4807
- return r.min != null && (i = i.min(r.min, { message: V("min", { min: r.min }) })), r.max != null && (i = i.max(r.max, { message: V("max", { max: r.max }) })), q(t, Y({
4828
+ let t = q(e), n = t.required ?? !1, r = t.config ?? {}, i = H(lo()).int({ message: U("int") });
4829
+ return r.min != null && (i = i.min(r.min, { message: U("min", { min: r.min }) })), r.max != null && (i = i.max(r.max, { message: U("max", { max: r.max }) })), Y(t, X({
4808
4830
  kind: "number",
4809
4831
  label: t.label ?? "",
4810
4832
  required: n,
@@ -4815,36 +4837,36 @@ function gs(e) {
4815
4837
  max: r.max,
4816
4838
  step: r.step ?? 1
4817
4839
  },
4818
- zod: W(i, n)
4840
+ zod: K(i, n)
4819
4841
  }, t.multiple ?? !1));
4820
4842
  }
4821
4843
  function _s(e) {
4822
- let t = G(e), n = t.required ?? !1, r = t.config?.granularity ?? "day", i;
4823
- return i = r === "year" ? P(H()).regex(/^\d{4}$/, { message: V("date_format") }).superRefine((e, n) => {
4844
+ let t = q(e), n = t.required ?? !1, r = t.config?.granularity ?? "day", i;
4845
+ return i = r === "year" ? I(W()).regex(/^\d{4}$/, { message: U("date_format") }).superRefine((e, n) => {
4824
4846
  t.min && e < t.min && n.addIssue({
4825
- code: z.custom,
4826
- message: V("date_min", { min: t.min })
4847
+ code: V.custom,
4848
+ message: U("date_min", { min: t.min })
4827
4849
  }), t.max && e > t.max && n.addIssue({
4828
- code: z.custom,
4829
- message: V("date_max", { max: t.max })
4850
+ code: V.custom,
4851
+ message: U("date_max", { max: t.max })
4830
4852
  });
4831
- }) : r === "month" ? P(H()).regex(/^\d{4}-\d{2}$/, { message: V("date_format") }).superRefine((e, n) => {
4853
+ }) : r === "month" ? I(W()).regex(/^\d{4}-\d{2}$/, { message: U("date_format") }).superRefine((e, n) => {
4832
4854
  t.min && e < t.min && n.addIssue({
4833
- code: z.custom,
4834
- message: V("date_min", { min: t.min })
4855
+ code: V.custom,
4856
+ message: U("date_min", { min: t.min })
4835
4857
  }), t.max && e > t.max && n.addIssue({
4836
- code: z.custom,
4837
- message: V("date_max", { max: t.max })
4858
+ code: V.custom,
4859
+ message: U("date_max", { max: t.max })
4838
4860
  });
4839
- }) : P(H()).regex(/^\d{4}-\d{2}-\d{2}$/, { message: V("date_format") }).superRefine((e, n) => {
4840
- t.min && e < J(t.min) && n.addIssue({
4841
- code: z.custom,
4842
- message: V("date_min", { min: J(t.min) })
4843
- }), t.max && e > J(t.max) && n.addIssue({
4844
- code: z.custom,
4845
- message: V("date_max", { max: J(t.max) })
4861
+ }) : I(W()).regex(/^\d{4}-\d{2}-\d{2}$/, { message: U("date_format") }).superRefine((e, n) => {
4862
+ t.min && e < ss(t.min) && n.addIssue({
4863
+ code: V.custom,
4864
+ message: U("date_min", { min: ss(t.min) })
4865
+ }), t.max && e > ss(t.max) && n.addIssue({
4866
+ code: V.custom,
4867
+ message: U("date_max", { max: ss(t.max) })
4846
4868
  });
4847
- }), q(t, Y({
4869
+ }), Y(t, X({
4848
4870
  kind: "date",
4849
4871
  label: t.label ?? "",
4850
4872
  required: n,
@@ -4855,44 +4877,44 @@ function _s(e) {
4855
4877
  max: t.max,
4856
4878
  granularity: r
4857
4879
  },
4858
- zod: W(i, n)
4880
+ zod: K(i, n)
4859
4881
  }, t.multiple ?? !1));
4860
4882
  }
4861
4883
  function vs(e) {
4862
- let t = G(e), n = t.required ?? !1, r = t.config?.granularity ?? "second", i = P(H()).regex({
4884
+ let t = q(e), n = t.required ?? !1, r = t.config?.granularity ?? "second", i = I(W()).regex({
4863
4885
  hour: /^([01]\d|2[0-3])$/,
4864
4886
  minute: /^([01]\d|2[0-3]):[0-5]\d$/,
4865
4887
  second: /^([01]\d|2[0-3]):[0-5]\d:[0-5]\d$/
4866
- }[r], { message: V("time_format") });
4867
- return q(t, Y({
4888
+ }[r], { message: U("time_format") });
4889
+ return Y(t, X({
4868
4890
  kind: "time",
4869
4891
  label: t.label ?? "",
4870
4892
  required: n,
4871
4893
  prim: "time",
4872
4894
  column: "time",
4873
4895
  hints: { granularity: r },
4874
- zod: W(i, n)
4896
+ zod: K(i, n)
4875
4897
  }, t.multiple ?? !1));
4876
4898
  }
4877
4899
  function ys(e) {
4878
- let t = G(e), n = t.required ?? !1, r = t.config?.granularity ?? "minute", i = P(H()).regex({
4900
+ let t = q(e), n = t.required ?? !1, r = t.config?.granularity ?? "minute", i = I(W()).regex({
4879
4901
  hour: /^\d{4}-\d{2}-\d{2}T([01]\d|2[0-3])$/,
4880
4902
  minute: /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}$/,
4881
4903
  second: /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}$/
4882
- }[r], { message: V("datetime_format") });
4883
- return q(t, Y({
4904
+ }[r], { message: U("datetime_format") });
4905
+ return Y(t, X({
4884
4906
  kind: "datetime",
4885
4907
  label: t.label ?? "",
4886
4908
  required: n,
4887
4909
  prim: "datetime",
4888
4910
  column: "datetime",
4889
4911
  hints: { granularity: r },
4890
- zod: W(i, n)
4912
+ zod: K(i, n)
4891
4913
  }, t.multiple ?? !1));
4892
4914
  }
4893
4915
  function bs(e) {
4894
- let t = G(e), n = to((e) => e === "true" || e === 1 || e === "1" ? !0 : e === "false" || e === 0 || e === "0" ? !1 : e, ga().default(!1).nullable());
4895
- return q(t, {
4916
+ let t = q(e), n = $a((e) => e === "true" || e === 1 || e === "1" ? !0 : e === "false" || e === 0 || e === "0" ? !1 : e, ma().default(!1).nullable());
4917
+ return Y(t, {
4896
4918
  kind: "boolean",
4897
4919
  label: t.label ?? "",
4898
4920
  required: !1,
@@ -4903,24 +4925,24 @@ function bs(e) {
4903
4925
  });
4904
4926
  }
4905
4927
  function xs(e) {
4906
- let t = G(e), n = t.required ?? !1, r = Aa([
4928
+ let t = q(e), n = t.required ?? !1, r = Oa([
4907
4929
  "yes",
4908
4930
  "no",
4909
4931
  "unknown"
4910
- ], { error: () => V("enum") });
4911
- return q(t, {
4932
+ ], { error: () => U("enum") });
4933
+ return Y(t, {
4912
4934
  kind: "triState",
4913
4935
  label: t.label ?? "",
4914
4936
  required: n,
4915
4937
  prim: "triState",
4916
4938
  column: "text",
4917
4939
  hints: {},
4918
- zod: W(r, n)
4940
+ zod: K(r, n)
4919
4941
  });
4920
4942
  }
4921
4943
  function Ss(e) {
4922
- let t = G(e), n = t.required ?? !1, r = typeof t.options == "string" ? t.options : null, i = Array.isArray(t.options) ? t.options : [], a = i.length > 0 ? Aa(i.map((e) => e.value), { error: () => V("enum") }) : P(H());
4923
- return q(t, Y({
4944
+ let t = q(e), n = t.required ?? !1, r = typeof t.options == "string" ? t.options : null, i = Array.isArray(t.options) ? t.options : [], a = i.length > 0 ? Oa(i.map((e) => e.value), { error: () => U("enum") }) : I(W());
4945
+ return Y(t, X({
4924
4946
  kind: "select",
4925
4947
  label: t.label ?? "",
4926
4948
  required: n,
@@ -4928,18 +4950,18 @@ function Ss(e) {
4928
4950
  column: "text",
4929
4951
  hints: { source: r },
4930
4952
  options: i,
4931
- zod: W(a, n)
4953
+ zod: K(a, n)
4932
4954
  }, t.multiple ?? !1));
4933
4955
  }
4934
4956
  function Cs(e) {
4935
- let t = G(e), n = t.required ?? !1, r = t.multiple ?? !1, i;
4936
- return i = r ? L().superRefine((e, t) => {
4937
- let n = U(e);
4957
+ let t = q(e), n = t.required ?? !1, r = t.multiple ?? !1, i;
4958
+ return i = r ? z().superRefine((e, t) => {
4959
+ let n = G(e);
4938
4960
  (!Array.isArray(n) || !n.every((e) => Number.isInteger(e) && e > 0)) && t.addIssue({
4939
- code: z.custom,
4940
- message: V("int_list")
4961
+ code: V.custom,
4962
+ message: U("int_list")
4941
4963
  });
4942
- }) : B().int().positive({ message: V("int") }), q(t, {
4964
+ }) : H().int().positive({ message: U("int") }), Y(t, {
4943
4965
  kind: "relation",
4944
4966
  label: t.label ?? "",
4945
4967
  required: n,
@@ -4954,21 +4976,21 @@ function Cs(e) {
4954
4976
  type: e.options.module
4955
4977
  },
4956
4978
  ...r && { json: !0 },
4957
- zod: W(i, n)
4979
+ zod: K(i, n)
4958
4980
  });
4959
4981
  }
4960
4982
  function ws(e) {
4961
- let t = G(e), n = t.required ?? !1, r = L().superRefine((e, t) => {
4983
+ let t = q(e), n = t.required ?? !1, r = z().superRefine((e, t) => {
4962
4984
  if (typeof e == "string") try {
4963
4985
  JSON.parse(e);
4964
4986
  } catch {
4965
4987
  t.addIssue({
4966
- code: z.custom,
4967
- message: V("json")
4988
+ code: V.custom,
4989
+ message: U("json")
4968
4990
  });
4969
4991
  }
4970
4992
  });
4971
- return q(t, {
4993
+ return Y(t, {
4972
4994
  kind: "json",
4973
4995
  label: t.label ?? "",
4974
4996
  required: n,
@@ -4976,46 +4998,47 @@ function ws(e) {
4976
4998
  column: "text",
4977
4999
  hints: {},
4978
5000
  json: !0,
4979
- zod: W(r, n)
5001
+ zod: K(r, n)
4980
5002
  });
4981
5003
  }
4982
5004
  function Ts(e) {
4983
- let t = G(e), n = t.required ?? !1, r = t.multiple ?? !1, i = t.slots && t.slots.length > 0 ? t.slots : [""];
5005
+ let t = q(e), n = t.required ?? !1, r = t.multiple ?? !1, i = t.slots && t.slots.length > 0 ? t.slots : [""];
4984
5006
  if (r) {
4985
- let e = [X({
5007
+ let e = i.map((e, t) => bs({
5008
+ key: `check${t}`,
5009
+ label: e || "core.fields.check"
5010
+ }));
5011
+ return e.push(Z({
4986
5012
  key: "text",
4987
5013
  label: "core.fields.text"
4988
- })];
4989
- return i.forEach((t, n) => e.push(bs({
4990
- key: `check${n}`,
4991
- label: t || "core.fields.check"
4992
- }))), K({
5014
+ })), J({
4993
5015
  key: t.key,
4994
5016
  label: t.label ?? t.key,
4995
5017
  multiple: !0,
4996
5018
  required: n,
4997
- fields: e
5019
+ fields: e,
5020
+ view: { kind: "checklist" }
4998
5021
  });
4999
5022
  }
5000
- let a = { text: P() }, o = { text: "text" };
5023
+ let a = { text: I() }, o = { text: "text" };
5001
5024
  i.forEach((e, t) => {
5002
- a[`check${t}`] = ga(), o[`check${t}`] = "boolean";
5025
+ a[`check${t}`] = ma(), o[`check${t}`] = "boolean";
5003
5026
  });
5004
- let s = R(a).passthrough(), c = L().superRefine((e, t) => {
5027
+ let s = B(a).passthrough(), c = z().superRefine((e, t) => {
5005
5028
  let n = typeof e == "string" ? cs(e) : e;
5006
5029
  if (n === void 0) {
5007
5030
  t.addIssue({
5008
- code: z.custom,
5009
- message: V("json")
5031
+ code: V.custom,
5032
+ message: U("json")
5010
5033
  });
5011
5034
  return;
5012
5035
  }
5013
5036
  s.safeParse(n).success || t.addIssue({
5014
- code: z.custom,
5015
- message: V("check_structure")
5037
+ code: V.custom,
5038
+ message: U("check_structure")
5016
5039
  });
5017
5040
  });
5018
- return q(t, {
5041
+ return Y(t, {
5019
5042
  kind: "check",
5020
5043
  label: t.label ?? "",
5021
5044
  required: n,
@@ -5023,21 +5046,21 @@ function Ts(e) {
5023
5046
  column: "text",
5024
5047
  hints: { slots: i },
5025
5048
  columns: o,
5026
- zod: W(c, n)
5049
+ zod: K(c, n)
5027
5050
  });
5028
5051
  }
5029
5052
  function Es(e) {
5030
- let t = G(e), n = t.required ?? !1, r = t.config ?? {}, i = so((t.options, t.options)), a = I().finite();
5031
- r.step === 1 && (a = a.int({ message: V("int") })), r.min != null && (a = a.min(r.min)), r.max != null && (a = a.max(r.max));
5032
- let o = R({
5053
+ let t = q(e), n = t.required ?? !1, r = t.config ?? {}, i = ao((t.options, t.options)), a = R().finite();
5054
+ r.step === 1 && (a = a.int({ message: U("int") })), r.min != null && (a = a.min(r.min)), r.max != null && (a = a.max(r.max));
5055
+ let o = B({
5033
5056
  value: a,
5034
- unit: P().refine((e) => i.some((t) => t.value === e), { message: V("measured_unit") })
5035
- }), s = L().superRefine((e, t) => {
5036
- let n = U(e);
5057
+ unit: I().refine((e) => i.some((t) => t.value === e), { message: U("measured_unit") })
5058
+ }), s = z().superRefine((e, t) => {
5059
+ let n = G(e);
5037
5060
  if (typeof n == "string") {
5038
5061
  t.addIssue({
5039
- code: z.custom,
5040
- message: V("json")
5062
+ code: V.custom,
5063
+ message: U("json")
5041
5064
  });
5042
5065
  return;
5043
5066
  }
@@ -5051,12 +5074,12 @@ function Es(e) {
5051
5074
  }
5052
5075
  });
5053
5076
  t.addIssue({
5054
- code: z.custom,
5055
- message: e ? e.message : V("measured_structure")
5077
+ code: V.custom,
5078
+ message: e ? e.message : U("measured_structure")
5056
5079
  });
5057
5080
  }
5058
5081
  });
5059
- return q(t, {
5082
+ return Y(t, {
5060
5083
  kind: "measured",
5061
5084
  label: t.label ?? "",
5062
5085
  required: n,
@@ -5072,30 +5095,30 @@ function Es(e) {
5072
5095
  value: "real",
5073
5096
  unit: "text"
5074
5097
  },
5075
- zod: W(s, n)
5098
+ zod: K(s, n)
5076
5099
  });
5077
5100
  }
5078
5101
  function Ds(e) {
5079
- let t = G(e), n = t.required ?? !1, r = t.config ?? {}, i = I().finite();
5102
+ let t = q(e), n = t.required ?? !1, r = t.config ?? {}, i = R().finite();
5080
5103
  r.min != null && (i = i.min(r.min)), r.max != null && (i = i.max(r.max));
5081
- let a = R({
5104
+ let a = B({
5082
5105
  value: i,
5083
- currency: P().refine(uo, { message: V("money_currency") })
5084
- }), o = L().superRefine((e, t) => {
5085
- let n = U(e);
5106
+ currency: I().refine(co, { message: U("money_currency") })
5107
+ }), o = z().superRefine((e, t) => {
5108
+ let n = G(e);
5086
5109
  if (typeof n == "string") {
5087
5110
  t.addIssue({
5088
- code: z.custom,
5089
- message: V("json")
5111
+ code: V.custom,
5112
+ message: U("json")
5090
5113
  });
5091
5114
  return;
5092
5115
  }
5093
5116
  a.safeParse(n).success || t.addIssue({
5094
- code: z.custom,
5095
- message: V("money_structure")
5117
+ code: V.custom,
5118
+ message: U("money_structure")
5096
5119
  });
5097
5120
  });
5098
- return q(t, {
5121
+ return Y(t, {
5099
5122
  kind: "money",
5100
5123
  label: t.label ?? "",
5101
5124
  required: n,
@@ -5110,28 +5133,28 @@ function Ds(e) {
5110
5133
  value: "real",
5111
5134
  currency: "text"
5112
5135
  },
5113
- zod: W(o, n)
5136
+ zod: K(o, n)
5114
5137
  });
5115
5138
  }
5116
5139
  function Os(e) {
5117
- let t = G(e), n = t.required ?? !1, r = t.config ?? {}, i = R({
5118
- code: P(),
5119
- lang: P()
5120
- }), a = L().superRefine((e, t) => {
5121
- let n = U(e);
5140
+ let t = q(e), n = t.required ?? !1, r = t.config ?? {}, i = B({
5141
+ code: I(),
5142
+ lang: I()
5143
+ }), a = z().superRefine((e, t) => {
5144
+ let n = G(e);
5122
5145
  if (typeof n == "string") {
5123
5146
  t.addIssue({
5124
- code: z.custom,
5125
- message: V("json")
5147
+ code: V.custom,
5148
+ message: U("json")
5126
5149
  });
5127
5150
  return;
5128
5151
  }
5129
5152
  i.safeParse(n).success || t.addIssue({
5130
- code: z.custom,
5131
- message: V("code_structure")
5153
+ code: V.custom,
5154
+ message: U("code_structure")
5132
5155
  });
5133
5156
  });
5134
- return q(t, {
5157
+ return Y(t, {
5135
5158
  kind: "code",
5136
5159
  label: t.label ?? "",
5137
5160
  required: n,
@@ -5142,29 +5165,36 @@ function Os(e) {
5142
5165
  code: "text",
5143
5166
  lang: "text"
5144
5167
  },
5145
- zod: W(a, n)
5168
+ zod: K(a, n)
5146
5169
  });
5147
5170
  }
5148
5171
  function ks(e) {
5149
- let t = G(e), n = t.required ?? !1, r = R({
5150
- lat: I().min(-90).max(90),
5151
- lng: I().min(-180).max(180),
5152
- label: P().optional()
5153
- }), i = L().superRefine((e, t) => {
5154
- let n = U(e);
5155
- if (typeof n == "string") {
5172
+ let t = q(e), n = t.required ?? !1, r = B({
5173
+ lat: R().min(-90).max(90),
5174
+ lng: R().min(-180).max(180),
5175
+ label: I().nullish()
5176
+ }), i = z().superRefine((e, t) => {
5177
+ let i = G(e), a = i;
5178
+ if (a == null || typeof a == "object" && a.lat == null && a.lng == null) {
5179
+ n && t.addIssue({
5180
+ code: V.custom,
5181
+ message: U("required")
5182
+ });
5183
+ return;
5184
+ }
5185
+ if (typeof i == "string") {
5156
5186
  t.addIssue({
5157
- code: z.custom,
5158
- message: V("json")
5187
+ code: V.custom,
5188
+ message: U("json")
5159
5189
  });
5160
5190
  return;
5161
5191
  }
5162
- r.safeParse(n).success || t.addIssue({
5163
- code: z.custom,
5164
- message: V("geo_structure")
5192
+ r.safeParse(i).success || t.addIssue({
5193
+ code: V.custom,
5194
+ message: U("geo_structure")
5165
5195
  });
5166
5196
  });
5167
- return q(t, {
5197
+ return Y(t, {
5168
5198
  kind: "geo",
5169
5199
  label: t.label ?? "",
5170
5200
  required: n,
@@ -5176,12 +5206,12 @@ function ks(e) {
5176
5206
  lng: "real",
5177
5207
  label: "text"
5178
5208
  },
5179
- zod: W(i, n)
5209
+ zod: K(i, n)
5180
5210
  });
5181
5211
  }
5182
5212
  function As(e) {
5183
5213
  return {
5184
- ...ts({
5214
+ ...es({
5185
5215
  key: e.key,
5186
5216
  label: e.label,
5187
5217
  by: Ss({
@@ -5200,8 +5230,8 @@ function As(e) {
5200
5230
  };
5201
5231
  }
5202
5232
  function js(e) {
5203
- let t = G(e);
5204
- return q(t, {
5233
+ let t = q(e);
5234
+ return Y(t, {
5205
5235
  kind: "lookup",
5206
5236
  label: t.label ?? "",
5207
5237
  required: !1,
@@ -5213,11 +5243,11 @@ function js(e) {
5213
5243
  pick: t.pick,
5214
5244
  compareWith: t.compareWith ?? null
5215
5245
  },
5216
- zod: va().optional()
5246
+ zod: ga().optional()
5217
5247
  });
5218
5248
  }
5219
5249
  function Ms(e) {
5220
- let t = G(e), n = t.config?.granularity ?? "day", r = t.required ?? !1, i = t.multiple ?? !1, a = (e, t) => n === "datetime" ? ys({
5250
+ let t = q(e), n = t.config?.granularity ?? "day", r = t.required ?? !1, i = t.multiple ?? !1, a = (e, t) => n === "datetime" ? ys({
5221
5251
  key: e,
5222
5252
  label: t
5223
5253
  }) : _s({
@@ -5225,7 +5255,7 @@ function Ms(e) {
5225
5255
  label: t,
5226
5256
  rules: { granularity: n === "month" ? "month" : "day" }
5227
5257
  });
5228
- if (i) return K({
5258
+ if (i) return J({
5229
5259
  key: t.key,
5230
5260
  label: t.label ?? t.key,
5231
5261
  multiple: !0,
@@ -5237,7 +5267,7 @@ function Ms(e) {
5237
5267
  until: s.type
5238
5268
  }, l = {};
5239
5269
  for (let [e, t] of Object.entries(c)) l[e] = t.zod.optional();
5240
- let u = R(l).passthrough();
5270
+ let u = B(l).passthrough();
5241
5271
  u = u.superRefine((e, t) => {
5242
5272
  if (e == null) return;
5243
5273
  let n = e;
@@ -5250,19 +5280,19 @@ function Ms(e) {
5250
5280
  for (let e of r) {
5251
5281
  let n = e;
5252
5282
  n?.from && n?.until && String(n.from) > String(n.until) && t.addIssue({
5253
- code: z.custom,
5254
- message: V("period_order")
5283
+ code: V.custom,
5284
+ message: U("period_order")
5255
5285
  });
5256
5286
  }
5257
5287
  });
5258
5288
  let d = n === "datetime" ? "datetime" : n === "day" ? "date" : "text", f = [{
5259
5289
  key: "from",
5260
- ...Xs(o.type)
5290
+ ...Zs(o.type)
5261
5291
  }, {
5262
5292
  key: "until",
5263
- ...Xs(s.type)
5293
+ ...Zs(s.type)
5264
5294
  }];
5265
- return q(t, {
5295
+ return Y(t, {
5266
5296
  kind: "period",
5267
5297
  label: t.label ?? "",
5268
5298
  required: r,
@@ -5278,34 +5308,34 @@ function Ms(e) {
5278
5308
  from: d,
5279
5309
  until: d
5280
5310
  },
5281
- zod: W(u, r)
5311
+ zod: K(u, r)
5282
5312
  });
5283
5313
  }
5284
- function Q(e, t) {
5285
- let n = G(t), r = n.required ?? !1, i = n.multiple ?? !1, a = R({
5286
- name: P().min(1),
5287
- mime: P().optional(),
5288
- size: I().optional()
5289
- }), o = L().superRefine((e, t) => {
5314
+ function $(e, t) {
5315
+ let n = q(t), r = n.required ?? !1, i = n.multiple ?? !1, a = B({
5316
+ name: I().min(1),
5317
+ mime: I().optional(),
5318
+ size: R().optional()
5319
+ }), o = z().superRefine((e, t) => {
5290
5320
  if (typeof e == "string") try {
5291
5321
  JSON.parse(e);
5292
5322
  } catch {
5293
5323
  t.addIssue({
5294
- code: z.custom,
5295
- message: V("json")
5324
+ code: V.custom,
5325
+ message: U("json")
5296
5326
  });
5297
5327
  return;
5298
5328
  }
5299
- let n = U(e), r = Array.isArray(n) ? n : [n];
5329
+ let n = G(e), r = Array.isArray(n) ? n : [n];
5300
5330
  for (let e of r) if (!a.safeParse(e).success) {
5301
5331
  t.addIssue({
5302
- code: z.custom,
5303
- message: V("file_structure")
5332
+ code: V.custom,
5333
+ message: U("file_structure")
5304
5334
  });
5305
5335
  return;
5306
5336
  }
5307
5337
  });
5308
- return q(n, {
5338
+ return Y(n, {
5309
5339
  kind: e,
5310
5340
  label: n.label ?? "",
5311
5341
  required: r,
@@ -5313,43 +5343,46 @@ function Q(e, t) {
5313
5343
  column: "text",
5314
5344
  hints: i ? { multiple: !0 } : {},
5315
5345
  json: !0,
5316
- zod: W(o, r)
5346
+ zod: K(o, r)
5317
5347
  });
5318
5348
  }
5319
5349
  function Ns(e) {
5320
- return Q("file", e);
5350
+ return $("file", e);
5321
5351
  }
5322
5352
  function Ps(e) {
5323
- return Q("document", e);
5353
+ return $("document", e);
5324
5354
  }
5325
5355
  function Fs(e) {
5326
- return Q("audio", e);
5356
+ return $("audio", e);
5327
5357
  }
5328
5358
  function Is(e) {
5329
- return Q("video", e);
5359
+ return $("video", e);
5330
5360
  }
5331
5361
  function Ls(e) {
5332
- return Q("image", e);
5362
+ return $("image", e);
5333
5363
  }
5334
5364
  function Rs(e) {
5335
- return Q("media", e);
5365
+ return $("media", e);
5336
5366
  }
5337
5367
  function zs(e) {
5338
- return Q("avatar", e);
5368
+ return $("avatar", e);
5339
5369
  }
5340
5370
  function Bs(e) {
5341
- return Q("cover", e);
5371
+ return $("cover", e);
5342
5372
  }
5343
5373
  function Vs(e) {
5344
- let t = G(e), n = {
5345
- ...t.option ?? X({ label: "" }),
5374
+ return $("poster", e);
5375
+ }
5376
+ function Hs(e) {
5377
+ let t = q(e), n = {
5378
+ ...t.option ?? Z({ label: "" }),
5346
5379
  label: t.valueLabel ?? ""
5347
5380
  };
5348
- return ts({
5381
+ return es({
5349
5382
  key: t.key,
5350
5383
  label: t.label ?? "",
5351
- container: t.container ?? Qo,
5352
- by: X({
5384
+ container: t.container ?? Zo,
5385
+ by: Z({
5353
5386
  key: "key",
5354
5387
  label: t.keyLabel ?? ""
5355
5388
  }),
@@ -5360,36 +5393,36 @@ function Vs(e) {
5360
5393
  required: t.required
5361
5394
  });
5362
5395
  }
5363
- function Hs(e, t, n) {
5364
- let r = G(n), i = r.required ?? !1, a = r.config ?? {}, o = I().finite();
5365
- t && (o = o.int({ message: V("int") })), a.min != null && (o = o.min(a.min)), a.max != null && (o = o.max(a.max));
5366
- let s = R({
5396
+ function Us(e, t, n) {
5397
+ let r = q(n), i = r.required ?? !1, a = r.config ?? {}, o = R().finite();
5398
+ t && (o = o.int({ message: U("int") })), a.min != null && (o = o.min(a.min)), a.max != null && (o = o.max(a.max));
5399
+ let s = B({
5367
5400
  from: o,
5368
5401
  to: o
5369
- }), c = L().superRefine((e, t) => {
5402
+ }), c = z().superRefine((e, t) => {
5370
5403
  if (typeof e == "string") try {
5371
5404
  JSON.parse(e);
5372
5405
  } catch {
5373
5406
  t.addIssue({
5374
- code: z.custom,
5375
- message: V("json")
5407
+ code: V.custom,
5408
+ message: U("json")
5376
5409
  });
5377
5410
  return;
5378
5411
  }
5379
- let n = s.safeParse(U(e));
5412
+ let n = s.safeParse(G(e));
5380
5413
  if (!n.success) {
5381
5414
  t.addIssue({
5382
- code: z.custom,
5383
- message: V("range_structure")
5415
+ code: V.custom,
5416
+ message: U("range_structure")
5384
5417
  });
5385
5418
  return;
5386
5419
  }
5387
5420
  n.data.from > n.data.to && t.addIssue({
5388
- code: z.custom,
5389
- message: V("range_order")
5421
+ code: V.custom,
5422
+ message: U("range_order")
5390
5423
  });
5391
5424
  });
5392
- return q(r, {
5425
+ return Y(r, {
5393
5426
  kind: e,
5394
5427
  label: r.label ?? "",
5395
5428
  required: i,
@@ -5407,33 +5440,33 @@ function Hs(e, t, n) {
5407
5440
  from: "real",
5408
5441
  to: "real"
5409
5442
  },
5410
- zod: W(c, i)
5443
+ zod: K(c, i)
5411
5444
  });
5412
5445
  }
5413
- function Us(e) {
5414
- return Hs("numberRange", !0, e);
5415
- }
5416
5446
  function Ws(e) {
5417
- return Hs("realRange", !1, e);
5447
+ return Us("numberRange", !0, e);
5418
5448
  }
5419
5449
  function Gs(e) {
5420
- let t = G(e), n = t.required ?? !1, r = t.multiple ?? !1, i = R({
5421
- url: P().min(1),
5422
- title: P().optional(),
5423
- description: P().optional(),
5424
- thumbnail: P().optional(),
5425
- provider: P().optional(),
5426
- type: Aa([
5450
+ return Us("realRange", !1, e);
5451
+ }
5452
+ function Ks(e) {
5453
+ let t = q(e), n = t.required ?? !1, r = t.multiple ?? !1, i = B({
5454
+ url: I().min(1),
5455
+ title: I().optional(),
5456
+ description: I().optional(),
5457
+ thumbnail: I().optional(),
5458
+ provider: I().optional(),
5459
+ type: Oa([
5427
5460
  "video",
5428
5461
  "rich",
5429
5462
  "photo",
5430
5463
  "link"
5431
5464
  ]).optional(),
5432
- html: P().optional(),
5433
- width: I().optional(),
5434
- height: I().optional()
5435
- }), a = mo(r ? Ca(i) : Ea([i, Ca(i).max(1)]), "embed_structure");
5436
- return q(t, {
5465
+ html: I().optional(),
5466
+ width: R().optional(),
5467
+ height: R().optional()
5468
+ }), a = fo(r ? xa(i) : wa([i, xa(i).max(1)]), "embed_structure");
5469
+ return Y(t, {
5437
5470
  kind: "embed",
5438
5471
  label: t.label ?? "",
5439
5472
  required: n,
@@ -5441,12 +5474,12 @@ function Gs(e) {
5441
5474
  column: "text",
5442
5475
  hints: r ? { multiple: !0 } : {},
5443
5476
  json: !0,
5444
- zod: W(a, n)
5477
+ zod: K(a, n)
5445
5478
  });
5446
5479
  }
5447
- var Ks = {
5448
- string: X,
5449
- text: Z,
5480
+ var qs = {
5481
+ string: Z,
5482
+ text: Q,
5450
5483
  i18n: ps,
5451
5484
  smallText: ms,
5452
5485
  localDir: ds,
@@ -5477,34 +5510,35 @@ var Ks = {
5477
5510
  media: Rs,
5478
5511
  avatar: zs,
5479
5512
  cover: Bs,
5480
- embed: Gs,
5481
- keyValue: Vs,
5482
- numberRange: Us,
5483
- realRange: Ws,
5484
- group: K,
5485
- row: Zo,
5486
- table: Qo,
5487
- sheet: $o,
5488
- keyed: ts,
5489
- url: es,
5490
- divider: is,
5491
- break: as,
5492
- info: os,
5493
- button: ss
5513
+ poster: Vs,
5514
+ embed: Ks,
5515
+ keyValue: Hs,
5516
+ numberRange: Ws,
5517
+ realRange: Gs,
5518
+ group: J,
5519
+ row: Xo,
5520
+ table: Zo,
5521
+ sheet: Qo,
5522
+ keyed: es,
5523
+ url: $o,
5524
+ divider: rs,
5525
+ break: is,
5526
+ info: as,
5527
+ button: os
5494
5528
  };
5495
- function qs(e) {
5496
- for (let t of Object.keys(e)) if (t in Ks) throw Error(`[f] preset '${t}' overrides a primitive`);
5529
+ function Js(e) {
5530
+ for (let t of Object.keys(e)) if (t in qs) throw Error(`[f] preset '${t}' overrides a primitive`);
5497
5531
  return {
5498
- ...Ks,
5532
+ ...qs,
5499
5533
  ...e
5500
5534
  };
5501
5535
  }
5502
- var Js, Ys = () => Js ??= qs(Ho);
5536
+ var Ys, Xs = () => Ys ??= Js(Vo);
5503
5537
  new Proxy({}, {
5504
- get: (e, t) => Ys()[t],
5505
- has: (e, t) => t in Ys()
5538
+ get: (e, t) => Xs()[t],
5539
+ has: (e, t) => t in Xs()
5506
5540
  });
5507
- function Xs(e) {
5541
+ function Zs(e) {
5508
5542
  let { kind: t, label: n, required: r, prim: i, hints: a, options: o, relation: s, virtual: c, json: l, hidden: u } = e;
5509
5543
  return {
5510
5544
  kind: t,
@@ -5521,8 +5555,8 @@ function Xs(e) {
5521
5555
  }
5522
5556
  //#endregion
5523
5557
  //#region ../web-sdk/src/registry.ts
5524
- var $ = {};
5525
- function Zs(e) {
5558
+ var Qs = {};
5559
+ function $s(e) {
5526
5560
  if (!e.kinds.length) throw Error("[render] renderer without kinds");
5527
5561
  let t = {
5528
5562
  kinds: e.kinds,
@@ -5533,32 +5567,32 @@ function Zs(e) {
5533
5567
  keys: e.keys
5534
5568
  };
5535
5569
  for (let n of e.kinds) {
5536
- if ($[n]) throw Error(`[render] kind '${n}' already registered`);
5537
- $[n] = t;
5570
+ if (Qs[n]) throw Error(`[render] kind '${n}' already registered`);
5571
+ Qs[n] = t;
5538
5572
  }
5539
5573
  }
5540
- function Qs(e) {
5541
- return $[e.kind];
5542
- }
5543
- function $s(e) {
5544
- if (Go(e) || Ko(e)) return e.type.kind;
5545
- if (qo(e)) return e.kind ?? (ns(e) ? "collection" : rs(e) ? "embedded" : "group");
5546
- if (Xo(e)) return "button";
5547
- if (Jo(e)) return "divider";
5548
- if (Yo(e)) return "info";
5574
+ function ec(e) {
5575
+ return Qs[e.kind];
5576
+ }
5577
+ function tc(e) {
5578
+ if (Wo(e) || Go(e)) return e.type.kind;
5579
+ if (Ko(e)) return e.kind ?? (ts(e) ? "collection" : ns(e) ? "embedded" : "group");
5580
+ if (Yo(e)) return "button";
5581
+ if (qo(e)) return "divider";
5582
+ if (Jo(e)) return "info";
5549
5583
  throw Error("[render] unknown layout element");
5550
5584
  }
5551
- function ec(e) {
5552
- let t = Qs(e)?.layout;
5585
+ function nc(e) {
5586
+ let t = ec(e)?.layout;
5553
5587
  return typeof t == "function" ? t(e) : t ?? "scalar";
5554
5588
  }
5555
- var tc = (e) => e.hints.multi === !0 || e.hints.multiple === !0 ? "block" : "scalar", nc = {};
5556
- function rc(e, t) {
5557
- if (nc[e]) throw Error(`[template] '${e}' already registered`);
5558
- nc[e] = t;
5589
+ var rc = (e) => e.hints.multi === !0 || e.hints.multiple === !0 ? "block" : "scalar", ic = {};
5590
+ function ac(e, t) {
5591
+ if (ic[e]) throw Error(`[template] '${e}' already registered`);
5592
+ ic[e] = t;
5559
5593
  }
5560
- function ic(e) {
5561
- return nc[e];
5594
+ function oc(e) {
5595
+ return ic[e];
5562
5596
  }
5563
5597
  //#endregion
5564
- export { n as defineModuleUI, $s as elementKind, ec as fieldLayout, tc as multiBlock, Zs as registerRenderer, rc as registerTemplate, $ as rendererRegistry, Qs as resolveRenderer, ic as resolveTemplate };
5598
+ export { n as defineModuleUI, tc as elementKind, nc as fieldLayout, rc as multiBlock, $s as registerRenderer, ac as registerTemplate, Qs as rendererRegistry, ec as resolveRenderer, oc as resolveTemplate };