@rspress/core 1.0.0-beta.3 → 1.0.0-beta.5

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 (37) hide show
  1. package/dist/runtime/App.js +24 -4
  2. package/dist/runtime/index.d.ts +2 -2
  3. package/dist/runtime/index.js +2 -2
  4. package/dist/runtime/tsconfig.json +2 -1
  5. package/dist/runtime/utils.d.ts +1 -0
  6. package/dist/runtime/utils.js +7 -1
  7. package/dist/theme/bundle.css +132 -125
  8. package/dist/theme/bundle.d.ts +5 -2
  9. package/dist/theme/bundle.js +898 -910
  10. package/dist/theme/bundle.js.map +1 -1
  11. package/package.json +6 -6
  12. package/src/runtime/App.tsx +21 -1
  13. package/src/runtime/index.ts +2 -1
  14. package/src/runtime/tsconfig.json +2 -1
  15. package/src/runtime/utils.ts +9 -0
  16. package/src/theme-default/components/Aside/index.css +0 -1
  17. package/src/theme-default/components/Aside/index.tsx +7 -8
  18. package/src/theme-default/components/DocFooter/index.tsx +4 -1
  19. package/src/theme-default/components/HomeHero/index.module.scss +6 -0
  20. package/src/theme-default/components/HomeHero/index.tsx +8 -2
  21. package/src/theme-default/components/LocalSideBar/index.tsx +5 -15
  22. package/src/theme-default/components/Nav/NavBarTitle.tsx +42 -0
  23. package/src/theme-default/components/Nav/index.module.scss +18 -4
  24. package/src/theme-default/components/Nav/index.tsx +14 -54
  25. package/src/theme-default/components/NavHambmger/index.tsx +1 -3
  26. package/src/theme-default/components/NavScreen/index.tsx +31 -18
  27. package/src/theme-default/components/Sidebar/SidebarGroup.tsx +1 -1
  28. package/src/theme-default/components/Sidebar/index.module.scss +20 -11
  29. package/src/theme-default/components/Sidebar/index.tsx +25 -38
  30. package/src/theme-default/layout/DocLayout/index.module.scss +7 -3
  31. package/src/theme-default/layout/DocLayout/index.tsx +6 -19
  32. package/src/theme-default/layout/HomeLayout/index.tsx +1 -1
  33. package/src/theme-default/layout/Layout/index.tsx +3 -25
  34. package/src/theme-default/logic/index.ts +1 -0
  35. package/src/theme-default/logic/sideEffects.ts +8 -7
  36. package/src/theme-default/logic/useHiddenNav.ts +55 -0
  37. package/src/theme-default/styles/code.css +0 -1
@@ -41,23 +41,21 @@ function NotFoundLayout() {
41
41
  }
42
42
 
43
43
  // src/theme-default/layout/Layout/index.tsx
44
- import { jsx as _jsx15, jsxs as _jsxs9 } from "react/jsx-runtime";
44
+ import { jsx as _jsx16, jsxs as _jsxs10 } from "react/jsx-runtime";
45
45
  import "nprogress/nprogress.css";
46
- import React5, { useEffect as useEffect8 } from "react";
46
+ import { useEffect as useEffect10 } from "react";
47
47
  import { Helmet } from "react-helmet-async";
48
48
  import Theme, { Nav } from "@theme";
49
- import globalComponents from "virtual-global-components";
50
49
 
51
50
  // src/theme-default/layout/DocLayout/index.tsx
52
- import { jsx as _jsx14, jsxs as _jsxs8 } from "react/jsx-runtime";
53
- import { useLocation as useLocation4 } from "react-router-dom";
54
- import { useEffect as useEffect7, useState as useState4 } from "react";
51
+ import { jsx as _jsx15, jsxs as _jsxs9 } from "react/jsx-runtime";
52
+ import { useEffect as useEffect9, useState as useState6 } from "react";
55
53
  import { MDXProvider } from "@mdx-js/react";
56
54
  import { getCustomMDXComponent } from "@theme";
57
55
 
58
56
  // src/theme-default/components/Aside/index.tsx
59
57
  import { jsx as _jsx2, jsxs as _jsxs2 } from "react/jsx-runtime";
60
- import { useRef, useEffect as useEffect2 } from "react";
58
+ import { useEffect as useEffect3 } from "react";
61
59
 
62
60
  // src/theme-default/logic/usePrevNextPage.ts
63
61
  import { useLocation as useLocation2 } from "react-router-dom";
@@ -250,8 +248,51 @@ function useEditLink() {
250
248
  };
251
249
  }
252
250
 
253
- // src/theme-default/logic/sideEffects.ts
251
+ // src/theme-default/logic/useHiddenNav.ts
254
252
  import throttle from "lodash-es/throttle";
253
+ import { useEffect as useEffect2, useRef, useState as useState2 } from "react";
254
+ import { useLocation as useLocation3, usePageData as usePageData4 } from "@/runtime";
255
+ function useDisableNav() {
256
+ const { siteData: { themeConfig }, page: { frontmatter = {} } } = usePageData4();
257
+ var _frontmatter_navbar;
258
+ return !((_frontmatter_navbar = frontmatter === null || frontmatter === void 0 ? void 0 : frontmatter.navbar) !== null && _frontmatter_navbar !== void 0 ? _frontmatter_navbar : true) || (themeConfig === null || themeConfig === void 0 ? void 0 : themeConfig.hideNavbar) === "always";
259
+ }
260
+ function useHiddenNav() {
261
+ const { siteData: { themeConfig } } = usePageData4();
262
+ var _themeConfig_hideNavbar;
263
+ const hiddenBehaivor = (_themeConfig_hideNavbar = themeConfig.hideNavbar) !== null && _themeConfig_hideNavbar !== void 0 ? _themeConfig_hideNavbar : "never";
264
+ const [hiddenNav, setHiddenNav] = useState2(false);
265
+ const { pathname } = useLocation3();
266
+ const lastScrollTop = useRef(0);
267
+ if (hiddenBehaivor === "never") {
268
+ return false;
269
+ } else if (hiddenBehaivor === "always") {
270
+ return true;
271
+ } else {
272
+ useEffect2(() => {
273
+ setHiddenNav(false);
274
+ const onScrollListen = throttle(() => {
275
+ const { scrollTop } = document.documentElement;
276
+ if (scrollTop === lastScrollTop.current) {
277
+ return;
278
+ }
279
+ const shouldHidden = lastScrollTop.current > 0 && scrollTop - lastScrollTop.current > 0;
280
+ setHiddenNav(shouldHidden);
281
+ lastScrollTop.current = scrollTop <= 0 ? 0 : scrollTop;
282
+ }, 200);
283
+ window.addEventListener("mousewheel", onScrollListen);
284
+ return () => {
285
+ window.removeEventListener("mousewheel", onScrollListen);
286
+ };
287
+ }, [
288
+ pathname
289
+ ]);
290
+ return hiddenNav;
291
+ }
292
+ }
293
+
294
+ // src/theme-default/logic/sideEffects.ts
295
+ import throttle2 from "lodash-es/throttle";
255
296
  import { inBrowser } from "@rspress/shared";
