@x-wave/blog 1.0.22 → 1.0.24

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,40 +1,40 @@
1
- import { jsxs as d, jsx as e, Fragment as Y } from "react/jsx-runtime";
1
+ import { jsxs as u, jsx as e, Fragment as z } from "react/jsx-runtime";
2
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";
3
+ import { useLocation as G, useNavigate as F, useParams as re, Link as ge, Navigate as $e, Routes as Se, Route as me } from "react-router-dom";
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
- 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 = {
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";
9
+ import { createPortal as xe } from "react-dom";
10
+ const He = "_tabContainer_zk6h4_1", qe = "_tab_zk6h4_1", Fe = "_active_zk6h4_45", Q = {
11
11
  tabContainer: He,
12
12
  tab: qe,
13
13
  active: Fe
14
14
  };
15
- function Ke({ hasAdvanced: t }) {
16
- const { t: n } = E(), s = Q(), a = z();
15
+ function Ue({ hasAdvanced: t }) {
16
+ const { t: n } = E(), a = G(), o = F();
17
17
  if (!t) return null;
18
- const o = new URLSearchParams(s.search).has("advanced"), u = () => {
19
- if (o) {
20
- const h = new URLSearchParams(s.search);
21
- h.delete("advanced");
22
- const v = h.toString(), _ = v ? `?${v}` : "";
23
- a(`${s.pathname}${_}${s.hash}`);
18
+ const s = new URLSearchParams(a.search).has("advanced"), i = () => {
19
+ if (s) {
20
+ const g = new URLSearchParams(a.search);
21
+ g.delete("advanced");
22
+ const _ = g.toString(), h = _ ? `?${_}` : "";
23
+ o(`${a.pathname}${h}${a.hash}`);
24
24
  }
25
25
  }, m = () => {
26
- if (!o) {
27
- const h = new URLSearchParams(s.search);
28
- h.set("advanced", ""), a(`${s.pathname}?${h.toString()}${s.hash}`);
26
+ if (!s) {
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__ */ d("div", { className: X.tabContainer, children: [
31
+ return /* @__PURE__ */ u("div", { className: Q.tabContainer, children: [
32
32
  /* @__PURE__ */ e(
33
33
  "button",
34
34
  {
35
35
  type: "button",
36
- className: `${X.tab} ${o ? "" : X.active}`,
37
- onClick: u,
36
+ className: `${Q.tab} ${s ? "" : Q.active}`,
37
+ onClick: i,
38
38
  children: n("ui.simple")
39
39
  }
40
40
  ),
@@ -42,69 +42,69 @@ function Ke({ hasAdvanced: t }) {
42
42
  "button",
43
43
  {
44
44
  type: "button",
45
- className: `${X.tab} ${o ? X.active : ""}`,
45
+ className: `${Q.tab} ${s ? Q.active : ""}`,
46
46
  onClick: m,
47
47
  children: n("ui.advanced")
48
48
  }
49
49
  )
50
50
  ] });
51
51
  }
52
- function Ue({ children: t }) {
52
+ function Ke({ children: t }) {
53
53
  return /* @__PURE__ */ e("div", { className: "xw-blog-root", children: t });
54
54
  }
55
- function Ie(t) {
56
- function n(s) {
57
- const a = s.match(/^---\s*\n([\s\S]*?)\n---\s*\n/);
58
- if (!a) return { frontmatter: {}, content: s };
59
- const r = {}, o = a[1];
60
- let u = "", m = !1;
61
- const h = [];
62
- for (const _ of o.split(`
55
+ function Ce(t) {
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 h of s.split(`
63
63
  `)) {
64
- const b = _.trim();
64
+ const b = h.trim();
65
65
  if (b.startsWith("-")) {
66
66
  if (m) {
67
67
  const p = b.substring(1).trim();
68
- h.push(p);
68
+ g.push(p);
69
69
  }
70
70
  continue;
71
71
  }
72
- if (m && !b.startsWith("-") && (r[u] = h.slice(), h.length = 0, m = !1), b != null && b.includes(":")) {
73
- const [p, ...i] = b.split(":"), l = i.join(":").trim();
74
- if (u = p.trim(), !l) {
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
75
  m = !0;
76
76
  continue;
77
77
  }
78
- l === "true" ? r[u] = !0 : l === "false" ? r[u] = !1 : r[u] = l;
78
+ l === "true" ? c[i] = !0 : l === "false" ? c[i] = !1 : c[i] = l;
79
79
  }
80
80
  }
81
- m && h.length > 0 && (r[u] = h);
82
- const v = s.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: r, content: v };
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(s, a, r = !1) {
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
- return { content: _, frontmatter: v };
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: h } = n(g);
97
+ return { content: h, 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(s, a = !1) {
104
- const o = `./docs/en/${a ? `${s}-advanced.mdx` : `${s}.mdx`}`, u = t[o];
105
- if (!u) throw new Error(`File not found: ${o}`);
106
- const m = await u(), { content: h } = n(m);
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,218 +113,259 @@ function Ie(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(s = "en") {
117
- const a = {}, r = `./docs/${s}/`, o = Object.keys(t).filter(
118
- (u) => u.startsWith(r)
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 u of o)
120
+ for (const i of s)
121
121
  try {
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;
122
+ const m = t[i], g = await m(), { frontmatter: _, content: h } = n(g), b = i.split("/").pop() || "", p = b.replace(".mdx", "").replace("-advanced", ""), d = h.match(/^#\s+(.+)$/m), l = d ? d[1].trim() : p;
123
123
  if (b.includes("-advanced")) continue;
124
- const c = v.tags;
125
- if (c && Array.isArray(c))
126
- for (const w of c)
127
- a[w] || (a[w] = []), a[w].some((k) => k.slug === p) || a[w].push({ slug: p, title: l });
124
+ const r = _.tags;
125
+ if (r && Array.isArray(r))
126
+ for (const w of r)
127
+ o[w] || (o[w] = []), o[w].some((C) => C.slug === p) || o[w].push({ slug: p, title: l });
128
128
  } catch (m) {
129
- console.warn(`Failed to process ${u}:`, 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 Xa(t) {
136
- const n = Ie(t);
135
+ function Va(t) {
136
+ const n = Ce(t);
137
137
  return {
138
138
  mdxFiles: t,
139
139
  loadContent: n.loadMDXContent,
140
140
  loadEnglishContent: n.loadEnglishContent
141
141
  };
142
142
  }
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
- if (r && (r.classList.remove("light", "dark"), r.classList.add(a)), t === "system") {
148
- const o = window.matchMedia("(prefers-color-scheme: dark)"), u = () => {
149
- const m = ye(), h = document.querySelector(".xw-blog-root");
150
- h && (h.classList.remove("light", "dark"), h.classList.add(m));
143
+ const be = "app-theme", Ie = () => typeof window > "u" ? "light" : window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light", we = (t) => t === "system" ? Ie() : t, ke = (t) => {
144
+ const n = () => t || (typeof window > "u" ? "system" : localStorage.getItem(be) || "system"), [a, o] = L(n);
145
+ return S(() => {
146
+ const s = we(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 _ = Ie(), h = document.querySelector(".xw-blog-root");
150
+ h && (h.classList.remove("light", "dark"), h.classList.add(_));
151
151
  };
152
- return o.addEventListener("change", u), () => o.removeEventListener("change", u);
152
+ return m.addEventListener("change", g), () => m.removeEventListener("change", g);
153
153
  }
154
- }, [t]), {
155
- theme: t,
156
- setTheme: (a) => {
157
- localStorage.setItem(ke, a), n(a);
154
+ }, [a]), {
155
+ theme: a,
156
+ setTheme: (s) => {
157
+ localStorage.setItem(be, s), o(s);
158
158
  },
159
- effectiveTheme: $e(t)
159
+ effectiveTheme: we(a)
160
160
  };
161
- }, Ge = (t) => "items" in t, ae = (t, n) => t.map((s) => Ge(s) ? {
162
- title: se.getFixedT(n)(s.title),
163
- items: s.items.map((a) => ({
164
- title: se.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: se.getFixedT(n)(s.title),
173
- slug: s.slug,
174
- ...s.hasAdvanced && { hasAdvanced: s.hasAdvanced },
175
- ...s.showTableOfContents !== void 0 && {
176
- showTableOfContents: s.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
- }), Z = (t) => t.toString().toLowerCase().trim().replace(/[^\w\s-]/g, "").replace(/\s+/g, "-").replace(/-+/g, "-").replace(/^-+|-+$/g, ""), Se = Le(null);
179
- function Va({
178
+ }), V = (t) => t.toString().toLowerCase().trim().replace(/[^\w\s-]/g, "").replace(/\s+/g, "-").replace(/-+/g, "-").replace(/^-+|-+$/g, ""), ye = Pe(null);
179
+ function Ja({
180
180
  children: t,
181
181
  config: n,
182
- blog: s,
183
- navigationData: a = []
182
+ blog: a,
183
+ navigationData: o = []
184
184
  }) {
185
- Pe();
186
- const [r, o] = S({});
187
- L(() => {
188
- const { buildTagIndex: m } = Ie(s.mdxFiles), h = n.supportedLanguages.map(async (v) => {
185
+ ke(n.defaultTheme);
186
+ const [c, s] = L({});
187
+ S(() => {
188
+ const { buildTagIndex: m } = Ce(a.mdxFiles), g = n.supportedLanguages.map(async (_) => {
189
189
  try {
190
- const _ = await m(v);
191
- return { language: v, index: _ };
192
- } catch (_) {
193
- return console.error(`Failed to build tag index for ${v}:`, _), { language: v, index: {} };
190
+ const h = await m(_);
191
+ return { language: _, index: h };
192
+ } catch (h) {
193
+ return console.error(`Failed to build tag index for ${_}:`, h), { language: _, index: {} };
194
194
  }
195
195
  });
196
- Promise.all(h).then((v) => {
197
- const _ = {};
198
- for (const b of v)
199
- _[b.language] = b.index;
200
- o(_);
201
- }).catch((v) => {
202
- console.error("Failed to build tag indices:", v);
196
+ Promise.all(g).then((_) => {
197
+ const h = {};
198
+ for (const b of _)
199
+ h[b.language] = b.index;
200
+ s(h);
201
+ }).catch((_) => {
202
+ console.error("Failed to build tag indices:", _);
203
203
  });
204
- }, [s.mdxFiles, n.supportedLanguages]);
205
- const u = { ...n, navigationData: a, tagIndex: r };
204
+ }, [a.mdxFiles, n.supportedLanguages]);
205
+ const i = { ...n, navigationData: o, tagIndex: c };
206
206
  return /* @__PURE__ */ e(
207
- Se.Provider,
207
+ ye.Provider,
208
208
  {
209
209
  value: {
210
- config: u,
211
- loadContent: s.loadContent,
212
- loadEnglishContent: s.loadEnglishContent
210
+ config: i,
211
+ loadContent: a.loadContent,
212
+ loadEnglishContent: a.loadEnglishContent
213
213
  },
214
- children: /* @__PURE__ */ e(Ue, { children: t })
214
+ children: /* @__PURE__ */ e(Ke, { children: t })
215
215
  }
216
216
  );
217
217
  }
218
- function O() {
219
- const t = De(Se);
218
+ function R() {
219
+ const t = De(ye);
220
220
  if (!t)
221
221
  throw new Error("useBlogConfig must be used within a BlogProvider");
222
222
  return t;
223
223
  }
224
- const Ye = "_metadata_bsge0_1", Qe = "_author_bsge0_9", Xe = "_date_bsge0_10", ce = {
224
+ function Le() {
225
+ return !!new URL(window.location.href).hash;
226
+ }
227
+ function Ge(t, n, a) {
228
+ const o = a ? `${a}/` : "";
229
+ return Le() ? `#${o}${n}/${t}` : `/${o}${n}/${t}`;
230
+ }
231
+ function Qe(t) {
232
+ const n = {
233
+ advanced: !1,
234
+ anchor: ""
235
+ };
236
+ if (!t) return n;
237
+ const o = (t.startsWith("?") ? t.substring(1) : t).split("&");
238
+ for (const c of o)
239
+ c === "advanced" ? n.advanced = !0 : c.startsWith("a=") && (n.anchor = c.substring(2));
240
+ return n;
241
+ }
242
+ function Ne(t, n = 80) {
243
+ const a = document.getElementById(t);
244
+ if (a) {
245
+ const c = a.getBoundingClientRect().top + window.pageYOffset - n;
246
+ window.scrollTo({
247
+ top: c,
248
+ behavior: "smooth"
249
+ });
250
+ }
251
+ }
252
+ function Xe(t, n = !1) {
253
+ const a = new URL(window.location.href);
254
+ if (Le()) {
255
+ const o = a.hash.split("?"), c = o[0], s = new URLSearchParams(o[1] || "");
256
+ s.set("a", t), n && s.set("advanced", "");
257
+ const i = s.toString();
258
+ a.hash = i ? `${c}?${i}` : c;
259
+ } else {
260
+ const o = new URLSearchParams(a.search);
261
+ o.set("a", t), n && o.set("advanced", ""), a.search = `?${o.toString()}`;
262
+ }
263
+ window.history.pushState(null, "", a.toString());
264
+ }
265
+ const Ye = "_metadata_bsge0_1", Ve = "_author_bsge0_9", Je = "_date_bsge0_10", oe = {
225
266
  metadata: Ye,
226
- author: Qe,
227
- date: Xe
267
+ author: Ve,
268
+ date: Je
228
269
  };
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: [
270
+ function ce({ date: t, author: n }) {
271
+ const { t: a } = E();
272
+ return !t && !n ? null : /* @__PURE__ */ u("div", { className: oe.metadata, children: [
273
+ n && /* @__PURE__ */ u("span", { className: oe.author, children: [
233
274
  /* @__PURE__ */ e(Ee, { size: 16, weight: "regular" }),
234
275
  n
235
276
  ] }),
236
- t && /* @__PURE__ */ d("span", { className: ce.date, children: [
237
- /* @__PURE__ */ e(Oe, { size: 16, weight: "regular" }),
238
- s("ui.lastEdited"),
277
+ t && /* @__PURE__ */ u("span", { className: oe.date, children: [
278
+ /* @__PURE__ */ e(Re, { size: 16, weight: "regular" }),
279
+ a("ui.lastEdited"),
239
280
  ": ",
240
281
  t
241
282
  ] })
242
283
  ] });
243
284
  }
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
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
258
299
  };
259
- function dt({
300
+ function ht({
260
301
  content: t,
261
302
  englishContent: n
262
303
  }) {
263
- const { t: s } = E(), a = Q(), r = z(), [o, u] = S([]), [m, h] = S(""), v = K(null);
264
- L(() => {
265
- h(""), (() => {
266
- const p = /^(#{1,6})\s+(.+)$/gm, i = [];
304
+ const { t: a } = E(), o = G(), c = F(), [s, i] = L([]), [m, g] = L(""), _ = H(null);
305
+ S(() => {
306
+ g(""), (() => {
307
+ const p = /^(#{1,6})\s+(.+)$/gm, d = [];
267
308
  let l = p.exec(t);
268
- const c = [];
309
+ const r = [];
269
310
  for (; l !== null; ) {
270
311
  const f = l[1].length, N = l[2].trim();
271
- c.push({ level: f, text: N }), l = p.exec(t);
312
+ r.push({ level: f, text: N }), l = p.exec(t);
272
313
  }
273
314
  const w = /^(#{1,6})\s+(.+)$/gm;
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
- i.push({
315
+ let C = w.exec(n), I = 0;
316
+ for (; C !== null && I < r.length; ) {
317
+ const f = C[2].trim(), N = V(f);
318
+ d.push({
278
319
  id: N,
279
- text: c[y].text,
320
+ text: r[I].text,
280
321
  // Use localized text for display
281
- level: c[y].level
282
- }), y++, k = w.exec(n);
322
+ level: r[I].level
323
+ }), I++, C = w.exec(n);
283
324
  }
284
- u(i);
325
+ i(d);
285
326
  })();
286
- }, [t, n]), L(() => {
287
- if (o.length === 0) return;
327
+ }, [t, n]), S(() => {
328
+ if (s.length === 0) return;
288
329
  const b = setTimeout(() => {
289
- const p = o.filter(
290
- (i) => !document.getElementById(i.id)
330
+ const p = s.filter(
331
+ (d) => !document.getElementById(d.id)
291
332
  );
292
333
  p.length > 0 && console.warn("Some heading elements not found:", p);
293
334
  }, 100);
294
335
  return () => clearTimeout(b);
295
- }, [o]), L(() => {
296
- if (o.length === 0) return;
297
- v.current && v.current.disconnect();
336
+ }, [s]), S(() => {
337
+ if (s.length === 0) return;
338
+ _.current && _.current.disconnect();
298
339
  const b = setTimeout(() => {
299
- const p = o.map((i) => document.getElementById(i.id)).filter(Boolean);
300
- p.length !== 0 && (v.current = new IntersectionObserver(
301
- (i) => {
302
- const l = i.filter((c) => c.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);
303
344
  if (l.length > 0) {
304
- const c = l.reduce((w, k) => w.boundingClientRect.top < k.boundingClientRect.top ? w : k);
305
- h(c.target.id);
345
+ const r = l.reduce((w, C) => w.boundingClientRect.top < C.boundingClientRect.top ? w : C);
346
+ g(r.target.id);
306
347
  }
307
348
  },
308
349
  {
309
350
  rootMargin: "-80px 0% -80% 0%",
310
351
  threshold: 0
311
352
  }
312
- ), p.forEach((i) => {
313
- v.current && v.current.observe(i);
353
+ ), p.forEach((d) => {
354
+ _.current && _.current.observe(d);
314
355
  }));
315
356
  }, 150);
316
357
  return () => {
317
- clearTimeout(b), v.current && v.current.disconnect();
358
+ clearTimeout(b), _.current && _.current.disconnect();
318
359
  };
319
- }, [o]), L(() => () => {
320
- v.current && v.current.disconnect();
360
+ }, [s]), S(() => () => {
361
+ _.current && _.current.disconnect();
321
362
  }, []);
322
- const _ = (b) => {
363
+ const h = (b) => {
323
364
  const p = document.getElementById(b);
324
365
  if (p) {
325
- const i = new URLSearchParams(a.search);
326
- i.set("a", b), r(
327
- `${a.pathname}?${i.toString()}${a.hash}`,
366
+ const d = new URLSearchParams(o.search);
367
+ d.set("a", b), c(
368
+ `${o.pathname}?${d.toString()}${o.hash}`,
328
369
  {
329
370
  replace: !0
330
371
  }
@@ -336,47 +377,47 @@ function dt({
336
377
  });
337
378
  }
338
379
  };
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(
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: a("ui.onThisPage", "On this page") }) }),
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(
342
383
  "button",
343
384
  {
344
- className: `${H.link} ${H[`level${b.level}`]} ${m === b.id ? H.active : ""}`,
345
- onClick: () => _(b.id),
385
+ className: `${j.link} ${j[`level${b.level}`]} ${m === b.id ? j.active : ""}`,
386
+ onClick: () => h(b.id),
346
387
  type: "button",
347
388
  children: b.text
348
389
  }
349
390
  ) }, b.id)) }) })
350
391
  ] });
351
392
  }
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
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
364
405
  };
365
- function $t({
406
+ function Ct({
366
407
  tag: t,
367
408
  results: n,
368
- language: s,
369
- onClose: a
409
+ language: a,
410
+ onClose: o
370
411
  }) {
371
- const { t: r } = E(), { config: o } = O(), u = z(), m = (h) => {
372
- const v = o.basePath || "";
373
- u(`${v}/${s}/${h}`), a();
412
+ const { t: c } = E(), { config: s } = R(), i = F(), m = (g) => {
413
+ const _ = s.basePath || "";
414
+ i(`${_}/${a}/${g}`), o();
374
415
  };
375
- return Ce(
376
- /* @__PURE__ */ e("div", { className: j.overlay, onClick: a, children: /* @__PURE__ */ d("div", { className: j.modal, onClick: (h) => h.stopPropagation(), children: [
377
- /* @__PURE__ */ d("div", { className: j.header, children: [
378
- /* @__PURE__ */ d("h2", { className: j.title, children: [
379
- r("ui.tagResults"),
416
+ return xe(
417
+ /* @__PURE__ */ e("div", { className: O.overlay, onClick: o, children: /* @__PURE__ */ u("div", { className: O.modal, onClick: (g) => g.stopPropagation(), children: [
418
+ /* @__PURE__ */ u("div", { className: O.header, children: [
419
+ /* @__PURE__ */ u("h2", { className: O.title, children: [
420
+ c("ui.tagResults"),
380
421
  ": ",
381
422
  t
382
423
  ] }),
@@ -384,449 +425,417 @@ function $t({
384
425
  "button",
385
426
  {
386
427
  type: "button",
387
- className: j.closeButton,
388
- onClick: a,
428
+ className: O.closeButton,
429
+ onClick: o,
389
430
  "aria-label": "Close",
390
- children: /* @__PURE__ */ e(de, {})
431
+ children: /* @__PURE__ */ e(le, {})
391
432
  }
392
433
  )
393
434
  ] }),
394
- /* @__PURE__ */ e("div", { className: j.results, children: n.length === 0 ? /* @__PURE__ */ e("div", { className: j.noResults, children: r("ui.noTagResults") }) : /* @__PURE__ */ e("ul", { className: j.resultsList, children: n.map((h) => /* @__PURE__ */ e("li", { children: /* @__PURE__ */ d(
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__ */ u(
395
436
  "button",
396
437
  {
397
438
  type: "button",
398
- className: j.resultItem,
399
- onClick: () => m(h.slug),
439
+ className: O.resultItem,
440
+ onClick: () => m(g.slug),
400
441
  children: [
401
- /* @__PURE__ */ e("div", { className: j.resultTitle, children: h.title }),
402
- /* @__PURE__ */ d("div", { className: j.resultSlug, children: [
442
+ /* @__PURE__ */ e("div", { className: O.resultTitle, children: g.title }),
443
+ /* @__PURE__ */ u("div", { className: O.resultSlug, children: [
403
444
  "/",
404
- h.slug
445
+ g.slug
405
446
  ] })
406
447
  ]
407
448
  }
408
- ) }, h.slug)) }) })
449
+ ) }, g.slug)) }) })
409
450
  ] }) }),
410
451
  document.body
411
452
  );
412
453
  }
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
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
420
461
  };
421
- function St({ tags: t, variant: n = "default", onTagClick: s }) {
422
- const { t: a } = E();
462
+ function Pt({ tags: t, variant: n = "default", onTagClick: a }) {
463
+ const { t: o } = E();
423
464
  if (!t || t.length === 0) return null;
424
- const r = (o) => {
425
- s && s(o);
465
+ const c = (s) => {
466
+ a && a(s);
426
467
  };
427
- return /* @__PURE__ */ d(
468
+ return /* @__PURE__ */ u(
428
469
  "div",
429
470
  {
430
- className: `${G.tags} ${n === "compact" ? G.compact : ""}`,
471
+ className: `${K.tags} ${n === "compact" ? K.compact : ""}`,
431
472
  children: [
432
- n === "default" && /* @__PURE__ */ d("div", { className: G.tagLabel, children: [
433
- /* @__PURE__ */ e(Re, { className: G.tagIcon, weight: "duotone" }),
434
- /* @__PURE__ */ d("span", { children: [
435
- a("ui.tags"),
473
+ n === "default" && /* @__PURE__ */ u("div", { className: K.tagLabel, children: [
474
+ /* @__PURE__ */ e(Oe, { className: K.tagIcon, weight: "duotone" }),
475
+ /* @__PURE__ */ u("span", { children: [
476
+ o("ui.tags"),
436
477
  ":"
437
478
  ] })
438
479
  ] }),
439
- /* @__PURE__ */ e("div", { className: G.tagList, children: t.map((o) => /* @__PURE__ */ e(
480
+ /* @__PURE__ */ e("div", { className: K.tagList, children: t.map((s) => /* @__PURE__ */ e(
440
481
  "button",
441
482
  {
442
483
  type: "button",
443
- className: G.tag,
444
- onClick: () => r(o),
445
- "aria-label": `${a("ui.filterByTag")}: ${o}`,
446
- children: o
484
+ className: K.tag,
485
+ onClick: () => c(s),
486
+ "aria-label": `${o("ui.filterByTag")}: ${s}`,
487
+ children: s
447
488
  },
448
- o
489
+ s
449
490
  )) })
450
491
  ]
451
492
  }
452
493
  );
453
494
  }
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
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
466
507
  };
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
- advanced: !1,
472
- anchor: ""
473
- };
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(() => {
508
+ function Ft({ language: t }) {
509
+ var he;
510
+ const { slug: n } = re(), a = G(), { config: o, loadContent: c, loadEnglishContent: s } = R(), [i, m] = L(""), [g, _] = L(""), [h, 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
+ if (S(() => {
481
512
  (async () => {
482
513
  if (!n) return;
483
- i(!0), c(null), N.current = 0;
484
- const x = (a == null ? void 0 : a.navigationData) || [];
514
+ d(!0), r(null), N.current = 0;
515
+ const k = (o == null ? void 0 : o.navigationData) || [];
485
516
  let P = !0;
486
- for (const $ of x)
517
+ for (const $ of k)
487
518
  if ("items" in $) {
488
- const C = $.items.find((W) => W.slug === n);
489
- if (C) {
490
- P = C.showTableOfContents !== !1;
519
+ const y = $.items.find((q) => q.slug === n);
520
+ if (y) {
521
+ P = y.showTableOfContents !== !1;
491
522
  break;
492
523
  }
493
524
  } else if ($.slug === n) {
494
525
  P = $.showTableOfContents !== !1;
495
526
  break;
496
527
  }
497
- k(P);
528
+ C(P);
498
529
  try {
499
530
  let $;
500
531
  try {
501
- $ = await r(t, n, U);
532
+ $ = await c(t, n, U);
502
533
  } catch {
503
534
  if (U)
504
- $ = await r(t, n, !1);
535
+ $ = await c(t, n, !1);
505
536
  else
506
537
  throw new Error("Content not found");
507
538
  }
508
- let C = "";
539
+ let y = "";
509
540
  try {
510
- C = await o(n, U);
541
+ y = await s(n, U);
511
542
  } catch {
512
- U && (C = await o(n, !1));
543
+ U && (y = await s(n, !1));
513
544
  }
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);
545
+ const q = /^(#{1,6})\s+(.+)$/gm, ee = [];
546
+ let ne = q.exec(y);
547
+ for (; ne !== null; ) {
548
+ const Te = ne[2].trim();
549
+ ee.push(Te), ne = q.exec(y);
519
550
  }
520
- D.current = R, v(C), m($.content), b($.frontmatter);
551
+ D.current = ee, _(y), m($.content), b($.frontmatter);
521
552
  } catch ($) {
522
- c($ instanceof Error ? $.message : "Failed to load content");
553
+ r($ instanceof Error ? $.message : "Failed to load content");
523
554
  } finally {
524
- i(!1);
555
+ d(!1);
525
556
  }
526
557
  })();
527
558
  }, [
528
559
  n,
529
560
  t,
530
561
  U,
531
- a.navigationData,
532
- r,
533
- o
534
- ]), L(() => {
535
- if (!p && ee.anchor) {
536
- const g = setTimeout(() => {
537
- const x = document.getElementById(ee.anchor);
538
- if (x) {
539
- const C = x.getBoundingClientRect().top + window.pageYOffset - 80;
540
- window.scrollTo({
541
- top: C,
542
- behavior: "smooth"
543
- });
544
- }
562
+ o.navigationData,
563
+ c,
564
+ s
565
+ ]), S(() => {
566
+ if (!p && J.anchor) {
567
+ const v = setTimeout(() => {
568
+ Ne(J.anchor);
545
569
  }, 150);
546
- return () => clearTimeout(g);
570
+ return () => clearTimeout(v);
547
571
  }
548
- }, [p, ee.anchor]), p)
549
- return /* @__PURE__ */ e("div", { className: B.contentPage, children: /* @__PURE__ */ d("div", { className: B.loadingContainer, children: [
572
+ }, [p, J.anchor]), p)
573
+ return /* @__PURE__ */ e("div", { className: B.contentPage, children: /* @__PURE__ */ u("div", { className: B.loadingContainer, children: [
550
574
  /* @__PURE__ */ e("div", { className: B.skeletonTitle }),
551
575
  /* @__PURE__ */ e("div", { className: B.skeletonParagraph }),
552
576
  /* @__PURE__ */ e("div", { className: B.skeletonParagraph }),
553
577
  /* @__PURE__ */ e("div", { className: B.skeletonParagraphShort })
554
578
  ] }) });
555
579
  if (l)
556
- return /* @__PURE__ */ e("div", { className: B.contentPage, children: /* @__PURE__ */ e("div", { className: B.errorContainer, children: /* @__PURE__ */ d("div", { className: B.errorText, children: [
580
+ return /* @__PURE__ */ e("div", { className: B.contentPage, children: /* @__PURE__ */ e("div", { className: B.errorContainer, children: /* @__PURE__ */ u("div", { className: B.errorText, children: [
557
581
  "Error: ",
558
582
  l
559
583
  ] }) }) });
560
584
  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
- }
585
+ let ue = !1;
586
+ const Z = (v, k) => {
587
+ v.preventDefault(), Ne(k), Xe(k, U);
583
588
  };
584
- return /* @__PURE__ */ d(Y, { children: [
585
- /* @__PURE__ */ d("div", { className: B.contentPage, children: [
586
- /* @__PURE__ */ e(Ke, { hasAdvanced: _.hasAdvanced || !1 }),
589
+ return /* @__PURE__ */ u(z, { children: [
590
+ /* @__PURE__ */ u("div", { className: B.contentPage, children: [
591
+ /* @__PURE__ */ e(Ue, { hasAdvanced: h.hasAdvanced || !1 }),
587
592
  /* @__PURE__ */ e("div", { className: B.mdxContent, children: /* @__PURE__ */ e(
588
593
  Be,
589
594
  {
590
595
  remarkPlugins: [Me],
591
596
  components: {
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: [
597
+ h1: ({ children: v }) => {
598
+ const k = N.current++, P = D.current[k] || "", $ = V(P), y = !ue;
599
+ ue = !0;
600
+ const q = h.date || h.author;
601
+ return /* @__PURE__ */ u(z, { children: [
597
602
  /* @__PURE__ */ e(
598
603
  "h1",
599
604
  {
600
605
  id: $,
601
- className: C && W ? B.withMetadata : void 0,
606
+ className: y && q ? B.withMetadata : void 0,
602
607
  children: /* @__PURE__ */ e(
603
608
  "a",
604
609
  {
605
610
  href: `#${$}`,
606
- onClick: (R) => te(R, $),
611
+ onClick: (ee) => Z(ee, $),
607
612
  style: { color: "inherit", textDecoration: "none" },
608
- children: g
613
+ children: v
609
614
  }
610
615
  )
611
616
  }
612
617
  ),
613
- C && W && /* @__PURE__ */ e(
614
- le,
618
+ y && q && /* @__PURE__ */ e(
619
+ ce,
615
620
  {
616
- date: _.date,
617
- author: _.author
621
+ date: h.date,
622
+ author: h.author
618
623
  }
619
624
  )
620
625
  ] });
621
626
  },
622
- h2: ({ children: g }) => {
623
- const x = N.current++, P = D.current[x] || "", $ = Z(P);
627
+ h2: ({ children: v }) => {
628
+ const k = N.current++, P = D.current[k] || "", $ = V(P);
624
629
  return /* @__PURE__ */ e("h2", { id: $, children: /* @__PURE__ */ e(
625
630
  "a",
626
631
  {
627
632
  href: `#${$}`,
628
- onClick: (C) => te(C, $),
633
+ onClick: (y) => Z(y, $),
629
634
  style: { color: "inherit", textDecoration: "none" },
630
- children: g
635
+ children: v
631
636
  }
632
637
  ) });
633
638
  },
634
- h3: ({ children: g }) => {
635
- const x = N.current++, P = D.current[x] || "", $ = Z(P);
639
+ h3: ({ children: v }) => {
640
+ const k = N.current++, P = D.current[k] || "", $ = V(P);
636
641
  return /* @__PURE__ */ e("h3", { id: $, children: /* @__PURE__ */ e(
637
642
  "a",
638
643
  {
639
644
  href: `#${$}`,
640
- onClick: (C) => te(C, $),
645
+ onClick: (y) => Z(y, $),
641
646
  style: { color: "inherit", textDecoration: "none" },
642
- children: g
647
+ children: v
643
648
  }
644
649
  ) });
645
650
  },
646
- h4: ({ children: g }) => {
647
- const x = N.current++, P = D.current[x] || "", $ = Z(P);
651
+ h4: ({ children: v }) => {
652
+ const k = N.current++, P = D.current[k] || "", $ = V(P);
648
653
  return /* @__PURE__ */ e("h4", { id: $, children: /* @__PURE__ */ e(
649
654
  "a",
650
655
  {
651
656
  href: `#${$}`,
652
- onClick: (C) => te(C, $),
657
+ onClick: (y) => Z(y, $),
653
658
  style: { color: "inherit", textDecoration: "none" },
654
- children: g
659
+ children: v
655
660
  }
656
661
  ) });
657
662
  },
658
- h5: ({ children: g }) => {
659
- const x = `h5-${N.current++}`;
660
- return /* @__PURE__ */ e("h5", { id: x, children: g });
663
+ h5: ({ children: v }) => {
664
+ const k = `h5-${N.current++}`;
665
+ return /* @__PURE__ */ e("h5", { id: k, children: v });
661
666
  },
662
- h6: ({ children: g }) => {
663
- const x = `h6-${N.current++}`;
664
- return /* @__PURE__ */ e("h6", { id: x, children: g });
667
+ h6: ({ children: v }) => {
668
+ const k = `h6-${N.current++}`;
669
+ return /* @__PURE__ */ e("h6", { id: k, children: v });
665
670
  },
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-", "")) || "";
674
- return /* @__PURE__ */ d("div", { className: B.codeBlock, children: [
675
- C && /* @__PURE__ */ e("div", { className: B.codeLanguage, children: C }),
676
- /* @__PURE__ */ e("pre", { children: /* @__PURE__ */ e("code", { className: g, ...P, children: x }) })
671
+ p: ({ children: v }) => /* @__PURE__ */ e("p", { children: v }),
672
+ ul: ({ children: v }) => /* @__PURE__ */ e("ul", { children: v }),
673
+ ol: ({ children: v }) => /* @__PURE__ */ e("ol", { children: v }),
674
+ li: ({ children: v }) => /* @__PURE__ */ e("li", { children: v }),
675
+ code: ({ className: v, children: k, ...P }) => {
676
+ if (!v)
677
+ return /* @__PURE__ */ e("code", { ...P, children: k });
678
+ const y = (v == null ? void 0 : v.replace("language-", "")) || "";
679
+ return /* @__PURE__ */ u("div", { className: B.codeBlock, children: [
680
+ y && /* @__PURE__ */ e("div", { className: B.codeLanguage, children: y }),
681
+ /* @__PURE__ */ e("pre", { children: /* @__PURE__ */ e("code", { className: v, ...P, children: k }) })
677
682
  ] });
678
683
  },
679
- pre: ({ children: g }) => /* @__PURE__ */ e(Y, { children: g }),
684
+ pre: ({ children: v }) => /* @__PURE__ */ e(z, { children: v }),
680
685
  // Let code component handle pre styling
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 });
686
+ blockquote: ({ children: v }) => /* @__PURE__ */ e("blockquote", { children: v }),
687
+ a: ({ href: v, children: k, ...P }) => {
688
+ if (v != null && v.startsWith("./")) {
689
+ const $ = v.slice(2), y = Ge(
690
+ $,
691
+ t,
692
+ o.basePath
693
+ );
694
+ return /* @__PURE__ */ e("a", { href: y, ...P, children: k });
686
695
  }
687
- return g != null && g.startsWith("http://") || g != null && g.startsWith("https://") ? /* @__PURE__ */ e(
696
+ return v != null && v.startsWith("http://") || v != null && v.startsWith("https://") ? /* @__PURE__ */ e(
688
697
  "a",
689
698
  {
690
- href: g,
699
+ href: v,
691
700
  target: "_blank",
692
701
  rel: "noopener noreferrer",
693
702
  ...P,
694
- children: x
703
+ children: k
695
704
  }
696
- ) : /* @__PURE__ */ e("a", { href: g, ...P, children: x });
705
+ ) : /* @__PURE__ */ e("a", { href: v, ...P, children: k });
697
706
  },
698
- strong: ({ children: g }) => /* @__PURE__ */ e("strong", { children: g }),
699
- em: ({ children: g }) => /* @__PURE__ */ e("em", { children: g })
707
+ strong: ({ children: v }) => /* @__PURE__ */ e("strong", { children: v }),
708
+ em: ({ children: v }) => /* @__PURE__ */ e("em", { children: v })
700
709
  },
701
- children: u
710
+ children: i
702
711
  }
703
712
  ) }),
704
- _.tags && _.tags.length > 0 && /* @__PURE__ */ e(
705
- St,
713
+ h.tags && h.tags.length > 0 && /* @__PURE__ */ e(
714
+ Pt,
706
715
  {
707
- tags: _.tags,
716
+ tags: h.tags,
708
717
  variant: "compact",
709
- onTagClick: (g) => f(g)
718
+ onTagClick: (v) => f(v)
710
719
  }
711
720
  )
712
721
  ] }),
713
- w && /* @__PURE__ */ e(dt, { content: u, englishContent: h }),
714
- y && ((me = a.tagIndex) == null ? void 0 : me[t]) && /* @__PURE__ */ e(
715
- $t,
722
+ w && /* @__PURE__ */ e(ht, { content: i, englishContent: g }),
723
+ I && ((he = o.tagIndex) == null ? void 0 : he[t]) && /* @__PURE__ */ e(
724
+ Ct,
716
725
  {
717
- tag: y,
718
- results: a.tagIndex[t][y] || [],
726
+ tag: I,
727
+ results: o.tagIndex[t][I] || [],
719
728
  language: t,
720
729
  onClose: () => f(null)
721
730
  }
722
731
  )
723
732
  ] });
724
733
  }
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,
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,
732
741
  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
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
744
753
  };
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) => ({
754
+ function ln({ language: t }) {
755
+ const { t: n } = E(), a = F(), { config: o } = R(), [c, s] = L(!1), [i, m] = L(""), [g, _] = L([]), [h, 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) => ({
747
756
  title: N.title,
748
757
  slug: N.slug
749
758
  })) : [{ title: f.title, slug: f.slug }]);
750
- L(() => {
751
- if (!u.trim()) {
752
- v([]), b(0);
759
+ S(() => {
760
+ if (!i.trim()) {
761
+ _([]), b(0);
753
762
  return;
754
763
  }
755
- const f = u.toLowerCase(), N = w.filter(
764
+ const f = i.toLowerCase(), N = w.filter(
756
765
  (D) => D.title.toLowerCase().includes(f) || D.slug.toLowerCase().includes(f)
757
766
  );
758
- v(N), b(0);
759
- }, [u]), L(() => {
767
+ _(N), b(0);
768
+ }, [i]), S(() => {
760
769
  const f = (N) => {
761
- (N.metaKey || N.ctrlKey) && N.key === "k" && (N.preventDefault(), o(!0), setTimeout(() => {
770
+ (N.metaKey || N.ctrlKey) && N.key === "k" && (N.preventDefault(), s(!0), setTimeout(() => {
762
771
  var D;
763
772
  return (D = p.current) == null ? void 0 : D.focus();
764
- }, 100)), N.key === "Escape" && r && (o(!1), m(""));
773
+ }, 100)), N.key === "Escape" && c && (s(!1), m(""));
765
774
  };
766
775
  return document.addEventListener("keydown", f), () => document.removeEventListener("keydown", f);
767
- }, [r]), L(() => {
776
+ }, [c]), S(() => {
768
777
  const f = () => {
769
- o(!0), setTimeout(() => {
778
+ s(!0), setTimeout(() => {
770
779
  var D;
771
780
  return (D = p.current) == null ? void 0 : D.focus();
772
781
  }, 100);
773
782
  }, N = () => {
774
- o(!1), m("");
783
+ s(!1), m("");
775
784
  };
776
785
  return window.addEventListener("blog:open-search", f), window.addEventListener("blog:close-search", N), () => {
777
786
  window.removeEventListener("blog:open-search", f), window.removeEventListener("blog:close-search", N);
778
787
  };
779
788
  }, []);
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));
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[h] && (f.preventDefault(), I(g[h].slug));
782
791
  };
783
- L(() => {
792
+ S(() => {
784
793
  const f = (N) => {
785
- i.current && !i.current.contains(N.target) && (o(!1), m(""));
794
+ d.current && !d.current.contains(N.target) && (s(!1), m(""));
786
795
  };
787
- return r && document.addEventListener("mousedown", f), () => document.removeEventListener("mousedown", f);
788
- }, [r]);
789
- const y = (f) => {
790
- const N = a.basePath || "";
791
- s(`${N}/${t}/${f}`), o(!1), m("");
796
+ return c && document.addEventListener("mousedown", f), () => document.removeEventListener("mousedown", f);
797
+ }, [c]);
798
+ const I = (f) => {
799
+ const N = o.basePath || "";
800
+ a(`${N}/${t}/${f}`), s(!1), m("");
792
801
  };
793
- return /* @__PURE__ */ d(Y, { children: [
794
- /* @__PURE__ */ d(
802
+ return /* @__PURE__ */ u(z, { children: [
803
+ /* @__PURE__ */ u(
795
804
  "button",
796
805
  {
797
806
  type: "button",
798
807
  className: T.searchButton,
799
808
  onClick: () => {
800
- o(!0), setTimeout(() => {
809
+ s(!0), setTimeout(() => {
801
810
  var f;
802
811
  return (f = p.current) == null ? void 0 : f.focus();
803
812
  }, 100);
804
813
  },
805
814
  "aria-label": n("ui.search"),
806
815
  children: [
807
- /* @__PURE__ */ e(ve, { className: T.searchIcon }),
816
+ /* @__PURE__ */ e(_e, { className: T.searchIcon }),
808
817
  /* @__PURE__ */ e("span", { className: T.searchHint, children: n("ui.search") }),
809
- /* @__PURE__ */ e("kbd", { className: T.kbd, children: c })
818
+ /* @__PURE__ */ e("kbd", { className: T.kbd, children: r })
810
819
  ]
811
820
  }
812
821
  ),
813
- r && Ce(
822
+ c && xe(
814
823
  /* @__PURE__ */ e(
815
824
  "div",
816
825
  {
817
826
  className: T.searchOverlay,
818
827
  onClick: () => {
819
- o(!1), m("");
828
+ s(!1), m("");
820
829
  },
821
- children: /* @__PURE__ */ d(
830
+ children: /* @__PURE__ */ u(
822
831
  "div",
823
832
  {
824
833
  className: T.searchModal,
825
- ref: i,
834
+ ref: d,
826
835
  onClick: (f) => f.stopPropagation(),
827
836
  children: [
828
- /* @__PURE__ */ d("div", { className: T.searchHeader, children: [
829
- /* @__PURE__ */ e(ve, { className: T.searchIcon }),
837
+ /* @__PURE__ */ u("div", { className: T.searchHeader, children: [
838
+ /* @__PURE__ */ e(_e, { className: T.searchIcon }),
830
839
  /* @__PURE__ */ e(
831
840
  "input",
832
841
  {
@@ -834,9 +843,9 @@ function cn({ language: t }) {
834
843
  type: "text",
835
844
  className: T.searchInput,
836
845
  placeholder: n("ui.searchPlaceholder"),
837
- value: u,
846
+ value: i,
838
847
  onChange: (f) => m(f.target.value),
839
- onKeyDown: k
848
+ onKeyDown: C
840
849
  }
841
850
  ),
842
851
  /* @__PURE__ */ e(
@@ -845,40 +854,40 @@ function cn({ language: t }) {
845
854
  type: "button",
846
855
  className: T.closeButton,
847
856
  onClick: () => {
848
- o(!1), m("");
857
+ s(!1), m("");
849
858
  },
850
859
  "aria-label": "Close search",
851
- children: /* @__PURE__ */ e(de, {})
860
+ children: /* @__PURE__ */ e(le, {})
852
861
  }
853
862
  )
854
863
  ] }),
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(
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__ */ u(
856
865
  "button",
857
866
  {
858
867
  type: "button",
859
- className: `${T.resultItem} ${N === _ ? T.selected : ""}`,
860
- onClick: () => y(f.slug),
868
+ className: `${T.resultItem} ${N === h ? T.selected : ""}`,
869
+ onClick: () => I(f.slug),
861
870
  onMouseEnter: () => b(N),
862
871
  children: [
863
872
  /* @__PURE__ */ e("div", { className: T.resultTitle, children: f.title }),
864
- /* @__PURE__ */ d("div", { className: T.resultSlug, children: [
873
+ /* @__PURE__ */ u("div", { className: T.resultSlug, children: [
865
874
  "/",
866
875
  f.slug
867
876
  ] })
868
877
  ]
869
878
  }
870
879
  ) }, f.slug)) }) }),
871
- !u && /* @__PURE__ */ d("div", { className: T.searchHints, children: [
872
- /* @__PURE__ */ d("div", { className: T.hint, children: [
880
+ !i && /* @__PURE__ */ u("div", { className: T.searchHints, children: [
881
+ /* @__PURE__ */ u("div", { className: T.hint, children: [
873
882
  /* @__PURE__ */ e("kbd", { children: "↑" }),
874
883
  /* @__PURE__ */ e("kbd", { children: "↓" }),
875
884
  /* @__PURE__ */ e("span", { children: n("ui.searchNavigate") })
876
885
  ] }),
877
- /* @__PURE__ */ d("div", { className: T.hint, children: [
886
+ /* @__PURE__ */ u("div", { className: T.hint, children: [
878
887
  /* @__PURE__ */ e("kbd", { children: "↵" }),
879
888
  /* @__PURE__ */ e("span", { children: n("ui.searchSelect") })
880
889
  ] }),
881
- /* @__PURE__ */ d("div", { className: T.hint, children: [
890
+ /* @__PURE__ */ u("div", { className: T.hint, children: [
882
891
  /* @__PURE__ */ e("kbd", { children: "esc" }),
883
892
  /* @__PURE__ */ e("span", { children: n("ui.searchClose") })
884
893
  ] })
@@ -892,158 +901,158 @@ function cn({ language: t }) {
892
901
  )
893
902
  ] });
894
903
  }
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
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
915
924
  };
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(() => {
919
- const c = (w) => {
920
- i.current && !i.current.contains(w.target) && h(!1), l.current && !l.current.contains(w.target) && _(!1);
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), [_, h] = L(!1), { theme: b, setTheme: p } = ke(), d = H(null), l = H(null);
927
+ return S(() => {
928
+ const r = (w) => {
929
+ d.current && !d.current.contains(w.target) && g(!1), l.current && !l.current.contains(w.target) && h(!1);
921
930
  };
922
- return document.addEventListener("mousedown", c), () => document.removeEventListener("mousedown", c);
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: [
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: [
925
934
  /* @__PURE__ */ e(
926
935
  "button",
927
936
  {
928
937
  type: "button",
929
- className: I.mobileMenuButton,
938
+ className: x.mobileMenuButton,
930
939
  onClick: t,
931
940
  "aria-label": "Open menu",
932
- children: /* @__PURE__ */ e(je, { className: I.burgerIcon })
941
+ children: /* @__PURE__ */ e(je, { className: x.burgerIcon })
933
942
  }
934
943
  ),
935
- /* @__PURE__ */ e("div", { className: I.logo })
944
+ /* @__PURE__ */ e("div", { className: x.logo })
936
945
  ] }),
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: [
940
- /* @__PURE__ */ d(
946
+ /* @__PURE__ */ u("nav", { className: x.nav, children: [
947
+ /* @__PURE__ */ e(ln, { language: a.language }),
948
+ /* @__PURE__ */ u("div", { className: x.themeDropdown, ref: l, children: [
949
+ /* @__PURE__ */ u(
941
950
  "button",
942
951
  {
943
952
  type: "button",
944
- className: I.themeButton,
945
- onClick: () => _(!v),
946
- "aria-expanded": v,
953
+ className: x.themeButton,
954
+ onClick: () => h(!_),
955
+ "aria-expanded": _,
947
956
  "aria-haspopup": "true",
948
957
  "aria-label": n("ui.theme"),
949
958
  children: [
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 })
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 }),
962
+ /* @__PURE__ */ e(se, { className: x.caretIcon })
954
963
  ]
955
964
  }
956
965
  ),
957
- v && /* @__PURE__ */ d("div", { className: I.dropdownMenu, children: [
958
- /* @__PURE__ */ d(
966
+ _ && /* @__PURE__ */ u("div", { className: x.dropdownMenu, children: [
967
+ /* @__PURE__ */ u(
959
968
  "button",
960
969
  {
961
970
  type: "button",
962
971
  onClick: () => {
963
- p("light"), _(!1);
972
+ p("light"), h(!1);
964
973
  },
965
- className: I.dropdownItem,
974
+ className: x.dropdownItem,
966
975
  children: [
967
- /* @__PURE__ */ e(be, { className: I.dropdownIcon }),
976
+ /* @__PURE__ */ e(pe, { className: x.dropdownIcon }),
968
977
  n("ui.light")
969
978
  ]
970
979
  }
971
980
  ),
972
- /* @__PURE__ */ d(
981
+ /* @__PURE__ */ u(
973
982
  "button",
974
983
  {
975
984
  type: "button",
976
985
  onClick: () => {
977
- p("dark"), _(!1);
986
+ p("dark"), h(!1);
978
987
  },
979
- className: I.dropdownItem,
988
+ className: x.dropdownItem,
980
989
  children: [
981
- /* @__PURE__ */ e(we, { className: I.dropdownIcon }),
990
+ /* @__PURE__ */ e(fe, { className: x.dropdownIcon }),
982
991
  n("ui.dark")
983
992
  ]
984
993
  }
985
994
  ),
986
- /* @__PURE__ */ d(
995
+ /* @__PURE__ */ u(
987
996
  "button",
988
997
  {
989
998
  type: "button",
990
999
  onClick: () => {
991
- p("system"), _(!1);
1000
+ p("system"), h(!1);
992
1001
  },
993
- className: I.dropdownItem,
1002
+ className: x.dropdownItem,
994
1003
  children: [
995
- /* @__PURE__ */ e(Ne, { className: I.dropdownIcon }),
1004
+ /* @__PURE__ */ e(ve, { className: x.dropdownIcon }),
996
1005
  n("ui.system")
997
1006
  ]
998
1007
  }
999
1008
  )
1000
1009
  ] })
1001
1010
  ] }),
1002
- u.length > 0 && /* @__PURE__ */ d("div", { className: I.supportDropdown, ref: i, children: [
1003
- /* @__PURE__ */ d(
1011
+ i.length > 0 && /* @__PURE__ */ u("div", { className: x.supportDropdown, ref: d, children: [
1012
+ /* @__PURE__ */ u(
1004
1013
  "button",
1005
1014
  {
1006
1015
  type: "button",
1007
- className: I.supportButton,
1008
- onClick: () => h(!m),
1016
+ className: x.supportButton,
1017
+ onClick: () => g(!m),
1009
1018
  "aria-expanded": m,
1010
1019
  "aria-haspopup": "true",
1011
1020
  children: [
1012
1021
  n("ui.support"),
1013
- /* @__PURE__ */ e(re, { className: I.caretIcon })
1022
+ /* @__PURE__ */ e(se, { className: x.caretIcon })
1014
1023
  ]
1015
1024
  }
1016
1025
  ),
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;
1019
- return /* @__PURE__ */ d(
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__ */ u(
1020
1029
  "a",
1021
1030
  {
1022
- href: c.url,
1023
- target: k,
1024
- rel: y,
1025
- className: I.dropdownItem,
1031
+ href: r.url,
1032
+ target: C,
1033
+ rel: I,
1034
+ className: x.dropdownItem,
1026
1035
  children: [
1027
- f && /* @__PURE__ */ e(f, { className: I.dropdownIcon }),
1028
- c.label
1036
+ f && /* @__PURE__ */ e(f, { className: x.dropdownIcon }),
1037
+ r.label
1029
1038
  ]
1030
1039
  },
1031
1040
  w
1032
1041
  );
1033
1042
  }) })
1034
1043
  ] }),
1035
- o.map((c, w) => {
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;
1037
- return /* @__PURE__ */ d(
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), f = r.icon;
1046
+ return /* @__PURE__ */ u(
1038
1047
  "a",
1039
1048
  {
1040
- href: c.url,
1041
- target: k,
1042
- rel: y,
1043
- className: c.className ?? I.navLink,
1049
+ href: r.url,
1050
+ target: C,
1051
+ rel: I,
1052
+ className: r.className ?? x.navLink,
1044
1053
  children: [
1045
- c.label,
1046
- f && /* @__PURE__ */ e(f, { className: I.externalIcon })
1054
+ r.label,
1055
+ f && /* @__PURE__ */ e(f, { className: x.externalIcon })
1047
1056
  ]
1048
1057
  },
1049
1058
  w
@@ -1052,193 +1061,193 @@ function yn({ onMobileMenuToggle: t }) {
1052
1061
  ] })
1053
1062
  ] }) }) });
1054
1063
  }
1055
- const V = (t) => "items" in t;
1056
- function ue({
1064
+ const X = (t) => "items" in t;
1065
+ function ie({
1057
1066
  styles: t,
1058
1067
  onLanguageChange: n
1059
1068
  }) {
1060
- const { i18n: s } = E(), a = Q(), r = z(), { config: o } = O(), [u, m] = S(!1), h = K(null), v = s.language, _ = (p) => {
1061
- const i = o.basePath || "";
1062
- let l = a.pathname;
1063
- i && l.startsWith(i) && (l = l.slice(i.length));
1064
- const c = l.split("/").filter(Boolean), w = c[0];
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();
1069
+ const { i18n: a } = E(), o = G(), c = F(), { config: s } = R(), [i, m] = L(!1), g = H(null), _ = a.language, h = (p) => {
1070
+ const d = s.basePath || "";
1071
+ let l = o.pathname;
1072
+ d && l.startsWith(d) && (l = l.slice(d.length));
1073
+ const r = l.split("/").filter(Boolean), w = r[0];
1074
+ let C = "";
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();
1069
1078
  };
1070
- L(() => {
1071
- const p = (i) => {
1072
- h.current && !h.current.contains(i.target) && m(!1);
1079
+ S(() => {
1080
+ const p = (d) => {
1081
+ g.current && !g.current.contains(d.target) && m(!1);
1073
1082
  };
1074
1083
  return document.addEventListener("mousedown", p), () => document.removeEventListener("mousedown", p);
1075
1084
  }, []);
1076
- const b = (p) => s.getFixedT(p)("language") || p;
1077
- return /* @__PURE__ */ d("div", { className: t.languageSelect, ref: h, children: [
1078
- /* @__PURE__ */ d(
1085
+ const b = (p) => a.getFixedT(p)("language") || p;
1086
+ return /* @__PURE__ */ u("div", { className: t.languageSelect, ref: g, children: [
1087
+ /* @__PURE__ */ u(
1079
1088
  "button",
1080
1089
  {
1081
1090
  type: "button",
1082
1091
  className: t.languageButton,
1083
- onClick: () => m(!u),
1084
- "aria-expanded": u,
1092
+ onClick: () => m(!i),
1093
+ "aria-expanded": i,
1085
1094
  "aria-haspopup": "listbox",
1086
1095
  children: [
1087
1096
  /* @__PURE__ */ e(Ae, { className: t.icon }),
1088
- b(v),
1089
- /* @__PURE__ */ e(re, { className: t.chevron })
1097
+ b(_),
1098
+ /* @__PURE__ */ e(se, { className: t.chevron })
1090
1099
  ]
1091
1100
  }
1092
1101
  ),
1093
- u && /* @__PURE__ */ e("div", { className: t.languageDropdown, role: "listbox", children: o.supportedLanguages.map((p) => /* @__PURE__ */ e(
1102
+ i && /* @__PURE__ */ e("div", { className: t.languageDropdown, role: "listbox", children: s.supportedLanguages.map((p) => /* @__PURE__ */ e(
1094
1103
  "button",
1095
1104
  {
1096
1105
  type: "button",
1097
- className: `${t.languageOption} ${p === v ? t.selected : ""}`,
1098
- onClick: () => _(p),
1106
+ className: `${t.languageOption} ${p === _ ? t.selected : ""}`,
1107
+ onClick: () => h(p),
1099
1108
  role: "option",
1100
- "aria-selected": p === v,
1109
+ "aria-selected": p === _,
1101
1110
  children: b(p)
1102
1111
  },
1103
1112
  p
1104
1113
  )) })
1105
1114
  ] });
1106
1115
  }
1107
- function he({ styles: t, onLinkClick: n }) {
1108
- const { i18n: s } = E(), a = Q(), { config: r } = O(), [o, u] = S(() => {
1109
- if (!r.navigationData) return {};
1110
- const i = s.language;
1111
- return ae(r.navigationData, i).reduce(
1112
- (c, w, k) => {
1113
- if (V(w)) {
1114
- const y = r.navigationData[k], f = V(y) && y.defaultOpen === !0;
1115
- c[w.title] = f;
1116
+ function de({ styles: t, onLinkClick: n }) {
1117
+ const { i18n: a } = E(), o = G(), { config: c } = R(), [s, i] = L(() => {
1118
+ if (!c.navigationData) return {};
1119
+ const d = a.language;
1120
+ return te(c.navigationData, d).reduce(
1121
+ (r, w, C) => {
1122
+ if (X(w)) {
1123
+ const I = c.navigationData[C], f = X(I) && I.defaultOpen === !0;
1124
+ r[w.title] = f;
1116
1125
  }
1117
- return c;
1126
+ return r;
1118
1127
  },
1119
1128
  {}
1120
1129
  );
1121
- }), m = s.language, h = r.navigationData ? ae(r.navigationData, m) : [];
1122
- L(() => {
1123
- if (!r.navigationData) return;
1124
- const l = ae(
1125
- r.navigationData,
1130
+ }), m = a.language, g = c.navigationData ? te(c.navigationData, m) : [];
1131
+ S(() => {
1132
+ if (!c.navigationData) return;
1133
+ const l = te(
1134
+ c.navigationData,
1126
1135
  m
1127
1136
  ).reduce(
1128
- (c, w, k) => {
1129
- if (V(w)) {
1130
- const y = r.navigationData[k], f = V(y) && y.defaultOpen === !0;
1131
- c[w.title] = f;
1137
+ (r, w, C) => {
1138
+ if (X(w)) {
1139
+ const I = c.navigationData[C], f = X(I) && I.defaultOpen === !0;
1140
+ r[w.title] = f;
1132
1141
  }
1133
- return c;
1142
+ return r;
1134
1143
  },
1135
1144
  {}
1136
1145
  );
1137
- u(l);
1138
- }, [m, r.navigationData]);
1139
- const v = (i) => {
1140
- u((l) => ({
1146
+ i(l);
1147
+ }, [m, c.navigationData]);
1148
+ const _ = (d) => {
1149
+ i((l) => ({
1141
1150
  ...l,
1142
- [i]: !l[i]
1151
+ [d]: !l[d]
1143
1152
  }));
1144
- }, _ = (i) => {
1145
- const l = r.basePath || "";
1146
- let c = a.pathname;
1147
- l && c.startsWith(l) && (c = c.slice(l.length));
1148
- const w = c.split("/").filter(Boolean);
1149
- return w[w.length - 1] === i;
1150
- }, b = (i) => {
1151
- const l = r.basePath || "";
1152
- let c = a.pathname;
1153
- l && c.startsWith(l) && (c = c.slice(l.length));
1154
- const w = c.split("/").filter(Boolean);
1155
- return w[0] && r.supportedLanguages.includes(w[0]) ? `${l}/${w[0]}/${i}` : `${l}/${m}/${i}`;
1153
+ }, h = (d) => {
1154
+ const l = c.basePath || "";
1155
+ let r = o.pathname;
1156
+ l && r.startsWith(l) && (r = r.slice(l.length));
1157
+ const w = r.split("/").filter(Boolean);
1158
+ return w[w.length - 1] === d;
1159
+ }, b = (d) => {
1160
+ const l = c.basePath || "";
1161
+ let r = o.pathname;
1162
+ l && r.startsWith(l) && (r = r.slice(l.length));
1163
+ const w = r.split("/").filter(Boolean);
1164
+ return w[0] && c.supportedLanguages.includes(w[0]) ? `${l}/${w[0]}/${d}` : `${l}/${m}/${d}`;
1156
1165
  }, p = () => {
1157
1166
  n == null || n();
1158
1167
  };
1159
- return /* @__PURE__ */ e("div", { className: t.navigation, children: h.map((i) => V(i) ? /* @__PURE__ */ d("div", { className: t.section, children: [
1160
- /* @__PURE__ */ d(
1168
+ return /* @__PURE__ */ e("div", { className: t.navigation, children: g.map((d) => X(d) ? /* @__PURE__ */ u("div", { className: t.section, children: [
1169
+ /* @__PURE__ */ u(
1161
1170
  "button",
1162
1171
  {
1163
1172
  type: "button",
1164
- className: `${t.sectionButton} ${o[i.title] ? t.expanded : ""}`,
1165
- onClick: () => v(i.title),
1173
+ className: `${t.sectionButton} ${s[d.title] ? t.expanded : ""}`,
1174
+ onClick: () => _(d.title),
1166
1175
  children: [
1167
- i.title,
1176
+ d.title,
1168
1177
  /* @__PURE__ */ e(We, { className: t.icon })
1169
1178
  ]
1170
1179
  }
1171
1180
  ),
1172
- o[i.title] && /* @__PURE__ */ e("div", { className: t.sectionItems, children: i.items.map((l) => /* @__PURE__ */ e(
1173
- pe,
1181
+ s[d.title] && /* @__PURE__ */ e("div", { className: t.sectionItems, children: d.items.map((l) => /* @__PURE__ */ e(
1182
+ ge,
1174
1183
  {
1175
1184
  to: b(l.slug),
1176
- className: `${t.navItem} ${_(l.slug) ? t.active : ""}`,
1185
+ className: `${t.navItem} ${h(l.slug) ? t.active : ""}`,
1177
1186
  onClick: p,
1178
1187
  children: /* @__PURE__ */ e("div", { className: t.navItemContent, children: /* @__PURE__ */ e("span", { className: t.navItemTitle, children: l.title }) })
1179
1188
  },
1180
1189
  l.slug
1181
1190
  )) })
1182
- ] }, i.title) : /* @__PURE__ */ e(
1183
- pe,
1191
+ ] }, d.title) : /* @__PURE__ */ e(
1192
+ ge,
1184
1193
  {
1185
- to: b(i.slug),
1186
- className: `${t.navItem} ${_(i.slug) ? t.active : ""}`,
1194
+ to: b(d.slug),
1195
+ className: `${t.navItem} ${h(d.slug) ? t.active : ""}`,
1187
1196
  onClick: p,
1188
- children: /* @__PURE__ */ e("div", { className: t.navItemContent, children: /* @__PURE__ */ e("span", { className: t.navItemTitle, children: i.title }) })
1197
+ children: /* @__PURE__ */ e("div", { className: t.navItemContent, children: /* @__PURE__ */ e("span", { className: t.navItemTitle, children: d.title }) })
1189
1198
  },
1190
- i.slug
1199
+ d.slug
1191
1200
  )) });
1192
1201
  }
1193
- function Ja({
1202
+ function Za({
1194
1203
  styles: t,
1195
1204
  onLinkClick: n,
1196
- onLanguageChange: s
1205
+ onLanguageChange: a
1197
1206
  }) {
1198
- return /* @__PURE__ */ d(Y, { children: [
1199
- /* @__PURE__ */ e(ue, { styles: t, onLanguageChange: s }),
1200
- /* @__PURE__ */ e(he, { styles: t, onLinkClick: n })
1207
+ return /* @__PURE__ */ u(z, { children: [
1208
+ /* @__PURE__ */ e(ie, { styles: t, onLanguageChange: a }),
1209
+ /* @__PURE__ */ e(de, { styles: t, onLinkClick: n })
1201
1210
  ] });
1202
1211
  }
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,
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,
1224
1233
  sectionButton: Yn,
1225
- expanded: Qn,
1226
- sectionItems: Xn,
1227
- navItem: Vn,
1228
- active: Jn,
1229
- navItemContent: Zn,
1230
- navItemTitle: ea
1234
+ expanded: Vn,
1235
+ sectionItems: Jn,
1236
+ navItem: Zn,
1237
+ active: ea,
1238
+ navItemContent: ta,
1239
+ navItemTitle: na
1231
1240
  };
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", () => {
1241
+ function aa({ isOpen: t, onClose: n }) {
1242
+ const { config: a } = R(), o = a.logo;
1243
+ return S(() => (t ? document.body.style.overflow = "hidden" : document.body.style.overflow = "unset", () => {
1235
1244
  document.body.style.overflow = "unset";
1236
- }), [t]), L(() => {
1237
- const r = (o) => {
1238
- o.key === "Escape" && t && n();
1245
+ }), [t]), S(() => {
1246
+ const c = (s) => {
1247
+ s.key === "Escape" && t && n();
1239
1248
  };
1240
- return document.addEventListener("keydown", r), () => document.removeEventListener("keydown", r);
1241
- }, [t, n]), /* @__PURE__ */ d(Y, { children: [
1249
+ return document.addEventListener("keydown", c), () => document.removeEventListener("keydown", c);
1250
+ }, [t, n]), /* @__PURE__ */ u(z, { children: [
1242
1251
  /* @__PURE__ */ e(
1243
1252
  "div",
1244
1253
  {
@@ -1246,11 +1255,11 @@ function ta({ isOpen: t, onClose: n }) {
1246
1255
  onClick: n
1247
1256
  }
1248
1257
  ),
1249
- /* @__PURE__ */ d("div", { className: `${M.mobileMenu} ${t ? M.open : ""}`, children: [
1250
- /* @__PURE__ */ d("div", { className: M.header, children: [
1251
- /* @__PURE__ */ d("div", { className: M.brand, children: [
1252
- a && /* @__PURE__ */ e(a, { className: M.cloudIcon }),
1253
- /* @__PURE__ */ e("h1", { className: M.title, children: s.title })
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
+ o && /* @__PURE__ */ e(o, { className: M.cloudIcon }),
1262
+ /* @__PURE__ */ e("h1", { className: M.title, children: a.title })
1254
1263
  ] }),
1255
1264
  /* @__PURE__ */ e(
1256
1265
  "button",
@@ -1259,178 +1268,178 @@ function ta({ isOpen: t, onClose: n }) {
1259
1268
  className: M.closeButton,
1260
1269
  onClick: n,
1261
1270
  "aria-label": "Close menu",
1262
- children: /* @__PURE__ */ e(de, { className: M.closeIcon })
1271
+ children: /* @__PURE__ */ e(le, { className: M.closeIcon })
1263
1272
  }
1264
1273
  )
1265
1274
  ] }),
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 }) })
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 }) })
1268
1277
  ] })
1269
1278
  ] });
1270
1279
  }
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
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
1293
1302
  };
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 })
1303
+ function Ia() {
1304
+ const { config: t } = R(), n = t.logo, a = 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: [
1308
+ n && /* @__PURE__ */ e(n, { className: W.cloudIcon }),
1309
+ /* @__PURE__ */ e("div", { className: W.title, children: t.title })
1301
1310
  ] }),
1302
- s && /* @__PURE__ */ e(ue, { styles: F })
1311
+ a && /* @__PURE__ */ e(ie, { styles: W })
1303
1312
  ] }),
1304
- /* @__PURE__ */ e("div", { className: F.scrollArea, children: /* @__PURE__ */ e(he, { styles: F }) })
1313
+ /* @__PURE__ */ e("div", { className: W.scrollArea, children: /* @__PURE__ */ e(de, { styles: W }) })
1305
1314
  ] });
1306
1315
  }
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
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
1313
1322
  };
1314
- function Sa({ children: t }) {
1315
- const { language: n } = ie(), { i18n: s } = E(), { config: a } = O(), [r, o] = S(!1);
1316
- L(() => {
1317
- n && a.supportedLanguages.includes(n) && s.changeLanguage(n);
1318
- }, [n, s, a.supportedLanguages]);
1319
- const u = () => {
1320
- o(!r);
1323
+ function Pa({ children: t }) {
1324
+ const { language: n } = re(), { i18n: a } = E(), { config: o } = R(), [c, s] = L(!1);
1325
+ S(() => {
1326
+ n && o.supportedLanguages.includes(n) && a.changeLanguage(n);
1327
+ }, [n, a, o.supportedLanguages]);
1328
+ const i = () => {
1329
+ s(!c);
1321
1330
  }, m = () => {
1322
- o(!1);
1331
+ s(!1);
1323
1332
  };
1324
- if (!n || !a.supportedLanguages.includes(n))
1325
- return /* @__PURE__ */ e(xe, { to: "/en/welcome", replace: !0 });
1326
- const h = !!a.header, v = a.showSideMenu !== !1, _ = a.contentMaxWidth ? { width: "100%", maxWidth: a.contentMaxWidth } : void 0;
1327
- return /* @__PURE__ */ d("div", { className: J.app, children: [
1328
- h && /* @__PURE__ */ e(yn, { onMobileMenuToggle: u }),
1329
- /* @__PURE__ */ e(ta, { isOpen: r, onClose: m }),
1330
- /* @__PURE__ */ d("div", { className: J.layout, children: [
1331
- v && /* @__PURE__ */ e(xa, {}),
1333
+ if (!n || !o.supportedLanguages.includes(n))
1334
+ return /* @__PURE__ */ e($e, { to: "/en/welcome", replace: !0 });
1335
+ const g = !!o.header, _ = o.showSideMenu !== !1, h = o.contentMaxWidth ? { width: "100%", maxWidth: o.contentMaxWidth } : void 0;
1336
+ return /* @__PURE__ */ u("div", { className: Y.app, children: [
1337
+ g && /* @__PURE__ */ e(Tn, { onMobileMenuToggle: i }),
1338
+ /* @__PURE__ */ e(aa, { isOpen: c, onClose: m }),
1339
+ /* @__PURE__ */ u("div", { className: Y.layout, children: [
1340
+ _ && /* @__PURE__ */ e(Ia, {}),
1332
1341
  /* @__PURE__ */ e(
1333
1342
  "main",
1334
1343
  {
1335
- className: `${J.main} ${v ? "" : J.fullWidth}`,
1336
- children: /* @__PURE__ */ e("div", { className: J.contentWrapper, style: _, children: t })
1344
+ className: `${Y.main} ${_ ? "" : Y.fullWidth}`,
1345
+ children: /* @__PURE__ */ e("div", { className: Y.contentWrapper, style: h, children: t })
1337
1346
  }
1338
1347
  )
1339
1348
  ] })
1340
1349
  ] });
1341
1350
  }
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
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
1352
1361
  };
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(() => {
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
+ S(() => {
1356
1365
  (async () => {
1357
1366
  try {
1358
- const b = s.navigationData || [], p = [];
1367
+ const b = a.navigationData || [], p = [];
1359
1368
  for (const l of b)
1360
1369
  if ("items" in l)
1361
- for (const c of l.items)
1370
+ for (const r of l.items)
1362
1371
  p.push({
1363
- slug: c.slug,
1364
- title: c.title
1372
+ slug: r.slug,
1373
+ title: r.title
1365
1374
  });
1366
1375
  else
1367
1376
  p.push({
1368
1377
  slug: l.slug,
1369
1378
  title: l.title
1370
1379
  });
1371
- const i = await Promise.all(
1380
+ const d = await Promise.all(
1372
1381
  p.map(async (l) => {
1373
1382
  try {
1374
- const c = await a(t.language, l.slug);
1383
+ const r = await o(t.language, l.slug);
1375
1384
  return {
1376
1385
  ...l,
1377
- title: c.frontmatter.title || l.title,
1378
- date: c.frontmatter.date,
1379
- author: c.frontmatter.author,
1380
- description: c.frontmatter.description
1386
+ title: r.frontmatter.title || l.title,
1387
+ date: r.frontmatter.date,
1388
+ author: r.frontmatter.author,
1389
+ description: r.frontmatter.description
1381
1390
  };
1382
1391
  } catch {
1383
1392
  return l;
1384
1393
  }
1385
1394
  })
1386
1395
  );
1387
- i.sort((l, c) => l.date && c.date ? new Date(c.date).getTime() - new Date(l.date).getTime() : l.date ? -1 : c.date ? 1 : l.title.localeCompare(c.title)), u(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));
1388
1397
  } catch (b) {
1389
1398
  console.error("Failed to load articles:", b);
1390
1399
  } finally {
1391
- h(!1);
1400
+ g(!1);
1392
1401
  }
1393
1402
  })();
1394
- }, [t.language, s.navigationData, a]);
1395
- const v = (_) => {
1396
- const b = s.basePath || "";
1397
- r(`${b}/${t.language}/${_}`);
1403
+ }, [t.language, a.navigationData, o]);
1404
+ const _ = (h) => {
1405
+ const b = a.basePath || "";
1406
+ c(`${b}/${t.language}/${h}`);
1398
1407
  };
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 })
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__ */ 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 })
1403
1412
  ] }),
1404
- /* @__PURE__ */ e("div", { className: q.articlesList, children: o.map((_) => /* @__PURE__ */ d(
1413
+ /* @__PURE__ */ e("div", { className: A.articlesList, children: s.map((h) => /* @__PURE__ */ u(
1405
1414
  "button",
1406
1415
  {
1407
- className: q.articleCard,
1408
- onClick: () => v(_.slug),
1416
+ className: A.articleCard,
1417
+ onClick: () => _(h.slug),
1409
1418
  type: "button",
1410
1419
  children: [
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 })
1420
+ /* @__PURE__ */ e("h2", { className: A.articleTitle, children: h.title }),
1421
+ h.description && /* @__PURE__ */ e("p", { className: A.articleDescription, children: h.description }),
1422
+ /* @__PURE__ */ e(ce, { date: h.date, author: h.author })
1414
1423
  ]
1415
1424
  },
1416
- _.slug
1425
+ h.slug
1417
1426
  )) })
1418
1427
  ] });
1419
1428
  }
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 }) }),
1429
+ function eo() {
1430
+ const { language: t } = re(), { config: n } = R();
1431
+ return /* @__PURE__ */ e(Pa, { children: /* @__PURE__ */ u(Se, { children: [
1432
+ /* @__PURE__ */ e(me, { path: "/:slug", element: /* @__PURE__ */ e(Ft, { language: t }) }),
1424
1433
  /* @__PURE__ */ e(
1425
- fe,
1434
+ me,
1426
1435
  {
1427
1436
  index: !0,
1428
- element: (n.defaultRoute || "latest") === "latest" ? /* @__PURE__ */ e(Aa, {}) : /* @__PURE__ */ e(xe, { to: `./${n.defaultRoute}`, replace: !0 })
1437
+ element: (n.defaultRoute || "latest") === "latest" ? /* @__PURE__ */ e(Ha, {}) : /* @__PURE__ */ e($e, { to: `./${n.defaultRoute}`, replace: !0 })
1429
1438
  }
1430
1439
  )
1431
1440
  ] }) });
1432
1441
  }
1433
- function eo() {
1442
+ function to() {
1434
1443
  return {
1435
1444
  openSearchModal: () => {
1436
1445
  window.dispatchEvent(new CustomEvent("blog:open-search"));
@@ -1440,44 +1449,44 @@ function eo() {
1440
1449
  }
1441
1450
  };
1442
1451
  }
1443
- function to() {
1444
- const { i18n: t } = E(), n = Q(), s = z(), { config: a } = O();
1445
- return (r) => {
1446
- const o = a.basePath || "";
1447
- let u = n.pathname;
1448
- o && u.startsWith(o) && (u = u.slice(o.length));
1449
- const m = u.split("/").filter(Boolean), h = m[0];
1450
- let v = "";
1451
- a.supportedLanguages.includes(h) ? (m[0] = r, v = `${o}/${m.join("/")}`) : v = `${o}/${r}${u}`;
1452
- const _ = v + n.search + n.hash;
1453
- t.changeLanguage(r), s(_);
1452
+ function no() {
1453
+ const { i18n: t } = E(), n = G(), a = F(), { config: o } = R();
1454
+ return (c) => {
1455
+ const s = o.basePath || "";
1456
+ let i = n.pathname;
1457
+ s && i.startsWith(s) && (i = i.slice(s.length));
1458
+ const m = i.split("/").filter(Boolean), g = m[0];
1459
+ let _ = "";
1460
+ o.supportedLanguages.includes(g) ? (m[0] = c, _ = `${s}/${m.join("/")}`) : _ = `${s}/${c}${i}`;
1461
+ const h = _ + n.search + n.hash;
1462
+ t.changeLanguage(c), a(h);
1454
1463
  };
1455
1464
  }
1456
1465
  export {
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,
1477
- Z as generateHeadingId,
1478
- ae as getNavigationData,
1479
- O as useBlogConfig,
1480
- to as useLanguageChange,
1481
- eo as useSearchModal,
1482
- Pe as useTheme
1466
+ Ue as AdvancedModeToggle,
1467
+ Ja as BlogProvider,
1468
+ Ke as BlogRoot,
1469
+ Ft as ContentPage,
1470
+ Pa as DocumentationLayout,
1471
+ eo as DocumentationRoutes,
1472
+ Tn as Header,
1473
+ Ha as HomePage,
1474
+ ie as LanguageSelector,
1475
+ ce as Metadata,
1476
+ aa as MobileMenu,
1477
+ Za as NavigationContent,
1478
+ de as NavigationMenu,
1479
+ ln as SearchBar,
1480
+ Ia as Sidebar,
1481
+ ht as TableOfContents,
1482
+ Ct as TagResultsModal,
1483
+ Pt as Tags,
1484
+ Va as createBlogUtils,
1485
+ Ce as createContentLoaders,
1486
+ V as generateHeadingId,
1487
+ te as getNavigationData,
1488
+ R as useBlogConfig,
1489
+ no as useLanguageChange,
1490
+ to as useSearchModal,
1491
+ ke as useTheme
1483
1492
  };