@surething/cockpit 1.0.225 → 1.0.227

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 (609) hide show
  1. package/.next-prod/BUILD_ID +1 -1
  2. package/.next-prod/app-path-routes-manifest.json +3 -2
  3. package/.next-prod/build-manifest.json +3 -3
  4. package/.next-prod/prerender-manifest.json +3 -3
  5. package/.next-prod/react-loadable-manifest.json +1 -1
  6. package/.next-prod/routes-manifest.json +6 -0
  7. package/.next-prod/server/app/_global-error/page.js +2 -2
  8. package/.next-prod/server/app/_global-error/page.js.nft.json +1 -1
  9. package/.next-prod/server/app/_global-error/page_client-reference-manifest.js +1 -1
  10. package/.next-prod/server/app/_global-error.html +1 -1
  11. package/.next-prod/server/app/_global-error.rsc +1 -1
  12. package/.next-prod/server/app/_global-error.segments/_full.segment.rsc +1 -1
  13. package/.next-prod/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
  14. package/.next-prod/server/app/_global-error.segments/_global-error.segment.rsc +1 -1
  15. package/.next-prod/server/app/_global-error.segments/_head.segment.rsc +1 -1
  16. package/.next-prod/server/app/_global-error.segments/_index.segment.rsc +1 -1
  17. package/.next-prod/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  18. package/.next-prod/server/app/_not-found/page.js +2 -2
  19. package/.next-prod/server/app/_not-found/page.js.nft.json +1 -1
  20. package/.next-prod/server/app/_not-found/page_client-reference-manifest.js +1 -1
  21. package/.next-prod/server/app/_not-found.html +2 -2
  22. package/.next-prod/server/app/_not-found.rsc +3 -3
  23. package/.next-prod/server/app/_not-found.segments/_full.segment.rsc +3 -3
  24. package/.next-prod/server/app/_not-found.segments/_head.segment.rsc +1 -1
  25. package/.next-prod/server/app/_not-found.segments/_index.segment.rsc +3 -3
  26. package/.next-prod/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
  27. package/.next-prod/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
  28. package/.next-prod/server/app/_not-found.segments/_tree.segment.rsc +2 -2
  29. package/.next-prod/server/app/api/agent/test/route.js +1 -1
  30. package/.next-prod/server/app/api/agent/test/route.js.nft.json +1 -1
  31. package/.next-prod/server/app/api/bash/route.js +1 -1
  32. package/.next-prod/server/app/api/bash/route.js.nft.json +1 -1
  33. package/.next-prod/server/app/api/chat/codex/route.js +3 -27
  34. package/.next-prod/server/app/api/chat/codex/route.js.nft.json +1 -1
  35. package/.next-prod/server/app/api/chat/deepseek/route.js +1 -5
  36. package/.next-prod/server/app/api/chat/deepseek/route.js.nft.json +1 -1
  37. package/.next-prod/server/app/api/chat/kimi/route.js +3 -21
  38. package/.next-prod/server/app/api/chat/kimi/route.js.nft.json +1 -1
  39. package/.next-prod/server/app/api/chat/ollama/route.js +1 -91
  40. package/.next-prod/server/app/api/chat/ollama/route.js.nft.json +1 -1
  41. package/.next-prod/server/app/api/chat/pty-input/route.js +1 -1
  42. package/.next-prod/server/app/api/chat/pty-input/route.js.nft.json +1 -1
  43. package/.next-prod/server/app/api/chat/route.js +1 -23
  44. package/.next-prod/server/app/api/chat/route.js.nft.json +1 -1
  45. package/.next-prod/server/app/api/chat/stop/route.js +1 -1
  46. package/.next-prod/server/app/api/chat/stop/route.js.nft.json +1 -1
  47. package/.next-prod/server/app/api/claude-stats/route.js +1 -1
  48. package/.next-prod/server/app/api/claude-stats/route.js.nft.json +1 -1
  49. package/.next-prod/server/app/api/commands/route.js +1 -1
  50. package/.next-prod/server/app/api/commands/route.js.nft.json +1 -1
  51. package/.next-prod/server/app/api/comments/route.js +1 -1
  52. package/.next-prod/server/app/api/comments/route.js.nft.json +1 -1
  53. package/.next-prod/server/app/api/db/columns/route.js +2 -2
  54. package/.next-prod/server/app/api/db/columns/route.js.nft.json +1 -1
  55. package/.next-prod/server/app/api/db/connect/route.js +1 -1
  56. package/.next-prod/server/app/api/db/connect/route.js.nft.json +1 -1
  57. package/.next-prod/server/app/api/db/disconnect/route.js +1 -1
  58. package/.next-prod/server/app/api/db/disconnect/route.js.nft.json +1 -1
  59. package/.next-prod/server/app/api/db/export/route.js +1 -1
  60. package/.next-prod/server/app/api/db/export/route.js.nft.json +1 -1
  61. package/.next-prod/server/app/api/db/query/route.js +1 -1
  62. package/.next-prod/server/app/api/db/query/route.js.nft.json +1 -1
  63. package/.next-prod/server/app/api/db/schemas/route.js +1 -1
  64. package/.next-prod/server/app/api/db/schemas/route.js.nft.json +1 -1
  65. package/.next-prod/server/app/api/dev/spans/route.js +1 -1
  66. package/.next-prod/server/app/api/dev/spans/route.js.nft.json +1 -1
  67. package/.next-prod/server/app/api/extension/version/route.js +1 -1
  68. package/.next-prod/server/app/api/extension/version/route.js.nft.json +1 -1
  69. package/.next-prod/server/app/api/file/route.js +1 -1
  70. package/.next-prod/server/app/api/file/route.js.nft.json +1 -1
  71. package/.next-prod/server/app/api/files/blame/route.js +1 -1
  72. package/.next-prod/server/app/api/files/blame/route.js.nft.json +1 -1
  73. package/.next-prod/server/app/api/files/clipboard/route.js +1 -1
  74. package/.next-prod/server/app/api/files/clipboard/route.js.nft.json +1 -1
  75. package/.next-prod/server/app/api/files/copy/route.js +1 -1
  76. package/.next-prod/server/app/api/files/copy/route.js.nft.json +1 -1
  77. package/.next-prod/server/app/api/files/delete/route.js +1 -1
  78. package/.next-prod/server/app/api/files/delete/route.js.nft.json +1 -1
  79. package/.next-prod/server/app/api/files/expanded/route.js +1 -1
  80. package/.next-prod/server/app/api/files/expanded/route.js.nft.json +1 -1
  81. package/.next-prod/server/app/api/files/index/route.js +1 -1
  82. package/.next-prod/server/app/api/files/index/route.js.nft.json +1 -1
  83. package/.next-prod/server/app/api/files/init/route.js +1 -1
  84. package/.next-prod/server/app/api/files/init/route.js.nft.json +1 -1
  85. package/.next-prod/server/app/api/files/paste/route.js +1 -1
  86. package/.next-prod/server/app/api/files/paste/route.js.nft.json +1 -1
  87. package/.next-prod/server/app/api/files/read/route.js +1 -1
  88. package/.next-prod/server/app/api/files/read/route.js.nft.json +1 -1
  89. package/.next-prod/server/app/api/files/readdir/route.js +1 -1
  90. package/.next-prod/server/app/api/files/readdir/route.js.nft.json +1 -1
  91. package/.next-prod/server/app/api/files/recent/route.js +1 -1
  92. package/.next-prod/server/app/api/files/recent/route.js.nft.json +1 -1
  93. package/.next-prod/server/app/api/files/save/route.js +1 -1
  94. package/.next-prod/server/app/api/files/save/route.js.nft.json +1 -1
  95. package/.next-prod/server/app/api/files/search/route.js +1 -1
  96. package/.next-prod/server/app/api/files/search/route.js.nft.json +1 -1
  97. package/.next-prod/server/app/api/files/stat/route.js +1 -1
  98. package/.next-prod/server/app/api/files/stat/route.js.nft.json +1 -1
  99. package/.next-prod/server/app/api/files/text/route.js +1 -1
  100. package/.next-prod/server/app/api/files/text/route.js.nft.json +1 -1
  101. package/.next-prod/server/app/api/git/branch-diff/route.js +1 -1
  102. package/.next-prod/server/app/api/git/branch-diff/route.js.nft.json +1 -1
  103. package/.next-prod/server/app/api/git/branches/route.js +1 -1
  104. package/.next-prod/server/app/api/git/branches/route.js.nft.json +1 -1
  105. package/.next-prod/server/app/api/git/commit-diff/route.js +1 -1
  106. package/.next-prod/server/app/api/git/commit-diff/route.js.nft.json +1 -1
  107. package/.next-prod/server/app/api/git/commits/route.js +1 -1
  108. package/.next-prod/server/app/api/git/commits/route.js.nft.json +1 -1
  109. package/.next-prod/server/app/api/git/current-branch/route.js +1 -1
  110. package/.next-prod/server/app/api/git/current-branch/route.js.nft.json +1 -1
  111. package/.next-prod/server/app/api/git/diff/route.js +1 -1
  112. package/.next-prod/server/app/api/git/diff/route.js.nft.json +1 -1
  113. package/.next-prod/server/app/api/git/discard/route.js +1 -1
  114. package/.next-prod/server/app/api/git/discard/route.js.nft.json +1 -1
  115. package/.next-prod/server/app/api/git/stage/route.js +1 -1
  116. package/.next-prod/server/app/api/git/stage/route.js.nft.json +1 -1
  117. package/.next-prod/server/app/api/git/status/route.js +1 -1
  118. package/.next-prod/server/app/api/git/status/route.js.nft.json +1 -1
  119. package/.next-prod/server/app/api/git/unstage/route.js +1 -1
  120. package/.next-prod/server/app/api/git/unstage/route.js.nft.json +1 -1
  121. package/.next-prod/server/app/api/git/worktree/route.js +1 -1
  122. package/.next-prod/server/app/api/git/worktree/route.js.nft.json +1 -1
  123. package/.next-prod/server/app/api/global-state/route.js +1 -1
  124. package/.next-prod/server/app/api/global-state/route.js.nft.json +1 -1
  125. package/.next-prod/server/app/api/health/route.js +1 -0
  126. package/.next-prod/server/app/api/health/route.js.nft.json +1 -0
  127. package/.next-prod/server/app/api/health/route_client-reference-manifest.js +1 -0
  128. package/.next-prod/server/app/api/jupyter/load/route.js +1 -1
  129. package/.next-prod/server/app/api/jupyter/load/route.js.nft.json +1 -1
  130. package/.next-prod/server/app/api/jupyter/save/route.js +1 -1
  131. package/.next-prod/server/app/api/jupyter/save/route.js.nft.json +1 -1
  132. package/.next-prod/server/app/api/jupyter/shutdown/route.js +1 -1
  133. package/.next-prod/server/app/api/jupyter/shutdown/route.js.nft.json +1 -1
  134. package/.next-prod/server/app/api/lsp/definition/route.js +1 -1
  135. package/.next-prod/server/app/api/lsp/definition/route.js.nft.json +1 -1
  136. package/.next-prod/server/app/api/lsp/hover/route.js +1 -1
  137. package/.next-prod/server/app/api/lsp/hover/route.js.nft.json +1 -1
  138. package/.next-prod/server/app/api/lsp/references/route.js +1 -1
  139. package/.next-prod/server/app/api/lsp/references/route.js.nft.json +1 -1
  140. package/.next-prod/server/app/api/lsp/status/route.js +1 -1
  141. package/.next-prod/server/app/api/lsp/status/route.js.nft.json +1 -1
  142. package/.next-prod/server/app/api/lsp/warmup/route.js +1 -1
  143. package/.next-prod/server/app/api/lsp/warmup/route.js.nft.json +1 -1
  144. package/.next-prod/server/app/api/mysql/columns/route.js +2 -2
  145. package/.next-prod/server/app/api/mysql/columns/route.js.nft.json +1 -1
  146. package/.next-prod/server/app/api/mysql/connect/route.js +1 -1
  147. package/.next-prod/server/app/api/mysql/connect/route.js.nft.json +1 -1
  148. package/.next-prod/server/app/api/mysql/disconnect/route.js +1 -1
  149. package/.next-prod/server/app/api/mysql/disconnect/route.js.nft.json +1 -1
  150. package/.next-prod/server/app/api/mysql/export/route.js +1 -1
  151. package/.next-prod/server/app/api/mysql/export/route.js.nft.json +1 -1
  152. package/.next-prod/server/app/api/mysql/query/route.js +1 -1
  153. package/.next-prod/server/app/api/mysql/query/route.js.nft.json +1 -1
  154. package/.next-prod/server/app/api/mysql/schemas/route.js +1 -1
  155. package/.next-prod/server/app/api/mysql/schemas/route.js.nft.json +1 -1
  156. package/.next-prod/server/app/api/neo4j/connect/route.js +1 -1
  157. package/.next-prod/server/app/api/neo4j/connect/route.js.nft.json +1 -1
  158. package/.next-prod/server/app/api/neo4j/disconnect/route.js +1 -1
  159. package/.next-prod/server/app/api/neo4j/disconnect/route.js.nft.json +1 -1
  160. package/.next-prod/server/app/api/neo4j/query/route.js +1 -1
  161. package/.next-prod/server/app/api/neo4j/query/route.js.nft.json +1 -1
  162. package/.next-prod/server/app/api/neo4j/schema/route.js +1 -1
  163. package/.next-prod/server/app/api/neo4j/schema/route.js.nft.json +1 -1
  164. package/.next-prod/server/app/api/note/route.js +1 -1
  165. package/.next-prod/server/app/api/note/route.js.nft.json +1 -1
  166. package/.next-prod/server/app/api/ollama/models/route.js +1 -1
  167. package/.next-prod/server/app/api/ollama/models/route.js.nft.json +1 -1
  168. package/.next-prod/server/app/api/ollama/start/route.js +1 -1
  169. package/.next-prod/server/app/api/ollama/start/route.js.nft.json +1 -1
  170. package/.next-prod/server/app/api/open-cursor/route.js +1 -1
  171. package/.next-prod/server/app/api/open-cursor/route.js.nft.json +1 -1
  172. package/.next-prod/server/app/api/open-vscode/route.js +1 -1
  173. package/.next-prod/server/app/api/open-vscode/route.js.nft.json +1 -1
  174. package/.next-prod/server/app/api/pick-folder/route.js +1 -1
  175. package/.next-prod/server/app/api/pick-folder/route.js.nft.json +1 -1
  176. package/.next-prod/server/app/api/pinned-sessions/route.js +1 -1
  177. package/.next-prod/server/app/api/pinned-sessions/route.js.nft.json +1 -1
  178. package/.next-prod/server/app/api/project-settings/route.js +1 -1
  179. package/.next-prod/server/app/api/project-settings/route.js.nft.json +1 -1
  180. package/.next-prod/server/app/api/project-state/route.js +2 -2
  181. package/.next-prod/server/app/api/project-state/route.js.nft.json +1 -1
  182. package/.next-prod/server/app/api/projectGraph/affected/route.js +1 -1
  183. package/.next-prod/server/app/api/projectGraph/affected/route.js.nft.json +1 -1
  184. package/.next-prod/server/app/api/projectGraph/callees/route.js +1 -1
  185. package/.next-prod/server/app/api/projectGraph/callees/route.js.nft.json +1 -1
  186. package/.next-prod/server/app/api/projectGraph/callers/route.js +1 -1
  187. package/.next-prod/server/app/api/projectGraph/callers/route.js.nft.json +1 -1
  188. package/.next-prod/server/app/api/projectGraph/coedit/route.js +1 -1
  189. package/.next-prod/server/app/api/projectGraph/coedit/route.js.nft.json +1 -1
  190. package/.next-prod/server/app/api/projectGraph/context/route.js +1 -1
  191. package/.next-prod/server/app/api/projectGraph/context/route.js.nft.json +1 -1
  192. package/.next-prod/server/app/api/projectGraph/file/route.js +1 -1
  193. package/.next-prod/server/app/api/projectGraph/file/route.js.nft.json +1 -1
  194. package/.next-prod/server/app/api/projectGraph/file-functions/route.js +1 -1
  195. package/.next-prod/server/app/api/projectGraph/file-functions/route.js.nft.json +1 -1
  196. package/.next-prod/server/app/api/projectGraph/impact/route.js +1 -1
  197. package/.next-prod/server/app/api/projectGraph/impact/route.js.nft.json +1 -1
  198. package/.next-prod/server/app/api/projectGraph/related/route.js +1 -1
  199. package/.next-prod/server/app/api/projectGraph/related/route.js.nft.json +1 -1
  200. package/.next-prod/server/app/api/projectGraph/risk/route.js +1 -1
  201. package/.next-prod/server/app/api/projectGraph/risk/route.js.nft.json +1 -1
  202. package/.next-prod/server/app/api/projectGraph/search/route.js +1 -1
  203. package/.next-prod/server/app/api/projectGraph/search/route.js.nft.json +1 -1
  204. package/.next-prod/server/app/api/projects/route.js +1 -1
  205. package/.next-prod/server/app/api/projects/route.js.nft.json +1 -1
  206. package/.next-prod/server/app/api/push/public-key/route.js +1 -1
  207. package/.next-prod/server/app/api/push/public-key/route.js.nft.json +1 -1
  208. package/.next-prod/server/app/api/push/subscribe/route.js +1 -1
  209. package/.next-prod/server/app/api/push/subscribe/route.js.nft.json +1 -1
  210. package/.next-prod/server/app/api/push/unsubscribe/route.js +1 -1
  211. package/.next-prod/server/app/api/push/unsubscribe/route.js.nft.json +1 -1
  212. package/.next-prod/server/app/api/redis/command/route.js +1 -1
  213. package/.next-prod/server/app/api/redis/command/route.js.nft.json +1 -1
  214. package/.next-prod/server/app/api/redis/connect/route.js +1 -1
  215. package/.next-prod/server/app/api/redis/connect/route.js.nft.json +1 -1
  216. package/.next-prod/server/app/api/redis/delete/route.js +1 -1
  217. package/.next-prod/server/app/api/redis/delete/route.js.nft.json +1 -1
  218. package/.next-prod/server/app/api/redis/disconnect/route.js +1 -1
  219. package/.next-prod/server/app/api/redis/disconnect/route.js.nft.json +1 -1
  220. package/.next-prod/server/app/api/redis/get/route.js +1 -1
  221. package/.next-prod/server/app/api/redis/get/route.js.nft.json +1 -1
  222. package/.next-prod/server/app/api/redis/keys/route.js +1 -1
  223. package/.next-prod/server/app/api/redis/keys/route.js.nft.json +1 -1
  224. package/.next-prod/server/app/api/redis/set/route.js +1 -1
  225. package/.next-prod/server/app/api/redis/set/route.js.nft.json +1 -1
  226. package/.next-prod/server/app/api/review/[id]/comments/route.js +1 -1
  227. package/.next-prod/server/app/api/review/[id]/comments/route.js.nft.json +1 -1
  228. package/.next-prod/server/app/api/review/[id]/replies/route.js +1 -1
  229. package/.next-prod/server/app/api/review/[id]/replies/route.js.nft.json +1 -1
  230. package/.next-prod/server/app/api/review/[id]/route.js +1 -1
  231. package/.next-prod/server/app/api/review/[id]/route.js.nft.json +1 -1
  232. package/.next-prod/server/app/api/review/identify/route.js +1 -1
  233. package/.next-prod/server/app/api/review/identify/route.js.nft.json +1 -1
  234. package/.next-prod/server/app/api/review/order/route.js +1 -1
  235. package/.next-prod/server/app/api/review/order/route.js.nft.json +1 -1
  236. package/.next-prod/server/app/api/review/route.js +1 -1
  237. package/.next-prod/server/app/api/review/route.js.nft.json +1 -1
  238. package/.next-prod/server/app/api/review/share-info/route.js +1 -1
  239. package/.next-prod/server/app/api/review/share-info/route.js.nft.json +1 -1
  240. package/.next-prod/server/app/api/review/users/route.js +1 -1
  241. package/.next-prod/server/app/api/review/users/route.js.nft.json +1 -1
  242. package/.next-prod/server/app/api/scheduled-tasks/route.js +9 -1
  243. package/.next-prod/server/app/api/scheduled-tasks/route.js.nft.json +1 -1
  244. package/.next-prod/server/app/api/services/config/route.js +1 -1
  245. package/.next-prod/server/app/api/services/config/route.js.nft.json +1 -1
  246. package/.next-prod/server/app/api/services/scripts/route.js +1 -1
  247. package/.next-prod/server/app/api/services/scripts/route.js.nft.json +1 -1
  248. package/.next-prod/server/app/api/session/[sessionId]/fork/route.js +1 -1
  249. package/.next-prod/server/app/api/session/[sessionId]/fork/route.js.nft.json +1 -1
  250. package/.next-prod/server/app/api/session/[sessionId]/history/route.js +1 -1
  251. package/.next-prod/server/app/api/session/[sessionId]/history/route.js.nft.json +1 -1
  252. package/.next-prod/server/app/api/session-by-path/route.js +1 -1
  253. package/.next-prod/server/app/api/session-by-path/route.js.nft.json +1 -1
  254. package/.next-prod/server/app/api/sessions/projects/[encodedPath]/route.js +1 -1
  255. package/.next-prod/server/app/api/sessions/projects/[encodedPath]/route.js.nft.json +1 -1
  256. package/.next-prod/server/app/api/sessions/projects/route.js +1 -1
  257. package/.next-prod/server/app/api/sessions/projects/route.js.nft.json +1 -1
  258. package/.next-prod/server/app/api/sessions/route.js +1 -1
  259. package/.next-prod/server/app/api/sessions/route.js.nft.json +1 -1
  260. package/.next-prod/server/app/api/settings/route.js +1 -1
  261. package/.next-prod/server/app/api/settings/route.js.nft.json +1 -1
  262. package/.next-prod/server/app/api/skills/[id]/route.js +1 -1
  263. package/.next-prod/server/app/api/skills/[id]/route.js.nft.json +1 -1
  264. package/.next-prod/server/app/api/skills/content/route.js +1 -1
  265. package/.next-prod/server/app/api/skills/content/route.js.nft.json +1 -1
  266. package/.next-prod/server/app/api/skills/route.js +1 -1
  267. package/.next-prod/server/app/api/skills/route.js.nft.json +1 -1
  268. package/.next-prod/server/app/api/terminal/aliases/route.js +1 -1
  269. package/.next-prod/server/app/api/terminal/aliases/route.js.nft.json +1 -1
  270. package/.next-prod/server/app/api/terminal/autocomplete/route.js +1 -1
  271. package/.next-prod/server/app/api/terminal/autocomplete/route.js.nft.json +1 -1
  272. package/.next-prod/server/app/api/terminal/bubble-order/route.js +1 -1
  273. package/.next-prod/server/app/api/terminal/bubble-order/route.js.nft.json +1 -1
  274. package/.next-prod/server/app/api/terminal/env/route.js +1 -1
  275. package/.next-prod/server/app/api/terminal/env/route.js.nft.json +1 -1
  276. package/.next-prod/server/app/api/terminal/history/route.js +1 -1
  277. package/.next-prod/server/app/api/terminal/history/route.js.nft.json +1 -1
  278. package/.next-prod/server/app/api/version/route.js +1 -1
  279. package/.next-prod/server/app/api/version/route.js.nft.json +1 -1
  280. package/.next-prod/server/app/favicon.ico/route.js +1 -1
  281. package/.next-prod/server/app/favicon.ico/route.js.nft.json +1 -1
  282. package/.next-prod/server/app/m/page.js +2 -2
  283. package/.next-prod/server/app/m/page.js.nft.json +1 -1
  284. package/.next-prod/server/app/m/page_client-reference-manifest.js +1 -1
  285. package/.next-prod/server/app/manifest.webmanifest/route.js +2 -2
  286. package/.next-prod/server/app/manifest.webmanifest/route.js.nft.json +1 -1
  287. package/.next-prod/server/app/page.js +2 -2
  288. package/.next-prod/server/app/page.js.nft.json +1 -1
  289. package/.next-prod/server/app/page_client-reference-manifest.js +1 -1
  290. package/.next-prod/server/app/project/page.js +2 -2
  291. package/.next-prod/server/app/project/page.js.nft.json +1 -1
  292. package/.next-prod/server/app/project/page_client-reference-manifest.js +1 -1
  293. package/.next-prod/server/app/review/[id]/page.js +2 -2
  294. package/.next-prod/server/app/review/[id]/page.js.nft.json +1 -1
  295. package/.next-prod/server/app/review/[id]/page_client-reference-manifest.js +1 -1
  296. package/.next-prod/server/app-paths-manifest.json +3 -2
  297. package/.next-prod/server/chunks/2939.js +1 -1
  298. package/.next-prod/server/chunks/304.js +1 -1
  299. package/.next-prod/server/chunks/{2637.js → 3633.js} +8 -8
  300. package/.next-prod/server/chunks/3742.js +1 -0
  301. package/.next-prod/server/chunks/3792.js +1 -1
  302. package/.next-prod/server/chunks/6955.js +1 -1
  303. package/.next-prod/server/chunks/7003.js +1 -1
  304. package/.next-prod/server/chunks/7338.js +89 -0
  305. package/.next-prod/server/chunks/8916.js +1 -1
  306. package/.next-prod/server/chunks/9658.js +14 -12
  307. package/.next-prod/server/chunks/9989.js +1 -0
  308. package/.next-prod/server/functions-config-manifest.json +1 -0
  309. package/.next-prod/server/middleware-build-manifest.js +1 -1
  310. package/.next-prod/server/middleware-react-loadable-manifest.js +1 -1
  311. package/.next-prod/server/pages/404.html +2 -2
  312. package/.next-prod/server/pages/500.html +1 -1
  313. package/.next-prod/server/server-reference-manifest.json +1 -1
  314. package/.next-prod/static/chunks/{1959.b9473117faf354bf.js → 1959.698f1d1accabcbe6.js} +2 -2
  315. package/.next-prod/static/chunks/217-259a6d7d3cac75d8.js +5 -0
  316. package/.next-prod/static/chunks/{2576-7459f532e98e12d6.js → 2576-26748a4d5cfa8668.js} +13 -13
  317. package/.next-prod/static/chunks/9469-7902249e8fbf7955.js +14 -0
  318. package/.next-prod/static/chunks/app/_global-error/page-d7801a0008b8d59b.js +1 -0
  319. package/.next-prod/static/chunks/app/api/agent/test/route-d7801a0008b8d59b.js +1 -0
  320. package/.next-prod/static/chunks/app/api/bash/route-d7801a0008b8d59b.js +1 -0
  321. package/.next-prod/static/chunks/app/api/chat/codex/route-d7801a0008b8d59b.js +1 -0
  322. package/.next-prod/static/chunks/app/api/chat/deepseek/route-d7801a0008b8d59b.js +1 -0
  323. package/.next-prod/static/chunks/app/api/chat/kimi/route-d7801a0008b8d59b.js +1 -0
  324. package/.next-prod/static/chunks/app/api/chat/ollama/route-d7801a0008b8d59b.js +1 -0
  325. package/.next-prod/static/chunks/app/api/chat/pty-input/route-d7801a0008b8d59b.js +1 -0
  326. package/.next-prod/static/chunks/app/api/chat/route-d7801a0008b8d59b.js +1 -0
  327. package/.next-prod/static/chunks/app/api/chat/stop/route-d7801a0008b8d59b.js +1 -0
  328. package/.next-prod/static/chunks/app/api/claude-stats/route-d7801a0008b8d59b.js +1 -0
  329. package/.next-prod/static/chunks/app/api/commands/route-d7801a0008b8d59b.js +1 -0
  330. package/.next-prod/static/chunks/app/api/comments/route-d7801a0008b8d59b.js +1 -0
  331. package/.next-prod/static/chunks/app/api/db/columns/route-d7801a0008b8d59b.js +1 -0
  332. package/.next-prod/static/chunks/app/api/db/connect/route-d7801a0008b8d59b.js +1 -0
  333. package/.next-prod/static/chunks/app/api/db/disconnect/route-d7801a0008b8d59b.js +1 -0
  334. package/.next-prod/static/chunks/app/api/db/export/route-d7801a0008b8d59b.js +1 -0
  335. package/.next-prod/static/chunks/app/api/db/query/route-d7801a0008b8d59b.js +1 -0
  336. package/.next-prod/static/chunks/app/api/db/schemas/route-d7801a0008b8d59b.js +1 -0
  337. package/.next-prod/static/chunks/app/api/dev/spans/route-d7801a0008b8d59b.js +1 -0
  338. package/.next-prod/static/chunks/app/api/extension/version/route-d7801a0008b8d59b.js +1 -0
  339. package/.next-prod/static/chunks/app/api/file/route-d7801a0008b8d59b.js +1 -0
  340. package/.next-prod/static/chunks/app/api/files/blame/route-d7801a0008b8d59b.js +1 -0
  341. package/.next-prod/static/chunks/app/api/files/clipboard/route-d7801a0008b8d59b.js +1 -0
  342. package/.next-prod/static/chunks/app/api/files/copy/route-d7801a0008b8d59b.js +1 -0
  343. package/.next-prod/static/chunks/app/api/files/delete/route-d7801a0008b8d59b.js +1 -0
  344. package/.next-prod/static/chunks/app/api/files/expanded/route-d7801a0008b8d59b.js +1 -0
  345. package/.next-prod/static/chunks/app/api/files/index/route-d7801a0008b8d59b.js +1 -0
  346. package/.next-prod/static/chunks/app/api/files/init/route-d7801a0008b8d59b.js +1 -0
  347. package/.next-prod/static/chunks/app/api/files/paste/route-d7801a0008b8d59b.js +1 -0
  348. package/.next-prod/static/chunks/app/api/files/read/route-d7801a0008b8d59b.js +1 -0
  349. package/.next-prod/static/chunks/app/api/files/readdir/route-d7801a0008b8d59b.js +1 -0
  350. package/.next-prod/static/chunks/app/api/files/recent/route-d7801a0008b8d59b.js +1 -0
  351. package/.next-prod/static/chunks/app/api/files/save/route-d7801a0008b8d59b.js +1 -0
  352. package/.next-prod/static/chunks/app/api/files/search/route-d7801a0008b8d59b.js +1 -0
  353. package/.next-prod/static/chunks/app/api/files/stat/route-d7801a0008b8d59b.js +1 -0
  354. package/.next-prod/static/chunks/app/api/files/text/route-d7801a0008b8d59b.js +1 -0
  355. package/.next-prod/static/chunks/app/api/git/branch-diff/route-d7801a0008b8d59b.js +1 -0
  356. package/.next-prod/static/chunks/app/api/git/branches/route-d7801a0008b8d59b.js +1 -0
  357. package/.next-prod/static/chunks/app/api/git/commit-diff/route-d7801a0008b8d59b.js +1 -0
  358. package/.next-prod/static/chunks/app/api/git/commits/route-d7801a0008b8d59b.js +1 -0
  359. package/.next-prod/static/chunks/app/api/git/current-branch/route-d7801a0008b8d59b.js +1 -0
  360. package/.next-prod/static/chunks/app/api/git/diff/route-d7801a0008b8d59b.js +1 -0
  361. package/.next-prod/static/chunks/app/api/git/discard/route-d7801a0008b8d59b.js +1 -0
  362. package/.next-prod/static/chunks/app/api/git/stage/route-d7801a0008b8d59b.js +1 -0
  363. package/.next-prod/static/chunks/app/api/git/status/route-d7801a0008b8d59b.js +1 -0
  364. package/.next-prod/static/chunks/app/api/git/unstage/route-d7801a0008b8d59b.js +1 -0
  365. package/.next-prod/static/chunks/app/api/git/worktree/route-d7801a0008b8d59b.js +1 -0
  366. package/.next-prod/static/chunks/app/api/global-state/route-d7801a0008b8d59b.js +1 -0
  367. package/.next-prod/static/chunks/app/api/health/route-d7801a0008b8d59b.js +1 -0
  368. package/.next-prod/static/chunks/app/api/jupyter/load/route-d7801a0008b8d59b.js +1 -0
  369. package/.next-prod/static/chunks/app/api/jupyter/save/route-d7801a0008b8d59b.js +1 -0
  370. package/.next-prod/static/chunks/app/api/jupyter/shutdown/route-d7801a0008b8d59b.js +1 -0
  371. package/.next-prod/static/chunks/app/api/lsp/definition/route-d7801a0008b8d59b.js +1 -0
  372. package/.next-prod/static/chunks/app/api/lsp/hover/route-d7801a0008b8d59b.js +1 -0
  373. package/.next-prod/static/chunks/app/api/lsp/references/route-d7801a0008b8d59b.js +1 -0
  374. package/.next-prod/static/chunks/app/api/lsp/status/route-d7801a0008b8d59b.js +1 -0
  375. package/.next-prod/static/chunks/app/api/lsp/warmup/route-d7801a0008b8d59b.js +1 -0
  376. package/.next-prod/static/chunks/app/api/mysql/columns/route-d7801a0008b8d59b.js +1 -0
  377. package/.next-prod/static/chunks/app/api/mysql/connect/route-d7801a0008b8d59b.js +1 -0
  378. package/.next-prod/static/chunks/app/api/mysql/disconnect/route-d7801a0008b8d59b.js +1 -0
  379. package/.next-prod/static/chunks/app/api/mysql/export/route-d7801a0008b8d59b.js +1 -0
  380. package/.next-prod/static/chunks/app/api/mysql/query/route-d7801a0008b8d59b.js +1 -0
  381. package/.next-prod/static/chunks/app/api/mysql/schemas/route-d7801a0008b8d59b.js +1 -0
  382. package/.next-prod/static/chunks/app/api/neo4j/connect/route-d7801a0008b8d59b.js +1 -0
  383. package/.next-prod/static/chunks/app/api/neo4j/disconnect/route-d7801a0008b8d59b.js +1 -0
  384. package/.next-prod/static/chunks/app/api/neo4j/query/route-d7801a0008b8d59b.js +1 -0
  385. package/.next-prod/static/chunks/app/api/neo4j/schema/route-d7801a0008b8d59b.js +1 -0
  386. package/.next-prod/static/chunks/app/api/note/route-d7801a0008b8d59b.js +1 -0
  387. package/.next-prod/static/chunks/app/api/ollama/models/route-d7801a0008b8d59b.js +1 -0
  388. package/.next-prod/static/chunks/app/api/ollama/start/route-d7801a0008b8d59b.js +1 -0
  389. package/.next-prod/static/chunks/app/api/open-cursor/route-d7801a0008b8d59b.js +1 -0
  390. package/.next-prod/static/chunks/app/api/open-vscode/route-d7801a0008b8d59b.js +1 -0
  391. package/.next-prod/static/chunks/app/api/pick-folder/route-d7801a0008b8d59b.js +1 -0
  392. package/.next-prod/static/chunks/app/api/pinned-sessions/route-d7801a0008b8d59b.js +1 -0
  393. package/.next-prod/static/chunks/app/api/project-settings/route-d7801a0008b8d59b.js +1 -0
  394. package/.next-prod/static/chunks/app/api/project-state/route-d7801a0008b8d59b.js +1 -0
  395. package/.next-prod/static/chunks/app/api/projectGraph/affected/route-d7801a0008b8d59b.js +1 -0
  396. package/.next-prod/static/chunks/app/api/projectGraph/callees/route-d7801a0008b8d59b.js +1 -0
  397. package/.next-prod/static/chunks/app/api/projectGraph/callers/route-d7801a0008b8d59b.js +1 -0
  398. package/.next-prod/static/chunks/app/api/projectGraph/coedit/route-d7801a0008b8d59b.js +1 -0
  399. package/.next-prod/static/chunks/app/api/projectGraph/context/route-d7801a0008b8d59b.js +1 -0
  400. package/.next-prod/static/chunks/app/api/projectGraph/file/route-d7801a0008b8d59b.js +1 -0
  401. package/.next-prod/static/chunks/app/api/projectGraph/file-functions/route-d7801a0008b8d59b.js +1 -0
  402. package/.next-prod/static/chunks/app/api/projectGraph/impact/route-d7801a0008b8d59b.js +1 -0
  403. package/.next-prod/static/chunks/app/api/projectGraph/related/route-d7801a0008b8d59b.js +1 -0
  404. package/.next-prod/static/chunks/app/api/projectGraph/risk/route-d7801a0008b8d59b.js +1 -0
  405. package/.next-prod/static/chunks/app/api/projectGraph/search/route-d7801a0008b8d59b.js +1 -0
  406. package/.next-prod/static/chunks/app/api/projects/route-d7801a0008b8d59b.js +1 -0
  407. package/.next-prod/static/chunks/app/api/push/public-key/route-d7801a0008b8d59b.js +1 -0
  408. package/.next-prod/static/chunks/app/api/push/subscribe/route-d7801a0008b8d59b.js +1 -0
  409. package/.next-prod/static/chunks/app/api/push/unsubscribe/route-d7801a0008b8d59b.js +1 -0
  410. package/.next-prod/static/chunks/app/api/redis/command/route-d7801a0008b8d59b.js +1 -0
  411. package/.next-prod/static/chunks/app/api/redis/connect/route-d7801a0008b8d59b.js +1 -0
  412. package/.next-prod/static/chunks/app/api/redis/delete/route-d7801a0008b8d59b.js +1 -0
  413. package/.next-prod/static/chunks/app/api/redis/disconnect/route-d7801a0008b8d59b.js +1 -0
  414. package/.next-prod/static/chunks/app/api/redis/get/route-d7801a0008b8d59b.js +1 -0
  415. package/.next-prod/static/chunks/app/api/redis/keys/route-d7801a0008b8d59b.js +1 -0
  416. package/.next-prod/static/chunks/app/api/redis/set/route-d7801a0008b8d59b.js +1 -0
  417. package/.next-prod/static/chunks/app/api/review/[id]/comments/route-d7801a0008b8d59b.js +1 -0
  418. package/.next-prod/static/chunks/app/api/review/[id]/replies/route-d7801a0008b8d59b.js +1 -0
  419. package/.next-prod/static/chunks/app/api/review/[id]/route-d7801a0008b8d59b.js +1 -0
  420. package/.next-prod/static/chunks/app/api/review/identify/route-d7801a0008b8d59b.js +1 -0
  421. package/.next-prod/static/chunks/app/api/review/order/route-d7801a0008b8d59b.js +1 -0
  422. package/.next-prod/static/chunks/app/api/review/route-d7801a0008b8d59b.js +1 -0
  423. package/.next-prod/static/chunks/app/api/review/share-info/route-d7801a0008b8d59b.js +1 -0
  424. package/.next-prod/static/chunks/app/api/review/users/route-d7801a0008b8d59b.js +1 -0
  425. package/.next-prod/static/chunks/app/api/scheduled-tasks/route-d7801a0008b8d59b.js +1 -0
  426. package/.next-prod/static/chunks/app/api/services/config/route-d7801a0008b8d59b.js +1 -0
  427. package/.next-prod/static/chunks/app/api/services/scripts/route-d7801a0008b8d59b.js +1 -0
  428. package/.next-prod/static/chunks/app/api/session/[sessionId]/fork/route-d7801a0008b8d59b.js +1 -0
  429. package/.next-prod/static/chunks/app/api/session/[sessionId]/history/route-d7801a0008b8d59b.js +1 -0
  430. package/.next-prod/static/chunks/app/api/session-by-path/route-d7801a0008b8d59b.js +1 -0
  431. package/.next-prod/static/chunks/app/api/sessions/projects/[encodedPath]/route-d7801a0008b8d59b.js +1 -0
  432. package/.next-prod/static/chunks/app/api/sessions/projects/route-d7801a0008b8d59b.js +1 -0
  433. package/.next-prod/static/chunks/app/api/sessions/route-d7801a0008b8d59b.js +1 -0
  434. package/.next-prod/static/chunks/app/api/settings/route-d7801a0008b8d59b.js +1 -0
  435. package/.next-prod/static/chunks/app/api/skills/[id]/route-d7801a0008b8d59b.js +1 -0
  436. package/.next-prod/static/chunks/app/api/skills/content/route-d7801a0008b8d59b.js +1 -0
  437. package/.next-prod/static/chunks/app/api/skills/route-d7801a0008b8d59b.js +1 -0
  438. package/.next-prod/static/chunks/app/api/terminal/aliases/route-d7801a0008b8d59b.js +1 -0
  439. package/.next-prod/static/chunks/app/api/terminal/autocomplete/route-d7801a0008b8d59b.js +1 -0
  440. package/.next-prod/static/chunks/app/api/terminal/bubble-order/route-d7801a0008b8d59b.js +1 -0
  441. package/.next-prod/static/chunks/app/api/terminal/env/route-d7801a0008b8d59b.js +1 -0
  442. package/.next-prod/static/chunks/app/api/terminal/history/route-d7801a0008b8d59b.js +1 -0
  443. package/.next-prod/static/chunks/app/api/version/route-d7801a0008b8d59b.js +1 -0
  444. package/.next-prod/static/chunks/app/{layout-312d106fe47907df.js → layout-edef27fb2f6b346e.js} +1 -1
  445. package/.next-prod/static/chunks/app/m/page-50afaa8bd837e768.js +1 -0
  446. package/.next-prod/static/chunks/app/manifest.webmanifest/route-d7801a0008b8d59b.js +1 -0
  447. package/.next-prod/static/chunks/app/{page-db70085227aa56aa.js → page-49470b6c107b5dee.js} +1 -1
  448. package/.next-prod/static/chunks/app/project/{page-db70085227aa56aa.js → page-49470b6c107b5dee.js} +1 -1
  449. package/.next-prod/static/chunks/next/dist/client/components/builtin/app-error-d7801a0008b8d59b.js +1 -0
  450. package/.next-prod/static/chunks/next/dist/client/components/builtin/forbidden-d7801a0008b8d59b.js +1 -0
  451. package/.next-prod/static/chunks/next/dist/client/components/builtin/not-found-d7801a0008b8d59b.js +1 -0
  452. package/.next-prod/static/chunks/next/dist/client/components/builtin/unauthorized-d7801a0008b8d59b.js +1 -0
  453. package/.next-prod/static/chunks/{webpack-cb3881d9a37f80b7.js → webpack-2404d47da29b5b14.js} +1 -1
  454. package/.next-prod/static/css/330d330a9236397f.css +1 -0
  455. package/.next-prod/static/t45T3Imr0gQh7MYDeURiy/_buildManifest.js +1 -0
  456. package/.next-prod/trace +13 -13
  457. package/.next-prod/trace-build +1 -1
  458. package/.next-prod/types/app/api/health/route.ts +351 -0
  459. package/.next-prod/types/routes.d.ts +2 -1
  460. package/.next-prod/types/validator.ts +9 -0
  461. package/bin/cock-browser.mjs +7 -3
  462. package/bin/cock-codegraph.mjs +7 -4
  463. package/bin/cock-connection.mjs +5 -1
  464. package/bin/cock-terminal.mjs +6 -2
  465. package/dist/{chunk-EYFKVFTP.mjs → chunk-GFI4IHYM.mjs} +82 -78
  466. package/dist/{chunk-WULEYRUC.mjs → chunk-J5B4FIW5.mjs} +168 -1
  467. package/dist/{chunk-7T2FX6X4.mjs → chunk-R564FMS3.mjs} +162 -34
  468. package/dist/httpApi.mjs +4 -2
  469. package/dist/scheduledTasks.mjs +17000 -76
  470. package/dist/{server-TRLQURYS.mjs → server-J7ZUYRI6.mjs} +8 -2
  471. package/dist/wsServer.mjs +15 -7
  472. package/package.json +1 -1
  473. package/server.mjs +58 -9
  474. package/.next-prod/static/WSUa0F_X_5GfMavORSxeX/_buildManifest.js +0 -1
  475. package/.next-prod/static/chunks/5156-04537ce3c95435b2.js +0 -3
  476. package/.next-prod/static/chunks/9469-424d7be830f93183.js +0 -14
  477. package/.next-prod/static/chunks/app/_global-error/page-cc849cd7b6f01cad.js +0 -1
  478. package/.next-prod/static/chunks/app/api/agent/test/route-cc849cd7b6f01cad.js +0 -1
  479. package/.next-prod/static/chunks/app/api/bash/route-cc849cd7b6f01cad.js +0 -1
  480. package/.next-prod/static/chunks/app/api/chat/codex/route-cc849cd7b6f01cad.js +0 -1
  481. package/.next-prod/static/chunks/app/api/chat/deepseek/route-cc849cd7b6f01cad.js +0 -1
  482. package/.next-prod/static/chunks/app/api/chat/kimi/route-cc849cd7b6f01cad.js +0 -1
  483. package/.next-prod/static/chunks/app/api/chat/ollama/route-cc849cd7b6f01cad.js +0 -1
  484. package/.next-prod/static/chunks/app/api/chat/pty-input/route-cc849cd7b6f01cad.js +0 -1
  485. package/.next-prod/static/chunks/app/api/chat/route-cc849cd7b6f01cad.js +0 -1
  486. package/.next-prod/static/chunks/app/api/chat/stop/route-cc849cd7b6f01cad.js +0 -1
  487. package/.next-prod/static/chunks/app/api/claude-stats/route-cc849cd7b6f01cad.js +0 -1
  488. package/.next-prod/static/chunks/app/api/commands/route-cc849cd7b6f01cad.js +0 -1
  489. package/.next-prod/static/chunks/app/api/comments/route-cc849cd7b6f01cad.js +0 -1
  490. package/.next-prod/static/chunks/app/api/db/columns/route-cc849cd7b6f01cad.js +0 -1
  491. package/.next-prod/static/chunks/app/api/db/connect/route-cc849cd7b6f01cad.js +0 -1
  492. package/.next-prod/static/chunks/app/api/db/disconnect/route-cc849cd7b6f01cad.js +0 -1
  493. package/.next-prod/static/chunks/app/api/db/export/route-cc849cd7b6f01cad.js +0 -1
  494. package/.next-prod/static/chunks/app/api/db/query/route-cc849cd7b6f01cad.js +0 -1
  495. package/.next-prod/static/chunks/app/api/db/schemas/route-cc849cd7b6f01cad.js +0 -1
  496. package/.next-prod/static/chunks/app/api/dev/spans/route-cc849cd7b6f01cad.js +0 -1
  497. package/.next-prod/static/chunks/app/api/extension/version/route-cc849cd7b6f01cad.js +0 -1
  498. package/.next-prod/static/chunks/app/api/file/route-cc849cd7b6f01cad.js +0 -1
  499. package/.next-prod/static/chunks/app/api/files/blame/route-cc849cd7b6f01cad.js +0 -1
  500. package/.next-prod/static/chunks/app/api/files/clipboard/route-cc849cd7b6f01cad.js +0 -1
  501. package/.next-prod/static/chunks/app/api/files/copy/route-cc849cd7b6f01cad.js +0 -1
  502. package/.next-prod/static/chunks/app/api/files/delete/route-cc849cd7b6f01cad.js +0 -1
  503. package/.next-prod/static/chunks/app/api/files/expanded/route-cc849cd7b6f01cad.js +0 -1
  504. package/.next-prod/static/chunks/app/api/files/index/route-cc849cd7b6f01cad.js +0 -1
  505. package/.next-prod/static/chunks/app/api/files/init/route-cc849cd7b6f01cad.js +0 -1
  506. package/.next-prod/static/chunks/app/api/files/paste/route-cc849cd7b6f01cad.js +0 -1
  507. package/.next-prod/static/chunks/app/api/files/read/route-cc849cd7b6f01cad.js +0 -1
  508. package/.next-prod/static/chunks/app/api/files/readdir/route-cc849cd7b6f01cad.js +0 -1
  509. package/.next-prod/static/chunks/app/api/files/recent/route-cc849cd7b6f01cad.js +0 -1
  510. package/.next-prod/static/chunks/app/api/files/save/route-cc849cd7b6f01cad.js +0 -1
  511. package/.next-prod/static/chunks/app/api/files/search/route-cc849cd7b6f01cad.js +0 -1
  512. package/.next-prod/static/chunks/app/api/files/stat/route-cc849cd7b6f01cad.js +0 -1
  513. package/.next-prod/static/chunks/app/api/files/text/route-cc849cd7b6f01cad.js +0 -1
  514. package/.next-prod/static/chunks/app/api/git/branch-diff/route-cc849cd7b6f01cad.js +0 -1
  515. package/.next-prod/static/chunks/app/api/git/branches/route-cc849cd7b6f01cad.js +0 -1
  516. package/.next-prod/static/chunks/app/api/git/commit-diff/route-cc849cd7b6f01cad.js +0 -1
  517. package/.next-prod/static/chunks/app/api/git/commits/route-cc849cd7b6f01cad.js +0 -1
  518. package/.next-prod/static/chunks/app/api/git/current-branch/route-cc849cd7b6f01cad.js +0 -1
  519. package/.next-prod/static/chunks/app/api/git/diff/route-cc849cd7b6f01cad.js +0 -1
  520. package/.next-prod/static/chunks/app/api/git/discard/route-cc849cd7b6f01cad.js +0 -1
  521. package/.next-prod/static/chunks/app/api/git/stage/route-cc849cd7b6f01cad.js +0 -1
  522. package/.next-prod/static/chunks/app/api/git/status/route-cc849cd7b6f01cad.js +0 -1
  523. package/.next-prod/static/chunks/app/api/git/unstage/route-cc849cd7b6f01cad.js +0 -1
  524. package/.next-prod/static/chunks/app/api/git/worktree/route-cc849cd7b6f01cad.js +0 -1
  525. package/.next-prod/static/chunks/app/api/global-state/route-cc849cd7b6f01cad.js +0 -1
  526. package/.next-prod/static/chunks/app/api/jupyter/load/route-cc849cd7b6f01cad.js +0 -1
  527. package/.next-prod/static/chunks/app/api/jupyter/save/route-cc849cd7b6f01cad.js +0 -1
  528. package/.next-prod/static/chunks/app/api/jupyter/shutdown/route-cc849cd7b6f01cad.js +0 -1
  529. package/.next-prod/static/chunks/app/api/lsp/definition/route-cc849cd7b6f01cad.js +0 -1
  530. package/.next-prod/static/chunks/app/api/lsp/hover/route-cc849cd7b6f01cad.js +0 -1
  531. package/.next-prod/static/chunks/app/api/lsp/references/route-cc849cd7b6f01cad.js +0 -1
  532. package/.next-prod/static/chunks/app/api/lsp/status/route-cc849cd7b6f01cad.js +0 -1
  533. package/.next-prod/static/chunks/app/api/lsp/warmup/route-cc849cd7b6f01cad.js +0 -1
  534. package/.next-prod/static/chunks/app/api/mysql/columns/route-cc849cd7b6f01cad.js +0 -1
  535. package/.next-prod/static/chunks/app/api/mysql/connect/route-cc849cd7b6f01cad.js +0 -1
  536. package/.next-prod/static/chunks/app/api/mysql/disconnect/route-cc849cd7b6f01cad.js +0 -1
  537. package/.next-prod/static/chunks/app/api/mysql/export/route-cc849cd7b6f01cad.js +0 -1
  538. package/.next-prod/static/chunks/app/api/mysql/query/route-cc849cd7b6f01cad.js +0 -1
  539. package/.next-prod/static/chunks/app/api/mysql/schemas/route-cc849cd7b6f01cad.js +0 -1
  540. package/.next-prod/static/chunks/app/api/neo4j/connect/route-cc849cd7b6f01cad.js +0 -1
  541. package/.next-prod/static/chunks/app/api/neo4j/disconnect/route-cc849cd7b6f01cad.js +0 -1
  542. package/.next-prod/static/chunks/app/api/neo4j/query/route-cc849cd7b6f01cad.js +0 -1
  543. package/.next-prod/static/chunks/app/api/neo4j/schema/route-cc849cd7b6f01cad.js +0 -1
  544. package/.next-prod/static/chunks/app/api/note/route-cc849cd7b6f01cad.js +0 -1
  545. package/.next-prod/static/chunks/app/api/ollama/models/route-cc849cd7b6f01cad.js +0 -1
  546. package/.next-prod/static/chunks/app/api/ollama/start/route-cc849cd7b6f01cad.js +0 -1
  547. package/.next-prod/static/chunks/app/api/open-cursor/route-cc849cd7b6f01cad.js +0 -1
  548. package/.next-prod/static/chunks/app/api/open-vscode/route-cc849cd7b6f01cad.js +0 -1
  549. package/.next-prod/static/chunks/app/api/pick-folder/route-cc849cd7b6f01cad.js +0 -1
  550. package/.next-prod/static/chunks/app/api/pinned-sessions/route-cc849cd7b6f01cad.js +0 -1
  551. package/.next-prod/static/chunks/app/api/project-settings/route-cc849cd7b6f01cad.js +0 -1
  552. package/.next-prod/static/chunks/app/api/project-state/route-cc849cd7b6f01cad.js +0 -1
  553. package/.next-prod/static/chunks/app/api/projectGraph/affected/route-cc849cd7b6f01cad.js +0 -1
  554. package/.next-prod/static/chunks/app/api/projectGraph/callees/route-cc849cd7b6f01cad.js +0 -1
  555. package/.next-prod/static/chunks/app/api/projectGraph/callers/route-cc849cd7b6f01cad.js +0 -1
  556. package/.next-prod/static/chunks/app/api/projectGraph/coedit/route-cc849cd7b6f01cad.js +0 -1
  557. package/.next-prod/static/chunks/app/api/projectGraph/context/route-cc849cd7b6f01cad.js +0 -1
  558. package/.next-prod/static/chunks/app/api/projectGraph/file/route-cc849cd7b6f01cad.js +0 -1
  559. package/.next-prod/static/chunks/app/api/projectGraph/file-functions/route-cc849cd7b6f01cad.js +0 -1
  560. package/.next-prod/static/chunks/app/api/projectGraph/impact/route-cc849cd7b6f01cad.js +0 -1
  561. package/.next-prod/static/chunks/app/api/projectGraph/related/route-cc849cd7b6f01cad.js +0 -1
  562. package/.next-prod/static/chunks/app/api/projectGraph/risk/route-cc849cd7b6f01cad.js +0 -1
  563. package/.next-prod/static/chunks/app/api/projectGraph/search/route-cc849cd7b6f01cad.js +0 -1
  564. package/.next-prod/static/chunks/app/api/projects/route-cc849cd7b6f01cad.js +0 -1
  565. package/.next-prod/static/chunks/app/api/push/public-key/route-cc849cd7b6f01cad.js +0 -1
  566. package/.next-prod/static/chunks/app/api/push/subscribe/route-cc849cd7b6f01cad.js +0 -1
  567. package/.next-prod/static/chunks/app/api/push/unsubscribe/route-cc849cd7b6f01cad.js +0 -1
  568. package/.next-prod/static/chunks/app/api/redis/command/route-cc849cd7b6f01cad.js +0 -1
  569. package/.next-prod/static/chunks/app/api/redis/connect/route-cc849cd7b6f01cad.js +0 -1
  570. package/.next-prod/static/chunks/app/api/redis/delete/route-cc849cd7b6f01cad.js +0 -1
  571. package/.next-prod/static/chunks/app/api/redis/disconnect/route-cc849cd7b6f01cad.js +0 -1
  572. package/.next-prod/static/chunks/app/api/redis/get/route-cc849cd7b6f01cad.js +0 -1
  573. package/.next-prod/static/chunks/app/api/redis/keys/route-cc849cd7b6f01cad.js +0 -1
  574. package/.next-prod/static/chunks/app/api/redis/set/route-cc849cd7b6f01cad.js +0 -1
  575. package/.next-prod/static/chunks/app/api/review/[id]/comments/route-cc849cd7b6f01cad.js +0 -1
  576. package/.next-prod/static/chunks/app/api/review/[id]/replies/route-cc849cd7b6f01cad.js +0 -1
  577. package/.next-prod/static/chunks/app/api/review/[id]/route-cc849cd7b6f01cad.js +0 -1
  578. package/.next-prod/static/chunks/app/api/review/identify/route-cc849cd7b6f01cad.js +0 -1
  579. package/.next-prod/static/chunks/app/api/review/order/route-cc849cd7b6f01cad.js +0 -1
  580. package/.next-prod/static/chunks/app/api/review/route-cc849cd7b6f01cad.js +0 -1
  581. package/.next-prod/static/chunks/app/api/review/share-info/route-cc849cd7b6f01cad.js +0 -1
  582. package/.next-prod/static/chunks/app/api/review/users/route-cc849cd7b6f01cad.js +0 -1
  583. package/.next-prod/static/chunks/app/api/scheduled-tasks/route-cc849cd7b6f01cad.js +0 -1
  584. package/.next-prod/static/chunks/app/api/services/config/route-cc849cd7b6f01cad.js +0 -1
  585. package/.next-prod/static/chunks/app/api/services/scripts/route-cc849cd7b6f01cad.js +0 -1
  586. package/.next-prod/static/chunks/app/api/session/[sessionId]/fork/route-cc849cd7b6f01cad.js +0 -1
  587. package/.next-prod/static/chunks/app/api/session/[sessionId]/history/route-cc849cd7b6f01cad.js +0 -1
  588. package/.next-prod/static/chunks/app/api/session-by-path/route-cc849cd7b6f01cad.js +0 -1
  589. package/.next-prod/static/chunks/app/api/sessions/projects/[encodedPath]/route-cc849cd7b6f01cad.js +0 -1
  590. package/.next-prod/static/chunks/app/api/sessions/projects/route-cc849cd7b6f01cad.js +0 -1
  591. package/.next-prod/static/chunks/app/api/sessions/route-cc849cd7b6f01cad.js +0 -1
  592. package/.next-prod/static/chunks/app/api/settings/route-cc849cd7b6f01cad.js +0 -1
  593. package/.next-prod/static/chunks/app/api/skills/[id]/route-cc849cd7b6f01cad.js +0 -1
  594. package/.next-prod/static/chunks/app/api/skills/content/route-cc849cd7b6f01cad.js +0 -1
  595. package/.next-prod/static/chunks/app/api/skills/route-cc849cd7b6f01cad.js +0 -1
  596. package/.next-prod/static/chunks/app/api/terminal/aliases/route-cc849cd7b6f01cad.js +0 -1
  597. package/.next-prod/static/chunks/app/api/terminal/autocomplete/route-cc849cd7b6f01cad.js +0 -1
  598. package/.next-prod/static/chunks/app/api/terminal/bubble-order/route-cc849cd7b6f01cad.js +0 -1
  599. package/.next-prod/static/chunks/app/api/terminal/env/route-cc849cd7b6f01cad.js +0 -1
  600. package/.next-prod/static/chunks/app/api/terminal/history/route-cc849cd7b6f01cad.js +0 -1
  601. package/.next-prod/static/chunks/app/api/version/route-cc849cd7b6f01cad.js +0 -1
  602. package/.next-prod/static/chunks/app/m/page-0be3799c1b38c991.js +0 -1
  603. package/.next-prod/static/chunks/app/manifest.webmanifest/route-cc849cd7b6f01cad.js +0 -1
  604. package/.next-prod/static/chunks/next/dist/client/components/builtin/app-error-cc849cd7b6f01cad.js +0 -1
  605. package/.next-prod/static/chunks/next/dist/client/components/builtin/forbidden-cc849cd7b6f01cad.js +0 -1
  606. package/.next-prod/static/chunks/next/dist/client/components/builtin/not-found-cc849cd7b6f01cad.js +0 -1
  607. package/.next-prod/static/chunks/next/dist/client/components/builtin/unauthorized-cc849cd7b6f01cad.js +0 -1
  608. package/.next-prod/static/css/217cb3486f7b68d7.css +0 -1
  609. /package/.next-prod/static/{WSUa0F_X_5GfMavORSxeX → t45T3Imr0gQh7MYDeURiy}/_ssgManifest.js +0 -0
