@burdenoff/microfe-admin 2026.1123.1 → 2026.1123.2

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 (66) hide show
  1. package/dist/admin/components/forms/SubscriptionForm.d.ts +19 -20
  2. package/dist/admin/components/forms/SubscriptionForm.js +6 -6
  3. package/dist/admin/components/forms/SubscriptionForm.js.map +1 -1
  4. package/dist/admin/components/forms/TenantForm.d.ts +4 -42
  5. package/dist/admin/components/forms/TenantForm.js +75 -75
  6. package/dist/admin/components/forms/TenantForm.js.map +1 -1
  7. package/dist/admin/components/forms/TicketForm.d.ts +21 -22
  8. package/dist/admin/components/forms/TicketForm.js +1 -1
  9. package/dist/admin/components/forms/TicketForm.js.map +1 -1
  10. package/dist/admin/components/forms/UserForm.d.ts +14 -20
  11. package/dist/admin/components/forms/UserForm.js +55 -55
  12. package/dist/admin/components/forms/UserForm.js.map +1 -1
  13. package/dist/admin/schemas/index.d.ts +128 -243
  14. package/dist/admin/schemas/index.js +58 -58
  15. package/dist/admin/schemas/index.js.map +1 -1
  16. package/dist/node_modules/zod/v4/classic/errors.js +44 -0
  17. package/dist/node_modules/zod/v4/classic/errors.js.map +1 -0
  18. package/dist/node_modules/zod/v4/classic/parse.js +7 -0
  19. package/dist/node_modules/zod/v4/classic/parse.js.map +1 -0
  20. package/dist/node_modules/zod/v4/classic/schemas.js +722 -0
  21. package/dist/node_modules/zod/v4/classic/schemas.js.map +1 -0
  22. package/dist/node_modules/zod/v4/core/api.js +498 -0
  23. package/dist/node_modules/zod/v4/core/api.js.map +1 -0
  24. package/dist/node_modules/zod/v4/core/checks.js +245 -0
  25. package/dist/node_modules/zod/v4/core/checks.js.map +1 -0
  26. package/dist/node_modules/zod/v4/core/core.js +84 -0
  27. package/dist/node_modules/zod/v4/core/core.js.map +1 -0
  28. package/dist/node_modules/zod/v4/core/doc.js +29 -0
  29. package/dist/node_modules/zod/v4/core/doc.js.map +1 -0
  30. package/dist/node_modules/zod/v4/core/errors.js +90 -0
  31. package/dist/node_modules/zod/v4/core/errors.js.map +1 -0
  32. package/dist/node_modules/zod/v4/core/json-schema-processors.js +223 -0
  33. package/dist/node_modules/zod/v4/core/json-schema-processors.js.map +1 -0
  34. package/dist/node_modules/zod/v4/core/memoizer.js +188 -0
  35. package/dist/node_modules/zod/v4/core/memoizer.js.map +1 -0
  36. package/dist/node_modules/zod/v4/core/parse.js +159 -0
  37. package/dist/node_modules/zod/v4/core/parse.js.map +1 -0
  38. package/dist/node_modules/zod/v4/core/regexes.js +34 -0
  39. package/dist/node_modules/zod/v4/core/regexes.js.map +1 -0
  40. package/dist/node_modules/zod/v4/core/registries.js +41 -0
  41. package/dist/node_modules/zod/v4/core/registries.js.map +1 -0
  42. package/dist/node_modules/zod/v4/core/schemas.js +904 -0
  43. package/dist/node_modules/zod/v4/core/schemas.js.map +1 -0
  44. package/dist/node_modules/zod/v4/core/to-json-schema.js +330 -0
  45. package/dist/node_modules/zod/v4/core/to-json-schema.js.map +1 -0
  46. package/dist/node_modules/zod/v4/core/util.js +421 -0
  47. package/dist/node_modules/zod/v4/core/util.js.map +1 -0
  48. package/dist/node_modules/zod/v4/core/versions.js +9 -0
  49. package/dist/node_modules/zod/v4/core/versions.js.map +1 -0
  50. package/dist/node_modules/zod/v4/locales/en.js +96 -0
  51. package/dist/node_modules/zod/v4/locales/en.js.map +1 -0
  52. package/package.json +2 -2
  53. package/dist/node_modules/zod/v3/ZodError.js +0 -81
  54. package/dist/node_modules/zod/v3/ZodError.js.map +0 -1
  55. package/dist/node_modules/zod/v3/errors.js +0 -9
  56. package/dist/node_modules/zod/v3/errors.js.map +0 -1
  57. package/dist/node_modules/zod/v3/helpers/errorUtil.js +0 -8
  58. package/dist/node_modules/zod/v3/helpers/errorUtil.js.map +0 -1
  59. package/dist/node_modules/zod/v3/helpers/parseUtil.js +0 -92
  60. package/dist/node_modules/zod/v3/helpers/parseUtil.js.map +0 -1
  61. package/dist/node_modules/zod/v3/helpers/util.js +0 -75
  62. package/dist/node_modules/zod/v3/helpers/util.js.map +0 -1
  63. package/dist/node_modules/zod/v3/locales/en.js +0 -61
  64. package/dist/node_modules/zod/v3/locales/en.js.map +0 -1
  65. package/dist/node_modules/zod/v3/types.js +0 -2469
  66. package/dist/node_modules/zod/v3/types.js.map +0 -1
