@rspress/core 2.0.20 → 2.0.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (179) hide show
  1. package/dist/cli/index.js +12 -13
  2. package/dist/config/loadConfigFile.d.ts +3 -4
  3. package/dist/config/loadConfigFile.js +13 -17
  4. package/dist/{7748~0.js → d~0.js} +0 -2
  5. package/dist/eject-theme/components/Banner/index.tsx +50 -9
  6. package/dist/eject-theme/components/Callout/index.scss +6 -1
  7. package/dist/eject-theme/components/CodeBlock/index.scss +2 -0
  8. package/dist/eject-theme/components/DocContent/doc.scss +2 -2
  9. package/dist/eject-theme/components/Link/getHref.test.ts +33 -0
  10. package/dist/eject-theme/components/Link/getHref.ts +60 -0
  11. package/dist/eject-theme/components/Link/index.tsx +7 -6
  12. package/dist/eject-theme/components/Link/useLinkNavigate.ts +6 -51
  13. package/dist/eject-theme/components/Llms/LlmsHint.test.tsx +8 -0
  14. package/dist/eject-theme/components/Llms/LlmsHint.tsx +11 -3
  15. package/dist/eject-theme/components/Nav/NavMenu.scss +19 -3
  16. package/dist/eject-theme/components/Nav/NavMenu.tsx +20 -13
  17. package/dist/eject-theme/components/Nav/index.scss +3 -1
  18. package/dist/eject-theme/components/Nav/index.tsx +30 -4
  19. package/dist/eject-theme/components/NavHamburger/index.tsx +11 -3
  20. package/dist/eject-theme/components/NavList/context.ts +3 -0
  21. package/dist/eject-theme/components/NavList/index.tsx +24 -0
  22. package/dist/eject-theme/components/NavScreen/NavScreenMenu.test.tsx +59 -0
  23. package/dist/eject-theme/components/NavScreen/NavScreenMenu.tsx +43 -2
  24. package/dist/eject-theme/components/NavScreen/index.scss +0 -6
  25. package/dist/eject-theme/components/NavScreen/index.tsx +20 -3
  26. package/dist/eject-theme/components/Prompt/index.scss +2 -1
  27. package/dist/eject-theme/components/ReadPercent/useReadPercent.ts +1 -1
  28. package/dist/eject-theme/components/Search/SearchButton.scss +1 -0
  29. package/dist/eject-theme/components/Search/SearchPanel.scss +51 -12
  30. package/dist/eject-theme/components/Search/SearchPanel.tsx +54 -212
  31. package/dist/eject-theme/components/Search/logic/providers/LocalProvider.ts +38 -16
  32. package/dist/eject-theme/components/Search/useSearchPanel.ts +216 -0
  33. package/dist/eject-theme/components/Steps/index.scss +1 -1
  34. package/dist/eject-theme/components/SwitchAppearance/getClipPath.test.ts +15 -0
  35. package/dist/eject-theme/components/SwitchAppearance/getClipPath.ts +26 -0
  36. package/dist/eject-theme/components/SwitchAppearance/global.scss +18 -0
  37. package/dist/eject-theme/components/SwitchAppearance/index.tsx +26 -35
  38. package/dist/eject-theme/components/Tabs/index.tsx +14 -14
  39. package/dist/index.js +1 -1
  40. package/dist/node/PluginDriver.d.ts +1 -1
  41. package/dist/node/PluginDriver.js +5 -9
  42. package/dist/node/auto-nav-sidebar/index.js +1 -1
  43. package/dist/node/auto-nav-sidebar/locales.js +1 -1
  44. package/dist/node/auto-nav-sidebar/normalize.js +6 -6
  45. package/dist/node/auto-nav-sidebar/utils.js +1 -1
  46. package/dist/node/auto-nav-sidebar/walk.js +1 -1
  47. package/dist/node/build.d.ts +3 -2
  48. package/dist/node/build.js +9 -3
  49. package/dist/node/constants.js +1 -1
  50. package/dist/node/dev.d.ts +4 -4
  51. package/dist/node/dev.js +8 -6
  52. package/dist/node/eject.js +5 -5
  53. package/dist/node/initRsbuild.d.ts +2 -3
  54. package/dist/node/initRsbuild.js +9 -7
  55. package/dist/node/last-updated/index.js +2 -2
  56. package/dist/node/logger/hint.js +4 -4
  57. package/dist/node/mdx/options.js +1 -1
  58. package/dist/node/mdx/processor.js +3 -3
  59. package/dist/node/mdx/rehypePlugins/codeMeta.js +1 -1
  60. package/dist/node/mdx/rehypePlugins/headerAnchor.js +1 -1
  61. package/dist/node/mdx/rehypePlugins/shiki.js +1 -1
  62. package/dist/node/mdx/remarkPlugins/builtin.js +1 -1
  63. package/dist/node/mdx/remarkPlugins/containerSyntax.js +6 -5
  64. package/dist/node/mdx/remarkPlugins/fileCodeBlock.js +5 -5
  65. package/dist/node/mdx/remarkPlugins/image.js +5 -5
  66. package/dist/node/mdx/remarkPlugins/link.js +5 -5
  67. package/dist/node/mdx/remarkPlugins/toc.js +1 -1
  68. package/dist/node/medium-zoom/index.js +1 -1
  69. package/dist/node/route/RoutePage.js +6 -4
  70. package/dist/node/route/RouteService.js +3 -3
  71. package/dist/node/route/extractPageData.js +20 -7
  72. package/dist/node/route/normalizeRoutePath.js +1 -1
  73. package/dist/node/runtimeModule/i18n.js +5 -5
  74. package/dist/node/runtimeModule/pageData/createPageData.js +1 -1
  75. package/dist/node/runtimeModule/pageData/rsbuildPlugin.js +1 -1
  76. package/dist/node/runtimeModule/searchHooks.js +1 -1
  77. package/dist/node/runtimeModule/siteData/createSiteData.js +1 -1
  78. package/dist/node/runtimeModule/siteData/normalizeThemeConfig.js +1 -1
  79. package/dist/node/runtimeModule/siteData/rsbuildPlugin.js +1 -1
  80. package/dist/node/serve.d.ts +3 -3
  81. package/dist/node/serve.js +10 -4
  82. package/dist/node/ssg/alternateLinks.js +1 -1
  83. package/dist/node/ssg/htmlFile.js +1 -1
  84. package/dist/node/ssg/renderHtmlTemplate.js +1 -1
  85. package/dist/node/ssg/renderPage.js +5 -5
  86. package/dist/node/ssg/renderPageWorker.js +2 -2
  87. package/dist/node/ssg/renderPages.js +6 -6
  88. package/dist/node/ssg/rsbuildPluginSSG.js +1 -1
  89. package/dist/node/ssg/ssgEnv.js +1 -1
  90. package/dist/node/ssg-md/llms/emitLlmsTxt.js +1 -1
  91. package/dist/node/ssg-md/llms/llmsTxt.js +1 -1
  92. package/dist/node/ssg-md/remarkSplitMdx.js +1 -1
  93. package/dist/node/ssg-md/renderPage.js +5 -5
  94. package/dist/node/ssg-md/renderPages.js +6 -6
  95. package/dist/node/ssg-md/rsbuildPluginSSGMD.js +1 -1
  96. package/dist/node/utils/checkLanguageParity.js +5 -7
  97. package/dist/node/utils/createHash.js +1 -1
  98. package/dist/node/utils/error.js +4 -4
  99. package/dist/node/utils/flattenMdxContent.js +2 -2
  100. package/dist/node/utils/fs.js +1 -1
  101. package/dist/node/utils/getPageKey.js +1 -1
  102. package/dist/node/utils/index.d.ts +1 -1
  103. package/dist/node/utils/reactAlias.js +5 -5
  104. package/dist/node/utils/slash.d.ts +1 -0
  105. package/dist/node/utils/slash.js +4 -0
  106. package/dist/{864~0.js → n~0.js} +41 -41
  107. package/dist/{2711~0.js → o~0.js} +90 -56
  108. package/dist/rslib-runtime~0.js +27 -35
  109. package/dist/theme/components/Banner/index.js +53 -9
  110. package/dist/theme/components/Callout/index.css +6 -1
  111. package/dist/theme/components/CodeBlock/index.css +2 -0
  112. package/dist/theme/components/DocContent/doc.css +2 -2
  113. package/dist/theme/components/Link/getHref.d.ts +8 -0
  114. package/dist/theme/components/Link/getHref.js +33 -0
  115. package/dist/theme/components/Link/index.js +7 -6
  116. package/dist/theme/components/Link/useLinkNavigate.d.ts +0 -7
  117. package/dist/theme/components/Link/useLinkNavigate.js +8 -32
  118. package/dist/theme/components/Llms/LlmsHint.js +23 -6
  119. package/dist/theme/components/Nav/NavMenu.css +18 -6
  120. package/dist/theme/components/Nav/NavMenu.d.ts +4 -2
  121. package/dist/theme/components/Nav/NavMenu.js +17 -9
  122. package/dist/theme/components/Nav/index.css +3 -1
  123. package/dist/theme/components/Nav/index.d.ts +7 -1
  124. package/dist/theme/components/Nav/index.js +13 -4
  125. package/dist/theme/components/NavHamburger/index.d.ts +2 -1
  126. package/dist/theme/components/NavHamburger/index.js +8 -2
  127. package/dist/theme/components/NavList/context.d.ts +1 -0
  128. package/dist/theme/components/NavList/context.js +3 -0
  129. package/dist/theme/components/NavList/index.d.ts +6 -0
  130. package/dist/theme/components/NavList/index.js +17 -0
  131. package/dist/theme/components/NavScreen/NavScreenMenu.d.ts +3 -2
  132. package/dist/theme/components/NavScreen/NavScreenMenu.js +42 -6
  133. package/dist/theme/components/NavScreen/index.css +0 -10
  134. package/dist/theme/components/NavScreen/index.d.ts +2 -1
  135. package/dist/theme/components/NavScreen/index.js +11 -3
  136. package/dist/theme/components/PackageManagerTabs/index.js +2 -2
  137. package/dist/theme/components/Prompt/index.css +2 -1
  138. package/dist/theme/components/ReadPercent/useReadPercent.js +1 -0
  139. package/dist/theme/components/Search/SearchButton.css +1 -0
  140. package/dist/theme/components/Search/SearchPanel.css +47 -9
  141. package/dist/theme/components/Search/SearchPanel.js +97 -205
  142. package/dist/theme/components/Search/logic/providers/LocalProvider.d.ts +1 -0
  143. package/dist/theme/components/Search/logic/providers/LocalProvider.js +23 -13
  144. package/dist/theme/components/Search/logic/search.js +1 -1
  145. package/dist/theme/components/Search/useSearchPanel.d.ts +23 -0
  146. package/dist/theme/components/Search/useSearchPanel.js +155 -0
  147. package/dist/theme/components/Steps/index.css +3 -3
  148. package/dist/theme/components/SwitchAppearance/getClipPath.d.ts +8 -0
  149. package/dist/theme/components/SwitchAppearance/getClipPath.js +13 -0
  150. package/dist/theme/components/SwitchAppearance/global.css +12 -0
  151. package/dist/theme/components/SwitchAppearance/index.js +11 -15
  152. package/dist/theme/components/Tabs/index.js +4 -4
  153. package/dist/theme/components/Tag/index.js +2 -2
  154. package/dist/theme/index.d.ts +1 -0
  155. package/dist/theme/index.js +1 -0
  156. package/dist/theme/layout/DocLayout/index.js +2 -2
  157. package/dist/theme/layout/Layout/index.js +12 -4
  158. package/dist/theme/logic/applyThemeToDOM.d.ts +2 -0
  159. package/dist/theme/logic/applyThemeToDOM.js +17 -0
  160. package/dist/theme/logic/useFullTextSearch.js +6 -1
  161. package/dist/theme/logic/useThemeState.d.ts +1 -2
  162. package/dist/theme/logic/useThemeState.js +1 -7
  163. package/dist/theme/styles/vars/shiki-vars.css +1 -1
  164. package/dist/tinypool~0.js +5 -3
  165. package/dist/{4538~0.js → t~0.js} +2 -2
  166. package/dist/{8472~0.js → v~0.js} +1 -1
  167. package/package.json +11 -12
  168. package/dist/eject-theme/components/NavScreen/NavScreenMenuOthers.tsx +0 -29
  169. package/dist/node/utils/normalizePath.d.ts +0 -3
  170. package/dist/node/utils/normalizePath.js +0 -10
  171. package/dist/theme/components/NavScreen/NavScreenMenuOthers.d.ts +0 -2
  172. package/dist/theme/components/NavScreen/NavScreenMenuOthers.js +0 -30
  173. package/dist/theme/logic/useHandler.d.ts +0 -6
  174. package/dist/theme/logic/useHandler.js +0 -7
  175. /package/dist/{9857~0.js → 4~0.js} +0 -0
  176. /package/dist/{8016~0.js → i~0.js} +0 -0
  177. /package/dist/{5357~0.js → r~0.js} +0 -0
  178. /package/dist/{102~0.js → t2~0.js} +0 -0
  179. /package/dist/{9940~0.js → tx~0.js} +0 -0
