@surething/cockpit 1.0.261 → 1.0.263

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 (544) hide show
  1. package/.next-prod/BUILD_ID +1 -1
  2. package/.next-prod/app-path-routes-manifest.json +6 -3
  3. package/.next-prod/build-manifest.json +3 -3
  4. package/.next-prod/cockpit-build.json +2 -2
  5. package/.next-prod/prerender-manifest.json +4 -4
  6. package/.next-prod/react-loadable-manifest.json +1 -1
  7. package/.next-prod/routes-manifest.json +18 -0
  8. package/.next-prod/server/app/_global-error/page.js +2 -2
  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/_tree.segment.rsc +1 -1
  15. package/.next-prod/server/app/_not-found/page.js +1 -1
  16. package/.next-prod/server/app/_not-found/page_client-reference-manifest.js +1 -1
  17. package/.next-prod/server/app/_not-found.html +2 -2
  18. package/.next-prod/server/app/_not-found.rsc +4 -4
  19. package/.next-prod/server/app/_not-found.segments/_full.segment.rsc +4 -4
  20. package/.next-prod/server/app/_not-found.segments/_index.segment.rsc +12 -11
  21. package/.next-prod/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
  22. package/.next-prod/server/app/_not-found.segments/_tree.segment.rsc +2 -2
  23. package/.next-prod/server/app/api/agent/test/route.js +1 -1
  24. package/.next-prod/server/app/api/bash/route.js +1 -1
  25. package/.next-prod/server/app/api/chat/codex/route.js +1 -1
  26. package/.next-prod/server/app/api/chat/deepseek/route.js +1 -1
  27. package/.next-prod/server/app/api/chat/glm/route.js +1 -1
  28. package/.next-prod/server/app/api/chat/kimi/route.js +1 -1
  29. package/.next-prod/server/app/api/chat/ollama/route.js +1 -1
  30. package/.next-prod/server/app/api/chat/route.js +1 -1
  31. package/.next-prod/server/app/api/chat/stop/route.js +1 -1
  32. package/.next-prod/server/app/api/claude-stats/route.js +1 -1
  33. package/.next-prod/server/app/api/commands/route.js +1 -1
  34. package/.next-prod/server/app/api/comments/route.js +1 -1
  35. package/.next-prod/server/app/api/db/columns/route.js +1 -1
  36. package/.next-prod/server/app/api/db/connect/route.js +1 -1
  37. package/.next-prod/server/app/api/db/disconnect/route.js +1 -1
  38. package/.next-prod/server/app/api/db/export/route.js +1 -1
  39. package/.next-prod/server/app/api/db/query/route.js +1 -1
  40. package/.next-prod/server/app/api/db/schemas/route.js +2 -2
  41. package/.next-prod/server/app/api/deepseek/balance/route.js +1 -1
  42. package/.next-prod/server/app/api/deepseek/credentials/route.js +1 -1
  43. package/.next-prod/server/app/api/deepseek/models/route.js +1 -1
  44. package/.next-prod/server/app/api/dev/spans/route.js +1 -1
  45. package/.next-prod/server/app/api/extension/version/route.js +1 -1
  46. package/.next-prod/server/app/api/file/route.js +1 -1
  47. package/.next-prod/server/app/api/files/blame/route.js +1 -1
  48. package/.next-prod/server/app/api/files/clipboard/route.js +1 -1
  49. package/.next-prod/server/app/api/files/copy/route.js +1 -1
  50. package/.next-prod/server/app/api/files/delete/route.js +1 -1
  51. package/.next-prod/server/app/api/files/expanded/route.js +1 -1
  52. package/.next-prod/server/app/api/files/index/route.js +1 -1
  53. package/.next-prod/server/app/api/files/init/route.js +1 -1
  54. package/.next-prod/server/app/api/files/paste/route.js +1 -1
  55. package/.next-prod/server/app/api/files/read/route.js +1 -1
  56. package/.next-prod/server/app/api/files/readdir/route.js +1 -1
  57. package/.next-prod/server/app/api/files/recent/route.js +1 -1
  58. package/.next-prod/server/app/api/files/save/route.js +1 -1
  59. package/.next-prod/server/app/api/files/search/route.js +1 -1
  60. package/.next-prod/server/app/api/files/stat/route.js +1 -1
  61. package/.next-prod/server/app/api/files/text/route.js +1 -1
  62. package/.next-prod/server/app/api/git/branch-diff/route.js +1 -1
  63. package/.next-prod/server/app/api/git/branches/route.js +1 -1
  64. package/.next-prod/server/app/api/git/commit-diff/route.js +1 -1
  65. package/.next-prod/server/app/api/git/commits/route.js +1 -1
  66. package/.next-prod/server/app/api/git/current-branch/route.js +1 -1
  67. package/.next-prod/server/app/api/git/diff/route.js +1 -1
  68. package/.next-prod/server/app/api/git/discard/route.js +1 -1
  69. package/.next-prod/server/app/api/git/stage/route.js +1 -1
  70. package/.next-prod/server/app/api/git/status/route.js +1 -1
  71. package/.next-prod/server/app/api/git/unstage/route.js +1 -1
  72. package/.next-prod/server/app/api/git/worktree/route.js +1 -1
  73. package/.next-prod/server/app/api/glm/credentials/route.js +1 -1
  74. package/.next-prod/server/app/api/glm/models/route.js +1 -1
  75. package/.next-prod/server/app/api/glm/usage/route.js +1 -1
  76. package/.next-prod/server/app/api/global-state/route.js +1 -1
  77. package/.next-prod/server/app/api/health/route.js +1 -1
  78. package/.next-prod/server/app/api/html-apps/[id]/route.js +1 -1
  79. package/.next-prod/server/app/api/html-apps/route.js +1 -1
  80. package/.next-prod/server/app/api/jupyter/load/route.js +1 -1
  81. package/.next-prod/server/app/api/jupyter/save/route.js +1 -1
  82. package/.next-prod/server/app/api/jupyter/shutdown/route.js +1 -1
  83. package/.next-prod/server/app/api/kimi/credentials/route.js +1 -1
  84. package/.next-prod/server/app/api/kimi/models/route.js +1 -1
  85. package/.next-prod/server/app/api/kimi/usage/route.js +1 -1
  86. package/.next-prod/server/app/api/lsp/definition/route.js +1 -1
  87. package/.next-prod/server/app/api/lsp/hover/route.js +1 -1
  88. package/.next-prod/server/app/api/lsp/references/route.js +1 -1
  89. package/.next-prod/server/app/api/lsp/status/route.js +1 -1
  90. package/.next-prod/server/app/api/lsp/warmup/route.js +1 -1
  91. package/.next-prod/server/app/api/mysql/columns/route.js +2 -2
  92. package/.next-prod/server/app/api/mysql/connect/route.js +1 -1
  93. package/.next-prod/server/app/api/mysql/disconnect/route.js +1 -1
  94. package/.next-prod/server/app/api/mysql/export/route.js +1 -1
  95. package/.next-prod/server/app/api/mysql/query/route.js +1 -1
  96. package/.next-prod/server/app/api/mysql/schemas/route.js +1 -1
  97. package/.next-prod/server/app/api/neo4j/connect/route.js +1 -1
  98. package/.next-prod/server/app/api/neo4j/disconnect/route.js +1 -1
  99. package/.next-prod/server/app/api/neo4j/query/route.js +1 -1
  100. package/.next-prod/server/app/api/neo4j/schema/route.js +1 -1
  101. package/.next-prod/server/app/api/note/route.js +1 -1
  102. package/.next-prod/server/app/api/ollama/config/route.js +1 -1
  103. package/.next-prod/server/app/api/ollama/models/route.js +1 -1
  104. package/.next-prod/server/app/api/ollama/start/route.js +1 -1
  105. package/.next-prod/server/app/api/open-cursor/route.js +1 -1
  106. package/.next-prod/server/app/api/open-vscode/route.js +1 -1
  107. package/.next-prod/server/app/api/pick-folder/route.js +1 -1
  108. package/.next-prod/server/app/api/pinned-sessions/route.js +1 -1
  109. package/.next-prod/server/app/api/project-settings/route.js +1 -1
  110. package/.next-prod/server/app/api/project-state/route.js +2 -2
  111. package/.next-prod/server/app/api/projectGraph/affected/route.js +1 -1
  112. package/.next-prod/server/app/api/projectGraph/callees/route.js +1 -1
  113. package/.next-prod/server/app/api/projectGraph/callers/route.js +1 -1
  114. package/.next-prod/server/app/api/projectGraph/coedit/route.js +1 -1
  115. package/.next-prod/server/app/api/projectGraph/context/route.js +1 -1
  116. package/.next-prod/server/app/api/projectGraph/file/route.js +1 -1
  117. package/.next-prod/server/app/api/projectGraph/file-functions/route.js +1 -1
  118. package/.next-prod/server/app/api/projectGraph/impact/route.js +1 -1
  119. package/.next-prod/server/app/api/projectGraph/related/route.js +1 -1
  120. package/.next-prod/server/app/api/projectGraph/risk/route.js +1 -1
  121. package/.next-prod/server/app/api/projectGraph/search/route.js +1 -1
  122. package/.next-prod/server/app/api/projects/route.js +1 -1
  123. package/.next-prod/server/app/api/prompts/config/route.js +1 -1
  124. package/.next-prod/server/app/api/push/public-key/route.js +1 -1
  125. package/.next-prod/server/app/api/push/subscribe/route.js +1 -1
  126. package/.next-prod/server/app/api/push/unsubscribe/route.js +1 -1
  127. package/.next-prod/server/app/api/redis/command/route.js +1 -1
  128. package/.next-prod/server/app/api/redis/connect/route.js +1 -1
  129. package/.next-prod/server/app/api/redis/delete/route.js +1 -1
  130. package/.next-prod/server/app/api/redis/disconnect/route.js +1 -1
  131. package/.next-prod/server/app/api/redis/get/route.js +1 -1
  132. package/.next-prod/server/app/api/redis/keys/route.js +1 -1
  133. package/.next-prod/server/app/api/redis/set/route.js +1 -1
  134. package/.next-prod/server/app/api/restart/route.js +1 -0
  135. package/.next-prod/server/app/api/restart/route.js.nft.json +1 -0
  136. package/.next-prod/server/app/api/restart/route_client-reference-manifest.js +1 -0
  137. package/.next-prod/server/app/api/review/[id]/comments/route.js +1 -1
  138. package/.next-prod/server/app/api/review/[id]/replies/route.js +1 -1
  139. package/.next-prod/server/app/api/review/[id]/route.js +1 -1
  140. package/.next-prod/server/app/api/review/identify/route.js +1 -1
  141. package/.next-prod/server/app/api/review/order/route.js +1 -1
  142. package/.next-prod/server/app/api/review/route.js +1 -1
  143. package/.next-prod/server/app/api/review/share-info/route.js +1 -1
  144. package/.next-prod/server/app/api/review/users/route.js +1 -1
  145. package/.next-prod/server/app/api/scheduled-tasks/route.js +2 -2
  146. package/.next-prod/server/app/api/services/config/route.js +1 -1
  147. package/.next-prod/server/app/api/services/scripts/route.js +1 -1
  148. package/.next-prod/server/app/api/session/[sessionId]/fork/route.js +1 -1
  149. package/.next-prod/server/app/api/session/[sessionId]/history/route.js +1 -1
  150. package/.next-prod/server/app/api/session-by-path/route.js +1 -1
  151. package/.next-prod/server/app/api/sessions/projects/[encodedPath]/route.js +1 -1
  152. package/.next-prod/server/app/api/sessions/projects/route.js +1 -1
  153. package/.next-prod/server/app/api/sessions/route.js +1 -1
  154. package/.next-prod/server/app/api/settings/route.js +1 -1
  155. package/.next-prod/server/app/api/shutdown/route.js +1 -0
  156. package/.next-prod/server/app/api/shutdown/route.js.nft.json +1 -0
  157. package/.next-prod/server/app/api/shutdown/route_client-reference-manifest.js +1 -0
  158. package/.next-prod/server/app/api/skills/[id]/route.js +1 -1
  159. package/.next-prod/server/app/api/skills/content/route.js +1 -1
  160. package/.next-prod/server/app/api/skills/route.js +1 -1
  161. package/.next-prod/server/app/api/snapshots/diff/route.js +1 -1
  162. package/.next-prod/server/app/api/snapshots/route.js +1 -1
  163. package/.next-prod/server/app/api/terminal/aliases/route.js +1 -1
  164. package/.next-prod/server/app/api/terminal/autocomplete/route.js +1 -1
  165. package/.next-prod/server/app/api/terminal/bubble-order/route.js +1 -1
  166. package/.next-prod/server/app/api/terminal/env/route.js +1 -1
  167. package/.next-prod/server/app/api/terminal/history/route.js +1 -1
  168. package/.next-prod/server/app/api/update/route.js +1 -0
  169. package/.next-prod/server/app/api/update/route.js.nft.json +1 -0
  170. package/.next-prod/server/app/api/update/route_client-reference-manifest.js +1 -0
  171. package/.next-prod/server/app/api/version/route.js +1 -1
  172. package/.next-prod/server/app/apps/[...path]/route.js +1 -1
  173. package/.next-prod/server/app/favicon.ico/route.js +1 -1
  174. package/.next-prod/server/app/m/page.js +1 -1
  175. package/.next-prod/server/app/m/page_client-reference-manifest.js +1 -1
  176. package/.next-prod/server/app/manifest.webmanifest/route.js +2 -2
  177. package/.next-prod/server/app/page.js +1 -1
  178. package/.next-prod/server/app/page_client-reference-manifest.js +1 -1
  179. package/.next-prod/server/app/project/page.js +1 -1
  180. package/.next-prod/server/app/project/page_client-reference-manifest.js +1 -1
  181. package/.next-prod/server/app/review/[id]/page.js +1 -1
  182. package/.next-prod/server/app/review/[id]/page_client-reference-manifest.js +1 -1
  183. package/.next-prod/server/app-paths-manifest.json +6 -3
  184. package/.next-prod/server/chunks/1564.js +1 -1
  185. package/.next-prod/server/chunks/5750.js +42 -40
  186. package/.next-prod/server/chunks/6495.js +1 -1
  187. package/.next-prod/server/chunks/6548.js +1 -1
  188. package/.next-prod/server/chunks/7184.js +1 -1
  189. package/.next-prod/server/chunks/841.js +1 -1
  190. package/.next-prod/server/chunks/8764.js +2 -2
  191. package/.next-prod/server/functions-config-manifest.json +3 -0
  192. package/.next-prod/server/middleware-build-manifest.js +1 -1
  193. package/.next-prod/server/middleware-react-loadable-manifest.js +1 -1
  194. package/.next-prod/server/pages/404.html +2 -2
  195. package/.next-prod/server/pages/500.html +1 -1
  196. package/.next-prod/server/server-reference-manifest.json +1 -1
  197. package/.next-prod/static/Jy5sAJFfhng774VeXYdQS/_buildManifest.js +1 -0
  198. package/.next-prod/static/chunks/1372-c2e2e52980e95aec.js +15 -0
  199. package/.next-prod/static/chunks/{1959.a8039e13d14ada11.js → 1959.1d5dbd36400b94d2.js} +4 -4
  200. package/.next-prod/static/chunks/2032-8326efdf5830d58c.js +1 -0
  201. package/.next-prod/static/chunks/6722-1252a1399ff10e47.js +35 -0
  202. package/.next-prod/static/chunks/6784-20cc834d161af395.js +381 -0
  203. package/.next-prod/static/chunks/app/_global-error/page-7c7e4c414aa6453c.js +1 -0
  204. package/.next-prod/static/chunks/app/api/agent/test/route-7c7e4c414aa6453c.js +1 -0
  205. package/.next-prod/static/chunks/app/api/bash/route-7c7e4c414aa6453c.js +1 -0
  206. package/.next-prod/static/chunks/app/api/chat/codex/route-7c7e4c414aa6453c.js +1 -0
  207. package/.next-prod/static/chunks/app/api/chat/deepseek/route-7c7e4c414aa6453c.js +1 -0
  208. package/.next-prod/static/chunks/app/api/chat/glm/route-7c7e4c414aa6453c.js +1 -0
  209. package/.next-prod/static/chunks/app/api/chat/kimi/route-7c7e4c414aa6453c.js +1 -0
  210. package/.next-prod/static/chunks/app/api/chat/ollama/route-7c7e4c414aa6453c.js +1 -0
  211. package/.next-prod/static/chunks/app/api/chat/route-7c7e4c414aa6453c.js +1 -0
  212. package/.next-prod/static/chunks/app/api/chat/stop/route-7c7e4c414aa6453c.js +1 -0
  213. package/.next-prod/static/chunks/app/api/claude-stats/route-7c7e4c414aa6453c.js +1 -0
  214. package/.next-prod/static/chunks/app/api/commands/route-7c7e4c414aa6453c.js +1 -0
  215. package/.next-prod/static/chunks/app/api/comments/route-7c7e4c414aa6453c.js +1 -0
  216. package/.next-prod/static/chunks/app/api/db/columns/route-7c7e4c414aa6453c.js +1 -0
  217. package/.next-prod/static/chunks/app/api/db/connect/route-7c7e4c414aa6453c.js +1 -0
  218. package/.next-prod/static/chunks/app/api/db/disconnect/route-7c7e4c414aa6453c.js +1 -0
  219. package/.next-prod/static/chunks/app/api/db/export/route-7c7e4c414aa6453c.js +1 -0
  220. package/.next-prod/static/chunks/app/api/db/query/route-7c7e4c414aa6453c.js +1 -0
  221. package/.next-prod/static/chunks/app/api/db/schemas/route-7c7e4c414aa6453c.js +1 -0
  222. package/.next-prod/static/chunks/app/api/deepseek/balance/route-7c7e4c414aa6453c.js +1 -0
  223. package/.next-prod/static/chunks/app/api/deepseek/credentials/route-7c7e4c414aa6453c.js +1 -0
  224. package/.next-prod/static/chunks/app/api/deepseek/models/route-7c7e4c414aa6453c.js +1 -0
  225. package/.next-prod/static/chunks/app/api/dev/spans/route-7c7e4c414aa6453c.js +1 -0
  226. package/.next-prod/static/chunks/app/api/extension/version/route-7c7e4c414aa6453c.js +1 -0
  227. package/.next-prod/static/chunks/app/api/file/route-7c7e4c414aa6453c.js +1 -0
  228. package/.next-prod/static/chunks/app/api/files/blame/route-7c7e4c414aa6453c.js +1 -0
  229. package/.next-prod/static/chunks/app/api/files/clipboard/route-7c7e4c414aa6453c.js +1 -0
  230. package/.next-prod/static/chunks/app/api/files/copy/route-7c7e4c414aa6453c.js +1 -0
  231. package/.next-prod/static/chunks/app/api/files/delete/route-7c7e4c414aa6453c.js +1 -0
  232. package/.next-prod/static/chunks/app/api/files/expanded/route-7c7e4c414aa6453c.js +1 -0
  233. package/.next-prod/static/chunks/app/api/files/index/route-7c7e4c414aa6453c.js +1 -0
  234. package/.next-prod/static/chunks/app/api/files/init/route-7c7e4c414aa6453c.js +1 -0
  235. package/.next-prod/static/chunks/app/api/files/paste/route-7c7e4c414aa6453c.js +1 -0
  236. package/.next-prod/static/chunks/app/api/files/read/route-7c7e4c414aa6453c.js +1 -0
  237. package/.next-prod/static/chunks/app/api/files/readdir/route-7c7e4c414aa6453c.js +1 -0
  238. package/.next-prod/static/chunks/app/api/files/recent/route-7c7e4c414aa6453c.js +1 -0
  239. package/.next-prod/static/chunks/app/api/files/save/route-7c7e4c414aa6453c.js +1 -0
  240. package/.next-prod/static/chunks/app/api/files/search/route-7c7e4c414aa6453c.js +1 -0
  241. package/.next-prod/static/chunks/app/api/files/stat/route-7c7e4c414aa6453c.js +1 -0
  242. package/.next-prod/static/chunks/app/api/files/text/route-7c7e4c414aa6453c.js +1 -0
  243. package/.next-prod/static/chunks/app/api/git/branch-diff/route-7c7e4c414aa6453c.js +1 -0
  244. package/.next-prod/static/chunks/app/api/git/branches/route-7c7e4c414aa6453c.js +1 -0
  245. package/.next-prod/static/chunks/app/api/git/commit-diff/route-7c7e4c414aa6453c.js +1 -0
  246. package/.next-prod/static/chunks/app/api/git/commits/route-7c7e4c414aa6453c.js +1 -0
  247. package/.next-prod/static/chunks/app/api/git/current-branch/route-7c7e4c414aa6453c.js +1 -0
  248. package/.next-prod/static/chunks/app/api/git/diff/route-7c7e4c414aa6453c.js +1 -0
  249. package/.next-prod/static/chunks/app/api/git/discard/route-7c7e4c414aa6453c.js +1 -0
  250. package/.next-prod/static/chunks/app/api/git/stage/route-7c7e4c414aa6453c.js +1 -0
  251. package/.next-prod/static/chunks/app/api/git/status/route-7c7e4c414aa6453c.js +1 -0
  252. package/.next-prod/static/chunks/app/api/git/unstage/route-7c7e4c414aa6453c.js +1 -0
  253. package/.next-prod/static/chunks/app/api/git/worktree/route-7c7e4c414aa6453c.js +1 -0
  254. package/.next-prod/static/chunks/app/api/glm/credentials/route-7c7e4c414aa6453c.js +1 -0
  255. package/.next-prod/static/chunks/app/api/glm/models/route-7c7e4c414aa6453c.js +1 -0
  256. package/.next-prod/static/chunks/app/api/glm/usage/route-7c7e4c414aa6453c.js +1 -0
  257. package/.next-prod/static/chunks/app/api/global-state/route-7c7e4c414aa6453c.js +1 -0
  258. package/.next-prod/static/chunks/app/api/health/route-7c7e4c414aa6453c.js +1 -0
  259. package/.next-prod/static/chunks/app/api/html-apps/[id]/route-7c7e4c414aa6453c.js +1 -0
  260. package/.next-prod/static/chunks/app/api/html-apps/route-7c7e4c414aa6453c.js +1 -0
  261. package/.next-prod/static/chunks/app/api/jupyter/load/route-7c7e4c414aa6453c.js +1 -0
  262. package/.next-prod/static/chunks/app/api/jupyter/save/route-7c7e4c414aa6453c.js +1 -0
  263. package/.next-prod/static/chunks/app/api/jupyter/shutdown/route-7c7e4c414aa6453c.js +1 -0
  264. package/.next-prod/static/chunks/app/api/kimi/credentials/route-7c7e4c414aa6453c.js +1 -0
  265. package/.next-prod/static/chunks/app/api/kimi/models/route-7c7e4c414aa6453c.js +1 -0
  266. package/.next-prod/static/chunks/app/api/kimi/usage/route-7c7e4c414aa6453c.js +1 -0
  267. package/.next-prod/static/chunks/app/api/lsp/definition/route-7c7e4c414aa6453c.js +1 -0
  268. package/.next-prod/static/chunks/app/api/lsp/hover/route-7c7e4c414aa6453c.js +1 -0
  269. package/.next-prod/static/chunks/app/api/lsp/references/route-7c7e4c414aa6453c.js +1 -0
  270. package/.next-prod/static/chunks/app/api/lsp/status/route-7c7e4c414aa6453c.js +1 -0
  271. package/.next-prod/static/chunks/app/api/lsp/warmup/route-7c7e4c414aa6453c.js +1 -0
  272. package/.next-prod/static/chunks/app/api/mysql/columns/route-7c7e4c414aa6453c.js +1 -0
  273. package/.next-prod/static/chunks/app/api/mysql/connect/route-7c7e4c414aa6453c.js +1 -0
  274. package/.next-prod/static/chunks/app/api/mysql/disconnect/route-7c7e4c414aa6453c.js +1 -0
  275. package/.next-prod/static/chunks/app/api/mysql/export/route-7c7e4c414aa6453c.js +1 -0
  276. package/.next-prod/static/chunks/app/api/mysql/query/route-7c7e4c414aa6453c.js +1 -0
  277. package/.next-prod/static/chunks/app/api/mysql/schemas/route-7c7e4c414aa6453c.js +1 -0
  278. package/.next-prod/static/chunks/app/api/neo4j/connect/route-7c7e4c414aa6453c.js +1 -0
  279. package/.next-prod/static/chunks/app/api/neo4j/disconnect/route-7c7e4c414aa6453c.js +1 -0
  280. package/.next-prod/static/chunks/app/api/neo4j/query/route-7c7e4c414aa6453c.js +1 -0
  281. package/.next-prod/static/chunks/app/api/neo4j/schema/route-7c7e4c414aa6453c.js +1 -0
  282. package/.next-prod/static/chunks/app/api/note/route-7c7e4c414aa6453c.js +1 -0
  283. package/.next-prod/static/chunks/app/api/ollama/config/route-7c7e4c414aa6453c.js +1 -0
  284. package/.next-prod/static/chunks/app/api/ollama/models/route-7c7e4c414aa6453c.js +1 -0
  285. package/.next-prod/static/chunks/app/api/ollama/start/route-7c7e4c414aa6453c.js +1 -0
  286. package/.next-prod/static/chunks/app/api/open-cursor/route-7c7e4c414aa6453c.js +1 -0
  287. package/.next-prod/static/chunks/app/api/open-vscode/route-7c7e4c414aa6453c.js +1 -0
  288. package/.next-prod/static/chunks/app/api/pick-folder/route-7c7e4c414aa6453c.js +1 -0
  289. package/.next-prod/static/chunks/app/api/pinned-sessions/route-7c7e4c414aa6453c.js +1 -0
  290. package/.next-prod/static/chunks/app/api/project-settings/route-7c7e4c414aa6453c.js +1 -0
  291. package/.next-prod/static/chunks/app/api/project-state/route-7c7e4c414aa6453c.js +1 -0
  292. package/.next-prod/static/chunks/app/api/projectGraph/affected/route-7c7e4c414aa6453c.js +1 -0
  293. package/.next-prod/static/chunks/app/api/projectGraph/callees/route-7c7e4c414aa6453c.js +1 -0
  294. package/.next-prod/static/chunks/app/api/projectGraph/callers/route-7c7e4c414aa6453c.js +1 -0
  295. package/.next-prod/static/chunks/app/api/projectGraph/coedit/route-7c7e4c414aa6453c.js +1 -0
  296. package/.next-prod/static/chunks/app/api/projectGraph/context/route-7c7e4c414aa6453c.js +1 -0
  297. package/.next-prod/static/chunks/app/api/projectGraph/file/route-7c7e4c414aa6453c.js +1 -0
  298. package/.next-prod/static/chunks/app/api/projectGraph/file-functions/route-7c7e4c414aa6453c.js +1 -0
  299. package/.next-prod/static/chunks/app/api/projectGraph/impact/route-7c7e4c414aa6453c.js +1 -0
  300. package/.next-prod/static/chunks/app/api/projectGraph/related/route-7c7e4c414aa6453c.js +1 -0
  301. package/.next-prod/static/chunks/app/api/projectGraph/risk/route-7c7e4c414aa6453c.js +1 -0
  302. package/.next-prod/static/chunks/app/api/projectGraph/search/route-7c7e4c414aa6453c.js +1 -0
  303. package/.next-prod/static/chunks/app/api/projects/route-7c7e4c414aa6453c.js +1 -0
  304. package/.next-prod/static/chunks/app/api/prompts/config/route-7c7e4c414aa6453c.js +1 -0
  305. package/.next-prod/static/chunks/app/api/push/public-key/route-7c7e4c414aa6453c.js +1 -0
  306. package/.next-prod/static/chunks/app/api/push/subscribe/route-7c7e4c414aa6453c.js +1 -0
  307. package/.next-prod/static/chunks/app/api/push/unsubscribe/route-7c7e4c414aa6453c.js +1 -0
  308. package/.next-prod/static/chunks/app/api/redis/command/route-7c7e4c414aa6453c.js +1 -0
  309. package/.next-prod/static/chunks/app/api/redis/connect/route-7c7e4c414aa6453c.js +1 -0
  310. package/.next-prod/static/chunks/app/api/redis/delete/route-7c7e4c414aa6453c.js +1 -0
  311. package/.next-prod/static/chunks/app/api/redis/disconnect/route-7c7e4c414aa6453c.js +1 -0
  312. package/.next-prod/static/chunks/app/api/redis/get/route-7c7e4c414aa6453c.js +1 -0
  313. package/.next-prod/static/chunks/app/api/redis/keys/route-7c7e4c414aa6453c.js +1 -0
  314. package/.next-prod/static/chunks/app/api/redis/set/route-7c7e4c414aa6453c.js +1 -0
  315. package/.next-prod/static/chunks/app/api/restart/route-7c7e4c414aa6453c.js +1 -0
  316. package/.next-prod/static/chunks/app/api/review/[id]/comments/route-7c7e4c414aa6453c.js +1 -0
  317. package/.next-prod/static/chunks/app/api/review/[id]/replies/route-7c7e4c414aa6453c.js +1 -0
  318. package/.next-prod/static/chunks/app/api/review/[id]/route-7c7e4c414aa6453c.js +1 -0
  319. package/.next-prod/static/chunks/app/api/review/identify/route-7c7e4c414aa6453c.js +1 -0
  320. package/.next-prod/static/chunks/app/api/review/order/route-7c7e4c414aa6453c.js +1 -0
  321. package/.next-prod/static/chunks/app/api/review/route-7c7e4c414aa6453c.js +1 -0
  322. package/.next-prod/static/chunks/app/api/review/share-info/route-7c7e4c414aa6453c.js +1 -0
  323. package/.next-prod/static/chunks/app/api/review/users/route-7c7e4c414aa6453c.js +1 -0
  324. package/.next-prod/static/chunks/app/api/scheduled-tasks/route-7c7e4c414aa6453c.js +1 -0
  325. package/.next-prod/static/chunks/app/api/services/config/route-7c7e4c414aa6453c.js +1 -0
  326. package/.next-prod/static/chunks/app/api/services/scripts/route-7c7e4c414aa6453c.js +1 -0
  327. package/.next-prod/static/chunks/app/api/session/[sessionId]/fork/route-7c7e4c414aa6453c.js +1 -0
  328. package/.next-prod/static/chunks/app/api/session/[sessionId]/history/route-7c7e4c414aa6453c.js +1 -0
  329. package/.next-prod/static/chunks/app/api/session-by-path/route-7c7e4c414aa6453c.js +1 -0
  330. package/.next-prod/static/chunks/app/api/sessions/projects/[encodedPath]/route-7c7e4c414aa6453c.js +1 -0
  331. package/.next-prod/static/chunks/app/api/sessions/projects/route-7c7e4c414aa6453c.js +1 -0
  332. package/.next-prod/static/chunks/app/api/sessions/route-7c7e4c414aa6453c.js +1 -0
  333. package/.next-prod/static/chunks/app/api/settings/route-7c7e4c414aa6453c.js +1 -0
  334. package/.next-prod/static/chunks/app/api/shutdown/route-7c7e4c414aa6453c.js +1 -0
  335. package/.next-prod/static/chunks/app/api/skills/[id]/route-7c7e4c414aa6453c.js +1 -0
  336. package/.next-prod/static/chunks/app/api/skills/content/route-7c7e4c414aa6453c.js +1 -0
  337. package/.next-prod/static/chunks/app/api/skills/route-7c7e4c414aa6453c.js +1 -0
  338. package/.next-prod/static/chunks/app/api/snapshots/diff/route-7c7e4c414aa6453c.js +1 -0
  339. package/.next-prod/static/chunks/app/api/snapshots/route-7c7e4c414aa6453c.js +1 -0
  340. package/.next-prod/static/chunks/app/api/terminal/aliases/route-7c7e4c414aa6453c.js +1 -0
  341. package/.next-prod/static/chunks/app/api/terminal/autocomplete/route-7c7e4c414aa6453c.js +1 -0
  342. package/.next-prod/static/chunks/app/api/terminal/bubble-order/route-7c7e4c414aa6453c.js +1 -0
  343. package/.next-prod/static/chunks/app/api/terminal/env/route-7c7e4c414aa6453c.js +1 -0
  344. package/.next-prod/static/chunks/app/api/terminal/history/route-7c7e4c414aa6453c.js +1 -0
  345. package/.next-prod/static/chunks/app/api/update/route-7c7e4c414aa6453c.js +1 -0
  346. package/.next-prod/static/chunks/app/api/version/route-7c7e4c414aa6453c.js +1 -0
  347. package/.next-prod/static/chunks/app/apps/[...path]/route-7c7e4c414aa6453c.js +1 -0
  348. package/.next-prod/static/chunks/app/{layout-ab52fc1a83af968b.js → layout-b11ccf3395201b18.js} +1 -1
  349. package/.next-prod/static/chunks/app/m/page-d7c162f2db6b377c.js +1 -0
  350. package/.next-prod/static/chunks/app/manifest.webmanifest/route-7c7e4c414aa6453c.js +1 -0
  351. package/.next-prod/static/chunks/app/{page-5de8b6584e328a6f.js → page-e03b50ea13cd6198.js} +1 -1
  352. package/.next-prod/static/chunks/app/project/{page-5de8b6584e328a6f.js → page-e03b50ea13cd6198.js} +1 -1
  353. package/.next-prod/static/chunks/app/review/[id]/page-556db82704d074ab.js +1 -0
  354. package/.next-prod/static/chunks/next/dist/client/components/builtin/app-error-7c7e4c414aa6453c.js +1 -0
  355. package/.next-prod/static/chunks/next/dist/client/components/builtin/forbidden-7c7e4c414aa6453c.js +1 -0
  356. package/.next-prod/static/chunks/next/dist/client/components/builtin/not-found-7c7e4c414aa6453c.js +1 -0
  357. package/.next-prod/static/chunks/next/dist/client/components/builtin/unauthorized-7c7e4c414aa6453c.js +1 -0
  358. package/.next-prod/static/chunks/{webpack-ce60587570394496.js → webpack-e959a5364a05b2ac.js} +1 -1
  359. package/.next-prod/static/css/237348b31ba05918.css +1 -0
  360. package/.next-prod/trace +14 -14
  361. package/.next-prod/trace-build +1 -1
  362. package/.next-prod/types/app/api/restart/route.ts +353 -0
  363. package/.next-prod/types/app/api/shutdown/route.ts +353 -0
  364. package/.next-prod/types/app/api/update/route.ts +353 -0
  365. package/.next-prod/types/routes.d.ts +4 -1
  366. package/.next-prod/types/validator.ts +27 -0
  367. package/README.md +75 -0
  368. package/README.zh.md +64 -0
  369. package/bin/cock-service.mjs +498 -0
  370. package/bin/cock.mjs +35 -27
  371. package/bin/cockpitHome.mjs +33 -0
  372. package/bin/rotateLog.mjs +52 -0
  373. package/bin/updater.mjs +231 -0
  374. package/dist/{chunk-B5LXMESP.mjs → chunk-FBAFMLUC.mjs} +1 -1
  375. package/dist/{chunk-CLPJYIFC.mjs → chunk-H6AI4XJC.mjs} +4 -3
  376. package/dist/{chunk-TU3GL2HK.mjs → chunk-ZE2JXL6E.mjs} +18 -7
  377. package/dist/httpApi.mjs +2 -2
  378. package/dist/scheduledTasks.mjs +24 -4
  379. package/dist/{server-2UJDVZ32.mjs → server-HRP33LCV.mjs} +2 -2
  380. package/dist/wsServer.mjs +144 -112
  381. package/package.json +1 -1
  382. package/public/html-lib/json-viewer.js +9 -9
  383. package/public/html-lib/markdown.css +0 -7
  384. package/public/html-lib/markdown.js +1 -1
  385. package/public/html-lib/pdf-viewer.css +0 -11
  386. package/public/html-lib/pdf-viewer.js +1 -1
  387. package/public/html-lib/theme.css +95 -11
  388. package/server.mjs +127 -11
  389. package/.next-prod/static/chunks/1157-164bcf046a0a9b15.js +0 -32
  390. package/.next-prod/static/chunks/1372-d16d68b1b03a345a.js +0 -15
  391. package/.next-prod/static/chunks/2032-f224a93f7a22bc21.js +0 -1
  392. package/.next-prod/static/chunks/6784-09dffdb0e8ca7fb3.js +0 -381
  393. package/.next-prod/static/chunks/app/_global-error/page-3c1c06e2de280418.js +0 -1
  394. package/.next-prod/static/chunks/app/api/agent/test/route-3c1c06e2de280418.js +0 -1
  395. package/.next-prod/static/chunks/app/api/bash/route-3c1c06e2de280418.js +0 -1
  396. package/.next-prod/static/chunks/app/api/chat/codex/route-3c1c06e2de280418.js +0 -1
  397. package/.next-prod/static/chunks/app/api/chat/deepseek/route-3c1c06e2de280418.js +0 -1
  398. package/.next-prod/static/chunks/app/api/chat/glm/route-3c1c06e2de280418.js +0 -1
  399. package/.next-prod/static/chunks/app/api/chat/kimi/route-3c1c06e2de280418.js +0 -1
  400. package/.next-prod/static/chunks/app/api/chat/ollama/route-3c1c06e2de280418.js +0 -1
  401. package/.next-prod/static/chunks/app/api/chat/route-3c1c06e2de280418.js +0 -1
  402. package/.next-prod/static/chunks/app/api/chat/stop/route-3c1c06e2de280418.js +0 -1
  403. package/.next-prod/static/chunks/app/api/claude-stats/route-3c1c06e2de280418.js +0 -1
  404. package/.next-prod/static/chunks/app/api/commands/route-3c1c06e2de280418.js +0 -1
  405. package/.next-prod/static/chunks/app/api/comments/route-3c1c06e2de280418.js +0 -1
  406. package/.next-prod/static/chunks/app/api/db/columns/route-3c1c06e2de280418.js +0 -1
  407. package/.next-prod/static/chunks/app/api/db/connect/route-3c1c06e2de280418.js +0 -1
  408. package/.next-prod/static/chunks/app/api/db/disconnect/route-3c1c06e2de280418.js +0 -1
  409. package/.next-prod/static/chunks/app/api/db/export/route-3c1c06e2de280418.js +0 -1
  410. package/.next-prod/static/chunks/app/api/db/query/route-3c1c06e2de280418.js +0 -1
  411. package/.next-prod/static/chunks/app/api/db/schemas/route-3c1c06e2de280418.js +0 -1
  412. package/.next-prod/static/chunks/app/api/deepseek/balance/route-3c1c06e2de280418.js +0 -1
  413. package/.next-prod/static/chunks/app/api/deepseek/credentials/route-3c1c06e2de280418.js +0 -1
  414. package/.next-prod/static/chunks/app/api/deepseek/models/route-3c1c06e2de280418.js +0 -1
  415. package/.next-prod/static/chunks/app/api/dev/spans/route-3c1c06e2de280418.js +0 -1
  416. package/.next-prod/static/chunks/app/api/extension/version/route-3c1c06e2de280418.js +0 -1
  417. package/.next-prod/static/chunks/app/api/file/route-3c1c06e2de280418.js +0 -1
  418. package/.next-prod/static/chunks/app/api/files/blame/route-3c1c06e2de280418.js +0 -1
  419. package/.next-prod/static/chunks/app/api/files/clipboard/route-3c1c06e2de280418.js +0 -1
  420. package/.next-prod/static/chunks/app/api/files/copy/route-3c1c06e2de280418.js +0 -1
  421. package/.next-prod/static/chunks/app/api/files/delete/route-3c1c06e2de280418.js +0 -1
  422. package/.next-prod/static/chunks/app/api/files/expanded/route-3c1c06e2de280418.js +0 -1
  423. package/.next-prod/static/chunks/app/api/files/index/route-3c1c06e2de280418.js +0 -1
  424. package/.next-prod/static/chunks/app/api/files/init/route-3c1c06e2de280418.js +0 -1
  425. package/.next-prod/static/chunks/app/api/files/paste/route-3c1c06e2de280418.js +0 -1
  426. package/.next-prod/static/chunks/app/api/files/read/route-3c1c06e2de280418.js +0 -1
  427. package/.next-prod/static/chunks/app/api/files/readdir/route-3c1c06e2de280418.js +0 -1
  428. package/.next-prod/static/chunks/app/api/files/recent/route-3c1c06e2de280418.js +0 -1
  429. package/.next-prod/static/chunks/app/api/files/save/route-3c1c06e2de280418.js +0 -1
  430. package/.next-prod/static/chunks/app/api/files/search/route-3c1c06e2de280418.js +0 -1
  431. package/.next-prod/static/chunks/app/api/files/stat/route-3c1c06e2de280418.js +0 -1
  432. package/.next-prod/static/chunks/app/api/files/text/route-3c1c06e2de280418.js +0 -1
  433. package/.next-prod/static/chunks/app/api/git/branch-diff/route-3c1c06e2de280418.js +0 -1
  434. package/.next-prod/static/chunks/app/api/git/branches/route-3c1c06e2de280418.js +0 -1
  435. package/.next-prod/static/chunks/app/api/git/commit-diff/route-3c1c06e2de280418.js +0 -1
  436. package/.next-prod/static/chunks/app/api/git/commits/route-3c1c06e2de280418.js +0 -1
  437. package/.next-prod/static/chunks/app/api/git/current-branch/route-3c1c06e2de280418.js +0 -1
  438. package/.next-prod/static/chunks/app/api/git/diff/route-3c1c06e2de280418.js +0 -1
  439. package/.next-prod/static/chunks/app/api/git/discard/route-3c1c06e2de280418.js +0 -1
  440. package/.next-prod/static/chunks/app/api/git/stage/route-3c1c06e2de280418.js +0 -1
  441. package/.next-prod/static/chunks/app/api/git/status/route-3c1c06e2de280418.js +0 -1
  442. package/.next-prod/static/chunks/app/api/git/unstage/route-3c1c06e2de280418.js +0 -1
  443. package/.next-prod/static/chunks/app/api/git/worktree/route-3c1c06e2de280418.js +0 -1
  444. package/.next-prod/static/chunks/app/api/glm/credentials/route-3c1c06e2de280418.js +0 -1
  445. package/.next-prod/static/chunks/app/api/glm/models/route-3c1c06e2de280418.js +0 -1
  446. package/.next-prod/static/chunks/app/api/glm/usage/route-3c1c06e2de280418.js +0 -1
  447. package/.next-prod/static/chunks/app/api/global-state/route-3c1c06e2de280418.js +0 -1
  448. package/.next-prod/static/chunks/app/api/health/route-3c1c06e2de280418.js +0 -1
  449. package/.next-prod/static/chunks/app/api/html-apps/[id]/route-3c1c06e2de280418.js +0 -1
  450. package/.next-prod/static/chunks/app/api/html-apps/route-3c1c06e2de280418.js +0 -1
  451. package/.next-prod/static/chunks/app/api/jupyter/load/route-3c1c06e2de280418.js +0 -1
  452. package/.next-prod/static/chunks/app/api/jupyter/save/route-3c1c06e2de280418.js +0 -1
  453. package/.next-prod/static/chunks/app/api/jupyter/shutdown/route-3c1c06e2de280418.js +0 -1
  454. package/.next-prod/static/chunks/app/api/kimi/credentials/route-3c1c06e2de280418.js +0 -1
  455. package/.next-prod/static/chunks/app/api/kimi/models/route-3c1c06e2de280418.js +0 -1
  456. package/.next-prod/static/chunks/app/api/kimi/usage/route-3c1c06e2de280418.js +0 -1
  457. package/.next-prod/static/chunks/app/api/lsp/definition/route-3c1c06e2de280418.js +0 -1
  458. package/.next-prod/static/chunks/app/api/lsp/hover/route-3c1c06e2de280418.js +0 -1
  459. package/.next-prod/static/chunks/app/api/lsp/references/route-3c1c06e2de280418.js +0 -1
  460. package/.next-prod/static/chunks/app/api/lsp/status/route-3c1c06e2de280418.js +0 -1
  461. package/.next-prod/static/chunks/app/api/lsp/warmup/route-3c1c06e2de280418.js +0 -1
  462. package/.next-prod/static/chunks/app/api/mysql/columns/route-3c1c06e2de280418.js +0 -1
  463. package/.next-prod/static/chunks/app/api/mysql/connect/route-3c1c06e2de280418.js +0 -1
  464. package/.next-prod/static/chunks/app/api/mysql/disconnect/route-3c1c06e2de280418.js +0 -1
  465. package/.next-prod/static/chunks/app/api/mysql/export/route-3c1c06e2de280418.js +0 -1
  466. package/.next-prod/static/chunks/app/api/mysql/query/route-3c1c06e2de280418.js +0 -1
  467. package/.next-prod/static/chunks/app/api/mysql/schemas/route-3c1c06e2de280418.js +0 -1
  468. package/.next-prod/static/chunks/app/api/neo4j/connect/route-3c1c06e2de280418.js +0 -1
  469. package/.next-prod/static/chunks/app/api/neo4j/disconnect/route-3c1c06e2de280418.js +0 -1
  470. package/.next-prod/static/chunks/app/api/neo4j/query/route-3c1c06e2de280418.js +0 -1
  471. package/.next-prod/static/chunks/app/api/neo4j/schema/route-3c1c06e2de280418.js +0 -1
  472. package/.next-prod/static/chunks/app/api/note/route-3c1c06e2de280418.js +0 -1
  473. package/.next-prod/static/chunks/app/api/ollama/config/route-3c1c06e2de280418.js +0 -1
  474. package/.next-prod/static/chunks/app/api/ollama/models/route-3c1c06e2de280418.js +0 -1
  475. package/.next-prod/static/chunks/app/api/ollama/start/route-3c1c06e2de280418.js +0 -1
  476. package/.next-prod/static/chunks/app/api/open-cursor/route-3c1c06e2de280418.js +0 -1
  477. package/.next-prod/static/chunks/app/api/open-vscode/route-3c1c06e2de280418.js +0 -1
  478. package/.next-prod/static/chunks/app/api/pick-folder/route-3c1c06e2de280418.js +0 -1
  479. package/.next-prod/static/chunks/app/api/pinned-sessions/route-3c1c06e2de280418.js +0 -1
  480. package/.next-prod/static/chunks/app/api/project-settings/route-3c1c06e2de280418.js +0 -1
  481. package/.next-prod/static/chunks/app/api/project-state/route-3c1c06e2de280418.js +0 -1
  482. package/.next-prod/static/chunks/app/api/projectGraph/affected/route-3c1c06e2de280418.js +0 -1
  483. package/.next-prod/static/chunks/app/api/projectGraph/callees/route-3c1c06e2de280418.js +0 -1
  484. package/.next-prod/static/chunks/app/api/projectGraph/callers/route-3c1c06e2de280418.js +0 -1
  485. package/.next-prod/static/chunks/app/api/projectGraph/coedit/route-3c1c06e2de280418.js +0 -1
  486. package/.next-prod/static/chunks/app/api/projectGraph/context/route-3c1c06e2de280418.js +0 -1
  487. package/.next-prod/static/chunks/app/api/projectGraph/file/route-3c1c06e2de280418.js +0 -1
  488. package/.next-prod/static/chunks/app/api/projectGraph/file-functions/route-3c1c06e2de280418.js +0 -1
  489. package/.next-prod/static/chunks/app/api/projectGraph/impact/route-3c1c06e2de280418.js +0 -1
  490. package/.next-prod/static/chunks/app/api/projectGraph/related/route-3c1c06e2de280418.js +0 -1
  491. package/.next-prod/static/chunks/app/api/projectGraph/risk/route-3c1c06e2de280418.js +0 -1
  492. package/.next-prod/static/chunks/app/api/projectGraph/search/route-3c1c06e2de280418.js +0 -1
  493. package/.next-prod/static/chunks/app/api/projects/route-3c1c06e2de280418.js +0 -1
  494. package/.next-prod/static/chunks/app/api/prompts/config/route-3c1c06e2de280418.js +0 -1
  495. package/.next-prod/static/chunks/app/api/push/public-key/route-3c1c06e2de280418.js +0 -1
  496. package/.next-prod/static/chunks/app/api/push/subscribe/route-3c1c06e2de280418.js +0 -1
  497. package/.next-prod/static/chunks/app/api/push/unsubscribe/route-3c1c06e2de280418.js +0 -1
  498. package/.next-prod/static/chunks/app/api/redis/command/route-3c1c06e2de280418.js +0 -1
  499. package/.next-prod/static/chunks/app/api/redis/connect/route-3c1c06e2de280418.js +0 -1
  500. package/.next-prod/static/chunks/app/api/redis/delete/route-3c1c06e2de280418.js +0 -1
  501. package/.next-prod/static/chunks/app/api/redis/disconnect/route-3c1c06e2de280418.js +0 -1
  502. package/.next-prod/static/chunks/app/api/redis/get/route-3c1c06e2de280418.js +0 -1
  503. package/.next-prod/static/chunks/app/api/redis/keys/route-3c1c06e2de280418.js +0 -1
  504. package/.next-prod/static/chunks/app/api/redis/set/route-3c1c06e2de280418.js +0 -1
  505. package/.next-prod/static/chunks/app/api/review/[id]/comments/route-3c1c06e2de280418.js +0 -1
  506. package/.next-prod/static/chunks/app/api/review/[id]/replies/route-3c1c06e2de280418.js +0 -1
  507. package/.next-prod/static/chunks/app/api/review/[id]/route-3c1c06e2de280418.js +0 -1
  508. package/.next-prod/static/chunks/app/api/review/identify/route-3c1c06e2de280418.js +0 -1
  509. package/.next-prod/static/chunks/app/api/review/order/route-3c1c06e2de280418.js +0 -1
  510. package/.next-prod/static/chunks/app/api/review/route-3c1c06e2de280418.js +0 -1
  511. package/.next-prod/static/chunks/app/api/review/share-info/route-3c1c06e2de280418.js +0 -1
  512. package/.next-prod/static/chunks/app/api/review/users/route-3c1c06e2de280418.js +0 -1
  513. package/.next-prod/static/chunks/app/api/scheduled-tasks/route-3c1c06e2de280418.js +0 -1
  514. package/.next-prod/static/chunks/app/api/services/config/route-3c1c06e2de280418.js +0 -1
  515. package/.next-prod/static/chunks/app/api/services/scripts/route-3c1c06e2de280418.js +0 -1
  516. package/.next-prod/static/chunks/app/api/session/[sessionId]/fork/route-3c1c06e2de280418.js +0 -1
  517. package/.next-prod/static/chunks/app/api/session/[sessionId]/history/route-3c1c06e2de280418.js +0 -1
  518. package/.next-prod/static/chunks/app/api/session-by-path/route-3c1c06e2de280418.js +0 -1
  519. package/.next-prod/static/chunks/app/api/sessions/projects/[encodedPath]/route-3c1c06e2de280418.js +0 -1
  520. package/.next-prod/static/chunks/app/api/sessions/projects/route-3c1c06e2de280418.js +0 -1
  521. package/.next-prod/static/chunks/app/api/sessions/route-3c1c06e2de280418.js +0 -1
  522. package/.next-prod/static/chunks/app/api/settings/route-3c1c06e2de280418.js +0 -1
  523. package/.next-prod/static/chunks/app/api/skills/[id]/route-3c1c06e2de280418.js +0 -1
  524. package/.next-prod/static/chunks/app/api/skills/content/route-3c1c06e2de280418.js +0 -1
  525. package/.next-prod/static/chunks/app/api/skills/route-3c1c06e2de280418.js +0 -1
  526. package/.next-prod/static/chunks/app/api/snapshots/diff/route-3c1c06e2de280418.js +0 -1
  527. package/.next-prod/static/chunks/app/api/snapshots/route-3c1c06e2de280418.js +0 -1
  528. package/.next-prod/static/chunks/app/api/terminal/aliases/route-3c1c06e2de280418.js +0 -1
  529. package/.next-prod/static/chunks/app/api/terminal/autocomplete/route-3c1c06e2de280418.js +0 -1
  530. package/.next-prod/static/chunks/app/api/terminal/bubble-order/route-3c1c06e2de280418.js +0 -1
  531. package/.next-prod/static/chunks/app/api/terminal/env/route-3c1c06e2de280418.js +0 -1
  532. package/.next-prod/static/chunks/app/api/terminal/history/route-3c1c06e2de280418.js +0 -1
  533. package/.next-prod/static/chunks/app/api/version/route-3c1c06e2de280418.js +0 -1
  534. package/.next-prod/static/chunks/app/apps/[...path]/route-3c1c06e2de280418.js +0 -1
  535. package/.next-prod/static/chunks/app/m/page-7dcf56a65528216f.js +0 -1
  536. package/.next-prod/static/chunks/app/manifest.webmanifest/route-3c1c06e2de280418.js +0 -1
  537. package/.next-prod/static/chunks/app/review/[id]/page-c0136423507b7547.js +0 -1
  538. package/.next-prod/static/chunks/next/dist/client/components/builtin/app-error-3c1c06e2de280418.js +0 -1
  539. package/.next-prod/static/chunks/next/dist/client/components/builtin/forbidden-3c1c06e2de280418.js +0 -1
  540. package/.next-prod/static/chunks/next/dist/client/components/builtin/not-found-3c1c06e2de280418.js +0 -1
  541. package/.next-prod/static/chunks/next/dist/client/components/builtin/unauthorized-3c1c06e2de280418.js +0 -1
  542. package/.next-prod/static/css/83c134c954630942.css +0 -1
  543. package/.next-prod/static/pgteRwI6FQcp683smeSNO/_buildManifest.js +0 -1
  544. /package/.next-prod/static/{pgteRwI6FQcp683smeSNO → Jy5sAJFfhng774VeXYdQS}/_ssgManifest.js +0 -0
