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