zudoku 0.33.2-local.4 → 0.34.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (145) hide show
  1. package/README.md +121 -0
  2. package/dist/config/validators/common.d.ts +346 -346
  3. package/dist/config/validators/validate.d.ts +165 -165
  4. package/dist/lib/components/AnchorLink.d.ts +2 -2
  5. package/dist/lib/components/AnchorLink.js +4 -4
  6. package/dist/lib/components/AnchorLink.js.map +1 -1
  7. package/dist/lib/components/Heading.d.ts +1 -1
  8. package/dist/lib/components/context/ZudokuContext.d.ts +1 -1
  9. package/dist/lib/components/navigation/SidebarItem.js +6 -5
  10. package/dist/lib/components/navigation/SidebarItem.js.map +1 -1
  11. package/dist/lib/core/ZudokuContext.d.ts +4 -0
  12. package/dist/lib/core/ZudokuContext.js.map +1 -1
  13. package/dist/lib/plugins/openapi/OperationList.js +4 -1
  14. package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
  15. package/dist/lib/plugins/openapi/OperationListItem.d.ts +1 -1
  16. package/dist/lib/plugins/openapi/OperationListItem.js +5 -3
  17. package/dist/lib/plugins/openapi/OperationListItem.js.map +1 -1
  18. package/dist/lib/plugins/openapi/graphql/gql.d.ts +1 -1
  19. package/dist/lib/plugins/openapi/graphql/gql.js +1 -1
  20. package/dist/lib/plugins/openapi/graphql/gql.js.map +1 -1
  21. package/dist/lib/plugins/openapi/graphql/graphql.d.ts +1 -0
  22. package/dist/lib/plugins/openapi/graphql/graphql.js +2 -0
  23. package/dist/lib/plugins/openapi/graphql/graphql.js.map +1 -1
  24. package/dist/lib/plugins/openapi/playground/ExamplesDropdown.d.ts +2 -2
  25. package/dist/lib/plugins/openapi/playground/ExamplesDropdown.js +1 -5
  26. package/dist/lib/plugins/openapi/playground/ExamplesDropdown.js.map +1 -1
  27. package/dist/lib/plugins/openapi/playground/Headers.js +1 -1
  28. package/dist/lib/plugins/openapi/playground/Headers.js.map +1 -1
  29. package/dist/lib/plugins/openapi/playground/IdentityDialog.d.ts +11 -0
  30. package/dist/lib/plugins/openapi/playground/IdentityDialog.js +14 -0
  31. package/dist/lib/plugins/openapi/playground/IdentityDialog.js.map +1 -0
  32. package/dist/lib/plugins/openapi/playground/IdentitySelector.d.ts +7 -0
  33. package/dist/lib/plugins/openapi/playground/IdentitySelector.js +10 -0
  34. package/dist/lib/plugins/openapi/playground/IdentitySelector.js.map +1 -0
  35. package/dist/lib/plugins/openapi/playground/Playground.d.ts +9 -1
  36. package/dist/lib/plugins/openapi/playground/Playground.js +75 -24
  37. package/dist/lib/plugins/openapi/playground/Playground.js.map +1 -1
  38. package/dist/lib/plugins/openapi/playground/QueryParams.js +1 -1
  39. package/dist/lib/plugins/openapi/playground/QueryParams.js.map +1 -1
  40. package/dist/lib/plugins/openapi/playground/RequestLoginDialog.d.ts +7 -0
  41. package/dist/lib/plugins/openapi/playground/RequestLoginDialog.js +8 -0
  42. package/dist/lib/plugins/openapi/playground/RequestLoginDialog.js.map +1 -0
  43. package/dist/lib/plugins/openapi/playground/rememberedIdentity.d.ts +17 -0
  44. package/dist/lib/plugins/openapi/playground/rememberedIdentity.js +11 -0
  45. package/dist/lib/plugins/openapi/playground/rememberedIdentity.js.map +1 -0
  46. package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.js +19 -13
  47. package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.js.map +1 -1
  48. package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.d.ts +6 -4
  49. package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.js +4 -3
  50. package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.js.map +1 -1
  51. package/dist/lib/ui/Checkbox.d.ts +2 -8
  52. package/dist/lib/ui/Checkbox.js +1 -13
  53. package/dist/lib/ui/Checkbox.js.map +1 -1
  54. package/dist/lib/ui/Command.d.ts +6 -6
  55. package/dist/lib/ui/Select.js +1 -1
  56. package/dist/lib/ui/Select.js.map +1 -1
  57. package/dist/lib/ui/SyntaxHighlight.d.ts +2 -1
  58. package/dist/lib/ui/SyntaxHighlight.js +19 -15
  59. package/dist/lib/ui/SyntaxHighlight.js.map +1 -1
  60. package/dist/lib/util/MdxComponents.d.ts +1 -1
  61. package/dist/lib/util/MdxComponents.js +2 -2
  62. package/dist/lib/util/MdxComponents.js.map +1 -1
  63. package/lib/{AuthenticationPlugin-BCYuduZ9.js → AuthenticationPlugin-4ip08maU.js} +3 -3
  64. package/lib/{AuthenticationPlugin-BCYuduZ9.js.map → AuthenticationPlugin-4ip08maU.js.map} +1 -1
  65. package/lib/Callout-B_sEhkYd.js +211 -0
  66. package/lib/Callout-B_sEhkYd.js.map +1 -0
  67. package/lib/{Dialog-mi6BrnrM.js → Dialog-sbgekbjb.js} +48 -33
  68. package/lib/{Dialog-mi6BrnrM.js.map → Dialog-sbgekbjb.js.map} +1 -1
  69. package/lib/{Markdown-DofXBcqg.js → Markdown-DZXjQjpH.js} +4099 -3848
  70. package/lib/Markdown-DZXjQjpH.js.map +1 -0
  71. package/lib/{MdxPage-KJcNWIgt.js → MdxPage-52vRwa_7.js} +13 -13
  72. package/lib/{MdxPage-KJcNWIgt.js.map → MdxPage-52vRwa_7.js.map} +1 -1
  73. package/lib/{OasProvider-HcqBeC4H.js → OasProvider-CR2nG1Eg.js} +4 -4
  74. package/lib/{OasProvider-HcqBeC4H.js.map → OasProvider-CR2nG1Eg.js.map} +1 -1
  75. package/lib/{OperationList-C3wnbFxp.js → OperationList-DndcCJUG.js} +1097 -1052
  76. package/lib/{OperationList-C3wnbFxp.js.map → OperationList-DndcCJUG.js.map} +1 -1
  77. package/lib/{Select-Co6MuS4j.js → Select-FAYHOYTy.js} +35 -35
  78. package/lib/{Select-Co6MuS4j.js.map → Select-FAYHOYTy.js.map} +1 -1
  79. package/lib/{SlotletProvider-CYFNHuok.js → SlotletProvider-TydSHROc.js} +4 -4
  80. package/lib/{SlotletProvider-CYFNHuok.js.map → SlotletProvider-TydSHROc.js.map} +1 -1
  81. package/lib/{chunk-IR6S3I6Y-CRDBmIgK.js → chunk-HA7DTUK3-ZGg2W6yV.js} +276 -276
  82. package/lib/chunk-HA7DTUK3-ZGg2W6yV.js.map +1 -0
  83. package/lib/{hook-LTe5qHSc.js → hook-CfCFKZ-2.js} +10 -7
  84. package/lib/{hook-LTe5qHSc.js.map → hook-CfCFKZ-2.js.map} +1 -1
  85. package/lib/index-DK7IuUyR.js +2201 -0
  86. package/lib/index-DK7IuUyR.js.map +1 -0
  87. package/lib/index.esm-CltAN0Tf.js +711 -0
  88. package/lib/index.esm-CltAN0Tf.js.map +1 -0
  89. package/lib/objectEntries-BS7aAgOm.js +12 -0
  90. package/lib/objectEntries-BS7aAgOm.js.map +1 -0
  91. package/lib/ui/Checkbox.js +15 -25
  92. package/lib/ui/Checkbox.js.map +1 -1
  93. package/lib/ui/Command.js +1 -1
  94. package/lib/ui/Select.js +1 -1
  95. package/lib/ui/Select.js.map +1 -1
  96. package/lib/ui/SyntaxHighlight.js +483 -502
  97. package/lib/ui/SyntaxHighlight.js.map +1 -1
  98. package/lib/{useExposedProps-D76yras4.js → useExposedProps-BslIn-FE.js} +2 -2
  99. package/lib/{useExposedProps-D76yras4.js.map → useExposedProps-BslIn-FE.js.map} +1 -1
  100. package/lib/zudoku.auth-auth0.js +1 -1
  101. package/lib/zudoku.auth-clerk.js +2 -2
  102. package/lib/zudoku.auth-openid.js +3 -3
  103. package/lib/zudoku.components.js +1390 -32
  104. package/lib/zudoku.components.js.map +1 -1
  105. package/lib/zudoku.hooks.js +1 -1
  106. package/lib/zudoku.plugin-api-catalog.js +5 -5
  107. package/lib/zudoku.plugin-api-keys.js +4 -4
  108. package/lib/zudoku.plugin-custom-pages.js +2 -2
  109. package/lib/zudoku.plugin-markdown.js +1 -1
  110. package/lib/zudoku.plugin-openapi.js +3 -3
  111. package/lib/zudoku.plugin-redirect.js +1 -1
  112. package/lib/zudoku.plugin-search-pagefind.js +84 -154
  113. package/lib/zudoku.plugin-search-pagefind.js.map +1 -1
  114. package/package.json +3 -3
  115. package/src/lib/components/AnchorLink.tsx +7 -7
  116. package/src/lib/components/navigation/SidebarItem.tsx +8 -23
  117. package/src/lib/core/ZudokuContext.ts +4 -0
  118. package/src/lib/plugins/openapi/OperationList.tsx +73 -33
  119. package/src/lib/plugins/openapi/OperationListItem.tsx +105 -92
  120. package/src/lib/plugins/openapi/graphql/gql.ts +3 -3
  121. package/src/lib/plugins/openapi/graphql/graphql.ts +3 -0
  122. package/src/lib/plugins/openapi/playground/ExamplesDropdown.tsx +30 -32
  123. package/src/lib/plugins/openapi/playground/Headers.tsx +0 -1
  124. package/src/lib/plugins/openapi/playground/IdentityDialog.tsx +74 -0
  125. package/src/lib/plugins/openapi/playground/IdentitySelector.tsx +54 -0
  126. package/src/lib/plugins/openapi/playground/Playground.tsx +164 -133
  127. package/src/lib/plugins/openapi/playground/QueryParams.tsx +0 -1
  128. package/src/lib/plugins/openapi/playground/RequestLoginDialog.tsx +51 -0
  129. package/src/lib/plugins/openapi/playground/rememberedIdentity.ts +26 -0
  130. package/src/lib/plugins/openapi/playground/result-panel/ResponseTab.tsx +24 -4
  131. package/src/lib/plugins/openapi/playground/result-panel/ResultPanel.tsx +66 -45
  132. package/src/lib/ui/Checkbox.tsx +8 -24
  133. package/src/lib/ui/Select.tsx +1 -1
  134. package/src/lib/ui/SyntaxHighlight.tsx +94 -96
  135. package/src/lib/util/MdxComponents.tsx +2 -2
  136. package/lib/Command-CrTA1FX0.js +0 -140
  137. package/lib/Command-CrTA1FX0.js.map +0 -1
  138. package/lib/Markdown-DofXBcqg.js.map +0 -1
  139. package/lib/chunk-IR6S3I6Y-CRDBmIgK.js.map +0 -1
  140. package/lib/index-CtkRMvMw.js +0 -2052
  141. package/lib/index-CtkRMvMw.js.map +0 -1
  142. package/lib/index-vn5bsvmU.js +0 -1399
  143. package/lib/index-vn5bsvmU.js.map +0 -1
  144. package/lib/useScrollToAnchor-DKyrbZoy.js +0 -977
  145. package/lib/useScrollToAnchor-DKyrbZoy.js.map +0 -1
