@xmachines/play-vue 1.0.0-beta.2 → 1.0.0-beta.21

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 (74) hide show
  1. package/README.md +214 -84
  2. package/dist/PlayRenderer.js +7 -0
  3. package/dist/PlayRenderer.js.map +1 -0
  4. package/dist/PlayRenderer.vue_vue_type_script_lang.js +57 -0
  5. package/dist/PlayRenderer.vue_vue_type_script_lang.js.map +1 -0
  6. package/dist/define-registry.d.ts +79 -0
  7. package/dist/define-registry.d.ts.map +1 -0
  8. package/dist/define-registry.js +21 -0
  9. package/dist/define-registry.js.map +1 -0
  10. package/dist/index.d.ts +15 -1
  11. package/dist/index.d.ts.map +1 -1
  12. package/dist/index.js +5 -5
  13. package/dist/node_modules/@json-render/core/dist/chunk-AFLK3Q4T.js +111 -0
  14. package/dist/node_modules/@json-render/core/dist/chunk-AFLK3Q4T.js.map +1 -0
  15. package/dist/node_modules/@json-render/core/dist/index.js +956 -0
  16. package/dist/node_modules/@json-render/core/dist/index.js.map +1 -0
  17. package/dist/node_modules/@json-render/core/dist/store-utils.js +1 -0
  18. package/dist/node_modules/@json-render/vue/dist/chunk-WIPZLAF7.js +57 -0
  19. package/dist/node_modules/@json-render/vue/dist/chunk-WIPZLAF7.js.map +1 -0
  20. package/dist/node_modules/@json-render/vue/dist/index.js +796 -0
  21. package/dist/node_modules/@json-render/vue/dist/index.js.map +1 -0
  22. package/dist/node_modules/@json-render/xstate/dist/index.js +20 -0
  23. package/dist/node_modules/@json-render/xstate/dist/index.js.map +1 -0
  24. package/dist/node_modules/@xstate/store/dist/store-69e7e2d5.esm.js +227 -0
  25. package/dist/node_modules/@xstate/store/dist/store-69e7e2d5.esm.js.map +1 -0
  26. package/dist/node_modules/zod/v4/classic/errors.js +25 -0
  27. package/dist/node_modules/zod/v4/classic/errors.js.map +1 -0
  28. package/dist/node_modules/zod/v4/classic/iso.js +33 -0
  29. package/dist/node_modules/zod/v4/classic/iso.js.map +1 -0
  30. package/dist/node_modules/zod/v4/classic/parse.js +8 -0
  31. package/dist/node_modules/zod/v4/classic/parse.js.map +1 -0
  32. package/dist/node_modules/zod/v4/classic/schemas.js +362 -0
  33. package/dist/node_modules/zod/v4/classic/schemas.js.map +1 -0
  34. package/dist/node_modules/zod/v4/core/api.js +530 -0
  35. package/dist/node_modules/zod/v4/core/api.js.map +1 -0
  36. package/dist/node_modules/zod/v4/core/checks.js +285 -0
  37. package/dist/node_modules/zod/v4/core/checks.js.map +1 -0
  38. package/dist/node_modules/zod/v4/core/core.js +46 -0
  39. package/dist/node_modules/zod/v4/core/core.js.map +1 -0
  40. package/dist/node_modules/zod/v4/core/doc.js +25 -0
  41. package/dist/node_modules/zod/v4/core/doc.js.map +1 -0
  42. package/dist/node_modules/zod/v4/core/errors.js +43 -0
  43. package/dist/node_modules/zod/v4/core/errors.js.map +1 -0
  44. package/dist/node_modules/zod/v4/core/json-schema-processors.js +183 -0
  45. package/dist/node_modules/zod/v4/core/json-schema-processors.js.map +1 -0
  46. package/dist/node_modules/zod/v4/core/parse.js +70 -0
  47. package/dist/node_modules/zod/v4/core/parse.js.map +1 -0
  48. package/dist/node_modules/zod/v4/core/regexes.js +27 -0
  49. package/dist/node_modules/zod/v4/core/regexes.js.map +1 -0
  50. package/dist/node_modules/zod/v4/core/registries.js +42 -0
  51. package/dist/node_modules/zod/v4/core/registries.js.map +1 -0
  52. package/dist/node_modules/zod/v4/core/schemas.js +823 -0
  53. package/dist/node_modules/zod/v4/core/schemas.js.map +1 -0
  54. package/dist/node_modules/zod/v4/core/to-json-schema.js +224 -0
  55. package/dist/node_modules/zod/v4/core/to-json-schema.js.map +1 -0
  56. package/dist/node_modules/zod/v4/core/util.js +268 -0
  57. package/dist/node_modules/zod/v4/core/util.js.map +1 -0
  58. package/dist/node_modules/zod/v4/core/versions.js +10 -0
  59. package/dist/node_modules/zod/v4/core/versions.js.map +1 -0
  60. package/dist/types.d.ts +31 -7
  61. package/dist/types.d.ts.map +1 -1
  62. package/dist/useActor.d.ts +35 -0
  63. package/dist/useActor.d.ts.map +1 -0
  64. package/dist/useActor.js +15 -0
  65. package/dist/useActor.js.map +1 -0
  66. package/package.json +31 -23
  67. package/dist/PlayRenderer.vue.js +0 -8
  68. package/dist/PlayRenderer.vue.js.map +0 -1
  69. package/dist/PlayRenderer.vue2.js +0 -48
  70. package/dist/PlayRenderer.vue2.js.map +0 -1
  71. package/dist/_virtual/_plugin-vue_export-helper.js +0 -10
  72. package/dist/_virtual/_plugin-vue_export-helper.js.map +0 -1
  73. package/dist/index.css +0 -1
  74. package/dist/index.js.map +0 -1