@@ -1,3 +1,4 @@
1
+ import { rspackRequire, moduleFactories } from "./rslib-runtime~0.js";
1
2
  import node_path from "node:path";
2
3
  import { Buffer } from "node:buffer";
3
4
  import node_child_process, { ChildProcess } from "node:child_process";
@@ -7,13 +8,12 @@ import node_os, { constants } from "node:os";
7
8
  import { createReadStream, createWriteStream, readFileSync } from "node:fs";
8
9
  import { setTimeout as promises_setTimeout } from "node:timers/promises";
9
10
  import { debuglog } from "node:util";
10
- import { __webpack_require__ } from "./rslib-runtime~0.js";
11
- import "./2711~0.js";
12
- __webpack_require__.add({
13
- "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/index.js" (module, __unused_rspack_exports, __webpack_require__) {
14
- const cp = __webpack_require__("child_process");
15
- const parse = __webpack_require__("../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/parse.js");
16
- const enoent = __webpack_require__("../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/enoent.js");
11
+ import "./o~0.js";
12
+ moduleFactories.add({
13
+ "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/index.js" (module) {
14
+ const cp = rspackRequire("child_process");
15
+ const parse = rspackRequire("../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/parse.js");
16
+ const enoent = rspackRequire("../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/enoent.js");
17
17
  function spawn(command, args, options) {
18
18
  const parsed = parse(command, args, options);
19
19
  const spawned = cp.spawn(parsed.command, parsed.args, parsed.options);
@@ -69,11 +69,11 @@ __webpack_require__.add({
69
69
  notFoundError
70
70
  };
71
71
  },
72
- "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/parse.js" (module, __unused_rspack_exports, __webpack_require__) {
73
- const path = __webpack_require__("path?37f5");
74
- const resolveCommand = __webpack_require__("../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/resolveCommand.js");
75
- const escape = __webpack_require__("../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/escape.js");
76
- const readShebang = __webpack_require__("../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/readShebang.js");
72
+ "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/parse.js" (module) {
73
+ const path = rspackRequire("path?37f5");
74
+ const resolveCommand = rspackRequire("../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/resolveCommand.js");
75
+ const escape = rspackRequire("../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/escape.js");
76
+ const readShebang = rspackRequire("../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/readShebang.js");
77
77
  const isWin = 'win32' === process.platform;
78
78
  const isExecutableRegExp = /\.(?:com|exe)$/i;
79
79
  const isCmdShimRegExp = /node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;
@@ -149,9 +149,9 @@ __webpack_require__.add({
149
149
  module.exports.command = escapeCommand;
150
150
  module.exports.argument = escapeArgument;
151
151
  },
152
- "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/readShebang.js" (module, __unused_rspack_exports, __webpack_require__) {
153
- const fs = __webpack_require__("fs?cdbd");
154
- const shebangCommand = __webpack_require__("../../node_modules/.pnpm/shebang-command@2.0.0/node_modules/shebang-command/index.js");
152
+ "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/readShebang.js" (module) {
153
+ const fs = rspackRequire("fs?cdbd");
154
+ const shebangCommand = rspackRequire("../../node_modules/.pnpm/shebang-command@2.0.0/node_modules/shebang-command/index.js");
155
155
  function readShebang(command) {
156
156
  const size = 150;
157
157
  const buffer = Buffer.alloc(size);
@@ -165,10 +165,10 @@ __webpack_require__.add({
165
165
  }
166
166
  module.exports = readShebang;
167
167
  },
168
- "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/resolveCommand.js" (module, __unused_rspack_exports, __webpack_require__) {
169
- const path = __webpack_require__("path?37f5");
170
- const which = __webpack_require__("../../node_modules/.pnpm/which@2.0.2/node_modules/which/which.js");
171
- const getPathKey = __webpack_require__("../../node_modules/.pnpm/path-key@3.1.1/node_modules/path-key/index.js");
168
+ "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/resolveCommand.js" (module) {
169
+ const path = rspackRequire("path?37f5");
170
+ const which = rspackRequire("../../node_modules/.pnpm/which@2.0.2/node_modules/which/which.js");
171
+ const getPathKey = rspackRequire("../../node_modules/.pnpm/path-key@3.1.1/node_modules/path-key/index.js");
172
172
  function resolveCommandAttempt(parsed, withoutPathExt) {
173
173
  const env = parsed.options.env || process.env;
174
174
  const cwd = process.cwd();
@@ -196,10 +196,10 @@ __webpack_require__.add({
196
196
  }
197
197
  module.exports = resolveCommand;
198
198
  },
199
- "../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/index.js" (module, __unused_rspack_exports, __webpack_require__) {
200
- __webpack_require__("fs?cdbd");
199
+ "../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/index.js" (module) {
200
+ rspackRequire("fs?cdbd");
201
201
  var core;
202
- core = 'win32' === process.platform || global.TESTING_WINDOWS ? __webpack_require__("../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/windows.js") : __webpack_require__("../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/mode.js");
202
+ core = 'win32' === process.platform || global.TESTING_WINDOWS ? rspackRequire("../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/windows.js") : rspackRequire("../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/mode.js");
203
203
  module.exports = isexe;
204
204
  isexe.sync = sync;
205
205
  function isexe(path, options, cb) {
@@ -231,14 +231,14 @@ __webpack_require__.add({
231
231
  return core.sync(path, options || {});
232
232
  } catch (er) {
233
233
  if (options && options.ignoreErrors || 'EACCES' === er.code) return false;
234
- throw er;
234
+ else throw er;
235
235
  }
236
236
  }
237
237
  },
238
- "../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/mode.js" (module, __unused_rspack_exports, __webpack_require__) {
238
+ "../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/mode.js" (module) {
239
239
  module.exports = isexe;
240
240
  isexe.sync = sync;
241
- var fs = __webpack_require__("fs?cdbd");
241
+ var fs = rspackRequire("fs?cdbd");
242
242
  function isexe(path, options, cb) {
243
243
  fs.stat(path, function(er, stat) {
244
244
  cb(er, er ? false : checkStat(stat, options));
@@ -264,10 +264,10 @@ __webpack_require__.add({
264
264
  return ret;
265
265
  }
266
266
  },
267
- "../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/windows.js" (module, __unused_rspack_exports, __webpack_require__) {
267
+ "../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/windows.js" (module) {
268
268
  module.exports = isexe;
269
269
  isexe.sync = sync;
270
- var fs = __webpack_require__("fs?cdbd");
270
+ var fs = rspackRequire("fs?cdbd");
271
271
  function checkPathExt(path, options) {
272
272
  var pathext = void 0 !== options.pathExt ? options.pathExt : process.env.PATHEXT;
273
273
  if (!pathext) return true;
@@ -292,8 +292,8 @@ __webpack_require__.add({
292
292
  return checkStat(fs.statSync(path), path, options);
293
293
  }
294
294
  },
295
- "../../node_modules/.pnpm/merge-stream@2.0.0/node_modules/merge-stream/index.js" (module, __unused_rspack_exports, __webpack_require__) {
296
- const { PassThrough } = __webpack_require__("stream");
295
+ "../../node_modules/.pnpm/merge-stream@2.0.0/node_modules/merge-stream/index.js" (module) {
296
+ const { PassThrough } = rspackRequire("stream");
297
297
  module.exports = function() {
298
298
  var sources = [];
299
299
  var output = new PassThrough({
@@ -339,8 +339,8 @@ __webpack_require__.add({
339
339
  module.exports = pathKey;
340
340
  module.exports["default"] = pathKey;
341
341
  },
342
- "../../node_modules/.pnpm/shebang-command@2.0.0/node_modules/shebang-command/index.js" (module, __unused_rspack_exports, __webpack_require__) {
343
- const shebangRegex = __webpack_require__("../../node_modules/.pnpm/shebang-regex@3.0.0/node_modules/shebang-regex/index.js");
342
+ "../../node_modules/.pnpm/shebang-command@2.0.0/node_modules/shebang-command/index.js" (module) {
343
+ const shebangRegex = rspackRequire("../../node_modules/.pnpm/shebang-regex@3.0.0/node_modules/shebang-regex/index.js");
344
344
  module.exports = (string = '')=>{
345
345
  const match = string.match(shebangRegex);
346
346
  if (!match) return null;
@@ -353,11 +353,11 @@ __webpack_require__.add({
353
353
  "../../node_modules/.pnpm/shebang-regex@3.0.0/node_modules/shebang-regex/index.js" (module) {
354
354
  module.exports = /^#!(.*)/;
355
355
  },
356
- "../../node_modules/.pnpm/which@2.0.2/node_modules/which/which.js" (module, __unused_rspack_exports, __webpack_require__) {
356
+ "../../node_modules/.pnpm/which@2.0.2/node_modules/which/which.js" (module) {
357
357
  const isWindows = 'win32' === process.platform || 'cygwin' === process.env.OSTYPE || 'msys' === process.env.OSTYPE;
358
- const path = __webpack_require__("path?37f5");
358
+ const path = rspackRequire("path?37f5");
359
359
  const COLON = isWindows ? ';' : ':';
360
- const isexe = __webpack_require__("../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/index.js");
360
+ const isexe = rspackRequire("../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/index.js");
361
361
  const getNotFoundError = (cmd)=>Object.assign(new Error(`not found: ${cmd}`), {
362
362
  code: 'ENOENT'
363
363
  });
@@ -975,7 +975,7 @@ if ('win32' !== process.platform) signals_signals.push('SIGALRM', 'SIGABRT', 'SI
975
975
  if ('linux' === process.platform) signals_signals.push('SIGIO', 'SIGPOLL', 'SIGPWR', 'SIGSTKFLT');
976
976
  const processOk = (process1)=>!!process1 && 'object' == typeof process1 && 'function' == typeof process1.removeListener && 'function' == typeof process1.emit && 'function' == typeof process1.reallyExit && 'function' == typeof process1.listeners && 'function' == typeof process1.kill && 'number' == typeof process1.pid && 'function' == typeof process1.on;
977
977
  const kExitEmitter = Symbol.for('signal-exit emitter');
978
- const global = globalThis;
978
+ const mjs_global = globalThis;
979
979
  const ObjectDefineProperty = Object.defineProperty.bind(Object);
980
980
  class Emitter {
981
981
  emitted = {
@@ -989,8 +989,8 @@ class Emitter {
989
989
  count = 0;
990
990
  id = Math.random();
991
991
  constructor(){
992
- if (global[kExitEmitter]) return global[kExitEmitter];
993
- ObjectDefineProperty(global, kExitEmitter, {
992
+ if (mjs_global[kExitEmitter]) return mjs_global[kExitEmitter];
993
+ ObjectDefineProperty(mjs_global, kExitEmitter, {
994
994
  value: this,
995
995
  writable: false,
996
996
  enumerable: false,
@@ -1107,7 +1107,7 @@ class SignalExit extends SignalExitBase {
1107
1107
  #processEmit(ev, ...args) {
1108
1108
  const og = this.#originalProcessEmit;
1109
1109
  if (!('exit' === ev && processOk(this.#process))) return og.call(this.#process, ev, ...args);
1110
- {
1110
+ else {
1111
1111
  if ('number' == typeof args[0]) this.#process.exitCode = args[0];
1112
1112
  const ret = og.call(this.#process, ev, ...args);
1113
1113
  this.#emitter.emit('exit', this.#process.exitCode, null);
@@ -1116,7 +1116,7 @@ class SignalExit extends SignalExitBase {
1116
1116
  }
1117
1117
  }
1118
1118
  const mjs_process = globalThis.process;
1119
- const { onExit: onExit, load: load, unload: unload } = signalExitWrap(processOk(mjs_process) ? new SignalExit(mjs_process) : new SignalExitFallback());
1119
+ const { onExit: onExit, load: mjs_load, unload: unload } = signalExitWrap(processOk(mjs_process) ? new SignalExit(mjs_process) : new SignalExitFallback());
1120
1120
  const DEFAULT_FORCE_KILL_TIMEOUT = 5000;
1121
1121
  const spawnedKill = (kill, signal = 'SIGTERM', options = {})=>{
1122
1122
  const killResult = kill(signal);
@@ -1379,7 +1379,7 @@ const stringMethods = {
1379
1379
  getFinalChunk: getFinalStringChunk,
1380
1380
  finalize: utils_getContentsProp
1381
1381
  };
1382
- const merge_stream = __webpack_require__("../../node_modules/.pnpm/merge-stream@2.0.0/node_modules/merge-stream/index.js");
1382
+ const merge_stream = rspackRequire("../../node_modules/.pnpm/merge-stream@2.0.0/node_modules/merge-stream/index.js");
1383
1383
  const validateInputOptions = (input)=>{
1384
1384
  if (void 0 !== input) throw new TypeError('The `input` and `inputFile` options cannot be both set.');
1385
1385
  };
@@ -1574,7 +1574,7 @@ const logCommand = (escapedCommand, { verbose })=>{
1574
1574
  if (!verbose) return;
1575
1575
  node_process.stderr.write(`[${getTimestamp()}] ${escapedCommand}\n`);
1576
1576
  };
1577
- const cross_spawn = __webpack_require__("../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/index.js");
1577
+ const cross_spawn = rspackRequire("../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/index.js");
1578
1578
  const DEFAULT_MAX_BUFFER = 100000000;
1579
1579
  const getEnv = ({ env: envOption, extendEnv, preferLocal, localDir, execPath })=>{
1580
1580
  const env = extendEnv ? {
@@ -1,4 +1,4 @@
1
- import { __webpack_require__ } from "./rslib-runtime~0.js";
1
+ import { rspackRequire, moduleFactories } from "./rslib-runtime~0.js";
2
2
  import { fileURLToPath as external_url_fileURLToPath } from "url";
3
3
  import node_path, { extname, join, relative as external_node_path_relative } from "node:path";
4
4
  import { basename, dirname, isAbsolute, normalize, posix, relative as external_path_relative, resolve, sep } from "path";
@@ -7,10 +7,10 @@ import { readdir, readdirSync, realpath, realpathSync, stat as external_fs_stat,
7
7
  import { createRequire as external_module_createRequire } from "module";
8
8
  import { createRequire as __rspack_createRequire } from "node:module";
9
9
  const __rspack_createRequire_require = __rspack_createRequire(import.meta.url);
10
- __webpack_require__.add({
11
- "../../node_modules/.pnpm/picomatch@4.0.4/node_modules/picomatch/index.js" (module, __unused_rspack_exports, __webpack_require__) {
12
- const pico = __webpack_require__("../../node_modules/.pnpm/picomatch@4.0.4/node_modules/picomatch/lib/picomatch.js");
13
- const utils = __webpack_require__("../../node_modules/.pnpm/picomatch@4.0.4/node_modules/picomatch/lib/utils.js");
10
+ moduleFactories.add({
11
+ "../../node_modules/.pnpm/picomatch@4.0.7/node_modules/picomatch/index.js" (module) {
12
+ const pico = rspackRequire("../../node_modules/.pnpm/picomatch@4.0.7/node_modules/picomatch/lib/picomatch.js");
13
+ const utils = rspackRequire("../../node_modules/.pnpm/picomatch@4.0.7/node_modules/picomatch/lib/utils.js");
14
14
  function picomatch(glob, options, returnState = false) {
15
15
  if (options && (null === options.windows || void 0 === options.windows)) options = {
16
16
  ...options,
@@ -21,7 +21,7 @@ __webpack_require__.add({
21
21
  Object.assign(picomatch, pico);
22
22
  module.exports = picomatch;
23
23
  },
24
- "../../node_modules/.pnpm/picomatch@4.0.4/node_modules/picomatch/lib/constants.js" (module) {
24
+ "../../node_modules/.pnpm/picomatch@4.0.7/node_modules/picomatch/lib/constants.js" (module) {
25
25
  const WIN_SLASH = '\\\\/';
26
26
  const WIN_NO_SLASH = `[^${WIN_SLASH}]`;
27
27
  const DEFAULT_MAX_EXTGLOB_RECURSION = 0;
@@ -184,9 +184,9 @@ __webpack_require__.add({
184
184
  }
185
185
  };
186
186
  },
187
- "../../node_modules/.pnpm/picomatch@4.0.4/node_modules/picomatch/lib/parse.js" (module, __unused_rspack_exports, __webpack_require__) {
188
- const constants = __webpack_require__("../../node_modules/.pnpm/picomatch@4.0.4/node_modules/picomatch/lib/constants.js");
189
- const utils = __webpack_require__("../../node_modules/.pnpm/picomatch@4.0.4/node_modules/picomatch/lib/utils.js");
187
+ "../../node_modules/.pnpm/picomatch@4.0.7/node_modules/picomatch/lib/parse.js" (module) {
188
+ const constants = rspackRequire("../../node_modules/.pnpm/picomatch@4.0.7/node_modules/picomatch/lib/constants.js");
189
+ const utils = rspackRequire("../../node_modules/.pnpm/picomatch@4.0.7/node_modules/picomatch/lib/utils.js");
190
190
  const { MAX_LENGTH, POSIX_REGEX_SOURCE, REGEX_NON_SPECIAL_CHARS, REGEX_SPECIAL_CHARS_BACKREF, REPLACEMENTS } = constants;
191
191
  const expandRange = (args, options)=>{
192
192
  if ('function' == typeof options.expandRange) return options.expandRange(...args, options);
@@ -330,7 +330,11 @@ __webpack_require__.add({
330
330
  }
331
331
  }
332
332
  };
333
- const getStarExtglobSequenceOutput = (pattern)=>{
333
+ const buildCharClassStar = (chars)=>{
334
+ const source = 1 === chars.length ? utils.escapeRegex(chars[0]) : `[${chars.map((ch)=>utils.escapeRegex(ch)).join('')}]`;
335
+ return `${source}*`;
336
+ };
337
+ const getStarExtglobSequenceChars = (pattern)=>{
334
338
  let index = 0;
335
339
  const chars = [];
336
340
  while(index < pattern.length){
@@ -344,8 +348,7 @@ __webpack_require__.add({
344
348
  index += match.end + 1;
345
349
  }
346
350
  if (chars.length < 1) return;
347
- const source = 1 === chars.length ? utils.escapeRegex(chars[0]) : `[${chars.map((ch)=>utils.escapeRegex(ch)).join('')}]`;
348
- return `${source}*`;
351
+ return chars;
349
352
  };
350
353
  const repeatedExtglobRecursion = (pattern)=>{
351
354
  let depth = 0;
@@ -369,16 +372,34 @@ __webpack_require__.add({
369
372
  risky: true
370
373
  };
371
374
  }
375
+ const safeChars = [];
376
+ let sawStarSequence = false;
377
+ let combinable = true;
372
378
  for (const branch of branches){
373
- const safeOutput = getStarExtglobSequenceOutput(branch);
374
- if (safeOutput) return {
375
- risky: true,
376
- safeOutput
377
- };
379
+ const chars = getStarExtglobSequenceChars(branch);
380
+ if (chars) {
381
+ sawStarSequence = true;
382
+ safeChars.push(...chars);
383
+ continue;
384
+ }
385
+ const literal = normalizeSimpleBranch(branch);
386
+ if (literal && 1 === literal.length) {
387
+ safeChars.push(literal);
388
+ continue;
389
+ }
390
+ combinable = false;
378
391
  if (repeatedExtglobRecursion(branch) > max) return {
379
392
  risky: true
380
393
  };
381
394
  }
395
+ if (sawStarSequence) return combinable ? {
396
+ risky: true,
397
+ safeOutput: buildCharClassStar([
398
+ ...new Set(safeChars)
399
+ ])
400
+ } : {
401
+ risky: true
402
+ };
382
403
  return {
383
404
  risky: false
384
405
  };
@@ -1002,6 +1023,7 @@ __webpack_require__.add({
1002
1023
  rest = rest.slice(3);
1003
1024
  consume('/**', 3);
1004
1025
  }
1026
+ const isEnd = eos() || state.parens > 0 && rest === ')'.repeat(state.parens) && !extglobs.some((extglob)=>'negate' === extglob.type);
1005
1027
  if ('bos' === prior.type && eos()) {
1006
1028
  prev.type = 'globstar';
1007
1029
  prev.value += value;
@@ -1011,7 +1033,7 @@ __webpack_require__.add({
1011
1033
  consume(value);
1012
1034
  continue;
1013
1035
  }
1014
- if ('slash' === prior.type && 'bos' !== prior.prev.type && !afterStar && eos()) {
1036
+ if ('slash' === prior.type && 'bos' !== prior.prev.type && !afterStar && isEnd) {
1015
1037
  state.output = state.output.slice(0, -(prior.output + prev.output).length);
1016
1038
  prior.output = `(?:${prior.output}`;
1017
1039
  prev.type = 'globstar';
@@ -1182,11 +1204,11 @@ __webpack_require__.add({
1182
1204
  };
1183
1205
  module.exports = parse;
1184
1206
  },
1185
- "../../node_modules/.pnpm/picomatch@4.0.4/node_modules/picomatch/lib/picomatch.js" (module, __unused_rspack_exports, __webpack_require__) {
1186
- const scan = __webpack_require__("../../node_modules/.pnpm/picomatch@4.0.4/node_modules/picomatch/lib/scan.js");
1187
- const parse = __webpack_require__("../../node_modules/.pnpm/picomatch@4.0.4/node_modules/picomatch/lib/parse.js");
1188
- const utils = __webpack_require__("../../node_modules/.pnpm/picomatch@4.0.4/node_modules/picomatch/lib/utils.js");
1189
- const constants = __webpack_require__("../../node_modules/.pnpm/picomatch@4.0.4/node_modules/picomatch/lib/constants.js");
1207
+ "../../node_modules/.pnpm/picomatch@4.0.7/node_modules/picomatch/lib/picomatch.js" (module) {
1208
+ const scan = rspackRequire("../../node_modules/.pnpm/picomatch@4.0.7/node_modules/picomatch/lib/scan.js");
1209
+ const parse = rspackRequire("../../node_modules/.pnpm/picomatch@4.0.7/node_modules/picomatch/lib/parse.js");
1210
+ const utils = rspackRequire("../../node_modules/.pnpm/picomatch@4.0.7/node_modules/picomatch/lib/utils.js");
1211
+ const constants = rspackRequire("../../node_modules/.pnpm/picomatch@4.0.7/node_modules/picomatch/lib/constants.js");
1190
1212
  const isObject = (val)=>val && 'object' == typeof val && !Array.isArray(val);
1191
1213
  const picomatch = (glob, options, returnState = false)=>{
1192
1214
  if (Array.isArray(glob)) {
@@ -1269,9 +1291,11 @@ __webpack_require__.add({
1269
1291
  output
1270
1292
  };
1271
1293
  };
1272
- picomatch.matchBase = (input, glob, options)=>{
1294
+ picomatch.matchBase = (input, glob, options, posix = options && options.windows)=>{
1273
1295
  const regex = glob instanceof RegExp ? glob : picomatch.makeRe(glob, options);
1274
- return regex.test(utils.basename(input));
1296
+ return regex.test(utils.basename(input, {
1297
+ windows: posix
1298
+ }));
1275
1299
  };
1276
1300
  picomatch.isMatch = (str, patterns, options)=>picomatch(patterns, options)(str);
1277
1301
  picomatch.parse = (pattern, options)=>{
@@ -1315,9 +1339,9 @@ __webpack_require__.add({
1315
1339
  picomatch.constants = constants;
1316
1340
  module.exports = picomatch;
1317
1341
  },
1318
- "../../node_modules/.pnpm/picomatch@4.0.4/node_modules/picomatch/lib/scan.js" (module, __unused_rspack_exports, __webpack_require__) {
1319
- const utils = __webpack_require__("../../node_modules/.pnpm/picomatch@4.0.4/node_modules/picomatch/lib/utils.js");
1320
- const { CHAR_ASTERISK, CHAR_AT, CHAR_BACKWARD_SLASH, CHAR_COMMA, CHAR_DOT, CHAR_EXCLAMATION_MARK, CHAR_FORWARD_SLASH, CHAR_LEFT_CURLY_BRACE, CHAR_LEFT_PARENTHESES, CHAR_LEFT_SQUARE_BRACKET, CHAR_PLUS, CHAR_QUESTION_MARK, CHAR_RIGHT_CURLY_BRACE, CHAR_RIGHT_PARENTHESES, CHAR_RIGHT_SQUARE_BRACKET } = __webpack_require__("../../node_modules/.pnpm/picomatch@4.0.4/node_modules/picomatch/lib/constants.js");
1342
+ "../../node_modules/.pnpm/picomatch@4.0.7/node_modules/picomatch/lib/scan.js" (module) {
1343
+ const utils = rspackRequire("../../node_modules/.pnpm/picomatch@4.0.7/node_modules/picomatch/lib/utils.js");
1344
+ const { CHAR_ASTERISK, CHAR_AT, CHAR_BACKWARD_SLASH, CHAR_COMMA, CHAR_DOT, CHAR_EXCLAMATION_MARK, CHAR_FORWARD_SLASH, CHAR_LEFT_CURLY_BRACE, CHAR_LEFT_PARENTHESES, CHAR_LEFT_SQUARE_BRACKET, CHAR_PLUS, CHAR_QUESTION_MARK, CHAR_RIGHT_CURLY_BRACE, CHAR_RIGHT_PARENTHESES, CHAR_RIGHT_SQUARE_BRACKET } = rspackRequire("../../node_modules/.pnpm/picomatch@4.0.7/node_modules/picomatch/lib/constants.js");
1321
1345
  const isPathSeparator = (code)=>code === CHAR_FORWARD_SLASH || code === CHAR_BACKWARD_SLASH;
1322
1346
  const depth = (token)=>{
1323
1347
  if (true !== token.isPrefix) token.depth = token.isGlobstar ? 1 / 0 : 1;
@@ -1325,7 +1349,7 @@ __webpack_require__.add({
1325
1349
  const scan = (input, options)=>{
1326
1350
  const opts = options || {};
1327
1351
  const length = input.length - 1;
1328
- const scanToEnd = true === opts.parts || true === opts.scanToEnd;
1352
+ const scanToEnd = true === opts.parts || true === opts.tokens || true === opts.scanToEnd;
1329
1353
  const slashes = [];
1330
1354
  const tokens = [];
1331
1355
  const parts = [];
@@ -1429,14 +1453,18 @@ __webpack_require__.add({
1429
1453
  finished = true;
1430
1454
  if (code === CHAR_EXCLAMATION_MARK && index === start) negatedExtglob = true;
1431
1455
  if (true === scanToEnd) {
1456
+ let parens = 0;
1432
1457
  while(true !== eos() && (code = advance())){
1433
1458
  if (code === CHAR_BACKWARD_SLASH) {
1434
1459
  backslashes = token.backslashes = true;
1435
- code = advance();
1460
+ advance();
1436
1461
  continue;
1437
1462
  }
1438
- if (code === CHAR_RIGHT_PARENTHESES) {
1439
- isGlob = token.isGlob = true;
1463
+ if (code === CHAR_LEFT_PARENTHESES) {
1464
+ parens++;
1465
+ continue;
1466
+ }
1467
+ if (code === CHAR_RIGHT_PARENTHESES && 0 === --parens) {
1440
1468
  finished = true;
1441
1469
  break;
1442
1470
  }
@@ -1484,13 +1512,18 @@ __webpack_require__.add({
1484
1512
  if (true !== opts.noparen && code === CHAR_LEFT_PARENTHESES) {
1485
1513
  isGlob = token.isGlob = true;
1486
1514
  if (true === scanToEnd) {
1515
+ let parens = 1;
1487
1516
  while(true !== eos() && (code = advance())){
1488
- if (code === CHAR_LEFT_PARENTHESES) {
1517
+ if (code === CHAR_BACKWARD_SLASH) {
1489
1518
  backslashes = token.backslashes = true;
1490
- code = advance();
1519
+ advance();
1520
+ continue;
1521
+ }
1522
+ if (code === CHAR_LEFT_PARENTHESES) {
1523
+ parens++;
1491
1524
  continue;
1492
1525
  }
1493
- if (code === CHAR_RIGHT_PARENTHESES) {
1526
+ if (code === CHAR_RIGHT_PARENTHESES && 0 === --parens) {
1494
1527
  finished = true;
1495
1528
  break;
1496
1529
  }
@@ -1553,7 +1586,7 @@ __webpack_require__.add({
1553
1586
  if (true === opts.parts || true === opts.tokens) {
1554
1587
  let prevIndex;
1555
1588
  for(let idx = 0; idx < slashes.length; idx++){
1556
- const n = prevIndex ? prevIndex + 1 : start;
1589
+ const n = void 0 !== prevIndex ? prevIndex + 1 : start;
1557
1590
  const i = slashes[idx];
1558
1591
  const value = input.slice(n, i);
1559
1592
  if (opts.tokens) {
@@ -1564,18 +1597,19 @@ __webpack_require__.add({
1564
1597
  depth(tokens[idx]);
1565
1598
  state.maxDepth += tokens[idx].depth;
1566
1599
  }
1567
- if (0 !== idx || '' !== value) parts.push(value);
1568
- prevIndex = i;
1569
- }
1570
- if (prevIndex && prevIndex + 1 < input.length) {
1571
- const value = input.slice(prevIndex + 1);
1572
- parts.push(value);
1573
- if (opts.tokens) {
1574
- tokens[tokens.length - 1].value = value;
1575
- depth(tokens[tokens.length - 1]);
1576
- state.maxDepth += tokens[tokens.length - 1].depth;
1600
+ if (i >= start) {
1601
+ parts.push(value);
1602
+ prevIndex = i;
1577
1603
  }
1578
1604
  }
1605
+ const n = void 0 !== prevIndex ? prevIndex + 1 : start;
1606
+ const value = input.slice(n);
1607
+ parts.push(value);
1608
+ if (opts.tokens && prevIndex && prevIndex + 1 < input.length) {
1609
+ tokens[tokens.length - 1].value = value;
1610
+ depth(tokens[tokens.length - 1]);
1611
+ state.maxDepth += tokens[tokens.length - 1].depth;
1612
+ }
1579
1613
  state.slashes = slashes;
1580
1614
  state.parts = parts;
1581
1615
  }
@@ -1583,8 +1617,8 @@ __webpack_require__.add({
1583
1617
  };
1584
1618
  module.exports = scan;
1585
1619
  },
1586
- "../../node_modules/.pnpm/picomatch@4.0.4/node_modules/picomatch/lib/utils.js" (__unused_rspack_module, exports, __webpack_require__) {
1587
- const { REGEX_BACKSLASH, REGEX_REMOVE_BACKSLASH, REGEX_SPECIAL_CHARS, REGEX_SPECIAL_CHARS_GLOBAL } = __webpack_require__("../../node_modules/.pnpm/picomatch@4.0.4/node_modules/picomatch/lib/constants.js");
1620
+ "../../node_modules/.pnpm/picomatch@4.0.7/node_modules/picomatch/lib/utils.js" (__unused_rspack_module, exports) {
1621
+ const { REGEX_BACKSLASH, REGEX_REMOVE_BACKSLASH, REGEX_SPECIAL_CHARS, REGEX_SPECIAL_CHARS_GLOBAL } = rspackRequire("../../node_modules/.pnpm/picomatch@4.0.7/node_modules/picomatch/lib/constants.js");
1588
1622
  exports.isObject = (val)=>null !== val && 'object' == typeof val && !Array.isArray(val);
1589
1623
  exports.hasRegexChars = (str)=>REGEX_SPECIAL_CHARS.test(str);
1590
1624
  exports.isRegexChar = (str)=>1 === str.length && exports.hasRegexChars(str);
@@ -2261,7 +2295,7 @@ function joinPathWithRelativePath(root, options) {
2261
2295
  return function(filename, directoryPath) {
2262
2296
  const sameRoot = directoryPath.startsWith(root);
2263
2297
  if (sameRoot) return directoryPath.slice(root.length) + filename;
2264
- return convertSlashes(external_path_relative(root, directoryPath), options.pathSeparator) + options.pathSeparator + filename;
2298
+ else return convertSlashes(external_path_relative(root, directoryPath), options.pathSeparator) + options.pathSeparator + filename;
2265
2299
  };
2266
2300
  }
2267
2301
  function joinPath(filename) {
@@ -2316,8 +2350,8 @@ function build$5(options) {
2316
2350
  const { excludeFiles, filters, onlyCounts } = options;
2317
2351
  if (excludeFiles) return empty$1;
2318
2352
  if (filters && filters.length) return onlyCounts ? pushFileFilterAndCount : pushFileFilter;
2319
- if (onlyCounts) return pushFileCount;
2320
- return pushFile;
2353
+ else if (onlyCounts) return pushFileCount;
2354
+ else return pushFile;
2321
2355
  }
2322
2356
  const getArray = (paths)=>paths;
2323
2357
  const getArrayGroup = ()=>[
@@ -2408,9 +2442,9 @@ function report(error, callback$1, output, suppressErrors) {
2408
2442
  function build$1(options, isSynchronous) {
2409
2443
  const { onlyCounts, group, maxFiles } = options;
2410
2444
  if (onlyCounts) return isSynchronous ? onlyCountsSync : onlyCountsAsync;
2411
- if (group) return isSynchronous ? groupsSync : groupsAsync;
2412
- if (maxFiles) return isSynchronous ? limitFilesSync : limitFilesAsync;
2413
- return isSynchronous ? defaultSync : defaultAsync;
2445
+ else if (group) return isSynchronous ? groupsSync : groupsAsync;
2446
+ else if (maxFiles) return isSynchronous ? limitFilesSync : limitFilesAsync;
2447
+ else return isSynchronous ? defaultSync : defaultAsync;
2414
2448
  }
2415
2449
  const readdirOpts = {
2416
2450
  withFileTypes: true
@@ -2716,7 +2750,7 @@ var Builder = class {
2716
2750
  return this;
2717
2751
  }
2718
2752
  };
2719
- const picomatch = __webpack_require__("../../node_modules/.pnpm/picomatch@4.0.4/node_modules/picomatch/index.js");
2753
+ const picomatch = rspackRequire("../../node_modules/.pnpm/picomatch@4.0.7/node_modules/picomatch/index.js");
2720
2754
  const isReadonlyArray = Array.isArray;
2721
2755
  const BACKSLASHES = /\\/g;
2722
2756
  const DRIVE_RELATIVE_PATH = /^[A-Za-z]:$/;
@@ -2985,7 +3019,6 @@ async function glob(globInput, options) {
2985
3019
  return crawler ? formatPaths(await crawler.withPromise(), relative) : [];
2986
3020
  }
2987
3021
  export { logger } from "@rspress/shared/logger";
2988
- export { default as node_fs } from "node:fs";
2989
3022
  export { DEFAULT_CONFIG_EXTENSIONS, DEFAULT_CONFIG_NAME, DEFAULT_PAGE_EXTENSIONS } from "@rspress/shared/constants";
2990
3023
  export { default as promises, mkdir, readdir as promises_readdir, rm, stat as promises_stat, writeFile } from "node:fs/promises";
2991
3024
  export { createRequire } from "node:module";
@@ -2999,6 +3032,7 @@ export { extractTextAndId, getIconUrlPath, loadFrontMatter } from "@rspress/shar
2999
3032
  export { default as remark_gfm } from "remark-gfm";
3000
3033
  export { default as remark_parse } from "remark-parse";
3001
3034
  export { unified } from "unified";
3035
+ export { default as node_fs } from "node:fs";
3002
3036
  export { createProcessor } from "@mdx-js/mdx";
3003
3037
  export { mergeRsbuildConfig, rspack as core_rspack } from "@rsbuild/core";
3004
3038
  export { default as node_os } from "node:os";
@@ -1,42 +1,34 @@
1
- var __webpack_modules__ = {};
2
- var __webpack_module_cache__ = {};
3
- function __webpack_require__(moduleId) {
4
- var cachedModule = __webpack_module_cache__[moduleId];
1
+ var modules = {};
2
+ var moduleCache = {};
3
+ function rspackRequire(moduleId) {
4
+ var cachedModule = moduleCache[moduleId];
5
5
  if (void 0 !== cachedModule) return cachedModule.exports;
6
- var module = __webpack_module_cache__[moduleId] = {
6
+ var module = moduleCache[moduleId] = {
7
7
  exports: {}
8
8
  };
9
- __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
9
+ modules[moduleId](module, module.exports, rspackRequire);
10
10
  return module.exports;
11
11
  }
12
- __webpack_require__.m = __webpack_modules__;
13
- (()=>{
14
- __webpack_require__.n = (module)=>{
15
- var getter = module && module.__esModule ? ()=>module['default'] : ()=>module;
16
- __webpack_require__.d(getter, {
17
- a: getter
12
+ var moduleFactories = modules;
13
+ var compatGetDefaultExport = (module)=>{
14
+ var getter = module && module.__esModule ? ()=>module['default'] : ()=>module;
15
+ definePropertyGetters(getter, {
16
+ a: getter
17
+ });
18
+ return getter;
19
+ };
20
+ var definePropertyGetters = (exports, getters, values)=>{
21
+ var define = (defs, kind)=>{
22
+ for(var key in defs)if (hasOwnProperty(defs, key) && !hasOwnProperty(exports, key)) Object.defineProperty(exports, key, {
23
+ enumerable: true,
24
+ [kind]: defs[key]
18
25
  });
19
- return getter;
20
26
  };
21
- })();
22
- (()=>{
23
- __webpack_require__.d = (exports, getters, values)=>{
24
- var define = (defs, kind)=>{
25
- for(var key in defs)if (__webpack_require__.o(defs, key) && !__webpack_require__.o(exports, key)) Object.defineProperty(exports, key, {
26
- enumerable: true,
27
- [kind]: defs[key]
28
- });
29
- };
30
- define(getters, "get");
31
- define(values, "value");
32
- };
33
- })();
34
- (()=>{
35
- __webpack_require__.add = function(modules) {
36
- Object.assign(__webpack_require__.m, modules);
37
- };
38
- })();
39
- (()=>{
40
- __webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
41
- })();
42
- export { __webpack_require__ };
27
+ define(getters, "get");
28
+ define(values, "value");
29
+ };
30
+ moduleFactories.add = function(modules) {
31
+ Object.assign(moduleFactories, modules);
32
+ };
33
+ var hasOwnProperty = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
34
+ export { rspackRequire, moduleFactories, compatGetDefaultExport };