@x-wave/blog 1.0.35 → 1.0.37

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,110 +1,110 @@
1
- import { jsxs as d, jsx as t, Fragment as K } from "react/jsx-runtime";
2
- import { useTranslation as A } from "react-i18next";
3
- import { useLocation as Q, useNavigate as X, Link as dt, useParams as vt, Navigate as Wt, Routes as Yt, Route as Pt } from "react-router-dom";
4
- import { CaretLeft as Vt, CaretRight as Ht, ArrowSquareOut as Jt, User as Zt, CalendarBlank as te, X as bt, Tag as ee, MagnifyingGlass as Dt, List as ne, Sun as Mt, Moon as Bt, Monitor as Et, CaretDown as pt, Globe as ae } from "@phosphor-icons/react";
5
- import { useState as y, useEffect as S, createContext as oe, useContext as se, useRef as G } from "react";
6
- import ce from "i18next";
7
- import re from "react-markdown";
8
- import le from "remark-gfm";
9
- import { createPortal as zt } from "react-dom";
10
- const ie = "_tabContainer_zk6h4_1", de = "_tab_zk6h4_1", ue = "_active_zk6h4_45", et = {
11
- tabContainer: ie,
12
- tab: de,
13
- active: ue
1
+ import { jsxs as T, jsx as i, Fragment as me } from "react/jsx-runtime";
2
+ import { useTranslation as J } from "react-i18next";
3
+ import { useLocation as Ee, useNavigate as ge, Link as qe, useParams as ut, Navigate as Ht, Routes as rn, Route as mt } from "react-router-dom";
4
+ import { CaretLeft as on, CaretRight as Ft, ArrowSquareOut as an, User as sn, CalendarBlank as cn, X as dt, Tag as ln, MagnifyingGlass as vt, List as un, Sun as gt, Moon as _t, Monitor as yt, CaretDown as ot, Globe as dn } from "@phosphor-icons/react";
5
+ import ke, { useState as F, useEffect as U, createContext as fn, useContext as hn, useRef as ve } from "react";
6
+ import pn from "i18next";
7
+ import mn from "react-markdown";
8
+ import vn from "remark-gfm";
9
+ import { createPortal as qt } from "react-dom";
10
+ const gn = "_tabContainer_zk6h4_1", _n = "_tab_zk6h4_1", yn = "_active_zk6h4_45", Oe = {
11
+ tabContainer: gn,
12
+ tab: _n,
13
+ active: yn
14
14
  };
15
- function he({ hasAdvanced: e }) {
16
- const { t: n } = A(), o = Q(), a = X();
17
- if (!e) return null;
18
- const s = new URLSearchParams(o.search).has("advanced"), l = () => {
19
- if (s) {
20
- const h = new URLSearchParams(o.search);
21
- h.delete("advanced");
22
- const u = h.toString(), i = u ? `?${u}` : "";
23
- a(`${o.pathname}${i}${o.hash}`);
24
- }
25
- }, g = () => {
26
- if (!s) {
27
- const h = new URLSearchParams(o.search);
28
- h.set("advanced", ""), a(`${o.pathname}?${h.toString()}${o.hash}`);
15
+ function bn({ hasAdvanced: t }) {
16
+ const { t: e } = J(), o = Ee(), n = ge();
17
+ if (!t) return null;
18
+ const r = new URLSearchParams(o.search).has("advanced"), l = () => {
19
+ if (r) {
20
+ const s = new URLSearchParams(o.search);
21
+ s.delete("advanced");
22
+ const u = s.toString(), d = u ? `?${u}` : "";
23
+ n(`${o.pathname}${d}${o.hash}`);
24
+ }
25
+ }, c = () => {
26
+ if (!r) {
27
+ const s = new URLSearchParams(o.search);
28
+ s.set("advanced", ""), n(`${o.pathname}?${s.toString()}${o.hash}`);
29
29
  }
30
30
  };
31
- return /* @__PURE__ */ d("div", { className: et.tabContainer, children: [
32
- /* @__PURE__ */ t(
31
+ return /* @__PURE__ */ T("div", { className: Oe.tabContainer, children: [
32
+ /* @__PURE__ */ i(
33
33
  "button",
34
34
  {
35
35
  type: "button",
36
- className: `${et.tab} ${s ? "" : et.active}`,
36
+ className: `${Oe.tab} ${r ? "" : Oe.active}`,
37
37
  onClick: l,
38
- children: n("ui.simple")
38
+ children: e("ui.simple")
39
39
  }
40
40
  ),
41
- /* @__PURE__ */ t(
41
+ /* @__PURE__ */ i(
42
42
  "button",
43
43
  {
44
44
  type: "button",
45
- className: `${et.tab} ${s ? et.active : ""}`,
46
- onClick: g,
47
- children: n("ui.advanced")
45
+ className: `${Oe.tab} ${r ? Oe.active : ""}`,
46
+ onClick: c,
47
+ children: e("ui.advanced")
48
48
  }
49
49
  )
50
50
  ] });
51
51
  }
52
- function me({ children: e }) {
53
- return /* @__PURE__ */ t("div", { className: "xw-blog-root", children: e });
52
+ function Tn({ children: t }) {
53
+ return /* @__PURE__ */ i("div", { className: "xw-blog-root", children: t });
54
54
  }
55
- function Ft(e) {
56
- function n(o) {
57
- const a = o.match(/^---\s*\n([\s\S]*?)\n---\s*\n/);
58
- if (!a) return { frontmatter: {}, content: o };
59
- const c = {}, s = a[1];
60
- let l = "", g = !1;
61
- const h = [];
62
- for (const i of s.split(`
55
+ function Wt(t) {
56
+ function e(o) {
57
+ const n = o.match(/^---\s*\n([\s\S]*?)\n---\s*\n/);
58
+ if (!n) return { frontmatter: {}, content: o };
59
+ const a = {}, r = n[1];
60
+ let l = "", c = !1;
61
+ const s = [];
62
+ for (const d of r.split(`
63
63
  `)) {
64
- const f = i.trim();
65
- if (f.startsWith("-")) {
66
- if (g) {
67
- const _ = f.substring(1).trim();
68
- h.push(_);
64
+ const h = d.trim();
65
+ if (h.startsWith("-")) {
66
+ if (c) {
67
+ const f = h.substring(1).trim();
68
+ s.push(f);
69
69
  }
70
70
  continue;
71
71
  }
72
- if (g && !f.startsWith("-") && (c[l] = h.slice(), h.length = 0, g = !1), f != null && f.includes(":")) {
73
- const [_, ...v] = f.split(":"), w = v.join(":").trim();
74
- if (l = _.trim(), !w) {
75
- g = !0;
72
+ if (c && !h.startsWith("-") && (a[l] = s.slice(), s.length = 0, c = !1), h != null && h.includes(":")) {
73
+ const [f, ...v] = h.split(":"), E = v.join(":").trim();
74
+ if (l = f.trim(), !E) {
75
+ c = !0;
76
76
  continue;
77
77
  }
78
- w === "true" ? c[l] = !0 : w === "false" ? c[l] = !1 : c[l] = w;
78
+ E === "true" ? a[l] = !0 : E === "false" ? a[l] = !1 : a[l] = E;
79
79
  }
80
80
  }
81
- g && h.length > 0 && (c[l] = h);
81
+ c && s.length > 0 && (a[l] = s);
82
82
  const u = o.replace(
83
83
  /^---\s*\n[\s\S]*?\n---\s*\n/,
84
84
  ""
85
85
  );
86
- return { frontmatter: c, content: u };
86
+ return { frontmatter: a, content: u };
87
87
  }
88
88
  return {
89
89
  /**
90
90
  * Load MDX content for a given language and slug.
91
91
  * Automatically loads the advanced variant if `advanced` is true.
92
92
  */
93
- async loadMDXContent(o, a, c = !1) {
94
- const s = c ? `${a}-advanced.mdx` : `${a}.mdx`, l = `./docs/${o}/${s}`, g = e[l];
95
- if (!g) throw new Error(`File not found: ${l}`);
96
- const h = await g(), { frontmatter: u, content: i } = n(h);
97
- return { content: i, frontmatter: u };
93
+ async loadMDXContent(o, n, a = !1) {
94
+ const r = a ? `${n}-advanced.mdx` : `${n}.mdx`, l = `./docs/${o}/${r}`, c = t[l];
95
+ if (!c) throw new Error(`File not found: ${l}`);
96
+ const s = await c(), { frontmatter: u, content: d } = e(s);
97
+ return { content: d, frontmatter: u };
98
98
  },
99
99
  /**
100
100
  * Load English content for generating consistent heading IDs.
101
101
  * All heading anchors are derived from English content for stability across translations.
102
102
  */
103
- async loadEnglishContent(o, a = !1) {
104
- const s = `./docs/en/${a ? `${o}-advanced.mdx` : `${o}.mdx`}`, l = e[s];
105
- if (!l) throw new Error(`File not found: ${s}`);
106
- const g = await l(), { content: h } = n(g);
107
- return h;
103
+ async loadEnglishContent(o, n = !1) {
104
+ const r = `./docs/en/${n ? `${o}-advanced.mdx` : `${o}.mdx`}`, l = t[r];
105
+ if (!l) throw new Error(`File not found: ${r}`);
106
+ const c = await l(), { content: s } = e(c);
107
+ return s;
108
108
  },
109
109
  /**
110
110
  * Build a tag index from all MDX files.
@@ -114,967 +114,2330 @@ function Ft(e) {
114
114
  * @returns Promise resolving to tag index mapping tag names to document info
115
115
  */
116
116
  async buildTagIndex(o = "en") {
117
- const a = {}, c = `./docs/${o}/`, s = Object.keys(e).filter(
118
- (l) => l.startsWith(c)
117
+ const n = {}, a = `./docs/${o}/`, r = Object.keys(t).filter(
118
+ (l) => l.startsWith(a)
119
119
  );
120
- for (const l of s)
120
+ for (const l of r)
121
121
  try {
122
- const g = e[l], h = await g(), { frontmatter: u, content: i } = n(h), f = l.split("/").pop() || "", _ = f.replace(".mdx", "").replace("-advanced", ""), v = typeof u.title == "string" ? u.title : void 0, w = i.match(/^#\s+(.+)$/m), r = v || (w ? w[1].trim() : _);
123
- if (f.includes("-advanced")) continue;
124
- const m = u.tags;
125
- if (m && Array.isArray(m))
126
- for (const N of m)
127
- a[N] || (a[N] = []), a[N].some((I) => I.slug === _) || a[N].push({ slug: _, title: r });
128
- } catch (g) {
129
- console.warn(`Failed to process ${l}:`, g);
122
+ const c = t[l], s = await c(), { frontmatter: u, content: d } = e(s), h = l.split("/").pop() || "", f = h.replace(".mdx", "").replace("-advanced", ""), v = typeof u.title == "string" ? u.title : void 0, E = d.match(/^#\s+(.+)$/m), m = v || (E ? E[1].trim() : f);
123
+ if (h.includes("-advanced")) continue;
124
+ const y = u.tags;
125
+ if (y && Array.isArray(y))
126
+ for (const b of y)
127
+ n[b] || (n[b] = []), n[b].some((I) => I.slug === f) || n[b].push({ slug: f, title: m });
128
+ } catch (c) {
129
+ console.warn(`Failed to process ${l}:`, c);
130
130
  }
131
- return a;
131
+ return n;
132
132
  }
133
133
  };
134
134
  }
135
- function Eo(e) {
136
- const n = Ft(e);
135
+ function Ds(t) {
136
+ const e = Wt(t);
137
137
  return {
138
- mdxFiles: e,
139
- loadContent: n.loadMDXContent,
140
- loadEnglishContent: n.loadEnglishContent
138
+ mdxFiles: t,
139
+ loadContent: e.loadMDXContent,
140
+ loadEnglishContent: e.loadEnglishContent
141
141
  };
142
142
  }
143
- const Rt = "app-theme", qt = () => typeof window > "u" ? "light" : window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light", At = (e) => e === "system" ? qt() : e, Ut = (e) => {
144
- const n = () => e || (typeof window > "u" ? "system" : localStorage.getItem(Rt) || "system"), [o, a] = y(n);
145
- return S(() => {
146
- const s = At(o), l = document.querySelector(".xw-blog-root");
147
- if (l && (l.classList.remove("light", "dark"), l.classList.add(s)), o === "system") {
148
- const g = window.matchMedia("(prefers-color-scheme: dark)"), h = () => {
149
- const u = qt(), i = document.querySelector(".xw-blog-root");
150
- i && (i.classList.remove("light", "dark"), i.classList.add(u));
143
+ const bt = "app-theme", Yt = () => typeof window > "u" ? "light" : window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light", Tt = (t) => t === "system" ? Yt() : t, Ut = (t) => {
144
+ const e = () => t || (typeof window > "u" ? "system" : localStorage.getItem(bt) || "system"), [o, n] = F(e);
145
+ return U(() => {
146
+ const r = Tt(o), l = document.querySelector(".xw-blog-root");
147
+ if (l && (l.classList.remove("light", "dark"), l.classList.add(r)), o === "system") {
148
+ const c = window.matchMedia("(prefers-color-scheme: dark)"), s = () => {
149
+ const u = Yt(), d = document.querySelector(".xw-blog-root");
150
+ d && (d.classList.remove("light", "dark"), d.classList.add(u));
151
151
  };
152
- return g.addEventListener("change", h), () => g.removeEventListener("change", h);
152
+ return c.addEventListener("change", s), () => c.removeEventListener("change", s);
153
153
  }
154
154
  }, [o]), {
155
155
  theme: o,
156
- setTheme: (s) => {
157
- localStorage.setItem(Rt, s), a(s);
156
+ setTheme: (r) => {
157
+ localStorage.setItem(bt, r), n(r);
158
158
  },
159
- effectiveTheme: At(o)
159
+ effectiveTheme: Tt(o)
160
160
  };
161
- }, ge = (e) => "items" in e, ot = (e) => "items" in e, ut = async (e, n, o) => {
162
- const a = [];
163
- for (const c of e)
164
- if (ge(c)) {
165
- const s = [];
166
- for (const g of c.items)
161
+ }, wn = (t) => "items" in t, De = (t) => "items" in t, Ue = async (t, e, o) => {
162
+ const n = [];
163
+ for (const a of t)
164
+ if (wn(a)) {
165
+ const r = [];
166
+ for (const c of a.items)
167
167
  try {
168
- const h = await o(n, g.slug, !1), u = typeof h.frontmatter.title == "string" ? h.frontmatter.title : g.slug;
169
- s.push({
170
- ...g,
168
+ const s = await o(e, c.slug, !1), u = typeof s.frontmatter.title == "string" ? s.frontmatter.title : c.slug;
169
+ r.push({
170
+ ...c,
171
171
  title: u
172
172
  });
173
173
  } catch {
174
- s.push({
175
- ...g,
176
- title: g.slug
174
+ r.push({
175
+ ...c,
176
+ title: c.slug
177
177
  });
178
178
  }
179
- const l = ce.getFixedT(n)(c.title);
180
- a.push({
179
+ const l = pn.getFixedT(e)(a.title);
180
+ n.push({
181
181
  title: l,
182
- items: s,
183
- ...c.defaultOpen !== void 0 && {
184
- defaultOpen: c.defaultOpen
182
+ items: r,
183
+ ...a.defaultOpen !== void 0 && {
184
+ defaultOpen: a.defaultOpen
185
185
  }
186
186
  });
187
187
  } else
188
188
  try {
189
- const s = await o(n, c.slug, !1), l = typeof s.frontmatter.title == "string" ? s.frontmatter.title : c.slug;
190
- a.push({
191
- ...c,
189
+ const r = await o(e, a.slug, !1), l = typeof r.frontmatter.title == "string" ? r.frontmatter.title : a.slug;
190
+ n.push({
191
+ ...a,
192
192
  title: l
193
193
  });
194
194
  } catch {
195
- a.push({
196
- ...c,
197
- title: c.slug
195
+ n.push({
196
+ ...a,
197
+ title: a.slug
198
198
  });
199
199
  }
200
- return a;
201
- }, Z = (e) => e.toString().toLowerCase().trim().replace(/[^\w\s-]/g, "").replace(/\s+/g, "-").replace(/-+/g, "-").replace(/^-+|-+$/g, ""), _e = (e, n) => {
200
+ return n;
201
+ }, Ae = (t) => t.toString().toLowerCase().trim().replace(/[^\w\s-]/g, "").replace(/\s+/g, "-").replace(/-+/g, "-").replace(/^-+|-+$/g, ""), En = (t, e) => {
202
202
  const o = [];
203
- for (const c of n)
204
- ot(c) ? o.push(...c.items) : o.push({ slug: c.slug, title: c.title });
205
- const a = o.findIndex(
206
- (c) => c.slug === e
203
+ for (const a of e)
204
+ De(a) ? o.push(...a.items) : o.push({ slug: a.slug, title: a.title });
205
+ const n = o.findIndex(
206
+ (a) => a.slug === t
207
207
  );
208
- return a === -1 ? {} : {
209
- prev: a > 0 ? o[a - 1] : void 0,
210
- next: a < o.length - 1 ? o[a + 1] : void 0
208
+ return n === -1 ? {} : {
209
+ prev: n > 0 ? o[n - 1] : void 0,
210
+ next: n < o.length - 1 ? o[n + 1] : void 0
211
211
  };
212
- }, Kt = oe(null);
213
- function Ro({
214
- children: e,
215
- config: n,
212
+ }, zt = fn(null);
213
+ function js({
214
+ children: t,
215
+ config: e,
216
216
  blog: o,
217
- navigationData: a = []
217
+ navigationData: n = []
218
218
  }) {
219
- Ut(n.defaultTheme);
220
- const [c, s] = y({});
221
- S(() => {
222
- const { buildTagIndex: g } = Ft(o.mdxFiles), h = n.supportedLanguages.map(async (u) => {
219
+ Ut(e.defaultTheme);
220
+ const [a, r] = F({});
221
+ U(() => {
222
+ const { buildTagIndex: c } = Wt(o.mdxFiles), s = e.supportedLanguages.map(async (u) => {
223
223
  try {
224
- const i = await g(u);
225
- return { language: u, index: i };
226
- } catch (i) {
227
- return console.error(`Failed to build tag index for ${u}:`, i), { language: u, index: {} };
224
+ const d = await c(u);
225
+ return { language: u, index: d };
226
+ } catch (d) {
227
+ return console.error(`Failed to build tag index for ${u}:`, d), { language: u, index: {} };
228
228
  }
229
229
  });
230
- Promise.all(h).then((u) => {
231
- const i = {};
232
- for (const f of u)
233
- i[f.language] = f.index;
234
- s(i);
230
+ Promise.all(s).then((u) => {
231
+ const d = {};
232
+ for (const h of u)
233
+ d[h.language] = h.index;
234
+ r(d);
235
235
  }).catch((u) => {
236
236
  console.error("Failed to build tag indices:", u);
237
237
  });
238
- }, [o.mdxFiles, n.supportedLanguages]);
239
- const l = { ...n, navigationData: a, tagIndex: c };
240
- return /* @__PURE__ */ t(
241
- Kt.Provider,
238
+ }, [o.mdxFiles, e.supportedLanguages]);
239
+ const l = { ...e, navigationData: n, tagIndex: a };
240
+ return /* @__PURE__ */ i(
241
+ zt.Provider,
242
242
  {
243
243
  value: {
244
244
  config: l,
245
245
  loadContent: o.loadContent,
246
246
  loadEnglishContent: o.loadEnglishContent
247
247
  },
248
- children: /* @__PURE__ */ t(me, { children: e })
248
+ children: /* @__PURE__ */ i(Tn, { children: t })
249
249
  }
250
250
  );
251
251
  }
252
- function O() {
253
- const e = se(Kt);
254
- if (!e)
252
+ function Z() {
253
+ const t = hn(zt);
254
+ if (!t)
255
255
  throw new Error("useBlogConfig must be used within a BlogProvider");
256
- return e;
256
+ return t;
257
257
  }
258
258
  function Gt() {
259
259
  return !!new URL(window.location.href).hash;
260
260
  }
261
- function pe(e, n, o) {
262
- const a = o ? `${o}/` : "";
263
- return Gt() ? `#${a}${n}/${e}` : `/${a}${n}/${e}`;
261
+ function Cn(t, e, o) {
262
+ const n = o ? `${o}/` : "";
263
+ return Gt() ? `#${n}${e}/${t}` : `/${n}${e}/${t}`;
264
264
  }
265
- function Qt(e) {
266
- const n = {
265
+ function Vt(t) {
266
+ const e = {
267
267
  advanced: !1,
268
268
  anchor: ""
269
269
  };
270
- if (!e) return n;
271
- const a = (e.startsWith("?") ? e.substring(1) : e).split("&");
272
- for (const c of a)
273
- c === "advanced" ? n.advanced = !0 : c.startsWith("a=") && (n.anchor = c.substring(2));
274
- return n;
270
+ if (!t) return e;
271
+ const n = (t.startsWith("?") ? t.substring(1) : t).split("&");
272
+ for (const a of n)
273
+ a === "advanced" ? e.advanced = !0 : a.startsWith("a=") && (e.anchor = a.substring(2));
274
+ return e;
275
275
  }
276
- function Ot(e, n = 80) {
277
- const o = document.getElementById(e);
276
+ function wt(t, e = 80) {
277
+ const o = document.getElementById(t);
278
278
  if (o) {
279
- const c = o.getBoundingClientRect().top + window.pageYOffset - n;
279
+ const a = o.getBoundingClientRect().top + window.pageYOffset - e;
280
280
  window.scrollTo({
281
- top: c,
281
+ top: a,
282
282
  behavior: "smooth"
283
283
  });
284
284
  }
285
285
  }
286
- function fe(e, n = !1) {
286
+ function Sn(t, e = !1) {
287
287
  const o = new URL(window.location.href);
288
288
  if (Gt()) {
289
- const a = o.hash.split("?"), c = a[0], s = new URLSearchParams(a[1] || "");
290
- s.set("a", e), n && s.set("advanced", "");
291
- const l = s.toString();
292
- o.hash = l ? `${c}?${l}` : c;
289
+ const n = o.hash.split("?"), a = n[0], r = new URLSearchParams(n[1] || "");
290
+ r.set("a", t), e && r.set("advanced", "");
291
+ const l = r.toString();
292
+ o.hash = l ? `${a}?${l}` : a;
293
293
  } else {
294
- const a = new URLSearchParams(o.search);
295
- a.set("a", e), n && a.set("advanced", ""), o.search = `?${a.toString()}`;
294
+ const n = new URLSearchParams(o.search);
295
+ n.set("a", t), e && n.set("advanced", ""), o.search = `?${n.toString()}`;
296
296
  }
297
297
  window.history.pushState(null, "", o.toString());
298
298
  }
299
- const ve = "_articleNavigation_1m2tz_1", be = "_navContainer_1m2tz_7", we = "_navLink_1m2tz_18", Ne = "_navLinkContent_1m2tz_43", ke = "_navIcon_1m2tz_50", $e = "_navText_1m2tz_57", xe = "_navLabel_1m2tz_64", Ie = "_navTitle_1m2tz_72", E = {
300
- articleNavigation: ve,
301
- navContainer: be,
302
- navLink: we,
303
- navLinkContent: Ne,
304
- navIcon: ke,
305
- navText: $e,
306
- navLabel: xe,
307
- navTitle: Ie
299
+ function Pn(t = "smooth") {
300
+ window.scrollTo({
301
+ top: 0,
302
+ left: 0,
303
+ behavior: t
304
+ });
305
+ }
306
+ const In = "_articleNavigation_kz84g_1", An = "_navContainer_kz84g_7", kn = "_navLink_kz84g_24", Nn = "_navLinkContent_kz84g_61", xn = "_navIcon_kz84g_76", On = "_navText_kz84g_83", Rn = "_navLabel_kz84g_90", $n = "_navTitle_kz84g_98", te = {
307
+ articleNavigation: In,
308
+ navContainer: An,
309
+ navLink: kn,
310
+ navLinkContent: Nn,
311
+ navIcon: xn,
312
+ navText: On,
313
+ navLabel: Rn,
314
+ navTitle: $n
308
315
  };
309
- function Ce({
310
- prevSlug: e,
311
- prevTitle: n,
316
+ function Ln({
317
+ prevSlug: t,
318
+ prevTitle: e,
312
319
  nextSlug: o,
313
- nextTitle: a,
314
- language: c
320
+ nextTitle: n,
321
+ language: a
315
322
  }) {
316
- const { t: s } = A(), { config: l } = O(), g = Q(), u = Qt(g.search).advanced, i = l.basePath || "", f = (_) => {
317
- const v = `${i}/${c}/${_}`;
318
- return u ? `${v}?advanced=true` : v;
323
+ const { t: r } = J(), { config: l } = Z(), c = Ee(), u = Vt(c.search).advanced, d = l.basePath || "", h = (v) => {
324
+ const E = `${d}/${a}/${v}`;
325
+ return u ? `${E}?advanced=true` : E;
319
326
  };
320
- return !e && !o ? null : /* @__PURE__ */ t("nav", { className: E.articleNavigation, "aria-label": "Article navigation", children: /* @__PURE__ */ d("div", { className: E.navContainer, children: [
321
- e ? /* @__PURE__ */ t(dt, { to: f(e), className: E.navLink, children: /* @__PURE__ */ d("div", { className: E.navLinkContent, children: [
322
- /* @__PURE__ */ t("div", { className: E.navIcon, children: /* @__PURE__ */ t(Vt, { size: 20, weight: "bold" }) }),
323
- /* @__PURE__ */ d("div", { className: E.navText, children: [
324
- /* @__PURE__ */ t("span", { className: E.navLabel, children: s("nav.previous") }),
325
- /* @__PURE__ */ t("span", { className: E.navTitle, children: n || e })
326
- ] })
327
- ] }) }) : /* @__PURE__ */ t("div", {}),
328
- o ? /* @__PURE__ */ t(dt, { to: f(o), className: E.navLink, children: /* @__PURE__ */ d("div", { className: E.navLinkContent, children: [
329
- /* @__PURE__ */ d("div", { className: E.navText, children: [
330
- /* @__PURE__ */ t("span", { className: E.navLabel, children: s("nav.next") }),
331
- /* @__PURE__ */ t("span", { className: E.navTitle, children: a || o })
332
- ] }),
333
- /* @__PURE__ */ t("div", { className: E.navIcon, children: /* @__PURE__ */ t(Ht, { size: 20, weight: "bold" }) })
334
- ] }) }) : /* @__PURE__ */ t("div", {})
327
+ if (!t && !o)
328
+ return null;
329
+ const f = () => {
330
+ Pn("auto");
331
+ };
332
+ return /* @__PURE__ */ i("nav", { className: te.articleNavigation, "aria-label": "Article navigation", children: /* @__PURE__ */ T("div", { className: te.navContainer, children: [
333
+ t ? /* @__PURE__ */ i(
334
+ qe,
335
+ {
336
+ to: h(t),
337
+ className: te.navLink,
338
+ onClick: f,
339
+ children: /* @__PURE__ */ T("div", { className: te.navLinkContent, children: [
340
+ /* @__PURE__ */ i("div", { className: te.navIcon, children: /* @__PURE__ */ i(on, { size: 20, weight: "bold" }) }),
341
+ /* @__PURE__ */ T("div", { className: te.navText, children: [
342
+ /* @__PURE__ */ i("span", { className: te.navLabel, children: r("nav.previous") }),
343
+ /* @__PURE__ */ i("span", { className: te.navTitle, children: e || t })
344
+ ] })
345
+ ] })
346
+ }
347
+ ) : /* @__PURE__ */ i("div", {}),
348
+ o ? /* @__PURE__ */ i(
349
+ qe,
350
+ {
351
+ to: h(o),
352
+ className: te.navLink,
353
+ onClick: f,
354
+ children: /* @__PURE__ */ T("div", { className: te.navLinkContent, children: [
355
+ /* @__PURE__ */ T("div", { className: te.navText, children: [
356
+ /* @__PURE__ */ i("span", { className: te.navLabel, children: r("nav.next") }),
357
+ /* @__PURE__ */ i("span", { className: te.navTitle, children: n || o })
358
+ ] }),
359
+ /* @__PURE__ */ i("div", { className: te.navIcon, children: /* @__PURE__ */ i(Ft, { size: 20, weight: "bold" }) })
360
+ ] })
361
+ }
362
+ ) : /* @__PURE__ */ i("div", {})
335
363
  ] }) });
336
364
  }
337
- const ye = "_blogSidebar_1ik3q_1", Le = "_section_1ik3q_21", Te = "_sectionTitle_1ik3q_28", Se = "_linksList_1ik3q_36", Pe = "_link_1ik3q_36", nt = {
338
- blogSidebar: ye,
339
- section: Le,
340
- sectionTitle: Te,
341
- linksList: Se,
342
- link: Pe
365
+ const Mn = "_blogSidebar_1ik3q_1", Dn = "_section_1ik3q_21", jn = "_sectionTitle_1ik3q_28", Bn = "_linksList_1ik3q_36", Hn = "_link_1ik3q_36", Re = {
366
+ blogSidebar: Mn,
367
+ section: Dn,
368
+ sectionTitle: jn,
369
+ linksList: Bn,
370
+ link: Hn
343
371
  };
344
- function De() {
345
- const { t: e } = A(), { config: n } = O(), o = n.socialLinks || [];
346
- return o.length === 0 ? null : /* @__PURE__ */ t("aside", { className: nt.blogSidebar, children: /* @__PURE__ */ d("div", { className: nt.section, children: [
347
- /* @__PURE__ */ t("h3", { className: nt.sectionTitle, children: e("ui.connect") }),
348
- /* @__PURE__ */ t("div", { className: nt.linksList, children: o.map((a, c) => {
349
- const s = a.icon || Jt, l = a.target === "_blank";
350
- return /* @__PURE__ */ d(
372
+ function Fn() {
373
+ const { t } = J(), { config: e } = Z(), o = e.socialLinks || [];
374
+ return o.length === 0 ? null : /* @__PURE__ */ i("aside", { className: Re.blogSidebar, children: /* @__PURE__ */ T("div", { className: Re.section, children: [
375
+ /* @__PURE__ */ i("h3", { className: Re.sectionTitle, children: t("ui.connect") }),
376
+ /* @__PURE__ */ i("div", { className: Re.linksList, children: o.map((n, a) => {
377
+ const r = n.icon || an, l = n.target === "_blank";
378
+ return /* @__PURE__ */ T(
351
379
  "a",
352
380
  {
353
- href: a.url,
354
- className: nt.link,
355
- target: a.target || "_blank",
381
+ href: n.url,
382
+ className: Re.link,
383
+ target: n.target || "_blank",
356
384
  rel: l ? "noopener noreferrer" : void 0,
357
385
  children: [
358
- /* @__PURE__ */ t(s, { size: 18, weight: "duotone" }),
359
- /* @__PURE__ */ t("span", { children: a.label })
386
+ /* @__PURE__ */ i(r, { size: 18, weight: "duotone" }),
387
+ /* @__PURE__ */ i("span", { children: n.label })
360
388
  ]
361
389
  },
362
- c
390
+ a
363
391
  );
364
392
  }) })
365
393
  ] }) });
366
394
  }
367
- const Me = "_metadata_bsge0_1", Be = "_author_bsge0_9", Ee = "_date_bsge0_10", _t = {
368
- metadata: Me,
369
- author: Be,
370
- date: Ee
395
+ const qn = "_breadcrumb_rarc4_1", Wn = "_breadcrumbList_rarc4_5", Yn = "_breadcrumbItem_rarc4_15", Un = "_breadcrumbLink_rarc4_21", zn = "_breadcrumbSeparator_rarc4_41", Gn = "_breadcrumbCurrent_rarc4_46", Te = {
396
+ breadcrumb: qn,
397
+ breadcrumbList: Wn,
398
+ breadcrumbItem: Yn,
399
+ breadcrumbLink: Un,
400
+ breadcrumbSeparator: zn,
401
+ breadcrumbCurrent: Gn
371
402
  };
372
- function ft({ date: e, author: n }) {
373
- const { t: o } = A();
374
- return !e && !n ? null : /* @__PURE__ */ d("div", { className: _t.metadata, children: [
375
- n && /* @__PURE__ */ d("span", { className: _t.author, children: [
376
- /* @__PURE__ */ t(Zt, { size: 16, weight: "regular" }),
377
- n
403
+ function Vn({ articleTitle: t, language: e }) {
404
+ const { t: o } = J(), { config: n } = Z(), a = ge(), l = `${n.basePath || ""}/${e}`, c = (u) => {
405
+ u.preventDefault(), window.scrollTo({ top: 0, left: 0, behavior: "auto" }), a(l);
406
+ }, s = (u, d = 60) => u.length <= d ? u : `${u.substring(0, d)}…`;
407
+ return /* @__PURE__ */ i("nav", { className: Te.breadcrumb, "aria-label": "Breadcrumb", children: /* @__PURE__ */ T("ol", { className: Te.breadcrumbList, children: [
408
+ /* @__PURE__ */ i("li", { className: Te.breadcrumbItem, children: /* @__PURE__ */ i(
409
+ "button",
410
+ {
411
+ onClick: c,
412
+ className: Te.breadcrumbLink,
413
+ type: "button",
414
+ children: o("ui.home")
415
+ }
416
+ ) }),
417
+ /* @__PURE__ */ T("li", { className: Te.breadcrumbItem, children: [
418
+ /* @__PURE__ */ i("span", { className: Te.breadcrumbSeparator, children: "/" }),
419
+ /* @__PURE__ */ i("span", { className: Te.breadcrumbCurrent, children: s(t) })
420
+ ] })
421
+ ] }) });
422
+ }
423
+ function ze(t) {
424
+ return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
425
+ }
426
+ var He = { exports: {} }, Fe = { exports: {} }, j = {};
427
+ /** @license React v16.13.1
428
+ * react-is.production.min.js
429
+ *
430
+ * Copyright (c) Facebook, Inc. and its affiliates.
431
+ *
432
+ * This source code is licensed under the MIT license found in the
433
+ * LICENSE file in the root directory of this source tree.
434
+ */
435
+ var Et;
436
+ function Xn() {
437
+ if (Et) return j;
438
+ Et = 1;
439
+ var t = typeof Symbol == "function" && Symbol.for, e = t ? Symbol.for("react.element") : 60103, o = t ? Symbol.for("react.portal") : 60106, n = t ? Symbol.for("react.fragment") : 60107, a = t ? Symbol.for("react.strict_mode") : 60108, r = t ? Symbol.for("react.profiler") : 60114, l = t ? Symbol.for("react.provider") : 60109, c = t ? Symbol.for("react.context") : 60110, s = t ? Symbol.for("react.async_mode") : 60111, u = t ? Symbol.for("react.concurrent_mode") : 60111, d = t ? Symbol.for("react.forward_ref") : 60112, h = t ? Symbol.for("react.suspense") : 60113, f = t ? Symbol.for("react.suspense_list") : 60120, v = t ? Symbol.for("react.memo") : 60115, E = t ? Symbol.for("react.lazy") : 60116, m = t ? Symbol.for("react.block") : 60121, y = t ? Symbol.for("react.fundamental") : 60117, b = t ? Symbol.for("react.responder") : 60118, I = t ? Symbol.for("react.scope") : 60119;
440
+ function N(p) {
441
+ if (typeof p == "object" && p !== null) {
442
+ var R = p.$$typeof;
443
+ switch (R) {
444
+ case e:
445
+ switch (p = p.type, p) {
446
+ case s:
447
+ case u:
448
+ case n:
449
+ case r:
450
+ case a:
451
+ case h:
452
+ return p;
453
+ default:
454
+ switch (p = p && p.$$typeof, p) {
455
+ case c:
456
+ case d:
457
+ case E:
458
+ case v:
459
+ case l:
460
+ return p;
461
+ default:
462
+ return R;
463
+ }
464
+ }
465
+ case o:
466
+ return R;
467
+ }
468
+ }
469
+ }
470
+ function D(p) {
471
+ return N(p) === u;
472
+ }
473
+ return j.AsyncMode = s, j.ConcurrentMode = u, j.ContextConsumer = c, j.ContextProvider = l, j.Element = e, j.ForwardRef = d, j.Fragment = n, j.Lazy = E, j.Memo = v, j.Portal = o, j.Profiler = r, j.StrictMode = a, j.Suspense = h, j.isAsyncMode = function(p) {
474
+ return D(p) || N(p) === s;
475
+ }, j.isConcurrentMode = D, j.isContextConsumer = function(p) {
476
+ return N(p) === c;
477
+ }, j.isContextProvider = function(p) {
478
+ return N(p) === l;
479
+ }, j.isElement = function(p) {
480
+ return typeof p == "object" && p !== null && p.$$typeof === e;
481
+ }, j.isForwardRef = function(p) {
482
+ return N(p) === d;
483
+ }, j.isFragment = function(p) {
484
+ return N(p) === n;
485
+ }, j.isLazy = function(p) {
486
+ return N(p) === E;
487
+ }, j.isMemo = function(p) {
488
+ return N(p) === v;
489
+ }, j.isPortal = function(p) {
490
+ return N(p) === o;
491
+ }, j.isProfiler = function(p) {
492
+ return N(p) === r;
493
+ }, j.isStrictMode = function(p) {
494
+ return N(p) === a;
495
+ }, j.isSuspense = function(p) {
496
+ return N(p) === h;
497
+ }, j.isValidElementType = function(p) {
498
+ return typeof p == "string" || typeof p == "function" || p === n || p === u || p === r || p === a || p === h || p === f || typeof p == "object" && p !== null && (p.$$typeof === E || p.$$typeof === v || p.$$typeof === l || p.$$typeof === c || p.$$typeof === d || p.$$typeof === y || p.$$typeof === b || p.$$typeof === I || p.$$typeof === m);
499
+ }, j.typeOf = N, j;
500
+ }
501
+ var B = {};
502
+ /** @license React v16.13.1
503
+ * react-is.development.js
504
+ *
505
+ * Copyright (c) Facebook, Inc. and its affiliates.
506
+ *
507
+ * This source code is licensed under the MIT license found in the
508
+ * LICENSE file in the root directory of this source tree.
509
+ */
510
+ var Ct;
511
+ function Kn() {
512
+ return Ct || (Ct = 1, process.env.NODE_ENV !== "production" && (function() {
513
+ var t = typeof Symbol == "function" && Symbol.for, e = t ? Symbol.for("react.element") : 60103, o = t ? Symbol.for("react.portal") : 60106, n = t ? Symbol.for("react.fragment") : 60107, a = t ? Symbol.for("react.strict_mode") : 60108, r = t ? Symbol.for("react.profiler") : 60114, l = t ? Symbol.for("react.provider") : 60109, c = t ? Symbol.for("react.context") : 60110, s = t ? Symbol.for("react.async_mode") : 60111, u = t ? Symbol.for("react.concurrent_mode") : 60111, d = t ? Symbol.for("react.forward_ref") : 60112, h = t ? Symbol.for("react.suspense") : 60113, f = t ? Symbol.for("react.suspense_list") : 60120, v = t ? Symbol.for("react.memo") : 60115, E = t ? Symbol.for("react.lazy") : 60116, m = t ? Symbol.for("react.block") : 60121, y = t ? Symbol.for("react.fundamental") : 60117, b = t ? Symbol.for("react.responder") : 60118, I = t ? Symbol.for("react.scope") : 60119;
514
+ function N(w) {
515
+ return typeof w == "string" || typeof w == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
516
+ w === n || w === u || w === r || w === a || w === h || w === f || typeof w == "object" && w !== null && (w.$$typeof === E || w.$$typeof === v || w.$$typeof === l || w.$$typeof === c || w.$$typeof === d || w.$$typeof === y || w.$$typeof === b || w.$$typeof === I || w.$$typeof === m);
517
+ }
518
+ function D(w) {
519
+ if (typeof w == "object" && w !== null) {
520
+ var ee = w.$$typeof;
521
+ switch (ee) {
522
+ case e:
523
+ var be = w.type;
524
+ switch (be) {
525
+ case s:
526
+ case u:
527
+ case n:
528
+ case r:
529
+ case a:
530
+ case h:
531
+ return be;
532
+ default:
533
+ var xe = be && be.$$typeof;
534
+ switch (xe) {
535
+ case c:
536
+ case d:
537
+ case E:
538
+ case v:
539
+ case l:
540
+ return xe;
541
+ default:
542
+ return ee;
543
+ }
544
+ }
545
+ case o:
546
+ return ee;
547
+ }
548
+ }
549
+ }
550
+ var p = s, R = u, G = c, V = l, oe = e, fe = d, ae = n, he = E, _e = v, ce = o, Ce = r, K = a, le = h, ye = !1;
551
+ function Se(w) {
552
+ return ye || (ye = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), g(w) || D(w) === s;
553
+ }
554
+ function g(w) {
555
+ return D(w) === u;
556
+ }
557
+ function S(w) {
558
+ return D(w) === c;
559
+ }
560
+ function M(w) {
561
+ return D(w) === l;
562
+ }
563
+ function $(w) {
564
+ return typeof w == "object" && w !== null && w.$$typeof === e;
565
+ }
566
+ function x(w) {
567
+ return D(w) === d;
568
+ }
569
+ function _(w) {
570
+ return D(w) === n;
571
+ }
572
+ function P(w) {
573
+ return D(w) === E;
574
+ }
575
+ function A(w) {
576
+ return D(w) === v;
577
+ }
578
+ function C(w) {
579
+ return D(w) === o;
580
+ }
581
+ function k(w) {
582
+ return D(w) === r;
583
+ }
584
+ function L(w) {
585
+ return D(w) === a;
586
+ }
587
+ function z(w) {
588
+ return D(w) === h;
589
+ }
590
+ B.AsyncMode = p, B.ConcurrentMode = R, B.ContextConsumer = G, B.ContextProvider = V, B.Element = oe, B.ForwardRef = fe, B.Fragment = ae, B.Lazy = he, B.Memo = _e, B.Portal = ce, B.Profiler = Ce, B.StrictMode = K, B.Suspense = le, B.isAsyncMode = Se, B.isConcurrentMode = g, B.isContextConsumer = S, B.isContextProvider = M, B.isElement = $, B.isForwardRef = x, B.isFragment = _, B.isLazy = P, B.isMemo = A, B.isPortal = C, B.isProfiler = k, B.isStrictMode = L, B.isSuspense = z, B.isValidElementType = N, B.typeOf = D;
591
+ })()), B;
592
+ }
593
+ var St;
594
+ function Xt() {
595
+ return St || (St = 1, process.env.NODE_ENV === "production" ? Fe.exports = Xn() : Fe.exports = Kn()), Fe.exports;
596
+ }
597
+ /*
598
+ object-assign
599
+ (c) Sindre Sorhus
600
+ @license MIT
601
+ */
602
+ var Ve, Pt;
603
+ function Kt() {
604
+ if (Pt) return Ve;
605
+ Pt = 1;
606
+ var t = Object.getOwnPropertySymbols, e = Object.prototype.hasOwnProperty, o = Object.prototype.propertyIsEnumerable;
607
+ function n(r) {
608
+ if (r == null)
609
+ throw new TypeError("Object.assign cannot be called with null or undefined");
610
+ return Object(r);
611
+ }
612
+ function a() {
613
+ try {
614
+ if (!Object.assign)
615
+ return !1;
616
+ var r = new String("abc");
617
+ if (r[5] = "de", Object.getOwnPropertyNames(r)[0] === "5")
618
+ return !1;
619
+ for (var l = {}, c = 0; c < 10; c++)
620
+ l["_" + String.fromCharCode(c)] = c;
621
+ var s = Object.getOwnPropertyNames(l).map(function(d) {
622
+ return l[d];
623
+ });
624
+ if (s.join("") !== "0123456789")
625
+ return !1;
626
+ var u = {};
627
+ return "abcdefghijklmnopqrst".split("").forEach(function(d) {
628
+ u[d] = d;
629
+ }), Object.keys(Object.assign({}, u)).join("") === "abcdefghijklmnopqrst";
630
+ } catch {
631
+ return !1;
632
+ }
633
+ }
634
+ return Ve = a() ? Object.assign : function(r, l) {
635
+ for (var c, s = n(r), u, d = 1; d < arguments.length; d++) {
636
+ c = Object(arguments[d]);
637
+ for (var h in c)
638
+ e.call(c, h) && (s[h] = c[h]);
639
+ if (t) {
640
+ u = t(c);
641
+ for (var f = 0; f < u.length; f++)
642
+ o.call(c, u[f]) && (s[u[f]] = c[u[f]]);
643
+ }
644
+ }
645
+ return s;
646
+ }, Ve;
647
+ }
648
+ var Xe, It;
649
+ function ft() {
650
+ if (It) return Xe;
651
+ It = 1;
652
+ var t = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
653
+ return Xe = t, Xe;
654
+ }
655
+ var Ke, At;
656
+ function Qt() {
657
+ return At || (At = 1, Ke = Function.call.bind(Object.prototype.hasOwnProperty)), Ke;
658
+ }
659
+ var Qe, kt;
660
+ function Qn() {
661
+ if (kt) return Qe;
662
+ kt = 1;
663
+ var t = function() {
664
+ };
665
+ if (process.env.NODE_ENV !== "production") {
666
+ var e = /* @__PURE__ */ ft(), o = {}, n = /* @__PURE__ */ Qt();
667
+ t = function(r) {
668
+ var l = "Warning: " + r;
669
+ typeof console < "u" && console.error(l);
670
+ try {
671
+ throw new Error(l);
672
+ } catch {
673
+ }
674
+ };
675
+ }
676
+ function a(r, l, c, s, u) {
677
+ if (process.env.NODE_ENV !== "production") {
678
+ for (var d in r)
679
+ if (n(r, d)) {
680
+ var h;
681
+ try {
682
+ if (typeof r[d] != "function") {
683
+ var f = Error(
684
+ (s || "React class") + ": " + c + " type `" + d + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof r[d] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
685
+ );
686
+ throw f.name = "Invariant Violation", f;
687
+ }
688
+ h = r[d](l, d, s, c, null, e);
689
+ } catch (E) {
690
+ h = E;
691
+ }
692
+ if (h && !(h instanceof Error) && t(
693
+ (s || "React class") + ": type specification of " + c + " `" + d + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof h + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
694
+ ), h instanceof Error && !(h.message in o)) {
695
+ o[h.message] = !0;
696
+ var v = u ? u() : "";
697
+ t(
698
+ "Failed " + c + " type: " + h.message + (v ?? "")
699
+ );
700
+ }
701
+ }
702
+ }
703
+ }
704
+ return a.resetWarningCache = function() {
705
+ process.env.NODE_ENV !== "production" && (o = {});
706
+ }, Qe = a, Qe;
707
+ }
708
+ var Je, Nt;
709
+ function Jn() {
710
+ if (Nt) return Je;
711
+ Nt = 1;
712
+ var t = Xt(), e = Kt(), o = /* @__PURE__ */ ft(), n = /* @__PURE__ */ Qt(), a = /* @__PURE__ */ Qn(), r = function() {
713
+ };
714
+ process.env.NODE_ENV !== "production" && (r = function(c) {
715
+ var s = "Warning: " + c;
716
+ typeof console < "u" && console.error(s);
717
+ try {
718
+ throw new Error(s);
719
+ } catch {
720
+ }
721
+ });
722
+ function l() {
723
+ return null;
724
+ }
725
+ return Je = function(c, s) {
726
+ var u = typeof Symbol == "function" && Symbol.iterator, d = "@@iterator";
727
+ function h(g) {
728
+ var S = g && (u && g[u] || g[d]);
729
+ if (typeof S == "function")
730
+ return S;
731
+ }
732
+ var f = "<<anonymous>>", v = {
733
+ array: b("array"),
734
+ bigint: b("bigint"),
735
+ bool: b("boolean"),
736
+ func: b("function"),
737
+ number: b("number"),
738
+ object: b("object"),
739
+ string: b("string"),
740
+ symbol: b("symbol"),
741
+ any: I(),
742
+ arrayOf: N,
743
+ element: D(),
744
+ elementType: p(),
745
+ instanceOf: R,
746
+ node: fe(),
747
+ objectOf: V,
748
+ oneOf: G,
749
+ oneOfType: oe,
750
+ shape: he,
751
+ exact: _e
752
+ };
753
+ function E(g, S) {
754
+ return g === S ? g !== 0 || 1 / g === 1 / S : g !== g && S !== S;
755
+ }
756
+ function m(g, S) {
757
+ this.message = g, this.data = S && typeof S == "object" ? S : {}, this.stack = "";
758
+ }
759
+ m.prototype = Error.prototype;
760
+ function y(g) {
761
+ if (process.env.NODE_ENV !== "production")
762
+ var S = {}, M = 0;
763
+ function $(_, P, A, C, k, L, z) {
764
+ if (C = C || f, L = L || A, z !== o) {
765
+ if (s) {
766
+ var w = new Error(
767
+ "Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
768
+ );
769
+ throw w.name = "Invariant Violation", w;
770
+ } else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
771
+ var ee = C + ":" + A;
772
+ !S[ee] && // Avoid spamming the console because they are often not actionable except for lib authors
773
+ M < 3 && (r(
774
+ "You are manually calling a React.PropTypes validation function for the `" + L + "` prop on `" + C + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
775
+ ), S[ee] = !0, M++);
776
+ }
777
+ }
778
+ return P[A] == null ? _ ? P[A] === null ? new m("The " + k + " `" + L + "` is marked as required " + ("in `" + C + "`, but its value is `null`.")) : new m("The " + k + " `" + L + "` is marked as required in " + ("`" + C + "`, but its value is `undefined`.")) : null : g(P, A, C, k, L);
779
+ }
780
+ var x = $.bind(null, !1);
781
+ return x.isRequired = $.bind(null, !0), x;
782
+ }
783
+ function b(g) {
784
+ function S(M, $, x, _, P, A) {
785
+ var C = M[$], k = K(C);
786
+ if (k !== g) {
787
+ var L = le(C);
788
+ return new m(
789
+ "Invalid " + _ + " `" + P + "` of type " + ("`" + L + "` supplied to `" + x + "`, expected ") + ("`" + g + "`."),
790
+ { expectedType: g }
791
+ );
792
+ }
793
+ return null;
794
+ }
795
+ return y(S);
796
+ }
797
+ function I() {
798
+ return y(l);
799
+ }
800
+ function N(g) {
801
+ function S(M, $, x, _, P) {
802
+ if (typeof g != "function")
803
+ return new m("Property `" + P + "` of component `" + x + "` has invalid PropType notation inside arrayOf.");
804
+ var A = M[$];
805
+ if (!Array.isArray(A)) {
806
+ var C = K(A);
807
+ return new m("Invalid " + _ + " `" + P + "` of type " + ("`" + C + "` supplied to `" + x + "`, expected an array."));
808
+ }
809
+ for (var k = 0; k < A.length; k++) {
810
+ var L = g(A, k, x, _, P + "[" + k + "]", o);
811
+ if (L instanceof Error)
812
+ return L;
813
+ }
814
+ return null;
815
+ }
816
+ return y(S);
817
+ }
818
+ function D() {
819
+ function g(S, M, $, x, _) {
820
+ var P = S[M];
821
+ if (!c(P)) {
822
+ var A = K(P);
823
+ return new m("Invalid " + x + " `" + _ + "` of type " + ("`" + A + "` supplied to `" + $ + "`, expected a single ReactElement."));
824
+ }
825
+ return null;
826
+ }
827
+ return y(g);
828
+ }
829
+ function p() {
830
+ function g(S, M, $, x, _) {
831
+ var P = S[M];
832
+ if (!t.isValidElementType(P)) {
833
+ var A = K(P);
834
+ return new m("Invalid " + x + " `" + _ + "` of type " + ("`" + A + "` supplied to `" + $ + "`, expected a single ReactElement type."));
835
+ }
836
+ return null;
837
+ }
838
+ return y(g);
839
+ }
840
+ function R(g) {
841
+ function S(M, $, x, _, P) {
842
+ if (!(M[$] instanceof g)) {
843
+ var A = g.name || f, C = Se(M[$]);
844
+ return new m("Invalid " + _ + " `" + P + "` of type " + ("`" + C + "` supplied to `" + x + "`, expected ") + ("instance of `" + A + "`."));
845
+ }
846
+ return null;
847
+ }
848
+ return y(S);
849
+ }
850
+ function G(g) {
851
+ if (!Array.isArray(g))
852
+ return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? r(
853
+ "Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
854
+ ) : r("Invalid argument supplied to oneOf, expected an array.")), l;
855
+ function S(M, $, x, _, P) {
856
+ for (var A = M[$], C = 0; C < g.length; C++)
857
+ if (E(A, g[C]))
858
+ return null;
859
+ var k = JSON.stringify(g, function(z, w) {
860
+ var ee = le(w);
861
+ return ee === "symbol" ? String(w) : w;
862
+ });
863
+ return new m("Invalid " + _ + " `" + P + "` of value `" + String(A) + "` " + ("supplied to `" + x + "`, expected one of " + k + "."));
864
+ }
865
+ return y(S);
866
+ }
867
+ function V(g) {
868
+ function S(M, $, x, _, P) {
869
+ if (typeof g != "function")
870
+ return new m("Property `" + P + "` of component `" + x + "` has invalid PropType notation inside objectOf.");
871
+ var A = M[$], C = K(A);
872
+ if (C !== "object")
873
+ return new m("Invalid " + _ + " `" + P + "` of type " + ("`" + C + "` supplied to `" + x + "`, expected an object."));
874
+ for (var k in A)
875
+ if (n(A, k)) {
876
+ var L = g(A, k, x, _, P + "." + k, o);
877
+ if (L instanceof Error)
878
+ return L;
879
+ }
880
+ return null;
881
+ }
882
+ return y(S);
883
+ }
884
+ function oe(g) {
885
+ if (!Array.isArray(g))
886
+ return process.env.NODE_ENV !== "production" && r("Invalid argument supplied to oneOfType, expected an instance of array."), l;
887
+ for (var S = 0; S < g.length; S++) {
888
+ var M = g[S];
889
+ if (typeof M != "function")
890
+ return r(
891
+ "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + ye(M) + " at index " + S + "."
892
+ ), l;
893
+ }
894
+ function $(x, _, P, A, C) {
895
+ for (var k = [], L = 0; L < g.length; L++) {
896
+ var z = g[L], w = z(x, _, P, A, C, o);
897
+ if (w == null)
898
+ return null;
899
+ w.data && n(w.data, "expectedType") && k.push(w.data.expectedType);
900
+ }
901
+ var ee = k.length > 0 ? ", expected one of type [" + k.join(", ") + "]" : "";
902
+ return new m("Invalid " + A + " `" + C + "` supplied to " + ("`" + P + "`" + ee + "."));
903
+ }
904
+ return y($);
905
+ }
906
+ function fe() {
907
+ function g(S, M, $, x, _) {
908
+ return ce(S[M]) ? null : new m("Invalid " + x + " `" + _ + "` supplied to " + ("`" + $ + "`, expected a ReactNode."));
909
+ }
910
+ return y(g);
911
+ }
912
+ function ae(g, S, M, $, x) {
913
+ return new m(
914
+ (g || "React class") + ": " + S + " type `" + M + "." + $ + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + x + "`."
915
+ );
916
+ }
917
+ function he(g) {
918
+ function S(M, $, x, _, P) {
919
+ var A = M[$], C = K(A);
920
+ if (C !== "object")
921
+ return new m("Invalid " + _ + " `" + P + "` of type `" + C + "` " + ("supplied to `" + x + "`, expected `object`."));
922
+ for (var k in g) {
923
+ var L = g[k];
924
+ if (typeof L != "function")
925
+ return ae(x, _, P, k, le(L));
926
+ var z = L(A, k, x, _, P + "." + k, o);
927
+ if (z)
928
+ return z;
929
+ }
930
+ return null;
931
+ }
932
+ return y(S);
933
+ }
934
+ function _e(g) {
935
+ function S(M, $, x, _, P) {
936
+ var A = M[$], C = K(A);
937
+ if (C !== "object")
938
+ return new m("Invalid " + _ + " `" + P + "` of type `" + C + "` " + ("supplied to `" + x + "`, expected `object`."));
939
+ var k = e({}, M[$], g);
940
+ for (var L in k) {
941
+ var z = g[L];
942
+ if (n(g, L) && typeof z != "function")
943
+ return ae(x, _, P, L, le(z));
944
+ if (!z)
945
+ return new m(
946
+ "Invalid " + _ + " `" + P + "` key `" + L + "` supplied to `" + x + "`.\nBad object: " + JSON.stringify(M[$], null, " ") + `
947
+ Valid keys: ` + JSON.stringify(Object.keys(g), null, " ")
948
+ );
949
+ var w = z(A, L, x, _, P + "." + L, o);
950
+ if (w)
951
+ return w;
952
+ }
953
+ return null;
954
+ }
955
+ return y(S);
956
+ }
957
+ function ce(g) {
958
+ switch (typeof g) {
959
+ case "number":
960
+ case "string":
961
+ case "undefined":
962
+ return !0;
963
+ case "boolean":
964
+ return !g;
965
+ case "object":
966
+ if (Array.isArray(g))
967
+ return g.every(ce);
968
+ if (g === null || c(g))
969
+ return !0;
970
+ var S = h(g);
971
+ if (S) {
972
+ var M = S.call(g), $;
973
+ if (S !== g.entries) {
974
+ for (; !($ = M.next()).done; )
975
+ if (!ce($.value))
976
+ return !1;
977
+ } else
978
+ for (; !($ = M.next()).done; ) {
979
+ var x = $.value;
980
+ if (x && !ce(x[1]))
981
+ return !1;
982
+ }
983
+ } else
984
+ return !1;
985
+ return !0;
986
+ default:
987
+ return !1;
988
+ }
989
+ }
990
+ function Ce(g, S) {
991
+ return g === "symbol" ? !0 : S ? S["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && S instanceof Symbol : !1;
992
+ }
993
+ function K(g) {
994
+ var S = typeof g;
995
+ return Array.isArray(g) ? "array" : g instanceof RegExp ? "object" : Ce(S, g) ? "symbol" : S;
996
+ }
997
+ function le(g) {
998
+ if (typeof g > "u" || g === null)
999
+ return "" + g;
1000
+ var S = K(g);
1001
+ if (S === "object") {
1002
+ if (g instanceof Date)
1003
+ return "date";
1004
+ if (g instanceof RegExp)
1005
+ return "regexp";
1006
+ }
1007
+ return S;
1008
+ }
1009
+ function ye(g) {
1010
+ var S = le(g);
1011
+ switch (S) {
1012
+ case "array":
1013
+ case "object":
1014
+ return "an " + S;
1015
+ case "boolean":
1016
+ case "date":
1017
+ case "regexp":
1018
+ return "a " + S;
1019
+ default:
1020
+ return S;
1021
+ }
1022
+ }
1023
+ function Se(g) {
1024
+ return !g.constructor || !g.constructor.name ? f : g.constructor.name;
1025
+ }
1026
+ return v.checkPropTypes = a, v.resetWarningCache = a.resetWarningCache, v.PropTypes = v, v;
1027
+ }, Je;
1028
+ }
1029
+ var Ze, xt;
1030
+ function Zn() {
1031
+ if (xt) return Ze;
1032
+ xt = 1;
1033
+ var t = /* @__PURE__ */ ft();
1034
+ function e() {
1035
+ }
1036
+ function o() {
1037
+ }
1038
+ return o.resetWarningCache = e, Ze = function() {
1039
+ function n(l, c, s, u, d, h) {
1040
+ if (h !== t) {
1041
+ var f = new Error(
1042
+ "Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types"
1043
+ );
1044
+ throw f.name = "Invariant Violation", f;
1045
+ }
1046
+ }
1047
+ n.isRequired = n;
1048
+ function a() {
1049
+ return n;
1050
+ }
1051
+ var r = {
1052
+ array: n,
1053
+ bigint: n,
1054
+ bool: n,
1055
+ func: n,
1056
+ number: n,
1057
+ object: n,
1058
+ string: n,
1059
+ symbol: n,
1060
+ any: n,
1061
+ arrayOf: a,
1062
+ element: n,
1063
+ elementType: n,
1064
+ instanceOf: a,
1065
+ node: n,
1066
+ objectOf: a,
1067
+ oneOf: a,
1068
+ oneOfType: a,
1069
+ shape: a,
1070
+ exact: a,
1071
+ checkPropTypes: o,
1072
+ resetWarningCache: e
1073
+ };
1074
+ return r.PropTypes = r, r;
1075
+ }, Ze;
1076
+ }
1077
+ var Ot;
1078
+ function er() {
1079
+ if (Ot) return He.exports;
1080
+ if (Ot = 1, process.env.NODE_ENV !== "production") {
1081
+ var t = Xt(), e = !0;
1082
+ He.exports = /* @__PURE__ */ Jn()(t.isElement, e);
1083
+ } else
1084
+ He.exports = /* @__PURE__ */ Zn()();
1085
+ return He.exports;
1086
+ }
1087
+ var tr = /* @__PURE__ */ er();
1088
+ const q = /* @__PURE__ */ ze(tr);
1089
+ var et, Rt;
1090
+ function nr() {
1091
+ if (Rt) return et;
1092
+ Rt = 1;
1093
+ function t(c) {
1094
+ return c && typeof c == "object" && "default" in c ? c.default : c;
1095
+ }
1096
+ var e = ke, o = t(e);
1097
+ function n(c, s, u) {
1098
+ return s in c ? Object.defineProperty(c, s, {
1099
+ value: u,
1100
+ enumerable: !0,
1101
+ configurable: !0,
1102
+ writable: !0
1103
+ }) : c[s] = u, c;
1104
+ }
1105
+ function a(c, s) {
1106
+ c.prototype = Object.create(s.prototype), c.prototype.constructor = c, c.__proto__ = s;
1107
+ }
1108
+ var r = !!(typeof window < "u" && window.document && window.document.createElement);
1109
+ function l(c, s, u) {
1110
+ if (typeof c != "function")
1111
+ throw new Error("Expected reducePropsToState to be a function.");
1112
+ if (typeof s != "function")
1113
+ throw new Error("Expected handleStateChangeOnClient to be a function.");
1114
+ if (typeof u < "u" && typeof u != "function")
1115
+ throw new Error("Expected mapStateOnServer to either be undefined or a function.");
1116
+ function d(h) {
1117
+ return h.displayName || h.name || "Component";
1118
+ }
1119
+ return function(f) {
1120
+ if (typeof f != "function")
1121
+ throw new Error("Expected WrappedComponent to be a React component.");
1122
+ var v = [], E;
1123
+ function m() {
1124
+ E = c(v.map(function(b) {
1125
+ return b.props;
1126
+ })), y.canUseDOM ? s(E) : u && (E = u(E));
1127
+ }
1128
+ var y = /* @__PURE__ */ (function(b) {
1129
+ a(I, b);
1130
+ function I() {
1131
+ return b.apply(this, arguments) || this;
1132
+ }
1133
+ I.peek = function() {
1134
+ return E;
1135
+ }, I.rewind = function() {
1136
+ if (I.canUseDOM)
1137
+ throw new Error("You may only call rewind() on the server. Call peek() to read the current state.");
1138
+ var p = E;
1139
+ return E = void 0, v = [], p;
1140
+ };
1141
+ var N = I.prototype;
1142
+ return N.UNSAFE_componentWillMount = function() {
1143
+ v.push(this), m();
1144
+ }, N.componentDidUpdate = function() {
1145
+ m();
1146
+ }, N.componentWillUnmount = function() {
1147
+ var p = v.indexOf(this);
1148
+ v.splice(p, 1), m();
1149
+ }, N.render = function() {
1150
+ return o.createElement(f, this.props);
1151
+ }, I;
1152
+ })(e.PureComponent);
1153
+ return n(y, "displayName", "SideEffect(" + d(f) + ")"), n(y, "canUseDOM", r), y;
1154
+ };
1155
+ }
1156
+ return et = l, et;
1157
+ }
1158
+ var rr = nr();
1159
+ const or = /* @__PURE__ */ ze(rr);
1160
+ var tt, $t;
1161
+ function ar() {
1162
+ if ($t) return tt;
1163
+ $t = 1;
1164
+ var t = typeof Element < "u", e = typeof Map == "function", o = typeof Set == "function", n = typeof ArrayBuffer == "function" && !!ArrayBuffer.isView;
1165
+ function a(r, l) {
1166
+ if (r === l) return !0;
1167
+ if (r && l && typeof r == "object" && typeof l == "object") {
1168
+ if (r.constructor !== l.constructor) return !1;
1169
+ var c, s, u;
1170
+ if (Array.isArray(r)) {
1171
+ if (c = r.length, c != l.length) return !1;
1172
+ for (s = c; s-- !== 0; )
1173
+ if (!a(r[s], l[s])) return !1;
1174
+ return !0;
1175
+ }
1176
+ var d;
1177
+ if (e && r instanceof Map && l instanceof Map) {
1178
+ if (r.size !== l.size) return !1;
1179
+ for (d = r.entries(); !(s = d.next()).done; )
1180
+ if (!l.has(s.value[0])) return !1;
1181
+ for (d = r.entries(); !(s = d.next()).done; )
1182
+ if (!a(s.value[1], l.get(s.value[0]))) return !1;
1183
+ return !0;
1184
+ }
1185
+ if (o && r instanceof Set && l instanceof Set) {
1186
+ if (r.size !== l.size) return !1;
1187
+ for (d = r.entries(); !(s = d.next()).done; )
1188
+ if (!l.has(s.value[0])) return !1;
1189
+ return !0;
1190
+ }
1191
+ if (n && ArrayBuffer.isView(r) && ArrayBuffer.isView(l)) {
1192
+ if (c = r.length, c != l.length) return !1;
1193
+ for (s = c; s-- !== 0; )
1194
+ if (r[s] !== l[s]) return !1;
1195
+ return !0;
1196
+ }
1197
+ if (r.constructor === RegExp) return r.source === l.source && r.flags === l.flags;
1198
+ if (r.valueOf !== Object.prototype.valueOf && typeof r.valueOf == "function" && typeof l.valueOf == "function") return r.valueOf() === l.valueOf();
1199
+ if (r.toString !== Object.prototype.toString && typeof r.toString == "function" && typeof l.toString == "function") return r.toString() === l.toString();
1200
+ if (u = Object.keys(r), c = u.length, c !== Object.keys(l).length) return !1;
1201
+ for (s = c; s-- !== 0; )
1202
+ if (!Object.prototype.hasOwnProperty.call(l, u[s])) return !1;
1203
+ if (t && r instanceof Element) return !1;
1204
+ for (s = c; s-- !== 0; )
1205
+ if (!((u[s] === "_owner" || u[s] === "__v" || u[s] === "__o") && r.$$typeof) && !a(r[u[s]], l[u[s]]))
1206
+ return !1;
1207
+ return !0;
1208
+ }
1209
+ return r !== r && l !== l;
1210
+ }
1211
+ return tt = function(l, c) {
1212
+ try {
1213
+ return a(l, c);
1214
+ } catch (s) {
1215
+ if ((s.message || "").match(/stack|recursion/i))
1216
+ return console.warn("react-fast-compare cannot handle circular refs"), !1;
1217
+ throw s;
1218
+ }
1219
+ }, tt;
1220
+ }
1221
+ var sr = ar();
1222
+ const ir = /* @__PURE__ */ ze(sr);
1223
+ var cr = Kt();
1224
+ const lr = /* @__PURE__ */ ze(cr);
1225
+ var we = {
1226
+ BODY: "bodyAttributes",
1227
+ HTML: "htmlAttributes",
1228
+ TITLE: "titleAttributes"
1229
+ }, O = {
1230
+ BASE: "base",
1231
+ BODY: "body",
1232
+ HEAD: "head",
1233
+ HTML: "html",
1234
+ LINK: "link",
1235
+ META: "meta",
1236
+ NOSCRIPT: "noscript",
1237
+ SCRIPT: "script",
1238
+ STYLE: "style",
1239
+ TITLE: "title"
1240
+ }, Lt = Object.keys(O).map(function(t) {
1241
+ return O[t];
1242
+ }), W = {
1243
+ CHARSET: "charset",
1244
+ CSS_TEXT: "cssText",
1245
+ HREF: "href",
1246
+ HTTPEQUIV: "http-equiv",
1247
+ INNER_HTML: "innerHTML",
1248
+ ITEM_PROP: "itemprop",
1249
+ NAME: "name",
1250
+ PROPERTY: "property",
1251
+ REL: "rel",
1252
+ SRC: "src",
1253
+ TARGET: "target"
1254
+ }, We = {
1255
+ accesskey: "accessKey",
1256
+ charset: "charSet",
1257
+ class: "className",
1258
+ contenteditable: "contentEditable",
1259
+ contextmenu: "contextMenu",
1260
+ "http-equiv": "httpEquiv",
1261
+ itemprop: "itemProp",
1262
+ tabindex: "tabIndex"
1263
+ }, je = {
1264
+ DEFAULT_TITLE: "defaultTitle",
1265
+ DEFER: "defer",
1266
+ ENCODE_SPECIAL_CHARACTERS: "encodeSpecialCharacters",
1267
+ ON_CHANGE_CLIENT_STATE: "onChangeClientState",
1268
+ TITLE_TEMPLATE: "titleTemplate"
1269
+ }, ur = Object.keys(We).reduce(function(t, e) {
1270
+ return t[We[e]] = e, t;
1271
+ }, {}), dr = [O.NOSCRIPT, O.SCRIPT, O.STYLE], ie = "data-react-helmet", fr = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
1272
+ return typeof t;
1273
+ } : function(t) {
1274
+ return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
1275
+ }, hr = function(t, e) {
1276
+ if (!(t instanceof e))
1277
+ throw new TypeError("Cannot call a class as a function");
1278
+ }, pr = /* @__PURE__ */ (function() {
1279
+ function t(e, o) {
1280
+ for (var n = 0; n < o.length; n++) {
1281
+ var a = o[n];
1282
+ a.enumerable = a.enumerable || !1, a.configurable = !0, "value" in a && (a.writable = !0), Object.defineProperty(e, a.key, a);
1283
+ }
1284
+ }
1285
+ return function(e, o, n) {
1286
+ return o && t(e.prototype, o), n && t(e, n), e;
1287
+ };
1288
+ })(), re = Object.assign || function(t) {
1289
+ for (var e = 1; e < arguments.length; e++) {
1290
+ var o = arguments[e];
1291
+ for (var n in o)
1292
+ Object.prototype.hasOwnProperty.call(o, n) && (t[n] = o[n]);
1293
+ }
1294
+ return t;
1295
+ }, mr = function(t, e) {
1296
+ if (typeof e != "function" && e !== null)
1297
+ throw new TypeError("Super expression must either be null or a function, not " + typeof e);
1298
+ t.prototype = Object.create(e && e.prototype, {
1299
+ constructor: {
1300
+ value: t,
1301
+ enumerable: !1,
1302
+ writable: !0,
1303
+ configurable: !0
1304
+ }
1305
+ }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e);
1306
+ }, Mt = function(t, e) {
1307
+ var o = {};
1308
+ for (var n in t)
1309
+ e.indexOf(n) >= 0 || Object.prototype.hasOwnProperty.call(t, n) && (o[n] = t[n]);
1310
+ return o;
1311
+ }, vr = function(t, e) {
1312
+ if (!t)
1313
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
1314
+ return e && (typeof e == "object" || typeof e == "function") ? e : t;
1315
+ }, at = function(e) {
1316
+ var o = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0;
1317
+ return o === !1 ? String(e) : String(e).replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#x27;");
1318
+ }, gr = function(e) {
1319
+ var o = Ne(e, O.TITLE), n = Ne(e, je.TITLE_TEMPLATE);
1320
+ if (n && o)
1321
+ return n.replace(/%s/g, function() {
1322
+ return Array.isArray(o) ? o.join("") : o;
1323
+ });
1324
+ var a = Ne(e, je.DEFAULT_TITLE);
1325
+ return o || a || void 0;
1326
+ }, _r = function(e) {
1327
+ return Ne(e, je.ON_CHANGE_CLIENT_STATE) || function() {
1328
+ };
1329
+ }, nt = function(e, o) {
1330
+ return o.filter(function(n) {
1331
+ return typeof n[e] < "u";
1332
+ }).map(function(n) {
1333
+ return n[e];
1334
+ }).reduce(function(n, a) {
1335
+ return re({}, n, a);
1336
+ }, {});
1337
+ }, yr = function(e, o) {
1338
+ return o.filter(function(n) {
1339
+ return typeof n[O.BASE] < "u";
1340
+ }).map(function(n) {
1341
+ return n[O.BASE];
1342
+ }).reverse().reduce(function(n, a) {
1343
+ if (!n.length)
1344
+ for (var r = Object.keys(a), l = 0; l < r.length; l++) {
1345
+ var c = r[l], s = c.toLowerCase();
1346
+ if (e.indexOf(s) !== -1 && a[s])
1347
+ return n.concat(a);
1348
+ }
1349
+ return n;
1350
+ }, []);
1351
+ }, $e = function(e, o, n) {
1352
+ var a = {};
1353
+ return n.filter(function(r) {
1354
+ return Array.isArray(r[e]) ? !0 : (typeof r[e] < "u" && it("Helmet: " + e + ' should be of type "Array". Instead found type "' + fr(r[e]) + '"'), !1);
1355
+ }).map(function(r) {
1356
+ return r[e];
1357
+ }).reverse().reduce(function(r, l) {
1358
+ var c = {};
1359
+ l.filter(function(f) {
1360
+ for (var v = void 0, E = Object.keys(f), m = 0; m < E.length; m++) {
1361
+ var y = E[m], b = y.toLowerCase();
1362
+ o.indexOf(b) !== -1 && !(v === W.REL && f[v].toLowerCase() === "canonical") && !(b === W.REL && f[b].toLowerCase() === "stylesheet") && (v = b), o.indexOf(y) !== -1 && (y === W.INNER_HTML || y === W.CSS_TEXT || y === W.ITEM_PROP) && (v = y);
1363
+ }
1364
+ if (!v || !f[v])
1365
+ return !1;
1366
+ var I = f[v].toLowerCase();
1367
+ return a[v] || (a[v] = {}), c[v] || (c[v] = {}), a[v][I] ? !1 : (c[v][I] = !0, !0);
1368
+ }).reverse().forEach(function(f) {
1369
+ return r.push(f);
1370
+ });
1371
+ for (var s = Object.keys(c), u = 0; u < s.length; u++) {
1372
+ var d = s[u], h = lr({}, a[d], c[d]);
1373
+ a[d] = h;
1374
+ }
1375
+ return r;
1376
+ }, []).reverse();
1377
+ }, Ne = function(e, o) {
1378
+ for (var n = e.length - 1; n >= 0; n--) {
1379
+ var a = e[n];
1380
+ if (a.hasOwnProperty(o))
1381
+ return a[o];
1382
+ }
1383
+ return null;
1384
+ }, br = function(e) {
1385
+ return {
1386
+ baseTag: yr([W.HREF, W.TARGET], e),
1387
+ bodyAttributes: nt(we.BODY, e),
1388
+ defer: Ne(e, je.DEFER),
1389
+ encode: Ne(e, je.ENCODE_SPECIAL_CHARACTERS),
1390
+ htmlAttributes: nt(we.HTML, e),
1391
+ linkTags: $e(O.LINK, [W.REL, W.HREF], e),
1392
+ metaTags: $e(O.META, [W.NAME, W.CHARSET, W.HTTPEQUIV, W.PROPERTY, W.ITEM_PROP], e),
1393
+ noscriptTags: $e(O.NOSCRIPT, [W.INNER_HTML], e),
1394
+ onChangeClientState: _r(e),
1395
+ scriptTags: $e(O.SCRIPT, [W.SRC, W.INNER_HTML], e),
1396
+ styleTags: $e(O.STYLE, [W.CSS_TEXT], e),
1397
+ title: gr(e),
1398
+ titleAttributes: nt(we.TITLE, e)
1399
+ };
1400
+ }, st = (function() {
1401
+ var t = Date.now();
1402
+ return function(e) {
1403
+ var o = Date.now();
1404
+ o - t > 16 ? (t = o, e(o)) : setTimeout(function() {
1405
+ st(e);
1406
+ }, 0);
1407
+ };
1408
+ })(), Dt = function(e) {
1409
+ return clearTimeout(e);
1410
+ }, Tr = typeof window < "u" ? window.requestAnimationFrame && window.requestAnimationFrame.bind(window) || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || st : global.requestAnimationFrame || st, wr = typeof window < "u" ? window.cancelAnimationFrame || window.webkitCancelAnimationFrame || window.mozCancelAnimationFrame || Dt : global.cancelAnimationFrame || Dt, it = function(e) {
1411
+ return console && typeof console.warn == "function" && console.warn(e);
1412
+ }, Le = null, Er = function(e) {
1413
+ Le && wr(Le), e.defer ? Le = Tr(function() {
1414
+ jt(e, function() {
1415
+ Le = null;
1416
+ });
1417
+ }) : (jt(e), Le = null);
1418
+ }, jt = function(e, o) {
1419
+ var n = e.baseTag, a = e.bodyAttributes, r = e.htmlAttributes, l = e.linkTags, c = e.metaTags, s = e.noscriptTags, u = e.onChangeClientState, d = e.scriptTags, h = e.styleTags, f = e.title, v = e.titleAttributes;
1420
+ ct(O.BODY, a), ct(O.HTML, r), Cr(f, v);
1421
+ var E = {
1422
+ baseTag: Pe(O.BASE, n),
1423
+ linkTags: Pe(O.LINK, l),
1424
+ metaTags: Pe(O.META, c),
1425
+ noscriptTags: Pe(O.NOSCRIPT, s),
1426
+ scriptTags: Pe(O.SCRIPT, d),
1427
+ styleTags: Pe(O.STYLE, h)
1428
+ }, m = {}, y = {};
1429
+ Object.keys(E).forEach(function(b) {
1430
+ var I = E[b], N = I.newTags, D = I.oldTags;
1431
+ N.length && (m[b] = N), D.length && (y[b] = E[b].oldTags);
1432
+ }), o && o(), u(e, m, y);
1433
+ }, Jt = function(e) {
1434
+ return Array.isArray(e) ? e.join("") : e;
1435
+ }, Cr = function(e, o) {
1436
+ typeof e < "u" && document.title !== e && (document.title = Jt(e)), ct(O.TITLE, o);
1437
+ }, ct = function(e, o) {
1438
+ var n = document.getElementsByTagName(e)[0];
1439
+ if (n) {
1440
+ for (var a = n.getAttribute(ie), r = a ? a.split(",") : [], l = [].concat(r), c = Object.keys(o), s = 0; s < c.length; s++) {
1441
+ var u = c[s], d = o[u] || "";
1442
+ n.getAttribute(u) !== d && n.setAttribute(u, d), r.indexOf(u) === -1 && r.push(u);
1443
+ var h = l.indexOf(u);
1444
+ h !== -1 && l.splice(h, 1);
1445
+ }
1446
+ for (var f = l.length - 1; f >= 0; f--)
1447
+ n.removeAttribute(l[f]);
1448
+ r.length === l.length ? n.removeAttribute(ie) : n.getAttribute(ie) !== c.join(",") && n.setAttribute(ie, c.join(","));
1449
+ }
1450
+ }, Pe = function(e, o) {
1451
+ var n = document.head || document.querySelector(O.HEAD), a = n.querySelectorAll(e + "[" + ie + "]"), r = Array.prototype.slice.call(a), l = [], c = void 0;
1452
+ return o && o.length && o.forEach(function(s) {
1453
+ var u = document.createElement(e);
1454
+ for (var d in s)
1455
+ if (s.hasOwnProperty(d))
1456
+ if (d === W.INNER_HTML)
1457
+ u.innerHTML = s.innerHTML;
1458
+ else if (d === W.CSS_TEXT)
1459
+ u.styleSheet ? u.styleSheet.cssText = s.cssText : u.appendChild(document.createTextNode(s.cssText));
1460
+ else {
1461
+ var h = typeof s[d] > "u" ? "" : s[d];
1462
+ u.setAttribute(d, h);
1463
+ }
1464
+ u.setAttribute(ie, "true"), r.some(function(f, v) {
1465
+ return c = v, u.isEqualNode(f);
1466
+ }) ? r.splice(c, 1) : l.push(u);
1467
+ }), r.forEach(function(s) {
1468
+ return s.parentNode.removeChild(s);
1469
+ }), l.forEach(function(s) {
1470
+ return n.appendChild(s);
1471
+ }), {
1472
+ oldTags: r,
1473
+ newTags: l
1474
+ };
1475
+ }, Zt = function(e) {
1476
+ return Object.keys(e).reduce(function(o, n) {
1477
+ var a = typeof e[n] < "u" ? n + '="' + e[n] + '"' : "" + n;
1478
+ return o ? o + " " + a : a;
1479
+ }, "");
1480
+ }, Sr = function(e, o, n, a) {
1481
+ var r = Zt(n), l = Jt(o);
1482
+ return r ? "<" + e + " " + ie + '="true" ' + r + ">" + at(l, a) + "</" + e + ">" : "<" + e + " " + ie + '="true">' + at(l, a) + "</" + e + ">";
1483
+ }, Pr = function(e, o, n) {
1484
+ return o.reduce(function(a, r) {
1485
+ var l = Object.keys(r).filter(function(u) {
1486
+ return !(u === W.INNER_HTML || u === W.CSS_TEXT);
1487
+ }).reduce(function(u, d) {
1488
+ var h = typeof r[d] > "u" ? d : d + '="' + at(r[d], n) + '"';
1489
+ return u ? u + " " + h : h;
1490
+ }, ""), c = r.innerHTML || r.cssText || "", s = dr.indexOf(e) === -1;
1491
+ return a + "<" + e + " " + ie + '="true" ' + l + (s ? "/>" : ">" + c + "</" + e + ">");
1492
+ }, "");
1493
+ }, en = function(e) {
1494
+ var o = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
1495
+ return Object.keys(e).reduce(function(n, a) {
1496
+ return n[We[a] || a] = e[a], n;
1497
+ }, o);
1498
+ }, Ir = function(e) {
1499
+ var o = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
1500
+ return Object.keys(e).reduce(function(n, a) {
1501
+ return n[ur[a] || a] = e[a], n;
1502
+ }, o);
1503
+ }, Ar = function(e, o, n) {
1504
+ var a, r = (a = {
1505
+ key: o
1506
+ }, a[ie] = !0, a), l = en(n, r);
1507
+ return [ke.createElement(O.TITLE, l, o)];
1508
+ }, kr = function(e, o) {
1509
+ return o.map(function(n, a) {
1510
+ var r, l = (r = {
1511
+ key: a
1512
+ }, r[ie] = !0, r);
1513
+ return Object.keys(n).forEach(function(c) {
1514
+ var s = We[c] || c;
1515
+ if (s === W.INNER_HTML || s === W.CSS_TEXT) {
1516
+ var u = n.innerHTML || n.cssText;
1517
+ l.dangerouslySetInnerHTML = { __html: u };
1518
+ } else
1519
+ l[s] = n[c];
1520
+ }), ke.createElement(e, l);
1521
+ });
1522
+ }, ue = function(e, o, n) {
1523
+ switch (e) {
1524
+ case O.TITLE:
1525
+ return {
1526
+ toComponent: function() {
1527
+ return Ar(e, o.title, o.titleAttributes);
1528
+ },
1529
+ toString: function() {
1530
+ return Sr(e, o.title, o.titleAttributes, n);
1531
+ }
1532
+ };
1533
+ case we.BODY:
1534
+ case we.HTML:
1535
+ return {
1536
+ toComponent: function() {
1537
+ return en(o);
1538
+ },
1539
+ toString: function() {
1540
+ return Zt(o);
1541
+ }
1542
+ };
1543
+ default:
1544
+ return {
1545
+ toComponent: function() {
1546
+ return kr(e, o);
1547
+ },
1548
+ toString: function() {
1549
+ return Pr(e, o, n);
1550
+ }
1551
+ };
1552
+ }
1553
+ }, tn = function(e) {
1554
+ var o = e.baseTag, n = e.bodyAttributes, a = e.encode, r = e.htmlAttributes, l = e.linkTags, c = e.metaTags, s = e.noscriptTags, u = e.scriptTags, d = e.styleTags, h = e.title, f = h === void 0 ? "" : h, v = e.titleAttributes;
1555
+ return {
1556
+ base: ue(O.BASE, o, a),
1557
+ bodyAttributes: ue(we.BODY, n, a),
1558
+ htmlAttributes: ue(we.HTML, r, a),
1559
+ link: ue(O.LINK, l, a),
1560
+ meta: ue(O.META, c, a),
1561
+ noscript: ue(O.NOSCRIPT, s, a),
1562
+ script: ue(O.SCRIPT, u, a),
1563
+ style: ue(O.STYLE, d, a),
1564
+ title: ue(O.TITLE, { title: f, titleAttributes: v }, a)
1565
+ };
1566
+ }, Nr = function(e) {
1567
+ var o, n;
1568
+ return n = o = (function(a) {
1569
+ mr(r, a);
1570
+ function r() {
1571
+ return hr(this, r), vr(this, a.apply(this, arguments));
1572
+ }
1573
+ return r.prototype.shouldComponentUpdate = function(c) {
1574
+ return !ir(this.props, c);
1575
+ }, r.prototype.mapNestedChildrenToProps = function(c, s) {
1576
+ if (!s)
1577
+ return null;
1578
+ switch (c.type) {
1579
+ case O.SCRIPT:
1580
+ case O.NOSCRIPT:
1581
+ return {
1582
+ innerHTML: s
1583
+ };
1584
+ case O.STYLE:
1585
+ return {
1586
+ cssText: s
1587
+ };
1588
+ }
1589
+ throw new Error("<" + c.type + " /> elements are self-closing and can not contain children. Refer to our API for more information.");
1590
+ }, r.prototype.flattenArrayTypeChildren = function(c) {
1591
+ var s, u = c.child, d = c.arrayTypeChildren, h = c.newChildProps, f = c.nestedChildren;
1592
+ return re({}, d, (s = {}, s[u.type] = [].concat(d[u.type] || [], [re({}, h, this.mapNestedChildrenToProps(u, f))]), s));
1593
+ }, r.prototype.mapObjectTypeChildren = function(c) {
1594
+ var s, u, d = c.child, h = c.newProps, f = c.newChildProps, v = c.nestedChildren;
1595
+ switch (d.type) {
1596
+ case O.TITLE:
1597
+ return re({}, h, (s = {}, s[d.type] = v, s.titleAttributes = re({}, f), s));
1598
+ case O.BODY:
1599
+ return re({}, h, {
1600
+ bodyAttributes: re({}, f)
1601
+ });
1602
+ case O.HTML:
1603
+ return re({}, h, {
1604
+ htmlAttributes: re({}, f)
1605
+ });
1606
+ }
1607
+ return re({}, h, (u = {}, u[d.type] = re({}, f), u));
1608
+ }, r.prototype.mapArrayTypeChildrenToProps = function(c, s) {
1609
+ var u = re({}, s);
1610
+ return Object.keys(c).forEach(function(d) {
1611
+ var h;
1612
+ u = re({}, u, (h = {}, h[d] = c[d], h));
1613
+ }), u;
1614
+ }, r.prototype.warnOnInvalidChildren = function(c, s) {
1615
+ if (process.env.NODE_ENV !== "production") {
1616
+ if (!Lt.some(function(u) {
1617
+ return c.type === u;
1618
+ }))
1619
+ return typeof c.type == "function" ? it("You may be attempting to nest <Helmet> components within each other, which is not allowed. Refer to our API for more information.") : it("Only elements types " + Lt.join(", ") + " are allowed. Helmet does not support rendering <" + c.type + "> elements. Refer to our API for more information.");
1620
+ if (s && typeof s != "string" && (!Array.isArray(s) || s.some(function(u) {
1621
+ return typeof u != "string";
1622
+ })))
1623
+ throw new Error("Helmet expects a string as a child of <" + c.type + ">. Did you forget to wrap your children in braces? ( <" + c.type + ">{``}</" + c.type + "> ) Refer to our API for more information.");
1624
+ }
1625
+ return !0;
1626
+ }, r.prototype.mapChildrenToProps = function(c, s) {
1627
+ var u = this, d = {};
1628
+ return ke.Children.forEach(c, function(h) {
1629
+ if (!(!h || !h.props)) {
1630
+ var f = h.props, v = f.children, E = Mt(f, ["children"]), m = Ir(E);
1631
+ switch (u.warnOnInvalidChildren(h, v), h.type) {
1632
+ case O.LINK:
1633
+ case O.META:
1634
+ case O.NOSCRIPT:
1635
+ case O.SCRIPT:
1636
+ case O.STYLE:
1637
+ d = u.flattenArrayTypeChildren({
1638
+ child: h,
1639
+ arrayTypeChildren: d,
1640
+ newChildProps: m,
1641
+ nestedChildren: v
1642
+ });
1643
+ break;
1644
+ default:
1645
+ s = u.mapObjectTypeChildren({
1646
+ child: h,
1647
+ newProps: s,
1648
+ newChildProps: m,
1649
+ nestedChildren: v
1650
+ });
1651
+ break;
1652
+ }
1653
+ }
1654
+ }), s = this.mapArrayTypeChildrenToProps(d, s), s;
1655
+ }, r.prototype.render = function() {
1656
+ var c = this.props, s = c.children, u = Mt(c, ["children"]), d = re({}, u);
1657
+ return s && (d = this.mapChildrenToProps(s, d)), ke.createElement(e, d);
1658
+ }, pr(r, null, [{
1659
+ key: "canUseDOM",
1660
+ // Component.peek comes from react-side-effect:
1661
+ // For testing, you may use a static peek() method available on the returned component.
1662
+ // It lets you get the current state without resetting the mounted instance stack.
1663
+ // Don’t use it for anything other than testing.
1664
+ /**
1665
+ * @param {Object} base: {"target": "_blank", "href": "http://mysite.com/"}
1666
+ * @param {Object} bodyAttributes: {"className": "root"}
1667
+ * @param {String} defaultTitle: "Default Title"
1668
+ * @param {Boolean} defer: true
1669
+ * @param {Boolean} encodeSpecialCharacters: true
1670
+ * @param {Object} htmlAttributes: {"lang": "en", "amp": undefined}
1671
+ * @param {Array} link: [{"rel": "canonical", "href": "http://mysite.com/example"}]
1672
+ * @param {Array} meta: [{"name": "description", "content": "Test description"}]
1673
+ * @param {Array} noscript: [{"innerHTML": "<img src='http://mysite.com/js/test.js'"}]
1674
+ * @param {Function} onChangeClientState: "(newState) => console.log(newState)"
1675
+ * @param {Array} script: [{"type": "text/javascript", "src": "http://mysite.com/js/test.js"}]
1676
+ * @param {Array} style: [{"type": "text/css", "cssText": "div { display: block; color: blue; }"}]
1677
+ * @param {String} title: "Title"
1678
+ * @param {Object} titleAttributes: {"itemprop": "name"}
1679
+ * @param {String} titleTemplate: "MySite.com - %s"
1680
+ */
1681
+ set: function(c) {
1682
+ e.canUseDOM = c;
1683
+ }
1684
+ }]), r;
1685
+ })(ke.Component), o.propTypes = {
1686
+ base: q.object,
1687
+ bodyAttributes: q.object,
1688
+ children: q.oneOfType([q.arrayOf(q.node), q.node]),
1689
+ defaultTitle: q.string,
1690
+ defer: q.bool,
1691
+ encodeSpecialCharacters: q.bool,
1692
+ htmlAttributes: q.object,
1693
+ link: q.arrayOf(q.object),
1694
+ meta: q.arrayOf(q.object),
1695
+ noscript: q.arrayOf(q.object),
1696
+ onChangeClientState: q.func,
1697
+ script: q.arrayOf(q.object),
1698
+ style: q.arrayOf(q.object),
1699
+ title: q.string,
1700
+ titleAttributes: q.object,
1701
+ titleTemplate: q.string
1702
+ }, o.defaultProps = {
1703
+ defer: !0,
1704
+ encodeSpecialCharacters: !0
1705
+ }, o.peek = e.peek, o.rewind = function() {
1706
+ var a = e.rewind();
1707
+ return a || (a = tn({
1708
+ baseTag: [],
1709
+ bodyAttributes: {},
1710
+ htmlAttributes: {},
1711
+ linkTags: [],
1712
+ metaTags: [],
1713
+ noscriptTags: [],
1714
+ scriptTags: [],
1715
+ styleTags: [],
1716
+ title: "",
1717
+ titleAttributes: {}
1718
+ })), a;
1719
+ }, n;
1720
+ }, xr = function() {
1721
+ return null;
1722
+ }, Or = or(br, Er, tn)(xr), Ye = Nr(Or);
1723
+ Ye.renderStatic = Ye.rewind;
1724
+ const Rr = "_metadata_bsge0_1", $r = "_author_bsge0_9", Lr = "_date_bsge0_10", rt = {
1725
+ metadata: Rr,
1726
+ author: $r,
1727
+ date: Lr
1728
+ };
1729
+ function lt({ date: t, author: e }) {
1730
+ const { t: o } = J();
1731
+ return !t && !e ? null : /* @__PURE__ */ T("div", { className: rt.metadata, children: [
1732
+ e && /* @__PURE__ */ T("span", { className: rt.author, children: [
1733
+ /* @__PURE__ */ i(sn, { size: 16, weight: "regular" }),
1734
+ e
378
1735
  ] }),
379
- e && /* @__PURE__ */ d("span", { className: _t.date, children: [
380
- /* @__PURE__ */ t(te, { size: 16, weight: "regular" }),
1736
+ t && /* @__PURE__ */ T("span", { className: rt.date, children: [
1737
+ /* @__PURE__ */ i(cn, { size: 16, weight: "regular" }),
381
1738
  o("ui.lastEdited"),
382
1739
  ": ",
383
- e
1740
+ t
384
1741
  ] })
385
1742
  ] });
386
1743
  }
387
- const Re = "_tableOfContents_9ofak_1", Ae = "_header_9ofak_21", Oe = "_title_9ofak_25", je = "_nav_9ofak_34", We = "_list_9ofak_40", He = "_link_9ofak_47", ze = "_active_9ofak_71", Fe = "_level1_9ofak_87", qe = "_level2_9ofak_93", Ue = "_level3_9ofak_98", Ke = "_level4_9ofak_104", Ge = "_level5_9ofak_110", Qe = "_level6_9ofak_116", z = {
388
- tableOfContents: Re,
389
- header: Ae,
390
- title: Oe,
391
- nav: je,
392
- list: We,
393
- link: He,
394
- active: ze,
395
- level1: Fe,
396
- level2: qe,
397
- level3: Ue,
398
- level4: Ke,
399
- level5: Ge,
400
- level6: Qe
1744
+ const Mr = "_tableOfContents_9ofak_1", Dr = "_header_9ofak_21", jr = "_title_9ofak_25", Br = "_nav_9ofak_34", Hr = "_list_9ofak_40", Fr = "_link_9ofak_47", qr = "_active_9ofak_71", Wr = "_level1_9ofak_87", Yr = "_level2_9ofak_93", Ur = "_level3_9ofak_98", zr = "_level4_9ofak_104", Gr = "_level5_9ofak_110", Vr = "_level6_9ofak_116", de = {
1745
+ tableOfContents: Mr,
1746
+ header: Dr,
1747
+ title: jr,
1748
+ nav: Br,
1749
+ list: Hr,
1750
+ link: Fr,
1751
+ active: qr,
1752
+ level1: Wr,
1753
+ level2: Yr,
1754
+ level3: Ur,
1755
+ level4: zr,
1756
+ level5: Gr,
1757
+ level6: Vr
401
1758
  };
402
- function Xe({
403
- content: e,
404
- englishContent: n
1759
+ function Xr({
1760
+ content: t,
1761
+ englishContent: e
405
1762
  }) {
406
- const { t: o } = A(), a = Q(), c = X(), [s, l] = y([]), [g, h] = y(""), u = G(null);
407
- S(() => {
408
- h(""), (() => {
409
- const _ = /^(#{1,6})\s+(.+)$/gm, v = [];
410
- let w = _.exec(e);
411
- const r = [];
412
- for (; w !== null; ) {
413
- const D = w[1].length, H = w[2].trim();
414
- r.push({ level: D, text: H }), w = _.exec(e);
1763
+ const { t: o } = J(), n = Ee(), a = ge(), [r, l] = F([]), [c, s] = F(""), u = ve(null);
1764
+ U(() => {
1765
+ s(""), (() => {
1766
+ const f = /^(#{1,6})\s+(.+)$/gm, v = [];
1767
+ let E = f.exec(t);
1768
+ const m = [];
1769
+ for (; E !== null; ) {
1770
+ const N = E[1].length, D = E[2].trim();
1771
+ m.push({ level: N, text: D }), E = f.exec(t);
415
1772
  }
416
- const m = /^(#{1,6})\s+(.+)$/gm;
417
- let N = m.exec(n), I = 0;
418
- for (; N !== null && I < r.length; ) {
419
- const D = N[2].trim(), H = Z(D);
1773
+ const y = /^(#{1,6})\s+(.+)$/gm;
1774
+ let b = y.exec(e), I = 0;
1775
+ for (; b !== null && I < m.length; ) {
1776
+ const N = b[2].trim(), D = Ae(N);
420
1777
  v.push({
421
- id: H,
422
- text: r[I].text,
1778
+ id: D,
1779
+ text: m[I].text,
423
1780
  // Use localized text for display
424
- level: r[I].level
425
- }), I++, N = m.exec(n);
1781
+ level: m[I].level
1782
+ }), I++, b = y.exec(e);
426
1783
  }
427
1784
  l(v);
428
1785
  })();
429
- }, [e, n]), S(() => {
430
- if (s.length === 0) return;
431
- const f = setTimeout(() => {
432
- const _ = s.filter(
1786
+ }, [t, e]), U(() => {
1787
+ if (r.length === 0) return;
1788
+ const h = setTimeout(() => {
1789
+ const f = r.filter(
433
1790
  (v) => !document.getElementById(v.id)
434
1791
  );
435
- _.length > 0 && console.warn("Some heading elements not found:", _);
1792
+ f.length > 0 && console.warn("Some heading elements not found:", f);
436
1793
  }, 100);
437
- return () => clearTimeout(f);
438
- }, [s]), S(() => {
439
- if (s.length === 0) return;
1794
+ return () => clearTimeout(h);
1795
+ }, [r]), U(() => {
1796
+ if (r.length === 0) return;
440
1797
  u.current && u.current.disconnect();
441
- const f = setTimeout(() => {
442
- const _ = s.map((v) => document.getElementById(v.id)).filter(Boolean);
443
- _.length !== 0 && (u.current = new IntersectionObserver(
1798
+ const h = setTimeout(() => {
1799
+ const f = r.map((v) => document.getElementById(v.id)).filter(Boolean);
1800
+ f.length !== 0 && (u.current = new IntersectionObserver(
444
1801
  (v) => {
445
- const w = v.filter((r) => r.isIntersecting);
446
- if (w.length > 0) {
447
- const r = w.reduce((m, N) => m.boundingClientRect.top < N.boundingClientRect.top ? m : N);
448
- h(r.target.id);
1802
+ const E = v.filter((m) => m.isIntersecting);
1803
+ if (E.length > 0) {
1804
+ const m = E.reduce((y, b) => y.boundingClientRect.top < b.boundingClientRect.top ? y : b);
1805
+ s(m.target.id);
449
1806
  }
450
1807
  },
451
1808
  {
452
1809
  rootMargin: "-80px 0% -80% 0%",
453
1810
  threshold: 0
454
1811
  }
455
- ), _.forEach((v) => {
1812
+ ), f.forEach((v) => {
456
1813
  u.current && u.current.observe(v);
457
1814
  }));
458
1815
  }, 150);
459
1816
  return () => {
460
- clearTimeout(f), u.current && u.current.disconnect();
1817
+ clearTimeout(h), u.current && u.current.disconnect();
461
1818
  };
462
- }, [s]), S(() => () => {
1819
+ }, [r]), U(() => () => {
463
1820
  u.current && u.current.disconnect();
464
1821
  }, []);
465
- const i = (f) => {
466
- const _ = document.getElementById(f);
467
- if (_) {
468
- const v = new URLSearchParams(a.search);
469
- v.set("a", f), c(
470
- `${a.pathname}?${v.toString()}${a.hash}`,
1822
+ const d = (h) => {
1823
+ const f = document.getElementById(h);
1824
+ if (f) {
1825
+ const v = new URLSearchParams(n.search);
1826
+ v.set("a", h), a(
1827
+ `${n.pathname}?${v.toString()}${n.hash}`,
471
1828
  {
472
1829
  replace: !0
473
1830
  }
474
1831
  );
475
- const m = _.getBoundingClientRect().top + window.pageYOffset - 80;
1832
+ const y = f.getBoundingClientRect().top + window.pageYOffset - 80;
476
1833
  window.scrollTo({
477
- top: m,
1834
+ top: y,
478
1835
  behavior: "smooth"
479
1836
  });
480
1837
  }
481
1838
  };
482
- return s.length === 0 ? null : /* @__PURE__ */ d("aside", { className: z.tableOfContents, children: [
483
- /* @__PURE__ */ t("div", { className: z.header, children: /* @__PURE__ */ t("span", { className: z.title, children: o("ui.onThisPage", "On this page") }) }),
484
- /* @__PURE__ */ t("nav", { className: z.nav, children: /* @__PURE__ */ t("ul", { className: z.list, children: s.map((f) => /* @__PURE__ */ t("li", { className: z.item, children: /* @__PURE__ */ t(
1839
+ return r.length === 0 ? null : /* @__PURE__ */ T("aside", { className: de.tableOfContents, children: [
1840
+ /* @__PURE__ */ i("div", { className: de.header, children: /* @__PURE__ */ i("span", { className: de.title, children: o("ui.onThisPage", "On this page") }) }),
1841
+ /* @__PURE__ */ i("nav", { className: de.nav, children: /* @__PURE__ */ i("ul", { className: de.list, children: r.map((h) => /* @__PURE__ */ i("li", { className: de.item, children: /* @__PURE__ */ i(
485
1842
  "button",
486
1843
  {
487
- className: `${z.link} ${z[`level${f.level}`]} ${g === f.id ? z.active : ""}`,
488
- onClick: () => i(f.id),
1844
+ className: `${de.link} ${de[`level${h.level}`]} ${c === h.id ? de.active : ""}`,
1845
+ onClick: () => d(h.id),
489
1846
  type: "button",
490
- children: f.text
1847
+ children: h.text
491
1848
  }
492
- ) }, f.id)) }) })
1849
+ ) }, h.id)) }) })
493
1850
  ] });
494
1851
  }
495
- const Ye = "_overlay_1e1d4_1", Ve = "_modal_1e1d4_26", Je = "_header_1e1d4_50", Ze = "_title_1e1d4_58", tn = "_closeButton_1e1d4_65", en = "_results_1e1d4_86", nn = "_resultsList_1e1d4_94", an = "_resultItem_1e1d4_100", on = "_resultTitle_1e1d4_119", sn = "_resultSlug_1e1d4_124", cn = "_noResults_1e1d4_130", W = {
496
- overlay: Ye,
497
- modal: Ve,
498
- header: Je,
499
- title: Ze,
500
- closeButton: tn,
501
- results: en,
502
- resultsList: nn,
503
- resultItem: an,
504
- resultTitle: on,
505
- resultSlug: sn,
506
- noResults: cn
1852
+ const Kr = "_overlay_1e1d4_1", Qr = "_modal_1e1d4_26", Jr = "_header_1e1d4_50", Zr = "_title_1e1d4_58", eo = "_closeButton_1e1d4_65", to = "_results_1e1d4_86", no = "_resultsList_1e1d4_94", ro = "_resultItem_1e1d4_100", oo = "_resultTitle_1e1d4_119", ao = "_resultSlug_1e1d4_124", so = "_noResults_1e1d4_130", se = {
1853
+ overlay: Kr,
1854
+ modal: Qr,
1855
+ header: Jr,
1856
+ title: Zr,
1857
+ closeButton: eo,
1858
+ results: to,
1859
+ resultsList: no,
1860
+ resultItem: ro,
1861
+ resultTitle: oo,
1862
+ resultSlug: ao,
1863
+ noResults: so
507
1864
  };
508
- function rn({
509
- tag: e,
510
- results: n,
1865
+ function io({
1866
+ tag: t,
1867
+ results: e,
511
1868
  language: o,
512
- onClose: a
1869
+ onClose: n
513
1870
  }) {
514
- const { t: c } = A(), { config: s } = O(), l = X(), g = (h) => {
515
- const u = s.basePath || "";
516
- l(`${u}/${o}/${h}`), a();
1871
+ const { t: a } = J(), { config: r } = Z(), l = ge(), c = (s) => {
1872
+ const u = r.basePath || "";
1873
+ l(`${u}/${o}/${s}`), n();
517
1874
  };
518
- return zt(
519
- /* @__PURE__ */ t("div", { className: W.overlay, onClick: a, children: /* @__PURE__ */ d("div", { className: W.modal, onClick: (h) => h.stopPropagation(), children: [
520
- /* @__PURE__ */ d("div", { className: W.header, children: [
521
- /* @__PURE__ */ d("h2", { className: W.title, children: [
522
- c("ui.tagResults"),
1875
+ return qt(
1876
+ /* @__PURE__ */ i("div", { className: se.overlay, onClick: n, children: /* @__PURE__ */ T("div", { className: se.modal, onClick: (s) => s.stopPropagation(), children: [
1877
+ /* @__PURE__ */ T("div", { className: se.header, children: [
1878
+ /* @__PURE__ */ T("h2", { className: se.title, children: [
1879
+ a("ui.tagResults"),
523
1880
  ": ",
524
- e
1881
+ t
525
1882
  ] }),
526
- /* @__PURE__ */ t(
1883
+ /* @__PURE__ */ i(
527
1884
  "button",
528
1885
  {
529
1886
  type: "button",
530
- className: W.closeButton,
531
- onClick: a,
1887
+ className: se.closeButton,
1888
+ onClick: n,
532
1889
  "aria-label": "Close",
533
- children: /* @__PURE__ */ t(bt, {})
1890
+ children: /* @__PURE__ */ i(dt, {})
534
1891
  }
535
1892
  )
536
1893
  ] }),
537
- /* @__PURE__ */ t("div", { className: W.results, children: n.length === 0 ? /* @__PURE__ */ t("div", { className: W.noResults, children: c("ui.noTagResults") }) : /* @__PURE__ */ t("ul", { className: W.resultsList, children: n.map((h) => /* @__PURE__ */ t("li", { children: /* @__PURE__ */ d(
1894
+ /* @__PURE__ */ i("div", { className: se.results, children: e.length === 0 ? /* @__PURE__ */ i("div", { className: se.noResults, children: a("ui.noTagResults") }) : /* @__PURE__ */ i("ul", { className: se.resultsList, children: e.map((s) => /* @__PURE__ */ i("li", { children: /* @__PURE__ */ T(
538
1895
  "button",
539
1896
  {
540
1897
  type: "button",
541
- className: W.resultItem,
542
- onClick: () => g(h.slug),
1898
+ className: se.resultItem,
1899
+ onClick: () => c(s.slug),
543
1900
  children: [
544
- /* @__PURE__ */ t("div", { className: W.resultTitle, children: h.title }),
545
- /* @__PURE__ */ d("div", { className: W.resultSlug, children: [
1901
+ /* @__PURE__ */ i("div", { className: se.resultTitle, children: s.title }),
1902
+ /* @__PURE__ */ T("div", { className: se.resultSlug, children: [
546
1903
  "/",
547
- h.slug
1904
+ s.slug
548
1905
  ] })
549
1906
  ]
550
1907
  }
551
- ) }, h.slug)) }) })
1908
+ ) }, s.slug)) }) })
552
1909
  ] }) }),
553
1910
  document.body
554
1911
  );
555
1912
  }
556
- const ln = "_tags_11t8a_1", dn = "_compact_11t8a_9", un = "_tagLabel_11t8a_15", hn = "_tagIcon_11t8a_25", mn = "_tagList_11t8a_30", gn = "_tag_11t8a_1", J = {
557
- tags: ln,
558
- compact: dn,
559
- tagLabel: un,
560
- tagIcon: hn,
561
- tagList: mn,
562
- tag: gn
1913
+ const co = "_tags_11t8a_1", lo = "_compact_11t8a_9", uo = "_tagLabel_11t8a_15", fo = "_tagIcon_11t8a_25", ho = "_tagList_11t8a_30", po = "_tag_11t8a_1", Ie = {
1914
+ tags: co,
1915
+ compact: lo,
1916
+ tagLabel: uo,
1917
+ tagIcon: fo,
1918
+ tagList: ho,
1919
+ tag: po
563
1920
  };
564
- function _n({ tags: e, variant: n = "default", onTagClick: o }) {
565
- const { t: a } = A();
566
- if (!e || e.length === 0) return null;
567
- const c = (s) => {
568
- o && o(s);
1921
+ function mo({ tags: t, variant: e = "default", onTagClick: o }) {
1922
+ const { t: n } = J();
1923
+ if (!t || t.length === 0) return null;
1924
+ const a = (r) => {
1925
+ o && o(r);
569
1926
  };
570
- return /* @__PURE__ */ d(
1927
+ return /* @__PURE__ */ T(
571
1928
  "div",
572
1929
  {
573
- className: `${J.tags} ${n === "compact" ? J.compact : ""}`,
1930
+ className: `${Ie.tags} ${e === "compact" ? Ie.compact : ""}`,
574
1931
  children: [
575
- n === "default" && /* @__PURE__ */ d("div", { className: J.tagLabel, children: [
576
- /* @__PURE__ */ t(ee, { className: J.tagIcon, weight: "duotone" }),
577
- /* @__PURE__ */ d("span", { children: [
578
- a("ui.tags"),
1932
+ e === "default" && /* @__PURE__ */ T("div", { className: Ie.tagLabel, children: [
1933
+ /* @__PURE__ */ i(ln, { className: Ie.tagIcon, weight: "duotone" }),
1934
+ /* @__PURE__ */ T("span", { children: [
1935
+ n("ui.tags"),
579
1936
  ":"
580
1937
  ] })
581
1938
  ] }),
582
- /* @__PURE__ */ t("div", { className: J.tagList, children: e.map((s) => /* @__PURE__ */ t(
1939
+ /* @__PURE__ */ i("div", { className: Ie.tagList, children: t.map((r) => /* @__PURE__ */ i(
583
1940
  "button",
584
1941
  {
585
1942
  type: "button",
586
- className: J.tag,
587
- onClick: () => c(s),
588
- "aria-label": `${a("ui.filterByTag")}: ${s}`,
589
- children: s
1943
+ className: Ie.tag,
1944
+ onClick: () => a(r),
1945
+ "aria-label": `${n("ui.filterByTag")}: ${r}`,
1946
+ children: r
590
1947
  },
591
- s
1948
+ r
592
1949
  )) })
593
1950
  ]
594
1951
  }
595
1952
  );
596
1953
  }
597
- const pn = "_contentPage_1nxj5_1", fn = "_loadingContainer_1nxj5_48", vn = "_errorContainer_1nxj5_49", bn = "_skeletonTitle_1nxj5_71", wn = "_skeletonParagraph_1nxj5_80", Nn = "_skeletonParagraphShort_1nxj5_93", kn = "_errorText_1nxj5_107", $n = "_mdxContent_1nxj5_112", xn = "_withMetadata_1nxj5_125", In = "_codeBlock_1nxj5_300", Cn = "_codeLanguage_1nxj5_304", M = {
598
- contentPage: pn,
599
- loadingContainer: fn,
600
- errorContainer: vn,
601
- skeletonTitle: bn,
602
- skeletonParagraph: wn,
603
- skeletonParagraphShort: Nn,
604
- errorText: kn,
605
- mdxContent: $n,
606
- withMetadata: xn,
607
- codeBlock: In,
608
- codeLanguage: Cn
609
- }, jt = (e) => {
610
- const n = e.match(/^\s*#\s+(.+)\s*(?:\n+|$)/);
611
- return n ? {
612
- title: n[1].trim(),
613
- content: e.replace(/^\s*#\s+.+\s*(?:\n+|$)/, "")
614
- } : { title: void 0, content: e };
1954
+ const vo = "_contentPage_818m0_1", go = "_loadingContainer_818m0_48", _o = "_errorContainer_818m0_49", yo = "_skeletonTitle_818m0_71", bo = "_skeletonParagraph_818m0_80", To = "_skeletonParagraphShort_818m0_93", wo = "_errorText_818m0_107", Eo = "_mdxContent_818m0_112", Co = "_withMetadata_818m0_125", So = "_codeBlock_818m0_300", Po = "_codeLanguage_818m0_304", Q = {
1955
+ contentPage: vo,
1956
+ loadingContainer: go,
1957
+ errorContainer: _o,
1958
+ skeletonTitle: yo,
1959
+ skeletonParagraph: bo,
1960
+ skeletonParagraphShort: To,
1961
+ errorText: wo,
1962
+ mdxContent: Eo,
1963
+ withMetadata: Co,
1964
+ codeBlock: So,
1965
+ codeLanguage: Po
1966
+ }, Bt = (t) => {
1967
+ const e = t.match(/^\s*#\s+(.+)\s*(?:\n+|$)/);
1968
+ return e ? {
1969
+ title: e[1].trim(),
1970
+ content: t.replace(/^\s*#\s+.+\s*(?:\n+|$)/, "")
1971
+ } : { title: void 0, content: t };
615
1972
  };
616
- function yn({ language: e }) {
617
- var xt, It, Ct, yt, Lt;
618
- const { slug: n } = vt(), o = Q(), { config: a, loadContent: c, loadEnglishContent: s } = O(), [l, g] = y(""), [h, u] = y(""), [i, f] = y({}), [_, v] = y(!0), [w, r] = y(null), [m, N] = y(!0), [I, D] = y(null), [H, b] = y(""), [$, B] = y({}), j = G(0), q = G([]), st = Qt(o.search), Y = st.advanced;
619
- if (S(() => {
1973
+ function Io({ language: t }) {
1974
+ var g, S, M, $, x;
1975
+ const { slug: e } = ut(), o = Ee(), { config: n, loadContent: a, loadEnglishContent: r } = Z(), [l, c] = F(""), [s, u] = F(""), [d, h] = F({}), [f, v] = F(!0), [E, m] = F(null), [y, b] = F(!0), [I, N] = F(null), [D, p] = F(""), [R, G] = F({}), V = ve(0), oe = ve([]), fe = Vt(o.search), ae = fe.advanced;
1976
+ if (U(() => {
620
1977
  (async () => {
621
- if (!n) return;
622
- v(!0), r(null), j.current = 0;
623
- const C = (a == null ? void 0 : a.navigationData) || [];
624
- let P = !0;
625
- for (const k of C)
626
- if ("items" in k) {
627
- const L = k.items.find((V) => V.slug === n);
628
- if (L) {
629
- P = L.showTableOfContents !== !1;
1978
+ if (!e) return;
1979
+ v(!0), m(null), V.current = 0;
1980
+ const P = (n == null ? void 0 : n.navigationData) || [];
1981
+ let A = !0;
1982
+ for (const C of P)
1983
+ if ("items" in C) {
1984
+ const k = C.items.find((L) => L.slug === e);
1985
+ if (k) {
1986
+ A = k.showTableOfContents !== !1;
630
1987
  break;
631
1988
  }
632
- } else if (k.slug === n) {
633
- P = k.showTableOfContents !== !1;
1989
+ } else if (C.slug === e) {
1990
+ A = C.showTableOfContents !== !1;
634
1991
  break;
635
1992
  }
636
- N(P);
1993
+ b(A);
637
1994
  try {
638
- let k;
1995
+ let C;
639
1996
  try {
640
- k = await c(e, n, Y);
1997
+ C = await a(t, e, ae);
641
1998
  } catch {
642
- if (Y)
643
- k = await c(e, n, !1);
1999
+ if (ae)
2000
+ C = await a(t, e, !1);
644
2001
  else
645
2002
  throw new Error("Content not found");
646
2003
  }
647
- let L = "";
2004
+ let k = "";
648
2005
  try {
649
- L = await s(n, Y);
2006
+ k = await r(e, ae);
650
2007
  } catch {
651
- Y && (L = await s(n, !1));
2008
+ ae && (k = await r(e, !1));
652
2009
  }
653
- const V = typeof k.frontmatter.title == "string" ? k.frontmatter.title : void 0;
654
- let rt = k.content, lt = L, mt = "";
655
- if (V) {
656
- const it = jt(L), Xt = jt(k.content);
657
- mt = it.title || "", lt = it.content, rt = Xt.content;
2010
+ const L = typeof C.frontmatter.title == "string" ? C.frontmatter.title : void 0;
2011
+ let z = C.content, w = k, ee = "";
2012
+ if (L) {
2013
+ const Be = Bt(k), nn = Bt(C.content);
2014
+ ee = Be.title || "", w = Be.content, z = nn.content;
658
2015
  } else
659
- mt = "";
660
- const Tt = /^(#{1,6})\s+(.+)$/gm, St = [];
661
- let gt = Tt.exec(
662
- lt
2016
+ ee = "";
2017
+ const be = /^(#{1,6})\s+(.+)$/gm, xe = [];
2018
+ let Ge = be.exec(
2019
+ w
663
2020
  );
664
- for (; gt !== null; ) {
665
- const it = gt[2].trim();
666
- St.push(it), gt = Tt.exec(lt);
2021
+ for (; Ge !== null; ) {
2022
+ const Be = Ge[2].trim();
2023
+ xe.push(Be), Ge = be.exec(w);
667
2024
  }
668
- q.current = St, b(mt), u(lt), g(rt), f(k.frontmatter);
669
- } catch (k) {
670
- r(k instanceof Error ? k.message : "Failed to load content");
2025
+ oe.current = xe, p(ee), u(w), c(z), h(C.frontmatter);
2026
+ } catch (C) {
2027
+ m(C instanceof Error ? C.message : "Failed to load content");
671
2028
  } finally {
672
2029
  v(!1);
673
2030
  }
674
2031
  })();
675
2032
  }, [
676
- n,
677
2033
  e,
678
- Y,
679
- a.navigationData,
680
- c,
681
- s
682
- ]), S(() => {
683
- if (!_ && st.anchor) {
684
- const p = setTimeout(() => {
685
- Ot(st.anchor);
2034
+ t,
2035
+ ae,
2036
+ n.navigationData,
2037
+ a,
2038
+ r
2039
+ ]), U(() => {
2040
+ if (!f && fe.anchor) {
2041
+ const _ = setTimeout(() => {
2042
+ wt(fe.anchor);
686
2043
  }, 150);
687
- return () => clearTimeout(p);
2044
+ return () => clearTimeout(_);
688
2045
  }
689
- }, [_, st.anchor]), S(() => {
2046
+ }, [f, fe.anchor]), U(() => {
690
2047
  (async () => {
691
- if (!n || !a.showArticleNavigation || !a.navigationData) {
692
- B({});
2048
+ if (!e || !n.showArticleNavigation || !n.navigationData) {
2049
+ G({});
693
2050
  return;
694
2051
  }
695
2052
  try {
696
- const C = await ut(
697
- a.navigationData,
698
- e,
699
- c
700
- ), P = _e(n, C);
701
- B(P);
702
- } catch (C) {
703
- console.error("Failed to calculate adjacent articles:", C), B({});
2053
+ const P = await Ue(
2054
+ n.navigationData,
2055
+ t,
2056
+ a
2057
+ ), A = En(e, P);
2058
+ G(A);
2059
+ } catch (P) {
2060
+ console.error("Failed to calculate adjacent articles:", P), G({});
704
2061
  }
705
2062
  })();
706
2063
  }, [
707
- n,
708
2064
  e,
709
- a.showArticleNavigation,
710
- a.navigationData,
711
- c
712
- ]), _)
713
- return /* @__PURE__ */ t("div", { className: M.contentPage, children: /* @__PURE__ */ d("div", { className: M.loadingContainer, children: [
714
- /* @__PURE__ */ t("div", { className: M.skeletonTitle }),
715
- /* @__PURE__ */ t("div", { className: M.skeletonParagraph }),
716
- /* @__PURE__ */ t("div", { className: M.skeletonParagraph }),
717
- /* @__PURE__ */ t("div", { className: M.skeletonParagraphShort })
2065
+ t,
2066
+ n.showArticleNavigation,
2067
+ n.navigationData,
2068
+ a
2069
+ ]), f)
2070
+ return /* @__PURE__ */ i("div", { className: Q.contentPage, children: /* @__PURE__ */ T("div", { className: Q.loadingContainer, children: [
2071
+ /* @__PURE__ */ i("div", { className: Q.skeletonTitle }),
2072
+ /* @__PURE__ */ i("div", { className: Q.skeletonParagraph }),
2073
+ /* @__PURE__ */ i("div", { className: Q.skeletonParagraph }),
2074
+ /* @__PURE__ */ i("div", { className: Q.skeletonParagraphShort })
718
2075
  ] }) });
719
- if (w)
720
- return /* @__PURE__ */ t("div", { className: M.contentPage, children: /* @__PURE__ */ t("div", { className: M.errorContainer, children: /* @__PURE__ */ d("div", { className: M.errorText, children: [
2076
+ if (E)
2077
+ return /* @__PURE__ */ i("div", { className: Q.contentPage, children: /* @__PURE__ */ i("div", { className: Q.errorContainer, children: /* @__PURE__ */ T("div", { className: Q.errorText, children: [
721
2078
  "Error: ",
722
- w
2079
+ E
723
2080
  ] }) }) });
724
- const ct = typeof i.title == "string" && i.title.trim().length > 0, ht = ct ? Z(H || i.title) : "", kt = !!(i.date || i.author);
725
- j.current = 0;
726
- let $t = !1;
727
- const tt = (p, C) => {
728
- p.preventDefault(), Ot(C), fe(C, Y);
729
- };
730
- return /* @__PURE__ */ d(K, { children: [
731
- /* @__PURE__ */ d("div", { className: M.contentPage, children: [
732
- /* @__PURE__ */ t(he, { hasAdvanced: i.hasAdvanced || !1 }),
733
- ct && /* @__PURE__ */ d(K, { children: [
734
- /* @__PURE__ */ t(
2081
+ const he = typeof d.title == "string" && d.title.trim().length > 0, _e = he ? Ae(D || d.title) : "", ce = !!(d.date || d.author);
2082
+ V.current = 0;
2083
+ let Ce = !1;
2084
+ const K = (_, P) => {
2085
+ _.preventDefault(), wt(P), Sn(P, ae);
2086
+ }, le = d.title ? `${d.title} | ${n.title}` : n.title, ye = d.description || n.description, Se = d.keywords ? typeof d.keywords == "string" ? d.keywords : d.keywords.join(", ") : void 0;
2087
+ return /* @__PURE__ */ T(me, { children: [
2088
+ /* @__PURE__ */ T(Ye, { children: [
2089
+ /* @__PURE__ */ i("title", { children: le }),
2090
+ ye && /* @__PURE__ */ i("meta", { name: "description", content: ye }),
2091
+ Se && /* @__PURE__ */ i("meta", { name: "keywords", content: Se })
2092
+ ] }),
2093
+ /* @__PURE__ */ T("div", { className: Q.contentPage, children: [
2094
+ /* @__PURE__ */ i(bn, { hasAdvanced: d.hasAdvanced || !1 }),
2095
+ he && /* @__PURE__ */ T(me, { children: [
2096
+ /* @__PURE__ */ i(Vn, { articleTitle: d.title, language: t }),
2097
+ /* @__PURE__ */ i(
735
2098
  "h1",
736
2099
  {
737
- id: ht,
738
- className: kt ? M.withMetadata : void 0,
739
- children: /* @__PURE__ */ t(
2100
+ id: _e,
2101
+ className: ce ? Q.withMetadata : void 0,
2102
+ children: /* @__PURE__ */ i(
740
2103
  "a",
741
2104
  {
742
- href: `#${ht}`,
743
- onClick: (p) => tt(p, ht),
2105
+ href: `#${_e}`,
2106
+ onClick: (_) => K(_, _e),
744
2107
  style: { color: "inherit", textDecoration: "none" },
745
- children: i.title
2108
+ children: d.title
746
2109
  }
747
2110
  )
748
2111
  }
749
2112
  ),
750
- kt && /* @__PURE__ */ t(ft, { date: i.date, author: i.author })
2113
+ ce && /* @__PURE__ */ i(lt, { date: d.date, author: d.author })
751
2114
  ] }),
752
- /* @__PURE__ */ t("div", { className: M.mdxContent, children: /* @__PURE__ */ t(
753
- re,
2115
+ /* @__PURE__ */ i("div", { className: Q.mdxContent, children: /* @__PURE__ */ i(
2116
+ mn,
754
2117
  {
755
- remarkPlugins: [le],
2118
+ remarkPlugins: [vn],
756
2119
  components: {
757
- h1: ({ children: p }) => {
758
- const C = j.current++, P = q.current[C] || "", k = Z(P), L = !$t;
759
- $t = !0;
760
- const V = i.date || i.author;
761
- return /* @__PURE__ */ d(K, { children: [
762
- /* @__PURE__ */ t(
2120
+ h1: ({ children: _ }) => {
2121
+ const P = V.current++, A = oe.current[P] || "", C = Ae(A), k = !Ce;
2122
+ Ce = !0;
2123
+ const L = d.date || d.author;
2124
+ return /* @__PURE__ */ T(me, { children: [
2125
+ /* @__PURE__ */ i(
763
2126
  "h1",
764
2127
  {
765
- id: k,
766
- className: L && V && !ct ? M.withMetadata : void 0,
767
- children: /* @__PURE__ */ t(
2128
+ id: C,
2129
+ className: k && L && !he ? Q.withMetadata : void 0,
2130
+ children: /* @__PURE__ */ i(
768
2131
  "a",
769
2132
  {
770
- href: `#${k}`,
771
- onClick: (rt) => tt(rt, k),
2133
+ href: `#${C}`,
2134
+ onClick: (z) => K(z, C),
772
2135
  style: { color: "inherit", textDecoration: "none" },
773
- children: p
2136
+ children: _
774
2137
  }
775
2138
  )
776
2139
  }
777
2140
  ),
778
- L && V && !ct && /* @__PURE__ */ t(
779
- ft,
2141
+ k && L && !he && /* @__PURE__ */ i(
2142
+ lt,
780
2143
  {
781
- date: i.date,
782
- author: i.author
2144
+ date: d.date,
2145
+ author: d.author
783
2146
  }
784
2147
  )
785
2148
  ] });
786
2149
  },
787
- h2: ({ children: p }) => {
788
- const C = j.current++, P = q.current[C] || "", k = Z(P);
789
- return /* @__PURE__ */ t("h2", { id: k, children: /* @__PURE__ */ t(
2150
+ h2: ({ children: _ }) => {
2151
+ const P = V.current++, A = oe.current[P] || "", C = Ae(A);
2152
+ return /* @__PURE__ */ i("h2", { id: C, children: /* @__PURE__ */ i(
790
2153
  "a",
791
2154
  {
792
- href: `#${k}`,
793
- onClick: (L) => tt(L, k),
2155
+ href: `#${C}`,
2156
+ onClick: (k) => K(k, C),
794
2157
  style: { color: "inherit", textDecoration: "none" },
795
- children: p
2158
+ children: _
796
2159
  }
797
2160
  ) });
798
2161
  },
799
- h3: ({ children: p }) => {
800
- const C = j.current++, P = q.current[C] || "", k = Z(P);
801
- return /* @__PURE__ */ t("h3", { id: k, children: /* @__PURE__ */ t(
2162
+ h3: ({ children: _ }) => {
2163
+ const P = V.current++, A = oe.current[P] || "", C = Ae(A);
2164
+ return /* @__PURE__ */ i("h3", { id: C, children: /* @__PURE__ */ i(
802
2165
  "a",
803
2166
  {
804
- href: `#${k}`,
805
- onClick: (L) => tt(L, k),
2167
+ href: `#${C}`,
2168
+ onClick: (k) => K(k, C),
806
2169
  style: { color: "inherit", textDecoration: "none" },
807
- children: p
2170
+ children: _
808
2171
  }
809
2172
  ) });
810
2173
  },
811
- h4: ({ children: p }) => {
812
- const C = j.current++, P = q.current[C] || "", k = Z(P);
813
- return /* @__PURE__ */ t("h4", { id: k, children: /* @__PURE__ */ t(
2174
+ h4: ({ children: _ }) => {
2175
+ const P = V.current++, A = oe.current[P] || "", C = Ae(A);
2176
+ return /* @__PURE__ */ i("h4", { id: C, children: /* @__PURE__ */ i(
814
2177
  "a",
815
2178
  {
816
- href: `#${k}`,
817
- onClick: (L) => tt(L, k),
2179
+ href: `#${C}`,
2180
+ onClick: (k) => K(k, C),
818
2181
  style: { color: "inherit", textDecoration: "none" },
819
- children: p
2182
+ children: _
820
2183
  }
821
2184
  ) });
822
2185
  },
823
- h5: ({ children: p }) => {
824
- const C = `h5-${j.current++}`;
825
- return /* @__PURE__ */ t("h5", { id: C, children: p });
2186
+ h5: ({ children: _ }) => {
2187
+ const P = `h5-${V.current++}`;
2188
+ return /* @__PURE__ */ i("h5", { id: P, children: _ });
826
2189
  },
827
- h6: ({ children: p }) => {
828
- const C = `h6-${j.current++}`;
829
- return /* @__PURE__ */ t("h6", { id: C, children: p });
2190
+ h6: ({ children: _ }) => {
2191
+ const P = `h6-${V.current++}`;
2192
+ return /* @__PURE__ */ i("h6", { id: P, children: _ });
830
2193
  },
831
- p: ({ children: p }) => /* @__PURE__ */ t("p", { children: p }),
832
- ul: ({ children: p }) => /* @__PURE__ */ t("ul", { children: p }),
833
- ol: ({ children: p }) => /* @__PURE__ */ t("ol", { children: p }),
834
- li: ({ children: p }) => /* @__PURE__ */ t("li", { children: p }),
835
- code: ({ className: p, children: C, ...P }) => {
836
- if (!p)
837
- return /* @__PURE__ */ t("code", { ...P, children: C });
838
- const L = (p == null ? void 0 : p.replace("language-", "")) || "";
839
- return /* @__PURE__ */ d("div", { className: M.codeBlock, children: [
840
- L && /* @__PURE__ */ t("div", { className: M.codeLanguage, children: L }),
841
- /* @__PURE__ */ t("pre", { children: /* @__PURE__ */ t("code", { className: p, ...P, children: C }) })
2194
+ p: ({ children: _ }) => /* @__PURE__ */ i("p", { children: _ }),
2195
+ ul: ({ children: _ }) => /* @__PURE__ */ i("ul", { children: _ }),
2196
+ ol: ({ children: _ }) => /* @__PURE__ */ i("ol", { children: _ }),
2197
+ li: ({ children: _ }) => /* @__PURE__ */ i("li", { children: _ }),
2198
+ code: ({ className: _, children: P, ...A }) => {
2199
+ if (!_)
2200
+ return /* @__PURE__ */ i("code", { ...A, children: P });
2201
+ const k = (_ == null ? void 0 : _.replace("language-", "")) || "";
2202
+ return /* @__PURE__ */ T("div", { className: Q.codeBlock, children: [
2203
+ k && /* @__PURE__ */ i("div", { className: Q.codeLanguage, children: k }),
2204
+ /* @__PURE__ */ i("pre", { children: /* @__PURE__ */ i("code", { className: _, ...A, children: P }) })
842
2205
  ] });
843
2206
  },
844
- pre: ({ children: p }) => /* @__PURE__ */ t(K, { children: p }),
2207
+ pre: ({ children: _ }) => /* @__PURE__ */ i(me, { children: _ }),
845
2208
  // Let code component handle pre styling
846
- blockquote: ({ children: p }) => /* @__PURE__ */ t("blockquote", { children: p }),
847
- a: ({ href: p, children: C, ...P }) => {
848
- if (p != null && p.startsWith("./")) {
849
- const k = p.slice(2), L = pe(
850
- k,
851
- e,
852
- a.basePath
2209
+ blockquote: ({ children: _ }) => /* @__PURE__ */ i("blockquote", { children: _ }),
2210
+ a: ({ href: _, children: P, ...A }) => {
2211
+ if (_ != null && _.startsWith("./")) {
2212
+ const C = _.slice(2), k = Cn(
2213
+ C,
2214
+ t,
2215
+ n.basePath
853
2216
  );
854
- return /* @__PURE__ */ t("a", { href: L, ...P, children: C });
2217
+ return /* @__PURE__ */ i("a", { href: k, ...A, children: P });
855
2218
  }
856
- return p != null && p.startsWith("http://") || p != null && p.startsWith("https://") ? /* @__PURE__ */ t(
2219
+ return _ != null && _.startsWith("http://") || _ != null && _.startsWith("https://") ? /* @__PURE__ */ i(
857
2220
  "a",
858
2221
  {
859
- href: p,
2222
+ href: _,
860
2223
  target: "_blank",
861
2224
  rel: "noopener noreferrer",
862
- ...P,
863
- children: C
2225
+ ...A,
2226
+ children: P
864
2227
  }
865
- ) : /* @__PURE__ */ t("a", { href: p, ...P, children: C });
2228
+ ) : /* @__PURE__ */ i("a", { href: _, ...A, children: P });
866
2229
  },
867
- strong: ({ children: p }) => /* @__PURE__ */ t("strong", { children: p }),
868
- em: ({ children: p }) => /* @__PURE__ */ t("em", { children: p })
2230
+ strong: ({ children: _ }) => /* @__PURE__ */ i("strong", { children: _ }),
2231
+ em: ({ children: _ }) => /* @__PURE__ */ i("em", { children: _ })
869
2232
  },
870
2233
  children: l
871
2234
  }
872
2235
  ) }),
873
- a.articleCTA && /* @__PURE__ */ t("div", { children: a.articleCTA }),
874
- i.tags && i.tags.length > 0 && /* @__PURE__ */ t(
875
- _n,
2236
+ n.articleCTA && /* @__PURE__ */ i("div", { children: n.articleCTA }),
2237
+ d.tags && d.tags.length > 0 && /* @__PURE__ */ i(
2238
+ mo,
876
2239
  {
877
- tags: i.tags,
2240
+ tags: d.tags,
878
2241
  variant: "compact",
879
- onTagClick: (p) => D(p)
2242
+ onTagClick: (_) => N(_)
880
2243
  }
881
2244
  ),
882
- a.showArticleNavigation && /* @__PURE__ */ t(
883
- Ce,
2245
+ n.showArticleNavigation && /* @__PURE__ */ i(
2246
+ Ln,
884
2247
  {
885
- prevSlug: (xt = $.prev) == null ? void 0 : xt.slug,
886
- prevTitle: (It = $.prev) == null ? void 0 : It.title,
887
- nextSlug: (Ct = $.next) == null ? void 0 : Ct.slug,
888
- nextTitle: (yt = $.next) == null ? void 0 : yt.title,
889
- language: e
2248
+ prevSlug: (g = R.prev) == null ? void 0 : g.slug,
2249
+ prevTitle: (S = R.prev) == null ? void 0 : S.title,
2250
+ nextSlug: (M = R.next) == null ? void 0 : M.slug,
2251
+ nextTitle: ($ = R.next) == null ? void 0 : $.title,
2252
+ language: t
890
2253
  }
891
2254
  )
892
2255
  ] }),
893
- m && /* @__PURE__ */ t(Xe, { content: l, englishContent: h }),
894
- I && ((Lt = a.tagIndex) == null ? void 0 : Lt[e]) && /* @__PURE__ */ t(
895
- rn,
2256
+ y && /* @__PURE__ */ i(Xr, { content: l, englishContent: s }),
2257
+ I && ((x = n.tagIndex) == null ? void 0 : x[t]) && /* @__PURE__ */ i(
2258
+ io,
896
2259
  {
897
2260
  tag: I,
898
- results: a.tagIndex[e][I] || [],
899
- language: e,
900
- onClose: () => D(null)
2261
+ results: n.tagIndex[t][I] || [],
2262
+ language: t,
2263
+ onClose: () => N(null)
901
2264
  }
902
2265
  )
903
2266
  ] });
904
2267
  }
905
- const Ln = "_searchButton_1k9sl_1", Tn = "_searchIcon_1k9sl_17", Sn = "_searchHint_1k9sl_23", Pn = "_kbd_1k9sl_27", Dn = "_searchOverlay_1k9sl_42", Mn = "_searchModal_1k9sl_67", Bn = "_searchHeader_1k9sl_91", En = "_searchInput_1k9sl_105", Rn = "_closeButton_1k9sl_123", An = "_searchResults_1k9sl_144", On = "_resultsList_1k9sl_152", jn = "_resultItem_1k9sl_158", Wn = "_selected_1k9sl_173", Hn = "_resultTitle_1k9sl_176", zn = "_resultSlug_1k9sl_180", Fn = "_noResults_1k9sl_186", qn = "_searchHints_1k9sl_193", Un = "_hint_1k9sl_210", T = {
906
- searchButton: Ln,
907
- searchIcon: Tn,
908
- searchHint: Sn,
909
- kbd: Pn,
910
- searchOverlay: Dn,
911
- searchModal: Mn,
912
- searchHeader: Bn,
913
- searchInput: En,
914
- closeButton: Rn,
915
- searchResults: An,
916
- resultsList: On,
917
- resultItem: jn,
918
- selected: Wn,
919
- resultTitle: Hn,
920
- resultSlug: zn,
921
- noResults: Fn,
922
- searchHints: qn,
923
- hint: Un
2268
+ const Ao = "_searchButton_1k9sl_1", ko = "_searchIcon_1k9sl_17", No = "_searchHint_1k9sl_23", xo = "_kbd_1k9sl_27", Oo = "_searchOverlay_1k9sl_42", Ro = "_searchModal_1k9sl_67", $o = "_searchHeader_1k9sl_91", Lo = "_searchInput_1k9sl_105", Mo = "_closeButton_1k9sl_123", Do = "_searchResults_1k9sl_144", jo = "_resultsList_1k9sl_152", Bo = "_resultItem_1k9sl_158", Ho = "_selected_1k9sl_173", Fo = "_resultTitle_1k9sl_176", qo = "_resultSlug_1k9sl_180", Wo = "_noResults_1k9sl_186", Yo = "_searchHints_1k9sl_193", Uo = "_hint_1k9sl_210", Y = {
2269
+ searchButton: Ao,
2270
+ searchIcon: ko,
2271
+ searchHint: No,
2272
+ kbd: xo,
2273
+ searchOverlay: Oo,
2274
+ searchModal: Ro,
2275
+ searchHeader: $o,
2276
+ searchInput: Lo,
2277
+ closeButton: Mo,
2278
+ searchResults: Do,
2279
+ resultsList: jo,
2280
+ resultItem: Bo,
2281
+ selected: Ho,
2282
+ resultTitle: Fo,
2283
+ resultSlug: qo,
2284
+ noResults: Wo,
2285
+ searchHints: Yo,
2286
+ hint: Uo
924
2287
  };
925
- function Kn({ language: e }) {
926
- const { t: n } = A(), o = X(), { config: a, loadContent: c } = O(), [s, l] = y(!1), [g, h] = y(""), [u, i] = y([]), [f, _] = y(0), [v, w] = y([]), r = G(null), m = G(null), I = typeof navigator < "u" && /(Mac|iPhone|iPod|iPad)/i.test(navigator.platform) ? "⌘K" : "Ctrl+K";
927
- S(() => {
2288
+ function zo({ language: t }) {
2289
+ const { t: e } = J(), o = ge(), { config: n, loadContent: a } = Z(), [r, l] = F(!1), [c, s] = F(""), [u, d] = F([]), [h, f] = F(0), [v, E] = F([]), m = ve(null), y = ve(null), I = typeof navigator < "u" && /(Mac|iPhone|iPod|iPad)/i.test(navigator.platform) ? "⌘K" : "Ctrl+K";
2290
+ U(() => {
928
2291
  (async () => {
929
- if (a.navigationData)
2292
+ if (n.navigationData)
930
2293
  try {
931
- const B = (await ut(
932
- a.navigationData,
933
- e,
934
- c
935
- )).flatMap((j) => ot(j) ? j.items.map((q) => ({
936
- title: q.title,
937
- slug: q.slug
938
- })) : [{ title: j.title, slug: j.slug }]);
939
- w(B);
940
- } catch ($) {
941
- console.error("Failed to build search index:", $);
2294
+ const G = (await Ue(
2295
+ n.navigationData,
2296
+ t,
2297
+ a
2298
+ )).flatMap((V) => De(V) ? V.items.map((oe) => ({
2299
+ title: oe.title,
2300
+ slug: oe.slug
2301
+ })) : [{ title: V.title, slug: V.slug }]);
2302
+ E(G);
2303
+ } catch (R) {
2304
+ console.error("Failed to build search index:", R);
942
2305
  }
943
2306
  })();
944
- }, [a.navigationData, e, c]), S(() => {
945
- if (!g.trim()) {
946
- i([]), _(0);
2307
+ }, [n.navigationData, t, a]), U(() => {
2308
+ if (!c.trim()) {
2309
+ d([]), f(0);
947
2310
  return;
948
2311
  }
949
- const b = g.toLowerCase(), $ = v.filter(
950
- (B) => B.title.toLowerCase().includes(b) || B.slug.toLowerCase().includes(b)
2312
+ const p = c.toLowerCase(), R = v.filter(
2313
+ (G) => G.title.toLowerCase().includes(p) || G.slug.toLowerCase().includes(p)
951
2314
  );
952
- i($), _(0);
953
- }, [g]), S(() => {
954
- const b = ($) => {
955
- ($.metaKey || $.ctrlKey) && $.key === "k" && ($.preventDefault(), l(!0), setTimeout(() => {
956
- var B;
957
- return (B = r.current) == null ? void 0 : B.focus();
958
- }, 100)), $.key === "Escape" && s && (l(!1), h(""));
2315
+ d(R), f(0);
2316
+ }, [c]), U(() => {
2317
+ const p = (R) => {
2318
+ (R.metaKey || R.ctrlKey) && R.key === "k" && (R.preventDefault(), l(!0), setTimeout(() => {
2319
+ var G;
2320
+ return (G = m.current) == null ? void 0 : G.focus();
2321
+ }, 100)), R.key === "Escape" && r && (l(!1), s(""));
959
2322
  };
960
- return document.addEventListener("keydown", b), () => document.removeEventListener("keydown", b);
961
- }, [s]), S(() => {
962
- const b = () => {
2323
+ return document.addEventListener("keydown", p), () => document.removeEventListener("keydown", p);
2324
+ }, [r]), U(() => {
2325
+ const p = () => {
963
2326
  l(!0), setTimeout(() => {
964
- var B;
965
- return (B = r.current) == null ? void 0 : B.focus();
2327
+ var G;
2328
+ return (G = m.current) == null ? void 0 : G.focus();
966
2329
  }, 100);
967
- }, $ = () => {
968
- l(!1), h("");
2330
+ }, R = () => {
2331
+ l(!1), s("");
969
2332
  };
970
- return window.addEventListener("blog:open-search", b), window.addEventListener("blog:close-search", $), () => {
971
- window.removeEventListener("blog:open-search", b), window.removeEventListener("blog:close-search", $);
2333
+ return window.addEventListener("blog:open-search", p), window.addEventListener("blog:close-search", R), () => {
2334
+ window.removeEventListener("blog:open-search", p), window.removeEventListener("blog:close-search", R);
972
2335
  };
973
2336
  }, []);
974
- const D = (b) => {
975
- b.key === "ArrowDown" ? (b.preventDefault(), _(($) => Math.min($ + 1, u.length - 1))) : b.key === "ArrowUp" ? (b.preventDefault(), _(($) => Math.max($ - 1, 0))) : b.key === "Enter" && u[f] && (b.preventDefault(), H(u[f].slug));
2337
+ const N = (p) => {
2338
+ p.key === "ArrowDown" ? (p.preventDefault(), f((R) => Math.min(R + 1, u.length - 1))) : p.key === "ArrowUp" ? (p.preventDefault(), f((R) => Math.max(R - 1, 0))) : p.key === "Enter" && u[h] && (p.preventDefault(), D(u[h].slug));
976
2339
  };
977
- S(() => {
978
- const b = ($) => {
979
- m.current && !m.current.contains($.target) && (l(!1), h(""));
2340
+ U(() => {
2341
+ const p = (R) => {
2342
+ y.current && !y.current.contains(R.target) && (l(!1), s(""));
980
2343
  };
981
- return s && document.addEventListener("mousedown", b), () => document.removeEventListener("mousedown", b);
982
- }, [s]);
983
- const H = (b) => {
984
- const $ = a.basePath || "";
985
- o(`${$}/${e}/${b}`), l(!1), h("");
2344
+ return r && document.addEventListener("mousedown", p), () => document.removeEventListener("mousedown", p);
2345
+ }, [r]);
2346
+ const D = (p) => {
2347
+ const R = n.basePath || "";
2348
+ o(`${R}/${t}/${p}`), l(!1), s("");
986
2349
  };
987
- return /* @__PURE__ */ d(K, { children: [
988
- /* @__PURE__ */ d(
2350
+ return /* @__PURE__ */ T(me, { children: [
2351
+ /* @__PURE__ */ T(
989
2352
  "button",
990
2353
  {
991
2354
  type: "button",
992
- className: T.searchButton,
2355
+ className: Y.searchButton,
993
2356
  onClick: () => {
994
2357
  l(!0), setTimeout(() => {
995
- var b;
996
- return (b = r.current) == null ? void 0 : b.focus();
2358
+ var p;
2359
+ return (p = m.current) == null ? void 0 : p.focus();
997
2360
  }, 100);
998
2361
  },
999
- "aria-label": n("ui.search"),
2362
+ "aria-label": e("ui.search"),
1000
2363
  children: [
1001
- /* @__PURE__ */ t(Dt, { className: T.searchIcon }),
1002
- /* @__PURE__ */ t("span", { className: T.searchHint, children: n("ui.search") }),
1003
- /* @__PURE__ */ t("kbd", { className: T.kbd, children: I })
2364
+ /* @__PURE__ */ i(vt, { className: Y.searchIcon }),
2365
+ /* @__PURE__ */ i("span", { className: Y.searchHint, children: e("ui.search") }),
2366
+ /* @__PURE__ */ i("kbd", { className: Y.kbd, children: I })
1004
2367
  ]
1005
2368
  }
1006
2369
  ),
1007
- s && zt(
1008
- /* @__PURE__ */ t(
2370
+ r && qt(
2371
+ /* @__PURE__ */ i(
1009
2372
  "div",
1010
2373
  {
1011
- className: T.searchOverlay,
2374
+ className: Y.searchOverlay,
1012
2375
  onClick: () => {
1013
- l(!1), h("");
2376
+ l(!1), s("");
1014
2377
  },
1015
- children: /* @__PURE__ */ d(
2378
+ children: /* @__PURE__ */ T(
1016
2379
  "div",
1017
2380
  {
1018
- className: T.searchModal,
1019
- ref: m,
1020
- onClick: (b) => b.stopPropagation(),
2381
+ className: Y.searchModal,
2382
+ ref: y,
2383
+ onClick: (p) => p.stopPropagation(),
1021
2384
  children: [
1022
- /* @__PURE__ */ d("div", { className: T.searchHeader, children: [
1023
- /* @__PURE__ */ t(Dt, { className: T.searchIcon }),
1024
- /* @__PURE__ */ t(
2385
+ /* @__PURE__ */ T("div", { className: Y.searchHeader, children: [
2386
+ /* @__PURE__ */ i(vt, { className: Y.searchIcon }),
2387
+ /* @__PURE__ */ i(
1025
2388
  "input",
1026
2389
  {
1027
- ref: r,
2390
+ ref: m,
1028
2391
  type: "text",
1029
- className: T.searchInput,
1030
- placeholder: n("ui.searchPlaceholder"),
1031
- value: g,
1032
- onChange: (b) => h(b.target.value),
1033
- onKeyDown: D
2392
+ className: Y.searchInput,
2393
+ placeholder: e("ui.searchPlaceholder"),
2394
+ value: c,
2395
+ onChange: (p) => s(p.target.value),
2396
+ onKeyDown: N
1034
2397
  }
1035
2398
  ),
1036
- /* @__PURE__ */ t(
2399
+ /* @__PURE__ */ i(
1037
2400
  "button",
1038
2401
  {
1039
2402
  type: "button",
1040
- className: T.closeButton,
2403
+ className: Y.closeButton,
1041
2404
  onClick: () => {
1042
- l(!1), h("");
2405
+ l(!1), s("");
1043
2406
  },
1044
2407
  "aria-label": "Close search",
1045
- children: /* @__PURE__ */ t(bt, {})
2408
+ children: /* @__PURE__ */ i(dt, {})
1046
2409
  }
1047
2410
  )
1048
2411
  ] }),
1049
- g && /* @__PURE__ */ t("div", { className: T.searchResults, children: u.length === 0 ? /* @__PURE__ */ t("div", { className: T.noResults, children: n("ui.noSearchResults") }) : /* @__PURE__ */ t("ul", { className: T.resultsList, children: u.map((b, $) => /* @__PURE__ */ t("li", { children: /* @__PURE__ */ d(
2412
+ c && /* @__PURE__ */ i("div", { className: Y.searchResults, children: u.length === 0 ? /* @__PURE__ */ i("div", { className: Y.noResults, children: e("ui.noSearchResults") }) : /* @__PURE__ */ i("ul", { className: Y.resultsList, children: u.map((p, R) => /* @__PURE__ */ i("li", { children: /* @__PURE__ */ T(
1050
2413
  "button",
1051
2414
  {
1052
2415
  type: "button",
1053
- className: `${T.resultItem} ${$ === f ? T.selected : ""}`,
1054
- onClick: () => H(b.slug),
1055
- onMouseEnter: () => _($),
2416
+ className: `${Y.resultItem} ${R === h ? Y.selected : ""}`,
2417
+ onClick: () => D(p.slug),
2418
+ onMouseEnter: () => f(R),
1056
2419
  children: [
1057
- /* @__PURE__ */ t("div", { className: T.resultTitle, children: b.title }),
1058
- /* @__PURE__ */ d("div", { className: T.resultSlug, children: [
2420
+ /* @__PURE__ */ i("div", { className: Y.resultTitle, children: p.title }),
2421
+ /* @__PURE__ */ T("div", { className: Y.resultSlug, children: [
1059
2422
  "/",
1060
- b.slug
2423
+ p.slug
1061
2424
  ] })
1062
2425
  ]
1063
2426
  }
1064
- ) }, b.slug)) }) }),
1065
- !g && /* @__PURE__ */ d("div", { className: T.searchHints, children: [
1066
- /* @__PURE__ */ d("div", { className: T.hint, children: [
1067
- /* @__PURE__ */ t("kbd", { children: "↑" }),
1068
- /* @__PURE__ */ t("kbd", { children: "↓" }),
1069
- /* @__PURE__ */ t("span", { children: n("ui.searchNavigate") })
2427
+ ) }, p.slug)) }) }),
2428
+ !c && /* @__PURE__ */ T("div", { className: Y.searchHints, children: [
2429
+ /* @__PURE__ */ T("div", { className: Y.hint, children: [
2430
+ /* @__PURE__ */ i("kbd", { children: "↑" }),
2431
+ /* @__PURE__ */ i("kbd", { children: "↓" }),
2432
+ /* @__PURE__ */ i("span", { children: e("ui.searchNavigate") })
1070
2433
  ] }),
1071
- /* @__PURE__ */ d("div", { className: T.hint, children: [
1072
- /* @__PURE__ */ t("kbd", { children: "↵" }),
1073
- /* @__PURE__ */ t("span", { children: n("ui.searchSelect") })
2434
+ /* @__PURE__ */ T("div", { className: Y.hint, children: [
2435
+ /* @__PURE__ */ i("kbd", { children: "↵" }),
2436
+ /* @__PURE__ */ i("span", { children: e("ui.searchSelect") })
1074
2437
  ] }),
1075
- /* @__PURE__ */ d("div", { className: T.hint, children: [
1076
- /* @__PURE__ */ t("kbd", { children: "esc" }),
1077
- /* @__PURE__ */ t("span", { children: n("ui.searchClose") })
2438
+ /* @__PURE__ */ T("div", { className: Y.hint, children: [
2439
+ /* @__PURE__ */ i("kbd", { children: "esc" }),
2440
+ /* @__PURE__ */ i("span", { children: e("ui.searchClose") })
1078
2441
  ] })
1079
2442
  ] })
1080
2443
  ]
@@ -1086,546 +2449,566 @@ function Kn({ language: e }) {
1086
2449
  )
1087
2450
  ] });
1088
2451
  }
1089
- const Gn = "_header_jrobc_1", Qn = "_container_jrobc_24", Xn = "_content_jrobc_36", Yn = "_leftSection_jrobc_43", Vn = "_mobileMenuButton_jrobc_49", Jn = "_burgerIcon_jrobc_87", Zn = "_logo_jrobc_92", ta = "_nav_jrobc_98", ea = "_navLink_jrobc_109", na = "_externalIcon_jrobc_135", aa = "_supportDropdown_jrobc_141", oa = "_themeDropdown_jrobc_145", sa = "_themeButton_jrobc_149", ca = "_themeIcon_jrobc_171", ra = "_supportButton_jrobc_177", la = "_caretIcon_jrobc_198", ia = "_dropdownMenu_jrobc_208", da = "_dropdownItem_jrobc_221", ua = "_dropdownIcon_jrobc_244", x = {
1090
- header: Gn,
1091
- container: Qn,
1092
- content: Xn,
1093
- leftSection: Yn,
1094
- mobileMenuButton: Vn,
1095
- burgerIcon: Jn,
1096
- logo: Zn,
1097
- nav: ta,
1098
- navLink: ea,
2452
+ const Go = "_header_jrobc_1", Vo = "_container_jrobc_24", Xo = "_content_jrobc_36", Ko = "_leftSection_jrobc_43", Qo = "_mobileMenuButton_jrobc_49", Jo = "_burgerIcon_jrobc_87", Zo = "_logo_jrobc_92", ea = "_nav_jrobc_98", ta = "_navLink_jrobc_109", na = "_externalIcon_jrobc_135", ra = "_supportDropdown_jrobc_141", oa = "_themeDropdown_jrobc_145", aa = "_themeButton_jrobc_149", sa = "_themeIcon_jrobc_171", ia = "_supportButton_jrobc_177", ca = "_caretIcon_jrobc_198", la = "_dropdownMenu_jrobc_208", ua = "_dropdownItem_jrobc_221", da = "_dropdownIcon_jrobc_244", H = {
2453
+ header: Go,
2454
+ container: Vo,
2455
+ content: Xo,
2456
+ leftSection: Ko,
2457
+ mobileMenuButton: Qo,
2458
+ burgerIcon: Jo,
2459
+ logo: Zo,
2460
+ nav: ea,
2461
+ navLink: ta,
1099
2462
  externalIcon: na,
1100
- supportDropdown: aa,
2463
+ supportDropdown: ra,
1101
2464
  themeDropdown: oa,
1102
- themeButton: sa,
1103
- themeIcon: ca,
1104
- supportButton: ra,
1105
- caretIcon: la,
1106
- dropdownMenu: ia,
1107
- dropdownItem: da,
1108
- dropdownIcon: ua
2465
+ themeButton: aa,
2466
+ themeIcon: sa,
2467
+ supportButton: ia,
2468
+ caretIcon: ca,
2469
+ dropdownMenu: la,
2470
+ dropdownItem: ua,
2471
+ dropdownIcon: da
1109
2472
  };
1110
- function ha({ onMobileMenuToggle: e }) {
1111
- const { t: n, i18n: o } = A(), { config: a } = O(), c = a.header ?? {}, s = c.navLinks ?? [], l = c.dropdownItems ?? [], [g, h] = y(!1), [u, i] = y(!1), { theme: f, setTheme: _ } = Ut(), v = G(null), w = G(null);
1112
- return S(() => {
1113
- const r = (m) => {
1114
- v.current && !v.current.contains(m.target) && h(!1), w.current && !w.current.contains(m.target) && i(!1);
2473
+ function fa({ onMobileMenuToggle: t }) {
2474
+ const { t: e, i18n: o } = J(), { config: n } = Z(), a = n.header ?? {}, r = a.navLinks ?? [], l = a.dropdownItems ?? [], [c, s] = F(!1), [u, d] = F(!1), { theme: h, setTheme: f } = Ut(), v = ve(null), E = ve(null);
2475
+ return U(() => {
2476
+ const m = (y) => {
2477
+ v.current && !v.current.contains(y.target) && s(!1), E.current && !E.current.contains(y.target) && d(!1);
1115
2478
  };
1116
- return document.addEventListener("mousedown", r), () => document.removeEventListener("mousedown", r);
1117
- }, []), /* @__PURE__ */ t("header", { className: x.header, children: /* @__PURE__ */ t("div", { className: x.container, children: /* @__PURE__ */ d("div", { className: x.content, children: [
1118
- /* @__PURE__ */ d("div", { className: x.leftSection, children: [
1119
- /* @__PURE__ */ t(
2479
+ return document.addEventListener("mousedown", m), () => document.removeEventListener("mousedown", m);
2480
+ }, []), /* @__PURE__ */ i("header", { className: H.header, children: /* @__PURE__ */ i("div", { className: H.container, children: /* @__PURE__ */ T("div", { className: H.content, children: [
2481
+ /* @__PURE__ */ T("div", { className: H.leftSection, children: [
2482
+ /* @__PURE__ */ i(
1120
2483
  "button",
1121
2484
  {
1122
2485
  type: "button",
1123
- className: x.mobileMenuButton,
1124
- onClick: e,
2486
+ className: H.mobileMenuButton,
2487
+ onClick: t,
1125
2488
  "aria-label": "Open menu",
1126
- children: /* @__PURE__ */ t(ne, { className: x.burgerIcon })
2489
+ children: /* @__PURE__ */ i(un, { className: H.burgerIcon })
1127
2490
  }
1128
2491
  ),
1129
- /* @__PURE__ */ t("div", { className: x.logo })
2492
+ /* @__PURE__ */ i("div", { className: H.logo })
1130
2493
  ] }),
1131
- /* @__PURE__ */ d("nav", { className: x.nav, children: [
1132
- /* @__PURE__ */ t(Kn, { language: o.language }),
1133
- /* @__PURE__ */ d("div", { className: x.themeDropdown, ref: w, children: [
1134
- /* @__PURE__ */ d(
2494
+ /* @__PURE__ */ T("nav", { className: H.nav, children: [
2495
+ /* @__PURE__ */ i(zo, { language: o.language }),
2496
+ /* @__PURE__ */ T("div", { className: H.themeDropdown, ref: E, children: [
2497
+ /* @__PURE__ */ T(
1135
2498
  "button",
1136
2499
  {
1137
2500
  type: "button",
1138
- className: x.themeButton,
1139
- onClick: () => i(!u),
2501
+ className: H.themeButton,
2502
+ onClick: () => d(!u),
1140
2503
  "aria-expanded": u,
1141
2504
  "aria-haspopup": "true",
1142
- "aria-label": n("ui.theme"),
2505
+ "aria-label": e("ui.theme"),
1143
2506
  children: [
1144
- f === "light" && /* @__PURE__ */ t(Mt, { className: x.themeIcon }),
1145
- f === "dark" && /* @__PURE__ */ t(Bt, { className: x.themeIcon }),
1146
- f === "system" && /* @__PURE__ */ t(Et, { className: x.themeIcon }),
1147
- /* @__PURE__ */ t(pt, { className: x.caretIcon })
2507
+ h === "light" && /* @__PURE__ */ i(gt, { className: H.themeIcon }),
2508
+ h === "dark" && /* @__PURE__ */ i(_t, { className: H.themeIcon }),
2509
+ h === "system" && /* @__PURE__ */ i(yt, { className: H.themeIcon }),
2510
+ /* @__PURE__ */ i(ot, { className: H.caretIcon })
1148
2511
  ]
1149
2512
  }
1150
2513
  ),
1151
- u && /* @__PURE__ */ d("div", { className: x.dropdownMenu, children: [
1152
- /* @__PURE__ */ d(
2514
+ u && /* @__PURE__ */ T("div", { className: H.dropdownMenu, children: [
2515
+ /* @__PURE__ */ T(
1153
2516
  "button",
1154
2517
  {
1155
2518
  type: "button",
1156
2519
  onClick: () => {
1157
- _("light"), i(!1);
2520
+ f("light"), d(!1);
1158
2521
  },
1159
- className: x.dropdownItem,
2522
+ className: H.dropdownItem,
1160
2523
  children: [
1161
- /* @__PURE__ */ t(Mt, { className: x.dropdownIcon }),
1162
- n("ui.light")
2524
+ /* @__PURE__ */ i(gt, { className: H.dropdownIcon }),
2525
+ e("ui.light")
1163
2526
  ]
1164
2527
  }
1165
2528
  ),
1166
- /* @__PURE__ */ d(
2529
+ /* @__PURE__ */ T(
1167
2530
  "button",
1168
2531
  {
1169
2532
  type: "button",
1170
2533
  onClick: () => {
1171
- _("dark"), i(!1);
2534
+ f("dark"), d(!1);
1172
2535
  },
1173
- className: x.dropdownItem,
2536
+ className: H.dropdownItem,
1174
2537
  children: [
1175
- /* @__PURE__ */ t(Bt, { className: x.dropdownIcon }),
1176
- n("ui.dark")
2538
+ /* @__PURE__ */ i(_t, { className: H.dropdownIcon }),
2539
+ e("ui.dark")
1177
2540
  ]
1178
2541
  }
1179
2542
  ),
1180
- /* @__PURE__ */ d(
2543
+ /* @__PURE__ */ T(
1181
2544
  "button",
1182
2545
  {
1183
2546
  type: "button",
1184
2547
  onClick: () => {
1185
- _("system"), i(!1);
2548
+ f("system"), d(!1);
1186
2549
  },
1187
- className: x.dropdownItem,
2550
+ className: H.dropdownItem,
1188
2551
  children: [
1189
- /* @__PURE__ */ t(Et, { className: x.dropdownIcon }),
1190
- n("ui.system")
2552
+ /* @__PURE__ */ i(yt, { className: H.dropdownIcon }),
2553
+ e("ui.system")
1191
2554
  ]
1192
2555
  }
1193
2556
  )
1194
2557
  ] })
1195
2558
  ] }),
1196
- l.length > 0 && /* @__PURE__ */ d("div", { className: x.supportDropdown, ref: v, children: [
1197
- /* @__PURE__ */ d(
2559
+ l.length > 0 && /* @__PURE__ */ T("div", { className: H.supportDropdown, ref: v, children: [
2560
+ /* @__PURE__ */ T(
1198
2561
  "button",
1199
2562
  {
1200
2563
  type: "button",
1201
- className: x.supportButton,
1202
- onClick: () => h(!g),
1203
- "aria-expanded": g,
2564
+ className: H.supportButton,
2565
+ onClick: () => s(!c),
2566
+ "aria-expanded": c,
1204
2567
  "aria-haspopup": "true",
1205
2568
  children: [
1206
- n("ui.support"),
1207
- /* @__PURE__ */ t(pt, { className: x.caretIcon })
2569
+ e("ui.support"),
2570
+ /* @__PURE__ */ i(ot, { className: H.caretIcon })
1208
2571
  ]
1209
2572
  }
1210
2573
  ),
1211
- g && /* @__PURE__ */ t("div", { className: x.dropdownMenu, children: l.map((r, m) => {
1212
- const N = r.target ?? (r.url.startsWith("http") ? "_blank" : "_self"), I = r.rel ?? (N === "_blank" ? "noopener noreferrer" : void 0), D = r.icon;
1213
- return /* @__PURE__ */ d(
2574
+ c && /* @__PURE__ */ i("div", { className: H.dropdownMenu, children: l.map((m, y) => {
2575
+ const b = m.target ?? (m.url.startsWith("http") ? "_blank" : "_self"), I = m.rel ?? (b === "_blank" ? "noopener noreferrer" : void 0), N = m.icon;
2576
+ return /* @__PURE__ */ T(
1214
2577
  "a",
1215
2578
  {
1216
- href: r.url,
1217
- target: N,
2579
+ href: m.url,
2580
+ target: b,
1218
2581
  rel: I,
1219
- className: x.dropdownItem,
2582
+ className: H.dropdownItem,
1220
2583
  children: [
1221
- D && /* @__PURE__ */ t(D, { className: x.dropdownIcon }),
1222
- r.label
2584
+ N && /* @__PURE__ */ i(N, { className: H.dropdownIcon }),
2585
+ m.label
1223
2586
  ]
1224
2587
  },
1225
- m
2588
+ y
1226
2589
  );
1227
2590
  }) })
1228
2591
  ] }),
1229
- s.map((r, m) => {
1230
- const N = r.target ?? (typeof r.url == "string" && r.url.startsWith("http") ? "_blank" : "_self"), I = r.rel ?? (N === "_blank" ? "noopener noreferrer" : void 0), D = r.icon;
1231
- return /* @__PURE__ */ d(
2592
+ r.map((m, y) => {
2593
+ const b = m.target ?? (typeof m.url == "string" && m.url.startsWith("http") ? "_blank" : "_self"), I = m.rel ?? (b === "_blank" ? "noopener noreferrer" : void 0), N = m.icon;
2594
+ return /* @__PURE__ */ T(
1232
2595
  "a",
1233
2596
  {
1234
- href: r.url,
1235
- target: N,
2597
+ href: m.url,
2598
+ target: b,
1236
2599
  rel: I,
1237
- className: r.className ?? x.navLink,
2600
+ className: m.className ?? H.navLink,
1238
2601
  children: [
1239
- r.label,
1240
- D && /* @__PURE__ */ t(D, { className: x.externalIcon })
2602
+ m.label,
2603
+ N && /* @__PURE__ */ i(N, { className: H.externalIcon })
1241
2604
  ]
1242
2605
  },
1243
- m
2606
+ y
1244
2607
  );
1245
2608
  })
1246
2609
  ] })
1247
2610
  ] }) }) });
1248
2611
  }
1249
- function wt({
1250
- styles: e,
1251
- onLanguageChange: n
2612
+ function ht({
2613
+ styles: t,
2614
+ onLanguageChange: e
1252
2615
  }) {
1253
- const { i18n: o } = A(), a = Q(), c = X(), { config: s } = O(), [l, g] = y(!1), h = G(null), u = o.language, i = (_) => {
1254
- const v = s.basePath || "";
1255
- let w = a.pathname;
1256
- v && w.startsWith(v) && (w = w.slice(v.length));
1257
- const r = w.split("/").filter(Boolean), m = r[0];
1258
- let N = "";
1259
- s.supportedLanguages.includes(m) ? (r[0] = _, N = `${v}/${r.join("/")}`) : N = `${v}/${_}${w}`;
1260
- const I = N + a.search + a.hash;
1261
- o.changeLanguage(_), c(I), g(!1), n == null || n();
2616
+ const { i18n: o } = J(), n = Ee(), a = ge(), { config: r } = Z(), [l, c] = F(!1), s = ve(null), u = o.language, d = (f) => {
2617
+ const v = r.basePath || "";
2618
+ let E = n.pathname;
2619
+ v && E.startsWith(v) && (E = E.slice(v.length));
2620
+ const m = E.split("/").filter(Boolean), y = m[0];
2621
+ let b = "";
2622
+ r.supportedLanguages.includes(y) ? (m[0] = f, b = `${v}/${m.join("/")}`) : b = `${v}/${f}${E}`;
2623
+ const I = b + n.search + n.hash;
2624
+ o.changeLanguage(f), a(I), c(!1), e == null || e();
1262
2625
  };
1263
- S(() => {
1264
- const _ = (v) => {
1265
- h.current && !h.current.contains(v.target) && g(!1);
2626
+ U(() => {
2627
+ const f = (v) => {
2628
+ s.current && !s.current.contains(v.target) && c(!1);
1266
2629
  };
1267
- return document.addEventListener("mousedown", _), () => document.removeEventListener("mousedown", _);
2630
+ return document.addEventListener("mousedown", f), () => document.removeEventListener("mousedown", f);
1268
2631
  }, []);
1269
- const f = (_) => o.getFixedT(_)("language") || _;
1270
- return /* @__PURE__ */ d("div", { className: e.languageSelect, ref: h, children: [
1271
- /* @__PURE__ */ d(
2632
+ const h = (f) => o.getFixedT(f)("language") || f;
2633
+ return /* @__PURE__ */ T("div", { className: t.languageSelect, ref: s, children: [
2634
+ /* @__PURE__ */ T(
1272
2635
  "button",
1273
2636
  {
1274
2637
  type: "button",
1275
- className: e.languageButton,
1276
- onClick: () => g(!l),
2638
+ className: t.languageButton,
2639
+ onClick: () => c(!l),
1277
2640
  "aria-expanded": l,
1278
2641
  "aria-haspopup": "listbox",
1279
2642
  children: [
1280
- /* @__PURE__ */ t(ae, { className: e.icon }),
1281
- f(u),
1282
- /* @__PURE__ */ t(pt, { className: e.chevron })
2643
+ /* @__PURE__ */ i(dn, { className: t.icon }),
2644
+ h(u),
2645
+ /* @__PURE__ */ i(ot, { className: t.chevron })
1283
2646
  ]
1284
2647
  }
1285
2648
  ),
1286
- l && /* @__PURE__ */ t("div", { className: e.languageDropdown, role: "listbox", children: s.supportedLanguages.map((_) => /* @__PURE__ */ t(
2649
+ l && /* @__PURE__ */ i("div", { className: t.languageDropdown, role: "listbox", children: r.supportedLanguages.map((f) => /* @__PURE__ */ i(
1287
2650
  "button",
1288
2651
  {
1289
2652
  type: "button",
1290
- className: `${e.languageOption} ${_ === u ? e.selected : ""}`,
1291
- onClick: () => i(_),
2653
+ className: `${t.languageOption} ${f === u ? t.selected : ""}`,
2654
+ onClick: () => d(f),
1292
2655
  role: "option",
1293
- "aria-selected": _ === u,
1294
- children: f(_)
2656
+ "aria-selected": f === u,
2657
+ children: h(f)
1295
2658
  },
1296
- _
2659
+ f
1297
2660
  )) })
1298
2661
  ] });
1299
2662
  }
1300
- function Nt({ styles: e, onLinkClick: n }) {
1301
- const { i18n: o } = A(), a = Q(), { config: c, loadContent: s } = O(), [l, g] = y([]), [h, u] = y({}), i = o.language;
1302
- S(() => {
2663
+ function pt({ styles: t, onLinkClick: e }) {
2664
+ const { i18n: o } = J(), n = Ee(), { config: a, loadContent: r } = Z(), [l, c] = F([]), [s, u] = F({}), d = o.language;
2665
+ U(() => {
1303
2666
  (async () => {
1304
- if (c.navigationData)
2667
+ if (a.navigationData)
1305
2668
  try {
1306
- const m = await ut(
1307
- c.navigationData,
1308
- i,
1309
- s
2669
+ const y = await Ue(
2670
+ a.navigationData,
2671
+ d,
2672
+ r
1310
2673
  );
1311
- g(m);
1312
- const N = m.reduce(
1313
- (I, D, H) => {
1314
- if (ot(D)) {
1315
- const b = c.navigationData[H], $ = "items" in b && b.defaultOpen === !0;
1316
- I[D.title] = $;
2674
+ c(y);
2675
+ const b = y.reduce(
2676
+ (I, N, D) => {
2677
+ if (De(N)) {
2678
+ const p = a.navigationData[D], R = "items" in p && p.defaultOpen === !0;
2679
+ I[N.title] = R;
1317
2680
  }
1318
2681
  return I;
1319
2682
  },
1320
2683
  {}
1321
2684
  );
1322
- u(N);
1323
- } catch (m) {
1324
- console.error("Failed to load navigation data:", m);
2685
+ u(b);
2686
+ } catch (y) {
2687
+ console.error("Failed to load navigation data:", y);
1325
2688
  }
1326
2689
  })();
1327
- }, [i, c.navigationData, s]);
1328
- const f = (r) => {
1329
- u((m) => ({
1330
- ...m,
1331
- [r]: !m[r]
2690
+ }, [d, a.navigationData, r]);
2691
+ const h = (m) => {
2692
+ u((y) => ({
2693
+ ...y,
2694
+ [m]: !y[m]
1332
2695
  }));
1333
- }, _ = (r) => {
1334
- const m = c.basePath || "";
1335
- let N = a.pathname;
1336
- m && N.startsWith(m) && (N = N.slice(m.length));
1337
- const I = N.split("/").filter(Boolean);
1338
- return I[I.length - 1] === r;
1339
- }, v = (r) => {
1340
- const m = c.basePath || "";
1341
- let N = a.pathname;
1342
- m && N.startsWith(m) && (N = N.slice(m.length));
1343
- const I = N.split("/").filter(Boolean);
1344
- return I[0] && c.supportedLanguages.includes(I[0]) ? `${m}/${I[0]}/${r}` : `${m}/${i}/${r}`;
1345
- }, w = () => {
1346
- n == null || n();
2696
+ }, f = (m) => {
2697
+ const y = a.basePath || "";
2698
+ let b = n.pathname;
2699
+ y && b.startsWith(y) && (b = b.slice(y.length));
2700
+ const I = b.split("/").filter(Boolean);
2701
+ return I[I.length - 1] === m;
2702
+ }, v = (m) => {
2703
+ const y = a.basePath || "";
2704
+ let b = n.pathname;
2705
+ y && b.startsWith(y) && (b = b.slice(y.length));
2706
+ const I = b.split("/").filter(Boolean);
2707
+ return I[0] && a.supportedLanguages.includes(I[0]) ? `${y}/${I[0]}/${m}` : `${y}/${d}/${m}`;
2708
+ }, E = () => {
2709
+ e == null || e();
1347
2710
  };
1348
- return /* @__PURE__ */ t("div", { className: e.navigation, children: l.map((r) => ot(r) ? /* @__PURE__ */ d("div", { className: e.section, children: [
1349
- /* @__PURE__ */ d(
2711
+ return /* @__PURE__ */ i("div", { className: t.navigation, children: l.map((m) => De(m) ? /* @__PURE__ */ T("div", { className: t.section, children: [
2712
+ /* @__PURE__ */ T(
1350
2713
  "button",
1351
2714
  {
1352
2715
  type: "button",
1353
- className: `${e.sectionButton} ${h[r.title] ? e.expanded : ""}`,
1354
- onClick: () => f(r.title),
2716
+ className: `${t.sectionButton} ${s[m.title] ? t.expanded : ""}`,
2717
+ onClick: () => h(m.title),
1355
2718
  children: [
1356
- r.title,
1357
- /* @__PURE__ */ t(Ht, { className: e.icon })
2719
+ m.title,
2720
+ /* @__PURE__ */ i(Ft, { className: t.icon })
1358
2721
  ]
1359
2722
  }
1360
2723
  ),
1361
- h[r.title] && /* @__PURE__ */ t("div", { className: e.sectionItems, children: r.items.map((m) => /* @__PURE__ */ t(
1362
- dt,
2724
+ s[m.title] && /* @__PURE__ */ i("div", { className: t.sectionItems, children: m.items.map((y) => /* @__PURE__ */ i(
2725
+ qe,
1363
2726
  {
1364
- to: v(m.slug),
1365
- className: `${e.navItem} ${_(m.slug) ? e.active : ""}`,
1366
- onClick: w,
1367
- children: /* @__PURE__ */ t("div", { className: e.navItemContent, children: /* @__PURE__ */ t("span", { className: e.navItemTitle, children: m.title }) })
2727
+ to: v(y.slug),
2728
+ className: `${t.navItem} ${f(y.slug) ? t.active : ""}`,
2729
+ onClick: E,
2730
+ children: /* @__PURE__ */ i("div", { className: t.navItemContent, children: /* @__PURE__ */ i("span", { className: t.navItemTitle, children: y.title }) })
1368
2731
  },
1369
- m.slug
2732
+ y.slug
1370
2733
  )) })
1371
- ] }, r.title) : /* @__PURE__ */ t(
1372
- dt,
2734
+ ] }, m.title) : /* @__PURE__ */ i(
2735
+ qe,
1373
2736
  {
1374
- to: v(r.slug),
1375
- className: `${e.navItem} ${_(r.slug) ? e.active : ""}`,
1376
- onClick: w,
1377
- children: /* @__PURE__ */ t("div", { className: e.navItemContent, children: /* @__PURE__ */ t("span", { className: e.navItemTitle, children: r.title }) })
2737
+ to: v(m.slug),
2738
+ className: `${t.navItem} ${f(m.slug) ? t.active : ""}`,
2739
+ onClick: E,
2740
+ children: /* @__PURE__ */ i("div", { className: t.navItemContent, children: /* @__PURE__ */ i("span", { className: t.navItemTitle, children: m.title }) })
1378
2741
  },
1379
- r.slug
2742
+ m.slug
1380
2743
  )) });
1381
2744
  }
1382
- function Ao({
1383
- styles: e,
1384
- onLinkClick: n,
2745
+ function Bs({
2746
+ styles: t,
2747
+ onLinkClick: e,
1385
2748
  onLanguageChange: o
1386
2749
  }) {
1387
- return /* @__PURE__ */ d(K, { children: [
1388
- /* @__PURE__ */ t(wt, { styles: e, onLanguageChange: o }),
1389
- /* @__PURE__ */ t(Nt, { styles: e, onLinkClick: n })
2750
+ return /* @__PURE__ */ T(me, { children: [
2751
+ /* @__PURE__ */ i(ht, { styles: t, onLanguageChange: o }),
2752
+ /* @__PURE__ */ i(pt, { styles: t, onLinkClick: e })
1390
2753
  ] });
1391
2754
  }
1392
- const ma = "_backdrop_1a7pu_1", ga = "_open_1a7pu_13", _a = "_mobileMenu_1a7pu_18", pa = "_header_1a7pu_37", fa = "_brand_1a7pu_46", va = "_cloudIcon_1a7pu_53", ba = "_title_1a7pu_62", wa = "_closeButton_1a7pu_69", Na = "_closeIcon_1a7pu_101", ka = "_languageSection_1a7pu_106", $a = "_languageSelect_1a7pu_112", xa = "_languageButton_1a7pu_117", Ia = "_icon_1a7pu_156", Ca = "_chevron_1a7pu_162", ya = "_languageDropdown_1a7pu_172", La = "_languageOption_1a7pu_185", Ta = "_selected_1a7pu_226", Sa = "_scrollArea_1a7pu_231", Pa = "_navigation_1a7pu_237", Da = "_section_1a7pu_241", Ma = "_sectionButton_1a7pu_245", Ba = "_expanded_1a7pu_285", Ea = "_sectionItems_1a7pu_289", Ra = "_navItem_1a7pu_297", Aa = "_active_1a7pu_310", Oa = "_navItemContent_1a7pu_316", ja = "_navItemTitle_1a7pu_322", R = {
1393
- backdrop: ma,
1394
- open: ga,
1395
- mobileMenu: _a,
1396
- header: pa,
1397
- brand: fa,
1398
- cloudIcon: va,
1399
- title: ba,
1400
- closeButton: wa,
1401
- closeIcon: Na,
1402
- languageSection: ka,
1403
- languageSelect: $a,
1404
- languageButton: xa,
1405
- icon: Ia,
1406
- chevron: Ca,
1407
- languageDropdown: ya,
1408
- languageOption: La,
1409
- selected: Ta,
1410
- scrollArea: Sa,
1411
- navigation: Pa,
1412
- section: Da,
1413
- sectionButton: Ma,
1414
- expanded: Ba,
1415
- sectionItems: Ea,
1416
- navItem: Ra,
1417
- active: Aa,
1418
- navItemContent: Oa,
1419
- navItemTitle: ja
2755
+ const ha = "_backdrop_1a7pu_1", pa = "_open_1a7pu_13", ma = "_mobileMenu_1a7pu_18", va = "_header_1a7pu_37", ga = "_brand_1a7pu_46", _a = "_cloudIcon_1a7pu_53", ya = "_title_1a7pu_62", ba = "_closeButton_1a7pu_69", Ta = "_closeIcon_1a7pu_101", wa = "_languageSection_1a7pu_106", Ea = "_languageSelect_1a7pu_112", Ca = "_languageButton_1a7pu_117", Sa = "_icon_1a7pu_156", Pa = "_chevron_1a7pu_162", Ia = "_languageDropdown_1a7pu_172", Aa = "_languageOption_1a7pu_185", ka = "_selected_1a7pu_226", Na = "_scrollArea_1a7pu_231", xa = "_navigation_1a7pu_237", Oa = "_section_1a7pu_241", Ra = "_sectionButton_1a7pu_245", $a = "_expanded_1a7pu_285", La = "_sectionItems_1a7pu_289", Ma = "_navItem_1a7pu_297", Da = "_active_1a7pu_310", ja = "_navItemContent_1a7pu_316", Ba = "_navItemTitle_1a7pu_322", ne = {
2756
+ backdrop: ha,
2757
+ open: pa,
2758
+ mobileMenu: ma,
2759
+ header: va,
2760
+ brand: ga,
2761
+ cloudIcon: _a,
2762
+ title: ya,
2763
+ closeButton: ba,
2764
+ closeIcon: Ta,
2765
+ languageSection: wa,
2766
+ languageSelect: Ea,
2767
+ languageButton: Ca,
2768
+ icon: Sa,
2769
+ chevron: Pa,
2770
+ languageDropdown: Ia,
2771
+ languageOption: Aa,
2772
+ selected: ka,
2773
+ scrollArea: Na,
2774
+ navigation: xa,
2775
+ section: Oa,
2776
+ sectionButton: Ra,
2777
+ expanded: $a,
2778
+ sectionItems: La,
2779
+ navItem: Ma,
2780
+ active: Da,
2781
+ navItemContent: ja,
2782
+ navItemTitle: Ba
1420
2783
  };
1421
- function Wa({ isOpen: e, onClose: n }) {
1422
- const { config: o } = O(), a = o.logo;
1423
- return S(() => (e ? document.body.style.overflow = "hidden" : document.body.style.overflow = "unset", () => {
2784
+ function Ha({ isOpen: t, onClose: e }) {
2785
+ const { config: o } = Z(), n = o.logo;
2786
+ return U(() => (t ? document.body.style.overflow = "hidden" : document.body.style.overflow = "unset", () => {
1424
2787
  document.body.style.overflow = "unset";
1425
- }), [e]), S(() => {
1426
- const c = (s) => {
1427
- s.key === "Escape" && e && n();
2788
+ }), [t]), U(() => {
2789
+ const a = (r) => {
2790
+ r.key === "Escape" && t && e();
1428
2791
  };
1429
- return document.addEventListener("keydown", c), () => document.removeEventListener("keydown", c);
1430
- }, [e, n]), /* @__PURE__ */ d(K, { children: [
1431
- /* @__PURE__ */ t(
2792
+ return document.addEventListener("keydown", a), () => document.removeEventListener("keydown", a);
2793
+ }, [t, e]), /* @__PURE__ */ T(me, { children: [
2794
+ /* @__PURE__ */ i(
1432
2795
  "div",
1433
2796
  {
1434
- className: `${R.backdrop} ${e ? R.open : ""}`,
1435
- onClick: n
2797
+ className: `${ne.backdrop} ${t ? ne.open : ""}`,
2798
+ onClick: e
1436
2799
  }
1437
2800
  ),
1438
- /* @__PURE__ */ d("div", { className: `${R.mobileMenu} ${e ? R.open : ""}`, children: [
1439
- /* @__PURE__ */ d("div", { className: R.header, children: [
1440
- /* @__PURE__ */ d("div", { className: R.brand, children: [
1441
- a && /* @__PURE__ */ t(a, { className: R.cloudIcon }),
1442
- /* @__PURE__ */ t("h1", { className: R.title, children: o.title })
2801
+ /* @__PURE__ */ T("div", { className: `${ne.mobileMenu} ${t ? ne.open : ""}`, children: [
2802
+ /* @__PURE__ */ T("div", { className: ne.header, children: [
2803
+ /* @__PURE__ */ T("div", { className: ne.brand, children: [
2804
+ n && /* @__PURE__ */ i(n, { className: ne.cloudIcon }),
2805
+ /* @__PURE__ */ i("h1", { className: ne.title, children: o.title })
1443
2806
  ] }),
1444
- /* @__PURE__ */ t(
2807
+ /* @__PURE__ */ i(
1445
2808
  "button",
1446
2809
  {
1447
2810
  type: "button",
1448
- className: R.closeButton,
1449
- onClick: n,
2811
+ className: ne.closeButton,
2812
+ onClick: e,
1450
2813
  "aria-label": "Close menu",
1451
- children: /* @__PURE__ */ t(bt, { className: R.closeIcon })
2814
+ children: /* @__PURE__ */ i(dt, { className: ne.closeIcon })
1452
2815
  }
1453
2816
  )
1454
2817
  ] }),
1455
- /* @__PURE__ */ t("div", { className: R.languageSection, children: /* @__PURE__ */ t(wt, { styles: R, onLanguageChange: n }) }),
1456
- /* @__PURE__ */ t("div", { className: R.scrollArea, children: /* @__PURE__ */ t(Nt, { styles: R, onLinkClick: n }) })
2818
+ /* @__PURE__ */ i("div", { className: ne.languageSection, children: /* @__PURE__ */ i(ht, { styles: ne, onLanguageChange: e }) }),
2819
+ /* @__PURE__ */ i("div", { className: ne.scrollArea, children: /* @__PURE__ */ i(pt, { styles: ne, onLinkClick: e }) })
1457
2820
  ] })
1458
2821
  ] });
1459
2822
  }
1460
- const Ha = "_sidebar_1tdxt_1", za = "_header_1tdxt_17", Fa = "_brand_1tdxt_29", qa = "_cloudIcon_1tdxt_35", Ua = "_title_1tdxt_44", Ka = "_languageSelect_1tdxt_55", Ga = "_languageButton_1tdxt_61", Qa = "_icon_1tdxt_99", Xa = "_chevron_1tdxt_104", Ya = "_languageDropdown_1tdxt_114", Va = "_languageOption_1tdxt_128", Ja = "_selected_1tdxt_147", Za = "_scrollArea_1tdxt_152", to = "_navigation_1tdxt_158", eo = "_section_1tdxt_164", no = "_sectionButton_1tdxt_170", ao = "_expanded_1tdxt_213", oo = "_sectionItems_1tdxt_217", so = "_navItem_1tdxt_225", co = "_active_1tdxt_238", ro = "_navItemContent_1tdxt_243", U = {
1461
- sidebar: Ha,
1462
- header: za,
1463
- brand: Fa,
1464
- cloudIcon: qa,
2823
+ const Fa = "_sidebar_1tdxt_1", qa = "_header_1tdxt_17", Wa = "_brand_1tdxt_29", Ya = "_cloudIcon_1tdxt_35", Ua = "_title_1tdxt_44", za = "_languageSelect_1tdxt_55", Ga = "_languageButton_1tdxt_61", Va = "_icon_1tdxt_99", Xa = "_chevron_1tdxt_104", Ka = "_languageDropdown_1tdxt_114", Qa = "_languageOption_1tdxt_128", Ja = "_selected_1tdxt_147", Za = "_scrollArea_1tdxt_152", es = "_navigation_1tdxt_158", ts = "_section_1tdxt_164", ns = "_sectionButton_1tdxt_170", rs = "_expanded_1tdxt_213", os = "_sectionItems_1tdxt_217", as = "_navItem_1tdxt_225", ss = "_active_1tdxt_238", is = "_navItemContent_1tdxt_243", pe = {
2824
+ sidebar: Fa,
2825
+ header: qa,
2826
+ brand: Wa,
2827
+ cloudIcon: Ya,
1465
2828
  title: Ua,
1466
- languageSelect: Ka,
2829
+ languageSelect: za,
1467
2830
  languageButton: Ga,
1468
- icon: Qa,
2831
+ icon: Va,
1469
2832
  chevron: Xa,
1470
- languageDropdown: Ya,
1471
- languageOption: Va,
2833
+ languageDropdown: Ka,
2834
+ languageOption: Qa,
1472
2835
  selected: Ja,
1473
2836
  scrollArea: Za,
1474
- navigation: to,
1475
- section: eo,
1476
- sectionButton: no,
1477
- expanded: ao,
1478
- sectionItems: oo,
1479
- navItem: so,
1480
- active: co,
1481
- navItemContent: ro
2837
+ navigation: es,
2838
+ section: ts,
2839
+ sectionButton: ns,
2840
+ expanded: rs,
2841
+ sectionItems: os,
2842
+ navItem: as,
2843
+ active: ss,
2844
+ navItemContent: is
1482
2845
  };
1483
- function lo() {
1484
- const { config: e } = O(), n = e.logo, o = e.supportedLanguages.length > 1;
1485
- return /* @__PURE__ */ d("div", { className: U.sidebar, children: [
1486
- /* @__PURE__ */ d("div", { className: U.header, children: [
1487
- /* @__PURE__ */ d("div", { className: U.brand, children: [
1488
- n && /* @__PURE__ */ t(n, { className: U.cloudIcon }),
1489
- /* @__PURE__ */ t("div", { className: U.title, children: e.title })
2846
+ function cs() {
2847
+ const { config: t } = Z(), e = t.logo, o = t.supportedLanguages.length > 1;
2848
+ return /* @__PURE__ */ T("div", { className: pe.sidebar, children: [
2849
+ /* @__PURE__ */ T("div", { className: pe.header, children: [
2850
+ /* @__PURE__ */ T("div", { className: pe.brand, children: [
2851
+ e && /* @__PURE__ */ i(e, { className: pe.cloudIcon }),
2852
+ /* @__PURE__ */ i("div", { className: pe.title, children: t.title })
1490
2853
  ] }),
1491
- o && /* @__PURE__ */ t(wt, { styles: U })
2854
+ o && /* @__PURE__ */ i(ht, { styles: pe })
1492
2855
  ] }),
1493
- /* @__PURE__ */ t("div", { className: U.scrollArea, children: /* @__PURE__ */ t(Nt, { styles: U }) })
2856
+ /* @__PURE__ */ i("div", { className: pe.scrollArea, children: /* @__PURE__ */ i(pt, { styles: pe }) })
1494
2857
  ] });
1495
2858
  }
1496
- const io = "_app_wf6ni_1", uo = "_layout_wf6ni_9", ho = "_main_wf6ni_15", mo = "_fullWidth_wf6ni_21", go = "_contentWrapper_wf6ni_30", at = {
1497
- app: io,
1498
- layout: uo,
1499
- main: ho,
1500
- fullWidth: mo,
1501
- contentWrapper: go
2859
+ const ls = "_app_wf6ni_1", us = "_layout_wf6ni_9", ds = "_main_wf6ni_15", fs = "_fullWidth_wf6ni_21", hs = "_contentWrapper_wf6ni_30", Me = {
2860
+ app: ls,
2861
+ layout: us,
2862
+ main: ds,
2863
+ fullWidth: fs,
2864
+ contentWrapper: hs
1502
2865
  };
1503
- function _o({ children: e }) {
1504
- const { language: n } = vt(), { i18n: o } = A(), { config: a } = O(), [c, s] = y(!1);
1505
- S(() => {
1506
- n && a.supportedLanguages.includes(n) && o.changeLanguage(n);
1507
- }, [n, o, a.supportedLanguages]);
2866
+ function ps({ children: t }) {
2867
+ const { language: e } = ut(), { i18n: o } = J(), { config: n } = Z(), [a, r] = F(!1);
2868
+ U(() => {
2869
+ e && n.supportedLanguages.includes(e) && o.changeLanguage(e);
2870
+ }, [e, o, n.supportedLanguages]);
1508
2871
  const l = () => {
1509
- s(!c);
1510
- }, g = () => {
1511
- s(!1);
2872
+ r(!a);
2873
+ }, c = () => {
2874
+ r(!1);
1512
2875
  };
1513
- if (!n || !a.supportedLanguages.includes(n))
1514
- return /* @__PURE__ */ t(Wt, { to: "/en/welcome", replace: !0 });
1515
- const h = !!a.header, u = a.showSideMenu !== !1, i = a.contentMaxWidth ? { width: "100%", maxWidth: a.contentMaxWidth } : void 0;
1516
- return /* @__PURE__ */ d("div", { className: at.app, children: [
1517
- h && /* @__PURE__ */ t(ha, { onMobileMenuToggle: l }),
1518
- /* @__PURE__ */ t(Wa, { isOpen: c, onClose: g }),
1519
- /* @__PURE__ */ d("div", { className: at.layout, children: [
1520
- u && /* @__PURE__ */ t(lo, {}),
1521
- /* @__PURE__ */ t(
2876
+ if (!e || !n.supportedLanguages.includes(e))
2877
+ return /* @__PURE__ */ i(Ht, { to: "/en/welcome", replace: !0 });
2878
+ const s = !!n.header, u = n.showSideMenu !== !1, d = n.contentMaxWidth ? { width: "100%", maxWidth: n.contentMaxWidth } : void 0;
2879
+ return /* @__PURE__ */ T("div", { className: Me.app, children: [
2880
+ s && /* @__PURE__ */ i(fa, { onMobileMenuToggle: l }),
2881
+ /* @__PURE__ */ i(Ha, { isOpen: a, onClose: c }),
2882
+ /* @__PURE__ */ T("div", { className: Me.layout, children: [
2883
+ u && /* @__PURE__ */ i(cs, {}),
2884
+ /* @__PURE__ */ i(
1522
2885
  "main",
1523
2886
  {
1524
- className: `${at.main} ${u ? "" : at.fullWidth}`,
1525
- children: /* @__PURE__ */ t("div", { className: at.contentWrapper, style: i, children: e })
2887
+ className: `${Me.main} ${u ? "" : Me.fullWidth}`,
2888
+ children: /* @__PURE__ */ i("div", { className: Me.contentWrapper, style: d, children: t })
1526
2889
  }
1527
2890
  )
1528
2891
  ] })
1529
2892
  ] });
1530
2893
  }
1531
- const po = "_homePage_1lc5u_1", fo = "_header_1lc5u_20", vo = "_title_1lc5u_24", bo = "_articlesList_1lc5u_31", wo = "_articleCard_1lc5u_37", No = "_articleTitle_1lc5u_56", ko = "_articleDescription_1lc5u_63", $o = "_loading_1lc5u_70", xo = "_empty_1lc5u_71", F = {
1532
- homePage: po,
1533
- header: fo,
1534
- title: vo,
1535
- articlesList: bo,
1536
- articleCard: wo,
1537
- articleTitle: No,
1538
- articleDescription: ko,
1539
- loading: $o,
1540
- empty: xo
2894
+ const ms = "_homePage_10e4f_1", vs = "_header_10e4f_20", gs = "_title_10e4f_24", _s = "_articlesList_10e4f_31", ys = "_articleCard_10e4f_37", bs = "_articleTitle_10e4f_56", Ts = "_articleDescription_10e4f_63", ws = "_empty_10e4f_71", Es = "_skeletonCard_10e4f_85", Cs = "_skeletonTitle_10e4f_95", Ss = "_skeletonText_10e4f_104", Ps = "_skeletonMetadata_10e4f_113", X = {
2895
+ homePage: ms,
2896
+ header: vs,
2897
+ title: gs,
2898
+ articlesList: _s,
2899
+ articleCard: ys,
2900
+ articleTitle: bs,
2901
+ articleDescription: Ts,
2902
+ empty: ws,
2903
+ skeletonCard: Es,
2904
+ skeletonTitle: Cs,
2905
+ skeletonText: Ss,
2906
+ skeletonMetadata: Ps
1541
2907
  };
1542
- function Io() {
1543
- const { i18n: e, t: n } = A(), { config: o, loadContent: a } = O(), c = X(), [s, l] = y([]), [g, h] = y(!0);
1544
- S(() => {
2908
+ function Is() {
2909
+ const { i18n: t, t: e } = J(), { config: o, loadContent: n } = Z(), a = ge(), [r, l] = F([]), [c, s] = F(!0);
2910
+ U(() => {
1545
2911
  (async () => {
1546
2912
  try {
1547
- const f = o.navigationData || [];
1548
- if (f.length === 0) return;
1549
- const _ = await ut(
1550
- f,
1551
- e.language,
1552
- a
1553
- ), v = [];
1554
- for (const r of _)
1555
- if (ot(r))
1556
- for (const m of r.items)
1557
- v.push({
1558
- slug: m.slug,
1559
- title: m.title
2913
+ const v = o.navigationData || [];
2914
+ if (v.length === 0) return;
2915
+ const E = await Ue(
2916
+ v,
2917
+ t.language,
2918
+ n
2919
+ ), m = [];
2920
+ for (const b of E)
2921
+ if (De(b))
2922
+ for (const I of b.items)
2923
+ m.push({
2924
+ slug: I.slug,
2925
+ title: I.title
1560
2926
  });
1561
2927
  else
1562
- v.push({
1563
- slug: r.slug,
1564
- title: r.title
2928
+ m.push({
2929
+ slug: b.slug,
2930
+ title: b.title
1565
2931
  });
1566
- const w = await Promise.all(
1567
- v.map(async (r) => {
2932
+ const y = await Promise.all(
2933
+ m.map(async (b) => {
1568
2934
  try {
1569
- const m = await a(e.language, r.slug);
2935
+ const I = await n(t.language, b.slug);
1570
2936
  return {
1571
- ...r,
1572
- title: m.frontmatter.title || r.title,
1573
- date: m.frontmatter.date,
1574
- author: m.frontmatter.author,
1575
- description: m.frontmatter.description
2937
+ ...b,
2938
+ title: I.frontmatter.title || b.title,
2939
+ date: I.frontmatter.date,
2940
+ author: I.frontmatter.author,
2941
+ description: I.frontmatter.description
1576
2942
  };
1577
2943
  } catch {
1578
- return r;
2944
+ return b;
1579
2945
  }
1580
2946
  })
1581
2947
  );
1582
- w.sort((r, m) => r.date && m.date ? new Date(m.date).getTime() - new Date(r.date).getTime() : r.date ? -1 : m.date ? 1 : r.title.localeCompare(m.title)), l(w.slice(0, 50));
1583
- } catch (f) {
1584
- console.error("Failed to load articles:", f);
2948
+ y.sort((b, I) => b.date && I.date ? new Date(I.date).getTime() - new Date(b.date).getTime() : b.date ? -1 : I.date ? 1 : b.title.localeCompare(I.title)), l(y.slice(0, 50));
2949
+ } catch (v) {
2950
+ console.error("Failed to load articles:", v);
1585
2951
  } finally {
1586
- h(!1);
2952
+ s(!1);
1587
2953
  }
1588
2954
  })();
1589
- }, [e.language, o.navigationData, a]);
1590
- const u = (i) => {
1591
- const f = o.basePath || "";
1592
- window.scrollTo({ top: 0, left: 0, behavior: "auto" }), c(`${f}/${e.language}/${i}`);
2955
+ }, [t.language, o.navigationData, n]);
2956
+ const u = (f) => {
2957
+ const v = o.basePath || "";
2958
+ window.scrollTo({ top: 0, left: 0, behavior: "auto" }), a(`${v}/${t.language}/${f}`);
1593
2959
  };
1594
- return g ? /* @__PURE__ */ t("div", { className: F.loading, children: n("ui.loadingArticles") }) : s.length === 0 ? /* @__PURE__ */ t("div", { className: F.empty, children: n("ui.noArticlesFound") }) : /* @__PURE__ */ d(K, { children: [
1595
- /* @__PURE__ */ d("div", { className: F.homePage, children: [
1596
- /* @__PURE__ */ t("div", { className: F.header, children: /* @__PURE__ */ t("h1", { className: F.title, children: n("ui.latestPosts") }) }),
1597
- /* @__PURE__ */ t("div", { className: F.articlesList, children: s.map((i) => /* @__PURE__ */ d(
2960
+ if (c)
2961
+ return /* @__PURE__ */ T("div", { className: X.homePage, children: [
2962
+ /* @__PURE__ */ i("div", { className: X.header, children: /* @__PURE__ */ i("h1", { className: X.title, children: e("ui.latestPosts") }) }),
2963
+ /* @__PURE__ */ i("div", { className: X.articlesList, children: [...Array(5)].map((f, v) => /* @__PURE__ */ T("div", { className: X.skeletonCard, children: [
2964
+ /* @__PURE__ */ i("div", { className: X.skeletonTitle }),
2965
+ /* @__PURE__ */ i("div", { className: X.skeletonText }),
2966
+ /* @__PURE__ */ i("div", { className: X.skeletonText }),
2967
+ /* @__PURE__ */ i("div", { className: X.skeletonMetadata })
2968
+ ] }, v)) })
2969
+ ] });
2970
+ if (r.length === 0)
2971
+ return /* @__PURE__ */ i("div", { className: X.empty, children: e("ui.noArticlesFound") });
2972
+ const d = o.title, h = o.description;
2973
+ return /* @__PURE__ */ T(me, { children: [
2974
+ /* @__PURE__ */ T(Ye, { children: [
2975
+ /* @__PURE__ */ i("title", { children: d }),
2976
+ h && /* @__PURE__ */ i("meta", { name: "description", content: h })
2977
+ ] }),
2978
+ /* @__PURE__ */ T("div", { className: X.homePage, children: [
2979
+ /* @__PURE__ */ i("div", { className: X.header, children: /* @__PURE__ */ i("h1", { className: X.title, children: e("ui.latestPosts") }) }),
2980
+ /* @__PURE__ */ i("div", { className: X.articlesList, children: r.map((f) => /* @__PURE__ */ T(
1598
2981
  "button",
1599
2982
  {
1600
- className: F.articleCard,
1601
- onClick: () => u(i.slug),
2983
+ className: X.articleCard,
2984
+ onClick: () => u(f.slug),
1602
2985
  type: "button",
1603
2986
  children: [
1604
- /* @__PURE__ */ t("h2", { className: F.articleTitle, children: i.title }),
1605
- i.description && /* @__PURE__ */ t("p", { className: F.articleDescription, children: i.description }),
1606
- /* @__PURE__ */ t(ft, { date: i.date, author: i.author })
2987
+ /* @__PURE__ */ i("h2", { className: X.articleTitle, children: f.title }),
2988
+ f.description && /* @__PURE__ */ i("p", { className: X.articleDescription, children: f.description }),
2989
+ /* @__PURE__ */ i(lt, { date: f.date, author: f.author })
1607
2990
  ]
1608
2991
  },
1609
- i.slug
2992
+ f.slug
1610
2993
  )) })
1611
2994
  ] }),
1612
- /* @__PURE__ */ t(De, {})
2995
+ /* @__PURE__ */ i(Fn, {})
1613
2996
  ] });
1614
2997
  }
1615
- function Oo() {
1616
- const { language: e } = vt(), { config: n } = O();
1617
- return /* @__PURE__ */ t(_o, { children: /* @__PURE__ */ d(Yt, { children: [
1618
- /* @__PURE__ */ t(Pt, { path: "/:slug", element: /* @__PURE__ */ t(yn, { language: e }) }),
1619
- /* @__PURE__ */ t(
1620
- Pt,
2998
+ function Hs() {
2999
+ const { language: t } = ut(), { config: e } = Z();
3000
+ return /* @__PURE__ */ i(ps, { children: /* @__PURE__ */ T(rn, { children: [
3001
+ /* @__PURE__ */ i(mt, { path: "/:slug", element: /* @__PURE__ */ i(Io, { language: t }) }),
3002
+ /* @__PURE__ */ i(
3003
+ mt,
1621
3004
  {
1622
3005
  index: !0,
1623
- element: (n.defaultRoute || "latest") === "latest" ? /* @__PURE__ */ t(Io, {}) : /* @__PURE__ */ t(Wt, { to: `./${n.defaultRoute}`, replace: !0 })
3006
+ element: (e.defaultRoute || "latest") === "latest" ? /* @__PURE__ */ i(Is, {}) : /* @__PURE__ */ i(Ht, { to: `./${e.defaultRoute}`, replace: !0 })
1624
3007
  }
1625
3008
  )
1626
3009
  ] }) });
1627
3010
  }
1628
- function jo() {
3011
+ function Fs() {
1629
3012
  return {
1630
3013
  openSearchModal: () => {
1631
3014
  window.dispatchEvent(new CustomEvent("blog:open-search"));
@@ -1635,47 +3018,48 @@ function jo() {
1635
3018
  }
1636
3019
  };
1637
3020
  }
1638
- function Wo() {
1639
- const { i18n: e } = A(), n = Q(), o = X(), { config: a } = O();
1640
- return (c) => {
1641
- const s = a.basePath || "";
1642
- let l = n.pathname;
1643
- s && l.startsWith(s) && (l = l.slice(s.length));
1644
- const g = l.split("/").filter(Boolean), h = g[0];
3021
+ function qs() {
3022
+ const { i18n: t } = J(), e = Ee(), o = ge(), { config: n } = Z();
3023
+ return (a) => {
3024
+ const r = n.basePath || "";
3025
+ let l = e.pathname;
3026
+ r && l.startsWith(r) && (l = l.slice(r.length));
3027
+ const c = l.split("/").filter(Boolean), s = c[0];
1645
3028
  let u = "";
1646
- a.supportedLanguages.includes(h) ? (g[0] = c, u = `${s}/${g.join("/")}`) : u = `${s}/${c}${l}`;
1647
- const i = u + n.search + n.hash;
1648
- e.changeLanguage(c), o(i);
3029
+ n.supportedLanguages.includes(s) ? (c[0] = a, u = `${r}/${c.join("/")}`) : u = `${r}/${a}${l}`;
3030
+ const d = u + e.search + e.hash;
3031
+ t.changeLanguage(a), o(d);
1649
3032
  };
1650
3033
  }
1651
3034
  export {
1652
- he as AdvancedModeToggle,
1653
- Ce as ArticleNavigation,
1654
- Ro as BlogProvider,
1655
- me as BlogRoot,
1656
- De as BlogSidebar,
1657
- yn as ContentPage,
1658
- _o as DocumentationLayout,
1659
- Oo as DocumentationRoutes,
1660
- ha as Header,
1661
- Io as HomePage,
1662
- wt as LanguageSelector,
1663
- ft as Metadata,
1664
- Wa as MobileMenu,
1665
- Ao as NavigationContent,
1666
- Nt as NavigationMenu,
1667
- Kn as SearchBar,
1668
- lo as Sidebar,
1669
- Xe as TableOfContents,
1670
- rn as TagResultsModal,
1671
- _n as Tags,
1672
- Eo as createBlogUtils,
1673
- Ft as createContentLoaders,
1674
- Z as generateHeadingId,
1675
- _e as getAdjacentArticles,
1676
- ut as getNavigationData,
1677
- O as useBlogConfig,
1678
- Wo as useLanguageChange,
1679
- jo as useSearchModal,
3035
+ bn as AdvancedModeToggle,
3036
+ Ln as ArticleNavigation,
3037
+ js as BlogProvider,
3038
+ Tn as BlogRoot,
3039
+ Fn as BlogSidebar,
3040
+ Vn as Breadcrumb,
3041
+ Io as ContentPage,
3042
+ ps as DocumentationLayout,
3043
+ Hs as DocumentationRoutes,
3044
+ fa as Header,
3045
+ Is as HomePage,
3046
+ ht as LanguageSelector,
3047
+ lt as Metadata,
3048
+ Ha as MobileMenu,
3049
+ Bs as NavigationContent,
3050
+ pt as NavigationMenu,
3051
+ zo as SearchBar,
3052
+ cs as Sidebar,
3053
+ Xr as TableOfContents,
3054
+ io as TagResultsModal,
3055
+ mo as Tags,
3056
+ Ds as createBlogUtils,
3057
+ Wt as createContentLoaders,
3058
+ Ae as generateHeadingId,
3059
+ En as getAdjacentArticles,
3060
+ Ue as getNavigationData,
3061
+ Z as useBlogConfig,
3062
+ qs as useLanguageChange,
3063
+ Fs as useSearchModal,
1680
3064
  Ut as useTheme
1681
3065
  };