@x-wave/blog 1.0.38 → 1.0.39

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