256
297
  function _define_property2(obj, key, value) {
257
298
  if (key in obj) {
@@ -282,9 +323,9 @@ function _object_spread2(target) {
282
323
  return target;
283
324
  }
284
325
  var DEFAULT_NAV_HEIGHT = 72;
285
- function scrollToTarget(target, isSmooth) {
326
+ function scrollToTarget(target, isSmooth, fallbackHeight = DEFAULT_NAV_HEIGHT) {
286
327
  const targetPadding = parseInt(window.getComputedStyle(target).paddingTop, 10);
287
- const targetTop = window.scrollY + target.getBoundingClientRect().top - DEFAULT_NAV_HEIGHT + targetPadding;
328
+ const targetTop = window.scrollY + target.getBoundingClientRect().top - fallbackHeight - targetPadding;
288
329
  window.scrollTo(_object_spread2({
289
330
  left: 0,
290
331
  top: targetTop
@@ -336,7 +377,6 @@ function bindingAsideScroll() {
336
377
  function isBottom() {
337
378
  return document.documentElement.scrollTop + window.innerHeight >= document.documentElement.scrollHeight;
338
379
  }
339
- const marker = document.getElementById("aside-marker");
340
380
  const aside = document.getElementById("aside-container");
341
381
  const links = Array.from(document.querySelectorAll(".rspress-doc .header-anchor")).filter((item) => {
342
382
  var _item_parentElement;
@@ -347,8 +387,7 @@ function bindingAsideScroll() {
347
387
  }
348
388
  let prevActiveLink = null;
349
389
  const headers = Array.from((aside === null || aside === void 0 ? void 0 : aside.getElementsByTagName("a")) || []).map((item) => decodeURIComponent(item.hash));
350
- if (marker && !headers.length) {
351
- marker.style.opacity = "0";
390
+ if (!headers.length) {
352
391
  return;
353
392
  }
354
393
  const activate = (links2, index) => {
@@ -389,7 +428,7 @@ function bindingAsideScroll() {
389
428
  }
390
429
  }
391
430
  };
392
- const throttledSetLink = throttle(setActiveLink, 200);
431
+ const throttledSetLink = throttle2(setActiveLink, 200);
393
432
  window.addEventListener("scroll", throttledSetLink);
394
433
  return () => {
395
434
  window.removeEventListener("scroll", throttledSetLink);
@@ -404,11 +443,11 @@ function setup() {
404
443
 
405
444
  // src/theme-default/logic/usePathUtils.ts
406
445
  import { isExternalUrl } from "@rspress/shared";
407
- import { removeBase, useLang, usePageData as usePageData4, normalizeHrefInRuntime as normalizeHref, useVersion, withBase as withBase3 } from "@/runtime";
446
+ import { removeBase, useLang, usePageData as usePageData5, normalizeHrefInRuntime as normalizeHref, useVersion, withBase as withBase3 } from "@/runtime";
408
447
  function usePathUtils() {
409
448
  const currentLang = useLang();
410
449
  const currentVersion = useVersion();
411
- const pageData = usePageData4();
450
+ const pageData = usePageData5();
412
451
  const defaultLang = pageData.siteData.lang;
413
452
  const defaultVersion = pageData.siteData.multiVersion.default;
414
453
  const normalizeLinkHref = (rawHref) => {
@@ -484,13 +523,10 @@ function Aside(props) {
484
523
  var _headers_;
485
524
  const { headers } = props;
486
525
  const hasOutline = headers.length > 0;
487
- const markerRef = useRef(null);
488
526
  const baseHeaderLevel = ((_headers_ = headers[0]) === null || _headers_ === void 0 ? void 0 : _headers_.depth) || 2;
489
- useEffect2(() => {
527
+ const hiddenNav = useHiddenNav();
528
+ useEffect3(() => {
490
529
  let unbinding;
491
- if (markerRef.current) {
492
- markerRef.current.style.opacity = "0";
493
- }
494
530
  setTimeout(() => {
495
531
  unbinding = bindingAsideScroll();
496
532
  }, 100);
@@ -500,7 +536,7 @@ function Aside(props) {
500
536
  } else {
501
537
  const target = document.getElementById(hash.slice(1));
502
538
  if (target) {
503
- scrollToTarget(target, false);
539
+ scrollToTarget(target, false, hiddenNav ? 0 : DEFAULT_NAV_HEIGHT);
504
540
  }
505
541
  }
506
542
  return () => {
@@ -525,7 +561,7 @@ function Aside(props) {
525
561
  window.location.hash = header.id;
526
562
  const target = document.getElementById(header.id);
527
563
  if (target) {
528
- scrollToTarget(target, false);
564
+ scrollToTarget(target, false, hiddenNav ? 0 : DEFAULT_NAV_HEIGHT);
529
565
  }
530
566
  },
531
567
  children: /* @__PURE__ */ _jsx2("span", {
@@ -586,7 +622,7 @@ function EditLink() {
586
622
 
587
623
  // src/theme-default/components/Link/index.tsx
588
624
  import { jsx as _jsx4 } from "react/jsx-runtime";
589
- import { matchRoutes, useLocation as useLocation3, useNavigate } from "react-router-dom";
625
+ import { matchRoutes, useLocation as useLocation4, useNavigate } from "react-router-dom";
590
626
  import nprogress from "nprogress";
591
627
  import { routes } from "virtual-routes";
592
628
 
@@ -635,7 +671,7 @@ function Link(props) {
635
671
  const rel = isExternal ? "noopener noreferrer" : void 0;
636
672
  const withBaseUrl = isExternal ? href : withBase4(normalizeHref2(href));
637
673
  const navigate = useNavigate();
638
- const { pathname } = useLocation3();
674
+ const { pathname } = useLocation4();
639
675
  const inCurrentPage = withBaseUrl.startsWith(pathname);
640
676
  const handleNavigate = function() {
641
677
  var _ref = _async_to_generator(function* (e) {
@@ -692,11 +728,11 @@ function Link(props) {
692
728
  var index_module_default3 = { "pager": "pager_33e00", "has-next": "has-next_33e00", "hasNext": "has-next_33e00", "prev": "prev_33e00", "next": "next_33e00", "pager-link": "pager-link_33e00", "pagerLink": "pager-link_33e00", "title": "title_33e00", "desc": "desc_33e00" };
693
729
 
694
730
  // src/theme-default/components/DocFooter/index.tsx
695
- import { normalizeHrefInRuntime as normalizeHref3, usePageData as usePageData5 } from "@/runtime";
731
+ import { normalizeHrefInRuntime as normalizeHref3, usePageData as usePageData6 } from "@/runtime";
696
732
  function DocFooter() {
697
733
  const { prevPage, nextPage } = usePrevNextPage();
698
734
  const { prevPageText = "Previous Page", nextPageText = "Next page", lastUpdatedText: localesLastUpdatedText = "Last Updated", lastUpdated: localesLastUpdated = false } = useLocaleSiteData();
699
- const { page: { lastUpdatedTime }, siteData: siteData2 } = usePageData5();
735
+ const { page: { lastUpdatedTime }, siteData: siteData2 } = usePageData6();
700
736
  const { themeConfig } = siteData2;
701
737
  const lastUpdatedText = (themeConfig === null || themeConfig === void 0 ? void 0 : themeConfig.lastUpdatedText) || localesLastUpdatedText;
702
738
  const showLastUpdated = themeConfig.lastUpdated || localesLastUpdated;
@@ -768,31 +804,70 @@ function DocFooter() {
768
804
  }
769
805
 
770
806
  // src/theme-default/components/LocalSideBar/index.tsx
771
- import { jsx as _jsx12, jsxs as _jsxs6 } from "react/jsx-runtime";
772
- import { Fragment, useEffect as useEffect6, useState as useState3 } from "react";
807
+ import { jsx as _jsx13, jsxs as _jsxs7 } from "react/jsx-runtime";
808
+ import { Fragment, useEffect as useEffect8, useState as useState5 } from "react";
773
809
 
774
810
  // src/theme-default/components/Sidebar/index.tsx
775
- import { jsx as _jsx10 } from "react/jsx-runtime";
776
- import { useEffect as useEffect5, useState as useState2 } from "react";
777
- import { matchRoutes as matchRoutes2 } from "react-router-dom";
811
+ import { jsx as _jsx11, jsxs as _jsxs6 } from "react/jsx-runtime";
812
+ import { useEffect as useEffect7, useState as useState4 } from "react";
813
+ import { normalizeSlash } from "@rspress/shared";
778
814
  import { routes as routes2 } from "virtual-routes";
779
815
 
816
+ // src/theme-default/components/Nav/NavBarTitle.tsx
817
+ import { jsx as _jsx6 } from "react/jsx-runtime";
818
+ import { useContext, useEffect as useEffect4, useState as useState3 } from "react";
819
+
820
+ // src/theme-default/components/Nav/index.module.scss
821
+ var index_module_default4 = { "hidden": "hidden_47ac2", "container": "container_47ac2", "navContainer": "navContainer_47ac2", "leftNav": "leftNav_47ac2", "rightNav": "rightNav_47ac2", "activeItem": "activeItem_47ac2", "singleItem": "singleItem_47ac2", "social-links-icon": "social-links-icon_47ac2", "socialLinksIcon": "social-links-icon_47ac2", "menu-item": "menu-item_47ac2", "menuItem": "menu-item_47ac2", "mobileNavMenu": "mobileNavMenu_47ac2", "mask": "mask_47ac2", "docPage": "docPage_47ac2" };
822
+
823
+ // src/theme-default/components/Nav/NavBarTitle.tsx
824
+ import { ThemeContext, normalizeImagePath, usePageData as usePageData7, withBase as withBase5 } from "@/runtime";
825
+ var NavBarTitle = () => {
826
+ const { siteData: siteData2 } = usePageData7();
827
+ const localeData = useLocaleSiteData();
828
+ const { logo: rawLogo } = siteData2;
829
+ var _localeData_title;
830
+ const title = (_localeData_title = localeData.title) !== null && _localeData_title !== void 0 ? _localeData_title : siteData2.title;
831
+ const { theme } = useContext(ThemeContext);
832
+ const [logo, setLogo] = useState3(getLogoUrl(rawLogo, theme));
833
+ useEffect4(() => {
834
+ setLogo(getLogoUrl(rawLogo, theme));
835
+ }, [
836
+ theme
837
+ ]);
838
+ return /* @__PURE__ */ _jsx6("div", {
839
+ className: `${index_module_default4.navBarTitle}`,
840
+ children: /* @__PURE__ */ _jsx6("a", {
841
+ href: withBase5(localeData.langRoutePrefix || "/"),
842
+ className: "flex items-center w-full h-full text-base font-semibold transition-opacity duration-300 hover:opacity-60",
843
+ children: logo ? /* @__PURE__ */ _jsx6("img", {
844
+ src: normalizeImagePath(logo),
845
+ alt: "logo",
846
+ id: "logo",
847
+ className: "w-24 mr-4 rspress-logo"
848
+ }) : /* @__PURE__ */ _jsx6("span", {
849
+ children: title
850
+ })
851
+ })
852
+ });
853
+ };
854
+
780
855
  // src/theme-default/components/Sidebar/index.module.scss
781
- var index_module_default4 = { "sidebar": "sidebar_74484", "sidebarContent": "sidebarContent_74484", "open": "open_74484", "menuLink": "menuLink_74484", "menuItem": "menuItem_74484", "collapseContainer": "collapseContainer_74484", "menuItemStatic": "menuItemStatic_74484", "menuItemActive": "menuItemActive_74484", "menuGroupActive": "menuGroupActive_74484" };
856
+ var index_module_default5 = { "navTitleMask": "navTitleMask_74484", "sidebar": "sidebar_74484", "sidebarContent": "sidebarContent_74484", "open": "open_74484", "menuLink": "menuLink_74484", "menuItem": "menuItem_74484", "collapseContainer": "collapseContainer_74484", "menuItemStatic": "menuItemStatic_74484", "menuItemActive": "menuItemActive_74484", "menuGroupActive": "menuGroupActive_74484" };
782
857
 
783
858
  // src/theme-default/components/Sidebar/SidebarItem.tsx
784
- import { jsx as _jsx9, jsxs as _jsxs5 } from "react/jsx-runtime";
785
- import { useEffect as useEffect4, useRef as useRef3 } from "react";
859
+ import { jsx as _jsx10, jsxs as _jsxs5 } from "react/jsx-runtime";
860
+ import { useEffect as useEffect6, useRef as useRef3 } from "react";
786
861
 
787
862
  // src/theme-default/components/Tag/index.tsx
788
- import { jsx as _jsx6 } from "react/jsx-runtime";
863
+ import { jsx as _jsx7 } from "react/jsx-runtime";
789
864
  var Tag = ({ tag }) => {
790
865
  if (!tag) {
791
866
  return null;
792
867
  }
793
868
  const isSvgTagString = tag.trim().startsWith("<svg");
794
869
  if (isSvgTagString) {
795
- return /* @__PURE__ */ _jsx6("div", {
870
+ return /* @__PURE__ */ _jsx7("div", {
796
871
  // eslint-disable-next-line react/no-danger
797
872
  dangerouslySetInnerHTML: {
798
873
  __html: tag
@@ -803,19 +878,19 @@ var Tag = ({ tag }) => {
803
878
  }
804
879
  });
805
880
  } else {
806
- return /* @__PURE__ */ _jsx6("img", {
881
+ return /* @__PURE__ */ _jsx7("img", {
807
882
  src: tag
808
883
  });
809
884
  }
810
885
  };
811
886
 
812
887
  // src/theme-default/components/Sidebar/SidebarGroup.tsx
813
- import { jsx as _jsx8, jsxs as _jsxs4 } from "react/jsx-runtime";
814
- import { useEffect as useEffect3, useRef as useRef2 } from "react";
888
+ import { jsx as _jsx9, jsxs as _jsxs4 } from "react/jsx-runtime";
889
+ import { useEffect as useEffect5, useRef as useRef2 } from "react";
815
890
  import { useNavigate as useNavigate2 } from "react-router-dom";
816
891
 
817
892
  // src/theme-default/assets/arrow-right.svg
818
- import { jsx as _jsx7 } from "react/jsx-runtime";
893
+ import { jsx as _jsx8 } from "react/jsx-runtime";
819
894
  import * as React from "react";
820
895
  function _define_property3(obj, key, value) {
821
896
  if (key in obj) {
@@ -869,12 +944,12 @@ function _object_spread_props2(target, source) {
869
944
  }
870
945
  return target;
871
946
  }
872
- var SvgArrowRight = (props) => /* @__PURE__ */ _jsx7("svg", _object_spread_props2(_object_spread3({
947
+ var SvgArrowRight = (props) => /* @__PURE__ */ _jsx8("svg", _object_spread_props2(_object_spread3({
873
948
  width: "1em",
874
949
  height: "1em",
875
950
  viewBox: "0 0 32 32"
876
951
  }, props), {
877
- children: /* @__PURE__ */ _jsx7("path", {
952
+ children: /* @__PURE__ */ _jsx8("path", {
878
953
  fill: "currentColor",
879
954
  d: "M22 16 12 26l-1.4-1.4 8.6-8.6-8.6-8.6L12 6z"
880
955
  })
@@ -882,7 +957,7 @@ var SvgArrowRight = (props) => /* @__PURE__ */ _jsx7("svg", _object_spread_props
882
957
  var arrow_right_default = SvgArrowRight;
883
958
 
884
959
  // src/theme-default/components/Sidebar/SidebarGroup.tsx
885
- import { normalizeHrefInRuntime as normalizeHref4, withBase as withBase5 } from "@/runtime";
960
+ import { normalizeHrefInRuntime as normalizeHref4, withBase as withBase6 } from "@/runtime";
886
961
  function _define_property4(obj, key, value) {
887
962
  if (key in obj) {
888
963
  Object.defineProperty(obj, key, {
@@ -947,15 +1022,15 @@ function SidebarGroup(props) {
947
1022
  const initialState = useRef2(item.collapsed);
948
1023
  const active = item.link && activeMatcher(item.link);
949
1024
  const { collapsed, collapsible = true } = item;
950
- const collapsibleIcon = /* @__PURE__ */ _jsx8("div", {
1025
+ const collapsibleIcon = /* @__PURE__ */ _jsx9("div", {
951
1026
  style: {
952
1027
  cursor: "pointer",
953
1028
  transition: "transform 0.2s ease-out",
954
1029
  transform: collapsed ? "rotate(0deg)" : "rotate(90deg)"
955
1030
  },
956
- children: /* @__PURE__ */ _jsx8(arrow_right_default, {})
1031
+ children: /* @__PURE__ */ _jsx9(arrow_right_default, {})
957
1032
  });
958
- useEffect3(() => {
1033
+ useEffect5(() => {
959
1034
  if (initialRender.current) {
960
1035
  return;
961
1036
  }
@@ -990,7 +1065,7 @@ function SidebarGroup(props) {
990
1065
  }, [
991
1066
  collapsed
992
1067
  ]);
993
- useEffect3(() => {
1068
+ useEffect5(() => {
994
1069
  initialRender.current = false;
995
1070
  }, []);
996
1071
  const toggleCollapse = (e) => {
@@ -1019,12 +1094,12 @@ function SidebarGroup(props) {
1019
1094
  },
1020
1095
  children: [
1021
1096
  /* @__PURE__ */ _jsxs4("div", {
1022
- className: `flex justify-between items-center ${isGroupMatched && !active ? index_module_default4.menuGroupActive : ""} ${// eslint-disable-next-line no-nested-ternary
1023
- active ? index_module_default4.menuItemActive : collapsible || item.link ? index_module_default4.menuItem : index_module_default4.menuItemStatic}`,
1097
+ className: `flex justify-between items-center ${isGroupMatched && !active ? index_module_default5.menuGroupActive : ""} ${// eslint-disable-next-line no-nested-ternary
1098
+ active ? index_module_default5.menuItemActive : collapsible || item.link ? index_module_default5.menuItem : index_module_default5.menuItemStatic}`,
1024
1099
  onMouseEnter: () => item.link && props.preloadLink(item.link),
1025
1100
  onClick: (e) => {
1026
1101
  if (item.link) {
1027
- navigate(withBase5(normalizeHref4(item.link)));
1102
+ navigate(withBase6(normalizeHref4(item.link)));
1028
1103
  collapsed && toggleCollapse(e);
1029
1104
  } else {
1030
1105
  collapsible && toggleCollapse(e);
@@ -1036,30 +1111,30 @@ function SidebarGroup(props) {
1036
1111
  },
1037
1112
  children: [
1038
1113
  /* @__PURE__ */ _jsxs4("h2", {
1039
- className: "py-2.5 px-3 text-sm font-medium flex",
1114
+ className: "py-2 px-3 text-sm font-medium flex",
1040
1115
  style: _object_spread4({}, depth === 0 ? highlightTitleStyle : {}),
1041
1116
  children: [
1042
- /* @__PURE__ */ _jsx8(Tag, {
1117
+ /* @__PURE__ */ _jsx9(Tag, {
1043
1118
  tag: item.tag
1044
1119
  }),
1045
1120
  item.text
1046
1121
  ]
1047
1122
  }),
1048
- collapsible && /* @__PURE__ */ _jsx8("div", {
1049
- className: `${index_module_default4.collapseContainer} p-2 rounded-xl`,
1123
+ collapsible && /* @__PURE__ */ _jsx9("div", {
1124
+ className: `${index_module_default5.collapseContainer} p-2 rounded-xl`,
1050
1125
  onClick: toggleCollapse,
1051
1126
  children: collapsibleIcon
1052
1127
  })
1053
1128
  ]
1054
1129
  }),
1055
- /* @__PURE__ */ _jsx8("div", {
1130
+ /* @__PURE__ */ _jsx9("div", {
1056
1131
  ref: containerRef,
1057
1132
  className: "transition-all duration-300 ease-in-out",
1058
1133
  style: {
1059
1134
  overflow: "hidden",
1060
1135
  maxHeight: initialState.current ? 0 : void 0
1061
1136
  },
1062
- children: /* @__PURE__ */ _jsx8("div", {
1137
+ children: /* @__PURE__ */ _jsx9("div", {
1063
1138
  ref: innerRef,
1064
1139
  className: "rspress-sidebar-group transition-opacity duration-500 ease-in-out",
1065
1140
  style: {
@@ -1068,8 +1143,8 @@ function SidebarGroup(props) {
1068
1143
  },
1069
1144
  children: item === null || item === void 0 ? void 0 : (_item_items = item.items) === null || _item_items === void 0 ? void 0 : _item_items.map((item2, index) => (
1070
1145
  // eslint-disable-next-line react/no-array-index-key
1071
- /* @__PURE__ */ _jsx8("div", {
1072
- children: /* @__PURE__ */ _jsx8(SidebarItem, _object_spread_props3(_object_spread4({}, props), {
1146
+ /* @__PURE__ */ _jsx9("div", {
1147
+ children: /* @__PURE__ */ _jsx9(SidebarItem, _object_spread_props3(_object_spread4({}, props), {
1073
1148
  item: item2,
1074
1149
  depth: depth + 1,
1075
1150
  id: `${id}-${index}`,
@@ -1117,7 +1192,7 @@ function SidebarItem(props) {
1117
1192
  const { item, depth = 0, activeMatcher, id, setSidebarData } = props;
1118
1193
  const active = item.link && activeMatcher(item.link);
1119
1194
  const ref = useRef3(null);
1120
- useEffect4(() => {
1195
+ useEffect6(() => {
1121
1196
  if (active) {
1122
1197
  var _ref_current;
1123
1198
  (_ref_current = ref.current) === null || _ref_current === void 0 ? void 0 : _ref_current.scrollIntoView({
@@ -1127,7 +1202,7 @@ function SidebarItem(props) {
1127
1202
  }, []);
1128
1203
  const { text } = item;
1129
1204
  if ("items" in item) {
1130
- return /* @__PURE__ */ _jsx9(SidebarGroup, {
1205
+ return /* @__PURE__ */ _jsx10(SidebarGroup, {
1131
1206
  id,
1132
1207
  item,
1133
1208
  depth,
@@ -1137,13 +1212,13 @@ function SidebarItem(props) {
1137
1212
  preloadLink: props.preloadLink
1138
1213
  }, `${item.text}-${id}`);
1139
1214
  } else {
1140
- return /* @__PURE__ */ _jsx9(Link, {
1215
+ return /* @__PURE__ */ _jsx10(Link, {
1141
1216
  href: normalizeHref5(item.link),
1142
- className: index_module_default4.menuLink,
1217
+ className: index_module_default5.menuLink,
1143
1218
  children: /* @__PURE__ */ _jsxs5("div", {
1144
1219
  ref,
1145
1220
  onMouseEnter: () => props.preloadLink(item.link),
1146
- className: `${active ? index_module_default4.menuItemActive : index_module_default4.menuItem} mt-0.5 py-2 px-3 font-medium flex`,
1221
+ className: `${active ? index_module_default5.menuItemActive : index_module_default5.menuItem} mt-0.5 py-2 px-3 font-medium flex`,
1147
1222
  style: _object_spread5({
1148
1223
  // The first level menu item will have the same font size as the sidebar group
1149
1224
  fontSize: depth === 0 ? "14px" : "13px",
@@ -1153,7 +1228,7 @@ function SidebarItem(props) {
1153
1228
  color: "var(--rp-c-brand)"
1154
1229
  } : {}),
1155
1230
  children: [
1156
- /* @__PURE__ */ _jsx9(Tag, {
1231
+ /* @__PURE__ */ _jsx10(Tag, {
1157
1232
  tag: item.tag
1158
1233
  }),
1159
1234
  text
@@ -1164,35 +1239,7 @@ function SidebarItem(props) {
1164
1239
  }
1165
1240
 
1166
1241
  // src/theme-default/components/Sidebar/index.tsx
1167
- import { removeBase as removeBase2, usePageData as usePageData6 } from "@/runtime";
1168
- function _define_property6(obj, key, value) {
1169
- if (key in obj) {
1170
- Object.defineProperty(obj, key, {
1171
- value,
1172
- enumerable: true,
1173
- configurable: true,
1174
- writable: true
1175
- });
1176
- } else {
1177
- obj[key] = value;
1178
- }
1179
- return obj;
1180
- }
1181
- function _object_spread6(target) {
1182
- for (var i = 1; i < arguments.length; i++) {
1183
- var source = arguments[i] != null ? arguments[i] : {};
1184
- var ownKeys36 = Object.keys(source);
1185
- if (typeof Object.getOwnPropertySymbols === "function") {
1186
- ownKeys36 = ownKeys36.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
1187
- return Object.getOwnPropertyDescriptor(source, sym).enumerable;
1188
- }));
1189
- }
1190
- ownKeys36.forEach(function(key) {
1191
- _define_property6(target, key, source[key]);
1192
- });
1193
- }
1194
- return target;
1195
- }
1242
+ import { matchRoutes as matchRoutes2, useLocation as useLocation5, removeBase as removeBase2 } from "@/runtime";
1196
1243
  var highlightTitleStyle = {
1197
1244
  color: "var(--rp-c-text-1)",
1198
1245
  fontSize: "14px",
@@ -1201,14 +1248,16 @@ var highlightTitleStyle = {
1201
1248
  };
1202
1249
  var matchCache = /* @__PURE__ */ new WeakMap();
1203
1250
  function SideBar(props) {
1204
- const { isSidebarOpen, langRoutePrefix, pathname: rawPathname, sidebarData: rawSidebarData } = props;
1205
- const { siteData: { themeConfig }, page: { frontmatter } } = usePageData6();
1206
- var _frontmatter_hideNavbar, _ref;
1207
- const hideNavbar = (_ref = (_frontmatter_hideNavbar = frontmatter === null || frontmatter === void 0 ? void 0 : frontmatter.hideNavbar) !== null && _frontmatter_hideNavbar !== void 0 ? _frontmatter_hideNavbar : themeConfig === null || themeConfig === void 0 ? void 0 : themeConfig.hideNavbar) !== null && _ref !== void 0 ? _ref : false;
1208
- const [sidebarData, setSidebarData] = useState2(rawSidebarData.filter(Boolean).flat());
1251
+ const { isSidebarOpen } = props;
1252
+ const { items: rawSidebarData } = useSidebarData();
1253
+ const localesData = useLocaleSiteData();
1254
+ const { pathname: rawPathname } = useLocation5();
1255
+ const langRoutePrefix = normalizeSlash(localesData.langRoutePrefix || "");
1256
+ const hideNavbar = useDisableNav();
1257
+ const [sidebarData, setSidebarData] = useState4(rawSidebarData.filter(Boolean).flat());
1209
1258
  const pathname = decodeURIComponent(rawPathname);
1210
- useEffect5(() => {
1211
- if (props.sidebarData === sidebarData) {
1259
+ useEffect7(() => {
1260
+ if (rawSidebarData === sidebarData) {
1212
1261
  return;
1213
1262
  }
1214
1263
  matchCache = /* @__PURE__ */ new WeakMap();
@@ -1238,11 +1287,11 @@ function SideBar(props) {
1238
1287
  }
1239
1288
  }
1240
1289
  };
1241
- const newSidebarData = props.sidebarData.filter(Boolean).flat();
1290
+ const newSidebarData = rawSidebarData.filter(Boolean).flat();
1242
1291
  newSidebarData.forEach(traverse);
1243
1292
  setSidebarData(newSidebarData);
1244
1293
  }, [
1245
- props.sidebarData,
1294
+ rawSidebarData,
1246
1295
  pathname
1247
1296
  ]);
1248
1297
  const removeLangPrefix = (path) => {
@@ -1257,40 +1306,43 @@ function SideBar(props) {
1257
1306
  }
1258
1307
  };
1259
1308
  var _item_collapsed;
1260
- return /* @__PURE__ */ _jsx10("aside", {
1261
- className: `${index_module_default4.sidebar} rspress-sidebar ${isSidebarOpen ? index_module_default4.open : ""}`,
1262
- style: _object_spread6({}, hideNavbar ? {
1263
- marginTop: 0
1264
- } : {}),
1265
- children: /* @__PURE__ */ _jsx10("div", {
1266
- className: `mt-1 ${index_module_default4.sidebarContent}`,
1267
- children: /* @__PURE__ */ _jsx10("div", {
1268
- className: "rspress-scrollbar",
1269
- style: {
1270
- maxHeight: "calc(100vh - var(--rp-nav-height) - 8px)",
1271
- overflow: "scroll"
1272
- },
1273
- children: /* @__PURE__ */ _jsx10("nav", {
1274
- className: "pb-2",
1275
- children: sidebarData.map((item, index) => /* @__PURE__ */ _jsx10(SidebarItem, {
1276
- id: String(index),
1277
- item,
1278
- depth: 0,
1279
- activeMatcher,
1280
- collapsed: (_item_collapsed = item.collapsed) !== null && _item_collapsed !== void 0 ? _item_collapsed : true,
1281
- setSidebarData,
1282
- preloadLink
1283
- }, index))
1309
+ return /* @__PURE__ */ _jsxs6("aside", {
1310
+ className: `${index_module_default5.sidebar} rspress-sidebar ${isSidebarOpen ? index_module_default5.open : ""}`,
1311
+ children: [
1312
+ hideNavbar ? null : /* @__PURE__ */ _jsx11("div", {
1313
+ className: index_module_default5.navTitleMask,
1314
+ children: /* @__PURE__ */ _jsx11(NavBarTitle, {})
1315
+ }),
1316
+ /* @__PURE__ */ _jsx11("div", {
1317
+ className: `mt-1 ${index_module_default5.sidebarContent}`,
1318
+ children: /* @__PURE__ */ _jsx11("div", {
1319
+ className: "rspress-scrollbar",
1320
+ style: {
1321
+ maxHeight: "calc(100vh - var(--rp-nav-height) - 8px)",
1322
+ overflow: "scroll"
1323
+ },
1324
+ children: /* @__PURE__ */ _jsx11("nav", {
1325
+ className: "pb-2",
1326
+ children: sidebarData.map((item, index) => /* @__PURE__ */ _jsx11(SidebarItem, {
1327
+ id: String(index),
1328
+ item,
1329
+ depth: 0,
1330
+ activeMatcher,
1331
+ collapsed: (_item_collapsed = item.collapsed) !== null && _item_collapsed !== void 0 ? _item_collapsed : true,
1332
+ setSidebarData,
1333
+ preloadLink
1334
+ }, index))
1335
+ })
1284
1336
  })
1285
1337
  })
1286
- })
1338
+ ]
1287
1339
  });
1288
1340
  }
1289
1341
 
1290
1342
  // src/theme-default/assets/menu.svg
1291
- import { jsx as _jsx11 } from "react/jsx-runtime";
1343
+ import { jsx as _jsx12 } from "react/jsx-runtime";
1292
1344
  import * as React4 from "react";
1293
- function _define_property7(obj, key, value) {
1345
+ function _define_property6(obj, key, value) {
1294
1346
  if (key in obj) {
1295
1347
  Object.defineProperty(obj, key, {
1296
1348
  value,
@@ -1303,7 +1355,7 @@ function _define_property7(obj, key, value) {
1303
1355
  }
1304
1356
  return obj;
1305
1357
  }
1306
- function _object_spread7(target) {
1358
+ function _object_spread6(target) {
1307
1359
  for (var i = 1; i < arguments.length; i++) {
1308
1360
  var source = arguments[i] != null ? arguments[i] : {};
1309
1361
  var ownKeys36 = Object.keys(source);
@@ -1313,7 +1365,7 @@ function _object_spread7(target) {
1313
1365
  }));
1314
1366
  }
1315
1367
  ownKeys36.forEach(function(key) {
1316
- _define_property7(target, key, source[key]);
1368
+ _define_property6(target, key, source[key]);
1317
1369
  });
1318
1370
  }
1319
1371
  return target;
@@ -1342,12 +1394,12 @@ function _object_spread_props4(target, source) {
1342
1394
  }
1343
1395
  return target;
1344
1396
  }
1345
- var SvgMenu = (props) => /* @__PURE__ */ _jsx11("svg", _object_spread_props4(_object_spread7({
1397
+ var SvgMenu = (props) => /* @__PURE__ */ _jsx12("svg", _object_spread_props4(_object_spread6({
1346
1398
  width: "1em",
1347
1399
  height: "1em",
1348
1400
  viewBox: "0 0 32 32"
1349
1401
  }, props), {
1350
- children: /* @__PURE__ */ _jsx11("path", {
1402
+ children: /* @__PURE__ */ _jsx12("path", {
1351
1403
  fill: "currentColor",
1352
1404
  d: "M4 6h24v2H4zm0 18h24v2H4zm0-12h24v2H4zm0 6h24v2H4z"
1353
1405
  })
@@ -1355,46 +1407,44 @@ var SvgMenu = (props) => /* @__PURE__ */ _jsx11("svg", _object_spread_props4(_ob
1355
1407
  var menu_default = SvgMenu;
1356
1408
 
1357
1409
  // src/theme-default/components/LocalSideBar/index.tsx
1358
- function SideMenu(props) {
1359
- const { langRoutePrefix, pathname, sidebarData } = props;
1360
- const [isSidebarOpen, setIsOpen] = useState3(false);
1410
+ import { useLocation as useLocation6 } from "@/runtime";
1411
+ function SideMenu() {
1412
+ const [isSidebarOpen, setIsOpen] = useState5(false);
1413
+ const { pathname } = useLocation6();
1361
1414
  function openSidebar() {
1362
1415
  setIsOpen(true);
1363
1416
  }
1364
1417
  function closeSidebar() {
1365
1418
  setIsOpen(false);
1366
1419
  }
1367
- useEffect6(() => {
1420
+ useEffect8(() => {
1368
1421
  setIsOpen(false);
1369
1422
  }, [
1370
1423
  pathname
1371
1424
  ]);
1372
- return /* @__PURE__ */ _jsxs6(Fragment, {
1425
+ return /* @__PURE__ */ _jsxs7(Fragment, {
1373
1426
  children: [
1374
- /* @__PURE__ */ _jsx12("div", {
1427
+ /* @__PURE__ */ _jsx13("div", {
1375
1428
  className: "rspress-sidebar-menu",
1376
- children: /* @__PURE__ */ _jsxs6("button", {
1429
+ children: /* @__PURE__ */ _jsxs7("button", {
1377
1430
  onClick: openSidebar,
1378
1431
  className: "flex-center",
1379
1432
  children: [
1380
- /* @__PURE__ */ _jsx12("div", {
1433
+ /* @__PURE__ */ _jsx13("div", {
1381
1434
  className: "text-md mr-2",
1382
- children: /* @__PURE__ */ _jsx12(menu_default, {})
1435
+ children: /* @__PURE__ */ _jsx13(menu_default, {})
1383
1436
  }),
1384
- /* @__PURE__ */ _jsx12("span", {
1437
+ /* @__PURE__ */ _jsx13("span", {
1385
1438
  className: "text-sm",
1386
1439
  children: "Menu"
1387
1440
  })
1388
1441
  ]
1389
1442
  })
1390
1443
  }),
1391
- /* @__PURE__ */ _jsx12(SideBar, {
1392
- langRoutePrefix,
1393
- pathname,
1394
- sidebarData,
1444
+ /* @__PURE__ */ _jsx13(SideBar, {
1395
1445
  isSidebarOpen
1396
1446
  }),
1397
- isSidebarOpen ? /* @__PURE__ */ _jsx12("div", {
1447
+ isSidebarOpen ? /* @__PURE__ */ _jsx13("div", {
1398
1448
  onClick: closeSidebar,
1399
1449
  className: "rspress-sidebar-back-drop"
1400
1450
  }) : null
@@ -1403,15 +1453,15 @@ function SideMenu(props) {
1403
1453
  }
1404
1454
 
1405
1455
  // src/theme-default/components/Overview/index.tsx
1406
- import { jsx as _jsx13, jsxs as _jsxs7 } from "react/jsx-runtime";
1456
+ import { jsx as _jsx14, jsxs as _jsxs8 } from "react/jsx-runtime";
1407
1457
  import { useMemo } from "react";
1408
1458
 
1409
1459
  // src/theme-default/components/Overview/index.module.scss
1410
- var index_module_default5 = { "header-anchor": "header-anchor_90d29", "headerAnchor": "header-anchor_90d29", "overview-groups": "overview-groups_90d29", "overviewGroups": "overview-groups_90d29", "overview-group-li": "overview-group-li_90d29", "overviewGroupLi": "overview-group-li_90d29", "level-2": "level-2_90d29", "level2": "level-2_90d29", "overview-group": "overview-group_90d29", "overviewGroup": "overview-group_90d29", "header": "header_90d29" };
1460
+ var index_module_default6 = { "header-anchor": "header-anchor_90d29", "headerAnchor": "header-anchor_90d29", "overview-groups": "overview-groups_90d29", "overviewGroups": "overview-groups_90d29", "overview-group-li": "overview-group-li_90d29", "overviewGroupLi": "overview-group-li_90d29", "level-2": "level-2_90d29", "level2": "level-2_90d29", "overview-group": "overview-group_90d29", "overviewGroup": "overview-group_90d29", "header": "header_90d29" };
1411
1461
 
1412
1462
  // src/theme-default/components/Overview/index.tsx
1413
- import { usePageData as usePageData7, normalizeHrefInRuntime as normalizeHref6, withBase as withBase6, isEqualPath as isEqualPath4 } from "@/runtime";
1414
- function _define_property8(obj, key, value) {
1463
+ import { usePageData as usePageData8, normalizeHrefInRuntime as normalizeHref6, withBase as withBase7, isEqualPath as isEqualPath4 } from "@/runtime";
1464
+ function _define_property7(obj, key, value) {
1415
1465
  if (key in obj) {
1416
1466
  Object.defineProperty(obj, key, {
1417
1467
  value,
@@ -1424,7 +1474,7 @@ function _define_property8(obj, key, value) {
1424
1474
  }
1425
1475
  return obj;
1426
1476
  }
1427
- function _object_spread8(target) {
1477
+ function _object_spread7(target) {
1428
1478
  for (var i = 1; i < arguments.length; i++) {
1429
1479
  var source = arguments[i] != null ? arguments[i] : {};
1430
1480
  var ownKeys36 = Object.keys(source);
@@ -1434,7 +1484,7 @@ function _object_spread8(target) {
1434
1484
  }));
1435
1485
  }
1436
1486
  ownKeys36.forEach(function(key) {
1437
- _define_property8(target, key, source[key]);
1487
+ _define_property7(target, key, source[key]);
1438
1488
  });
1439
1489
  }
1440
1490
  return target;
@@ -1465,13 +1515,13 @@ function _object_spread_props5(target, source) {
1465
1515
  }
1466
1516
  var DEFAULT_GROUP = "Others";
1467
1517
  function Overview() {
1468
- const { siteData: siteData2, page: { routePath } } = usePageData7();
1518
+ const { siteData: siteData2, page: { routePath } } = usePageData8();
1469
1519
  const { pages } = siteData2;
1470
1520
  const overviewModules = pages.filter((page) => page.routePath.startsWith(routePath.replace(/overview$/, "")) && page.routePath !== routePath);
1471
1521
  const { items: overviewSidebarGroups } = useSidebarData();
1472
1522
  function normalizeSidebarItem(item) {
1473
1523
  var _pageModule_toc;
1474
- const pageModule = overviewModules.find((m) => isEqualPath4(m.routePath, withBase6(item.link || "")));
1524
+ const pageModule = overviewModules.find((m) => isEqualPath4(m.routePath, withBase7(item.link || "")));
1475
1525
  const getChildLink = (traverseItem) => {
1476
1526
  if (traverseItem.link) {
1477
1527
  return traverseItem.link;
@@ -1482,7 +1532,7 @@ function Overview() {
1482
1532
  return "";
1483
1533
  };
1484
1534
  const link = getChildLink(item);
1485
- return _object_spread_props5(_object_spread8({}, item), {
1535
+ return _object_spread_props5(_object_spread7({}, item), {
1486
1536
  link,
1487
1537
  headers: (pageModule === null || pageModule === void 0 ? void 0 : (_pageModule_toc = pageModule.toc) === null || _pageModule_toc === void 0 ? void 0 : _pageModule_toc.filter((header) => header.depth === 2)) || []
1488
1538
  });
@@ -1505,49 +1555,49 @@ function Overview() {
1505
1555
  }, [
1506
1556
  overviewSidebarGroups
1507
1557
  ]);
1508
- return /* @__PURE__ */ _jsxs7("div", {
1558
+ return /* @__PURE__ */ _jsxs8("div", {
1509
1559
  className: "overview-index mx-auto px-8",
1510
1560
  children: [
1511
- /* @__PURE__ */ _jsx13("div", {
1561
+ /* @__PURE__ */ _jsx14("div", {
1512
1562
  className: "flex items-center justify-between",
1513
- children: /* @__PURE__ */ _jsx13("h1", {
1563
+ children: /* @__PURE__ */ _jsx14("h1", {
1514
1564
  children: "Overview"
1515
1565
  })
1516
1566
  }),
1517
- groups.map((group) => /* @__PURE__ */ _jsxs7("div", {
1567
+ groups.map((group) => /* @__PURE__ */ _jsxs8("div", {
1518
1568
  className: "mb-16",
1519
1569
  children: [
1520
- group.name === DEFAULT_GROUP && groups.length === 1 ? /* @__PURE__ */ _jsx13("h2", {
1570
+ group.name === DEFAULT_GROUP && groups.length === 1 ? /* @__PURE__ */ _jsx14("h2", {
1521
1571
  style: {
1522
1572
  paddingTop: 0
1523
1573
  }
1524
- }) : /* @__PURE__ */ _jsx13("h2", {
1574
+ }) : /* @__PURE__ */ _jsx14("h2", {
1525
1575
  children: group.name
1526
1576
  }),
1527
- /* @__PURE__ */ _jsx13("div", {
1528
- className: index_module_default5.overviewGroups,
1577
+ /* @__PURE__ */ _jsx14("div", {
1578
+ className: index_module_default6.overviewGroups,
1529
1579
  children: group.items.map((item) => {
1530
1580
  var _item_headers;
1531
- return /* @__PURE__ */ _jsxs7("div", {
1532
- className: index_module_default5.overviewGroup,
1581
+ return /* @__PURE__ */ _jsxs8("div", {
1582
+ className: index_module_default6.overviewGroup,
1533
1583
  children: [
1534
- /* @__PURE__ */ _jsx13("div", {
1584
+ /* @__PURE__ */ _jsx14("div", {
1535
1585
  className: "flex",
1536
- children: /* @__PURE__ */ _jsx13("h3", {
1586
+ children: /* @__PURE__ */ _jsx14("h3", {
1537
1587
  style: {
1538
1588
  marginBottom: 8
1539
1589
  },
1540
- children: /* @__PURE__ */ _jsx13(Link, {
1590
+ children: /* @__PURE__ */ _jsx14(Link, {
1541
1591
  href: normalizeHref6(item.link),
1542
1592
  children: item.text
1543
1593
  })
1544
1594
  })
1545
1595
  }),
1546
- /* @__PURE__ */ _jsx13("ul", {
1596
+ /* @__PURE__ */ _jsx14("ul", {
1547
1597
  className: "list-none",
1548
- children: (_item_headers = item.headers) === null || _item_headers === void 0 ? void 0 : _item_headers.map((header) => /* @__PURE__ */ _jsx13("li", {
1549
- className: `${index_module_default5.overviewGroupLi} ${index_module_default5[`level${header.depth}`]} first:mt-2`,
1550
- children: /* @__PURE__ */ _jsx13(Link, {
1598
+ children: (_item_headers = item.headers) === null || _item_headers === void 0 ? void 0 : _item_headers.map((header) => /* @__PURE__ */ _jsx14("li", {
1599
+ className: `${index_module_default6.overviewGroupLi} ${index_module_default6[`level${header.depth}`]} first:mt-2`,
1600
+ children: /* @__PURE__ */ _jsx14(Link, {
1551
1601
  href: `${normalizeHref6(item.link)}#${header.id}`,
1552
1602
  children: header.text
1553
1603
  })
@@ -1568,11 +1618,11 @@ import { createContext } from "react";
1568
1618
  var TabDataContext = createContext({});
1569
1619
 
1570
1620
  // src/theme-default/layout/DocLayout/index.module.scss
1571
- var index_module_default6 = { "aside-container": "aside-container_feeda", "asideContainer": "aside-container_feeda", "fade-out": "fade-out_feeda", "fadeOut": "fade-out_feeda", "fade-in": "fade-in_feeda", "fadeIn": "fade-in_feeda", "docLayout": "docLayout_feeda", "content": "content_feeda" };
1621
+ var index_module_default7 = { "aside-container": "aside-container_feeda", "asideContainer": "aside-container_feeda", "fade-out": "fade-out_feeda", "fadeOut": "fade-out_feeda", "fade-in": "fade-in_feeda", "fadeIn": "fade-in_feeda", "docLayout": "docLayout_feeda", "content": "content_feeda" };
1572
1622
 
1573
1623
  // src/theme-default/layout/DocLayout/index.tsx
1574
- import { Content, usePageData as usePageData8, normalizeSlash } from "@/runtime";
1575
- function _define_property9(obj, key, value) {
1624
+ import { Content, usePageData as usePageData9 } from "@/runtime";
1625
+ function _define_property8(obj, key, value) {
1576
1626
  if (key in obj) {
1577
1627
  Object.defineProperty(obj, key, {
1578
1628
  value,
@@ -1585,7 +1635,7 @@ function _define_property9(obj, key, value) {
1585
1635
  }
1586
1636
  return obj;
1587
1637
  }
1588
- function _object_spread9(target) {
1638
+ function _object_spread8(target) {
1589
1639
  for (var i = 1; i < arguments.length; i++) {
1590
1640
  var source = arguments[i] != null ? arguments[i] : {};
1591
1641
  var ownKeys36 = Object.keys(source);
@@ -1595,25 +1645,21 @@ function _object_spread9(target) {
1595
1645
  }));
1596
1646
  }
1597
1647
  ownKeys36.forEach(function(key) {
1598
- _define_property9(target, key, source[key]);
1648
+ _define_property8(target, key, source[key]);
1599
1649
  });
1600
1650
  }
1601
1651
  return target;
1602
1652
  }
1603
1653
  function DocLayout(props) {
1604
1654
  const { beforeDocFooter, beforeDoc, afterDoc, beforeOutline, afterOutline } = props;
1605
- const { siteData: siteData2, page } = usePageData8();
1655
+ const { siteData: siteData2, page } = usePageData9();
1606
1656
  const { toc = [], frontmatter } = page;
1607
- const [tabData, setTabData] = useState4({});
1657
+ const [tabData, setTabData] = useState6({});
1608
1658
  const headers = toc;
1609
1659
  const { themeConfig } = siteData2;
1610
1660
  const localesData = useLocaleSiteData();
1611
1661
  const sidebar = localesData.sidebar || {};
1612
- const { pathname } = useLocation4();
1613
- const { items: sidebarData } = useSidebarData();
1614
- const langRoutePrefix = normalizeSlash(localesData.langRoutePrefix || "");
1615
- var _frontmatter_hideNavbar, _ref;
1616
- const hideNavbar = (_ref = (_frontmatter_hideNavbar = frontmatter === null || frontmatter === void 0 ? void 0 : frontmatter.hideNavbar) !== null && _frontmatter_hideNavbar !== void 0 ? _frontmatter_hideNavbar : themeConfig === null || themeConfig === void 0 ? void 0 : themeConfig.hideNavbar) !== null && _ref !== void 0 ? _ref : false;
1662
+ const disableNavbar = useDisableNav();
1617
1663
  const hasSidebar = (frontmatter === null || frontmatter === void 0 ? void 0 : frontmatter.sidebar) !== false && Object.keys(sidebar).length > 0;
1618
1664
  const outlineTitle = (localesData === null || localesData === void 0 ? void 0 : localesData.outlineTitle) || (themeConfig === null || themeConfig === void 0 ? void 0 : themeConfig.outlineTitle) || "ON THIS PAGE";
1619
1665
  var _frontmatter_overview;
@@ -1622,71 +1668,64 @@ function DocLayout(props) {
1622
1668
  const hasFooter = (_frontmatter_footer = frontmatter === null || frontmatter === void 0 ? void 0 : frontmatter.footer) !== null && _frontmatter_footer !== void 0 ? _frontmatter_footer : true;
1623
1669
  const getHasAside = () => {
1624
1670
  const defaultHasAside = typeof window === "undefined" ? true : window.top === window.self;
1625
- var _frontmatter_outline, _ref2;
1626
- return ((_ref2 = (_frontmatter_outline = frontmatter === null || frontmatter === void 0 ? void 0 : frontmatter.outline) !== null && _frontmatter_outline !== void 0 ? _frontmatter_outline : themeConfig === null || themeConfig === void 0 ? void 0 : themeConfig.outline) !== null && _ref2 !== void 0 ? _ref2 : defaultHasAside) && headers.length > 0;
1671
+ var _frontmatter_outline, _ref;
1672
+ return ((_ref = (_frontmatter_outline = frontmatter === null || frontmatter === void 0 ? void 0 : frontmatter.outline) !== null && _frontmatter_outline !== void 0 ? _frontmatter_outline : themeConfig === null || themeConfig === void 0 ? void 0 : themeConfig.outline) !== null && _ref !== void 0 ? _ref : defaultHasAside) && headers.length > 0;
1627
1673
  };
1628
- const [hasAside, setHasAside] = useState4(getHasAside());
1629
- useEffect7(() => {
1674
+ const [hasAside, setHasAside] = useState6(getHasAside());
1675
+ useEffect9(() => {
1630
1676
  setHasAside(getHasAside());
1631
1677
  }, [
1632
1678
  page,
1633
1679
  siteData2
1634
1680
  ]);
1635
- return /* @__PURE__ */ _jsxs8("div", {
1636
- className: `${index_module_default6.docLayout} pt-0`,
1637
- style: _object_spread9({}, hideNavbar ? {
1681
+ return /* @__PURE__ */ _jsxs9("div", {
1682
+ className: `${index_module_default7.docLayout} pt-0`,
1683
+ style: _object_spread8({}, disableNavbar ? {
1638
1684
  marginTop: 0
1639
1685
  } : {}),
1640
1686
  children: [
1641
1687
  beforeDoc,
1642
- hasSidebar ? /* @__PURE__ */ _jsx14(SideMenu, {
1643
- pathname,
1644
- langRoutePrefix,
1645
- sidebarData
1646
- }) : null,
1647
- /* @__PURE__ */ _jsxs8("div", {
1648
- className: `${index_module_default6.content} rspress-doc-container flex flex-shrink-0`,
1688
+ hasSidebar ? /* @__PURE__ */ _jsx15(SideMenu, {}) : null,
1689
+ /* @__PURE__ */ _jsxs9("div", {
1690
+ className: `${index_module_default7.content} rspress-doc-container flex flex-shrink-0`,
1649
1691
  children: [
1650
- /* @__PURE__ */ _jsx14("div", {
1692
+ /* @__PURE__ */ _jsx15("div", {
1651
1693
  className: "w-full",
1652
- children: isOverviewPage ? /* @__PURE__ */ _jsx14(Overview, {}) : /* @__PURE__ */ _jsxs8("div", {
1694
+ children: isOverviewPage ? /* @__PURE__ */ _jsx15(Overview, {}) : /* @__PURE__ */ _jsxs9("div", {
1653
1695
  children: [
1654
- /* @__PURE__ */ _jsx14("div", {
1696
+ /* @__PURE__ */ _jsx15("div", {
1655
1697
  className: "rspress-doc",
1656
- children: /* @__PURE__ */ _jsx14(TabDataContext.Provider, {
1698
+ children: /* @__PURE__ */ _jsx15(TabDataContext.Provider, {
1657
1699
  value: {
1658
1700
  tabData,
1659
1701
  setTabData
1660
1702
  },
1661
- children: /* @__PURE__ */ _jsx14(MDXProvider, {
1703
+ children: /* @__PURE__ */ _jsx15(MDXProvider, {
1662
1704
  components: getCustomMDXComponent(),
1663
- children: /* @__PURE__ */ _jsx14(Content, {})
1705
+ children: /* @__PURE__ */ _jsx15(Content, {})
1664
1706
  })
1665
1707
  })
1666
1708
  }),
1667
- /* @__PURE__ */ _jsxs8("div", {
1709
+ /* @__PURE__ */ _jsxs9("div", {
1668
1710
  className: "rspress-doc-footer",
1669
1711
  children: [
1670
1712
  beforeDocFooter,
1671
- hasFooter && /* @__PURE__ */ _jsx14(DocFooter, {})
1713
+ hasFooter && /* @__PURE__ */ _jsx15(DocFooter, {})
1672
1714
  ]
1673
1715
  })
1674
1716
  ]
1675
1717
  })
1676
1718
  }),
1677
- hasAside ? /* @__PURE__ */ _jsx14("div", {
1678
- className: index_module_default6.asideContainer,
1679
- style: _object_spread9({
1680
- maxHeight: "calc(100vh - (var(--rp-nav-height) + 32px))",
1681
- overflow: "scroll"
1682
- }, hideNavbar ? {
1719
+ hasAside ? /* @__PURE__ */ _jsx15("div", {
1720
+ className: index_module_default7.asideContainer,
1721
+ style: _object_spread8({}, disableNavbar ? {
1683
1722
  marginTop: 0,
1684
1723
  paddingTop: "32px"
1685
1724
  } : {}),
1686
- children: /* @__PURE__ */ _jsxs8("div", {
1725
+ children: /* @__PURE__ */ _jsxs9("div", {
1687
1726
  children: [
1688
1727
  beforeOutline,
1689
- /* @__PURE__ */ _jsx14(Aside, {
1728
+ /* @__PURE__ */ _jsx15(Aside, {
1690
1729
  headers,
1691
1730
  outlineTitle
1692
1731
  }),
@@ -1702,8 +1741,8 @@ function DocLayout(props) {
1702
1741
  }
1703
1742
 
1704
1743
  // src/theme-default/layout/Layout/index.tsx
1705
- import { usePageData as usePageData9, Content as Content2, removeBase as removeBase3, withBase as withBase7 } from "@/runtime";
1706
- function _define_property10(obj, key, value) {
1744
+ import { usePageData as usePageData10, Content as Content2, removeBase as removeBase3, withBase as withBase8 } from "@/runtime";
1745
+ function _define_property9(obj, key, value) {
1707
1746
  if (key in obj) {
1708
1747
  Object.defineProperty(obj, key, {
1709
1748
  value,
@@ -1716,7 +1755,7 @@ function _define_property10(obj, key, value) {
1716
1755
  }
1717
1756
  return obj;
1718
1757
  }
1719
- function _object_spread10(target) {
1758
+ function _object_spread9(target) {
1720
1759
  for (var i = 1; i < arguments.length; i++) {
1721
1760
  var source = arguments[i] != null ? arguments[i] : {};
1722
1761
  var ownKeys36 = Object.keys(source);
@@ -1726,7 +1765,7 @@ function _object_spread10(target) {
1726
1765
  }));
1727
1766
  }
1728
1767
  ownKeys36.forEach(function(key) {
1729
- _define_property10(target, key, source[key]);
1768
+ _define_property9(target, key, source[key]);
1730
1769
  });
1731
1770
  }
1732
1771
  return target;
@@ -1746,8 +1785,7 @@ var Layout = (props) => {
1746
1785
  beforeFeatures,
1747
1786
  afterFeatures
1748
1787
  };
1749
- const { siteData: siteData2, page } = usePageData9();
1750
- const { themeConfig } = siteData2;
1788
+ const { siteData: siteData2, page } = usePageData10();
1751
1789
  const {
1752
1790
  pageType,
1753
1791
  lang: currentLang,
@@ -1757,8 +1795,7 @@ var Layout = (props) => {
1757
1795
  } = page;
1758
1796
  const localesData = useLocaleSiteData();
1759
1797
  const defaultLang = siteData2.lang || "";
1760
- var _frontmatter_navbar, _themeConfig_hideNavbar;
1761
- const hideNavbar = !((_frontmatter_navbar = frontmatter === null || frontmatter === void 0 ? void 0 : frontmatter.navbar) !== null && _frontmatter_navbar !== void 0 ? _frontmatter_navbar : true) || ((_themeConfig_hideNavbar = themeConfig === null || themeConfig === void 0 ? void 0 : themeConfig.hideNavbar) !== null && _themeConfig_hideNavbar !== void 0 ? _themeConfig_hideNavbar : false);
1798
+ const hideNavbar = useDisableNav();
1762
1799
  var _ref;
1763
1800
  let title = (_ref = frontmatter === null || frontmatter === void 0 ? void 0 : frontmatter.title) !== null && _ref !== void 0 ? _ref : articleTitle;
1764
1801
  const mainTitle = siteData2.title || localesData.title;
@@ -1773,19 +1810,19 @@ var Layout = (props) => {
1773
1810
  const getContentLayout = () => {
1774
1811
  switch (pageType) {
1775
1812
  case "home":
1776
- return /* @__PURE__ */ _jsx15(Theme.HomeLayout, _object_spread10({}, homeProps));
1813
+ return /* @__PURE__ */ _jsx16(Theme.HomeLayout, _object_spread9({}, homeProps));
1777
1814
  case "doc":
1778
- return /* @__PURE__ */ _jsx15(DocLayout, _object_spread10({}, docProps));
1815
+ return /* @__PURE__ */ _jsx16(DocLayout, _object_spread9({}, docProps));
1779
1816
  case "404":
1780
- return /* @__PURE__ */ _jsx15(Theme.NotFoundLayout, {});
1817
+ return /* @__PURE__ */ _jsx16(Theme.NotFoundLayout, {});
1781
1818
  case "custom":
1782
1819
  case "blank":
1783
- return /* @__PURE__ */ _jsx15(Content2, {});
1820
+ return /* @__PURE__ */ _jsx16(Content2, {});
1784
1821
  default:
1785
- return /* @__PURE__ */ _jsx15(DocLayout, _object_spread10({}, docProps));
1822
+ return /* @__PURE__ */ _jsx16(DocLayout, _object_spread9({}, docProps));
1786
1823
  }
1787
1824
  };
1788
- useEffect8(() => {
1825
+ useEffect10(() => {
1789
1826
  if (!defaultLang || process.env.TEST === "1") {
1790
1827
  return;
1791
1828
  }
@@ -1806,67 +1843,51 @@ var Layout = (props) => {
1806
1843
  if (targetLang === defaultLang) {
1807
1844
  window.location.replace(pathname.replace(`/${currentLang}`, ""));
1808
1845
  } else if (currentLang === defaultLang) {
1809
- window.location.replace(withBase7(`/${targetLang}${cleanPathname}`));
1846
+ window.location.replace(withBase8(`/${targetLang}${cleanPathname}`));
1810
1847
  } else {
1811
1848
  window.location.replace(pathname.replace(`/${currentLang}`, `/${targetLang}`));
1812
1849
  }
1813
1850
  }
1814
1851
  }, []);
1815
- return /* @__PURE__ */ _jsxs9("div", {
1852
+ return /* @__PURE__ */ _jsxs10("div", {
1816
1853
  children: [
1817
- /* @__PURE__ */ _jsxs9(Helmet, {
1854
+ /* @__PURE__ */ _jsxs10(Helmet, {
1818
1855
  children: [
1819
- title ? /* @__PURE__ */ _jsx15("title", {
1856
+ title ? /* @__PURE__ */ _jsx16("title", {
1820
1857
  children: title
1821
1858
  }) : null,
1822
- description ? /* @__PURE__ */ _jsx15("meta", {
1859
+ description ? /* @__PURE__ */ _jsx16("meta", {
1823
1860
  name: "description",
1824
1861
  content: description
1825
1862
  }) : null
1826
1863
  ]
1827
1864
  }),
1828
1865
  top,
1829
- pageType !== "blank" && !hideNavbar && /* @__PURE__ */ _jsx15(Nav, {
1866
+ pageType !== "blank" && !hideNavbar && /* @__PURE__ */ _jsx16(Nav, {
1830
1867
  beforeNavTitle,
1831
1868
  afterNavTitle,
1832
1869
  beforeNav
1833
1870
  }),
1834
- /* @__PURE__ */ _jsx15("section", {
1871
+ /* @__PURE__ */ _jsx16("section", {
1835
1872
  children: getContentLayout()
1836
1873
  }),
1837
- bottom,
1838
- // Global UI
1839
- globalComponents.map((componentInfo, index) => {
1840
- if (Array.isArray(componentInfo)) {
1841
- const [component, props2] = componentInfo;
1842
- return /* @__PURE__ */ React5.createElement(component, _object_spread10({
1843
- // The component order is stable
1844
- // eslint-disable-next-line react/no-array-index-key
1845
- key: index
1846
- }, props2));
1847
- } else {
1848
- return /* @__PURE__ */ React5.createElement(componentInfo, {
1849
- // eslint-disable-next-line react/no-array-index-key
1850
- key: index
1851
- });
1852
- }
1853
- })
1874
+ bottom
1854
1875
  ]
1855
1876
  });
1856
1877
  };
1857
1878
 
1858
1879
  // src/theme-default/layout/HomeLayout/index.tsx
1859
- import { jsx as _jsx18, jsxs as _jsxs12 } from "react/jsx-runtime";
1880
+ import { jsx as _jsx19, jsxs as _jsxs13 } from "react/jsx-runtime";
1860
1881
  import { HomeFooter } from "@theme";
1861
1882
 
1862
1883
  // src/theme-default/components/HomeHero/index.tsx
1863
- import { jsx as _jsx16, jsxs as _jsxs10 } from "react/jsx-runtime";
1884
+ import { jsx as _jsx17, jsxs as _jsxs11 } from "react/jsx-runtime";
1864
1885
 
1865
1886
  // src/theme-default/components/Button/index.tsx
1866
1887
  import React6 from "react";
1867
1888
 
1868
1889
  // src/theme-default/components/Button/index.module.scss
1869
- var index_module_default7 = { "button": "button_c5dfc", "medium": "medium_c5dfc", "big": "big_c5dfc", "brand": "brand_c5dfc", "alt": "alt_c5dfc" };
1890
+ var index_module_default8 = { "button": "button_c5dfc", "medium": "medium_c5dfc", "big": "big_c5dfc", "brand": "brand_c5dfc", "alt": "alt_c5dfc" };
1870
1891
 
1871
1892
  // src/theme-default/components/Button/index.tsx
1872
1893
  function Button(props) {
@@ -1878,16 +1899,16 @@ function Button(props) {
1878
1899
  type = external ? "a" : Link;
1879
1900
  }
1880
1901
  return /* @__PURE__ */ React6.createElement(type !== null && type !== void 0 ? type : "a", {
1881
- className: `${index_module_default7.button} ${index_module_default7[theme]} ${index_module_default7[size]} ${className}`,
1902
+ className: `${index_module_default8.button} ${index_module_default8[theme]} ${index_module_default8[size]} ${className}`,
1882
1903
  href
1883
1904
  }, props.text);
1884
1905
  }
1885
1906
 
1886
1907
  // src/theme-default/components/HomeHero/index.module.scss
1887
- var index_module_default8 = { "clip": "clip_1e4a0", "mask": "mask_1e4a0" };
1908
+ var index_module_default9 = { "clip": "clip_1e4a0", "mask": "mask_1e4a0" };
1888
1909
 
1889
1910
  // src/theme-default/components/HomeHero/index.tsx
1890
- import { normalizeHrefInRuntime as normalizeHref7 } from "@/runtime";
1911
+ import { normalizeHrefInRuntime as normalizeHref7, normalizeImagePath as normalizeImagePath2 } from "@/runtime";
1891
1912
  var DEFAULT_HERO = {
1892
1913
  name: "modern",
1893
1914
  text: "modern ssg",
@@ -1899,47 +1920,47 @@ function HomeHero({ frontmatter }) {
1899
1920
  var _hero_text, _hero_image, _hero_image1;
1900
1921
  const hero = (frontmatter === null || frontmatter === void 0 ? void 0 : frontmatter.hero) || DEFAULT_HERO;
1901
1922
  const hasImage = hero.image !== void 0;
1902
- return /* @__PURE__ */ _jsxs10("div", {
1923
+ return /* @__PURE__ */ _jsxs11("div", {
1903
1924
  className: "m-auto pt-0 px-6 pb-12 sm:pt-10 sm:px-16 md:pt-16 md:px-16 md:pb-16",
1904
1925
  children: [
1905
- /* @__PURE__ */ _jsx16("div", {
1906
- className: index_module_default8.mask,
1926
+ /* @__PURE__ */ _jsx17("div", {
1927
+ className: index_module_default9.mask,
1907
1928
  style: {
1908
1929
  left: hasImage ? "75%" : "50%"
1909
1930
  }
1910
1931
  }),
1911
- /* @__PURE__ */ _jsxs10("div", {
1932
+ /* @__PURE__ */ _jsxs11("div", {
1912
1933
  className: "m-auto flex flex-col md:flex-row max-w-6xl min-h-[50vh]",
1913
1934
  children: [
1914
- /* @__PURE__ */ _jsxs10("div", {
1935
+ /* @__PURE__ */ _jsxs11("div", {
1915
1936
  className: "flex flex-col justify-center text-center max-w-xl sm:max-w-4xl m-auto order-2 md:order-1",
1916
1937
  children: [
1917
- /* @__PURE__ */ _jsx16("h1", {
1938
+ /* @__PURE__ */ _jsx17("h1", {
1918
1939
  className: "font-bold text-3xl sm:text-6xl md:text-7xl m-auto sm:m-4 md:m-0 md:pb-3 lg:pb-2 leading-tight z-10",
1919
- children: /* @__PURE__ */ _jsx16("span", {
1920
- className: index_module_default8.clip,
1940
+ children: /* @__PURE__ */ _jsx17("span", {
1941
+ className: index_module_default9.clip,
1921
1942
  style: {
1922
1943
  lineHeight: "1.3"
1923
1944
  },
1924
1945
  children: hero.name
1925
1946
  })
1926
1947
  }),
1927
- ((_hero_text = hero.text) === null || _hero_text === void 0 ? void 0 : _hero_text.length) && /* @__PURE__ */ _jsx16("p", {
1948
+ ((_hero_text = hero.text) === null || _hero_text === void 0 ? void 0 : _hero_text.length) && /* @__PURE__ */ _jsx17("p", {
1928
1949
  className: `mx-auto md:m-0 text-3xl sm:text-5xl md:text-6xl pb-2 font-bold z-10 max-w-392px ${hasImage ? "sm:max-w-xl" : "sm:max-w-4xl"}`,
1929
1950
  style: {
1930
1951
  lineHeight: "1.2"
1931
1952
  },
1932
1953
  children: hero.text
1933
1954
  }),
1934
- /* @__PURE__ */ _jsx16("p", {
1955
+ /* @__PURE__ */ _jsx17("p", {
1935
1956
  className: "whitespace-pre-wrap pt-4 m-auto md:m-0 text-sm sm:tex-xl md:text-2xl text-text-2 font-medium z-10",
1936
1957
  children: hero.tagline
1937
1958
  }),
1938
- /* @__PURE__ */ _jsx16("div", {
1959
+ /* @__PURE__ */ _jsx17("div", {
1939
1960
  className: "flex flex-wrap justify-center gap-3 m--1.5 pt-8 z-10",
1940
- children: hero.actions.map((action) => /* @__PURE__ */ _jsx16("div", {
1961
+ children: hero.actions.map((action) => /* @__PURE__ */ _jsx17("div", {
1941
1962
  className: "flex flex-shrink-0 p-1",
1942
- children: /* @__PURE__ */ _jsx16(Button, {
1963
+ children: /* @__PURE__ */ _jsx17(Button, {
1943
1964
  type: "a",
1944
1965
  text: action.text,
1945
1966
  href: normalizeHref7(action.link),
@@ -1949,10 +1970,10 @@ function HomeHero({ frontmatter }) {
1949
1970
  })
1950
1971
  ]
1951
1972
  }),
1952
- hasImage ? /* @__PURE__ */ _jsx16("div", {
1973
+ hasImage ? /* @__PURE__ */ _jsx17("div", {
1953
1974
  className: "rspress-home-hero-image md:flex-center m-auto order-1 md:order-2 sm:flex md:none lg:flex",
1954
- children: /* @__PURE__ */ _jsx16("img", {
1955
- src: (_hero_image = hero.image) === null || _hero_image === void 0 ? void 0 : _hero_image.src,
1975
+ children: /* @__PURE__ */ _jsx17("img", {
1976
+ src: normalizeImagePath2((_hero_image = hero.image) === null || _hero_image === void 0 ? void 0 : _hero_image.src),
1956
1977
  alt: (_hero_image1 = hero.image) === null || _hero_image1 === void 0 ? void 0 : _hero_image1.alt
1957
1978
  })
1958
1979
  }) : null
@@ -1963,10 +1984,10 @@ function HomeHero({ frontmatter }) {
1963
1984
  }
1964
1985
 
1965
1986
  // src/theme-default/components/HomeFeatures/index.tsx
1966
- import { jsx as _jsx17, jsxs as _jsxs11 } from "react/jsx-runtime";
1987
+ import { jsx as _jsx18, jsxs as _jsxs12 } from "react/jsx-runtime";
1967
1988
 
1968
1989
  // src/theme-default/components/HomeFeatures/index.module.scss
1969
- var index_module_default9 = { "grid-2": "grid-2_7983b", "grid2": "grid-2_7983b", "grid-4": "grid-4_7983b", "grid4": "grid-4_7983b", "grid-6": "grid-6_7983b", "grid6": "grid-6_7983b", "grid-3": "grid-3_7983b", "grid3": "grid-3_7983b", "featureCard": "featureCard_7983b" };
1990
+ var index_module_default10 = { "grid-2": "grid-2_7983b", "grid2": "grid-2_7983b", "grid-4": "grid-4_7983b", "grid4": "grid-4_7983b", "grid-6": "grid-6_7983b", "grid6": "grid-6_7983b", "grid-3": "grid-3_7983b", "grid3": "grid-3_7983b", "featureCard": "featureCard_7983b" };
1970
1991
 
1971
1992
  // src/theme-default/components/HomeFeatures/index.tsx
1972
1993
  var PRESET_COUNT = [
@@ -1989,16 +2010,16 @@ var getGridClass = (count) => {
1989
2010
  function HomeFeature({ frontmatter }) {
1990
2011
  const features = frontmatter === null || frontmatter === void 0 ? void 0 : frontmatter.features;
1991
2012
  const gridClass = getGridClass(features === null || features === void 0 ? void 0 : features.length);
1992
- return /* @__PURE__ */ _jsx17("div", {
2013
+ return /* @__PURE__ */ _jsx18("div", {
1993
2014
  className: "overflow-hidden m-auto flex flex-wrap justify-between max-w-6xl",
1994
2015
  children: features === null || features === void 0 ? void 0 : features.map((feature) => {
1995
2016
  const { icon, title, details, link } = feature;
1996
- return /* @__PURE__ */ _jsx17("div", {
1997
- className: `${gridClass ? index_module_default9[gridClass] : "w-full"} rounded hover:var(--rp-c-brand)`,
1998
- children: /* @__PURE__ */ _jsx17("div", {
2017
+ return /* @__PURE__ */ _jsx18("div", {
2018
+ className: `${gridClass ? index_module_default10[gridClass] : "w-full"} rounded hover:var(--rp-c-brand)`,
2019
+ children: /* @__PURE__ */ _jsx18("div", {
1999
2020
  className: "h-full p-2",
2000
- children: /* @__PURE__ */ _jsxs11("article", {
2001
- className: `${index_module_default9.featureCard} h-full p-8 rounded-4xl border-transparent`,
2021
+ children: /* @__PURE__ */ _jsxs12("article", {
2022
+ className: `${index_module_default10.featureCard} h-full p-8 rounded-4xl border-transparent`,
2002
2023
  style: {
2003
2024
  cursor: link ? "pointer" : "auto"
2004
2025
  },
@@ -2008,18 +2029,18 @@ function HomeFeature({ frontmatter }) {
2008
2029
  }
2009
2030
  },
2010
2031
  children: [
2011
- /* @__PURE__ */ _jsx17("div", {
2032
+ /* @__PURE__ */ _jsx18("div", {
2012
2033
  className: "flex-center",
2013
- children: /* @__PURE__ */ _jsx17("div", {
2034
+ children: /* @__PURE__ */ _jsx18("div", {
2014
2035
  className: "rspress-home-feature-icon w-12 h-12 text-3xl text-center",
2015
2036
  children: icon
2016
2037
  })
2017
2038
  }),
2018
- /* @__PURE__ */ _jsx17("h2", {
2039
+ /* @__PURE__ */ _jsx18("h2", {
2019
2040
  className: "rspress-home-feature-title font-bold text-center",
2020
2041
  children: title
2021
2042
  }),
2022
- /* @__PURE__ */ _jsx17("p", {
2043
+ /* @__PURE__ */ _jsx18("p", {
2023
2044
  className: "rspress-home-feature-detail leading-6 pt-2 text-sm text-text-2 font-medium",
2024
2045
  children: details
2025
2046
  })
@@ -2032,61 +2053,62 @@ function HomeFeature({ frontmatter }) {
2032
2053
  }
2033
2054
 
2034
2055
  // src/theme-default/layout/HomeLayout/index.tsx
2035
- import { usePageData as usePageData10 } from "@/runtime";
2056
+ import { usePageData as usePageData11 } from "@/runtime";
2036
2057
  function HomeLayout(props) {
2037
2058
  const { beforeHero, afterHero, beforeFeatures, afterFeatures } = props;
2038
- const { page: { frontmatter } } = usePageData10();
2039
- return /* @__PURE__ */ _jsxs12("div", {
2059
+ const { page: { frontmatter } } = usePageData11();
2060
+ return /* @__PURE__ */ _jsxs13("div", {
2040
2061
  className: "relative",
2041
2062
  style: {
2042
2063
  minHeight: "calc(100vh - var(--rp-nav-height))",
2043
2064
  paddingBottom: "80px"
2044
2065
  },
2045
2066
  children: [
2046
- /* @__PURE__ */ _jsxs12("div", {
2047
- className: "mt-14 pb-12",
2067
+ /* @__PURE__ */ _jsxs13("div", {
2068
+ className: "pb-12",
2048
2069
  children: [
2049
2070
  beforeHero,
2050
- /* @__PURE__ */ _jsx18(HomeHero, {
2071
+ /* @__PURE__ */ _jsx19(HomeHero, {
2051
2072
  frontmatter
2052
2073
  }),
2053
2074
  afterHero,
2054
2075
  beforeFeatures,
2055
- /* @__PURE__ */ _jsx18(HomeFeature, {
2076
+ /* @__PURE__ */ _jsx19(HomeFeature, {
2056
2077
  frontmatter
2057
2078
  }),
2058
2079
  afterFeatures
2059
2080
  ]
2060
2081
  }),
2061
- /* @__PURE__ */ _jsx18(HomeFooter, {})
2082
+ /* @__PURE__ */ _jsx19(HomeFooter, {})
2062
2083
  ]
2063
2084
  });
2064
2085
  }
2065
2086
 
2066
2087
  // src/theme-default/components/Nav/index.tsx
2067
- import { jsx as _jsx36, jsxs as _jsxs23 } from "react/jsx-runtime";
2068
- import { replaceLang } from "@rspress/shared";
2069
- import { useLocation as useLocation5 } from "react-router-dom";
2088
+ import { jsx as _jsx37, jsxs as _jsxs24, Fragment as _Fragment4 } from "react/jsx-runtime";
2089
+ import { replaceLang as replaceLang2 } from "@rspress/shared";
2090
+ import { useLocation as useLocation7 } from "react-router-dom";
2070
2091
  import { Search } from "@theme";
2071
- import { useContext as useContext3, useEffect as useEffect11, useState as useState10 } from "react";
2092
+ import { useEffect as useEffect13, useState as useState12 } from "react";
2072
2093
 
2073
2094
  // src/theme-default/components/NavHambmger/index.tsx
2074
- import { jsx as _jsx34, jsxs as _jsxs21 } from "react/jsx-runtime";
2095
+ import { jsx as _jsx35, jsxs as _jsxs22 } from "react/jsx-runtime";
2075
2096
  import { Fragment as Fragment2 } from "react";
2076
2097
 
2077
2098
  // src/theme-default/components/NavScreen/index.tsx
2078
- import { jsx as _jsx32, jsxs as _jsxs19 } from "react/jsx-runtime";
2079
- import { useContext as useContext2, useEffect as useEffect10, useRef as useRef4 } from "react";
2099
+ import { jsx as _jsx33, jsxs as _jsxs20 } from "react/jsx-runtime";
2100
+ import { useEffect as useEffect12, useRef as useRef4 } from "react";
2080
2101
  import { disableBodyScroll, clearAllBodyScrollLocks } from "body-scroll-lock";
2102
+ import { replaceLang } from "@rspress/shared";
2081
2103
 
2082
2104
  // src/theme-default/components/NavScreenMenuGroup/NavScreenMenuGroup.tsx
2083
- import { jsx as _jsx20, jsxs as _jsxs13 } from "react/jsx-runtime";
2084
- import { useState as useState5 } from "react";
2105
+ import { jsx as _jsx21, jsxs as _jsxs14 } from "react/jsx-runtime";
2106
+ import { useState as useState7 } from "react";
2085
2107
 
2086
2108
  // src/theme-default/assets/down.svg
2087
- import { jsx as _jsx19 } from "react/jsx-runtime";
2109
+ import { jsx as _jsx20 } from "react/jsx-runtime";
2088
2110
  import * as React7 from "react";
2089
- function _define_property11(obj, key, value) {
2111
+ function _define_property10(obj, key, value) {
2090
2112
  if (key in obj) {
2091
2113
  Object.defineProperty(obj, key, {
2092
2114
  value,
@@ -2099,7 +2121,7 @@ function _define_property11(obj, key, value) {
2099
2121
  }
2100
2122
  return obj;
2101
2123
  }
2102
- function _object_spread11(target) {
2124
+ function _object_spread10(target) {
2103
2125
  for (var i = 1; i < arguments.length; i++) {
2104
2126
  var source = arguments[i] != null ? arguments[i] : {};
2105
2127
  var ownKeys36 = Object.keys(source);
@@ -2109,7 +2131,7 @@ function _object_spread11(target) {
2109
2131
  }));
2110
2132
  }
2111
2133
  ownKeys36.forEach(function(key) {
2112
- _define_property11(target, key, source[key]);
2134
+ _define_property10(target, key, source[key]);
2113
2135
  });
2114
2136
  }
2115
2137
  return target;
@@ -2138,12 +2160,12 @@ function _object_spread_props6(target, source) {
2138
2160
  }
2139
2161
  return target;
2140
2162
  }
2141
- var SvgDown = (props) => /* @__PURE__ */ _jsx19("svg", _object_spread_props6(_object_spread11({
2163
+ var SvgDown = (props) => /* @__PURE__ */ _jsx20("svg", _object_spread_props6(_object_spread10({
2142
2164
  width: "1em",
2143
2165
  height: "1em",
2144
2166
  viewBox: "0 0 32 32"
2145
2167
  }, props), {
2146
- children: /* @__PURE__ */ _jsx19("path", {
2168
+ children: /* @__PURE__ */ _jsx20("path", {
2147
2169
  fill: "currentColor",
2148
2170
  d: "M16 22 6 12l1.4-1.4 8.6 8.6 8.6-8.6L26 12z"
2149
2171
  })
@@ -2151,30 +2173,30 @@ var SvgDown = (props) => /* @__PURE__ */ _jsx19("svg", _object_spread_props6(_ob
2151
2173
  var down_default = SvgDown;
2152
2174
 
2153
2175
  // src/theme-default/components/NavScreenMenuGroup/index.module.scss
2154
- var index_module_default10 = { "navScreenMenuGroup": "navScreenMenuGroup_de8a5", "open": "open_de8a5", "button": "button_de8a5", "buttonSpan": "buttonSpan_de8a5", "items": "items_de8a5", "down": "down_de8a5" };
2176
+ var index_module_default11 = { "navScreenMenuGroup": "navScreenMenuGroup_de8a5", "open": "open_de8a5", "button": "button_de8a5", "buttonSpan": "buttonSpan_de8a5", "items": "items_de8a5", "down": "down_de8a5" };
2155
2177
 
2156
2178
  // src/theme-default/components/NavScreenMenuGroup/NavScreenMenuGroup.tsx
2157
2179
  function NavScreenMenuGroup(item) {
2158
2180
  const { activeValue } = item;
2159
- const [isOpen, setIsOpen] = useState5(false);
2181
+ const [isOpen, setIsOpen] = useState7(false);
2160
2182
  function ActiveGroupItem2({ item: item2 }) {
2161
- return /* @__PURE__ */ _jsx20("div", {
2183
+ return /* @__PURE__ */ _jsx21("div", {
2162
2184
  className: "p-1",
2163
- children: /* @__PURE__ */ _jsx20("span", {
2185
+ children: /* @__PURE__ */ _jsx21("span", {
2164
2186
  className: "text-brand",
2165
2187
  children: item2.text
2166
2188
  })
2167
2189
  });
2168
2190
  }
2169
2191
  function NormalGroupItem2({ item: item2 }) {
2170
- return /* @__PURE__ */ _jsx20("div", {
2192
+ return /* @__PURE__ */ _jsx21("div", {
2171
2193
  className: "py-1 font-medium",
2172
- children: /* @__PURE__ */ _jsx20(Link, {
2194
+ children: /* @__PURE__ */ _jsx21(Link, {
2173
2195
  href: item2.link,
2174
- children: /* @__PURE__ */ _jsx20("div", {
2175
- children: /* @__PURE__ */ _jsx20("div", {
2196
+ children: /* @__PURE__ */ _jsx21("div", {
2197
+ children: /* @__PURE__ */ _jsx21("div", {
2176
2198
  className: "flex justify-center",
2177
- children: /* @__PURE__ */ _jsx20("span", {
2199
+ children: /* @__PURE__ */ _jsx21("span", {
2178
2200
  children: item2.text
2179
2201
  })
2180
2202
  })
@@ -2184,18 +2206,18 @@ function NavScreenMenuGroup(item) {
2184
2206
  }
2185
2207
  const renderLinkItem = (item2) => {
2186
2208
  if (activeValue === item2.text) {
2187
- return /* @__PURE__ */ _jsx20(ActiveGroupItem2, {
2209
+ return /* @__PURE__ */ _jsx21(ActiveGroupItem2, {
2188
2210
  item: item2
2189
2211
  }, item2.link);
2190
2212
  }
2191
- return /* @__PURE__ */ _jsx20(NormalGroupItem2, {
2213
+ return /* @__PURE__ */ _jsx21(NormalGroupItem2, {
2192
2214
  item: item2
2193
2215
  }, item2.link);
2194
2216
  };
2195
2217
  const renderGroup = (item2) => {
2196
- return /* @__PURE__ */ _jsxs13("div", {
2218
+ return /* @__PURE__ */ _jsxs14("div", {
2197
2219
  children: [
2198
- "link" in item2 ? renderLinkItem(item2) : /* @__PURE__ */ _jsx20("p", {
2220
+ "link" in item2 ? renderLinkItem(item2) : /* @__PURE__ */ _jsx21("p", {
2199
2221
  className: "font-bold text-gray-400 my-1 not:first:border",
2200
2222
  children: item2.text
2201
2223
  }),
@@ -2203,29 +2225,29 @@ function NavScreenMenuGroup(item) {
2203
2225
  ]
2204
2226
  });
2205
2227
  };
2206
- return /* @__PURE__ */ _jsxs13("div", {
2207
- className: `${isOpen ? index_module_default10.open : ""} ${index_module_default10.navScreenMenuGroup} relative`,
2228
+ return /* @__PURE__ */ _jsxs14("div", {
2229
+ className: `${isOpen ? index_module_default11.open : ""} ${index_module_default11.navScreenMenuGroup} relative`,
2208
2230
  children: [
2209
- /* @__PURE__ */ _jsxs13("button", {
2210
- className: index_module_default10.button,
2231
+ /* @__PURE__ */ _jsxs14("button", {
2232
+ className: index_module_default11.button,
2211
2233
  onClick: () => {
2212
2234
  setIsOpen(!isOpen);
2213
2235
  },
2214
2236
  children: [
2215
- /* @__PURE__ */ _jsx20("span", {
2216
- className: index_module_default10.buttonSpan,
2237
+ /* @__PURE__ */ _jsx21("span", {
2238
+ className: index_module_default11.buttonSpan,
2217
2239
  children: item.text
2218
2240
  }),
2219
- /* @__PURE__ */ _jsx20(down_default, {
2220
- className: `${isOpen ? index_module_default10.open : ""} ${index_module_default10.down} `
2241
+ /* @__PURE__ */ _jsx21(down_default, {
2242
+ className: `${isOpen ? index_module_default11.open : ""} ${index_module_default11.down} `
2221
2243
  })
2222
2244
  ]
2223
2245
  }),
2224
- /* @__PURE__ */ _jsx20("div", {
2225
- children: /* @__PURE__ */ _jsx20("div", {
2226
- className: index_module_default10.items,
2246
+ /* @__PURE__ */ _jsx21("div", {
2247
+ children: /* @__PURE__ */ _jsx21("div", {
2248
+ className: index_module_default11.items,
2227
2249
  children: item.items.map((item2) => {
2228
- return /* @__PURE__ */ _jsx20("div", {
2250
+ return /* @__PURE__ */ _jsx21("div", {
2229
2251
  children: "items" in item2 ? renderGroup(item2) : renderLinkItem(item2)
2230
2252
  }, item2.text);
2231
2253
  })
@@ -2236,23 +2258,18 @@ function NavScreenMenuGroup(item) {
2236
2258
  }
2237
2259
 
2238
2260
  // src/theme-default/components/Nav/NavMenuSingleItem.tsx
2239
- import { jsx as _jsx21, jsxs as _jsxs14 } from "react/jsx-runtime";
2261
+ import { jsx as _jsx22, jsxs as _jsxs15 } from "react/jsx-runtime";
2240
2262
  import { withoutBase } from "@rspress/shared";
2241
-
2242
- // src/theme-default/components/Nav/index.module.scss
2243
- var index_module_default11 = { "container": "container_47ac2", "leftNav": "leftNav_47ac2", "rightNav": "rightNav_47ac2", "activeItem": "activeItem_47ac2", "singleItem": "singleItem_47ac2", "navContainer": "navContainer_47ac2", "social-links-icon": "social-links-icon_47ac2", "socialLinksIcon": "social-links-icon_47ac2", "menu-item": "menu-item_47ac2", "menuItem": "menu-item_47ac2", "mobileNavMenu": "mobileNavMenu_47ac2", "mask": "mask_47ac2", "docPage": "docPage_47ac2" };
2244
-
2245
- // src/theme-default/components/Nav/NavMenuSingleItem.tsx
2246
2263
  import { normalizeHrefInRuntime as normalizeHref8 } from "@/runtime";
2247
2264
  function NavMenuSingleItem(item) {
2248
2265
  const { pathname, base } = item;
2249
2266
  const isActive2 = new RegExp(item.activeMatch || item.link).test(withoutBase(pathname, base));
2250
- return /* @__PURE__ */ _jsx21(Link, {
2267
+ return /* @__PURE__ */ _jsx22(Link, {
2251
2268
  href: normalizeHref8(item.link),
2252
- children: /* @__PURE__ */ _jsxs14("div", {
2253
- className: `${index_module_default11.singleItem} ${isActive2 ? index_module_default11.activeItem : ""} text-sm font-medium mx-1.5 px-3 py-2 flex items-center`,
2269
+ children: /* @__PURE__ */ _jsxs15("div", {
2270
+ className: `${index_module_default4.singleItem} ${isActive2 ? index_module_default4.activeItem : ""} text-sm font-medium mx-1.5 px-3 py-2 flex items-center`,
2254
2271
  children: [
2255
- /* @__PURE__ */ _jsx21(Tag, {
2272
+ /* @__PURE__ */ _jsx22(Tag, {
2256
2273
  tag: item.tag
2257
2274
  }),
2258
2275
  item.text,
@@ -2263,13 +2280,13 @@ function NavMenuSingleItem(item) {
2263
2280
  }
2264
2281
 
2265
2282
  // src/theme-default/components/SwitchAppearance/index.tsx
2266
- import { jsx as _jsx24 } from "react/jsx-runtime";
2267
- import { useContext, useEffect as useEffect9 } from "react";
2283
+ import { jsx as _jsx25 } from "react/jsx-runtime";
2284
+ import { useContext as useContext2, useEffect as useEffect11 } from "react";
2268
2285
 
2269
2286
  // src/theme-default/assets/sun.svg
2270
- import { jsx as _jsx22 } from "react/jsx-runtime";
2287
+ import { jsx as _jsx23 } from "react/jsx-runtime";
2271
2288
  import * as React8 from "react";
2272
- function _define_property12(obj, key, value) {
2289
+ function _define_property11(obj, key, value) {
2273
2290
  if (key in obj) {
2274
2291
  Object.defineProperty(obj, key, {
2275
2292
  value,
@@ -2282,7 +2299,7 @@ function _define_property12(obj, key, value) {
2282
2299
  }
2283
2300
  return obj;
2284
2301
  }
2285
- function _object_spread12(target) {
2302
+ function _object_spread11(target) {
2286
2303
  for (var i = 1; i < arguments.length; i++) {
2287
2304
  var source = arguments[i] != null ? arguments[i] : {};
2288
2305
  var ownKeys36 = Object.keys(source);
@@ -2292,7 +2309,7 @@ function _object_spread12(target) {
2292
2309
  }));
2293
2310
  }
2294
2311
  ownKeys36.forEach(function(key) {
2295
- _define_property12(target, key, source[key]);
2312
+ _define_property11(target, key, source[key]);
2296
2313
  });
2297
2314
  }
2298
2315
  return target;
@@ -2321,21 +2338,21 @@ function _object_spread_props7(target, source) {
2321
2338
  }
2322
2339
  return target;
2323
2340
  }
2324
- var SvgSun = (props) => /* @__PURE__ */ _jsx22("svg", _object_spread_props7(_object_spread12({
2341
+ var SvgSun = (props) => /* @__PURE__ */ _jsx23("svg", _object_spread_props7(_object_spread11({
2325
2342
  xmlns: "http://www.w3.org/2000/svg",
2326
2343
  "aria-hidden": "true",
2327
2344
  viewBox: "0 0 24 24"
2328
2345
  }, props), {
2329
- children: /* @__PURE__ */ _jsx22("path", {
2346
+ children: /* @__PURE__ */ _jsx23("path", {
2330
2347
  d: "M12 18c-3.3 0-6-2.7-6-6s2.7-6 6-6 6 2.7 6 6-2.7 6-6 6zm0-10c-2.2 0-4 1.8-4 4s1.8 4 4 4 4-1.8 4-4-1.8-4-4-4zM12 4c-.6 0-1-.4-1-1V1c0-.6.4-1 1-1s1 .4 1 1v2c0 .6-.4 1-1 1zM12 24c-.6 0-1-.4-1-1v-2c0-.6.4-1 1-1s1 .4 1 1v2c0 .6-.4 1-1 1zM5.6 6.6c-.3 0-.5-.1-.7-.3L3.5 4.9c-.4-.4-.4-1 0-1.4s1-.4 1.4 0l1.4 1.4c.4.4.4 1 0 1.4-.1.2-.4.3-.7.3zM19.8 20.8c-.3 0-.5-.1-.7-.3l-1.4-1.4c-.4-.4-.4-1 0-1.4s1-.4 1.4 0l1.4 1.4c.4.4.4 1 0 1.4-.2.2-.5.3-.7.3zM3 13H1c-.6 0-1-.4-1-1s.4-1 1-1h2c.6 0 1 .4 1 1s-.4 1-1 1zM23 13h-2c-.6 0-1-.4-1-1s.4-1 1-1h2c.6 0 1 .4 1 1s-.4 1-1 1zM4.2 20.8c-.3 0-.5-.1-.7-.3-.4-.4-.4-1 0-1.4l1.4-1.4c.4-.4 1-.4 1.4 0s.4 1 0 1.4l-1.4 1.4c-.2.2-.4.3-.7.3zM18.4 6.6c-.3 0-.5-.1-.7-.3-.4-.4-.4-1 0-1.4l1.4-1.4c.4-.4 1-.4 1.4 0s.4 1 0 1.4l-1.4 1.4c-.2.2-.5.3-.7.3z"
2331
2348
  })
2332
2349
  }));
2333
2350
  var sun_default = SvgSun;
2334
2351
 
2335
2352
  // src/theme-default/assets/moon.svg
2336
- import { jsx as _jsx23 } from "react/jsx-runtime";
2353
+ import { jsx as _jsx24 } from "react/jsx-runtime";
2337
2354
  import * as React9 from "react";
2338
- function _define_property13(obj, key, value) {
2355
+ function _define_property12(obj, key, value) {
2339
2356
  if (key in obj) {
2340
2357
  Object.defineProperty(obj, key, {
2341
2358
  value,
@@ -2348,7 +2365,7 @@ function _define_property13(obj, key, value) {
2348
2365
  }
2349
2366
  return obj;
2350
2367
  }
2351
- function _object_spread13(target) {
2368
+ function _object_spread12(target) {
2352
2369
  for (var i = 1; i < arguments.length; i++) {
2353
2370
  var source = arguments[i] != null ? arguments[i] : {};
2354
2371
  var ownKeys36 = Object.keys(source);
@@ -2358,7 +2375,7 @@ function _object_spread13(target) {
2358
2375
  }));
2359
2376
  }
2360
2377
  ownKeys36.forEach(function(key) {
2361
- _define_property13(target, key, source[key]);
2378
+ _define_property12(target, key, source[key]);
2362
2379
  });
2363
2380
  }
2364
2381
  return target;
@@ -2387,12 +2404,12 @@ function _object_spread_props8(target, source) {
2387
2404
  }
2388
2405
  return target;
2389
2406
  }
2390
- var SvgMoon = (props) => /* @__PURE__ */ _jsx23("svg", _object_spread_props8(_object_spread13({
2407
+ var SvgMoon = (props) => /* @__PURE__ */ _jsx24("svg", _object_spread_props8(_object_spread12({
2391
2408
  xmlns: "http://www.w3.org/2000/svg",
2392
2409
  "aria-hidden": "true",
2393
2410
  viewBox: "0 0 24 24"
2394
2411
  }, props), {
2395
- children: /* @__PURE__ */ _jsx23("path", {
2412
+ children: /* @__PURE__ */ _jsx24("path", {
2396
2413
  d: "M12.1 22h-.9c-5.5-.5-9.5-5.4-9-10.9.4-4.8 4.2-8.6 9-9 .4 0 .8.2 1 .5.2.3.2.8-.1 1.1-2 2.7-1.4 6.4 1.3 8.4 2.1 1.6 5 1.6 7.1 0 .3-.2.7-.3 1.1-.1.3.2.5.6.5 1-.2 2.7-1.5 5.1-3.6 6.8-1.9 1.4-4.1 2.2-6.4 2.2zM9.3 4.4c-2.9 1-5 3.6-5.2 6.8-.4 4.4 2.8 8.3 7.2 8.7 2.1.2 4.2-.4 5.8-1.8 1.1-.9 1.9-2.1 2.4-3.4-2.5.9-5.3.5-7.5-1.1-2.8-2.2-3.9-5.9-2.7-9.2z"
2397
2414
  })
2398
2415
  }));
@@ -2440,29 +2457,29 @@ var getToggle = () => {
2440
2457
  };
2441
2458
 
2442
2459
  // src/theme-default/components/SwitchAppearance/index.tsx
2443
- import { ThemeContext } from "@/runtime";
2460
+ import { ThemeContext as ThemeContext2 } from "@/runtime";
2444
2461
  function SwitchAppearance({ onClick }) {
2445
- const { theme, setTheme } = useContext(ThemeContext);
2462
+ const { theme, setTheme } = useContext2(ThemeContext2);
2446
2463
  const toggleAppearance = getToggle();
2447
- useEffect9(() => {
2464
+ useEffect11(() => {
2448
2465
  if (isDarkMode()) {
2449
2466
  setTheme("dark");
2450
2467
  }
2451
2468
  }, []);
2452
- return /* @__PURE__ */ _jsx24("div", {
2469
+ return /* @__PURE__ */ _jsx25("div", {
2453
2470
  onClick: () => {
2454
2471
  setTheme(theme === "dark" ? "light" : "dark");
2455
2472
  toggleAppearance();
2456
2473
  onClick === null || onClick === void 0 ? void 0 : onClick();
2457
2474
  },
2458
2475
  className: "md:mr-2 rspress-nav-appearance",
2459
- children: /* @__PURE__ */ _jsx24("div", {
2476
+ children: /* @__PURE__ */ _jsx25("div", {
2460
2477
  className: "p-1 border border-solid border-gray-300 text-gray-400 cursor-pointer rounded-md hover:border-gray-600 hover:text-gray-600 dark:hover:border-gray-200 dark:hover:text-gray-200 transition-all duration-300",
2461
- children: theme === "light" ? /* @__PURE__ */ _jsx24(sun_default, {
2478
+ children: theme === "light" ? /* @__PURE__ */ _jsx25(sun_default, {
2462
2479
  width: "18",
2463
2480
  height: "18",
2464
2481
  fill: "currentColor"
2465
- }) : /* @__PURE__ */ _jsx24(moon_default, {
2482
+ }) : /* @__PURE__ */ _jsx25(moon_default, {
2466
2483
  width: "18",
2467
2484
  height: "18",
2468
2485
  fill: "currentColor"
@@ -2472,9 +2489,9 @@ function SwitchAppearance({ onClick }) {
2472
2489
  }
2473
2490
 
2474
2491
  // src/theme-default/assets/translator.svg
2475
- import { jsx as _jsx25 } from "react/jsx-runtime";
2492
+ import { jsx as _jsx26 } from "react/jsx-runtime";
2476
2493
  import * as React10 from "react";
2477
- function _define_property14(obj, key, value) {
2494
+ function _define_property13(obj, key, value) {
2478
2495
  if (key in obj) {
2479
2496
  Object.defineProperty(obj, key, {
2480
2497
  value,
@@ -2487,7 +2504,7 @@ function _define_property14(obj, key, value) {
2487
2504
  }
2488
2505
  return obj;
2489
2506
  }
2490
- function _object_spread14(target) {
2507
+ function _object_spread13(target) {
2491
2508
  for (var i = 1; i < arguments.length; i++) {
2492
2509
  var source = arguments[i] != null ? arguments[i] : {};
2493
2510
  var ownKeys36 = Object.keys(source);
@@ -2497,7 +2514,7 @@ function _object_spread14(target) {
2497
2514
  }));
2498
2515
  }
2499
2516
  ownKeys36.forEach(function(key) {
2500
- _define_property14(target, key, source[key]);
2517
+ _define_property13(target, key, source[key]);
2501
2518
  });
2502
2519
  }
2503
2520
  return target;
@@ -2526,12 +2543,12 @@ function _object_spread_props9(target, source) {
2526
2543
  }
2527
2544
  return target;
2528
2545
  }
2529
- var SvgTranslator = (props) => /* @__PURE__ */ _jsx25("svg", _object_spread_props9(_object_spread14({
2546
+ var SvgTranslator = (props) => /* @__PURE__ */ _jsx26("svg", _object_spread_props9(_object_spread13({
2530
2547
  width: 18,
2531
2548
  height: 18,
2532
2549
  viewBox: "0 0 32 32"
2533
2550
  }, props), {
2534
- children: /* @__PURE__ */ _jsx25("path", {
2551
+ children: /* @__PURE__ */ _jsx26("path", {
2535
2552
  fill: "currentColor",
2536
2553
  d: "M27.85 29H30l-6-15h-2.35l-6 15h2.15l1.6-4h6.85zm-7.65-6 2.62-6.56L25.45 23zM18 7V5h-7V2H9v3H2v2h10.74a14.71 14.71 0 0 1-3.19 6.18A13.5 13.5 0 0 1 7.26 9h-2.1a16.47 16.47 0 0 0 3 5.58A16.84 16.84 0 0 1 3 18l.75 1.86A18.47 18.47 0 0 0 9.53 16a16.92 16.92 0 0 0 5.76 3.84L16 18a14.48 14.48 0 0 1-5.12-3.37A17.64 17.64 0 0 0 14.8 7z"
2537
2554
  })
@@ -2539,16 +2556,16 @@ var SvgTranslator = (props) => /* @__PURE__ */ _jsx25("svg", _object_spread_prop
2539
2556
  var translator_default = SvgTranslator;
2540
2557
 
2541
2558
  // src/theme-default/components/SocialLinks/index.tsx
2542
- import { jsx as _jsx31, jsxs as _jsxs18 } from "react/jsx-runtime";
2543
- import { useState as useState7 } from "react";
2559
+ import { jsx as _jsx32, jsxs as _jsxs19 } from "react/jsx-runtime";
2560
+ import { useState as useState9 } from "react";
2544
2561
 
2545
2562
  // src/theme-default/components/SocialLinks/ShownLinks.tsx
2546
- import { jsx as _jsx29, jsxs as _jsxs17, Fragment as _Fragment2 } from "react/jsx-runtime";
2563
+ import { jsx as _jsx30, jsxs as _jsxs18, Fragment as _Fragment2 } from "react/jsx-runtime";
2547
2564
 
2548
2565
  // src/theme-default/assets/arrow-down.svg
2549
- import { jsx as _jsx26 } from "react/jsx-runtime";
2566
+ import { jsx as _jsx27 } from "react/jsx-runtime";
2550
2567
  import * as React11 from "react";
2551
- function _define_property15(obj, key, value) {
2568
+ function _define_property14(obj, key, value) {
2552
2569
  if (key in obj) {
2553
2570
  Object.defineProperty(obj, key, {
2554
2571
  value,
@@ -2561,7 +2578,7 @@ function _define_property15(obj, key, value) {
2561
2578
  }
2562
2579
  return obj;
2563
2580
  }
2564
- function _object_spread15(target) {
2581
+ function _object_spread14(target) {
2565
2582
  for (var i = 1; i < arguments.length; i++) {
2566
2583
  var source = arguments[i] != null ? arguments[i] : {};
2567
2584
  var ownKeys36 = Object.keys(source);
@@ -2571,7 +2588,7 @@ function _object_spread15(target) {
2571
2588
  }));
2572
2589
  }
2573
2590
  ownKeys36.forEach(function(key) {
2574
- _define_property15(target, key, source[key]);
2591
+ _define_property14(target, key, source[key]);
2575
2592
  });
2576
2593
  }
2577
2594
  return target;
@@ -2600,12 +2617,12 @@ function _object_spread_props10(target, source) {
2600
2617
  }
2601
2618
  return target;
2602
2619
  }
2603
- var SvgArrowDown = (props) => /* @__PURE__ */ _jsx26("svg", _object_spread_props10(_object_spread15({
2620
+ var SvgArrowDown = (props) => /* @__PURE__ */ _jsx27("svg", _object_spread_props10(_object_spread14({
2604
2621
  width: "1em",
2605
2622
  height: "1em",
2606
2623
  viewBox: "0 0 32 32"
2607
2624
  }, props), {
2608
- children: /* @__PURE__ */ _jsx26("path", {
2625
+ children: /* @__PURE__ */ _jsx27("path", {
2609
2626
  fill: "currentColor",
2610
2627
  d: "M16 22 6 12l1.4-1.4 8.6 8.6 8.6-8.6L26 12z"
2611
2628
  })
@@ -2613,223 +2630,223 @@ var SvgArrowDown = (props) => /* @__PURE__ */ _jsx26("svg", _object_spread_props
2613
2630
  var arrow_down_default = SvgArrowDown;
2614
2631
 
2615
2632
  // src/theme-default/components/SocialLinks/LinkContent.tsx
2616
- import { jsx as _jsx28, jsxs as _jsxs16 } from "react/jsx-runtime";
2617
- import { useState as useState6 } from "react";
2633
+ import { jsx as _jsx29, jsxs as _jsxs17 } from "react/jsx-runtime";
2634
+ import { useState as useState8 } from "react";
2618
2635
 
2619
2636
  // src/theme-default/components/SocialLinks/index.module.scss
2620
2637
  var index_module_default12 = { "social-links-icon": "social-links-icon_8cbd0", "socialLinksIcon": "social-links-icon_8cbd0", "menu-item": "menu-item_8cbd0", "menuItem": "menu-item_8cbd0" };
2621
2638
 
2622
2639
  // src/theme-default/components/SocialLinks/presetIcons.tsx
2623
- import { jsx as _jsx27, jsxs as _jsxs15 } from "react/jsx-runtime";
2640
+ import { jsx as _jsx28, jsxs as _jsxs16 } from "react/jsx-runtime";
2624
2641
  var presetIcons_default = {
2625
- discord: /* @__PURE__ */ _jsxs15("svg", {
2642
+ discord: /* @__PURE__ */ _jsxs16("svg", {
2626
2643
  role: "img",
2627
2644
  viewBox: "0 0 24 24",
2628
2645
  xmlns: "http://www.w3.org/2000/svg",
2629
2646
  children: [
2630
- /* @__PURE__ */ _jsx27("title", {
2647
+ /* @__PURE__ */ _jsx28("title", {
2631
2648
  children: "Discord"
2632
2649
  }),
2633
- /* @__PURE__ */ _jsx27("path", {
2650
+ /* @__PURE__ */ _jsx28("path", {
2634
2651
  d: "M20.317 4.3698a19.7913 19.7913 0 00-4.8851-1.5152.0741.0741 0 00-.0785.0371c-.211.3753-.4447.8648-.6083 1.2495-1.8447-.2762-3.68-.2762-5.4868 0-.1636-.3933-.4058-.8742-.6177-1.2495a.077.077 0 00-.0785-.037 19.7363 19.7363 0 00-4.8852 1.515.0699.0699 0 00-.0321.0277C.5334 9.0458-.319 13.5799.0992 18.0578a.0824.0824 0 00.0312.0561c2.0528 1.5076 4.0413 2.4228 5.9929 3.0294a.0777.0777 0 00.0842-.0276c.4616-.6304.8731-1.2952 1.226-1.9942a.076.076 0 00-.0416-.1057c-.6528-.2476-1.2743-.5495-1.8722-.8923a.077.077 0 01-.0076-.1277c.1258-.0943.2517-.1923.3718-.2914a.0743.0743 0 01.0776-.0105c3.9278 1.7933 8.18 1.7933 12.0614 0a.0739.0739 0 01.0785.0095c.1202.099.246.1981.3728.2924a.077.077 0 01-.0066.1276 12.2986 12.2986 0 01-1.873.8914.0766.0766 0 00-.0407.1067c.3604.698.7719 1.3628 1.225 1.9932a.076.076 0 00.0842.0286c1.961-.6067 3.9495-1.5219 6.0023-3.0294a.077.077 0 00.0313-.0552c.5004-5.177-.8382-9.6739-3.5485-13.6604a.061.061 0 00-.0312-.0286zM8.02 15.3312c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9555-2.4189 2.157-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.9555 2.4189-2.1569 2.4189zm7.9748 0c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9554-2.4189 2.1569-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.946 2.4189-2.1568 2.4189Z"
2635
2652
  })
2636
2653
  ]
2637
2654
  }),
2638
- facebook: /* @__PURE__ */ _jsxs15("svg", {
2655
+ facebook: /* @__PURE__ */ _jsxs16("svg", {
2639
2656
  role: "img",
2640
2657
  viewBox: "0 0 24 24",
2641
2658
  xmlns: "http://www.w3.org/2000/svg",
2642
2659
  children: [
2643
- /* @__PURE__ */ _jsx27("title", {
2660
+ /* @__PURE__ */ _jsx28("title", {
2644
2661
  children: "Facebook"
2645
2662
  }),
2646
- /* @__PURE__ */ _jsx27("path", {
2663
+ /* @__PURE__ */ _jsx28("path", {
2647
2664
  d: "M24 12.073c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.99 4.388 10.954 10.125 11.854v-8.385H7.078v-3.47h3.047V9.43c0-3.007 1.792-4.669 4.533-4.669 1.312 0 2.686.235 2.686.235v2.953H15.83c-1.491 0-1.956.925-1.956 1.874v2.25h3.328l-.532 3.47h-2.796v8.385C19.612 23.027 24 18.062 24 12.073z"
2648
2665
  })
2649
2666
  ]
2650
2667
  }),
2651
- github: /* @__PURE__ */ _jsxs15("svg", {
2668
+ github: /* @__PURE__ */ _jsxs16("svg", {
2652
2669
  role: "img",
2653
2670
  viewBox: "0 0 24 24",
2654
2671
  xmlns: "http://www.w3.org/2000/svg",
2655
2672
  children: [
2656
- /* @__PURE__ */ _jsx27("title", {
2673
+ /* @__PURE__ */ _jsx28("title", {
2657
2674
  children: "GitHub"
2658
2675
  }),
2659
- /* @__PURE__ */ _jsx27("path", {
2676
+ /* @__PURE__ */ _jsx28("path", {
2660
2677
  d: "M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12"
2661
2678
  })
2662
2679
  ]
2663
2680
  }),
2664
- gitlab: /* @__PURE__ */ _jsxs15("svg", {
2681
+ gitlab: /* @__PURE__ */ _jsxs16("svg", {
2665
2682
  role: "img",
2666
2683
  viewBox: "0 0 24 24",
2667
2684
  xmlns: "http://www.w3.org/2000/svg",
2668
2685
  children: [
2669
- /* @__PURE__ */ _jsx27("title", {
2686
+ /* @__PURE__ */ _jsx28("title", {
2670
2687
  children: "GitLab"
2671
2688
  }),
2672
- /* @__PURE__ */ _jsx27("path", {
2689
+ /* @__PURE__ */ _jsx28("path", {
2673
2690
  fill: "currentColor",
2674
2691
  d: "m21.94 13.11l-1.05-3.22c0-.03-.01-.06-.02-.09l-2.11-6.48a.859.859 0 0 0-.8-.57c-.36 0-.68.25-.79.58l-2 6.17H8.84L6.83 3.33a.851.851 0 0 0-.79-.58c-.37 0-.69.25-.8.58L3.13 9.82v.01l-1.07 3.28c-.16.5.01 1.04.44 1.34l9.22 6.71c.17.12.39.12.56-.01l9.22-6.7c.43-.3.6-.84.44-1.34M8.15 10.45l2.57 7.91l-6.17-7.91m8.73 7.92l2.47-7.59l.1-.33h3.61l-5.59 7.16m4.1-13.67l1.81 5.56h-3.62m-1.3.95l-1.79 5.51L12 19.24l-2.86-8.79M6.03 3.94L7.84 9.5H4.23m-1.18 4.19c-.09-.07-.13-.19-.09-.29l.79-2.43l5.82 7.45m11.38-4.73l-6.51 4.73l.02-.03l5.79-7.42l.79 2.43c.04.1 0 .22-.09.29"
2675
2692
  })
2676
2693
  ]
2677
2694
  }),
2678
- instagram: /* @__PURE__ */ _jsxs15("svg", {
2695
+ instagram: /* @__PURE__ */ _jsxs16("svg", {
2679
2696
  role: "img",
2680
2697
  viewBox: "0 0 24 24",
2681
2698
  xmlns: "http://www.w3.org/2000/svg",
2682
2699
  children: [
2683
- /* @__PURE__ */ _jsx27("title", {
2700
+ /* @__PURE__ */ _jsx28("title", {
2684
2701
  children: "Instagram"
2685
2702
  }),
2686
- /* @__PURE__ */ _jsx27("path", {
2703
+ /* @__PURE__ */ _jsx28("path", {
2687
2704
  d: "M12 0C8.74 0 8.333.015 7.053.072 5.775.132 4.905.333 4.14.63c-.789.306-1.459.717-2.126 1.384S.935 3.35.63 4.14C.333 4.905.131 5.775.072 7.053.012 8.333 0 8.74 0 12s.015 3.667.072 4.947c.06 1.277.261 2.148.558 2.913.306.788.717 1.459 1.384 2.126.667.666 1.336 1.079 2.126 1.384.766.296 1.636.499 2.913.558C8.333 23.988 8.74 24 12 24s3.667-.015 4.947-.072c1.277-.06 2.148-.262 2.913-.558.788-.306 1.459-.718 2.126-1.384.666-.667 1.079-1.335 1.384-2.126.296-.765.499-1.636.558-2.913.06-1.28.072-1.687.072-4.947s-.015-3.667-.072-4.947c-.06-1.277-.262-2.149-.558-2.913-.306-.789-.718-1.459-1.384-2.126C21.319 1.347 20.651.935 19.86.63c-.765-.297-1.636-.499-2.913-.558C15.667.012 15.26 0 12 0zm0 2.16c3.203 0 3.585.016 4.85.071 1.17.055 1.805.249 2.227.415.562.217.96.477 1.382.896.419.42.679.819.896 1.381.164.422.36 1.057.413 2.227.057 1.266.07 1.646.07 4.85s-.015 3.585-.074 4.85c-.061 1.17-.256 1.805-.421 2.227-.224.562-.479.96-.899 1.382-.419.419-.824.679-1.38.896-.42.164-1.065.36-2.235.413-1.274.057-1.649.07-4.859.07-3.211 0-3.586-.015-4.859-.074-1.171-.061-1.816-.256-2.236-.421-.569-.224-.96-.479-1.379-.899-.421-.419-.69-.824-.9-1.38-.165-.42-.359-1.065-.42-2.235-.045-1.26-.061-1.649-.061-4.844 0-3.196.016-3.586.061-4.861.061-1.17.255-1.814.42-2.234.21-.57.479-.96.9-1.381.419-.419.81-.689 1.379-.898.42-.166 1.051-.361 2.221-.421 1.275-.045 1.65-.06 4.859-.06l.045.03zm0 3.678c-3.405 0-6.162 2.76-6.162 6.162 0 3.405 2.76 6.162 6.162 6.162 3.405 0 6.162-2.76 6.162-6.162 0-3.405-2.76-6.162-6.162-6.162zM12 16c-2.21 0-4-1.79-4-4s1.79-4 4-4 4 1.79 4 4-1.79 4-4 4zm7.846-10.405c0 .795-.646 1.44-1.44 1.44-.795 0-1.44-.646-1.44-1.44 0-.794.646-1.439 1.44-1.439.793-.001 1.44.645 1.44 1.439z"
2688
2705
  })
2689
2706
  ]
2690
2707
  }),
2691
- linkedin: /* @__PURE__ */ _jsxs15("svg", {
2708
+ linkedin: /* @__PURE__ */ _jsxs16("svg", {
2692
2709
  role: "img",
2693
2710
  viewBox: "0 0 24 24",
2694
2711
  xmlns: "http://www.w3.org/2000/svg",
2695
2712
  children: [
2696
- /* @__PURE__ */ _jsx27("title", {
2713
+ /* @__PURE__ */ _jsx28("title", {
2697
2714
  children: "LinkedIn"
2698
2715
  }),
2699
- /* @__PURE__ */ _jsx27("path", {
2716
+ /* @__PURE__ */ _jsx28("path", {
2700
2717
  d: "M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433c-1.144 0-2.063-.926-2.063-2.065 0-1.138.92-2.063 2.063-2.063 1.14 0 2.064.925 2.064 2.063 0 1.139-.925 2.065-2.064 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z"
2701
2718
  })
2702
2719
  ]
2703
2720
  }),
2704
- slack: /* @__PURE__ */ _jsxs15("svg", {
2721
+ slack: /* @__PURE__ */ _jsxs16("svg", {
2705
2722
  role: "img",
2706
2723
  viewBox: "0 0 24 24",
2707
2724
  xmlns: "http://www.w3.org/2000/svg",
2708
2725
  children: [
2709
- /* @__PURE__ */ _jsx27("title", {
2726
+ /* @__PURE__ */ _jsx28("title", {
2710
2727
  children: "Slack"
2711
2728
  }),
2712
- /* @__PURE__ */ _jsx27("path", {
2729
+ /* @__PURE__ */ _jsx28("path", {
2713
2730
  d: "M5.042 15.165a2.528 2.528 0 0 1-2.52 2.523A2.528 2.528 0 0 1 0 15.165a2.527 2.527 0 0 1 2.522-2.52h2.52v2.52zM6.313 15.165a2.527 2.527 0 0 1 2.521-2.52 2.527 2.527 0 0 1 2.521 2.52v6.313A2.528 2.528 0 0 1 8.834 24a2.528 2.528 0 0 1-2.521-2.522v-6.313zM8.834 5.042a2.528 2.528 0 0 1-2.521-2.52A2.528 2.528 0 0 1 8.834 0a2.528 2.528 0 0 1 2.521 2.522v2.52H8.834zM8.834 6.313a2.528 2.528 0 0 1 2.521 2.521 2.528 2.528 0 0 1-2.521 2.521H2.522A2.528 2.528 0 0 1 0 8.834a2.528 2.528 0 0 1 2.522-2.521h6.312zM18.956 8.834a2.528 2.528 0 0 1 2.522-2.521A2.528 2.528 0 0 1 24 8.834a2.528 2.528 0 0 1-2.522 2.521h-2.522V8.834zM17.688 8.834a2.528 2.528 0 0 1-2.523 2.521 2.527 2.527 0 0 1-2.52-2.521V2.522A2.527 2.527 0 0 1 15.165 0a2.528 2.528 0 0 1 2.523 2.522v6.312zM15.165 18.956a2.528 2.528 0 0 1 2.523 2.522A2.528 2.528 0 0 1 15.165 24a2.527 2.527 0 0 1-2.52-2.522v-2.522h2.52zM15.165 17.688a2.527 2.527 0 0 1-2.52-2.523 2.526 2.526 0 0 1 2.52-2.52h6.313A2.527 2.527 0 0 1 24 15.165a2.528 2.528 0 0 1-2.522 2.523h-6.313z"
2714
2731
  })
2715
2732
  ]
2716
2733
  }),
2717
- twitter: /* @__PURE__ */ _jsxs15("svg", {
2734
+ twitter: /* @__PURE__ */ _jsxs16("svg", {
2718
2735
  role: "img",
2719
2736
  viewBox: "0 0 24 24",
2720
2737
  xmlns: "http://www.w3.org/2000/svg",
2721
2738
  children: [
2722
- /* @__PURE__ */ _jsx27("title", {
2739
+ /* @__PURE__ */ _jsx28("title", {
2723
2740
  children: "Twitter"
2724
2741
  }),
2725
- /* @__PURE__ */ _jsx27("path", {
2742
+ /* @__PURE__ */ _jsx28("path", {
2726
2743
  d: "M23.953 4.57a10 10 0 01-2.825.775 4.958 4.958 0 002.163-2.723c-.951.555-2.005.959-3.127 1.184a4.92 4.92 0 00-8.384 4.482C7.69 8.095 4.067 6.13 1.64 3.162a4.822 4.822 0 00-.666 2.475c0 1.71.87 3.213 2.188 4.096a4.904 4.904 0 01-2.228-.616v.06a4.923 4.923 0 003.946 4.827 4.996 4.996 0 01-2.212.085 4.936 4.936 0 004.604 3.417 9.867 9.867 0 01-6.102 2.105c-.39 0-.779-.023-1.17-.067a13.995 13.995 0 007.557 2.209c9.053 0 13.998-7.496 13.998-13.985 0-.21 0-.42-.015-.63A9.935 9.935 0 0024 4.59z"
2727
2744
  })
2728
2745
  ]
2729
2746
  }),
2730
- youtube: /* @__PURE__ */ _jsxs15("svg", {
2747
+ youtube: /* @__PURE__ */ _jsxs16("svg", {
2731
2748
  role: "img",
2732
2749
  viewBox: "0 0 24 24",
2733
2750
  xmlns: "http://www.w3.org/2000/svg",
2734
2751
  children: [
2735
- /* @__PURE__ */ _jsx27("title", {
2752
+ /* @__PURE__ */ _jsx28("title", {
2736
2753
  children: "YouTube"
2737
2754
  }),
2738
- /* @__PURE__ */ _jsx27("path", {
2755
+ /* @__PURE__ */ _jsx28("path", {
2739
2756
  d: "M23.498 6.186a3.016 3.016 0 0 0-2.122-2.136C19.505 3.545 12 3.545 12 3.545s-7.505 0-9.377.505A3.017 3.017 0 0 0 .502 6.186C0 8.07 0 12 0 12s0 3.93.502 5.814a3.016 3.016 0 0 0 2.122 2.136c1.871.505 9.376.505 9.376.505s7.505 0 9.377-.505a3.015 3.015 0 0 0 2.122-2.136C24 15.93 24 12 24 12s0-3.93-.502-5.814zM9.545 15.568V8.432L15.818 12l-6.273 3.568z"
2740
2757
  })
2741
2758
  ]
2742
2759
  }),
2743
- juejin: /* @__PURE__ */ _jsxs15("svg", {
2760
+ juejin: /* @__PURE__ */ _jsxs16("svg", {
2744
2761
  className: "icon",
2745
2762
  viewBox: "0 0 1024 1024",
2746
2763
  version: "1.1",
2747
2764
  xmlns: "http://www.w3.org/2000/svg",
2748
2765
  "data-spm-anchor-id": "a313x.7781069.0.i5",
2749
2766
  children: [
2750
- /* @__PURE__ */ _jsx27("path", {
2767
+ /* @__PURE__ */ _jsx28("path", {
2751
2768
  d: "M465.189 161.792c-22.967 18.14-44.325 35.109-47.397 37.742l-5.851 4.68 10.971 8.632c5.998 4.827 11.85 9.508 13.02 10.532 1.17 1.024 17.993 14.336 37.156 29.696l34.962 27.795 5.267-3.95c2.925-2.194 23.259-18.432 45.348-35.986 21.943-17.555 41.253-32.768 42.716-33.646 1.609-1.024 2.779-2.194 2.779-2.78 0-0.438-9.655-8.63-21.504-17.846-11.995-9.363-22.674-17.847-23.845-18.871-15.945-13.02-49.737-39.059-50.76-39.059-0.586 0.147-19.896 14.922-42.862 33.061z m233.325 180.37C507.465 493.275 508.928 492.105 505.417 489.911c-3.072-1.902-11.556-8.485-64.073-50.03-9.07-7.168-18.578-14.775-21.358-16.823-2.78-2.194-8.777-6.875-13.312-10.532-4.68-3.657-10.679-8.339-13.312-10.533-13.165-10.24-71.095-56.027-102.107-80.457-5.852-4.681-11.41-8.485-12.142-8.485-0.731 0-10.971 7.754-22.674 17.116-11.703 9.508-22.674 18.286-24.284 19.456-1.755 1.17-5.12 3.95-7.46 6.144-2.34 2.34-4.828 4.096-5.413 4.096-3.072 0-0.731 3.072 6.437 8.777 4.096 3.218 8.777 6.875 10.094 8.046 1.316 1.024 10.24 8.045 19.748 15.506s23.26 18.286 30.428 23.99c19.31 15.215 31.89 25.308 127.853 101.084 47.836 37.742 88.796 69.779 90.844 71.095 3.657 2.487 3.95 2.487 7.46-0.292a1041.42 1041.42 0 0 0 16.092-12.727c6.875-5.413 14.775-11.703 17.554-13.897 30.135-23.699 80.018-63.05 81.774-64.512 1.17-1.024 12.434-9.802 24.868-19.603s37.888-29.696 56.32-44.324c18.579-14.629 46.227-36.425 61.733-48.567 15.506-12.142 27.794-22.528 27.502-23.26-0.878-1.17-57.637-47.104-59.978-48.274-0.731-0.439-18.578 12.727-39.497 29.257z",
2752
2769
  "data-spm-anchor-id": "a313x.7781069.0.i2"
2753
2770
  }),
2754
- /* @__PURE__ */ _jsx27("path", {
2771
+ /* @__PURE__ */ _jsx28("path", {
2755
2772
  d: "M57.93 489.326c-15.215 12.288-28.527 23.405-29.697 24.576-2.34 2.194-5.412-0.44 80.018 66.852 33.207 26.185 32.622 25.747 57.637 45.495 10.386 8.192 36.279 28.672 57.783 45.495 38.18 30.135 44.91 35.401 52.663 41.545 2.048 1.756 22.967 18.14 46.372 36.572 23.26 18.432 74.167 58.514 112.933 89.088 38.912 30.573 71.095 55.734 71.826 56.027 0.732 0.293 7.46-4.389 14.921-10.386 21.797-16.97 90.259-70.949 101.523-79.872 5.705-4.535 12.873-10.24 15.945-12.58 3.072-2.488 6.436-5.12 7.314-5.852 0.878-0.878 11.85-9.509 24.283-19.31 20.773-16.091 59.1-46.226 64.366-50.615 1.17-1.024 5.12-4.096 8.777-6.875 3.657-2.78 7.9-6.29 9.509-7.607 1.609-1.317 14.775-11.703 29.257-23.113 29.11-22.82 42.277-33.207 88.503-69.632 17.262-13.605 32.475-25.454 33.646-26.478 2.486-2.048 31.451-24.869 44.617-35.255 4.827-3.657 9.07-7.168 9.508-7.607 0.44-0.585 5.998-4.827 12.435-9.8 6.436-4.828 13.165-10.24 15.067-11.85l3.365-2.926-9.948-7.753c-5.412-4.388-10.24-8.192-10.679-8.63-1.17-1.317-22.381-18.433-30.135-24.284-3.95-3.072-7.314-5.998-7.606-6.73-1.317-3.071-6.73 0.147-29.258 17.994-13.458 10.532-25.746 20.187-27.355 21.504-1.61 1.463-10.533 8.338-19.749 15.652-9.216 7.168-17.115 13.459-17.554 13.898-0.439 0.438-6.583 5.412-13.897 10.971-7.168 5.559-15.214 11.703-17.7 13.75-4.974 4.097-5.413 4.39-20.334 16.239-5.56 4.388-11.264 8.777-12.435 9.8-1.17 1.025-20.333 16.092-42.422 33.354-22.09 17.408-41.546 32.768-43.155 34.084-1.609 1.463-14.482 11.557-28.525 22.528s-40.814 32.037-59.539 46.812c-18.578 14.775-42.276 33.353-52.516 41.399s-23.26 18.285-28.965 22.82l-10.386 8.339-4.389-3.072c-2.34-1.756-4.68-3.511-5.12-3.95-0.439-0.439-4.973-4.096-10.24-8.046-11.849-9.216-14.482-11.264-16.676-13.166-0.878-0.877-4.243-3.51-7.46-5.851-3.22-2.487-6.145-4.681-6.584-5.12-0.439-0.439-6.875-5.705-14.482-11.703-7.607-5.851-14.921-11.556-16.091-12.58-1.317-1.17-17.116-13.605-35.255-27.795-17.993-14.19-35.109-27.648-38.035-29.842-5.705-4.681-33.499-26.624-125.074-98.743-34.523-27.209-72.704-57.344-84.846-66.852-49.737-39.498-55.15-43.594-56.905-43.447-0.877 0-14.043 10.24-29.257 22.528z",
2756
2773
  "data-spm-anchor-id": "a313x.7781069.0.i3"
2757
2774
  })
2758
2775
  ]
2759
2776
  }),
2760
- qq: /* @__PURE__ */ _jsx27("svg", {
2777
+ qq: /* @__PURE__ */ _jsx28("svg", {
2761
2778
  xmlns: "http://www.w3.org/2000/svg",
2762
2779
  "aria-hidden": "true",
2763
2780
  role: "img",
2764
2781
  className: "iconify iconify--ri",
2765
2782
  preserveAspectRatio: "xMidYMid meet",
2766
2783
  viewBox: "0 0 24 24",
2767
- children: /* @__PURE__ */ _jsx27("path", {
2784
+ children: /* @__PURE__ */ _jsx28("path", {
2768
2785
  fill: "currentColor",
2769
2786
  d: "M19.913 14.529a31.977 31.977 0 0 0-.675-1.886l-.91-2.246c0-.026.012-.468.012-.696C18.34 5.86 16.507 2 12 2S5.66 5.86 5.66 9.7c0 .229.011.671.012.697l-.91 2.246a32.777 32.777 0 0 0-.675 1.886c-.86 2.737-.581 3.87-.369 3.895c.455.054 1.771-2.06 1.771-2.06c0 1.224.637 2.822 2.016 3.976c-.515.157-1.147.399-1.554.695c-.365.267-.319.54-.253.65c.289.481 4.955.307 6.303.157c1.347.15 6.014.324 6.302-.158c.066-.11.112-.382-.253-.649c-.407-.296-1.039-.538-1.555-.696c1.379-1.153 2.016-2.751 2.016-3.976c0 0 1.316 2.115 1.771 2.06c.212-.025.49-1.157-.37-3.894"
2770
2787
  })
2771
2788
  }),
2772
- wechat: /* @__PURE__ */ _jsx27("svg", {
2789
+ wechat: /* @__PURE__ */ _jsx28("svg", {
2773
2790
  xmlns: "http://www.w3.org/2000/svg",
2774
2791
  "aria-hidden": "true",
2775
2792
  role: "img",
2776
2793
  className: "iconify iconify--ri",
2777
2794
  preserveAspectRatio: "xMidYMid meet",
2778
2795
  viewBox: "0 0 24 24",
2779
- children: /* @__PURE__ */ _jsx27("path", {
2796
+ children: /* @__PURE__ */ _jsx28("path", {
2780
2797
  fill: "currentColor",
2781
2798
  d: "M18.574 13.711a.91.91 0 0 0 .898-.898c0-.498-.399-.898-.898-.898s-.898.4-.898.898c0 .5.4.898.898.898zm-4.425 0a.91.91 0 0 0 .898-.898c0-.498-.4-.898-.898-.898c-.5 0-.898.4-.898.898c0 .5.399.898.898.898zm6.567 5.04a.347.347 0 0 0-.172.37c0 .048 0 .097.025.147c.098.417.294 1.081.294 1.106c0 .073.025.122.025.172a.22.22 0 0 1-.221.22c-.05 0-.074-.024-.123-.048l-1.449-.836a.799.799 0 0 0-.344-.098c-.073 0-.147 0-.196.024c-.688.197-1.4.295-2.161.295c-3.66 0-6.607-2.457-6.607-5.505c0-3.047 2.947-5.505 6.607-5.505c3.659 0 6.606 2.458 6.606 5.505c0 1.647-.884 3.146-2.284 4.154zM16.673 8.099a9.105 9.105 0 0 0-.28-.005c-4.174 0-7.606 2.86-7.606 6.505c0 .554.08 1.09.228 1.6h-.089a9.963 9.963 0 0 1-2.584-.368c-.074-.025-.148-.025-.222-.025a.832.832 0 0 0-.418.123l-1.748 1.005c-.05.025-.099.05-.148.05a.273.273 0 0 1-.27-.27c0-.074.024-.123.049-.197c.024-.024.246-.834.369-1.324c0-.05.024-.123.024-.172a.556.556 0 0 0-.221-.442C2.058 13.376 1 11.586 1 9.598C1 5.945 4.57 3 8.95 3c3.765 0 6.93 2.169 7.723 5.098zm-5.154.418c.573 0 1.026-.477 1.026-1.026c0-.573-.453-1.026-1.026-1.026s-1.026.453-1.026 1.026s.453 1.026 1.026 1.026zm-5.26 0c.573 0 1.027-.477 1.027-1.026c0-.573-.454-1.026-1.027-1.026c-.572 0-1.026.453-1.026 1.026s.454 1.026 1.026 1.026z"
2782
2799
  })
2783
2800
  }),
2784
- weibo: /* @__PURE__ */ _jsx27("svg", {
2801
+ weibo: /* @__PURE__ */ _jsx28("svg", {
2785
2802
  xmlns: "http://www.w3.org/2000/svg",
2786
2803
  "aria-hidden": "true",
2787
2804
  role: "img",
2788
2805
  className: "iconify iconify--ri",
2789
2806
  preserveAspectRatio: "xMidYMid meet",
2790
2807
  viewBox: "0 0 24 24",
2791
- children: /* @__PURE__ */ _jsx27("path", {
2808
+ children: /* @__PURE__ */ _jsx28("path", {
2792
2809
  fill: "currentColor",
2793
2810
  d: "M17.525 11.378c1.263.392 2.669 1.336 2.669 3.004c0 2.763-3.98 6.239-9.964 6.239c-4.565 0-9.23-2.213-9.23-5.852c0-1.902 1.204-4.102 3.277-6.177c2.773-2.77 6.004-4.033 7.219-2.816c.537.537.588 1.464.244 2.572c-.178.557.525.25.525.25c2.24-.938 4.196-.994 4.909.027c.38.543.343 1.306-.008 2.19c-.163.407.048.471.36.563zm-7.282 7.939c3.641-.362 6.401-2.592 6.167-4.983c-.237-2.391-3.382-4.038-7.023-3.677c-3.64.36-6.403 2.59-6.167 4.98c.237 2.394 3.382 4.039 7.023 3.68zM6.16 14.438c.754-1.527 2.712-2.39 4.446-1.94c1.793.463 2.707 2.154 1.976 3.8c-.744 1.682-2.882 2.578-4.695 1.993c-1.752-.566-2.493-2.294-1.727-3.853zm1.446 2.587c.568.257 1.325.013 1.676-.55c.346-.568.163-1.217-.407-1.459c-.563-.237-1.291.008-1.64.553c-.354.547-.189 1.202.371 1.456zm2.206-1.808c.219.092.501-.012.628-.231c.123-.22.044-.466-.178-.548c-.216-.084-.486.018-.613.232c-.123.214-.054.458.163.547zM19.873 9.5a.725.725 0 1 1-1.378-.451a1.38 1.38 0 0 0-.288-1.357a1.395 1.395 0 0 0-1.321-.425a.723.723 0 1 1-.303-1.416a2.836 2.836 0 0 1 3.29 3.649zm-3.916-6.575A5.831 5.831 0 0 1 21.5 4.72a5.836 5.836 0 0 1 1.22 5.704a.838.838 0 0 1-1.06.54a.844.844 0 0 1-.542-1.062a4.143 4.143 0 0 0-4.807-5.327a.845.845 0 0 1-.354-1.65z"
2794
2811
  })
2795
2812
  }),
2796
- zhihu: /* @__PURE__ */ _jsx27("svg", {
2813
+ zhihu: /* @__PURE__ */ _jsx28("svg", {
2797
2814
  xmlns: "http://www.w3.org/2000/svg",
2798
2815
  "aria-hidden": "true",
2799
2816
  role: "img",
2800
2817
  className: "iconify iconify--ri",
2801
2818
  preserveAspectRatio: "xMidYMid meet",
2802
2819
  viewBox: "0 0 24 24",
2803
- children: /* @__PURE__ */ _jsx27("path", {
2820
+ children: /* @__PURE__ */ _jsx28("path", {
2804
2821
  fill: "currentColor",
2805
2822
  d: "m12.344 17.963l-1.688 1.074l-2.131-3.35c-.44 1.402-1.172 2.665-2.139 3.825c-.402.483-.82.918-1.301 1.375c-.155.147-.775.717-.878.82l-1.414-1.414c.139-.139.787-.735.915-.856c.43-.408.795-.79 1.142-1.206c1.266-1.518 2.03-3.21 2.137-5.231H3v-2h4V7h-.868c-.689 1.266-1.558 2.222-2.618 2.857L2.486 8.143c1.395-.838 2.425-2.604 3.038-5.36l1.952.434c-.14.633-.303 1.227-.489 1.783H11.5v2H9v4h2.5v2H9.185l3.159 4.963zm3.838-.07L17.298 17H19V7h-4v10h.736l.446.893zM13 5h8v14h-3l-2.5 2l-1-2H13V5z"
2806
2823
  })
2807
2824
  }),
2808
- bilibili: /* @__PURE__ */ _jsx27("svg", {
2825
+ bilibili: /* @__PURE__ */ _jsx28("svg", {
2809
2826
  xmlns: "http://www.w3.org/2000/svg",
2810
2827
  "aria-hidden": "true",
2811
2828
  role: "img",
2812
2829
  className: "iconify iconify--ri",
2813
2830
  preserveAspectRatio: "xMidYMid meet",
2814
2831
  viewBox: "0 0 24 24",
2815
- children: /* @__PURE__ */ _jsx27("path", {
2832
+ children: /* @__PURE__ */ _jsx28("path", {
2816
2833
  fill: "currentColor",
2817
2834
  d: "M18.223 3.086a1.25 1.25 0 0 1 0 1.768L17.08 5.996h1.17A3.75 3.75 0 0 1 22 9.747v7.5a3.75 3.75 0 0 1-3.75 3.75H5.75A3.75 3.75 0 0 1 2 17.247v-7.5a3.75 3.75 0 0 1 3.75-3.75h1.166L5.775 4.855a1.25 1.25 0 1 1 1.767-1.768l2.652 2.652c.079.079.145.165.198.257h3.213c.053-.092.12-.18.199-.258l2.651-2.652a1.25 1.25 0 0 1 1.768 0zm.027 5.42H5.75a1.25 1.25 0 0 0-1.247 1.157l-.003.094v7.5c0 .659.51 1.199 1.157 1.246l.093.004h12.5a1.25 1.25 0 0 0 1.247-1.157l.003-.093v-7.5c0-.69-.56-1.25-1.25-1.25zm-10 2.5c.69 0 1.25.56 1.25 1.25v1.25a1.25 1.25 0 1 1-2.5 0v-1.25c0-.69.56-1.25 1.25-1.25zm7.5 0c.69 0 1.25.56 1.25 1.25v1.25a1.25 1.25 0 1 1-2.5 0v-1.25c0-.69.56-1.25 1.25-1.25z"
2818
2835
  })
2819
2836
  }),
2820
- lark: /* @__PURE__ */ _jsx27("svg", {
2837
+ lark: /* @__PURE__ */ _jsx28("svg", {
2821
2838
  xmlns: "http://www.w3.org/2000/svg",
2822
2839
  width: "48",
2823
2840
  height: "48",
2824
2841
  viewBox: "0 0 48 48",
2825
- children: /* @__PURE__ */ _jsxs15("g", {
2842
+ children: /* @__PURE__ */ _jsxs16("g", {
2826
2843
  fillRule: "evenodd",
2827
2844
  clipRule: "evenodd",
2828
2845
  children: [
2829
- /* @__PURE__ */ _jsx27("path", {
2846
+ /* @__PURE__ */ _jsx28("path", {
2830
2847
  d: "M41.0716 5.99409L3.31071 16.5187L12.3856 25.8126L20.7998 25.9594L30.4827 16.5187C30.2266 15.9943 30.0985 15.5552 30.0985 15.2013C30.0985 14.4074 30.4104 13.7786 30.8947 13.333C31.7241 12.57 32.7222 12.4558 33.8889 12.9905L41.0716 5.99409Z"
2831
2848
  }),
2832
- /* @__PURE__ */ _jsx27("path", {
2849
+ /* @__PURE__ */ _jsx28("path", {
2833
2850
  d: "M42.1021 6.72842L31.5775 44.4893L22.2836 35.4144L22.1367 27.0002L31.5115 17.4816C32.0195 17.8454 32.5743 18.0105 33.1759 17.9769C34.0784 17.9264 34.6614 17.3813 34.9349 17.0602C35.2083 16.7392 35.5293 16.2051 35.5025 15.4113C35.4847 14.8821 35.3109 14.3941 34.9812 13.9472L42.1021 6.72842Z"
2834
2851
  })
2835
2852
  ]
@@ -2838,7 +2855,7 @@ var presetIcons_default = {
2838
2855
  };
2839
2856
 
2840
2857
  // src/theme-default/components/SocialLinks/LinkContent.tsx
2841
- function _define_property16(obj, key, value) {
2858
+ function _define_property15(obj, key, value) {
2842
2859
  if (key in obj) {
2843
2860
  Object.defineProperty(obj, key, {
2844
2861
  value,
@@ -2851,7 +2868,7 @@ function _define_property16(obj, key, value) {
2851
2868
  }
2852
2869
  return obj;
2853
2870
  }
2854
- function _object_spread16(target) {
2871
+ function _object_spread15(target) {
2855
2872
  for (var i = 1; i < arguments.length; i++) {
2856
2873
  var source = arguments[i] != null ? arguments[i] : {};
2857
2874
  var ownKeys36 = Object.keys(source);
@@ -2861,7 +2878,7 @@ function _object_spread16(target) {
2861
2878
  }));
2862
2879
  }
2863
2880
  ownKeys36.forEach(function(key) {
2864
- _define_property16(target, key, source[key]);
2881
+ _define_property15(target, key, source[key]);
2865
2882
  });
2866
2883
  }
2867
2884
  return target;
@@ -2871,13 +2888,13 @@ var LinkContent = (props) => {
2871
2888
  const { icon, mode = "link", content } = link;
2872
2889
  const IconComp = typeof icon === "object" ? (
2873
2890
  // eslint-disable-next-line react/no-danger
2874
- /* @__PURE__ */ _jsx28("div", {
2891
+ /* @__PURE__ */ _jsx29("div", {
2875
2892
  dangerouslySetInnerHTML: {
2876
2893
  __html: icon.svg
2877
2894
  }
2878
2895
  })
2879
2896
  ) : presetIcons_default[icon];
2880
- const [contentVisible, setContentVisible] = useState6(false);
2897
+ const [contentVisible, setContentVisible] = useState8(false);
2881
2898
  const mouseEnterIcon = () => {
2882
2899
  setContentVisible(true);
2883
2900
  };
@@ -2885,31 +2902,31 @@ var LinkContent = (props) => {
2885
2902
  setContentVisible(false);
2886
2903
  };
2887
2904
  if (mode === "link") {
2888
- return /* @__PURE__ */ _jsx28("a", {
2905
+ return /* @__PURE__ */ _jsx29("a", {
2889
2906
  href: content,
2890
2907
  target: "_blank",
2891
2908
  rel: "noopener noreferrer",
2892
2909
  className: "social-links",
2893
- children: /* @__PURE__ */ _jsx28("div", {
2910
+ children: /* @__PURE__ */ _jsx29("div", {
2894
2911
  className: `${index_module_default12.socialLinksIcon}`,
2895
2912
  children: IconComp
2896
2913
  })
2897
2914
  }, content);
2898
2915
  }
2899
2916
  if (mode === "text") {
2900
- return /* @__PURE__ */ _jsxs16("div", {
2917
+ return /* @__PURE__ */ _jsxs17("div", {
2901
2918
  className: `${index_module_default12.socialLinksIcon} cursor-pointer relative mx-3`,
2902
2919
  onMouseEnter: mouseEnterIcon,
2903
2920
  onMouseLeave: mouseLeavePopper,
2904
2921
  children: [
2905
2922
  IconComp,
2906
- contentVisible ? /* @__PURE__ */ _jsx28("div", {
2907
- style: _object_spread16({
2923
+ contentVisible ? /* @__PURE__ */ _jsx29("div", {
2924
+ style: _object_spread15({
2908
2925
  boxShadow: "var(--rp-shadow-3)",
2909
2926
  border: "1px solid var(--rp-c-divider-light)"
2910
2927
  }, popperStyle),
2911
2928
  className: "z-1 p-3 w-50 absolute right-0 bg-white dark:bg-dark",
2912
- children: /* @__PURE__ */ _jsx28("div", {
2929
+ children: /* @__PURE__ */ _jsx29("div", {
2913
2930
  className: "text-md",
2914
2931
  children: content
2915
2932
  })
@@ -2918,18 +2935,18 @@ var LinkContent = (props) => {
2918
2935
  });
2919
2936
  }
2920
2937
  if (mode === "img") {
2921
- return /* @__PURE__ */ _jsxs16("div", {
2938
+ return /* @__PURE__ */ _jsxs17("div", {
2922
2939
  className: `${index_module_default12.socialLinksIcon} cursor-pointer relative`,
2923
2940
  onMouseEnter: mouseEnterIcon,
2924
2941
  onMouseLeave: mouseLeavePopper,
2925
2942
  children: [
2926
2943
  IconComp,
2927
- contentVisible ? /* @__PURE__ */ _jsx28("div", {
2944
+ contentVisible ? /* @__PURE__ */ _jsx29("div", {
2928
2945
  className: "break-all z-1 p-3 w-50 absolute right-0 rounded-xl",
2929
- style: _object_spread16({
2946
+ style: _object_spread15({
2930
2947
  boxShadow: "var(--rp-shadow-3)"
2931
2948
  }, popperStyle),
2932
- children: /* @__PURE__ */ _jsx28("img", {
2949
+ children: /* @__PURE__ */ _jsx29("img", {
2933
2950
  src: content,
2934
2951
  alt: "img"
2935
2952
  })
@@ -2937,44 +2954,44 @@ var LinkContent = (props) => {
2937
2954
  ]
2938
2955
  });
2939
2956
  }
2940
- return /* @__PURE__ */ _jsx28("div", {});
2957
+ return /* @__PURE__ */ _jsx29("div", {});
2941
2958
  };
2942
2959
 
2943
2960
  // src/theme-default/components/SocialLinks/ShownLinks.tsx
2944
2961
  var ShownLinks = (props) => {
2945
2962
  const { links, moreIconVisible = false, mouseEnter } = props;
2946
- return /* @__PURE__ */ _jsxs17(_Fragment2, {
2963
+ return /* @__PURE__ */ _jsxs18(_Fragment2, {
2947
2964
  children: [
2948
- /* @__PURE__ */ _jsx29("div", {
2965
+ /* @__PURE__ */ _jsx30("div", {
2949
2966
  className: "flex-center h-full gap-x-4 transition-colors duration-300 md:mr-2",
2950
- children: links.map((item, index) => /* @__PURE__ */ _jsx29(LinkContent, {
2967
+ children: links.map((item, index) => /* @__PURE__ */ _jsx30(LinkContent, {
2951
2968
  link: item,
2952
2969
  popperStyle: {
2953
2970
  top: "2.5rem"
2954
2971
  }
2955
2972
  }, index))
2956
2973
  }),
2957
- moreIconVisible ? /* @__PURE__ */ _jsx29("div", {
2974
+ moreIconVisible ? /* @__PURE__ */ _jsx30("div", {
2958
2975
  className: "md:ml-1",
2959
2976
  onMouseEnter: mouseEnter,
2960
- children: /* @__PURE__ */ _jsx29(arrow_down_default, {})
2977
+ children: /* @__PURE__ */ _jsx30(arrow_down_default, {})
2961
2978
  }) : null
2962
2979
  ]
2963
2980
  });
2964
2981
  };
2965
2982
 
2966
2983
  // src/theme-default/components/SocialLinks/HiddenLinks.tsx
2967
- import { jsx as _jsx30 } from "react/jsx-runtime";
2984
+ import { jsx as _jsx31 } from "react/jsx-runtime";
2968
2985
  var HiddenLinks = (props) => {
2969
2986
  const { links } = props;
2970
- return /* @__PURE__ */ _jsx30("div", {
2987
+ return /* @__PURE__ */ _jsx31("div", {
2971
2988
  style: {
2972
2989
  boxShadow: "var(--rp-shadow-3)",
2973
2990
  marginRight: "-2px",
2974
2991
  border: "1px solid var(--rp-c-divider-light)"
2975
2992
  },
2976
2993
  className: "absolute top-13 right-0 z-1 p-3 w-32 rounded-xl bg-white flex flex-wrap gap-4",
2977
- children: links.map((item) => /* @__PURE__ */ _jsx30(LinkContent, {
2994
+ children: links.map((item) => /* @__PURE__ */ _jsx31(LinkContent, {
2978
2995
  link: item,
2979
2996
  popperStyle: {
2980
2997
  top: "1.25rem"
@@ -2995,17 +3012,17 @@ var SocialLinks = ({ socialLinks }) => {
2995
3012
  hiddenLinks.push(item);
2996
3013
  }
2997
3014
  });
2998
- const [moreLinksVisible, setMoreLinksVisible] = useState7(false);
2999
- return /* @__PURE__ */ _jsxs18("div", {
3015
+ const [moreLinksVisible, setMoreLinksVisible] = useState9(false);
3016
+ return /* @__PURE__ */ _jsxs19("div", {
3000
3017
  className: `social-links ${index_module_default12.menuItem} flex-center relative`,
3001
3018
  onMouseLeave: () => setMoreLinksVisible(false),
3002
3019
  children: [
3003
- /* @__PURE__ */ _jsx31(ShownLinks, {
3020
+ /* @__PURE__ */ _jsx32(ShownLinks, {
3004
3021
  links: shownLinks,
3005
3022
  moreIconVisible: moreThanThree,
3006
3023
  mouseEnter: () => setMoreLinksVisible(true)
3007
3024
  }),
3008
- moreLinksVisible ? /* @__PURE__ */ _jsx31(HiddenLinks, {
3025
+ moreLinksVisible ? /* @__PURE__ */ _jsx32(HiddenLinks, {
3009
3026
  links: hiddenLinks
3010
3027
  }) : null
3011
3028
  ]
@@ -3016,8 +3033,8 @@ var SocialLinks = ({ socialLinks }) => {
3016
3033
  var index_module_default13 = { "navScreen": "navScreen_8624f", "active": "active_8624f", "container": "container_8624f", "navMenu": "navMenu_8624f", "navMenuItem": "navMenuItem_8624f", "navAppearance": "navAppearance_8624f", "socialAndAppearance": "socialAndAppearance_8624f" };
3017
3034
 
3018
3035
  // src/theme-default/components/NavScreen/index.tsx
3019
- import { NoSSR, ThemeContext as ThemeContext2 } from "@/runtime";
3020
- function _define_property17(obj, key, value) {
3036
+ import { NoSSR, useLang as useLang2, useVersion as useVersion2 } from "@/runtime";
3037
+ function _define_property16(obj, key, value) {
3021
3038
  if (key in obj) {
3022
3039
  Object.defineProperty(obj, key, {
3023
3040
  value,
@@ -3030,7 +3047,7 @@ function _define_property17(obj, key, value) {
3030
3047
  }
3031
3048
  return obj;
3032
3049
  }
3033
- function _object_spread17(target) {
3050
+ function _object_spread16(target) {
3034
3051
  for (var i = 1; i < arguments.length; i++) {
3035
3052
  var source = arguments[i] != null ? arguments[i] : {};
3036
3053
  var ownKeys36 = Object.keys(source);
@@ -3040,7 +3057,7 @@ function _object_spread17(target) {
3040
3057
  }));
3041
3058
  }
3042
3059
  ownKeys36.forEach(function(key) {
3043
- _define_property17(target, key, source[key]);
3060
+ _define_property16(target, key, source[key]);
3044
3061
  });
3045
3062
  }
3046
3063
  return target;
@@ -3070,19 +3087,20 @@ function _object_spread_props11(target, source) {
3070
3087
  return target;
3071
3088
  }
3072
3089
  var NavScreenTranslations = ({ translationMenuData }) => {
3073
- return /* @__PURE__ */ _jsx32("div", {
3090
+ return /* @__PURE__ */ _jsx33("div", {
3074
3091
  className: `${index_module_default13.navTranslations} flex text-sm font-bold justify-center`,
3075
- children: /* @__PURE__ */ _jsx32("div", {
3092
+ children: /* @__PURE__ */ _jsx33("div", {
3076
3093
  className: "mx-1.5 my-1",
3077
- children: /* @__PURE__ */ _jsx32(NavScreenMenuGroup, _object_spread17({}, translationMenuData))
3094
+ children: /* @__PURE__ */ _jsx33(NavScreenMenuGroup, _object_spread16({}, translationMenuData))
3078
3095
  })
3079
3096
  });
3080
3097
  };
3081
3098
  function NavScreen(props) {
3082
3099
  var _siteData_themeConfig, _localesData_find;
3083
- const { isScreenOpen, localeData, siteData: siteData2, pathname, setLogo } = props;
3100
+ const { isScreenOpen, localeData, siteData: siteData2, pathname } = props;
3101
+ const currentVersion = useVersion2();
3102
+ const currentLang = useLang2();
3084
3103
  const screen = useRef4(null);
3085
- const { theme } = useContext2(ThemeContext2);
3086
3104
  const localesData = siteData2.themeConfig.locales || [];
3087
3105
  const hasMultiLanguage = localesData.length > 1;
3088
3106
  const menuItems = localeData.nav || [];
@@ -3090,9 +3108,10 @@ function NavScreen(props) {
3090
3108
  const socialLinks = (siteData2 === null || siteData2 === void 0 ? void 0 : (_siteData_themeConfig = siteData2.themeConfig) === null || _siteData_themeConfig === void 0 ? void 0 : _siteData_themeConfig.socialLinks) || [];
3091
3109
  const hasSocialLinks = socialLinks.length > 0;
3092
3110
  const langs = localesData.map((item) => item.lang || "zh") || [];
3093
- const { base, logo } = siteData2;
3111
+ const { base, lang: defaultLang, multiVersion } = siteData2;
3112
+ const { default: defaultVersion } = multiVersion;
3094
3113
  const translationMenuData = hasMultiLanguage ? {
3095
- text: /* @__PURE__ */ _jsx32(translator_default, {
3114
+ text: /* @__PURE__ */ _jsx33(translator_default, {
3096
3115
  style: {
3097
3116
  width: "18px",
3098
3117
  height: "18px"
@@ -3100,43 +3119,46 @@ function NavScreen(props) {
3100
3119
  }),
3101
3120
  items: localesData.map((item) => ({
3102
3121
  text: item === null || item === void 0 ? void 0 : item.label,
3103
- link: `/${item.lang}`
3122
+ link: replaceLang(pathname, {
3123
+ current: currentLang,
3124
+ target: item.lang,
3125
+ default: defaultLang
3126
+ }, {
3127
+ current: currentVersion,
3128
+ default: defaultVersion
3129
+ }, base)
3104
3130
  })),
3105
3131
  activeValue: (_localesData_find = localesData.find((item) => item.lang === localeData.lang)) === null || _localesData_find === void 0 ? void 0 : _localesData_find.label
3106
3132
  } : null;
3107
3133
  const NavScreenAppearance = () => {
3108
- return /* @__PURE__ */ _jsx32("div", {
3134
+ return /* @__PURE__ */ _jsx33("div", {
3109
3135
  className: `mt-2 ${index_module_default13.navAppearance} flex justify-center`,
3110
- children: /* @__PURE__ */ _jsx32(NoSSR, {
3111
- children: /* @__PURE__ */ _jsx32(SwitchAppearance, {
3112
- onClick: () => {
3113
- setLogo(getLogoUrl(logo, theme === "dark" ? "light" : "dark"));
3114
- }
3115
- })
3136
+ children: /* @__PURE__ */ _jsx33(NoSSR, {
3137
+ children: /* @__PURE__ */ _jsx33(SwitchAppearance, {})
3116
3138
  })
3117
3139
  });
3118
3140
  };
3119
3141
  const NavScreenMenu = ({ menuItems: menuItems2 }) => {
3120
- return /* @__PURE__ */ _jsx32("div", {
3142
+ return /* @__PURE__ */ _jsx33("div", {
3121
3143
  className: index_module_default13.navMenu,
3122
- children: menuItems2.map((item, index) => {
3123
- return /* @__PURE__ */ _jsx32("div", {
3144
+ children: menuItems2.map((item) => {
3145
+ return /* @__PURE__ */ _jsx33("div", {
3124
3146
  className: `${index_module_default13.navMenuItem} w-full`,
3125
- children: "link" in item ? /* @__PURE__ */ _jsx32(NavMenuSingleItem, _object_spread17({
3147
+ children: "link" in item ? /* @__PURE__ */ _jsx33(NavMenuSingleItem, _object_spread16({
3126
3148
  pathname,
3127
3149
  base,
3128
3150
  langs
3129
- }, item), index) : /* @__PURE__ */ _jsx32("div", {
3151
+ }, item), item.text) : /* @__PURE__ */ _jsx33("div", {
3130
3152
  className: "mx-3 last:mr-0",
3131
- children: /* @__PURE__ */ _jsx32(NavScreenMenuGroup, _object_spread_props11(_object_spread17({}, item), {
3153
+ children: /* @__PURE__ */ _jsx33(NavScreenMenuGroup, _object_spread_props11(_object_spread16({}, item), {
3132
3154
  items: "items" in item ? item.items : item
3133
3155
  }))
3134
- }, index)
3135
- }, index);
3156
+ }, item.text)
3157
+ }, item.text);
3136
3158
  })
3137
3159
  });
3138
3160
  };
3139
- useEffect10(() => {
3161
+ useEffect12(() => {
3140
3162
  screen.current && isScreenOpen && disableBodyScroll(screen.current, {
3141
3163
  reserveScrollBarGap: true
3142
3164
  });
@@ -3146,24 +3168,24 @@ function NavScreen(props) {
3146
3168
  }, [
3147
3169
  isScreenOpen
3148
3170
  ]);
3149
- return /* @__PURE__ */ _jsx32("div", {
3171
+ return /* @__PURE__ */ _jsx33("div", {
3150
3172
  className: `${index_module_default13.navScreen} ${isScreenOpen ? index_module_default13.active : ""}`,
3151
3173
  ref: screen,
3152
3174
  id: "navScreen",
3153
- children: /* @__PURE__ */ _jsxs19("div", {
3175
+ children: /* @__PURE__ */ _jsxs20("div", {
3154
3176
  className: index_module_default13.container,
3155
3177
  children: [
3156
- /* @__PURE__ */ _jsx32(NavScreenMenu, {
3178
+ /* @__PURE__ */ _jsx33(NavScreenMenu, {
3157
3179
  menuItems
3158
3180
  }),
3159
- /* @__PURE__ */ _jsxs19("div", {
3181
+ /* @__PURE__ */ _jsxs20("div", {
3160
3182
  className: "flex-center flex-col gap-2",
3161
3183
  children: [
3162
- hasAppearanceSwitch && /* @__PURE__ */ _jsx32(NavScreenAppearance, {}),
3163
- hasMultiLanguage && /* @__PURE__ */ _jsx32(NavScreenTranslations, {
3184
+ hasAppearanceSwitch && /* @__PURE__ */ _jsx33(NavScreenAppearance, {}),
3185
+ hasMultiLanguage && /* @__PURE__ */ _jsx33(NavScreenTranslations, {
3164
3186
  translationMenuData
3165
3187
  }),
3166
- hasSocialLinks && /* @__PURE__ */ _jsx32(SocialLinks, {
3188
+ hasSocialLinks && /* @__PURE__ */ _jsx33(SocialLinks, {
3167
3189
  socialLinks
3168
3190
  })
3169
3191
  ]
@@ -3174,9 +3196,9 @@ function NavScreen(props) {
3174
3196
  }
3175
3197
 
3176
3198
  // src/theme-default/logic/useNav.ts
3177
- import { useState as useState8 } from "react";
3199
+ import { useState as useState10 } from "react";
3178
3200
  function useNav() {
3179
- const [isScreenOpen, setIsScreenOpen] = useState8(false);
3201
+ const [isScreenOpen, setIsScreenOpen] = useState10(false);
3180
3202
  function openScreen() {
3181
3203
  setIsScreenOpen(true);
3182
3204
  window.addEventListener("resize", closeScreenOnTabletWindow);
@@ -3204,9 +3226,9 @@ function useNav() {
3204
3226
  }
3205
3227
 
3206
3228
  // src/theme-default/assets/small-menu.svg
3207
- import { jsx as _jsx33, jsxs as _jsxs20 } from "react/jsx-runtime";
3229
+ import { jsx as _jsx34, jsxs as _jsxs21 } from "react/jsx-runtime";
3208
3230
  import * as React12 from "react";
3209
- function _define_property18(obj, key, value) {
3231
+ function _define_property17(obj, key, value) {
3210
3232
  if (key in obj) {
3211
3233
  Object.defineProperty(obj, key, {
3212
3234
  value,
@@ -3219,7 +3241,7 @@ function _define_property18(obj, key, value) {
3219
3241
  }
3220
3242
  return obj;
3221
3243
  }
3222
- function _object_spread18(target) {
3244
+ function _object_spread17(target) {
3223
3245
  for (var i = 1; i < arguments.length; i++) {
3224
3246
  var source = arguments[i] != null ? arguments[i] : {};
3225
3247
  var ownKeys36 = Object.keys(source);
@@ -3229,7 +3251,7 @@ function _object_spread18(target) {
3229
3251
  }));
3230
3252
  }
3231
3253
  ownKeys36.forEach(function(key) {
3232
- _define_property18(target, key, source[key]);
3254
+ _define_property17(target, key, source[key]);
3233
3255
  });
3234
3256
  }
3235
3257
  return target;
@@ -3258,25 +3280,25 @@ function _object_spread_props12(target, source) {
3258
3280
  }
3259
3281
  return target;
3260
3282
  }
3261
- var SvgSmallMenu = (props) => /* @__PURE__ */ _jsxs20("svg", _object_spread_props12(_object_spread18({
3283
+ var SvgSmallMenu = (props) => /* @__PURE__ */ _jsxs21("svg", _object_spread_props12(_object_spread17({
3262
3284
  xmlns: "http://www.w3.org/2000/svg",
3263
3285
  width: 32,
3264
3286
  height: 32
3265
3287
  }, props), {
3266
3288
  children: [
3267
- /* @__PURE__ */ _jsx33("circle", {
3289
+ /* @__PURE__ */ _jsx34("circle", {
3268
3290
  cx: 8,
3269
3291
  cy: 16,
3270
3292
  r: 2,
3271
3293
  fill: "currentColor"
3272
3294
  }),
3273
- /* @__PURE__ */ _jsx33("circle", {
3295
+ /* @__PURE__ */ _jsx34("circle", {
3274
3296
  cx: 16,
3275
3297
  cy: 16,
3276
3298
  r: 2,
3277
3299
  fill: "currentColor"
3278
3300
  }),
3279
- /* @__PURE__ */ _jsx33("circle", {
3301
+ /* @__PURE__ */ _jsx34("circle", {
3280
3302
  cx: 24,
3281
3303
  cy: 16,
3282
3304
  r: 2,
@@ -3291,21 +3313,20 @@ var index_module_default14 = { "navHamburger": "navHamburger_2498a", "container"
3291
3313
 
3292
3314
  // src/theme-default/components/NavHambmger/index.tsx
3293
3315
  function NavHamburger(props) {
3294
- const { localeData, siteData: siteData2, pathname, setLogo } = props;
3316
+ const { localeData, siteData: siteData2, pathname } = props;
3295
3317
  const { isScreenOpen, toggleScreen } = useNav();
3296
- return /* @__PURE__ */ _jsxs21(Fragment2, {
3318
+ return /* @__PURE__ */ _jsxs22(Fragment2, {
3297
3319
  children: [
3298
- /* @__PURE__ */ _jsx34(NavScreen, {
3320
+ /* @__PURE__ */ _jsx35(NavScreen, {
3299
3321
  isScreenOpen,
3300
3322
  localeData,
3301
3323
  siteData: siteData2,
3302
- pathname,
3303
- setLogo
3324
+ pathname
3304
3325
  }),
3305
- /* @__PURE__ */ _jsx34("button", {
3326
+ /* @__PURE__ */ _jsx35("button", {
3306
3327
  onClick: toggleScreen,
3307
3328
  className: `${isScreenOpen ? index_module_default14.active : ""} ${index_module_default14.navHamburger} text-gray-500`,
3308
- children: /* @__PURE__ */ _jsx34(small_menu_default, {
3329
+ children: /* @__PURE__ */ _jsx35(small_menu_default, {
3309
3330
  fill: "currentColor"
3310
3331
  })
3311
3332
  })
@@ -3314,10 +3335,10 @@ function NavHamburger(props) {
3314
3335
  }
3315
3336
 
3316
3337
  // src/theme-default/components/Nav/NavMenuGroup.tsx
3317
- import { jsx as _jsx35, jsxs as _jsxs22, Fragment as _Fragment3 } from "react/jsx-runtime";
3318
- import { useState as useState9 } from "react";
3338
+ import { jsx as _jsx36, jsxs as _jsxs23, Fragment as _Fragment3 } from "react/jsx-runtime";
3339
+ import { useState as useState11 } from "react";
3319
3340
  import { withoutBase as withoutBase2 } from "@rspress/shared";
3320
- function _define_property19(obj, key, value) {
3341
+ function _define_property18(obj, key, value) {
3321
3342
  if (key in obj) {
3322
3343
  Object.defineProperty(obj, key, {
3323
3344
  value,
@@ -3330,7 +3351,7 @@ function _define_property19(obj, key, value) {
3330
3351
  }
3331
3352
  return obj;
3332
3353
  }
3333
- function _object_spread19(target) {
3354
+ function _object_spread18(target) {
3334
3355
  for (var i = 1; i < arguments.length; i++) {
3335
3356
  var source = arguments[i] != null ? arguments[i] : {};
3336
3357
  var ownKeys36 = Object.keys(source);
@@ -3340,7 +3361,7 @@ function _object_spread19(target) {
3340
3361
  }));
3341
3362
  }
3342
3363
  ownKeys36.forEach(function(key) {
3343
- _define_property19(target, key, source[key]);
3364
+ _define_property18(target, key, source[key]);
3344
3365
  });
3345
3366
  }
3346
3367
  return target;
@@ -3370,16 +3391,16 @@ function _object_spread_props13(target, source) {
3370
3391
  return target;
3371
3392
  }
3372
3393
  function ActiveGroupItem({ item }) {
3373
- return /* @__PURE__ */ _jsxs22("div", {
3394
+ return /* @__PURE__ */ _jsxs23("div", {
3374
3395
  className: "rounded-2xl my-1 flex",
3375
3396
  style: {
3376
3397
  padding: "0.4rem 1.5rem 0.4rem 0.75rem"
3377
3398
  },
3378
3399
  children: [
3379
- item.tag && /* @__PURE__ */ _jsx35(Tag, {
3400
+ item.tag && /* @__PURE__ */ _jsx36(Tag, {
3380
3401
  tag: item.tag
3381
3402
  }),
3382
- /* @__PURE__ */ _jsx35("span", {
3403
+ /* @__PURE__ */ _jsx36("span", {
3383
3404
  className: "text-brand",
3384
3405
  children: item.text
3385
3406
  })
@@ -3387,22 +3408,22 @@ function ActiveGroupItem({ item }) {
3387
3408
  }, item.link);
3388
3409
  }
3389
3410
  function NormalGroupItem({ item }) {
3390
- return /* @__PURE__ */ _jsx35("div", {
3411
+ return /* @__PURE__ */ _jsx36("div", {
3391
3412
  className: "font-medium my-1",
3392
- children: /* @__PURE__ */ _jsx35(Link, {
3413
+ children: /* @__PURE__ */ _jsx36(Link, {
3393
3414
  href: item.link,
3394
- children: /* @__PURE__ */ _jsx35("div", {
3415
+ children: /* @__PURE__ */ _jsx36("div", {
3395
3416
  className: "rounded-2xl hover:bg-mute",
3396
3417
  style: {
3397
3418
  padding: "0.4rem 1.5rem 0.4rem 0.75rem"
3398
3419
  },
3399
- children: /* @__PURE__ */ _jsxs22("div", {
3420
+ children: /* @__PURE__ */ _jsxs23("div", {
3400
3421
  className: "flex",
3401
3422
  children: [
3402
- item.tag && /* @__PURE__ */ _jsx35(Tag, {
3423
+ item.tag && /* @__PURE__ */ _jsx36(Tag, {
3403
3424
  tag: item.tag
3404
3425
  }),
3405
- /* @__PURE__ */ _jsx35("span", {
3426
+ /* @__PURE__ */ _jsx36("span", {
3406
3427
  children: item.text
3407
3428
  })
3408
3429
  ]
@@ -3413,22 +3434,22 @@ function NormalGroupItem({ item }) {
3413
3434
  }
3414
3435
  function NavMenuGroup(item) {
3415
3436
  const { activeValue, isTranslation, items: groupItems, base = "", link = "", pathname = "" } = item;
3416
- const [isOpen, setIsOpen] = useState9(false);
3437
+ const [isOpen, setIsOpen] = useState11(false);
3417
3438
  const renderLinkItem = (item2) => {
3418
3439
  const isLinkActive = new RegExp(item2.activeMatch || item2.link).test(withoutBase2(pathname, base));
3419
3440
  if (activeValue === item2.text || !activeValue && isLinkActive) {
3420
- return /* @__PURE__ */ _jsx35(ActiveGroupItem, {
3441
+ return /* @__PURE__ */ _jsx36(ActiveGroupItem, {
3421
3442
  item: item2
3422
3443
  }, item2.link);
3423
3444
  }
3424
- return /* @__PURE__ */ _jsx35(NormalGroupItem, {
3445
+ return /* @__PURE__ */ _jsx36(NormalGroupItem, {
3425
3446
  item: item2
3426
3447
  }, item2.link);
3427
3448
  };
3428
3449
  const renderGroup = (item2) => {
3429
- return /* @__PURE__ */ _jsxs22("div", {
3450
+ return /* @__PURE__ */ _jsxs23("div", {
3430
3451
  children: [
3431
- "link" in item2 ? renderLinkItem(item2) : /* @__PURE__ */ _jsx35("p", {
3452
+ "link" in item2 ? renderLinkItem(item2) : /* @__PURE__ */ _jsx36("p", {
3432
3453
  className: "font-bold text-gray-400 my-1 not:first:border",
3433
3454
  children: item2.text
3434
3455
  }),
@@ -3436,30 +3457,30 @@ function NavMenuGroup(item) {
3436
3457
  ]
3437
3458
  });
3438
3459
  };
3439
- return /* @__PURE__ */ _jsxs22("div", {
3460
+ return /* @__PURE__ */ _jsxs23("div", {
3440
3461
  className: "relative flex-center h-14",
3441
3462
  onMouseLeave: () => setIsOpen(false),
3442
3463
  children: [
3443
- /* @__PURE__ */ _jsx35("button", {
3464
+ /* @__PURE__ */ _jsx36("button", {
3444
3465
  onMouseEnter: () => setIsOpen(true),
3445
3466
  className: "nav-menu-group-button flex-center items-center font-medium text-sm text-text-1 hover:text-text-2 transition-colors duration-200",
3446
3467
  children: link ? (
3447
3468
  // @ts-expect-error item.text may be ReactElement
3448
- /* @__PURE__ */ _jsx35(NavMenuSingleItem, _object_spread_props13(_object_spread19({}, item), {
3449
- rightIcon: /* @__PURE__ */ _jsx35(down_default, {})
3469
+ /* @__PURE__ */ _jsx36(NavMenuSingleItem, _object_spread_props13(_object_spread18({}, item), {
3470
+ rightIcon: /* @__PURE__ */ _jsx36(down_default, {})
3450
3471
  }))
3451
- ) : /* @__PURE__ */ _jsxs22(_Fragment3, {
3472
+ ) : /* @__PURE__ */ _jsxs23(_Fragment3, {
3452
3473
  children: [
3453
- /* @__PURE__ */ _jsxs22("span", {
3474
+ /* @__PURE__ */ _jsxs23("span", {
3454
3475
  className: "text-sm font-medium flex",
3455
3476
  style: {
3456
3477
  marginRight: "2px"
3457
3478
  },
3458
3479
  children: [
3459
- /* @__PURE__ */ _jsx35(Tag, {
3480
+ /* @__PURE__ */ _jsx36(Tag, {
3460
3481
  tag: item.tag
3461
3482
  }),
3462
- isTranslation ? /* @__PURE__ */ _jsx35(translator_default, {
3483
+ isTranslation ? /* @__PURE__ */ _jsx36(translator_default, {
3463
3484
  style: {
3464
3485
  with: "18px",
3465
3486
  height: "18px"
@@ -3467,11 +3488,11 @@ function NavMenuGroup(item) {
3467
3488
  }) : item.text
3468
3489
  ]
3469
3490
  }),
3470
- /* @__PURE__ */ _jsx35(down_default, {})
3491
+ /* @__PURE__ */ _jsx36(down_default, {})
3471
3492
  ]
3472
3493
  })
3473
3494
  }),
3474
- /* @__PURE__ */ _jsx35("div", {
3495
+ /* @__PURE__ */ _jsx36("div", {
3475
3496
  className: "nav-menu-group-content absolute mx-0.8 transition-opacity duration-300",
3476
3497
  style: {
3477
3498
  opacity: isOpen ? 1 : 0,
@@ -3479,7 +3500,7 @@ function NavMenuGroup(item) {
3479
3500
  right: 0,
3480
3501
  top: "52px"
3481
3502
  },
3482
- children: /* @__PURE__ */ _jsx35("div", {
3503
+ children: /* @__PURE__ */ _jsx36("div", {
3483
3504
  className: "p-3 pr-2 w-full h-full max-h-100vh whitespace-nowrap",
3484
3505
  style: {
3485
3506
  boxShadow: "var(--rp-shadow-3)",
@@ -3489,7 +3510,7 @@ function NavMenuGroup(item) {
3489
3510
  background: "var(--rp-c-bg)"
3490
3511
  },
3491
3512
  children: groupItems.map((item2) => {
3492
- return /* @__PURE__ */ _jsx35("div", {
3513
+ return /* @__PURE__ */ _jsx36("div", {
3493
3514
  children: "items" in item2 ? renderGroup(item2) : renderLinkItem(item2)
3494
3515
  }, item2.text);
3495
3516
  })
@@ -3500,8 +3521,8 @@ function NavMenuGroup(item) {
3500
3521
  }
3501
3522
 
3502
3523
  // src/theme-default/components/Nav/index.tsx
3503
- import { ThemeContext as ThemeContext3, usePageData as usePageData11, useVersion as useVersion2, withBase as withBase8 } from "@/runtime";
3504
- function _define_property20(obj, key, value) {
3524
+ import { usePageData as usePageData12, useVersion as useVersion3 } from "@/runtime";
3525
+ function _define_property19(obj, key, value) {
3505
3526
  if (key in obj) {
3506
3527
  Object.defineProperty(obj, key, {
3507
3528
  value,
@@ -3514,7 +3535,7 @@ function _define_property20(obj, key, value) {
3514
3535
  }
3515
3536
  return obj;
3516
3537
  }
3517
- function _object_spread20(target) {
3538
+ function _object_spread19(target) {
3518
3539
  for (var i = 1; i < arguments.length; i++) {
3519
3540
  var source = arguments[i] != null ? arguments[i] : {};
3520
3541
  var ownKeys36 = Object.keys(source);
@@ -3524,7 +3545,7 @@ function _object_spread20(target) {
3524
3545
  }));
3525
3546
  }
3526
3547
  ownKeys36.forEach(function(key) {
3527
- _define_property20(target, key, source[key]);
3548
+ _define_property19(target, key, source[key]);
3528
3549
  });
3529
3550
  }
3530
3551
  return target;
@@ -3554,28 +3575,11 @@ function _object_spread_props14(target, source) {
3554
3575
  return target;
3555
3576
  }
3556
3577
  var DEFAULT_NAV_POSTION = "right";
3557
- var NavBarTitle = ({ title, langRoutePrefix, logo }) => {
3558
- return /* @__PURE__ */ _jsx36("div", {
3559
- className: `${index_module_default11.navBarTitle}`,
3560
- children: /* @__PURE__ */ _jsx36("a", {
3561
- href: withBase8(langRoutePrefix),
3562
- className: "flex items-center w-full h-full text-base font-semibold transition-opacity duration-300 hover:opacity-60",
3563
- children: logo ? /* @__PURE__ */ _jsx36("img", {
3564
- src: logo,
3565
- alt: "logo",
3566
- id: "logo",
3567
- className: "w-24 mr-4 rspress-logo"
3568
- }) : /* @__PURE__ */ _jsx36("span", {
3569
- children: title
3570
- })
3571
- })
3572
- });
3573
- };
3574
3578
  var NavTranslations = ({ translationMenuData }) => {
3575
- return /* @__PURE__ */ _jsx36("div", {
3576
- className: `translation ${index_module_default11.menuItem} flex text-sm font-bold items-center px-3 py-2`,
3577
- children: /* @__PURE__ */ _jsx36("div", {
3578
- children: /* @__PURE__ */ _jsx36(NavMenuGroup, _object_spread_props14(_object_spread20({}, translationMenuData), {
3579
+ return /* @__PURE__ */ _jsx37("div", {
3580
+ className: `translation ${index_module_default4.menuItem} flex text-sm font-bold items-center px-3 py-2`,
3581
+ children: /* @__PURE__ */ _jsx37("div", {
3582
+ children: /* @__PURE__ */ _jsx37(NavMenuGroup, _object_spread_props14(_object_spread19({}, translationMenuData), {
3579
3583
  isTranslation: true
3580
3584
  }))
3581
3585
  })
@@ -3584,13 +3588,13 @@ var NavTranslations = ({ translationMenuData }) => {
3584
3588
  function Nav2(props) {
3585
3589
  var _localeLanguages_find, _siteData_themeConfig;
3586
3590
  const { beforeNavTitle, afterNavTitle, beforeNav } = props;
3587
- const { siteData: siteData2, page } = usePageData11();
3588
- const { logo: rawLogo, base } = siteData2;
3589
- const { pathname } = useLocation5();
3590
- const { theme } = useContext3(ThemeContext3);
3591
+ const { siteData: siteData2, page } = usePageData12();
3592
+ const { base } = siteData2;
3593
+ const { pathname } = useLocation7();
3591
3594
  const localeData = useLocaleSiteData();
3592
- const currentVersion = useVersion2();
3593
- const [isMobile, setIsMobile] = useState10(false);
3595
+ const currentVersion = useVersion3();
3596
+ const [isMobile, setIsMobile] = useState12(false);
3597
+ const hiddenNav = useHiddenNav();
3594
3598
  const localeLanguages = Object.values(siteData2.themeConfig.locales || {});
3595
3599
  const hasMultiLanguage = localeLanguages.length > 1;
3596
3600
  const socialLinks = siteData2.themeConfig.socialLinks || [];
@@ -3599,11 +3603,10 @@ function Nav2(props) {
3599
3603
  const defaultVersion = siteData2.multiVersion.default || "";
3600
3604
  const { lang } = page;
3601
3605
  const langs = localeLanguages.map((item) => item.lang || "") || [];
3602
- const [logo, setLogo] = useState10(getLogoUrl(rawLogo, theme));
3603
3606
  const translationMenuData = hasMultiLanguage ? {
3604
3607
  items: localeLanguages.map((item) => ({
3605
3608
  text: item === null || item === void 0 ? void 0 : item.label,
3606
- link: replaceLang(pathname, {
3609
+ link: replaceLang2(pathname, {
3607
3610
  current: lang,
3608
3611
  target: item.lang,
3609
3612
  default: defaultLang
@@ -3614,27 +3617,22 @@ function Nav2(props) {
3614
3617
  })),
3615
3618
  activeValue: (_localeLanguages_find = localeLanguages.find((item) => lang === item.lang)) === null || _localeLanguages_find === void 0 ? void 0 : _localeLanguages_find.label
3616
3619
  } : null;
3617
- useEffect11(() => {
3618
- setLogo(getLogoUrl(rawLogo, theme));
3619
- }, [
3620
- theme
3621
- ]);
3622
- useEffect11(() => {
3620
+ useEffect13(() => {
3623
3621
  setIsMobile(isMobileDevice());
3624
3622
  }, []);
3625
3623
  const NavMenu = ({ menuItems: menuItems2 }) => {
3626
- return /* @__PURE__ */ _jsx36("div", {
3624
+ return /* @__PURE__ */ _jsx37("div", {
3627
3625
  className: "rspress-nav-menu menu h-14",
3628
3626
  children: menuItems2.map((item) => {
3629
- return "items" in item || Array.isArray(item) ? /* @__PURE__ */ _jsx36("div", {
3627
+ return "items" in item || Array.isArray(item) ? /* @__PURE__ */ _jsx37("div", {
3630
3628
  className: "mx-3 last:mr-0",
3631
- children: /* @__PURE__ */ _jsx36(NavMenuGroup, _object_spread_props14(_object_spread20({}, item), {
3629
+ children: /* @__PURE__ */ _jsx37(NavMenuGroup, _object_spread_props14(_object_spread19({}, item), {
3632
3630
  base,
3633
3631
  pathname,
3634
3632
  langs,
3635
3633
  items: "items" in item ? item.items : item
3636
3634
  }))
3637
- }, item.text) : /* @__PURE__ */ _jsx36(NavMenuSingleItem, _object_spread20({
3635
+ }, item.text) : /* @__PURE__ */ _jsx37(NavMenuSingleItem, _object_spread19({
3638
3636
  pathname,
3639
3637
  langs,
3640
3638
  base
@@ -3648,39 +3646,37 @@ function Nav2(props) {
3648
3646
  const leftMenuItems = menuItems.filter((item) => getPosition(item) === "left");
3649
3647
  const rightMenuItems = menuItems.filter((item) => getPosition(item) === "right");
3650
3648
  const hasSearch = (siteData2 === null || siteData2 === void 0 ? void 0 : (_siteData_themeConfig = siteData2.themeConfig) === null || _siteData_themeConfig === void 0 ? void 0 : _siteData_themeConfig.search) !== false;
3651
- var _localeData_title;
3652
- const title = (_localeData_title = localeData.title) !== null && _localeData_title !== void 0 ? _localeData_title : siteData2.title;
3653
3649
  const hasAppearanceSwitch = siteData2.themeConfig.darkMode !== false;
3654
3650
  const leftNav = () => {
3655
- return leftMenuItems.length > 0 ? /* @__PURE__ */ _jsx36("div", {
3656
- className: index_module_default11.leftNav,
3657
- children: /* @__PURE__ */ _jsx36(NavMenu, {
3651
+ return leftMenuItems.length > 0 ? /* @__PURE__ */ _jsx37("div", {
3652
+ className: index_module_default4.leftNav,
3653
+ children: /* @__PURE__ */ _jsx37(NavMenu, {
3658
3654
  menuItems: leftMenuItems
3659
3655
  })
3660
3656
  }) : null;
3661
3657
  };
3662
3658
  const rightNav = () => {
3663
- return /* @__PURE__ */ _jsxs23("div", {
3664
- className: index_module_default11.rightNav,
3659
+ return /* @__PURE__ */ _jsxs24("div", {
3660
+ className: index_module_default4.rightNav,
3665
3661
  children: [
3666
- hasSearch && /* @__PURE__ */ _jsx36("div", {
3662
+ hasSearch && /* @__PURE__ */ _jsx37("div", {
3667
3663
  className: "flex sm:flex-1 items-center sm:pl-4 sm:pr-2",
3668
- children: /* @__PURE__ */ _jsx36(Search, {})
3664
+ children: /* @__PURE__ */ _jsx37(Search, {})
3669
3665
  }),
3670
- /* @__PURE__ */ _jsx36(NavMenu, {
3666
+ /* @__PURE__ */ _jsx37(NavMenu, {
3671
3667
  menuItems: rightMenuItems
3672
3668
  }),
3673
- /* @__PURE__ */ _jsxs23("div", {
3669
+ /* @__PURE__ */ _jsxs24("div", {
3674
3670
  className: "flex-center flex-row",
3675
3671
  children: [
3676
- hasMultiLanguage && /* @__PURE__ */ _jsx36(NavTranslations, {
3672
+ hasMultiLanguage && /* @__PURE__ */ _jsx37(NavTranslations, {
3677
3673
  translationMenuData
3678
3674
  }),
3679
- hasAppearanceSwitch && /* @__PURE__ */ _jsx36("div", {
3675
+ hasAppearanceSwitch && /* @__PURE__ */ _jsx37("div", {
3680
3676
  className: "mx-2",
3681
- children: /* @__PURE__ */ _jsx36(SwitchAppearance, {})
3677
+ children: /* @__PURE__ */ _jsx37(SwitchAppearance, {})
3682
3678
  }),
3683
- hasSocialLinks && /* @__PURE__ */ _jsx36(SocialLinks, {
3679
+ hasSocialLinks && /* @__PURE__ */ _jsx37(SocialLinks, {
3684
3680
  socialLinks
3685
3681
  })
3686
3682
  ]
@@ -3688,40 +3684,30 @@ function Nav2(props) {
3688
3684
  ]
3689
3685
  });
3690
3686
  };
3691
- return /* @__PURE__ */ _jsxs23("header", {
3692
- className: "top-0 left-0 md:fixed w-full",
3693
- style: {
3694
- zIndex: "var(--rp-z-index-nav)",
3695
- background: "var(--rp-c-bg)"
3696
- },
3687
+ return /* @__PURE__ */ _jsxs24(_Fragment4, {
3697
3688
  children: [
3698
3689
  beforeNav,
3699
- /* @__PURE__ */ _jsx36("div", {
3700
- className: `${index_module_default11.navContainer} rspress-nav px-6`,
3701
- children: /* @__PURE__ */ _jsxs23("div", {
3702
- className: `${index_module_default11.container} flex justify-between items-center h-full`,
3690
+ /* @__PURE__ */ _jsx37("div", {
3691
+ className: `${index_module_default4.navContainer} sticky rspress-nav px-6 ${hiddenNav ? index_module_default4.hidden : ""}`,
3692
+ children: /* @__PURE__ */ _jsxs24("div", {
3693
+ className: `${index_module_default4.container} flex justify-between items-center h-full`,
3703
3694
  children: [
3704
3695
  beforeNavTitle,
3705
- /* @__PURE__ */ _jsx36(NavBarTitle, {
3706
- title,
3707
- langRoutePrefix: localeData.langRoutePrefix || "/",
3708
- logo
3709
- }),
3696
+ /* @__PURE__ */ _jsx37(NavBarTitle, {}),
3710
3697
  afterNavTitle,
3711
- /* @__PURE__ */ _jsxs23("div", {
3712
- className: `${index_module_default11.content} flex flex-1 justify-end items-center`,
3698
+ /* @__PURE__ */ _jsxs24("div", {
3699
+ className: `${index_module_default4.content} flex flex-1 justify-end items-center`,
3713
3700
  children: [
3714
3701
  leftNav(),
3715
3702
  rightNav(),
3716
- /* @__PURE__ */ _jsxs23("div", {
3717
- className: index_module_default11.mobileNavMenu,
3703
+ /* @__PURE__ */ _jsxs24("div", {
3704
+ className: index_module_default4.mobileNavMenu,
3718
3705
  children: [
3719
- isMobile && /* @__PURE__ */ _jsx36(Search, {}),
3720
- /* @__PURE__ */ _jsx36(NavHamburger, {
3706
+ isMobile && /* @__PURE__ */ _jsx37(Search, {}),
3707
+ /* @__PURE__ */ _jsx37(NavHamburger, {
3721
3708
  localeData,
3722
3709
  siteData: siteData2,
3723
- pathname,
3724
- setLogo
3710
+ pathname
3725
3711
  })
3726
3712
  ]
3727
3713
  })
@@ -3735,13 +3721,13 @@ function Nav2(props) {
3735
3721
  }
3736
3722
 
3737
3723
  // src/theme-default/components/Search/index.tsx
3738
- import { jsx as _jsx49, jsxs as _jsxs31, Fragment as _Fragment6 } from "react/jsx-runtime";
3739
- import { useState as useState13 } from "react";
3724
+ import { jsx as _jsx50, jsxs as _jsxs32, Fragment as _Fragment7 } from "react/jsx-runtime";
3725
+ import { useState as useState15 } from "react";
3740
3726
 
3741
3727
  // src/theme-default/components/Search/assets/search.svg
3742
- import { jsx as _jsx37 } from "react/jsx-runtime";
3728
+ import { jsx as _jsx38 } from "react/jsx-runtime";
3743
3729
  import * as React13 from "react";
3744
- function _define_property21(obj, key, value) {
3730
+ function _define_property20(obj, key, value) {
3745
3731
  if (key in obj) {
3746
3732
  Object.defineProperty(obj, key, {
3747
3733
  value,
@@ -3754,7 +3740,7 @@ function _define_property21(obj, key, value) {
3754
3740
  }
3755
3741
  return obj;
3756
3742
  }
3757
- function _object_spread21(target) {
3743
+ function _object_spread20(target) {
3758
3744
  for (var i = 1; i < arguments.length; i++) {
3759
3745
  var source = arguments[i] != null ? arguments[i] : {};
3760
3746
  var ownKeys36 = Object.keys(source);
@@ -3764,7 +3750,7 @@ function _object_spread21(target) {
3764
3750
  }));
3765
3751
  }
3766
3752
  ownKeys36.forEach(function(key) {
3767
- _define_property21(target, key, source[key]);
3753
+ _define_property20(target, key, source[key]);
3768
3754
  });
3769
3755
  }
3770
3756
  return target;
@@ -3793,12 +3779,12 @@ function _object_spread_props15(target, source) {
3793
3779
  }
3794
3780
  return target;
3795
3781
  }
3796
- var SvgSearch = (props) => /* @__PURE__ */ _jsx37("svg", _object_spread_props15(_object_spread21({
3782
+ var SvgSearch = (props) => /* @__PURE__ */ _jsx38("svg", _object_spread_props15(_object_spread20({
3797
3783
  width: 24,
3798
3784
  height: 24,
3799
3785
  viewBox: "0 0 32 32"
3800
3786
  }, props), {
3801
- children: /* @__PURE__ */ _jsx37("path", {
3787
+ children: /* @__PURE__ */ _jsx38("path", {
3802
3788
  fill: "var(--rp-c-gray)",
3803
3789
  d: "m29 27.586-7.552-7.552a11.018 11.018 0 1 0-1.414 1.414L27.586 29ZM4 13a9 9 0 1 1 9 9 9.01 9.01 0 0 1-9-9Z"
3804
3790
  })
@@ -3809,22 +3795,22 @@ var search_default = SvgSearch;
3809
3795
  var index_module_default15 = { "mask": "mask_f619e", "modal": "modal_f619e", "inputForm": "inputForm_f619e", "input": "input_f619e", "close": "close_f619e", "searchHits": "searchHits_f619e", "groupTitle": "groupTitle_f619e", "navSearchButton": "navSearchButton_f619e", "searchWord": "searchWord_f619e", "suggestItem": "suggestItem_f619e", "suggestItemContainer": "suggestItemContainer_f619e", "contentWrapper": "contentWrapper_f619e", "mark": "mark_f619e", "titleForContent": "titleForContent_f619e", "actionIcon": "actionIcon_f619e", "current": "current_f619e", "tabClassName": "tabClassName_f619e", "mobileNavSearchButton": "mobileNavSearchButton_f619e" };
3810
3796
 
3811
3797
  // src/theme-default/components/Search/SearchPanel.tsx
3812
- import { jsx as _jsx48, jsxs as _jsxs30, Fragment as _Fragment5 } from "react/jsx-runtime";
3798
+ import { jsx as _jsx49, jsxs as _jsxs31, Fragment as _Fragment6 } from "react/jsx-runtime";
3813
3799
  import debounce from "lodash-es/debounce";
3814
3800
  import groupBy from "lodash-es/groupBy";
3815
3801
  import { createPortal } from "react-dom";
3816
- import { useEffect as useEffect12, useRef as useRef5, useState as useState12 } from "react";
3802
+ import { useEffect as useEffect14, useRef as useRef5, useState as useState14 } from "react";
3817
3803
  import { onSearch } from "virtual-search-hooks";
3818
3804
 
3819
3805
  // src/theme-default/components/Tabs/index.tsx
3820
- import { jsx as _jsx38, jsxs as _jsxs24 } from "react/jsx-runtime";
3821
- import { useContext as useContext4, useState as useState11 } from "react";
3806
+ import { jsx as _jsx39, jsxs as _jsxs25 } from "react/jsx-runtime";
3807
+ import { useContext as useContext3, useState as useState13 } from "react";
3822
3808
 
3823
3809
  // src/theme-default/components/Tabs/index.module.scss
3824
3810
  var index_module_default16 = { "container": "container_7e0fb", "tab-list": "tab-list_7e0fb", "tabList": "tab-list_7e0fb", "tab": "tab_7e0fb", "not-selected": "not-selected_7e0fb", "notSelected": "not-selected_7e0fb", "selected": "selected_7e0fb" };
3825
3811
 
3826
3812
  // src/theme-default/components/Tabs/index.tsx
3827
- function _define_property22(obj, key, value) {
3813
+ function _define_property21(obj, key, value) {
3828
3814
  if (key in obj) {
3829
3815
  Object.defineProperty(obj, key, {
3830
3816
  value,
@@ -3837,7 +3823,7 @@ function _define_property22(obj, key, value) {
3837
3823
  }
3838
3824
  return obj;
3839
3825
  }
3840
- function _object_spread22(target) {
3826
+ function _object_spread21(target) {
3841
3827
  for (var i = 1; i < arguments.length; i++) {
3842
3828
  var source = arguments[i] != null ? arguments[i] : {};
3843
3829
  var ownKeys36 = Object.keys(source);
@@ -3847,7 +3833,7 @@ function _object_spread22(target) {
3847
3833
  }));
3848
3834
  }
3849
3835
  ownKeys36.forEach(function(key) {
3850
- _define_property22(target, key, source[key]);
3836
+ _define_property21(target, key, source[key]);
3851
3837
  });
3852
3838
  }
3853
3839
  return target;
@@ -3932,7 +3918,7 @@ function Tabs(props) {
3932
3918
  };
3933
3919
  });
3934
3920
  }
3935
- const { tabData, setTabData } = useContext4(TabDataContext);
3921
+ const { tabData, setTabData } = useContext3(TabDataContext);
3936
3922
  let defaultIndex = 0;
3937
3923
  const needSync = groupId && tabData[groupId] !== void 0;
3938
3924
  if (needSync) {
@@ -3947,25 +3933,25 @@ function Tabs(props) {
3947
3933
  return false;
3948
3934
  });
3949
3935
  }
3950
- const [activeIndex, setActiveIndex] = useState11(defaultIndex);
3951
- return /* @__PURE__ */ _jsxs24("div", {
3936
+ const [activeIndex, setActiveIndex] = useState13(defaultIndex);
3937
+ return /* @__PURE__ */ _jsxs25("div", {
3952
3938
  className: index_module_default16.container,
3953
3939
  children: [
3954
- /* @__PURE__ */ _jsx38("div", {
3940
+ /* @__PURE__ */ _jsx39("div", {
3955
3941
  className: tabContainerClassName,
3956
- children: tabValues.length ? /* @__PURE__ */ _jsx38("div", {
3942
+ children: tabValues.length ? /* @__PURE__ */ _jsx39("div", {
3957
3943
  className: index_module_default16.tabList,
3958
3944
  style: {
3959
3945
  justifyContent: tabPosition === "center" ? "center" : "flex-start"
3960
3946
  },
3961
3947
  children: tabValues.map((item, index) => {
3962
- return /* @__PURE__ */ _jsx38("div", {
3948
+ return /* @__PURE__ */ _jsx39("div", {
3963
3949
  className: `${index_module_default16.tab} ${activeIndex === index ? index_module_default16.selected : index_module_default16.notSelected}`,
3964
3950
  onClick: () => {
3965
3951
  onChange === null || onChange === void 0 ? void 0 : onChange(index);
3966
3952
  setActiveIndex(index);
3967
3953
  if (groupId) {
3968
- setTabData(_object_spread_props16(_object_spread22({}, tabData), {
3954
+ setTabData(_object_spread_props16(_object_spread21({}, tabData), {
3969
3955
  [groupId]: index
3970
3956
  }));
3971
3957
  }
@@ -3975,7 +3961,7 @@ function Tabs(props) {
3975
3961
  })
3976
3962
  }) : null
3977
3963
  }),
3978
- /* @__PURE__ */ _jsx38("div", {
3964
+ /* @__PURE__ */ _jsx39("div", {
3979
3965
  children: children[activeIndex]
3980
3966
  })
3981
3967
  ]
@@ -3985,16 +3971,16 @@ function Tab(_param) {
3985
3971
  var { children } = _param, props = _object_without_properties(_param, [
3986
3972
  "children"
3987
3973
  ]);
3988
- return /* @__PURE__ */ _jsx38("div", _object_spread_props16(_object_spread22({}, props), {
3974
+ return /* @__PURE__ */ _jsx39("div", _object_spread_props16(_object_spread21({}, props), {
3989
3975
  className: "rounded px-2",
3990
3976
  children
3991
3977
  }));
3992
3978
  }
3993
3979
 
3994
3980
  // src/theme-default/components/Search/assets/loading.svg
3995
- import { jsx as _jsx39, jsxs as _jsxs25 } from "react/jsx-runtime";
3981
+ import { jsx as _jsx40, jsxs as _jsxs26 } from "react/jsx-runtime";
3996
3982
  import * as React14 from "react";
3997
- function _define_property23(obj, key, value) {
3983
+ function _define_property22(obj, key, value) {
3998
3984
  if (key in obj) {
3999
3985
  Object.defineProperty(obj, key, {
4000
3986
  value,
@@ -4007,7 +3993,7 @@ function _define_property23(obj, key, value) {
4007
3993
  }
4008
3994
  return obj;
4009
3995
  }
4010
- function _object_spread23(target) {
3996
+ function _object_spread22(target) {
4011
3997
  for (var i = 1; i < arguments.length; i++) {
4012
3998
  var source = arguments[i] != null ? arguments[i] : {};
4013
3999
  var ownKeys36 = Object.keys(source);
@@ -4017,7 +4003,7 @@ function _object_spread23(target) {
4017
4003
  }));
4018
4004
  }
4019
4005
  ownKeys36.forEach(function(key) {
4020
- _define_property23(target, key, source[key]);
4006
+ _define_property22(target, key, source[key]);
4021
4007
  });
4022
4008
  }
4023
4009
  return target;
@@ -4046,41 +4032,41 @@ function _object_spread_props17(target, source) {
4046
4032
  }
4047
4033
  return target;
4048
4034
  }
4049
- var SvgLoading = (props) => /* @__PURE__ */ _jsx39("svg", _object_spread_props17(_object_spread23({
4035
+ var SvgLoading = (props) => /* @__PURE__ */ _jsx40("svg", _object_spread_props17(_object_spread22({
4050
4036
  width: 32,
4051
4037
  height: 32,
4052
4038
  viewBox: "0 0 24 24"
4053
4039
  }, props), {
4054
- children: /* @__PURE__ */ _jsxs25("g", {
4040
+ children: /* @__PURE__ */ _jsxs26("g", {
4055
4041
  fill: "none",
4056
4042
  stroke: "var(--rp-c-brand)",
4057
4043
  strokeLinecap: "round",
4058
4044
  strokeWidth: 2,
4059
4045
  children: [
4060
- /* @__PURE__ */ _jsx39("path", {
4046
+ /* @__PURE__ */ _jsx40("path", {
4061
4047
  strokeDasharray: 60,
4062
4048
  strokeDashoffset: 60,
4063
4049
  strokeOpacity: 0.3,
4064
4050
  d: "M12 3a9 9 0 1 1 0 18 9 9 0 0 1 0-18Z",
4065
- children: /* @__PURE__ */ _jsx39("animate", {
4051
+ children: /* @__PURE__ */ _jsx40("animate", {
4066
4052
  fill: "freeze",
4067
4053
  attributeName: "stroke-dashoffset",
4068
4054
  dur: "1.3s",
4069
4055
  values: "60;0"
4070
4056
  })
4071
4057
  }),
4072
- /* @__PURE__ */ _jsxs25("path", {
4058
+ /* @__PURE__ */ _jsxs26("path", {
4073
4059
  strokeDasharray: 15,
4074
4060
  strokeDashoffset: 15,
4075
4061
  d: "M12 3a9 9 0 0 1 9 9",
4076
4062
  children: [
4077
- /* @__PURE__ */ _jsx39("animate", {
4063
+ /* @__PURE__ */ _jsx40("animate", {
4078
4064
  fill: "freeze",
4079
4065
  attributeName: "stroke-dashoffset",
4080
4066
  dur: "0.3s",
4081
4067
  values: "15;0"
4082
4068
  }),
4083
- /* @__PURE__ */ _jsx39("animateTransform", {
4069
+ /* @__PURE__ */ _jsx40("animateTransform", {
4084
4070
  attributeName: "transform",
4085
4071
  dur: "1.5s",
4086
4072
  repeatCount: "indefinite",
@@ -4095,9 +4081,9 @@ var SvgLoading = (props) => /* @__PURE__ */ _jsx39("svg", _object_spread_props17
4095
4081
  var loading_default = SvgLoading;
4096
4082
 
4097
4083
  // src/theme-default/components/Search/assets/close.svg
4098
- import { jsx as _jsx40 } from "react/jsx-runtime";
4084
+ import { jsx as _jsx41 } from "react/jsx-runtime";
4099
4085
  import * as React15 from "react";
4100
- function _define_property24(obj, key, value) {
4086
+ function _define_property23(obj, key, value) {
4101
4087
  if (key in obj) {
4102
4088
  Object.defineProperty(obj, key, {
4103
4089
  value,
@@ -4110,7 +4096,7 @@ function _define_property24(obj, key, value) {
4110
4096
  }
4111
4097
  return obj;
4112
4098
  }
4113
- function _object_spread24(target) {
4099
+ function _object_spread23(target) {
4114
4100
  for (var i = 1; i < arguments.length; i++) {
4115
4101
  var source = arguments[i] != null ? arguments[i] : {};
4116
4102
  var ownKeys36 = Object.keys(source);
@@ -4120,7 +4106,7 @@ function _object_spread24(target) {
4120
4106
  }));
4121
4107
  }
4122
4108
  ownKeys36.forEach(function(key) {
4123
- _define_property24(target, key, source[key]);
4109
+ _define_property23(target, key, source[key]);
4124
4110
  });
4125
4111
  }
4126
4112
  return target;
@@ -4149,13 +4135,13 @@ function _object_spread_props18(target, source) {
4149
4135
  }
4150
4136
  return target;
4151
4137
  }
4152
- var SvgClose = (props) => /* @__PURE__ */ _jsx40("svg", _object_spread_props18(_object_spread24({
4138
+ var SvgClose = (props) => /* @__PURE__ */ _jsx41("svg", _object_spread_props18(_object_spread23({
4153
4139
  xmlns: "http://www.w3.org/2000/svg",
4154
4140
  width: 24,
4155
4141
  height: 24,
4156
4142
  viewBox: "0 0 32 32"
4157
4143
  }, props), {
4158
- children: /* @__PURE__ */ _jsx40("path", {
4144
+ children: /* @__PURE__ */ _jsx41("path", {
4159
4145
  fill: "currentColor",
4160
4146
  d: "M24 9.4 22.6 8 16 14.6 9.4 8 8 9.4l6.6 6.6L8 22.6 9.4 24l6.6-6.6 6.6 6.6 1.4-1.4-6.6-6.6L24 9.4z"
4161
4147
  })
@@ -4331,7 +4317,7 @@ function _class_private_method_init(obj, privateSet) {
4331
4317
  _check_private_redeclaration(obj, privateSet);
4332
4318
  privateSet.add(obj);
4333
4319
  }
4334
- function _define_property25(obj, key, value) {
4320
+ function _define_property24(obj, key, value) {
4335
4321
  if (key in obj) {
4336
4322
  Object.defineProperty(obj, key, {
4337
4323
  value,
@@ -4344,7 +4330,7 @@ function _define_property25(obj, key, value) {
4344
4330
  }
4345
4331
  return obj;
4346
4332
  }
4347
- function _object_spread25(target) {
4333
+ function _object_spread24(target) {
4348
4334
  for (var i = 1; i < arguments.length; i++) {
4349
4335
  var source = arguments[i] != null ? arguments[i] : {};
4350
4336
  var ownKeys36 = Object.keys(source);
@@ -4354,7 +4340,7 @@ function _object_spread25(target) {
4354
4340
  }));
4355
4341
  }
4356
4342
  ownKeys36.forEach(function(key) {
4357
- _define_property25(target, key, source[key]);
4343
+ _define_property24(target, key, source[key]);
4358
4344
  });
4359
4345
  }
4360
4346
  return target;
@@ -4392,7 +4378,7 @@ var LocalProvider = class {
4392
4378
  var _this = this;
4393
4379
  return _async_to_generator2(function* () {
4394
4380
  const { currentLang } = options;
4395
- const pagesForSearch = (yield _class_private_method_get(_this, _getPages, getPages).call(_this, currentLang)).filter((page) => page.lang === currentLang).map((page) => _object_spread_props19(_object_spread25({}, page), {
4381
+ const pagesForSearch = (yield _class_private_method_get(_this, _getPages, getPages).call(_this, currentLang)).filter((page) => page.lang === currentLang).map((page) => _object_spread_props19(_object_spread24({}, page), {
4396
4382
  normalizedContent: normalizeTextCase(page.content),
4397
4383
  headers: page.toc.map((header) => normalizeTextCase(header.text)).join(" "),
4398
4384
  normalizedTitle: normalizeTextCase(page.title)
@@ -4412,7 +4398,7 @@ var LocalProvider = class {
4412
4398
  split: /\W+/
4413
4399
  };
4414
4400
  _class_private_field_set(_this, _index, FlexSearch.create(createOptions));
4415
- _class_private_field_set(_this, _cjkIndex, FlexSearch.create(_object_spread_props19(_object_spread25({}, createOptions), {
4401
+ _class_private_field_set(_this, _cjkIndex, FlexSearch.create(_object_spread_props19(_object_spread24({}, createOptions), {
4416
4402
  tokenize(str) {
4417
4403
  const cjkWords = [];
4418
4404
  let m = null;
@@ -4905,12 +4891,12 @@ function isCurrentIndex(index) {
4905
4891
  }
4906
4892
 
4907
4893
  // src/theme-default/components/Search/SuggestItem.tsx
4908
- import { jsx as _jsx45, jsxs as _jsxs27, Fragment as _Fragment4 } from "react/jsx-runtime";
4894
+ import { jsx as _jsx46, jsxs as _jsxs28, Fragment as _Fragment5 } from "react/jsx-runtime";
4909
4895
 
4910
4896
  // src/theme-default/components/Search/assets/file.svg
4911
- import { jsx as _jsx41, jsxs as _jsxs26 } from "react/jsx-runtime";
4897
+ import { jsx as _jsx42, jsxs as _jsxs27 } from "react/jsx-runtime";
4912
4898
  import * as React16 from "react";
4913
- function _define_property26(obj, key, value) {
4899
+ function _define_property25(obj, key, value) {
4914
4900
  if (key in obj) {
4915
4901
  Object.defineProperty(obj, key, {
4916
4902
  value,
@@ -4923,7 +4909,7 @@ function _define_property26(obj, key, value) {
4923
4909
  }
4924
4910
  return obj;
4925
4911
  }
4926
- function _object_spread26(target) {
4912
+ function _object_spread25(target) {
4927
4913
  for (var i = 1; i < arguments.length; i++) {
4928
4914
  var source = arguments[i] != null ? arguments[i] : {};
4929
4915
  var ownKeys36 = Object.keys(source);
@@ -4933,7 +4919,7 @@ function _object_spread26(target) {
4933
4919
  }));
4934
4920
  }
4935
4921
  ownKeys36.forEach(function(key) {
4936
- _define_property26(target, key, source[key]);
4922
+ _define_property25(target, key, source[key]);
4937
4923
  });
4938
4924
  }
4939
4925
  return target;
@@ -4962,28 +4948,28 @@ function _object_spread_props20(target, source) {
4962
4948
  }
4963
4949
  return target;
4964
4950
  }
4965
- var SvgFile = (props) => /* @__PURE__ */ _jsxs26("svg", _object_spread_props20(_object_spread26({
4951
+ var SvgFile = (props) => /* @__PURE__ */ _jsxs27("svg", _object_spread_props20(_object_spread25({
4966
4952
  xmlns: "http://www.w3.org/2000/svg",
4967
4953
  width: 24,
4968
4954
  height: 24,
4969
4955
  viewBox: "0 0 32 32"
4970
4956
  }, props), {
4971
4957
  children: [
4972
- /* @__PURE__ */ _jsx41("circle", {
4958
+ /* @__PURE__ */ _jsx42("circle", {
4973
4959
  cx: 22,
4974
4960
  cy: 24,
4975
4961
  r: 2,
4976
4962
  fill: "currentColor"
4977
4963
  }),
4978
- /* @__PURE__ */ _jsx41("path", {
4964
+ /* @__PURE__ */ _jsx42("path", {
4979
4965
  fill: "none",
4980
4966
  d: "M22 28a4 4 0 1 1 4-4 4.004 4.004 0 0 1-4 4Zm0-6a2 2 0 1 0 2 2 2.003 2.003 0 0 0-2-2Z"
4981
4967
  }),
4982
- /* @__PURE__ */ _jsx41("path", {
4968
+ /* @__PURE__ */ _jsx42("path", {
4983
4969
  fill: "currentColor",
4984
4970
  d: "M29.777 23.479A8.64 8.64 0 0 0 22 18a8.64 8.64 0 0 0-7.777 5.479L14 24l.223.521A8.64 8.64 0 0 0 22 30a8.64 8.64 0 0 0 7.777-5.479L30 24ZM22 28a4 4 0 1 1 4-4 4.005 4.005 0 0 1-4 4Z"
4985
4971
  }),
4986
- /* @__PURE__ */ _jsx41("path", {
4972
+ /* @__PURE__ */ _jsx42("path", {
4987
4973
  fill: "currentColor",
4988
4974
  d: "M12 28H8V4h8v6a2.006 2.006 0 0 0 2 2h6v4h2v-6a.91.91 0 0 0-.3-.7l-7-7A.909.909 0 0 0 18 2H8a2.006 2.006 0 0 0-2 2v24a2.006 2.006 0 0 0 2 2h4Zm6-23.6 5.6 5.6H18Z"
4989
4975
  })
@@ -4992,9 +4978,9 @@ var SvgFile = (props) => /* @__PURE__ */ _jsxs26("svg", _object_spread_props20(_
4992
4978
  var file_default = SvgFile;
4993
4979
 
4994
4980
  // src/theme-default/components/Search/assets/jump.svg
4995
- import { jsx as _jsx42 } from "react/jsx-runtime";
4981
+ import { jsx as _jsx43 } from "react/jsx-runtime";
4996
4982
  import * as React17 from "react";
4997
- function _define_property27(obj, key, value) {
4983
+ function _define_property26(obj, key, value) {
4998
4984
  if (key in obj) {
4999
4985
  Object.defineProperty(obj, key, {
5000
4986
  value,
@@ -5007,7 +4993,7 @@ function _define_property27(obj, key, value) {
5007
4993
  }
5008
4994
  return obj;
5009
4995
  }
5010
- function _object_spread27(target) {
4996
+ function _object_spread26(target) {
5011
4997
  for (var i = 1; i < arguments.length; i++) {
5012
4998
  var source = arguments[i] != null ? arguments[i] : {};
5013
4999
  var ownKeys36 = Object.keys(source);
@@ -5017,7 +5003,7 @@ function _object_spread27(target) {
5017
5003
  }));
5018
5004
  }
5019
5005
  ownKeys36.forEach(function(key) {
5020
- _define_property27(target, key, source[key]);
5006
+ _define_property26(target, key, source[key]);
5021
5007
  });
5022
5008
  }
5023
5009
  return target;
@@ -5046,13 +5032,13 @@ function _object_spread_props21(target, source) {
5046
5032
  }
5047
5033
  return target;
5048
5034
  }
5049
- var SvgJump = (props) => /* @__PURE__ */ _jsx42("svg", _object_spread_props21(_object_spread27({
5035
+ var SvgJump = (props) => /* @__PURE__ */ _jsx43("svg", _object_spread_props21(_object_spread26({
5050
5036
  xmlns: "http://www.w3.org/2000/svg",
5051
5037
  width: 24,
5052
5038
  height: 24,
5053
5039
  viewBox: "0 0 32 32"
5054
5040
  }, props), {
5055
- children: /* @__PURE__ */ _jsx42("path", {
5041
+ children: /* @__PURE__ */ _jsx43("path", {
5056
5042
  fill: "currentColor",
5057
5043
  d: "M13.414 17.586 18 22.172V8H8V6h10a2.002 2.002 0 0 1 2 2v14.172l4.586-4.586L26 19l-7 7-7-7Z"
5058
5044
  })
@@ -5060,9 +5046,9 @@ var SvgJump = (props) => /* @__PURE__ */ _jsx42("svg", _object_spread_props21(_o
5060
5046
  var jump_default = SvgJump;
5061
5047
 
5062
5048
  // src/theme-default/components/Search/assets/header.svg
5063
- import { jsx as _jsx43 } from "react/jsx-runtime";
5049
+ import { jsx as _jsx44 } from "react/jsx-runtime";
5064
5050
  import * as React18 from "react";
5065
- function _define_property28(obj, key, value) {
5051
+ function _define_property27(obj, key, value) {
5066
5052
  if (key in obj) {
5067
5053
  Object.defineProperty(obj, key, {
5068
5054
  value,
@@ -5075,7 +5061,7 @@ function _define_property28(obj, key, value) {
5075
5061
  }
5076
5062
  return obj;
5077
5063
  }
5078
- function _object_spread28(target) {
5064
+ function _object_spread27(target) {
5079
5065
  for (var i = 1; i < arguments.length; i++) {
5080
5066
  var source = arguments[i] != null ? arguments[i] : {};
5081
5067
  var ownKeys36 = Object.keys(source);
@@ -5085,7 +5071,7 @@ function _object_spread28(target) {
5085
5071
  }));
5086
5072
  }
5087
5073
  ownKeys36.forEach(function(key) {
5088
- _define_property28(target, key, source[key]);
5074
+ _define_property27(target, key, source[key]);
5089
5075
  });
5090
5076
  }
5091
5077
  return target;
@@ -5114,13 +5100,13 @@ function _object_spread_props22(target, source) {
5114
5100
  }
5115
5101
  return target;
5116
5102
  }
5117
- var SvgHeader = (props) => /* @__PURE__ */ _jsx43("svg", _object_spread_props22(_object_spread28({
5103
+ var SvgHeader = (props) => /* @__PURE__ */ _jsx44("svg", _object_spread_props22(_object_spread27({
5118
5104
  xmlns: "http://www.w3.org/2000/svg",
5119
5105
  width: 24,
5120
5106
  height: 24,
5121
5107
  viewBox: "0 0 32 32"
5122
5108
  }, props), {
5123
- children: /* @__PURE__ */ _jsx43("path", {
5109
+ children: /* @__PURE__ */ _jsx44("path", {
5124
5110
  fill: "currentColor",
5125
5111
  d: "M28 12v-2h-6V4h-2v6h-8V4h-2v6H4v2h6v8H4v2h6v6h2v-6h8v6h2v-6h6v-2h-6v-8Zm-8 8h-8v-8h8Z"
5126
5112
  })
@@ -5128,9 +5114,9 @@ var SvgHeader = (props) => /* @__PURE__ */ _jsx43("svg", _object_spread_props22(
5128
5114
  var header_default = SvgHeader;
5129
5115
 
5130
5116
  // src/theme-default/components/Search/assets/title.svg
5131
- import { jsx as _jsx44 } from "react/jsx-runtime";
5117
+ import { jsx as _jsx45 } from "react/jsx-runtime";
5132
5118
  import * as React19 from "react";
5133
- function _define_property29(obj, key, value) {
5119
+ function _define_property28(obj, key, value) {
5134
5120
  if (key in obj) {
5135
5121
  Object.defineProperty(obj, key, {
5136
5122
  value,
@@ -5143,7 +5129,7 @@ function _define_property29(obj, key, value) {
5143
5129
  }
5144
5130
  return obj;
5145
5131
  }
5146
- function _object_spread29(target) {
5132
+ function _object_spread28(target) {
5147
5133
  for (var i = 1; i < arguments.length; i++) {
5148
5134
  var source = arguments[i] != null ? arguments[i] : {};
5149
5135
  var ownKeys36 = Object.keys(source);
@@ -5153,7 +5139,7 @@ function _object_spread29(target) {
5153
5139
  }));
5154
5140
  }
5155
5141
  ownKeys36.forEach(function(key) {
5156
- _define_property29(target, key, source[key]);
5142
+ _define_property28(target, key, source[key]);
5157
5143
  });
5158
5144
  }
5159
5145
  return target;
@@ -5182,12 +5168,12 @@ function _object_spread_props23(target, source) {
5182
5168
  }
5183
5169
  return target;
5184
5170
  }
5185
- var SvgTitle = (props) => /* @__PURE__ */ _jsx44("svg", _object_spread_props23(_object_spread29({
5171
+ var SvgTitle = (props) => /* @__PURE__ */ _jsx45("svg", _object_spread_props23(_object_spread28({
5186
5172
  xmlns: "http://www.w3.org/2000/svg",
5187
5173
  width: 24,
5188
5174
  height: 24
5189
5175
  }, props), {
5190
- children: /* @__PURE__ */ _jsx44("path", {
5176
+ children: /* @__PURE__ */ _jsx45("path", {
5191
5177
  fill: "currentColor",
5192
5178
  d: "M4 4a2 2 0 0 1 2-2h8a1 1 0 0 1 .707.293l5 5A1 1 0 0 1 20 8v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V4zm13.586 4L14 4.414V8h3.586zM12 4H6v16h12V10h-5a1 1 0 0 1-1-1V4z"
5193
5179
  })
@@ -5212,7 +5198,7 @@ function SuggestItem({ suggestion, closeSearch, isCurrent, setCurrentSuggestionI
5212
5198
  const prefix = rawText.slice(lastIndex, start);
5213
5199
  const queryStr = getSlicedStrByByteLength(rawText, start, length);
5214
5200
  framegmentList.push(prefix);
5215
- framegmentList.push(/* @__PURE__ */ _jsx45("span", {
5201
+ framegmentList.push(/* @__PURE__ */ _jsx46("span", {
5216
5202
  className: index_module_default15.mark,
5217
5203
  children: queryStr
5218
5204
  }, start));
@@ -5226,12 +5212,12 @@ function SuggestItem({ suggestion, closeSearch, isCurrent, setCurrentSuggestionI
5226
5212
  const renderHeaderMatch = () => {
5227
5213
  if (suggestion.type === "header" || suggestion.type === "title") {
5228
5214
  const { header, highlightInfoList } = suggestion;
5229
- return /* @__PURE__ */ _jsx45("div", {
5215
+ return /* @__PURE__ */ _jsx46("div", {
5230
5216
  className: "font-medium",
5231
5217
  children: getHighlightedFragments(header, highlightInfoList)
5232
5218
  });
5233
5219
  } else {
5234
- return /* @__PURE__ */ _jsx45("div", {
5220
+ return /* @__PURE__ */ _jsx46("div", {
5235
5221
  className: "font-medium",
5236
5222
  children: suggestion.header
5237
5223
  });
@@ -5239,10 +5225,10 @@ function SuggestItem({ suggestion, closeSearch, isCurrent, setCurrentSuggestionI
5239
5225
  };
5240
5226
  const renderStatementMatch = () => {
5241
5227
  if (suggestion.type !== "content") {
5242
- return /* @__PURE__ */ _jsx45("div", {});
5228
+ return /* @__PURE__ */ _jsx46("div", {});
5243
5229
  }
5244
5230
  const { statement, highlightInfoList } = suggestion;
5245
- return /* @__PURE__ */ _jsx45("div", {
5231
+ return /* @__PURE__ */ _jsx46("div", {
5246
5232
  className: "text-sm text-gray-light w-full",
5247
5233
  children: getHighlightedFragments(statement, highlightInfoList)
5248
5234
  });
@@ -5254,10 +5240,10 @@ function SuggestItem({ suggestion, closeSearch, isCurrent, setCurrentSuggestionI
5254
5240
  hitContent = renderHeaderMatch();
5255
5241
  break;
5256
5242
  case "content":
5257
- hitContent = /* @__PURE__ */ _jsxs27(_Fragment4, {
5243
+ hitContent = /* @__PURE__ */ _jsxs28(_Fragment5, {
5258
5244
  children: [
5259
5245
  renderStatementMatch(),
5260
- /* @__PURE__ */ _jsx45("p", {
5246
+ /* @__PURE__ */ _jsx46("p", {
5261
5247
  className: index_module_default15.titleForContent,
5262
5248
  children: suggestion.title
5263
5249
  })
@@ -5267,32 +5253,32 @@ function SuggestItem({ suggestion, closeSearch, isCurrent, setCurrentSuggestionI
5267
5253
  default:
5268
5254
  break;
5269
5255
  }
5270
- return /* @__PURE__ */ _jsx45("li", {
5256
+ return /* @__PURE__ */ _jsx46("li", {
5271
5257
  className: `${index_module_default15.suggestItem} ${isCurrent ? index_module_default15.current : ""}`,
5272
5258
  onMouseEnter: setCurrentSuggestionIndex,
5273
- children: /* @__PURE__ */ _jsx45("a", {
5259
+ children: /* @__PURE__ */ _jsx46("a", {
5274
5260
  href: link,
5275
5261
  onClick: (e) => {
5276
5262
  closeSearch();
5277
5263
  e.stopPropagation();
5278
5264
  },
5279
5265
  target: inCurrentDocIndex ? "_self" : "_blank",
5280
- children: /* @__PURE__ */ _jsxs27("div", {
5266
+ children: /* @__PURE__ */ _jsxs28("div", {
5281
5267
  className: index_module_default15.suggestItemContainer,
5282
5268
  children: [
5283
- /* @__PURE__ */ _jsx45("div", {
5269
+ /* @__PURE__ */ _jsx46("div", {
5284
5270
  className: index_module_default15.hitIcon,
5285
- children: /* @__PURE__ */ _jsx45(HitIcon, {})
5271
+ children: /* @__PURE__ */ _jsx46(HitIcon, {})
5286
5272
  }),
5287
- /* @__PURE__ */ _jsx45("div", {
5273
+ /* @__PURE__ */ _jsx46("div", {
5288
5274
  className: index_module_default15.contentWrapper,
5289
- children: /* @__PURE__ */ _jsx45("span", {
5275
+ children: /* @__PURE__ */ _jsx46("span", {
5290
5276
  children: hitContent
5291
5277
  })
5292
5278
  }),
5293
- /* @__PURE__ */ _jsx45("div", {
5279
+ /* @__PURE__ */ _jsx46("div", {
5294
5280
  className: index_module_default15.actionIcon,
5295
- children: /* @__PURE__ */ _jsx45(jump_default, {})
5281
+ children: /* @__PURE__ */ _jsx46(jump_default, {})
5296
5282
  })
5297
5283
  ]
5298
5284
  })
@@ -5301,12 +5287,12 @@ function SuggestItem({ suggestion, closeSearch, isCurrent, setCurrentSuggestionI
5301
5287
  }
5302
5288
 
5303
5289
  // src/theme-default/components/Search/NoSearchResult.tsx
5304
- import { jsx as _jsx47, jsxs as _jsxs29 } from "react/jsx-runtime";
5290
+ import { jsx as _jsx48, jsxs as _jsxs30 } from "react/jsx-runtime";
5305
5291
 
5306
5292
  // src/theme-default/components/Search/empty.svg
5307
- import { jsx as _jsx46, jsxs as _jsxs28 } from "react/jsx-runtime";
5293
+ import { jsx as _jsx47, jsxs as _jsxs29 } from "react/jsx-runtime";
5308
5294
  import * as React20 from "react";
5309
- function _define_property30(obj, key, value) {
5295
+ function _define_property29(obj, key, value) {
5310
5296
  if (key in obj) {
5311
5297
  Object.defineProperty(obj, key, {
5312
5298
  value,
@@ -5319,7 +5305,7 @@ function _define_property30(obj, key, value) {
5319
5305
  }
5320
5306
  return obj;
5321
5307
  }
5322
- function _object_spread30(target) {
5308
+ function _object_spread29(target) {
5323
5309
  for (var i = 1; i < arguments.length; i++) {
5324
5310
  var source = arguments[i] != null ? arguments[i] : {};
5325
5311
  var ownKeys36 = Object.keys(source);
@@ -5329,7 +5315,7 @@ function _object_spread30(target) {
5329
5315
  }));
5330
5316
  }
5331
5317
  ownKeys36.forEach(function(key) {
5332
- _define_property30(target, key, source[key]);
5318
+ _define_property29(target, key, source[key]);
5333
5319
  });
5334
5320
  }
5335
5321
  return target;
@@ -5358,19 +5344,19 @@ function _object_spread_props24(target, source) {
5358
5344
  }
5359
5345
  return target;
5360
5346
  }
5361
- var SvgEmpty = (props) => /* @__PURE__ */ _jsxs28("svg", _object_spread_props24(_object_spread30({
5347
+ var SvgEmpty = (props) => /* @__PURE__ */ _jsxs29("svg", _object_spread_props24(_object_spread29({
5362
5348
  xmlns: "http://www.w3.org/2000/svg",
5363
5349
  width: 48,
5364
5350
  height: 48,
5365
5351
  fill: "none"
5366
5352
  }, props), {
5367
5353
  children: [
5368
- /* @__PURE__ */ _jsx46("path", {
5354
+ /* @__PURE__ */ _jsx47("path", {
5369
5355
  stroke: "currentColor",
5370
5356
  strokeWidth: 4,
5371
5357
  d: "M24 5v6m7 1 4-4m-18 4-4-4m27 33H8a2 2 0 0 1-2-2v-8.46a2 2 0 0 1 .272-1.007l6.15-10.54A2 2 0 0 1 14.148 18H33.85a2 2 0 0 1 1.728.992l6.149 10.541A2 2 0 0 1 42 30.541V39a2 2 0 0 1-2 2Z"
5372
5358
  }),
5373
- /* @__PURE__ */ _jsx46("path", {
5359
+ /* @__PURE__ */ _jsx47("path", {
5374
5360
  stroke: "currentColor",
5375
5361
  strokeWidth: 4,
5376
5362
  d: "M41.5 30H28s-1 3-4 3-4-3-4-3H6.5"
@@ -5381,17 +5367,17 @@ var empty_default = SvgEmpty;
5381
5367
 
5382
5368
  // src/theme-default/components/Search/NoSearchResult.tsx
5383
5369
  function NoSearchResult({ query: query2 }) {
5384
- return /* @__PURE__ */ _jsxs29("div", {
5370
+ return /* @__PURE__ */ _jsxs30("div", {
5385
5371
  className: "flex flex-col items-center pt-8 pb-2",
5386
5372
  children: [
5387
- /* @__PURE__ */ _jsx47(empty_default, {
5373
+ /* @__PURE__ */ _jsx48(empty_default, {
5388
5374
  className: "mb-4 opacity-80"
5389
5375
  }),
5390
- /* @__PURE__ */ _jsxs29("p", {
5376
+ /* @__PURE__ */ _jsxs30("p", {
5391
5377
  className: "mb-2",
5392
5378
  children: [
5393
5379
  "No results for ",
5394
- /* @__PURE__ */ _jsxs29("b", {
5380
+ /* @__PURE__ */ _jsxs30("b", {
5395
5381
  children: [
5396
5382
  '"',
5397
5383
  query2,
@@ -5401,7 +5387,7 @@ function NoSearchResult({ query: query2 }) {
5401
5387
  "."
5402
5388
  ]
5403
5389
  }),
5404
- /* @__PURE__ */ _jsx47("p", {
5390
+ /* @__PURE__ */ _jsx48("p", {
5405
5391
  children: "Please try again with a different keyword."
5406
5392
  })
5407
5393
  ]
@@ -5409,7 +5395,7 @@ function NoSearchResult({ query: query2 }) {
5409
5395
  }
5410
5396
 
5411
5397
  // src/theme-default/components/Search/SearchPanel.tsx
5412
- import { isProduction as isProduction2, usePageData as usePageData12 } from "@/runtime";
5398
+ import { isProduction as isProduction2, usePageData as usePageData13 } from "@/runtime";
5413
5399
  function asyncGeneratorStep5(gen, resolve, reject, _next, _throw, key, arg) {
5414
5400
  try {
5415
5401
  var info = gen[key](arg);
@@ -5439,7 +5425,7 @@ function _async_to_generator5(fn) {
5439
5425
  });
5440
5426
  };
5441
5427
  }
5442
- function _define_property31(obj, key, value) {
5428
+ function _define_property30(obj, key, value) {
5443
5429
  if (key in obj) {
5444
5430
  Object.defineProperty(obj, key, {
5445
5431
  value,
@@ -5452,7 +5438,7 @@ function _define_property31(obj, key, value) {
5452
5438
  }
5453
5439
  return obj;
5454
5440
  }
5455
- function _object_spread31(target) {
5441
+ function _object_spread30(target) {
5456
5442
  for (var i = 1; i < arguments.length; i++) {
5457
5443
  var source = arguments[i] != null ? arguments[i] : {};
5458
5444
  var ownKeys36 = Object.keys(source);
@@ -5462,7 +5448,7 @@ function _object_spread31(target) {
5462
5448
  }));
5463
5449
  }
5464
5450
  ownKeys36.forEach(function(key) {
5465
- _define_property31(target, key, source[key]);
5451
+ _define_property30(target, key, source[key]);
5466
5452
  });
5467
5453
  }
5468
5454
  return target;
@@ -5503,16 +5489,16 @@ var RECOMMEND_WORD = {
5503
5489
  en: "Other Site Search Results"
5504
5490
  };
5505
5491
  function SearchPanel({ focused, setFocused }) {
5506
- const [query2, setQuery] = useState12("");
5507
- const [searchResult, setSearchResult] = useState12({
5492
+ const [query2, setQuery] = useState14("");
5493
+ const [searchResult, setSearchResult] = useState14({
5508
5494
  current: [],
5509
5495
  others: []
5510
5496
  });
5511
5497
  const searchInputRef = useRef5(null);
5512
- const [initing, setIniting] = useState12(true);
5513
- const [currentSuggestionIndex, setCurrentSuggestionIndex] = useState12(0);
5498
+ const [initing, setIniting] = useState14(true);
5499
+ const [currentSuggestionIndex, setCurrentSuggestionIndex] = useState14(0);
5514
5500
  const pageSearcherRef = useRef5(null);
5515
- const { siteData: siteData2, page: { lang } } = usePageData12();
5501
+ const { siteData: siteData2, page: { lang } } = usePageData13();
5516
5502
  const { sidebar } = useLocaleSiteData();
5517
5503
  const { search } = siteData2;
5518
5504
  const suggestions = [
@@ -5529,7 +5515,7 @@ function SearchPanel({ focused, setFocused }) {
5529
5515
  if (search === false) {
5530
5516
  return;
5531
5517
  }
5532
- const pageSearcher = new PageSearcher(_object_spread_props25(_object_spread31({}, search), {
5518
+ const pageSearcher = new PageSearcher(_object_spread_props25(_object_spread30({}, search), {
5533
5519
  currentLang: lang,
5534
5520
  extractGroupName
5535
5521
  }));
@@ -5548,7 +5534,7 @@ function SearchPanel({ focused, setFocused }) {
5548
5534
  });
5549
5535
  return _initPageSearcher.apply(this, arguments);
5550
5536
  }
5551
- useEffect12(() => {
5537
+ useEffect14(() => {
5552
5538
  const onKeyDown = (e) => {
5553
5539
  switch (e.code) {
5554
5540
  case KEY_CODE.SEARCH:
@@ -5598,7 +5584,7 @@ function SearchPanel({ focused, setFocused }) {
5598
5584
  suggestions,
5599
5585
  currentSuggestionIndex
5600
5586
  ]);
5601
- useEffect12(() => {
5587
+ useEffect14(() => {
5602
5588
  if (focused) {
5603
5589
  setSearchResult({
5604
5590
  current: [],
@@ -5611,7 +5597,7 @@ function SearchPanel({ focused, setFocused }) {
5611
5597
  }, [
5612
5598
  focused
5613
5599
  ]);
5614
- useEffect12(() => {
5600
+ useEffect14(() => {
5615
5601
  !initing && initPageSearcher();
5616
5602
  }, [
5617
5603
  lang
@@ -5638,7 +5624,7 @@ function SearchPanel({ focused, setFocused }) {
5638
5624
  let accumulateIndex = -1;
5639
5625
  const renderSearchResult = (result, searchOptions) => {
5640
5626
  if (!suggestions.length && !initing) {
5641
- return /* @__PURE__ */ _jsx48(NoSearchResult, {
5627
+ return /* @__PURE__ */ _jsx49(NoSearchResult, {
5642
5628
  query: query2
5643
5629
  });
5644
5630
  }
@@ -5650,21 +5636,21 @@ function SearchPanel({ focused, setFocused }) {
5650
5636
  const indexItem = normalizeSearchIndexes(searchOptions.searchIndexes || []).find((indexInfo) => indexInfo.value === item.index);
5651
5637
  return indexItem.label;
5652
5638
  });
5653
- return /* @__PURE__ */ _jsxs30("div", {
5639
+ return /* @__PURE__ */ _jsxs31("div", {
5654
5640
  children: [
5655
5641
  renderSearchResultItem(result.current),
5656
- hasOtherResult && /* @__PURE__ */ _jsx48("h2", {
5642
+ hasOtherResult && /* @__PURE__ */ _jsx49("h2", {
5657
5643
  className: index_module_default15.groupTitle,
5658
5644
  children: RECOMMEND_WORD[lang]
5659
5645
  }),
5660
- /* @__PURE__ */ _jsx48("div", {
5646
+ /* @__PURE__ */ _jsx49("div", {
5661
5647
  style: {
5662
5648
  marginTop: "-12px"
5663
5649
  },
5664
- children: /* @__PURE__ */ _jsx48(Tabs, {
5650
+ children: /* @__PURE__ */ _jsx49(Tabs, {
5665
5651
  values: tabValues,
5666
5652
  tabContainerClassName: index_module_default15.tabClassName,
5667
- children: result.others.map((item) => /* @__PURE__ */ _jsx48(Tab, {
5653
+ children: result.others.map((item) => /* @__PURE__ */ _jsx49(Tab, {
5668
5654
  children: renderSearchResultItem(item.items, false)
5669
5655
  }, item.index))
5670
5656
  })
@@ -5674,9 +5660,9 @@ function SearchPanel({ focused, setFocused }) {
5674
5660
  };
5675
5661
  const renderSearchResultItem = (suggestionList, isCurrent = true) => {
5676
5662
  if (suggestionList.length === 0 && !initing) {
5677
- return /* @__PURE__ */ _jsx48("div", {
5663
+ return /* @__PURE__ */ _jsx49("div", {
5678
5664
  className: "mt-4 flex-center",
5679
- children: /* @__PURE__ */ _jsx48("div", {
5665
+ children: /* @__PURE__ */ _jsx49("div", {
5680
5666
  className: "p-2 font-bold text-md",
5681
5667
  style: {
5682
5668
  color: "#2c3e50"
@@ -5686,22 +5672,22 @@ function SearchPanel({ focused, setFocused }) {
5686
5672
  });
5687
5673
  }
5688
5674
  const normalizedSuggestions = normalizeSuggestions(suggestionList);
5689
- return /* @__PURE__ */ _jsx48("ul", {
5675
+ return /* @__PURE__ */ _jsx49("ul", {
5690
5676
  className: index_module_default15.suggestList,
5691
5677
  children: Object.keys(normalizedSuggestions).map((group) => {
5692
5678
  const groupSuggestions = normalizedSuggestions[group] || [];
5693
- return /* @__PURE__ */ _jsxs30("li", {
5679
+ return /* @__PURE__ */ _jsxs31("li", {
5694
5680
  children: [
5695
- isCurrent && /* @__PURE__ */ _jsx48("h2", {
5681
+ isCurrent && /* @__PURE__ */ _jsx49("h2", {
5696
5682
  className: index_module_default15.groupTitle,
5697
5683
  children: group
5698
5684
  }),
5699
- /* @__PURE__ */ _jsx48("ul", {
5685
+ /* @__PURE__ */ _jsx49("ul", {
5700
5686
  className: "pb-2",
5701
5687
  children: groupSuggestions.map((suggestion) => {
5702
5688
  accumulateIndex++;
5703
5689
  const suggestionIndex = accumulateIndex;
5704
- return /* @__PURE__ */ _jsx48(SuggestItem, {
5690
+ return /* @__PURE__ */ _jsx49(SuggestItem, {
5705
5691
  suggestion,
5706
5692
  isCurrent: suggestionIndex === currentSuggestionIndex,
5707
5693
  setCurrentSuggestionIndex: () => {
@@ -5717,27 +5703,27 @@ function SearchPanel({ focused, setFocused }) {
5717
5703
  })
5718
5704
  });
5719
5705
  };
5720
- return /* @__PURE__ */ _jsx48(_Fragment5, {
5721
- children: focused && /* @__PURE__ */ createPortal(/* @__PURE__ */ _jsx48("div", {
5706
+ return /* @__PURE__ */ _jsx49(_Fragment6, {
5707
+ children: focused && /* @__PURE__ */ createPortal(/* @__PURE__ */ _jsx49("div", {
5722
5708
  className: index_module_default15.mask,
5723
5709
  onClick: () => setFocused(false),
5724
- children: /* @__PURE__ */ _jsxs30("div", {
5710
+ children: /* @__PURE__ */ _jsxs31("div", {
5725
5711
  className: `${index_module_default15.modal}`,
5726
5712
  onClick: (e) => {
5727
5713
  setFocused(true);
5728
5714
  e.stopPropagation();
5729
5715
  },
5730
5716
  children: [
5731
- /* @__PURE__ */ _jsxs30("div", {
5717
+ /* @__PURE__ */ _jsxs31("div", {
5732
5718
  className: "flex items-center",
5733
5719
  children: [
5734
- /* @__PURE__ */ _jsxs30("div", {
5720
+ /* @__PURE__ */ _jsxs31("div", {
5735
5721
  className: index_module_default15.inputForm,
5736
5722
  children: [
5737
- /* @__PURE__ */ _jsx48("label", {
5738
- children: /* @__PURE__ */ _jsx48(search_default, {})
5723
+ /* @__PURE__ */ _jsx49("label", {
5724
+ children: /* @__PURE__ */ _jsx49(search_default, {})
5739
5725
  }),
5740
- /* @__PURE__ */ _jsx48("input", {
5726
+ /* @__PURE__ */ _jsx49("input", {
5741
5727
  className: index_module_default15.input,
5742
5728
  ref: searchInputRef,
5743
5729
  placeholder: "Search Docs",
@@ -5746,8 +5732,8 @@ function SearchPanel({ focused, setFocused }) {
5746
5732
  autoFocus: true,
5747
5733
  onChange: debounce(onQueryChanged, 150)
5748
5734
  }),
5749
- /* @__PURE__ */ _jsx48("label", {
5750
- children: /* @__PURE__ */ _jsx48(close_default, {
5735
+ /* @__PURE__ */ _jsx49("label", {
5736
+ children: /* @__PURE__ */ _jsx49(close_default, {
5751
5737
  className: index_module_default15.close,
5752
5738
  onClick: (e) => {
5753
5739
  if (searchInputRef.current) {
@@ -5764,7 +5750,7 @@ function SearchPanel({ focused, setFocused }) {
5764
5750
  })
5765
5751
  ]
5766
5752
  }),
5767
- /* @__PURE__ */ _jsx48("h2", {
5753
+ /* @__PURE__ */ _jsx49("h2", {
5768
5754
  className: "text-brand ml-2 sm:hidden cursor-pointer",
5769
5755
  onClick: (e) => {
5770
5756
  e.stopPropagation();
@@ -5774,15 +5760,15 @@ function SearchPanel({ focused, setFocused }) {
5774
5760
  })
5775
5761
  ]
5776
5762
  }),
5777
- query2 ? /* @__PURE__ */ _jsx48("div", {
5763
+ query2 ? /* @__PURE__ */ _jsx49("div", {
5778
5764
  className: `${index_module_default15.searchHits} rspress-scrollbar`,
5779
5765
  children: renderSearchResult(searchResult, search)
5780
5766
  }) : null,
5781
- initing && /* @__PURE__ */ _jsx48("div", {
5767
+ initing && /* @__PURE__ */ _jsx49("div", {
5782
5768
  className: "flex-center",
5783
- children: /* @__PURE__ */ _jsx48("div", {
5769
+ children: /* @__PURE__ */ _jsx49("div", {
5784
5770
  className: "p-2 text-sm",
5785
- children: /* @__PURE__ */ _jsx48(loading_default, {})
5771
+ children: /* @__PURE__ */ _jsx49(loading_default, {})
5786
5772
  })
5787
5773
  })
5788
5774
  ]
@@ -5793,28 +5779,28 @@ function SearchPanel({ focused, setFocused }) {
5793
5779
 
5794
5780
  // src/theme-default/components/Search/index.tsx
5795
5781
  function Search2() {
5796
- const [focused, setFocused] = useState13(false);
5797
- return /* @__PURE__ */ _jsxs31(_Fragment6, {
5782
+ const [focused, setFocused] = useState15(false);
5783
+ return /* @__PURE__ */ _jsxs32(_Fragment7, {
5798
5784
  children: [
5799
- /* @__PURE__ */ _jsx49("div", {
5785
+ /* @__PURE__ */ _jsx50("div", {
5800
5786
  className: index_module_default15.navSearchButton,
5801
5787
  onClick: () => setFocused(true),
5802
- children: /* @__PURE__ */ _jsxs31("button", {
5788
+ children: /* @__PURE__ */ _jsxs32("button", {
5803
5789
  children: [
5804
- /* @__PURE__ */ _jsx49(search_default, {
5790
+ /* @__PURE__ */ _jsx50(search_default, {
5805
5791
  width: "18",
5806
5792
  hight: "18"
5807
5793
  }),
5808
- /* @__PURE__ */ _jsx49("p", {
5794
+ /* @__PURE__ */ _jsx50("p", {
5809
5795
  className: index_module_default15.searchWord,
5810
5796
  children: "Search Docs"
5811
5797
  }),
5812
- /* @__PURE__ */ _jsxs31("div", {
5798
+ /* @__PURE__ */ _jsxs32("div", {
5813
5799
  children: [
5814
- /* @__PURE__ */ _jsx49("span", {
5800
+ /* @__PURE__ */ _jsx50("span", {
5815
5801
  children: "⌘"
5816
5802
  }),
5817
- /* @__PURE__ */ _jsx49("span", {
5803
+ /* @__PURE__ */ _jsx50("span", {
5818
5804
  children: "K"
5819
5805
  })
5820
5806
  ]
@@ -5822,12 +5808,12 @@ function Search2() {
5822
5808
  ]
5823
5809
  })
5824
5810
  }),
5825
- /* @__PURE__ */ _jsx49("div", {
5811
+ /* @__PURE__ */ _jsx50("div", {
5826
5812
  className: index_module_default15.mobileNavSearchButton,
5827
5813
  onClick: () => setFocused(true),
5828
- children: /* @__PURE__ */ _jsx49(search_default, {})
5814
+ children: /* @__PURE__ */ _jsx50(search_default, {})
5829
5815
  }),
5830
- /* @__PURE__ */ _jsx49(SearchPanel, {
5816
+ /* @__PURE__ */ _jsx50(SearchPanel, {
5831
5817
  focused,
5832
5818
  setFocused
5833
5819
  })
@@ -5836,16 +5822,16 @@ function Search2() {
5836
5822
  }
5837
5823
 
5838
5824
  // src/theme-default/components/HomeFooter/index.tsx
5839
- import { jsx as _jsx50 } from "react/jsx-runtime";
5840
- import { usePageData as usePageData13 } from "@/runtime";
5825
+ import { jsx as _jsx51 } from "react/jsx-runtime";
5826
+ import { usePageData as usePageData14 } from "@/runtime";
5841
5827
  function HomeFooter2() {
5842
- const { siteData: siteData2 } = usePageData13();
5828
+ const { siteData: siteData2 } = usePageData14();
5843
5829
  const { message } = siteData2.themeConfig.footer || {};
5844
- return /* @__PURE__ */ _jsx50("footer", {
5830
+ return /* @__PURE__ */ _jsx51("footer", {
5845
5831
  className: "absolute bottom-0 mt-12 py-8 px-6 sm:p-8 w-full border-t border-solid border-divider-light",
5846
- children: /* @__PURE__ */ _jsx50("div", {
5832
+ children: /* @__PURE__ */ _jsx51("div", {
5847
5833
  className: "m-auto w-full text-center",
5848
- children: message && /* @__PURE__ */ _jsx50("div", {
5834
+ children: message && /* @__PURE__ */ _jsx51("div", {
5849
5835
  className: "font-meduim text-sm text-text-2",
5850
5836
  children: message
5851
5837
  })
@@ -5854,9 +5840,9 @@ function HomeFooter2() {
5854
5840
  }
5855
5841
 
5856
5842
  // src/theme-default/components/Toc/index.tsx
5857
- import { jsx as _jsx51 } from "react/jsx-runtime";
5858
- import { usePageData as usePageData14 } from "@/runtime";
5859
- function _define_property32(obj, key, value) {
5843
+ import { jsx as _jsx52 } from "react/jsx-runtime";
5844
+ import { usePageData as usePageData15 } from "@/runtime";
5845
+ function _define_property31(obj, key, value) {
5860
5846
  if (key in obj) {
5861
5847
  Object.defineProperty(obj, key, {
5862
5848
  value,
@@ -5869,7 +5855,7 @@ function _define_property32(obj, key, value) {
5869
5855
  }
5870
5856
  return obj;
5871
5857
  }
5872
- function _object_spread32(target) {
5858
+ function _object_spread31(target) {
5873
5859
  for (var i = 1; i < arguments.length; i++) {
5874
5860
  var source = arguments[i] != null ? arguments[i] : {};
5875
5861
  var ownKeys36 = Object.keys(source);
@@ -5879,15 +5865,15 @@ function _object_spread32(target) {
5879
5865
  }));
5880
5866
  }
5881
5867
  ownKeys36.forEach(function(key) {
5882
- _define_property32(target, key, source[key]);
5868
+ _define_property31(target, key, source[key]);
5883
5869
  });
5884
5870
  }
5885
5871
  return target;
5886
5872
  }
5887
5873
  var TocItem = (header) => {
5888
- return /* @__PURE__ */ _jsx51("li", {
5874
+ return /* @__PURE__ */ _jsx52("li", {
5889
5875
  className: "py-1",
5890
- children: /* @__PURE__ */ _jsx51("a", {
5876
+ children: /* @__PURE__ */ _jsx52("a", {
5891
5877
  href: `#${header.id}`,
5892
5878
  className: "toc-link transition-all duration-300 hover:text-text-1 text-text-2 block underline underline-offset-2",
5893
5879
  style: {
@@ -5901,7 +5887,7 @@ var TocItem = (header) => {
5901
5887
  scrollToTarget(target, false);
5902
5888
  }
5903
5889
  },
5904
- children: /* @__PURE__ */ _jsx51("span", {
5890
+ children: /* @__PURE__ */ _jsx52("span", {
5905
5891
  className: "toc-link-text block",
5906
5892
  children: header.text
5907
5893
  })
@@ -5909,17 +5895,17 @@ var TocItem = (header) => {
5909
5895
  }, header.id);
5910
5896
  };
5911
5897
  function Toc() {
5912
- const { page } = usePageData14();
5913
- return /* @__PURE__ */ _jsx51("ul", {
5914
- children: page.toc.map((item) => /* @__PURE__ */ _jsx51(TocItem, _object_spread32({}, item), item.id))
5898
+ const { page } = usePageData15();
5899
+ return /* @__PURE__ */ _jsx52("ul", {
5900
+ children: page.toc.map((item) => /* @__PURE__ */ _jsx52(TocItem, _object_spread31({}, item), item.id))
5915
5901
  });
5916
5902
  }
5917
5903
 
5918
5904
  // src/theme-default/components/PackageManagerTabs/index.tsx
5919
- import { jsx as _jsx58, jsxs as _jsxs38 } from "react/jsx-runtime";
5905
+ import { jsx as _jsx59, jsxs as _jsxs39 } from "react/jsx-runtime";
5920
5906
 
5921
5907
  // src/theme-default/layout/DocLayout/docComponents/pre.tsx
5922
- import { jsx as _jsx52, jsxs as _jsxs32 } from "react/jsx-runtime";
5908
+ import { jsx as _jsx53, jsxs as _jsxs33 } from "react/jsx-runtime";
5923
5909
  var DEFAULT_LANGUAGE_CLASS = "language-bash";
5924
5910
  function parseTitleFromMeta(meta) {
5925
5911
  var _highlightReg_exec;
@@ -5938,20 +5924,20 @@ function parseTitleFromMeta(meta) {
5938
5924
  }
5939
5925
  function Pre({ children }) {
5940
5926
  if (Array.isArray(children)) {
5941
- return /* @__PURE__ */ _jsx52("pre", {
5927
+ return /* @__PURE__ */ _jsx53("pre", {
5942
5928
  children
5943
5929
  });
5944
5930
  }
5945
5931
  const { className, meta } = children.props;
5946
5932
  const codeTitle = parseTitleFromMeta(meta);
5947
- return /* @__PURE__ */ _jsxs32("div", {
5933
+ return /* @__PURE__ */ _jsxs33("div", {
5948
5934
  className: className || DEFAULT_LANGUAGE_CLASS,
5949
5935
  children: [
5950
- codeTitle && /* @__PURE__ */ _jsx52("div", {
5936
+ codeTitle && /* @__PURE__ */ _jsx53("div", {
5951
5937
  className: "rspress-code-title",
5952
5938
  children: codeTitle
5953
5939
  }),
5954
- /* @__PURE__ */ _jsx52("div", {
5940
+ /* @__PURE__ */ _jsx53("div", {
5955
5941
  className: "rspress-code-content rspress-scrollbar",
5956
5942
  children
5957
5943
  })
@@ -5960,7 +5946,7 @@ function Pre({ children }) {
5960
5946
  }
5961
5947
 
5962
5948
  // src/theme-default/layout/DocLayout/docComponents/code.tsx
5963
- import { jsx as _jsx53, jsxs as _jsxs33, Fragment as _Fragment7 } from "react/jsx-runtime";
5949
+ import { jsx as _jsx54, jsxs as _jsxs34, Fragment as _Fragment8 } from "react/jsx-runtime";
5964
5950
  import { PrismLight as SyntaxHighlighter } from "react-syntax-highlighter";
5965
5951
  import jsx from "react-syntax-highlighter/dist/esm/languages/prism/jsx";
5966
5952
  import js from "react-syntax-highlighter/dist/esm/languages/prism/javascript";
@@ -6054,8 +6040,8 @@ var prisim_theme_default = {
6054
6040
  };
6055
6041
 
6056
6042
  // src/theme-default/layout/DocLayout/docComponents/code.tsx
6057
- import { usePageData as usePageData15 } from "@/runtime";
6058
- function _define_property33(obj, key, value) {
6043
+ import { usePageData as usePageData16 } from "@/runtime";
6044
+ function _define_property32(obj, key, value) {
6059
6045
  if (key in obj) {
6060
6046
  Object.defineProperty(obj, key, {
6061
6047
  value,
@@ -6068,7 +6054,7 @@ function _define_property33(obj, key, value) {
6068
6054
  }
6069
6055
  return obj;
6070
6056
  }
6071
- function _object_spread33(target) {
6057
+ function _object_spread32(target) {
6072
6058
  for (var i = 1; i < arguments.length; i++) {
6073
6059
  var source = arguments[i] != null ? arguments[i] : {};
6074
6060
  var ownKeys36 = Object.keys(source);
@@ -6078,7 +6064,7 @@ function _object_spread33(target) {
6078
6064
  }));
6079
6065
  }
6080
6066
  ownKeys36.forEach(function(key) {
6081
- _define_property33(target, key, source[key]);
6067
+ _define_property32(target, key, source[key]);
6082
6068
  });
6083
6069
  }
6084
6070
  return target;
@@ -6104,7 +6090,7 @@ function registerLanguages() {
6104
6090
  }
6105
6091
  function Code(props) {
6106
6092
  const copyButtonRef = useRef6(null);
6107
- const { siteData: siteData2 } = usePageData15();
6093
+ const { siteData: siteData2 } = usePageData16();
6108
6094
  const { showLineNumbers } = siteData2.markdown;
6109
6095
  if (!registered) {
6110
6096
  registerLanguages();
@@ -6112,7 +6098,7 @@ function Code(props) {
6112
6098
  const { className, meta } = props;
6113
6099
  const language = className === null || className === void 0 ? void 0 : className.replace(/language-/, "");
6114
6100
  if (!language) {
6115
- return /* @__PURE__ */ _jsx53("code", _object_spread33({}, props));
6101
+ return /* @__PURE__ */ _jsx54("code", _object_spread32({}, props));
6116
6102
  }
6117
6103
  let children;
6118
6104
  if (typeof props.children === "string") {
@@ -6154,9 +6140,9 @@ function Code(props) {
6154
6140
  timeoutIdMap.set(el, timeoutId);
6155
6141
  }
6156
6142
  };
6157
- return /* @__PURE__ */ _jsxs33(_Fragment7, {
6143
+ return /* @__PURE__ */ _jsxs34(_Fragment8, {
6158
6144
  children: [
6159
- /* @__PURE__ */ _jsx53(SyntaxHighlighter, {
6145
+ /* @__PURE__ */ _jsx54(SyntaxHighlighter, {
6160
6146
  language,
6161
6147
  style: prisim_theme_default,
6162
6148
  wrapLines: true,
@@ -6179,7 +6165,7 @@ function Code(props) {
6179
6165
  },
6180
6166
  children
6181
6167
  }),
6182
- /* @__PURE__ */ _jsx53("button", {
6168
+ /* @__PURE__ */ _jsx54("button", {
6183
6169
  className: "copy",
6184
6170
  onClick: copyCode,
6185
6171
  ref: copyButtonRef
@@ -6189,8 +6175,8 @@ function Code(props) {
6189
6175
  }
6190
6176
 
6191
6177
  // src/theme-default/components/PackageManagerTabs/icons/Npm.tsx
6192
- import { jsx as _jsx54, jsxs as _jsxs34 } from "react/jsx-runtime";
6193
- function _define_property34(obj, key, value) {
6178
+ import { jsx as _jsx55, jsxs as _jsxs35 } from "react/jsx-runtime";
6179
+ function _define_property33(obj, key, value) {
6194
6180
  if (key in obj) {
6195
6181
  Object.defineProperty(obj, key, {
6196
6182
  value,
@@ -6203,7 +6189,7 @@ function _define_property34(obj, key, value) {
6203
6189
  }
6204
6190
  return obj;
6205
6191
  }
6206
- function _object_spread34(target) {
6192
+ function _object_spread33(target) {
6207
6193
  for (var i = 1; i < arguments.length; i++) {
6208
6194
  var source = arguments[i] != null ? arguments[i] : {};
6209
6195
  var ownKeys36 = Object.keys(source);
@@ -6213,7 +6199,7 @@ function _object_spread34(target) {
6213
6199
  }));
6214
6200
  }
6215
6201
  ownKeys36.forEach(function(key) {
6216
- _define_property34(target, key, source[key]);
6202
+ _define_property33(target, key, source[key]);
6217
6203
  });
6218
6204
  }
6219
6205
  return target;
@@ -6243,18 +6229,18 @@ function _object_spread_props26(target, source) {
6243
6229
  return target;
6244
6230
  }
6245
6231
  function Npm(props) {
6246
- return /* @__PURE__ */ _jsxs34("svg", _object_spread_props26(_object_spread34({
6232
+ return /* @__PURE__ */ _jsxs35("svg", _object_spread_props26(_object_spread33({
6247
6233
  xmlns: "http://www.w3.org/2000/svg",
6248
6234
  width: "1em",
6249
6235
  height: "1em",
6250
6236
  viewBox: "0 0 256 256"
6251
6237
  }, props), {
6252
6238
  children: [
6253
- /* @__PURE__ */ _jsx54("path", {
6239
+ /* @__PURE__ */ _jsx55("path", {
6254
6240
  fill: "#C12127",
6255
6241
  d: "M0 256V0h256v256z"
6256
6242
  }),
6257
- /* @__PURE__ */ _jsx54("path", {
6243
+ /* @__PURE__ */ _jsx55("path", {
6258
6244
  fill: "#FFF",
6259
6245
  d: "M48 48h160v160h-32V80h-48v128H48z"
6260
6246
  })
@@ -6263,8 +6249,8 @@ function Npm(props) {
6263
6249
  }
6264
6250
 
6265
6251
  // src/theme-default/components/PackageManagerTabs/icons/Yarn.tsx
6266
- import { jsx as _jsx55, jsxs as _jsxs35 } from "react/jsx-runtime";
6267
- function _define_property35(obj, key, value) {
6252
+ import { jsx as _jsx56, jsxs as _jsxs36 } from "react/jsx-runtime";
6253
+ function _define_property34(obj, key, value) {
6268
6254
  if (key in obj) {
6269
6255
  Object.defineProperty(obj, key, {
6270
6256
  value,
@@ -6277,7 +6263,7 @@ function _define_property35(obj, key, value) {
6277
6263
  }
6278
6264
  return obj;
6279
6265
  }
6280
- function _object_spread35(target) {
6266
+ function _object_spread34(target) {
6281
6267
  for (var i = 1; i < arguments.length; i++) {
6282
6268
  var source = arguments[i] != null ? arguments[i] : {};
6283
6269
  var ownKeys36 = Object.keys(source);
@@ -6287,7 +6273,7 @@ function _object_spread35(target) {
6287
6273
  }));
6288
6274
  }
6289
6275
  ownKeys36.forEach(function(key) {
6290
- _define_property35(target, key, source[key]);
6276
+ _define_property34(target, key, source[key]);
6291
6277
  });
6292
6278
  }
6293
6279
  return target;
@@ -6317,19 +6303,19 @@ function _object_spread_props27(target, source) {
6317
6303
  return target;
6318
6304
  }
6319
6305
  function Yarn(props) {
6320
- return /* @__PURE__ */ _jsx55("svg", _object_spread_props27(_object_spread35({
6306
+ return /* @__PURE__ */ _jsx56("svg", _object_spread_props27(_object_spread34({
6321
6307
  xmlns: "http://www.w3.org/2000/svg",
6322
6308
  width: "1em",
6323
6309
  height: "1em",
6324
6310
  viewBox: "0 0 128 128"
6325
6311
  }, props), {
6326
- children: /* @__PURE__ */ _jsxs35("g", {
6312
+ children: /* @__PURE__ */ _jsxs36("g", {
6327
6313
  fill: "#2c8ebb",
6328
6314
  children: [
6329
- /* @__PURE__ */ _jsx55("path", {
6315
+ /* @__PURE__ */ _jsx56("path", {
6330
6316
  d: "M99.24 80.71C94.9 80.76 91.1 83 87.89 85c-6 3.71-9 3.47-9 3.47l-.1-.17c-.41-.67 1.92-6.68-.69-13.84c-2.82-7.83-7.3-9.72-6.94-10.32c1.53-2.59 5.36-6.7 6.89-14.36c.91-4.64.67-12.28-1.39-16.28c-.38-.74-3.78 1.24-3.78 1.24s-3.18-7.09-4.07-7.66c-2.87-1.84-6 7.61-6 7.61a14 14 0 0 0-11.71 4.5a9.64 9.64 0 0 1-3.85 2.27c-.41.14-.91.12-2.15 3.47c-1.9 5.07 3.24 10.81 3.24 10.81s-6.13 4.33-8.4 9.72a24.78 24.78 0 0 0-1.75 11.68s-4.36 3.78-4.64 7.68a12.87 12.87 0 0 0 1.77 7.83a1.94 1.94 0 0 0 2.63.91s-2.9 3.38-.19 4.81c2.47 1.29 6.63 2 8.83-.19c1.6-1.6 1.92-5.17 2.51-6.63c.14-.34.62.57 1.08 1a10 10 0 0 0 1.36 1s-3.9 1.68-2.3 5.51c.53 1.27 2.42 2.08 5.51 2.06c1.15 0 13.76-.72 17.12-1.53a4.33 4.33 0 0 0 2.61-1.46a63 63 0 0 0 15.49-7c4.74-3.09 6.68-3.93 10.51-4.84c3.16-.75 2.95-5.65-1.24-5.58z"
6331
6317
  }),
6332
- /* @__PURE__ */ _jsx55("path", {
6318
+ /* @__PURE__ */ _jsx56("path", {
6333
6319
  d: "M64 2a62 62 0 1 0 62 62A62 62 0 0 0 64 2zm37.3 87.83c-3.35.81-4.91 1.44-9.41 4.36a67 67 0 0 1-15.56 7.18a8.71 8.71 0 0 1-3.64 1.77c-3.81.93-16.88 1.63-17.91 1.63h-.24c-4 0-6.27-1.24-7.49-2.54c-3.4 1.7-7.8 1-11-.69a5.55 5.55 0 0 1-3-3.9a6 6 0 0 1 0-2.06a6.66 6.66 0 0 1-.79-1A16.38 16.38 0 0 1 30 84.52c.29-3.73 2.87-7.06 4.55-8.83A28.56 28.56 0 0 1 36.61 64a26.82 26.82 0 0 1 6.82-9c-1.65-2.78-3.33-7.06-1.7-11.42c1.17-3.11 2.13-4.84 4.24-5.58a6.84 6.84 0 0 0 2.51-1.34A17.65 17.65 0 0 1 60.34 31c.19-.48.41-1 .65-1.46c1.6-3.4 3.3-5.31 5.29-6a4.88 4.88 0 0 1 4.4.5c.65.43 1.48 1 3.9 6a4.69 4.69 0 0 1 2.85-.1a3.81 3.81 0 0 1 2.39 1.94c2.47 4.74 2.8 13.19 1.72 18.62a33.8 33.8 0 0 1-5.84 13.31a25.73 25.73 0 0 1 5.77 9.43a25.42 25.42 0 0 1 1.41 10.41A28.7 28.7 0 0 0 86 81.91c3.06-1.89 7.68-4.74 13.19-4.81a6.62 6.62 0 0 1 7 5.7a6.35 6.35 0 0 1-4.89 7.03z"
6334
6320
  })
6335
6321
  ]
@@ -6338,8 +6324,8 @@ function Yarn(props) {
6338
6324
  }
6339
6325
 
6340
6326
  // src/theme-default/components/PackageManagerTabs/icons/Pnpm.tsx
6341
- import { jsx as _jsx56, jsxs as _jsxs36 } from "react/jsx-runtime";
6342
- function _define_property36(obj, key, value) {
6327
+ import { jsx as _jsx57, jsxs as _jsxs37 } from "react/jsx-runtime";
6328
+ function _define_property35(obj, key, value) {
6343
6329
  if (key in obj) {
6344
6330
  Object.defineProperty(obj, key, {
6345
6331
  value,
@@ -6352,7 +6338,7 @@ function _define_property36(obj, key, value) {
6352
6338
  }
6353
6339
  return obj;
6354
6340
  }
6355
- function _object_spread36(target) {
6341
+ function _object_spread35(target) {
6356
6342
  for (var i = 1; i < arguments.length; i++) {
6357
6343
  var source = arguments[i] != null ? arguments[i] : {};
6358
6344
  var ownKeys36 = Object.keys(source);
@@ -6362,7 +6348,7 @@ function _object_spread36(target) {
6362
6348
  }));
6363
6349
  }
6364
6350
  ownKeys36.forEach(function(key) {
6365
- _define_property36(target, key, source[key]);
6351
+ _define_property35(target, key, source[key]);
6366
6352
  });
6367
6353
  }
6368
6354
  return target;
@@ -6392,18 +6378,18 @@ function _object_spread_props28(target, source) {
6392
6378
  return target;
6393
6379
  }
6394
6380
  function Pnpm(props) {
6395
- return /* @__PURE__ */ _jsxs36("svg", _object_spread_props28(_object_spread36({
6381
+ return /* @__PURE__ */ _jsxs37("svg", _object_spread_props28(_object_spread35({
6396
6382
  xmlns: "http://www.w3.org/2000/svg",
6397
6383
  width: "1em",
6398
6384
  height: "1em",
6399
6385
  viewBox: "0 0 128 128"
6400
6386
  }, props), {
6401
6387
  children: [
6402
- /* @__PURE__ */ _jsx56("path", {
6388
+ /* @__PURE__ */ _jsx57("path", {
6403
6389
  fill: "#f8ab00",
6404
6390
  d: "M0 .004V40h39.996V.004Zm43.996 0V40h40V.004Zm44.008 0V40H128V.004Zm0 43.996v39.996H128V44Z"
6405
6391
  }),
6406
- /* @__PURE__ */ _jsx56("path", {
6392
+ /* @__PURE__ */ _jsx57("path", {
6407
6393
  fill: "#4c4c4c",
6408
6394
  d: "M43.996 44v39.996h40V44ZM0 87.996v40h39.996v-40Zm43.996 0v40h40v-40Zm44.008 0v40H128v-40Z"
6409
6395
  })
@@ -6412,8 +6398,8 @@ function Pnpm(props) {
6412
6398
  }
6413
6399
 
6414
6400
  // src/theme-default/components/PackageManagerTabs/icons/Bun.tsx
6415
- import { jsx as _jsx57, jsxs as _jsxs37 } from "react/jsx-runtime";
6416
- function _define_property37(obj, key, value) {
6401
+ import { jsx as _jsx58, jsxs as _jsxs38 } from "react/jsx-runtime";
6402
+ function _define_property36(obj, key, value) {
6417
6403
  if (key in obj) {
6418
6404
  Object.defineProperty(obj, key, {
6419
6405
  value,
@@ -6426,7 +6412,7 @@ function _define_property37(obj, key, value) {
6426
6412
  }
6427
6413
  return obj;
6428
6414
  }
6429
- function _object_spread37(target) {
6415
+ function _object_spread36(target) {
6430
6416
  for (var i = 1; i < arguments.length; i++) {
6431
6417
  var source = arguments[i] != null ? arguments[i] : {};
6432
6418
  var ownKeys36 = Object.keys(source);
@@ -6436,7 +6422,7 @@ function _object_spread37(target) {
6436
6422
  }));
6437
6423
  }
6438
6424
  ownKeys36.forEach(function(key) {
6439
- _define_property37(target, key, source[key]);
6425
+ _define_property36(target, key, source[key]);
6440
6426
  });
6441
6427
  }
6442
6428
  return target;
@@ -6466,28 +6452,28 @@ function _object_spread_props29(target, source) {
6466
6452
  return target;
6467
6453
  }
6468
6454
  function Bun(props) {
6469
- return /* @__PURE__ */ _jsxs37("svg", _object_spread_props29(_object_spread37({
6455
+ return /* @__PURE__ */ _jsxs38("svg", _object_spread_props29(_object_spread36({
6470
6456
  id: "Bun",
6471
6457
  width: "1.2em",
6472
6458
  height: "1.2em",
6473
6459
  viewBox: "0 0 80 70"
6474
6460
  }, props), {
6475
6461
  children: [
6476
- /* @__PURE__ */ _jsx57("path", {
6462
+ /* @__PURE__ */ _jsx58("path", {
6477
6463
  id: "Shadow",
6478
6464
  d: "M71.09,20.74c-.16-.17-.33-.34-.5-.5s-.33-.34-.5-.5-.33-.34-.5-.5-.33-.34-.5-.5-.33-.34-.5-.5-.33-.34-.5-.5-.33-.34-.5-.5A26.46,26.46,0,0,1,75.5,35.7c0,16.57-16.82,30.05-37.5,30.05-11.58,0-21.94-4.23-28.83-10.86l.5.5.5.5.5.5.5.5.5.5.5.5.5.5C19.55,65.3,30.14,69.75,42,69.75c20.68,0,37.5-13.48,37.5-30C79.5,32.69,76.46,26,71.09,20.74Z"
6479
6465
  }),
6480
- /* @__PURE__ */ _jsxs37("g", {
6466
+ /* @__PURE__ */ _jsxs38("g", {
6481
6467
  id: "Body",
6482
6468
  children: [
6483
- /* @__PURE__ */ _jsx57("path", {
6469
+ /* @__PURE__ */ _jsx58("path", {
6484
6470
  id: "Background",
6485
6471
  d: "M73,35.7c0,15.21-15.67,27.54-35,27.54S3,50.91,3,35.7C3,26.27,9,17.94,18.22,13S33.18,3,38,3s8.94,4.13,19.78,10C67,17.94,73,26.27,73,35.7Z",
6486
6472
  style: {
6487
6473
  fill: "#fbf0df"
6488
6474
  }
6489
6475
  }),
6490
- /* @__PURE__ */ _jsx57("path", {
6476
+ /* @__PURE__ */ _jsx58("path", {
6491
6477
  id: "Bottom_Shadow",
6492
6478
  "data-name": "Bottom Shadow",
6493
6479
  d: "M73,35.7a21.67,21.67,0,0,0-.8-5.78c-2.73,33.3-43.35,34.9-59.32,24.94A40,40,0,0,0,38,63.24C57.3,63.24,73,50.89,73,35.7Z",
@@ -6495,7 +6481,7 @@ function Bun(props) {
6495
6481
  fill: "#f6dece"
6496
6482
  }
6497
6483
  }),
6498
- /* @__PURE__ */ _jsx57("path", {
6484
+ /* @__PURE__ */ _jsx58("path", {
6499
6485
  id: "Light_Shine",
6500
6486
  "data-name": "Light Shine",
6501
6487
  d: "M24.53,11.17C29,8.49,34.94,3.46,40.78,3.45A9.29,9.29,0,0,0,38,3c-2.42,0-5,1.25-8.25,3.13-1.13.66-2.3,1.39-3.54,2.15-2.33,1.44-5,3.07-8,4.7C8.69,18.13,3,26.62,3,35.7c0,.4,0,.8,0,1.19C9.06,15.48,20.07,13.85,24.53,11.17Z",
@@ -6503,7 +6489,7 @@ function Bun(props) {
6503
6489
  fill: "#fffefc"
6504
6490
  }
6505
6491
  }),
6506
- /* @__PURE__ */ _jsx57("path", {
6492
+ /* @__PURE__ */ _jsx58("path", {
6507
6493
  id: "Top",
6508
6494
  d: "M35.12,5.53A16.41,16.41,0,0,1,29.49,18c-.28.25-.06.73.3.59,3.37-1.31,7.92-5.23,6-13.14C35.71,5,35.12,5.12,35.12,5.53Zm2.27,0A16.24,16.24,0,0,1,39,19c-.12.35.31.65.55.36C41.74,16.56,43.65,11,37.93,5,37.64,4.74,37.19,5.14,37.39,5.49Zm2.76-.17A16.42,16.42,0,0,1,47,17.12a.33.33,0,0,0,.65.11c.92-3.49.4-9.44-7.17-12.53C40.08,4.54,39.82,5.08,40.15,5.32ZM21.69,15.76a16.94,16.94,0,0,0,10.47-9c.18-.36.75-.22.66.18-1.73,8-7.52,9.67-11.12,9.45C21.32,16.4,21.33,15.87,21.69,15.76Z",
6509
6495
  style: {
@@ -6511,29 +6497,29 @@ function Bun(props) {
6511
6497
  fillRule: "evenodd"
6512
6498
  }
6513
6499
  }),
6514
- /* @__PURE__ */ _jsx57("path", {
6500
+ /* @__PURE__ */ _jsx58("path", {
6515
6501
  id: "Outline",
6516
6502
  d: "M38,65.75C17.32,65.75.5,52.27.5,35.7c0-10,6.18-19.33,16.53-24.92,3-1.6,5.57-3.21,7.86-4.62,1.26-.78,2.45-1.51,3.6-2.19C32,1.89,35,.5,38,.5s5.62,1.2,8.9,3.14c1,.57,2,1.19,3.07,1.87,2.49,1.54,5.3,3.28,9,5.27C69.32,16.37,75.5,25.69,75.5,35.7,75.5,52.27,58.68,65.75,38,65.75ZM38,3c-2.42,0-5,1.25-8.25,3.13-1.13.66-2.3,1.39-3.54,2.15-2.33,1.44-5,3.07-8,4.7C8.69,18.13,3,26.62,3,35.7,3,50.89,18.7,63.25,38,63.25S73,50.89,73,35.7C73,26.62,67.31,18.13,57.78,13,54,11,51.05,9.12,48.66,7.64c-1.09-.67-2.09-1.29-3-1.84C42.63,4,40.42,3,38,3Z"
6517
6503
  })
6518
6504
  ]
6519
6505
  }),
6520
- /* @__PURE__ */ _jsxs37("g", {
6506
+ /* @__PURE__ */ _jsxs38("g", {
6521
6507
  id: "Mouth",
6522
6508
  children: [
6523
- /* @__PURE__ */ _jsx57("g", {
6509
+ /* @__PURE__ */ _jsx58("g", {
6524
6510
  id: "Background-2",
6525
6511
  "data-name": "Background",
6526
- children: /* @__PURE__ */ _jsx57("path", {
6512
+ children: /* @__PURE__ */ _jsx58("path", {
6527
6513
  d: "M45.05,43a8.93,8.93,0,0,1-2.92,4.71,6.81,6.81,0,0,1-4,1.88A6.84,6.84,0,0,1,34,47.71,8.93,8.93,0,0,1,31.12,43a.72.72,0,0,1,.8-.81H44.26A.72.72,0,0,1,45.05,43Z",
6528
6514
  style: {
6529
6515
  fill: "#b71422"
6530
6516
  }
6531
6517
  })
6532
6518
  }),
6533
- /* @__PURE__ */ _jsxs37("g", {
6519
+ /* @__PURE__ */ _jsxs38("g", {
6534
6520
  id: "Tongue",
6535
6521
  children: [
6536
- /* @__PURE__ */ _jsx57("path", {
6522
+ /* @__PURE__ */ _jsx58("path", {
6537
6523
  id: "Background-3",
6538
6524
  "data-name": "Background",
6539
6525
  d: "M34,47.79a6.91,6.91,0,0,0,4.12,1.9,6.91,6.91,0,0,0,4.11-1.9,10.63,10.63,0,0,0,1-1.07,6.83,6.83,0,0,0-4.9-2.31,6.15,6.15,0,0,0-5,2.78C33.56,47.4,33.76,47.6,34,47.79Z",
@@ -6541,24 +6527,24 @@ function Bun(props) {
6541
6527
  fill: "#ff6164"
6542
6528
  }
6543
6529
  }),
6544
- /* @__PURE__ */ _jsx57("path", {
6530
+ /* @__PURE__ */ _jsx58("path", {
6545
6531
  id: "Outline-2",
6546
6532
  "data-name": "Outline",
6547
6533
  d: "M34.16,47a5.36,5.36,0,0,1,4.19-2.08,6,6,0,0,1,4,1.69c.23-.25.45-.51.66-.77a7,7,0,0,0-4.71-1.93,6.36,6.36,0,0,0-4.89,2.36A9.53,9.53,0,0,0,34.16,47Z"
6548
6534
  })
6549
6535
  ]
6550
6536
  }),
6551
- /* @__PURE__ */ _jsx57("path", {
6537
+ /* @__PURE__ */ _jsx58("path", {
6552
6538
  id: "Outline-3",
6553
6539
  "data-name": "Outline",
6554
6540
  d: "M38.09,50.19a7.42,7.42,0,0,1-4.45-2,9.52,9.52,0,0,1-3.11-5.05,1.2,1.2,0,0,1,.26-1,1.41,1.41,0,0,1,1.13-.51H44.26a1.44,1.44,0,0,1,1.13.51,1.19,1.19,0,0,1,.25,1h0a9.52,9.52,0,0,1-3.11,5.05A7.42,7.42,0,0,1,38.09,50.19Zm-6.17-7.4c-.16,0-.2.07-.21.09a8.29,8.29,0,0,0,2.73,4.37A6.23,6.23,0,0,0,38.09,49a6.28,6.28,0,0,0,3.65-1.73,8.3,8.3,0,0,0,2.72-4.37.21.21,0,0,0-.2-.09Z"
6555
6541
  })
6556
6542
  ]
6557
6543
  }),
6558
- /* @__PURE__ */ _jsxs37("g", {
6544
+ /* @__PURE__ */ _jsxs38("g", {
6559
6545
  id: "Face",
6560
6546
  children: [
6561
- /* @__PURE__ */ _jsx57("ellipse", {
6547
+ /* @__PURE__ */ _jsx58("ellipse", {
6562
6548
  id: "Right_Blush",
6563
6549
  "data-name": "Right Blush",
6564
6550
  cx: "53.22",
@@ -6569,7 +6555,7 @@ function Bun(props) {
6569
6555
  fill: "#febbd0"
6570
6556
  }
6571
6557
  }),
6572
- /* @__PURE__ */ _jsx57("ellipse", {
6558
+ /* @__PURE__ */ _jsx58("ellipse", {
6573
6559
  id: "Left_Bluch",
6574
6560
  "data-name": "Left Bluch",
6575
6561
  cx: "22.95",
@@ -6580,14 +6566,14 @@ function Bun(props) {
6580
6566
  fill: "#febbd0"
6581
6567
  }
6582
6568
  }),
6583
- /* @__PURE__ */ _jsx57("path", {
6569
+ /* @__PURE__ */ _jsx58("path", {
6584
6570
  id: "Eyes",
6585
6571
  d: "M25.7,38.8a5.51,5.51,0,1,0-5.5-5.51A5.51,5.51,0,0,0,25.7,38.8Zm24.77,0A5.51,5.51,0,1,0,45,33.29,5.5,5.5,0,0,0,50.47,38.8Z",
6586
6572
  style: {
6587
6573
  fillRule: "evenodd"
6588
6574
  }
6589
6575
  }),
6590
- /* @__PURE__ */ _jsx57("path", {
6576
+ /* @__PURE__ */ _jsx58("path", {
6591
6577
  id: "Iris",
6592
6578
  d: "M24,33.64a2.07,2.07,0,1,0-2.06-2.07A2.07,2.07,0,0,0,24,33.64Zm24.77,0a2.07,2.07,0,1,0-2.06-2.07A2.07,2.07,0,0,0,48.75,33.64Z",
6593
6579
  style: {
@@ -6617,10 +6603,10 @@ function normalizeCommand(command) {
6617
6603
  function PackageManagerTabs({ command, additionalTabs = [] }) {
6618
6604
  let commandInfo;
6619
6605
  const packageMangerToIcon = {
6620
- npm: /* @__PURE__ */ _jsx58(Npm, {}),
6621
- yarn: /* @__PURE__ */ _jsx58(Yarn, {}),
6622
- pnpm: /* @__PURE__ */ _jsx58(Pnpm, {}),
6623
- bun: /* @__PURE__ */ _jsx58(Bun, {})
6606
+ npm: /* @__PURE__ */ _jsx59(Npm, {}),
6607
+ yarn: /* @__PURE__ */ _jsx59(Yarn, {}),
6608
+ pnpm: /* @__PURE__ */ _jsx59(Pnpm, {}),
6609
+ bun: /* @__PURE__ */ _jsx59(Bun, {})
6624
6610
  };
6625
6611
  additionalTabs.forEach((tab) => {
6626
6612
  packageMangerToIcon[tab.tool] = tab.icon;
@@ -6640,8 +6626,8 @@ function PackageManagerTabs({ command, additionalTabs = [] }) {
6640
6626
  }
6641
6627
  commandInfo.yarn = normalizeCommand(commandInfo.yarn);
6642
6628
  commandInfo.bun = normalizeCommand(commandInfo.bun);
6643
- return /* @__PURE__ */ _jsx58(Tabs, {
6644
- values: Object.entries(commandInfo).map(([key]) => /* @__PURE__ */ _jsxs38("div", {
6629
+ return /* @__PURE__ */ _jsx59(Tabs, {
6630
+ values: Object.entries(commandInfo).map(([key]) => /* @__PURE__ */ _jsxs39("div", {
6645
6631
  style: {
6646
6632
  display: "flex",
6647
6633
  alignItems: "center",
@@ -6649,7 +6635,7 @@ function PackageManagerTabs({ command, additionalTabs = [] }) {
6649
6635
  },
6650
6636
  children: [
6651
6637
  packageMangerToIcon[key],
6652
- /* @__PURE__ */ _jsx58("span", {
6638
+ /* @__PURE__ */ _jsx59("span", {
6653
6639
  style: {
6654
6640
  marginLeft: 6,
6655
6641
  marginBottom: 2
@@ -6658,9 +6644,9 @@ function PackageManagerTabs({ command, additionalTabs = [] }) {
6658
6644
  })
6659
6645
  ]
6660
6646
  }, key)),
6661
- children: Object.entries(commandInfo).map(([key, value]) => /* @__PURE__ */ _jsx58(Tab, {
6662
- children: /* @__PURE__ */ _jsx58(Pre, {
6663
- children: /* @__PURE__ */ _jsx58(Code, {
6647
+ children: Object.entries(commandInfo).map(([key, value]) => /* @__PURE__ */ _jsx59(Tab, {
6648
+ children: /* @__PURE__ */ _jsx59(Pre, {
6649
+ children: /* @__PURE__ */ _jsx59(Code, {
6664
6650
  className: "language-js",
6665
6651
  children: value
6666
6652
  })
@@ -6670,13 +6656,13 @@ function PackageManagerTabs({ command, additionalTabs = [] }) {
6670
6656
  }
6671
6657
 
6672
6658
  // src/theme-default/layout/DocLayout/docComponents/title.tsx
6673
- import { jsx as _jsx59 } from "react/jsx-runtime";
6659
+ import { jsx as _jsx60 } from "react/jsx-runtime";
6674
6660
 
6675
6661
  // src/theme-default/layout/DocLayout/docComponents/index.module.scss
6676
6662
  var index_module_default17 = { "title": "title_f1ea0", "blockquote": "blockquote_f1ea0", "link": "link_f1ea0", "inline-link": "inline-link_f1ea0", "inlineLink": "inline-link_f1ea0" };
6677
6663
 
6678
6664
  // src/theme-default/layout/DocLayout/docComponents/title.tsx
6679
- function _define_property38(obj, key, value) {
6665
+ function _define_property37(obj, key, value) {
6680
6666
  if (key in obj) {
6681
6667
  Object.defineProperty(obj, key, {
6682
6668
  value,
@@ -6689,7 +6675,7 @@ function _define_property38(obj, key, value) {
6689
6675
  }
6690
6676
  return obj;
6691
6677
  }
6692
- function _object_spread38(target) {
6678
+ function _object_spread37(target) {
6693
6679
  for (var i = 1; i < arguments.length; i++) {
6694
6680
  var source = arguments[i] != null ? arguments[i] : {};
6695
6681
  var ownKeys36 = Object.keys(source);
@@ -6699,7 +6685,7 @@ function _object_spread38(target) {
6699
6685
  }));
6700
6686
  }
6701
6687
  ownKeys36.forEach(function(key) {
6702
- _define_property38(target, key, source[key]);
6688
+ _define_property37(target, key, source[key]);
6703
6689
  });
6704
6690
  }
6705
6691
  return target;
@@ -6729,39 +6715,39 @@ function _object_spread_props30(target, source) {
6729
6715
  return target;
6730
6716
  }
6731
6717
  var H1 = (props) => {
6732
- return /* @__PURE__ */ _jsx59("h1", _object_spread_props30(_object_spread38({}, props), {
6718
+ return /* @__PURE__ */ _jsx60("h1", _object_spread_props30(_object_spread37({}, props), {
6733
6719
  className: `text-3xl mb-10 leading-10 tracking-tight ${index_module_default17.title}`
6734
6720
  }));
6735
6721
  };
6736
6722
  var H2 = (props) => {
6737
- return /* @__PURE__ */ _jsx59("h2", _object_spread_props30(_object_spread38({}, props), {
6723
+ return /* @__PURE__ */ _jsx60("h2", _object_spread_props30(_object_spread37({}, props), {
6738
6724
  className: `mt-14 mb-6 text-2xl tracking-tight ${index_module_default17.title}`
6739
6725
  }));
6740
6726
  };
6741
6727
  var H3 = (props) => {
6742
- return /* @__PURE__ */ _jsx59("h3", _object_spread_props30(_object_spread38({}, props), {
6728
+ return /* @__PURE__ */ _jsx60("h3", _object_spread_props30(_object_spread37({}, props), {
6743
6729
  className: `mt-10 mb-2 leading-7 text-xl ${index_module_default17.title}`
6744
6730
  }));
6745
6731
  };
6746
6732
  var H4 = (props) => {
6747
- return /* @__PURE__ */ _jsx59("h4", _object_spread_props30(_object_spread38({}, props), {
6733
+ return /* @__PURE__ */ _jsx60("h4", _object_spread_props30(_object_spread37({}, props), {
6748
6734
  className: `mt-8 leading-6 text-base ${index_module_default17.title}`
6749
6735
  }));
6750
6736
  };
6751
6737
  var H5 = (props) => {
6752
- return /* @__PURE__ */ _jsx59("h5", _object_spread_props30(_object_spread38({}, props), {
6738
+ return /* @__PURE__ */ _jsx60("h5", _object_spread_props30(_object_spread37({}, props), {
6753
6739
  className: index_module_default17.title
6754
6740
  }));
6755
6741
  };
6756
6742
  var H6 = (props) => {
6757
- return /* @__PURE__ */ _jsx59("h6", _object_spread_props30(_object_spread38({}, props), {
6743
+ return /* @__PURE__ */ _jsx60("h6", _object_spread_props30(_object_spread37({}, props), {
6758
6744
  className: index_module_default17.title
6759
6745
  }));
6760
6746
  };
6761
6747
 
6762
6748
  // src/theme-default/layout/DocLayout/docComponents/list.tsx
6763
- import { jsx as _jsx60 } from "react/jsx-runtime";
6764
- function _define_property39(obj, key, value) {
6749
+ import { jsx as _jsx61 } from "react/jsx-runtime";
6750
+ function _define_property38(obj, key, value) {
6765
6751
  if (key in obj) {
6766
6752
  Object.defineProperty(obj, key, {
6767
6753
  value,
@@ -6774,7 +6760,7 @@ function _define_property39(obj, key, value) {
6774
6760
  }
6775
6761
  return obj;
6776
6762
  }
6777
- function _object_spread39(target) {
6763
+ function _object_spread38(target) {
6778
6764
  for (var i = 1; i < arguments.length; i++) {
6779
6765
  var source = arguments[i] != null ? arguments[i] : {};
6780
6766
  var ownKeys36 = Object.keys(source);
@@ -6784,7 +6770,7 @@ function _object_spread39(target) {
6784
6770
  }));
6785
6771
  }
6786
6772
  ownKeys36.forEach(function(key) {
6787
- _define_property39(target, key, source[key]);
6773
+ _define_property38(target, key, source[key]);
6788
6774
  });
6789
6775
  }
6790
6776
  return target;
@@ -6814,24 +6800,24 @@ function _object_spread_props31(target, source) {
6814
6800
  return target;
6815
6801
  }
6816
6802
  var Ol = (props) => {
6817
- return /* @__PURE__ */ _jsx60("ol", _object_spread_props31(_object_spread39({}, props), {
6803
+ return /* @__PURE__ */ _jsx61("ol", _object_spread_props31(_object_spread38({}, props), {
6818
6804
  className: "list-decimal pl-5 my-4 leading-7"
6819
6805
  }));
6820
6806
  };
6821
6807
  var Ul = (props) => {
6822
- return /* @__PURE__ */ _jsx60("ul", _object_spread_props31(_object_spread39({}, props), {
6808
+ return /* @__PURE__ */ _jsx61("ul", _object_spread_props31(_object_spread38({}, props), {
6823
6809
  className: "list-disc pl-5 my-4 leading-7"
6824
6810
  }));
6825
6811
  };
6826
6812
  var Li = (props) => {
6827
- return /* @__PURE__ */ _jsx60("li", _object_spread_props31(_object_spread39({}, props), {
6813
+ return /* @__PURE__ */ _jsx61("li", _object_spread_props31(_object_spread38({}, props), {
6828
6814
  className: "[&:not(:first-child)]:mt-2"
6829
6815
  }));
6830
6816
  };
6831
6817
 
6832
6818
  // src/theme-default/layout/DocLayout/docComponents/table.tsx
6833
- import { jsx as _jsx61 } from "react/jsx-runtime";
6834
- function _define_property40(obj, key, value) {
6819
+ import { jsx as _jsx62 } from "react/jsx-runtime";
6820
+ function _define_property39(obj, key, value) {
6835
6821
  if (key in obj) {
6836
6822
  Object.defineProperty(obj, key, {
6837
6823
  value,
@@ -6844,7 +6830,7 @@ function _define_property40(obj, key, value) {
6844
6830
  }
6845
6831
  return obj;
6846
6832
  }
6847
- function _object_spread40(target) {
6833
+ function _object_spread39(target) {
6848
6834
  for (var i = 1; i < arguments.length; i++) {
6849
6835
  var source = arguments[i] != null ? arguments[i] : {};
6850
6836
  var ownKeys36 = Object.keys(source);
@@ -6854,7 +6840,7 @@ function _object_spread40(target) {
6854
6840
  }));
6855
6841
  }
6856
6842
  ownKeys36.forEach(function(key) {
6857
- _define_property40(target, key, source[key]);
6843
+ _define_property39(target, key, source[key]);
6858
6844
  });
6859
6845
  }
6860
6846
  return target;
@@ -6884,29 +6870,29 @@ function _object_spread_props32(target, source) {
6884
6870
  return target;
6885
6871
  }
6886
6872
  var Table = (props) => {
6887
- return /* @__PURE__ */ _jsx61("table", _object_spread_props32(_object_spread40({}, props), {
6873
+ return /* @__PURE__ */ _jsx62("table", _object_spread_props32(_object_spread39({}, props), {
6888
6874
  className: "table border-collapse text-base my-5 overflow-x-auto leading-7 border-gray-light-2"
6889
6875
  }));
6890
6876
  };
6891
6877
  var Tr = (props) => {
6892
- return /* @__PURE__ */ _jsx61("tr", _object_spread_props32(_object_spread40({}, props), {
6878
+ return /* @__PURE__ */ _jsx62("tr", _object_spread_props32(_object_spread39({}, props), {
6893
6879
  className: "border border-solid transition-colors duration-500 even:bg-soft border-gray-light-2"
6894
6880
  }));
6895
6881
  };
6896
6882
  var Td = (props) => {
6897
- return /* @__PURE__ */ _jsx61("td", _object_spread_props32(_object_spread40({}, props), {
6883
+ return /* @__PURE__ */ _jsx62("td", _object_spread_props32(_object_spread39({}, props), {
6898
6884
  className: "border border-solid px-4 py-2 border-gray-light-2"
6899
6885
  }));
6900
6886
  };
6901
6887
  var Th = (props) => {
6902
- return /* @__PURE__ */ _jsx61("th", _object_spread_props32(_object_spread40({}, props), {
6888
+ return /* @__PURE__ */ _jsx62("th", _object_spread_props32(_object_spread39({}, props), {
6903
6889
  className: "border border-solid px-4 py-2 text-text-1 text-base font-semibold border-gray-light-2"
6904
6890
  }));
6905
6891
  };
6906
6892
 
6907
6893
  // src/theme-default/layout/DocLayout/docComponents/hr.tsx
6908
- import { jsx as _jsx62 } from "react/jsx-runtime";
6909
- function _define_property41(obj, key, value) {
6894
+ import { jsx as _jsx63 } from "react/jsx-runtime";
6895
+ function _define_property40(obj, key, value) {
6910
6896
  if (key in obj) {
6911
6897
  Object.defineProperty(obj, key, {
6912
6898
  value,
@@ -6919,7 +6905,7 @@ function _define_property41(obj, key, value) {
6919
6905
  }
6920
6906
  return obj;
6921
6907
  }
6922
- function _object_spread41(target) {
6908
+ function _object_spread40(target) {
6923
6909
  for (var i = 1; i < arguments.length; i++) {
6924
6910
  var source = arguments[i] != null ? arguments[i] : {};
6925
6911
  var ownKeys36 = Object.keys(source);
@@ -6929,7 +6915,7 @@ function _object_spread41(target) {
6929
6915
  }));
6930
6916
  }
6931
6917
  ownKeys36.forEach(function(key) {
6932
- _define_property41(target, key, source[key]);
6918
+ _define_property40(target, key, source[key]);
6933
6919
  });
6934
6920
  }
6935
6921
  return target;
@@ -6959,14 +6945,14 @@ function _object_spread_props33(target, source) {
6959
6945
  return target;
6960
6946
  }
6961
6947
  var Hr = (props) => {
6962
- return /* @__PURE__ */ _jsx62("hr", _object_spread_props33(_object_spread41({}, props), {
6948
+ return /* @__PURE__ */ _jsx63("hr", _object_spread_props33(_object_spread40({}, props), {
6963
6949
  className: "my-12 border-t bordder-solid border-divider-light"
6964
6950
  }));
6965
6951
  };
6966
6952
 
6967
6953
  // src/theme-default/layout/DocLayout/docComponents/link.tsx
6968
- import { jsx as _jsx63 } from "react/jsx-runtime";
6969
- function _define_property42(obj, key, value) {
6954
+ import { jsx as _jsx64 } from "react/jsx-runtime";
6955
+ function _define_property41(obj, key, value) {
6970
6956
  if (key in obj) {
6971
6957
  Object.defineProperty(obj, key, {
6972
6958
  value,
@@ -6979,7 +6965,7 @@ function _define_property42(obj, key, value) {
6979
6965
  }
6980
6966
  return obj;
6981
6967
  }
6982
- function _object_spread42(target) {
6968
+ function _object_spread41(target) {
6983
6969
  for (var i = 1; i < arguments.length; i++) {
6984
6970
  var source = arguments[i] != null ? arguments[i] : {};
6985
6971
  var ownKeys36 = Object.keys(source);
@@ -6989,7 +6975,7 @@ function _object_spread42(target) {
6989
6975
  }));
6990
6976
  }
6991
6977
  ownKeys36.forEach(function(key) {
6992
- _define_property42(target, key, source[key]);
6978
+ _define_property41(target, key, source[key]);
6993
6979
  });
6994
6980
  }
6995
6981
  return target;
@@ -7023,11 +7009,11 @@ var A = (props) => {
7023
7009
  const { normalizeLinkHref } = usePathUtils();
7024
7010
  const hasHeaderAnchor = className.includes("header-anchor");
7025
7011
  if (hasHeaderAnchor || href.startsWith("#")) {
7026
- return /* @__PURE__ */ _jsx63("a", _object_spread_props34(_object_spread42({}, props), {
7012
+ return /* @__PURE__ */ _jsx64("a", _object_spread_props34(_object_spread41({}, props), {
7027
7013
  className: `${index_module_default17.link} ${className}`
7028
7014
  }));
7029
7015
  } else {
7030
- return /* @__PURE__ */ _jsx63(Link, _object_spread_props34(_object_spread42({}, props), {
7016
+ return /* @__PURE__ */ _jsx64(Link, _object_spread_props34(_object_spread41({}, props), {
7031
7017
  className: `${className} ${index_module_default17.link} ${index_module_default17["inline-link"]}`,
7032
7018
  href: normalizeLinkHref(href)
7033
7019
  }));
@@ -7035,8 +7021,8 @@ var A = (props) => {
7035
7021
  };
7036
7022
 
7037
7023
  // src/theme-default/layout/DocLayout/docComponents/paragraph.tsx
7038
- import { jsx as _jsx64 } from "react/jsx-runtime";
7039
- function _define_property43(obj, key, value) {
7024
+ import { jsx as _jsx65 } from "react/jsx-runtime";
7025
+ function _define_property42(obj, key, value) {
7040
7026
  if (key in obj) {
7041
7027
  Object.defineProperty(obj, key, {
7042
7028
  value,
@@ -7049,7 +7035,7 @@ function _define_property43(obj, key, value) {
7049
7035
  }
7050
7036
  return obj;
7051
7037
  }
7052
- function _object_spread43(target) {
7038
+ function _object_spread42(target) {
7053
7039
  for (var i = 1; i < arguments.length; i++) {
7054
7040
  var source = arguments[i] != null ? arguments[i] : {};
7055
7041
  var ownKeys36 = Object.keys(source);
@@ -7059,7 +7045,7 @@ function _object_spread43(target) {
7059
7045
  }));
7060
7046
  }
7061
7047
  ownKeys36.forEach(function(key) {
7062
- _define_property43(target, key, source[key]);
7048
+ _define_property42(target, key, source[key]);
7063
7049
  });
7064
7050
  }
7065
7051
  return target;
@@ -7089,17 +7075,17 @@ function _object_spread_props35(target, source) {
7089
7075
  return target;
7090
7076
  }
7091
7077
  var P = (props) => {
7092
- return /* @__PURE__ */ _jsx64("p", _object_spread_props35(_object_spread43({}, props), {
7078
+ return /* @__PURE__ */ _jsx65("p", _object_spread_props35(_object_spread42({}, props), {
7093
7079
  className: "my-4 leading-7"
7094
7080
  }));
7095
7081
  };
7096
7082
  var Blockquote = (props) => {
7097
- return /* @__PURE__ */ _jsx64("blockquote", _object_spread_props35(_object_spread43({}, props), {
7083
+ return /* @__PURE__ */ _jsx65("blockquote", _object_spread_props35(_object_spread42({}, props), {
7098
7084
  className: `border-l-2 border-solid border-divider pl-4 my-6 transition-colors duration-500 ${index_module_default17.blockquote}`
7099
7085
  }));
7100
7086
  };
7101
7087
  var Strong = (props) => {
7102
- return /* @__PURE__ */ _jsx64("strong", _object_spread_props35(_object_spread43({}, props), {
7088
+ return /* @__PURE__ */ _jsx65("strong", _object_spread_props35(_object_spread42({}, props), {
7103
7089
  className: "font-semibold"
7104
7090
  }));
7105
7091
  };
@@ -7160,7 +7146,9 @@ export {
7160
7146
  isMobileDevice,
7161
7147
  scrollToTarget,
7162
7148
  setup,
7149
+ useDisableNav,
7163
7150
  useEditLink,
7151
+ useHiddenNav,
7164
7152
  useLocaleSiteData,
7165
7153
  usePathUtils,
7166
7154
  usePrevNextPage,