@object-ui/plugin-map 3.3.1 → 3.4.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/CHANGELOG.md +33 -0
- package/dist/index.js +1122 -1010
- package/dist/index.umd.cjs +34 -34
- package/dist/packages/plugin-map/src/ObjectMap.d.ts.map +1 -1
- package/package.json +8 -8
package/dist/index.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { n as e, r as t, t as n } from "./chunk-D8eiyYIV.js";
|
|
2
2
|
import * as r from "react";
|
|
3
|
-
import { forwardRef as i, memo as a,
|
|
4
|
-
import { ComponentRegistry as
|
|
5
|
-
import { useNavigationOverlay as
|
|
6
|
-
import { NavigationOverlay as
|
|
7
|
-
import { createPortal as
|
|
3
|
+
import { forwardRef as i, memo as a, useCallback as o, useContext as s, useEffect as c, useImperativeHandle as l, useLayoutEffect as u, useMemo as d, useRef as f, useState as p } from "react";
|
|
4
|
+
import { ComponentRegistry as m, buildExpandFields as h, extractRecords as ee } from "@object-ui/core";
|
|
5
|
+
import { useNavigationOverlay as te, useSchemaContext as g } from "@object-ui/react";
|
|
6
|
+
import { NavigationOverlay as ne, cn as re, useIsMobile as ie } from "@object-ui/components";
|
|
7
|
+
import { createPortal as _ } from "react-dom";
|
|
8
8
|
//#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/core.js
|
|
9
|
-
var
|
|
10
|
-
function
|
|
9
|
+
var ae;
|
|
10
|
+
function v(e, t, n) {
|
|
11
11
|
function r(n, r) {
|
|
12
12
|
if (n._zod || Object.defineProperty(n, "_zod", {
|
|
13
13
|
value: {
|
|
@@ -36,30 +36,30 @@ function b(e, t, n) {
|
|
|
36
36
|
}
|
|
37
37
|
return Object.defineProperty(o, "init", { value: r }), Object.defineProperty(o, Symbol.hasInstance, { value: (t) => n?.Parent && t instanceof n.Parent ? !0 : t?._zod?.traits?.has(e) }), Object.defineProperty(o, "name", { value: e }), o;
|
|
38
38
|
}
|
|
39
|
-
var
|
|
39
|
+
var y = class extends Error {
|
|
40
40
|
constructor() {
|
|
41
41
|
super("Encountered Promise during synchronous parse. Use .parseAsync() instead.");
|
|
42
42
|
}
|
|
43
|
-
},
|
|
43
|
+
}, oe = class extends Error {
|
|
44
44
|
constructor(e) {
|
|
45
45
|
super(`Encountered unidirectional transform during encode: ${e}`), this.name = "ZodEncodeError";
|
|
46
46
|
}
|
|
47
47
|
};
|
|
48
|
-
(
|
|
49
|
-
var
|
|
50
|
-
function
|
|
51
|
-
return e && Object.assign(
|
|
48
|
+
(ae = globalThis).__zod_globalConfig ?? (ae.__zod_globalConfig = {});
|
|
49
|
+
var b = globalThis.__zod_globalConfig;
|
|
50
|
+
function x(e) {
|
|
51
|
+
return e && Object.assign(b, e), b;
|
|
52
52
|
}
|
|
53
53
|
//#endregion
|
|
54
54
|
//#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/util.js
|
|
55
|
-
function
|
|
55
|
+
function se(e) {
|
|
56
56
|
let t = Object.values(e).filter((e) => typeof e == "number");
|
|
57
57
|
return Object.entries(e).filter(([e, n]) => t.indexOf(+e) === -1).map(([e, t]) => t);
|
|
58
58
|
}
|
|
59
|
-
function
|
|
59
|
+
function S(e, t) {
|
|
60
60
|
return typeof t == "bigint" ? t.toString() : t;
|
|
61
61
|
}
|
|
62
|
-
function
|
|
62
|
+
function C(e) {
|
|
63
63
|
return { get value() {
|
|
64
64
|
{
|
|
65
65
|
let t = e();
|
|
@@ -68,23 +68,23 @@ function re(e) {
|
|
|
68
68
|
throw Error("cached value already set");
|
|
69
69
|
} };
|
|
70
70
|
}
|
|
71
|
-
function
|
|
71
|
+
function ce(e) {
|
|
72
72
|
return e == null;
|
|
73
73
|
}
|
|
74
|
-
function
|
|
74
|
+
function w(e) {
|
|
75
75
|
let t = +!!e.startsWith("^"), n = e.endsWith("$") ? e.length - 1 : e.length;
|
|
76
76
|
return e.slice(t, n);
|
|
77
77
|
}
|
|
78
|
-
function
|
|
78
|
+
function T(e, t) {
|
|
79
79
|
let n = e / t, r = Math.round(n), i = 2 ** -52 * Math.max(Math.abs(n), 1);
|
|
80
80
|
return Math.abs(n - r) < i ? 0 : n - r;
|
|
81
81
|
}
|
|
82
|
-
var
|
|
83
|
-
function
|
|
82
|
+
var E = /* @__PURE__ */ Symbol("evaluating");
|
|
83
|
+
function D(e, t, n) {
|
|
84
84
|
let r;
|
|
85
85
|
Object.defineProperty(e, t, {
|
|
86
86
|
get() {
|
|
87
|
-
if (r !==
|
|
87
|
+
if (r !== E) return r === void 0 && (r = E, r = n()), r;
|
|
88
88
|
},
|
|
89
89
|
set(n) {
|
|
90
90
|
Object.defineProperty(e, t, { value: n });
|
|
@@ -92,7 +92,7 @@ function A(e, t, n) {
|
|
|
92
92
|
configurable: !0
|
|
93
93
|
});
|
|
94
94
|
}
|
|
95
|
-
function
|
|
95
|
+
function O(e, t, n) {
|
|
96
96
|
Object.defineProperty(e, t, {
|
|
97
97
|
value: n,
|
|
98
98
|
writable: !0,
|
|
@@ -100,45 +100,45 @@ function j(e, t, n) {
|
|
|
100
100
|
configurable: !0
|
|
101
101
|
});
|
|
102
102
|
}
|
|
103
|
-
function
|
|
103
|
+
function k(...e) {
|
|
104
104
|
let t = {};
|
|
105
105
|
for (let n of e) Object.assign(t, Object.getOwnPropertyDescriptors(n));
|
|
106
106
|
return Object.defineProperties({}, t);
|
|
107
107
|
}
|
|
108
|
-
function
|
|
108
|
+
function le(e) {
|
|
109
109
|
return JSON.stringify(e);
|
|
110
110
|
}
|
|
111
|
-
function
|
|
111
|
+
function ue(e) {
|
|
112
112
|
return e.toLowerCase().trim().replace(/[^\w\s-]/g, "").replace(/[\s_-]+/g, "-").replace(/^-+|-+$/g, "");
|
|
113
113
|
}
|
|
114
|
-
var
|
|
115
|
-
function
|
|
114
|
+
var de = "captureStackTrace" in Error ? Error.captureStackTrace : (...e) => {};
|
|
115
|
+
function A(e) {
|
|
116
116
|
return typeof e == "object" && !!e && !Array.isArray(e);
|
|
117
117
|
}
|
|
118
|
-
var
|
|
119
|
-
if (
|
|
118
|
+
var j = /* @__PURE__ */ C(() => {
|
|
119
|
+
if (b.jitless || typeof navigator < "u" && navigator?.userAgent?.includes("Cloudflare")) return !1;
|
|
120
120
|
try {
|
|
121
121
|
return Function(""), !0;
|
|
122
122
|
} catch {
|
|
123
123
|
return !1;
|
|
124
124
|
}
|
|
125
125
|
});
|
|
126
|
-
function
|
|
127
|
-
if (
|
|
126
|
+
function M(e) {
|
|
127
|
+
if (A(e) === !1) return !1;
|
|
128
128
|
let t = e.constructor;
|
|
129
129
|
if (t === void 0 || typeof t != "function") return !0;
|
|
130
130
|
let n = t.prototype;
|
|
131
|
-
return !(
|
|
131
|
+
return !(A(n) === !1 || Object.prototype.hasOwnProperty.call(n, "isPrototypeOf") === !1);
|
|
132
132
|
}
|
|
133
|
-
function
|
|
134
|
-
return
|
|
133
|
+
function N(e) {
|
|
134
|
+
return M(e) ? { ...e } : Array.isArray(e) ? [...e] : e instanceof Map ? new Map(e) : e instanceof Set ? new Set(e) : e;
|
|
135
135
|
}
|
|
136
|
-
var
|
|
136
|
+
var P = /* @__PURE__ */ new Set([
|
|
137
137
|
"string",
|
|
138
138
|
"number",
|
|
139
139
|
"symbol"
|
|
140
140
|
]);
|
|
141
|
-
function
|
|
141
|
+
function F(e) {
|
|
142
142
|
return e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
143
143
|
}
|
|
144
144
|
function I(e, t, n) {
|
|
@@ -158,80 +158,80 @@ function L(e) {
|
|
|
158
158
|
error: () => t.error
|
|
159
159
|
} : t;
|
|
160
160
|
}
|
|
161
|
-
function
|
|
161
|
+
function fe(e) {
|
|
162
162
|
return Object.keys(e).filter((t) => e[t]._zod.optin === "optional" && e[t]._zod.optout === "optional");
|
|
163
163
|
}
|
|
164
|
-
var
|
|
164
|
+
var pe = {
|
|
165
165
|
safeint: [-(2 ** 53 - 1), 2 ** 53 - 1],
|
|
166
166
|
int32: [-2147483648, 2147483647],
|
|
167
167
|
uint32: [0, 4294967295],
|
|
168
168
|
float32: [-34028234663852886e22, 34028234663852886e22],
|
|
169
169
|
float64: [-Number.MAX_VALUE, Number.MAX_VALUE]
|
|
170
170
|
};
|
|
171
|
-
function
|
|
171
|
+
function R(e, t) {
|
|
172
172
|
let n = e._zod.def, r = n.checks;
|
|
173
173
|
if (r && r.length > 0) throw Error(".pick() cannot be used on object schemas containing refinements");
|
|
174
|
-
return I(e,
|
|
174
|
+
return I(e, k(e._zod.def, {
|
|
175
175
|
get shape() {
|
|
176
176
|
let e = {};
|
|
177
177
|
for (let r in t) {
|
|
178
178
|
if (!(r in n.shape)) throw Error(`Unrecognized key: "${r}"`);
|
|
179
179
|
t[r] && (e[r] = n.shape[r]);
|
|
180
180
|
}
|
|
181
|
-
return
|
|
181
|
+
return O(this, "shape", e), e;
|
|
182
182
|
},
|
|
183
183
|
checks: []
|
|
184
184
|
}));
|
|
185
185
|
}
|
|
186
|
-
function
|
|
186
|
+
function me(e, t) {
|
|
187
187
|
let n = e._zod.def, r = n.checks;
|
|
188
188
|
if (r && r.length > 0) throw Error(".omit() cannot be used on object schemas containing refinements");
|
|
189
|
-
return I(e,
|
|
189
|
+
return I(e, k(e._zod.def, {
|
|
190
190
|
get shape() {
|
|
191
191
|
let r = { ...e._zod.def.shape };
|
|
192
192
|
for (let e in t) {
|
|
193
193
|
if (!(e in n.shape)) throw Error(`Unrecognized key: "${e}"`);
|
|
194
194
|
t[e] && delete r[e];
|
|
195
195
|
}
|
|
196
|
-
return
|
|
196
|
+
return O(this, "shape", r), r;
|
|
197
197
|
},
|
|
198
198
|
checks: []
|
|
199
199
|
}));
|
|
200
200
|
}
|
|
201
|
-
function
|
|
202
|
-
if (!
|
|
201
|
+
function he(e, t) {
|
|
202
|
+
if (!M(t)) throw Error("Invalid input to extend: expected a plain object");
|
|
203
203
|
let n = e._zod.def.checks;
|
|
204
204
|
if (n && n.length > 0) {
|
|
205
205
|
let n = e._zod.def.shape;
|
|
206
206
|
for (let e in t) if (Object.getOwnPropertyDescriptor(n, e) !== void 0) throw Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.");
|
|
207
207
|
}
|
|
208
|
-
return I(e,
|
|
208
|
+
return I(e, k(e._zod.def, { get shape() {
|
|
209
209
|
let n = {
|
|
210
210
|
...e._zod.def.shape,
|
|
211
211
|
...t
|
|
212
212
|
};
|
|
213
|
-
return
|
|
213
|
+
return O(this, "shape", n), n;
|
|
214
214
|
} }));
|
|
215
215
|
}
|
|
216
|
-
function
|
|
217
|
-
if (!
|
|
218
|
-
return I(e,
|
|
216
|
+
function ge(e, t) {
|
|
217
|
+
if (!M(t)) throw Error("Invalid input to safeExtend: expected a plain object");
|
|
218
|
+
return I(e, k(e._zod.def, { get shape() {
|
|
219
219
|
let n = {
|
|
220
220
|
...e._zod.def.shape,
|
|
221
221
|
...t
|
|
222
222
|
};
|
|
223
|
-
return
|
|
223
|
+
return O(this, "shape", n), n;
|
|
224
224
|
} }));
|
|
225
225
|
}
|
|
226
|
-
function
|
|
226
|
+
function _e(e, t) {
|
|
227
227
|
if (e._zod.def.checks?.length) throw Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");
|
|
228
|
-
return I(e,
|
|
228
|
+
return I(e, k(e._zod.def, {
|
|
229
229
|
get shape() {
|
|
230
230
|
let n = {
|
|
231
231
|
...e._zod.def.shape,
|
|
232
232
|
...t._zod.def.shape
|
|
233
233
|
};
|
|
234
|
-
return
|
|
234
|
+
return O(this, "shape", n), n;
|
|
235
235
|
},
|
|
236
236
|
get catchall() {
|
|
237
237
|
return t._zod.def.catchall;
|
|
@@ -239,10 +239,10 @@ function ge(e, t) {
|
|
|
239
239
|
checks: t._zod.def.checks ?? []
|
|
240
240
|
}));
|
|
241
241
|
}
|
|
242
|
-
function
|
|
242
|
+
function ve(e, t, n) {
|
|
243
243
|
let r = t._zod.def.checks;
|
|
244
244
|
if (r && r.length > 0) throw Error(".partial() cannot be used on object schemas containing refinements");
|
|
245
|
-
return I(t,
|
|
245
|
+
return I(t, k(t._zod.def, {
|
|
246
246
|
get shape() {
|
|
247
247
|
let r = t._zod.def.shape, i = { ...r };
|
|
248
248
|
if (n) for (let t in n) {
|
|
@@ -256,13 +256,13 @@ function _e(e, t, n) {
|
|
|
256
256
|
type: "optional",
|
|
257
257
|
innerType: r[t]
|
|
258
258
|
}) : r[t];
|
|
259
|
-
return
|
|
259
|
+
return O(this, "shape", i), i;
|
|
260
260
|
},
|
|
261
261
|
checks: []
|
|
262
262
|
}));
|
|
263
263
|
}
|
|
264
|
-
function
|
|
265
|
-
return I(t,
|
|
264
|
+
function ye(e, t, n) {
|
|
265
|
+
return I(t, k(t._zod.def, { get shape() {
|
|
266
266
|
let r = t._zod.def.shape, i = { ...r };
|
|
267
267
|
if (n) for (let t in n) {
|
|
268
268
|
if (!(t in i)) throw Error(`Unrecognized key: "${t}"`);
|
|
@@ -275,36 +275,36 @@ function ve(e, t, n) {
|
|
|
275
275
|
type: "nonoptional",
|
|
276
276
|
innerType: r[t]
|
|
277
277
|
});
|
|
278
|
-
return
|
|
278
|
+
return O(this, "shape", i), i;
|
|
279
279
|
} }));
|
|
280
280
|
}
|
|
281
|
-
function
|
|
281
|
+
function z(e, t = 0) {
|
|
282
282
|
if (e.aborted === !0) return !0;
|
|
283
283
|
for (let n = t; n < e.issues.length; n++) if (e.issues[n]?.continue !== !0) return !0;
|
|
284
284
|
return !1;
|
|
285
285
|
}
|
|
286
|
-
function
|
|
286
|
+
function be(e, t = 0) {
|
|
287
287
|
if (e.aborted === !0) return !0;
|
|
288
288
|
for (let n = t; n < e.issues.length; n++) if (e.issues[n]?.continue === !1) return !0;
|
|
289
289
|
return !1;
|
|
290
290
|
}
|
|
291
|
-
function
|
|
291
|
+
function xe(e, t) {
|
|
292
292
|
return t.map((t) => {
|
|
293
293
|
var n;
|
|
294
294
|
return (n = t).path ?? (n.path = []), t.path.unshift(e), t;
|
|
295
295
|
});
|
|
296
296
|
}
|
|
297
|
-
function
|
|
297
|
+
function Se(e) {
|
|
298
298
|
return typeof e == "string" ? e : e?.message;
|
|
299
299
|
}
|
|
300
|
-
function
|
|
301
|
-
let r = e.message ? e.message :
|
|
300
|
+
function B(e, t, n) {
|
|
301
|
+
let r = e.message ? e.message : Se(e.inst?._zod.def?.error?.(e)) ?? Se(t?.error?.(e)) ?? Se(n.customError?.(e)) ?? Se(n.localeError?.(e)) ?? "Invalid input", { inst: i, continue: a, input: o, ...s } = e;
|
|
302
302
|
return s.path ??= [], s.message = r, t?.reportInput && (s.input = o), s;
|
|
303
303
|
}
|
|
304
|
-
function
|
|
304
|
+
function Ce(e) {
|
|
305
305
|
return Array.isArray(e) ? "array" : typeof e == "string" ? "string" : "unknown";
|
|
306
306
|
}
|
|
307
|
-
function
|
|
307
|
+
function we(...e) {
|
|
308
308
|
let [t, n, r] = e;
|
|
309
309
|
return typeof t == "string" ? {
|
|
310
310
|
message: t,
|
|
@@ -315,19 +315,19 @@ function Ce(...e) {
|
|
|
315
315
|
}
|
|
316
316
|
//#endregion
|
|
317
317
|
//#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/errors.js
|
|
318
|
-
var
|
|
318
|
+
var Te = (e, t) => {
|
|
319
319
|
e.name = "$ZodError", Object.defineProperty(e, "_zod", {
|
|
320
320
|
value: e._zod,
|
|
321
321
|
enumerable: !1
|
|
322
322
|
}), Object.defineProperty(e, "issues", {
|
|
323
323
|
value: t,
|
|
324
324
|
enumerable: !1
|
|
325
|
-
}), e.message = JSON.stringify(t,
|
|
325
|
+
}), e.message = JSON.stringify(t, S, 2), Object.defineProperty(e, "toString", {
|
|
326
326
|
value: () => e.message,
|
|
327
327
|
enumerable: !1
|
|
328
328
|
});
|
|
329
|
-
},
|
|
330
|
-
function
|
|
329
|
+
}, Ee = v("$ZodError", Te), De = v("$ZodError", Te, { Parent: Error });
|
|
330
|
+
function Oe(e, t = (e) => e.message) {
|
|
331
331
|
let n = {}, r = [];
|
|
332
332
|
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));
|
|
333
333
|
return {
|
|
@@ -335,7 +335,7 @@ function De(e, t = (e) => e.message) {
|
|
|
335
335
|
fieldErrors: n
|
|
336
336
|
};
|
|
337
337
|
}
|
|
338
|
-
function
|
|
338
|
+
function ke(e, t = (e) => e.message) {
|
|
339
339
|
let n = { _errors: [] }, r = (e, i = []) => {
|
|
340
340
|
for (let a of e.issues) if (a.code === "invalid_union" && a.errors.length) a.errors.map((e) => r({ issues: e }, [...i, ...a.path]));
|
|
341
341
|
else if (a.code === "invalid_key") r({ issues: a.issues }, [...i, ...a.path]);
|
|
@@ -356,7 +356,7 @@ function Oe(e, t = (e) => e.message) {
|
|
|
356
356
|
}
|
|
357
357
|
//#endregion
|
|
358
358
|
//#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/parse.js
|
|
359
|
-
var
|
|
359
|
+
var Ae = (e) => (t, n, r, i) => {
|
|
360
360
|
let a = r ? {
|
|
361
361
|
...r,
|
|
362
362
|
async: !1
|
|
@@ -364,13 +364,13 @@ var ke = (e) => (t, n, r, i) => {
|
|
|
364
364
|
value: n,
|
|
365
365
|
issues: []
|
|
366
366
|
}, a);
|
|
367
|
-
if (o instanceof Promise) throw new
|
|
367
|
+
if (o instanceof Promise) throw new y();
|
|
368
368
|
if (o.issues.length) {
|
|
369
|
-
let t = new (i?.Err ?? e)(o.issues.map((e) =>
|
|
370
|
-
throw
|
|
369
|
+
let t = new (i?.Err ?? e)(o.issues.map((e) => B(e, a, x())));
|
|
370
|
+
throw de(t, i?.callee), t;
|
|
371
371
|
}
|
|
372
372
|
return o.value;
|
|
373
|
-
},
|
|
373
|
+
}, je = (e) => async (t, n, r, i) => {
|
|
374
374
|
let a = r ? {
|
|
375
375
|
...r,
|
|
376
376
|
async: !0
|
|
@@ -379,11 +379,11 @@ var ke = (e) => (t, n, r, i) => {
|
|
|
379
379
|
issues: []
|
|
380
380
|
}, a);
|
|
381
381
|
if (o instanceof Promise && (o = await o), o.issues.length) {
|
|
382
|
-
let t = new (i?.Err ?? e)(o.issues.map((e) =>
|
|
383
|
-
throw
|
|
382
|
+
let t = new (i?.Err ?? e)(o.issues.map((e) => B(e, a, x())));
|
|
383
|
+
throw de(t, i?.callee), t;
|
|
384
384
|
}
|
|
385
385
|
return o.value;
|
|
386
|
-
},
|
|
386
|
+
}, Me = (e) => (t, n, r) => {
|
|
387
387
|
let i = r ? {
|
|
388
388
|
...r,
|
|
389
389
|
async: !1
|
|
@@ -391,15 +391,15 @@ var ke = (e) => (t, n, r, i) => {
|
|
|
391
391
|
value: n,
|
|
392
392
|
issues: []
|
|
393
393
|
}, i);
|
|
394
|
-
if (a instanceof Promise) throw new
|
|
394
|
+
if (a instanceof Promise) throw new y();
|
|
395
395
|
return a.issues.length ? {
|
|
396
396
|
success: !1,
|
|
397
|
-
error: new (e ??
|
|
397
|
+
error: new (e ?? Ee)(a.issues.map((e) => B(e, i, x())))
|
|
398
398
|
} : {
|
|
399
399
|
success: !0,
|
|
400
400
|
data: a.value
|
|
401
401
|
};
|
|
402
|
-
},
|
|
402
|
+
}, Ne = /* @__PURE__ */ Me(De), Pe = (e) => async (t, n, r) => {
|
|
403
403
|
let i = r ? {
|
|
404
404
|
...r,
|
|
405
405
|
async: !0
|
|
@@ -409,66 +409,66 @@ var ke = (e) => (t, n, r, i) => {
|
|
|
409
409
|
}, i);
|
|
410
410
|
return a instanceof Promise && (a = await a), a.issues.length ? {
|
|
411
411
|
success: !1,
|
|
412
|
-
error: new e(a.issues.map((e) =>
|
|
412
|
+
error: new e(a.issues.map((e) => B(e, i, x())))
|
|
413
413
|
} : {
|
|
414
414
|
success: !0,
|
|
415
415
|
data: a.value
|
|
416
416
|
};
|
|
417
|
-
},
|
|
417
|
+
}, Fe = /* @__PURE__ */ Pe(De), Ie = (e) => (t, n, r) => {
|
|
418
418
|
let i = r ? {
|
|
419
419
|
...r,
|
|
420
420
|
direction: "backward"
|
|
421
421
|
} : { direction: "backward" };
|
|
422
|
-
return
|
|
423
|
-
},
|
|
422
|
+
return Ae(e)(t, n, i);
|
|
423
|
+
}, Le = (e) => (t, n, r) => Ae(e)(t, n, r), Re = (e) => async (t, n, r) => {
|
|
424
424
|
let i = r ? {
|
|
425
425
|
...r,
|
|
426
426
|
direction: "backward"
|
|
427
427
|
} : { direction: "backward" };
|
|
428
|
-
return
|
|
429
|
-
},
|
|
428
|
+
return je(e)(t, n, i);
|
|
429
|
+
}, ze = (e) => async (t, n, r) => je(e)(t, n, r), Be = (e) => (t, n, r) => {
|
|
430
430
|
let i = r ? {
|
|
431
431
|
...r,
|
|
432
432
|
direction: "backward"
|
|
433
433
|
} : { direction: "backward" };
|
|
434
|
-
return
|
|
435
|
-
},
|
|
434
|
+
return Me(e)(t, n, i);
|
|
435
|
+
}, Ve = (e) => (t, n, r) => Me(e)(t, n, r), He = (e) => async (t, n, r) => {
|
|
436
436
|
let i = r ? {
|
|
437
437
|
...r,
|
|
438
438
|
direction: "backward"
|
|
439
439
|
} : { direction: "backward" };
|
|
440
|
-
return
|
|
441
|
-
},
|
|
442
|
-
function
|
|
443
|
-
return new RegExp(
|
|
440
|
+
return Pe(e)(t, n, i);
|
|
441
|
+
}, Ue = (e) => async (t, n, r) => Pe(e)(t, n, r), We = /^[cC][0-9a-z]{6,}$/, Ge = /^[0-9a-z]+$/, Ke = /^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/, qe = /^[0-9a-vA-V]{20}$/, Je = /^[A-Za-z0-9]{27}$/, Ye = /^[a-zA-Z0-9_-]{21}$/, Xe = /^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/, Ze = /^([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})$/, Qe = (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)$/, $e = /^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/, et = "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";
|
|
442
|
+
function tt() {
|
|
443
|
+
return new RegExp(et, "u");
|
|
444
444
|
}
|
|
445
|
-
var
|
|
446
|
-
function
|
|
445
|
+
var nt = /^(?:(?: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])$/, rt = /^(([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}|:))$/, it = /^((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])$/, at = /^(([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])$/, ot = /^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/, st = /^[A-Za-z0-9_-]*$/, ct = /^https?$/, lt = /^\+[1-9]\d{6,14}$/, ut = "(?:(?:\\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])))", dt = /* @__PURE__ */ RegExp(`^${ut}$`);
|
|
446
|
+
function ft(e) {
|
|
447
447
|
let t = "(?:[01]\\d|2[0-3]):[0-5]\\d";
|
|
448
448
|
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+)?)?`;
|
|
449
449
|
}
|
|
450
|
-
function ft(e) {
|
|
451
|
-
return RegExp(`^${dt(e)}$`);
|
|
452
|
-
}
|
|
453
450
|
function pt(e) {
|
|
454
|
-
|
|
451
|
+
return RegExp(`^${ft(e)}$`);
|
|
452
|
+
}
|
|
453
|
+
function mt(e) {
|
|
454
|
+
let t = ft({ precision: e.precision }), n = ["Z"];
|
|
455
455
|
e.local && n.push(""), e.offset && n.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");
|
|
456
456
|
let r = `${t}(?:${n.join("|")})`;
|
|
457
|
-
return RegExp(`^${
|
|
457
|
+
return RegExp(`^${ut}T(?:${r})$`);
|
|
458
458
|
}
|
|
459
|
-
var
|
|
459
|
+
var ht = (e) => {
|
|
460
460
|
let t = e ? `[\\s\\S]{${e?.minimum ?? 0},${e?.maximum ?? ""}}` : "[\\s\\S]*";
|
|
461
461
|
return RegExp(`^${t}$`);
|
|
462
|
-
},
|
|
462
|
+
}, gt = /^-?\d+$/, _t = /^-?\d+(?:\.\d+)?$/, vt = /^[^A-Z]*$/, yt = /^[^a-z]*$/, V = /* @__PURE__ */ v("$ZodCheck", (e, t) => {
|
|
463
463
|
var n;
|
|
464
464
|
e._zod ??= {}, e._zod.def = t, (n = e._zod).onattach ?? (n.onattach = []);
|
|
465
|
-
}),
|
|
465
|
+
}), bt = {
|
|
466
466
|
number: "number",
|
|
467
467
|
bigint: "bigint",
|
|
468
468
|
object: "date"
|
|
469
|
-
},
|
|
470
|
-
|
|
471
|
-
let n =
|
|
469
|
+
}, xt = /* @__PURE__ */ v("$ZodCheckLessThan", (e, t) => {
|
|
470
|
+
V.init(e, t);
|
|
471
|
+
let n = bt[typeof t.value];
|
|
472
472
|
e._zod.onattach.push((e) => {
|
|
473
473
|
let n = e._zod.bag, r = (t.inclusive ? n.maximum : n.exclusiveMaximum) ?? Infinity;
|
|
474
474
|
t.value < r && (t.inclusive ? n.maximum = t.value : n.exclusiveMaximum = t.value);
|
|
@@ -483,9 +483,9 @@ var mt = (e) => {
|
|
|
483
483
|
continue: !t.abort
|
|
484
484
|
});
|
|
485
485
|
};
|
|
486
|
-
}),
|
|
487
|
-
|
|
488
|
-
let n =
|
|
486
|
+
}), St = /* @__PURE__ */ v("$ZodCheckGreaterThan", (e, t) => {
|
|
487
|
+
V.init(e, t);
|
|
488
|
+
let n = bt[typeof t.value];
|
|
489
489
|
e._zod.onattach.push((e) => {
|
|
490
490
|
let n = e._zod.bag, r = (t.inclusive ? n.minimum : n.exclusiveMinimum) ?? -Infinity;
|
|
491
491
|
t.value > r && (t.inclusive ? n.minimum = t.value : n.exclusiveMinimum = t.value);
|
|
@@ -500,13 +500,13 @@ var mt = (e) => {
|
|
|
500
500
|
continue: !t.abort
|
|
501
501
|
});
|
|
502
502
|
};
|
|
503
|
-
}),
|
|
504
|
-
|
|
503
|
+
}), Ct = /* @__PURE__ */ v("$ZodCheckMultipleOf", (e, t) => {
|
|
504
|
+
V.init(e, t), e._zod.onattach.push((e) => {
|
|
505
505
|
var n;
|
|
506
506
|
(n = e._zod.bag).multipleOf ?? (n.multipleOf = t.value);
|
|
507
507
|
}), e._zod.check = (n) => {
|
|
508
508
|
if (typeof n.value != typeof t.value) throw Error("Cannot mix number and bigint in multiple_of check.");
|
|
509
|
-
(typeof n.value == "bigint" ? n.value % t.value === BigInt(0) :
|
|
509
|
+
(typeof n.value == "bigint" ? n.value % t.value === BigInt(0) : T(n.value, t.value) === 0) || n.issues.push({
|
|
510
510
|
origin: typeof n.value,
|
|
511
511
|
code: "not_multiple_of",
|
|
512
512
|
divisor: t.value,
|
|
@@ -515,12 +515,12 @@ var mt = (e) => {
|
|
|
515
515
|
continue: !t.abort
|
|
516
516
|
});
|
|
517
517
|
};
|
|
518
|
-
}),
|
|
519
|
-
|
|
520
|
-
let n = t.format?.includes("int"), r = n ? "int" : "number", [i, a] =
|
|
518
|
+
}), wt = /* @__PURE__ */ v("$ZodCheckNumberFormat", (e, t) => {
|
|
519
|
+
V.init(e, t), t.format = t.format || "float64";
|
|
520
|
+
let n = t.format?.includes("int"), r = n ? "int" : "number", [i, a] = pe[t.format];
|
|
521
521
|
e._zod.onattach.push((e) => {
|
|
522
522
|
let r = e._zod.bag;
|
|
523
|
-
r.format = t.format, r.minimum = i, r.maximum = a, n && (r.pattern =
|
|
523
|
+
r.format = t.format, r.minimum = i, r.maximum = a, n && (r.pattern = gt);
|
|
524
524
|
}), e._zod.check = (o) => {
|
|
525
525
|
let s = o.value;
|
|
526
526
|
if (n) {
|
|
@@ -576,18 +576,18 @@ var mt = (e) => {
|
|
|
576
576
|
continue: !t.abort
|
|
577
577
|
});
|
|
578
578
|
};
|
|
579
|
-
}),
|
|
579
|
+
}), Tt = /* @__PURE__ */ v("$ZodCheckMaxLength", (e, t) => {
|
|
580
580
|
var n;
|
|
581
|
-
|
|
581
|
+
V.init(e, t), (n = e._zod.def).when ?? (n.when = (e) => {
|
|
582
582
|
let t = e.value;
|
|
583
|
-
return !
|
|
583
|
+
return !ce(t) && t.length !== void 0;
|
|
584
584
|
}), e._zod.onattach.push((e) => {
|
|
585
585
|
let n = e._zod.bag.maximum ?? Infinity;
|
|
586
586
|
t.maximum < n && (e._zod.bag.maximum = t.maximum);
|
|
587
587
|
}), e._zod.check = (n) => {
|
|
588
588
|
let r = n.value;
|
|
589
589
|
if (r.length <= t.maximum) return;
|
|
590
|
-
let i =
|
|
590
|
+
let i = Ce(r);
|
|
591
591
|
n.issues.push({
|
|
592
592
|
origin: i,
|
|
593
593
|
code: "too_big",
|
|
@@ -598,18 +598,18 @@ var mt = (e) => {
|
|
|
598
598
|
continue: !t.abort
|
|
599
599
|
});
|
|
600
600
|
};
|
|
601
|
-
}),
|
|
601
|
+
}), Et = /* @__PURE__ */ v("$ZodCheckMinLength", (e, t) => {
|
|
602
602
|
var n;
|
|
603
|
-
|
|
603
|
+
V.init(e, t), (n = e._zod.def).when ?? (n.when = (e) => {
|
|
604
604
|
let t = e.value;
|
|
605
|
-
return !
|
|
605
|
+
return !ce(t) && t.length !== void 0;
|
|
606
606
|
}), e._zod.onattach.push((e) => {
|
|
607
607
|
let n = e._zod.bag.minimum ?? -Infinity;
|
|
608
608
|
t.minimum > n && (e._zod.bag.minimum = t.minimum);
|
|
609
609
|
}), e._zod.check = (n) => {
|
|
610
610
|
let r = n.value;
|
|
611
611
|
if (r.length >= t.minimum) return;
|
|
612
|
-
let i =
|
|
612
|
+
let i = Ce(r);
|
|
613
613
|
n.issues.push({
|
|
614
614
|
origin: i,
|
|
615
615
|
code: "too_small",
|
|
@@ -620,18 +620,18 @@ var mt = (e) => {
|
|
|
620
620
|
continue: !t.abort
|
|
621
621
|
});
|
|
622
622
|
};
|
|
623
|
-
}),
|
|
623
|
+
}), Dt = /* @__PURE__ */ v("$ZodCheckLengthEquals", (e, t) => {
|
|
624
624
|
var n;
|
|
625
|
-
|
|
625
|
+
V.init(e, t), (n = e._zod.def).when ?? (n.when = (e) => {
|
|
626
626
|
let t = e.value;
|
|
627
|
-
return !
|
|
627
|
+
return !ce(t) && t.length !== void 0;
|
|
628
628
|
}), e._zod.onattach.push((e) => {
|
|
629
629
|
let n = e._zod.bag;
|
|
630
630
|
n.minimum = t.length, n.maximum = t.length, n.length = t.length;
|
|
631
631
|
}), e._zod.check = (n) => {
|
|
632
632
|
let r = n.value, i = r.length;
|
|
633
633
|
if (i === t.length) return;
|
|
634
|
-
let a =
|
|
634
|
+
let a = Ce(r), o = i > t.length;
|
|
635
635
|
n.issues.push({
|
|
636
636
|
origin: a,
|
|
637
637
|
...o ? {
|
|
@@ -648,9 +648,9 @@ var mt = (e) => {
|
|
|
648
648
|
continue: !t.abort
|
|
649
649
|
});
|
|
650
650
|
};
|
|
651
|
-
}),
|
|
651
|
+
}), Ot = /* @__PURE__ */ v("$ZodCheckStringFormat", (e, t) => {
|
|
652
652
|
var n, r;
|
|
653
|
-
|
|
653
|
+
V.init(e, t), e._zod.onattach.push((e) => {
|
|
654
654
|
let n = e._zod.bag;
|
|
655
655
|
n.format = t.format, t.pattern && (n.patterns ??= /* @__PURE__ */ new Set(), n.patterns.add(t.pattern));
|
|
656
656
|
}), t.pattern ? (n = e._zod).check ?? (n.check = (n) => {
|
|
@@ -664,8 +664,8 @@ var mt = (e) => {
|
|
|
664
664
|
continue: !t.abort
|
|
665
665
|
});
|
|
666
666
|
}) : (r = e._zod).check ?? (r.check = () => {});
|
|
667
|
-
}),
|
|
668
|
-
|
|
667
|
+
}), kt = /* @__PURE__ */ v("$ZodCheckRegex", (e, t) => {
|
|
668
|
+
Ot.init(e, t), e._zod.check = (n) => {
|
|
669
669
|
t.pattern.lastIndex = 0, !t.pattern.test(n.value) && n.issues.push({
|
|
670
670
|
origin: "string",
|
|
671
671
|
code: "invalid_format",
|
|
@@ -676,13 +676,13 @@ var mt = (e) => {
|
|
|
676
676
|
continue: !t.abort
|
|
677
677
|
});
|
|
678
678
|
};
|
|
679
|
-
}),
|
|
680
|
-
t.pattern ??=
|
|
681
|
-
}),
|
|
682
|
-
t.pattern ??=
|
|
683
|
-
}),
|
|
684
|
-
|
|
685
|
-
let n =
|
|
679
|
+
}), At = /* @__PURE__ */ v("$ZodCheckLowerCase", (e, t) => {
|
|
680
|
+
t.pattern ??= vt, Ot.init(e, t);
|
|
681
|
+
}), jt = /* @__PURE__ */ v("$ZodCheckUpperCase", (e, t) => {
|
|
682
|
+
t.pattern ??= yt, Ot.init(e, t);
|
|
683
|
+
}), Mt = /* @__PURE__ */ v("$ZodCheckIncludes", (e, t) => {
|
|
684
|
+
V.init(e, t);
|
|
685
|
+
let n = F(t.includes), r = new RegExp(typeof t.position == "number" ? `^.{${t.position}}${n}` : n);
|
|
686
686
|
t.pattern = r, e._zod.onattach.push((e) => {
|
|
687
687
|
let t = e._zod.bag;
|
|
688
688
|
t.patterns ??= /* @__PURE__ */ new Set(), t.patterns.add(r);
|
|
@@ -697,9 +697,9 @@ var mt = (e) => {
|
|
|
697
697
|
continue: !t.abort
|
|
698
698
|
});
|
|
699
699
|
};
|
|
700
|
-
}),
|
|
701
|
-
|
|
702
|
-
let n = RegExp(`^${
|
|
700
|
+
}), Nt = /* @__PURE__ */ v("$ZodCheckStartsWith", (e, t) => {
|
|
701
|
+
V.init(e, t);
|
|
702
|
+
let n = RegExp(`^${F(t.prefix)}.*`);
|
|
703
703
|
t.pattern ??= n, e._zod.onattach.push((e) => {
|
|
704
704
|
let t = e._zod.bag;
|
|
705
705
|
t.patterns ??= /* @__PURE__ */ new Set(), t.patterns.add(n);
|
|
@@ -714,9 +714,9 @@ var mt = (e) => {
|
|
|
714
714
|
continue: !t.abort
|
|
715
715
|
});
|
|
716
716
|
};
|
|
717
|
-
}),
|
|
718
|
-
|
|
719
|
-
let n = RegExp(`.*${
|
|
717
|
+
}), Pt = /* @__PURE__ */ v("$ZodCheckEndsWith", (e, t) => {
|
|
718
|
+
V.init(e, t);
|
|
719
|
+
let n = RegExp(`.*${F(t.suffix)}$`);
|
|
720
720
|
t.pattern ??= n, e._zod.onattach.push((e) => {
|
|
721
721
|
let t = e._zod.bag;
|
|
722
722
|
t.patterns ??= /* @__PURE__ */ new Set(), t.patterns.add(n);
|
|
@@ -731,11 +731,11 @@ var mt = (e) => {
|
|
|
731
731
|
continue: !t.abort
|
|
732
732
|
});
|
|
733
733
|
};
|
|
734
|
-
}),
|
|
735
|
-
|
|
734
|
+
}), Ft = /* @__PURE__ */ v("$ZodCheckOverwrite", (e, t) => {
|
|
735
|
+
V.init(e, t), e._zod.check = (e) => {
|
|
736
736
|
e.value = t.tx(e.value);
|
|
737
737
|
};
|
|
738
|
-
}),
|
|
738
|
+
}), It = class {
|
|
739
739
|
constructor(e = []) {
|
|
740
740
|
this.content = [], this.indent = 0, this && (this.args = e);
|
|
741
741
|
}
|
|
@@ -754,13 +754,13 @@ var mt = (e) => {
|
|
|
754
754
|
let e = Function, t = this?.args, n = [...(this?.content ?? [""]).map((e) => ` ${e}`)];
|
|
755
755
|
return new e(...t, n.join("\n"));
|
|
756
756
|
}
|
|
757
|
-
},
|
|
757
|
+
}, Lt = {
|
|
758
758
|
major: 4,
|
|
759
759
|
minor: 4,
|
|
760
760
|
patch: 3
|
|
761
|
-
},
|
|
761
|
+
}, H = /* @__PURE__ */ v("$ZodType", (e, t) => {
|
|
762
762
|
var n;
|
|
763
|
-
e ??= {}, e._zod.def = t, e._zod.bag = e._zod.bag || {}, e._zod.version =
|
|
763
|
+
e ??= {}, e._zod.def = t, e._zod.bag = e._zod.bag || {}, e._zod.version = Lt;
|
|
764
764
|
let r = [...e._zod.def.checks ?? []];
|
|
765
765
|
e._zod.traits.has("$ZodCheck") && r.unshift(e);
|
|
766
766
|
for (let t of r) for (let n of t._zod.onattach) n(e);
|
|
@@ -769,27 +769,27 @@ var mt = (e) => {
|
|
|
769
769
|
});
|
|
770
770
|
else {
|
|
771
771
|
let t = (e, t, n) => {
|
|
772
|
-
let r =
|
|
772
|
+
let r = z(e), i;
|
|
773
773
|
for (let a of t) {
|
|
774
774
|
if (a._zod.def.when) {
|
|
775
|
-
if (
|
|
775
|
+
if (be(e) || !a._zod.def.when(e)) continue;
|
|
776
776
|
} else if (r) continue;
|
|
777
777
|
let t = e.issues.length, o = a._zod.check(e);
|
|
778
|
-
if (o instanceof Promise && n?.async === !1) throw new
|
|
778
|
+
if (o instanceof Promise && n?.async === !1) throw new y();
|
|
779
779
|
if (i || o instanceof Promise) i = (i ?? Promise.resolve()).then(async () => {
|
|
780
|
-
await o, e.issues.length !== t && (r ||=
|
|
780
|
+
await o, e.issues.length !== t && (r ||= z(e, t));
|
|
781
781
|
});
|
|
782
782
|
else {
|
|
783
783
|
if (e.issues.length === t) continue;
|
|
784
|
-
r ||=
|
|
784
|
+
r ||= z(e, t);
|
|
785
785
|
}
|
|
786
786
|
}
|
|
787
787
|
return i ? i.then(() => e) : e;
|
|
788
788
|
}, n = (n, i, a) => {
|
|
789
|
-
if (
|
|
789
|
+
if (z(n)) return n.aborted = !0, n;
|
|
790
790
|
let o = t(i, r, a);
|
|
791
791
|
if (o instanceof Promise) {
|
|
792
|
-
if (a.async === !1) throw new
|
|
792
|
+
if (a.async === !1) throw new y();
|
|
793
793
|
return o.then((t) => e._zod.parse(t, a));
|
|
794
794
|
}
|
|
795
795
|
return e._zod.parse(o, a);
|
|
@@ -808,26 +808,26 @@ var mt = (e) => {
|
|
|
808
808
|
}
|
|
809
809
|
let o = e._zod.parse(i, a);
|
|
810
810
|
if (o instanceof Promise) {
|
|
811
|
-
if (a.async === !1) throw new
|
|
811
|
+
if (a.async === !1) throw new y();
|
|
812
812
|
return o.then((e) => t(e, r, a));
|
|
813
813
|
}
|
|
814
814
|
return t(o, r, a);
|
|
815
815
|
};
|
|
816
816
|
}
|
|
817
|
-
|
|
817
|
+
D(e, "~standard", () => ({
|
|
818
818
|
validate: (t) => {
|
|
819
819
|
try {
|
|
820
|
-
let n =
|
|
820
|
+
let n = Ne(e, t);
|
|
821
821
|
return n.success ? { value: n.data } : { issues: n.error?.issues };
|
|
822
822
|
} catch {
|
|
823
|
-
return
|
|
823
|
+
return Fe(e, t).then((e) => e.success ? { value: e.data } : { issues: e.error?.issues });
|
|
824
824
|
}
|
|
825
825
|
},
|
|
826
826
|
vendor: "zod",
|
|
827
827
|
version: 1
|
|
828
828
|
}));
|
|
829
|
-
}),
|
|
830
|
-
|
|
829
|
+
}), Rt = /* @__PURE__ */ v("$ZodString", (e, t) => {
|
|
830
|
+
H.init(e, t), e._zod.pattern = [...e?._zod.bag?.patterns ?? []].pop() ?? ht(e._zod.bag), e._zod.parse = (n, r) => {
|
|
831
831
|
if (t.coerce) try {
|
|
832
832
|
n.value = String(n.value);
|
|
833
833
|
} catch {}
|
|
@@ -838,11 +838,11 @@ var mt = (e) => {
|
|
|
838
838
|
inst: e
|
|
839
839
|
}), n;
|
|
840
840
|
};
|
|
841
|
-
}),
|
|
842
|
-
|
|
843
|
-
}),
|
|
844
|
-
t.pattern ??=
|
|
845
|
-
}),
|
|
841
|
+
}), U = /* @__PURE__ */ v("$ZodStringFormat", (e, t) => {
|
|
842
|
+
Ot.init(e, t), Rt.init(e, t);
|
|
843
|
+
}), zt = /* @__PURE__ */ v("$ZodGUID", (e, t) => {
|
|
844
|
+
t.pattern ??= Ze, U.init(e, t);
|
|
845
|
+
}), Bt = /* @__PURE__ */ v("$ZodUUID", (e, t) => {
|
|
846
846
|
if (t.version) {
|
|
847
847
|
let e = {
|
|
848
848
|
v1: 1,
|
|
@@ -855,16 +855,16 @@ var mt = (e) => {
|
|
|
855
855
|
v8: 8
|
|
856
856
|
}[t.version];
|
|
857
857
|
if (e === void 0) throw Error(`Invalid UUID version: "${t.version}"`);
|
|
858
|
-
t.pattern ??=
|
|
859
|
-
} else t.pattern ??=
|
|
860
|
-
|
|
861
|
-
}),
|
|
862
|
-
t.pattern ??=
|
|
863
|
-
}),
|
|
864
|
-
|
|
858
|
+
t.pattern ??= Qe(e);
|
|
859
|
+
} else t.pattern ??= Qe();
|
|
860
|
+
U.init(e, t);
|
|
861
|
+
}), Vt = /* @__PURE__ */ v("$ZodEmail", (e, t) => {
|
|
862
|
+
t.pattern ??= $e, U.init(e, t);
|
|
863
|
+
}), Ht = /* @__PURE__ */ v("$ZodURL", (e, t) => {
|
|
864
|
+
U.init(e, t), e._zod.check = (n) => {
|
|
865
865
|
try {
|
|
866
866
|
let r = n.value.trim();
|
|
867
|
-
if (!t.normalize && t.protocol?.source ===
|
|
867
|
+
if (!t.normalize && t.protocol?.source === ct.source && !/^https?:\/\//i.test(r)) {
|
|
868
868
|
n.issues.push({
|
|
869
869
|
code: "invalid_format",
|
|
870
870
|
format: "url",
|
|
@@ -904,32 +904,32 @@ var mt = (e) => {
|
|
|
904
904
|
});
|
|
905
905
|
}
|
|
906
906
|
};
|
|
907
|
-
}),
|
|
908
|
-
t.pattern ??=
|
|
909
|
-
}),
|
|
910
|
-
t.pattern ??=
|
|
911
|
-
}),
|
|
912
|
-
t.pattern ??=
|
|
913
|
-
}),
|
|
914
|
-
t.pattern ??=
|
|
915
|
-
}),
|
|
916
|
-
t.pattern ??=
|
|
917
|
-
}),
|
|
918
|
-
t.pattern ??=
|
|
919
|
-
}),
|
|
920
|
-
t.pattern ??=
|
|
921
|
-
}),
|
|
922
|
-
t.pattern ??=
|
|
923
|
-
}),
|
|
924
|
-
t.pattern ??=
|
|
925
|
-
}),
|
|
926
|
-
t.pattern ??=
|
|
927
|
-
}),
|
|
928
|
-
t.pattern ??=
|
|
929
|
-
}),
|
|
930
|
-
t.pattern ??=
|
|
931
|
-
}),
|
|
932
|
-
t.pattern ??=
|
|
907
|
+
}), Ut = /* @__PURE__ */ v("$ZodEmoji", (e, t) => {
|
|
908
|
+
t.pattern ??= tt(), U.init(e, t);
|
|
909
|
+
}), Wt = /* @__PURE__ */ v("$ZodNanoID", (e, t) => {
|
|
910
|
+
t.pattern ??= Ye, U.init(e, t);
|
|
911
|
+
}), Gt = /* @__PURE__ */ v("$ZodCUID", (e, t) => {
|
|
912
|
+
t.pattern ??= We, U.init(e, t);
|
|
913
|
+
}), Kt = /* @__PURE__ */ v("$ZodCUID2", (e, t) => {
|
|
914
|
+
t.pattern ??= Ge, U.init(e, t);
|
|
915
|
+
}), qt = /* @__PURE__ */ v("$ZodULID", (e, t) => {
|
|
916
|
+
t.pattern ??= Ke, U.init(e, t);
|
|
917
|
+
}), Jt = /* @__PURE__ */ v("$ZodXID", (e, t) => {
|
|
918
|
+
t.pattern ??= qe, U.init(e, t);
|
|
919
|
+
}), Yt = /* @__PURE__ */ v("$ZodKSUID", (e, t) => {
|
|
920
|
+
t.pattern ??= Je, U.init(e, t);
|
|
921
|
+
}), Xt = /* @__PURE__ */ v("$ZodISODateTime", (e, t) => {
|
|
922
|
+
t.pattern ??= mt(t), U.init(e, t);
|
|
923
|
+
}), Zt = /* @__PURE__ */ v("$ZodISODate", (e, t) => {
|
|
924
|
+
t.pattern ??= dt, U.init(e, t);
|
|
925
|
+
}), Qt = /* @__PURE__ */ v("$ZodISOTime", (e, t) => {
|
|
926
|
+
t.pattern ??= pt(t), U.init(e, t);
|
|
927
|
+
}), $t = /* @__PURE__ */ v("$ZodISODuration", (e, t) => {
|
|
928
|
+
t.pattern ??= Xe, U.init(e, t);
|
|
929
|
+
}), en = /* @__PURE__ */ v("$ZodIPv4", (e, t) => {
|
|
930
|
+
t.pattern ??= nt, U.init(e, t), e._zod.bag.format = "ipv4";
|
|
931
|
+
}), tn = /* @__PURE__ */ v("$ZodIPv6", (e, t) => {
|
|
932
|
+
t.pattern ??= rt, U.init(e, t), e._zod.bag.format = "ipv6", e._zod.check = (n) => {
|
|
933
933
|
try {
|
|
934
934
|
new URL(`http://[${n.value}]`);
|
|
935
935
|
} catch {
|
|
@@ -942,10 +942,10 @@ var mt = (e) => {
|
|
|
942
942
|
});
|
|
943
943
|
}
|
|
944
944
|
};
|
|
945
|
-
}),
|
|
946
|
-
t.pattern ??=
|
|
947
|
-
}),
|
|
948
|
-
t.pattern ??=
|
|
945
|
+
}), nn = /* @__PURE__ */ v("$ZodCIDRv4", (e, t) => {
|
|
946
|
+
t.pattern ??= it, U.init(e, t);
|
|
947
|
+
}), rn = /* @__PURE__ */ v("$ZodCIDRv6", (e, t) => {
|
|
948
|
+
t.pattern ??= at, U.init(e, t), e._zod.check = (n) => {
|
|
949
949
|
let r = n.value.split("/");
|
|
950
950
|
try {
|
|
951
951
|
if (r.length !== 2) throw Error();
|
|
@@ -965,7 +965,7 @@ var mt = (e) => {
|
|
|
965
965
|
}
|
|
966
966
|
};
|
|
967
967
|
});
|
|
968
|
-
function
|
|
968
|
+
function an(e) {
|
|
969
969
|
if (e === "") return !0;
|
|
970
970
|
if (/\s/.test(e) || e.length % 4 != 0) return !1;
|
|
971
971
|
try {
|
|
@@ -974,9 +974,9 @@ function rn(e) {
|
|
|
974
974
|
return !1;
|
|
975
975
|
}
|
|
976
976
|
}
|
|
977
|
-
var
|
|
978
|
-
t.pattern ??=
|
|
979
|
-
|
|
977
|
+
var on = /* @__PURE__ */ v("$ZodBase64", (e, t) => {
|
|
978
|
+
t.pattern ??= ot, U.init(e, t), e._zod.bag.contentEncoding = "base64", e._zod.check = (n) => {
|
|
979
|
+
an(n.value) || n.issues.push({
|
|
980
980
|
code: "invalid_format",
|
|
981
981
|
format: "base64",
|
|
982
982
|
input: n.value,
|
|
@@ -985,14 +985,14 @@ var an = /* @__PURE__ */ b("$ZodBase64", (e, t) => {
|
|
|
985
985
|
});
|
|
986
986
|
};
|
|
987
987
|
});
|
|
988
|
-
function
|
|
989
|
-
if (!
|
|
988
|
+
function sn(e) {
|
|
989
|
+
if (!st.test(e)) return !1;
|
|
990
990
|
let t = e.replace(/[-_]/g, (e) => e === "-" ? "+" : "/");
|
|
991
|
-
return
|
|
991
|
+
return an(t.padEnd(Math.ceil(t.length / 4) * 4, "="));
|
|
992
992
|
}
|
|
993
|
-
var
|
|
994
|
-
t.pattern ??=
|
|
995
|
-
|
|
993
|
+
var cn = /* @__PURE__ */ v("$ZodBase64URL", (e, t) => {
|
|
994
|
+
t.pattern ??= st, U.init(e, t), e._zod.bag.contentEncoding = "base64url", e._zod.check = (n) => {
|
|
995
|
+
sn(n.value) || n.issues.push({
|
|
996
996
|
code: "invalid_format",
|
|
997
997
|
format: "base64url",
|
|
998
998
|
input: n.value,
|
|
@@ -1000,10 +1000,10 @@ var sn = /* @__PURE__ */ b("$ZodBase64URL", (e, t) => {
|
|
|
1000
1000
|
continue: !t.abort
|
|
1001
1001
|
});
|
|
1002
1002
|
};
|
|
1003
|
-
}),
|
|
1004
|
-
t.pattern ??=
|
|
1003
|
+
}), ln = /* @__PURE__ */ v("$ZodE164", (e, t) => {
|
|
1004
|
+
t.pattern ??= lt, U.init(e, t);
|
|
1005
1005
|
});
|
|
1006
|
-
function
|
|
1006
|
+
function un(e, t = null) {
|
|
1007
1007
|
try {
|
|
1008
1008
|
let n = e.split(".");
|
|
1009
1009
|
if (n.length !== 3) return !1;
|
|
@@ -1015,9 +1015,9 @@ function ln(e, t = null) {
|
|
|
1015
1015
|
return !1;
|
|
1016
1016
|
}
|
|
1017
1017
|
}
|
|
1018
|
-
var
|
|
1019
|
-
|
|
1020
|
-
|
|
1018
|
+
var dn = /* @__PURE__ */ v("$ZodJWT", (e, t) => {
|
|
1019
|
+
U.init(e, t), e._zod.check = (n) => {
|
|
1020
|
+
un(n.value, t.alg) || n.issues.push({
|
|
1021
1021
|
code: "invalid_format",
|
|
1022
1022
|
format: "jwt",
|
|
1023
1023
|
input: n.value,
|
|
@@ -1025,8 +1025,8 @@ var un = /* @__PURE__ */ b("$ZodJWT", (e, t) => {
|
|
|
1025
1025
|
continue: !t.abort
|
|
1026
1026
|
});
|
|
1027
1027
|
};
|
|
1028
|
-
}),
|
|
1029
|
-
|
|
1028
|
+
}), fn = /* @__PURE__ */ v("$ZodNumber", (e, t) => {
|
|
1029
|
+
H.init(e, t), e._zod.pattern = e._zod.bag.pattern ?? _t, e._zod.parse = (n, r) => {
|
|
1030
1030
|
if (t.coerce) try {
|
|
1031
1031
|
n.value = Number(n.value);
|
|
1032
1032
|
} catch {}
|
|
@@ -1041,23 +1041,23 @@ var un = /* @__PURE__ */ b("$ZodJWT", (e, t) => {
|
|
|
1041
1041
|
...a ? { received: a } : {}
|
|
1042
1042
|
}), n;
|
|
1043
1043
|
};
|
|
1044
|
-
}),
|
|
1045
|
-
|
|
1046
|
-
}),
|
|
1047
|
-
|
|
1048
|
-
}),
|
|
1049
|
-
|
|
1044
|
+
}), pn = /* @__PURE__ */ v("$ZodNumberFormat", (e, t) => {
|
|
1045
|
+
wt.init(e, t), fn.init(e, t);
|
|
1046
|
+
}), mn = /* @__PURE__ */ v("$ZodUnknown", (e, t) => {
|
|
1047
|
+
H.init(e, t), e._zod.parse = (e) => e;
|
|
1048
|
+
}), hn = /* @__PURE__ */ v("$ZodNever", (e, t) => {
|
|
1049
|
+
H.init(e, t), e._zod.parse = (t, n) => (t.issues.push({
|
|
1050
1050
|
expected: "never",
|
|
1051
1051
|
code: "invalid_type",
|
|
1052
1052
|
input: t.value,
|
|
1053
1053
|
inst: e
|
|
1054
1054
|
}), t);
|
|
1055
1055
|
});
|
|
1056
|
-
function
|
|
1057
|
-
e.issues.length && t.issues.push(...
|
|
1056
|
+
function gn(e, t, n) {
|
|
1057
|
+
e.issues.length && t.issues.push(...xe(n, e.issues)), t.value[n] = e.value;
|
|
1058
1058
|
}
|
|
1059
|
-
var
|
|
1060
|
-
|
|
1059
|
+
var _n = /* @__PURE__ */ v("$ZodArray", (e, t) => {
|
|
1060
|
+
H.init(e, t), e._zod.parse = (n, r) => {
|
|
1061
1061
|
let i = n.value;
|
|
1062
1062
|
if (!Array.isArray(i)) return n.issues.push({
|
|
1063
1063
|
expected: "array",
|
|
@@ -1072,16 +1072,16 @@ var gn = /* @__PURE__ */ b("$ZodArray", (e, t) => {
|
|
|
1072
1072
|
value: o,
|
|
1073
1073
|
issues: []
|
|
1074
1074
|
}, r);
|
|
1075
|
-
s instanceof Promise ? a.push(s.then((t) =>
|
|
1075
|
+
s instanceof Promise ? a.push(s.then((t) => gn(t, n, e))) : gn(s, n, e);
|
|
1076
1076
|
}
|
|
1077
1077
|
return a.length ? Promise.all(a).then(() => n) : n;
|
|
1078
1078
|
};
|
|
1079
1079
|
});
|
|
1080
|
-
function
|
|
1080
|
+
function vn(e, t, n, r, i, a) {
|
|
1081
1081
|
let o = n in r;
|
|
1082
1082
|
if (e.issues.length) {
|
|
1083
1083
|
if (i && a && !o) return;
|
|
1084
|
-
t.issues.push(...
|
|
1084
|
+
t.issues.push(...xe(n, e.issues));
|
|
1085
1085
|
}
|
|
1086
1086
|
if (!o && !i) {
|
|
1087
1087
|
e.issues.length || t.issues.push({
|
|
@@ -1094,10 +1094,10 @@ function _n(e, t, n, r, i, a) {
|
|
|
1094
1094
|
}
|
|
1095
1095
|
e.value === void 0 ? o && (t.value[n] = void 0) : t.value[n] = e.value;
|
|
1096
1096
|
}
|
|
1097
|
-
function
|
|
1097
|
+
function yn(e) {
|
|
1098
1098
|
let t = Object.keys(e.shape);
|
|
1099
1099
|
for (let n of t) if (!e.shape?.[n]?._zod?.traits?.has("$ZodType")) throw Error(`Invalid element at key "${n}": expected a Zod schema`);
|
|
1100
|
-
let n =
|
|
1100
|
+
let n = fe(e.shape);
|
|
1101
1101
|
return {
|
|
1102
1102
|
...e,
|
|
1103
1103
|
keys: t,
|
|
@@ -1106,7 +1106,7 @@ function vn(e) {
|
|
|
1106
1106
|
optionalKeys: new Set(n)
|
|
1107
1107
|
};
|
|
1108
1108
|
}
|
|
1109
|
-
function
|
|
1109
|
+
function bn(e, t, n, r, i, a) {
|
|
1110
1110
|
let o = [], s = i.keySet, c = i.catchall._zod, l = c.def.type, u = c.optin === "optional", d = c.optout === "optional";
|
|
1111
1111
|
for (let i in t) {
|
|
1112
1112
|
if (i === "__proto__" || s.has(i)) continue;
|
|
@@ -1118,7 +1118,7 @@ function yn(e, t, n, r, i, a) {
|
|
|
1118
1118
|
value: t[i],
|
|
1119
1119
|
issues: []
|
|
1120
1120
|
}, r);
|
|
1121
|
-
a instanceof Promise ? e.push(a.then((e) =>
|
|
1121
|
+
a instanceof Promise ? e.push(a.then((e) => vn(e, n, i, t, u, d))) : vn(a, n, i, t, u, d);
|
|
1122
1122
|
}
|
|
1123
1123
|
return o.length && n.issues.push({
|
|
1124
1124
|
code: "unrecognized_keys",
|
|
@@ -1127,16 +1127,16 @@ function yn(e, t, n, r, i, a) {
|
|
|
1127
1127
|
inst: a
|
|
1128
1128
|
}), e.length ? Promise.all(e).then(() => n) : n;
|
|
1129
1129
|
}
|
|
1130
|
-
var
|
|
1131
|
-
if (
|
|
1130
|
+
var xn = /* @__PURE__ */ v("$ZodObject", (e, t) => {
|
|
1131
|
+
if (H.init(e, t), !Object.getOwnPropertyDescriptor(t, "shape")?.get) {
|
|
1132
1132
|
let e = t.shape;
|
|
1133
1133
|
Object.defineProperty(t, "shape", { get: () => {
|
|
1134
1134
|
let n = { ...e };
|
|
1135
1135
|
return Object.defineProperty(t, "shape", { value: n }), n;
|
|
1136
1136
|
} });
|
|
1137
1137
|
}
|
|
1138
|
-
let n =
|
|
1139
|
-
|
|
1138
|
+
let n = C(() => yn(t));
|
|
1139
|
+
D(e._zod, "propValues", () => {
|
|
1140
1140
|
let e = t.shape, n = {};
|
|
1141
1141
|
for (let t in e) {
|
|
1142
1142
|
let r = e[t]._zod;
|
|
@@ -1147,7 +1147,7 @@ var bn = /* @__PURE__ */ b("$ZodObject", (e, t) => {
|
|
|
1147
1147
|
}
|
|
1148
1148
|
return n;
|
|
1149
1149
|
});
|
|
1150
|
-
let r =
|
|
1150
|
+
let r = A, i = t.catchall, a;
|
|
1151
1151
|
e._zod.parse = (t, o) => {
|
|
1152
1152
|
a ??= n.value;
|
|
1153
1153
|
let s = t.value;
|
|
@@ -1164,19 +1164,19 @@ var bn = /* @__PURE__ */ b("$ZodObject", (e, t) => {
|
|
|
1164
1164
|
value: s[e],
|
|
1165
1165
|
issues: []
|
|
1166
1166
|
}, o);
|
|
1167
|
-
a instanceof Promise ? c.push(a.then((n) =>
|
|
1167
|
+
a instanceof Promise ? c.push(a.then((n) => vn(n, t, e, s, r, i))) : vn(a, t, e, s, r, i);
|
|
1168
1168
|
}
|
|
1169
|
-
return i ?
|
|
1169
|
+
return i ? bn(c, s, t, o, n.value, e) : c.length ? Promise.all(c).then(() => t) : t;
|
|
1170
1170
|
};
|
|
1171
|
-
}),
|
|
1172
|
-
|
|
1173
|
-
let n = e._zod.parse, r =
|
|
1174
|
-
let t = new
|
|
1171
|
+
}), Sn = /* @__PURE__ */ v("$ZodObjectJIT", (e, t) => {
|
|
1172
|
+
xn.init(e, t);
|
|
1173
|
+
let n = e._zod.parse, r = C(() => yn(t)), i = (e) => {
|
|
1174
|
+
let t = new It([
|
|
1175
1175
|
"shape",
|
|
1176
1176
|
"payload",
|
|
1177
1177
|
"ctx"
|
|
1178
1178
|
]), n = r.value, i = (e) => {
|
|
1179
|
-
let t =
|
|
1179
|
+
let t = le(e);
|
|
1180
1180
|
return `shape[${t}]._zod.run({ value: input[${t}], issues: [] }, ctx)`;
|
|
1181
1181
|
};
|
|
1182
1182
|
t.write("const input = payload.value;");
|
|
@@ -1184,7 +1184,7 @@ var bn = /* @__PURE__ */ b("$ZodObject", (e, t) => {
|
|
|
1184
1184
|
for (let e of n.keys) a[e] = `key_${o++}`;
|
|
1185
1185
|
t.write("const newResult = {};");
|
|
1186
1186
|
for (let r of n.keys) {
|
|
1187
|
-
let n = a[r], o =
|
|
1187
|
+
let n = a[r], o = le(r), s = e[r], c = s?._zod?.optin === "optional", l = s?._zod?.optout === "optional";
|
|
1188
1188
|
t.write(`const ${n} = ${i(r)};`), c && l ? t.write(`
|
|
1189
1189
|
if (${n}.issues.length) {
|
|
1190
1190
|
if (${o} in input) {
|
|
@@ -1249,11 +1249,11 @@ var bn = /* @__PURE__ */ b("$ZodObject", (e, t) => {
|
|
|
1249
1249
|
t.write("payload.value = newResult;"), t.write("return payload;");
|
|
1250
1250
|
let s = t.compile();
|
|
1251
1251
|
return (t, n) => s(e, t, n);
|
|
1252
|
-
}, a, o =
|
|
1252
|
+
}, a, o = A, s = !b.jitless, c = s && j.value, l = t.catchall, u;
|
|
1253
1253
|
e._zod.parse = (d, f) => {
|
|
1254
1254
|
u ??= r.value;
|
|
1255
1255
|
let p = d.value;
|
|
1256
|
-
return o(p) ? s && c && f?.async === !1 && f.jitless !== !0 ? (a ||= i(t.shape), d = a(d, f), l ?
|
|
1256
|
+
return o(p) ? s && c && f?.async === !1 && f.jitless !== !0 ? (a ||= i(t.shape), d = a(d, f), l ? bn([], p, d, f, u, e) : d) : n(d, f) : (d.issues.push({
|
|
1257
1257
|
expected: "object",
|
|
1258
1258
|
code: "invalid_type",
|
|
1259
1259
|
input: p,
|
|
@@ -1261,23 +1261,23 @@ var bn = /* @__PURE__ */ b("$ZodObject", (e, t) => {
|
|
|
1261
1261
|
}), d);
|
|
1262
1262
|
};
|
|
1263
1263
|
});
|
|
1264
|
-
function
|
|
1264
|
+
function Cn(e, t, n, r) {
|
|
1265
1265
|
for (let n of e) if (n.issues.length === 0) return t.value = n.value, t;
|
|
1266
|
-
let i = e.filter((e) => !
|
|
1266
|
+
let i = e.filter((e) => !z(e));
|
|
1267
1267
|
return i.length === 1 ? (t.value = i[0].value, i[0]) : (t.issues.push({
|
|
1268
1268
|
code: "invalid_union",
|
|
1269
1269
|
input: t.value,
|
|
1270
1270
|
inst: n,
|
|
1271
|
-
errors: e.map((e) => e.issues.map((e) =>
|
|
1271
|
+
errors: e.map((e) => e.issues.map((e) => B(e, r, x())))
|
|
1272
1272
|
}), t);
|
|
1273
1273
|
}
|
|
1274
|
-
var
|
|
1275
|
-
|
|
1274
|
+
var wn = /* @__PURE__ */ v("$ZodUnion", (e, t) => {
|
|
1275
|
+
H.init(e, t), D(e._zod, "optin", () => t.options.some((e) => e._zod.optin === "optional") ? "optional" : void 0), D(e._zod, "optout", () => t.options.some((e) => e._zod.optout === "optional") ? "optional" : void 0), D(e._zod, "values", () => {
|
|
1276
1276
|
if (t.options.every((e) => e._zod.values)) return new Set(t.options.flatMap((e) => Array.from(e._zod.values)));
|
|
1277
|
-
}),
|
|
1277
|
+
}), D(e._zod, "pattern", () => {
|
|
1278
1278
|
if (t.options.every((e) => e._zod.pattern)) {
|
|
1279
1279
|
let e = t.options.map((e) => e._zod.pattern);
|
|
1280
|
-
return RegExp(`^(${e.map((e) =>
|
|
1280
|
+
return RegExp(`^(${e.map((e) => w(e.source)).join("|")})$`);
|
|
1281
1281
|
}
|
|
1282
1282
|
});
|
|
1283
1283
|
let n = t.options.length === 1 ? t.options[0]._zod.run : null;
|
|
@@ -1295,10 +1295,10 @@ var Cn = /* @__PURE__ */ b("$ZodUnion", (e, t) => {
|
|
|
1295
1295
|
o.push(t);
|
|
1296
1296
|
}
|
|
1297
1297
|
}
|
|
1298
|
-
return a ? Promise.all(o).then((t) =>
|
|
1298
|
+
return a ? Promise.all(o).then((t) => Cn(t, r, e, i)) : Cn(o, r, e, i);
|
|
1299
1299
|
};
|
|
1300
|
-
}),
|
|
1301
|
-
|
|
1300
|
+
}), Tn = /* @__PURE__ */ v("$ZodIntersection", (e, t) => {
|
|
1301
|
+
H.init(e, t), e._zod.parse = (e, n) => {
|
|
1302
1302
|
let r = e.value, i = t.left._zod.run({
|
|
1303
1303
|
value: r,
|
|
1304
1304
|
issues: []
|
|
@@ -1306,21 +1306,21 @@ var Cn = /* @__PURE__ */ b("$ZodUnion", (e, t) => {
|
|
|
1306
1306
|
value: r,
|
|
1307
1307
|
issues: []
|
|
1308
1308
|
}, n);
|
|
1309
|
-
return i instanceof Promise || a instanceof Promise ? Promise.all([i, a]).then(([t, n]) =>
|
|
1309
|
+
return i instanceof Promise || a instanceof Promise ? Promise.all([i, a]).then(([t, n]) => Dn(e, t, n)) : Dn(e, i, a);
|
|
1310
1310
|
};
|
|
1311
1311
|
});
|
|
1312
|
-
function
|
|
1312
|
+
function En(e, t) {
|
|
1313
1313
|
if (e === t || e instanceof Date && t instanceof Date && +e == +t) return {
|
|
1314
1314
|
valid: !0,
|
|
1315
1315
|
data: e
|
|
1316
1316
|
};
|
|
1317
|
-
if (
|
|
1317
|
+
if (M(e) && M(t)) {
|
|
1318
1318
|
let n = Object.keys(t), r = Object.keys(e).filter((e) => n.indexOf(e) !== -1), i = {
|
|
1319
1319
|
...e,
|
|
1320
1320
|
...t
|
|
1321
1321
|
};
|
|
1322
1322
|
for (let n of r) {
|
|
1323
|
-
let r =
|
|
1323
|
+
let r = En(e[n], t[n]);
|
|
1324
1324
|
if (!r.valid) return {
|
|
1325
1325
|
valid: !1,
|
|
1326
1326
|
mergeErrorPath: [n, ...r.mergeErrorPath]
|
|
@@ -1339,7 +1339,7 @@ function Tn(e, t) {
|
|
|
1339
1339
|
};
|
|
1340
1340
|
let n = [];
|
|
1341
1341
|
for (let r = 0; r < e.length; r++) {
|
|
1342
|
-
let i = e[r], a = t[r], o =
|
|
1342
|
+
let i = e[r], a = t[r], o = En(i, a);
|
|
1343
1343
|
if (!o.valid) return {
|
|
1344
1344
|
valid: !1,
|
|
1345
1345
|
mergeErrorPath: [r, ...o.mergeErrorPath]
|
|
@@ -1356,7 +1356,7 @@ function Tn(e, t) {
|
|
|
1356
1356
|
mergeErrorPath: []
|
|
1357
1357
|
};
|
|
1358
1358
|
}
|
|
1359
|
-
function
|
|
1359
|
+
function Dn(e, t, n) {
|
|
1360
1360
|
let r = /* @__PURE__ */ new Map(), i;
|
|
1361
1361
|
for (let n of t.issues) if (n.code === "unrecognized_keys") {
|
|
1362
1362
|
i ??= n;
|
|
@@ -1368,13 +1368,13 @@ function En(e, t, n) {
|
|
|
1368
1368
|
if (a.length && i && e.issues.push({
|
|
1369
1369
|
...i,
|
|
1370
1370
|
keys: a
|
|
1371
|
-
}),
|
|
1372
|
-
let o =
|
|
1371
|
+
}), z(e)) return e;
|
|
1372
|
+
let o = En(t.value, n.value);
|
|
1373
1373
|
if (!o.valid) throw Error(`Unmergable intersection. Error path: ${JSON.stringify(o.mergeErrorPath)}`);
|
|
1374
1374
|
return e.value = o.data, e;
|
|
1375
1375
|
}
|
|
1376
|
-
var
|
|
1377
|
-
|
|
1376
|
+
var On = /* @__PURE__ */ v("$ZodTuple", (e, t) => {
|
|
1377
|
+
H.init(e, t);
|
|
1378
1378
|
let n = t.items;
|
|
1379
1379
|
e._zod.parse = (r, i) => {
|
|
1380
1380
|
let a = r.value;
|
|
@@ -1385,7 +1385,7 @@ var Dn = /* @__PURE__ */ b("$ZodTuple", (e, t) => {
|
|
|
1385
1385
|
code: "invalid_type"
|
|
1386
1386
|
}), r;
|
|
1387
1387
|
r.value = [];
|
|
1388
|
-
let o = [], s =
|
|
1388
|
+
let o = [], s = kn(n, "optin"), c = kn(n, "optout");
|
|
1389
1389
|
if (!t.rest) {
|
|
1390
1390
|
if (a.length < s) return r.issues.push({
|
|
1391
1391
|
code: "too_small",
|
|
@@ -1422,20 +1422,20 @@ var Dn = /* @__PURE__ */ b("$ZodTuple", (e, t) => {
|
|
|
1422
1422
|
value: n,
|
|
1423
1423
|
issues: []
|
|
1424
1424
|
}, i);
|
|
1425
|
-
a instanceof Promise ? o.push(a.then((t) =>
|
|
1425
|
+
a instanceof Promise ? o.push(a.then((t) => An(t, r, e))) : An(a, r, e);
|
|
1426
1426
|
}
|
|
1427
1427
|
}
|
|
1428
|
-
return o.length ? Promise.all(o).then(() =>
|
|
1428
|
+
return o.length ? Promise.all(o).then(() => jn(l, r, n, a, c)) : jn(l, r, n, a, c);
|
|
1429
1429
|
};
|
|
1430
1430
|
});
|
|
1431
|
-
function
|
|
1431
|
+
function kn(e, t) {
|
|
1432
1432
|
for (let n = e.length - 1; n >= 0; n--) if (e[n]._zod[t] !== "optional") return n + 1;
|
|
1433
1433
|
return 0;
|
|
1434
1434
|
}
|
|
1435
|
-
function
|
|
1436
|
-
e.issues.length && t.issues.push(...
|
|
1435
|
+
function An(e, t, n) {
|
|
1436
|
+
e.issues.length && t.issues.push(...xe(n, e.issues)), t.value[n] = e.value;
|
|
1437
1437
|
}
|
|
1438
|
-
function
|
|
1438
|
+
function jn(e, t, n, r, i) {
|
|
1439
1439
|
for (let a = 0; a < n.length; a++) {
|
|
1440
1440
|
let n = e[a], o = a < r.length;
|
|
1441
1441
|
if (n.issues.length) {
|
|
@@ -1443,17 +1443,17 @@ function An(e, t, n, r, i) {
|
|
|
1443
1443
|
t.value.length = a;
|
|
1444
1444
|
break;
|
|
1445
1445
|
}
|
|
1446
|
-
t.issues.push(...
|
|
1446
|
+
t.issues.push(...xe(a, n.issues));
|
|
1447
1447
|
}
|
|
1448
1448
|
t.value[a] = n.value;
|
|
1449
1449
|
}
|
|
1450
1450
|
for (let e = t.value.length - 1; e >= r.length && n[e]._zod.optout === "optional" && t.value[e] === void 0; e--) t.value.length = e;
|
|
1451
1451
|
return t;
|
|
1452
1452
|
}
|
|
1453
|
-
var
|
|
1454
|
-
|
|
1455
|
-
let n =
|
|
1456
|
-
e._zod.values = r, e._zod.pattern = RegExp(`^(${n.filter((e) =>
|
|
1453
|
+
var Mn = /* @__PURE__ */ v("$ZodEnum", (e, t) => {
|
|
1454
|
+
H.init(e, t);
|
|
1455
|
+
let n = se(t.entries), r = new Set(n);
|
|
1456
|
+
e._zod.values = r, e._zod.pattern = RegExp(`^(${n.filter((e) => P.has(typeof e)).map((e) => typeof e == "string" ? F(e) : e.toString()).join("|")})$`), e._zod.parse = (t, i) => {
|
|
1457
1457
|
let a = t.value;
|
|
1458
1458
|
return r.has(a) || t.issues.push({
|
|
1459
1459
|
code: "invalid_value",
|
|
@@ -1462,62 +1462,62 @@ var jn = /* @__PURE__ */ b("$ZodEnum", (e, t) => {
|
|
|
1462
1462
|
inst: e
|
|
1463
1463
|
}), t;
|
|
1464
1464
|
};
|
|
1465
|
-
}),
|
|
1466
|
-
|
|
1467
|
-
if (r.direction === "backward") throw new
|
|
1465
|
+
}), Nn = /* @__PURE__ */ v("$ZodTransform", (e, t) => {
|
|
1466
|
+
H.init(e, t), e._zod.optin = "optional", e._zod.parse = (n, r) => {
|
|
1467
|
+
if (r.direction === "backward") throw new oe(e.constructor.name);
|
|
1468
1468
|
let i = t.transform(n.value, n);
|
|
1469
1469
|
if (r.async) return (i instanceof Promise ? i : Promise.resolve(i)).then((e) => (n.value = e, n.fallback = !0, n));
|
|
1470
|
-
if (i instanceof Promise) throw new
|
|
1470
|
+
if (i instanceof Promise) throw new y();
|
|
1471
1471
|
return n.value = i, n.fallback = !0, n;
|
|
1472
1472
|
};
|
|
1473
1473
|
});
|
|
1474
|
-
function
|
|
1474
|
+
function Pn(e, t) {
|
|
1475
1475
|
return t === void 0 && (e.issues.length || e.fallback) ? {
|
|
1476
1476
|
issues: [],
|
|
1477
1477
|
value: void 0
|
|
1478
1478
|
} : e;
|
|
1479
1479
|
}
|
|
1480
|
-
var
|
|
1481
|
-
|
|
1480
|
+
var Fn = /* @__PURE__ */ v("$ZodOptional", (e, t) => {
|
|
1481
|
+
H.init(e, t), e._zod.optin = "optional", e._zod.optout = "optional", D(e._zod, "values", () => t.innerType._zod.values ? new Set([...t.innerType._zod.values, void 0]) : void 0), D(e._zod, "pattern", () => {
|
|
1482
1482
|
let e = t.innerType._zod.pattern;
|
|
1483
|
-
return e ? RegExp(`^(${
|
|
1483
|
+
return e ? RegExp(`^(${w(e.source)})?$`) : void 0;
|
|
1484
1484
|
}), e._zod.parse = (e, n) => {
|
|
1485
1485
|
if (t.innerType._zod.optin === "optional") {
|
|
1486
1486
|
let r = e.value, i = t.innerType._zod.run(e, n);
|
|
1487
|
-
return i instanceof Promise ? i.then((e) =>
|
|
1487
|
+
return i instanceof Promise ? i.then((e) => Pn(e, r)) : Pn(i, r);
|
|
1488
1488
|
}
|
|
1489
1489
|
return e.value === void 0 ? e : t.innerType._zod.run(e, n);
|
|
1490
1490
|
};
|
|
1491
|
-
}),
|
|
1492
|
-
|
|
1493
|
-
}),
|
|
1494
|
-
|
|
1491
|
+
}), In = /* @__PURE__ */ v("$ZodExactOptional", (e, t) => {
|
|
1492
|
+
Fn.init(e, t), D(e._zod, "values", () => t.innerType._zod.values), D(e._zod, "pattern", () => t.innerType._zod.pattern), e._zod.parse = (e, n) => t.innerType._zod.run(e, n);
|
|
1493
|
+
}), Ln = /* @__PURE__ */ v("$ZodNullable", (e, t) => {
|
|
1494
|
+
H.init(e, t), D(e._zod, "optin", () => t.innerType._zod.optin), D(e._zod, "optout", () => t.innerType._zod.optout), D(e._zod, "pattern", () => {
|
|
1495
1495
|
let e = t.innerType._zod.pattern;
|
|
1496
|
-
return e ? RegExp(`^(${
|
|
1497
|
-
}),
|
|
1498
|
-
}),
|
|
1499
|
-
|
|
1496
|
+
return e ? RegExp(`^(${w(e.source)}|null)$`) : void 0;
|
|
1497
|
+
}), D(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);
|
|
1498
|
+
}), Rn = /* @__PURE__ */ v("$ZodDefault", (e, t) => {
|
|
1499
|
+
H.init(e, t), e._zod.optin = "optional", D(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (e, n) => {
|
|
1500
1500
|
if (n.direction === "backward") return t.innerType._zod.run(e, n);
|
|
1501
1501
|
if (e.value === void 0) return e.value = t.defaultValue, e;
|
|
1502
1502
|
let r = t.innerType._zod.run(e, n);
|
|
1503
|
-
return r instanceof Promise ? r.then((e) =>
|
|
1503
|
+
return r instanceof Promise ? r.then((e) => zn(e, t)) : zn(r, t);
|
|
1504
1504
|
};
|
|
1505
1505
|
});
|
|
1506
|
-
function
|
|
1506
|
+
function zn(e, t) {
|
|
1507
1507
|
return e.value === void 0 && (e.value = t.defaultValue), e;
|
|
1508
1508
|
}
|
|
1509
|
-
var
|
|
1510
|
-
|
|
1511
|
-
}),
|
|
1512
|
-
|
|
1509
|
+
var Bn = /* @__PURE__ */ v("$ZodPrefault", (e, t) => {
|
|
1510
|
+
H.init(e, t), e._zod.optin = "optional", D(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));
|
|
1511
|
+
}), Vn = /* @__PURE__ */ v("$ZodNonOptional", (e, t) => {
|
|
1512
|
+
H.init(e, t), D(e._zod, "values", () => {
|
|
1513
1513
|
let e = t.innerType._zod.values;
|
|
1514
1514
|
return e ? new Set([...e].filter((e) => e !== void 0)) : void 0;
|
|
1515
1515
|
}), e._zod.parse = (n, r) => {
|
|
1516
1516
|
let i = t.innerType._zod.run(n, r);
|
|
1517
|
-
return i instanceof Promise ? i.then((t) =>
|
|
1517
|
+
return i instanceof Promise ? i.then((t) => Hn(t, e)) : Hn(i, e);
|
|
1518
1518
|
};
|
|
1519
1519
|
});
|
|
1520
|
-
function
|
|
1520
|
+
function Hn(e, t) {
|
|
1521
1521
|
return !e.issues.length && e.value === void 0 && e.issues.push({
|
|
1522
1522
|
code: "invalid_type",
|
|
1523
1523
|
expected: "nonoptional",
|
|
@@ -1525,55 +1525,55 @@ function Vn(e, t) {
|
|
|
1525
1525
|
inst: t
|
|
1526
1526
|
}), e;
|
|
1527
1527
|
}
|
|
1528
|
-
var
|
|
1529
|
-
|
|
1528
|
+
var Un = /* @__PURE__ */ v("$ZodCatch", (e, t) => {
|
|
1529
|
+
H.init(e, t), e._zod.optin = "optional", D(e._zod, "optout", () => t.innerType._zod.optout), D(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (e, n) => {
|
|
1530
1530
|
if (n.direction === "backward") return t.innerType._zod.run(e, n);
|
|
1531
1531
|
let r = t.innerType._zod.run(e, n);
|
|
1532
1532
|
return r instanceof Promise ? r.then((r) => (e.value = r.value, r.issues.length && (e.value = t.catchValue({
|
|
1533
1533
|
...e,
|
|
1534
|
-
error: { issues: r.issues.map((e) =>
|
|
1534
|
+
error: { issues: r.issues.map((e) => B(e, n, x())) },
|
|
1535
1535
|
input: e.value
|
|
1536
1536
|
}), e.issues = [], e.fallback = !0), e)) : (e.value = r.value, r.issues.length && (e.value = t.catchValue({
|
|
1537
1537
|
...e,
|
|
1538
|
-
error: { issues: r.issues.map((e) =>
|
|
1538
|
+
error: { issues: r.issues.map((e) => B(e, n, x())) },
|
|
1539
1539
|
input: e.value
|
|
1540
1540
|
}), e.issues = [], e.fallback = !0), e);
|
|
1541
1541
|
};
|
|
1542
|
-
}),
|
|
1543
|
-
|
|
1542
|
+
}), Wn = /* @__PURE__ */ v("$ZodPipe", (e, t) => {
|
|
1543
|
+
H.init(e, t), D(e._zod, "values", () => t.in._zod.values), D(e._zod, "optin", () => t.in._zod.optin), D(e._zod, "optout", () => t.out._zod.optout), D(e._zod, "propValues", () => t.in._zod.propValues), e._zod.parse = (e, n) => {
|
|
1544
1544
|
if (n.direction === "backward") {
|
|
1545
1545
|
let r = t.out._zod.run(e, n);
|
|
1546
|
-
return r instanceof Promise ? r.then((e) =>
|
|
1546
|
+
return r instanceof Promise ? r.then((e) => Gn(e, t.in, n)) : Gn(r, t.in, n);
|
|
1547
1547
|
}
|
|
1548
1548
|
let r = t.in._zod.run(e, n);
|
|
1549
|
-
return r instanceof Promise ? r.then((e) =>
|
|
1549
|
+
return r instanceof Promise ? r.then((e) => Gn(e, t.out, n)) : Gn(r, t.out, n);
|
|
1550
1550
|
};
|
|
1551
1551
|
});
|
|
1552
|
-
function
|
|
1552
|
+
function Gn(e, t, n) {
|
|
1553
1553
|
return e.issues.length ? (e.aborted = !0, e) : t._zod.run({
|
|
1554
1554
|
value: e.value,
|
|
1555
1555
|
issues: e.issues,
|
|
1556
1556
|
fallback: e.fallback
|
|
1557
1557
|
}, n);
|
|
1558
1558
|
}
|
|
1559
|
-
var
|
|
1560
|
-
|
|
1559
|
+
var Kn = /* @__PURE__ */ v("$ZodReadonly", (e, t) => {
|
|
1560
|
+
H.init(e, t), D(e._zod, "propValues", () => t.innerType._zod.propValues), D(e._zod, "values", () => t.innerType._zod.values), D(e._zod, "optin", () => t.innerType?._zod?.optin), D(e._zod, "optout", () => t.innerType?._zod?.optout), e._zod.parse = (e, n) => {
|
|
1561
1561
|
if (n.direction === "backward") return t.innerType._zod.run(e, n);
|
|
1562
1562
|
let r = t.innerType._zod.run(e, n);
|
|
1563
|
-
return r instanceof Promise ? r.then(
|
|
1563
|
+
return r instanceof Promise ? r.then(qn) : qn(r);
|
|
1564
1564
|
};
|
|
1565
1565
|
});
|
|
1566
|
-
function
|
|
1566
|
+
function qn(e) {
|
|
1567
1567
|
return e.value = Object.freeze(e.value), e;
|
|
1568
1568
|
}
|
|
1569
|
-
var
|
|
1570
|
-
|
|
1569
|
+
var Jn = /* @__PURE__ */ v("$ZodCustom", (e, t) => {
|
|
1570
|
+
V.init(e, t), H.init(e, t), e._zod.parse = (e, t) => e, e._zod.check = (n) => {
|
|
1571
1571
|
let r = n.value, i = t.fn(r);
|
|
1572
|
-
if (i instanceof Promise) return i.then((t) =>
|
|
1573
|
-
|
|
1572
|
+
if (i instanceof Promise) return i.then((t) => Yn(t, n, r, e));
|
|
1573
|
+
Yn(i, n, r, e);
|
|
1574
1574
|
};
|
|
1575
1575
|
});
|
|
1576
|
-
function
|
|
1576
|
+
function Yn(e, t, n, r) {
|
|
1577
1577
|
if (!e) {
|
|
1578
1578
|
let e = {
|
|
1579
1579
|
code: "custom",
|
|
@@ -1582,12 +1582,12 @@ function Jn(e, t, n, r) {
|
|
|
1582
1582
|
path: [...r._zod.def.path ?? []],
|
|
1583
1583
|
continue: !r._zod.def.abort
|
|
1584
1584
|
};
|
|
1585
|
-
r._zod.def.params && (e.params = r._zod.def.params), t.issues.push(
|
|
1585
|
+
r._zod.def.params && (e.params = r._zod.def.params), t.issues.push(we(e));
|
|
1586
1586
|
}
|
|
1587
1587
|
}
|
|
1588
1588
|
//#endregion
|
|
1589
1589
|
//#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/registries.js
|
|
1590
|
-
var
|
|
1590
|
+
var Xn, Zn = class {
|
|
1591
1591
|
constructor() {
|
|
1592
1592
|
this._map = /* @__PURE__ */ new WeakMap(), this._idmap = /* @__PURE__ */ new Map();
|
|
1593
1593
|
}
|
|
@@ -1619,22 +1619,22 @@ var Yn, Xn = class {
|
|
|
1619
1619
|
return this._map.has(e);
|
|
1620
1620
|
}
|
|
1621
1621
|
};
|
|
1622
|
-
function
|
|
1623
|
-
return new
|
|
1622
|
+
function Qn() {
|
|
1623
|
+
return new Zn();
|
|
1624
1624
|
}
|
|
1625
|
-
(
|
|
1626
|
-
var
|
|
1625
|
+
(Xn = globalThis).__zod_globalRegistry ?? (Xn.__zod_globalRegistry = Qn());
|
|
1626
|
+
var $n = globalThis.__zod_globalRegistry;
|
|
1627
1627
|
//#endregion
|
|
1628
1628
|
//#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/api.js
|
|
1629
1629
|
/* @__NO_SIDE_EFFECTS__ */
|
|
1630
|
-
function
|
|
1630
|
+
function er(e, t) {
|
|
1631
1631
|
return new e({
|
|
1632
1632
|
type: "string",
|
|
1633
1633
|
...L(t)
|
|
1634
1634
|
});
|
|
1635
1635
|
}
|
|
1636
1636
|
/* @__NO_SIDE_EFFECTS__ */
|
|
1637
|
-
function
|
|
1637
|
+
function tr(e, t) {
|
|
1638
1638
|
return new e({
|
|
1639
1639
|
type: "string",
|
|
1640
1640
|
format: "email",
|
|
@@ -1644,7 +1644,7 @@ function er(e, t) {
|
|
|
1644
1644
|
});
|
|
1645
1645
|
}
|
|
1646
1646
|
/* @__NO_SIDE_EFFECTS__ */
|
|
1647
|
-
function
|
|
1647
|
+
function nr(e, t) {
|
|
1648
1648
|
return new e({
|
|
1649
1649
|
type: "string",
|
|
1650
1650
|
format: "guid",
|
|
@@ -1654,7 +1654,7 @@ function tr(e, t) {
|
|
|
1654
1654
|
});
|
|
1655
1655
|
}
|
|
1656
1656
|
/* @__NO_SIDE_EFFECTS__ */
|
|
1657
|
-
function
|
|
1657
|
+
function rr(e, t) {
|
|
1658
1658
|
return new e({
|
|
1659
1659
|
type: "string",
|
|
1660
1660
|
format: "uuid",
|
|
@@ -1664,7 +1664,7 @@ function nr(e, t) {
|
|
|
1664
1664
|
});
|
|
1665
1665
|
}
|
|
1666
1666
|
/* @__NO_SIDE_EFFECTS__ */
|
|
1667
|
-
function
|
|
1667
|
+
function ir(e, t) {
|
|
1668
1668
|
return new e({
|
|
1669
1669
|
type: "string",
|
|
1670
1670
|
format: "uuid",
|
|
@@ -1675,7 +1675,7 @@ function rr(e, t) {
|
|
|
1675
1675
|
});
|
|
1676
1676
|
}
|
|
1677
1677
|
/* @__NO_SIDE_EFFECTS__ */
|
|
1678
|
-
function
|
|
1678
|
+
function ar(e, t) {
|
|
1679
1679
|
return new e({
|
|
1680
1680
|
type: "string",
|
|
1681
1681
|
format: "uuid",
|
|
@@ -1686,7 +1686,7 @@ function ir(e, t) {
|
|
|
1686
1686
|
});
|
|
1687
1687
|
}
|
|
1688
1688
|
/* @__NO_SIDE_EFFECTS__ */
|
|
1689
|
-
function
|
|
1689
|
+
function or(e, t) {
|
|
1690
1690
|
return new e({
|
|
1691
1691
|
type: "string",
|
|
1692
1692
|
format: "uuid",
|
|
@@ -1697,7 +1697,7 @@ function ar(e, t) {
|
|
|
1697
1697
|
});
|
|
1698
1698
|
}
|
|
1699
1699
|
/* @__NO_SIDE_EFFECTS__ */
|
|
1700
|
-
function
|
|
1700
|
+
function sr(e, t) {
|
|
1701
1701
|
return new e({
|
|
1702
1702
|
type: "string",
|
|
1703
1703
|
format: "url",
|
|
@@ -1707,7 +1707,7 @@ function or(e, t) {
|
|
|
1707
1707
|
});
|
|
1708
1708
|
}
|
|
1709
1709
|
/* @__NO_SIDE_EFFECTS__ */
|
|
1710
|
-
function
|
|
1710
|
+
function cr(e, t) {
|
|
1711
1711
|
return new e({
|
|
1712
1712
|
type: "string",
|
|
1713
1713
|
format: "emoji",
|
|
@@ -1717,7 +1717,7 @@ function sr(e, t) {
|
|
|
1717
1717
|
});
|
|
1718
1718
|
}
|
|
1719
1719
|
/* @__NO_SIDE_EFFECTS__ */
|
|
1720
|
-
function
|
|
1720
|
+
function lr(e, t) {
|
|
1721
1721
|
return new e({
|
|
1722
1722
|
type: "string",
|
|
1723
1723
|
format: "nanoid",
|
|
@@ -1727,7 +1727,7 @@ function cr(e, t) {
|
|
|
1727
1727
|
});
|
|
1728
1728
|
}
|
|
1729
1729
|
/* @__NO_SIDE_EFFECTS__ */
|
|
1730
|
-
function
|
|
1730
|
+
function ur(e, t) {
|
|
1731
1731
|
return new e({
|
|
1732
1732
|
type: "string",
|
|
1733
1733
|
format: "cuid",
|
|
@@ -1737,7 +1737,7 @@ function lr(e, t) {
|
|
|
1737
1737
|
});
|
|
1738
1738
|
}
|
|
1739
1739
|
/* @__NO_SIDE_EFFECTS__ */
|
|
1740
|
-
function
|
|
1740
|
+
function dr(e, t) {
|
|
1741
1741
|
return new e({
|
|
1742
1742
|
type: "string",
|
|
1743
1743
|
format: "cuid2",
|
|
@@ -1747,7 +1747,7 @@ function ur(e, t) {
|
|
|
1747
1747
|
});
|
|
1748
1748
|
}
|
|
1749
1749
|
/* @__NO_SIDE_EFFECTS__ */
|
|
1750
|
-
function
|
|
1750
|
+
function fr(e, t) {
|
|
1751
1751
|
return new e({
|
|
1752
1752
|
type: "string",
|
|
1753
1753
|
format: "ulid",
|
|
@@ -1757,7 +1757,7 @@ function dr(e, t) {
|
|
|
1757
1757
|
});
|
|
1758
1758
|
}
|
|
1759
1759
|
/* @__NO_SIDE_EFFECTS__ */
|
|
1760
|
-
function
|
|
1760
|
+
function pr(e, t) {
|
|
1761
1761
|
return new e({
|
|
1762
1762
|
type: "string",
|
|
1763
1763
|
format: "xid",
|
|
@@ -1767,7 +1767,7 @@ function fr(e, t) {
|
|
|
1767
1767
|
});
|
|
1768
1768
|
}
|
|
1769
1769
|
/* @__NO_SIDE_EFFECTS__ */
|
|
1770
|
-
function
|
|
1770
|
+
function mr(e, t) {
|
|
1771
1771
|
return new e({
|
|
1772
1772
|
type: "string",
|
|
1773
1773
|
format: "ksuid",
|
|
@@ -1777,7 +1777,7 @@ function pr(e, t) {
|
|
|
1777
1777
|
});
|
|
1778
1778
|
}
|
|
1779
1779
|
/* @__NO_SIDE_EFFECTS__ */
|
|
1780
|
-
function
|
|
1780
|
+
function hr(e, t) {
|
|
1781
1781
|
return new e({
|
|
1782
1782
|
type: "string",
|
|
1783
1783
|
format: "ipv4",
|
|
@@ -1787,7 +1787,7 @@ function mr(e, t) {
|
|
|
1787
1787
|
});
|
|
1788
1788
|
}
|
|
1789
1789
|
/* @__NO_SIDE_EFFECTS__ */
|
|
1790
|
-
function
|
|
1790
|
+
function gr(e, t) {
|
|
1791
1791
|
return new e({
|
|
1792
1792
|
type: "string",
|
|
1793
1793
|
format: "ipv6",
|
|
@@ -1797,7 +1797,7 @@ function hr(e, t) {
|
|
|
1797
1797
|
});
|
|
1798
1798
|
}
|
|
1799
1799
|
/* @__NO_SIDE_EFFECTS__ */
|
|
1800
|
-
function
|
|
1800
|
+
function _r(e, t) {
|
|
1801
1801
|
return new e({
|
|
1802
1802
|
type: "string",
|
|
1803
1803
|
format: "cidrv4",
|
|
@@ -1807,7 +1807,7 @@ function gr(e, t) {
|
|
|
1807
1807
|
});
|
|
1808
1808
|
}
|
|
1809
1809
|
/* @__NO_SIDE_EFFECTS__ */
|
|
1810
|
-
function
|
|
1810
|
+
function vr(e, t) {
|
|
1811
1811
|
return new e({
|
|
1812
1812
|
type: "string",
|
|
1813
1813
|
format: "cidrv6",
|
|
@@ -1817,7 +1817,7 @@ function _r(e, t) {
|
|
|
1817
1817
|
});
|
|
1818
1818
|
}
|
|
1819
1819
|
/* @__NO_SIDE_EFFECTS__ */
|
|
1820
|
-
function
|
|
1820
|
+
function yr(e, t) {
|
|
1821
1821
|
return new e({
|
|
1822
1822
|
type: "string",
|
|
1823
1823
|
format: "base64",
|
|
@@ -1827,7 +1827,7 @@ function vr(e, t) {
|
|
|
1827
1827
|
});
|
|
1828
1828
|
}
|
|
1829
1829
|
/* @__NO_SIDE_EFFECTS__ */
|
|
1830
|
-
function
|
|
1830
|
+
function br(e, t) {
|
|
1831
1831
|
return new e({
|
|
1832
1832
|
type: "string",
|
|
1833
1833
|
format: "base64url",
|
|
@@ -1837,7 +1837,7 @@ function yr(e, t) {
|
|
|
1837
1837
|
});
|
|
1838
1838
|
}
|
|
1839
1839
|
/* @__NO_SIDE_EFFECTS__ */
|
|
1840
|
-
function
|
|
1840
|
+
function xr(e, t) {
|
|
1841
1841
|
return new e({
|
|
1842
1842
|
type: "string",
|
|
1843
1843
|
format: "e164",
|
|
@@ -1847,7 +1847,7 @@ function br(e, t) {
|
|
|
1847
1847
|
});
|
|
1848
1848
|
}
|
|
1849
1849
|
/* @__NO_SIDE_EFFECTS__ */
|
|
1850
|
-
function
|
|
1850
|
+
function Sr(e, t) {
|
|
1851
1851
|
return new e({
|
|
1852
1852
|
type: "string",
|
|
1853
1853
|
format: "jwt",
|
|
@@ -1857,7 +1857,7 @@ function xr(e, t) {
|
|
|
1857
1857
|
});
|
|
1858
1858
|
}
|
|
1859
1859
|
/* @__NO_SIDE_EFFECTS__ */
|
|
1860
|
-
function
|
|
1860
|
+
function Cr(e, t) {
|
|
1861
1861
|
return new e({
|
|
1862
1862
|
type: "string",
|
|
1863
1863
|
format: "datetime",
|
|
@@ -1869,7 +1869,7 @@ function Sr(e, t) {
|
|
|
1869
1869
|
});
|
|
1870
1870
|
}
|
|
1871
1871
|
/* @__NO_SIDE_EFFECTS__ */
|
|
1872
|
-
function
|
|
1872
|
+
function wr(e, t) {
|
|
1873
1873
|
return new e({
|
|
1874
1874
|
type: "string",
|
|
1875
1875
|
format: "date",
|
|
@@ -1878,7 +1878,7 @@ function Cr(e, t) {
|
|
|
1878
1878
|
});
|
|
1879
1879
|
}
|
|
1880
1880
|
/* @__NO_SIDE_EFFECTS__ */
|
|
1881
|
-
function
|
|
1881
|
+
function Tr(e, t) {
|
|
1882
1882
|
return new e({
|
|
1883
1883
|
type: "string",
|
|
1884
1884
|
format: "time",
|
|
@@ -1888,7 +1888,7 @@ function wr(e, t) {
|
|
|
1888
1888
|
});
|
|
1889
1889
|
}
|
|
1890
1890
|
/* @__NO_SIDE_EFFECTS__ */
|
|
1891
|
-
function
|
|
1891
|
+
function Er(e, t) {
|
|
1892
1892
|
return new e({
|
|
1893
1893
|
type: "string",
|
|
1894
1894
|
format: "duration",
|
|
@@ -1897,7 +1897,7 @@ function Tr(e, t) {
|
|
|
1897
1897
|
});
|
|
1898
1898
|
}
|
|
1899
1899
|
/* @__NO_SIDE_EFFECTS__ */
|
|
1900
|
-
function
|
|
1900
|
+
function Dr(e, t) {
|
|
1901
1901
|
return new e({
|
|
1902
1902
|
type: "number",
|
|
1903
1903
|
checks: [],
|
|
@@ -1905,7 +1905,7 @@ function Er(e, t) {
|
|
|
1905
1905
|
});
|
|
1906
1906
|
}
|
|
1907
1907
|
/* @__NO_SIDE_EFFECTS__ */
|
|
1908
|
-
function
|
|
1908
|
+
function Or(e, t) {
|
|
1909
1909
|
return new e({
|
|
1910
1910
|
type: "number",
|
|
1911
1911
|
check: "number_format",
|
|
@@ -1915,19 +1915,19 @@ function Dr(e, t) {
|
|
|
1915
1915
|
});
|
|
1916
1916
|
}
|
|
1917
1917
|
/* @__NO_SIDE_EFFECTS__ */
|
|
1918
|
-
function
|
|
1918
|
+
function kr(e) {
|
|
1919
1919
|
return new e({ type: "unknown" });
|
|
1920
1920
|
}
|
|
1921
1921
|
/* @__NO_SIDE_EFFECTS__ */
|
|
1922
|
-
function
|
|
1922
|
+
function Ar(e, t) {
|
|
1923
1923
|
return new e({
|
|
1924
1924
|
type: "never",
|
|
1925
1925
|
...L(t)
|
|
1926
1926
|
});
|
|
1927
1927
|
}
|
|
1928
1928
|
/* @__NO_SIDE_EFFECTS__ */
|
|
1929
|
-
function
|
|
1930
|
-
return new
|
|
1929
|
+
function jr(e, t) {
|
|
1930
|
+
return new xt({
|
|
1931
1931
|
check: "less_than",
|
|
1932
1932
|
...L(t),
|
|
1933
1933
|
value: e,
|
|
@@ -1935,8 +1935,8 @@ function Ar(e, t) {
|
|
|
1935
1935
|
});
|
|
1936
1936
|
}
|
|
1937
1937
|
/* @__NO_SIDE_EFFECTS__ */
|
|
1938
|
-
function
|
|
1939
|
-
return new
|
|
1938
|
+
function Mr(e, t) {
|
|
1939
|
+
return new xt({
|
|
1940
1940
|
check: "less_than",
|
|
1941
1941
|
...L(t),
|
|
1942
1942
|
value: e,
|
|
@@ -1944,8 +1944,8 @@ function jr(e, t) {
|
|
|
1944
1944
|
});
|
|
1945
1945
|
}
|
|
1946
1946
|
/* @__NO_SIDE_EFFECTS__ */
|
|
1947
|
-
function
|
|
1948
|
-
return new
|
|
1947
|
+
function Nr(e, t) {
|
|
1948
|
+
return new St({
|
|
1949
1949
|
check: "greater_than",
|
|
1950
1950
|
...L(t),
|
|
1951
1951
|
value: e,
|
|
@@ -1953,8 +1953,8 @@ function Mr(e, t) {
|
|
|
1953
1953
|
});
|
|
1954
1954
|
}
|
|
1955
1955
|
/* @__NO_SIDE_EFFECTS__ */
|
|
1956
|
-
function
|
|
1957
|
-
return new
|
|
1956
|
+
function Pr(e, t) {
|
|
1957
|
+
return new St({
|
|
1958
1958
|
check: "greater_than",
|
|
1959
1959
|
...L(t),
|
|
1960
1960
|
value: e,
|
|
@@ -1962,40 +1962,40 @@ function Nr(e, t) {
|
|
|
1962
1962
|
});
|
|
1963
1963
|
}
|
|
1964
1964
|
/* @__NO_SIDE_EFFECTS__ */
|
|
1965
|
-
function
|
|
1966
|
-
return new
|
|
1965
|
+
function Fr(e, t) {
|
|
1966
|
+
return new Ct({
|
|
1967
1967
|
check: "multiple_of",
|
|
1968
1968
|
...L(t),
|
|
1969
1969
|
value: e
|
|
1970
1970
|
});
|
|
1971
1971
|
}
|
|
1972
1972
|
/* @__NO_SIDE_EFFECTS__ */
|
|
1973
|
-
function
|
|
1974
|
-
return new
|
|
1973
|
+
function Ir(e, t) {
|
|
1974
|
+
return new Tt({
|
|
1975
1975
|
check: "max_length",
|
|
1976
1976
|
...L(t),
|
|
1977
1977
|
maximum: e
|
|
1978
1978
|
});
|
|
1979
1979
|
}
|
|
1980
1980
|
/* @__NO_SIDE_EFFECTS__ */
|
|
1981
|
-
function
|
|
1982
|
-
return new
|
|
1981
|
+
function Lr(e, t) {
|
|
1982
|
+
return new Et({
|
|
1983
1983
|
check: "min_length",
|
|
1984
1984
|
...L(t),
|
|
1985
1985
|
minimum: e
|
|
1986
1986
|
});
|
|
1987
1987
|
}
|
|
1988
1988
|
/* @__NO_SIDE_EFFECTS__ */
|
|
1989
|
-
function
|
|
1990
|
-
return new
|
|
1989
|
+
function Rr(e, t) {
|
|
1990
|
+
return new Dt({
|
|
1991
1991
|
check: "length_equals",
|
|
1992
1992
|
...L(t),
|
|
1993
1993
|
length: e
|
|
1994
1994
|
});
|
|
1995
1995
|
}
|
|
1996
1996
|
/* @__NO_SIDE_EFFECTS__ */
|
|
1997
|
-
function
|
|
1998
|
-
return new
|
|
1997
|
+
function zr(e, t) {
|
|
1998
|
+
return new kt({
|
|
1999
1999
|
check: "string_format",
|
|
2000
2000
|
format: "regex",
|
|
2001
2001
|
...L(t),
|
|
@@ -2003,24 +2003,24 @@ function Rr(e, t) {
|
|
|
2003
2003
|
});
|
|
2004
2004
|
}
|
|
2005
2005
|
/* @__NO_SIDE_EFFECTS__ */
|
|
2006
|
-
function
|
|
2007
|
-
return new
|
|
2006
|
+
function Br(e) {
|
|
2007
|
+
return new At({
|
|
2008
2008
|
check: "string_format",
|
|
2009
2009
|
format: "lowercase",
|
|
2010
2010
|
...L(e)
|
|
2011
2011
|
});
|
|
2012
2012
|
}
|
|
2013
2013
|
/* @__NO_SIDE_EFFECTS__ */
|
|
2014
|
-
function
|
|
2015
|
-
return new
|
|
2014
|
+
function Vr(e) {
|
|
2015
|
+
return new jt({
|
|
2016
2016
|
check: "string_format",
|
|
2017
2017
|
format: "uppercase",
|
|
2018
2018
|
...L(e)
|
|
2019
2019
|
});
|
|
2020
2020
|
}
|
|
2021
2021
|
/* @__NO_SIDE_EFFECTS__ */
|
|
2022
|
-
function
|
|
2023
|
-
return new
|
|
2022
|
+
function Hr(e, t) {
|
|
2023
|
+
return new Mt({
|
|
2024
2024
|
check: "string_format",
|
|
2025
2025
|
format: "includes",
|
|
2026
2026
|
...L(t),
|
|
@@ -2028,8 +2028,8 @@ function Vr(e, t) {
|
|
|
2028
2028
|
});
|
|
2029
2029
|
}
|
|
2030
2030
|
/* @__NO_SIDE_EFFECTS__ */
|
|
2031
|
-
function
|
|
2032
|
-
return new
|
|
2031
|
+
function Ur(e, t) {
|
|
2032
|
+
return new Nt({
|
|
2033
2033
|
check: "string_format",
|
|
2034
2034
|
format: "starts_with",
|
|
2035
2035
|
...L(t),
|
|
@@ -2037,8 +2037,8 @@ function Hr(e, t) {
|
|
|
2037
2037
|
});
|
|
2038
2038
|
}
|
|
2039
2039
|
/* @__NO_SIDE_EFFECTS__ */
|
|
2040
|
-
function
|
|
2041
|
-
return new
|
|
2040
|
+
function Wr(e, t) {
|
|
2041
|
+
return new Pt({
|
|
2042
2042
|
check: "string_format",
|
|
2043
2043
|
format: "ends_with",
|
|
2044
2044
|
...L(t),
|
|
@@ -2046,34 +2046,34 @@ function Ur(e, t) {
|
|
|
2046
2046
|
});
|
|
2047
2047
|
}
|
|
2048
2048
|
/* @__NO_SIDE_EFFECTS__ */
|
|
2049
|
-
function
|
|
2050
|
-
return new
|
|
2049
|
+
function W(e) {
|
|
2050
|
+
return new Ft({
|
|
2051
2051
|
check: "overwrite",
|
|
2052
2052
|
tx: e
|
|
2053
2053
|
});
|
|
2054
2054
|
}
|
|
2055
2055
|
/* @__NO_SIDE_EFFECTS__ */
|
|
2056
|
-
function
|
|
2057
|
-
return /* @__PURE__ */
|
|
2058
|
-
}
|
|
2059
|
-
/* @__NO_SIDE_EFFECTS__ */
|
|
2060
|
-
function Gr() {
|
|
2061
|
-
return /* @__PURE__ */ U((e) => e.trim());
|
|
2056
|
+
function Gr(e) {
|
|
2057
|
+
return /* @__PURE__ */ W((t) => t.normalize(e));
|
|
2062
2058
|
}
|
|
2063
2059
|
/* @__NO_SIDE_EFFECTS__ */
|
|
2064
2060
|
function Kr() {
|
|
2065
|
-
return /* @__PURE__ */
|
|
2061
|
+
return /* @__PURE__ */ W((e) => e.trim());
|
|
2066
2062
|
}
|
|
2067
2063
|
/* @__NO_SIDE_EFFECTS__ */
|
|
2068
2064
|
function qr() {
|
|
2069
|
-
return /* @__PURE__ */
|
|
2065
|
+
return /* @__PURE__ */ W((e) => e.toLowerCase());
|
|
2070
2066
|
}
|
|
2071
2067
|
/* @__NO_SIDE_EFFECTS__ */
|
|
2072
2068
|
function Jr() {
|
|
2073
|
-
return /* @__PURE__ */
|
|
2069
|
+
return /* @__PURE__ */ W((e) => e.toUpperCase());
|
|
2074
2070
|
}
|
|
2075
2071
|
/* @__NO_SIDE_EFFECTS__ */
|
|
2076
|
-
function Yr(
|
|
2072
|
+
function Yr() {
|
|
2073
|
+
return /* @__PURE__ */ W((e) => ue(e));
|
|
2074
|
+
}
|
|
2075
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
2076
|
+
function Xr(e, t, n) {
|
|
2077
2077
|
return new e({
|
|
2078
2078
|
type: "array",
|
|
2079
2079
|
element: t,
|
|
@@ -2081,7 +2081,7 @@ function Yr(e, t, n) {
|
|
|
2081
2081
|
});
|
|
2082
2082
|
}
|
|
2083
2083
|
/* @__NO_SIDE_EFFECTS__ */
|
|
2084
|
-
function
|
|
2084
|
+
function Zr(e, t, n) {
|
|
2085
2085
|
return new e({
|
|
2086
2086
|
type: "custom",
|
|
2087
2087
|
check: "custom",
|
|
@@ -2090,19 +2090,19 @@ function Xr(e, t, n) {
|
|
|
2090
2090
|
});
|
|
2091
2091
|
}
|
|
2092
2092
|
/* @__NO_SIDE_EFFECTS__ */
|
|
2093
|
-
function
|
|
2094
|
-
let n = /* @__PURE__ */
|
|
2095
|
-
if (typeof e == "string") t.issues.push(
|
|
2093
|
+
function Qr(e, t) {
|
|
2094
|
+
let n = /* @__PURE__ */ $r((t) => (t.addIssue = (e) => {
|
|
2095
|
+
if (typeof e == "string") t.issues.push(we(e, t.value, n._zod.def));
|
|
2096
2096
|
else {
|
|
2097
2097
|
let r = e;
|
|
2098
|
-
r.fatal && (r.continue = !1), r.code ??= "custom", r.input ??= t.value, r.inst ??= n, r.continue ??= !n._zod.def.abort, t.issues.push(
|
|
2098
|
+
r.fatal && (r.continue = !1), r.code ??= "custom", r.input ??= t.value, r.inst ??= n, r.continue ??= !n._zod.def.abort, t.issues.push(we(r));
|
|
2099
2099
|
}
|
|
2100
2100
|
}, e(t.value, t)), t);
|
|
2101
2101
|
return n;
|
|
2102
2102
|
}
|
|
2103
2103
|
/* @__NO_SIDE_EFFECTS__ */
|
|
2104
|
-
function
|
|
2105
|
-
let n = new
|
|
2104
|
+
function $r(e, t) {
|
|
2105
|
+
let n = new V({
|
|
2106
2106
|
check: "custom",
|
|
2107
2107
|
...L(t)
|
|
2108
2108
|
});
|
|
@@ -2110,11 +2110,11 @@ function Qr(e, t) {
|
|
|
2110
2110
|
}
|
|
2111
2111
|
//#endregion
|
|
2112
2112
|
//#region ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/to-json-schema.js
|
|
2113
|
-
function
|
|
2113
|
+
function ei(e) {
|
|
2114
2114
|
let t = e?.target ?? "draft-2020-12";
|
|
2115
2115
|
return t === "draft-4" && (t = "draft-04"), t === "draft-7" && (t = "draft-07"), {
|
|
2116
2116
|
processors: e.processors ?? {},
|
|
2117
|
-
metadataRegistry: e?.metadata ??
|
|
2117
|
+
metadataRegistry: e?.metadata ?? $n,
|
|
2118
2118
|
target: t,
|
|
2119
2119
|
unrepresentable: e?.unrepresentable ?? "throw",
|
|
2120
2120
|
override: e?.override ?? (() => {}),
|
|
@@ -2126,7 +2126,7 @@ function $r(e) {
|
|
|
2126
2126
|
external: e?.external ?? void 0
|
|
2127
2127
|
};
|
|
2128
2128
|
}
|
|
2129
|
-
function
|
|
2129
|
+
function G(e, t, n = {
|
|
2130
2130
|
path: [],
|
|
2131
2131
|
schemaPath: []
|
|
2132
2132
|
}) {
|
|
@@ -2155,12 +2155,12 @@ function W(e, t, n = {
|
|
|
2155
2155
|
a(e, t, n, r);
|
|
2156
2156
|
}
|
|
2157
2157
|
let a = e._zod.parent;
|
|
2158
|
-
a && (o.ref ||= a,
|
|
2158
|
+
a && (o.ref ||= a, G(a, t, r), t.seen.get(a).isParent = !0);
|
|
2159
2159
|
}
|
|
2160
2160
|
let c = t.metadataRegistry.get(e);
|
|
2161
|
-
return c && Object.assign(o.schema, c), t.io === "input" &&
|
|
2161
|
+
return c && Object.assign(o.schema, c), t.io === "input" && K(e) && (delete o.schema.examples, delete o.schema.default), t.io === "input" && "_prefault" in o.schema && ((r = o.schema).default ?? (r.default = o.schema._prefault)), delete o.schema._prefault, t.seen.get(e).schema;
|
|
2162
2162
|
}
|
|
2163
|
-
function
|
|
2163
|
+
function ti(e, t) {
|
|
2164
2164
|
let n = e.seen.get(t);
|
|
2165
2165
|
if (!n) throw Error("Unprocessed schema. This is a bug in Zod.");
|
|
2166
2166
|
let r = /* @__PURE__ */ new Map();
|
|
@@ -2230,7 +2230,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
2230
2230
|
}
|
|
2231
2231
|
}
|
|
2232
2232
|
}
|
|
2233
|
-
function
|
|
2233
|
+
function ni(e, t) {
|
|
2234
2234
|
let n = e.seen.get(t);
|
|
2235
2235
|
if (!n) throw Error("Unprocessed schema. This is a bug in Zod.");
|
|
2236
2236
|
let r = (t) => {
|
|
@@ -2277,8 +2277,8 @@ function ti(e, t) {
|
|
|
2277
2277
|
value: {
|
|
2278
2278
|
...t["~standard"],
|
|
2279
2279
|
jsonSchema: {
|
|
2280
|
-
input:
|
|
2281
|
-
output:
|
|
2280
|
+
input: ii(t, "input", e.processors),
|
|
2281
|
+
output: ii(t, "output", e.processors)
|
|
2282
2282
|
}
|
|
2283
2283
|
},
|
|
2284
2284
|
enumerable: !1,
|
|
@@ -2288,89 +2288,89 @@ function ti(e, t) {
|
|
|
2288
2288
|
throw Error("Error converting schema to JSON.");
|
|
2289
2289
|
}
|
|
2290
2290
|
}
|
|
2291
|
-
function
|
|
2291
|
+
function K(e, t) {
|
|
2292
2292
|
let n = t ?? { seen: /* @__PURE__ */ new Set() };
|
|
2293
2293
|
if (n.seen.has(e)) return !1;
|
|
2294
2294
|
n.seen.add(e);
|
|
2295
2295
|
let r = e._zod.def;
|
|
2296
2296
|
if (r.type === "transform") return !0;
|
|
2297
|
-
if (r.type === "array") return
|
|
2298
|
-
if (r.type === "set") return
|
|
2299
|
-
if (r.type === "lazy") return
|
|
2300
|
-
if (r.type === "promise" || r.type === "optional" || r.type === "nonoptional" || r.type === "nullable" || r.type === "readonly" || r.type === "default" || r.type === "prefault") return
|
|
2301
|
-
if (r.type === "intersection") return
|
|
2302
|
-
if (r.type === "record" || r.type === "map") return
|
|
2303
|
-
if (r.type === "pipe") return e._zod.traits.has("$ZodCodec") ? !0 :
|
|
2297
|
+
if (r.type === "array") return K(r.element, n);
|
|
2298
|
+
if (r.type === "set") return K(r.valueType, n);
|
|
2299
|
+
if (r.type === "lazy") return K(r.getter(), n);
|
|
2300
|
+
if (r.type === "promise" || r.type === "optional" || r.type === "nonoptional" || r.type === "nullable" || r.type === "readonly" || r.type === "default" || r.type === "prefault") return K(r.innerType, n);
|
|
2301
|
+
if (r.type === "intersection") return K(r.left, n) || K(r.right, n);
|
|
2302
|
+
if (r.type === "record" || r.type === "map") return K(r.keyType, n) || K(r.valueType, n);
|
|
2303
|
+
if (r.type === "pipe") return e._zod.traits.has("$ZodCodec") ? !0 : K(r.in, n) || K(r.out, n);
|
|
2304
2304
|
if (r.type === "object") {
|
|
2305
|
-
for (let e in r.shape) if (
|
|
2305
|
+
for (let e in r.shape) if (K(r.shape[e], n)) return !0;
|
|
2306
2306
|
return !1;
|
|
2307
2307
|
}
|
|
2308
2308
|
if (r.type === "union") {
|
|
2309
|
-
for (let e of r.options) if (
|
|
2309
|
+
for (let e of r.options) if (K(e, n)) return !0;
|
|
2310
2310
|
return !1;
|
|
2311
2311
|
}
|
|
2312
2312
|
if (r.type === "tuple") {
|
|
2313
|
-
for (let e of r.items) if (
|
|
2314
|
-
return !!(r.rest &&
|
|
2313
|
+
for (let e of r.items) if (K(e, n)) return !0;
|
|
2314
|
+
return !!(r.rest && K(r.rest, n));
|
|
2315
2315
|
}
|
|
2316
2316
|
return !1;
|
|
2317
2317
|
}
|
|
2318
|
-
var
|
|
2319
|
-
let r =
|
|
2318
|
+
var ri = (e, t = {}) => (n) => {
|
|
2319
|
+
let r = ei({
|
|
2320
2320
|
...n,
|
|
2321
2321
|
processors: t
|
|
2322
2322
|
});
|
|
2323
|
-
return
|
|
2324
|
-
},
|
|
2325
|
-
let { libraryOptions: i, target: a } = r ?? {}, o =
|
|
2323
|
+
return G(e, r), ti(r, e), ni(r, e);
|
|
2324
|
+
}, ii = (e, t, n = {}) => (r) => {
|
|
2325
|
+
let { libraryOptions: i, target: a } = r ?? {}, o = ei({
|
|
2326
2326
|
...i ?? {},
|
|
2327
2327
|
target: a,
|
|
2328
2328
|
io: t,
|
|
2329
2329
|
processors: n
|
|
2330
2330
|
});
|
|
2331
|
-
return
|
|
2332
|
-
},
|
|
2331
|
+
return G(e, o), ti(o, e), ni(o, e);
|
|
2332
|
+
}, ai = {
|
|
2333
2333
|
guid: "uuid",
|
|
2334
2334
|
url: "uri",
|
|
2335
2335
|
datetime: "date-time",
|
|
2336
2336
|
json_string: "json-string",
|
|
2337
2337
|
regex: ""
|
|
2338
|
-
},
|
|
2338
|
+
}, oi = (e, t, n, r) => {
|
|
2339
2339
|
let i = n;
|
|
2340
2340
|
i.type = "string";
|
|
2341
2341
|
let { minimum: a, maximum: o, format: s, patterns: c, contentEncoding: l } = e._zod.bag;
|
|
2342
|
-
if (typeof a == "number" && (i.minLength = a), typeof o == "number" && (i.maxLength = o), s && (i.format =
|
|
2342
|
+
if (typeof a == "number" && (i.minLength = a), typeof o == "number" && (i.maxLength = o), s && (i.format = ai[s] ?? s, i.format === "" && delete i.format, s === "time" && delete i.format), l && (i.contentEncoding = l), c && c.size > 0) {
|
|
2343
2343
|
let e = [...c];
|
|
2344
2344
|
e.length === 1 ? i.pattern = e[0].source : e.length > 1 && (i.allOf = [...e.map((e) => ({
|
|
2345
2345
|
...t.target === "draft-07" || t.target === "draft-04" || t.target === "openapi-3.0" ? { type: "string" } : {},
|
|
2346
2346
|
pattern: e.source
|
|
2347
2347
|
}))]);
|
|
2348
2348
|
}
|
|
2349
|
-
},
|
|
2349
|
+
}, si = (e, t, n, r) => {
|
|
2350
2350
|
let i = n, { minimum: a, maximum: o, format: s, multipleOf: c, exclusiveMaximum: l, exclusiveMinimum: u } = e._zod.bag;
|
|
2351
2351
|
typeof s == "string" && s.includes("int") ? i.type = "integer" : i.type = "number";
|
|
2352
2352
|
let d = typeof u == "number" && u >= (a ?? -Infinity), f = typeof l == "number" && l <= (o ?? Infinity), p = t.target === "draft-04" || t.target === "openapi-3.0";
|
|
2353
2353
|
d ? p ? (i.minimum = u, i.exclusiveMinimum = !0) : i.exclusiveMinimum = u : typeof a == "number" && (i.minimum = a), f ? p ? (i.maximum = l, i.exclusiveMaximum = !0) : i.exclusiveMaximum = l : typeof o == "number" && (i.maximum = o), typeof c == "number" && (i.multipleOf = c);
|
|
2354
|
-
}, si = (e, t, n, r) => {
|
|
2355
|
-
n.not = {};
|
|
2356
2354
|
}, ci = (e, t, n, r) => {
|
|
2357
|
-
|
|
2358
|
-
a.every((e) => typeof e == "number") && (n.type = "number"), a.every((e) => typeof e == "string") && (n.type = "string"), n.enum = a;
|
|
2355
|
+
n.not = {};
|
|
2359
2356
|
}, li = (e, t, n, r) => {
|
|
2360
|
-
|
|
2357
|
+
let i = e._zod.def, a = se(i.entries);
|
|
2358
|
+
a.every((e) => typeof e == "number") && (n.type = "number"), a.every((e) => typeof e == "string") && (n.type = "string"), n.enum = a;
|
|
2361
2359
|
}, ui = (e, t, n, r) => {
|
|
2362
|
-
if (t.unrepresentable === "throw") throw Error("
|
|
2360
|
+
if (t.unrepresentable === "throw") throw Error("Custom types cannot be represented in JSON Schema");
|
|
2363
2361
|
}, di = (e, t, n, r) => {
|
|
2362
|
+
if (t.unrepresentable === "throw") throw Error("Transforms cannot be represented in JSON Schema");
|
|
2363
|
+
}, fi = (e, t, n, r) => {
|
|
2364
2364
|
let i = n, a = e._zod.def, { minimum: o, maximum: s } = e._zod.bag;
|
|
2365
|
-
typeof o == "number" && (i.minItems = o), typeof s == "number" && (i.maxItems = s), i.type = "array", i.items =
|
|
2365
|
+
typeof o == "number" && (i.minItems = o), typeof s == "number" && (i.maxItems = s), i.type = "array", i.items = G(a.element, t, {
|
|
2366
2366
|
...r,
|
|
2367
2367
|
path: [...r.path, "items"]
|
|
2368
2368
|
});
|
|
2369
|
-
},
|
|
2369
|
+
}, pi = (e, t, n, r) => {
|
|
2370
2370
|
let i = n, a = e._zod.def;
|
|
2371
2371
|
i.type = "object", i.properties = {};
|
|
2372
2372
|
let o = a.shape;
|
|
2373
|
-
for (let e in o) i.properties[e] =
|
|
2373
|
+
for (let e in o) i.properties[e] = G(o[e], t, {
|
|
2374
2374
|
...r,
|
|
2375
2375
|
path: [
|
|
2376
2376
|
...r.path,
|
|
@@ -2382,12 +2382,12 @@ var ni = (e, t = {}) => (n) => {
|
|
|
2382
2382
|
let n = a.shape[e]._zod;
|
|
2383
2383
|
return t.io === "input" ? n.optin === void 0 : n.optout === void 0;
|
|
2384
2384
|
}));
|
|
2385
|
-
c.size > 0 && (i.required = Array.from(c)), a.catchall?._zod.def.type === "never" ? i.additionalProperties = !1 : a.catchall ? a.catchall && (i.additionalProperties =
|
|
2385
|
+
c.size > 0 && (i.required = Array.from(c)), a.catchall?._zod.def.type === "never" ? i.additionalProperties = !1 : a.catchall ? a.catchall && (i.additionalProperties = G(a.catchall, t, {
|
|
2386
2386
|
...r,
|
|
2387
2387
|
path: [...r.path, "additionalProperties"]
|
|
2388
2388
|
})) : t.io === "output" && (i.additionalProperties = !1);
|
|
2389
|
-
},
|
|
2390
|
-
let i = e._zod.def, a = i.inclusive === !1, o = i.options.map((e, n) =>
|
|
2389
|
+
}, mi = (e, t, n, r) => {
|
|
2390
|
+
let i = e._zod.def, a = i.inclusive === !1, o = i.options.map((e, n) => G(e, t, {
|
|
2391
2391
|
...r,
|
|
2392
2392
|
path: [
|
|
2393
2393
|
...r.path,
|
|
@@ -2396,15 +2396,15 @@ var ni = (e, t = {}) => (n) => {
|
|
|
2396
2396
|
]
|
|
2397
2397
|
}));
|
|
2398
2398
|
a ? n.oneOf = o : n.anyOf = o;
|
|
2399
|
-
},
|
|
2400
|
-
let i = e._zod.def, a =
|
|
2399
|
+
}, hi = (e, t, n, r) => {
|
|
2400
|
+
let i = e._zod.def, a = G(i.left, t, {
|
|
2401
2401
|
...r,
|
|
2402
2402
|
path: [
|
|
2403
2403
|
...r.path,
|
|
2404
2404
|
"allOf",
|
|
2405
2405
|
0
|
|
2406
2406
|
]
|
|
2407
|
-
}), o =
|
|
2407
|
+
}), o = G(i.right, t, {
|
|
2408
2408
|
...r,
|
|
2409
2409
|
path: [
|
|
2410
2410
|
...r.path,
|
|
@@ -2413,17 +2413,17 @@ var ni = (e, t = {}) => (n) => {
|
|
|
2413
2413
|
]
|
|
2414
2414
|
}), s = (e) => "allOf" in e && Object.keys(e).length === 1;
|
|
2415
2415
|
n.allOf = [...s(a) ? a.allOf : [a], ...s(o) ? o.allOf : [o]];
|
|
2416
|
-
},
|
|
2416
|
+
}, gi = (e, t, n, r) => {
|
|
2417
2417
|
let i = n, a = e._zod.def;
|
|
2418
2418
|
i.type = "array";
|
|
2419
|
-
let o = t.target === "draft-2020-12" ? "prefixItems" : "items", s = t.target === "draft-2020-12" || t.target === "openapi-3.0" ? "items" : "additionalItems", c = a.items.map((e, n) =>
|
|
2419
|
+
let o = t.target === "draft-2020-12" ? "prefixItems" : "items", s = t.target === "draft-2020-12" || t.target === "openapi-3.0" ? "items" : "additionalItems", c = a.items.map((e, n) => G(e, t, {
|
|
2420
2420
|
...r,
|
|
2421
2421
|
path: [
|
|
2422
2422
|
...r.path,
|
|
2423
2423
|
o,
|
|
2424
2424
|
n
|
|
2425
2425
|
]
|
|
2426
|
-
})), l = a.rest ?
|
|
2426
|
+
})), l = a.rest ? G(a.rest, t, {
|
|
2427
2427
|
...r,
|
|
2428
2428
|
path: [
|
|
2429
2429
|
...r.path,
|
|
@@ -2434,27 +2434,27 @@ var ni = (e, t = {}) => (n) => {
|
|
|
2434
2434
|
t.target === "draft-2020-12" ? (i.prefixItems = c, l && (i.items = l)) : t.target === "openapi-3.0" ? (i.items = { anyOf: c }, l && i.items.anyOf.push(l), i.minItems = c.length, l || (i.maxItems = c.length)) : (i.items = c, l && (i.additionalItems = l));
|
|
2435
2435
|
let { minimum: u, maximum: d } = e._zod.bag;
|
|
2436
2436
|
typeof u == "number" && (i.minItems = u), typeof d == "number" && (i.maxItems = d);
|
|
2437
|
-
}, gi = (e, t, n, r) => {
|
|
2438
|
-
let i = e._zod.def, a = W(i.innerType, t, r), o = t.seen.get(e);
|
|
2439
|
-
t.target === "openapi-3.0" ? (o.ref = i.innerType, n.nullable = !0) : n.anyOf = [a, { type: "null" }];
|
|
2440
2437
|
}, _i = (e, t, n, r) => {
|
|
2438
|
+
let i = e._zod.def, a = G(i.innerType, t, r), o = t.seen.get(e);
|
|
2439
|
+
t.target === "openapi-3.0" ? (o.ref = i.innerType, n.nullable = !0) : n.anyOf = [a, { type: "null" }];
|
|
2440
|
+
}, vi = (e, t, n, r) => {
|
|
2441
2441
|
let i = e._zod.def;
|
|
2442
|
-
|
|
2442
|
+
G(i.innerType, t, r);
|
|
2443
2443
|
let a = t.seen.get(e);
|
|
2444
2444
|
a.ref = i.innerType;
|
|
2445
|
-
},
|
|
2445
|
+
}, yi = (e, t, n, r) => {
|
|
2446
2446
|
let i = e._zod.def;
|
|
2447
|
-
|
|
2447
|
+
G(i.innerType, t, r);
|
|
2448
2448
|
let a = t.seen.get(e);
|
|
2449
2449
|
a.ref = i.innerType, n.default = JSON.parse(JSON.stringify(i.defaultValue));
|
|
2450
|
-
},
|
|
2450
|
+
}, bi = (e, t, n, r) => {
|
|
2451
2451
|
let i = e._zod.def;
|
|
2452
|
-
|
|
2452
|
+
G(i.innerType, t, r);
|
|
2453
2453
|
let a = t.seen.get(e);
|
|
2454
2454
|
a.ref = i.innerType, t.io === "input" && (n._prefault = JSON.parse(JSON.stringify(i.defaultValue)));
|
|
2455
|
-
},
|
|
2455
|
+
}, xi = (e, t, n, r) => {
|
|
2456
2456
|
let i = e._zod.def;
|
|
2457
|
-
|
|
2457
|
+
G(i.innerType, t, r);
|
|
2458
2458
|
let a = t.seen.get(e);
|
|
2459
2459
|
a.ref = i.innerType;
|
|
2460
2460
|
let o;
|
|
@@ -2464,63 +2464,63 @@ var ni = (e, t = {}) => (n) => {
|
|
|
2464
2464
|
throw Error("Dynamic catch values are not supported in JSON Schema");
|
|
2465
2465
|
}
|
|
2466
2466
|
n.default = o;
|
|
2467
|
-
},
|
|
2467
|
+
}, Si = (e, t, n, r) => {
|
|
2468
2468
|
let i = e._zod.def, a = i.in._zod.traits.has("$ZodTransform"), o = t.io === "input" ? a ? i.out : i.in : i.out;
|
|
2469
|
-
|
|
2469
|
+
G(o, t, r);
|
|
2470
2470
|
let s = t.seen.get(e);
|
|
2471
2471
|
s.ref = o;
|
|
2472
|
-
},
|
|
2472
|
+
}, Ci = (e, t, n, r) => {
|
|
2473
2473
|
let i = e._zod.def;
|
|
2474
|
-
|
|
2474
|
+
G(i.innerType, t, r);
|
|
2475
2475
|
let a = t.seen.get(e);
|
|
2476
2476
|
a.ref = i.innerType, n.readOnly = !0;
|
|
2477
|
-
},
|
|
2477
|
+
}, wi = (e, t, n, r) => {
|
|
2478
2478
|
let i = e._zod.def;
|
|
2479
|
-
|
|
2479
|
+
G(i.innerType, t, r);
|
|
2480
2480
|
let a = t.seen.get(e);
|
|
2481
2481
|
a.ref = i.innerType;
|
|
2482
|
-
},
|
|
2483
|
-
Yt.init(e, t), Y.init(e, t);
|
|
2484
|
-
});
|
|
2485
|
-
function Ti(e) {
|
|
2486
|
-
return /* @__PURE__ */ Sr(wi, e);
|
|
2487
|
-
}
|
|
2488
|
-
var Ei = /* @__PURE__ */ b("ZodISODate", (e, t) => {
|
|
2482
|
+
}, Ti = /* @__PURE__ */ v("ZodISODateTime", (e, t) => {
|
|
2489
2483
|
Xt.init(e, t), Y.init(e, t);
|
|
2490
2484
|
});
|
|
2491
|
-
function
|
|
2492
|
-
return /* @__PURE__ */ Cr(
|
|
2485
|
+
function Ei(e) {
|
|
2486
|
+
return /* @__PURE__ */ Cr(Ti, e);
|
|
2493
2487
|
}
|
|
2494
|
-
var
|
|
2488
|
+
var Di = /* @__PURE__ */ v("ZodISODate", (e, t) => {
|
|
2495
2489
|
Zt.init(e, t), Y.init(e, t);
|
|
2496
2490
|
});
|
|
2497
|
-
function
|
|
2498
|
-
return /* @__PURE__ */ wr(
|
|
2491
|
+
function Oi(e) {
|
|
2492
|
+
return /* @__PURE__ */ wr(Di, e);
|
|
2499
2493
|
}
|
|
2500
|
-
var
|
|
2494
|
+
var ki = /* @__PURE__ */ v("ZodISOTime", (e, t) => {
|
|
2501
2495
|
Qt.init(e, t), Y.init(e, t);
|
|
2502
2496
|
});
|
|
2503
|
-
function
|
|
2504
|
-
return /* @__PURE__ */ Tr(
|
|
2497
|
+
function Ai(e) {
|
|
2498
|
+
return /* @__PURE__ */ Tr(ki, e);
|
|
2505
2499
|
}
|
|
2506
|
-
var
|
|
2507
|
-
|
|
2508
|
-
|
|
2509
|
-
|
|
2500
|
+
var ji = /* @__PURE__ */ v("ZodISODuration", (e, t) => {
|
|
2501
|
+
$t.init(e, t), Y.init(e, t);
|
|
2502
|
+
});
|
|
2503
|
+
function Mi(e) {
|
|
2504
|
+
return /* @__PURE__ */ Er(ji, e);
|
|
2505
|
+
}
|
|
2506
|
+
var q = /* @__PURE__ */ v("ZodError", (e, t) => {
|
|
2507
|
+
Ee.init(e, t), e.name = "ZodError", Object.defineProperties(e, {
|
|
2508
|
+
format: { value: (t) => ke(e, t) },
|
|
2509
|
+
flatten: { value: (t) => Oe(e, t) },
|
|
2510
2510
|
addIssue: { value: (t) => {
|
|
2511
|
-
e.issues.push(t), e.message = JSON.stringify(e.issues,
|
|
2511
|
+
e.issues.push(t), e.message = JSON.stringify(e.issues, S, 2);
|
|
2512
2512
|
} },
|
|
2513
2513
|
addIssues: { value: (t) => {
|
|
2514
|
-
e.issues.push(...t), e.message = JSON.stringify(e.issues,
|
|
2514
|
+
e.issues.push(...t), e.message = JSON.stringify(e.issues, S, 2);
|
|
2515
2515
|
} },
|
|
2516
2516
|
isEmpty: { get() {
|
|
2517
2517
|
return e.issues.length === 0;
|
|
2518
2518
|
} }
|
|
2519
2519
|
});
|
|
2520
|
-
}, { Parent: Error }),
|
|
2521
|
-
function
|
|
2522
|
-
let r = Object.getPrototypeOf(e), i =
|
|
2523
|
-
if (i || (i = /* @__PURE__ */ new Set(),
|
|
2520
|
+
}, { Parent: Error }), Ni = /* @__PURE__ */ Ae(q), Pi = /* @__PURE__ */ je(q), Fi = /* @__PURE__ */ Me(q), Ii = /* @__PURE__ */ Pe(q), Li = /* @__PURE__ */ Ie(q), Ri = /* @__PURE__ */ Le(q), zi = /* @__PURE__ */ Re(q), Bi = /* @__PURE__ */ ze(q), Vi = /* @__PURE__ */ Be(q), Hi = /* @__PURE__ */ Ve(q), Ui = /* @__PURE__ */ He(q), Wi = /* @__PURE__ */ Ue(q), Gi = /* @__PURE__ */ new WeakMap();
|
|
2521
|
+
function Ki(e, t, n) {
|
|
2522
|
+
let r = Object.getPrototypeOf(e), i = Gi.get(r);
|
|
2523
|
+
if (i || (i = /* @__PURE__ */ new Set(), Gi.set(r, i)), !i.has(t)) {
|
|
2524
2524
|
i.add(t);
|
|
2525
2525
|
for (let e in n) {
|
|
2526
2526
|
let t = n[e];
|
|
@@ -2548,13 +2548,13 @@ function q(e, t, n) {
|
|
|
2548
2548
|
}
|
|
2549
2549
|
}
|
|
2550
2550
|
}
|
|
2551
|
-
var J = /* @__PURE__ */
|
|
2552
|
-
input:
|
|
2553
|
-
output:
|
|
2554
|
-
} }), e.toJSONSchema =
|
|
2551
|
+
var J = /* @__PURE__ */ v("ZodType", (e, t) => (H.init(e, t), Object.assign(e["~standard"], { jsonSchema: {
|
|
2552
|
+
input: ii(e, "input"),
|
|
2553
|
+
output: ii(e, "output")
|
|
2554
|
+
} }), e.toJSONSchema = ri(e, {}), e.def = t, e.type = t.type, Object.defineProperty(e, "_def", { value: t }), e.parse = (t, n) => Ni(e, t, n, { callee: e.parse }), e.safeParse = (t, n) => Fi(e, t, n), e.parseAsync = async (t, n) => Pi(e, t, n, { callee: e.parseAsync }), e.safeParseAsync = async (t, n) => Ii(e, t, n), e.spa = e.safeParseAsync, e.encode = (t, n) => Li(e, t, n), e.decode = (t, n) => Ri(e, t, n), e.encodeAsync = async (t, n) => zi(e, t, n), e.decodeAsync = async (t, n) => Bi(e, t, n), e.safeEncode = (t, n) => Vi(e, t, n), e.safeDecode = (t, n) => Hi(e, t, n), e.safeEncodeAsync = async (t, n) => Ui(e, t, n), e.safeDecodeAsync = async (t, n) => Wi(e, t, n), Ki(e, "ZodType", {
|
|
2555
2555
|
check(...e) {
|
|
2556
2556
|
let t = this.def;
|
|
2557
|
-
return this.clone(
|
|
2557
|
+
return this.clone(k(t, { checks: [...t.checks ?? [], ...e.map((e) => typeof e == "function" ? { _zod: {
|
|
2558
2558
|
check: e,
|
|
2559
2559
|
def: { check: "custom" },
|
|
2560
2560
|
onattach: []
|
|
@@ -2573,64 +2573,64 @@ var J = /* @__PURE__ */ b("ZodType", (e, t) => (V.init(e, t), Object.assign(e["~
|
|
|
2573
2573
|
return e.add(this, t), this;
|
|
2574
2574
|
},
|
|
2575
2575
|
refine(e, t) {
|
|
2576
|
-
return this.check(
|
|
2576
|
+
return this.check(no(e, t));
|
|
2577
2577
|
},
|
|
2578
2578
|
superRefine(e, t) {
|
|
2579
|
-
return this.check(
|
|
2579
|
+
return this.check(ro(e, t));
|
|
2580
2580
|
},
|
|
2581
2581
|
overwrite(e) {
|
|
2582
|
-
return this.check(/* @__PURE__ */
|
|
2582
|
+
return this.check(/* @__PURE__ */ W(e));
|
|
2583
2583
|
},
|
|
2584
2584
|
optional() {
|
|
2585
|
-
return
|
|
2585
|
+
return Ra(this);
|
|
2586
2586
|
},
|
|
2587
2587
|
exactOptional() {
|
|
2588
|
-
return
|
|
2588
|
+
return Ba(this);
|
|
2589
2589
|
},
|
|
2590
2590
|
nullable() {
|
|
2591
|
-
return
|
|
2591
|
+
return Ha(this);
|
|
2592
2592
|
},
|
|
2593
2593
|
nullish() {
|
|
2594
|
-
return
|
|
2594
|
+
return Ra(Ha(this));
|
|
2595
2595
|
},
|
|
2596
2596
|
nonoptional(e) {
|
|
2597
|
-
return
|
|
2597
|
+
return Ja(this, e);
|
|
2598
2598
|
},
|
|
2599
2599
|
array() {
|
|
2600
|
-
return
|
|
2600
|
+
return wa(this);
|
|
2601
2601
|
},
|
|
2602
2602
|
or(e) {
|
|
2603
|
-
return
|
|
2603
|
+
return Oa([this, e]);
|
|
2604
2604
|
},
|
|
2605
2605
|
and(e) {
|
|
2606
|
-
return
|
|
2606
|
+
return Aa(this, e);
|
|
2607
2607
|
},
|
|
2608
2608
|
transform(e) {
|
|
2609
|
-
return
|
|
2609
|
+
return Qa(this, Ia(e));
|
|
2610
2610
|
},
|
|
2611
2611
|
default(e) {
|
|
2612
|
-
return
|
|
2612
|
+
return Wa(this, e);
|
|
2613
2613
|
},
|
|
2614
2614
|
prefault(e) {
|
|
2615
|
-
return
|
|
2615
|
+
return Ka(this, e);
|
|
2616
2616
|
},
|
|
2617
2617
|
catch(e) {
|
|
2618
|
-
return
|
|
2618
|
+
return Xa(this, e);
|
|
2619
2619
|
},
|
|
2620
2620
|
pipe(e) {
|
|
2621
|
-
return
|
|
2621
|
+
return Qa(this, e);
|
|
2622
2622
|
},
|
|
2623
2623
|
readonly() {
|
|
2624
|
-
return
|
|
2624
|
+
return eo(this);
|
|
2625
2625
|
},
|
|
2626
2626
|
describe(e) {
|
|
2627
2627
|
let t = this.clone();
|
|
2628
|
-
return
|
|
2628
|
+
return $n.add(t, { description: e }), t;
|
|
2629
2629
|
},
|
|
2630
2630
|
meta(...e) {
|
|
2631
|
-
if (e.length === 0) return
|
|
2631
|
+
if (e.length === 0) return $n.get(this);
|
|
2632
2632
|
let t = this.clone();
|
|
2633
|
-
return
|
|
2633
|
+
return $n.add(t, e[0]), t;
|
|
2634
2634
|
},
|
|
2635
2635
|
isOptional() {
|
|
2636
2636
|
return this.safeParse(void 0).success;
|
|
@@ -2643,148 +2643,148 @@ var J = /* @__PURE__ */ b("ZodType", (e, t) => (V.init(e, t), Object.assign(e["~
|
|
|
2643
2643
|
}
|
|
2644
2644
|
}), Object.defineProperty(e, "description", {
|
|
2645
2645
|
get() {
|
|
2646
|
-
return
|
|
2646
|
+
return $n.get(e)?.description;
|
|
2647
2647
|
},
|
|
2648
2648
|
configurable: !0
|
|
2649
|
-
}), e)),
|
|
2650
|
-
|
|
2649
|
+
}), e)), qi = /* @__PURE__ */ v("_ZodString", (e, t) => {
|
|
2650
|
+
Rt.init(e, t), J.init(e, t), e._zod.processJSONSchema = (t, n, r) => oi(e, t, n, r);
|
|
2651
2651
|
let n = e._zod.bag;
|
|
2652
|
-
e.format = n.format ?? null, e.minLength = n.minimum ?? null, e.maxLength = n.maximum ?? null,
|
|
2652
|
+
e.format = n.format ?? null, e.minLength = n.minimum ?? null, e.maxLength = n.maximum ?? null, Ki(e, "_ZodString", {
|
|
2653
2653
|
regex(...e) {
|
|
2654
|
-
return this.check(/* @__PURE__ */
|
|
2654
|
+
return this.check(/* @__PURE__ */ zr(...e));
|
|
2655
2655
|
},
|
|
2656
2656
|
includes(...e) {
|
|
2657
|
-
return this.check(/* @__PURE__ */
|
|
2657
|
+
return this.check(/* @__PURE__ */ Hr(...e));
|
|
2658
2658
|
},
|
|
2659
2659
|
startsWith(...e) {
|
|
2660
|
-
return this.check(/* @__PURE__ */
|
|
2660
|
+
return this.check(/* @__PURE__ */ Ur(...e));
|
|
2661
2661
|
},
|
|
2662
2662
|
endsWith(...e) {
|
|
2663
|
-
return this.check(/* @__PURE__ */
|
|
2663
|
+
return this.check(/* @__PURE__ */ Wr(...e));
|
|
2664
2664
|
},
|
|
2665
2665
|
min(...e) {
|
|
2666
|
-
return this.check(/* @__PURE__ */
|
|
2666
|
+
return this.check(/* @__PURE__ */ Lr(...e));
|
|
2667
2667
|
},
|
|
2668
2668
|
max(...e) {
|
|
2669
|
-
return this.check(/* @__PURE__ */
|
|
2669
|
+
return this.check(/* @__PURE__ */ Ir(...e));
|
|
2670
2670
|
},
|
|
2671
2671
|
length(...e) {
|
|
2672
|
-
return this.check(/* @__PURE__ */
|
|
2672
|
+
return this.check(/* @__PURE__ */ Rr(...e));
|
|
2673
2673
|
},
|
|
2674
2674
|
nonempty(...e) {
|
|
2675
|
-
return this.check(/* @__PURE__ */
|
|
2675
|
+
return this.check(/* @__PURE__ */ Lr(1, ...e));
|
|
2676
2676
|
},
|
|
2677
2677
|
lowercase(e) {
|
|
2678
|
-
return this.check(/* @__PURE__ */
|
|
2678
|
+
return this.check(/* @__PURE__ */ Br(e));
|
|
2679
2679
|
},
|
|
2680
2680
|
uppercase(e) {
|
|
2681
|
-
return this.check(/* @__PURE__ */
|
|
2681
|
+
return this.check(/* @__PURE__ */ Vr(e));
|
|
2682
2682
|
},
|
|
2683
2683
|
trim() {
|
|
2684
|
-
return this.check(/* @__PURE__ */
|
|
2684
|
+
return this.check(/* @__PURE__ */ Kr());
|
|
2685
2685
|
},
|
|
2686
2686
|
normalize(...e) {
|
|
2687
|
-
return this.check(/* @__PURE__ */
|
|
2687
|
+
return this.check(/* @__PURE__ */ Gr(...e));
|
|
2688
2688
|
},
|
|
2689
2689
|
toLowerCase() {
|
|
2690
|
-
return this.check(/* @__PURE__ */
|
|
2690
|
+
return this.check(/* @__PURE__ */ qr());
|
|
2691
2691
|
},
|
|
2692
2692
|
toUpperCase() {
|
|
2693
|
-
return this.check(/* @__PURE__ */
|
|
2693
|
+
return this.check(/* @__PURE__ */ Jr());
|
|
2694
2694
|
},
|
|
2695
2695
|
slugify() {
|
|
2696
|
-
return this.check(/* @__PURE__ */
|
|
2696
|
+
return this.check(/* @__PURE__ */ Yr());
|
|
2697
2697
|
}
|
|
2698
2698
|
});
|
|
2699
|
-
}),
|
|
2700
|
-
|
|
2699
|
+
}), Ji = /* @__PURE__ */ v("ZodString", (e, t) => {
|
|
2700
|
+
Rt.init(e, t), qi.init(e, t), e.email = (t) => e.check(/* @__PURE__ */ tr(Xi, t)), e.url = (t) => e.check(/* @__PURE__ */ sr($i, t)), e.jwt = (t) => e.check(/* @__PURE__ */ Sr(ma, t)), e.emoji = (t) => e.check(/* @__PURE__ */ cr(ea, t)), e.guid = (t) => e.check(/* @__PURE__ */ nr(Zi, t)), e.uuid = (t) => e.check(/* @__PURE__ */ rr(Qi, t)), e.uuidv4 = (t) => e.check(/* @__PURE__ */ ir(Qi, t)), e.uuidv6 = (t) => e.check(/* @__PURE__ */ ar(Qi, t)), e.uuidv7 = (t) => e.check(/* @__PURE__ */ or(Qi, t)), e.nanoid = (t) => e.check(/* @__PURE__ */ lr(ta, t)), e.guid = (t) => e.check(/* @__PURE__ */ nr(Zi, t)), e.cuid = (t) => e.check(/* @__PURE__ */ ur(na, t)), e.cuid2 = (t) => e.check(/* @__PURE__ */ dr(ra, t)), e.ulid = (t) => e.check(/* @__PURE__ */ fr(ia, t)), e.base64 = (t) => e.check(/* @__PURE__ */ yr(da, t)), e.base64url = (t) => e.check(/* @__PURE__ */ br(fa, t)), e.xid = (t) => e.check(/* @__PURE__ */ pr(aa, t)), e.ksuid = (t) => e.check(/* @__PURE__ */ mr(oa, t)), e.ipv4 = (t) => e.check(/* @__PURE__ */ hr(sa, t)), e.ipv6 = (t) => e.check(/* @__PURE__ */ gr(ca, t)), e.cidrv4 = (t) => e.check(/* @__PURE__ */ _r(la, t)), e.cidrv6 = (t) => e.check(/* @__PURE__ */ vr(ua, t)), e.e164 = (t) => e.check(/* @__PURE__ */ xr(pa, t)), e.datetime = (t) => e.check(Ei(t)), e.date = (t) => e.check(Oi(t)), e.time = (t) => e.check(Ai(t)), e.duration = (t) => e.check(Mi(t));
|
|
2701
2701
|
});
|
|
2702
|
-
function
|
|
2703
|
-
return /* @__PURE__ */
|
|
2702
|
+
function Yi(e) {
|
|
2703
|
+
return /* @__PURE__ */ er(Ji, e);
|
|
2704
2704
|
}
|
|
2705
|
-
var Y = /* @__PURE__ */
|
|
2706
|
-
|
|
2707
|
-
}),
|
|
2708
|
-
Bt.init(e, t), Y.init(e, t);
|
|
2709
|
-
}), Yi = /* @__PURE__ */ b("ZodGUID", (e, t) => {
|
|
2710
|
-
Rt.init(e, t), Y.init(e, t);
|
|
2711
|
-
}), Xi = /* @__PURE__ */ b("ZodUUID", (e, t) => {
|
|
2712
|
-
zt.init(e, t), Y.init(e, t);
|
|
2713
|
-
}), Zi = /* @__PURE__ */ b("ZodURL", (e, t) => {
|
|
2705
|
+
var Y = /* @__PURE__ */ v("ZodStringFormat", (e, t) => {
|
|
2706
|
+
U.init(e, t), qi.init(e, t);
|
|
2707
|
+
}), Xi = /* @__PURE__ */ v("ZodEmail", (e, t) => {
|
|
2714
2708
|
Vt.init(e, t), Y.init(e, t);
|
|
2715
|
-
}),
|
|
2709
|
+
}), Zi = /* @__PURE__ */ v("ZodGUID", (e, t) => {
|
|
2710
|
+
zt.init(e, t), Y.init(e, t);
|
|
2711
|
+
}), Qi = /* @__PURE__ */ v("ZodUUID", (e, t) => {
|
|
2712
|
+
Bt.init(e, t), Y.init(e, t);
|
|
2713
|
+
}), $i = /* @__PURE__ */ v("ZodURL", (e, t) => {
|
|
2716
2714
|
Ht.init(e, t), Y.init(e, t);
|
|
2717
|
-
}),
|
|
2715
|
+
}), ea = /* @__PURE__ */ v("ZodEmoji", (e, t) => {
|
|
2718
2716
|
Ut.init(e, t), Y.init(e, t);
|
|
2719
|
-
}),
|
|
2717
|
+
}), ta = /* @__PURE__ */ v("ZodNanoID", (e, t) => {
|
|
2720
2718
|
Wt.init(e, t), Y.init(e, t);
|
|
2721
|
-
}),
|
|
2719
|
+
}), na = /* @__PURE__ */ v("ZodCUID", (e, t) => {
|
|
2722
2720
|
Gt.init(e, t), Y.init(e, t);
|
|
2723
|
-
}),
|
|
2721
|
+
}), ra = /* @__PURE__ */ v("ZodCUID2", (e, t) => {
|
|
2724
2722
|
Kt.init(e, t), Y.init(e, t);
|
|
2725
|
-
}),
|
|
2723
|
+
}), ia = /* @__PURE__ */ v("ZodULID", (e, t) => {
|
|
2726
2724
|
qt.init(e, t), Y.init(e, t);
|
|
2727
|
-
}),
|
|
2725
|
+
}), aa = /* @__PURE__ */ v("ZodXID", (e, t) => {
|
|
2728
2726
|
Jt.init(e, t), Y.init(e, t);
|
|
2729
|
-
}),
|
|
2730
|
-
|
|
2731
|
-
}),
|
|
2727
|
+
}), oa = /* @__PURE__ */ v("ZodKSUID", (e, t) => {
|
|
2728
|
+
Yt.init(e, t), Y.init(e, t);
|
|
2729
|
+
}), sa = /* @__PURE__ */ v("ZodIPv4", (e, t) => {
|
|
2732
2730
|
en.init(e, t), Y.init(e, t);
|
|
2733
|
-
}),
|
|
2731
|
+
}), ca = /* @__PURE__ */ v("ZodIPv6", (e, t) => {
|
|
2734
2732
|
tn.init(e, t), Y.init(e, t);
|
|
2735
|
-
}),
|
|
2733
|
+
}), la = /* @__PURE__ */ v("ZodCIDRv4", (e, t) => {
|
|
2736
2734
|
nn.init(e, t), Y.init(e, t);
|
|
2737
|
-
}),
|
|
2738
|
-
|
|
2739
|
-
}),
|
|
2740
|
-
|
|
2741
|
-
}),
|
|
2735
|
+
}), ua = /* @__PURE__ */ v("ZodCIDRv6", (e, t) => {
|
|
2736
|
+
rn.init(e, t), Y.init(e, t);
|
|
2737
|
+
}), da = /* @__PURE__ */ v("ZodBase64", (e, t) => {
|
|
2738
|
+
on.init(e, t), Y.init(e, t);
|
|
2739
|
+
}), fa = /* @__PURE__ */ v("ZodBase64URL", (e, t) => {
|
|
2742
2740
|
cn.init(e, t), Y.init(e, t);
|
|
2743
|
-
}),
|
|
2744
|
-
|
|
2745
|
-
}),
|
|
2746
|
-
dn.init(e, t),
|
|
2741
|
+
}), pa = /* @__PURE__ */ v("ZodE164", (e, t) => {
|
|
2742
|
+
ln.init(e, t), Y.init(e, t);
|
|
2743
|
+
}), ma = /* @__PURE__ */ v("ZodJWT", (e, t) => {
|
|
2744
|
+
dn.init(e, t), Y.init(e, t);
|
|
2745
|
+
}), ha = /* @__PURE__ */ v("ZodNumber", (e, t) => {
|
|
2746
|
+
fn.init(e, t), J.init(e, t), e._zod.processJSONSchema = (t, n, r) => si(e, t, n, r), Ki(e, "ZodNumber", {
|
|
2747
2747
|
gt(e, t) {
|
|
2748
|
-
return this.check(/* @__PURE__ */
|
|
2748
|
+
return this.check(/* @__PURE__ */ Nr(e, t));
|
|
2749
2749
|
},
|
|
2750
2750
|
gte(e, t) {
|
|
2751
|
-
return this.check(/* @__PURE__ */
|
|
2751
|
+
return this.check(/* @__PURE__ */ Pr(e, t));
|
|
2752
2752
|
},
|
|
2753
2753
|
min(e, t) {
|
|
2754
|
-
return this.check(/* @__PURE__ */
|
|
2754
|
+
return this.check(/* @__PURE__ */ Pr(e, t));
|
|
2755
2755
|
},
|
|
2756
2756
|
lt(e, t) {
|
|
2757
|
-
return this.check(/* @__PURE__ */
|
|
2757
|
+
return this.check(/* @__PURE__ */ jr(e, t));
|
|
2758
2758
|
},
|
|
2759
2759
|
lte(e, t) {
|
|
2760
|
-
return this.check(/* @__PURE__ */
|
|
2760
|
+
return this.check(/* @__PURE__ */ Mr(e, t));
|
|
2761
2761
|
},
|
|
2762
2762
|
max(e, t) {
|
|
2763
|
-
return this.check(/* @__PURE__ */
|
|
2763
|
+
return this.check(/* @__PURE__ */ Mr(e, t));
|
|
2764
2764
|
},
|
|
2765
2765
|
int(e) {
|
|
2766
|
-
return this.check(
|
|
2766
|
+
return this.check(va(e));
|
|
2767
2767
|
},
|
|
2768
2768
|
safe(e) {
|
|
2769
|
-
return this.check(
|
|
2769
|
+
return this.check(va(e));
|
|
2770
2770
|
},
|
|
2771
2771
|
positive(e) {
|
|
2772
|
-
return this.check(/* @__PURE__ */
|
|
2772
|
+
return this.check(/* @__PURE__ */ Nr(0, e));
|
|
2773
2773
|
},
|
|
2774
2774
|
nonnegative(e) {
|
|
2775
|
-
return this.check(/* @__PURE__ */
|
|
2775
|
+
return this.check(/* @__PURE__ */ Pr(0, e));
|
|
2776
2776
|
},
|
|
2777
2777
|
negative(e) {
|
|
2778
|
-
return this.check(/* @__PURE__ */
|
|
2778
|
+
return this.check(/* @__PURE__ */ jr(0, e));
|
|
2779
2779
|
},
|
|
2780
2780
|
nonpositive(e) {
|
|
2781
|
-
return this.check(/* @__PURE__ */
|
|
2781
|
+
return this.check(/* @__PURE__ */ Mr(0, e));
|
|
2782
2782
|
},
|
|
2783
2783
|
multipleOf(e, t) {
|
|
2784
|
-
return this.check(/* @__PURE__ */
|
|
2784
|
+
return this.check(/* @__PURE__ */ Fr(e, t));
|
|
2785
2785
|
},
|
|
2786
2786
|
step(e, t) {
|
|
2787
|
-
return this.check(/* @__PURE__ */
|
|
2787
|
+
return this.check(/* @__PURE__ */ Fr(e, t));
|
|
2788
2788
|
},
|
|
2789
2789
|
finite() {
|
|
2790
2790
|
return this;
|
|
@@ -2793,53 +2793,53 @@ var Y = /* @__PURE__ */ b("ZodStringFormat", (e, t) => {
|
|
|
2793
2793
|
let n = e._zod.bag;
|
|
2794
2794
|
e.minValue = Math.max(n.minimum ?? -Infinity, n.exclusiveMinimum ?? -Infinity) ?? null, e.maxValue = Math.min(n.maximum ?? Infinity, n.exclusiveMaximum ?? Infinity) ?? null, e.isInt = (n.format ?? "").includes("int") || Number.isSafeInteger(n.multipleOf ?? .5), e.isFinite = !0, e.format = n.format ?? null;
|
|
2795
2795
|
});
|
|
2796
|
-
function ma(e) {
|
|
2797
|
-
return /* @__PURE__ */ Er(pa, e);
|
|
2798
|
-
}
|
|
2799
|
-
var ha = /* @__PURE__ */ b("ZodNumberFormat", (e, t) => {
|
|
2800
|
-
fn.init(e, t), pa.init(e, t);
|
|
2801
|
-
});
|
|
2802
2796
|
function ga(e) {
|
|
2803
2797
|
return /* @__PURE__ */ Dr(ha, e);
|
|
2804
2798
|
}
|
|
2805
|
-
var _a = /* @__PURE__ */
|
|
2806
|
-
pn.init(e, t),
|
|
2799
|
+
var _a = /* @__PURE__ */ v("ZodNumberFormat", (e, t) => {
|
|
2800
|
+
pn.init(e, t), ha.init(e, t);
|
|
2807
2801
|
});
|
|
2808
|
-
function va() {
|
|
2809
|
-
return /* @__PURE__ */ Or(_a);
|
|
2802
|
+
function va(e) {
|
|
2803
|
+
return /* @__PURE__ */ Or(_a, e);
|
|
2810
2804
|
}
|
|
2811
|
-
var ya = /* @__PURE__ */
|
|
2812
|
-
mn.init(e, t), J.init(e, t), e._zod.processJSONSchema = (t, n
|
|
2805
|
+
var ya = /* @__PURE__ */ v("ZodUnknown", (e, t) => {
|
|
2806
|
+
mn.init(e, t), J.init(e, t), e._zod.processJSONSchema = (e, t, n) => void 0;
|
|
2813
2807
|
});
|
|
2814
|
-
function ba(
|
|
2815
|
-
return /* @__PURE__ */ kr(ya
|
|
2808
|
+
function ba() {
|
|
2809
|
+
return /* @__PURE__ */ kr(ya);
|
|
2816
2810
|
}
|
|
2817
|
-
var xa = /* @__PURE__ */
|
|
2818
|
-
|
|
2811
|
+
var xa = /* @__PURE__ */ v("ZodNever", (e, t) => {
|
|
2812
|
+
hn.init(e, t), J.init(e, t), e._zod.processJSONSchema = (t, n, r) => ci(e, t, n, r);
|
|
2813
|
+
});
|
|
2814
|
+
function Sa(e) {
|
|
2815
|
+
return /* @__PURE__ */ Ar(xa, e);
|
|
2816
|
+
}
|
|
2817
|
+
var Ca = /* @__PURE__ */ v("ZodArray", (e, t) => {
|
|
2818
|
+
_n.init(e, t), J.init(e, t), e._zod.processJSONSchema = (t, n, r) => fi(e, t, n, r), e.element = t.element, Ki(e, "ZodArray", {
|
|
2819
2819
|
min(e, t) {
|
|
2820
|
-
return this.check(/* @__PURE__ */
|
|
2820
|
+
return this.check(/* @__PURE__ */ Lr(e, t));
|
|
2821
2821
|
},
|
|
2822
2822
|
nonempty(e) {
|
|
2823
|
-
return this.check(/* @__PURE__ */
|
|
2823
|
+
return this.check(/* @__PURE__ */ Lr(1, e));
|
|
2824
2824
|
},
|
|
2825
2825
|
max(e, t) {
|
|
2826
|
-
return this.check(/* @__PURE__ */
|
|
2826
|
+
return this.check(/* @__PURE__ */ Ir(e, t));
|
|
2827
2827
|
},
|
|
2828
2828
|
length(e, t) {
|
|
2829
|
-
return this.check(/* @__PURE__ */
|
|
2829
|
+
return this.check(/* @__PURE__ */ Rr(e, t));
|
|
2830
2830
|
},
|
|
2831
2831
|
unwrap() {
|
|
2832
2832
|
return this.element;
|
|
2833
2833
|
}
|
|
2834
2834
|
});
|
|
2835
2835
|
});
|
|
2836
|
-
function
|
|
2837
|
-
return /* @__PURE__ */
|
|
2836
|
+
function wa(e, t) {
|
|
2837
|
+
return /* @__PURE__ */ Xr(Ca, e, t);
|
|
2838
2838
|
}
|
|
2839
|
-
var
|
|
2840
|
-
|
|
2839
|
+
var Ta = /* @__PURE__ */ v("ZodObject", (e, t) => {
|
|
2840
|
+
Sn.init(e, t), J.init(e, t), e._zod.processJSONSchema = (t, n, r) => pi(e, t, n, r), D(e, "shape", () => t.shape), Ki(e, "ZodObject", {
|
|
2841
2841
|
keyof() {
|
|
2842
|
-
return
|
|
2842
|
+
return Pa(Object.keys(this._zod.def.shape));
|
|
2843
2843
|
},
|
|
2844
2844
|
catchall(e) {
|
|
2845
2845
|
return this.clone({
|
|
@@ -2850,19 +2850,19 @@ var Ca = /* @__PURE__ */ b("ZodObject", (e, t) => {
|
|
|
2850
2850
|
passthrough() {
|
|
2851
2851
|
return this.clone({
|
|
2852
2852
|
...this._zod.def,
|
|
2853
|
-
catchall:
|
|
2853
|
+
catchall: ba()
|
|
2854
2854
|
});
|
|
2855
2855
|
},
|
|
2856
2856
|
loose() {
|
|
2857
2857
|
return this.clone({
|
|
2858
2858
|
...this._zod.def,
|
|
2859
|
-
catchall:
|
|
2859
|
+
catchall: ba()
|
|
2860
2860
|
});
|
|
2861
2861
|
},
|
|
2862
2862
|
strict() {
|
|
2863
2863
|
return this.clone({
|
|
2864
2864
|
...this._zod.def,
|
|
2865
|
-
catchall:
|
|
2865
|
+
catchall: Sa()
|
|
2866
2866
|
});
|
|
2867
2867
|
},
|
|
2868
2868
|
strip() {
|
|
@@ -2872,78 +2872,78 @@ var Ca = /* @__PURE__ */ b("ZodObject", (e, t) => {
|
|
|
2872
2872
|
});
|
|
2873
2873
|
},
|
|
2874
2874
|
extend(e) {
|
|
2875
|
-
return
|
|
2875
|
+
return he(this, e);
|
|
2876
2876
|
},
|
|
2877
2877
|
safeExtend(e) {
|
|
2878
|
-
return
|
|
2878
|
+
return ge(this, e);
|
|
2879
2879
|
},
|
|
2880
2880
|
merge(e) {
|
|
2881
|
-
return
|
|
2881
|
+
return _e(this, e);
|
|
2882
2882
|
},
|
|
2883
2883
|
pick(e) {
|
|
2884
|
-
return
|
|
2884
|
+
return R(this, e);
|
|
2885
2885
|
},
|
|
2886
2886
|
omit(e) {
|
|
2887
|
-
return
|
|
2887
|
+
return me(this, e);
|
|
2888
2888
|
},
|
|
2889
2889
|
partial(...e) {
|
|
2890
|
-
return
|
|
2890
|
+
return ve(La, this, e[0]);
|
|
2891
2891
|
},
|
|
2892
2892
|
required(...e) {
|
|
2893
|
-
return
|
|
2893
|
+
return ye(qa, this, e[0]);
|
|
2894
2894
|
}
|
|
2895
2895
|
});
|
|
2896
2896
|
});
|
|
2897
|
-
function
|
|
2898
|
-
return new
|
|
2897
|
+
function Ea(e, t) {
|
|
2898
|
+
return new Ta({
|
|
2899
2899
|
type: "object",
|
|
2900
2900
|
shape: e ?? {},
|
|
2901
2901
|
...L(t)
|
|
2902
2902
|
});
|
|
2903
2903
|
}
|
|
2904
|
-
var
|
|
2905
|
-
|
|
2904
|
+
var Da = /* @__PURE__ */ v("ZodUnion", (e, t) => {
|
|
2905
|
+
wn.init(e, t), J.init(e, t), e._zod.processJSONSchema = (t, n, r) => mi(e, t, n, r), e.options = t.options;
|
|
2906
2906
|
});
|
|
2907
|
-
function
|
|
2908
|
-
return new
|
|
2907
|
+
function Oa(e, t) {
|
|
2908
|
+
return new Da({
|
|
2909
2909
|
type: "union",
|
|
2910
2910
|
options: e,
|
|
2911
2911
|
...L(t)
|
|
2912
2912
|
});
|
|
2913
2913
|
}
|
|
2914
|
-
var
|
|
2915
|
-
|
|
2914
|
+
var ka = /* @__PURE__ */ v("ZodIntersection", (e, t) => {
|
|
2915
|
+
Tn.init(e, t), J.init(e, t), e._zod.processJSONSchema = (t, n, r) => hi(e, t, n, r);
|
|
2916
2916
|
});
|
|
2917
|
-
function
|
|
2918
|
-
return new
|
|
2917
|
+
function Aa(e, t) {
|
|
2918
|
+
return new ka({
|
|
2919
2919
|
type: "intersection",
|
|
2920
2920
|
left: e,
|
|
2921
2921
|
right: t
|
|
2922
2922
|
});
|
|
2923
2923
|
}
|
|
2924
|
-
var
|
|
2925
|
-
|
|
2924
|
+
var ja = /* @__PURE__ */ v("ZodTuple", (e, t) => {
|
|
2925
|
+
On.init(e, t), J.init(e, t), e._zod.processJSONSchema = (t, n, r) => gi(e, t, n, r), e.rest = (t) => e.clone({
|
|
2926
2926
|
...e._zod.def,
|
|
2927
2927
|
rest: t
|
|
2928
2928
|
});
|
|
2929
2929
|
});
|
|
2930
|
-
function
|
|
2931
|
-
let r = t instanceof
|
|
2932
|
-
return new
|
|
2930
|
+
function Ma(e, t, n) {
|
|
2931
|
+
let r = t instanceof H;
|
|
2932
|
+
return new ja({
|
|
2933
2933
|
type: "tuple",
|
|
2934
2934
|
items: e,
|
|
2935
2935
|
rest: r ? t : null,
|
|
2936
2936
|
...L(r ? n : t)
|
|
2937
2937
|
});
|
|
2938
2938
|
}
|
|
2939
|
-
var
|
|
2940
|
-
|
|
2939
|
+
var Na = /* @__PURE__ */ v("ZodEnum", (e, t) => {
|
|
2940
|
+
Mn.init(e, t), J.init(e, t), e._zod.processJSONSchema = (t, n, r) => li(e, t, n, r), e.enum = t.entries, e.options = Object.values(t.entries);
|
|
2941
2941
|
let n = new Set(Object.keys(t.entries));
|
|
2942
2942
|
e.extract = (e, r) => {
|
|
2943
2943
|
let i = {};
|
|
2944
2944
|
for (let r of e) if (n.has(r)) i[r] = t.entries[r];
|
|
2945
2945
|
else throw Error(`Key ${r} not found in enum`);
|
|
2946
|
-
return new
|
|
2946
|
+
return new Na({
|
|
2947
2947
|
...t,
|
|
2948
2948
|
checks: [],
|
|
2949
2949
|
...L(r),
|
|
@@ -2953,7 +2953,7 @@ var ja = /* @__PURE__ */ b("ZodEnum", (e, t) => {
|
|
|
2953
2953
|
let i = { ...t.entries };
|
|
2954
2954
|
for (let t of e) if (n.has(t)) delete i[t];
|
|
2955
2955
|
else throw Error(`Key ${t} not found in enum`);
|
|
2956
|
-
return new
|
|
2956
|
+
return new Na({
|
|
2957
2957
|
...t,
|
|
2958
2958
|
checks: [],
|
|
2959
2959
|
...L(r),
|
|
@@ -2961,138 +2961,138 @@ var ja = /* @__PURE__ */ b("ZodEnum", (e, t) => {
|
|
|
2961
2961
|
});
|
|
2962
2962
|
};
|
|
2963
2963
|
});
|
|
2964
|
-
function
|
|
2965
|
-
return new
|
|
2964
|
+
function Pa(e, t) {
|
|
2965
|
+
return new Na({
|
|
2966
2966
|
type: "enum",
|
|
2967
2967
|
entries: Array.isArray(e) ? Object.fromEntries(e.map((e) => [e, e])) : e,
|
|
2968
2968
|
...L(t)
|
|
2969
2969
|
});
|
|
2970
2970
|
}
|
|
2971
|
-
var
|
|
2972
|
-
|
|
2973
|
-
if (r.direction === "backward") throw new
|
|
2971
|
+
var Fa = /* @__PURE__ */ v("ZodTransform", (e, t) => {
|
|
2972
|
+
Nn.init(e, t), J.init(e, t), e._zod.processJSONSchema = (t, n, r) => di(e, t, n, r), e._zod.parse = (n, r) => {
|
|
2973
|
+
if (r.direction === "backward") throw new oe(e.constructor.name);
|
|
2974
2974
|
n.addIssue = (r) => {
|
|
2975
|
-
if (typeof r == "string") n.issues.push(
|
|
2975
|
+
if (typeof r == "string") n.issues.push(we(r, n.value, t));
|
|
2976
2976
|
else {
|
|
2977
2977
|
let t = r;
|
|
2978
|
-
t.fatal && (t.continue = !1), t.code ??= "custom", t.input ??= n.value, t.inst ??= e, n.issues.push(
|
|
2978
|
+
t.fatal && (t.continue = !1), t.code ??= "custom", t.input ??= n.value, t.inst ??= e, n.issues.push(we(t));
|
|
2979
2979
|
}
|
|
2980
2980
|
};
|
|
2981
2981
|
let i = t.transform(n.value, n);
|
|
2982
2982
|
return i instanceof Promise ? i.then((e) => (n.value = e, n.fallback = !0, n)) : (n.value = i, n.fallback = !0, n);
|
|
2983
2983
|
};
|
|
2984
2984
|
});
|
|
2985
|
-
function
|
|
2986
|
-
return new
|
|
2985
|
+
function Ia(e) {
|
|
2986
|
+
return new Fa({
|
|
2987
2987
|
type: "transform",
|
|
2988
2988
|
transform: e
|
|
2989
2989
|
});
|
|
2990
2990
|
}
|
|
2991
|
-
var
|
|
2992
|
-
|
|
2991
|
+
var La = /* @__PURE__ */ v("ZodOptional", (e, t) => {
|
|
2992
|
+
Fn.init(e, t), J.init(e, t), e._zod.processJSONSchema = (t, n, r) => wi(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
|
|
2993
2993
|
});
|
|
2994
|
-
function
|
|
2995
|
-
return new
|
|
2994
|
+
function Ra(e) {
|
|
2995
|
+
return new La({
|
|
2996
2996
|
type: "optional",
|
|
2997
2997
|
innerType: e
|
|
2998
2998
|
});
|
|
2999
2999
|
}
|
|
3000
|
-
var
|
|
3001
|
-
|
|
3000
|
+
var za = /* @__PURE__ */ v("ZodExactOptional", (e, t) => {
|
|
3001
|
+
In.init(e, t), J.init(e, t), e._zod.processJSONSchema = (t, n, r) => wi(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
|
|
3002
3002
|
});
|
|
3003
|
-
function
|
|
3004
|
-
return new
|
|
3003
|
+
function Ba(e) {
|
|
3004
|
+
return new za({
|
|
3005
3005
|
type: "optional",
|
|
3006
3006
|
innerType: e
|
|
3007
3007
|
});
|
|
3008
3008
|
}
|
|
3009
|
-
var
|
|
3010
|
-
|
|
3009
|
+
var Va = /* @__PURE__ */ v("ZodNullable", (e, t) => {
|
|
3010
|
+
Ln.init(e, t), J.init(e, t), e._zod.processJSONSchema = (t, n, r) => _i(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
|
|
3011
3011
|
});
|
|
3012
|
-
function
|
|
3013
|
-
return new
|
|
3012
|
+
function Ha(e) {
|
|
3013
|
+
return new Va({
|
|
3014
3014
|
type: "nullable",
|
|
3015
3015
|
innerType: e
|
|
3016
3016
|
});
|
|
3017
3017
|
}
|
|
3018
|
-
var
|
|
3019
|
-
|
|
3018
|
+
var Ua = /* @__PURE__ */ v("ZodDefault", (e, t) => {
|
|
3019
|
+
Rn.init(e, t), J.init(e, t), e._zod.processJSONSchema = (t, n, r) => yi(e, t, n, r), e.unwrap = () => e._zod.def.innerType, e.removeDefault = e.unwrap;
|
|
3020
3020
|
});
|
|
3021
|
-
function
|
|
3022
|
-
return new
|
|
3021
|
+
function Wa(e, t) {
|
|
3022
|
+
return new Ua({
|
|
3023
3023
|
type: "default",
|
|
3024
3024
|
innerType: e,
|
|
3025
3025
|
get defaultValue() {
|
|
3026
|
-
return typeof t == "function" ? t() :
|
|
3026
|
+
return typeof t == "function" ? t() : N(t);
|
|
3027
3027
|
}
|
|
3028
3028
|
});
|
|
3029
3029
|
}
|
|
3030
|
-
var
|
|
3031
|
-
|
|
3030
|
+
var Ga = /* @__PURE__ */ v("ZodPrefault", (e, t) => {
|
|
3031
|
+
Bn.init(e, t), J.init(e, t), e._zod.processJSONSchema = (t, n, r) => bi(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
|
|
3032
3032
|
});
|
|
3033
|
-
function
|
|
3034
|
-
return new
|
|
3033
|
+
function Ka(e, t) {
|
|
3034
|
+
return new Ga({
|
|
3035
3035
|
type: "prefault",
|
|
3036
3036
|
innerType: e,
|
|
3037
3037
|
get defaultValue() {
|
|
3038
|
-
return typeof t == "function" ? t() :
|
|
3038
|
+
return typeof t == "function" ? t() : N(t);
|
|
3039
3039
|
}
|
|
3040
3040
|
});
|
|
3041
3041
|
}
|
|
3042
|
-
var
|
|
3043
|
-
|
|
3042
|
+
var qa = /* @__PURE__ */ v("ZodNonOptional", (e, t) => {
|
|
3043
|
+
Vn.init(e, t), J.init(e, t), e._zod.processJSONSchema = (t, n, r) => vi(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
|
|
3044
3044
|
});
|
|
3045
|
-
function
|
|
3046
|
-
return new
|
|
3045
|
+
function Ja(e, t) {
|
|
3046
|
+
return new qa({
|
|
3047
3047
|
type: "nonoptional",
|
|
3048
3048
|
innerType: e,
|
|
3049
3049
|
...L(t)
|
|
3050
3050
|
});
|
|
3051
3051
|
}
|
|
3052
|
-
var
|
|
3053
|
-
|
|
3052
|
+
var Ya = /* @__PURE__ */ v("ZodCatch", (e, t) => {
|
|
3053
|
+
Un.init(e, t), J.init(e, t), e._zod.processJSONSchema = (t, n, r) => xi(e, t, n, r), e.unwrap = () => e._zod.def.innerType, e.removeCatch = e.unwrap;
|
|
3054
3054
|
});
|
|
3055
|
-
function
|
|
3056
|
-
return new
|
|
3055
|
+
function Xa(e, t) {
|
|
3056
|
+
return new Ya({
|
|
3057
3057
|
type: "catch",
|
|
3058
3058
|
innerType: e,
|
|
3059
3059
|
catchValue: typeof t == "function" ? t : () => t
|
|
3060
3060
|
});
|
|
3061
3061
|
}
|
|
3062
|
-
var
|
|
3063
|
-
|
|
3062
|
+
var Za = /* @__PURE__ */ v("ZodPipe", (e, t) => {
|
|
3063
|
+
Wn.init(e, t), J.init(e, t), e._zod.processJSONSchema = (t, n, r) => Si(e, t, n, r), e.in = t.in, e.out = t.out;
|
|
3064
3064
|
});
|
|
3065
|
-
function
|
|
3066
|
-
return new
|
|
3065
|
+
function Qa(e, t) {
|
|
3066
|
+
return new Za({
|
|
3067
3067
|
type: "pipe",
|
|
3068
3068
|
in: e,
|
|
3069
3069
|
out: t
|
|
3070
3070
|
});
|
|
3071
3071
|
}
|
|
3072
|
-
var
|
|
3073
|
-
|
|
3072
|
+
var $a = /* @__PURE__ */ v("ZodReadonly", (e, t) => {
|
|
3073
|
+
Kn.init(e, t), J.init(e, t), e._zod.processJSONSchema = (t, n, r) => Ci(e, t, n, r), e.unwrap = () => e._zod.def.innerType;
|
|
3074
3074
|
});
|
|
3075
|
-
function
|
|
3076
|
-
return new
|
|
3075
|
+
function eo(e) {
|
|
3076
|
+
return new $a({
|
|
3077
3077
|
type: "readonly",
|
|
3078
3078
|
innerType: e
|
|
3079
3079
|
});
|
|
3080
3080
|
}
|
|
3081
|
-
var
|
|
3082
|
-
|
|
3081
|
+
var to = /* @__PURE__ */ v("ZodCustom", (e, t) => {
|
|
3082
|
+
Jn.init(e, t), J.init(e, t), e._zod.processJSONSchema = (t, n, r) => ui(e, t, n, r);
|
|
3083
3083
|
});
|
|
3084
|
-
function
|
|
3085
|
-
return /* @__PURE__ */
|
|
3084
|
+
function no(e, t = {}) {
|
|
3085
|
+
return /* @__PURE__ */ Zr(to, e, t);
|
|
3086
3086
|
}
|
|
3087
|
-
function
|
|
3088
|
-
return /* @__PURE__ */
|
|
3087
|
+
function ro(e, t) {
|
|
3088
|
+
return /* @__PURE__ */ Qr(e, t);
|
|
3089
3089
|
}
|
|
3090
3090
|
//#endregion
|
|
3091
3091
|
//#region ../../node_modules/.pnpm/@vis.gl+react-maplibre@8.1.1_maplibre-gl@5.24.0_react-dom@19.2.5_react@19.2.5__react@19.2.5/node_modules/@vis.gl/react-maplibre/dist/components/use-map.js
|
|
3092
|
-
var
|
|
3092
|
+
var io = r.createContext(null);
|
|
3093
3093
|
//#endregion
|
|
3094
3094
|
//#region ../../node_modules/.pnpm/@vis.gl+react-maplibre@8.1.1_maplibre-gl@5.24.0_react-dom@19.2.5_react@19.2.5__react@19.2.5/node_modules/@vis.gl/react-maplibre/dist/utils/deep-equal.js
|
|
3095
|
-
function
|
|
3095
|
+
function ao(e, t) {
|
|
3096
3096
|
let n = Array.isArray(e) ? e[0] : e ? e.x : 0, r = Array.isArray(e) ? e[1] : e ? e.y : 0, i = Array.isArray(t) ? t[0] : t ? t.x : 0, a = Array.isArray(t) ? t[1] : t ? t.y : 0;
|
|
3097
3097
|
return n === i && r === a;
|
|
3098
3098
|
}
|
|
@@ -3114,7 +3114,7 @@ function X(e, t) {
|
|
|
3114
3114
|
}
|
|
3115
3115
|
//#endregion
|
|
3116
3116
|
//#region ../../node_modules/.pnpm/@vis.gl+react-maplibre@8.1.1_maplibre-gl@5.24.0_react-dom@19.2.5_react@19.2.5__react@19.2.5/node_modules/@vis.gl/react-maplibre/dist/utils/transform.js
|
|
3117
|
-
function
|
|
3117
|
+
function oo(e) {
|
|
3118
3118
|
return {
|
|
3119
3119
|
longitude: e.center.lng,
|
|
3120
3120
|
latitude: e.center.lat,
|
|
@@ -3124,7 +3124,7 @@ function io(e) {
|
|
|
3124
3124
|
padding: e.padding
|
|
3125
3125
|
};
|
|
3126
3126
|
}
|
|
3127
|
-
function
|
|
3127
|
+
function so(e, t) {
|
|
3128
3128
|
let n = t.viewState || t, r = {};
|
|
3129
3129
|
if ("longitude" in n && "latitude" in n && (n.longitude !== e.center.lng || n.latitude !== e.center.lat)) {
|
|
3130
3130
|
let t = e.center.constructor;
|
|
@@ -3134,7 +3134,7 @@ function ao(e, t) {
|
|
|
3134
3134
|
}
|
|
3135
3135
|
//#endregion
|
|
3136
3136
|
//#region ../../node_modules/.pnpm/@vis.gl+react-maplibre@8.1.1_maplibre-gl@5.24.0_react-dom@19.2.5_react@19.2.5__react@19.2.5/node_modules/@vis.gl/react-maplibre/dist/utils/style-utils.js
|
|
3137
|
-
var
|
|
3137
|
+
var co = [
|
|
3138
3138
|
"type",
|
|
3139
3139
|
"source",
|
|
3140
3140
|
"source-layer",
|
|
@@ -3143,7 +3143,7 @@ var oo = [
|
|
|
3143
3143
|
"filter",
|
|
3144
3144
|
"layout"
|
|
3145
3145
|
];
|
|
3146
|
-
function
|
|
3146
|
+
function lo(e) {
|
|
3147
3147
|
if (!e) return null;
|
|
3148
3148
|
if (typeof e == "string" || ("toJS" in e && (e = e.toJS()), !e.layers)) return e;
|
|
3149
3149
|
let t = {};
|
|
@@ -3154,7 +3154,7 @@ function so(e) {
|
|
|
3154
3154
|
let r = t[e.ref];
|
|
3155
3155
|
if (r) {
|
|
3156
3156
|
n ||= Object.assign({}, e), delete n.ref;
|
|
3157
|
-
for (let e of
|
|
3157
|
+
for (let e of co) e in r && (n[e] = r[e]);
|
|
3158
3158
|
}
|
|
3159
3159
|
return n || e;
|
|
3160
3160
|
});
|
|
@@ -3165,11 +3165,11 @@ function so(e) {
|
|
|
3165
3165
|
}
|
|
3166
3166
|
//#endregion
|
|
3167
3167
|
//#region ../../node_modules/.pnpm/@vis.gl+react-maplibre@8.1.1_maplibre-gl@5.24.0_react-dom@19.2.5_react@19.2.5__react@19.2.5/node_modules/@vis.gl/react-maplibre/dist/maplibre/maplibre.js
|
|
3168
|
-
var
|
|
3168
|
+
var uo = {
|
|
3169
3169
|
version: 8,
|
|
3170
3170
|
sources: {},
|
|
3171
3171
|
layers: []
|
|
3172
|
-
},
|
|
3172
|
+
}, fo = {
|
|
3173
3173
|
minZoom: 0,
|
|
3174
3174
|
maxZoom: 22,
|
|
3175
3175
|
minPitch: 0,
|
|
@@ -3182,7 +3182,7 @@ var co = {
|
|
|
3182
3182
|
],
|
|
3183
3183
|
projection: "mercator",
|
|
3184
3184
|
renderWorldCopies: !0
|
|
3185
|
-
},
|
|
3185
|
+
}, po = {
|
|
3186
3186
|
mousedown: "onMouseDown",
|
|
3187
3187
|
mouseup: "onMouseUp",
|
|
3188
3188
|
mouseover: "onMouseOver",
|
|
@@ -3197,7 +3197,7 @@ var co = {
|
|
|
3197
3197
|
touchend: "onTouchEnd",
|
|
3198
3198
|
touchmove: "onTouchMove",
|
|
3199
3199
|
touchcancel: "onTouchCancel"
|
|
3200
|
-
},
|
|
3200
|
+
}, mo = {
|
|
3201
3201
|
movestart: "onMoveStart",
|
|
3202
3202
|
move: "onMove",
|
|
3203
3203
|
moveend: "onMoveEnd",
|
|
@@ -3213,7 +3213,7 @@ var co = {
|
|
|
3213
3213
|
pitchstart: "onPitchStart",
|
|
3214
3214
|
pitch: "onPitch",
|
|
3215
3215
|
pitchend: "onPitchEnd"
|
|
3216
|
-
},
|
|
3216
|
+
}, ho = {
|
|
3217
3217
|
wheel: "onWheel",
|
|
3218
3218
|
boxzoomstart: "onBoxZoomStart",
|
|
3219
3219
|
boxzoomend: "onBoxZoomEnd",
|
|
@@ -3227,7 +3227,7 @@ var co = {
|
|
|
3227
3227
|
styledata: "onStyleData",
|
|
3228
3228
|
sourcedata: "onSourceData",
|
|
3229
3229
|
error: "onError"
|
|
3230
|
-
},
|
|
3230
|
+
}, go = [
|
|
3231
3231
|
"minZoom",
|
|
3232
3232
|
"maxZoom",
|
|
3233
3233
|
"minPitch",
|
|
@@ -3235,7 +3235,7 @@ var co = {
|
|
|
3235
3235
|
"maxBounds",
|
|
3236
3236
|
"projection",
|
|
3237
3237
|
"renderWorldCopies"
|
|
3238
|
-
],
|
|
3238
|
+
], _o = [
|
|
3239
3239
|
"scrollZoom",
|
|
3240
3240
|
"boxZoom",
|
|
3241
3241
|
"dragRotate",
|
|
@@ -3244,19 +3244,19 @@ var co = {
|
|
|
3244
3244
|
"doubleClickZoom",
|
|
3245
3245
|
"touchZoomRotate",
|
|
3246
3246
|
"touchPitch"
|
|
3247
|
-
],
|
|
3247
|
+
], vo = class e {
|
|
3248
3248
|
constructor(e, t, n) {
|
|
3249
3249
|
this._map = null, this._internalUpdate = !1, this._hoveredFeatures = null, this._propsedCameraUpdate = null, this._styleComponents = {}, this._onEvent = (e) => {
|
|
3250
|
-
let t = this.props[
|
|
3250
|
+
let t = this.props[ho[e.type]];
|
|
3251
3251
|
t ? t(e) : e.type === "error" && console.error(e.error);
|
|
3252
3252
|
}, this._onCameraEvent = (e) => {
|
|
3253
3253
|
if (this._internalUpdate) return;
|
|
3254
|
-
e.viewState = this._propsedCameraUpdate ||
|
|
3255
|
-
let t = this.props[
|
|
3254
|
+
e.viewState = this._propsedCameraUpdate || oo(this._map.transform);
|
|
3255
|
+
let t = this.props[mo[e.type]];
|
|
3256
3256
|
t && t(e);
|
|
3257
|
-
}, this._onCameraUpdate = (e) => this._internalUpdate ? e : (this._propsedCameraUpdate =
|
|
3257
|
+
}, this._onCameraUpdate = (e) => this._internalUpdate ? e : (this._propsedCameraUpdate = oo(e), so(e, this.props)), this._onPointerEvent = (e) => {
|
|
3258
3258
|
(e.type === "mousemove" || e.type === "mouseout") && this._updateHover(e);
|
|
3259
|
-
let t = this.props[
|
|
3259
|
+
let t = this.props[po[e.type]];
|
|
3260
3260
|
t && (this.props.interactiveLayerIds && e.type !== "mouseover" && e.type !== "mouseout" && (e.features = this._hoveredFeatures || this._queryRenderedFeatures(e.point)), t(e), delete e.features);
|
|
3261
3261
|
}, this._MapClass = e, this.props = t, this._initialize(n);
|
|
3262
3262
|
}
|
|
@@ -3287,11 +3287,11 @@ var co = {
|
|
|
3287
3287
|
}) : r._updateViewState(s)), i.isStyleLoaded() ? i.fire("load") : i.once("style.load", () => i.fire("load")), i._update(), r;
|
|
3288
3288
|
}
|
|
3289
3289
|
_initialize(e) {
|
|
3290
|
-
let { props: t } = this, { mapStyle: n =
|
|
3290
|
+
let { props: t } = this, { mapStyle: n = uo } = t, r = {
|
|
3291
3291
|
...t,
|
|
3292
3292
|
...t.initialViewState,
|
|
3293
3293
|
container: e,
|
|
3294
|
-
style:
|
|
3294
|
+
style: lo(n)
|
|
3295
3295
|
}, i = r.initialViewState || r.viewState || r;
|
|
3296
3296
|
if (Object.assign(r, {
|
|
3297
3297
|
center: [i.longitude || 0, i.latitude || 0],
|
|
@@ -3313,9 +3313,9 @@ var co = {
|
|
|
3313
3313
|
}), a.on("sourcedata", () => {
|
|
3314
3314
|
this._updateStyleComponents(this.props);
|
|
3315
3315
|
});
|
|
3316
|
-
for (let e in
|
|
3317
|
-
for (let e in
|
|
3318
|
-
for (let e in
|
|
3316
|
+
for (let e in po) a.on(e, this._onPointerEvent);
|
|
3317
|
+
for (let e in mo) a.on(e, this._onCameraEvent);
|
|
3318
|
+
for (let e in ho) a.on(e, this._onEvent);
|
|
3319
3319
|
this._map = a;
|
|
3320
3320
|
}
|
|
3321
3321
|
recycle() {
|
|
@@ -3339,24 +3339,24 @@ var co = {
|
|
|
3339
3339
|
_updateViewState(e) {
|
|
3340
3340
|
let t = this._map, n = t.transform;
|
|
3341
3341
|
if (!t.isMoving()) {
|
|
3342
|
-
let r =
|
|
3342
|
+
let r = so(n, e);
|
|
3343
3343
|
if (Object.keys(r).length > 0) return this._internalUpdate = !0, t.jumpTo(r), this._internalUpdate = !1, !0;
|
|
3344
3344
|
}
|
|
3345
3345
|
return !1;
|
|
3346
3346
|
}
|
|
3347
3347
|
_updateSettings(e, t) {
|
|
3348
3348
|
let n = this._map, r = !1;
|
|
3349
|
-
for (let i of
|
|
3349
|
+
for (let i of go) if ((i in e || i in t) && !X(e[i], t[i])) {
|
|
3350
3350
|
r = !0;
|
|
3351
|
-
let t = i in e ? e[i] :
|
|
3351
|
+
let t = i in e ? e[i] : fo[i];
|
|
3352
3352
|
n[`set${i[0].toUpperCase()}${i.slice(1)}`]?.call(n, t);
|
|
3353
3353
|
}
|
|
3354
3354
|
return r;
|
|
3355
3355
|
}
|
|
3356
3356
|
_updateStyle(e, t) {
|
|
3357
3357
|
if (e.cursor !== t.cursor && (this._map.getCanvas().style.cursor = e.cursor || ""), e.mapStyle !== t.mapStyle) {
|
|
3358
|
-
let { mapStyle: t =
|
|
3359
|
-
"localIdeographFontFamily" in e && (r.localIdeographFontFamily = e.localIdeographFontFamily), this._map.setStyle(
|
|
3358
|
+
let { mapStyle: t = uo, styleDiffing: n = !0 } = e, r = { diff: n };
|
|
3359
|
+
"localIdeographFontFamily" in e && (r.localIdeographFontFamily = e.localIdeographFontFamily), this._map.setStyle(lo(t), r);
|
|
3360
3360
|
}
|
|
3361
3361
|
}
|
|
3362
3362
|
_updateStyleComponents({ light: e, projection: t, sky: n, terrain: r }) {
|
|
@@ -3365,7 +3365,7 @@ var co = {
|
|
|
3365
3365
|
}
|
|
3366
3366
|
_updateHandlers(e, t) {
|
|
3367
3367
|
let n = this._map;
|
|
3368
|
-
for (let r of
|
|
3368
|
+
for (let r of _o) {
|
|
3369
3369
|
let i = e[r] ?? !0;
|
|
3370
3370
|
X(i, t[r] ?? !0) || (i ? n[r].enable(i) : n[r].disable());
|
|
3371
3371
|
}
|
|
@@ -3386,10 +3386,10 @@ var co = {
|
|
|
3386
3386
|
} else this._hoveredFeatures = null;
|
|
3387
3387
|
}
|
|
3388
3388
|
};
|
|
3389
|
-
|
|
3389
|
+
vo.savedMaps = [];
|
|
3390
3390
|
//#endregion
|
|
3391
3391
|
//#region ../../node_modules/.pnpm/@vis.gl+react-maplibre@8.1.1_maplibre-gl@5.24.0_react-dom@19.2.5_react@19.2.5__react@19.2.5/node_modules/@vis.gl/react-maplibre/dist/maplibre/create-ref.js
|
|
3392
|
-
var
|
|
3392
|
+
var yo = [
|
|
3393
3393
|
"setMaxBounds",
|
|
3394
3394
|
"setMinZoom",
|
|
3395
3395
|
"setMaxZoom",
|
|
@@ -3411,13 +3411,13 @@ var _o = [
|
|
|
3411
3411
|
"setFog",
|
|
3412
3412
|
"remove"
|
|
3413
3413
|
];
|
|
3414
|
-
function
|
|
3414
|
+
function bo(e) {
|
|
3415
3415
|
if (!e) return null;
|
|
3416
3416
|
let t = e.map, n = { getMap: () => t };
|
|
3417
|
-
for (let e of
|
|
3417
|
+
for (let e of xo(t)) !(e in n) && !yo.includes(e) && (n[e] = t[e].bind(t));
|
|
3418
3418
|
return n;
|
|
3419
3419
|
}
|
|
3420
|
-
function
|
|
3420
|
+
function xo(e) {
|
|
3421
3421
|
let t = /* @__PURE__ */ new Set(), n = e;
|
|
3422
3422
|
for (; n;) {
|
|
3423
3423
|
for (let r of Object.getOwnPropertyNames(n)) r[0] !== "_" && typeof e[r] == "function" && r !== "fire" && r !== "setEventedParent" && t.add(r);
|
|
@@ -3427,10 +3427,10 @@ function yo(e) {
|
|
|
3427
3427
|
}
|
|
3428
3428
|
//#endregion
|
|
3429
3429
|
//#region ../../node_modules/.pnpm/@vis.gl+react-maplibre@8.1.1_maplibre-gl@5.24.0_react-dom@19.2.5_react@19.2.5__react@19.2.5/node_modules/@vis.gl/react-maplibre/dist/utils/use-isomorphic-layout-effect.js
|
|
3430
|
-
var
|
|
3430
|
+
var So = typeof document < "u" ? u : c;
|
|
3431
3431
|
//#endregion
|
|
3432
3432
|
//#region ../../node_modules/.pnpm/@vis.gl+react-maplibre@8.1.1_maplibre-gl@5.24.0_react-dom@19.2.5_react@19.2.5__react@19.2.5/node_modules/@vis.gl/react-maplibre/dist/utils/set-globals.js
|
|
3433
|
-
function
|
|
3433
|
+
function Co(e, t) {
|
|
3434
3434
|
let { RTLTextPlugin: n, maxParallelImageRequests: r, workerCount: i, workerUrl: a } = t;
|
|
3435
3435
|
if (n && e.getRTLTextPluginStatus && e.getRTLTextPluginStatus() === "unavailable") {
|
|
3436
3436
|
let { pluginUrl: t, lazy: r = !0 } = typeof n == "string" ? { pluginUrl: n } : n;
|
|
@@ -3442,20 +3442,20 @@ function xo(e, t) {
|
|
|
3442
3442
|
}
|
|
3443
3443
|
//#endregion
|
|
3444
3444
|
//#region ../../node_modules/.pnpm/@vis.gl+react-maplibre@8.1.1_maplibre-gl@5.24.0_react-dom@19.2.5_react@19.2.5__react@19.2.5/node_modules/@vis.gl/react-maplibre/dist/components/map.js
|
|
3445
|
-
var
|
|
3446
|
-
function
|
|
3447
|
-
let i =
|
|
3445
|
+
var wo = r.createContext(null);
|
|
3446
|
+
function To(e, n) {
|
|
3447
|
+
let i = s(io), [a, o] = p(null), u = f(), { current: m } = f({
|
|
3448
3448
|
mapLib: null,
|
|
3449
3449
|
map: null
|
|
3450
3450
|
});
|
|
3451
|
-
|
|
3451
|
+
c(() => {
|
|
3452
3452
|
let n = e.mapLib, r = !0, a;
|
|
3453
3453
|
return Promise.resolve(n || import("./maplibre-gl-D8guyJSV.js").then((e) => /* @__PURE__ */ t(e.default, 1))).then((t) => {
|
|
3454
3454
|
if (!r) return;
|
|
3455
3455
|
if (!t) throw Error("Invalid mapLib");
|
|
3456
3456
|
let n = "Map" in t ? t : t.default;
|
|
3457
3457
|
if (!n.Map) throw Error("Invalid mapLib");
|
|
3458
|
-
|
|
3458
|
+
Co(n, e), e.reuseMaps && (a = vo.reuse(e, u.current)), a ||= new vo(n.Map, e, u.current), m.map = bo(a), m.mapLib = n, o(a), i?.onMapMount(m.map, e.id);
|
|
3459
3459
|
}).catch((t) => {
|
|
3460
3460
|
let { onError: n } = e;
|
|
3461
3461
|
n ? n({
|
|
@@ -3467,10 +3467,10 @@ function Co(e, n) {
|
|
|
3467
3467
|
}), () => {
|
|
3468
3468
|
r = !1, a && (i?.onMapUnmount(e.id), e.reuseMaps ? a.recycle() : a.destroy());
|
|
3469
3469
|
};
|
|
3470
|
-
}, []),
|
|
3470
|
+
}, []), So(() => {
|
|
3471
3471
|
a && a.setProps(e);
|
|
3472
|
-
}),
|
|
3473
|
-
let h =
|
|
3472
|
+
}), l(n, () => m.map, [a]);
|
|
3473
|
+
let h = d(() => ({
|
|
3474
3474
|
position: "relative",
|
|
3475
3475
|
width: "100%",
|
|
3476
3476
|
height: "100%",
|
|
@@ -3478,38 +3478,38 @@ function Co(e, n) {
|
|
|
3478
3478
|
}), [e.style]);
|
|
3479
3479
|
return r.createElement("div", {
|
|
3480
3480
|
id: e.id,
|
|
3481
|
-
ref:
|
|
3481
|
+
ref: u,
|
|
3482
3482
|
style: h
|
|
3483
|
-
}, a && r.createElement(
|
|
3483
|
+
}, a && r.createElement(wo.Provider, { value: m }, r.createElement("div", {
|
|
3484
3484
|
"mapboxgl-children": "",
|
|
3485
3485
|
style: { height: "100%" }
|
|
3486
3486
|
}, e.children)));
|
|
3487
3487
|
}
|
|
3488
|
-
var
|
|
3488
|
+
var Eo = r.forwardRef(To), Do = /box|flex|grid|column|lineHeight|fontWeight|opacity|order|tabSize|zIndex/;
|
|
3489
3489
|
function Z(e, t) {
|
|
3490
3490
|
if (!e || !t) return;
|
|
3491
3491
|
let n = e.style;
|
|
3492
3492
|
for (let e in t) {
|
|
3493
3493
|
let r = t[e];
|
|
3494
|
-
Number.isFinite(r) && !
|
|
3494
|
+
Number.isFinite(r) && !Do.test(e) ? n[e] = `${r}px` : n[e] = r;
|
|
3495
3495
|
}
|
|
3496
3496
|
}
|
|
3497
3497
|
//#endregion
|
|
3498
3498
|
//#region ../../node_modules/.pnpm/@vis.gl+react-maplibre@8.1.1_maplibre-gl@5.24.0_react-dom@19.2.5_react@19.2.5__react@19.2.5/node_modules/@vis.gl/react-maplibre/dist/utils/compare-class-names.js
|
|
3499
|
-
function
|
|
3499
|
+
function Oo(e, t) {
|
|
3500
3500
|
if (e === t) return null;
|
|
3501
|
-
let n =
|
|
3501
|
+
let n = ko(e), r = ko(t), i = [];
|
|
3502
3502
|
for (let e of r) n.has(e) || i.push(e);
|
|
3503
3503
|
for (let e of n) r.has(e) || i.push(e);
|
|
3504
3504
|
return i.length === 0 ? null : i;
|
|
3505
3505
|
}
|
|
3506
|
-
function
|
|
3506
|
+
function ko(e) {
|
|
3507
3507
|
return new Set(e ? e.trim().split(/\s+/) : []);
|
|
3508
3508
|
}
|
|
3509
3509
|
//#endregion
|
|
3510
3510
|
//#region ../../node_modules/.pnpm/@vis.gl+react-maplibre@8.1.1_maplibre-gl@5.24.0_react-dom@19.2.5_react@19.2.5__react@19.2.5/node_modules/@vis.gl/react-maplibre/dist/components/marker.js
|
|
3511
|
-
var
|
|
3512
|
-
let { map: n, mapLib: i } =
|
|
3511
|
+
var Ao = a(i((e, t) => {
|
|
3512
|
+
let { map: n, mapLib: i } = s(wo), a = f({ props: e }), o = d(() => {
|
|
3513
3513
|
let t = !1;
|
|
3514
3514
|
r.Children.forEach(e.children, (e) => {
|
|
3515
3515
|
e && (t = !0);
|
|
@@ -3517,66 +3517,66 @@ var Oo = a(i((e, t) => {
|
|
|
3517
3517
|
let n = {
|
|
3518
3518
|
...e,
|
|
3519
3519
|
element: t ? document.createElement("div") : void 0
|
|
3520
|
-
},
|
|
3521
|
-
return
|
|
3520
|
+
}, s = new i.Marker(n);
|
|
3521
|
+
return s.setLngLat([e.longitude, e.latitude]), s.getElement().addEventListener("click", (e) => {
|
|
3522
3522
|
a.current.props.onClick?.({
|
|
3523
3523
|
type: "click",
|
|
3524
|
-
target:
|
|
3524
|
+
target: s,
|
|
3525
3525
|
originalEvent: e
|
|
3526
3526
|
});
|
|
3527
|
-
}),
|
|
3527
|
+
}), s.on("dragstart", (e) => {
|
|
3528
3528
|
let t = e;
|
|
3529
|
-
t.lngLat =
|
|
3530
|
-
}),
|
|
3529
|
+
t.lngLat = o.getLngLat(), a.current.props.onDragStart?.(t);
|
|
3530
|
+
}), s.on("drag", (e) => {
|
|
3531
3531
|
let t = e;
|
|
3532
|
-
t.lngLat =
|
|
3533
|
-
}),
|
|
3532
|
+
t.lngLat = o.getLngLat(), a.current.props.onDrag?.(t);
|
|
3533
|
+
}), s.on("dragend", (e) => {
|
|
3534
3534
|
let t = e;
|
|
3535
|
-
t.lngLat =
|
|
3536
|
-
}),
|
|
3535
|
+
t.lngLat = o.getLngLat(), a.current.props.onDragEnd?.(t);
|
|
3536
|
+
}), s;
|
|
3537
3537
|
}, []);
|
|
3538
|
-
|
|
3539
|
-
|
|
3538
|
+
c(() => (o.addTo(n.getMap()), () => {
|
|
3539
|
+
o.remove();
|
|
3540
3540
|
}), []);
|
|
3541
|
-
let { longitude:
|
|
3542
|
-
|
|
3543
|
-
Z(
|
|
3544
|
-
}, [h]),
|
|
3545
|
-
let
|
|
3546
|
-
(
|
|
3547
|
-
let
|
|
3548
|
-
if (
|
|
3549
|
-
return a.current.props = e,
|
|
3550
|
-
})),
|
|
3551
|
-
let { map: n, mapLib: r } =
|
|
3541
|
+
let { longitude: u, latitude: p, offset: m, style: h, draggable: ee = !1, popup: te = null, rotation: g = 0, rotationAlignment: ne = "auto", pitchAlignment: re = "auto" } = e;
|
|
3542
|
+
c(() => {
|
|
3543
|
+
Z(o.getElement(), h);
|
|
3544
|
+
}, [h]), l(t, () => o, []);
|
|
3545
|
+
let ie = a.current.props;
|
|
3546
|
+
(o.getLngLat().lng !== u || o.getLngLat().lat !== p) && o.setLngLat([u, p]), m && !ao(o.getOffset(), m) && o.setOffset(m), o.isDraggable() !== ee && o.setDraggable(ee), o.getRotation() !== g && o.setRotation(g), o.getRotationAlignment() !== ne && o.setRotationAlignment(ne), o.getPitchAlignment() !== re && o.setPitchAlignment(re), o.getPopup() !== te && o.setPopup(te);
|
|
3547
|
+
let ae = Oo(ie.className, e.className);
|
|
3548
|
+
if (ae) for (let e of ae) o.toggleClassName(e);
|
|
3549
|
+
return a.current.props = e, _(e.children, o.getElement());
|
|
3550
|
+
})), jo = a(i((e, t) => {
|
|
3551
|
+
let { map: n, mapLib: r } = s(wo), i = d(() => document.createElement("div"), []), a = f({ props: e }), o = d(() => {
|
|
3552
3552
|
let t = { ...e }, n = new r.Popup(t);
|
|
3553
3553
|
return n.setLngLat([e.longitude, e.latitude]), n.once("open", (e) => {
|
|
3554
3554
|
a.current.props.onOpen?.(e);
|
|
3555
3555
|
}), n;
|
|
3556
3556
|
}, []);
|
|
3557
|
-
if (
|
|
3557
|
+
if (c(() => {
|
|
3558
3558
|
let e = (e) => {
|
|
3559
3559
|
a.current.props.onClose?.(e);
|
|
3560
3560
|
};
|
|
3561
|
-
return
|
|
3562
|
-
|
|
3561
|
+
return o.on("close", e), o.setDOMContent(i).addTo(n.getMap()), () => {
|
|
3562
|
+
o.off("close", e), o.isOpen() && o.remove();
|
|
3563
3563
|
};
|
|
3564
|
-
}, []),
|
|
3565
|
-
Z(
|
|
3566
|
-
}, [e.style]),
|
|
3564
|
+
}, []), c(() => {
|
|
3565
|
+
Z(o.getElement(), e.style);
|
|
3566
|
+
}, [e.style]), l(t, () => o, []), o.isOpen()) {
|
|
3567
3567
|
let t = a.current.props;
|
|
3568
|
-
(
|
|
3569
|
-
let n =
|
|
3570
|
-
if (n) for (let e of n)
|
|
3568
|
+
(o.getLngLat().lng !== e.longitude || o.getLngLat().lat !== e.latitude) && o.setLngLat([e.longitude, e.latitude]), e.offset && !X(t.offset, e.offset) && o.setOffset(e.offset), (t.anchor !== e.anchor || t.maxWidth !== e.maxWidth) && (o.options.anchor = e.anchor, o.setMaxWidth(e.maxWidth));
|
|
3569
|
+
let n = Oo(t.className, e.className);
|
|
3570
|
+
if (n) for (let e of n) o.toggleClassName(e);
|
|
3571
3571
|
a.current.props = e;
|
|
3572
3572
|
}
|
|
3573
|
-
return
|
|
3573
|
+
return _(e.children, i);
|
|
3574
3574
|
}));
|
|
3575
3575
|
//#endregion
|
|
3576
3576
|
//#region ../../node_modules/.pnpm/@vis.gl+react-maplibre@8.1.1_maplibre-gl@5.24.0_react-dom@19.2.5_react@19.2.5__react@19.2.5/node_modules/@vis.gl/react-maplibre/dist/components/use-control.js
|
|
3577
3577
|
function Q(e, t, n, r) {
|
|
3578
|
-
let i =
|
|
3579
|
-
return
|
|
3578
|
+
let i = s(wo), a = d(() => e(i), []);
|
|
3579
|
+
return c(() => {
|
|
3580
3580
|
let e = r || n || t, o = typeof t == "function" && typeof n == "function" ? t : null, s = typeof n == "function" ? n : typeof t == "function" ? t : null, { map: c } = i;
|
|
3581
3581
|
return c.hasControl(a) || (c.addControl(a, e?.position), o && o(i)), () => {
|
|
3582
3582
|
s && s(i), c.hasControl(a) && c.removeControl(a);
|
|
@@ -3585,26 +3585,26 @@ function Q(e, t, n, r) {
|
|
|
3585
3585
|
}
|
|
3586
3586
|
//#endregion
|
|
3587
3587
|
//#region ../../node_modules/.pnpm/@vis.gl+react-maplibre@8.1.1_maplibre-gl@5.24.0_react-dom@19.2.5_react@19.2.5__react@19.2.5/node_modules/@vis.gl/react-maplibre/dist/components/attribution-control.js
|
|
3588
|
-
function
|
|
3588
|
+
function Mo(e) {
|
|
3589
3589
|
let t = Q(({ mapLib: t }) => new t.AttributionControl(e), { position: e.position });
|
|
3590
|
-
return
|
|
3590
|
+
return c(() => {
|
|
3591
3591
|
Z(t._container, e.style);
|
|
3592
3592
|
}, [e.style]), null;
|
|
3593
3593
|
}
|
|
3594
|
-
a(
|
|
3594
|
+
a(Mo);
|
|
3595
3595
|
//#endregion
|
|
3596
3596
|
//#region ../../node_modules/.pnpm/@vis.gl+react-maplibre@8.1.1_maplibre-gl@5.24.0_react-dom@19.2.5_react@19.2.5__react@19.2.5/node_modules/@vis.gl/react-maplibre/dist/components/fullscreen-control.js
|
|
3597
|
-
function
|
|
3597
|
+
function No(e) {
|
|
3598
3598
|
let t = Q(({ mapLib: t }) => new t.FullscreenControl({ container: e.containerId && document.getElementById(e.containerId) }), { position: e.position });
|
|
3599
|
-
return
|
|
3599
|
+
return c(() => {
|
|
3600
3600
|
Z(t._controlContainer, e.style);
|
|
3601
3601
|
}, [e.style]), null;
|
|
3602
3602
|
}
|
|
3603
|
-
a(
|
|
3603
|
+
a(No);
|
|
3604
3604
|
//#endregion
|
|
3605
3605
|
//#region ../../node_modules/.pnpm/@vis.gl+react-maplibre@8.1.1_maplibre-gl@5.24.0_react-dom@19.2.5_react@19.2.5__react@19.2.5/node_modules/@vis.gl/react-maplibre/dist/components/geolocate-control.js
|
|
3606
|
-
function
|
|
3607
|
-
let n =
|
|
3606
|
+
function Po(e, t) {
|
|
3607
|
+
let n = f({ props: e }), r = Q(({ mapLib: t }) => {
|
|
3608
3608
|
let r = new t.GeolocateControl(e), i = r._setupUI;
|
|
3609
3609
|
return r._setupUI = () => {
|
|
3610
3610
|
r._container.hasChildNodes() || i();
|
|
@@ -3620,52 +3620,52 @@ function Mo(e, t) {
|
|
|
3620
3620
|
n.current.props.onTrackUserLocationEnd?.(e);
|
|
3621
3621
|
}), r;
|
|
3622
3622
|
}, { position: e.position });
|
|
3623
|
-
return n.current.props = e,
|
|
3623
|
+
return n.current.props = e, l(t, () => r, []), c(() => {
|
|
3624
3624
|
Z(r._container, e.style);
|
|
3625
3625
|
}, [e.style]), null;
|
|
3626
3626
|
}
|
|
3627
|
-
a(i(
|
|
3627
|
+
a(i(Po));
|
|
3628
3628
|
//#endregion
|
|
3629
3629
|
//#region ../../node_modules/.pnpm/@vis.gl+react-maplibre@8.1.1_maplibre-gl@5.24.0_react-dom@19.2.5_react@19.2.5__react@19.2.5/node_modules/@vis.gl/react-maplibre/dist/components/navigation-control.js
|
|
3630
|
-
function
|
|
3630
|
+
function Fo(e) {
|
|
3631
3631
|
let t = Q(({ mapLib: t }) => new t.NavigationControl(e), { position: e.position });
|
|
3632
|
-
return
|
|
3632
|
+
return c(() => {
|
|
3633
3633
|
Z(t._container, e.style);
|
|
3634
3634
|
}, [e.style]), null;
|
|
3635
3635
|
}
|
|
3636
|
-
var
|
|
3636
|
+
var Io = a(Fo);
|
|
3637
3637
|
//#endregion
|
|
3638
3638
|
//#region ../../node_modules/.pnpm/@vis.gl+react-maplibre@8.1.1_maplibre-gl@5.24.0_react-dom@19.2.5_react@19.2.5__react@19.2.5/node_modules/@vis.gl/react-maplibre/dist/components/scale-control.js
|
|
3639
|
-
function
|
|
3640
|
-
let t = Q(({ mapLib: t }) => new t.ScaleControl(e), { position: e.position }), n =
|
|
3639
|
+
function Lo(e) {
|
|
3640
|
+
let t = Q(({ mapLib: t }) => new t.ScaleControl(e), { position: e.position }), n = f(e), r = n.current;
|
|
3641
3641
|
n.current = e;
|
|
3642
3642
|
let { style: i } = e;
|
|
3643
|
-
return e.maxWidth !== void 0 && e.maxWidth !== r.maxWidth && (t.options.maxWidth = e.maxWidth), e.unit !== void 0 && e.unit !== r.unit && t.setUnit(e.unit),
|
|
3643
|
+
return e.maxWidth !== void 0 && e.maxWidth !== r.maxWidth && (t.options.maxWidth = e.maxWidth), e.unit !== void 0 && e.unit !== r.unit && t.setUnit(e.unit), c(() => {
|
|
3644
3644
|
Z(t._container, i);
|
|
3645
3645
|
}, [i]), null;
|
|
3646
3646
|
}
|
|
3647
|
-
a(
|
|
3647
|
+
a(Lo);
|
|
3648
3648
|
//#endregion
|
|
3649
3649
|
//#region ../../node_modules/.pnpm/@vis.gl+react-maplibre@8.1.1_maplibre-gl@5.24.0_react-dom@19.2.5_react@19.2.5__react@19.2.5/node_modules/@vis.gl/react-maplibre/dist/components/terrain-control.js
|
|
3650
|
-
function
|
|
3650
|
+
function Ro(e) {
|
|
3651
3651
|
let t = Q(({ mapLib: t }) => new t.TerrainControl(e), { position: e.position });
|
|
3652
|
-
return
|
|
3652
|
+
return c(() => {
|
|
3653
3653
|
Z(t._container, e.style);
|
|
3654
3654
|
}, [e.style]), null;
|
|
3655
3655
|
}
|
|
3656
|
-
a(
|
|
3656
|
+
a(Ro);
|
|
3657
3657
|
//#endregion
|
|
3658
3658
|
//#region ../../node_modules/.pnpm/@vis.gl+react-maplibre@8.1.1_maplibre-gl@5.24.0_react-dom@19.2.5_react@19.2.5__react@19.2.5/node_modules/@vis.gl/react-maplibre/dist/components/logo-control.js
|
|
3659
|
-
function
|
|
3659
|
+
function zo(e) {
|
|
3660
3660
|
let t = Q(({ mapLib: t }) => new t.LogoControl(e), { position: e.position });
|
|
3661
|
-
return
|
|
3661
|
+
return c(() => {
|
|
3662
3662
|
Z(t._container, e.style);
|
|
3663
3663
|
}, [e.style]), null;
|
|
3664
3664
|
}
|
|
3665
|
-
a(
|
|
3665
|
+
a(zo);
|
|
3666
3666
|
//#endregion
|
|
3667
3667
|
//#region ../../node_modules/.pnpm/react@19.2.5/node_modules/react/cjs/react-jsx-runtime.production.js
|
|
3668
|
-
var
|
|
3668
|
+
var Bo = /* @__PURE__ */ n(((e) => {
|
|
3669
3669
|
var t = Symbol.for("react.transitional.element"), n = Symbol.for("react.fragment");
|
|
3670
3670
|
function r(e, n, r) {
|
|
3671
3671
|
var i = null;
|
|
@@ -3680,29 +3680,29 @@ var Ro = /* @__PURE__ */ n(((e) => {
|
|
|
3680
3680
|
};
|
|
3681
3681
|
}
|
|
3682
3682
|
e.Fragment = n, e.jsx = r, e.jsxs = r;
|
|
3683
|
-
})),
|
|
3683
|
+
})), Vo = /* @__PURE__ */ n(((t) => {
|
|
3684
3684
|
process.env.NODE_ENV !== "production" && (function() {
|
|
3685
3685
|
function n(e) {
|
|
3686
3686
|
if (e == null) return null;
|
|
3687
|
-
if (typeof e == "function") return e.$$typeof ===
|
|
3687
|
+
if (typeof e == "function") return e.$$typeof === se ? null : e.displayName || e.name || null;
|
|
3688
3688
|
if (typeof e == "string") return e;
|
|
3689
3689
|
switch (e) {
|
|
3690
|
-
case
|
|
3691
|
-
case
|
|
3692
|
-
case
|
|
3693
|
-
case
|
|
3694
|
-
case
|
|
3695
|
-
case
|
|
3690
|
+
case g: return "Fragment";
|
|
3691
|
+
case re: return "Profiler";
|
|
3692
|
+
case ne: return "StrictMode";
|
|
3693
|
+
case v: return "Suspense";
|
|
3694
|
+
case y: return "SuspenseList";
|
|
3695
|
+
case x: return "Activity";
|
|
3696
3696
|
}
|
|
3697
3697
|
if (typeof e == "object") switch (typeof e.tag == "number" && console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), e.$$typeof) {
|
|
3698
|
-
case
|
|
3699
|
-
case
|
|
3700
|
-
case
|
|
3701
|
-
case
|
|
3698
|
+
case te: return "Portal";
|
|
3699
|
+
case _: return e.displayName || "Context";
|
|
3700
|
+
case ie: return (e._context.displayName || "Context") + ".Consumer";
|
|
3701
|
+
case ae:
|
|
3702
3702
|
var t = e.render;
|
|
3703
3703
|
return e = e.displayName, e ||= (e = t.displayName || t.name || "", e === "" ? "ForwardRef" : "ForwardRef(" + e + ")"), e;
|
|
3704
|
-
case
|
|
3705
|
-
case
|
|
3704
|
+
case oe: return t = e.displayName || null, t === null ? n(e.type) || "Memo" : t;
|
|
3705
|
+
case b:
|
|
3706
3706
|
t = e._payload, e = e._init;
|
|
3707
3707
|
try {
|
|
3708
3708
|
return n(e(t));
|
|
@@ -3727,8 +3727,8 @@ var Ro = /* @__PURE__ */ n(((e) => {
|
|
|
3727
3727
|
}
|
|
3728
3728
|
}
|
|
3729
3729
|
function a(e) {
|
|
3730
|
-
if (e ===
|
|
3731
|
-
if (typeof e == "object" && e && e.$$typeof ===
|
|
3730
|
+
if (e === g) return "<>";
|
|
3731
|
+
if (typeof e == "object" && e && e.$$typeof === b) return "<...>";
|
|
3732
3732
|
try {
|
|
3733
3733
|
var t = n(e);
|
|
3734
3734
|
return t ? "<" + t + ">" : "<...>";
|
|
@@ -3737,14 +3737,14 @@ var Ro = /* @__PURE__ */ n(((e) => {
|
|
|
3737
3737
|
}
|
|
3738
3738
|
}
|
|
3739
3739
|
function o() {
|
|
3740
|
-
var e =
|
|
3740
|
+
var e = S.A;
|
|
3741
3741
|
return e === null ? null : e.getOwner();
|
|
3742
3742
|
}
|
|
3743
3743
|
function s() {
|
|
3744
3744
|
return Error("react-stack-top-frame");
|
|
3745
3745
|
}
|
|
3746
3746
|
function c(e) {
|
|
3747
|
-
if (
|
|
3747
|
+
if (C.call(e, "key")) {
|
|
3748
3748
|
var t = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
3749
3749
|
if (t && t.isReactWarning) return !1;
|
|
3750
3750
|
}
|
|
@@ -3752,7 +3752,7 @@ var Ro = /* @__PURE__ */ n(((e) => {
|
|
|
3752
3752
|
}
|
|
3753
3753
|
function l(e, t) {
|
|
3754
3754
|
function n() {
|
|
3755
|
-
|
|
3755
|
+
T || (T = !0, console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)", t));
|
|
3756
3756
|
}
|
|
3757
3757
|
n.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
3758
3758
|
get: n,
|
|
@@ -3761,7 +3761,7 @@ var Ro = /* @__PURE__ */ n(((e) => {
|
|
|
3761
3761
|
}
|
|
3762
3762
|
function u() {
|
|
3763
3763
|
var e = n(this.type);
|
|
3764
|
-
return
|
|
3764
|
+
return E[e] || (E[e] = !0, console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")), e = this.props.ref, e === void 0 ? null : e;
|
|
3765
3765
|
}
|
|
3766
3766
|
function d(e, t, n, r, i, a) {
|
|
3767
3767
|
var o = n.ref;
|
|
@@ -3801,55 +3801,55 @@ var Ro = /* @__PURE__ */ n(((e) => {
|
|
|
3801
3801
|
}
|
|
3802
3802
|
function f(e, t, r, a, s, u) {
|
|
3803
3803
|
var f = t.children;
|
|
3804
|
-
if (f !== void 0) if (a) if (
|
|
3804
|
+
if (f !== void 0) if (a) if (ce(f)) {
|
|
3805
3805
|
for (a = 0; a < f.length; a++) p(f[a]);
|
|
3806
3806
|
Object.freeze && Object.freeze(f);
|
|
3807
3807
|
} else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
3808
3808
|
else p(f);
|
|
3809
|
-
if (
|
|
3809
|
+
if (C.call(t, "key")) {
|
|
3810
3810
|
f = n(e);
|
|
3811
3811
|
var m = Object.keys(t).filter(function(e) {
|
|
3812
3812
|
return e !== "key";
|
|
3813
3813
|
});
|
|
3814
|
-
a = 0 < m.length ? "{key: someKey, " + m.join(": ..., ") + ": ...}" : "{key: someKey}",
|
|
3814
|
+
a = 0 < m.length ? "{key: someKey, " + m.join(": ..., ") + ": ...}" : "{key: someKey}", k[f + a] || (m = 0 < m.length ? "{" + m.join(": ..., ") + ": ...}" : "{}", console.error("A props object containing a \"key\" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />", a, f, m, f), k[f + a] = !0);
|
|
3815
3815
|
}
|
|
3816
3816
|
if (f = null, r !== void 0 && (i(r), f = "" + r), c(t) && (i(t.key), f = "" + t.key), "key" in t) for (var h in r = {}, t) h !== "key" && (r[h] = t[h]);
|
|
3817
3817
|
else r = t;
|
|
3818
3818
|
return f && l(r, typeof e == "function" ? e.displayName || e.name || "Unknown" : e), d(e, f, r, o(), s, u);
|
|
3819
3819
|
}
|
|
3820
3820
|
function p(e) {
|
|
3821
|
-
m(e) ? e._store && (e._store.validated = 1) : typeof e == "object" && e && e.$$typeof ===
|
|
3821
|
+
m(e) ? e._store && (e._store.validated = 1) : typeof e == "object" && e && e.$$typeof === b && (e._payload.status === "fulfilled" ? m(e._payload.value) && e._payload.value._store && (e._payload.value._store.validated = 1) : e._store && (e._store.validated = 1));
|
|
3822
3822
|
}
|
|
3823
3823
|
function m(e) {
|
|
3824
3824
|
return typeof e == "object" && !!e && e.$$typeof === ee;
|
|
3825
3825
|
}
|
|
3826
|
-
var h = e("react"), ee = Symbol.for("react.transitional.element"),
|
|
3826
|
+
var h = e("react"), ee = Symbol.for("react.transitional.element"), te = Symbol.for("react.portal"), g = Symbol.for("react.fragment"), ne = Symbol.for("react.strict_mode"), re = Symbol.for("react.profiler"), ie = Symbol.for("react.consumer"), _ = Symbol.for("react.context"), ae = Symbol.for("react.forward_ref"), v = Symbol.for("react.suspense"), y = Symbol.for("react.suspense_list"), oe = Symbol.for("react.memo"), b = Symbol.for("react.lazy"), x = Symbol.for("react.activity"), se = Symbol.for("react.client.reference"), S = h.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, C = Object.prototype.hasOwnProperty, ce = Array.isArray, w = console.createTask ? console.createTask : function() {
|
|
3827
3827
|
return null;
|
|
3828
3828
|
};
|
|
3829
3829
|
h = { react_stack_bottom_frame: function(e) {
|
|
3830
3830
|
return e();
|
|
3831
3831
|
} };
|
|
3832
|
-
var
|
|
3833
|
-
t.Fragment =
|
|
3834
|
-
var r = 1e4 >
|
|
3835
|
-
return f(e, t, n, !1, r ? Error("react-stack-top-frame") :
|
|
3832
|
+
var T, E = {}, D = h.react_stack_bottom_frame.bind(h, s)(), O = w(a(s)), k = {};
|
|
3833
|
+
t.Fragment = g, t.jsx = function(e, t, n) {
|
|
3834
|
+
var r = 1e4 > S.recentlyCreatedOwnerStacks++;
|
|
3835
|
+
return f(e, t, n, !1, r ? Error("react-stack-top-frame") : D, r ? w(a(e)) : O);
|
|
3836
3836
|
}, t.jsxs = function(e, t, n) {
|
|
3837
|
-
var r = 1e4 >
|
|
3838
|
-
return f(e, t, n, !0, r ? Error("react-stack-top-frame") :
|
|
3837
|
+
var r = 1e4 > S.recentlyCreatedOwnerStacks++;
|
|
3838
|
+
return f(e, t, n, !0, r ? Error("react-stack-top-frame") : D, r ? w(a(e)) : O);
|
|
3839
3839
|
};
|
|
3840
3840
|
})();
|
|
3841
3841
|
})), $ = (/* @__PURE__ */ n(((e, t) => {
|
|
3842
|
-
process.env.NODE_ENV === "production" ? t.exports =
|
|
3843
|
-
})))(),
|
|
3844
|
-
latitudeField:
|
|
3845
|
-
longitudeField:
|
|
3846
|
-
locationField:
|
|
3847
|
-
titleField:
|
|
3848
|
-
descriptionField:
|
|
3849
|
-
zoom:
|
|
3850
|
-
center:
|
|
3842
|
+
process.env.NODE_ENV === "production" ? t.exports = Bo() : t.exports = Vo();
|
|
3843
|
+
})))(), Ho = Ea({
|
|
3844
|
+
latitudeField: Yi().optional(),
|
|
3845
|
+
longitudeField: Yi().optional(),
|
|
3846
|
+
locationField: Yi().optional(),
|
|
3847
|
+
titleField: Yi().optional(),
|
|
3848
|
+
descriptionField: Yi().optional(),
|
|
3849
|
+
zoom: ga().optional(),
|
|
3850
|
+
center: Ma([ga(), ga()]).optional()
|
|
3851
3851
|
});
|
|
3852
|
-
function
|
|
3852
|
+
function Uo(e) {
|
|
3853
3853
|
return e.data ? e.data : e.staticData ? {
|
|
3854
3854
|
provider: "value",
|
|
3855
3855
|
items: e.staticData
|
|
@@ -3858,7 +3858,7 @@ function Vo(e) {
|
|
|
3858
3858
|
object: e.objectName
|
|
3859
3859
|
} : null;
|
|
3860
3860
|
}
|
|
3861
|
-
function
|
|
3861
|
+
function Wo(e) {
|
|
3862
3862
|
if (e) {
|
|
3863
3863
|
if (typeof e == "string") {
|
|
3864
3864
|
let t = e.split(" "), n = t[0], r = t[1]?.toLowerCase() === "desc" ? "desc" : "asc";
|
|
@@ -3867,7 +3867,7 @@ function Ho(e) {
|
|
|
3867
3867
|
if (Array.isArray(e)) return e.reduce((e, t) => (t.field && t.order && (e[t.field] = t.order), e), {});
|
|
3868
3868
|
}
|
|
3869
3869
|
}
|
|
3870
|
-
function
|
|
3870
|
+
function Go(e) {
|
|
3871
3871
|
if (e.locationField || e.latitudeField) return {
|
|
3872
3872
|
locationField: e.locationField,
|
|
3873
3873
|
latitudeField: e.latitudeField,
|
|
@@ -3879,7 +3879,7 @@ function Uo(e) {
|
|
|
3879
3879
|
};
|
|
3880
3880
|
let t = null;
|
|
3881
3881
|
if (e.filter && typeof e.filter == "object" && "map" in e.filter ? t = e.filter.map : e.map && (t = e.map), t) {
|
|
3882
|
-
let e =
|
|
3882
|
+
let e = Ho.safeParse(t);
|
|
3883
3883
|
return e.success || console.warn("[ObjectMap] Invalid map configuration:", e.error.format()), t;
|
|
3884
3884
|
}
|
|
3885
3885
|
return {
|
|
@@ -3892,7 +3892,7 @@ function Uo(e) {
|
|
|
3892
3892
|
center: [0, 0]
|
|
3893
3893
|
};
|
|
3894
3894
|
}
|
|
3895
|
-
function
|
|
3895
|
+
function Ko(e, t) {
|
|
3896
3896
|
if (t.latitudeField && t.longitudeField) {
|
|
3897
3897
|
let n = e[t.latitudeField], r = e[t.longitudeField];
|
|
3898
3898
|
if (typeof n == "number" && typeof r == "number") return [n, r];
|
|
@@ -3914,7 +3914,7 @@ function Wo(e, t) {
|
|
|
3914
3914
|
}
|
|
3915
3915
|
return null;
|
|
3916
3916
|
}
|
|
3917
|
-
function
|
|
3917
|
+
function qo(e, t, n = 50) {
|
|
3918
3918
|
if (e.length <= 1 || t >= 15) return e.map((e) => ({
|
|
3919
3919
|
id: e.id,
|
|
3920
3920
|
coordinates: e.coordinates,
|
|
@@ -3945,57 +3945,82 @@ function Go(e, t, n = 50) {
|
|
|
3945
3945
|
}
|
|
3946
3946
|
}), a;
|
|
3947
3947
|
}
|
|
3948
|
-
var
|
|
3949
|
-
let [
|
|
3950
|
-
|
|
3948
|
+
var Jo = ({ schema: e, dataSource: t, className: n, onMarkerClick: r, onRowClick: i, onEdit: a, onDelete: s, enableClustering: l, clusterRadius: u = 50, ...m }) => {
|
|
3949
|
+
let [g, _] = p([]), [ae, v] = p(!0), [y, oe] = p(null), [b, x] = p(null), [se, S] = p(null), [C, ce] = p(""), w = ie(), T = f(null), [E, D] = p(null), [O, k] = p(null), [le, ue] = p(!1), de = o(() => {
|
|
3950
|
+
if (typeof navigator > "u" || !navigator.geolocation) {
|
|
3951
|
+
k("Geolocation is not available in this browser.");
|
|
3952
|
+
return;
|
|
3953
|
+
}
|
|
3954
|
+
ue(!0), k(null), navigator.geolocation.getCurrentPosition((e) => {
|
|
3955
|
+
let { longitude: t, latitude: n } = e.coords;
|
|
3956
|
+
D({
|
|
3957
|
+
lng: t,
|
|
3958
|
+
lat: n
|
|
3959
|
+
}), ue(!1);
|
|
3960
|
+
try {
|
|
3961
|
+
T.current?.flyTo({
|
|
3962
|
+
center: [t, n],
|
|
3963
|
+
zoom: 12,
|
|
3964
|
+
duration: 800
|
|
3965
|
+
});
|
|
3966
|
+
} catch {}
|
|
3967
|
+
}, (e) => {
|
|
3968
|
+
ue(!1), k(e.message || "Unable to retrieve location.");
|
|
3969
|
+
}, {
|
|
3970
|
+
enableHighAccuracy: !1,
|
|
3971
|
+
timeout: 8e3,
|
|
3972
|
+
maximumAge: 6e4
|
|
3973
|
+
});
|
|
3974
|
+
}, []), A = Uo(e), j = d(() => A, [JSON.stringify(A)]), M = Go(e), N = j?.provider === "value";
|
|
3975
|
+
c(() => {
|
|
3951
3976
|
(async () => {
|
|
3952
3977
|
try {
|
|
3953
|
-
if (
|
|
3954
|
-
let e =
|
|
3978
|
+
if (v(!0), m.data) {
|
|
3979
|
+
let e = m.data;
|
|
3955
3980
|
if (Array.isArray(e)) {
|
|
3956
|
-
|
|
3981
|
+
_(e), v(!1);
|
|
3957
3982
|
return;
|
|
3958
3983
|
}
|
|
3959
3984
|
}
|
|
3960
3985
|
if (e.data) {
|
|
3961
3986
|
let t = e.data;
|
|
3962
3987
|
if (Array.isArray(t)) {
|
|
3963
|
-
|
|
3988
|
+
_(t), v(!1);
|
|
3964
3989
|
return;
|
|
3965
3990
|
}
|
|
3966
3991
|
}
|
|
3967
|
-
if (
|
|
3968
|
-
|
|
3992
|
+
if (N && j?.provider === "value") {
|
|
3993
|
+
_(j.items), v(!1);
|
|
3969
3994
|
return;
|
|
3970
3995
|
}
|
|
3971
3996
|
if (!t || typeof t.find != "function") throw Error("DataSource required for object/api providers");
|
|
3972
|
-
if (
|
|
3973
|
-
let n =
|
|
3974
|
-
|
|
3997
|
+
if (j?.provider === "object") {
|
|
3998
|
+
let n = j.object, r = h(b?.fields);
|
|
3999
|
+
_(ee(await t.find(n, {
|
|
3975
4000
|
$filter: e.filter,
|
|
3976
|
-
$orderby:
|
|
4001
|
+
$orderby: Wo(e.sort),
|
|
3977
4002
|
...r.length > 0 ? { $expand: r } : {}
|
|
3978
4003
|
})));
|
|
3979
|
-
} else
|
|
3980
|
-
|
|
4004
|
+
} else j?.provider === "api" && (console.warn("API provider not yet implemented for ObjectMap"), _([]));
|
|
4005
|
+
v(!1);
|
|
3981
4006
|
} catch (e) {
|
|
3982
|
-
|
|
4007
|
+
oe(e), v(!1);
|
|
3983
4008
|
}
|
|
3984
4009
|
})();
|
|
3985
4010
|
}, [
|
|
3986
|
-
|
|
4011
|
+
j,
|
|
3987
4012
|
t,
|
|
3988
|
-
|
|
4013
|
+
N,
|
|
3989
4014
|
e.filter,
|
|
3990
4015
|
e.sort,
|
|
3991
|
-
|
|
3992
|
-
]),
|
|
3993
|
-
!
|
|
4016
|
+
b
|
|
4017
|
+
]), c(() => {
|
|
4018
|
+
!N && t && (async () => {
|
|
3994
4019
|
try {
|
|
3995
4020
|
if (!t) return;
|
|
3996
|
-
let n =
|
|
4021
|
+
let n = j?.provider === "object" ? j.object : e.objectName;
|
|
3997
4022
|
if (!n) return;
|
|
3998
|
-
|
|
4023
|
+
x(await t.getObjectSchema(n));
|
|
3999
4024
|
} catch (e) {
|
|
4000
4025
|
console.error("Failed to fetch object schema:", e);
|
|
4001
4026
|
}
|
|
@@ -4003,16 +4028,16 @@ var Ko = ({ schema: e, dataSource: t, className: n, onMarkerClick: r, onRowClick
|
|
|
4003
4028
|
}, [
|
|
4004
4029
|
e.objectName,
|
|
4005
4030
|
t,
|
|
4006
|
-
|
|
4007
|
-
|
|
4031
|
+
N,
|
|
4032
|
+
j
|
|
4008
4033
|
]);
|
|
4009
|
-
let { markers:
|
|
4034
|
+
let { markers: P, invalidCount: F } = d(() => {
|
|
4010
4035
|
let e = 0;
|
|
4011
4036
|
return {
|
|
4012
|
-
markers:
|
|
4013
|
-
let r =
|
|
4037
|
+
markers: g.map((t, n) => {
|
|
4038
|
+
let r = Ko(t, M);
|
|
4014
4039
|
if (!r) return e++, null;
|
|
4015
|
-
let i =
|
|
4040
|
+
let i = M.titleField ? t[M.titleField] : "Marker", a = M.descriptionField ? t[M.descriptionField] : void 0, [o, s] = r;
|
|
4016
4041
|
return !isFinite(o) || !isFinite(s) || o < -90 || o > 90 || s < -180 || s > 180 ? (e++, null) : {
|
|
4017
4042
|
id: t.id || t._id || `marker-${n}`,
|
|
4018
4043
|
title: i,
|
|
@@ -4023,40 +4048,40 @@ var Ko = ({ schema: e, dataSource: t, className: n, onMarkerClick: r, onRowClick
|
|
|
4023
4048
|
}).filter((e) => e !== null),
|
|
4024
4049
|
invalidCount: e
|
|
4025
4050
|
};
|
|
4026
|
-
}, [
|
|
4051
|
+
}, [g, M]), I = d(() => P.find((e) => e.id === se), [P, se]), [L, fe] = p(M.zoom || 3), pe = te({
|
|
4027
4052
|
navigation: e.navigation,
|
|
4028
4053
|
objectName: e.objectName,
|
|
4029
4054
|
onRowClick: i
|
|
4030
|
-
}),
|
|
4031
|
-
if (!
|
|
4032
|
-
let e =
|
|
4033
|
-
return
|
|
4034
|
-
}, [
|
|
4055
|
+
}), R = d(() => {
|
|
4056
|
+
if (!C.trim()) return P;
|
|
4057
|
+
let e = C.toLowerCase();
|
|
4058
|
+
return P.filter((t) => t.title?.toLowerCase().includes(e) || t.description?.toLowerCase().includes(e));
|
|
4059
|
+
}, [P, C]), me = d(() => l ?? (e.enableClustering || R.length > 100) ? qo(R, L, u) : R.map((e) => ({
|
|
4035
4060
|
id: e.id,
|
|
4036
4061
|
coordinates: e.coordinates,
|
|
4037
4062
|
markers: [e],
|
|
4038
4063
|
isCluster: !1
|
|
4039
4064
|
})), [
|
|
4040
|
-
|
|
4041
|
-
|
|
4042
|
-
c,
|
|
4065
|
+
R,
|
|
4066
|
+
L,
|
|
4043
4067
|
l,
|
|
4068
|
+
u,
|
|
4044
4069
|
e
|
|
4045
|
-
]),
|
|
4046
|
-
if (!
|
|
4047
|
-
longitude:
|
|
4048
|
-
latitude:
|
|
4049
|
-
zoom:
|
|
4070
|
+
]), he = d(() => {
|
|
4071
|
+
if (!R.length) return {
|
|
4072
|
+
longitude: M.center?.[1] || 0,
|
|
4073
|
+
latitude: M.center?.[0] || 0,
|
|
4074
|
+
zoom: M.zoom || 2
|
|
4050
4075
|
};
|
|
4051
|
-
let e =
|
|
4076
|
+
let e = R.map((e) => e.coordinates[0]), t = R.map((e) => e.coordinates[1]), n = Math.min(...e), r = Math.max(...e), i = Math.min(...t), a = Math.max(...t);
|
|
4052
4077
|
return {
|
|
4053
4078
|
longitude: (n + r) / 2,
|
|
4054
4079
|
latitude: (i + a) / 2,
|
|
4055
|
-
zoom:
|
|
4080
|
+
zoom: M.zoom || 3
|
|
4056
4081
|
};
|
|
4057
|
-
}, [
|
|
4058
|
-
return
|
|
4059
|
-
className:
|
|
4082
|
+
}, [R, M]);
|
|
4083
|
+
return ae ? /* @__PURE__ */ (0, $.jsx)("div", {
|
|
4084
|
+
className: re("min-w-0 overflow-hidden", n),
|
|
4060
4085
|
children: /* @__PURE__ */ (0, $.jsx)("div", {
|
|
4061
4086
|
className: "flex items-center justify-center h-96 bg-muted rounded-lg border",
|
|
4062
4087
|
children: /* @__PURE__ */ (0, $.jsx)("div", {
|
|
@@ -4064,115 +4089,202 @@ var Ko = ({ schema: e, dataSource: t, className: n, onMarkerClick: r, onRowClick
|
|
|
4064
4089
|
children: "Loading map..."
|
|
4065
4090
|
})
|
|
4066
4091
|
})
|
|
4067
|
-
}) :
|
|
4068
|
-
className:
|
|
4092
|
+
}) : y ? /* @__PURE__ */ (0, $.jsx)("div", {
|
|
4093
|
+
className: re("min-w-0 overflow-hidden", n),
|
|
4069
4094
|
children: /* @__PURE__ */ (0, $.jsx)("div", {
|
|
4070
4095
|
className: "flex items-center justify-center h-96 bg-muted rounded-lg border",
|
|
4071
4096
|
children: /* @__PURE__ */ (0, $.jsxs)("div", {
|
|
4072
4097
|
className: "text-destructive",
|
|
4073
|
-
children: ["Error: ",
|
|
4098
|
+
children: ["Error: ", y.message]
|
|
4074
4099
|
})
|
|
4075
4100
|
})
|
|
4076
4101
|
}) : /* @__PURE__ */ (0, $.jsxs)("div", {
|
|
4077
|
-
className:
|
|
4102
|
+
className: re("min-w-0 overflow-hidden", n),
|
|
4078
4103
|
children: [
|
|
4079
|
-
|
|
4104
|
+
F > 0 && /* @__PURE__ */ (0, $.jsx)("div", {
|
|
4080
4105
|
className: "mb-2 p-2 text-sm text-yellow-800 bg-yellow-50 border border-yellow-200 rounded",
|
|
4081
|
-
children: `${
|
|
4106
|
+
children: `${F} record${F === 1 ? "" : "s"} with missing or invalid coordinates excluded from the map.`
|
|
4082
4107
|
}),
|
|
4083
|
-
|
|
4108
|
+
P.length > 0 && /* @__PURE__ */ (0, $.jsx)("div", {
|
|
4084
4109
|
className: "mb-2",
|
|
4085
4110
|
children: /* @__PURE__ */ (0, $.jsx)("input", {
|
|
4086
4111
|
type: "text",
|
|
4087
|
-
value:
|
|
4088
|
-
onChange: (e) =>
|
|
4112
|
+
value: C,
|
|
4113
|
+
onChange: (e) => ce(e.target.value),
|
|
4089
4114
|
placeholder: "Search locations…",
|
|
4090
4115
|
className: "w-full px-3 py-2 text-sm border rounded-md bg-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring"
|
|
4091
4116
|
})
|
|
4092
4117
|
}),
|
|
4093
|
-
/* @__PURE__ */ (0, $.
|
|
4118
|
+
/* @__PURE__ */ (0, $.jsxs)("div", {
|
|
4094
4119
|
className: "relative border rounded-lg overflow-hidden bg-muted h-[300px] sm:h-[400px] md:h-[500px] lg:h-[600px] w-full",
|
|
4095
|
-
children:
|
|
4096
|
-
|
|
4097
|
-
|
|
4098
|
-
|
|
4099
|
-
|
|
4100
|
-
|
|
4101
|
-
|
|
4102
|
-
|
|
4103
|
-
|
|
4104
|
-
|
|
4105
|
-
|
|
4106
|
-
|
|
4107
|
-
|
|
4108
|
-
|
|
4109
|
-
|
|
4110
|
-
|
|
4111
|
-
|
|
4112
|
-
|
|
4113
|
-
|
|
4114
|
-
|
|
4115
|
-
|
|
4116
|
-
|
|
4117
|
-
|
|
4118
|
-
|
|
4119
|
-
|
|
4120
|
-
|
|
4120
|
+
children: [
|
|
4121
|
+
/* @__PURE__ */ (0, $.jsxs)(Eo, {
|
|
4122
|
+
ref: (e) => {
|
|
4123
|
+
T.current = e;
|
|
4124
|
+
},
|
|
4125
|
+
initialViewState: he,
|
|
4126
|
+
style: {
|
|
4127
|
+
width: "100%",
|
|
4128
|
+
height: "100%"
|
|
4129
|
+
},
|
|
4130
|
+
mapStyle: "https://demotiles.maplibre.org/style.json",
|
|
4131
|
+
touchZoomRotate: !0,
|
|
4132
|
+
dragRotate: !0,
|
|
4133
|
+
touchPitch: !0,
|
|
4134
|
+
onZoom: (e) => fe(Math.round(e.viewState.zoom)),
|
|
4135
|
+
children: [
|
|
4136
|
+
/* @__PURE__ */ (0, $.jsx)(Io, {
|
|
4137
|
+
position: "top-right",
|
|
4138
|
+
showCompass: !0,
|
|
4139
|
+
showZoom: !0
|
|
4140
|
+
}),
|
|
4141
|
+
/* @__PURE__ */ (0, $.jsx)("button", {
|
|
4142
|
+
type: "button",
|
|
4143
|
+
onClick: de,
|
|
4144
|
+
disabled: le,
|
|
4145
|
+
className: "absolute top-2 left-2 z-10 inline-flex items-center justify-center size-9 rounded-md bg-background/95 border shadow-sm hover:bg-background disabled:opacity-50",
|
|
4146
|
+
"aria-label": "Show my location",
|
|
4147
|
+
"data-testid": "map-geolocate",
|
|
4148
|
+
children: /* @__PURE__ */ (0, $.jsx)("span", {
|
|
4149
|
+
"aria-hidden": "true",
|
|
4150
|
+
children: le ? "⏳" : "🧭"
|
|
4151
|
+
})
|
|
4152
|
+
}),
|
|
4153
|
+
E && /* @__PURE__ */ (0, $.jsx)(Ao, {
|
|
4154
|
+
longitude: E.lng,
|
|
4155
|
+
latitude: E.lat,
|
|
4156
|
+
anchor: "center",
|
|
4157
|
+
children: /* @__PURE__ */ (0, $.jsx)("div", {
|
|
4158
|
+
className: "size-3 rounded-full bg-blue-500 ring-4 ring-blue-500/30 shadow",
|
|
4159
|
+
"aria-label": "Your location",
|
|
4160
|
+
"data-testid": "map-user-location"
|
|
4161
|
+
})
|
|
4162
|
+
}),
|
|
4163
|
+
me.map((e) => e.isCluster ? /* @__PURE__ */ (0, $.jsx)(Ao, {
|
|
4164
|
+
longitude: e.coordinates[0],
|
|
4165
|
+
latitude: e.coordinates[1],
|
|
4166
|
+
anchor: "center",
|
|
4167
|
+
onClick: (t) => {
|
|
4168
|
+
t.originalEvent.stopPropagation();
|
|
4169
|
+
try {
|
|
4170
|
+
let t = Math.min(20, Math.max(L + 2, 8));
|
|
4171
|
+
T.current?.flyTo({
|
|
4172
|
+
center: [e.coordinates[0], e.coordinates[1]],
|
|
4173
|
+
zoom: t,
|
|
4174
|
+
duration: 600
|
|
4175
|
+
});
|
|
4176
|
+
} catch {}
|
|
4121
4177
|
},
|
|
4122
|
-
|
|
4123
|
-
|
|
4124
|
-
|
|
4125
|
-
|
|
4126
|
-
|
|
4127
|
-
|
|
4128
|
-
|
|
4129
|
-
|
|
4130
|
-
|
|
4131
|
-
|
|
4132
|
-
|
|
4133
|
-
|
|
4134
|
-
|
|
4135
|
-
|
|
4136
|
-
|
|
4178
|
+
children: /* @__PURE__ */ (0, $.jsx)("div", {
|
|
4179
|
+
className: "flex items-center justify-center rounded-full bg-primary text-primary-foreground font-bold text-xs cursor-pointer hover:scale-110 transition-transform shadow-md",
|
|
4180
|
+
style: {
|
|
4181
|
+
width: Math.min(48, 24 + e.markers.length * 2),
|
|
4182
|
+
height: Math.min(48, 24 + e.markers.length * 2)
|
|
4183
|
+
},
|
|
4184
|
+
title: `${e.markers.length} markers`,
|
|
4185
|
+
"data-testid": "map-cluster",
|
|
4186
|
+
children: e.markers.length
|
|
4187
|
+
})
|
|
4188
|
+
}, e.id) : /* @__PURE__ */ (0, $.jsx)(Ao, {
|
|
4189
|
+
longitude: e.coordinates[0],
|
|
4190
|
+
latitude: e.coordinates[1],
|
|
4191
|
+
anchor: "bottom",
|
|
4192
|
+
onClick: (t) => {
|
|
4193
|
+
t.originalEvent.stopPropagation();
|
|
4194
|
+
let n = e.markers[0];
|
|
4195
|
+
S(n.id), pe.handleClick(n.data), r?.(n.data);
|
|
4196
|
+
},
|
|
4197
|
+
children: /* @__PURE__ */ (0, $.jsx)("div", {
|
|
4198
|
+
className: "text-2xl cursor-pointer hover:scale-110 transition-transform",
|
|
4199
|
+
children: "📍"
|
|
4200
|
+
})
|
|
4201
|
+
}, e.id)),
|
|
4202
|
+
I && !w && /* @__PURE__ */ (0, $.jsx)(jo, {
|
|
4203
|
+
longitude: I.coordinates[0],
|
|
4204
|
+
latitude: I.coordinates[1],
|
|
4205
|
+
anchor: "top",
|
|
4206
|
+
onClose: () => S(null),
|
|
4207
|
+
closeOnClick: !1,
|
|
4208
|
+
children: /* @__PURE__ */ (0, $.jsxs)("div", {
|
|
4209
|
+
className: "p-2 min-w-[150px] sm:min-w-[200px]",
|
|
4210
|
+
children: [
|
|
4211
|
+
/* @__PURE__ */ (0, $.jsx)("h3", {
|
|
4212
|
+
className: "font-bold text-sm mb-1",
|
|
4213
|
+
children: I.title
|
|
4214
|
+
}),
|
|
4215
|
+
I.description && /* @__PURE__ */ (0, $.jsx)("p", {
|
|
4216
|
+
className: "text-xs text-muted-foreground",
|
|
4217
|
+
children: I.description
|
|
4218
|
+
}),
|
|
4219
|
+
/* @__PURE__ */ (0, $.jsxs)("div", {
|
|
4220
|
+
className: "mt-2 text-xs flex gap-2",
|
|
4221
|
+
children: [a && /* @__PURE__ */ (0, $.jsx)("button", {
|
|
4222
|
+
className: "text-blue-500 hover:underline",
|
|
4223
|
+
onClick: () => a(I.data),
|
|
4224
|
+
children: "Edit"
|
|
4225
|
+
}), s && /* @__PURE__ */ (0, $.jsx)("button", {
|
|
4226
|
+
className: "text-red-500 hover:underline",
|
|
4227
|
+
onClick: () => s(I.data),
|
|
4228
|
+
children: "Delete"
|
|
4229
|
+
})]
|
|
4230
|
+
})
|
|
4231
|
+
]
|
|
4232
|
+
})
|
|
4137
4233
|
})
|
|
4138
|
-
|
|
4139
|
-
|
|
4140
|
-
|
|
4141
|
-
|
|
4142
|
-
|
|
4143
|
-
|
|
4144
|
-
|
|
4145
|
-
|
|
4146
|
-
|
|
4147
|
-
|
|
4148
|
-
|
|
4149
|
-
|
|
4150
|
-
|
|
4151
|
-
|
|
4152
|
-
|
|
4153
|
-
|
|
4154
|
-
|
|
4155
|
-
|
|
4156
|
-
|
|
4157
|
-
|
|
4158
|
-
|
|
4159
|
-
|
|
4160
|
-
|
|
4161
|
-
|
|
4162
|
-
|
|
4163
|
-
|
|
4164
|
-
|
|
4165
|
-
|
|
4166
|
-
|
|
4167
|
-
|
|
4168
|
-
]
|
|
4234
|
+
]
|
|
4235
|
+
}),
|
|
4236
|
+
I && w && /* @__PURE__ */ (0, $.jsxs)("div", {
|
|
4237
|
+
className: "absolute inset-x-0 bottom-0 z-30 bg-background border-t shadow-lg rounded-t-2xl p-4 pb-[max(env(safe-area-inset-bottom),1rem)]",
|
|
4238
|
+
role: "dialog",
|
|
4239
|
+
"aria-label": "Location details",
|
|
4240
|
+
"data-testid": "map-mobile-record-sheet",
|
|
4241
|
+
children: [
|
|
4242
|
+
/* @__PURE__ */ (0, $.jsx)("div", {
|
|
4243
|
+
className: "mx-auto mb-2 h-1 w-10 rounded-full bg-muted",
|
|
4244
|
+
"aria-hidden": "true"
|
|
4245
|
+
}),
|
|
4246
|
+
/* @__PURE__ */ (0, $.jsxs)("div", {
|
|
4247
|
+
className: "flex items-start justify-between gap-3",
|
|
4248
|
+
children: [/* @__PURE__ */ (0, $.jsxs)("div", {
|
|
4249
|
+
className: "min-w-0 flex-1",
|
|
4250
|
+
children: [/* @__PURE__ */ (0, $.jsx)("h3", {
|
|
4251
|
+
className: "text-sm font-semibold truncate",
|
|
4252
|
+
children: I.title
|
|
4253
|
+
}), I.description && /* @__PURE__ */ (0, $.jsx)("p", {
|
|
4254
|
+
className: "mt-1 text-xs text-muted-foreground line-clamp-3",
|
|
4255
|
+
children: I.description
|
|
4256
|
+
})]
|
|
4257
|
+
}), /* @__PURE__ */ (0, $.jsx)("button", {
|
|
4258
|
+
type: "button",
|
|
4259
|
+
onClick: () => S(null),
|
|
4260
|
+
className: "text-muted-foreground hover:text-foreground text-lg leading-none px-2",
|
|
4261
|
+
"aria-label": "Close details",
|
|
4262
|
+
"data-testid": "map-mobile-record-close",
|
|
4263
|
+
children: "×"
|
|
4264
|
+
})]
|
|
4265
|
+
}),
|
|
4266
|
+
/* @__PURE__ */ (0, $.jsxs)("div", {
|
|
4267
|
+
className: "mt-3 flex flex-wrap gap-2 text-xs",
|
|
4268
|
+
children: [a && /* @__PURE__ */ (0, $.jsx)("button", {
|
|
4269
|
+
className: "px-3 py-1.5 rounded-md border bg-card hover:bg-accent",
|
|
4270
|
+
onClick: () => a(I.data),
|
|
4271
|
+
children: "Edit"
|
|
4272
|
+
}), s && /* @__PURE__ */ (0, $.jsx)("button", {
|
|
4273
|
+
className: "px-3 py-1.5 rounded-md border border-destructive/30 text-destructive hover:bg-destructive/10",
|
|
4274
|
+
onClick: () => s(I.data),
|
|
4275
|
+
children: "Delete"
|
|
4276
|
+
})]
|
|
4169
4277
|
})
|
|
4170
|
-
|
|
4171
|
-
|
|
4172
|
-
|
|
4278
|
+
]
|
|
4279
|
+
}),
|
|
4280
|
+
O && /* @__PURE__ */ (0, $.jsx)("div", {
|
|
4281
|
+
className: "absolute top-2 left-14 right-2 z-10 text-xs px-3 py-1.5 rounded-md bg-destructive/10 text-destructive border border-destructive/30",
|
|
4282
|
+
children: O
|
|
4283
|
+
})
|
|
4284
|
+
]
|
|
4173
4285
|
}),
|
|
4174
|
-
|
|
4175
|
-
...
|
|
4286
|
+
pe.isOverlay && /* @__PURE__ */ (0, $.jsx)(ne, {
|
|
4287
|
+
...pe,
|
|
4176
4288
|
title: "Location Details",
|
|
4177
4289
|
children: (e) => /* @__PURE__ */ (0, $.jsx)("div", {
|
|
4178
4290
|
className: "space-y-3",
|
|
@@ -4190,15 +4302,15 @@ var Ko = ({ schema: e, dataSource: t, className: n, onMarkerClick: r, onRowClick
|
|
|
4190
4302
|
})
|
|
4191
4303
|
]
|
|
4192
4304
|
});
|
|
4193
|
-
},
|
|
4305
|
+
}, Yo = ({ schema: e, ...t }) => {
|
|
4194
4306
|
let { dataSource: n } = g() || {};
|
|
4195
|
-
return /* @__PURE__ */ (0, $.jsx)(
|
|
4307
|
+
return /* @__PURE__ */ (0, $.jsx)(Jo, {
|
|
4196
4308
|
schema: e,
|
|
4197
4309
|
dataSource: n,
|
|
4198
4310
|
...t
|
|
4199
4311
|
});
|
|
4200
4312
|
};
|
|
4201
|
-
console.log("Registering object-map..."),
|
|
4313
|
+
console.log("Registering object-map..."), m.register("object-map", Yo, {
|
|
4202
4314
|
namespace: "plugin-map",
|
|
4203
4315
|
label: "Object Map",
|
|
4204
4316
|
category: "view",
|
|
@@ -4213,7 +4325,7 @@ console.log("Registering object-map..."), p.register("object-map", qo, {
|
|
|
4213
4325
|
label: "Map Config",
|
|
4214
4326
|
description: "latitudeField, longitudeField, titleField"
|
|
4215
4327
|
}]
|
|
4216
|
-
}),
|
|
4328
|
+
}), m.register("map", Yo, {
|
|
4217
4329
|
namespace: "view",
|
|
4218
4330
|
label: "Map View",
|
|
4219
4331
|
category: "view",
|
|
@@ -4230,4 +4342,4 @@ console.log("Registering object-map..."), p.register("object-map", qo, {
|
|
|
4230
4342
|
}]
|
|
4231
4343
|
});
|
|
4232
4344
|
//#endregion
|
|
4233
|
-
export {
|
|
4345
|
+
export { Jo as ObjectMap, Yo as ObjectMapRenderer };
|