@@ -1,9 +1,9 @@
1
- "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1959],{71959:(e,t,i)=>{i.r(t),i.d(t,{XtermRenderer:()=>eu});var s,r,n,o=i(95155),a=i(12115),l=i(8422),h=class{activate(e){this._terminal=e}dispose(){}fit(){let e=this.proposeDimensions();if(!e||!this._terminal||isNaN(e.cols)||isNaN(e.rows))return;let t=this._terminal._core;(this._terminal.rows!==e.rows||this._terminal.cols!==e.cols)&&(t._renderService.clear(),this._terminal.resize(e.cols,e.rows))}proposeDimensions(){if(!this._terminal||!this._terminal.element||!this._terminal.element.parentElement)return;let e=this._terminal._core._renderService.dimensions;if(0===e.css.cell.width||0===e.css.cell.height)return;let t=0===this._terminal.options.scrollback?0:this._terminal.options.overviewRuler?.width||14,i=window.getComputedStyle(this._terminal.element.parentElement),s=parseInt(i.getPropertyValue("height")),r=Math.max(0,parseInt(i.getPropertyValue("width"))),n=window.getComputedStyle(this._terminal.element),o={top:parseInt(n.getPropertyValue("padding-top")),bottom:parseInt(n.getPropertyValue("padding-bottom")),right:parseInt(n.getPropertyValue("padding-right")),left:parseInt(n.getPropertyValue("padding-left"))},a=o.top+o.bottom;return{cols:Math.max(2,Math.floor((r-(o.right+o.left)-t)/e.css.cell.width)),rows:Math.max(1,Math.floor((s-a)/e.css.cell.height))}}},c=i(41463),u=new class{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout(()=>{throw e.stack?g.isErrorNoTelemetry(e)?new g(e.message+`
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1959],{71959:(e,t,i)=>{i.r(t),i.d(t,{XtermRenderer:()=>em});var r,s,n,o=i(95155),a=i(12115),l=i(8422),h=class{activate(e){this._terminal=e}dispose(){}fit(){let e=this.proposeDimensions();if(!e||!this._terminal||isNaN(e.cols)||isNaN(e.rows))return;let t=this._terminal._core;(this._terminal.rows!==e.rows||this._terminal.cols!==e.cols)&&(t._renderService.clear(),this._terminal.resize(e.cols,e.rows))}proposeDimensions(){if(!this._terminal||!this._terminal.element||!this._terminal.element.parentElement)return;let e=this._terminal._core._renderService.dimensions;if(0===e.css.cell.width||0===e.css.cell.height)return;let t=0===this._terminal.options.scrollback?0:this._terminal.options.overviewRuler?.width||14,i=window.getComputedStyle(this._terminal.element.parentElement),r=parseInt(i.getPropertyValue("height")),s=Math.max(0,parseInt(i.getPropertyValue("width"))),n=window.getComputedStyle(this._terminal.element),o={top:parseInt(n.getPropertyValue("padding-top")),bottom:parseInt(n.getPropertyValue("padding-bottom")),right:parseInt(n.getPropertyValue("padding-right")),left:parseInt(n.getPropertyValue("padding-left"))},a=o.top+o.bottom;return{cols:Math.max(2,Math.floor((s-(o.right+o.left)-t)/e.css.cell.width)),rows:Math.max(1,Math.floor((r-a)/e.css.cell.height))}}},c=i(41463),u=new class{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout(()=>{throw e.stack?g.isErrorNoTelemetry(e)?new g(e.message+`
2
2
 
3
3
  `+e.stack):Error(e.message+`
4
4
 
5
- `+e.stack):e},0)}}addListener(e){return this.listeners.push(e),()=>{this._removeListener(e)}}emit(e){this.listeners.forEach(t=>{t(e)})}_removeListener(e){this.listeners.splice(this.listeners.indexOf(e),1)}setUnexpectedErrorHandler(e){this.unexpectedErrorHandler=e}getUnexpectedErrorHandler(){return this.unexpectedErrorHandler}onUnexpectedError(e){this.unexpectedErrorHandler(e),this.emit(e)}onUnexpectedExternalError(e){this.unexpectedErrorHandler(e)}};function d(e){var t;(t=e)instanceof _||t instanceof Error&&t.name===f&&t.message===f||u.onUnexpectedError(e)}var f="Canceled",_=class extends Error{constructor(){super(f),this.name=this.message}},g=class e extends Error{constructor(e){super(e),this.name="CodeExpectedError"}static fromError(t){if(t instanceof e)return t;let i=new e;return i.message=t.message,i.stack=t.stack,i}static isErrorNoTelemetry(e){return"CodeExpectedError"===e.name}};(O=M||={}).isLessThan=function(e){return e<0},O.isLessThanOrEqual=function(e){return e<=0},O.isGreaterThan=function(e){return e>0},O.isNeitherLessOrGreaterThan=function(e){return 0===e},O.greaterThan=1,O.lessThan=-1,O.neitherLessOrGreaterThan=0;var m=class e{constructor(e){this.iterate=e}forEach(e){this.iterate(t=>(e(t),!0))}toArray(){let e=[];return this.iterate(t=>(e.push(t),!0)),e}filter(t){return new e(e=>this.iterate(i=>!t(i)||e(i)))}map(t){return new e(e=>this.iterate(i=>e(t(i))))}some(e){let t=!1;return this.iterate(i=>!(t=e(i))),t}findFirst(e){let t;return this.iterate(i=>!e(i)||(t=i,!1)),t}findLast(e){let t;return this.iterate(i=>(e(i)&&(t=i),!0)),t}findLastMaxBy(e){let t,i=!0;return this.iterate(s=>((i||M.isGreaterThan(e(s,t)))&&(i=!1,t=s),!0)),t}};m.empty=new m(e=>{});(e=>{function t(e){return e&&"object"==typeof e&&"function"==typeof e[Symbol.iterator]}e.is=t;let i=Object.freeze([]);function*s(e){yield e}e.empty=function(){return i},e.single=s,e.wrap=function(e){return t(e)?e:s(e)},e.from=function(e){return e||i},e.reverse=function*(e){for(let t=e.length-1;t>=0;t--)yield e[t]},e.isEmpty=function(e){return!e||!0===e[Symbol.iterator]().next().done},e.first=function(e){return e[Symbol.iterator]().next().value},e.some=function(e,t){let i=0;for(let s of e)if(t(s,i++))return!0;return!1},e.find=function(e,t){for(let i of e)if(t(i))return i},e.filter=function*(e,t){for(let i of e)t(i)&&(yield i)},e.map=function*(e,t){let i=0;for(let s of e)yield t(s,i++)},e.flatMap=function*(e,t){let i=0;for(let s of e)yield*t(s,i++)},e.concat=function*(...e){for(let t of e)yield*t},e.reduce=function(e,t,i){let s=i;for(let i of e)s=t(s,i);return s},e.slice=function*(e,t,i=e.length){for(t<0&&(t+=e.length),i<0?i+=e.length:i>e.length&&(i=e.length);t<i;t++)yield e[t]},e.consume=function(t,i=1/0){let s=[];if(0===i)return[s,t];let r=t[Symbol.iterator]();for(let t=0;t<i;t++){let t=r.next();if(t.done)return[s,e.empty()];s.push(t.value)}return[s,{[Symbol.iterator]:()=>r}]},e.asyncToArray=async function(e){let t=[];for await(let i of e)t.push(i);return Promise.resolve(t)}})(A||={});function p(e){return e}function v(e){}function w(e,t){}function C(e){if(A.is(e)){let t=[];for(let i of e)if(i)try{i.dispose()}catch(e){t.push(e)}if(1===t.length)throw t[0];if(t.length>1)throw AggregateError(t,"Encountered errors while disposing of store");return Array.isArray(e)?[]:e}if(e)return e.dispose(),e}function y(...e){let t=S(()=>C(e));return function(e,t){!1}(e,t),t}function S(e){let t=p({dispose:function(e){let t=this,i=!1,s;return function(){return i?s:(i=!0,s=e.apply(t,arguments))}}(()=>{v(t),e()})});return t}var b=class e{constructor(){this._toDispose=new Set,this._isDisposed=!1,p(this)}dispose(){this._isDisposed||(v(this),this._isDisposed=!0,this.clear())}get isDisposed(){return this._isDisposed}clear(){if(0!==this._toDispose.size)try{C(this._toDispose)}finally{this._toDispose.clear()}}add(t){if(!t)return t;if(t===this)throw Error("Cannot register a disposable on itself!");return w(t,this),this._isDisposed?e.DISABLE_DISPOSED_WARNING||console.warn(Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(t),t}delete(e){if(e){if(e===this)throw Error("Cannot dispose a disposable on itself!");this._toDispose.delete(e),e.dispose()}}deleteAndLeak(e){e&&this._toDispose.has(e)&&(this._toDispose.delete(e),w(e,null))}};b.DISABLE_DISPOSED_WARNING=!1;var L=class{constructor(){this._store=new b,p(this),w(this._store,this)}dispose(){v(this),this._store.dispose()}_register(e){if(e===this)throw Error("Cannot register a disposable on itself!");return this._store.add(e)}};L.None=Object.freeze({dispose(){}});var D=class{constructor(){this._isDisposed=!1,p(this)}get value(){return this._isDisposed?void 0:this._value}set value(e){this._isDisposed||e===this._value||(this._value?.dispose(),e&&w(e,this),this._value=e)}clear(){this.value=void 0}dispose(){this._isDisposed=!0,v(this),this._value?.dispose(),this._value=void 0}clearAndLeak(){let e=this._value;return this._value=void 0,e&&w(e,null),e}},R=class e{constructor(t){this.element=t,this.next=e.Undefined,this.prev=e.Undefined}};R.Undefined=new R(void 0);var T=globalThis.performance&&"function"==typeof globalThis.performance.now,k=class e{static create(t){return new e(t)}constructor(e){this._now=T&&!1===e?Date.now:globalThis.performance.now.bind(globalThis.performance),this._startTime=this._now(),this._stopTime=-1}stop(){this._stopTime=this._now()}reset(){this._startTime=this._now(),this._stopTime=-1}elapsed(){return -1!==this._stopTime?this._stopTime-this._startTime:this._now()-this._startTime}};(e=>{function t(e){}function i(e){return(t,i=null,s)=>{let r=!1,n;return n=e(e=>{if(!r)return n?n.dispose():r=!0,t.call(i,e)},null,s),r&&n.dispose(),n}}function s(e,t,i){return n((i,s=null,r)=>e(e=>i.call(s,t(e)),null,r),i)}function r(e,t,i){return n((i,s=null,r)=>e(e=>t(e)&&i.call(s,e),null,r),i)}function n(e,i){let s,r={onWillAddFirstListener(){s=e(n.fire,n)},onDidRemoveLastListener(){s?.dispose()}};i||t(r);let n=new q(r);return i?.add(n),n.event}function o(e,i,s=100,r=!1,n=!1,a,l){let h,c,u,d=0,f,_={leakWarningThreshold:a,onWillAddFirstListener(){h=e(e=>{d++,c=i(c,e),r&&!u&&(g.fire(c),c=void 0),f=()=>{let e=c;c=void 0,u=void 0,(!r||d>1)&&g.fire(e),d=0},"number"==typeof s?(clearTimeout(u),u=setTimeout(f,s)):void 0===u&&(u=0,queueMicrotask(f))})},onWillRemoveListener(){n&&d>0&&f?.()},onDidRemoveLastListener(){f=void 0,h.dispose()}};l||t(_);let g=new q(_);return l?.add(g),g.event}e.None=()=>L.None,e.defer=function(e,t){return o(e,()=>{},0,void 0,!0,void 0,t)},e.once=i,e.map=s,e.forEach=function(e,t,i){return n((i,s=null,r)=>e(e=>{t(e),i.call(s,e)},null,r),i)},e.filter=r,e.signal=function(e){return e},e.any=function(...e){return(t,i=null,s)=>{var r,n;return r=y(...e.map(e=>e(e=>t.call(i,e)))),(n=s)instanceof Array?n.push(r):n&&n.add(r),r}},e.reduce=function(e,t,i,r){let n=i;return s(e,e=>n=t(n,e),r)},e.debounce=o,e.accumulate=function(t,i=0,s){return e.debounce(t,(e,t)=>e?(e.push(t),e):[t],i,void 0,!0,void 0,s)},e.latch=function(e,t=(e,t)=>e===t,i){let s=!0,n;return r(e,e=>{let i=s||!t(e,n);return s=!1,n=e,i},i)},e.split=function(t,i,s){return[e.filter(t,i,s),e.filter(t,e=>!i(e),s)]},e.buffer=function(e,t=!1,i=[],s){let r=i.slice(),n=e(e=>{r?r.push(e):a.fire(e)});s&&s.add(n);let o=()=>{r?.forEach(e=>a.fire(e)),r=null},a=new q({onWillAddFirstListener(){n||(n=e(e=>a.fire(e)),s&&s.add(n))},onDidAddFirstListener(){r&&(t?setTimeout(o):o())},onDidRemoveLastListener(){n&&n.dispose(),n=null}});return s&&s.add(a),a.event},e.chain=function(e,t){return(i,s,r)=>{let n=t(new l);return e(function(e){let t=n.evaluate(e);t!==a&&i.call(s,t)},void 0,r)}};let a=Symbol("HaltChainable");class l{constructor(){this.steps=[]}map(e){return this.steps.push(e),this}forEach(e){return this.steps.push(t=>(e(t),t)),this}filter(e){return this.steps.push(t=>e(t)?t:a),this}reduce(e,t){let i=t;return this.steps.push(t=>i=e(i,t)),this}latch(e=(e,t)=>e===t){let t=!0,i;return this.steps.push(s=>{let r=t||!e(s,i);return t=!1,i=s,r?s:a}),this}evaluate(e){for(let t of this.steps)if((e=t(e))===a)break;return e}}e.fromNodeEventEmitter=function(e,t,i=e=>e){let s=(...e)=>r.fire(i(...e)),r=new q({onWillAddFirstListener:()=>e.on(t,s),onDidRemoveLastListener:()=>e.removeListener(t,s)});return r.event},e.fromDOMEventEmitter=function(e,t,i=e=>e){let s=(...e)=>r.fire(i(...e)),r=new q({onWillAddFirstListener:()=>e.addEventListener(t,s),onDidRemoveLastListener:()=>e.removeEventListener(t,s)});return r.event},e.toPromise=function(e){return new Promise(t=>i(e)(t))},e.fromPromise=function(e){let t=new q;return e.then(e=>{t.fire(e)},()=>{t.fire(void 0)}).finally(()=>{t.dispose()}),t.event},e.forward=function(e,t){return e(e=>t.fire(e))},e.runAndSubscribe=function(e,t,i){return t(i),e(e=>t(e))};class h{constructor(e,i){this._observable=e,this._counter=0,this._hasChanged=!1;let s={onWillAddFirstListener:()=>{e.addObserver(this)},onDidRemoveLastListener:()=>{e.removeObserver(this)}};i||t(s),this.emitter=new q(s),i&&i.add(this.emitter)}beginUpdate(e){this._counter++}handlePossibleChange(e){}handleChange(e,t){this._hasChanged=!0}endUpdate(e){this._counter--,0===this._counter&&(this._observable.reportChanges(),this._hasChanged&&(this._hasChanged=!1,this.emitter.fire(this._observable.get())))}}e.fromObservable=function(e,t){return new h(e,t).emitter.event},e.fromObservableLight=function(e){return(t,i,s)=>{let r=0,n=!1,o={beginUpdate(){r++},endUpdate(){0==--r&&(e.reportChanges(),n&&(n=!1,t.call(i)))},handlePossibleChange(){},handleChange(){n=!0}};e.addObserver(o),e.reportChanges();let a={dispose(){e.removeObserver(o)}};return s instanceof b?s.add(a):Array.isArray(s)&&s.push(a),a}}})(P||={});var x=class e{constructor(t){this.listenerCount=0,this.invocationCount=0,this.elapsedOverall=0,this.durations=[],this.name=`${t}_${e._idPool++}`,e.all.add(this)}start(e){this._stopWatch=new k,this.listenerCount=e}stop(){if(this._stopWatch){let e=this._stopWatch.elapsed();this.durations.push(e),this.elapsedOverall+=e,this.invocationCount+=1,this._stopWatch=void 0}}};x.all=new Set,x._idPool=0;var E=class e{constructor(t,i,s=(e._idPool++).toString(16).padStart(3,"0")){this._errorHandler=t,this.threshold=i,this.name=s,this._warnCountdown=0}dispose(){this._stacks?.clear()}check(e,t){let i=this.threshold;if(i<=0||t<i)return;this._stacks||(this._stacks=new Map);let s=this._stacks.get(e.value)||0;if(this._stacks.set(e.value,s+1),this._warnCountdown-=1,this._warnCountdown<=0){this._warnCountdown=.5*i;let[e,s]=this.getMostFrequentStack(),r=`[${this.name}] potential listener LEAK detected, having ${t} listeners already. MOST frequent listener (${s}):`;console.warn(r),console.warn(e);let n=new I(r,e);this._errorHandler(n)}return()=>{let t=this._stacks.get(e.value)||0;this._stacks.set(e.value,t-1)}}getMostFrequentStack(){if(!this._stacks)return;let e,t=0;for(let[i,s]of this._stacks)(!e||t<s)&&(e=[i,s],t=s);return e}};E._idPool=1;var O,M,A,P,W,N=class e{constructor(e){this.value=e}static create(){return new e(Error().stack??"")}print(){console.warn(this.value.split(`
5
+ `+e.stack):e},0)}}addListener(e){return this.listeners.push(e),()=>{this._removeListener(e)}}emit(e){this.listeners.forEach(t=>{t(e)})}_removeListener(e){this.listeners.splice(this.listeners.indexOf(e),1)}setUnexpectedErrorHandler(e){this.unexpectedErrorHandler=e}getUnexpectedErrorHandler(){return this.unexpectedErrorHandler}onUnexpectedError(e){this.unexpectedErrorHandler(e),this.emit(e)}onUnexpectedExternalError(e){this.unexpectedErrorHandler(e)}};function d(e){var t;(t=e)instanceof _||t instanceof Error&&t.name===f&&t.message===f||u.onUnexpectedError(e)}var f="Canceled",_=class extends Error{constructor(){super(f),this.name=this.message}},g=class e extends Error{constructor(e){super(e),this.name="CodeExpectedError"}static fromError(t){if(t instanceof e)return t;let i=new e;return i.message=t.message,i.stack=t.stack,i}static isErrorNoTelemetry(e){return"CodeExpectedError"===e.name}};(M=O||={}).isLessThan=function(e){return e<0},M.isLessThanOrEqual=function(e){return e<=0},M.isGreaterThan=function(e){return e>0},M.isNeitherLessOrGreaterThan=function(e){return 0===e},M.greaterThan=1,M.lessThan=-1,M.neitherLessOrGreaterThan=0;var m=class e{constructor(e){this.iterate=e}forEach(e){this.iterate(t=>(e(t),!0))}toArray(){let e=[];return this.iterate(t=>(e.push(t),!0)),e}filter(t){return new e(e=>this.iterate(i=>!t(i)||e(i)))}map(t){return new e(e=>this.iterate(i=>e(t(i))))}some(e){let t=!1;return this.iterate(i=>!(t=e(i))),t}findFirst(e){let t;return this.iterate(i=>!e(i)||(t=i,!1)),t}findLast(e){let t;return this.iterate(i=>(e(i)&&(t=i),!0)),t}findLastMaxBy(e){let t,i=!0;return this.iterate(r=>((i||O.isGreaterThan(e(r,t)))&&(i=!1,t=r),!0)),t}};m.empty=new m(e=>{});(e=>{function t(e){return e&&"object"==typeof e&&"function"==typeof e[Symbol.iterator]}e.is=t;let i=Object.freeze([]);function*r(e){yield e}e.empty=function(){return i},e.single=r,e.wrap=function(e){return t(e)?e:r(e)},e.from=function(e){return e||i},e.reverse=function*(e){for(let t=e.length-1;t>=0;t--)yield e[t]},e.isEmpty=function(e){return!e||!0===e[Symbol.iterator]().next().done},e.first=function(e){return e[Symbol.iterator]().next().value},e.some=function(e,t){let i=0;for(let r of e)if(t(r,i++))return!0;return!1},e.find=function(e,t){for(let i of e)if(t(i))return i},e.filter=function*(e,t){for(let i of e)t(i)&&(yield i)},e.map=function*(e,t){let i=0;for(let r of e)yield t(r,i++)},e.flatMap=function*(e,t){let i=0;for(let r of e)yield*t(r,i++)},e.concat=function*(...e){for(let t of e)yield*t},e.reduce=function(e,t,i){let r=i;for(let i of e)r=t(r,i);return r},e.slice=function*(e,t,i=e.length){for(t<0&&(t+=e.length),i<0?i+=e.length:i>e.length&&(i=e.length);t<i;t++)yield e[t]},e.consume=function(t,i=1/0){let r=[];if(0===i)return[r,t];let s=t[Symbol.iterator]();for(let t=0;t<i;t++){let t=s.next();if(t.done)return[r,e.empty()];r.push(t.value)}return[r,{[Symbol.iterator]:()=>s}]},e.asyncToArray=async function(e){let t=[];for await(let i of e)t.push(i);return Promise.resolve(t)}})(A||={});function p(e){return e}function v(e){}function w(e,t){}function b(e){if(A.is(e)){let t=[];for(let i of e)if(i)try{i.dispose()}catch(e){t.push(e)}if(1===t.length)throw t[0];if(t.length>1)throw AggregateError(t,"Encountered errors while disposing of store");return Array.isArray(e)?[]:e}if(e)return e.dispose(),e}function C(...e){let t=y(()=>b(e));return function(e,t){!1}(e,t),t}function y(e){let t=p({dispose:function(e){let t=this,i=!1,r;return function(){return i?r:(i=!0,r=e.apply(t,arguments))}}(()=>{v(t),e()})});return t}var S=class e{constructor(){this._toDispose=new Set,this._isDisposed=!1,p(this)}dispose(){this._isDisposed||(v(this),this._isDisposed=!0,this.clear())}get isDisposed(){return this._isDisposed}clear(){if(0!==this._toDispose.size)try{b(this._toDispose)}finally{this._toDispose.clear()}}add(t){if(!t)return t;if(t===this)throw Error("Cannot register a disposable on itself!");return w(t,this),this._isDisposed?e.DISABLE_DISPOSED_WARNING||console.warn(Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(t),t}delete(e){if(e){if(e===this)throw Error("Cannot dispose a disposable on itself!");this._toDispose.delete(e),e.dispose()}}deleteAndLeak(e){e&&this._toDispose.has(e)&&(this._toDispose.delete(e),w(e,null))}};S.DISABLE_DISPOSED_WARNING=!1;var L=class{constructor(){this._store=new S,p(this),w(this._store,this)}dispose(){v(this),this._store.dispose()}_register(e){if(e===this)throw Error("Cannot register a disposable on itself!");return this._store.add(e)}};L.None=Object.freeze({dispose(){}});var k=class{constructor(){this._isDisposed=!1,p(this)}get value(){return this._isDisposed?void 0:this._value}set value(e){this._isDisposed||e===this._value||(this._value?.dispose(),e&&w(e,this),this._value=e)}clear(){this.value=void 0}dispose(){this._isDisposed=!0,v(this),this._value?.dispose(),this._value=void 0}clearAndLeak(){let e=this._value;return this._value=void 0,e&&w(e,null),e}},R=class e{constructor(t){this.element=t,this.next=e.Undefined,this.prev=e.Undefined}};R.Undefined=new R(void 0);var D=globalThis.performance&&"function"==typeof globalThis.performance.now,T=class e{static create(t){return new e(t)}constructor(e){this._now=D&&!1===e?Date.now:globalThis.performance.now.bind(globalThis.performance),this._startTime=this._now(),this._stopTime=-1}stop(){this._stopTime=this._now()}reset(){this._startTime=this._now(),this._stopTime=-1}elapsed(){return -1!==this._stopTime?this._stopTime-this._startTime:this._now()-this._startTime}};(e=>{function t(e){}function i(e){return(t,i=null,r)=>{let s=!1,n;return n=e(e=>{if(!s)return n?n.dispose():s=!0,t.call(i,e)},null,r),s&&n.dispose(),n}}function r(e,t,i){return n((i,r=null,s)=>e(e=>i.call(r,t(e)),null,s),i)}function s(e,t,i){return n((i,r=null,s)=>e(e=>t(e)&&i.call(r,e),null,s),i)}function n(e,i){let r,s={onWillAddFirstListener(){r=e(n.fire,n)},onDidRemoveLastListener(){r?.dispose()}};i||t(s);let n=new q(s);return i?.add(n),n.event}function o(e,i,r=100,s=!1,n=!1,a,l){let h,c,u,d=0,f,_={leakWarningThreshold:a,onWillAddFirstListener(){h=e(e=>{d++,c=i(c,e),s&&!u&&(g.fire(c),c=void 0),f=()=>{let e=c;c=void 0,u=void 0,(!s||d>1)&&g.fire(e),d=0},"number"==typeof r?(clearTimeout(u),u=setTimeout(f,r)):void 0===u&&(u=0,queueMicrotask(f))})},onWillRemoveListener(){n&&d>0&&f?.()},onDidRemoveLastListener(){f=void 0,h.dispose()}};l||t(_);let g=new q(_);return l?.add(g),g.event}e.None=()=>L.None,e.defer=function(e,t){return o(e,()=>{},0,void 0,!0,void 0,t)},e.once=i,e.map=r,e.forEach=function(e,t,i){return n((i,r=null,s)=>e(e=>{t(e),i.call(r,e)},null,s),i)},e.filter=s,e.signal=function(e){return e},e.any=function(...e){return(t,i=null,r)=>{var s,n;return s=C(...e.map(e=>e(e=>t.call(i,e)))),(n=r)instanceof Array?n.push(s):n&&n.add(s),s}},e.reduce=function(e,t,i,s){let n=i;return r(e,e=>n=t(n,e),s)},e.debounce=o,e.accumulate=function(t,i=0,r){return e.debounce(t,(e,t)=>e?(e.push(t),e):[t],i,void 0,!0,void 0,r)},e.latch=function(e,t=(e,t)=>e===t,i){let r=!0,n;return s(e,e=>{let i=r||!t(e,n);return r=!1,n=e,i},i)},e.split=function(t,i,r){return[e.filter(t,i,r),e.filter(t,e=>!i(e),r)]},e.buffer=function(e,t=!1,i=[],r){let s=i.slice(),n=e(e=>{s?s.push(e):a.fire(e)});r&&r.add(n);let o=()=>{s?.forEach(e=>a.fire(e)),s=null},a=new q({onWillAddFirstListener(){n||(n=e(e=>a.fire(e)),r&&r.add(n))},onDidAddFirstListener(){s&&(t?setTimeout(o):o())},onDidRemoveLastListener(){n&&n.dispose(),n=null}});return r&&r.add(a),a.event},e.chain=function(e,t){return(i,r,s)=>{let n=t(new l);return e(function(e){let t=n.evaluate(e);t!==a&&i.call(r,t)},void 0,s)}};let a=Symbol("HaltChainable");class l{constructor(){this.steps=[]}map(e){return this.steps.push(e),this}forEach(e){return this.steps.push(t=>(e(t),t)),this}filter(e){return this.steps.push(t=>e(t)?t:a),this}reduce(e,t){let i=t;return this.steps.push(t=>i=e(i,t)),this}latch(e=(e,t)=>e===t){let t=!0,i;return this.steps.push(r=>{let s=t||!e(r,i);return t=!1,i=r,s?r:a}),this}evaluate(e){for(let t of this.steps)if((e=t(e))===a)break;return e}}e.fromNodeEventEmitter=function(e,t,i=e=>e){let r=(...e)=>s.fire(i(...e)),s=new q({onWillAddFirstListener:()=>e.on(t,r),onDidRemoveLastListener:()=>e.removeListener(t,r)});return s.event},e.fromDOMEventEmitter=function(e,t,i=e=>e){let r=(...e)=>s.fire(i(...e)),s=new q({onWillAddFirstListener:()=>e.addEventListener(t,r),onDidRemoveLastListener:()=>e.removeEventListener(t,r)});return s.event},e.toPromise=function(e){return new Promise(t=>i(e)(t))},e.fromPromise=function(e){let t=new q;return e.then(e=>{t.fire(e)},()=>{t.fire(void 0)}).finally(()=>{t.dispose()}),t.event},e.forward=function(e,t){return e(e=>t.fire(e))},e.runAndSubscribe=function(e,t,i){return t(i),e(e=>t(e))};class h{constructor(e,i){this._observable=e,this._counter=0,this._hasChanged=!1;let r={onWillAddFirstListener:()=>{e.addObserver(this)},onDidRemoveLastListener:()=>{e.removeObserver(this)}};i||t(r),this.emitter=new q(r),i&&i.add(this.emitter)}beginUpdate(e){this._counter++}handlePossibleChange(e){}handleChange(e,t){this._hasChanged=!0}endUpdate(e){this._counter--,0===this._counter&&(this._observable.reportChanges(),this._hasChanged&&(this._hasChanged=!1,this.emitter.fire(this._observable.get())))}}e.fromObservable=function(e,t){return new h(e,t).emitter.event},e.fromObservableLight=function(e){return(t,i,r)=>{let s=0,n=!1,o={beginUpdate(){s++},endUpdate(){0==--s&&(e.reportChanges(),n&&(n=!1,t.call(i)))},handlePossibleChange(){},handleChange(){n=!0}};e.addObserver(o),e.reportChanges();let a={dispose(){e.removeObserver(o)}};return r instanceof S?r.add(a):Array.isArray(r)&&r.push(a),a}}})(P||={});var x=class e{constructor(t){this.listenerCount=0,this.invocationCount=0,this.elapsedOverall=0,this.durations=[],this.name=`${t}_${e._idPool++}`,e.all.add(this)}start(e){this._stopWatch=new T,this.listenerCount=e}stop(){if(this._stopWatch){let e=this._stopWatch.elapsed();this.durations.push(e),this.elapsedOverall+=e,this.invocationCount+=1,this._stopWatch=void 0}}};x.all=new Set,x._idPool=0;var E=class e{constructor(t,i,r=(e._idPool++).toString(16).padStart(3,"0")){this._errorHandler=t,this.threshold=i,this.name=r,this._warnCountdown=0}dispose(){this._stacks?.clear()}check(e,t){let i=this.threshold;if(i<=0||t<i)return;this._stacks||(this._stacks=new Map);let r=this._stacks.get(e.value)||0;if(this._stacks.set(e.value,r+1),this._warnCountdown-=1,this._warnCountdown<=0){this._warnCountdown=.5*i;let[e,r]=this.getMostFrequentStack(),s=`[${this.name}] potential listener LEAK detected, having ${t} listeners already. MOST frequent listener (${r}):`;console.warn(s),console.warn(e);let n=new I(s,e);this._errorHandler(n)}return()=>{let t=this._stacks.get(e.value)||0;this._stacks.set(e.value,t-1)}}getMostFrequentStack(){if(!this._stacks)return;let e,t=0;for(let[i,r]of this._stacks)(!e||t<r)&&(e=[i,r],t=r);return e}};E._idPool=1;var M,O,A,P,N,W=class e{constructor(e){this.value=e}static create(){return new e(Error().stack??"")}print(){console.warn(this.value.split(`
6
6
  `).slice(2).join(`
7
- `))}},I=class extends Error{constructor(e,t){super(e),this.name="ListenerLeakError",this.stack=t}},z=class extends Error{constructor(e,t){super(e),this.name="ListenerRefusalError",this.stack=t}},B=0,F=class{constructor(e){this.value=e,this.id=B++}},H,q=class{constructor(e){this._size=0,this._options=e,this._leakageMon=this._options?.leakWarningThreshold?new E(e?.onListenerError??d,this._options?.leakWarningThreshold??-1):void 0,this._perfMon=this._options?._profName?new x(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??=(e,t,i)=>{if(this._leakageMon&&this._size>this._leakageMon.threshold**2){let e=`[${this._leakageMon.name}] REFUSES to accept new listeners because it exceeded its threshold by far (${this._size} vs ${this._leakageMon.threshold})`;console.warn(e);let t=this._leakageMon.getMostFrequentStack()??["UNKNOWN stack",-1],i=new z(`${e}. HINT: Stack shows most frequent listener (${t[1]}-times)`,t[0]);return(this._options?.onListenerError||d)(i),L.None}if(this._disposed)return L.None;t&&(e=e.bind(t));let s=new F(e),r;this._leakageMon&&this._size>=Math.ceil(.2*this._leakageMon.threshold)&&(s.stack=N.create(),r=this._leakageMon.check(s.stack,this._size+1)),this._listeners?this._listeners instanceof F?(this._deliveryQueue??=new U,this._listeners=[this._listeners,s]):this._listeners.push(s):(this._options?.onWillAddFirstListener?.(this),this._listeners=s,this._options?.onDidAddFirstListener?.(this)),this._size++;let n=S(()=>{W?.unregister(n),r?.(),this._removeListener(s)});if(i instanceof b?i.add(n):Array.isArray(i)&&i.push(n),W){let e=Error().stack.split(`
7
+ `))}},I=class extends Error{constructor(e,t){super(e),this.name="ListenerLeakError",this.stack=t}},z=class extends Error{constructor(e,t){super(e),this.name="ListenerRefusalError",this.stack=t}},B=0,F=class{constructor(e){this.value=e,this.id=B++}},H,q=class{constructor(e){this._size=0,this._options=e,this._leakageMon=this._options?.leakWarningThreshold?new E(e?.onListenerError??d,this._options?.leakWarningThreshold??-1):void 0,this._perfMon=this._options?._profName?new x(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??=(e,t,i)=>{if(this._leakageMon&&this._size>this._leakageMon.threshold**2){let e=`[${this._leakageMon.name}] REFUSES to accept new listeners because it exceeded its threshold by far (${this._size} vs ${this._leakageMon.threshold})`;console.warn(e);let t=this._leakageMon.getMostFrequentStack()??["UNKNOWN stack",-1],i=new z(`${e}. HINT: Stack shows most frequent listener (${t[1]}-times)`,t[0]);return(this._options?.onListenerError||d)(i),L.None}if(this._disposed)return L.None;t&&(e=e.bind(t));let r=new F(e),s;this._leakageMon&&this._size>=Math.ceil(.2*this._leakageMon.threshold)&&(r.stack=W.create(),s=this._leakageMon.check(r.stack,this._size+1)),this._listeners?this._listeners instanceof F?(this._deliveryQueue??=new U,this._listeners=[this._listeners,r]):this._listeners.push(r):(this._options?.onWillAddFirstListener?.(this),this._listeners=r,this._options?.onDidAddFirstListener?.(this)),this._size++;let n=y(()=>{N?.unregister(n),s?.(),this._removeListener(r)});if(i instanceof S?i.add(n):Array.isArray(i)&&i.push(n),N){let e=Error().stack.split(`
8
8
  `).slice(2,3).join(`
9
- `).trim(),t=/(file:|vscode-file:\/\/vscode-app)?(\/[^:]*:\d+:\d+)/.exec(e);W.register(n,t?.[2]??e,n)}return n},this._event}_removeListener(e){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 t=this._listeners,i=t.indexOf(e);if(-1===i)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--,t[i]=void 0;let s=this._deliveryQueue.current===this;if(2*this._size<=t.length){let e=0;for(let i=0;i<t.length;i++)t[i]?t[e++]=t[i]:s&&(this._deliveryQueue.end--,e<this._deliveryQueue.i&&this._deliveryQueue.i--);t.length=e}}_deliver(e,t){if(!e)return;let i=this._options?.onListenerError||d;if(!i)return void e.value(t);try{e.value(t)}catch(e){i(e)}}_deliverQueue(e){let t=e.current._listeners;for(;e.i<e.end;)this._deliver(t[e.i++],e.value);e.reset()}fire(e){if(this._deliveryQueue?.current&&(this._deliverQueue(this._deliveryQueue),this._perfMon?.stop()),this._perfMon?.start(this._size),this._listeners)if(this._listeners instanceof F)this._deliver(this._listeners,e);else{let t=this._deliveryQueue;t.enqueue(this,e,this._listeners.length),this._deliverQueue(t)}this._perfMon?.stop()}hasListeners(){return this._size>0}},U=class{constructor(){this.i=-1,this.end=0}enqueue(e,t,i){this.i=0,this.end=i,this.current=e,this.value=t}reset(){this.i=this.end,this.current=void 0,this.value=void 0}},j=Object.freeze(function(e,t){let i=setTimeout(e.bind(t),0);return{dispose(){clearTimeout(i)}}});(Q=H||={}).isCancellationToken=function(e){return e===Q.None||e===Q.Cancelled||e instanceof $||!!e&&"object"==typeof e&&"boolean"==typeof e.isCancellationRequested&&"function"==typeof e.onCancellationRequested},Q.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:P.None}),Q.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:j});var Q,Y,$=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?j:(this._emitter||(this._emitter=new q),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}},V=!1,G="en",J=globalThis;if("u">typeof J.vscode&&"u">typeof J.vscode.process&&J.vscode.process,"object"==typeof c){c.platform,c.platform,"linux"===c.platform&&c.env.SNAP&&c.env.SNAP_REVISION,c.env.CI||c.env.BUILD_ARTIFACTSTAGINGDIRECTORY,G="en";let e=c.env.VSCODE_NLS_CONFIG;if(e)try{let t=JSON.parse(e);t.userLocale,t.osLocale,G=t.resolvedLanguage||"en",t.languagePack?.translationsConfigFile}catch{}}else"object"!=typeof navigator?console.error("Unable to resolve platform."):((Y=navigator.userAgent).indexOf("Windows"),Y.indexOf("Macintosh"),(Y.indexOf("Macintosh")>=0||Y.indexOf("iPad")>=0||Y.indexOf("iPhone")>=0)&&navigator.maxTouchPoints&&navigator.maxTouchPoints,Y.indexOf("Linux"),Y?.indexOf("Mobi"),V=!0,G=globalThis._VSCODE_NLS_LANGUAGE||"en",navigator.language.toLowerCase());V&&"function"==typeof J.importScripts&&J.origin;var K,X=Y,Z=G;(s=K||={}).value=function(){return Z},s.isDefaultVariant=function(){return 2===Z.length?"en"===Z:Z.length>=3&&"e"===Z[0]&&"n"===Z[1]&&"-"===Z[2]},s.isDefault=function(){return"en"===Z};var ee="function"==typeof J.postMessage&&!J.importScripts,et=(()=>{if(ee){let e=[];J.addEventListener("message",t=>{if(t.data&&t.data.vscodeScheduleAsyncWork)for(let i=0,s=e.length;i<s;i++){let s=e[i];if(s.id===t.data.vscodeScheduleAsyncWork){e.splice(i,1),s.callback();return}}});let t=0;return i=>{let s=++t;e.push({id:s,callback:i}),J.postMessage({vscodeScheduleAsyncWork:s},"*")}}return e=>setTimeout(e)})(),ei=!!(X&&X.indexOf("Chrome")>=0);function es(e,t=0,i){let s=setTimeout(()=>{e(),i&&r.dispose()},t),r=S(()=>{clearTimeout(s),i?.deleteAndLeak(r)});return i?.add(r),r}X&&X.indexOf("Firefox"),!ei&&X&&X.indexOf("Safari"),X&&X.indexOf("Edg/"),X&&X.indexOf("Android"),Symbol("MicrotaskDelay"),(r=n||={}).settled=async function(e){let t,i=await Promise.all(e.map(e=>e.then(e=>e,e=>{t||(t=e)})));if("u">typeof t)throw t;return i},r.withAsyncBody=function(e){return new Promise(async(t,i)=>{try{await e(t,i)}catch(e){i(e)}})};var er=class e{static fromArray(t){return new e(e=>{e.emitMany(t)})}static fromPromise(t){return new e(async e=>{e.emitMany(await t)})}static fromPromises(t){return new e(async e=>{await Promise.all(t.map(async t=>e.emitOne(await t)))})}static merge(t){return new e(async e=>{await Promise.all(t.map(async t=>{for await(let i of t)e.emitOne(i)}))})}constructor(e,t){this._state=0,this._results=[],this._error=null,this._onReturn=t,this._onStateChanged=new q,queueMicrotask(async()=>{let t={emitOne:e=>this.emitOne(e),emitMany:e=>this.emitMany(e),reject:e=>this.reject(e)};try{await Promise.resolve(e(t)),this.resolve()}catch(e){this.reject(e)}finally{t.emitOne=void 0,t.emitMany=void 0,t.reject=void 0}})}[Symbol.asyncIterator](){let e=0;return{next:async()=>{for(;;){if(2===this._state)throw this._error;if(e<this._results.length)return{done:!1,value:this._results[e++]};if(1===this._state)return{done:!0,value:void 0};await P.toPromise(this._onStateChanged.event)}},return:async()=>(this._onReturn?.(),{done:!0,value:void 0})}}static map(t,i){return new e(async e=>{for await(let s of t)e.emitOne(i(s))})}map(t){return e.map(this,t)}static filter(t,i){return new e(async e=>{for await(let s of t)i(s)&&e.emitOne(s)})}filter(t){return e.filter(this,t)}static coalesce(t){return e.filter(t,e=>!!e)}coalesce(){return e.coalesce(this)}static async toPromise(e){let t=[];for await(let i of e)t.push(i);return t}toPromise(){return e.toPromise(this)}emitOne(e){0===this._state&&(this._results.push(e),this._onStateChanged.fire())}emitMany(e){0===this._state&&(this._results=this._results.concat(e),this._onStateChanged.fire())}resolve(){0===this._state&&(this._state=1,this._onStateChanged.fire())}reject(e){0===this._state&&(this._state=2,this._error=e,this._onStateChanged.fire())}};er.EMPTY=er.fromArray([]);var en=class extends L{constructor(e){super(),this._terminal=e,this._linesCacheTimeout=this._register(new D),this._linesCacheDisposables=this._register(new D),this._register(S(()=>this._destroyLinesCache()))}initLinesCache(){this._linesCache||(this._linesCache=Array(this._terminal.buffer.active.length),this._linesCacheDisposables.value=y(this._terminal.onLineFeed(()=>this._destroyLinesCache()),this._terminal.onCursorMove(()=>this._destroyLinesCache()),this._terminal.onResize(()=>this._destroyLinesCache()))),this._linesCacheTimeout.value=es(()=>this._destroyLinesCache(),15e3)}_destroyLinesCache(){this._linesCache=void 0,this._linesCacheDisposables.clear(),this._linesCacheTimeout.clear()}getLineFromCache(e){return this._linesCache?.[e]}setLineInCache(e,t){this._linesCache&&(this._linesCache[e]=t)}translateBufferLineToStringWithWrap(e,t){let i=[],s=[0],r=this._terminal.buffer.active.getLine(e);for(;r;){let n=this._terminal.buffer.active.getLine(e+1),o=!!n&&n.isWrapped,a=r.translateToString(!o&&t);if(o&&n){let e=r.getCell(r.length-1);e&&0===e.getCode()&&1===e.getWidth()&&n.getCell(0)?.getWidth()===2&&(a=a.slice(0,-1))}if(i.push(a),o)s.push(s[s.length-1]+a.length);else break;e++,r=n}return[i.join(""),s]}},eo=class{get cachedSearchTerm(){return this._cachedSearchTerm}set cachedSearchTerm(e){this._cachedSearchTerm=e}get lastSearchOptions(){return this._lastSearchOptions}set lastSearchOptions(e){this._lastSearchOptions=e}isValidSearchTerm(e){return!!(e&&e.length>0)}didOptionsChange(e){return!this._lastSearchOptions||!!e&&(this._lastSearchOptions.caseSensitive!==e.caseSensitive||this._lastSearchOptions.regex!==e.regex||this._lastSearchOptions.wholeWord!==e.wholeWord)}shouldUpdateHighlighting(e,t){return!!t?.decorations&&(void 0===this._cachedSearchTerm||e!==this._cachedSearchTerm||this.didOptionsChange(t))}clearCachedTerm(){this._cachedSearchTerm=void 0}reset(){this._cachedSearchTerm=void 0,this._lastSearchOptions=void 0}},ea=class{constructor(e,t){this._terminal=e,this._lineCache=t}find(e,t,i,s){if(!e||0===e.length)return void this._terminal.clearSelection();if(i>this._terminal.cols)throw Error(`Invalid col: ${i} to search in terminal of ${this._terminal.cols} cols`);this._lineCache.initLinesCache();let r={startRow:t,startCol:i},n=this._findInLine(e,r,s);if(!n)for(let i=t+1;i<this._terminal.buffer.active.baseY+this._terminal.rows&&(r.startRow=i,r.startCol=0,!(n=this._findInLine(e,r,s)));i++);return n}findNextWithSelection(e,t,i){if(!e||0===e.length)return void this._terminal.clearSelection();let s=this._terminal.getSelectionPosition();this._terminal.clearSelection();let r=0,n=0;s&&(i===e?(r=s.end.x,n=s.end.y):(r=s.start.x,n=s.start.y)),this._lineCache.initLinesCache();let o={startRow:n,startCol:r},a=this._findInLine(e,o,t);if(!a)for(let i=n+1;i<this._terminal.buffer.active.baseY+this._terminal.rows&&(o.startRow=i,o.startCol=0,!(a=this._findInLine(e,o,t)));i++);if(!a&&0!==n)for(let i=0;i<n&&(o.startRow=i,o.startCol=0,!(a=this._findInLine(e,o,t)));i++);return!a&&s&&(o.startRow=s.start.y,o.startCol=0,a=this._findInLine(e,o,t)),a}findPreviousWithSelection(e,t,i){if(!e||0===e.length)return void this._terminal.clearSelection();let s=this._terminal.getSelectionPosition();this._terminal.clearSelection();let r=this._terminal.buffer.active.baseY+this._terminal.rows-1,n=this._terminal.cols;this._lineCache.initLinesCache();let o={startRow:r,startCol:n},a;if(s&&(o.startRow=r=s.start.y,o.startCol=n=s.start.x,i!==e&&((a=this._findInLine(e,o,t,!1))||(o.startRow=r=s.end.y,o.startCol=n=s.end.x))),a||(a=this._findInLine(e,o,t,!0)),!a){o.startCol=Math.max(o.startCol,this._terminal.cols);for(let i=r-1;i>=0&&(o.startRow=i,!(a=this._findInLine(e,o,t,!0)));i--);}if(!a&&r!==this._terminal.buffer.active.baseY+this._terminal.rows-1)for(let i=this._terminal.buffer.active.baseY+this._terminal.rows-1;i>=r&&(o.startRow=i,!(a=this._findInLine(e,o,t,!0)));i--);return a}_isWholeWord(e,t,i){return(0===e||" ~!@#$%^&*()+`-=[]{}|\\;:\"',./<>?".includes(t[e-1]))&&(e+i.length===t.length||" ~!@#$%^&*()+`-=[]{}|\\;:\"',./<>?".includes(t[e+i.length]))}_findInLine(e,t,i={},s=!1){let r=t.startRow,n=t.startCol;if(this._terminal.buffer.active.getLine(r)?.isWrapped){if(s){t.startCol+=this._terminal.cols;return}return t.startRow--,t.startCol+=this._terminal.cols,this._findInLine(e,t,i)}let o=this._lineCache.getLineFromCache(r);o||(o=this._lineCache.translateBufferLineToStringWithWrap(r,!0),this._lineCache.setLineInCache(r,o));let[a,l]=o,h=this._bufferColsToStringOffset(r,n),c=e,u=a;i.regex||(c=i.caseSensitive?e:e.toLowerCase(),u=i.caseSensitive?a:a.toLowerCase());let d=-1;if(i.regex){let t=RegExp(c,i.caseSensitive?"g":"gi"),r;if(s)for(;r=t.exec(u.slice(0,h));)d=t.lastIndex-r[0].length,e=r[0],t.lastIndex-=e.length-1;else(r=t.exec(u.slice(h)))&&r[0].length>0&&(d=h+(t.lastIndex-r[0].length),e=r[0])}else s?h-c.length>=0&&(d=u.lastIndexOf(c,h-c.length)):d=u.indexOf(c,h);if(d>=0){if(i.wholeWord&&!this._isWholeWord(d,u,e))return;let t=0;for(;t<l.length-1&&d>=l[t+1];)t++;let s=t;for(;s<l.length-1&&d+e.length>=l[s+1];)s++;let n=d-l[t],o=d+e.length-l[s],a=this._stringLengthToBufferSize(r+t,n),h=this._stringLengthToBufferSize(r+s,o)-a+this._terminal.cols*(s-t);return{term:e,col:a,row:r+t,size:h}}}_stringLengthToBufferSize(e,t){let i=this._terminal.buffer.active.getLine(e);if(!i)return 0;for(let e=0;e<t;e++){let s=i.getCell(e);if(!s)break;let r=s.getChars();r.length>1&&(t-=r.length-1);let n=i.getCell(e+1);n&&0===n.getWidth()&&t++}return t}_bufferColsToStringOffset(e,t){let i=e,s=0,r=this._terminal.buffer.active.getLine(i);for(;t>0&&r;){for(let e=0;e<t&&e<this._terminal.cols;e++){let t=r.getCell(e);if(!t)break;t.getWidth()&&(s+=0===t.getCode()?1:t.getChars().length)}if(i++,(r=this._terminal.buffer.active.getLine(i))&&!r.isWrapped)break;t-=this._terminal.cols}return s}},el=class extends L{constructor(e){super(),this._terminal=e,this._highlightDecorations=[],this._highlightedLines=new Set,this._register(S(()=>this.clearHighlightDecorations()))}createHighlightDecorations(e,t){for(let i of(this.clearHighlightDecorations(),e)){let e=this._createResultDecorations(i,t,!1);if(e)for(let t of e)this._storeDecoration(t,i)}}createActiveDecoration(e,t){let i=this._createResultDecorations(e,t,!0);if(i)return{decorations:i,match:e,dispose(){C(i)}}}clearHighlightDecorations(){C(this._highlightDecorations),this._highlightDecorations=[],this._highlightedLines.clear()}_storeDecoration(e,t){this._highlightedLines.add(e.marker.line),this._highlightDecorations.push({decoration:e,match:t,dispose(){e.dispose()}})}_applyStyles(e,t,i){e.classList.contains("xterm-find-result-decoration")||(e.classList.add("xterm-find-result-decoration"),t&&(e.style.outline=`1px solid ${t}`)),i&&e.classList.add("xterm-find-active-result-decoration")}_createResultDecorations(e,t,i){let s=[],r=e.col,n=e.size,o=-this._terminal.buffer.active.baseY-this._terminal.buffer.active.cursorY+e.row;for(;n>0;){let e=Math.min(this._terminal.cols-r,n);s.push([o,r,e]),r=0,n-=e,o++}let a=[];for(let e of s){let s=this._terminal.registerMarker(e[0]),r=this._terminal.registerDecoration({marker:s,x:e[1],width:e[2],backgroundColor:i?t.activeMatchBackground:t.matchBackground,overviewRulerOptions:this._highlightedLines.has(s.line)?void 0:{color:i?t.activeMatchColorOverviewRuler:t.matchOverviewRuler,position:"center"}});if(r){let e=[];e.push(s),e.push(r.onRender(e=>this._applyStyles(e,i?t.activeMatchBorder:t.matchBorder,!1))),e.push(r.onDispose(()=>C(e))),a.push(r)}}return 0===a.length?void 0:a}},eh=class extends L{constructor(){super(...arguments),this._searchResults=[],this._onDidChangeResults=this._register(new q)}get onDidChangeResults(){return this._onDidChangeResults.event}get searchResults(){return this._searchResults}get selectedDecoration(){return this._selectedDecoration}set selectedDecoration(e){this._selectedDecoration=e}updateResults(e,t){this._searchResults=e.slice(0,t)}clearResults(){this._searchResults=[]}clearSelectedDecoration(){this._selectedDecoration&&(this._selectedDecoration.dispose(),this._selectedDecoration=void 0)}findResultIndex(e){for(let t=0;t<this._searchResults.length;t++){let i=this._searchResults[t];if(i.row===e.row&&i.col===e.col&&i.size===e.size)return t}return -1}fireResultsChanged(e){if(!e)return;let t=-1;this._selectedDecoration&&(t=this.findResultIndex(this._selectedDecoration.match)),this._onDidChangeResults.fire({resultIndex:t,resultCount:this._searchResults.length})}reset(){this.clearSelectedDecoration(),this.clearResults()}},ec=class extends L{constructor(e){super(),this._highlightTimeout=this._register(new D),this._lineCache=this._register(new D),this._state=new eo,this._resultTracker=this._register(new eh),this._highlightLimit=e?.highlightLimit??1e3}get onDidChangeResults(){return this._resultTracker.onDidChangeResults}activate(e){this._terminal=e,this._lineCache.value=new en(e),this._engine=new ea(e,this._lineCache.value),this._decorationManager=new el(e),this._register(this._terminal.onWriteParsed(()=>this._updateMatches())),this._register(this._terminal.onResize(()=>this._updateMatches())),this._register(S(()=>this.clearDecorations()))}_updateMatches(){this._highlightTimeout.clear(),this._state.cachedSearchTerm&&this._state.lastSearchOptions?.decorations&&(this._highlightTimeout.value=es(()=>{let e=this._state.cachedSearchTerm;this._state.clearCachedTerm(),this.findPrevious(e,{...this._state.lastSearchOptions,incremental:!0},{noScroll:!0})},200))}clearDecorations(e){this._resultTracker.clearSelectedDecoration(),this._decorationManager?.clearHighlightDecorations(),this._resultTracker.clearResults(),e||this._state.clearCachedTerm()}clearActiveDecoration(){this._resultTracker.clearSelectedDecoration()}findNext(e,t,i){if(!this._terminal||!this._engine)throw Error("Cannot use addon until it has been loaded");this._state.lastSearchOptions=t,this._state.shouldUpdateHighlighting(e,t)&&this._highlightAllMatches(e,t);let s=this._findNextAndSelect(e,t,i);return this._fireResults(t),this._state.cachedSearchTerm=e,s}_highlightAllMatches(e,t){if(!this._terminal||!this._engine||!this._decorationManager)throw Error("Cannot use addon until it has been loaded");if(!this._state.isValidSearchTerm(e))return void this.clearDecorations();this.clearDecorations(!0);let i=[],s,r=this._engine.find(e,0,0,t);for(;r&&(s?.row!==r.row||s?.col!==r.col)&&!(i.length>=this._highlightLimit);)s=r,i.push(s),r=this._engine.find(e,s.col+s.term.length>=this._terminal.cols?s.row+1:s.row,s.col+s.term.length>=this._terminal.cols?0:s.col+1,t);this._resultTracker.updateResults(i,this._highlightLimit),t.decorations&&this._decorationManager.createHighlightDecorations(i,t.decorations)}_findNextAndSelect(e,t,i){if(!this._terminal||!this._engine)return!1;if(!this._state.isValidSearchTerm(e))return this._terminal.clearSelection(),this.clearDecorations(),!1;let s=this._engine.findNextWithSelection(e,t,this._state.cachedSearchTerm);return this._selectResult(s,t?.decorations,i?.noScroll)}findPrevious(e,t,i){if(!this._terminal||!this._engine)throw Error("Cannot use addon until it has been loaded");this._state.lastSearchOptions=t,this._state.shouldUpdateHighlighting(e,t)&&this._highlightAllMatches(e,t);let s=this._findPreviousAndSelect(e,t,i);return this._fireResults(t),this._state.cachedSearchTerm=e,s}_fireResults(e){this._resultTracker.fireResultsChanged(!!e?.decorations)}_findPreviousAndSelect(e,t,i){if(!this._terminal||!this._engine)return!1;if(!this._state.isValidSearchTerm(e))return this._terminal.clearSelection(),this.clearDecorations(),!1;let s=this._engine.findPreviousWithSelection(e,t,this._state.cachedSearchTerm);return this._selectResult(s,t?.decorations,i?.noScroll)}_selectResult(e,t,i){if(!this._terminal||!this._decorationManager)return!1;if(this._resultTracker.clearSelectedDecoration(),!e)return this._terminal.clearSelection(),!1;if(this._terminal.select(e.col,e.row,e.size),t){let i=this._decorationManager.createActiveDecoration(e,t);i&&(this._resultTracker.selectedDecoration=i)}if(!i&&(e.row>=this._terminal.buffer.active.viewportY+this._terminal.rows||e.row<this._terminal.buffer.active.viewportY)){let t=e.row-this._terminal.buffer.active.viewportY;t-=Math.floor(this._terminal.rows/2),this._terminal.scrollLines(t)}return!0}};let eu=(0,a.memo)((0,a.forwardRef)(function({output:e,isRunning:t,onInput:i,onResize:s,maximized:r,height:n,directWrite:c},u){let d=(0,a.useRef)(null),f=(0,a.useRef)(null),_=(0,a.useRef)(null),g=(0,a.useRef)(null),m=(0,a.useRef)(0),p=(0,a.useRef)(i),v=(0,a.useRef)(s);(0,a.useEffect)(()=>{p.current=i},[i]),(0,a.useEffect)(()=>{v.current=s},[s]),(0,a.useImperativeHandle)(u,()=>({findNext:e=>g.current?.findNext(e,{caseSensitive:!1,decorations:{matchBackground:"#facc1550",matchBorder:"#facc15",matchOverviewRuler:"#facc15",activeMatchBackground:"#facc1590",activeMatchBorder:"#facc15",activeMatchColorOverviewRuler:"#facc15"}})??!1,findPrevious:e=>g.current?.findPrevious(e,{caseSensitive:!1,decorations:{matchBackground:"#facc1550",matchBorder:"#facc15",matchOverviewRuler:"#facc15",activeMatchBackground:"#facc1590",activeMatchBorder:"#facc15",activeMatchColorOverviewRuler:"#facc15"}})??!1,clearSearch:()=>{g.current?.clearDecorations()},write:e=>{f.current?.write(e)},reset:()=>{f.current?.reset()},refresh:()=>{let e=f.current;if(e){try{_.current?.fit()}catch{}try{e.refresh(0,e.rows-1)}catch{}}}}),[]),(0,a.useEffect)(()=>{if(!d.current)return;let e=new l.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"}}),t=new h,i=new ec;e.loadAddon(t),e.loadAddon(i),e.open(d.current);let s=t=>e.parser.registerOscHandler(t,()=>!0);s(10),s(11),s(12),s(4),s(52);let r=(t,i)=>e.parser.registerCsiHandler({prefix:i,final:t},()=>!0);r("n"),r("n","?"),r("c"),r("c",">"),r("c","=");let n=/\x1b\][0-9]+;[^\x07\x1b]*(?:\x07|\x1b\\)|\x1b\[[\d;?>=]*[Rc]/g;e.onData(e=>{let t=e.replace(n,"");t&&p.current&&p.current(t)});try{t.fit(),v.current&&v.current(e.cols,e.rows)}catch{}return f.current=e,_.current=t,g.current=i,m.current=0,()=>{e.dispose(),f.current=null,_.current=null,g.current=null,m.current=0}},[]),(0,a.useEffect)(()=>{let t=f.current;if(!t)return;if(c){e&&0===m.current&&(t.write(e),m.current=e.length);return}let i=!1;if(e.length<m.current&&(t.reset(),m.current=0,i=!0),e.length>m.current){let i=e.slice(m.current);t.write(i),m.current=e.length}i&&p.current&&requestAnimationFrame(()=>t.focus())},[e,c]),(0,a.useEffect)(()=>{t&&f.current&&f.current.focus()},[t]);let w=(0,a.useCallback)(()=>{let e=f.current,t=_.current;if(e&&t)try{t.fit(),v.current&&v.current(e.cols,e.rows)}catch{}},[]);return(0,a.useEffect)(()=>{requestAnimationFrame(()=>{w(),requestAnimationFrame(w)})},[r,w]),(0,a.useEffect)(()=>{let e=d.current;if(!e)return;let t=new ResizeObserver(w);return t.observe(e),()=>t.disconnect()},[w]),(0,a.useEffect)(()=>{let e=d.current;if(!e)return;let t=t=>{let i=e.querySelector(".xterm-viewport");if(!i)return;let s=i.scrollHeight-i.clientHeight,r=t.deltaY<0&&i.scrollTop<=0,n=t.deltaY>0&&i.scrollTop>=s-1;(s<=0||r||n)&&t.preventDefault()};return e.addEventListener("wheel",t,{passive:!1}),()=>e.removeEventListener("wheel",t)},[]),(0,o.jsx)("div",{ref:d,className:"xterm-renderer px-2",style:{height:n??"100%",overflow:"hidden"}})}))}}]);
9
+ `).trim(),t=/(file:|vscode-file:\/\/vscode-app)?(\/[^:]*:\d+:\d+)/.exec(e);N.register(n,t?.[2]??e,n)}return n},this._event}_removeListener(e){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 t=this._listeners,i=t.indexOf(e);if(-1===i)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--,t[i]=void 0;let r=this._deliveryQueue.current===this;if(2*this._size<=t.length){let e=0;for(let i=0;i<t.length;i++)t[i]?t[e++]=t[i]:r&&(this._deliveryQueue.end--,e<this._deliveryQueue.i&&this._deliveryQueue.i--);t.length=e}}_deliver(e,t){if(!e)return;let i=this._options?.onListenerError||d;if(!i)return void e.value(t);try{e.value(t)}catch(e){i(e)}}_deliverQueue(e){let t=e.current._listeners;for(;e.i<e.end;)this._deliver(t[e.i++],e.value);e.reset()}fire(e){if(this._deliveryQueue?.current&&(this._deliverQueue(this._deliveryQueue),this._perfMon?.stop()),this._perfMon?.start(this._size),this._listeners)if(this._listeners instanceof F)this._deliver(this._listeners,e);else{let t=this._deliveryQueue;t.enqueue(this,e,this._listeners.length),this._deliverQueue(t)}this._perfMon?.stop()}hasListeners(){return this._size>0}},U=class{constructor(){this.i=-1,this.end=0}enqueue(e,t,i){this.i=0,this.end=i,this.current=e,this.value=t}reset(){this.i=this.end,this.current=void 0,this.value=void 0}},j=Object.freeze(function(e,t){let i=setTimeout(e.bind(t),0);return{dispose(){clearTimeout(i)}}});($=H||={}).isCancellationToken=function(e){return e===$.None||e===$.Cancelled||e instanceof Y||!!e&&"object"==typeof e&&"boolean"==typeof e.isCancellationRequested&&"function"==typeof e.onCancellationRequested},$.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:P.None}),$.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:j});var $,Q,Y=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?j:(this._emitter||(this._emitter=new q),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}},V=!1,G="en",J=globalThis;if("u">typeof J.vscode&&"u">typeof J.vscode.process&&J.vscode.process,"object"==typeof c){c.platform,c.platform,"linux"===c.platform&&c.env.SNAP&&c.env.SNAP_REVISION,c.env.CI||c.env.BUILD_ARTIFACTSTAGINGDIRECTORY,G="en";let e=c.env.VSCODE_NLS_CONFIG;if(e)try{let t=JSON.parse(e);t.userLocale,t.osLocale,G=t.resolvedLanguage||"en",t.languagePack?.translationsConfigFile}catch{}}else"object"!=typeof navigator?console.error("Unable to resolve platform."):((Q=navigator.userAgent).indexOf("Windows"),Q.indexOf("Macintosh"),(Q.indexOf("Macintosh")>=0||Q.indexOf("iPad")>=0||Q.indexOf("iPhone")>=0)&&navigator.maxTouchPoints&&navigator.maxTouchPoints,Q.indexOf("Linux"),Q?.indexOf("Mobi"),V=!0,G=globalThis._VSCODE_NLS_LANGUAGE||"en",navigator.language.toLowerCase());V&&"function"==typeof J.importScripts&&J.origin;var K,X=Q,Z=G;(r=K||={}).value=function(){return Z},r.isDefaultVariant=function(){return 2===Z.length?"en"===Z:Z.length>=3&&"e"===Z[0]&&"n"===Z[1]&&"-"===Z[2]},r.isDefault=function(){return"en"===Z};var ee="function"==typeof J.postMessage&&!J.importScripts,et=(()=>{if(ee){let e=[];J.addEventListener("message",t=>{if(t.data&&t.data.vscodeScheduleAsyncWork)for(let i=0,r=e.length;i<r;i++){let r=e[i];if(r.id===t.data.vscodeScheduleAsyncWork){e.splice(i,1),r.callback();return}}});let t=0;return i=>{let r=++t;e.push({id:r,callback:i}),J.postMessage({vscodeScheduleAsyncWork:r},"*")}}return e=>setTimeout(e)})(),ei=!!(X&&X.indexOf("Chrome")>=0);function er(e,t=0,i){let r=setTimeout(()=>{e(),i&&s.dispose()},t),s=y(()=>{clearTimeout(r),i?.deleteAndLeak(s)});return i?.add(s),s}X&&X.indexOf("Firefox"),!ei&&X&&X.indexOf("Safari"),X&&X.indexOf("Edg/"),X&&X.indexOf("Android"),Symbol("MicrotaskDelay"),(s=n||={}).settled=async function(e){let t,i=await Promise.all(e.map(e=>e.then(e=>e,e=>{t||(t=e)})));if("u">typeof t)throw t;return i},s.withAsyncBody=function(e){return new Promise(async(t,i)=>{try{await e(t,i)}catch(e){i(e)}})};var es=class e{static fromArray(t){return new e(e=>{e.emitMany(t)})}static fromPromise(t){return new e(async e=>{e.emitMany(await t)})}static fromPromises(t){return new e(async e=>{await Promise.all(t.map(async t=>e.emitOne(await t)))})}static merge(t){return new e(async e=>{await Promise.all(t.map(async t=>{for await(let i of t)e.emitOne(i)}))})}constructor(e,t){this._state=0,this._results=[],this._error=null,this._onReturn=t,this._onStateChanged=new q,queueMicrotask(async()=>{let t={emitOne:e=>this.emitOne(e),emitMany:e=>this.emitMany(e),reject:e=>this.reject(e)};try{await Promise.resolve(e(t)),this.resolve()}catch(e){this.reject(e)}finally{t.emitOne=void 0,t.emitMany=void 0,t.reject=void 0}})}[Symbol.asyncIterator](){let e=0;return{next:async()=>{for(;;){if(2===this._state)throw this._error;if(e<this._results.length)return{done:!1,value:this._results[e++]};if(1===this._state)return{done:!0,value:void 0};await P.toPromise(this._onStateChanged.event)}},return:async()=>(this._onReturn?.(),{done:!0,value:void 0})}}static map(t,i){return new e(async e=>{for await(let r of t)e.emitOne(i(r))})}map(t){return e.map(this,t)}static filter(t,i){return new e(async e=>{for await(let r of t)i(r)&&e.emitOne(r)})}filter(t){return e.filter(this,t)}static coalesce(t){return e.filter(t,e=>!!e)}coalesce(){return e.coalesce(this)}static async toPromise(e){let t=[];for await(let i of e)t.push(i);return t}toPromise(){return e.toPromise(this)}emitOne(e){0===this._state&&(this._results.push(e),this._onStateChanged.fire())}emitMany(e){0===this._state&&(this._results=this._results.concat(e),this._onStateChanged.fire())}resolve(){0===this._state&&(this._state=1,this._onStateChanged.fire())}reject(e){0===this._state&&(this._state=2,this._error=e,this._onStateChanged.fire())}};es.EMPTY=es.fromArray([]);var en=class extends L{constructor(e){super(),this._terminal=e,this._linesCacheTimeout=this._register(new k),this._linesCacheDisposables=this._register(new k),this._register(y(()=>this._destroyLinesCache()))}initLinesCache(){this._linesCache||(this._linesCache=Array(this._terminal.buffer.active.length),this._linesCacheDisposables.value=C(this._terminal.onLineFeed(()=>this._destroyLinesCache()),this._terminal.onCursorMove(()=>this._destroyLinesCache()),this._terminal.onResize(()=>this._destroyLinesCache()))),this._linesCacheTimeout.value=er(()=>this._destroyLinesCache(),15e3)}_destroyLinesCache(){this._linesCache=void 0,this._linesCacheDisposables.clear(),this._linesCacheTimeout.clear()}getLineFromCache(e){return this._linesCache?.[e]}setLineInCache(e,t){this._linesCache&&(this._linesCache[e]=t)}translateBufferLineToStringWithWrap(e,t){let i=[],r=[0],s=this._terminal.buffer.active.getLine(e);for(;s;){let n=this._terminal.buffer.active.getLine(e+1),o=!!n&&n.isWrapped,a=s.translateToString(!o&&t);if(o&&n){let e=s.getCell(s.length-1);e&&0===e.getCode()&&1===e.getWidth()&&n.getCell(0)?.getWidth()===2&&(a=a.slice(0,-1))}if(i.push(a),o)r.push(r[r.length-1]+a.length);else break;e++,s=n}return[i.join(""),r]}},eo=class{get cachedSearchTerm(){return this._cachedSearchTerm}set cachedSearchTerm(e){this._cachedSearchTerm=e}get lastSearchOptions(){return this._lastSearchOptions}set lastSearchOptions(e){this._lastSearchOptions=e}isValidSearchTerm(e){return!!(e&&e.length>0)}didOptionsChange(e){return!this._lastSearchOptions||!!e&&(this._lastSearchOptions.caseSensitive!==e.caseSensitive||this._lastSearchOptions.regex!==e.regex||this._lastSearchOptions.wholeWord!==e.wholeWord)}shouldUpdateHighlighting(e,t){return!!t?.decorations&&(void 0===this._cachedSearchTerm||e!==this._cachedSearchTerm||this.didOptionsChange(t))}clearCachedTerm(){this._cachedSearchTerm=void 0}reset(){this._cachedSearchTerm=void 0,this._lastSearchOptions=void 0}},ea=class{constructor(e,t){this._terminal=e,this._lineCache=t}find(e,t,i,r){if(!e||0===e.length)return void this._terminal.clearSelection();if(i>this._terminal.cols)throw Error(`Invalid col: ${i} to search in terminal of ${this._terminal.cols} cols`);this._lineCache.initLinesCache();let s={startRow:t,startCol:i},n=this._findInLine(e,s,r);if(!n)for(let i=t+1;i<this._terminal.buffer.active.baseY+this._terminal.rows&&(s.startRow=i,s.startCol=0,!(n=this._findInLine(e,s,r)));i++);return n}findNextWithSelection(e,t,i){if(!e||0===e.length)return void this._terminal.clearSelection();let r=this._terminal.getSelectionPosition();this._terminal.clearSelection();let s=0,n=0;r&&(i===e?(s=r.end.x,n=r.end.y):(s=r.start.x,n=r.start.y)),this._lineCache.initLinesCache();let o={startRow:n,startCol:s},a=this._findInLine(e,o,t);if(!a)for(let i=n+1;i<this._terminal.buffer.active.baseY+this._terminal.rows&&(o.startRow=i,o.startCol=0,!(a=this._findInLine(e,o,t)));i++);if(!a&&0!==n)for(let i=0;i<n&&(o.startRow=i,o.startCol=0,!(a=this._findInLine(e,o,t)));i++);return!a&&r&&(o.startRow=r.start.y,o.startCol=0,a=this._findInLine(e,o,t)),a}findPreviousWithSelection(e,t,i){if(!e||0===e.length)return void this._terminal.clearSelection();let r=this._terminal.getSelectionPosition();this._terminal.clearSelection();let s=this._terminal.buffer.active.baseY+this._terminal.rows-1,n=this._terminal.cols;this._lineCache.initLinesCache();let o={startRow:s,startCol:n},a;if(r&&(o.startRow=s=r.start.y,o.startCol=n=r.start.x,i!==e&&((a=this._findInLine(e,o,t,!1))||(o.startRow=s=r.end.y,o.startCol=n=r.end.x))),a||(a=this._findInLine(e,o,t,!0)),!a){o.startCol=Math.max(o.startCol,this._terminal.cols);for(let i=s-1;i>=0&&(o.startRow=i,!(a=this._findInLine(e,o,t,!0)));i--);}if(!a&&s!==this._terminal.buffer.active.baseY+this._terminal.rows-1)for(let i=this._terminal.buffer.active.baseY+this._terminal.rows-1;i>=s&&(o.startRow=i,!(a=this._findInLine(e,o,t,!0)));i--);return a}_isWholeWord(e,t,i){return(0===e||" ~!@#$%^&*()+`-=[]{}|\\;:\"',./<>?".includes(t[e-1]))&&(e+i.length===t.length||" ~!@#$%^&*()+`-=[]{}|\\;:\"',./<>?".includes(t[e+i.length]))}_findInLine(e,t,i={},r=!1){let s=t.startRow,n=t.startCol;if(this._terminal.buffer.active.getLine(s)?.isWrapped){if(r){t.startCol+=this._terminal.cols;return}return t.startRow--,t.startCol+=this._terminal.cols,this._findInLine(e,t,i)}let o=this._lineCache.getLineFromCache(s);o||(o=this._lineCache.translateBufferLineToStringWithWrap(s,!0),this._lineCache.setLineInCache(s,o));let[a,l]=o,h=this._bufferColsToStringOffset(s,n),c=e,u=a;i.regex||(c=i.caseSensitive?e:e.toLowerCase(),u=i.caseSensitive?a:a.toLowerCase());let d=-1;if(i.regex){let t=RegExp(c,i.caseSensitive?"g":"gi"),s;if(r)for(;s=t.exec(u.slice(0,h));)d=t.lastIndex-s[0].length,e=s[0],t.lastIndex-=e.length-1;else(s=t.exec(u.slice(h)))&&s[0].length>0&&(d=h+(t.lastIndex-s[0].length),e=s[0])}else r?h-c.length>=0&&(d=u.lastIndexOf(c,h-c.length)):d=u.indexOf(c,h);if(d>=0){if(i.wholeWord&&!this._isWholeWord(d,u,e))return;let t=0;for(;t<l.length-1&&d>=l[t+1];)t++;let r=t;for(;r<l.length-1&&d+e.length>=l[r+1];)r++;let n=d-l[t],o=d+e.length-l[r],a=this._stringLengthToBufferSize(s+t,n),h=this._stringLengthToBufferSize(s+r,o)-a+this._terminal.cols*(r-t);return{term:e,col:a,row:s+t,size:h}}}_stringLengthToBufferSize(e,t){let i=this._terminal.buffer.active.getLine(e);if(!i)return 0;for(let e=0;e<t;e++){let r=i.getCell(e);if(!r)break;let s=r.getChars();s.length>1&&(t-=s.length-1);let n=i.getCell(e+1);n&&0===n.getWidth()&&t++}return t}_bufferColsToStringOffset(e,t){let i=e,r=0,s=this._terminal.buffer.active.getLine(i);for(;t>0&&s;){for(let e=0;e<t&&e<this._terminal.cols;e++){let t=s.getCell(e);if(!t)break;t.getWidth()&&(r+=0===t.getCode()?1:t.getChars().length)}if(i++,(s=this._terminal.buffer.active.getLine(i))&&!s.isWrapped)break;t-=this._terminal.cols}return r}},el=class extends L{constructor(e){super(),this._terminal=e,this._highlightDecorations=[],this._highlightedLines=new Set,this._register(y(()=>this.clearHighlightDecorations()))}createHighlightDecorations(e,t){for(let i of(this.clearHighlightDecorations(),e)){let e=this._createResultDecorations(i,t,!1);if(e)for(let t of e)this._storeDecoration(t,i)}}createActiveDecoration(e,t){let i=this._createResultDecorations(e,t,!0);if(i)return{decorations:i,match:e,dispose(){b(i)}}}clearHighlightDecorations(){b(this._highlightDecorations),this._highlightDecorations=[],this._highlightedLines.clear()}_storeDecoration(e,t){this._highlightedLines.add(e.marker.line),this._highlightDecorations.push({decoration:e,match:t,dispose(){e.dispose()}})}_applyStyles(e,t,i){e.classList.contains("xterm-find-result-decoration")||(e.classList.add("xterm-find-result-decoration"),t&&(e.style.outline=`1px solid ${t}`)),i&&e.classList.add("xterm-find-active-result-decoration")}_createResultDecorations(e,t,i){let r=[],s=e.col,n=e.size,o=-this._terminal.buffer.active.baseY-this._terminal.buffer.active.cursorY+e.row;for(;n>0;){let e=Math.min(this._terminal.cols-s,n);r.push([o,s,e]),s=0,n-=e,o++}let a=[];for(let e of r){let r=this._terminal.registerMarker(e[0]),s=this._terminal.registerDecoration({marker:r,x:e[1],width:e[2],backgroundColor:i?t.activeMatchBackground:t.matchBackground,overviewRulerOptions:this._highlightedLines.has(r.line)?void 0:{color:i?t.activeMatchColorOverviewRuler:t.matchOverviewRuler,position:"center"}});if(s){let e=[];e.push(r),e.push(s.onRender(e=>this._applyStyles(e,i?t.activeMatchBorder:t.matchBorder,!1))),e.push(s.onDispose(()=>b(e))),a.push(s)}}return 0===a.length?void 0:a}},eh=class extends L{constructor(){super(...arguments),this._searchResults=[],this._onDidChangeResults=this._register(new q)}get onDidChangeResults(){return this._onDidChangeResults.event}get searchResults(){return this._searchResults}get selectedDecoration(){return this._selectedDecoration}set selectedDecoration(e){this._selectedDecoration=e}updateResults(e,t){this._searchResults=e.slice(0,t)}clearResults(){this._searchResults=[]}clearSelectedDecoration(){this._selectedDecoration&&(this._selectedDecoration.dispose(),this._selectedDecoration=void 0)}findResultIndex(e){for(let t=0;t<this._searchResults.length;t++){let i=this._searchResults[t];if(i.row===e.row&&i.col===e.col&&i.size===e.size)return t}return -1}fireResultsChanged(e){if(!e)return;let t=-1;this._selectedDecoration&&(t=this.findResultIndex(this._selectedDecoration.match)),this._onDidChangeResults.fire({resultIndex:t,resultCount:this._searchResults.length})}reset(){this.clearSelectedDecoration(),this.clearResults()}},ec=class extends L{constructor(e){super(),this._highlightTimeout=this._register(new k),this._lineCache=this._register(new k),this._state=new eo,this._resultTracker=this._register(new eh),this._highlightLimit=e?.highlightLimit??1e3}get onDidChangeResults(){return this._resultTracker.onDidChangeResults}activate(e){this._terminal=e,this._lineCache.value=new en(e),this._engine=new ea(e,this._lineCache.value),this._decorationManager=new el(e),this._register(this._terminal.onWriteParsed(()=>this._updateMatches())),this._register(this._terminal.onResize(()=>this._updateMatches())),this._register(y(()=>this.clearDecorations()))}_updateMatches(){this._highlightTimeout.clear(),this._state.cachedSearchTerm&&this._state.lastSearchOptions?.decorations&&(this._highlightTimeout.value=er(()=>{let e=this._state.cachedSearchTerm;this._state.clearCachedTerm(),this.findPrevious(e,{...this._state.lastSearchOptions,incremental:!0},{noScroll:!0})},200))}clearDecorations(e){this._resultTracker.clearSelectedDecoration(),this._decorationManager?.clearHighlightDecorations(),this._resultTracker.clearResults(),e||this._state.clearCachedTerm()}clearActiveDecoration(){this._resultTracker.clearSelectedDecoration()}findNext(e,t,i){if(!this._terminal||!this._engine)throw Error("Cannot use addon until it has been loaded");this._state.lastSearchOptions=t,this._state.shouldUpdateHighlighting(e,t)&&this._highlightAllMatches(e,t);let r=this._findNextAndSelect(e,t,i);return this._fireResults(t),this._state.cachedSearchTerm=e,r}_highlightAllMatches(e,t){if(!this._terminal||!this._engine||!this._decorationManager)throw Error("Cannot use addon until it has been loaded");if(!this._state.isValidSearchTerm(e))return void this.clearDecorations();this.clearDecorations(!0);let i=[],r,s=this._engine.find(e,0,0,t);for(;s&&(r?.row!==s.row||r?.col!==s.col)&&!(i.length>=this._highlightLimit);)r=s,i.push(r),s=this._engine.find(e,r.col+r.term.length>=this._terminal.cols?r.row+1:r.row,r.col+r.term.length>=this._terminal.cols?0:r.col+1,t);this._resultTracker.updateResults(i,this._highlightLimit),t.decorations&&this._decorationManager.createHighlightDecorations(i,t.decorations)}_findNextAndSelect(e,t,i){if(!this._terminal||!this._engine)return!1;if(!this._state.isValidSearchTerm(e))return this._terminal.clearSelection(),this.clearDecorations(),!1;let r=this._engine.findNextWithSelection(e,t,this._state.cachedSearchTerm);return this._selectResult(r,t?.decorations,i?.noScroll)}findPrevious(e,t,i){if(!this._terminal||!this._engine)throw Error("Cannot use addon until it has been loaded");this._state.lastSearchOptions=t,this._state.shouldUpdateHighlighting(e,t)&&this._highlightAllMatches(e,t);let r=this._findPreviousAndSelect(e,t,i);return this._fireResults(t),this._state.cachedSearchTerm=e,r}_fireResults(e){this._resultTracker.fireResultsChanged(!!e?.decorations)}_findPreviousAndSelect(e,t,i){if(!this._terminal||!this._engine)return!1;if(!this._state.isValidSearchTerm(e))return this._terminal.clearSelection(),this.clearDecorations(),!1;let r=this._engine.findPreviousWithSelection(e,t,this._state.cachedSearchTerm);return this._selectResult(r,t?.decorations,i?.noScroll)}_selectResult(e,t,i){if(!this._terminal||!this._decorationManager)return!1;if(this._resultTracker.clearSelectedDecoration(),!e)return this._terminal.clearSelection(),!1;if(this._terminal.select(e.col,e.row,e.size),t){let i=this._decorationManager.createActiveDecoration(e,t);i&&(this._resultTracker.selectedDecoration=i)}if(!i&&(e.row>=this._terminal.buffer.active.viewportY+this._terminal.rows||e.row<this._terminal.buffer.active.viewportY)){let t=e.row-this._terminal.buffer.active.viewportY;t-=Math.floor(this._terminal.rows/2),this._terminal.scrollLines(t)}return!0}},eu=i(3238);let ed={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"},ef={foreground:"#1d2126",cursor:"#1d2126",cursorAccent:"#ffffff",selectionBackground:"#3b82f640",black:"#1d2126",red:"#ce2c31",green:"#18774c",yellow:"#a13812",blue:"#0d74ce",magenta:"#5746af",cyan:"#1c5454",white:"#60636c",brightBlack:"#787b87",brightRed:"#e5484d",brightGreen:"#2b9c67",brightYellow:"#bd4b00",brightBlue:"#0478d7",brightMagenta:"#6d54cf",brightCyan:"#3a7877",brightWhite:"#1d2126"},e_={light:"#ffffff",dark:"#1b1b1d"};function eg(e,t){let i=e_[t];if(!e)return i;let r=getComputedStyle(e).getPropertyValue("--card").trim(),s=/^([\d.]+)\s+([\d.]+)%\s+([\d.]+)%$/.exec(r);if(!s)return i;let n=Number(s[1]),o=Number(s[2])/100,a=Number(s[3])/100,l=(1-Math.abs(2*a-1))*o,h=l*(1-Math.abs(n/60%2-1)),c=a-l/2,[u,d,f]=[[l,h,0],[h,l,0],[0,l,h],[0,h,l],[h,0,l],[l,0,h]][Math.floor(n/60)%6],_=e=>Math.round((e+c)*255).toString(16).padStart(2,"0");return`#${_(u)}${_(d)}${_(f)}`}let em=(0,a.memo)((0,a.forwardRef)(function({output:e,isRunning:t,onInput:i,onResize:r,maximized:s,height:n,directWrite:c},u){let d=(0,a.useRef)(null),f=(0,a.useRef)(null),_=(0,a.useRef)(null),g=(0,a.useRef)(null),m=(0,a.useRef)(0),p=(0,a.useRef)(i),v=(0,a.useRef)(r);(0,a.useEffect)(()=>{p.current=i},[i]),(0,a.useEffect)(()=>{v.current=r},[r]);let w=(0,eu.Ql)()?.resolvedTheme??"dark",b="dark"===w?ed:ef,C=(0,a.useRef)(b);C.current=b;let y=(0,a.useRef)(w);y.current=w,(0,a.useEffect)(()=>{let e=f.current;e&&(e.options.theme={...b,background:eg(d.current,w)})},[b,w]),(0,a.useImperativeHandle)(u,()=>({findNext:e=>g.current?.findNext(e,{caseSensitive:!1,decorations:{matchBackground:"#facc1550",matchBorder:"#facc15",matchOverviewRuler:"#facc15",activeMatchBackground:"#facc1590",activeMatchBorder:"#facc15",activeMatchColorOverviewRuler:"#facc15"}})??!1,findPrevious:e=>g.current?.findPrevious(e,{caseSensitive:!1,decorations:{matchBackground:"#facc1550",matchBorder:"#facc15",matchOverviewRuler:"#facc15",activeMatchBackground:"#facc1590",activeMatchBorder:"#facc15",activeMatchColorOverviewRuler:"#facc15"}})??!1,clearSearch:()=>{g.current?.clearDecorations()},write:e=>{f.current?.write(e)},reset:()=>{f.current?.reset()},refresh:()=>{let e=f.current;if(e){try{_.current?.fit()}catch{}try{e.refresh(0,e.rows-1)}catch{}}}}),[]),(0,a.useEffect)(()=>{if(!d.current)return;let e=new l.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:{...C.current,background:eg(d.current,y.current)}}),t=new h,i=new ec;e.loadAddon(t),e.loadAddon(i),e.open(d.current);let r=t=>e.parser.registerOscHandler(t,()=>!0);r(10),r(11),r(12),r(4),r(52);let s=(t,i)=>e.parser.registerCsiHandler({prefix:i,final:t},()=>!0);s("n"),s("n","?"),s("c"),s("c",">"),s("c","=");let n=/\x1b\][0-9]+;[^\x07\x1b]*(?:\x07|\x1b\\)|\x1b\[[\d;?>=]*[Rc]/g;e.onData(e=>{let t=e.replace(n,"");t&&p.current&&p.current(t)});try{t.fit(),v.current&&v.current(e.cols,e.rows)}catch{}return f.current=e,_.current=t,g.current=i,m.current=0,()=>{e.dispose(),f.current=null,_.current=null,g.current=null,m.current=0}},[]),(0,a.useEffect)(()=>{let t=f.current;if(!t)return;if(c){e&&0===m.current&&(t.write(e),m.current=e.length);return}let i=!1;if(e.length<m.current&&(t.reset(),m.current=0,i=!0),e.length>m.current){let i=e.slice(m.current);t.write(i),m.current=e.length}i&&p.current&&requestAnimationFrame(()=>t.focus())},[e,c]),(0,a.useEffect)(()=>{t&&f.current&&f.current.focus()},[t]);let S=(0,a.useCallback)(()=>{let e=f.current,t=_.current;if(e&&t)try{t.fit(),v.current&&v.current(e.cols,e.rows)}catch{}},[]);return(0,a.useEffect)(()=>{requestAnimationFrame(()=>{S(),requestAnimationFrame(S)})},[s,S]),(0,a.useEffect)(()=>{let e=d.current;if(!e)return;let t=new ResizeObserver(S);return t.observe(e),()=>t.disconnect()},[S]),(0,a.useEffect)(()=>{let e=d.current;if(!e)return;let t=t=>{let i=e.querySelector(".xterm-viewport");if(!i)return;let r=i.scrollHeight-i.clientHeight,s=t.deltaY<0&&i.scrollTop<=0,n=t.deltaY>0&&i.scrollTop>=r-1;(r<=0||s||n)&&t.preventDefault()};return e.addEventListener("wheel",t,{passive:!1}),()=>e.removeEventListener("wheel",t)},[]),(0,o.jsx)("div",{ref:d,className:"xterm-renderer px-2",style:{height:n??"100%",overflow:"hidden"}})}))}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2032],{19736:(e,t,r)=>{r.d(t,{ReviewCommentsListModal:()=>c});var n=r(95155),o=r(12115),s=r(79114),a=r(64428),l=r(34075),i=r(69809);function d(e,t,r){let n=(e,r)=>t[e]||r,o=[],s=null!=r?`[${r+1}] `:"",a=e.anchor.selectedText.length>200?e.anchor.selectedText.slice(0,197)+"...":e.anchor.selectedText;for(let t of(o.push(`${s}${i.A.t("review.quoteRef",{text:a})}`),o.push(i.A.t("review.commentAuthor",{author:n(e.authorId,e.author),content:e.content})),e.replies))o.push(i.A.t("review.replyAuthor",{author:n(t.authorId,t.author),content:t.content}));return o.join("\n")}function c({isOpen:e,onClose:t,comments:r,reviewTitle:m,userNameMap:h,onCommentClick:x}){let{t:p}=(0,s.Bd)(),[f,v]=(0,o.useState)(null),[g,b]=(0,o.useState)(!1);if(!e)return null;let w=[...r].sort((e,t)=>e.anchor.startOffset-t.anchor.startOffset),j=(e,t)=>h[e]||t,N=async e=>{v(e.id);try{let t=d(e,h);await navigator.clipboard.writeText(t),(0,l.oR)(p("toast.copiedComment"))}catch{(0,l.oR)(p("toast.copyFailed"),"error")}finally{v(null)}},k=async()=>{if(0!==r.length){b(!0);try{let e=function(e,t,r){if(0===e.length)return"";let n=[...e].sort((e,t)=>e.anchor.startOffset-t.anchor.startOffset),o=[i.A.t("review.reviewSummary",{title:t}),""];return n.forEach((e,t)=>{o.push(d(e,r,t)),o.push("")}),o.push(i.A.t("review.totalNComments",{count:e.length})),o.join("\n").trim()}(r,m,h);await navigator.clipboard.writeText(e),(0,l.oR)(p("toast.copiedAllComments"))}catch{(0,l.oR)(p("toast.copyFailed"),"error")}finally{b(!1)}}},C=e=>{x?.(e),t()},y=w.filter(e=>!e.closed),M=w.filter(e=>e.closed),S=(0,n.jsx)("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-scrim p-4",onClick:t,children:(0,n.jsxs)("div",{className:"w-full max-w-2xl max-h-[80vh] bg-card border border-border rounded-lg shadow-lv3 flex flex-col overflow-hidden",onClick:e=>e.stopPropagation(),children:[(0,n.jsxs)("div",{className:"flex items-center justify-between px-4 py-3 border-b border-border ",children:[(0,n.jsxs)("div",{className:"flex items-center gap-2",children:[(0,n.jsx)("h2",{className:"text-sm font-semibold text-foreground",children:p("review.allCommentsTitle")}),(0,n.jsxs)("span",{className:"text-xs text-muted-foreground",children:[p("review.commentsCountBrief",{count:r.length}),M.length>0&&` (${p("review.closedCount",{count:M.length})})`]}),r.length>0&&(0,n.jsx)("button",{onClick:k,disabled:g,className:"p-1 rounded hover:bg-hover text-muted-foreground disabled:opacity-50",title:p("review.copyAllComments"),children:g?(0,n.jsx)("span",{className:"inline-block w-4 h-4 border-2 border-current border-t-transparent rounded-full animate-spin"}):(0,n.jsx)("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M8 16H6a2 2 0 01-2-2V6a2 2 0 012-2h8a2 2 0 012 2v2m-6 12h8a2 2 0 002-2v-8a2 2 0 00-2-2h-8a2 2 0 00-2 2v8a2 2 0 002 2z"})})})]}),(0,n.jsx)("button",{onClick:t,className:"p-1 rounded hover:bg-hover text-muted-foreground",children:(0,n.jsx)("svg",{className:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]}),(0,n.jsx)("div",{className:"flex-1 overflow-y-auto p-3",children:0===r.length?(0,n.jsxs)("div",{className:"flex flex-col items-center justify-center py-12 text-muted-foreground",children:[(0,n.jsx)("div",{className:"text-2xl mb-2",children:"\uD83D\uDCAC"}),(0,n.jsx)("span",{className:"text-sm",children:p("review.noComments")})]}):(0,n.jsxs)("div",{className:"space-y-2",children:[y.map((e,t)=>(0,n.jsx)(u,{comment:e,index:t,resolveAuthor:j,copyingId:f,onCopy:N,onClick:C},e.id)),M.length>0&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:"text-[11px] text-muted-foreground/60 pt-2 pb-1 px-1",children:p("review.closedComments",{count:M.length})}),M.map((e,t)=>(0,n.jsx)(u,{comment:e,index:y.length+t,resolveAuthor:j,copyingId:f,onCopy:N,onClick:C,closed:!0},e.id))]})]})})]})});return(0,n.jsx)(a.ZL,{children:S})}function u({comment:e,index:t,resolveAuthor:r,copyingId:o,onCopy:s,onClick:a,closed:l}){let d=e.anchor.selectedText.length>100?e.anchor.selectedText.slice(0,97)+"...":e.anchor.selectedText;return(0,n.jsxs)("div",{className:`rounded-lg border border-border hover:border-muted-foreground/30 transition-all cursor-pointer group ${l?"opacity-50":""}`,onClick:()=>a(e.id),children:[(0,n.jsx)("div",{className:"px-3 pt-2.5 pb-1",children:(0,n.jsx)("div",{className:"text-xs bg-yellow-500/10 border-l-2 border-yellow-500 px-2 py-1 rounded-r text-muted-foreground truncate",children:d})}),(0,n.jsxs)("div",{className:"px-3 pt-1.5 pb-2 flex items-start gap-2",children:[(0,n.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,n.jsxs)("div",{className:"flex items-center gap-2 mb-0.5",children:[(0,n.jsx)("span",{className:"w-4 h-4 rounded-full bg-brand/20 text-brand flex items-center justify-center text-[9px] font-bold flex-shrink-0",children:r(e.authorId,e.author).charAt(0)}),(0,n.jsx)("span",{className:"text-xs font-medium",children:r(e.authorId,e.author)}),(0,n.jsx)("span",{className:"text-[10px] text-muted-foreground",children:new Date(e.createdAt).toLocaleString("zh-CN",{month:"numeric",day:"numeric",hour:"2-digit",minute:"2-digit"})}),l&&(0,n.jsx)("span",{className:"text-[10px] text-muted-foreground/60",children:i.A.t("review.closedLabel")})]}),(0,n.jsx)("p",{className:"text-sm text-foreground line-clamp-2 pl-6",children:e.content}),e.replies.length>0&&(0,n.jsxs)("div",{className:"pl-6 mt-1 space-y-0.5",children:[e.replies.slice(0,3).map(e=>(0,n.jsxs)("div",{className:"text-xs text-muted-foreground truncate",children:[(0,n.jsx)("span",{className:"font-medium",children:r(e.authorId,e.author)}),": ",e.content]},e.id)),e.replies.length>3&&(0,n.jsx)("div",{className:"text-[10px] text-muted-foreground/60",children:i.A.t("review.moreReplies",{count:e.replies.length-3})})]})]}),(0,n.jsx)("button",{onClick:t=>{t.stopPropagation(),s(e)},disabled:o===e.id,className:"p-1 rounded opacity-0 group-hover:opacity-100 hover:bg-hover text-muted-foreground transition-opacity disabled:opacity-50 flex-shrink-0 mt-0.5",title:i.A.t("review.copyComment"),children:o===e.id?(0,n.jsx)("span",{className:"inline-block w-4 h-4 border-2 border-current border-t-transparent rounded-full animate-spin"}):(0,n.jsx)("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M8 16H6a2 2 0 01-2-2V6a2 2 0 012-2h8a2 2 0 012 2v2m-6 12h8a2 2 0 002-2v-8a2 2 0 00-2-2h-8a2 2 0 00-2 2v8a2 2 0 002 2z"})})})]})]})}},82032:(e,t,r)=>{r.d(t,{ReviewDropdown:()=>x});var n=r(95155),o=r(12115),s=r(79114),a=r(2111),l=r(19736),i=r(49433),d=r(86957),c=r(90420);let u="review-last-viewed";function m(){try{return JSON.parse(localStorage.getItem(u)||"{}")}catch{return{}}}function h(e,t){if(!e.lastCommentAt)return!1;let r=t[e.id];return!r||e.lastCommentAt>r}function x({cwd:e}){let{t}=(0,s.Bd)(),[r,p]=(0,o.useState)(!1),[f,v]=(0,o.useState)([]),[g,b]=(0,o.useState)(!1),[w,j]=(0,o.useState)(null),[N,k]=(0,o.useState)({}),[C,y]=(0,o.useState)({open:!1,comments:[],title:"",userNameMap:{}}),M=(0,o.useRef)(null),S=(0,o.useRef)(null),[A,L]=(0,o.useState)(null);(0,o.useEffect)(()=>{queueMicrotask(()=>k(m()))},[]),(0,o.useEffect)(()=>{if(!r)return;let e=e=>{M.current&&!M.current.contains(e.target)&&p(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[r]);let E=(0,o.useCallback)(async()=>{b(!0);let e=await d.t4.runPromiseExit((0,c.Y_)());"Success"===e._tag&&v(e.value.reviews??[]),b(!1)},[]);(0,o.useEffect)(()=>{r&&queueMicrotask(()=>E())},[r,E]);let T=(0,o.useCallback)(e=>{let{data:t}=e;Array.isArray(t)&&t.some(e=>"review"===e.type)&&E()},[E]);(0,a.h)({url:`/ws/watch?cwd=${encodeURIComponent(e||"/")}`,onMessage:T,enabled:!!e}),(0,o.useEffect)(()=>{queueMicrotask(()=>E())},[E]);let $=(0,o.useMemo)(()=>f.filter(e=>e.active),[f]),R=(0,o.useMemo)(()=>$.some(e=>h(e,N)),[$,N]),I=(0,o.useCallback)(e=>{let t;(t=m())[e]=Date.now(),localStorage.setItem(u,JSON.stringify(t)),k(m()),window.open(`${window.location.origin}/review/${e}`,"_blank")},[]),B=(0,o.useCallback)(async(e,t)=>{e.stopPropagation();let[r,n]=await Promise.all([d.t4.runPromiseExit((0,c.JK)(t)),d.t4.runPromiseExit((0,c.BL)())]);if("Success"!==r._tag)return;let o=r.value.review,s={};if("Success"===n._tag)for(let[e,t]of Object.entries(n.value.users))s[e]=t.name;y({open:!0,comments:o.comments||[],title:o.title??"",userNameMap:s})},[]),D=(0,o.useCallback)((e,t)=>{S.current=t,e.dataTransfer.effectAllowed="move";let r=e.currentTarget;requestAnimationFrame(()=>r.classList.add("opacity-30"))},[]),O=(0,o.useCallback)(e=>{S.current=null,L(null),e.currentTarget instanceof HTMLElement&&e.currentTarget.classList.remove("opacity-30")},[]),_=(0,o.useCallback)((e,t)=>{e.preventDefault(),e.dataTransfer.dropEffect="move",S.current&&S.current!==t&&L(t)},[]),z=(0,o.useCallback)((e,t)=>{e.preventDefault(),L(null);let r=S.current;S.current=null,r&&r!==t&&v(e=>{let n=[...e],o=n.findIndex(e=>e.id===r),s=n.findIndex(e=>e.id===t);if(-1===o||-1===s)return e;let[a]=n.splice(o,1);n.splice(s,0,a);let l=n.map(e=>e.id);return d.t4.runFork((0,c.z1)(l).pipe(i.orElse(()=>i.void))),n})},[]);return(0,n.jsxs)("div",{ref:M,className:"relative",children:[(0,n.jsxs)("button",{onClick:()=>p(e=>!e),className:`relative p-2 rounded-lg transition-colors ${r?"text-foreground bg-accent":"text-muted-foreground hover:text-foreground hover:bg-hover"}`,title:t("review.reviewManagement"),children:[(0,n.jsx)("svg",{className:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"})}),R&&(0,n.jsx)("span",{className:"absolute top-1 right-1 w-2 h-2 bg-red-500 rounded-full"})]}),r&&(0,n.jsxs)("div",{className:"absolute right-0 top-full mt-1 w-64 bg-popover border border-border rounded-lg shadow-lv3 z-50 overflow-hidden",children:[(0,n.jsxs)("div",{className:"px-3 py-2 border-b border-border flex items-center justify-between",children:[(0,n.jsxs)("div",{children:[(0,n.jsx)("span",{className:"text-xs font-medium text-muted-foreground",children:t("review.allReviews")}),(0,n.jsx)("span",{className:"text-xs text-muted-foreground/60 ml-1.5",children:$.length})]}),(0,n.jsx)("button",{onClick:E,className:"p-0.5 text-muted-foreground hover:text-foreground rounded transition-colors",title:t("common.refresh"),children:(0,n.jsx)("svg",{className:"w-3.5 h-3.5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"})})})]}),(0,n.jsx)("div",{className:"max-h-80 overflow-y-auto",children:g&&0===f.length?(0,n.jsx)("div",{className:"px-3 py-4 text-xs text-muted-foreground/50 text-center",children:t("common.loading")}):0===$.length?(0,n.jsx)("div",{className:"px-3 py-4 text-xs text-muted-foreground/50 text-center",children:t("review.noOpenReviews")}):$.map(e=>{let r,o,s,a,l,i=h(e,N);return(0,n.jsxs)("div",{draggable:!0,onDragStart:t=>D(t,e.id),onDragEnd:O,onDragOver:t=>_(t,e.id),onDrop:t=>z(t,e.id),onMouseEnter:t=>{let r=t.currentTarget.getBoundingClientRect();j({id:e.id,text:e.title,top:r.top+r.height/2,left:r.left})},onMouseLeave:()=>j(t=>t?.id===e.id?null:t),onClick:()=>I(e.id),className:`group px-3 py-2 cursor-pointer border-b transition-colors ${A===e.id?"border-b-brand border-t border-t-transparent":"border-b-border/50"} hover:bg-hover`,children:[(0,n.jsxs)("div",{className:"flex items-center gap-1.5 min-w-0",children:[(0,n.jsx)("span",{className:`w-1.5 h-1.5 rounded-full flex-shrink-0 ${i?"bg-red-500":"bg-green-500"}`}),(0,n.jsx)("span",{className:`text-xs truncate flex-1 ${i?"font-medium text-foreground":""}`,children:e.title}),e.commentCount>0&&(0,n.jsx)("button",{onClick:t=>B(t,e.id),className:"flex-shrink-0 p-0.5 rounded text-muted-foreground/0 group-hover:text-muted-foreground/60 hover:!text-brand hover:!bg-brand/10 transition-colors",title:t("review.viewComments"),children:(0,n.jsx)("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:(0,n.jsx)("path",{d:"M7 8h10M7 12h4m1 8l-4-4H5a2 2 0 01-2-2V6a2 2 0 012-2h14a2 2 0 012 2v8a2 2 0 01-2 2h-3l-4 4z"})})})]}),(0,n.jsxs)("div",{className:"flex items-center gap-2 text-[10px] text-muted-foreground/50 mt-0.5 pl-3",children:[(0,n.jsx)("span",{children:(o=String((r=new Date(e.updatedAt||e.createdAt)).getMonth()+1).padStart(2,"0"),s=String(r.getDate()).padStart(2,"0"),a=String(r.getHours()).padStart(2,"0"),l=String(r.getMinutes()).padStart(2,"0"),`${o}-${s} ${a}:${l}`)}),e.commentCount>0&&(0,n.jsx)("span",{children:t("review.nComments",{count:e.commentCount})})]})]},e.id)})})]}),w&&r&&(0,n.jsx)("div",{className:"fixed z-[60] px-2 py-1 text-xs bg-popover text-popover-foreground border border-border rounded shadow-lv2 whitespace-nowrap pointer-events-none",style:{top:w.top,left:w.left-8,transform:"translate(-100%, -50%)"},children:w.text}),(0,n.jsx)(l.ReviewCommentsListModal,{isOpen:C.open,onClose:()=>y(e=>({...e,open:!1})),comments:C.comments,reviewTitle:C.title,userNameMap:C.userNameMap})]})}}}]);