@@ -0,0 +1 @@
1
+ exports.id=3742,exports.ids=[3742],exports.modules={138:a=>{a.exports=function(a){var b;if("string"!=typeof a||""===a)return!1;for(;b=/(\\).|([@?!+*]\(.*\))/g.exec(a);){if(b[2])return!0;a=a.slice(b.index+b[0].length)}return!1}},3589:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.convertPosixPathToPattern=b.convertWindowsPathToPattern=b.convertPathToPattern=b.escapePosixPath=b.escapeWindowsPath=b.escape=b.removeLeadingDotSegment=b.makeAbsolute=b.unixify=void 0;let d=c(21820),e=c(33873),f="win32"===d.platform(),g=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\()|\\(?![!()*+?@[\]{|}]))/g,h=/(\\?)([()[\]{}]|^!|[!+@](?=\())/g,i=/^\\\\([.?])/,j=/\\(?![!()+@[\]{}])/g;function k(a){return a.replace(h,"\\$2")}function l(a){return a.replace(g,"\\$2")}function m(a){return k(a).replace(i,"//$1").replace(j,"/")}function n(a){return l(a)}b.unixify=function(a){return a.replace(/\\/g,"/")},b.makeAbsolute=function(a,b){return e.resolve(a,b)},b.removeLeadingDotSegment=function(a){if("."===a.charAt(0)){let b=a.charAt(1);if("/"===b||"\\"===b)return a.slice(2)}return a},b.escape=f?k:l,b.escapeWindowsPath=k,b.escapePosixPath=l,b.convertPathToPattern=f?m:n,b.convertWindowsPathToPattern=m,b.convertPosixPathToPattern=n},5653:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0});let d=c(71027);class e{constructor(a,b){this._root=a,this._settings=b,this._root=d.replacePathSegmentSeparator(a,b.pathSegmentSeparator)}}b.default=e},6313:a=>{let b;a.exports="function"==typeof queueMicrotask?queueMicrotask.bind("u">typeof window?window:global):a=>(b||(b=Promise.resolve())).then(a).catch(a=>setTimeout(()=>{throw a},0))},6524:(a,b)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.isEnoentCodeError=void 0,b.isEnoentCodeError=function(a){return"ENOENT"===a.code}},7897:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0});let d=c(34536),e=c(71027),f=c(5653);class g extends f.default{constructor(){super(...arguments),this._scandir=d.scandirSync,this._storage=[],this._queue=new Set}read(){return this._pushToQueue(this._root,this._settings.basePath),this._handleQueue(),this._storage}_pushToQueue(a,b){this._queue.add({directory:a,base:b})}_handleQueue(){for(let a of this._queue.values())this._handleDirectory(a.directory,a.base)}_handleDirectory(a,b){try{for(let c of this._scandir(a,this._settings.fsScandirSettings))this._handleEntry(c,b)}catch(a){this._handleError(a)}}_handleError(a){if(e.isFatalError(this._settings,a))throw a}_handleEntry(a,b){let c=a.path;void 0!==b&&(a.path=e.joinPathSegments(b,a.name,this._settings.pathSegmentSeparator)),e.isAppliedFilter(this._settings.entryFilter,a)&&this._pushToStorage(a),a.dirent.isDirectory()&&e.isAppliedFilter(this._settings.deepFilter,a)&&this._pushToQueue(c,void 0===b?void 0:a.path)}_pushToStorage(a){this._storage.push(a)}}b.default=g},10309:(a,b)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.read=void 0;b.read=function(a,b,c){b.fs.lstat(a,(d,e)=>{null!==d?c(d):e.isSymbolicLink()&&b.followSymbolicLink?b.fs.stat(a,(a,d)=>{if(null!==a)return b.throwErrorOnBrokenSymbolicLink?void c(a):(c(null,e),void 0);b.markSymbolicLink&&(d.isSymbolicLink=()=>!0),c(null,d)}):c(null,e)})}},10567:a=>{"use strict";a.exports={MAX_LENGTH:1e4,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:"\n",CHAR_NO_BREAK_SPACE:"\xa0",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:" ",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\uFEFF"}},11997:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0});let d=c(12940);class e{constructor(a,b,c){this._patterns=a,this._settings=b,this._micromatchOptions=c,this._storage=[],this._fillStorage()}_fillStorage(){for(let a of this._patterns){let b=this._getPatternSegments(a),c=this._splitSegmentsIntoSections(b);this._storage.push({complete:c.length<=1,pattern:a,segments:b,sections:c})}}_getPatternSegments(a){return d.pattern.getPatternParts(a,this._micromatchOptions).map(a=>d.pattern.isDynamicPattern(a,this._settings)?{dynamic:!0,pattern:a,patternRe:d.pattern.makeRe(a,this._micromatchOptions)}:{dynamic:!1,pattern:a})}_splitSegmentsIntoSections(a){return d.array.splitWhen(a,a=>a.dynamic&&d.pattern.hasGlobStar(a.pattern))}}b.default=e},12940:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.string=b.stream=b.pattern=b.path=b.fs=b.errno=b.array=void 0,b.array=c(39621),b.errno=c(6524),b.fs=c(83885),b.path=c(3589),b.pattern=c(35682),b.stream=c(19726),b.string=c(80855)},14510:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0});let d=c(11997);class e extends d.default{match(a){let b=a.split("/"),c=b.length;for(let a of this._storage.filter(a=>!a.complete||a.segments.length>c)){let d=a.sections[0];if(!a.complete&&c>d.length||b.every((b,c)=>{let d=a.segments[c];return!!(d.dynamic&&d.patternRe.test(b))||!d.dynamic&&d.pattern===b}))return!0}return!1}}b.default=e},15630:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.createFileSystemAdapter=b.FILE_SYSTEM_ADAPTER=void 0;let d=c(29021);b.FILE_SYSTEM_ADAPTER={lstat:d.lstat,stat:d.stat,lstatSync:d.lstatSync,statSync:d.statSync},b.createFileSystemAdapter=function(a){return void 0===a?b.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},b.FILE_SYSTEM_ADAPTER),a)}},15762:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0});let d=c(83104),e=c(97603),f=c(53606);class g extends f.default{constructor(){super(...arguments),this._walkSync=e.walkSync,this._statSync=d.statSync}dynamic(a,b){return this._walkSync(a,b)}static(a,b){let c=[];for(let d of a){let a=this._getFullEntryPath(d),e=this._getEntry(a,d,b);null!==e&&b.entryFilter(e)&&c.push(e)}return c}_getEntry(a,b,c){try{let c=this._getStat(a);return this._makeEntry(c,b)}catch(a){if(c.errorFilter(a))return null;throw a}}_getStat(a){return this._statSync(a,this._fsStatSettings)}}b.default=g},17486:(a,b,c)=>{"use strict";let d=c(33873),e="win32"===process.platform,{REGEX_BACKSLASH:f,REGEX_REMOVE_BACKSLASH:g,REGEX_SPECIAL_CHARS:h,REGEX_SPECIAL_CHARS_GLOBAL:i}=c(76166);b.isObject=a=>null!==a&&"object"==typeof a&&!Array.isArray(a),b.hasRegexChars=a=>h.test(a),b.isRegexChar=a=>1===a.length&&b.hasRegexChars(a),b.escapeRegex=a=>a.replace(i,"\\$1"),b.toPosixSlashes=a=>a.replace(f,"/"),b.removeBackslashes=a=>a.replace(g,a=>"\\"===a?"":a),b.supportsLookbehinds=()=>{let a=process.version.slice(1).split(".").map(Number);return 3===a.length&&!!(a[0]>=9)||8===a[0]&&!!(a[1]>=10)},b.isWindows=a=>a&&"boolean"==typeof a.windows?a.windows:!0===e||"\\"===d.sep,b.escapeLast=(a,c,d)=>{let e=a.lastIndexOf(c,d);return -1===e?a:"\\"===a[e-1]?b.escapeLast(a,c,e-1):`${a.slice(0,e)}\\${a.slice(e)}`},b.removePrefix=(a,b={})=>{let c=a;return c.startsWith("./")&&(c=c.slice(2),b.prefix="./"),c},b.wrapOutput=(a,b={},c={})=>{let d=c.contains?"":"^",e=c.contains?"":"$",f=`${d}(?:${a})${e}`;return!0===b.negated&&(f=`(?:^(?!${f}).*$)`),f}},17778:(a,b)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.read=void 0,b.read=function(a,b){let c=b.fs.lstatSync(a);if(!c.isSymbolicLink()||!b.followSymbolicLink)return c;try{let c=b.fs.statSync(a);return b.markSymbolicLink&&(c.isSymbolicLink=()=>!0),c}catch(a){if(!b.throwErrorOnBrokenSymbolicLink)return c;throw a}}},19218:a=>{"use strict";a.exports=function(a){var b=new a,c=b;return{get:function(){var d=b;return d.next?b=d.next:c=b=new a,d.next=null,d},release:function(a){c.next=a,c=a}}}},19726:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.merge=void 0;let d=c(23728);function e(a){a.forEach(a=>a.emit("close"))}b.merge=function(a){let b=d(a);return a.forEach(a=>{a.once("error",a=>b.emit("error",a))}),b.once("close",()=>e(a)),b.once("end",()=>e(a)),b}},23728:(a,b,c)=>{"use strict";let d=c(27910).PassThrough,e=Array.prototype.slice;a.exports=function(){let a=[],b=e.call(arguments),c=!1,f=b[b.length-1];f&&!Array.isArray(f)&&null==f.pipe?b.pop():f={};let g=!1!==f.end,h=!0===f.pipeError;null==f.objectMode&&(f.objectMode=!0),null==f.highWaterMark&&(f.highWaterMark=65536);let i=d(f);function j(){for(let b=0,c=arguments.length;b<c;b++)a.push(function a(b,c){if(Array.isArray(b))for(let d=0,e=b.length;d<e;d++)b[d]=a(b[d],c);else{if(!b._readableState&&b.pipe&&(b=b.pipe(d(c))),!b._readableState||!b.pause||!b.pipe)throw Error("Only readable stream can be merged.");b.pause()}return b}(arguments[b],f));return function b(){if(c)return;c=!0;let d=a.shift();if(!d)return void process.nextTick(k);Array.isArray(d)||(d=[d]);let e=d.length+1;function f(){--e>0||(c=!1,b())}for(let a=0;a<d.length;a++)!function(a){function b(){a.removeListener("merge2UnpipeEnd",b),a.removeListener("end",b),h&&a.removeListener("error",c),f()}function c(a){i.emit("error",a)}if(a._readableState.endEmitted)return f();a.on("merge2UnpipeEnd",b),a.on("end",b),h&&a.on("error",c),a.pipe(i,{end:!1}),a.resume()}(d[a]);f()}(),this}function k(){c=!1,i.emit("queueDrain"),g&&i.end()}return i.setMaxListeners(0),i.add=j,i.on("unpipe",function(a){a.emit("merge2UnpipeEnd")}),b.length&&j.apply(null,b),i}},27002:(a,b,c)=>{"use strict";let d=c(17486),{CHAR_ASTERISK:e,CHAR_AT:f,CHAR_BACKWARD_SLASH:g,CHAR_COMMA:h,CHAR_DOT:i,CHAR_EXCLAMATION_MARK:j,CHAR_FORWARD_SLASH:k,CHAR_LEFT_CURLY_BRACE:l,CHAR_LEFT_PARENTHESES:m,CHAR_LEFT_SQUARE_BRACKET:n,CHAR_PLUS:o,CHAR_QUESTION_MARK:p,CHAR_RIGHT_CURLY_BRACE:q,CHAR_RIGHT_PARENTHESES:r,CHAR_RIGHT_SQUARE_BRACKET:s}=c(76166),t=a=>a===k||a===g,u=a=>{!0!==a.isPrefix&&(a.depth=a.isGlobstar?1/0:1)};a.exports=(a,b)=>{let c,v,w=b||{},x=a.length-1,y=!0===w.parts||!0===w.scanToEnd,z=[],A=[],B=[],C=a,D=-1,E=0,F=0,G=!1,H=!1,I=!1,J=!1,K=!1,L=!1,M=!1,N=!1,O=!1,P=!1,Q=0,R={value:"",depth:0,isGlob:!1},S=()=>D>=x,T=()=>C.charCodeAt(D+1),U=()=>(c=v,C.charCodeAt(++D));for(;D<x;){let a;if((v=U())===g){M=R.backslashes=!0,(v=U())===l&&(L=!0);continue}if(!0===L||v===l){for(Q++;!0!==S()&&(v=U());){if(v===g){M=R.backslashes=!0,U();continue}if(v===l){Q++;continue}if(!0!==L&&v===i&&(v=U())===i||!0!==L&&v===h){if(G=R.isBrace=!0,I=R.isGlob=!0,P=!0,!0===y)continue;break}if(v===q&&0==--Q){L=!1,G=R.isBrace=!0,P=!0;break}}if(!0===y)continue;break}if(v===k){if(z.push(D),A.push(R),R={value:"",depth:0,isGlob:!1},!0===P)continue;if(c===i&&D===E+1){E+=2;continue}F=D+1;continue}if(!0!==w.noext&&!0==(v===o||v===f||v===e||v===p||v===j)&&T()===m){if(I=R.isGlob=!0,J=R.isExtglob=!0,P=!0,v===j&&D===E&&(O=!0),!0===y){for(;!0!==S()&&(v=U());){if(v===g){M=R.backslashes=!0,v=U();continue}if(v===r){I=R.isGlob=!0,P=!0;break}}continue}break}if(v===e){if(c===e&&(K=R.isGlobstar=!0),I=R.isGlob=!0,P=!0,!0===y)continue;break}if(v===p){if(I=R.isGlob=!0,P=!0,!0===y)continue;break}if(v===n){for(;!0!==S()&&(a=U());){if(a===g){M=R.backslashes=!0,U();continue}if(a===s){H=R.isBracket=!0,I=R.isGlob=!0,P=!0;break}}if(!0===y)continue;break}if(!0!==w.nonegate&&v===j&&D===E){N=R.negated=!0,E++;continue}if(!0!==w.noparen&&v===m){if(I=R.isGlob=!0,!0===y){for(;!0!==S()&&(v=U());){if(v===m){M=R.backslashes=!0,v=U();continue}if(v===r){P=!0;break}}continue}break}if(!0===I){if(P=!0,!0===y)continue;break}}!0===w.noext&&(J=!1,I=!1);let V=C,W="",X="";E>0&&(W=C.slice(0,E),C=C.slice(E),F-=E),V&&!0===I&&F>0?(V=C.slice(0,F),X=C.slice(F)):!0===I?(V="",X=C):V=C,V&&""!==V&&"/"!==V&&V!==C&&t(V.charCodeAt(V.length-1))&&(V=V.slice(0,-1)),!0===w.unescape&&(X&&(X=d.removeBackslashes(X)),V&&!0===M&&(V=d.removeBackslashes(V)));let Y={prefix:W,input:a,start:E,base:V,glob:X,isBrace:G,isBracket:H,isGlob:I,isExtglob:J,isGlobstar:K,negated:N,negatedExtglob:O};if(!0===w.tokens&&(Y.maxDepth=0,t(v)||A.push(R),Y.tokens=A),!0===w.parts||!0===w.tokens){let b;for(let c=0;c<z.length;c++){let d=b?b+1:E,e=z[c],f=a.slice(d,e);w.tokens&&(0===c&&0!==E?(A[c].isPrefix=!0,A[c].value=W):A[c].value=f,u(A[c]),Y.maxDepth+=A[c].depth),(0!==c||""!==f)&&B.push(f),b=e}if(b&&b+1<a.length){let c=a.slice(b+1);B.push(c),w.tokens&&(A[A.length-1].value=c,u(A[A.length-1]),Y.maxDepth+=A[A.length-1].depth)}Y.slashes=z,Y.parts=B}return Y}},34536:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.Settings=b.scandirSync=b.scandir=void 0;let d=c(88141),e=c(81194),f=c(52571);function g(a={}){return a instanceof f.default?a:new f.default(a)}b.Settings=f.default,b.scandir=function(a,b,c){"function"==typeof b?d.read(a,g(),b):d.read(a,g(b),c)},b.scandirSync=function(a,b){let c=g(b);return e.read(a,c)}},35682:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.isAbsolute=b.partitionAbsoluteAndRelative=b.removeDuplicateSlashes=b.matchAny=b.convertPatternsToRe=b.makeRe=b.getPatternParts=b.expandBraceExpansion=b.expandPatternsWithBraceExpansion=b.isAffectDepthOfReadingPattern=b.endsWithSlashGlobStar=b.hasGlobStar=b.getBaseDirectory=b.isPatternRelatedToParentDirectory=b.getPatternsOutsideCurrentDirectory=b.getPatternsInsideCurrentDirectory=b.getPositivePatterns=b.getNegativePatterns=b.isPositivePattern=b.isNegativePattern=b.convertToNegativePattern=b.convertToPositivePattern=b.isDynamicPattern=b.isStaticPattern=void 0;let d=c(33873),e=c(53454),f=c(81183),g=/[*?]|^!/,h=/\[[^[]*]/,i=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,j=/[!*+?@]\([^(]*\)/,k=/,|\.\./,l=/(?!^)\/{2,}/g;function m(a,b={}){return!n(a,b)}function n(a,b={}){return""!==a&&!!(!1===b.caseSensitiveMatch||a.includes("\\")||g.test(a)||h.test(a)||i.test(a)||!1!==b.extglob&&j.test(a)||!1!==b.braceExpansion&&function(a){let b=a.indexOf("{");if(-1===b)return!1;let c=a.indexOf("}",b+1);if(-1===c)return!1;let d=a.slice(b,c);return k.test(d)}(a))}function o(a){return a.startsWith("!")&&"("!==a[1]}function p(a){return!o(a)}function q(a){return a.startsWith("..")||a.startsWith("./..")}function r(a){return a.endsWith("/**")}function s(a){let b=f.braces(a,{expand:!0,nodupes:!0,keepEscaping:!0});return b.sort((a,b)=>a.length-b.length),b.filter(a=>""!==a)}function t(a,b){return f.makeRe(a,b)}function u(a){return d.isAbsolute(a)}b.isStaticPattern=m,b.isDynamicPattern=n,b.convertToPositivePattern=function(a){return o(a)?a.slice(1):a},b.convertToNegativePattern=function(a){return"!"+a},b.isNegativePattern=o,b.isPositivePattern=p,b.getNegativePatterns=function(a){return a.filter(o)},b.getPositivePatterns=function(a){return a.filter(p)},b.getPatternsInsideCurrentDirectory=function(a){return a.filter(a=>!q(a))},b.getPatternsOutsideCurrentDirectory=function(a){return a.filter(q)},b.isPatternRelatedToParentDirectory=q,b.getBaseDirectory=function(a){return e(a,{flipBackslashes:!1})},b.hasGlobStar=function(a){return a.includes("**")},b.endsWithSlashGlobStar=r,b.isAffectDepthOfReadingPattern=function(a){let b=d.basename(a);return r(a)||m(b)},b.expandPatternsWithBraceExpansion=function(a){return a.reduce((a,b)=>a.concat(s(b)),[])},b.expandBraceExpansion=s,b.getPatternParts=function(a,b){let{parts:c}=f.scan(a,Object.assign(Object.assign({},b),{parts:!0}));return 0===c.length&&(c=[a]),c[0].startsWith("/")&&(c[0]=c[0].slice(1),c.unshift("")),c},b.makeRe=t,b.convertPatternsToRe=function(a,b){return a.map(a=>t(a,b))},b.matchAny=function(a,b){return b.some(b=>b.test(a))},b.removeDuplicateSlashes=function(a){return a.replace(l,"/")},b.partitionAbsoluteAndRelative=function(a){let b=[],c=[];for(let d of a)u(d)?b.push(d):c.push(d);return[b,c]},b.isAbsolute=u},38129:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.convertPatternGroupToTask=b.convertPatternGroupsToTasks=b.groupPatternsByBaseDirectory=b.getNegativePatternsAsPositive=b.getPositivePatterns=b.convertPatternsToTasks=b.generate=void 0;let d=c(12940);function e(a,b){let c=a;return b.braceExpansion&&(c=d.pattern.expandPatternsWithBraceExpansion(c)),b.baseNameMatch&&(c=c.map(a=>a.includes("/")?a:`**/${a}`)),c.map(a=>d.pattern.removeDuplicateSlashes(a))}function f(a,b,c){let e=[],f=d.pattern.getPatternsOutsideCurrentDirectory(a),g=d.pattern.getPatternsInsideCurrentDirectory(a),h=i(f),l=i(g);return e.push(...j(h,b,c)),"."in l?e.push(k(".",g,b,c)):e.push(...j(l,b,c)),e}function g(a){return d.pattern.getPositivePatterns(a)}function h(a,b){return d.pattern.getNegativePatterns(a).concat(b).map(d.pattern.convertToPositivePattern)}function i(a){return a.reduce((a,b)=>{let c=d.pattern.getBaseDirectory(b);return c in a?a[c].push(b):a[c]=[b],a},{})}function j(a,b,c){return Object.keys(a).map(d=>k(d,a[d],b,c))}function k(a,b,c,e){return{dynamic:e,positive:b,negative:c,base:a,patterns:[].concat(b,c.map(d.pattern.convertToNegativePattern))}}b.generate=function(a,b){let c=e(a,b),i=e(b.ignore,b),j=g(c),k=h(c,i),l=j.filter(a=>d.pattern.isStaticPattern(a,b)),m=j.filter(a=>d.pattern.isDynamicPattern(a,b)),n=f(l,k,!1),o=f(m,k,!0);return n.concat(o)},b.convertPatternsToTasks=f,b.getPositivePatterns=g,b.getNegativePatternsAsPositive=h,b.groupPatternsByBaseDirectory=i,b.convertPatternGroupsToTasks=j,b.convertPatternGroupToTask=k},39621:(a,b)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.splitWhen=b.flatten=void 0,b.flatten=function(a){return a.reduce((a,b)=>[].concat(a,b),[])},b.splitWhen=function(a,b){let c=[[]],d=0;for(let e of a)b(e)?c[++d]=[]:c[d].push(e);return c}},41280:(a,b,c)=>{"use strict";var d=c(19218);function e(a,b,c){if("function"==typeof a&&(c=b,b=a,a=null),!(c>=1))throw Error("fastqueue concurrency must be equal to or greater than 1");var e=d(g),h=null,i=null,j=0,k=null,l={push:function(d,g){var n=e.get();n.context=a,n.release=m,n.value=d,n.callback=g||f,n.errorHandler=k,j>=c||l.paused?i?(i.next=n,i=n):(h=n,i=n,l.saturated()):(j++,b.call(a,n.value,n.worked))},drain:f,saturated:f,pause:function(){l.paused=!0},paused:!1,get concurrency(){return c},set concurrency(value){if(!(value>=1))throw Error("fastqueue concurrency must be equal to or greater than 1");if(c=value,l.paused)return;for(;h&&j<c;)j++,m()},running:function(){return j},resume:function(){if(l.paused){if(l.paused=!1,null===h){j++,m();return}for(;h&&j<c;)j++,m()}},idle:function(){return 0===j&&0===l.length()},length:function(){for(var a=h,b=0;a;)a=a.next,b++;return b},getQueue:function(){for(var a=h,b=[];a;)b.push(a.value),a=a.next;return b},unshift:function(d,g){var n=e.get();n.context=a,n.release=m,n.value=d,n.callback=g||f,n.errorHandler=k,j>=c||l.paused?h?(n.next=h,h=n):(h=n,i=n,l.saturated()):(j++,b.call(a,n.value,n.worked))},empty:f,kill:function(){h=null,i=null,l.drain=f},killAndDrain:function(){h=null,i=null,l.drain(),l.drain=f},error:function(a){k=a},abort:function(){var a=h;for(h=null,i=null;a;){var b=a.next,c=a.callback,d=a.errorHandler,e=a.value,g=a.context;a.value=null,a.callback=f,a.errorHandler=null,d&&d(Error("abort"),e),c.call(g,Error("abort")),a.release(a),a=b}l.drain=f}};return l;function m(d){d&&e.release(d);var f=h;f&&j<=c?l.paused?j--:(i===h&&(i=null),h=f.next,f.next=null,b.call(a,f.value,f.worked),null===i&&l.empty()):0==--j&&l.drain()}}function f(){}function g(){this.value=null,this.callback=f,this.next=null,this.release=f,this.context=null,this.errorHandler=null;var a=this;this.worked=function(b,c){var d=a.callback,e=a.errorHandler,g=a.value;a.value=null,a.callback=f,a.errorHandler&&e(b,g),d.call(a.context,b,c),a.release(a)}}a.exports=e,a.exports.promise=function(a,b,c){"function"==typeof a&&(c=b,b=a,a=null);var d=e(a,function(a,c){b.call(this,a).then(function(a){c(null,a)},c)},c),g=d.push,h=d.unshift;return d.push=function(a){var b=new Promise(function(b,c){g(a,function(a,d){a?c(a):b(d)})});return b.catch(f),b},d.unshift=function(a){var b=new Promise(function(b,c){h(a,function(a,d){a?c(a):b(d)})});return b.catch(f),b},d.drained=function(){return new Promise(function(a){process.nextTick(function(){if(d.idle())a();else{var b=d.drain;d.drain=function(){"function"==typeof b&&b(),a(),d.drain=b}}})})},d}},43485:(a,b,c)=>{"use strict";let d=c(33873),e=c(27002),f=c(60872),g=c(17486),h=c(76166),i=(a,b,c=!1)=>{if(Array.isArray(a)){let d=a.map(a=>i(a,b,c));return a=>{for(let b of d){let c=b(a);if(c)return c}return!1}}let d=a&&"object"==typeof a&&!Array.isArray(a)&&a.tokens&&a.input;if(""===a||"string"!=typeof a&&!d)throw TypeError("Expected pattern to be a non-empty string");let e=b||{},f=g.isWindows(b),h=d?i.compileRe(a,b):i.makeRe(a,b,!1,!0),j=h.state;delete h.state;let k=()=>!1;if(e.ignore){let a={...b,ignore:null,onMatch:null,onResult:null};k=i(e.ignore,a,c)}let l=(c,d=!1)=>{let{isMatch:g,match:l,output:m}=i.test(c,h,b,{glob:a,posix:f}),n={glob:a,state:j,regex:h,posix:f,input:c,output:m,match:l,isMatch:g};return("function"==typeof e.onResult&&e.onResult(n),!1===g)?(n.isMatch=!1,!!d&&n):k(c)?("function"==typeof e.onIgnore&&e.onIgnore(n),n.isMatch=!1,!!d&&n):("function"==typeof e.onMatch&&e.onMatch(n),!d||n)};return c&&(l.state=j),l};i.test=(a,b,c,{glob:d,posix:e}={})=>{if("string"!=typeof a)throw TypeError("Expected input to be a string");if(""===a)return{isMatch:!1,output:""};let f=c||{},h=f.format||(e?g.toPosixSlashes:null),j=a===d,k=j&&h?h(a):a;return!1===j&&(j=(k=h?h(a):a)===d),(!1===j||!0===f.capture)&&(j=!0===f.matchBase||!0===f.basename?i.matchBase(a,b,c,e):b.exec(k)),{isMatch:!!j,match:j,output:k}},i.matchBase=(a,b,c,e=g.isWindows(c))=>(b instanceof RegExp?b:i.makeRe(b,c)).test(d.basename(a)),i.isMatch=(a,b,c)=>i(b,c)(a),i.parse=(a,b)=>Array.isArray(a)?a.map(a=>i.parse(a,b)):f(a,{...b,fastpaths:!1}),i.scan=(a,b)=>e(a,b),i.compileRe=(a,b,c=!1,d=!1)=>{if(!0===c)return a.output;let e=b||{},f=e.contains?"":"^",g=e.contains?"":"$",h=`${f}(?:${a.output})${g}`;a&&!0===a.negated&&(h=`^(?!${h}).*$`);let j=i.toRegex(h,b);return!0===d&&(j.state=a),j},i.makeRe=(a,b={},c=!1,d=!1)=>{if(!a||"string"!=typeof a)throw TypeError("Expected a non-empty string");let e={negated:!1,fastpaths:!0};return!1!==b.fastpaths&&("."===a[0]||"*"===a[0])&&(e.output=f.fastpaths(a,b)),e.output||(e=f(a,b)),i.compileRe(e,b,c,d)},i.toRegex=(a,b)=>{try{let c=b||{};return new RegExp(a,c.flags||(c.nocase?"i":""))}catch(a){if(b&&!0===b.debug)throw a;return/$^/}},i.constants=h,a.exports=i},44093:(a,b)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;let c=process.versions.node.split(".");if(void 0===c[0]||void 0===c[1])throw Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);let d=Number.parseInt(c[0],10),e=Number.parseInt(c[1],10);b.IS_SUPPORT_READDIR_WITH_FILE_TYPES=d>10||10===d&&e>=10},45889:(a,b,c)=>{"use strict";let d=c(49291),{MAX_LENGTH:e,CHAR_BACKSLASH:f,CHAR_BACKTICK:g,CHAR_COMMA:h,CHAR_DOT:i,CHAR_LEFT_PARENTHESES:j,CHAR_RIGHT_PARENTHESES:k,CHAR_LEFT_CURLY_BRACE:l,CHAR_RIGHT_CURLY_BRACE:m,CHAR_LEFT_SQUARE_BRACKET:n,CHAR_RIGHT_SQUARE_BRACKET:o,CHAR_DOUBLE_QUOTE:p,CHAR_SINGLE_QUOTE:q,CHAR_NO_BREAK_SPACE:r,CHAR_ZERO_WIDTH_NOBREAK_SPACE:s}=c(10567);a.exports=(a,b={})=>{let c;if("string"!=typeof a)throw TypeError("Expected a string");let t=b||{},u="number"==typeof t.maxLength?Math.min(e,t.maxLength):e;if(a.length>u)throw SyntaxError(`Input length (${a.length}), exceeds max characters (${u})`);let v={type:"root",input:a,nodes:[]},w=[v],x=v,y=v,z=0,A=a.length,B=0,C=0,D=()=>a[B++],E=a=>{if("text"===a.type&&"dot"===y.type&&(y.type="text"),y&&"text"===y.type&&"text"===a.type){y.value+=a.value;return}return x.nodes.push(a),a.parent=x,a.prev=y,y=a,a};for(E({type:"bos"});B<A;)if(x=w[w.length-1],(c=D())!==s&&c!==r){if(c===f){E({type:"text",value:(b.keepEscaping?c:"")+D()});continue}if(c===o){E({type:"text",value:"\\"+c});continue}if(c===n){let a;for(z++;B<A&&(a=D());){if(c+=a,a===n){z++;continue}if(a===f){c+=D();continue}if(a===o&&0==--z)break}E({type:"text",value:c});continue}if(c===j){x=E({type:"paren",nodes:[]}),w.push(x),E({type:"text",value:c});continue}if(c===k){if("paren"!==x.type){E({type:"text",value:c});continue}x=w.pop(),E({type:"text",value:c}),x=w[w.length-1];continue}if(c===p||c===q||c===g){let a,d=c;for(!0!==b.keepQuotes&&(c="");B<A&&(a=D());){if(a===f){c+=a+D();continue}if(a===d){!0===b.keepQuotes&&(c+=a);break}c+=a}E({type:"text",value:c});continue}if(c===l){C++,x=E({type:"brace",open:!0,close:!1,dollar:y.value&&"$"===y.value.slice(-1)||!0===x.dollar,depth:C,commas:0,ranges:0,nodes:[]}),w.push(x),E({type:"open",value:c});continue}if(c===m){if("brace"!==x.type){E({type:"text",value:c});continue}(x=w.pop()).close=!0,E({type:"close",value:c}),C--,x=w[w.length-1];continue}if(c===h&&C>0){if(x.ranges>0){x.ranges=0;let a=x.nodes.shift();x.nodes=[a,{type:"text",value:d(x)}]}E({type:"comma",value:c}),x.commas++;continue}if(c===i&&C>0&&0===x.commas){let a=x.nodes;if(0===C||0===a.length){E({type:"text",value:c});continue}if("dot"===y.type){if(x.range=[],y.value+=c,y.type="range",3!==x.nodes.length&&5!==x.nodes.length){x.invalid=!0,x.ranges=0,y.type="text";continue}x.ranges++,x.args=[];continue}if("range"===y.type){a.pop();let b=a[a.length-1];b.value+=y.value+c,y=b,x.ranges--;continue}E({type:"dot",value:c});continue}E({type:"text",value:c})}do if("root"!==(x=w.pop()).type){x.nodes.forEach(a=>{a.nodes||("open"===a.type&&(a.isOpen=!0),"close"===a.type&&(a.isClose=!0),a.nodes||(a.type="text"),a.invalid=!0)});let a=w[w.length-1],b=a.nodes.indexOf(x);a.nodes.splice(b,1,...x.nodes)}while(w.length>0);return E({type:"eos"}),v}},49291:(a,b,c)=>{"use strict";let d=c(52679);a.exports=(a,b={})=>{let c=(a,e={})=>{let f=b.escapeInvalid&&d.isInvalidBrace(e),g=!0===a.invalid&&!0===b.escapeInvalid,h="";if(a.value)return(f||g)&&d.isOpenOrClose(a)?"\\"+a.value:a.value;if(a.value)return a.value;if(a.nodes)for(let b of a.nodes)h+=c(b);return h};return c(a)}},49979:(a,b,c)=>{"use strict";let d=c(28354),e=c(62545),f=a=>null!==a&&"object"==typeof a&&!Array.isArray(a),g=a=>"number"==typeof a||"string"==typeof a&&""!==a,h=a=>{let b=`${a}`,c=-1;if("-"===b[0]&&(b=b.slice(1)),"0"===b)return!1;for(;"0"===b[++c];);return c>0},i=(a,b,c)=>{if(b>0){let c="-"===a[0]?"-":"";c&&(a=a.slice(1)),a=c+a.padStart(c?b-1:b,"0")}return!1===c?String(a):a},j=(a,b)=>{let c="-"===a[0]?"-":"";for(c&&(a=a.slice(1),b--);a.length<b;)a="0"+a;return c?"-"+a:a},k=(a,b,c,d)=>{if(c)return e(a,b,{wrap:!1,...d});let f=String.fromCharCode(a);if(a===b)return f;let g=String.fromCharCode(b);return`[${f}-${g}]`},l=(a,b,c)=>{if(Array.isArray(a)){let b=!0===c.wrap,d=c.capture?"":"?:";return b?`(${d}${a.join("|")})`:a.join("|")}return e(a,b,c)},m=(...a)=>RangeError("Invalid range arguments: "+d.inspect(...a)),n=(a,b,c)=>{if(!0===c.strictRanges)throw m([a,b]);return[]},o=(a,b,c,d={})=>{if(null==b&&g(a))return[a];if(!g(a)||!g(b))return n(a,b,d);if("function"==typeof c)return o(a,b,1,{transform:c});if(f(c))return o(a,b,0,c);let e={...d};if(!0===e.capture&&(e.wrap=!0),!Number.isInteger(+(c=c||e.step||1))){if(null!=c&&!f(c)){var p=c;if(!0===e.strictRanges)throw TypeError(`Expected step "${p}" to be a number`);return[]}return o(a,b,1,c)}return Number.isInteger(+a)&&Number.isInteger(+b)?((a,b,c=1,d={})=>{let e=Number(a),f=Number(b);if(!Number.isInteger(e)||!Number.isInteger(f)){if(!0===d.strictRanges)throw m([a,b]);return[]}0===e&&(e=0),0===f&&(f=0);let g=e>f,n=String(a),o=String(b),p=String(c);c=Math.max(Math.abs(c),1);let q=h(n)||h(o)||h(p),r=q?Math.max(n.length,o.length,p.length):0,s=!1===q&&!1==("string"==typeof a||"string"==typeof b||!0===d.stringify),t=d.transform||(a=>!0===s?Number(a):String(a));if(d.toRegex&&1===c)return k(j(a,r),j(b,r),!0,d);let u={negatives:[],positives:[]},v=a=>u[a<0?"negatives":"positives"].push(Math.abs(a)),w=[],x=0;for(;g?e>=f:e<=f;)!0===d.toRegex&&c>1?v(e):w.push(i(t(e,x),r,s)),e=g?e-c:e+c,x++;if(!0===d.toRegex){let a,b,e,f;return c>1?(u.negatives.sort((a,b)=>a<b?-1:+(a>b)),u.positives.sort((a,b)=>a<b?-1:+(a>b)),b=d.capture?"":"?:",e="",f="",(u.positives.length&&(e=u.positives.map(a=>j(String(a),r)).join("|")),u.negatives.length&&(f=`-(${b}${u.negatives.map(a=>j(String(a),r)).join("|")})`),a=e&&f?`${e}|${f}`:e||f,d.wrap)?`(${b}${a})`:a):l(w,null,{wrap:!1,...d})}return w})(a,b,c,e):((a,b,c=1,d={})=>{if(!Number.isInteger(+a)&&a.length>1||!Number.isInteger(+b)&&b.length>1)return n(a,b,d);let e=d.transform||(a=>String.fromCharCode(a)),f=`${a}`.charCodeAt(0),g=`${b}`.charCodeAt(0),h=f>g,i=Math.min(f,g),j=Math.max(f,g);if(d.toRegex&&1===c)return k(i,j,!1,d);let m=[],o=0;for(;h?f>=g:f<=g;)m.push(e(f,o)),f=h?f-c:f+c,o++;return!0===d.toRegex?l(m,null,{wrap:!1,options:d}):m})(a,b,Math.max(Math.abs(c),1),e)};a.exports=o},52571:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0});let d=c(33873),e=c(83104),f=c(83478);class g{constructor(a={}){this._options=a,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=f.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,d.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new e.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(a,b){return null!=a?a:b}}b.default=g},52679:(a,b)=>{"use strict";b.isInteger=a=>"number"==typeof a?Number.isInteger(a):"string"==typeof a&&""!==a.trim()&&Number.isInteger(Number(a)),b.find=(a,b)=>a.nodes.find(a=>a.type===b),b.exceedsLimit=(a,c,d=1,e)=>!1!==e&&!!b.isInteger(a)&&!!b.isInteger(c)&&(Number(c)-Number(a))/Number(d)>=e,b.escapeNode=(a,b=0,c)=>{let d=a.nodes[b];d&&(c&&d.type===c||"open"===d.type||"close"===d.type)&&!0!==d.escaped&&(d.value="\\"+d.value,d.escaped=!0)},b.encloseBrace=a=>"brace"===a.type&&a.commas>>0+a.ranges==0&&(a.invalid=!0,!0),b.isInvalidBrace=a=>"brace"===a.type&&(!0===a.invalid||!!a.dollar||(a.commas>>0+a.ranges==0||!0!==a.open||!0!==a.close)&&(a.invalid=!0,!0)),b.isOpenOrClose=a=>"open"===a.type||"close"===a.type||!0===a.open||!0===a.close,b.reduce=a=>a.reduce((a,b)=>("text"===b.type&&a.push(b.value),"range"===b.type&&(b.type="text"),a),[]),b.flatten=(...a)=>{let b=[],c=a=>{for(let d=0;d<a.length;d++){let e=a[d];if(Array.isArray(e)){c(e);continue}void 0!==e&&b.push(e)}return b};return c(a),b}},53454:(a,b,c)=>{"use strict";var d=c(97199),e=c(33873).posix.dirname,f="win32"===c(21820).platform(),g=/\\/g,h=/[\{\[].*[\}\]]$/,i=/(^|[^\\])([\{\[]|\([^\)]+$)/,j=/\\([\!\*\?\|\[\]\(\)\{\}])/g;a.exports=function(a,b){Object.assign({flipBackslashes:!0},b).flipBackslashes&&f&&0>a.indexOf("/")&&(a=a.replace(g,"/")),h.test(a)&&(a+="/"),a+="a";do a=e(a);while(d(a)||i.test(a));return a.replace(j,"$1")}},53606:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0});let d=c(33873),e=c(83104),f=c(12940);class g{constructor(a){this._settings=a,this._fsStatSettings=new e.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(a){return d.resolve(this._settings.cwd,a)}_makeEntry(a,b){let c={name:b,path:b,dirent:f.fs.createDirentFromStats(b,a)};return this._settings.stats&&(c.stats=a),c}_isFatalError(a){return!f.errno.isEnoentCodeError(a)&&!this._settings.suppressErrors}}b.default=g},54323:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0});let d=c(15630);class e{constructor(a={}){this._options=a,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=d.createFileSystemAdapter(this._options.fs),this.markSymbolicLink=this._getValue(this._options.markSymbolicLink,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0)}_getValue(a,b){return null!=a?a:b}}b.default=e},54930:(a,b,c)=>{"use strict";let d=c(49291),e=c(95936),f=c(96720),g=c(45889),h=(a,b={})=>{let c=[];if(Array.isArray(a))for(let d of a){let a=h.create(d,b);Array.isArray(a)?c.push(...a):c.push(a)}else c=[].concat(h.create(a,b));return b&&!0===b.expand&&!0===b.nodupes&&(c=[...new Set(c)]),c};h.parse=(a,b={})=>g(a,b),h.stringify=(a,b={})=>"string"==typeof a?d(h.parse(a,b),b):d(a,b),h.compile=(a,b={})=>("string"==typeof a&&(a=h.parse(a,b)),e(a,b)),h.expand=(a,b={})=>{"string"==typeof a&&(a=h.parse(a,b));let c=f(a,b);return!0===b.noempty&&(c=c.filter(Boolean)),!0===b.nodupes&&(c=[...new Set(c)]),c},h.create=(a,b={})=>""===a||a.length<3?[a]:!0!==b.expand?h.compile(a,b):h.expand(a,b),a.exports=h},56638:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.fs=void 0,b.fs=c(84279)},58928:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0});let d=c(94735),e=c(34536),f=c(41280),g=c(71027),h=c(5653);class i extends h.default{constructor(a,b){super(a,b),this._settings=b,this._scandir=e.scandir,this._emitter=new d.EventEmitter,this._queue=f(this._worker.bind(this),this._settings.concurrency),this._isFatalError=!1,this._isDestroyed=!1,this._queue.drain=()=>{this._isFatalError||this._emitter.emit("end")}}read(){return this._isFatalError=!1,this._isDestroyed=!1,setImmediate(()=>{this._pushToQueue(this._root,this._settings.basePath)}),this._emitter}get isDestroyed(){return this._isDestroyed}destroy(){if(this._isDestroyed)throw Error("The reader is already destroyed");this._isDestroyed=!0,this._queue.killAndDrain()}onEntry(a){this._emitter.on("entry",a)}onError(a){this._emitter.once("error",a)}onEnd(a){this._emitter.once("end",a)}_pushToQueue(a,b){this._queue.push({directory:a,base:b},a=>{null!==a&&this._handleError(a)})}_worker(a,b){this._scandir(a.directory,this._settings.fsScandirSettings,(c,d)=>{if(null!==c)return void b(c,void 0);for(let b of d)this._handleEntry(b,a.base);b(null,void 0)})}_handleError(a){!this._isDestroyed&&g.isFatalError(this._settings,a)&&(this._isFatalError=!0,this._isDestroyed=!0,this._emitter.emit("error",a))}_handleEntry(a,b){if(this._isDestroyed||this._isFatalError)return;let c=a.path;void 0!==b&&(a.path=g.joinPathSegments(b,a.name,this._settings.pathSegmentSeparator)),g.isAppliedFilter(this._settings.entryFilter,a)&&this._emitEntry(a),a.dirent.isDirectory()&&g.isAppliedFilter(this._settings.deepFilter,a)&&this._pushToQueue(c,void 0===b?void 0:a.path)}_emitEntry(a){this._emitter.emit("entry",a)}}b.default=i},59203:(a,b,c)=>{"use strict";a.exports=c(43485)},59468:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0});let d=c(12940);class e{constructor(a){this._settings=a}getTransformer(){return a=>this._transform(a)}_transform(a){let b=a.path;return(this._settings.absolute&&(b=d.path.makeAbsolute(this._settings.cwd,b),b=d.path.unixify(b)),this._settings.markDirectories&&a.dirent.isDirectory()&&(b+="/"),this._settings.objectMode)?Object.assign(Object.assign({},a),{path:b}):b}}b.default=e},60872:(a,b,c)=>{"use strict";let d=c(76166),e=c(17486),{MAX_LENGTH:f,POSIX_REGEX_SOURCE:g,REGEX_NON_SPECIAL_CHARS:h,REGEX_SPECIAL_CHARS_BACKREF:i,REPLACEMENTS:j}=d,k=(a,b)=>{if("function"==typeof b.expandRange)return b.expandRange(...a,b);a.sort();let c=`[${a.join("-")}]`;try{new RegExp(c)}catch(b){return a.map(a=>e.escapeRegex(a)).join("..")}return c},l=(a,b)=>`Missing ${a}: "${b}" - use "\\\\${b}" to match literal characters`,m=a=>{let b=[],c=0,d=0,e=0,f="",g=!1;for(let h of a){if(!0===g){f+=h,g=!1;continue}if("\\"===h){f+=h,g=!0;continue}if('"'===h){e=+(1!==e),f+=h;continue}if(0===e){if("["===h)c++;else if("]"===h&&c>0)c--;else if(0===c){if("("===h)d++;else if(")"===h&&d>0)d--;else if("|"===h&&0===d){b.push(f),f="";continue}}}f+=h}return b.push(f),b},n=a=>{let b=a.trim(),c=!0;for(;!0===c;)c=!1,/^@\([^\\()[\]{}|]+\)$/.test(b)&&(b=b.slice(2,-1),c=!0);if((a=>{let b=!1;for(let c of a){if(!0===b){b=!1;continue}if("\\"===c){b=!0;continue}if(/[?*+@!()[\]{}]/.test(c))return!1}return!0})(b))return b.replace(/\\(.)/g,"$1")},o=(a,b=!0)=>{if("+"!==a[0]&&"*"!==a[0]||"("!==a[1])return;let c=0,d=0,e=0,f=!1;for(let g=1;g<a.length;g++){let h=a[g];if(!0===f){f=!1;continue}if("\\"===h){f=!0;continue}if('"'===h){e=+(1!==e);continue}if(1!==e){if("["===h){c++;continue}if("]"===h&&c>0){c--;continue}if(!(c>0)){if("("===h){d++;continue}if(")"===h&&0==--d){if(!0===b&&g!==a.length-1)return;return{type:a[0],body:a.slice(2,g),end:g}}}}}},p=a=>{let b=0,c=[];for(;b<a.length;){let d=o(a.slice(b),!1);if(!d||"*"!==d.type)return;let e=m(d.body).map(a=>a.trim());if(1!==e.length)return;let f=n(e[0]);if(!f||1!==f.length)return;c.push(f),b+=d.end+1}if(c.length<1)return;let d=1===c.length?e.escapeRegex(c[0]):`[${c.map(a=>e.escapeRegex(a)).join("")}]`;return`${d}*`},q=a=>{let b=0,c=a.trim(),d=o(c);for(;d;)b++,d=o(c=d.body.trim());return b},r=(a,b)=>{let c;if("string"!=typeof a)throw TypeError("Expected a string");a=j[a]||a;let o={...b},s="number"==typeof o.maxLength?Math.min(f,o.maxLength):f,t=a.length;if(t>s)throw SyntaxError(`Input length: ${t}, exceeds maximum allowed length: ${s}`);let u={type:"bos",value:"",output:o.prepend||""},v=[u],w=o.capture?"":"?:",x=e.isWindows(b),y=d.globChars(x),z=d.extglobChars(y),{DOT_LITERAL:A,PLUS_LITERAL:B,SLASH_LITERAL:C,ONE_CHAR:D,DOTS_SLASH:E,NO_DOT:F,NO_DOT_SLASH:G,NO_DOTS_SLASH:H,QMARK:I,QMARK_NO_DOT:J,STAR:K,START_ANCHOR:L}=y,M=a=>`(${w}(?:(?!${L}${a.dot?E:A}).)*?)`,N=o.dot?"":F,O=o.dot?I:J,P=!0===o.bash?M(o):K;o.capture&&(P=`(${P})`),"boolean"==typeof o.noext&&(o.noextglob=o.noext);let Q={input:a,index:-1,start:0,dot:!0===o.dot,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:v};t=(a=e.removePrefix(a,Q)).length;let R=[],S=[],T=[],U=u,V=()=>Q.index===t-1,W=Q.peek=(b=1)=>a[Q.index+b],X=Q.advance=()=>a[++Q.index]||"",Y=()=>a.slice(Q.index+1),Z=(a="",b=0)=>{Q.consumed+=a,Q.index+=b},$=a=>{Q.output+=null!=a.output?a.output:a.value,Z(a.value)},_=()=>{let a=1;for(;"!"===W()&&("("!==W(2)||"?"===W(3));)X(),Q.start++,a++;return a%2!=0&&(Q.negated=!0,Q.start++,!0)},aa=a=>{Q[a]++,T.push(a)},ab=a=>{Q[a]--,T.pop()},ac=a=>{if("globstar"===U.type){let b=Q.braces>0&&("comma"===a.type||"brace"===a.type),c=!0===a.extglob||R.length&&("pipe"===a.type||"paren"===a.type);"slash"===a.type||"paren"===a.type||b||c||(Q.output=Q.output.slice(0,-U.output.length),U.type="star",U.value="*",U.output=P,Q.output+=U.output)}if(R.length&&"paren"!==a.type&&(R[R.length-1].inner+=a.value),(a.value||a.output)&&$(a),U&&"text"===U.type&&"text"===a.type){U.value+=a.value,U.output=(U.output||"")+a.value;return}a.prev=U,v.push(a),U=a},ad=(a,b)=>{let c={...z[b],conditions:1,inner:""};c.prev=U,c.parens=Q.parens,c.output=Q.output,c.startIndex=Q.index,c.tokensIndex=v.length;let d=(o.capture?"(":"")+c.open;aa("parens"),ac({type:a,value:b,output:Q.output?"":D}),ac({type:"paren",extglob:!0,value:X(),output:d}),R.push(c)},ae=f=>{let g,h=a.slice(f.startIndex,Q.index+1),i=((a,b)=>{if(!1===b.maxExtglobRecursion)return{risky:!1};let c="number"==typeof b.maxExtglobRecursion?b.maxExtglobRecursion:d.DEFAULT_MAX_EXTGLOB_RECURSION,e=m(a).map(a=>a.trim());if(e.length>1&&(e.some(a=>""===a)||e.some(a=>/^[*?]+$/.test(a))||(a=>{let b=a.map(n).filter(Boolean);for(let a=0;a<b.length;a++)for(let c=a+1;c<b.length;c++){let d=b[a],e=b[c],f=d[0];if(f&&d===f.repeat(d.length)&&e===f.repeat(e.length)&&(d===e||d.startsWith(e)||e.startsWith(d)))return!0}return!1})(e)))return{risky:!0};for(let a of e){let b=p(a);if(b)return{risky:!0,safeOutput:b};if(q(a)>c)return{risky:!0}}return{risky:!1}})(a.slice(f.startIndex+2,Q.index),o);if(("plus"===f.type||"star"===f.type)&&i.risky){let a=i.safeOutput?(f.output?"":D)+(o.capture?`(${i.safeOutput})`:i.safeOutput):void 0,b=v[f.tokensIndex];b.type="text",b.value=h,b.output=a||e.escapeRegex(h);for(let a=f.tokensIndex+1;a<v.length;a++)v[a].value="",v[a].output="",delete v[a].suffix;Q.output=f.output+b.output,Q.backtrack=!0,ac({type:"paren",extglob:!0,value:c,output:""}),ab("parens");return}let j=f.close+(o.capture?")":"");if("negate"===f.type){let a=P;if(f.inner&&f.inner.length>1&&f.inner.includes("/")&&(a=M(o)),(a!==P||V()||/^\)+$/.test(Y()))&&(j=f.close=`)$))${a}`),f.inner.includes("*")&&(g=Y())&&/^\.[^\\/.]+$/.test(g)){let c=r(g,{...b,fastpaths:!1}).output;j=f.close=`)${c})${a})`}"bos"===f.prev.type&&(Q.negatedExtglob=!0)}ac({type:"paren",extglob:!0,value:c,output:j}),ab("parens")};if(!1!==o.fastpaths&&!/(^[*!]|[/()[\]{}"])/.test(a)){let c=!1,d=a.replace(i,(a,b,d,e,f,g)=>"\\"===e?(c=!0,a):"?"===e?b?b+e+(f?I.repeat(f.length):""):0===g?O+(f?I.repeat(f.length):""):I.repeat(d.length):"."===e?A.repeat(d.length):"*"===e?b?b+e+(f?P:""):P:b?a:`\\${a}`);return(!0===c&&(d=!0===o.unescape?d.replace(/\\/g,""):d.replace(/\\+/g,a=>a.length%2==0?"\\\\":a?"\\":"")),d===a&&!0===o.contains)?Q.output=a:Q.output=e.wrapOutput(d,Q,b),Q}for(;!V();){if("\0"===(c=X()))continue;if("\\"===c){let a=W();if("/"===a&&!0!==o.bash||"."===a||";"===a)continue;if(!a){ac({type:"text",value:c+="\\"});continue}let b=/^\\+/.exec(Y()),d=0;if(b&&b[0].length>2&&(d=b[0].length,Q.index+=d,d%2!=0&&(c+="\\")),!0===o.unescape?c=X():c+=X(),0===Q.brackets){ac({type:"text",value:c});continue}}if(Q.brackets>0&&("]"!==c||"["===U.value||"[^"===U.value)){if(!1!==o.posix&&":"===c){let a=U.value.slice(1);if(a.includes("[")&&(U.posix=!0,a.includes(":"))){let a=U.value.lastIndexOf("["),b=U.value.slice(0,a),c=g[U.value.slice(a+2)];if(c){U.value=b+c,Q.backtrack=!0,X(),u.output||1!==v.indexOf(U)||(u.output=D);continue}}}("["===c&&":"!==W()||"-"===c&&"]"===W())&&(c=`\\${c}`),"]"===c&&("["===U.value||"[^"===U.value)&&(c=`\\${c}`),!0===o.posix&&"!"===c&&"["===U.value&&(c="^"),U.value+=c,$({value:c});continue}if(1===Q.quotes&&'"'!==c){c=e.escapeRegex(c),U.value+=c,$({value:c});continue}if('"'===c){Q.quotes=+(1!==Q.quotes),!0===o.keepQuotes&&ac({type:"text",value:c});continue}if("("===c){aa("parens"),ac({type:"paren",value:c});continue}if(")"===c){if(0===Q.parens&&!0===o.strictBrackets)throw SyntaxError(l("opening","("));let a=R[R.length-1];if(a&&Q.parens===a.parens+1){ae(R.pop());continue}ac({type:"paren",value:c,output:Q.parens?")":"\\)"}),ab("parens");continue}if("["===c){if(!0!==o.nobracket&&Y().includes("]"))aa("brackets");else{if(!0!==o.nobracket&&!0===o.strictBrackets)throw SyntaxError(l("closing","]"));c=`\\${c}`}ac({type:"bracket",value:c});continue}if("]"===c){if(!0===o.nobracket||U&&"bracket"===U.type&&1===U.value.length){ac({type:"text",value:c,output:`\\${c}`});continue}if(0===Q.brackets){if(!0===o.strictBrackets)throw SyntaxError(l("opening","["));ac({type:"text",value:c,output:`\\${c}`});continue}ab("brackets");let a=U.value.slice(1);if(!0===U.posix||"^"!==a[0]||a.includes("/")||(c=`/${c}`),U.value+=c,$({value:c}),!1===o.literalBrackets||e.hasRegexChars(a))continue;let b=e.escapeRegex(U.value);if(Q.output=Q.output.slice(0,-U.value.length),!0===o.literalBrackets){Q.output+=b,U.value=b;continue}U.value=`(${w}${b}|${U.value})`,Q.output+=U.value;continue}if("{"===c&&!0!==o.nobrace){aa("braces");let a={type:"brace",value:c,output:"(",outputIndex:Q.output.length,tokensIndex:Q.tokens.length};S.push(a),ac(a);continue}if("}"===c){let a=S[S.length-1];if(!0===o.nobrace||!a){ac({type:"text",value:c,output:c});continue}let b=")";if(!0===a.dots){let a=v.slice(),c=[];for(let b=a.length-1;b>=0&&(v.pop(),"brace"!==a[b].type);b--)"dots"!==a[b].type&&c.unshift(a[b].value);b=k(c,o),Q.backtrack=!0}if(!0!==a.comma&&!0!==a.dots){let d=Q.output.slice(0,a.outputIndex),e=Q.tokens.slice(a.tokensIndex);for(let f of(a.value=a.output="\\{",c=b="\\}",Q.output=d,e))Q.output+=f.output||f.value}ac({type:"brace",value:c,output:b}),ab("braces"),S.pop();continue}if("|"===c){R.length>0&&R[R.length-1].conditions++,ac({type:"text",value:c});continue}if(","===c){let a=c,b=S[S.length-1];b&&"braces"===T[T.length-1]&&(b.comma=!0,a="|"),ac({type:"comma",value:c,output:a});continue}if("/"===c){if("dot"===U.type&&Q.index===Q.start+1){Q.start=Q.index+1,Q.consumed="",Q.output="",v.pop(),U=u;continue}ac({type:"slash",value:c,output:C});continue}if("."===c){if(Q.braces>0&&"dot"===U.type){"."===U.value&&(U.output=A);let a=S[S.length-1];U.type="dots",U.output+=c,U.value+=c,a.dots=!0;continue}if(Q.braces+Q.parens===0&&"bos"!==U.type&&"slash"!==U.type){ac({type:"text",value:c,output:A});continue}ac({type:"dot",value:c,output:A});continue}if("?"===c){if(!(U&&"("===U.value)&&!0!==o.noextglob&&"("===W()&&"?"!==W(2)){ad("qmark",c);continue}if(U&&"paren"===U.type){let a=W(),b=c;if("<"===a&&!e.supportsLookbehinds())throw Error("Node.js v10 or higher is required for regex lookbehinds");("("!==U.value||/[!=<:]/.test(a))&&("<"!==a||/<([!=]|\w+>)/.test(Y()))||(b=`\\${c}`),ac({type:"text",value:c,output:b});continue}if(!0!==o.dot&&("slash"===U.type||"bos"===U.type)){ac({type:"qmark",value:c,output:J});continue}ac({type:"qmark",value:c,output:I});continue}if("!"===c){if(!0!==o.noextglob&&"("===W()&&("?"!==W(2)||!/[!=<:]/.test(W(3)))){ad("negate",c);continue}if(!0!==o.nonegate&&0===Q.index){_();continue}}if("+"===c){if(!0!==o.noextglob&&"("===W()&&"?"!==W(2)){ad("plus",c);continue}if(U&&"("===U.value||!1===o.regex){ac({type:"plus",value:c,output:B});continue}if(U&&("bracket"===U.type||"paren"===U.type||"brace"===U.type)||Q.parens>0){ac({type:"plus",value:c});continue}ac({type:"plus",value:B});continue}if("@"===c){if(!0!==o.noextglob&&"("===W()&&"?"!==W(2)){ac({type:"at",extglob:!0,value:c,output:""});continue}ac({type:"text",value:c});continue}if("*"!==c){("$"===c||"^"===c)&&(c=`\\${c}`);let a=h.exec(Y());a&&(c+=a[0],Q.index+=a[0].length),ac({type:"text",value:c});continue}if(U&&("globstar"===U.type||!0===U.star)){U.type="star",U.star=!0,U.value+=c,U.output=P,Q.backtrack=!0,Q.globstar=!0,Z(c);continue}let b=Y();if(!0!==o.noextglob&&/^\([^?]/.test(b)){ad("star",c);continue}if("star"===U.type){if(!0===o.noglobstar){Z(c);continue}let d=U.prev,e=d.prev,f="slash"===d.type||"bos"===d.type,g=e&&("star"===e.type||"globstar"===e.type);if(!0===o.bash&&(!f||b[0]&&"/"!==b[0])){ac({type:"star",value:c,output:""});continue}let h=Q.braces>0&&("comma"===d.type||"brace"===d.type),i=R.length&&("pipe"===d.type||"paren"===d.type);if(!f&&"paren"!==d.type&&!h&&!i){ac({type:"star",value:c,output:""});continue}for(;"/**"===b.slice(0,3);){let c=a[Q.index+4];if(c&&"/"!==c)break;b=b.slice(3),Z("/**",3)}if("bos"===d.type&&V()){U.type="globstar",U.value+=c,U.output=M(o),Q.output=U.output,Q.globstar=!0,Z(c);continue}if("slash"===d.type&&"bos"!==d.prev.type&&!g&&V()){Q.output=Q.output.slice(0,-(d.output+U.output).length),d.output=`(?:${d.output}`,U.type="globstar",U.output=M(o)+(o.strictSlashes?")":"|$)"),U.value+=c,Q.globstar=!0,Q.output+=d.output+U.output,Z(c);continue}if("slash"===d.type&&"bos"!==d.prev.type&&"/"===b[0]){let a=void 0!==b[1]?"|$":"";Q.output=Q.output.slice(0,-(d.output+U.output).length),d.output=`(?:${d.output}`,U.type="globstar",U.output=`${M(o)}${C}|${C}${a})`,U.value+=c,Q.output+=d.output+U.output,Q.globstar=!0,Z(c+X()),ac({type:"slash",value:"/",output:""});continue}if("bos"===d.type&&"/"===b[0]){U.type="globstar",U.value+=c,U.output=`(?:^|${C}|${M(o)}${C})`,Q.output=U.output,Q.globstar=!0,Z(c+X()),ac({type:"slash",value:"/",output:""});continue}Q.output=Q.output.slice(0,-U.output.length),U.type="globstar",U.output=M(o),U.value+=c,Q.output+=U.output,Q.globstar=!0,Z(c);continue}let d={type:"star",value:c,output:P};if(!0===o.bash){d.output=".*?",("bos"===U.type||"slash"===U.type)&&(d.output=N+d.output),ac(d);continue}if(U&&("bracket"===U.type||"paren"===U.type)&&!0===o.regex){d.output=c,ac(d);continue}(Q.index===Q.start||"slash"===U.type||"dot"===U.type)&&("dot"===U.type?(Q.output+=G,U.output+=G):!0===o.dot?(Q.output+=H,U.output+=H):(Q.output+=N,U.output+=N),"*"!==W()&&(Q.output+=D,U.output+=D)),ac(d)}for(;Q.brackets>0;){if(!0===o.strictBrackets)throw SyntaxError(l("closing","]"));Q.output=e.escapeLast(Q.output,"["),ab("brackets")}for(;Q.parens>0;){if(!0===o.strictBrackets)throw SyntaxError(l("closing",")"));Q.output=e.escapeLast(Q.output,"("),ab("parens")}for(;Q.braces>0;){if(!0===o.strictBrackets)throw SyntaxError(l("closing","}"));Q.output=e.escapeLast(Q.output,"{"),ab("braces")}if(!0!==o.strictSlashes&&("star"===U.type||"bracket"===U.type)&&ac({type:"maybe_slash",value:"",output:`${C}?`}),!0===Q.backtrack)for(let a of(Q.output="",Q.tokens))Q.output+=null!=a.output?a.output:a.value,a.suffix&&(Q.output+=a.suffix);return Q};r.fastpaths=(a,b)=>{let c={...b},g="number"==typeof c.maxLength?Math.min(f,c.maxLength):f,h=a.length;if(h>g)throw SyntaxError(`Input length: ${h}, exceeds maximum allowed length: ${g}`);a=j[a]||a;let i=e.isWindows(b),{DOT_LITERAL:k,SLASH_LITERAL:l,ONE_CHAR:m,DOTS_SLASH:n,NO_DOT:o,NO_DOTS:p,NO_DOTS_SLASH:q,STAR:r,START_ANCHOR:s}=d.globChars(i),t=c.dot?p:o,u=c.dot?q:o,v=c.capture?"":"?:",w=!0===c.bash?".*?":r;c.capture&&(w=`(${w})`);let x=a=>!0===a.noglobstar?w:`(${v}(?:(?!${s}${a.dot?n:k}).)*?)`,y=a=>{switch(a){case"*":return`${t}${m}${w}`;case".*":return`${k}${m}${w}`;case"*.*":return`${t}${w}${k}${m}${w}`;case"*/*":return`${t}${w}${l}${m}${u}${w}`;case"**":return t+x(c);case"**/*":return`(?:${t}${x(c)}${l})?${u}${m}${w}`;case"**/*.*":return`(?:${t}${x(c)}${l})?${u}${w}${k}${m}${w}`;case"**/.*":return`(?:${t}${x(c)}${l})?${k}${m}${w}`;default:{let b=/^(.*?)\.(\w+)$/.exec(a);if(!b)return;let c=y(b[1]);if(!c)return;return c+k+b[2]}}},z=y(e.removePrefix(a,{negated:!1,prefix:""}));return z&&!0!==c.strictSlashes&&(z+=`${l}?`),z},a.exports=r},61892:a=>{"use strict";a.exports=function(a){return"number"==typeof a?a-a==0:"string"==typeof a&&""!==a.trim()&&(Number.isFinite?Number.isFinite(+a):isFinite(+a))}},62174:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0});let d=c(33873),e=c(34536);class f{constructor(a={}){this._options=a,this.basePath=this._getValue(this._options.basePath,void 0),this.concurrency=this._getValue(this._options.concurrency,1/0),this.deepFilter=this._getValue(this._options.deepFilter,null),this.entryFilter=this._getValue(this._options.entryFilter,null),this.errorFilter=this._getValue(this._options.errorFilter,null),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,d.sep),this.fsScandirSettings=new e.Settings({followSymbolicLinks:this._options.followSymbolicLinks,fs:this._options.fs,pathSegmentSeparator:this._options.pathSegmentSeparator,stats:this._options.stats,throwErrorOnBrokenSymbolicLink:this._options.throwErrorOnBrokenSymbolicLink})}_getValue(a,b){return null!=a?a:b}}b.default=f},62545:(a,b,c)=>{"use strict";let d=c(61892),e=(a,b,c)=>{var h,i,j;let k,l,n;if(!1===d(a))throw TypeError("toRegexRange: expected the first argument to be a number");if(void 0===b||a===b)return String(a);if(!1===d(b))throw TypeError("toRegexRange: expected the second argument to be a number.");let o={relaxZeros:!0,...c};"boolean"==typeof o.strictZeros&&(o.relaxZeros=!1===o.strictZeros);let p=a+":"+b+"="+String(o.relaxZeros)+String(o.shorthand)+String(o.capture)+String(o.wrap);if(e.cache.hasOwnProperty(p))return e.cache[p].result;let q=Math.min(a,b),r=Math.max(a,b);if(1===Math.abs(q-r)){let c=a+"|"+b;return o.capture?`(${c})`:!1===o.wrap?c:`(?:${c})`}let s=m(a)||m(b),t={min:a,max:b,a:q,b:r},u=[],v=[];return s&&(t.isPadded=s,t.maxLen=String(t.max).length),q<0&&(v=f(r<0?Math.abs(r):1,Math.abs(q),t,o),q=t.a=0),r>=0&&(u=f(q,r,t,o)),t.negatives=v,t.positives=u,k=g(h=v,i=u,"-",!1,j=o)||[],l=g(i,h,"",!1,j)||[],n=g(h,i,"-?",!0,j)||[],t.result=k.concat(n).concat(l).join("|"),!0===o.capture?t.result=`(${t.result})`:!1!==o.wrap&&u.length+v.length>1&&(t.result=`(?:${t.result})`),e.cache[p]=t,t.result};function f(a,b,c,d){let e,f=function(a,b){let c=1,d=1,e=j(a,1),f=new Set([b]);for(;a<=e&&e<=b;)f.add(e),c+=1,e=j(a,c);for(e=k(b+1,d)-1;a<e&&e<=b;)f.add(e),d+=1,e=k(b+1,d)-1;return(f=[...f]).sort(h),f}(a,b),g=[],i=a;for(let a=0;a<f.length;a++){let b=f[a],h=function(a,b,c){if(a===b)return{pattern:a,count:[],digits:0};let d=function(a,b){let c=[];for(let d=0;d<a.length;d++)c.push([a[d],b[d]]);return c}(a,b),e=d.length,f="",g=0;for(let a=0;a<e;a++){var h,i;let[b,c]=d[a];b===c?f+=b:"0"!==b||"9"!==c?f+=(h=b,i=c,`[${h}${i-h==1?"":"-"}${i}]`):g++}return g&&(f+=!0===c.shorthand?"\\d":"[0-9]"),{pattern:f,count:[g],digits:e}}(String(i),String(b),d),j="";if(!c.isPadded&&e&&e.pattern===h.pattern){e.count.length>1&&e.count.pop(),e.count.push(h.count[0]),e.string=e.pattern+l(e.count),i=b+1;continue}c.isPadded&&(j=function(a,b,c){if(!b.isPadded)return a;let d=Math.abs(b.maxLen-String(a).length),e=!1!==c.relaxZeros;switch(d){case 0:return"";case 1:return e?"0?":"0";case 2:return e?"0{0,2}":"00";default:return e?`0{0,${d}}`:`0{${d}}`}}(b,c,d)),h.string=j+h.pattern+l(h.count),g.push(h),i=b+1,e=h}return g}function g(a,b,c,d,e){let f=[];for(let e of a){let{string:a}=e;d||i(b,"string",a)||f.push(c+a),d&&i(b,"string",a)&&f.push(c+a)}return f}function h(a,b){return a>b?1:b>a?-1:0}function i(a,b,c){return a.some(a=>a[b]===c)}function j(a,b){return Number(String(a).slice(0,-b)+"9".repeat(b))}function k(a,b){return a-a%Math.pow(10,b)}function l(a){let[b=0,c=""]=a;return c||b>1?`{${b+(c?","+c:"")}}`:""}function m(a){return/^-?(0+)\d/.test(a)}e.cache={},e.clearCache=()=>e.cache={},a.exports=e},63742:(a,b,c)=>{"use strict";let d=c(38129),e=c(64363),f=c(97204),g=c(79732),h=c(83553),i=c(12940);async function j(a,b){l(a);let c=k(a,e.default,b),d=await Promise.all(c);return i.array.flatten(d)}function k(a,b,c){let e=[].concat(a),f=new h.default(c),g=d.generate(e,f),i=new b(f);return g.map(i.read,i)}function l(a){if(![].concat(a).every(a=>i.string.isString(a)&&!i.string.isEmpty(a)))throw TypeError("Patterns must be a string (non empty) or an array of strings")}!function(a){var b,c;function e(a,b){l(a);let c=k(a,g.default,b);return i.array.flatten(c)}function j(a,b){l(a);let c=k(a,f.default,b);return i.stream.merge(c)}a.glob=a,a.globSync=e,a.globStream=j,a.async=a,a.sync=e,a.stream=j,a.generateTasks=function(a,b){l(a);let c=[].concat(a),e=new h.default(b);return d.generate(c,e)},a.isDynamicPattern=function(a,b){l(a);let c=new h.default(b);return i.pattern.isDynamicPattern(a,c)},a.escapePath=function(a){return l(a),i.path.escape(a)},a.convertPathToPattern=function(a){return l(a),i.path.convertPathToPattern(a)},(b=a.posix||(a.posix={})).escapePath=function(a){return l(a),i.path.escapePosixPath(a)},b.convertPathToPattern=function(a){return l(a),i.path.convertPosixPathToPattern(a)},(c=a.win32||(a.win32={})).escapePath=function(a){return l(a),i.path.escapeWindowsPath(a)},c.convertPathToPattern=function(a){return l(a),i.path.convertWindowsPathToPattern(a)}}(j||(j={})),a.exports=j},64363:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0});let d=c(73285),e=c(98974);class f extends e.default{constructor(){super(...arguments),this._reader=new d.default(this._settings)}async read(a){let b=this._getRootDirectory(a),c=this._getReaderOptions(a);return(await this.api(b,a,c)).map(a=>c.transform(a))}api(a,b,c){return b.dynamic?this._reader.dynamic(a,c):this._reader.static(b.patterns,c)}}b.default=f},67551:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0});let d=c(7897);class e{constructor(a,b){this._root=a,this._settings=b,this._reader=new d.default(this._root,this._settings)}read(){return this._reader.read()}}b.default=e},68532:(a,b)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.joinPathSegments=void 0,b.joinPathSegments=function(a,b,c){return a.endsWith(c)?a+b:a+c+b}},71027:(a,b)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.joinPathSegments=b.replacePathSegmentSeparator=b.isAppliedFilter=b.isFatalError=void 0,b.isFatalError=function(a,b){return null===a.errorFilter||!a.errorFilter(b)},b.isAppliedFilter=function(a,b){return null===a||a(b)},b.replacePathSegmentSeparator=function(a,b){return a.split(/[/\\]/).join(b)},b.joinPathSegments=function(a,b,c){return""===a?b:a.endsWith(c)?a+b:a+c+b}},71384:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0});let d=c(27910),e=c(58928);class f{constructor(a,b){this._root=a,this._settings=b,this._reader=new e.default(this._root,this._settings),this._stream=new d.Readable({objectMode:!0,read:()=>{},destroy:()=>{this._reader.isDestroyed||this._reader.destroy()}})}read(){return this._reader.onError(a=>{this._stream.emit("error",a)}),this._reader.onEntry(a=>{this._stream.push(a)}),this._reader.onEnd(()=>{this._stream.push(null)}),this._reader.read(),this._stream}}b.default=f},73285:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0});let d=c(97603),e=c(53606),f=c(99177);class g extends e.default{constructor(){super(...arguments),this._walkAsync=d.walk,this._readerStream=new f.default(this._settings)}dynamic(a,b){return new Promise((c,d)=>{this._walkAsync(a,b,(a,b)=>{null===a?c(b):d(a)})})}async static(a,b){let c=[],d=this._readerStream.static(a,b);return new Promise((a,b)=>{d.once("error",b),d.on("data",a=>c.push(a)),d.once("end",()=>a(c))})}}b.default=g},73389:(a,b,c)=>{a.exports=function(a,b){let c,e,f,g=!0;function h(a){function e(){b&&b(a,c),b=null}g?d(e):e()}function i(a,b,d){c[a]=d,(0==--e||b)&&h(b)}Array.isArray(a)?(c=[],e=a.length):(f=Object.keys(a),c={},e=f.length),e?f?f.forEach(function(b){a[b](function(a,c){i(b,a,c)})}):a.forEach(function(a,b){a(function(a,c){i(b,a,c)})}):h(null),g=!1};let d=c(6313)},76166:(a,b,c)=>{"use strict";let d=c(33873),e="[^\\\\/]",f="[^/]",g="(?:\\/|$)",h="(?:^|\\/)",i=`\\.{1,2}${g}`,j=`(?!${h}${i})`,k=`(?!\\.{0,1}${g})`,l=`(?!${i})`,m=`${f}*?`,n={DOT_LITERAL:"\\.",PLUS_LITERAL:"\\+",QMARK_LITERAL:"\\?",SLASH_LITERAL:"\\/",ONE_CHAR:"(?=.)",QMARK:f,END_ANCHOR:g,DOTS_SLASH:i,NO_DOT:"(?!\\.)",NO_DOTS:j,NO_DOT_SLASH:k,NO_DOTS_SLASH:l,QMARK_NO_DOT:"[^.\\/]",STAR:m,START_ANCHOR:h},o={...n,SLASH_LITERAL:"[\\\\/]",QMARK:e,STAR:`${e}*?`,DOTS_SLASH:"\\.{1,2}(?:[\\\\/]|$)",NO_DOT:"(?!\\.)",NO_DOTS:"(?!(?:^|[\\\\/])\\.{1,2}(?:[\\\\/]|$))",NO_DOT_SLASH:"(?!\\.{0,1}(?:[\\\\/]|$))",NO_DOTS_SLASH:"(?!\\.{1,2}(?:[\\\\/]|$))",QMARK_NO_DOT:"[^.\\\\/]",START_ANCHOR:"(?:^|[\\\\/])",END_ANCHOR:"(?:[\\\\/]|$)"};a.exports={DEFAULT_MAX_EXTGLOB_RECURSION:0,MAX_LENGTH:65536,POSIX_REGEX_SOURCE:{__proto__:null,alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"},REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{__proto__:null,"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:d.sep,extglobChars:a=>({"!":{type:"negate",open:"(?:(?!(?:",close:`))${a.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}),globChars:a=>!0===a?o:n}},78729:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0});let d=c(12940);class e{constructor(a){this._settings=a}getFilter(){return a=>this._isNonFatalError(a)}_isNonFatalError(a){return d.errno.isEnoentCodeError(a)||this._settings.suppressErrors}}b.default=e},78799:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0});let d=c(12940);class e{constructor(a,b){this._settings=a,this._micromatchOptions=b,this.index=new Map}getFilter(a,b){let[c,e]=d.pattern.partitionAbsoluteAndRelative(b),f={positive:{all:d.pattern.convertPatternsToRe(a,this._micromatchOptions)},negative:{absolute:d.pattern.convertPatternsToRe(c,Object.assign(Object.assign({},this._micromatchOptions),{dot:!0})),relative:d.pattern.convertPatternsToRe(e,Object.assign(Object.assign({},this._micromatchOptions),{dot:!0}))}};return a=>this._filter(a,f)}_filter(a,b){let c=d.path.removeLeadingDotSegment(a.path);if(this._settings.unique&&this._isDuplicateEntry(c)||this._onlyFileFilter(a)||this._onlyDirectoryFilter(a))return!1;let e=this._isMatchToPatternsSet(c,b,a.dirent.isDirectory());return this._settings.unique&&e&&this._createIndexRecord(c),e}_isDuplicateEntry(a){return this.index.has(a)}_createIndexRecord(a){this.index.set(a,void 0)}_onlyFileFilter(a){return this._settings.onlyFiles&&!a.dirent.isFile()}_onlyDirectoryFilter(a){return this._settings.onlyDirectories&&!a.dirent.isDirectory()}_isMatchToPatternsSet(a,b,c){return!(!this._isMatchToPatterns(a,b.positive.all,c)||this._isMatchToPatterns(a,b.negative.relative,c)||this._isMatchToAbsoluteNegative(a,b.negative.absolute,c))}_isMatchToAbsoluteNegative(a,b,c){if(0===b.length)return!1;let e=d.path.makeAbsolute(this._settings.cwd,a);return this._isMatchToPatterns(e,b,c)}_isMatchToPatterns(a,b,c){if(0===b.length)return!1;let e=d.pattern.matchAny(a,b);return!e&&c?d.pattern.matchAny(a+"/",b):e}}b.default=e},79732:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0});let d=c(15762),e=c(98974);class f extends e.default{constructor(){super(...arguments),this._reader=new d.default(this._settings)}read(a){let b=this._getRootDirectory(a),c=this._getReaderOptions(a);return this.api(b,a,c).map(c.transform)}api(a,b,c){return b.dynamic?this._reader.dynamic(a,c):this._reader.static(b.patterns,c)}}b.default=f},80855:(a,b)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.isEmpty=b.isString=void 0,b.isString=function(a){return"string"==typeof a},b.isEmpty=function(a){return""===a}},81183:(a,b,c)=>{"use strict";let d=c(28354),e=c(54930),f=c(59203),g=c(17486),h=a=>""===a||"./"===a,i=a=>{let b=a.indexOf("{");return b>-1&&a.indexOf("}",b)>-1},j=(a,b,c)=>{b=[].concat(b),a=[].concat(a);let d=new Set,e=new Set,g=new Set,h=0,i=a=>{g.add(a.output),c&&c.onResult&&c.onResult(a)};for(let g=0;g<b.length;g++){let j=f(String(b[g]),{...c,onResult:i},!0),k=j.state.negated||j.state.negatedExtglob;for(let b of(k&&h++,a)){let a=j(b,!0);(k?!a.isMatch:a.isMatch)&&(k?d.add(a.output):(d.delete(a.output),e.add(a.output)))}}let j=(h===b.length?[...g]:[...e]).filter(a=>!d.has(a));if(c&&0===j.length){if(!0===c.failglob)throw Error(`No matches found for "${b.join(", ")}"`);if(!0===c.nonull||!0===c.nullglob)return c.unescape?b.map(a=>a.replace(/\\/g,"")):b}return j};j.match=j,j.matcher=(a,b)=>f(a,b),j.isMatch=(a,b,c)=>f(b,c)(a),j.any=j.isMatch,j.not=(a,b,c={})=>{b=[].concat(b).map(String);let d=new Set,e=[],f=new Set(j(a,b,{...c,onResult:a=>{c.onResult&&c.onResult(a),e.push(a.output)}}));for(let a of e)f.has(a)||d.add(a);return[...d]},j.contains=(a,b,c)=>{if("string"!=typeof a)throw TypeError(`Expected a string: "${d.inspect(a)}"`);if(Array.isArray(b))return b.some(b=>j.contains(a,b,c));if("string"==typeof b){if(h(a)||h(b))return!1;if(a.includes(b)||a.startsWith("./")&&a.slice(2).includes(b))return!0}return j.isMatch(a,b,{...c,contains:!0})},j.matchKeys=(a,b,c)=>{if(!g.isObject(a))throw TypeError("Expected the first argument to be an object");let d=j(Object.keys(a),b,c),e={};for(let b of d)e[b]=a[b];return e},j.some=(a,b,c)=>{let d=[].concat(a);for(let a of[].concat(b)){let b=f(String(a),c);if(d.some(a=>b(a)))return!0}return!1},j.every=(a,b,c)=>{let d=[].concat(a);for(let a of[].concat(b)){let b=f(String(a),c);if(!d.every(a=>b(a)))return!1}return!0},j.all=(a,b,c)=>{if("string"!=typeof a)throw TypeError(`Expected a string: "${d.inspect(a)}"`);return[].concat(b).every(b=>f(b,c)(a))},j.capture=(a,b,c)=>{let d=g.isWindows(c),e=f.makeRe(String(a),{...c,capture:!0}).exec(d?g.toPosixSlashes(b):b);if(e)return e.slice(1).map(a=>void 0===a?"":a)},j.makeRe=(...a)=>f.makeRe(...a),j.scan=(...a)=>f.scan(...a),j.parse=(a,b)=>{let c=[];for(let d of[].concat(a||[]))for(let a of e(String(d),b))c.push(f.parse(a,b));return c},j.braces=(a,b)=>{if("string"!=typeof a)throw TypeError("Expected a string");return b&&!0===b.nobrace||!i(a)?[a]:e(a,b)},j.braceExpand=(a,b)=>{if("string"!=typeof a)throw TypeError("Expected a string");return j.braces(a,{...b,expand:!0})},j.hasBraces=i,a.exports=j},81194:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.readdir=b.readdirWithFileTypes=b.read=void 0;let d=c(83104),e=c(44093),f=c(56638),g=c(68532);function h(a,b){return b.fs.readdirSync(a,{withFileTypes:!0}).map(c=>{let d={dirent:c,name:c.name,path:g.joinPathSegments(a,c.name,b.pathSegmentSeparator)};if(d.dirent.isSymbolicLink()&&b.followSymbolicLinks)try{let a=b.fs.statSync(d.path);d.dirent=f.fs.createDirentFromStats(d.name,a)}catch(a){if(b.throwErrorOnBrokenSymbolicLink)throw a}return d})}function i(a,b){return b.fs.readdirSync(a).map(c=>{let e=g.joinPathSegments(a,c,b.pathSegmentSeparator),h=d.statSync(e,b.fsStatSettings),i={name:c,path:e,dirent:f.fs.createDirentFromStats(c,h)};return b.stats&&(i.stats=h),i})}b.read=function(a,b){return!b.stats&&e.IS_SUPPORT_READDIR_WITH_FILE_TYPES?h(a,b):i(a,b)},b.readdirWithFileTypes=h,b.readdir=i},83104:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.statSync=b.stat=b.Settings=void 0;let d=c(10309),e=c(17778),f=c(54323);function g(a={}){return a instanceof f.default?a:new f.default(a)}b.Settings=f.default,b.stat=function(a,b,c){"function"==typeof b?d.read(a,g(),b):d.read(a,g(b),c)},b.statSync=function(a,b){let c=g(b);return e.read(a,c)}},83478:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.createFileSystemAdapter=b.FILE_SYSTEM_ADAPTER=void 0;let d=c(29021);b.FILE_SYSTEM_ADAPTER={lstat:d.lstat,stat:d.stat,lstatSync:d.lstatSync,statSync:d.statSync,readdir:d.readdir,readdirSync:d.readdirSync},b.createFileSystemAdapter=function(a){return void 0===a?b.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},b.FILE_SYSTEM_ADAPTER),a)}},83553:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;let d=c(29021),e=Math.max(c(21820).cpus().length,1);b.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:d.lstat,lstatSync:d.lstatSync,stat:d.stat,statSync:d.statSync,readdir:d.readdir,readdirSync:d.readdirSync};class f{constructor(a={}){this._options=a,this.absolute=this._getValue(this._options.absolute,!1),this.baseNameMatch=this._getValue(this._options.baseNameMatch,!1),this.braceExpansion=this._getValue(this._options.braceExpansion,!0),this.caseSensitiveMatch=this._getValue(this._options.caseSensitiveMatch,!0),this.concurrency=this._getValue(this._options.concurrency,e),this.cwd=this._getValue(this._options.cwd,process.cwd()),this.deep=this._getValue(this._options.deep,1/0),this.dot=this._getValue(this._options.dot,!1),this.extglob=this._getValue(this._options.extglob,!0),this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!0),this.fs=this._getFileSystemMethods(this._options.fs),this.globstar=this._getValue(this._options.globstar,!0),this.ignore=this._getValue(this._options.ignore,[]),this.markDirectories=this._getValue(this._options.markDirectories,!1),this.objectMode=this._getValue(this._options.objectMode,!1),this.onlyDirectories=this._getValue(this._options.onlyDirectories,!1),this.onlyFiles=this._getValue(this._options.onlyFiles,!0),this.stats=this._getValue(this._options.stats,!1),this.suppressErrors=this._getValue(this._options.suppressErrors,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!1),this.unique=this._getValue(this._options.unique,!0),this.onlyDirectories&&(this.onlyFiles=!1),this.stats&&(this.objectMode=!0),this.ignore=[].concat(this.ignore)}_getValue(a,b){return void 0===a?b:a}_getFileSystemMethods(a={}){return Object.assign(Object.assign({},b.DEFAULT_FILE_SYSTEM_ADAPTER),a)}}b.default=f},83885:(a,b)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.createDirentFromStats=void 0;class c{constructor(a,b){this.name=a,this.isBlockDevice=b.isBlockDevice.bind(b),this.isCharacterDevice=b.isCharacterDevice.bind(b),this.isDirectory=b.isDirectory.bind(b),this.isFIFO=b.isFIFO.bind(b),this.isFile=b.isFile.bind(b),this.isSocket=b.isSocket.bind(b),this.isSymbolicLink=b.isSymbolicLink.bind(b)}}b.createDirentFromStats=function(a,b){return new c(a,b)}},84279:(a,b)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.createDirentFromStats=void 0;class c{constructor(a,b){this.name=a,this.isBlockDevice=b.isBlockDevice.bind(b),this.isCharacterDevice=b.isCharacterDevice.bind(b),this.isDirectory=b.isDirectory.bind(b),this.isFIFO=b.isFIFO.bind(b),this.isFile=b.isFile.bind(b),this.isSocket=b.isSocket.bind(b),this.isSymbolicLink=b.isSymbolicLink.bind(b)}}b.createDirentFromStats=function(a,b){return new c(a,b)}},86498:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0});let d=c(58928);class e{constructor(a,b){this._root=a,this._settings=b,this._reader=new d.default(this._root,this._settings),this._storage=[]}read(a){this._reader.onError(b=>{a(b)}),this._reader.onEntry(a=>{this._storage.push(a)}),this._reader.onEnd(()=>{a(null,this._storage)}),this._reader.read()}}b.default=e},88141:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.readdir=b.readdirWithFileTypes=b.read=void 0;let d=c(83104),e=c(73389),f=c(44093),g=c(56638),h=c(68532);function i(a,b,c){b.fs.readdir(a,{withFileTypes:!0},(d,f)=>{if(null!==d)return void c(d);let i=f.map(c=>({dirent:c,name:c.name,path:h.joinPathSegments(a,c.name,b.pathSegmentSeparator)}));b.followSymbolicLinks?e(i.map(a=>{var c,d;return c=a,d=b,a=>{c.dirent.isSymbolicLink()?d.fs.stat(c.path,(b,e)=>{null!==b?d.throwErrorOnBrokenSymbolicLink?a(b):a(null,c):(c.dirent=g.fs.createDirentFromStats(c.name,e),a(null,c))}):a(null,c)}}),(a,b)=>{null!==a?c(a):c(null,b)}):c(null,i)})}function j(a,b,c){b.fs.readdir(a,(f,i)=>{null!==f?c(f):e(i.map(c=>{let e=h.joinPathSegments(a,c,b.pathSegmentSeparator);return a=>{d.stat(e,b.fsStatSettings,(d,f)=>{if(null!==d)return void a(d);let h={name:c,path:e,dirent:g.fs.createDirentFromStats(c,f)};b.stats&&(h.stats=f),a(null,h)})}}),(a,b)=>{null!==a?c(a):c(null,b)})})}b.read=function(a,b,c){!b.stats&&f.IS_SUPPORT_READDIR_WITH_FILE_TYPES?i(a,b,c):j(a,b,c)},b.readdirWithFileTypes=i;b.readdir=j},93761:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0});let d=c(12940),e=c(14510);class f{constructor(a,b){this._settings=a,this._micromatchOptions=b}getFilter(a,b,c){let d=this._getMatcher(b),e=this._getNegativePatternsRe(c);return b=>this._filter(a,b,d,e)}_getMatcher(a){return new e.default(a,this._settings,this._micromatchOptions)}_getNegativePatternsRe(a){let b=a.filter(d.pattern.isAffectDepthOfReadingPattern);return d.pattern.convertPatternsToRe(b,this._micromatchOptions)}_filter(a,b,c,e){if(this._isSkippedByDeep(a,b.path)||this._isSkippedSymbolicLink(b))return!1;let f=d.path.removeLeadingDotSegment(b.path);return!this._isSkippedByPositivePatterns(f,c)&&this._isSkippedByNegativePatterns(f,e)}_isSkippedByDeep(a,b){return this._settings.deep!==1/0&&this._getEntryLevel(a,b)>=this._settings.deep}_getEntryLevel(a,b){let c=b.split("/").length;return""===a?c:c-a.split("/").length}_isSkippedSymbolicLink(a){return!this._settings.followSymbolicLinks&&a.dirent.isSymbolicLink()}_isSkippedByPositivePatterns(a,b){return!this._settings.baseNameMatch&&!b.match(a)}_isSkippedByNegativePatterns(a,b){return!d.pattern.matchAny(a,b)}}b.default=f},95936:(a,b,c)=>{"use strict";let d=c(49979),e=c(52679);a.exports=(a,b={})=>{let c=(a,f={})=>{let g=e.isInvalidBrace(f),h=!0===a.invalid&&!0===b.escapeInvalid,i=!0===g||!0===h,j=!0===b.escapeInvalid?"\\":"",k="";if(!0===a.isOpen)return j+a.value;if(!0===a.isClose)return console.log("node.isClose",j,a.value),j+a.value;if("open"===a.type)return i?j+a.value:"(";if("close"===a.type)return i?j+a.value:")";if("comma"===a.type)return"comma"===a.prev.type?"":i?a.value:"|";if(a.value)return a.value;if(a.nodes&&a.ranges>0){let c=e.reduce(a.nodes),f=d(...c,{...b,wrap:!1,toRegex:!0,strictZeros:!0});if(0!==f.length)return c.length>1&&f.length>1?`(${f})`:f}if(a.nodes)for(let b of a.nodes)k+=c(b,a);return k};return c(a)}},96720:(a,b,c)=>{"use strict";let d=c(49979),e=c(49291),f=c(52679),g=(a="",b="",c=!1)=>{let d=[];if(a=[].concat(a),!(b=[].concat(b)).length)return a;if(!a.length)return c?f.flatten(b).map(a=>`{${a}}`):b;for(let e of a)if(Array.isArray(e))for(let a of e)d.push(g(a,b,c));else for(let a of b)!0===c&&"string"==typeof a&&(a=`{${a}}`),d.push(Array.isArray(a)?g(e,a,c):e+a);return f.flatten(d)};a.exports=(a,b={})=>{let c=void 0===b.rangeLimit?1e3:b.rangeLimit,h=(a,i={})=>{a.queue=[];let j=i,k=i.queue;for(;"brace"!==j.type&&"root"!==j.type&&j.parent;)k=(j=j.parent).queue;if(a.invalid||a.dollar)return void k.push(g(k.pop(),e(a,b)));if("brace"===a.type&&!0!==a.invalid&&2===a.nodes.length)return void k.push(g(k.pop(),["{}"]));if(a.nodes&&a.ranges>0){let h=f.reduce(a.nodes);if(f.exceedsLimit(...h,b.step,c))throw RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let i=d(...h,b);0===i.length&&(i=e(a,b)),k.push(g(k.pop(),i)),a.nodes=[];return}let l=f.encloseBrace(a),m=a.queue,n=a;for(;"brace"!==n.type&&"root"!==n.type&&n.parent;)m=(n=n.parent).queue;for(let b=0;b<a.nodes.length;b++){let c=a.nodes[b];if("comma"===c.type&&"brace"===a.type){1===b&&m.push(""),m.push("");continue}if("close"===c.type){k.push(g(k.pop(),m,l));continue}if(c.value&&"open"!==c.type){m.push(g(m.pop(),c.value));continue}c.nodes&&h(c,a)}return m};return f.flatten(h(a))}},97199:(a,b,c)=>{var d=c(138),e={"{":"}","(":")","[":"]"},f=function(a){if("!"===a[0])return!0;for(var b=0,c=-2,d=-2,f=-2,g=-2,h=-2;b<a.length;){if("*"===a[b]||"?"===a[b+1]&&/[\].+)]/.test(a[b])||-1!==d&&"["===a[b]&&"]"!==a[b+1]&&(d<b&&(d=a.indexOf("]",b)),d>b)&&(-1===h||h>d||-1===(h=a.indexOf("\\",b))||h>d)||-1!==f&&"{"===a[b]&&"}"!==a[b+1]&&(f=a.indexOf("}",b))>b&&(-1===(h=a.indexOf("\\",b))||h>f)||-1!==g&&"("===a[b]&&"?"===a[b+1]&&/[:!=]/.test(a[b+2])&&")"!==a[b+3]&&(g=a.indexOf(")",b))>b&&(-1===(h=a.indexOf("\\",b))||h>g)||-1!==c&&"("===a[b]&&"|"!==a[b+1]&&(c<b&&(c=a.indexOf("|",b)),-1!==c&&")"!==a[c+1]&&(g=a.indexOf(")",c))>c)&&(-1===(h=a.indexOf("\\",c))||h>g))return!0;if("\\"===a[b]){var i=a[b+1];b+=2;var j=e[i];if(j){var k=a.indexOf(j,b);-1!==k&&(b=k+1)}if("!"===a[b])return!0}else b++}return!1},g=function(a){if("!"===a[0])return!0;for(var b=0;b<a.length;){if(/[*?{}()[\]]/.test(a[b]))return!0;if("\\"===a[b]){var c=a[b+1];b+=2;var d=e[c];if(d){var f=a.indexOf(d,b);-1!==f&&(b=f+1)}if("!"===a[b])return!0}else b++}return!1};a.exports=function(a,b){if("string"!=typeof a||""===a)return!1;if(d(a))return!0;var c=f;return b&&!1===b.strict&&(c=g),c(a)}},97204:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0});let d=c(27910),e=c(99177),f=c(98974);class g extends f.default{constructor(){super(...arguments),this._reader=new e.default(this._settings)}read(a){let b=this._getRootDirectory(a),c=this._getReaderOptions(a),e=this.api(b,a,c),f=new d.Readable({objectMode:!0,read:()=>{}});return e.once("error",a=>f.emit("error",a)).on("data",a=>f.emit("data",c.transform(a))).once("end",()=>f.emit("end")),f.once("close",()=>e.destroy()),f}api(a,b,c){return b.dynamic?this._reader.dynamic(a,c):this._reader.static(b.patterns,c)}}b.default=g},97603:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.Settings=b.walkStream=b.walkSync=b.walk=void 0;let d=c(86498),e=c(71384),f=c(67551),g=c(62174);function h(a={}){return a instanceof g.default?a:new g.default(a)}b.Settings=g.default,b.walk=function(a,b,c){"function"==typeof b?new d.default(a,h()).read(b):new d.default(a,h(b)).read(c)},b.walkSync=function(a,b){let c=h(b);return new f.default(a,c).read()},b.walkStream=function(a,b){let c=h(b);return new e.default(a,c).read()}},98974:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0});let d=c(33873),e=c(93761),f=c(78799),g=c(78729),h=c(59468);class i{constructor(a){this._settings=a,this.errorFilter=new g.default(this._settings),this.entryFilter=new f.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new e.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new h.default(this._settings)}_getRootDirectory(a){return d.resolve(this._settings.cwd,a.base)}_getReaderOptions(a){let b="."===a.base?"":a.base;return{basePath:b,pathSegmentSeparator:"/",concurrency:this._settings.concurrency,deepFilter:this.deepFilter.getFilter(b,a.positive,a.negative),entryFilter:this.entryFilter.getFilter(a.positive,a.negative),errorFilter:this.errorFilter.getFilter(),followSymbolicLinks:this._settings.followSymbolicLinks,fs:this._settings.fs,stats:this._settings.stats,throwErrorOnBrokenSymbolicLink:this._settings.throwErrorOnBrokenSymbolicLink,transform:this.entryTransformer.getTransformer()}}_getMicromatchOptions(){return{dot:this._settings.dot,matchBase:this._settings.baseNameMatch,nobrace:!this._settings.braceExpansion,nocase:!this._settings.caseSensitiveMatch,noext:!this._settings.extglob,noglobstar:!this._settings.globstar,posix:!0,strictSlashes:!1}}}b.default=i},99177:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0});let d=c(27910),e=c(83104),f=c(97603),g=c(53606);class h extends g.default{constructor(){super(...arguments),this._walkStream=f.walkStream,this._stat=e.stat}dynamic(a,b){return this._walkStream(a,b)}static(a,b){let c=a.map(this._getFullEntryPath,this),e=new d.PassThrough({objectMode:!0});e._write=(d,f,g)=>this._getEntry(c[d],a[d],b).then(a=>{null!==a&&b.entryFilter(a)&&e.push(a),d===c.length-1&&e.end(),g()}).catch(g);for(let a=0;a<c.length;a++)e.write(a);return e}_getEntry(a,b,c){return this._getStat(a).then(a=>this._makeEntry(a,b)).catch(a=>{if(c.errorFilter(a))return null;throw a})}_getStat(a){return new Promise((b,c)=>{this._stat(a,this._fsStatSettings,(a,d)=>null===a?b(d):c(a))})}}b.default=h}};
@@ -6,4 +6,4 @@
6
6
  `).slice(2).join(`
