@x-wave/blog 1.1.0 → 1.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.js +472 -481
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -1,21 +1,21 @@
1
- var Wt = Object.defineProperty;
2
- var zt = (e, t, n) => t in e ? Wt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
- var z = (e, t, n) => zt(e, typeof t != "symbol" ? t + "" : t, n);
1
+ var Ut = Object.defineProperty;
2
+ var Wt = (e, t, n) => t in e ? Ut(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
+ var z = (e, t, n) => Wt(e, typeof t != "symbol" ? t + "" : t, n);
4
4
  import { jsxs as m, jsx as o, Fragment as G } from "react/jsx-runtime";
5
5
  import { useTranslation as D } from "react-i18next";
6
- import { useLocation as te, useNavigate as Z, Link as Ne, useParams as Ke, Navigate as Nt, Routes as Kt, Route as lt } from "react-router-dom";
7
- import { CaretLeft as Vt, CaretRight as It, ArrowSquareOut as Yt, User as Gt, CalendarBlank as Qt, X as Ve, Tag as Xt, MagnifyingGlass as dt, List as Zt, Sun as ut, Moon as ht, Monitor as mt, CaretDown as je, Globe as Jt } from "@phosphor-icons/react";
8
- import Q, { Component as Ye, useState as I, useEffect as L, createContext as en, useContext as tn, useRef as X } from "react";
9
- import nn from "i18next";
10
- import an from "react-markdown";
11
- import on from "remark-gfm";
6
+ import { useLocation as te, useNavigate as Z, Link as Ne, useParams as Ke, Navigate as Nt, Routes as zt, Route as lt } from "react-router-dom";
7
+ import { CaretLeft as Kt, CaretRight as It, ArrowSquareOut as Vt, User as Yt, CalendarBlank as Gt, X as Ve, Tag as Qt, MagnifyingGlass as dt, List as Xt, Sun as ut, Moon as ht, Monitor as mt, CaretDown as je, Globe as Zt } from "@phosphor-icons/react";
8
+ import Q, { Component as Ye, useState as I, useEffect as L, createContext as Jt, useContext as en, useRef as X } from "react";
9
+ import tn from "i18next";
10
+ import nn from "react-markdown";
11
+ import an from "remark-gfm";
12
12
  import { createPortal as xt } from "react-dom";
13
- const rn = "_tabContainer_zk6h4_1", sn = "_tab_zk6h4_1", cn = "_active_zk6h4_45", ue = {
14
- tabContainer: rn,
15
- tab: sn,
16
- active: cn
13
+ const on = "_tabContainer_zk6h4_1", rn = "_tab_zk6h4_1", sn = "_active_zk6h4_45", ue = {
14
+ tabContainer: on,
15
+ tab: rn,
16
+ active: sn
17
17
  };
18
- function ln({ hasAdvanced: e }) {
18
+ function cn({ hasAdvanced: e }) {
19
19
  const { t } = D(), n = te(), a = Z();
20
20
  if (!e) return null;
21
21
  const r = new URLSearchParams(n.search).has("advanced"), c = () => {
@@ -55,9 +55,9 @@ function ln({ hasAdvanced: e }) {
55
55
  function Ge(e) {
56
56
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
57
57
  }
58
- var Ee, ft;
59
- function dn() {
60
- if (ft) return Ee;
58
+ var Pe, ft;
59
+ function ln() {
60
+ if (ft) return Pe;
61
61
  ft = 1;
62
62
  var e = typeof Element < "u", t = typeof Map == "function", n = typeof Set == "function", a = typeof ArrayBuffer == "function" && !!ArrayBuffer.isView;
63
63
  function s(r, c) {
@@ -106,7 +106,7 @@ function dn() {
106
106
  }
107
107
  return r !== r && c !== c;
108
108
  }
109
- return Ee = function(c, d) {
109
+ return Pe = function(c, d) {
110
110
  try {
111
111
  return s(c, d);
112
112
  } catch (i) {
@@ -114,14 +114,14 @@ function dn() {
114
114
  return console.warn("react-fast-compare cannot handle circular refs"), !1;
115
115
  throw i;
116
116
  }
117
- }, Ee;
117
+ }, Pe;
118
118
  }
119
- var un = dn();
120
- const hn = /* @__PURE__ */ Ge(un);
121
- var Ae, pt;
122
- function mn() {
123
- if (pt) return Ae;
124
- pt = 1;
119
+ var dn = ln();
120
+ const un = /* @__PURE__ */ Ge(dn);
121
+ var Ae, gt;
122
+ function hn() {
123
+ if (gt) return Ae;
124
+ gt = 1;
125
125
  var e = function(t, n, a, s, r, c, d, i) {
126
126
  if (process.env.NODE_ENV !== "production" && n === void 0)
127
127
  throw new Error("invariant requires an error message argument");
@@ -132,10 +132,10 @@ function mn() {
132
132
  "Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings."
133
133
  );
134
134
  else {
135
- var u = [a, s, r, c, d, i], p = 0;
135
+ var u = [a, s, r, c, d, i], f = 0;
136
136
  l = new Error(
137
137
  n.replace(/%s/g, function() {
138
- return u[p++];
138
+ return u[f++];
139
139
  })
140
140
  ), l.name = "Invariant Violation";
141
141
  }
@@ -144,10 +144,10 @@ function mn() {
144
144
  };
145
145
  return Ae = e, Ae;
146
146
  }
147
- var fn = mn();
148
- const gt = /* @__PURE__ */ Ge(fn);
147
+ var mn = hn();
148
+ const pt = /* @__PURE__ */ Ge(mn);
149
149
  var Oe, _t;
150
- function pn() {
150
+ function fn() {
151
151
  return _t || (_t = 1, Oe = function(t, n, a, s) {
152
152
  var r = a ? a.call(s, t, n) : void 0;
153
153
  if (r !== void 0)
@@ -163,15 +163,15 @@ function pn() {
163
163
  var u = c[l];
164
164
  if (!i(u))
165
165
  return !1;
166
- var p = t[u], h = n[u];
167
- if (r = a ? a.call(s, p, h, u) : void 0, r === !1 || r === void 0 && p !== h)
166
+ var f = t[u], g = n[u];
167
+ if (r = a ? a.call(s, f, g, u) : void 0, r === !1 || r === void 0 && f !== g)
168
168
  return !1;
169
169
  }
170
170
  return !0;
171
171
  }), Oe;
172
172
  }
173
- var gn = pn();
174
- const _n = /* @__PURE__ */ Ge(gn);
173
+ var gn = fn();
174
+ const pn = /* @__PURE__ */ Ge(gn);
175
175
  var St = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "head", e.HTML = "html", e.LINK = "link", e.META = "meta", e.NOSCRIPT = "noscript", e.SCRIPT = "script", e.STYLE = "style", e.TITLE = "title", e.FRAGMENT = "Symbol(react.fragment)", e))(St || {}), De = {
176
176
  link: { rel: ["amphtml", "canonical", "alternate"] },
177
177
  script: { type: ["application/ld+json"] },
@@ -203,7 +203,7 @@ var St = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
203
203
  "http-equiv": "httpEquiv",
204
204
  itemprop: "itemProp",
205
205
  tabindex: "tabIndex"
206
- }, vn = Object.entries(Qe).reduce(
206
+ }, _n = Object.entries(Qe).reduce(
207
207
  (e, [t, n]) => (e[n] = t, e),
208
208
  {}
209
209
  ), U = "data-rh", ie = {
@@ -220,7 +220,7 @@ var St = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
220
220
  return a[t];
221
221
  }
222
222
  return null;
223
- }, bn = (e) => {
223
+ }, vn = (e) => {
224
224
  let t = le(
225
225
  e,
226
226
  "title"
@@ -231,8 +231,8 @@ var St = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
231
231
  return n.replace(/%s/g, () => t);
232
232
  const a = le(e, ie.DEFAULT_TITLE);
233
233
  return t || a || void 0;
234
- }, yn = (e) => le(e, ie.ON_CHANGE_CLIENT_STATE) || (() => {
235
- }), Me = (e, t) => t.filter((n) => typeof n[e] < "u").map((n) => n[e]).reduce((n, a) => ({ ...n, ...a }), {}), wn = (e, t) => t.filter((n) => typeof n.base < "u").map((n) => n.base).reverse().reduce((n, a) => {
234
+ }, bn = (e) => le(e, ie.ON_CHANGE_CLIENT_STATE) || (() => {
235
+ }), Me = (e, t) => t.filter((n) => typeof n[e] < "u").map((n) => n[e]).reduce((n, a) => ({ ...n, ...a }), {}), yn = (e, t) => t.filter((n) => typeof n.base < "u").map((n) => n.base).reverse().reduce((n, a) => {
236
236
  if (!n.length) {
237
237
  const s = Object.keys(a);
238
238
  for (let r = 0; r < s.length; r += 1) {
@@ -242,23 +242,23 @@ var St = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
242
242
  }
243
243
  }
244
244
  return n;
245
- }, []), Tn = (e) => console && typeof console.warn == "function" && console.warn(e), he = (e, t, n) => {
245
+ }, []), wn = (e) => console && typeof console.warn == "function" && console.warn(e), he = (e, t, n) => {
246
246
  const a = {};
247
- return n.filter((s) => Array.isArray(s[e]) ? !0 : (typeof s[e] < "u" && Tn(
247
+ return n.filter((s) => Array.isArray(s[e]) ? !0 : (typeof s[e] < "u" && wn(
248
248
  `Helmet: ${e} should be of type "Array". Instead found type "${typeof s[e]}"`
249
249
  ), !1)).map((s) => s[e]).reverse().reduce((s, r) => {
250
250
  const c = {};
251
251
  r.filter((i) => {
252
252
  let l;
253
253
  const u = Object.keys(i);
254
- for (let h = 0; h < u.length; h += 1) {
255
- const g = u[h], y = g.toLowerCase();
256
- t.indexOf(y) !== -1 && !(l === "rel" && i[l].toLowerCase() === "canonical") && !(y === "rel" && i[y].toLowerCase() === "stylesheet") && (l = y), t.indexOf(g) !== -1 && (g === "innerHTML" || g === "cssText" || g === "itemprop") && (l = g);
254
+ for (let g = 0; g < u.length; g += 1) {
255
+ const _ = u[g], b = _.toLowerCase();
256
+ t.indexOf(b) !== -1 && !(l === "rel" && i[l].toLowerCase() === "canonical") && !(b === "rel" && i[b].toLowerCase() === "stylesheet") && (l = b), t.indexOf(_) !== -1 && (_ === "innerHTML" || _ === "cssText" || _ === "itemprop") && (l = _);
257
257
  }
258
258
  if (!l || !i[l])
259
259
  return !1;
260
- const p = i[l].toLowerCase();
261
- return a[l] || (a[l] = {}), c[l] || (c[l] = {}), a[l][p] ? !1 : (c[l][p] = !0, !0);
260
+ const f = i[l].toLowerCase();
261
+ return a[l] || (a[l] = {}), c[l] || (c[l] = {}), a[l][f] ? !1 : (c[l][f] = !0, !0);
262
262
  }).reverse().forEach((i) => s.push(i));
263
263
  const d = Object.keys(c);
264
264
  for (let i = 0; i < d.length; i += 1) {
@@ -270,15 +270,15 @@ var St = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
270
270
  }
271
271
  return s;
272
272
  }, []).reverse();
273
- }, kn = (e, t) => {
273
+ }, Tn = (e, t) => {
274
274
  if (Array.isArray(e) && e.length) {
275
275
  for (let n = 0; n < e.length; n += 1)
276
276
  if (e[n][t])
277
277
  return !0;
278
278
  }
279
279
  return !1;
280
- }, Cn = (e) => ({
281
- baseTag: wn([
280
+ }, kn = (e) => ({
281
+ baseTag: yn([
282
282
  "href"
283
283
  /* HREF */
284
284
  ], e),
@@ -311,7 +311,7 @@ var St = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
311
311
  "innerHTML"
312
312
  /* INNER_HTML */
313
313
  ], e),
314
- onChangeClientState: yn(e),
314
+ onChangeClientState: bn(e),
315
315
  scriptTags: he(
316
316
  "script",
317
317
  [
@@ -325,31 +325,31 @@ var St = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
325
325
  "cssText"
326
326
  /* CSS_TEXT */
327
327
  ], e),
328
- title: bn(e),
328
+ title: vn(e),
329
329
  titleAttributes: Me("titleAttributes", e),
330
- prioritizeSeoTags: kn(e, ie.PRIORITIZE_SEO_TAGS)
331
- }), Lt = (e) => Array.isArray(e) ? e.join("") : e, $n = (e, t) => {
330
+ prioritizeSeoTags: Tn(e, ie.PRIORITIZE_SEO_TAGS)
331
+ }), Lt = (e) => Array.isArray(e) ? e.join("") : e, Cn = (e, t) => {
332
332
  const n = Object.keys(e);
333
333
  for (let a = 0; a < n.length; a += 1)
334
334
  if (t[n[a]] && t[n[a]].includes(e[n[a]]))
335
335
  return !0;
336
336
  return !1;
337
337
  }, Re = (e, t) => Array.isArray(e) ? e.reduce(
338
- (n, a) => ($n(a, t) ? n.priority.push(a) : n.default.push(a), n),
338
+ (n, a) => (Cn(a, t) ? n.priority.push(a) : n.default.push(a), n),
339
339
  { priority: [], default: [] }
340
340
  ) : { default: e, priority: [] }, bt = (e, t) => ({
341
341
  ...e,
342
342
  [t]: void 0
343
- }), Nn = [
343
+ }), $n = [
344
344
  "noscript",
345
345
  "script",
346
346
  "style"
347
347
  /* STYLE */
348
- ], Fe = (e, t = !0) => t === !1 ? String(e) : String(e).replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#x27;"), Pt = (e) => Object.keys(e).reduce((t, n) => {
348
+ ], Fe = (e, t = !0) => t === !1 ? String(e) : String(e).replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#x27;"), Et = (e) => Object.keys(e).reduce((t, n) => {
349
349
  const a = typeof e[n] < "u" ? `${n}="${e[n]}"` : `${n}`;
350
350
  return t ? `${t} ${a}` : a;
351
- }, ""), In = (e, t, n, a) => {
352
- const s = Pt(n), r = Lt(t);
351
+ }, ""), Nn = (e, t, n, a) => {
352
+ const s = Et(n), r = Lt(t);
353
353
  return s ? `<${e} ${U}="true" ${s}>${Fe(
354
354
  r,
355
355
  a
@@ -357,22 +357,22 @@ var St = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
357
357
  r,
358
358
  a
359
359
  )}</${e}>`;
360
- }, xn = (e, t, n = !0) => t.reduce((a, s) => {
360
+ }, In = (e, t, n = !0) => t.reduce((a, s) => {
361
361
  const r = s, c = Object.keys(r).filter(
362
362
  (l) => !(l === "innerHTML" || l === "cssText")
363
363
  ).reduce((l, u) => {
364
- const p = typeof r[u] > "u" ? u : `${u}="${Fe(r[u], n)}"`;
365
- return l ? `${l} ${p}` : p;
366
- }, ""), d = r.innerHTML || r.cssText || "", i = Nn.indexOf(e) === -1;
364
+ const f = typeof r[u] > "u" ? u : `${u}="${Fe(r[u], n)}"`;
365
+ return l ? `${l} ${f}` : f;
366
+ }, ""), d = r.innerHTML || r.cssText || "", i = $n.indexOf(e) === -1;
367
367
  return `${a}<${e} ${U}="true" ${c}${i ? "/>" : `>${d}</${e}>`}`;
368
- }, ""), Et = (e, t = {}) => Object.keys(e).reduce((n, a) => {
368
+ }, ""), Pt = (e, t = {}) => Object.keys(e).reduce((n, a) => {
369
369
  const s = Qe[a];
370
370
  return n[s || a] = e[a], n;
371
- }, t), Sn = (e, t, n) => {
371
+ }, t), xn = (e, t, n) => {
372
372
  const a = {
373
373
  key: t,
374
374
  [U]: !0
375
- }, s = Et(n, a);
375
+ }, s = Pt(n, a);
376
376
  return [Q.createElement("title", s, t)];
377
377
  }, $e = (e, t) => t.map((n, a) => {
378
378
  const s = {
@@ -391,22 +391,22 @@ var St = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
391
391
  switch (e) {
392
392
  case "title":
393
393
  return {
394
- toComponent: () => Sn(e, t.title, t.titleAttributes),
395
- toString: () => In(e, t.title, t.titleAttributes, n)
394
+ toComponent: () => xn(e, t.title, t.titleAttributes),
395
+ toString: () => Nn(e, t.title, t.titleAttributes, n)
396
396
  };
397
397
  case "bodyAttributes":
398
398
  case "htmlAttributes":
399
399
  return {
400
- toComponent: () => Et(t),
401
- toString: () => Pt(t)
400
+ toComponent: () => Pt(t),
401
+ toString: () => Et(t)
402
402
  };
403
403
  default:
404
404
  return {
405
405
  toComponent: () => $e(e, t),
406
- toString: () => xn(e, t, n)
406
+ toString: () => In(e, t, n)
407
407
  };
408
408
  }
409
- }, Ln = ({ metaTags: e, linkTags: t, scriptTags: n, encode: a }) => {
409
+ }, Sn = ({ metaTags: e, linkTags: t, scriptTags: n, encode: a }) => {
410
410
  const s = Re(e, De.meta), r = Re(t, De.link), c = Re(n, De.script);
411
411
  return {
412
412
  priorityMethods: {
@@ -428,7 +428,7 @@ var St = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
428
428
  linkTags: r.default,
429
429
  scriptTags: c.default
430
430
  };
431
- }, Pn = (e) => {
431
+ }, Ln = (e) => {
432
432
  const {
433
433
  baseTag: t,
434
434
  bodyAttributes: n,
@@ -440,24 +440,24 @@ var St = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
440
440
  titleAttributes: i,
441
441
  prioritizeSeoTags: l
442
442
  } = e;
443
- let { linkTags: u, metaTags: p, scriptTags: h } = e, g = {
443
+ let { linkTags: u, metaTags: f, scriptTags: g } = e, _ = {
444
444
  toComponent: () => {
445
445
  },
446
446
  toString: () => ""
447
447
  };
448
- return l && ({ priorityMethods: g, linkTags: u, metaTags: p, scriptTags: h } = Ln(e)), {
449
- priority: g,
448
+ return l && ({ priorityMethods: _, linkTags: u, metaTags: f, scriptTags: g } = Sn(e)), {
449
+ priority: _,
450
450
  base: F("base", t, a),
451
451
  bodyAttributes: F("bodyAttributes", n, a),
452
452
  htmlAttributes: F("htmlAttributes", s, a),
453
453
  link: F("link", u, a),
454
- meta: F("meta", p, a),
454
+ meta: F("meta", f, a),
455
455
  noscript: F("noscript", r, a),
456
- script: F("script", h, a),
456
+ script: F("script", g, a),
457
457
  style: F("style", c, a),
458
458
  title: F("title", { title: d, titleAttributes: i }, a)
459
459
  };
460
- }, qe = Pn, Ce = [], At = !!(typeof window < "u" && window.document && window.document.createElement), Ue = class {
460
+ }, qe = Ln, Ce = [], At = !!(typeof window < "u" && window.document && window.document.createElement), Ue = class {
461
461
  constructor(e, t) {
462
462
  z(this, "instances", []);
463
463
  z(this, "canUseDOM", At);
@@ -514,8 +514,8 @@ var St = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
514
514
  else if (l === "cssText")
515
515
  i.styleSheet ? i.styleSheet.cssText = d.cssText : i.appendChild(document.createTextNode(d.cssText));
516
516
  else {
517
- const u = l, p = typeof d[u] > "u" ? "" : d[u];
518
- i.setAttribute(l, p);
517
+ const u = l, f = typeof d[u] > "u" ? "" : d[u];
518
+ i.setAttribute(l, f);
519
519
  }
520
520
  i.setAttribute(U, "true"), s.some((l, u) => (c = u, i.isEqualNode(l))) ? s.splice(c, 1) : r.push(i);
521
521
  }), s.forEach((d) => {
@@ -539,7 +539,7 @@ var St = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
539
539
  for (let d = r.length - 1; d >= 0; d -= 1)
540
540
  n.removeAttribute(r[d]);
541
541
  s.length === r.length ? n.removeAttribute(U) : n.getAttribute(U) !== c.join(",") && n.setAttribute(U, c.join(","));
542
- }, An = (e, t) => {
542
+ }, Pn = (e, t) => {
543
543
  typeof e < "u" && document.title !== e && (document.title = Lt(e)), We("title", t);
544
544
  }, yt = (e, t) => {
545
545
  const {
@@ -552,35 +552,35 @@ var St = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
552
552
  onChangeClientState: i,
553
553
  scriptTags: l,
554
554
  styleTags: u,
555
- title: p,
556
- titleAttributes: h
555
+ title: f,
556
+ titleAttributes: g
557
557
  } = e;
558
- We("body", a), We("html", s), An(p, h);
559
- const g = {
558
+ We("body", a), We("html", s), Pn(f, g);
559
+ const _ = {
560
560
  baseTag: re("base", n),
561
561
  linkTags: re("link", r),
562
562
  metaTags: re("meta", c),
563
563
  noscriptTags: re("noscript", d),
564
564
  scriptTags: re("script", l),
565
565
  styleTags: re("style", u)
566
- }, y = {}, f = {};
567
- Object.keys(g).forEach((_) => {
568
- const { newTags: b, oldTags: w } = g[_];
569
- b.length && (y[_] = b), w.length && (f[_] = g[_].oldTags);
570
- }), t && t(), i(e, y, f);
571
- }, me = null, On = (e) => {
566
+ }, b = {}, h = {};
567
+ Object.keys(_).forEach((p) => {
568
+ const { newTags: y, oldTags: C } = _[p];
569
+ y.length && (b[p] = y), C.length && (h[p] = _[p].oldTags);
570
+ }), t && t(), i(e, b, h);
571
+ }, me = null, An = (e) => {
572
572
  me && cancelAnimationFrame(me), e.defer ? me = requestAnimationFrame(() => {
573
573
  yt(e, () => {
574
574
  me = null;
575
575
  });
576
576
  }) : (yt(e), me = null);
577
- }, Dn = On, wt = class extends Ye {
577
+ }, On = An, wt = class extends Ye {
578
578
  constructor() {
579
579
  super(...arguments);
580
580
  z(this, "rendered", !1);
581
581
  }
582
582
  shouldComponentUpdate(t) {
583
- return !_n(t, this.props);
583
+ return !pn(t, this.props);
584
584
  }
585
585
  componentDidUpdate() {
586
586
  this.emitChange();
@@ -592,13 +592,13 @@ var St = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
592
592
  emitChange() {
593
593
  const { helmetInstances: t, setHelmet: n } = this.props.context;
594
594
  let a = null;
595
- const s = Cn(
595
+ const s = kn(
596
596
  t.get().map((r) => {
597
597
  const c = { ...r.props };
598
598
  return delete c.context, c;
599
599
  })
600
600
  );
601
- Dt.canUseDOM ? Dn(s) : qe && (a = qe(s)), n(a);
601
+ Dt.canUseDOM ? On(s) : qe && (a = qe(s)), n(a);
602
602
  }
603
603
  // componentWillMount will be deprecated
604
604
  // for SSR, initialize on first render
@@ -613,9 +613,9 @@ var St = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
613
613
  render() {
614
614
  return this.init(), null;
615
615
  }
616
- }, He, Mt = (He = class extends Ye {
616
+ }, He, Dn = (He = class extends Ye {
617
617
  shouldComponentUpdate(e) {
618
- return !hn(bt(this.props, "helmetData"), bt(e, "helmetData"));
618
+ return !un(bt(this.props, "helmetData"), bt(e, "helmetData"));
619
619
  }
620
620
  mapNestedChildrenToProps(e, t) {
621
621
  if (!t)
@@ -683,12 +683,12 @@ var St = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
683
683
  }), n;
684
684
  }
685
685
  warnOnInvalidChildren(e, t) {
686
- return gt(
686
+ return pt(
687
687
  vt.some((n) => e.type === n),
688
688
  typeof e.type == "function" ? "You may be attempting to nest <Helmet> components within each other, which is not allowed. Refer to our API for more information." : `Only elements types ${vt.join(
689
689
  ", "
690
690
  )} are allowed. Helmet does not support rendering <${e.type}> elements. Refer to our API for more information.`
691
- ), gt(
691
+ ), pt(
692
692
  !t || typeof t == "string" || Array.isArray(t) && !t.some((n) => typeof n != "string"),
693
693
  `Helmet expects a string as a child of <${e.type}>. Did you forget to wrap your children in braces? ( <${e.type}>{\`\`}</${e.type}> ) Refer to our API for more information.`
694
694
  ), !0;
@@ -698,7 +698,7 @@ var St = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
698
698
  return Q.Children.forEach(e, (a) => {
699
699
  if (!a || !a.props)
700
700
  return;
701
- const { children: s, ...r } = a.props, c = Object.keys(r).reduce((i, l) => (i[vn[l] || l] = r[l], i), {});
701
+ const { children: s, ...r } = a.props, c = Object.keys(r).reduce((i, l) => (i[_n[l] || l] = r[l], i), {});
702
702
  let { type: d } = a;
703
703
  switch (typeof d == "symbol" ? d = d.toString() : this.warnOnInvalidChildren(a, s), d) {
704
704
  case "Symbol(react.fragment)":
@@ -739,7 +739,7 @@ var St = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
739
739
  function Mn({ children: e }) {
740
740
  return /* @__PURE__ */ o("div", { className: "xw-blog-root", children: e });
741
741
  }
742
- function Rt(e) {
742
+ function Mt(e) {
743
743
  function t(n) {
744
744
  const a = n.match(/^---\s*\n([\s\S]*?)\n---\s*\n/);
745
745
  if (!a) return { frontmatter: {}, content: n };
@@ -748,21 +748,21 @@ function Rt(e) {
748
748
  const i = [];
749
749
  for (const u of r.split(`
750
750
  `)) {
751
- const p = u.trim();
752
- if (p.startsWith("-")) {
751
+ const f = u.trim();
752
+ if (f.startsWith("-")) {
753
753
  if (d) {
754
- const h = p.substring(1).trim();
755
- i.push(h);
754
+ const g = f.substring(1).trim();
755
+ i.push(g);
756
756
  }
757
757
  continue;
758
758
  }
759
- if (d && !p.startsWith("-") && (s[c] = i.slice(), i.length = 0, d = !1), p != null && p.includes(":")) {
760
- const [h, ...g] = p.split(":"), y = g.join(":").trim();
761
- if (c = h.trim(), !y) {
759
+ if (d && !f.startsWith("-") && (s[c] = i.slice(), i.length = 0, d = !1), f != null && f.includes(":")) {
760
+ const [g, ..._] = f.split(":"), b = _.join(":").trim();
761
+ if (c = g.trim(), !b) {
762
762
  d = !0;
763
763
  continue;
764
764
  }
765
- y === "true" ? s[c] = !0 : y === "false" ? s[c] = !1 : s[c] = y;
765
+ b === "true" ? s[c] = !0 : b === "false" ? s[c] = !1 : s[c] = b;
766
766
  }
767
767
  }
768
768
  d && i.length > 0 && (s[c] = i);
@@ -806,12 +806,12 @@ function Rt(e) {
806
806
  );
807
807
  for (const c of r)
808
808
  try {
809
- const d = e[c], i = await d(), { frontmatter: l, content: u } = t(i), p = c.split("/").pop() || "", h = p.replace(".mdx", "").replace("-advanced", ""), g = typeof l.title == "string" ? l.title : void 0, y = u.match(/^#\s+(.+)$/m), f = g || (y ? y[1].trim() : h);
810
- if (p.includes("-advanced")) continue;
811
- const _ = l.tags;
812
- if (_ && Array.isArray(_))
813
- for (const b of _)
814
- a[b] || (a[b] = []), a[b].some((w) => w.slug === h) || a[b].push({ slug: h, title: f });
809
+ const d = e[c], i = await d(), { frontmatter: l, content: u } = t(i), f = c.split("/").pop() || "", g = f.replace(".mdx", "").replace("-advanced", ""), _ = typeof l.title == "string" ? l.title : void 0, b = u.match(/^#\s+(.+)$/m), h = _ || (b ? b[1].trim() : g);
810
+ if (f.includes("-advanced")) continue;
811
+ const p = l.tags;
812
+ if (p && Array.isArray(p))
813
+ for (const y of p)
814
+ a[y] || (a[y] = []), a[y].some((C) => C.slug === g) || a[y].push({ slug: g, title: h });
815
815
  } catch (d) {
816
816
  console.warn(`Failed to process ${c}:`, d);
817
817
  }
@@ -819,21 +819,21 @@ function Rt(e) {
819
819
  }
820
820
  };
821
821
  }
822
- function ps(e) {
823
- const t = Rt(e);
822
+ function gs(e) {
823
+ const t = Mt(e);
824
824
  return {
825
825
  mdxFiles: e,
826
826
  loadContent: t.loadMDXContent,
827
827
  loadEnglishContent: t.loadEnglishContent
828
828
  };
829
829
  }
830
- const Tt = "app-theme", Bt = () => typeof window > "u" ? "light" : window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light", kt = (e) => e === "system" ? Bt() : e, Ht = (e) => {
830
+ const Tt = "app-theme", Rt = () => typeof window > "u" ? "light" : window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light", kt = (e) => e === "system" ? Rt() : e, Bt = (e) => {
831
831
  const t = () => e || (typeof window > "u" ? "system" : localStorage.getItem(Tt) || "system"), [n, a] = I(t);
832
832
  return L(() => {
833
833
  const r = kt(n), c = document.querySelector(".xw-blog-root");
834
834
  if (c && (c.classList.remove("light", "dark"), c.classList.add(r)), n === "system") {
835
835
  const d = window.matchMedia("(prefers-color-scheme: dark)"), i = () => {
836
- const l = Bt(), u = document.querySelector(".xw-blog-root");
836
+ const l = Rt(), u = document.querySelector(".xw-blog-root");
837
837
  u && (u.classList.remove("light", "dark"), u.classList.add(l));
838
838
  };
839
839
  return d.addEventListener("change", i), () => d.removeEventListener("change", i);
@@ -845,7 +845,7 @@ const Tt = "app-theme", Bt = () => typeof window > "u" ? "light" : window.matchM
845
845
  },
846
846
  effectiveTheme: kt(n)
847
847
  };
848
- }, Rn = (e) => "items" in e, ge = (e) => "items" in e, Ie = async (e, t, n) => {
848
+ }, Rn = (e) => "items" in e, pe = (e) => "items" in e, Ie = async (e, t, n) => {
849
849
  const a = [];
850
850
  for (const s of e)
851
851
  if (Rn(s)) {
@@ -863,7 +863,7 @@ const Tt = "app-theme", Bt = () => typeof window > "u" ? "light" : window.matchM
863
863
  title: d.slug
864
864
  });
865
865
  }
866
- const c = nn.getFixedT(t)(s.title);
866
+ const c = tn.getFixedT(t)(s.title);
867
867
  a.push({
868
868
  title: c,
869
869
  items: r,
@@ -888,7 +888,7 @@ const Tt = "app-theme", Bt = () => typeof window > "u" ? "light" : window.matchM
888
888
  }, ce = (e) => e.toString().toLowerCase().trim().replace(/[^\w\s-]/g, "").replace(/\s+/g, "-").replace(/-+/g, "-").replace(/^-+|-+$/g, ""), Bn = (e, t) => {
889
889
  const n = [];
890
890
  for (const s of t)
891
- ge(s) ? n.push(...s.items) : n.push({ slug: s.slug, title: s.title });
891
+ pe(s) ? n.push(...s.items) : n.push({ slug: s.slug, title: s.title });
892
892
  const a = n.findIndex(
893
893
  (s) => s.slug === e
894
894
  );
@@ -896,17 +896,17 @@ const Tt = "app-theme", Bt = () => typeof window > "u" ? "light" : window.matchM
896
896
  prev: a > 0 ? n[a - 1] : void 0,
897
897
  next: a < n.length - 1 ? n[a + 1] : void 0
898
898
  };
899
- }, jt = en(null);
900
- function gs({
899
+ }, Ht = Jt(null);
900
+ function ps({
901
901
  children: e,
902
902
  config: t,
903
903
  blog: n,
904
904
  navigationData: a = []
905
905
  }) {
906
- Ht(t.defaultTheme);
906
+ Bt(t.defaultTheme);
907
907
  const [s, r] = I({});
908
908
  L(() => {
909
- const { buildTagIndex: d } = Rt(n.mdxFiles), i = t.supportedLanguages.map(async (l) => {
909
+ const { buildTagIndex: d } = Mt(n.mdxFiles), i = t.supportedLanguages.map(async (l) => {
910
910
  try {
911
911
  const u = await d(l);
912
912
  return { language: l, index: u };
@@ -916,8 +916,8 @@ function gs({
916
916
  });
917
917
  Promise.all(i).then((l) => {
918
918
  const u = {};
919
- for (const p of l)
920
- u[p.language] = p.index;
919
+ for (const f of l)
920
+ u[f.language] = f.index;
921
921
  r(u);
922
922
  }).catch((l) => {
923
923
  console.error("Failed to build tag indices:", l);
@@ -925,7 +925,7 @@ function gs({
925
925
  }, [n.mdxFiles, t.supportedLanguages]);
926
926
  const c = { ...t, navigationData: a, tagIndex: s };
927
927
  return /* @__PURE__ */ o(Dt, { children: /* @__PURE__ */ o(
928
- jt.Provider,
928
+ Ht.Provider,
929
929
  {
930
930
  value: {
931
931
  config: c,
@@ -937,19 +937,19 @@ function gs({
937
937
  ) });
938
938
  }
939
939
  function M() {
940
- const e = tn(jt);
940
+ const e = en(Ht);
941
941
  if (!e)
942
942
  throw new Error("useBlogConfig must be used within a BlogProvider");
943
943
  return e;
944
944
  }
945
- function Ft() {
945
+ function jt() {
946
946
  return !!new URL(window.location.href).hash;
947
947
  }
948
948
  function Hn(e, t, n) {
949
949
  const a = n ? `${n}/` : "";
950
- return Ft() ? `#${a}${t}/${e}` : `/${a}${t}/${e}`;
950
+ return jt() ? `#${a}${t}/${e}` : `/${a}${t}/${e}`;
951
951
  }
952
- function qt(e) {
952
+ function Ft(e) {
953
953
  const t = {
954
954
  advanced: !1,
955
955
  anchor: ""
@@ -972,7 +972,7 @@ function Ct(e, t = 80) {
972
972
  }
973
973
  function jn(e, t = !1) {
974
974
  const n = new URL(window.location.href);
975
- if (Ft()) {
975
+ if (jt()) {
976
976
  const a = n.hash.split("?"), s = a[0], r = new URLSearchParams(a[1] || "");
977
977
  r.set("a", e), t && r.set("advanced", "");
978
978
  const c = r.toString();
@@ -1007,24 +1007,24 @@ function Qn({
1007
1007
  nextTitle: a,
1008
1008
  language: s
1009
1009
  }) {
1010
- const { t: r } = D(), { config: c } = M(), d = te(), l = qt(d.search).advanced, u = c.basePath || "", p = (g) => {
1011
- const y = `${u}/${s}/${g}`;
1012
- return l ? `${y}?advanced=true` : y;
1010
+ const { t: r } = D(), { config: c } = M(), d = te(), l = Ft(d.search).advanced, u = c.basePath || "", f = (_) => {
1011
+ const b = `${u}/${s}/${_}`;
1012
+ return l ? `${b}?advanced=true` : b;
1013
1013
  };
1014
1014
  if (!e && !n)
1015
1015
  return null;
1016
- const h = () => {
1016
+ const g = () => {
1017
1017
  Fn("auto");
1018
1018
  };
1019
1019
  return /* @__PURE__ */ o("nav", { className: B.articleNavigation, "aria-label": "Article navigation", children: /* @__PURE__ */ m("div", { className: B.navContainer, children: [
1020
1020
  e ? /* @__PURE__ */ o(
1021
1021
  Ne,
1022
1022
  {
1023
- to: p(e),
1023
+ to: f(e),
1024
1024
  className: B.navLink,
1025
- onClick: h,
1025
+ onClick: g,
1026
1026
  children: /* @__PURE__ */ m("div", { className: B.navLinkContent, children: [
1027
- /* @__PURE__ */ o("div", { className: B.navIcon, children: /* @__PURE__ */ o(Vt, { size: 20, weight: "bold" }) }),
1027
+ /* @__PURE__ */ o("div", { className: B.navIcon, children: /* @__PURE__ */ o(Kt, { size: 20, weight: "bold" }) }),
1028
1028
  /* @__PURE__ */ m("div", { className: B.navText, children: [
1029
1029
  /* @__PURE__ */ o("span", { className: B.navLabel, children: r("nav.previous") }),
1030
1030
  /* @__PURE__ */ o("span", { className: B.navTitle, children: t || e })
@@ -1035,9 +1035,9 @@ function Qn({
1035
1035
  n ? /* @__PURE__ */ o(
1036
1036
  Ne,
1037
1037
  {
1038
- to: p(n),
1038
+ to: f(n),
1039
1039
  className: B.navLink,
1040
- onClick: h,
1040
+ onClick: g,
1041
1041
  children: /* @__PURE__ */ m("div", { className: B.navLinkContent, children: [
1042
1042
  /* @__PURE__ */ m("div", { className: B.navText, children: [
1043
1043
  /* @__PURE__ */ o("span", { className: B.navLabel, children: r("nav.next") }),
@@ -1061,7 +1061,7 @@ function na() {
1061
1061
  return n.length === 0 ? null : /* @__PURE__ */ o("aside", { className: fe.blogSidebar, children: /* @__PURE__ */ m("div", { className: fe.section, children: [
1062
1062
  /* @__PURE__ */ o("h3", { className: fe.sectionTitle, children: e("ui.connect") }),
1063
1063
  /* @__PURE__ */ o("div", { className: fe.linksList, children: n.map((a, s) => {
1064
- const r = a.icon || Yt, c = a.target === "_blank";
1064
+ const r = a.icon || Vt, c = a.target === "_blank";
1065
1065
  return /* @__PURE__ */ m(
1066
1066
  "a",
1067
1067
  {
@@ -1116,22 +1116,22 @@ function ze({ date: e, author: t }) {
1116
1116
  const { t: n } = D();
1117
1117
  return !e && !t ? null : /* @__PURE__ */ m("div", { className: Be.metadata, children: [
1118
1118
  t && /* @__PURE__ */ m("span", { className: Be.author, children: [
1119
- /* @__PURE__ */ o(Gt, { size: 16, weight: "regular" }),
1119
+ /* @__PURE__ */ o(Yt, { size: 16, weight: "regular" }),
1120
1120
  t
1121
1121
  ] }),
1122
1122
  e && /* @__PURE__ */ m("span", { className: Be.date, children: [
1123
- /* @__PURE__ */ o(Qt, { size: 16, weight: "regular" }),
1123
+ /* @__PURE__ */ o(Gt, { size: 16, weight: "regular" }),
1124
1124
  n("ui.lastEdited"),
1125
1125
  ": ",
1126
1126
  e
1127
1127
  ] })
1128
1128
  ] });
1129
1129
  }
1130
- const ma = "_tableOfContents_9ofak_1", fa = "_header_9ofak_21", pa = "_title_9ofak_25", ga = "_nav_9ofak_34", _a = "_list_9ofak_40", va = "_link_9ofak_47", ba = "_active_9ofak_71", ya = "_level1_9ofak_87", wa = "_level2_9ofak_93", Ta = "_level3_9ofak_98", ka = "_level4_9ofak_104", Ca = "_level5_9ofak_110", $a = "_level6_9ofak_116", K = {
1130
+ const ma = "_tableOfContents_9ofak_1", fa = "_header_9ofak_21", ga = "_title_9ofak_25", pa = "_nav_9ofak_34", _a = "_list_9ofak_40", va = "_link_9ofak_47", ba = "_active_9ofak_71", ya = "_level1_9ofak_87", wa = "_level2_9ofak_93", Ta = "_level3_9ofak_98", ka = "_level4_9ofak_104", Ca = "_level5_9ofak_110", $a = "_level6_9ofak_116", K = {
1131
1131
  tableOfContents: ma,
1132
1132
  header: fa,
1133
- title: pa,
1134
- nav: ga,
1133
+ title: ga,
1134
+ nav: pa,
1135
1135
  list: _a,
1136
1136
  link: va,
1137
1137
  active: ba,
@@ -1149,99 +1149,99 @@ function Na({
1149
1149
  const { t: n } = D(), a = te(), s = Z(), [r, c] = I([]), [d, i] = I(""), l = X(null);
1150
1150
  L(() => {
1151
1151
  i(""), (() => {
1152
- const h = /^(#{1,6})\s+(.+)$/gm, g = [];
1153
- let y = h.exec(e);
1154
- const f = [];
1155
- for (; y !== null; ) {
1156
- const E = y[1].length, W = y[2].trim();
1157
- f.push({ level: E, text: W }), y = h.exec(e);
1152
+ const g = /^(#{1,6})\s+(.+)$/gm, _ = [];
1153
+ let b = g.exec(e);
1154
+ const h = [];
1155
+ for (; b !== null; ) {
1156
+ const P = b[1].length, W = b[2].trim();
1157
+ h.push({ level: P, text: W }), b = g.exec(e);
1158
1158
  }
1159
- const _ = /^(#{1,6})\s+(.+)$/gm;
1160
- let b = _.exec(t), w = 0;
1161
- for (; b !== null && w < f.length; ) {
1162
- const E = b[2].trim(), W = ce(E);
1163
- g.push({
1159
+ const p = /^(#{1,6})\s+(.+)$/gm;
1160
+ let y = p.exec(t), C = 0;
1161
+ for (; y !== null && C < h.length; ) {
1162
+ const P = y[2].trim(), W = ce(P);
1163
+ _.push({
1164
1164
  id: W,
1165
- text: f[w].text,
1165
+ text: h[C].text,
1166
1166
  // Use localized text for display
1167
- level: f[w].level
1168
- }), w++, b = _.exec(t);
1167
+ level: h[C].level
1168
+ }), C++, y = p.exec(t);
1169
1169
  }
1170
- c(g);
1170
+ c(_);
1171
1171
  })();
1172
1172
  }, [e, t]), L(() => {
1173
1173
  if (r.length === 0) return;
1174
- const p = setTimeout(() => {
1175
- const h = r.filter(
1176
- (g) => !document.getElementById(g.id)
1174
+ const f = setTimeout(() => {
1175
+ const g = r.filter(
1176
+ (_) => !document.getElementById(_.id)
1177
1177
  );
1178
- h.length > 0 && console.warn("Some heading elements not found:", h);
1178
+ g.length > 0 && console.warn("Some heading elements not found:", g);
1179
1179
  }, 100);
1180
- return () => clearTimeout(p);
1180
+ return () => clearTimeout(f);
1181
1181
  }, [r]), L(() => {
1182
1182
  if (r.length === 0) return;
1183
1183
  l.current && l.current.disconnect();
1184
- const p = setTimeout(() => {
1185
- const h = r.map((g) => document.getElementById(g.id)).filter(Boolean);
1186
- h.length !== 0 && (l.current = new IntersectionObserver(
1187
- (g) => {
1188
- const y = g.filter((f) => f.isIntersecting);
1189
- if (y.length > 0) {
1190
- const f = y.reduce((_, b) => _.boundingClientRect.top < b.boundingClientRect.top ? _ : b);
1191
- i(f.target.id);
1184
+ const f = setTimeout(() => {
1185
+ const g = r.map((_) => document.getElementById(_.id)).filter(Boolean);
1186
+ g.length !== 0 && (l.current = new IntersectionObserver(
1187
+ (_) => {
1188
+ const b = _.filter((h) => h.isIntersecting);
1189
+ if (b.length > 0) {
1190
+ const h = b.reduce((p, y) => p.boundingClientRect.top < y.boundingClientRect.top ? p : y);
1191
+ i(h.target.id);
1192
1192
  }
1193
1193
  },
1194
1194
  {
1195
1195
  rootMargin: "-80px 0% -80% 0%",
1196
1196
  threshold: 0
1197
1197
  }
1198
- ), h.forEach((g) => {
1199
- l.current && l.current.observe(g);
1198
+ ), g.forEach((_) => {
1199
+ l.current && l.current.observe(_);
1200
1200
  }));
1201
1201
  }, 150);
1202
1202
  return () => {
1203
- clearTimeout(p), l.current && l.current.disconnect();
1203
+ clearTimeout(f), l.current && l.current.disconnect();
1204
1204
  };
1205
1205
  }, [r]), L(() => () => {
1206
1206
  l.current && l.current.disconnect();
1207
1207
  }, []);
1208
- const u = (p) => {
1209
- const h = document.getElementById(p);
1210
- if (h) {
1211
- const g = new URLSearchParams(a.search);
1212
- g.set("a", p), s(
1213
- `${a.pathname}?${g.toString()}${a.hash}`,
1208
+ const u = (f) => {
1209
+ const g = document.getElementById(f);
1210
+ if (g) {
1211
+ const _ = new URLSearchParams(a.search);
1212
+ _.set("a", f), s(
1213
+ `${a.pathname}?${_.toString()}${a.hash}`,
1214
1214
  {
1215
1215
  replace: !0
1216
1216
  }
1217
1217
  );
1218
- const _ = h.getBoundingClientRect().top + window.pageYOffset - 80;
1218
+ const p = g.getBoundingClientRect().top + window.pageYOffset - 80;
1219
1219
  window.scrollTo({
1220
- top: _,
1220
+ top: p,
1221
1221
  behavior: "smooth"
1222
1222
  });
1223
1223
  }
1224
1224
  };
1225
1225
  return r.length === 0 ? null : /* @__PURE__ */ m("aside", { className: K.tableOfContents, children: [
1226
1226
  /* @__PURE__ */ o("div", { className: K.header, children: /* @__PURE__ */ o("span", { className: K.title, children: n("ui.onThisPage", "On this page") }) }),
1227
- /* @__PURE__ */ o("nav", { className: K.nav, children: /* @__PURE__ */ o("ul", { className: K.list, children: r.map((p) => /* @__PURE__ */ o("li", { className: K.item, children: /* @__PURE__ */ o(
1227
+ /* @__PURE__ */ o("nav", { className: K.nav, children: /* @__PURE__ */ o("ul", { className: K.list, children: r.map((f) => /* @__PURE__ */ o("li", { className: K.item, children: /* @__PURE__ */ o(
1228
1228
  "button",
1229
1229
  {
1230
- className: `${K.link} ${K[`level${p.level}`]} ${d === p.id ? K.active : ""}`,
1231
- onClick: () => u(p.id),
1230
+ className: `${K.link} ${K[`level${f.level}`]} ${d === f.id ? K.active : ""}`,
1231
+ onClick: () => u(f.id),
1232
1232
  type: "button",
1233
- children: p.text
1233
+ children: f.text
1234
1234
  }
1235
- ) }, p.id)) }) })
1235
+ ) }, f.id)) }) })
1236
1236
  ] });
1237
1237
  }
1238
- const Ia = "_overlay_1e1d4_1", xa = "_modal_1e1d4_26", Sa = "_header_1e1d4_50", La = "_title_1e1d4_58", Pa = "_closeButton_1e1d4_65", Ea = "_results_1e1d4_86", Aa = "_resultsList_1e1d4_94", Oa = "_resultItem_1e1d4_100", Da = "_resultTitle_1e1d4_119", Ma = "_resultSlug_1e1d4_124", Ra = "_noResults_1e1d4_130", q = {
1238
+ const Ia = "_overlay_1e1d4_1", xa = "_modal_1e1d4_26", Sa = "_header_1e1d4_50", La = "_title_1e1d4_58", Ea = "_closeButton_1e1d4_65", Pa = "_results_1e1d4_86", Aa = "_resultsList_1e1d4_94", Oa = "_resultItem_1e1d4_100", Da = "_resultTitle_1e1d4_119", Ma = "_resultSlug_1e1d4_124", Ra = "_noResults_1e1d4_130", q = {
1239
1239
  overlay: Ia,
1240
1240
  modal: xa,
1241
1241
  header: Sa,
1242
1242
  title: La,
1243
- closeButton: Pa,
1244
- results: Ea,
1243
+ closeButton: Ea,
1244
+ results: Pa,
1245
1245
  resultsList: Aa,
1246
1246
  resultItem: Oa,
1247
1247
  resultTitle: Da,
@@ -1316,7 +1316,7 @@ function za({ tags: e, variant: t = "default", onTagClick: n }) {
1316
1316
  className: `${se.tags} ${t === "compact" ? se.compact : ""}`,
1317
1317
  children: [
1318
1318
  t === "default" && /* @__PURE__ */ m("div", { className: se.tagLabel, children: [
1319
- /* @__PURE__ */ o(Xt, { className: se.tagIcon, weight: "duotone" }),
1319
+ /* @__PURE__ */ o(Qt, { className: se.tagIcon, weight: "duotone" }),
1320
1320
  /* @__PURE__ */ m("span", { children: [
1321
1321
  a("ui.tags"),
1322
1322
  ":"
@@ -1358,32 +1358,32 @@ const Ka = "_contentPage_818m0_1", Va = "_loadingContainer_818m0_48", Ya = "_err
1358
1358
  };
1359
1359
  function ao({ language: e }) {
1360
1360
  var nt, at, ot, rt, st;
1361
- const { slug: t } = Ke(), n = te(), { config: a, loadContent: s, loadEnglishContent: r } = M(), [c, d] = I(""), [i, l] = I(""), [u, p] = I({}), [h, g] = I(!0), [y, f] = I(null), [_, b] = I(!0), [w, E] = I(null), [W, T] = I(""), [C, R] = I({}), j = X(0), V = X([]), _e = qt(n.search), ne = _e.advanced;
1361
+ const { slug: t } = Ke(), n = te(), { config: a, loadContent: s, loadEnglishContent: r } = M(), [c, d] = I(""), [i, l] = I(""), [u, f] = I({}), [g, _] = I(!0), [b, h] = I(null), [p, y] = I(!0), [C, P] = I(null), [W, w] = I(""), [k, R] = I({}), j = X(0), V = X([]), _e = Ft(n.search), ne = _e.advanced;
1362
1362
  if (L(() => {
1363
1363
  (async () => {
1364
1364
  if (!t) return;
1365
- g(!0), f(null), j.current = 0;
1365
+ _(!0), h(null), j.current = 0;
1366
1366
  const N = (a == null ? void 0 : a.navigationData) || [];
1367
- let P = !0;
1368
- for (const k of N)
1369
- if ("items" in k) {
1370
- const x = k.items.find((oe) => oe.slug === t);
1367
+ let E = !0;
1368
+ for (const T of N)
1369
+ if ("items" in T) {
1370
+ const x = T.items.find((oe) => oe.slug === t);
1371
1371
  if (x) {
1372
- P = x.showTableOfContents !== !1;
1372
+ E = x.showTableOfContents !== !1;
1373
1373
  break;
1374
1374
  }
1375
- } else if (k.slug === t) {
1376
- P = k.showTableOfContents !== !1;
1375
+ } else if (T.slug === t) {
1376
+ E = T.showTableOfContents !== !1;
1377
1377
  break;
1378
1378
  }
1379
- b(P);
1379
+ y(E);
1380
1380
  try {
1381
- let k;
1381
+ let T;
1382
1382
  try {
1383
- k = await s(e, t, ne);
1383
+ T = await s(e, t, ne);
1384
1384
  } catch {
1385
1385
  if (ne)
1386
- k = await s(e, t, !1);
1386
+ T = await s(e, t, !1);
1387
1387
  else
1388
1388
  throw new Error("Content not found");
1389
1389
  }
@@ -1393,26 +1393,26 @@ function ao({ language: e }) {
1393
1393
  } catch {
1394
1394
  ne && (x = await r(t, !1));
1395
1395
  }
1396
- const oe = typeof k.frontmatter.title == "string" ? k.frontmatter.title : void 0;
1397
- let we = k.content, Te = x, Le = "";
1396
+ const oe = typeof T.frontmatter.title == "string" ? T.frontmatter.title : void 0;
1397
+ let we = T.content, Te = x, Le = "";
1398
1398
  if (oe) {
1399
- const ke = $t(x), Ut = $t(k.content);
1400
- Le = ke.title || "", Te = ke.content, we = Ut.content;
1399
+ const ke = $t(x), qt = $t(T.content);
1400
+ Le = ke.title || "", Te = ke.content, we = qt.content;
1401
1401
  } else
1402
1402
  Le = "";
1403
1403
  const ct = /^(#{1,6})\s+(.+)$/gm, it = [];
1404
- let Pe = ct.exec(
1404
+ let Ee = ct.exec(
1405
1405
  Te
1406
1406
  );
1407
- for (; Pe !== null; ) {
1408
- const ke = Pe[2].trim();
1409
- it.push(ke), Pe = ct.exec(Te);
1407
+ for (; Ee !== null; ) {
1408
+ const ke = Ee[2].trim();
1409
+ it.push(ke), Ee = ct.exec(Te);
1410
1410
  }
1411
- V.current = it, T(Le), l(Te), d(we), p(k.frontmatter);
1412
- } catch (k) {
1413
- f(k instanceof Error ? k.message : "Failed to load content");
1411
+ V.current = it, w(Le), l(Te), d(we), f(T.frontmatter);
1412
+ } catch (T) {
1413
+ h(T instanceof Error ? T.message : "Failed to load content");
1414
1414
  } finally {
1415
- g(!1);
1415
+ _(!1);
1416
1416
  }
1417
1417
  })();
1418
1418
  }, [
@@ -1423,13 +1423,13 @@ function ao({ language: e }) {
1423
1423
  s,
1424
1424
  r
1425
1425
  ]), L(() => {
1426
- if (!h && _e.anchor) {
1426
+ if (!g && _e.anchor) {
1427
1427
  const v = setTimeout(() => {
1428
1428
  Ct(_e.anchor);
1429
1429
  }, 150);
1430
1430
  return () => clearTimeout(v);
1431
1431
  }
1432
- }, [h, _e.anchor]), L(() => {
1432
+ }, [g, _e.anchor]), L(() => {
1433
1433
  (async () => {
1434
1434
  if (!t || !a.showArticleNavigation || !a.navigationData) {
1435
1435
  R({});
@@ -1440,8 +1440,8 @@ function ao({ language: e }) {
1440
1440
  a.navigationData,
1441
1441
  e,
1442
1442
  s
1443
- ), P = Bn(t, N);
1444
- R(P);
1443
+ ), E = Bn(t, N);
1444
+ R(E);
1445
1445
  } catch (N) {
1446
1446
  console.error("Failed to calculate adjacent articles:", N), R({});
1447
1447
  }
@@ -1452,26 +1452,26 @@ function ao({ language: e }) {
1452
1452
  a.showArticleNavigation,
1453
1453
  a.navigationData,
1454
1454
  s
1455
- ]), h)
1455
+ ]), g)
1456
1456
  return /* @__PURE__ */ o("div", { className: O.contentPage, children: /* @__PURE__ */ m("div", { className: O.loadingContainer, children: [
1457
1457
  /* @__PURE__ */ o("div", { className: O.skeletonTitle }),
1458
1458
  /* @__PURE__ */ o("div", { className: O.skeletonParagraph }),
1459
1459
  /* @__PURE__ */ o("div", { className: O.skeletonParagraph }),
1460
1460
  /* @__PURE__ */ o("div", { className: O.skeletonParagraphShort })
1461
1461
  ] }) });
1462
- if (y)
1462
+ if (b)
1463
1463
  return /* @__PURE__ */ o("div", { className: O.contentPage, children: /* @__PURE__ */ o("div", { className: O.errorContainer, children: /* @__PURE__ */ m("div", { className: O.errorText, children: [
1464
1464
  "Error: ",
1465
- y
1465
+ b
1466
1466
  ] }) }) });
1467
1467
  const ve = typeof u.title == "string" && u.title.trim().length > 0, xe = ve ? ce(W || u.title) : "", Je = !!(u.date || u.author);
1468
1468
  j.current = 0;
1469
1469
  let et = !1;
1470
1470
  const de = (v, N) => {
1471
1471
  v.preventDefault(), Ct(N), jn(N, ne);
1472
- }, Se = u.title ? `${u.title} | ${a.title}` : a.title, ae = u.description || a.description, tt = u.keywords ? typeof u.keywords == "string" ? u.keywords : u.keywords.join(", ") : void 0, be = u.ogImage ? `${a.siteUrl}${a.basePath || ""}/og/${e}/${u.ogImage}` : void 0, ye = typeof window < "u" ? `${a.siteUrl}${window.location.pathname}${window.location.search}${window.location.hash}` : a.siteUrl;
1472
+ }, Se = u.title ? `${u.title} | ${a.title}` : a.title, ae = u.description || a.description, tt = u.keywords ? typeof u.keywords == "string" ? u.keywords : u.keywords.join(", ") : void 0, be = u.ogImage ? `${a.siteUrl}/og/${e}/${u.ogImage}` : void 0, ye = typeof window < "u" ? `${a.siteUrl}${window.location.pathname}${window.location.search}${window.location.hash}` : a.siteUrl;
1473
1473
  return /* @__PURE__ */ m(G, { children: [
1474
- /* @__PURE__ */ m(Mt, { children: [
1474
+ /* @__PURE__ */ m(Dn, { children: [
1475
1475
  /* @__PURE__ */ o("title", { children: Se }),
1476
1476
  ae && /* @__PURE__ */ o("meta", { name: "description", content: ae }),
1477
1477
  tt && /* @__PURE__ */ o("meta", { name: "keywords", content: tt }),
@@ -1487,7 +1487,7 @@ function ao({ language: e }) {
1487
1487
  be && /* @__PURE__ */ o("meta", { name: "twitter:image", content: be })
1488
1488
  ] }),
1489
1489
  /* @__PURE__ */ m("div", { className: O.contentPage, children: [
1490
- /* @__PURE__ */ o(ln, { hasAdvanced: u.hasAdvanced || !1 }),
1490
+ /* @__PURE__ */ o(cn, { hasAdvanced: u.hasAdvanced || !1 }),
1491
1491
  ve && /* @__PURE__ */ m(G, { children: [
1492
1492
  /* @__PURE__ */ o(la, { articleTitle: u.title, language: e }),
1493
1493
  /* @__PURE__ */ o(
@@ -1509,25 +1509,25 @@ function ao({ language: e }) {
1509
1509
  Je && /* @__PURE__ */ o(ze, { date: u.date, author: u.author })
1510
1510
  ] }),
1511
1511
  /* @__PURE__ */ o("div", { className: O.mdxContent, children: /* @__PURE__ */ o(
1512
- an,
1512
+ nn,
1513
1513
  {
1514
- remarkPlugins: [on],
1514
+ remarkPlugins: [an],
1515
1515
  components: {
1516
1516
  h1: ({ children: v }) => {
1517
- const N = j.current++, P = V.current[N] || "", k = ce(P), x = !et;
1517
+ const N = j.current++, E = V.current[N] || "", T = ce(E), x = !et;
1518
1518
  et = !0;
1519
1519
  const oe = u.date || u.author;
1520
1520
  return /* @__PURE__ */ m(G, { children: [
1521
1521
  /* @__PURE__ */ o(
1522
1522
  "h1",
1523
1523
  {
1524
- id: k,
1524
+ id: T,
1525
1525
  className: x && oe && !ve ? O.withMetadata : void 0,
1526
1526
  children: /* @__PURE__ */ o(
1527
1527
  "a",
1528
1528
  {
1529
- href: `#${k}`,
1530
- onClick: (we) => de(we, k),
1529
+ href: `#${T}`,
1530
+ onClick: (we) => de(we, T),
1531
1531
  style: { color: "inherit", textDecoration: "none" },
1532
1532
  children: v
1533
1533
  }
@@ -1544,36 +1544,36 @@ function ao({ language: e }) {
1544
1544
  ] });
1545
1545
  },
1546
1546
  h2: ({ children: v }) => {
1547
- const N = j.current++, P = V.current[N] || "", k = ce(P);
1548
- return /* @__PURE__ */ o("h2", { id: k, children: /* @__PURE__ */ o(
1547
+ const N = j.current++, E = V.current[N] || "", T = ce(E);
1548
+ return /* @__PURE__ */ o("h2", { id: T, children: /* @__PURE__ */ o(
1549
1549
  "a",
1550
1550
  {
1551
- href: `#${k}`,
1552
- onClick: (x) => de(x, k),
1551
+ href: `#${T}`,
1552
+ onClick: (x) => de(x, T),
1553
1553
  style: { color: "inherit", textDecoration: "none" },
1554
1554
  children: v
1555
1555
  }
1556
1556
  ) });
1557
1557
  },
1558
1558
  h3: ({ children: v }) => {
1559
- const N = j.current++, P = V.current[N] || "", k = ce(P);
1560
- return /* @__PURE__ */ o("h3", { id: k, children: /* @__PURE__ */ o(
1559
+ const N = j.current++, E = V.current[N] || "", T = ce(E);
1560
+ return /* @__PURE__ */ o("h3", { id: T, children: /* @__PURE__ */ o(
1561
1561
  "a",
1562
1562
  {
1563
- href: `#${k}`,
1564
- onClick: (x) => de(x, k),
1563
+ href: `#${T}`,
1564
+ onClick: (x) => de(x, T),
1565
1565
  style: { color: "inherit", textDecoration: "none" },
1566
1566
  children: v
1567
1567
  }
1568
1568
  ) });
1569
1569
  },
1570
1570
  h4: ({ children: v }) => {
1571
- const N = j.current++, P = V.current[N] || "", k = ce(P);
1572
- return /* @__PURE__ */ o("h4", { id: k, children: /* @__PURE__ */ o(
1571
+ const N = j.current++, E = V.current[N] || "", T = ce(E);
1572
+ return /* @__PURE__ */ o("h4", { id: T, children: /* @__PURE__ */ o(
1573
1573
  "a",
1574
1574
  {
1575
- href: `#${k}`,
1576
- onClick: (x) => de(x, k),
1575
+ href: `#${T}`,
1576
+ onClick: (x) => de(x, T),
1577
1577
  style: { color: "inherit", textDecoration: "none" },
1578
1578
  children: v
1579
1579
  }
@@ -1591,26 +1591,26 @@ function ao({ language: e }) {
1591
1591
  ul: ({ children: v }) => /* @__PURE__ */ o("ul", { children: v }),
1592
1592
  ol: ({ children: v }) => /* @__PURE__ */ o("ol", { children: v }),
1593
1593
  li: ({ children: v }) => /* @__PURE__ */ o("li", { children: v }),
1594
- code: ({ className: v, children: N, ...P }) => {
1594
+ code: ({ className: v, children: N, ...E }) => {
1595
1595
  if (!v)
1596
- return /* @__PURE__ */ o("code", { ...P, children: N });
1596
+ return /* @__PURE__ */ o("code", { ...E, children: N });
1597
1597
  const x = (v == null ? void 0 : v.replace("language-", "")) || "";
1598
1598
  return /* @__PURE__ */ m("div", { className: O.codeBlock, children: [
1599
1599
  x && /* @__PURE__ */ o("div", { className: O.codeLanguage, children: x }),
1600
- /* @__PURE__ */ o("pre", { children: /* @__PURE__ */ o("code", { className: v, ...P, children: N }) })
1600
+ /* @__PURE__ */ o("pre", { children: /* @__PURE__ */ o("code", { className: v, ...E, children: N }) })
1601
1601
  ] });
1602
1602
  },
1603
1603
  pre: ({ children: v }) => /* @__PURE__ */ o(G, { children: v }),
1604
1604
  // Let code component handle pre styling
1605
1605
  blockquote: ({ children: v }) => /* @__PURE__ */ o("blockquote", { children: v }),
1606
- a: ({ href: v, children: N, ...P }) => {
1606
+ a: ({ href: v, children: N, ...E }) => {
1607
1607
  if (v != null && v.startsWith("./")) {
1608
- const k = v.slice(2), x = Hn(
1609
- k,
1608
+ const T = v.slice(2), x = Hn(
1609
+ T,
1610
1610
  e,
1611
1611
  a.basePath
1612
1612
  );
1613
- return /* @__PURE__ */ o("a", { href: x, ...P, children: N });
1613
+ return /* @__PURE__ */ o("a", { href: x, ...E, children: N });
1614
1614
  }
1615
1615
  return v != null && v.startsWith("http://") || v != null && v.startsWith("https://") ? /* @__PURE__ */ o(
1616
1616
  "a",
@@ -1618,10 +1618,10 @@ function ao({ language: e }) {
1618
1618
  href: v,
1619
1619
  target: "_blank",
1620
1620
  rel: "noopener noreferrer",
1621
- ...P,
1621
+ ...E,
1622
1622
  children: N
1623
1623
  }
1624
- ) : /* @__PURE__ */ o("a", { href: v, ...P, children: N });
1624
+ ) : /* @__PURE__ */ o("a", { href: v, ...E, children: N });
1625
1625
  },
1626
1626
  strong: ({ children: v }) => /* @__PURE__ */ o("strong", { children: v }),
1627
1627
  em: ({ children: v }) => /* @__PURE__ */ o("em", { children: v })
@@ -1635,33 +1635,33 @@ function ao({ language: e }) {
1635
1635
  {
1636
1636
  tags: u.tags,
1637
1637
  variant: "compact",
1638
- onTagClick: (v) => E(v)
1638
+ onTagClick: (v) => P(v)
1639
1639
  }
1640
1640
  ),
1641
1641
  a.showArticleNavigation && /* @__PURE__ */ o(
1642
1642
  Qn,
1643
1643
  {
1644
- prevSlug: (nt = C.prev) == null ? void 0 : nt.slug,
1645
- prevTitle: (at = C.prev) == null ? void 0 : at.title,
1646
- nextSlug: (ot = C.next) == null ? void 0 : ot.slug,
1647
- nextTitle: (rt = C.next) == null ? void 0 : rt.title,
1644
+ prevSlug: (nt = k.prev) == null ? void 0 : nt.slug,
1645
+ prevTitle: (at = k.prev) == null ? void 0 : at.title,
1646
+ nextSlug: (ot = k.next) == null ? void 0 : ot.slug,
1647
+ nextTitle: (rt = k.next) == null ? void 0 : rt.title,
1648
1648
  language: e
1649
1649
  }
1650
1650
  )
1651
1651
  ] }),
1652
- _ && /* @__PURE__ */ o(Na, { content: c, englishContent: i }),
1653
- w && ((st = a.tagIndex) == null ? void 0 : st[e]) && /* @__PURE__ */ o(
1652
+ p && /* @__PURE__ */ o(Na, { content: c, englishContent: i }),
1653
+ C && ((st = a.tagIndex) == null ? void 0 : st[e]) && /* @__PURE__ */ o(
1654
1654
  Ba,
1655
1655
  {
1656
- tag: w,
1657
- results: a.tagIndex[e][w] || [],
1656
+ tag: C,
1657
+ results: a.tagIndex[e][C] || [],
1658
1658
  language: e,
1659
- onClose: () => E(null)
1659
+ onClose: () => P(null)
1660
1660
  }
1661
1661
  )
1662
1662
  ] });
1663
1663
  }
1664
- const oo = "_searchButton_1k9sl_1", ro = "_searchIcon_1k9sl_17", so = "_searchHint_1k9sl_23", co = "_kbd_1k9sl_27", io = "_searchOverlay_1k9sl_42", lo = "_searchModal_1k9sl_67", uo = "_searchHeader_1k9sl_91", ho = "_searchInput_1k9sl_105", mo = "_closeButton_1k9sl_123", fo = "_searchResults_1k9sl_144", po = "_resultsList_1k9sl_152", go = "_resultItem_1k9sl_158", _o = "_selected_1k9sl_173", vo = "_resultTitle_1k9sl_176", bo = "_resultSlug_1k9sl_180", yo = "_noResults_1k9sl_186", wo = "_searchHints_1k9sl_193", To = "_hint_1k9sl_210", S = {
1664
+ const oo = "_searchButton_1k9sl_1", ro = "_searchIcon_1k9sl_17", so = "_searchHint_1k9sl_23", co = "_kbd_1k9sl_27", io = "_searchOverlay_1k9sl_42", lo = "_searchModal_1k9sl_67", uo = "_searchHeader_1k9sl_91", ho = "_searchInput_1k9sl_105", mo = "_closeButton_1k9sl_123", fo = "_searchResults_1k9sl_144", go = "_resultsList_1k9sl_152", po = "_resultItem_1k9sl_158", _o = "_selected_1k9sl_173", vo = "_resultTitle_1k9sl_176", bo = "_resultSlug_1k9sl_180", yo = "_noResults_1k9sl_186", wo = "_searchHints_1k9sl_193", To = "_hint_1k9sl_210", S = {
1665
1665
  searchButton: oo,
1666
1666
  searchIcon: ro,
1667
1667
  searchHint: so,
@@ -1672,8 +1672,8 @@ const oo = "_searchButton_1k9sl_1", ro = "_searchIcon_1k9sl_17", so = "_searchHi
1672
1672
  searchInput: ho,
1673
1673
  closeButton: mo,
1674
1674
  searchResults: fo,
1675
- resultsList: po,
1676
- resultItem: go,
1675
+ resultsList: go,
1676
+ resultItem: po,
1677
1677
  selected: _o,
1678
1678
  resultTitle: vo,
1679
1679
  resultSlug: bo,
@@ -1682,7 +1682,7 @@ const oo = "_searchButton_1k9sl_1", ro = "_searchIcon_1k9sl_17", so = "_searchHi
1682
1682
  hint: To
1683
1683
  };
1684
1684
  function ko({ language: e }) {
1685
- const { t } = D(), n = Z(), { config: a, loadContent: s } = M(), [r, c] = I(!1), [d, i] = I(""), [l, u] = I([]), [p, h] = I(0), [g, y] = I([]), f = X(null), _ = X(null), w = typeof navigator < "u" && /(Mac|iPhone|iPod|iPad)/i.test(navigator.platform) ? "⌘K" : "Ctrl+K";
1685
+ const { t } = D(), n = Z(), { config: a, loadContent: s } = M(), [r, c] = I(!1), [d, i] = I(""), [l, u] = I([]), [f, g] = I(0), [_, b] = I([]), h = X(null), p = X(null), C = typeof navigator < "u" && /(Mac|iPhone|iPod|iPad)/i.test(navigator.platform) ? "⌘K" : "Ctrl+K";
1686
1686
  L(() => {
1687
1687
  (async () => {
1688
1688
  if (a.navigationData)
@@ -1691,57 +1691,57 @@ function ko({ language: e }) {
1691
1691
  a.navigationData,
1692
1692
  e,
1693
1693
  s
1694
- )).flatMap((j) => ge(j) ? j.items.map((V) => ({
1694
+ )).flatMap((j) => pe(j) ? j.items.map((V) => ({
1695
1695
  title: V.title,
1696
1696
  slug: V.slug
1697
1697
  })) : [{ title: j.title, slug: j.slug }]);
1698
- y(R);
1699
- } catch (C) {
1700
- console.error("Failed to build search index:", C);
1698
+ b(R);
1699
+ } catch (k) {
1700
+ console.error("Failed to build search index:", k);
1701
1701
  }
1702
1702
  })();
1703
1703
  }, [a.navigationData, e, s]), L(() => {
1704
1704
  if (!d.trim()) {
1705
- u([]), h(0);
1705
+ u([]), g(0);
1706
1706
  return;
1707
1707
  }
1708
- const T = d.toLowerCase(), C = g.filter(
1709
- (R) => R.title.toLowerCase().includes(T) || R.slug.toLowerCase().includes(T)
1708
+ const w = d.toLowerCase(), k = _.filter(
1709
+ (R) => R.title.toLowerCase().includes(w) || R.slug.toLowerCase().includes(w)
1710
1710
  );
1711
- u(C), h(0);
1711
+ u(k), g(0);
1712
1712
  }, [d]), L(() => {
1713
- const T = (C) => {
1714
- (C.metaKey || C.ctrlKey) && C.key === "k" && (C.preventDefault(), c(!0), setTimeout(() => {
1713
+ const w = (k) => {
1714
+ (k.metaKey || k.ctrlKey) && k.key === "k" && (k.preventDefault(), c(!0), setTimeout(() => {
1715
1715
  var R;
1716
- return (R = f.current) == null ? void 0 : R.focus();
1717
- }, 100)), C.key === "Escape" && r && (c(!1), i(""));
1716
+ return (R = h.current) == null ? void 0 : R.focus();
1717
+ }, 100)), k.key === "Escape" && r && (c(!1), i(""));
1718
1718
  };
1719
- return document.addEventListener("keydown", T), () => document.removeEventListener("keydown", T);
1719
+ return document.addEventListener("keydown", w), () => document.removeEventListener("keydown", w);
1720
1720
  }, [r]), L(() => {
1721
- const T = () => {
1721
+ const w = () => {
1722
1722
  c(!0), setTimeout(() => {
1723
1723
  var R;
1724
- return (R = f.current) == null ? void 0 : R.focus();
1724
+ return (R = h.current) == null ? void 0 : R.focus();
1725
1725
  }, 100);
1726
- }, C = () => {
1726
+ }, k = () => {
1727
1727
  c(!1), i("");
1728
1728
  };
1729
- return window.addEventListener("blog:open-search", T), window.addEventListener("blog:close-search", C), () => {
1730
- window.removeEventListener("blog:open-search", T), window.removeEventListener("blog:close-search", C);
1729
+ return window.addEventListener("blog:open-search", w), window.addEventListener("blog:close-search", k), () => {
1730
+ window.removeEventListener("blog:open-search", w), window.removeEventListener("blog:close-search", k);
1731
1731
  };
1732
1732
  }, []);
1733
- const E = (T) => {
1734
- T.key === "ArrowDown" ? (T.preventDefault(), h((C) => Math.min(C + 1, l.length - 1))) : T.key === "ArrowUp" ? (T.preventDefault(), h((C) => Math.max(C - 1, 0))) : T.key === "Enter" && l[p] && (T.preventDefault(), W(l[p].slug));
1733
+ const P = (w) => {
1734
+ w.key === "ArrowDown" ? (w.preventDefault(), g((k) => Math.min(k + 1, l.length - 1))) : w.key === "ArrowUp" ? (w.preventDefault(), g((k) => Math.max(k - 1, 0))) : w.key === "Enter" && l[f] && (w.preventDefault(), W(l[f].slug));
1735
1735
  };
1736
1736
  L(() => {
1737
- const T = (C) => {
1738
- _.current && !_.current.contains(C.target) && (c(!1), i(""));
1737
+ const w = (k) => {
1738
+ p.current && !p.current.contains(k.target) && (c(!1), i(""));
1739
1739
  };
1740
- return r && document.addEventListener("mousedown", T), () => document.removeEventListener("mousedown", T);
1740
+ return r && document.addEventListener("mousedown", w), () => document.removeEventListener("mousedown", w);
1741
1741
  }, [r]);
1742
- const W = (T) => {
1743
- const C = a.basePath || "";
1744
- n(`${C}/${e}/${T}`), c(!1), i("");
1742
+ const W = (w) => {
1743
+ const k = a.basePath || "";
1744
+ n(`${k}/${e}/${w}`), c(!1), i("");
1745
1745
  };
1746
1746
  return /* @__PURE__ */ m(G, { children: [
1747
1747
  /* @__PURE__ */ m(
@@ -1751,15 +1751,15 @@ function ko({ language: e }) {
1751
1751
  className: S.searchButton,
1752
1752
  onClick: () => {
1753
1753
  c(!0), setTimeout(() => {
1754
- var T;
1755
- return (T = f.current) == null ? void 0 : T.focus();
1754
+ var w;
1755
+ return (w = h.current) == null ? void 0 : w.focus();
1756
1756
  }, 100);
1757
1757
  },
1758
1758
  "aria-label": t("ui.search"),
1759
1759
  children: [
1760
1760
  /* @__PURE__ */ o(dt, { className: S.searchIcon }),
1761
1761
  /* @__PURE__ */ o("span", { className: S.searchHint, children: t("ui.search") }),
1762
- /* @__PURE__ */ o("kbd", { className: S.kbd, children: w })
1762
+ /* @__PURE__ */ o("kbd", { className: S.kbd, children: C })
1763
1763
  ]
1764
1764
  }
1765
1765
  ),
@@ -1775,21 +1775,21 @@ function ko({ language: e }) {
1775
1775
  "div",
1776
1776
  {
1777
1777
  className: S.searchModal,
1778
- ref: _,
1779
- onClick: (T) => T.stopPropagation(),
1778
+ ref: p,
1779
+ onClick: (w) => w.stopPropagation(),
1780
1780
  children: [
1781
1781
  /* @__PURE__ */ m("div", { className: S.searchHeader, children: [
1782
1782
  /* @__PURE__ */ o(dt, { className: S.searchIcon }),
1783
1783
  /* @__PURE__ */ o(
1784
1784
  "input",
1785
1785
  {
1786
- ref: f,
1786
+ ref: h,
1787
1787
  type: "text",
1788
1788
  className: S.searchInput,
1789
1789
  placeholder: t("ui.searchPlaceholder"),
1790
1790
  value: d,
1791
- onChange: (T) => i(T.target.value),
1792
- onKeyDown: E
1791
+ onChange: (w) => i(w.target.value),
1792
+ onKeyDown: P
1793
1793
  }
1794
1794
  ),
1795
1795
  /* @__PURE__ */ o(
@@ -1805,22 +1805,22 @@ function ko({ language: e }) {
1805
1805
  }
1806
1806
  )
1807
1807
  ] }),
1808
- d && /* @__PURE__ */ o("div", { className: S.searchResults, children: l.length === 0 ? /* @__PURE__ */ o("div", { className: S.noResults, children: t("ui.noSearchResults") }) : /* @__PURE__ */ o("ul", { className: S.resultsList, children: l.map((T, C) => /* @__PURE__ */ o("li", { children: /* @__PURE__ */ m(
1808
+ d && /* @__PURE__ */ o("div", { className: S.searchResults, children: l.length === 0 ? /* @__PURE__ */ o("div", { className: S.noResults, children: t("ui.noSearchResults") }) : /* @__PURE__ */ o("ul", { className: S.resultsList, children: l.map((w, k) => /* @__PURE__ */ o("li", { children: /* @__PURE__ */ m(
1809
1809
  "button",
1810
1810
  {
1811
1811
  type: "button",
1812
- className: `${S.resultItem} ${C === p ? S.selected : ""}`,
1813
- onClick: () => W(T.slug),
1814
- onMouseEnter: () => h(C),
1812
+ className: `${S.resultItem} ${k === f ? S.selected : ""}`,
1813
+ onClick: () => W(w.slug),
1814
+ onMouseEnter: () => g(k),
1815
1815
  children: [
1816
- /* @__PURE__ */ o("div", { className: S.resultTitle, children: T.title }),
1816
+ /* @__PURE__ */ o("div", { className: S.resultTitle, children: w.title }),
1817
1817
  /* @__PURE__ */ m("div", { className: S.resultSlug, children: [
1818
1818
  "/",
1819
- T.slug
1819
+ w.slug
1820
1820
  ] })
1821
1821
  ]
1822
1822
  }
1823
- ) }, T.slug)) }) }),
1823
+ ) }, w.slug)) }) }),
1824
1824
  !d && /* @__PURE__ */ m("div", { className: S.searchHints, children: [
1825
1825
  /* @__PURE__ */ m("div", { className: S.hint, children: [
1826
1826
  /* @__PURE__ */ o("kbd", { children: "↑" }),
@@ -1845,7 +1845,7 @@ function ko({ language: e }) {
1845
1845
  )
1846
1846
  ] });
1847
1847
  }
1848
- const Co = "_header_jrobc_1", $o = "_container_jrobc_24", No = "_content_jrobc_36", Io = "_leftSection_jrobc_43", xo = "_mobileMenuButton_jrobc_49", So = "_burgerIcon_jrobc_87", Lo = "_logo_jrobc_92", Po = "_nav_jrobc_98", Eo = "_navLink_jrobc_109", Ao = "_externalIcon_jrobc_135", Oo = "_supportDropdown_jrobc_141", Do = "_themeDropdown_jrobc_145", Mo = "_themeButton_jrobc_149", Ro = "_themeIcon_jrobc_171", Bo = "_supportButton_jrobc_177", Ho = "_caretIcon_jrobc_198", jo = "_dropdownMenu_jrobc_208", Fo = "_dropdownItem_jrobc_221", qo = "_dropdownIcon_jrobc_244", $ = {
1848
+ const Co = "_header_jrobc_1", $o = "_container_jrobc_24", No = "_content_jrobc_36", Io = "_leftSection_jrobc_43", xo = "_mobileMenuButton_jrobc_49", So = "_burgerIcon_jrobc_87", Lo = "_logo_jrobc_92", Eo = "_nav_jrobc_98", Po = "_navLink_jrobc_109", Ao = "_externalIcon_jrobc_135", Oo = "_supportDropdown_jrobc_141", Do = "_themeDropdown_jrobc_145", Mo = "_themeButton_jrobc_149", Ro = "_themeIcon_jrobc_171", Bo = "_supportButton_jrobc_177", Ho = "_caretIcon_jrobc_198", jo = "_dropdownMenu_jrobc_208", Fo = "_dropdownItem_jrobc_221", qo = "_dropdownIcon_jrobc_244", $ = {
1849
1849
  header: Co,
1850
1850
  container: $o,
1851
1851
  content: No,
@@ -1853,8 +1853,8 @@ const Co = "_header_jrobc_1", $o = "_container_jrobc_24", No = "_content_jrobc_3
1853
1853
  mobileMenuButton: xo,
1854
1854
  burgerIcon: So,
1855
1855
  logo: Lo,
1856
- nav: Po,
1857
- navLink: Eo,
1856
+ nav: Eo,
1857
+ navLink: Po,
1858
1858
  externalIcon: Ao,
1859
1859
  supportDropdown: Oo,
1860
1860
  themeDropdown: Do,
@@ -1867,12 +1867,12 @@ const Co = "_header_jrobc_1", $o = "_container_jrobc_24", No = "_content_jrobc_3
1867
1867
  dropdownIcon: qo
1868
1868
  };
1869
1869
  function Uo({ onMobileMenuToggle: e }) {
1870
- const { t, i18n: n } = D(), { config: a } = M(), s = a.header ?? {}, r = s.navLinks ?? [], c = s.dropdownItems ?? [], [d, i] = I(!1), [l, u] = I(!1), { theme: p, setTheme: h } = Ht(), g = X(null), y = X(null);
1870
+ const { t, i18n: n } = D(), { config: a } = M(), s = a.header ?? {}, r = s.navLinks ?? [], c = s.dropdownItems ?? [], [d, i] = I(!1), [l, u] = I(!1), { theme: f, setTheme: g } = Bt(), _ = X(null), b = X(null);
1871
1871
  return L(() => {
1872
- const f = (_) => {
1873
- g.current && !g.current.contains(_.target) && i(!1), y.current && !y.current.contains(_.target) && u(!1);
1872
+ const h = (p) => {
1873
+ _.current && !_.current.contains(p.target) && i(!1), b.current && !b.current.contains(p.target) && u(!1);
1874
1874
  };
1875
- return document.addEventListener("mousedown", f), () => document.removeEventListener("mousedown", f);
1875
+ return document.addEventListener("mousedown", h), () => document.removeEventListener("mousedown", h);
1876
1876
  }, []), /* @__PURE__ */ o("header", { className: $.header, children: /* @__PURE__ */ o("div", { className: $.container, children: /* @__PURE__ */ m("div", { className: $.content, children: [
1877
1877
  /* @__PURE__ */ m("div", { className: $.leftSection, children: [
1878
1878
  /* @__PURE__ */ o(
@@ -1882,14 +1882,14 @@ function Uo({ onMobileMenuToggle: e }) {
1882
1882
  className: $.mobileMenuButton,
1883
1883
  onClick: e,
1884
1884
  "aria-label": "Open menu",
1885
- children: /* @__PURE__ */ o(Zt, { className: $.burgerIcon })
1885
+ children: /* @__PURE__ */ o(Xt, { className: $.burgerIcon })
1886
1886
  }
1887
1887
  ),
1888
1888
  /* @__PURE__ */ o("div", { className: $.logo })
1889
1889
  ] }),
1890
1890
  /* @__PURE__ */ m("nav", { className: $.nav, children: [
1891
1891
  /* @__PURE__ */ o(ko, { language: n.language }),
1892
- /* @__PURE__ */ m("div", { className: $.themeDropdown, ref: y, children: [
1892
+ /* @__PURE__ */ m("div", { className: $.themeDropdown, ref: b, children: [
1893
1893
  /* @__PURE__ */ m(
1894
1894
  "button",
1895
1895
  {
@@ -1900,9 +1900,9 @@ function Uo({ onMobileMenuToggle: e }) {
1900
1900
  "aria-haspopup": "true",
1901
1901
  "aria-label": t("ui.theme"),
1902
1902
  children: [
1903
- p === "light" && /* @__PURE__ */ o(ut, { className: $.themeIcon }),
1904
- p === "dark" && /* @__PURE__ */ o(ht, { className: $.themeIcon }),
1905
- p === "system" && /* @__PURE__ */ o(mt, { className: $.themeIcon }),
1903
+ f === "light" && /* @__PURE__ */ o(ut, { className: $.themeIcon }),
1904
+ f === "dark" && /* @__PURE__ */ o(ht, { className: $.themeIcon }),
1905
+ f === "system" && /* @__PURE__ */ o(mt, { className: $.themeIcon }),
1906
1906
  /* @__PURE__ */ o(je, { className: $.caretIcon })
1907
1907
  ]
1908
1908
  }
@@ -1913,7 +1913,7 @@ function Uo({ onMobileMenuToggle: e }) {
1913
1913
  {
1914
1914
  type: "button",
1915
1915
  onClick: () => {
1916
- h("light"), u(!1);
1916
+ g("light"), u(!1);
1917
1917
  },
1918
1918
  className: $.dropdownItem,
1919
1919
  children: [
@@ -1927,7 +1927,7 @@ function Uo({ onMobileMenuToggle: e }) {
1927
1927
  {
1928
1928
  type: "button",
1929
1929
  onClick: () => {
1930
- h("dark"), u(!1);
1930
+ g("dark"), u(!1);
1931
1931
  },
1932
1932
  className: $.dropdownItem,
1933
1933
  children: [
@@ -1941,7 +1941,7 @@ function Uo({ onMobileMenuToggle: e }) {
1941
1941
  {
1942
1942
  type: "button",
1943
1943
  onClick: () => {
1944
- h("system"), u(!1);
1944
+ g("system"), u(!1);
1945
1945
  },
1946
1946
  className: $.dropdownItem,
1947
1947
  children: [
@@ -1952,7 +1952,7 @@ function Uo({ onMobileMenuToggle: e }) {
1952
1952
  )
1953
1953
  ] })
1954
1954
  ] }),
1955
- c.length > 0 && /* @__PURE__ */ m("div", { className: $.supportDropdown, ref: g, children: [
1955
+ c.length > 0 && /* @__PURE__ */ m("div", { className: $.supportDropdown, ref: _, children: [
1956
1956
  /* @__PURE__ */ m(
1957
1957
  "button",
1958
1958
  {
@@ -1967,39 +1967,39 @@ function Uo({ onMobileMenuToggle: e }) {
1967
1967
  ]
1968
1968
  }
1969
1969
  ),
1970
- d && /* @__PURE__ */ o("div", { className: $.dropdownMenu, children: c.map((f, _) => {
1971
- const b = f.target ?? (f.url.startsWith("http") ? "_blank" : "_self"), w = f.rel ?? (b === "_blank" ? "noopener noreferrer" : void 0), E = f.icon;
1970
+ d && /* @__PURE__ */ o("div", { className: $.dropdownMenu, children: c.map((h, p) => {
1971
+ const y = h.target ?? (h.url.startsWith("http") ? "_blank" : "_self"), C = h.rel ?? (y === "_blank" ? "noopener noreferrer" : void 0), P = h.icon;
1972
1972
  return /* @__PURE__ */ m(
1973
1973
  "a",
1974
1974
  {
1975
- href: f.url,
1976
- target: b,
1977
- rel: w,
1975
+ href: h.url,
1976
+ target: y,
1977
+ rel: C,
1978
1978
  className: $.dropdownItem,
1979
1979
  children: [
1980
- E && /* @__PURE__ */ o(E, { className: $.dropdownIcon }),
1981
- f.label
1980
+ P && /* @__PURE__ */ o(P, { className: $.dropdownIcon }),
1981
+ h.label
1982
1982
  ]
1983
1983
  },
1984
- _
1984
+ p
1985
1985
  );
1986
1986
  }) })
1987
1987
  ] }),
1988
- r.map((f, _) => {
1989
- const b = f.target ?? (typeof f.url == "string" && f.url.startsWith("http") ? "_blank" : "_self"), w = f.rel ?? (b === "_blank" ? "noopener noreferrer" : void 0), E = f.icon;
1988
+ r.map((h, p) => {
1989
+ const y = h.target ?? (typeof h.url == "string" && h.url.startsWith("http") ? "_blank" : "_self"), C = h.rel ?? (y === "_blank" ? "noopener noreferrer" : void 0), P = h.icon;
1990
1990
  return /* @__PURE__ */ m(
1991
1991
  "a",
1992
1992
  {
1993
- href: f.url,
1994
- target: b,
1995
- rel: w,
1996
- className: f.className ?? $.navLink,
1993
+ href: h.url,
1994
+ target: y,
1995
+ rel: C,
1996
+ className: h.className ?? $.navLink,
1997
1997
  children: [
1998
- f.label,
1999
- E && /* @__PURE__ */ o(E, { className: $.externalIcon })
1998
+ h.label,
1999
+ P && /* @__PURE__ */ o(P, { className: $.externalIcon })
2000
2000
  ]
2001
2001
  },
2002
- _
2002
+ p
2003
2003
  );
2004
2004
  })
2005
2005
  ] })
@@ -2009,23 +2009,23 @@ function Xe({
2009
2009
  styles: e,
2010
2010
  onLanguageChange: t
2011
2011
  }) {
2012
- const { i18n: n } = D(), a = te(), s = Z(), { config: r } = M(), [c, d] = I(!1), i = X(null), l = n.language, u = (h) => {
2013
- const g = r.basePath || "";
2014
- let y = a.pathname;
2015
- g && y.startsWith(g) && (y = y.slice(g.length));
2016
- const f = y.split("/").filter(Boolean), _ = f[0];
2017
- let b = "";
2018
- r.supportedLanguages.includes(_) ? (f[0] = h, b = `${g}/${f.join("/")}`) : b = `${g}/${h}${y}`;
2019
- const w = b + a.search + a.hash;
2020
- n.changeLanguage(h), s(w), d(!1), t == null || t();
2012
+ const { i18n: n } = D(), a = te(), s = Z(), { config: r } = M(), [c, d] = I(!1), i = X(null), l = n.language, u = (g) => {
2013
+ const _ = r.basePath || "";
2014
+ let b = a.pathname;
2015
+ _ && b.startsWith(_) && (b = b.slice(_.length));
2016
+ const h = b.split("/").filter(Boolean), p = h[0];
2017
+ let y = "";
2018
+ r.supportedLanguages.includes(p) ? (h[0] = g, y = `${_}/${h.join("/")}`) : y = `${_}/${g}${b}`;
2019
+ const C = y + a.search + a.hash;
2020
+ n.changeLanguage(g), s(C), d(!1), t == null || t();
2021
2021
  };
2022
2022
  L(() => {
2023
- const h = (g) => {
2024
- i.current && !i.current.contains(g.target) && d(!1);
2023
+ const g = (_) => {
2024
+ i.current && !i.current.contains(_.target) && d(!1);
2025
2025
  };
2026
- return document.addEventListener("mousedown", h), () => document.removeEventListener("mousedown", h);
2026
+ return document.addEventListener("mousedown", g), () => document.removeEventListener("mousedown", g);
2027
2027
  }, []);
2028
- const p = (h) => n.getFixedT(h)("language") || h;
2028
+ const f = (g) => n.getFixedT(g)("language") || g;
2029
2029
  return /* @__PURE__ */ m("div", { className: e.languageSelect, ref: i, children: [
2030
2030
  /* @__PURE__ */ m(
2031
2031
  "button",
@@ -2036,23 +2036,23 @@ function Xe({
2036
2036
  "aria-expanded": c,
2037
2037
  "aria-haspopup": "listbox",
2038
2038
  children: [
2039
- /* @__PURE__ */ o(Jt, { className: e.icon }),
2040
- p(l),
2039
+ /* @__PURE__ */ o(Zt, { className: e.icon }),
2040
+ f(l),
2041
2041
  /* @__PURE__ */ o(je, { className: e.chevron })
2042
2042
  ]
2043
2043
  }
2044
2044
  ),
2045
- c && /* @__PURE__ */ o("div", { className: e.languageDropdown, role: "listbox", children: r.supportedLanguages.map((h) => /* @__PURE__ */ o(
2045
+ c && /* @__PURE__ */ o("div", { className: e.languageDropdown, role: "listbox", children: r.supportedLanguages.map((g) => /* @__PURE__ */ o(
2046
2046
  "button",
2047
2047
  {
2048
2048
  type: "button",
2049
- className: `${e.languageOption} ${h === l ? e.selected : ""}`,
2050
- onClick: () => u(h),
2049
+ className: `${e.languageOption} ${g === l ? e.selected : ""}`,
2050
+ onClick: () => u(g),
2051
2051
  role: "option",
2052
- "aria-selected": h === l,
2053
- children: p(h)
2052
+ "aria-selected": g === l,
2053
+ children: f(g)
2054
2054
  },
2055
- h
2055
+ g
2056
2056
  )) })
2057
2057
  ] });
2058
2058
  }
@@ -2062,80 +2062,80 @@ function Ze({ styles: e, onLinkClick: t }) {
2062
2062
  (async () => {
2063
2063
  if (s.navigationData)
2064
2064
  try {
2065
- const _ = await Ie(
2065
+ const p = await Ie(
2066
2066
  s.navigationData,
2067
2067
  u,
2068
2068
  r
2069
2069
  );
2070
- d(_);
2071
- const b = _.reduce(
2072
- (w, E, W) => {
2073
- if (ge(E)) {
2074
- const T = s.navigationData[W], C = "items" in T && T.defaultOpen === !0;
2075
- w[E.title] = C;
2070
+ d(p);
2071
+ const y = p.reduce(
2072
+ (C, P, W) => {
2073
+ if (pe(P)) {
2074
+ const w = s.navigationData[W], k = "items" in w && w.defaultOpen === !0;
2075
+ C[P.title] = k;
2076
2076
  }
2077
- return w;
2077
+ return C;
2078
2078
  },
2079
2079
  {}
2080
2080
  );
2081
- l(b);
2082
- } catch (_) {
2083
- console.error("Failed to load navigation data:", _);
2081
+ l(y);
2082
+ } catch (p) {
2083
+ console.error("Failed to load navigation data:", p);
2084
2084
  }
2085
2085
  })();
2086
2086
  }, [u, s.navigationData, r]);
2087
- const p = (f) => {
2088
- l((_) => ({
2089
- ..._,
2090
- [f]: !_[f]
2087
+ const f = (h) => {
2088
+ l((p) => ({
2089
+ ...p,
2090
+ [h]: !p[h]
2091
2091
  }));
2092
- }, h = (f) => {
2093
- const _ = s.basePath || "";
2094
- let b = a.pathname;
2095
- _ && b.startsWith(_) && (b = b.slice(_.length));
2096
- const w = b.split("/").filter(Boolean);
2097
- return w[w.length - 1] === f;
2098
- }, g = (f) => {
2099
- const _ = s.basePath || "";
2100
- let b = a.pathname;
2101
- _ && b.startsWith(_) && (b = b.slice(_.length));
2102
- const w = b.split("/").filter(Boolean);
2103
- return w[0] && s.supportedLanguages.includes(w[0]) ? `${_}/${w[0]}/${f}` : `${_}/${u}/${f}`;
2104
- }, y = () => {
2092
+ }, g = (h) => {
2093
+ const p = s.basePath || "";
2094
+ let y = a.pathname;
2095
+ p && y.startsWith(p) && (y = y.slice(p.length));
2096
+ const C = y.split("/").filter(Boolean);
2097
+ return C[C.length - 1] === h;
2098
+ }, _ = (h) => {
2099
+ const p = s.basePath || "";
2100
+ let y = a.pathname;
2101
+ p && y.startsWith(p) && (y = y.slice(p.length));
2102
+ const C = y.split("/").filter(Boolean);
2103
+ return C[0] && s.supportedLanguages.includes(C[0]) ? `${p}/${C[0]}/${h}` : `${p}/${u}/${h}`;
2104
+ }, b = () => {
2105
2105
  t == null || t();
2106
2106
  };
2107
- return /* @__PURE__ */ o("div", { className: e.navigation, children: c.map((f) => ge(f) ? /* @__PURE__ */ m("div", { className: e.section, children: [
2107
+ return /* @__PURE__ */ o("div", { className: e.navigation, children: c.map((h) => pe(h) ? /* @__PURE__ */ m("div", { className: e.section, children: [
2108
2108
  /* @__PURE__ */ m(
2109
2109
  "button",
2110
2110
  {
2111
2111
  type: "button",
2112
- className: `${e.sectionButton} ${i[f.title] ? e.expanded : ""}`,
2113
- onClick: () => p(f.title),
2112
+ className: `${e.sectionButton} ${i[h.title] ? e.expanded : ""}`,
2113
+ onClick: () => f(h.title),
2114
2114
  children: [
2115
- f.title,
2115
+ h.title,
2116
2116
  /* @__PURE__ */ o(It, { className: e.icon })
2117
2117
  ]
2118
2118
  }
2119
2119
  ),
2120
- i[f.title] && /* @__PURE__ */ o("div", { className: e.sectionItems, children: f.items.map((_) => /* @__PURE__ */ o(
2120
+ i[h.title] && /* @__PURE__ */ o("div", { className: e.sectionItems, children: h.items.map((p) => /* @__PURE__ */ o(
2121
2121
  Ne,
2122
2122
  {
2123
- to: g(_.slug),
2124
- className: `${e.navItem} ${h(_.slug) ? e.active : ""}`,
2125
- onClick: y,
2126
- children: /* @__PURE__ */ o("div", { className: e.navItemContent, children: /* @__PURE__ */ o("span", { className: e.navItemTitle, children: _.title }) })
2123
+ to: _(p.slug),
2124
+ className: `${e.navItem} ${g(p.slug) ? e.active : ""}`,
2125
+ onClick: b,
2126
+ children: /* @__PURE__ */ o("div", { className: e.navItemContent, children: /* @__PURE__ */ o("span", { className: e.navItemTitle, children: p.title }) })
2127
2127
  },
2128
- _.slug
2128
+ p.slug
2129
2129
  )) })
2130
- ] }, f.title) : /* @__PURE__ */ o(
2130
+ ] }, h.title) : /* @__PURE__ */ o(
2131
2131
  Ne,
2132
2132
  {
2133
- to: g(f.slug),
2134
- className: `${e.navItem} ${h(f.slug) ? e.active : ""}`,
2135
- onClick: y,
2136
- children: /* @__PURE__ */ o("div", { className: e.navItemContent, children: /* @__PURE__ */ o("span", { className: e.navItemTitle, children: f.title }) })
2133
+ to: _(h.slug),
2134
+ className: `${e.navItem} ${g(h.slug) ? e.active : ""}`,
2135
+ onClick: b,
2136
+ children: /* @__PURE__ */ o("div", { className: e.navItemContent, children: /* @__PURE__ */ o("span", { className: e.navItemTitle, children: h.title }) })
2137
2137
  },
2138
- f.slug
2138
+ h.slug
2139
2139
  )) });
2140
2140
  }
2141
2141
  function _s({
@@ -2148,7 +2148,7 @@ function _s({
2148
2148
  /* @__PURE__ */ o(Ze, { styles: e, onLinkClick: t })
2149
2149
  ] });
2150
2150
  }
2151
- const Wo = "_backdrop_1a7pu_1", zo = "_open_1a7pu_13", Ko = "_mobileMenu_1a7pu_18", Vo = "_header_1a7pu_37", Yo = "_brand_1a7pu_46", Go = "_cloudIcon_1a7pu_53", Qo = "_title_1a7pu_62", Xo = "_closeButton_1a7pu_69", Zo = "_closeIcon_1a7pu_101", Jo = "_languageSection_1a7pu_106", er = "_languageSelect_1a7pu_112", tr = "_languageButton_1a7pu_117", nr = "_icon_1a7pu_156", ar = "_chevron_1a7pu_162", or = "_languageDropdown_1a7pu_172", rr = "_languageOption_1a7pu_185", sr = "_selected_1a7pu_226", cr = "_scrollArea_1a7pu_231", ir = "_navigation_1a7pu_237", lr = "_section_1a7pu_241", dr = "_sectionButton_1a7pu_245", ur = "_expanded_1a7pu_285", hr = "_sectionItems_1a7pu_289", mr = "_navItem_1a7pu_297", fr = "_active_1a7pu_310", pr = "_navItemContent_1a7pu_316", gr = "_navItemTitle_1a7pu_322", H = {
2151
+ const Wo = "_backdrop_1a7pu_1", zo = "_open_1a7pu_13", Ko = "_mobileMenu_1a7pu_18", Vo = "_header_1a7pu_37", Yo = "_brand_1a7pu_46", Go = "_cloudIcon_1a7pu_53", Qo = "_title_1a7pu_62", Xo = "_closeButton_1a7pu_69", Zo = "_closeIcon_1a7pu_101", Jo = "_languageSection_1a7pu_106", er = "_languageSelect_1a7pu_112", tr = "_languageButton_1a7pu_117", nr = "_icon_1a7pu_156", ar = "_chevron_1a7pu_162", or = "_languageDropdown_1a7pu_172", rr = "_languageOption_1a7pu_185", sr = "_selected_1a7pu_226", cr = "_scrollArea_1a7pu_231", ir = "_navigation_1a7pu_237", lr = "_section_1a7pu_241", dr = "_sectionButton_1a7pu_245", ur = "_expanded_1a7pu_285", hr = "_sectionItems_1a7pu_289", mr = "_navItem_1a7pu_297", fr = "_active_1a7pu_310", gr = "_navItemContent_1a7pu_316", pr = "_navItemTitle_1a7pu_322", H = {
2152
2152
  backdrop: Wo,
2153
2153
  open: zo,
2154
2154
  mobileMenu: Ko,
@@ -2174,8 +2174,8 @@ const Wo = "_backdrop_1a7pu_1", zo = "_open_1a7pu_13", Ko = "_mobileMenu_1a7pu_1
2174
2174
  sectionItems: hr,
2175
2175
  navItem: mr,
2176
2176
  active: fr,
2177
- navItemContent: pr,
2178
- navItemTitle: gr
2177
+ navItemContent: gr,
2178
+ navItemTitle: pr
2179
2179
  };
2180
2180
  function _r({ isOpen: e, onClose: t }) {
2181
2181
  const { config: n } = M(), a = n.logo;
@@ -2216,7 +2216,7 @@ function _r({ isOpen: e, onClose: t }) {
2216
2216
  ] })
2217
2217
  ] });
2218
2218
  }
2219
- const vr = "_sidebar_1tdxt_1", br = "_header_1tdxt_17", yr = "_brand_1tdxt_29", wr = "_cloudIcon_1tdxt_35", Tr = "_title_1tdxt_44", kr = "_languageSelect_1tdxt_55", Cr = "_languageButton_1tdxt_61", $r = "_icon_1tdxt_99", Nr = "_chevron_1tdxt_104", Ir = "_languageDropdown_1tdxt_114", xr = "_languageOption_1tdxt_128", Sr = "_selected_1tdxt_147", Lr = "_scrollArea_1tdxt_152", Pr = "_navigation_1tdxt_158", Er = "_section_1tdxt_164", Ar = "_sectionButton_1tdxt_170", Or = "_expanded_1tdxt_213", Dr = "_sectionItems_1tdxt_217", Mr = "_navItem_1tdxt_225", Rr = "_active_1tdxt_238", Br = "_navItemContent_1tdxt_243", Y = {
2219
+ const vr = "_sidebar_1tdxt_1", br = "_header_1tdxt_17", yr = "_brand_1tdxt_29", wr = "_cloudIcon_1tdxt_35", Tr = "_title_1tdxt_44", kr = "_languageSelect_1tdxt_55", Cr = "_languageButton_1tdxt_61", $r = "_icon_1tdxt_99", Nr = "_chevron_1tdxt_104", Ir = "_languageDropdown_1tdxt_114", xr = "_languageOption_1tdxt_128", Sr = "_selected_1tdxt_147", Lr = "_scrollArea_1tdxt_152", Er = "_navigation_1tdxt_158", Pr = "_section_1tdxt_164", Ar = "_sectionButton_1tdxt_170", Or = "_expanded_1tdxt_213", Dr = "_sectionItems_1tdxt_217", Mr = "_navItem_1tdxt_225", Rr = "_active_1tdxt_238", Br = "_navItemContent_1tdxt_243", Y = {
2220
2220
  sidebar: vr,
2221
2221
  header: br,
2222
2222
  brand: yr,
@@ -2230,8 +2230,8 @@ const vr = "_sidebar_1tdxt_1", br = "_header_1tdxt_17", yr = "_brand_1tdxt_29",
2230
2230
  languageOption: xr,
2231
2231
  selected: Sr,
2232
2232
  scrollArea: Lr,
2233
- navigation: Pr,
2234
- section: Er,
2233
+ navigation: Er,
2234
+ section: Pr,
2235
2235
  sectionButton: Ar,
2236
2236
  expanded: Or,
2237
2237
  sectionItems: Dr,
@@ -2252,7 +2252,7 @@ function Hr() {
2252
2252
  /* @__PURE__ */ o("div", { className: Y.scrollArea, children: /* @__PURE__ */ o(Ze, { styles: Y }) })
2253
2253
  ] });
2254
2254
  }
2255
- const jr = "_app_wf6ni_1", Fr = "_layout_wf6ni_9", qr = "_main_wf6ni_15", Ur = "_fullWidth_wf6ni_21", Wr = "_contentWrapper_wf6ni_30", pe = {
2255
+ const jr = "_app_wf6ni_1", Fr = "_layout_wf6ni_9", qr = "_main_wf6ni_15", Ur = "_fullWidth_wf6ni_21", Wr = "_contentWrapper_wf6ni_30", ge = {
2256
2256
  app: jr,
2257
2257
  layout: Fr,
2258
2258
  main: qr,
@@ -2272,16 +2272,16 @@ function zr({ children: e }) {
2272
2272
  if (!t || !a.supportedLanguages.includes(t))
2273
2273
  return /* @__PURE__ */ o(Nt, { to: "/en/welcome", replace: !0 });
2274
2274
  const i = !!a.header, l = a.showSideMenu !== !1, u = a.contentMaxWidth ? { width: "100%", maxWidth: a.contentMaxWidth } : void 0;
2275
- return /* @__PURE__ */ m("div", { className: pe.app, children: [
2275
+ return /* @__PURE__ */ m("div", { className: ge.app, children: [
2276
2276
  i && /* @__PURE__ */ o(Uo, { onMobileMenuToggle: c }),
2277
2277
  /* @__PURE__ */ o(_r, { isOpen: s, onClose: d }),
2278
- /* @__PURE__ */ m("div", { className: pe.layout, children: [
2278
+ /* @__PURE__ */ m("div", { className: ge.layout, children: [
2279
2279
  l && /* @__PURE__ */ o(Hr, {}),
2280
2280
  /* @__PURE__ */ o(
2281
2281
  "main",
2282
2282
  {
2283
- className: `${pe.main} ${l ? "" : pe.fullWidth}`,
2284
- children: /* @__PURE__ */ o("div", { className: pe.contentWrapper, style: u, children: e })
2283
+ className: `${ge.main} ${l ? "" : ge.fullWidth}`,
2284
+ children: /* @__PURE__ */ o("div", { className: ge.contentWrapper, style: u, children: e })
2285
2285
  }
2286
2286
  )
2287
2287
  ] })
@@ -2306,86 +2306,77 @@ function os() {
2306
2306
  L(() => {
2307
2307
  (async () => {
2308
2308
  try {
2309
- const g = n.navigationData || [];
2310
- if (g.length === 0) return;
2311
- const y = await Ie(
2312
- g,
2309
+ const f = n.navigationData || [];
2310
+ if (f.length === 0) return;
2311
+ const g = await Ie(
2312
+ f,
2313
2313
  e.language,
2314
2314
  a
2315
- ), f = [];
2316
- for (const b of y)
2317
- if (ge(b))
2318
- for (const w of b.items)
2319
- f.push({
2320
- slug: w.slug,
2321
- title: w.title
2315
+ ), _ = [];
2316
+ for (const h of g)
2317
+ if (pe(h))
2318
+ for (const p of h.items)
2319
+ _.push({
2320
+ slug: p.slug,
2321
+ title: p.title
2322
2322
  });
2323
2323
  else
2324
- f.push({
2325
- slug: b.slug,
2326
- title: b.title
2324
+ _.push({
2325
+ slug: h.slug,
2326
+ title: h.title
2327
2327
  });
2328
- const _ = await Promise.all(
2329
- f.map(async (b) => {
2328
+ const b = await Promise.all(
2329
+ _.map(async (h) => {
2330
2330
  try {
2331
- const w = await a(e.language, b.slug);
2331
+ const p = await a(e.language, h.slug);
2332
2332
  return {
2333
- ...b,
2334
- title: w.frontmatter.title || b.title,
2335
- date: w.frontmatter.date,
2336
- author: w.frontmatter.author,
2337
- description: w.frontmatter.description
2333
+ ...h,
2334
+ title: p.frontmatter.title || h.title,
2335
+ date: p.frontmatter.date,
2336
+ author: p.frontmatter.author,
2337
+ description: p.frontmatter.description
2338
2338
  };
2339
2339
  } catch {
2340
- return b;
2340
+ return h;
2341
2341
  }
2342
2342
  })
2343
2343
  );
2344
- _.sort((b, w) => b.date && w.date ? new Date(w.date).getTime() - new Date(b.date).getTime() : b.date ? -1 : w.date ? 1 : b.title.localeCompare(w.title)), c(_.slice(0, 50));
2345
- } catch (g) {
2346
- console.error("Failed to load articles:", g);
2344
+ b.sort((h, p) => h.date && p.date ? new Date(p.date).getTime() - new Date(h.date).getTime() : h.date ? -1 : p.date ? 1 : h.title.localeCompare(p.title)), c(b.slice(0, 50));
2345
+ } catch (f) {
2346
+ console.error("Failed to load articles:", f);
2347
2347
  } finally {
2348
2348
  i(!1);
2349
2349
  }
2350
2350
  })();
2351
2351
  }, [e.language, n.navigationData, a]);
2352
- const l = (h) => {
2353
- const g = n.basePath || "";
2354
- window.scrollTo({ top: 0, left: 0, behavior: "auto" }), s(`${g}/${e.language}/${h}`);
2352
+ const l = (u) => {
2353
+ const f = n.basePath || "";
2354
+ window.scrollTo({ top: 0, left: 0, behavior: "auto" }), s(`${f}/${e.language}/${u}`);
2355
2355
  };
2356
- if (d)
2357
- return /* @__PURE__ */ m("div", { className: A.homePage, children: [
2358
- /* @__PURE__ */ o("div", { className: A.header, children: /* @__PURE__ */ o("h1", { className: A.title, children: t("ui.latestPosts") }) }),
2359
- /* @__PURE__ */ o("div", { className: A.articlesList, children: [...Array(5)].map((h, g) => /* @__PURE__ */ m("div", { className: A.skeletonCard, children: [
2360
- /* @__PURE__ */ o("div", { className: A.skeletonTitle }),
2361
- /* @__PURE__ */ o("div", { className: A.skeletonText }),
2362
- /* @__PURE__ */ o("div", { className: A.skeletonText }),
2363
- /* @__PURE__ */ o("div", { className: A.skeletonMetadata })
2364
- ] }, g)) })
2365
- ] });
2366
- if (r.length === 0)
2367
- return /* @__PURE__ */ o("div", { className: A.empty, children: t("ui.noArticlesFound") });
2368
- const u = n.title, p = n.description;
2369
- return /* @__PURE__ */ m(G, { children: [
2370
- /* @__PURE__ */ m(Mt, { children: [
2371
- /* @__PURE__ */ o("title", { children: u }),
2372
- p && /* @__PURE__ */ o("meta", { name: "description", content: p })
2373
- ] }),
2356
+ return d ? /* @__PURE__ */ m("div", { className: A.homePage, children: [
2357
+ /* @__PURE__ */ o("div", { className: A.header, children: /* @__PURE__ */ o("h1", { className: A.title, children: t("ui.latestPosts") }) }),
2358
+ /* @__PURE__ */ o("div", { className: A.articlesList, children: [...Array(5)].map((u, f) => /* @__PURE__ */ m("div", { className: A.skeletonCard, children: [
2359
+ /* @__PURE__ */ o("div", { className: A.skeletonTitle }),
2360
+ /* @__PURE__ */ o("div", { className: A.skeletonText }),
2361
+ /* @__PURE__ */ o("div", { className: A.skeletonText }),
2362
+ /* @__PURE__ */ o("div", { className: A.skeletonMetadata })
2363
+ ] }, f)) })
2364
+ ] }) : r.length === 0 ? /* @__PURE__ */ o("div", { className: A.empty, children: t("ui.noArticlesFound") }) : /* @__PURE__ */ m(G, { children: [
2374
2365
  /* @__PURE__ */ m("div", { className: A.homePage, children: [
2375
2366
  /* @__PURE__ */ o("div", { className: A.header, children: /* @__PURE__ */ o("h1", { className: A.title, children: t("ui.latestPosts") }) }),
2376
- /* @__PURE__ */ o("div", { className: A.articlesList, children: r.map((h) => /* @__PURE__ */ m(
2367
+ /* @__PURE__ */ o("div", { className: A.articlesList, children: r.map((u) => /* @__PURE__ */ m(
2377
2368
  "button",
2378
2369
  {
2379
2370
  className: A.articleCard,
2380
- onClick: () => l(h.slug),
2371
+ onClick: () => l(u.slug),
2381
2372
  type: "button",
2382
2373
  children: [
2383
- /* @__PURE__ */ o("h2", { className: A.articleTitle, children: h.title }),
2384
- h.description && /* @__PURE__ */ o("p", { className: A.articleDescription, children: h.description }),
2385
- /* @__PURE__ */ o(ze, { date: h.date, author: h.author })
2374
+ /* @__PURE__ */ o("h2", { className: A.articleTitle, children: u.title }),
2375
+ u.description && /* @__PURE__ */ o("p", { className: A.articleDescription, children: u.description }),
2376
+ /* @__PURE__ */ o(ze, { date: u.date, author: u.author })
2386
2377
  ]
2387
2378
  },
2388
- h.slug
2379
+ u.slug
2389
2380
  )) })
2390
2381
  ] }),
2391
2382
  /* @__PURE__ */ o(na, {})
@@ -2393,7 +2384,7 @@ function os() {
2393
2384
  }
2394
2385
  function vs() {
2395
2386
  const { language: e } = Ke(), { config: t } = M();
2396
- return /* @__PURE__ */ o(zr, { children: /* @__PURE__ */ m(Kt, { children: [
2387
+ return /* @__PURE__ */ o(zr, { children: /* @__PURE__ */ m(zt, { children: [
2397
2388
  /* @__PURE__ */ o(lt, { path: "/:slug", element: /* @__PURE__ */ o(ao, { language: e }) }),
2398
2389
  /* @__PURE__ */ o(
2399
2390
  lt,
@@ -2428,9 +2419,9 @@ function ys() {
2428
2419
  };
2429
2420
  }
2430
2421
  export {
2431
- ln as AdvancedModeToggle,
2422
+ cn as AdvancedModeToggle,
2432
2423
  Qn as ArticleNavigation,
2433
- gs as BlogProvider,
2424
+ ps as BlogProvider,
2434
2425
  Mn as BlogRoot,
2435
2426
  na as BlogSidebar,
2436
2427
  la as Breadcrumb,
@@ -2449,13 +2440,13 @@ export {
2449
2440
  Na as TableOfContents,
2450
2441
  Ba as TagResultsModal,
2451
2442
  za as Tags,
2452
- ps as createBlogUtils,
2453
- Rt as createContentLoaders,
2443
+ gs as createBlogUtils,
2444
+ Mt as createContentLoaders,
2454
2445
  ce as generateHeadingId,
2455
2446
  Bn as getAdjacentArticles,
2456
2447
  Ie as getNavigationData,
2457
2448
  M as useBlogConfig,
2458
2449
  ys as useLanguageChange,
2459
2450
  bs as useSearchModal,
2460
- Ht as useTheme
2451
+ Bt as useTheme
2461
2452
  };