@@ -0,0 +1,498 @@
1
+ import { $ZodCheck as e, $ZodCheckEndsWith as t, $ZodCheckGreaterThan as n, $ZodCheckIncludes as r, $ZodCheckLengthEquals as i, $ZodCheckLessThan as a, $ZodCheckLowerCase as o, $ZodCheckMaxLength as s, $ZodCheckMinLength as c, $ZodCheckMultipleOf as l, $ZodCheckOverwrite as u, $ZodCheckRegex as ee, $ZodCheckStartsWith as te, $ZodCheckUpperCase as d } from "./checks.js";
2
+ import { issue as f, normalizeParams as p, slugify as m } from "./util.js";
3
+ // node_modules/zod/v4/core/api.js
4
+ function h(e) {
5
+ return e.checks &&= [...e.checks], e;
6
+ }
7
+ // @__NO_SIDE_EFFECTS__
8
+ function g(e, t) {
9
+ return new e(h({
10
+ type: "string",
11
+ ...p(t)
12
+ }));
13
+ }
14
+ // @__NO_SIDE_EFFECTS__
15
+ function _(e, t) {
16
+ return new e({
17
+ type: "string",
18
+ format: "email",
19
+ check: "string_format",
20
+ abort: !1,
21
+ ...p(t)
22
+ });
23
+ }
24
+ // @__NO_SIDE_EFFECTS__
25
+ function v(e, t) {
26
+ return new e({
27
+ type: "string",
28
+ format: "guid",
29
+ check: "string_format",
30
+ abort: !1,
31
+ ...p(t)
32
+ });
33
+ }
34
+ // @__NO_SIDE_EFFECTS__
35
+ function y(e, t) {
36
+ return new e({
37
+ type: "string",
38
+ format: "uuid",
39
+ check: "string_format",
40
+ abort: !1,
41
+ ...p(t)
42
+ });
43
+ }
44
+ // @__NO_SIDE_EFFECTS__
45
+ function b(e, t) {
46
+ return new e({
47
+ type: "string",
48
+ format: "uuid",
49
+ check: "string_format",
50
+ abort: !1,
51
+ version: "v4",
52
+ ...p(t)
53
+ });
54
+ }
55
+ // @__NO_SIDE_EFFECTS__
56
+ function x(e, t) {
57
+ return new e({
58
+ type: "string",
59
+ format: "uuid",
60
+ check: "string_format",
61
+ abort: !1,
62
+ version: "v6",
63
+ ...p(t)
64
+ });
65
+ }
66
+ // @__NO_SIDE_EFFECTS__
67
+ function S(e, t) {
68
+ return new e({
69
+ type: "string",
70
+ format: "uuid",
71
+ check: "string_format",
72
+ abort: !1,
73
+ version: "v7",
74
+ ...p(t)
75
+ });
76
+ }
77
+ // @__NO_SIDE_EFFECTS__
78
+ function C(e, t) {
79
+ return new e({
80
+ type: "string",
81
+ format: "url",
82
+ check: "string_format",
83
+ abort: !1,
84
+ ...p(t)
85
+ });
86
+ }
87
+ // @__NO_SIDE_EFFECTS__
88
+ function w(e, t) {
89
+ return new e({
90
+ type: "string",
91
+ format: "emoji",
92
+ check: "string_format",
93
+ abort: !1,
94
+ ...p(t)
95
+ });
96
+ }
97
+ // @__NO_SIDE_EFFECTS__
98
+ function T(e, t) {
99
+ return new e({
100
+ type: "string",
101
+ format: "nanoid",
102
+ check: "string_format",
103
+ abort: !1,
104
+ ...p(t)
105
+ });
106
+ }
107
+ // @__NO_SIDE_EFFECTS__
108
+ function E(e, t) {
109
+ return new e({
110
+ type: "string",
111
+ format: "cuid",
112
+ check: "string_format",
113
+ abort: !1,
114
+ ...p(t)
115
+ });
116
+ }
117
+ // @__NO_SIDE_EFFECTS__
118
+ function D(e, t) {
119
+ return new e({
120
+ type: "string",
121
+ format: "cuid2",
122
+ check: "string_format",
123
+ abort: !1,
124
+ ...p(t)
125
+ });
126
+ }
127
+ // @__NO_SIDE_EFFECTS__
128
+ function O(e, t) {
129
+ return new e({
130
+ type: "string",
131
+ format: "ulid",
132
+ check: "string_format",
133
+ abort: !1,
134
+ ...p(t)
135
+ });
136
+ }
137
+ // @__NO_SIDE_EFFECTS__
138
+ function k(e, t) {
139
+ return new e({
140
+ type: "string",
141
+ format: "xid",
142
+ check: "string_format",
143
+ abort: !1,
144
+ ...p(t)
145
+ });
146
+ }
147
+ // @__NO_SIDE_EFFECTS__
148
+ function A(e, t) {
149
+ return new e({
150
+ type: "string",
151
+ format: "ksuid",
152
+ check: "string_format",
153
+ abort: !1,
154
+ ...p(t)
155
+ });
156
+ }
157
+ // @__NO_SIDE_EFFECTS__
158
+ function j(e, t) {
159
+ return new e({
160
+ type: "string",
161
+ format: "ipv4",
162
+ check: "string_format",
163
+ abort: !1,
164
+ ...p(t)
165
+ });
166
+ }
167
+ // @__NO_SIDE_EFFECTS__
168
+ function M(e, t) {
169
+ return new e({
170
+ type: "string",
171
+ format: "ipv6",
172
+ check: "string_format",
173
+ abort: !1,
174
+ ...p(t)
175
+ });
176
+ }
177
+ // @__NO_SIDE_EFFECTS__
178
+ function N(e, t) {
179
+ return new e({
180
+ type: "string",
181
+ format: "cidrv4",
182
+ check: "string_format",
183
+ abort: !1,
184
+ ...p(t)
185
+ });
186
+ }
187
+ // @__NO_SIDE_EFFECTS__
188
+ function P(e, t) {
189
+ return new e({
190
+ type: "string",
191
+ format: "cidrv6",
192
+ check: "string_format",
193
+ abort: !1,
194
+ ...p(t)
195
+ });
196
+ }
197
+ // @__NO_SIDE_EFFECTS__
198
+ function F(e, t) {
199
+ return new e({
200
+ type: "string",
201
+ format: "base64",
202
+ check: "string_format",
203
+ abort: !1,
204
+ ...p(t)
205
+ });
206
+ }
207
+ // @__NO_SIDE_EFFECTS__
208
+ function I(e, t) {
209
+ return new e({
210
+ type: "string",
211
+ format: "base64url",
212
+ check: "string_format",
213
+ abort: !1,
214
+ ...p(t)
215
+ });
216
+ }
217
+ // @__NO_SIDE_EFFECTS__
218
+ function L(e, t) {
219
+ return new e({
220
+ type: "string",
221
+ format: "e164",
222
+ check: "string_format",
223
+ abort: !1,
224
+ ...p(t)
225
+ });
226
+ }
227
+ // @__NO_SIDE_EFFECTS__
228
+ function R(e, t) {
229
+ return new e({
230
+ type: "string",
231
+ format: "jwt",
232
+ check: "string_format",
233
+ abort: !1,
234
+ ...p(t)
235
+ });
236
+ }
237
+ // @__NO_SIDE_EFFECTS__
238
+ function ne(e, t) {
239
+ return new e({
240
+ type: "string",
241
+ format: "datetime",
242
+ check: "string_format",
243
+ offset: !1,
244
+ local: !1,
245
+ precision: null,
246
+ ...p(t)
247
+ });
248
+ }
249
+ // @__NO_SIDE_EFFECTS__
250
+ function z(e, t) {
251
+ return new e({
252
+ type: "string",
253
+ format: "date",
254
+ check: "string_format",
255
+ ...p(t)
256
+ });
257
+ }
258
+ // @__NO_SIDE_EFFECTS__
259
+ function B(e, t) {
260
+ return new e({
261
+ type: "string",
262
+ format: "time",
263
+ check: "string_format",
264
+ precision: null,
265
+ ...p(t)
266
+ });
267
+ }
268
+ // @__NO_SIDE_EFFECTS__
269
+ function V(e, t) {
270
+ return new e({
271
+ type: "string",
272
+ format: "duration",
273
+ check: "string_format",
274
+ ...p(t)
275
+ });
276
+ }
277
+ // @__NO_SIDE_EFFECTS__
278
+ function H(e, t) {
279
+ return new e(h({
280
+ type: "number",
281
+ checks: [],
282
+ ...p(t)
283
+ }));
284
+ }
285
+ // @__NO_SIDE_EFFECTS__
286
+ function U(e, t) {
287
+ return new e({
288
+ type: "number",
289
+ check: "number_format",
290
+ abort: !1,
291
+ format: "safeint",
292
+ ...p(t)
293
+ });
294
+ }
295
+ // @__NO_SIDE_EFFECTS__
296
+ function W(e, t) {
297
+ return new e({
298
+ type: "boolean",
299
+ ...p(t)
300
+ });
301
+ }
302
+ // @__NO_SIDE_EFFECTS__
303
+ function G(e) {
304
+ return new e({ type: "unknown" });
305
+ }
306
+ // @__NO_SIDE_EFFECTS__
307
+ function K(e, t) {
308
+ return new e({
309
+ type: "never",
310
+ ...p(t)
311
+ });
312
+ }
313
+ // @__NO_SIDE_EFFECTS__
314
+ function q(e, t) {
315
+ return new a({
316
+ check: "less_than",
317
+ ...p(t),
318
+ value: e,
319
+ inclusive: !1
320
+ });
321
+ }
322
+ // @__NO_SIDE_EFFECTS__
323
+ function J(e, t) {
324
+ return new a({
325
+ check: "less_than",
326
+ ...p(t),
327
+ value: e,
328
+ inclusive: !0
329
+ });
330
+ }
331
+ // @__NO_SIDE_EFFECTS__
332
+ function Y(e, t) {
333
+ return new n({
334
+ check: "greater_than",
335
+ ...p(t),
336
+ value: e,
337
+ inclusive: !1
338
+ });
339
+ }
340
+ // @__NO_SIDE_EFFECTS__
341
+ function X(e, t) {
342
+ return new n({
343
+ check: "greater_than",
344
+ ...p(t),
345
+ value: e,
346
+ inclusive: !0
347
+ });
348
+ }
349
+ // @__NO_SIDE_EFFECTS__
350
+ function Z(e, t) {
351
+ return new l({
352
+ check: "multiple_of",
353
+ ...p(t),
354
+ value: e
355
+ });
356
+ }
357
+ // @__NO_SIDE_EFFECTS__
358
+ function re(e, t) {
359
+ return new s({
360
+ check: "max_length",
361
+ ...p(t),
362
+ maximum: e
363
+ });
364
+ }
365
+ // @__NO_SIDE_EFFECTS__
366
+ function ie(e, t) {
367
+ return new c({
368
+ check: "min_length",
369
+ ...p(t),
370
+ minimum: e
371
+ });
372
+ }
373
+ // @__NO_SIDE_EFFECTS__
374
+ function ae(e, t) {
375
+ return new i({
376
+ check: "length_equals",
377
+ ...p(t),
378
+ length: e
379
+ });
380
+ }
381
+ // @__NO_SIDE_EFFECTS__
382
+ function oe(e, t) {
383
+ return new ee({
384
+ check: "string_format",
385
+ format: "regex",
386
+ ...p(t),
387
+ pattern: e
388
+ });
389
+ }
390
+ // @__NO_SIDE_EFFECTS__
391
+ function se(e) {
392
+ return new o({
393
+ check: "string_format",
394
+ format: "lowercase",
395
+ ...p(e)
396
+ });
397
+ }
398
+ // @__NO_SIDE_EFFECTS__
399
+ function ce(e) {
400
+ return new d({
401
+ check: "string_format",
402
+ format: "uppercase",
403
+ ...p(e)
404
+ });
405
+ }
406
+ // @__NO_SIDE_EFFECTS__
407
+ function le(e, t) {
408
+ return new r({
409
+ check: "string_format",
410
+ format: "includes",
411
+ ...p(t),
412
+ includes: e
413
+ });
414
+ }
415
+ // @__NO_SIDE_EFFECTS__
416
+ function ue(e, t) {
417
+ return new te({
418
+ check: "string_format",
419
+ format: "starts_with",
420
+ ...p(t),
421
+ prefix: e
422
+ });
423
+ }
424
+ // @__NO_SIDE_EFFECTS__
425
+ function de(e, n) {
426
+ return new t({
427
+ check: "string_format",
428
+ format: "ends_with",
429
+ ...p(n),
430
+ suffix: e
431
+ });
432
+ }
433
+ // @__NO_SIDE_EFFECTS__
434
+ function Q(e) {
435
+ return new u({
436
+ check: "overwrite",
437
+ tx: e
438
+ });
439
+ }
440
+ // @__NO_SIDE_EFFECTS__
441
+ function fe(e) {
442
+ return /* @__PURE__ */ Q((t) => t.normalize(e));
443
+ }
444
+ // @__NO_SIDE_EFFECTS__
445
+ function pe() {
446
+ return /* @__PURE__ */ Q((e) => e.trim());
447
+ }
448
+ // @__NO_SIDE_EFFECTS__
449
+ function me() {
450
+ return /* @__PURE__ */ Q((e) => e.toLowerCase());
451
+ }
452
+ // @__NO_SIDE_EFFECTS__
453
+ function he() {
454
+ return /* @__PURE__ */ Q((e) => e.toUpperCase());
455
+ }
456
+ // @__NO_SIDE_EFFECTS__
457
+ function ge() {
458
+ return /* @__PURE__ */ Q((e) => m(e));
459
+ }
460
+ // @__NO_SIDE_EFFECTS__
461
+ function _e(e, t, n) {
462
+ return new e({
463
+ type: "array",
464
+ element: t,
465
+ ...p(n)
466
+ });
467
+ }
468
+ // @__NO_SIDE_EFFECTS__
469
+ function ve(e, t, n) {
470
+ return new e({
471
+ type: "custom",
472
+ check: "custom",
473
+ fn: t,
474
+ ...p(n)
475
+ });
476
+ }
477
+ // @__NO_SIDE_EFFECTS__
478
+ function ye(e, t) {
479
+ let n = /* @__PURE__ */ $((t) => (t.addIssue = (e) => {
480
+ if (typeof e == "string") t.issues.push(f(e, t.value, n._zod.def));
481
+ else {
482
+ let r = e;
483
+ r.fatal && (r.continue = !1), r.code ??= "custom", "input" in r || (r.input = t.value), r.inst ??= n, r.continue ??= !n._zod.def.abort, t.issues.push(f(r));
484
+ }
485
+ }, e(t.value, t)), t);
486
+ return n;
487
+ }
488
+ // @__NO_SIDE_EFFECTS__
489
+ function $(t, n) {
490
+ let r = new e({
491
+ check: "custom",
492
+ ...p(n)
493
+ });
494
+ return r._zod.check = t, r;
495
+ }
496
+ export { _e as _array, F as _base64, I as _base64url, W as _boolean, $ as _check, N as _cidrv4, P as _cidrv6, E as _cuid, D as _cuid2, L as _e164, _ as _email, w as _emoji, de as _endsWith, Y as _gt, X as _gte, X as _min, v as _guid, le as _includes, U as _int, j as _ipv4, M as _ipv6, z as _isoDate, ne as _isoDateTime, V as _isoDuration, B as _isoTime, R as _jwt, A as _ksuid, ae as _length, se as _lowercase, q as _lt, J as _lte, J as _max, re as _maxLength, ie as _minLength, Z as _multipleOf, T as _nanoid, K as _never, fe as _normalize, H as _number, Q as _overwrite, ve as _refine, oe as _regex, ge as _slugify, ue as _startsWith, g as _string, ye as _superRefine, me as _toLowerCase, he as _toUpperCase, pe as _trim, O as _ulid, G as _unknown, ce as _uppercase, C as _url, y as _uuid, b as _uuidv4, x as _uuidv6, S as _uuidv7, k as _xid };
497
+
498
+ //# sourceMappingURL=api.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"api.js","names":["util.normalizeParams","checks.$ZodCheckLessThan","checks.$ZodCheckGreaterThan","checks.$ZodCheckMultipleOf","checks.$ZodCheckMaxLength","checks.$ZodCheckMinLength","checks.$ZodCheckLengthEquals","checks.$ZodCheckRegex","checks.$ZodCheckLowerCase","checks.$ZodCheckUpperCase","checks.$ZodCheckIncludes","checks.$ZodCheckStartsWith","checks.$ZodCheckEndsWith","checks.$ZodCheckOverwrite","util.slugify","issue","util.issue","checks.$ZodCheck","snapshotChecks","def","_string","Class","normalizeParams","params","_email","_guid","_uuid","_uuidv4","_uuidv6","_uuidv7","_url","_emoji","_nanoid","_cuid","_cuid2","_ulid","_xid","_ksuid","_ipv4","_ipv6","_cidrv4","_cidrv6","_base64","_base64url","_e164","_jwt","_isoDateTime","_isoDate","_isoTime","_isoDuration","_number","_int","_boolean","_unknown","_never","_lt","$ZodCheckLessThan","_lte","_gt","$ZodCheckGreaterThan","_gte","_multipleOf","$ZodCheckMultipleOf","_maxLength","$ZodCheckMaxLength","_minLength","$ZodCheckMinLength","_length","$ZodCheckLengthEquals","_regex","$ZodCheckRegex","_lowercase","$ZodCheckLowerCase","_uppercase","$ZodCheckUpperCase","_includes","$ZodCheckIncludes","_startsWith","$ZodCheckStartsWith","_endsWith","$ZodCheckEndsWith","_overwrite","$ZodCheckOverwrite","_normalize","input","form","_trim","_toLowerCase","_toUpperCase","_slugify","slugify","_array","_refine","_params","_superRefine","ch","issue$1","issue","payload","_issue","fn","_check","$ZodCheck"],"sources":["../../../../../node_modules/zod/v4/core/api.js"],"sourcesContent":["import * as checks from \"./checks.js\";\nimport * as registries from \"./registries.js\";\nimport * as schemas from \"./schemas.js\";\nimport * as util from \"./util.js\";\nfunction snapshotChecks(def) {\n if (def.checks)\n def.checks = [...def.checks];\n return def;\n}\n// @__NO_SIDE_EFFECTS__\nexport function _string(Class, params) {\n return new Class(snapshotChecks({ type: \"string\", ...util.normalizeParams(params) }));\n}\n// @__NO_SIDE_EFFECTS__\nexport function _coercedString(Class, params) {\n return new Class(snapshotChecks({ type: \"string\", coerce: true, ...util.normalizeParams(params) }));\n}\n// @__NO_SIDE_EFFECTS__\nexport function _email(Class, params) {\n return new Class({\n type: \"string\",\n format: \"email\",\n check: \"string_format\",\n abort: false,\n ...util.normalizeParams(params),\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _guid(Class, params) {\n return new Class({\n type: \"string\",\n format: \"guid\",\n check: \"string_format\",\n abort: false,\n ...util.normalizeParams(params),\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _uuid(Class, params) {\n return new Class({\n type: \"string\",\n format: \"uuid\",\n check: \"string_format\",\n abort: false,\n ...util.normalizeParams(params),\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _uuidv4(Class, params) {\n return new Class({\n type: \"string\",\n format: \"uuid\",\n check: \"string_format\",\n abort: false,\n version: \"v4\",\n ...util.normalizeParams(params),\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _uuidv6(Class, params) {\n return new Class({\n type: \"string\",\n format: \"uuid\",\n check: \"string_format\",\n abort: false,\n version: \"v6\",\n ...util.normalizeParams(params),\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _uuidv7(Class, params) {\n return new Class({\n type: \"string\",\n format: \"uuid\",\n check: \"string_format\",\n abort: false,\n version: \"v7\",\n ...util.normalizeParams(params),\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _url(Class, params) {\n return new Class({\n type: \"string\",\n format: \"url\",\n check: \"string_format\",\n abort: false,\n ...util.normalizeParams(params),\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _emoji(Class, params) {\n return new Class({\n type: \"string\",\n format: \"emoji\",\n check: \"string_format\",\n abort: false,\n ...util.normalizeParams(params),\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _nanoid(Class, params) {\n return new Class({\n type: \"string\",\n format: \"nanoid\",\n check: \"string_format\",\n abort: false,\n ...util.normalizeParams(params),\n });\n}\n/**\n * @deprecated CUID v1 is deprecated by its authors due to information leakage\n * (timestamps embedded in the id). Use {@link _cuid2} instead.\n * See https://github.com/paralleldrive/cuid.\n */\n// @__NO_SIDE_EFFECTS__\nexport function _cuid(Class, params) {\n return new Class({\n type: \"string\",\n format: \"cuid\",\n check: \"string_format\",\n abort: false,\n ...util.normalizeParams(params),\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _cuid2(Class, params) {\n return new Class({\n type: \"string\",\n format: \"cuid2\",\n check: \"string_format\",\n abort: false,\n ...util.normalizeParams(params),\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _ulid(Class, params) {\n return new Class({\n type: \"string\",\n format: \"ulid\",\n check: \"string_format\",\n abort: false,\n ...util.normalizeParams(params),\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _xid(Class, params) {\n return new Class({\n type: \"string\",\n format: \"xid\",\n check: \"string_format\",\n abort: false,\n ...util.normalizeParams(params),\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _ksuid(Class, params) {\n return new Class({\n type: \"string\",\n format: \"ksuid\",\n check: \"string_format\",\n abort: false,\n ...util.normalizeParams(params),\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _ipv4(Class, params) {\n return new Class({\n type: \"string\",\n format: \"ipv4\",\n check: \"string_format\",\n abort: false,\n ...util.normalizeParams(params),\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _ipv6(Class, params) {\n return new Class({\n type: \"string\",\n format: \"ipv6\",\n check: \"string_format\",\n abort: false,\n ...util.normalizeParams(params),\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _mac(Class, params) {\n return new Class({\n type: \"string\",\n format: \"mac\",\n check: \"string_format\",\n abort: false,\n ...util.normalizeParams(params),\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _cidrv4(Class, params) {\n return new Class({\n type: \"string\",\n format: \"cidrv4\",\n check: \"string_format\",\n abort: false,\n ...util.normalizeParams(params),\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _cidrv6(Class, params) {\n return new Class({\n type: \"string\",\n format: \"cidrv6\",\n check: \"string_format\",\n abort: false,\n ...util.normalizeParams(params),\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _base64(Class, params) {\n return new Class({\n type: \"string\",\n format: \"base64\",\n check: \"string_format\",\n abort: false,\n ...util.normalizeParams(params),\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _base64url(Class, params) {\n return new Class({\n type: \"string\",\n format: \"base64url\",\n check: \"string_format\",\n abort: false,\n ...util.normalizeParams(params),\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _e164(Class, params) {\n return new Class({\n type: \"string\",\n format: \"e164\",\n check: \"string_format\",\n abort: false,\n ...util.normalizeParams(params),\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _creditCard(Class, params) {\n return new Class({\n type: \"string\",\n format: \"credit_card\",\n check: \"string_format\",\n abort: false,\n ...util.normalizeParams(params),\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _iban(Class, params) {\n return new Class({\n type: \"string\",\n format: \"iban\",\n check: \"string_format\",\n abort: false,\n ...util.normalizeParams(params),\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _jwt(Class, params) {\n return new Class({\n type: \"string\",\n format: \"jwt\",\n check: \"string_format\",\n abort: false,\n ...util.normalizeParams(params),\n });\n}\nexport const TimePrecision = {\n Any: null,\n Minute: -1,\n Second: 0,\n Millisecond: 3,\n Microsecond: 6,\n};\n// @__NO_SIDE_EFFECTS__\nexport function _isoDateTime(Class, params) {\n return new Class({\n type: \"string\",\n format: \"datetime\",\n check: \"string_format\",\n offset: false,\n local: false,\n precision: null,\n ...util.normalizeParams(params),\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _isoDate(Class, params) {\n return new Class({\n type: \"string\",\n format: \"date\",\n check: \"string_format\",\n ...util.normalizeParams(params),\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _isoTime(Class, params) {\n return new Class({\n type: \"string\",\n format: \"time\",\n check: \"string_format\",\n precision: null,\n ...util.normalizeParams(params),\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _isoDuration(Class, params) {\n return new Class({\n type: \"string\",\n format: \"duration\",\n check: \"string_format\",\n ...util.normalizeParams(params),\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _number(Class, params) {\n return new Class(snapshotChecks({ type: \"number\", checks: [], ...util.normalizeParams(params) }));\n}\n// @__NO_SIDE_EFFECTS__\nexport function _coercedNumber(Class, params) {\n return new Class(snapshotChecks({ type: \"number\", coerce: true, checks: [], ...util.normalizeParams(params) }));\n}\n// @__NO_SIDE_EFFECTS__\nexport function _int(Class, params) {\n return new Class({\n type: \"number\",\n check: \"number_format\",\n abort: false,\n format: \"safeint\",\n ...util.normalizeParams(params),\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _float32(Class, params) {\n return new Class({\n type: \"number\",\n check: \"number_format\",\n abort: false,\n format: \"float32\",\n ...util.normalizeParams(params),\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _float64(Class, params) {\n return new Class({\n type: \"number\",\n check: \"number_format\",\n abort: false,\n format: \"float64\",\n ...util.normalizeParams(params),\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _int32(Class, params) {\n return new Class({\n type: \"number\",\n check: \"number_format\",\n abort: false,\n format: \"int32\",\n ...util.normalizeParams(params),\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _uint32(Class, params) {\n return new Class({\n type: \"number\",\n check: \"number_format\",\n abort: false,\n format: \"uint32\",\n ...util.normalizeParams(params),\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _boolean(Class, params) {\n return new Class({\n type: \"boolean\",\n ...util.normalizeParams(params),\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _coercedBoolean(Class, params) {\n return new Class({\n type: \"boolean\",\n coerce: true,\n ...util.normalizeParams(params),\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _bigint(Class, params) {\n return new Class({\n type: \"bigint\",\n ...util.normalizeParams(params),\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _coercedBigint(Class, params) {\n return new Class({\n type: \"bigint\",\n coerce: true,\n ...util.normalizeParams(params),\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _int64(Class, params) {\n return new Class({\n type: \"bigint\",\n check: \"bigint_format\",\n abort: false,\n format: \"int64\",\n ...util.normalizeParams(params),\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _uint64(Class, params) {\n return new Class({\n type: \"bigint\",\n check: \"bigint_format\",\n abort: false,\n format: \"uint64\",\n ...util.normalizeParams(params),\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _symbol(Class, params) {\n return new Class({\n type: \"symbol\",\n ...util.normalizeParams(params),\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _undefined(Class, params) {\n return new Class({\n type: \"undefined\",\n ...util.normalizeParams(params),\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _null(Class, params) {\n return new Class({\n type: \"null\",\n ...util.normalizeParams(params),\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _any(Class) {\n return new Class({\n type: \"any\",\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _unknown(Class) {\n return new Class({\n type: \"unknown\",\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _never(Class, params) {\n return new Class({\n type: \"never\",\n ...util.normalizeParams(params),\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _void(Class, params) {\n return new Class({\n type: \"void\",\n ...util.normalizeParams(params),\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _date(Class, params) {\n return new Class({\n type: \"date\",\n ...util.normalizeParams(params),\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _coercedDate(Class, params) {\n return new Class({\n type: \"date\",\n coerce: true,\n ...util.normalizeParams(params),\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _nan(Class, params) {\n return new Class({\n type: \"nan\",\n ...util.normalizeParams(params),\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _lt(value, params) {\n return new checks.$ZodCheckLessThan({\n check: \"less_than\",\n ...util.normalizeParams(params),\n value,\n inclusive: false,\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _lte(value, params) {\n return new checks.$ZodCheckLessThan({\n check: \"less_than\",\n ...util.normalizeParams(params),\n value,\n inclusive: true,\n });\n}\nexport { \n/** @deprecated Use `z.lte()` instead. */\n_lte as _max, };\n// @__NO_SIDE_EFFECTS__\nexport function _gt(value, params) {\n return new checks.$ZodCheckGreaterThan({\n check: \"greater_than\",\n ...util.normalizeParams(params),\n value,\n inclusive: false,\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _gte(value, params) {\n return new checks.$ZodCheckGreaterThan({\n check: \"greater_than\",\n ...util.normalizeParams(params),\n value,\n inclusive: true,\n });\n}\nexport { \n/** @deprecated Use `z.gte()` instead. */\n_gte as _min, };\n// @__NO_SIDE_EFFECTS__\nexport function _positive(params) {\n return _gt(0, params);\n}\n// negative\n// @__NO_SIDE_EFFECTS__\nexport function _negative(params) {\n return _lt(0, params);\n}\n// nonpositive\n// @__NO_SIDE_EFFECTS__\nexport function _nonpositive(params) {\n return _lte(0, params);\n}\n// nonnegative\n// @__NO_SIDE_EFFECTS__\nexport function _nonnegative(params) {\n return _gte(0, params);\n}\n// @__NO_SIDE_EFFECTS__\nexport function _multipleOf(value, params) {\n return new checks.$ZodCheckMultipleOf({\n check: \"multiple_of\",\n ...util.normalizeParams(params),\n value,\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _maxSize(maximum, params) {\n return new checks.$ZodCheckMaxSize({\n check: \"max_size\",\n ...util.normalizeParams(params),\n maximum,\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _minSize(minimum, params) {\n return new checks.$ZodCheckMinSize({\n check: \"min_size\",\n ...util.normalizeParams(params),\n minimum,\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _size(size, params) {\n return new checks.$ZodCheckSizeEquals({\n check: \"size_equals\",\n ...util.normalizeParams(params),\n size,\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _maxLength(maximum, params) {\n const ch = new checks.$ZodCheckMaxLength({\n check: \"max_length\",\n ...util.normalizeParams(params),\n maximum,\n });\n return ch;\n}\n// @__NO_SIDE_EFFECTS__\nexport function _minLength(minimum, params) {\n return new checks.$ZodCheckMinLength({\n check: \"min_length\",\n ...util.normalizeParams(params),\n minimum,\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _length(length, params) {\n return new checks.$ZodCheckLengthEquals({\n check: \"length_equals\",\n ...util.normalizeParams(params),\n length,\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _regex(pattern, params) {\n return new checks.$ZodCheckRegex({\n check: \"string_format\",\n format: \"regex\",\n ...util.normalizeParams(params),\n pattern,\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _lowercase(params) {\n return new checks.$ZodCheckLowerCase({\n check: \"string_format\",\n format: \"lowercase\",\n ...util.normalizeParams(params),\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _uppercase(params) {\n return new checks.$ZodCheckUpperCase({\n check: \"string_format\",\n format: \"uppercase\",\n ...util.normalizeParams(params),\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _includes(includes, params) {\n return new checks.$ZodCheckIncludes({\n check: \"string_format\",\n format: \"includes\",\n ...util.normalizeParams(params),\n includes,\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _startsWith(prefix, params) {\n return new checks.$ZodCheckStartsWith({\n check: \"string_format\",\n format: \"starts_with\",\n ...util.normalizeParams(params),\n prefix,\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _endsWith(suffix, params) {\n return new checks.$ZodCheckEndsWith({\n check: \"string_format\",\n format: \"ends_with\",\n ...util.normalizeParams(params),\n suffix,\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _property(property, schema, params) {\n return new checks.$ZodCheckProperty({\n check: \"property\",\n property,\n schema,\n ...util.normalizeParams(params),\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _properties(shape, params) {\n return new checks.$ZodCheckProperties({\n check: \"properties\",\n shape,\n ...util.normalizeParams(params),\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _mime(types, params) {\n return new checks.$ZodCheckMimeType({\n check: \"mime_type\",\n mime: types,\n ...util.normalizeParams(params),\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _overwrite(tx) {\n return new checks.$ZodCheckOverwrite({\n check: \"overwrite\",\n tx,\n });\n}\n// normalize\n// @__NO_SIDE_EFFECTS__\nexport function _normalize(form) {\n return _overwrite((input) => input.normalize(form));\n}\n// trim\n// @__NO_SIDE_EFFECTS__\nexport function _trim() {\n return _overwrite((input) => input.trim());\n}\n// toLowerCase\n// @__NO_SIDE_EFFECTS__\nexport function _toLowerCase() {\n return _overwrite((input) => input.toLowerCase());\n}\n// toUpperCase\n// @__NO_SIDE_EFFECTS__\nexport function _toUpperCase() {\n return _overwrite((input) => input.toUpperCase());\n}\n// slugify\n// @__NO_SIDE_EFFECTS__\nexport function _slugify() {\n return _overwrite((input) => util.slugify(input));\n}\n// @__NO_SIDE_EFFECTS__\nexport function _array(Class, element, params) {\n return new Class({\n type: \"array\",\n element,\n // get element() {\n // return element;\n // },\n ...util.normalizeParams(params),\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _union(Class, options, params) {\n return new Class({\n type: \"union\",\n options,\n ...util.normalizeParams(params),\n });\n}\nexport function _xor(Class, options, params) {\n return new Class({\n type: \"union\",\n options,\n inclusive: false,\n ...util.normalizeParams(params),\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _discriminatedUnion(Class, discriminator, options, params) {\n return new Class({\n type: \"union\",\n options: options,\n discriminator,\n ...util.normalizeParams(params),\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _intersection(Class, left, right) {\n return new Class({\n type: \"intersection\",\n left,\n right,\n });\n}\n// export function _tuple(\n// Class: util.SchemaClass<schemas.$ZodTuple>,\n// items: [],\n// params?: string | $ZodTupleParams\n// ): schemas.$ZodTuple<[], null>;\n// @__NO_SIDE_EFFECTS__\nexport function _tuple(Class, items, _paramsOrRest, _params) {\n const hasRest = _paramsOrRest instanceof schemas.$ZodType;\n const params = hasRest ? _params : _paramsOrRest;\n const rest = hasRest ? _paramsOrRest : null;\n return new Class({\n type: \"tuple\",\n items,\n rest,\n ...util.normalizeParams(params),\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _record(Class, keyType, valueType, params) {\n return new Class({\n type: \"record\",\n keyType,\n valueType,\n ...util.normalizeParams(params),\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _map(Class, keyType, valueType, params) {\n return new Class({\n type: \"map\",\n keyType,\n valueType,\n ...util.normalizeParams(params),\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _set(Class, valueType, params) {\n return new Class({\n type: \"set\",\n valueType,\n ...util.normalizeParams(params),\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _enum(Class, values, params) {\n const entries = Array.isArray(values) ? Object.fromEntries(values.map((v) => [v, v])) : values;\n // if (Array.isArray(values)) {\n // for (const value of values) {\n // entries[value] = value;\n // }\n // } else {\n // Object.assign(entries, values);\n // }\n // const entries: util.EnumLike = {};\n // for (const val of values) {\n // entries[val] = val;\n // }\n return new Class({\n type: \"enum\",\n entries,\n ...util.normalizeParams(params),\n });\n}\n// @__NO_SIDE_EFFECTS__\n/** @deprecated This API has been merged into `z.enum()`. Use `z.enum()` instead.\n *\n * ```ts\n * enum Colors { red, green, blue }\n * z.enum(Colors);\n * ```\n */\nexport function _nativeEnum(Class, entries, params) {\n return new Class({\n type: \"enum\",\n entries,\n ...util.normalizeParams(params),\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _literal(Class, value, params) {\n return new Class({\n type: \"literal\",\n values: Array.isArray(value) ? value : [value],\n ...util.normalizeParams(params),\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _file(Class, params) {\n return new Class({\n type: \"file\",\n ...util.normalizeParams(params),\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _transform(Class, fn) {\n return new Class({\n type: \"transform\",\n transform: fn,\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _optional(Class, innerType) {\n return new Class({\n type: \"optional\",\n innerType,\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _nullable(Class, innerType) {\n return new Class({\n type: \"nullable\",\n innerType,\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _default(Class, innerType, defaultValue) {\n return new Class({\n type: \"default\",\n innerType,\n get defaultValue() {\n return typeof defaultValue === \"function\" ? defaultValue() : util.shallowClone(defaultValue);\n },\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _nonoptional(Class, innerType, params) {\n return new Class({\n type: \"nonoptional\",\n innerType,\n ...util.normalizeParams(params),\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _success(Class, innerType) {\n return new Class({\n type: \"success\",\n innerType,\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _catch(Class, innerType, catchValue) {\n return new Class({\n type: \"catch\",\n innerType,\n catchValue: (typeof catchValue === \"function\" ? catchValue : util.constantCatch(catchValue)),\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _pipe(Class, in_, out) {\n return new Class({\n type: \"pipe\",\n in: in_,\n out,\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _readonly(Class, innerType) {\n return new Class({\n type: \"readonly\",\n innerType,\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _templateLiteral(Class, parts, params) {\n return new Class({\n type: \"template_literal\",\n parts,\n ...util.normalizeParams(params),\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _lazy(Class, getter) {\n return new Class({\n type: \"lazy\",\n getter,\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _promise(Class, innerType) {\n return new Class({\n type: \"promise\",\n innerType,\n });\n}\n// @__NO_SIDE_EFFECTS__\nexport function _custom(Class, fn, _params) {\n const norm = util.normalizeParams(_params);\n norm.abort ?? (norm.abort = true); // default to abort:false\n const schema = new Class({\n type: \"custom\",\n check: \"custom\",\n fn: fn,\n ...norm,\n });\n return schema;\n}\n// same as _custom but defaults to abort:false\n// @__NO_SIDE_EFFECTS__\nexport function _refine(Class, fn, _params) {\n const schema = new Class({\n type: \"custom\",\n check: \"custom\",\n fn: fn,\n ...util.normalizeParams(_params),\n });\n return schema;\n}\n// @__NO_SIDE_EFFECTS__\nexport function _superRefine(fn, params) {\n const ch = _check((payload) => {\n payload.addIssue = (issue) => {\n if (typeof issue === \"string\") {\n payload.issues.push(util.issue(issue, payload.value, ch._zod.def));\n }\n else {\n // for Zod 3 backwards compatibility\n const _issue = issue;\n if (_issue.fatal)\n _issue.continue = false;\n _issue.code ?? (_issue.code = \"custom\");\n if (!(\"input\" in _issue))\n _issue.input = payload.value;\n _issue.inst ?? (_issue.inst = ch);\n _issue.continue ?? (_issue.continue = !ch._zod.def.abort); // abort is always undefined, so this is always true...\n payload.issues.push(util.issue(_issue));\n }\n };\n return fn(payload.value, payload);\n }, params);\n return ch;\n}\n// @__NO_SIDE_EFFECTS__\nexport function _check(fn, params) {\n const ch = new checks.$ZodCheck({\n check: \"custom\",\n ...util.normalizeParams(params),\n });\n ch._zod.check = fn;\n return ch;\n}\n// @__NO_SIDE_EFFECTS__\nexport function describe(description) {\n const ch = new checks.$ZodCheck({ check: \"describe\" });\n ch._zod.onattach = [\n (inst) => {\n const existing = registries.globalRegistry.get(inst) ?? {};\n registries.globalRegistry.add(inst, { ...existing, description });\n },\n ];\n ch._zod.check = () => { }; // no-op check\n return ch;\n}\n// @__NO_SIDE_EFFECTS__\nexport function meta(metadata) {\n const ch = new checks.$ZodCheck({ check: \"meta\" });\n ch._zod.onattach = [\n (inst) => {\n const existing = registries.globalRegistry.get(inst) ?? {};\n registries.globalRegistry.add(inst, { ...existing, ...metadata });\n },\n ];\n ch._zod.check = () => { }; // no-op check\n return ch;\n}\n// @__NO_SIDE_EFFECTS__\nexport function _stringbool(Classes, _params) {\n const params = util.normalizeParams(_params);\n let truthyArray = params.truthy ?? [\"true\", \"1\", \"yes\", \"on\", \"y\", \"enabled\"];\n let falsyArray = params.falsy ?? [\"false\", \"0\", \"no\", \"off\", \"n\", \"disabled\"];\n if (params.case !== \"sensitive\") {\n truthyArray = truthyArray.map((v) => (typeof v === \"string\" ? v.toLowerCase() : v));\n falsyArray = falsyArray.map((v) => (typeof v === \"string\" ? v.toLowerCase() : v));\n }\n const truthySet = new Set(truthyArray);\n const falsySet = new Set(falsyArray);\n const _Codec = Classes.Codec ?? schemas.$ZodCodec;\n const _Boolean = Classes.Boolean ?? schemas.$ZodBoolean;\n const _String = Classes.String ?? schemas.$ZodString;\n const stringSchema = new _String({ type: \"string\", error: params.error });\n const booleanSchema = new _Boolean({ type: \"boolean\", error: params.error });\n const codec = new _Codec({\n type: \"pipe\",\n in: stringSchema,\n out: booleanSchema,\n transform: ((input, payload) => {\n let data = input;\n if (params.case !== \"sensitive\")\n data = data.toLowerCase();\n if (truthySet.has(data)) {\n return true;\n }\n else if (falsySet.has(data)) {\n return false;\n }\n else {\n payload.issues.push({\n code: \"invalid_value\",\n expected: \"stringbool\",\n values: [...truthySet, ...falsySet],\n input: payload.value,\n inst: codec,\n continue: false,\n });\n return {};\n }\n }),\n reverseTransform: ((input, _payload) => {\n if (input === true) {\n return truthyArray[0] || \"true\";\n }\n else {\n return falsyArray[0] || \"false\";\n }\n }),\n error: params.error,\n });\n codec._zod.bag.truthy = truthyArray;\n codec._zod.bag.falsy = falsyArray;\n codec._zod.bag.case = params.case ?? \"insensitive\";\n return codec;\n}\n// @__NO_SIDE_EFFECTS__\nexport function _stringFormat(Class, format, fnOrRegex, _params = {}) {\n const params = util.normalizeParams(_params);\n const def = {\n check: \"string_format\",\n type: \"string\",\n format,\n fn: typeof fnOrRegex === \"function\" ? fnOrRegex : (val) => fnOrRegex.test(val),\n ...params,\n };\n if (fnOrRegex instanceof RegExp) {\n def.pattern = fnOrRegex;\n }\n const inst = new Class(def);\n return inst;\n}\n"],"ignoreList":[0],"mappings":";;;AAIA,SAASkB,EAAe,GAAK;CAGzB,OAFA,AACIC,EAAI,WAAS,CAAC,GAAGA,EAAI,MAAM,GACxBA;AACX;;AAEA,SAAgBC,EAAQ,GAAO,GAAQ;CACnC,OAAO,IAAIC,EAAMH,EAAe;EAAE,MAAM;EAAU,GAAGlB,EAAqBuB,CAAM;CAAE,CAAC,CAAC;AACxF;;AAMA,SAAgBC,EAAO,GAAO,GAAQ;CAClC,OAAO,IAAIH,EAAM;EACb,MAAM;EACN,QAAQ;EACR,OAAO;EACP,OAAO;EACP,GAAGrB,EAAqBuB,CAAM;CAClC,CAAC;AACL;;AAEA,SAAgBE,EAAM,GAAO,GAAQ;CACjC,OAAO,IAAIJ,EAAM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