zudoku 0.66.2 → 0.66.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/config/validators/validate.d.ts +32 -3
- package/dist/config/validators/validate.js +1 -1
- package/dist/config/validators/validate.js.map +1 -1
- package/dist/flat-config.d.ts +1 -1
- package/dist/lib/auth/issuer.js +1 -1
- package/dist/lib/auth/issuer.js.map +1 -1
- package/dist/lib/authentication/authentication.d.ts +3 -2
- package/dist/lib/authentication/hook.d.ts +2 -0
- package/dist/lib/authentication/hook.js +10 -0
- package/dist/lib/authentication/hook.js.map +1 -1
- package/dist/lib/authentication/providers/firebase.js +67 -9
- package/dist/lib/authentication/providers/firebase.js.map +1 -1
- package/dist/lib/authentication/ui/EmailVerificationUi.d.ts +4 -0
- package/dist/lib/authentication/ui/EmailVerificationUi.js +34 -0
- package/dist/lib/authentication/ui/EmailVerificationUi.js.map +1 -0
- package/dist/lib/authentication/ui/ZudokuAuthUi.d.ts +7 -2
- package/dist/lib/authentication/ui/ZudokuAuthUi.js +43 -11
- package/dist/lib/authentication/ui/ZudokuAuthUi.js.map +1 -1
- package/dist/lib/authentication/utils/relativeRedirectUrl.d.ts +1 -0
- package/dist/lib/authentication/utils/relativeRedirectUrl.js +8 -0
- package/dist/lib/authentication/utils/relativeRedirectUrl.js.map +1 -0
- package/dist/lib/components/index.d.ts +2 -0
- package/dist/lib/errors/ErrorMessage.d.ts +3 -0
- package/dist/lib/errors/ErrorMessage.js +16 -0
- package/dist/lib/errors/ErrorMessage.js.map +1 -0
- package/dist/lib/hooks/index.d.ts +2 -0
- package/dist/lib/plugins/api-keys/SettingsApiKeys.js +9 -172
- package/dist/lib/plugins/api-keys/SettingsApiKeys.js.map +1 -1
- package/dist/lib/plugins/api-keys/index.d.ts +4 -1
- package/dist/lib/plugins/api-keys/index.js +19 -14
- package/dist/lib/plugins/api-keys/index.js.map +1 -1
- package/dist/lib/plugins/api-keys/settings/ApiKeyItem.d.ts +12 -0
- package/dist/lib/plugins/api-keys/settings/ApiKeyItem.js +133 -0
- package/dist/lib/plugins/api-keys/settings/ApiKeyItem.js.map +1 -0
- package/dist/lib/plugins/api-keys/settings/ApiKeyList.d.ts +4 -0
- package/dist/lib/plugins/api-keys/settings/ApiKeyList.js +30 -0
- package/dist/lib/plugins/api-keys/settings/ApiKeyList.js.map +1 -0
- package/dist/lib/plugins/api-keys/settings/RevealApiKey.d.ts +6 -0
- package/dist/lib/plugins/api-keys/settings/RevealApiKey.js +39 -0
- package/dist/lib/plugins/api-keys/settings/RevealApiKey.js.map +1 -0
- package/dist/vite/config.js +7 -0
- package/dist/vite/config.js.map +1 -1
- package/dist/vite/plugin-api-keys.js +4 -1
- package/dist/vite/plugin-api-keys.js.map +1 -1
- package/dist/vite/zuplo.d.ts +13 -0
- package/dist/vite/zuplo.js +15 -0
- package/dist/vite/zuplo.js.map +1 -0
- package/lib/{ClaudeLogo-CGRfGTk2.js → ClaudeLogo-BZslN9XF.js} +3 -3
- package/lib/{ClaudeLogo-CGRfGTk2.js.map → ClaudeLogo-BZslN9XF.js.map} +1 -1
- package/lib/{Drawer-Ci7XwhqT.js → Drawer-BRMcpfuF.js} +6 -6
- package/lib/{Drawer-Ci7XwhqT.js.map → Drawer-BRMcpfuF.js.map} +1 -1
- package/lib/Frame-DxlznfVd.js +205 -0
- package/lib/Frame-DxlznfVd.js.map +1 -0
- package/lib/{useMutation-C6RqWmTS.js → Input-D-kqEQ5M.js} +41 -23
- package/lib/Input-D-kqEQ5M.js.map +1 -0
- package/lib/{MdxPage-Bjf72BP3.js → MdxPage-B4zZq5aR.js} +8 -8
- package/lib/{MdxPage-Bjf72BP3.js.map → MdxPage-B4zZq5aR.js.map} +1 -1
- package/lib/{Mermaid-D_VSX7_Q.js → Mermaid-BjSczjLW.js} +3 -3
- package/lib/{Mermaid-D_VSX7_Q.js.map → Mermaid-BjSczjLW.js.map} +1 -1
- package/lib/{OAuthErrorPage-1Ekji0PK.js → OAuthErrorPage-DRY2hlga.js} +20 -21
- package/lib/{OAuthErrorPage-1Ekji0PK.js.map → OAuthErrorPage-DRY2hlga.js.map} +1 -1
- package/lib/{OasProvider-BZxmTyMM.js → OasProvider-lMwTD76Y.js} +4 -4
- package/lib/{OasProvider-BZxmTyMM.js.map → OasProvider-lMwTD76Y.js.map} +1 -1
- package/lib/{OperationList-B7nPIFB8.js → OperationList-Bm76b4vl.js} +23 -24
- package/lib/{OperationList-B7nPIFB8.js.map → OperationList-Bm76b4vl.js.map} +1 -1
- package/lib/{RouteGuard-9wjejsKm.js → RouteGuard-DGc32XJV.js} +4 -4
- package/lib/{RouteGuard-9wjejsKm.js.map → RouteGuard-DGc32XJV.js.map} +1 -1
- package/lib/{SchemaList-16_obkku.js → SchemaList-DX4FPogg.js} +7 -7
- package/lib/{SchemaList-16_obkku.js.map → SchemaList-DX4FPogg.js.map} +1 -1
- package/lib/SchemaView-CjXvSRxy.js +434 -0
- package/lib/SchemaView-CjXvSRxy.js.map +1 -0
- package/lib/{Select-CkxXP5I7.js → Secret-BxGpIhDP.js} +121 -121
- package/lib/Secret-BxGpIhDP.js.map +1 -0
- package/lib/{SignUp-D54_QWFy.js → SignUp-CntxjFGS.js} +4 -4
- package/lib/{SignUp-D54_QWFy.js.map → SignUp-CntxjFGS.js.map} +1 -1
- package/lib/{SyntaxHighlight-j_HRSPCU.js → SyntaxHighlight-Dgd0AaaX.js} +2 -2
- package/lib/{SyntaxHighlight-j_HRSPCU.js.map → SyntaxHighlight-Dgd0AaaX.js.map} +1 -1
- package/lib/{Toc-z05x698-.js → Toc-L1vGGHA1.js} +2 -2
- package/lib/{Toc-z05x698-.js.map → Toc-L1vGGHA1.js.map} +1 -1
- package/lib/{ZudokuContext-BXldanA8.js → ZudokuContext-DNHMZfcP.js} +33 -33
- package/lib/{ZudokuContext-BXldanA8.js.map → ZudokuContext-DNHMZfcP.js.map} +1 -1
- package/lib/{chunk-PVWAREVJ-dLIqswPy.js → chunk-PVWAREVJ-ClM0m2aJ.js} +19 -19
- package/lib/{chunk-PVWAREVJ-dLIqswPy.js.map → chunk-PVWAREVJ-ClM0m2aJ.js.map} +1 -1
- package/lib/{circular-D5sYCIWL.js → circular-BIN_WQ0c.js} +2 -2
- package/lib/{circular-D5sYCIWL.js.map → circular-BIN_WQ0c.js.map} +1 -1
- package/lib/{createServer-BlwU7lIr.js → createServer-BEl12QFw.js} +4 -4
- package/lib/{createServer-BlwU7lIr.js.map → createServer-BEl12QFw.js.map} +1 -1
- package/lib/createVariantComponent-CQVt-H3r.js +18 -0
- package/lib/createVariantComponent-CQVt-H3r.js.map +1 -0
- package/lib/{errors-BtC4Kn2j.js → errors-CtBbD47A.js} +2 -2
- package/lib/{errors-BtC4Kn2j.js.map → errors-CtBbD47A.js.map} +1 -1
- package/lib/{firebase-Ibm_tv3G.js → firebase-CT38ugg4.js} +1588 -1342
- package/lib/firebase-CT38ugg4.js.map +1 -0
- package/lib/hook-CHw_R_xu.js +52 -0
- package/lib/hook-CHw_R_xu.js.map +1 -0
- package/lib/{ErrorAlert-BUlG32M9.js → index-CG2v-T7-.js} +5373 -4335
- package/lib/index-CG2v-T7-.js.map +1 -0
- package/lib/{index-eKVhlB94.js → index-CISwSpdT.js} +2 -2
- package/lib/{index-eKVhlB94.js.map → index-CISwSpdT.js.map} +1 -1
- package/lib/{index-Css56y3F.js → index-DXXZDuSJ.js} +4 -4
- package/lib/{index-Css56y3F.js.map → index-DXXZDuSJ.js.map} +1 -1
- package/lib/{index-CeVTNcfF.js → index-jI2Fjpy-.js} +98 -99
- package/lib/{index-CeVTNcfF.js.map → index-jI2Fjpy-.js.map} +1 -1
- package/lib/{index.esm-BoKBnRoT.js → index.esm-Bu35TNgg.js} +16 -14
- package/lib/index.esm-Bu35TNgg.js.map +1 -0
- package/lib/{mutation-BoVlx8yA.js → mutation-DMHWqmFp.js} +2 -2
- package/lib/{mutation-BoVlx8yA.js.map → mutation-DMHWqmFp.js.map} +1 -1
- package/lib/ui/Drawer.js +2 -2
- package/lib/ui/SyntaxHighlight.js +2 -2
- package/lib/zudoku.__internal.js +507 -479
- package/lib/zudoku.__internal.js.map +1 -1
- package/lib/zudoku.auth-auth0.js +1 -1
- package/lib/zudoku.auth-azureb2c.js +4 -4
- package/lib/zudoku.auth-clerk.js +2 -2
- package/lib/zudoku.auth-firebase.js +6 -5
- package/lib/zudoku.auth-firebase.js.map +1 -1
- package/lib/zudoku.auth-openid.js +4 -4
- package/lib/zudoku.auth-supabase.js +5 -5
- package/lib/zudoku.components.js +20 -21
- package/lib/zudoku.components.js.map +1 -1
- package/lib/zudoku.hooks.js +3 -3
- package/lib/zudoku.mermaid.js +3 -3
- package/lib/zudoku.plugin-api-catalog.js +8 -9
- package/lib/zudoku.plugin-api-catalog.js.map +1 -1
- package/lib/zudoku.plugin-api-keys.js +580 -543
- package/lib/zudoku.plugin-api-keys.js.map +1 -1
- package/lib/zudoku.plugin-custom-pages.js +1 -1
- package/lib/zudoku.plugin-markdown.js +1 -1
- package/lib/zudoku.plugin-openapi.js +3 -3
- package/lib/zudoku.plugin-redirect.js +1 -1
- package/lib/zudoku.plugin-search-pagefind.js +3 -3
- package/lib/zudoku.router.js +2 -2
- package/package.json +4 -2
- package/src/lib/auth/issuer.ts +1 -1
- package/src/lib/authentication/authentication.ts +8 -2
- package/src/lib/authentication/hook.ts +16 -0
- package/src/lib/authentication/providers/firebase.tsx +98 -6
- package/src/lib/authentication/ui/EmailVerificationUi.tsx +129 -0
- package/src/lib/authentication/ui/ZudokuAuthUi.tsx +170 -38
- package/src/lib/authentication/utils/relativeRedirectUrl.ts +12 -0
- package/src/lib/errors/ErrorMessage.tsx +38 -0
- package/src/lib/plugins/api-keys/SettingsApiKeys.tsx +36 -476
- package/src/lib/plugins/api-keys/index.tsx +33 -18
- package/src/lib/plugins/api-keys/settings/ApiKeyItem.tsx +342 -0
- package/src/lib/plugins/api-keys/settings/ApiKeyList.tsx +64 -0
- package/src/lib/plugins/api-keys/settings/RevealApiKey.tsx +124 -0
- package/lib/ErrorAlert-BUlG32M9.js.map +0 -1
- package/lib/RouterError-DfTZblpv.js +0 -42
- package/lib/RouterError-DfTZblpv.js.map +0 -1
- package/lib/SchemaView-eyvR4bRt.js +0 -597
- package/lib/SchemaView-eyvR4bRt.js.map +0 -1
- package/lib/Select-CkxXP5I7.js.map +0 -1
- package/lib/createVariantComponent-B9_dVBvu.js +0 -35
- package/lib/createVariantComponent-B9_dVBvu.js.map +0 -1
- package/lib/firebase-Ibm_tv3G.js.map +0 -1
- package/lib/hook-BNxidGQq.js +0 -40
- package/lib/hook-BNxidGQq.js.map +0 -1
- package/lib/index-DSOi7zVM.js +0 -1059
- package/lib/index-DSOi7zVM.js.map +0 -1
- package/lib/index.esm-BoKBnRoT.js.map +0 -1
- package/lib/useMutation-C6RqWmTS.js.map +0 -1
package/lib/zudoku.__internal.js
CHANGED
|
@@ -1,23 +1,21 @@
|
|
|
1
1
|
import { a as Ke, H as He } from "./index.esm-DtzT_KoE.js";
|
|
2
2
|
import { j as a } from "./jsx-runtime-BzflLqGi.js";
|
|
3
|
-
import { S as Ve,
|
|
4
|
-
import { M as
|
|
5
|
-
import * as
|
|
6
|
-
import { StrictMode as Ye, useEffect as oe, useRef as Xe, useState as
|
|
7
|
-
import {
|
|
8
|
-
import * as
|
|
9
|
-
import { a as
|
|
10
|
-
import { B as
|
|
11
|
-
import { CircleFadingArrowUpIcon as
|
|
12
|
-
import { Button as
|
|
13
|
-
import { a as C, A as tn, s as nn, N as Ze, f as rn, g as on, T as sn, H as an, E as cn } from "./ErrorAlert-BUlG32M9.js";
|
|
3
|
+
import { S as Ve, o as Je, Q as Et, n as j, p as ye, q as we, i as S, r as At, v as Tt, w as Dt, x as St, y as be, z as ze, A as It, h as ke, B as xe, D as Ct, E as Nt, g as Rt, F as Ge, f as Ut, a as re, G as Ft, j as qt } from "./ZudokuContext-DNHMZfcP.js";
|
|
4
|
+
import { M as Mt } from "./mutation-DMHWqmFp.js";
|
|
5
|
+
import * as I from "react";
|
|
6
|
+
import { StrictMode as Ye, useEffect as oe, useRef as Xe, useState as Qt, Suspense as Lt } from "react";
|
|
7
|
+
import { q as Bt, S as Wt, a as et, b2 as Kt, O as Ht, d as Vt, L as Jt, h as Gt, x as Yt } from "./chunk-PVWAREVJ-ClM0m2aJ.js";
|
|
8
|
+
import * as Xt from "react-dom";
|
|
9
|
+
import { f as en, a as tn, d as C, A as nn, s as rn, P as on, N as Ze, g as sn, h as an, i as cn, T as tt, H as nt, D as un, j as rt } from "./index-CG2v-T7-.js";
|
|
10
|
+
import { B as ot, R as ln } from "./RouteGuard-DGc32XJV.js";
|
|
11
|
+
import { CircleFadingArrowUpIcon as dn, LoaderCircleIcon as hn, ExternalLink as fn, PanelLeftIcon as pn, UnlinkIcon as mn } from "lucide-react";
|
|
12
|
+
import { Button as gn } from "./ui/Button.js";
|
|
14
13
|
import { c as E } from "./cn-dYga0KKN.js";
|
|
15
|
-
import {
|
|
16
|
-
import { VisuallyHidden as
|
|
17
|
-
import { S as
|
|
18
|
-
import { C as
|
|
19
|
-
|
|
20
|
-
var gn = class extends Ve {
|
|
14
|
+
import { D as A, a as vn, b as _n } from "./Drawer-BRMcpfuF.js";
|
|
15
|
+
import { VisuallyHidden as yn } from "@radix-ui/react-visually-hidden";
|
|
16
|
+
import { S as wn } from "./Spinner-CI6bRyZw.js";
|
|
17
|
+
import { C as st } from "./CategoryHeading-DhmodDcq.js";
|
|
18
|
+
var bn = class extends Ve {
|
|
21
19
|
constructor(e = {}) {
|
|
22
20
|
super(), this.config = e, this.#e = /* @__PURE__ */ new Map();
|
|
23
21
|
}
|
|
@@ -25,7 +23,7 @@ var gn = class extends Ve {
|
|
|
25
23
|
build(e, t, n) {
|
|
26
24
|
const r = t.queryKey, o = t.queryHash ?? Je(r, t);
|
|
27
25
|
let s = this.get(o);
|
|
28
|
-
return s || (s = new
|
|
26
|
+
return s || (s = new Et({
|
|
29
27
|
client: e,
|
|
30
28
|
queryKey: r,
|
|
31
29
|
queryHash: o,
|
|
@@ -88,7 +86,7 @@ var gn = class extends Ve {
|
|
|
88
86
|
});
|
|
89
87
|
});
|
|
90
88
|
}
|
|
91
|
-
},
|
|
89
|
+
}, zn = class extends Ve {
|
|
92
90
|
constructor(e = {}) {
|
|
93
91
|
super(), this.config = e, this.#e = /* @__PURE__ */ new Set(), this.#t = /* @__PURE__ */ new Map(), this.#n = 0;
|
|
94
92
|
}
|
|
@@ -96,7 +94,7 @@ var gn = class extends Ve {
|
|
|
96
94
|
#t;
|
|
97
95
|
#n;
|
|
98
96
|
build(e, t, n) {
|
|
99
|
-
const r = new
|
|
97
|
+
const r = new Mt({
|
|
100
98
|
mutationCache: this,
|
|
101
99
|
mutationId: ++this.#n,
|
|
102
100
|
options: e.defaultMutationOptions(t),
|
|
@@ -171,7 +169,7 @@ var gn = class extends Ve {
|
|
|
171
169
|
const e = this.getAll().filter((t) => t.state.isPaused);
|
|
172
170
|
return j.batch(
|
|
173
171
|
() => Promise.all(
|
|
174
|
-
e.map((t) => t.continue().catch(
|
|
172
|
+
e.map((t) => t.continue().catch(S))
|
|
175
173
|
)
|
|
176
174
|
);
|
|
177
175
|
}
|
|
@@ -193,7 +191,7 @@ function $e(e) {
|
|
|
193
191
|
f = !0;
|
|
194
192
|
}), t.signal)
|
|
195
193
|
});
|
|
196
|
-
}, p =
|
|
194
|
+
}, p = At(t.options, t.fetchOptions), v = async (m, k, P) => {
|
|
197
195
|
if (f)
|
|
198
196
|
return Promise.reject();
|
|
199
197
|
if (k == null && m.pages.length)
|
|
@@ -207,14 +205,14 @@ function $e(e) {
|
|
|
207
205
|
meta: t.options.meta
|
|
208
206
|
};
|
|
209
207
|
return g(H), H;
|
|
210
|
-
})(), $ = await p(L), { maxPages: x } = t.options,
|
|
208
|
+
})(), $ = await p(L), { maxPages: x } = t.options, D = P ? Tt : Dt;
|
|
211
209
|
return {
|
|
212
|
-
pages:
|
|
213
|
-
pageParams:
|
|
210
|
+
pages: D(m.pages, $, x),
|
|
211
|
+
pageParams: D(m.pageParams, k, x)
|
|
214
212
|
};
|
|
215
213
|
};
|
|
216
214
|
if (o && s.length) {
|
|
217
|
-
const m = o === "backward", k = m ?
|
|
215
|
+
const m = o === "backward", k = m ? kn : je, P = {
|
|
218
216
|
pages: s,
|
|
219
217
|
pageParams: i
|
|
220
218
|
}, Z = k(r, P);
|
|
@@ -252,10 +250,10 @@ function je(e, { pages: t, pageParams: n }) {
|
|
|
252
250
|
n
|
|
253
251
|
) : void 0;
|
|
254
252
|
}
|
|
255
|
-
function
|
|
253
|
+
function kn(e, { pages: t, pageParams: n }) {
|
|
256
254
|
return t.length > 0 ? e.getPreviousPageParam?.(t[0], t, n[0], n) : void 0;
|
|
257
255
|
}
|
|
258
|
-
var
|
|
256
|
+
var xn = class {
|
|
259
257
|
#e;
|
|
260
258
|
#t;
|
|
261
259
|
#n;
|
|
@@ -265,10 +263,10 @@ var yn = class {
|
|
|
265
263
|
#i;
|
|
266
264
|
#a;
|
|
267
265
|
constructor(e = {}) {
|
|
268
|
-
this.#e = e.queryCache || new
|
|
266
|
+
this.#e = e.queryCache || new bn(), this.#t = e.mutationCache || new zn(), this.#n = e.defaultOptions || {}, this.#o = /* @__PURE__ */ new Map(), this.#s = /* @__PURE__ */ new Map(), this.#r = 0;
|
|
269
267
|
}
|
|
270
268
|
mount() {
|
|
271
|
-
this.#r++, this.#r === 1 && (this.#i =
|
|
269
|
+
this.#r++, this.#r === 1 && (this.#i = St.subscribe(async (e) => {
|
|
272
270
|
e && (await this.resumePausedMutations(), this.#e.onFocus());
|
|
273
271
|
}), this.#a = be.subscribe(async (e) => {
|
|
274
272
|
e && (await this.resumePausedMutations(), this.#e.onOnline());
|
|
@@ -307,7 +305,7 @@ var yn = class {
|
|
|
307
305
|
setQueryData(e, t, n) {
|
|
308
306
|
const r = this.defaultQueryOptions({ queryKey: e }), s = this.#e.get(
|
|
309
307
|
r.queryHash
|
|
310
|
-
)?.state.data, i =
|
|
308
|
+
)?.state.data, i = It(t, s);
|
|
311
309
|
if (i !== void 0)
|
|
312
310
|
return this.#e.build(this, r).setData(i, { ...n, manual: !0 });
|
|
313
311
|
}
|
|
@@ -349,7 +347,7 @@ var yn = class {
|
|
|
349
347
|
const n = { revert: !0, ...t }, r = j.batch(
|
|
350
348
|
() => this.#e.findAll(e).map((o) => o.cancel(n))
|
|
351
349
|
);
|
|
352
|
-
return Promise.all(r).then(
|
|
350
|
+
return Promise.all(r).then(S).catch(S);
|
|
353
351
|
}
|
|
354
352
|
invalidateQueries(e, t = {}) {
|
|
355
353
|
return j.batch(() => (this.#e.findAll(e).forEach((n) => {
|
|
@@ -369,10 +367,10 @@ var yn = class {
|
|
|
369
367
|
}, r = j.batch(
|
|
370
368
|
() => this.#e.findAll(e).filter((o) => !o.isDisabled() && !o.isStatic()).map((o) => {
|
|
371
369
|
let s = o.fetch(void 0, n);
|
|
372
|
-
return n.throwOnError || (s = s.catch(
|
|
370
|
+
return n.throwOnError || (s = s.catch(S)), o.state.fetchStatus === "paused" ? Promise.resolve() : s;
|
|
373
371
|
})
|
|
374
372
|
);
|
|
375
|
-
return Promise.all(r).then(
|
|
373
|
+
return Promise.all(r).then(S);
|
|
376
374
|
}
|
|
377
375
|
fetchQuery(e) {
|
|
378
376
|
const t = this.defaultQueryOptions(e);
|
|
@@ -383,13 +381,13 @@ var yn = class {
|
|
|
383
381
|
) ? n.fetch(t) : Promise.resolve(n.state.data);
|
|
384
382
|
}
|
|
385
383
|
prefetchQuery(e) {
|
|
386
|
-
return this.fetchQuery(e).then(
|
|
384
|
+
return this.fetchQuery(e).then(S).catch(S);
|
|
387
385
|
}
|
|
388
386
|
fetchInfiniteQuery(e) {
|
|
389
387
|
return e.behavior = $e(e.pages), this.fetchQuery(e);
|
|
390
388
|
}
|
|
391
389
|
prefetchInfiniteQuery(e) {
|
|
392
|
-
return this.fetchInfiniteQuery(e).then(
|
|
390
|
+
return this.fetchInfiniteQuery(e).then(S).catch(S);
|
|
393
391
|
}
|
|
394
392
|
ensureInfiniteQueryData(e) {
|
|
395
393
|
return e.behavior = $e(e.pages), this.ensureQueryData(e);
|
|
@@ -445,7 +443,7 @@ var yn = class {
|
|
|
445
443
|
return t.queryHash || (t.queryHash = Je(
|
|
446
444
|
t.queryKey,
|
|
447
445
|
t
|
|
448
|
-
)), t.refetchOnReconnect === void 0 && (t.refetchOnReconnect = t.networkMode !== "always"), t.throwOnError === void 0 && (t.throwOnError = !!t.suspense), !t.networkMode && t.persister && (t.networkMode = "offlineFirst"), t.queryFn ===
|
|
446
|
+
)), t.refetchOnReconnect === void 0 && (t.refetchOnReconnect = t.networkMode !== "always"), t.throwOnError === void 0 && (t.throwOnError = !!t.suspense), !t.networkMode && t.persister && (t.networkMode = "offlineFirst"), t.queryFn === Ct && (t.enabled = !1), t;
|
|
449
447
|
}
|
|
450
448
|
defaultMutationOptions(e) {
|
|
451
449
|
return e?._defaulted ? e : {
|
|
@@ -459,13 +457,13 @@ var yn = class {
|
|
|
459
457
|
this.#e.clear(), this.#t.clear();
|
|
460
458
|
}
|
|
461
459
|
};
|
|
462
|
-
function
|
|
460
|
+
function Zn(e) {
|
|
463
461
|
return e;
|
|
464
462
|
}
|
|
465
463
|
function Pe(e, t, n) {
|
|
466
464
|
if (typeof t != "object" || t === null)
|
|
467
465
|
return;
|
|
468
|
-
const r = e.getMutationCache(), o = e.getQueryCache(), s = n?.defaultOptions?.deserializeData ?? e.getDefaultOptions().hydrate?.deserializeData ??
|
|
466
|
+
const r = e.getMutationCache(), o = e.getQueryCache(), s = n?.defaultOptions?.deserializeData ?? e.getDefaultOptions().hydrate?.deserializeData ?? Zn, i = t.mutations || [], u = t.queries || [];
|
|
469
467
|
i.forEach(({ state: d, ...l }) => {
|
|
470
468
|
r.build(
|
|
471
469
|
e,
|
|
@@ -478,7 +476,7 @@ function Pe(e, t, n) {
|
|
|
478
476
|
);
|
|
479
477
|
}), u.forEach(
|
|
480
478
|
({ queryKey: d, state: l, queryHash: f, meta: g, promise: p, dehydratedAt: v }) => {
|
|
481
|
-
const m = p ?
|
|
479
|
+
const m = p ? Nt(p) : void 0, k = l.data === void 0 ? m?.data : l.data, P = k === void 0 ? k : s(k);
|
|
482
480
|
let Z = o.get(f);
|
|
483
481
|
const L = Z?.state.status === "pending", $ = Z?.state.fetchStatus === "fetching";
|
|
484
482
|
if (Z) {
|
|
@@ -486,7 +484,7 @@ function Pe(e, t, n) {
|
|
|
486
484
|
// payloads that might not have dehydratedAt
|
|
487
485
|
v !== void 0 && v > Z.state.dataUpdatedAt;
|
|
488
486
|
if (l.dataUpdatedAt > Z.state.dataUpdatedAt || x) {
|
|
489
|
-
const { fetchStatus:
|
|
487
|
+
const { fetchStatus: D, ...H } = l;
|
|
490
488
|
Z.setState({
|
|
491
489
|
...H,
|
|
492
490
|
data: P
|
|
@@ -520,15 +518,15 @@ function Pe(e, t, n) {
|
|
|
520
518
|
}
|
|
521
519
|
);
|
|
522
520
|
}
|
|
523
|
-
var
|
|
521
|
+
var $n = ({
|
|
524
522
|
children: e,
|
|
525
523
|
options: t = {},
|
|
526
524
|
state: n,
|
|
527
525
|
queryClient: r
|
|
528
526
|
}) => {
|
|
529
|
-
const o =
|
|
527
|
+
const o = Rt(r), s = I.useRef(t);
|
|
530
528
|
s.current = t;
|
|
531
|
-
const i =
|
|
529
|
+
const i = I.useMemo(() => {
|
|
532
530
|
if (n) {
|
|
533
531
|
if (typeof n != "object")
|
|
534
532
|
return;
|
|
@@ -541,7 +539,7 @@ var bn = ({
|
|
|
541
539
|
return f;
|
|
542
540
|
}
|
|
543
541
|
}, [o, n]);
|
|
544
|
-
return
|
|
542
|
+
return I.useEffect(() => {
|
|
545
543
|
i && Pe(o, { queries: i }, s.current);
|
|
546
544
|
}, [o, i]), e;
|
|
547
545
|
};
|
|
@@ -555,25 +553,25 @@ var bn = ({
|
|
|
555
553
|
*
|
|
556
554
|
* @license MIT
|
|
557
555
|
*/
|
|
558
|
-
function
|
|
559
|
-
return /* @__PURE__ */
|
|
556
|
+
function jn(e) {
|
|
557
|
+
return /* @__PURE__ */ I.createElement(Bt, { flushSync: Xt.flushSync, ...e });
|
|
560
558
|
}
|
|
561
|
-
const
|
|
559
|
+
const Pn = new xn({
|
|
562
560
|
defaultOptions: {
|
|
563
561
|
queries: {
|
|
564
562
|
staleTime: 1e3 * 60 * 5
|
|
565
563
|
}
|
|
566
564
|
}
|
|
567
|
-
}),
|
|
565
|
+
}), On = ({
|
|
568
566
|
router: e,
|
|
569
567
|
hydrate: t = !1
|
|
570
|
-
}) => /* @__PURE__ */ a.jsx(Ye, { children: /* @__PURE__ */ a.jsx(Ge, { client:
|
|
568
|
+
}) => /* @__PURE__ */ a.jsx(Ye, { children: /* @__PURE__ */ a.jsx(Ge, { client: Pn, children: /* @__PURE__ */ a.jsx($n, { state: t ? window.DATA : void 0, children: /* @__PURE__ */ a.jsx(ot, { value: !1, children: /* @__PURE__ */ a.jsx(Ke, { children: /* @__PURE__ */ a.jsx(en.Provider, { value: { stagger: !t }, children: /* @__PURE__ */ a.jsx(jn, { router: e }) }) }) }) }) }) }), En = ({
|
|
571
569
|
router: e,
|
|
572
570
|
context: t,
|
|
573
571
|
queryClient: n,
|
|
574
572
|
helmetContext: r,
|
|
575
573
|
bypassProtection: o = !1
|
|
576
|
-
}) => /* @__PURE__ */ a.jsx(Ye, { children: /* @__PURE__ */ a.jsx(Ge, { client: n, children: /* @__PURE__ */ a.jsx(Ke, { context: r, children: /* @__PURE__ */ a.jsx(
|
|
574
|
+
}) => /* @__PURE__ */ a.jsx(Ye, { children: /* @__PURE__ */ a.jsx(Ge, { client: n, children: /* @__PURE__ */ a.jsx(Ke, { context: r, children: /* @__PURE__ */ a.jsx(ot, { value: o, children: /* @__PURE__ */ a.jsx(Wt, { router: e, context: t }) }) }) }) });
|
|
577
575
|
function c(e, t, n) {
|
|
578
576
|
function r(u, d) {
|
|
579
577
|
var l;
|
|
@@ -606,16 +604,16 @@ class Q extends Error {
|
|
|
606
604
|
super("Encountered Promise during synchronous parse. Use .parseAsync() instead.");
|
|
607
605
|
}
|
|
608
606
|
}
|
|
609
|
-
class
|
|
607
|
+
class it extends Error {
|
|
610
608
|
constructor(t) {
|
|
611
609
|
super(`Encountered unidirectional transform during encode: ${t}`), this.name = "ZodEncodeError";
|
|
612
610
|
}
|
|
613
611
|
}
|
|
614
|
-
const
|
|
612
|
+
const at = {};
|
|
615
613
|
function R(e) {
|
|
616
|
-
return
|
|
614
|
+
return at;
|
|
617
615
|
}
|
|
618
|
-
function
|
|
616
|
+
function An(e) {
|
|
619
617
|
const t = Object.values(e).filter((r) => typeof r == "number");
|
|
620
618
|
return Object.entries(e).filter(([r, o]) => t.indexOf(+r) === -1).map(([r, o]) => o);
|
|
621
619
|
}
|
|
@@ -656,7 +654,7 @@ function _(e, t, n) {
|
|
|
656
654
|
configurable: !0
|
|
657
655
|
});
|
|
658
656
|
}
|
|
659
|
-
function
|
|
657
|
+
function F(e, t, n) {
|
|
660
658
|
Object.defineProperty(e, t, {
|
|
661
659
|
value: n,
|
|
662
660
|
writable: !0,
|
|
@@ -675,12 +673,12 @@ function q(...e) {
|
|
|
675
673
|
function Ee(e) {
|
|
676
674
|
return JSON.stringify(e);
|
|
677
675
|
}
|
|
678
|
-
const
|
|
676
|
+
const ct = "captureStackTrace" in Error ? Error.captureStackTrace : (...e) => {
|
|
679
677
|
};
|
|
680
678
|
function ee(e) {
|
|
681
679
|
return typeof e == "object" && e !== null && !Array.isArray(e);
|
|
682
680
|
}
|
|
683
|
-
const
|
|
681
|
+
const Tn = he(() => {
|
|
684
682
|
if (typeof navigator < "u" && navigator?.userAgent?.includes("Cloudflare"))
|
|
685
683
|
return !1;
|
|
686
684
|
try {
|
|
@@ -699,10 +697,10 @@ function B(e) {
|
|
|
699
697
|
const n = t.prototype;
|
|
700
698
|
return !(ee(n) === !1 || Object.prototype.hasOwnProperty.call(n, "isPrototypeOf") === !1);
|
|
701
699
|
}
|
|
702
|
-
function
|
|
700
|
+
function ut(e) {
|
|
703
701
|
return B(e) ? { ...e } : Array.isArray(e) ? [...e] : e;
|
|
704
702
|
}
|
|
705
|
-
const
|
|
703
|
+
const Dn = /* @__PURE__ */ new Set(["string", "number", "symbol"]);
|
|
706
704
|
function se(e) {
|
|
707
705
|
return e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
708
706
|
}
|
|
@@ -723,10 +721,10 @@ function h(e) {
|
|
|
723
721
|
}
|
|
724
722
|
return delete t.message, typeof t.error == "string" ? { ...t, error: () => t.error } : t;
|
|
725
723
|
}
|
|
726
|
-
function
|
|
724
|
+
function Sn(e) {
|
|
727
725
|
return Object.keys(e).filter((t) => e[t]._zod.optin === "optional" && e[t]._zod.optout === "optional");
|
|
728
726
|
}
|
|
729
|
-
function
|
|
727
|
+
function In(e, t) {
|
|
730
728
|
const n = e._zod.def, r = q(e._zod.def, {
|
|
731
729
|
get shape() {
|
|
732
730
|
const o = {};
|
|
@@ -735,13 +733,13 @@ function En(e, t) {
|
|
|
735
733
|
throw new Error(`Unrecognized key: "${s}"`);
|
|
736
734
|
t[s] && (o[s] = n.shape[s]);
|
|
737
735
|
}
|
|
738
|
-
return
|
|
736
|
+
return F(this, "shape", o), o;
|
|
739
737
|
},
|
|
740
738
|
checks: []
|
|
741
739
|
});
|
|
742
740
|
return N(e, r);
|
|
743
741
|
}
|
|
744
|
-
function
|
|
742
|
+
function Cn(e, t) {
|
|
745
743
|
const n = e._zod.def, r = q(e._zod.def, {
|
|
746
744
|
get shape() {
|
|
747
745
|
const o = { ...e._zod.def.shape };
|
|
@@ -750,13 +748,13 @@ function An(e, t) {
|
|
|
750
748
|
throw new Error(`Unrecognized key: "${s}"`);
|
|
751
749
|
t[s] && delete o[s];
|
|
752
750
|
}
|
|
753
|
-
return
|
|
751
|
+
return F(this, "shape", o), o;
|
|
754
752
|
},
|
|
755
753
|
checks: []
|
|
756
754
|
});
|
|
757
755
|
return N(e, r);
|
|
758
756
|
}
|
|
759
|
-
function
|
|
757
|
+
function Nn(e, t) {
|
|
760
758
|
if (!B(t))
|
|
761
759
|
throw new Error("Invalid input to extend: expected a plain object");
|
|
762
760
|
const n = e._zod.def.checks;
|
|
@@ -765,30 +763,30 @@ function Tn(e, t) {
|
|
|
765
763
|
const o = q(e._zod.def, {
|
|
766
764
|
get shape() {
|
|
767
765
|
const s = { ...e._zod.def.shape, ...t };
|
|
768
|
-
return
|
|
766
|
+
return F(this, "shape", s), s;
|
|
769
767
|
},
|
|
770
768
|
checks: []
|
|
771
769
|
});
|
|
772
770
|
return N(e, o);
|
|
773
771
|
}
|
|
774
|
-
function
|
|
772
|
+
function Rn(e, t) {
|
|
775
773
|
if (!B(t))
|
|
776
774
|
throw new Error("Invalid input to safeExtend: expected a plain object");
|
|
777
775
|
const n = {
|
|
778
776
|
...e._zod.def,
|
|
779
777
|
get shape() {
|
|
780
778
|
const r = { ...e._zod.def.shape, ...t };
|
|
781
|
-
return
|
|
779
|
+
return F(this, "shape", r), r;
|
|
782
780
|
},
|
|
783
781
|
checks: e._zod.def.checks
|
|
784
782
|
};
|
|
785
783
|
return N(e, n);
|
|
786
784
|
}
|
|
787
|
-
function
|
|
785
|
+
function Un(e, t) {
|
|
788
786
|
const n = q(e._zod.def, {
|
|
789
787
|
get shape() {
|
|
790
788
|
const r = { ...e._zod.def.shape, ...t._zod.def.shape };
|
|
791
|
-
return
|
|
789
|
+
return F(this, "shape", r), r;
|
|
792
790
|
},
|
|
793
791
|
get catchall() {
|
|
794
792
|
return t._zod.def.catchall;
|
|
@@ -798,7 +796,7 @@ function In(e, t) {
|
|
|
798
796
|
});
|
|
799
797
|
return N(e, n);
|
|
800
798
|
}
|
|
801
|
-
function
|
|
799
|
+
function Fn(e, t, n) {
|
|
802
800
|
const r = q(t._zod.def, {
|
|
803
801
|
get shape() {
|
|
804
802
|
const o = t._zod.def.shape, s = { ...o };
|
|
@@ -817,13 +815,13 @@ function Dn(e, t, n) {
|
|
|
817
815
|
type: "optional",
|
|
818
816
|
innerType: o[i]
|
|
819
817
|
}) : o[i];
|
|
820
|
-
return
|
|
818
|
+
return F(this, "shape", s), s;
|
|
821
819
|
},
|
|
822
820
|
checks: []
|
|
823
821
|
});
|
|
824
822
|
return N(t, r);
|
|
825
823
|
}
|
|
826
|
-
function
|
|
824
|
+
function qn(e, t, n) {
|
|
827
825
|
const r = q(t._zod.def, {
|
|
828
826
|
get shape() {
|
|
829
827
|
const o = t._zod.def.shape, s = { ...o };
|
|
@@ -842,7 +840,7 @@ function Cn(e, t, n) {
|
|
|
842
840
|
type: "nonoptional",
|
|
843
841
|
innerType: o[i]
|
|
844
842
|
});
|
|
845
|
-
return
|
|
843
|
+
return F(this, "shape", s), s;
|
|
846
844
|
},
|
|
847
845
|
checks: []
|
|
848
846
|
});
|
|
@@ -856,7 +854,7 @@ function M(e, t = 0) {
|
|
|
856
854
|
return !0;
|
|
857
855
|
return !1;
|
|
858
856
|
}
|
|
859
|
-
function
|
|
857
|
+
function lt(e, t) {
|
|
860
858
|
return t.map((n) => {
|
|
861
859
|
var r;
|
|
862
860
|
return (r = n).path ?? (r.path = []), n.path.unshift(e), n;
|
|
@@ -865,7 +863,7 @@ function it(e, t) {
|
|
|
865
863
|
function J(e) {
|
|
866
864
|
return typeof e == "string" ? e : e?.message;
|
|
867
865
|
}
|
|
868
|
-
function
|
|
866
|
+
function U(e, t, n) {
|
|
869
867
|
const r = { ...e, path: e.path ?? [] };
|
|
870
868
|
if (!e.message) {
|
|
871
869
|
const o = J(e.inst?._zod.def?.error?.(e)) ?? J(t?.error?.(e)) ?? J(n.customError?.(e)) ?? J(n.localeError?.(e)) ?? "Invalid input";
|
|
@@ -885,7 +883,7 @@ function W(...e) {
|
|
|
885
883
|
inst: r
|
|
886
884
|
} : { ...t };
|
|
887
885
|
}
|
|
888
|
-
const
|
|
886
|
+
const dt = (e, t) => {
|
|
889
887
|
e.name = "$ZodError", Object.defineProperty(e, "_zod", {
|
|
890
888
|
value: e._zod,
|
|
891
889
|
enumerable: !1
|
|
@@ -896,14 +894,14 @@ const at = (e, t) => {
|
|
|
896
894
|
value: () => e.message,
|
|
897
895
|
enumerable: !1
|
|
898
896
|
});
|
|
899
|
-
},
|
|
900
|
-
function
|
|
897
|
+
}, ht = c("$ZodError", dt), ft = c("$ZodError", dt, { Parent: Error });
|
|
898
|
+
function Mn(e, t = (n) => n.message) {
|
|
901
899
|
const n = {}, r = [];
|
|
902
900
|
for (const o of e.issues)
|
|
903
901
|
o.path.length > 0 ? (n[o.path[0]] = n[o.path[0]] || [], n[o.path[0]].push(t(o))) : r.push(t(o));
|
|
904
902
|
return { formErrors: r, fieldErrors: n };
|
|
905
903
|
}
|
|
906
|
-
function
|
|
904
|
+
function Qn(e, t = (n) => n.message) {
|
|
907
905
|
const n = { _errors: [] }, r = (o) => {
|
|
908
906
|
for (const s of o.issues)
|
|
909
907
|
if (s.code === "invalid_union" && s.errors.length)
|
|
@@ -929,16 +927,16 @@ const ge = (e) => (t, n, r, o) => {
|
|
|
929
927
|
if (i instanceof Promise)
|
|
930
928
|
throw new Q();
|
|
931
929
|
if (i.issues.length) {
|
|
932
|
-
const u = new (o?.Err ?? e)(i.issues.map((d) =>
|
|
933
|
-
throw
|
|
930
|
+
const u = new (o?.Err ?? e)(i.issues.map((d) => U(d, s, R())));
|
|
931
|
+
throw ct(u, o?.callee), u;
|
|
934
932
|
}
|
|
935
933
|
return i.value;
|
|
936
934
|
}, ve = (e) => async (t, n, r, o) => {
|
|
937
935
|
const s = r ? Object.assign(r, { async: !0 }) : { async: !0 };
|
|
938
936
|
let i = t._zod.run({ value: n, issues: [] }, s);
|
|
939
937
|
if (i instanceof Promise && (i = await i), i.issues.length) {
|
|
940
|
-
const u = new (o?.Err ?? e)(i.issues.map((d) =>
|
|
941
|
-
throw
|
|
938
|
+
const u = new (o?.Err ?? e)(i.issues.map((d) => U(d, s, R())));
|
|
939
|
+
throw ct(u, o?.callee), u;
|
|
942
940
|
}
|
|
943
941
|
return i.value;
|
|
944
942
|
}, ie = (e) => (t, n, r) => {
|
|
@@ -947,52 +945,52 @@ const ge = (e) => (t, n, r, o) => {
|
|
|
947
945
|
throw new Q();
|
|
948
946
|
return s.issues.length ? {
|
|
949
947
|
success: !1,
|
|
950
|
-
error: new (e ??
|
|
948
|
+
error: new (e ?? ht)(s.issues.map((i) => U(i, o, R())))
|
|
951
949
|
} : { success: !0, data: s.value };
|
|
952
|
-
},
|
|
950
|
+
}, Ln = /* @__PURE__ */ ie(ft), ae = (e) => async (t, n, r) => {
|
|
953
951
|
const o = r ? Object.assign(r, { async: !0 }) : { async: !0 };
|
|
954
952
|
let s = t._zod.run({ value: n, issues: [] }, o);
|
|
955
953
|
return s instanceof Promise && (s = await s), s.issues.length ? {
|
|
956
954
|
success: !1,
|
|
957
|
-
error: new e(s.issues.map((i) =>
|
|
955
|
+
error: new e(s.issues.map((i) => U(i, o, R())))
|
|
958
956
|
} : { success: !0, data: s.value };
|
|
959
|
-
},
|
|
957
|
+
}, Bn = /* @__PURE__ */ ae(ft), Wn = (e) => (t, n, r) => {
|
|
960
958
|
const o = r ? Object.assign(r, { direction: "backward" }) : { direction: "backward" };
|
|
961
959
|
return ge(e)(t, n, o);
|
|
962
|
-
},
|
|
960
|
+
}, Kn = (e) => (t, n, r) => ge(e)(t, n, r), Hn = (e) => async (t, n, r) => {
|
|
963
961
|
const o = r ? Object.assign(r, { direction: "backward" }) : { direction: "backward" };
|
|
964
962
|
return ve(e)(t, n, o);
|
|
965
|
-
},
|
|
963
|
+
}, Vn = (e) => async (t, n, r) => ve(e)(t, n, r), Jn = (e) => (t, n, r) => {
|
|
966
964
|
const o = r ? Object.assign(r, { direction: "backward" }) : { direction: "backward" };
|
|
967
965
|
return ie(e)(t, n, o);
|
|
968
|
-
},
|
|
966
|
+
}, Gn = (e) => (t, n, r) => ie(e)(t, n, r), Yn = (e) => async (t, n, r) => {
|
|
969
967
|
const o = r ? Object.assign(r, { direction: "backward" }) : { direction: "backward" };
|
|
970
968
|
return ae(e)(t, n, o);
|
|
971
|
-
},
|
|
972
|
-
function
|
|
973
|
-
return new RegExp(
|
|
969
|
+
}, Xn = (e) => async (t, n, r) => ae(e)(t, n, r), er = /^[cC][^\s-]{8,}$/, tr = /^[0-9a-z]+$/, nr = /^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/, rr = /^[0-9a-vA-V]{20}$/, or = /^[A-Za-z0-9]{27}$/, sr = /^[a-zA-Z0-9_-]{21}$/, ir = /^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/, ar = /^([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})$/, Ae = (e) => e ? new 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)$/, cr = /^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/, ur = "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";
|
|
970
|
+
function lr() {
|
|
971
|
+
return new RegExp(ur, "u");
|
|
974
972
|
}
|
|
975
|
-
const
|
|
976
|
-
function
|
|
973
|
+
const dr = /^(?:(?: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])$/, hr = /^(([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}|:))$/, fr = /^((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])$/, pr = /^(([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])$/, mr = /^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/, pt = /^[A-Za-z0-9_-]*$/, gr = /^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/, vr = /^\+(?:[0-9]){6,14}[0-9]$/, mt = "(?:(?:\\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])))", _r = /* @__PURE__ */ new RegExp(`^${mt}$`);
|
|
974
|
+
function gt(e) {
|
|
977
975
|
const t = "(?:[01]\\d|2[0-3]):[0-5]\\d";
|
|
978
976
|
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+)?)?`;
|
|
979
977
|
}
|
|
980
|
-
function
|
|
981
|
-
return new RegExp(`^${
|
|
978
|
+
function yr(e) {
|
|
979
|
+
return new RegExp(`^${gt(e)}$`);
|
|
982
980
|
}
|
|
983
|
-
function
|
|
984
|
-
const t =
|
|
981
|
+
function wr(e) {
|
|
982
|
+
const t = gt({ precision: e.precision }), n = ["Z"];
|
|
985
983
|
e.local && n.push(""), e.offset && n.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");
|
|
986
984
|
const r = `${t}(?:${n.join("|")})`;
|
|
987
|
-
return new RegExp(`^${
|
|
985
|
+
return new RegExp(`^${mt}T(?:${r})$`);
|
|
988
986
|
}
|
|
989
|
-
const
|
|
987
|
+
const br = (e) => {
|
|
990
988
|
const t = e ? `[\\s\\S]{${e?.minimum ?? 0},${e?.maximum ?? ""}}` : "[\\s\\S]*";
|
|
991
989
|
return new RegExp(`^${t}$`);
|
|
992
|
-
},
|
|
990
|
+
}, zr = /^[^A-Z]*$/, kr = /^[^a-z]*$/, T = /* @__PURE__ */ c("$ZodCheck", (e, t) => {
|
|
993
991
|
var n;
|
|
994
992
|
e._zod ?? (e._zod = {}), e._zod.def = t, (n = e._zod).onattach ?? (n.onattach = []);
|
|
995
|
-
}),
|
|
993
|
+
}), xr = /* @__PURE__ */ c("$ZodCheckMaxLength", (e, t) => {
|
|
996
994
|
var n;
|
|
997
995
|
T.init(e, t), (n = e._zod.def).when ?? (n.when = (r) => {
|
|
998
996
|
const o = r.value;
|
|
@@ -1015,7 +1013,7 @@ const gr = (e) => {
|
|
|
1015
1013
|
continue: !t.abort
|
|
1016
1014
|
});
|
|
1017
1015
|
};
|
|
1018
|
-
}),
|
|
1016
|
+
}), Zr = /* @__PURE__ */ c("$ZodCheckMinLength", (e, t) => {
|
|
1019
1017
|
var n;
|
|
1020
1018
|
T.init(e, t), (n = e._zod.def).when ?? (n.when = (r) => {
|
|
1021
1019
|
const o = r.value;
|
|
@@ -1038,7 +1036,7 @@ const gr = (e) => {
|
|
|
1038
1036
|
continue: !t.abort
|
|
1039
1037
|
});
|
|
1040
1038
|
};
|
|
1041
|
-
}),
|
|
1039
|
+
}), $r = /* @__PURE__ */ c("$ZodCheckLengthEquals", (e, t) => {
|
|
1042
1040
|
var n;
|
|
1043
1041
|
T.init(e, t), (n = e._zod.def).when ?? (n.when = (r) => {
|
|
1044
1042
|
const o = r.value;
|
|
@@ -1078,7 +1076,7 @@ const gr = (e) => {
|
|
|
1078
1076
|
});
|
|
1079
1077
|
}) : (r = e._zod).check ?? (r.check = () => {
|
|
1080
1078
|
});
|
|
1081
|
-
}),
|
|
1079
|
+
}), jr = /* @__PURE__ */ c("$ZodCheckRegex", (e, t) => {
|
|
1082
1080
|
ce.init(e, t), e._zod.check = (n) => {
|
|
1083
1081
|
t.pattern.lastIndex = 0, !t.pattern.test(n.value) && n.issues.push({
|
|
1084
1082
|
origin: "string",
|
|
@@ -1090,11 +1088,11 @@ const gr = (e) => {
|
|
|
1090
1088
|
continue: !t.abort
|
|
1091
1089
|
});
|
|
1092
1090
|
};
|
|
1093
|
-
}),
|
|
1094
|
-
t.pattern ?? (t.pattern =
|
|
1095
|
-
}),
|
|
1096
|
-
t.pattern ?? (t.pattern =
|
|
1097
|
-
}),
|
|
1091
|
+
}), Pr = /* @__PURE__ */ c("$ZodCheckLowerCase", (e, t) => {
|
|
1092
|
+
t.pattern ?? (t.pattern = zr), ce.init(e, t);
|
|
1093
|
+
}), Or = /* @__PURE__ */ c("$ZodCheckUpperCase", (e, t) => {
|
|
1094
|
+
t.pattern ?? (t.pattern = kr), ce.init(e, t);
|
|
1095
|
+
}), Er = /* @__PURE__ */ c("$ZodCheckIncludes", (e, t) => {
|
|
1098
1096
|
T.init(e, t);
|
|
1099
1097
|
const n = se(t.includes), r = new RegExp(typeof t.position == "number" ? `^.{${t.position}}${n}` : n);
|
|
1100
1098
|
t.pattern = r, e._zod.onattach.push((o) => {
|
|
@@ -1111,7 +1109,7 @@ const gr = (e) => {
|
|
|
1111
1109
|
continue: !t.abort
|
|
1112
1110
|
});
|
|
1113
1111
|
};
|
|
1114
|
-
}),
|
|
1112
|
+
}), Ar = /* @__PURE__ */ c("$ZodCheckStartsWith", (e, t) => {
|
|
1115
1113
|
T.init(e, t);
|
|
1116
1114
|
const n = new RegExp(`^${se(t.prefix)}.*`);
|
|
1117
1115
|
t.pattern ?? (t.pattern = n), e._zod.onattach.push((r) => {
|
|
@@ -1128,7 +1126,7 @@ const gr = (e) => {
|
|
|
1128
1126
|
continue: !t.abort
|
|
1129
1127
|
});
|
|
1130
1128
|
};
|
|
1131
|
-
}),
|
|
1129
|
+
}), Tr = /* @__PURE__ */ c("$ZodCheckEndsWith", (e, t) => {
|
|
1132
1130
|
T.init(e, t);
|
|
1133
1131
|
const n = new RegExp(`.*${se(t.suffix)}$`);
|
|
1134
1132
|
t.pattern ?? (t.pattern = n), e._zod.onattach.push((r) => {
|
|
@@ -1145,12 +1143,12 @@ const gr = (e) => {
|
|
|
1145
1143
|
continue: !t.abort
|
|
1146
1144
|
});
|
|
1147
1145
|
};
|
|
1148
|
-
}),
|
|
1146
|
+
}), Dr = /* @__PURE__ */ c("$ZodCheckOverwrite", (e, t) => {
|
|
1149
1147
|
T.init(e, t), e._zod.check = (n) => {
|
|
1150
1148
|
n.value = t.tx(n.value);
|
|
1151
1149
|
};
|
|
1152
1150
|
});
|
|
1153
|
-
class
|
|
1151
|
+
class Sr {
|
|
1154
1152
|
constructor(t = []) {
|
|
1155
1153
|
this.content = [], this.indent = 0, this && (this.args = t);
|
|
1156
1154
|
}
|
|
@@ -1173,13 +1171,13 @@ class Or {
|
|
|
1173
1171
|
`));
|
|
1174
1172
|
}
|
|
1175
1173
|
}
|
|
1176
|
-
const
|
|
1174
|
+
const Ir = {
|
|
1177
1175
|
major: 4,
|
|
1178
1176
|
minor: 1,
|
|
1179
1177
|
patch: 12
|
|
1180
1178
|
}, b = /* @__PURE__ */ c("$ZodType", (e, t) => {
|
|
1181
1179
|
var n;
|
|
1182
|
-
e ?? (e = {}), e._zod.def = t, e._zod.bag = e._zod.bag || {}, e._zod.version =
|
|
1180
|
+
e ?? (e = {}), e._zod.def = t, e._zod.bag = e._zod.bag || {}, e._zod.version = Ir;
|
|
1183
1181
|
const r = [...e._zod.def.checks ?? []];
|
|
1184
1182
|
e._zod.traits.has("$ZodCheck") && r.unshift(e);
|
|
1185
1183
|
for (const o of r)
|
|
@@ -1242,17 +1240,17 @@ const Er = {
|
|
|
1242
1240
|
e["~standard"] = {
|
|
1243
1241
|
validate: (o) => {
|
|
1244
1242
|
try {
|
|
1245
|
-
const s =
|
|
1243
|
+
const s = Ln(e, o);
|
|
1246
1244
|
return s.success ? { value: s.data } : { issues: s.error?.issues };
|
|
1247
1245
|
} catch {
|
|
1248
|
-
return
|
|
1246
|
+
return Bn(e, o).then((i) => i.success ? { value: i.data } : { issues: i.error?.issues });
|
|
1249
1247
|
}
|
|
1250
1248
|
},
|
|
1251
1249
|
vendor: "zod",
|
|
1252
1250
|
version: 1
|
|
1253
1251
|
};
|
|
1254
1252
|
}), _e = /* @__PURE__ */ c("$ZodString", (e, t) => {
|
|
1255
|
-
b.init(e, t), e._zod.pattern = [...e?._zod.bag?.patterns ?? []].pop() ??
|
|
1253
|
+
b.init(e, t), e._zod.pattern = [...e?._zod.bag?.patterns ?? []].pop() ?? br(e._zod.bag), e._zod.parse = (n, r) => {
|
|
1256
1254
|
if (t.coerce)
|
|
1257
1255
|
try {
|
|
1258
1256
|
n.value = String(n.value);
|
|
@@ -1267,9 +1265,9 @@ const Er = {
|
|
|
1267
1265
|
};
|
|
1268
1266
|
}), y = /* @__PURE__ */ c("$ZodStringFormat", (e, t) => {
|
|
1269
1267
|
ce.init(e, t), _e.init(e, t);
|
|
1270
|
-
}),
|
|
1271
|
-
t.pattern ?? (t.pattern =
|
|
1272
|
-
}),
|
|
1268
|
+
}), Cr = /* @__PURE__ */ c("$ZodGUID", (e, t) => {
|
|
1269
|
+
t.pattern ?? (t.pattern = ar), y.init(e, t);
|
|
1270
|
+
}), Nr = /* @__PURE__ */ c("$ZodUUID", (e, t) => {
|
|
1273
1271
|
if (t.version) {
|
|
1274
1272
|
const r = {
|
|
1275
1273
|
v1: 1,
|
|
@@ -1287,9 +1285,9 @@ const Er = {
|
|
|
1287
1285
|
} else
|
|
1288
1286
|
t.pattern ?? (t.pattern = Ae());
|
|
1289
1287
|
y.init(e, t);
|
|
1290
|
-
}),
|
|
1291
|
-
t.pattern ?? (t.pattern =
|
|
1292
|
-
}),
|
|
1288
|
+
}), Rr = /* @__PURE__ */ c("$ZodEmail", (e, t) => {
|
|
1289
|
+
t.pattern ?? (t.pattern = cr), y.init(e, t);
|
|
1290
|
+
}), Ur = /* @__PURE__ */ c("$ZodURL", (e, t) => {
|
|
1293
1291
|
y.init(e, t), e._zod.check = (n) => {
|
|
1294
1292
|
try {
|
|
1295
1293
|
const r = n.value.trim(), o = new URL(r);
|
|
@@ -1297,7 +1295,7 @@ const Er = {
|
|
|
1297
1295
|
code: "invalid_format",
|
|
1298
1296
|
format: "url",
|
|
1299
1297
|
note: "Invalid hostname",
|
|
1300
|
-
pattern:
|
|
1298
|
+
pattern: gr.source,
|
|
1301
1299
|
input: n.value,
|
|
1302
1300
|
inst: e,
|
|
1303
1301
|
continue: !t.abort
|
|
@@ -1321,35 +1319,35 @@ const Er = {
|
|
|
1321
1319
|
});
|
|
1322
1320
|
}
|
|
1323
1321
|
};
|
|
1324
|
-
}),
|
|
1325
|
-
t.pattern ?? (t.pattern =
|
|
1326
|
-
}),
|
|
1322
|
+
}), Fr = /* @__PURE__ */ c("$ZodEmoji", (e, t) => {
|
|
1323
|
+
t.pattern ?? (t.pattern = lr()), y.init(e, t);
|
|
1324
|
+
}), qr = /* @__PURE__ */ c("$ZodNanoID", (e, t) => {
|
|
1325
|
+
t.pattern ?? (t.pattern = sr), y.init(e, t);
|
|
1326
|
+
}), Mr = /* @__PURE__ */ c("$ZodCUID", (e, t) => {
|
|
1327
1327
|
t.pattern ?? (t.pattern = er), y.init(e, t);
|
|
1328
|
-
}),
|
|
1329
|
-
t.pattern ?? (t.pattern = Vn), y.init(e, t);
|
|
1330
|
-
}), Rr = /* @__PURE__ */ c("$ZodCUID2", (e, t) => {
|
|
1331
|
-
t.pattern ?? (t.pattern = Jn), y.init(e, t);
|
|
1332
|
-
}), Fr = /* @__PURE__ */ c("$ZodULID", (e, t) => {
|
|
1333
|
-
t.pattern ?? (t.pattern = Gn), y.init(e, t);
|
|
1334
|
-
}), Ur = /* @__PURE__ */ c("$ZodXID", (e, t) => {
|
|
1335
|
-
t.pattern ?? (t.pattern = Yn), y.init(e, t);
|
|
1336
|
-
}), qr = /* @__PURE__ */ c("$ZodKSUID", (e, t) => {
|
|
1337
|
-
t.pattern ?? (t.pattern = Xn), y.init(e, t);
|
|
1338
|
-
}), Mr = /* @__PURE__ */ c("$ZodISODateTime", (e, t) => {
|
|
1339
|
-
t.pattern ?? (t.pattern = mr(t)), y.init(e, t);
|
|
1340
|
-
}), Qr = /* @__PURE__ */ c("$ZodISODate", (e, t) => {
|
|
1341
|
-
t.pattern ?? (t.pattern = fr), y.init(e, t);
|
|
1342
|
-
}), Lr = /* @__PURE__ */ c("$ZodISOTime", (e, t) => {
|
|
1343
|
-
t.pattern ?? (t.pattern = pr(t)), y.init(e, t);
|
|
1344
|
-
}), Br = /* @__PURE__ */ c("$ZodISODuration", (e, t) => {
|
|
1328
|
+
}), Qr = /* @__PURE__ */ c("$ZodCUID2", (e, t) => {
|
|
1345
1329
|
t.pattern ?? (t.pattern = tr), y.init(e, t);
|
|
1346
|
-
}),
|
|
1347
|
-
t.pattern ?? (t.pattern =
|
|
1330
|
+
}), Lr = /* @__PURE__ */ c("$ZodULID", (e, t) => {
|
|
1331
|
+
t.pattern ?? (t.pattern = nr), y.init(e, t);
|
|
1332
|
+
}), Br = /* @__PURE__ */ c("$ZodXID", (e, t) => {
|
|
1333
|
+
t.pattern ?? (t.pattern = rr), y.init(e, t);
|
|
1334
|
+
}), Wr = /* @__PURE__ */ c("$ZodKSUID", (e, t) => {
|
|
1335
|
+
t.pattern ?? (t.pattern = or), y.init(e, t);
|
|
1336
|
+
}), Kr = /* @__PURE__ */ c("$ZodISODateTime", (e, t) => {
|
|
1337
|
+
t.pattern ?? (t.pattern = wr(t)), y.init(e, t);
|
|
1338
|
+
}), Hr = /* @__PURE__ */ c("$ZodISODate", (e, t) => {
|
|
1339
|
+
t.pattern ?? (t.pattern = _r), y.init(e, t);
|
|
1340
|
+
}), Vr = /* @__PURE__ */ c("$ZodISOTime", (e, t) => {
|
|
1341
|
+
t.pattern ?? (t.pattern = yr(t)), y.init(e, t);
|
|
1342
|
+
}), Jr = /* @__PURE__ */ c("$ZodISODuration", (e, t) => {
|
|
1343
|
+
t.pattern ?? (t.pattern = ir), y.init(e, t);
|
|
1344
|
+
}), Gr = /* @__PURE__ */ c("$ZodIPv4", (e, t) => {
|
|
1345
|
+
t.pattern ?? (t.pattern = dr), y.init(e, t), e._zod.onattach.push((n) => {
|
|
1348
1346
|
const r = n._zod.bag;
|
|
1349
1347
|
r.format = "ipv4";
|
|
1350
1348
|
});
|
|
1351
|
-
}),
|
|
1352
|
-
t.pattern ?? (t.pattern =
|
|
1349
|
+
}), Yr = /* @__PURE__ */ c("$ZodIPv6", (e, t) => {
|
|
1350
|
+
t.pattern ?? (t.pattern = hr), y.init(e, t), e._zod.onattach.push((n) => {
|
|
1353
1351
|
const r = n._zod.bag;
|
|
1354
1352
|
r.format = "ipv6";
|
|
1355
1353
|
}), e._zod.check = (n) => {
|
|
@@ -1365,10 +1363,10 @@ const Er = {
|
|
|
1365
1363
|
});
|
|
1366
1364
|
}
|
|
1367
1365
|
};
|
|
1368
|
-
}),
|
|
1369
|
-
t.pattern ?? (t.pattern =
|
|
1370
|
-
}),
|
|
1371
|
-
t.pattern ?? (t.pattern =
|
|
1366
|
+
}), Xr = /* @__PURE__ */ c("$ZodCIDRv4", (e, t) => {
|
|
1367
|
+
t.pattern ?? (t.pattern = fr), y.init(e, t);
|
|
1368
|
+
}), eo = /* @__PURE__ */ c("$ZodCIDRv6", (e, t) => {
|
|
1369
|
+
t.pattern ?? (t.pattern = pr), y.init(e, t), e._zod.check = (n) => {
|
|
1372
1370
|
const r = n.value.split("/");
|
|
1373
1371
|
try {
|
|
1374
1372
|
if (r.length !== 2)
|
|
@@ -1393,7 +1391,7 @@ const Er = {
|
|
|
1393
1391
|
}
|
|
1394
1392
|
};
|
|
1395
1393
|
});
|
|
1396
|
-
function
|
|
1394
|
+
function vt(e) {
|
|
1397
1395
|
if (e === "")
|
|
1398
1396
|
return !0;
|
|
1399
1397
|
if (e.length % 4 !== 0)
|
|
@@ -1404,11 +1402,11 @@ function ft(e) {
|
|
|
1404
1402
|
return !1;
|
|
1405
1403
|
}
|
|
1406
1404
|
}
|
|
1407
|
-
const
|
|
1408
|
-
t.pattern ?? (t.pattern =
|
|
1405
|
+
const to = /* @__PURE__ */ c("$ZodBase64", (e, t) => {
|
|
1406
|
+
t.pattern ?? (t.pattern = mr), y.init(e, t), e._zod.onattach.push((n) => {
|
|
1409
1407
|
n._zod.bag.contentEncoding = "base64";
|
|
1410
1408
|
}), e._zod.check = (n) => {
|
|
1411
|
-
|
|
1409
|
+
vt(n.value) || n.issues.push({
|
|
1412
1410
|
code: "invalid_format",
|
|
1413
1411
|
format: "base64",
|
|
1414
1412
|
input: n.value,
|
|
@@ -1417,17 +1415,17 @@ const Jr = /* @__PURE__ */ c("$ZodBase64", (e, t) => {
|
|
|
1417
1415
|
});
|
|
1418
1416
|
};
|
|
1419
1417
|
});
|
|
1420
|
-
function
|
|
1421
|
-
if (!
|
|
1418
|
+
function no(e) {
|
|
1419
|
+
if (!pt.test(e))
|
|
1422
1420
|
return !1;
|
|
1423
1421
|
const t = e.replace(/[-_]/g, (r) => r === "-" ? "+" : "/"), n = t.padEnd(Math.ceil(t.length / 4) * 4, "=");
|
|
1424
|
-
return
|
|
1422
|
+
return vt(n);
|
|
1425
1423
|
}
|
|
1426
|
-
const
|
|
1427
|
-
t.pattern ?? (t.pattern =
|
|
1424
|
+
const ro = /* @__PURE__ */ c("$ZodBase64URL", (e, t) => {
|
|
1425
|
+
t.pattern ?? (t.pattern = pt), y.init(e, t), e._zod.onattach.push((n) => {
|
|
1428
1426
|
n._zod.bag.contentEncoding = "base64url";
|
|
1429
1427
|
}), e._zod.check = (n) => {
|
|
1430
|
-
|
|
1428
|
+
no(n.value) || n.issues.push({
|
|
1431
1429
|
code: "invalid_format",
|
|
1432
1430
|
format: "base64url",
|
|
1433
1431
|
input: n.value,
|
|
@@ -1435,10 +1433,10 @@ const Yr = /* @__PURE__ */ c("$ZodBase64URL", (e, t) => {
|
|
|
1435
1433
|
continue: !t.abort
|
|
1436
1434
|
});
|
|
1437
1435
|
};
|
|
1438
|
-
}),
|
|
1439
|
-
t.pattern ?? (t.pattern =
|
|
1436
|
+
}), oo = /* @__PURE__ */ c("$ZodE164", (e, t) => {
|
|
1437
|
+
t.pattern ?? (t.pattern = vr), y.init(e, t);
|
|
1440
1438
|
});
|
|
1441
|
-
function
|
|
1439
|
+
function so(e, t = null) {
|
|
1442
1440
|
try {
|
|
1443
1441
|
const n = e.split(".");
|
|
1444
1442
|
if (n.length !== 3)
|
|
@@ -1452,9 +1450,9 @@ function eo(e, t = null) {
|
|
|
1452
1450
|
return !1;
|
|
1453
1451
|
}
|
|
1454
1452
|
}
|
|
1455
|
-
const
|
|
1453
|
+
const io = /* @__PURE__ */ c("$ZodJWT", (e, t) => {
|
|
1456
1454
|
y.init(e, t), e._zod.check = (n) => {
|
|
1457
|
-
|
|
1455
|
+
so(n.value, t.alg) || n.issues.push({
|
|
1458
1456
|
code: "invalid_format",
|
|
1459
1457
|
format: "jwt",
|
|
1460
1458
|
input: n.value,
|
|
@@ -1462,9 +1460,9 @@ const to = /* @__PURE__ */ c("$ZodJWT", (e, t) => {
|
|
|
1462
1460
|
continue: !t.abort
|
|
1463
1461
|
});
|
|
1464
1462
|
};
|
|
1465
|
-
}),
|
|
1463
|
+
}), ao = /* @__PURE__ */ c("$ZodUnknown", (e, t) => {
|
|
1466
1464
|
b.init(e, t), e._zod.parse = (n) => n;
|
|
1467
|
-
}),
|
|
1465
|
+
}), co = /* @__PURE__ */ c("$ZodNever", (e, t) => {
|
|
1468
1466
|
b.init(e, t), e._zod.parse = (n, r) => (n.issues.push({
|
|
1469
1467
|
expected: "never",
|
|
1470
1468
|
code: "invalid_type",
|
|
@@ -1473,9 +1471,9 @@ const to = /* @__PURE__ */ c("$ZodJWT", (e, t) => {
|
|
|
1473
1471
|
}), n);
|
|
1474
1472
|
});
|
|
1475
1473
|
function Te(e, t, n) {
|
|
1476
|
-
e.issues.length && t.issues.push(...
|
|
1474
|
+
e.issues.length && t.issues.push(...lt(n, e.issues)), t.value[n] = e.value;
|
|
1477
1475
|
}
|
|
1478
|
-
const
|
|
1476
|
+
const uo = /* @__PURE__ */ c("$ZodArray", (e, t) => {
|
|
1479
1477
|
b.init(e, t), e._zod.parse = (n, r) => {
|
|
1480
1478
|
const o = n.value;
|
|
1481
1479
|
if (!Array.isArray(o))
|
|
@@ -1498,14 +1496,14 @@ const oo = /* @__PURE__ */ c("$ZodArray", (e, t) => {
|
|
|
1498
1496
|
};
|
|
1499
1497
|
});
|
|
1500
1498
|
function te(e, t, n, r) {
|
|
1501
|
-
e.issues.length && t.issues.push(...
|
|
1499
|
+
e.issues.length && t.issues.push(...lt(n, e.issues)), e.value === void 0 ? n in r && (t.value[n] = void 0) : t.value[n] = e.value;
|
|
1502
1500
|
}
|
|
1503
|
-
function
|
|
1501
|
+
function _t(e) {
|
|
1504
1502
|
const t = Object.keys(e.shape);
|
|
1505
1503
|
for (const r of t)
|
|
1506
1504
|
if (!e.shape?.[r]?._zod?.traits?.has("$ZodType"))
|
|
1507
1505
|
throw new Error(`Invalid element at key "${r}": expected a Zod schema`);
|
|
1508
|
-
const n =
|
|
1506
|
+
const n = Sn(e.shape);
|
|
1509
1507
|
return {
|
|
1510
1508
|
...e,
|
|
1511
1509
|
keys: t,
|
|
@@ -1514,7 +1512,7 @@ function pt(e) {
|
|
|
1514
1512
|
optionalKeys: new Set(n)
|
|
1515
1513
|
};
|
|
1516
1514
|
}
|
|
1517
|
-
function
|
|
1515
|
+
function yt(e, t, n, r, o, s) {
|
|
1518
1516
|
const i = [], u = o.keySet, d = o.catchall._zod, l = d.def.type;
|
|
1519
1517
|
for (const f of Object.keys(t)) {
|
|
1520
1518
|
if (u.has(f))
|
|
@@ -1533,7 +1531,7 @@ function mt(e, t, n, r, o, s) {
|
|
|
1533
1531
|
inst: s
|
|
1534
1532
|
}), e.length ? Promise.all(e).then(() => n) : n;
|
|
1535
1533
|
}
|
|
1536
|
-
const
|
|
1534
|
+
const lo = /* @__PURE__ */ c("$ZodObject", (e, t) => {
|
|
1537
1535
|
if (b.init(e, t), !Object.getOwnPropertyDescriptor(t, "shape")?.get) {
|
|
1538
1536
|
const u = t.shape;
|
|
1539
1537
|
Object.defineProperty(t, "shape", {
|
|
@@ -1545,7 +1543,7 @@ const so = /* @__PURE__ */ c("$ZodObject", (e, t) => {
|
|
|
1545
1543
|
}
|
|
1546
1544
|
});
|
|
1547
1545
|
}
|
|
1548
|
-
const r = he(() =>
|
|
1546
|
+
const r = he(() => _t(t));
|
|
1549
1547
|
_(e._zod, "propValues", () => {
|
|
1550
1548
|
const u = t.shape, d = {};
|
|
1551
1549
|
for (const l in u) {
|
|
@@ -1576,12 +1574,12 @@ const so = /* @__PURE__ */ c("$ZodObject", (e, t) => {
|
|
|
1576
1574
|
const m = g[p]._zod.run({ value: l[p], issues: [] }, d);
|
|
1577
1575
|
m instanceof Promise ? f.push(m.then((k) => te(k, u, p, l))) : te(m, u, p, l);
|
|
1578
1576
|
}
|
|
1579
|
-
return s ?
|
|
1577
|
+
return s ? yt(f, l, u, d, r.value, e) : f.length ? Promise.all(f).then(() => u) : u;
|
|
1580
1578
|
};
|
|
1581
|
-
}),
|
|
1582
|
-
|
|
1583
|
-
const n = e._zod.parse, r = he(() =>
|
|
1584
|
-
const v = new
|
|
1579
|
+
}), ho = /* @__PURE__ */ c("$ZodObjectJIT", (e, t) => {
|
|
1580
|
+
lo.init(e, t);
|
|
1581
|
+
const n = e._zod.parse, r = he(() => _t(t)), o = (p) => {
|
|
1582
|
+
const v = new Sr(["shape", "payload", "ctx"]), m = r.value, k = ($) => {
|
|
1585
1583
|
const x = Ee($);
|
|
1586
1584
|
return `shape[${x}]._zod.run({ value: input[${x}], issues: [] }, ctx)`;
|
|
1587
1585
|
};
|
|
@@ -1592,22 +1590,22 @@ const so = /* @__PURE__ */ c("$ZodObject", (e, t) => {
|
|
|
1592
1590
|
P[$] = `key_${Z++}`;
|
|
1593
1591
|
v.write("const newResult = {};");
|
|
1594
1592
|
for (const $ of m.keys) {
|
|
1595
|
-
const x = P[$],
|
|
1593
|
+
const x = P[$], D = Ee($);
|
|
1596
1594
|
v.write(`const ${x} = ${k($)};`), v.write(`
|
|
1597
1595
|
if (${x}.issues.length) {
|
|
1598
1596
|
payload.issues = payload.issues.concat(${x}.issues.map(iss => ({
|
|
1599
1597
|
...iss,
|
|
1600
|
-
path: iss.path ? [${
|
|
1598
|
+
path: iss.path ? [${D}, ...iss.path] : [${D}]
|
|
1601
1599
|
})));
|
|
1602
1600
|
}
|
|
1603
1601
|
|
|
1604
1602
|
|
|
1605
1603
|
if (${x}.value === undefined) {
|
|
1606
|
-
if (${
|
|
1607
|
-
newResult[${
|
|
1604
|
+
if (${D} in input) {
|
|
1605
|
+
newResult[${D}] = undefined;
|
|
1608
1606
|
}
|
|
1609
1607
|
} else {
|
|
1610
|
-
newResult[${
|
|
1608
|
+
newResult[${D}] = ${x}.value;
|
|
1611
1609
|
}
|
|
1612
1610
|
|
|
1613
1611
|
`);
|
|
@@ -1617,12 +1615,12 @@ const so = /* @__PURE__ */ c("$ZodObject", (e, t) => {
|
|
|
1617
1615
|
return ($, x) => L(p, $, x);
|
|
1618
1616
|
};
|
|
1619
1617
|
let s;
|
|
1620
|
-
const i = ee, u = !
|
|
1618
|
+
const i = ee, u = !at.jitless, l = u && Tn.value, f = t.catchall;
|
|
1621
1619
|
let g;
|
|
1622
1620
|
e._zod.parse = (p, v) => {
|
|
1623
1621
|
g ?? (g = r.value);
|
|
1624
1622
|
const m = p.value;
|
|
1625
|
-
return i(m) ? u && l && v?.async === !1 && v.jitless !== !0 ? (s || (s = o(t.shape)), p = s(p, v), f ?
|
|
1623
|
+
return i(m) ? u && l && v?.async === !1 && v.jitless !== !0 ? (s || (s = o(t.shape)), p = s(p, v), f ? yt([], m, p, v, g, e) : p) : n(p, v) : (p.issues.push({
|
|
1626
1624
|
expected: "object",
|
|
1627
1625
|
code: "invalid_type",
|
|
1628
1626
|
input: m,
|
|
@@ -1630,7 +1628,7 @@ const so = /* @__PURE__ */ c("$ZodObject", (e, t) => {
|
|
|
1630
1628
|
}), p);
|
|
1631
1629
|
};
|
|
1632
1630
|
});
|
|
1633
|
-
function
|
|
1631
|
+
function De(e, t, n, r) {
|
|
1634
1632
|
for (const s of e)
|
|
1635
1633
|
if (s.issues.length === 0)
|
|
1636
1634
|
return t.value = s.value, t;
|
|
@@ -1639,10 +1637,10 @@ function Se(e, t, n, r) {
|
|
|
1639
1637
|
code: "invalid_union",
|
|
1640
1638
|
input: t.value,
|
|
1641
1639
|
inst: n,
|
|
1642
|
-
errors: e.map((s) => s.issues.map((i) =>
|
|
1640
|
+
errors: e.map((s) => s.issues.map((i) => U(i, r, R())))
|
|
1643
1641
|
}), t);
|
|
1644
1642
|
}
|
|
1645
|
-
const
|
|
1643
|
+
const fo = /* @__PURE__ */ c("$ZodUnion", (e, t) => {
|
|
1646
1644
|
b.init(e, t), _(e._zod, "optin", () => t.options.some((o) => o._zod.optin === "optional") ? "optional" : void 0), _(e._zod, "optout", () => t.options.some((o) => o._zod.optout === "optional") ? "optional" : void 0), _(e._zod, "values", () => {
|
|
1647
1645
|
if (t.options.every((o) => o._zod.values))
|
|
1648
1646
|
return new Set(t.options.flatMap((o) => Array.from(o._zod.values)));
|
|
@@ -1671,12 +1669,12 @@ const ao = /* @__PURE__ */ c("$ZodUnion", (e, t) => {
|
|
|
1671
1669
|
u.push(l);
|
|
1672
1670
|
}
|
|
1673
1671
|
}
|
|
1674
|
-
return i ? Promise.all(u).then((d) =>
|
|
1672
|
+
return i ? Promise.all(u).then((d) => De(d, o, e, s)) : De(u, o, e, s);
|
|
1675
1673
|
};
|
|
1676
|
-
}),
|
|
1674
|
+
}), po = /* @__PURE__ */ c("$ZodIntersection", (e, t) => {
|
|
1677
1675
|
b.init(e, t), e._zod.parse = (n, r) => {
|
|
1678
1676
|
const o = n.value, s = t.left._zod.run({ value: o, issues: [] }, r), i = t.right._zod.run({ value: o, issues: [] }, r);
|
|
1679
|
-
return s instanceof Promise || i instanceof Promise ? Promise.all([s, i]).then(([d, l]) =>
|
|
1677
|
+
return s instanceof Promise || i instanceof Promise ? Promise.all([s, i]).then(([d, l]) => Se(n, d, l)) : Se(n, s, i);
|
|
1680
1678
|
};
|
|
1681
1679
|
});
|
|
1682
1680
|
function le(e, t) {
|
|
@@ -1714,7 +1712,7 @@ function le(e, t) {
|
|
|
1714
1712
|
}
|
|
1715
1713
|
return { valid: !1, mergeErrorPath: [] };
|
|
1716
1714
|
}
|
|
1717
|
-
function
|
|
1715
|
+
function Se(e, t, n) {
|
|
1718
1716
|
if (t.issues.length && e.issues.push(...t.issues), n.issues.length && e.issues.push(...n.issues), M(e))
|
|
1719
1717
|
return e;
|
|
1720
1718
|
const r = le(t.value, n.value);
|
|
@@ -1722,10 +1720,10 @@ function Ie(e, t, n) {
|
|
|
1722
1720
|
throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(r.mergeErrorPath)}`);
|
|
1723
1721
|
return e.value = r.data, e;
|
|
1724
1722
|
}
|
|
1725
|
-
const
|
|
1723
|
+
const mo = /* @__PURE__ */ c("$ZodEnum", (e, t) => {
|
|
1726
1724
|
b.init(e, t);
|
|
1727
|
-
const n =
|
|
1728
|
-
e._zod.values = r, e._zod.pattern = new RegExp(`^(${n.filter((o) =>
|
|
1725
|
+
const n = An(t.entries), r = new Set(n);
|
|
1726
|
+
e._zod.values = r, e._zod.pattern = new RegExp(`^(${n.filter((o) => Dn.has(typeof o)).map((o) => typeof o == "string" ? se(o) : o.toString()).join("|")})$`), e._zod.parse = (o, s) => {
|
|
1729
1727
|
const i = o.value;
|
|
1730
1728
|
return r.has(i) || o.issues.push({
|
|
1731
1729
|
code: "invalid_value",
|
|
@@ -1734,10 +1732,10 @@ const uo = /* @__PURE__ */ c("$ZodEnum", (e, t) => {
|
|
|
1734
1732
|
inst: e
|
|
1735
1733
|
}), o;
|
|
1736
1734
|
};
|
|
1737
|
-
}),
|
|
1735
|
+
}), go = /* @__PURE__ */ c("$ZodTransform", (e, t) => {
|
|
1738
1736
|
b.init(e, t), e._zod.parse = (n, r) => {
|
|
1739
1737
|
if (r.direction === "backward")
|
|
1740
|
-
throw new
|
|
1738
|
+
throw new it(e.constructor.name);
|
|
1741
1739
|
const o = t.transform(n.value, n);
|
|
1742
1740
|
if (r.async)
|
|
1743
1741
|
return (o instanceof Promise ? o : Promise.resolve(o)).then((i) => (n.value = i, n));
|
|
@@ -1746,26 +1744,26 @@ const uo = /* @__PURE__ */ c("$ZodEnum", (e, t) => {
|
|
|
1746
1744
|
return n.value = o, n;
|
|
1747
1745
|
};
|
|
1748
1746
|
});
|
|
1749
|
-
function
|
|
1747
|
+
function Ie(e, t) {
|
|
1750
1748
|
return e.issues.length && t === void 0 ? { issues: [], value: void 0 } : e;
|
|
1751
1749
|
}
|
|
1752
|
-
const
|
|
1750
|
+
const vo = /* @__PURE__ */ c("$ZodOptional", (e, t) => {
|
|
1753
1751
|
b.init(e, t), e._zod.optin = "optional", e._zod.optout = "optional", _(e._zod, "values", () => t.innerType._zod.values ? /* @__PURE__ */ new Set([...t.innerType._zod.values, void 0]) : void 0), _(e._zod, "pattern", () => {
|
|
1754
1752
|
const n = t.innerType._zod.pattern;
|
|
1755
1753
|
return n ? new RegExp(`^(${pe(n.source)})?$`) : void 0;
|
|
1756
1754
|
}), e._zod.parse = (n, r) => {
|
|
1757
1755
|
if (t.innerType._zod.optin === "optional") {
|
|
1758
1756
|
const o = t.innerType._zod.run(n, r);
|
|
1759
|
-
return o instanceof Promise ? o.then((s) =>
|
|
1757
|
+
return o instanceof Promise ? o.then((s) => Ie(s, n.value)) : Ie(o, n.value);
|
|
1760
1758
|
}
|
|
1761
1759
|
return n.value === void 0 ? n : t.innerType._zod.run(n, r);
|
|
1762
1760
|
};
|
|
1763
|
-
}),
|
|
1761
|
+
}), _o = /* @__PURE__ */ c("$ZodNullable", (e, t) => {
|
|
1764
1762
|
b.init(e, t), _(e._zod, "optin", () => t.innerType._zod.optin), _(e._zod, "optout", () => t.innerType._zod.optout), _(e._zod, "pattern", () => {
|
|
1765
1763
|
const n = t.innerType._zod.pattern;
|
|
1766
1764
|
return n ? new RegExp(`^(${pe(n.source)}|null)$`) : void 0;
|
|
1767
1765
|
}), _(e._zod, "values", () => t.innerType._zod.values ? /* @__PURE__ */ new Set([...t.innerType._zod.values, null]) : void 0), e._zod.parse = (n, r) => n.value === null ? n : t.innerType._zod.run(n, r);
|
|
1768
|
-
}),
|
|
1766
|
+
}), yo = /* @__PURE__ */ c("$ZodDefault", (e, t) => {
|
|
1769
1767
|
b.init(e, t), e._zod.optin = "optional", _(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (n, r) => {
|
|
1770
1768
|
if (r.direction === "backward")
|
|
1771
1769
|
return t.innerType._zod.run(n, r);
|
|
@@ -1778,9 +1776,9 @@ const ho = /* @__PURE__ */ c("$ZodOptional", (e, t) => {
|
|
|
1778
1776
|
function Ce(e, t) {
|
|
1779
1777
|
return e.value === void 0 && (e.value = t.defaultValue), e;
|
|
1780
1778
|
}
|
|
1781
|
-
const
|
|
1779
|
+
const wo = /* @__PURE__ */ c("$ZodPrefault", (e, t) => {
|
|
1782
1780
|
b.init(e, t), e._zod.optin = "optional", _(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (n, r) => (r.direction === "backward" || n.value === void 0 && (n.value = t.defaultValue), t.innerType._zod.run(n, r));
|
|
1783
|
-
}),
|
|
1781
|
+
}), bo = /* @__PURE__ */ c("$ZodNonOptional", (e, t) => {
|
|
1784
1782
|
b.init(e, t), _(e._zod, "values", () => {
|
|
1785
1783
|
const n = t.innerType._zod.values;
|
|
1786
1784
|
return n ? new Set([...n].filter((r) => r !== void 0)) : void 0;
|
|
@@ -1797,7 +1795,7 @@ function Ne(e, t) {
|
|
|
1797
1795
|
inst: t
|
|
1798
1796
|
}), e;
|
|
1799
1797
|
}
|
|
1800
|
-
const
|
|
1798
|
+
const zo = /* @__PURE__ */ c("$ZodCatch", (e, t) => {
|
|
1801
1799
|
b.init(e, t), _(e._zod, "optin", () => t.innerType._zod.optin), _(e._zod, "optout", () => t.innerType._zod.optout), _(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (n, r) => {
|
|
1802
1800
|
if (r.direction === "backward")
|
|
1803
1801
|
return t.innerType._zod.run(n, r);
|
|
@@ -1805,18 +1803,18 @@ const vo = /* @__PURE__ */ c("$ZodCatch", (e, t) => {
|
|
|
1805
1803
|
return o instanceof Promise ? o.then((s) => (n.value = s.value, s.issues.length && (n.value = t.catchValue({
|
|
1806
1804
|
...n,
|
|
1807
1805
|
error: {
|
|
1808
|
-
issues: s.issues.map((i) =>
|
|
1806
|
+
issues: s.issues.map((i) => U(i, r, R()))
|
|
1809
1807
|
},
|
|
1810
1808
|
input: n.value
|
|
1811
1809
|
}), n.issues = []), n)) : (n.value = o.value, o.issues.length && (n.value = t.catchValue({
|
|
1812
1810
|
...n,
|
|
1813
1811
|
error: {
|
|
1814
|
-
issues: o.issues.map((s) =>
|
|
1812
|
+
issues: o.issues.map((s) => U(s, r, R()))
|
|
1815
1813
|
},
|
|
1816
1814
|
input: n.value
|
|
1817
1815
|
}), n.issues = []), n);
|
|
1818
1816
|
};
|
|
1819
|
-
}),
|
|
1817
|
+
}), ko = /* @__PURE__ */ c("$ZodPipe", (e, t) => {
|
|
1820
1818
|
b.init(e, t), _(e._zod, "values", () => t.in._zod.values), _(e._zod, "optin", () => t.in._zod.optin), _(e._zod, "optout", () => t.out._zod.optout), _(e._zod, "propValues", () => t.in._zod.propValues), e._zod.parse = (n, r) => {
|
|
1821
1819
|
if (r.direction === "backward") {
|
|
1822
1820
|
const s = t.out._zod.run(n, r);
|
|
@@ -1829,7 +1827,7 @@ const vo = /* @__PURE__ */ c("$ZodCatch", (e, t) => {
|
|
|
1829
1827
|
function G(e, t, n) {
|
|
1830
1828
|
return e.issues.length ? (e.aborted = !0, e) : t._zod.run({ value: e.value, issues: e.issues }, n);
|
|
1831
1829
|
}
|
|
1832
|
-
const
|
|
1830
|
+
const xo = /* @__PURE__ */ c("$ZodReadonly", (e, t) => {
|
|
1833
1831
|
b.init(e, t), _(e._zod, "propValues", () => t.innerType._zod.propValues), _(e._zod, "values", () => t.innerType._zod.values), _(e._zod, "optin", () => t.innerType._zod.optin), _(e._zod, "optout", () => t.innerType._zod.optout), e._zod.parse = (n, r) => {
|
|
1834
1832
|
if (r.direction === "backward")
|
|
1835
1833
|
return t.innerType._zod.run(n, r);
|
|
@@ -1840,15 +1838,15 @@ const yo = /* @__PURE__ */ c("$ZodReadonly", (e, t) => {
|
|
|
1840
1838
|
function Re(e) {
|
|
1841
1839
|
return e.value = Object.freeze(e.value), e;
|
|
1842
1840
|
}
|
|
1843
|
-
const
|
|
1841
|
+
const Zo = /* @__PURE__ */ c("$ZodCustom", (e, t) => {
|
|
1844
1842
|
T.init(e, t), b.init(e, t), e._zod.parse = (n, r) => n, e._zod.check = (n) => {
|
|
1845
1843
|
const r = n.value, o = t.fn(r);
|
|
1846
1844
|
if (o instanceof Promise)
|
|
1847
|
-
return o.then((s) =>
|
|
1848
|
-
|
|
1845
|
+
return o.then((s) => Ue(s, n, r, e));
|
|
1846
|
+
Ue(o, n, r, e);
|
|
1849
1847
|
};
|
|
1850
1848
|
});
|
|
1851
|
-
function
|
|
1849
|
+
function Ue(e, t, n, r) {
|
|
1852
1850
|
if (!e) {
|
|
1853
1851
|
const o = {
|
|
1854
1852
|
code: "custom",
|
|
@@ -1863,7 +1861,7 @@ function Fe(e, t, n, r) {
|
|
|
1863
1861
|
r._zod.def.params && (o.params = r._zod.def.params), t.issues.push(W(o));
|
|
1864
1862
|
}
|
|
1865
1863
|
}
|
|
1866
|
-
class
|
|
1864
|
+
class $o {
|
|
1867
1865
|
constructor() {
|
|
1868
1866
|
this._map = /* @__PURE__ */ new WeakMap(), this._idmap = /* @__PURE__ */ new Map();
|
|
1869
1867
|
}
|
|
@@ -1897,17 +1895,17 @@ class bo {
|
|
|
1897
1895
|
return this._map.has(t);
|
|
1898
1896
|
}
|
|
1899
1897
|
}
|
|
1900
|
-
function
|
|
1901
|
-
return new
|
|
1898
|
+
function jo() {
|
|
1899
|
+
return new $o();
|
|
1902
1900
|
}
|
|
1903
|
-
const Y = /* @__PURE__ */
|
|
1904
|
-
function
|
|
1901
|
+
const Y = /* @__PURE__ */ jo();
|
|
1902
|
+
function Po(e, t) {
|
|
1905
1903
|
return new e({
|
|
1906
1904
|
type: "string",
|
|
1907
1905
|
...h(t)
|
|
1908
1906
|
});
|
|
1909
1907
|
}
|
|
1910
|
-
function
|
|
1908
|
+
function Oo(e, t) {
|
|
1911
1909
|
return new e({
|
|
1912
1910
|
type: "string",
|
|
1913
1911
|
format: "email",
|
|
@@ -1916,7 +1914,7 @@ function xo(e, t) {
|
|
|
1916
1914
|
...h(t)
|
|
1917
1915
|
});
|
|
1918
1916
|
}
|
|
1919
|
-
function
|
|
1917
|
+
function Fe(e, t) {
|
|
1920
1918
|
return new e({
|
|
1921
1919
|
type: "string",
|
|
1922
1920
|
format: "guid",
|
|
@@ -1925,7 +1923,7 @@ function Ue(e, t) {
|
|
|
1925
1923
|
...h(t)
|
|
1926
1924
|
});
|
|
1927
1925
|
}
|
|
1928
|
-
function
|
|
1926
|
+
function Eo(e, t) {
|
|
1929
1927
|
return new e({
|
|
1930
1928
|
type: "string",
|
|
1931
1929
|
format: "uuid",
|
|
@@ -1934,7 +1932,7 @@ function Zo(e, t) {
|
|
|
1934
1932
|
...h(t)
|
|
1935
1933
|
});
|
|
1936
1934
|
}
|
|
1937
|
-
function
|
|
1935
|
+
function Ao(e, t) {
|
|
1938
1936
|
return new e({
|
|
1939
1937
|
type: "string",
|
|
1940
1938
|
format: "uuid",
|
|
@@ -1944,7 +1942,7 @@ function $o(e, t) {
|
|
|
1944
1942
|
...h(t)
|
|
1945
1943
|
});
|
|
1946
1944
|
}
|
|
1947
|
-
function
|
|
1945
|
+
function To(e, t) {
|
|
1948
1946
|
return new e({
|
|
1949
1947
|
type: "string",
|
|
1950
1948
|
format: "uuid",
|
|
@@ -1954,7 +1952,7 @@ function jo(e, t) {
|
|
|
1954
1952
|
...h(t)
|
|
1955
1953
|
});
|
|
1956
1954
|
}
|
|
1957
|
-
function
|
|
1955
|
+
function Do(e, t) {
|
|
1958
1956
|
return new e({
|
|
1959
1957
|
type: "string",
|
|
1960
1958
|
format: "uuid",
|
|
@@ -1964,7 +1962,7 @@ function Po(e, t) {
|
|
|
1964
1962
|
...h(t)
|
|
1965
1963
|
});
|
|
1966
1964
|
}
|
|
1967
|
-
function
|
|
1965
|
+
function So(e, t) {
|
|
1968
1966
|
return new e({
|
|
1969
1967
|
type: "string",
|
|
1970
1968
|
format: "url",
|
|
@@ -1973,7 +1971,7 @@ function Oo(e, t) {
|
|
|
1973
1971
|
...h(t)
|
|
1974
1972
|
});
|
|
1975
1973
|
}
|
|
1976
|
-
function
|
|
1974
|
+
function Io(e, t) {
|
|
1977
1975
|
return new e({
|
|
1978
1976
|
type: "string",
|
|
1979
1977
|
format: "emoji",
|
|
@@ -1982,7 +1980,7 @@ function Eo(e, t) {
|
|
|
1982
1980
|
...h(t)
|
|
1983
1981
|
});
|
|
1984
1982
|
}
|
|
1985
|
-
function
|
|
1983
|
+
function Co(e, t) {
|
|
1986
1984
|
return new e({
|
|
1987
1985
|
type: "string",
|
|
1988
1986
|
format: "nanoid",
|
|
@@ -1991,7 +1989,7 @@ function Ao(e, t) {
|
|
|
1991
1989
|
...h(t)
|
|
1992
1990
|
});
|
|
1993
1991
|
}
|
|
1994
|
-
function
|
|
1992
|
+
function No(e, t) {
|
|
1995
1993
|
return new e({
|
|
1996
1994
|
type: "string",
|
|
1997
1995
|
format: "cuid",
|
|
@@ -2000,7 +1998,7 @@ function To(e, t) {
|
|
|
2000
1998
|
...h(t)
|
|
2001
1999
|
});
|
|
2002
2000
|
}
|
|
2003
|
-
function
|
|
2001
|
+
function Ro(e, t) {
|
|
2004
2002
|
return new e({
|
|
2005
2003
|
type: "string",
|
|
2006
2004
|
format: "cuid2",
|
|
@@ -2009,7 +2007,7 @@ function So(e, t) {
|
|
|
2009
2007
|
...h(t)
|
|
2010
2008
|
});
|
|
2011
2009
|
}
|
|
2012
|
-
function
|
|
2010
|
+
function Uo(e, t) {
|
|
2013
2011
|
return new e({
|
|
2014
2012
|
type: "string",
|
|
2015
2013
|
format: "ulid",
|
|
@@ -2018,7 +2016,7 @@ function Io(e, t) {
|
|
|
2018
2016
|
...h(t)
|
|
2019
2017
|
});
|
|
2020
2018
|
}
|
|
2021
|
-
function
|
|
2019
|
+
function Fo(e, t) {
|
|
2022
2020
|
return new e({
|
|
2023
2021
|
type: "string",
|
|
2024
2022
|
format: "xid",
|
|
@@ -2027,7 +2025,7 @@ function Do(e, t) {
|
|
|
2027
2025
|
...h(t)
|
|
2028
2026
|
});
|
|
2029
2027
|
}
|
|
2030
|
-
function
|
|
2028
|
+
function qo(e, t) {
|
|
2031
2029
|
return new e({
|
|
2032
2030
|
type: "string",
|
|
2033
2031
|
format: "ksuid",
|
|
@@ -2036,7 +2034,7 @@ function Co(e, t) {
|
|
|
2036
2034
|
...h(t)
|
|
2037
2035
|
});
|
|
2038
2036
|
}
|
|
2039
|
-
function
|
|
2037
|
+
function Mo(e, t) {
|
|
2040
2038
|
return new e({
|
|
2041
2039
|
type: "string",
|
|
2042
2040
|
format: "ipv4",
|
|
@@ -2045,7 +2043,7 @@ function No(e, t) {
|
|
|
2045
2043
|
...h(t)
|
|
2046
2044
|
});
|
|
2047
2045
|
}
|
|
2048
|
-
function
|
|
2046
|
+
function Qo(e, t) {
|
|
2049
2047
|
return new e({
|
|
2050
2048
|
type: "string",
|
|
2051
2049
|
format: "ipv6",
|
|
@@ -2054,7 +2052,7 @@ function Ro(e, t) {
|
|
|
2054
2052
|
...h(t)
|
|
2055
2053
|
});
|
|
2056
2054
|
}
|
|
2057
|
-
function
|
|
2055
|
+
function Lo(e, t) {
|
|
2058
2056
|
return new e({
|
|
2059
2057
|
type: "string",
|
|
2060
2058
|
format: "cidrv4",
|
|
@@ -2063,7 +2061,7 @@ function Fo(e, t) {
|
|
|
2063
2061
|
...h(t)
|
|
2064
2062
|
});
|
|
2065
2063
|
}
|
|
2066
|
-
function
|
|
2064
|
+
function Bo(e, t) {
|
|
2067
2065
|
return new e({
|
|
2068
2066
|
type: "string",
|
|
2069
2067
|
format: "cidrv6",
|
|
@@ -2072,7 +2070,7 @@ function Uo(e, t) {
|
|
|
2072
2070
|
...h(t)
|
|
2073
2071
|
});
|
|
2074
2072
|
}
|
|
2075
|
-
function
|
|
2073
|
+
function Wo(e, t) {
|
|
2076
2074
|
return new e({
|
|
2077
2075
|
type: "string",
|
|
2078
2076
|
format: "base64",
|
|
@@ -2081,7 +2079,7 @@ function qo(e, t) {
|
|
|
2081
2079
|
...h(t)
|
|
2082
2080
|
});
|
|
2083
2081
|
}
|
|
2084
|
-
function
|
|
2082
|
+
function Ko(e, t) {
|
|
2085
2083
|
return new e({
|
|
2086
2084
|
type: "string",
|
|
2087
2085
|
format: "base64url",
|
|
@@ -2090,7 +2088,7 @@ function Mo(e, t) {
|
|
|
2090
2088
|
...h(t)
|
|
2091
2089
|
});
|
|
2092
2090
|
}
|
|
2093
|
-
function
|
|
2091
|
+
function Ho(e, t) {
|
|
2094
2092
|
return new e({
|
|
2095
2093
|
type: "string",
|
|
2096
2094
|
format: "e164",
|
|
@@ -2099,7 +2097,7 @@ function Qo(e, t) {
|
|
|
2099
2097
|
...h(t)
|
|
2100
2098
|
});
|
|
2101
2099
|
}
|
|
2102
|
-
function
|
|
2100
|
+
function Vo(e, t) {
|
|
2103
2101
|
return new e({
|
|
2104
2102
|
type: "string",
|
|
2105
2103
|
format: "jwt",
|
|
@@ -2108,7 +2106,7 @@ function Lo(e, t) {
|
|
|
2108
2106
|
...h(t)
|
|
2109
2107
|
});
|
|
2110
2108
|
}
|
|
2111
|
-
function
|
|
2109
|
+
function Jo(e, t) {
|
|
2112
2110
|
return new e({
|
|
2113
2111
|
type: "string",
|
|
2114
2112
|
format: "datetime",
|
|
@@ -2119,7 +2117,7 @@ function Bo(e, t) {
|
|
|
2119
2117
|
...h(t)
|
|
2120
2118
|
});
|
|
2121
2119
|
}
|
|
2122
|
-
function
|
|
2120
|
+
function Go(e, t) {
|
|
2123
2121
|
return new e({
|
|
2124
2122
|
type: "string",
|
|
2125
2123
|
format: "date",
|
|
@@ -2127,7 +2125,7 @@ function Wo(e, t) {
|
|
|
2127
2125
|
...h(t)
|
|
2128
2126
|
});
|
|
2129
2127
|
}
|
|
2130
|
-
function
|
|
2128
|
+
function Yo(e, t) {
|
|
2131
2129
|
return new e({
|
|
2132
2130
|
type: "string",
|
|
2133
2131
|
format: "time",
|
|
@@ -2136,7 +2134,7 @@ function Ko(e, t) {
|
|
|
2136
2134
|
...h(t)
|
|
2137
2135
|
});
|
|
2138
2136
|
}
|
|
2139
|
-
function
|
|
2137
|
+
function Xo(e, t) {
|
|
2140
2138
|
return new e({
|
|
2141
2139
|
type: "string",
|
|
2142
2140
|
format: "duration",
|
|
@@ -2144,78 +2142,78 @@ function Ho(e, t) {
|
|
|
2144
2142
|
...h(t)
|
|
2145
2143
|
});
|
|
2146
2144
|
}
|
|
2147
|
-
function
|
|
2145
|
+
function es(e) {
|
|
2148
2146
|
return new e({
|
|
2149
2147
|
type: "unknown"
|
|
2150
2148
|
});
|
|
2151
2149
|
}
|
|
2152
|
-
function
|
|
2150
|
+
function ts(e, t) {
|
|
2153
2151
|
return new e({
|
|
2154
2152
|
type: "never",
|
|
2155
2153
|
...h(t)
|
|
2156
2154
|
});
|
|
2157
2155
|
}
|
|
2158
|
-
function
|
|
2159
|
-
return new
|
|
2156
|
+
function wt(e, t) {
|
|
2157
|
+
return new xr({
|
|
2160
2158
|
check: "max_length",
|
|
2161
2159
|
...h(t),
|
|
2162
2160
|
maximum: e
|
|
2163
2161
|
});
|
|
2164
2162
|
}
|
|
2165
2163
|
function ne(e, t) {
|
|
2166
|
-
return new
|
|
2164
|
+
return new Zr({
|
|
2167
2165
|
check: "min_length",
|
|
2168
2166
|
...h(t),
|
|
2169
2167
|
minimum: e
|
|
2170
2168
|
});
|
|
2171
2169
|
}
|
|
2172
|
-
function
|
|
2173
|
-
return new
|
|
2170
|
+
function bt(e, t) {
|
|
2171
|
+
return new $r({
|
|
2174
2172
|
check: "length_equals",
|
|
2175
2173
|
...h(t),
|
|
2176
2174
|
length: e
|
|
2177
2175
|
});
|
|
2178
2176
|
}
|
|
2179
|
-
function
|
|
2180
|
-
return new
|
|
2177
|
+
function ns(e, t) {
|
|
2178
|
+
return new jr({
|
|
2181
2179
|
check: "string_format",
|
|
2182
2180
|
format: "regex",
|
|
2183
2181
|
...h(t),
|
|
2184
2182
|
pattern: e
|
|
2185
2183
|
});
|
|
2186
2184
|
}
|
|
2187
|
-
function
|
|
2188
|
-
return new
|
|
2185
|
+
function rs(e) {
|
|
2186
|
+
return new Pr({
|
|
2189
2187
|
check: "string_format",
|
|
2190
2188
|
format: "lowercase",
|
|
2191
2189
|
...h(e)
|
|
2192
2190
|
});
|
|
2193
2191
|
}
|
|
2194
|
-
function
|
|
2195
|
-
return new
|
|
2192
|
+
function os(e) {
|
|
2193
|
+
return new Or({
|
|
2196
2194
|
check: "string_format",
|
|
2197
2195
|
format: "uppercase",
|
|
2198
2196
|
...h(e)
|
|
2199
2197
|
});
|
|
2200
2198
|
}
|
|
2201
|
-
function
|
|
2202
|
-
return new
|
|
2199
|
+
function ss(e, t) {
|
|
2200
|
+
return new Er({
|
|
2203
2201
|
check: "string_format",
|
|
2204
2202
|
format: "includes",
|
|
2205
2203
|
...h(t),
|
|
2206
2204
|
includes: e
|
|
2207
2205
|
});
|
|
2208
2206
|
}
|
|
2209
|
-
function
|
|
2210
|
-
return new
|
|
2207
|
+
function is(e, t) {
|
|
2208
|
+
return new Ar({
|
|
2211
2209
|
check: "string_format",
|
|
2212
2210
|
format: "starts_with",
|
|
2213
2211
|
...h(t),
|
|
2214
2212
|
prefix: e
|
|
2215
2213
|
});
|
|
2216
2214
|
}
|
|
2217
|
-
function
|
|
2218
|
-
return new
|
|
2215
|
+
function as(e, t) {
|
|
2216
|
+
return new Tr({
|
|
2219
2217
|
check: "string_format",
|
|
2220
2218
|
format: "ends_with",
|
|
2221
2219
|
...h(t),
|
|
@@ -2223,24 +2221,24 @@ function ns(e, t) {
|
|
|
2223
2221
|
});
|
|
2224
2222
|
}
|
|
2225
2223
|
function K(e) {
|
|
2226
|
-
return new
|
|
2224
|
+
return new Dr({
|
|
2227
2225
|
check: "overwrite",
|
|
2228
2226
|
tx: e
|
|
2229
2227
|
});
|
|
2230
2228
|
}
|
|
2231
|
-
function
|
|
2229
|
+
function cs(e) {
|
|
2232
2230
|
return K((t) => t.normalize(e));
|
|
2233
2231
|
}
|
|
2234
|
-
function
|
|
2232
|
+
function us() {
|
|
2235
2233
|
return K((e) => e.trim());
|
|
2236
2234
|
}
|
|
2237
|
-
function
|
|
2235
|
+
function ls() {
|
|
2238
2236
|
return K((e) => e.toLowerCase());
|
|
2239
2237
|
}
|
|
2240
|
-
function
|
|
2238
|
+
function ds() {
|
|
2241
2239
|
return K((e) => e.toUpperCase());
|
|
2242
2240
|
}
|
|
2243
|
-
function
|
|
2241
|
+
function hs(e, t, n) {
|
|
2244
2242
|
return new e({
|
|
2245
2243
|
type: "array",
|
|
2246
2244
|
element: t,
|
|
@@ -2250,7 +2248,7 @@ function as(e, t, n) {
|
|
|
2250
2248
|
...h(n)
|
|
2251
2249
|
});
|
|
2252
2250
|
}
|
|
2253
|
-
function
|
|
2251
|
+
function fs(e, t, n) {
|
|
2254
2252
|
return new e({
|
|
2255
2253
|
type: "custom",
|
|
2256
2254
|
check: "custom",
|
|
@@ -2258,8 +2256,8 @@ function cs(e, t, n) {
|
|
|
2258
2256
|
...h(n)
|
|
2259
2257
|
});
|
|
2260
2258
|
}
|
|
2261
|
-
function
|
|
2262
|
-
const t =
|
|
2259
|
+
function ps(e) {
|
|
2260
|
+
const t = ms((n) => (n.addIssue = (r) => {
|
|
2263
2261
|
if (typeof r == "string")
|
|
2264
2262
|
n.issues.push(W(r, n.value, t._zod.def));
|
|
2265
2263
|
else {
|
|
@@ -2269,45 +2267,45 @@ function us(e) {
|
|
|
2269
2267
|
}, e(n.value, n)));
|
|
2270
2268
|
return t;
|
|
2271
2269
|
}
|
|
2272
|
-
function
|
|
2270
|
+
function ms(e, t) {
|
|
2273
2271
|
const n = new T({
|
|
2274
2272
|
check: "custom",
|
|
2275
2273
|
...h(t)
|
|
2276
2274
|
});
|
|
2277
2275
|
return n._zod.check = e, n;
|
|
2278
2276
|
}
|
|
2279
|
-
const
|
|
2280
|
-
|
|
2277
|
+
const gs = /* @__PURE__ */ c("ZodISODateTime", (e, t) => {
|
|
2278
|
+
Kr.init(e, t), w.init(e, t);
|
|
2281
2279
|
});
|
|
2282
|
-
function
|
|
2283
|
-
return
|
|
2280
|
+
function vs(e) {
|
|
2281
|
+
return Jo(gs, e);
|
|
2284
2282
|
}
|
|
2285
|
-
const
|
|
2286
|
-
|
|
2283
|
+
const _s = /* @__PURE__ */ c("ZodISODate", (e, t) => {
|
|
2284
|
+
Hr.init(e, t), w.init(e, t);
|
|
2287
2285
|
});
|
|
2288
|
-
function
|
|
2289
|
-
return
|
|
2286
|
+
function ys(e) {
|
|
2287
|
+
return Go(_s, e);
|
|
2290
2288
|
}
|
|
2291
|
-
const
|
|
2292
|
-
|
|
2289
|
+
const ws = /* @__PURE__ */ c("ZodISOTime", (e, t) => {
|
|
2290
|
+
Vr.init(e, t), w.init(e, t);
|
|
2293
2291
|
});
|
|
2294
|
-
function
|
|
2295
|
-
return
|
|
2292
|
+
function bs(e) {
|
|
2293
|
+
return Yo(ws, e);
|
|
2296
2294
|
}
|
|
2297
|
-
const
|
|
2298
|
-
|
|
2295
|
+
const zs = /* @__PURE__ */ c("ZodISODuration", (e, t) => {
|
|
2296
|
+
Jr.init(e, t), w.init(e, t);
|
|
2299
2297
|
});
|
|
2300
|
-
function
|
|
2301
|
-
return
|
|
2298
|
+
function ks(e) {
|
|
2299
|
+
return Xo(zs, e);
|
|
2302
2300
|
}
|
|
2303
|
-
const
|
|
2304
|
-
|
|
2301
|
+
const xs = (e, t) => {
|
|
2302
|
+
ht.init(e, t), e.name = "ZodError", Object.defineProperties(e, {
|
|
2305
2303
|
format: {
|
|
2306
|
-
value: (n) =>
|
|
2304
|
+
value: (n) => Qn(e, n)
|
|
2307
2305
|
// enumerable: false,
|
|
2308
2306
|
},
|
|
2309
2307
|
flatten: {
|
|
2310
|
-
value: (n) =>
|
|
2308
|
+
value: (n) => Mn(e, n)
|
|
2311
2309
|
// enumerable: false,
|
|
2312
2310
|
},
|
|
2313
2311
|
addIssue: {
|
|
@@ -2329,14 +2327,14 @@ const ys = (e, t) => {
|
|
|
2329
2327
|
// enumerable: false,
|
|
2330
2328
|
}
|
|
2331
2329
|
});
|
|
2332
|
-
}, O = c("ZodError",
|
|
2330
|
+
}, O = c("ZodError", xs, {
|
|
2333
2331
|
Parent: Error
|
|
2334
|
-
}),
|
|
2332
|
+
}), Zs = /* @__PURE__ */ ge(O), $s = /* @__PURE__ */ ve(O), js = /* @__PURE__ */ ie(O), Ps = /* @__PURE__ */ ae(O), Os = /* @__PURE__ */ Wn(O), Es = /* @__PURE__ */ Kn(O), As = /* @__PURE__ */ Hn(O), Ts = /* @__PURE__ */ Vn(O), Ds = /* @__PURE__ */ Jn(O), Ss = /* @__PURE__ */ Gn(O), Is = /* @__PURE__ */ Yn(O), Cs = /* @__PURE__ */ Xn(O), z = /* @__PURE__ */ c("ZodType", (e, t) => (b.init(e, t), e.def = t, e.type = t.type, Object.defineProperty(e, "_def", { value: t }), e.check = (...n) => e.clone(q(t, {
|
|
2335
2333
|
checks: [
|
|
2336
2334
|
...t.checks ?? [],
|
|
2337
2335
|
...n.map((r) => typeof r == "function" ? { _zod: { check: r, def: { check: "custom" }, onattach: [] } } : r)
|
|
2338
2336
|
]
|
|
2339
|
-
})), e.clone = (n, r) => N(e, n, r), e.brand = () => e, e.register = ((n, r) => (n.add(e, r), e)), e.parse = (n, r) =>
|
|
2337
|
+
})), e.clone = (n, r) => N(e, n, r), e.brand = () => e, e.register = ((n, r) => (n.add(e, r), e)), e.parse = (n, r) => Zs(e, n, r, { callee: e.parse }), e.safeParse = (n, r) => js(e, n, r), e.parseAsync = async (n, r) => $s(e, n, r, { callee: e.parseAsync }), e.safeParseAsync = async (n, r) => Ps(e, n, r), e.spa = e.safeParseAsync, e.encode = (n, r) => Os(e, n, r), e.decode = (n, r) => Es(e, n, r), e.encodeAsync = async (n, r) => As(e, n, r), e.decodeAsync = async (n, r) => Ts(e, n, r), e.safeEncode = (n, r) => Ds(e, n, r), e.safeDecode = (n, r) => Ss(e, n, r), e.safeEncodeAsync = async (n, r) => Is(e, n, r), e.safeDecodeAsync = async (n, r) => Cs(e, n, r), e.refine = (n, r) => e.check($i(n, r)), e.superRefine = (n) => e.check(ji(n)), e.overwrite = (n) => e.check(K(n)), e.optional = () => Le(e), e.nullable = () => Be(e), e.nullish = () => Le(Be(e)), e.nonoptional = (n) => yi(e, n), e.array = () => si(e), e.or = (n) => ui([e, n]), e.and = (n) => di(e, n), e.transform = (n) => We(e, fi(n)), e.default = (n) => gi(e, n), e.prefault = (n) => _i(e, n), e.catch = (n) => bi(e, n), e.pipe = (n) => We(e, n), e.readonly = () => xi(e), e.describe = (n) => {
|
|
2340
2338
|
const r = e.clone();
|
|
2341
2339
|
return Y.add(r, { description: n }), r;
|
|
2342
2340
|
}, Object.defineProperty(e, "description", {
|
|
@@ -2349,107 +2347,107 @@ const ys = (e, t) => {
|
|
|
2349
2347
|
return Y.get(e);
|
|
2350
2348
|
const r = e.clone();
|
|
2351
2349
|
return Y.add(r, n[0]), r;
|
|
2352
|
-
}, e.isOptional = () => e.safeParse(void 0).success, e.isNullable = () => e.safeParse(null).success, e)),
|
|
2350
|
+
}, e.isOptional = () => e.safeParse(void 0).success, e.isNullable = () => e.safeParse(null).success, e)), zt = /* @__PURE__ */ c("_ZodString", (e, t) => {
|
|
2353
2351
|
_e.init(e, t), z.init(e, t);
|
|
2354
2352
|
const n = e._zod.bag;
|
|
2355
|
-
e.format = n.format ?? null, e.minLength = n.minimum ?? null, e.maxLength = n.maximum ?? null, e.regex = (...r) => e.check(
|
|
2356
|
-
}),
|
|
2357
|
-
_e.init(e, t),
|
|
2353
|
+
e.format = n.format ?? null, e.minLength = n.minimum ?? null, e.maxLength = n.maximum ?? null, e.regex = (...r) => e.check(ns(...r)), e.includes = (...r) => e.check(ss(...r)), e.startsWith = (...r) => e.check(is(...r)), e.endsWith = (...r) => e.check(as(...r)), e.min = (...r) => e.check(ne(...r)), e.max = (...r) => e.check(wt(...r)), e.length = (...r) => e.check(bt(...r)), e.nonempty = (...r) => e.check(ne(1, ...r)), e.lowercase = (r) => e.check(rs(r)), e.uppercase = (r) => e.check(os(r)), e.trim = () => e.check(us()), e.normalize = (...r) => e.check(cs(...r)), e.toLowerCase = () => e.check(ls()), e.toUpperCase = () => e.check(ds());
|
|
2354
|
+
}), Ns = /* @__PURE__ */ c("ZodString", (e, t) => {
|
|
2355
|
+
_e.init(e, t), zt.init(e, t), e.email = (n) => e.check(Oo(Rs, n)), e.url = (n) => e.check(So(Us, n)), e.jwt = (n) => e.check(Vo(ei, n)), e.emoji = (n) => e.check(Io(Fs, n)), e.guid = (n) => e.check(Fe(Me, n)), e.uuid = (n) => e.check(Eo(X, n)), e.uuidv4 = (n) => e.check(Ao(X, n)), e.uuidv6 = (n) => e.check(To(X, n)), e.uuidv7 = (n) => e.check(Do(X, n)), e.nanoid = (n) => e.check(Co(qs, n)), e.guid = (n) => e.check(Fe(Me, n)), e.cuid = (n) => e.check(No(Ms, n)), e.cuid2 = (n) => e.check(Ro(Qs, n)), e.ulid = (n) => e.check(Uo(Ls, n)), e.base64 = (n) => e.check(Wo(Gs, n)), e.base64url = (n) => e.check(Ko(Ys, n)), e.xid = (n) => e.check(Fo(Bs, n)), e.ksuid = (n) => e.check(qo(Ws, n)), e.ipv4 = (n) => e.check(Mo(Ks, n)), e.ipv6 = (n) => e.check(Qo(Hs, n)), e.cidrv4 = (n) => e.check(Lo(Vs, n)), e.cidrv6 = (n) => e.check(Bo(Js, n)), e.e164 = (n) => e.check(Ho(Xs, n)), e.datetime = (n) => e.check(vs(n)), e.date = (n) => e.check(ys(n)), e.time = (n) => e.check(bs(n)), e.duration = (n) => e.check(ks(n));
|
|
2358
2356
|
});
|
|
2359
2357
|
function qe(e) {
|
|
2360
|
-
return
|
|
2358
|
+
return Po(Ns, e);
|
|
2361
2359
|
}
|
|
2362
2360
|
const w = /* @__PURE__ */ c("ZodStringFormat", (e, t) => {
|
|
2363
|
-
y.init(e, t),
|
|
2364
|
-
}),
|
|
2365
|
-
|
|
2361
|
+
y.init(e, t), zt.init(e, t);
|
|
2362
|
+
}), Rs = /* @__PURE__ */ c("ZodEmail", (e, t) => {
|
|
2363
|
+
Rr.init(e, t), w.init(e, t);
|
|
2366
2364
|
}), Me = /* @__PURE__ */ c("ZodGUID", (e, t) => {
|
|
2367
|
-
Ar.init(e, t), w.init(e, t);
|
|
2368
|
-
}), X = /* @__PURE__ */ c("ZodUUID", (e, t) => {
|
|
2369
|
-
Tr.init(e, t), w.init(e, t);
|
|
2370
|
-
}), Is = /* @__PURE__ */ c("ZodURL", (e, t) => {
|
|
2371
|
-
Ir.init(e, t), w.init(e, t);
|
|
2372
|
-
}), Ds = /* @__PURE__ */ c("ZodEmoji", (e, t) => {
|
|
2373
|
-
Dr.init(e, t), w.init(e, t);
|
|
2374
|
-
}), Cs = /* @__PURE__ */ c("ZodNanoID", (e, t) => {
|
|
2375
2365
|
Cr.init(e, t), w.init(e, t);
|
|
2376
|
-
}),
|
|
2366
|
+
}), X = /* @__PURE__ */ c("ZodUUID", (e, t) => {
|
|
2377
2367
|
Nr.init(e, t), w.init(e, t);
|
|
2378
|
-
}),
|
|
2379
|
-
Rr.init(e, t), w.init(e, t);
|
|
2380
|
-
}), Fs = /* @__PURE__ */ c("ZodULID", (e, t) => {
|
|
2381
|
-
Fr.init(e, t), w.init(e, t);
|
|
2382
|
-
}), Us = /* @__PURE__ */ c("ZodXID", (e, t) => {
|
|
2368
|
+
}), Us = /* @__PURE__ */ c("ZodURL", (e, t) => {
|
|
2383
2369
|
Ur.init(e, t), w.init(e, t);
|
|
2384
|
-
}),
|
|
2370
|
+
}), Fs = /* @__PURE__ */ c("ZodEmoji", (e, t) => {
|
|
2371
|
+
Fr.init(e, t), w.init(e, t);
|
|
2372
|
+
}), qs = /* @__PURE__ */ c("ZodNanoID", (e, t) => {
|
|
2385
2373
|
qr.init(e, t), w.init(e, t);
|
|
2386
|
-
}), Ms = /* @__PURE__ */ c("
|
|
2374
|
+
}), Ms = /* @__PURE__ */ c("ZodCUID", (e, t) => {
|
|
2375
|
+
Mr.init(e, t), w.init(e, t);
|
|
2376
|
+
}), Qs = /* @__PURE__ */ c("ZodCUID2", (e, t) => {
|
|
2377
|
+
Qr.init(e, t), w.init(e, t);
|
|
2378
|
+
}), Ls = /* @__PURE__ */ c("ZodULID", (e, t) => {
|
|
2379
|
+
Lr.init(e, t), w.init(e, t);
|
|
2380
|
+
}), Bs = /* @__PURE__ */ c("ZodXID", (e, t) => {
|
|
2381
|
+
Br.init(e, t), w.init(e, t);
|
|
2382
|
+
}), Ws = /* @__PURE__ */ c("ZodKSUID", (e, t) => {
|
|
2387
2383
|
Wr.init(e, t), w.init(e, t);
|
|
2388
|
-
}),
|
|
2389
|
-
|
|
2390
|
-
}),
|
|
2391
|
-
Hr.init(e, t), w.init(e, t);
|
|
2392
|
-
}), Bs = /* @__PURE__ */ c("ZodCIDRv6", (e, t) => {
|
|
2393
|
-
Vr.init(e, t), w.init(e, t);
|
|
2394
|
-
}), Ws = /* @__PURE__ */ c("ZodBase64", (e, t) => {
|
|
2395
|
-
Jr.init(e, t), w.init(e, t);
|
|
2396
|
-
}), Ks = /* @__PURE__ */ c("ZodBase64URL", (e, t) => {
|
|
2384
|
+
}), Ks = /* @__PURE__ */ c("ZodIPv4", (e, t) => {
|
|
2385
|
+
Gr.init(e, t), w.init(e, t);
|
|
2386
|
+
}), Hs = /* @__PURE__ */ c("ZodIPv6", (e, t) => {
|
|
2397
2387
|
Yr.init(e, t), w.init(e, t);
|
|
2398
|
-
}),
|
|
2388
|
+
}), Vs = /* @__PURE__ */ c("ZodCIDRv4", (e, t) => {
|
|
2399
2389
|
Xr.init(e, t), w.init(e, t);
|
|
2400
|
-
}),
|
|
2390
|
+
}), Js = /* @__PURE__ */ c("ZodCIDRv6", (e, t) => {
|
|
2391
|
+
eo.init(e, t), w.init(e, t);
|
|
2392
|
+
}), Gs = /* @__PURE__ */ c("ZodBase64", (e, t) => {
|
|
2401
2393
|
to.init(e, t), w.init(e, t);
|
|
2402
|
-
}),
|
|
2403
|
-
|
|
2394
|
+
}), Ys = /* @__PURE__ */ c("ZodBase64URL", (e, t) => {
|
|
2395
|
+
ro.init(e, t), w.init(e, t);
|
|
2396
|
+
}), Xs = /* @__PURE__ */ c("ZodE164", (e, t) => {
|
|
2397
|
+
oo.init(e, t), w.init(e, t);
|
|
2398
|
+
}), ei = /* @__PURE__ */ c("ZodJWT", (e, t) => {
|
|
2399
|
+
io.init(e, t), w.init(e, t);
|
|
2400
|
+
}), ti = /* @__PURE__ */ c("ZodUnknown", (e, t) => {
|
|
2401
|
+
ao.init(e, t), z.init(e, t);
|
|
2404
2402
|
});
|
|
2405
2403
|
function Qe() {
|
|
2406
|
-
return
|
|
2404
|
+
return es(ti);
|
|
2407
2405
|
}
|
|
2408
|
-
const
|
|
2409
|
-
|
|
2406
|
+
const ni = /* @__PURE__ */ c("ZodNever", (e, t) => {
|
|
2407
|
+
co.init(e, t), z.init(e, t);
|
|
2410
2408
|
});
|
|
2411
|
-
function
|
|
2412
|
-
return
|
|
2409
|
+
function ri(e) {
|
|
2410
|
+
return ts(ni, e);
|
|
2413
2411
|
}
|
|
2414
|
-
const
|
|
2415
|
-
|
|
2412
|
+
const oi = /* @__PURE__ */ c("ZodArray", (e, t) => {
|
|
2413
|
+
uo.init(e, t), z.init(e, t), e.element = t.element, e.min = (n, r) => e.check(ne(n, r)), e.nonempty = (n) => e.check(ne(1, n)), e.max = (n, r) => e.check(wt(n, r)), e.length = (n, r) => e.check(bt(n, r)), e.unwrap = () => e.element;
|
|
2416
2414
|
});
|
|
2417
|
-
function
|
|
2418
|
-
return
|
|
2415
|
+
function si(e, t) {
|
|
2416
|
+
return hs(oi, e, t);
|
|
2419
2417
|
}
|
|
2420
|
-
const
|
|
2421
|
-
|
|
2418
|
+
const ii = /* @__PURE__ */ c("ZodObject", (e, t) => {
|
|
2419
|
+
ho.init(e, t), z.init(e, t), _(e, "shape", () => t.shape), e.keyof = () => kt(Object.keys(e._zod.def.shape)), e.catchall = (n) => e.clone({ ...e._zod.def, catchall: n }), e.passthrough = () => e.clone({ ...e._zod.def, catchall: Qe() }), e.loose = () => e.clone({ ...e._zod.def, catchall: Qe() }), e.strict = () => e.clone({ ...e._zod.def, catchall: ri() }), e.strip = () => e.clone({ ...e._zod.def, catchall: void 0 }), e.extend = (n) => Nn(e, n), e.safeExtend = (n) => Rn(e, n), e.merge = (n) => Un(e, n), e.pick = (n) => In(e, n), e.omit = (n) => Cn(e, n), e.partial = (...n) => Fn(xt, e, n[0]), e.required = (...n) => qn(Zt, e, n[0]);
|
|
2422
2420
|
});
|
|
2423
|
-
function
|
|
2421
|
+
function ai(e, t) {
|
|
2424
2422
|
const n = {
|
|
2425
2423
|
type: "object",
|
|
2426
2424
|
shape: e ?? {},
|
|
2427
2425
|
...h(t)
|
|
2428
2426
|
};
|
|
2429
|
-
return new
|
|
2427
|
+
return new ii(n);
|
|
2430
2428
|
}
|
|
2431
|
-
const
|
|
2432
|
-
|
|
2429
|
+
const ci = /* @__PURE__ */ c("ZodUnion", (e, t) => {
|
|
2430
|
+
fo.init(e, t), z.init(e, t), e.options = t.options;
|
|
2433
2431
|
});
|
|
2434
|
-
function
|
|
2435
|
-
return new
|
|
2432
|
+
function ui(e, t) {
|
|
2433
|
+
return new ci({
|
|
2436
2434
|
type: "union",
|
|
2437
2435
|
options: e,
|
|
2438
2436
|
...h(t)
|
|
2439
2437
|
});
|
|
2440
2438
|
}
|
|
2441
|
-
const
|
|
2442
|
-
|
|
2439
|
+
const li = /* @__PURE__ */ c("ZodIntersection", (e, t) => {
|
|
2440
|
+
po.init(e, t), z.init(e, t);
|
|
2443
2441
|
});
|
|
2444
|
-
function
|
|
2445
|
-
return new
|
|
2442
|
+
function di(e, t) {
|
|
2443
|
+
return new li({
|
|
2446
2444
|
type: "intersection",
|
|
2447
2445
|
left: e,
|
|
2448
2446
|
right: t
|
|
2449
2447
|
});
|
|
2450
2448
|
}
|
|
2451
2449
|
const de = /* @__PURE__ */ c("ZodEnum", (e, t) => {
|
|
2452
|
-
|
|
2450
|
+
mo.init(e, t), z.init(e, t), e.enum = t.entries, e.options = Object.values(t.entries);
|
|
2453
2451
|
const n = new Set(Object.keys(t.entries));
|
|
2454
2452
|
e.extract = (r, o) => {
|
|
2455
2453
|
const s = {};
|
|
@@ -2479,7 +2477,7 @@ const de = /* @__PURE__ */ c("ZodEnum", (e, t) => {
|
|
|
2479
2477
|
});
|
|
2480
2478
|
};
|
|
2481
2479
|
});
|
|
2482
|
-
function
|
|
2480
|
+
function kt(e, t) {
|
|
2483
2481
|
const n = Array.isArray(e) ? Object.fromEntries(e.map((r) => [r, r])) : e;
|
|
2484
2482
|
return new de({
|
|
2485
2483
|
type: "enum",
|
|
@@ -2487,10 +2485,10 @@ function yt(e, t) {
|
|
|
2487
2485
|
...h(t)
|
|
2488
2486
|
});
|
|
2489
2487
|
}
|
|
2490
|
-
const
|
|
2491
|
-
|
|
2488
|
+
const hi = /* @__PURE__ */ c("ZodTransform", (e, t) => {
|
|
2489
|
+
go.init(e, t), z.init(e, t), e._zod.parse = (n, r) => {
|
|
2492
2490
|
if (r.direction === "backward")
|
|
2493
|
-
throw new
|
|
2491
|
+
throw new it(e.constructor.name);
|
|
2494
2492
|
n.addIssue = (s) => {
|
|
2495
2493
|
if (typeof s == "string")
|
|
2496
2494
|
n.issues.push(W(s, n.value, t));
|
|
@@ -2503,113 +2501,113 @@ const ai = /* @__PURE__ */ c("ZodTransform", (e, t) => {
|
|
|
2503
2501
|
return o instanceof Promise ? o.then((s) => (n.value = s, n)) : (n.value = o, n);
|
|
2504
2502
|
};
|
|
2505
2503
|
});
|
|
2506
|
-
function
|
|
2507
|
-
return new
|
|
2504
|
+
function fi(e) {
|
|
2505
|
+
return new hi({
|
|
2508
2506
|
type: "transform",
|
|
2509
2507
|
transform: e
|
|
2510
2508
|
});
|
|
2511
2509
|
}
|
|
2512
|
-
const
|
|
2513
|
-
|
|
2510
|
+
const xt = /* @__PURE__ */ c("ZodOptional", (e, t) => {
|
|
2511
|
+
vo.init(e, t), z.init(e, t), e.unwrap = () => e._zod.def.innerType;
|
|
2514
2512
|
});
|
|
2515
2513
|
function Le(e) {
|
|
2516
|
-
return new
|
|
2514
|
+
return new xt({
|
|
2517
2515
|
type: "optional",
|
|
2518
2516
|
innerType: e
|
|
2519
2517
|
});
|
|
2520
2518
|
}
|
|
2521
|
-
const
|
|
2522
|
-
|
|
2519
|
+
const pi = /* @__PURE__ */ c("ZodNullable", (e, t) => {
|
|
2520
|
+
_o.init(e, t), z.init(e, t), e.unwrap = () => e._zod.def.innerType;
|
|
2523
2521
|
});
|
|
2524
2522
|
function Be(e) {
|
|
2525
|
-
return new
|
|
2523
|
+
return new pi({
|
|
2526
2524
|
type: "nullable",
|
|
2527
2525
|
innerType: e
|
|
2528
2526
|
});
|
|
2529
2527
|
}
|
|
2530
|
-
const
|
|
2531
|
-
|
|
2528
|
+
const mi = /* @__PURE__ */ c("ZodDefault", (e, t) => {
|
|
2529
|
+
yo.init(e, t), z.init(e, t), e.unwrap = () => e._zod.def.innerType, e.removeDefault = e.unwrap;
|
|
2532
2530
|
});
|
|
2533
|
-
function
|
|
2534
|
-
return new
|
|
2531
|
+
function gi(e, t) {
|
|
2532
|
+
return new mi({
|
|
2535
2533
|
type: "default",
|
|
2536
2534
|
innerType: e,
|
|
2537
2535
|
get defaultValue() {
|
|
2538
|
-
return typeof t == "function" ? t() :
|
|
2536
|
+
return typeof t == "function" ? t() : ut(t);
|
|
2539
2537
|
}
|
|
2540
2538
|
});
|
|
2541
2539
|
}
|
|
2542
|
-
const
|
|
2543
|
-
|
|
2540
|
+
const vi = /* @__PURE__ */ c("ZodPrefault", (e, t) => {
|
|
2541
|
+
wo.init(e, t), z.init(e, t), e.unwrap = () => e._zod.def.innerType;
|
|
2544
2542
|
});
|
|
2545
|
-
function
|
|
2546
|
-
return new
|
|
2543
|
+
function _i(e, t) {
|
|
2544
|
+
return new vi({
|
|
2547
2545
|
type: "prefault",
|
|
2548
2546
|
innerType: e,
|
|
2549
2547
|
get defaultValue() {
|
|
2550
|
-
return typeof t == "function" ? t() :
|
|
2548
|
+
return typeof t == "function" ? t() : ut(t);
|
|
2551
2549
|
}
|
|
2552
2550
|
});
|
|
2553
2551
|
}
|
|
2554
|
-
const
|
|
2555
|
-
|
|
2552
|
+
const Zt = /* @__PURE__ */ c("ZodNonOptional", (e, t) => {
|
|
2553
|
+
bo.init(e, t), z.init(e, t), e.unwrap = () => e._zod.def.innerType;
|
|
2556
2554
|
});
|
|
2557
|
-
function
|
|
2558
|
-
return new
|
|
2555
|
+
function yi(e, t) {
|
|
2556
|
+
return new Zt({
|
|
2559
2557
|
type: "nonoptional",
|
|
2560
2558
|
innerType: e,
|
|
2561
2559
|
...h(t)
|
|
2562
2560
|
});
|
|
2563
2561
|
}
|
|
2564
|
-
const
|
|
2565
|
-
|
|
2562
|
+
const wi = /* @__PURE__ */ c("ZodCatch", (e, t) => {
|
|
2563
|
+
zo.init(e, t), z.init(e, t), e.unwrap = () => e._zod.def.innerType, e.removeCatch = e.unwrap;
|
|
2566
2564
|
});
|
|
2567
|
-
function
|
|
2568
|
-
return new
|
|
2565
|
+
function bi(e, t) {
|
|
2566
|
+
return new wi({
|
|
2569
2567
|
type: "catch",
|
|
2570
2568
|
innerType: e,
|
|
2571
2569
|
catchValue: typeof t == "function" ? t : () => t
|
|
2572
2570
|
});
|
|
2573
2571
|
}
|
|
2574
|
-
const
|
|
2575
|
-
|
|
2572
|
+
const zi = /* @__PURE__ */ c("ZodPipe", (e, t) => {
|
|
2573
|
+
ko.init(e, t), z.init(e, t), e.in = t.in, e.out = t.out;
|
|
2576
2574
|
});
|
|
2577
2575
|
function We(e, t) {
|
|
2578
|
-
return new
|
|
2576
|
+
return new zi({
|
|
2579
2577
|
type: "pipe",
|
|
2580
2578
|
in: e,
|
|
2581
2579
|
out: t
|
|
2582
2580
|
// ...util.normalizeParams(params),
|
|
2583
2581
|
});
|
|
2584
2582
|
}
|
|
2585
|
-
const
|
|
2586
|
-
|
|
2583
|
+
const ki = /* @__PURE__ */ c("ZodReadonly", (e, t) => {
|
|
2584
|
+
xo.init(e, t), z.init(e, t), e.unwrap = () => e._zod.def.innerType;
|
|
2587
2585
|
});
|
|
2588
|
-
function
|
|
2589
|
-
return new
|
|
2586
|
+
function xi(e) {
|
|
2587
|
+
return new ki({
|
|
2590
2588
|
type: "readonly",
|
|
2591
2589
|
innerType: e
|
|
2592
2590
|
});
|
|
2593
2591
|
}
|
|
2594
|
-
const
|
|
2595
|
-
|
|
2592
|
+
const Zi = /* @__PURE__ */ c("ZodCustom", (e, t) => {
|
|
2593
|
+
Zo.init(e, t), z.init(e, t);
|
|
2596
2594
|
});
|
|
2597
|
-
function
|
|
2598
|
-
return
|
|
2595
|
+
function $i(e, t = {}) {
|
|
2596
|
+
return fs(Zi, e, t);
|
|
2599
2597
|
}
|
|
2600
|
-
function
|
|
2601
|
-
return
|
|
2598
|
+
function ji(e) {
|
|
2599
|
+
return ps(e);
|
|
2602
2600
|
}
|
|
2603
|
-
const
|
|
2601
|
+
const Pi = ai({
|
|
2604
2602
|
buildId: qe(),
|
|
2605
2603
|
timestamp: qe(),
|
|
2606
|
-
status:
|
|
2607
|
-
}),
|
|
2604
|
+
status: kt(["in-progress", "success", "failed"])
|
|
2605
|
+
}), Oi = ({
|
|
2608
2606
|
buildId: e,
|
|
2609
2607
|
environmentType: t,
|
|
2610
2608
|
endpoint: n = "/__zuplo/docs"
|
|
2611
2609
|
}) => {
|
|
2612
|
-
const r =
|
|
2610
|
+
const r = Ut({
|
|
2613
2611
|
queryKey: ["zuplo-build-check", e, n],
|
|
2614
2612
|
refetchInterval: 3e3,
|
|
2615
2613
|
enabled: e !== void 0 && t === "WORKING_COPY",
|
|
@@ -2617,7 +2615,7 @@ const ki = ni({
|
|
|
2617
2615
|
queryFn: () => fetch(n, { signal: AbortSignal.timeout(2e3) }).then((s) => {
|
|
2618
2616
|
if (!s.ok) throw new Error("Failed to fetch build status");
|
|
2619
2617
|
return s.json();
|
|
2620
|
-
}).then((s) =>
|
|
2618
|
+
}).then((s) => Pi.parse(s))
|
|
2621
2619
|
});
|
|
2622
2620
|
if (oe(() => {
|
|
2623
2621
|
r.data?.status === "success" && r.data.buildId && (document.cookie = `zuplo-build=${r.data.buildId}; path=/; max-age=300; secure; SameSite=None`);
|
|
@@ -2626,15 +2624,15 @@ const ki = ni({
|
|
|
2626
2624
|
const o = r.data.status === "success";
|
|
2627
2625
|
return /* @__PURE__ */ a.jsxs("div", { className: "fixed flex flex-col gap-3 p-4 rounded-xl w-96 border z-20 bg-background left-0 right-0 top-4 mx-auto shadow-lg", children: [
|
|
2628
2626
|
o ? /* @__PURE__ */ a.jsxs("div", { className: "flex flex-row items-center gap-2", children: [
|
|
2629
|
-
/* @__PURE__ */ a.jsx(
|
|
2627
|
+
/* @__PURE__ */ a.jsx(dn, { size: 16 }),
|
|
2630
2628
|
/* @__PURE__ */ a.jsx("span", { className: "text-sm", children: "New version available" })
|
|
2631
2629
|
] }) : /* @__PURE__ */ a.jsxs("div", { className: "flex flex-row items-center gap-2", children: [
|
|
2632
|
-
/* @__PURE__ */ a.jsx(
|
|
2630
|
+
/* @__PURE__ */ a.jsx(hn, { size: 16, className: "animate-spin" }),
|
|
2633
2631
|
/* @__PURE__ */ a.jsx("span", { className: "text-sm", children: "Building new version..." })
|
|
2634
2632
|
] }),
|
|
2635
2633
|
/* @__PURE__ */ a.jsx("span", { className: "text-xs", children: o ? "To see the new version, reload the page now." : "A new version of the developer portal will be available soon." }),
|
|
2636
2634
|
o && /* @__PURE__ */ a.jsx(
|
|
2637
|
-
|
|
2635
|
+
gn,
|
|
2638
2636
|
{
|
|
2639
2637
|
variant: "outline",
|
|
2640
2638
|
size: "sm",
|
|
@@ -2646,13 +2644,13 @@ const ki = ni({
|
|
|
2646
2644
|
}
|
|
2647
2645
|
)
|
|
2648
2646
|
] });
|
|
2649
|
-
},
|
|
2647
|
+
}, Ei = () => {
|
|
2650
2648
|
const e = et(), t = Xe(e.pathname);
|
|
2651
2649
|
oe(() => {
|
|
2652
2650
|
const n = t.current !== e.pathname, r = e.hash !== "";
|
|
2653
2651
|
n && !r && window.scrollTo(0, 0), t.current = e.pathname;
|
|
2654
2652
|
}, [e.pathname, e.hash]);
|
|
2655
|
-
},
|
|
2653
|
+
}, Ai = ({
|
|
2656
2654
|
icon: e
|
|
2657
2655
|
}) => typeof e == "string" ? /* @__PURE__ */ a.jsx(
|
|
2658
2656
|
"img",
|
|
@@ -2661,8 +2659,8 @@ const ki = ni({
|
|
|
2661
2659
|
className: "size-5",
|
|
2662
2660
|
alt: e
|
|
2663
2661
|
}
|
|
2664
|
-
) : e,
|
|
2665
|
-
const { site: e } =
|
|
2662
|
+
) : e, Ti = (e) => /^https?:/.test(e), Di = () => {
|
|
2663
|
+
const { site: e } = tn(), t = e?.footer;
|
|
2666
2664
|
return t ? /* @__PURE__ */ a.jsx("footer", { className: "border-t bg-background", children: /* @__PURE__ */ a.jsxs("div", { className: "mx-auto max-w-screen-2xl px-4 lg:px-8 py-8 pt-20", children: [
|
|
2667
2665
|
/* @__PURE__ */ a.jsxs(
|
|
2668
2666
|
"div",
|
|
@@ -2691,7 +2689,7 @@ const ki = ni({
|
|
|
2691
2689
|
/* @__PURE__ */ a.jsx("span", { className: "text-sm font-semibold", children: n.title }),
|
|
2692
2690
|
/* @__PURE__ */ a.jsx("ul", { className: "mt-4 space-y-2", children: n.links.map((r) => {
|
|
2693
2691
|
const o = "flex flex-row gap-1 items-center text-sm text-muted-foreground hover:text-accent-foreground";
|
|
2694
|
-
return /* @__PURE__ */ a.jsx("li", { children:
|
|
2692
|
+
return /* @__PURE__ */ a.jsx("li", { children: Ti(r.href) ? /* @__PURE__ */ a.jsxs(
|
|
2695
2693
|
"a",
|
|
2696
2694
|
{
|
|
2697
2695
|
href: r.href,
|
|
@@ -2700,10 +2698,10 @@ const ki = ni({
|
|
|
2700
2698
|
className: o,
|
|
2701
2699
|
children: [
|
|
2702
2700
|
/* @__PURE__ */ a.jsx("span", { children: r.label }),
|
|
2703
|
-
/* @__PURE__ */ a.jsx(
|
|
2701
|
+
/* @__PURE__ */ a.jsx(fn, { size: 12 })
|
|
2704
2702
|
]
|
|
2705
2703
|
}
|
|
2706
|
-
) : /* @__PURE__ */ a.jsx(
|
|
2704
|
+
) : /* @__PURE__ */ a.jsx(nn, { to: r.href, className: o, children: /* @__PURE__ */ a.jsx("span", { children: r.label }) }) }, r.href + r.label);
|
|
2707
2705
|
}) })
|
|
2708
2706
|
]
|
|
2709
2707
|
},
|
|
@@ -2752,7 +2750,7 @@ const ki = ni({
|
|
|
2752
2750
|
rel: "noopener noreferrer",
|
|
2753
2751
|
className: "w-auto gap-2 flex text-muted-foreground hover:text-accent-foreground",
|
|
2754
2752
|
children: [
|
|
2755
|
-
/* @__PURE__ */ a.jsx(
|
|
2753
|
+
/* @__PURE__ */ a.jsx(Ai, { icon: n.icon }),
|
|
2756
2754
|
n.label
|
|
2757
2755
|
]
|
|
2758
2756
|
},
|
|
@@ -2762,7 +2760,7 @@ const ki = ni({
|
|
|
2762
2760
|
}
|
|
2763
2761
|
)
|
|
2764
2762
|
] }) }) : null;
|
|
2765
|
-
},
|
|
2763
|
+
}, $t = ({
|
|
2766
2764
|
shouldScaleBackground: e = !0,
|
|
2767
2765
|
...t
|
|
2768
2766
|
}) => /* @__PURE__ */ a.jsx(
|
|
@@ -2772,8 +2770,8 @@ const ki = ni({
|
|
|
2772
2770
|
...t
|
|
2773
2771
|
}
|
|
2774
2772
|
);
|
|
2775
|
-
|
|
2776
|
-
const
|
|
2773
|
+
$t.displayName = "Drawer";
|
|
2774
|
+
const Si = A.Trigger, Ii = A.Portal, jt = I.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ a.jsx(
|
|
2777
2775
|
A.Overlay,
|
|
2778
2776
|
{
|
|
2779
2777
|
ref: n,
|
|
@@ -2781,10 +2779,10 @@ const Oi = A.Trigger, Ei = A.Portal, kt = D.forwardRef(({ className: e, ...t },
|
|
|
2781
2779
|
...t
|
|
2782
2780
|
}
|
|
2783
2781
|
));
|
|
2784
|
-
|
|
2785
|
-
const
|
|
2786
|
-
({ className: e, children: t, hideBar: n = !0, ...r }, o) => /* @__PURE__ */ a.jsxs(
|
|
2787
|
-
/* @__PURE__ */ a.jsx(
|
|
2782
|
+
jt.displayName = A.Overlay.displayName;
|
|
2783
|
+
const Ci = I.forwardRef(
|
|
2784
|
+
({ className: e, children: t, hideBar: n = !0, ...r }, o) => /* @__PURE__ */ a.jsxs(Ii, { children: [
|
|
2785
|
+
/* @__PURE__ */ a.jsx(jt, {}),
|
|
2788
2786
|
/* @__PURE__ */ a.jsxs(
|
|
2789
2787
|
A.Content,
|
|
2790
2788
|
{
|
|
@@ -2802,8 +2800,8 @@ const Ai = D.forwardRef(
|
|
|
2802
2800
|
)
|
|
2803
2801
|
] })
|
|
2804
2802
|
);
|
|
2805
|
-
|
|
2806
|
-
const
|
|
2803
|
+
Ci.displayName = "DrawerContent";
|
|
2804
|
+
const Ni = I.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ a.jsx(
|
|
2807
2805
|
A.Title,
|
|
2808
2806
|
{
|
|
2809
2807
|
ref: n,
|
|
@@ -2814,8 +2812,8 @@ const Ti = D.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ a.jsx(
|
|
|
2814
2812
|
...t
|
|
2815
2813
|
}
|
|
2816
2814
|
));
|
|
2817
|
-
|
|
2818
|
-
const
|
|
2815
|
+
Ni.displayName = A.Title.displayName;
|
|
2816
|
+
const Ri = I.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ a.jsx(
|
|
2819
2817
|
A.Description,
|
|
2820
2818
|
{
|
|
2821
2819
|
ref: n,
|
|
@@ -2823,15 +2821,15 @@ const Si = D.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ a.jsx(
|
|
|
2823
2821
|
...t
|
|
2824
2822
|
}
|
|
2825
2823
|
));
|
|
2826
|
-
|
|
2827
|
-
const
|
|
2824
|
+
Ri.displayName = A.Description.displayName;
|
|
2825
|
+
const Pt = ({
|
|
2828
2826
|
children: e,
|
|
2829
2827
|
className: t
|
|
2830
2828
|
}) => {
|
|
2831
2829
|
const { options: n } = re(), r = Xe(null);
|
|
2832
2830
|
return oe(() => {
|
|
2833
2831
|
const o = r.current?.querySelector('[aria-current="page"]');
|
|
2834
|
-
|
|
2832
|
+
rn(o ?? null);
|
|
2835
2833
|
}, []), /* @__PURE__ */ a.jsxs(
|
|
2836
2834
|
"div",
|
|
2837
2835
|
{
|
|
@@ -2855,17 +2853,17 @@ const xt = ({
|
|
|
2855
2853
|
children: e
|
|
2856
2854
|
}
|
|
2857
2855
|
),
|
|
2858
|
-
/* @__PURE__ */ a.jsx("div", { className: "bg-background border-t p-2 mx-5 gap-2 items-center mt-2 drop-shadow-[0_-3px_1px_rgba(0,0,0,0.015)] hidden lg:[&:has(>_:nth-child(1):last-child)]:flex", children: n.site?.showPoweredBy !== !1 && /* @__PURE__ */ a.jsx(
|
|
2856
|
+
/* @__PURE__ */ a.jsx("div", { className: "bg-background border-t p-2 mx-5 gap-2 items-center mt-2 drop-shadow-[0_-3px_1px_rgba(0,0,0,0.015)] hidden lg:[&:has(>_:nth-child(1):last-child)]:flex", children: n.site?.showPoweredBy !== !1 && /* @__PURE__ */ a.jsx(on, {}) })
|
|
2859
2857
|
]
|
|
2860
2858
|
}
|
|
2861
2859
|
);
|
|
2862
2860
|
};
|
|
2863
|
-
|
|
2864
|
-
const
|
|
2861
|
+
Pt.displayName = "NavigationWrapper";
|
|
2862
|
+
const Ui = ({
|
|
2865
2863
|
onRequestClose: e,
|
|
2866
2864
|
navigation: t
|
|
2867
2865
|
}) => /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
2868
|
-
/* @__PURE__ */ a.jsxs(
|
|
2866
|
+
/* @__PURE__ */ a.jsxs(Pt, { children: [
|
|
2869
2867
|
/* @__PURE__ */ a.jsx(C.Target, { name: "navigation-before" }),
|
|
2870
2868
|
t.map((n) => /* @__PURE__ */ a.jsx(
|
|
2871
2869
|
Ze,
|
|
@@ -2877,12 +2875,12 @@ const Ii = ({
|
|
|
2877
2875
|
/* @__PURE__ */ a.jsx(C.Target, { name: "navigation-after" })
|
|
2878
2876
|
] }),
|
|
2879
2877
|
/* @__PURE__ */ a.jsx(
|
|
2880
|
-
|
|
2878
|
+
vn,
|
|
2881
2879
|
{
|
|
2882
2880
|
className: "lg:hidden h-[100dvh] start-0 w-[320px] rounded-none",
|
|
2883
2881
|
"aria-describedby": void 0,
|
|
2884
2882
|
children: /* @__PURE__ */ a.jsxs("div", { className: "p-4 overflow-y-auto overscroll-none", children: [
|
|
2885
|
-
/* @__PURE__ */ a.jsx(
|
|
2883
|
+
/* @__PURE__ */ a.jsx(yn, { children: /* @__PURE__ */ a.jsx(_n, { children: "Navigation" }) }),
|
|
2886
2884
|
t.map((n) => /* @__PURE__ */ a.jsx(
|
|
2887
2885
|
Ze,
|
|
2888
2886
|
{
|
|
@@ -2894,24 +2892,24 @@ const Ii = ({
|
|
|
2894
2892
|
] })
|
|
2895
2893
|
}
|
|
2896
2894
|
)
|
|
2897
|
-
] }),
|
|
2898
|
-
const [t, n] =
|
|
2895
|
+
] }), Fi = ({ children: e }) => {
|
|
2896
|
+
const [t, n] = Qt(!1), { navigation: r } = Ft(), o = r.length > 0, s = Kt().state === "loading", { options: i } = re();
|
|
2899
2897
|
return /* @__PURE__ */ a.jsxs(
|
|
2900
|
-
|
|
2898
|
+
$t,
|
|
2901
2899
|
{
|
|
2902
2900
|
direction: i.site?.dir === "rtl" ? "right" : "left",
|
|
2903
2901
|
open: t,
|
|
2904
2902
|
onOpenChange: (u) => n(u),
|
|
2905
2903
|
children: [
|
|
2906
2904
|
o && /* @__PURE__ */ a.jsx(
|
|
2907
|
-
|
|
2905
|
+
Ui,
|
|
2908
2906
|
{
|
|
2909
2907
|
onRequestClose: () => n(!1),
|
|
2910
2908
|
navigation: r
|
|
2911
2909
|
}
|
|
2912
2910
|
),
|
|
2913
|
-
o && /* @__PURE__ */ a.jsx("div", { className: "lg:hidden m-0 p-0 md:-mx-4 md:px-4 py-2 sticky bg-background/80 backdrop-blur-xs z-10 top-0 start-0 end-0 border-b", children: /* @__PURE__ */ a.jsxs(
|
|
2914
|
-
/* @__PURE__ */ a.jsx(
|
|
2911
|
+
o && /* @__PURE__ */ a.jsx("div", { className: "lg:hidden m-0 p-0 md:-mx-4 md:px-4 py-2 sticky bg-background/80 backdrop-blur-xs z-10 top-0 start-0 end-0 border-b", children: /* @__PURE__ */ a.jsxs(Si, { className: "flex items-center gap-2 px-4", children: [
|
|
2912
|
+
/* @__PURE__ */ a.jsx(pn, { size: 16, strokeWidth: 1.5 }),
|
|
2915
2913
|
/* @__PURE__ */ a.jsx("span", { className: "text-sm", children: "Menu" })
|
|
2916
2914
|
] }) }),
|
|
2917
2915
|
/* @__PURE__ */ a.jsxs(
|
|
@@ -2933,13 +2931,13 @@ const Ii = ({
|
|
|
2933
2931
|
]
|
|
2934
2932
|
}
|
|
2935
2933
|
);
|
|
2936
|
-
},
|
|
2934
|
+
}, qi = () => /* @__PURE__ */ a.jsx("main", { className: "col-span-full row-span-full grid place-items-center", children: /* @__PURE__ */ a.jsx(wn, {}) }), Mi = ({ children: e }) => {
|
|
2937
2935
|
const { authentication: t } = re();
|
|
2938
|
-
return
|
|
2936
|
+
return sn(), Ei(), oe(() => {
|
|
2939
2937
|
t?.onPageLoad?.();
|
|
2940
|
-
}, [t]), /* @__PURE__ */ a.jsxs(
|
|
2938
|
+
}, [t]), /* @__PURE__ */ a.jsxs(an, { children: [
|
|
2941
2939
|
/* @__PURE__ */ a.jsx(C.Target, { name: "layout-before-head" }),
|
|
2942
|
-
/* @__PURE__ */ a.jsx(
|
|
2940
|
+
/* @__PURE__ */ a.jsx(cn, {}),
|
|
2943
2941
|
/* @__PURE__ */ a.jsx(C.Target, { name: "layout-after-head" }),
|
|
2944
2942
|
/* @__PURE__ */ a.jsx(
|
|
2945
2943
|
"div",
|
|
@@ -2949,12 +2947,12 @@ const Ii = ({
|
|
|
2949
2947
|
"[&:has(>:only-child)]:grid-rows-1 grid-rows-[0_min-content_1fr] lg:grid-rows-[min-content_1fr]",
|
|
2950
2948
|
"grid-cols-1 lg:grid-cols-[var(--side-nav-width)_1fr]"
|
|
2951
2949
|
),
|
|
2952
|
-
children: /* @__PURE__ */ a.jsx(
|
|
2950
|
+
children: /* @__PURE__ */ a.jsx(Lt, { fallback: /* @__PURE__ */ a.jsx(qi, {}), children: /* @__PURE__ */ a.jsx(Fi, { children: e ?? /* @__PURE__ */ a.jsx(Ht, {}) }) })
|
|
2953
2951
|
}
|
|
2954
2952
|
),
|
|
2955
|
-
/* @__PURE__ */ a.jsx(
|
|
2953
|
+
/* @__PURE__ */ a.jsx(Di, {})
|
|
2956
2954
|
] });
|
|
2957
|
-
},
|
|
2955
|
+
}, Qi = ({ children: e }) => {
|
|
2958
2956
|
const { meta: t, options: n } = re(), r = et();
|
|
2959
2957
|
return /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
2960
2958
|
/* @__PURE__ */ a.jsxs(He, { titleTemplate: t?.title, defaultTitle: t?.defaultTitle, children: [
|
|
@@ -2962,7 +2960,7 @@ const Ii = ({
|
|
|
2962
2960
|
"link",
|
|
2963
2961
|
{
|
|
2964
2962
|
rel: "canonical",
|
|
2965
|
-
href:
|
|
2963
|
+
href: qt(
|
|
2966
2964
|
n.canonicalUrlOrigin,
|
|
2967
2965
|
n.basePath,
|
|
2968
2966
|
r.pathname
|
|
@@ -2981,15 +2979,41 @@ const Ii = ({
|
|
|
2981
2979
|
] }),
|
|
2982
2980
|
e
|
|
2983
2981
|
] });
|
|
2984
|
-
},
|
|
2982
|
+
}, Li = ({
|
|
2985
2983
|
title: e = "An error occurred",
|
|
2986
2984
|
message: t,
|
|
2987
2985
|
category: n
|
|
2988
|
-
}) => /* @__PURE__ */ a.jsxs(
|
|
2989
|
-
n && /* @__PURE__ */ a.jsx(
|
|
2990
|
-
e && /* @__PURE__ */ a.jsx(
|
|
2986
|
+
}) => /* @__PURE__ */ a.jsxs(tt, { className: "h-full pt-(--padding-content-top)", children: [
|
|
2987
|
+
n && /* @__PURE__ */ a.jsx(st, { children: n }),
|
|
2988
|
+
e && /* @__PURE__ */ a.jsx(nt, { level: 1, className: "flex gap-3.5 items-center", children: e }),
|
|
2991
2989
|
/* @__PURE__ */ a.jsx("p", { children: t })
|
|
2992
|
-
] }),
|
|
2990
|
+
] }), Ot = () => {
|
|
2991
|
+
const e = Vt();
|
|
2992
|
+
return /* @__PURE__ */ a.jsxs(tt, { className: "h-full pt-(--padding-content-top)", children: [
|
|
2993
|
+
/* @__PURE__ */ a.jsx(st, { children: "404" }),
|
|
2994
|
+
/* @__PURE__ */ a.jsxs(nt, { level: 1, className: "flex gap-3.5 items-center", children: [
|
|
2995
|
+
"Page not found",
|
|
2996
|
+
/* @__PURE__ */ a.jsx(mn, { size: 24 })
|
|
2997
|
+
] }),
|
|
2998
|
+
/* @__PURE__ */ a.jsxs(un, { children: [
|
|
2999
|
+
"Start by adding a file at",
|
|
3000
|
+
" ",
|
|
3001
|
+
/* @__PURE__ */ a.jsxs("code", { children: [
|
|
3002
|
+
"{DOCUMENT_ROOT}",
|
|
3003
|
+
"/",
|
|
3004
|
+
e["*"],
|
|
3005
|
+
".mdx"
|
|
3006
|
+
] }),
|
|
3007
|
+
" ",
|
|
3008
|
+
"and add some content to make this error go away. By default",
|
|
3009
|
+
" ",
|
|
3010
|
+
/* @__PURE__ */ a.jsx("code", { children: "DOCUMENT_ROOT" }),
|
|
3011
|
+
" is the `pages` directory."
|
|
3012
|
+
] }),
|
|
3013
|
+
/* @__PURE__ */ a.jsx("p", { children: "It seems that the page you are looking for does not exist or may have been moved. Please check the URL for any typos or use the navigation menu to find the correct page." }),
|
|
3014
|
+
/* @__PURE__ */ a.jsx(Jt, { to: "/", children: "Go back home" })
|
|
3015
|
+
] });
|
|
3016
|
+
}, Bi = (e) => {
|
|
2993
3017
|
switch (e) {
|
|
2994
3018
|
case 400:
|
|
2995
3019
|
return {
|
|
@@ -3052,12 +3076,12 @@ const Ii = ({
|
|
|
3052
3076
|
message: "Something went wrong while processing your request."
|
|
3053
3077
|
};
|
|
3054
3078
|
}
|
|
3055
|
-
},
|
|
3079
|
+
}, Wi = ({ statusCode: e, message: t }) => {
|
|
3056
3080
|
if (e === 404)
|
|
3057
|
-
return /* @__PURE__ */ a.jsx(
|
|
3058
|
-
const n =
|
|
3081
|
+
return /* @__PURE__ */ a.jsx(Ot, {});
|
|
3082
|
+
const n = Bi(e);
|
|
3059
3083
|
return /* @__PURE__ */ a.jsx(
|
|
3060
|
-
|
|
3084
|
+
Li,
|
|
3061
3085
|
{
|
|
3062
3086
|
title: n.title,
|
|
3063
3087
|
message: t ?? n.message,
|
|
@@ -3065,20 +3089,24 @@ const Ii = ({
|
|
|
3065
3089
|
}
|
|
3066
3090
|
);
|
|
3067
3091
|
};
|
|
3068
|
-
function
|
|
3069
|
-
|
|
3092
|
+
function Ki({ className: e }) {
|
|
3093
|
+
const t = Gt();
|
|
3094
|
+
return Yt(t) && t.status === 404 ? /* @__PURE__ */ a.jsx(Ot, {}) : /* @__PURE__ */ a.jsx("div", { className: E("mx-4 max-w-2xl", e), children: /* @__PURE__ */ a.jsx(rt, { error: t }) });
|
|
3095
|
+
}
|
|
3096
|
+
function Hi({ error: e }) {
|
|
3097
|
+
return /* @__PURE__ */ a.jsx(rt, { error: e });
|
|
3070
3098
|
}
|
|
3071
|
-
const
|
|
3099
|
+
const la = Mi, da = Ki, ha = Hi, fa = On, pa = En, ma = ln, ga = He, va = Wi, _a = Oi, ya = Qi;
|
|
3072
3100
|
export {
|
|
3073
|
-
|
|
3074
|
-
|
|
3075
|
-
|
|
3076
|
-
|
|
3077
|
-
|
|
3078
|
-
|
|
3079
|
-
|
|
3080
|
-
|
|
3081
|
-
|
|
3082
|
-
|
|
3101
|
+
fa as Bootstrap,
|
|
3102
|
+
pa as BootstrapStatic,
|
|
3103
|
+
_a as BuildCheck,
|
|
3104
|
+
ga as Head,
|
|
3105
|
+
la as Layout,
|
|
3106
|
+
ya as Meta,
|
|
3107
|
+
ma as RouteGuard,
|
|
3108
|
+
da as RouterError,
|
|
3109
|
+
ha as ServerError,
|
|
3110
|
+
va as StatusPage
|
|
3083
3111
|
};
|
|
3084
3112
|
//# sourceMappingURL=zudoku.__internal.js.map
|