@x-wave/blog 1.0.20 → 1.0.22

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