@rspress/core 0.0.13 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -120,14 +120,14 @@ function _object_spread_props(target, source) {
120
120
  return target;
121
121
  }
122
122
  function useLocaleSiteData() {
123
- var _pageData_siteData, _pageData, _themeConfig;
123
+ var _pageData_siteData;
124
124
  const pageData = usePageData2();
125
125
  const { page: { lang } } = pageData;
126
126
  var _pageData_siteData_themeConfig;
127
- const themeConfig = (_pageData_siteData_themeConfig = (_pageData = pageData) === null || _pageData === void 0 ? void 0 : (_pageData_siteData = _pageData.siteData) === null || _pageData_siteData === void 0 ? void 0 : _pageData_siteData.themeConfig) !== null && _pageData_siteData_themeConfig !== void 0 ? _pageData_siteData_themeConfig : {};
127
+ const themeConfig = (_pageData_siteData_themeConfig = pageData === null || pageData === void 0 ? void 0 : (_pageData_siteData = pageData.siteData) === null || _pageData_siteData === void 0 ? void 0 : _pageData_siteData.themeConfig) !== null && _pageData_siteData_themeConfig !== void 0 ? _pageData_siteData_themeConfig : {};
128
128
  var _pageData_siteData_lang;
129
129
  const defaultLang = (_pageData_siteData_lang = pageData.siteData.lang) !== null && _pageData_siteData_lang !== void 0 ? _pageData_siteData_lang : "";
130
- const locales = (_themeConfig = themeConfig) === null || _themeConfig === void 0 ? void 0 : _themeConfig.locales;
130
+ const locales = themeConfig === null || themeConfig === void 0 ? void 0 : themeConfig.locales;
131
131
  if (!locales || locales.length === 0) {
132
132
  return {
133
133
  nav: themeConfig.nav,
@@ -326,7 +326,6 @@ function bindingWindowScroll() {
326
326
  });
327
327
  }
328
328
  function bindingAsideScroll() {
329
- var _aside;
330
329
  function isBottom() {
331
330
  return document.documentElement.scrollTop + window.innerHeight >= document.documentElement.scrollHeight;
332
331
  }
@@ -340,16 +339,15 @@ function bindingAsideScroll() {
340
339
  return;
341
340
  }
342
341
  let prevActiveLink = null;
343
- const headers = Array.from(((_aside = aside) === null || _aside === void 0 ? void 0 : _aside.getElementsByTagName("a")) || []).map((item) => decodeURIComponent(item.hash));
342
+ const headers = Array.from((aside === null || aside === void 0 ? void 0 : aside.getElementsByTagName("a")) || []).map((item) => decodeURIComponent(item.hash));
344
343
  if (marker && !headers.length) {
345
344
  marker.style.opacity = "0";
346
345
  return;
347
346
  }
348
347
  const activate = (links2, index) => {
349
348
  if (links2[index]) {
350
- var _id, _aside2;
351
349
  const id = links2[index].getAttribute("href");
352
- const currentLink = (_aside2 = aside) === null || _aside2 === void 0 ? void 0 : _aside2.querySelector(`a[href="#${(_id = id) === null || _id === void 0 ? void 0 : _id.slice(1)}"] > span`);
350
+ const currentLink = aside === null || aside === void 0 ? void 0 : aside.querySelector(`a[href="#${id === null || id === void 0 ? void 0 : id.slice(1)}"] > span`);
353
351
  if (currentLink) {
354
352
  if (prevActiveLink) {
355
353
  prevActiveLink.classList.remove("aside-active");
@@ -582,9 +580,8 @@ function Link(props) {
582
580
  var _ref = _async_to_generator(function* (e) {
583
581
  e.preventDefault();
584
582
  if (!process.env.__SSR__) {
585
- var _matchedRoutes, _onNavigate;
586
583
  const matchedRoutes = matchRoutes(routes, normalizeRoutePath(withBaseUrl));
587
- if ((_matchedRoutes = matchedRoutes) === null || _matchedRoutes === void 0 ? void 0 : _matchedRoutes.length) {
584
+ if (matchedRoutes === null || matchedRoutes === void 0 ? void 0 : matchedRoutes.length) {
588
585
  const timer = setTimeout(() => {
589
586
  nprogress.start();
590
587
  }, 200);
@@ -592,7 +589,7 @@ function Link(props) {
592
589
  clearTimeout(timer);
593
590
  nprogress.done();
594
591
  }
595
- (_onNavigate = onNavigate) === null || _onNavigate === void 0 ? void 0 : _onNavigate();
592
+ onNavigate === null || onNavigate === void 0 ? void 0 : onNavigate();
596
593
  navigate(withBaseUrl, {
597
594
  replace: false
598
595
  });
@@ -628,12 +625,11 @@ var index_module_default3 = { "pager": "pager_33e00", "has-next": "has-next_33e0
628
625
  // src/theme-default/components/DocFooter/index.tsx
629
626
  import { normalizeHref as normalizeHref2, usePageData as usePageData4 } from "@/runtime";
630
627
  function DocFooter() {
631
- var _themeConfig;
632
628
  const { prevPage, nextPage } = usePrevNextPage();
633
629
  const { prevPageText = "Previous Page", nextPageText = "Next page", lastUpdatedText: localesLastUpdatedText = "Last Updated", lastUpdated: localesLastUpdated = false } = useLocaleSiteData();
634
630
  const { page: { lastUpdatedTime }, siteData: siteData2 } = usePageData4();
635
631
  const { themeConfig } = siteData2;
636
- const lastUpdatedText = ((_themeConfig = themeConfig) === null || _themeConfig === void 0 ? void 0 : _themeConfig.lastUpdatedText) || localesLastUpdatedText;
632
+ const lastUpdatedText = (themeConfig === null || themeConfig === void 0 ? void 0 : themeConfig.lastUpdatedText) || localesLastUpdatedText;
637
633
  const showLastUpdated = themeConfig.lastUpdated || localesLastUpdated;
638
634
  return /* @__PURE__ */ _jsxs3("footer", {
639
635
  className: "mt-8",
@@ -871,7 +867,7 @@ function _object_spread_props3(target, source) {
871
867
  return target;
872
868
  }
873
869
  function SidebarGroup(props) {
874
- var _item_items, _item;
870
+ var _item_items;
875
871
  const { item, depth = 0, activeMatcher, id, setSidebarData } = props;
876
872
  const navigate = useNavigate2();
877
873
  const isGroupMatched = matchCache.get(item);
@@ -1001,7 +997,7 @@ function SidebarGroup(props) {
1001
997
  opacity: initialState.current ? 0 : 1,
1002
998
  marginLeft: depth === 0 ? "12px" : 0
1003
999
  },
1004
- children: (_item = item) === null || _item === void 0 ? void 0 : (_item_items = _item.items) === null || _item_items === void 0 ? void 0 : _item_items.map((item2, index) => (
1000
+ children: item === null || item === void 0 ? void 0 : (_item_items = item.items) === null || _item_items === void 0 ? void 0 : _item_items.map((item2, index) => (
1005
1001
  // eslint-disable-next-line react/no-array-index-key
1006
1002
  /* @__PURE__ */ _jsx8("div", {
1007
1003
  children: /* @__PURE__ */ _jsx8(SidebarItem, _object_spread_props3(_object_spread4({}, props), {
@@ -1136,11 +1132,10 @@ var highlightTitleStyle = {
1136
1132
  };
1137
1133
  var matchCache = /* @__PURE__ */ new WeakMap();
1138
1134
  function SideBar(props) {
1139
- var _frontmatter, _themeConfig;
1140
1135
  const { isSidebarOpen, langRoutePrefix, pathname: rawPathname, sidebarData: rawSidebarData } = props;
1141
1136
  const { siteData: { themeConfig }, page: { frontmatter } } = usePageData5();
1142
1137
  var _frontmatter_hideNavbar, _ref;
1143
- const hideNavbar = (_ref = (_frontmatter_hideNavbar = (_frontmatter = frontmatter) === null || _frontmatter === void 0 ? void 0 : _frontmatter.hideNavbar) !== null && _frontmatter_hideNavbar !== void 0 ? _frontmatter_hideNavbar : (_themeConfig = themeConfig) === null || _themeConfig === void 0 ? void 0 : _themeConfig.hideNavbar) !== null && _ref !== void 0 ? _ref : false;
1138
+ 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;
1144
1139
  const [sidebarData, setSidebarData] = useState2(rawSidebarData.filter(Boolean).flat());
1145
1140
  const pathname = decodeURIComponent(rawPathname);
1146
1141
  useEffect5(() => {
@@ -1186,9 +1181,8 @@ function SideBar(props) {
1186
1181
  };
1187
1182
  const activeMatcher = (path) => isActive(removeBase(removeLangPrefix(pathname)), removeLangPrefix(path), true);
1188
1183
  const preloadLink = (link) => {
1189
- var _match;
1190
1184
  const match = matchRoutes2(routes2, link);
1191
- if ((_match = match) === null || _match === void 0 ? void 0 : _match.length) {
1185
+ if (match === null || match === void 0 ? void 0 : match.length) {
1192
1186
  const { route } = match[0];
1193
1187
  route.preload();
1194
1188
  }
@@ -1291,9 +1285,6 @@ var SvgMenu = (props) => /* @__PURE__ */ _jsx11("svg", _object_spread_props4(_ob
1291
1285
  }));
1292
1286
  var menu_default = SvgMenu;
1293
1287
 
1294
- // src/theme-default/components/LocalSideBar/index.module.scss
1295
- var index_module_default5 = { "localNav": "localNav_dce60", "menu": "menu_dce60", "backDrop": "backDrop_dce60" };
1296
-
1297
1288
  // src/theme-default/components/LocalSideBar/index.tsx
1298
1289
  function SideMenu(props) {
1299
1290
  const { langRoutePrefix, pathname, sidebarData } = props;
@@ -1312,10 +1303,10 @@ function SideMenu(props) {
1312
1303
  return /* @__PURE__ */ _jsxs6(Fragment, {
1313
1304
  children: [
1314
1305
  /* @__PURE__ */ _jsx12("div", {
1315
- className: index_module_default5.localNav,
1306
+ className: "rspress-sidebar-menu",
1316
1307
  children: /* @__PURE__ */ _jsxs6("button", {
1317
1308
  onClick: openSidebar,
1318
- className: `${index_module_default5.menu} flex-center`,
1309
+ className: "flex-center",
1319
1310
  children: [
1320
1311
  /* @__PURE__ */ _jsx12("div", {
1321
1312
  className: "text-md mr-2",
@@ -1336,7 +1327,7 @@ function SideMenu(props) {
1336
1327
  }),
1337
1328
  isSidebarOpen ? /* @__PURE__ */ _jsx12("div", {
1338
1329
  onClick: closeSidebar,
1339
- className: index_module_default5.backDrop
1330
+ className: "rspress-sidebar-back-drop"
1340
1331
  }) : null
1341
1332
  ]
1342
1333
  });
@@ -1347,7 +1338,7 @@ import { jsx as _jsx13, jsxs as _jsxs7 } from "react/jsx-runtime";
1347
1338
  import { useMemo } from "react";
1348
1339
 
1349
1340
  // src/theme-default/components/Overview/index.module.scss
1350
- 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" };
1341
+ 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" };
1351
1342
 
1352
1343
  // src/theme-default/components/Overview/index.tsx
1353
1344
  import { usePageData as usePageData6, normalizeHref as normalizeHref5, withBase as withBase5, isEqualPath as isEqualPath4 } from "@/runtime";
@@ -1410,7 +1401,7 @@ function Overview() {
1410
1401
  const overviewModules = pages.filter((page) => page.routePath.startsWith(routePath.replace(/overview$/, "")) && page.routePath !== routePath);
1411
1402
  const { items: overviewSidebarGroups } = useSidebarData();
1412
1403
  function normalizeSidebarItem(item) {
1413
- var _pageModule_toc, _pageModule;
1404
+ var _pageModule_toc;
1414
1405
  const pageModule = overviewModules.find((m) => isEqualPath4(m.routePath, withBase5(item.link || "")));
1415
1406
  const getChildLink = (traverseItem) => {
1416
1407
  if (traverseItem.link) {
@@ -1424,7 +1415,7 @@ function Overview() {
1424
1415
  const link = getChildLink(item);
1425
1416
  return _object_spread_props5(_object_spread8({}, item), {
1426
1417
  link,
1427
- headers: ((_pageModule = 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)) || []
1418
+ 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)) || []
1428
1419
  });
1429
1420
  }
1430
1421
  const groups = useMemo(() => {
@@ -1465,11 +1456,11 @@ function Overview() {
1465
1456
  children: group.name
1466
1457
  }),
1467
1458
  /* @__PURE__ */ _jsx13("div", {
1468
- className: index_module_default6.overviewGroups,
1459
+ className: index_module_default5.overviewGroups,
1469
1460
  children: group.items.map((item) => {
1470
1461
  var _item_headers;
1471
1462
  return /* @__PURE__ */ _jsxs7("div", {
1472
- className: index_module_default6.overviewGroup,
1463
+ className: index_module_default5.overviewGroup,
1473
1464
  children: [
1474
1465
  /* @__PURE__ */ _jsx13("div", {
1475
1466
  className: "flex",
@@ -1486,7 +1477,7 @@ function Overview() {
1486
1477
  /* @__PURE__ */ _jsx13("ul", {
1487
1478
  className: "list-none",
1488
1479
  children: (_item_headers = item.headers) === null || _item_headers === void 0 ? void 0 : _item_headers.map((header) => /* @__PURE__ */ _jsx13("li", {
1489
- className: `${index_module_default6.overviewGroupLi} ${index_module_default6[`level${header.depth}`]} first:mt-2`,
1480
+ className: `${index_module_default5.overviewGroupLi} ${index_module_default5[`level${header.depth}`]} first:mt-2`,
1490
1481
  children: /* @__PURE__ */ _jsx13(Link, {
1491
1482
  href: `${normalizeHref5(item.link)}#${header.id}`,
1492
1483
  children: header.text
@@ -1508,7 +1499,7 @@ import { createContext } from "react";
1508
1499
  var TabDataContext = createContext({});
1509
1500
 
1510
1501
  // src/theme-default/layout/DocLayout/index.module.scss
1511
- var index_module_default7 = { "aside-container": "aside-container_feeda", "asideContainer": "aside-container_feeda", "docLayout": "docLayout_feeda", "content": "content_feeda" };
1502
+ var index_module_default6 = { "aside-container": "aside-container_feeda", "asideContainer": "aside-container_feeda", "docLayout": "docLayout_feeda", "content": "content_feeda" };
1512
1503
 
1513
1504
  // src/theme-default/layout/DocLayout/index.tsx
1514
1505
  import { Content, usePageData as usePageData7, normalizeSlash } from "@/runtime";
@@ -1541,7 +1532,6 @@ function _object_spread9(target) {
1541
1532
  return target;
1542
1533
  }
1543
1534
  function DocLayout(props) {
1544
- var _frontmatter, _themeConfig, _frontmatter1, _localesData, _themeConfig1, _frontmatter2, _frontmatter3;
1545
1535
  const { beforeDocFooter, beforeDoc, afterDoc, beforeOutline, afterOutline } = props;
1546
1536
  const { siteData: siteData2, page } = usePageData7();
1547
1537
  const { toc = [], frontmatter } = page;
@@ -1554,18 +1544,17 @@ function DocLayout(props) {
1554
1544
  const { items: sidebarData } = useSidebarData();
1555
1545
  const langRoutePrefix = normalizeSlash(localesData.langRoutePrefix || "");
1556
1546
  var _frontmatter_hideNavbar, _ref;
1557
- const hideNavbar = (_ref = (_frontmatter_hideNavbar = (_frontmatter = frontmatter) === null || _frontmatter === void 0 ? void 0 : _frontmatter.hideNavbar) !== null && _frontmatter_hideNavbar !== void 0 ? _frontmatter_hideNavbar : (_themeConfig = themeConfig) === null || _themeConfig === void 0 ? void 0 : _themeConfig.hideNavbar) !== null && _ref !== void 0 ? _ref : false;
1558
- const hasSidebar = ((_frontmatter1 = frontmatter) === null || _frontmatter1 === void 0 ? void 0 : _frontmatter1.sidebar) !== false && Object.keys(sidebar).length > 0;
1559
- const outlineTitle = ((_localesData = localesData) === null || _localesData === void 0 ? void 0 : _localesData.outlineTitle) || ((_themeConfig1 = themeConfig) === null || _themeConfig1 === void 0 ? void 0 : _themeConfig1.outlineTitle) || "ON THIS PAGE";
1547
+ 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;
1548
+ const hasSidebar = (frontmatter === null || frontmatter === void 0 ? void 0 : frontmatter.sidebar) !== false && Object.keys(sidebar).length > 0;
1549
+ const outlineTitle = (localesData === null || localesData === void 0 ? void 0 : localesData.outlineTitle) || (themeConfig === null || themeConfig === void 0 ? void 0 : themeConfig.outlineTitle) || "ON THIS PAGE";
1560
1550
  var _frontmatter_overview;
1561
- const isOverviewPage = (_frontmatter_overview = (_frontmatter2 = frontmatter) === null || _frontmatter2 === void 0 ? void 0 : _frontmatter2.overview) !== null && _frontmatter_overview !== void 0 ? _frontmatter_overview : false;
1551
+ const isOverviewPage = (_frontmatter_overview = frontmatter === null || frontmatter === void 0 ? void 0 : frontmatter.overview) !== null && _frontmatter_overview !== void 0 ? _frontmatter_overview : false;
1562
1552
  var _frontmatter_footer;
1563
- const hasFooter = (_frontmatter_footer = (_frontmatter3 = frontmatter) === null || _frontmatter3 === void 0 ? void 0 : _frontmatter3.footer) !== null && _frontmatter_footer !== void 0 ? _frontmatter_footer : true;
1553
+ const hasFooter = (_frontmatter_footer = frontmatter === null || frontmatter === void 0 ? void 0 : frontmatter.footer) !== null && _frontmatter_footer !== void 0 ? _frontmatter_footer : true;
1564
1554
  const getHasAside = () => {
1565
- var _frontmatter4, _themeConfig2;
1566
1555
  const defaultHasAside = typeof window === "undefined" ? true : window.top === window.self;
1567
1556
  var _frontmatter_outline, _ref2;
1568
- return ((_ref2 = (_frontmatter_outline = (_frontmatter4 = frontmatter) === null || _frontmatter4 === void 0 ? void 0 : _frontmatter4.outline) !== null && _frontmatter_outline !== void 0 ? _frontmatter_outline : (_themeConfig2 = themeConfig) === null || _themeConfig2 === void 0 ? void 0 : _themeConfig2.outline) !== null && _ref2 !== void 0 ? _ref2 : defaultHasAside) && headers.length > 0;
1557
+ 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;
1569
1558
  };
1570
1559
  const [hasAside, setHasAside] = useState4(getHasAside());
1571
1560
  useEffect7(() => {
@@ -1575,7 +1564,7 @@ function DocLayout(props) {
1575
1564
  siteData2
1576
1565
  ]);
1577
1566
  return /* @__PURE__ */ _jsxs8("div", {
1578
- className: `${index_module_default7.docLayout} pt-0`,
1567
+ className: `${index_module_default6.docLayout} pt-0`,
1579
1568
  style: _object_spread9({}, hideNavbar ? {
1580
1569
  marginTop: 0
1581
1570
  } : {}),
@@ -1587,24 +1576,27 @@ function DocLayout(props) {
1587
1576
  sidebarData
1588
1577
  }) : null,
1589
1578
  /* @__PURE__ */ _jsxs8("div", {
1590
- className: `${index_module_default7.content} rspress-doc-container flex flex-shrink-0`,
1579
+ className: `${index_module_default6.content} rspress-doc-container flex flex-shrink-0`,
1591
1580
  children: [
1592
1581
  /* @__PURE__ */ _jsx14("div", {
1593
1582
  className: "w-full",
1594
1583
  children: isOverviewPage ? /* @__PURE__ */ _jsx14(Overview, {}) : /* @__PURE__ */ _jsxs8("div", {
1595
- className: "rspress-doc",
1596
1584
  children: [
1597
- /* @__PURE__ */ _jsx14(TabDataContext.Provider, {
1598
- value: {
1599
- tabData,
1600
- setTabData
1601
- },
1602
- children: /* @__PURE__ */ _jsx14(MDXProvider, {
1603
- components: getCustomMDXComponent(),
1604
- children: /* @__PURE__ */ _jsx14(Content, {})
1585
+ /* @__PURE__ */ _jsx14("div", {
1586
+ className: "rspress-doc",
1587
+ children: /* @__PURE__ */ _jsx14(TabDataContext.Provider, {
1588
+ value: {
1589
+ tabData,
1590
+ setTabData
1591
+ },
1592
+ children: /* @__PURE__ */ _jsx14(MDXProvider, {
1593
+ components: getCustomMDXComponent(),
1594
+ children: /* @__PURE__ */ _jsx14(Content, {})
1595
+ })
1605
1596
  })
1606
1597
  }),
1607
1598
  /* @__PURE__ */ _jsxs8("div", {
1599
+ className: "rspress-doc-footer",
1608
1600
  children: [
1609
1601
  beforeDocFooter,
1610
1602
  hasFooter && /* @__PURE__ */ _jsx14(DocFooter, {})
@@ -1614,7 +1606,7 @@ function DocLayout(props) {
1614
1606
  })
1615
1607
  }),
1616
1608
  hasAside ? /* @__PURE__ */ _jsx14("div", {
1617
- className: index_module_default7.asideContainer,
1609
+ className: index_module_default6.asideContainer,
1618
1610
  style: _object_spread9({
1619
1611
  maxHeight: "calc(100vh - (var(--rp-nav-height) + 32px))",
1620
1612
  overflow: "scroll"
@@ -1671,7 +1663,6 @@ function _object_spread10(target) {
1671
1663
  return target;
1672
1664
  }
1673
1665
  var Layout = (props) => {
1674
- var _frontmatter, _themeConfig, _frontmatter1, _frontmatter2;
1675
1666
  const { top, bottom, beforeDocFooter, beforeDoc, afterDoc, beforeOutline, afterOutline, beforeNavTitle, afterNavTitle, beforeNav } = props;
1676
1667
  const docProps = {
1677
1668
  beforeDocFooter,
@@ -1692,9 +1683,9 @@ var Layout = (props) => {
1692
1683
  const localesData = useLocaleSiteData();
1693
1684
  const defaultLang = siteData2.lang || "";
1694
1685
  var _frontmatter_navbar, _themeConfig_hideNavbar;
1695
- const hideNavbar = !((_frontmatter_navbar = (_frontmatter = frontmatter) === null || _frontmatter === void 0 ? void 0 : _frontmatter.navbar) !== null && _frontmatter_navbar !== void 0 ? _frontmatter_navbar : true) || ((_themeConfig_hideNavbar = (_themeConfig = themeConfig) === null || _themeConfig === void 0 ? void 0 : _themeConfig.hideNavbar) !== null && _themeConfig_hideNavbar !== void 0 ? _themeConfig_hideNavbar : false);
1686
+ 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);
1696
1687
  var _ref;
1697
- let title = (_ref = (_frontmatter1 = frontmatter) === null || _frontmatter1 === void 0 ? void 0 : _frontmatter1.title) !== null && _ref !== void 0 ? _ref : articleTitle;
1688
+ let title = (_ref = frontmatter === null || frontmatter === void 0 ? void 0 : frontmatter.title) !== null && _ref !== void 0 ? _ref : articleTitle;
1698
1689
  const mainTitle = siteData2.title || localesData.title;
1699
1690
  const localeLanguages = Object.values(siteData2.themeConfig.locales || {});
1700
1691
  const langs = localeLanguages.map((item) => item.lang) || [];
@@ -1703,7 +1694,7 @@ var Layout = (props) => {
1703
1694
  } else {
1704
1695
  title = mainTitle;
1705
1696
  }
1706
- const description = ((_frontmatter2 = frontmatter) === null || _frontmatter2 === void 0 ? void 0 : _frontmatter2.description) || siteData2.description || localesData.description;
1697
+ const description = (frontmatter === null || frontmatter === void 0 ? void 0 : frontmatter.description) || siteData2.description || localesData.description;
1707
1698
  const getContentLayout = () => {
1708
1699
  switch (pageType) {
1709
1700
  case "home":
@@ -1800,7 +1791,7 @@ import { jsx as _jsx16, jsxs as _jsxs10 } from "react/jsx-runtime";
1800
1791
  import React6 from "react";
1801
1792
 
1802
1793
  // src/theme-default/components/Button/index.module.scss
1803
- var index_module_default8 = { "button": "button_c5dfc", "medium": "medium_c5dfc", "big": "big_c5dfc", "brand": "brand_c5dfc", "alt": "alt_c5dfc" };
1794
+ var index_module_default7 = { "button": "button_c5dfc", "medium": "medium_c5dfc", "big": "big_c5dfc", "brand": "brand_c5dfc", "alt": "alt_c5dfc" };
1804
1795
 
1805
1796
  // src/theme-default/components/Button/index.tsx
1806
1797
  function Button(props) {
@@ -1812,13 +1803,13 @@ function Button(props) {
1812
1803
  type = external ? "a" : Link;
1813
1804
  }
1814
1805
  return /* @__PURE__ */ React6.createElement(type !== null && type !== void 0 ? type : "a", {
1815
- className: `${index_module_default8.button} ${index_module_default8[theme]} ${index_module_default8[size]} ${className}`,
1806
+ className: `${index_module_default7.button} ${index_module_default7[theme]} ${index_module_default7[size]} ${className}`,
1816
1807
  href
1817
1808
  }, props.text);
1818
1809
  }
1819
1810
 
1820
1811
  // src/theme-default/components/HomeHero/index.module.scss
1821
- var index_module_default9 = { "clip": "clip_1e4a0", "mask": "mask_1e4a0" };
1812
+ var index_module_default8 = { "clip": "clip_1e4a0", "mask": "mask_1e4a0" };
1822
1813
 
1823
1814
  // src/theme-default/components/HomeHero/index.tsx
1824
1815
  import { normalizeHref as normalizeHref6 } from "@/runtime";
@@ -1830,14 +1821,14 @@ var DEFAULT_HERO = {
1830
1821
  image: void 0
1831
1822
  };
1832
1823
  function HomeHero({ frontmatter }) {
1833
- var _frontmatter, _hero_text, _hero_image, _hero_image1;
1834
- const hero = ((_frontmatter = frontmatter) === null || _frontmatter === void 0 ? void 0 : _frontmatter.hero) || DEFAULT_HERO;
1824
+ var _hero_text, _hero_image, _hero_image1;
1825
+ const hero = (frontmatter === null || frontmatter === void 0 ? void 0 : frontmatter.hero) || DEFAULT_HERO;
1835
1826
  const hasImage = hero.image !== void 0;
1836
1827
  return /* @__PURE__ */ _jsxs10("div", {
1837
1828
  className: "m-auto pt-0 px-6 pb-12 sm:pt-10 sm:px-16 md:pt-16 md:px-16 md:pb-16",
1838
1829
  children: [
1839
1830
  /* @__PURE__ */ _jsx16("div", {
1840
- className: index_module_default9.mask,
1831
+ className: index_module_default8.mask,
1841
1832
  style: {
1842
1833
  left: hasImage ? "75%" : "50%"
1843
1834
  }
@@ -1851,7 +1842,7 @@ function HomeHero({ frontmatter }) {
1851
1842
  /* @__PURE__ */ _jsx16("h1", {
1852
1843
  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",
1853
1844
  children: /* @__PURE__ */ _jsx16("span", {
1854
- className: index_module_default9.clip,
1845
+ className: index_module_default8.clip,
1855
1846
  style: {
1856
1847
  lineHeight: "1.3"
1857
1848
  },
@@ -1900,7 +1891,7 @@ function HomeHero({ frontmatter }) {
1900
1891
  import { jsx as _jsx17, jsxs as _jsxs11 } from "react/jsx-runtime";
1901
1892
 
1902
1893
  // src/theme-default/components/HomeFeatures/index.module.scss
1903
- 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" };
1894
+ 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" };
1904
1895
 
1905
1896
  // src/theme-default/components/HomeFeatures/index.tsx
1906
1897
  var PRESET_COUNT = [
@@ -1921,19 +1912,18 @@ var getGridClass = (count) => {
1921
1912
  return "";
1922
1913
  };
1923
1914
  function HomeFeature({ frontmatter }) {
1924
- var _frontmatter, _features, _features1;
1925
- const features = (_frontmatter = frontmatter) === null || _frontmatter === void 0 ? void 0 : _frontmatter.features;
1926
- const gridClass = getGridClass((_features = features) === null || _features === void 0 ? void 0 : _features.length);
1915
+ const features = frontmatter === null || frontmatter === void 0 ? void 0 : frontmatter.features;
1916
+ const gridClass = getGridClass(features === null || features === void 0 ? void 0 : features.length);
1927
1917
  return /* @__PURE__ */ _jsx17("div", {
1928
1918
  className: "overflow-hidden m-auto flex flex-wrap justify-between max-w-6xl",
1929
- children: (_features1 = features) === null || _features1 === void 0 ? void 0 : _features1.map((feature) => {
1919
+ children: features === null || features === void 0 ? void 0 : features.map((feature) => {
1930
1920
  const { icon, title, details, link } = feature;
1931
1921
  return /* @__PURE__ */ _jsx17("div", {
1932
- className: `${gridClass ? index_module_default10[gridClass] : "w-full"} rounded hover:var(--rp-c-brand)`,
1922
+ className: `${gridClass ? index_module_default9[gridClass] : "w-full"} rounded hover:var(--rp-c-brand)`,
1933
1923
  children: /* @__PURE__ */ _jsx17("div", {
1934
1924
  className: "h-full p-2",
1935
1925
  children: /* @__PURE__ */ _jsxs11("article", {
1936
- className: `${index_module_default10.featureCard} h-full p-8 rounded-4xl border-transparent`,
1926
+ className: `${index_module_default9.featureCard} h-full p-8 rounded-4xl border-transparent`,
1937
1927
  style: {
1938
1928
  cursor: link ? "pointer" : "auto"
1939
1929
  },
@@ -2086,7 +2076,7 @@ var SvgDown = (props) => /* @__PURE__ */ _jsx19("svg", _object_spread_props6(_ob
2086
2076
  var down_default = SvgDown;
2087
2077
 
2088
2078
  // src/theme-default/components/NavScreenMenuGroup/index.module.scss
2089
- var index_module_default11 = { "navScreenMenuGroup": "navScreenMenuGroup_de8a5", "open": "open_de8a5", "button": "button_de8a5", "buttonSpan": "buttonSpan_de8a5", "items": "items_de8a5", "down": "down_de8a5" };
2079
+ var index_module_default10 = { "navScreenMenuGroup": "navScreenMenuGroup_de8a5", "open": "open_de8a5", "button": "button_de8a5", "buttonSpan": "buttonSpan_de8a5", "items": "items_de8a5", "down": "down_de8a5" };
2090
2080
 
2091
2081
  // src/theme-default/components/NavScreenMenuGroup/NavScreenMenuGroup.tsx
2092
2082
  function NavScreenMenuGroup(item) {
@@ -2139,26 +2129,26 @@ function NavScreenMenuGroup(item) {
2139
2129
  });
2140
2130
  };
2141
2131
  return /* @__PURE__ */ _jsxs13("div", {
2142
- className: `${isOpen ? index_module_default11.open : ""} ${index_module_default11.navScreenMenuGroup} relative`,
2132
+ className: `${isOpen ? index_module_default10.open : ""} ${index_module_default10.navScreenMenuGroup} relative`,
2143
2133
  children: [
2144
2134
  /* @__PURE__ */ _jsxs13("button", {
2145
- className: index_module_default11.button,
2135
+ className: index_module_default10.button,
2146
2136
  onClick: () => {
2147
2137
  setIsOpen(!isOpen);
2148
2138
  },
2149
2139
  children: [
2150
2140
  /* @__PURE__ */ _jsx20("span", {
2151
- className: index_module_default11.buttonSpan,
2141
+ className: index_module_default10.buttonSpan,
2152
2142
  children: item.text
2153
2143
  }),
2154
2144
  /* @__PURE__ */ _jsx20(down_default, {
2155
- className: `${isOpen ? index_module_default11.open : ""} ${index_module_default11.down} `
2145
+ className: `${isOpen ? index_module_default10.open : ""} ${index_module_default10.down} `
2156
2146
  })
2157
2147
  ]
2158
2148
  }),
2159
2149
  /* @__PURE__ */ _jsx20("div", {
2160
2150
  children: /* @__PURE__ */ _jsx20("div", {
2161
- className: index_module_default11.items,
2151
+ className: index_module_default10.items,
2162
2152
  children: item.items.map((item2) => {
2163
2153
  return /* @__PURE__ */ _jsx20("div", {
2164
2154
  children: "items" in item2 ? renderGroup(item2) : renderLinkItem(item2)
@@ -2175,7 +2165,7 @@ import { jsx as _jsx21, jsxs as _jsxs14 } from "react/jsx-runtime";
2175
2165
  import { withoutBase } from "@rspress/shared";
2176
2166
 
2177
2167
  // src/theme-default/components/Nav/index.module.scss
2178
- var index_module_default12 = { "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" };
2168
+ 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" };
2179
2169
 
2180
2170
  // src/theme-default/components/Nav/NavMenuSingleItem.tsx
2181
2171
  import { normalizeHref as normalizeHref7 } from "@/runtime";
@@ -2185,7 +2175,7 @@ function NavMenuSingleItem(item) {
2185
2175
  return /* @__PURE__ */ _jsx21(Link, {
2186
2176
  href: normalizeHref7(item.link),
2187
2177
  children: /* @__PURE__ */ _jsxs14("div", {
2188
- className: `${index_module_default12.singleItem} ${isActive2 ? index_module_default12.activeItem : ""} text-sm font-medium mx-1.5 px-3 py-2 flex items-center`,
2178
+ className: `${index_module_default11.singleItem} ${isActive2 ? index_module_default11.activeItem : ""} text-sm font-medium mx-1.5 px-3 py-2 flex items-center`,
2189
2179
  children: [
2190
2180
  /* @__PURE__ */ _jsx21(Tag, {
2191
2181
  tag: item.tag
@@ -2340,13 +2330,11 @@ var classList;
2340
2330
  var userPreference;
2341
2331
  var query;
2342
2332
  var setClass = (dark) => {
2343
- var _classList;
2344
- (_classList = classList) === null || _classList === void 0 ? void 0 : _classList[dark ? "add" : "remove"]("dark");
2333
+ classList === null || classList === void 0 ? void 0 : classList[dark ? "add" : "remove"]("dark");
2345
2334
  };
2346
2335
  var updateAppearance = () => {
2347
2336
  const disableDarkMode = siteData.themeConfig.darkMode === false;
2348
2337
  if (disableDarkMode) {
2349
- setClass(false);
2350
2338
  return;
2351
2339
  }
2352
2340
  if (window.MODERN_THEME) {
@@ -2361,10 +2349,7 @@ if (typeof window !== "undefined" && typeof localStorage !== "undefined") {
2361
2349
  classList = document.documentElement.classList;
2362
2350
  updateAppearance();
2363
2351
  }
2364
- var isDarkMode = () => {
2365
- var _classList;
2366
- return (_classList = classList) === null || _classList === void 0 ? void 0 : _classList.contains("dark");
2367
- };
2352
+ var isDarkMode = () => classList === null || classList === void 0 ? void 0 : classList.contains("dark");
2368
2353
  var getToggle = () => {
2369
2354
  if (typeof window !== "undefined") {
2370
2355
  window.addEventListener("storage", updateAppearance);
@@ -2391,10 +2376,9 @@ function SwitchAppearance({ onClick }) {
2391
2376
  }, []);
2392
2377
  return /* @__PURE__ */ _jsx24("div", {
2393
2378
  onClick: () => {
2394
- var _onClick;
2395
2379
  setTheme(theme === "dark" ? "light" : "dark");
2396
2380
  toggleAppearance();
2397
- (_onClick = onClick) === null || _onClick === void 0 ? void 0 : _onClick();
2381
+ onClick === null || onClick === void 0 ? void 0 : onClick();
2398
2382
  },
2399
2383
  className: "md:mr-2 rspress-nav-appearance",
2400
2384
  children: /* @__PURE__ */ _jsx24("div", {
@@ -2558,7 +2542,7 @@ import { jsx as _jsx28, jsxs as _jsxs16 } from "react/jsx-runtime";
2558
2542
  import { useState as useState6 } from "react";
2559
2543
 
2560
2544
  // src/theme-default/components/SocialLinks/index.module.scss
2561
- var index_module_default13 = { "social-links-icon": "social-links-icon_8cbd0", "socialLinksIcon": "social-links-icon_8cbd0", "menu-item": "menu-item_8cbd0", "menuItem": "menu-item_8cbd0" };
2545
+ 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" };
2562
2546
 
2563
2547
  // src/theme-default/components/SocialLinks/presetIcons.tsx
2564
2548
  import { jsx as _jsx27, jsxs as _jsxs15 } from "react/jsx-runtime";
@@ -2832,14 +2816,14 @@ var LinkContent = (props) => {
2832
2816
  rel: "noopener noreferrer",
2833
2817
  className: "social-links",
2834
2818
  children: /* @__PURE__ */ _jsx28("div", {
2835
- className: `${index_module_default13.socialLinksIcon}`,
2819
+ className: `${index_module_default12.socialLinksIcon}`,
2836
2820
  children: IconComp
2837
2821
  })
2838
2822
  }, content);
2839
2823
  }
2840
2824
  if (mode === "text") {
2841
2825
  return /* @__PURE__ */ _jsxs16("div", {
2842
- className: `${index_module_default13.socialLinksIcon} cursor-pointer relative mx-3`,
2826
+ className: `${index_module_default12.socialLinksIcon} cursor-pointer relative mx-3`,
2843
2827
  onMouseEnter: mouseEnterIcon,
2844
2828
  onMouseLeave: mouseLeavePopper,
2845
2829
  children: [
@@ -2860,7 +2844,7 @@ var LinkContent = (props) => {
2860
2844
  }
2861
2845
  if (mode === "img") {
2862
2846
  return /* @__PURE__ */ _jsxs16("div", {
2863
- className: `${index_module_default13.socialLinksIcon} cursor-pointer relative`,
2847
+ className: `${index_module_default12.socialLinksIcon} cursor-pointer relative`,
2864
2848
  onMouseEnter: mouseEnterIcon,
2865
2849
  onMouseLeave: mouseLeavePopper,
2866
2850
  children: [
@@ -2938,7 +2922,7 @@ var SocialLinks = ({ socialLinks }) => {
2938
2922
  });
2939
2923
  const [moreLinksVisible, setMoreLinksVisible] = useState7(false);
2940
2924
  return /* @__PURE__ */ _jsxs18("div", {
2941
- className: `social-links ${index_module_default13.menuItem} flex-center relative`,
2925
+ className: `social-links ${index_module_default12.menuItem} flex-center relative`,
2942
2926
  onMouseLeave: () => setMoreLinksVisible(false),
2943
2927
  children: [
2944
2928
  /* @__PURE__ */ _jsx31(ShownLinks, {
@@ -2954,7 +2938,7 @@ var SocialLinks = ({ socialLinks }) => {
2954
2938
  };
2955
2939
 
2956
2940
  // src/theme-default/components/NavScreen/index.module.scss
2957
- var index_module_default14 = { "navScreen": "navScreen_8624f", "active": "active_8624f", "container": "container_8624f", "navMenu": "navMenu_8624f", "navMenuItem": "navMenuItem_8624f", "navAppearance": "navAppearance_8624f", "socialAndAppearance": "socialAndAppearance_8624f" };
2941
+ 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" };
2958
2942
 
2959
2943
  // src/theme-default/components/NavScreen/index.tsx
2960
2944
  import { NoSSR, ThemeContext as ThemeContext2 } from "@/runtime";
@@ -3012,7 +2996,7 @@ function _object_spread_props11(target, source) {
3012
2996
  }
3013
2997
  var NavScreenTranslations = ({ translationMenuData }) => {
3014
2998
  return /* @__PURE__ */ _jsx32("div", {
3015
- className: `${index_module_default14.navTranslations} flex text-sm font-bold justify-center`,
2999
+ className: `${index_module_default13.navTranslations} flex text-sm font-bold justify-center`,
3016
3000
  children: /* @__PURE__ */ _jsx32("div", {
3017
3001
  className: "mx-1.5 my-1",
3018
3002
  children: /* @__PURE__ */ _jsx32(NavScreenMenuGroup, _object_spread17({}, translationMenuData))
@@ -3020,7 +3004,7 @@ var NavScreenTranslations = ({ translationMenuData }) => {
3020
3004
  });
3021
3005
  };
3022
3006
  function NavScreen(props) {
3023
- var _siteData_themeConfig, _siteData, _localesData_find;
3007
+ var _siteData_themeConfig, _localesData_find;
3024
3008
  const { isScreenOpen, localeData, siteData: siteData2, pathname, setLogo } = props;
3025
3009
  const screen = useRef4(null);
3026
3010
  const { theme } = useContext2(ThemeContext2);
@@ -3028,7 +3012,7 @@ function NavScreen(props) {
3028
3012
  const hasMultiLanguage = localesData.length > 1;
3029
3013
  const menuItems = localeData.nav || [];
3030
3014
  const hasAppearanceSwitch = siteData2.themeConfig.darkMode !== false;
3031
- const socialLinks = ((_siteData = siteData2) === null || _siteData === void 0 ? void 0 : (_siteData_themeConfig = _siteData.themeConfig) === null || _siteData_themeConfig === void 0 ? void 0 : _siteData_themeConfig.socialLinks) || [];
3015
+ const socialLinks = (siteData2 === null || siteData2 === void 0 ? void 0 : (_siteData_themeConfig = siteData2.themeConfig) === null || _siteData_themeConfig === void 0 ? void 0 : _siteData_themeConfig.socialLinks) || [];
3032
3016
  const hasSocialLinks = socialLinks.length > 0;
3033
3017
  const langs = localesData.map((item) => item.lang || "zh") || [];
3034
3018
  const { base, logo } = siteData2;
@@ -3039,18 +3023,15 @@ function NavScreen(props) {
3039
3023
  height: "18px"
3040
3024
  }
3041
3025
  }),
3042
- items: localesData.map((item) => {
3043
- var _item;
3044
- return {
3045
- text: (_item = item) === null || _item === void 0 ? void 0 : _item.label,
3046
- link: `/${item.lang}`
3047
- };
3048
- }),
3026
+ items: localesData.map((item) => ({
3027
+ text: item === null || item === void 0 ? void 0 : item.label,
3028
+ link: `/${item.lang}`
3029
+ })),
3049
3030
  activeValue: (_localesData_find = localesData.find((item) => item.lang === localeData.lang)) === null || _localesData_find === void 0 ? void 0 : _localesData_find.label
3050
3031
  } : null;
3051
3032
  const NavScreenAppearance = () => {
3052
3033
  return /* @__PURE__ */ _jsx32("div", {
3053
- className: `mt-2 ${index_module_default14.navAppearance} flex justify-center`,
3034
+ className: `mt-2 ${index_module_default13.navAppearance} flex justify-center`,
3054
3035
  children: /* @__PURE__ */ _jsx32(NoSSR, {
3055
3036
  children: /* @__PURE__ */ _jsx32(SwitchAppearance, {
3056
3037
  onClick: () => {
@@ -3062,10 +3043,10 @@ function NavScreen(props) {
3062
3043
  };
3063
3044
  const NavScreenMenu = ({ menuItems: menuItems2 }) => {
3064
3045
  return /* @__PURE__ */ _jsx32("div", {
3065
- className: index_module_default14.navMenu,
3046
+ className: index_module_default13.navMenu,
3066
3047
  children: menuItems2.map((item, index) => {
3067
3048
  return /* @__PURE__ */ _jsx32("div", {
3068
- className: `${index_module_default14.navMenuItem} w-full`,
3049
+ className: `${index_module_default13.navMenuItem} w-full`,
3069
3050
  children: "link" in item ? /* @__PURE__ */ _jsx32(NavMenuSingleItem, _object_spread17({
3070
3051
  pathname,
3071
3052
  base,
@@ -3091,11 +3072,11 @@ function NavScreen(props) {
3091
3072
  isScreenOpen
3092
3073
  ]);
3093
3074
  return /* @__PURE__ */ _jsx32("div", {
3094
- className: `${index_module_default14.navScreen} ${isScreenOpen ? index_module_default14.active : ""}`,
3075
+ className: `${index_module_default13.navScreen} ${isScreenOpen ? index_module_default13.active : ""}`,
3095
3076
  ref: screen,
3096
3077
  id: "navScreen",
3097
3078
  children: /* @__PURE__ */ _jsxs19("div", {
3098
- className: index_module_default14.container,
3079
+ className: index_module_default13.container,
3099
3080
  children: [
3100
3081
  /* @__PURE__ */ _jsx32(NavScreenMenu, {
3101
3082
  menuItems
@@ -3231,7 +3212,7 @@ var SvgSmallMenu = (props) => /* @__PURE__ */ _jsxs20("svg", _object_spread_prop
3231
3212
  var small_menu_default = SvgSmallMenu;
3232
3213
 
3233
3214
  // src/theme-default/components/NavHambmger/index.module.scss
3234
- var index_module_default15 = { "navHamburger": "navHamburger_2498a", "container": "container_2498a", "top": "top_2498a", "middle": "middle_2498a", "bottom": "bottom_2498a", "active": "active_2498a" };
3215
+ var index_module_default14 = { "navHamburger": "navHamburger_2498a", "container": "container_2498a", "top": "top_2498a", "middle": "middle_2498a", "bottom": "bottom_2498a", "active": "active_2498a" };
3235
3216
 
3236
3217
  // src/theme-default/components/NavHambmger/index.tsx
3237
3218
  function NavHamburger(props) {
@@ -3248,7 +3229,7 @@ function NavHamburger(props) {
3248
3229
  }),
3249
3230
  /* @__PURE__ */ _jsx34("button", {
3250
3231
  onClick: toggleScreen,
3251
- className: `${isScreenOpen ? index_module_default15.active : ""} ${index_module_default15.navHamburger} text-gray-500`,
3232
+ className: `${isScreenOpen ? index_module_default14.active : ""} ${index_module_default14.navHamburger} text-gray-500`,
3252
3233
  children: /* @__PURE__ */ _jsx34(small_menu_default, {
3253
3234
  fill: "currentColor"
3254
3235
  })
@@ -3500,7 +3481,7 @@ function _object_spread_props14(target, source) {
3500
3481
  var DEFAULT_NAV_POSTION = "right";
3501
3482
  var NavBarTitle = ({ title, langRoutePrefix, logo }) => {
3502
3483
  return /* @__PURE__ */ _jsx36("div", {
3503
- className: `${index_module_default12.navBarTitle}`,
3484
+ className: `${index_module_default11.navBarTitle}`,
3504
3485
  children: /* @__PURE__ */ _jsx36("a", {
3505
3486
  href: withBase7(langRoutePrefix),
3506
3487
  className: "flex items-center w-full h-full text-base font-semibold transition-opacity duration-300 hover:opacity-60",
@@ -3517,7 +3498,7 @@ var NavBarTitle = ({ title, langRoutePrefix, logo }) => {
3517
3498
  };
3518
3499
  var NavTranslations = ({ translationMenuData }) => {
3519
3500
  return /* @__PURE__ */ _jsx36("div", {
3520
- className: `translation ${index_module_default12.menuItem} flex text-sm font-bold items-center px-3 py-2`,
3501
+ className: `translation ${index_module_default11.menuItem} flex text-sm font-bold items-center px-3 py-2`,
3521
3502
  children: /* @__PURE__ */ _jsx36("div", {
3522
3503
  children: /* @__PURE__ */ _jsx36(NavMenuGroup, _object_spread_props14(_object_spread20({}, translationMenuData), {
3523
3504
  isTranslation: true
@@ -3526,7 +3507,7 @@ var NavTranslations = ({ translationMenuData }) => {
3526
3507
  });
3527
3508
  };
3528
3509
  function Nav2(props) {
3529
- var _localeLanguages_find, _siteData_themeConfig, _siteData;
3510
+ var _localeLanguages_find, _siteData_themeConfig;
3530
3511
  const { beforeNavTitle, afterNavTitle, beforeNav } = props;
3531
3512
  const { siteData: siteData2, page } = usePageData10();
3532
3513
  const { logo: rawLogo, base } = siteData2;
@@ -3543,13 +3524,10 @@ function Nav2(props) {
3543
3524
  const langs = localeLanguages.map((item) => item.lang || "zh") || [];
3544
3525
  const [logo, setLogo] = useState10(getLogoUrl(rawLogo, theme));
3545
3526
  const translationMenuData = hasMultiLanguage ? {
3546
- items: localeLanguages.map((item) => {
3547
- var _item;
3548
- return {
3549
- text: (_item = item) === null || _item === void 0 ? void 0 : _item.label,
3550
- link: replaceLang(pathname, item.lang, defaultLang, langs, base)
3551
- };
3552
- }),
3527
+ items: localeLanguages.map((item) => ({
3528
+ text: item === null || item === void 0 ? void 0 : item.label,
3529
+ link: replaceLang(pathname, item.lang, defaultLang, langs, base)
3530
+ })),
3553
3531
  activeValue: (_localeLanguages_find = localeLanguages.find((item) => lang === item.lang)) === null || _localeLanguages_find === void 0 ? void 0 : _localeLanguages_find.label
3554
3532
  } : null;
3555
3533
  useEffect11(() => {
@@ -3585,13 +3563,13 @@ function Nav2(props) {
3585
3563
  const getPosition = (menuItem) => (_menuItem_position = menuItem.position) !== null && _menuItem_position !== void 0 ? _menuItem_position : DEFAULT_NAV_POSTION;
3586
3564
  const leftMenuItems = menuItems.filter((item) => getPosition(item) === "left");
3587
3565
  const rightMenuItems = menuItems.filter((item) => getPosition(item) === "right");
3588
- const hasSearch = ((_siteData = siteData2) === null || _siteData === void 0 ? void 0 : (_siteData_themeConfig = _siteData.themeConfig) === null || _siteData_themeConfig === void 0 ? void 0 : _siteData_themeConfig.search) !== false;
3566
+ const hasSearch = (siteData2 === null || siteData2 === void 0 ? void 0 : (_siteData_themeConfig = siteData2.themeConfig) === null || _siteData_themeConfig === void 0 ? void 0 : _siteData_themeConfig.search) !== false;
3589
3567
  var _localeData_title;
3590
3568
  const title = (_localeData_title = localeData.title) !== null && _localeData_title !== void 0 ? _localeData_title : siteData2.title;
3591
3569
  const hasAppearanceSwitch = siteData2.themeConfig.darkMode !== false;
3592
3570
  const leftNav = () => {
3593
3571
  return leftMenuItems.length > 0 ? /* @__PURE__ */ _jsx36("div", {
3594
- className: index_module_default12.leftNav,
3572
+ className: index_module_default11.leftNav,
3595
3573
  children: /* @__PURE__ */ _jsx36(NavMenu, {
3596
3574
  menuItems: leftMenuItems
3597
3575
  })
@@ -3599,7 +3577,7 @@ function Nav2(props) {
3599
3577
  };
3600
3578
  const rightNav = () => {
3601
3579
  return /* @__PURE__ */ _jsxs23("div", {
3602
- className: index_module_default12.rightNav,
3580
+ className: index_module_default11.rightNav,
3603
3581
  children: [
3604
3582
  hasSearch && /* @__PURE__ */ _jsx36("div", {
3605
3583
  className: "flex sm:flex-1 items-center sm:pl-4 sm:pr-2",
@@ -3635,9 +3613,9 @@ function Nav2(props) {
3635
3613
  children: [
3636
3614
  beforeNav,
3637
3615
  /* @__PURE__ */ _jsx36("div", {
3638
- className: `${index_module_default12.navContainer} rspress-nav px-6`,
3616
+ className: `${index_module_default11.navContainer} rspress-nav px-6`,
3639
3617
  children: /* @__PURE__ */ _jsxs23("div", {
3640
- className: `${index_module_default12.container} flex justify-between items-center h-full`,
3618
+ className: `${index_module_default11.container} flex justify-between items-center h-full`,
3641
3619
  children: [
3642
3620
  beforeNavTitle,
3643
3621
  /* @__PURE__ */ _jsx36(NavBarTitle, {
@@ -3647,12 +3625,12 @@ function Nav2(props) {
3647
3625
  }),
3648
3626
  afterNavTitle,
3649
3627
  /* @__PURE__ */ _jsxs23("div", {
3650
- className: `${index_module_default12.content} flex flex-1 justify-end items-center`,
3628
+ className: `${index_module_default11.content} flex flex-1 justify-end items-center`,
3651
3629
  children: [
3652
3630
  leftNav(),
3653
3631
  rightNav(),
3654
3632
  /* @__PURE__ */ _jsxs23("div", {
3655
- className: index_module_default12.mobileNavMenu,
3633
+ className: index_module_default11.mobileNavMenu,
3656
3634
  children: [
3657
3635
  isMobile && /* @__PURE__ */ _jsx36(Search, {}),
3658
3636
  /* @__PURE__ */ _jsx36(NavHamburger, {
@@ -3673,6 +3651,80 @@ function Nav2(props) {
3673
3651
  }
3674
3652
 
3675
3653
  // src/theme-default/components/Search/index.tsx
3654
+ import { jsx as _jsx49, jsxs as _jsxs31, Fragment as _Fragment6 } from "react/jsx-runtime";
3655
+ import { useState as useState13 } from "react";
3656
+
3657
+ // src/theme-default/components/Search/assets/search.svg
3658
+ import { jsx as _jsx37 } from "react/jsx-runtime";
3659
+ import * as React13 from "react";
3660
+ function _define_property21(obj, key, value) {
3661
+ if (key in obj) {
3662
+ Object.defineProperty(obj, key, {
3663
+ value,
3664
+ enumerable: true,
3665
+ configurable: true,
3666
+ writable: true
3667
+ });
3668
+ } else {
3669
+ obj[key] = value;
3670
+ }
3671
+ return obj;
3672
+ }
3673
+ function _object_spread21(target) {
3674
+ for (var i = 1; i < arguments.length; i++) {
3675
+ var source = arguments[i] != null ? arguments[i] : {};
3676
+ var ownKeys36 = Object.keys(source);
3677
+ if (typeof Object.getOwnPropertySymbols === "function") {
3678
+ ownKeys36 = ownKeys36.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
3679
+ return Object.getOwnPropertyDescriptor(source, sym).enumerable;
3680
+ }));
3681
+ }
3682
+ ownKeys36.forEach(function(key) {
3683
+ _define_property21(target, key, source[key]);
3684
+ });
3685
+ }
3686
+ return target;
3687
+ }
3688
+ function ownKeys15(object, enumerableOnly) {
3689
+ var keys = Object.keys(object);
3690
+ if (Object.getOwnPropertySymbols) {
3691
+ var symbols = Object.getOwnPropertySymbols(object);
3692
+ if (enumerableOnly) {
3693
+ symbols = symbols.filter(function(sym) {
3694
+ return Object.getOwnPropertyDescriptor(object, sym).enumerable;
3695
+ });
3696
+ }
3697
+ keys.push.apply(keys, symbols);
3698
+ }
3699
+ return keys;
3700
+ }
3701
+ function _object_spread_props15(target, source) {
3702
+ source = source != null ? source : {};
3703
+ if (Object.getOwnPropertyDescriptors) {
3704
+ Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
3705
+ } else {
3706
+ ownKeys15(Object(source)).forEach(function(key) {
3707
+ Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
3708
+ });
3709
+ }
3710
+ return target;
3711
+ }
3712
+ var SvgSearch = (props) => /* @__PURE__ */ _jsx37("svg", _object_spread_props15(_object_spread21({
3713
+ width: 24,
3714
+ height: 24,
3715
+ viewBox: "0 0 32 32"
3716
+ }, props), {
3717
+ children: /* @__PURE__ */ _jsx37("path", {
3718
+ fill: "var(--rp-c-gray)",
3719
+ 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"
3720
+ })
3721
+ }));
3722
+ var search_default = SvgSearch;
3723
+
3724
+ // src/theme-default/components/Search/index.module.scss
3725
+ 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" };
3726
+
3727
+ // src/theme-default/components/Search/SearchPanel.tsx
3676
3728
  import { jsx as _jsx48, jsxs as _jsxs30, Fragment as _Fragment5 } from "react/jsx-runtime";
3677
3729
  import debounce from "lodash-es/debounce";
3678
3730
  import groupBy from "lodash-es/groupBy";
@@ -3681,14 +3733,14 @@ import { useEffect as useEffect12, useRef as useRef5, useState as useState12 } f
3681
3733
  import { onSearch } from "virtual-search-hooks";
3682
3734
 
3683
3735
  // src/theme-default/components/Tabs/index.tsx
3684
- import { jsx as _jsx37, jsxs as _jsxs24 } from "react/jsx-runtime";
3736
+ import { jsx as _jsx38, jsxs as _jsxs24 } from "react/jsx-runtime";
3685
3737
  import { useContext as useContext4, useState as useState11 } from "react";
3686
3738
 
3687
3739
  // src/theme-default/components/Tabs/index.module.scss
3688
3740
  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" };
3689
3741
 
3690
3742
  // src/theme-default/components/Tabs/index.tsx
3691
- function _define_property21(obj, key, value) {
3743
+ function _define_property22(obj, key, value) {
3692
3744
  if (key in obj) {
3693
3745
  Object.defineProperty(obj, key, {
3694
3746
  value,
@@ -3701,7 +3753,7 @@ function _define_property21(obj, key, value) {
3701
3753
  }
3702
3754
  return obj;
3703
3755
  }
3704
- function _object_spread21(target) {
3756
+ function _object_spread22(target) {
3705
3757
  for (var i = 1; i < arguments.length; i++) {
3706
3758
  var source = arguments[i] != null ? arguments[i] : {};
3707
3759
  var ownKeys36 = Object.keys(source);
@@ -3711,12 +3763,12 @@ function _object_spread21(target) {
3711
3763
  }));
3712
3764
  }
3713
3765
  ownKeys36.forEach(function(key) {
3714
- _define_property21(target, key, source[key]);
3766
+ _define_property22(target, key, source[key]);
3715
3767
  });
3716
3768
  }
3717
3769
  return target;
3718
3770
  }
3719
- function ownKeys15(object, enumerableOnly) {
3771
+ function ownKeys16(object, enumerableOnly) {
3720
3772
  var keys = Object.keys(object);
3721
3773
  if (Object.getOwnPropertySymbols) {
3722
3774
  var symbols = Object.getOwnPropertySymbols(object);
@@ -3729,12 +3781,12 @@ function ownKeys15(object, enumerableOnly) {
3729
3781
  }
3730
3782
  return keys;
3731
3783
  }
3732
- function _object_spread_props15(target, source) {
3784
+ function _object_spread_props16(target, source) {
3733
3785
  source = source != null ? source : {};
3734
3786
  if (Object.getOwnPropertyDescriptors) {
3735
3787
  Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
3736
3788
  } else {
3737
- ownKeys15(Object(source)).forEach(function(key) {
3789
+ ownKeys16(Object(source)).forEach(function(key) {
3738
3790
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
3739
3791
  });
3740
3792
  }
@@ -3815,19 +3867,18 @@ function Tabs(props) {
3815
3867
  return /* @__PURE__ */ _jsxs24("div", {
3816
3868
  className: index_module_default16.container,
3817
3869
  children: [
3818
- /* @__PURE__ */ _jsx37("div", {
3870
+ /* @__PURE__ */ _jsx38("div", {
3819
3871
  className: tabContainerClassName,
3820
- children: tabValues.length ? /* @__PURE__ */ _jsx37("div", {
3872
+ children: tabValues.length ? /* @__PURE__ */ _jsx38("div", {
3821
3873
  className: index_module_default16.tabList,
3822
3874
  children: tabValues.map((item, index) => {
3823
- return /* @__PURE__ */ _jsx37("div", {
3875
+ return /* @__PURE__ */ _jsx38("div", {
3824
3876
  className: `${index_module_default16.tab} ${activeIndex === index ? index_module_default16.selected : index_module_default16.notSelected}`,
3825
3877
  onClick: () => {
3826
- var _onChange;
3827
- (_onChange = onChange) === null || _onChange === void 0 ? void 0 : _onChange(index);
3878
+ onChange === null || onChange === void 0 ? void 0 : onChange(index);
3828
3879
  setActiveIndex(index);
3829
3880
  if (groupId) {
3830
- setTabData(_object_spread_props15(_object_spread21({}, tabData), {
3881
+ setTabData(_object_spread_props16(_object_spread22({}, tabData), {
3831
3882
  [groupId]: index
3832
3883
  }));
3833
3884
  }
@@ -3837,7 +3888,7 @@ function Tabs(props) {
3837
3888
  })
3838
3889
  }) : null
3839
3890
  }),
3840
- /* @__PURE__ */ _jsx37("div", {
3891
+ /* @__PURE__ */ _jsx38("div", {
3841
3892
  children: children[activeIndex]
3842
3893
  })
3843
3894
  ]
@@ -3847,82 +3898,12 @@ function Tab(_param) {
3847
3898
  var { children } = _param, props = _object_without_properties(_param, [
3848
3899
  "children"
3849
3900
  ]);
3850
- return /* @__PURE__ */ _jsx37("div", _object_spread_props15(_object_spread21({}, props), {
3901
+ return /* @__PURE__ */ _jsx38("div", _object_spread_props16(_object_spread22({}, props), {
3851
3902
  className: "rounded px-2",
3852
3903
  children
3853
3904
  }));
3854
3905
  }
3855
3906
 
3856
- // src/theme-default/components/Search/index.module.scss
3857
- var index_module_default17 = { "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" };
3858
-
3859
- // src/theme-default/components/Search/assets/search.svg
3860
- import { jsx as _jsx38 } from "react/jsx-runtime";
3861
- import * as React13 from "react";
3862
- function _define_property22(obj, key, value) {
3863
- if (key in obj) {
3864
- Object.defineProperty(obj, key, {
3865
- value,
3866
- enumerable: true,
3867
- configurable: true,
3868
- writable: true
3869
- });
3870
- } else {
3871
- obj[key] = value;
3872
- }
3873
- return obj;
3874
- }
3875
- function _object_spread22(target) {
3876
- for (var i = 1; i < arguments.length; i++) {
3877
- var source = arguments[i] != null ? arguments[i] : {};
3878
- var ownKeys36 = Object.keys(source);
3879
- if (typeof Object.getOwnPropertySymbols === "function") {
3880
- ownKeys36 = ownKeys36.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
3881
- return Object.getOwnPropertyDescriptor(source, sym).enumerable;
3882
- }));
3883
- }
3884
- ownKeys36.forEach(function(key) {
3885
- _define_property22(target, key, source[key]);
3886
- });
3887
- }
3888
- return target;
3889
- }
3890
- function ownKeys16(object, enumerableOnly) {
3891
- var keys = Object.keys(object);
3892
- if (Object.getOwnPropertySymbols) {
3893
- var symbols = Object.getOwnPropertySymbols(object);
3894
- if (enumerableOnly) {
3895
- symbols = symbols.filter(function(sym) {
3896
- return Object.getOwnPropertyDescriptor(object, sym).enumerable;
3897
- });
3898
- }
3899
- keys.push.apply(keys, symbols);
3900
- }
3901
- return keys;
3902
- }
3903
- function _object_spread_props16(target, source) {
3904
- source = source != null ? source : {};
3905
- if (Object.getOwnPropertyDescriptors) {
3906
- Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
3907
- } else {
3908
- ownKeys16(Object(source)).forEach(function(key) {
3909
- Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
3910
- });
3911
- }
3912
- return target;
3913
- }
3914
- var SvgSearch = (props) => /* @__PURE__ */ _jsx38("svg", _object_spread_props16(_object_spread22({
3915
- width: 24,
3916
- height: 24,
3917
- viewBox: "0 0 32 32"
3918
- }, props), {
3919
- children: /* @__PURE__ */ _jsx38("path", {
3920
- fill: "var(--rp-c-gray)",
3921
- 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"
3922
- })
3923
- }));
3924
- var search_default = SvgSearch;
3925
-
3926
3907
  // src/theme-default/components/Search/assets/loading.svg
3927
3908
  import { jsx as _jsx39, jsxs as _jsxs25 } from "react/jsx-runtime";
3928
3909
  import * as React14 from "react";
@@ -4495,13 +4476,12 @@ var RemoteProvider = class {
4495
4476
  search(query2) {
4496
4477
  var _this = this;
4497
4478
  return _async_to_generator3(function* () {
4498
- var _searchIndexes;
4499
4479
  const { apiUrl, searchIndexes } = _class_private_field_get2(_this, _options);
4500
4480
  const { keyword, limit } = query2;
4501
4481
  const urlParams = buildQueryString({
4502
4482
  keyword,
4503
4483
  limit: limit.toString(),
4504
- searchIndexes: ((_searchIndexes = searchIndexes) === null || _searchIndexes === void 0 ? void 0 : _searchIndexes.map((indexInfo) => typeof indexInfo === "string" ? indexInfo : indexInfo.value).join(",")) || "",
4484
+ searchIndexes: (searchIndexes === null || searchIndexes === void 0 ? void 0 : searchIndexes.map((indexInfo) => typeof indexInfo === "string" ? indexInfo : indexInfo.value).join(",")) || "",
4505
4485
  lang: _class_private_field_get2(_this, _options).currentLang
4506
4486
  });
4507
4487
  try {
@@ -4623,19 +4603,19 @@ var PageSearcher = class {
4623
4603
  match(keyword, limit = 7) {
4624
4604
  var _this = this;
4625
4605
  return _async_to_generator4(function* () {
4626
- var _class_private_field_get1, _searchResult, _searchResult1;
4606
+ var _class_private_field_get1;
4627
4607
  const searchResult = yield (_class_private_field_get1 = _class_private_field_get3(_this, _provider)) === null || _class_private_field_get1 === void 0 ? void 0 : _class_private_field_get1.search({
4628
4608
  keyword,
4629
4609
  limit
4630
4610
  });
4631
4611
  const normaizedKeyWord = normalizeTextCase(keyword);
4632
- const currentIndexInfo = ((_searchResult = searchResult) === null || _searchResult === void 0 ? void 0 : _searchResult.find((res) => _class_private_method_get2(_this, _isCurrentIndex, isCurrentIndex).call(_this, res.index))) || {
4612
+ const currentIndexInfo = (searchResult === null || searchResult === void 0 ? void 0 : searchResult.find((res) => _class_private_method_get2(_this, _isCurrentIndex, isCurrentIndex).call(_this, res.index))) || {
4633
4613
  index: LOCAL_INDEX,
4634
4614
  hits: []
4635
4615
  };
4636
4616
  const matchResult = {
4637
4617
  current: _class_private_method_get2(_this, _matchResultItem, matchResultItem).call(_this, normaizedKeyWord, currentIndexInfo),
4638
- others: (((_searchResult1 = searchResult) === null || _searchResult1 === void 0 ? void 0 : _searchResult1.filter((res) => !_class_private_method_get2(_this, _isCurrentIndex, isCurrentIndex).call(_this, res.index))) || []).map((res) => ({
4618
+ others: ((searchResult === null || searchResult === void 0 ? void 0 : searchResult.filter((res) => !_class_private_method_get2(_this, _isCurrentIndex, isCurrentIndex).call(_this, res.index))) || []).map((res) => ({
4639
4619
  index: res.index,
4640
4620
  items: _class_private_method_get2(_this, _matchResultItem, matchResultItem).call(_this, normaizedKeyWord, res)
4641
4621
  }))
@@ -4675,9 +4655,8 @@ var PageSearcher = class {
4675
4655
  }
4676
4656
  };
4677
4657
  function matchResultItem(normaizedKeyWord, resultItem) {
4678
- var _resultItem;
4679
4658
  const matchedResult = [];
4680
- (_resultItem = resultItem) === null || _resultItem === void 0 ? void 0 : _resultItem.hits.forEach((item) => {
4659
+ resultItem === null || resultItem === void 0 ? void 0 : resultItem.hits.forEach((item) => {
4681
4660
  _class_private_method_get2(this, _matchTitle, matchTitle).call(this, item, normaizedKeyWord, matchedResult);
4682
4661
  const matchedHeader = _class_private_method_get2(this, _matchHeader, matchHeader).call(this, item, normaizedKeyWord, matchedResult);
4683
4662
  if (matchedHeader) {
@@ -4760,9 +4739,9 @@ function matchContent(item, query2, matchedResult) {
4760
4739
  return toc[currentHeaderIndex];
4761
4740
  };
4762
4741
  if (queryIndex === -1) {
4763
- var _item__matchesPosition, _hightlightItems, _currentHeader;
4742
+ var _item__matchesPosition;
4764
4743
  const hightlightItems = (_item__matchesPosition = item._matchesPosition) === null || _item__matchesPosition === void 0 ? void 0 : _item__matchesPosition.content;
4765
- if (!((_hightlightItems = hightlightItems) === null || _hightlightItems === void 0 ? void 0 : _hightlightItems.length)) {
4744
+ if (!(hightlightItems === null || hightlightItems === void 0 ? void 0 : hightlightItems.length)) {
4766
4745
  return;
4767
4746
  }
4768
4747
  const highlightStartIndex = item._matchesPosition.content[0].start;
@@ -4782,7 +4761,7 @@ function matchContent(item, query2, matchedResult) {
4782
4761
  matchedResult.push({
4783
4762
  type: "content",
4784
4763
  title: item.title,
4785
- header: (_currentHeader_text = (_currentHeader = currentHeader) === null || _currentHeader === void 0 ? void 0 : _currentHeader.text) !== null && _currentHeader_text !== void 0 ? _currentHeader_text : item.title,
4764
+ header: (_currentHeader_text = currentHeader === null || currentHeader === void 0 ? void 0 : currentHeader.text) !== null && _currentHeader_text !== void 0 ? _currentHeader_text : item.title,
4786
4765
  link: `${domain}${normalizeHref8(item.routePath)}${currentHeader ? `#${currentHeader.id}` : ""}`,
4787
4766
  query: query2,
4788
4767
  highlightInfoList,
@@ -4792,7 +4771,6 @@ function matchContent(item, query2, matchedResult) {
4792
4771
  return;
4793
4772
  }
4794
4773
  while (queryIndex !== -1) {
4795
- var _currentHeader1;
4796
4774
  const currentHeader = getCurrentHeader(queryIndex);
4797
4775
  let statementStartIndex = content.slice(0, queryIndex).lastIndexOf("\n");
4798
4776
  statementStartIndex = statementStartIndex === -1 ? 0 : statementStartIndex;
@@ -4812,7 +4790,7 @@ function matchContent(item, query2, matchedResult) {
4812
4790
  matchedResult.push({
4813
4791
  type: "content",
4814
4792
  title: item.title,
4815
- header: (_currentHeader_text1 = (_currentHeader1 = currentHeader) === null || _currentHeader1 === void 0 ? void 0 : _currentHeader1.text) !== null && _currentHeader_text1 !== void 0 ? _currentHeader_text1 : item.title,
4793
+ header: (_currentHeader_text1 = currentHeader === null || currentHeader === void 0 ? void 0 : currentHeader.text) !== null && _currentHeader_text1 !== void 0 ? _currentHeader_text1 : item.title,
4816
4794
  statement,
4817
4795
  highlightInfoList,
4818
4796
  link: `${domain}${normalizeHref8(item.routePath)}${currentHeader ? `#${currentHeader.id}` : ""}`,
@@ -5148,7 +5126,7 @@ function SuggestItem({ suggestion, closeSearch, isCurrent, setCurrentSuggestionI
5148
5126
  const queryStr = getSlicedStrByByteLength(rawText, start, length);
5149
5127
  framegmentList.push(prefix);
5150
5128
  framegmentList.push(/* @__PURE__ */ _jsx45("span", {
5151
- className: index_module_default17.mark,
5129
+ className: index_module_default15.mark,
5152
5130
  children: queryStr
5153
5131
  }, start));
5154
5132
  lastIndex = start + queryStr.length;
@@ -5193,7 +5171,7 @@ function SuggestItem({ suggestion, closeSearch, isCurrent, setCurrentSuggestionI
5193
5171
  children: [
5194
5172
  renderStatementMatch(),
5195
5173
  /* @__PURE__ */ _jsx45("p", {
5196
- className: index_module_default17.titleForContent,
5174
+ className: index_module_default15.titleForContent,
5197
5175
  children: suggestion.title
5198
5176
  })
5199
5177
  ]
@@ -5203,7 +5181,7 @@ function SuggestItem({ suggestion, closeSearch, isCurrent, setCurrentSuggestionI
5203
5181
  break;
5204
5182
  }
5205
5183
  return /* @__PURE__ */ _jsx45("li", {
5206
- className: `${index_module_default17.suggestItem} ${isCurrent ? index_module_default17.current : ""}`,
5184
+ className: `${index_module_default15.suggestItem} ${isCurrent ? index_module_default15.current : ""}`,
5207
5185
  onMouseEnter: setCurrentSuggestionIndex,
5208
5186
  children: /* @__PURE__ */ _jsx45("a", {
5209
5187
  href: link,
@@ -5213,20 +5191,20 @@ function SuggestItem({ suggestion, closeSearch, isCurrent, setCurrentSuggestionI
5213
5191
  },
5214
5192
  target: inCurrentDocIndex ? "_self" : "_blank",
5215
5193
  children: /* @__PURE__ */ _jsxs27("div", {
5216
- className: index_module_default17.suggestItemContainer,
5194
+ className: index_module_default15.suggestItemContainer,
5217
5195
  children: [
5218
5196
  /* @__PURE__ */ _jsx45("div", {
5219
- className: index_module_default17.hitIcon,
5197
+ className: index_module_default15.hitIcon,
5220
5198
  children: /* @__PURE__ */ _jsx45(HitIcon, {})
5221
5199
  }),
5222
5200
  /* @__PURE__ */ _jsx45("div", {
5223
- className: index_module_default17.contentWrapper,
5201
+ className: index_module_default15.contentWrapper,
5224
5202
  children: /* @__PURE__ */ _jsx45("span", {
5225
5203
  children: hitContent
5226
5204
  })
5227
5205
  }),
5228
5206
  /* @__PURE__ */ _jsx45("div", {
5229
- className: index_module_default17.actionIcon,
5207
+ className: index_module_default15.actionIcon,
5230
5208
  children: /* @__PURE__ */ _jsx45(jump_default, {})
5231
5209
  })
5232
5210
  ]
@@ -5343,7 +5321,7 @@ function NoSearchResult({ query: query2 }) {
5343
5321
  });
5344
5322
  }
5345
5323
 
5346
- // src/theme-default/components/Search/index.tsx
5324
+ // src/theme-default/components/Search/SearchPanel.tsx
5347
5325
  import { isProduction as isProduction2, usePageData as usePageData11 } from "@/runtime";
5348
5326
  function asyncGeneratorStep5(gen, resolve, reject, _next, _throw, key, arg) {
5349
5327
  try {
@@ -5437,13 +5415,12 @@ var RECOMMEND_WORD = {
5437
5415
  zh: "其它站点推荐结果",
5438
5416
  en: "Other Site Search Results"
5439
5417
  };
5440
- function Search2() {
5418
+ function SearchPanel({ focused, setFocused }) {
5441
5419
  const [query2, setQuery] = useState12("");
5442
5420
  const [searchResult, setSearchResult] = useState12({
5443
5421
  current: [],
5444
5422
  others: []
5445
5423
  });
5446
- const [focused, setFocused] = useState12(false);
5447
5424
  const searchInputRef = useRef5(null);
5448
5425
  const [initing, setIniting] = useState12(true);
5449
5426
  const [currentSuggestionIndex, setCurrentSuggestionIndex] = useState12(0);
@@ -5590,7 +5567,7 @@ function Search2() {
5590
5567
  children: [
5591
5568
  renderSearchResultItem(result.current),
5592
5569
  hasOtherResult && /* @__PURE__ */ _jsx48("h2", {
5593
- className: index_module_default17.groupTitle,
5570
+ className: index_module_default15.groupTitle,
5594
5571
  children: RECOMMEND_WORD[lang]
5595
5572
  }),
5596
5573
  /* @__PURE__ */ _jsx48("div", {
@@ -5599,7 +5576,7 @@ function Search2() {
5599
5576
  },
5600
5577
  children: /* @__PURE__ */ _jsx48(Tabs, {
5601
5578
  values: tabValues,
5602
- tabContainerClassName: index_module_default17.tabClassName,
5579
+ tabContainerClassName: index_module_default15.tabClassName,
5603
5580
  children: result.others.map((item) => /* @__PURE__ */ _jsx48(Tab, {
5604
5581
  children: renderSearchResultItem(item.items, false)
5605
5582
  }, item.index))
@@ -5623,13 +5600,13 @@ function Search2() {
5623
5600
  }
5624
5601
  const normalizedSuggestions = normalizeSuggestions(suggestionList);
5625
5602
  return /* @__PURE__ */ _jsx48("ul", {
5626
- className: index_module_default17.suggestList,
5603
+ className: index_module_default15.suggestList,
5627
5604
  children: Object.keys(normalizedSuggestions).map((group) => {
5628
5605
  const groupSuggestions = normalizedSuggestions[group] || [];
5629
5606
  return /* @__PURE__ */ _jsxs30("li", {
5630
5607
  children: [
5631
5608
  isCurrent && /* @__PURE__ */ _jsx48("h2", {
5632
- className: index_module_default17.groupTitle,
5609
+ className: index_module_default15.groupTitle,
5633
5610
  children: group
5634
5611
  }),
5635
5612
  /* @__PURE__ */ _jsx48("ul", {
@@ -5653,27 +5630,104 @@ function Search2() {
5653
5630
  })
5654
5631
  });
5655
5632
  };
5656
- return /* @__PURE__ */ _jsxs30(_Fragment5, {
5633
+ return /* @__PURE__ */ _jsx48(_Fragment5, {
5634
+ children: focused && /* @__PURE__ */ createPortal(/* @__PURE__ */ _jsx48("div", {
5635
+ className: index_module_default15.mask,
5636
+ onClick: () => setFocused(false),
5637
+ children: /* @__PURE__ */ _jsxs30("div", {
5638
+ className: `${index_module_default15.modal}`,
5639
+ onClick: (e) => {
5640
+ setFocused(true);
5641
+ e.stopPropagation();
5642
+ },
5643
+ children: [
5644
+ /* @__PURE__ */ _jsxs30("div", {
5645
+ className: "flex items-center",
5646
+ children: [
5647
+ /* @__PURE__ */ _jsxs30("div", {
5648
+ className: index_module_default15.inputForm,
5649
+ children: [
5650
+ /* @__PURE__ */ _jsx48("label", {
5651
+ children: /* @__PURE__ */ _jsx48(search_default, {})
5652
+ }),
5653
+ /* @__PURE__ */ _jsx48("input", {
5654
+ className: index_module_default15.input,
5655
+ ref: searchInputRef,
5656
+ placeholder: "Search Docs",
5657
+ "aria-label": "Search",
5658
+ autoComplete: "off",
5659
+ autoFocus: true,
5660
+ onChange: debounce(onQueryChanged, 150)
5661
+ }),
5662
+ /* @__PURE__ */ _jsx48("label", {
5663
+ children: /* @__PURE__ */ _jsx48(close_default, {
5664
+ className: index_module_default15.close,
5665
+ onClick: (e) => {
5666
+ if (searchInputRef.current) {
5667
+ e.stopPropagation();
5668
+ if (!query2) {
5669
+ setFocused(false);
5670
+ } else {
5671
+ searchInputRef.current.value = "";
5672
+ setQuery("");
5673
+ }
5674
+ }
5675
+ }
5676
+ })
5677
+ })
5678
+ ]
5679
+ }),
5680
+ /* @__PURE__ */ _jsx48("h2", {
5681
+ className: "text-brand ml-2 sm:hidden cursor-pointer",
5682
+ onClick: (e) => {
5683
+ e.stopPropagation();
5684
+ setFocused(false);
5685
+ },
5686
+ children: "Cancel"
5687
+ })
5688
+ ]
5689
+ }),
5690
+ query2 ? /* @__PURE__ */ _jsx48("div", {
5691
+ className: `${index_module_default15.searchHits} rspress-scrollbar`,
5692
+ children: renderSearchResult(searchResult, search)
5693
+ }) : null,
5694
+ initing && /* @__PURE__ */ _jsx48("div", {
5695
+ className: "flex-center",
5696
+ children: /* @__PURE__ */ _jsx48("div", {
5697
+ className: "p-2 text-sm",
5698
+ children: /* @__PURE__ */ _jsx48(loading_default, {})
5699
+ })
5700
+ })
5701
+ ]
5702
+ })
5703
+ }), document.getElementById("search-container"))
5704
+ });
5705
+ }
5706
+
5707
+ // src/theme-default/components/Search/index.tsx
5708
+ function Search2() {
5709
+ const [focused, setFocused] = useState13(false);
5710
+ return /* @__PURE__ */ _jsxs31(_Fragment6, {
5657
5711
  children: [
5658
- /* @__PURE__ */ _jsx48("div", {
5659
- className: index_module_default17.navSearchButton,
5712
+ /* @__PURE__ */ _jsx49("div", {
5713
+ className: index_module_default15.navSearchButton,
5660
5714
  onClick: () => setFocused(true),
5661
- children: /* @__PURE__ */ _jsxs30("button", {
5715
+ children: /* @__PURE__ */ _jsxs31("button", {
5662
5716
  children: [
5663
- /* @__PURE__ */ _jsx48(search_default, {
5717
+ /* @__PURE__ */ _jsx49(search_default, {
5664
5718
  width: "18",
5665
5719
  hight: "18"
5666
5720
  }),
5667
- /* @__PURE__ */ _jsx48("p", {
5668
- className: index_module_default17.searchWord,
5721
+ /* @__PURE__ */ _jsx49("p", {
5722
+ className: index_module_default15.searchWord,
5669
5723
  children: "Search Docs"
5670
5724
  }),
5671
- /* @__PURE__ */ _jsxs30("div", {
5725
+ /* @__PURE__ */ _jsxs31("div", {
5672
5726
  children: [
5673
- /* @__PURE__ */ _jsx48("span", {
5727
+ /* @__PURE__ */ _jsx49("span", {
5674
5728
  children: "⌘"
5675
5729
  }),
5676
- /* @__PURE__ */ _jsx48("span", {
5730
+ /* @__PURE__ */ _jsx49("span", {
5677
5731
  children: "K"
5678
5732
  })
5679
5733
  ]
@@ -5681,96 +5735,30 @@ function Search2() {
5681
5735
  ]
5682
5736
  })
5683
5737
  }),
5684
- /* @__PURE__ */ _jsx48("div", {
5685
- className: index_module_default17.mobileNavSearchButton,
5738
+ /* @__PURE__ */ _jsx49("div", {
5739
+ className: index_module_default15.mobileNavSearchButton,
5686
5740
  onClick: () => setFocused(true),
5687
- children: /* @__PURE__ */ _jsx48(search_default, {})
5741
+ children: /* @__PURE__ */ _jsx49(search_default, {})
5688
5742
  }),
5689
- focused && /* @__PURE__ */ createPortal(/* @__PURE__ */ _jsx48("div", {
5690
- className: index_module_default17.mask,
5691
- onClick: () => setFocused(false),
5692
- children: /* @__PURE__ */ _jsxs30("div", {
5693
- className: `${index_module_default17.modal}`,
5694
- onClick: (e) => {
5695
- setFocused(true);
5696
- e.stopPropagation();
5697
- },
5698
- children: [
5699
- /* @__PURE__ */ _jsxs30("div", {
5700
- className: "flex items-center",
5701
- children: [
5702
- /* @__PURE__ */ _jsxs30("div", {
5703
- className: index_module_default17.inputForm,
5704
- children: [
5705
- /* @__PURE__ */ _jsx48("label", {
5706
- children: /* @__PURE__ */ _jsx48(search_default, {})
5707
- }),
5708
- /* @__PURE__ */ _jsx48("input", {
5709
- className: index_module_default17.input,
5710
- ref: searchInputRef,
5711
- placeholder: "Search Docs",
5712
- "aria-label": "Search",
5713
- autoComplete: "off",
5714
- autoFocus: true,
5715
- onChange: debounce(onQueryChanged, 150)
5716
- }),
5717
- /* @__PURE__ */ _jsx48("label", {
5718
- children: /* @__PURE__ */ _jsx48(close_default, {
5719
- className: index_module_default17.close,
5720
- onClick: (e) => {
5721
- if (searchInputRef.current) {
5722
- e.stopPropagation();
5723
- if (!query2) {
5724
- setFocused(false);
5725
- } else {
5726
- searchInputRef.current.value = "";
5727
- setQuery("");
5728
- }
5729
- }
5730
- }
5731
- })
5732
- })
5733
- ]
5734
- }),
5735
- /* @__PURE__ */ _jsx48("h2", {
5736
- className: "text-brand ml-2 sm:hidden cursor-pointer",
5737
- onClick: (e) => {
5738
- e.stopPropagation();
5739
- setFocused(false);
5740
- },
5741
- children: "Cancel"
5742
- })
5743
- ]
5744
- }),
5745
- query2 ? /* @__PURE__ */ _jsx48("div", {
5746
- className: `${index_module_default17.searchHits} rspress-scrollbar`,
5747
- children: renderSearchResult(searchResult, search)
5748
- }) : null,
5749
- initing && /* @__PURE__ */ _jsx48("div", {
5750
- className: "flex-center",
5751
- children: /* @__PURE__ */ _jsx48("div", {
5752
- className: "p-2 text-sm",
5753
- children: /* @__PURE__ */ _jsx48(loading_default, {})
5754
- })
5755
- })
5756
- ]
5757
- })
5758
- }), document.getElementById("search-container"))
5743
+ /* @__PURE__ */ _jsx49(SearchPanel, {
5744
+ focused,
5745
+ setFocused
5746
+ })
5759
5747
  ]
5760
5748
  });
5761
5749
  }
5762
5750
 
5763
5751
  // src/theme-default/components/HomeFooter/index.tsx
5764
- import { jsx as _jsx49 } from "react/jsx-runtime";
5752
+ import { jsx as _jsx50 } from "react/jsx-runtime";
5765
5753
  import { usePageData as usePageData12 } from "@/runtime";
5766
5754
  function HomeFooter2() {
5767
5755
  const { siteData: siteData2 } = usePageData12();
5768
5756
  const { message } = siteData2.themeConfig.footer || {};
5769
- return /* @__PURE__ */ _jsx49("footer", {
5757
+ return /* @__PURE__ */ _jsx50("footer", {
5770
5758
  className: "absolute bottom-0 mt-12 py-8 px-6 sm:p-8 w-full border-t border-solid border-divider-light",
5771
- children: /* @__PURE__ */ _jsx49("div", {
5759
+ children: /* @__PURE__ */ _jsx50("div", {
5772
5760
  className: "m-auto w-full text-center",
5773
- children: message && /* @__PURE__ */ _jsx49("div", {
5761
+ children: message && /* @__PURE__ */ _jsx50("div", {
5774
5762
  className: "font-meduim text-sm text-text-2",
5775
5763
  children: message
5776
5764
  })
@@ -5779,7 +5767,7 @@ function HomeFooter2() {
5779
5767
  }
5780
5768
 
5781
5769
  // src/theme-default/components/Toc/index.tsx
5782
- import { jsx as _jsx50 } from "react/jsx-runtime";
5770
+ import { jsx as _jsx51 } from "react/jsx-runtime";
5783
5771
  import { usePageData as usePageData13 } from "@/runtime";
5784
5772
  function _define_property32(obj, key, value) {
5785
5773
  if (key in obj) {
@@ -5810,9 +5798,9 @@ function _object_spread32(target) {
5810
5798
  return target;
5811
5799
  }
5812
5800
  var TocItem = (header) => {
5813
- return /* @__PURE__ */ _jsx50("li", {
5801
+ return /* @__PURE__ */ _jsx51("li", {
5814
5802
  className: "py-1",
5815
- children: /* @__PURE__ */ _jsx50("a", {
5803
+ children: /* @__PURE__ */ _jsx51("a", {
5816
5804
  href: `#${header.id}`,
5817
5805
  className: "toc-link transition-all duration-300 hover:text-text-1 text-text-2 block underline underline-offset-2",
5818
5806
  style: {
@@ -5826,7 +5814,7 @@ var TocItem = (header) => {
5826
5814
  scrollToTarget(target, false);
5827
5815
  }
5828
5816
  },
5829
- children: /* @__PURE__ */ _jsx50("span", {
5817
+ children: /* @__PURE__ */ _jsx51("span", {
5830
5818
  className: "toc-link-text block",
5831
5819
  children: header.text
5832
5820
  })
@@ -5835,19 +5823,19 @@ var TocItem = (header) => {
5835
5823
  };
5836
5824
  function Toc() {
5837
5825
  const { page } = usePageData13();
5838
- return /* @__PURE__ */ _jsx50("ul", {
5839
- children: page.toc.map((item) => /* @__PURE__ */ _jsx50(TocItem, _object_spread32({}, item), item.id))
5826
+ return /* @__PURE__ */ _jsx51("ul", {
5827
+ children: page.toc.map((item) => /* @__PURE__ */ _jsx51(TocItem, _object_spread32({}, item), item.id))
5840
5828
  });
5841
5829
  }
5842
5830
 
5843
5831
  // src/theme-default/components/PackageManagerTabs/index.tsx
5844
- import { jsx as _jsx57, jsxs as _jsxs37 } from "react/jsx-runtime";
5832
+ import { jsx as _jsx58, jsxs as _jsxs38 } from "react/jsx-runtime";
5845
5833
 
5846
5834
  // src/theme-default/layout/DocLayout/docComponents/pre.tsx
5847
- import { jsx as _jsx51, jsxs as _jsxs31 } from "react/jsx-runtime";
5835
+ import { jsx as _jsx52, jsxs as _jsxs32 } from "react/jsx-runtime";
5848
5836
  var DEFAULT_LANGUAGE_CLASS = "language-bash";
5849
5837
  function parseTitleFromMeta(meta) {
5850
- var _highlightReg_exec, _result;
5838
+ var _highlightReg_exec;
5851
5839
  if (!meta) {
5852
5840
  return "";
5853
5841
  }
@@ -5859,24 +5847,24 @@ function parseTitleFromMeta(meta) {
5859
5847
  }
5860
5848
  var _result_split_;
5861
5849
  result = (_result_split_ = result.split("=")[1]) !== null && _result_split_ !== void 0 ? _result_split_ : "";
5862
- return (_result = result) === null || _result === void 0 ? void 0 : _result.replace(/["'`]/g, "");
5850
+ return result === null || result === void 0 ? void 0 : result.replace(/["'`]/g, "");
5863
5851
  }
5864
5852
  function Pre({ children }) {
5865
5853
  if (Array.isArray(children)) {
5866
- return /* @__PURE__ */ _jsx51("pre", {
5854
+ return /* @__PURE__ */ _jsx52("pre", {
5867
5855
  children
5868
5856
  });
5869
5857
  }
5870
5858
  const { className, meta } = children.props;
5871
5859
  const codeTitle = parseTitleFromMeta(meta);
5872
- return /* @__PURE__ */ _jsxs31("div", {
5860
+ return /* @__PURE__ */ _jsxs32("div", {
5873
5861
  className: className || DEFAULT_LANGUAGE_CLASS,
5874
5862
  children: [
5875
- codeTitle && /* @__PURE__ */ _jsx51("div", {
5863
+ codeTitle && /* @__PURE__ */ _jsx52("div", {
5876
5864
  className: "rspress-code-title",
5877
5865
  children: codeTitle
5878
5866
  }),
5879
- /* @__PURE__ */ _jsx51("div", {
5867
+ /* @__PURE__ */ _jsx52("div", {
5880
5868
  className: "rspress-code-content",
5881
5869
  children
5882
5870
  })
@@ -5885,7 +5873,7 @@ function Pre({ children }) {
5885
5873
  }
5886
5874
 
5887
5875
  // src/theme-default/layout/DocLayout/docComponents/code.tsx
5888
- import { jsx as _jsx52, jsxs as _jsxs32, Fragment as _Fragment6 } from "react/jsx-runtime";
5876
+ import { jsx as _jsx53, jsxs as _jsxs33, Fragment as _Fragment7 } from "react/jsx-runtime";
5889
5877
  import { PrismLight as SyntaxHighlighter } from "react-syntax-highlighter";
5890
5878
  import jsx from "react-syntax-highlighter/dist/esm/languages/prism/jsx";
5891
5879
  import js from "react-syntax-highlighter/dist/esm/languages/prism/javascript";
@@ -6028,7 +6016,6 @@ function registerLanguages() {
6028
6016
  registered = true;
6029
6017
  }
6030
6018
  function Code(props) {
6031
- var _className;
6032
6019
  const copyButtonRef = useRef6(null);
6033
6020
  const { siteData: siteData2 } = usePageData14();
6034
6021
  const { showLineNumbers } = siteData2.markdown;
@@ -6036,9 +6023,9 @@ function Code(props) {
6036
6023
  registerLanguages();
6037
6024
  }
6038
6025
  const { className, meta } = props;
6039
- const language = (_className = className) === null || _className === void 0 ? void 0 : _className.replace(/language-/, "");
6026
+ const language = className === null || className === void 0 ? void 0 : className.replace(/language-/, "");
6040
6027
  if (!language) {
6041
- return /* @__PURE__ */ _jsx52("code", _object_spread33({}, props));
6028
+ return /* @__PURE__ */ _jsx53("code", _object_spread33({}, props));
6042
6029
  }
6043
6030
  let children;
6044
6031
  if (typeof props.children === "string") {
@@ -6080,9 +6067,9 @@ function Code(props) {
6080
6067
  timeoutIdMap.set(el, timeoutId);
6081
6068
  }
6082
6069
  };
6083
- return /* @__PURE__ */ _jsxs32(_Fragment6, {
6070
+ return /* @__PURE__ */ _jsxs33(_Fragment7, {
6084
6071
  children: [
6085
- /* @__PURE__ */ _jsx52(SyntaxHighlighter, {
6072
+ /* @__PURE__ */ _jsx53(SyntaxHighlighter, {
6086
6073
  language,
6087
6074
  style: prisim_theme_default,
6088
6075
  wrapLines: true,
@@ -6105,7 +6092,7 @@ function Code(props) {
6105
6092
  },
6106
6093
  children
6107
6094
  }),
6108
- /* @__PURE__ */ _jsx52("button", {
6095
+ /* @__PURE__ */ _jsx53("button", {
6109
6096
  className: "copy",
6110
6097
  onClick: copyCode,
6111
6098
  ref: copyButtonRef
@@ -6115,7 +6102,7 @@ function Code(props) {
6115
6102
  }
6116
6103
 
6117
6104
  // src/theme-default/components/PackageManagerTabs/icons/Npm.tsx
6118
- import { jsx as _jsx53, jsxs as _jsxs33 } from "react/jsx-runtime";
6105
+ import { jsx as _jsx54, jsxs as _jsxs34 } from "react/jsx-runtime";
6119
6106
  function _define_property34(obj, key, value) {
6120
6107
  if (key in obj) {
6121
6108
  Object.defineProperty(obj, key, {
@@ -6169,18 +6156,18 @@ function _object_spread_props26(target, source) {
6169
6156
  return target;
6170
6157
  }
6171
6158
  function Npm(props) {
6172
- return /* @__PURE__ */ _jsxs33("svg", _object_spread_props26(_object_spread34({
6159
+ return /* @__PURE__ */ _jsxs34("svg", _object_spread_props26(_object_spread34({
6173
6160
  xmlns: "http://www.w3.org/2000/svg",
6174
6161
  width: "1em",
6175
6162
  height: "1em",
6176
6163
  viewBox: "0 0 256 256"
6177
6164
  }, props), {
6178
6165
  children: [
6179
- /* @__PURE__ */ _jsx53("path", {
6166
+ /* @__PURE__ */ _jsx54("path", {
6180
6167
  fill: "#C12127",
6181
6168
  d: "M0 256V0h256v256z"
6182
6169
  }),
6183
- /* @__PURE__ */ _jsx53("path", {
6170
+ /* @__PURE__ */ _jsx54("path", {
6184
6171
  fill: "#FFF",
6185
6172
  d: "M48 48h160v160h-32V80h-48v128H48z"
6186
6173
  })
@@ -6189,7 +6176,7 @@ function Npm(props) {
6189
6176
  }
6190
6177
 
6191
6178
  // src/theme-default/components/PackageManagerTabs/icons/Yarn.tsx
6192
- import { jsx as _jsx54, jsxs as _jsxs34 } from "react/jsx-runtime";
6179
+ import { jsx as _jsx55, jsxs as _jsxs35 } from "react/jsx-runtime";
6193
6180
  function _define_property35(obj, key, value) {
6194
6181
  if (key in obj) {
6195
6182
  Object.defineProperty(obj, key, {
@@ -6243,19 +6230,19 @@ function _object_spread_props27(target, source) {
6243
6230
  return target;
6244
6231
  }
6245
6232
  function Yarn(props) {
6246
- return /* @__PURE__ */ _jsx54("svg", _object_spread_props27(_object_spread35({
6233
+ return /* @__PURE__ */ _jsx55("svg", _object_spread_props27(_object_spread35({
6247
6234
  xmlns: "http://www.w3.org/2000/svg",
6248
6235
  width: "1em",
6249
6236
  height: "1em",
6250
6237
  viewBox: "0 0 128 128"
6251
6238
  }, props), {
6252
- children: /* @__PURE__ */ _jsxs34("g", {
6239
+ children: /* @__PURE__ */ _jsxs35("g", {
6253
6240
  fill: "#2c8ebb",
6254
6241
  children: [
6255
- /* @__PURE__ */ _jsx54("path", {
6242
+ /* @__PURE__ */ _jsx55("path", {
6256
6243
  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"
6257
6244
  }),
6258
- /* @__PURE__ */ _jsx54("path", {
6245
+ /* @__PURE__ */ _jsx55("path", {
6259
6246
  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"
6260
6247
  })
6261
6248
  ]
@@ -6264,7 +6251,7 @@ function Yarn(props) {
6264
6251
  }
6265
6252
 
6266
6253
  // src/theme-default/components/PackageManagerTabs/icons/Pnpm.tsx
6267
- import { jsx as _jsx55, jsxs as _jsxs35 } from "react/jsx-runtime";
6254
+ import { jsx as _jsx56, jsxs as _jsxs36 } from "react/jsx-runtime";
6268
6255
  function _define_property36(obj, key, value) {
6269
6256
  if (key in obj) {
6270
6257
  Object.defineProperty(obj, key, {
@@ -6318,18 +6305,18 @@ function _object_spread_props28(target, source) {
6318
6305
  return target;
6319
6306
  }
6320
6307
  function Pnpm(props) {
6321
- return /* @__PURE__ */ _jsxs35("svg", _object_spread_props28(_object_spread36({
6308
+ return /* @__PURE__ */ _jsxs36("svg", _object_spread_props28(_object_spread36({
6322
6309
  xmlns: "http://www.w3.org/2000/svg",
6323
6310
  width: "1em",
6324
6311
  height: "1em",
6325
6312
  viewBox: "0 0 128 128"
6326
6313
  }, props), {
6327
6314
  children: [
6328
- /* @__PURE__ */ _jsx55("path", {
6315
+ /* @__PURE__ */ _jsx56("path", {
6329
6316
  fill: "#f8ab00",
6330
6317
  d: "M0 .004V40h39.996V.004Zm43.996 0V40h40V.004Zm44.008 0V40H128V.004Zm0 43.996v39.996H128V44Z"
6331
6318
  }),
6332
- /* @__PURE__ */ _jsx55("path", {
6319
+ /* @__PURE__ */ _jsx56("path", {
6333
6320
  fill: "#4c4c4c",
6334
6321
  d: "M43.996 44v39.996h40V44ZM0 87.996v40h39.996v-40Zm43.996 0v40h40v-40Zm44.008 0v40H128v-40Z"
6335
6322
  })
@@ -6338,7 +6325,7 @@ function Pnpm(props) {
6338
6325
  }
6339
6326
 
6340
6327
  // src/theme-default/components/PackageManagerTabs/icons/Bun.tsx
6341
- import { jsx as _jsx56, jsxs as _jsxs36 } from "react/jsx-runtime";
6328
+ import { jsx as _jsx57, jsxs as _jsxs37 } from "react/jsx-runtime";
6342
6329
  function _define_property37(obj, key, value) {
6343
6330
  if (key in obj) {
6344
6331
  Object.defineProperty(obj, key, {
@@ -6392,28 +6379,28 @@ function _object_spread_props29(target, source) {
6392
6379
  return target;
6393
6380
  }
6394
6381
  function Bun(props) {
6395
- return /* @__PURE__ */ _jsxs36("svg", _object_spread_props29(_object_spread37({
6382
+ return /* @__PURE__ */ _jsxs37("svg", _object_spread_props29(_object_spread37({
6396
6383
  id: "Bun",
6397
6384
  width: "1.2em",
6398
6385
  height: "1.2em",
6399
6386
  viewBox: "0 0 80 70"
6400
6387
  }, props), {
6401
6388
  children: [
6402
- /* @__PURE__ */ _jsx56("path", {
6389
+ /* @__PURE__ */ _jsx57("path", {
6403
6390
  id: "Shadow",
6404
6391
  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"
6405
6392
  }),
6406
- /* @__PURE__ */ _jsxs36("g", {
6393
+ /* @__PURE__ */ _jsxs37("g", {
6407
6394
  id: "Body",
6408
6395
  children: [
6409
- /* @__PURE__ */ _jsx56("path", {
6396
+ /* @__PURE__ */ _jsx57("path", {
6410
6397
  id: "Background",
6411
6398
  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",
6412
6399
  style: {
6413
6400
  fill: "#fbf0df"
6414
6401
  }
6415
6402
  }),
6416
- /* @__PURE__ */ _jsx56("path", {
6403
+ /* @__PURE__ */ _jsx57("path", {
6417
6404
  id: "Bottom_Shadow",
6418
6405
  "data-name": "Bottom Shadow",
6419
6406
  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",
@@ -6421,7 +6408,7 @@ function Bun(props) {
6421
6408
  fill: "#f6dece"
6422
6409
  }
6423
6410
  }),
6424
- /* @__PURE__ */ _jsx56("path", {
6411
+ /* @__PURE__ */ _jsx57("path", {
6425
6412
  id: "Light_Shine",
6426
6413
  "data-name": "Light Shine",
6427
6414
  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",
@@ -6429,7 +6416,7 @@ function Bun(props) {
6429
6416
  fill: "#fffefc"
6430
6417
  }
6431
6418
  }),
6432
- /* @__PURE__ */ _jsx56("path", {
6419
+ /* @__PURE__ */ _jsx57("path", {
6433
6420
  id: "Top",
6434
6421
  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",
6435
6422
  style: {
@@ -6437,29 +6424,29 @@ function Bun(props) {
6437
6424
  fillRule: "evenodd"
6438
6425
  }
6439
6426
  }),
6440
- /* @__PURE__ */ _jsx56("path", {
6427
+ /* @__PURE__ */ _jsx57("path", {
6441
6428
  id: "Outline",
6442
6429
  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"
6443
6430
  })
6444
6431
  ]
6445
6432
  }),
6446
- /* @__PURE__ */ _jsxs36("g", {
6433
+ /* @__PURE__ */ _jsxs37("g", {
6447
6434
  id: "Mouth",
6448
6435
  children: [
6449
- /* @__PURE__ */ _jsx56("g", {
6436
+ /* @__PURE__ */ _jsx57("g", {
6450
6437
  id: "Background-2",
6451
6438
  "data-name": "Background",
6452
- children: /* @__PURE__ */ _jsx56("path", {
6439
+ children: /* @__PURE__ */ _jsx57("path", {
6453
6440
  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",
6454
6441
  style: {
6455
6442
  fill: "#b71422"
6456
6443
  }
6457
6444
  })
6458
6445
  }),
6459
- /* @__PURE__ */ _jsxs36("g", {
6446
+ /* @__PURE__ */ _jsxs37("g", {
6460
6447
  id: "Tongue",
6461
6448
  children: [
6462
- /* @__PURE__ */ _jsx56("path", {
6449
+ /* @__PURE__ */ _jsx57("path", {
6463
6450
  id: "Background-3",
6464
6451
  "data-name": "Background",
6465
6452
  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",
@@ -6467,24 +6454,24 @@ function Bun(props) {
6467
6454
  fill: "#ff6164"
6468
6455
  }
6469
6456
  }),
6470
- /* @__PURE__ */ _jsx56("path", {
6457
+ /* @__PURE__ */ _jsx57("path", {
6471
6458
  id: "Outline-2",
6472
6459
  "data-name": "Outline",
6473
6460
  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"
6474
6461
  })
6475
6462
  ]
6476
6463
  }),
6477
- /* @__PURE__ */ _jsx56("path", {
6464
+ /* @__PURE__ */ _jsx57("path", {
6478
6465
  id: "Outline-3",
6479
6466
  "data-name": "Outline",
6480
6467
  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"
6481
6468
  })
6482
6469
  ]
6483
6470
  }),
6484
- /* @__PURE__ */ _jsxs36("g", {
6471
+ /* @__PURE__ */ _jsxs37("g", {
6485
6472
  id: "Face",
6486
6473
  children: [
6487
- /* @__PURE__ */ _jsx56("ellipse", {
6474
+ /* @__PURE__ */ _jsx57("ellipse", {
6488
6475
  id: "Right_Blush",
6489
6476
  "data-name": "Right Blush",
6490
6477
  cx: "53.22",
@@ -6495,7 +6482,7 @@ function Bun(props) {
6495
6482
  fill: "#febbd0"
6496
6483
  }
6497
6484
  }),
6498
- /* @__PURE__ */ _jsx56("ellipse", {
6485
+ /* @__PURE__ */ _jsx57("ellipse", {
6499
6486
  id: "Left_Bluch",
6500
6487
  "data-name": "Left Bluch",
6501
6488
  cx: "22.95",
@@ -6506,14 +6493,14 @@ function Bun(props) {
6506
6493
  fill: "#febbd0"
6507
6494
  }
6508
6495
  }),
6509
- /* @__PURE__ */ _jsx56("path", {
6496
+ /* @__PURE__ */ _jsx57("path", {
6510
6497
  id: "Eyes",
6511
6498
  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",
6512
6499
  style: {
6513
6500
  fillRule: "evenodd"
6514
6501
  }
6515
6502
  }),
6516
- /* @__PURE__ */ _jsx56("path", {
6503
+ /* @__PURE__ */ _jsx57("path", {
6517
6504
  id: "Iris",
6518
6505
  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",
6519
6506
  style: {
@@ -6543,10 +6530,10 @@ function normalizeCommand(command) {
6543
6530
  function PackageManagerTabs({ command, additionalTabs = [] }) {
6544
6531
  let commandInfo;
6545
6532
  const packageMangerToIcon = {
6546
- npm: /* @__PURE__ */ _jsx57(Npm, {}),
6547
- yarn: /* @__PURE__ */ _jsx57(Yarn, {}),
6548
- pnpm: /* @__PURE__ */ _jsx57(Pnpm, {}),
6549
- bun: /* @__PURE__ */ _jsx57(Bun, {})
6533
+ npm: /* @__PURE__ */ _jsx58(Npm, {}),
6534
+ yarn: /* @__PURE__ */ _jsx58(Yarn, {}),
6535
+ pnpm: /* @__PURE__ */ _jsx58(Pnpm, {}),
6536
+ bun: /* @__PURE__ */ _jsx58(Bun, {})
6550
6537
  };
6551
6538
  additionalTabs.forEach((tab) => {
6552
6539
  packageMangerToIcon[tab.tool] = tab.icon;
@@ -6566,8 +6553,8 @@ function PackageManagerTabs({ command, additionalTabs = [] }) {
6566
6553
  }
6567
6554
  commandInfo.yarn = normalizeCommand(commandInfo.yarn);
6568
6555
  commandInfo.bun = normalizeCommand(commandInfo.bun);
6569
- return /* @__PURE__ */ _jsx57(Tabs, {
6570
- values: Object.entries(commandInfo).map(([key]) => /* @__PURE__ */ _jsxs37("div", {
6556
+ return /* @__PURE__ */ _jsx58(Tabs, {
6557
+ values: Object.entries(commandInfo).map(([key]) => /* @__PURE__ */ _jsxs38("div", {
6571
6558
  style: {
6572
6559
  display: "flex",
6573
6560
  alignItems: "center",
@@ -6575,7 +6562,7 @@ function PackageManagerTabs({ command, additionalTabs = [] }) {
6575
6562
  },
6576
6563
  children: [
6577
6564
  packageMangerToIcon[key],
6578
- /* @__PURE__ */ _jsx57("span", {
6565
+ /* @__PURE__ */ _jsx58("span", {
6579
6566
  style: {
6580
6567
  marginLeft: 6,
6581
6568
  marginBottom: 2
@@ -6584,9 +6571,9 @@ function PackageManagerTabs({ command, additionalTabs = [] }) {
6584
6571
  })
6585
6572
  ]
6586
6573
  }, key)),
6587
- children: Object.entries(commandInfo).map(([key, value]) => /* @__PURE__ */ _jsx57(Tab, {
6588
- children: /* @__PURE__ */ _jsx57(Pre, {
6589
- children: /* @__PURE__ */ _jsx57(Code, {
6574
+ children: Object.entries(commandInfo).map(([key, value]) => /* @__PURE__ */ _jsx58(Tab, {
6575
+ children: /* @__PURE__ */ _jsx58(Pre, {
6576
+ children: /* @__PURE__ */ _jsx58(Code, {
6590
6577
  className: "language-js",
6591
6578
  children: value
6592
6579
  })
@@ -6596,10 +6583,10 @@ function PackageManagerTabs({ command, additionalTabs = [] }) {
6596
6583
  }
6597
6584
 
6598
6585
  // src/theme-default/layout/DocLayout/docComponents/title.tsx
6599
- import { jsx as _jsx58 } from "react/jsx-runtime";
6586
+ import { jsx as _jsx59 } from "react/jsx-runtime";
6600
6587
 
6601
6588
  // src/theme-default/layout/DocLayout/docComponents/index.module.scss
6602
- var index_module_default18 = { "title": "title_f1ea0", "blockquote": "blockquote_f1ea0", "link": "link_f1ea0" };
6589
+ var index_module_default17 = { "title": "title_f1ea0", "blockquote": "blockquote_f1ea0", "link": "link_f1ea0" };
6603
6590
 
6604
6591
  // src/theme-default/layout/DocLayout/docComponents/title.tsx
6605
6592
  function _define_property38(obj, key, value) {
@@ -6655,38 +6642,38 @@ function _object_spread_props30(target, source) {
6655
6642
  return target;
6656
6643
  }
6657
6644
  var H1 = (props) => {
6658
- return /* @__PURE__ */ _jsx58("h1", _object_spread_props30(_object_spread38({}, props), {
6659
- className: `text-3xl mb-10 leading-10 tracking-tight ${index_module_default18.title}`
6645
+ return /* @__PURE__ */ _jsx59("h1", _object_spread_props30(_object_spread38({}, props), {
6646
+ className: `text-3xl mb-10 leading-10 tracking-tight ${index_module_default17.title}`
6660
6647
  }));
6661
6648
  };
6662
6649
  var H2 = (props) => {
6663
- return /* @__PURE__ */ _jsx58("h2", _object_spread_props30(_object_spread38({}, props), {
6664
- className: `mt-14 mb-6 text-2xl tracking-tight ${index_module_default18.title}`
6650
+ return /* @__PURE__ */ _jsx59("h2", _object_spread_props30(_object_spread38({}, props), {
6651
+ className: `mt-14 mb-6 text-2xl tracking-tight ${index_module_default17.title}`
6665
6652
  }));
6666
6653
  };
6667
6654
  var H3 = (props) => {
6668
- return /* @__PURE__ */ _jsx58("h3", _object_spread_props30(_object_spread38({}, props), {
6669
- className: `mt-10 mb-2 leading-7 text-xl ${index_module_default18.title}`
6655
+ return /* @__PURE__ */ _jsx59("h3", _object_spread_props30(_object_spread38({}, props), {
6656
+ className: `mt-10 mb-2 leading-7 text-xl ${index_module_default17.title}`
6670
6657
  }));
6671
6658
  };
6672
6659
  var H4 = (props) => {
6673
- return /* @__PURE__ */ _jsx58("h4", _object_spread_props30(_object_spread38({}, props), {
6674
- className: `mt-8 leading-6 text-base ${index_module_default18.title}`
6660
+ return /* @__PURE__ */ _jsx59("h4", _object_spread_props30(_object_spread38({}, props), {
6661
+ className: `mt-8 leading-6 text-base ${index_module_default17.title}`
6675
6662
  }));
6676
6663
  };
6677
6664
  var H5 = (props) => {
6678
- return /* @__PURE__ */ _jsx58("h5", _object_spread_props30(_object_spread38({}, props), {
6679
- className: index_module_default18.title
6665
+ return /* @__PURE__ */ _jsx59("h5", _object_spread_props30(_object_spread38({}, props), {
6666
+ className: index_module_default17.title
6680
6667
  }));
6681
6668
  };
6682
6669
  var H6 = (props) => {
6683
- return /* @__PURE__ */ _jsx58("h6", _object_spread_props30(_object_spread38({}, props), {
6684
- className: index_module_default18.title
6670
+ return /* @__PURE__ */ _jsx59("h6", _object_spread_props30(_object_spread38({}, props), {
6671
+ className: index_module_default17.title
6685
6672
  }));
6686
6673
  };
6687
6674
 
6688
6675
  // src/theme-default/layout/DocLayout/docComponents/list.tsx
6689
- import { jsx as _jsx59 } from "react/jsx-runtime";
6676
+ import { jsx as _jsx60 } from "react/jsx-runtime";
6690
6677
  function _define_property39(obj, key, value) {
6691
6678
  if (key in obj) {
6692
6679
  Object.defineProperty(obj, key, {
@@ -6740,23 +6727,23 @@ function _object_spread_props31(target, source) {
6740
6727
  return target;
6741
6728
  }
6742
6729
  var Ol = (props) => {
6743
- return /* @__PURE__ */ _jsx59("ol", _object_spread_props31(_object_spread39({}, props), {
6730
+ return /* @__PURE__ */ _jsx60("ol", _object_spread_props31(_object_spread39({}, props), {
6744
6731
  className: "list-decimal pl-5 my-4 leading-7"
6745
6732
  }));
6746
6733
  };
6747
6734
  var Ul = (props) => {
6748
- return /* @__PURE__ */ _jsx59("ul", _object_spread_props31(_object_spread39({}, props), {
6735
+ return /* @__PURE__ */ _jsx60("ul", _object_spread_props31(_object_spread39({}, props), {
6749
6736
  className: "list-disc pl-5 my-4 leading-7"
6750
6737
  }));
6751
6738
  };
6752
6739
  var Li = (props) => {
6753
- return /* @__PURE__ */ _jsx59("li", _object_spread_props31(_object_spread39({}, props), {
6740
+ return /* @__PURE__ */ _jsx60("li", _object_spread_props31(_object_spread39({}, props), {
6754
6741
  className: "[&:not(:first-child)]:mt-2"
6755
6742
  }));
6756
6743
  };
6757
6744
 
6758
6745
  // src/theme-default/layout/DocLayout/docComponents/table.tsx
6759
- import { jsx as _jsx60 } from "react/jsx-runtime";
6746
+ import { jsx as _jsx61 } from "react/jsx-runtime";
6760
6747
  function _define_property40(obj, key, value) {
6761
6748
  if (key in obj) {
6762
6749
  Object.defineProperty(obj, key, {
@@ -6810,28 +6797,28 @@ function _object_spread_props32(target, source) {
6810
6797
  return target;
6811
6798
  }
6812
6799
  var Table = (props) => {
6813
- return /* @__PURE__ */ _jsx60("table", _object_spread_props32(_object_spread40({}, props), {
6800
+ return /* @__PURE__ */ _jsx61("table", _object_spread_props32(_object_spread40({}, props), {
6814
6801
  className: "table border-collapse text-base my-5 overflow-x-auto leading-7 border-gray-light-2"
6815
6802
  }));
6816
6803
  };
6817
6804
  var Tr = (props) => {
6818
- return /* @__PURE__ */ _jsx60("tr", _object_spread_props32(_object_spread40({}, props), {
6805
+ return /* @__PURE__ */ _jsx61("tr", _object_spread_props32(_object_spread40({}, props), {
6819
6806
  className: "border border-solid transition-colors duration-500 even:bg-soft border-gray-light-2"
6820
6807
  }));
6821
6808
  };
6822
6809
  var Td = (props) => {
6823
- return /* @__PURE__ */ _jsx60("td", _object_spread_props32(_object_spread40({}, props), {
6810
+ return /* @__PURE__ */ _jsx61("td", _object_spread_props32(_object_spread40({}, props), {
6824
6811
  className: "border border-solid px-4 py-2 border-gray-light-2"
6825
6812
  }));
6826
6813
  };
6827
6814
  var Th = (props) => {
6828
- return /* @__PURE__ */ _jsx60("th", _object_spread_props32(_object_spread40({}, props), {
6815
+ return /* @__PURE__ */ _jsx61("th", _object_spread_props32(_object_spread40({}, props), {
6829
6816
  className: "border border-solid px-4 py-2 text-text-1 text-base font-semibold border-gray-light-2"
6830
6817
  }));
6831
6818
  };
6832
6819
 
6833
6820
  // src/theme-default/layout/DocLayout/docComponents/hr.tsx
6834
- import { jsx as _jsx61 } from "react/jsx-runtime";
6821
+ import { jsx as _jsx62 } from "react/jsx-runtime";
6835
6822
  function _define_property41(obj, key, value) {
6836
6823
  if (key in obj) {
6837
6824
  Object.defineProperty(obj, key, {
@@ -6885,13 +6872,13 @@ function _object_spread_props33(target, source) {
6885
6872
  return target;
6886
6873
  }
6887
6874
  var Hr = (props) => {
6888
- return /* @__PURE__ */ _jsx61("hr", _object_spread_props33(_object_spread41({}, props), {
6875
+ return /* @__PURE__ */ _jsx62("hr", _object_spread_props33(_object_spread41({}, props), {
6889
6876
  className: "my-12 border-t bordder-solid border-divider-light"
6890
6877
  }));
6891
6878
  };
6892
6879
 
6893
6880
  // src/theme-default/layout/DocLayout/docComponents/link.tsx
6894
- import { jsx as _jsx62 } from "react/jsx-runtime";
6881
+ import { jsx as _jsx63 } from "react/jsx-runtime";
6895
6882
  import { isExternalUrl, normalizeHref as normalizeHref9, normalizeSlash as normalizeSlash2 } from "@rspress/shared";
6896
6883
  import { withBase as withBase8, useLang, usePageData as usePageData15, removeBase as removeBase3 } from "@/runtime";
6897
6884
  function _define_property42(obj, key, value) {
@@ -6962,14 +6949,14 @@ var A = (props) => {
6962
6949
  }
6963
6950
  href = normalizeHref9(withBase8(href || ""));
6964
6951
  }
6965
- return /* @__PURE__ */ _jsx62("a", _object_spread_props34(_object_spread42({}, props), {
6966
- className: `${index_module_default18.link} ${props.className}`,
6952
+ return /* @__PURE__ */ _jsx63("a", _object_spread_props34(_object_spread42({}, props), {
6953
+ className: `${index_module_default17.link} ${props.className}`,
6967
6954
  href
6968
6955
  }));
6969
6956
  };
6970
6957
 
6971
6958
  // src/theme-default/layout/DocLayout/docComponents/paragraph.tsx
6972
- import { jsx as _jsx63 } from "react/jsx-runtime";
6959
+ import { jsx as _jsx64 } from "react/jsx-runtime";
6973
6960
  function _define_property43(obj, key, value) {
6974
6961
  if (key in obj) {
6975
6962
  Object.defineProperty(obj, key, {
@@ -7023,17 +7010,17 @@ function _object_spread_props35(target, source) {
7023
7010
  return target;
7024
7011
  }
7025
7012
  var P = (props) => {
7026
- return /* @__PURE__ */ _jsx63("p", _object_spread_props35(_object_spread43({}, props), {
7013
+ return /* @__PURE__ */ _jsx64("p", _object_spread_props35(_object_spread43({}, props), {
7027
7014
  className: "my-4 leading-7"
7028
7015
  }));
7029
7016
  };
7030
7017
  var Blockquote = (props) => {
7031
- return /* @__PURE__ */ _jsx63("blockquote", _object_spread_props35(_object_spread43({}, props), {
7032
- className: `border-l-2 border-solid border-divider pl-4 my-6 transition-colors duration-500 ${index_module_default18.blockquote}`
7018
+ return /* @__PURE__ */ _jsx64("blockquote", _object_spread_props35(_object_spread43({}, props), {
7019
+ className: `border-l-2 border-solid border-divider pl-4 my-6 transition-colors duration-500 ${index_module_default17.blockquote}`
7033
7020
  }));
7034
7021
  };
7035
7022
  var Strong = (props) => {
7036
- return /* @__PURE__ */ _jsx63("strong", _object_spread_props35(_object_spread43({}, props), {
7023
+ return /* @__PURE__ */ _jsx64("strong", _object_spread_props35(_object_spread43({}, props), {
7037
7024
  className: "font-semibold"
7038
7025
  }));
7039
7026
  };
@@ -7078,6 +7065,7 @@ export {
7078
7065
  Nav2 as Nav,
7079
7066
  PackageManagerTabs,
7080
7067
  Search2 as Search,
7068
+ SearchPanel,
7081
7069
  Tab,
7082
7070
  Tabs,
7083
7071
  Toc,