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