@datadog/apps-frontend 0.0.9 → 0.0.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (31) hide show
  1. package/dist/src/_chunks/chunk-64RLSXHA.js +184 -0
  2. package/dist/src/_chunks/chunk-64RLSXHA.js.map +7 -0
  3. package/dist/src/_chunks/chunk-BWBMAWDD.js +235 -0
  4. package/dist/src/_chunks/{chunk-OEPH347K.js.map → chunk-BWBMAWDD.js.map} +3 -3
  5. package/dist/src/_chunks/chunk-E6L6DSL7.js +230 -0
  6. package/dist/src/_chunks/{chunk-LEEYMNMO.js.map → chunk-E6L6DSL7.js.map} +1 -1
  7. package/dist/src/_chunks/chunk-OF23NNWB.js +34 -0
  8. package/dist/src/_chunks/{chunk-XSHCFEOH.js.map → chunk-OF23NNWB.js.map} +1 -1
  9. package/dist/src/_chunks/chunk-ONCDAC2F.js +802 -0
  10. package/dist/src/_chunks/{chunk-EYBITW7J.js.map → chunk-ONCDAC2F.js.map} +2 -2
  11. package/dist/src/_chunks/chunk-SSORLL57.js +219 -0
  12. package/dist/src/_chunks/{chunk-D43RPVCF.js.map → chunk-SSORLL57.js.map} +1 -1
  13. package/dist/src/_chunks/chunk-VSZMABRM.js +54 -0
  14. package/dist/src/_chunks/{chunk-2V2HASKF.js.map → chunk-VSZMABRM.js.map} +1 -1
  15. package/dist/src/deep-links/react/index.js +8 -1
  16. package/dist/src/druids/react/index.js +25 -1
  17. package/dist/src/druids/react/index.js.map +1 -1
  18. package/dist/src/embedding/react/index.js +2908 -1
  19. package/dist/src/embedding/react/index.js.map +1 -1
  20. package/dist/src/inputs/published-definition.d.ts +13 -0
  21. package/dist/src/inputs/react/index.js +9 -1
  22. package/dist/src/inputs/schemas/index.js +15 -1
  23. package/package.json +2 -1
  24. package/dist/src/_chunks/chunk-2V2HASKF.js +0 -7
  25. package/dist/src/_chunks/chunk-D43RPVCF.js +0 -7
  26. package/dist/src/_chunks/chunk-DETZPDFA.js +0 -7
  27. package/dist/src/_chunks/chunk-DETZPDFA.js.map +0 -7
  28. package/dist/src/_chunks/chunk-EYBITW7J.js +0 -7
  29. package/dist/src/_chunks/chunk-LEEYMNMO.js +0 -7
  30. package/dist/src/_chunks/chunk-OEPH347K.js +0 -7
  31. package/dist/src/_chunks/chunk-XSHCFEOH.js +0 -7