7
7
  `))}},K=class extends Error{constructor(a,b){super(a),this.name="ListenerLeakError",this.stack=b}},L=class extends Error{constructor(a,b){super(a),this.name="ListenerRefusalError",this.stack=b}},M=0,N=class{constructor(a){this.value=a,this.id=M++}},O,P=class{constructor(a){this._size=0,this._options=a,this._leakageMon=this._options?.leakWarningThreshold?new D(a?.onListenerError??l,this._options?.leakWarningThreshold??-1):void 0,this._perfMon=this._options?._profName?new C(this._options._profName):void 0,this._deliveryQueue=this._options?.deliveryQueue}dispose(){this._disposed||(this._disposed=!0,this._deliveryQueue?.current===this&&this._deliveryQueue.reset(),this._listeners&&(this._listeners=void 0,this._size=0),this._options?.onDidRemoveLastListener?.(),this._leakageMon?.dispose())}get event(){return this._event??=(a,b,c)=>{if(this._leakageMon&&this._size>this._leakageMon.threshold**2){let a=`[${this._leakageMon.name}] REFUSES to accept new listeners because it exceeded its threshold by far (${this._size} vs ${this._leakageMon.threshold})`;console.warn(a);let b=this._leakageMon.getMostFrequentStack()??["UNKNOWN stack",-1],c=new L(`${a}. HINT: Stack shows most frequent listener (${b[1]}-times)`,b[0]);return(this._options?.onListenerError||l)(c),x.None}if(this._disposed)return x.None;b&&(a=a.bind(b));let d=new N(a),e;this._leakageMon&&this._size>=Math.ceil(.2*this._leakageMon.threshold)&&(d.stack=J.create(),e=this._leakageMon.check(d.stack,this._size+1)),this._listeners?this._listeners instanceof N?(this._deliveryQueue??=new Q,this._listeners=[this._listeners,d]):this._listeners.push(d):(this._options?.onWillAddFirstListener?.(this),this._listeners=d,this._options?.onDidAddFirstListener?.(this)),this._size++;let f=v(()=>{I?.unregister(f),e?.(),this._removeListener(d)});if(c instanceof w?c.add(f):Array.isArray(c)&&c.push(f),I){let a=Error().stack.split(`
