@x-wave/blog 1.0.23 → 1.0.26

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