zudoku 0.53.1 → 0.53.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/README.md +2 -2
- package/dist/app/demo.js +2 -1
- package/dist/app/demo.js.map +1 -1
- package/dist/app/main.js +3 -9
- package/dist/app/main.js.map +1 -1
- package/dist/cli/build/handler.js +9 -1
- package/dist/cli/build/handler.js.map +1 -1
- package/dist/config/loader.js +2 -5
- package/dist/config/loader.js.map +1 -1
- package/dist/config/validators/BuildSchema.js +5 -0
- package/dist/config/validators/BuildSchema.js.map +1 -1
- package/dist/config/validators/validate.d.ts +1 -1
- package/dist/config/validators/validate.js +11 -2
- package/dist/config/validators/validate.js.map +1 -1
- package/dist/config/validators/validate.test.js +65 -2
- package/dist/config/validators/validate.test.js.map +1 -1
- package/dist/flat-config.d.ts +325 -0
- package/dist/lib/components/Banner.js +1 -1
- package/dist/lib/components/Banner.js.map +1 -1
- package/dist/lib/components/CategoryHeading.js +1 -1
- package/dist/lib/components/CategoryHeading.js.map +1 -1
- package/dist/lib/components/Header.js +1 -1
- package/dist/lib/components/Header.js.map +1 -1
- package/dist/lib/components/Pagination.js +1 -1
- package/dist/lib/components/Pagination.js.map +1 -1
- package/dist/lib/components/StatusPage.js +4 -0
- package/dist/lib/components/StatusPage.js.map +1 -1
- package/dist/lib/components/TopNavigation.d.ts +1 -1
- package/dist/lib/components/TopNavigation.js.map +1 -1
- package/dist/lib/components/navigation/NavigationWrapper.js +1 -1
- package/dist/lib/components/navigation/NavigationWrapper.js.map +1 -1
- package/dist/lib/core/ZudokuContext.d.ts +1 -1
- package/dist/lib/plugins/api-keys/SettingsApiKeys.js +4 -4
- package/dist/lib/plugins/api-keys/SettingsApiKeys.js.map +1 -1
- package/dist/lib/plugins/markdown/MdxPage.js +1 -1
- package/dist/lib/plugins/markdown/MdxPage.js.map +1 -1
- package/dist/lib/plugins/search-inkeep/index.d.ts +5 -22
- package/dist/lib/plugins/search-inkeep/index.js +35 -29
- package/dist/lib/plugins/search-inkeep/index.js.map +1 -1
- package/dist/lib/plugins/search-inkeep/inkeep.d.ts +5 -21
- package/dist/lib/plugins/search-inkeep/inkeep.js +10 -19
- package/dist/lib/plugins/search-inkeep/inkeep.js.map +1 -1
- package/dist/lib/plugins/search-pagefind/PagefindSearch.js +1 -1
- package/dist/lib/plugins/search-pagefind/PagefindSearch.js.map +1 -1
- package/dist/lib/plugins/search-pagefind/ResultList.d.ts +1 -1
- package/dist/lib/plugins/search-pagefind/ResultList.js +12 -5
- package/dist/lib/plugins/search-pagefind/ResultList.js.map +1 -1
- package/dist/lib/ui/Alert.d.ts +1 -1
- package/dist/vite/build.js +7 -1
- package/dist/vite/build.js.map +1 -1
- package/dist/vite/mdx/remark-last-modified.js +1 -28
- package/dist/vite/mdx/remark-last-modified.js.map +1 -1
- package/dist/vite/plugin-mdx.js +2 -3
- package/dist/vite/plugin-mdx.js.map +1 -1
- package/lib/{Alert-CT_ViLrJ.js → Alert-FYKbqjIt.js} +2 -2
- package/lib/Alert-FYKbqjIt.js.map +1 -0
- package/lib/{MdxPage-8UuEK446.js → MdxPage-DyRuoE_F.js} +16 -16
- package/lib/{MdxPage-8UuEK446.js.map → MdxPage-DyRuoE_F.js.map} +1 -1
- package/lib/{OasProvider-BsWpguVO.js → OasProvider-CUA-DFGE.js} +2 -2
- package/lib/{OasProvider-BsWpguVO.js.map → OasProvider-CUA-DFGE.js.map} +1 -1
- package/lib/{OperationList-PnZbf3b2.js → OperationList-CRMvWoTv.js} +7 -7
- package/lib/{OperationList-PnZbf3b2.js.map → OperationList-CRMvWoTv.js.map} +1 -1
- package/lib/{Pagination-DY7gCrm4.js → Pagination-HZKe5ncg.js} +9 -8
- package/lib/Pagination-HZKe5ncg.js.map +1 -0
- package/lib/{SchemaList-D6k4DKWH.js → SchemaList-B792ORza.js} +6 -6
- package/lib/{SchemaList-D6k4DKWH.js.map → SchemaList-B792ORza.js.map} +1 -1
- package/lib/{SchemaView-BhgJ9WB8.js → SchemaView-Bo53TeMb.js} +4 -4
- package/lib/{SchemaView-BhgJ9WB8.js.map → SchemaView-Bo53TeMb.js.map} +1 -1
- package/lib/{SignUp-CpUD6DUM.js → SignUp-DfVvOCYB.js} +2 -2
- package/lib/{SignUp-CpUD6DUM.js.map → SignUp-DfVvOCYB.js.map} +1 -1
- package/lib/{Slot-DwZlQ-vX.js → Slot-BpO_AGKJ.js} +13 -5
- package/lib/Slot-BpO_AGKJ.js.map +1 -0
- package/lib/{SyntaxHighlight-CrjhGEwT.js → SyntaxHighlight-CZgjJ7-f.js} +753 -753
- package/lib/SyntaxHighlight-CZgjJ7-f.js.map +1 -0
- package/lib/{Toc-WCmwFkX-.js → Toc-DYMzDvOa.js} +2 -2
- package/lib/{Toc-WCmwFkX-.js.map → Toc-DYMzDvOa.js.map} +1 -1
- package/lib/{circular-BUMjK3JF.js → circular-CLdQ0oUd.js} +2 -2
- package/lib/{circular-BUMjK3JF.js.map → circular-CLdQ0oUd.js.map} +1 -1
- package/lib/{createServer-BPz8ZCrd.js → createServer-Co4BBP-i.js} +4 -4
- package/lib/{createServer-BPz8ZCrd.js.map → createServer-Co4BBP-i.js.map} +1 -1
- package/lib/{errors-DY-qOx9n.js → errors-DE1gK7ms.js} +3 -3
- package/lib/{errors-DY-qOx9n.js.map → errors-DE1gK7ms.js.map} +1 -1
- package/lib/{index-C_xVKbf9.js → index-DLshv89l.js} +581 -566
- package/lib/index-DLshv89l.js.map +1 -0
- package/lib/{index-CcV90rin.js → index-DLzZDv8_.js} +2 -2
- package/lib/{index-CcV90rin.js.map → index-DLzZDv8_.js.map} +1 -1
- package/lib/{index-dVBKCNMa.js → index-DYP-V0jG.js} +10 -10
- package/lib/{index-dVBKCNMa.js.map → index-DYP-V0jG.js.map} +1 -1
- package/lib/ui/Alert.js.map +1 -1
- package/lib/ui/SyntaxHighlight.js +1 -1
- package/lib/zudoku.auth-azureb2c.js +1553 -1556
- package/lib/zudoku.auth-azureb2c.js.map +1 -1
- package/lib/zudoku.auth-clerk.js +1 -1
- package/lib/zudoku.auth-openid.js +1 -1
- package/lib/zudoku.components.js +2 -2
- package/lib/zudoku.plugin-api-catalog.js +3 -3
- package/lib/zudoku.plugin-api-keys.js +61 -53
- package/lib/zudoku.plugin-api-keys.js.map +1 -1
- package/lib/zudoku.plugin-markdown.js +1 -1
- package/lib/zudoku.plugin-openapi.js +1 -1
- package/lib/zudoku.plugin-search-inkeep.js +54 -57
- package/lib/zudoku.plugin-search-inkeep.js.map +1 -1
- package/lib/zudoku.plugin-search-pagefind.js +106 -102
- package/lib/zudoku.plugin-search-pagefind.js.map +1 -1
- package/package.json +11 -10
- package/src/app/demo.tsx +3 -1
- package/src/app/main.tsx +6 -14
- package/src/lib/components/Banner.tsx +0 -1
- package/src/lib/components/CategoryHeading.tsx +4 -1
- package/src/lib/components/Header.tsx +4 -1
- package/src/lib/components/Pagination.tsx +1 -0
- package/src/lib/components/StatusPage.tsx +5 -0
- package/src/lib/components/TopNavigation.tsx +1 -1
- package/src/lib/components/navigation/NavigationWrapper.tsx +4 -1
- package/src/lib/core/ZudokuContext.ts +1 -1
- package/src/lib/plugins/api-keys/SettingsApiKeys.tsx +13 -9
- package/src/lib/plugins/markdown/MdxPage.tsx +1 -1
- package/src/lib/plugins/search-inkeep/index.tsx +54 -58
- package/src/lib/plugins/search-inkeep/inkeep.ts +19 -21
- package/src/lib/plugins/search-pagefind/PagefindSearch.tsx +1 -0
- package/src/lib/plugins/search-pagefind/ResultList.tsx +13 -4
- package/src/lib/ui/Alert.tsx +1 -1
- package/lib/Alert-CT_ViLrJ.js.map +0 -1
- package/lib/Pagination-DY7gCrm4.js.map +0 -1
- package/lib/Slot-DwZlQ-vX.js.map +0 -1
- package/lib/SyntaxHighlight-CrjhGEwT.js.map +0 -1
- package/lib/index-C_xVKbf9.js.map +0 -1
|
@@ -2,24 +2,24 @@ import { B as It, a as Rt, H as Ie, R as en } from "./RouteGuard-CbKd7_9h.js";
|
|
|
2
2
|
import { z as Dt, M as tn, J as rn, u as nn } from "./index-ClhS5TxS.js";
|
|
3
3
|
import { R as on, S as sn, u as xe, e as Re, f as an, L as De, O as Mt } from "./chunk-DQRVZFIR-DHK7_Ilc.js";
|
|
4
4
|
import { S as Ft, v as qt, Q as cn, n as R, w as Ye, x as Ge, y as L, z as un, A as ln, B as dn, D as fn, E as Je, F as Xe, G as hn, h as et, H as tt, I as pn, g as Ut, J as Lt, l as mn, d as M, e as oe, K as Qt, L as Bt, j as ee, M as gn, u as vn, c as yn, N as xn, Z as _n, f as bn, C as wn } from "./hook-Bd0yS8M0.js";
|
|
5
|
-
import { h as jn, E as Ht, a as A, A as kn, i as $n, s as zn, N as rt, j as Pn, T as Kt, C as En, H as Sn, k as Zn, l as Cn, V as
|
|
5
|
+
import { h as jn, E as Ht, a as A, A as kn, i as $n, s as zn, N as rt, j as Pn, T as Kt, C as En, H as Sn, k as Zn, l as Tn, m as Cn, V as On, R as Nn, M as An } from "./Slot-BpO_AGKJ.js";
|
|
6
6
|
import { j as s } from "./jsx-runtime-C5mzlN2N.js";
|
|
7
7
|
import { Button as Wt } from "./ui/Button.js";
|
|
8
|
-
import { Callout as
|
|
8
|
+
import { Callout as In } from "./ui/Callout.js";
|
|
9
9
|
import * as Q from "react";
|
|
10
|
-
import { createContext as Me, StrictMode as Vt, useRef as K, useEffect as F, useState as G, useCallback as H, Suspense as Fe, Fragment as
|
|
11
|
-
import * as
|
|
12
|
-
import { CircleFadingArrowUpIcon as
|
|
10
|
+
import { createContext as Me, StrictMode as Vt, useRef as K, useEffect as F, useState as G, useCallback as H, Suspense as Fe, Fragment as Rn, memo as Yt, Component as Dn, createElement as nt, useMemo as $e, useContext as Mn } from "react";
|
|
11
|
+
import * as Fn from "react-dom";
|
|
12
|
+
import { CircleFadingArrowUpIcon as qn, LoaderCircleIcon as Un, ExternalLink as Ln, CircleXIcon as Qn, ChevronRightIcon as Bn, SearchIcon as Hn, SunIcon as Kn, MoonIcon as Wn, MenuIcon as Vn, PanelLeftIcon as Yn } from "lucide-react";
|
|
13
13
|
import { C as te } from "./ClientOnly-E7hGysn1.js";
|
|
14
14
|
import { c as N } from "./cn-wvCW-ho6.js";
|
|
15
15
|
import { S as Gt } from "./Spinner-mNLZ6awP.js";
|
|
16
|
-
import { isSearchPlugin as
|
|
16
|
+
import { isSearchPlugin as Gn, isProfileMenuPlugin as Jt, isNavigationPlugin as ot, isAuthenticationPlugin as Jn, isEventConsumerPlugin as Xn, needsInitialization as eo, isApiIdentityPlugin as to, isMdxProviderPlugin as ro, hasHead as no } from "./zudoku.plugins.js";
|
|
17
17
|
import { B as Se } from "./Button-BE9IVkWV.js";
|
|
18
|
-
import { DropdownMenu as
|
|
18
|
+
import { DropdownMenu as oo, DropdownMenuTrigger as so, DropdownMenuContent as ao, DropdownMenuLabel as io, DropdownMenuSeparator as ze, DropdownMenuSub as co, DropdownMenuSubTrigger as uo, DropdownMenuPortal as lo, DropdownMenuSubContent as fo, DropdownMenuItem as ho } from "./ui/DropdownMenu.js";
|
|
19
19
|
import { VisuallyHidden as Xt } from "@radix-ui/react-visually-hidden";
|
|
20
|
-
import { D as
|
|
21
|
-
import { a as
|
|
22
|
-
var
|
|
20
|
+
import { D as po, a as mo, b as er, c as tr, d as q } from "./Drawer-BzkOKwgC.js";
|
|
21
|
+
import { a as go } from "./index-DI5SPFK9.js";
|
|
22
|
+
var vo = class extends Ft {
|
|
23
23
|
constructor(e = {}) {
|
|
24
24
|
super(), this.config = e, this.#e = /* @__PURE__ */ new Map();
|
|
25
25
|
}
|
|
@@ -90,7 +90,7 @@ var go = class extends Ft {
|
|
|
90
90
|
});
|
|
91
91
|
});
|
|
92
92
|
}
|
|
93
|
-
},
|
|
93
|
+
}, yo = class extends Ft {
|
|
94
94
|
constructor(e = {}) {
|
|
95
95
|
super(), this.config = e, this.#e = /* @__PURE__ */ new Set(), this.#t = /* @__PURE__ */ new Map(), this.#r = 0;
|
|
96
96
|
}
|
|
@@ -200,16 +200,16 @@ function st(e) {
|
|
|
200
200
|
return Promise.reject();
|
|
201
201
|
if (w == null && g.pages.length)
|
|
202
202
|
return Promise.resolve(g);
|
|
203
|
-
const
|
|
203
|
+
const T = {
|
|
204
204
|
client: t.client,
|
|
205
205
|
queryKey: t.queryKey,
|
|
206
206
|
pageParam: w,
|
|
207
207
|
direction: P ? "backward" : "forward",
|
|
208
208
|
meta: t.options.meta
|
|
209
209
|
};
|
|
210
|
-
p(
|
|
210
|
+
p(T);
|
|
211
211
|
const j = await m(
|
|
212
|
-
|
|
212
|
+
T
|
|
213
213
|
), { maxPages: x } = t.options, b = P ? ln : dn;
|
|
214
214
|
return {
|
|
215
215
|
pages: b(g.pages, j, x),
|
|
@@ -217,11 +217,11 @@ function st(e) {
|
|
|
217
217
|
};
|
|
218
218
|
};
|
|
219
219
|
if (o && a.length) {
|
|
220
|
-
const g = o === "backward", w = g ?
|
|
220
|
+
const g = o === "backward", w = g ? xo : at, P = {
|
|
221
221
|
pages: a,
|
|
222
222
|
pageParams: i
|
|
223
|
-
},
|
|
224
|
-
u = await l(P,
|
|
223
|
+
}, T = w(n, P);
|
|
224
|
+
u = await l(P, T, g);
|
|
225
225
|
} else {
|
|
226
226
|
const g = e ?? a.length;
|
|
227
227
|
do {
|
|
@@ -255,10 +255,10 @@ function at(e, { pages: t, pageParams: r }) {
|
|
|
255
255
|
r
|
|
256
256
|
) : void 0;
|
|
257
257
|
}
|
|
258
|
-
function
|
|
258
|
+
function xo(e, { pages: t, pageParams: r }) {
|
|
259
259
|
return t.length > 0 ? e.getPreviousPageParam?.(t[0], t, r[0], r) : void 0;
|
|
260
260
|
}
|
|
261
|
-
var
|
|
261
|
+
var _o = class {
|
|
262
262
|
#e;
|
|
263
263
|
#t;
|
|
264
264
|
#r;
|
|
@@ -268,7 +268,7 @@ var xo = class {
|
|
|
268
268
|
#a;
|
|
269
269
|
#i;
|
|
270
270
|
constructor(e = {}) {
|
|
271
|
-
this.#e = e.queryCache || new
|
|
271
|
+
this.#e = e.queryCache || new vo(), this.#t = e.mutationCache || new yo(), this.#r = e.defaultOptions || {}, this.#o = /* @__PURE__ */ new Map(), this.#s = /* @__PURE__ */ new Map(), this.#n = 0;
|
|
272
272
|
}
|
|
273
273
|
mount() {
|
|
274
274
|
this.#n++, this.#n === 1 && (this.#a = fn.subscribe(async (e) => {
|
|
@@ -462,13 +462,13 @@ var xo = class {
|
|
|
462
462
|
this.#e.clear(), this.#t.clear();
|
|
463
463
|
}
|
|
464
464
|
};
|
|
465
|
-
function
|
|
465
|
+
function bo(e) {
|
|
466
466
|
return e;
|
|
467
467
|
}
|
|
468
468
|
function it(e, t, r) {
|
|
469
469
|
if (typeof t != "object" || t === null)
|
|
470
470
|
return;
|
|
471
|
-
const n = e.getMutationCache(), o = e.getQueryCache(), a = r?.defaultOptions?.deserializeData ?? e.getDefaultOptions().hydrate?.deserializeData ??
|
|
471
|
+
const n = e.getMutationCache(), o = e.getQueryCache(), a = r?.defaultOptions?.deserializeData ?? e.getDefaultOptions().hydrate?.deserializeData ?? bo, i = t.mutations || [], u = t.queries || [];
|
|
472
472
|
i.forEach(({ state: h, ...f }) => {
|
|
473
473
|
n.build(
|
|
474
474
|
e,
|
|
@@ -514,7 +514,7 @@ function it(e, t, r) {
|
|
|
514
514
|
}
|
|
515
515
|
});
|
|
516
516
|
}
|
|
517
|
-
var ct = (e, t) => typeof e == "object" && e !== null && t in e,
|
|
517
|
+
var ct = (e, t) => typeof e == "object" && e !== null && t in e, wo = ({
|
|
518
518
|
children: e,
|
|
519
519
|
options: t = {},
|
|
520
520
|
state: r,
|
|
@@ -546,7 +546,7 @@ var ct = (e, t) => typeof e == "object" && e !== null && t in e, bo = ({
|
|
|
546
546
|
a && (it(o, { queries: a }, u.current), i(void 0));
|
|
547
547
|
}, [o, a]), e;
|
|
548
548
|
};
|
|
549
|
-
function
|
|
549
|
+
function jo({ error: e }) {
|
|
550
550
|
return /* @__PURE__ */ s.jsx(Ht, { error: e });
|
|
551
551
|
}
|
|
552
552
|
/**
|
|
@@ -559,19 +559,19 @@ function wo({ error: e }) {
|
|
|
559
559
|
*
|
|
560
560
|
* @license MIT
|
|
561
561
|
*/
|
|
562
|
-
function
|
|
563
|
-
return /* @__PURE__ */ Q.createElement(on, { flushSync:
|
|
562
|
+
function ko(e) {
|
|
563
|
+
return /* @__PURE__ */ Q.createElement(on, { flushSync: Fn.flushSync, ...e });
|
|
564
564
|
}
|
|
565
|
-
const Ze = Me({ stagger: !1 }),
|
|
565
|
+
const Ze = Me({ stagger: !1 }), $o = new _o({
|
|
566
566
|
defaultOptions: {
|
|
567
567
|
queries: {
|
|
568
568
|
staleTime: 1e3 * 60 * 5
|
|
569
569
|
}
|
|
570
570
|
}
|
|
571
|
-
}),
|
|
571
|
+
}), zo = ({
|
|
572
572
|
router: e,
|
|
573
573
|
hydrate: t = !1
|
|
574
|
-
}) => /* @__PURE__ */ s.jsx(Vt, { children: /* @__PURE__ */ s.jsx(Lt, { client:
|
|
574
|
+
}) => /* @__PURE__ */ s.jsx(Vt, { children: /* @__PURE__ */ s.jsx(Lt, { client: $o, children: /* @__PURE__ */ s.jsx(wo, { state: t ? window.DATA : void 0, children: /* @__PURE__ */ s.jsx(It, { value: !1, children: /* @__PURE__ */ s.jsx(Rt, { children: /* @__PURE__ */ s.jsx(Ze.Provider, { value: { stagger: !t }, children: /* @__PURE__ */ s.jsx(ko, { router: e }) }) }) }) }) }) }), Po = ({
|
|
575
575
|
router: e,
|
|
576
576
|
context: t,
|
|
577
577
|
queryClient: r,
|
|
@@ -614,11 +614,11 @@ const rr = {};
|
|
|
614
614
|
function V(e) {
|
|
615
615
|
return rr;
|
|
616
616
|
}
|
|
617
|
-
function
|
|
617
|
+
function Eo(e) {
|
|
618
618
|
const t = Object.values(e).filter((n) => typeof n == "number");
|
|
619
619
|
return Object.entries(e).filter(([n, o]) => t.indexOf(+n) === -1).map(([n, o]) => o);
|
|
620
620
|
}
|
|
621
|
-
function
|
|
621
|
+
function So(e, t) {
|
|
622
622
|
return typeof t == "bigint" ? t.toString() : t;
|
|
623
623
|
}
|
|
624
624
|
function nr(e) {
|
|
@@ -675,10 +675,10 @@ function re(e) {
|
|
|
675
675
|
}
|
|
676
676
|
const sr = Error.captureStackTrace ? Error.captureStackTrace : (...e) => {
|
|
677
677
|
};
|
|
678
|
-
function
|
|
678
|
+
function Te(e) {
|
|
679
679
|
return typeof e == "object" && e !== null && !Array.isArray(e);
|
|
680
680
|
}
|
|
681
|
-
const
|
|
681
|
+
const Zo = nr(() => {
|
|
682
682
|
if (typeof navigator < "u" && navigator?.userAgent?.includes("Cloudflare"))
|
|
683
683
|
return !1;
|
|
684
684
|
try {
|
|
@@ -689,15 +689,15 @@ const So = nr(() => {
|
|
|
689
689
|
}
|
|
690
690
|
});
|
|
691
691
|
function ut(e) {
|
|
692
|
-
if (
|
|
692
|
+
if (Te(e) === !1)
|
|
693
693
|
return !1;
|
|
694
694
|
const t = e.constructor;
|
|
695
695
|
if (t === void 0)
|
|
696
696
|
return !0;
|
|
697
697
|
const r = t.prototype;
|
|
698
|
-
return !(
|
|
698
|
+
return !(Te(r) === !1 || Object.prototype.hasOwnProperty.call(r, "isPrototypeOf") === !1);
|
|
699
699
|
}
|
|
700
|
-
const
|
|
700
|
+
const To = /* @__PURE__ */ new Set(["string", "number", "symbol"]);
|
|
701
701
|
function _e(e) {
|
|
702
702
|
return e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
703
703
|
}
|
|
@@ -721,7 +721,7 @@ function _(e) {
|
|
|
721
721
|
function Co(e) {
|
|
722
722
|
return Object.keys(e).filter((t) => e[t]._zod.optin === "optional" && e[t]._zod.optout === "optional");
|
|
723
723
|
}
|
|
724
|
-
function
|
|
724
|
+
function Oo(e, t) {
|
|
725
725
|
const r = {}, n = e._zod.def;
|
|
726
726
|
for (const o in t) {
|
|
727
727
|
if (!(o in n.shape))
|
|
@@ -734,7 +734,7 @@ function To(e, t) {
|
|
|
734
734
|
checks: []
|
|
735
735
|
});
|
|
736
736
|
}
|
|
737
|
-
function
|
|
737
|
+
function No(e, t) {
|
|
738
738
|
const r = { ...e._zod.def.shape }, n = e._zod.def;
|
|
739
739
|
for (const o in t) {
|
|
740
740
|
if (!(o in n.shape))
|
|
@@ -747,7 +747,7 @@ function Oo(e, t) {
|
|
|
747
747
|
checks: []
|
|
748
748
|
});
|
|
749
749
|
}
|
|
750
|
-
function
|
|
750
|
+
function Ao(e, t) {
|
|
751
751
|
const r = {
|
|
752
752
|
...e._zod.def,
|
|
753
753
|
get shape() {
|
|
@@ -759,7 +759,7 @@ function No(e, t) {
|
|
|
759
759
|
};
|
|
760
760
|
return J(e, r);
|
|
761
761
|
}
|
|
762
|
-
function
|
|
762
|
+
function Io(e, t) {
|
|
763
763
|
return J(e, {
|
|
764
764
|
...e._zod.def,
|
|
765
765
|
get shape() {
|
|
@@ -771,7 +771,7 @@ function Ao(e, t) {
|
|
|
771
771
|
// delete existing checks
|
|
772
772
|
});
|
|
773
773
|
}
|
|
774
|
-
function
|
|
774
|
+
function Ro(e, t, r) {
|
|
775
775
|
const n = t._zod.def.shape, o = { ...n };
|
|
776
776
|
if (r)
|
|
777
777
|
for (const a in r) {
|
|
@@ -794,7 +794,7 @@ function Io(e, t, r) {
|
|
|
794
794
|
checks: []
|
|
795
795
|
});
|
|
796
796
|
}
|
|
797
|
-
function
|
|
797
|
+
function Do(e, t, r) {
|
|
798
798
|
const n = t._zod.def.shape, o = { ...n };
|
|
799
799
|
if (r)
|
|
800
800
|
for (const a in r) {
|
|
@@ -862,19 +862,19 @@ const ar = (e, t) => {
|
|
|
862
862
|
enumerable: !1
|
|
863
863
|
}), Object.defineProperty(e, "message", {
|
|
864
864
|
get() {
|
|
865
|
-
return JSON.stringify(t,
|
|
865
|
+
return JSON.stringify(t, So, 2);
|
|
866
866
|
},
|
|
867
867
|
enumerable: !0
|
|
868
868
|
// configurable: false,
|
|
869
869
|
});
|
|
870
870
|
}, ir = c("$ZodError", ar), cr = c("$ZodError", ar, { Parent: Error });
|
|
871
|
-
function
|
|
871
|
+
function Mo(e, t = (r) => r.message) {
|
|
872
872
|
const r = {}, n = [];
|
|
873
873
|
for (const o of e.issues)
|
|
874
874
|
o.path.length > 0 ? (r[o.path[0]] = r[o.path[0]] || [], r[o.path[0]].push(t(o))) : n.push(t(o));
|
|
875
875
|
return { formErrors: n, fieldErrors: r };
|
|
876
876
|
}
|
|
877
|
-
function
|
|
877
|
+
function Fo(e, t) {
|
|
878
878
|
const r = t || function(a) {
|
|
879
879
|
return a.message;
|
|
880
880
|
}, n = { _errors: [] }, o = (a) => {
|
|
@@ -897,7 +897,7 @@ function Mo(e, t) {
|
|
|
897
897
|
};
|
|
898
898
|
return o(e), n;
|
|
899
899
|
}
|
|
900
|
-
const
|
|
900
|
+
const qo = (e) => (t, r, n, o) => {
|
|
901
901
|
const a = n ? Object.assign(n, { async: !1 }) : { async: !1 }, i = t._zod.run({ value: r, issues: [] }, a);
|
|
902
902
|
if (i instanceof Promise)
|
|
903
903
|
throw new se();
|
|
@@ -906,7 +906,7 @@ const Fo = (e) => (t, r, n, o) => {
|
|
|
906
906
|
throw sr(u, o?.callee), u;
|
|
907
907
|
}
|
|
908
908
|
return i.value;
|
|
909
|
-
},
|
|
909
|
+
}, Uo = (e) => async (t, r, n, o) => {
|
|
910
910
|
const a = n ? Object.assign(n, { async: !0 }) : { async: !0 };
|
|
911
911
|
let i = t._zod.run({ value: r, issues: [] }, a);
|
|
912
912
|
if (i instanceof Promise && (i = await i), i.issues.length) {
|
|
@@ -922,38 +922,38 @@ const Fo = (e) => (t, r, n, o) => {
|
|
|
922
922
|
success: !1,
|
|
923
923
|
error: new (e ?? ir)(a.issues.map((i) => Y(i, o, V())))
|
|
924
924
|
} : { success: !0, data: a.value };
|
|
925
|
-
},
|
|
925
|
+
}, Lo = /* @__PURE__ */ ur(cr), lr = (e) => async (t, r, n) => {
|
|
926
926
|
const o = n ? Object.assign(n, { async: !0 }) : { async: !0 };
|
|
927
927
|
let a = t._zod.run({ value: r, issues: [] }, o);
|
|
928
928
|
return a instanceof Promise && (a = await a), a.issues.length ? {
|
|
929
929
|
success: !1,
|
|
930
930
|
error: new e(a.issues.map((i) => Y(i, o, V())))
|
|
931
931
|
} : { success: !0, data: a.value };
|
|
932
|
-
},
|
|
933
|
-
function
|
|
934
|
-
return new RegExp(
|
|
932
|
+
}, Qo = /* @__PURE__ */ lr(cr), Bo = /^[cC][^\s-]{8,}$/, Ho = /^[0-9a-z]+$/, Ko = /^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/, Wo = /^[0-9a-vA-V]{20}$/, Vo = /^[A-Za-z0-9]{27}$/, Yo = /^[a-zA-Z0-9_-]{21}$/, Go = /^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/, Jo = /^([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})$/, lt = (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)$/, Xo = /^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/, es = "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";
|
|
933
|
+
function ts() {
|
|
934
|
+
return new RegExp(es, "u");
|
|
935
935
|
}
|
|
936
|
-
const
|
|
936
|
+
const rs = /^(?:(?: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])$/, ns = /^(([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})$/, os = /^((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])$/, ss = /^(([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])$/, as = /^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/, dr = /^[A-Za-z0-9_-]*$/, is = /^([a-zA-Z0-9-]+\.)*[a-zA-Z0-9-]+$/, cs = /^\+(?:[0-9]){6,14}[0-9]$/, fr = "(?:(?:\\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])))", us = /* @__PURE__ */ new RegExp(`^${fr}$`);
|
|
937
937
|
function hr(e) {
|
|
938
938
|
const t = "(?:[01]\\d|2[0-3]):[0-5]\\d";
|
|
939
939
|
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+)?)?`;
|
|
940
940
|
}
|
|
941
|
-
function
|
|
941
|
+
function ls(e) {
|
|
942
942
|
return new RegExp(`^${hr(e)}$`);
|
|
943
943
|
}
|
|
944
|
-
function
|
|
944
|
+
function ds(e) {
|
|
945
945
|
const t = hr({ precision: e.precision }), r = ["Z"];
|
|
946
946
|
e.local && r.push(""), e.offset && r.push("([+-]\\d{2}:\\d{2})");
|
|
947
947
|
const n = `${t}(?:${r.join("|")})`;
|
|
948
948
|
return new RegExp(`^${fr}T(?:${n})$`);
|
|
949
949
|
}
|
|
950
|
-
const
|
|
950
|
+
const fs = (e) => {
|
|
951
951
|
const t = e ? `[\\s\\S]{${e?.minimum ?? 0},${e?.maximum ?? ""}}` : "[\\s\\S]*";
|
|
952
952
|
return new RegExp(`^${t}$`);
|
|
953
|
-
},
|
|
953
|
+
}, hs = /^[^A-Z]*$/, ps = /^[^a-z]*$/, U = /* @__PURE__ */ c("$ZodCheck", (e, t) => {
|
|
954
954
|
var r;
|
|
955
955
|
e._zod ?? (e._zod = {}), e._zod.def = t, (r = e._zod).onattach ?? (r.onattach = []);
|
|
956
|
-
}),
|
|
956
|
+
}), ms = /* @__PURE__ */ c("$ZodCheckMaxLength", (e, t) => {
|
|
957
957
|
U.init(e, t), e._zod.when = (r) => {
|
|
958
958
|
const n = r.value;
|
|
959
959
|
return !qe(n) && n.length !== void 0;
|
|
@@ -975,7 +975,7 @@ const ds = (e) => {
|
|
|
975
975
|
continue: !t.abort
|
|
976
976
|
});
|
|
977
977
|
};
|
|
978
|
-
}),
|
|
978
|
+
}), gs = /* @__PURE__ */ c("$ZodCheckMinLength", (e, t) => {
|
|
979
979
|
U.init(e, t), e._zod.when = (r) => {
|
|
980
980
|
const n = r.value;
|
|
981
981
|
return !qe(n) && n.length !== void 0;
|
|
@@ -997,7 +997,7 @@ const ds = (e) => {
|
|
|
997
997
|
continue: !t.abort
|
|
998
998
|
});
|
|
999
999
|
};
|
|
1000
|
-
}),
|
|
1000
|
+
}), vs = /* @__PURE__ */ c("$ZodCheckLengthEquals", (e, t) => {
|
|
1001
1001
|
U.init(e, t), e._zod.when = (r) => {
|
|
1002
1002
|
const n = r.value;
|
|
1003
1003
|
return !qe(n) && n.length !== void 0;
|
|
@@ -1035,7 +1035,7 @@ const ds = (e) => {
|
|
|
1035
1035
|
continue: !t.abort
|
|
1036
1036
|
});
|
|
1037
1037
|
});
|
|
1038
|
-
}),
|
|
1038
|
+
}), ys = /* @__PURE__ */ c("$ZodCheckRegex", (e, t) => {
|
|
1039
1039
|
be.init(e, t), e._zod.check = (r) => {
|
|
1040
1040
|
t.pattern.lastIndex = 0, !t.pattern.test(r.value) && r.issues.push({
|
|
1041
1041
|
origin: "string",
|
|
@@ -1047,11 +1047,11 @@ const ds = (e) => {
|
|
|
1047
1047
|
continue: !t.abort
|
|
1048
1048
|
});
|
|
1049
1049
|
};
|
|
1050
|
-
}),
|
|
1051
|
-
t.pattern ?? (t.pattern = fs), be.init(e, t);
|
|
1052
|
-
}), xs = /* @__PURE__ */ c("$ZodCheckUpperCase", (e, t) => {
|
|
1050
|
+
}), xs = /* @__PURE__ */ c("$ZodCheckLowerCase", (e, t) => {
|
|
1053
1051
|
t.pattern ?? (t.pattern = hs), be.init(e, t);
|
|
1054
|
-
}), _s = /* @__PURE__ */ c("$
|
|
1052
|
+
}), _s = /* @__PURE__ */ c("$ZodCheckUpperCase", (e, t) => {
|
|
1053
|
+
t.pattern ?? (t.pattern = ps), be.init(e, t);
|
|
1054
|
+
}), bs = /* @__PURE__ */ c("$ZodCheckIncludes", (e, t) => {
|
|
1055
1055
|
U.init(e, t);
|
|
1056
1056
|
const r = _e(t.includes), n = new RegExp(typeof t.position == "number" ? `^.{${t.position}}${r}` : r);
|
|
1057
1057
|
t.pattern = n, e._zod.onattach.push((o) => {
|
|
@@ -1068,7 +1068,7 @@ const ds = (e) => {
|
|
|
1068
1068
|
continue: !t.abort
|
|
1069
1069
|
});
|
|
1070
1070
|
};
|
|
1071
|
-
}),
|
|
1071
|
+
}), ws = /* @__PURE__ */ c("$ZodCheckStartsWith", (e, t) => {
|
|
1072
1072
|
U.init(e, t);
|
|
1073
1073
|
const r = new RegExp(`^${_e(t.prefix)}.*`);
|
|
1074
1074
|
t.pattern ?? (t.pattern = r), e._zod.onattach.push((n) => {
|
|
@@ -1085,7 +1085,7 @@ const ds = (e) => {
|
|
|
1085
1085
|
continue: !t.abort
|
|
1086
1086
|
});
|
|
1087
1087
|
};
|
|
1088
|
-
}),
|
|
1088
|
+
}), js = /* @__PURE__ */ c("$ZodCheckEndsWith", (e, t) => {
|
|
1089
1089
|
U.init(e, t);
|
|
1090
1090
|
const r = new RegExp(`.*${_e(t.suffix)}$`);
|
|
1091
1091
|
t.pattern ?? (t.pattern = r), e._zod.onattach.push((n) => {
|
|
@@ -1102,12 +1102,12 @@ const ds = (e) => {
|
|
|
1102
1102
|
continue: !t.abort
|
|
1103
1103
|
});
|
|
1104
1104
|
};
|
|
1105
|
-
}),
|
|
1105
|
+
}), ks = /* @__PURE__ */ c("$ZodCheckOverwrite", (e, t) => {
|
|
1106
1106
|
U.init(e, t), e._zod.check = (r) => {
|
|
1107
1107
|
r.value = t.tx(r.value);
|
|
1108
1108
|
};
|
|
1109
1109
|
});
|
|
1110
|
-
class
|
|
1110
|
+
class $s {
|
|
1111
1111
|
constructor(t = []) {
|
|
1112
1112
|
this.content = [], this.indent = 0, this && (this.args = t);
|
|
1113
1113
|
}
|
|
@@ -1130,13 +1130,13 @@ class ks {
|
|
|
1130
1130
|
`));
|
|
1131
1131
|
}
|
|
1132
1132
|
}
|
|
1133
|
-
const
|
|
1133
|
+
const zs = {
|
|
1134
1134
|
major: 4,
|
|
1135
1135
|
minor: 0,
|
|
1136
1136
|
patch: 0
|
|
1137
|
-
},
|
|
1137
|
+
}, C = /* @__PURE__ */ c("$ZodType", (e, t) => {
|
|
1138
1138
|
var r;
|
|
1139
|
-
e ?? (e = {}), S(e._zod, "id", () => t.type + "_" + or(10)), e._zod.def = t, e._zod.bag = e._zod.bag || {}, e._zod.version =
|
|
1139
|
+
e ?? (e = {}), S(e._zod, "id", () => t.type + "_" + or(10)), e._zod.def = t, e._zod.bag = e._zod.bag || {}, e._zod.version = zs;
|
|
1140
1140
|
const n = [...e._zod.def.checks ?? []];
|
|
1141
1141
|
e._zod.traits.has("$ZodCheck") && n.unshift(e);
|
|
1142
1142
|
for (const o of n)
|
|
@@ -1183,17 +1183,17 @@ const $s = {
|
|
|
1183
1183
|
e["~standard"] = {
|
|
1184
1184
|
validate: (o) => {
|
|
1185
1185
|
try {
|
|
1186
|
-
const a =
|
|
1186
|
+
const a = Lo(e, o);
|
|
1187
1187
|
return a.success ? { value: a.data } : { issues: a.error?.issues };
|
|
1188
1188
|
} catch {
|
|
1189
|
-
return
|
|
1189
|
+
return Qo(e, o).then((i) => i.success ? { value: i.data } : { issues: i.error?.issues });
|
|
1190
1190
|
}
|
|
1191
1191
|
},
|
|
1192
1192
|
vendor: "zod",
|
|
1193
1193
|
version: 1
|
|
1194
1194
|
};
|
|
1195
1195
|
}), He = /* @__PURE__ */ c("$ZodString", (e, t) => {
|
|
1196
|
-
|
|
1196
|
+
C.init(e, t), e._zod.pattern = [...e?._zod.bag?.patterns ?? []].pop() ?? fs(e._zod.bag), e._zod.parse = (r, n) => {
|
|
1197
1197
|
if (t.coerce)
|
|
1198
1198
|
try {
|
|
1199
1199
|
r.value = String(r.value);
|
|
@@ -1208,9 +1208,9 @@ const $s = {
|
|
|
1208
1208
|
};
|
|
1209
1209
|
}), E = /* @__PURE__ */ c("$ZodStringFormat", (e, t) => {
|
|
1210
1210
|
be.init(e, t), He.init(e, t);
|
|
1211
|
-
}),
|
|
1212
|
-
t.pattern ?? (t.pattern =
|
|
1213
|
-
}),
|
|
1211
|
+
}), Ps = /* @__PURE__ */ c("$ZodGUID", (e, t) => {
|
|
1212
|
+
t.pattern ?? (t.pattern = Jo), E.init(e, t);
|
|
1213
|
+
}), Es = /* @__PURE__ */ c("$ZodUUID", (e, t) => {
|
|
1214
1214
|
if (t.version) {
|
|
1215
1215
|
const n = {
|
|
1216
1216
|
v1: 1,
|
|
@@ -1228,9 +1228,9 @@ const $s = {
|
|
|
1228
1228
|
} else
|
|
1229
1229
|
t.pattern ?? (t.pattern = lt());
|
|
1230
1230
|
E.init(e, t);
|
|
1231
|
-
}),
|
|
1232
|
-
t.pattern ?? (t.pattern =
|
|
1233
|
-
}),
|
|
1231
|
+
}), Ss = /* @__PURE__ */ c("$ZodEmail", (e, t) => {
|
|
1232
|
+
t.pattern ?? (t.pattern = Xo), E.init(e, t);
|
|
1233
|
+
}), Zs = /* @__PURE__ */ c("$ZodURL", (e, t) => {
|
|
1234
1234
|
E.init(e, t), e._zod.check = (r) => {
|
|
1235
1235
|
try {
|
|
1236
1236
|
const n = new URL(r.value);
|
|
@@ -1238,7 +1238,7 @@ const $s = {
|
|
|
1238
1238
|
code: "invalid_format",
|
|
1239
1239
|
format: "url",
|
|
1240
1240
|
note: "Invalid hostname",
|
|
1241
|
-
pattern:
|
|
1241
|
+
pattern: is.source,
|
|
1242
1242
|
input: r.value,
|
|
1243
1243
|
inst: e,
|
|
1244
1244
|
continue: !t.abort
|
|
@@ -1262,35 +1262,35 @@ const $s = {
|
|
|
1262
1262
|
});
|
|
1263
1263
|
}
|
|
1264
1264
|
};
|
|
1265
|
-
}),
|
|
1266
|
-
t.pattern ?? (t.pattern =
|
|
1265
|
+
}), Ts = /* @__PURE__ */ c("$ZodEmoji", (e, t) => {
|
|
1266
|
+
t.pattern ?? (t.pattern = ts()), E.init(e, t);
|
|
1267
1267
|
}), Cs = /* @__PURE__ */ c("$ZodNanoID", (e, t) => {
|
|
1268
|
-
t.pattern ?? (t.pattern =
|
|
1269
|
-
}),
|
|
1270
|
-
t.pattern ?? (t.pattern = Qo), E.init(e, t);
|
|
1271
|
-
}), Os = /* @__PURE__ */ c("$ZodCUID2", (e, t) => {
|
|
1268
|
+
t.pattern ?? (t.pattern = Yo), E.init(e, t);
|
|
1269
|
+
}), Os = /* @__PURE__ */ c("$ZodCUID", (e, t) => {
|
|
1272
1270
|
t.pattern ?? (t.pattern = Bo), E.init(e, t);
|
|
1273
|
-
}), Ns = /* @__PURE__ */ c("$
|
|
1271
|
+
}), Ns = /* @__PURE__ */ c("$ZodCUID2", (e, t) => {
|
|
1274
1272
|
t.pattern ?? (t.pattern = Ho), E.init(e, t);
|
|
1275
|
-
}), As = /* @__PURE__ */ c("$
|
|
1273
|
+
}), As = /* @__PURE__ */ c("$ZodULID", (e, t) => {
|
|
1276
1274
|
t.pattern ?? (t.pattern = Ko), E.init(e, t);
|
|
1277
|
-
}), Is = /* @__PURE__ */ c("$
|
|
1275
|
+
}), Is = /* @__PURE__ */ c("$ZodXID", (e, t) => {
|
|
1278
1276
|
t.pattern ?? (t.pattern = Wo), E.init(e, t);
|
|
1279
|
-
}), Rs = /* @__PURE__ */ c("$
|
|
1277
|
+
}), Rs = /* @__PURE__ */ c("$ZodKSUID", (e, t) => {
|
|
1278
|
+
t.pattern ?? (t.pattern = Vo), E.init(e, t);
|
|
1279
|
+
}), Ds = /* @__PURE__ */ c("$ZodISODateTime", (e, t) => {
|
|
1280
|
+
t.pattern ?? (t.pattern = ds(t)), E.init(e, t), e._zod.check;
|
|
1281
|
+
}), Ms = /* @__PURE__ */ c("$ZodISODate", (e, t) => {
|
|
1282
|
+
t.pattern ?? (t.pattern = us), E.init(e, t);
|
|
1283
|
+
}), Fs = /* @__PURE__ */ c("$ZodISOTime", (e, t) => {
|
|
1280
1284
|
t.pattern ?? (t.pattern = ls(t)), E.init(e, t), e._zod.check;
|
|
1281
|
-
}),
|
|
1282
|
-
t.pattern ?? (t.pattern =
|
|
1283
|
-
}),
|
|
1284
|
-
t.pattern ?? (t.pattern =
|
|
1285
|
-
}), Fs = /* @__PURE__ */ c("$ZodISODuration", (e, t) => {
|
|
1286
|
-
t.pattern ?? (t.pattern = Yo), E.init(e, t);
|
|
1287
|
-
}), qs = /* @__PURE__ */ c("$ZodIPv4", (e, t) => {
|
|
1288
|
-
t.pattern ?? (t.pattern = ts), E.init(e, t), e._zod.onattach.push((r) => {
|
|
1285
|
+
}), qs = /* @__PURE__ */ c("$ZodISODuration", (e, t) => {
|
|
1286
|
+
t.pattern ?? (t.pattern = Go), E.init(e, t);
|
|
1287
|
+
}), Us = /* @__PURE__ */ c("$ZodIPv4", (e, t) => {
|
|
1288
|
+
t.pattern ?? (t.pattern = rs), E.init(e, t), e._zod.onattach.push((r) => {
|
|
1289
1289
|
const n = r._zod.bag;
|
|
1290
1290
|
n.format = "ipv4";
|
|
1291
1291
|
});
|
|
1292
|
-
}),
|
|
1293
|
-
t.pattern ?? (t.pattern =
|
|
1292
|
+
}), Ls = /* @__PURE__ */ c("$ZodIPv6", (e, t) => {
|
|
1293
|
+
t.pattern ?? (t.pattern = ns), E.init(e, t), e._zod.onattach.push((r) => {
|
|
1294
1294
|
const n = r._zod.bag;
|
|
1295
1295
|
n.format = "ipv6";
|
|
1296
1296
|
}), e._zod.check = (r) => {
|
|
@@ -1306,10 +1306,10 @@ const $s = {
|
|
|
1306
1306
|
});
|
|
1307
1307
|
}
|
|
1308
1308
|
};
|
|
1309
|
-
}),
|
|
1310
|
-
t.pattern ?? (t.pattern =
|
|
1311
|
-
}),
|
|
1312
|
-
t.pattern ?? (t.pattern =
|
|
1309
|
+
}), Qs = /* @__PURE__ */ c("$ZodCIDRv4", (e, t) => {
|
|
1310
|
+
t.pattern ?? (t.pattern = os), E.init(e, t);
|
|
1311
|
+
}), Bs = /* @__PURE__ */ c("$ZodCIDRv6", (e, t) => {
|
|
1312
|
+
t.pattern ?? (t.pattern = ss), E.init(e, t), e._zod.check = (r) => {
|
|
1313
1313
|
const [n, o] = r.value.split("/");
|
|
1314
1314
|
try {
|
|
1315
1315
|
if (!o)
|
|
@@ -1342,8 +1342,8 @@ function pr(e) {
|
|
|
1342
1342
|
return !1;
|
|
1343
1343
|
}
|
|
1344
1344
|
}
|
|
1345
|
-
const
|
|
1346
|
-
t.pattern ?? (t.pattern =
|
|
1345
|
+
const Hs = /* @__PURE__ */ c("$ZodBase64", (e, t) => {
|
|
1346
|
+
t.pattern ?? (t.pattern = as), E.init(e, t), e._zod.onattach.push((r) => {
|
|
1347
1347
|
r._zod.bag.contentEncoding = "base64";
|
|
1348
1348
|
}), e._zod.check = (r) => {
|
|
1349
1349
|
pr(r.value) || r.issues.push({
|
|
@@ -1355,17 +1355,17 @@ const Bs = /* @__PURE__ */ c("$ZodBase64", (e, t) => {
|
|
|
1355
1355
|
});
|
|
1356
1356
|
};
|
|
1357
1357
|
});
|
|
1358
|
-
function
|
|
1358
|
+
function Ks(e) {
|
|
1359
1359
|
if (!dr.test(e))
|
|
1360
1360
|
return !1;
|
|
1361
1361
|
const t = e.replace(/[-_]/g, (n) => n === "-" ? "+" : "/"), r = t.padEnd(Math.ceil(t.length / 4) * 4, "=");
|
|
1362
1362
|
return pr(r);
|
|
1363
1363
|
}
|
|
1364
|
-
const
|
|
1364
|
+
const Ws = /* @__PURE__ */ c("$ZodBase64URL", (e, t) => {
|
|
1365
1365
|
t.pattern ?? (t.pattern = dr), E.init(e, t), e._zod.onattach.push((r) => {
|
|
1366
1366
|
r._zod.bag.contentEncoding = "base64url";
|
|
1367
1367
|
}), e._zod.check = (r) => {
|
|
1368
|
-
|
|
1368
|
+
Ks(r.value) || r.issues.push({
|
|
1369
1369
|
code: "invalid_format",
|
|
1370
1370
|
format: "base64url",
|
|
1371
1371
|
input: r.value,
|
|
@@ -1373,10 +1373,10 @@ const Ks = /* @__PURE__ */ c("$ZodBase64URL", (e, t) => {
|
|
|
1373
1373
|
continue: !t.abort
|
|
1374
1374
|
});
|
|
1375
1375
|
};
|
|
1376
|
-
}),
|
|
1377
|
-
t.pattern ?? (t.pattern =
|
|
1376
|
+
}), Vs = /* @__PURE__ */ c("$ZodE164", (e, t) => {
|
|
1377
|
+
t.pattern ?? (t.pattern = cs), E.init(e, t);
|
|
1378
1378
|
});
|
|
1379
|
-
function
|
|
1379
|
+
function Ys(e, t = null) {
|
|
1380
1380
|
try {
|
|
1381
1381
|
const r = e.split(".");
|
|
1382
1382
|
if (r.length !== 3)
|
|
@@ -1387,9 +1387,9 @@ function Vs(e, t = null) {
|
|
|
1387
1387
|
return !1;
|
|
1388
1388
|
}
|
|
1389
1389
|
}
|
|
1390
|
-
const
|
|
1390
|
+
const Gs = /* @__PURE__ */ c("$ZodJWT", (e, t) => {
|
|
1391
1391
|
E.init(e, t), e._zod.check = (r) => {
|
|
1392
|
-
|
|
1392
|
+
Ys(r.value, t.alg) || r.issues.push({
|
|
1393
1393
|
code: "invalid_format",
|
|
1394
1394
|
format: "jwt",
|
|
1395
1395
|
input: r.value,
|
|
@@ -1397,10 +1397,10 @@ const Ys = /* @__PURE__ */ c("$ZodJWT", (e, t) => {
|
|
|
1397
1397
|
continue: !t.abort
|
|
1398
1398
|
});
|
|
1399
1399
|
};
|
|
1400
|
-
}),
|
|
1401
|
-
|
|
1402
|
-
}),
|
|
1403
|
-
|
|
1400
|
+
}), Js = /* @__PURE__ */ c("$ZodUnknown", (e, t) => {
|
|
1401
|
+
C.init(e, t), e._zod.parse = (r) => r;
|
|
1402
|
+
}), Xs = /* @__PURE__ */ c("$ZodNever", (e, t) => {
|
|
1403
|
+
C.init(e, t), e._zod.parse = (r, n) => (r.issues.push({
|
|
1404
1404
|
expected: "never",
|
|
1405
1405
|
code: "invalid_type",
|
|
1406
1406
|
input: r.value,
|
|
@@ -1410,8 +1410,8 @@ const Ys = /* @__PURE__ */ c("$ZodJWT", (e, t) => {
|
|
|
1410
1410
|
function dt(e, t, r) {
|
|
1411
1411
|
e.issues.length && t.issues.push(...Qe(r, e.issues)), t.value[r] = e.value;
|
|
1412
1412
|
}
|
|
1413
|
-
const
|
|
1414
|
-
|
|
1413
|
+
const ea = /* @__PURE__ */ c("$ZodArray", (e, t) => {
|
|
1414
|
+
C.init(e, t), e._zod.parse = (r, n) => {
|
|
1415
1415
|
const o = r.value;
|
|
1416
1416
|
if (!Array.isArray(o))
|
|
1417
1417
|
return r.issues.push({
|
|
@@ -1438,12 +1438,12 @@ function de(e, t, r) {
|
|
|
1438
1438
|
function ft(e, t, r, n) {
|
|
1439
1439
|
e.issues.length ? n[r] === void 0 ? r in n ? t.value[r] = void 0 : t.value[r] = e.value : t.issues.push(...Qe(r, e.issues)) : e.value === void 0 ? r in n && (t.value[r] = void 0) : t.value[r] = e.value;
|
|
1440
1440
|
}
|
|
1441
|
-
const
|
|
1442
|
-
|
|
1441
|
+
const ta = /* @__PURE__ */ c("$ZodObject", (e, t) => {
|
|
1442
|
+
C.init(e, t);
|
|
1443
1443
|
const r = nr(() => {
|
|
1444
1444
|
const p = Object.keys(t.shape);
|
|
1445
1445
|
for (const l of p)
|
|
1446
|
-
if (!(t.shape[l] instanceof
|
|
1446
|
+
if (!(t.shape[l] instanceof C))
|
|
1447
1447
|
throw new Error(`Invalid element at key "${l}": expected a Zod schema`);
|
|
1448
1448
|
const m = Co(t.shape);
|
|
1449
1449
|
return {
|
|
@@ -1467,7 +1467,7 @@ const ea = /* @__PURE__ */ c("$ZodObject", (e, t) => {
|
|
|
1467
1467
|
return m;
|
|
1468
1468
|
});
|
|
1469
1469
|
const n = (p) => {
|
|
1470
|
-
const m = new
|
|
1470
|
+
const m = new $s(["shape", "payload", "ctx"]), { keys: l, optionalKeys: g } = r.value, w = (j) => {
|
|
1471
1471
|
const x = re(j);
|
|
1472
1472
|
return `shape[${x}]._zod.run({ value: input[${x}], issues: [] }, ctx)`;
|
|
1473
1473
|
};
|
|
@@ -1510,11 +1510,11 @@ const ea = /* @__PURE__ */ c("$ZodObject", (e, t) => {
|
|
|
1510
1510
|
})));`), m.write(`newResult[${re(j)}] = ${x}.value`);
|
|
1511
1511
|
}
|
|
1512
1512
|
m.write("payload.value = newResult;"), m.write("return payload;");
|
|
1513
|
-
const
|
|
1514
|
-
return (j, x) =>
|
|
1513
|
+
const T = m.compile();
|
|
1514
|
+
return (j, x) => T(p, j, x);
|
|
1515
1515
|
};
|
|
1516
1516
|
let o;
|
|
1517
|
-
const a =
|
|
1517
|
+
const a = Te, i = !rr.jitless, h = i && Zo.value, { catchall: f } = t;
|
|
1518
1518
|
let y;
|
|
1519
1519
|
e._zod.parse = (p, m) => {
|
|
1520
1520
|
y ?? (y = r.value);
|
|
@@ -1539,7 +1539,7 @@ const ea = /* @__PURE__ */ c("$ZodObject", (e, t) => {
|
|
|
1539
1539
|
}
|
|
1540
1540
|
if (!f)
|
|
1541
1541
|
return g.length ? Promise.all(g).then(() => p) : p;
|
|
1542
|
-
const w = [], P = y.keySet,
|
|
1542
|
+
const w = [], P = y.keySet, T = f._zod, j = T.def.type;
|
|
1543
1543
|
for (const x of Object.keys(l)) {
|
|
1544
1544
|
if (P.has(x))
|
|
1545
1545
|
continue;
|
|
@@ -1547,7 +1547,7 @@ const ea = /* @__PURE__ */ c("$ZodObject", (e, t) => {
|
|
|
1547
1547
|
w.push(x);
|
|
1548
1548
|
continue;
|
|
1549
1549
|
}
|
|
1550
|
-
const b =
|
|
1550
|
+
const b = T.run({ value: l[x], issues: [] }, m);
|
|
1551
1551
|
b instanceof Promise ? g.push(b.then((d) => de(d, p, x))) : de(b, p, x);
|
|
1552
1552
|
}
|
|
1553
1553
|
return w.length && p.issues.push({
|
|
@@ -1569,8 +1569,8 @@ function ht(e, t, r, n) {
|
|
|
1569
1569
|
errors: e.map((o) => o.issues.map((a) => Y(a, n, V())))
|
|
1570
1570
|
}), t;
|
|
1571
1571
|
}
|
|
1572
|
-
const
|
|
1573
|
-
|
|
1572
|
+
const ra = /* @__PURE__ */ c("$ZodUnion", (e, t) => {
|
|
1573
|
+
C.init(e, t), S(e._zod, "values", () => {
|
|
1574
1574
|
if (t.options.every((r) => r._zod.values))
|
|
1575
1575
|
return new Set(t.options.flatMap((r) => Array.from(r._zod.values)));
|
|
1576
1576
|
}), S(e._zod, "pattern", () => {
|
|
@@ -1596,13 +1596,13 @@ const ta = /* @__PURE__ */ c("$ZodUnion", (e, t) => {
|
|
|
1596
1596
|
}
|
|
1597
1597
|
return o ? Promise.all(a).then((i) => ht(i, r, e, n)) : ht(a, r, e, n);
|
|
1598
1598
|
};
|
|
1599
|
-
}),
|
|
1600
|
-
|
|
1599
|
+
}), na = /* @__PURE__ */ c("$ZodIntersection", (e, t) => {
|
|
1600
|
+
C.init(e, t), e._zod.parse = (r, n) => {
|
|
1601
1601
|
const { value: o } = r, a = t.left._zod.run({ value: o, issues: [] }, n), i = t.right._zod.run({ value: o, issues: [] }, n);
|
|
1602
1602
|
return a instanceof Promise || i instanceof Promise ? Promise.all([a, i]).then(([h, f]) => pt(r, h, f)) : pt(r, a, i);
|
|
1603
1603
|
};
|
|
1604
1604
|
});
|
|
1605
|
-
function
|
|
1605
|
+
function Ce(e, t) {
|
|
1606
1606
|
if (e === t)
|
|
1607
1607
|
return { valid: !0, data: e };
|
|
1608
1608
|
if (e instanceof Date && t instanceof Date && +e == +t)
|
|
@@ -1610,7 +1610,7 @@ function Te(e, t) {
|
|
|
1610
1610
|
if (ut(e) && ut(t)) {
|
|
1611
1611
|
const r = Object.keys(t), n = Object.keys(e).filter((a) => r.indexOf(a) !== -1), o = { ...e, ...t };
|
|
1612
1612
|
for (const a of n) {
|
|
1613
|
-
const i =
|
|
1613
|
+
const i = Ce(e[a], t[a]);
|
|
1614
1614
|
if (!i.valid)
|
|
1615
1615
|
return {
|
|
1616
1616
|
valid: !1,
|
|
@@ -1625,7 +1625,7 @@ function Te(e, t) {
|
|
|
1625
1625
|
return { valid: !1, mergeErrorPath: [] };
|
|
1626
1626
|
const r = [];
|
|
1627
1627
|
for (let n = 0; n < e.length; n++) {
|
|
1628
|
-
const o = e[n], a = t[n], i =
|
|
1628
|
+
const o = e[n], a = t[n], i = Ce(o, a);
|
|
1629
1629
|
if (!i.valid)
|
|
1630
1630
|
return {
|
|
1631
1631
|
valid: !1,
|
|
@@ -1640,15 +1640,15 @@ function Te(e, t) {
|
|
|
1640
1640
|
function pt(e, t, r) {
|
|
1641
1641
|
if (t.issues.length && e.issues.push(...t.issues), r.issues.length && e.issues.push(...r.issues), ne(e))
|
|
1642
1642
|
return e;
|
|
1643
|
-
const n =
|
|
1643
|
+
const n = Ce(t.value, r.value);
|
|
1644
1644
|
if (!n.valid)
|
|
1645
1645
|
throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(n.mergeErrorPath)}`);
|
|
1646
1646
|
return e.value = n.data, e;
|
|
1647
1647
|
}
|
|
1648
|
-
const
|
|
1649
|
-
|
|
1650
|
-
const r =
|
|
1651
|
-
e._zod.values = new Set(r), e._zod.pattern = new RegExp(`^(${r.filter((n) =>
|
|
1648
|
+
const oa = /* @__PURE__ */ c("$ZodEnum", (e, t) => {
|
|
1649
|
+
C.init(e, t);
|
|
1650
|
+
const r = Eo(t.entries);
|
|
1651
|
+
e._zod.values = new Set(r), e._zod.pattern = new RegExp(`^(${r.filter((n) => To.has(typeof n)).map((n) => typeof n == "string" ? _e(n) : n.toString()).join("|")})$`), e._zod.parse = (n, o) => {
|
|
1652
1652
|
const a = n.value;
|
|
1653
1653
|
return e._zod.values.has(a) || n.issues.push({
|
|
1654
1654
|
code: "invalid_value",
|
|
@@ -1657,8 +1657,8 @@ const na = /* @__PURE__ */ c("$ZodEnum", (e, t) => {
|
|
|
1657
1657
|
inst: e
|
|
1658
1658
|
}), n;
|
|
1659
1659
|
};
|
|
1660
|
-
}),
|
|
1661
|
-
|
|
1660
|
+
}), sa = /* @__PURE__ */ c("$ZodTransform", (e, t) => {
|
|
1661
|
+
C.init(e, t), e._zod.parse = (r, n) => {
|
|
1662
1662
|
const o = t.transform(r.value, r);
|
|
1663
1663
|
if (n.async)
|
|
1664
1664
|
return (o instanceof Promise ? o : Promise.resolve(o)).then((i) => (r.value = i, r));
|
|
@@ -1666,18 +1666,18 @@ const na = /* @__PURE__ */ c("$ZodEnum", (e, t) => {
|
|
|
1666
1666
|
throw new se();
|
|
1667
1667
|
return r.value = o, r;
|
|
1668
1668
|
};
|
|
1669
|
-
}),
|
|
1670
|
-
|
|
1669
|
+
}), aa = /* @__PURE__ */ c("$ZodOptional", (e, t) => {
|
|
1670
|
+
C.init(e, t), e._zod.optin = "optional", e._zod.optout = "optional", S(e._zod, "values", () => t.innerType._zod.values ? /* @__PURE__ */ new Set([...t.innerType._zod.values, void 0]) : void 0), S(e._zod, "pattern", () => {
|
|
1671
1671
|
const r = t.innerType._zod.pattern;
|
|
1672
1672
|
return r ? new RegExp(`^(${Ue(r.source)})?$`) : void 0;
|
|
1673
1673
|
}), e._zod.parse = (r, n) => r.value === void 0 ? r : t.innerType._zod.run(r, n);
|
|
1674
|
-
}),
|
|
1675
|
-
|
|
1674
|
+
}), ia = /* @__PURE__ */ c("$ZodNullable", (e, t) => {
|
|
1675
|
+
C.init(e, t), S(e._zod, "optin", () => t.innerType._zod.optin), S(e._zod, "optout", () => t.innerType._zod.optout), S(e._zod, "pattern", () => {
|
|
1676
1676
|
const r = t.innerType._zod.pattern;
|
|
1677
1677
|
return r ? new RegExp(`^(${Ue(r.source)}|null)$`) : void 0;
|
|
1678
1678
|
}), S(e._zod, "values", () => t.innerType._zod.values ? /* @__PURE__ */ new Set([...t.innerType._zod.values, null]) : void 0), e._zod.parse = (r, n) => r.value === null ? r : t.innerType._zod.run(r, n);
|
|
1679
|
-
}),
|
|
1680
|
-
|
|
1679
|
+
}), ca = /* @__PURE__ */ c("$ZodDefault", (e, t) => {
|
|
1680
|
+
C.init(e, t), e._zod.optin = "optional", S(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (r, n) => {
|
|
1681
1681
|
if (r.value === void 0)
|
|
1682
1682
|
return r.value = t.defaultValue, r;
|
|
1683
1683
|
const o = t.innerType._zod.run(r, n);
|
|
@@ -1687,10 +1687,10 @@ const na = /* @__PURE__ */ c("$ZodEnum", (e, t) => {
|
|
|
1687
1687
|
function mt(e, t) {
|
|
1688
1688
|
return e.value === void 0 && (e.value = t.defaultValue), e;
|
|
1689
1689
|
}
|
|
1690
|
-
const
|
|
1691
|
-
|
|
1692
|
-
}),
|
|
1693
|
-
|
|
1690
|
+
const ua = /* @__PURE__ */ c("$ZodPrefault", (e, t) => {
|
|
1691
|
+
C.init(e, t), e._zod.optin = "optional", S(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (r, n) => (r.value === void 0 && (r.value = t.defaultValue), t.innerType._zod.run(r, n));
|
|
1692
|
+
}), la = /* @__PURE__ */ c("$ZodNonOptional", (e, t) => {
|
|
1693
|
+
C.init(e, t), S(e._zod, "values", () => {
|
|
1694
1694
|
const r = t.innerType._zod.values;
|
|
1695
1695
|
return r ? new Set([...r].filter((n) => n !== void 0)) : void 0;
|
|
1696
1696
|
}), e._zod.parse = (r, n) => {
|
|
@@ -1706,8 +1706,8 @@ function gt(e, t) {
|
|
|
1706
1706
|
inst: t
|
|
1707
1707
|
}), e;
|
|
1708
1708
|
}
|
|
1709
|
-
const
|
|
1710
|
-
|
|
1709
|
+
const da = /* @__PURE__ */ c("$ZodCatch", (e, t) => {
|
|
1710
|
+
C.init(e, t), S(e._zod, "optin", () => t.innerType._zod.optin), S(e._zod, "optout", () => t.innerType._zod.optout), S(e._zod, "values", () => t.innerType._zod.values), e._zod.parse = (r, n) => {
|
|
1711
1711
|
const o = t.innerType._zod.run(r, n);
|
|
1712
1712
|
return o instanceof Promise ? o.then((a) => (r.value = a.value, a.issues.length && (r.value = t.catchValue({
|
|
1713
1713
|
...r,
|
|
@@ -1723,8 +1723,8 @@ const la = /* @__PURE__ */ c("$ZodCatch", (e, t) => {
|
|
|
1723
1723
|
input: r.value
|
|
1724
1724
|
}), r.issues = []), r);
|
|
1725
1725
|
};
|
|
1726
|
-
}),
|
|
1727
|
-
|
|
1726
|
+
}), fa = /* @__PURE__ */ c("$ZodPipe", (e, t) => {
|
|
1727
|
+
C.init(e, t), S(e._zod, "values", () => t.in._zod.values), S(e._zod, "optin", () => t.in._zod.optin), S(e._zod, "optout", () => t.out._zod.optout), e._zod.parse = (r, n) => {
|
|
1728
1728
|
const o = t.in._zod.run(r, n);
|
|
1729
1729
|
return o instanceof Promise ? o.then((a) => vt(a, t, n)) : vt(o, t, n);
|
|
1730
1730
|
};
|
|
@@ -1732,8 +1732,8 @@ const la = /* @__PURE__ */ c("$ZodCatch", (e, t) => {
|
|
|
1732
1732
|
function vt(e, t, r) {
|
|
1733
1733
|
return ne(e) ? e : t.out._zod.run({ value: e.value, issues: e.issues }, r);
|
|
1734
1734
|
}
|
|
1735
|
-
const
|
|
1736
|
-
|
|
1735
|
+
const ha = /* @__PURE__ */ c("$ZodReadonly", (e, t) => {
|
|
1736
|
+
C.init(e, t), S(e._zod, "propValues", () => t.innerType._zod.propValues), S(e._zod, "optin", () => t.innerType._zod.optin), S(e._zod, "optout", () => t.innerType._zod.optout), e._zod.parse = (r, n) => {
|
|
1737
1737
|
const o = t.innerType._zod.run(r, n);
|
|
1738
1738
|
return o instanceof Promise ? o.then(yt) : yt(o);
|
|
1739
1739
|
};
|
|
@@ -1741,8 +1741,8 @@ const fa = /* @__PURE__ */ c("$ZodReadonly", (e, t) => {
|
|
|
1741
1741
|
function yt(e) {
|
|
1742
1742
|
return e.value = Object.freeze(e.value), e;
|
|
1743
1743
|
}
|
|
1744
|
-
const
|
|
1745
|
-
U.init(e, t),
|
|
1744
|
+
const pa = /* @__PURE__ */ c("$ZodCustom", (e, t) => {
|
|
1745
|
+
U.init(e, t), C.init(e, t), e._zod.parse = (r, n) => r, e._zod.check = (r) => {
|
|
1746
1746
|
const n = r.value, o = t.fn(n);
|
|
1747
1747
|
if (o instanceof Promise)
|
|
1748
1748
|
return o.then((a) => xt(a, r, n, e));
|
|
@@ -1764,7 +1764,7 @@ function xt(e, t, r, n) {
|
|
|
1764
1764
|
n._zod.def.params && (o.params = n._zod.def.params), t.issues.push(ae(o));
|
|
1765
1765
|
}
|
|
1766
1766
|
}
|
|
1767
|
-
class
|
|
1767
|
+
class ma {
|
|
1768
1768
|
constructor() {
|
|
1769
1769
|
this._map = /* @__PURE__ */ new WeakMap(), this._idmap = /* @__PURE__ */ new Map();
|
|
1770
1770
|
}
|
|
@@ -1792,17 +1792,17 @@ class pa {
|
|
|
1792
1792
|
return this._map.has(t);
|
|
1793
1793
|
}
|
|
1794
1794
|
}
|
|
1795
|
-
function
|
|
1796
|
-
return new
|
|
1795
|
+
function ga() {
|
|
1796
|
+
return new ma();
|
|
1797
1797
|
}
|
|
1798
|
-
const fe = /* @__PURE__ */
|
|
1799
|
-
function
|
|
1798
|
+
const fe = /* @__PURE__ */ ga();
|
|
1799
|
+
function va(e, t) {
|
|
1800
1800
|
return new e({
|
|
1801
1801
|
type: "string",
|
|
1802
1802
|
..._(t)
|
|
1803
1803
|
});
|
|
1804
1804
|
}
|
|
1805
|
-
function
|
|
1805
|
+
function ya(e, t) {
|
|
1806
1806
|
return new e({
|
|
1807
1807
|
type: "string",
|
|
1808
1808
|
format: "email",
|
|
@@ -1820,7 +1820,7 @@ function _t(e, t) {
|
|
|
1820
1820
|
..._(t)
|
|
1821
1821
|
});
|
|
1822
1822
|
}
|
|
1823
|
-
function
|
|
1823
|
+
function xa(e, t) {
|
|
1824
1824
|
return new e({
|
|
1825
1825
|
type: "string",
|
|
1826
1826
|
format: "uuid",
|
|
@@ -1829,7 +1829,7 @@ function ya(e, t) {
|
|
|
1829
1829
|
..._(t)
|
|
1830
1830
|
});
|
|
1831
1831
|
}
|
|
1832
|
-
function
|
|
1832
|
+
function _a(e, t) {
|
|
1833
1833
|
return new e({
|
|
1834
1834
|
type: "string",
|
|
1835
1835
|
format: "uuid",
|
|
@@ -1839,7 +1839,7 @@ function xa(e, t) {
|
|
|
1839
1839
|
..._(t)
|
|
1840
1840
|
});
|
|
1841
1841
|
}
|
|
1842
|
-
function
|
|
1842
|
+
function ba(e, t) {
|
|
1843
1843
|
return new e({
|
|
1844
1844
|
type: "string",
|
|
1845
1845
|
format: "uuid",
|
|
@@ -1849,7 +1849,7 @@ function _a(e, t) {
|
|
|
1849
1849
|
..._(t)
|
|
1850
1850
|
});
|
|
1851
1851
|
}
|
|
1852
|
-
function
|
|
1852
|
+
function wa(e, t) {
|
|
1853
1853
|
return new e({
|
|
1854
1854
|
type: "string",
|
|
1855
1855
|
format: "uuid",
|
|
@@ -1859,7 +1859,7 @@ function ba(e, t) {
|
|
|
1859
1859
|
..._(t)
|
|
1860
1860
|
});
|
|
1861
1861
|
}
|
|
1862
|
-
function
|
|
1862
|
+
function ja(e, t) {
|
|
1863
1863
|
return new e({
|
|
1864
1864
|
type: "string",
|
|
1865
1865
|
format: "url",
|
|
@@ -1868,7 +1868,7 @@ function wa(e, t) {
|
|
|
1868
1868
|
..._(t)
|
|
1869
1869
|
});
|
|
1870
1870
|
}
|
|
1871
|
-
function
|
|
1871
|
+
function ka(e, t) {
|
|
1872
1872
|
return new e({
|
|
1873
1873
|
type: "string",
|
|
1874
1874
|
format: "emoji",
|
|
@@ -1877,7 +1877,7 @@ function ja(e, t) {
|
|
|
1877
1877
|
..._(t)
|
|
1878
1878
|
});
|
|
1879
1879
|
}
|
|
1880
|
-
function
|
|
1880
|
+
function $a(e, t) {
|
|
1881
1881
|
return new e({
|
|
1882
1882
|
type: "string",
|
|
1883
1883
|
format: "nanoid",
|
|
@@ -1886,7 +1886,7 @@ function ka(e, t) {
|
|
|
1886
1886
|
..._(t)
|
|
1887
1887
|
});
|
|
1888
1888
|
}
|
|
1889
|
-
function
|
|
1889
|
+
function za(e, t) {
|
|
1890
1890
|
return new e({
|
|
1891
1891
|
type: "string",
|
|
1892
1892
|
format: "cuid",
|
|
@@ -1895,7 +1895,7 @@ function $a(e, t) {
|
|
|
1895
1895
|
..._(t)
|
|
1896
1896
|
});
|
|
1897
1897
|
}
|
|
1898
|
-
function
|
|
1898
|
+
function Pa(e, t) {
|
|
1899
1899
|
return new e({
|
|
1900
1900
|
type: "string",
|
|
1901
1901
|
format: "cuid2",
|
|
@@ -1904,7 +1904,7 @@ function za(e, t) {
|
|
|
1904
1904
|
..._(t)
|
|
1905
1905
|
});
|
|
1906
1906
|
}
|
|
1907
|
-
function
|
|
1907
|
+
function Ea(e, t) {
|
|
1908
1908
|
return new e({
|
|
1909
1909
|
type: "string",
|
|
1910
1910
|
format: "ulid",
|
|
@@ -1913,7 +1913,7 @@ function Pa(e, t) {
|
|
|
1913
1913
|
..._(t)
|
|
1914
1914
|
});
|
|
1915
1915
|
}
|
|
1916
|
-
function
|
|
1916
|
+
function Sa(e, t) {
|
|
1917
1917
|
return new e({
|
|
1918
1918
|
type: "string",
|
|
1919
1919
|
format: "xid",
|
|
@@ -1922,7 +1922,7 @@ function Ea(e, t) {
|
|
|
1922
1922
|
..._(t)
|
|
1923
1923
|
});
|
|
1924
1924
|
}
|
|
1925
|
-
function
|
|
1925
|
+
function Za(e, t) {
|
|
1926
1926
|
return new e({
|
|
1927
1927
|
type: "string",
|
|
1928
1928
|
format: "ksuid",
|
|
@@ -1931,7 +1931,7 @@ function Sa(e, t) {
|
|
|
1931
1931
|
..._(t)
|
|
1932
1932
|
});
|
|
1933
1933
|
}
|
|
1934
|
-
function
|
|
1934
|
+
function Ta(e, t) {
|
|
1935
1935
|
return new e({
|
|
1936
1936
|
type: "string",
|
|
1937
1937
|
format: "ipv4",
|
|
@@ -1949,7 +1949,7 @@ function Ca(e, t) {
|
|
|
1949
1949
|
..._(t)
|
|
1950
1950
|
});
|
|
1951
1951
|
}
|
|
1952
|
-
function
|
|
1952
|
+
function Oa(e, t) {
|
|
1953
1953
|
return new e({
|
|
1954
1954
|
type: "string",
|
|
1955
1955
|
format: "cidrv4",
|
|
@@ -1958,7 +1958,7 @@ function Ta(e, t) {
|
|
|
1958
1958
|
..._(t)
|
|
1959
1959
|
});
|
|
1960
1960
|
}
|
|
1961
|
-
function
|
|
1961
|
+
function Na(e, t) {
|
|
1962
1962
|
return new e({
|
|
1963
1963
|
type: "string",
|
|
1964
1964
|
format: "cidrv6",
|
|
@@ -1967,7 +1967,7 @@ function Oa(e, t) {
|
|
|
1967
1967
|
..._(t)
|
|
1968
1968
|
});
|
|
1969
1969
|
}
|
|
1970
|
-
function
|
|
1970
|
+
function Aa(e, t) {
|
|
1971
1971
|
return new e({
|
|
1972
1972
|
type: "string",
|
|
1973
1973
|
format: "base64",
|
|
@@ -1976,7 +1976,7 @@ function Na(e, t) {
|
|
|
1976
1976
|
..._(t)
|
|
1977
1977
|
});
|
|
1978
1978
|
}
|
|
1979
|
-
function
|
|
1979
|
+
function Ia(e, t) {
|
|
1980
1980
|
return new e({
|
|
1981
1981
|
type: "string",
|
|
1982
1982
|
format: "base64url",
|
|
@@ -1985,7 +1985,7 @@ function Aa(e, t) {
|
|
|
1985
1985
|
..._(t)
|
|
1986
1986
|
});
|
|
1987
1987
|
}
|
|
1988
|
-
function
|
|
1988
|
+
function Ra(e, t) {
|
|
1989
1989
|
return new e({
|
|
1990
1990
|
type: "string",
|
|
1991
1991
|
format: "e164",
|
|
@@ -1994,7 +1994,7 @@ function Ia(e, t) {
|
|
|
1994
1994
|
..._(t)
|
|
1995
1995
|
});
|
|
1996
1996
|
}
|
|
1997
|
-
function
|
|
1997
|
+
function Da(e, t) {
|
|
1998
1998
|
return new e({
|
|
1999
1999
|
type: "string",
|
|
2000
2000
|
format: "jwt",
|
|
@@ -2003,7 +2003,7 @@ function Ra(e, t) {
|
|
|
2003
2003
|
..._(t)
|
|
2004
2004
|
});
|
|
2005
2005
|
}
|
|
2006
|
-
function
|
|
2006
|
+
function Ma(e, t) {
|
|
2007
2007
|
return new e({
|
|
2008
2008
|
type: "string",
|
|
2009
2009
|
format: "datetime",
|
|
@@ -2014,7 +2014,7 @@ function Da(e, t) {
|
|
|
2014
2014
|
..._(t)
|
|
2015
2015
|
});
|
|
2016
2016
|
}
|
|
2017
|
-
function
|
|
2017
|
+
function Fa(e, t) {
|
|
2018
2018
|
return new e({
|
|
2019
2019
|
type: "string",
|
|
2020
2020
|
format: "date",
|
|
@@ -2022,7 +2022,7 @@ function Ma(e, t) {
|
|
|
2022
2022
|
..._(t)
|
|
2023
2023
|
});
|
|
2024
2024
|
}
|
|
2025
|
-
function
|
|
2025
|
+
function qa(e, t) {
|
|
2026
2026
|
return new e({
|
|
2027
2027
|
type: "string",
|
|
2028
2028
|
format: "time",
|
|
@@ -2031,7 +2031,7 @@ function Fa(e, t) {
|
|
|
2031
2031
|
..._(t)
|
|
2032
2032
|
});
|
|
2033
2033
|
}
|
|
2034
|
-
function
|
|
2034
|
+
function Ua(e, t) {
|
|
2035
2035
|
return new e({
|
|
2036
2036
|
type: "string",
|
|
2037
2037
|
format: "duration",
|
|
@@ -2039,78 +2039,78 @@ function qa(e, t) {
|
|
|
2039
2039
|
..._(t)
|
|
2040
2040
|
});
|
|
2041
2041
|
}
|
|
2042
|
-
function
|
|
2042
|
+
function La(e) {
|
|
2043
2043
|
return new e({
|
|
2044
2044
|
type: "unknown"
|
|
2045
2045
|
});
|
|
2046
2046
|
}
|
|
2047
|
-
function
|
|
2047
|
+
function Qa(e, t) {
|
|
2048
2048
|
return new e({
|
|
2049
2049
|
type: "never",
|
|
2050
2050
|
..._(t)
|
|
2051
2051
|
});
|
|
2052
2052
|
}
|
|
2053
2053
|
function mr(e, t) {
|
|
2054
|
-
return new
|
|
2054
|
+
return new ms({
|
|
2055
2055
|
check: "max_length",
|
|
2056
2056
|
..._(t),
|
|
2057
2057
|
maximum: e
|
|
2058
2058
|
});
|
|
2059
2059
|
}
|
|
2060
2060
|
function ve(e, t) {
|
|
2061
|
-
return new
|
|
2061
|
+
return new gs({
|
|
2062
2062
|
check: "min_length",
|
|
2063
2063
|
..._(t),
|
|
2064
2064
|
minimum: e
|
|
2065
2065
|
});
|
|
2066
2066
|
}
|
|
2067
2067
|
function gr(e, t) {
|
|
2068
|
-
return new
|
|
2068
|
+
return new vs({
|
|
2069
2069
|
check: "length_equals",
|
|
2070
2070
|
..._(t),
|
|
2071
2071
|
length: e
|
|
2072
2072
|
});
|
|
2073
2073
|
}
|
|
2074
|
-
function
|
|
2075
|
-
return new
|
|
2074
|
+
function Ba(e, t) {
|
|
2075
|
+
return new ys({
|
|
2076
2076
|
check: "string_format",
|
|
2077
2077
|
format: "regex",
|
|
2078
2078
|
..._(t),
|
|
2079
2079
|
pattern: e
|
|
2080
2080
|
});
|
|
2081
2081
|
}
|
|
2082
|
-
function
|
|
2083
|
-
return new
|
|
2082
|
+
function Ha(e) {
|
|
2083
|
+
return new xs({
|
|
2084
2084
|
check: "string_format",
|
|
2085
2085
|
format: "lowercase",
|
|
2086
2086
|
..._(e)
|
|
2087
2087
|
});
|
|
2088
2088
|
}
|
|
2089
|
-
function
|
|
2090
|
-
return new
|
|
2089
|
+
function Ka(e) {
|
|
2090
|
+
return new _s({
|
|
2091
2091
|
check: "string_format",
|
|
2092
2092
|
format: "uppercase",
|
|
2093
2093
|
..._(e)
|
|
2094
2094
|
});
|
|
2095
2095
|
}
|
|
2096
|
-
function
|
|
2097
|
-
return new
|
|
2096
|
+
function Wa(e, t) {
|
|
2097
|
+
return new bs({
|
|
2098
2098
|
check: "string_format",
|
|
2099
2099
|
format: "includes",
|
|
2100
2100
|
..._(t),
|
|
2101
2101
|
includes: e
|
|
2102
2102
|
});
|
|
2103
2103
|
}
|
|
2104
|
-
function
|
|
2105
|
-
return new
|
|
2104
|
+
function Va(e, t) {
|
|
2105
|
+
return new ws({
|
|
2106
2106
|
check: "string_format",
|
|
2107
2107
|
format: "starts_with",
|
|
2108
2108
|
..._(t),
|
|
2109
2109
|
prefix: e
|
|
2110
2110
|
});
|
|
2111
2111
|
}
|
|
2112
|
-
function
|
|
2113
|
-
return new
|
|
2112
|
+
function Ya(e, t) {
|
|
2113
|
+
return new js({
|
|
2114
2114
|
check: "string_format",
|
|
2115
2115
|
format: "ends_with",
|
|
2116
2116
|
..._(t),
|
|
@@ -2118,24 +2118,24 @@ function Va(e, t) {
|
|
|
2118
2118
|
});
|
|
2119
2119
|
}
|
|
2120
2120
|
function ie(e) {
|
|
2121
|
-
return new
|
|
2121
|
+
return new ks({
|
|
2122
2122
|
check: "overwrite",
|
|
2123
2123
|
tx: e
|
|
2124
2124
|
});
|
|
2125
2125
|
}
|
|
2126
|
-
function
|
|
2126
|
+
function Ga(e) {
|
|
2127
2127
|
return ie((t) => t.normalize(e));
|
|
2128
2128
|
}
|
|
2129
|
-
function
|
|
2129
|
+
function Ja() {
|
|
2130
2130
|
return ie((e) => e.trim());
|
|
2131
2131
|
}
|
|
2132
|
-
function
|
|
2132
|
+
function Xa() {
|
|
2133
2133
|
return ie((e) => e.toLowerCase());
|
|
2134
2134
|
}
|
|
2135
|
-
function
|
|
2135
|
+
function ei() {
|
|
2136
2136
|
return ie((e) => e.toUpperCase());
|
|
2137
2137
|
}
|
|
2138
|
-
function
|
|
2138
|
+
function ti(e, t, r) {
|
|
2139
2139
|
return new e({
|
|
2140
2140
|
type: "array",
|
|
2141
2141
|
element: t,
|
|
@@ -2145,7 +2145,7 @@ function ei(e, t, r) {
|
|
|
2145
2145
|
..._(r)
|
|
2146
2146
|
});
|
|
2147
2147
|
}
|
|
2148
|
-
function
|
|
2148
|
+
function ri(e, t, r) {
|
|
2149
2149
|
return new e({
|
|
2150
2150
|
type: "custom",
|
|
2151
2151
|
check: "custom",
|
|
@@ -2153,38 +2153,38 @@ function ti(e, t, r) {
|
|
|
2153
2153
|
..._(r)
|
|
2154
2154
|
});
|
|
2155
2155
|
}
|
|
2156
|
-
const
|
|
2157
|
-
Rs.init(e, t), Z.init(e, t);
|
|
2158
|
-
});
|
|
2159
|
-
function ni(e) {
|
|
2160
|
-
return Da(ri, e);
|
|
2161
|
-
}
|
|
2162
|
-
const oi = /* @__PURE__ */ c("ZodISODate", (e, t) => {
|
|
2156
|
+
const ni = /* @__PURE__ */ c("ZodISODateTime", (e, t) => {
|
|
2163
2157
|
Ds.init(e, t), Z.init(e, t);
|
|
2164
2158
|
});
|
|
2165
|
-
function
|
|
2166
|
-
return Ma(
|
|
2159
|
+
function oi(e) {
|
|
2160
|
+
return Ma(ni, e);
|
|
2167
2161
|
}
|
|
2168
|
-
const
|
|
2162
|
+
const si = /* @__PURE__ */ c("ZodISODate", (e, t) => {
|
|
2169
2163
|
Ms.init(e, t), Z.init(e, t);
|
|
2170
2164
|
});
|
|
2171
|
-
function
|
|
2172
|
-
return Fa(
|
|
2165
|
+
function ai(e) {
|
|
2166
|
+
return Fa(si, e);
|
|
2173
2167
|
}
|
|
2174
|
-
const
|
|
2168
|
+
const ii = /* @__PURE__ */ c("ZodISOTime", (e, t) => {
|
|
2175
2169
|
Fs.init(e, t), Z.init(e, t);
|
|
2176
2170
|
});
|
|
2177
|
-
function
|
|
2178
|
-
return qa(
|
|
2171
|
+
function ci(e) {
|
|
2172
|
+
return qa(ii, e);
|
|
2179
2173
|
}
|
|
2180
|
-
const
|
|
2174
|
+
const ui = /* @__PURE__ */ c("ZodISODuration", (e, t) => {
|
|
2175
|
+
qs.init(e, t), Z.init(e, t);
|
|
2176
|
+
});
|
|
2177
|
+
function li(e) {
|
|
2178
|
+
return Ua(ui, e);
|
|
2179
|
+
}
|
|
2180
|
+
const di = (e, t) => {
|
|
2181
2181
|
ir.init(e, t), e.name = "ZodError", Object.defineProperties(e, {
|
|
2182
2182
|
format: {
|
|
2183
|
-
value: (r) =>
|
|
2183
|
+
value: (r) => Fo(e, r)
|
|
2184
2184
|
// enumerable: false,
|
|
2185
2185
|
},
|
|
2186
2186
|
flatten: {
|
|
2187
|
-
value: (r) =>
|
|
2187
|
+
value: (r) => Mo(e, r)
|
|
2188
2188
|
// enumerable: false,
|
|
2189
2189
|
},
|
|
2190
2190
|
addIssue: {
|
|
@@ -2202,9 +2202,9 @@ const li = (e, t) => {
|
|
|
2202
2202
|
// enumerable: false,
|
|
2203
2203
|
}
|
|
2204
2204
|
});
|
|
2205
|
-
}, we = c("ZodError",
|
|
2205
|
+
}, we = c("ZodError", di, {
|
|
2206
2206
|
Parent: Error
|
|
2207
|
-
}),
|
|
2207
|
+
}), fi = /* @__PURE__ */ qo(we), hi = /* @__PURE__ */ Uo(we), pi = /* @__PURE__ */ ur(we), mi = /* @__PURE__ */ lr(we), O = /* @__PURE__ */ c("ZodType", (e, t) => (C.init(e, t), e.def = t, Object.defineProperty(e, "_def", { value: t }), e.check = (...r) => e.clone(
|
|
2208
2208
|
{
|
|
2209
2209
|
...t,
|
|
2210
2210
|
checks: [
|
|
@@ -2213,7 +2213,7 @@ const li = (e, t) => {
|
|
|
2213
2213
|
]
|
|
2214
2214
|
}
|
|
2215
2215
|
// { parent: true }
|
|
2216
|
-
), e.clone = (r, n) => J(e, r, n), e.brand = () => e, e.register = (r, n) => (r.add(e, n), e), e.parse = (r, n) =>
|
|
2216
|
+
), e.clone = (r, n) => J(e, r, n), e.brand = () => e, e.register = (r, n) => (r.add(e, n), e), e.parse = (r, n) => fi(e, r, n, { callee: e.parse }), e.safeParse = (r, n) => pi(e, r, n), e.parseAsync = async (r, n) => hi(e, r, n, { callee: e.parseAsync }), e.safeParseAsync = async (r, n) => mi(e, r, n), e.spa = e.safeParseAsync, e.refine = (r, n) => e.check(ac(r, n)), e.superRefine = (r) => e.check(ic(r)), e.overwrite = (r) => e.check(ie(r)), e.optional = () => kt(e), e.nullable = () => $t(e), e.nullish = () => kt($t(e)), e.nonoptional = (r) => Ji(e, r), e.array = () => Di(e), e.or = (r) => Ui([e, r]), e.and = (r) => Qi(e, r), e.transform = (r) => zt(e, Hi(r)), e.default = (r) => Vi(e, r), e.prefault = (r) => Gi(e, r), e.catch = (r) => ec(e, r), e.pipe = (r) => zt(e, r), e.readonly = () => nc(e), e.describe = (r) => {
|
|
2217
2217
|
const n = e.clone();
|
|
2218
2218
|
return fe.add(n, { description: r }), n;
|
|
2219
2219
|
}, Object.defineProperty(e, "description", {
|
|
@@ -2229,75 +2229,75 @@ const li = (e, t) => {
|
|
|
2229
2229
|
}, e.isOptional = () => e.safeParse(void 0).success, e.isNullable = () => e.safeParse(null).success, e)), vr = /* @__PURE__ */ c("_ZodString", (e, t) => {
|
|
2230
2230
|
He.init(e, t), O.init(e, t);
|
|
2231
2231
|
const r = e._zod.bag;
|
|
2232
|
-
e.format = r.format ?? null, e.minLength = r.minimum ?? null, e.maxLength = r.maximum ?? null, e.regex = (...n) => e.check(
|
|
2233
|
-
}),
|
|
2234
|
-
He.init(e, t), vr.init(e, t), e.email = (r) => e.check(
|
|
2232
|
+
e.format = r.format ?? null, e.minLength = r.minimum ?? null, e.maxLength = r.maximum ?? null, e.regex = (...n) => e.check(Ba(...n)), e.includes = (...n) => e.check(Wa(...n)), e.startsWith = (...n) => e.check(Va(...n)), e.endsWith = (...n) => e.check(Ya(...n)), e.min = (...n) => e.check(ve(...n)), e.max = (...n) => e.check(mr(...n)), e.length = (...n) => e.check(gr(...n)), e.nonempty = (...n) => e.check(ve(1, ...n)), e.lowercase = (n) => e.check(Ha(n)), e.uppercase = (n) => e.check(Ka(n)), e.trim = () => e.check(Ja()), e.normalize = (...n) => e.check(Ga(...n)), e.toLowerCase = () => e.check(Xa()), e.toUpperCase = () => e.check(ei());
|
|
2233
|
+
}), gi = /* @__PURE__ */ c("ZodString", (e, t) => {
|
|
2234
|
+
He.init(e, t), vr.init(e, t), e.email = (r) => e.check(ya(vi, r)), e.url = (r) => e.check(ja(yi, r)), e.jwt = (r) => e.check(Da(Oi, r)), e.emoji = (r) => e.check(ka(xi, r)), e.guid = (r) => e.check(_t(wt, r)), e.uuid = (r) => e.check(xa(he, r)), e.uuidv4 = (r) => e.check(_a(he, r)), e.uuidv6 = (r) => e.check(ba(he, r)), e.uuidv7 = (r) => e.check(wa(he, r)), e.nanoid = (r) => e.check($a(_i, r)), e.guid = (r) => e.check(_t(wt, r)), e.cuid = (r) => e.check(za(bi, r)), e.cuid2 = (r) => e.check(Pa(wi, r)), e.ulid = (r) => e.check(Ea(ji, r)), e.base64 = (r) => e.check(Aa(Zi, r)), e.base64url = (r) => e.check(Ia(Ti, r)), e.xid = (r) => e.check(Sa(ki, r)), e.ksuid = (r) => e.check(Za($i, r)), e.ipv4 = (r) => e.check(Ta(zi, r)), e.ipv6 = (r) => e.check(Ca(Pi, r)), e.cidrv4 = (r) => e.check(Oa(Ei, r)), e.cidrv6 = (r) => e.check(Na(Si, r)), e.e164 = (r) => e.check(Ra(Ci, r)), e.datetime = (r) => e.check(oi(r)), e.date = (r) => e.check(ai(r)), e.time = (r) => e.check(ci(r)), e.duration = (r) => e.check(li(r));
|
|
2235
2235
|
});
|
|
2236
2236
|
function bt(e) {
|
|
2237
|
-
return
|
|
2237
|
+
return va(gi, e);
|
|
2238
2238
|
}
|
|
2239
2239
|
const Z = /* @__PURE__ */ c("ZodStringFormat", (e, t) => {
|
|
2240
2240
|
E.init(e, t), vr.init(e, t);
|
|
2241
|
-
}),
|
|
2242
|
-
|
|
2241
|
+
}), vi = /* @__PURE__ */ c("ZodEmail", (e, t) => {
|
|
2242
|
+
Ss.init(e, t), Z.init(e, t);
|
|
2243
2243
|
}), wt = /* @__PURE__ */ c("ZodGUID", (e, t) => {
|
|
2244
|
-
zs.init(e, t), Z.init(e, t);
|
|
2245
|
-
}), he = /* @__PURE__ */ c("ZodUUID", (e, t) => {
|
|
2246
2244
|
Ps.init(e, t), Z.init(e, t);
|
|
2247
|
-
}),
|
|
2248
|
-
|
|
2249
|
-
}), yi = /* @__PURE__ */ c("
|
|
2245
|
+
}), he = /* @__PURE__ */ c("ZodUUID", (e, t) => {
|
|
2246
|
+
Es.init(e, t), Z.init(e, t);
|
|
2247
|
+
}), yi = /* @__PURE__ */ c("ZodURL", (e, t) => {
|
|
2250
2248
|
Zs.init(e, t), Z.init(e, t);
|
|
2251
|
-
}), xi = /* @__PURE__ */ c("
|
|
2252
|
-
Cs.init(e, t), Z.init(e, t);
|
|
2253
|
-
}), _i = /* @__PURE__ */ c("ZodCUID", (e, t) => {
|
|
2249
|
+
}), xi = /* @__PURE__ */ c("ZodEmoji", (e, t) => {
|
|
2254
2250
|
Ts.init(e, t), Z.init(e, t);
|
|
2255
|
-
}),
|
|
2251
|
+
}), _i = /* @__PURE__ */ c("ZodNanoID", (e, t) => {
|
|
2252
|
+
Cs.init(e, t), Z.init(e, t);
|
|
2253
|
+
}), bi = /* @__PURE__ */ c("ZodCUID", (e, t) => {
|
|
2256
2254
|
Os.init(e, t), Z.init(e, t);
|
|
2257
|
-
}), wi = /* @__PURE__ */ c("
|
|
2255
|
+
}), wi = /* @__PURE__ */ c("ZodCUID2", (e, t) => {
|
|
2258
2256
|
Ns.init(e, t), Z.init(e, t);
|
|
2259
|
-
}), ji = /* @__PURE__ */ c("
|
|
2257
|
+
}), ji = /* @__PURE__ */ c("ZodULID", (e, t) => {
|
|
2260
2258
|
As.init(e, t), Z.init(e, t);
|
|
2261
|
-
}), ki = /* @__PURE__ */ c("
|
|
2259
|
+
}), ki = /* @__PURE__ */ c("ZodXID", (e, t) => {
|
|
2262
2260
|
Is.init(e, t), Z.init(e, t);
|
|
2263
|
-
}), $i = /* @__PURE__ */ c("
|
|
2264
|
-
|
|
2265
|
-
}), zi = /* @__PURE__ */ c("
|
|
2261
|
+
}), $i = /* @__PURE__ */ c("ZodKSUID", (e, t) => {
|
|
2262
|
+
Rs.init(e, t), Z.init(e, t);
|
|
2263
|
+
}), zi = /* @__PURE__ */ c("ZodIPv4", (e, t) => {
|
|
2266
2264
|
Us.init(e, t), Z.init(e, t);
|
|
2267
|
-
}), Pi = /* @__PURE__ */ c("
|
|
2265
|
+
}), Pi = /* @__PURE__ */ c("ZodIPv6", (e, t) => {
|
|
2268
2266
|
Ls.init(e, t), Z.init(e, t);
|
|
2269
|
-
}), Ei = /* @__PURE__ */ c("
|
|
2267
|
+
}), Ei = /* @__PURE__ */ c("ZodCIDRv4", (e, t) => {
|
|
2270
2268
|
Qs.init(e, t), Z.init(e, t);
|
|
2271
|
-
}), Si = /* @__PURE__ */ c("
|
|
2269
|
+
}), Si = /* @__PURE__ */ c("ZodCIDRv6", (e, t) => {
|
|
2272
2270
|
Bs.init(e, t), Z.init(e, t);
|
|
2273
|
-
}), Zi = /* @__PURE__ */ c("
|
|
2274
|
-
|
|
2275
|
-
}),
|
|
2271
|
+
}), Zi = /* @__PURE__ */ c("ZodBase64", (e, t) => {
|
|
2272
|
+
Hs.init(e, t), Z.init(e, t);
|
|
2273
|
+
}), Ti = /* @__PURE__ */ c("ZodBase64URL", (e, t) => {
|
|
2276
2274
|
Ws.init(e, t), Z.init(e, t);
|
|
2277
|
-
}),
|
|
2278
|
-
|
|
2279
|
-
}), Oi = /* @__PURE__ */ c("
|
|
2280
|
-
Gs.init(e, t),
|
|
2275
|
+
}), Ci = /* @__PURE__ */ c("ZodE164", (e, t) => {
|
|
2276
|
+
Vs.init(e, t), Z.init(e, t);
|
|
2277
|
+
}), Oi = /* @__PURE__ */ c("ZodJWT", (e, t) => {
|
|
2278
|
+
Gs.init(e, t), Z.init(e, t);
|
|
2279
|
+
}), Ni = /* @__PURE__ */ c("ZodUnknown", (e, t) => {
|
|
2280
|
+
Js.init(e, t), O.init(e, t);
|
|
2281
2281
|
});
|
|
2282
2282
|
function jt() {
|
|
2283
|
-
return
|
|
2283
|
+
return La(Ni);
|
|
2284
2284
|
}
|
|
2285
|
-
const
|
|
2286
|
-
|
|
2285
|
+
const Ai = /* @__PURE__ */ c("ZodNever", (e, t) => {
|
|
2286
|
+
Xs.init(e, t), O.init(e, t);
|
|
2287
2287
|
});
|
|
2288
|
-
function
|
|
2289
|
-
return
|
|
2288
|
+
function Ii(e) {
|
|
2289
|
+
return Qa(Ai, e);
|
|
2290
2290
|
}
|
|
2291
|
-
const
|
|
2292
|
-
|
|
2291
|
+
const Ri = /* @__PURE__ */ c("ZodArray", (e, t) => {
|
|
2292
|
+
ea.init(e, t), O.init(e, t), e.element = t.element, e.min = (r, n) => e.check(ve(r, n)), e.nonempty = (r) => e.check(ve(1, r)), e.max = (r, n) => e.check(mr(r, n)), e.length = (r, n) => e.check(gr(r, n)), e.unwrap = () => e.element;
|
|
2293
2293
|
});
|
|
2294
|
-
function
|
|
2295
|
-
return
|
|
2294
|
+
function Di(e, t) {
|
|
2295
|
+
return ti(Ri, e, t);
|
|
2296
2296
|
}
|
|
2297
|
-
const
|
|
2298
|
-
|
|
2297
|
+
const Mi = /* @__PURE__ */ c("ZodObject", (e, t) => {
|
|
2298
|
+
ta.init(e, t), O.init(e, t), S(e, "shape", () => t.shape), e.keyof = () => yr(Object.keys(e._zod.def.shape)), e.catchall = (r) => e.clone({ ...e._zod.def, catchall: r }), e.passthrough = () => e.clone({ ...e._zod.def, catchall: jt() }), e.loose = () => e.clone({ ...e._zod.def, catchall: jt() }), e.strict = () => e.clone({ ...e._zod.def, catchall: Ii() }), e.strip = () => e.clone({ ...e._zod.def, catchall: void 0 }), e.extend = (r) => Ao(e, r), e.merge = (r) => Io(e, r), e.pick = (r) => Oo(e, r), e.omit = (r) => No(e, r), e.partial = (...r) => Ro(xr, e, r[0]), e.required = (...r) => Do(_r, e, r[0]);
|
|
2299
2299
|
});
|
|
2300
|
-
function
|
|
2300
|
+
function Fi(e, t) {
|
|
2301
2301
|
const r = {
|
|
2302
2302
|
type: "object",
|
|
2303
2303
|
get shape() {
|
|
@@ -2305,30 +2305,30 @@ function Mi(e, t) {
|
|
|
2305
2305
|
},
|
|
2306
2306
|
..._(t)
|
|
2307
2307
|
};
|
|
2308
|
-
return new
|
|
2308
|
+
return new Mi(r);
|
|
2309
2309
|
}
|
|
2310
|
-
const
|
|
2311
|
-
|
|
2310
|
+
const qi = /* @__PURE__ */ c("ZodUnion", (e, t) => {
|
|
2311
|
+
ra.init(e, t), O.init(e, t), e.options = t.options;
|
|
2312
2312
|
});
|
|
2313
|
-
function
|
|
2314
|
-
return new
|
|
2313
|
+
function Ui(e, t) {
|
|
2314
|
+
return new qi({
|
|
2315
2315
|
type: "union",
|
|
2316
2316
|
options: e,
|
|
2317
2317
|
..._(t)
|
|
2318
2318
|
});
|
|
2319
2319
|
}
|
|
2320
|
-
const
|
|
2321
|
-
|
|
2320
|
+
const Li = /* @__PURE__ */ c("ZodIntersection", (e, t) => {
|
|
2321
|
+
na.init(e, t), O.init(e, t);
|
|
2322
2322
|
});
|
|
2323
|
-
function
|
|
2324
|
-
return new
|
|
2323
|
+
function Qi(e, t) {
|
|
2324
|
+
return new Li({
|
|
2325
2325
|
type: "intersection",
|
|
2326
2326
|
left: e,
|
|
2327
2327
|
right: t
|
|
2328
2328
|
});
|
|
2329
2329
|
}
|
|
2330
2330
|
const Oe = /* @__PURE__ */ c("ZodEnum", (e, t) => {
|
|
2331
|
-
|
|
2331
|
+
oa.init(e, t), O.init(e, t), e.enum = t.entries, e.options = Object.values(t.entries);
|
|
2332
2332
|
const r = new Set(Object.keys(t.entries));
|
|
2333
2333
|
e.extract = (n, o) => {
|
|
2334
2334
|
const a = {};
|
|
@@ -2366,8 +2366,8 @@ function yr(e, t) {
|
|
|
2366
2366
|
..._(t)
|
|
2367
2367
|
});
|
|
2368
2368
|
}
|
|
2369
|
-
const
|
|
2370
|
-
|
|
2369
|
+
const Bi = /* @__PURE__ */ c("ZodTransform", (e, t) => {
|
|
2370
|
+
sa.init(e, t), O.init(e, t), e._zod.parse = (r, n) => {
|
|
2371
2371
|
r.addIssue = (a) => {
|
|
2372
2372
|
if (typeof a == "string")
|
|
2373
2373
|
r.issues.push(ae(a, r.value, t));
|
|
@@ -2380,14 +2380,14 @@ const Qi = /* @__PURE__ */ c("ZodTransform", (e, t) => {
|
|
|
2380
2380
|
return o instanceof Promise ? o.then((a) => (r.value = a, r)) : (r.value = o, r);
|
|
2381
2381
|
};
|
|
2382
2382
|
});
|
|
2383
|
-
function
|
|
2384
|
-
return new
|
|
2383
|
+
function Hi(e) {
|
|
2384
|
+
return new Bi({
|
|
2385
2385
|
type: "transform",
|
|
2386
2386
|
transform: e
|
|
2387
2387
|
});
|
|
2388
2388
|
}
|
|
2389
2389
|
const xr = /* @__PURE__ */ c("ZodOptional", (e, t) => {
|
|
2390
|
-
|
|
2390
|
+
aa.init(e, t), O.init(e, t), e.unwrap = () => e._zod.def.innerType;
|
|
2391
2391
|
});
|
|
2392
2392
|
function kt(e) {
|
|
2393
2393
|
return new xr({
|
|
@@ -2395,20 +2395,20 @@ function kt(e) {
|
|
|
2395
2395
|
innerType: e
|
|
2396
2396
|
});
|
|
2397
2397
|
}
|
|
2398
|
-
const
|
|
2399
|
-
|
|
2398
|
+
const Ki = /* @__PURE__ */ c("ZodNullable", (e, t) => {
|
|
2399
|
+
ia.init(e, t), O.init(e, t), e.unwrap = () => e._zod.def.innerType;
|
|
2400
2400
|
});
|
|
2401
2401
|
function $t(e) {
|
|
2402
|
-
return new
|
|
2402
|
+
return new Ki({
|
|
2403
2403
|
type: "nullable",
|
|
2404
2404
|
innerType: e
|
|
2405
2405
|
});
|
|
2406
2406
|
}
|
|
2407
|
-
const
|
|
2408
|
-
|
|
2407
|
+
const Wi = /* @__PURE__ */ c("ZodDefault", (e, t) => {
|
|
2408
|
+
ca.init(e, t), O.init(e, t), e.unwrap = () => e._zod.def.innerType, e.removeDefault = e.unwrap;
|
|
2409
2409
|
});
|
|
2410
|
-
function
|
|
2411
|
-
return new
|
|
2410
|
+
function Vi(e, t) {
|
|
2411
|
+
return new Wi({
|
|
2412
2412
|
type: "default",
|
|
2413
2413
|
innerType: e,
|
|
2414
2414
|
get defaultValue() {
|
|
@@ -2416,11 +2416,11 @@ function Wi(e, t) {
|
|
|
2416
2416
|
}
|
|
2417
2417
|
});
|
|
2418
2418
|
}
|
|
2419
|
-
const
|
|
2420
|
-
|
|
2419
|
+
const Yi = /* @__PURE__ */ c("ZodPrefault", (e, t) => {
|
|
2420
|
+
ua.init(e, t), O.init(e, t), e.unwrap = () => e._zod.def.innerType;
|
|
2421
2421
|
});
|
|
2422
|
-
function
|
|
2423
|
-
return new
|
|
2422
|
+
function Gi(e, t) {
|
|
2423
|
+
return new Yi({
|
|
2424
2424
|
type: "prefault",
|
|
2425
2425
|
innerType: e,
|
|
2426
2426
|
get defaultValue() {
|
|
@@ -2429,60 +2429,60 @@ function Yi(e, t) {
|
|
|
2429
2429
|
});
|
|
2430
2430
|
}
|
|
2431
2431
|
const _r = /* @__PURE__ */ c("ZodNonOptional", (e, t) => {
|
|
2432
|
-
|
|
2432
|
+
la.init(e, t), O.init(e, t), e.unwrap = () => e._zod.def.innerType;
|
|
2433
2433
|
});
|
|
2434
|
-
function
|
|
2434
|
+
function Ji(e, t) {
|
|
2435
2435
|
return new _r({
|
|
2436
2436
|
type: "nonoptional",
|
|
2437
2437
|
innerType: e,
|
|
2438
2438
|
..._(t)
|
|
2439
2439
|
});
|
|
2440
2440
|
}
|
|
2441
|
-
const
|
|
2442
|
-
|
|
2441
|
+
const Xi = /* @__PURE__ */ c("ZodCatch", (e, t) => {
|
|
2442
|
+
da.init(e, t), O.init(e, t), e.unwrap = () => e._zod.def.innerType, e.removeCatch = e.unwrap;
|
|
2443
2443
|
});
|
|
2444
|
-
function
|
|
2445
|
-
return new
|
|
2444
|
+
function ec(e, t) {
|
|
2445
|
+
return new Xi({
|
|
2446
2446
|
type: "catch",
|
|
2447
2447
|
innerType: e,
|
|
2448
2448
|
catchValue: typeof t == "function" ? t : () => t
|
|
2449
2449
|
});
|
|
2450
2450
|
}
|
|
2451
|
-
const
|
|
2452
|
-
|
|
2451
|
+
const tc = /* @__PURE__ */ c("ZodPipe", (e, t) => {
|
|
2452
|
+
fa.init(e, t), O.init(e, t), e.in = t.in, e.out = t.out;
|
|
2453
2453
|
});
|
|
2454
2454
|
function zt(e, t) {
|
|
2455
|
-
return new
|
|
2455
|
+
return new tc({
|
|
2456
2456
|
type: "pipe",
|
|
2457
2457
|
in: e,
|
|
2458
2458
|
out: t
|
|
2459
2459
|
// ...util.normalizeParams(params),
|
|
2460
2460
|
});
|
|
2461
2461
|
}
|
|
2462
|
-
const
|
|
2463
|
-
|
|
2462
|
+
const rc = /* @__PURE__ */ c("ZodReadonly", (e, t) => {
|
|
2463
|
+
ha.init(e, t), O.init(e, t);
|
|
2464
2464
|
});
|
|
2465
|
-
function
|
|
2466
|
-
return new
|
|
2465
|
+
function nc(e) {
|
|
2466
|
+
return new rc({
|
|
2467
2467
|
type: "readonly",
|
|
2468
2468
|
innerType: e
|
|
2469
2469
|
});
|
|
2470
2470
|
}
|
|
2471
|
-
const
|
|
2472
|
-
|
|
2471
|
+
const oc = /* @__PURE__ */ c("ZodCustom", (e, t) => {
|
|
2472
|
+
pa.init(e, t), O.init(e, t);
|
|
2473
2473
|
});
|
|
2474
|
-
function
|
|
2474
|
+
function sc(e, t) {
|
|
2475
2475
|
const r = new U({
|
|
2476
2476
|
check: "custom",
|
|
2477
2477
|
..._(t)
|
|
2478
2478
|
});
|
|
2479
2479
|
return r._zod.check = e, r;
|
|
2480
2480
|
}
|
|
2481
|
-
function
|
|
2482
|
-
return
|
|
2481
|
+
function ac(e, t = {}) {
|
|
2482
|
+
return ri(oc, e, t);
|
|
2483
2483
|
}
|
|
2484
|
-
function
|
|
2485
|
-
const r =
|
|
2484
|
+
function ic(e, t) {
|
|
2485
|
+
const r = sc((n) => (n.addIssue = (o) => {
|
|
2486
2486
|
if (typeof o == "string")
|
|
2487
2487
|
n.issues.push(ae(o, n.value, r._zod.def));
|
|
2488
2488
|
else {
|
|
@@ -2492,11 +2492,11 @@ function ac(e, t) {
|
|
|
2492
2492
|
}, e(n.value, n)), t);
|
|
2493
2493
|
return r;
|
|
2494
2494
|
}
|
|
2495
|
-
const
|
|
2495
|
+
const cc = Fi({
|
|
2496
2496
|
buildId: bt(),
|
|
2497
2497
|
timestamp: bt(),
|
|
2498
2498
|
status: yr(["in-progress", "success", "failed"])
|
|
2499
|
-
}),
|
|
2499
|
+
}), uc = ({
|
|
2500
2500
|
buildId: e,
|
|
2501
2501
|
endpoint: t = "/__zuplo/docs"
|
|
2502
2502
|
}) => {
|
|
@@ -2508,17 +2508,17 @@ const ic = Mi({
|
|
|
2508
2508
|
queryFn: () => fetch(t, { signal: AbortSignal.timeout(2e3) }).then((o) => {
|
|
2509
2509
|
if (!o.ok) throw new Error("Failed to fetch build status");
|
|
2510
2510
|
return o.json();
|
|
2511
|
-
}).then((o) =>
|
|
2511
|
+
}).then((o) => cc.parse(o))
|
|
2512
2512
|
});
|
|
2513
2513
|
if (r.isError || !r.data || r.data.buildId === e)
|
|
2514
2514
|
return null;
|
|
2515
2515
|
const n = r.data.status === "success";
|
|
2516
2516
|
return /* @__PURE__ */ s.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: [
|
|
2517
2517
|
n ? /* @__PURE__ */ s.jsxs("div", { className: "flex flex-row items-center gap-2", children: [
|
|
2518
|
-
/* @__PURE__ */ s.jsx(
|
|
2518
|
+
/* @__PURE__ */ s.jsx(qn, { size: 16 }),
|
|
2519
2519
|
/* @__PURE__ */ s.jsx("span", { className: "text-sm", children: "New version available" })
|
|
2520
2520
|
] }) : /* @__PURE__ */ s.jsxs("div", { className: "flex flex-row items-center gap-2", children: [
|
|
2521
|
-
/* @__PURE__ */ s.jsx(
|
|
2521
|
+
/* @__PURE__ */ s.jsx(Un, { size: 16, className: "animate-spin" }),
|
|
2522
2522
|
/* @__PURE__ */ s.jsx("span", { className: "text-sm", children: "Building new version..." })
|
|
2523
2523
|
] }),
|
|
2524
2524
|
/* @__PURE__ */ s.jsx("span", { className: "text-xs", children: n ? "To see the new version, reload the page now." : "A new version of the developer portal will be available soon." }),
|
|
@@ -2535,13 +2535,13 @@ const ic = Mi({
|
|
|
2535
2535
|
}
|
|
2536
2536
|
)
|
|
2537
2537
|
] });
|
|
2538
|
-
},
|
|
2538
|
+
}, lc = () => {
|
|
2539
2539
|
const e = xe(), t = K(e.pathname);
|
|
2540
2540
|
F(() => {
|
|
2541
2541
|
const r = t.current !== e.pathname, n = e.hash !== "";
|
|
2542
2542
|
r && !n && window.scrollTo(0, 0), t.current = e.pathname;
|
|
2543
2543
|
}, [e.pathname, e.hash]);
|
|
2544
|
-
},
|
|
2544
|
+
}, dc = ({
|
|
2545
2545
|
icon: e
|
|
2546
2546
|
}) => typeof e == "string" ? /* @__PURE__ */ s.jsx(
|
|
2547
2547
|
"img",
|
|
@@ -2550,8 +2550,8 @@ const ic = Mi({
|
|
|
2550
2550
|
className: "size-5",
|
|
2551
2551
|
alt: e
|
|
2552
2552
|
}
|
|
2553
|
-
) : e,
|
|
2554
|
-
const { site: e } =
|
|
2553
|
+
) : e, fc = (e) => /^https?:/.test(e), hc = () => {
|
|
2554
|
+
const { site: e } = tu(), t = e?.footer;
|
|
2555
2555
|
return t ? /* @__PURE__ */ s.jsx("footer", { className: "border-t bg-background", children: /* @__PURE__ */ s.jsxs("div", { className: "mx-auto max-w-screen-2xl px-4 lg:px-8 py-8 pt-20", children: [
|
|
2556
2556
|
/* @__PURE__ */ s.jsxs(
|
|
2557
2557
|
"div",
|
|
@@ -2580,7 +2580,7 @@ const ic = Mi({
|
|
|
2580
2580
|
/* @__PURE__ */ s.jsx("span", { className: "text-sm font-semibold", children: r.title }),
|
|
2581
2581
|
/* @__PURE__ */ s.jsx("ul", { className: "mt-4 space-y-2", children: r.links.map((n) => {
|
|
2582
2582
|
const o = "flex flex-row gap-1 items-center text-sm text-muted-foreground hover:text-accent-foreground";
|
|
2583
|
-
return /* @__PURE__ */ s.jsx("li", { children:
|
|
2583
|
+
return /* @__PURE__ */ s.jsx("li", { children: fc(n.href) ? /* @__PURE__ */ s.jsxs(
|
|
2584
2584
|
"a",
|
|
2585
2585
|
{
|
|
2586
2586
|
href: n.href,
|
|
@@ -2589,7 +2589,7 @@ const ic = Mi({
|
|
|
2589
2589
|
className: o,
|
|
2590
2590
|
children: [
|
|
2591
2591
|
/* @__PURE__ */ s.jsx("span", { children: n.label }),
|
|
2592
|
-
/* @__PURE__ */ s.jsx(
|
|
2592
|
+
/* @__PURE__ */ s.jsx(Ln, { size: 12 })
|
|
2593
2593
|
]
|
|
2594
2594
|
}
|
|
2595
2595
|
) : /* @__PURE__ */ s.jsx(kn, { to: n.href, className: o, children: /* @__PURE__ */ s.jsx("span", { children: n.label }) }) }, n.href + n.label);
|
|
@@ -2641,7 +2641,7 @@ const ic = Mi({
|
|
|
2641
2641
|
rel: "noopener noreferrer",
|
|
2642
2642
|
className: "w-auto gap-2 flex text-muted-foreground hover:text-accent-foreground",
|
|
2643
2643
|
children: [
|
|
2644
|
-
/* @__PURE__ */ s.jsx(
|
|
2644
|
+
/* @__PURE__ */ s.jsx(dc, { icon: r.icon }),
|
|
2645
2645
|
r.label
|
|
2646
2646
|
]
|
|
2647
2647
|
},
|
|
@@ -2670,7 +2670,7 @@ const Pt = {
|
|
|
2670
2670
|
tip: "bg-green-600",
|
|
2671
2671
|
caution: "bg-orange-500",
|
|
2672
2672
|
danger: "bg-rose-500"
|
|
2673
|
-
},
|
|
2673
|
+
}, pc = () => {
|
|
2674
2674
|
const { site: e } = M(), [t, r] = G(!0);
|
|
2675
2675
|
if (!e?.banner || !t)
|
|
2676
2676
|
return /* @__PURE__ */ s.jsx("style", { children: ":root { --banner-height: 0px; }" });
|
|
@@ -2682,7 +2682,6 @@ const Pt = {
|
|
|
2682
2682
|
"relative text-primary-foreground text-sm font-medium px-4 py-2 flex gap-2 items-center lg:h-(--banner-height)",
|
|
2683
2683
|
n
|
|
2684
2684
|
),
|
|
2685
|
-
"data-pagefind-ignore": "all",
|
|
2686
2685
|
style: o,
|
|
2687
2686
|
children: [
|
|
2688
2687
|
/* @__PURE__ */ s.jsx("div", { className: "w-full", children: e.banner.message }),
|
|
@@ -2692,7 +2691,7 @@ const Pt = {
|
|
|
2692
2691
|
type: "button",
|
|
2693
2692
|
className: "md:absolute md:end-4 -m-1.5 p-1.5 hover:bg-accent-foreground/10 rounded-md",
|
|
2694
2693
|
onClick: () => r(!1),
|
|
2695
|
-
children: /* @__PURE__ */ s.jsx(
|
|
2694
|
+
children: /* @__PURE__ */ s.jsx(Qn, { size: 16 })
|
|
2696
2695
|
}
|
|
2697
2696
|
)
|
|
2698
2697
|
]
|
|
@@ -2743,7 +2742,7 @@ const wr = ({ className: e }) => /* @__PURE__ */ s.jsxs(
|
|
|
2743
2742
|
"Zudoku"
|
|
2744
2743
|
] }),
|
|
2745
2744
|
/* @__PURE__ */ s.jsx("div", { className: "text-xs font-medium opacity-70 hover:text-foreground transition-colors cursor-pointer", children: /* @__PURE__ */ s.jsx(
|
|
2746
|
-
|
|
2745
|
+
Bn,
|
|
2747
2746
|
{
|
|
2748
2747
|
size: 12,
|
|
2749
2748
|
absoluteStrokeWidth: !0,
|
|
@@ -2773,10 +2772,10 @@ var pe = { exports: {} }, k = {};
|
|
|
2773
2772
|
* LICENSE file in the root directory of this source tree.
|
|
2774
2773
|
*/
|
|
2775
2774
|
var Et;
|
|
2776
|
-
function
|
|
2775
|
+
function mc() {
|
|
2777
2776
|
if (Et) return k;
|
|
2778
2777
|
Et = 1;
|
|
2779
|
-
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, i = e ? Symbol.for("react.provider") : 60109, u = e ? Symbol.for("react.context") : 60110, h = e ? Symbol.for("react.async_mode") : 60111, f = e ? Symbol.for("react.concurrent_mode") : 60111, y = e ? Symbol.for("react.forward_ref") : 60112, p = e ? Symbol.for("react.suspense") : 60113, m = e ? Symbol.for("react.suspense_list") : 60120, l = e ? Symbol.for("react.memo") : 60115, g = e ? Symbol.for("react.lazy") : 60116, w = e ? Symbol.for("react.block") : 60121, P = e ? Symbol.for("react.fundamental") : 60117,
|
|
2778
|
+
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, i = e ? Symbol.for("react.provider") : 60109, u = e ? Symbol.for("react.context") : 60110, h = e ? Symbol.for("react.async_mode") : 60111, f = e ? Symbol.for("react.concurrent_mode") : 60111, y = e ? Symbol.for("react.forward_ref") : 60112, p = e ? Symbol.for("react.suspense") : 60113, m = e ? Symbol.for("react.suspense_list") : 60120, l = e ? Symbol.for("react.memo") : 60115, g = e ? Symbol.for("react.lazy") : 60116, w = e ? Symbol.for("react.block") : 60121, P = e ? Symbol.for("react.fundamental") : 60117, T = e ? Symbol.for("react.responder") : 60118, j = e ? Symbol.for("react.scope") : 60119;
|
|
2780
2779
|
function x(d) {
|
|
2781
2780
|
if (typeof d == "object" && d !== null) {
|
|
2782
2781
|
var z = d.$$typeof;
|
|
@@ -2835,7 +2834,7 @@ function pc() {
|
|
|
2835
2834
|
}, k.isSuspense = function(d) {
|
|
2836
2835
|
return x(d) === p;
|
|
2837
2836
|
}, k.isValidElementType = function(d) {
|
|
2838
|
-
return typeof d == "string" || typeof d == "function" || d === n || d === f || d === a || d === o || d === p || d === m || typeof d == "object" && d !== null && (d.$$typeof === g || d.$$typeof === l || d.$$typeof === i || d.$$typeof === u || d.$$typeof === y || d.$$typeof === P || d.$$typeof ===
|
|
2837
|
+
return typeof d == "string" || typeof d == "function" || d === n || d === f || d === a || d === o || d === p || d === m || typeof d == "object" && d !== null && (d.$$typeof === g || d.$$typeof === l || d.$$typeof === i || d.$$typeof === u || d.$$typeof === y || d.$$typeof === P || d.$$typeof === T || d.$$typeof === j || d.$$typeof === w);
|
|
2839
2838
|
}, k.typeOf = x, k;
|
|
2840
2839
|
}
|
|
2841
2840
|
var $ = {};
|
|
@@ -2848,12 +2847,12 @@ var $ = {};
|
|
|
2848
2847
|
* LICENSE file in the root directory of this source tree.
|
|
2849
2848
|
*/
|
|
2850
2849
|
var St;
|
|
2851
|
-
function
|
|
2850
|
+
function gc() {
|
|
2852
2851
|
return St || (St = 1, process.env.NODE_ENV !== "production" && function() {
|
|
2853
|
-
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, i = e ? Symbol.for("react.provider") : 60109, u = e ? Symbol.for("react.context") : 60110, h = e ? Symbol.for("react.async_mode") : 60111, f = e ? Symbol.for("react.concurrent_mode") : 60111, y = e ? Symbol.for("react.forward_ref") : 60112, p = e ? Symbol.for("react.suspense") : 60113, m = e ? Symbol.for("react.suspense_list") : 60120, l = e ? Symbol.for("react.memo") : 60115, g = e ? Symbol.for("react.lazy") : 60116, w = e ? Symbol.for("react.block") : 60121, P = e ? Symbol.for("react.fundamental") : 60117,
|
|
2852
|
+
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, i = e ? Symbol.for("react.provider") : 60109, u = e ? Symbol.for("react.context") : 60110, h = e ? Symbol.for("react.async_mode") : 60111, f = e ? Symbol.for("react.concurrent_mode") : 60111, y = e ? Symbol.for("react.forward_ref") : 60112, p = e ? Symbol.for("react.suspense") : 60113, m = e ? Symbol.for("react.suspense_list") : 60120, l = e ? Symbol.for("react.memo") : 60115, g = e ? Symbol.for("react.lazy") : 60116, w = e ? Symbol.for("react.block") : 60121, P = e ? Symbol.for("react.fundamental") : 60117, T = e ? Symbol.for("react.responder") : 60118, j = e ? Symbol.for("react.scope") : 60119;
|
|
2854
2853
|
function x(v) {
|
|
2855
2854
|
return typeof v == "string" || typeof v == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
2856
|
-
v === n || v === f || v === a || v === o || v === p || v === m || typeof v == "object" && v !== null && (v.$$typeof === g || v.$$typeof === l || v.$$typeof === i || v.$$typeof === u || v.$$typeof === y || v.$$typeof === P || v.$$typeof ===
|
|
2855
|
+
v === n || v === f || v === a || v === o || v === p || v === m || typeof v == "object" && v !== null && (v.$$typeof === g || v.$$typeof === l || v.$$typeof === i || v.$$typeof === u || v.$$typeof === y || v.$$typeof === P || v.$$typeof === T || v.$$typeof === j || v.$$typeof === w);
|
|
2857
2856
|
}
|
|
2858
2857
|
function b(v) {
|
|
2859
2858
|
if (typeof v == "object" && v !== null) {
|
|
@@ -2931,14 +2930,14 @@ function mc() {
|
|
|
2931
2930
|
}()), $;
|
|
2932
2931
|
}
|
|
2933
2932
|
var Zt;
|
|
2934
|
-
function gc() {
|
|
2935
|
-
return Zt || (Zt = 1, process.env.NODE_ENV === "production" ? pe.exports = pc() : pe.exports = mc()), pe.exports;
|
|
2936
|
-
}
|
|
2937
|
-
var Pe, Ct;
|
|
2938
2933
|
function vc() {
|
|
2939
|
-
|
|
2940
|
-
|
|
2941
|
-
|
|
2934
|
+
return Zt || (Zt = 1, process.env.NODE_ENV === "production" ? pe.exports = mc() : pe.exports = gc()), pe.exports;
|
|
2935
|
+
}
|
|
2936
|
+
var Pe, Tt;
|
|
2937
|
+
function yc() {
|
|
2938
|
+
if (Tt) return Pe;
|
|
2939
|
+
Tt = 1;
|
|
2940
|
+
var e = vc(), t = {
|
|
2942
2941
|
childContextTypes: !0,
|
|
2943
2942
|
contextType: !0,
|
|
2944
2943
|
contextTypes: !0,
|
|
@@ -2980,8 +2979,8 @@ function vc() {
|
|
|
2980
2979
|
function l(g, w, P) {
|
|
2981
2980
|
if (typeof w != "string") {
|
|
2982
2981
|
if (m) {
|
|
2983
|
-
var
|
|
2984
|
-
|
|
2982
|
+
var T = p(w);
|
|
2983
|
+
T && T !== m && l(g, T, P);
|
|
2985
2984
|
}
|
|
2986
2985
|
var j = h(w);
|
|
2987
2986
|
f && (j = j.concat(f(w)));
|
|
@@ -3000,10 +2999,10 @@ function vc() {
|
|
|
3000
2999
|
}
|
|
3001
3000
|
return Pe = l, Pe;
|
|
3002
3001
|
}
|
|
3003
|
-
|
|
3002
|
+
yc();
|
|
3004
3003
|
var jr = function(t, r, n) {
|
|
3005
3004
|
return t = t <= n ? t : n, t = t >= r ? t : r, t;
|
|
3006
|
-
},
|
|
3005
|
+
}, xc = function() {
|
|
3007
3006
|
var t = !1, r = [], n = function() {
|
|
3008
3007
|
t = !0;
|
|
3009
3008
|
var u = r.shift();
|
|
@@ -3019,7 +3018,7 @@ var jr = function(t, r, n) {
|
|
|
3019
3018
|
clear: o,
|
|
3020
3019
|
enqueue: a
|
|
3021
3020
|
};
|
|
3022
|
-
},
|
|
3021
|
+
}, _c = function() {
|
|
3023
3022
|
var t, r = function() {
|
|
3024
3023
|
t && window.cancelAnimationFrame(t);
|
|
3025
3024
|
}, n = function(a, i) {
|
|
@@ -3036,31 +3035,31 @@ var jr = function(t, r, n) {
|
|
|
3036
3035
|
cancel: r,
|
|
3037
3036
|
schedule: n
|
|
3038
3037
|
};
|
|
3039
|
-
},
|
|
3038
|
+
}, bc = function(t) {
|
|
3040
3039
|
var r = 0;
|
|
3041
3040
|
return t >= 0 && t < 0.2 ? r = 0.1 : t >= 0.2 && t < 0.5 ? r = 0.04 : t >= 0.5 && t < 0.8 ? r = 0.02 : t >= 0.8 && t < 0.99 && (r = 5e-3), jr(t + r, 0, 0.994);
|
|
3042
|
-
},
|
|
3041
|
+
}, Ct = function(t) {
|
|
3043
3042
|
F(t, []);
|
|
3044
|
-
},
|
|
3043
|
+
}, wc = function(t) {
|
|
3045
3044
|
return ++t % 1e6;
|
|
3046
|
-
},
|
|
3045
|
+
}, jc = function() {
|
|
3047
3046
|
var t = G(0), r = t[1];
|
|
3048
3047
|
return H(function() {
|
|
3049
|
-
return r(
|
|
3048
|
+
return r(wc);
|
|
3050
3049
|
}, []);
|
|
3051
|
-
},
|
|
3050
|
+
}, kc = function(t) {
|
|
3052
3051
|
t === void 0 && (t = {});
|
|
3053
|
-
var r =
|
|
3052
|
+
var r = jc(), n = K(ye({}, t)), o = H(function() {
|
|
3054
3053
|
return n.current;
|
|
3055
3054
|
}, []), a = H(function(i) {
|
|
3056
3055
|
i && (Object.assign(n.current, i), r());
|
|
3057
3056
|
}, []);
|
|
3058
3057
|
return [o, a];
|
|
3059
|
-
},
|
|
3058
|
+
}, $c = function() {
|
|
3060
3059
|
var t = K(!0);
|
|
3061
3060
|
return t.current ? (t.current = !1, !0) : t.current;
|
|
3062
3061
|
}, Ot = function(t, r) {
|
|
3063
|
-
var n =
|
|
3062
|
+
var n = $c();
|
|
3064
3063
|
F(function() {
|
|
3065
3064
|
if (!n)
|
|
3066
3065
|
return t();
|
|
@@ -3070,15 +3069,15 @@ var jr = function(t, r, n) {
|
|
|
3070
3069
|
isFinished: !0,
|
|
3071
3070
|
progress: 0,
|
|
3072
3071
|
sideEffect: kr
|
|
3073
|
-
},
|
|
3074
|
-
var r = t === void 0 ? {} : t, n = r.animationDuration, o = n === void 0 ? 200 : n, a = r.incrementDuration, i = a === void 0 ? 800 : a, u = r.isAnimating, h = u === void 0 ? !1 : u, f = r.minimum, y = f === void 0 ? 0.08 : f, p =
|
|
3075
|
-
|
|
3076
|
-
g.current =
|
|
3072
|
+
}, zc = function(t) {
|
|
3073
|
+
var r = t === void 0 ? {} : t, n = r.animationDuration, o = n === void 0 ? 200 : n, a = r.incrementDuration, i = a === void 0 ? 800 : a, u = r.isAnimating, h = u === void 0 ? !1 : u, f = r.minimum, y = f === void 0 ? 0.08 : f, p = kc(Nt), m = p[0], l = p[1], g = K(null), w = K(null);
|
|
3074
|
+
Ct(function() {
|
|
3075
|
+
g.current = xc(), w.current = _c();
|
|
3077
3076
|
});
|
|
3078
3077
|
var P = H(function() {
|
|
3079
3078
|
var z, I;
|
|
3080
3079
|
(z = w.current) == null || z.cancel(), (I = g.current) == null || I.clear();
|
|
3081
|
-
}, []),
|
|
3080
|
+
}, []), T = H(function(z) {
|
|
3082
3081
|
var I;
|
|
3083
3082
|
if (z = jr(z, y, 1), z === 1) {
|
|
3084
3083
|
var D, X;
|
|
@@ -3109,8 +3108,8 @@ var jr = function(t, r, n) {
|
|
|
3109
3108
|
});
|
|
3110
3109
|
});
|
|
3111
3110
|
}, [o, P, y, g, l, w]), j = H(function() {
|
|
3112
|
-
|
|
3113
|
-
}, [m,
|
|
3111
|
+
T(bc(m().progress));
|
|
3112
|
+
}, [m, T]), x = H(function() {
|
|
3114
3113
|
var z = function() {
|
|
3115
3114
|
var D;
|
|
3116
3115
|
j(), (D = g.current) == null || D.enqueue(function(X) {
|
|
@@ -3124,15 +3123,15 @@ var jr = function(t, r, n) {
|
|
|
3124
3123
|
}, [i, g, w, j]), b = K(kr), d = m().sideEffect;
|
|
3125
3124
|
return F(function() {
|
|
3126
3125
|
b.current = j;
|
|
3127
|
-
}),
|
|
3126
|
+
}), Ct(function() {
|
|
3128
3127
|
return h && x(), P;
|
|
3129
3128
|
}), Ot(function() {
|
|
3130
3129
|
m().sideEffect();
|
|
3131
3130
|
}, [m, d]), Ot(function() {
|
|
3132
3131
|
h ? l(ye({}, Nt, {
|
|
3133
3132
|
sideEffect: x
|
|
3134
|
-
})) :
|
|
3135
|
-
}, [h,
|
|
3133
|
+
})) : T(1);
|
|
3134
|
+
}, [h, T, l, x]), {
|
|
3136
3135
|
animationDuration: o,
|
|
3137
3136
|
isFinished: m().isFinished,
|
|
3138
3137
|
progress: m().progress
|
|
@@ -3144,7 +3143,7 @@ const $r = () => {
|
|
|
3144
3143
|
const i = setTimeout(() => n(t), 200);
|
|
3145
3144
|
return () => clearTimeout(i);
|
|
3146
3145
|
}, [t]);
|
|
3147
|
-
const { isFinished: o, progress: a } =
|
|
3146
|
+
const { isFinished: o, progress: a } = zc({ isAnimating: r });
|
|
3148
3147
|
return /* @__PURE__ */ s.jsx(
|
|
3149
3148
|
"div",
|
|
3150
3149
|
{
|
|
@@ -3156,7 +3155,7 @@ const $r = () => {
|
|
|
3156
3155
|
}
|
|
3157
3156
|
);
|
|
3158
3157
|
};
|
|
3159
|
-
function
|
|
3158
|
+
function Pc() {
|
|
3160
3159
|
const e = navigator.userAgent.toLowerCase();
|
|
3161
3160
|
if (e.includes("win")) return "Windows";
|
|
3162
3161
|
if (e.includes("mac")) return "macOS";
|
|
@@ -3174,7 +3173,7 @@ const zr = ({ className: e }) => {
|
|
|
3174
3173
|
window.removeEventListener("keydown", i);
|
|
3175
3174
|
};
|
|
3176
3175
|
}, [r, n]);
|
|
3177
|
-
const a = t.plugins.find(
|
|
3176
|
+
const a = t.plugins.find(Gn);
|
|
3178
3177
|
return a ? /* @__PURE__ */ s.jsxs("div", { className: e, children: [
|
|
3179
3178
|
/* @__PURE__ */ s.jsxs(
|
|
3180
3179
|
"button",
|
|
@@ -3184,10 +3183,10 @@ const zr = ({ className: e }) => {
|
|
|
3184
3183
|
className: "flex items-center border border-input hover:bg-accent hover:text-accent-foreground p-4 relative h-8 justify-start rounded-lg bg-background text-sm text-muted-foreground shadow-none w-full sm:w-72",
|
|
3185
3184
|
children: [
|
|
3186
3185
|
/* @__PURE__ */ s.jsxs("div", { className: "flex items-center gap-2 grow", children: [
|
|
3187
|
-
/* @__PURE__ */ s.jsx(
|
|
3186
|
+
/* @__PURE__ */ s.jsx(Hn, { size: 14 }),
|
|
3188
3187
|
"Search"
|
|
3189
3188
|
] }),
|
|
3190
|
-
/* @__PURE__ */ s.jsx(te, { children: /* @__PURE__ */ s.jsx(
|
|
3189
|
+
/* @__PURE__ */ s.jsx(te, { children: /* @__PURE__ */ s.jsx(Ec, {}) })
|
|
3191
3190
|
]
|
|
3192
3191
|
}
|
|
3193
3192
|
),
|
|
@@ -3196,8 +3195,8 @@ const zr = ({ className: e }) => {
|
|
|
3196
3195
|
onClose: o
|
|
3197
3196
|
}) })
|
|
3198
3197
|
] }) : null;
|
|
3199
|
-
},
|
|
3200
|
-
const e =
|
|
3198
|
+
}, Ec = () => {
|
|
3199
|
+
const e = Pc();
|
|
3201
3200
|
return /* @__PURE__ */ s.jsxs("kbd", { className: "absolute end-1.5 hidden h-5 select-none items-center gap-1 rounded-sm border bg-muted px-1.5 font-mono text-[11px] font-medium opacity-100 sm:flex", children: [
|
|
3202
3201
|
e === "macOS" ? "⌘" : "Ctrl",
|
|
3203
3202
|
"+K"
|
|
@@ -3220,7 +3219,7 @@ const zr = ({ className: e }) => {
|
|
|
3220
3219
|
e === "light" && "border-border bg-muted",
|
|
3221
3220
|
e === "dark" && "group-hover:[&>svg>path]:scale-110 group-hover:[&>svg>path]:-translate-x-[1px] group-hover:[&>svg>path]:-translate-y-[1px] group-hover:rotate-[15deg] "
|
|
3222
3221
|
),
|
|
3223
|
-
children: /* @__PURE__ */ s.jsx(
|
|
3222
|
+
children: /* @__PURE__ */ s.jsx(Kn, { size: 16 })
|
|
3224
3223
|
}
|
|
3225
3224
|
),
|
|
3226
3225
|
/* @__PURE__ */ s.jsx(
|
|
@@ -3231,13 +3230,13 @@ const zr = ({ className: e }) => {
|
|
|
3231
3230
|
e === "dark" && "border-border bg-muted [&>svg>path]:fill-white [&>svg>path]:stroke-transparent",
|
|
3232
3231
|
e === "light" && "group-hover:rotate-[-10deg] [&>svg>path]:stroke-currentColor"
|
|
3233
3232
|
),
|
|
3234
|
-
children: /* @__PURE__ */ s.jsx(
|
|
3233
|
+
children: /* @__PURE__ */ s.jsx(Wn, { size: 16 })
|
|
3235
3234
|
}
|
|
3236
3235
|
)
|
|
3237
3236
|
]
|
|
3238
3237
|
}
|
|
3239
3238
|
) });
|
|
3240
|
-
},
|
|
3239
|
+
}, Sc = () => {
|
|
3241
3240
|
const { navigation: e } = M(), { isAuthenticated: t } = oe(), r = e.filter(Qt(t));
|
|
3242
3241
|
return r.length === 0 ? /* @__PURE__ */ s.jsx("style", { children: ":root { --top-nav-height: 0px; }" }) : /* @__PURE__ */ s.jsx(Fe, { children: /* @__PURE__ */ s.jsxs("div", { className: "items-center justify-between px-8 h-(--top-nav-height) hidden lg:flex text-sm relative", children: [
|
|
3243
3242
|
/* @__PURE__ */ s.jsx("nav", { className: "text-sm", children: /* @__PURE__ */ s.jsx("ul", { className: "flex flex-row items-center gap-8", children: r.map((n) => /* @__PURE__ */ s.jsx("li", { children: /* @__PURE__ */ s.jsx(Sr, { ...n }) }, n.label + n.type)) }) }),
|
|
@@ -3267,7 +3266,7 @@ const zr = ({ className: e }) => {
|
|
|
3267
3266
|
viewTransition: !0,
|
|
3268
3267
|
className: ({ isActive: n, isPending: o }) => {
|
|
3269
3268
|
const a = n || e;
|
|
3270
|
-
return
|
|
3269
|
+
return go(
|
|
3271
3270
|
"flex items-center gap-2 lg:py-3.5 font-medium -mb-px transition duration-150 delay-75 relative",
|
|
3272
3271
|
a || o ? [
|
|
3273
3272
|
"text-foreground",
|
|
@@ -3292,17 +3291,17 @@ const zr = ({ className: e }) => {
|
|
|
3292
3291
|
e.label
|
|
3293
3292
|
] })
|
|
3294
3293
|
);
|
|
3295
|
-
},
|
|
3294
|
+
}, Zc = () => {
|
|
3296
3295
|
const { navigation: e, options: t, getProfileMenuItems: r } = M(), { isAuthenticated: n, profile: o, isAuthEnabled: a, login: i } = oe(), [u, h] = G(!1), f = r(), y = e.filter(Qt(n));
|
|
3297
3296
|
return /* @__PURE__ */ s.jsxs(
|
|
3298
|
-
|
|
3297
|
+
po,
|
|
3299
3298
|
{
|
|
3300
3299
|
direction: t.site?.dir === "rtl" ? "left" : "right",
|
|
3301
3300
|
open: u,
|
|
3302
3301
|
onOpenChange: (p) => h(p),
|
|
3303
3302
|
children: [
|
|
3304
3303
|
/* @__PURE__ */ s.jsxs("div", { className: "flex lg:hidden justify-self-end", children: [
|
|
3305
|
-
/* @__PURE__ */ s.jsx(
|
|
3304
|
+
/* @__PURE__ */ s.jsx(mo, { className: "lg:hidden", children: /* @__PURE__ */ s.jsx(Vn, { size: 22 }) }),
|
|
3306
3305
|
/* @__PURE__ */ s.jsx($r, {})
|
|
3307
3306
|
] }),
|
|
3308
3307
|
/* @__PURE__ */ s.jsx(
|
|
@@ -3320,7 +3319,7 @@ const zr = ({ className: e }) => {
|
|
|
3320
3319
|
te,
|
|
3321
3320
|
{
|
|
3322
3321
|
fallback: /* @__PURE__ */ s.jsx(Ne, { className: "rounded-sm h-5 w-24 mr-4" }),
|
|
3323
|
-
children: n ? Object.values(r()).length > 0 && /* @__PURE__ */ s.jsx(
|
|
3322
|
+
children: n ? Object.values(r()).length > 0 && /* @__PURE__ */ s.jsx(Rn, { children: /* @__PURE__ */ s.jsxs("li", { children: [
|
|
3324
3323
|
o?.name ? `${o.name}` : "My Account",
|
|
3325
3324
|
o?.email && /* @__PURE__ */ s.jsx("div", { className: "font-normal text-muted-foreground", children: o.email })
|
|
3326
3325
|
] }) }) : /* @__PURE__ */ s.jsx("li", { children: /* @__PURE__ */ s.jsx(
|
|
@@ -3358,90 +3357,97 @@ const zr = ({ className: e }) => {
|
|
|
3358
3357
|
]
|
|
3359
3358
|
}
|
|
3360
3359
|
);
|
|
3361
|
-
}, ge = ({ item: e }) => e.children ? /* @__PURE__ */ s.jsxs(
|
|
3362
|
-
/* @__PURE__ */ s.jsx(
|
|
3363
|
-
/* @__PURE__ */ s.jsx(
|
|
3360
|
+
}, ge = ({ item: e }) => e.children ? /* @__PURE__ */ s.jsxs(co, { children: [
|
|
3361
|
+
/* @__PURE__ */ s.jsx(uo, { children: e.label }),
|
|
3362
|
+
/* @__PURE__ */ s.jsx(lo, { children: /* @__PURE__ */ s.jsx(fo, { children: e.children.map((t, r) => (
|
|
3364
3363
|
// eslint-disable-next-line react/no-array-index-key
|
|
3365
3364
|
/* @__PURE__ */ s.jsx(ge, { item: t }, r)
|
|
3366
3365
|
)) }) })
|
|
3367
|
-
] }, e.label) : /* @__PURE__ */ s.jsx(De, { to: e.path ?? "", children: /* @__PURE__ */ s.jsxs(
|
|
3366
|
+
] }, e.label) : /* @__PURE__ */ s.jsx(De, { to: e.path ?? "", children: /* @__PURE__ */ s.jsxs(ho, { className: "flex gap-2", children: [
|
|
3368
3367
|
e.icon && /* @__PURE__ */ s.jsx(e.icon, { size: 16, strokeWidth: 1, absoluteStrokeWidth: !0 }),
|
|
3369
3368
|
e.label
|
|
3370
3369
|
] }, e.label) }), Zr = Yt(function() {
|
|
3371
3370
|
const t = oe(), { isAuthenticated: r, profile: n, isAuthEnabled: o } = oe(), a = M(), { site: i, plugins: u, options: h } = a, f = u.filter((l) => Jt(l)).flatMap((l) => l.getProfileMenuItems(a)).sort((l) => l.weight ?? 0), y = i?.logo ? /https?:\/\//.test(i.logo.src.light) ? i.logo.src.light : ee(h.basePath, i.logo.src.light) : void 0, p = i?.logo ? /https?:\/\//.test(i.logo.src.dark) ? i.logo.src.dark : ee(h.basePath, i.logo.src.dark) : void 0, m = "inset-shadow-[0_-1px_0_0_var(--border)]";
|
|
3372
|
-
return /* @__PURE__ */ s.jsxs(
|
|
3373
|
-
|
|
3374
|
-
|
|
3375
|
-
|
|
3376
|
-
|
|
3377
|
-
|
|
3378
|
-
|
|
3379
|
-
|
|
3380
|
-
|
|
3381
|
-
|
|
3382
|
-
|
|
3383
|
-
|
|
3384
|
-
|
|
3385
|
-
|
|
3386
|
-
|
|
3387
|
-
|
|
3388
|
-
|
|
3389
|
-
|
|
3390
|
-
|
|
3391
|
-
|
|
3392
|
-
|
|
3393
|
-
|
|
3394
|
-
|
|
3395
|
-
|
|
3396
|
-
|
|
3397
|
-
|
|
3398
|
-
|
|
3399
|
-
|
|
3400
|
-
|
|
3401
|
-
|
|
3402
|
-
|
|
3403
|
-
|
|
3404
|
-
|
|
3405
|
-
|
|
3406
|
-
|
|
3407
|
-
|
|
3408
|
-
|
|
3409
|
-
{
|
|
3410
|
-
|
|
3411
|
-
|
|
3412
|
-
|
|
3413
|
-
|
|
3414
|
-
|
|
3415
|
-
|
|
3416
|
-
|
|
3417
|
-
|
|
3418
|
-
|
|
3419
|
-
|
|
3420
|
-
|
|
3421
|
-
|
|
3422
|
-
|
|
3423
|
-
|
|
3424
|
-
|
|
3425
|
-
|
|
3426
|
-
|
|
3427
|
-
|
|
3428
|
-
|
|
3429
|
-
|
|
3430
|
-
|
|
3431
|
-
|
|
3432
|
-
|
|
3433
|
-
|
|
3371
|
+
return /* @__PURE__ */ s.jsxs(
|
|
3372
|
+
"header",
|
|
3373
|
+
{
|
|
3374
|
+
className: "sticky lg:top-0 z-10 bg-background/80 backdrop-blur w-full",
|
|
3375
|
+
"data-pagefind-ignore": "all",
|
|
3376
|
+
children: [
|
|
3377
|
+
/* @__PURE__ */ s.jsx(pc, {}),
|
|
3378
|
+
/* @__PURE__ */ s.jsxs("div", { className: N(m, "relative"), children: [
|
|
3379
|
+
/* @__PURE__ */ s.jsx($r, {}),
|
|
3380
|
+
/* @__PURE__ */ s.jsxs("div", { className: "max-w-screen-2xl mx-auto flex items-center justify-between h-(--top-header-height) px-4 lg:px-8 border-transparent", children: [
|
|
3381
|
+
/* @__PURE__ */ s.jsx("div", { className: "flex", children: /* @__PURE__ */ s.jsx(De, { to: "/", children: /* @__PURE__ */ s.jsxs("div", { className: "flex items-center gap-3.5", children: [
|
|
3382
|
+
i?.logo && /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
3383
|
+
/* @__PURE__ */ s.jsx(
|
|
3384
|
+
"img",
|
|
3385
|
+
{
|
|
3386
|
+
src: y,
|
|
3387
|
+
alt: i.logo.alt ?? i.title,
|
|
3388
|
+
style: { width: i.logo.width },
|
|
3389
|
+
className: "max-h-(--top-header-height) dark:hidden",
|
|
3390
|
+
loading: "lazy"
|
|
3391
|
+
}
|
|
3392
|
+
),
|
|
3393
|
+
/* @__PURE__ */ s.jsx(
|
|
3394
|
+
"img",
|
|
3395
|
+
{
|
|
3396
|
+
src: p,
|
|
3397
|
+
alt: i.logo.alt ?? i.title,
|
|
3398
|
+
style: { width: i.logo.width },
|
|
3399
|
+
className: "max-h-(--top-header-height) hidden dark:block",
|
|
3400
|
+
loading: "lazy"
|
|
3401
|
+
}
|
|
3402
|
+
)
|
|
3403
|
+
] }),
|
|
3404
|
+
/* @__PURE__ */ s.jsx("span", { className: "font-semibold text-2xl", children: i?.title })
|
|
3405
|
+
] }) }) }),
|
|
3406
|
+
/* @__PURE__ */ s.jsx("div", { className: "absolute inset-x-0 justify-center items-center hidden lg:flex w-full pointer-events-none", children: /* @__PURE__ */ s.jsx(zr, { className: "pointer-events-auto" }) }),
|
|
3407
|
+
/* @__PURE__ */ s.jsxs("div", { className: "flex items-center gap-8", children: [
|
|
3408
|
+
/* @__PURE__ */ s.jsx(Zc, {}),
|
|
3409
|
+
/* @__PURE__ */ s.jsxs("div", { className: "hidden lg:flex items-center justify-self-end text-sm gap-2", children: [
|
|
3410
|
+
/* @__PURE__ */ s.jsx(A.Target, { name: "head-navigation-start" }),
|
|
3411
|
+
o && /* @__PURE__ */ s.jsx(
|
|
3412
|
+
te,
|
|
3413
|
+
{
|
|
3414
|
+
fallback: /* @__PURE__ */ s.jsx(Ne, { className: "rounded-sm h-5 w-24 mr-4" }),
|
|
3415
|
+
children: r ? Object.values(f).length > 0 && /* @__PURE__ */ s.jsxs(oo, { modal: !1, children: [
|
|
3416
|
+
/* @__PURE__ */ s.jsx(so, { asChild: !0, children: /* @__PURE__ */ s.jsx(Se, { variant: "ghost", children: n?.name ?? "My Account" }) }),
|
|
3417
|
+
/* @__PURE__ */ s.jsxs(ao, { className: "w-56", children: [
|
|
3418
|
+
/* @__PURE__ */ s.jsxs(io, { children: [
|
|
3419
|
+
n?.name ? `${n.name}` : "My Account",
|
|
3420
|
+
n?.email && /* @__PURE__ */ s.jsx("div", { className: "font-normal text-muted-foreground", children: n.email })
|
|
3421
|
+
] }),
|
|
3422
|
+
f.filter((l) => l.category === "top").length > 0 && /* @__PURE__ */ s.jsx(ze, {}),
|
|
3423
|
+
f.filter((l) => l.category === "top").map((l) => /* @__PURE__ */ s.jsx(ge, { item: l }, l.label)),
|
|
3424
|
+
f.filter(
|
|
3425
|
+
(l) => !l.category || l.category === "middle"
|
|
3426
|
+
).length > 0 && /* @__PURE__ */ s.jsx(ze, {}),
|
|
3427
|
+
f.filter(
|
|
3428
|
+
(l) => !l.category || l.category === "middle"
|
|
3429
|
+
).map((l) => /* @__PURE__ */ s.jsx(ge, { item: l }, l.label)),
|
|
3430
|
+
f.filter((l) => l.category === "bottom").length > 0 && /* @__PURE__ */ s.jsx(ze, {}),
|
|
3431
|
+
f.filter((l) => l.category === "bottom").map((l) => /* @__PURE__ */ s.jsx(ge, { item: l }, l.label))
|
|
3432
|
+
] })
|
|
3433
|
+
] }) : /* @__PURE__ */ s.jsx(Se, { variant: "ghost", onClick: () => t.login(), children: "Login" })
|
|
3434
|
+
}
|
|
3435
|
+
),
|
|
3436
|
+
/* @__PURE__ */ s.jsx(A.Target, { name: "head-navigation-end" }),
|
|
3437
|
+
/* @__PURE__ */ s.jsx(Pr, {})
|
|
3438
|
+
] })
|
|
3439
|
+
] })
|
|
3434
3440
|
] })
|
|
3435
|
-
] })
|
|
3436
|
-
|
|
3437
|
-
|
|
3438
|
-
|
|
3439
|
-
|
|
3440
|
-
|
|
3441
|
-
|
|
3442
|
-
|
|
3443
|
-
|
|
3444
|
-
}),
|
|
3441
|
+
] }),
|
|
3442
|
+
/* @__PURE__ */ s.jsx("div", { className: N("hidden lg:block", m), children: /* @__PURE__ */ s.jsxs("div", { className: "max-w-screen-2xl mx-auto border-transparent relative", children: [
|
|
3443
|
+
/* @__PURE__ */ s.jsx(A.Target, { name: "top-navigation-before" }),
|
|
3444
|
+
/* @__PURE__ */ s.jsx(Sc, {}),
|
|
3445
|
+
/* @__PURE__ */ s.jsx(A.Target, { name: "top-navigation-after" })
|
|
3446
|
+
] }) })
|
|
3447
|
+
]
|
|
3448
|
+
}
|
|
3449
|
+
);
|
|
3450
|
+
}), Tr = ({
|
|
3445
3451
|
shouldScaleBackground: e = !0,
|
|
3446
3452
|
...t
|
|
3447
3453
|
}) => /* @__PURE__ */ s.jsx(
|
|
@@ -3451,8 +3457,8 @@ const zr = ({ className: e }) => {
|
|
|
3451
3457
|
...t
|
|
3452
3458
|
}
|
|
3453
3459
|
);
|
|
3454
|
-
|
|
3455
|
-
const
|
|
3460
|
+
Tr.displayName = "Drawer";
|
|
3461
|
+
const Tc = q.Trigger, Cc = q.Portal, Cr = Q.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ s.jsx(
|
|
3456
3462
|
q.Overlay,
|
|
3457
3463
|
{
|
|
3458
3464
|
ref: r,
|
|
@@ -3460,10 +3466,10 @@ const Zc = q.Trigger, Cc = q.Portal, Tr = Q.forwardRef(({ className: e, ...t },
|
|
|
3460
3466
|
...t
|
|
3461
3467
|
}
|
|
3462
3468
|
));
|
|
3463
|
-
|
|
3464
|
-
const
|
|
3469
|
+
Cr.displayName = q.Overlay.displayName;
|
|
3470
|
+
const Oc = Q.forwardRef(
|
|
3465
3471
|
({ className: e, children: t, hideBar: r = !0, ...n }, o) => /* @__PURE__ */ s.jsxs(Cc, { children: [
|
|
3466
|
-
/* @__PURE__ */ s.jsx(
|
|
3472
|
+
/* @__PURE__ */ s.jsx(Cr, {}),
|
|
3467
3473
|
/* @__PURE__ */ s.jsxs(
|
|
3468
3474
|
q.Content,
|
|
3469
3475
|
{
|
|
@@ -3481,8 +3487,8 @@ const Tc = Q.forwardRef(
|
|
|
3481
3487
|
)
|
|
3482
3488
|
] })
|
|
3483
3489
|
);
|
|
3484
|
-
|
|
3485
|
-
const
|
|
3490
|
+
Oc.displayName = "DrawerContent";
|
|
3491
|
+
const Nc = Q.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ s.jsx(
|
|
3486
3492
|
q.Title,
|
|
3487
3493
|
{
|
|
3488
3494
|
ref: r,
|
|
@@ -3493,8 +3499,8 @@ const Oc = Q.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ s.jsx(
|
|
|
3493
3499
|
...t
|
|
3494
3500
|
}
|
|
3495
3501
|
));
|
|
3496
|
-
|
|
3497
|
-
const
|
|
3502
|
+
Nc.displayName = q.Title.displayName;
|
|
3503
|
+
const Ac = Q.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ s.jsx(
|
|
3498
3504
|
q.Description,
|
|
3499
3505
|
{
|
|
3500
3506
|
ref: r,
|
|
@@ -3502,7 +3508,7 @@ const Nc = Q.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ s.jsx(
|
|
|
3502
3508
|
...t
|
|
3503
3509
|
}
|
|
3504
3510
|
));
|
|
3505
|
-
|
|
3511
|
+
Ac.displayName = q.Description.displayName;
|
|
3506
3512
|
const Or = ({
|
|
3507
3513
|
children: e,
|
|
3508
3514
|
className: t
|
|
@@ -3511,29 +3517,36 @@ const Or = ({
|
|
|
3511
3517
|
return F(() => {
|
|
3512
3518
|
const o = n.current?.querySelector('[aria-current="page"]');
|
|
3513
3519
|
zn(o ?? null);
|
|
3514
|
-
}, []), /* @__PURE__ */ s.jsxs(
|
|
3515
|
-
|
|
3516
|
-
|
|
3517
|
-
|
|
3518
|
-
|
|
3519
|
-
|
|
3520
|
-
|
|
3521
|
-
"
|
|
3522
|
-
|
|
3523
|
-
|
|
3524
|
-
|
|
3520
|
+
}, []), /* @__PURE__ */ s.jsxs(
|
|
3521
|
+
"div",
|
|
3522
|
+
{
|
|
3523
|
+
className: "grid sticky top-(--header-height) lg:h-[calc(100vh-var(--header-height))] grid-rows-[1fr_min-content] border-r",
|
|
3524
|
+
"data-pagefind-ignore": "all",
|
|
3525
|
+
children: [
|
|
3526
|
+
/* @__PURE__ */ s.jsx(
|
|
3527
|
+
"nav",
|
|
3528
|
+
{
|
|
3529
|
+
ref: n,
|
|
3530
|
+
className: N(
|
|
3531
|
+
"hidden max-w-[calc(var(--side-nav-width)+var(--padding-nav-item))] lg:flex scrollbar flex-col overflow-y-auto shrink-0 text-sm pe-3 ps-4 lg:ps-8",
|
|
3532
|
+
"-mx-(--padding-nav-item) pb-[8vh] pt-(--padding-content-top) scroll-pt-2 gap-1",
|
|
3533
|
+
// Revert the padding/margin on the first child
|
|
3534
|
+
"-mt-2.5",
|
|
3535
|
+
t
|
|
3536
|
+
),
|
|
3537
|
+
style: {
|
|
3538
|
+
maskImage: "linear-gradient(180deg, transparent 1%, rgba(0, 0, 0, 1) 20px, rgba(0, 0, 0, 1) 90%, transparent 99%)"
|
|
3539
|
+
},
|
|
3540
|
+
children: e
|
|
3541
|
+
}
|
|
3525
3542
|
),
|
|
3526
|
-
|
|
3527
|
-
|
|
3528
|
-
|
|
3529
|
-
|
|
3530
|
-
}
|
|
3531
|
-
),
|
|
3532
|
-
/* @__PURE__ */ s.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: r.site?.showPoweredBy !== !1 && /* @__PURE__ */ s.jsx(wr, {}) })
|
|
3533
|
-
] });
|
|
3543
|
+
/* @__PURE__ */ s.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: r.site?.showPoweredBy !== !1 && /* @__PURE__ */ s.jsx(wr, {}) })
|
|
3544
|
+
]
|
|
3545
|
+
}
|
|
3546
|
+
);
|
|
3534
3547
|
};
|
|
3535
3548
|
Or.displayName = "NavigationWrapper";
|
|
3536
|
-
const
|
|
3549
|
+
const Ic = ({
|
|
3537
3550
|
onRequestClose: e,
|
|
3538
3551
|
navigation: t
|
|
3539
3552
|
}) => /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
@@ -3566,24 +3579,24 @@ const Ac = ({
|
|
|
3566
3579
|
] })
|
|
3567
3580
|
}
|
|
3568
3581
|
)
|
|
3569
|
-
] }),
|
|
3582
|
+
] }), Rc = ({ children: e }) => {
|
|
3570
3583
|
const [t, r] = G(!1), { navigation: n } = Bt(), o = n.length > 0, a = Re().state === "loading", { options: i } = M();
|
|
3571
3584
|
return /* @__PURE__ */ s.jsxs(
|
|
3572
|
-
|
|
3585
|
+
Tr,
|
|
3573
3586
|
{
|
|
3574
3587
|
direction: i.site?.dir === "rtl" ? "right" : "left",
|
|
3575
3588
|
open: t,
|
|
3576
3589
|
onOpenChange: (u) => r(u),
|
|
3577
3590
|
children: [
|
|
3578
3591
|
o && /* @__PURE__ */ s.jsx(
|
|
3579
|
-
|
|
3592
|
+
Ic,
|
|
3580
3593
|
{
|
|
3581
3594
|
onRequestClose: () => r(!1),
|
|
3582
3595
|
navigation: n
|
|
3583
3596
|
}
|
|
3584
3597
|
),
|
|
3585
|
-
o && /* @__PURE__ */ s.jsx("div", { className: "lg:hidden -mx-4 px-4 py-2 sticky bg-background/80 backdrop-blur-xs z-10 top-0 start-0 end-0 border-b", children: /* @__PURE__ */ s.jsxs(
|
|
3586
|
-
/* @__PURE__ */ s.jsx(
|
|
3598
|
+
o && /* @__PURE__ */ s.jsx("div", { className: "lg:hidden -mx-4 px-4 py-2 sticky bg-background/80 backdrop-blur-xs z-10 top-0 start-0 end-0 border-b", children: /* @__PURE__ */ s.jsxs(Tc, { className: "flex items-center gap-2 px-4", children: [
|
|
3599
|
+
/* @__PURE__ */ s.jsx(Yn, { size: 16, strokeWidth: 1.5 }),
|
|
3587
3600
|
/* @__PURE__ */ s.jsx("span", { className: "text-sm", children: "Menu" })
|
|
3588
3601
|
] }) }),
|
|
3589
3602
|
/* @__PURE__ */ s.jsxs(
|
|
@@ -3605,9 +3618,9 @@ const Ac = ({
|
|
|
3605
3618
|
]
|
|
3606
3619
|
}
|
|
3607
3620
|
);
|
|
3608
|
-
},
|
|
3621
|
+
}, Dc = () => /* @__PURE__ */ s.jsx("main", { className: "col-span-full row-span-full grid place-items-center", children: /* @__PURE__ */ s.jsx(Gt, {}) }), Mc = ({ children: e }) => {
|
|
3609
3622
|
const { meta: t, authentication: r, options: n } = M(), o = xe();
|
|
3610
|
-
return Pn(),
|
|
3623
|
+
return Pn(), lc(), F(() => {
|
|
3611
3624
|
r?.onPageLoad?.();
|
|
3612
3625
|
}, [r]), /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
3613
3626
|
/* @__PURE__ */ s.jsxs(Ie, { titleTemplate: t?.title, children: [
|
|
@@ -3636,12 +3649,12 @@ const Ac = ({
|
|
|
3636
3649
|
"[&:has(>:only-child)]:grid-rows-1 grid-rows-[0_min-content_1fr] lg:grid-rows-[min-content_1fr]",
|
|
3637
3650
|
"grid-cols-1 lg:grid-cols-[var(--side-nav-width)_1fr]"
|
|
3638
3651
|
),
|
|
3639
|
-
children: /* @__PURE__ */ s.jsx(Fe, { fallback: /* @__PURE__ */ s.jsx(
|
|
3652
|
+
children: /* @__PURE__ */ s.jsx(Fe, { fallback: /* @__PURE__ */ s.jsx(Dc, {}), children: /* @__PURE__ */ s.jsx(Rc, { children: e ?? /* @__PURE__ */ s.jsx(Mt, {}) }) })
|
|
3640
3653
|
}
|
|
3641
3654
|
),
|
|
3642
|
-
/* @__PURE__ */ s.jsx(
|
|
3655
|
+
/* @__PURE__ */ s.jsx(hc, {})
|
|
3643
3656
|
] });
|
|
3644
|
-
},
|
|
3657
|
+
}, Fc = ({
|
|
3645
3658
|
title: e = "An error occurred",
|
|
3646
3659
|
message: t,
|
|
3647
3660
|
category: r
|
|
@@ -3649,7 +3662,7 @@ const Ac = ({
|
|
|
3649
3662
|
r && /* @__PURE__ */ s.jsx(En, { children: r }),
|
|
3650
3663
|
e && /* @__PURE__ */ s.jsx(Sn, { level: 1, className: "flex gap-3.5 items-center", children: e }),
|
|
3651
3664
|
/* @__PURE__ */ s.jsx("p", { children: t })
|
|
3652
|
-
] }),
|
|
3665
|
+
] }), qc = (e) => {
|
|
3653
3666
|
switch (e) {
|
|
3654
3667
|
case 400:
|
|
3655
3668
|
return {
|
|
@@ -3712,21 +3725,23 @@ const Ac = ({
|
|
|
3712
3725
|
message: "Something went wrong while processing your request."
|
|
3713
3726
|
};
|
|
3714
3727
|
}
|
|
3715
|
-
},
|
|
3716
|
-
|
|
3728
|
+
}, Uc = ({ statusCode: e, message: t }) => {
|
|
3729
|
+
if (e === 404)
|
|
3730
|
+
return /* @__PURE__ */ s.jsx(Zn, {});
|
|
3731
|
+
const r = qc(e);
|
|
3717
3732
|
return /* @__PURE__ */ s.jsx(
|
|
3718
|
-
|
|
3733
|
+
Fc,
|
|
3719
3734
|
{
|
|
3720
3735
|
title: r.title,
|
|
3721
3736
|
message: t ?? r.message,
|
|
3722
3737
|
category: e
|
|
3723
3738
|
}
|
|
3724
3739
|
);
|
|
3725
|
-
},
|
|
3740
|
+
}, Lc = Me(null), Ee = {
|
|
3726
3741
|
didCatch: !1,
|
|
3727
3742
|
error: null
|
|
3728
3743
|
};
|
|
3729
|
-
class
|
|
3744
|
+
class Qc extends Dn {
|
|
3730
3745
|
constructor(t) {
|
|
3731
3746
|
super(t), this.resetErrorBoundary = this.resetErrorBoundary.bind(this), this.state = Ee;
|
|
3732
3747
|
}
|
|
@@ -3759,7 +3774,7 @@ class Lc extends Rn {
|
|
|
3759
3774
|
} = this.state, {
|
|
3760
3775
|
resetKeys: o
|
|
3761
3776
|
} = this.props;
|
|
3762
|
-
if (n && r.error !== null &&
|
|
3777
|
+
if (n && r.error !== null && Bc(t.resetKeys, o)) {
|
|
3763
3778
|
var a, i;
|
|
3764
3779
|
(a = (i = this.props).onReset) === null || a === void 0 || a.call(i, {
|
|
3765
3780
|
next: o,
|
|
@@ -3793,7 +3808,7 @@ class Lc extends Rn {
|
|
|
3793
3808
|
else
|
|
3794
3809
|
throw i;
|
|
3795
3810
|
}
|
|
3796
|
-
return nt(
|
|
3811
|
+
return nt(Lc.Provider, {
|
|
3797
3812
|
value: {
|
|
3798
3813
|
didCatch: a,
|
|
3799
3814
|
error: i,
|
|
@@ -3802,11 +3817,11 @@ class Lc extends Rn {
|
|
|
3802
3817
|
}, u);
|
|
3803
3818
|
}
|
|
3804
3819
|
}
|
|
3805
|
-
function
|
|
3820
|
+
function Bc() {
|
|
3806
3821
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
|
|
3807
3822
|
return e.length !== t.length || e.some((r, n) => !Object.is(r, t[n]));
|
|
3808
3823
|
}
|
|
3809
|
-
let
|
|
3824
|
+
let Hc = () => ({
|
|
3810
3825
|
emit(e, ...t) {
|
|
3811
3826
|
for (let r = this.events[e] || [], n = 0, o = r.length; n < o; n++)
|
|
3812
3827
|
r[n](...t);
|
|
@@ -3818,8 +3833,8 @@ let Bc = () => ({
|
|
|
3818
3833
|
};
|
|
3819
3834
|
}
|
|
3820
3835
|
});
|
|
3821
|
-
const
|
|
3822
|
-
class
|
|
3836
|
+
const Kc = (e) => Object.entries(e);
|
|
3837
|
+
class Wc {
|
|
3823
3838
|
plugins;
|
|
3824
3839
|
navigation;
|
|
3825
3840
|
meta;
|
|
@@ -3828,15 +3843,15 @@ class Kc {
|
|
|
3828
3843
|
queryClient;
|
|
3829
3844
|
options;
|
|
3830
3845
|
navigationPlugins;
|
|
3831
|
-
emitter =
|
|
3846
|
+
emitter = Hc();
|
|
3832
3847
|
constructor(t, r) {
|
|
3833
3848
|
const n = (t.protectedRoutes ?? []).concat(
|
|
3834
3849
|
t.plugins?.flatMap(
|
|
3835
3850
|
(o) => ot(o) ? o.getProtectedRoutes?.() ?? [] : []
|
|
3836
3851
|
) ?? []
|
|
3837
3852
|
);
|
|
3838
|
-
this.queryClient = r, this.options = { ...t, protectedRoutes: n }, this.plugins = t.plugins ?? [], this.navigation = t.navigation ?? [], this.navigationPlugins = this.plugins.filter(ot), this.authentication = this.plugins.find(
|
|
3839
|
-
|
|
3853
|
+
this.queryClient = r, this.options = { ...t, protectedRoutes: n }, this.plugins = t.plugins ?? [], this.navigation = t.navigation ?? [], this.navigationPlugins = this.plugins.filter(ot), this.authentication = this.plugins.find(Jn), this.meta = t.metadata, this.site = t.site, this.plugins.forEach((o) => {
|
|
3854
|
+
Xn(o) && Kc(o.events).forEach(([a, i]) => {
|
|
3840
3855
|
this.emitter.on(a, i);
|
|
3841
3856
|
});
|
|
3842
3857
|
}), vn.subscribe((o, a) => {
|
|
@@ -3848,11 +3863,11 @@ class Kc {
|
|
|
3848
3863
|
}
|
|
3849
3864
|
initialize = async () => {
|
|
3850
3865
|
await Promise.all(
|
|
3851
|
-
this.plugins.filter(
|
|
3866
|
+
this.plugins.filter(eo).map((t) => t.initialize?.(this))
|
|
3852
3867
|
);
|
|
3853
3868
|
};
|
|
3854
3869
|
getApiIdentities = async () => (await Promise.all(
|
|
3855
|
-
this.plugins.filter(
|
|
3870
|
+
this.plugins.filter(to).map((r) => r.getIdentities(this))
|
|
3856
3871
|
)).flat();
|
|
3857
3872
|
addEventListener(t, r) {
|
|
3858
3873
|
return this.emitter.on(t, r);
|
|
@@ -3863,25 +3878,25 @@ class Kc {
|
|
|
3863
3878
|
(n) => n.getNavigation?.(ee(t), this)
|
|
3864
3879
|
)
|
|
3865
3880
|
)).flatMap((n) => n ?? []);
|
|
3866
|
-
getProfileMenuItems = () => this.plugins.filter((r) => Jt(r)).flatMap((r) => r.getProfileMenuItems(this)).sort(
|
|
3881
|
+
getProfileMenuItems = () => this.plugins.filter((r) => Jt(r)).flatMap((r) => r.getProfileMenuItems(this)).sort(Vc(["top", "middle", "bottom"])).sort((r) => r.weight ?? 0);
|
|
3867
3882
|
signRequest = async (t) => {
|
|
3868
3883
|
if (!this.authentication)
|
|
3869
3884
|
throw new Error("No authentication provider configured");
|
|
3870
3885
|
return await this.authentication.signRequest(t);
|
|
3871
3886
|
};
|
|
3872
3887
|
}
|
|
3873
|
-
const
|
|
3888
|
+
const Vc = (e) => (t, r) => {
|
|
3874
3889
|
const n = e.indexOf(t.category ?? "middle"), o = e.indexOf(r.category ?? "middle");
|
|
3875
3890
|
return n - o;
|
|
3876
3891
|
};
|
|
3877
|
-
function
|
|
3892
|
+
function Yc({ error: e, resetErrorBoundary: t }) {
|
|
3878
3893
|
return /* @__PURE__ */ s.jsx(Ht, { error: e });
|
|
3879
3894
|
}
|
|
3880
3895
|
const me = globalThis;
|
|
3881
3896
|
(!me.requestIdleCallback || !me.cancelIdleCallback) && (me.requestIdleCallback = (e) => setTimeout(e, 1), me.cancelIdleCallback = clearTimeout);
|
|
3882
3897
|
const Nr = {
|
|
3883
3898
|
Header: Zr
|
|
3884
|
-
},
|
|
3899
|
+
}, Gc = Me(Nr), Jc = Gc.Provider, Xc = () => {
|
|
3885
3900
|
const e = xe(), t = M(), r = K(void 0);
|
|
3886
3901
|
return F(() => {
|
|
3887
3902
|
t.emitEvent("location", {
|
|
@@ -3889,7 +3904,7 @@ const Nr = {
|
|
|
3889
3904
|
to: e
|
|
3890
3905
|
}), r.current = e;
|
|
3891
3906
|
}, [t, e]), null;
|
|
3892
|
-
},
|
|
3907
|
+
}, eu = ({
|
|
3893
3908
|
children: e,
|
|
3894
3909
|
context: t
|
|
3895
3910
|
}) => (yn({
|
|
@@ -3903,62 +3918,62 @@ const Ar = Yt(
|
|
|
3903
3918
|
() => ({ ...Nr, ...t.overrides }),
|
|
3904
3919
|
[t.overrides]
|
|
3905
3920
|
), n = xe(), o = $e(() => ({
|
|
3906
|
-
...(t.plugins ?? []).filter(
|
|
3921
|
+
...(t.plugins ?? []).filter(ro).flatMap(
|
|
3907
3922
|
(l) => l.getMdxComponents ? [l.getMdxComponents()] : []
|
|
3908
3923
|
).reduce(
|
|
3909
3924
|
(l, g) => ({ ...l, ...g }),
|
|
3910
3925
|
{}
|
|
3911
3926
|
),
|
|
3912
|
-
...
|
|
3927
|
+
...Tn,
|
|
3913
3928
|
...t.mdx?.components
|
|
3914
|
-
}), [t.mdx?.components, t.plugins]), { stagger: a } =
|
|
3929
|
+
}), [t.mdx?.components, t.plugins]), { stagger: a } = Mn(Ze), [i, u] = G(!1), h = $e(
|
|
3915
3930
|
() => i ? { stagger: !0 } : { stagger: a },
|
|
3916
3931
|
[a, i]
|
|
3917
3932
|
), f = Re(), y = Ut();
|
|
3918
3933
|
F(() => {
|
|
3919
3934
|
i || u(!0);
|
|
3920
|
-
}, [i, f.location]), At ??= new
|
|
3935
|
+
}, [i, f.location]), At ??= new Wc(t, y);
|
|
3921
3936
|
const p = t.plugins?.flatMap(
|
|
3922
|
-
(m) =>
|
|
3937
|
+
(m) => no(m) ? m.getHead?.({ location: n }) ?? [] : []
|
|
3923
3938
|
).map((m, l) => /* @__PURE__ */ s.jsx(Ie, { children: m }, l));
|
|
3924
3939
|
return /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
3925
3940
|
p,
|
|
3926
|
-
/* @__PURE__ */ s.jsx(Ze.Provider, { value: h, children: /* @__PURE__ */ s.jsxs(
|
|
3927
|
-
/* @__PURE__ */ s.jsx(
|
|
3928
|
-
/* @__PURE__ */ s.jsx(Cn, { slots: t.slots ?? t.UNSAFE_slotlets, children: /* @__PURE__ */ s.jsx(tn, { components: o, children: /* @__PURE__ */ s.jsx(rn, { attribute: "class", disableTransitionOnChange: !0, children: /* @__PURE__ */ s.jsx(
|
|
3941
|
+
/* @__PURE__ */ s.jsx(Ze.Provider, { value: h, children: /* @__PURE__ */ s.jsxs(eu, { context: At, children: [
|
|
3942
|
+
/* @__PURE__ */ s.jsx(Xc, {}),
|
|
3943
|
+
/* @__PURE__ */ s.jsx(Cn, { slots: t.slots ?? t.UNSAFE_slotlets, children: /* @__PURE__ */ s.jsx(tn, { components: o, children: /* @__PURE__ */ s.jsx(rn, { attribute: "class", disableTransitionOnChange: !0, children: /* @__PURE__ */ s.jsx(Jc, { value: r, children: /* @__PURE__ */ s.jsx(On, { children: e ?? /* @__PURE__ */ s.jsx(Mt, {}) }) }) }) }) })
|
|
3929
3944
|
] }) })
|
|
3930
3945
|
] });
|
|
3931
3946
|
}
|
|
3932
3947
|
);
|
|
3933
3948
|
Ar.displayName = "ZudokoInner";
|
|
3934
|
-
const Ir = (e) => /* @__PURE__ */ s.jsx(
|
|
3949
|
+
const Ir = (e) => /* @__PURE__ */ s.jsx(Qc, { FallbackComponent: Yc, children: /* @__PURE__ */ s.jsx(Ar, { ...e }) });
|
|
3935
3950
|
Ir.displayName = "Zudoku";
|
|
3936
|
-
const
|
|
3951
|
+
const bu = Mc, wu = Nn, ju = jo, ku = zo, $u = Po, zu = en, Pu = Ie, Eu = Uc, Su = In, Zu = An, Tu = Gt, Cu = te, Ou = Wt, Nu = De, Au = uc, Iu = Ir, Ru = Kt, Du = nn, tu = M, Mu = oe, Fu = bn, qu = wn, Uu = Dt;
|
|
3937
3952
|
export {
|
|
3938
|
-
|
|
3939
|
-
|
|
3940
|
-
|
|
3941
|
-
|
|
3942
|
-
|
|
3943
|
-
|
|
3944
|
-
|
|
3945
|
-
|
|
3946
|
-
|
|
3947
|
-
|
|
3948
|
-
|
|
3949
|
-
|
|
3950
|
-
|
|
3951
|
-
|
|
3952
|
-
|
|
3953
|
-
|
|
3954
|
-
|
|
3953
|
+
Ou as B,
|
|
3954
|
+
Su as C,
|
|
3955
|
+
Pu as H,
|
|
3956
|
+
Nu as L,
|
|
3957
|
+
Zu as M,
|
|
3958
|
+
wu as R,
|
|
3959
|
+
Tu as S,
|
|
3960
|
+
Ru as T,
|
|
3961
|
+
Iu as Z,
|
|
3962
|
+
zc as a,
|
|
3963
|
+
Mu as b,
|
|
3964
|
+
bu as c,
|
|
3965
|
+
ju as d,
|
|
3966
|
+
ku as e,
|
|
3967
|
+
$u as f,
|
|
3968
|
+
zu as g,
|
|
3969
|
+
Eu as h,
|
|
3955
3970
|
Cu as i,
|
|
3956
|
-
|
|
3957
|
-
|
|
3958
|
-
|
|
3959
|
-
|
|
3960
|
-
|
|
3961
|
-
|
|
3962
|
-
|
|
3971
|
+
Au as j,
|
|
3972
|
+
Du as k,
|
|
3973
|
+
Fu as l,
|
|
3974
|
+
qu as m,
|
|
3975
|
+
Uu as n,
|
|
3976
|
+
Kc as o,
|
|
3977
|
+
tu as u
|
|
3963
3978
|
};
|
|
3964
|
-
//# sourceMappingURL=index-
|
|
3979
|
+
//# sourceMappingURL=index-DLshv89l.js.map
|