twenty-client-sdk 2.30.0 → 2.31.0

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.
@@ -0,0 +1,2490 @@
1
+ //#region ../../node_modules/uuid/dist/esm-browser/regex.js
2
+ var e = /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/i;
3
+ //#endregion
4
+ //#region ../../node_modules/uuid/dist/esm-browser/validate.js
5
+ function t(t) {
6
+ return typeof t == "string" && e.test(t);
7
+ }
8
+ //#endregion
9
+ //#region ../../node_modules/uuid/dist/esm-browser/parse.js
10
+ function n(e) {
11
+ if (!t(e)) throw TypeError("Invalid UUID");
12
+ let n;
13
+ return Uint8Array.of((n = parseInt(e.slice(0, 8), 16)) >>> 24, n >>> 16 & 255, n >>> 8 & 255, n & 255, (n = parseInt(e.slice(9, 13), 16)) >>> 8, n & 255, (n = parseInt(e.slice(14, 18), 16)) >>> 8, n & 255, (n = parseInt(e.slice(19, 23), 16)) >>> 8, n & 255, (n = parseInt(e.slice(24, 36), 16)) / 1099511627776 & 255, n / 4294967296 & 255, n >>> 24 & 255, n >>> 16 & 255, n >>> 8 & 255, n & 255);
14
+ }
15
+ //#endregion
16
+ //#region ../../node_modules/uuid/dist/esm-browser/stringify.js
17
+ var r = [];
18
+ for (let e = 0; e < 256; ++e) r.push((e + 256).toString(16).slice(1));
19
+ function i(e, t = 0) {
20
+ return (r[e[t + 0]] + r[e[t + 1]] + r[e[t + 2]] + r[e[t + 3]] + "-" + r[e[t + 4]] + r[e[t + 5]] + "-" + r[e[t + 6]] + r[e[t + 7]] + "-" + r[e[t + 8]] + r[e[t + 9]] + "-" + r[e[t + 10]] + r[e[t + 11]] + r[e[t + 12]] + r[e[t + 13]] + r[e[t + 14]] + r[e[t + 15]]).toLowerCase();
21
+ }
22
+ //#endregion
23
+ //#region ../../node_modules/uuid/dist/esm-browser/rng.js
24
+ var a, o = new Uint8Array(16);
25
+ function s() {
26
+ if (!a) {
27
+ if (typeof crypto > "u" || !crypto.getRandomValues) throw Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
28
+ a = crypto.getRandomValues.bind(crypto);
29
+ }
30
+ return a(o);
31
+ }
32
+ //#endregion
33
+ //#region ../../node_modules/uuid/dist/esm-browser/v35.js
34
+ function c(e) {
35
+ e = unescape(encodeURIComponent(e));
36
+ let t = new Uint8Array(e.length);
37
+ for (let n = 0; n < e.length; ++n) t[n] = e.charCodeAt(n);
38
+ return t;
39
+ }
40
+ var l = "6ba7b810-9dad-11d1-80b4-00c04fd430c8", u = "6ba7b811-9dad-11d1-80b4-00c04fd430c8";
41
+ function d(e, t, r, a, o, s) {
42
+ let l = typeof r == "string" ? c(r) : r, u = typeof a == "string" ? n(a) : a;
43
+ if (typeof a == "string" && (a = n(a)), a?.length !== 16) throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");
44
+ let d = new Uint8Array(16 + l.length);
45
+ if (d.set(u), d.set(l, u.length), d = t(d), d[6] = d[6] & 15 | e, d[8] = d[8] & 63 | 128, o) {
46
+ if (s ||= 0, s < 0 || s + 16 > o.length) throw RangeError(`UUID byte range ${s}:${s + 15} is out of buffer bounds`);
47
+ for (let e = 0; e < 16; ++e) o[s + e] = d[e];
48
+ return o;
49
+ }
50
+ return i(d);
51
+ }
52
+ var f = { randomUUID: typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto) };
53
+ //#endregion
54
+ //#region ../../node_modules/uuid/dist/esm-browser/v4.js
55
+ function p(e, t, n) {
56
+ if (f.randomUUID && !t && !e) return f.randomUUID();
57
+ e ||= {};
58
+ let r = e.random ?? e.rng?.() ?? s();
59
+ if (r.length < 16) throw Error("Random bytes length must be >= 16");
60
+ if (r[6] = r[6] & 15 | 64, r[8] = r[8] & 63 | 128, t) {
61
+ if (n ||= 0, n < 0 || n + 16 > t.length) throw RangeError(`UUID byte range ${n}:${n + 15} is out of buffer bounds`);
62
+ for (let e = 0; e < 16; ++e) t[n + e] = r[e];
63
+ return t;
64
+ }
65
+ return i(r);
66
+ }
67
+ //#endregion
68
+ //#region ../../node_modules/uuid/dist/esm-browser/sha1.js
69
+ function ee(e, t, n, r) {
70
+ switch (e) {
71
+ case 0: return t & n ^ ~t & r;
72
+ case 1: return t ^ n ^ r;
73
+ case 2: return t & n ^ t & r ^ n & r;
74
+ case 3: return t ^ n ^ r;
75
+ }
76
+ }
77
+ function m(e, t) {
78
+ return e << t | e >>> 32 - t;
79
+ }
80
+ function te(e) {
81
+ let t = [
82
+ 1518500249,
83
+ 1859775393,
84
+ 2400959708,
85
+ 3395469782
86
+ ], n = [
87
+ 1732584193,
88
+ 4023233417,
89
+ 2562383102,
90
+ 271733878,
91
+ 3285377520
92
+ ], r = new Uint8Array(e.length + 1);
93
+ r.set(e), r[e.length] = 128, e = r;
94
+ let i = e.length / 4 + 2, a = Math.ceil(i / 16), o = Array(a);
95
+ for (let t = 0; t < a; ++t) {
96
+ let n = new Uint32Array(16);
97
+ for (let r = 0; r < 16; ++r) n[r] = e[t * 64 + r * 4] << 24 | e[t * 64 + r * 4 + 1] << 16 | e[t * 64 + r * 4 + 2] << 8 | e[t * 64 + r * 4 + 3];
98
+ o[t] = n;
99
+ }
100
+ o[a - 1][14] = (e.length - 1) * 8 / 2 ** 32, o[a - 1][14] = Math.floor(o[a - 1][14]), o[a - 1][15] = (e.length - 1) * 8 & 4294967295;
101
+ for (let e = 0; e < a; ++e) {
102
+ let r = new Uint32Array(80);
103
+ for (let t = 0; t < 16; ++t) r[t] = o[e][t];
104
+ for (let e = 16; e < 80; ++e) r[e] = m(r[e - 3] ^ r[e - 8] ^ r[e - 14] ^ r[e - 16], 1);
105
+ let i = n[0], a = n[1], s = n[2], c = n[3], l = n[4];
106
+ for (let e = 0; e < 80; ++e) {
107
+ let n = Math.floor(e / 20), o = m(i, 5) + ee(n, a, s, c) + l + t[n] + r[e] >>> 0;
108
+ l = c, c = s, s = m(a, 30) >>> 0, a = i, i = o;
109
+ }
110
+ n[0] = n[0] + i >>> 0, n[1] = n[1] + a >>> 0, n[2] = n[2] + s >>> 0, n[3] = n[3] + c >>> 0, n[4] = n[4] + l >>> 0;
111
+ }
112
+ return Uint8Array.of(n[0] >> 24, n[0] >> 16, n[0] >> 8, n[0], n[1] >> 24, n[1] >> 16, n[1] >> 8, n[1], n[2] >> 24, n[2] >> 16, n[2] >> 8, n[2], n[3] >> 24, n[3] >> 16, n[3] >> 8, n[3], n[4] >> 24, n[4] >> 16, n[4] >> 8, n[4]);
113
+ }
114
+ //#endregion
115
+ //#region ../../node_modules/uuid/dist/esm-browser/v5.js
116
+ function ne(e, t, n, r) {
117
+ return d(80, te, e, t, n, r);
118
+ }
119
+ ne.DNS = l, ne.URL = u, Object.freeze({ status: "aborted" });
120
+ function h(e, t, n) {
121
+ function r(n, r) {
122
+ var i;
123
+ Object.defineProperty(n, "_zod", {
124
+ value: n._zod ?? {},
125
+ enumerable: !1
126
+ }), (i = n._zod).traits ?? (i.traits = /* @__PURE__ */ new Set()), n._zod.traits.add(e), t(n, r);
127
+ for (let e in o.prototype) e in n || Object.defineProperty(n, e, { value: o.prototype[e].bind(n) });
128
+ n._zod.constr = o, n._zod.def = r;
129
+ }
130
+ let i = n?.Parent ?? Object;
131
+ class a extends i {}
132
+ Object.defineProperty(a, "name", { value: e });
133
+ function o(e) {
134
+ var t;
135
+ let i = n?.Parent ? new a() : this;
136
+ r(i, e), (t = i._zod).deferred ?? (t.deferred = []);
137
+ for (let e of i._zod.deferred) e();
138
+ return i;
139
+ }
140
+ 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;
141
+ }
142
+ var g = class extends Error {
143
+ constructor() {
144
+ super("Encountered Promise during synchronous parse. Use .parseAsync() instead.");
145
+ }
146
+ }, re = class extends Error {
147
+ constructor(e) {
148
+ super(`Encountered unidirectional transform during encode: ${e}`), this.name = "ZodEncodeError";
149
+ }
150
+ }, _ = {};
151
+ function v(e) {
152
+ return e && Object.assign(_, e), _;
153
+ }
154
+ //#endregion
155
+ //#region ../../node_modules/zod/v4/core/util.js
156
+ function ie(e) {
157
+ let t = Object.values(e).filter((e) => typeof e == "number");
158
+ return Object.entries(e).filter(([e, n]) => t.indexOf(+e) === -1).map(([e, t]) => t);
159
+ }
160
+ function y(e, t) {
161
+ return typeof t == "bigint" ? t.toString() : t;
162
+ }
163
+ function b(e) {
164
+ return { get value() {
165
+ {
166
+ let t = e();
167
+ return Object.defineProperty(this, "value", { value: t }), t;
168
+ }
169
+ throw Error("cached value already set");
170
+ } };
171
+ }
172
+ function ae(e) {
173
+ return e == null;
174
+ }
175
+ function oe(e) {
176
+ let t = +!!e.startsWith("^"), n = e.endsWith("$") ? e.length - 1 : e.length;
177
+ return e.slice(t, n);
178
+ }
179
+ var se = Symbol("evaluating");
180
+ function x(e, t, n) {
181
+ let r;
182
+ Object.defineProperty(e, t, {
183
+ get() {
184
+ if (r !== se) return r === void 0 && (r = se, r = n()), r;
185
+ },
186
+ set(n) {
187
+ Object.defineProperty(e, t, { value: n });
188
+ },
189
+ configurable: !0
190
+ });
191
+ }
192
+ function S(e, t, n) {
193
+ Object.defineProperty(e, t, {
194
+ value: n,
195
+ writable: !0,
196
+ enumerable: !0,
197
+ configurable: !0
198
+ });
199
+ }
200
+ function C(...e) {
201
+ let t = {};
202
+ for (let n of e) Object.assign(t, Object.getOwnPropertyDescriptors(n));
203
+ return Object.defineProperties({}, t);
204
+ }
205
+ function ce(e) {
206
+ return JSON.stringify(e);
207
+ }
208
+ var le = "captureStackTrace" in Error ? Error.captureStackTrace : (...e) => {};
209
+ function w(e) {
210
+ return typeof e == "object" && !!e && !Array.isArray(e);
211
+ }
212
+ var ue = b(() => {
213
+ if (typeof navigator < "u" && navigator?.userAgent?.includes("Cloudflare")) return !1;
214
+ try {
215
+ return Function(""), !0;
216
+ } catch {
217
+ return !1;
218
+ }
219
+ });
220
+ function T(e) {
221
+ if (w(e) === !1) return !1;
222
+ let t = e.constructor;
223
+ if (t === void 0) return !0;
224
+ let n = t.prototype;
225
+ return !(w(n) === !1 || Object.prototype.hasOwnProperty.call(n, "isPrototypeOf") === !1);
226
+ }
227
+ function de(e) {
228
+ return T(e) ? { ...e } : Array.isArray(e) ? [...e] : e;
229
+ }
230
+ var fe = new Set([
231
+ "string",
232
+ "number",
233
+ "symbol"
234
+ ]);
235
+ function E(e) {
236
+ return e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
237
+ }
238
+ function D(e, t, n) {
239
+ let r = new e._zod.constr(t ?? e._zod.def);
240
+ return (!t || n?.parent) && (r._zod.parent = e), r;
241
+ }
242
+ function O(e) {
243
+ let t = e;
244
+ if (!t) return {};
245
+ if (typeof t == "string") return { error: () => t };
246
+ if (t?.message !== void 0) {
247
+ if (t?.error !== void 0) throw Error("Cannot specify both `message` and `error` params");
248
+ t.error = t.message;
249
+ }
250
+ return delete t.message, typeof t.error == "string" ? {
251
+ ...t,
252
+ error: () => t.error
253
+ } : t;
254
+ }
255
+ function pe(e) {
256
+ return Object.keys(e).filter((t) => e[t]._zod.optin === "optional" && e[t]._zod.optout === "optional");
257
+ }
258
+ -Number.MAX_VALUE, Number.MAX_VALUE;
259
+ function me(e, t) {
260
+ let n = e._zod.def;
261
+ return D(e, C(e._zod.def, {
262
+ get shape() {
263
+ let e = {};
264
+ for (let r in t) {
265
+ if (!(r in n.shape)) throw Error(`Unrecognized key: "${r}"`);
266
+ t[r] && (e[r] = n.shape[r]);
267
+ }
268
+ return S(this, "shape", e), e;
269
+ },
270
+ checks: []
271
+ }));
272
+ }
273
+ function he(e, t) {
274
+ let n = e._zod.def;
275
+ return D(e, C(e._zod.def, {
276
+ get shape() {
277
+ let r = { ...e._zod.def.shape };
278
+ for (let e in t) {
279
+ if (!(e in n.shape)) throw Error(`Unrecognized key: "${e}"`);
280
+ t[e] && delete r[e];
281
+ }
282
+ return S(this, "shape", r), r;
283
+ },
284
+ checks: []
285
+ }));
286
+ }
287
+ function ge(e, t) {
288
+ if (!T(t)) throw Error("Invalid input to extend: expected a plain object");
289
+ let n = e._zod.def.checks;
290
+ if (n && n.length > 0) throw Error("Object schemas containing refinements cannot be extended. Use `.safeExtend()` instead.");
291
+ return D(e, C(e._zod.def, {
292
+ get shape() {
293
+ let n = {
294
+ ...e._zod.def.shape,
295
+ ...t
296
+ };
297
+ return S(this, "shape", n), n;
298
+ },
299
+ checks: []
300
+ }));
301
+ }
302
+ function _e(e, t) {
303
+ if (!T(t)) throw Error("Invalid input to safeExtend: expected a plain object");
304
+ return D(e, {
305
+ ...e._zod.def,
306
+ get shape() {
307
+ let n = {
308
+ ...e._zod.def.shape,
309
+ ...t
310
+ };
311
+ return S(this, "shape", n), n;
312
+ },
313
+ checks: e._zod.def.checks
314
+ });
315
+ }
316
+ function ve(e, t) {
317
+ return D(e, C(e._zod.def, {
318
+ get shape() {
319
+ let n = {
320
+ ...e._zod.def.shape,
321
+ ...t._zod.def.shape
322
+ };
323
+ return S(this, "shape", n), n;
324
+ },
325
+ get catchall() {
326
+ return t._zod.def.catchall;
327
+ },
328
+ checks: []
329
+ }));
330
+ }
331
+ function ye(e, t, n) {
332
+ return D(t, C(t._zod.def, {
333
+ get shape() {
334
+ let r = t._zod.def.shape, i = { ...r };
335
+ if (n) for (let t in n) {
336
+ if (!(t in r)) throw Error(`Unrecognized key: "${t}"`);
337
+ n[t] && (i[t] = e ? new e({
338
+ type: "optional",
339
+ innerType: r[t]
340
+ }) : r[t]);
341
+ }
342
+ else for (let t in r) i[t] = e ? new e({
343
+ type: "optional",
344
+ innerType: r[t]
345
+ }) : r[t];
346
+ return S(this, "shape", i), i;
347
+ },
348
+ checks: []
349
+ }));
350
+ }
351
+ function be(e, t, n) {
352
+ return D(t, C(t._zod.def, {
353
+ get shape() {
354
+ let r = t._zod.def.shape, i = { ...r };
355
+ if (n) for (let t in n) {
356
+ if (!(t in i)) throw Error(`Unrecognized key: "${t}"`);
357
+ n[t] && (i[t] = new e({
358
+ type: "nonoptional",
359
+ innerType: r[t]
360
+ }));
361
+ }
362
+ else for (let t in r) i[t] = new e({
363
+ type: "nonoptional",
364
+ innerType: r[t]
365
+ });
366
+ return S(this, "shape", i), i;
367
+ },
368
+ checks: []
369
+ }));
370
+ }
371
+ function k(e, t = 0) {
372
+ if (e.aborted === !0) return !0;
373
+ for (let n = t; n < e.issues.length; n++) if (e.issues[n]?.continue !== !0) return !0;
374
+ return !1;
375
+ }
376
+ function xe(e, t) {
377
+ return t.map((t) => {
378
+ var n;
379
+ return (n = t).path ?? (n.path = []), t.path.unshift(e), t;
380
+ });
381
+ }
382
+ function A(e) {
383
+ return typeof e == "string" ? e : e?.message;
384
+ }
385
+ function j(e, t, n) {
386
+ let r = {
387
+ ...e,
388
+ path: e.path ?? []
389
+ };
390
+ return e.message || (r.message = A(e.inst?._zod.def?.error?.(e)) ?? A(t?.error?.(e)) ?? A(n.customError?.(e)) ?? A(n.localeError?.(e)) ?? "Invalid input"), delete r.inst, delete r.continue, t?.reportInput || delete r.input, r;
391
+ }
392
+ function Se(e) {
393
+ return Array.isArray(e) ? "array" : typeof e == "string" ? "string" : "unknown";
394
+ }
395
+ function M(...e) {
396
+ let [t, n, r] = e;
397
+ return typeof t == "string" ? {
398
+ message: t,
399
+ code: "custom",
400
+ input: n,
401
+ inst: r
402
+ } : { ...t };
403
+ }
404
+ //#endregion
405
+ //#region ../../node_modules/zod/v4/core/errors.js
406
+ var Ce = (e, t) => {
407
+ e.name = "$ZodError", Object.defineProperty(e, "_zod", {
408
+ value: e._zod,
409
+ enumerable: !1
410
+ }), Object.defineProperty(e, "issues", {
411
+ value: t,
412
+ enumerable: !1
413
+ }), e.message = JSON.stringify(t, y, 2), Object.defineProperty(e, "toString", {
414
+ value: () => e.message,
415
+ enumerable: !1
416
+ });
417
+ }, we = h("$ZodError", Ce), Te = h("$ZodError", Ce, { Parent: Error });
418
+ function Ee(e, t = (e) => e.message) {
419
+ let n = {}, r = [];
420
+ 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));
421
+ return {
422
+ formErrors: r,
423
+ fieldErrors: n
424
+ };
425
+ }
426
+ function De(e, t) {
427
+ let n = t || function(e) {
428
+ return e.message;
429
+ }, r = { _errors: [] }, i = (e) => {
430
+ for (let t of e.issues) if (t.code === "invalid_union" && t.errors.length) t.errors.map((e) => i({ issues: e }));
431
+ else if (t.code === "invalid_key") i({ issues: t.issues });
432
+ else if (t.code === "invalid_element") i({ issues: t.issues });
433
+ else if (t.path.length === 0) r._errors.push(n(t));
434
+ else {
435
+ let e = r, i = 0;
436
+ for (; i < t.path.length;) {
437
+ let r = t.path[i];
438
+ i === t.path.length - 1 ? (e[r] = e[r] || { _errors: [] }, e[r]._errors.push(n(t))) : e[r] = e[r] || { _errors: [] }, e = e[r], i++;
439
+ }
440
+ }
441
+ };
442
+ return i(e), r;
443
+ }
444
+ //#endregion
445
+ //#region ../../node_modules/zod/v4/core/parse.js
446
+ var N = (e) => (t, n, r, i) => {
447
+ let a = r ? Object.assign(r, { async: !1 }) : { async: !1 }, o = t._zod.run({
448
+ value: n,
449
+ issues: []
450
+ }, a);
451
+ if (o instanceof Promise) throw new g();
452
+ if (o.issues.length) {
453
+ let t = new (i?.Err ?? e)(o.issues.map((e) => j(e, a, v())));
454
+ throw le(t, i?.callee), t;
455
+ }
456
+ return o.value;
457
+ }, P = (e) => async (t, n, r, i) => {
458
+ let a = r ? Object.assign(r, { async: !0 }) : { async: !0 }, o = t._zod.run({
459
+ value: n,
460
+ issues: []
461
+ }, a);
462
+ if (o instanceof Promise && (o = await o), o.issues.length) {
463
+ let t = new (i?.Err ?? e)(o.issues.map((e) => j(e, a, v())));
464
+ throw le(t, i?.callee), t;
465
+ }
466
+ return o.value;
467
+ }, F = (e) => (t, n, r) => {
468
+ let i = r ? {
469
+ ...r,
470
+ async: !1
471
+ } : { async: !1 }, a = t._zod.run({
472
+ value: n,
473
+ issues: []
474
+ }, i);
475
+ if (a instanceof Promise) throw new g();
476
+ return a.issues.length ? {
477
+ success: !1,
478
+ error: new (e ?? we)(a.issues.map((e) => j(e, i, v())))
479
+ } : {
480
+ success: !0,
481
+ data: a.value
482
+ };
483
+ }, Oe = /* @__PURE__*/ F(Te), I = (e) => async (t, n, r) => {
484
+ let i = r ? Object.assign(r, { async: !0 }) : { async: !0 }, a = t._zod.run({
485
+ value: n,
486
+ issues: []
487
+ }, i);
488
+ return a instanceof Promise && (a = await a), a.issues.length ? {
489
+ success: !1,
490
+ error: new e(a.issues.map((e) => j(e, i, v())))
491
+ } : {
492
+ success: !0,
493
+ data: a.value
494
+ };
495
+ }, ke = /* @__PURE__*/ I(Te), Ae = (e) => (t, n, r) => {
496
+ let i = r ? Object.assign(r, { direction: "backward" }) : { direction: "backward" };
497
+ return N(e)(t, n, i);
498
+ }, je = (e) => (t, n, r) => N(e)(t, n, r), Me = (e) => async (t, n, r) => {
499
+ let i = r ? Object.assign(r, { direction: "backward" }) : { direction: "backward" };
500
+ return P(e)(t, n, i);
501
+ }, Ne = (e) => async (t, n, r) => P(e)(t, n, r), Pe = (e) => (t, n, r) => {
502
+ let i = r ? Object.assign(r, { direction: "backward" }) : { direction: "backward" };
503
+ return F(e)(t, n, i);
504
+ }, Fe = (e) => (t, n, r) => F(e)(t, n, r), Ie = (e) => async (t, n, r) => {
505
+ let i = r ? Object.assign(r, { direction: "backward" }) : { direction: "backward" };
506
+ return I(e)(t, n, i);
507
+ }, Le = (e) => async (t, n, r) => I(e)(t, n, r), Re = /^[cC][^\s-]{8,}$/, ze = /^[0-9a-z]+$/, Be = /^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/, Ve = /^[0-9a-vA-V]{20}$/, He = /^[A-Za-z0-9]{27}$/, Ue = /^[a-zA-Z0-9_-]{21}$/, We = /^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/, Ge = /^([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})$/, Ke = (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)$/, qe = /^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/, Je = "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";
508
+ function Ye() {
509
+ return new RegExp(Je, "u");
510
+ }
511
+ var Xe = /^(?:(?: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])$/, Ze = /^(([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}|:))$/, Qe = /^((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])$/, $e = /^(([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])$/, et = /^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/, tt = /^[A-Za-z0-9_-]*$/, nt = /^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/, rt = /^\+(?:[0-9]){6,14}[0-9]$/, it = "(?:(?:\\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])))", at = /*@__PURE__*/ RegExp(`^${it}$`);
512
+ function ot(e) {
513
+ let t = "(?:[01]\\d|2[0-3]):[0-5]\\d";
514
+ 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+)?)?`;
515
+ }
516
+ function st(e) {
517
+ return RegExp(`^${ot(e)}$`);
518
+ }
519
+ function ct(e) {
520
+ let t = ot({ precision: e.precision }), n = ["Z"];
521
+ e.local && n.push(""), e.offset && n.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");
522
+ let r = `${t}(?:${n.join("|")})`;
523
+ return RegExp(`^${it}T(?:${r})$`);
524
+ }
525
+ var lt = (e) => {
526
+ let t = e ? `[\\s\\S]{${e?.minimum ?? 0},${e?.maximum ?? ""}}` : "[\\s\\S]*";
527
+ return RegExp(`^${t}$`);
528
+ }, ut = /^[^A-Z]*$/, dt = /^[^a-z]*$/, L = /*@__PURE__*/ h("$ZodCheck", (e, t) => {
529
+ var n;
530
+ e._zod ??= {}, e._zod.def = t, (n = e._zod).onattach ?? (n.onattach = []);
531
+ }), ft = /*@__PURE__*/ h("$ZodCheckMaxLength", (e, t) => {
532
+ var n;
533
+ L.init(e, t), (n = e._zod.def).when ?? (n.when = (e) => {
534
+ let t = e.value;
535
+ return !ae(t) && t.length !== void 0;
536
+ }), e._zod.onattach.push((e) => {
537
+ let n = e._zod.bag.maximum ?? Infinity;
538
+ t.maximum < n && (e._zod.bag.maximum = t.maximum);
539
+ }), e._zod.check = (n) => {
540
+ let r = n.value;
541
+ if (r.length <= t.maximum) return;
542
+ let i = Se(r);
543
+ n.issues.push({
544
+ origin: i,
545
+ code: "too_big",
546
+ maximum: t.maximum,
547
+ inclusive: !0,
548
+ input: r,
549
+ inst: e,
550
+ continue: !t.abort
551
+ });
552
+ };
553
+ }), pt = /*@__PURE__*/ h("$ZodCheckMinLength", (e, t) => {
554
+ var n;
555
+ L.init(e, t), (n = e._zod.def).when ?? (n.when = (e) => {
556
+ let t = e.value;
557
+ return !ae(t) && t.length !== void 0;
558
+ }), e._zod.onattach.push((e) => {
559
+ let n = e._zod.bag.minimum ?? -Infinity;
560
+ t.minimum > n && (e._zod.bag.minimum = t.minimum);
561
+ }), e._zod.check = (n) => {
562
+ let r = n.value;
563
+ if (r.length >= t.minimum) return;
564
+ let i = Se(r);
565
+ n.issues.push({
566
+ origin: i,
567
+ code: "too_small",
568
+ minimum: t.minimum,
569
+ inclusive: !0,
570
+ input: r,
571
+ inst: e,
572
+ continue: !t.abort
573
+ });
574
+ };
575
+ }), mt = /*@__PURE__*/ h("$ZodCheckLengthEquals", (e, t) => {
576
+ var n;
577
+ L.init(e, t), (n = e._zod.def).when ?? (n.when = (e) => {
578
+ let t = e.value;
579
+ return !ae(t) && t.length !== void 0;
580
+ }), e._zod.onattach.push((e) => {
581
+ let n = e._zod.bag;
582
+ n.minimum = t.length, n.maximum = t.length, n.length = t.length;
583
+ }), e._zod.check = (n) => {
584
+ let r = n.value, i = r.length;
585
+ if (i === t.length) return;
586
+ let a = Se(r), o = i > t.length;
587
+ n.issues.push({
588
+ origin: a,
589
+ ...o ? {
590
+ code: "too_big",
591
+ maximum: t.length
592
+ } : {
593
+ code: "too_small",
594
+ minimum: t.length
595
+ },
596
+ inclusive: !0,
597
+ exact: !0,
598
+ input: n.value,
599
+ inst: e,
600
+ continue: !t.abort
601
+ });
602
+ };
603
+ }), R = /*@__PURE__*/ h("$ZodCheckStringFormat", (e, t) => {
604
+ var n, r;
605
+ L.init(e, t), e._zod.onattach.push((e) => {
606
+ let n = e._zod.bag;
607
+ n.format = t.format, t.pattern && (n.patterns ??= /* @__PURE__ */ new Set(), n.patterns.add(t.pattern));
608
+ }), t.pattern ? (n = e._zod).check ?? (n.check = (n) => {
609
+ t.pattern.lastIndex = 0, !t.pattern.test(n.value) && n.issues.push({
610
+ origin: "string",
611
+ code: "invalid_format",
612
+ format: t.format,
613
+ input: n.value,
614
+ ...t.pattern ? { pattern: t.pattern.toString() } : {},
615
+ inst: e,
616
+ continue: !t.abort
617
+ });
618
+ }) : (r = e._zod).check ?? (r.check = () => {});
619
+ }), ht = /*@__PURE__*/ h("$ZodCheckRegex", (e, t) => {
620
+ R.init(e, t), e._zod.check = (n) => {
621
+ t.pattern.lastIndex = 0, !t.pattern.test(n.value) && n.issues.push({
622
+ origin: "string",
623
+ code: "invalid_format",
624
+ format: "regex",
625
+ input: n.value,
626
+ pattern: t.pattern.toString(),
627
+ inst: e,
628
+ continue: !t.abort
629
+ });
630
+ };
631
+ }), gt = /*@__PURE__*/ h("$ZodCheckLowerCase", (e, t) => {
632
+ t.pattern ??= ut, R.init(e, t);
633
+ }), _t = /*@__PURE__*/ h("$ZodCheckUpperCase", (e, t) => {
634
+ t.pattern ??= dt, R.init(e, t);
635
+ }), vt = /*@__PURE__*/ h("$ZodCheckIncludes", (e, t) => {
636
+ L.init(e, t);
637
+ let n = E(t.includes), r = new RegExp(typeof t.position == "number" ? `^.{${t.position}}${n}` : n);
638
+ t.pattern = r, e._zod.onattach.push((e) => {
639
+ let t = e._zod.bag;
640
+ t.patterns ??= /* @__PURE__ */ new Set(), t.patterns.add(r);
641
+ }), e._zod.check = (n) => {
642
+ n.value.includes(t.includes, t.position) || n.issues.push({
643
+ origin: "string",
644
+ code: "invalid_format",
645
+ format: "includes",
646
+ includes: t.includes,
647
+ input: n.value,
648
+ inst: e,
649
+ continue: !t.abort
650
+ });
651
+ };
652
+ }), yt = /*@__PURE__*/ h("$ZodCheckStartsWith", (e, t) => {
653
+ L.init(e, t);
654
+ let n = RegExp(`^${E(t.prefix)}.*`);
655
+ t.pattern ??= n, e._zod.onattach.push((e) => {
656
+ let t = e._zod.bag;
657
+ t.patterns ??= /* @__PURE__ */ new Set(), t.patterns.add(n);
658
+ }), e._zod.check = (n) => {
659
+ n.value.startsWith(t.prefix) || n.issues.push({
660
+ origin: "string",
661
+ code: "invalid_format",
662
+ format: "starts_with",
663
+ prefix: t.prefix,
664
+ input: n.value,
665
+ inst: e,
666
+ continue: !t.abort
667
+ });
668
+ };
669
+ }), bt = /*@__PURE__*/ h("$ZodCheckEndsWith", (e, t) => {
670
+ L.init(e, t);
671
+ let n = RegExp(`.*${E(t.suffix)}$`);
672
+ t.pattern ??= n, e._zod.onattach.push((e) => {
673
+ let t = e._zod.bag;
674
+ t.patterns ??= /* @__PURE__ */ new Set(), t.patterns.add(n);
675
+ }), e._zod.check = (n) => {
676
+ n.value.endsWith(t.suffix) || n.issues.push({
677
+ origin: "string",
678
+ code: "invalid_format",
679
+ format: "ends_with",
680
+ suffix: t.suffix,
681
+ input: n.value,
682
+ inst: e,
683
+ continue: !t.abort
684
+ });
685
+ };
686
+ }), xt = /*@__PURE__*/ h("$ZodCheckOverwrite", (e, t) => {
687
+ L.init(e, t), e._zod.check = (e) => {
688
+ e.value = t.tx(e.value);
689
+ };
690
+ }), St = class {
691
+ constructor(e = []) {
692
+ this.content = [], this.indent = 0, this && (this.args = e);
693
+ }
694
+ indented(e) {
695
+ this.indent += 1, e(this), --this.indent;
696
+ }
697
+ write(e) {
698
+ if (typeof e == "function") {
699
+ e(this, { execution: "sync" }), e(this, { execution: "async" });
700
+ return;
701
+ }
702
+ 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);
703
+ for (let e of r) this.content.push(e);
704
+ }
705
+ compile() {
706
+ let e = Function, t = this?.args, n = [...(this?.content ?? [""]).map((e) => ` ${e}`)];
707
+ return new e(...t, n.join("\n"));
708
+ }
709
+ }, Ct = {
710
+ major: 4,
711
+ minor: 1,
712
+ patch: 11
713
+ }, z = /*@__PURE__*/ h("$ZodType", (e, t) => {
714
+ var n;
715
+ e ??= {}, e._zod.def = t, e._zod.bag = e._zod.bag || {}, e._zod.version = Ct;
716
+ let r = [...e._zod.def.checks ?? []];
717
+ e._zod.traits.has("$ZodCheck") && r.unshift(e);
718
+ for (let t of r) for (let n of t._zod.onattach) n(e);
719
+ if (r.length === 0) (n = e._zod).deferred ?? (n.deferred = []), e._zod.deferred?.push(() => {
720
+ e._zod.run = e._zod.parse;
721
+ });
722
+ else {
723
+ let t = (e, t, n) => {
724
+ let r = k(e), i;
725
+ for (let a of t) {
726
+ if (a._zod.def.when) {
727
+ if (!a._zod.def.when(e)) continue;
728
+ } else if (r) continue;
729
+ let t = e.issues.length, o = a._zod.check(e);
730
+ if (o instanceof Promise && n?.async === !1) throw new g();
731
+ if (i || o instanceof Promise) i = (i ?? Promise.resolve()).then(async () => {
732
+ await o, e.issues.length !== t && (r ||= k(e, t));
733
+ });
734
+ else {
735
+ if (e.issues.length === t) continue;
736
+ r ||= k(e, t);
737
+ }
738
+ }
739
+ return i ? i.then(() => e) : e;
740
+ }, n = (n, i, a) => {
741
+ if (k(n)) return n.aborted = !0, n;
742
+ let o = t(i, r, a);
743
+ if (o instanceof Promise) {
744
+ if (a.async === !1) throw new g();
745
+ return o.then((t) => e._zod.parse(t, a));
746
+ }
747
+ return e._zod.parse(o, a);
748
+ };
749
+ e._zod.run = (i, a) => {
750
+ if (a.skipChecks) return e._zod.parse(i, a);
751
+ if (a.direction === "backward") {
752
+ let t = e._zod.parse({
753
+ value: i.value,
754
+ issues: []
755
+ }, {
756
+ ...a,
757
+ skipChecks: !0
758
+ });
759
+ return t instanceof Promise ? t.then((e) => n(e, i, a)) : n(t, i, a);
760
+ }
761
+ let o = e._zod.parse(i, a);
762
+ if (o instanceof Promise) {
763
+ if (a.async === !1) throw new g();
764
+ return o.then((e) => t(e, r, a));
765
+ }
766
+ return t(o, r, a);
767
+ };
768
+ }
769
+ e["~standard"] = {
770
+ validate: (t) => {
771
+ try {
772
+ let n = Oe(e, t);
773
+ return n.success ? { value: n.data } : { issues: n.error?.issues };
774
+ } catch {
775
+ return ke(e, t).then((e) => e.success ? { value: e.data } : { issues: e.error?.issues });
776
+ }
777
+ },
778
+ vendor: "zod",
779
+ version: 1
780
+ };
781
+ }), B = /*@__PURE__*/ h("$ZodString", (e, t) => {
782
+ z.init(e, t), e._zod.pattern = [...e?._zod.bag?.patterns ?? []].pop() ?? lt(e._zod.bag), e._zod.parse = (n, r) => {
783
+ if (t.coerce) try {
784
+ n.value = String(n.value);
785
+ } catch {}
786
+ return typeof n.value == "string" || n.issues.push({
787
+ expected: "string",
788
+ code: "invalid_type",
789
+ input: n.value,
790
+ inst: e
791
+ }), n;
792
+ };
793
+ }), V = /*@__PURE__*/ h("$ZodStringFormat", (e, t) => {
794
+ R.init(e, t), B.init(e, t);
795
+ }), wt = /*@__PURE__*/ h("$ZodGUID", (e, t) => {
796
+ t.pattern ??= Ge, V.init(e, t);
797
+ }), Tt = /*@__PURE__*/ h("$ZodUUID", (e, t) => {
798
+ if (t.version) {
799
+ let e = {
800
+ v1: 1,
801
+ v2: 2,
802
+ v3: 3,
803
+ v4: 4,
804
+ v5: 5,
805
+ v6: 6,
806
+ v7: 7,
807
+ v8: 8
808
+ }[t.version];
809
+ if (e === void 0) throw Error(`Invalid UUID version: "${t.version}"`);
810
+ t.pattern ??= Ke(e);
811
+ } else t.pattern ??= Ke();
812
+ V.init(e, t);
813
+ }), Et = /*@__PURE__*/ h("$ZodEmail", (e, t) => {
814
+ t.pattern ??= qe, V.init(e, t);
815
+ }), Dt = /*@__PURE__*/ h("$ZodURL", (e, t) => {
816
+ V.init(e, t), e._zod.check = (n) => {
817
+ try {
818
+ let r = n.value.trim(), i = new URL(r);
819
+ t.hostname && (t.hostname.lastIndex = 0, t.hostname.test(i.hostname) || n.issues.push({
820
+ code: "invalid_format",
821
+ format: "url",
822
+ note: "Invalid hostname",
823
+ pattern: nt.source,
824
+ input: n.value,
825
+ inst: e,
826
+ continue: !t.abort
827
+ })), t.protocol && (t.protocol.lastIndex = 0, t.protocol.test(i.protocol.endsWith(":") ? i.protocol.slice(0, -1) : i.protocol) || n.issues.push({
828
+ code: "invalid_format",
829
+ format: "url",
830
+ note: "Invalid protocol",
831
+ pattern: t.protocol.source,
832
+ input: n.value,
833
+ inst: e,
834
+ continue: !t.abort
835
+ })), t.normalize ? n.value = i.href : n.value = r;
836
+ return;
837
+ } catch {
838
+ n.issues.push({
839
+ code: "invalid_format",
840
+ format: "url",
841
+ input: n.value,
842
+ inst: e,
843
+ continue: !t.abort
844
+ });
845
+ }
846
+ };
847
+ }), Ot = /*@__PURE__*/ h("$ZodEmoji", (e, t) => {
848
+ t.pattern ??= Ye(), V.init(e, t);
849
+ }), kt = /*@__PURE__*/ h("$ZodNanoID", (e, t) => {
850
+ t.pattern ??= Ue, V.init(e, t);
851
+ }), At = /*@__PURE__*/ h("$ZodCUID", (e, t) => {
852
+ t.pattern ??= Re, V.init(e, t);
853
+ }), jt = /*@__PURE__*/ h("$ZodCUID2", (e, t) => {
854
+ t.pattern ??= ze, V.init(e, t);
855
+ }), Mt = /*@__PURE__*/ h("$ZodULID", (e, t) => {
856
+ t.pattern ??= Be, V.init(e, t);
857
+ }), Nt = /*@__PURE__*/ h("$ZodXID", (e, t) => {
858
+ t.pattern ??= Ve, V.init(e, t);
859
+ }), Pt = /*@__PURE__*/ h("$ZodKSUID", (e, t) => {
860
+ t.pattern ??= He, V.init(e, t);
861
+ }), Ft = /*@__PURE__*/ h("$ZodISODateTime", (e, t) => {
862
+ t.pattern ??= ct(t), V.init(e, t);
863
+ }), It = /*@__PURE__*/ h("$ZodISODate", (e, t) => {
864
+ t.pattern ??= at, V.init(e, t);
865
+ }), Lt = /*@__PURE__*/ h("$ZodISOTime", (e, t) => {
866
+ t.pattern ??= st(t), V.init(e, t);
867
+ }), Rt = /*@__PURE__*/ h("$ZodISODuration", (e, t) => {
868
+ t.pattern ??= We, V.init(e, t);
869
+ }), zt = /*@__PURE__*/ h("$ZodIPv4", (e, t) => {
870
+ t.pattern ??= Xe, V.init(e, t), e._zod.onattach.push((e) => {
871
+ let t = e._zod.bag;
872
+ t.format = "ipv4";
873
+ });
874
+ }), Bt = /*@__PURE__*/ h("$ZodIPv6", (e, t) => {
875
+ t.pattern ??= Ze, V.init(e, t), e._zod.onattach.push((e) => {
876
+ let t = e._zod.bag;
877
+ t.format = "ipv6";
878
+ }), e._zod.check = (n) => {
879
+ try {
880
+ new URL(`http://[${n.value}]`);
881
+ } catch {
882
+ n.issues.push({
883
+ code: "invalid_format",
884
+ format: "ipv6",
885
+ input: n.value,
886
+ inst: e,
887
+ continue: !t.abort
888
+ });
889
+ }
890
+ };
891
+ }), Vt = /*@__PURE__*/ h("$ZodCIDRv4", (e, t) => {
892
+ t.pattern ??= Qe, V.init(e, t);
893
+ }), Ht = /*@__PURE__*/ h("$ZodCIDRv6", (e, t) => {
894
+ t.pattern ??= $e, V.init(e, t), e._zod.check = (n) => {
895
+ let r = n.value.split("/");
896
+ try {
897
+ if (r.length !== 2) throw Error();
898
+ let [e, t] = r;
899
+ if (!t) throw Error();
900
+ let n = Number(t);
901
+ if (`${n}` !== t || n < 0 || n > 128) throw Error();
902
+ new URL(`http://[${e}]`);
903
+ } catch {
904
+ n.issues.push({
905
+ code: "invalid_format",
906
+ format: "cidrv6",
907
+ input: n.value,
908
+ inst: e,
909
+ continue: !t.abort
910
+ });
911
+ }
912
+ };
913
+ });
914
+ function Ut(e) {
915
+ if (e === "") return !0;
916
+ if (e.length % 4 != 0) return !1;
917
+ try {
918
+ return atob(e), !0;
919
+ } catch {
920
+ return !1;
921
+ }
922
+ }
923
+ var Wt = /*@__PURE__*/ h("$ZodBase64", (e, t) => {
924
+ t.pattern ??= et, V.init(e, t), e._zod.onattach.push((e) => {
925
+ e._zod.bag.contentEncoding = "base64";
926
+ }), e._zod.check = (n) => {
927
+ Ut(n.value) || n.issues.push({
928
+ code: "invalid_format",
929
+ format: "base64",
930
+ input: n.value,
931
+ inst: e,
932
+ continue: !t.abort
933
+ });
934
+ };
935
+ });
936
+ function Gt(e) {
937
+ if (!tt.test(e)) return !1;
938
+ let t = e.replace(/[-_]/g, (e) => e === "-" ? "+" : "/");
939
+ return Ut(t.padEnd(Math.ceil(t.length / 4) * 4, "="));
940
+ }
941
+ var Kt = /*@__PURE__*/ h("$ZodBase64URL", (e, t) => {
942
+ t.pattern ??= tt, V.init(e, t), e._zod.onattach.push((e) => {
943
+ e._zod.bag.contentEncoding = "base64url";
944
+ }), e._zod.check = (n) => {
945
+ Gt(n.value) || n.issues.push({
946
+ code: "invalid_format",
947
+ format: "base64url",
948
+ input: n.value,
949
+ inst: e,
950
+ continue: !t.abort
951
+ });
952
+ };
953
+ }), qt = /*@__PURE__*/ h("$ZodE164", (e, t) => {
954
+ t.pattern ??= rt, V.init(e, t);
955
+ });
956
+ function Jt(e, t = null) {
957
+ try {
958
+ let n = e.split(".");
959
+ if (n.length !== 3) return !1;
960
+ let [r] = n;
961
+ if (!r) return !1;
962
+ let i = JSON.parse(atob(r));
963
+ return !("typ" in i && i?.typ !== "JWT" || !i.alg || t && (!("alg" in i) || i.alg !== t));
964
+ } catch {
965
+ return !1;
966
+ }
967
+ }
968
+ var Yt = /*@__PURE__*/ h("$ZodJWT", (e, t) => {
969
+ V.init(e, t), e._zod.check = (n) => {
970
+ Jt(n.value, t.alg) || n.issues.push({
971
+ code: "invalid_format",
972
+ format: "jwt",
973
+ input: n.value,
974
+ inst: e,
975
+ continue: !t.abort
976
+ });
977
+ };
978
+ }), Xt = /*@__PURE__*/ h("$ZodUnknown", (e, t) => {
979
+ z.init(e, t), e._zod.parse = (e) => e;
980
+ }), Zt = /*@__PURE__*/ h("$ZodNever", (e, t) => {
981
+ z.init(e, t), e._zod.parse = (t, n) => (t.issues.push({
982
+ expected: "never",
983
+ code: "invalid_type",
984
+ input: t.value,
985
+ inst: e
986
+ }), t);
987
+ });
988
+ function Qt(e, t, n) {
989
+ e.issues.length && t.issues.push(...xe(n, e.issues)), t.value[n] = e.value;
990
+ }
991
+ var $t = /*@__PURE__*/ h("$ZodArray", (e, t) => {
992
+ z.init(e, t), e._zod.parse = (n, r) => {
993
+ let i = n.value;
994
+ if (!Array.isArray(i)) return n.issues.push({
995
+ expected: "array",
996
+ code: "invalid_type",
997
+ input: i,
998
+ inst: e
999
+ }), n;
1000
+ n.value = Array(i.length);
1001
+ let a = [];
1002
+ for (let e = 0; e < i.length; e++) {
1003
+ let o = i[e], s = t.element._zod.run({
1004
+ value: o,
1005
+ issues: []
1006
+ }, r);
1007
+ s instanceof Promise ? a.push(s.then((t) => Qt(t, n, e))) : Qt(s, n, e);
1008
+ }
1009
+ return a.length ? Promise.all(a).then(() => n) : n;
1010
+ };
1011
+ });
1012
+ function H(e, t, n, r) {
1013
+ e.issues.length && t.issues.push(...xe(n, e.issues)), e.value === void 0 ? n in r && (t.value[n] = void 0) : t.value[n] = e.value;
1014
+ }
1015
+ function en(e) {
1016
+ let t = Object.keys(e.shape);
1017
+ for (let n of t) if (!e.shape?.[n]?._zod?.traits?.has("$ZodType")) throw Error(`Invalid element at key "${n}": expected a Zod schema`);
1018
+ let n = pe(e.shape);
1019
+ return {
1020
+ ...e,
1021
+ keys: t,
1022
+ keySet: new Set(t),
1023
+ numKeys: t.length,
1024
+ optionalKeys: new Set(n)
1025
+ };
1026
+ }
1027
+ function tn(e, t, n, r, i, a) {
1028
+ let o = [], s = i.keySet, c = i.catchall._zod, l = c.def.type;
1029
+ for (let i of Object.keys(t)) {
1030
+ if (s.has(i)) continue;
1031
+ if (l === "never") {
1032
+ o.push(i);
1033
+ continue;
1034
+ }
1035
+ let a = c.run({
1036
+ value: t[i],
1037
+ issues: []
1038
+ }, r);
1039
+ a instanceof Promise ? e.push(a.then((e) => H(e, n, i, t))) : H(a, n, i, t);
1040
+ }
1041
+ return o.length && n.issues.push({
1042
+ code: "unrecognized_keys",
1043
+ keys: o,
1044
+ input: t,
1045
+ inst: a
1046
+ }), e.length ? Promise.all(e).then(() => n) : n;
1047
+ }
1048
+ var nn = /*@__PURE__*/ h("$ZodObject", (e, t) => {
1049
+ if (z.init(e, t), !Object.getOwnPropertyDescriptor(t, "shape")?.get) {
1050
+ let e = t.shape;
1051
+ Object.defineProperty(t, "shape", { get: () => {
1052
+ let n = { ...e };
1053
+ return Object.defineProperty(t, "shape", { value: n }), n;
1054
+ } });
1055
+ }
1056
+ let n = b(() => en(t));
1057
+ x(e._zod, "propValues", () => {
1058
+ let e = t.shape, n = {};
1059
+ for (let t in e) {
1060
+ let r = e[t]._zod;
1061
+ if (r.values) {
1062
+ n[t] ?? (n[t] = /* @__PURE__ */ new Set());
1063
+ for (let e of r.values) n[t].add(e);
1064
+ }
1065
+ }
1066
+ return n;
1067
+ });
1068
+ let r = w, i = t.catchall, a;
1069
+ e._zod.parse = (t, o) => {
1070
+ a ??= n.value;
1071
+ let s = t.value;
1072
+ if (!r(s)) return t.issues.push({
1073
+ expected: "object",
1074
+ code: "invalid_type",
1075
+ input: s,
1076
+ inst: e
1077
+ }), t;
1078
+ t.value = {};
1079
+ let c = [], l = a.shape;
1080
+ for (let e of a.keys) {
1081
+ let n = l[e]._zod.run({
1082
+ value: s[e],
1083
+ issues: []
1084
+ }, o);
1085
+ n instanceof Promise ? c.push(n.then((n) => H(n, t, e, s))) : H(n, t, e, s);
1086
+ }
1087
+ return i ? tn(c, s, t, o, n.value, e) : c.length ? Promise.all(c).then(() => t) : t;
1088
+ };
1089
+ }), rn = /*@__PURE__*/ h("$ZodObjectJIT", (e, t) => {
1090
+ nn.init(e, t);
1091
+ let n = e._zod.parse, r = b(() => en(t)), i = (e) => {
1092
+ let t = new St([
1093
+ "shape",
1094
+ "payload",
1095
+ "ctx"
1096
+ ]), n = r.value, i = (e) => {
1097
+ let t = ce(e);
1098
+ return `shape[${t}]._zod.run({ value: input[${t}], issues: [] }, ctx)`;
1099
+ };
1100
+ t.write("const input = payload.value;");
1101
+ let a = Object.create(null), o = 0;
1102
+ for (let e of n.keys) a[e] = `key_${o++}`;
1103
+ t.write("const newResult = {};");
1104
+ for (let e of n.keys) {
1105
+ let n = a[e], r = ce(e);
1106
+ t.write(`const ${n} = ${i(e)};`), t.write(`
1107
+ if (${n}.issues.length) {
1108
+ payload.issues = payload.issues.concat(${n}.issues.map(iss => ({
1109
+ ...iss,
1110
+ path: iss.path ? [${r}, ...iss.path] : [${r}]
1111
+ })));
1112
+ }
1113
+
1114
+
1115
+ if (${n}.value === undefined) {
1116
+ if (${r} in input) {
1117
+ newResult[${r}] = undefined;
1118
+ }
1119
+ } else {
1120
+ newResult[${r}] = ${n}.value;
1121
+ }
1122
+
1123
+ `);
1124
+ }
1125
+ t.write("payload.value = newResult;"), t.write("return payload;");
1126
+ let s = t.compile();
1127
+ return (t, n) => s(e, t, n);
1128
+ }, a, o = w, s = !_.jitless, c = s && ue.value, l = t.catchall, u;
1129
+ e._zod.parse = (d, f) => {
1130
+ u ??= r.value;
1131
+ let p = d.value;
1132
+ return o(p) ? s && c && f?.async === !1 && f.jitless !== !0 ? (a ||= i(t.shape), d = a(d, f), l ? tn([], p, d, f, u, e) : d) : n(d, f) : (d.issues.push({
1133
+ expected: "object",
1134
+ code: "invalid_type",
1135
+ input: p,
1136
+ inst: e
1137
+ }), d);
1138
+ };
1139
+ });
1140
+ function an(e, t, n, r) {
1141
+ for (let n of e) if (n.issues.length === 0) return t.value = n.value, t;
1142
+ let i = e.filter((e) => !k(e));
1143
+ return i.length === 1 ? (t.value = i[0].value, i[0]) : (t.issues.push({
1144
+ code: "invalid_union",
1145
+ input: t.value,
1146
+ inst: n,
1147
+ errors: e.map((e) => e.issues.map((e) => j(e, r, v())))
1148
+ }), t);
1149
+ }
1150
+ var on = /*@__PURE__*/ h("$ZodUnion", (e, t) => {
1151
+ z.init(e, t), x(e._zod, "optin", () => t.options.some((e) => e._zod.optin === "optional") ? "optional" : void 0), x(e._zod, "optout", () => t.options.some((e) => e._zod.optout === "optional") ? "optional" : void 0), x(e._zod, "values", () => {
1152
+ if (t.options.every((e) => e._zod.values)) return new Set(t.options.flatMap((e) => Array.from(e._zod.values)));
1153
+ }), x(e._zod, "pattern", () => {
1154
+ if (t.options.every((e) => e._zod.pattern)) {
1155
+ let e = t.options.map((e) => e._zod.pattern);
1156
+ return RegExp(`^(${e.map((e) => oe(e.source)).join("|")})$`);
1157
+ }
1158
+ });
1159
+ let n = t.options.length === 1, r = t.options[0]._zod.run;
1160
+ e._zod.parse = (i, a) => {
1161
+ if (n) return r(i, a);
1162
+ let o = !1, s = [];
1163
+ for (let e of t.options) {
1164
+ let t = e._zod.run({
1165
+ value: i.value,
1166
+ issues: []
1167
+ }, a);
1168
+ if (t instanceof Promise) s.push(t), o = !0;
1169
+ else {
1170
+ if (t.issues.length === 0) return t;
1171
+ s.push(t);
1172
+ }
1173
+ }
1174
+ return o ? Promise.all(s).then((t) => an(t, i, e, a)) : an(s, i, e, a);
1175
+ };
1176
+ }), sn = /*@__PURE__*/ h("$ZodIntersection", (e, t) => {
1177
+ z.init(e, t), e._zod.parse = (e, n) => {
1178
+ let r = e.value, i = t.left._zod.run({
1179
+ value: r,
1180
+ issues: []
1181
+ }, n), a = t.right._zod.run({
1182
+ value: r,
1183
+ issues: []
1184
+ }, n);
1185
+ return i instanceof Promise || a instanceof Promise ? Promise.all([i, a]).then(([t, n]) => cn(e, t, n)) : cn(e, i, a);
1186
+ };
1187
+ });
1188
+ function U(e, t) {
1189
+ if (e === t || e instanceof Date && t instanceof Date && +e == +t) return {
1190
+ valid: !0,
1191
+ data: e
1192
+ };
1193
+ if (T(e) && T(t)) {
1194
+ let n = Object.keys(t), r = Object.keys(e).filter((e) => n.indexOf(e) !== -1), i = {
1195
+ ...e,
1196
+ ...t
1197
+ };
1198
+ for (let n of r) {
1199
+ let r = U(e[n], t[n]);
1200
+ if (!r.valid) return {
1201
+ valid: !1,
1202
+ mergeErrorPath: [n, ...r.mergeErrorPath]
1203
+ };
1204
+ i[n] = r.data;
1205
+ }
1206
+ return {
1207
+ valid: !0,
1208
+ data: i
1209
+ };
1210
+ }
1211
+ if (Array.isArray(e) && Array.isArray(t)) {
1212
+ if (e.length !== t.length) return {
1213
+ valid: !1,
1214
+ mergeErrorPath: []
1215
+ };
1216
+ let n = [];
1217
+ for (let r = 0; r < e.length; r++) {
1218
+ let i = e[r], a = t[r], o = U(i, a);
1219
+ if (!o.valid) return {
1220
+ valid: !1,
1221
+ mergeErrorPath: [r, ...o.mergeErrorPath]
1222
+ };
1223
+ n.push(o.data);
1224
+ }
1225
+ return {
1226
+ valid: !0,
1227
+ data: n
1228
+ };
1229
+ }
1230
+ return {
1231
+ valid: !1,
1232
+ mergeErrorPath: []
1233
+ };
1234
+ }
1235
+ function cn(e, t, n) {
1236
+ if (t.issues.length && e.issues.push(...t.issues), n.issues.length && e.issues.push(...n.issues), k(e)) return e;
1237
+ let r = U(t.value, n.value);
1238
+ if (!r.valid) throw Error(`Unmergable intersection. Error path: ${JSON.stringify(r.mergeErrorPath)}`);
1239
+ return e.value = r.data, e;
1240
+ }
1241
+ var ln = /*@__PURE__*/ h("$ZodEnum", (e, t) => {
1242
+ z.init(e, t);
1243
+ let n = ie(t.entries), r = new Set(n);
1244
+ e._zod.values = r, e._zod.pattern = RegExp(`^(${n.filter((e) => fe.has(typeof e)).map((e) => typeof e == "string" ? E(e) : e.toString()).join("|")})$`), e._zod.parse = (t, i) => {
1245
+ let a = t.value;
1246
+ return r.has(a) || t.issues.push({
1247
+ code: "invalid_value",
1248
+ values: n,
1249
+ input: a,
1250
+ inst: e
1251
+ }), t;
1252
+ };
1253
+ }), un = /*@__PURE__*/ h("$ZodTransform", (e, t) => {
1254
+ z.init(e, t), e._zod.parse = (n, r) => {
1255
+ if (r.direction === "backward") throw new re(e.constructor.name);
1256
+ let i = t.transform(n.value, n);
1257
+ if (r.async) return (i instanceof Promise ? i : Promise.resolve(i)).then((e) => (n.value = e, n));
1258
+ if (i instanceof Promise) throw new g();
1259
+ return n.value = i, n;
1260
+ };
1261
+ });
1262
+ function dn(e, t) {
1263
+ return e.issues.length && t === void 0 ? {
1264
+ issues: [],
1265
+ value: void 0
1266
+ } : e;
1267
+ }
1268
+ var fn = /*@__PURE__*/ h("$ZodOptional", (e, t) => {
1269
+ z.init(e, t), e._zod.optin = "optional", e._zod.optout = "optional", x(e._zod, "values", () => t.innerType._zod.values ? new Set([...t.innerType._zod.values, void 0]) : void 0), x(e._zod, "pattern", () => {
1270
+ let e = t.innerType._zod.pattern;
1271
+ return e ? RegExp(`^(${oe(e.source)})?$`) : void 0;
1272
+ }), e._zod.parse = (e, n) => {
1273
+ if (t.innerType._zod.optin === "optional") {
1274
+ let r = t.innerType._zod.run(e, n);
1275
+ return r instanceof Promise ? r.then((t) => dn(t, e.value)) : dn(r, e.value);
1276
+ }
1277
+ return e.value === void 0 ? e : t.innerType._zod.run(e, n);
1278
+ };
1279
+ }), pn = /*@__PURE__*/ h("$ZodNullable", (e, t) => {
1280
+ z.init(e, t), x(e._zod, "optin", () => t.innerType._zod.optin), x(e._zod, "optout", () => t.innerType._zod.optout), x(e._zod, "pattern", () => {
1281
+ let e = t.innerType._zod.pattern;
1282
+ return e ? RegExp(`^(${oe(e.source)}|null)$`) : void 0;
1283
+ }), x(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);
1284
+ }), mn = /*@__PURE__*/ h("$ZodDefault", (e, t) => {
1285
+ z.init(e, t), e._zod.optin = "optional", x(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (e, n) => {
1286
+ if (n.direction === "backward") return t.innerType._zod.run(e, n);
1287
+ if (e.value === void 0) return e.value = t.defaultValue, e;
1288
+ let r = t.innerType._zod.run(e, n);
1289
+ return r instanceof Promise ? r.then((e) => hn(e, t)) : hn(r, t);
1290
+ };
1291
+ });
1292
+ function hn(e, t) {
1293
+ return e.value === void 0 && (e.value = t.defaultValue), e;
1294
+ }
1295
+ var gn = /*@__PURE__*/ h("$ZodPrefault", (e, t) => {
1296
+ z.init(e, t), e._zod.optin = "optional", x(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));
1297
+ }), _n = /*@__PURE__*/ h("$ZodNonOptional", (e, t) => {
1298
+ z.init(e, t), x(e._zod, "values", () => {
1299
+ let e = t.innerType._zod.values;
1300
+ return e ? new Set([...e].filter((e) => e !== void 0)) : void 0;
1301
+ }), e._zod.parse = (n, r) => {
1302
+ let i = t.innerType._zod.run(n, r);
1303
+ return i instanceof Promise ? i.then((t) => vn(t, e)) : vn(i, e);
1304
+ };
1305
+ });
1306
+ function vn(e, t) {
1307
+ return !e.issues.length && e.value === void 0 && e.issues.push({
1308
+ code: "invalid_type",
1309
+ expected: "nonoptional",
1310
+ input: e.value,
1311
+ inst: t
1312
+ }), e;
1313
+ }
1314
+ var yn = /*@__PURE__*/ h("$ZodCatch", (e, t) => {
1315
+ z.init(e, t), x(e._zod, "optin", () => t.innerType._zod.optin), x(e._zod, "optout", () => t.innerType._zod.optout), x(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (e, n) => {
1316
+ if (n.direction === "backward") return t.innerType._zod.run(e, n);
1317
+ let r = t.innerType._zod.run(e, n);
1318
+ return r instanceof Promise ? r.then((r) => (e.value = r.value, r.issues.length && (e.value = t.catchValue({
1319
+ ...e,
1320
+ error: { issues: r.issues.map((e) => j(e, n, v())) },
1321
+ input: e.value
1322
+ }), e.issues = []), e)) : (e.value = r.value, r.issues.length && (e.value = t.catchValue({
1323
+ ...e,
1324
+ error: { issues: r.issues.map((e) => j(e, n, v())) },
1325
+ input: e.value
1326
+ }), e.issues = []), e);
1327
+ };
1328
+ }), bn = /*@__PURE__*/ h("$ZodPipe", (e, t) => {
1329
+ z.init(e, t), x(e._zod, "values", () => t.in._zod.values), x(e._zod, "optin", () => t.in._zod.optin), x(e._zod, "optout", () => t.out._zod.optout), x(e._zod, "propValues", () => t.in._zod.propValues), e._zod.parse = (e, n) => {
1330
+ if (n.direction === "backward") {
1331
+ let r = t.out._zod.run(e, n);
1332
+ return r instanceof Promise ? r.then((e) => W(e, t.in, n)) : W(r, t.in, n);
1333
+ }
1334
+ let r = t.in._zod.run(e, n);
1335
+ return r instanceof Promise ? r.then((e) => W(e, t.out, n)) : W(r, t.out, n);
1336
+ };
1337
+ });
1338
+ function W(e, t, n) {
1339
+ return e.issues.length ? (e.aborted = !0, e) : t._zod.run({
1340
+ value: e.value,
1341
+ issues: e.issues
1342
+ }, n);
1343
+ }
1344
+ var xn = /*@__PURE__*/ h("$ZodReadonly", (e, t) => {
1345
+ z.init(e, t), x(e._zod, "propValues", () => t.innerType._zod.propValues), x(e._zod, "values", () => t.innerType._zod.values), x(e._zod, "optin", () => t.innerType._zod.optin), x(e._zod, "optout", () => t.innerType._zod.optout), e._zod.parse = (e, n) => {
1346
+ if (n.direction === "backward") return t.innerType._zod.run(e, n);
1347
+ let r = t.innerType._zod.run(e, n);
1348
+ return r instanceof Promise ? r.then(Sn) : Sn(r);
1349
+ };
1350
+ });
1351
+ function Sn(e) {
1352
+ return e.value = Object.freeze(e.value), e;
1353
+ }
1354
+ var Cn = /*@__PURE__*/ h("$ZodCustom", (e, t) => {
1355
+ L.init(e, t), z.init(e, t), e._zod.parse = (e, t) => e, e._zod.check = (n) => {
1356
+ let r = n.value, i = t.fn(r);
1357
+ if (i instanceof Promise) return i.then((t) => wn(t, n, r, e));
1358
+ wn(i, n, r, e);
1359
+ };
1360
+ });
1361
+ function wn(e, t, n, r) {
1362
+ if (!e) {
1363
+ let e = {
1364
+ code: "custom",
1365
+ input: n,
1366
+ inst: r,
1367
+ path: [...r._zod.def.path ?? []],
1368
+ continue: !r._zod.def.abort
1369
+ };
1370
+ r._zod.def.params && (e.params = r._zod.def.params), t.issues.push(M(e));
1371
+ }
1372
+ }
1373
+ //#endregion
1374
+ //#region ../../node_modules/zod/v4/core/registries.js
1375
+ var Tn = class {
1376
+ constructor() {
1377
+ this._map = /* @__PURE__ */ new WeakMap(), this._idmap = /* @__PURE__ */ new Map();
1378
+ }
1379
+ add(e, ...t) {
1380
+ let n = t[0];
1381
+ if (this._map.set(e, n), n && typeof n == "object" && "id" in n) {
1382
+ if (this._idmap.has(n.id)) throw Error(`ID ${n.id} already exists in the registry`);
1383
+ this._idmap.set(n.id, e);
1384
+ }
1385
+ return this;
1386
+ }
1387
+ clear() {
1388
+ return this._map = /* @__PURE__ */ new WeakMap(), this._idmap = /* @__PURE__ */ new Map(), this;
1389
+ }
1390
+ remove(e) {
1391
+ let t = this._map.get(e);
1392
+ return t && typeof t == "object" && "id" in t && this._idmap.delete(t.id), this._map.delete(e), this;
1393
+ }
1394
+ get(e) {
1395
+ let t = e._zod.parent;
1396
+ if (t) {
1397
+ let n = { ...this.get(t) ?? {} };
1398
+ delete n.id;
1399
+ let r = {
1400
+ ...n,
1401
+ ...this._map.get(e)
1402
+ };
1403
+ return Object.keys(r).length ? r : void 0;
1404
+ }
1405
+ return this._map.get(e);
1406
+ }
1407
+ has(e) {
1408
+ return this._map.has(e);
1409
+ }
1410
+ };
1411
+ function En() {
1412
+ return new Tn();
1413
+ }
1414
+ var G = /*@__PURE__*/ En();
1415
+ //#endregion
1416
+ //#region ../../node_modules/zod/v4/core/api.js
1417
+ function Dn(e, t) {
1418
+ return new e({
1419
+ type: "string",
1420
+ ...O(t)
1421
+ });
1422
+ }
1423
+ function On(e, t) {
1424
+ return new e({
1425
+ type: "string",
1426
+ format: "email",
1427
+ check: "string_format",
1428
+ abort: !1,
1429
+ ...O(t)
1430
+ });
1431
+ }
1432
+ function kn(e, t) {
1433
+ return new e({
1434
+ type: "string",
1435
+ format: "guid",
1436
+ check: "string_format",
1437
+ abort: !1,
1438
+ ...O(t)
1439
+ });
1440
+ }
1441
+ function An(e, t) {
1442
+ return new e({
1443
+ type: "string",
1444
+ format: "uuid",
1445
+ check: "string_format",
1446
+ abort: !1,
1447
+ ...O(t)
1448
+ });
1449
+ }
1450
+ function jn(e, t) {
1451
+ return new e({
1452
+ type: "string",
1453
+ format: "uuid",
1454
+ check: "string_format",
1455
+ abort: !1,
1456
+ version: "v4",
1457
+ ...O(t)
1458
+ });
1459
+ }
1460
+ function Mn(e, t) {
1461
+ return new e({
1462
+ type: "string",
1463
+ format: "uuid",
1464
+ check: "string_format",
1465
+ abort: !1,
1466
+ version: "v6",
1467
+ ...O(t)
1468
+ });
1469
+ }
1470
+ function Nn(e, t) {
1471
+ return new e({
1472
+ type: "string",
1473
+ format: "uuid",
1474
+ check: "string_format",
1475
+ abort: !1,
1476
+ version: "v7",
1477
+ ...O(t)
1478
+ });
1479
+ }
1480
+ function Pn(e, t) {
1481
+ return new e({
1482
+ type: "string",
1483
+ format: "url",
1484
+ check: "string_format",
1485
+ abort: !1,
1486
+ ...O(t)
1487
+ });
1488
+ }
1489
+ function Fn(e, t) {
1490
+ return new e({
1491
+ type: "string",
1492
+ format: "emoji",
1493
+ check: "string_format",
1494
+ abort: !1,
1495
+ ...O(t)
1496
+ });
1497
+ }
1498
+ function In(e, t) {
1499
+ return new e({
1500
+ type: "string",
1501
+ format: "nanoid",
1502
+ check: "string_format",
1503
+ abort: !1,
1504
+ ...O(t)
1505
+ });
1506
+ }
1507
+ function Ln(e, t) {
1508
+ return new e({
1509
+ type: "string",
1510
+ format: "cuid",
1511
+ check: "string_format",
1512
+ abort: !1,
1513
+ ...O(t)
1514
+ });
1515
+ }
1516
+ function Rn(e, t) {
1517
+ return new e({
1518
+ type: "string",
1519
+ format: "cuid2",
1520
+ check: "string_format",
1521
+ abort: !1,
1522
+ ...O(t)
1523
+ });
1524
+ }
1525
+ function zn(e, t) {
1526
+ return new e({
1527
+ type: "string",
1528
+ format: "ulid",
1529
+ check: "string_format",
1530
+ abort: !1,
1531
+ ...O(t)
1532
+ });
1533
+ }
1534
+ function Bn(e, t) {
1535
+ return new e({
1536
+ type: "string",
1537
+ format: "xid",
1538
+ check: "string_format",
1539
+ abort: !1,
1540
+ ...O(t)
1541
+ });
1542
+ }
1543
+ function Vn(e, t) {
1544
+ return new e({
1545
+ type: "string",
1546
+ format: "ksuid",
1547
+ check: "string_format",
1548
+ abort: !1,
1549
+ ...O(t)
1550
+ });
1551
+ }
1552
+ function Hn(e, t) {
1553
+ return new e({
1554
+ type: "string",
1555
+ format: "ipv4",
1556
+ check: "string_format",
1557
+ abort: !1,
1558
+ ...O(t)
1559
+ });
1560
+ }
1561
+ function Un(e, t) {
1562
+ return new e({
1563
+ type: "string",
1564
+ format: "ipv6",
1565
+ check: "string_format",
1566
+ abort: !1,
1567
+ ...O(t)
1568
+ });
1569
+ }
1570
+ function Wn(e, t) {
1571
+ return new e({
1572
+ type: "string",
1573
+ format: "cidrv4",
1574
+ check: "string_format",
1575
+ abort: !1,
1576
+ ...O(t)
1577
+ });
1578
+ }
1579
+ function Gn(e, t) {
1580
+ return new e({
1581
+ type: "string",
1582
+ format: "cidrv6",
1583
+ check: "string_format",
1584
+ abort: !1,
1585
+ ...O(t)
1586
+ });
1587
+ }
1588
+ function Kn(e, t) {
1589
+ return new e({
1590
+ type: "string",
1591
+ format: "base64",
1592
+ check: "string_format",
1593
+ abort: !1,
1594
+ ...O(t)
1595
+ });
1596
+ }
1597
+ function qn(e, t) {
1598
+ return new e({
1599
+ type: "string",
1600
+ format: "base64url",
1601
+ check: "string_format",
1602
+ abort: !1,
1603
+ ...O(t)
1604
+ });
1605
+ }
1606
+ function Jn(e, t) {
1607
+ return new e({
1608
+ type: "string",
1609
+ format: "e164",
1610
+ check: "string_format",
1611
+ abort: !1,
1612
+ ...O(t)
1613
+ });
1614
+ }
1615
+ function Yn(e, t) {
1616
+ return new e({
1617
+ type: "string",
1618
+ format: "jwt",
1619
+ check: "string_format",
1620
+ abort: !1,
1621
+ ...O(t)
1622
+ });
1623
+ }
1624
+ function Xn(e, t) {
1625
+ return new e({
1626
+ type: "string",
1627
+ format: "datetime",
1628
+ check: "string_format",
1629
+ offset: !1,
1630
+ local: !1,
1631
+ precision: null,
1632
+ ...O(t)
1633
+ });
1634
+ }
1635
+ function Zn(e, t) {
1636
+ return new e({
1637
+ type: "string",
1638
+ format: "date",
1639
+ check: "string_format",
1640
+ ...O(t)
1641
+ });
1642
+ }
1643
+ function Qn(e, t) {
1644
+ return new e({
1645
+ type: "string",
1646
+ format: "time",
1647
+ check: "string_format",
1648
+ precision: null,
1649
+ ...O(t)
1650
+ });
1651
+ }
1652
+ function $n(e, t) {
1653
+ return new e({
1654
+ type: "string",
1655
+ format: "duration",
1656
+ check: "string_format",
1657
+ ...O(t)
1658
+ });
1659
+ }
1660
+ function er(e) {
1661
+ return new e({ type: "unknown" });
1662
+ }
1663
+ function tr(e, t) {
1664
+ return new e({
1665
+ type: "never",
1666
+ ...O(t)
1667
+ });
1668
+ }
1669
+ function nr(e, t) {
1670
+ return new ft({
1671
+ check: "max_length",
1672
+ ...O(t),
1673
+ maximum: e
1674
+ });
1675
+ }
1676
+ function K(e, t) {
1677
+ return new pt({
1678
+ check: "min_length",
1679
+ ...O(t),
1680
+ minimum: e
1681
+ });
1682
+ }
1683
+ function rr(e, t) {
1684
+ return new mt({
1685
+ check: "length_equals",
1686
+ ...O(t),
1687
+ length: e
1688
+ });
1689
+ }
1690
+ function ir(e, t) {
1691
+ return new ht({
1692
+ check: "string_format",
1693
+ format: "regex",
1694
+ ...O(t),
1695
+ pattern: e
1696
+ });
1697
+ }
1698
+ function ar(e) {
1699
+ return new gt({
1700
+ check: "string_format",
1701
+ format: "lowercase",
1702
+ ...O(e)
1703
+ });
1704
+ }
1705
+ function or(e) {
1706
+ return new _t({
1707
+ check: "string_format",
1708
+ format: "uppercase",
1709
+ ...O(e)
1710
+ });
1711
+ }
1712
+ function sr(e, t) {
1713
+ return new vt({
1714
+ check: "string_format",
1715
+ format: "includes",
1716
+ ...O(t),
1717
+ includes: e
1718
+ });
1719
+ }
1720
+ function cr(e, t) {
1721
+ return new yt({
1722
+ check: "string_format",
1723
+ format: "starts_with",
1724
+ ...O(t),
1725
+ prefix: e
1726
+ });
1727
+ }
1728
+ function lr(e, t) {
1729
+ return new bt({
1730
+ check: "string_format",
1731
+ format: "ends_with",
1732
+ ...O(t),
1733
+ suffix: e
1734
+ });
1735
+ }
1736
+ function q(e) {
1737
+ return new xt({
1738
+ check: "overwrite",
1739
+ tx: e
1740
+ });
1741
+ }
1742
+ function ur(e) {
1743
+ return q((t) => t.normalize(e));
1744
+ }
1745
+ function dr() {
1746
+ return q((e) => e.trim());
1747
+ }
1748
+ function fr() {
1749
+ return q((e) => e.toLowerCase());
1750
+ }
1751
+ function pr() {
1752
+ return q((e) => e.toUpperCase());
1753
+ }
1754
+ function mr(e, t, n) {
1755
+ return new e({
1756
+ type: "array",
1757
+ element: t,
1758
+ ...O(n)
1759
+ });
1760
+ }
1761
+ function hr(e, t, n) {
1762
+ return new e({
1763
+ type: "custom",
1764
+ check: "custom",
1765
+ fn: t,
1766
+ ...O(n)
1767
+ });
1768
+ }
1769
+ function gr(e) {
1770
+ let t = _r((n) => (n.addIssue = (e) => {
1771
+ if (typeof e == "string") n.issues.push(M(e, n.value, t._zod.def));
1772
+ else {
1773
+ let r = e;
1774
+ r.fatal && (r.continue = !1), r.code ??= "custom", r.input ??= n.value, r.inst ??= t, r.continue ??= !t._zod.def.abort, n.issues.push(M(r));
1775
+ }
1776
+ }, e(n.value, n)));
1777
+ return t;
1778
+ }
1779
+ function _r(e, t) {
1780
+ let n = new L({
1781
+ check: "custom",
1782
+ ...O(t)
1783
+ });
1784
+ return n._zod.check = e, n;
1785
+ }
1786
+ //#endregion
1787
+ //#region ../../node_modules/zod/v4/classic/iso.js
1788
+ var vr = /*@__PURE__*/ h("ZodISODateTime", (e, t) => {
1789
+ Ft.init(e, t), X.init(e, t);
1790
+ });
1791
+ function yr(e) {
1792
+ return Xn(vr, e);
1793
+ }
1794
+ var br = /*@__PURE__*/ h("ZodISODate", (e, t) => {
1795
+ It.init(e, t), X.init(e, t);
1796
+ });
1797
+ function xr(e) {
1798
+ return Zn(br, e);
1799
+ }
1800
+ var Sr = /*@__PURE__*/ h("ZodISOTime", (e, t) => {
1801
+ Lt.init(e, t), X.init(e, t);
1802
+ });
1803
+ function Cr(e) {
1804
+ return Qn(Sr, e);
1805
+ }
1806
+ var wr = /*@__PURE__*/ h("ZodISODuration", (e, t) => {
1807
+ Rt.init(e, t), X.init(e, t);
1808
+ });
1809
+ function Tr(e) {
1810
+ return $n(wr, e);
1811
+ }
1812
+ //#endregion
1813
+ //#region ../../node_modules/zod/v4/classic/errors.js
1814
+ var Er = (e, t) => {
1815
+ we.init(e, t), e.name = "ZodError", Object.defineProperties(e, {
1816
+ format: { value: (t) => De(e, t) },
1817
+ flatten: { value: (t) => Ee(e, t) },
1818
+ addIssue: { value: (t) => {
1819
+ e.issues.push(t), e.message = JSON.stringify(e.issues, y, 2);
1820
+ } },
1821
+ addIssues: { value: (t) => {
1822
+ e.issues.push(...t), e.message = JSON.stringify(e.issues, y, 2);
1823
+ } },
1824
+ isEmpty: { get() {
1825
+ return e.issues.length === 0;
1826
+ } }
1827
+ });
1828
+ };
1829
+ h("ZodError", Er);
1830
+ var J = h("ZodError", Er, { Parent: Error }), Dr = /* @__PURE__ */ N(J), Or = /* @__PURE__ */ P(J), kr = /* @__PURE__ */ F(J), Ar = /* @__PURE__ */ I(J), jr = /* @__PURE__ */ Ae(J), Mr = /* @__PURE__ */ je(J), Nr = /* @__PURE__ */ Me(J), Pr = /* @__PURE__ */ Ne(J), Fr = /* @__PURE__ */ Pe(J), Ir = /* @__PURE__ */ Fe(J), Lr = /* @__PURE__ */ Ie(J), Rr = /* @__PURE__ */ Le(J), Y = /*@__PURE__*/ h("ZodType", (e, t) => (z.init(e, t), e.def = t, e.type = t.type, Object.defineProperty(e, "_def", { value: t }), e.check = (...n) => e.clone(C(t, { checks: [...t.checks ?? [], ...n.map((e) => typeof e == "function" ? { _zod: {
1831
+ check: e,
1832
+ def: { check: "custom" },
1833
+ onattach: []
1834
+ } } : e)] })), e.clone = (t, n) => D(e, t, n), e.brand = () => e, e.register = ((t, n) => (t.add(e, n), e)), e.parse = (t, n) => Dr(e, t, n, { callee: e.parse }), e.safeParse = (t, n) => kr(e, t, n), e.parseAsync = async (t, n) => Or(e, t, n, { callee: e.parseAsync }), e.safeParseAsync = async (t, n) => Ar(e, t, n), e.spa = e.safeParseAsync, e.encode = (t, n) => jr(e, t, n), e.decode = (t, n) => Mr(e, t, n), e.encodeAsync = async (t, n) => Nr(e, t, n), e.decodeAsync = async (t, n) => Pr(e, t, n), e.safeEncode = (t, n) => Fr(e, t, n), e.safeDecode = (t, n) => Ir(e, t, n), e.safeEncodeAsync = async (t, n) => Lr(e, t, n), e.safeDecodeAsync = async (t, n) => Rr(e, t, n), e.refine = (t, n) => e.check(zi(t, n)), e.superRefine = (t) => e.check(Bi(t)), e.overwrite = (t) => e.check(q(t)), e.optional = () => Ci(e), e.nullable = () => Ti(e), e.nullish = () => Ci(Ti(e)), e.nonoptional = (t) => ji(e, t), e.array = () => di(e), e.or = (t) => hi([e, t]), e.and = (t) => _i(e, t), e.transform = (t) => Fi(e, xi(t)), e.default = (t) => Di(e, t), e.prefault = (t) => ki(e, t), e.catch = (t) => Ni(e, t), e.pipe = (t) => Fi(e, t), e.readonly = () => Li(e), e.describe = (t) => {
1835
+ let n = e.clone();
1836
+ return G.add(n, { description: t }), n;
1837
+ }, Object.defineProperty(e, "description", {
1838
+ get() {
1839
+ return G.get(e)?.description;
1840
+ },
1841
+ configurable: !0
1842
+ }), e.meta = (...t) => {
1843
+ if (t.length === 0) return G.get(e);
1844
+ let n = e.clone();
1845
+ return G.add(n, t[0]), n;
1846
+ }, e.isOptional = () => e.safeParse(void 0).success, e.isNullable = () => e.safeParse(null).success, e)), zr = /*@__PURE__*/ h("_ZodString", (e, t) => {
1847
+ B.init(e, t), Y.init(e, t);
1848
+ let n = e._zod.bag;
1849
+ e.format = n.format ?? null, e.minLength = n.minimum ?? null, e.maxLength = n.maximum ?? null, e.regex = (...t) => e.check(ir(...t)), e.includes = (...t) => e.check(sr(...t)), e.startsWith = (...t) => e.check(cr(...t)), e.endsWith = (...t) => e.check(lr(...t)), e.min = (...t) => e.check(K(...t)), e.max = (...t) => e.check(nr(...t)), e.length = (...t) => e.check(rr(...t)), e.nonempty = (...t) => e.check(K(1, ...t)), e.lowercase = (t) => e.check(ar(t)), e.uppercase = (t) => e.check(or(t)), e.trim = () => e.check(dr()), e.normalize = (...t) => e.check(ur(...t)), e.toLowerCase = () => e.check(fr()), e.toUpperCase = () => e.check(pr());
1850
+ }), Br = /*@__PURE__*/ h("ZodString", (e, t) => {
1851
+ B.init(e, t), zr.init(e, t), e.email = (t) => e.check(On(Hr, t)), e.url = (t) => e.check(Pn(Wr, t)), e.jwt = (t) => e.check(Yn(ai, t)), e.emoji = (t) => e.check(Fn(Gr, t)), e.guid = (t) => e.check(kn(Ur, t)), e.uuid = (t) => e.check(An(Z, t)), e.uuidv4 = (t) => e.check(jn(Z, t)), e.uuidv6 = (t) => e.check(Mn(Z, t)), e.uuidv7 = (t) => e.check(Nn(Z, t)), e.nanoid = (t) => e.check(In(Kr, t)), e.guid = (t) => e.check(kn(Ur, t)), e.cuid = (t) => e.check(Ln(qr, t)), e.cuid2 = (t) => e.check(Rn(Jr, t)), e.ulid = (t) => e.check(zn(Yr, t)), e.base64 = (t) => e.check(Kn(ni, t)), e.base64url = (t) => e.check(qn(ri, t)), e.xid = (t) => e.check(Bn(Xr, t)), e.ksuid = (t) => e.check(Vn(Zr, t)), e.ipv4 = (t) => e.check(Hn(Qr, t)), e.ipv6 = (t) => e.check(Un($r, t)), e.cidrv4 = (t) => e.check(Wn(ei, t)), e.cidrv6 = (t) => e.check(Gn(ti, t)), e.e164 = (t) => e.check(Jn(ii, t)), e.datetime = (t) => e.check(yr(t)), e.date = (t) => e.check(xr(t)), e.time = (t) => e.check(Cr(t)), e.duration = (t) => e.check(Tr(t));
1852
+ });
1853
+ function Vr(e) {
1854
+ return Dn(Br, e);
1855
+ }
1856
+ var X = /*@__PURE__*/ h("ZodStringFormat", (e, t) => {
1857
+ V.init(e, t), zr.init(e, t);
1858
+ }), Hr = /*@__PURE__*/ h("ZodEmail", (e, t) => {
1859
+ Et.init(e, t), X.init(e, t);
1860
+ }), Ur = /*@__PURE__*/ h("ZodGUID", (e, t) => {
1861
+ wt.init(e, t), X.init(e, t);
1862
+ }), Z = /*@__PURE__*/ h("ZodUUID", (e, t) => {
1863
+ Tt.init(e, t), X.init(e, t);
1864
+ }), Wr = /*@__PURE__*/ h("ZodURL", (e, t) => {
1865
+ Dt.init(e, t), X.init(e, t);
1866
+ }), Gr = /*@__PURE__*/ h("ZodEmoji", (e, t) => {
1867
+ Ot.init(e, t), X.init(e, t);
1868
+ }), Kr = /*@__PURE__*/ h("ZodNanoID", (e, t) => {
1869
+ kt.init(e, t), X.init(e, t);
1870
+ }), qr = /*@__PURE__*/ h("ZodCUID", (e, t) => {
1871
+ At.init(e, t), X.init(e, t);
1872
+ }), Jr = /*@__PURE__*/ h("ZodCUID2", (e, t) => {
1873
+ jt.init(e, t), X.init(e, t);
1874
+ }), Yr = /*@__PURE__*/ h("ZodULID", (e, t) => {
1875
+ Mt.init(e, t), X.init(e, t);
1876
+ }), Xr = /*@__PURE__*/ h("ZodXID", (e, t) => {
1877
+ Nt.init(e, t), X.init(e, t);
1878
+ }), Zr = /*@__PURE__*/ h("ZodKSUID", (e, t) => {
1879
+ Pt.init(e, t), X.init(e, t);
1880
+ }), Qr = /*@__PURE__*/ h("ZodIPv4", (e, t) => {
1881
+ zt.init(e, t), X.init(e, t);
1882
+ }), $r = /*@__PURE__*/ h("ZodIPv6", (e, t) => {
1883
+ Bt.init(e, t), X.init(e, t);
1884
+ }), ei = /*@__PURE__*/ h("ZodCIDRv4", (e, t) => {
1885
+ Vt.init(e, t), X.init(e, t);
1886
+ }), ti = /*@__PURE__*/ h("ZodCIDRv6", (e, t) => {
1887
+ Ht.init(e, t), X.init(e, t);
1888
+ }), ni = /*@__PURE__*/ h("ZodBase64", (e, t) => {
1889
+ Wt.init(e, t), X.init(e, t);
1890
+ }), ri = /*@__PURE__*/ h("ZodBase64URL", (e, t) => {
1891
+ Kt.init(e, t), X.init(e, t);
1892
+ }), ii = /*@__PURE__*/ h("ZodE164", (e, t) => {
1893
+ qt.init(e, t), X.init(e, t);
1894
+ }), ai = /*@__PURE__*/ h("ZodJWT", (e, t) => {
1895
+ Yt.init(e, t), X.init(e, t);
1896
+ }), oi = /*@__PURE__*/ h("ZodUnknown", (e, t) => {
1897
+ Xt.init(e, t), Y.init(e, t);
1898
+ });
1899
+ function si() {
1900
+ return er(oi);
1901
+ }
1902
+ var ci = /*@__PURE__*/ h("ZodNever", (e, t) => {
1903
+ Zt.init(e, t), Y.init(e, t);
1904
+ });
1905
+ function li(e) {
1906
+ return tr(ci, e);
1907
+ }
1908
+ var ui = /*@__PURE__*/ h("ZodArray", (e, t) => {
1909
+ $t.init(e, t), Y.init(e, t), e.element = t.element, e.min = (t, n) => e.check(K(t, n)), e.nonempty = (t) => e.check(K(1, t)), e.max = (t, n) => e.check(nr(t, n)), e.length = (t, n) => e.check(rr(t, n)), e.unwrap = () => e.element;
1910
+ });
1911
+ function di(e, t) {
1912
+ return mr(ui, e, t);
1913
+ }
1914
+ var fi = /*@__PURE__*/ h("ZodObject", (e, t) => {
1915
+ rn.init(e, t), Y.init(e, t), x(e, "shape", () => t.shape), e.keyof = () => yi(Object.keys(e._zod.def.shape)), e.catchall = (t) => e.clone({
1916
+ ...e._zod.def,
1917
+ catchall: t
1918
+ }), e.passthrough = () => e.clone({
1919
+ ...e._zod.def,
1920
+ catchall: si()
1921
+ }), e.loose = () => e.clone({
1922
+ ...e._zod.def,
1923
+ catchall: si()
1924
+ }), e.strict = () => e.clone({
1925
+ ...e._zod.def,
1926
+ catchall: li()
1927
+ }), e.strip = () => e.clone({
1928
+ ...e._zod.def,
1929
+ catchall: void 0
1930
+ }), e.extend = (t) => ge(e, t), e.safeExtend = (t) => _e(e, t), e.merge = (t) => ve(e, t), e.pick = (t) => me(e, t), e.omit = (t) => he(e, t), e.partial = (...t) => ye(Si, e, t[0]), e.required = (...t) => be(Ai, e, t[0]);
1931
+ });
1932
+ function pi(e, t) {
1933
+ return new fi({
1934
+ type: "object",
1935
+ shape: e ?? {},
1936
+ ...O(t)
1937
+ });
1938
+ }
1939
+ var mi = /*@__PURE__*/ h("ZodUnion", (e, t) => {
1940
+ on.init(e, t), Y.init(e, t), e.options = t.options;
1941
+ });
1942
+ function hi(e, t) {
1943
+ return new mi({
1944
+ type: "union",
1945
+ options: e,
1946
+ ...O(t)
1947
+ });
1948
+ }
1949
+ var gi = /*@__PURE__*/ h("ZodIntersection", (e, t) => {
1950
+ sn.init(e, t), Y.init(e, t);
1951
+ });
1952
+ function _i(e, t) {
1953
+ return new gi({
1954
+ type: "intersection",
1955
+ left: e,
1956
+ right: t
1957
+ });
1958
+ }
1959
+ var vi = /*@__PURE__*/ h("ZodEnum", (e, t) => {
1960
+ ln.init(e, t), Y.init(e, t), e.enum = t.entries, e.options = Object.values(t.entries);
1961
+ let n = new Set(Object.keys(t.entries));
1962
+ e.extract = (e, r) => {
1963
+ let i = {};
1964
+ for (let r of e) if (n.has(r)) i[r] = t.entries[r];
1965
+ else throw Error(`Key ${r} not found in enum`);
1966
+ return new vi({
1967
+ ...t,
1968
+ checks: [],
1969
+ ...O(r),
1970
+ entries: i
1971
+ });
1972
+ }, e.exclude = (e, r) => {
1973
+ let i = { ...t.entries };
1974
+ for (let t of e) if (n.has(t)) delete i[t];
1975
+ else throw Error(`Key ${t} not found in enum`);
1976
+ return new vi({
1977
+ ...t,
1978
+ checks: [],
1979
+ ...O(r),
1980
+ entries: i
1981
+ });
1982
+ };
1983
+ });
1984
+ function yi(e, t) {
1985
+ return new vi({
1986
+ type: "enum",
1987
+ entries: Array.isArray(e) ? Object.fromEntries(e.map((e) => [e, e])) : e,
1988
+ ...O(t)
1989
+ });
1990
+ }
1991
+ var bi = /*@__PURE__*/ h("ZodTransform", (e, t) => {
1992
+ un.init(e, t), Y.init(e, t), e._zod.parse = (n, r) => {
1993
+ if (r.direction === "backward") throw new re(e.constructor.name);
1994
+ n.addIssue = (r) => {
1995
+ if (typeof r == "string") n.issues.push(M(r, n.value, t));
1996
+ else {
1997
+ let t = r;
1998
+ t.fatal && (t.continue = !1), t.code ??= "custom", t.input ??= n.value, t.inst ??= e, n.issues.push(M(t));
1999
+ }
2000
+ };
2001
+ let i = t.transform(n.value, n);
2002
+ return i instanceof Promise ? i.then((e) => (n.value = e, n)) : (n.value = i, n);
2003
+ };
2004
+ });
2005
+ function xi(e) {
2006
+ return new bi({
2007
+ type: "transform",
2008
+ transform: e
2009
+ });
2010
+ }
2011
+ var Si = /*@__PURE__*/ h("ZodOptional", (e, t) => {
2012
+ fn.init(e, t), Y.init(e, t), e.unwrap = () => e._zod.def.innerType;
2013
+ });
2014
+ function Ci(e) {
2015
+ return new Si({
2016
+ type: "optional",
2017
+ innerType: e
2018
+ });
2019
+ }
2020
+ var wi = /*@__PURE__*/ h("ZodNullable", (e, t) => {
2021
+ pn.init(e, t), Y.init(e, t), e.unwrap = () => e._zod.def.innerType;
2022
+ });
2023
+ function Ti(e) {
2024
+ return new wi({
2025
+ type: "nullable",
2026
+ innerType: e
2027
+ });
2028
+ }
2029
+ var Ei = /*@__PURE__*/ h("ZodDefault", (e, t) => {
2030
+ mn.init(e, t), Y.init(e, t), e.unwrap = () => e._zod.def.innerType, e.removeDefault = e.unwrap;
2031
+ });
2032
+ function Di(e, t) {
2033
+ return new Ei({
2034
+ type: "default",
2035
+ innerType: e,
2036
+ get defaultValue() {
2037
+ return typeof t == "function" ? t() : de(t);
2038
+ }
2039
+ });
2040
+ }
2041
+ var Oi = /*@__PURE__*/ h("ZodPrefault", (e, t) => {
2042
+ gn.init(e, t), Y.init(e, t), e.unwrap = () => e._zod.def.innerType;
2043
+ });
2044
+ function ki(e, t) {
2045
+ return new Oi({
2046
+ type: "prefault",
2047
+ innerType: e,
2048
+ get defaultValue() {
2049
+ return typeof t == "function" ? t() : de(t);
2050
+ }
2051
+ });
2052
+ }
2053
+ var Ai = /*@__PURE__*/ h("ZodNonOptional", (e, t) => {
2054
+ _n.init(e, t), Y.init(e, t), e.unwrap = () => e._zod.def.innerType;
2055
+ });
2056
+ function ji(e, t) {
2057
+ return new Ai({
2058
+ type: "nonoptional",
2059
+ innerType: e,
2060
+ ...O(t)
2061
+ });
2062
+ }
2063
+ var Mi = /*@__PURE__*/ h("ZodCatch", (e, t) => {
2064
+ yn.init(e, t), Y.init(e, t), e.unwrap = () => e._zod.def.innerType, e.removeCatch = e.unwrap;
2065
+ });
2066
+ function Ni(e, t) {
2067
+ return new Mi({
2068
+ type: "catch",
2069
+ innerType: e,
2070
+ catchValue: typeof t == "function" ? t : () => t
2071
+ });
2072
+ }
2073
+ var Pi = /*@__PURE__*/ h("ZodPipe", (e, t) => {
2074
+ bn.init(e, t), Y.init(e, t), e.in = t.in, e.out = t.out;
2075
+ });
2076
+ function Fi(e, t) {
2077
+ return new Pi({
2078
+ type: "pipe",
2079
+ in: e,
2080
+ out: t
2081
+ });
2082
+ }
2083
+ var Ii = /*@__PURE__*/ h("ZodReadonly", (e, t) => {
2084
+ xn.init(e, t), Y.init(e, t), e.unwrap = () => e._zod.def.innerType;
2085
+ });
2086
+ function Li(e) {
2087
+ return new Ii({
2088
+ type: "readonly",
2089
+ innerType: e
2090
+ });
2091
+ }
2092
+ var Ri = /*@__PURE__*/ h("ZodCustom", (e, t) => {
2093
+ Cn.init(e, t), Y.init(e, t);
2094
+ });
2095
+ function zi(e, t = {}) {
2096
+ return hr(Ri, e, t);
2097
+ }
2098
+ function Bi(e) {
2099
+ return gr(e);
2100
+ }
2101
+ //#endregion
2102
+ //#region ../twenty-shared/node_modules/class-validator/esm5/metadata/ValidationMetadata.js
2103
+ var Vi = function() {
2104
+ function e(e) {
2105
+ this.groups = [], this.each = !1, this.context = void 0, this.type = e.type, this.name = e.name, this.target = e.target, this.propertyName = e.propertyName, this.constraints = e?.constraints, this.constraintCls = e.constraintCls, this.validationTypeOptions = e.validationTypeOptions, e.validationOptions && (this.message = e.validationOptions.message, this.groups = e.validationOptions.groups, this.always = e.validationOptions.always, this.each = e.validationOptions.each, this.context = e.validationOptions.context);
2106
+ }
2107
+ return e;
2108
+ }(), Hi = function() {
2109
+ function e() {}
2110
+ return e.prototype.transform = function(e) {
2111
+ var t = [];
2112
+ return Object.keys(e.properties).forEach(function(n) {
2113
+ e.properties[n].forEach(function(r) {
2114
+ var i = {
2115
+ message: r.message,
2116
+ groups: r.groups,
2117
+ always: r.always,
2118
+ each: r.each
2119
+ }, a = {
2120
+ type: r.type,
2121
+ name: r.name,
2122
+ target: e.name,
2123
+ propertyName: n,
2124
+ constraints: r.constraints,
2125
+ validationTypeOptions: r.options,
2126
+ validationOptions: i
2127
+ };
2128
+ t.push(new Vi(a));
2129
+ });
2130
+ }), t;
2131
+ }, e;
2132
+ }(), Ui = function(e) {
2133
+ var t = typeof Symbol == "function" && Symbol.iterator, n = t && e[t], r = 0;
2134
+ if (n) return n.call(e);
2135
+ if (e && typeof e.length == "number") return { next: function() {
2136
+ return e && r >= e.length && (e = void 0), {
2137
+ value: e && e[r++],
2138
+ done: !e
2139
+ };
2140
+ } };
2141
+ throw TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
2142
+ }, Wi = function(e, t) {
2143
+ var n = typeof Symbol == "function" && e[Symbol.iterator];
2144
+ if (!n) return e;
2145
+ var r = n.call(e), i, a = [], o;
2146
+ try {
2147
+ for (; (t === void 0 || t-- > 0) && !(i = r.next()).done;) a.push(i.value);
2148
+ } catch (e) {
2149
+ o = { error: e };
2150
+ } finally {
2151
+ try {
2152
+ i && !i.done && (n = r.return) && n.call(r);
2153
+ } finally {
2154
+ if (o) throw o.error;
2155
+ }
2156
+ }
2157
+ return a;
2158
+ }, Gi = function(e, t, n) {
2159
+ if (n || arguments.length === 2) for (var r = 0, i = t.length, a; r < i; r++) (a || !(r in t)) && (a ||= Array.prototype.slice.call(t, 0, r), a[r] = t[r]);
2160
+ return e.concat(a || Array.prototype.slice.call(t));
2161
+ };
2162
+ (function() {
2163
+ function e() {
2164
+ this.validationMetadatas = /* @__PURE__ */ new Map(), this.constraintMetadatas = /* @__PURE__ */ new Map();
2165
+ }
2166
+ return Object.defineProperty(e.prototype, "hasValidationMetaData", {
2167
+ get: function() {
2168
+ return !!this.validationMetadatas.size;
2169
+ },
2170
+ enumerable: !1,
2171
+ configurable: !0
2172
+ }), e.prototype.addValidationSchema = function(e) {
2173
+ var t = this;
2174
+ new Hi().transform(e).forEach(function(e) {
2175
+ return t.addValidationMetadata(e);
2176
+ });
2177
+ }, e.prototype.addValidationMetadata = function(e) {
2178
+ var t = this.validationMetadatas.get(e.target);
2179
+ t ? t.push(e) : this.validationMetadatas.set(e.target, [e]);
2180
+ }, e.prototype.addConstraintMetadata = function(e) {
2181
+ var t = this.constraintMetadatas.get(e.target);
2182
+ t ? t.push(e) : this.constraintMetadatas.set(e.target, [e]);
2183
+ }, e.prototype.groupByPropertyName = function(e) {
2184
+ var t = {};
2185
+ return e.forEach(function(e) {
2186
+ t[e.propertyName] || (t[e.propertyName] = []), t[e.propertyName].push(e);
2187
+ }), t;
2188
+ }, e.prototype.getTargetValidationMetadatas = function(e, t, n, r, i) {
2189
+ var a, o, s = function(e) {
2190
+ return e.always === void 0 ? e.groups && e.groups.length ? !1 : n : e.always;
2191
+ }, c = function(e) {
2192
+ return !!(r && (!i || !i.length) && e.groups && e.groups.length);
2193
+ }, l = (this.validationMetadatas.get(e) || []).filter(function(n) {
2194
+ return n.target !== e && n.target !== t ? !1 : s(n) ? !0 : c(n) ? !1 : i && i.length > 0 ? n.groups && !!n.groups.find(function(e) {
2195
+ return i.indexOf(e) !== -1;
2196
+ }) : !0;
2197
+ }), u = [];
2198
+ try {
2199
+ for (var d = Ui(this.validationMetadatas.entries()), f = d.next(); !f.done; f = d.next()) {
2200
+ var p = Wi(f.value, 2), ee = p[0], m = p[1];
2201
+ e.prototype instanceof ee && u.push.apply(u, Gi([], Wi(m), !1));
2202
+ }
2203
+ } catch (e) {
2204
+ a = { error: e };
2205
+ } finally {
2206
+ try {
2207
+ f && !f.done && (o = d.return) && o.call(d);
2208
+ } finally {
2209
+ if (a) throw a.error;
2210
+ }
2211
+ }
2212
+ var te = u.filter(function(t) {
2213
+ return typeof t.target == "string" || t.target === e || t.target instanceof Function && !(e.prototype instanceof t.target) ? !1 : s(t) ? !0 : c(t) ? !1 : i && i.length > 0 ? t.groups && !!t.groups.find(function(e) {
2214
+ return i.indexOf(e) !== -1;
2215
+ }) : !0;
2216
+ }).filter(function(e) {
2217
+ return !l.find(function(t) {
2218
+ return t.propertyName === e.propertyName && t.type === e.type;
2219
+ });
2220
+ });
2221
+ return l.concat(te);
2222
+ }, e.prototype.getTargetValidatorConstraints = function(e) {
2223
+ return this.constraintMetadatas.get(e) || [];
2224
+ }, e;
2225
+ })(), function() {
2226
+ function e() {}
2227
+ return e.isValid = function(e) {
2228
+ var t = this;
2229
+ return e !== "isValid" && e !== "getMessage" && Object.keys(this).map(function(e) {
2230
+ return t[e];
2231
+ }).indexOf(e) !== -1;
2232
+ }, e.CUSTOM_VALIDATION = "customValidation", e.NESTED_VALIDATION = "nestedValidation", e.PROMISE_VALIDATION = "promiseValidation", e.CONDITIONAL_VALIDATION = "conditionalValidation", e.WHITELIST = "whitelistValidation", e.IS_DEFINED = "isDefined", e;
2233
+ }();
2234
+ //#endregion
2235
+ //#region ../twenty-shared/node_modules/class-validator/esm5/validation/ValidationTypes.js
2236
+ var Ki = new (function() {
2237
+ function e() {
2238
+ this.instances = [];
2239
+ }
2240
+ return e.prototype.get = function(e) {
2241
+ var t = this.instances.find(function(t) {
2242
+ return t.type === e;
2243
+ });
2244
+ return t || (t = {
2245
+ type: e,
2246
+ object: new e()
2247
+ }, this.instances.push(t)), t.object;
2248
+ }, e;
2249
+ }())(), qi, Q;
2250
+ function Ji(e) {
2251
+ if (qi) try {
2252
+ var t = qi.get(e);
2253
+ if (t || !Q || !Q.fallback) return t;
2254
+ } catch (e) {
2255
+ if (!Q || !Q.fallbackOnErrors) throw e;
2256
+ }
2257
+ return Ki.get(e);
2258
+ }
2259
+ (function() {
2260
+ function e(e, t, n) {
2261
+ n === void 0 && (n = !1), this.target = e, this.name = t, this.async = n;
2262
+ }
2263
+ return Object.defineProperty(e.prototype, "instance", {
2264
+ get: function() {
2265
+ return Ji(this.target);
2266
+ },
2267
+ enumerable: !1,
2268
+ configurable: !0
2269
+ }), e;
2270
+ })();
2271
+ //#endregion
2272
+ //#region ../twenty-shared/node_modules/class-validator/esm5/metadata/ConstraintMetadata.js
2273
+ var $ = /* @__PURE__ */ function(e) {
2274
+ return e.ACTOR = "ACTOR", e.ADDRESS = "ADDRESS", e.ARRAY = "ARRAY", e.BOOLEAN = "BOOLEAN", e.CURRENCY = "CURRENCY", e.DATE = "DATE", e.DATE_TIME = "DATE_TIME", e.EMAILS = "EMAILS", e.FILES = "FILES", e.FULL_NAME = "FULL_NAME", e.LINKS = "LINKS", e.MORPH_RELATION = "MORPH_RELATION", e.MULTI_SELECT = "MULTI_SELECT", e.NUMBER = "NUMBER", e.NUMERIC = "NUMERIC", e.PHONES = "PHONES", e.POSITION = "POSITION", e.RATING = "RATING", e.RAW_JSON = "RAW_JSON", e.RELATION = "RELATION", e.RICH_TEXT = "RICH_TEXT", e.SELECT = "SELECT", e.TEXT = "TEXT", e.TS_VECTOR = "TS_VECTOR", e.UUID = "UUID", e;
2275
+ }({}), Yi = /* @__PURE__ */ function(e) {
2276
+ return e.EMAIL = "EMAIL", e.CALENDAR = "CALENDAR", e.WORKFLOW = "WORKFLOW", e.AGENT = "AGENT", e.API = "API", e.IMPORT = "IMPORT", e.MANUAL = "MANUAL", e.SYSTEM = "SYSTEM", e.WEBHOOK = "WEBHOOK", e.APPLICATION = "APPLICATION", e;
2277
+ }({}), Xi = {
2278
+ type: $.ACTOR,
2279
+ properties: [
2280
+ {
2281
+ name: "source",
2282
+ type: $.SELECT,
2283
+ hidden: !1,
2284
+ isRequired: !0,
2285
+ options: Object.keys(Yi).map((e, t) => ({
2286
+ id: p(),
2287
+ label: `${Yi[e].toLowerCase()}`,
2288
+ value: e,
2289
+ position: t
2290
+ }))
2291
+ },
2292
+ {
2293
+ name: "workspaceMemberId",
2294
+ type: $.UUID,
2295
+ hidden: "input",
2296
+ isRequired: !1
2297
+ },
2298
+ {
2299
+ name: "name",
2300
+ type: $.TEXT,
2301
+ hidden: "input",
2302
+ isRequired: !0
2303
+ },
2304
+ {
2305
+ name: "context",
2306
+ type: $.RAW_JSON,
2307
+ hidden: !1,
2308
+ isRequired: !1
2309
+ }
2310
+ ]
2311
+ }, Zi = {
2312
+ type: $.ADDRESS,
2313
+ properties: [
2314
+ {
2315
+ name: "addressStreet1",
2316
+ type: $.TEXT,
2317
+ hidden: !1,
2318
+ isRequired: !1
2319
+ },
2320
+ {
2321
+ name: "addressStreet2",
2322
+ type: $.TEXT,
2323
+ hidden: !1,
2324
+ isRequired: !1
2325
+ },
2326
+ {
2327
+ name: "addressCity",
2328
+ type: $.TEXT,
2329
+ hidden: !1,
2330
+ isRequired: !1
2331
+ },
2332
+ {
2333
+ name: "addressPostcode",
2334
+ type: $.TEXT,
2335
+ hidden: !1,
2336
+ isRequired: !1
2337
+ },
2338
+ {
2339
+ name: "addressState",
2340
+ type: $.TEXT,
2341
+ hidden: !1,
2342
+ isRequired: !1
2343
+ },
2344
+ {
2345
+ name: "addressCountry",
2346
+ type: $.TEXT,
2347
+ hidden: !1,
2348
+ isRequired: !1
2349
+ },
2350
+ {
2351
+ name: "addressLat",
2352
+ type: $.NUMERIC,
2353
+ hidden: !1,
2354
+ isRequired: !1
2355
+ },
2356
+ {
2357
+ name: "addressLng",
2358
+ type: $.NUMERIC,
2359
+ hidden: !1,
2360
+ isRequired: !1
2361
+ }
2362
+ ]
2363
+ }, Qi = {
2364
+ type: $.CURRENCY,
2365
+ properties: [{
2366
+ name: "amountMicros",
2367
+ type: $.NUMERIC,
2368
+ hidden: !1,
2369
+ isRequired: !1
2370
+ }, {
2371
+ name: "currencyCode",
2372
+ type: $.TEXT,
2373
+ hidden: !1,
2374
+ isRequired: !1
2375
+ }]
2376
+ }, $i = {
2377
+ type: $.EMAILS,
2378
+ properties: [{
2379
+ name: "primaryEmail",
2380
+ type: $.TEXT,
2381
+ hidden: !1,
2382
+ isRequired: !1,
2383
+ isIncludedInUniqueConstraint: !0
2384
+ }, {
2385
+ name: "additionalEmails",
2386
+ type: $.RAW_JSON,
2387
+ hidden: !1,
2388
+ isRequired: !1
2389
+ }]
2390
+ }, ea = {
2391
+ type: $.FULL_NAME,
2392
+ properties: [{
2393
+ name: "firstName",
2394
+ type: $.TEXT,
2395
+ hidden: !1,
2396
+ isRequired: !1,
2397
+ isIncludedInUniqueConstraint: !1
2398
+ }, {
2399
+ name: "lastName",
2400
+ type: $.TEXT,
2401
+ hidden: !1,
2402
+ isRequired: !1,
2403
+ isIncludedInUniqueConstraint: !1
2404
+ }]
2405
+ }, ta = {
2406
+ type: $.LINKS,
2407
+ properties: [
2408
+ {
2409
+ name: "primaryLinkLabel",
2410
+ type: $.TEXT,
2411
+ hidden: !1,
2412
+ isRequired: !1
2413
+ },
2414
+ {
2415
+ name: "primaryLinkUrl",
2416
+ type: $.TEXT,
2417
+ hidden: !1,
2418
+ isRequired: !1,
2419
+ isIncludedInUniqueConstraint: !0
2420
+ },
2421
+ {
2422
+ name: "secondaryLinks",
2423
+ type: $.RAW_JSON,
2424
+ hidden: !1,
2425
+ isRequired: !1
2426
+ }
2427
+ ]
2428
+ }, na = {
2429
+ type: $.PHONES,
2430
+ properties: [
2431
+ {
2432
+ name: "primaryPhoneNumber",
2433
+ type: $.TEXT,
2434
+ hidden: !1,
2435
+ isRequired: !1,
2436
+ isIncludedInUniqueConstraint: !0
2437
+ },
2438
+ {
2439
+ name: "primaryPhoneCountryCode",
2440
+ type: $.TEXT,
2441
+ hidden: !1,
2442
+ isRequired: !1,
2443
+ isIncludedInUniqueConstraint: !0
2444
+ },
2445
+ {
2446
+ name: "primaryPhoneCallingCode",
2447
+ type: $.TEXT,
2448
+ hidden: !1,
2449
+ isRequired: !1,
2450
+ isIncludedInUniqueConstraint: !0
2451
+ },
2452
+ {
2453
+ name: "additionalPhones",
2454
+ type: $.RAW_JSON,
2455
+ hidden: !1,
2456
+ isRequired: !1
2457
+ }
2458
+ ]
2459
+ }, ra = {
2460
+ type: $.RICH_TEXT,
2461
+ properties: [{
2462
+ name: "blocknote",
2463
+ type: $.TEXT,
2464
+ hidden: !1,
2465
+ isRequired: !1
2466
+ }, {
2467
+ name: "markdown",
2468
+ type: $.TEXT,
2469
+ hidden: !1,
2470
+ isRequired: !1
2471
+ }]
2472
+ };
2473
+ pi({
2474
+ blocknote: Vr().nullable().optional(),
2475
+ markdown: Vr().nullable()
2476
+ }), new Map([
2477
+ [$.LINKS, ta],
2478
+ [$.CURRENCY, Qi],
2479
+ [$.FULL_NAME, ea],
2480
+ [$.ADDRESS, Zi],
2481
+ [$.ACTOR, Xi],
2482
+ [$.EMAILS, $i],
2483
+ [$.PHONES, na],
2484
+ [$.RICH_TEXT, ra]
2485
+ ]), $.RELATION, $.MORPH_RELATION, $.FILES, $.TS_VECTOR, $.TEXT, $.ARRAY, $.BOOLEAN, $.DATE, $.DATE_TIME, $.NUMBER, $.NUMERIC, $.RAW_JSON, $.RICH_TEXT, $.SELECT, $.MULTI_SELECT;
2486
+ //#endregion
2487
+ //#region ../twenty-shared/dist/application.mjs
2488
+ var ia = "TWENTY_API_KEY", aa = "TWENTY_API_URL", oa = "TWENTY_APP_ACCESS_TOKEN", sa = "TWENTY_FUNCTIONS_URL";
2489
+ //#endregion
2490
+ export { oa as i, sa as n, aa as r, ia as t };