@@ -0,0 +1,802 @@
1
+ /* Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0.
2
+ * This product includes software developed at Datadog (https://www.datadoghq.com/).
3
+ * Copyright 2019-Present Datadog, Inc.
4
+ */
5
+
6
+ // ../../../.yarn/local_cache/zod-npm-4.3.6-6c1bea135e504c5956e77815c1fbd3ce-2-d9.zip/node_modules/zod/v4/core/core.js
7
+ var Ee = Object.freeze({
8
+ status: "aborted"
9
+ });
10
+ // @__NO_SIDE_EFFECTS__
11
+ function v(e, t, r) {
12
+ function n(a, l) {
13
+ if (a._zod || Object.defineProperty(a, "_zod", {
14
+ value: {
15
+ def: l,
16
+ constr: o,
17
+ traits: /* @__PURE__ */ new Set()
18
+ },
19
+ enumerable: !1
20
+ }), a._zod.traits.has(e))
21
+ return;
22
+ a._zod.traits.add(e), t(a, l);
23
+ let c = o.prototype, f = Object.keys(c);
24
+ for (let g = 0; g < f.length; g++) {
25
+ let $ = f[g];
26
+ $ in a || (a[$] = c[$].bind(a));
27
+ }
28
+ }
29
+ let i = r?.Parent ?? Object;
30
+ class s extends i {
31
+ }
32
+ Object.defineProperty(s, "name", { value: e });
33
+ function o(a) {
34
+ var l;
35
+ let c = r?.Parent ? new s() : this;
36
+ n(c, a), (l = c._zod).deferred ?? (l.deferred = []);
37
+ for (let f of c._zod.deferred)
38
+ f();
39
+ return c;
40
+ }
41
+ return Object.defineProperty(o, "init", { value: n }), Object.defineProperty(o, Symbol.hasInstance, {
42
+ value: (a) => r?.Parent && a instanceof r.Parent ? !0 : a?._zod?.traits?.has(e)
43
+ }), Object.defineProperty(o, "name", { value: e }), o;
44
+ }
45
+ var x = class extends Error {
46
+ constructor() {
47
+ super("Encountered Promise during synchronous parse. Use .parseAsync() instead.");
48
+ }
49
+ };
50
+ var V = {};
51
+ function k(e) {
52
+ return e && Object.assign(V, e), V;
53
+ }
54
+
55
+ // ../../../.yarn/local_cache/zod-npm-4.3.6-6c1bea135e504c5956e77815c1fbd3ce-2-d9.zip/node_modules/zod/v4/core/util.js
56
+ function G(e) {
57
+ let t = Object.values(e).filter((n) => typeof n == "number");
58
+ return Object.entries(e).filter(([n, i]) => t.indexOf(+n) === -1).map(([n, i]) => i);
59
+ }
60
+ function ee(e, t) {
61
+ return typeof t == "bigint" ? t.toString() : t;
62
+ }
63
+ function K(e) {
64
+ return {
65
+ get value() {
66
+ {
67
+ let r = e();
68
+ return Object.defineProperty(this, "value", { value: r }), r;
69
+ }
70
+ throw new Error("cached value already set");
71
+ }
72
+ };
73
+ }
74
+ function te(e) {
75
+ return e == null;
76
+ }
77
+ function re(e) {
78
+ let t = e.startsWith("^") ? 1 : 0, r = e.endsWith("$") ? e.length - 1 : e.length;
79
+ return e.slice(t, r);
80
+ }
81
+ var Q = /* @__PURE__ */ Symbol("evaluating");
82
+ function I(e, t, r) {
83
+ let n;
84
+ Object.defineProperty(e, t, {
85
+ get() {
86
+ if (n !== Q)
87
+ return n === void 0 && (n = Q, n = r()), n;
88
+ },
89
+ set(i) {
90
+ Object.defineProperty(e, t, {
91
+ value: i
92
+ // configurable: true,
93
+ });
94
+ },
95
+ configurable: !0
96
+ });
97
+ }
98
+ var W = "captureStackTrace" in Error ? Error.captureStackTrace : (...e) => {
99
+ };
100
+ function T(e) {
101
+ return typeof e == "object" && e !== null && !Array.isArray(e);
102
+ }
103
+ var Ae = K(() => {
104
+ if (typeof navigator < "u" && navigator?.userAgent?.includes("Cloudflare"))
105
+ return !1;
106
+ try {
107
+ let e = Function;
108
+ return new e(""), !0;
109
+ } catch {
110
+ return !1;
111
+ }
112
+ });
113
+ function ne(e) {
114
+ if (T(e) === !1)
115
+ return !1;
116
+ let t = e.constructor;
117
+ if (t === void 0 || typeof t != "function")
118
+ return !0;
119
+ let r = t.prototype;
120
+ return !(T(r) === !1 || Object.prototype.hasOwnProperty.call(r, "isPrototypeOf") === !1);
121
+ }
122
+ var ie = /* @__PURE__ */ new Set(["string", "number", "symbol"]);
123
+ function N(e) {
124
+ return e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
125
+ }
126
+ function E(e, t, r) {
127
+ let n = new e._zod.constr(t ?? e._zod.def);
128
+ return (!t || r?.parent) && (n._zod.parent = e), n;
129
+ }
130
+ function _(e) {
131
+ let t = e;
132
+ if (!t)
133
+ return {};
134
+ if (typeof t == "string")
135
+ return { error: () => t };
136
+ if (t?.message !== void 0) {
137
+ if (t?.error !== void 0)
138
+ throw new Error("Cannot specify both `message` and `error` params");
139
+ t.error = t.message;
140
+ }
141
+ return delete t.message, typeof t.error == "string" ? { ...t, error: () => t.error } : t;
142
+ }
143
+ function oe(e) {
144
+ return Object.keys(e).filter((t) => e[t]._zod.optin === "optional" && e[t]._zod.optout === "optional");
145
+ }
146
+ var Me = {
147
+ safeint: [Number.MIN_SAFE_INTEGER, Number.MAX_SAFE_INTEGER],
148
+ int32: [-2147483648, 2147483647],
149
+ uint32: [0, 4294967295],
150
+ float32: [-34028234663852886e22, 34028234663852886e22],
151
+ float64: [-Number.MAX_VALUE, Number.MAX_VALUE]
152
+ };
153
+ function j(e, t = 0) {
154
+ if (e.aborted === !0)
155
+ return !0;
156
+ for (let r = t; r < e.issues.length; r++)
157
+ if (e.issues[r]?.continue !== !0)
158
+ return !0;
159
+ return !1;
160
+ }
161
+ function z(e, t) {
162
+ return t.map((r) => {
163
+ var n;
164
+ return (n = r).path ?? (n.path = []), r.path.unshift(e), r;
165
+ });
166
+ }
167
+ function O(e) {
168
+ return typeof e == "string" ? e : e?.message;
169
+ }
170
+ function S(e, t, r) {
171
+ let n = { ...e, path: e.path ?? [] };
172
+ if (!e.message) {
173
+ let i = O(e.inst?._zod.def?.error?.(e)) ?? O(t?.error?.(e)) ?? O(r.customError?.(e)) ?? O(r.localeError?.(e)) ?? "Invalid input";
174
+ n.message = i;
175
+ }
176
+ return delete n.inst, delete n.continue, t?.reportInput || delete n.input, n;
177
+ }
178
+ function ae(e) {
179
+ return Array.isArray(e) ? "array" : typeof e == "string" ? "string" : "unknown";
180
+ }
181
+
182
+ // ../../../.yarn/local_cache/zod-npm-4.3.6-6c1bea135e504c5956e77815c1fbd3ce-2-d9.zip/node_modules/zod/v4/core/errors.js
183
+ var ue = (e, t) => {
184
+ e.name = "$ZodError", Object.defineProperty(e, "_zod", {
185
+ value: e._zod,
186
+ enumerable: !1
187
+ }), Object.defineProperty(e, "issues", {
188
+ value: t,
189
+ enumerable: !1
190
+ }), e.message = JSON.stringify(t, ee, 2), Object.defineProperty(e, "toString", {
191
+ value: () => e.message,
192
+ enumerable: !1
193
+ });
194
+ }, ce = v("$ZodError", ue), U = v("$ZodError", ue, { Parent: Error });
195
+
196
+ // ../../../.yarn/local_cache/zod-npm-4.3.6-6c1bea135e504c5956e77815c1fbd3ce-2-d9.zip/node_modules/zod/v4/core/parse.js
197
+ var Re = (e) => (t, r, n, i) => {
198
+ let s = n ? Object.assign(n, { async: !1 }) : { async: !1 }, o = t._zod.run({ value: r, issues: [] }, s);
199
+ if (o instanceof Promise)
200
+ throw new x();
201
+ if (o.issues.length) {
202
+ let a = new (i?.Err ?? e)(o.issues.map((l) => S(l, s, k())));
203
+ throw W(a, i?.callee), a;
204
+ }
205
+ return o.value;
206
+ }, A = /* @__PURE__ */ Re(U), Ce = (e) => async (t, r, n, i) => {
207
+ let s = n ? Object.assign(n, { async: !0 }) : { async: !0 }, o = t._zod.run({ value: r, issues: [] }, s);
208
+ if (o instanceof Promise && (o = await o), o.issues.length) {
209
+ let a = new (i?.Err ?? e)(o.issues.map((l) => S(l, s, k())));
210
+ throw W(a, i?.callee), a;
211
+ }
212
+ return o.value;
213
+ }, M = /* @__PURE__ */ Ce(U), Fe = (e) => (t, r, n) => {
214
+ let i = n ? { ...n, async: !1 } : { async: !1 }, s = t._zod.run({ value: r, issues: [] }, i);
215
+ if (s instanceof Promise)
216
+ throw new x();
217
+ return s.issues.length ? {
218
+ success: !1,
219
+ error: new (e ?? ce)(s.issues.map((o) => S(o, i, k())))
220
+ } : { success: !0, data: s.value };
221
+ }, P = /* @__PURE__ */ Fe(U), Ve = (e) => async (t, r, n) => {
222
+ let i = n ? Object.assign(n, { async: !0 }) : { async: !0 }, s = t._zod.run({ value: r, issues: [] }, i);
223
+ return s instanceof Promise && (s = await s), s.issues.length ? {
224
+ success: !1,
225
+ error: new e(s.issues.map((o) => S(o, i, k())))
226
+ } : { success: !0, data: s.value };
227
+ }, Z = /* @__PURE__ */ Ve(U);
228
+
229
+ // ../../../.yarn/local_cache/zod-npm-4.3.6-6c1bea135e504c5956e77815c1fbd3ce-2-d9.zip/node_modules/zod/v4/core/regexes.js
230
+ var Je = "(?:(?:\\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])))", Ge = /* @__PURE__ */ new RegExp(`^${Je}$`);
231
+ var le = (e) => {
232
+ let t = e ? `[\\s\\S]{${e?.minimum ?? 0},${e?.maximum ?? ""}}` : "[\\s\\S]*";
233
+ return new RegExp(`^${t}$`);
234
+ };
235
+ var B = /^-?\d+(?:\.\d+)?$/, se = /^(?:true|false)$/i;
236
+ var de = /^undefined$/i;
237
+
238
+ // ../../../.yarn/local_cache/zod-npm-4.3.6-6c1bea135e504c5956e77815c1fbd3ce-2-d9.zip/node_modules/zod/v4/core/checks.js
239
+ var L = /* @__PURE__ */ v("$ZodCheck", (e, t) => {
240
+ var r;
241
+ e._zod ?? (e._zod = {}), e._zod.def = t, (r = e._zod).onattach ?? (r.onattach = []);
242
+ });
243
+ var me = /* @__PURE__ */ v("$ZodCheckMinLength", (e, t) => {
244
+ var r;
245
+ L.init(e, t), (r = e._zod.def).when ?? (r.when = (n) => {
246
+ let i = n.value;
247
+ return !te(i) && i.length !== void 0;
248
+ }), e._zod.onattach.push((n) => {
249
+ let i = n._zod.bag.minimum ?? Number.NEGATIVE_INFINITY;
250
+ t.minimum > i && (n._zod.bag.minimum = t.minimum);
251
+ }), e._zod.check = (n) => {
252
+ let i = n.value;
253
+ if (i.length >= t.minimum)
254
+ return;
255
+ let o = ae(i);
256
+ n.issues.push({
257
+ origin: o,
258
+ code: "too_small",
259
+ minimum: t.minimum,
260
+ inclusive: !0,
261
+ input: i,
262
+ inst: e,
263
+ continue: !t.abort
264
+ });
265
+ };
266
+ });
267
+
268
+ // ../../../.yarn/local_cache/zod-npm-4.3.6-6c1bea135e504c5956e77815c1fbd3ce-2-d9.zip/node_modules/zod/v4/core/versions.js
269
+ var fe = {
270
+ major: 4,
271
+ minor: 3,
272
+ patch: 6
273
+ };
274
+
275
+ // ../../../.yarn/local_cache/zod-npm-4.3.6-6c1bea135e504c5956e77815c1fbd3ce-2-d9.zip/node_modules/zod/v4/core/schemas.js
276
+ var h = /* @__PURE__ */ v("$ZodType", (e, t) => {
277
+ var r;
278
+ e ?? (e = {}), e._zod.def = t, e._zod.bag = e._zod.bag || {}, e._zod.version = fe;
279
+ let n = [...e._zod.def.checks ?? []];
280
+ e._zod.traits.has("$ZodCheck") && n.unshift(e);
281
+ for (let i of n)
282
+ for (let s of i._zod.onattach)
283
+ s(e);
284
+ if (n.length === 0)
285
+ (r = e._zod).deferred ?? (r.deferred = []), e._zod.deferred?.push(() => {
286
+ e._zod.run = e._zod.parse;
287
+ });
288
+ else {
289
+ let i = (o, a, l) => {
290
+ let c = j(o), f;
291
+ for (let g of a) {
292
+ if (g._zod.def.when) {
293
+ if (!g._zod.def.when(o))
294
+ continue;
295
+ } else if (c)
296
+ continue;
297
+ let $ = o.issues.length, b = g._zod.check(o);
298
+ if (b instanceof Promise && l?.async === !1)
299
+ throw new x();
300
+ if (f || b instanceof Promise)
301
+ f = (f ?? Promise.resolve()).then(async () => {
302
+ await b, o.issues.length !== $ && (c || (c = j(o, $)));
303
+ });
304
+ else {
305
+ if (o.issues.length === $)
306
+ continue;
307
+ c || (c = j(o, $));
308
+ }
309
+ }
310
+ return f ? f.then(() => o) : o;
311
+ }, s = (o, a, l) => {
312
+ if (j(o))
313
+ return o.aborted = !0, o;
314
+ let c = i(a, n, l);
315
+ if (c instanceof Promise) {
316
+ if (l.async === !1)
317
+ throw new x();
318
+ return c.then((f) => e._zod.parse(f, l));
319
+ }
320
+ return e._zod.parse(c, l);
321
+ };
322
+ e._zod.run = (o, a) => {
323
+ if (a.skipChecks)
324
+ return e._zod.parse(o, a);
325
+ if (a.direction === "backward") {
326
+ let c = e._zod.parse({ value: o.value, issues: [] }, { ...a, skipChecks: !0 });
327
+ return c instanceof Promise ? c.then((f) => s(f, o, a)) : s(c, o, a);
328
+ }
329
+ let l = e._zod.parse(o, a);
330
+ if (l instanceof Promise) {
331
+ if (a.async === !1)
332
+ throw new x();
333
+ return l.then((c) => i(c, n, a));
334
+ }
335
+ return i(l, n, a);
336
+ };
337
+ }
338
+ I(e, "~standard", () => ({
339
+ validate: (i) => {
340
+ try {
341
+ let s = P(e, i);
342
+ return s.success ? { value: s.data } : { issues: s.error?.issues };
343
+ } catch {
344
+ return Z(e, i).then((o) => o.success ? { value: o.data } : { issues: o.error?.issues });
345
+ }
346
+ },
347
+ vendor: "zod",
348
+ version: 1
349
+ }));
350
+ }), X = /* @__PURE__ */ v("$ZodString", (e, t) => {
351
+ h.init(e, t), e._zod.pattern = [...e?._zod.bag?.patterns ?? []].pop() ?? le(e._zod.bag), e._zod.parse = (r, n) => {
352
+ if (t.coerce)
353
+ try {
354
+ r.value = String(r.value);
355
+ } catch {
356
+ }
357
+ return typeof r.value == "string" || r.issues.push({
358
+ expected: "string",
359
+ code: "invalid_type",
360
+ input: r.value,
361
+ inst: e
362
+ }), r;
363
+ };
364
+ });
365
+ var $e = /* @__PURE__ */ v("$ZodNumber", (e, t) => {
366
+ h.init(e, t), e._zod.pattern = e._zod.bag.pattern ?? B, e._zod.parse = (r, n) => {
367
+ if (t.coerce)
368
+ try {
369
+ r.value = Number(r.value);
370
+ } catch {
371
+ }
372
+ let i = r.value;
373
+ if (typeof i == "number" && !Number.isNaN(i) && Number.isFinite(i))
374
+ return r;
375
+ let s = typeof i == "number" ? Number.isNaN(i) ? "NaN" : Number.isFinite(i) ? void 0 : "Infinity" : void 0;
376
+ return r.issues.push({
377
+ expected: "number",
378
+ code: "invalid_type",
379
+ input: i,
380
+ inst: e,
381
+ ...s ? { received: s } : {}
382
+ }), r;
383
+ };
384
+ });
385
+ var q = /* @__PURE__ */ v("$ZodBoolean", (e, t) => {
386
+ h.init(e, t), e._zod.pattern = se, e._zod.parse = (r, n) => {
387
+ if (t.coerce)
388
+ try {
389
+ r.value = !!r.value;
390
+ } catch {
391
+ }
392
+ let i = r.value;
393
+ return typeof i == "boolean" || r.issues.push({
394
+ expected: "boolean",
395
+ code: "invalid_type",
396
+ input: i,
397
+ inst: e
398
+ }), r;
399
+ };
400
+ });
401
+ var he = /* @__PURE__ */ v("$ZodUndefined", (e, t) => {
402
+ h.init(e, t), e._zod.pattern = de, e._zod.values = /* @__PURE__ */ new Set([void 0]), e._zod.optin = "optional", e._zod.optout = "optional", e._zod.parse = (r, n) => {
403
+ let i = r.value;
404
+ return typeof i > "u" || r.issues.push({
405
+ expected: "undefined",
406
+ code: "invalid_type",
407
+ input: i,
408
+ inst: e
409
+ }), r;
410
+ };
411
+ });
412
+ function ge(e, t, r) {
413
+ e.issues.length && t.issues.push(...z(r, e.issues)), t.value[r] = e.value;
414
+ }
415
+ var _e = /* @__PURE__ */ v("$ZodArray", (e, t) => {
416
+ h.init(e, t), e._zod.parse = (r, n) => {
417
+ let i = r.value;
418
+ if (!Array.isArray(i))
419
+ return r.issues.push({
420
+ expected: "array",
421
+ code: "invalid_type",
422
+ input: i,
423
+ inst: e
424
+ }), r;
425
+ r.value = Array(i.length);
426
+ let s = [];
427
+ for (let o = 0; o < i.length; o++) {
428
+ let a = i[o], l = t.element._zod.run({
429
+ value: a,
430
+ issues: []
431
+ }, n);
432
+ l instanceof Promise ? s.push(l.then((c) => ge(c, r, o))) : ge(l, r, o);
433
+ }
434
+ return s.length ? Promise.all(s).then(() => r) : r;
435
+ };
436
+ });
437
+ function R(e, t, r, n, i) {
438
+ if (e.issues.length) {
439
+ if (i && !(r in n))
440
+ return;
441
+ t.issues.push(...z(r, e.issues));
442
+ }
443
+ e.value === void 0 ? r in n && (t.value[r] = void 0) : t.value[r] = e.value;
444
+ }
445
+ function We(e) {
446
+ let t = Object.keys(e.shape);
447
+ for (let n of t)
448
+ if (!e.shape?.[n]?._zod?.traits?.has("$ZodType"))
449
+ throw new Error(`Invalid element at key "${n}": expected a Zod schema`);
450
+ let r = oe(e.shape);
451
+ return {
452
+ ...e,
453
+ keys: t,
454
+ keySet: new Set(t),
455
+ numKeys: t.length,
456
+ optionalKeys: new Set(r)
457
+ };
458
+ }
459
+ function Be(e, t, r, n, i, s) {
460
+ let o = [], a = i.keySet, l = i.catchall._zod, c = l.def.type, f = l.optout === "optional";
461
+ for (let g in t) {
462
+ if (a.has(g))
463
+ continue;
464
+ if (c === "never") {
465
+ o.push(g);
466
+ continue;
467
+ }
468
+ let $ = l.run({ value: t[g], issues: [] }, n);
469
+ $ instanceof Promise ? e.push($.then((b) => R(b, r, g, t, f))) : R($, r, g, t, f);
470
+ }
471
+ return o.length && r.issues.push({
472
+ code: "unrecognized_keys",
473
+ keys: o,
474
+ input: t,
475
+ inst: s
476
+ }), e.length ? Promise.all(e).then(() => r) : r;
477
+ }
478
+ var xe = /* @__PURE__ */ v("$ZodObject", (e, t) => {
479
+ if (h.init(e, t), !Object.getOwnPropertyDescriptor(t, "shape")?.get) {
480
+ let a = t.shape;
481
+ Object.defineProperty(t, "shape", {
482
+ get: () => {
483
+ let l = { ...a };
484
+ return Object.defineProperty(t, "shape", {
485
+ value: l
486
+ }), l;
487
+ }
488
+ });
489
+ }
490
+ let n = K(() => We(t));
491
+ I(e._zod, "propValues", () => {
492
+ let a = t.shape, l = {};
493
+ for (let c in a) {
494
+ let f = a[c]._zod;
495
+ if (f.values) {
496
+ l[c] ?? (l[c] = /* @__PURE__ */ new Set());
497
+ for (let g of f.values)
498
+ l[c].add(g);
499
+ }
500
+ }
501
+ return l;
502
+ });
503
+ let i = T, s = t.catchall, o;
504
+ e._zod.parse = (a, l) => {
505
+ o ?? (o = n.value);
506
+ let c = a.value;
507
+ if (!i(c))
508
+ return a.issues.push({
509
+ expected: "object",
510
+ code: "invalid_type",
511
+ input: c,
512
+ inst: e
513
+ }), a;
514
+ a.value = {};
515
+ let f = [], g = o.shape;
516
+ for (let $ of o.keys) {
517
+ let b = g[$], w = b._zod.optout === "optional", F = b._zod.run({ value: c[$], issues: [] }, l);
518
+ F instanceof Promise ? f.push(F.then((Ne) => R(Ne, a, $, c, w))) : R(F, a, $, c, w);
519
+ }
520
+ return s ? Be(f, c, a, l, n.value, e) : f.length ? Promise.all(f).then(() => a) : a;
521
+ };
522
+ });
523
+ var ye = /* @__PURE__ */ v("$ZodRecord", (e, t) => {
524
+ h.init(e, t), e._zod.parse = (r, n) => {
525
+ let i = r.value;
526
+ if (!ne(i))
527
+ return r.issues.push({
528
+ expected: "record",
529
+ code: "invalid_type",
530
+ input: i,
531
+ inst: e
532
+ }), r;
533
+ let s = [], o = t.keyType._zod.values;
534
+ if (o) {
535
+ r.value = {};
536
+ let a = /* @__PURE__ */ new Set();
537
+ for (let c of o)
538
+ if (typeof c == "string" || typeof c == "number" || typeof c == "symbol") {
539
+ a.add(typeof c == "number" ? c.toString() : c);
540
+ let f = t.valueType._zod.run({ value: i[c], issues: [] }, n);
541
+ f instanceof Promise ? s.push(f.then((g) => {
542
+ g.issues.length && r.issues.push(...z(c, g.issues)), r.value[c] = g.value;
543
+ })) : (f.issues.length && r.issues.push(...z(c, f.issues)), r.value[c] = f.value);
544
+ }
545
+ let l;
546
+ for (let c in i)
547
+ a.has(c) || (l = l ?? [], l.push(c));
548
+ l && l.length > 0 && r.issues.push({
549
+ code: "unrecognized_keys",
550
+ input: i,
551
+ inst: e,
552
+ keys: l
553
+ });
554
+ } else {
555
+ r.value = {};
556
+ for (let a of Reflect.ownKeys(i)) {
557
+ if (a === "__proto__")
558
+ continue;
559
+ let l = t.keyType._zod.run({ value: a, issues: [] }, n);
560
+ if (l instanceof Promise)
561
+ throw new Error("Async schemas not supported in object keys currently");
562
+ if (typeof a == "string" && B.test(a) && l.issues.length) {
563
+ let g = t.keyType._zod.run({ value: Number(a), issues: [] }, n);
564
+ if (g instanceof Promise)
565
+ throw new Error("Async schemas not supported in object keys currently");
566
+ g.issues.length === 0 && (l = g);
567
+ }
568
+ if (l.issues.length) {
569
+ t.mode === "loose" ? r.value[a] = i[a] : r.issues.push({
570
+ code: "invalid_key",
571
+ origin: "record",
572
+ issues: l.issues.map((g) => S(g, n, k())),
573
+ input: a,
574
+ path: [a],
575
+ inst: e
576
+ });
577
+ continue;
578
+ }
579
+ let f = t.valueType._zod.run({ value: i[a], issues: [] }, n);
580
+ f instanceof Promise ? s.push(f.then((g) => {
581
+ g.issues.length && r.issues.push(...z(a, g.issues)), r.value[l.value] = g.value;
582
+ })) : (f.issues.length && r.issues.push(...z(a, f.issues)), r.value[l.value] = f.value);
583
+ }
584
+ }
585
+ return s.length ? Promise.all(s).then(() => r) : r;
586
+ };
587
+ });
588
+ var be = /* @__PURE__ */ v("$ZodEnum", (e, t) => {
589
+ h.init(e, t);
590
+ let r = G(t.entries), n = new Set(r);
591
+ e._zod.values = n, e._zod.pattern = new RegExp(`^(${r.filter((i) => ie.has(typeof i)).map((i) => typeof i == "string" ? N(i) : i.toString()).join("|")})$`), e._zod.parse = (i, s) => {
592
+ let o = i.value;
593
+ return n.has(o) || i.issues.push({
594
+ code: "invalid_value",
595
+ values: r,
596
+ input: o,
597
+ inst: e
598
+ }), i;
599
+ };
600
+ });
601
+ function ve(e, t) {
602
+ return e.issues.length && t === void 0 ? { issues: [], value: void 0 } : e;
603
+ }
604
+ var ke = /* @__PURE__ */ v("$ZodOptional", (e, t) => {
605
+ h.init(e, t), e._zod.optin = "optional", e._zod.optout = "optional", I(e._zod, "values", () => t.innerType._zod.values ? /* @__PURE__ */ new Set([...t.innerType._zod.values, void 0]) : void 0), I(e._zod, "pattern", () => {
606
+ let r = t.innerType._zod.pattern;
607
+ return r ? new RegExp(`^(${re(r.source)})?$`) : void 0;
608
+ }), e._zod.parse = (r, n) => {
609
+ if (t.innerType._zod.optin === "optional") {
610
+ let i = t.innerType._zod.run(r, n);
611
+ return i instanceof Promise ? i.then((s) => ve(s, r.value)) : ve(i, r.value);
612
+ }
613
+ return r.value === void 0 ? r : t.innerType._zod.run(r, n);
614
+ };
615
+ });
616
+
617
+ // ../../../.yarn/local_cache/zod-npm-4.3.6-6c1bea135e504c5956e77815c1fbd3ce-2-d9.zip/node_modules/zod/v4/core/registries.js
618
+ var Ie;
619
+ var Y = class {
620
+ constructor() {
621
+ this._map = /* @__PURE__ */ new WeakMap(), this._idmap = /* @__PURE__ */ new Map();
622
+ }
623
+ add(t, ...r) {
624
+ let n = r[0];
625
+ return this._map.set(t, n), n && typeof n == "object" && "id" in n && this._idmap.set(n.id, t), this;
626
+ }
627
+ clear() {
628
+ return this._map = /* @__PURE__ */ new WeakMap(), this._idmap = /* @__PURE__ */ new Map(), this;
629
+ }
630
+ remove(t) {
631
+ let r = this._map.get(t);
632
+ return r && typeof r == "object" && "id" in r && this._idmap.delete(r.id), this._map.delete(t), this;
633
+ }
634
+ get(t) {
635
+ let r = t._zod.parent;
636
+ if (r) {
637
+ let n = { ...this.get(r) ?? {} };
638
+ delete n.id;
639
+ let i = { ...n, ...this._map.get(t) };
640
+ return Object.keys(i).length ? i : void 0;
641
+ }
642
+ return this._map.get(t);
643
+ }
644
+ has(t) {
645
+ return this._map.has(t);
646
+ }
647
+ };
648
+ function Se() {
649
+ return new Y();
650
+ }
651
+ (Ie = globalThis).__zod_globalRegistry ?? (Ie.__zod_globalRegistry = Se());
652
+ var H = globalThis.__zod_globalRegistry;
653
+
654
+ // ../../../.yarn/local_cache/zod-npm-4.3.6-6c1bea135e504c5956e77815c1fbd3ce-2-d9.zip/node_modules/zod/v4/core/api.js
655
+ // @__NO_SIDE_EFFECTS__
656
+ function we(e, t) {
657
+ return new e({
658
+ type: "string",
659
+ ..._(t)
660
+ });
661
+ }
662
+ // @__NO_SIDE_EFFECTS__
663
+ function je(e, t) {
664
+ return new e({
665
+ type: "number",
666
+ checks: [],
667
+ ..._(t)
668
+ });
669
+ }
670
+ // @__NO_SIDE_EFFECTS__
671
+ function Ue(e, t) {
672
+ return new e({
673
+ type: "boolean",
674
+ ..._(t)
675
+ });
676
+ }
677
+ // @__NO_SIDE_EFFECTS__
678
+ function Pe(e, t) {
679
+ return new e({
680
+ type: "undefined",
681
+ ..._(t)
682
+ });
683
+ }
684
+ // @__NO_SIDE_EFFECTS__
685
+ function tt(e, t) {
686
+ return new me({
687
+ check: "min_length",
688
+ ..._(t),
689
+ minimum: e
690
+ });
691
+ }
692
+
693
+ // ../../../.yarn/local_cache/zod-npm-4.3.6-6c1bea135e504c5956e77815c1fbd3ce-2-d9.zip/node_modules/zod/v4/mini/schemas.js
694
+ var y = /* @__PURE__ */ v("ZodMiniType", (e, t) => {
695
+ if (!e._zod)
696
+ throw new Error("Uninitialized schema in ZodMiniType.");
697
+ h.init(e, t), e.def = t, e.type = t.type, e.parse = (r, n) => A(e, r, n, { callee: e.parse }), e.safeParse = (r, n) => P(e, r, n), e.parseAsync = async (r, n) => M(e, r, n, { callee: e.parseAsync }), e.safeParseAsync = async (r, n) => Z(e, r, n), e.check = (...r) => e.clone({
698
+ ...t,
699
+ checks: [
700
+ ...t.checks ?? [],
701
+ ...r.map((n) => typeof n == "function" ? { _zod: { check: n, def: { check: "custom" }, onattach: [] } } : n)
702
+ ]
703
+ }, { parent: !0 }), e.with = e.check, e.clone = (r, n) => E(e, r, n), e.brand = () => e, e.register = ((r, n) => (r.add(e, n), e)), e.apply = (r) => r(e);
704
+ }), Ze = /* @__PURE__ */ v("ZodMiniString", (e, t) => {
705
+ X.init(e, t), y.init(e, t);
706
+ });
707
+ // @__NO_SIDE_EFFECTS__
708
+ function Xu(e) {
709
+ return we(Ze, e);
710
+ }
711
+ var De = /* @__PURE__ */ v("ZodMiniNumber", (e, t) => {
712
+ $e.init(e, t), y.init(e, t);
713
+ });
714
+ // @__NO_SIDE_EFFECTS__
715
+ function qu(e) {
716
+ return je(De, e);
717
+ }
718
+ var Oe = /* @__PURE__ */ v("ZodMiniBoolean", (e, t) => {
719
+ q.init(e, t), y.init(e, t);
720
+ });
721
+ // @__NO_SIDE_EFFECTS__
722
+ function Yu(e) {
723
+ return Ue(Oe, e);
724
+ }
725
+ var ct = /* @__PURE__ */ v("ZodMiniUndefined", (e, t) => {
726
+ he.init(e, t), y.init(e, t);
727
+ });
728
+ // @__NO_SIDE_EFFECTS__
729
+ function Hu(e) {
730
+ return Pe(ct, e);
731
+ }
732
+ var lt = /* @__PURE__ */ v("ZodMiniArray", (e, t) => {
733
+ _e.init(e, t), y.init(e, t);
734
+ });
735
+ // @__NO_SIDE_EFFECTS__
736
+ function Qu(e, t) {
737
+ return new lt({
738
+ type: "array",
739
+ element: e,
740
+ ..._(t)
741
+ });
742
+ }
743
+ var st = /* @__PURE__ */ v("ZodMiniObject", (e, t) => {
744
+ xe.init(e, t), y.init(e, t), I(e, "shape", () => t.shape);
745
+ });
746
+ // @__NO_SIDE_EFFECTS__
747
+ function ec(e, t) {
748
+ let r = {
749
+ type: "object",
750
+ shape: e ?? {},
751
+ ..._(t)
752
+ };
753
+ return new st(r);
754
+ }
755
+ var dt = /* @__PURE__ */ v("ZodMiniRecord", (e, t) => {
756
+ ye.init(e, t), y.init(e, t);
757
+ });
758
+ // @__NO_SIDE_EFFECTS__
759
+ function tc(e, t, r) {
760
+ return new dt({
761
+ type: "record",
762
+ keyType: e,
763
+ valueType: t,
764
+ ..._(r)
765
+ });
766
+ }
767
+ var mt = /* @__PURE__ */ v("ZodMiniEnum", (e, t) => {
768
+ be.init(e, t), y.init(e, t), e.options = Object.values(t.entries);
769
+ });
770
+ // @__NO_SIDE_EFFECTS__
771
+ function rc(e, t) {
772
+ let r = Array.isArray(e) ? Object.fromEntries(e.map((n) => [n, n])) : e;
773
+ return new mt({
774
+ type: "enum",
775
+ entries: r,
776
+ ..._(t)
777
+ });
778
+ }
779
+ var pt = /* @__PURE__ */ v("ZodMiniOptional", (e, t) => {
780
+ ke.init(e, t), y.init(e, t);
781
+ });
782
+ // @__NO_SIDE_EFFECTS__
783
+ function nc(e) {
784
+ return new pt({
785
+ type: "optional",
786
+ innerType: e
787
+ });
788
+ }
789
+
790
+ export {
791
+ tt as a,
792
+ Xu as b,
793
+ qu as c,
794
+ Yu as d,
795
+ Hu as e,
796
+ Qu as f,
797
+ ec as g,
798
+ tc as h,
799
+ rc as i,
800
+ nc as j
801
+ };
802
+ //# sourceMappingURL=chunk-ONCDAC2F.js.map