@x-wave/blog 1.0.33 → 1.0.34
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/index.js +554 -519
- package/locales/index.ts +3 -0
- package/package.json +1 -1
- package/styles/index.css +1 -1
package/index.js
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { useTranslation as
|
|
3
|
-
import { useLocation as Q, useNavigate as X, Link as
|
|
4
|
-
import { CaretLeft as
|
|
5
|
-
import { useState as y, useEffect as
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import { createPortal as
|
|
10
|
-
const
|
|
11
|
-
tabContainer:
|
|
12
|
-
tab:
|
|
13
|
-
active:
|
|
1
|
+
import { jsxs as d, jsx as t, Fragment as q } from "react/jsx-runtime";
|
|
2
|
+
import { useTranslation as A } from "react-i18next";
|
|
3
|
+
import { useLocation as Q, useNavigate as X, Link as dt, useParams as vt, Navigate as Wt, Routes as Yt, Route as Pt } from "react-router-dom";
|
|
4
|
+
import { CaretLeft as Vt, CaretRight as Ht, ArrowSquareOut as Jt, User as Zt, CalendarBlank as te, X as bt, Tag as ee, MagnifyingGlass as Dt, List as ne, Sun as Mt, Moon as Bt, Monitor as Et, CaretDown as pt, Globe as ae } from "@phosphor-icons/react";
|
|
5
|
+
import { useState as y, useEffect as S, createContext as oe, useContext as se, useRef as G } from "react";
|
|
6
|
+
import ce from "i18next";
|
|
7
|
+
import re from "react-markdown";
|
|
8
|
+
import le from "remark-gfm";
|
|
9
|
+
import { createPortal as zt } from "react-dom";
|
|
10
|
+
const ie = "_tabContainer_zk6h4_1", de = "_tab_zk6h4_1", ue = "_active_zk6h4_45", et = {
|
|
11
|
+
tabContainer: ie,
|
|
12
|
+
tab: de,
|
|
13
|
+
active: ue
|
|
14
14
|
};
|
|
15
|
-
function
|
|
16
|
-
const { t: n } =
|
|
15
|
+
function he({ hasAdvanced: e }) {
|
|
16
|
+
const { t: n } = A(), o = Q(), a = X();
|
|
17
17
|
if (!e) return null;
|
|
18
18
|
const s = new URLSearchParams(o.search).has("advanced"), l = () => {
|
|
19
19
|
if (s) {
|
|
20
20
|
const h = new URLSearchParams(o.search);
|
|
21
21
|
h.delete("advanced");
|
|
22
|
-
const
|
|
22
|
+
const u = h.toString(), i = u ? `?${u}` : "";
|
|
23
23
|
a(`${o.pathname}${i}${o.hash}`);
|
|
24
24
|
}
|
|
25
25
|
}, g = () => {
|
|
@@ -28,7 +28,7 @@ function de({ hasAdvanced: e }) {
|
|
|
28
28
|
h.set("advanced", ""), a(`${o.pathname}?${h.toString()}${o.hash}`);
|
|
29
29
|
}
|
|
30
30
|
};
|
|
31
|
-
return /* @__PURE__ */
|
|
31
|
+
return /* @__PURE__ */ d("div", { className: et.tabContainer, children: [
|
|
32
32
|
/* @__PURE__ */ t(
|
|
33
33
|
"button",
|
|
34
34
|
{
|
|
@@ -49,10 +49,10 @@ function de({ hasAdvanced: e }) {
|
|
|
49
49
|
)
|
|
50
50
|
] });
|
|
51
51
|
}
|
|
52
|
-
function
|
|
52
|
+
function me({ children: e }) {
|
|
53
53
|
return /* @__PURE__ */ t("div", { className: "xw-blog-root", children: e });
|
|
54
54
|
}
|
|
55
|
-
function
|
|
55
|
+
function Ft(e) {
|
|
56
56
|
function n(o) {
|
|
57
57
|
const a = o.match(/^---\s*\n([\s\S]*?)\n---\s*\n/);
|
|
58
58
|
if (!a) return { frontmatter: {}, content: o };
|
|
@@ -79,11 +79,11 @@ function zt(e) {
|
|
|
79
79
|
}
|
|
80
80
|
}
|
|
81
81
|
g && h.length > 0 && (c[l] = h);
|
|
82
|
-
const
|
|
82
|
+
const u = o.replace(
|
|
83
83
|
/^---\s*\n[\s\S]*?\n---\s*\n/,
|
|
84
84
|
""
|
|
85
85
|
);
|
|
86
|
-
return { frontmatter: c, content:
|
|
86
|
+
return { frontmatter: c, content: u };
|
|
87
87
|
}
|
|
88
88
|
return {
|
|
89
89
|
/**
|
|
@@ -93,8 +93,8 @@ function zt(e) {
|
|
|
93
93
|
async loadMDXContent(o, a, c = !1) {
|
|
94
94
|
const s = c ? `${a}-advanced.mdx` : `${a}.mdx`, l = `./docs/${o}/${s}`, g = e[l];
|
|
95
95
|
if (!g) throw new Error(`File not found: ${l}`);
|
|
96
|
-
const h = await g(), { frontmatter:
|
|
97
|
-
return { content: i, frontmatter:
|
|
96
|
+
const h = await g(), { frontmatter: u, content: i } = n(h);
|
|
97
|
+
return { content: i, frontmatter: u };
|
|
98
98
|
},
|
|
99
99
|
/**
|
|
100
100
|
* Load English content for generating consistent heading IDs.
|
|
@@ -119,9 +119,9 @@ function zt(e) {
|
|
|
119
119
|
);
|
|
120
120
|
for (const l of s)
|
|
121
121
|
try {
|
|
122
|
-
const g = e[l], h = await g(), { frontmatter:
|
|
122
|
+
const g = e[l], h = await g(), { frontmatter: u, content: i } = n(h), f = l.split("/").pop() || "", _ = f.replace(".mdx", "").replace("-advanced", ""), v = typeof u.title == "string" ? u.title : void 0, w = i.match(/^#\s+(.+)$/m), r = v || (w ? w[1].trim() : _);
|
|
123
123
|
if (f.includes("-advanced")) continue;
|
|
124
|
-
const m =
|
|
124
|
+
const m = u.tags;
|
|
125
125
|
if (m && Array.isArray(m))
|
|
126
126
|
for (const N of m)
|
|
127
127
|
a[N] || (a[N] = []), a[N].some((I) => I.slug === _) || a[N].push({ slug: _, title: r });
|
|
@@ -132,43 +132,43 @@ function zt(e) {
|
|
|
132
132
|
}
|
|
133
133
|
};
|
|
134
134
|
}
|
|
135
|
-
function
|
|
136
|
-
const n =
|
|
135
|
+
function Eo(e) {
|
|
136
|
+
const n = Ft(e);
|
|
137
137
|
return {
|
|
138
138
|
mdxFiles: e,
|
|
139
139
|
loadContent: n.loadMDXContent,
|
|
140
140
|
loadEnglishContent: n.loadEnglishContent
|
|
141
141
|
};
|
|
142
142
|
}
|
|
143
|
-
const
|
|
144
|
-
const n = () => e || (typeof window > "u" ? "system" : localStorage.getItem(
|
|
145
|
-
return
|
|
146
|
-
const s =
|
|
143
|
+
const Rt = "app-theme", Ut = () => typeof window > "u" ? "light" : window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light", At = (e) => e === "system" ? Ut() : e, Kt = (e) => {
|
|
144
|
+
const n = () => e || (typeof window > "u" ? "system" : localStorage.getItem(Rt) || "system"), [o, a] = y(n);
|
|
145
|
+
return S(() => {
|
|
146
|
+
const s = At(o), l = document.querySelector(".xw-blog-root");
|
|
147
147
|
if (l && (l.classList.remove("light", "dark"), l.classList.add(s)), o === "system") {
|
|
148
148
|
const g = window.matchMedia("(prefers-color-scheme: dark)"), h = () => {
|
|
149
|
-
const
|
|
150
|
-
i && (i.classList.remove("light", "dark"), i.classList.add(
|
|
149
|
+
const u = Ut(), i = document.querySelector(".xw-blog-root");
|
|
150
|
+
i && (i.classList.remove("light", "dark"), i.classList.add(u));
|
|
151
151
|
};
|
|
152
152
|
return g.addEventListener("change", h), () => g.removeEventListener("change", h);
|
|
153
153
|
}
|
|
154
154
|
}, [o]), {
|
|
155
155
|
theme: o,
|
|
156
156
|
setTheme: (s) => {
|
|
157
|
-
localStorage.setItem(
|
|
157
|
+
localStorage.setItem(Rt, s), a(s);
|
|
158
158
|
},
|
|
159
|
-
effectiveTheme:
|
|
159
|
+
effectiveTheme: At(o)
|
|
160
160
|
};
|
|
161
|
-
},
|
|
161
|
+
}, ge = (e) => "items" in e, ot = (e) => "items" in e, ut = async (e, n, o) => {
|
|
162
162
|
const a = [];
|
|
163
163
|
for (const c of e)
|
|
164
|
-
if (
|
|
164
|
+
if (ge(c)) {
|
|
165
165
|
const s = [];
|
|
166
166
|
for (const g of c.items)
|
|
167
167
|
try {
|
|
168
|
-
const h = await o(n, g.slug, !1),
|
|
168
|
+
const h = await o(n, g.slug, !1), u = typeof h.frontmatter.title == "string" ? h.frontmatter.title : g.slug;
|
|
169
169
|
s.push({
|
|
170
170
|
...g,
|
|
171
|
-
title:
|
|
171
|
+
title: u
|
|
172
172
|
});
|
|
173
173
|
} catch {
|
|
174
174
|
s.push({
|
|
@@ -176,7 +176,7 @@ const Et = "app-theme", Ft = () => typeof window > "u" ? "light" : window.matchM
|
|
|
176
176
|
title: g.slug
|
|
177
177
|
});
|
|
178
178
|
}
|
|
179
|
-
const l =
|
|
179
|
+
const l = ce.getFixedT(n)(c.title);
|
|
180
180
|
a.push({
|
|
181
181
|
title: l,
|
|
182
182
|
items: s,
|
|
@@ -198,10 +198,10 @@ const Et = "app-theme", Ft = () => typeof window > "u" ? "light" : window.matchM
|
|
|
198
198
|
});
|
|
199
199
|
}
|
|
200
200
|
return a;
|
|
201
|
-
}, Z = (e) => e.toString().toLowerCase().trim().replace(/[^\w\s-]/g, "").replace(/\s+/g, "-").replace(/-+/g, "-").replace(/^-+|-+$/g, ""),
|
|
201
|
+
}, Z = (e) => e.toString().toLowerCase().trim().replace(/[^\w\s-]/g, "").replace(/\s+/g, "-").replace(/-+/g, "-").replace(/^-+|-+$/g, ""), _e = (e, n) => {
|
|
202
202
|
const o = [];
|
|
203
203
|
for (const c of n)
|
|
204
|
-
|
|
204
|
+
ot(c) ? o.push(...c.items) : o.push({ slug: c.slug, title: c.title });
|
|
205
205
|
const a = o.findIndex(
|
|
206
206
|
(c) => c.slug === e
|
|
207
207
|
);
|
|
@@ -209,60 +209,60 @@ const Et = "app-theme", Ft = () => typeof window > "u" ? "light" : window.matchM
|
|
|
209
209
|
prev: a > 0 ? o[a - 1] : void 0,
|
|
210
210
|
next: a < o.length - 1 ? o[a + 1] : void 0
|
|
211
211
|
};
|
|
212
|
-
},
|
|
213
|
-
function
|
|
212
|
+
}, qt = oe(null);
|
|
213
|
+
function Ro({
|
|
214
214
|
children: e,
|
|
215
215
|
config: n,
|
|
216
216
|
blog: o,
|
|
217
217
|
navigationData: a = []
|
|
218
218
|
}) {
|
|
219
|
-
|
|
219
|
+
Kt(n.defaultTheme);
|
|
220
220
|
const [c, s] = y({});
|
|
221
|
-
|
|
222
|
-
const { buildTagIndex: g } =
|
|
221
|
+
S(() => {
|
|
222
|
+
const { buildTagIndex: g } = Ft(o.mdxFiles), h = n.supportedLanguages.map(async (u) => {
|
|
223
223
|
try {
|
|
224
|
-
const i = await g(
|
|
225
|
-
return { language:
|
|
224
|
+
const i = await g(u);
|
|
225
|
+
return { language: u, index: i };
|
|
226
226
|
} catch (i) {
|
|
227
|
-
return console.error(`Failed to build tag index for ${
|
|
227
|
+
return console.error(`Failed to build tag index for ${u}:`, i), { language: u, index: {} };
|
|
228
228
|
}
|
|
229
229
|
});
|
|
230
|
-
Promise.all(h).then((
|
|
230
|
+
Promise.all(h).then((u) => {
|
|
231
231
|
const i = {};
|
|
232
|
-
for (const f of
|
|
232
|
+
for (const f of u)
|
|
233
233
|
i[f.language] = f.index;
|
|
234
234
|
s(i);
|
|
235
|
-
}).catch((
|
|
236
|
-
console.error("Failed to build tag indices:",
|
|
235
|
+
}).catch((u) => {
|
|
236
|
+
console.error("Failed to build tag indices:", u);
|
|
237
237
|
});
|
|
238
238
|
}, [o.mdxFiles, n.supportedLanguages]);
|
|
239
239
|
const l = { ...n, navigationData: a, tagIndex: c };
|
|
240
240
|
return /* @__PURE__ */ t(
|
|
241
|
-
|
|
241
|
+
qt.Provider,
|
|
242
242
|
{
|
|
243
243
|
value: {
|
|
244
244
|
config: l,
|
|
245
245
|
loadContent: o.loadContent,
|
|
246
246
|
loadEnglishContent: o.loadEnglishContent
|
|
247
247
|
},
|
|
248
|
-
children: /* @__PURE__ */ t(
|
|
248
|
+
children: /* @__PURE__ */ t(me, { children: e })
|
|
249
249
|
}
|
|
250
250
|
);
|
|
251
251
|
}
|
|
252
|
-
function
|
|
253
|
-
const e =
|
|
252
|
+
function O() {
|
|
253
|
+
const e = se(qt);
|
|
254
254
|
if (!e)
|
|
255
255
|
throw new Error("useBlogConfig must be used within a BlogProvider");
|
|
256
256
|
return e;
|
|
257
257
|
}
|
|
258
|
-
function
|
|
258
|
+
function Gt() {
|
|
259
259
|
return !!new URL(window.location.href).hash;
|
|
260
260
|
}
|
|
261
|
-
function
|
|
261
|
+
function pe(e, n, o) {
|
|
262
262
|
const a = o ? `${o}/` : "";
|
|
263
|
-
return
|
|
263
|
+
return Gt() ? `#${a}${n}/${e}` : `/${a}${n}/${e}`;
|
|
264
264
|
}
|
|
265
|
-
function
|
|
265
|
+
function Qt(e) {
|
|
266
266
|
const n = {
|
|
267
267
|
advanced: !1,
|
|
268
268
|
anchor: ""
|
|
@@ -273,7 +273,7 @@ function Gt(e) {
|
|
|
273
273
|
c === "advanced" ? n.advanced = !0 : c.startsWith("a=") && (n.anchor = c.substring(2));
|
|
274
274
|
return n;
|
|
275
275
|
}
|
|
276
|
-
function
|
|
276
|
+
function Ot(e, n = 80) {
|
|
277
277
|
const o = document.getElementById(e);
|
|
278
278
|
if (o) {
|
|
279
279
|
const c = o.getBoundingClientRect().top + window.pageYOffset - n;
|
|
@@ -283,9 +283,9 @@ function At(e, n = 80) {
|
|
|
283
283
|
});
|
|
284
284
|
}
|
|
285
285
|
}
|
|
286
|
-
function
|
|
286
|
+
function fe(e, n = !1) {
|
|
287
287
|
const o = new URL(window.location.href);
|
|
288
|
-
if (
|
|
288
|
+
if (Gt()) {
|
|
289
289
|
const a = o.hash.split("?"), c = a[0], s = new URLSearchParams(a[1] || "");
|
|
290
290
|
s.set("a", e), n && s.set("advanced", "");
|
|
291
291
|
const l = s.toString();
|
|
@@ -296,85 +296,115 @@ function _e(e, n = !1) {
|
|
|
296
296
|
}
|
|
297
297
|
window.history.pushState(null, "", o.toString());
|
|
298
298
|
}
|
|
299
|
-
const
|
|
300
|
-
articleNavigation:
|
|
301
|
-
navContainer:
|
|
302
|
-
navLink:
|
|
303
|
-
navLinkContent:
|
|
304
|
-
navIcon:
|
|
305
|
-
navText:
|
|
306
|
-
navLabel:
|
|
307
|
-
navTitle:
|
|
299
|
+
const ve = "_articleNavigation_1m2tz_1", be = "_navContainer_1m2tz_7", we = "_navLink_1m2tz_18", Ne = "_navLinkContent_1m2tz_43", ke = "_navIcon_1m2tz_50", $e = "_navText_1m2tz_57", xe = "_navLabel_1m2tz_64", Ie = "_navTitle_1m2tz_72", E = {
|
|
300
|
+
articleNavigation: ve,
|
|
301
|
+
navContainer: be,
|
|
302
|
+
navLink: we,
|
|
303
|
+
navLinkContent: Ne,
|
|
304
|
+
navIcon: ke,
|
|
305
|
+
navText: $e,
|
|
306
|
+
navLabel: xe,
|
|
307
|
+
navTitle: Ie
|
|
308
308
|
};
|
|
309
|
-
function
|
|
309
|
+
function Ce({
|
|
310
310
|
prevSlug: e,
|
|
311
311
|
prevTitle: n,
|
|
312
312
|
nextSlug: o,
|
|
313
313
|
nextTitle: a,
|
|
314
314
|
language: c
|
|
315
315
|
}) {
|
|
316
|
-
const { t: s } =
|
|
316
|
+
const { t: s } = A(), { config: l } = O(), g = Q(), u = Qt(g.search).advanced, i = l.basePath || "", f = (_) => {
|
|
317
317
|
const v = `${i}/${c}/${_}`;
|
|
318
|
-
return
|
|
318
|
+
return u ? `${v}?advanced=true` : v;
|
|
319
319
|
};
|
|
320
|
-
return !e && !o ? null : /* @__PURE__ */ t("nav", { className: E.articleNavigation, "aria-label": "Article navigation", children: /* @__PURE__ */
|
|
321
|
-
e ? /* @__PURE__ */ t(
|
|
322
|
-
/* @__PURE__ */ t("div", { className: E.navIcon, children: /* @__PURE__ */ t(
|
|
323
|
-
/* @__PURE__ */
|
|
320
|
+
return !e && !o ? null : /* @__PURE__ */ t("nav", { className: E.articleNavigation, "aria-label": "Article navigation", children: /* @__PURE__ */ d("div", { className: E.navContainer, children: [
|
|
321
|
+
e ? /* @__PURE__ */ t(dt, { to: f(e), className: E.navLink, children: /* @__PURE__ */ d("div", { className: E.navLinkContent, children: [
|
|
322
|
+
/* @__PURE__ */ t("div", { className: E.navIcon, children: /* @__PURE__ */ t(Vt, { size: 20, weight: "bold" }) }),
|
|
323
|
+
/* @__PURE__ */ d("div", { className: E.navText, children: [
|
|
324
324
|
/* @__PURE__ */ t("span", { className: E.navLabel, children: s("nav.previous") }),
|
|
325
325
|
/* @__PURE__ */ t("span", { className: E.navTitle, children: n || e })
|
|
326
326
|
] })
|
|
327
327
|
] }) }) : /* @__PURE__ */ t("div", {}),
|
|
328
|
-
o ? /* @__PURE__ */ t(
|
|
329
|
-
/* @__PURE__ */
|
|
328
|
+
o ? /* @__PURE__ */ t(dt, { to: f(o), className: E.navLink, children: /* @__PURE__ */ d("div", { className: E.navLinkContent, children: [
|
|
329
|
+
/* @__PURE__ */ d("div", { className: E.navText, children: [
|
|
330
330
|
/* @__PURE__ */ t("span", { className: E.navLabel, children: s("nav.next") }),
|
|
331
331
|
/* @__PURE__ */ t("span", { className: E.navTitle, children: a || o })
|
|
332
332
|
] }),
|
|
333
|
-
/* @__PURE__ */ t("div", { className: E.navIcon, children: /* @__PURE__ */ t(
|
|
333
|
+
/* @__PURE__ */ t("div", { className: E.navIcon, children: /* @__PURE__ */ t(Ht, { size: 20, weight: "bold" }) })
|
|
334
334
|
] }) }) : /* @__PURE__ */ t("div", {})
|
|
335
335
|
] }) });
|
|
336
336
|
}
|
|
337
|
-
const
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
337
|
+
const ye = "_blogSidebar_124vg_1", Le = "_section_124vg_21", Te = "_sectionTitle_124vg_28", Se = "_linksList_124vg_36", Pe = "_link_124vg_36", nt = {
|
|
338
|
+
blogSidebar: ye,
|
|
339
|
+
section: Le,
|
|
340
|
+
sectionTitle: Te,
|
|
341
|
+
linksList: Se,
|
|
342
|
+
link: Pe
|
|
341
343
|
};
|
|
342
|
-
function
|
|
343
|
-
const { t:
|
|
344
|
-
return
|
|
345
|
-
|
|
346
|
-
|
|
344
|
+
function De() {
|
|
345
|
+
const { t: e } = A(), { config: n } = O(), o = n.socialLinks || [];
|
|
346
|
+
return o.length === 0 ? null : /* @__PURE__ */ t("aside", { className: nt.blogSidebar, children: /* @__PURE__ */ d("div", { className: nt.section, children: [
|
|
347
|
+
/* @__PURE__ */ t("h3", { className: nt.sectionTitle, children: e("ui.connect") }),
|
|
348
|
+
/* @__PURE__ */ t("div", { className: nt.linksList, children: o.map((a, c) => {
|
|
349
|
+
const s = a.icon || Jt, l = a.target === "_blank";
|
|
350
|
+
return /* @__PURE__ */ d(
|
|
351
|
+
"a",
|
|
352
|
+
{
|
|
353
|
+
href: a.url,
|
|
354
|
+
className: nt.link,
|
|
355
|
+
target: a.target || "_blank",
|
|
356
|
+
rel: l ? "noopener noreferrer" : void 0,
|
|
357
|
+
children: [
|
|
358
|
+
/* @__PURE__ */ t(s, { size: 18, weight: "duotone" }),
|
|
359
|
+
/* @__PURE__ */ t("span", { children: a.label })
|
|
360
|
+
]
|
|
361
|
+
},
|
|
362
|
+
c
|
|
363
|
+
);
|
|
364
|
+
}) })
|
|
365
|
+
] }) });
|
|
366
|
+
}
|
|
367
|
+
const Me = "_metadata_bsge0_1", Be = "_author_bsge0_9", Ee = "_date_bsge0_10", _t = {
|
|
368
|
+
metadata: Me,
|
|
369
|
+
author: Be,
|
|
370
|
+
date: Ee
|
|
371
|
+
};
|
|
372
|
+
function ft({ date: e, author: n }) {
|
|
373
|
+
const { t: o } = A();
|
|
374
|
+
return !e && !n ? null : /* @__PURE__ */ d("div", { className: _t.metadata, children: [
|
|
375
|
+
n && /* @__PURE__ */ d("span", { className: _t.author, children: [
|
|
376
|
+
/* @__PURE__ */ t(Zt, { size: 16, weight: "regular" }),
|
|
347
377
|
n
|
|
348
378
|
] }),
|
|
349
|
-
e && /* @__PURE__ */
|
|
350
|
-
/* @__PURE__ */ t(
|
|
379
|
+
e && /* @__PURE__ */ d("span", { className: _t.date, children: [
|
|
380
|
+
/* @__PURE__ */ t(te, { size: 16, weight: "regular" }),
|
|
351
381
|
o("ui.lastEdited"),
|
|
352
382
|
": ",
|
|
353
383
|
e
|
|
354
384
|
] })
|
|
355
385
|
] });
|
|
356
386
|
}
|
|
357
|
-
const
|
|
358
|
-
tableOfContents:
|
|
359
|
-
header:
|
|
360
|
-
title:
|
|
361
|
-
nav:
|
|
362
|
-
list:
|
|
363
|
-
link:
|
|
364
|
-
active:
|
|
365
|
-
level1:
|
|
366
|
-
level2:
|
|
367
|
-
level3:
|
|
368
|
-
level4:
|
|
369
|
-
level5:
|
|
370
|
-
level6:
|
|
387
|
+
const Re = "_tableOfContents_9ofak_1", Ae = "_header_9ofak_21", Oe = "_title_9ofak_25", je = "_nav_9ofak_34", We = "_list_9ofak_40", He = "_link_9ofak_47", ze = "_active_9ofak_71", Fe = "_level1_9ofak_87", Ue = "_level2_9ofak_93", Ke = "_level3_9ofak_98", qe = "_level4_9ofak_104", Ge = "_level5_9ofak_110", Qe = "_level6_9ofak_116", z = {
|
|
388
|
+
tableOfContents: Re,
|
|
389
|
+
header: Ae,
|
|
390
|
+
title: Oe,
|
|
391
|
+
nav: je,
|
|
392
|
+
list: We,
|
|
393
|
+
link: He,
|
|
394
|
+
active: ze,
|
|
395
|
+
level1: Fe,
|
|
396
|
+
level2: Ue,
|
|
397
|
+
level3: Ke,
|
|
398
|
+
level4: qe,
|
|
399
|
+
level5: Ge,
|
|
400
|
+
level6: Qe
|
|
371
401
|
};
|
|
372
|
-
function
|
|
402
|
+
function Xe({
|
|
373
403
|
content: e,
|
|
374
404
|
englishContent: n
|
|
375
405
|
}) {
|
|
376
|
-
const { t: o } =
|
|
377
|
-
|
|
406
|
+
const { t: o } = A(), a = Q(), c = X(), [s, l] = y([]), [g, h] = y(""), u = G(null);
|
|
407
|
+
S(() => {
|
|
378
408
|
h(""), (() => {
|
|
379
409
|
const _ = /^(#{1,6})\s+(.+)$/gm, v = [];
|
|
380
410
|
let w = _.exec(e);
|
|
@@ -396,7 +426,7 @@ function He({
|
|
|
396
426
|
}
|
|
397
427
|
l(v);
|
|
398
428
|
})();
|
|
399
|
-
}, [e, n]),
|
|
429
|
+
}, [e, n]), S(() => {
|
|
400
430
|
if (s.length === 0) return;
|
|
401
431
|
const f = setTimeout(() => {
|
|
402
432
|
const _ = s.filter(
|
|
@@ -405,12 +435,12 @@ function He({
|
|
|
405
435
|
_.length > 0 && console.warn("Some heading elements not found:", _);
|
|
406
436
|
}, 100);
|
|
407
437
|
return () => clearTimeout(f);
|
|
408
|
-
}, [s]),
|
|
438
|
+
}, [s]), S(() => {
|
|
409
439
|
if (s.length === 0) return;
|
|
410
|
-
|
|
440
|
+
u.current && u.current.disconnect();
|
|
411
441
|
const f = setTimeout(() => {
|
|
412
442
|
const _ = s.map((v) => document.getElementById(v.id)).filter(Boolean);
|
|
413
|
-
_.length !== 0 && (
|
|
443
|
+
_.length !== 0 && (u.current = new IntersectionObserver(
|
|
414
444
|
(v) => {
|
|
415
445
|
const w = v.filter((r) => r.isIntersecting);
|
|
416
446
|
if (w.length > 0) {
|
|
@@ -423,14 +453,14 @@ function He({
|
|
|
423
453
|
threshold: 0
|
|
424
454
|
}
|
|
425
455
|
), _.forEach((v) => {
|
|
426
|
-
|
|
456
|
+
u.current && u.current.observe(v);
|
|
427
457
|
}));
|
|
428
458
|
}, 150);
|
|
429
459
|
return () => {
|
|
430
|
-
clearTimeout(f),
|
|
460
|
+
clearTimeout(f), u.current && u.current.disconnect();
|
|
431
461
|
};
|
|
432
|
-
}, [s]),
|
|
433
|
-
|
|
462
|
+
}, [s]), S(() => () => {
|
|
463
|
+
u.current && u.current.disconnect();
|
|
434
464
|
}, []);
|
|
435
465
|
const i = (f) => {
|
|
436
466
|
const _ = document.getElementById(f);
|
|
@@ -449,7 +479,7 @@ function He({
|
|
|
449
479
|
});
|
|
450
480
|
}
|
|
451
481
|
};
|
|
452
|
-
return s.length === 0 ? null : /* @__PURE__ */
|
|
482
|
+
return s.length === 0 ? null : /* @__PURE__ */ d("aside", { className: z.tableOfContents, children: [
|
|
453
483
|
/* @__PURE__ */ t("div", { className: z.header, children: /* @__PURE__ */ t("span", { className: z.title, children: o("ui.onThisPage", "On this page") }) }),
|
|
454
484
|
/* @__PURE__ */ t("nav", { className: z.nav, children: /* @__PURE__ */ t("ul", { className: z.list, children: s.map((f) => /* @__PURE__ */ t("li", { className: z.item, children: /* @__PURE__ */ t(
|
|
455
485
|
"button",
|
|
@@ -462,33 +492,33 @@ function He({
|
|
|
462
492
|
) }, f.id)) }) })
|
|
463
493
|
] });
|
|
464
494
|
}
|
|
465
|
-
const
|
|
466
|
-
overlay:
|
|
467
|
-
modal:
|
|
468
|
-
header:
|
|
469
|
-
title:
|
|
470
|
-
closeButton:
|
|
471
|
-
results:
|
|
472
|
-
resultsList:
|
|
473
|
-
resultItem:
|
|
474
|
-
resultTitle:
|
|
475
|
-
resultSlug:
|
|
476
|
-
noResults:
|
|
495
|
+
const Ye = "_overlay_1e1d4_1", Ve = "_modal_1e1d4_26", Je = "_header_1e1d4_50", Ze = "_title_1e1d4_58", tn = "_closeButton_1e1d4_65", en = "_results_1e1d4_86", nn = "_resultsList_1e1d4_94", an = "_resultItem_1e1d4_100", on = "_resultTitle_1e1d4_119", sn = "_resultSlug_1e1d4_124", cn = "_noResults_1e1d4_130", W = {
|
|
496
|
+
overlay: Ye,
|
|
497
|
+
modal: Ve,
|
|
498
|
+
header: Je,
|
|
499
|
+
title: Ze,
|
|
500
|
+
closeButton: tn,
|
|
501
|
+
results: en,
|
|
502
|
+
resultsList: nn,
|
|
503
|
+
resultItem: an,
|
|
504
|
+
resultTitle: on,
|
|
505
|
+
resultSlug: sn,
|
|
506
|
+
noResults: cn
|
|
477
507
|
};
|
|
478
|
-
function
|
|
508
|
+
function rn({
|
|
479
509
|
tag: e,
|
|
480
510
|
results: n,
|
|
481
511
|
language: o,
|
|
482
512
|
onClose: a
|
|
483
513
|
}) {
|
|
484
|
-
const { t: c } =
|
|
485
|
-
const
|
|
486
|
-
l(`${
|
|
514
|
+
const { t: c } = A(), { config: s } = O(), l = X(), g = (h) => {
|
|
515
|
+
const u = s.basePath || "";
|
|
516
|
+
l(`${u}/${o}/${h}`), a();
|
|
487
517
|
};
|
|
488
|
-
return
|
|
489
|
-
/* @__PURE__ */ t("div", { className: W.overlay, onClick: a, children: /* @__PURE__ */
|
|
490
|
-
/* @__PURE__ */
|
|
491
|
-
/* @__PURE__ */
|
|
518
|
+
return zt(
|
|
519
|
+
/* @__PURE__ */ t("div", { className: W.overlay, onClick: a, children: /* @__PURE__ */ d("div", { className: W.modal, onClick: (h) => h.stopPropagation(), children: [
|
|
520
|
+
/* @__PURE__ */ d("div", { className: W.header, children: [
|
|
521
|
+
/* @__PURE__ */ d("h2", { className: W.title, children: [
|
|
492
522
|
c("ui.tagResults"),
|
|
493
523
|
": ",
|
|
494
524
|
e
|
|
@@ -500,11 +530,11 @@ function Ze({
|
|
|
500
530
|
className: W.closeButton,
|
|
501
531
|
onClick: a,
|
|
502
532
|
"aria-label": "Close",
|
|
503
|
-
children: /* @__PURE__ */ t(
|
|
533
|
+
children: /* @__PURE__ */ t(bt, {})
|
|
504
534
|
}
|
|
505
535
|
)
|
|
506
536
|
] }),
|
|
507
|
-
/* @__PURE__ */ t("div", { className: W.results, children: n.length === 0 ? /* @__PURE__ */ t("div", { className: W.noResults, children: c("ui.noTagResults") }) : /* @__PURE__ */ t("ul", { className: W.resultsList, children: n.map((h) => /* @__PURE__ */ t("li", { children: /* @__PURE__ */
|
|
537
|
+
/* @__PURE__ */ t("div", { className: W.results, children: n.length === 0 ? /* @__PURE__ */ t("div", { className: W.noResults, children: c("ui.noTagResults") }) : /* @__PURE__ */ t("ul", { className: W.resultsList, children: n.map((h) => /* @__PURE__ */ t("li", { children: /* @__PURE__ */ d(
|
|
508
538
|
"button",
|
|
509
539
|
{
|
|
510
540
|
type: "button",
|
|
@@ -512,7 +542,7 @@ function Ze({
|
|
|
512
542
|
onClick: () => g(h.slug),
|
|
513
543
|
children: [
|
|
514
544
|
/* @__PURE__ */ t("div", { className: W.resultTitle, children: h.title }),
|
|
515
|
-
/* @__PURE__ */
|
|
545
|
+
/* @__PURE__ */ d("div", { className: W.resultSlug, children: [
|
|
516
546
|
"/",
|
|
517
547
|
h.slug
|
|
518
548
|
] })
|
|
@@ -523,28 +553,28 @@ function Ze({
|
|
|
523
553
|
document.body
|
|
524
554
|
);
|
|
525
555
|
}
|
|
526
|
-
const
|
|
527
|
-
tags:
|
|
528
|
-
compact:
|
|
529
|
-
tagLabel:
|
|
530
|
-
tagIcon:
|
|
531
|
-
tagList:
|
|
532
|
-
tag:
|
|
556
|
+
const ln = "_tags_11t8a_1", dn = "_compact_11t8a_9", un = "_tagLabel_11t8a_15", hn = "_tagIcon_11t8a_25", mn = "_tagList_11t8a_30", gn = "_tag_11t8a_1", J = {
|
|
557
|
+
tags: ln,
|
|
558
|
+
compact: dn,
|
|
559
|
+
tagLabel: un,
|
|
560
|
+
tagIcon: hn,
|
|
561
|
+
tagList: mn,
|
|
562
|
+
tag: gn
|
|
533
563
|
};
|
|
534
|
-
function
|
|
535
|
-
const { t: a } =
|
|
564
|
+
function _n({ tags: e, variant: n = "default", onTagClick: o }) {
|
|
565
|
+
const { t: a } = A();
|
|
536
566
|
if (!e || e.length === 0) return null;
|
|
537
567
|
const c = (s) => {
|
|
538
568
|
o && o(s);
|
|
539
569
|
};
|
|
540
|
-
return /* @__PURE__ */
|
|
570
|
+
return /* @__PURE__ */ d(
|
|
541
571
|
"div",
|
|
542
572
|
{
|
|
543
573
|
className: `${J.tags} ${n === "compact" ? J.compact : ""}`,
|
|
544
574
|
children: [
|
|
545
|
-
n === "default" && /* @__PURE__ */
|
|
546
|
-
/* @__PURE__ */ t(
|
|
547
|
-
/* @__PURE__ */
|
|
575
|
+
n === "default" && /* @__PURE__ */ d("div", { className: J.tagLabel, children: [
|
|
576
|
+
/* @__PURE__ */ t(ee, { className: J.tagIcon, weight: "duotone" }),
|
|
577
|
+
/* @__PURE__ */ d("span", { children: [
|
|
548
578
|
a("ui.tags"),
|
|
549
579
|
":"
|
|
550
580
|
] })
|
|
@@ -564,46 +594,46 @@ function cn({ tags: e, variant: n = "default", onTagClick: o }) {
|
|
|
564
594
|
}
|
|
565
595
|
);
|
|
566
596
|
}
|
|
567
|
-
const
|
|
568
|
-
contentPage:
|
|
569
|
-
loadingContainer:
|
|
570
|
-
errorContainer:
|
|
571
|
-
skeletonTitle:
|
|
572
|
-
skeletonParagraph:
|
|
573
|
-
skeletonParagraphShort:
|
|
574
|
-
errorText:
|
|
575
|
-
mdxContent:
|
|
576
|
-
withMetadata:
|
|
577
|
-
codeBlock:
|
|
578
|
-
codeLanguage:
|
|
579
|
-
},
|
|
597
|
+
const pn = "_contentPage_1nxj5_1", fn = "_loadingContainer_1nxj5_48", vn = "_errorContainer_1nxj5_49", bn = "_skeletonTitle_1nxj5_71", wn = "_skeletonParagraph_1nxj5_80", Nn = "_skeletonParagraphShort_1nxj5_93", kn = "_errorText_1nxj5_107", $n = "_mdxContent_1nxj5_112", xn = "_withMetadata_1nxj5_125", In = "_codeBlock_1nxj5_300", Cn = "_codeLanguage_1nxj5_304", M = {
|
|
598
|
+
contentPage: pn,
|
|
599
|
+
loadingContainer: fn,
|
|
600
|
+
errorContainer: vn,
|
|
601
|
+
skeletonTitle: bn,
|
|
602
|
+
skeletonParagraph: wn,
|
|
603
|
+
skeletonParagraphShort: Nn,
|
|
604
|
+
errorText: kn,
|
|
605
|
+
mdxContent: $n,
|
|
606
|
+
withMetadata: xn,
|
|
607
|
+
codeBlock: In,
|
|
608
|
+
codeLanguage: Cn
|
|
609
|
+
}, jt = (e) => {
|
|
580
610
|
const n = e.match(/^\s*#\s+(.+)\s*(?:\n+|$)/);
|
|
581
611
|
return n ? {
|
|
582
612
|
title: n[1].trim(),
|
|
583
613
|
content: e.replace(/^\s*#\s+.+\s*(?:\n+|$)/, "")
|
|
584
614
|
} : { title: void 0, content: e };
|
|
585
615
|
};
|
|
586
|
-
function
|
|
587
|
-
var
|
|
588
|
-
const { slug: n } =
|
|
589
|
-
if (
|
|
616
|
+
function yn({ language: e }) {
|
|
617
|
+
var xt, It, Ct, yt, Lt;
|
|
618
|
+
const { slug: n } = vt(), o = Q(), { config: a, loadContent: c, loadEnglishContent: s } = O(), [l, g] = y(""), [h, u] = y(""), [i, f] = y({}), [_, v] = y(!0), [w, r] = y(null), [m, N] = y(!0), [I, D] = y(null), [H, b] = y(""), [$, B] = y({}), j = G(0), U = G([]), st = Qt(o.search), Y = st.advanced;
|
|
619
|
+
if (S(() => {
|
|
590
620
|
(async () => {
|
|
591
621
|
if (!n) return;
|
|
592
|
-
v(!0), r(null),
|
|
622
|
+
v(!0), r(null), j.current = 0;
|
|
593
623
|
const C = (a == null ? void 0 : a.navigationData) || [];
|
|
594
|
-
let
|
|
624
|
+
let P = !0;
|
|
595
625
|
for (const k of C)
|
|
596
626
|
if ("items" in k) {
|
|
597
627
|
const L = k.items.find((V) => V.slug === n);
|
|
598
628
|
if (L) {
|
|
599
|
-
|
|
629
|
+
P = L.showTableOfContents !== !1;
|
|
600
630
|
break;
|
|
601
631
|
}
|
|
602
632
|
} else if (k.slug === n) {
|
|
603
|
-
|
|
633
|
+
P = k.showTableOfContents !== !1;
|
|
604
634
|
break;
|
|
605
635
|
}
|
|
606
|
-
N(
|
|
636
|
+
N(P);
|
|
607
637
|
try {
|
|
608
638
|
let k;
|
|
609
639
|
try {
|
|
@@ -621,21 +651,21 @@ function bn({ language: e }) {
|
|
|
621
651
|
Y && (L = await s(n, !1));
|
|
622
652
|
}
|
|
623
653
|
const V = typeof k.frontmatter.title == "string" ? k.frontmatter.title : void 0;
|
|
624
|
-
let
|
|
654
|
+
let rt = k.content, lt = L, mt = "";
|
|
625
655
|
if (V) {
|
|
626
|
-
const
|
|
627
|
-
|
|
656
|
+
const it = jt(L), Xt = jt(k.content);
|
|
657
|
+
mt = it.title || "", lt = it.content, rt = Xt.content;
|
|
628
658
|
} else
|
|
629
|
-
|
|
630
|
-
const
|
|
631
|
-
let
|
|
632
|
-
|
|
659
|
+
mt = "";
|
|
660
|
+
const Tt = /^(#{1,6})\s+(.+)$/gm, St = [];
|
|
661
|
+
let gt = Tt.exec(
|
|
662
|
+
lt
|
|
633
663
|
);
|
|
634
|
-
for (;
|
|
635
|
-
const
|
|
636
|
-
|
|
664
|
+
for (; gt !== null; ) {
|
|
665
|
+
const it = gt[2].trim();
|
|
666
|
+
St.push(it), gt = Tt.exec(lt);
|
|
637
667
|
}
|
|
638
|
-
U.current =
|
|
668
|
+
U.current = St, b(mt), u(lt), g(rt), f(k.frontmatter);
|
|
639
669
|
} catch (k) {
|
|
640
670
|
r(k instanceof Error ? k.message : "Failed to load content");
|
|
641
671
|
} finally {
|
|
@@ -649,26 +679,26 @@ function bn({ language: e }) {
|
|
|
649
679
|
a.navigationData,
|
|
650
680
|
c,
|
|
651
681
|
s
|
|
652
|
-
]),
|
|
653
|
-
if (!_ &&
|
|
682
|
+
]), S(() => {
|
|
683
|
+
if (!_ && st.anchor) {
|
|
654
684
|
const p = setTimeout(() => {
|
|
655
|
-
|
|
685
|
+
Ot(st.anchor);
|
|
656
686
|
}, 150);
|
|
657
687
|
return () => clearTimeout(p);
|
|
658
688
|
}
|
|
659
|
-
}, [_,
|
|
689
|
+
}, [_, st.anchor]), S(() => {
|
|
660
690
|
(async () => {
|
|
661
691
|
if (!n || !a.showArticleNavigation || !a.navigationData) {
|
|
662
692
|
B({});
|
|
663
693
|
return;
|
|
664
694
|
}
|
|
665
695
|
try {
|
|
666
|
-
const C = await
|
|
696
|
+
const C = await ut(
|
|
667
697
|
a.navigationData,
|
|
668
698
|
e,
|
|
669
699
|
c
|
|
670
|
-
),
|
|
671
|
-
B(
|
|
700
|
+
), P = _e(n, C);
|
|
701
|
+
B(P);
|
|
672
702
|
} catch (C) {
|
|
673
703
|
console.error("Failed to calculate adjacent articles:", C), B({});
|
|
674
704
|
}
|
|
@@ -680,73 +710,73 @@ function bn({ language: e }) {
|
|
|
680
710
|
a.navigationData,
|
|
681
711
|
c
|
|
682
712
|
]), _)
|
|
683
|
-
return /* @__PURE__ */ t("div", { className: M.contentPage, children: /* @__PURE__ */
|
|
713
|
+
return /* @__PURE__ */ t("div", { className: M.contentPage, children: /* @__PURE__ */ d("div", { className: M.loadingContainer, children: [
|
|
684
714
|
/* @__PURE__ */ t("div", { className: M.skeletonTitle }),
|
|
685
715
|
/* @__PURE__ */ t("div", { className: M.skeletonParagraph }),
|
|
686
716
|
/* @__PURE__ */ t("div", { className: M.skeletonParagraph }),
|
|
687
717
|
/* @__PURE__ */ t("div", { className: M.skeletonParagraphShort })
|
|
688
718
|
] }) });
|
|
689
719
|
if (w)
|
|
690
|
-
return /* @__PURE__ */ t("div", { className: M.contentPage, children: /* @__PURE__ */ t("div", { className: M.errorContainer, children: /* @__PURE__ */
|
|
720
|
+
return /* @__PURE__ */ t("div", { className: M.contentPage, children: /* @__PURE__ */ t("div", { className: M.errorContainer, children: /* @__PURE__ */ d("div", { className: M.errorText, children: [
|
|
691
721
|
"Error: ",
|
|
692
722
|
w
|
|
693
723
|
] }) }) });
|
|
694
|
-
const
|
|
695
|
-
|
|
696
|
-
let
|
|
724
|
+
const ct = typeof i.title == "string" && i.title.trim().length > 0, ht = ct ? Z(H || i.title) : "", kt = !!(i.date || i.author);
|
|
725
|
+
j.current = 0;
|
|
726
|
+
let $t = !1;
|
|
697
727
|
const tt = (p, C) => {
|
|
698
|
-
p.preventDefault(),
|
|
728
|
+
p.preventDefault(), Ot(C), fe(C, Y);
|
|
699
729
|
};
|
|
700
|
-
return /* @__PURE__ */
|
|
701
|
-
/* @__PURE__ */
|
|
702
|
-
/* @__PURE__ */ t(
|
|
703
|
-
|
|
730
|
+
return /* @__PURE__ */ d(q, { children: [
|
|
731
|
+
/* @__PURE__ */ d("div", { className: M.contentPage, children: [
|
|
732
|
+
/* @__PURE__ */ t(he, { hasAdvanced: i.hasAdvanced || !1 }),
|
|
733
|
+
ct && /* @__PURE__ */ d(q, { children: [
|
|
704
734
|
/* @__PURE__ */ t(
|
|
705
735
|
"h1",
|
|
706
736
|
{
|
|
707
|
-
id:
|
|
708
|
-
className:
|
|
737
|
+
id: ht,
|
|
738
|
+
className: kt ? M.withMetadata : void 0,
|
|
709
739
|
children: /* @__PURE__ */ t(
|
|
710
740
|
"a",
|
|
711
741
|
{
|
|
712
|
-
href: `#${
|
|
713
|
-
onClick: (p) => tt(p,
|
|
742
|
+
href: `#${ht}`,
|
|
743
|
+
onClick: (p) => tt(p, ht),
|
|
714
744
|
style: { color: "inherit", textDecoration: "none" },
|
|
715
745
|
children: i.title
|
|
716
746
|
}
|
|
717
747
|
)
|
|
718
748
|
}
|
|
719
749
|
),
|
|
720
|
-
|
|
750
|
+
kt && /* @__PURE__ */ t(ft, { date: i.date, author: i.author })
|
|
721
751
|
] }),
|
|
722
752
|
/* @__PURE__ */ t("div", { className: M.mdxContent, children: /* @__PURE__ */ t(
|
|
723
|
-
|
|
753
|
+
re,
|
|
724
754
|
{
|
|
725
|
-
remarkPlugins: [
|
|
755
|
+
remarkPlugins: [le],
|
|
726
756
|
components: {
|
|
727
757
|
h1: ({ children: p }) => {
|
|
728
|
-
const C =
|
|
729
|
-
|
|
758
|
+
const C = j.current++, P = U.current[C] || "", k = Z(P), L = !$t;
|
|
759
|
+
$t = !0;
|
|
730
760
|
const V = i.date || i.author;
|
|
731
|
-
return /* @__PURE__ */
|
|
761
|
+
return /* @__PURE__ */ d(q, { children: [
|
|
732
762
|
/* @__PURE__ */ t(
|
|
733
763
|
"h1",
|
|
734
764
|
{
|
|
735
765
|
id: k,
|
|
736
|
-
className: L && V && !
|
|
766
|
+
className: L && V && !ct ? M.withMetadata : void 0,
|
|
737
767
|
children: /* @__PURE__ */ t(
|
|
738
768
|
"a",
|
|
739
769
|
{
|
|
740
770
|
href: `#${k}`,
|
|
741
|
-
onClick: (
|
|
771
|
+
onClick: (rt) => tt(rt, k),
|
|
742
772
|
style: { color: "inherit", textDecoration: "none" },
|
|
743
773
|
children: p
|
|
744
774
|
}
|
|
745
775
|
)
|
|
746
776
|
}
|
|
747
777
|
),
|
|
748
|
-
L && V && !
|
|
749
|
-
|
|
778
|
+
L && V && !ct && /* @__PURE__ */ t(
|
|
779
|
+
ft,
|
|
750
780
|
{
|
|
751
781
|
date: i.date,
|
|
752
782
|
author: i.author
|
|
@@ -755,7 +785,7 @@ function bn({ language: e }) {
|
|
|
755
785
|
] });
|
|
756
786
|
},
|
|
757
787
|
h2: ({ children: p }) => {
|
|
758
|
-
const C =
|
|
788
|
+
const C = j.current++, P = U.current[C] || "", k = Z(P);
|
|
759
789
|
return /* @__PURE__ */ t("h2", { id: k, children: /* @__PURE__ */ t(
|
|
760
790
|
"a",
|
|
761
791
|
{
|
|
@@ -767,7 +797,7 @@ function bn({ language: e }) {
|
|
|
767
797
|
) });
|
|
768
798
|
},
|
|
769
799
|
h3: ({ children: p }) => {
|
|
770
|
-
const C =
|
|
800
|
+
const C = j.current++, P = U.current[C] || "", k = Z(P);
|
|
771
801
|
return /* @__PURE__ */ t("h3", { id: k, children: /* @__PURE__ */ t(
|
|
772
802
|
"a",
|
|
773
803
|
{
|
|
@@ -779,7 +809,7 @@ function bn({ language: e }) {
|
|
|
779
809
|
) });
|
|
780
810
|
},
|
|
781
811
|
h4: ({ children: p }) => {
|
|
782
|
-
const C =
|
|
812
|
+
const C = j.current++, P = U.current[C] || "", k = Z(P);
|
|
783
813
|
return /* @__PURE__ */ t("h4", { id: k, children: /* @__PURE__ */ t(
|
|
784
814
|
"a",
|
|
785
815
|
{
|
|
@@ -791,37 +821,37 @@ function bn({ language: e }) {
|
|
|
791
821
|
) });
|
|
792
822
|
},
|
|
793
823
|
h5: ({ children: p }) => {
|
|
794
|
-
const C = `h5-${
|
|
824
|
+
const C = `h5-${j.current++}`;
|
|
795
825
|
return /* @__PURE__ */ t("h5", { id: C, children: p });
|
|
796
826
|
},
|
|
797
827
|
h6: ({ children: p }) => {
|
|
798
|
-
const C = `h6-${
|
|
828
|
+
const C = `h6-${j.current++}`;
|
|
799
829
|
return /* @__PURE__ */ t("h6", { id: C, children: p });
|
|
800
830
|
},
|
|
801
831
|
p: ({ children: p }) => /* @__PURE__ */ t("p", { children: p }),
|
|
802
832
|
ul: ({ children: p }) => /* @__PURE__ */ t("ul", { children: p }),
|
|
803
833
|
ol: ({ children: p }) => /* @__PURE__ */ t("ol", { children: p }),
|
|
804
834
|
li: ({ children: p }) => /* @__PURE__ */ t("li", { children: p }),
|
|
805
|
-
code: ({ className: p, children: C, ...
|
|
835
|
+
code: ({ className: p, children: C, ...P }) => {
|
|
806
836
|
if (!p)
|
|
807
|
-
return /* @__PURE__ */ t("code", { ...
|
|
837
|
+
return /* @__PURE__ */ t("code", { ...P, children: C });
|
|
808
838
|
const L = (p == null ? void 0 : p.replace("language-", "")) || "";
|
|
809
|
-
return /* @__PURE__ */
|
|
839
|
+
return /* @__PURE__ */ d("div", { className: M.codeBlock, children: [
|
|
810
840
|
L && /* @__PURE__ */ t("div", { className: M.codeLanguage, children: L }),
|
|
811
|
-
/* @__PURE__ */ t("pre", { children: /* @__PURE__ */ t("code", { className: p, ...
|
|
841
|
+
/* @__PURE__ */ t("pre", { children: /* @__PURE__ */ t("code", { className: p, ...P, children: C }) })
|
|
812
842
|
] });
|
|
813
843
|
},
|
|
814
|
-
pre: ({ children: p }) => /* @__PURE__ */ t(
|
|
844
|
+
pre: ({ children: p }) => /* @__PURE__ */ t(q, { children: p }),
|
|
815
845
|
// Let code component handle pre styling
|
|
816
846
|
blockquote: ({ children: p }) => /* @__PURE__ */ t("blockquote", { children: p }),
|
|
817
|
-
a: ({ href: p, children: C, ...
|
|
847
|
+
a: ({ href: p, children: C, ...P }) => {
|
|
818
848
|
if (p != null && p.startsWith("./")) {
|
|
819
|
-
const k = p.slice(2), L =
|
|
849
|
+
const k = p.slice(2), L = pe(
|
|
820
850
|
k,
|
|
821
851
|
e,
|
|
822
852
|
a.basePath
|
|
823
853
|
);
|
|
824
|
-
return /* @__PURE__ */ t("a", { href: L, ...
|
|
854
|
+
return /* @__PURE__ */ t("a", { href: L, ...P, children: C });
|
|
825
855
|
}
|
|
826
856
|
return p != null && p.startsWith("http://") || p != null && p.startsWith("https://") ? /* @__PURE__ */ t(
|
|
827
857
|
"a",
|
|
@@ -829,10 +859,10 @@ function bn({ language: e }) {
|
|
|
829
859
|
href: p,
|
|
830
860
|
target: "_blank",
|
|
831
861
|
rel: "noopener noreferrer",
|
|
832
|
-
...
|
|
862
|
+
...P,
|
|
833
863
|
children: C
|
|
834
864
|
}
|
|
835
|
-
) : /* @__PURE__ */ t("a", { href: p, ...
|
|
865
|
+
) : /* @__PURE__ */ t("a", { href: p, ...P, children: C });
|
|
836
866
|
},
|
|
837
867
|
strong: ({ children: p }) => /* @__PURE__ */ t("strong", { children: p }),
|
|
838
868
|
em: ({ children: p }) => /* @__PURE__ */ t("em", { children: p })
|
|
@@ -840,8 +870,9 @@ function bn({ language: e }) {
|
|
|
840
870
|
children: l
|
|
841
871
|
}
|
|
842
872
|
) }),
|
|
873
|
+
a.articleCTA && /* @__PURE__ */ t("div", { children: a.articleCTA }),
|
|
843
874
|
i.tags && i.tags.length > 0 && /* @__PURE__ */ t(
|
|
844
|
-
|
|
875
|
+
_n,
|
|
845
876
|
{
|
|
846
877
|
tags: i.tags,
|
|
847
878
|
variant: "compact",
|
|
@@ -849,19 +880,19 @@ function bn({ language: e }) {
|
|
|
849
880
|
}
|
|
850
881
|
),
|
|
851
882
|
a.showArticleNavigation && /* @__PURE__ */ t(
|
|
852
|
-
|
|
883
|
+
Ce,
|
|
853
884
|
{
|
|
854
|
-
prevSlug: (
|
|
855
|
-
prevTitle: (
|
|
856
|
-
nextSlug: (
|
|
857
|
-
nextTitle: (
|
|
885
|
+
prevSlug: (xt = $.prev) == null ? void 0 : xt.slug,
|
|
886
|
+
prevTitle: (It = $.prev) == null ? void 0 : It.title,
|
|
887
|
+
nextSlug: (Ct = $.next) == null ? void 0 : Ct.slug,
|
|
888
|
+
nextTitle: (yt = $.next) == null ? void 0 : yt.title,
|
|
858
889
|
language: e
|
|
859
890
|
}
|
|
860
891
|
)
|
|
861
892
|
] }),
|
|
862
|
-
m && /* @__PURE__ */ t(
|
|
863
|
-
I && ((
|
|
864
|
-
|
|
893
|
+
m && /* @__PURE__ */ t(Xe, { content: l, englishContent: h }),
|
|
894
|
+
I && ((Lt = a.tagIndex) == null ? void 0 : Lt[e]) && /* @__PURE__ */ t(
|
|
895
|
+
rn,
|
|
865
896
|
{
|
|
866
897
|
tag: I,
|
|
867
898
|
results: a.tagIndex[e][I] || [],
|
|
@@ -871,46 +902,46 @@ function bn({ language: e }) {
|
|
|
871
902
|
)
|
|
872
903
|
] });
|
|
873
904
|
}
|
|
874
|
-
const
|
|
875
|
-
searchButton:
|
|
876
|
-
searchIcon:
|
|
877
|
-
searchHint:
|
|
878
|
-
kbd:
|
|
879
|
-
searchOverlay:
|
|
880
|
-
searchModal:
|
|
881
|
-
searchHeader:
|
|
882
|
-
searchInput:
|
|
883
|
-
closeButton:
|
|
884
|
-
searchResults:
|
|
885
|
-
resultsList:
|
|
886
|
-
resultItem:
|
|
887
|
-
selected:
|
|
888
|
-
resultTitle:
|
|
889
|
-
resultSlug:
|
|
890
|
-
noResults:
|
|
891
|
-
searchHints:
|
|
892
|
-
hint:
|
|
905
|
+
const Ln = "_searchButton_1k9sl_1", Tn = "_searchIcon_1k9sl_17", Sn = "_searchHint_1k9sl_23", Pn = "_kbd_1k9sl_27", Dn = "_searchOverlay_1k9sl_42", Mn = "_searchModal_1k9sl_67", Bn = "_searchHeader_1k9sl_91", En = "_searchInput_1k9sl_105", Rn = "_closeButton_1k9sl_123", An = "_searchResults_1k9sl_144", On = "_resultsList_1k9sl_152", jn = "_resultItem_1k9sl_158", Wn = "_selected_1k9sl_173", Hn = "_resultTitle_1k9sl_176", zn = "_resultSlug_1k9sl_180", Fn = "_noResults_1k9sl_186", Un = "_searchHints_1k9sl_193", Kn = "_hint_1k9sl_210", T = {
|
|
906
|
+
searchButton: Ln,
|
|
907
|
+
searchIcon: Tn,
|
|
908
|
+
searchHint: Sn,
|
|
909
|
+
kbd: Pn,
|
|
910
|
+
searchOverlay: Dn,
|
|
911
|
+
searchModal: Mn,
|
|
912
|
+
searchHeader: Bn,
|
|
913
|
+
searchInput: En,
|
|
914
|
+
closeButton: Rn,
|
|
915
|
+
searchResults: An,
|
|
916
|
+
resultsList: On,
|
|
917
|
+
resultItem: jn,
|
|
918
|
+
selected: Wn,
|
|
919
|
+
resultTitle: Hn,
|
|
920
|
+
resultSlug: zn,
|
|
921
|
+
noResults: Fn,
|
|
922
|
+
searchHints: Un,
|
|
923
|
+
hint: Kn
|
|
893
924
|
};
|
|
894
|
-
function
|
|
895
|
-
const { t: n } =
|
|
896
|
-
|
|
925
|
+
function qn({ language: e }) {
|
|
926
|
+
const { t: n } = A(), o = X(), { config: a, loadContent: c } = O(), [s, l] = y(!1), [g, h] = y(""), [u, i] = y([]), [f, _] = y(0), [v, w] = y([]), r = G(null), m = G(null), I = typeof navigator < "u" && /(Mac|iPhone|iPod|iPad)/i.test(navigator.platform) ? "⌘K" : "Ctrl+K";
|
|
927
|
+
S(() => {
|
|
897
928
|
(async () => {
|
|
898
929
|
if (a.navigationData)
|
|
899
930
|
try {
|
|
900
|
-
const B = (await
|
|
931
|
+
const B = (await ut(
|
|
901
932
|
a.navigationData,
|
|
902
933
|
e,
|
|
903
934
|
c
|
|
904
|
-
)).flatMap((
|
|
935
|
+
)).flatMap((j) => ot(j) ? j.items.map((U) => ({
|
|
905
936
|
title: U.title,
|
|
906
937
|
slug: U.slug
|
|
907
|
-
})) : [{ title:
|
|
938
|
+
})) : [{ title: j.title, slug: j.slug }]);
|
|
908
939
|
w(B);
|
|
909
940
|
} catch ($) {
|
|
910
941
|
console.error("Failed to build search index:", $);
|
|
911
942
|
}
|
|
912
943
|
})();
|
|
913
|
-
}, [a.navigationData, e, c]),
|
|
944
|
+
}, [a.navigationData, e, c]), S(() => {
|
|
914
945
|
if (!g.trim()) {
|
|
915
946
|
i([]), _(0);
|
|
916
947
|
return;
|
|
@@ -919,7 +950,7 @@ function On({ language: e }) {
|
|
|
919
950
|
(B) => B.title.toLowerCase().includes(b) || B.slug.toLowerCase().includes(b)
|
|
920
951
|
);
|
|
921
952
|
i($), _(0);
|
|
922
|
-
}, [g]),
|
|
953
|
+
}, [g]), S(() => {
|
|
923
954
|
const b = ($) => {
|
|
924
955
|
($.metaKey || $.ctrlKey) && $.key === "k" && ($.preventDefault(), l(!0), setTimeout(() => {
|
|
925
956
|
var B;
|
|
@@ -927,7 +958,7 @@ function On({ language: e }) {
|
|
|
927
958
|
}, 100)), $.key === "Escape" && s && (l(!1), h(""));
|
|
928
959
|
};
|
|
929
960
|
return document.addEventListener("keydown", b), () => document.removeEventListener("keydown", b);
|
|
930
|
-
}, [s]),
|
|
961
|
+
}, [s]), S(() => {
|
|
931
962
|
const b = () => {
|
|
932
963
|
l(!0), setTimeout(() => {
|
|
933
964
|
var B;
|
|
@@ -941,9 +972,9 @@ function On({ language: e }) {
|
|
|
941
972
|
};
|
|
942
973
|
}, []);
|
|
943
974
|
const D = (b) => {
|
|
944
|
-
b.key === "ArrowDown" ? (b.preventDefault(), _(($) => Math.min($ + 1,
|
|
975
|
+
b.key === "ArrowDown" ? (b.preventDefault(), _(($) => Math.min($ + 1, u.length - 1))) : b.key === "ArrowUp" ? (b.preventDefault(), _(($) => Math.max($ - 1, 0))) : b.key === "Enter" && u[f] && (b.preventDefault(), H(u[f].slug));
|
|
945
976
|
};
|
|
946
|
-
|
|
977
|
+
S(() => {
|
|
947
978
|
const b = ($) => {
|
|
948
979
|
m.current && !m.current.contains($.target) && (l(!1), h(""));
|
|
949
980
|
};
|
|
@@ -953,8 +984,8 @@ function On({ language: e }) {
|
|
|
953
984
|
const $ = a.basePath || "";
|
|
954
985
|
o(`${$}/${e}/${b}`), l(!1), h("");
|
|
955
986
|
};
|
|
956
|
-
return /* @__PURE__ */
|
|
957
|
-
/* @__PURE__ */
|
|
987
|
+
return /* @__PURE__ */ d(q, { children: [
|
|
988
|
+
/* @__PURE__ */ d(
|
|
958
989
|
"button",
|
|
959
990
|
{
|
|
960
991
|
type: "button",
|
|
@@ -967,13 +998,13 @@ function On({ language: e }) {
|
|
|
967
998
|
},
|
|
968
999
|
"aria-label": n("ui.search"),
|
|
969
1000
|
children: [
|
|
970
|
-
/* @__PURE__ */ t(
|
|
1001
|
+
/* @__PURE__ */ t(Dt, { className: T.searchIcon }),
|
|
971
1002
|
/* @__PURE__ */ t("span", { className: T.searchHint, children: n("ui.search") }),
|
|
972
1003
|
/* @__PURE__ */ t("kbd", { className: T.kbd, children: I })
|
|
973
1004
|
]
|
|
974
1005
|
}
|
|
975
1006
|
),
|
|
976
|
-
s &&
|
|
1007
|
+
s && zt(
|
|
977
1008
|
/* @__PURE__ */ t(
|
|
978
1009
|
"div",
|
|
979
1010
|
{
|
|
@@ -981,15 +1012,15 @@ function On({ language: e }) {
|
|
|
981
1012
|
onClick: () => {
|
|
982
1013
|
l(!1), h("");
|
|
983
1014
|
},
|
|
984
|
-
children: /* @__PURE__ */
|
|
1015
|
+
children: /* @__PURE__ */ d(
|
|
985
1016
|
"div",
|
|
986
1017
|
{
|
|
987
1018
|
className: T.searchModal,
|
|
988
1019
|
ref: m,
|
|
989
1020
|
onClick: (b) => b.stopPropagation(),
|
|
990
1021
|
children: [
|
|
991
|
-
/* @__PURE__ */
|
|
992
|
-
/* @__PURE__ */ t(
|
|
1022
|
+
/* @__PURE__ */ d("div", { className: T.searchHeader, children: [
|
|
1023
|
+
/* @__PURE__ */ t(Dt, { className: T.searchIcon }),
|
|
993
1024
|
/* @__PURE__ */ t(
|
|
994
1025
|
"input",
|
|
995
1026
|
{
|
|
@@ -1011,11 +1042,11 @@ function On({ language: e }) {
|
|
|
1011
1042
|
l(!1), h("");
|
|
1012
1043
|
},
|
|
1013
1044
|
"aria-label": "Close search",
|
|
1014
|
-
children: /* @__PURE__ */ t(
|
|
1045
|
+
children: /* @__PURE__ */ t(bt, {})
|
|
1015
1046
|
}
|
|
1016
1047
|
)
|
|
1017
1048
|
] }),
|
|
1018
|
-
g && /* @__PURE__ */ t("div", { className: T.searchResults, children:
|
|
1049
|
+
g && /* @__PURE__ */ t("div", { className: T.searchResults, children: u.length === 0 ? /* @__PURE__ */ t("div", { className: T.noResults, children: n("ui.noSearchResults") }) : /* @__PURE__ */ t("ul", { className: T.resultsList, children: u.map((b, $) => /* @__PURE__ */ t("li", { children: /* @__PURE__ */ d(
|
|
1019
1050
|
"button",
|
|
1020
1051
|
{
|
|
1021
1052
|
type: "button",
|
|
@@ -1024,24 +1055,24 @@ function On({ language: e }) {
|
|
|
1024
1055
|
onMouseEnter: () => _($),
|
|
1025
1056
|
children: [
|
|
1026
1057
|
/* @__PURE__ */ t("div", { className: T.resultTitle, children: b.title }),
|
|
1027
|
-
/* @__PURE__ */
|
|
1058
|
+
/* @__PURE__ */ d("div", { className: T.resultSlug, children: [
|
|
1028
1059
|
"/",
|
|
1029
1060
|
b.slug
|
|
1030
1061
|
] })
|
|
1031
1062
|
]
|
|
1032
1063
|
}
|
|
1033
1064
|
) }, b.slug)) }) }),
|
|
1034
|
-
!g && /* @__PURE__ */
|
|
1035
|
-
/* @__PURE__ */
|
|
1065
|
+
!g && /* @__PURE__ */ d("div", { className: T.searchHints, children: [
|
|
1066
|
+
/* @__PURE__ */ d("div", { className: T.hint, children: [
|
|
1036
1067
|
/* @__PURE__ */ t("kbd", { children: "↑" }),
|
|
1037
1068
|
/* @__PURE__ */ t("kbd", { children: "↓" }),
|
|
1038
1069
|
/* @__PURE__ */ t("span", { children: n("ui.searchNavigate") })
|
|
1039
1070
|
] }),
|
|
1040
|
-
/* @__PURE__ */
|
|
1071
|
+
/* @__PURE__ */ d("div", { className: T.hint, children: [
|
|
1041
1072
|
/* @__PURE__ */ t("kbd", { children: "↵" }),
|
|
1042
1073
|
/* @__PURE__ */ t("span", { children: n("ui.searchSelect") })
|
|
1043
1074
|
] }),
|
|
1044
|
-
/* @__PURE__ */
|
|
1075
|
+
/* @__PURE__ */ d("div", { className: T.hint, children: [
|
|
1045
1076
|
/* @__PURE__ */ t("kbd", { children: "esc" }),
|
|
1046
1077
|
/* @__PURE__ */ t("span", { children: n("ui.searchClose") })
|
|
1047
1078
|
] })
|
|
@@ -1055,36 +1086,36 @@ function On({ language: e }) {
|
|
|
1055
1086
|
)
|
|
1056
1087
|
] });
|
|
1057
1088
|
}
|
|
1058
|
-
const
|
|
1059
|
-
header:
|
|
1060
|
-
container:
|
|
1061
|
-
content:
|
|
1062
|
-
leftSection:
|
|
1063
|
-
mobileMenuButton:
|
|
1064
|
-
burgerIcon:
|
|
1065
|
-
logo:
|
|
1066
|
-
nav:
|
|
1067
|
-
navLink:
|
|
1068
|
-
externalIcon:
|
|
1069
|
-
supportDropdown:
|
|
1070
|
-
themeDropdown:
|
|
1071
|
-
themeButton:
|
|
1072
|
-
themeIcon:
|
|
1073
|
-
supportButton:
|
|
1074
|
-
caretIcon:
|
|
1075
|
-
dropdownMenu:
|
|
1076
|
-
dropdownItem:
|
|
1077
|
-
dropdownIcon:
|
|
1089
|
+
const Gn = "_header_jrobc_1", Qn = "_container_jrobc_24", Xn = "_content_jrobc_36", Yn = "_leftSection_jrobc_43", Vn = "_mobileMenuButton_jrobc_49", Jn = "_burgerIcon_jrobc_87", Zn = "_logo_jrobc_92", ta = "_nav_jrobc_98", ea = "_navLink_jrobc_109", na = "_externalIcon_jrobc_135", aa = "_supportDropdown_jrobc_141", oa = "_themeDropdown_jrobc_145", sa = "_themeButton_jrobc_149", ca = "_themeIcon_jrobc_171", ra = "_supportButton_jrobc_177", la = "_caretIcon_jrobc_198", ia = "_dropdownMenu_jrobc_208", da = "_dropdownItem_jrobc_221", ua = "_dropdownIcon_jrobc_244", x = {
|
|
1090
|
+
header: Gn,
|
|
1091
|
+
container: Qn,
|
|
1092
|
+
content: Xn,
|
|
1093
|
+
leftSection: Yn,
|
|
1094
|
+
mobileMenuButton: Vn,
|
|
1095
|
+
burgerIcon: Jn,
|
|
1096
|
+
logo: Zn,
|
|
1097
|
+
nav: ta,
|
|
1098
|
+
navLink: ea,
|
|
1099
|
+
externalIcon: na,
|
|
1100
|
+
supportDropdown: aa,
|
|
1101
|
+
themeDropdown: oa,
|
|
1102
|
+
themeButton: sa,
|
|
1103
|
+
themeIcon: ca,
|
|
1104
|
+
supportButton: ra,
|
|
1105
|
+
caretIcon: la,
|
|
1106
|
+
dropdownMenu: ia,
|
|
1107
|
+
dropdownItem: da,
|
|
1108
|
+
dropdownIcon: ua
|
|
1078
1109
|
};
|
|
1079
|
-
function
|
|
1080
|
-
const { t: n, i18n: o } =
|
|
1081
|
-
return
|
|
1110
|
+
function ha({ onMobileMenuToggle: e }) {
|
|
1111
|
+
const { t: n, i18n: o } = A(), { config: a } = O(), c = a.header ?? {}, s = c.navLinks ?? [], l = c.dropdownItems ?? [], [g, h] = y(!1), [u, i] = y(!1), { theme: f, setTheme: _ } = Kt(), v = G(null), w = G(null);
|
|
1112
|
+
return S(() => {
|
|
1082
1113
|
const r = (m) => {
|
|
1083
1114
|
v.current && !v.current.contains(m.target) && h(!1), w.current && !w.current.contains(m.target) && i(!1);
|
|
1084
1115
|
};
|
|
1085
1116
|
return document.addEventListener("mousedown", r), () => document.removeEventListener("mousedown", r);
|
|
1086
|
-
}, []), /* @__PURE__ */ t("header", { className: x.header, children: /* @__PURE__ */ t("div", { className: x.container, children: /* @__PURE__ */
|
|
1087
|
-
/* @__PURE__ */
|
|
1117
|
+
}, []), /* @__PURE__ */ t("header", { className: x.header, children: /* @__PURE__ */ t("div", { className: x.container, children: /* @__PURE__ */ d("div", { className: x.content, children: [
|
|
1118
|
+
/* @__PURE__ */ d("div", { className: x.leftSection, children: [
|
|
1088
1119
|
/* @__PURE__ */ t(
|
|
1089
1120
|
"button",
|
|
1090
1121
|
{
|
|
@@ -1092,33 +1123,33 @@ function oa({ onMobileMenuToggle: e }) {
|
|
|
1092
1123
|
className: x.mobileMenuButton,
|
|
1093
1124
|
onClick: e,
|
|
1094
1125
|
"aria-label": "Open menu",
|
|
1095
|
-
children: /* @__PURE__ */ t(
|
|
1126
|
+
children: /* @__PURE__ */ t(ne, { className: x.burgerIcon })
|
|
1096
1127
|
}
|
|
1097
1128
|
),
|
|
1098
1129
|
/* @__PURE__ */ t("div", { className: x.logo })
|
|
1099
1130
|
] }),
|
|
1100
|
-
/* @__PURE__ */
|
|
1101
|
-
/* @__PURE__ */ t(
|
|
1102
|
-
/* @__PURE__ */
|
|
1103
|
-
/* @__PURE__ */
|
|
1131
|
+
/* @__PURE__ */ d("nav", { className: x.nav, children: [
|
|
1132
|
+
/* @__PURE__ */ t(qn, { language: o.language }),
|
|
1133
|
+
/* @__PURE__ */ d("div", { className: x.themeDropdown, ref: w, children: [
|
|
1134
|
+
/* @__PURE__ */ d(
|
|
1104
1135
|
"button",
|
|
1105
1136
|
{
|
|
1106
1137
|
type: "button",
|
|
1107
1138
|
className: x.themeButton,
|
|
1108
|
-
onClick: () => i(!
|
|
1109
|
-
"aria-expanded":
|
|
1139
|
+
onClick: () => i(!u),
|
|
1140
|
+
"aria-expanded": u,
|
|
1110
1141
|
"aria-haspopup": "true",
|
|
1111
1142
|
"aria-label": n("ui.theme"),
|
|
1112
1143
|
children: [
|
|
1113
|
-
f === "light" && /* @__PURE__ */ t(
|
|
1114
|
-
f === "dark" && /* @__PURE__ */ t(
|
|
1115
|
-
f === "system" && /* @__PURE__ */ t(
|
|
1116
|
-
/* @__PURE__ */ t(
|
|
1144
|
+
f === "light" && /* @__PURE__ */ t(Mt, { className: x.themeIcon }),
|
|
1145
|
+
f === "dark" && /* @__PURE__ */ t(Bt, { className: x.themeIcon }),
|
|
1146
|
+
f === "system" && /* @__PURE__ */ t(Et, { className: x.themeIcon }),
|
|
1147
|
+
/* @__PURE__ */ t(pt, { className: x.caretIcon })
|
|
1117
1148
|
]
|
|
1118
1149
|
}
|
|
1119
1150
|
),
|
|
1120
|
-
|
|
1121
|
-
/* @__PURE__ */
|
|
1151
|
+
u && /* @__PURE__ */ d("div", { className: x.dropdownMenu, children: [
|
|
1152
|
+
/* @__PURE__ */ d(
|
|
1122
1153
|
"button",
|
|
1123
1154
|
{
|
|
1124
1155
|
type: "button",
|
|
@@ -1127,12 +1158,12 @@ function oa({ onMobileMenuToggle: e }) {
|
|
|
1127
1158
|
},
|
|
1128
1159
|
className: x.dropdownItem,
|
|
1129
1160
|
children: [
|
|
1130
|
-
/* @__PURE__ */ t(
|
|
1161
|
+
/* @__PURE__ */ t(Mt, { className: x.dropdownIcon }),
|
|
1131
1162
|
n("ui.light")
|
|
1132
1163
|
]
|
|
1133
1164
|
}
|
|
1134
1165
|
),
|
|
1135
|
-
/* @__PURE__ */
|
|
1166
|
+
/* @__PURE__ */ d(
|
|
1136
1167
|
"button",
|
|
1137
1168
|
{
|
|
1138
1169
|
type: "button",
|
|
@@ -1141,12 +1172,12 @@ function oa({ onMobileMenuToggle: e }) {
|
|
|
1141
1172
|
},
|
|
1142
1173
|
className: x.dropdownItem,
|
|
1143
1174
|
children: [
|
|
1144
|
-
/* @__PURE__ */ t(
|
|
1175
|
+
/* @__PURE__ */ t(Bt, { className: x.dropdownIcon }),
|
|
1145
1176
|
n("ui.dark")
|
|
1146
1177
|
]
|
|
1147
1178
|
}
|
|
1148
1179
|
),
|
|
1149
|
-
/* @__PURE__ */
|
|
1180
|
+
/* @__PURE__ */ d(
|
|
1150
1181
|
"button",
|
|
1151
1182
|
{
|
|
1152
1183
|
type: "button",
|
|
@@ -1155,15 +1186,15 @@ function oa({ onMobileMenuToggle: e }) {
|
|
|
1155
1186
|
},
|
|
1156
1187
|
className: x.dropdownItem,
|
|
1157
1188
|
children: [
|
|
1158
|
-
/* @__PURE__ */ t(
|
|
1189
|
+
/* @__PURE__ */ t(Et, { className: x.dropdownIcon }),
|
|
1159
1190
|
n("ui.system")
|
|
1160
1191
|
]
|
|
1161
1192
|
}
|
|
1162
1193
|
)
|
|
1163
1194
|
] })
|
|
1164
1195
|
] }),
|
|
1165
|
-
l.length > 0 && /* @__PURE__ */
|
|
1166
|
-
/* @__PURE__ */
|
|
1196
|
+
l.length > 0 && /* @__PURE__ */ d("div", { className: x.supportDropdown, ref: v, children: [
|
|
1197
|
+
/* @__PURE__ */ d(
|
|
1167
1198
|
"button",
|
|
1168
1199
|
{
|
|
1169
1200
|
type: "button",
|
|
@@ -1173,13 +1204,13 @@ function oa({ onMobileMenuToggle: e }) {
|
|
|
1173
1204
|
"aria-haspopup": "true",
|
|
1174
1205
|
children: [
|
|
1175
1206
|
n("ui.support"),
|
|
1176
|
-
/* @__PURE__ */ t(
|
|
1207
|
+
/* @__PURE__ */ t(pt, { className: x.caretIcon })
|
|
1177
1208
|
]
|
|
1178
1209
|
}
|
|
1179
1210
|
),
|
|
1180
1211
|
g && /* @__PURE__ */ t("div", { className: x.dropdownMenu, children: l.map((r, m) => {
|
|
1181
1212
|
const N = r.target ?? (r.url.startsWith("http") ? "_blank" : "_self"), I = r.rel ?? (N === "_blank" ? "noopener noreferrer" : void 0), D = r.icon;
|
|
1182
|
-
return /* @__PURE__ */
|
|
1213
|
+
return /* @__PURE__ */ d(
|
|
1183
1214
|
"a",
|
|
1184
1215
|
{
|
|
1185
1216
|
href: r.url,
|
|
@@ -1197,7 +1228,7 @@ function oa({ onMobileMenuToggle: e }) {
|
|
|
1197
1228
|
] }),
|
|
1198
1229
|
s.map((r, m) => {
|
|
1199
1230
|
const N = r.target ?? (typeof r.url == "string" && r.url.startsWith("http") ? "_blank" : "_self"), I = r.rel ?? (N === "_blank" ? "noopener noreferrer" : void 0), D = r.icon;
|
|
1200
|
-
return /* @__PURE__ */
|
|
1231
|
+
return /* @__PURE__ */ d(
|
|
1201
1232
|
"a",
|
|
1202
1233
|
{
|
|
1203
1234
|
href: r.url,
|
|
@@ -1215,11 +1246,11 @@ function oa({ onMobileMenuToggle: e }) {
|
|
|
1215
1246
|
] })
|
|
1216
1247
|
] }) }) });
|
|
1217
1248
|
}
|
|
1218
|
-
function
|
|
1249
|
+
function wt({
|
|
1219
1250
|
styles: e,
|
|
1220
1251
|
onLanguageChange: n
|
|
1221
1252
|
}) {
|
|
1222
|
-
const { i18n: o } =
|
|
1253
|
+
const { i18n: o } = A(), a = Q(), c = X(), { config: s } = O(), [l, g] = y(!1), h = G(null), u = o.language, i = (_) => {
|
|
1223
1254
|
const v = s.basePath || "";
|
|
1224
1255
|
let w = a.pathname;
|
|
1225
1256
|
v && w.startsWith(v) && (w = w.slice(v.length));
|
|
@@ -1229,15 +1260,15 @@ function bt({
|
|
|
1229
1260
|
const I = N + a.search + a.hash;
|
|
1230
1261
|
o.changeLanguage(_), c(I), g(!1), n == null || n();
|
|
1231
1262
|
};
|
|
1232
|
-
|
|
1263
|
+
S(() => {
|
|
1233
1264
|
const _ = (v) => {
|
|
1234
1265
|
h.current && !h.current.contains(v.target) && g(!1);
|
|
1235
1266
|
};
|
|
1236
1267
|
return document.addEventListener("mousedown", _), () => document.removeEventListener("mousedown", _);
|
|
1237
1268
|
}, []);
|
|
1238
1269
|
const f = (_) => o.getFixedT(_)("language") || _;
|
|
1239
|
-
return /* @__PURE__ */
|
|
1240
|
-
/* @__PURE__ */
|
|
1270
|
+
return /* @__PURE__ */ d("div", { className: e.languageSelect, ref: h, children: [
|
|
1271
|
+
/* @__PURE__ */ d(
|
|
1241
1272
|
"button",
|
|
1242
1273
|
{
|
|
1243
1274
|
type: "button",
|
|
@@ -1246,9 +1277,9 @@ function bt({
|
|
|
1246
1277
|
"aria-expanded": l,
|
|
1247
1278
|
"aria-haspopup": "listbox",
|
|
1248
1279
|
children: [
|
|
1249
|
-
/* @__PURE__ */ t(
|
|
1250
|
-
f(
|
|
1251
|
-
/* @__PURE__ */ t(
|
|
1280
|
+
/* @__PURE__ */ t(ae, { className: e.icon }),
|
|
1281
|
+
f(u),
|
|
1282
|
+
/* @__PURE__ */ t(pt, { className: e.chevron })
|
|
1252
1283
|
]
|
|
1253
1284
|
}
|
|
1254
1285
|
),
|
|
@@ -1256,23 +1287,23 @@ function bt({
|
|
|
1256
1287
|
"button",
|
|
1257
1288
|
{
|
|
1258
1289
|
type: "button",
|
|
1259
|
-
className: `${e.languageOption} ${_ ===
|
|
1290
|
+
className: `${e.languageOption} ${_ === u ? e.selected : ""}`,
|
|
1260
1291
|
onClick: () => i(_),
|
|
1261
1292
|
role: "option",
|
|
1262
|
-
"aria-selected": _ ===
|
|
1293
|
+
"aria-selected": _ === u,
|
|
1263
1294
|
children: f(_)
|
|
1264
1295
|
},
|
|
1265
1296
|
_
|
|
1266
1297
|
)) })
|
|
1267
1298
|
] });
|
|
1268
1299
|
}
|
|
1269
|
-
function
|
|
1270
|
-
const { i18n: o } =
|
|
1271
|
-
|
|
1300
|
+
function Nt({ styles: e, onLinkClick: n }) {
|
|
1301
|
+
const { i18n: o } = A(), a = Q(), { config: c, loadContent: s } = O(), [l, g] = y([]), [h, u] = y({}), i = o.language;
|
|
1302
|
+
S(() => {
|
|
1272
1303
|
(async () => {
|
|
1273
1304
|
if (c.navigationData)
|
|
1274
1305
|
try {
|
|
1275
|
-
const m = await
|
|
1306
|
+
const m = await ut(
|
|
1276
1307
|
c.navigationData,
|
|
1277
1308
|
i,
|
|
1278
1309
|
s
|
|
@@ -1280,7 +1311,7 @@ function wt({ styles: e, onLinkClick: n }) {
|
|
|
1280
1311
|
g(m);
|
|
1281
1312
|
const N = m.reduce(
|
|
1282
1313
|
(I, D, H) => {
|
|
1283
|
-
if (
|
|
1314
|
+
if (ot(D)) {
|
|
1284
1315
|
const b = c.navigationData[H], $ = "items" in b && b.defaultOpen === !0;
|
|
1285
1316
|
I[D.title] = $;
|
|
1286
1317
|
}
|
|
@@ -1288,14 +1319,14 @@ function wt({ styles: e, onLinkClick: n }) {
|
|
|
1288
1319
|
},
|
|
1289
1320
|
{}
|
|
1290
1321
|
);
|
|
1291
|
-
|
|
1322
|
+
u(N);
|
|
1292
1323
|
} catch (m) {
|
|
1293
1324
|
console.error("Failed to load navigation data:", m);
|
|
1294
1325
|
}
|
|
1295
1326
|
})();
|
|
1296
1327
|
}, [i, c.navigationData, s]);
|
|
1297
1328
|
const f = (r) => {
|
|
1298
|
-
|
|
1329
|
+
u((m) => ({
|
|
1299
1330
|
...m,
|
|
1300
1331
|
[r]: !m[r]
|
|
1301
1332
|
}));
|
|
@@ -1314,8 +1345,8 @@ function wt({ styles: e, onLinkClick: n }) {
|
|
|
1314
1345
|
}, w = () => {
|
|
1315
1346
|
n == null || n();
|
|
1316
1347
|
};
|
|
1317
|
-
return /* @__PURE__ */ t("div", { className: e.navigation, children: l.map((r) =>
|
|
1318
|
-
/* @__PURE__ */
|
|
1348
|
+
return /* @__PURE__ */ t("div", { className: e.navigation, children: l.map((r) => ot(r) ? /* @__PURE__ */ d("div", { className: e.section, children: [
|
|
1349
|
+
/* @__PURE__ */ d(
|
|
1319
1350
|
"button",
|
|
1320
1351
|
{
|
|
1321
1352
|
type: "button",
|
|
@@ -1323,12 +1354,12 @@ function wt({ styles: e, onLinkClick: n }) {
|
|
|
1323
1354
|
onClick: () => f(r.title),
|
|
1324
1355
|
children: [
|
|
1325
1356
|
r.title,
|
|
1326
|
-
/* @__PURE__ */ t(
|
|
1357
|
+
/* @__PURE__ */ t(Ht, { className: e.icon })
|
|
1327
1358
|
]
|
|
1328
1359
|
}
|
|
1329
1360
|
),
|
|
1330
1361
|
h[r.title] && /* @__PURE__ */ t("div", { className: e.sectionItems, children: r.items.map((m) => /* @__PURE__ */ t(
|
|
1331
|
-
|
|
1362
|
+
dt,
|
|
1332
1363
|
{
|
|
1333
1364
|
to: v(m.slug),
|
|
1334
1365
|
className: `${e.navItem} ${_(m.slug) ? e.active : ""}`,
|
|
@@ -1338,7 +1369,7 @@ function wt({ styles: e, onLinkClick: n }) {
|
|
|
1338
1369
|
m.slug
|
|
1339
1370
|
)) })
|
|
1340
1371
|
] }, r.title) : /* @__PURE__ */ t(
|
|
1341
|
-
|
|
1372
|
+
dt,
|
|
1342
1373
|
{
|
|
1343
1374
|
to: v(r.slug),
|
|
1344
1375
|
className: `${e.navItem} ${_(r.slug) ? e.active : ""}`,
|
|
@@ -1348,55 +1379,55 @@ function wt({ styles: e, onLinkClick: n }) {
|
|
|
1348
1379
|
r.slug
|
|
1349
1380
|
)) });
|
|
1350
1381
|
}
|
|
1351
|
-
function
|
|
1382
|
+
function Ao({
|
|
1352
1383
|
styles: e,
|
|
1353
1384
|
onLinkClick: n,
|
|
1354
1385
|
onLanguageChange: o
|
|
1355
1386
|
}) {
|
|
1356
|
-
return /* @__PURE__ */
|
|
1357
|
-
/* @__PURE__ */ t(
|
|
1358
|
-
/* @__PURE__ */ t(
|
|
1387
|
+
return /* @__PURE__ */ d(q, { children: [
|
|
1388
|
+
/* @__PURE__ */ t(wt, { styles: e, onLanguageChange: o }),
|
|
1389
|
+
/* @__PURE__ */ t(Nt, { styles: e, onLinkClick: n })
|
|
1359
1390
|
] });
|
|
1360
1391
|
}
|
|
1361
|
-
const
|
|
1362
|
-
backdrop:
|
|
1363
|
-
open:
|
|
1364
|
-
mobileMenu:
|
|
1365
|
-
header:
|
|
1366
|
-
brand:
|
|
1367
|
-
cloudIcon:
|
|
1368
|
-
title:
|
|
1369
|
-
closeButton:
|
|
1370
|
-
closeIcon:
|
|
1371
|
-
languageSection:
|
|
1372
|
-
languageSelect:
|
|
1373
|
-
languageButton:
|
|
1374
|
-
icon:
|
|
1375
|
-
chevron:
|
|
1376
|
-
languageDropdown:
|
|
1377
|
-
languageOption:
|
|
1378
|
-
selected:
|
|
1379
|
-
scrollArea:
|
|
1380
|
-
navigation:
|
|
1381
|
-
section:
|
|
1382
|
-
sectionButton:
|
|
1383
|
-
expanded:
|
|
1384
|
-
sectionItems:
|
|
1385
|
-
navItem:
|
|
1386
|
-
active:
|
|
1387
|
-
navItemContent:
|
|
1388
|
-
navItemTitle:
|
|
1392
|
+
const ma = "_backdrop_1a7pu_1", ga = "_open_1a7pu_13", _a = "_mobileMenu_1a7pu_18", pa = "_header_1a7pu_37", fa = "_brand_1a7pu_46", va = "_cloudIcon_1a7pu_53", ba = "_title_1a7pu_62", wa = "_closeButton_1a7pu_69", Na = "_closeIcon_1a7pu_101", ka = "_languageSection_1a7pu_106", $a = "_languageSelect_1a7pu_112", xa = "_languageButton_1a7pu_117", Ia = "_icon_1a7pu_156", Ca = "_chevron_1a7pu_162", ya = "_languageDropdown_1a7pu_172", La = "_languageOption_1a7pu_185", Ta = "_selected_1a7pu_226", Sa = "_scrollArea_1a7pu_231", Pa = "_navigation_1a7pu_237", Da = "_section_1a7pu_241", Ma = "_sectionButton_1a7pu_245", Ba = "_expanded_1a7pu_285", Ea = "_sectionItems_1a7pu_289", Ra = "_navItem_1a7pu_297", Aa = "_active_1a7pu_310", Oa = "_navItemContent_1a7pu_316", ja = "_navItemTitle_1a7pu_322", R = {
|
|
1393
|
+
backdrop: ma,
|
|
1394
|
+
open: ga,
|
|
1395
|
+
mobileMenu: _a,
|
|
1396
|
+
header: pa,
|
|
1397
|
+
brand: fa,
|
|
1398
|
+
cloudIcon: va,
|
|
1399
|
+
title: ba,
|
|
1400
|
+
closeButton: wa,
|
|
1401
|
+
closeIcon: Na,
|
|
1402
|
+
languageSection: ka,
|
|
1403
|
+
languageSelect: $a,
|
|
1404
|
+
languageButton: xa,
|
|
1405
|
+
icon: Ia,
|
|
1406
|
+
chevron: Ca,
|
|
1407
|
+
languageDropdown: ya,
|
|
1408
|
+
languageOption: La,
|
|
1409
|
+
selected: Ta,
|
|
1410
|
+
scrollArea: Sa,
|
|
1411
|
+
navigation: Pa,
|
|
1412
|
+
section: Da,
|
|
1413
|
+
sectionButton: Ma,
|
|
1414
|
+
expanded: Ba,
|
|
1415
|
+
sectionItems: Ea,
|
|
1416
|
+
navItem: Ra,
|
|
1417
|
+
active: Aa,
|
|
1418
|
+
navItemContent: Oa,
|
|
1419
|
+
navItemTitle: ja
|
|
1389
1420
|
};
|
|
1390
|
-
function
|
|
1391
|
-
const { config: o } =
|
|
1392
|
-
return
|
|
1421
|
+
function Wa({ isOpen: e, onClose: n }) {
|
|
1422
|
+
const { config: o } = O(), a = o.logo;
|
|
1423
|
+
return S(() => (e ? document.body.style.overflow = "hidden" : document.body.style.overflow = "unset", () => {
|
|
1393
1424
|
document.body.style.overflow = "unset";
|
|
1394
|
-
}), [e]),
|
|
1425
|
+
}), [e]), S(() => {
|
|
1395
1426
|
const c = (s) => {
|
|
1396
1427
|
s.key === "Escape" && e && n();
|
|
1397
1428
|
};
|
|
1398
1429
|
return document.addEventListener("keydown", c), () => document.removeEventListener("keydown", c);
|
|
1399
|
-
}, [e, n]), /* @__PURE__ */
|
|
1430
|
+
}, [e, n]), /* @__PURE__ */ d(q, { children: [
|
|
1400
1431
|
/* @__PURE__ */ t(
|
|
1401
1432
|
"div",
|
|
1402
1433
|
{
|
|
@@ -1404,9 +1435,9 @@ function Da({ isOpen: e, onClose: n }) {
|
|
|
1404
1435
|
onClick: n
|
|
1405
1436
|
}
|
|
1406
1437
|
),
|
|
1407
|
-
/* @__PURE__ */
|
|
1408
|
-
/* @__PURE__ */
|
|
1409
|
-
/* @__PURE__ */
|
|
1438
|
+
/* @__PURE__ */ d("div", { className: `${R.mobileMenu} ${e ? R.open : ""}`, children: [
|
|
1439
|
+
/* @__PURE__ */ d("div", { className: R.header, children: [
|
|
1440
|
+
/* @__PURE__ */ d("div", { className: R.brand, children: [
|
|
1410
1441
|
a && /* @__PURE__ */ t(a, { className: R.cloudIcon }),
|
|
1411
1442
|
/* @__PURE__ */ t("h1", { className: R.title, children: o.title })
|
|
1412
1443
|
] }),
|
|
@@ -1417,61 +1448,61 @@ function Da({ isOpen: e, onClose: n }) {
|
|
|
1417
1448
|
className: R.closeButton,
|
|
1418
1449
|
onClick: n,
|
|
1419
1450
|
"aria-label": "Close menu",
|
|
1420
|
-
children: /* @__PURE__ */ t(
|
|
1451
|
+
children: /* @__PURE__ */ t(bt, { className: R.closeIcon })
|
|
1421
1452
|
}
|
|
1422
1453
|
)
|
|
1423
1454
|
] }),
|
|
1424
|
-
/* @__PURE__ */ t("div", { className: R.languageSection, children: /* @__PURE__ */ t(
|
|
1425
|
-
/* @__PURE__ */ t("div", { className: R.scrollArea, children: /* @__PURE__ */ t(
|
|
1455
|
+
/* @__PURE__ */ t("div", { className: R.languageSection, children: /* @__PURE__ */ t(wt, { styles: R, onLanguageChange: n }) }),
|
|
1456
|
+
/* @__PURE__ */ t("div", { className: R.scrollArea, children: /* @__PURE__ */ t(Nt, { styles: R, onLinkClick: n }) })
|
|
1426
1457
|
] })
|
|
1427
1458
|
] });
|
|
1428
1459
|
}
|
|
1429
|
-
const
|
|
1430
|
-
sidebar:
|
|
1431
|
-
header:
|
|
1432
|
-
brand:
|
|
1433
|
-
cloudIcon:
|
|
1434
|
-
title:
|
|
1435
|
-
languageSelect:
|
|
1436
|
-
languageButton:
|
|
1437
|
-
icon:
|
|
1438
|
-
chevron:
|
|
1439
|
-
languageDropdown:
|
|
1440
|
-
languageOption:
|
|
1441
|
-
selected:
|
|
1442
|
-
scrollArea:
|
|
1443
|
-
navigation:
|
|
1444
|
-
section:
|
|
1445
|
-
sectionButton:
|
|
1446
|
-
expanded:
|
|
1447
|
-
sectionItems:
|
|
1448
|
-
navItem:
|
|
1449
|
-
active:
|
|
1450
|
-
navItemContent:
|
|
1460
|
+
const Ha = "_sidebar_1tdxt_1", za = "_header_1tdxt_17", Fa = "_brand_1tdxt_29", Ua = "_cloudIcon_1tdxt_35", Ka = "_title_1tdxt_44", qa = "_languageSelect_1tdxt_55", Ga = "_languageButton_1tdxt_61", Qa = "_icon_1tdxt_99", Xa = "_chevron_1tdxt_104", Ya = "_languageDropdown_1tdxt_114", Va = "_languageOption_1tdxt_128", Ja = "_selected_1tdxt_147", Za = "_scrollArea_1tdxt_152", to = "_navigation_1tdxt_158", eo = "_section_1tdxt_164", no = "_sectionButton_1tdxt_170", ao = "_expanded_1tdxt_213", oo = "_sectionItems_1tdxt_217", so = "_navItem_1tdxt_225", co = "_active_1tdxt_238", ro = "_navItemContent_1tdxt_243", K = {
|
|
1461
|
+
sidebar: Ha,
|
|
1462
|
+
header: za,
|
|
1463
|
+
brand: Fa,
|
|
1464
|
+
cloudIcon: Ua,
|
|
1465
|
+
title: Ka,
|
|
1466
|
+
languageSelect: qa,
|
|
1467
|
+
languageButton: Ga,
|
|
1468
|
+
icon: Qa,
|
|
1469
|
+
chevron: Xa,
|
|
1470
|
+
languageDropdown: Ya,
|
|
1471
|
+
languageOption: Va,
|
|
1472
|
+
selected: Ja,
|
|
1473
|
+
scrollArea: Za,
|
|
1474
|
+
navigation: to,
|
|
1475
|
+
section: eo,
|
|
1476
|
+
sectionButton: no,
|
|
1477
|
+
expanded: ao,
|
|
1478
|
+
sectionItems: oo,
|
|
1479
|
+
navItem: so,
|
|
1480
|
+
active: co,
|
|
1481
|
+
navItemContent: ro
|
|
1451
1482
|
};
|
|
1452
|
-
function
|
|
1453
|
-
const { config: e } =
|
|
1454
|
-
return /* @__PURE__ */
|
|
1455
|
-
/* @__PURE__ */
|
|
1456
|
-
/* @__PURE__ */
|
|
1483
|
+
function lo() {
|
|
1484
|
+
const { config: e } = O(), n = e.logo, o = e.supportedLanguages.length > 1;
|
|
1485
|
+
return /* @__PURE__ */ d("div", { className: K.sidebar, children: [
|
|
1486
|
+
/* @__PURE__ */ d("div", { className: K.header, children: [
|
|
1487
|
+
/* @__PURE__ */ d("div", { className: K.brand, children: [
|
|
1457
1488
|
n && /* @__PURE__ */ t(n, { className: K.cloudIcon }),
|
|
1458
1489
|
/* @__PURE__ */ t("div", { className: K.title, children: e.title })
|
|
1459
1490
|
] }),
|
|
1460
|
-
o && /* @__PURE__ */ t(
|
|
1491
|
+
o && /* @__PURE__ */ t(wt, { styles: K })
|
|
1461
1492
|
] }),
|
|
1462
|
-
/* @__PURE__ */ t("div", { className: K.scrollArea, children: /* @__PURE__ */ t(
|
|
1493
|
+
/* @__PURE__ */ t("div", { className: K.scrollArea, children: /* @__PURE__ */ t(Nt, { styles: K }) })
|
|
1463
1494
|
] });
|
|
1464
1495
|
}
|
|
1465
|
-
const
|
|
1466
|
-
app:
|
|
1467
|
-
layout:
|
|
1468
|
-
main:
|
|
1469
|
-
fullWidth:
|
|
1470
|
-
contentWrapper:
|
|
1496
|
+
const io = "_app_wf6ni_1", uo = "_layout_wf6ni_9", ho = "_main_wf6ni_15", mo = "_fullWidth_wf6ni_21", go = "_contentWrapper_wf6ni_30", at = {
|
|
1497
|
+
app: io,
|
|
1498
|
+
layout: uo,
|
|
1499
|
+
main: ho,
|
|
1500
|
+
fullWidth: mo,
|
|
1501
|
+
contentWrapper: go
|
|
1471
1502
|
};
|
|
1472
|
-
function
|
|
1473
|
-
const { language: n } =
|
|
1474
|
-
|
|
1503
|
+
function _o({ children: e }) {
|
|
1504
|
+
const { language: n } = vt(), { i18n: o } = A(), { config: a } = O(), [c, s] = y(!1);
|
|
1505
|
+
S(() => {
|
|
1475
1506
|
n && a.supportedLanguages.includes(n) && o.changeLanguage(n);
|
|
1476
1507
|
}, [n, o, a.supportedLanguages]);
|
|
1477
1508
|
const l = () => {
|
|
@@ -1480,48 +1511,48 @@ function co({ children: e }) {
|
|
|
1480
1511
|
s(!1);
|
|
1481
1512
|
};
|
|
1482
1513
|
if (!n || !a.supportedLanguages.includes(n))
|
|
1483
|
-
return /* @__PURE__ */ t(
|
|
1484
|
-
const h = !!a.header,
|
|
1485
|
-
return /* @__PURE__ */
|
|
1486
|
-
h && /* @__PURE__ */ t(
|
|
1487
|
-
/* @__PURE__ */ t(
|
|
1488
|
-
/* @__PURE__ */
|
|
1489
|
-
|
|
1514
|
+
return /* @__PURE__ */ t(Wt, { to: "/en/welcome", replace: !0 });
|
|
1515
|
+
const h = !!a.header, u = a.showSideMenu !== !1, i = a.contentMaxWidth ? { width: "100%", maxWidth: a.contentMaxWidth } : void 0;
|
|
1516
|
+
return /* @__PURE__ */ d("div", { className: at.app, children: [
|
|
1517
|
+
h && /* @__PURE__ */ t(ha, { onMobileMenuToggle: l }),
|
|
1518
|
+
/* @__PURE__ */ t(Wa, { isOpen: c, onClose: g }),
|
|
1519
|
+
/* @__PURE__ */ d("div", { className: at.layout, children: [
|
|
1520
|
+
u && /* @__PURE__ */ t(lo, {}),
|
|
1490
1521
|
/* @__PURE__ */ t(
|
|
1491
1522
|
"main",
|
|
1492
1523
|
{
|
|
1493
|
-
className: `${
|
|
1494
|
-
children: /* @__PURE__ */ t("div", { className:
|
|
1524
|
+
className: `${at.main} ${u ? "" : at.fullWidth}`,
|
|
1525
|
+
children: /* @__PURE__ */ t("div", { className: at.contentWrapper, style: i, children: e })
|
|
1495
1526
|
}
|
|
1496
1527
|
)
|
|
1497
1528
|
] })
|
|
1498
1529
|
] });
|
|
1499
1530
|
}
|
|
1500
|
-
const
|
|
1501
|
-
homePage:
|
|
1502
|
-
header:
|
|
1503
|
-
title:
|
|
1504
|
-
articlesList:
|
|
1505
|
-
articleCard:
|
|
1506
|
-
articleTitle:
|
|
1507
|
-
articleDescription:
|
|
1508
|
-
loading:
|
|
1509
|
-
empty:
|
|
1531
|
+
const po = "_homePage_1lc5u_1", fo = "_header_1lc5u_20", vo = "_title_1lc5u_24", bo = "_articlesList_1lc5u_31", wo = "_articleCard_1lc5u_37", No = "_articleTitle_1lc5u_56", ko = "_articleDescription_1lc5u_63", $o = "_loading_1lc5u_70", xo = "_empty_1lc5u_71", F = {
|
|
1532
|
+
homePage: po,
|
|
1533
|
+
header: fo,
|
|
1534
|
+
title: vo,
|
|
1535
|
+
articlesList: bo,
|
|
1536
|
+
articleCard: wo,
|
|
1537
|
+
articleTitle: No,
|
|
1538
|
+
articleDescription: ko,
|
|
1539
|
+
loading: $o,
|
|
1540
|
+
empty: xo
|
|
1510
1541
|
};
|
|
1511
|
-
function
|
|
1512
|
-
const { i18n: e, t: n } =
|
|
1513
|
-
|
|
1542
|
+
function Io() {
|
|
1543
|
+
const { i18n: e, t: n } = A(), { config: o, loadContent: a } = O(), c = X(), [s, l] = y([]), [g, h] = y(!0);
|
|
1544
|
+
S(() => {
|
|
1514
1545
|
(async () => {
|
|
1515
1546
|
try {
|
|
1516
1547
|
const f = o.navigationData || [];
|
|
1517
1548
|
if (f.length === 0) return;
|
|
1518
|
-
const _ = await
|
|
1549
|
+
const _ = await ut(
|
|
1519
1550
|
f,
|
|
1520
1551
|
e.language,
|
|
1521
1552
|
a
|
|
1522
1553
|
), v = [];
|
|
1523
1554
|
for (const r of _)
|
|
1524
|
-
if (
|
|
1555
|
+
if (ot(r))
|
|
1525
1556
|
for (const m of r.items)
|
|
1526
1557
|
v.push({
|
|
1527
1558
|
slug: m.slug,
|
|
@@ -1556,42 +1587,45 @@ function fo() {
|
|
|
1556
1587
|
}
|
|
1557
1588
|
})();
|
|
1558
1589
|
}, [e.language, o.navigationData, a]);
|
|
1559
|
-
const
|
|
1590
|
+
const u = (i) => {
|
|
1560
1591
|
const f = o.basePath || "";
|
|
1561
1592
|
window.scrollTo({ top: 0, left: 0, behavior: "auto" }), c(`${f}/${e.language}/${i}`);
|
|
1562
1593
|
};
|
|
1563
|
-
return g ? /* @__PURE__ */ t("div", { className: F.loading, children: n("ui.loadingArticles") }) : s.length === 0 ? /* @__PURE__ */ t("div", { className: F.empty, children: n("ui.noArticlesFound") }) : /* @__PURE__ */
|
|
1564
|
-
/* @__PURE__ */
|
|
1565
|
-
|
|
1566
|
-
"
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1594
|
+
return g ? /* @__PURE__ */ t("div", { className: F.loading, children: n("ui.loadingArticles") }) : s.length === 0 ? /* @__PURE__ */ t("div", { className: F.empty, children: n("ui.noArticlesFound") }) : /* @__PURE__ */ d(q, { children: [
|
|
1595
|
+
/* @__PURE__ */ d("div", { className: F.homePage, children: [
|
|
1596
|
+
/* @__PURE__ */ t("div", { className: F.header, children: /* @__PURE__ */ t("h1", { className: F.title, children: n("ui.latestPosts") }) }),
|
|
1597
|
+
/* @__PURE__ */ t("div", { className: F.articlesList, children: s.map((i) => /* @__PURE__ */ d(
|
|
1598
|
+
"button",
|
|
1599
|
+
{
|
|
1600
|
+
className: F.articleCard,
|
|
1601
|
+
onClick: () => u(i.slug),
|
|
1602
|
+
type: "button",
|
|
1603
|
+
children: [
|
|
1604
|
+
/* @__PURE__ */ t("h2", { className: F.articleTitle, children: i.title }),
|
|
1605
|
+
i.description && /* @__PURE__ */ t("p", { className: F.articleDescription, children: i.description }),
|
|
1606
|
+
/* @__PURE__ */ t(ft, { date: i.date, author: i.author })
|
|
1607
|
+
]
|
|
1608
|
+
},
|
|
1609
|
+
i.slug
|
|
1610
|
+
)) })
|
|
1611
|
+
] }),
|
|
1612
|
+
/* @__PURE__ */ t(De, {})
|
|
1579
1613
|
] });
|
|
1580
1614
|
}
|
|
1581
|
-
function
|
|
1582
|
-
const { language: e } =
|
|
1583
|
-
return /* @__PURE__ */ t(
|
|
1584
|
-
/* @__PURE__ */ t(Pt, { path: "/:slug", element: /* @__PURE__ */ t(
|
|
1615
|
+
function Oo() {
|
|
1616
|
+
const { language: e } = vt(), { config: n } = O();
|
|
1617
|
+
return /* @__PURE__ */ t(_o, { children: /* @__PURE__ */ d(Yt, { children: [
|
|
1618
|
+
/* @__PURE__ */ t(Pt, { path: "/:slug", element: /* @__PURE__ */ t(yn, { language: e }) }),
|
|
1585
1619
|
/* @__PURE__ */ t(
|
|
1586
1620
|
Pt,
|
|
1587
1621
|
{
|
|
1588
1622
|
index: !0,
|
|
1589
|
-
element: (n.defaultRoute || "latest") === "latest" ? /* @__PURE__ */ t(
|
|
1623
|
+
element: (n.defaultRoute || "latest") === "latest" ? /* @__PURE__ */ t(Io, {}) : /* @__PURE__ */ t(Wt, { to: `./${n.defaultRoute}`, replace: !0 })
|
|
1590
1624
|
}
|
|
1591
1625
|
)
|
|
1592
1626
|
] }) });
|
|
1593
1627
|
}
|
|
1594
|
-
function
|
|
1628
|
+
function jo() {
|
|
1595
1629
|
return {
|
|
1596
1630
|
openSearchModal: () => {
|
|
1597
1631
|
window.dispatchEvent(new CustomEvent("blog:open-search"));
|
|
@@ -1601,46 +1635,47 @@ function So() {
|
|
|
1601
1635
|
}
|
|
1602
1636
|
};
|
|
1603
1637
|
}
|
|
1604
|
-
function
|
|
1605
|
-
const { i18n: e } =
|
|
1638
|
+
function Wo() {
|
|
1639
|
+
const { i18n: e } = A(), n = Q(), o = X(), { config: a } = O();
|
|
1606
1640
|
return (c) => {
|
|
1607
1641
|
const s = a.basePath || "";
|
|
1608
1642
|
let l = n.pathname;
|
|
1609
1643
|
s && l.startsWith(s) && (l = l.slice(s.length));
|
|
1610
1644
|
const g = l.split("/").filter(Boolean), h = g[0];
|
|
1611
|
-
let
|
|
1612
|
-
a.supportedLanguages.includes(h) ? (g[0] = c,
|
|
1613
|
-
const i =
|
|
1645
|
+
let u = "";
|
|
1646
|
+
a.supportedLanguages.includes(h) ? (g[0] = c, u = `${s}/${g.join("/")}`) : u = `${s}/${c}${l}`;
|
|
1647
|
+
const i = u + n.search + n.hash;
|
|
1614
1648
|
e.changeLanguage(c), o(i);
|
|
1615
1649
|
};
|
|
1616
1650
|
}
|
|
1617
1651
|
export {
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
|
|
1652
|
+
he as AdvancedModeToggle,
|
|
1653
|
+
Ce as ArticleNavigation,
|
|
1654
|
+
Ro as BlogProvider,
|
|
1655
|
+
me as BlogRoot,
|
|
1656
|
+
De as BlogSidebar,
|
|
1657
|
+
yn as ContentPage,
|
|
1658
|
+
_o as DocumentationLayout,
|
|
1659
|
+
Oo as DocumentationRoutes,
|
|
1660
|
+
ha as Header,
|
|
1661
|
+
Io as HomePage,
|
|
1662
|
+
wt as LanguageSelector,
|
|
1663
|
+
ft as Metadata,
|
|
1664
|
+
Wa as MobileMenu,
|
|
1665
|
+
Ao as NavigationContent,
|
|
1666
|
+
Nt as NavigationMenu,
|
|
1667
|
+
qn as SearchBar,
|
|
1668
|
+
lo as Sidebar,
|
|
1669
|
+
Xe as TableOfContents,
|
|
1670
|
+
rn as TagResultsModal,
|
|
1671
|
+
_n as Tags,
|
|
1672
|
+
Eo as createBlogUtils,
|
|
1673
|
+
Ft as createContentLoaders,
|
|
1639
1674
|
Z as generateHeadingId,
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
1675
|
+
_e as getAdjacentArticles,
|
|
1676
|
+
ut as getNavigationData,
|
|
1677
|
+
O as useBlogConfig,
|
|
1678
|
+
Wo as useLanguageChange,
|
|
1679
|
+
jo as useSearchModal,
|
|
1680
|
+
Kt as useTheme
|
|
1646
1681
|
};
|