twenty-client-sdk 2.42.0 → 2.44.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.
- package/dist/application-DYC9N4_N.js +20 -0
- package/dist/{application-LO_ska5m.mjs → application-DuvLOfQA.mjs} +782 -685
- package/dist/generate.cjs +3 -3
- package/dist/generate.mjs +1 -1
- package/dist/metadata/generated/schema.d.ts +1077 -782
- package/dist/metadata/generated/types.d.ts +604 -467
- package/dist/metadata.cjs +2 -2
- package/dist/metadata.mjs +2072 -1881
- package/dist/rest.cjs +1 -1
- package/dist/rest.mjs +10 -10
- package/package.json +1 -1
- package/dist/application-pbKrOsZ8.js +0 -20
|
@@ -8,8 +8,7 @@ var t = /* @__PURE__ */ e(((e) => {
|
|
|
8
8
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.isNegativeInteger = e.isNonNegativeInteger = e.isPositiveInteger = e.isInteger = e.isNumberOrNaN = e.isNonEmptyString = e.isNonEmptyArray = e.isObjectOrNull = void 0;
|
|
9
9
|
var r = t(), i = n();
|
|
10
10
|
e.isObjectOrNull = (e) => typeof e == "object", e.isNonEmptyArray = (e) => i.isArray(e) && e.length > 0, e.isNonEmptyString = (e) => r.isString(e) && e.length > 0, e.isNumberOrNaN = (e) => typeof e == "number", e.isInteger = (e) => r.isNumber(e) && Number.isInteger(e), e.isPositiveInteger = (t) => e.isInteger(t) && t > 0, e.isNonNegativeInteger = (t) => e.isInteger(t) && t >= 0, e.isNegativeInteger = (t) => e.isInteger(t) && t < 0;
|
|
11
|
-
}))
|
|
12
|
-
(/* @__PURE__ */ e(((e) => {
|
|
11
|
+
})), i = (/* @__PURE__ */ e(((e) => {
|
|
13
12
|
var i = e && e.__createBinding || (Object.create ? (function(e, t, n, r) {
|
|
14
13
|
r === void 0 && (r = n), Object.defineProperty(e, r, {
|
|
15
14
|
enumerable: !0,
|
|
@@ -35,75 +34,74 @@ var t = /* @__PURE__ */ e(((e) => {
|
|
|
35
34
|
for (var n in e) n !== "default" && !Object.prototype.hasOwnProperty.call(t, n) && i(t, e, n);
|
|
36
35
|
};
|
|
37
36
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.structural = e.primitives = e.convenience = void 0, e.convenience = o(r()), s(r(), e), e.primitives = o(t()), s(t(), e), e.structural = o(n()), s(n(), e);
|
|
38
|
-
})))();
|
|
39
|
-
var i = /^(?:[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;
|
|
37
|
+
})))(), a = (e) => !(0, i.isUndefined)(e) && !(0, i.isNull)(e), o = /^(?:[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;
|
|
40
38
|
//#endregion
|
|
41
39
|
//#region ../../node_modules/uuid/dist/esm-browser/validate.js
|
|
42
|
-
function
|
|
43
|
-
return typeof e == "string" &&
|
|
40
|
+
function s(e) {
|
|
41
|
+
return typeof e == "string" && o.test(e);
|
|
44
42
|
}
|
|
45
43
|
//#endregion
|
|
46
44
|
//#region ../../node_modules/uuid/dist/esm-browser/parse.js
|
|
47
|
-
function
|
|
48
|
-
if (!
|
|
45
|
+
function c(e) {
|
|
46
|
+
if (!s(e)) throw TypeError("Invalid UUID");
|
|
49
47
|
let t;
|
|
50
48
|
return Uint8Array.of((t = parseInt(e.slice(0, 8), 16)) >>> 24, t >>> 16 & 255, t >>> 8 & 255, t & 255, (t = parseInt(e.slice(9, 13), 16)) >>> 8, t & 255, (t = parseInt(e.slice(14, 18), 16)) >>> 8, t & 255, (t = parseInt(e.slice(19, 23), 16)) >>> 8, t & 255, (t = parseInt(e.slice(24, 36), 16)) / 1099511627776 & 255, t / 4294967296 & 255, t >>> 24 & 255, t >>> 16 & 255, t >>> 8 & 255, t & 255);
|
|
51
49
|
}
|
|
52
50
|
//#endregion
|
|
53
51
|
//#region ../../node_modules/uuid/dist/esm-browser/stringify.js
|
|
54
|
-
var
|
|
55
|
-
for (let e = 0; e < 256; ++e)
|
|
56
|
-
function
|
|
57
|
-
return (
|
|
52
|
+
var l = [];
|
|
53
|
+
for (let e = 0; e < 256; ++e) l.push((e + 256).toString(16).slice(1));
|
|
54
|
+
function u(e, t = 0) {
|
|
55
|
+
return (l[e[t + 0]] + l[e[t + 1]] + l[e[t + 2]] + l[e[t + 3]] + "-" + l[e[t + 4]] + l[e[t + 5]] + "-" + l[e[t + 6]] + l[e[t + 7]] + "-" + l[e[t + 8]] + l[e[t + 9]] + "-" + l[e[t + 10]] + l[e[t + 11]] + l[e[t + 12]] + l[e[t + 13]] + l[e[t + 14]] + l[e[t + 15]]).toLowerCase();
|
|
58
56
|
}
|
|
59
57
|
//#endregion
|
|
60
58
|
//#region ../../node_modules/uuid/dist/esm-browser/rng.js
|
|
61
|
-
var
|
|
62
|
-
function
|
|
63
|
-
if (!
|
|
59
|
+
var d, f = new Uint8Array(16);
|
|
60
|
+
function p() {
|
|
61
|
+
if (!d) {
|
|
64
62
|
if (typeof crypto > "u" || !crypto.getRandomValues) throw Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
|
65
|
-
|
|
63
|
+
d = crypto.getRandomValues.bind(crypto);
|
|
66
64
|
}
|
|
67
|
-
return
|
|
65
|
+
return d(f);
|
|
68
66
|
}
|
|
69
67
|
//#endregion
|
|
70
68
|
//#region ../../node_modules/uuid/dist/esm-browser/v35.js
|
|
71
|
-
function
|
|
69
|
+
function ee(e) {
|
|
72
70
|
e = unescape(encodeURIComponent(e));
|
|
73
71
|
let t = new Uint8Array(e.length);
|
|
74
72
|
for (let n = 0; n < e.length; ++n) t[n] = e.charCodeAt(n);
|
|
75
73
|
return t;
|
|
76
74
|
}
|
|
77
|
-
var
|
|
78
|
-
function
|
|
79
|
-
let
|
|
80
|
-
if (typeof r == "string" && (r =
|
|
81
|
-
let
|
|
82
|
-
if (
|
|
75
|
+
var te = "6ba7b810-9dad-11d1-80b4-00c04fd430c8", ne = "6ba7b811-9dad-11d1-80b4-00c04fd430c8";
|
|
76
|
+
function re(e, t, n, r, i, a) {
|
|
77
|
+
let o = typeof n == "string" ? ee(n) : n, s = typeof r == "string" ? c(r) : r;
|
|
78
|
+
if (typeof r == "string" && (r = c(r)), r?.length !== 16) throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");
|
|
79
|
+
let l = new Uint8Array(16 + o.length);
|
|
80
|
+
if (l.set(s), l.set(o, s.length), l = t(l), l[6] = l[6] & 15 | e, l[8] = l[8] & 63 | 128, i) {
|
|
83
81
|
if (a ||= 0, a < 0 || a + 16 > i.length) throw RangeError(`UUID byte range ${a}:${a + 15} is out of buffer bounds`);
|
|
84
|
-
for (let e = 0; e < 16; ++e) i[a + e] =
|
|
82
|
+
for (let e = 0; e < 16; ++e) i[a + e] = l[e];
|
|
85
83
|
return i;
|
|
86
84
|
}
|
|
87
|
-
return
|
|
85
|
+
return u(l);
|
|
88
86
|
}
|
|
89
|
-
var
|
|
87
|
+
var ie = { randomUUID: typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto) };
|
|
90
88
|
//#endregion
|
|
91
89
|
//#region ../../node_modules/uuid/dist/esm-browser/v4.js
|
|
92
|
-
function
|
|
93
|
-
if (
|
|
90
|
+
function ae(e, t, n) {
|
|
91
|
+
if (ie.randomUUID && !t && !e) return ie.randomUUID();
|
|
94
92
|
e ||= {};
|
|
95
|
-
let r = e.random ?? e.rng?.() ??
|
|
93
|
+
let r = e.random ?? e.rng?.() ?? p();
|
|
96
94
|
if (r.length < 16) throw Error("Random bytes length must be >= 16");
|
|
97
95
|
if (r[6] = r[6] & 15 | 64, r[8] = r[8] & 63 | 128, t) {
|
|
98
96
|
if (n ||= 0, n < 0 || n + 16 > t.length) throw RangeError(`UUID byte range ${n}:${n + 15} is out of buffer bounds`);
|
|
99
97
|
for (let e = 0; e < 16; ++e) t[n + e] = r[e];
|
|
100
98
|
return t;
|
|
101
99
|
}
|
|
102
|
-
return
|
|
100
|
+
return u(r);
|
|
103
101
|
}
|
|
104
102
|
//#endregion
|
|
105
103
|
//#region ../../node_modules/uuid/dist/esm-browser/sha1.js
|
|
106
|
-
function
|
|
104
|
+
function oe(e, t, n, r) {
|
|
107
105
|
switch (e) {
|
|
108
106
|
case 0: return t & n ^ ~t & r;
|
|
109
107
|
case 1: return t ^ n ^ r;
|
|
@@ -111,10 +109,10 @@ function re(e, t, n, r) {
|
|
|
111
109
|
case 3: return t ^ n ^ r;
|
|
112
110
|
}
|
|
113
111
|
}
|
|
114
|
-
function
|
|
112
|
+
function m(e, t) {
|
|
115
113
|
return e << t | e >>> 32 - t;
|
|
116
114
|
}
|
|
117
|
-
function
|
|
115
|
+
function se(e) {
|
|
118
116
|
let t = [
|
|
119
117
|
1518500249,
|
|
120
118
|
1859775393,
|
|
@@ -138,11 +136,11 @@ function ae(e) {
|
|
|
138
136
|
for (let e = 0; e < a; ++e) {
|
|
139
137
|
let r = new Uint32Array(80);
|
|
140
138
|
for (let t = 0; t < 16; ++t) r[t] = o[e][t];
|
|
141
|
-
for (let e = 16; e < 80; ++e) r[e] =
|
|
139
|
+
for (let e = 16; e < 80; ++e) r[e] = m(r[e - 3] ^ r[e - 8] ^ r[e - 14] ^ r[e - 16], 1);
|
|
142
140
|
let i = n[0], a = n[1], s = n[2], c = n[3], l = n[4];
|
|
143
141
|
for (let e = 0; e < 80; ++e) {
|
|
144
|
-
let n = Math.floor(e / 20), o =
|
|
145
|
-
l = c, c = s, s =
|
|
142
|
+
let n = Math.floor(e / 20), o = m(i, 5) + oe(n, a, s, c) + l + t[n] + r[e] >>> 0;
|
|
143
|
+
l = c, c = s, s = m(a, 30) >>> 0, a = i, i = o;
|
|
146
144
|
}
|
|
147
145
|
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;
|
|
148
146
|
}
|
|
@@ -150,10 +148,10 @@ function ae(e) {
|
|
|
150
148
|
}
|
|
151
149
|
//#endregion
|
|
152
150
|
//#region ../../node_modules/uuid/dist/esm-browser/v5.js
|
|
153
|
-
function
|
|
154
|
-
return
|
|
151
|
+
function ce(e, t, n, r) {
|
|
152
|
+
return re(80, se, e, t, n, r);
|
|
155
153
|
}
|
|
156
|
-
|
|
154
|
+
ce.DNS = te, ce.URL = ne, Object.freeze({ status: "aborted" });
|
|
157
155
|
function h(e, t, n) {
|
|
158
156
|
function r(n, r) {
|
|
159
157
|
var i;
|
|
@@ -180,24 +178,24 @@ var g = class extends Error {
|
|
|
180
178
|
constructor() {
|
|
181
179
|
super("Encountered Promise during synchronous parse. Use .parseAsync() instead.");
|
|
182
180
|
}
|
|
183
|
-
},
|
|
181
|
+
}, le = class extends Error {
|
|
184
182
|
constructor(e) {
|
|
185
183
|
super(`Encountered unidirectional transform during encode: ${e}`), this.name = "ZodEncodeError";
|
|
186
184
|
}
|
|
187
|
-
},
|
|
188
|
-
function
|
|
189
|
-
return e && Object.assign(
|
|
185
|
+
}, ue = {};
|
|
186
|
+
function _(e) {
|
|
187
|
+
return e && Object.assign(ue, e), ue;
|
|
190
188
|
}
|
|
191
189
|
//#endregion
|
|
192
190
|
//#region ../../node_modules/zod/v4/core/util.js
|
|
193
|
-
function
|
|
191
|
+
function de(e) {
|
|
194
192
|
let t = Object.values(e).filter((e) => typeof e == "number");
|
|
195
193
|
return Object.entries(e).filter(([e, n]) => t.indexOf(+e) === -1).map(([e, t]) => t);
|
|
196
194
|
}
|
|
197
|
-
function
|
|
195
|
+
function fe(e, t) {
|
|
198
196
|
return typeof t == "bigint" ? t.toString() : t;
|
|
199
197
|
}
|
|
200
|
-
function
|
|
198
|
+
function pe(e) {
|
|
201
199
|
return { get value() {
|
|
202
200
|
{
|
|
203
201
|
let t = e();
|
|
@@ -206,19 +204,19 @@ function ue(e) {
|
|
|
206
204
|
throw Error("cached value already set");
|
|
207
205
|
} };
|
|
208
206
|
}
|
|
209
|
-
function
|
|
207
|
+
function me(e) {
|
|
210
208
|
return e == null;
|
|
211
209
|
}
|
|
212
|
-
function
|
|
210
|
+
function he(e) {
|
|
213
211
|
let t = +!!e.startsWith("^"), n = e.endsWith("$") ? e.length - 1 : e.length;
|
|
214
212
|
return e.slice(t, n);
|
|
215
213
|
}
|
|
216
|
-
var
|
|
217
|
-
function
|
|
214
|
+
var ge = Symbol("evaluating");
|
|
215
|
+
function v(e, t, n) {
|
|
218
216
|
let r;
|
|
219
217
|
Object.defineProperty(e, t, {
|
|
220
218
|
get() {
|
|
221
|
-
if (r !==
|
|
219
|
+
if (r !== ge) return r === void 0 && (r = ge, r = n()), r;
|
|
222
220
|
},
|
|
223
221
|
set(n) {
|
|
224
222
|
Object.defineProperty(e, t, { value: n });
|
|
@@ -226,7 +224,7 @@ function y(e, t, n) {
|
|
|
226
224
|
configurable: !0
|
|
227
225
|
});
|
|
228
226
|
}
|
|
229
|
-
function
|
|
227
|
+
function y(e, t, n) {
|
|
230
228
|
Object.defineProperty(e, t, {
|
|
231
229
|
value: n,
|
|
232
230
|
writable: !0,
|
|
@@ -234,19 +232,19 @@ function b(e, t, n) {
|
|
|
234
232
|
configurable: !0
|
|
235
233
|
});
|
|
236
234
|
}
|
|
237
|
-
function
|
|
235
|
+
function b(...e) {
|
|
238
236
|
let t = {};
|
|
239
237
|
for (let n of e) Object.assign(t, Object.getOwnPropertyDescriptors(n));
|
|
240
238
|
return Object.defineProperties({}, t);
|
|
241
239
|
}
|
|
242
|
-
function
|
|
240
|
+
function _e(e) {
|
|
243
241
|
return JSON.stringify(e);
|
|
244
242
|
}
|
|
245
|
-
var
|
|
246
|
-
function
|
|
243
|
+
var ve = "captureStackTrace" in Error ? Error.captureStackTrace : (...e) => {};
|
|
244
|
+
function x(e) {
|
|
247
245
|
return typeof e == "object" && !!e && !Array.isArray(e);
|
|
248
246
|
}
|
|
249
|
-
var
|
|
247
|
+
var ye = pe(() => {
|
|
250
248
|
if (typeof navigator < "u" && navigator?.userAgent?.includes("Cloudflare")) return !1;
|
|
251
249
|
try {
|
|
252
250
|
return Function(""), !0;
|
|
@@ -254,29 +252,29 @@ var ge = ue(() => {
|
|
|
254
252
|
return !1;
|
|
255
253
|
}
|
|
256
254
|
});
|
|
257
|
-
function
|
|
258
|
-
if (
|
|
255
|
+
function S(e) {
|
|
256
|
+
if (x(e) === !1) return !1;
|
|
259
257
|
let t = e.constructor;
|
|
260
258
|
if (t === void 0) return !0;
|
|
261
259
|
let n = t.prototype;
|
|
262
|
-
return !(
|
|
260
|
+
return !(x(n) === !1 || Object.prototype.hasOwnProperty.call(n, "isPrototypeOf") === !1);
|
|
263
261
|
}
|
|
264
|
-
function
|
|
265
|
-
return
|
|
262
|
+
function be(e) {
|
|
263
|
+
return S(e) ? { ...e } : Array.isArray(e) ? [...e] : e;
|
|
266
264
|
}
|
|
267
|
-
var
|
|
265
|
+
var xe = new Set([
|
|
268
266
|
"string",
|
|
269
267
|
"number",
|
|
270
268
|
"symbol"
|
|
271
269
|
]);
|
|
272
|
-
function
|
|
270
|
+
function C(e) {
|
|
273
271
|
return e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
274
272
|
}
|
|
275
|
-
function
|
|
273
|
+
function w(e, t, n) {
|
|
276
274
|
let r = new e._zod.constr(t ?? e._zod.def);
|
|
277
275
|
return (!t || n?.parent) && (r._zod.parent = e), r;
|
|
278
276
|
}
|
|
279
|
-
function
|
|
277
|
+
function T(e) {
|
|
280
278
|
let t = e;
|
|
281
279
|
if (!t) return {};
|
|
282
280
|
if (typeof t == "string") return { error: () => t };
|
|
@@ -289,75 +287,75 @@ function E(e) {
|
|
|
289
287
|
error: () => t.error
|
|
290
288
|
} : t;
|
|
291
289
|
}
|
|
292
|
-
function
|
|
290
|
+
function Se(e) {
|
|
293
291
|
return Object.keys(e).filter((t) => e[t]._zod.optin === "optional" && e[t]._zod.optout === "optional");
|
|
294
292
|
}
|
|
295
293
|
-Number.MAX_VALUE, Number.MAX_VALUE;
|
|
296
|
-
function
|
|
294
|
+
function Ce(e, t) {
|
|
297
295
|
let n = e._zod.def;
|
|
298
|
-
return
|
|
296
|
+
return w(e, b(e._zod.def, {
|
|
299
297
|
get shape() {
|
|
300
298
|
let e = {};
|
|
301
299
|
for (let r in t) {
|
|
302
300
|
if (!(r in n.shape)) throw Error(`Unrecognized key: "${r}"`);
|
|
303
301
|
t[r] && (e[r] = n.shape[r]);
|
|
304
302
|
}
|
|
305
|
-
return
|
|
303
|
+
return y(this, "shape", e), e;
|
|
306
304
|
},
|
|
307
305
|
checks: []
|
|
308
306
|
}));
|
|
309
307
|
}
|
|
310
|
-
function
|
|
308
|
+
function we(e, t) {
|
|
311
309
|
let n = e._zod.def;
|
|
312
|
-
return
|
|
310
|
+
return w(e, b(e._zod.def, {
|
|
313
311
|
get shape() {
|
|
314
312
|
let r = { ...e._zod.def.shape };
|
|
315
313
|
for (let e in t) {
|
|
316
314
|
if (!(e in n.shape)) throw Error(`Unrecognized key: "${e}"`);
|
|
317
315
|
t[e] && delete r[e];
|
|
318
316
|
}
|
|
319
|
-
return
|
|
317
|
+
return y(this, "shape", r), r;
|
|
320
318
|
},
|
|
321
319
|
checks: []
|
|
322
320
|
}));
|
|
323
321
|
}
|
|
324
|
-
function
|
|
325
|
-
if (!
|
|
322
|
+
function Te(e, t) {
|
|
323
|
+
if (!S(t)) throw Error("Invalid input to extend: expected a plain object");
|
|
326
324
|
let n = e._zod.def.checks;
|
|
327
325
|
if (n && n.length > 0) throw Error("Object schemas containing refinements cannot be extended. Use `.safeExtend()` instead.");
|
|
328
|
-
return
|
|
326
|
+
return w(e, b(e._zod.def, {
|
|
329
327
|
get shape() {
|
|
330
328
|
let n = {
|
|
331
329
|
...e._zod.def.shape,
|
|
332
330
|
...t
|
|
333
331
|
};
|
|
334
|
-
return
|
|
332
|
+
return y(this, "shape", n), n;
|
|
335
333
|
},
|
|
336
334
|
checks: []
|
|
337
335
|
}));
|
|
338
336
|
}
|
|
339
|
-
function
|
|
340
|
-
if (!
|
|
341
|
-
return
|
|
337
|
+
function Ee(e, t) {
|
|
338
|
+
if (!S(t)) throw Error("Invalid input to safeExtend: expected a plain object");
|
|
339
|
+
return w(e, {
|
|
342
340
|
...e._zod.def,
|
|
343
341
|
get shape() {
|
|
344
342
|
let n = {
|
|
345
343
|
...e._zod.def.shape,
|
|
346
344
|
...t
|
|
347
345
|
};
|
|
348
|
-
return
|
|
346
|
+
return y(this, "shape", n), n;
|
|
349
347
|
},
|
|
350
348
|
checks: e._zod.def.checks
|
|
351
349
|
});
|
|
352
350
|
}
|
|
353
|
-
function
|
|
354
|
-
return
|
|
351
|
+
function De(e, t) {
|
|
352
|
+
return w(e, b(e._zod.def, {
|
|
355
353
|
get shape() {
|
|
356
354
|
let n = {
|
|
357
355
|
...e._zod.def.shape,
|
|
358
356
|
...t._zod.def.shape
|
|
359
357
|
};
|
|
360
|
-
return
|
|
358
|
+
return y(this, "shape", n), n;
|
|
361
359
|
},
|
|
362
360
|
get catchall() {
|
|
363
361
|
return t._zod.def.catchall;
|
|
@@ -365,8 +363,8 @@ function we(e, t) {
|
|
|
365
363
|
checks: []
|
|
366
364
|
}));
|
|
367
365
|
}
|
|
368
|
-
function
|
|
369
|
-
return
|
|
366
|
+
function Oe(e, t, n) {
|
|
367
|
+
return w(t, b(t._zod.def, {
|
|
370
368
|
get shape() {
|
|
371
369
|
let r = t._zod.def.shape, i = { ...r };
|
|
372
370
|
if (n) for (let t in n) {
|
|
@@ -380,13 +378,13 @@ function Te(e, t, n) {
|
|
|
380
378
|
type: "optional",
|
|
381
379
|
innerType: r[t]
|
|
382
380
|
}) : r[t];
|
|
383
|
-
return
|
|
381
|
+
return y(this, "shape", i), i;
|
|
384
382
|
},
|
|
385
383
|
checks: []
|
|
386
384
|
}));
|
|
387
385
|
}
|
|
388
|
-
function
|
|
389
|
-
return
|
|
386
|
+
function ke(e, t, n) {
|
|
387
|
+
return w(t, b(t._zod.def, {
|
|
390
388
|
get shape() {
|
|
391
389
|
let r = t._zod.def.shape, i = { ...r };
|
|
392
390
|
if (n) for (let t in n) {
|
|
@@ -400,33 +398,33 @@ function Ee(e, t, n) {
|
|
|
400
398
|
type: "nonoptional",
|
|
401
399
|
innerType: r[t]
|
|
402
400
|
});
|
|
403
|
-
return
|
|
401
|
+
return y(this, "shape", i), i;
|
|
404
402
|
},
|
|
405
403
|
checks: []
|
|
406
404
|
}));
|
|
407
405
|
}
|
|
408
|
-
function
|
|
406
|
+
function E(e, t = 0) {
|
|
409
407
|
if (e.aborted === !0) return !0;
|
|
410
408
|
for (let n = t; n < e.issues.length; n++) if (e.issues[n]?.continue !== !0) return !0;
|
|
411
409
|
return !1;
|
|
412
410
|
}
|
|
413
|
-
function
|
|
411
|
+
function Ae(e, t) {
|
|
414
412
|
return t.map((t) => {
|
|
415
413
|
var n;
|
|
416
414
|
return (n = t).path ?? (n.path = []), t.path.unshift(e), t;
|
|
417
415
|
});
|
|
418
416
|
}
|
|
419
|
-
function
|
|
417
|
+
function D(e) {
|
|
420
418
|
return typeof e == "string" ? e : e?.message;
|
|
421
419
|
}
|
|
422
|
-
function
|
|
420
|
+
function O(e, t, n) {
|
|
423
421
|
let r = {
|
|
424
422
|
...e,
|
|
425
423
|
path: e.path ?? []
|
|
426
424
|
};
|
|
427
|
-
return e.message || (r.message =
|
|
425
|
+
return e.message || (r.message = D(e.inst?._zod.def?.error?.(e)) ?? D(t?.error?.(e)) ?? D(n.customError?.(e)) ?? D(n.localeError?.(e)) ?? "Invalid input"), delete r.inst, delete r.continue, t?.reportInput || delete r.input, r;
|
|
428
426
|
}
|
|
429
|
-
function
|
|
427
|
+
function k(e) {
|
|
430
428
|
return Array.isArray(e) ? "array" : typeof e == "string" ? "string" : "unknown";
|
|
431
429
|
}
|
|
432
430
|
function A(...e) {
|
|
@@ -440,19 +438,19 @@ function A(...e) {
|
|
|
440
438
|
}
|
|
441
439
|
//#endregion
|
|
442
440
|
//#region ../../node_modules/zod/v4/core/errors.js
|
|
443
|
-
var
|
|
441
|
+
var je = (e, t) => {
|
|
444
442
|
e.name = "$ZodError", Object.defineProperty(e, "_zod", {
|
|
445
443
|
value: e._zod,
|
|
446
444
|
enumerable: !1
|
|
447
445
|
}), Object.defineProperty(e, "issues", {
|
|
448
446
|
value: t,
|
|
449
447
|
enumerable: !1
|
|
450
|
-
}), e.message = JSON.stringify(t,
|
|
448
|
+
}), e.message = JSON.stringify(t, fe, 2), Object.defineProperty(e, "toString", {
|
|
451
449
|
value: () => e.message,
|
|
452
450
|
enumerable: !1
|
|
453
451
|
});
|
|
454
|
-
},
|
|
455
|
-
function
|
|
452
|
+
}, Me = h("$ZodError", je), Ne = h("$ZodError", je, { Parent: Error });
|
|
453
|
+
function Pe(e, t = (e) => e.message) {
|
|
456
454
|
let n = {}, r = [];
|
|
457
455
|
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));
|
|
458
456
|
return {
|
|
@@ -460,7 +458,7 @@ function Me(e, t = (e) => e.message) {
|
|
|
460
458
|
fieldErrors: n
|
|
461
459
|
};
|
|
462
460
|
}
|
|
463
|
-
function
|
|
461
|
+
function Fe(e, t) {
|
|
464
462
|
let n = t || function(e) {
|
|
465
463
|
return e.message;
|
|
466
464
|
}, r = { _errors: [] }, i = (e) => {
|
|
@@ -480,28 +478,28 @@ function Ne(e, t) {
|
|
|
480
478
|
}
|
|
481
479
|
//#endregion
|
|
482
480
|
//#region ../../node_modules/zod/v4/core/parse.js
|
|
483
|
-
var
|
|
481
|
+
var j = (e) => (t, n, r, i) => {
|
|
484
482
|
let a = r ? Object.assign(r, { async: !1 }) : { async: !1 }, o = t._zod.run({
|
|
485
483
|
value: n,
|
|
486
484
|
issues: []
|
|
487
485
|
}, a);
|
|
488
486
|
if (o instanceof Promise) throw new g();
|
|
489
487
|
if (o.issues.length) {
|
|
490
|
-
let t = new (i?.Err ?? e)(o.issues.map((e) =>
|
|
491
|
-
throw
|
|
488
|
+
let t = new (i?.Err ?? e)(o.issues.map((e) => O(e, a, _())));
|
|
489
|
+
throw ve(t, i?.callee), t;
|
|
492
490
|
}
|
|
493
491
|
return o.value;
|
|
494
|
-
},
|
|
492
|
+
}, Ie = (e) => async (t, n, r, i) => {
|
|
495
493
|
let a = r ? Object.assign(r, { async: !0 }) : { async: !0 }, o = t._zod.run({
|
|
496
494
|
value: n,
|
|
497
495
|
issues: []
|
|
498
496
|
}, a);
|
|
499
497
|
if (o instanceof Promise && (o = await o), o.issues.length) {
|
|
500
|
-
let t = new (i?.Err ?? e)(o.issues.map((e) =>
|
|
501
|
-
throw
|
|
498
|
+
let t = new (i?.Err ?? e)(o.issues.map((e) => O(e, a, _())));
|
|
499
|
+
throw ve(t, i?.callee), t;
|
|
502
500
|
}
|
|
503
501
|
return o.value;
|
|
504
|
-
},
|
|
502
|
+
}, M = (e) => (t, n, r) => {
|
|
505
503
|
let i = r ? {
|
|
506
504
|
...r,
|
|
507
505
|
async: !1
|
|
@@ -512,71 +510,71 @@ var Pe = (e) => (t, n, r, i) => {
|
|
|
512
510
|
if (a instanceof Promise) throw new g();
|
|
513
511
|
return a.issues.length ? {
|
|
514
512
|
success: !1,
|
|
515
|
-
error: new (e ??
|
|
513
|
+
error: new (e ?? Me)(a.issues.map((e) => O(e, i, _())))
|
|
516
514
|
} : {
|
|
517
515
|
success: !0,
|
|
518
516
|
data: a.value
|
|
519
517
|
};
|
|
520
|
-
},
|
|
518
|
+
}, Le = /* @__PURE__*/ M(Ne), N = (e) => async (t, n, r) => {
|
|
521
519
|
let i = r ? Object.assign(r, { async: !0 }) : { async: !0 }, a = t._zod.run({
|
|
522
520
|
value: n,
|
|
523
521
|
issues: []
|
|
524
522
|
}, i);
|
|
525
523
|
return a instanceof Promise && (a = await a), a.issues.length ? {
|
|
526
524
|
success: !1,
|
|
527
|
-
error: new e(a.issues.map((e) =>
|
|
525
|
+
error: new e(a.issues.map((e) => O(e, i, _())))
|
|
528
526
|
} : {
|
|
529
527
|
success: !0,
|
|
530
528
|
data: a.value
|
|
531
529
|
};
|
|
532
|
-
},
|
|
533
|
-
let i = r ? Object.assign(r, { direction: "backward" }) : { direction: "backward" };
|
|
534
|
-
return Pe(e)(t, n, i);
|
|
535
|
-
}, ze = (e) => (t, n, r) => Pe(e)(t, n, r), Be = (e) => async (t, n, r) => {
|
|
536
|
-
let i = r ? Object.assign(r, { direction: "backward" }) : { direction: "backward" };
|
|
537
|
-
return Fe(e)(t, n, i);
|
|
538
|
-
}, Ve = (e) => async (t, n, r) => Fe(e)(t, n, r), He = (e) => (t, n, r) => {
|
|
530
|
+
}, Re = /* @__PURE__*/ N(Ne), ze = (e) => (t, n, r) => {
|
|
539
531
|
let i = r ? Object.assign(r, { direction: "backward" }) : { direction: "backward" };
|
|
540
532
|
return j(e)(t, n, i);
|
|
541
|
-
},
|
|
533
|
+
}, Be = (e) => (t, n, r) => j(e)(t, n, r), Ve = (e) => async (t, n, r) => {
|
|
534
|
+
let i = r ? Object.assign(r, { direction: "backward" }) : { direction: "backward" };
|
|
535
|
+
return Ie(e)(t, n, i);
|
|
536
|
+
}, He = (e) => async (t, n, r) => Ie(e)(t, n, r), Ue = (e) => (t, n, r) => {
|
|
542
537
|
let i = r ? Object.assign(r, { direction: "backward" }) : { direction: "backward" };
|
|
543
538
|
return M(e)(t, n, i);
|
|
544
|
-
},
|
|
545
|
-
|
|
546
|
-
return
|
|
539
|
+
}, We = (e) => (t, n, r) => M(e)(t, n, r), Ge = (e) => async (t, n, r) => {
|
|
540
|
+
let i = r ? Object.assign(r, { direction: "backward" }) : { direction: "backward" };
|
|
541
|
+
return N(e)(t, n, i);
|
|
542
|
+
}, Ke = (e) => async (t, n, r) => N(e)(t, n, r), qe = /^[cC][^\s-]{8,}$/, Je = /^[0-9a-z]+$/, Ye = /^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/, Xe = /^[0-9a-vA-V]{20}$/, Ze = /^[A-Za-z0-9]{27}$/, Qe = /^[a-zA-Z0-9_-]{21}$/, $e = /^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/, et = /^([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})$/, tt = (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)$/, nt = /^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/, rt = "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";
|
|
543
|
+
function it() {
|
|
544
|
+
return new RegExp(rt, "u");
|
|
547
545
|
}
|
|
548
|
-
var
|
|
549
|
-
function
|
|
546
|
+
var at = /^(?:(?: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])$/, ot = /^(([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}|:))$/, st = /^((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])$/, ct = /^(([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])$/, lt = /^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/, ut = /^[A-Za-z0-9_-]*$/, dt = /^(?=.{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])?)*\.?$/, ft = /^\+(?:[0-9]){6,14}[0-9]$/, pt = "(?:(?:\\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])))", mt = /*@__PURE__*/ RegExp(`^${pt}$`);
|
|
547
|
+
function ht(e) {
|
|
550
548
|
let t = "(?:[01]\\d|2[0-3]):[0-5]\\d";
|
|
551
549
|
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+)?)?`;
|
|
552
550
|
}
|
|
553
|
-
function ht(e) {
|
|
554
|
-
return RegExp(`^${mt(e)}$`);
|
|
555
|
-
}
|
|
556
551
|
function gt(e) {
|
|
557
|
-
|
|
552
|
+
return RegExp(`^${ht(e)}$`);
|
|
553
|
+
}
|
|
554
|
+
function _t(e) {
|
|
555
|
+
let t = ht({ precision: e.precision }), n = ["Z"];
|
|
558
556
|
e.local && n.push(""), e.offset && n.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");
|
|
559
557
|
let r = `${t}(?:${n.join("|")})`;
|
|
560
|
-
return RegExp(`^${
|
|
558
|
+
return RegExp(`^${pt}T(?:${r})$`);
|
|
561
559
|
}
|
|
562
|
-
var
|
|
560
|
+
var vt = (e) => {
|
|
563
561
|
let t = e ? `[\\s\\S]{${e?.minimum ?? 0},${e?.maximum ?? ""}}` : "[\\s\\S]*";
|
|
564
562
|
return RegExp(`^${t}$`);
|
|
565
|
-
},
|
|
563
|
+
}, yt = /^[^A-Z]*$/, bt = /^[^a-z]*$/, P = /*@__PURE__*/ h("$ZodCheck", (e, t) => {
|
|
566
564
|
var n;
|
|
567
565
|
e._zod ??= {}, e._zod.def = t, (n = e._zod).onattach ?? (n.onattach = []);
|
|
568
|
-
}),
|
|
566
|
+
}), xt = /*@__PURE__*/ h("$ZodCheckMaxLength", (e, t) => {
|
|
569
567
|
var n;
|
|
570
|
-
|
|
568
|
+
P.init(e, t), (n = e._zod.def).when ?? (n.when = (e) => {
|
|
571
569
|
let t = e.value;
|
|
572
|
-
return !
|
|
570
|
+
return !me(t) && t.length !== void 0;
|
|
573
571
|
}), e._zod.onattach.push((e) => {
|
|
574
572
|
let n = e._zod.bag.maximum ?? Infinity;
|
|
575
573
|
t.maximum < n && (e._zod.bag.maximum = t.maximum);
|
|
576
574
|
}), e._zod.check = (n) => {
|
|
577
575
|
let r = n.value;
|
|
578
576
|
if (r.length <= t.maximum) return;
|
|
579
|
-
let i =
|
|
577
|
+
let i = k(r);
|
|
580
578
|
n.issues.push({
|
|
581
579
|
origin: i,
|
|
582
580
|
code: "too_big",
|
|
@@ -587,18 +585,18 @@ var _t = (e) => {
|
|
|
587
585
|
continue: !t.abort
|
|
588
586
|
});
|
|
589
587
|
};
|
|
590
|
-
}),
|
|
588
|
+
}), St = /*@__PURE__*/ h("$ZodCheckMinLength", (e, t) => {
|
|
591
589
|
var n;
|
|
592
|
-
|
|
590
|
+
P.init(e, t), (n = e._zod.def).when ?? (n.when = (e) => {
|
|
593
591
|
let t = e.value;
|
|
594
|
-
return !
|
|
592
|
+
return !me(t) && t.length !== void 0;
|
|
595
593
|
}), e._zod.onattach.push((e) => {
|
|
596
594
|
let n = e._zod.bag.minimum ?? -Infinity;
|
|
597
595
|
t.minimum > n && (e._zod.bag.minimum = t.minimum);
|
|
598
596
|
}), e._zod.check = (n) => {
|
|
599
597
|
let r = n.value;
|
|
600
598
|
if (r.length >= t.minimum) return;
|
|
601
|
-
let i =
|
|
599
|
+
let i = k(r);
|
|
602
600
|
n.issues.push({
|
|
603
601
|
origin: i,
|
|
604
602
|
code: "too_small",
|
|
@@ -609,18 +607,18 @@ var _t = (e) => {
|
|
|
609
607
|
continue: !t.abort
|
|
610
608
|
});
|
|
611
609
|
};
|
|
612
|
-
}),
|
|
610
|
+
}), Ct = /*@__PURE__*/ h("$ZodCheckLengthEquals", (e, t) => {
|
|
613
611
|
var n;
|
|
614
|
-
|
|
612
|
+
P.init(e, t), (n = e._zod.def).when ?? (n.when = (e) => {
|
|
615
613
|
let t = e.value;
|
|
616
|
-
return !
|
|
614
|
+
return !me(t) && t.length !== void 0;
|
|
617
615
|
}), e._zod.onattach.push((e) => {
|
|
618
616
|
let n = e._zod.bag;
|
|
619
617
|
n.minimum = t.length, n.maximum = t.length, n.length = t.length;
|
|
620
618
|
}), e._zod.check = (n) => {
|
|
621
619
|
let r = n.value, i = r.length;
|
|
622
620
|
if (i === t.length) return;
|
|
623
|
-
let a =
|
|
621
|
+
let a = k(r), o = i > t.length;
|
|
624
622
|
n.issues.push({
|
|
625
623
|
origin: a,
|
|
626
624
|
...o ? {
|
|
@@ -637,9 +635,9 @@ var _t = (e) => {
|
|
|
637
635
|
continue: !t.abort
|
|
638
636
|
});
|
|
639
637
|
};
|
|
640
|
-
}),
|
|
638
|
+
}), F = /*@__PURE__*/ h("$ZodCheckStringFormat", (e, t) => {
|
|
641
639
|
var n, r;
|
|
642
|
-
|
|
640
|
+
P.init(e, t), e._zod.onattach.push((e) => {
|
|
643
641
|
let n = e._zod.bag;
|
|
644
642
|
n.format = t.format, t.pattern && (n.patterns ??= /* @__PURE__ */ new Set(), n.patterns.add(t.pattern));
|
|
645
643
|
}), t.pattern ? (n = e._zod).check ?? (n.check = (n) => {
|
|
@@ -653,8 +651,8 @@ var _t = (e) => {
|
|
|
653
651
|
continue: !t.abort
|
|
654
652
|
});
|
|
655
653
|
}) : (r = e._zod).check ?? (r.check = () => {});
|
|
656
|
-
}),
|
|
657
|
-
|
|
654
|
+
}), wt = /*@__PURE__*/ h("$ZodCheckRegex", (e, t) => {
|
|
655
|
+
F.init(e, t), e._zod.check = (n) => {
|
|
658
656
|
t.pattern.lastIndex = 0, !t.pattern.test(n.value) && n.issues.push({
|
|
659
657
|
origin: "string",
|
|
660
658
|
code: "invalid_format",
|
|
@@ -665,13 +663,13 @@ var _t = (e) => {
|
|
|
665
663
|
continue: !t.abort
|
|
666
664
|
});
|
|
667
665
|
};
|
|
668
|
-
}),
|
|
669
|
-
t.pattern ??=
|
|
670
|
-
}),
|
|
671
|
-
t.pattern ??=
|
|
672
|
-
}),
|
|
673
|
-
|
|
674
|
-
let n =
|
|
666
|
+
}), Tt = /*@__PURE__*/ h("$ZodCheckLowerCase", (e, t) => {
|
|
667
|
+
t.pattern ??= yt, F.init(e, t);
|
|
668
|
+
}), Et = /*@__PURE__*/ h("$ZodCheckUpperCase", (e, t) => {
|
|
669
|
+
t.pattern ??= bt, F.init(e, t);
|
|
670
|
+
}), Dt = /*@__PURE__*/ h("$ZodCheckIncludes", (e, t) => {
|
|
671
|
+
P.init(e, t);
|
|
672
|
+
let n = C(t.includes), r = new RegExp(typeof t.position == "number" ? `^.{${t.position}}${n}` : n);
|
|
675
673
|
t.pattern = r, e._zod.onattach.push((e) => {
|
|
676
674
|
let t = e._zod.bag;
|
|
677
675
|
t.patterns ??= /* @__PURE__ */ new Set(), t.patterns.add(r);
|
|
@@ -686,9 +684,9 @@ var _t = (e) => {
|
|
|
686
684
|
continue: !t.abort
|
|
687
685
|
});
|
|
688
686
|
};
|
|
689
|
-
}),
|
|
690
|
-
|
|
691
|
-
let n = RegExp(`^${
|
|
687
|
+
}), Ot = /*@__PURE__*/ h("$ZodCheckStartsWith", (e, t) => {
|
|
688
|
+
P.init(e, t);
|
|
689
|
+
let n = RegExp(`^${C(t.prefix)}.*`);
|
|
692
690
|
t.pattern ??= n, e._zod.onattach.push((e) => {
|
|
693
691
|
let t = e._zod.bag;
|
|
694
692
|
t.patterns ??= /* @__PURE__ */ new Set(), t.patterns.add(n);
|
|
@@ -703,9 +701,9 @@ var _t = (e) => {
|
|
|
703
701
|
continue: !t.abort
|
|
704
702
|
});
|
|
705
703
|
};
|
|
706
|
-
}),
|
|
707
|
-
|
|
708
|
-
let n = RegExp(`.*${
|
|
704
|
+
}), kt = /*@__PURE__*/ h("$ZodCheckEndsWith", (e, t) => {
|
|
705
|
+
P.init(e, t);
|
|
706
|
+
let n = RegExp(`.*${C(t.suffix)}$`);
|
|
709
707
|
t.pattern ??= n, e._zod.onattach.push((e) => {
|
|
710
708
|
let t = e._zod.bag;
|
|
711
709
|
t.patterns ??= /* @__PURE__ */ new Set(), t.patterns.add(n);
|
|
@@ -720,11 +718,11 @@ var _t = (e) => {
|
|
|
720
718
|
continue: !t.abort
|
|
721
719
|
});
|
|
722
720
|
};
|
|
723
|
-
}),
|
|
724
|
-
|
|
721
|
+
}), At = /*@__PURE__*/ h("$ZodCheckOverwrite", (e, t) => {
|
|
722
|
+
P.init(e, t), e._zod.check = (e) => {
|
|
725
723
|
e.value = t.tx(e.value);
|
|
726
724
|
};
|
|
727
|
-
}),
|
|
725
|
+
}), jt = class {
|
|
728
726
|
constructor(e = []) {
|
|
729
727
|
this.content = [], this.indent = 0, this && (this.args = e);
|
|
730
728
|
}
|
|
@@ -743,13 +741,13 @@ var _t = (e) => {
|
|
|
743
741
|
let e = Function, t = this?.args, n = [...(this?.content ?? [""]).map((e) => ` ${e}`)];
|
|
744
742
|
return new e(...t, n.join("\n"));
|
|
745
743
|
}
|
|
746
|
-
},
|
|
744
|
+
}, Mt = {
|
|
747
745
|
major: 4,
|
|
748
746
|
minor: 1,
|
|
749
747
|
patch: 11
|
|
750
|
-
},
|
|
748
|
+
}, I = /*@__PURE__*/ h("$ZodType", (e, t) => {
|
|
751
749
|
var n;
|
|
752
|
-
e ??= {}, e._zod.def = t, e._zod.bag = e._zod.bag || {}, e._zod.version =
|
|
750
|
+
e ??= {}, e._zod.def = t, e._zod.bag = e._zod.bag || {}, e._zod.version = Mt;
|
|
753
751
|
let r = [...e._zod.def.checks ?? []];
|
|
754
752
|
e._zod.traits.has("$ZodCheck") && r.unshift(e);
|
|
755
753
|
for (let t of r) for (let n of t._zod.onattach) n(e);
|
|
@@ -758,7 +756,7 @@ var _t = (e) => {
|
|
|
758
756
|
});
|
|
759
757
|
else {
|
|
760
758
|
let t = (e, t, n) => {
|
|
761
|
-
let r =
|
|
759
|
+
let r = E(e), i;
|
|
762
760
|
for (let a of t) {
|
|
763
761
|
if (a._zod.def.when) {
|
|
764
762
|
if (!a._zod.def.when(e)) continue;
|
|
@@ -766,16 +764,16 @@ var _t = (e) => {
|
|
|
766
764
|
let t = e.issues.length, o = a._zod.check(e);
|
|
767
765
|
if (o instanceof Promise && n?.async === !1) throw new g();
|
|
768
766
|
if (i || o instanceof Promise) i = (i ?? Promise.resolve()).then(async () => {
|
|
769
|
-
await o, e.issues.length !== t && (r ||=
|
|
767
|
+
await o, e.issues.length !== t && (r ||= E(e, t));
|
|
770
768
|
});
|
|
771
769
|
else {
|
|
772
770
|
if (e.issues.length === t) continue;
|
|
773
|
-
r ||=
|
|
771
|
+
r ||= E(e, t);
|
|
774
772
|
}
|
|
775
773
|
}
|
|
776
774
|
return i ? i.then(() => e) : e;
|
|
777
775
|
}, n = (n, i, a) => {
|
|
778
|
-
if (
|
|
776
|
+
if (E(n)) return n.aborted = !0, n;
|
|
779
777
|
let o = t(i, r, a);
|
|
780
778
|
if (o instanceof Promise) {
|
|
781
779
|
if (a.async === !1) throw new g();
|
|
@@ -806,17 +804,17 @@ var _t = (e) => {
|
|
|
806
804
|
e["~standard"] = {
|
|
807
805
|
validate: (t) => {
|
|
808
806
|
try {
|
|
809
|
-
let n =
|
|
807
|
+
let n = Le(e, t);
|
|
810
808
|
return n.success ? { value: n.data } : { issues: n.error?.issues };
|
|
811
809
|
} catch {
|
|
812
|
-
return
|
|
810
|
+
return Re(e, t).then((e) => e.success ? { value: e.data } : { issues: e.error?.issues });
|
|
813
811
|
}
|
|
814
812
|
},
|
|
815
813
|
vendor: "zod",
|
|
816
814
|
version: 1
|
|
817
815
|
};
|
|
818
|
-
}),
|
|
819
|
-
|
|
816
|
+
}), Nt = /*@__PURE__*/ h("$ZodString", (e, t) => {
|
|
817
|
+
I.init(e, t), e._zod.pattern = [...e?._zod.bag?.patterns ?? []].pop() ?? vt(e._zod.bag), e._zod.parse = (n, r) => {
|
|
820
818
|
if (t.coerce) try {
|
|
821
819
|
n.value = String(n.value);
|
|
822
820
|
} catch {}
|
|
@@ -828,10 +826,10 @@ var _t = (e) => {
|
|
|
828
826
|
}), n;
|
|
829
827
|
};
|
|
830
828
|
}), L = /*@__PURE__*/ h("$ZodStringFormat", (e, t) => {
|
|
831
|
-
|
|
832
|
-
}),
|
|
833
|
-
t.pattern ??=
|
|
834
|
-
}),
|
|
829
|
+
F.init(e, t), Nt.init(e, t);
|
|
830
|
+
}), Pt = /*@__PURE__*/ h("$ZodGUID", (e, t) => {
|
|
831
|
+
t.pattern ??= et, L.init(e, t);
|
|
832
|
+
}), Ft = /*@__PURE__*/ h("$ZodUUID", (e, t) => {
|
|
835
833
|
if (t.version) {
|
|
836
834
|
let e = {
|
|
837
835
|
v1: 1,
|
|
@@ -844,12 +842,12 @@ var _t = (e) => {
|
|
|
844
842
|
v8: 8
|
|
845
843
|
}[t.version];
|
|
846
844
|
if (e === void 0) throw Error(`Invalid UUID version: "${t.version}"`);
|
|
847
|
-
t.pattern ??=
|
|
848
|
-
} else t.pattern ??=
|
|
845
|
+
t.pattern ??= tt(e);
|
|
846
|
+
} else t.pattern ??= tt();
|
|
849
847
|
L.init(e, t);
|
|
850
|
-
}),
|
|
851
|
-
t.pattern ??=
|
|
852
|
-
}),
|
|
848
|
+
}), It = /*@__PURE__*/ h("$ZodEmail", (e, t) => {
|
|
849
|
+
t.pattern ??= nt, L.init(e, t);
|
|
850
|
+
}), Lt = /*@__PURE__*/ h("$ZodURL", (e, t) => {
|
|
853
851
|
L.init(e, t), e._zod.check = (n) => {
|
|
854
852
|
try {
|
|
855
853
|
let r = n.value.trim(), i = new URL(r);
|
|
@@ -857,7 +855,7 @@ var _t = (e) => {
|
|
|
857
855
|
code: "invalid_format",
|
|
858
856
|
format: "url",
|
|
859
857
|
note: "Invalid hostname",
|
|
860
|
-
pattern:
|
|
858
|
+
pattern: dt.source,
|
|
861
859
|
input: n.value,
|
|
862
860
|
inst: e,
|
|
863
861
|
continue: !t.abort
|
|
@@ -881,35 +879,35 @@ var _t = (e) => {
|
|
|
881
879
|
});
|
|
882
880
|
}
|
|
883
881
|
};
|
|
884
|
-
}),
|
|
885
|
-
t.pattern ??=
|
|
886
|
-
}),
|
|
887
|
-
t.pattern ??=
|
|
888
|
-
}),
|
|
889
|
-
t.pattern ??= Ke, L.init(e, t);
|
|
890
|
-
}), zt = /*@__PURE__*/ h("$ZodCUID2", (e, t) => {
|
|
882
|
+
}), Rt = /*@__PURE__*/ h("$ZodEmoji", (e, t) => {
|
|
883
|
+
t.pattern ??= it(), L.init(e, t);
|
|
884
|
+
}), zt = /*@__PURE__*/ h("$ZodNanoID", (e, t) => {
|
|
885
|
+
t.pattern ??= Qe, L.init(e, t);
|
|
886
|
+
}), Bt = /*@__PURE__*/ h("$ZodCUID", (e, t) => {
|
|
891
887
|
t.pattern ??= qe, L.init(e, t);
|
|
892
|
-
}),
|
|
888
|
+
}), Vt = /*@__PURE__*/ h("$ZodCUID2", (e, t) => {
|
|
893
889
|
t.pattern ??= Je, L.init(e, t);
|
|
894
|
-
}),
|
|
890
|
+
}), Ht = /*@__PURE__*/ h("$ZodULID", (e, t) => {
|
|
895
891
|
t.pattern ??= Ye, L.init(e, t);
|
|
896
|
-
}),
|
|
892
|
+
}), Ut = /*@__PURE__*/ h("$ZodXID", (e, t) => {
|
|
897
893
|
t.pattern ??= Xe, L.init(e, t);
|
|
898
|
-
}),
|
|
894
|
+
}), Wt = /*@__PURE__*/ h("$ZodKSUID", (e, t) => {
|
|
895
|
+
t.pattern ??= Ze, L.init(e, t);
|
|
896
|
+
}), Gt = /*@__PURE__*/ h("$ZodISODateTime", (e, t) => {
|
|
897
|
+
t.pattern ??= _t(t), L.init(e, t);
|
|
898
|
+
}), Kt = /*@__PURE__*/ h("$ZodISODate", (e, t) => {
|
|
899
|
+
t.pattern ??= mt, L.init(e, t);
|
|
900
|
+
}), qt = /*@__PURE__*/ h("$ZodISOTime", (e, t) => {
|
|
899
901
|
t.pattern ??= gt(t), L.init(e, t);
|
|
900
|
-
}),
|
|
901
|
-
t.pattern ??=
|
|
902
|
-
}),
|
|
903
|
-
t.pattern ??=
|
|
904
|
-
}), Kt = /*@__PURE__*/ h("$ZodISODuration", (e, t) => {
|
|
905
|
-
t.pattern ??= Qe, L.init(e, t);
|
|
906
|
-
}), qt = /*@__PURE__*/ h("$ZodIPv4", (e, t) => {
|
|
907
|
-
t.pattern ??= it, L.init(e, t), e._zod.onattach.push((e) => {
|
|
902
|
+
}), Jt = /*@__PURE__*/ h("$ZodISODuration", (e, t) => {
|
|
903
|
+
t.pattern ??= $e, L.init(e, t);
|
|
904
|
+
}), Yt = /*@__PURE__*/ h("$ZodIPv4", (e, t) => {
|
|
905
|
+
t.pattern ??= at, L.init(e, t), e._zod.onattach.push((e) => {
|
|
908
906
|
let t = e._zod.bag;
|
|
909
907
|
t.format = "ipv4";
|
|
910
908
|
});
|
|
911
|
-
}),
|
|
912
|
-
t.pattern ??=
|
|
909
|
+
}), Xt = /*@__PURE__*/ h("$ZodIPv6", (e, t) => {
|
|
910
|
+
t.pattern ??= ot, L.init(e, t), e._zod.onattach.push((e) => {
|
|
913
911
|
let t = e._zod.bag;
|
|
914
912
|
t.format = "ipv6";
|
|
915
913
|
}), e._zod.check = (n) => {
|
|
@@ -925,10 +923,10 @@ var _t = (e) => {
|
|
|
925
923
|
});
|
|
926
924
|
}
|
|
927
925
|
};
|
|
928
|
-
}),
|
|
929
|
-
t.pattern ??=
|
|
930
|
-
}),
|
|
931
|
-
t.pattern ??=
|
|
926
|
+
}), Zt = /*@__PURE__*/ h("$ZodCIDRv4", (e, t) => {
|
|
927
|
+
t.pattern ??= st, L.init(e, t);
|
|
928
|
+
}), Qt = /*@__PURE__*/ h("$ZodCIDRv6", (e, t) => {
|
|
929
|
+
t.pattern ??= ct, L.init(e, t), e._zod.check = (n) => {
|
|
932
930
|
let r = n.value.split("/");
|
|
933
931
|
try {
|
|
934
932
|
if (r.length !== 2) throw Error();
|
|
@@ -948,7 +946,7 @@ var _t = (e) => {
|
|
|
948
946
|
}
|
|
949
947
|
};
|
|
950
948
|
});
|
|
951
|
-
function
|
|
949
|
+
function $t(e) {
|
|
952
950
|
if (e === "") return !0;
|
|
953
951
|
if (e.length % 4 != 0) return !1;
|
|
954
952
|
try {
|
|
@@ -957,11 +955,11 @@ function Zt(e) {
|
|
|
957
955
|
return !1;
|
|
958
956
|
}
|
|
959
957
|
}
|
|
960
|
-
var
|
|
961
|
-
t.pattern ??=
|
|
958
|
+
var en = /*@__PURE__*/ h("$ZodBase64", (e, t) => {
|
|
959
|
+
t.pattern ??= lt, L.init(e, t), e._zod.onattach.push((e) => {
|
|
962
960
|
e._zod.bag.contentEncoding = "base64";
|
|
963
961
|
}), e._zod.check = (n) => {
|
|
964
|
-
|
|
962
|
+
$t(n.value) || n.issues.push({
|
|
965
963
|
code: "invalid_format",
|
|
966
964
|
format: "base64",
|
|
967
965
|
input: n.value,
|
|
@@ -970,16 +968,16 @@ var Qt = /*@__PURE__*/ h("$ZodBase64", (e, t) => {
|
|
|
970
968
|
});
|
|
971
969
|
};
|
|
972
970
|
});
|
|
973
|
-
function
|
|
974
|
-
if (!
|
|
971
|
+
function tn(e) {
|
|
972
|
+
if (!ut.test(e)) return !1;
|
|
975
973
|
let t = e.replace(/[-_]/g, (e) => e === "-" ? "+" : "/");
|
|
976
|
-
return
|
|
974
|
+
return $t(t.padEnd(Math.ceil(t.length / 4) * 4, "="));
|
|
977
975
|
}
|
|
978
|
-
var
|
|
979
|
-
t.pattern ??=
|
|
976
|
+
var nn = /*@__PURE__*/ h("$ZodBase64URL", (e, t) => {
|
|
977
|
+
t.pattern ??= ut, L.init(e, t), e._zod.onattach.push((e) => {
|
|
980
978
|
e._zod.bag.contentEncoding = "base64url";
|
|
981
979
|
}), e._zod.check = (n) => {
|
|
982
|
-
|
|
980
|
+
tn(n.value) || n.issues.push({
|
|
983
981
|
code: "invalid_format",
|
|
984
982
|
format: "base64url",
|
|
985
983
|
input: n.value,
|
|
@@ -987,10 +985,10 @@ var en = /*@__PURE__*/ h("$ZodBase64URL", (e, t) => {
|
|
|
987
985
|
continue: !t.abort
|
|
988
986
|
});
|
|
989
987
|
};
|
|
990
|
-
}),
|
|
991
|
-
t.pattern ??=
|
|
988
|
+
}), rn = /*@__PURE__*/ h("$ZodE164", (e, t) => {
|
|
989
|
+
t.pattern ??= ft, L.init(e, t);
|
|
992
990
|
});
|
|
993
|
-
function
|
|
991
|
+
function an(e, t = null) {
|
|
994
992
|
try {
|
|
995
993
|
let n = e.split(".");
|
|
996
994
|
if (n.length !== 3) return !1;
|
|
@@ -1002,9 +1000,9 @@ function nn(e, t = null) {
|
|
|
1002
1000
|
return !1;
|
|
1003
1001
|
}
|
|
1004
1002
|
}
|
|
1005
|
-
var
|
|
1003
|
+
var on = /*@__PURE__*/ h("$ZodJWT", (e, t) => {
|
|
1006
1004
|
L.init(e, t), e._zod.check = (n) => {
|
|
1007
|
-
|
|
1005
|
+
an(n.value, t.alg) || n.issues.push({
|
|
1008
1006
|
code: "invalid_format",
|
|
1009
1007
|
format: "jwt",
|
|
1010
1008
|
input: n.value,
|
|
@@ -1012,21 +1010,21 @@ var rn = /*@__PURE__*/ h("$ZodJWT", (e, t) => {
|
|
|
1012
1010
|
continue: !t.abort
|
|
1013
1011
|
});
|
|
1014
1012
|
};
|
|
1015
|
-
}),
|
|
1016
|
-
|
|
1017
|
-
}),
|
|
1018
|
-
|
|
1013
|
+
}), sn = /*@__PURE__*/ h("$ZodUnknown", (e, t) => {
|
|
1014
|
+
I.init(e, t), e._zod.parse = (e) => e;
|
|
1015
|
+
}), cn = /*@__PURE__*/ h("$ZodNever", (e, t) => {
|
|
1016
|
+
I.init(e, t), e._zod.parse = (t, n) => (t.issues.push({
|
|
1019
1017
|
expected: "never",
|
|
1020
1018
|
code: "invalid_type",
|
|
1021
1019
|
input: t.value,
|
|
1022
1020
|
inst: e
|
|
1023
1021
|
}), t);
|
|
1024
1022
|
});
|
|
1025
|
-
function
|
|
1026
|
-
e.issues.length && t.issues.push(...
|
|
1023
|
+
function ln(e, t, n) {
|
|
1024
|
+
e.issues.length && t.issues.push(...Ae(n, e.issues)), t.value[n] = e.value;
|
|
1027
1025
|
}
|
|
1028
|
-
var
|
|
1029
|
-
|
|
1026
|
+
var un = /*@__PURE__*/ h("$ZodArray", (e, t) => {
|
|
1027
|
+
I.init(e, t), e._zod.parse = (n, r) => {
|
|
1030
1028
|
let i = n.value;
|
|
1031
1029
|
if (!Array.isArray(i)) return n.issues.push({
|
|
1032
1030
|
expected: "array",
|
|
@@ -1041,18 +1039,18 @@ var cn = /*@__PURE__*/ h("$ZodArray", (e, t) => {
|
|
|
1041
1039
|
value: o,
|
|
1042
1040
|
issues: []
|
|
1043
1041
|
}, r);
|
|
1044
|
-
s instanceof Promise ? a.push(s.then((t) =>
|
|
1042
|
+
s instanceof Promise ? a.push(s.then((t) => ln(t, n, e))) : ln(s, n, e);
|
|
1045
1043
|
}
|
|
1046
1044
|
return a.length ? Promise.all(a).then(() => n) : n;
|
|
1047
1045
|
};
|
|
1048
1046
|
});
|
|
1049
1047
|
function R(e, t, n, r) {
|
|
1050
|
-
e.issues.length && t.issues.push(...
|
|
1048
|
+
e.issues.length && t.issues.push(...Ae(n, e.issues)), e.value === void 0 ? n in r && (t.value[n] = void 0) : t.value[n] = e.value;
|
|
1051
1049
|
}
|
|
1052
|
-
function
|
|
1050
|
+
function dn(e) {
|
|
1053
1051
|
let t = Object.keys(e.shape);
|
|
1054
1052
|
for (let n of t) if (!e.shape?.[n]?._zod?.traits?.has("$ZodType")) throw Error(`Invalid element at key "${n}": expected a Zod schema`);
|
|
1055
|
-
let n =
|
|
1053
|
+
let n = Se(e.shape);
|
|
1056
1054
|
return {
|
|
1057
1055
|
...e,
|
|
1058
1056
|
keys: t,
|
|
@@ -1061,7 +1059,7 @@ function ln(e) {
|
|
|
1061
1059
|
optionalKeys: new Set(n)
|
|
1062
1060
|
};
|
|
1063
1061
|
}
|
|
1064
|
-
function
|
|
1062
|
+
function fn(e, t, n, r, i, a) {
|
|
1065
1063
|
let o = [], s = i.keySet, c = i.catchall._zod, l = c.def.type;
|
|
1066
1064
|
for (let i of Object.keys(t)) {
|
|
1067
1065
|
if (s.has(i)) continue;
|
|
@@ -1082,16 +1080,16 @@ function un(e, t, n, r, i, a) {
|
|
|
1082
1080
|
inst: a
|
|
1083
1081
|
}), e.length ? Promise.all(e).then(() => n) : n;
|
|
1084
1082
|
}
|
|
1085
|
-
var
|
|
1086
|
-
if (
|
|
1083
|
+
var pn = /*@__PURE__*/ h("$ZodObject", (e, t) => {
|
|
1084
|
+
if (I.init(e, t), !Object.getOwnPropertyDescriptor(t, "shape")?.get) {
|
|
1087
1085
|
let e = t.shape;
|
|
1088
1086
|
Object.defineProperty(t, "shape", { get: () => {
|
|
1089
1087
|
let n = { ...e };
|
|
1090
1088
|
return Object.defineProperty(t, "shape", { value: n }), n;
|
|
1091
1089
|
} });
|
|
1092
1090
|
}
|
|
1093
|
-
let n =
|
|
1094
|
-
|
|
1091
|
+
let n = pe(() => dn(t));
|
|
1092
|
+
v(e._zod, "propValues", () => {
|
|
1095
1093
|
let e = t.shape, n = {};
|
|
1096
1094
|
for (let t in e) {
|
|
1097
1095
|
let r = e[t]._zod;
|
|
@@ -1102,7 +1100,7 @@ var dn = /*@__PURE__*/ h("$ZodObject", (e, t) => {
|
|
|
1102
1100
|
}
|
|
1103
1101
|
return n;
|
|
1104
1102
|
});
|
|
1105
|
-
let r =
|
|
1103
|
+
let r = x, i = t.catchall, a;
|
|
1106
1104
|
e._zod.parse = (t, o) => {
|
|
1107
1105
|
a ??= n.value;
|
|
1108
1106
|
let s = t.value;
|
|
@@ -1121,17 +1119,17 @@ var dn = /*@__PURE__*/ h("$ZodObject", (e, t) => {
|
|
|
1121
1119
|
}, o);
|
|
1122
1120
|
n instanceof Promise ? c.push(n.then((n) => R(n, t, e, s))) : R(n, t, e, s);
|
|
1123
1121
|
}
|
|
1124
|
-
return i ?
|
|
1122
|
+
return i ? fn(c, s, t, o, n.value, e) : c.length ? Promise.all(c).then(() => t) : t;
|
|
1125
1123
|
};
|
|
1126
|
-
}),
|
|
1127
|
-
|
|
1128
|
-
let n = e._zod.parse, r =
|
|
1129
|
-
let t = new
|
|
1124
|
+
}), mn = /*@__PURE__*/ h("$ZodObjectJIT", (e, t) => {
|
|
1125
|
+
pn.init(e, t);
|
|
1126
|
+
let n = e._zod.parse, r = pe(() => dn(t)), i = (e) => {
|
|
1127
|
+
let t = new jt([
|
|
1130
1128
|
"shape",
|
|
1131
1129
|
"payload",
|
|
1132
1130
|
"ctx"
|
|
1133
1131
|
]), n = r.value, i = (e) => {
|
|
1134
|
-
let t =
|
|
1132
|
+
let t = _e(e);
|
|
1135
1133
|
return `shape[${t}]._zod.run({ value: input[${t}], issues: [] }, ctx)`;
|
|
1136
1134
|
};
|
|
1137
1135
|
t.write("const input = payload.value;");
|
|
@@ -1139,7 +1137,7 @@ var dn = /*@__PURE__*/ h("$ZodObject", (e, t) => {
|
|
|
1139
1137
|
for (let e of n.keys) a[e] = `key_${o++}`;
|
|
1140
1138
|
t.write("const newResult = {};");
|
|
1141
1139
|
for (let e of n.keys) {
|
|
1142
|
-
let n = a[e], r =
|
|
1140
|
+
let n = a[e], r = _e(e);
|
|
1143
1141
|
t.write(`const ${n} = ${i(e)};`), t.write(`
|
|
1144
1142
|
if (${n}.issues.length) {
|
|
1145
1143
|
payload.issues = payload.issues.concat(${n}.issues.map(iss => ({
|
|
@@ -1162,11 +1160,11 @@ var dn = /*@__PURE__*/ h("$ZodObject", (e, t) => {
|
|
|
1162
1160
|
t.write("payload.value = newResult;"), t.write("return payload;");
|
|
1163
1161
|
let s = t.compile();
|
|
1164
1162
|
return (t, n) => s(e, t, n);
|
|
1165
|
-
}, a, o =
|
|
1163
|
+
}, a, o = x, s = !ue.jitless, c = s && ye.value, l = t.catchall, u;
|
|
1166
1164
|
e._zod.parse = (d, f) => {
|
|
1167
1165
|
u ??= r.value;
|
|
1168
1166
|
let p = d.value;
|
|
1169
|
-
return o(p) ? s && c && f?.async === !1 && f.jitless !== !0 ? (a ||= i(t.shape), d = a(d, f), l ?
|
|
1167
|
+
return o(p) ? s && c && f?.async === !1 && f.jitless !== !0 ? (a ||= i(t.shape), d = a(d, f), l ? fn([], p, d, f, u, e) : d) : n(d, f) : (d.issues.push({
|
|
1170
1168
|
expected: "object",
|
|
1171
1169
|
code: "invalid_type",
|
|
1172
1170
|
input: p,
|
|
@@ -1174,23 +1172,23 @@ var dn = /*@__PURE__*/ h("$ZodObject", (e, t) => {
|
|
|
1174
1172
|
}), d);
|
|
1175
1173
|
};
|
|
1176
1174
|
});
|
|
1177
|
-
function
|
|
1175
|
+
function hn(e, t, n, r) {
|
|
1178
1176
|
for (let n of e) if (n.issues.length === 0) return t.value = n.value, t;
|
|
1179
|
-
let i = e.filter((e) => !
|
|
1177
|
+
let i = e.filter((e) => !E(e));
|
|
1180
1178
|
return i.length === 1 ? (t.value = i[0].value, i[0]) : (t.issues.push({
|
|
1181
1179
|
code: "invalid_union",
|
|
1182
1180
|
input: t.value,
|
|
1183
1181
|
inst: n,
|
|
1184
|
-
errors: e.map((e) => e.issues.map((e) =>
|
|
1182
|
+
errors: e.map((e) => e.issues.map((e) => O(e, r, _())))
|
|
1185
1183
|
}), t);
|
|
1186
1184
|
}
|
|
1187
|
-
var
|
|
1188
|
-
|
|
1185
|
+
var gn = /*@__PURE__*/ h("$ZodUnion", (e, t) => {
|
|
1186
|
+
I.init(e, t), v(e._zod, "optin", () => t.options.some((e) => e._zod.optin === "optional") ? "optional" : void 0), v(e._zod, "optout", () => t.options.some((e) => e._zod.optout === "optional") ? "optional" : void 0), v(e._zod, "values", () => {
|
|
1189
1187
|
if (t.options.every((e) => e._zod.values)) return new Set(t.options.flatMap((e) => Array.from(e._zod.values)));
|
|
1190
|
-
}),
|
|
1188
|
+
}), v(e._zod, "pattern", () => {
|
|
1191
1189
|
if (t.options.every((e) => e._zod.pattern)) {
|
|
1192
1190
|
let e = t.options.map((e) => e._zod.pattern);
|
|
1193
|
-
return RegExp(`^(${e.map((e) =>
|
|
1191
|
+
return RegExp(`^(${e.map((e) => he(e.source)).join("|")})$`);
|
|
1194
1192
|
}
|
|
1195
1193
|
});
|
|
1196
1194
|
let n = t.options.length === 1, r = t.options[0]._zod.run;
|
|
@@ -1208,10 +1206,10 @@ var mn = /*@__PURE__*/ h("$ZodUnion", (e, t) => {
|
|
|
1208
1206
|
s.push(t);
|
|
1209
1207
|
}
|
|
1210
1208
|
}
|
|
1211
|
-
return o ? Promise.all(s).then((t) =>
|
|
1209
|
+
return o ? Promise.all(s).then((t) => hn(t, i, e, a)) : hn(s, i, e, a);
|
|
1212
1210
|
};
|
|
1213
|
-
}),
|
|
1214
|
-
|
|
1211
|
+
}), _n = /*@__PURE__*/ h("$ZodIntersection", (e, t) => {
|
|
1212
|
+
I.init(e, t), e._zod.parse = (e, n) => {
|
|
1215
1213
|
let r = e.value, i = t.left._zod.run({
|
|
1216
1214
|
value: r,
|
|
1217
1215
|
issues: []
|
|
@@ -1219,21 +1217,21 @@ var mn = /*@__PURE__*/ h("$ZodUnion", (e, t) => {
|
|
|
1219
1217
|
value: r,
|
|
1220
1218
|
issues: []
|
|
1221
1219
|
}, n);
|
|
1222
|
-
return i instanceof Promise || a instanceof Promise ? Promise.all([i, a]).then(([t, n]) =>
|
|
1220
|
+
return i instanceof Promise || a instanceof Promise ? Promise.all([i, a]).then(([t, n]) => yn(e, t, n)) : yn(e, i, a);
|
|
1223
1221
|
};
|
|
1224
1222
|
});
|
|
1225
|
-
function
|
|
1223
|
+
function vn(e, t) {
|
|
1226
1224
|
if (e === t || e instanceof Date && t instanceof Date && +e == +t) return {
|
|
1227
1225
|
valid: !0,
|
|
1228
1226
|
data: e
|
|
1229
1227
|
};
|
|
1230
|
-
if (
|
|
1228
|
+
if (S(e) && S(t)) {
|
|
1231
1229
|
let n = Object.keys(t), r = Object.keys(e).filter((e) => n.indexOf(e) !== -1), i = {
|
|
1232
1230
|
...e,
|
|
1233
1231
|
...t
|
|
1234
1232
|
};
|
|
1235
1233
|
for (let n of r) {
|
|
1236
|
-
let r =
|
|
1234
|
+
let r = vn(e[n], t[n]);
|
|
1237
1235
|
if (!r.valid) return {
|
|
1238
1236
|
valid: !1,
|
|
1239
1237
|
mergeErrorPath: [n, ...r.mergeErrorPath]
|
|
@@ -1252,7 +1250,7 @@ function z(e, t) {
|
|
|
1252
1250
|
};
|
|
1253
1251
|
let n = [];
|
|
1254
1252
|
for (let r = 0; r < e.length; r++) {
|
|
1255
|
-
let i = e[r], a = t[r], o =
|
|
1253
|
+
let i = e[r], a = t[r], o = vn(i, a);
|
|
1256
1254
|
if (!o.valid) return {
|
|
1257
1255
|
valid: !1,
|
|
1258
1256
|
mergeErrorPath: [r, ...o.mergeErrorPath]
|
|
@@ -1269,16 +1267,16 @@ function z(e, t) {
|
|
|
1269
1267
|
mergeErrorPath: []
|
|
1270
1268
|
};
|
|
1271
1269
|
}
|
|
1272
|
-
function
|
|
1273
|
-
if (t.issues.length && e.issues.push(...t.issues), n.issues.length && e.issues.push(...n.issues),
|
|
1274
|
-
let r =
|
|
1270
|
+
function yn(e, t, n) {
|
|
1271
|
+
if (t.issues.length && e.issues.push(...t.issues), n.issues.length && e.issues.push(...n.issues), E(e)) return e;
|
|
1272
|
+
let r = vn(t.value, n.value);
|
|
1275
1273
|
if (!r.valid) throw Error(`Unmergable intersection. Error path: ${JSON.stringify(r.mergeErrorPath)}`);
|
|
1276
1274
|
return e.value = r.data, e;
|
|
1277
1275
|
}
|
|
1278
|
-
var
|
|
1279
|
-
|
|
1280
|
-
let n =
|
|
1281
|
-
e._zod.values = r, e._zod.pattern = RegExp(`^(${n.filter((e) =>
|
|
1276
|
+
var bn = /*@__PURE__*/ h("$ZodEnum", (e, t) => {
|
|
1277
|
+
I.init(e, t);
|
|
1278
|
+
let n = de(t.entries), r = new Set(n);
|
|
1279
|
+
e._zod.values = r, e._zod.pattern = RegExp(`^(${n.filter((e) => xe.has(typeof e)).map((e) => typeof e == "string" ? C(e) : e.toString()).join("|")})$`), e._zod.parse = (t, i) => {
|
|
1282
1280
|
let a = t.value;
|
|
1283
1281
|
return r.has(a) || t.issues.push({
|
|
1284
1282
|
code: "invalid_value",
|
|
@@ -1287,60 +1285,60 @@ var _n = /*@__PURE__*/ h("$ZodEnum", (e, t) => {
|
|
|
1287
1285
|
inst: e
|
|
1288
1286
|
}), t;
|
|
1289
1287
|
};
|
|
1290
|
-
}),
|
|
1291
|
-
|
|
1292
|
-
if (r.direction === "backward") throw new
|
|
1288
|
+
}), xn = /*@__PURE__*/ h("$ZodTransform", (e, t) => {
|
|
1289
|
+
I.init(e, t), e._zod.parse = (n, r) => {
|
|
1290
|
+
if (r.direction === "backward") throw new le(e.constructor.name);
|
|
1293
1291
|
let i = t.transform(n.value, n);
|
|
1294
1292
|
if (r.async) return (i instanceof Promise ? i : Promise.resolve(i)).then((e) => (n.value = e, n));
|
|
1295
1293
|
if (i instanceof Promise) throw new g();
|
|
1296
1294
|
return n.value = i, n;
|
|
1297
1295
|
};
|
|
1298
1296
|
});
|
|
1299
|
-
function
|
|
1297
|
+
function Sn(e, t) {
|
|
1300
1298
|
return e.issues.length && t === void 0 ? {
|
|
1301
1299
|
issues: [],
|
|
1302
1300
|
value: void 0
|
|
1303
1301
|
} : e;
|
|
1304
1302
|
}
|
|
1305
|
-
var
|
|
1306
|
-
|
|
1303
|
+
var Cn = /*@__PURE__*/ h("$ZodOptional", (e, t) => {
|
|
1304
|
+
I.init(e, t), e._zod.optin = "optional", e._zod.optout = "optional", v(e._zod, "values", () => t.innerType._zod.values ? new Set([...t.innerType._zod.values, void 0]) : void 0), v(e._zod, "pattern", () => {
|
|
1307
1305
|
let e = t.innerType._zod.pattern;
|
|
1308
|
-
return e ? RegExp(`^(${
|
|
1306
|
+
return e ? RegExp(`^(${he(e.source)})?$`) : void 0;
|
|
1309
1307
|
}), e._zod.parse = (e, n) => {
|
|
1310
1308
|
if (t.innerType._zod.optin === "optional") {
|
|
1311
1309
|
let r = t.innerType._zod.run(e, n);
|
|
1312
|
-
return r instanceof Promise ? r.then((t) =>
|
|
1310
|
+
return r instanceof Promise ? r.then((t) => Sn(t, e.value)) : Sn(r, e.value);
|
|
1313
1311
|
}
|
|
1314
1312
|
return e.value === void 0 ? e : t.innerType._zod.run(e, n);
|
|
1315
1313
|
};
|
|
1316
|
-
}),
|
|
1317
|
-
|
|
1314
|
+
}), wn = /*@__PURE__*/ h("$ZodNullable", (e, t) => {
|
|
1315
|
+
I.init(e, t), v(e._zod, "optin", () => t.innerType._zod.optin), v(e._zod, "optout", () => t.innerType._zod.optout), v(e._zod, "pattern", () => {
|
|
1318
1316
|
let e = t.innerType._zod.pattern;
|
|
1319
|
-
return e ? RegExp(`^(${
|
|
1320
|
-
}),
|
|
1321
|
-
}),
|
|
1322
|
-
|
|
1317
|
+
return e ? RegExp(`^(${he(e.source)}|null)$`) : void 0;
|
|
1318
|
+
}), v(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);
|
|
1319
|
+
}), Tn = /*@__PURE__*/ h("$ZodDefault", (e, t) => {
|
|
1320
|
+
I.init(e, t), e._zod.optin = "optional", v(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (e, n) => {
|
|
1323
1321
|
if (n.direction === "backward") return t.innerType._zod.run(e, n);
|
|
1324
1322
|
if (e.value === void 0) return e.value = t.defaultValue, e;
|
|
1325
1323
|
let r = t.innerType._zod.run(e, n);
|
|
1326
|
-
return r instanceof Promise ? r.then((e) =>
|
|
1324
|
+
return r instanceof Promise ? r.then((e) => En(e, t)) : En(r, t);
|
|
1327
1325
|
};
|
|
1328
1326
|
});
|
|
1329
|
-
function
|
|
1327
|
+
function En(e, t) {
|
|
1330
1328
|
return e.value === void 0 && (e.value = t.defaultValue), e;
|
|
1331
1329
|
}
|
|
1332
|
-
var
|
|
1333
|
-
|
|
1334
|
-
}),
|
|
1335
|
-
|
|
1330
|
+
var Dn = /*@__PURE__*/ h("$ZodPrefault", (e, t) => {
|
|
1331
|
+
I.init(e, t), e._zod.optin = "optional", v(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));
|
|
1332
|
+
}), On = /*@__PURE__*/ h("$ZodNonOptional", (e, t) => {
|
|
1333
|
+
I.init(e, t), v(e._zod, "values", () => {
|
|
1336
1334
|
let e = t.innerType._zod.values;
|
|
1337
1335
|
return e ? new Set([...e].filter((e) => e !== void 0)) : void 0;
|
|
1338
1336
|
}), e._zod.parse = (n, r) => {
|
|
1339
1337
|
let i = t.innerType._zod.run(n, r);
|
|
1340
|
-
return i instanceof Promise ? i.then((t) =>
|
|
1338
|
+
return i instanceof Promise ? i.then((t) => kn(t, e)) : kn(i, e);
|
|
1341
1339
|
};
|
|
1342
1340
|
});
|
|
1343
|
-
function
|
|
1341
|
+
function kn(e, t) {
|
|
1344
1342
|
return !e.issues.length && e.value === void 0 && e.issues.push({
|
|
1345
1343
|
code: "invalid_type",
|
|
1346
1344
|
expected: "nonoptional",
|
|
@@ -1348,54 +1346,54 @@ function En(e, t) {
|
|
|
1348
1346
|
inst: t
|
|
1349
1347
|
}), e;
|
|
1350
1348
|
}
|
|
1351
|
-
var
|
|
1352
|
-
|
|
1349
|
+
var An = /*@__PURE__*/ h("$ZodCatch", (e, t) => {
|
|
1350
|
+
I.init(e, t), v(e._zod, "optin", () => t.innerType._zod.optin), v(e._zod, "optout", () => t.innerType._zod.optout), v(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (e, n) => {
|
|
1353
1351
|
if (n.direction === "backward") return t.innerType._zod.run(e, n);
|
|
1354
1352
|
let r = t.innerType._zod.run(e, n);
|
|
1355
1353
|
return r instanceof Promise ? r.then((r) => (e.value = r.value, r.issues.length && (e.value = t.catchValue({
|
|
1356
1354
|
...e,
|
|
1357
|
-
error: { issues: r.issues.map((e) =>
|
|
1355
|
+
error: { issues: r.issues.map((e) => O(e, n, _())) },
|
|
1358
1356
|
input: e.value
|
|
1359
1357
|
}), e.issues = []), e)) : (e.value = r.value, r.issues.length && (e.value = t.catchValue({
|
|
1360
1358
|
...e,
|
|
1361
|
-
error: { issues: r.issues.map((e) =>
|
|
1359
|
+
error: { issues: r.issues.map((e) => O(e, n, _())) },
|
|
1362
1360
|
input: e.value
|
|
1363
1361
|
}), e.issues = []), e);
|
|
1364
1362
|
};
|
|
1365
|
-
}),
|
|
1366
|
-
|
|
1363
|
+
}), jn = /*@__PURE__*/ h("$ZodPipe", (e, t) => {
|
|
1364
|
+
I.init(e, t), v(e._zod, "values", () => t.in._zod.values), v(e._zod, "optin", () => t.in._zod.optin), v(e._zod, "optout", () => t.out._zod.optout), v(e._zod, "propValues", () => t.in._zod.propValues), e._zod.parse = (e, n) => {
|
|
1367
1365
|
if (n.direction === "backward") {
|
|
1368
1366
|
let r = t.out._zod.run(e, n);
|
|
1369
|
-
return r instanceof Promise ? r.then((e) =>
|
|
1367
|
+
return r instanceof Promise ? r.then((e) => z(e, t.in, n)) : z(r, t.in, n);
|
|
1370
1368
|
}
|
|
1371
1369
|
let r = t.in._zod.run(e, n);
|
|
1372
|
-
return r instanceof Promise ? r.then((e) =>
|
|
1370
|
+
return r instanceof Promise ? r.then((e) => z(e, t.out, n)) : z(r, t.out, n);
|
|
1373
1371
|
};
|
|
1374
1372
|
});
|
|
1375
|
-
function
|
|
1373
|
+
function z(e, t, n) {
|
|
1376
1374
|
return e.issues.length ? (e.aborted = !0, e) : t._zod.run({
|
|
1377
1375
|
value: e.value,
|
|
1378
1376
|
issues: e.issues
|
|
1379
1377
|
}, n);
|
|
1380
1378
|
}
|
|
1381
|
-
var
|
|
1382
|
-
|
|
1379
|
+
var Mn = /*@__PURE__*/ h("$ZodReadonly", (e, t) => {
|
|
1380
|
+
I.init(e, t), v(e._zod, "propValues", () => t.innerType._zod.propValues), v(e._zod, "values", () => t.innerType._zod.values), v(e._zod, "optin", () => t.innerType._zod.optin), v(e._zod, "optout", () => t.innerType._zod.optout), e._zod.parse = (e, n) => {
|
|
1383
1381
|
if (n.direction === "backward") return t.innerType._zod.run(e, n);
|
|
1384
1382
|
let r = t.innerType._zod.run(e, n);
|
|
1385
|
-
return r instanceof Promise ? r.then(
|
|
1383
|
+
return r instanceof Promise ? r.then(Nn) : Nn(r);
|
|
1386
1384
|
};
|
|
1387
1385
|
});
|
|
1388
|
-
function
|
|
1386
|
+
function Nn(e) {
|
|
1389
1387
|
return e.value = Object.freeze(e.value), e;
|
|
1390
1388
|
}
|
|
1391
|
-
var
|
|
1392
|
-
|
|
1389
|
+
var Pn = /*@__PURE__*/ h("$ZodCustom", (e, t) => {
|
|
1390
|
+
P.init(e, t), I.init(e, t), e._zod.parse = (e, t) => e, e._zod.check = (n) => {
|
|
1393
1391
|
let r = n.value, i = t.fn(r);
|
|
1394
|
-
if (i instanceof Promise) return i.then((t) =>
|
|
1395
|
-
|
|
1392
|
+
if (i instanceof Promise) return i.then((t) => Fn(t, n, r, e));
|
|
1393
|
+
Fn(i, n, r, e);
|
|
1396
1394
|
};
|
|
1397
1395
|
});
|
|
1398
|
-
function
|
|
1396
|
+
function Fn(e, t, n, r) {
|
|
1399
1397
|
if (!e) {
|
|
1400
1398
|
let e = {
|
|
1401
1399
|
code: "custom",
|
|
@@ -1409,7 +1407,7 @@ function Mn(e, t, n, r) {
|
|
|
1409
1407
|
}
|
|
1410
1408
|
//#endregion
|
|
1411
1409
|
//#region ../../node_modules/zod/v4/core/registries.js
|
|
1412
|
-
var
|
|
1410
|
+
var In = class {
|
|
1413
1411
|
constructor() {
|
|
1414
1412
|
this._map = /* @__PURE__ */ new WeakMap(), this._idmap = /* @__PURE__ */ new Map();
|
|
1415
1413
|
}
|
|
@@ -1445,220 +1443,220 @@ var Nn = class {
|
|
|
1445
1443
|
return this._map.has(e);
|
|
1446
1444
|
}
|
|
1447
1445
|
};
|
|
1448
|
-
function
|
|
1449
|
-
return new
|
|
1446
|
+
function Ln() {
|
|
1447
|
+
return new In();
|
|
1450
1448
|
}
|
|
1451
|
-
var
|
|
1449
|
+
var B = /*@__PURE__*/ Ln();
|
|
1452
1450
|
//#endregion
|
|
1453
1451
|
//#region ../../node_modules/zod/v4/core/api.js
|
|
1454
|
-
function
|
|
1452
|
+
function Rn(e, t) {
|
|
1455
1453
|
return new e({
|
|
1456
1454
|
type: "string",
|
|
1457
|
-
...
|
|
1455
|
+
...T(t)
|
|
1458
1456
|
});
|
|
1459
1457
|
}
|
|
1460
|
-
function
|
|
1458
|
+
function zn(e, t) {
|
|
1461
1459
|
return new e({
|
|
1462
1460
|
type: "string",
|
|
1463
1461
|
format: "email",
|
|
1464
1462
|
check: "string_format",
|
|
1465
1463
|
abort: !1,
|
|
1466
|
-
...
|
|
1464
|
+
...T(t)
|
|
1467
1465
|
});
|
|
1468
1466
|
}
|
|
1469
|
-
function
|
|
1467
|
+
function Bn(e, t) {
|
|
1470
1468
|
return new e({
|
|
1471
1469
|
type: "string",
|
|
1472
1470
|
format: "guid",
|
|
1473
1471
|
check: "string_format",
|
|
1474
1472
|
abort: !1,
|
|
1475
|
-
...
|
|
1473
|
+
...T(t)
|
|
1476
1474
|
});
|
|
1477
1475
|
}
|
|
1478
|
-
function
|
|
1476
|
+
function Vn(e, t) {
|
|
1479
1477
|
return new e({
|
|
1480
1478
|
type: "string",
|
|
1481
1479
|
format: "uuid",
|
|
1482
1480
|
check: "string_format",
|
|
1483
1481
|
abort: !1,
|
|
1484
|
-
...
|
|
1482
|
+
...T(t)
|
|
1485
1483
|
});
|
|
1486
1484
|
}
|
|
1487
|
-
function
|
|
1485
|
+
function Hn(e, t) {
|
|
1488
1486
|
return new e({
|
|
1489
1487
|
type: "string",
|
|
1490
1488
|
format: "uuid",
|
|
1491
1489
|
check: "string_format",
|
|
1492
1490
|
abort: !1,
|
|
1493
1491
|
version: "v4",
|
|
1494
|
-
...
|
|
1492
|
+
...T(t)
|
|
1495
1493
|
});
|
|
1496
1494
|
}
|
|
1497
|
-
function
|
|
1495
|
+
function Un(e, t) {
|
|
1498
1496
|
return new e({
|
|
1499
1497
|
type: "string",
|
|
1500
1498
|
format: "uuid",
|
|
1501
1499
|
check: "string_format",
|
|
1502
1500
|
abort: !1,
|
|
1503
1501
|
version: "v6",
|
|
1504
|
-
...
|
|
1502
|
+
...T(t)
|
|
1505
1503
|
});
|
|
1506
1504
|
}
|
|
1507
|
-
function
|
|
1505
|
+
function Wn(e, t) {
|
|
1508
1506
|
return new e({
|
|
1509
1507
|
type: "string",
|
|
1510
1508
|
format: "uuid",
|
|
1511
1509
|
check: "string_format",
|
|
1512
1510
|
abort: !1,
|
|
1513
1511
|
version: "v7",
|
|
1514
|
-
...
|
|
1512
|
+
...T(t)
|
|
1515
1513
|
});
|
|
1516
1514
|
}
|
|
1517
|
-
function
|
|
1515
|
+
function Gn(e, t) {
|
|
1518
1516
|
return new e({
|
|
1519
1517
|
type: "string",
|
|
1520
1518
|
format: "url",
|
|
1521
1519
|
check: "string_format",
|
|
1522
1520
|
abort: !1,
|
|
1523
|
-
...
|
|
1521
|
+
...T(t)
|
|
1524
1522
|
});
|
|
1525
1523
|
}
|
|
1526
|
-
function
|
|
1524
|
+
function Kn(e, t) {
|
|
1527
1525
|
return new e({
|
|
1528
1526
|
type: "string",
|
|
1529
1527
|
format: "emoji",
|
|
1530
1528
|
check: "string_format",
|
|
1531
1529
|
abort: !1,
|
|
1532
|
-
...
|
|
1530
|
+
...T(t)
|
|
1533
1531
|
});
|
|
1534
1532
|
}
|
|
1535
|
-
function
|
|
1533
|
+
function qn(e, t) {
|
|
1536
1534
|
return new e({
|
|
1537
1535
|
type: "string",
|
|
1538
1536
|
format: "nanoid",
|
|
1539
1537
|
check: "string_format",
|
|
1540
1538
|
abort: !1,
|
|
1541
|
-
...
|
|
1539
|
+
...T(t)
|
|
1542
1540
|
});
|
|
1543
1541
|
}
|
|
1544
|
-
function
|
|
1542
|
+
function Jn(e, t) {
|
|
1545
1543
|
return new e({
|
|
1546
1544
|
type: "string",
|
|
1547
1545
|
format: "cuid",
|
|
1548
1546
|
check: "string_format",
|
|
1549
1547
|
abort: !1,
|
|
1550
|
-
...
|
|
1548
|
+
...T(t)
|
|
1551
1549
|
});
|
|
1552
1550
|
}
|
|
1553
|
-
function
|
|
1551
|
+
function Yn(e, t) {
|
|
1554
1552
|
return new e({
|
|
1555
1553
|
type: "string",
|
|
1556
1554
|
format: "cuid2",
|
|
1557
1555
|
check: "string_format",
|
|
1558
1556
|
abort: !1,
|
|
1559
|
-
...
|
|
1557
|
+
...T(t)
|
|
1560
1558
|
});
|
|
1561
1559
|
}
|
|
1562
|
-
function
|
|
1560
|
+
function Xn(e, t) {
|
|
1563
1561
|
return new e({
|
|
1564
1562
|
type: "string",
|
|
1565
1563
|
format: "ulid",
|
|
1566
1564
|
check: "string_format",
|
|
1567
1565
|
abort: !1,
|
|
1568
|
-
...
|
|
1566
|
+
...T(t)
|
|
1569
1567
|
});
|
|
1570
1568
|
}
|
|
1571
|
-
function
|
|
1569
|
+
function Zn(e, t) {
|
|
1572
1570
|
return new e({
|
|
1573
1571
|
type: "string",
|
|
1574
1572
|
format: "xid",
|
|
1575
1573
|
check: "string_format",
|
|
1576
1574
|
abort: !1,
|
|
1577
|
-
...
|
|
1575
|
+
...T(t)
|
|
1578
1576
|
});
|
|
1579
1577
|
}
|
|
1580
|
-
function
|
|
1578
|
+
function Qn(e, t) {
|
|
1581
1579
|
return new e({
|
|
1582
1580
|
type: "string",
|
|
1583
1581
|
format: "ksuid",
|
|
1584
1582
|
check: "string_format",
|
|
1585
1583
|
abort: !1,
|
|
1586
|
-
...
|
|
1584
|
+
...T(t)
|
|
1587
1585
|
});
|
|
1588
1586
|
}
|
|
1589
|
-
function
|
|
1587
|
+
function $n(e, t) {
|
|
1590
1588
|
return new e({
|
|
1591
1589
|
type: "string",
|
|
1592
1590
|
format: "ipv4",
|
|
1593
1591
|
check: "string_format",
|
|
1594
1592
|
abort: !1,
|
|
1595
|
-
...
|
|
1593
|
+
...T(t)
|
|
1596
1594
|
});
|
|
1597
1595
|
}
|
|
1598
|
-
function
|
|
1596
|
+
function er(e, t) {
|
|
1599
1597
|
return new e({
|
|
1600
1598
|
type: "string",
|
|
1601
1599
|
format: "ipv6",
|
|
1602
1600
|
check: "string_format",
|
|
1603
1601
|
abort: !1,
|
|
1604
|
-
...
|
|
1602
|
+
...T(t)
|
|
1605
1603
|
});
|
|
1606
1604
|
}
|
|
1607
|
-
function
|
|
1605
|
+
function tr(e, t) {
|
|
1608
1606
|
return new e({
|
|
1609
1607
|
type: "string",
|
|
1610
1608
|
format: "cidrv4",
|
|
1611
1609
|
check: "string_format",
|
|
1612
1610
|
abort: !1,
|
|
1613
|
-
...
|
|
1611
|
+
...T(t)
|
|
1614
1612
|
});
|
|
1615
1613
|
}
|
|
1616
|
-
function
|
|
1614
|
+
function nr(e, t) {
|
|
1617
1615
|
return new e({
|
|
1618
1616
|
type: "string",
|
|
1619
1617
|
format: "cidrv6",
|
|
1620
1618
|
check: "string_format",
|
|
1621
1619
|
abort: !1,
|
|
1622
|
-
...
|
|
1620
|
+
...T(t)
|
|
1623
1621
|
});
|
|
1624
1622
|
}
|
|
1625
|
-
function
|
|
1623
|
+
function rr(e, t) {
|
|
1626
1624
|
return new e({
|
|
1627
1625
|
type: "string",
|
|
1628
1626
|
format: "base64",
|
|
1629
1627
|
check: "string_format",
|
|
1630
1628
|
abort: !1,
|
|
1631
|
-
...
|
|
1629
|
+
...T(t)
|
|
1632
1630
|
});
|
|
1633
1631
|
}
|
|
1634
|
-
function
|
|
1632
|
+
function ir(e, t) {
|
|
1635
1633
|
return new e({
|
|
1636
1634
|
type: "string",
|
|
1637
1635
|
format: "base64url",
|
|
1638
1636
|
check: "string_format",
|
|
1639
1637
|
abort: !1,
|
|
1640
|
-
...
|
|
1638
|
+
...T(t)
|
|
1641
1639
|
});
|
|
1642
1640
|
}
|
|
1643
|
-
function
|
|
1641
|
+
function ar(e, t) {
|
|
1644
1642
|
return new e({
|
|
1645
1643
|
type: "string",
|
|
1646
1644
|
format: "e164",
|
|
1647
1645
|
check: "string_format",
|
|
1648
1646
|
abort: !1,
|
|
1649
|
-
...
|
|
1647
|
+
...T(t)
|
|
1650
1648
|
});
|
|
1651
1649
|
}
|
|
1652
|
-
function
|
|
1650
|
+
function or(e, t) {
|
|
1653
1651
|
return new e({
|
|
1654
1652
|
type: "string",
|
|
1655
1653
|
format: "jwt",
|
|
1656
1654
|
check: "string_format",
|
|
1657
1655
|
abort: !1,
|
|
1658
|
-
...
|
|
1656
|
+
...T(t)
|
|
1659
1657
|
});
|
|
1660
1658
|
}
|
|
1661
|
-
function
|
|
1659
|
+
function sr(e, t) {
|
|
1662
1660
|
return new e({
|
|
1663
1661
|
type: "string",
|
|
1664
1662
|
format: "datetime",
|
|
@@ -1666,145 +1664,145 @@ function ir(e, t) {
|
|
|
1666
1664
|
offset: !1,
|
|
1667
1665
|
local: !1,
|
|
1668
1666
|
precision: null,
|
|
1669
|
-
...
|
|
1667
|
+
...T(t)
|
|
1670
1668
|
});
|
|
1671
1669
|
}
|
|
1672
|
-
function
|
|
1670
|
+
function cr(e, t) {
|
|
1673
1671
|
return new e({
|
|
1674
1672
|
type: "string",
|
|
1675
1673
|
format: "date",
|
|
1676
1674
|
check: "string_format",
|
|
1677
|
-
...
|
|
1675
|
+
...T(t)
|
|
1678
1676
|
});
|
|
1679
1677
|
}
|
|
1680
|
-
function
|
|
1678
|
+
function lr(e, t) {
|
|
1681
1679
|
return new e({
|
|
1682
1680
|
type: "string",
|
|
1683
1681
|
format: "time",
|
|
1684
1682
|
check: "string_format",
|
|
1685
1683
|
precision: null,
|
|
1686
|
-
...
|
|
1684
|
+
...T(t)
|
|
1687
1685
|
});
|
|
1688
1686
|
}
|
|
1689
|
-
function
|
|
1687
|
+
function ur(e, t) {
|
|
1690
1688
|
return new e({
|
|
1691
1689
|
type: "string",
|
|
1692
1690
|
format: "duration",
|
|
1693
1691
|
check: "string_format",
|
|
1694
|
-
...
|
|
1692
|
+
...T(t)
|
|
1695
1693
|
});
|
|
1696
1694
|
}
|
|
1697
|
-
function
|
|
1695
|
+
function dr(e) {
|
|
1698
1696
|
return new e({ type: "unknown" });
|
|
1699
1697
|
}
|
|
1700
|
-
function
|
|
1698
|
+
function fr(e, t) {
|
|
1701
1699
|
return new e({
|
|
1702
1700
|
type: "never",
|
|
1703
|
-
...
|
|
1701
|
+
...T(t)
|
|
1704
1702
|
});
|
|
1705
1703
|
}
|
|
1706
|
-
function
|
|
1707
|
-
return new
|
|
1704
|
+
function pr(e, t) {
|
|
1705
|
+
return new xt({
|
|
1708
1706
|
check: "max_length",
|
|
1709
|
-
...
|
|
1707
|
+
...T(t),
|
|
1710
1708
|
maximum: e
|
|
1711
1709
|
});
|
|
1712
1710
|
}
|
|
1713
|
-
function
|
|
1714
|
-
return new
|
|
1711
|
+
function V(e, t) {
|
|
1712
|
+
return new St({
|
|
1715
1713
|
check: "min_length",
|
|
1716
|
-
...
|
|
1714
|
+
...T(t),
|
|
1717
1715
|
minimum: e
|
|
1718
1716
|
});
|
|
1719
1717
|
}
|
|
1720
|
-
function
|
|
1721
|
-
return new
|
|
1718
|
+
function mr(e, t) {
|
|
1719
|
+
return new Ct({
|
|
1722
1720
|
check: "length_equals",
|
|
1723
|
-
...
|
|
1721
|
+
...T(t),
|
|
1724
1722
|
length: e
|
|
1725
1723
|
});
|
|
1726
1724
|
}
|
|
1727
|
-
function
|
|
1728
|
-
return new
|
|
1725
|
+
function hr(e, t) {
|
|
1726
|
+
return new wt({
|
|
1729
1727
|
check: "string_format",
|
|
1730
1728
|
format: "regex",
|
|
1731
|
-
...
|
|
1729
|
+
...T(t),
|
|
1732
1730
|
pattern: e
|
|
1733
1731
|
});
|
|
1734
1732
|
}
|
|
1735
|
-
function
|
|
1736
|
-
return new
|
|
1733
|
+
function gr(e) {
|
|
1734
|
+
return new Tt({
|
|
1737
1735
|
check: "string_format",
|
|
1738
1736
|
format: "lowercase",
|
|
1739
|
-
...
|
|
1737
|
+
...T(e)
|
|
1740
1738
|
});
|
|
1741
1739
|
}
|
|
1742
|
-
function
|
|
1743
|
-
return new
|
|
1740
|
+
function _r(e) {
|
|
1741
|
+
return new Et({
|
|
1744
1742
|
check: "string_format",
|
|
1745
1743
|
format: "uppercase",
|
|
1746
|
-
...
|
|
1744
|
+
...T(e)
|
|
1747
1745
|
});
|
|
1748
1746
|
}
|
|
1749
|
-
function
|
|
1750
|
-
return new
|
|
1747
|
+
function vr(e, t) {
|
|
1748
|
+
return new Dt({
|
|
1751
1749
|
check: "string_format",
|
|
1752
1750
|
format: "includes",
|
|
1753
|
-
...
|
|
1751
|
+
...T(t),
|
|
1754
1752
|
includes: e
|
|
1755
1753
|
});
|
|
1756
1754
|
}
|
|
1757
|
-
function
|
|
1758
|
-
return new
|
|
1755
|
+
function yr(e, t) {
|
|
1756
|
+
return new Ot({
|
|
1759
1757
|
check: "string_format",
|
|
1760
1758
|
format: "starts_with",
|
|
1761
|
-
...
|
|
1759
|
+
...T(t),
|
|
1762
1760
|
prefix: e
|
|
1763
1761
|
});
|
|
1764
1762
|
}
|
|
1765
|
-
function
|
|
1766
|
-
return new
|
|
1763
|
+
function br(e, t) {
|
|
1764
|
+
return new kt({
|
|
1767
1765
|
check: "string_format",
|
|
1768
1766
|
format: "ends_with",
|
|
1769
|
-
...
|
|
1767
|
+
...T(t),
|
|
1770
1768
|
suffix: e
|
|
1771
1769
|
});
|
|
1772
1770
|
}
|
|
1773
|
-
function
|
|
1774
|
-
return new
|
|
1771
|
+
function H(e) {
|
|
1772
|
+
return new At({
|
|
1775
1773
|
check: "overwrite",
|
|
1776
1774
|
tx: e
|
|
1777
1775
|
});
|
|
1778
1776
|
}
|
|
1779
|
-
function
|
|
1780
|
-
return
|
|
1777
|
+
function xr(e) {
|
|
1778
|
+
return H((t) => t.normalize(e));
|
|
1781
1779
|
}
|
|
1782
|
-
function
|
|
1783
|
-
return
|
|
1780
|
+
function Sr() {
|
|
1781
|
+
return H((e) => e.trim());
|
|
1784
1782
|
}
|
|
1785
|
-
function
|
|
1786
|
-
return
|
|
1783
|
+
function Cr() {
|
|
1784
|
+
return H((e) => e.toLowerCase());
|
|
1787
1785
|
}
|
|
1788
|
-
function
|
|
1789
|
-
return
|
|
1786
|
+
function wr() {
|
|
1787
|
+
return H((e) => e.toUpperCase());
|
|
1790
1788
|
}
|
|
1791
|
-
function
|
|
1789
|
+
function Tr(e, t, n) {
|
|
1792
1790
|
return new e({
|
|
1793
1791
|
type: "array",
|
|
1794
1792
|
element: t,
|
|
1795
|
-
...
|
|
1793
|
+
...T(n)
|
|
1796
1794
|
});
|
|
1797
1795
|
}
|
|
1798
|
-
function
|
|
1796
|
+
function Er(e, t, n) {
|
|
1799
1797
|
return new e({
|
|
1800
1798
|
type: "custom",
|
|
1801
1799
|
check: "custom",
|
|
1802
1800
|
fn: t,
|
|
1803
|
-
...
|
|
1801
|
+
...T(n)
|
|
1804
1802
|
});
|
|
1805
1803
|
}
|
|
1806
|
-
function
|
|
1807
|
-
let t =
|
|
1804
|
+
function Dr(e) {
|
|
1805
|
+
let t = Or((n) => (n.addIssue = (e) => {
|
|
1808
1806
|
if (typeof e == "string") n.issues.push(A(e, n.value, t._zod.def));
|
|
1809
1807
|
else {
|
|
1810
1808
|
let r = e;
|
|
@@ -1813,221 +1811,221 @@ function wr(e) {
|
|
|
1813
1811
|
}, e(n.value, n)));
|
|
1814
1812
|
return t;
|
|
1815
1813
|
}
|
|
1816
|
-
function
|
|
1817
|
-
let n = new
|
|
1814
|
+
function Or(e, t) {
|
|
1815
|
+
let n = new P({
|
|
1818
1816
|
check: "custom",
|
|
1819
|
-
...
|
|
1817
|
+
...T(t)
|
|
1820
1818
|
});
|
|
1821
1819
|
return n._zod.check = e, n;
|
|
1822
1820
|
}
|
|
1823
1821
|
//#endregion
|
|
1824
1822
|
//#region ../../node_modules/zod/v4/classic/iso.js
|
|
1825
|
-
var
|
|
1826
|
-
|
|
1823
|
+
var kr = /*@__PURE__*/ h("ZodISODateTime", (e, t) => {
|
|
1824
|
+
Gt.init(e, t), G.init(e, t);
|
|
1827
1825
|
});
|
|
1828
|
-
function
|
|
1829
|
-
return
|
|
1826
|
+
function Ar(e) {
|
|
1827
|
+
return sr(kr, e);
|
|
1830
1828
|
}
|
|
1831
|
-
var
|
|
1832
|
-
|
|
1829
|
+
var jr = /*@__PURE__*/ h("ZodISODate", (e, t) => {
|
|
1830
|
+
Kt.init(e, t), G.init(e, t);
|
|
1833
1831
|
});
|
|
1834
|
-
function
|
|
1835
|
-
return
|
|
1832
|
+
function Mr(e) {
|
|
1833
|
+
return cr(jr, e);
|
|
1836
1834
|
}
|
|
1837
|
-
var
|
|
1838
|
-
|
|
1835
|
+
var Nr = /*@__PURE__*/ h("ZodISOTime", (e, t) => {
|
|
1836
|
+
qt.init(e, t), G.init(e, t);
|
|
1839
1837
|
});
|
|
1840
|
-
function
|
|
1841
|
-
return
|
|
1838
|
+
function Pr(e) {
|
|
1839
|
+
return lr(Nr, e);
|
|
1842
1840
|
}
|
|
1843
|
-
var
|
|
1844
|
-
|
|
1841
|
+
var Fr = /*@__PURE__*/ h("ZodISODuration", (e, t) => {
|
|
1842
|
+
Jt.init(e, t), G.init(e, t);
|
|
1845
1843
|
});
|
|
1846
|
-
function
|
|
1847
|
-
return
|
|
1844
|
+
function Ir(e) {
|
|
1845
|
+
return ur(Fr, e);
|
|
1848
1846
|
}
|
|
1849
1847
|
//#endregion
|
|
1850
1848
|
//#region ../../node_modules/zod/v4/classic/errors.js
|
|
1851
|
-
var
|
|
1852
|
-
|
|
1853
|
-
format: { value: (t) =>
|
|
1854
|
-
flatten: { value: (t) =>
|
|
1849
|
+
var Lr = (e, t) => {
|
|
1850
|
+
Me.init(e, t), e.name = "ZodError", Object.defineProperties(e, {
|
|
1851
|
+
format: { value: (t) => Fe(e, t) },
|
|
1852
|
+
flatten: { value: (t) => Pe(e, t) },
|
|
1855
1853
|
addIssue: { value: (t) => {
|
|
1856
|
-
e.issues.push(t), e.message = JSON.stringify(e.issues,
|
|
1854
|
+
e.issues.push(t), e.message = JSON.stringify(e.issues, fe, 2);
|
|
1857
1855
|
} },
|
|
1858
1856
|
addIssues: { value: (t) => {
|
|
1859
|
-
e.issues.push(...t), e.message = JSON.stringify(e.issues,
|
|
1857
|
+
e.issues.push(...t), e.message = JSON.stringify(e.issues, fe, 2);
|
|
1860
1858
|
} },
|
|
1861
1859
|
isEmpty: { get() {
|
|
1862
1860
|
return e.issues.length === 0;
|
|
1863
1861
|
} }
|
|
1864
1862
|
});
|
|
1865
1863
|
};
|
|
1866
|
-
h("ZodError",
|
|
1867
|
-
var
|
|
1864
|
+
h("ZodError", Lr);
|
|
1865
|
+
var U = h("ZodError", Lr, { Parent: Error }), Rr = /* @__PURE__ */ j(U), zr = /* @__PURE__ */ Ie(U), Br = /* @__PURE__ */ M(U), Vr = /* @__PURE__ */ N(U), Hr = /* @__PURE__ */ ze(U), Ur = /* @__PURE__ */ Be(U), Wr = /* @__PURE__ */ Ve(U), Gr = /* @__PURE__ */ He(U), Kr = /* @__PURE__ */ Ue(U), qr = /* @__PURE__ */ We(U), Jr = /* @__PURE__ */ Ge(U), Yr = /* @__PURE__ */ Ke(U), W = /*@__PURE__*/ h("ZodType", (e, t) => (I.init(e, t), e.def = t, e.type = t.type, Object.defineProperty(e, "_def", { value: t }), e.check = (...n) => e.clone(b(t, { checks: [...t.checks ?? [], ...n.map((e) => typeof e == "function" ? { _zod: {
|
|
1868
1866
|
check: e,
|
|
1869
1867
|
def: { check: "custom" },
|
|
1870
1868
|
onattach: []
|
|
1871
|
-
} } : e)] })), e.clone = (t, n) =>
|
|
1869
|
+
} } : e)] })), e.clone = (t, n) => w(e, t, n), e.brand = () => e, e.register = ((t, n) => (t.add(e, n), e)), e.parse = (t, n) => Rr(e, t, n, { callee: e.parse }), e.safeParse = (t, n) => Br(e, t, n), e.parseAsync = async (t, n) => zr(e, t, n, { callee: e.parseAsync }), e.safeParseAsync = async (t, n) => Vr(e, t, n), e.spa = e.safeParseAsync, e.encode = (t, n) => Hr(e, t, n), e.decode = (t, n) => Ur(e, t, n), e.encodeAsync = async (t, n) => Wr(e, t, n), e.decodeAsync = async (t, n) => Gr(e, t, n), e.safeEncode = (t, n) => Kr(e, t, n), e.safeDecode = (t, n) => qr(e, t, n), e.safeEncodeAsync = async (t, n) => Jr(e, t, n), e.safeDecodeAsync = async (t, n) => Yr(e, t, n), e.refine = (t, n) => e.check(Xi(t, n)), e.superRefine = (t) => e.check(Zi(t)), e.overwrite = (t) => e.check(H(t)), e.optional = () => Pi(e), e.nullable = () => Ii(e), e.nullish = () => Pi(Ii(e)), e.nonoptional = (t) => Hi(e, t), e.array = () => Si(e), e.or = (t) => Ei([e, t]), e.and = (t) => Oi(e, t), e.transform = (t) => Ki(e, Mi(t)), e.default = (t) => Ri(e, t), e.prefault = (t) => Bi(e, t), e.catch = (t) => Wi(e, t), e.pipe = (t) => Ki(e, t), e.readonly = () => Ji(e), e.describe = (t) => {
|
|
1872
1870
|
let n = e.clone();
|
|
1873
|
-
return
|
|
1871
|
+
return B.add(n, { description: t }), n;
|
|
1874
1872
|
}, Object.defineProperty(e, "description", {
|
|
1875
1873
|
get() {
|
|
1876
|
-
return
|
|
1874
|
+
return B.get(e)?.description;
|
|
1877
1875
|
},
|
|
1878
1876
|
configurable: !0
|
|
1879
1877
|
}), e.meta = (...t) => {
|
|
1880
|
-
if (t.length === 0) return
|
|
1878
|
+
if (t.length === 0) return B.get(e);
|
|
1881
1879
|
let n = e.clone();
|
|
1882
|
-
return
|
|
1883
|
-
}, e.isOptional = () => e.safeParse(void 0).success, e.isNullable = () => e.safeParse(null).success, e)),
|
|
1884
|
-
|
|
1880
|
+
return B.add(n, t[0]), n;
|
|
1881
|
+
}, e.isOptional = () => e.safeParse(void 0).success, e.isNullable = () => e.safeParse(null).success, e)), Xr = /*@__PURE__*/ h("_ZodString", (e, t) => {
|
|
1882
|
+
Nt.init(e, t), W.init(e, t);
|
|
1885
1883
|
let n = e._zod.bag;
|
|
1886
|
-
e.format = n.format ?? null, e.minLength = n.minimum ?? null, e.maxLength = n.maximum ?? null, e.regex = (...t) => e.check(
|
|
1887
|
-
}),
|
|
1888
|
-
|
|
1884
|
+
e.format = n.format ?? null, e.minLength = n.minimum ?? null, e.maxLength = n.maximum ?? null, e.regex = (...t) => e.check(hr(...t)), e.includes = (...t) => e.check(vr(...t)), e.startsWith = (...t) => e.check(yr(...t)), e.endsWith = (...t) => e.check(br(...t)), e.min = (...t) => e.check(V(...t)), e.max = (...t) => e.check(pr(...t)), e.length = (...t) => e.check(mr(...t)), e.nonempty = (...t) => e.check(V(1, ...t)), e.lowercase = (t) => e.check(gr(t)), e.uppercase = (t) => e.check(_r(t)), e.trim = () => e.check(Sr()), e.normalize = (...t) => e.check(xr(...t)), e.toLowerCase = () => e.check(Cr()), e.toUpperCase = () => e.check(wr());
|
|
1885
|
+
}), Zr = /*@__PURE__*/ h("ZodString", (e, t) => {
|
|
1886
|
+
Nt.init(e, t), Xr.init(e, t), e.email = (t) => e.check(zn($r, t)), e.url = (t) => e.check(Gn(ti, t)), e.jwt = (t) => e.check(or(gi, t)), e.emoji = (t) => e.check(Kn(ni, t)), e.guid = (t) => e.check(Bn(ei, t)), e.uuid = (t) => e.check(Vn(K, t)), e.uuidv4 = (t) => e.check(Hn(K, t)), e.uuidv6 = (t) => e.check(Un(K, t)), e.uuidv7 = (t) => e.check(Wn(K, t)), e.nanoid = (t) => e.check(qn(ri, t)), e.guid = (t) => e.check(Bn(ei, t)), e.cuid = (t) => e.check(Jn(ii, t)), e.cuid2 = (t) => e.check(Yn(ai, t)), e.ulid = (t) => e.check(Xn(oi, t)), e.base64 = (t) => e.check(rr(pi, t)), e.base64url = (t) => e.check(ir(mi, t)), e.xid = (t) => e.check(Zn(si, t)), e.ksuid = (t) => e.check(Qn(ci, t)), e.ipv4 = (t) => e.check($n(li, t)), e.ipv6 = (t) => e.check(er(ui, t)), e.cidrv4 = (t) => e.check(tr(di, t)), e.cidrv6 = (t) => e.check(nr(fi, t)), e.e164 = (t) => e.check(ar(hi, t)), e.datetime = (t) => e.check(Ar(t)), e.date = (t) => e.check(Mr(t)), e.time = (t) => e.check(Pr(t)), e.duration = (t) => e.check(Ir(t));
|
|
1889
1887
|
});
|
|
1890
|
-
function
|
|
1891
|
-
return
|
|
1892
|
-
}
|
|
1893
|
-
var
|
|
1894
|
-
L.init(e, t),
|
|
1895
|
-
}),
|
|
1896
|
-
|
|
1897
|
-
}),
|
|
1898
|
-
|
|
1899
|
-
}),
|
|
1900
|
-
|
|
1901
|
-
}),
|
|
1902
|
-
|
|
1903
|
-
}),
|
|
1904
|
-
|
|
1905
|
-
}),
|
|
1906
|
-
|
|
1907
|
-
}),
|
|
1908
|
-
|
|
1909
|
-
}),
|
|
1910
|
-
|
|
1911
|
-
}),
|
|
1912
|
-
|
|
1913
|
-
}),
|
|
1914
|
-
|
|
1915
|
-
}),
|
|
1916
|
-
|
|
1917
|
-
}),
|
|
1918
|
-
|
|
1919
|
-
}),
|
|
1920
|
-
|
|
1921
|
-
}),
|
|
1922
|
-
|
|
1923
|
-
}),
|
|
1924
|
-
|
|
1925
|
-
}),
|
|
1926
|
-
|
|
1927
|
-
}),
|
|
1928
|
-
|
|
1929
|
-
}),
|
|
1930
|
-
|
|
1931
|
-
}),
|
|
1932
|
-
|
|
1933
|
-
}),
|
|
1934
|
-
|
|
1888
|
+
function Qr(e) {
|
|
1889
|
+
return Rn(Zr, e);
|
|
1890
|
+
}
|
|
1891
|
+
var G = /*@__PURE__*/ h("ZodStringFormat", (e, t) => {
|
|
1892
|
+
L.init(e, t), Xr.init(e, t);
|
|
1893
|
+
}), $r = /*@__PURE__*/ h("ZodEmail", (e, t) => {
|
|
1894
|
+
It.init(e, t), G.init(e, t);
|
|
1895
|
+
}), ei = /*@__PURE__*/ h("ZodGUID", (e, t) => {
|
|
1896
|
+
Pt.init(e, t), G.init(e, t);
|
|
1897
|
+
}), K = /*@__PURE__*/ h("ZodUUID", (e, t) => {
|
|
1898
|
+
Ft.init(e, t), G.init(e, t);
|
|
1899
|
+
}), ti = /*@__PURE__*/ h("ZodURL", (e, t) => {
|
|
1900
|
+
Lt.init(e, t), G.init(e, t);
|
|
1901
|
+
}), ni = /*@__PURE__*/ h("ZodEmoji", (e, t) => {
|
|
1902
|
+
Rt.init(e, t), G.init(e, t);
|
|
1903
|
+
}), ri = /*@__PURE__*/ h("ZodNanoID", (e, t) => {
|
|
1904
|
+
zt.init(e, t), G.init(e, t);
|
|
1905
|
+
}), ii = /*@__PURE__*/ h("ZodCUID", (e, t) => {
|
|
1906
|
+
Bt.init(e, t), G.init(e, t);
|
|
1907
|
+
}), ai = /*@__PURE__*/ h("ZodCUID2", (e, t) => {
|
|
1908
|
+
Vt.init(e, t), G.init(e, t);
|
|
1909
|
+
}), oi = /*@__PURE__*/ h("ZodULID", (e, t) => {
|
|
1910
|
+
Ht.init(e, t), G.init(e, t);
|
|
1911
|
+
}), si = /*@__PURE__*/ h("ZodXID", (e, t) => {
|
|
1912
|
+
Ut.init(e, t), G.init(e, t);
|
|
1913
|
+
}), ci = /*@__PURE__*/ h("ZodKSUID", (e, t) => {
|
|
1914
|
+
Wt.init(e, t), G.init(e, t);
|
|
1915
|
+
}), li = /*@__PURE__*/ h("ZodIPv4", (e, t) => {
|
|
1916
|
+
Yt.init(e, t), G.init(e, t);
|
|
1917
|
+
}), ui = /*@__PURE__*/ h("ZodIPv6", (e, t) => {
|
|
1918
|
+
Xt.init(e, t), G.init(e, t);
|
|
1919
|
+
}), di = /*@__PURE__*/ h("ZodCIDRv4", (e, t) => {
|
|
1920
|
+
Zt.init(e, t), G.init(e, t);
|
|
1921
|
+
}), fi = /*@__PURE__*/ h("ZodCIDRv6", (e, t) => {
|
|
1922
|
+
Qt.init(e, t), G.init(e, t);
|
|
1923
|
+
}), pi = /*@__PURE__*/ h("ZodBase64", (e, t) => {
|
|
1924
|
+
en.init(e, t), G.init(e, t);
|
|
1925
|
+
}), mi = /*@__PURE__*/ h("ZodBase64URL", (e, t) => {
|
|
1926
|
+
nn.init(e, t), G.init(e, t);
|
|
1927
|
+
}), hi = /*@__PURE__*/ h("ZodE164", (e, t) => {
|
|
1928
|
+
rn.init(e, t), G.init(e, t);
|
|
1929
|
+
}), gi = /*@__PURE__*/ h("ZodJWT", (e, t) => {
|
|
1930
|
+
on.init(e, t), G.init(e, t);
|
|
1931
|
+
}), _i = /*@__PURE__*/ h("ZodUnknown", (e, t) => {
|
|
1932
|
+
sn.init(e, t), W.init(e, t);
|
|
1935
1933
|
});
|
|
1936
|
-
function
|
|
1937
|
-
return
|
|
1934
|
+
function vi() {
|
|
1935
|
+
return dr(_i);
|
|
1938
1936
|
}
|
|
1939
|
-
var
|
|
1940
|
-
|
|
1937
|
+
var yi = /*@__PURE__*/ h("ZodNever", (e, t) => {
|
|
1938
|
+
cn.init(e, t), W.init(e, t);
|
|
1941
1939
|
});
|
|
1942
|
-
function
|
|
1943
|
-
return
|
|
1940
|
+
function bi(e) {
|
|
1941
|
+
return fr(yi, e);
|
|
1944
1942
|
}
|
|
1945
|
-
var
|
|
1946
|
-
|
|
1943
|
+
var xi = /*@__PURE__*/ h("ZodArray", (e, t) => {
|
|
1944
|
+
un.init(e, t), W.init(e, t), e.element = t.element, e.min = (t, n) => e.check(V(t, n)), e.nonempty = (t) => e.check(V(1, t)), e.max = (t, n) => e.check(pr(t, n)), e.length = (t, n) => e.check(mr(t, n)), e.unwrap = () => e.element;
|
|
1947
1945
|
});
|
|
1948
|
-
function
|
|
1949
|
-
return
|
|
1946
|
+
function Si(e, t) {
|
|
1947
|
+
return Tr(xi, e, t);
|
|
1950
1948
|
}
|
|
1951
|
-
var
|
|
1952
|
-
|
|
1949
|
+
var Ci = /*@__PURE__*/ h("ZodObject", (e, t) => {
|
|
1950
|
+
mn.init(e, t), W.init(e, t), v(e, "shape", () => t.shape), e.keyof = () => Ai(Object.keys(e._zod.def.shape)), e.catchall = (t) => e.clone({
|
|
1953
1951
|
...e._zod.def,
|
|
1954
1952
|
catchall: t
|
|
1955
1953
|
}), e.passthrough = () => e.clone({
|
|
1956
1954
|
...e._zod.def,
|
|
1957
|
-
catchall:
|
|
1955
|
+
catchall: vi()
|
|
1958
1956
|
}), e.loose = () => e.clone({
|
|
1959
1957
|
...e._zod.def,
|
|
1960
|
-
catchall:
|
|
1958
|
+
catchall: vi()
|
|
1961
1959
|
}), e.strict = () => e.clone({
|
|
1962
1960
|
...e._zod.def,
|
|
1963
|
-
catchall:
|
|
1961
|
+
catchall: bi()
|
|
1964
1962
|
}), e.strip = () => e.clone({
|
|
1965
1963
|
...e._zod.def,
|
|
1966
1964
|
catchall: void 0
|
|
1967
|
-
}), e.extend = (t) =>
|
|
1965
|
+
}), e.extend = (t) => Te(e, t), e.safeExtend = (t) => Ee(e, t), e.merge = (t) => De(e, t), e.pick = (t) => Ce(e, t), e.omit = (t) => we(e, t), e.partial = (...t) => Oe(Ni, e, t[0]), e.required = (...t) => ke(Vi, e, t[0]);
|
|
1968
1966
|
});
|
|
1969
|
-
function
|
|
1970
|
-
return new
|
|
1967
|
+
function wi(e, t) {
|
|
1968
|
+
return new Ci({
|
|
1971
1969
|
type: "object",
|
|
1972
1970
|
shape: e ?? {},
|
|
1973
|
-
...
|
|
1971
|
+
...T(t)
|
|
1974
1972
|
});
|
|
1975
1973
|
}
|
|
1976
|
-
var
|
|
1977
|
-
|
|
1974
|
+
var Ti = /*@__PURE__*/ h("ZodUnion", (e, t) => {
|
|
1975
|
+
gn.init(e, t), W.init(e, t), e.options = t.options;
|
|
1978
1976
|
});
|
|
1979
|
-
function
|
|
1980
|
-
return new
|
|
1977
|
+
function Ei(e, t) {
|
|
1978
|
+
return new Ti({
|
|
1981
1979
|
type: "union",
|
|
1982
1980
|
options: e,
|
|
1983
|
-
...
|
|
1981
|
+
...T(t)
|
|
1984
1982
|
});
|
|
1985
1983
|
}
|
|
1986
|
-
var
|
|
1987
|
-
|
|
1984
|
+
var Di = /*@__PURE__*/ h("ZodIntersection", (e, t) => {
|
|
1985
|
+
_n.init(e, t), W.init(e, t);
|
|
1988
1986
|
});
|
|
1989
|
-
function
|
|
1990
|
-
return new
|
|
1987
|
+
function Oi(e, t) {
|
|
1988
|
+
return new Di({
|
|
1991
1989
|
type: "intersection",
|
|
1992
1990
|
left: e,
|
|
1993
1991
|
right: t
|
|
1994
1992
|
});
|
|
1995
1993
|
}
|
|
1996
|
-
var
|
|
1997
|
-
|
|
1994
|
+
var ki = /*@__PURE__*/ h("ZodEnum", (e, t) => {
|
|
1995
|
+
bn.init(e, t), W.init(e, t), e.enum = t.entries, e.options = Object.values(t.entries);
|
|
1998
1996
|
let n = new Set(Object.keys(t.entries));
|
|
1999
1997
|
e.extract = (e, r) => {
|
|
2000
1998
|
let i = {};
|
|
2001
1999
|
for (let r of e) if (n.has(r)) i[r] = t.entries[r];
|
|
2002
2000
|
else throw Error(`Key ${r} not found in enum`);
|
|
2003
|
-
return new
|
|
2001
|
+
return new ki({
|
|
2004
2002
|
...t,
|
|
2005
2003
|
checks: [],
|
|
2006
|
-
...
|
|
2004
|
+
...T(r),
|
|
2007
2005
|
entries: i
|
|
2008
2006
|
});
|
|
2009
2007
|
}, e.exclude = (e, r) => {
|
|
2010
2008
|
let i = { ...t.entries };
|
|
2011
2009
|
for (let t of e) if (n.has(t)) delete i[t];
|
|
2012
2010
|
else throw Error(`Key ${t} not found in enum`);
|
|
2013
|
-
return new
|
|
2011
|
+
return new ki({
|
|
2014
2012
|
...t,
|
|
2015
2013
|
checks: [],
|
|
2016
|
-
...
|
|
2014
|
+
...T(r),
|
|
2017
2015
|
entries: i
|
|
2018
2016
|
});
|
|
2019
2017
|
};
|
|
2020
2018
|
});
|
|
2021
|
-
function
|
|
2022
|
-
return new
|
|
2019
|
+
function Ai(e, t) {
|
|
2020
|
+
return new ki({
|
|
2023
2021
|
type: "enum",
|
|
2024
2022
|
entries: Array.isArray(e) ? Object.fromEntries(e.map((e) => [e, e])) : e,
|
|
2025
|
-
...
|
|
2023
|
+
...T(t)
|
|
2026
2024
|
});
|
|
2027
2025
|
}
|
|
2028
|
-
var
|
|
2029
|
-
|
|
2030
|
-
if (r.direction === "backward") throw new
|
|
2026
|
+
var ji = /*@__PURE__*/ h("ZodTransform", (e, t) => {
|
|
2027
|
+
xn.init(e, t), W.init(e, t), e._zod.parse = (n, r) => {
|
|
2028
|
+
if (r.direction === "backward") throw new le(e.constructor.name);
|
|
2031
2029
|
n.addIssue = (r) => {
|
|
2032
2030
|
if (typeof r == "string") n.issues.push(A(r, n.value, t));
|
|
2033
2031
|
else {
|
|
@@ -2039,110 +2037,110 @@ var Oi = /*@__PURE__*/ h("ZodTransform", (e, t) => {
|
|
|
2039
2037
|
return i instanceof Promise ? i.then((e) => (n.value = e, n)) : (n.value = i, n);
|
|
2040
2038
|
};
|
|
2041
2039
|
});
|
|
2042
|
-
function
|
|
2043
|
-
return new
|
|
2040
|
+
function Mi(e) {
|
|
2041
|
+
return new ji({
|
|
2044
2042
|
type: "transform",
|
|
2045
2043
|
transform: e
|
|
2046
2044
|
});
|
|
2047
2045
|
}
|
|
2048
|
-
var
|
|
2049
|
-
|
|
2046
|
+
var Ni = /*@__PURE__*/ h("ZodOptional", (e, t) => {
|
|
2047
|
+
Cn.init(e, t), W.init(e, t), e.unwrap = () => e._zod.def.innerType;
|
|
2050
2048
|
});
|
|
2051
|
-
function
|
|
2052
|
-
return new
|
|
2049
|
+
function Pi(e) {
|
|
2050
|
+
return new Ni({
|
|
2053
2051
|
type: "optional",
|
|
2054
2052
|
innerType: e
|
|
2055
2053
|
});
|
|
2056
2054
|
}
|
|
2057
|
-
var
|
|
2058
|
-
|
|
2055
|
+
var Fi = /*@__PURE__*/ h("ZodNullable", (e, t) => {
|
|
2056
|
+
wn.init(e, t), W.init(e, t), e.unwrap = () => e._zod.def.innerType;
|
|
2059
2057
|
});
|
|
2060
|
-
function
|
|
2061
|
-
return new
|
|
2058
|
+
function Ii(e) {
|
|
2059
|
+
return new Fi({
|
|
2062
2060
|
type: "nullable",
|
|
2063
2061
|
innerType: e
|
|
2064
2062
|
});
|
|
2065
2063
|
}
|
|
2066
|
-
var
|
|
2067
|
-
|
|
2064
|
+
var Li = /*@__PURE__*/ h("ZodDefault", (e, t) => {
|
|
2065
|
+
Tn.init(e, t), W.init(e, t), e.unwrap = () => e._zod.def.innerType, e.removeDefault = e.unwrap;
|
|
2068
2066
|
});
|
|
2069
|
-
function
|
|
2070
|
-
return new
|
|
2067
|
+
function Ri(e, t) {
|
|
2068
|
+
return new Li({
|
|
2071
2069
|
type: "default",
|
|
2072
2070
|
innerType: e,
|
|
2073
2071
|
get defaultValue() {
|
|
2074
|
-
return typeof t == "function" ? t() :
|
|
2072
|
+
return typeof t == "function" ? t() : be(t);
|
|
2075
2073
|
}
|
|
2076
2074
|
});
|
|
2077
2075
|
}
|
|
2078
|
-
var
|
|
2079
|
-
|
|
2076
|
+
var zi = /*@__PURE__*/ h("ZodPrefault", (e, t) => {
|
|
2077
|
+
Dn.init(e, t), W.init(e, t), e.unwrap = () => e._zod.def.innerType;
|
|
2080
2078
|
});
|
|
2081
|
-
function
|
|
2082
|
-
return new
|
|
2079
|
+
function Bi(e, t) {
|
|
2080
|
+
return new zi({
|
|
2083
2081
|
type: "prefault",
|
|
2084
2082
|
innerType: e,
|
|
2085
2083
|
get defaultValue() {
|
|
2086
|
-
return typeof t == "function" ? t() :
|
|
2084
|
+
return typeof t == "function" ? t() : be(t);
|
|
2087
2085
|
}
|
|
2088
2086
|
});
|
|
2089
2087
|
}
|
|
2090
|
-
var
|
|
2091
|
-
|
|
2088
|
+
var Vi = /*@__PURE__*/ h("ZodNonOptional", (e, t) => {
|
|
2089
|
+
On.init(e, t), W.init(e, t), e.unwrap = () => e._zod.def.innerType;
|
|
2092
2090
|
});
|
|
2093
|
-
function
|
|
2094
|
-
return new
|
|
2091
|
+
function Hi(e, t) {
|
|
2092
|
+
return new Vi({
|
|
2095
2093
|
type: "nonoptional",
|
|
2096
2094
|
innerType: e,
|
|
2097
|
-
...
|
|
2095
|
+
...T(t)
|
|
2098
2096
|
});
|
|
2099
2097
|
}
|
|
2100
|
-
var
|
|
2101
|
-
|
|
2098
|
+
var Ui = /*@__PURE__*/ h("ZodCatch", (e, t) => {
|
|
2099
|
+
An.init(e, t), W.init(e, t), e.unwrap = () => e._zod.def.innerType, e.removeCatch = e.unwrap;
|
|
2102
2100
|
});
|
|
2103
|
-
function
|
|
2104
|
-
return new
|
|
2101
|
+
function Wi(e, t) {
|
|
2102
|
+
return new Ui({
|
|
2105
2103
|
type: "catch",
|
|
2106
2104
|
innerType: e,
|
|
2107
2105
|
catchValue: typeof t == "function" ? t : () => t
|
|
2108
2106
|
});
|
|
2109
2107
|
}
|
|
2110
|
-
var
|
|
2111
|
-
|
|
2108
|
+
var Gi = /*@__PURE__*/ h("ZodPipe", (e, t) => {
|
|
2109
|
+
jn.init(e, t), W.init(e, t), e.in = t.in, e.out = t.out;
|
|
2112
2110
|
});
|
|
2113
|
-
function
|
|
2114
|
-
return new
|
|
2111
|
+
function Ki(e, t) {
|
|
2112
|
+
return new Gi({
|
|
2115
2113
|
type: "pipe",
|
|
2116
2114
|
in: e,
|
|
2117
2115
|
out: t
|
|
2118
2116
|
});
|
|
2119
2117
|
}
|
|
2120
|
-
var
|
|
2121
|
-
|
|
2118
|
+
var qi = /*@__PURE__*/ h("ZodReadonly", (e, t) => {
|
|
2119
|
+
Mn.init(e, t), W.init(e, t), e.unwrap = () => e._zod.def.innerType;
|
|
2122
2120
|
});
|
|
2123
|
-
function
|
|
2124
|
-
return new
|
|
2121
|
+
function Ji(e) {
|
|
2122
|
+
return new qi({
|
|
2125
2123
|
type: "readonly",
|
|
2126
2124
|
innerType: e
|
|
2127
2125
|
});
|
|
2128
2126
|
}
|
|
2129
|
-
var
|
|
2130
|
-
|
|
2127
|
+
var Yi = /*@__PURE__*/ h("ZodCustom", (e, t) => {
|
|
2128
|
+
Pn.init(e, t), W.init(e, t);
|
|
2131
2129
|
});
|
|
2132
|
-
function
|
|
2133
|
-
return
|
|
2130
|
+
function Xi(e, t = {}) {
|
|
2131
|
+
return Er(Yi, e, t);
|
|
2134
2132
|
}
|
|
2135
|
-
function
|
|
2136
|
-
return
|
|
2133
|
+
function Zi(e) {
|
|
2134
|
+
return Dr(e);
|
|
2137
2135
|
}
|
|
2138
2136
|
//#endregion
|
|
2139
2137
|
//#region ../twenty-shared/node_modules/class-validator/esm5/metadata/ValidationMetadata.js
|
|
2140
|
-
var
|
|
2138
|
+
var Qi = function() {
|
|
2141
2139
|
function e(e) {
|
|
2142
2140
|
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);
|
|
2143
2141
|
}
|
|
2144
2142
|
return e;
|
|
2145
|
-
}(),
|
|
2143
|
+
}(), $i = function() {
|
|
2146
2144
|
function e() {}
|
|
2147
2145
|
return e.prototype.transform = function(e) {
|
|
2148
2146
|
var t = [];
|
|
@@ -2162,11 +2160,11 @@ var Yi = function() {
|
|
|
2162
2160
|
validationTypeOptions: r.options,
|
|
2163
2161
|
validationOptions: i
|
|
2164
2162
|
};
|
|
2165
|
-
t.push(new
|
|
2163
|
+
t.push(new Qi(a));
|
|
2166
2164
|
});
|
|
2167
2165
|
}), t;
|
|
2168
2166
|
}, e;
|
|
2169
|
-
}(),
|
|
2167
|
+
}(), ea = function(e) {
|
|
2170
2168
|
var t = typeof Symbol == "function" && Symbol.iterator, n = t && e[t], r = 0;
|
|
2171
2169
|
if (n) return n.call(e);
|
|
2172
2170
|
if (e && typeof e.length == "number") return { next: function() {
|
|
@@ -2176,7 +2174,7 @@ var Yi = function() {
|
|
|
2176
2174
|
};
|
|
2177
2175
|
} };
|
|
2178
2176
|
throw TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
2179
|
-
},
|
|
2177
|
+
}, ta = function(e, t) {
|
|
2180
2178
|
var n = typeof Symbol == "function" && e[Symbol.iterator];
|
|
2181
2179
|
if (!n) return e;
|
|
2182
2180
|
var r = n.call(e), i, a = [], o;
|
|
@@ -2192,7 +2190,7 @@ var Yi = function() {
|
|
|
2192
2190
|
}
|
|
2193
2191
|
}
|
|
2194
2192
|
return a;
|
|
2195
|
-
},
|
|
2193
|
+
}, na = function(e, t, n) {
|
|
2196
2194
|
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]);
|
|
2197
2195
|
return e.concat(a || Array.prototype.slice.call(t));
|
|
2198
2196
|
};
|
|
@@ -2208,7 +2206,7 @@ var Yi = function() {
|
|
|
2208
2206
|
configurable: !0
|
|
2209
2207
|
}), e.prototype.addValidationSchema = function(e) {
|
|
2210
2208
|
var t = this;
|
|
2211
|
-
new
|
|
2209
|
+
new $i().transform(e).forEach(function(e) {
|
|
2212
2210
|
return t.addValidationMetadata(e);
|
|
2213
2211
|
});
|
|
2214
2212
|
}, e.prototype.addValidationMetadata = function(e) {
|
|
@@ -2233,9 +2231,9 @@ var Yi = function() {
|
|
|
2233
2231
|
}) : !0;
|
|
2234
2232
|
}), u = [];
|
|
2235
2233
|
try {
|
|
2236
|
-
for (var d =
|
|
2237
|
-
var p =
|
|
2238
|
-
e.prototype instanceof ee && u.push.apply(u,
|
|
2234
|
+
for (var d = ea(this.validationMetadatas.entries()), f = d.next(); !f.done; f = d.next()) {
|
|
2235
|
+
var p = ta(f.value, 2), ee = p[0], te = p[1];
|
|
2236
|
+
e.prototype instanceof ee && u.push.apply(u, na([], ta(te), !1));
|
|
2239
2237
|
}
|
|
2240
2238
|
} catch (e) {
|
|
2241
2239
|
a = { error: e };
|
|
@@ -2246,7 +2244,7 @@ var Yi = function() {
|
|
|
2246
2244
|
if (a) throw a.error;
|
|
2247
2245
|
}
|
|
2248
2246
|
}
|
|
2249
|
-
var
|
|
2247
|
+
var ne = u.filter(function(t) {
|
|
2250
2248
|
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) {
|
|
2251
2249
|
return i.indexOf(e) !== -1;
|
|
2252
2250
|
}) : !0;
|
|
@@ -2255,7 +2253,7 @@ var Yi = function() {
|
|
|
2255
2253
|
return t.propertyName === e.propertyName && t.type === e.type;
|
|
2256
2254
|
});
|
|
2257
2255
|
});
|
|
2258
|
-
return l.concat(
|
|
2256
|
+
return l.concat(ne);
|
|
2259
2257
|
}, e.prototype.getTargetValidatorConstraints = function(e) {
|
|
2260
2258
|
return this.constraintMetadatas.get(e) || [];
|
|
2261
2259
|
}, e;
|
|
@@ -2270,7 +2268,7 @@ var Yi = function() {
|
|
|
2270
2268
|
}();
|
|
2271
2269
|
//#endregion
|
|
2272
2270
|
//#region ../twenty-shared/node_modules/class-validator/esm5/validation/ValidationTypes.js
|
|
2273
|
-
var
|
|
2271
|
+
var ra = new (function() {
|
|
2274
2272
|
function e() {
|
|
2275
2273
|
this.instances = [];
|
|
2276
2274
|
}
|
|
@@ -2283,15 +2281,15 @@ var ea = new (function() {
|
|
|
2283
2281
|
object: new e()
|
|
2284
2282
|
}, this.instances.push(t)), t.object;
|
|
2285
2283
|
}, e;
|
|
2286
|
-
}())(),
|
|
2287
|
-
function
|
|
2288
|
-
if (
|
|
2289
|
-
var t =
|
|
2290
|
-
if (t || !
|
|
2284
|
+
}())(), ia, q;
|
|
2285
|
+
function aa(e) {
|
|
2286
|
+
if (ia) try {
|
|
2287
|
+
var t = ia.get(e);
|
|
2288
|
+
if (t || !q || !q.fallback) return t;
|
|
2291
2289
|
} catch (e) {
|
|
2292
|
-
if (!
|
|
2290
|
+
if (!q || !q.fallbackOnErrors) throw e;
|
|
2293
2291
|
}
|
|
2294
|
-
return
|
|
2292
|
+
return ra.get(e);
|
|
2295
2293
|
}
|
|
2296
2294
|
(function() {
|
|
2297
2295
|
function e(e, t, n) {
|
|
@@ -2299,7 +2297,7 @@ function na(e) {
|
|
|
2299
2297
|
}
|
|
2300
2298
|
return Object.defineProperty(e.prototype, "instance", {
|
|
2301
2299
|
get: function() {
|
|
2302
|
-
return
|
|
2300
|
+
return aa(this.target);
|
|
2303
2301
|
},
|
|
2304
2302
|
enumerable: !1,
|
|
2305
2303
|
configurable: !0
|
|
@@ -2307,233 +2305,233 @@ function na(e) {
|
|
|
2307
2305
|
})();
|
|
2308
2306
|
//#endregion
|
|
2309
2307
|
//#region ../twenty-shared/node_modules/class-validator/esm5/metadata/ConstraintMetadata.js
|
|
2310
|
-
var
|
|
2308
|
+
var J = /* @__PURE__ */ function(e) {
|
|
2311
2309
|
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;
|
|
2312
|
-
}({}),
|
|
2310
|
+
}({}), oa = /* @__PURE__ */ function(e) {
|
|
2313
2311
|
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;
|
|
2314
|
-
}({}),
|
|
2315
|
-
type:
|
|
2312
|
+
}({}), sa = {
|
|
2313
|
+
type: J.ACTOR,
|
|
2316
2314
|
properties: [
|
|
2317
2315
|
{
|
|
2318
2316
|
name: "source",
|
|
2319
|
-
type:
|
|
2317
|
+
type: J.SELECT,
|
|
2320
2318
|
hidden: !1,
|
|
2321
2319
|
isRequired: !0,
|
|
2322
|
-
options: Object.keys(
|
|
2323
|
-
id:
|
|
2324
|
-
label: `${
|
|
2320
|
+
options: Object.keys(oa).map((e, t) => ({
|
|
2321
|
+
id: ae(),
|
|
2322
|
+
label: `${oa[e].toLowerCase()}`,
|
|
2325
2323
|
value: e,
|
|
2326
2324
|
position: t
|
|
2327
2325
|
}))
|
|
2328
2326
|
},
|
|
2329
2327
|
{
|
|
2330
2328
|
name: "workspaceMemberId",
|
|
2331
|
-
type:
|
|
2329
|
+
type: J.UUID,
|
|
2332
2330
|
hidden: "input",
|
|
2333
2331
|
isRequired: !1
|
|
2334
2332
|
},
|
|
2335
2333
|
{
|
|
2336
2334
|
name: "name",
|
|
2337
|
-
type:
|
|
2335
|
+
type: J.TEXT,
|
|
2338
2336
|
hidden: "input",
|
|
2339
2337
|
isRequired: !0
|
|
2340
2338
|
},
|
|
2341
2339
|
{
|
|
2342
2340
|
name: "context",
|
|
2343
|
-
type:
|
|
2341
|
+
type: J.RAW_JSON,
|
|
2344
2342
|
hidden: !1,
|
|
2345
2343
|
isRequired: !1
|
|
2346
2344
|
}
|
|
2347
2345
|
]
|
|
2348
|
-
},
|
|
2349
|
-
type:
|
|
2346
|
+
}, ca = {
|
|
2347
|
+
type: J.ADDRESS,
|
|
2350
2348
|
properties: [
|
|
2351
2349
|
{
|
|
2352
2350
|
name: "addressStreet1",
|
|
2353
|
-
type:
|
|
2351
|
+
type: J.TEXT,
|
|
2354
2352
|
hidden: !1,
|
|
2355
2353
|
isRequired: !1
|
|
2356
2354
|
},
|
|
2357
2355
|
{
|
|
2358
2356
|
name: "addressStreet2",
|
|
2359
|
-
type:
|
|
2357
|
+
type: J.TEXT,
|
|
2360
2358
|
hidden: !1,
|
|
2361
2359
|
isRequired: !1
|
|
2362
2360
|
},
|
|
2363
2361
|
{
|
|
2364
2362
|
name: "addressCity",
|
|
2365
|
-
type:
|
|
2363
|
+
type: J.TEXT,
|
|
2366
2364
|
hidden: !1,
|
|
2367
2365
|
isRequired: !1
|
|
2368
2366
|
},
|
|
2369
2367
|
{
|
|
2370
2368
|
name: "addressPostcode",
|
|
2371
|
-
type:
|
|
2369
|
+
type: J.TEXT,
|
|
2372
2370
|
hidden: !1,
|
|
2373
2371
|
isRequired: !1
|
|
2374
2372
|
},
|
|
2375
2373
|
{
|
|
2376
2374
|
name: "addressState",
|
|
2377
|
-
type:
|
|
2375
|
+
type: J.TEXT,
|
|
2378
2376
|
hidden: !1,
|
|
2379
2377
|
isRequired: !1
|
|
2380
2378
|
},
|
|
2381
2379
|
{
|
|
2382
2380
|
name: "addressCountry",
|
|
2383
|
-
type:
|
|
2381
|
+
type: J.TEXT,
|
|
2384
2382
|
hidden: !1,
|
|
2385
2383
|
isRequired: !1
|
|
2386
2384
|
},
|
|
2387
2385
|
{
|
|
2388
2386
|
name: "addressLat",
|
|
2389
|
-
type:
|
|
2387
|
+
type: J.NUMERIC,
|
|
2390
2388
|
hidden: !1,
|
|
2391
2389
|
isRequired: !1
|
|
2392
2390
|
},
|
|
2393
2391
|
{
|
|
2394
2392
|
name: "addressLng",
|
|
2395
|
-
type:
|
|
2393
|
+
type: J.NUMERIC,
|
|
2396
2394
|
hidden: !1,
|
|
2397
2395
|
isRequired: !1
|
|
2398
2396
|
}
|
|
2399
2397
|
]
|
|
2400
|
-
},
|
|
2401
|
-
type:
|
|
2398
|
+
}, la = {
|
|
2399
|
+
type: J.CURRENCY,
|
|
2402
2400
|
properties: [{
|
|
2403
2401
|
name: "amountMicros",
|
|
2404
|
-
type:
|
|
2402
|
+
type: J.NUMERIC,
|
|
2405
2403
|
hidden: !1,
|
|
2406
2404
|
isRequired: !1
|
|
2407
2405
|
}, {
|
|
2408
2406
|
name: "currencyCode",
|
|
2409
|
-
type:
|
|
2407
|
+
type: J.TEXT,
|
|
2410
2408
|
hidden: !1,
|
|
2411
2409
|
isRequired: !1
|
|
2412
2410
|
}]
|
|
2413
|
-
},
|
|
2414
|
-
type:
|
|
2411
|
+
}, ua = {
|
|
2412
|
+
type: J.EMAILS,
|
|
2415
2413
|
properties: [{
|
|
2416
2414
|
name: "primaryEmail",
|
|
2417
|
-
type:
|
|
2415
|
+
type: J.TEXT,
|
|
2418
2416
|
hidden: !1,
|
|
2419
2417
|
isRequired: !1,
|
|
2420
2418
|
isIncludedInUniqueConstraint: !0
|
|
2421
2419
|
}, {
|
|
2422
2420
|
name: "additionalEmails",
|
|
2423
|
-
type:
|
|
2421
|
+
type: J.RAW_JSON,
|
|
2424
2422
|
hidden: !1,
|
|
2425
2423
|
isRequired: !1
|
|
2426
2424
|
}]
|
|
2427
|
-
},
|
|
2428
|
-
type:
|
|
2425
|
+
}, da = {
|
|
2426
|
+
type: J.FULL_NAME,
|
|
2429
2427
|
properties: [{
|
|
2430
2428
|
name: "firstName",
|
|
2431
|
-
type:
|
|
2429
|
+
type: J.TEXT,
|
|
2432
2430
|
hidden: !1,
|
|
2433
2431
|
isRequired: !1,
|
|
2434
2432
|
isIncludedInUniqueConstraint: !1
|
|
2435
2433
|
}, {
|
|
2436
2434
|
name: "lastName",
|
|
2437
|
-
type:
|
|
2435
|
+
type: J.TEXT,
|
|
2438
2436
|
hidden: !1,
|
|
2439
2437
|
isRequired: !1,
|
|
2440
2438
|
isIncludedInUniqueConstraint: !1
|
|
2441
2439
|
}]
|
|
2442
|
-
},
|
|
2443
|
-
type:
|
|
2440
|
+
}, fa = {
|
|
2441
|
+
type: J.LINKS,
|
|
2444
2442
|
properties: [
|
|
2445
2443
|
{
|
|
2446
2444
|
name: "primaryLinkLabel",
|
|
2447
|
-
type:
|
|
2445
|
+
type: J.TEXT,
|
|
2448
2446
|
hidden: !1,
|
|
2449
2447
|
isRequired: !1
|
|
2450
2448
|
},
|
|
2451
2449
|
{
|
|
2452
2450
|
name: "primaryLinkUrl",
|
|
2453
|
-
type:
|
|
2451
|
+
type: J.TEXT,
|
|
2454
2452
|
hidden: !1,
|
|
2455
2453
|
isRequired: !1,
|
|
2456
2454
|
isIncludedInUniqueConstraint: !0
|
|
2457
2455
|
},
|
|
2458
2456
|
{
|
|
2459
2457
|
name: "secondaryLinks",
|
|
2460
|
-
type:
|
|
2458
|
+
type: J.RAW_JSON,
|
|
2461
2459
|
hidden: !1,
|
|
2462
2460
|
isRequired: !1
|
|
2463
2461
|
}
|
|
2464
2462
|
]
|
|
2465
|
-
},
|
|
2466
|
-
type:
|
|
2463
|
+
}, pa = {
|
|
2464
|
+
type: J.PHONES,
|
|
2467
2465
|
properties: [
|
|
2468
2466
|
{
|
|
2469
2467
|
name: "primaryPhoneNumber",
|
|
2470
|
-
type:
|
|
2468
|
+
type: J.TEXT,
|
|
2471
2469
|
hidden: !1,
|
|
2472
2470
|
isRequired: !1,
|
|
2473
2471
|
isIncludedInUniqueConstraint: !0
|
|
2474
2472
|
},
|
|
2475
2473
|
{
|
|
2476
2474
|
name: "primaryPhoneCountryCode",
|
|
2477
|
-
type:
|
|
2475
|
+
type: J.TEXT,
|
|
2478
2476
|
hidden: !1,
|
|
2479
2477
|
isRequired: !1,
|
|
2480
2478
|
isIncludedInUniqueConstraint: !0
|
|
2481
2479
|
},
|
|
2482
2480
|
{
|
|
2483
2481
|
name: "primaryPhoneCallingCode",
|
|
2484
|
-
type:
|
|
2482
|
+
type: J.TEXT,
|
|
2485
2483
|
hidden: !1,
|
|
2486
2484
|
isRequired: !1,
|
|
2487
2485
|
isIncludedInUniqueConstraint: !0
|
|
2488
2486
|
},
|
|
2489
2487
|
{
|
|
2490
2488
|
name: "additionalPhones",
|
|
2491
|
-
type:
|
|
2489
|
+
type: J.RAW_JSON,
|
|
2492
2490
|
hidden: !1,
|
|
2493
2491
|
isRequired: !1
|
|
2494
2492
|
}
|
|
2495
2493
|
]
|
|
2496
|
-
},
|
|
2497
|
-
type:
|
|
2494
|
+
}, ma = {
|
|
2495
|
+
type: J.RICH_TEXT,
|
|
2498
2496
|
properties: [{
|
|
2499
2497
|
name: "blocknote",
|
|
2500
|
-
type:
|
|
2498
|
+
type: J.TEXT,
|
|
2501
2499
|
hidden: !1,
|
|
2502
2500
|
isRequired: !1
|
|
2503
2501
|
}, {
|
|
2504
2502
|
name: "markdown",
|
|
2505
|
-
type:
|
|
2503
|
+
type: J.TEXT,
|
|
2506
2504
|
hidden: !1,
|
|
2507
2505
|
isRequired: !1
|
|
2508
2506
|
}]
|
|
2509
2507
|
};
|
|
2510
|
-
|
|
2511
|
-
blocknote:
|
|
2512
|
-
markdown:
|
|
2508
|
+
wi({
|
|
2509
|
+
blocknote: Qr().nullable().optional(),
|
|
2510
|
+
markdown: Qr().nullable()
|
|
2513
2511
|
}), new Map([
|
|
2514
|
-
[
|
|
2515
|
-
[
|
|
2516
|
-
[
|
|
2517
|
-
[
|
|
2518
|
-
[
|
|
2519
|
-
[
|
|
2520
|
-
[
|
|
2521
|
-
[
|
|
2512
|
+
[J.LINKS, fa],
|
|
2513
|
+
[J.CURRENCY, la],
|
|
2514
|
+
[J.FULL_NAME, da],
|
|
2515
|
+
[J.ADDRESS, ca],
|
|
2516
|
+
[J.ACTOR, sa],
|
|
2517
|
+
[J.EMAILS, ua],
|
|
2518
|
+
[J.PHONES, pa],
|
|
2519
|
+
[J.RICH_TEXT, ma]
|
|
2522
2520
|
]);
|
|
2523
2521
|
//#endregion
|
|
2524
|
-
//#region ../twenty-shared/dist/types-
|
|
2525
|
-
var
|
|
2522
|
+
//#region ../twenty-shared/dist/types-D9kiR_wr.mjs
|
|
2523
|
+
var Y = /* @__PURE__ */ function(e) {
|
|
2526
2524
|
return e.GOOGLE = "google", e.MICROSOFT = "microsoft", e.IMAP_SMTP_CALDAV = "imap_smtp_caldav", e.OIDC = "oidc", e.SAML = "saml", e.EMAIL_GROUP = "email_group", e.APP = "app", e;
|
|
2527
2525
|
}({});
|
|
2528
|
-
|
|
2529
|
-
var
|
|
2526
|
+
J.RELATION, J.MORPH_RELATION, J.FILES, J.TS_VECTOR;
|
|
2527
|
+
var ha = /* @__PURE__ */ function(e) {
|
|
2530
2528
|
return e.EMAIL = "EMAIL", e.SMS = "SMS", e.EMAIL_GROUP = "EMAIL_GROUP", e.APP = "APP", e;
|
|
2531
|
-
}({}),
|
|
2529
|
+
}({}), X = /* @__PURE__ */ function(e) {
|
|
2532
2530
|
return e.DAY = "DAY", e.MONTH = "MONTH", e.QUARTER = "QUARTER", e.YEAR = "YEAR", e.WEEK = "WEEK", e.DAY_OF_THE_WEEK = "DAY_OF_THE_WEEK", e.MONTH_OF_THE_YEAR = "MONTH_OF_THE_YEAR", e.QUARTER_OF_THE_YEAR = "QUARTER_OF_THE_YEAR", e.NONE = "NONE", e;
|
|
2533
|
-
}({}),
|
|
2531
|
+
}({}), Z = /* @__PURE__ */ function(e) {
|
|
2534
2532
|
return e.TABLE = "TABLE", e.KANBAN = "KANBAN", e.CALENDAR = "CALENDAR", e.LIST = "LIST", e.FIELDS_WIDGET = "FIELDS_WIDGET", e.TABLE_WIDGET = "TABLE_WIDGET", e.KANBAN_WIDGET = "KANBAN_WIDGET", e.LIST_WIDGET = "LIST_WIDGET", e.CALENDAR_WIDGET = "CALENDAR_WIDGET", e;
|
|
2535
2533
|
}({});
|
|
2536
|
-
|
|
2534
|
+
J.CURRENCY, J.EMAILS, J.LINKS, J.PHONES, J.FULL_NAME, J.ADDRESS, J.ACTOR, J.RICH_TEXT, J.CURRENCY, J.EMAILS, J.LINKS, J.PHONES, J.FULL_NAME, J.ADDRESS, J.ACTOR, J.RICH_TEXT, {
|
|
2537
2535
|
DEVELOPERS_CONTRIBUTE_CAPABILITIES_LOCAL_SETUP: "/developers/contribute/capabilities/local-setup",
|
|
2538
2536
|
DEVELOPERS_CONTRIBUTE_COMMANDS: "/developers/contribute/commands",
|
|
2539
2537
|
DEVELOPERS_CONTRIBUTE_STYLE_GUIDE: "/developers/contribute/style-guide",
|
|
@@ -2601,22 +2599,42 @@ Y.CURRENCY, Y.EMAILS, Y.LINKS, Y.PHONES, Y.FULL_NAME, Y.ADDRESS, Y.ACTOR, Y.RICH
|
|
|
2601
2599
|
GETTING_STARTED_KEY_FEATURES: "/getting-started/key-features",
|
|
2602
2600
|
GETTING_STARTED_QUICKSTART: "/getting-started/quickstart",
|
|
2603
2601
|
UI_ACCESSIBILITY: "/ui/accessibility",
|
|
2602
|
+
UI_COMPONENTS_ANIMATED_ICON_CROSSFADE: "/ui/components/animated-icon-crossfade",
|
|
2603
|
+
UI_COMPONENTS_AVATAR_GROUP: "/ui/components/avatar-group",
|
|
2604
|
+
UI_COMPONENTS_CALLOUT: "/ui/components/callout",
|
|
2604
2605
|
UI_COMPONENTS_CODE_EDITOR: "/ui/components/code-editor",
|
|
2606
|
+
UI_COMPONENTS_COMMAND_BLOCK: "/ui/components/command-block",
|
|
2607
|
+
UI_COMPONENTS_DROPDOWN: "/ui/components/dropdown",
|
|
2608
|
+
UI_COMPONENTS_INLINE_BANNER: "/ui/components/inline-banner",
|
|
2605
2609
|
UI_COMPONENTS_INPUT_ICON_BUTTON: "/ui/components/input/icon-button",
|
|
2606
2610
|
UI_COMPONENTS_INPUT_LIGHT_BUTTON: "/ui/components/input/light-button",
|
|
2607
2611
|
UI_COMPONENTS_INPUT_LIGHT_ICON_BUTTON: "/ui/components/input/light-icon-button",
|
|
2608
2612
|
UI_COMPONENTS_INPUT_MAIN_BUTTON: "/ui/components/input/main-button",
|
|
2613
|
+
UI_COMPONENTS_JSON_TREE: "/ui/components/json-tree",
|
|
2614
|
+
UI_COMPONENTS_MENU_ITEMS: "/ui/components/menu-items",
|
|
2615
|
+
UI_COMPONENTS_MENU_PICKER: "/ui/components/menu-picker",
|
|
2616
|
+
UI_COMPONENTS_NAVIGATION_BAR: "/ui/components/navigation-bar",
|
|
2617
|
+
UI_COMPONENTS_NOTIFICATION_COUNTER: "/ui/components/notification-counter",
|
|
2609
2618
|
UI_COMPONENTS_OVERVIEW: "/ui/components/overview",
|
|
2619
|
+
UI_COMPONENTS_SEARCH_INPUT: "/ui/components/search-input",
|
|
2610
2620
|
UI_COMPONENTS_SECTION: "/ui/components/section",
|
|
2611
2621
|
UI_COMPONENTS_SETTINGS_ROW: "/ui/components/settings-row",
|
|
2612
2622
|
UI_COMPONENTS_TAB_BUTTON: "/ui/components/tab-button",
|
|
2623
|
+
UI_COMPONENTS_TINTED_ICON_TILE: "/ui/components/tinted-icon-tile",
|
|
2613
2624
|
UI_COMPONENTS_TOAST: "/ui/components/toast",
|
|
2614
2625
|
UI_DARK_MODE: "/ui/dark-mode",
|
|
2615
2626
|
UI_GETTING_STARTED: "/ui/getting-started",
|
|
2627
|
+
UI_ICONS: "/ui/icons",
|
|
2628
|
+
UI_PRIMITIVES_ACCESSIBILITY_VISIBILITY_HIDDEN: "/ui/primitives/accessibility/visibility-hidden",
|
|
2616
2629
|
UI_PRIMITIVES_DATA_DISPLAY_AVATAR: "/ui/primitives/data-display/avatar",
|
|
2617
2630
|
UI_PRIMITIVES_DATA_DISPLAY_CHIP: "/ui/primitives/data-display/chip",
|
|
2631
|
+
UI_PRIMITIVES_DATA_DISPLAY_COLOR_SAMPLE: "/ui/primitives/data-display/color-sample",
|
|
2632
|
+
UI_PRIMITIVES_DATA_DISPLAY_PILL: "/ui/primitives/data-display/pill",
|
|
2618
2633
|
UI_PRIMITIVES_DATA_DISPLAY_STATUS: "/ui/primitives/data-display/status",
|
|
2619
2634
|
UI_PRIMITIVES_DATA_DISPLAY_TAG: "/ui/primitives/data-display/tag",
|
|
2635
|
+
UI_PRIMITIVES_FEEDBACK_BANNER: "/ui/primitives/feedback/banner",
|
|
2636
|
+
UI_PRIMITIVES_FEEDBACK_LOADER: "/ui/primitives/feedback/loader",
|
|
2637
|
+
UI_PRIMITIVES_FEEDBACK_PROGRESS_BAR: "/ui/primitives/feedback/progress-bar",
|
|
2620
2638
|
UI_PRIMITIVES_INPUT_BUTTON: "/ui/primitives/input/button",
|
|
2621
2639
|
UI_PRIMITIVES_INPUT_BUTTON_GROUP: "/ui/primitives/input/button-group",
|
|
2622
2640
|
UI_PRIMITIVES_INPUT_CHECKBOX: "/ui/primitives/input/checkbox",
|
|
@@ -2625,21 +2643,29 @@ Y.CURRENCY, Y.EMAILS, Y.LINKS, Y.PHONES, Y.FULL_NAME, Y.ADDRESS, Y.ACTOR, Y.RICH
|
|
|
2625
2643
|
UI_PRIMITIVES_INPUT_INPUT_GROUP: "/ui/primitives/input/input-group",
|
|
2626
2644
|
UI_PRIMITIVES_INPUT_RADIO: "/ui/primitives/input/radio",
|
|
2627
2645
|
UI_PRIMITIVES_INPUT_RADIO_GROUP: "/ui/primitives/input/radio-group",
|
|
2646
|
+
UI_PRIMITIVES_INPUT_SEGMENTED_CONTROL: "/ui/primitives/input/segmented-control",
|
|
2628
2647
|
UI_PRIMITIVES_INPUT_SELECT: "/ui/primitives/input/select",
|
|
2629
2648
|
UI_PRIMITIVES_INPUT_SLIDER: "/ui/primitives/input/slider",
|
|
2630
2649
|
UI_PRIMITIVES_INPUT_SWITCH: "/ui/primitives/input/switch",
|
|
2631
2650
|
UI_PRIMITIVES_INPUT_TEXTAREA: "/ui/primitives/input/textarea",
|
|
2651
|
+
UI_PRIMITIVES_LAYOUT_COLLAPSIBLE: "/ui/primitives/layout/collapsible",
|
|
2652
|
+
UI_PRIMITIVES_LAYOUT_HORIZONTAL_SEPARATOR: "/ui/primitives/layout/horizontal-separator",
|
|
2653
|
+
UI_PRIMITIVES_LAYOUT_RESIZE_HANDLE: "/ui/primitives/layout/resize-handle",
|
|
2654
|
+
UI_PRIMITIVES_LAYOUT_TEXT_DIRECTION_PROVIDER: "/ui/primitives/layout/text-direction-provider",
|
|
2632
2655
|
UI_PRIMITIVES_NAVIGATION_LIST_ITEM: "/ui/primitives/navigation/list-item",
|
|
2633
2656
|
UI_PRIMITIVES_NAVIGATION_TABS: "/ui/primitives/navigation/tabs",
|
|
2634
2657
|
UI_PRIMITIVES_OVERVIEW: "/ui/primitives/overview",
|
|
2635
2658
|
UI_PRIMITIVES_SURFACES_ALERT_DIALOG: "/ui/primitives/surfaces/alert-dialog",
|
|
2659
|
+
UI_PRIMITIVES_SURFACES_CARD: "/ui/primitives/surfaces/card",
|
|
2636
2660
|
UI_PRIMITIVES_SURFACES_DIALOG: "/ui/primitives/surfaces/dialog",
|
|
2637
2661
|
UI_PRIMITIVES_SURFACES_MENU: "/ui/primitives/surfaces/menu",
|
|
2638
2662
|
UI_PRIMITIVES_SURFACES_POPOVER: "/ui/primitives/surfaces/popover",
|
|
2639
2663
|
UI_PRIMITIVES_SURFACES_TOOLTIP: "/ui/primitives/surfaces/tooltip",
|
|
2640
2664
|
UI_PRIMITIVES_TYPOGRAPHY_HEADING: "/ui/primitives/typography/heading",
|
|
2665
|
+
UI_PRIMITIVES_TYPOGRAPHY_OVERFLOWING_TEXT_WITH_TOOLTIP: "/ui/primitives/typography/overflowing-text-with-tooltip",
|
|
2641
2666
|
UI_PRIMITIVES_TYPOGRAPHY_TEXT: "/ui/primitives/typography/text",
|
|
2642
2667
|
UI_SSR: "/ui/ssr",
|
|
2668
|
+
UI_TESTING: "/ui/testing",
|
|
2643
2669
|
UI_THEMING: "/ui/theming",
|
|
2644
2670
|
UI_TOKENS: "/ui/tokens",
|
|
2645
2671
|
USER_GUIDE_AI_CAPABILITIES_AI_AGENTS: "/user-guide/ai/capabilities/ai-agents",
|
|
@@ -2649,6 +2675,7 @@ Y.CURRENCY, Y.EMAILS, Y.LINKS, Y.PHONES, Y.FULL_NAME, Y.ADDRESS, Y.ACTOR, Y.RICH
|
|
|
2649
2675
|
USER_GUIDE_AI_OVERVIEW: "/user-guide/ai/overview",
|
|
2650
2676
|
USER_GUIDE_BILLING_CAPABILITIES_CREDITS: "/user-guide/billing/capabilities/credits",
|
|
2651
2677
|
USER_GUIDE_BILLING_CAPABILITIES_PRICING_PLANS: "/user-guide/billing/capabilities/pricing-plans",
|
|
2678
|
+
USER_GUIDE_BILLING_CAPABILITIES_USAGE_LIMITS: "/user-guide/billing/capabilities/usage-limits",
|
|
2652
2679
|
USER_GUIDE_BILLING_HOW_TOS_BILLING_FAQ: "/user-guide/billing/how-tos/billing-faq",
|
|
2653
2680
|
USER_GUIDE_BILLING_OVERVIEW: "/user-guide/billing/overview",
|
|
2654
2681
|
USER_GUIDE_CALENDAR_EMAILS_CAPABILITIES_CALENDAR: "/user-guide/calendar-emails/capabilities/calendar",
|
|
@@ -2695,6 +2722,12 @@ Y.CURRENCY, Y.EMAILS, Y.LINKS, Y.PHONES, Y.FULL_NAME, Y.ADDRESS, Y.ACTOR, Y.RICH
|
|
|
2695
2722
|
USER_GUIDE_DATA_MODEL_HOW_TOS_CUSTOMIZE_YOUR_DATA_MODEL: "/user-guide/data-model/how-tos/customize-your-data-model",
|
|
2696
2723
|
USER_GUIDE_DATA_MODEL_HOW_TOS_DATA_MODEL_FAQ: "/user-guide/data-model/how-tos/data-model-faq",
|
|
2697
2724
|
USER_GUIDE_DATA_MODEL_OVERVIEW: "/user-guide/data-model/overview",
|
|
2725
|
+
USER_GUIDE_EMAIL_CAMPAIGNS_HOW_TOS_CREATE_A_CAMPAIGN_WITH_AI: "/user-guide/email-campaigns/how-tos/create-a-campaign-with-ai",
|
|
2726
|
+
USER_GUIDE_EMAIL_CAMPAIGNS_HOW_TOS_EMAIL_CAMPAIGN_BEST_PRACTICES: "/user-guide/email-campaigns/how-tos/email-campaign-best-practices",
|
|
2727
|
+
USER_GUIDE_EMAIL_CAMPAIGNS_HOW_TOS_MANAGE_UNSUBSCRIBES_AND_TOPICS: "/user-guide/email-campaigns/how-tos/manage-unsubscribes-and-topics",
|
|
2728
|
+
USER_GUIDE_EMAIL_CAMPAIGNS_HOW_TOS_SEND_YOUR_FIRST_CAMPAIGN: "/user-guide/email-campaigns/how-tos/send-your-first-campaign",
|
|
2729
|
+
USER_GUIDE_EMAIL_CAMPAIGNS_HOW_TOS_SET_UP_A_SENDING_DOMAIN: "/user-guide/email-campaigns/how-tos/set-up-a-sending-domain",
|
|
2730
|
+
USER_GUIDE_EMAIL_CAMPAIGNS_OVERVIEW: "/user-guide/email-campaigns/overview",
|
|
2698
2731
|
USER_GUIDE_INTRODUCTION: "/user-guide/introduction",
|
|
2699
2732
|
USER_GUIDE_LAYOUT_CAPABILITIES_NAVIGATION: "/user-guide/layout/capabilities/navigation",
|
|
2700
2733
|
USER_GUIDE_LAYOUT_CAPABILITIES_RECORD_PAGES: "/user-guide/layout/capabilities/record-pages",
|
|
@@ -2753,25 +2786,89 @@ Y.CURRENCY, Y.EMAILS, Y.LINKS, Y.PHONES, Y.FULL_NAME, Y.ADDRESS, Y.ACTOR, Y.RICH
|
|
|
2753
2786
|
USER_GUIDE_WORKFLOWS_HOW_TOS_NEED_MORE_HELP_WORKFLOW_TROUBLESHOOTING: "/user-guide/workflows/how-tos/need-more-help/workflow-troubleshooting",
|
|
2754
2787
|
USER_GUIDE_WORKFLOWS_HOW_TOS_NEED_MORE_HELP_WORKFLOWS_FAQ: "/user-guide/workflows/how-tos/need-more-help/workflows-faq",
|
|
2755
2788
|
USER_GUIDE_WORKFLOWS_OVERVIEW: "/user-guide/workflows/overview"
|
|
2756
|
-
}.GETTING_STARTED_INTRODUCTION,
|
|
2757
|
-
|
|
2758
|
-
|
|
2759
|
-
|
|
2760
|
-
|
|
2761
|
-
]),
|
|
2762
|
-
|
|
2763
|
-
|
|
2764
|
-
|
|
2765
|
-
|
|
2766
|
-
]),
|
|
2789
|
+
}.GETTING_STARTED_INTRODUCTION, Y.GOOGLE, Y.MICROSOFT, Y.IMAP_SMTP_CALDAV, Y.GOOGLE, Y.MICROSOFT, Y.IMAP_SMTP_CALDAV, Y.EMAIL_GROUP, new Set([
|
|
2790
|
+
J.TS_VECTOR,
|
|
2791
|
+
J.RAW_JSON,
|
|
2792
|
+
J.FILES,
|
|
2793
|
+
J.POSITION
|
|
2794
|
+
]), J.ACTOR, J.ADDRESS, J.ARRAY, J.BOOLEAN, J.CURRENCY, J.DATE, J.DATE_TIME, J.EMAILS, J.FILES, J.FULL_NAME, J.LINKS, J.MORPH_RELATION, J.MULTI_SELECT, J.NUMBER, J.NUMERIC, J.PHONES, J.POSITION, J.RATING, J.RAW_JSON, J.RELATION, J.RICH_TEXT, J.SELECT, J.TEXT, J.TS_VECTOR, J.UUID, new Set([
|
|
2795
|
+
J.TS_VECTOR,
|
|
2796
|
+
J.ARRAY,
|
|
2797
|
+
J.MULTI_SELECT,
|
|
2798
|
+
J.RAW_JSON
|
|
2799
|
+
]), X.DAY, X.WEEK, X.MONTH, X.QUARTER, X.YEAR, J.FILES, J.LINKS, J.TEXT, J.FULL_NAME, J.UUID;
|
|
2800
|
+
//#endregion
|
|
2801
|
+
//#region ../twenty-shared/dist/constants-DObbWPfU.mjs
|
|
2802
|
+
var Q = /* @__PURE__ */ function(e) {
|
|
2803
|
+
return e.API_KEYS_AND_WEBHOOKS = "API_KEYS_AND_WEBHOOKS", e.WORKSPACE = "WORKSPACE", e.WORKSPACE_MEMBERS = "WORKSPACE_MEMBERS", e.ROLES = "ROLES", e.DATA_MODEL = "DATA_MODEL", e.SECURITY = "SECURITY", e.WORKFLOWS = "WORKFLOWS", e.IMPERSONATE = "IMPERSONATE", e.SSO_BYPASS = "SSO_BYPASS", e.APPLICATIONS = "APPLICATIONS", e.MARKETPLACE_APPS = "MARKETPLACE_APPS", e.LAYOUTS = "LAYOUTS", e.BILLING = "BILLING", e.AI_SETTINGS = "AI_SETTINGS", e.AI = "AI", e.VIEWS = "VIEWS", e.UPLOAD_FILE = "UPLOAD_FILE", e.DOWNLOAD_FILE = "DOWNLOAD_FILE", e.SEND_EMAIL_TOOL = "SEND_EMAIL_TOOL", e.CREATE_CALENDAR_EVENT_TOOL = "CREATE_CALENDAR_EVENT_TOOL", e.HTTP_REQUEST_TOOL = "HTTP_REQUEST_TOOL", e.CODE_INTERPRETER_TOOL = "CODE_INTERPRETER_TOOL", e.IMPORT_CSV = "IMPORT_CSV", e.EXPORT_CSV = "EXPORT_CSV", e.CONNECTED_ACCOUNTS = "CONNECTED_ACCOUNTS", e.PROFILE_INFORMATION = "PROFILE_INFORMATION", e;
|
|
2804
|
+
}({});
|
|
2805
|
+
ha.EMAIL;
|
|
2806
|
+
var ga = {
|
|
2807
|
+
API_KEYS_AND_WEBHOOKS: "beb99803-9a0e-588d-9c4b-3dd14d9cdf21",
|
|
2808
|
+
WORKSPACE: "86a58859-a539-5fa8-ba18-a6aaddc811b6",
|
|
2809
|
+
WORKSPACE_MEMBERS: "ec342166-2df7-53e7-aa9b-64992d6cb35f",
|
|
2810
|
+
ROLES: "80f1e5ab-484c-5660-a5a1-0ee7413d8190",
|
|
2811
|
+
DATA_MODEL: "f0c08013-3c9a-5489-bd45-a641fe5f085d",
|
|
2812
|
+
SECURITY: "4a8b6016-1d3d-5c94-bbe8-a74c5f32335a",
|
|
2813
|
+
WORKFLOWS: "6189e7bd-4051-5752-b6b1-5f31358fbaf1",
|
|
2814
|
+
IMPERSONATE: "dd2274d1-bbd5-551d-bcf2-3147539cef11",
|
|
2815
|
+
SSO_BYPASS: "2e9cfdc0-4669-58ab-b241-b6c3c14d96df",
|
|
2816
|
+
APPLICATIONS: "9faa55f7-2606-566b-9e1d-aefbedbd0136",
|
|
2817
|
+
MARKETPLACE_APPS: "3a37e2f5-d3e4-56d6-b541-adf0237468ff",
|
|
2818
|
+
LAYOUTS: "458d1ee5-ba12-5f4e-9d17-6f8c11fcd7fd",
|
|
2819
|
+
BILLING: "24b66701-ed97-51e4-aa63-794e1b31414c",
|
|
2820
|
+
AI_SETTINGS: "e8cc4a30-c120-5925-8f5d-73d6a2247fee",
|
|
2821
|
+
AI: "1c7f09a7-367d-568b-a0e8-c274eccd6ee3",
|
|
2822
|
+
VIEWS: "c68354c4-535d-53a9-848a-e3a6774b5fb8",
|
|
2823
|
+
UPLOAD_FILE: "dc6931a9-44bd-5164-a983-3db5db837f54",
|
|
2824
|
+
DOWNLOAD_FILE: "6edf252f-228e-5e2f-9706-7bab7a796fd3",
|
|
2825
|
+
SEND_EMAIL_TOOL: "19f382a8-689d-5792-a18c-737f0ce9025f",
|
|
2826
|
+
CREATE_CALENDAR_EVENT_TOOL: "5b8c104e-24d3-4e89-986b-1d9208df6cf4",
|
|
2827
|
+
HTTP_REQUEST_TOOL: "1bf49cf1-bb8f-5eb9-809a-5f34ea79fc6a",
|
|
2828
|
+
CODE_INTERPRETER_TOOL: "11f31c3a-7042-54b7-a2dd-ae31dd9e9fa2",
|
|
2829
|
+
IMPORT_CSV: "c4912536-a4db-5af9-85ac-be2919c24c5e",
|
|
2830
|
+
EXPORT_CSV: "88efced9-ca6d-5316-a695-f1b9158e7370",
|
|
2831
|
+
CONNECTED_ACCOUNTS: "e5f63b2d-5369-5df6-8f32-a8bd9e79e653",
|
|
2832
|
+
PROFILE_INFORMATION: "7c13f23f-78d8-5e7d-8963-a7c8772fb4e8"
|
|
2833
|
+
}, _a = [
|
|
2834
|
+
Q.AI,
|
|
2835
|
+
Q.VIEWS,
|
|
2836
|
+
Q.UPLOAD_FILE,
|
|
2837
|
+
Q.DOWNLOAD_FILE,
|
|
2838
|
+
Q.SEND_EMAIL_TOOL,
|
|
2839
|
+
Q.CREATE_CALENDAR_EVENT_TOOL,
|
|
2840
|
+
Q.HTTP_REQUEST_TOOL,
|
|
2841
|
+
Q.IMPORT_CSV,
|
|
2842
|
+
Q.EXPORT_CSV,
|
|
2843
|
+
Q.CONNECTED_ACCOUNTS,
|
|
2844
|
+
Q.PROFILE_INFORMATION,
|
|
2845
|
+
Q.CODE_INTERPRETER_TOOL
|
|
2846
|
+
], va = {
|
|
2847
|
+
[J.CURRENCY]: ["amountMicros"],
|
|
2848
|
+
[J.FULL_NAME]: ["firstName", "lastName"],
|
|
2849
|
+
[J.LINKS]: ["primaryLinkUrl"],
|
|
2850
|
+
[J.EMAILS]: ["primaryEmail"],
|
|
2851
|
+
[J.PHONES]: ["primaryPhoneNumber"]
|
|
2852
|
+
}, ya = /* @__PURE__ */ new WeakSet(), ba = /* @__PURE__ */ new WeakMap(), xa = (e) => typeof e == "object" && !!e && !Array.isArray(e), Sa = (e) => {
|
|
2853
|
+
if (!a(e) || e === "") return !0;
|
|
2854
|
+
if (Array.isArray(e)) return e.length === 0;
|
|
2855
|
+
if (!xa(e) || e instanceof Date) return !1;
|
|
2856
|
+
if (ya.has(e)) return !0;
|
|
2857
|
+
let t = ba.get(e);
|
|
2858
|
+
if (t === J.RICH_TEXT) return !(0, i.isNonEmptyString)(e.markdown) || e.markdown.trim().length === 0;
|
|
2859
|
+
let n = a(t) ? va[t] : void 0;
|
|
2860
|
+
return (a(n) ? n.map((t) => e[t]) : Object.values(e)).every(Sa);
|
|
2861
|
+
};
|
|
2862
|
+
Z.TABLE, Z.KANBAN, Z.CALENDAR, Z.LIST, Z.FIELDS_WIDGET, Z.TABLE_WIDGET, Z.KANBAN_WIDGET, Z.LIST_WIDGET, Z.CALENDAR_WIDGET;
|
|
2767
2863
|
//#endregion
|
|
2768
|
-
//#region ../twenty-shared/dist/
|
|
2864
|
+
//#region ../twenty-shared/dist/getPageLayoutWidgetHeightBehavior-b35uCMXW.mjs
|
|
2769
2865
|
var $ = /* @__PURE__ */ function(e) {
|
|
2770
2866
|
return e.OK = "OK", e.SUCCESS = "SUCCESS", e.INFO = "INFO", e.WARNING = "WARNING", e.ERROR = "ERROR", e.NEUTRAL = "NEUTRAL", e.UNKNOWN = "UNKNOWN", e;
|
|
2771
2867
|
}({});
|
|
2772
|
-
Object.values($).filter((e) => e !== $.OK && e !== $.UNKNOWN),
|
|
2868
|
+
Object.values($).filter((e) => e !== $.OK && e !== $.UNKNOWN), J.TEXT, J.ARRAY, J.BOOLEAN, J.DATE, J.DATE_TIME, J.NUMBER, J.NUMERIC, J.RAW_JSON, J.RICH_TEXT, J.SELECT, J.MULTI_SELECT;
|
|
2773
2869
|
//#endregion
|
|
2774
2870
|
//#region ../twenty-shared/dist/application.mjs
|
|
2775
|
-
var
|
|
2871
|
+
var Ca = "TWENTY_API_KEY", wa = "TWENTY_API_URL", Ta = "TWENTY_APP_ACCESS_TOKEN", Ea = "TWENTY_APP_APPLICATION_ACCESS_TOKEN", Da = "TWENTY_FUNCTIONS_URL";
|
|
2872
|
+
_a.map((e) => ga[e]);
|
|
2776
2873
|
//#endregion
|
|
2777
|
-
export {
|
|
2874
|
+
export { Ea as a, Ta as i, Ca as n, wa as r, Da as t };
|