8
8
  `).slice(2,3).join(`
9
- `).trim(),b=/(file:|vscode-file:\/\/vscode-app)?(\/[^:]*:\d+:\d+)/.exec(a);I.register(f,b?.[2]??a,f)}return f},this._event}_removeListener(a){if(this._options?.onWillRemoveListener?.(this),!this._listeners)return;if(1===this._size){this._listeners=void 0,this._options?.onDidRemoveLastListener?.(this),this._size=0;return}let b=this._listeners,c=b.indexOf(a);if(-1===c)throw console.log("disposed?",this._disposed),console.log("size?",this._size),console.log("arr?",JSON.stringify(this._listeners)),Error("Attempted to dispose unknown listener");this._size--,b[c]=void 0;let d=this._deliveryQueue.current===this;if(2*this._size<=b.length){let a=0;for(let c=0;c<b.length;c++)b[c]?b[a++]=b[c]:d&&(this._deliveryQueue.end--,a<this._deliveryQueue.i&&this._deliveryQueue.i--);b.length=a}}_deliver(a,b){if(!a)return;let c=this._options?.onListenerError||l;if(!c)return void a.value(b);try{a.value(b)}catch(a){c(a)}}_deliverQueue(a){let b=a.current._listeners;for(;a.i<a.end;)this._deliver(b[a.i++],a.value);a.reset()}fire(a){if(this._deliveryQueue?.current&&(this._deliverQueue(this._deliveryQueue),this._perfMon?.stop()),this._perfMon?.start(this._size),this._listeners)if(this._listeners instanceof N)this._deliver(this._listeners,a);else{let b=this._deliveryQueue;b.enqueue(this,a,this._listeners.length),this._deliverQueue(b)}this._perfMon?.stop()}hasListeners(){return this._size>0}},Q=class{constructor(){this.i=-1,this.end=0}enqueue(a,b,c){this.i=0,this.end=c,this.current=a,this.value=b}reset(){this.i=this.end,this.current=void 0,this.value=void 0}},R=Object.freeze(function(a,b){let c=setTimeout(a.bind(b),0);return{dispose(){clearTimeout(c)}}});(S=O||={}).isCancellationToken=function(a){return a===S.None||a===S.Cancelled||a instanceof V||!!a&&"object"==typeof a&&"boolean"==typeof a.isCancellationRequested&&"function"==typeof a.onCancellationRequested},S.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:H.None}),S.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:R});var S,T,U,V=class{constructor(){this._isCancelled=!1,this._emitter=null}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?R:(this._emitter||(this._emitter=new P),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}},W=!1,X="en",Y=globalThis;"u">typeof Y.vscode&&"u">typeof Y.vscode.process?U=Y.vscode.process:"u">typeof process&&"string"==typeof process?.versions?.node&&(U=process);var Z="string"==typeof U?.versions?.electron&&U?.type==="renderer";if("object"==typeof U){U.platform,U.platform,"linux"===U.platform&&U.env.SNAP&&U.env.SNAP_REVISION,U.env.CI||U.env.BUILD_ARTIFACTSTAGINGDIRECTORY,X="en";let a=U.env.VSCODE_NLS_CONFIG;if(a)try{let b=JSON.parse(a);b.userLocale,b.osLocale,X=b.resolvedLanguage||"en",b.languagePack?.translationsConfigFile}catch{}}else"object"!=typeof navigator||Z?console.error("Unable to resolve platform."):((T=navigator.userAgent).indexOf("Windows"),T.indexOf("Macintosh"),(T.indexOf("Macintosh")>=0||T.indexOf("iPad")>=0||T.indexOf("iPhone")>=0)&&navigator.maxTouchPoints&&navigator.maxTouchPoints,T.indexOf("Linux"),T?.indexOf("Mobi"),W=!0,X=globalThis._VSCODE_NLS_LANGUAGE||"en",navigator.language.toLowerCase());W&&"function"==typeof Y.importScripts&&Y.origin;var $,_=T,aa=X;(d=$||={}).value=function(){return aa},d.isDefaultVariant=function(){return 2===aa.length?"en"===aa:aa.length>=3&&"e"===aa[0]&&"n"===aa[1]&&"-"===aa[2]},d.isDefault=function(){return"en"===aa};var ab="function"==typeof Y.postMessage&&!Y.importScripts,ac=(()=>{if(ab){let a=[];Y.addEventListener("message",b=>{if(b.data&&b.data.vscodeScheduleAsyncWork)for(let c=0,d=a.length;c<d;c++){let d=a[c];if(d.id===b.data.vscodeScheduleAsyncWork){a.splice(c,1),d.callback();return}}});let b=0;return c=>{let d=++b;a.push({id:d,callback:c}),Y.postMessage({vscodeScheduleAsyncWork:d},"*")}}return a=>setTimeout(a)})(),ad=!!(_&&_.indexOf("Chrome")>=0);function ae(a,b=0,c){let d=setTimeout(()=>{a(),c&&e.dispose()},b),e=v(()=>{clearTimeout(d),c?.deleteAndLeak(e)});return c?.add(e),e}_&&_.indexOf("Firefox"),!ad&&_&&_.indexOf("Safari"),_&&_.indexOf("Edg/"),_&&_.indexOf("Android"),Symbol("MicrotaskDelay"),(e=f||={}).settled=async function(a){let b,c=await Promise.all(a.map(a=>a.then(a=>a,a=>{b||(b=a)})));if("u">typeof b)throw b;return c},e.withAsyncBody=function(a){return new Promise(async(b,c)=>{try{await a(b,c)}catch(a){c(a)}})};var af=class a{static fromArray(b){return new a(a=>{a.emitMany(b)})}static fromPromise(b){return new a(async a=>{a.emitMany(await b)})}static fromPromises(b){return new a(async a=>{await Promise.all(b.map(async b=>a.emitOne(await b)))})}static merge(b){return new a(async a=>{await Promise.all(b.map(async b=>{for await(let c of b)a.emitOne(c)}))})}constructor(a,b){this._state=0,this._results=[],this._error=null,this._onReturn=b,this._onStateChanged=new P,queueMicrotask(async()=>{let b={emitOne:a=>this.emitOne(a),emitMany:a=>this.emitMany(a),reject:a=>this.reject(a)};try{await Promise.resolve(a(b)),this.resolve()}catch(a){this.reject(a)}finally{b.emitOne=void 0,b.emitMany=void 0,b.reject=void 0}})}[Symbol.asyncIterator](){let a=0;return{next:async()=>{for(;;){if(2===this._state)throw this._error;if(a<this._results.length)return{done:!1,value:this._results[a++]};if(1===this._state)return{done:!0,value:void 0};await H.toPromise(this._onStateChanged.event)}},return:async()=>(this._onReturn?.(),{done:!0,value:void 0})}}static map(b,c){return new a(async a=>{for await(let d of b)a.emitOne(c(d))})}map(b){return a.map(this,b)}static filter(b,c){return new a(async a=>{for await(let d of b)c(d)&&a.emitOne(d)})}filter(b){return a.filter(this,b)}static coalesce(b){return a.filter(b,a=>!!a)}coalesce(){return a.coalesce(this)}static async toPromise(a){let b=[];for await(let c of a)b.push(c);return b}toPromise(){return a.toPromise(this)}emitOne(a){0===this._state&&(this._results.push(a),this._onStateChanged.fire())}emitMany(a){0===this._state&&(this._results=this._results.concat(a),this._onStateChanged.fire())}resolve(){0===this._state&&(this._state=1,this._onStateChanged.fire())}reject(a){0===this._state&&(this._state=2,this._error=a,this._onStateChanged.fire())}};af.EMPTY=af.fromArray([]);var ag=class extends x{constructor(a){super(),this._terminal=a,this._linesCacheTimeout=this._register(new y),this._linesCacheDisposables=this._register(new y),this._register(v(()=>this._destroyLinesCache()))}initLinesCache(){this._linesCache||(this._linesCache=Array(this._terminal.buffer.active.length),this._linesCacheDisposables.value=u(this._terminal.onLineFeed(()=>this._destroyLinesCache()),this._terminal.onCursorMove(()=>this._destroyLinesCache()),this._terminal.onResize(()=>this._destroyLinesCache()))),this._linesCacheTimeout.value=ae(()=>this._destroyLinesCache(),15e3)}_destroyLinesCache(){this._linesCache=void 0,this._linesCacheDisposables.clear(),this._linesCacheTimeout.clear()}getLineFromCache(a){return this._linesCache?.[a]}setLineInCache(a,b){this._linesCache&&(this._linesCache[a]=b)}translateBufferLineToStringWithWrap(a,b){let c=[],d=[0],e=this._terminal.buffer.active.getLine(a);for(;e;){let f=this._terminal.buffer.active.getLine(a+1),g=!!f&&f.isWrapped,h=e.translateToString(!g&&b);if(g&&f){let a=e.getCell(e.length-1);a&&0===a.getCode()&&1===a.getWidth()&&f.getCell(0)?.getWidth()===2&&(h=h.slice(0,-1))}if(c.push(h),g)d.push(d[d.length-1]+h.length);else break;a++,e=f}return[c.join(""),d]}},ah=class{get cachedSearchTerm(){return this._cachedSearchTerm}set cachedSearchTerm(a){this._cachedSearchTerm=a}get lastSearchOptions(){return this._lastSearchOptions}set lastSearchOptions(a){this._lastSearchOptions=a}isValidSearchTerm(a){return!!(a&&a.length>0)}didOptionsChange(a){return!this._lastSearchOptions||!!a&&(this._lastSearchOptions.caseSensitive!==a.caseSensitive||this._lastSearchOptions.regex!==a.regex||this._lastSearchOptions.wholeWord!==a.wholeWord)}shouldUpdateHighlighting(a,b){return!!b?.decorations&&(void 0===this._cachedSearchTerm||a!==this._cachedSearchTerm||this.didOptionsChange(b))}clearCachedTerm(){this._cachedSearchTerm=void 0}reset(){this._cachedSearchTerm=void 0,this._lastSearchOptions=void 0}},ai=class{constructor(a,b){this._terminal=a,this._lineCache=b}find(a,b,c,d){if(!a||0===a.length)return void this._terminal.clearSelection();if(c>this._terminal.cols)throw Error(`Invalid col: ${c} to search in terminal of ${this._terminal.cols} cols`);this._lineCache.initLinesCache();let e={startRow:b,startCol:c},f=this._findInLine(a,e,d);if(!f)for(let c=b+1;c<this._terminal.buffer.active.baseY+this._terminal.rows&&(e.startRow=c,e.startCol=0,!(f=this._findInLine(a,e,d)));c++);return f}findNextWithSelection(a,b,c){if(!a||0===a.length)return void this._terminal.clearSelection();let d=this._terminal.getSelectionPosition();this._terminal.clearSelection();let e=0,f=0;d&&(c===a?(e=d.end.x,f=d.end.y):(e=d.start.x,f=d.start.y)),this._lineCache.initLinesCache();let g={startRow:f,startCol:e},h=this._findInLine(a,g,b);if(!h)for(let c=f+1;c<this._terminal.buffer.active.baseY+this._terminal.rows&&(g.startRow=c,g.startCol=0,!(h=this._findInLine(a,g,b)));c++);if(!h&&0!==f)for(let c=0;c<f&&(g.startRow=c,g.startCol=0,!(h=this._findInLine(a,g,b)));c++);return!h&&d&&(g.startRow=d.start.y,g.startCol=0,h=this._findInLine(a,g,b)),h}findPreviousWithSelection(a,b,c){if(!a||0===a.length)return void this._terminal.clearSelection();let d=this._terminal.getSelectionPosition();this._terminal.clearSelection();let e=this._terminal.buffer.active.baseY+this._terminal.rows-1,f=this._terminal.cols;this._lineCache.initLinesCache();let g={startRow:e,startCol:f},h;if(d&&(g.startRow=e=d.start.y,g.startCol=f=d.start.x,c!==a&&((h=this._findInLine(a,g,b,!1))||(g.startRow=e=d.end.y,g.startCol=f=d.end.x))),h||(h=this._findInLine(a,g,b,!0)),!h){g.startCol=Math.max(g.startCol,this._terminal.cols);for(let c=e-1;c>=0&&(g.startRow=c,!(h=this._findInLine(a,g,b,!0)));c--);}if(!h&&e!==this._terminal.buffer.active.baseY+this._terminal.rows-1)for(let c=this._terminal.buffer.active.baseY+this._terminal.rows-1;c>=e&&(g.startRow=c,!(h=this._findInLine(a,g,b,!0)));c--);return h}_isWholeWord(a,b,c){return(0===a||" ~!@#$%^&*()+`-=[]{}|\\;:\"',./<>?".includes(b[a-1]))&&(a+c.length===b.length||" ~!@#$%^&*()+`-=[]{}|\\;:\"',./<>?".includes(b[a+c.length]))}_findInLine(a,b,c={},d=!1){let e=b.startRow,f=b.startCol;if(this._terminal.buffer.active.getLine(e)?.isWrapped){if(d){b.startCol+=this._terminal.cols;return}return b.startRow--,b.startCol+=this._terminal.cols,this._findInLine(a,b,c)}let g=this._lineCache.getLineFromCache(e);g||(g=this._lineCache.translateBufferLineToStringWithWrap(e,!0),this._lineCache.setLineInCache(e,g));let[h,i]=g,j=this._bufferColsToStringOffset(e,f),k=a,l=h;c.regex||(k=c.caseSensitive?a:a.toLowerCase(),l=c.caseSensitive?h:h.toLowerCase());let m=-1;if(c.regex){let b=RegExp(k,c.caseSensitive?"g":"gi"),e;if(d)for(;e=b.exec(l.slice(0,j));)m=b.lastIndex-e[0].length,a=e[0],b.lastIndex-=a.length-1;else(e=b.exec(l.slice(j)))&&e[0].length>0&&(m=j+(b.lastIndex-e[0].length),a=e[0])}else d?j-k.length>=0&&(m=l.lastIndexOf(k,j-k.length)):m=l.indexOf(k,j);if(m>=0){if(c.wholeWord&&!this._isWholeWord(m,l,a))return;let b=0;for(;b<i.length-1&&m>=i[b+1];)b++;let d=b;for(;d<i.length-1&&m+a.length>=i[d+1];)d++;let f=m-i[b],g=m+a.length-i[d],h=this._stringLengthToBufferSize(e+b,f),j=this._stringLengthToBufferSize(e+d,g)-h+this._terminal.cols*(d-b);return{term:a,col:h,row:e+b,size:j}}}_stringLengthToBufferSize(a,b){let c=this._terminal.buffer.active.getLine(a);if(!c)return 0;for(let a=0;a<b;a++){let d=c.getCell(a);if(!d)break;let e=d.getChars();e.length>1&&(b-=e.length-1);let f=c.getCell(a+1);f&&0===f.getWidth()&&b++}return b}_bufferColsToStringOffset(a,b){let c=a,d=0,e=this._terminal.buffer.active.getLine(c);for(;b>0&&e;){for(let a=0;a<b&&a<this._terminal.cols;a++){let b=e.getCell(a);if(!b)break;b.getWidth()&&(d+=0===b.getCode()?1:b.getChars().length)}if(c++,(e=this._terminal.buffer.active.getLine(c))&&!e.isWrapped)break;b-=this._terminal.cols}return d}},aj=class extends x{constructor(a){super(),this._terminal=a,this._highlightDecorations=[],this._highlightedLines=new Set,this._register(v(()=>this.clearHighlightDecorations()))}createHighlightDecorations(a,b){for(let c of(this.clearHighlightDecorations(),a)){let a=this._createResultDecorations(c,b,!1);if(a)for(let b of a)this._storeDecoration(b,c)}}createActiveDecoration(a,b){let c=this._createResultDecorations(a,b,!0);if(c)return{decorations:c,match:a,dispose(){t(c)}}}clearHighlightDecorations(){t(this._highlightDecorations),this._highlightDecorations=[],this._highlightedLines.clear()}_storeDecoration(a,b){this._highlightedLines.add(a.marker.line),this._highlightDecorations.push({decoration:a,match:b,dispose(){a.dispose()}})}_applyStyles(a,b,c){a.classList.contains("xterm-find-result-decoration")||(a.classList.add("xterm-find-result-decoration"),b&&(a.style.outline=`1px solid ${b}`)),c&&a.classList.add("xterm-find-active-result-decoration")}_createResultDecorations(a,b,c){let d=[],e=a.col,f=a.size,g=-this._terminal.buffer.active.baseY-this._terminal.buffer.active.cursorY+a.row;for(;f>0;){let a=Math.min(this._terminal.cols-e,f);d.push([g,e,a]),e=0,f-=a,g++}let h=[];for(let a of d){let d=this._terminal.registerMarker(a[0]),e=this._terminal.registerDecoration({marker:d,x:a[1],width:a[2],backgroundColor:c?b.activeMatchBackground:b.matchBackground,overviewRulerOptions:this._highlightedLines.has(d.line)?void 0:{color:c?b.activeMatchColorOverviewRuler:b.matchOverviewRuler,position:"center"}});if(e){let a=[];a.push(d),a.push(e.onRender(a=>this._applyStyles(a,c?b.activeMatchBorder:b.matchBorder,!1))),a.push(e.onDispose(()=>t(a))),h.push(e)}}return 0===h.length?void 0:h}},ak=class extends x{constructor(){super(...arguments),this._searchResults=[],this._onDidChangeResults=this._register(new P)}get onDidChangeResults(){return this._onDidChangeResults.event}get searchResults(){return this._searchResults}get selectedDecoration(){return this._selectedDecoration}set selectedDecoration(a){this._selectedDecoration=a}updateResults(a,b){this._searchResults=a.slice(0,b)}clearResults(){this._searchResults=[]}clearSelectedDecoration(){this._selectedDecoration&&(this._selectedDecoration.dispose(),this._selectedDecoration=void 0)}findResultIndex(a){for(let b=0;b<this._searchResults.length;b++){let c=this._searchResults[b];if(c.row===a.row&&c.col===a.col&&c.size===a.size)return b}return -1}fireResultsChanged(a){if(!a)return;let b=-1;this._selectedDecoration&&(b=this.findResultIndex(this._selectedDecoration.match)),this._onDidChangeResults.fire({resultIndex:b,resultCount:this._searchResults.length})}reset(){this.clearSelectedDecoration(),this.clearResults()}},al=class extends x{constructor(a){super(),this._highlightTimeout=this._register(new y),this._lineCache=this._register(new y),this._state=new ah,this._resultTracker=this._register(new ak),this._highlightLimit=a?.highlightLimit??1e3}get onDidChangeResults(){return this._resultTracker.onDidChangeResults}activate(a){this._terminal=a,this._lineCache.value=new ag(a),this._engine=new ai(a,this._lineCache.value),this._decorationManager=new aj(a),this._register(this._terminal.onWriteParsed(()=>this._updateMatches())),this._register(this._terminal.onResize(()=>this._updateMatches())),this._register(v(()=>this.clearDecorations()))}_updateMatches(){this._highlightTimeout.clear(),this._state.cachedSearchTerm&&this._state.lastSearchOptions?.decorations&&(this._highlightTimeout.value=ae(()=>{let a=this._state.cachedSearchTerm;this._state.clearCachedTerm(),this.findPrevious(a,{...this._state.lastSearchOptions,incremental:!0},{noScroll:!0})},200))}clearDecorations(a){this._resultTracker.clearSelectedDecoration(),this._decorationManager?.clearHighlightDecorations(),this._resultTracker.clearResults(),a||this._state.clearCachedTerm()}clearActiveDecoration(){this._resultTracker.clearSelectedDecoration()}findNext(a,b,c){if(!this._terminal||!this._engine)throw Error("Cannot use addon until it has been loaded");this._state.lastSearchOptions=b,this._state.shouldUpdateHighlighting(a,b)&&this._highlightAllMatches(a,b);let d=this._findNextAndSelect(a,b,c);return this._fireResults(b),this._state.cachedSearchTerm=a,d}_highlightAllMatches(a,b){if(!this._terminal||!this._engine||!this._decorationManager)throw Error("Cannot use addon until it has been loaded");if(!this._state.isValidSearchTerm(a))return void this.clearDecorations();this.clearDecorations(!0);let c=[],d,e=this._engine.find(a,0,0,b);for(;e&&(d?.row!==e.row||d?.col!==e.col)&&!(c.length>=this._highlightLimit);)d=e,c.push(d),e=this._engine.find(a,d.col+d.term.length>=this._terminal.cols?d.row+1:d.row,d.col+d.term.length>=this._terminal.cols?0:d.col+1,b);this._resultTracker.updateResults(c,this._highlightLimit),b.decorations&&this._decorationManager.createHighlightDecorations(c,b.decorations)}_findNextAndSelect(a,b,c){if(!this._terminal||!this._engine)return!1;if(!this._state.isValidSearchTerm(a))return this._terminal.clearSelection(),this.clearDecorations(),!1;let d=this._engine.findNextWithSelection(a,b,this._state.cachedSearchTerm);return this._selectResult(d,b?.decorations,c?.noScroll)}findPrevious(a,b,c){if(!this._terminal||!this._engine)throw Error("Cannot use addon until it has been loaded");this._state.lastSearchOptions=b,this._state.shouldUpdateHighlighting(a,b)&&this._highlightAllMatches(a,b);let d=this._findPreviousAndSelect(a,b,c);return this._fireResults(b),this._state.cachedSearchTerm=a,d}_fireResults(a){this._resultTracker.fireResultsChanged(!!a?.decorations)}_findPreviousAndSelect(a,b,c){if(!this._terminal||!this._engine)return!1;if(!this._state.isValidSearchTerm(a))return this._terminal.clearSelection(),this.clearDecorations(),!1;let d=this._engine.findPreviousWithSelection(a,b,this._state.cachedSearchTerm);return this._selectResult(d,b?.decorations,c?.noScroll)}_selectResult(a,b,c){if(!this._terminal||!this._decorationManager)return!1;if(this._resultTracker.clearSelectedDecoration(),!a)return this._terminal.clearSelection(),!1;if(this._terminal.select(a.col,a.row,a.size),b){let c=this._decorationManager.createActiveDecoration(a,b);c&&(this._resultTracker.selectedDecoration=c)}if(!c&&(a.row>=this._terminal.buffer.active.viewportY+this._terminal.rows||a.row<this._terminal.buffer.active.viewportY)){let b=a.row-this._terminal.buffer.active.viewportY;b-=Math.floor(this._terminal.rows/2),this._terminal.scrollLines(b)}return!0}};let am=(0,h.memo)((0,h.forwardRef)(function({output:a,isRunning:b,onInput:c,onResize:d,maximized:e,height:f,directWrite:k},l){let m=(0,h.useRef)(null),n=(0,h.useRef)(null),o=(0,h.useRef)(null),p=(0,h.useRef)(null),q=(0,h.useRef)(0),r=(0,h.useRef)(c),s=(0,h.useRef)(d);(0,h.useEffect)(()=>{r.current=c},[c]),(0,h.useEffect)(()=>{s.current=d},[d]),(0,h.useImperativeHandle)(l,()=>({findNext:a=>p.current?.findNext(a,{caseSensitive:!1,decorations:{matchBackground:"#facc1550",matchBorder:"#facc15",matchOverviewRuler:"#facc15",activeMatchBackground:"#facc1590",activeMatchBorder:"#facc15",activeMatchColorOverviewRuler:"#facc15"}})??!1,findPrevious:a=>p.current?.findPrevious(a,{caseSensitive:!1,decorations:{matchBackground:"#facc1550",matchBorder:"#facc15",matchOverviewRuler:"#facc15",activeMatchBackground:"#facc1590",activeMatchBorder:"#facc15",activeMatchColorOverviewRuler:"#facc15"}})??!1,clearSearch:()=>{p.current?.clearDecorations()},write:a=>{n.current?.write(a)},reset:()=>{n.current?.reset()}}),[]),(0,h.useEffect)(()=>{if(!m.current)return;let a=new i.B({convertEol:!1,scrollback:5e3,fontSize:13,fontFamily:'ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace',cursorStyle:"block",cursorBlink:!0,disableStdin:!1,allowProposedApi:!0,theme:{background:"transparent",foreground:"#d4d4d8",cursor:"#d4d4d8",cursorAccent:"#1a1a2e",selectionBackground:"#3b82f680",black:"#27272a",red:"#f87171",green:"#4ade80",yellow:"#facc15",blue:"#60a5fa",magenta:"#c084fc",cyan:"#22d3ee",white:"#e4e4e7",brightBlack:"#52525b",brightRed:"#fca5a5",brightGreen:"#86efac",brightYellow:"#fde047",brightBlue:"#93c5fd",brightMagenta:"#d8b4fe",brightCyan:"#67e8f9",brightWhite:"#fafafa"}}),b=new j,c=new al;a.loadAddon(b),a.loadAddon(c),a.open(m.current);let d=b=>a.parser.registerOscHandler(b,()=>!0);d(10),d(11),d(12),d(4),d(52);let e=(b,c)=>a.parser.registerCsiHandler({prefix:c,final:b},()=>!0);e("n"),e("n","?"),e("c"),e("c",">"),e("c","=");let f=/\x1b\][0-9]+;[^\x07\x1b]*(?:\x07|\x1b\\)|\x1b\[[\d;?>=]*[Rc]/g;a.onData(a=>{let b=a.replace(f,"");b&&r.current&&r.current(b)});try{b.fit(),s.current&&s.current(a.cols,a.rows)}catch{}return n.current=a,o.current=b,p.current=c,q.current=0,()=>{a.dispose(),n.current=null,o.current=null,p.current=null,q.current=0}},[]),(0,h.useEffect)(()=>{if(k)return;let b=n.current;if(!b)return;let c=!1;if(a.length<q.current&&(b.reset(),q.current=0,c=!0),a.length>q.current){let c=a.slice(q.current);b.write(c),q.current=a.length}c&&r.current&&requestAnimationFrame(()=>b.focus())},[a,k]),(0,h.useEffect)(()=>{b&&n.current&&n.current.focus()},[b]);let t=(0,h.useCallback)(()=>{let a=n.current,b=o.current;if(a&&b)try{b.fit(),s.current&&s.current(a.cols,a.rows)}catch{}},[]);return(0,h.useEffect)(()=>{requestAnimationFrame(()=>{t(),requestAnimationFrame(t)})},[e,t]),(0,h.useEffect)(()=>{let a=m.current;if(!a)return;let b=new ResizeObserver(t);return b.observe(a),()=>b.disconnect()},[t]),(0,g.jsx)("div",{ref:m,className:"xterm-renderer px-2",style:{height:f??"100%",overflow:"hidden"}})}))}};
9
+ `).trim(),b=/(file:|vscode-file:\/\/vscode-app)?(\/[^:]*:\d+:\d+)/.exec(a);I.register(f,b?.[2]??a,f)}return f},this._event}_removeListener(a){if(this._options?.onWillRemoveListener?.(this),!this._listeners)return;if(1===this._size){this._listeners=void 0,this._options?.onDidRemoveLastListener?.(this),this._size=0;return}let b=this._listeners,c=b.indexOf(a);if(-1===c)throw console.log("disposed?",this._disposed),console.log("size?",this._size),console.log("arr?",JSON.stringify(this._listeners)),Error("Attempted to dispose unknown listener");this._size--,b[c]=void 0;let d=this._deliveryQueue.current===this;if(2*this._size<=b.length){let a=0;for(let c=0;c<b.length;c++)b[c]?b[a++]=b[c]:d&&(this._deliveryQueue.end--,a<this._deliveryQueue.i&&this._deliveryQueue.i--);b.length=a}}_deliver(a,b){if(!a)return;let c=this._options?.onListenerError||l;if(!c)return void a.value(b);try{a.value(b)}catch(a){c(a)}}_deliverQueue(a){let b=a.current._listeners;for(;a.i<a.end;)this._deliver(b[a.i++],a.value);a.reset()}fire(a){if(this._deliveryQueue?.current&&(this._deliverQueue(this._deliveryQueue),this._perfMon?.stop()),this._perfMon?.start(this._size),this._listeners)if(this._listeners instanceof N)this._deliver(this._listeners,a);else{let b=this._deliveryQueue;b.enqueue(this,a,this._listeners.length),this._deliverQueue(b)}this._perfMon?.stop()}hasListeners(){return this._size>0}},Q=class{constructor(){this.i=-1,this.end=0}enqueue(a,b,c){this.i=0,this.end=c,this.current=a,this.value=b}reset(){this.i=this.end,this.current=void 0,this.value=void 0}},R=Object.freeze(function(a,b){let c=setTimeout(a.bind(b),0);return{dispose(){clearTimeout(c)}}});(S=O||={}).isCancellationToken=function(a){return a===S.None||a===S.Cancelled||a instanceof V||!!a&&"object"==typeof a&&"boolean"==typeof a.isCancellationRequested&&"function"==typeof a.onCancellationRequested},S.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:H.None}),S.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:R});var S,T,U,V=class{constructor(){this._isCancelled=!1,this._emitter=null}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?R:(this._emitter||(this._emitter=new P),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}},W=!1,X="en",Y=globalThis;"u">typeof Y.vscode&&"u">typeof Y.vscode.process?U=Y.vscode.process:"u">typeof process&&"string"==typeof process?.versions?.node&&(U=process);var Z="string"==typeof U?.versions?.electron&&U?.type==="renderer";if("object"==typeof U){U.platform,U.platform,"linux"===U.platform&&U.env.SNAP&&U.env.SNAP_REVISION,U.env.CI||U.env.BUILD_ARTIFACTSTAGINGDIRECTORY,X="en";let a=U.env.VSCODE_NLS_CONFIG;if(a)try{let b=JSON.parse(a);b.userLocale,b.osLocale,X=b.resolvedLanguage||"en",b.languagePack?.translationsConfigFile}catch{}}else"object"!=typeof navigator||Z?console.error("Unable to resolve platform."):((T=navigator.userAgent).indexOf("Windows"),T.indexOf("Macintosh"),(T.indexOf("Macintosh")>=0||T.indexOf("iPad")>=0||T.indexOf("iPhone")>=0)&&navigator.maxTouchPoints&&navigator.maxTouchPoints,T.indexOf("Linux"),T?.indexOf("Mobi"),W=!0,X=globalThis._VSCODE_NLS_LANGUAGE||"en",navigator.language.toLowerCase());W&&"function"==typeof Y.importScripts&&Y.origin;var $,_=T,aa=X;(d=$||={}).value=function(){return aa},d.isDefaultVariant=function(){return 2===aa.length?"en"===aa:aa.length>=3&&"e"===aa[0]&&"n"===aa[1]&&"-"===aa[2]},d.isDefault=function(){return"en"===aa};var ab="function"==typeof Y.postMessage&&!Y.importScripts,ac=(()=>{if(ab){let a=[];Y.addEventListener("message",b=>{if(b.data&&b.data.vscodeScheduleAsyncWork)for(let c=0,d=a.length;c<d;c++){let d=a[c];if(d.id===b.data.vscodeScheduleAsyncWork){a.splice(c,1),d.callback();return}}});let b=0;return c=>{let d=++b;a.push({id:d,callback:c}),Y.postMessage({vscodeScheduleAsyncWork:d},"*")}}return a=>setTimeout(a)})(),ad=!!(_&&_.indexOf("Chrome")>=0);function ae(a,b=0,c){let d=setTimeout(()=>{a(),c&&e.dispose()},b),e=v(()=>{clearTimeout(d),c?.deleteAndLeak(e)});return c?.add(e),e}_&&_.indexOf("Firefox"),!ad&&_&&_.indexOf("Safari"),_&&_.indexOf("Edg/"),_&&_.indexOf("Android"),Symbol("MicrotaskDelay"),(e=f||={}).settled=async function(a){let b,c=await Promise.all(a.map(a=>a.then(a=>a,a=>{b||(b=a)})));if("u">typeof b)throw b;return c},e.withAsyncBody=function(a){return new Promise(async(b,c)=>{try{await a(b,c)}catch(a){c(a)}})};var af=class a{static fromArray(b){return new a(a=>{a.emitMany(b)})}static fromPromise(b){return new a(async a=>{a.emitMany(await b)})}static fromPromises(b){return new a(async a=>{await Promise.all(b.map(async b=>a.emitOne(await b)))})}static merge(b){return new a(async a=>{await Promise.all(b.map(async b=>{for await(let c of b)a.emitOne(c)}))})}constructor(a,b){this._state=0,this._results=[],this._error=null,this._onReturn=b,this._onStateChanged=new P,queueMicrotask(async()=>{let b={emitOne:a=>this.emitOne(a),emitMany:a=>this.emitMany(a),reject:a=>this.reject(a)};try{await Promise.resolve(a(b)),this.resolve()}catch(a){this.reject(a)}finally{b.emitOne=void 0,b.emitMany=void 0,b.reject=void 0}})}[Symbol.asyncIterator](){let a=0;return{next:async()=>{for(;;){if(2===this._state)throw this._error;if(a<this._results.length)return{done:!1,value:this._results[a++]};if(1===this._state)return{done:!0,value:void 0};await H.toPromise(this._onStateChanged.event)}},return:async()=>(this._onReturn?.(),{done:!0,value:void 0})}}static map(b,c){return new a(async a=>{for await(let d of b)a.emitOne(c(d))})}map(b){return a.map(this,b)}static filter(b,c){return new a(async a=>{for await(let d of b)c(d)&&a.emitOne(d)})}filter(b){return a.filter(this,b)}static coalesce(b){return a.filter(b,a=>!!a)}coalesce(){return a.coalesce(this)}static async toPromise(a){let b=[];for await(let c of a)b.push(c);return b}toPromise(){return a.toPromise(this)}emitOne(a){0===this._state&&(this._results.push(a),this._onStateChanged.fire())}emitMany(a){0===this._state&&(this._results=this._results.concat(a),this._onStateChanged.fire())}resolve(){0===this._state&&(this._state=1,this._onStateChanged.fire())}reject(a){0===this._state&&(this._state=2,this._error=a,this._onStateChanged.fire())}};af.EMPTY=af.fromArray([]);var ag=class extends x{constructor(a){super(),this._terminal=a,this._linesCacheTimeout=this._register(new y),this._linesCacheDisposables=this._register(new y),this._register(v(()=>this._destroyLinesCache()))}initLinesCache(){this._linesCache||(this._linesCache=Array(this._terminal.buffer.active.length),this._linesCacheDisposables.value=u(this._terminal.onLineFeed(()=>this._destroyLinesCache()),this._terminal.onCursorMove(()=>this._destroyLinesCache()),this._terminal.onResize(()=>this._destroyLinesCache()))),this._linesCacheTimeout.value=ae(()=>this._destroyLinesCache(),15e3)}_destroyLinesCache(){this._linesCache=void 0,this._linesCacheDisposables.clear(),this._linesCacheTimeout.clear()}getLineFromCache(a){return this._linesCache?.[a]}setLineInCache(a,b){this._linesCache&&(this._linesCache[a]=b)}translateBufferLineToStringWithWrap(a,b){let c=[],d=[0],e=this._terminal.buffer.active.getLine(a);for(;e;){let f=this._terminal.buffer.active.getLine(a+1),g=!!f&&f.isWrapped,h=e.translateToString(!g&&b);if(g&&f){let a=e.getCell(e.length-1);a&&0===a.getCode()&&1===a.getWidth()&&f.getCell(0)?.getWidth()===2&&(h=h.slice(0,-1))}if(c.push(h),g)d.push(d[d.length-1]+h.length);else break;a++,e=f}return[c.join(""),d]}},ah=class{get cachedSearchTerm(){return this._cachedSearchTerm}set cachedSearchTerm(a){this._cachedSearchTerm=a}get lastSearchOptions(){return this._lastSearchOptions}set lastSearchOptions(a){this._lastSearchOptions=a}isValidSearchTerm(a){return!!(a&&a.length>0)}didOptionsChange(a){return!this._lastSearchOptions||!!a&&(this._lastSearchOptions.caseSensitive!==a.caseSensitive||this._lastSearchOptions.regex!==a.regex||this._lastSearchOptions.wholeWord!==a.wholeWord)}shouldUpdateHighlighting(a,b){return!!b?.decorations&&(void 0===this._cachedSearchTerm||a!==this._cachedSearchTerm||this.didOptionsChange(b))}clearCachedTerm(){this._cachedSearchTerm=void 0}reset(){this._cachedSearchTerm=void 0,this._lastSearchOptions=void 0}},ai=class{constructor(a,b){this._terminal=a,this._lineCache=b}find(a,b,c,d){if(!a||0===a.length)return void this._terminal.clearSelection();if(c>this._terminal.cols)throw Error(`Invalid col: ${c} to search in terminal of ${this._terminal.cols} cols`);this._lineCache.initLinesCache();let e={startRow:b,startCol:c},f=this._findInLine(a,e,d);if(!f)for(let c=b+1;c<this._terminal.buffer.active.baseY+this._terminal.rows&&(e.startRow=c,e.startCol=0,!(f=this._findInLine(a,e,d)));c++);return f}findNextWithSelection(a,b,c){if(!a||0===a.length)return void this._terminal.clearSelection();let d=this._terminal.getSelectionPosition();this._terminal.clearSelection();let e=0,f=0;d&&(c===a?(e=d.end.x,f=d.end.y):(e=d.start.x,f=d.start.y)),this._lineCache.initLinesCache();let g={startRow:f,startCol:e},h=this._findInLine(a,g,b);if(!h)for(let c=f+1;c<this._terminal.buffer.active.baseY+this._terminal.rows&&(g.startRow=c,g.startCol=0,!(h=this._findInLine(a,g,b)));c++);if(!h&&0!==f)for(let c=0;c<f&&(g.startRow=c,g.startCol=0,!(h=this._findInLine(a,g,b)));c++);return!h&&d&&(g.startRow=d.start.y,g.startCol=0,h=this._findInLine(a,g,b)),h}findPreviousWithSelection(a,b,c){if(!a||0===a.length)return void this._terminal.clearSelection();let d=this._terminal.getSelectionPosition();this._terminal.clearSelection();let e=this._terminal.buffer.active.baseY+this._terminal.rows-1,f=this._terminal.cols;this._lineCache.initLinesCache();let g={startRow:e,startCol:f},h;if(d&&(g.startRow=e=d.start.y,g.startCol=f=d.start.x,c!==a&&((h=this._findInLine(a,g,b,!1))||(g.startRow=e=d.end.y,g.startCol=f=d.end.x))),h||(h=this._findInLine(a,g,b,!0)),!h){g.startCol=Math.max(g.startCol,this._terminal.cols);for(let c=e-1;c>=0&&(g.startRow=c,!(h=this._findInLine(a,g,b,!0)));c--);}if(!h&&e!==this._terminal.buffer.active.baseY+this._terminal.rows-1)for(let c=this._terminal.buffer.active.baseY+this._terminal.rows-1;c>=e&&(g.startRow=c,!(h=this._findInLine(a,g,b,!0)));c--);return h}_isWholeWord(a,b,c){return(0===a||" ~!@#$%^&*()+`-=[]{}|\\;:\"',./<>?".includes(b[a-1]))&&(a+c.length===b.length||" ~!@#$%^&*()+`-=[]{}|\\;:\"',./<>?".includes(b[a+c.length]))}_findInLine(a,b,c={},d=!1){let e=b.startRow,f=b.startCol;if(this._terminal.buffer.active.getLine(e)?.isWrapped){if(d){b.startCol+=this._terminal.cols;return}return b.startRow--,b.startCol+=this._terminal.cols,this._findInLine(a,b,c)}let g=this._lineCache.getLineFromCache(e);g||(g=this._lineCache.translateBufferLineToStringWithWrap(e,!0),this._lineCache.setLineInCache(e,g));let[h,i]=g,j=this._bufferColsToStringOffset(e,f),k=a,l=h;c.regex||(k=c.caseSensitive?a:a.toLowerCase(),l=c.caseSensitive?h:h.toLowerCase());let m=-1;if(c.regex){let b=RegExp(k,c.caseSensitive?"g":"gi"),e;if(d)for(;e=b.exec(l.slice(0,j));)m=b.lastIndex-e[0].length,a=e[0],b.lastIndex-=a.length-1;else(e=b.exec(l.slice(j)))&&e[0].length>0&&(m=j+(b.lastIndex-e[0].length),a=e[0])}else d?j-k.length>=0&&(m=l.lastIndexOf(k,j-k.length)):m=l.indexOf(k,j);if(m>=0){if(c.wholeWord&&!this._isWholeWord(m,l,a))return;let b=0;for(;b<i.length-1&&m>=i[b+1];)b++;let d=b;for(;d<i.length-1&&m+a.length>=i[d+1];)d++;let f=m-i[b],g=m+a.length-i[d],h=this._stringLengthToBufferSize(e+b,f),j=this._stringLengthToBufferSize(e+d,g)-h+this._terminal.cols*(d-b);return{term:a,col:h,row:e+b,size:j}}}_stringLengthToBufferSize(a,b){let c=this._terminal.buffer.active.getLine(a);if(!c)return 0;for(let a=0;a<b;a++){let d=c.getCell(a);if(!d)break;let e=d.getChars();e.length>1&&(b-=e.length-1);let f=c.getCell(a+1);f&&0===f.getWidth()&&b++}return b}_bufferColsToStringOffset(a,b){let c=a,d=0,e=this._terminal.buffer.active.getLine(c);for(;b>0&&e;){for(let a=0;a<b&&a<this._terminal.cols;a++){let b=e.getCell(a);if(!b)break;b.getWidth()&&(d+=0===b.getCode()?1:b.getChars().length)}if(c++,(e=this._terminal.buffer.active.getLine(c))&&!e.isWrapped)break;b-=this._terminal.cols}return d}},aj=class extends x{constructor(a){super(),this._terminal=a,this._highlightDecorations=[],this._highlightedLines=new Set,this._register(v(()=>this.clearHighlightDecorations()))}createHighlightDecorations(a,b){for(let c of(this.clearHighlightDecorations(),a)){let a=this._createResultDecorations(c,b,!1);if(a)for(let b of a)this._storeDecoration(b,c)}}createActiveDecoration(a,b){let c=this._createResultDecorations(a,b,!0);if(c)return{decorations:c,match:a,dispose(){t(c)}}}clearHighlightDecorations(){t(this._highlightDecorations),this._highlightDecorations=[],this._highlightedLines.clear()}_storeDecoration(a,b){this._highlightedLines.add(a.marker.line),this._highlightDecorations.push({decoration:a,match:b,dispose(){a.dispose()}})}_applyStyles(a,b,c){a.classList.contains("xterm-find-result-decoration")||(a.classList.add("xterm-find-result-decoration"),b&&(a.style.outline=`1px solid ${b}`)),c&&a.classList.add("xterm-find-active-result-decoration")}_createResultDecorations(a,b,c){let d=[],e=a.col,f=a.size,g=-this._terminal.buffer.active.baseY-this._terminal.buffer.active.cursorY+a.row;for(;f>0;){let a=Math.min(this._terminal.cols-e,f);d.push([g,e,a]),e=0,f-=a,g++}let h=[];for(let a of d){let d=this._terminal.registerMarker(a[0]),e=this._terminal.registerDecoration({marker:d,x:a[1],width:a[2],backgroundColor:c?b.activeMatchBackground:b.matchBackground,overviewRulerOptions:this._highlightedLines.has(d.line)?void 0:{color:c?b.activeMatchColorOverviewRuler:b.matchOverviewRuler,position:"center"}});if(e){let a=[];a.push(d),a.push(e.onRender(a=>this._applyStyles(a,c?b.activeMatchBorder:b.matchBorder,!1))),a.push(e.onDispose(()=>t(a))),h.push(e)}}return 0===h.length?void 0:h}},ak=class extends x{constructor(){super(...arguments),this._searchResults=[],this._onDidChangeResults=this._register(new P)}get onDidChangeResults(){return this._onDidChangeResults.event}get searchResults(){return this._searchResults}get selectedDecoration(){return this._selectedDecoration}set selectedDecoration(a){this._selectedDecoration=a}updateResults(a,b){this._searchResults=a.slice(0,b)}clearResults(){this._searchResults=[]}clearSelectedDecoration(){this._selectedDecoration&&(this._selectedDecoration.dispose(),this._selectedDecoration=void 0)}findResultIndex(a){for(let b=0;b<this._searchResults.length;b++){let c=this._searchResults[b];if(c.row===a.row&&c.col===a.col&&c.size===a.size)return b}return -1}fireResultsChanged(a){if(!a)return;let b=-1;this._selectedDecoration&&(b=this.findResultIndex(this._selectedDecoration.match)),this._onDidChangeResults.fire({resultIndex:b,resultCount:this._searchResults.length})}reset(){this.clearSelectedDecoration(),this.clearResults()}},al=class extends x{constructor(a){super(),this._highlightTimeout=this._register(new y),this._lineCache=this._register(new y),this._state=new ah,this._resultTracker=this._register(new ak),this._highlightLimit=a?.highlightLimit??1e3}get onDidChangeResults(){return this._resultTracker.onDidChangeResults}activate(a){this._terminal=a,this._lineCache.value=new ag(a),this._engine=new ai(a,this._lineCache.value),this._decorationManager=new aj(a),this._register(this._terminal.onWriteParsed(()=>this._updateMatches())),this._register(this._terminal.onResize(()=>this._updateMatches())),this._register(v(()=>this.clearDecorations()))}_updateMatches(){this._highlightTimeout.clear(),this._state.cachedSearchTerm&&this._state.lastSearchOptions?.decorations&&(this._highlightTimeout.value=ae(()=>{let a=this._state.cachedSearchTerm;this._state.clearCachedTerm(),this.findPrevious(a,{...this._state.lastSearchOptions,incremental:!0},{noScroll:!0})},200))}clearDecorations(a){this._resultTracker.clearSelectedDecoration(),this._decorationManager?.clearHighlightDecorations(),this._resultTracker.clearResults(),a||this._state.clearCachedTerm()}clearActiveDecoration(){this._resultTracker.clearSelectedDecoration()}findNext(a,b,c){if(!this._terminal||!this._engine)throw Error("Cannot use addon until it has been loaded");this._state.lastSearchOptions=b,this._state.shouldUpdateHighlighting(a,b)&&this._highlightAllMatches(a,b);let d=this._findNextAndSelect(a,b,c);return this._fireResults(b),this._state.cachedSearchTerm=a,d}_highlightAllMatches(a,b){if(!this._terminal||!this._engine||!this._decorationManager)throw Error("Cannot use addon until it has been loaded");if(!this._state.isValidSearchTerm(a))return void this.clearDecorations();this.clearDecorations(!0);let c=[],d,e=this._engine.find(a,0,0,b);for(;e&&(d?.row!==e.row||d?.col!==e.col)&&!(c.length>=this._highlightLimit);)d=e,c.push(d),e=this._engine.find(a,d.col+d.term.length>=this._terminal.cols?d.row+1:d.row,d.col+d.term.length>=this._terminal.cols?0:d.col+1,b);this._resultTracker.updateResults(c,this._highlightLimit),b.decorations&&this._decorationManager.createHighlightDecorations(c,b.decorations)}_findNextAndSelect(a,b,c){if(!this._terminal||!this._engine)return!1;if(!this._state.isValidSearchTerm(a))return this._terminal.clearSelection(),this.clearDecorations(),!1;let d=this._engine.findNextWithSelection(a,b,this._state.cachedSearchTerm);return this._selectResult(d,b?.decorations,c?.noScroll)}findPrevious(a,b,c){if(!this._terminal||!this._engine)throw Error("Cannot use addon until it has been loaded");this._state.lastSearchOptions=b,this._state.shouldUpdateHighlighting(a,b)&&this._highlightAllMatches(a,b);let d=this._findPreviousAndSelect(a,b,c);return this._fireResults(b),this._state.cachedSearchTerm=a,d}_fireResults(a){this._resultTracker.fireResultsChanged(!!a?.decorations)}_findPreviousAndSelect(a,b,c){if(!this._terminal||!this._engine)return!1;if(!this._state.isValidSearchTerm(a))return this._terminal.clearSelection(),this.clearDecorations(),!1;let d=this._engine.findPreviousWithSelection(a,b,this._state.cachedSearchTerm);return this._selectResult(d,b?.decorations,c?.noScroll)}_selectResult(a,b,c){if(!this._terminal||!this._decorationManager)return!1;if(this._resultTracker.clearSelectedDecoration(),!a)return this._terminal.clearSelection(),!1;if(this._terminal.select(a.col,a.row,a.size),b){let c=this._decorationManager.createActiveDecoration(a,b);c&&(this._resultTracker.selectedDecoration=c)}if(!c&&(a.row>=this._terminal.buffer.active.viewportY+this._terminal.rows||a.row<this._terminal.buffer.active.viewportY)){let b=a.row-this._terminal.buffer.active.viewportY;b-=Math.floor(this._terminal.rows/2),this._terminal.scrollLines(b)}return!0}};let am=(0,h.memo)((0,h.forwardRef)(function({output:a,isRunning:b,onInput:c,onResize:d,maximized:e,height:f,directWrite:k},l){let m=(0,h.useRef)(null),n=(0,h.useRef)(null),o=(0,h.useRef)(null),p=(0,h.useRef)(null),q=(0,h.useRef)(0),r=(0,h.useRef)(c),s=(0,h.useRef)(d);(0,h.useEffect)(()=>{r.current=c},[c]),(0,h.useEffect)(()=>{s.current=d},[d]),(0,h.useImperativeHandle)(l,()=>({findNext:a=>p.current?.findNext(a,{caseSensitive:!1,decorations:{matchBackground:"#facc1550",matchBorder:"#facc15",matchOverviewRuler:"#facc15",activeMatchBackground:"#facc1590",activeMatchBorder:"#facc15",activeMatchColorOverviewRuler:"#facc15"}})??!1,findPrevious:a=>p.current?.findPrevious(a,{caseSensitive:!1,decorations:{matchBackground:"#facc1550",matchBorder:"#facc15",matchOverviewRuler:"#facc15",activeMatchBackground:"#facc1590",activeMatchBorder:"#facc15",activeMatchColorOverviewRuler:"#facc15"}})??!1,clearSearch:()=>{p.current?.clearDecorations()},write:a=>{n.current?.write(a)},reset:()=>{n.current?.reset()},refresh:()=>{let a=n.current;if(a){try{o.current?.fit()}catch{}try{a.refresh(0,a.rows-1)}catch{}}}}),[]),(0,h.useEffect)(()=>{if(!m.current)return;let a=new i.B({convertEol:!1,scrollback:5e3,fontSize:13,fontFamily:'ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace',cursorStyle:"block",cursorBlink:!0,disableStdin:!1,allowProposedApi:!0,theme:{background:"transparent",foreground:"#d4d4d8",cursor:"#d4d4d8",cursorAccent:"#1a1a2e",selectionBackground:"#3b82f680",black:"#27272a",red:"#f87171",green:"#4ade80",yellow:"#facc15",blue:"#60a5fa",magenta:"#c084fc",cyan:"#22d3ee",white:"#e4e4e7",brightBlack:"#52525b",brightRed:"#fca5a5",brightGreen:"#86efac",brightYellow:"#fde047",brightBlue:"#93c5fd",brightMagenta:"#d8b4fe",brightCyan:"#67e8f9",brightWhite:"#fafafa"}}),b=new j,c=new al;a.loadAddon(b),a.loadAddon(c),a.open(m.current);let d=b=>a.parser.registerOscHandler(b,()=>!0);d(10),d(11),d(12),d(4),d(52);let e=(b,c)=>a.parser.registerCsiHandler({prefix:c,final:b},()=>!0);e("n"),e("n","?"),e("c"),e("c",">"),e("c","=");let f=/\x1b\][0-9]+;[^\x07\x1b]*(?:\x07|\x1b\\)|\x1b\[[\d;?>=]*[Rc]/g;a.onData(a=>{let b=a.replace(f,"");b&&r.current&&r.current(b)});try{b.fit(),s.current&&s.current(a.cols,a.rows)}catch{}return n.current=a,o.current=b,p.current=c,q.current=0,()=>{a.dispose(),n.current=null,o.current=null,p.current=null,q.current=0}},[]),(0,h.useEffect)(()=>{let b=n.current;if(!b)return;if(k){a&&0===q.current&&(b.write(a),q.current=a.length);return}let c=!1;if(a.length<q.current&&(b.reset(),q.current=0,c=!0),a.length>q.current){let c=a.slice(q.current);b.write(c),q.current=a.length}c&&r.current&&requestAnimationFrame(()=>b.focus())},[a,k]),(0,h.useEffect)(()=>{b&&n.current&&n.current.focus()},[b]);let t=(0,h.useCallback)(()=>{let a=n.current,b=o.current;if(a&&b)try{b.fit(),s.current&&s.current(a.cols,a.rows)}catch{}},[]);return(0,h.useEffect)(()=>{requestAnimationFrame(()=>{t(),requestAnimationFrame(t)})},[e,t]),(0,h.useEffect)(()=>{let a=m.current;if(!a)return;let b=new ResizeObserver(t);return b.observe(a),()=>b.disconnect()},[t]),(0,h.useEffect)(()=>{let a=m.current;if(!a)return;let b=b=>{let c=a.querySelector(".xterm-viewport");if(!c)return;let d=c.scrollHeight-c.clientHeight,e=b.deltaY<0&&c.scrollTop<=0,f=b.deltaY>0&&c.scrollTop>=d-1;(d<=0||e||f)&&b.preventDefault()};return a.addEventListener("wheel",b,{passive:!1}),()=>a.removeEventListener("wheel",b)},[]),(0,g.jsx)("div",{ref:m,className:"xterm-renderer px-2",style:{height:f??"100%",overflow:"hidden"}})}))}};
@@ -1 +1 @@
1
- "use strict";exports.id=6955,exports.ids=[6955],exports.modules={7939:(a,b,c)=>{c.d(b,{$A:()=>M,A0:()=>X,An:()=>$,BF:()=>I,Ct:()=>Q,Eu:()=>H,Ex:()=>u,GB:()=>r,JE:()=>Z,JY:()=>L,Ki:()=>C,Kk:()=>R,Kv:()=>j,LN:()=>k,Mx:()=>D,N9:()=>ac,O0:()=>B,Sr:()=>J,Tb:()=>s,Ux:()=>ab,Wd:()=>Y,aO:()=>m,at:()=>y,ec:()=>o,eg:()=>V,h9:()=>x,i4:()=>G,iK:()=>p,im:()=>T,iy:()=>P,jp:()=>t,lT:()=>z,lq:()=>F,ls:()=>K,mT:()=>w,n6:()=>n,oK:()=>O,oZ:()=>S,of:()=>E,po:()=>N,tP:()=>q,th:()=>v,v4:()=>l,vI:()=>W,yw:()=>U});var d=c(21820),e=c(33873),f=c(79748),g=c(29021),h=c(79646);let i=(0,d.homedir)(),j=(0,e.join)(i,".cockpit"),k=(0,e.join)(j,"projects"),l=(0,e.join)(j,"state.json"),m=(0,e.join)(j,"pinned-sessions.json"),n=(0,e.join)(j,"push-subscriptions.json"),o=(0,e.join)(j,"note.md"),p=(0,e.join)(j,"scheduled-tasks.json"),q=(0,e.join)(j,"settings.json"),r=(0,e.join)(j,"skills.json"),s=(0,e.join)(j,"review"),t=(0,e.join)(s,"_signal");function u(){try{(0,g.existsSync)(s)||(0,g.mkdirSync)(s,{recursive:!0}),(0,g.writeFileSync)(t,Date.now().toString())}catch{}}let v=(0,e.join)(i,".claude"),w=(0,e.join)(v,"projects"),x=(0,e.join)(i,".claude2"),y=(0,e.join)(x,"projects"),z=(0,e.join)(j,"deepseek"),A=(0,e.join)(z,"projects");function B(a){return a.replace(/[/.]/g,"-")}function C(a){return(0,e.join)(k,B(a))}function D(a){return(0,e.join)(C(a),"session.json")}function E(a){return(0,e.join)(C(a),"recent-files.json")}function F(a){return(0,e.join)(C(a),"expanded-paths.json")}function G(a){return(0,e.join)(C(a),"comments.json")}function H(a){return(0,e.join)(C(a),"services.json")}function I(a){return(0,e.join)(C(a),"note.md")}function J(a,b){return(0,e.join)(C(a),`terminal-history-${b}.jsonl`)}function K(a,b){return(0,e.join)(C(a),`terminal-output-${b}.txt`)}function L(a,b){let c=b?`terminal-env-${b}.json`:"terminal-env-global.json";return(0,e.join)(C(a),c)}function M(){return(0,e.join)(j,"terminal-aliases.json")}function N(){return(0,e.join)(j,"services.json")}function O(a){return(0,e.join)(C(a),"project-settings.json")}function P(a,b){return(0,e.join)(C(a),`terminal-bubble-order-${b}.json`)}function Q(a){return(0,e.join)(s,`${a}.json`)}function R(a,b){return(0,e.join)((0,e.join)(w,B(a)),`${b}.jsonl`)}function S(a,b){return(0,e.join)((0,e.join)(y,B(a)),`${b}.jsonl`)}function T(a,b){return(0,e.join)((0,e.join)(A,B(a)),`${b}.jsonl`)}function U(a,b){return(0,e.join)((0,e.join)(j,"ollama-sessions",B(a)),`${b}.jsonl`)}function V(a){let b=(0,e.join)(i,".codex","sessions");if(!(0,g.existsSync)(b))return null;try{let c=(0,h.execSync)(`find ${JSON.stringify(b)} -name "*${a}.jsonl" -type f 2>/dev/null`,{encoding:"utf8",timeout:3e3}).trim();if(c)return c.split("\n")[0]}catch{}return null}function W(a){let b=(0,e.join)(i,".kimi","sessions");if(!(0,g.existsSync)(b))return null;try{for(let c of(0,g.readdirSync)(b)){let d=(0,e.join)(b,c,a,"context.jsonl");if((0,g.existsSync)(d))return d}}catch{}return null}async function X(a){(0,g.existsSync)(a)||await (0,f.mkdir)(a,{recursive:!0})}async function Y(a){let b=(0,e.join)(a,"..");await X(b)}async function Z(a,b){try{let b=await (0,f.readFile)(a,"utf-8");return JSON.parse(b)}catch{return b}}async function $(a,b){await Y(a),await (0,f.writeFile)(a,JSON.stringify(b,null,2),"utf-8")}let _=globalThis,aa=_.__cockpitFileLocks??(_.__cockpitFileLocks=new Map);function ab(a,b){let c=(aa.get(a)??Promise.resolve()).then(b),d=c.then(()=>{},()=>{});return aa.set(a,d),d.then(()=>{aa.get(a)===d&&aa.delete(a)}),c}function ac(a,b,c){return ab(a,async()=>{let d=await Z(a,b),e=await c(d);return await $(a,e),e})}},23516:(a,b,c)=>{c.d(b,{c:()=>g});var d=c(79748),e=c(29021),f=c(33873);async function g(a){var b;let c;if(!a||!(0,e.existsSync)(a))return h(a);try{c=await (0,d.readFile)(a,"utf-8")}catch{return h(a)}let g=function(a){let b=a.match(/^---\s*\r?\n([\s\S]*?)\r?\n---\s*(\r?\n|$)/);if(!b)return{};let c=b[1],d={};for(let a of c.split(/\r?\n/)){let b=a.match(/^([A-Za-z_][\w-]*)\s*:\s*(.*)$/);if(!b)continue;let c=b[1].trim().toLowerCase(),e=b[2].trim();(e.startsWith('"')&&e.endsWith('"')||e.startsWith("'")&&e.endsWith("'"))&&(e=e.slice(1,-1)),d[c]=e}return d}(c),i=(0,f.basename)((0,f.dirname)(a))||(0,f.basename)(a);return{name:((b=g.name)?b.trim().replace(/\s+/g,"-").replace(/[^A-Za-z0-9\-_:.]/g,""):"")||i,description:g.description||"",icon:g.icon||void 0,argumentHint:g["argument-hint"]||g.argumenthint||g.hint||void 0,content:c,valid:!0}}function h(a){return{name:a?(0,f.basename)((0,f.dirname)(a))||(0,f.basename)(a):"unknown",description:"",icon:void 0,argumentHint:void 0,content:"",valid:!1}}},72891:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.d(b,{OZ:()=>o,RL:()=>n,k9:()=>p,ok:()=>l});var e=c(37625),f=c(52693),g=c(18412),h=c(89705),i=c(94506),j=c(770),k=a([i]);i=(k.then?(await k)():k)[0];let l=(a,b=200)=>new Response(JSON.stringify(a),{status:b,headers:{"content-type":"application/json"}}),m=a=>{let b=e.od(a);if(f.Ru(b)){let a=b.value,c=(0,j.Sh)(a);return new Response(JSON.stringify({error:(a=>{let b=a.message;if("string"==typeof b&&b.length>0)return b;let c=a.cause;if(c instanceof Error&&c.message.length>0)return c.message;switch(a._tag){case"ValidationError":return`Invalid ${a.field}: ${a.reason}`;case"NotFoundError":return`${a.resource} not found: ${a.id}`;case"PermissionError":return`Permission denied: ${a.action} on ${a.resource}`;case"DBError":return`${a.db} ${a.op} failed`;case"FSError":return`${a.op} ${a.path} failed`;case"WSError":return`${a.proto} ${a.kind} failed`;case"AgentError":return`${a.provider} ${a.kind} failed`;default:return a._tag}})(a),tag:a._tag}),{status:c,headers:{"content-type":"application/json"}})}return console.error("[handler] uncaught defect:\n"+e.j9(a)),new Response(JSON.stringify({error:"Internal Server Error",tag:"InternalError"}),{status:500,headers:{"content-type":"application/json"}})},n=a=>async b=>{let c=await i.s9.runPromiseExit(a(b));return g.YW(c,{onFailure:a=>m(a),onSuccess:a=>a})},o=a=>async(b,c)=>{let d=await c.params,e=await i.s9.runPromiseExit(a(b,d));return g.YW(e,{onFailure:a=>m(a),onSuccess:a=>a})},p=a=>h.$mh({try:()=>a.json(),catch:()=>new j.yI({field:"body",reason:"invalid JSON"})});d()}catch(a){d(a)}})}};
1
+ "use strict";exports.id=6955,exports.ids=[6955],exports.modules={7939:(a,b,c)=>{c.d(b,{$A:()=>M,A0:()=>X,An:()=>$,BF:()=>I,Ct:()=>Q,Eu:()=>H,Ex:()=>u,GB:()=>r,JE:()=>Z,JY:()=>L,Ki:()=>C,Kk:()=>R,Kv:()=>j,LN:()=>k,Mx:()=>D,N9:()=>ac,O0:()=>B,Sr:()=>J,Tb:()=>s,Ux:()=>ab,Wd:()=>Y,aO:()=>m,at:()=>y,ec:()=>o,eg:()=>V,h9:()=>x,i4:()=>G,iK:()=>p,im:()=>T,iy:()=>P,jp:()=>t,lT:()=>z,lq:()=>F,ls:()=>K,mT:()=>w,n6:()=>n,oK:()=>O,oZ:()=>S,of:()=>E,po:()=>N,tP:()=>q,th:()=>v,v4:()=>l,vI:()=>W,yw:()=>U});var d=c(21820),e=c(33873),f=c(79748),g=c(29021),h=c(79646);let i=(0,d.homedir)(),j=process.env.COCKPIT_HOME?(0,e.resolve)(process.env.COCKPIT_HOME.replace(/^~(?=$|\/)/,i)):(0,e.join)(i,".cockpit"),k=(0,e.join)(j,"projects"),l=(0,e.join)(j,"state.json"),m=(0,e.join)(j,"pinned-sessions.json"),n=(0,e.join)(j,"push-subscriptions.json"),o=(0,e.join)(j,"note.md"),p=(0,e.join)(j,"scheduled-tasks.json"),q=(0,e.join)(j,"settings.json"),r=(0,e.join)(j,"skills.json"),s=(0,e.join)(j,"review"),t=(0,e.join)(s,"_signal");function u(){try{(0,g.existsSync)(s)||(0,g.mkdirSync)(s,{recursive:!0}),(0,g.writeFileSync)(t,Date.now().toString())}catch{}}let v=(0,e.join)(i,".claude"),w=(0,e.join)(v,"projects"),x=(0,e.join)(i,".claude2"),y=(0,e.join)(x,"projects"),z=(0,e.join)(j,"deepseek"),A=(0,e.join)(z,"projects");function B(a){return a.replace(/[/.]/g,"-")}function C(a){return(0,e.join)(k,B(a))}function D(a){return(0,e.join)(C(a),"session.json")}function E(a){return(0,e.join)(C(a),"recent-files.json")}function F(a){return(0,e.join)(C(a),"expanded-paths.json")}function G(a){return(0,e.join)(C(a),"comments.json")}function H(a){return(0,e.join)(C(a),"services.json")}function I(a){return(0,e.join)(C(a),"note.md")}function J(a,b){return(0,e.join)(C(a),`terminal-history-${b}.jsonl`)}function K(a,b){return(0,e.join)(C(a),`terminal-output-${b}.txt`)}function L(a,b){let c=b?`terminal-env-${b}.json`:"terminal-env-global.json";return(0,e.join)(C(a),c)}function M(){return(0,e.join)(j,"terminal-aliases.json")}function N(){return(0,e.join)(j,"services.json")}function O(a){return(0,e.join)(C(a),"project-settings.json")}function P(a,b){return(0,e.join)(C(a),`terminal-bubble-order-${b}.json`)}function Q(a){return(0,e.join)(s,`${a}.json`)}function R(a,b){return(0,e.join)((0,e.join)(w,B(a)),`${b}.jsonl`)}function S(a,b){return(0,e.join)((0,e.join)(y,B(a)),`${b}.jsonl`)}function T(a,b){return(0,e.join)((0,e.join)(A,B(a)),`${b}.jsonl`)}function U(a,b){return(0,e.join)((0,e.join)(j,"ollama-sessions",B(a)),`${b}.jsonl`)}function V(a){let b=(0,e.join)(i,".codex","sessions");if(!(0,g.existsSync)(b))return null;try{let c=(0,h.execSync)(`find ${JSON.stringify(b)} -name "*${a}.jsonl" -type f 2>/dev/null`,{encoding:"utf8",timeout:3e3}).trim();if(c)return c.split("\n")[0]}catch{}return null}function W(a){let b=(0,e.join)(i,".kimi","sessions");if(!(0,g.existsSync)(b))return null;try{for(let c of(0,g.readdirSync)(b)){let d=(0,e.join)(b,c,a,"context.jsonl");if((0,g.existsSync)(d))return d}}catch{}return null}async function X(a){(0,g.existsSync)(a)||await (0,f.mkdir)(a,{recursive:!0})}async function Y(a){let b=(0,e.join)(a,"..");await X(b)}async function Z(a,b){try{let b=await (0,f.readFile)(a,"utf-8");return JSON.parse(b)}catch{return b}}async function $(a,b){await Y(a),await (0,f.writeFile)(a,JSON.stringify(b,null,2),"utf-8")}let _=globalThis,aa=_.__cockpitFileLocks??(_.__cockpitFileLocks=new Map);function ab(a,b){let c=(aa.get(a)??Promise.resolve()).then(b),d=c.then(()=>{},()=>{});return aa.set(a,d),d.then(()=>{aa.get(a)===d&&aa.delete(a)}),c}function ac(a,b,c){return ab(a,async()=>{let d=await Z(a,b),e=await c(d);return await $(a,e),e})}},23516:(a,b,c)=>{c.d(b,{c:()=>g});var d=c(79748),e=c(29021),f=c(33873);async function g(a){var b;let c;if(!a||!(0,e.existsSync)(a))return h(a);try{c=await (0,d.readFile)(a,"utf-8")}catch{return h(a)}let g=function(a){let b=a.match(/^---\s*\r?\n([\s\S]*?)\r?\n---\s*(\r?\n|$)/);if(!b)return{};let c=b[1],d={};for(let a of c.split(/\r?\n/)){let b=a.match(/^([A-Za-z_][\w-]*)\s*:\s*(.*)$/);if(!b)continue;let c=b[1].trim().toLowerCase(),e=b[2].trim();(e.startsWith('"')&&e.endsWith('"')||e.startsWith("'")&&e.endsWith("'"))&&(e=e.slice(1,-1)),d[c]=e}return d}(c),i=(0,f.basename)((0,f.dirname)(a))||(0,f.basename)(a);return{name:((b=g.name)?b.trim().replace(/\s+/g,"-").replace(/[^A-Za-z0-9\-_:.]/g,""):"")||i,description:g.description||"",icon:g.icon||void 0,argumentHint:g["argument-hint"]||g.argumenthint||g.hint||void 0,content:c,valid:!0}}function h(a){return{name:a?(0,f.basename)((0,f.dirname)(a))||(0,f.basename)(a):"unknown",description:"",icon:void 0,argumentHint:void 0,content:"",valid:!1}}},72891:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.d(b,{OZ:()=>o,RL:()=>n,k9:()=>p,ok:()=>l});var e=c(37625),f=c(52693),g=c(18412),h=c(89705),i=c(94506),j=c(770),k=a([i]);i=(k.then?(await k)():k)[0];let l=(a,b=200)=>new Response(JSON.stringify(a),{status:b,headers:{"content-type":"application/json"}}),m=a=>{let b=e.od(a);if(f.Ru(b)){let a=b.value,c=(0,j.Sh)(a);return new Response(JSON.stringify({error:(a=>{let b=a.message;if("string"==typeof b&&b.length>0)return b;let c=a.cause;if(c instanceof Error&&c.message.length>0)return c.message;switch(a._tag){case"ValidationError":return`Invalid ${a.field}: ${a.reason}`;case"NotFoundError":return`${a.resource} not found: ${a.id}`;case"PermissionError":return`Permission denied: ${a.action} on ${a.resource}`;case"DBError":return`${a.db} ${a.op} failed`;case"FSError":return`${a.op} ${a.path} failed`;case"WSError":return`${a.proto} ${a.kind} failed`;case"AgentError":return`${a.provider} ${a.kind} failed`;default:return a._tag}})(a),tag:a._tag}),{status:c,headers:{"content-type":"application/json"}})}return console.error("[handler] uncaught defect:\n"+e.j9(a)),new Response(JSON.stringify({error:"Internal Server Error",tag:"InternalError"}),{status:500,headers:{"content-type":"application/json"}})},n=a=>async b=>{let c=await i.s9.runPromiseExit(a(b));return g.YW(c,{onFailure:a=>m(a),onSuccess:a=>a})},o=a=>async(b,c)=>{let d=await c.params,e=await i.s9.runPromiseExit(a(b,d));return g.YW(e,{onFailure:a=>m(a),onSuccess:a=>a})},p=a=>h.$mh({try:()=>a.json(),catch:()=>new j.yI({field:"body",reason:"invalid JSON"})});d()}catch(a){d(a)}})}};
@@ -1 +1 @@
1
- "use strict";exports.id=7003,exports.ids=[7003],exports.modules={7939:(a,b,c)=>{c.d(b,{$A:()=>M,A0:()=>X,An:()=>$,BF:()=>I,Ct:()=>Q,Eu:()=>H,Ex:()=>u,GB:()=>r,JE:()=>Z,JY:()=>L,Ki:()=>C,Kk:()=>R,Kv:()=>j,LN:()=>k,Mx:()=>D,N9:()=>ac,O0:()=>B,Sr:()=>J,Tb:()=>s,Ux:()=>ab,Wd:()=>Y,aO:()=>m,at:()=>y,ec:()=>o,eg:()=>V,h9:()=>x,i4:()=>G,iK:()=>p,im:()=>T,iy:()=>P,jp:()=>t,lT:()=>z,lq:()=>F,ls:()=>K,mT:()=>w,n6:()=>n,oK:()=>O,oZ:()=>S,of:()=>E,po:()=>N,tP:()=>q,th:()=>v,v4:()=>l,vI:()=>W,yw:()=>U});var d=c(21820),e=c(33873),f=c(79748),g=c(29021),h=c(79646);let i=(0,d.homedir)(),j=(0,e.join)(i,".cockpit"),k=(0,e.join)(j,"projects"),l=(0,e.join)(j,"state.json"),m=(0,e.join)(j,"pinned-sessions.json"),n=(0,e.join)(j,"push-subscriptions.json"),o=(0,e.join)(j,"note.md"),p=(0,e.join)(j,"scheduled-tasks.json"),q=(0,e.join)(j,"settings.json"),r=(0,e.join)(j,"skills.json"),s=(0,e.join)(j,"review"),t=(0,e.join)(s,"_signal");function u(){try{(0,g.existsSync)(s)||(0,g.mkdirSync)(s,{recursive:!0}),(0,g.writeFileSync)(t,Date.now().toString())}catch{}}let v=(0,e.join)(i,".claude"),w=(0,e.join)(v,"projects"),x=(0,e.join)(i,".claude2"),y=(0,e.join)(x,"projects"),z=(0,e.join)(j,"deepseek"),A=(0,e.join)(z,"projects");function B(a){return a.replace(/[/.]/g,"-")}function C(a){return(0,e.join)(k,B(a))}function D(a){return(0,e.join)(C(a),"session.json")}function E(a){return(0,e.join)(C(a),"recent-files.json")}function F(a){return(0,e.join)(C(a),"expanded-paths.json")}function G(a){return(0,e.join)(C(a),"comments.json")}function H(a){return(0,e.join)(C(a),"services.json")}function I(a){return(0,e.join)(C(a),"note.md")}function J(a,b){return(0,e.join)(C(a),`terminal-history-${b}.jsonl`)}function K(a,b){return(0,e.join)(C(a),`terminal-output-${b}.txt`)}function L(a,b){let c=b?`terminal-env-${b}.json`:"terminal-env-global.json";return(0,e.join)(C(a),c)}function M(){return(0,e.join)(j,"terminal-aliases.json")}function N(){return(0,e.join)(j,"services.json")}function O(a){return(0,e.join)(C(a),"project-settings.json")}function P(a,b){return(0,e.join)(C(a),`terminal-bubble-order-${b}.json`)}function Q(a){return(0,e.join)(s,`${a}.json`)}function R(a,b){return(0,e.join)((0,e.join)(w,B(a)),`${b}.jsonl`)}function S(a,b){return(0,e.join)((0,e.join)(y,B(a)),`${b}.jsonl`)}function T(a,b){return(0,e.join)((0,e.join)(A,B(a)),`${b}.jsonl`)}function U(a,b){return(0,e.join)((0,e.join)(j,"ollama-sessions",B(a)),`${b}.jsonl`)}function V(a){let b=(0,e.join)(i,".codex","sessions");if(!(0,g.existsSync)(b))return null;try{let c=(0,h.execSync)(`find ${JSON.stringify(b)} -name "*${a}.jsonl" -type f 2>/dev/null`,{encoding:"utf8",timeout:3e3}).trim();if(c)return c.split("\n")[0]}catch{}return null}function W(a){let b=(0,e.join)(i,".kimi","sessions");if(!(0,g.existsSync)(b))return null;try{for(let c of(0,g.readdirSync)(b)){let d=(0,e.join)(b,c,a,"context.jsonl");if((0,g.existsSync)(d))return d}}catch{}return null}async function X(a){(0,g.existsSync)(a)||await (0,f.mkdir)(a,{recursive:!0})}async function Y(a){let b=(0,e.join)(a,"..");await X(b)}async function Z(a,b){try{let b=await (0,f.readFile)(a,"utf-8");return JSON.parse(b)}catch{return b}}async function $(a,b){await Y(a),await (0,f.writeFile)(a,JSON.stringify(b,null,2),"utf-8")}let _=globalThis,aa=_.__cockpitFileLocks??(_.__cockpitFileLocks=new Map);function ab(a,b){let c=(aa.get(a)??Promise.resolve()).then(b),d=c.then(()=>{},()=>{});return aa.set(a,d),d.then(()=>{aa.get(a)===d&&aa.delete(a)}),c}function ac(a,b,c){return ab(a,async()=>{let d=await Z(a,b),e=await c(d);return await $(a,e),e})}},38433:(a,b,c)=>{c.d(b,{SG:()=>m,a_:()=>l,hO:()=>k,lG:()=>j});var d=c(51181),e=c.n(d),f=c(7939);let g=null,h="https://github.com/Surething-io/cockpit";async function i(){if(g)return g;let a=await (0,f.Ux)(f.tP,async()=>{let a=await (0,f.JE)(f.tP,{});if(a.push?.publicKey&&a.push?.privateKey){let b=!function(a){if(!a||a.includes("localhost"))return!1;if(a.startsWith("https://"))return!0;let b=/^mailto:[^\s@]+@([^\s@]+)$/.exec(a);return!!b&&b[1].includes(".")}(a.push.subject)?h:a.push.subject;return b!==a.push.subject&&await (0,f.An)(f.tP,{...a,push:{...a.push,subject:b}}),{publicKey:a.push.publicKey,privateKey:a.push.privateKey,subject:b}}let b=e().generateVAPIDKeys(),c={publicKey:b.publicKey,privateKey:b.privateKey,subject:h};return await (0,f.An)(f.tP,{...a,push:c}),c});return e().setVapidDetails(a.subject,a.publicKey,a.privateKey),g=a,a}async function j(){return(await i()).publicKey}async function k(a){await (0,f.Ux)(f.n6,async()=>{let b=await (0,f.JE)(f.n6,{subscriptions:[]});b.subscriptions.some(b=>b.endpoint===a.endpoint)||(b.subscriptions.push(a),await (0,f.An)(f.n6,b))})}async function l(a){await (0,f.Ux)(f.n6,async()=>{let b=await (0,f.JE)(f.n6,{subscriptions:[]}),c=b.subscriptions.filter(b=>b.endpoint!==a);c.length!==b.subscriptions.length&&await (0,f.An)(f.n6,{subscriptions:c})})}async function m(a){try{await i()}catch{return{sent:0,pruned:0}}let b=await (0,f.JE)(f.n6,{subscriptions:[]});if(0===b.subscriptions.length)return{sent:0,pruned:0};let c=JSON.stringify(a),d=[],g=0;return await Promise.all(b.subscriptions.map(async a=>{try{await e().sendNotification(a,c),g++}catch(c){let b=c?.statusCode;if(404===b||410===b)d.push(a.endpoint);else{let d=a.endpoint;try{d=new URL(a.endpoint).host}catch{}console.error(`[push] send failed (${b??"?"}) to ${d}: ${c?.body||c?.message||"unknown"}`)}}})),d.length&&await (0,f.Ux)(f.n6,async()=>{let a=await (0,f.JE)(f.n6,{subscriptions:[]});await (0,f.An)(f.n6,{subscriptions:a.subscriptions.filter(a=>!d.includes(a.endpoint))})}),{sent:g,pruned:d.length}}},72891:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.d(b,{OZ:()=>o,RL:()=>n,k9:()=>p,ok:()=>l});var e=c(37625),f=c(52693),g=c(18412),h=c(89705),i=c(94506),j=c(770),k=a([i]);i=(k.then?(await k)():k)[0];let l=(a,b=200)=>new Response(JSON.stringify(a),{status:b,headers:{"content-type":"application/json"}}),m=a=>{let b=e.od(a);if(f.Ru(b)){let a=b.value,c=(0,j.Sh)(a);return new Response(JSON.stringify({error:(a=>{let b=a.message;if("string"==typeof b&&b.length>0)return b;let c=a.cause;if(c instanceof Error&&c.message.length>0)return c.message;switch(a._tag){case"ValidationError":return`Invalid ${a.field}: ${a.reason}`;case"NotFoundError":return`${a.resource} not found: ${a.id}`;case"PermissionError":return`Permission denied: ${a.action} on ${a.resource}`;case"DBError":return`${a.db} ${a.op} failed`;case"FSError":return`${a.op} ${a.path} failed`;case"WSError":return`${a.proto} ${a.kind} failed`;case"AgentError":return`${a.provider} ${a.kind} failed`;default:return a._tag}})(a),tag:a._tag}),{status:c,headers:{"content-type":"application/json"}})}return console.error("[handler] uncaught defect:\n"+e.j9(a)),new Response(JSON.stringify({error:"Internal Server Error",tag:"InternalError"}),{status:500,headers:{"content-type":"application/json"}})},n=a=>async b=>{let c=await i.s9.runPromiseExit(a(b));return g.YW(c,{onFailure:a=>m(a),onSuccess:a=>a})},o=a=>async(b,c)=>{let d=await c.params,e=await i.s9.runPromiseExit(a(b,d));return g.YW(e,{onFailure:a=>m(a),onSuccess:a=>a})},p=a=>h.$mh({try:()=>a.json(),catch:()=>new j.yI({field:"body",reason:"invalid JSON"})});d()}catch(a){d(a)}})}};
1
+ "use strict";exports.id=7003,exports.ids=[7003],exports.modules={7939:(a,b,c)=>{c.d(b,{$A:()=>M,A0:()=>X,An:()=>$,BF:()=>I,Ct:()=>Q,Eu:()=>H,Ex:()=>u,GB:()=>r,JE:()=>Z,JY:()=>L,Ki:()=>C,Kk:()=>R,Kv:()=>j,LN:()=>k,Mx:()=>D,N9:()=>ac,O0:()=>B,Sr:()=>J,Tb:()=>s,Ux:()=>ab,Wd:()=>Y,aO:()=>m,at:()=>y,ec:()=>o,eg:()=>V,h9:()=>x,i4:()=>G,iK:()=>p,im:()=>T,iy:()=>P,jp:()=>t,lT:()=>z,lq:()=>F,ls:()=>K,mT:()=>w,n6:()=>n,oK:()=>O,oZ:()=>S,of:()=>E,po:()=>N,tP:()=>q,th:()=>v,v4:()=>l,vI:()=>W,yw:()=>U});var d=c(21820),e=c(33873),f=c(79748),g=c(29021),h=c(79646);let i=(0,d.homedir)(),j=process.env.COCKPIT_HOME?(0,e.resolve)(process.env.COCKPIT_HOME.replace(/^~(?=$|\/)/,i)):(0,e.join)(i,".cockpit"),k=(0,e.join)(j,"projects"),l=(0,e.join)(j,"state.json"),m=(0,e.join)(j,"pinned-sessions.json"),n=(0,e.join)(j,"push-subscriptions.json"),o=(0,e.join)(j,"note.md"),p=(0,e.join)(j,"scheduled-tasks.json"),q=(0,e.join)(j,"settings.json"),r=(0,e.join)(j,"skills.json"),s=(0,e.join)(j,"review"),t=(0,e.join)(s,"_signal");function u(){try{(0,g.existsSync)(s)||(0,g.mkdirSync)(s,{recursive:!0}),(0,g.writeFileSync)(t,Date.now().toString())}catch{}}let v=(0,e.join)(i,".claude"),w=(0,e.join)(v,"projects"),x=(0,e.join)(i,".claude2"),y=(0,e.join)(x,"projects"),z=(0,e.join)(j,"deepseek"),A=(0,e.join)(z,"projects");function B(a){return a.replace(/[/.]/g,"-")}function C(a){return(0,e.join)(k,B(a))}function D(a){return(0,e.join)(C(a),"session.json")}function E(a){return(0,e.join)(C(a),"recent-files.json")}function F(a){return(0,e.join)(C(a),"expanded-paths.json")}function G(a){return(0,e.join)(C(a),"comments.json")}function H(a){return(0,e.join)(C(a),"services.json")}function I(a){return(0,e.join)(C(a),"note.md")}function J(a,b){return(0,e.join)(C(a),`terminal-history-${b}.jsonl`)}function K(a,b){return(0,e.join)(C(a),`terminal-output-${b}.txt`)}function L(a,b){let c=b?`terminal-env-${b}.json`:"terminal-env-global.json";return(0,e.join)(C(a),c)}function M(){return(0,e.join)(j,"terminal-aliases.json")}function N(){return(0,e.join)(j,"services.json")}function O(a){return(0,e.join)(C(a),"project-settings.json")}function P(a,b){return(0,e.join)(C(a),`terminal-bubble-order-${b}.json`)}function Q(a){return(0,e.join)(s,`${a}.json`)}function R(a,b){return(0,e.join)((0,e.join)(w,B(a)),`${b}.jsonl`)}function S(a,b){return(0,e.join)((0,e.join)(y,B(a)),`${b}.jsonl`)}function T(a,b){return(0,e.join)((0,e.join)(A,B(a)),`${b}.jsonl`)}function U(a,b){return(0,e.join)((0,e.join)(j,"ollama-sessions",B(a)),`${b}.jsonl`)}function V(a){let b=(0,e.join)(i,".codex","sessions");if(!(0,g.existsSync)(b))return null;try{let c=(0,h.execSync)(`find ${JSON.stringify(b)} -name "*${a}.jsonl" -type f 2>/dev/null`,{encoding:"utf8",timeout:3e3}).trim();if(c)return c.split("\n")[0]}catch{}return null}function W(a){let b=(0,e.join)(i,".kimi","sessions");if(!(0,g.existsSync)(b))return null;try{for(let c of(0,g.readdirSync)(b)){let d=(0,e.join)(b,c,a,"context.jsonl");if((0,g.existsSync)(d))return d}}catch{}return null}async function X(a){(0,g.existsSync)(a)||await (0,f.mkdir)(a,{recursive:!0})}async function Y(a){let b=(0,e.join)(a,"..");await X(b)}async function Z(a,b){try{let b=await (0,f.readFile)(a,"utf-8");return JSON.parse(b)}catch{return b}}async function $(a,b){await Y(a),await (0,f.writeFile)(a,JSON.stringify(b,null,2),"utf-8")}let _=globalThis,aa=_.__cockpitFileLocks??(_.__cockpitFileLocks=new Map);function ab(a,b){let c=(aa.get(a)??Promise.resolve()).then(b),d=c.then(()=>{},()=>{});return aa.set(a,d),d.then(()=>{aa.get(a)===d&&aa.delete(a)}),c}function ac(a,b,c){return ab(a,async()=>{let d=await Z(a,b),e=await c(d);return await $(a,e),e})}},38433:(a,b,c)=>{c.d(b,{SG:()=>m,a_:()=>l,hO:()=>k,lG:()=>j});var d=c(51181),e=c.n(d),f=c(7939);let g=null,h="https://github.com/Surething-io/cockpit";async function i(){if(g)return g;let a=await (0,f.Ux)(f.tP,async()=>{let a=await (0,f.JE)(f.tP,{});if(a.push?.publicKey&&a.push?.privateKey){let b=!function(a){if(!a||a.includes("localhost"))return!1;if(a.startsWith("https://"))return!0;let b=/^mailto:[^\s@]+@([^\s@]+)$/.exec(a);return!!b&&b[1].includes(".")}(a.push.subject)?h:a.push.subject;return b!==a.push.subject&&await (0,f.An)(f.tP,{...a,push:{...a.push,subject:b}}),{publicKey:a.push.publicKey,privateKey:a.push.privateKey,subject:b}}let b=e().generateVAPIDKeys(),c={publicKey:b.publicKey,privateKey:b.privateKey,subject:h};return await (0,f.An)(f.tP,{...a,push:c}),c});return e().setVapidDetails(a.subject,a.publicKey,a.privateKey),g=a,a}async function j(){return(await i()).publicKey}async function k(a){await (0,f.Ux)(f.n6,async()=>{let b=await (0,f.JE)(f.n6,{subscriptions:[]});b.subscriptions.some(b=>b.endpoint===a.endpoint)||(b.subscriptions.push(a),await (0,f.An)(f.n6,b))})}async function l(a){await (0,f.Ux)(f.n6,async()=>{let b=await (0,f.JE)(f.n6,{subscriptions:[]}),c=b.subscriptions.filter(b=>b.endpoint!==a);c.length!==b.subscriptions.length&&await (0,f.An)(f.n6,{subscriptions:c})})}async function m(a){try{await i()}catch{return{sent:0,pruned:0}}let b=await (0,f.JE)(f.n6,{subscriptions:[]});if(0===b.subscriptions.length)return{sent:0,pruned:0};let c=JSON.stringify(a),d=[],g=0;return await Promise.all(b.subscriptions.map(async a=>{try{await e().sendNotification(a,c),g++}catch(c){let b=c?.statusCode;if(404===b||410===b)d.push(a.endpoint);else{let d=a.endpoint;try{d=new URL(a.endpoint).host}catch{}console.error(`[push] send failed (${b??"?"}) to ${d}: ${c?.body||c?.message||"unknown"}`)}}})),d.length&&await (0,f.Ux)(f.n6,async()=>{let a=await (0,f.JE)(f.n6,{subscriptions:[]});await (0,f.An)(f.n6,{subscriptions:a.subscriptions.filter(a=>!d.includes(a.endpoint))})}),{sent:g,pruned:d.length}}},72891:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.d(b,{OZ:()=>o,RL:()=>n,k9:()=>p,ok:()=>l});var e=c(37625),f=c(52693),g=c(18412),h=c(89705),i=c(94506),j=c(770),k=a([i]);i=(k.then?(await k)():k)[0];let l=(a,b=200)=>new Response(JSON.stringify(a),{status:b,headers:{"content-type":"application/json"}}),m=a=>{let b=e.od(a);if(f.Ru(b)){let a=b.value,c=(0,j.Sh)(a);return new Response(JSON.stringify({error:(a=>{let b=a.message;if("string"==typeof b&&b.length>0)return b;let c=a.cause;if(c instanceof Error&&c.message.length>0)return c.message;switch(a._tag){case"ValidationError":return`Invalid ${a.field}: ${a.reason}`;case"NotFoundError":return`${a.resource} not found: ${a.id}`;case"PermissionError":return`Permission denied: ${a.action} on ${a.resource}`;case"DBError":return`${a.db} ${a.op} failed`;case"FSError":return`${a.op} ${a.path} failed`;case"WSError":return`${a.proto} ${a.kind} failed`;case"AgentError":return`${a.provider} ${a.kind} failed`;default:return a._tag}})(a),tag:a._tag}),{status:c,headers:{"content-type":"application/json"}})}return console.error("[handler] uncaught defect:\n"+e.j9(a)),new Response(JSON.stringify({error:"Internal Server Error",tag:"InternalError"}),{status:500,headers:{"content-type":"application/json"}})},n=a=>async b=>{let c=await i.s9.runPromiseExit(a(b));return g.YW(c,{onFailure:a=>m(a),onSuccess:a=>a})},o=a=>async(b,c)=>{let d=await c.params,e=await i.s9.runPromiseExit(a(b,d));return g.YW(e,{onFailure:a=>m(a),onSuccess:a=>a})},p=a=>h.$mh({try:()=>a.json(),catch:()=>new j.yI({field:"body",reason:"invalid JSON"})});d()}catch(a){d(a)}})}};
@@ -0,0 +1,89 @@
1
+ "use strict";exports.id=7338,exports.ids=[7338],exports.modules={7338:(a,b,c)=>{c.d(b,{u:()=>G});var d=c(78497),e=c(55511),f=c(67814),g=c(29021),h=c(33873),i=c(7939);let j=(0,h.join)(i.Kv,"ollama-sessions");function k(a){return(0,h.join)(j,(0,i.O0)(a))}function l(a,b){return(0,h.join)(k(a),`${b}.jsonl`)}function m(a,b,c){let d=k(a);(0,g.mkdirSync)(d,{recursive:!0});let e=l(a,b);(0,g.appendFileSync)(e,JSON.stringify(c)+"\n","utf-8")}function n(a,b,c,d){m(a,b,{type:"assistant",uuid:d?.uuid,sessionId:b,timestamp:d?.timestamp,message:{role:"assistant",content:c,...d?.usage?{usage:d.usage}:{}}})}function o(a,b,c,d,e){m(a,b,{type:"user",uuid:e?.uuid,sessionId:b,timestamp:e?.timestamp,message:{content:[{type:"tool_result",tool_use_id:c,content:d,is_error:!!e?.is_error}]}})}var p=c(61948),q=c(52868),r=c(79748),s=c(21820),t=c(79646),u=c(28354),v=c(63742),w=c.n(v),x=c(75342);let y=(0,u.promisify)(t.exec),z=(0,u.promisify)(t.execFile),A=(0,h.join)((0,s.tmpdir)(),"cockpit-tool-outputs");async function B(a,b){try{await (0,r.mkdir)(A,{recursive:!0});try{let a=await (0,r.readdir)(A);if(a.length>=200){let b=(await Promise.all(a.map(async a=>{let b=(0,h.join)(A,a);try{return{p:b,mtime:(await (0,r.stat)(b)).mtimeMs}}catch{return null}}))).filter(a=>null!==a);b.sort((a,b)=>a.mtime-b.mtime);let c=b.slice(0,Math.max(0,b.length-200+1));await Promise.all(c.map(({p:a})=>(0,r.unlink)(a).catch(()=>void 0)))}}catch{}let c=Date.now().toString(36),d=Math.random().toString(36).slice(2,8),e=(0,h.join)(A,`${b}-${c}-${d}.log`);return await (0,r.writeFile)(e,a,"utf-8"),e}catch{return}}function C(a,b,c={}){if(a.length<=b)return a;let{label:d="output",bias:e="balanced",spillPath:f}=c,g=Math.max(0,b-520),h=Math.floor(g*("tail"===e?.2:.6)),i=g-h,j=h;if(h>0){let b=a.lastIndexOf("\n",h);b>.5*h&&(j=b)}let k=a.length-i;if(i>0&&k>0){let b=a.indexOf("\n",k);-1!==b&&b<a.length-.5*i&&(k=b+1)}let l=a.slice(0,j),m=a.slice(k),n=a.length-l.length-m.length,o=a=>(a/1024).toFixed(1)+" KB",p=f?`full output saved to ${f} — call Read({ file_path: "${f}", offset, limit }) to page through`:"narrow the query, page through (head/tail/sed), or redirect to a file";return`==== ${d.toUpperCase()} TRUNCATED ====
2
+ Original: ${o(a.length)} (${a.length} chars) \xb7 Kept: head ${o(l.length)} + tail ${o(m.length)} \xb7 Dropped: ${o(n)}
3
+ ${p}
4
+ ==========================
5
+
6
+ `+l+`
7
+
8
+ ...[${d} truncated here — ${o(n)} dropped; see banner at top for full-output path]
9
+
10
+ `+m}let D=q.string().describe("PREVIOUS result assessment → THIS action reason → EXPECTED outcome"),E=' The "thought" param MUST follow this format: "PREVIOUS: [last result] → THIS: [action + why] → EXPECT: [expected result]".';async function F(a,b,c,d){let e="",f=[],g=new Map;for await(let c of a)switch(c.type){case"text-delta":e+=c.text,b(`data: ${JSON.stringify({type:"stream_event",event:{type:"content_block_delta",delta:{type:"text_delta",text:c.text}}})}
11
+
12
+ `);break;case"tool-call":{e&&(d?.onTextFlush?.(e),e="");let a=c.input||{};d?.onToolCall?.(c.toolCallId,c.toolName,a),b(`data: ${JSON.stringify({type:"assistant",message:{content:[{type:"tool_use",id:c.toolCallId,name:c.toolName,input:a}]}})}
13
+
14
+ `),g.set(c.toolCallId,{id:c.toolCallId,name:c.toolName,args:JSON.stringify(a)});break}case"tool-result":{let a=String(c.output);d?.onToolResult?.(c.toolCallId,a),b(`data: ${JSON.stringify({type:"user",message:{content:[{type:"tool_result",tool_use_id:c.toolCallId,content:a,is_error:!1}]}})}
15
+
16
+ `)}}for(let a of g.values())try{f.push({id:a.id,name:a.name,args:JSON.parse(a.args)})}catch{f.push({id:a.id,name:a.name,args:{}})}return{text:e,toolCalls:f}}let G={name:"ollama",preflight:async a=>"string"==typeof a.prompt&&a.prompt.trim()?{ok:!0}:{ok:!1,status:400,error:"ollama requires a text prompt"},runner:{async run(a){var b,c,i,j;let k=a.cwd||process.cwd(),r=a.currentKey();a.rekey(r);let s="string"==typeof a.params.model&&a.params.model||"qwen3.5:35b-a3b-coding-nvfp4",t=a.prompt,u=b=>{if(!b.startsWith("data: [DONE]"))try{a.emit(JSON.parse(b.slice(6)))}catch{}},v=[...function(a,b){let c=l(a,b);if(!(0,g.existsSync)(c))return[];let d=(0,g.readFileSync)(c,"utf-8").split("\n").filter(Boolean),e=[],f=[];for(let a of d)try{let b=JSON.parse(a);if("string"==typeof b.role&&"content"in b){e.push(b);continue}"string"==typeof b.type&&f.push(b)}catch{}if(0===f.length)return e;let h=new Map,i=new Set,j=new Set;for(let a of f){if("assistant"===a.type&&Array.isArray(a.message?.content))for(let b of a.message.content)"tool_use"===b.type&&b.id&&(i.add(b.id),b.name&&h.set(b.id,b.name));if("user"===a.type&&Array.isArray(a.message?.content))for(let b of a.message.content)"tool_result"===b.type&&b.tool_use_id&&j.add(b.tool_use_id)}let k=[];for(let a of f){if("user"===a.type&&a.message?.role==="user"&&Array.isArray(a.message.content)){let b=a.message.content.filter(a=>"text"===a.type).map(a=>a.text||"").join("\n");k.push({role:"user",content:b});continue}if("assistant"===a.type&&Array.isArray(a.message?.content)){let b=[];for(let c of a.message.content)if("text"===c.type)b.push({type:"text",text:c.text||""});else if("tool_use"===c.type){let a=c.id||"";if(!a||!j.has(a))continue;let d=c.name||h.get(a)||"tool";b.push({type:"tool-call",toolCallId:a,toolName:d,input:c.input||{}})}1===b.length&&"text"===b[0].type?k.push({role:"assistant",content:String(b[0].text||"")}):b.length>0?k.push({role:"assistant",content:b}):k.push({role:"assistant",content:""});continue}if("user"===a.type&&Array.isArray(a.message?.content))for(let b of a.message.content.filter(a=>"tool_result"===a.type&&!!a.tool_use_id)){let a=b.tool_use_id||"";if(!a||!i.has(a))continue;let c=h.get(a)||"tool";k.push({role:"tool",content:[{type:"tool-result",toolCallId:a,toolName:c,output:b.is_error?{type:"error-text",value:b.content||""}:{type:"text",value:b.content||""}}]})}}return k}(k,r),{role:"user",content:t}];b={uuid:(0,e.randomUUID)(),timestamp:new Date().toISOString()},m(k,r,{type:"user",uuid:b?.uuid,sessionId:r,timestamp:b?.timestamp,message:{role:"user",content:[{type:"text",text:t}]}}),u(`data: ${JSON.stringify({type:"system",subtype:"init",session_id:r})}
17
+
18
+ `);let A=(0,d.gM)({model:(0,f.q)(s),system:`You are a coding agent. You help the user build and modify software using the provided tools.
19
+
20
+ CWD: ${k}
21
+
22
+ ## Language
23
+
24
+ ALWAYS reply in the SAME language as the user's most recent message — whatever language they used (Chinese, English, Japanese, French, Spanish, …), mirror it. Do NOT default to English just because this system prompt is written in English. If the user switches language mid-conversation, switch with them on the next reply.
25
+
26
+ Exceptions that stay as-is regardless of reply language:
27
+ - Tool "thought" parameters: keep the "PREVIOUS / THIS / EXPECT" template in English.
28
+ - Code, identifiers, file paths, shell commands, and error messages quoted from tool output: keep original.
29
+ - Only your natural-language prose to the user follows the user's language.
30
+
31
+ ## Workflow
32
+
33
+ 1. Plan: call TodoWrite FIRST to break down the task into steps (all pending, first one in_progress).
34
+ 2. Act: execute steps one by one. After completing each step, call TodoWrite to update progress (mark completed, set next in_progress).
35
+ 3. Check: after each tool call, assess — did it succeed? Is the overall task done? If not, continue to the next step.
36
+ 4. Respond: you MUST always end with a text response to the user. Summarize what was done, what was found, or what remains.
37
+
38
+ IMPORTANT: never stop in the middle of a task silently. If you cannot continue (error, missing info, blocked), respond to the user explaining why and what is needed.
39
+
40
+ NEVER repeat a tool call with the same or similar arguments. When a search finds nothing, follow this escalation:
41
+ 1. Simplify the pattern (shorter keyword, remove qualifiers, use a single core term)
42
+ 2. Broaden the path (search parent directory, or omit path to search entire CWD)
43
+ 3. Switch tool (Grep → Glob for filenames, Grep → Bash with find, or Read a likely file directly)
44
+ 4. Give up after 3 failed attempts on the same topic — tell the user what you tried and ask for guidance.
45
+
46
+ ## Tools
47
+
48
+ - Read: read a file by line range.
49
+ - Edit: exact string replacement in an existing file (prefer over Write).
50
+ - Write: create new files or full rewrites only.
51
+ - Bash: run shell commands.
52
+ - Grep: ripgrep search. ALWAYS use Grep (never rg/grep via Bash).
53
+ - Glob: fast file listing by glob pattern.
54
+ - TodoWrite: plan tasks and track progress. ALWAYS call this first.
55
+
56
+ Every tool has a "thought" parameter — ALWAYS fill it using this format:
57
+ "PREVIOUS: [what the last tool returned and whether it achieved the goal] → THIS: [what I am doing now and why] → EXPECT: [what result I expect]"
58
+ Example: "PREVIOUS: Grep found 3 matches in cache.go → THIS: Read cache.go to see full implementation → EXPECT: understand the caching logic"
59
+ If this is the first tool call, write "PREVIOUS: n/a" for the first part.
60
+
61
+ ## Rules
62
+
63
+ Tool usage:
64
+ - Read before modify: do NOT edit a file you haven't Read.
65
+ - Absolute paths only: resolve relative paths against CWD.
66
+
67
+ Accuracy:
68
+ - Verify before retracting: when the user questions you, use tools to verify first, then respond based on evidence. Do NOT blindly agree you were wrong.
69
+ - Honesty over confidence: only state what is backed by tool output. If unsure, say so and state what info is needed or propose a verification plan. Never fabricate data.
70
+
71
+ ## Output
72
+
73
+ - Be concise. Lead with the action or answer.
74
+ - Only elaborate on decisions, blockers, or milestones.`,messages:v,tools:(c={cwd:k,todos:[]},{Read:(0,p.z6)({description:'Read a file. Params: { thought, file_path (absolute), offset (1-based line), limit (lines, default 600, max 4000) }. Returns the selected lines as text, followed by a footer like "[read lines X-Y of Z]" so you always know whether the file has more content. When the footer shows more lines remain, call Read again with a higher offset.'+E,inputSchema:(0,p.jN)(q.object({thought:D,file_path:q.string(),offset:q.number().int().min(1).default(1),limit:q.number().int().min(1).max(4e3).default(600)})),execute:async({file_path:a,offset:b,limit:c})=>{try{if(!(0,h.isAbsolute)(a))return"Error: file_path must be an absolute path.";let d=(0,g.readFileSync)(a,"utf-8").split("\n"),e=d.length,f=Math.max(0,b-1),i=Math.min(e,f+c),j=d.slice(f,i).join("\n"),k=f+1,l=e-i,m=l>0?`
75
+
76
+ [read lines ${k}-${i} of ${e} — ${l} more line(s) remain; call Read again with offset=${i+1}]`:`
77
+
78
+ [read lines ${k}-${i} of ${e} — end of file]`;return j+m}catch(a){return`Error reading file: ${a.message}`}}}),Write:(0,p.z6)({description:"Write a file to disk. Params: { thought, file_path (absolute), content }. Creates or overwrites. Prefer Edit for modifying existing files; use Write for new files or full rewrites. Do NOT create documentation (*.md/README) unless explicitly requested."+E,inputSchema:(0,p.jN)(q.object({thought:D,file_path:q.string(),content:q.string()})),execute:async({file_path:a,content:b})=>{try{if(!(0,h.isAbsolute)(a))return"Error: file_path must be an absolute path.";return(0,g.writeFileSync)(a,b,"utf-8"),`File written: ${a}`}catch(a){return`Error writing file: ${a.message}`}}}),Edit:(0,p.z6)({description:"Edit a file by exact string replacement. Params: { thought, replace_all, file_path (absolute), old_string, new_string }. If replace_all is false, replaces the first occurrence. old_string must match exactly."+E,inputSchema:(0,p.jN)(q.object({thought:D,replace_all:q.boolean().default(!1),file_path:q.string(),old_string:q.string(),new_string:q.string()})),execute:async({replace_all:a,file_path:b,old_string:c,new_string:d})=>{try{if(!(0,h.isAbsolute)(b))return"Error: file_path must be an absolute path.";let e=(0,g.readFileSync)(b,"utf-8");if(!e.includes(c))return`Error: old_string not found in ${b}. The file may have changed.`;let f=a?e.split(c).join(d):e.replace(c,d);return(0,g.writeFileSync)(b,f,"utf-8"),`File edited: ${b}`}catch(a){return`Error editing file: ${a.message}`}}}),Bash:(0,p.z6)({description:'Run a shell command. Params: { thought, command, description?, timeout? (ms) }. Output is capped at ~64KB — both head and tail are preserved with an explicit truncation marker. On failure, stderr tail is prioritized (the last lines usually carry the real error). When truncation happens the full output is automatically spilled to a temp file; the marker will include its absolute path — call Read({ file_path, offset, limit }) on that path to page through the complete output WITHOUT re-running the command (critical for expensive or side-effectful commands like builds, installs, or POST requests). IMPORTANT: an EMPTY tool_result is impossible — if the command produced no stdout, the tool returns an explicit "(exit 0 — empty stdout...)" annotation. Do NOT interpret such a result as "output was truncated"; it means the command itself produced nothing (often a bug in the command, e.g. an un-invoked arrow function, a silent failure writing to stderr, or a command that intentionally produces no stdout).'+E,inputSchema:(0,p.jN)(q.object({thought:D,command:q.string(),description:q.string().optional(),timeout:q.number().int().min(1).max(6e5).optional()})),execute:async({command:a,timeout:b})=>{try{let{stdout:d,stderr:e}=await y(a,{cwd:c.cwd,encoding:"utf-8",timeout:b??6e4,maxBuffer:0xa00000,env:{...process.env,FORCE_COLOR:"0",CI:"1"}});if(0===d.length){if(0===e.length)return"(exit 0 — empty stdout and empty stderr. The command produced no output at all; NOT a truncation. Common causes: (a) an arrow function was defined but not invoked — wrap as `(async()=>{...})()`; (b) the command intentionally prints nothing on success; (c) output went to a file instead of stdout.)";let a=C(e,63800,{label:"stderr",bias:"tail"});return`(exit 0 — empty stdout; stderr below is NOT an error but a side-channel message since exit code was 0)
79
+
80
+ --- stderr ---
81
+ ${a}`}let f=d.length>64e3?await B(d,"bash"):void 0;return C(d,64e3,{label:"stdout",spillPath:f})}catch(f){let a=f.message,b=f.stderr?.toString()||"",c=`Error: ${a}
82
+ `,d=Math.max(0,64e3-c.length),e=b.length>d?await B(b,"bash-stderr"):void 0;return c+C(b,d,{label:"stderr",bias:"tail",spillPath:e})}}}),Glob:(0,p.z6)({description:'Find files matching a glob pattern (fast-glob style). Params: { thought, pattern }. Runs relative to cwd and returns up to 100 paths (newline-delimited). When more than 100 match, the full list is spilled to a temp file and an explicit "...[N more paths omitted — M total; full list saved to ...]" footer is appended; call Read({ file_path, offset, limit }) on that path to page through the complete list, or tighten the pattern. Supports **, {}, [], *, ?.'+E,inputSchema:(0,p.jN)(q.object({thought:D,pattern:q.string()})),execute:async({pattern:a})=>{try{let b=await w()(a,{cwd:c.cwd,onlyFiles:!0,unique:!0,dot:!0,followSymbolicLinks:!0,ignore:["**/node_modules/**","**/.git/**"]});if(0===b.length)return"(no matches)";if(b.length<=100)return b.join("\n");let d=b.length-100,e=await B(b.join("\n"),"glob"),f=e?`full list saved to ${e} — call Read({ file_path: "${e}", offset, limit }) to page through all ${b.length} paths, or tighten the pattern`:"tighten the pattern to see the rest";return b.slice(0,100).join("\n")+`
83
+
84
+ ...[${d} more paths omitted — ${b.length} total; ${f}]`}catch(a){return`Error: ${a.message}`}}}),Grep:(0,p.z6)({description:'Search for a pattern using ripgrep. Params: { thought, pattern, path (absolute, optional), ignore_case (default true), output_mode, "-n" }. ALWAYS use Grep for searching (never run rg/grep via Bash). output_mode: "content" returns matching lines; "files_with_matches" returns file paths; "count" returns counts. Output is capped at ~32KB (head + tail preserved with an explicit truncation marker). ripgrep also caps matches at 1000/file as a safety net. When truncation happens the full results are spilled to a temp file and the marker gives you its path — call Read({ file_path, offset, limit }) to page through, or tighten the pattern / restrict the path for a smaller result.'+E,inputSchema:(0,p.jN)(q.object({thought:D,pattern:q.string(),path:q.string().optional(),ignore_case:q.boolean().default(!0),output_mode:q.enum(["content","files_with_matches","count"]).default("content"),"-n":q.boolean().optional()})),execute:async({pattern:a,path:b,ignore_case:d,output_mode:e,"-n":f})=>{try{if(b&&!(0,h.isAbsolute)(b))return"Error: path must be an absolute path.";let g=b||c.cwd,i=["--no-heading","--color","never","--max-columns","500"];d&&i.push("--ignore-case");let j="1000";"files_with_matches"===e?(i.push("--files-with-matches"),i.push("--max-count",j)):"count"===e?i.push("--count"):(f??!0)&&(i.push("--line-number"),i.push("--max-count",j)),i.push("--",a,g);let{stdout:k}=await z(x.rgPath,i,{encoding:"utf-8",timeout:15e3,maxBuffer:0xa00000,env:{...process.env,FORCE_COLOR:"0"}}),l=k.length>32e3?await B(k,"grep"):void 0;return C(k,32e3,{label:"grep results",spillPath:l})}catch(a){if(1===a.code)return"(no matches)";return`Error: ${a.message}`}}}),TodoWrite:(0,p.z6)({description:"Plan and track progress. Use this as your FIRST tool call to break down the task into steps, then update after each step completes. Params: { thought, todos: [{ content, status, activeForm? }] }. Replaces the entire list. Statuses: pending | in_progress | completed. Keep at most one in_progress."+E,inputSchema:(0,p.jN)(q.object({thought:D,todos:q.array(q.object({content:q.string(),status:q.enum(["pending","in_progress","completed"]),activeForm:q.string().optional()}))})),execute:async({todos:a})=>{c.todos=a;let b=a.map(a=>`- [${a.status}] ${a.content}`).join("\n");return`Todo list updated:
85
+ ${b}`}})}),stopWhen:(0,d.wS)(256),temperature:0,abortSignal:a.signal}),G=new Map,H=a=>{if(0!==G.size){for(let[b]of G){try{o(k,r,b,a,{uuid:(0,e.randomUUID)(),timestamp:new Date().toISOString(),is_error:!0})}catch{}try{u(`data: ${JSON.stringify({type:"user",message:{content:[{type:"tool_result",tool_use_id:b,content:a,is_error:!0}]}})}
86
+
87
+ `)}catch{}}G.clear()}};try{let{text:b}=await F(A.fullStream,u,r,{onToolCall:(a,b,c)=>{try{G.set(a,{name:b,input:c}),n(k,r,[{type:"tool_use",id:a,name:b,input:c}],{uuid:(0,e.randomUUID)(),timestamp:new Date().toISOString()})}catch{}},onToolResult:(a,b)=>{try{G.delete(a),o(k,r,a,b,{uuid:(0,e.randomUUID)(),timestamp:new Date().toISOString(),is_error:!1})}catch{}},onTextFlush:a=>{try{n(k,r,[{type:"text",text:a}],{uuid:(0,e.randomUUID)(),timestamp:new Date().toISOString()})}catch{}}}),c=await A.usage;i=c.inputTokens||0,j=c.outputTokens||0,u(`data: ${JSON.stringify({type:"result",subtype:"success",usage:{input_tokens:i,output_tokens:j,cache_creation_input_tokens:0,cache_read_input_tokens:0},total_cost_usd:0})}
88
+
89
+ `),a.signal.aborted||n(k,r,b?[{type:"text",text:b}]:[],{uuid:(0,e.randomUUID)(),timestamp:new Date().toISOString(),usage:{input_tokens:c.inputTokens||0,output_tokens:c.outputTokens||0,cache_creation_input_tokens:0,cache_read_input_tokens:0}})}catch(b){if(a.signal.aborted)return void H("Tool call cancelled (request aborted).");throw H("Tool call failed (stream error)."),b}}}}}};