@@ -1,1399 +0,0 @@
1
- var ut = Object.defineProperty;
2
- var xe = (t) => {
3
- throw TypeError(t);
4
- };
5
- var dt = (t, e, s) => e in t ? ut(t, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : t[e] = s;
6
- var j = (t, e, s) => dt(t, typeof e != "symbol" ? e + "" : e, s), ve = (t, e, s) => e.has(t) || xe("Cannot " + s);
7
- var l = (t, e, s) => (ve(t, e, "read from private field"), s ? s.call(t) : e.get(t)), w = (t, e, s) => e.has(t) ? xe("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, s), y = (t, e, s, n) => (ve(t, e, "write to private field"), n ? n.call(t, s) : e.set(t, s), s);
8
- var G = (t, e, s, n) => ({
9
- set _(a) {
10
- y(t, e, a, s);
11
- },
12
- get _() {
13
- return l(t, e, n);
14
- }
15
- });
16
- import { a as Fe, s as ht, S as ye, b as ft, H as le, M as gt, u as mt } from "./useScrollToAnchor-DKyrbZoy.js";
17
- import { z as He, J as pt } from "./index-DwT-v3zK.js";
18
- import { a as xt, u as te, m as vt, O as ce, R as yt, S as bt, h as ue, g as jt, L as de } from "./chunk-IR6S3I6Y-CRDBmIgK.js";
19
- import { e as B, a as E, i as Le, t as wt, j as ae, b as Pt, Z as Ct, k as kt, C as St } from "./hook-LTe5qHSc.js";
20
- import { j as r } from "./jsx-runtime-CYK1ROHF.js";
21
- import { S as Be, i as ze, j as Nt, n as P, m as be, l as je, o as M, p as Dt, q as Et, r as Mt, t as Ot, v as we, w as Pe, x as At, h as Ce, y as ke, e as qt, u as Tt, d as It, z as Ke } from "./useQuery-CQUwWR9i.js";
22
- import { D as Qt, a as Rt, d as Ft, b as Ht, e as Lt } from "./Dialog-mi6BrnrM.js";
23
- import { Z as $e } from "./invariant-Caa8-XvF.js";
24
- import * as Z from "react";
25
- import Bt, { useRef as V, useEffect as I, createContext as he, StrictMode as Ze, useState as z, useCallback as zt, Suspense as fe, memo as Ue, forwardRef as Kt, Component as $t, createElement as Se, useMemo as se, useContext as Zt } from "react";
26
- import { E as Ye, S, a as Ut, R as Yt } from "./SlotletProvider-CYFNHuok.js";
27
- import { Button as Vt } from "./ui/Button.js";
28
- import { Callout as Xt } from "./ui/Callout.js";
29
- import { M as _t } from "./mutation-B81DztCT.js";
30
- import * as Gt from "react-dom";
31
- import { C as ge } from "./ClientOnly-E7hGysn1.js";
32
- import { CircleXIcon as Wt, SearchIcon as Jt, SunIcon as es, MoonIcon as ts, MenuIcon as ss, PanelLeftIcon as rs } from "lucide-react";
33
- import { Drawer as Ve, DrawerTrigger as Xe, DrawerContent as _e, DrawerTitle as Ge } from "./ui/Drawer.js";
34
- import { c as Q } from "./cn-qaFjX9_3.js";
35
- import { u as ns, H as as, P as is, a as os, V as ls, M as cs } from "./Markdown-DofXBcqg.js";
36
- import { B as ie, S as We } from "./Spinner-1KrEmx1V.js";
37
- import { isSearchPlugin as us, isProfileMenuPlugin as ds, isNavigationPlugin as hs, isEventConsumerPlugin as fs, needsInitialization as gs, isApiIdentityPlugin as ms, isMdxProviderPlugin as ps, hasHead as xs } from "./zudoku.plugins.js";
38
- import { DropdownMenu as vs, DropdownMenuTrigger as ys, DropdownMenuContent as bs, DropdownMenuLabel as js, DropdownMenuSeparator as re, DropdownMenuSub as ws, DropdownMenuSubTrigger as Ps, DropdownMenuPortal as Cs, DropdownMenuSubContent as ks, DropdownMenuItem as Ss } from "./ui/DropdownMenu.js";
39
- import { j as Ne } from "./joinUrl-10po2Jdj.js";
40
- import { VisuallyHidden as Je } from "@radix-ui/react-visually-hidden";
41
- import { a as Ns } from "./index-CPNSgwSb.js";
42
- import { C as Ds } from "./CategoryHeading-DpB47wvk.js";
43
- var D, Ie, Es = (Ie = class extends Be {
44
- constructor(e = {}) {
45
- super();
46
- w(this, D);
47
- this.config = e, y(this, D, /* @__PURE__ */ new Map());
48
- }
49
- build(e, s, n) {
50
- const a = s.queryKey, i = s.queryHash ?? ze(a, s);
51
- let o = this.get(i);
52
- return o || (o = new Nt({
53
- client: e,
54
- queryKey: a,
55
- queryHash: i,
56
- options: e.defaultQueryOptions(s),
57
- state: n,
58
- defaultOptions: e.getQueryDefaults(a)
59
- }), this.add(o)), o;
60
- }
61
- add(e) {
62
- l(this, D).has(e.queryHash) || (l(this, D).set(e.queryHash, e), this.notify({
63
- type: "added",
64
- query: e
65
- }));
66
- }
67
- remove(e) {
68
- const s = l(this, D).get(e.queryHash);
69
- s && (e.destroy(), s === e && l(this, D).delete(e.queryHash), this.notify({ type: "removed", query: e }));
70
- }
71
- clear() {
72
- P.batch(() => {
73
- this.getAll().forEach((e) => {
74
- this.remove(e);
75
- });
76
- });
77
- }
78
- get(e) {
79
- return l(this, D).get(e);
80
- }
81
- getAll() {
82
- return [...l(this, D).values()];
83
- }
84
- find(e) {
85
- const s = { exact: !0, ...e };
86
- return this.getAll().find(
87
- (n) => be(s, n)
88
- );
89
- }
90
- findAll(e = {}) {
91
- const s = this.getAll();
92
- return Object.keys(e).length > 0 ? s.filter((n) => be(e, n)) : s;
93
- }
94
- notify(e) {
95
- P.batch(() => {
96
- this.listeners.forEach((s) => {
97
- s(e);
98
- });
99
- });
100
- }
101
- onFocus() {
102
- P.batch(() => {
103
- this.getAll().forEach((e) => {
104
- e.onFocus();
105
- });
106
- });
107
- }
108
- onOnline() {
109
- P.batch(() => {
110
- this.getAll().forEach((e) => {
111
- e.onOnline();
112
- });
113
- });
114
- }
115
- }, D = new WeakMap(), Ie), O, k, Y, Qe, Ms = (Qe = class extends Be {
116
- constructor(e = {}) {
117
- super();
118
- w(this, O);
119
- w(this, k);
120
- w(this, Y);
121
- this.config = e, y(this, O, /* @__PURE__ */ new Set()), y(this, k, /* @__PURE__ */ new Map()), y(this, Y, 0);
122
- }
123
- build(e, s, n) {
124
- const a = new _t({
125
- mutationCache: this,
126
- mutationId: ++G(this, Y)._,
127
- options: e.defaultMutationOptions(s),
128
- state: n
129
- });
130
- return this.add(a), a;
131
- }
132
- add(e) {
133
- l(this, O).add(e);
134
- const s = W(e);
135
- if (typeof s == "string") {
136
- const n = l(this, k).get(s);
137
- n ? n.push(e) : l(this, k).set(s, [e]);
138
- }
139
- this.notify({ type: "added", mutation: e });
140
- }
141
- remove(e) {
142
- if (l(this, O).delete(e)) {
143
- const s = W(e);
144
- if (typeof s == "string") {
145
- const n = l(this, k).get(s);
146
- if (n)
147
- if (n.length > 1) {
148
- const a = n.indexOf(e);
149
- a !== -1 && n.splice(a, 1);
150
- } else n[0] === e && l(this, k).delete(s);
151
- }
152
- }
153
- this.notify({ type: "removed", mutation: e });
154
- }
155
- canRun(e) {
156
- const s = W(e);
157
- if (typeof s == "string") {
158
- const n = l(this, k).get(s), a = n == null ? void 0 : n.find(
159
- (i) => i.state.status === "pending"
160
- );
161
- return !a || a === e;
162
- } else
163
- return !0;
164
- }
165
- runNext(e) {
166
- var n;
167
- const s = W(e);
168
- if (typeof s == "string") {
169
- const a = (n = l(this, k).get(s)) == null ? void 0 : n.find((i) => i !== e && i.state.isPaused);
170
- return (a == null ? void 0 : a.continue()) ?? Promise.resolve();
171
- } else
172
- return Promise.resolve();
173
- }
174
- clear() {
175
- P.batch(() => {
176
- l(this, O).forEach((e) => {
177
- this.notify({ type: "removed", mutation: e });
178
- }), l(this, O).clear(), l(this, k).clear();
179
- });
180
- }
181
- getAll() {
182
- return Array.from(l(this, O));
183
- }
184
- find(e) {
185
- const s = { exact: !0, ...e };
186
- return this.getAll().find(
187
- (n) => je(s, n)
188
- );
189
- }
190
- findAll(e = {}) {
191
- return this.getAll().filter((s) => je(e, s));
192
- }
193
- notify(e) {
194
- P.batch(() => {
195
- this.listeners.forEach((s) => {
196
- s(e);
197
- });
198
- });
199
- }
200
- resumePausedMutations() {
201
- const e = this.getAll().filter((s) => s.state.isPaused);
202
- return P.batch(
203
- () => Promise.all(
204
- e.map((s) => s.continue().catch(M))
205
- )
206
- );
207
- }
208
- }, O = new WeakMap(), k = new WeakMap(), Y = new WeakMap(), Qe);
209
- function W(t) {
210
- var e;
211
- return (e = t.options.scope) == null ? void 0 : e.id;
212
- }
213
- function De(t) {
214
- return {
215
- onFetch: (e, s) => {
216
- var m, g, h, f, v;
217
- const n = e.options, a = (h = (g = (m = e.fetchOptions) == null ? void 0 : m.meta) == null ? void 0 : g.fetchMore) == null ? void 0 : h.direction, i = ((f = e.state.data) == null ? void 0 : f.pages) || [], o = ((v = e.state.data) == null ? void 0 : v.pageParams) || [];
218
- let u = { pages: [], pageParams: [] }, d = 0;
219
- const c = async () => {
220
- let x = !1;
221
- const C = (b) => {
222
- Object.defineProperty(b, "signal", {
223
- enumerable: !0,
224
- get: () => (e.signal.aborted ? x = !0 : e.signal.addEventListener("abort", () => {
225
- x = !0;
226
- }), e.signal)
227
- });
228
- }, X = Dt(e.options, e.fetchOptions), K = async (b, N, $) => {
229
- if (x)
230
- return Promise.reject();
231
- if (N == null && b.pages.length)
232
- return Promise.resolve(b);
233
- const _ = {
234
- client: e.client,
235
- queryKey: e.queryKey,
236
- pageParam: N,
237
- direction: $ ? "backward" : "forward",
238
- meta: e.options.meta
239
- };
240
- C(_);
241
- const ct = await X(
242
- _
243
- ), { maxPages: me } = e.options, pe = $ ? Et : Mt;
244
- return {
245
- pages: pe(b.pages, ct, me),
246
- pageParams: pe(b.pageParams, N, me)
247
- };
248
- };
249
- if (a && i.length) {
250
- const b = a === "backward", N = b ? Os : Ee, $ = {
251
- pages: i,
252
- pageParams: o
253
- }, _ = N(n, $);
254
- u = await K($, _, b);
255
- } else {
256
- const b = t ?? i.length;
257
- do {
258
- const N = d === 0 ? o[0] ?? n.initialPageParam : Ee(n, u);
259
- if (d > 0 && N == null)
260
- break;
261
- u = await K(u, N), d++;
262
- } while (d < b);
263
- }
264
- return u;
265
- };
266
- e.options.persister ? e.fetchFn = () => {
267
- var x, C;
268
- return (C = (x = e.options).persister) == null ? void 0 : C.call(
269
- x,
270
- c,
271
- {
272
- client: e.client,
273
- queryKey: e.queryKey,
274
- meta: e.options.meta,
275
- signal: e.signal
276
- },
277
- s
278
- );
279
- } : e.fetchFn = c;
280
- }
281
- };
282
- }
283
- function Ee(t, { pages: e, pageParams: s }) {
284
- const n = e.length - 1;
285
- return e.length > 0 ? t.getNextPageParam(
286
- e[n],
287
- e,
288
- s[n],
289
- s
290
- ) : void 0;
291
- }
292
- function Os(t, { pages: e, pageParams: s }) {
293
- var n;
294
- return e.length > 0 ? (n = t.getPreviousPageParam) == null ? void 0 : n.call(t, e[0], e, s[0], s) : void 0;
295
- }
296
- var p, A, q, R, F, T, H, L, Re, As = (Re = class {
297
- constructor(t = {}) {
298
- w(this, p);
299
- w(this, A);
300
- w(this, q);
301
- w(this, R);
302
- w(this, F);
303
- w(this, T);
304
- w(this, H);
305
- w(this, L);
306
- y(this, p, t.queryCache || new Es()), y(this, A, t.mutationCache || new Ms()), y(this, q, t.defaultOptions || {}), y(this, R, /* @__PURE__ */ new Map()), y(this, F, /* @__PURE__ */ new Map()), y(this, T, 0);
307
- }
308
- mount() {
309
- G(this, T)._++, l(this, T) === 1 && (y(this, H, Ot.subscribe(async (t) => {
310
- t && (await this.resumePausedMutations(), l(this, p).onFocus());
311
- })), y(this, L, we.subscribe(async (t) => {
312
- t && (await this.resumePausedMutations(), l(this, p).onOnline());
313
- })));
314
- }
315
- unmount() {
316
- var t, e;
317
- G(this, T)._--, l(this, T) === 0 && ((t = l(this, H)) == null || t.call(this), y(this, H, void 0), (e = l(this, L)) == null || e.call(this), y(this, L, void 0));
318
- }
319
- isFetching(t) {
320
- return l(this, p).findAll({ ...t, fetchStatus: "fetching" }).length;
321
- }
322
- isMutating(t) {
323
- return l(this, A).findAll({ ...t, status: "pending" }).length;
324
- }
325
- getQueryData(t) {
326
- var s;
327
- const e = this.defaultQueryOptions({ queryKey: t });
328
- return (s = l(this, p).get(e.queryHash)) == null ? void 0 : s.state.data;
329
- }
330
- ensureQueryData(t) {
331
- const e = this.defaultQueryOptions(t), s = l(this, p).build(this, e), n = s.state.data;
332
- return n === void 0 ? this.fetchQuery(t) : (t.revalidateIfStale && s.isStaleByTime(Pe(e.staleTime, s)) && this.prefetchQuery(e), Promise.resolve(n));
333
- }
334
- getQueriesData(t) {
335
- return l(this, p).findAll(t).map(({ queryKey: e, state: s }) => {
336
- const n = s.data;
337
- return [e, n];
338
- });
339
- }
340
- setQueryData(t, e, s) {
341
- const n = this.defaultQueryOptions({ queryKey: t }), a = l(this, p).get(
342
- n.queryHash
343
- ), i = a == null ? void 0 : a.state.data, o = At(e, i);
344
- if (o !== void 0)
345
- return l(this, p).build(this, n).setData(o, { ...s, manual: !0 });
346
- }
347
- setQueriesData(t, e, s) {
348
- return P.batch(
349
- () => l(this, p).findAll(t).map(({ queryKey: n }) => [
350
- n,
351
- this.setQueryData(n, e, s)
352
- ])
353
- );
354
- }
355
- getQueryState(t) {
356
- var s;
357
- const e = this.defaultQueryOptions({ queryKey: t });
358
- return (s = l(this, p).get(
359
- e.queryHash
360
- )) == null ? void 0 : s.state;
361
- }
362
- removeQueries(t) {
363
- const e = l(this, p);
364
- P.batch(() => {
365
- e.findAll(t).forEach((s) => {
366
- e.remove(s);
367
- });
368
- });
369
- }
370
- resetQueries(t, e) {
371
- const s = l(this, p), n = {
372
- type: "active",
373
- ...t
374
- };
375
- return P.batch(() => (s.findAll(t).forEach((a) => {
376
- a.reset();
377
- }), this.refetchQueries(n, e)));
378
- }
379
- cancelQueries(t, e = {}) {
380
- const s = { revert: !0, ...e }, n = P.batch(
381
- () => l(this, p).findAll(t).map((a) => a.cancel(s))
382
- );
383
- return Promise.all(n).then(M).catch(M);
384
- }
385
- invalidateQueries(t, e = {}) {
386
- return P.batch(() => {
387
- if (l(this, p).findAll(t).forEach((n) => {
388
- n.invalidate();
389
- }), (t == null ? void 0 : t.refetchType) === "none")
390
- return Promise.resolve();
391
- const s = {
392
- ...t,
393
- type: (t == null ? void 0 : t.refetchType) ?? (t == null ? void 0 : t.type) ?? "active"
394
- };
395
- return this.refetchQueries(s, e);
396
- });
397
- }
398
- refetchQueries(t, e = {}) {
399
- const s = {
400
- ...e,
401
- cancelRefetch: e.cancelRefetch ?? !0
402
- }, n = P.batch(
403
- () => l(this, p).findAll(t).filter((a) => !a.isDisabled()).map((a) => {
404
- let i = a.fetch(void 0, s);
405
- return s.throwOnError || (i = i.catch(M)), a.state.fetchStatus === "paused" ? Promise.resolve() : i;
406
- })
407
- );
408
- return Promise.all(n).then(M);
409
- }
410
- fetchQuery(t) {
411
- const e = this.defaultQueryOptions(t);
412
- e.retry === void 0 && (e.retry = !1);
413
- const s = l(this, p).build(this, e);
414
- return s.isStaleByTime(
415
- Pe(e.staleTime, s)
416
- ) ? s.fetch(e) : Promise.resolve(s.state.data);
417
- }
418
- prefetchQuery(t) {
419
- return this.fetchQuery(t).then(M).catch(M);
420
- }
421
- fetchInfiniteQuery(t) {
422
- return t.behavior = De(t.pages), this.fetchQuery(t);
423
- }
424
- prefetchInfiniteQuery(t) {
425
- return this.fetchInfiniteQuery(t).then(M).catch(M);
426
- }
427
- ensureInfiniteQueryData(t) {
428
- return t.behavior = De(t.pages), this.ensureQueryData(t);
429
- }
430
- resumePausedMutations() {
431
- return we.isOnline() ? l(this, A).resumePausedMutations() : Promise.resolve();
432
- }
433
- getQueryCache() {
434
- return l(this, p);
435
- }
436
- getMutationCache() {
437
- return l(this, A);
438
- }
439
- getDefaultOptions() {
440
- return l(this, q);
441
- }
442
- setDefaultOptions(t) {
443
- y(this, q, t);
444
- }
445
- setQueryDefaults(t, e) {
446
- l(this, R).set(Ce(t), {
447
- queryKey: t,
448
- defaultOptions: e
449
- });
450
- }
451
- getQueryDefaults(t) {
452
- const e = [...l(this, R).values()], s = {};
453
- return e.forEach((n) => {
454
- ke(t, n.queryKey) && Object.assign(s, n.defaultOptions);
455
- }), s;
456
- }
457
- setMutationDefaults(t, e) {
458
- l(this, F).set(Ce(t), {
459
- mutationKey: t,
460
- defaultOptions: e
461
- });
462
- }
463
- getMutationDefaults(t) {
464
- const e = [...l(this, F).values()];
465
- let s = {};
466
- return e.forEach((n) => {
467
- ke(t, n.mutationKey) && (s = { ...s, ...n.defaultOptions });
468
- }), s;
469
- }
470
- defaultQueryOptions(t) {
471
- if (t._defaulted)
472
- return t;
473
- const e = {
474
- ...l(this, q).queries,
475
- ...this.getQueryDefaults(t.queryKey),
476
- ...t,
477
- _defaulted: !0
478
- };
479
- return e.queryHash || (e.queryHash = ze(
480
- e.queryKey,
481
- e
482
- )), e.refetchOnReconnect === void 0 && (e.refetchOnReconnect = e.networkMode !== "always"), e.throwOnError === void 0 && (e.throwOnError = !!e.suspense), !e.networkMode && e.persister && (e.networkMode = "offlineFirst"), e.queryFn === qt && (e.enabled = !1), e;
483
- }
484
- defaultMutationOptions(t) {
485
- return t != null && t._defaulted ? t : {
486
- ...l(this, q).mutations,
487
- ...(t == null ? void 0 : t.mutationKey) && this.getMutationDefaults(t.mutationKey),
488
- ...t,
489
- _defaulted: !0
490
- };
491
- }
492
- clear() {
493
- l(this, p).clear(), l(this, A).clear();
494
- }
495
- }, p = new WeakMap(), A = new WeakMap(), q = new WeakMap(), R = new WeakMap(), F = new WeakMap(), T = new WeakMap(), H = new WeakMap(), L = new WeakMap(), Re);
496
- function qs(t) {
497
- return t;
498
- }
499
- function Me(t, e, s) {
500
- var d, c;
501
- if (typeof e != "object" || e === null)
502
- return;
503
- const n = t.getMutationCache(), a = t.getQueryCache(), i = ((d = s == null ? void 0 : s.defaultOptions) == null ? void 0 : d.deserializeData) ?? ((c = t.getDefaultOptions().hydrate) == null ? void 0 : c.deserializeData) ?? qs, o = e.mutations || [], u = e.queries || [];
504
- o.forEach(({ state: m, ...g }) => {
505
- var h, f;
506
- n.build(
507
- t,
508
- {
509
- ...(h = t.getDefaultOptions().hydrate) == null ? void 0 : h.mutations,
510
- ...(f = s == null ? void 0 : s.defaultOptions) == null ? void 0 : f.mutations,
511
- ...g
512
- },
513
- m
514
- );
515
- }), u.forEach(({ queryKey: m, state: g, queryHash: h, meta: f, promise: v }) => {
516
- var X, K;
517
- let x = a.get(h);
518
- const C = g.data === void 0 ? g.data : i(g.data);
519
- if (x) {
520
- if (x.state.dataUpdatedAt < g.dataUpdatedAt) {
521
- const { fetchStatus: b, ...N } = g;
522
- x.setState({
523
- ...N,
524
- data: C
525
- });
526
- }
527
- } else
528
- x = a.build(
529
- t,
530
- {
531
- ...(X = t.getDefaultOptions().hydrate) == null ? void 0 : X.queries,
532
- ...(K = s == null ? void 0 : s.defaultOptions) == null ? void 0 : K.queries,
533
- queryKey: m,
534
- queryHash: h,
535
- meta: f
536
- },
537
- // Reset fetch status to idle to avoid
538
- // query being stuck in fetching state upon hydration
539
- {
540
- ...g,
541
- data: C,
542
- fetchStatus: "idle"
543
- }
544
- );
545
- if (v) {
546
- const b = Promise.resolve(v).then(i);
547
- x.fetch(void 0, { initialPromise: b });
548
- }
549
- });
550
- }
551
- var Oe = (t, e) => typeof t == "object" && t !== null && e in t, Ts = ({
552
- children: t,
553
- options: e = {},
554
- state: s,
555
- queryClient: n
556
- }) => {
557
- const a = Tt(n), [i, o] = Z.useState(), u = Z.useRef(e);
558
- return u.current = e, Z.useMemo(() => {
559
- if (s) {
560
- if (typeof s != "object")
561
- return;
562
- const d = a.getQueryCache(), c = s.queries || [], m = [], g = [];
563
- for (const h of c) {
564
- const f = d.get(h.queryHash);
565
- if (!f)
566
- m.push(h);
567
- else {
568
- const v = h.state.dataUpdatedAt > f.state.dataUpdatedAt || // RSC special serialized then-able chunks
569
- Oe(h.promise, "status") && Oe(f.promise, "status") && h.promise.status !== f.promise.status, x = i == null ? void 0 : i.find(
570
- (C) => C.queryHash === h.queryHash
571
- );
572
- v && (!x || h.state.dataUpdatedAt > x.state.dataUpdatedAt) && g.push(h);
573
- }
574
- }
575
- m.length > 0 && Me(a, { queries: m }, u.current), g.length > 0 && o(
576
- (h) => h ? [...h, ...g] : g
577
- );
578
- }
579
- }, [a, i, s]), Z.useEffect(() => {
580
- i && (Me(a, { queries: i }, u.current), o(void 0));
581
- }, [a, i]), t;
582
- };
583
- const Is = (t) => {
584
- const e = V(t);
585
- return e.current = t, I(() => {
586
- e.current = t;
587
- }, [t]), e;
588
- }, Qs = () => {
589
- var o;
590
- const t = B(), e = E(), s = xt(), n = te(), a = Is(n.pathname), i = (o = e.options.protectedRoutes) == null ? void 0 : o.some(
591
- (u) => vt({ path: u, end: !0 }, n.pathname)
592
- );
593
- if (It({
594
- queryKey: ["login-redirect"],
595
- queryFn: async () => {
596
- var u;
597
- return await new Promise((d) => setTimeout(d, 1200)), await ((u = e.authentication) == null ? void 0 : u.signIn({
598
- redirectTo: a.current
599
- })), !0;
600
- },
601
- enabled: typeof window < "u" && i && !t.isPending && !t.isAuthenticated
602
- }), i && !t.isAuthenticated)
603
- return /* @__PURE__ */ r.jsx(
604
- Qt,
605
- {
606
- open: !0,
607
- onOpenChange: (u) => {
608
- u || s(-1);
609
- },
610
- children: /* @__PURE__ */ r.jsxs(Rt, { children: [
611
- /* @__PURE__ */ r.jsx(Ft, { children: /* @__PURE__ */ r.jsx(Ht, { children: "Logging you in..." }) }),
612
- /* @__PURE__ */ r.jsx(Lt, { children: "Please wait while we log you in." })
613
- ] })
614
- }
615
- );
616
- if (i && !t.isAuthEnabled)
617
- throw new $e("Authentication is not enabled", {
618
- title: "Authentication is not enabled",
619
- developerHint: "To use protectedRoutes you need authentication to be enabled"
620
- });
621
- return /* @__PURE__ */ r.jsx(ce, {});
622
- };
623
- function Rs({ error: t }) {
624
- return /* @__PURE__ */ r.jsx(Ye, { error: t });
625
- }
626
- /**
627
- * react-router v7.1.5
628
- *
629
- * Copyright (c) Remix Software Inc.
630
- *
631
- * This source code is licensed under the MIT license found in the
632
- * LICENSE.md file in the root directory of this source tree.
633
- *
634
- * @license MIT
635
- */
636
- function Fs(t) {
637
- return /* @__PURE__ */ Z.createElement(yt, { flushSync: Gt.flushSync, ...t });
638
- }
639
- const oe = he({ stagger: !1 }), Hs = new As({
640
- defaultOptions: {
641
- queries: {
642
- staleTime: 1e3 * 60 * 5
643
- }
644
- }
645
- }), Ls = ({
646
- router: t,
647
- hydrate: e = !1
648
- }) => /* @__PURE__ */ r.jsx(Ze, { children: /* @__PURE__ */ r.jsx(Ke, { client: Hs, children: /* @__PURE__ */ r.jsx(Ts, { state: e ? window.DATA : void 0, children: /* @__PURE__ */ r.jsx(Fe, { children: /* @__PURE__ */ r.jsx(oe.Provider, { value: { stagger: !e }, children: /* @__PURE__ */ r.jsx(Fs, { router: t }) }) }) }) }) }), Bs = ({
649
- router: t,
650
- context: e,
651
- queryClient: s,
652
- helmetContext: n
653
- }) => /* @__PURE__ */ r.jsx(Ze, { children: /* @__PURE__ */ r.jsx(Ke, { client: s, children: /* @__PURE__ */ r.jsx(Fe, { context: n, children: /* @__PURE__ */ r.jsx(bt, { router: t, context: e }) }) }) });
654
- var U = { exports: {} }, zs = U.exports, Ae;
655
- function Ks() {
656
- return Ae || (Ae = 1, function(t, e) {
657
- (function(s, n) {
658
- n(e, Bt);
659
- })(zs, function(s, n) {
660
- const a = {
661
- delay: 500,
662
- minDuration: 200,
663
- ssr: !0
664
- };
665
- function i() {
666
- const [u, d] = n.useState(!0);
667
- return n.useEffect(() => {
668
- d(!1);
669
- }, []), u;
670
- }
671
- function o(u, d) {
672
- d = Object.assign({}, a, d);
673
- const c = i() && d.ssr, m = c && u ? "DISPLAY" : "IDLE", [g, h] = n.useState(m), f = n.useRef(null);
674
- return n.useEffect(() => {
675
- if (u && (g === "IDLE" || c)) {
676
- clearTimeout(f.current);
677
- const v = c ? 0 : d.delay;
678
- f.current = setTimeout(() => {
679
- if (!u)
680
- return h("IDLE");
681
- f.current = setTimeout(() => {
682
- h("EXPIRE");
683
- }, d.minDuration), h("DISPLAY");
684
- }, v), c || h("DELAY");
685
- }
686
- !u && g !== "DISPLAY" && (clearTimeout(f.current), h("IDLE"));
687
- }, [u, g, d.delay, d.minDuration, c]), n.useEffect(() => () => clearTimeout(f.current), []), g === "DISPLAY" || g === "EXPIRE";
688
- }
689
- s.defaultOptions = a, s.useSpinDelay = o;
690
- });
691
- }(U, U.exports)), U.exports;
692
- }
693
- var $s = Ks();
694
- const Zs = () => {
695
- const t = te(), e = V(t.pathname);
696
- I(() => {
697
- const s = e.current !== t.pathname, n = t.hash !== "";
698
- s && !n && window.scrollTo(0, 0), e.current = t.pathname;
699
- }, [t.pathname, t.hash]);
700
- };
701
- function Us({
702
- className: t,
703
- ...e
704
- }) {
705
- return /* @__PURE__ */ r.jsx(
706
- "div",
707
- {
708
- className: Q("animate-pulse rounded-md bg-muted", t),
709
- ...e
710
- }
711
- );
712
- }
713
- const qe = {
714
- info: "bg-blue-500",
715
- note: "bg-gray-500",
716
- tip: "bg-green-600",
717
- caution: "bg-orange-500",
718
- danger: "bg-rose-500"
719
- }, Ys = () => {
720
- const { page: t } = E(), [e, s] = z(!0);
721
- if (!(t != null && t.banner) || !e)
722
- return /* @__PURE__ */ r.jsx("style", { children: ":root { --banner-height: 0px; }" });
723
- const n = t.banner.color && t.banner.color in qe ? qe[t.banner.color] : t.banner.color ? void 0 : "bg-primary", a = n ? {} : { backgroundColor: t.banner.color };
724
- return /* @__PURE__ */ r.jsxs(
725
- "div",
726
- {
727
- className: Q(
728
- "relative text-primary-foreground text-sm font-medium px-4 py-2 flex gap-2 items-center",
729
- n
730
- ),
731
- "data-pagefind-ignore": "all",
732
- style: a,
733
- children: [
734
- /* @__PURE__ */ r.jsx("div", { className: "w-full", children: t.banner.message }),
735
- t.banner.dismissible && /* @__PURE__ */ r.jsx(
736
- "button",
737
- {
738
- type: "button",
739
- className: "md:absolute md:right-4 -m-1.5 p-1.5 hover:bg-accent-foreground/10 rounded-md",
740
- onClick: () => s(!1),
741
- children: /* @__PURE__ */ r.jsx(Wt, { size: 16 })
742
- }
743
- )
744
- ]
745
- }
746
- );
747
- }, et = ({ className: t }) => {
748
- const e = E(), [s, n] = z(!1), a = zt(() => n(!1), []);
749
- I(() => {
750
- if (s)
751
- return;
752
- function o(u) {
753
- u.key === "k" && (u.metaKey || u.ctrlKey) && (u.preventDefault(), n(!0));
754
- }
755
- return window.addEventListener("keydown", o), () => {
756
- window.removeEventListener("keydown", o);
757
- };
758
- }, [s, n]);
759
- const i = e.plugins.find(us);
760
- return i ? /* @__PURE__ */ r.jsxs("div", { className: t, children: [
761
- /* @__PURE__ */ r.jsxs(
762
- "button",
763
- {
764
- type: "button",
765
- onClick: () => n(!0),
766
- 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",
767
- children: [
768
- /* @__PURE__ */ r.jsxs("div", { className: "flex items-center gap-2 flex-grow", children: [
769
- /* @__PURE__ */ r.jsx(Jt, { size: 14 }),
770
- "Search"
771
- ] }),
772
- /* @__PURE__ */ r.jsx("kbd", { className: "absolute right-[0.3rem] top-[0.3rem] hidden h-5 select-none items-center gap-1 rounded border bg-muted px-1.5 font-mono text-[11px] font-medium opacity-100 sm:flex", children: "⌘K" })
773
- ]
774
- }
775
- ),
776
- /* @__PURE__ */ r.jsx(fe, { fallback: null, children: i.renderSearch({
777
- isOpen: s,
778
- onClose: a
779
- }) })
780
- ] }) : null;
781
- }, tt = () => {
782
- const { resolvedTheme: t, setTheme: e } = He();
783
- return /* @__PURE__ */ r.jsx(ge, { fallback: /* @__PURE__ */ r.jsx(ie, { variant: "ghost", size: "icon" }), children: /* @__PURE__ */ r.jsxs(
784
- "button",
785
- {
786
- type: "button",
787
- className: "flex rounded-full border p-0.5 gap-0.5 group",
788
- onClick: () => e(t === "dark" ? "light" : "dark"),
789
- "aria-label": t === "dark" ? "Switch to light mode" : "Switch to dark mode",
790
- children: [
791
- /* @__PURE__ */ r.jsx(
792
- "div",
793
- {
794
- className: Q(
795
- "border border-transparent rounded-full p-0.5 [&>svg>circle]:transition-colors [&>svg>path]:transition-transform transition-all [&>svg>path]:duration-200 [&>svg>circle]:duration-500 [&>svg>circle]:fill-transparent",
796
- t === "light" && "border-border bg-muted",
797
- t === "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] "
798
- ),
799
- children: /* @__PURE__ */ r.jsx(es, { size: 16 })
800
- }
801
- ),
802
- /* @__PURE__ */ r.jsx(
803
- "div",
804
- {
805
- className: Q(
806
- "border border-transparent rounded-full p-0.5 transition-transform transform-gpu duration-500",
807
- t === "dark" && "border-border bg-muted [&>svg>path]:fill-white [&>svg>path]:stroke-transparent",
808
- t === "light" && "group-hover:rotate-[-10deg] [&>svg>path]:stroke-currentColor"
809
- ),
810
- children: /* @__PURE__ */ r.jsx(ts, { size: 16 })
811
- }
812
- )
813
- ]
814
- }
815
- ) });
816
- }, st = (t) => (e) => e.display === "auth" && t || e.display === "anon" && !t || !e.display || e.display === "always", Vs = () => {
817
- const { topNavigation: t } = E(), { isAuthenticated: e } = B();
818
- return t.length <= 1 ? /* @__PURE__ */ r.jsx("style", { children: ":root { --top-nav-height: 0px; }" }) : /* @__PURE__ */ r.jsx(fe, { children: /* @__PURE__ */ r.jsxs("div", { className: " items-center justify-between px-8 h-[--top-nav-height] hidden lg:flex text-sm", children: [
819
- /* @__PURE__ */ r.jsx("nav", { className: "text-sm", children: /* @__PURE__ */ r.jsx("ul", { className: "flex flex-row items-center gap-8", children: t.filter(st(e)).map((s) => /* @__PURE__ */ r.jsx("li", { children: /* @__PURE__ */ r.jsx(rt, { ...s }) }, s.id)) }) }),
820
- /* @__PURE__ */ r.jsx(S, { name: "top-navigation-side" })
821
- ] }) });
822
- }, rt = ({
823
- id: t,
824
- label: e,
825
- default: s
826
- }) => {
827
- var c;
828
- const { sidebars: n } = E(), a = n[t], i = Le(), o = !!ue().location, u = ((c = i.topNavItem) == null ? void 0 : c.id) === t && !o, d = s ?? (a ? wt(a, (m) => {
829
- if (m.type === "doc") return ae(m.id);
830
- }) : ae(t));
831
- if (!d)
832
- throw new $e("Page not found.", {
833
- developerHint: `No links found in top navigation for '${t}'. Check that the sidebar isn't empty or that a default link is set.`
834
- });
835
- return (
836
- // We don't use isActive here because it has to be inside the sidebar,
837
- // the top nav id doesn't necessarily start with the sidebar id
838
- /* @__PURE__ */ r.jsx(
839
- jt,
840
- {
841
- className: ({ isPending: m }) => Ns(
842
- "block lg:py-3.5 font-medium -mb-px",
843
- u || m ? "border-primary text-foreground" : "border-transparent text-foreground/75 hover:text-foreground hover:border-accent-foreground/25"
844
- ),
845
- to: d,
846
- children: e
847
- }
848
- )
849
- );
850
- }, Xs = () => {
851
- const { topNavigation: t } = E(), { isAuthenticated: e } = B(), [s, n] = z(!1);
852
- return /* @__PURE__ */ r.jsxs(
853
- Ve,
854
- {
855
- direction: "right",
856
- open: s,
857
- onOpenChange: (a) => n(a),
858
- children: [
859
- /* @__PURE__ */ r.jsx("div", { className: "flex lg:hidden justify-self-end", children: /* @__PURE__ */ r.jsx(Xe, { className: "lg:hidden", children: /* @__PURE__ */ r.jsx(ss, { size: 22 }) }) }),
860
- /* @__PURE__ */ r.jsx(
861
- _e,
862
- {
863
- className: "lg:hidden h-[100dvh] right-0 left-auto w-[320px] rounded-none",
864
- "aria-describedby": void 0,
865
- children: /* @__PURE__ */ r.jsxs("div", { className: "p-4 overflow-y-auto overscroll-none", children: [
866
- /* @__PURE__ */ r.jsx(Je, { children: /* @__PURE__ */ r.jsx(Ge, { children: "Navigation" }) }),
867
- /* @__PURE__ */ r.jsx(et, { className: "flex p-4" }),
868
- /* @__PURE__ */ r.jsxs("ul", { className: "flex flex-col items-center gap-4 p-4", children: [
869
- /* @__PURE__ */ r.jsx("li", { children: /* @__PURE__ */ r.jsx(tt, {}) }),
870
- t.filter(st(e)).map((a) => /* @__PURE__ */ r.jsx("li", { children: /* @__PURE__ */ r.jsx("button", { onClick: () => n(!1), children: /* @__PURE__ */ r.jsx(rt, { ...a }) }) }, a.label))
871
- ] })
872
- ] })
873
- }
874
- )
875
- ]
876
- }
877
- );
878
- }, ee = ({ item: t }) => t.children ? /* @__PURE__ */ r.jsxs(ws, { children: [
879
- /* @__PURE__ */ r.jsx(Ps, { children: t.label }),
880
- /* @__PURE__ */ r.jsx(Cs, { children: /* @__PURE__ */ r.jsx(ks, { children: t.children.map((e, s) => (
881
- // eslint-disable-next-line react/no-array-index-key
882
- /* @__PURE__ */ r.jsx(ee, { item: e }, s)
883
- )) }) })
884
- ] }, t.label) : /* @__PURE__ */ r.jsx(de, { to: t.path ?? "", children: /* @__PURE__ */ r.jsxs(Ss, { className: "flex gap-2", children: [
885
- t.icon && /* @__PURE__ */ r.jsx(t.icon, { size: 16, strokeWidth: 1, absoluteStrokeWidth: !0 }),
886
- t.label
887
- ] }, t.label) }), nt = Ue(function() {
888
- const e = B(), { isAuthenticated: s, profile: n, isAuthEnabled: a } = B(), i = E(), { page: o, plugins: u } = i, d = u.filter((c) => ds(c)).flatMap((c) => c.getProfileMenuItems(i)).sort((c) => c.weight ?? 0);
889
- return /* @__PURE__ */ r.jsxs("header", { className: "sticky lg:top-0 z-10 bg-background/80 backdrop-blur w-full", children: [
890
- /* @__PURE__ */ r.jsx(Ys, {}),
891
- /* @__PURE__ */ r.jsx("div", { className: "border-b", children: /* @__PURE__ */ r.jsxs("div", { className: "max-w-screen-2xl 2xl:border-x mx-auto grid grid-cols-[1fr_auto] lg:grid-cols-[calc(var(--side-nav-width))_1fr] lg:gap-12 items-center px-4 lg:px-8 h-[--top-header-height]", children: [
892
- /* @__PURE__ */ r.jsx("div", { className: "flex", children: /* @__PURE__ */ r.jsx(de, { to: "/", children: /* @__PURE__ */ r.jsxs("div", { className: "flex items-center gap-3.5", children: [
893
- (o == null ? void 0 : o.logo) && /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
894
- /* @__PURE__ */ r.jsx(
895
- "img",
896
- {
897
- src: /https?:\/\//.test(o.logo.src.light) ? o.logo.src.light : Ne(
898
- "/",
899
- o.logo.src.light
900
- ),
901
- alt: o.logo.alt ?? o.pageTitle,
902
- style: { width: o.logo.width },
903
- className: "h-10 dark:hidden",
904
- loading: "lazy"
905
- }
906
- ),
907
- /* @__PURE__ */ r.jsx(
908
- "img",
909
- {
910
- src: /https?:\/\//.test(o.logo.src.dark) ? o.logo.src.dark : Ne(
911
- "/",
912
- o.logo.src.dark
913
- ),
914
- alt: o.logo.alt ?? o.pageTitle,
915
- style: { width: o.logo.width },
916
- className: "h-10 hidden dark:block",
917
- loading: "lazy"
918
- }
919
- )
920
- ] }),
921
- /* @__PURE__ */ r.jsx("span", { className: "font-bold text-2xl text-foreground/85 tracking-wide", children: o == null ? void 0 : o.pageTitle })
922
- ] }) }) }),
923
- /* @__PURE__ */ r.jsxs("div", { className: "grid grid-cols-1 lg:grid-cols-[--sidecar-grid-cols] items-center gap-8", children: [
924
- /* @__PURE__ */ r.jsx("div", { className: "w-full justify-center hidden lg:flex", children: /* @__PURE__ */ r.jsx(et, {}) }),
925
- /* @__PURE__ */ r.jsx(Xs, {}),
926
- /* @__PURE__ */ r.jsxs("div", { className: "hidden lg:flex items-center justify-self-end text-sm gap-2", children: [
927
- /* @__PURE__ */ r.jsx(S, { name: "head-navigation-start" }),
928
- a && /* @__PURE__ */ r.jsx(
929
- ge,
930
- {
931
- fallback: /* @__PURE__ */ r.jsx(Us, { className: "rounded h-5 w-24 mr-4" }),
932
- children: s ? Object.values(d).length > 0 && /* @__PURE__ */ r.jsxs(vs, { modal: !1, children: [
933
- /* @__PURE__ */ r.jsx(ys, { asChild: !0, children: /* @__PURE__ */ r.jsx(ie, { variant: "ghost", children: n != null && n.name ? `${n.name}` : "My Account" }) }),
934
- /* @__PURE__ */ r.jsxs(bs, { className: "w-56", children: [
935
- /* @__PURE__ */ r.jsxs(js, { children: [
936
- n != null && n.name ? `${n.name}` : "My Account",
937
- (n == null ? void 0 : n.email) && /* @__PURE__ */ r.jsx("div", { className: "font-normal text-muted-foreground", children: n.email })
938
- ] }),
939
- d.filter((c) => c.category === "top").length > 0 && /* @__PURE__ */ r.jsx(re, {}),
940
- d.filter((c) => c.category === "top").map((c) => /* @__PURE__ */ r.jsx(ee, { item: c }, c.label)),
941
- d.filter(
942
- (c) => !c.category || c.category === "middle"
943
- ).length > 0 && /* @__PURE__ */ r.jsx(re, {}),
944
- d.filter(
945
- (c) => !c.category || c.category === "middle"
946
- ).map((c) => /* @__PURE__ */ r.jsx(ee, { item: c }, c.label)),
947
- d.filter((c) => c.category === "bottom").length > 0 && /* @__PURE__ */ r.jsx(re, {}),
948
- d.filter((c) => c.category === "bottom").map((c) => /* @__PURE__ */ r.jsx(ee, { item: c }, c.label))
949
- ] })
950
- ] }) : /* @__PURE__ */ r.jsx(ie, { variant: "ghost", onClick: () => e.login(), children: "Login" })
951
- }
952
- ),
953
- /* @__PURE__ */ r.jsx(S, { name: "head-navigation-end" }),
954
- /* @__PURE__ */ r.jsx(tt, {})
955
- ] })
956
- ] })
957
- ] }) }),
958
- /* @__PURE__ */ r.jsx("div", { className: "border-b hidden lg:block", children: /* @__PURE__ */ r.jsxs("div", { className: "max-w-screen-2xl mx-auto 2xl:border-x", children: [
959
- /* @__PURE__ */ r.jsx(S, { name: "top-navigation-before" }),
960
- /* @__PURE__ */ r.jsx(Vs, {}),
961
- /* @__PURE__ */ r.jsx(S, { name: "top-navigation-after" })
962
- ] }) })
963
- ] });
964
- }), at = Kt(({ children: t, className: e, pushMainContent: s }, n) => /* @__PURE__ */ r.jsx(
965
- "nav",
966
- {
967
- "data-navigation": String(s),
968
- className: Q(
969
- "scrollbar peer hidden lg:flex flex-col fixed text-sm overflow-y-auto shrink-0 border-r pr-6",
970
- "-mx-[--padding-nav-item] pb-20 pt-[--padding-content-top]",
971
- "w-[--side-nav-width] h-[calc(100%-var(--header-height))] scroll-pt-2 gap-2",
972
- !s && "border-r-0",
973
- e
974
- ),
975
- ref: n,
976
- children: t
977
- }
978
- ));
979
- at.displayName = "SidebarWrapper";
980
- const _s = ({
981
- onRequestClose: t
982
- }) => {
983
- const e = V(null), s = Le();
984
- return I(() => {
985
- var a;
986
- const n = (a = e.current) == null ? void 0 : a.querySelector('[aria-current="page"]');
987
- ht(n ?? null);
988
- }, []), /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
989
- /* @__PURE__ */ r.jsxs(
990
- at,
991
- {
992
- ref: e,
993
- pushMainContent: s.sidebar.length > 0,
994
- children: [
995
- /* @__PURE__ */ r.jsx(S, { name: "zudoku-before-navigation" }),
996
- s.sidebar.map((n) => /* @__PURE__ */ r.jsx(ye, { item: n }, n.label)),
997
- /* @__PURE__ */ r.jsx(S, { name: "zudoku-after-navigation" })
998
- ]
999
- }
1000
- ),
1001
- /* @__PURE__ */ r.jsx(
1002
- _e,
1003
- {
1004
- className: "lg:hidden h-[100dvh] left-0 w-[320px] rounded-none",
1005
- "aria-describedby": void 0,
1006
- children: /* @__PURE__ */ r.jsxs("div", { className: "p-4 overflow-y-auto overscroll-none", children: [
1007
- /* @__PURE__ */ r.jsx(Je, { children: /* @__PURE__ */ r.jsx(Ge, { children: "Sidebar" }) }),
1008
- s.sidebar.map((n) => /* @__PURE__ */ r.jsx(
1009
- ye,
1010
- {
1011
- item: n,
1012
- onRequestClose: t
1013
- },
1014
- n.label
1015
- ))
1016
- ] })
1017
- }
1018
- )
1019
- ] });
1020
- }, Te = () => /* @__PURE__ */ r.jsx("main", { className: "grid h-[calc(100vh-var(--header-height))] place-items-center", children: /* @__PURE__ */ r.jsx(We, {}) }), Gs = ({ children: t }) => {
1021
- const e = te(), { setActiveAnchor: s } = ns(), { meta: n, authentication: a } = E();
1022
- ft(), Zs();
1023
- const i = V(e.pathname);
1024
- I(() => {
1025
- var m;
1026
- (m = a == null ? void 0 : a.onPageLoad) == null || m.call(a);
1027
- }, [a]), I(() => {
1028
- e.pathname !== i.current && s(""), i.current = e.pathname;
1029
- }, [e.pathname, s]);
1030
- const o = !!ue().location, u = $s.useSpinDelay(o, {
1031
- delay: 300,
1032
- minDuration: 500
1033
- }), [d, c] = z(!1);
1034
- return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
1035
- !1,
1036
- /* @__PURE__ */ r.jsxs(le, { titleTemplate: n == null ? void 0 : n.title, children: [
1037
- (n == null ? void 0 : n.description) && /* @__PURE__ */ r.jsx("meta", { name: "description", content: n.description }),
1038
- (n == null ? void 0 : n.favicon) && /* @__PURE__ */ r.jsx("link", { rel: "icon", href: n.favicon })
1039
- ] }),
1040
- /* @__PURE__ */ r.jsx(S, { name: "layout-before-head" }),
1041
- /* @__PURE__ */ r.jsx(nt, {}),
1042
- /* @__PURE__ */ r.jsx(S, { name: "layout-after-head" }),
1043
- /* @__PURE__ */ r.jsx("div", { className: "w-full min-h-[calc(100vh-var(--header-height))] max-w-screen-2xl mx-auto px-4 lg:px-8 2xl:border-x", children: u ? /* @__PURE__ */ r.jsx(Te, {}) : /* @__PURE__ */ r.jsx(fe, { fallback: /* @__PURE__ */ r.jsx(Te, {}), children: /* @__PURE__ */ r.jsxs(
1044
- Ve,
1045
- {
1046
- direction: "left",
1047
- open: d,
1048
- onOpenChange: (m) => c(m),
1049
- children: [
1050
- /* @__PURE__ */ r.jsx(_s, { onRequestClose: () => c(!1) }),
1051
- /* @__PURE__ */ r.jsx(
1052
- "div",
1053
- {
1054
- className: Q(
1055
- "lg:hidden -mx-4 px-4 py-2 sticky bg-background/80 backdrop-blur z-10 top-0 left-0 right-0 border-b",
1056
- "peer-data-[navigation=false]:hidden"
1057
- ),
1058
- children: /* @__PURE__ */ r.jsxs(Xe, { className: "flex items-center gap-2", children: [
1059
- /* @__PURE__ */ r.jsx(rs, { size: 16, strokeWidth: 1.5 }),
1060
- /* @__PURE__ */ r.jsx("span", { className: "text-sm", children: "Menu" })
1061
- ] })
1062
- }
1063
- ),
1064
- /* @__PURE__ */ r.jsxs(
1065
- "main",
1066
- {
1067
- "data-pagefind-body": !0,
1068
- className: Q(
1069
- "h-full dark:border-white/10 translate-x-0",
1070
- "lg:overflow-visible",
1071
- // This works in tandem with the `SidebarWrapper` component
1072
- "lg:peer-data-[navigation=true]:w-[calc(100%-var(--side-nav-width))]",
1073
- "lg:peer-data-[navigation=true]:translate-x-[--side-nav-width] lg:peer-data-[navigation=true]:pl-12"
1074
- ),
1075
- children: [
1076
- /* @__PURE__ */ r.jsx(S, { name: "zudoku-before-content" }),
1077
- t ?? /* @__PURE__ */ r.jsx(ce, {}),
1078
- /* @__PURE__ */ r.jsx(S, { name: "zudoku-after-content" })
1079
- ]
1080
- }
1081
- )
1082
- ]
1083
- }
1084
- ) }) })
1085
- ] });
1086
- }, Ws = ({
1087
- title: t = "An error occurred",
1088
- message: e,
1089
- category: s
1090
- }) => /* @__PURE__ */ r.jsxs("div", { className: is + " h-full pt-[--padding-content-top]", children: [
1091
- s && /* @__PURE__ */ r.jsx(Ds, { children: s }),
1092
- t && /* @__PURE__ */ r.jsx(as, { level: 1, className: "flex gap-3.5 items-center", children: t }),
1093
- /* @__PURE__ */ r.jsx("p", { children: e })
1094
- ] }), Js = (t) => {
1095
- switch (t) {
1096
- case 400:
1097
- return {
1098
- title: "Bad Request",
1099
- message: "The request could not be understood by the server due to malformed syntax."
1100
- };
1101
- case 403:
1102
- return {
1103
- title: "Forbidden",
1104
- message: "You don't have permission to access this resource."
1105
- };
1106
- case 404:
1107
- return {
1108
- title: "Not Found",
1109
- message: "The requested resource could not be found."
1110
- };
1111
- case 405:
1112
- return {
1113
- title: "Method Not Allowed",
1114
- message: "The request method is not supported for the requested resource."
1115
- };
1116
- case 414:
1117
- return {
1118
- title: "Request URI Too Large",
1119
- message: "The request URI is too large."
1120
- };
1121
- case 416:
1122
- return {
1123
- title: "Range Not Satisfiable",
1124
- message: "The server cannot satisfy the request range."
1125
- };
1126
- case 500:
1127
- return {
1128
- title: "Internal Server Error",
1129
- message: "An unexpected error occurred while processing your request."
1130
- };
1131
- case 501:
1132
- return {
1133
- title: "Not Implemented",
1134
- message: "The server does not support the functionality required to fulfill the request."
1135
- };
1136
- case 502:
1137
- return {
1138
- title: "Bad Gateway",
1139
- message: "The server received an invalid response from the upstream server."
1140
- };
1141
- case 503:
1142
- return {
1143
- title: "Service Unavailable",
1144
- message: "The server is temporarily unable to handle the request."
1145
- };
1146
- case 504:
1147
- return {
1148
- title: "Gateway Timeout",
1149
- message: "The server did not receive a timely response from the upstream server."
1150
- };
1151
- default:
1152
- return {
1153
- title: "An error occurred",
1154
- message: "Something went wrong while processing your request."
1155
- };
1156
- }
1157
- }, er = ({ statusCode: t, message: e }) => {
1158
- const s = Js(t);
1159
- return /* @__PURE__ */ r.jsx(
1160
- Ws,
1161
- {
1162
- title: s.title,
1163
- message: e ?? s.message,
1164
- category: t
1165
- }
1166
- );
1167
- }, tr = he(null), ne = {
1168
- didCatch: !1,
1169
- error: null
1170
- };
1171
- class sr extends $t {
1172
- constructor(e) {
1173
- super(e), this.resetErrorBoundary = this.resetErrorBoundary.bind(this), this.state = ne;
1174
- }
1175
- static getDerivedStateFromError(e) {
1176
- return {
1177
- didCatch: !0,
1178
- error: e
1179
- };
1180
- }
1181
- resetErrorBoundary() {
1182
- const {
1183
- error: e
1184
- } = this.state;
1185
- if (e !== null) {
1186
- for (var s, n, a = arguments.length, i = new Array(a), o = 0; o < a; o++)
1187
- i[o] = arguments[o];
1188
- (s = (n = this.props).onReset) === null || s === void 0 || s.call(n, {
1189
- args: i,
1190
- reason: "imperative-api"
1191
- }), this.setState(ne);
1192
- }
1193
- }
1194
- componentDidCatch(e, s) {
1195
- var n, a;
1196
- (n = (a = this.props).onError) === null || n === void 0 || n.call(a, e, s);
1197
- }
1198
- componentDidUpdate(e, s) {
1199
- const {
1200
- didCatch: n
1201
- } = this.state, {
1202
- resetKeys: a
1203
- } = this.props;
1204
- if (n && s.error !== null && rr(e.resetKeys, a)) {
1205
- var i, o;
1206
- (i = (o = this.props).onReset) === null || i === void 0 || i.call(o, {
1207
- next: a,
1208
- prev: e.resetKeys,
1209
- reason: "keys"
1210
- }), this.setState(ne);
1211
- }
1212
- }
1213
- render() {
1214
- const {
1215
- children: e,
1216
- fallbackRender: s,
1217
- FallbackComponent: n,
1218
- fallback: a
1219
- } = this.props, {
1220
- didCatch: i,
1221
- error: o
1222
- } = this.state;
1223
- let u = e;
1224
- if (i) {
1225
- const d = {
1226
- error: o,
1227
- resetErrorBoundary: this.resetErrorBoundary
1228
- };
1229
- if (typeof s == "function")
1230
- u = s(d);
1231
- else if (n)
1232
- u = Se(n, d);
1233
- else if (a !== void 0)
1234
- u = a;
1235
- else
1236
- throw o;
1237
- }
1238
- return Se(tr.Provider, {
1239
- value: {
1240
- didCatch: i,
1241
- error: o,
1242
- resetErrorBoundary: this.resetErrorBoundary
1243
- }
1244
- }, u);
1245
- }
1246
- }
1247
- function rr() {
1248
- let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
1249
- return t.length !== e.length || t.some((s, n) => !Object.is(s, e[n]));
1250
- }
1251
- let nr = () => ({
1252
- emit(t, ...e) {
1253
- for (let s = this.events[t] || [], n = 0, a = s.length; n < a; n++)
1254
- s[n](...e);
1255
- },
1256
- events: {},
1257
- on(t, e) {
1258
- var s;
1259
- return ((s = this.events)[t] || (s[t] = [])).push(e), () => {
1260
- var n;
1261
- this.events[t] = (n = this.events[t]) == null ? void 0 : n.filter((a) => e !== a);
1262
- };
1263
- }
1264
- });
1265
- const ar = (t) => Object.entries(t);
1266
- class ir {
1267
- constructor(e) {
1268
- j(this, "plugins");
1269
- j(this, "sidebars");
1270
- j(this, "topNavigation");
1271
- j(this, "meta");
1272
- j(this, "page");
1273
- j(this, "authentication");
1274
- j(this, "navigationPlugins");
1275
- j(this, "emitter", nr());
1276
- j(this, "initialize", async () => {
1277
- await Promise.all(
1278
- this.plugins.filter(gs).map((e) => {
1279
- var s;
1280
- return (s = e.initialize) == null ? void 0 : s.call(e, this);
1281
- })
1282
- );
1283
- });
1284
- j(this, "getApiIdentities", async () => (await Promise.all(
1285
- this.plugins.filter(ms).map((s) => s.getIdentities(this))
1286
- )).flat());
1287
- j(this, "emitEvent", (e, ...s) => this.emitter.emit(e, ...s));
1288
- j(this, "getPluginSidebar", async (e) => (await Promise.all(
1289
- this.navigationPlugins.map(
1290
- (n) => {
1291
- var a;
1292
- return (a = n.getSidebar) == null ? void 0 : a.call(n, ae(e));
1293
- }
1294
- )
1295
- )).flatMap((n) => n ?? []));
1296
- j(this, "signRequest", async (e) => {
1297
- if (!this.authentication)
1298
- throw new Error("No authentication provider configured");
1299
- const s = await this.authentication.getAccessToken();
1300
- return e.headers.set("Authorization", `Bearer ${s}`), e;
1301
- });
1302
- this.options = e, this.plugins = e.plugins ?? [], this.topNavigation = e.topNavigation ?? [], this.sidebars = e.sidebars ?? {}, this.navigationPlugins = this.plugins.filter(hs), this.authentication = e.authentication, this.meta = e.metadata, this.page = e.page, this.plugins.forEach((s) => {
1303
- fs(s) && ar(s.events).forEach(([n, a]) => {
1304
- this.emitter.on(n, a);
1305
- });
1306
- });
1307
- }
1308
- addEventListener(e, s) {
1309
- return this.emitter.on(e, s);
1310
- }
1311
- }
1312
- function or({ error: t, resetErrorBoundary: e }) {
1313
- return /* @__PURE__ */ r.jsx(Ye, { error: t });
1314
- }
1315
- const J = globalThis;
1316
- (!J.requestIdleCallback || !J.cancelIdleCallback) && (J.requestIdleCallback = (t) => setTimeout(t, 1), J.cancelIdleCallback = clearTimeout);
1317
- const it = {
1318
- Header: nt
1319
- }, lr = he(it), cr = lr.Provider, ur = () => {
1320
- const t = te(), e = E(), s = V(void 0);
1321
- return I(() => {
1322
- e.emitEvent("location", {
1323
- from: s.current,
1324
- to: t
1325
- }), s.current = t;
1326
- }, [e, t]), null;
1327
- }, dr = ({
1328
- children: t,
1329
- context: e
1330
- }) => (Pt({
1331
- queryFn: async () => (await e.initialize(), !0),
1332
- queryKey: ["zudoku-initialize"]
1333
- }), /* @__PURE__ */ r.jsx(Ct.Provider, { value: e, children: t })), ot = Ue(
1334
- ({ children: t, ...e }) => {
1335
- var g, h;
1336
- const s = se(
1337
- () => ({ ...it, ...e.overrides }),
1338
- [e.overrides]
1339
- ), n = se(() => {
1340
- var v;
1341
- return {
1342
- ...(e.plugins ?? []).filter(ps).flatMap(
1343
- (x) => x.getMdxComponents ? [x.getMdxComponents()] : []
1344
- ).reduce(
1345
- (x, C) => ({ ...x, ...C }),
1346
- {}
1347
- ),
1348
- ...os,
1349
- ...(v = e.mdx) == null ? void 0 : v.components
1350
- };
1351
- }, [(g = e.mdx) == null ? void 0 : g.components, e.plugins]), { stagger: a } = Zt(oe), [i, o] = z(!1), u = se(
1352
- () => i ? { stagger: !0 } : { stagger: a },
1353
- [a, i]
1354
- ), d = ue();
1355
- I(() => {
1356
- i || o(!0);
1357
- }, [i, d.location]);
1358
- const [c] = z(() => new ir(e)), m = (h = e.plugins) == null ? void 0 : h.flatMap((f) => {
1359
- var v;
1360
- return xs(f) ? ((v = f.getHead) == null ? void 0 : v.call(f)) ?? [] : [];
1361
- }).map((f, v) => /* @__PURE__ */ r.jsx(le, { children: f }, v));
1362
- return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
1363
- m,
1364
- /* @__PURE__ */ r.jsx(oe.Provider, { value: u, children: /* @__PURE__ */ r.jsxs(dr, { context: c, children: [
1365
- /* @__PURE__ */ r.jsx(ur, {}),
1366
- /* @__PURE__ */ r.jsx(gt, { components: n, children: /* @__PURE__ */ r.jsx(pt, { attribute: "class", disableTransitionOnChange: !0, children: /* @__PURE__ */ r.jsx(cr, { value: s, children: /* @__PURE__ */ r.jsx(Ut, { slotlets: e.slotlets, children: /* @__PURE__ */ r.jsx(ls, { children: t ?? /* @__PURE__ */ r.jsx(ce, {}) }) }) }) }) })
1367
- ] }) })
1368
- ] });
1369
- }
1370
- );
1371
- ot.displayName = "ZudokoInner";
1372
- const lt = (t) => /* @__PURE__ */ r.jsx(sr, { FallbackComponent: or, children: /* @__PURE__ */ r.jsx(ot, { ...t }) });
1373
- lt.displayName = "Zudoku";
1374
- const Fr = mt, Hr = Gs, Lr = Yt, Br = Rs, zr = Ls, Kr = Bs, $r = Qs, Zr = le, Ur = E, Yr = B, Vr = kt, Xr = St, _r = lt, Gr = er, Wr = Xt, Jr = cs, en = We, tn = ge, sn = Vt, rn = de, nn = He;
1375
- export {
1376
- zr as B,
1377
- Xr as C,
1378
- Zr as H,
1379
- rn as L,
1380
- Jr as M,
1381
- Lr as R,
1382
- Br as S,
1383
- _r as Z,
1384
- Fr as a,
1385
- Hr as b,
1386
- Kr as c,
1387
- $r as d,
1388
- Ur as e,
1389
- Vr as f,
1390
- Gr as g,
1391
- Wr as h,
1392
- en as i,
1393
- tn as j,
1394
- sn as k,
1395
- nn as l,
1396
- ar as o,
1397
- Yr as u
1398
- };
1399
- //# sourceMappingURL=index-vn5bsvmU.js.map