@@ -0,0 +1,285 @@
1
+ import { $constructor as e } from "./core.js";
2
+ import { NUMBER_FORMAT_RANGES as t, escapeRegex as n, floatSafeRemainder as r, getLengthableOrigin as i, nullish as a } from "./util.js";
3
+ import { integer as o, lowercase as s, uppercase as c } from "./regexes.js";
4
+ //#region ../../node_modules/zod/v4/core/checks.js
5
+ var l = /* @__PURE__ */ e("$ZodCheck", (e, t) => {
6
+ var n;
7
+ e._zod ??= {}, e._zod.def = t, (n = e._zod).onattach ?? (n.onattach = []);
8
+ }), u = {
9
+ number: "number",
10
+ bigint: "bigint",
11
+ object: "date"
12
+ }, d = /* @__PURE__ */ e("$ZodCheckLessThan", (e, t) => {
13
+ l.init(e, t);
14
+ let n = u[typeof t.value];
15
+ e._zod.onattach.push((e) => {
16
+ let n = e._zod.bag, r = (t.inclusive ? n.maximum : n.exclusiveMaximum) ?? Infinity;
17
+ t.value < r && (t.inclusive ? n.maximum = t.value : n.exclusiveMaximum = t.value);
18
+ }), e._zod.check = (r) => {
19
+ (t.inclusive ? r.value <= t.value : r.value < t.value) || r.issues.push({
20
+ origin: n,
21
+ code: "too_big",
22
+ maximum: typeof t.value == "object" ? t.value.getTime() : t.value,
23
+ input: r.value,
24
+ inclusive: t.inclusive,
25
+ inst: e,
26
+ continue: !t.abort
27
+ });
28
+ };
29
+ }), f = /* @__PURE__ */ e("$ZodCheckGreaterThan", (e, t) => {
30
+ l.init(e, t);
31
+ let n = u[typeof t.value];
32
+ e._zod.onattach.push((e) => {
33
+ let n = e._zod.bag, r = (t.inclusive ? n.minimum : n.exclusiveMinimum) ?? -Infinity;
34
+ t.value > r && (t.inclusive ? n.minimum = t.value : n.exclusiveMinimum = t.value);
35
+ }), e._zod.check = (r) => {
36
+ (t.inclusive ? r.value >= t.value : r.value > t.value) || r.issues.push({
37
+ origin: n,
38
+ code: "too_small",
39
+ minimum: typeof t.value == "object" ? t.value.getTime() : t.value,
40
+ input: r.value,
41
+ inclusive: t.inclusive,
42
+ inst: e,
43
+ continue: !t.abort
44
+ });
45
+ };
46
+ }), p = /* @__PURE__ */ e("$ZodCheckMultipleOf", (e, t) => {
47
+ l.init(e, t), e._zod.onattach.push((e) => {
48
+ var n;
49
+ (n = e._zod.bag).multipleOf ?? (n.multipleOf = t.value);
50
+ }), e._zod.check = (n) => {
51
+ if (typeof n.value != typeof t.value) throw Error("Cannot mix number and bigint in multiple_of check.");
52
+ (typeof n.value == "bigint" ? n.value % t.value === BigInt(0) : r(n.value, t.value) === 0) || n.issues.push({
53
+ origin: typeof n.value,
54
+ code: "not_multiple_of",
55
+ divisor: t.value,
56
+ input: n.value,
57
+ inst: e,
58
+ continue: !t.abort
59
+ });
60
+ };
61
+ }), m = /* @__PURE__ */ e("$ZodCheckNumberFormat", (e, n) => {
62
+ l.init(e, n), n.format = n.format || "float64";
63
+ let r = n.format?.includes("int"), i = r ? "int" : "number", [a, s] = t[n.format];
64
+ e._zod.onattach.push((e) => {
65
+ let t = e._zod.bag;
66
+ t.format = n.format, t.minimum = a, t.maximum = s, r && (t.pattern = o);
67
+ }), e._zod.check = (t) => {
68
+ let o = t.value;
69
+ if (r) {
70
+ if (!Number.isInteger(o)) {
71
+ t.issues.push({
72
+ expected: i,
73
+ format: n.format,
74
+ code: "invalid_type",
75
+ continue: !1,
76
+ input: o,
77
+ inst: e
78
+ });
79
+ return;
80
+ }
81
+ if (!Number.isSafeInteger(o)) {
82
+ o > 0 ? t.issues.push({
83
+ input: o,
84
+ code: "too_big",
85
+ maximum: 2 ** 53 - 1,
86
+ note: "Integers must be within the safe integer range.",
87
+ inst: e,
88
+ origin: i,
89
+ inclusive: !0,
90
+ continue: !n.abort
91
+ }) : t.issues.push({
92
+ input: o,
93
+ code: "too_small",
94
+ minimum: -(2 ** 53 - 1),
95
+ note: "Integers must be within the safe integer range.",
96
+ inst: e,
97
+ origin: i,
98
+ inclusive: !0,
99
+ continue: !n.abort
100
+ });
101
+ return;
102
+ }
103
+ }
104
+ o < a && t.issues.push({
105
+ origin: "number",
106
+ input: o,
107
+ code: "too_small",
108
+ minimum: a,
109
+ inclusive: !0,
110
+ inst: e,
111
+ continue: !n.abort
112
+ }), o > s && t.issues.push({
113
+ origin: "number",
114
+ input: o,
115
+ code: "too_big",
116
+ maximum: s,
117
+ inclusive: !0,
118
+ inst: e,
119
+ continue: !n.abort
120
+ });
121
+ };
122
+ }), h = /* @__PURE__ */ e("$ZodCheckMaxLength", (e, t) => {
123
+ var n;
124
+ l.init(e, t), (n = e._zod.def).when ?? (n.when = (e) => {
125
+ let t = e.value;
126
+ return !a(t) && t.length !== void 0;
127
+ }), e._zod.onattach.push((e) => {
128
+ let n = e._zod.bag.maximum ?? Infinity;
129
+ t.maximum < n && (e._zod.bag.maximum = t.maximum);
130
+ }), e._zod.check = (n) => {
131
+ let r = n.value;
132
+ if (r.length <= t.maximum) return;
133
+ let a = i(r);
134
+ n.issues.push({
135
+ origin: a,
136
+ code: "too_big",
137
+ maximum: t.maximum,
138
+ inclusive: !0,
139
+ input: r,
140
+ inst: e,
141
+ continue: !t.abort
142
+ });
143
+ };
144
+ }), g = /* @__PURE__ */ e("$ZodCheckMinLength", (e, t) => {
145
+ var n;
146
+ l.init(e, t), (n = e._zod.def).when ?? (n.when = (e) => {
147
+ let t = e.value;
148
+ return !a(t) && t.length !== void 0;
149
+ }), e._zod.onattach.push((e) => {
150
+ let n = e._zod.bag.minimum ?? -Infinity;
151
+ t.minimum > n && (e._zod.bag.minimum = t.minimum);
152
+ }), e._zod.check = (n) => {
153
+ let r = n.value;
154
+ if (r.length >= t.minimum) return;
155
+ let a = i(r);
156
+ n.issues.push({
157
+ origin: a,
158
+ code: "too_small",
159
+ minimum: t.minimum,
160
+ inclusive: !0,
161
+ input: r,
162
+ inst: e,
163
+ continue: !t.abort
164
+ });
165
+ };
166
+ }), _ = /* @__PURE__ */ e("$ZodCheckLengthEquals", (e, t) => {
167
+ var n;
168
+ l.init(e, t), (n = e._zod.def).when ?? (n.when = (e) => {
169
+ let t = e.value;
170
+ return !a(t) && t.length !== void 0;
171
+ }), e._zod.onattach.push((e) => {
172
+ let n = e._zod.bag;
173
+ n.minimum = t.length, n.maximum = t.length, n.length = t.length;
174
+ }), e._zod.check = (n) => {
175
+ let r = n.value, a = r.length;
176
+ if (a === t.length) return;
177
+ let o = i(r), s = a > t.length;
178
+ n.issues.push({
179
+ origin: o,
180
+ ...s ? {
181
+ code: "too_big",
182
+ maximum: t.length
183
+ } : {
184
+ code: "too_small",
185
+ minimum: t.length
186
+ },
187
+ inclusive: !0,
188
+ exact: !0,
189
+ input: n.value,
190
+ inst: e,
191
+ continue: !t.abort
192
+ });
193
+ };
194
+ }), v = /* @__PURE__ */ e("$ZodCheckStringFormat", (e, t) => {
195
+ var n, r;
196
+ l.init(e, t), e._zod.onattach.push((e) => {
197
+ let n = e._zod.bag;
198
+ n.format = t.format, t.pattern && (n.patterns ??= /* @__PURE__ */ new Set(), n.patterns.add(t.pattern));
199
+ }), t.pattern ? (n = e._zod).check ?? (n.check = (n) => {
200
+ t.pattern.lastIndex = 0, !t.pattern.test(n.value) && n.issues.push({
201
+ origin: "string",
202
+ code: "invalid_format",
203
+ format: t.format,
204
+ input: n.value,
205
+ ...t.pattern ? { pattern: t.pattern.toString() } : {},
206
+ inst: e,
207
+ continue: !t.abort
208
+ });
209
+ }) : (r = e._zod).check ?? (r.check = () => {});
210
+ }), y = /* @__PURE__ */ e("$ZodCheckRegex", (e, t) => {
211
+ v.init(e, t), e._zod.check = (n) => {
212
+ t.pattern.lastIndex = 0, !t.pattern.test(n.value) && n.issues.push({
213
+ origin: "string",
214
+ code: "invalid_format",
215
+ format: "regex",
216
+ input: n.value,
217
+ pattern: t.pattern.toString(),
218
+ inst: e,
219
+ continue: !t.abort
220
+ });
221
+ };
222
+ }), b = /* @__PURE__ */ e("$ZodCheckLowerCase", (e, t) => {
223
+ t.pattern ??= s, v.init(e, t);
224
+ }), x = /* @__PURE__ */ e("$ZodCheckUpperCase", (e, t) => {
225
+ t.pattern ??= c, v.init(e, t);
226
+ }), S = /* @__PURE__ */ e("$ZodCheckIncludes", (e, t) => {
227
+ l.init(e, t);
228
+ let r = n(t.includes), i = new RegExp(typeof t.position == "number" ? `^.{${t.position}}${r}` : r);
229
+ t.pattern = i, e._zod.onattach.push((e) => {
230
+ let t = e._zod.bag;
231
+ t.patterns ??= /* @__PURE__ */ new Set(), t.patterns.add(i);
232
+ }), e._zod.check = (n) => {
233
+ n.value.includes(t.includes, t.position) || n.issues.push({
234
+ origin: "string",
235
+ code: "invalid_format",
236
+ format: "includes",
237
+ includes: t.includes,
238
+ input: n.value,
239
+ inst: e,
240
+ continue: !t.abort
241
+ });
242
+ };
243
+ }), C = /* @__PURE__ */ e("$ZodCheckStartsWith", (e, t) => {
244
+ l.init(e, t);
245
+ let r = RegExp(`^${n(t.prefix)}.*`);
246
+ t.pattern ??= r, e._zod.onattach.push((e) => {
247
+ let t = e._zod.bag;
248
+ t.patterns ??= /* @__PURE__ */ new Set(), t.patterns.add(r);
249
+ }), e._zod.check = (n) => {
250
+ n.value.startsWith(t.prefix) || n.issues.push({
251
+ origin: "string",
252
+ code: "invalid_format",
253
+ format: "starts_with",
254
+ prefix: t.prefix,
255
+ input: n.value,
256
+ inst: e,
257
+ continue: !t.abort
258
+ });
259
+ };
260
+ }), w = /* @__PURE__ */ e("$ZodCheckEndsWith", (e, t) => {
261
+ l.init(e, t);
262
+ let r = RegExp(`.*${n(t.suffix)}$`);
263
+ t.pattern ??= r, e._zod.onattach.push((e) => {
264
+ let t = e._zod.bag;
265
+ t.patterns ??= /* @__PURE__ */ new Set(), t.patterns.add(r);
266
+ }), e._zod.check = (n) => {
267
+ n.value.endsWith(t.suffix) || n.issues.push({
268
+ origin: "string",
269
+ code: "invalid_format",
270
+ format: "ends_with",
271
+ suffix: t.suffix,
272
+ input: n.value,
273
+ inst: e,
274
+ continue: !t.abort
275
+ });
276
+ };
277
+ }), T = /* @__PURE__ */ e("$ZodCheckOverwrite", (e, t) => {
278
+ l.init(e, t), e._zod.check = (e) => {
279
+ e.value = t.tx(e.value);
280
+ };
281
+ });
282
+ //#endregion
283
+ export { l as $ZodCheck, w as $ZodCheckEndsWith, f as $ZodCheckGreaterThan, S as $ZodCheckIncludes, _ as $ZodCheckLengthEquals, d as $ZodCheckLessThan, b as $ZodCheckLowerCase, h as $ZodCheckMaxLength, g as $ZodCheckMinLength, p as $ZodCheckMultipleOf, m as $ZodCheckNumberFormat, T as $ZodCheckOverwrite, y as $ZodCheckRegex, C as $ZodCheckStartsWith, v as $ZodCheckStringFormat, x as $ZodCheckUpperCase };
284
+
285
+ //# sourceMappingURL=checks.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"checks.js","names":["util.floatSafeRemainder","util.NUMBER_FORMAT_RANGES","regexes.integer","util.nullish","util.getLengthableOrigin","regexes.lowercase","regexes.uppercase","util.escapeRegex"],"sources":["../../../../../../../node_modules/zod/v4/core/checks.js"],"sourcesContent":["// import { $ZodType } from \"./schemas.js\";\nimport * as core from \"./core.js\";\nimport * as regexes from \"./regexes.js\";\nimport * as util from \"./util.js\";\nexport const $ZodCheck = /*@__PURE__*/ core.$constructor(\"$ZodCheck\", (inst, def) => {\n var _a;\n inst._zod ?? (inst._zod = {});\n inst._zod.def = def;\n (_a = inst._zod).onattach ?? (_a.onattach = []);\n});\nconst numericOriginMap = {\n number: \"number\",\n bigint: \"bigint\",\n object: \"date\",\n};\nexport const $ZodCheckLessThan = /*@__PURE__*/ core.$constructor(\"$ZodCheckLessThan\", (inst, def) => {\n $ZodCheck.init(inst, def);\n const origin = numericOriginMap[typeof def.value];\n inst._zod.onattach.push((inst) => {\n const bag = inst._zod.bag;\n const curr = (def.inclusive ? bag.maximum : bag.exclusiveMaximum) ?? Number.POSITIVE_INFINITY;\n if (def.value < curr) {\n if (def.inclusive)\n bag.maximum = def.value;\n else\n bag.exclusiveMaximum = def.value;\n }\n });\n inst._zod.check = (payload) => {\n if (def.inclusive ? payload.value <= def.value : payload.value < def.value) {\n return;\n }\n payload.issues.push({\n origin,\n code: \"too_big\",\n maximum: typeof def.value === \"object\" ? def.value.getTime() : def.value,\n input: payload.value,\n inclusive: def.inclusive,\n inst,\n continue: !def.abort,\n });\n };\n});\nexport const $ZodCheckGreaterThan = /*@__PURE__*/ core.$constructor(\"$ZodCheckGreaterThan\", (inst, def) => {\n $ZodCheck.init(inst, def);\n const origin = numericOriginMap[typeof def.value];\n inst._zod.onattach.push((inst) => {\n const bag = inst._zod.bag;\n const curr = (def.inclusive ? bag.minimum : bag.exclusiveMinimum) ?? Number.NEGATIVE_INFINITY;\n if (def.value > curr) {\n if (def.inclusive)\n bag.minimum = def.value;\n else\n bag.exclusiveMinimum = def.value;\n }\n });\n inst._zod.check = (payload) => {\n if (def.inclusive ? payload.value >= def.value : payload.value > def.value) {\n return;\n }\n payload.issues.push({\n origin,\n code: \"too_small\",\n minimum: typeof def.value === \"object\" ? def.value.getTime() : def.value,\n input: payload.value,\n inclusive: def.inclusive,\n inst,\n continue: !def.abort,\n });\n };\n});\nexport const $ZodCheckMultipleOf = \n/*@__PURE__*/ core.$constructor(\"$ZodCheckMultipleOf\", (inst, def) => {\n $ZodCheck.init(inst, def);\n inst._zod.onattach.push((inst) => {\n var _a;\n (_a = inst._zod.bag).multipleOf ?? (_a.multipleOf = def.value);\n });\n inst._zod.check = (payload) => {\n if (typeof payload.value !== typeof def.value)\n throw new Error(\"Cannot mix number and bigint in multiple_of check.\");\n const isMultiple = typeof payload.value === \"bigint\"\n ? payload.value % def.value === BigInt(0)\n : util.floatSafeRemainder(payload.value, def.value) === 0;\n if (isMultiple)\n return;\n payload.issues.push({\n origin: typeof payload.value,\n code: \"not_multiple_of\",\n divisor: def.value,\n input: payload.value,\n inst,\n continue: !def.abort,\n });\n };\n});\nexport const $ZodCheckNumberFormat = /*@__PURE__*/ core.$constructor(\"$ZodCheckNumberFormat\", (inst, def) => {\n $ZodCheck.init(inst, def); // no format checks\n def.format = def.format || \"float64\";\n const isInt = def.format?.includes(\"int\");\n const origin = isInt ? \"int\" : \"number\";\n const [minimum, maximum] = util.NUMBER_FORMAT_RANGES[def.format];\n inst._zod.onattach.push((inst) => {\n const bag = inst._zod.bag;\n bag.format = def.format;\n bag.minimum = minimum;\n bag.maximum = maximum;\n if (isInt)\n bag.pattern = regexes.integer;\n });\n inst._zod.check = (payload) => {\n const input = payload.value;\n if (isInt) {\n if (!Number.isInteger(input)) {\n // invalid_format issue\n // payload.issues.push({\n // expected: def.format,\n // format: def.format,\n // code: \"invalid_format\",\n // input,\n // inst,\n // });\n // invalid_type issue\n payload.issues.push({\n expected: origin,\n format: def.format,\n code: \"invalid_type\",\n continue: false,\n input,\n inst,\n });\n return;\n // not_multiple_of issue\n // payload.issues.push({\n // code: \"not_multiple_of\",\n // origin: \"number\",\n // input,\n // inst,\n // divisor: 1,\n // });\n }\n if (!Number.isSafeInteger(input)) {\n if (input > 0) {\n // too_big\n payload.issues.push({\n input,\n code: \"too_big\",\n maximum: Number.MAX_SAFE_INTEGER,\n note: \"Integers must be within the safe integer range.\",\n inst,\n origin,\n inclusive: true,\n continue: !def.abort,\n });\n }\n else {\n // too_small\n payload.issues.push({\n input,\n code: \"too_small\",\n minimum: Number.MIN_SAFE_INTEGER,\n note: \"Integers must be within the safe integer range.\",\n inst,\n origin,\n inclusive: true,\n continue: !def.abort,\n });\n }\n return;\n }\n }\n if (input < minimum) {\n payload.issues.push({\n origin: \"number\",\n input,\n code: \"too_small\",\n minimum,\n inclusive: true,\n inst,\n continue: !def.abort,\n });\n }\n if (input > maximum) {\n payload.issues.push({\n origin: \"number\",\n input,\n code: \"too_big\",\n maximum,\n inclusive: true,\n inst,\n continue: !def.abort,\n });\n }\n };\n});\nexport const $ZodCheckBigIntFormat = /*@__PURE__*/ core.$constructor(\"$ZodCheckBigIntFormat\", (inst, def) => {\n $ZodCheck.init(inst, def); // no format checks\n const [minimum, maximum] = util.BIGINT_FORMAT_RANGES[def.format];\n inst._zod.onattach.push((inst) => {\n const bag = inst._zod.bag;\n bag.format = def.format;\n bag.minimum = minimum;\n bag.maximum = maximum;\n });\n inst._zod.check = (payload) => {\n const input = payload.value;\n if (input < minimum) {\n payload.issues.push({\n origin: \"bigint\",\n input,\n code: \"too_small\",\n minimum: minimum,\n inclusive: true,\n inst,\n continue: !def.abort,\n });\n }\n if (input > maximum) {\n payload.issues.push({\n origin: \"bigint\",\n input,\n code: \"too_big\",\n maximum,\n inclusive: true,\n inst,\n continue: !def.abort,\n });\n }\n };\n});\nexport const $ZodCheckMaxSize = /*@__PURE__*/ core.$constructor(\"$ZodCheckMaxSize\", (inst, def) => {\n var _a;\n $ZodCheck.init(inst, def);\n (_a = inst._zod.def).when ?? (_a.when = (payload) => {\n const val = payload.value;\n return !util.nullish(val) && val.size !== undefined;\n });\n inst._zod.onattach.push((inst) => {\n const curr = (inst._zod.bag.maximum ?? Number.POSITIVE_INFINITY);\n if (def.maximum < curr)\n inst._zod.bag.maximum = def.maximum;\n });\n inst._zod.check = (payload) => {\n const input = payload.value;\n const size = input.size;\n if (size <= def.maximum)\n return;\n payload.issues.push({\n origin: util.getSizableOrigin(input),\n code: \"too_big\",\n maximum: def.maximum,\n inclusive: true,\n input,\n inst,\n continue: !def.abort,\n });\n };\n});\nexport const $ZodCheckMinSize = /*@__PURE__*/ core.$constructor(\"$ZodCheckMinSize\", (inst, def) => {\n var _a;\n $ZodCheck.init(inst, def);\n (_a = inst._zod.def).when ?? (_a.when = (payload) => {\n const val = payload.value;\n return !util.nullish(val) && val.size !== undefined;\n });\n inst._zod.onattach.push((inst) => {\n const curr = (inst._zod.bag.minimum ?? Number.NEGATIVE_INFINITY);\n if (def.minimum > curr)\n inst._zod.bag.minimum = def.minimum;\n });\n inst._zod.check = (payload) => {\n const input = payload.value;\n const size = input.size;\n if (size >= def.minimum)\n return;\n payload.issues.push({\n origin: util.getSizableOrigin(input),\n code: \"too_small\",\n minimum: def.minimum,\n inclusive: true,\n input,\n inst,\n continue: !def.abort,\n });\n };\n});\nexport const $ZodCheckSizeEquals = /*@__PURE__*/ core.$constructor(\"$ZodCheckSizeEquals\", (inst, def) => {\n var _a;\n $ZodCheck.init(inst, def);\n (_a = inst._zod.def).when ?? (_a.when = (payload) => {\n const val = payload.value;\n return !util.nullish(val) && val.size !== undefined;\n });\n inst._zod.onattach.push((inst) => {\n const bag = inst._zod.bag;\n bag.minimum = def.size;\n bag.maximum = def.size;\n bag.size = def.size;\n });\n inst._zod.check = (payload) => {\n const input = payload.value;\n const size = input.size;\n if (size === def.size)\n return;\n const tooBig = size > def.size;\n payload.issues.push({\n origin: util.getSizableOrigin(input),\n ...(tooBig ? { code: \"too_big\", maximum: def.size } : { code: \"too_small\", minimum: def.size }),\n inclusive: true,\n exact: true,\n input: payload.value,\n inst,\n continue: !def.abort,\n });\n };\n});\nexport const $ZodCheckMaxLength = /*@__PURE__*/ core.$constructor(\"$ZodCheckMaxLength\", (inst, def) => {\n var _a;\n $ZodCheck.init(inst, def);\n (_a = inst._zod.def).when ?? (_a.when = (payload) => {\n const val = payload.value;\n return !util.nullish(val) && val.length !== undefined;\n });\n inst._zod.onattach.push((inst) => {\n const curr = (inst._zod.bag.maximum ?? Number.POSITIVE_INFINITY);\n if (def.maximum < curr)\n inst._zod.bag.maximum = def.maximum;\n });\n inst._zod.check = (payload) => {\n const input = payload.value;\n const length = input.length;\n if (length <= def.maximum)\n return;\n const origin = util.getLengthableOrigin(input);\n payload.issues.push({\n origin,\n code: \"too_big\",\n maximum: def.maximum,\n inclusive: true,\n input,\n inst,\n continue: !def.abort,\n });\n };\n});\nexport const $ZodCheckMinLength = /*@__PURE__*/ core.$constructor(\"$ZodCheckMinLength\", (inst, def) => {\n var _a;\n $ZodCheck.init(inst, def);\n (_a = inst._zod.def).when ?? (_a.when = (payload) => {\n const val = payload.value;\n return !util.nullish(val) && val.length !== undefined;\n });\n inst._zod.onattach.push((inst) => {\n const curr = (inst._zod.bag.minimum ?? Number.NEGATIVE_INFINITY);\n if (def.minimum > curr)\n inst._zod.bag.minimum = def.minimum;\n });\n inst._zod.check = (payload) => {\n const input = payload.value;\n const length = input.length;\n if (length >= def.minimum)\n return;\n const origin = util.getLengthableOrigin(input);\n payload.issues.push({\n origin,\n code: \"too_small\",\n minimum: def.minimum,\n inclusive: true,\n input,\n inst,\n continue: !def.abort,\n });\n };\n});\nexport const $ZodCheckLengthEquals = /*@__PURE__*/ core.$constructor(\"$ZodCheckLengthEquals\", (inst, def) => {\n var _a;\n $ZodCheck.init(inst, def);\n (_a = inst._zod.def).when ?? (_a.when = (payload) => {\n const val = payload.value;\n return !util.nullish(val) && val.length !== undefined;\n });\n inst._zod.onattach.push((inst) => {\n const bag = inst._zod.bag;\n bag.minimum = def.length;\n bag.maximum = def.length;\n bag.length = def.length;\n });\n inst._zod.check = (payload) => {\n const input = payload.value;\n const length = input.length;\n if (length === def.length)\n return;\n const origin = util.getLengthableOrigin(input);\n const tooBig = length > def.length;\n payload.issues.push({\n origin,\n ...(tooBig ? { code: \"too_big\", maximum: def.length } : { code: \"too_small\", minimum: def.length }),\n inclusive: true,\n exact: true,\n input: payload.value,\n inst,\n continue: !def.abort,\n });\n };\n});\nexport const $ZodCheckStringFormat = /*@__PURE__*/ core.$constructor(\"$ZodCheckStringFormat\", (inst, def) => {\n var _a, _b;\n $ZodCheck.init(inst, def);\n inst._zod.onattach.push((inst) => {\n const bag = inst._zod.bag;\n bag.format = def.format;\n if (def.pattern) {\n bag.patterns ?? (bag.patterns = new Set());\n bag.patterns.add(def.pattern);\n }\n });\n if (def.pattern)\n (_a = inst._zod).check ?? (_a.check = (payload) => {\n def.pattern.lastIndex = 0;\n if (def.pattern.test(payload.value))\n return;\n payload.issues.push({\n origin: \"string\",\n code: \"invalid_format\",\n format: def.format,\n input: payload.value,\n ...(def.pattern ? { pattern: def.pattern.toString() } : {}),\n inst,\n continue: !def.abort,\n });\n });\n else\n (_b = inst._zod).check ?? (_b.check = () => { });\n});\nexport const $ZodCheckRegex = /*@__PURE__*/ core.$constructor(\"$ZodCheckRegex\", (inst, def) => {\n $ZodCheckStringFormat.init(inst, def);\n inst._zod.check = (payload) => {\n def.pattern.lastIndex = 0;\n if (def.pattern.test(payload.value))\n return;\n payload.issues.push({\n origin: \"string\",\n code: \"invalid_format\",\n format: \"regex\",\n input: payload.value,\n pattern: def.pattern.toString(),\n inst,\n continue: !def.abort,\n });\n };\n});\nexport const $ZodCheckLowerCase = /*@__PURE__*/ core.$constructor(\"$ZodCheckLowerCase\", (inst, def) => {\n def.pattern ?? (def.pattern = regexes.lowercase);\n $ZodCheckStringFormat.init(inst, def);\n});\nexport const $ZodCheckUpperCase = /*@__PURE__*/ core.$constructor(\"$ZodCheckUpperCase\", (inst, def) => {\n def.pattern ?? (def.pattern = regexes.uppercase);\n $ZodCheckStringFormat.init(inst, def);\n});\nexport const $ZodCheckIncludes = /*@__PURE__*/ core.$constructor(\"$ZodCheckIncludes\", (inst, def) => {\n $ZodCheck.init(inst, def);\n const escapedRegex = util.escapeRegex(def.includes);\n const pattern = new RegExp(typeof def.position === \"number\" ? `^.{${def.position}}${escapedRegex}` : escapedRegex);\n def.pattern = pattern;\n inst._zod.onattach.push((inst) => {\n const bag = inst._zod.bag;\n bag.patterns ?? (bag.patterns = new Set());\n bag.patterns.add(pattern);\n });\n inst._zod.check = (payload) => {\n if (payload.value.includes(def.includes, def.position))\n return;\n payload.issues.push({\n origin: \"string\",\n code: \"invalid_format\",\n format: \"includes\",\n includes: def.includes,\n input: payload.value,\n inst,\n continue: !def.abort,\n });\n };\n});\nexport const $ZodCheckStartsWith = /*@__PURE__*/ core.$constructor(\"$ZodCheckStartsWith\", (inst, def) => {\n $ZodCheck.init(inst, def);\n const pattern = new RegExp(`^${util.escapeRegex(def.prefix)}.*`);\n def.pattern ?? (def.pattern = pattern);\n inst._zod.onattach.push((inst) => {\n const bag = inst._zod.bag;\n bag.patterns ?? (bag.patterns = new Set());\n bag.patterns.add(pattern);\n });\n inst._zod.check = (payload) => {\n if (payload.value.startsWith(def.prefix))\n return;\n payload.issues.push({\n origin: \"string\",\n code: \"invalid_format\",\n format: \"starts_with\",\n prefix: def.prefix,\n input: payload.value,\n inst,\n continue: !def.abort,\n });\n };\n});\nexport const $ZodCheckEndsWith = /*@__PURE__*/ core.$constructor(\"$ZodCheckEndsWith\", (inst, def) => {\n $ZodCheck.init(inst, def);\n const pattern = new RegExp(`.*${util.escapeRegex(def.suffix)}$`);\n def.pattern ?? (def.pattern = pattern);\n inst._zod.onattach.push((inst) => {\n const bag = inst._zod.bag;\n bag.patterns ?? (bag.patterns = new Set());\n bag.patterns.add(pattern);\n });\n inst._zod.check = (payload) => {\n if (payload.value.endsWith(def.suffix))\n return;\n payload.issues.push({\n origin: \"string\",\n code: \"invalid_format\",\n format: \"ends_with\",\n suffix: def.suffix,\n input: payload.value,\n inst,\n continue: !def.abort,\n });\n };\n});\n///////////////////////////////////\n///// $ZodCheckProperty /////\n///////////////////////////////////\nfunction handleCheckPropertyResult(result, payload, property) {\n if (result.issues.length) {\n payload.issues.push(...util.prefixIssues(property, result.issues));\n }\n}\nexport const $ZodCheckProperty = /*@__PURE__*/ core.$constructor(\"$ZodCheckProperty\", (inst, def) => {\n $ZodCheck.init(inst, def);\n inst._zod.check = (payload) => {\n const result = def.schema._zod.run({\n value: payload.value[def.property],\n issues: [],\n }, {});\n if (result instanceof Promise) {\n return result.then((result) => handleCheckPropertyResult(result, payload, def.property));\n }\n handleCheckPropertyResult(result, payload, def.property);\n return;\n };\n});\nexport const $ZodCheckMimeType = /*@__PURE__*/ core.$constructor(\"$ZodCheckMimeType\", (inst, def) => {\n $ZodCheck.init(inst, def);\n const mimeSet = new Set(def.mime);\n inst._zod.onattach.push((inst) => {\n inst._zod.bag.mime = def.mime;\n });\n inst._zod.check = (payload) => {\n if (mimeSet.has(payload.value.type))\n return;\n payload.issues.push({\n code: \"invalid_value\",\n values: def.mime,\n input: payload.value.type,\n inst,\n continue: !def.abort,\n });\n };\n});\nexport const $ZodCheckOverwrite = /*@__PURE__*/ core.$constructor(\"$ZodCheckOverwrite\", (inst, def) => {\n $ZodCheck.init(inst, def);\n inst._zod.check = (payload) => {\n payload.value = def.tx(payload.value);\n };\n});\n"],"x_google_ignoreList":[0],"mappings":";;;;AAIA,IAAa,IAA0B,kBAAkB,cAAc,GAAM,MAAQ;CACjF,IAAI;AAGJ,CAFA,AAAc,EAAK,SAAO,EAAE,EAC5B,EAAK,KAAK,MAAM,IACf,IAAK,EAAK,MAAM,aAAa,EAAG,WAAW,EAAE;EAChD,EACI,IAAmB;CACrB,QAAQ;CACR,QAAQ;CACR,QAAQ;CACX,EACY,IAAkC,kBAAkB,sBAAsB,GAAM,MAAQ;AACjG,GAAU,KAAK,GAAM,EAAI;CACzB,IAAM,IAAS,EAAiB,OAAO,EAAI;AAW3C,CAVA,EAAK,KAAK,SAAS,MAAM,MAAS;EAC9B,IAAM,IAAM,EAAK,KAAK,KAChB,KAAQ,EAAI,YAAY,EAAI,UAAU,EAAI,qBAAqB;AACrE,EAAI,EAAI,QAAQ,MACR,EAAI,YACJ,EAAI,UAAU,EAAI,QAElB,EAAI,mBAAmB,EAAI;GAErC,EACF,EAAK,KAAK,SAAS,MAAY;AACvB,KAAI,YAAY,EAAQ,SAAS,EAAI,QAAQ,EAAQ,QAAQ,EAAI,UAGrE,EAAQ,OAAO,KAAK;GAChB;GACA,MAAM;GACN,SAAS,OAAO,EAAI,SAAU,WAA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EAAK,KAAK,SAAS,MAAY;AAC3B,IAAQ,QAAQ,EAAI,GAAG,EAAQ,MAAM;;EAE3C"}
@@ -0,0 +1,46 @@
1
+ Object.freeze({ status: "aborted" });
2
+ function e(e, t, n) {
3
+ function r(n, r) {
4
+ if (n._zod || Object.defineProperty(n, "_zod", {
5
+ value: {
6
+ def: r,
7
+ constr: o,
8
+ traits: /* @__PURE__ */ new Set()
9
+ },
10
+ enumerable: !1
11
+ }), n._zod.traits.has(e)) return;
12
+ n._zod.traits.add(e), t(n, r);
13
+ let i = o.prototype, a = Object.keys(i);
14
+ for (let e = 0; e < a.length; e++) {
15
+ let t = a[e];
16
+ t in n || (n[t] = i[t].bind(n));
17
+ }
18
+ }
19
+ let i = n?.Parent ?? Object;
20
+ class a extends i {}
21
+ Object.defineProperty(a, "name", { value: e });
22
+ function o(e) {
23
+ var t;
24
+ let i = n?.Parent ? new a() : this;
25
+ r(i, e), (t = i._zod).deferred ?? (t.deferred = []);
26
+ for (let e of i._zod.deferred) e();
27
+ return i;
28
+ }
29
+ return Object.defineProperty(o, "init", { value: r }), Object.defineProperty(o, Symbol.hasInstance, { value: (t) => n?.Parent && t instanceof n.Parent ? !0 : t?._zod?.traits?.has(e) }), Object.defineProperty(o, "name", { value: e }), o;
30
+ }
31
+ var t = class extends Error {
32
+ constructor() {
33
+ super("Encountered Promise during synchronous parse. Use .parseAsync() instead.");
34
+ }
35
+ }, n = class extends Error {
36
+ constructor(e) {
37
+ super(`Encountered unidirectional transform during encode: ${e}`), this.name = "ZodEncodeError";
38
+ }
39
+ }, r = {};
40
+ function i(e) {
41
+ return e && Object.assign(r, e), r;
42
+ }
43
+ //#endregion
44
+ export { t as $ZodAsyncError, n as $ZodEncodeError, e as $constructor, i as config, r as globalConfig };
45
+
46
+ //# sourceMappingURL=core.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"core.js","names":[],"sources":["../../../../../../../node_modules/zod/v4/core/core.js"],"sourcesContent":["/** A special constant with type `never` */\nexport const NEVER = Object.freeze({\n status: \"aborted\",\n});\nexport /*@__NO_SIDE_EFFECTS__*/ function $constructor(name, initializer, params) {\n function init(inst, def) {\n if (!inst._zod) {\n Object.defineProperty(inst, \"_zod\", {\n value: {\n def,\n constr: _,\n traits: new Set(),\n },\n enumerable: false,\n });\n }\n if (inst._zod.traits.has(name)) {\n return;\n }\n inst._zod.traits.add(name);\n initializer(inst, def);\n // support prototype modifications\n const proto = _.prototype;\n const keys = Object.keys(proto);\n for (let i = 0; i < keys.length; i++) {\n const k = keys[i];\n if (!(k in inst)) {\n inst[k] = proto[k].bind(inst);\n }\n }\n }\n // doesn't work if Parent has a constructor with arguments\n const Parent = params?.Parent ?? Object;\n class Definition extends Parent {\n }\n Object.defineProperty(Definition, \"name\", { value: name });\n function _(def) {\n var _a;\n const inst = params?.Parent ? new Definition() : this;\n init(inst, def);\n (_a = inst._zod).deferred ?? (_a.deferred = []);\n for (const fn of inst._zod.deferred) {\n fn();\n }\n return inst;\n }\n Object.defineProperty(_, \"init\", { value: init });\n Object.defineProperty(_, Symbol.hasInstance, {\n value: (inst) => {\n if (params?.Parent && inst instanceof params.Parent)\n return true;\n return inst?._zod?.traits?.has(name);\n },\n });\n Object.defineProperty(_, \"name\", { value: name });\n return _;\n}\n////////////////////////////// UTILITIES ///////////////////////////////////////\nexport const $brand = Symbol(\"zod_brand\");\nexport class $ZodAsyncError extends Error {\n constructor() {\n super(`Encountered Promise during synchronous parse. Use .parseAsync() instead.`);\n }\n}\nexport class $ZodEncodeError extends Error {\n constructor(name) {\n super(`Encountered unidirectional transform during encode: ${name}`);\n this.name = \"ZodEncodeError\";\n }\n}\nexport const globalConfig = {};\nexport function config(newConfig) {\n if (newConfig)\n Object.assign(globalConfig, newConfig);\n return globalConfig;\n}\n"],"x_google_ignoreList":[0],"mappings":"AACqB,OAAO,OAAO,EAC/B,QAAQ,WACX,CAAC;AACF,SAAyC,EAAa,GAAM,GAAa,GAAQ;CAC7E,SAAS,EAAK,GAAM,GAA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AAO,GAAW;AAG9B,QAFI,KACA,OAAO,OAAO,GAAc,EAAU,EACnC"}
@@ -0,0 +1,25 @@
1
+ //#region ../../node_modules/zod/v4/core/doc.js
2
+ var e = class {
3
+ constructor(e = []) {
4
+ this.content = [], this.indent = 0, this && (this.args = e);
5
+ }
6
+ indented(e) {
7
+ this.indent += 1, e(this), --this.indent;
8
+ }
9
+ write(e) {
10
+ if (typeof e == "function") {
11
+ e(this, { execution: "sync" }), e(this, { execution: "async" });
12
+ return;
13
+ }
14
+ let t = e.split("\n").filter((e) => e), n = Math.min(...t.map((e) => e.length - e.trimStart().length)), r = t.map((e) => e.slice(n)).map((e) => " ".repeat(this.indent * 2) + e);
15
+ for (let e of r) this.content.push(e);
16
+ }
17
+ compile() {
18
+ let e = Function, t = this?.args, n = [...(this?.content ?? [""]).map((e) => ` ${e}`)];
19
+ return new e(...t, n.join("\n"));
20
+ }
21
+ };
22
+ //#endregion
23
+ export { e as Doc };
24
+
25
+ //# sourceMappingURL=doc.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"doc.js","names":[],"sources":["../../../../../../../node_modules/zod/v4/core/doc.js"],"sourcesContent":["export class Doc {\n constructor(args = []) {\n this.content = [];\n this.indent = 0;\n if (this)\n this.args = args;\n }\n indented(fn) {\n this.indent += 1;\n fn(this);\n this.indent -= 1;\n }\n write(arg) {\n if (typeof arg === \"function\") {\n arg(this, { execution: \"sync\" });\n arg(this, { execution: \"async\" });\n return;\n }\n const content = arg;\n const lines = content.split(\"\\n\").filter((x) => x);\n const minIndent = Math.min(...lines.map((x) => x.length - x.trimStart().length));\n const dedented = lines.map((x) => x.slice(minIndent)).map((x) => \" \".repeat(this.indent * 2) + x);\n for (const line of dedented) {\n this.content.push(line);\n }\n }\n compile() {\n const F = Function;\n const args = this?.args;\n const content = this?.content ?? [``];\n const lines = [...content.map((x) => ` ${x}`)];\n // console.log(lines.join(\"\\n\"));\n return new F(...args, lines.join(\"\\n\"));\n }\n}\n"],"x_google_ignoreList":[0],"mappings":";AAAA,IAAa,IAAb,MAAiB;CACb,YAAY,IAAO,EAAE,EAAE;AAGnB,EAFA,KAAK,UAAU,EAAE,EACjB,KAAK,SAAS,GACV,SACA,KAAK,OAAO;;CAEpB,SAAS,GAAI;AAGT,EAFA,KAAK,UAAU,GACf,EAAG,KAAK,EACR,OAAK;;CAET,MAAM,GAAK;AACP,MAAI,OAAO,KAAQ,YAAY;AAE3B,GADA,EAAI,MAAM,EAAE,WAAW,QAAQ,CAAC,EAChC,EAAI,MAAM,EAAE,WAAW,SAAS,CAAC;AACjC;;EAGJ,IAAM,IADU,EACM,MAAM,KAAK,CAAC,QAAQ,MAAM,EAAE,EAC5C,IAAY,KAAK,IAAI,GAAG,EAAM,KAAK,MAAM,EAAE,SAAS,EAAE,WAAW,CAAC,OAAO,CAAC,EAC1E,IAAW,EAAM,KAAK,MAAM,EAAE,MAAM,EAAU,CAAC,CAAC,KAAK,MAAM,IAAI,OAAO,KAAK,SAAS,EAAE,GAAG,EAAE;AACjG,OAAK,IAAM,KAAQ,EACf,MAAK,QAAQ,KAAK,EAAK;;CAG/B,UAAU;EACN,IAAM,IAAI,UACJ,IAAO,MAAM,MAEb,IAAQ,CAAC,IADC,MAAM,WAAW,CAAC,GAAG,EACX,KAAK,MAAM,KAAK,IAAI,CAAC;AAE/C,SAAO,IAAI,EAAE,GAAG,GAAM,EAAM,KAAK,KAAK,CAAC"}
@@ -0,0 +1,43 @@
1
+ import { $constructor as e } from "./core.js";
2
+ import { jsonStringifyReplacer as t } from "./util.js";
3
+ //#region ../../node_modules/zod/v4/core/errors.js
4
+ var n = (e, n) => {
5
+ e.name = "$ZodError", Object.defineProperty(e, "_zod", {
6
+ value: e._zod,
7
+ enumerable: !1
8
+ }), Object.defineProperty(e, "issues", {
9
+ value: n,
10
+ enumerable: !1
11
+ }), e.message = JSON.stringify(n, t, 2), Object.defineProperty(e, "toString", {
12
+ value: () => e.message,
13
+ enumerable: !1
14
+ });
15
+ }, r = e("$ZodError", n), i = e("$ZodError", n, { Parent: Error });
16
+ function a(e, t = (e) => e.message) {
17
+ let n = {}, r = [];
18
+ 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));
19
+ return {
20
+ formErrors: r,
21
+ fieldErrors: n
22
+ };
23
+ }
24
+ function o(e, t = (e) => e.message) {
25
+ let n = { _errors: [] }, r = (e) => {
26
+ for (let i of e.issues) if (i.code === "invalid_union" && i.errors.length) i.errors.map((e) => r({ issues: e }));
27
+ else if (i.code === "invalid_key") r({ issues: i.issues });
28
+ else if (i.code === "invalid_element") r({ issues: i.issues });
29
+ else if (i.path.length === 0) n._errors.push(t(i));
30
+ else {
31
+ let e = n, r = 0;
32
+ for (; r < i.path.length;) {
33
+ let n = i.path[r];
34
+ r === i.path.length - 1 ? (e[n] = e[n] || { _errors: [] }, e[n]._errors.push(t(i))) : e[n] = e[n] || { _errors: [] }, e = e[n], r++;
35
+ }
36
+ }
37
+ };
38
+ return r(e), n;
39
+ }
40
+ //#endregion
41
+ export { r as $ZodError, i as $ZodRealError, a as flattenError, o as formatError };
42
+
43
+ //# sourceMappingURL=errors.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"errors.js","names":["util.jsonStringifyReplacer"],"sources":["../../../../../../../node_modules/zod/v4/core/errors.js"],"sourcesContent":["import { $constructor } from \"./core.js\";\nimport * as util from \"./util.js\";\nconst initializer = (inst, def) => {\n inst.name = \"$ZodError\";\n Object.defineProperty(inst, \"_zod\", {\n value: inst._zod,\n enumerable: false,\n });\n Object.defineProperty(inst, \"issues\", {\n value: def,\n enumerable: false,\n });\n inst.message = JSON.stringify(def, util.jsonStringifyReplacer, 2);\n Object.defineProperty(inst, \"toString\", {\n value: () => inst.message,\n enumerable: false,\n });\n};\nexport const $ZodError = $constructor(\"$ZodError\", initializer);\nexport const $ZodRealError = $constructor(\"$ZodError\", initializer, { Parent: Error });\nexport function flattenError(error, mapper = (issue) => issue.message) {\n const fieldErrors = {};\n const formErrors = [];\n for (const sub of error.issues) {\n if (sub.path.length > 0) {\n fieldErrors[sub.path[0]] = fieldErrors[sub.path[0]] || [];\n fieldErrors[sub.path[0]].push(mapper(sub));\n }\n else {\n formErrors.push(mapper(sub));\n }\n }\n return { formErrors, fieldErrors };\n}\nexport function formatError(error, mapper = (issue) => issue.message) {\n const fieldErrors = { _errors: [] };\n const processError = (error) => {\n for (const issue of error.issues) {\n if (issue.code === \"invalid_union\" && issue.errors.length) {\n issue.errors.map((issues) => processError({ issues }));\n }\n else if (issue.code === \"invalid_key\") {\n processError({ issues: issue.issues });\n }\n else if (issue.code === \"invalid_element\") {\n processError({ issues: issue.issues });\n }\n else if (issue.path.length === 0) {\n fieldErrors._errors.push(mapper(issue));\n }\n else {\n let curr = fieldErrors;\n let i = 0;\n while (i < issue.path.length) {\n const el = issue.path[i];\n const terminal = i === issue.path.length - 1;\n if (!terminal) {\n curr[el] = curr[el] || { _errors: [] };\n }\n else {\n curr[el] = curr[el] || { _errors: [] };\n curr[el]._errors.push(mapper(issue));\n }\n curr = curr[el];\n i++;\n }\n }\n }\n };\n processError(error);\n return fieldErrors;\n}\nexport function treeifyError(error, mapper = (issue) => issue.message) {\n const result = { errors: [] };\n const processError = (error, path = []) => {\n var _a, _b;\n for (const issue of error.issues) {\n if (issue.code === \"invalid_union\" && issue.errors.length) {\n // regular union error\n issue.errors.map((issues) => processError({ issues }, issue.path));\n }\n else if (issue.code === \"invalid_key\") {\n processError({ issues: issue.issues }, issue.path);\n }\n else if (issue.code === \"invalid_element\") {\n processError({ issues: issue.issues }, issue.path);\n }\n else {\n const fullpath = [...path, ...issue.path];\n if (fullpath.length === 0) {\n result.errors.push(mapper(issue));\n continue;\n }\n let curr = result;\n let i = 0;\n while (i < fullpath.length) {\n const el = fullpath[i];\n const terminal = i === fullpath.length - 1;\n if (typeof el === \"string\") {\n curr.properties ?? (curr.properties = {});\n (_a = curr.properties)[el] ?? (_a[el] = { errors: [] });\n curr = curr.properties[el];\n }\n else {\n curr.items ?? (curr.items = []);\n (_b = curr.items)[el] ?? (_b[el] = { errors: [] });\n curr = curr.items[el];\n }\n if (terminal) {\n curr.errors.push(mapper(issue));\n }\n i++;\n }\n }\n }\n };\n processError(error);\n return result;\n}\n/** Format a ZodError as a human-readable string in the following form.\n *\n * From\n *\n * ```ts\n * ZodError {\n * issues: [\n * {\n * expected: 'string',\n * code: 'invalid_type',\n * path: [ 'username' ],\n * message: 'Invalid input: expected string'\n * },\n * {\n * expected: 'number',\n * code: 'invalid_type',\n * path: [ 'favoriteNumbers', 1 ],\n * message: 'Invalid input: expected number'\n * }\n * ];\n * }\n * ```\n *\n * to\n *\n * ```\n * username\n * ✖ Expected number, received string at \"username\n * favoriteNumbers[0]\n * ✖ Invalid input: expected number\n * ```\n */\nexport function toDotPath(_path) {\n const segs = [];\n const path = _path.map((seg) => (typeof seg === \"object\" ? seg.key : seg));\n for (const seg of path) {\n if (typeof seg === \"number\")\n segs.push(`[${seg}]`);\n else if (typeof seg === \"symbol\")\n segs.push(`[${JSON.stringify(String(seg))}]`);\n else if (/[^\\w$]/.test(seg))\n segs.push(`[${JSON.stringify(seg)}]`);\n else {\n if (segs.length)\n segs.push(\".\");\n segs.push(seg);\n }\n }\n return segs.join(\"\");\n}\nexport function prettifyError(error) {\n const lines = [];\n // sort by path length\n const issues = [...error.issues].sort((a, b) => (a.path ?? []).length - (b.path ?? []).length);\n // Process each issue\n for (const issue of issues) {\n lines.push(`✖ ${issue.message}`);\n if (issue.path?.length)\n lines.push(` → at ${toDotPath(issue.path)}`);\n }\n // Convert Map to formatted string\n return lines.join(\"\\n\");\n}\n"],"x_google_ignoreList":[0],"mappings":";;;AAEA,IAAM,KAAe,GAAM,MAAQ;AAW/B,CAVA,EAAK,OAAO,aACZ,OAAO,eAAe,GAAM,QAAQ;EAChC,OAAO,EAAK;EACZ,YAAY;EACf,CAAC,EACF,OAAO,eAAe,GAAM,UAAU;EAClC,OAAO;EACP,YAA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