@surething/cockpit 1.1.10 → 1.1.11

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 (569) hide show
  1. package/.next-prod/BUILD_ID +1 -1
  2. package/.next-prod/app-path-routes-manifest.json +4 -2
  3. package/.next-prod/build-manifest.json +2 -2
  4. package/.next-prod/cockpit-build.json +1 -1
  5. package/.next-prod/prerender-manifest.json +3 -3
  6. package/.next-prod/routes-manifest.json +12 -0
  7. package/.next-prod/server/app/_global-error/page.js +2 -2
  8. package/.next-prod/server/app/_global-error/page_client-reference-manifest.js +1 -1
  9. package/.next-prod/server/app/_global-error.html +1 -1
  10. package/.next-prod/server/app/_global-error.rsc +1 -1
  11. package/.next-prod/server/app/_global-error.segments/_full.segment.rsc +1 -1
  12. package/.next-prod/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
  13. package/.next-prod/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  14. package/.next-prod/server/app/_not-found/page.js +1 -1
  15. package/.next-prod/server/app/_not-found/page_client-reference-manifest.js +1 -1
  16. package/.next-prod/server/app/api/agent/test/route.js +1 -1
  17. package/.next-prod/server/app/api/bash/route.js +1 -1
  18. package/.next-prod/server/app/api/bots/[id]/route.js +1 -1
  19. package/.next-prod/server/app/api/bots/files/route.js +1 -1
  20. package/.next-prod/server/app/api/bots/route.js +1 -1
  21. package/.next-prod/server/app/api/chat/codex/route.js +1 -1
  22. package/.next-prod/server/app/api/chat/deepseek/route.js +1 -1
  23. package/.next-prod/server/app/api/chat/glm/route.js +1 -1
  24. package/.next-prod/server/app/api/chat/grok/route.js +1 -1
  25. package/.next-prod/server/app/api/chat/kimi/route.js +1 -1
  26. package/.next-prod/server/app/api/chat/ollama/route.js +1 -1
  27. package/.next-prod/server/app/api/chat/route.js +1 -1
  28. package/.next-prod/server/app/api/chat/stop/route.js +1 -1
  29. package/.next-prod/server/app/api/claude-stats/route.js +1 -1
  30. package/.next-prod/server/app/api/commands/route.js +1 -1
  31. package/.next-prod/server/app/api/comments/route.js +1 -1
  32. package/.next-prod/server/app/api/db/columns/route.js +1 -1
  33. package/.next-prod/server/app/api/db/connect/route.js +1 -1
  34. package/.next-prod/server/app/api/db/disconnect/route.js +1 -1
  35. package/.next-prod/server/app/api/db/export/route.js +1 -1
  36. package/.next-prod/server/app/api/db/query/route.js +1 -1
  37. package/.next-prod/server/app/api/db/schemas/route.js +2 -2
  38. package/.next-prod/server/app/api/deepseek/balance/route.js +1 -1
  39. package/.next-prod/server/app/api/deepseek/credentials/route.js +1 -1
  40. package/.next-prod/server/app/api/deepseek/models/route.js +1 -1
  41. package/.next-prod/server/app/api/dev/spans/route.js +1 -1
  42. package/.next-prod/server/app/api/extension/version/route.js +1 -1
  43. package/.next-prod/server/app/api/file/route.js +1 -1
  44. package/.next-prod/server/app/api/files/blame/route.js +1 -1
  45. package/.next-prod/server/app/api/files/clipboard/route.js +1 -1
  46. package/.next-prod/server/app/api/files/copy/route.js +1 -1
  47. package/.next-prod/server/app/api/files/delete/route.js +1 -1
  48. package/.next-prod/server/app/api/files/expanded/route.js +1 -1
  49. package/.next-prod/server/app/api/files/index/route.js +1 -1
  50. package/.next-prod/server/app/api/files/init/route.js +1 -1
  51. package/.next-prod/server/app/api/files/paste/route.js +1 -1
  52. package/.next-prod/server/app/api/files/read/route.js +1 -1
  53. package/.next-prod/server/app/api/files/readdir/route.js +1 -1
  54. package/.next-prod/server/app/api/files/recent/route.js +1 -1
  55. package/.next-prod/server/app/api/files/save/route.js +1 -1
  56. package/.next-prod/server/app/api/files/search/route.js +1 -1
  57. package/.next-prod/server/app/api/files/stat/route.js +1 -1
  58. package/.next-prod/server/app/api/files/text/route.js +1 -1
  59. package/.next-prod/server/app/api/fs/dirs/route.js +1 -1
  60. package/.next-prod/server/app/api/git/blob/route.js +1 -1
  61. package/.next-prod/server/app/api/git/branch-diff/route.js +1 -1
  62. package/.next-prod/server/app/api/git/branches/route.js +1 -1
  63. package/.next-prod/server/app/api/git/commit-diff/route.js +1 -1
  64. package/.next-prod/server/app/api/git/commits/route.js +1 -1
  65. package/.next-prod/server/app/api/git/current-branch/route.js +1 -1
  66. package/.next-prod/server/app/api/git/diff/route.js +1 -1
  67. package/.next-prod/server/app/api/git/discard/route.js +1 -1
  68. package/.next-prod/server/app/api/git/stage/route.js +1 -1
  69. package/.next-prod/server/app/api/git/status/route.js +1 -1
  70. package/.next-prod/server/app/api/git/unstage/route.js +1 -1
  71. package/.next-prod/server/app/api/git/worktree/route.js +1 -1
  72. package/.next-prod/server/app/api/glm/credentials/route.js +1 -1
  73. package/.next-prod/server/app/api/glm/models/route.js +1 -1
  74. package/.next-prod/server/app/api/glm/usage/route.js +1 -1
  75. package/.next-prod/server/app/api/global-state/route.js +2 -2
  76. package/.next-prod/server/app/api/grok/models/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/files/route.js +1 -1
  80. package/.next-prod/server/app/api/html-apps/route.js +1 -1
  81. package/.next-prod/server/app/api/instructions/config/route.js +1 -1
  82. package/.next-prod/server/app/api/kimi/credentials/route.js +1 -1
  83. package/.next-prod/server/app/api/kimi/models/route.js +1 -1
  84. package/.next-prod/server/app/api/kimi/usage/route.js +1 -1
  85. package/.next-prod/server/app/api/lsp/definition/route.js +1 -1
  86. package/.next-prod/server/app/api/lsp/hover/route.js +1 -1
  87. package/.next-prod/server/app/api/lsp/references/route.js +1 -1
  88. package/.next-prod/server/app/api/lsp/status/route.js +1 -1
  89. package/.next-prod/server/app/api/lsp/warmup/route.js +1 -1
  90. package/.next-prod/server/app/api/mobile-link/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 +2 -2
  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/list/route.js +1 -1
  102. package/.next-prod/server/app/api/note/route.js +1 -1
  103. package/.next-prod/server/app/api/ollama/config/route.js +1 -1
  104. package/.next-prod/server/app/api/ollama/default-model/route.js +1 -1
  105. package/.next-prod/server/app/api/ollama/models/route.js +1 -1
  106. package/.next-prod/server/app/api/ollama/start/route.js +1 -1
  107. package/.next-prod/server/app/api/open-cursor/route.js +1 -1
  108. package/.next-prod/server/app/api/open-vscode/route.js +1 -1
  109. package/.next-prod/server/app/api/pi/thinking/route.js +1 -1
  110. package/.next-prod/server/app/api/pinned-sessions/route.js +1 -1
  111. package/.next-prod/server/app/api/project-settings/route.js +1 -1
  112. package/.next-prod/server/app/api/project-state/route.js +2 -2
  113. package/.next-prod/server/app/api/projectGraph/affected/route.js +1 -1
  114. package/.next-prod/server/app/api/projectGraph/callees/route.js +1 -1
  115. package/.next-prod/server/app/api/projectGraph/callers/route.js +1 -1
  116. package/.next-prod/server/app/api/projectGraph/clones/route.js +1 -0
  117. package/.next-prod/server/app/api/projectGraph/clones/route.js.nft.json +1 -0
  118. package/.next-prod/server/app/api/projectGraph/clones/route_client-reference-manifest.js +1 -0
  119. package/.next-prod/server/app/api/projectGraph/coedit/route.js +1 -1
  120. package/.next-prod/server/app/api/projectGraph/crap/route.js +1 -0
  121. package/.next-prod/server/app/api/projectGraph/crap/route.js.nft.json +1 -0
  122. package/.next-prod/server/app/api/projectGraph/crap/route_client-reference-manifest.js +1 -0
  123. package/.next-prod/server/app/api/projectGraph/edges/route.js +1 -1
  124. package/.next-prod/server/app/api/projectGraph/file/route.js +1 -1
  125. package/.next-prod/server/app/api/projectGraph/file-functions/route.js +1 -1
  126. package/.next-prod/server/app/api/projectGraph/impact/route.js +1 -1
  127. package/.next-prod/server/app/api/projectGraph/maps/route.js +1 -1
  128. package/.next-prod/server/app/api/projectGraph/related/route.js +1 -1
  129. package/.next-prod/server/app/api/projectGraph/search/route.js +1 -1
  130. package/.next-prod/server/app/api/projectGraph/symbols/route.js +1 -1
  131. package/.next-prod/server/app/api/projects/route.js +1 -1
  132. package/.next-prod/server/app/api/push/public-key/route.js +1 -1
  133. package/.next-prod/server/app/api/push/subscribe/route.js +1 -1
  134. package/.next-prod/server/app/api/push/unsubscribe/route.js +1 -1
  135. package/.next-prod/server/app/api/redis/command/route.js +1 -1
  136. package/.next-prod/server/app/api/redis/connect/route.js +1 -1
  137. package/.next-prod/server/app/api/redis/delete/route.js +1 -1
  138. package/.next-prod/server/app/api/redis/disconnect/route.js +1 -1
  139. package/.next-prod/server/app/api/redis/get/route.js +1 -1
  140. package/.next-prod/server/app/api/redis/keys/route.js +1 -1
  141. package/.next-prod/server/app/api/redis/set/route.js +1 -1
  142. package/.next-prod/server/app/api/restart/route.js +1 -1
  143. package/.next-prod/server/app/api/scheduled-tasks/route.js +2 -2
  144. package/.next-prod/server/app/api/services/config/route.js +1 -1
  145. package/.next-prod/server/app/api/services/scripts/route.js +1 -1
  146. package/.next-prod/server/app/api/session/[sessionId]/fork/route.js +1 -1
  147. package/.next-prod/server/app/api/session/[sessionId]/history/route.js +1 -1
  148. package/.next-prod/server/app/api/session/[sessionId]/turn/route.js +2 -2
  149. package/.next-prod/server/app/api/session/image/route.js +1 -1
  150. package/.next-prod/server/app/api/session/user-messages/route.js +1 -1
  151. package/.next-prod/server/app/api/session-bots/route.js +1 -1
  152. package/.next-prod/server/app/api/session-by-path/route.js +1 -1
  153. package/.next-prod/server/app/api/session-context/route.js +2 -2
  154. package/.next-prod/server/app/api/session-title/route.js +1 -1
  155. package/.next-prod/server/app/api/session-title/suggest/route.js +1 -1
  156. package/.next-prod/server/app/api/sessions/delegate/route.js +1 -1
  157. package/.next-prod/server/app/api/sessions/projects/[encodedPath]/route.js +1 -1
  158. package/.next-prod/server/app/api/sessions/projects/route.js +1 -1
  159. package/.next-prod/server/app/api/sessions/search/route.js +1 -1
  160. package/.next-prod/server/app/api/sessions/status/route.js +1 -1
  161. package/.next-prod/server/app/api/settings/route.js +1 -1
  162. package/.next-prod/server/app/api/shutdown/route.js +1 -1
  163. package/.next-prod/server/app/api/skills/[id]/route.js +1 -1
  164. package/.next-prod/server/app/api/skills/builtin/route.js +1 -1
  165. package/.next-prod/server/app/api/skills/content/route.js +1 -1
  166. package/.next-prod/server/app/api/skills/files/route.js +1 -1
  167. package/.next-prod/server/app/api/skills/route.js +1 -1
  168. package/.next-prod/server/app/api/snapshots/blob/route.js +1 -1
  169. package/.next-prod/server/app/api/snapshots/diff/route.js +1 -1
  170. package/.next-prod/server/app/api/snapshots/mark/route.js +1 -1
  171. package/.next-prod/server/app/api/snapshots/range-diff/route.js +1 -1
  172. package/.next-prod/server/app/api/snapshots/restore/route.js +1 -1
  173. package/.next-prod/server/app/api/snapshots/route.js +1 -1
  174. package/.next-prod/server/app/api/terminal/aliases/route.js +1 -1
  175. package/.next-prod/server/app/api/terminal/autocomplete/route.js +1 -1
  176. package/.next-prod/server/app/api/terminal/bubble-order/route.js +1 -1
  177. package/.next-prod/server/app/api/terminal/env/route.js +1 -1
  178. package/.next-prod/server/app/api/terminal/history/route.js +1 -1
  179. package/.next-prod/server/app/api/terminal/running/route.js +1 -1
  180. package/.next-prod/server/app/api/update/route.js +1 -1
  181. package/.next-prod/server/app/api/update-state/route.js +1 -1
  182. package/.next-prod/server/app/api/version/route.js +1 -1
  183. package/.next-prod/server/app/apps/[...path]/route.js +1 -1
  184. package/.next-prod/server/app/favicon.ico/route.js +1 -1
  185. package/.next-prod/server/app/m/page.js +1 -1
  186. package/.next-prod/server/app/m/page_client-reference-manifest.js +1 -1
  187. package/.next-prod/server/app/manifest.webmanifest/route.js +1 -1
  188. package/.next-prod/server/app/page.js +1 -1
  189. package/.next-prod/server/app/page_client-reference-manifest.js +1 -1
  190. package/.next-prod/server/app/project/page.js +1 -1
  191. package/.next-prod/server/app/project/page_client-reference-manifest.js +1 -1
  192. package/.next-prod/server/app-paths-manifest.json +4 -2
  193. package/.next-prod/server/chunks/4949.js +1 -1
  194. package/.next-prod/server/chunks/6610.js +11 -11
  195. package/.next-prod/server/middleware-build-manifest.js +1 -1
  196. package/.next-prod/server/pages/500.html +1 -1
  197. package/.next-prod/server/server-reference-manifest.json +1 -1
  198. package/.next-prod/static/Dj5ykXLzxdIQZcSyjppsm/_buildManifest.js +1 -0
  199. package/.next-prod/static/chunks/{92000-31efb4d63c10446f.js → 60169-2e401ccea5e39a00.js} +21 -21
  200. package/.next-prod/static/chunks/{98596-ffbe0304646a9336.js → 98596-43e9fe35436097c6.js} +6 -6
  201. package/.next-prod/static/chunks/app/_global-error/{page-6af5bc188af96106.js → page-b40b02f6a2592427.js} +1 -1
  202. package/.next-prod/static/chunks/app/api/agent/test/{route-6af5bc188af96106.js → route-b40b02f6a2592427.js} +1 -1
  203. package/.next-prod/static/chunks/app/api/bash/{route-6af5bc188af96106.js → route-b40b02f6a2592427.js} +1 -1
  204. package/.next-prod/static/chunks/app/api/bots/[id]/{route-6af5bc188af96106.js → route-b40b02f6a2592427.js} +1 -1
  205. package/.next-prod/static/chunks/app/api/bots/files/route-b40b02f6a2592427.js +1 -0
  206. package/.next-prod/static/chunks/app/api/bots/route-b40b02f6a2592427.js +1 -0
  207. package/.next-prod/static/chunks/app/api/chat/codex/route-b40b02f6a2592427.js +1 -0
  208. package/.next-prod/static/chunks/app/api/chat/deepseek/route-b40b02f6a2592427.js +1 -0
  209. package/.next-prod/static/chunks/app/api/chat/glm/route-b40b02f6a2592427.js +1 -0
  210. package/.next-prod/static/chunks/app/api/chat/grok/route-b40b02f6a2592427.js +1 -0
  211. package/.next-prod/static/chunks/app/api/chat/kimi/route-b40b02f6a2592427.js +1 -0
  212. package/.next-prod/static/chunks/app/api/chat/ollama/route-b40b02f6a2592427.js +1 -0
  213. package/.next-prod/static/chunks/app/api/chat/route-b40b02f6a2592427.js +1 -0
  214. package/.next-prod/static/chunks/app/api/chat/stop/route-b40b02f6a2592427.js +1 -0
  215. package/.next-prod/static/chunks/app/api/claude-stats/route-b40b02f6a2592427.js +1 -0
  216. package/.next-prod/static/chunks/app/api/commands/route-b40b02f6a2592427.js +1 -0
  217. package/.next-prod/static/chunks/app/api/comments/route-b40b02f6a2592427.js +1 -0
  218. package/.next-prod/static/chunks/app/api/db/columns/route-b40b02f6a2592427.js +1 -0
  219. package/.next-prod/static/chunks/app/api/db/connect/route-b40b02f6a2592427.js +1 -0
  220. package/.next-prod/static/chunks/app/api/db/disconnect/route-b40b02f6a2592427.js +1 -0
  221. package/.next-prod/static/chunks/app/api/db/export/route-b40b02f6a2592427.js +1 -0
  222. package/.next-prod/static/chunks/app/api/db/query/route-b40b02f6a2592427.js +1 -0
  223. package/.next-prod/static/chunks/app/api/db/schemas/route-b40b02f6a2592427.js +1 -0
  224. package/.next-prod/static/chunks/app/api/deepseek/balance/route-b40b02f6a2592427.js +1 -0
  225. package/.next-prod/static/chunks/app/api/deepseek/credentials/route-b40b02f6a2592427.js +1 -0
  226. package/.next-prod/static/chunks/app/api/deepseek/models/route-b40b02f6a2592427.js +1 -0
  227. package/.next-prod/static/chunks/app/api/dev/spans/route-b40b02f6a2592427.js +1 -0
  228. package/.next-prod/static/chunks/app/api/extension/version/route-b40b02f6a2592427.js +1 -0
  229. package/.next-prod/static/chunks/app/api/file/route-b40b02f6a2592427.js +1 -0
  230. package/.next-prod/static/chunks/app/api/files/blame/route-b40b02f6a2592427.js +1 -0
  231. package/.next-prod/static/chunks/app/api/files/clipboard/route-b40b02f6a2592427.js +1 -0
  232. package/.next-prod/static/chunks/app/api/files/copy/route-b40b02f6a2592427.js +1 -0
  233. package/.next-prod/static/chunks/app/api/files/delete/route-b40b02f6a2592427.js +1 -0
  234. package/.next-prod/static/chunks/app/api/files/expanded/route-b40b02f6a2592427.js +1 -0
  235. package/.next-prod/static/chunks/app/api/files/index/route-b40b02f6a2592427.js +1 -0
  236. package/.next-prod/static/chunks/app/api/files/init/route-b40b02f6a2592427.js +1 -0
  237. package/.next-prod/static/chunks/app/api/files/paste/route-b40b02f6a2592427.js +1 -0
  238. package/.next-prod/static/chunks/app/api/files/read/route-b40b02f6a2592427.js +1 -0
  239. package/.next-prod/static/chunks/app/api/files/readdir/route-b40b02f6a2592427.js +1 -0
  240. package/.next-prod/static/chunks/app/api/files/recent/route-b40b02f6a2592427.js +1 -0
  241. package/.next-prod/static/chunks/app/api/files/save/route-b40b02f6a2592427.js +1 -0
  242. package/.next-prod/static/chunks/app/api/files/search/route-b40b02f6a2592427.js +1 -0
  243. package/.next-prod/static/chunks/app/api/files/stat/route-b40b02f6a2592427.js +1 -0
  244. package/.next-prod/static/chunks/app/api/files/text/route-b40b02f6a2592427.js +1 -0
  245. package/.next-prod/static/chunks/app/api/fs/dirs/route-b40b02f6a2592427.js +1 -0
  246. package/.next-prod/static/chunks/app/api/git/blob/route-b40b02f6a2592427.js +1 -0
  247. package/.next-prod/static/chunks/app/api/git/branch-diff/route-b40b02f6a2592427.js +1 -0
  248. package/.next-prod/static/chunks/app/api/git/branches/route-b40b02f6a2592427.js +1 -0
  249. package/.next-prod/static/chunks/app/api/git/commit-diff/route-b40b02f6a2592427.js +1 -0
  250. package/.next-prod/static/chunks/app/api/git/commits/route-b40b02f6a2592427.js +1 -0
  251. package/.next-prod/static/chunks/app/api/git/current-branch/route-b40b02f6a2592427.js +1 -0
  252. package/.next-prod/static/chunks/app/api/git/diff/route-b40b02f6a2592427.js +1 -0
  253. package/.next-prod/static/chunks/app/api/git/discard/route-b40b02f6a2592427.js +1 -0
  254. package/.next-prod/static/chunks/app/api/git/stage/route-b40b02f6a2592427.js +1 -0
  255. package/.next-prod/static/chunks/app/api/git/status/route-b40b02f6a2592427.js +1 -0
  256. package/.next-prod/static/chunks/app/api/git/unstage/route-b40b02f6a2592427.js +1 -0
  257. package/.next-prod/static/chunks/app/api/git/worktree/route-b40b02f6a2592427.js +1 -0
  258. package/.next-prod/static/chunks/app/api/glm/credentials/route-b40b02f6a2592427.js +1 -0
  259. package/.next-prod/static/chunks/app/api/glm/models/route-b40b02f6a2592427.js +1 -0
  260. package/.next-prod/static/chunks/app/api/glm/usage/route-b40b02f6a2592427.js +1 -0
  261. package/.next-prod/static/chunks/app/api/global-state/route-b40b02f6a2592427.js +1 -0
  262. package/.next-prod/static/chunks/app/api/grok/models/route-b40b02f6a2592427.js +1 -0
  263. package/.next-prod/static/chunks/app/api/health/route-b40b02f6a2592427.js +1 -0
  264. package/.next-prod/static/chunks/app/api/html-apps/[id]/route-b40b02f6a2592427.js +1 -0
  265. package/.next-prod/static/chunks/app/api/html-apps/files/route-b40b02f6a2592427.js +1 -0
  266. package/.next-prod/static/chunks/app/api/html-apps/route-b40b02f6a2592427.js +1 -0
  267. package/.next-prod/static/chunks/app/api/instructions/config/route-b40b02f6a2592427.js +1 -0
  268. package/.next-prod/static/chunks/app/api/kimi/credentials/route-b40b02f6a2592427.js +1 -0
  269. package/.next-prod/static/chunks/app/api/kimi/models/route-b40b02f6a2592427.js +1 -0
  270. package/.next-prod/static/chunks/app/api/kimi/usage/route-b40b02f6a2592427.js +1 -0
  271. package/.next-prod/static/chunks/app/api/lsp/definition/route-b40b02f6a2592427.js +1 -0
  272. package/.next-prod/static/chunks/app/api/lsp/hover/route-b40b02f6a2592427.js +1 -0
  273. package/.next-prod/static/chunks/app/api/lsp/references/route-b40b02f6a2592427.js +1 -0
  274. package/.next-prod/static/chunks/app/api/lsp/status/route-b40b02f6a2592427.js +1 -0
  275. package/.next-prod/static/chunks/app/api/lsp/warmup/route-b40b02f6a2592427.js +1 -0
  276. package/.next-prod/static/chunks/app/api/mobile-link/route-b40b02f6a2592427.js +1 -0
  277. package/.next-prod/static/chunks/app/api/mysql/columns/route-b40b02f6a2592427.js +1 -0
  278. package/.next-prod/static/chunks/app/api/mysql/connect/route-b40b02f6a2592427.js +1 -0
  279. package/.next-prod/static/chunks/app/api/mysql/disconnect/route-b40b02f6a2592427.js +1 -0
  280. package/.next-prod/static/chunks/app/api/mysql/export/route-b40b02f6a2592427.js +1 -0
  281. package/.next-prod/static/chunks/app/api/mysql/query/route-b40b02f6a2592427.js +1 -0
  282. package/.next-prod/static/chunks/app/api/mysql/schemas/route-b40b02f6a2592427.js +1 -0
  283. package/.next-prod/static/chunks/app/api/neo4j/connect/route-b40b02f6a2592427.js +1 -0
  284. package/.next-prod/static/chunks/app/api/neo4j/disconnect/route-b40b02f6a2592427.js +1 -0
  285. package/.next-prod/static/chunks/app/api/neo4j/query/route-b40b02f6a2592427.js +1 -0
  286. package/.next-prod/static/chunks/app/api/neo4j/schema/route-b40b02f6a2592427.js +1 -0
  287. package/.next-prod/static/chunks/app/api/note/list/route-b40b02f6a2592427.js +1 -0
  288. package/.next-prod/static/chunks/app/api/note/route-b40b02f6a2592427.js +1 -0
  289. package/.next-prod/static/chunks/app/api/ollama/config/route-b40b02f6a2592427.js +1 -0
  290. package/.next-prod/static/chunks/app/api/ollama/default-model/route-b40b02f6a2592427.js +1 -0
  291. package/.next-prod/static/chunks/app/api/ollama/models/route-b40b02f6a2592427.js +1 -0
  292. package/.next-prod/static/chunks/app/api/ollama/start/route-b40b02f6a2592427.js +1 -0
  293. package/.next-prod/static/chunks/app/api/open-cursor/route-b40b02f6a2592427.js +1 -0
  294. package/.next-prod/static/chunks/app/api/open-vscode/route-b40b02f6a2592427.js +1 -0
  295. package/.next-prod/static/chunks/app/api/pi/thinking/route-b40b02f6a2592427.js +1 -0
  296. package/.next-prod/static/chunks/app/api/pinned-sessions/route-b40b02f6a2592427.js +1 -0
  297. package/.next-prod/static/chunks/app/api/project-settings/route-b40b02f6a2592427.js +1 -0
  298. package/.next-prod/static/chunks/app/api/project-state/route-b40b02f6a2592427.js +1 -0
  299. package/.next-prod/static/chunks/app/api/projectGraph/affected/route-b40b02f6a2592427.js +1 -0
  300. package/.next-prod/static/chunks/app/api/projectGraph/callees/route-b40b02f6a2592427.js +1 -0
  301. package/.next-prod/static/chunks/app/api/projectGraph/callers/route-b40b02f6a2592427.js +1 -0
  302. package/.next-prod/static/chunks/app/api/projectGraph/clones/route-b40b02f6a2592427.js +1 -0
  303. package/.next-prod/static/chunks/app/api/projectGraph/coedit/route-b40b02f6a2592427.js +1 -0
  304. package/.next-prod/static/chunks/app/api/projectGraph/crap/route-b40b02f6a2592427.js +1 -0
  305. package/.next-prod/static/chunks/app/api/projectGraph/edges/route-b40b02f6a2592427.js +1 -0
  306. package/.next-prod/static/chunks/app/api/projectGraph/file/route-b40b02f6a2592427.js +1 -0
  307. package/.next-prod/static/chunks/app/api/projectGraph/file-functions/route-b40b02f6a2592427.js +1 -0
  308. package/.next-prod/static/chunks/app/api/projectGraph/impact/route-b40b02f6a2592427.js +1 -0
  309. package/.next-prod/static/chunks/app/api/projectGraph/maps/route-b40b02f6a2592427.js +1 -0
  310. package/.next-prod/static/chunks/app/api/projectGraph/related/route-b40b02f6a2592427.js +1 -0
  311. package/.next-prod/static/chunks/app/api/projectGraph/search/route-b40b02f6a2592427.js +1 -0
  312. package/.next-prod/static/chunks/app/api/projectGraph/symbols/route-b40b02f6a2592427.js +1 -0
  313. package/.next-prod/static/chunks/app/api/projects/route-b40b02f6a2592427.js +1 -0
  314. package/.next-prod/static/chunks/app/api/push/public-key/route-b40b02f6a2592427.js +1 -0
  315. package/.next-prod/static/chunks/app/api/push/subscribe/route-b40b02f6a2592427.js +1 -0
  316. package/.next-prod/static/chunks/app/api/push/unsubscribe/route-b40b02f6a2592427.js +1 -0
  317. package/.next-prod/static/chunks/app/api/redis/command/route-b40b02f6a2592427.js +1 -0
  318. package/.next-prod/static/chunks/app/api/redis/connect/route-b40b02f6a2592427.js +1 -0
  319. package/.next-prod/static/chunks/app/api/redis/delete/route-b40b02f6a2592427.js +1 -0
  320. package/.next-prod/static/chunks/app/api/redis/disconnect/route-b40b02f6a2592427.js +1 -0
  321. package/.next-prod/static/chunks/app/api/redis/get/route-b40b02f6a2592427.js +1 -0
  322. package/.next-prod/static/chunks/app/api/redis/keys/route-b40b02f6a2592427.js +1 -0
  323. package/.next-prod/static/chunks/app/api/redis/set/route-b40b02f6a2592427.js +1 -0
  324. package/.next-prod/static/chunks/app/api/restart/route-b40b02f6a2592427.js +1 -0
  325. package/.next-prod/static/chunks/app/api/scheduled-tasks/route-b40b02f6a2592427.js +1 -0
  326. package/.next-prod/static/chunks/app/api/services/config/route-b40b02f6a2592427.js +1 -0
  327. package/.next-prod/static/chunks/app/api/services/scripts/route-b40b02f6a2592427.js +1 -0
  328. package/.next-prod/static/chunks/app/api/session/[sessionId]/fork/route-b40b02f6a2592427.js +1 -0
  329. package/.next-prod/static/chunks/app/api/session/[sessionId]/history/route-b40b02f6a2592427.js +1 -0
  330. package/.next-prod/static/chunks/app/api/session/[sessionId]/turn/route-b40b02f6a2592427.js +1 -0
  331. package/.next-prod/static/chunks/app/api/session/image/route-b40b02f6a2592427.js +1 -0
  332. package/.next-prod/static/chunks/app/api/session/user-messages/route-b40b02f6a2592427.js +1 -0
  333. package/.next-prod/static/chunks/app/api/session-bots/route-b40b02f6a2592427.js +1 -0
  334. package/.next-prod/static/chunks/app/api/session-by-path/route-b40b02f6a2592427.js +1 -0
  335. package/.next-prod/static/chunks/app/api/session-context/route-b40b02f6a2592427.js +1 -0
  336. package/.next-prod/static/chunks/app/api/session-title/route-b40b02f6a2592427.js +1 -0
  337. package/.next-prod/static/chunks/app/api/session-title/suggest/route-b40b02f6a2592427.js +1 -0
  338. package/.next-prod/static/chunks/app/api/sessions/delegate/route-b40b02f6a2592427.js +1 -0
  339. package/.next-prod/static/chunks/app/api/sessions/projects/[encodedPath]/route-b40b02f6a2592427.js +1 -0
  340. package/.next-prod/static/chunks/app/api/sessions/projects/route-b40b02f6a2592427.js +1 -0
  341. package/.next-prod/static/chunks/app/api/sessions/search/route-b40b02f6a2592427.js +1 -0
  342. package/.next-prod/static/chunks/app/api/sessions/status/route-b40b02f6a2592427.js +1 -0
  343. package/.next-prod/static/chunks/app/api/settings/route-b40b02f6a2592427.js +1 -0
  344. package/.next-prod/static/chunks/app/api/shutdown/route-b40b02f6a2592427.js +1 -0
  345. package/.next-prod/static/chunks/app/api/skills/[id]/route-b40b02f6a2592427.js +1 -0
  346. package/.next-prod/static/chunks/app/api/skills/builtin/route-b40b02f6a2592427.js +1 -0
  347. package/.next-prod/static/chunks/app/api/skills/content/route-b40b02f6a2592427.js +1 -0
  348. package/.next-prod/static/chunks/app/api/skills/files/route-b40b02f6a2592427.js +1 -0
  349. package/.next-prod/static/chunks/app/api/skills/route-b40b02f6a2592427.js +1 -0
  350. package/.next-prod/static/chunks/app/api/snapshots/blob/route-b40b02f6a2592427.js +1 -0
  351. package/.next-prod/static/chunks/app/api/snapshots/diff/route-b40b02f6a2592427.js +1 -0
  352. package/.next-prod/static/chunks/app/api/snapshots/mark/route-b40b02f6a2592427.js +1 -0
  353. package/.next-prod/static/chunks/app/api/snapshots/range-diff/route-b40b02f6a2592427.js +1 -0
  354. package/.next-prod/static/chunks/app/api/snapshots/restore/route-b40b02f6a2592427.js +1 -0
  355. package/.next-prod/static/chunks/app/api/snapshots/route-b40b02f6a2592427.js +1 -0
  356. package/.next-prod/static/chunks/app/api/terminal/aliases/route-b40b02f6a2592427.js +1 -0
  357. package/.next-prod/static/chunks/app/api/terminal/autocomplete/route-b40b02f6a2592427.js +1 -0
  358. package/.next-prod/static/chunks/app/api/terminal/bubble-order/route-b40b02f6a2592427.js +1 -0
  359. package/.next-prod/static/chunks/app/api/terminal/env/route-b40b02f6a2592427.js +1 -0
  360. package/.next-prod/static/chunks/app/api/terminal/history/route-b40b02f6a2592427.js +1 -0
  361. package/.next-prod/static/chunks/app/api/terminal/running/route-b40b02f6a2592427.js +1 -0
  362. package/.next-prod/static/chunks/app/api/update/route-b40b02f6a2592427.js +1 -0
  363. package/.next-prod/static/chunks/app/api/update-state/route-b40b02f6a2592427.js +1 -0
  364. package/.next-prod/static/chunks/app/api/version/route-b40b02f6a2592427.js +1 -0
  365. package/.next-prod/static/chunks/app/apps/[...path]/route-b40b02f6a2592427.js +1 -0
  366. package/.next-prod/static/chunks/app/{layout-7107ed4eeac1f693.js → layout-a568d04e8d2707c3.js} +1 -1
  367. package/.next-prod/static/chunks/app/manifest.webmanifest/route-b40b02f6a2592427.js +1 -0
  368. package/.next-prod/static/chunks/app/{page-338a2c84319778b1.js → page-6675d44ff6c5ebc6.js} +1 -1
  369. package/.next-prod/static/chunks/app/project/{page-338a2c84319778b1.js → page-6675d44ff6c5ebc6.js} +1 -1
  370. package/.next-prod/static/chunks/next/dist/client/components/builtin/app-error-b40b02f6a2592427.js +1 -0
  371. package/.next-prod/static/chunks/next/dist/client/components/builtin/forbidden-b40b02f6a2592427.js +1 -0
  372. package/.next-prod/static/chunks/next/dist/client/components/builtin/not-found-b40b02f6a2592427.js +1 -0
  373. package/.next-prod/static/chunks/next/dist/client/components/builtin/unauthorized-b40b02f6a2592427.js +1 -0
  374. package/.next-prod/trace +86 -86
  375. package/.next-prod/trace-build +1 -1
  376. package/.next-prod/types/app/api/projectGraph/clones/route.ts +353 -0
  377. package/.next-prod/types/app/api/projectGraph/crap/route.ts +353 -0
  378. package/.next-prod/types/routes.d.ts +3 -1
  379. package/.next-prod/types/validator.ts +18 -0
  380. package/README.md +1 -1
  381. package/README.zh.md +1 -1
  382. package/bin/cock-codegraph.mjs +111 -27
  383. package/bin/cockpit.mjs +1 -1
  384. package/bin/managed-npm-updater.mjs +0 -1
  385. package/desktop-checksums.json +4 -4
  386. package/dist/scheduledTasks.mjs +22 -10
  387. package/dist/wsServer.mjs +899 -160
  388. package/package.json +1 -1
  389. package/scripts/copy-tree-sitter-wasms.mjs +2 -2
  390. package/skills/ar/SKILL.md +293 -0
  391. package/skills/ar/boundary.md +48 -0
  392. package/skills/ar/evolution.md +38 -0
  393. package/skills/ar/legibility.md +52 -0
  394. package/skills/ar/reviewer.md +261 -0
  395. package/skills/ar/structure.md +38 -0
  396. package/skills/cg/SKILL.md +85 -14
  397. package/skills/cr/SKILL.md +62 -293
  398. package/skills/cr/reviewer.md +303 -0
  399. package/skills/rf/SKILL.md +6 -5
  400. package/skills/rf/axes.md +24 -2
  401. package/skills/rf/fix.md +58 -10
  402. package/skills/rf/lenses.md +27 -6
  403. package/skills/rf/sources.md +86 -24
  404. package/.next-prod/static/IlC_BH61CJ0hFaOu_akE9/_buildManifest.js +0 -1
  405. package/.next-prod/static/chunks/app/api/bots/files/route-6af5bc188af96106.js +0 -1
  406. package/.next-prod/static/chunks/app/api/bots/route-6af5bc188af96106.js +0 -1
  407. package/.next-prod/static/chunks/app/api/chat/codex/route-6af5bc188af96106.js +0 -1
  408. package/.next-prod/static/chunks/app/api/chat/deepseek/route-6af5bc188af96106.js +0 -1
  409. package/.next-prod/static/chunks/app/api/chat/glm/route-6af5bc188af96106.js +0 -1
  410. package/.next-prod/static/chunks/app/api/chat/grok/route-6af5bc188af96106.js +0 -1
  411. package/.next-prod/static/chunks/app/api/chat/kimi/route-6af5bc188af96106.js +0 -1
  412. package/.next-prod/static/chunks/app/api/chat/ollama/route-6af5bc188af96106.js +0 -1
  413. package/.next-prod/static/chunks/app/api/chat/route-6af5bc188af96106.js +0 -1
  414. package/.next-prod/static/chunks/app/api/chat/stop/route-6af5bc188af96106.js +0 -1
  415. package/.next-prod/static/chunks/app/api/claude-stats/route-6af5bc188af96106.js +0 -1
  416. package/.next-prod/static/chunks/app/api/commands/route-6af5bc188af96106.js +0 -1
  417. package/.next-prod/static/chunks/app/api/comments/route-6af5bc188af96106.js +0 -1
  418. package/.next-prod/static/chunks/app/api/db/columns/route-6af5bc188af96106.js +0 -1
  419. package/.next-prod/static/chunks/app/api/db/connect/route-6af5bc188af96106.js +0 -1
  420. package/.next-prod/static/chunks/app/api/db/disconnect/route-6af5bc188af96106.js +0 -1
  421. package/.next-prod/static/chunks/app/api/db/export/route-6af5bc188af96106.js +0 -1
  422. package/.next-prod/static/chunks/app/api/db/query/route-6af5bc188af96106.js +0 -1
  423. package/.next-prod/static/chunks/app/api/db/schemas/route-6af5bc188af96106.js +0 -1
  424. package/.next-prod/static/chunks/app/api/deepseek/balance/route-6af5bc188af96106.js +0 -1
  425. package/.next-prod/static/chunks/app/api/deepseek/credentials/route-6af5bc188af96106.js +0 -1
  426. package/.next-prod/static/chunks/app/api/deepseek/models/route-6af5bc188af96106.js +0 -1
  427. package/.next-prod/static/chunks/app/api/dev/spans/route-6af5bc188af96106.js +0 -1
  428. package/.next-prod/static/chunks/app/api/extension/version/route-6af5bc188af96106.js +0 -1
  429. package/.next-prod/static/chunks/app/api/file/route-6af5bc188af96106.js +0 -1
  430. package/.next-prod/static/chunks/app/api/files/blame/route-6af5bc188af96106.js +0 -1
  431. package/.next-prod/static/chunks/app/api/files/clipboard/route-6af5bc188af96106.js +0 -1
  432. package/.next-prod/static/chunks/app/api/files/copy/route-6af5bc188af96106.js +0 -1
  433. package/.next-prod/static/chunks/app/api/files/delete/route-6af5bc188af96106.js +0 -1
  434. package/.next-prod/static/chunks/app/api/files/expanded/route-6af5bc188af96106.js +0 -1
  435. package/.next-prod/static/chunks/app/api/files/index/route-6af5bc188af96106.js +0 -1
  436. package/.next-prod/static/chunks/app/api/files/init/route-6af5bc188af96106.js +0 -1
  437. package/.next-prod/static/chunks/app/api/files/paste/route-6af5bc188af96106.js +0 -1
  438. package/.next-prod/static/chunks/app/api/files/read/route-6af5bc188af96106.js +0 -1
  439. package/.next-prod/static/chunks/app/api/files/readdir/route-6af5bc188af96106.js +0 -1
  440. package/.next-prod/static/chunks/app/api/files/recent/route-6af5bc188af96106.js +0 -1
  441. package/.next-prod/static/chunks/app/api/files/save/route-6af5bc188af96106.js +0 -1
  442. package/.next-prod/static/chunks/app/api/files/search/route-6af5bc188af96106.js +0 -1
  443. package/.next-prod/static/chunks/app/api/files/stat/route-6af5bc188af96106.js +0 -1
  444. package/.next-prod/static/chunks/app/api/files/text/route-6af5bc188af96106.js +0 -1
  445. package/.next-prod/static/chunks/app/api/fs/dirs/route-6af5bc188af96106.js +0 -1
  446. package/.next-prod/static/chunks/app/api/git/blob/route-6af5bc188af96106.js +0 -1
  447. package/.next-prod/static/chunks/app/api/git/branch-diff/route-6af5bc188af96106.js +0 -1
  448. package/.next-prod/static/chunks/app/api/git/branches/route-6af5bc188af96106.js +0 -1
  449. package/.next-prod/static/chunks/app/api/git/commit-diff/route-6af5bc188af96106.js +0 -1
  450. package/.next-prod/static/chunks/app/api/git/commits/route-6af5bc188af96106.js +0 -1
  451. package/.next-prod/static/chunks/app/api/git/current-branch/route-6af5bc188af96106.js +0 -1
  452. package/.next-prod/static/chunks/app/api/git/diff/route-6af5bc188af96106.js +0 -1
  453. package/.next-prod/static/chunks/app/api/git/discard/route-6af5bc188af96106.js +0 -1
  454. package/.next-prod/static/chunks/app/api/git/stage/route-6af5bc188af96106.js +0 -1
  455. package/.next-prod/static/chunks/app/api/git/status/route-6af5bc188af96106.js +0 -1
  456. package/.next-prod/static/chunks/app/api/git/unstage/route-6af5bc188af96106.js +0 -1
  457. package/.next-prod/static/chunks/app/api/git/worktree/route-6af5bc188af96106.js +0 -1
  458. package/.next-prod/static/chunks/app/api/glm/credentials/route-6af5bc188af96106.js +0 -1
  459. package/.next-prod/static/chunks/app/api/glm/models/route-6af5bc188af96106.js +0 -1
  460. package/.next-prod/static/chunks/app/api/glm/usage/route-6af5bc188af96106.js +0 -1
  461. package/.next-prod/static/chunks/app/api/global-state/route-6af5bc188af96106.js +0 -1
  462. package/.next-prod/static/chunks/app/api/grok/models/route-6af5bc188af96106.js +0 -1
  463. package/.next-prod/static/chunks/app/api/health/route-6af5bc188af96106.js +0 -1
  464. package/.next-prod/static/chunks/app/api/html-apps/[id]/route-6af5bc188af96106.js +0 -1
  465. package/.next-prod/static/chunks/app/api/html-apps/files/route-6af5bc188af96106.js +0 -1
  466. package/.next-prod/static/chunks/app/api/html-apps/route-6af5bc188af96106.js +0 -1
  467. package/.next-prod/static/chunks/app/api/instructions/config/route-6af5bc188af96106.js +0 -1
  468. package/.next-prod/static/chunks/app/api/kimi/credentials/route-6af5bc188af96106.js +0 -1
  469. package/.next-prod/static/chunks/app/api/kimi/models/route-6af5bc188af96106.js +0 -1
  470. package/.next-prod/static/chunks/app/api/kimi/usage/route-6af5bc188af96106.js +0 -1
  471. package/.next-prod/static/chunks/app/api/lsp/definition/route-6af5bc188af96106.js +0 -1
  472. package/.next-prod/static/chunks/app/api/lsp/hover/route-6af5bc188af96106.js +0 -1
  473. package/.next-prod/static/chunks/app/api/lsp/references/route-6af5bc188af96106.js +0 -1
  474. package/.next-prod/static/chunks/app/api/lsp/status/route-6af5bc188af96106.js +0 -1
  475. package/.next-prod/static/chunks/app/api/lsp/warmup/route-6af5bc188af96106.js +0 -1
  476. package/.next-prod/static/chunks/app/api/mobile-link/route-6af5bc188af96106.js +0 -1
  477. package/.next-prod/static/chunks/app/api/mysql/columns/route-6af5bc188af96106.js +0 -1
  478. package/.next-prod/static/chunks/app/api/mysql/connect/route-6af5bc188af96106.js +0 -1
  479. package/.next-prod/static/chunks/app/api/mysql/disconnect/route-6af5bc188af96106.js +0 -1
  480. package/.next-prod/static/chunks/app/api/mysql/export/route-6af5bc188af96106.js +0 -1
  481. package/.next-prod/static/chunks/app/api/mysql/query/route-6af5bc188af96106.js +0 -1
  482. package/.next-prod/static/chunks/app/api/mysql/schemas/route-6af5bc188af96106.js +0 -1
  483. package/.next-prod/static/chunks/app/api/neo4j/connect/route-6af5bc188af96106.js +0 -1
  484. package/.next-prod/static/chunks/app/api/neo4j/disconnect/route-6af5bc188af96106.js +0 -1
  485. package/.next-prod/static/chunks/app/api/neo4j/query/route-6af5bc188af96106.js +0 -1
  486. package/.next-prod/static/chunks/app/api/neo4j/schema/route-6af5bc188af96106.js +0 -1
  487. package/.next-prod/static/chunks/app/api/note/list/route-6af5bc188af96106.js +0 -1
  488. package/.next-prod/static/chunks/app/api/note/route-6af5bc188af96106.js +0 -1
  489. package/.next-prod/static/chunks/app/api/ollama/config/route-6af5bc188af96106.js +0 -1
  490. package/.next-prod/static/chunks/app/api/ollama/default-model/route-6af5bc188af96106.js +0 -1
  491. package/.next-prod/static/chunks/app/api/ollama/models/route-6af5bc188af96106.js +0 -1
  492. package/.next-prod/static/chunks/app/api/ollama/start/route-6af5bc188af96106.js +0 -1
  493. package/.next-prod/static/chunks/app/api/open-cursor/route-6af5bc188af96106.js +0 -1
  494. package/.next-prod/static/chunks/app/api/open-vscode/route-6af5bc188af96106.js +0 -1
  495. package/.next-prod/static/chunks/app/api/pi/thinking/route-6af5bc188af96106.js +0 -1
  496. package/.next-prod/static/chunks/app/api/pinned-sessions/route-6af5bc188af96106.js +0 -1
  497. package/.next-prod/static/chunks/app/api/project-settings/route-6af5bc188af96106.js +0 -1
  498. package/.next-prod/static/chunks/app/api/project-state/route-6af5bc188af96106.js +0 -1
  499. package/.next-prod/static/chunks/app/api/projectGraph/affected/route-6af5bc188af96106.js +0 -1
  500. package/.next-prod/static/chunks/app/api/projectGraph/callees/route-6af5bc188af96106.js +0 -1
  501. package/.next-prod/static/chunks/app/api/projectGraph/callers/route-6af5bc188af96106.js +0 -1
  502. package/.next-prod/static/chunks/app/api/projectGraph/coedit/route-6af5bc188af96106.js +0 -1
  503. package/.next-prod/static/chunks/app/api/projectGraph/edges/route-6af5bc188af96106.js +0 -1
  504. package/.next-prod/static/chunks/app/api/projectGraph/file/route-6af5bc188af96106.js +0 -1
  505. package/.next-prod/static/chunks/app/api/projectGraph/file-functions/route-6af5bc188af96106.js +0 -1
  506. package/.next-prod/static/chunks/app/api/projectGraph/impact/route-6af5bc188af96106.js +0 -1
  507. package/.next-prod/static/chunks/app/api/projectGraph/maps/route-6af5bc188af96106.js +0 -1
  508. package/.next-prod/static/chunks/app/api/projectGraph/related/route-6af5bc188af96106.js +0 -1
  509. package/.next-prod/static/chunks/app/api/projectGraph/search/route-6af5bc188af96106.js +0 -1
  510. package/.next-prod/static/chunks/app/api/projectGraph/symbols/route-6af5bc188af96106.js +0 -1
  511. package/.next-prod/static/chunks/app/api/projects/route-6af5bc188af96106.js +0 -1
  512. package/.next-prod/static/chunks/app/api/push/public-key/route-6af5bc188af96106.js +0 -1
  513. package/.next-prod/static/chunks/app/api/push/subscribe/route-6af5bc188af96106.js +0 -1
  514. package/.next-prod/static/chunks/app/api/push/unsubscribe/route-6af5bc188af96106.js +0 -1
  515. package/.next-prod/static/chunks/app/api/redis/command/route-6af5bc188af96106.js +0 -1
  516. package/.next-prod/static/chunks/app/api/redis/connect/route-6af5bc188af96106.js +0 -1
  517. package/.next-prod/static/chunks/app/api/redis/delete/route-6af5bc188af96106.js +0 -1
  518. package/.next-prod/static/chunks/app/api/redis/disconnect/route-6af5bc188af96106.js +0 -1
  519. package/.next-prod/static/chunks/app/api/redis/get/route-6af5bc188af96106.js +0 -1
  520. package/.next-prod/static/chunks/app/api/redis/keys/route-6af5bc188af96106.js +0 -1
  521. package/.next-prod/static/chunks/app/api/redis/set/route-6af5bc188af96106.js +0 -1
  522. package/.next-prod/static/chunks/app/api/restart/route-6af5bc188af96106.js +0 -1
  523. package/.next-prod/static/chunks/app/api/scheduled-tasks/route-6af5bc188af96106.js +0 -1
  524. package/.next-prod/static/chunks/app/api/services/config/route-6af5bc188af96106.js +0 -1
  525. package/.next-prod/static/chunks/app/api/services/scripts/route-6af5bc188af96106.js +0 -1
  526. package/.next-prod/static/chunks/app/api/session/[sessionId]/fork/route-6af5bc188af96106.js +0 -1
  527. package/.next-prod/static/chunks/app/api/session/[sessionId]/history/route-6af5bc188af96106.js +0 -1
  528. package/.next-prod/static/chunks/app/api/session/[sessionId]/turn/route-6af5bc188af96106.js +0 -1
  529. package/.next-prod/static/chunks/app/api/session/image/route-6af5bc188af96106.js +0 -1
  530. package/.next-prod/static/chunks/app/api/session/user-messages/route-6af5bc188af96106.js +0 -1
  531. package/.next-prod/static/chunks/app/api/session-bots/route-6af5bc188af96106.js +0 -1
  532. package/.next-prod/static/chunks/app/api/session-by-path/route-6af5bc188af96106.js +0 -1
  533. package/.next-prod/static/chunks/app/api/session-context/route-6af5bc188af96106.js +0 -1
  534. package/.next-prod/static/chunks/app/api/session-title/route-6af5bc188af96106.js +0 -1
  535. package/.next-prod/static/chunks/app/api/session-title/suggest/route-6af5bc188af96106.js +0 -1
  536. package/.next-prod/static/chunks/app/api/sessions/delegate/route-6af5bc188af96106.js +0 -1
  537. package/.next-prod/static/chunks/app/api/sessions/projects/[encodedPath]/route-6af5bc188af96106.js +0 -1
  538. package/.next-prod/static/chunks/app/api/sessions/projects/route-6af5bc188af96106.js +0 -1
  539. package/.next-prod/static/chunks/app/api/sessions/search/route-6af5bc188af96106.js +0 -1
  540. package/.next-prod/static/chunks/app/api/sessions/status/route-6af5bc188af96106.js +0 -1
  541. package/.next-prod/static/chunks/app/api/settings/route-6af5bc188af96106.js +0 -1
  542. package/.next-prod/static/chunks/app/api/shutdown/route-6af5bc188af96106.js +0 -1
  543. package/.next-prod/static/chunks/app/api/skills/[id]/route-6af5bc188af96106.js +0 -1
  544. package/.next-prod/static/chunks/app/api/skills/builtin/route-6af5bc188af96106.js +0 -1
  545. package/.next-prod/static/chunks/app/api/skills/content/route-6af5bc188af96106.js +0 -1
  546. package/.next-prod/static/chunks/app/api/skills/files/route-6af5bc188af96106.js +0 -1
  547. package/.next-prod/static/chunks/app/api/skills/route-6af5bc188af96106.js +0 -1
  548. package/.next-prod/static/chunks/app/api/snapshots/blob/route-6af5bc188af96106.js +0 -1
  549. package/.next-prod/static/chunks/app/api/snapshots/diff/route-6af5bc188af96106.js +0 -1
  550. package/.next-prod/static/chunks/app/api/snapshots/mark/route-6af5bc188af96106.js +0 -1
  551. package/.next-prod/static/chunks/app/api/snapshots/range-diff/route-6af5bc188af96106.js +0 -1
  552. package/.next-prod/static/chunks/app/api/snapshots/restore/route-6af5bc188af96106.js +0 -1
  553. package/.next-prod/static/chunks/app/api/snapshots/route-6af5bc188af96106.js +0 -1
  554. package/.next-prod/static/chunks/app/api/terminal/aliases/route-6af5bc188af96106.js +0 -1
  555. package/.next-prod/static/chunks/app/api/terminal/autocomplete/route-6af5bc188af96106.js +0 -1
  556. package/.next-prod/static/chunks/app/api/terminal/bubble-order/route-6af5bc188af96106.js +0 -1
  557. package/.next-prod/static/chunks/app/api/terminal/env/route-6af5bc188af96106.js +0 -1
  558. package/.next-prod/static/chunks/app/api/terminal/history/route-6af5bc188af96106.js +0 -1
  559. package/.next-prod/static/chunks/app/api/terminal/running/route-6af5bc188af96106.js +0 -1
  560. package/.next-prod/static/chunks/app/api/update/route-6af5bc188af96106.js +0 -1
  561. package/.next-prod/static/chunks/app/api/update-state/route-6af5bc188af96106.js +0 -1
  562. package/.next-prod/static/chunks/app/api/version/route-6af5bc188af96106.js +0 -1
  563. package/.next-prod/static/chunks/app/apps/[...path]/route-6af5bc188af96106.js +0 -1
  564. package/.next-prod/static/chunks/app/manifest.webmanifest/route-6af5bc188af96106.js +0 -1
  565. package/.next-prod/static/chunks/next/dist/client/components/builtin/app-error-6af5bc188af96106.js +0 -1
  566. package/.next-prod/static/chunks/next/dist/client/components/builtin/forbidden-6af5bc188af96106.js +0 -1
  567. package/.next-prod/static/chunks/next/dist/client/components/builtin/not-found-6af5bc188af96106.js +0 -1
  568. package/.next-prod/static/chunks/next/dist/client/components/builtin/unauthorized-6af5bc188af96106.js +0 -1
  569. /package/.next-prod/static/{IlC_BH61CJ0hFaOu_akE9 → Dj5ykXLzxdIQZcSyjppsm}/_ssgManifest.js +0 -0
@@ -1,2 +1,2 @@
1
- "use strict";(()=>{var a={};a.id=8834,a.ids=[8834],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},1932:a=>{a.exports=require("url")},4573:a=>{a.exports=require("node:buffer")},4984:a=>{a.exports=require("readline")},6727:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.d(b,{D9:()=>r,LO:()=>q,OR:()=>m,SJ:()=>s,fA:()=>l,fG:()=>p});var e=c(29021),f=c(89705),g=c(56825),h=c(72891),i=c(770),j=c(88503),k=a([h,j,g]);[h,j,g]=k.then?(await k)():k;let l="nodejs",m="force-dynamic",n=["claude","ollama","codex","kimi","deepseek","glm"],o=new Set(["ollama","deepseek","kimi","glm"]),p=(0,h.RL)(a=>f.JkU(function*(){if("1"===new URL(a.url).searchParams.get("readBoundary"))return Response.json({readBefore:Date.now()},{headers:{"Cache-Control":"no-store"}});let b=yield*j.Uu;return(0,h.ok)(b)})),q=(0,h.RL)(a=>f.JkU(function*(){let b,{cwd:c,tabId:d,sessionId:k,engine:l,model:m,language:p,message:q,taskFile:r,type:s,delayMinutes:t,intervalMinutes:u,activeFrom:v,activeTo:w,startAt:x,cron:y}=yield*(0,h.k9)(a);if(!c||!d||!k||!s)return yield*f.fJG(new i.yI({field:"cwd|tabId|sessionId|type",reason:"missing"}));let z=yield*f.JkU(function*(){let a=q?.trim()??"",b=r?.trim()??"";return a||b?b?b.startsWith("/")?(0,e.existsSync)(b)?{message:"",taskFile:b}:yield*f.fJG(new i.yI({field:"taskFile",reason:"File does not exist or cannot be read"})):yield*f.fJG(new i.yI({field:"taskFile",reason:"must be absolute"})):{message:a}:yield*f.fJG(new i.yI({field:"message|taskFile",reason:"missing"}))});if(l&&!n.includes(l))return yield*f.fJG(new i.yI({field:"engine",reason:`unknown engine '${l}'`}));let A=Date.now(),B="interval"===s&&"number"==typeof x&&x>0?x:void 0;if("once"===s&&t)b=A+6e4*t;else if("interval"===s&&u)b=B?(0,g.lo)(B,u,A):A+6e4*u;else{if("cron"!==s||!y)return yield*f.fJG(new i.yI({field:"type|timeConfig",reason:"Invalid type or missing time config"}));b=(0,g.$_)(y)}let C={id:`task-${A}-${Math.random().toString(36).slice(2,8)}`,cwd:c,tabId:d,sessionId:k,engine:l,model:l&&o.has(l)?m:void 0,language:p,message:z.message,taskFile:z.taskFile,type:s,delayMinutes:"once"===s?t:void 0,intervalMinutes:"interval"===s?u:void 0,activeFrom:"interval"===s?v:void 0,activeTo:"interval"===s?w:void 0,startAt:B,cron:"cron"===s?y:void 0,nextFireTime:b,paused:!1,createdAt:A},D=yield*(0,j.sP)(C);return(0,h.ok)({task:D})})),r=(0,h.RL)(a=>f.JkU(function*(){let b=yield*(0,h.k9)(a),c=yield*(0,j.ex)(b);return c.simpleSuccess?(0,h.ok)({success:!0}):(0,h.ok)({task:c.task})})),s=(0,h.RL)(a=>f.JkU(function*(){let b=yield*(0,h.k9)(a);return b.id?(yield*(0,j.OT)(b.id),(0,h.ok)({success:!0})):yield*f.fJG(new i.yI({field:"id",reason:"missing"}))}));d()}catch(a){d(a)}})},8128:a=>{a.exports=require("next/dist/server/runtime-reacts.external.js")},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},12412:a=>{a.exports=require("assert")},14985:a=>{a.exports=require("dns")},19771:a=>{a.exports=require("process")},19879:a=>{a.exports=import("@anthropic-ai/claude-agent-sdk")},21820:a=>{a.exports=require("os")},27910:a=>{a.exports=require("stream")},28354:a=>{a.exports=require("util")},28802:a=>{a.exports=import("@earendil-works/pi-ai")},29021:a=>{a.exports=require("fs")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},31421:a=>{a.exports=require("node:child_process")},32358:(a,b,c)=>{c.d(b,{A:()=>X});let d=a=>"string"==typeof a,e=()=>{let a,b,c=new Promise((c,d)=>{a=c,b=d});return c.resolve=a,c.reject=b,c},f=a=>null==a?"":""+a,g=/###/g,h=a=>a&&a.indexOf("###")>-1?a.replace(g,"."):a,i=a=>!a||d(a),j=(a,b,c)=>{let e=d(b)?b.split("."):b,f=0;for(;f<e.length-1;){if(i(a))return{};let b=h(e[f]);!a[b]&&c&&(a[b]=new c),a=Object.prototype.hasOwnProperty.call(a,b)?a[b]:{},++f}return i(a)?{}:{obj:a,k:h(e[f])}},k=(a,b,c)=>{let{obj:d,k:e}=j(a,b,Object);if(void 0!==d||1===b.length){d[e]=c;return}let f=b[b.length-1],g=b.slice(0,b.length-1),h=j(a,g,Object);for(;void 0===h.obj&&g.length;)f=`${g[g.length-1]}.${f}`,h=j(a,g=g.slice(0,g.length-1),Object),h?.obj&&void 0!==h.obj[`${h.k}.${f}`]&&(h.obj=void 0);h.obj[`${h.k}.${f}`]=c},l=(a,b)=>{let{obj:c,k:d}=j(a,b);if(c&&Object.prototype.hasOwnProperty.call(c,d))return c[d]},m=(a,b,c)=>{for(let e in b)"__proto__"!==e&&"constructor"!==e&&(e in a?d(a[e])||a[e]instanceof String||d(b[e])||b[e]instanceof String?c&&(a[e]=b[e]):m(a[e],b[e],c):a[e]=b[e]);return a};var n={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};let o=a=>d(a)?a.replace(/[&<>"'\/]/g,a=>n[a]):a;class p{constructor(a){this.capacity=a,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(a){let b=this.regExpMap.get(a);if(void 0!==b)return b;let c=new RegExp(a);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(a,c),this.regExpQueue.push(a),c}}let q=[" ",",","?","!",";"],r=new p(20),s=(a,b,c=".")=>{if(!a)return;if(a[b]){if(!Object.prototype.hasOwnProperty.call(a,b))return;return a[b]}let d=b.split(c),e=a;for(let a=0;a<d.length;){let b;if(!e||"object"!=typeof e)return;let f="";for(let g=a;g<d.length;++g)if(g!==a&&(f+=c),f+=d[g],void 0!==(b=e[f])){if(["string","number","boolean"].indexOf(typeof b)>-1&&g<d.length-1)continue;a+=g-a+1;break}e=b}return e},t=a=>a?.replace(/_/g,"-"),u={type:"logger",log(a){this.output("log",a)},warn(a){this.output("warn",a)},error(a){this.output("error",a)},output(a,b){console?.[a]?.apply?.(console,b)}};class v{constructor(a,b={}){this.init(a,b)}init(a,b={}){this.prefix=b.prefix||"i18next:",this.logger=a||u,this.options=b,this.debug=b.debug}log(...a){return this.forward(a,"log","",!0)}warn(...a){return this.forward(a,"warn","",!0)}error(...a){return this.forward(a,"error","")}deprecate(...a){return this.forward(a,"warn","WARNING DEPRECATED: ",!0)}forward(a,b,c,e){return e&&!this.debug?null:(d(a[0])&&(a[0]=`${c}${this.prefix} ${a[0]}`),this.logger[b](a))}create(a){return new v(this.logger,{...{prefix:`${this.prefix}:${a}:`},...this.options})}clone(a){return(a=a||this.options).prefix=a.prefix||this.prefix,new v(this.logger,a)}}var w=new v;class x{constructor(){this.observers={}}on(a,b){return a.split(" ").forEach(a=>{this.observers[a]||(this.observers[a]=new Map);let c=this.observers[a].get(b)||0;this.observers[a].set(b,c+1)}),this}off(a,b){if(this.observers[a]){if(!b)return void delete this.observers[a];this.observers[a].delete(b)}}emit(a,...b){this.observers[a]&&Array.from(this.observers[a].entries()).forEach(([a,c])=>{for(let d=0;d<c;d++)a(...b)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(([c,d])=>{for(let e=0;e<d;e++)c.apply(c,[a,...b])})}}class y extends x{constructor(a,b={ns:["translation"],defaultNS:"translation"}){super(),this.data=a||{},this.options=b,void 0===this.options.keySeparator&&(this.options.keySeparator="."),void 0===this.options.ignoreJSONStructure&&(this.options.ignoreJSONStructure=!0)}addNamespaces(a){0>this.options.ns.indexOf(a)&&this.options.ns.push(a)}removeNamespaces(a){let b=this.options.ns.indexOf(a);b>-1&&this.options.ns.splice(b,1)}getResource(a,b,c,e={}){let f,g=void 0!==e.keySeparator?e.keySeparator:this.options.keySeparator,h=void 0!==e.ignoreJSONStructure?e.ignoreJSONStructure:this.options.ignoreJSONStructure;a.indexOf(".")>-1?f=a.split("."):(f=[a,b],c&&(Array.isArray(c)?f.push(...c):d(c)&&g?f.push(...c.split(g)):f.push(c)));let i=l(this.data,f);return(!i&&!b&&!c&&a.indexOf(".")>-1&&(a=f[0],b=f[1],c=f.slice(2).join(".")),!i&&h&&d(c))?s(this.data?.[a]?.[b],c,g):i}addResource(a,b,c,d,e={silent:!1}){let f=void 0!==e.keySeparator?e.keySeparator:this.options.keySeparator,g=[a,b];c&&(g=g.concat(f?c.split(f):c)),a.indexOf(".")>-1&&(g=a.split("."),d=b,b=g[1]),this.addNamespaces(b),k(this.data,g,d),e.silent||this.emit("added",a,b,c,d)}addResources(a,b,c,e={silent:!1}){for(let e in c)(d(c[e])||Array.isArray(c[e]))&&this.addResource(a,b,e,c[e],{silent:!0});e.silent||this.emit("added",a,b,c)}addResourceBundle(a,b,c,d,e,f={silent:!1,skipCopy:!1}){let g=[a,b];a.indexOf(".")>-1&&(g=a.split("."),d=c,c=b,b=g[1]),this.addNamespaces(b);let h=l(this.data,g)||{};f.skipCopy||(c=JSON.parse(JSON.stringify(c))),d?m(h,c,e):h={...h,...c},k(this.data,g,h),f.silent||this.emit("added",a,b,c)}removeResourceBundle(a,b){this.hasResourceBundle(a,b)&&delete this.data[a][b],this.removeNamespaces(b),this.emit("removed",a,b)}hasResourceBundle(a,b){return void 0!==this.getResource(a,b)}getResourceBundle(a,b){return b||(b=this.options.defaultNS),this.getResource(a,b)}getDataByLanguage(a){return this.data[a]}hasLanguageSomeTranslations(a){let b=this.getDataByLanguage(a);return!!(b&&Object.keys(b)||[]).find(a=>b[a]&&Object.keys(b[a]).length>0)}toJSON(){return this.data}}var z={processors:{},addPostProcessor(a){this.processors[a.name]=a},handle(a,b,c,d,e){return a.forEach(a=>{b=this.processors[a]?.process(b,c,d,e)??b}),b}};let A=Symbol("i18next/PATH_KEY");function B(a,b){let c,d,e,{[A]:f}=a((d=[],(e=Object.create(null)).get=(a,b)=>(c?.revoke?.(),b===A)?d:(d.push(b),(c=Proxy.revocable(a,e)).proxy),Proxy.revocable(Object.create(null),e).proxy)),g=b?.keySeparator??".",h=b?.nsSeparator??":";if(f.length>1&&h){let a=b?.ns,c=Array.isArray(a)?a:null;if(c&&c.length>1&&c.slice(1).includes(f[0]))return`${f[0]}${h}${f.slice(1).join(g)}`}return f.join(g)}let C={},D=a=>!d(a)&&"boolean"!=typeof a&&"number"!=typeof a;class E extends x{constructor(a,b={}){super(),((a,b,c)=>{a.forEach(a=>{b[a]&&(c[a]=b[a])})})(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],a,this),this.options=b,void 0===this.options.keySeparator&&(this.options.keySeparator="."),this.logger=w.create("translator")}changeLanguage(a){a&&(this.language=a)}exists(a,b={interpolation:{}}){let c={...b};if(null==a)return!1;let d=this.resolve(a,c);if(d?.res===void 0)return!1;let e=D(d.res);return!1!==c.returnObjects||!e}extractFromKey(a,b){let c=void 0!==b.nsSeparator?b.nsSeparator:this.options.nsSeparator;void 0===c&&(c=":");let e=void 0!==b.keySeparator?b.keySeparator:this.options.keySeparator,f=b.ns||this.options.defaultNS||[],g=c&&a.indexOf(c)>-1,h=!this.options.userDefinedKeySeparator&&!b.keySeparator&&!this.options.userDefinedNsSeparator&&!b.nsSeparator&&!((a,b,c)=>{b=b||"",c=c||"";let d=q.filter(a=>0>b.indexOf(a)&&0>c.indexOf(a));if(0===d.length)return!0;let e=r.getRegExp(`(${d.map(a=>"?"===a?"\\?":a).join("|")})`),f=!e.test(a);if(!f){let b=a.indexOf(c);b>0&&!e.test(a.substring(0,b))&&(f=!0)}return f})(a,c,e);if(g&&!h){let b=a.match(this.interpolator.nestingRegexp);if(b&&b.length>0)return{key:a,namespaces:d(f)?[f]:f};let g=a.split(c);(c!==e||c===e&&this.options.ns.indexOf(g[0])>-1)&&(f=g.shift()),a=g.join(e)}return{key:a,namespaces:d(f)?[f]:f}}translate(a,b,c){let e="object"==typeof b?{...b}:b;if("object"!=typeof e&&this.options.overloadTranslationOptionHandler&&(e=this.options.overloadTranslationOptionHandler(arguments)),"object"==typeof e&&(e={...e}),e||(e={}),null==a)return"";"function"==typeof a&&(a=B(a,{...this.options,...e})),Array.isArray(a)||(a=[String(a)]),a=a.map(a=>"function"==typeof a?B(a,{...this.options,...e}):String(a));let f=void 0!==e.returnDetails?e.returnDetails:this.options.returnDetails,g=void 0!==e.keySeparator?e.keySeparator:this.options.keySeparator,{key:h,namespaces:i}=this.extractFromKey(a[a.length-1],e),j=i[i.length-1],k=void 0!==e.nsSeparator?e.nsSeparator:this.options.nsSeparator;void 0===k&&(k=":");let l=e.lng||this.language,m=e.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(l?.toLowerCase()==="cimode")return m?f?{res:`${j}${k}${h}`,usedKey:h,exactUsedKey:h,usedLng:l,usedNS:j,usedParams:this.getUsedParamsDetails(e)}:`${j}${k}${h}`:f?{res:h,usedKey:h,exactUsedKey:h,usedLng:l,usedNS:j,usedParams:this.getUsedParamsDetails(e)}:h;let n=this.resolve(a,e),o=n?.res,p=n?.usedKey||h,q=n?.exactUsedKey||h,r=void 0!==e.joinArrays?e.joinArrays:this.options.joinArrays,s=!this.i18nFormat||this.i18nFormat.handleAsObject,t=void 0!==e.count&&!d(e.count),u=E.hasDefaultValue(e),v=t?this.pluralResolver.getSuffix(l,e.count,e):"",w=e.ordinal&&t?this.pluralResolver.getSuffix(l,e.count,{ordinal:!1}):"",x=t&&!e.ordinal&&0===e.count,y=x&&e[`defaultValue${this.options.pluralSeparator}zero`]||e[`defaultValue${v}`]||e[`defaultValue${w}`]||e.defaultValue,z=o;s&&!o&&u&&(z=y);let A=D(z),C=Object.prototype.toString.apply(z);if(s&&z&&A&&0>["[object Number]","[object Function]","[object RegExp]"].indexOf(C)&&!(d(r)&&Array.isArray(z))){if(!e.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");let a=this.options.returnedObjectHandler?this.options.returnedObjectHandler(p,z,{...e,ns:i}):`key '${h} (${this.language})' returned an object instead of string.`;return f?(n.res=a,n.usedParams=this.getUsedParamsDetails(e),n):a}if(g){let a=Array.isArray(z),b=a?[]:{},c=a?q:p;for(let a in z)if(Object.prototype.hasOwnProperty.call(z,a)){let d=`${c}${g}${a}`;u&&!o?b[a]=this.translate(d,{...e,defaultValue:D(y)?y[a]:void 0,...{joinArrays:!1,ns:i}}):b[a]=this.translate(d,{...e,joinArrays:!1,ns:i}),b[a]===d&&(b[a]=z[a])}o=b}}else if(s&&d(r)&&Array.isArray(o))(o=o.join(r))&&(o=this.extendTranslation(o,a,e,c));else{let b=!1,d=!1;!this.isValidLookup(o)&&u&&(b=!0,o=y),this.isValidLookup(o)||(d=!0,o=h);let f=(e.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&d?void 0:o,i=u&&y!==o&&this.options.updateMissing;if(d||b||i){if(this.logger.log(i?"updateKey":"missingKey",l,j,h,i?y:o),g){let a=this.resolve(h,{...e,keySeparator:!1});a&&a.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let a=[],b=this.languageUtils.getFallbackCodes(this.options.fallbackLng,e.lng||this.language);if("fallback"===this.options.saveMissingTo&&b&&b[0])for(let c=0;c<b.length;c++)a.push(b[c]);else"all"===this.options.saveMissingTo?a=this.languageUtils.toResolveHierarchy(e.lng||this.language):a.push(e.lng||this.language);let c=(a,b,c)=>{let d=u&&c!==o?c:f;this.options.missingKeyHandler?this.options.missingKeyHandler(a,j,b,d,i,e):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(a,j,b,d,i,e),this.emit("missingKey",a,j,b,o)};this.options.saveMissing&&(this.options.saveMissingPlurals&&t?a.forEach(a=>{let b=this.pluralResolver.getSuffixes(a,e);x&&e[`defaultValue${this.options.pluralSeparator}zero`]&&0>b.indexOf(`${this.options.pluralSeparator}zero`)&&b.push(`${this.options.pluralSeparator}zero`),b.forEach(b=>{c([a],h+b,e[`defaultValue${b}`]||y)})}):c(a,h,y))}o=this.extendTranslation(o,a,e,n,c),d&&o===h&&this.options.appendNamespaceToMissingKey&&(o=`${j}${k}${h}`),(d||b)&&this.options.parseMissingKeyHandler&&(o=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${j}${k}${h}`:h,b?o:void 0,e))}return f?(n.res=o,n.usedParams=this.getUsedParamsDetails(e),n):o}extendTranslation(a,b,c,e,f){if(this.i18nFormat?.parse)a=this.i18nFormat.parse(a,{...this.options.interpolation.defaultVariables,...c},c.lng||this.language||e.usedLng,e.usedNS,e.usedKey,{resolved:e});else if(!c.skipInterpolation){let g;c.interpolation&&this.interpolator.init({...c,...{interpolation:{...this.options.interpolation,...c.interpolation}}});let h=d(a)&&(c?.interpolation?.skipOnVariables!==void 0?c.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);if(h){let b=a.match(this.interpolator.nestingRegexp);g=b&&b.length}let i=c.replace&&!d(c.replace)?c.replace:c;if(this.options.interpolation.defaultVariables&&(i={...this.options.interpolation.defaultVariables,...i}),a=this.interpolator.interpolate(a,i,c.lng||this.language||e.usedLng,c),h){let b=a.match(this.interpolator.nestingRegexp);g<(b&&b.length)&&(c.nest=!1)}!c.lng&&e&&e.res&&(c.lng=this.language||e.usedLng),!1!==c.nest&&(a=this.interpolator.nest(a,(...a)=>f?.[0]!==a[0]||c.context?this.translate(...a,b):(this.logger.warn(`It seems you are nesting recursively key: ${a[0]} in key: ${b[0]}`),null),c)),c.interpolation&&this.interpolator.reset()}let g=c.postProcess||this.options.postProcess,h=d(g)?[g]:g;return null!=a&&h?.length&&!1!==c.applyPostProcessor&&(a=z.handle(h,a,b,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...e,usedParams:this.getUsedParamsDetails(c)},...c}:c,this)),a}resolve(a,b={}){let c,e,f,g,h;return d(a)&&(a=[a]),Array.isArray(a)&&(a=a.map(a=>"function"==typeof a?B(a,{...this.options,...b}):a)),a.forEach(a=>{if(this.isValidLookup(c))return;let i=this.extractFromKey(a,b),j=i.key;e=j;let k=i.namespaces;this.options.fallbackNS&&(k=k.concat(this.options.fallbackNS));let l=void 0!==b.count&&!d(b.count),m=l&&!b.ordinal&&0===b.count,n=void 0!==b.context&&(d(b.context)||"number"==typeof b.context)&&""!==b.context,o=b.lngs?b.lngs:this.languageUtils.toResolveHierarchy(b.lng||this.language,b.fallbackLng);k.forEach(a=>{this.isValidLookup(c)||(h=a,!C[`${o[0]}-${a}`]&&this.utils?.hasLoadedNamespace&&!this.utils?.hasLoadedNamespace(h)&&(C[`${o[0]}-${a}`]=!0,this.logger.warn(`key "${e}" for languages "${o.join(", ")}" won't get resolved as namespace "${h}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),o.forEach(d=>{let e;if(this.isValidLookup(c))return;g=d;let h=[j];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(h,j,d,a,b);else{let a;l&&(a=this.pluralResolver.getSuffix(d,b.count,b));let c=`${this.options.pluralSeparator}zero`,e=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(l&&(b.ordinal&&0===a.indexOf(e)&&h.push(j+a.replace(e,this.options.pluralSeparator)),h.push(j+a),m&&h.push(j+c)),n){let d=`${j}${this.options.contextSeparator||"_"}${b.context}`;h.push(d),l&&(b.ordinal&&0===a.indexOf(e)&&h.push(d+a.replace(e,this.options.pluralSeparator)),h.push(d+a),m&&h.push(d+c))}}for(;e=h.pop();)this.isValidLookup(c)||(f=e,c=this.getResource(d,a,e,b))}))})}),{res:c,usedKey:e,exactUsedKey:f,usedLng:g,usedNS:h}}isValidLookup(a){return void 0!==a&&!(!this.options.returnNull&&null===a)&&!(!this.options.returnEmptyString&&""===a)}getResource(a,b,c,d={}){return this.i18nFormat?.getResource?this.i18nFormat.getResource(a,b,c,d):this.resourceStore.getResource(a,b,c,d)}getUsedParamsDetails(a={}){let b=a.replace&&!d(a.replace),c=b?a.replace:a;if(b&&void 0!==a.count&&(c.count=a.count),this.options.interpolation.defaultVariables&&(c={...this.options.interpolation.defaultVariables,...c}),!b)for(let a of(c={...c},["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"]))delete c[a];return c}static hasDefaultValue(a){let b="defaultValue";for(let c in a)if(Object.prototype.hasOwnProperty.call(a,c)&&b===c.substring(0,b.length)&&void 0!==a[c])return!0;return!1}}class F{constructor(a){this.options=a,this.supportedLngs=this.options.supportedLngs||!1,this.logger=w.create("languageUtils")}getScriptPartFromCode(a){if(!(a=t(a))||0>a.indexOf("-"))return null;let b=a.split("-");return 2===b.length||(b.pop(),"x"===b[b.length-1].toLowerCase())?null:this.formatLanguageCode(b.join("-"))}getLanguagePartFromCode(a){if(!(a=t(a))||0>a.indexOf("-"))return a;let b=a.split("-");return this.formatLanguageCode(b[0])}formatLanguageCode(a){if(d(a)&&a.indexOf("-")>-1){let b;try{b=Intl.getCanonicalLocales(a)[0]}catch(a){}return(b&&this.options.lowerCaseLng&&(b=b.toLowerCase()),b)?b:this.options.lowerCaseLng?a.toLowerCase():a}return this.options.cleanCode||this.options.lowerCaseLng?a.toLowerCase():a}isSupportedCode(a){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(a=this.getLanguagePartFromCode(a)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(a)>-1}getBestMatchFromCodes(a){let b;return a?(a.forEach(a=>{if(b)return;let c=this.formatLanguageCode(a);(!this.options.supportedLngs||this.isSupportedCode(c))&&(b=c)}),!b&&this.options.supportedLngs&&a.forEach(a=>{if(b)return;let c=this.getScriptPartFromCode(a);if(this.isSupportedCode(c))return b=c;let d=this.getLanguagePartFromCode(a);if(this.isSupportedCode(d))return b=d;b=this.options.supportedLngs.find(a=>{if(a===d||!(0>a.indexOf("-")&&0>d.indexOf("-"))&&(a.indexOf("-")>0&&0>d.indexOf("-")&&a.substring(0,a.indexOf("-"))===d||0===a.indexOf(d)&&d.length>1))return a})}),b||(b=this.getFallbackCodes(this.options.fallbackLng)[0]),b):null}getFallbackCodes(a,b){if(!a)return[];if("function"==typeof a&&(a=a(b)),d(a)&&(a=[a]),Array.isArray(a))return a;if(!b)return a.default||[];let c=a[b];return c||(c=a[this.getScriptPartFromCode(b)]),c||(c=a[this.formatLanguageCode(b)]),c||(c=a[this.getLanguagePartFromCode(b)]),c||(c=a.default),c||[]}toResolveHierarchy(a,b){let c=this.getFallbackCodes((!1===b?[]:b)||this.options.fallbackLng||[],a),e=[],f=a=>{a&&(this.isSupportedCode(a)?e.push(a):this.logger.warn(`rejecting language code not found in supportedLngs: ${a}`))};return d(a)&&(a.indexOf("-")>-1||a.indexOf("_")>-1)?("languageOnly"!==this.options.load&&f(this.formatLanguageCode(a)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&f(this.getScriptPartFromCode(a)),"currentOnly"!==this.options.load&&f(this.getLanguagePartFromCode(a))):d(a)&&f(this.formatLanguageCode(a)),c.forEach(a=>{0>e.indexOf(a)&&f(this.formatLanguageCode(a))}),e}}let G={zero:0,one:1,two:2,few:3,many:4,other:5},H={select:a=>1===a?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class I{constructor(a,b={}){this.languageUtils=a,this.options=b,this.logger=w.create("pluralResolver"),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(a,b={}){let c,d=t("dev"===a?"en":a),e=b.ordinal?"ordinal":"cardinal",f=JSON.stringify({cleanedCode:d,type:e});if(f in this.pluralRulesCache)return this.pluralRulesCache[f];try{c=new Intl.PluralRules(d,{type:e})}catch(e){if("u"<typeof Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),H;if(!a.match(/-|_/))return H;let d=this.languageUtils.getLanguagePartFromCode(a);c=this.getRule(d,b)}return this.pluralRulesCache[f]=c,c}needsPlural(a,b={}){let c=this.getRule(a,b);return c||(c=this.getRule("dev",b)),c?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(a,b,c={}){return this.getSuffixes(a,c).map(a=>`${b}${a}`)}getSuffixes(a,b={}){let c=this.getRule(a,b);return(c||(c=this.getRule("dev",b)),c)?c.resolvedOptions().pluralCategories.sort((a,b)=>G[a]-G[b]).map(a=>`${this.options.prepend}${b.ordinal?`ordinal${this.options.prepend}`:""}${a}`):[]}getSuffix(a,b,c={}){let d=this.getRule(a,c);return d?`${this.options.prepend}${c.ordinal?`ordinal${this.options.prepend}`:""}${d.select(b)}`:(this.logger.warn(`no plural rule found for: ${a}`),this.getSuffix("dev",b,c))}}let J=(a,b,c,e=".",f=!0)=>{let g,h=void 0!==(g=l(a,c))?g:l(b,c);return!h&&f&&d(c)&&void 0===(h=s(a,c,e))&&(h=s(b,c,e)),h};class K{constructor(a={}){this.logger=w.create("interpolator"),this.options=a,this.format=a?.interpolation?.format||(a=>a),this.init(a)}init(a={}){a.interpolation||(a.interpolation={escapeValue:!0});let{escape:b,escapeValue:c,useRawValueToEscape:d,prefix:e,prefixEscaped:f,suffix:g,suffixEscaped:h,formatSeparator:i,unescapeSuffix:j,unescapePrefix:k,nestingPrefix:l,nestingPrefixEscaped:m,nestingSuffix:n,nestingSuffixEscaped:p,nestingOptionsSeparator:q,maxReplaces:r,alwaysFormat:s}=a.interpolation;this.escape=void 0!==b?b:o,this.escapeValue=void 0===c||c,this.useRawValueToEscape=void 0!==d&&d,this.prefix=e?e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"):f||"{{",this.suffix=g?g.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"):h||"}}",this.formatSeparator=i||",",this.unescapePrefix=j?"":k||"-",this.unescapeSuffix=this.unescapePrefix?"":j||"",this.nestingPrefix=l?l.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"):m||"$t(".replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),this.nestingSuffix=n?n.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"):p||")".replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),this.nestingOptionsSeparator=q||",",this.maxReplaces=r||1e3,this.alwaysFormat=void 0!==s&&s,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){let a=(a,b)=>a?.source===b?(a.lastIndex=0,a):RegExp(b,"g");this.regexp=a(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=a(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=a(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(a,b,c,e){let g,h,i,j=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},k=a=>{if(0>a.indexOf(this.formatSeparator)){let d=J(b,j,a,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(d,void 0,c,{...e,...b,interpolationkey:a}):d}let d=a.split(this.formatSeparator),f=d.shift().trim(),g=d.join(this.formatSeparator).trim();return this.format(J(b,j,f,this.options.keySeparator,this.options.ignoreJSONStructure),g,c,{...e,...b,interpolationkey:f})};this.resetRegExp();let l=e?.missingInterpolationHandler||this.options.missingInterpolationHandler,m=e?.interpolation?.skipOnVariables!==void 0?e.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:a=>a.replace(/\$/g,"$$$$")},{regex:this.regexp,safeValue:a=>this.escapeValue?this.escape(a).replace(/\$/g,"$$$$"):a.replace(/\$/g,"$$$$")}].forEach(b=>{for(i=0;g=b.regex.exec(a);){let c=g[1].trim();if(void 0===(h=k(c)))if("function"==typeof l){let b=l(a,g,e);h=d(b)?b:""}else if(e&&Object.prototype.hasOwnProperty.call(e,c))h="";else if(m){h=g[0];continue}else this.logger.warn(`missed to pass in variable ${c} for interpolating ${a}`),h="";else d(h)||this.useRawValueToEscape||(h=f(h));let j=b.safeValue(h);if(a=a.replace(g[0],j),m?(b.regex.lastIndex+=h.length,b.regex.lastIndex-=g[0].length):b.regex.lastIndex=0,++i>=this.maxReplaces)break}}),a}nest(a,b,c={}){let e,g,h,i=(a,b)=>{let c=this.nestingOptionsSeparator;if(0>a.indexOf(c))return a;let d=a.split(RegExp(`${c.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}[ ]*{`)),e=`{${d[1]}`;a=d[0];let f=(e=this.interpolate(e,h)).match(/'/g),g=e.match(/"/g);((f?.length??0)%2!=0||g)&&(g?.length??0)%2==0||(e=e.replace(/'/g,'"'));try{h=JSON.parse(e),b&&(h={...b,...h})}catch(b){return this.logger.warn(`failed parsing options string in nesting for key ${a}`,b),`${a}${c}${e}`}return h.defaultValue&&h.defaultValue.indexOf(this.prefix)>-1&&delete h.defaultValue,a};for(;e=this.nestingRegexp.exec(a);){let j=[];(h=(h={...c}).replace&&!d(h.replace)?h.replace:h).applyPostProcessor=!1,delete h.defaultValue;let k=/{.*}/.test(e[1])?e[1].lastIndexOf("}")+1:e[1].indexOf(this.formatSeparator);if(-1!==k&&(j=e[1].slice(k).split(this.formatSeparator).map(a=>a.trim()).filter(Boolean),e[1]=e[1].slice(0,k)),(g=b(i.call(this,e[1].trim(),h),h))&&e[0]===a&&!d(g))return g;d(g)||(g=f(g)),g||(this.logger.warn(`missed to resolve ${e[1]} for nesting ${a}`),g=""),j.length&&(g=j.reduce((a,b)=>this.format(a,b,c.lng,{...c,interpolationkey:e[1].trim()}),g.trim())),a=a.replace(e[0],g),this.regexp.lastIndex=0}return a}}let L=a=>{let b={};return(c,d,e)=>{let f=e;e&&e.interpolationkey&&e.formatParams&&e.formatParams[e.interpolationkey]&&e[e.interpolationkey]&&(f={...f,[e.interpolationkey]:void 0});let g=d+JSON.stringify(f),h=b[g];return h||(h=a(t(d),e),b[g]=h),h(c)}},M=a=>(b,c,d)=>a(t(c),d)(b);class N{constructor(a={}){this.logger=w.create("formatter"),this.options=a,this.init(a)}init(a,b={interpolation:{}}){this.formatSeparator=b.interpolation.formatSeparator||",";let c=b.cacheInBuiltFormats?L:M;this.formats={number:c((a,b)=>{let c=new Intl.NumberFormat(a,{...b});return a=>c.format(a)}),currency:c((a,b)=>{let c=new Intl.NumberFormat(a,{...b,style:"currency"});return a=>c.format(a)}),datetime:c((a,b)=>{let c=new Intl.DateTimeFormat(a,{...b});return a=>c.format(a)}),relativetime:c((a,b)=>{let c=new Intl.RelativeTimeFormat(a,{...b});return a=>c.format(a,b.range||"day")}),list:c((a,b)=>{let c=new Intl.ListFormat(a,{...b});return a=>c.format(a)})}}add(a,b){this.formats[a.toLowerCase().trim()]=b}addCached(a,b){this.formats[a.toLowerCase().trim()]=L(b)}format(a,b,c,d={}){let e=b.split(this.formatSeparator);if(e.length>1&&e[0].indexOf("(")>1&&0>e[0].indexOf(")")&&e.find(a=>a.indexOf(")")>-1)){let a=e.findIndex(a=>a.indexOf(")")>-1);e[0]=[e[0],...e.splice(1,a)].join(this.formatSeparator)}return e.reduce((a,b)=>{let{formatName:e,formatOptions:f}=(a=>{let b=a.toLowerCase().trim(),c={};if(a.indexOf("(")>-1){let d=a.split("(");b=d[0].toLowerCase().trim();let e=d[1].substring(0,d[1].length-1);"currency"===b&&0>e.indexOf(":")?c.currency||(c.currency=e.trim()):"relativetime"===b&&0>e.indexOf(":")?c.range||(c.range=e.trim()):e.split(";").forEach(a=>{if(a){let[b,...d]=a.split(":"),e=d.join(":").trim().replace(/^'+|'+$/g,""),f=b.trim();c[f]||(c[f]=e),"false"===e&&(c[f]=!1),"true"===e&&(c[f]=!0),isNaN(e)||(c[f]=parseInt(e,10))}})}return{formatName:b,formatOptions:c}})(b);if(this.formats[e]){let b=a;try{let g=d?.formatParams?.[d.interpolationkey]||{},h=g.locale||g.lng||d.locale||d.lng||c;b=this.formats[e](a,h,{...f,...d,...g})}catch(a){this.logger.warn(a)}return b}return this.logger.warn(`there was no format function for ${e}`),a},a)}}class O extends x{constructor(a,b,c,d={}){super(),this.backend=a,this.store=b,this.services=c,this.languageUtils=c.languageUtils,this.options=d,this.logger=w.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=d.maxParallelReads||10,this.readingCalls=0,this.maxRetries=d.maxRetries>=0?d.maxRetries:5,this.retryTimeout=d.retryTimeout>=1?d.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(c,d.backend,d)}queueLoad(a,b,c,d){let e={},f={},g={},h={};return a.forEach(a=>{let d=!0;b.forEach(b=>{let g=`${a}|${b}`;!c.reload&&this.store.hasResourceBundle(a,b)?this.state[g]=2:this.state[g]<0||(1===this.state[g]?void 0===f[g]&&(f[g]=!0):(this.state[g]=1,d=!1,void 0===f[g]&&(f[g]=!0),void 0===e[g]&&(e[g]=!0),void 0===h[b]&&(h[b]=!0)))}),d||(g[a]=!0)}),(Object.keys(e).length||Object.keys(f).length)&&this.queue.push({pending:f,pendingCount:Object.keys(f).length,loaded:{},errors:[],callback:d}),{toLoad:Object.keys(e),pending:Object.keys(f),toLoadLanguages:Object.keys(g),toLoadNamespaces:Object.keys(h)}}loaded(a,b,c){let d=a.split("|"),e=d[0],f=d[1];b&&this.emit("failedLoading",e,f,b),!b&&c&&this.store.addResourceBundle(e,f,c,void 0,void 0,{skipCopy:!0}),this.state[a]=b?-1:2,b&&c&&(this.state[a]=0);let g={};this.queue.forEach(c=>{((a,b,c)=>{let{obj:d,k:e}=j(a,b,Object);d[e]=d[e]||[],d[e].push(c)})(c.loaded,[e],f),void 0!==c.pending[a]&&(delete c.pending[a],c.pendingCount--),b&&c.errors.push(b),0!==c.pendingCount||c.done||(Object.keys(c.loaded).forEach(a=>{g[a]||(g[a]={});let b=c.loaded[a];b.length&&b.forEach(b=>{void 0===g[a][b]&&(g[a][b]=!0)})}),c.done=!0,c.errors.length?c.callback(c.errors):c.callback())}),this.emit("loaded",g),this.queue=this.queue.filter(a=>!a.done)}read(a,b,c,d=0,e=this.retryTimeout,f){if(!a.length)return f(null,{});if(this.readingCalls>=this.maxParallelReads)return void this.waitingReads.push({lng:a,ns:b,fcName:c,tried:d,wait:e,callback:f});this.readingCalls++;let g=(g,h)=>{if(this.readingCalls--,this.waitingReads.length>0){let a=this.waitingReads.shift();this.read(a.lng,a.ns,a.fcName,a.tried,a.wait,a.callback)}g&&h&&d<this.maxRetries?setTimeout(()=>{this.read.call(this,a,b,c,d+1,2*e,f)},e):f(g,h)},h=this.backend[c].bind(this.backend);if(2===h.length){try{let c=h(a,b);c&&"function"==typeof c.then?c.then(a=>g(null,a)).catch(g):g(null,c)}catch(a){g(a)}return}return h(a,b,g)}prepareLoading(a,b,c={},e){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),e&&e();d(a)&&(a=this.languageUtils.toResolveHierarchy(a)),d(b)&&(b=[b]);let f=this.queueLoad(a,b,c,e);if(!f.toLoad.length)return f.pending.length||e(),null;f.toLoad.forEach(a=>{this.loadOne(a)})}load(a,b,c){this.prepareLoading(a,b,{},c)}reload(a,b,c){this.prepareLoading(a,b,{reload:!0},c)}loadOne(a,b=""){let c=a.split("|"),d=c[0],e=c[1];this.read(d,e,"read",void 0,void 0,(c,f)=>{c&&this.logger.warn(`${b}loading namespace ${e} for language ${d} failed`,c),!c&&f&&this.logger.log(`${b}loaded namespace ${e} for language ${d}`,f),this.loaded(a,c,f)})}saveMissing(a,b,c,d,e,f={},g=()=>{}){if(this.services?.utils?.hasLoadedNamespace&&!this.services?.utils?.hasLoadedNamespace(b))return void this.logger.warn(`did not save key "${c}" as the namespace "${b}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");if(null!=c&&""!==c){if(this.backend?.create){let h={...f,isUpdate:e},i=this.backend.create.bind(this.backend);if(i.length<6)try{let e;(e=5===i.length?i(a,b,c,d,h):i(a,b,c,d))&&"function"==typeof e.then?e.then(a=>g(null,a)).catch(g):g(null,e)}catch(a){g(a)}else i(a,b,c,d,g,h)}a&&a[0]&&this.store.addResource(a[0],b,c,d)}}}let P=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:a=>{let b={};if("object"==typeof a[1]&&(b=a[1]),d(a[1])&&(b.defaultValue=a[1]),d(a[2])&&(b.tDescription=a[2]),"object"==typeof a[2]||"object"==typeof a[3]){let c=a[3]||a[2];Object.keys(c).forEach(a=>{b[a]=c[a]})}return b},interpolation:{escapeValue:!0,format:a=>a,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),Q=a=>(d(a.ns)&&(a.ns=[a.ns]),d(a.fallbackLng)&&(a.fallbackLng=[a.fallbackLng]),d(a.fallbackNS)&&(a.fallbackNS=[a.fallbackNS]),a.supportedLngs?.indexOf?.("cimode")<0&&(a.supportedLngs=a.supportedLngs.concat(["cimode"])),"boolean"==typeof a.initImmediate&&(a.initAsync=a.initImmediate),a),R=()=>{},S="__i18next_supportNoticeShown";class T extends x{constructor(a={},b){if(super(),this.options=Q(a),this.services={},this.logger=w,this.modules={external:[]},(a=>{Object.getOwnPropertyNames(Object.getPrototypeOf(a)).forEach(b=>{"function"==typeof a[b]&&(a[b]=a[b].bind(a))})})(this),b&&!this.isInitialized&&!a.isClone){if(!this.options.initAsync)return this.init(a,b),this;setTimeout(()=>{this.init(a,b)},0)}}init(a={},b){this.isInitializing=!0,"function"==typeof a&&(b=a,a={}),null==a.defaultNS&&a.ns&&(d(a.ns)?a.defaultNS=a.ns:0>a.ns.indexOf("translation")&&(a.defaultNS=a.ns[0]));let c=P();this.options={...c,...this.options,...Q(a)},this.options.interpolation={...c.interpolation,...this.options.interpolation},void 0!==a.keySeparator&&(this.options.userDefinedKeySeparator=a.keySeparator),void 0!==a.nsSeparator&&(this.options.userDefinedNsSeparator=a.nsSeparator),"function"!=typeof this.options.overloadTranslationOptionHandler&&(this.options.overloadTranslationOptionHandler=c.overloadTranslationOptionHandler),!1!==this.options.showSupportNotice&&!(this?.modules?.backend?.name?.indexOf("Locize")>0||this?.modules?.backend?.constructor?.name?.indexOf("Locize")>0||this?.options?.backend?.backends&&this.options.backend.backends.some(a=>a?.name?.indexOf("Locize")>0||a?.constructor?.name?.indexOf("Locize")>0)||this?.options?.backend?.projectId||this?.options?.backend?.backendOptions&&this.options.backend.backendOptions.some(a=>a?.projectId))&&1&&!("u">typeof globalThis&&globalThis[S]||"u">typeof process&&process.env&&process.env.I18NEXT_NO_SUPPORT_NOTICE||"u">typeof process&&process.env&&1)&&("u">typeof console&&void 0!==console.info&&console.info("\uD83C\uDF10 i18next is made possible by our own product, Locize — consider powering your project with managed localization (AI, CDN, integrations): https://locize.com \uD83D\uDC99"),"u">typeof globalThis&&(globalThis[S]=!0));let f=a=>a?"function"==typeof a?new a:a:null;if(!this.options.isClone){let a;this.modules.logger?w.init(f(this.modules.logger),this.options):w.init(null,this.options),a=this.modules.formatter?this.modules.formatter:N;let b=new F(this.options);this.store=new y(this.options.resources,this.options);let d=this.services;d.logger=w,d.resourceStore=this.store,d.languageUtils=b,d.pluralResolver=new I(b,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),this.options.interpolation.format&&this.options.interpolation.format!==c.interpolation.format&&this.logger.deprecate("init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting"),a&&(!this.options.interpolation.format||this.options.interpolation.format===c.interpolation.format)&&(d.formatter=f(a),d.formatter.init&&d.formatter.init(d,this.options),this.options.interpolation.format=d.formatter.format.bind(d.formatter)),d.interpolator=new K(this.options),d.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},d.backendConnector=new O(f(this.modules.backend),d.resourceStore,d,this.options),d.backendConnector.on("*",(a,...b)=>{this.emit(a,...b)}),this.modules.languageDetector&&(d.languageDetector=f(this.modules.languageDetector),d.languageDetector.init&&d.languageDetector.init(d,this.options.detection,this.options)),this.modules.i18nFormat&&(d.i18nFormat=f(this.modules.i18nFormat),d.i18nFormat.init&&d.i18nFormat.init(this)),this.translator=new E(this.services,this.options),this.translator.on("*",(a,...b)=>{this.emit(a,...b)}),this.modules.external.forEach(a=>{a.init&&a.init(this)})}if(this.format=this.options.interpolation.format,b||(b=R),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){let a=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);a.length>0&&"dev"!==a[0]&&(this.options.lng=a[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(a=>{this[a]=(...b)=>this.store[a](...b)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(a=>{this[a]=(...b)=>(this.store[a](...b),this)});let g=e(),h=()=>{let a=(a,c)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),g.resolve(c),b(a,c)};if(this.languages&&!this.isInitialized)return a(null,this.t.bind(this));this.changeLanguage(this.options.lng,a)};return this.options.resources||!this.options.initAsync?h():setTimeout(h,0),g}loadResources(a,b=R){let c=b,e=d(a)?a:this.language;if("function"==typeof a&&(c=a),!this.options.resources||this.options.partialBundledLanguages){if(e?.toLowerCase()==="cimode"&&(!this.options.preload||0===this.options.preload.length))return c();let a=[],b=b=>{b&&"cimode"!==b&&this.services.languageUtils.toResolveHierarchy(b).forEach(b=>{"cimode"!==b&&0>a.indexOf(b)&&a.push(b)})};e?b(e):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(a=>b(a)),this.options.preload?.forEach?.(a=>b(a)),this.services.backendConnector.load(a,this.options.ns,a=>{a||this.resolvedLanguage||!this.language||this.setResolvedLanguage(this.language),c(a)})}else c(null)}reloadResources(a,b,c){let d=e();return"function"==typeof a&&(c=a,a=void 0),"function"==typeof b&&(c=b,b=void 0),a||(a=this.languages),b||(b=this.options.ns),c||(c=R),this.services.backendConnector.reload(a,b,a=>{d.resolve(),c(a)}),d}use(a){if(!a)throw Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!a.type)throw Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===a.type&&(this.modules.backend=a),("logger"===a.type||a.log&&a.warn&&a.error)&&(this.modules.logger=a),"languageDetector"===a.type&&(this.modules.languageDetector=a),"i18nFormat"===a.type&&(this.modules.i18nFormat=a),"postProcessor"===a.type&&z.addPostProcessor(a),"formatter"===a.type&&(this.modules.formatter=a),"3rdParty"===a.type&&this.modules.external.push(a),this}setResolvedLanguage(a){if(a&&this.languages&&!(["cimode","dev"].indexOf(a)>-1)){for(let a=0;a<this.languages.length;a++){let b=this.languages[a];if(!(["cimode","dev"].indexOf(b)>-1)&&this.store.hasLanguageSomeTranslations(b)){this.resolvedLanguage=b;break}}!this.resolvedLanguage&&0>this.languages.indexOf(a)&&this.store.hasLanguageSomeTranslations(a)&&(this.resolvedLanguage=a,this.languages.unshift(a))}}changeLanguage(a,b){this.isLanguageChangingTo=a;let c=e();this.emit("languageChanging",a);let f=a=>{this.language=a,this.languages=this.services.languageUtils.toResolveHierarchy(a),this.resolvedLanguage=void 0,this.setResolvedLanguage(a)},g=(d,e)=>{e?this.isLanguageChangingTo===a&&(f(e),this.translator.changeLanguage(e),this.isLanguageChangingTo=void 0,this.emit("languageChanged",e),this.logger.log("languageChanged",e)):this.isLanguageChangingTo=void 0,c.resolve((...a)=>this.t(...a)),b&&b(d,(...a)=>this.t(...a))},h=b=>{a||b||!this.services.languageDetector||(b=[]);let c=d(b)?b:b&&b[0],e=this.store.hasLanguageSomeTranslations(c)?c:this.services.languageUtils.getBestMatchFromCodes(d(b)?[b]:b);e&&(this.language||f(e),this.translator.language||this.translator.changeLanguage(e),this.services.languageDetector?.cacheUserLanguage?.(e)),this.loadResources(e,a=>{g(a,e)})};return a||!this.services.languageDetector||this.services.languageDetector.async?!a&&this.services.languageDetector&&this.services.languageDetector.async?0===this.services.languageDetector.detect.length?this.services.languageDetector.detect().then(h):this.services.languageDetector.detect(h):h(a):h(this.services.languageDetector.detect()),c}getFixedT(a,b,c){let e=(a,b,...d)=>{let f,g;(f="object"!=typeof b?this.options.overloadTranslationOptionHandler([a,b].concat(d)):{...b}).lng=f.lng||e.lng,f.lngs=f.lngs||e.lngs,f.ns=f.ns||e.ns,""!==f.keyPrefix&&(f.keyPrefix=f.keyPrefix||c||e.keyPrefix);let h={...this.options,...f};"function"==typeof f.keyPrefix&&(f.keyPrefix=B(f.keyPrefix,h));let i=this.options.keySeparator||".";return f.keyPrefix&&Array.isArray(a)?g=a.map(a=>("function"==typeof a&&(a=B(a,h)),`${f.keyPrefix}${i}${a}`)):("function"==typeof a&&(a=B(a,h)),g=f.keyPrefix?`${f.keyPrefix}${i}${a}`:a),this.t(g,f)};return d(a)?e.lng=a:e.lngs=a,e.ns=b,e.keyPrefix=c,e}t(...a){return this.translator?.translate(...a)}exists(...a){return this.translator?.exists(...a)}setDefaultNamespace(a){this.options.defaultNS=a}hasLoadedNamespace(a,b={}){if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;let c=b.lng||this.resolvedLanguage||this.languages[0],d=!!this.options&&this.options.fallbackLng,e=this.languages[this.languages.length-1];if("cimode"===c.toLowerCase())return!0;let f=(a,b)=>{let c=this.services.backendConnector.state[`${a}|${b}`];return -1===c||0===c||2===c};if(b.precheck){let a=b.precheck(this,f);if(void 0!==a)return a}return!!(this.hasResourceBundle(c,a)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||f(c,a)&&(!d||f(e,a)))}loadNamespaces(a,b){let c=e();return this.options.ns?(d(a)&&(a=[a]),a.forEach(a=>{0>this.options.ns.indexOf(a)&&this.options.ns.push(a)}),this.loadResources(a=>{c.resolve(),b&&b(a)}),c):(b&&b(),Promise.resolve())}loadLanguages(a,b){let c=e();d(a)&&(a=[a]);let f=this.options.preload||[],g=a.filter(a=>0>f.indexOf(a)&&this.services.languageUtils.isSupportedCode(a));return g.length?(this.options.preload=f.concat(g),this.loadResources(a=>{c.resolve(),b&&b(a)}),c):(b&&b(),Promise.resolve())}dir(a){if(a||(a=this.resolvedLanguage||(this.languages?.length>0?this.languages[0]:this.language)),!a)return"rtl";try{let b=new Intl.Locale(a);if(b&&b.getTextInfo){let a=b.getTextInfo();if(a&&a.direction)return a.direction}}catch(a){}let b=this.services?.languageUtils||new F(P());return a.toLowerCase().indexOf("-latn")>1?"ltr":["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].indexOf(b.getLanguagePartFromCode(a))>-1||a.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(a={},b){let c=new T(a,b);return c.createInstance=T.createInstance,c}cloneInstance(a={},b=R){let c=a.forkResourceStore;c&&delete a.forkResourceStore;let d={...this.options,...a,isClone:!0},e=new T(d);if((void 0!==a.debug||void 0!==a.prefix)&&(e.logger=e.logger.clone(a)),["store","services","language"].forEach(a=>{e[a]=this[a]}),e.services={...this.services},e.services.utils={hasLoadedNamespace:e.hasLoadedNamespace.bind(e)},c&&(e.store=new y(Object.keys(this.store.data).reduce((a,b)=>(a[b]={...this.store.data[b]},a[b]=Object.keys(a[b]).reduce((c,d)=>(c[d]={...a[b][d]},c),a[b]),a),{}),d),e.services.resourceStore=e.store),a.interpolation){let b={...P().interpolation,...this.options.interpolation,...a.interpolation},c={...d,interpolation:b};e.services.interpolator=new K(c)}return e.translator=new E(e.services,d),e.translator.on("*",(a,...b)=>{e.emit(a,...b)}),e.init(d,b),e.translator.options=d,e.translator.backendConnector.services.utils={hasLoadedNamespace:e.hasLoadedNamespace.bind(e)},e}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}let U=T.createInstance();U.createInstance,U.dir,U.init,U.loadResources,U.reloadResources,U.use,U.changeLanguage,U.getFixedT,U.t,U.exists,U.setDefaultNamespace,U.hasLoadedNamespace,U.loadNamespaces,U.loadLanguages;let V=JSON.parse('{"common":{"openAsProject":"Open as project","save":"Save","cancel":"Cancel","delete":"Delete","close":"Close","minimize":"Minimize","copy":"Copy","edit":"Edit","file":"File","codeMap":"Code Map","diff":"Diff","confirm":"Confirm","loading":"Loading...","search":"Search","refresh":"Refresh","retry":"Retry","submit":"Submit","copied":"Copied","saved":"Saved","failed":"Failed","noMatch":"No matches","noData":"No data","done":"Done","justNow":"just now","minutesAgo":"{{count}}m ago","hoursAgo":"{{count}}h ago","daysAgo":"{{count}}d ago","monthsAgo":"{{count}}mo ago","yearsAgo":"{{count}}y ago","saveFailed":"Save failed","copyFailed":"Copy failed","deleteFailed":"Delete failed","operationFailed":"Operation failed","copiedPath":"Path copied","copyPath":"Copy path","openInConsole":"Open in Console bubble","copyAbsPath":"Copy absolute path","loadMore":"Load more","noResult":"No results","selected":"Selected","selectAll":"Select all","hint":"Notice","confirmBtn":"OK","cancelBtn":"Cancel","preview":"Preview","readable":"Readable","previous":"Previous","next":"Next","all":"All","input":"Input","result":"Result","line":"Line","lines":"lines","running":"Running","connecting":"Connecting","connected":"Connected","connectionFailed":"Connection failed","builtin":"Built-in","global":"Global","project":"Project","current":"Current","code":"Code"},"htmlApps":{"tabFiles":"Files","tabRun":"Run","mine":"Mine","selectHint":"Select an app on the left to see its files and source; it only runs when you click Run (apps get full shell access).","openFull":"Open full screen (minimisable to the sidebar)","title":"HTML Apps","addTooltip":"Add to HTML panel","added":"Added to HTML panel","alreadyAdded":"Already added","addFailed":"Failed to add","add":"Add","adding":"Adding...","addHtmlApp":"Add HTML app","searchPlaceholder":"Search HTML apps...","pathLabel":"Absolute path to the .html file","invalid":"Invalid","builtin":"Built-in","noDescription":"No description","emptyNoApps":"No custom HTML apps yet.","emptyCreatePrefix":"Use","emptyCreateSuffix":"in chat to create a new app.","addExisting":"add an existing HTML file","viewDocs":"view docs","emptyNoMatch":"No HTML apps match your search."},"skills":{"addTooltip":"Add to Skills panel","added":"Added to Skills panel","alreadyAdded":"Already added","addFailed":"Failed to add","title":"Skills","searchPlaceholder":"Search skills...","clearSearch":"Clear","addSkill":"Add Skill","emptyNoSkills":"No skills yet.","emptyIntroPrefix":"Use","emptyIntroSuffix":"in chat to distil a reusable workflow into a SKILL.md file.","emptyNoMatch":"No skills match your search.","viewDocs":"view docs","pathLabel":"Absolute path to SKILL.md","pathPlaceholder":"/Users/you/.../skills/foo/SKILL.md","add":"Add","adding":"Adding...","invalid":"Invalid","builtinGroup":"Builtin","builtinReadOnly":"Builtin \xb7 read-only","selectHint":"Select a skill on the left to view its SKILL.md","fileTooLarge":"File is over 1 MB — not previewed","fileNotPreviewable":"This file cannot be previewed (binary)","copyPath":"Copy path","noDescription":"No description","previewTitle":"Skill Preview","source":"Source","cannotRead":"File cannot be read."},"toast":{"savedSuccess":"Saved","saveFailed":"Save failed","copiedName":"Copied: {{name}}","copyFailed":"Copy failed","deleteFailed":"Delete failed","operationFailed":"Operation failed","staged":"Staged","stageFailed":"Stage failed","unstaged":"Unstaged","unstageFailed":"Unstage failed","stagedNFiles":"Staged {{count}} files","unstagedNFiles":"Unstaged {{count}} files","discardFailed":"Discard failed","discardedNFiles":"Discarded changes in {{count}} files","deletedFile":"File deleted","discardedChanges":"Changes discarded","pastedFile":"Pasted: {{name}}","pasteFailed":"Paste failed","noFileToPaste":"No file to paste","createdFile":"Created: {{name}}","createFailed":"Create failed","movedToTrash":"Moved to trash: {{name}}","copiedPageUrl":"Page URL copied","copiedDirPath":"Directory path copied","switchedToBranch":"Switched to {{branch}}","switchBranchFailed":"Branch switch failed","loadBranchFailed":"Failed to load branches","copiedCommand":"Copied: {{command}}","copiedMessage":"Message copied","sentToPeer":"Sent to the other pane","sendToPeerFailed":"Failed to send to the other pane","forkFailed":"Failed to fork session","excerptFailed":"Failed to excerpt this turn","turnDeleted":"Turn deleted","deleteTurnFailed":"Failed to delete this turn","copiedUrl":"URL copied","copiedOutput":"Output copied","copiedCmd":"Command copied","copiedComment":"Comment copied","copiedAllComments":"All comments copied","copiedFileContent":"File content copied","copiedQA":"Copied {{count}} Q&A","copiedAllQA":"All Q&A copied","sentQA":"Sent to AI","readFileFailed":"Failed to read file","fileOutsideProject":"File preview is unavailable here","reviewCreated":"Review created, link copied","reviewUpdated":"Review updated, link copied","reviewCreateFailed":"Failed to create review","sharingClosed":"Sharing disabled","sharingCloseFailed":"Failed to disable sharing","linkCopied":"Link copied","addCommentFailed":"Failed to add comment","deleteCommentFailed":"Failed to delete comment","editCommentFailed":"Failed to edit comment","addReplyFailed":"Failed to add reply","deleteReplyFailed":"Failed to delete reply","editReplyFailed":"Failed to edit reply","disconnected":"Disconnected: {{id}}","pluginReloading":"Reloading extension...","worktreeCreateSuccess":"Worktree created: {{name}}","worktreeCreateFailed":"Failed to create worktree","worktreeLoadFailed":"Failed to load worktree list","worktreeDeleted":"Worktree deleted","worktreeDeleteFailed":"Failed to delete worktree","worktreeLocked":"Locked","worktreeUnlocked":"Unlocked"},"workspace":{"selectProject":"Select a project to start","searchProjectPath":"Search project path...","loadingProjects":"Loading projects...","projectNotFound":"No projects found","sessions":"{{count}} sessions","loadingSessions":"Loading sessions...","noSessions":"No sessions","loadingText":"Loading...","openProject":"Open Project","expandSidebar":"Expand sidebar","collapseSidebar":"Collapse sidebar","notes":"Notes","skills":"Skills","apps":"Apps","settings":"Settings","help":"Help","updateAvailable":"v{{version}} available","copyUpgradeCommand":"Copy cockpit update","updateNow":"Update now","updating":"Updating…","updateComplete":"Update complete","updateFailed":"Update failed","updateCardPreparing":"Preparing update…","updateCardInstalling":"Downloading and installing","updateCardRepairing":"Repairing native dependency","updateCardUpToDate":"Already on the latest version, v{{version}}","updateCardCopyFix":"Copy fix command","updateCardFixCopied":"Fix command copied","updateCardRollingBack":"Install failed, rolling back","updateCardRestarting":"Restarting Cockpit…","updateCardDone":"Updated to v{{version}}","updateCardElapsed":"{{seconds}}s elapsed","updateCardBaseline":"last time ~{{seconds}}s","updateCardNoLiveStatus":"Live status unavailable; the update is still running","updateCardRolledBack":"Rolled back to the previous version; Cockpit is usable.","updateCardManualHint":"You can retry from a terminal:","updateCardLogHint":"Log: {{path}}","updateRestartNote":"Cockpit will restart in the background.","viewChangelog":"View changelog","serverRestarted":"Cockpit was updated in the background.","serverReloadAfterRestart":"Cockpit restarted. Reload this page.","reloadNow":"Reload","upgradeCommandCopied":"Copied `cockpit update`","projectNotes":"Project Notes","closeProject":"Close project","unsentDraft":"Unsent draft","bots":"Bots"},"mobile":{"useDesktop":"Desktop","messagePlaceholder":"Message…","send":"Send","stop":"Stop","enableNotifications":"Enable notifications","disableNotifications":"Disable notifications","notifyError":"Could not enable notifications","useMobile":"Mobile","newChat":"New chat","voiceInput":"Voice input","voiceStop":"Stop voice input","voiceListening":"Listening…","voiceDenied":"Microphone access was denied — allow it in the browser settings","voiceFailed":"Voice input failed: {{reason}}","voiceUnsupported":"Voice input is not available in this browser — use the microphone on your keyboard","quickInstructionsHint":"Tap to fill the input"},"sessions":{"recentSessions":"Recent Sessions","favorites":"Favorite Sessions","titleSingleLine":"The title must be a single line, with no line breaks or \\\\n","titleNoAt":"The title must not contain @","titleNotMentionable":"This title cannot be used with @: {{reason}}. Rename it first","mentionable":"Can be @-mentioned","mentionableHint":"Adds this session to the Bots list; any session can then hand it a task with \\"@title task\\"","suggestTitle":"Suggest a title with AI","titleSuggestFailed":"Could not suggest a title: {{reason}}","noFavorites":"No favorite sessions yet. Click the star in the tab bar to add.","addFavorite":"Add to favorites","removeFavorite":"Remove from favorites","selectFavoriteHint":"Select a favorite on the left to preview its messages","noSessionMessages":"No messages in this session, or its transcript is gone","selectSessionHint":"Select a session on the left to preview its messages","dateToday":"Today","dateYesterday":"Yesterday","dateLast7Days":"Last 7 days","dateEarlier":"Earlier","runningCount":"{{count}} running","unreadCount":"{{count}} unread","noSessions":"No sessions yet","running":"Running","done":"Done","dragToReorder":"Drag to reorder within this project","restoreTitle":"Restore default title","titleEmpty":"Title cannot be empty.","titleLoadFailed":"Could not load the title. Close and try again.","titleSaveFailed":"Could not save the title. Please try again.","editTitle":"Edit title","projectSessions":"Project Sessions","browseAllSessions":"Browse all sessions","sessionList":"Session List","search":"Search","searchSessions":"Search sessions...","searchRecentSessions":"Search recent sessions","loadSessionsFailed":"Failed to load sessions","loadingSessions":"Loading sessions...","noMatchingSessions":"No matching sessions","noSessionsYet":"No sessions yet","projectList":"Project List","openFolder":"Open Folder","loadingHistory":"Loading history...","sessionsTab":"Sessions","pullRequestsTab":"PRs","searchPullRequests":"Search number / URL / title","allRepos":"All repos","allEngines":"All engines","noPullRequests":"No recent session has opened a PR yet","noPullRequestsHint":"PRs appear here once a session runs gh pr create","noMatchingPullRequests":"No matching PRs","selectPullRequestHint":"Select a PR on the left to view its session","pullRequestSessions":"{{count}} sessions","openPullRequest":"Open PR","copyResumeCommand":"Copy resume","resumeCommandCopied":"Copied: {{command}}","copyFailed":"Copy failed"},"scheduledTasks":{"title":"Scheduled Tasks","aboutToTrigger":"About to trigger","secondsLater":"in {{count}}s","minutesLater":"in {{count}}m","hoursMinutesLater":"in {{h}}h {{m}}m","hoursLater":"in {{h}}h","onceType":"Once (in {{duration}})","everyDuration":"Every {{duration}}","completed":"Completed","paused":"Paused","activeCount":"{{running}} active","pausedCount":"{{paused}} paused","noScheduledTasks":"No scheduled tasks. Click the clock button in the chat input to create one.","lastResult":"Last","runNow":"Run now","deleteFailed":"Failed to delete the task","resume":"Resume","pause":"Pause","completedCount":"Completed ({{count}})","pendingCount":"{{count}} to review","openSession":"Open session","selectTaskHint":"Select a task on the left to preview its session messages","noTaskMessages":"No messages in this task\'s session yet","success":"Success","failure":"Failed","inFlight":"Running now","interrupted":"Interrupted","createTask":"Create Scheduled Task","editTask":"Edit Scheduled Task","sendMessage":"Message","messagePlaceholder":"Enter message to send...","taskFile":"Task File","taskFilePlaceholder":"/Users/you/project/tasks/daily-report.md","taskFileHint":"Absolute path. On each fire the agent reads this file first and acts on what it describes — edits take effect on the next run.","taskFilePromptHeader":"Read this task file first, then act accordingly:","type":"Type","once":"Once","interval":"Interval","quickSelect":"Quick Select","customCron":"Custom Cron Expression","customDuration":"Custom duration","cronPlaceholder":"e.g. 0 9 * * 1-5 (weekdays at 9am)","cronFormat":"Format: min hour day month weekday (e.g. 0 9 * * 1-5)","amountPlaceholder":"Amount","limitTimeRange":"Limit execution time range","startAt":"Start at (optional)","startAtHint":"Empty = start now. When set, runs stay on start + N \xd7 interval and never drift with run time","clear":"Clear","fromTime":"from {{time}}","to":"to","saveBtn":"Save ({{modKey}}↩)","createBtn":"Create ({{modKey}}↩)","5minLater":"In 5 minutes","15minLater":"In 15 minutes","30minLater":"In 30 minutes","1hourLater":"In 1 hour","3hoursLater":"In 3 hours","6hoursLater":"In 6 hours","1dayLater":"In 1 day","3daysLater":"In 3 days","every15min":"Every 15 min","every30min":"Every 30 min","every1hour":"Every 1 hour","every2hours":"Every 2 hours","every6hours":"Every 6 hours","every12hours":"Every 12 hours","everyDay":"Every day","daily9am":"Daily 09:00","daily6pm":"Daily 18:00","weeklyMon9am":"Mon 09:00","monthly1st9am":"1st of month 09:00","unit":{"minute":"min","hour":"hours","day":"days"},"duration":{"minute_one":"{{count}} min","minute_other":"{{count}} min","hour_one":"{{count}} hour","hour_other":"{{count}} hours","day_one":"{{count}} day","day_other":"{{count}} days"}},"runningTerminals":{"title":"Terminals","status":"{{count}} terminal(s) \xb7 {{projects}} project(s)","keys":"↑↓ select \xb7 Enter / double-click open \xb7 Del stop \xb7 Esc close","empty":"No terminals running","currentProject":"current project","stop":"Stop","confirmStop":"Stop this process?","stopping":"Stopping…","stopFailed":"Failed to stop the terminal","openTerminal":"Open terminal","typeHint":"Click the terminal to type","modePty":"PTY \xb7 interactive terminal","modePipe":"Pipe \xb7 output only","ended":"Ended","selectHint":"Select a terminal on the left to preview its output","notFound":"Couldn\'t find this terminal\'s bubble"},"cron":{"everyNMinutes":"Every {{n}} minutes","everyNHours":"Every {{n}} hours","everyMinute":"Every minute","everyHourAtMin":"Every hour at minute {{m}}","hourlyEveryMin":"{{h}}:xx every minute","daily":"Daily at {{time}}","weekdays":"Weekdays","weekends":"Weekends","dowSun":"Sun","dowMon":"Mon","dowTue":"Tue","dowWed":"Wed","dowThu":"Thu","dowFri":"Fri","dowSat":"Sat","monthPrefix":"","dayOfMonth":"","dayRange":"{{a}}th to {{b}}th","weekdayPrefix":"","weekdayRange":"{{a}} to {{b}}"},"blockViewer":{"empty":{"body":"Select a file in the left tree to see its code map.","hint":"or press ⌘K to search."},"fileMode":{"loading":"Loading…","notFound":"This file is not indexed (unsupported language or beyond the file cap)."},"buildProgress":{"listing":"Listing files…","contexts":"Reading project config…","parsing":"Parsing files","resolving":"Resolving imports…","edges":"Building call graph…","done":"Finishing up…"},"search":{"tooltip":"Search (⌘K)","hint":"Start typing to search","noResults":"No matches","files":"Files","symbols":"Symbols"},"viewerToggle":{"toBlock":"Show code map","toCode":"Back to code view"},"tabs":{"toc":"Functions","history":"Trail"},"toc":{"title":"this file","empty":"No functions detected.","notIndexed":"File not in project graph (unsupported language / not in git tracked set / file cap reached)."},"history":{"title":"recent","empty":"Click an input or output pin to begin tracing.","clear":"Clear history"},"refresh":"Rebuild project graph","relationsStale":"Project relations need a refresh","retry":"Retry"},"blockDiffViewer":{"loading":"Building code map…","unsupported":"Code map diff is not available for this file type.","unsupportedHint":"Switch back to the regular diff view to read it.","error":"Code map diff failed: {{message}}","noBlockChanges":"No code-map changes (formatting / whitespace only).","noBefore":"(new)","noAfter":"(removed)","kind":{"added":"added","deleted":"deleted","modified":"modified"}},"fileBrowser":{"directoryTree":"Tree","searchTab":"Search","recentTab":"Recent","changesTab":"Status","historyTab":"History","searchFiles":"Search files...","clear":"Clear","exactMatchOn":"Exact match (on)","exactMatchOff":"Exact match (off)","refreshTree":"Refresh directory tree","collapseAll":"Collapse all directories","searchFileContent":"Search file contents...","caseSensitive":"Case sensitive","wholeWord":"Whole word","regex":"Regex","fileTypes":"File types (ts,tsx)","compareMode":"Compare","compareModeOff":"Close branch comparison","compareModeOn":"Compare with selected branch","compareScopeHead":"HEAD","compareScopeWorktree":"Worktree","compareScopeHeadHint":"Compare committed work only","compareScopeWorktreeHint":"Include uncommitted changes (staged / unstaged / untracked)","createFile":"New File","createFileIn":"New File (in {{path}}/)","fileName":"File name...","noRecentFiles":"No recent files","stagingArea":"Staged ({{count}})","changesSummary_one":"{{count}} change","changesSummary_other":"{{count}} changes","noChanges":"No changes in working tree","refreshChanges":"Refresh changes","unstageAll":"Unstage all","noStagedFiles":"No staged files","unstageNFiles":"Unstage {{count}} files","unstageFile":"Unstage","workspace":"Workspace ({{count}})","discardAll":"Discard all","stageAll":"Stage all","noUnstagedChanges":"No unstaged changes","discardNFiles":"Discard changes in {{count}} files","stageNFiles":"Stage {{count}} files","discardChanges":"Discard changes","stageFile":"Stage file","loadingDiff":"Loading diff...","noDiffFiles":"No diff files","nFilesChangedPlain":"{{count}} files changed","nFilesChanged":"{{count}} files changed (vs {{branch}})","nFilesChangedWorktree":"{{count}} files changed (vs {{branch}}, incl. uncommitted)","noDiffFilesHeadHint":"Nothing committed on this branch yet — switch to Worktree to see uncommitted changes","loadingCommits":"Loading commits...","noCommits":"No commits","allLoaded":"All {{count}} records loaded","locateInTree":"Locate in directory tree","unsaved":"Unsaved","saveBeforeSwitch":"Current file has unsaved changes. Save before switching?","saveAndSwitch":"Save and switch","closeEdit":"Close edit (ESC)","closeBtn":"Close","copyFileContent":"Copy file content","toggleJsonReadable":"Toggle JSON readable mode","previewMarkdown":"Preview Markdown","exitPreview":"Exit Preview","collapseAllJson":"Fold","expandAllJson":"Full","viewBlame":"View line-by-line change history","viewDiff":"View changes against HEAD","exitDiff":"Exit Diff","diffLoadFailed":"Failed to load diff","editFile":"Edit file","backToPreview":"Back to preview","cannotPreview":"Cannot preview this file","selectFileToPreview":"Select a file to preview","staged":"Staged","unstaged":"Unstaged","selectFileToViewDiff":"Select a file to view diff","loadingDiffContent":"Loading diff...","clickCompareToLoad":"Click \\"Compare\\" to load branch diff","selectCommitToView":"Select a commit to view details","confirmDelete":"Confirm Delete","confirmDeleteMessage":"Move <file>{{name}}</file> to trash?","nFilesNMatches":"{{files}} files, {{matches}} matches","resultsTruncated":"Results truncated","noContentSearchResults":"No results","enterKeywordToSearch":"Enter keyword to search file contents","searchMinChars":"Search requires at least 2 characters"},"csv":{"table":"Table","raw":"Raw","empty":"Empty table","summary":"{{rows}} rows \xb7 {{cols}} columns","summaryFiltered":"{{rows}} / {{total}} rows matched \xb7 {{cols}} columns","loadMore":"Load more ({{shown}} / {{total}} shown)","filterPlaceholder":"Filter rows…","filterColumn":"Filter column","clearFilter":"Clear filter","allColumns":"All columns","noMatch":"No matching rows","sortHint":"Click to sort (asc / desc / off)"},"codeViewer":{"fileModifiedExternally":"File was modified externally. Saving will overwrite external changes.","useDiskVersion":"Use disk version","forceOverwrite":"Force overwrite","searchPlaceholder":"Search...","caseSensitive":"Case sensitive","wholeWordMatch":"Whole word match","unsavedConfirm":"You have unsaved changes. Close anyway?","discardChanges":"Discard changes","continueEditing":"Continue editing","unsavedExitConfirm":"You have unsaved changes. Exit edit mode?","clickToViewDetails":"Click to view details","clickToViewCommit":"Click to view commit details","nComments":"{{count}} comments","searchChat":"Search chat...","prevShiftEnter":"Previous (Shift+Enter)","nextEnter":"Next (Enter)","closeEsc":"Close (Esc)"},"chat":{"commandRefs_one":"{{count}} reference attached","commandRefs_other":"{{count}} references attached","commandRef_read":"read","commandRef_handoff":"hand on","commandRef_handoffMixed":"hand on","commandRef_targets":"target","commandRef_inline":"inlined","originSent":"@-mention from {{project}}","originDelegated":"Delegated from {{project}}","originUnknown":"another session","decisionContextAttached":"{{count}} related decisions attached","codexInput":{"queued":"Additional message waiting to send","accepted":"Codex accepted the additional message","failed":"Additional message delivery failed or is unconfirmed — open for details","images":"Images: {{count}}"},"recoveryCopy":"Failed run recovery copy","recoveryCopyHint":"Temporary copy of observed content. It may repeat saved history and is not sent to the model. Kept while this conversation remains open.","recoveryCopiesLabel":"Failed run recovery copies","recoveryAttachment":"Recovery attachment","startConversation":"Start a conversation","loadMoreHistory":"Load more...","scrollUpForMore":"↑ Scroll up to load more history","jumpToStart":"Jump to start","jumpToLatest":"Jump to latest","jumpToPrevUserMessage":"Previous user message","jumpToNextUserMessage":"Next user message","recentUserMessages":"Recent user messages","moreUserMessages":"More","userMessage":"User message","recentUserMessageNumber":"Recent user message {{index}} of {{total}}","imageMessage":"Image message","copyMessage":"Copy message","copyImage":"Copy image","copiedImage":"Image copied","forkSession":"Fork session from here","excerptTurn":"Excerpt this turn to a new session","newSession":"New session","continueFromHere":"Continue from here","continueFromHereDesc":"Keep all context through this turn","onlyThisTurn":"Only this turn","onlyThisTurnDesc":"Keep only this question and answer","onlyThisTaskDesc":"Keep this entire task, including all {{count}} inputs and replies","deleteTurn":"Delete turn","deletingTurn":"Deleting…","deleteTurnConfirm":"Delete this question, answer, and its tool records? This cannot be undone.","deleteTaskConfirm":"This task contains {{count}} user inputs, including additional steering. Delete the entire task with all its inputs, replies, and tool records? This cannot be undone.","deleteTurnConfirmAction":"Delete turn","deleteTurnWhileRunning":"A turn cannot be deleted while the session is running","sendToPeerPane":"Send this message to the other pane","imageN":"Image {{index}}","imagePreview":"Image preview","imageLoadFailed":"Could not load this image","toolCalls":"{{count}} tool calls","collapse":"▲ Collapse","expand":"▼ Expand","showMore":"Show more","showLess":"Show less","subagent":"Subagent","piChildStatus":{"interrupted":"Interrupted snapshot","truncated":"Truncated","running":"Running","done":"Done","failed":"Failed","cancelled":"Cancelled"},"subagentEmpty":"No subagent transcript found","subagentViewTitle":"View subagent transcript","workflowRun":"Run details","workflowViewTitle":"View workflow run details","workflowEmpty":"No workflow run journal found","workflowAgents":"agents","workflowViewAgent":"View","workflowUngrouped":"Ungrouped","viewQuestions":"View questions","viewAllFileChanges":"View all file changes","requestFailed":"Request failed","cannotReadStream":"Cannot read response stream","errorRetry":"An error occurred, please retry","codexResumeFailed":"Previous session is in use by another Codex client — started a new session; history was not carried over","codexResumeFailedPrevious":"Previous session","codexResumeFailedNew":"New session","codexContextCompacting":"Codex is compacting the context…","placeholder":"Type a message, / for skills, @ for bots","placeholderDisabled":"Generating... you can keep typing (ESC to cancel; if stuck, cancel and resend \'continue\')","placeholderRunning":"Generating... Enter sends now: it joins the current reply at its next step (ESC to stop)","imageSizeLimit":"Image size exceeds limit (max 5MB), current: {{size}}MB","viewGitChanges":"View Git changes","viewAllComments":"View all comments","userMessages":"User messages","projectNotes":"Project Notes","scheduledTasks":"Scheduled Tasks","quickInstructions":"Quick Instructions","globalInstructions":"Global Instructions","projectInstructions":"Project Instructions","noQuickInstructions":"No quick instructions yet","addQuickInstruction":"Add quick instruction","quickInstructionPlaceholder":"One-line instruction — Enter to save, Esc to cancel","insertQuickInstruction":"Insert into input (without sending)","addInstructionGroup":"New group","instructionGroupNamePlaceholder":"Group name — Enter to save, Esc to cancel","instructionGroupLabel":"Group","instructionGroupNone":"No group","deleteInstructionGroupConfirm":"Deleting \\"{{name}}\\" also deletes the {{count}} instruction(s) inside it. Continue?","editGlobalInstructions":"Edit global instructions","editProjectInstructions":"Edit project instructions","quickInstructionsMarkdownHint":"One top-level entry per line. Add lines beginning with “- ” after a group name for its instructions. Write \\\\n for a line break inside one instruction.","quickInstructionsMarkdownPlaceholder":"Continue\\nDraw with text\\n- Draw a login flow\\n- Draw a system architecture","quickInstructionsMarkdownError":"Invalid format on line {{line}}.","savingQuickInstructions":"Saving...","saveQuickInstructionsFailed":"Could not save. Your edits are still here; please try again.","context":"Context","output":"Output","copiedCommandTooltip":"Copied!","copyCommandTooltip":"Copy command: {{command}}","executedCommand":"Executed `{{command}}`{{exitInfo}}, output:\\n```\\n{{output}}\\n```","executedCommandFailed":"Failed to execute `{{command}}`: {{error}}","executionMode":"Execution Mode","checkBalance":"Check balance","balanceFailed":"Query failed — check the API key","balanceNeedsKey":"Set a DeepSeek API key first","balanceUnavailable":"Account is not available for requests","balanceEmpty":"No balance returned","openUsagePage":"Open DeepSeek usage console","checkQuota":"Check quota","quotaFailed":"Quota unavailable — check the API key","quotaNeedsKey":"Set an API key first","quotaEmpty":"No quota returned","quotaResetAt":"Resets {{time}}","openProviderConsole":"Open the provider console","planMode":"Plan mode","planModeDesc":"read-only, plans first without edits","planModeOn":"Plan mode on — read-only; send a task to get a plan","planModeOff":"Plan mode off","planModeHint":"Plan mode: read-only exploration that produces a plan without editing. Uncheck and resend to implement.","noHistory":"No history context","noHistoryDesc":"each prompt is independent","noHistoryHint":"No history context: each message is sent to the model on its own, with no prior conversation. The transcript above still records everything.","planTitle":"Plan (awaiting your review)","approvePlan":"Approve & run","planApproveHint":"No approval dialog here — click to exit plan mode and execute","approvePlanPrompt":"Approved — proceed with the plan above.","maximizePane":"Maximize this pane","restorePane":"Restore both panes","closePane":"Close this pane","singlePane":"Single pane","splitPane":"Split into two panes"},"console":{"enterCommandOrUrl":"Enter a command or URL to start","emptyIntro":"Type any of the following in the input bar to create a bubble:","bubbleCommand":"Command","bubbleInteractive":"Interactive","bubbleBrowser":"Browser","bubbleBrowserNoteIframe":"Some sites block iframe embedding — install Cockpit Bridge under Settings → Browser Extension before opening.","bubbleBrowserNoteCookie":"If a logged-in site first shows as signed out, refresh a few times to restore it.","bubbleDatabase":"Database","bubbleFilePreview":"File preview","loadingMore":"Loading...","loadMoreHistory":"Load more history","quickCommands":"Quick Commands","singleColumn":"Single column","dualColumn":"Dual column","envVars":"Environment Variables","launchShell":"Launch interactive shell","htmlApps":"HTML apps","inputPlaceholder":"Enter command or URL and press Enter... (↑↓ history, Tab complete)","scopeProject":"Project","scopeGlobal":"Global","tabSwitchEscClose":"Tab to switch \xb7 Esc to close","copyOutput":"Copy output","copyCommand":"Copy command","rerun":"Re-run","deleteRecord":"Delete record","searchPlaceholder":"Search...","searchMode":"Search","filterMode":"Filter","prevShiftEnter":"Previous (Shift+Enter)","nextEnter":"Next (Enter)","loadingTerminal":"Loading terminal...","clickToInput":"Click terminal area to type","stdinPlaceholder":"stdin input...","runningText":"Running...","exitCode":"Exit code: {{code}}","totalLines":"{{count}} lines total","globalCommands":"Global Commands","projectCommands":"Project Commands","noCustomCommands":"No custom commands yet","editGlobalCommands":"Edit global commands","editProjectCommands":"Edit project commands","quickCommandsTextHint":"One per line as \\"name: command\\". Names may only contain letters, digits, - and _; everything after the first colon is the command.","quickCommandsTextPlaceholder":"pg: psql -h localhost -U postgres\\ngitpull: git pull --rebase","quickCommandsTextError":"Line {{line}} is invalid; expected \\"name: command\\".","savingQuickCommands":"Saving...","saveQuickCommandsFailed":"Save failed. Your edits are kept; please retry.","restoreTooltip":"Restore ({{modKey}}M / ESC)","screenshotting":"Screenshotting...","outputFileDeleted":"[Output file deleted]"},"browser":{"blankPage":"Blank page","copyUrl":"Copy URL","openInNewWindow":"Open in new window","exitMaximize":"Exit maximize ({{modKey}}M)","maximize":"Maximize ({{modKey}}M)","pageLoadFailed":"Page load failed","openInTabFallback":"OpenCockpit Bridge is not connected — opened a plain new tab instead","movedToChrome":"Web pages now open in Chrome tabs, not in the console.","openInChrome":"Open in Chrome","openedInChrome":"Opened in Chrome — {{command}}","clickToWake":"Click to wake","sleeping":"Sleeping","loadingPage":"Loading...","loadFailed":"Load failed"},"database":{"connectionFailed":"Connection failed","connected":"Connected","connecting":"Connecting...","refreshTableList":"Refresh table list","filterTable":"T Tables","filterView":"V Views","noTables":"No tables","tabStructure":"Structure","tabData":"Data","tabSql":"SQL","filterActive":"Filter: {{count}} cols","clearAllFilters":"Clear all filters","deleteNRows":"Delete {{count}} rows","confirmDeleteRows":"Confirm delete?","copyCsvSelected":"Copy selected rows as CSV","copyCsvAll":"Export all as CSV","copyJsonSelected":"Copy selected rows as JSON","copyJsonAll":"Export all as JSON","copyCSV":"Copy CSV","CSV":"CSV","copyJSON":"Copy JSON","JSON":"JSON","selectTable":"Select a table","selectTableToView":"Select a table to view structure","selectTableForData":"Select a table to view data","columns":"Columns","colName":"Name","colType":"Type","colNullable":"Nullable","colDefault":"Default","primaryKey":"Primary Key","foreignKeys":"Foreign Keys","indexes":"Indexes","enable":"Enable","commaValues":"Comma-separated values","likePattern":"%pattern%","valuePlaceholder":"Value","apply":"Apply","clearFilter":"Clear","addRow":"+ Add Row","totalRows":"{{count}} rows","rowsAffected":"{{command}} — {{count}} rows affected ({{duration}}ms)","queryRows":"{{count}} rows ({{duration}}ms)","resultTruncated":"[Results truncated to 1000 rows]","sqlPlaceholder":"Enter SQL... ({{modKey}}Enter to execute)","executing":"Executing...","execute":"▶ Execute","deleteRowsFailed":"{{count}} rows failed to delete","inputParams":"Input Parameters","resultLabel":"Result"},"mysql":{"connectionFailed":"Connection failed","connected":"Connected","connecting":"Connecting...","refreshTableList":"Refresh table list","filterTable":"T Tables","filterView":"V Views","noTables":"No tables","tabStructure":"Structure","tabData":"Data","tabSql":"SQL","filterActive":"Filter: {{count}} cols","clearAllFilters":"Clear all filters","deleteNRows":"Delete {{count}} rows","confirmDeleteRows":"Confirm delete?","copyCsvSelected":"Copy selected rows as CSV","copyCsvAll":"Export all as CSV","copyJsonSelected":"Copy selected rows as JSON","copyJsonAll":"Export all as JSON","copyCSV":"Copy CSV","CSV":"CSV","copyJSON":"Copy JSON","JSON":"JSON","selectTable":"Select a table","selectTableToView":"Select a table to view structure","selectTableForData":"Select a table to view data","columns":"Columns","colName":"Name","colType":"Type","colNullable":"Nullable","colDefault":"Default","primaryKey":"Primary Key","foreignKeys":"Foreign Keys","indexes":"Indexes","enable":"Enable","commaValues":"Comma-separated values","likePattern":"%pattern%","valuePlaceholder":"Value","apply":"Apply","clearFilter":"Clear","addRow":"+ Add Row","totalRows":"{{count}} rows","rowsAffected":"{{command}} — {{count}} rows affected ({{duration}}ms)","queryRows":"{{count}} rows ({{duration}}ms)","resultTruncated":"[Results truncated to 1000 rows]","sqlPlaceholder":"Enter SQL... ({{modKey}}Enter to execute)","executing":"Executing...","execute":"▶ Execute","deleteRowsFailed":"{{count}} rows failed to delete"},"redis":{"neverExpires":"Never expires","expired":"Expired","loadFailed":"Load failed","deleteFailed":"Delete failed","saveFailed":"Save failed","scanPlaceholder":"SCAN pattern...","scanSearch":"Search (SCAN)","noKeys":"No keys","loadMore":"Load more...","tabData":"Data","tabInfo":"Info","tabCli":"CLI","selectKey":"Select a key","keyNotExist":"Key does not exist","unsupportedType":"Unsupported type: {{type}}","nItems":"{{total}} items","showingN":"showing {{count}}","nMembers":"{{total}} members","nEntries":"{{total}} entries","cliHint":"Enter Redis commands, e.g. PING, GET key, KEYS *","cliPlaceholder":"Enter command..."},"git":{"switchBranch":"Switch branch","searchBranch":"Search branches...","noBranches":"No branches available","noMatchingBranches":"No matching branches","localBranches":"Local Branches","remoteBranches":"Remote Branches","branchNotFound":"Branch not found","selectBranch":"Select branch...","currentBranch":"Current","notGitRepo":"Current directory is not a Git repository","cannotGetBranches":"Cannot get branch info","getBranchesFailed":"Failed to get branch info","discardAllConfirm":"Discard changes in {{count}} workspace files? This cannot be undone.","worktree":{"title":"Git Worktree","count":"{{count}} worktrees","selectBranch":"Select branch","addWorktree":"+ Add Worktree","confirmDelete":"Confirm Delete","confirmDeleteMsg":"Delete this worktree?","path":"Path:","branch":"Branch:","locked":"Locked","unlock":"Unlock","lock":"Lock","searchBranch":"Search branches...","noBranches":"No available branches"}},"comments":{"addComment":"Add Comment","lineRange":"Line {{start}}-{{end}}","inputPlaceholder":"Enter comment...","newComment":"New comment {{range}}","commentPlaceholder":"Enter comment... ({{modKey}}Enter to submit, Esc to cancel)","nComments":"{{count}} comments","allComments":"All Comments","copyAllComments":"Copy all comments","noComments":"No comments yet","clearAll":"Clear all","totalComments":"{{count}} comments total","aiReply":"AI Reply","noContent":"(no content)","linesCount":"({{count}} lines)","codeRef":"Here are my annotated comments and references:","note":"Note: {{content}}","submitting":"Submitting...","enterSubmit":"Enter to submit \xb7 Shift+Enter for new line","submitComment":"Submit Comment","askAI":"Ask AI","inputQuestion":"Enter your question...","aiGenerating":"Generating, please wait...","enterSend":"Enter to send \xb7 Shift+Enter for new line","sendToAI":"Send to AI","aiResponding":"AI is responding..."},"fileContextMenu":{"createFile":"New File","copyFile":"Copy File","copyFolder":"Copy Folder","pasteHere":"Paste Here","deleteFile":"Delete File","deleteFolder":"Delete Folder","copyRelativePath":"Copy Relative Path","copyAbsolutePath":"Copy Absolute Path","copyRelativeDirPath":"Copy Relative Dir Path","copyAbsoluteDirPath":"Copy Absolute Dir Path","copyFileName":"Copy File Name","copyFolderName":"Copy Folder Name"},"settings":{"title":"Settings","theme":"Theme","themeLight":"Light","themeDark":"Dark","themeSystem":"System","browserExtension":"Browser Extension","extensionInstalled":"OpenCockpit Bridge connected","extensionNotInstalled":"OpenCockpit Bridge not connected","extensionDescription":"Lets `cockpit browser` drive your Chrome tabs and Console browser bubbles. Every tab gets an id (in the extension\'s popup and icon tooltip); Cockpit asks before acting on a tab you haven\'t allowed — permission is per tab.","installSteps":"Installation steps:","step1":"1. Open Chrome and navigate to","step2":"2. Enable \\"Developer mode\\" in the top-right corner","step3":"3. Click \\"Load unpacked\\"","step4mac":"4. Press <kbd>Cmd+Shift+G</kbd> → paste the path below → Enter","copyExtensionPath":"Copy extension directory path","reloadExtension":"Reload extension","about":"About","language":"Language","languageAuto":"System","switchDark":"Switch to dark","switchLight":"Switch to light","agentsBundled":"bundled","codexSection":"Codex","codexSuggestions":"Suggest next prompt","codexSuggestionsDescription":"After each reply, ask Codex to predict your next message and show it in the input box (Tab to accept). Costs one small extra request per turn."},"editor":{"placeholder":"Write something... Type / for commands","noteTitle":"{{name}} - Notes","noteUntitled":"Notes","globalNote":"Global note","emptyNote":"Empty note","searchNotes":"Search notes...","saving":"Saving...","conflictReloaded":"This note was changed elsewhere. Loaded the latest version; your recent unsaved edits were discarded.","linkPlaceholder":"Enter URL...","confirmLink":"Confirm","removeLink":"Remove link","heading1":"Heading 1","heading2":"Heading 2","heading3":"Heading 3","bold":"Bold","italic":"Italic","strikethrough":"Strikethrough","inlineCode":"Inline code","link":"Link","bulletList":"Bullet list","orderedList":"Ordered list","taskList":"Task list","blockquote":"Blockquote","codeBlock":"Code block","table":"Table","horizontalRule":"Horizontal rule","insertRowAbove":"Insert row above","insertRowBelow":"Insert row below","insertColumnLeft":"Insert column left","insertColumnRight":"Insert column right","deleteRow":"Delete row","deleteColumn":"Delete column","deleteTable":"Delete table","deleteCodeBlock":"Delete code block","toc":"TOC","expandToc":"Expand TOC","collapseToc":"Collapse TOC"},"slashCommands":{"heading1":"Heading 1","heading1Desc":"Large heading","heading2":"Heading 2","heading2Desc":"Medium heading","heading3":"Heading 3","heading3Desc":"Small heading","bulletList":"Bullet List","bulletListDesc":"Bulleted list","orderedList":"Ordered List","orderedListDesc":"Numbered list","taskList":"Task List","taskListDesc":"Checkable task list","blockquote":"Blockquote","blockquoteDesc":"Quote block","codeBlock":"Code Block","codeBlockDesc":"Code snippet","table":"Table","tableDesc":"Insert 3\xd73 table","horizontalRule":"Divider","horizontalRuleDesc":"Horizontal divider","link":"Link","linkDesc":"Insert hyperlink"},"commands":{"plan":"Enable plan mode \xb7 /plan <task> to plan it \xb7 /plan off to disable"},"markdown":{"copied":"✓ Copied","copy":"Copy"},"imagePreview":{"previewImage":"Preview image","deleteImage":"Delete image","copyImage":"Copy image","copiedImage":"Image copied"},"tokenStats":{"title":"Claude Code Token Stats","activeHours":"Active Hours Distribution","hourSessions":"{{h}}:00 — {{count}} sessions","messages":"Messages","toolCalls":"Tool Calls","activityTrend":"Activity Trend","byModel":"By Model","tokenUsage":"Token Usage","equivalentCost":"Equivalent Cost","modelCostDetail":"Model Cost Details","model":"Model","share":"Share","total":"Total","totalSessions":"Total Sessions","totalMessages":"Total Messages","equivalentApiCost":"Equivalent API Cost","longestSession":"Longest Session","firstUse":"First Use","notFound":"~/.claude/stats-cache.json not found","day":"Day","week":"Week","month":"Month"},"toolCall":{"inputParams":"Input Parameters","resultLabel":"Result","inputParamsTitle":"View input parameters","resultTitle":"View result","input":"Input","result":"Result","details":"Details","detailsTitle":"View input and result","foldedLines":"... ({{count}} lines)"},"fileEditor":{"unsavedConfirm":"You have unsaved changes. Close anyway?","discardChanges":"Discard changes","continueEditing":"Continue editing","externallyModified":"File was modified externally. Saving will overwrite external changes.","useDiskVersion":"Use disk version","forceOverwrite":"Force overwrite"},"quickFileOpen":{"placeholder":"Type file name to open...","noMatch":"No matching files","recent":"Recent","selectHint":"Select","openHint":"Open","closeHint":"Close"},"envManager":{"title":"Environment Variables","tabScope":"Current Tab Only","globalScope":"Global Environment Variables","varNamePlaceholder":"Variable name (e.g. NODE_ENV)","varValuePlaceholder":"Value (e.g. production)","valuePlaceholder":"Value","noVars":"No environment variables yet. Add one to get started."},"aliasManager":{"title":"Command Aliases","description":"Set shortcut aliases for common commands (global)","aliasPlaceholder":"Alias (e.g. ll)","commandPlaceholder":"Full command (e.g. ls -la)","fullCommandPlaceholder":"Full command","usage":"Usage tip:","usageDesc":"Type an alias to execute the corresponding full command","noAliases":"No command aliases yet. Add one to get started."},"diffViewer":{"fileChanges":"File Changes ({{count}})","expandFull":"Expand to full width","exitFull":"Back to column","toggleFileTree":"Toggle file tree","selectFileToView":"Select a file to view changes","sideBySide":"Side by side","unified":"Unified","viewSplit":"Split","viewUnified":"Unified","previewFile":"Preview file","copiedAll":"Full text copied","compact":"Compact","full":"Full","gap":{"hidden":"{{count}} lines hidden","more":"\xb7\xb7\xb7 more +{{count}} \xb7\xb7\xb7","expandUp":"Expand {{count}} lines up","expandDown":"Expand {{count}} lines down","expandAll":"Click to expand {{count}} lines"},"loadingSnapshots":"Loading snapshots…","loadingFile":"Loading file diff…","fileLoadFailed":"Could not load the file diff","noChanges":"No file changes detected in this turn","notViewable":"Binary or oversized file — diff not viewable","externalChange":"Concurrent change from another session/process","reconstructed":"reconstructed","reconstructedHint":"Rebuilt from tool-call parameters — not a disk snapshot","truncated":"Too many files — list truncated","aggregate":"Aggregate","aggregateOn":"View the net change across all calls","aggregateOff":"Back to per-call view","fileChangesAggregate":"File Changes ({{count}}) \xb7 Aggregate","aggregateSummary":"{{count}} files changed (across {{calls}} calls)","aggregateLoading":"Aggregating changes…","aggregateEmpty":"No net change after aggregation","aggregateUnavailable":"No snapshots — cannot aggregate","aggregateFailed":"Aggregation failed","aggregateBaselineSkipped":"Skipped {{count}} baseline-scale call(s)","aggregateBaselineIncluded":"Including {{count}} baseline-scale call(s)","callsBaselineHidden":"Hid {{count}} baseline-scale call(s)","callsBaselineShown":"Showing {{count}} baseline-scale call(s)","aggregateSkippedHint":"These calls touched more than {{threshold}} files — usually a branch switch or rebase rather than authored work. Click to toggle.","imageBefore":"Before","imageAfter":"After","imageAdded":"Added","imageDeleted":"Deleted","imageLoadFailed":"Failed to load image","imageUnavailable":"Image not present in either revision"},"commitDetail":{"title":"Commit Details","hash":"Hash:","author":"Author:","date":"Date:","files":"Files:","nChanges":"{{count}} changes","loadingFiles":"Loading files...","noFileChanges":"No file changes","loadingDiff":"Loading diff...","selectFileToView":"Select a file to view diff"},"askQuestion":{"title":"Questions","nQuestions":"{{count}} questions","checkedN":"{{count}} checked","copyChecked":"Copy {{count}} checked Q&A","copyAll":"Copy all Q&A","sendChecked":"Send {{count}} checked Q&A to AI","sendAll":"Send all Q&A to AI","sendNoChat":"No active chat session","checkToCopy":"Check to copy","custom":"Custom","customPlaceholder":"Enter custom answer...","notSelected":"(not selected)"},"tabBar":{"closeTab":"Close session","closeAll":"Close all sessions","newTab":"New session"},"tabManagerTopBar":{"copyPageUrl":"Copy page URL","copyDirPath":"Copy directory path","refreshProject":"Refresh project","openInVSCode":"Open in VS Code","openInCursor":"Open in Cursor","aliasesGlobal":"Command Aliases (Global)","tokenStats":"Token Stats","openSurething":"Open Surething","openOnPhone":"Open on phone","phoneQrHint":"Scan with your phone to open Cockpit","phoneQrSessionHint":"Scan with your phone to open this session","phoneQrTokenWarning":"This code contains your access token. Don\'t share it.","phoneQrFailed":"Could not generate the QR code"},"hoverTooltip":{"findReferences":"Find References","search":"Search"},"todoViewer":{"title":"Task List","progress":"{{completed}} / {{total}} done"},"userMessages":{"title":"User Messages","noMessages":"No user messages","searchPlaceholder":"Search user messages…","noResults":"No matching messages","loadFailed":"Failed to load","count":"{{shown}} / {{total}}","jumping":"Loading the turns around this message…"},"shortIdBadge":{"clickToDisconnect":"Click to disconnect","clickToRegister":"Click to register and copy CLI command","setTitle":"Name this bubble (so /cc can find it later)","setTitlePlaceholder":"set title","editTitle":"Edit title","titleSet":"Title: {{title}}","dialogTitle":"Name this bubble","dialogPlaceholder":"e.g. alloydb proxy, staging admin"},"api":{"pathForbidden":"Operation not allowed on this path","deleteForbidden":"Delete not allowed on this path","notAFolder":"Target is not a folder","imageTooLarge":"Image too large to preview","cannotPreviewBinary":"Cannot preview binary file","fileTooLarge":"File too large to preview (over 10MB)","fileModifiedExternally":"File was modified externally"},"folderPicker":{"title":"Open Folder","placeholder":"Type or paste a path, e.g. ~/Work/my-app","open":"Open","showHidden":"Show hidden","hint":"↑↓ select \xb7 Tab/Enter go in \xb7 ⌘/Ctrl+Enter open","empty":"No subfolders","noMatch":"No matching folders","notFound":"Folder not found","notDirectory":"Not a folder","denied":"Permission denied. On macOS, grant access in System Settings › Privacy & Security."},"confirm":{"title":"Notice","ok":"OK","cancel":"Cancel"},"floatingToolbar":{"addComment":"Add Comment","sendToAI":"Send to AI","search":"Search"},"quickReply":{"optionA":"A","optionB":"B","optionC":"C","optionD":"D","allRecommended":"Rest recommended","thisOne":"This one","notThis":"Not this","why":"Why?","elaborate":"Say more","example":"Give an example","start":"Do it","continue":"Continue","ok":"OK","done":"Done","edit":"Edit quick replies","editTitle":"Edit quick replies","editHint":"One line per row; separate phrases with commas. Each phrase is sent to the chat exactly as written.","editPlaceholder":"This one, Not this\\nWhy?, Say more","restoreDefault":"Restore defaults","save":"Save","cancel":"Cancel","customizedFor":"Customizing the {{lang}} phrases — the other language is unaffected.","langEn":"English","langZh":"Chinese","saveFailed":"Failed to save quick replies"},"searchResults":{"title":"Search Results","nMatches":"({{count}} matches)","searching":"Searching...","noResults":"No matches","scopeSelected":"Selected","scopeAll":"All"},"references":{"title":"References","searching":"Searching...","notFound":"No references found"},"gitFileTree":{"noFiles":"No files"},"deps":{"action":"Dependencies","none":"none","symbolMessage":"Analyse the dependencies of {{name}} ({{path}}:{{lines}}).\\n\\nCallers: {{callers}}\\nCalls: {{callees}}\\nExternal: {{externals}}\\n\\nExplain which modules it is coupled to, and which of those dependencies could be narrowed."},"explain":{"action":"Explain","fileMessage":"Explain {{path}}","symbolMessage":"Explain {{name}} ({{path}}:{{lines}})","selectionMessage":"Explain","commitFileMessage":"Explain what git commit {{hash}} changed in {{path}}","compareFileMessage":"Explain the git changes to {{path}} in {{base}}...HEAD","compareFileWorktreeMessage":"Explain the changes to {{path}} relative to {{base}}, including uncommitted work","stagedFileMessage":"Explain the git staged changes to {{path}}","unstagedFileMessage":"Explain the git working tree changes to {{path}}"},"bots":{"sessionBadge":"Session","sessionGroup":"Session Bots","sessionGroupHint":"Sessions ticked \\"Can be @-mentioned\\" in their title dialog; @-mentioning one sends the task into that session","sessionGone":"The session no longer exists","sessionNameInvalid":"Its title cannot be a name (multi-line or contains @); rename it to @-mention it","sessionUsage":"Write \\"@{{name}} <task>\\" in any session to send the task into this one","removeSession":"Remove from Bots","title":"Bots","search":"Search bots","addExisting":"Add bot","addTooltip":"Add as Bot","emptyNoMatch":"No bots match your search.","emptyNoBots":"No bots of your own yet.","emptyCreatePrefix":"Use","emptyCreateSuffix":"in chat to create one.","emptyAddExisting":"add an existing Bot directory","invalid":"Invalid","builtin":"Built-in","mine":"Mine","tabFiles":"Files","tabSessions":"Sessions","noSessions":"No recent sessions for this Bot","sessionsScope":"Every session run in its folder, plus sessions it recently dispatched elsewhere","selectHint":"Select a Bot on the left to see its files and sessions","remove":"Remove registration","open":"Open as project","pathPlaceholder":"Absolute path to a Bot directory or its BOT.md","addHint":"The directory must contain a BOT.md. Its files are not changed.","added":"Bot added","alreadyAdded":"Already added","removed":"Bot removed; its files were kept.","loadFailed":"Failed to load bots","saveFailed":"Failed to add bot","removeFailed":"Failed to remove bot"},"contextInspector":{"title":"Session context","open":"View context contents","used":"Used","window":"Window","free":"Free","unknownWindow":"Window size unknown","capturedAt":"Recorded {{time}}","refresh":"Refresh","loadFailed":"Failed to read context","noSession":"The session has not started yet; there is no context","empty":"No context items to show","selectItem":"Select an item on the left to see its content","noContent":"The engine does not expose the text of this item, only its name and token count","truncated":"Content is long; showing the first {{count}} characters","estimated":"≈ marks character-based estimates","items":"{{count}} items","copy":"Copy","copied":"Copied","groups":{"prompt":"Prompt","memory":"Memory files","tools":"Tools","skills":"Skills & agents","messages":"Messages","tool_io":"Tool calls","reasoning":"Reasoning","other":"Other"},"categories":{"system":"System prompt","instructions":"Extra instructions","memory":"Memory files","tools":"Tool definitions","mcp":"MCP tools","skills":"Skills","agents":"Custom agents","environment":"Environment","messages":"Messages","tool_io":"Tool calls & results","reasoning":"Reasoning","summary":"Compaction summary","other":"Other"},"notes":{"system_prompt_hidden":"The engine assembles its system prompt internally and does not expose the text; only section names and token counts are listed.","tool_schemas_hidden":"Built-in tools expose names and token counts only, not their schemas.","skills_listing_only":"Skills occupy only their name and description in context; the full body loads when a skill is used.","snapshot_from_last_turn":"The breakdown was recorded at the end of the last turn, not live.","no_snapshot_yet":"No breakdown has been recorded for this session yet; exact numbers appear after the next turn. Showing estimates from the transcript.","reasoning_encrypted":"Some reasoning or compaction content is encrypted: its text cannot be shown and its size cannot be estimated.","after_compaction":"The session has been compacted; only content after the latest compaction is included.","estimated_breakdown":"Per-category token counts are estimates; the total at the top is the engine\'s own number.","usage_unknown":"The engine reported no context size for this session."}}}'),W=JSON.parse('{"common":{"openAsProject":"作为项目打开","save":"保存","cancel":"取消","delete":"删除","close":"关闭","minimize":"最小化","copy":"复制","edit":"编辑","file":"文件","codeMap":"代码地图","diff":"Diff","confirm":"确认","loading":"加载中...","search":"搜索","refresh":"刷新","retry":"重试","submit":"提交","copied":"已复制","saved":"已保存","failed":"失败","noMatch":"无匹配","noData":"无数据","done":"完成","justNow":"刚刚","minutesAgo":"{{count}}分钟前","hoursAgo":"{{count}}小时前","daysAgo":"{{count}}天前","monthsAgo":"{{count}}个月前","yearsAgo":"{{count}}年前","saveFailed":"保存失败","copyFailed":"复制失败","deleteFailed":"删除失败","operationFailed":"操作失败","copiedPath":"已复制路径","copyPath":"复制路径","openInConsole":"在 Console 气泡打开","copyAbsPath":"复制绝对路径","loadMore":"加载更多","noResult":"无匹配结果","selected":"已选择","selectAll":"全选","hint":"提示","confirmBtn":"确定","cancelBtn":"取消","preview":"预览","readable":"可读","previous":"上一个","next":"下一个","all":"全部","input":"输入","result":"结果","line":"行","lines":"行","running":"运行中","connecting":"连接中","connected":"已连接","connectionFailed":"连接失败","builtin":"内置","global":"全局","project":"项目","current":"当前","code":"代码"},"htmlApps":{"tabFiles":"文件","tabRun":"运行","mine":"我的","selectHint":"选择左侧应用,查看它的文件和源码;点「运行」才会运行它(应用拥有完整的命令行权限)。","openFull":"全屏打开(可最小化到侧边栏)","title":"HTML 应用","addTooltip":"添加到 HTML 面板","added":"已添加到 HTML 面板","alreadyAdded":"已添加过","addFailed":"添加失败","add":"添加","adding":"添加中...","addHtmlApp":"添加 HTML 应用","searchPlaceholder":"搜索 HTML 应用...","pathLabel":".html 文件的绝对路径","invalid":"无效","builtin":"内置","noDescription":"无描述","emptyNoApps":"还没有自定义 HTML 应用。","emptyCreatePrefix":"在聊天里使用","emptyCreateSuffix":"创建新应用。","addExisting":"添加已有 HTML 文件","viewDocs":"查看文档","emptyNoMatch":"没有匹配的 HTML 应用。"},"skills":{"addTooltip":"添加到 Skills 面板","added":"已添加到 Skills 面板","alreadyAdded":"已添加过","addFailed":"添加失败","title":"Skills","searchPlaceholder":"搜索 skills...","clearSearch":"清除","addSkill":"添加 Skill","emptyNoSkills":"还没有 skill。","emptyIntroPrefix":"在聊天里使用","emptyIntroSuffix":"把可复用经验整理成 SKILL.md。","emptyNoMatch":"没有匹配的 skill。","viewDocs":"查看文档","pathLabel":"SKILL.md 的绝对路径","pathPlaceholder":"/Users/you/.../skills/foo/SKILL.md","add":"添加","adding":"添加中...","invalid":"无效","builtinGroup":"内置","builtinReadOnly":"内置技能,只读","selectHint":"选择左侧技能,查看它的 SKILL.md","fileTooLarge":"文件超过 1 MB,不预览","fileNotPreviewable":"该文件无法预览(二进制)","copyPath":"复制路径","noDescription":"无描述","previewTitle":"Skill 预览","source":"源码","cannotRead":"无法读取文件。"},"toast":{"savedSuccess":"已保存","saveFailed":"保存失败","copiedName":"已复制: {{name}}","copyFailed":"复制失败","deleteFailed":"删除失败","operationFailed":"操作失败","staged":"已暂存","stageFailed":"暂存失败","unstaged":"已取消暂存","unstageFailed":"取消暂存失败","stagedNFiles":"已暂存 {{count}} 个文件","unstagedNFiles":"已取消暂存 {{count}} 个文件","discardFailed":"放弃变更失败","discardedNFiles":"已放弃 {{count}} 个文件的变更","deletedFile":"已删除文件","discardedChanges":"已放弃变更","pastedFile":"已粘贴: {{name}}","pasteFailed":"粘贴失败","noFileToPaste":"没有可粘贴的文件","createdFile":"已创建文件: {{name}}","createFailed":"创建失败","movedToTrash":"已移动到回收站: {{name}}","copiedPageUrl":"已复制页面地址","copiedDirPath":"已复制目录路径","switchedToBranch":"已切换到 {{branch}}","switchBranchFailed":"切换分支失败","loadBranchFailed":"加载分支列表失败","copiedCommand":"已复制: {{command}}","copiedMessage":"已复制消息","sentToPeer":"已发送到另一栏","sendToPeerFailed":"发送到另一栏失败","forkFailed":"分叉会话失败","excerptFailed":"摘录本轮失败","turnDeleted":"已删除本轮","deleteTurnFailed":"删除本轮失败","copiedUrl":"已复制网址","copiedOutput":"已复制输出","copiedCmd":"已复制命令","copiedComment":"已复制评论","copiedAllComments":"已复制全部评论","copiedFileContent":"已复制文件内容","copiedQA":"已复制 {{count}} 个问答","copiedAllQA":"已复制所有问答","sentQA":"已发送给 AI","readFileFailed":"读取文件失败","fileOutsideProject":"此处无法打开文件预览","reviewCreated":"评审已创建,链接已复制","reviewUpdated":"评审已更新,链接已复制","reviewCreateFailed":"创建评审失败","sharingClosed":"已关闭分享","sharingCloseFailed":"关闭分享失败","linkCopied":"链接已复制","addCommentFailed":"添加评论失败","deleteCommentFailed":"删除评论失败","editCommentFailed":"编辑评论失败","addReplyFailed":"添加回复失败","deleteReplyFailed":"删除回复失败","editReplyFailed":"编辑回复失败","disconnected":"已断开: {{id}}","pluginReloading":"插件重载中...","worktreeCreateSuccess":"Worktree 创建成功: {{name}}","worktreeCreateFailed":"创建 worktree 失败","worktreeLoadFailed":"加载 worktree 列表失败","worktreeDeleted":"Worktree 已删除","worktreeDeleteFailed":"删除 worktree 失败","worktreeLocked":"已锁定","worktreeUnlocked":"已解锁"},"workspace":{"selectProject":"选择一个项目开始","searchProjectPath":"搜索项目路径...","loadingProjects":"加载项目中...","projectNotFound":"未找到项目","sessions":"{{count}} 会话","loadingSessions":"加载会话...","noSessions":"无会话记录","loadingText":"加载中...","openProject":"打开项目","expandSidebar":"展开侧边栏","collapseSidebar":"折叠侧边栏","notes":"笔记","skills":"技能","apps":"应用","settings":"设置","help":"帮助","updateAvailable":"新版本 v{{version}} 可用","copyUpgradeCommand":"复制 cockpit update","updateNow":"立即更新","updating":"正在更新…","updateComplete":"更新完成","updateFailed":"更新失败","updateCardPreparing":"正在准备更新…","updateCardInstalling":"正在下载并安装","updateCardRepairing":"正在修复原生依赖","updateCardUpToDate":"已是最新版本 v{{version}}","updateCardCopyFix":"复制修复命令","updateCardFixCopied":"已复制修复命令","updateCardRollingBack":"安装失败,正在回滚","updateCardRestarting":"正在重启 Cockpit…","updateCardDone":"已更新到 v{{version}}","updateCardElapsed":"已用 {{seconds}} 秒","updateCardBaseline":"上次约 {{seconds}} 秒","updateCardNoLiveStatus":"暂时读不到实时状态,更新仍在进行","updateCardRolledBack":"已回滚到原版本,Cockpit 可正常使用。","updateCardManualHint":"可在终端手动重试:","updateCardLogHint":"日志:{{path}}","updateRestartNote":"Cockpit 将在后台重启。","viewChangelog":"查看变更日志","serverRestarted":"Cockpit 已在后台更新。","serverReloadAfterRestart":"Cockpit 已重启,请重新加载页面。","reloadNow":"刷新","upgradeCommandCopied":"已复制 `cockpit update`","projectNotes":"项目笔记","closeProject":"关闭项目","unsentDraft":"有未发送的输入","bots":"机器人"},"mobile":{"useDesktop":"桌面版","messagePlaceholder":"发消息…","send":"发送","stop":"停止","enableNotifications":"开启通知","disableNotifications":"关闭通知","notifyError":"无法开启通知","useMobile":"手机版","newChat":"新会话","voiceInput":"语音输入","voiceStop":"停止语音输入","voiceListening":"正在听…","voiceDenied":"麦克风权限被拒绝,请在浏览器设置里允许","voiceFailed":"语音输入失败:{{reason}}","voiceUnsupported":"此浏览器无法语音识别,请用键盘上的麦克风听写","quickInstructionsHint":"点一下填入输入框"},"sessions":{"recentSessions":"最近会话","favorites":"收藏会话","titleSingleLine":"标题只能有一行,不能包含换行或 \\\\n","titleNoAt":"标题不能包含 @","titleNotMentionable":"当前标题不能用来 @:{{reason}}。请改个名字","mentionable":"可被 @ 调用","mentionableHint":"勾选后加入 Bots 列表,可在任意会话里用「@标题 任务」把任务派给它","suggestTitle":"让 AI 起个标题","titleSuggestFailed":"生成标题失败:{{reason}}","noFavorites":"暂无收藏会话,在 Tab 栏点击星标可添加","addFavorite":"收藏此会话","removeFavorite":"取消收藏","selectFavoriteHint":"选择左侧收藏,查看它的会话消息","noSessionMessages":"该会话暂无消息,或记录已不存在","selectSessionHint":"选择左侧会话,查看它的消息","dateToday":"今天","dateYesterday":"昨天","dateLast7Days":"最近 7 天","dateEarlier":"更早","runningCount":"{{count}} 运行中","unreadCount":"{{count}} 未读","noSessions":"暂无会话记录","running":"运行中","done":"完成","dragToReorder":"拖动以调整本项目内的顺序","restoreTitle":"恢复默认标题","titleEmpty":"标题不能为空。","titleLoadFailed":"无法读取标题,请关闭后重试。","titleSaveFailed":"保存标题失败,请重试。","editTitle":"编辑标题","projectSessions":"项目会话","browseAllSessions":"浏览所有会话","sessionList":"会话列表","search":"搜索","searchSessions":"搜索会话...","searchRecentSessions":"搜索最近会话","loadSessionsFailed":"加载会话失败","loadingSessions":"加载会话中...","noMatchingSessions":"未找到匹配的会话","noSessionsYet":"暂无会话","projectList":"项目列表","openFolder":"打开文件夹","loadingHistory":"加载历史消息...","sessionsTab":"会话","pullRequestsTab":"PR","searchPullRequests":"搜索 编号 / 链接 / 标题","allRepos":"全部仓库","allEngines":"全部引擎","noPullRequests":"最近会话里还没有开过 PR","noPullRequestsHint":"会话里运行 gh pr create 后,会自动出现在这里","noMatchingPullRequests":"未找到匹配的 PR","selectPullRequestHint":"选择左侧 PR,查看它的会话","pullRequestSessions":"共 {{count}} 个会话","openPullRequest":"打开 PR","copyResumeCommand":"复制 resume","resumeCommandCopied":"已复制:{{command}}","copyFailed":"复制失败"},"scheduledTasks":{"title":"定时任务","aboutToTrigger":"即将触发","secondsLater":"{{count}}秒后","minutesLater":"{{count}}分钟后","hoursMinutesLater":"{{h}}小时{{m}}分后","hoursLater":"{{h}}小时后","onceType":"一次性({{duration}}后)","everyDuration":"每{{duration}}","completed":"已完成","paused":"已暂停","activeCount":"{{running}} 个活跃","pausedCount":"{{paused}} 个暂停","noScheduledTasks":"暂无定时任务,在聊天输入栏点击时钟按钮创建","lastResult":"上次","runNow":"立即运行","deleteFailed":"删除任务失败","resume":"恢复","pause":"暂停","completedCount":"已完成 ({{count}})","pendingCount":"{{count}} 个待查看","openSession":"打开会话","selectTaskHint":"选择左侧任务,查看它的会话消息","noTaskMessages":"该任务的会话暂无消息","success":"成功","failure":"失败","inFlight":"正在运行","interrupted":"已中断","createTask":"创建定时任务","editTask":"编辑定时任务","sendMessage":"发送消息","messagePlaceholder":"输入要发送的消息...","taskFile":"任务文件","taskFilePlaceholder":"/Users/you/project/tasks/daily-report.md","taskFileHint":"填写绝对路径。触发时会让 agent 先读取该文件,再按其中描述执行——文件内容改动下次触发即生效。","taskFilePromptHeader":"请先读取以下任务文件,再据此执行:","type":"类型","once":"一次性","interval":"周期","quickSelect":"快捷选择","customCron":"自定义 Cron 表达式","customDuration":"自定义时长","cronPlaceholder":"例: 0 9 * * 1-5 (工作日9点)","cronFormat":"格式:分 时 日 月 星期(如 0 9 * * 1-5)","amountPlaceholder":"数值","limitTimeRange":"限制执行时段","startAt":"起始时间(可选)","startAtHint":"留空则从现在开始;设置后固定在「起始时间 + N \xd7 间隔」执行,不随运行时长漂移","clear":"清除","fromTime":"自 {{time}} 起","to":"至","saveBtn":"保存 ({{modKey}}↩)","createBtn":"创建 ({{modKey}}↩)","5minLater":"5 分钟后","15minLater":"15 分钟后","30minLater":"30 分钟后","1hourLater":"1 小时后","3hoursLater":"3 小时后","6hoursLater":"6 小时后","1dayLater":"1 天后","3daysLater":"3 天后","every15min":"每 15 分钟","every30min":"每 30 分钟","every1hour":"每 1 小时","every2hours":"每 2 小时","every6hours":"每 6 小时","every12hours":"每 12 小时","everyDay":"每 1 天","daily9am":"每天 09:00","daily6pm":"每天 18:00","weeklyMon9am":"每周一 09:00","monthly1st9am":"每月 1 号 09:00","unit":{"minute":"分钟","hour":"小时","day":"天"},"duration":{"minute":"{{count}}分钟","hour":"{{count}}小时","day":"{{count}}天"}},"runningTerminals":{"title":"终端","status":"{{count}} 个终端 \xb7 {{projects}} 个项目","keys":"↑↓ 选择 \xb7 Enter / 双击 打开 \xb7 Del 停止 \xb7 Esc 关闭","empty":"没有正在运行的终端","currentProject":"当前项目","stop":"停止","confirmStop":"停止这个进程?","stopping":"停止中…","stopFailed":"停止终端失败","openTerminal":"打开终端","typeHint":"点击终端即可输入","modePty":"PTY \xb7 交互式终端","modePipe":"管道 \xb7 仅输出","ended":"已结束","selectHint":"选择左侧终端,查看它的输出","notFound":"没找到这个终端的气泡"},"cron":{"everyNMinutes":"每 {{n}} 分钟","everyNHours":"每 {{n}} 小时整点","everyMinute":"每分钟","everyHourAtMin":"每小时第 {{m}} 分","hourlyEveryMin":"{{h}} 点每分钟","daily":"每天 {{time}}","weekdays":"工作日","weekends":"周末","dowSun":"日","dowMon":"一","dowTue":"二","dowWed":"三","dowThu":"四","dowFri":"五","dowSat":"六","monthPrefix":"月","dayOfMonth":"号","dayRange":"{{a}}号到{{b}}号","weekdayPrefix":"周","weekdayRange":"周{{a}}到周{{b}}"},"blockViewer":{"empty":{"body":"在左侧文件树选择一个文件,查看它的代码地图。","hint":"或按 ⌘K 搜索。"},"fileMode":{"loading":"加载中…","notFound":"该文件未索引(不支持的语言或超出文件上限)。"},"buildProgress":{"listing":"正在扫描文件…","contexts":"正在读取项目配置…","parsing":"正在解析文件","resolving":"正在解析引用关系…","edges":"正在构建调用图…","done":"即将完成…"},"search":{"tooltip":"搜索 (⌘K)","hint":"开始输入以搜索","noResults":"未找到匹配","files":"文件","symbols":"符号"},"viewerToggle":{"toBlock":"显示代码地图","toCode":"返回代码视图"},"tabs":{"toc":"函数列表","history":"跳转记录"},"toc":{"title":"本文件","empty":"未检测到函数。","notIndexed":"该文件未被项目图收录(扩展未支持 / 不在 git 跟踪集 / 超出文件上限)。"},"history":{"title":"最近","empty":"点击左右两侧的 pin 开始追踪调用链。","clear":"清空历史"},"refresh":"重新构建项目图","relationsStale":"项目关联关系需要刷新","retry":"重试"},"blockDiffViewer":{"loading":"正在生成代码地图…","unsupported":"该文件类型暂不支持代码地图 diff","unsupportedHint":"切回常规 diff 视图查看。","error":"代码地图 diff 失败:{{message}}","noBlockChanges":"代码地图无变化(仅格式或空白)。","noBefore":"(新增)","noAfter":"(已删除)","kind":{"added":"新增","deleted":"删除","modified":"修改"}},"fileBrowser":{"directoryTree":"目录树","searchTab":"搜索","recentTab":"最近","changesTab":"变更","historyTab":"历史","searchFiles":"搜索文件...","clear":"清除","exactMatchOn":"全词匹配(已开启)","exactMatchOff":"全词匹配(已关闭)","refreshTree":"刷新目录树","collapseAll":"折叠所有目录","searchFileContent":"搜索文件内容...","caseSensitive":"区分大小写","wholeWord":"完整词","regex":"正则","fileTypes":"文件类型 (ts,tsx)","compareMode":"对比","compareModeOff":"关闭分支对比","compareModeOn":"与选定分支对比","compareScopeHead":"HEAD","compareScopeWorktree":"工作区","compareScopeHeadHint":"仅对比已提交的改动","compareScopeWorktreeHint":"对比包含未提交的改动(已暂存 / 未暂存 / 未跟踪)","createFile":"新建文件","createFileIn":"新建文件 (在 {{path}}/)","fileName":"文件名...","noRecentFiles":"暂无最近浏览的文件","stagingArea":"暂存区 ({{count}})","changesSummary_one":"{{count}} 个变更","changesSummary_other":"{{count}} 个变更","noChanges":"工作区无变更","refreshChanges":"刷新变更列表","unstageAll":"全部取消","noStagedFiles":"无暂存的文件","unstageNFiles":"取消暂存 {{count}} 个文件","unstageFile":"取消暂存","workspace":"工作区 ({{count}})","discardAll":"放弃所有","stageAll":"全部暂存","noUnstagedChanges":"无未暂存的变更","discardNFiles":"放弃 {{count}} 个文件的变更","stageNFiles":"暂存 {{count}} 个文件","discardChanges":"放弃变更","stageFile":"暂存文件","loadingDiff":"加载对比文件中...","noDiffFiles":"无差异文件","nFilesChangedPlain":"{{count}} 个文件变更","nFilesChanged":"{{count}} 个文件变更(vs {{branch}})","nFilesChangedWorktree":"{{count}} 个文件变更(vs {{branch}},含未提交)","noDiffFilesHeadHint":"本分支尚无已提交的改动,切到「工作区」可看到未提交的部分","loadingCommits":"加载提交记录中...","noCommits":"无提交记录","allLoaded":"已加载全部 {{count}} 条记录","locateInTree":"在目录树中定位","unsaved":"未保存","saveBeforeSwitch":"当前文件有未保存的修改,是否保存后切换?","saveAndSwitch":"保存并切换","closeEdit":"关闭编辑 (ESC)","closeBtn":"关闭","copyFileContent":"复制文件内容","toggleJsonReadable":"切换 JSON 可读模式","previewMarkdown":"预览 Markdown 渲染效果","exitPreview":"退出预览","collapseAllJson":"折叠","expandAllJson":"展开","viewBlame":"查看每行代码的修改记录","viewDiff":"查看相对 HEAD 的改动","exitDiff":"退出 Diff","diffLoadFailed":"加载差异失败","editFile":"编辑文件","backToPreview":"返回预览","cannotPreview":"无法预览此文件","selectFileToPreview":"选择文件以预览","staged":"已暂存","unstaged":"未暂存","selectFileToViewDiff":"选择文件查看差异","loadingDiffContent":"加载差异中...","clickCompareToLoad":"点击「对比」加载分支差异","selectCommitToView":"选择提交查看详情","confirmDelete":"确认删除","confirmDeleteMessage":"确定要将 <file>{{name}}</file> 移动到回收站吗?","nFilesNMatches":"{{files}} 个文件,{{matches}} 处匹配","resultsTruncated":"结果已截断","noContentSearchResults":"无匹配结果","enterKeywordToSearch":"输入关键词搜索文件内容","searchMinChars":"搜索内容至少需要 2 个字符"},"csv":{"table":"表格","raw":"原始内容","empty":"空表格","summary":"{{rows}} 行 \xb7 {{cols}} 列","summaryFiltered":"匹配 {{rows}} / {{total}} 行 \xb7 {{cols}} 列","loadMore":"加载更多(已显示 {{shown}} / {{total}})","filterPlaceholder":"筛选内容…","filterColumn":"筛选列","clearFilter":"清除筛选","allColumns":"全部列","noMatch":"没有匹配的行","sortHint":"点击排序(升序 / 降序 / 取消)"},"codeViewer":{"fileModifiedExternally":"文件已被外部修改,保存将覆盖外部更改","useDiskVersion":"使用磁盘版本","forceOverwrite":"强制覆盖","searchPlaceholder":"搜索...","caseSensitive":"区分大小写","wholeWordMatch":"全字匹配","unsavedConfirm":"有未保存的修改,确定关闭?","discardChanges":"放弃修改","continueEditing":"继续编辑","unsavedExitConfirm":"有未保存的修改,确定退出编辑模式?","clickToViewDetails":"点击查看详情","clickToViewCommit":"点击查看 commit 详情","nComments":"{{count}} 条评论","searchChat":"搜索聊天内容...","prevShiftEnter":"上一个 (Shift+Enter)","nextEnter":"下一个 (Enter)","closeEsc":"关闭 (Esc)"},"chat":{"commandRefs":"附带 {{count}} 个引用","commandRef_read":"读取","commandRef_handoff":"转交","commandRef_handoffMixed":"转交","commandRef_targets":"目标","commandRef_inline":"内嵌","originSent":"来自 {{project}} 的 @ 消息","originDelegated":"由 {{project}} 委派","originUnknown":"另一个会话","decisionContextAttached":"附带了 {{count}} 条相关决策","codexInput":{"queued":"追加消息等待发送","accepted":"Codex 已接受追加消息","failed":"追加消息发送失败或未确认,请打开详情查看","images":"图片:{{count}} 张"},"recoveryCopy":"失败运行的恢复副本","recoveryCopyHint":"这是运行期间观察到的内容的临时副本,可能与已保存的历史重复,不会发送给模型。仅在本对话保持打开期间保留。","recoveryCopiesLabel":"失败运行的恢复副本","recoveryAttachment":"恢复副本附件","startConversation":"开始对话吧","loadMoreHistory":"加载更多...","scrollUpForMore":"↑ 向上滚动加载更多历史","jumpToStart":"跳转到开始","jumpToLatest":"跳转到最新","jumpToPrevUserMessage":"上一条用户消息","jumpToNextUserMessage":"下一条用户消息","recentUserMessages":"最近的用户消息","moreUserMessages":"更多","userMessage":"用户消息","recentUserMessageNumber":"最近用户消息 {{index}}/{{total}}","imageMessage":"图片消息","copyMessage":"复制消息","copyImage":"复制图片","copiedImage":"已复制图片","forkSession":"从此处分叉会话","excerptTurn":"摘录本轮到新会话","newSession":"新建会话","continueFromHere":"延续到此处","continueFromHereDesc":"保留截至本轮的全部上下文","onlyThisTurn":"仅提取本轮","onlyThisTurnDesc":"只带这一轮问答","onlyThisTaskDesc":"保留整个任务,包含全部 {{count}} 条输入及回答","deleteTurn":"删除本轮","deletingTurn":"正在删除…","deleteTurnConfirm":"确定删除这一轮的问题、回答及工具记录吗?此操作无法撤销。","deleteTaskConfirm":"本任务包含 {{count}} 条用户输入(含追加输入)。确定删除整个任务的全部输入、回答及工具记录吗?此操作无法撤销。","deleteTurnConfirmAction":"删除本轮","deleteTurnWhileRunning":"会话运行期间不能删除","sendToPeerPane":"发送本条消息到另一栏","imageN":"图片 {{index}}","imagePreview":"图片预览","imageLoadFailed":"无法加载此图片","toolCalls":"{{count}} 个工具调用","collapse":"▲ 收起","expand":"▼ 展开","showMore":"显示更多","showLess":"收起","subagent":"子代理","piChildStatus":{"interrupted":"中断快照","truncated":"已截断","running":"运行中","done":"已完成","failed":"失败","cancelled":"已取消"},"subagentEmpty":"未找到子代理消息记录","subagentViewTitle":"查看子代理执行过程","workflowRun":"运行详情","workflowViewTitle":"查看工作流运行详情","workflowEmpty":"未找到工作流运行记录","workflowAgents":"个代理","workflowViewAgent":"查看","workflowUngrouped":"未分组","viewQuestions":"查看提问","viewAllFileChanges":"查看所有文件变更","requestFailed":"请求失败","cannotReadStream":"无法读取响应流","errorRetry":"发生错误,请重试","codexResumeFailed":"原会话被其他 Codex 客户端占用,已新建会话,历史未继承","codexResumeFailedPrevious":"原会话","codexResumeFailedNew":"新会话","codexContextCompacting":"Codex 正在压缩上下文…","placeholder":"输入消息,/ 调用 skill,@ 调用机器人","placeholderDisabled":"生成中... 可继续输入 (ESC 取消;卡住太久可取消后重发「继续」)","placeholderRunning":"生成中... 回车即发送,会在当前回复的下一步插入(ESC 停止)","imageSizeLimit":"图片大小超过限制(最大 5MB),当前大小: {{size}}MB","viewGitChanges":"查看 Git 变更","viewAllComments":"查看所有评论","userMessages":"用户消息列表","projectNotes":"项目笔记","scheduledTasks":"定时任务","quickInstructions":"快捷指令","globalInstructions":"全局指令","projectInstructions":"项目指令","noQuickInstructions":"暂无快捷指令","addQuickInstruction":"新增快捷指令","quickInstructionPlaceholder":"输入一句话指令,Enter 保存,Esc 取消","insertQuickInstruction":"填入输入框(不发送)","addInstructionGroup":"新增分组","instructionGroupNamePlaceholder":"输入分组名,Enter 保存,Esc 取消","instructionGroupLabel":"所属分组","instructionGroupNone":"不分组","deleteInstructionGroupConfirm":"删除分组「{{name}}」会同时删除组内 {{count}} 条指令,确定继续?","editGlobalInstructions":"编辑全局指令","editProjectInstructions":"编辑项目指令","quickInstructionsMarkdownHint":"一级内容每行一条;分组名称后的「- 」开头行是该分组的子命令;单条指令内的换行用 \\\\n 表示。","quickInstructionsMarkdownPlaceholder":"按推荐实施\\n用文本画图\\n- 画一个登录流程\\n- 画一个系统架构","quickInstructionsMarkdownError":"第 {{line}} 行格式不正确。","savingQuickInstructions":"保存中...","saveQuickInstructionsFailed":"保存失败,修改仍然保留,请重试。","context":"上下文","output":"输出","copiedCommandTooltip":"已复制!","copyCommandTooltip":"复制命令: {{command}}","executedCommand":"执行了 `{{command}}`{{exitInfo}},输出:\\n```\\n{{output}}\\n```","executedCommandFailed":"执行 `{{command}}` 失败:{{error}}","executionMode":"执行模式","checkBalance":"查询余额","balanceFailed":"查询失败,请检查 API Key","balanceNeedsKey":"请先配置 DeepSeek API Key","balanceUnavailable":"账户当前不可用","balanceEmpty":"接口未返回余额","openUsagePage":"打开 DeepSeek 用量控制台","checkQuota":"查询额度","quotaFailed":"额度查询失败,请检查 API Key","quotaNeedsKey":"请先设置 API Key","quotaEmpty":"未返回额度信息","quotaResetAt":"{{time}} 重置","openProviderConsole":"打开服务商控制台","planMode":"计划模式","planModeDesc":"只读,先出计划不改代码","planModeOn":"已开启计划模式——只读;发一个任务即可拿到计划","planModeOff":"已关闭计划模式","planModeHint":"计划模式:只读探索、产出计划但不改文件。取消勾选后重发才会实现。","noHistory":"不带历史上下文","noHistoryDesc":"每次提问均独立","noHistoryHint":"不带历史上下文:每条消息单独发给模型,不带之前的对话。上方的会话记录照常保留。","planTitle":"计划(待你确认)","approvePlan":"批准并执行","planApproveHint":"本环境无审批弹窗,点此退出计划模式并执行","approvePlanPrompt":"已批准,按上述计划开始执行。","maximizePane":"放大本栏","restorePane":"还原双栏","closePane":"关闭本栏","singlePane":"切回单栏","splitPane":"并排双栏"},"console":{"enterCommandOrUrl":"输入命令或网址开始使用","emptyIntro":"在下方输入框输入以下内容,即可创建对应气泡:","bubbleCommand":"命令","bubbleInteractive":"交互终端","bubbleBrowser":"浏览器","bubbleBrowserNoteIframe":"部分网站会拦截 iframe 嵌入,请在「设置 → 浏览器插件」安装 Cockpit Bridge 后再打开。","bubbleBrowserNoteCookie":"已登录的网站若首次显示未登录,多刷新几次即可恢复。","bubbleDatabase":"数据库","bubbleFilePreview":"文件预览","loadingMore":"加载中...","loadMoreHistory":"加载更多历史","quickCommands":"快捷命令","singleColumn":"单列布局","dualColumn":"双列布局","envVars":"环境变量","launchShell":"启动交互终端","htmlApps":"HTML 应用","inputPlaceholder":"输入命令或网址并按 Enter... (↑↓ 历史, Tab 补全)","scopeProject":"项目","scopeGlobal":"全局","tabSwitchEscClose":"Tab 切换 \xb7 Esc 关闭","copyOutput":"复制输出","copyCommand":"复制命令","rerun":"重新运行","deleteRecord":"删除记录","searchPlaceholder":"搜索...","searchMode":"搜索","filterMode":"过滤","prevShiftEnter":"上一个 (Shift+Enter)","nextEnter":"下一个 (Enter)","loadingTerminal":"加载终端...","clickToInput":"点击终端区域输入","stdinPlaceholder":"stdin 输入...","runningText":"运行中...","exitCode":"退出代码: {{code}}","totalLines":"共 {{count}} 行","globalCommands":"全局命令","projectCommands":"项目命令","noCustomCommands":"暂无自定义命令","editGlobalCommands":"编辑全局命令","editProjectCommands":"编辑项目命令","quickCommandsTextHint":"每行一条,格式为「名称: 命令」;名称只能包含字母、数字、- 和 _,第一个冒号之后都是命令。","quickCommandsTextPlaceholder":"pg: psql -h localhost -U postgres\\ngitpull: git pull --rebase","quickCommandsTextError":"第 {{line}} 行格式不正确,应为「名称: 命令」。","savingQuickCommands":"保存中...","saveQuickCommandsFailed":"保存失败,修改仍然保留,请重试。","restoreTooltip":"还原 ({{modKey}}M / ESC)","screenshotting":"截图中...","outputFileDeleted":"[输出文件已删除]"},"browser":{"blankPage":"空白页","copyUrl":"复制网址","openInNewWindow":"在新窗口打开","exitMaximize":"退出最大化 ({{modKey}}M)","maximize":"最大化 ({{modKey}}M)","pageLoadFailed":"页面加载失败","openInTabFallback":"OpenCockpit Bridge 未连接,已改用普通新标签页打开","movedToChrome":"网页现在在 Chrome 标签页中打开,不再放在 Console 里。","openInChrome":"在 Chrome 中打开","openedInChrome":"已在 Chrome 中打开 —— {{command}}","clickToWake":"点击唤醒","sleeping":"已休眠","loadingPage":"加载中...","loadFailed":"加载失败"},"database":{"connectionFailed":"连接失败","connected":"已连接","connecting":"连接中...","refreshTableList":"刷新表列表","filterTable":"T 表","filterView":"V 视图","noTables":"无表","tabStructure":"结构","tabData":"数据","tabSql":"SQL","filterActive":"筛选: {{count}}列","clearAllFilters":"清除所有筛选","deleteNRows":"删除 {{count}} 行","confirmDeleteRows":"确认删除?","copyCsvSelected":"复制选中行为 CSV","copyCsvAll":"导出全表 CSV","copyJsonSelected":"复制选中行为 JSON","copyJsonAll":"导出全表 JSON","copyCSV":"复制 CSV","CSV":"CSV","copyJSON":"复制 JSON","JSON":"JSON","selectTable":"选择左侧表格","selectTableToView":"选择表以查看结构","selectTableForData":"选择表以查看数据","columns":"列","colName":"名称","colType":"类型","colNullable":"可空","colDefault":"默认值","primaryKey":"主键","foreignKeys":"外键","indexes":"索引","enable":"启用","commaValues":"逗号分隔多值","likePattern":"%pattern%","valuePlaceholder":"值","apply":"应用","clearFilter":"清除","addRow":"+ 新增行","totalRows":"{{count}} 行","rowsAffected":"{{command}} — {{count}} 行受影响 ({{duration}}ms)","queryRows":"{{count}} 行 ({{duration}}ms)","resultTruncated":"[结果已截断至1000行]","sqlPlaceholder":"输入 SQL... ({{modKey}}Enter 执行)","executing":"执行中...","execute":"▶ 执行","deleteRowsFailed":"{{count}} 行删除失败","inputParams":"输入参数","resultLabel":"结果"},"mysql":{"connectionFailed":"连接失败","connected":"已连接","connecting":"连接中...","refreshTableList":"刷新表列表","filterTable":"T 表","filterView":"V 视图","noTables":"无表","tabStructure":"结构","tabData":"数据","tabSql":"SQL","filterActive":"筛选: {{count}}列","clearAllFilters":"清除所有筛选","deleteNRows":"删除 {{count}} 行","confirmDeleteRows":"确认删除?","copyCsvSelected":"复制选中行为 CSV","copyCsvAll":"导出全表 CSV","copyJsonSelected":"复制选中行为 JSON","copyJsonAll":"导出全表 JSON","copyCSV":"复制 CSV","CSV":"CSV","copyJSON":"复制 JSON","JSON":"JSON","selectTable":"选择左侧表格","selectTableToView":"选择表以查看结构","selectTableForData":"选择表以查看数据","columns":"列","colName":"名称","colType":"类型","colNullable":"可空","colDefault":"默认值","primaryKey":"主键","foreignKeys":"外键","indexes":"索引","enable":"启用","commaValues":"逗号分隔多值","likePattern":"%pattern%","valuePlaceholder":"值","apply":"应用","clearFilter":"清除","addRow":"+ 新增行","totalRows":"{{count}} 行","rowsAffected":"{{command}} — {{count}} 行受影响 ({{duration}}ms)","queryRows":"{{count}} 行 ({{duration}}ms)","resultTruncated":"[结果已截断至1000行]","sqlPlaceholder":"输入 SQL... ({{modKey}}Enter 执行)","executing":"执行中...","execute":"▶ 执行","deleteRowsFailed":"{{count}} 行删除失败"},"redis":{"neverExpires":"永不过期","expired":"已过期","loadFailed":"加载失败","deleteFailed":"删除失败","saveFailed":"保存失败","scanPlaceholder":"SCAN 模式...","scanSearch":"搜索 (SCAN)","noKeys":"无 key","loadMore":"加载更多...","tabData":"数据","tabInfo":"信息","tabCli":"CLI","selectKey":"选择左侧 Key","keyNotExist":"Key 不存在","unsupportedType":"不支持的类型: {{type}}","nItems":"{{total}} items","showingN":"显示 {{count}}","nMembers":"{{total}} members","nEntries":"{{total}} entries","cliHint":"输入 Redis 命令,如 PING, GET key, KEYS *","cliPlaceholder":"输入命令..."},"git":{"switchBranch":"切换分支","searchBranch":"搜索分支...","noBranches":"无可切换分支","noMatchingBranches":"无匹配分支","localBranches":"本地分支","remoteBranches":"远程分支","branchNotFound":"未找到分支","selectBranch":"选择分支...","currentBranch":"当前","notGitRepo":"当前目录不是 Git 仓库","cannotGetBranches":"无法获取分支信息","getBranchesFailed":"获取分支信息失败","discardAllConfirm":"确定要放弃工作区的 {{count}} 个文件的变更吗?此操作不可恢复。","worktree":{"title":"Git Worktree","count":"{{count}} 个 worktree","selectBranch":"选择分支","addWorktree":"+ 添加 Worktree","confirmDelete":"确认删除","confirmDeleteMsg":"确定要删除 worktree 吗?","path":"路径:","branch":"分支:","locked":"已锁定","unlock":"解锁","lock":"锁定","searchBranch":"搜索分支...","noBranches":"无可用分支"}},"comments":{"addComment":"添加评论","lineRange":"行 {{start}}-{{end}}","inputPlaceholder":"输入评论...","newComment":"新评论 {{range}}","commentPlaceholder":"输入评论... ({{modKey}}Enter 提交, Esc 取消)","nComments":"{{count}} 条评论","allComments":"所有评论","copyAllComments":"复制全部评论","noComments":"暂无评论","clearAll":"清空所有","totalComments":"共 {{count}} 条评论","aiReply":"AI 回复","noContent":"(无内容)","linesCount":"({{count}} 行)","codeRef":"以下是我标注的评论和引用:","note":"备注: {{content}}","submitting":"提交中...","enterSubmit":"Enter 提交 \xb7 Shift+Enter 换行","submitComment":"提交评论","askAI":"提问 AI","inputQuestion":"输入你的问题...","aiGenerating":"正在生成中,请稍候...","enterSend":"Enter 发送 \xb7 Shift+Enter 换行","sendToAI":"发送 AI","aiResponding":"AI 正在响应中..."},"fileContextMenu":{"createFile":"新建文件","copyFile":"复制文件","copyFolder":"复制文件夹","pasteHere":"粘贴到此处","deleteFile":"删除文件","deleteFolder":"删除文件夹","copyRelativePath":"复制相对路径","copyAbsolutePath":"复制绝对路径","copyRelativeDirPath":"复制相对文件夹路径","copyAbsoluteDirPath":"复制绝对文件夹路径","copyFileName":"复制文件名","copyFolderName":"复制文件夹名"},"settings":{"title":"设置","theme":"主题","themeLight":"浅色","themeDark":"深色","themeSystem":"跟随系统","browserExtension":"浏览器插件","extensionInstalled":"OpenCockpit Bridge 已连接","extensionNotInstalled":"OpenCockpit Bridge 未连接","extensionDescription":"让 `cockpit browser` 能操作你的 Chrome 标签页和 Console 里的浏览器气泡。每个标签页都有 id(在插件小面板和图标的悬停提示里);Cockpit 操作一个你还没允许的标签页前会先问你,按标签页逐个授权。","installSteps":"安装步骤:","step1":"1. 打开 Chrome 地址栏输入","step2":"2. 开启右上角「开发者模式」","step3":"3. 点击「加载已解压的扩展程序」","step4mac":"4. 按 <kbd>Cmd+Shift+G</kbd> → 粘贴下方路径 → 回车","copyExtensionPath":"复制插件目录路径","reloadExtension":"重载插件","about":"关于","language":"语言","languageAuto":"跟随系统","switchDark":"切换暗色","switchLight":"切换亮色","agentsBundled":"内置","codexSection":"Codex","codexSuggestions":"预测下一句","codexSuggestionsDescription":"每轮回复后让 Codex 猜你下一句要说什么,显示在输入框里(按 Tab 采用)。每轮会多一次小请求。"},"editor":{"placeholder":"写点什么... 输入 / 打开快捷命令","noteTitle":"{{name}} - 笔记","noteUntitled":"笔记","globalNote":"全局笔记","emptyNote":"空笔记","searchNotes":"搜索笔记...","saving":"保存中...","conflictReloaded":"笔记已被其他地方修改,已加载最新版本,刚才未保存的编辑已丢弃","linkPlaceholder":"输入链接地址...","confirmLink":"确认","removeLink":"移除链接","heading1":"标题 1","heading2":"标题 2","heading3":"标题 3","bold":"粗体","italic":"斜体","strikethrough":"删除线","inlineCode":"行内代码","link":"链接","bulletList":"无序列表","orderedList":"有序列表","taskList":"待办列表","blockquote":"引用","codeBlock":"代码块","table":"表格","horizontalRule":"分割线","insertRowAbove":"在上方插入行","insertRowBelow":"在下方插入行","insertColumnLeft":"在左侧插入列","insertColumnRight":"在右侧插入列","deleteRow":"删除当前行","deleteColumn":"删除当前列","deleteTable":"删除表格","deleteCodeBlock":"删除代码块","toc":"目录","expandToc":"展开目录","collapseToc":"收起目录"},"slashCommands":{"heading1":"标题 1","heading1Desc":"大标题","heading2":"标题 2","heading2Desc":"中标题","heading3":"标题 3","heading3Desc":"小标题","bulletList":"无序列表","bulletListDesc":"项目符号列表","orderedList":"有序列表","orderedListDesc":"编号列表","taskList":"待办列表","taskListDesc":"可勾选的任务列表","blockquote":"引用","blockquoteDesc":"引用块","codeBlock":"代码块","codeBlockDesc":"代码片段","table":"表格","tableDesc":"插入 3\xd73 表格","horizontalRule":"分割线","horizontalRuleDesc":"水平分割线","link":"链接","linkDesc":"插入超链接"},"commands":{"plan":"开启计划模式 \xb7 /plan <任务> 直接规划该任务 \xb7 /plan off 关闭"},"markdown":{"copied":"✓ 已复制","copy":"复制"},"imagePreview":{"previewImage":"预览图片","deleteImage":"删除图片","copyImage":"复制图片","copiedImage":"已复制图片"},"tokenStats":{"title":"Claude Code Token 统计","activeHours":"活跃时段分布","hourSessions":"{{h}}:00 — {{count}} 次会话","messages":"消息","toolCalls":"工具调用","activityTrend":"活动趋势","byModel":"按模型","tokenUsage":"Token 用量","equivalentCost":"等效费用","modelCostDetail":"模型费用明细","model":"模型","share":"占比","total":"合计","totalSessions":"总会话","totalMessages":"总消息","equivalentApiCost":"等效 API 费用","longestSession":"最长会话","firstUse":"首次使用","notFound":"未找到 ~/.claude/stats-cache.json","day":"日","week":"周","month":"月"},"toolCall":{"inputParams":"输入参数","resultLabel":"结果","inputParamsTitle":"查看输入参数","resultTitle":"查看结果","input":"输入","result":"结果","details":"详细","detailsTitle":"查看输入与结果","foldedLines":"... ({{count}} 行)"},"fileEditor":{"unsavedConfirm":"有未保存的修改,确定关闭?","discardChanges":"放弃修改","continueEditing":"继续编辑","externallyModified":"文件已被外部修改,保存将覆盖外部更改","useDiskVersion":"使用磁盘版本","forceOverwrite":"强制覆盖"},"quickFileOpen":{"placeholder":"输入文件名快速打开...","noMatch":"没有匹配的文件","recent":"最近","selectHint":"选择","openHint":"打开","closeHint":"关闭"},"envManager":{"title":"环境变量管理","tabScope":"当前 Tab 专用","globalScope":"全局环境变量","varNamePlaceholder":"变量名(如 NODE_ENV)","varValuePlaceholder":"值(如 production)","valuePlaceholder":"值","noVars":"还没有环境变量,添加一个试试"},"aliasManager":{"title":"命令别名管理","description":"为常用命令设置快捷别名(全局生效)","aliasPlaceholder":"别名(如 ll)","commandPlaceholder":"完整命令(如 ls -la)","fullCommandPlaceholder":"完整命令","usage":"使用提示:","usageDesc":"输入别名即可执行对应的完整命令","noAliases":"还没有命令别名,添加一个试试"},"diffViewer":{"fileChanges":"文件变更 ({{count}})","expandFull":"扩展到全屏","exitFull":"回到分栏","toggleFileTree":"切换文件目录","selectFileToView":"选择左侧文件查看变更","sideBySide":"并列对比","unified":"统一对比","viewSplit":"双栏","viewUnified":"单栏","previewFile":"预览文件","copiedAll":"已复制全文","compact":"精简","full":"全文","gap":{"hidden":"已隐藏 {{count}} 行","more":"\xb7\xb7\xb7 更多 +{{count}} \xb7\xb7\xb7","expandUp":"向上展开 {{count}} 行","expandDown":"向下展开 {{count}} 行","expandAll":"点击展开 {{count}} 行"},"loadingSnapshots":"正在加载快照…","loadingFile":"正在加载文件差异…","fileLoadFailed":"无法加载文件差异","noChanges":"本轮未检测到文件变更","notViewable":"二进制或超大文件,无法展示 diff","externalChange":"同期其他会话/外部进程的变更","reconstructed":"参数重建","reconstructedHint":"由工具调用参数重建,非磁盘快照","truncated":"文件过多,仅显示部分","aggregate":"汇总","aggregateOn":"查看全部调用的累计变更","aggregateOff":"返回逐次调用","fileChangesAggregate":"文件变更 ({{count}}) \xb7 汇总","aggregateSummary":"{{count}} 个文件变更({{calls}} 次调用累计)","aggregateLoading":"正在汇总变更…","aggregateEmpty":"累计后无净变更","aggregateUnavailable":"无快照,无法汇总","aggregateFailed":"汇总失败","aggregateBaselineSkipped":"已跳过 {{count}} 次基线级调用","aggregateBaselineIncluded":"已计入 {{count}} 次基线级调用","callsBaselineHidden":"已隐藏 {{count}} 次基线级调用","callsBaselineShown":"已显示 {{count}} 次基线级调用","aggregateSkippedHint":"这些调用改动的文件数超过 {{threshold}},通常是切换分支 / rebase 而非编写代码。点击切换是否计入","imageBefore":"变更前","imageAfter":"变更后","imageAdded":"新增","imageDeleted":"已删除","imageLoadFailed":"图片加载失败","imageUnavailable":"该版本无此图片"},"commitDetail":{"title":"提交详情","hash":"哈希:","author":"作者:","date":"日期:","files":"文件:","nChanges":"{{count}} 个变更","loadingFiles":"加载文件中...","noFileChanges":"无文件变更","loadingDiff":"加载差异中...","selectFileToView":"选择文件查看差异"},"askQuestion":{"title":"提问","nQuestions":"{{count}} 个问题","checkedN":"已勾选 {{count}}","copyChecked":"复制勾选的 {{count}} 个问答","copyAll":"复制所有问答","sendChecked":"发送勾选的 {{count}} 个问答给 AI","sendAll":"发送所有问答给 AI","sendNoChat":"没有可用的聊天会话","checkToCopy":"勾选以复制","custom":"自定义","customPlaceholder":"输入自定义回答...","notSelected":"(未选择)"},"tabBar":{"closeTab":"关闭会话","closeAll":"关闭所有会话","newTab":"新会话"},"tabManagerTopBar":{"copyPageUrl":"复制页面地址","copyDirPath":"复制目录路径","refreshProject":"刷新当前项目","openInVSCode":"在 VS Code 中打开","openInCursor":"在 Cursor 中打开","aliasesGlobal":"命令别名(全局)","tokenStats":"Token 统计","openSurething":"打开 Surething","openOnPhone":"在手机上打开","phoneQrHint":"用手机扫码打开 Cockpit","phoneQrSessionHint":"用手机扫码打开当前会话","phoneQrTokenWarning":"二维码包含访问令牌,请勿外传","phoneQrFailed":"二维码生成失败"},"hoverTooltip":{"findReferences":"查找引用","search":"搜索"},"todoViewer":{"title":"任务列表","progress":"{{completed}} / {{total}} 完成"},"userMessages":{"title":"用户消息列表","noMessages":"暂无用户消息","searchPlaceholder":"搜索用户消息…","noResults":"没有匹配的消息","loadFailed":"加载失败","count":"{{shown}} / {{total}} 条","jumping":"正在加载该消息所在的对话…"},"shortIdBadge":{"clickToDisconnect":"点击断开连接","clickToRegister":"点击注册并复制 CLI 命令","setTitle":"给这个气泡命名(便于 /cc 通过 connection list 找到它)","setTitlePlaceholder":"设置标题","editTitle":"编辑标题","titleSet":"标题:{{title}}","dialogTitle":"给气泡命名","dialogPlaceholder":"例如:alloydb 代理、预发管理后台"},"api":{"pathForbidden":"不允许操作此路径","deleteForbidden":"不允许删除此路径","notAFolder":"目标不是文件夹","imageTooLarge":"图片文件过大,无法预览","cannotPreviewBinary":"无法预览二进制文件","fileTooLarge":"文件过大,无法预览(超过 10MB)","fileModifiedExternally":"文件已被外部修改"},"folderPicker":{"title":"打开文件夹","placeholder":"输入或粘贴路径,如 ~/Work/my-app","open":"打开","showHidden":"显示隐藏目录","hint":"↑↓ 选择 \xb7 Tab/回车 进入 \xb7 ⌘/Ctrl+回车 打开","empty":"没有子文件夹","noMatch":"没有匹配的文件夹","notFound":"文件夹不存在","notDirectory":"不是文件夹","denied":"没有访问权限。macOS 上请在 系统设置 › 隐私与安全性 中授权。"},"confirm":{"title":"提示","ok":"确定","cancel":"取消"},"floatingToolbar":{"addComment":"添加评论","sendToAI":"发送 AI","search":"搜索"},"quickReply":{"optionA":"A","optionB":"B","optionC":"C","optionD":"D","allRecommended":"其他按推荐","thisOne":"就这个","notThis":"不要这样","why":"为什么","elaborate":"展开说","example":"举个例子","start":"开始做","continue":"继续","ok":"OK","done":"做完了","edit":"编辑快捷短语","editTitle":"编辑快捷短语","editHint":"一行对应面板的一行,行内用逗号分隔。每个短语会原样发送到对话。","editPlaceholder":"就这个,不要这样\\n为什么,展开说","restoreDefault":"恢复默认","save":"保存","cancel":"取消","customizedFor":"当前编辑的是{{lang}}短语,另一种语言不受影响。","langEn":"英文","langZh":"中文","saveFailed":"保存快捷短语失败"},"searchResults":{"title":"搜索结果","nMatches":"({{count}} 处匹配)","searching":"搜索中...","noResults":"无匹配结果","scopeSelected":"选中","scopeAll":"全部"},"references":{"title":"引用","searching":"搜索中...","notFound":"未找到引用"},"gitFileTree":{"noFiles":"无文件"},"deps":{"action":"依赖关系","none":"无","symbolMessage":"分析 {{name}} ({{path}}:{{lines}}) 的依赖关系。\\n\\n调用者:{{callers}}\\n调用了:{{callees}}\\n外部依赖:{{externals}}\\n\\n请说明它耦合在哪些模块上,以及哪些依赖是可以收敛掉的。"},"explain":{"action":"解释一下","fileMessage":"解释一下 {{path}}","symbolMessage":"解释一下 {{name}} ({{path}}:{{lines}})","selectionMessage":"解释一下","commitFileMessage":"解释一下 git commit {{hash}} 对 {{path}} 的改动","compareFileMessage":"解释一下 git {{base}}...HEAD 中 {{path}} 的改动","compareFileWorktreeMessage":"解释一下 {{path}} 相对 {{base}} 的改动(含未提交的部分)","stagedFileMessage":"解释一下 git 暂存区中 {{path}} 的改动","unstagedFileMessage":"解释一下 git 工作区中 {{path}} 的改动"},"bots":{"sessionBadge":"会话","sessionGroup":"会话 Bot","sessionGroupHint":"在会话的改名框里勾选「可被 @ 调用」的会话;@ 它会把任务发进这个会话","sessionGone":"会话已不存在","sessionNameInvalid":"标题不能用作名字(多行或含 @),改个名字才能 @","sessionUsage":"在任意会话里写「@{{name}} 任务」把任务发进这个会话","removeSession":"移出 Bots","title":"机器人","search":"搜索机器人","addExisting":"添加机器人","addTooltip":"添加为机器人","emptyNoMatch":"没有匹配的机器人。","emptyNoBots":"还没有你自己的机器人。","emptyCreatePrefix":"在聊天里使用","emptyCreateSuffix":"创建一个。","emptyAddExisting":"添加已有的机器人目录","invalid":"无效","builtin":"内置","mine":"我的","tabFiles":"文件","tabSessions":"会话","noSessions":"最近没有这个机器人的会话","sessionsScope":"在它目录里运行的全部会话,以及它最近派发出去的会话","selectHint":"选择左侧机器人,查看它的文件和会话","remove":"移除注册","open":"作为项目打开","pathPlaceholder":"机器人目录或其 BOT.md 的绝对路径","addHint":"目录中必须包含 BOT.md,不会改动其中的文件。","added":"机器人已添加","alreadyAdded":"已添加过","removed":"已移除机器人注册,目录文件仍保留。","loadFailed":"加载机器人失败","saveFailed":"添加机器人失败","removeFailed":"移除机器人失败"},"contextInspector":{"title":"会话上下文","open":"查看上下文内容","used":"已用","window":"窗口","free":"剩余","unknownWindow":"窗口大小未知","capturedAt":"统计于 {{time}}","refresh":"刷新","loadFailed":"读取上下文失败","noSession":"会话还没有开始,暂无上下文","empty":"没有可展示的上下文条目","selectItem":"点左侧条目查看具体内容","noContent":"该引擎没有暴露这一项的原文,只有名称和 token 数","truncated":"内容过长,只显示前 {{count}} 个字符","estimated":"≈ 为按字符估算","items":"{{count}} 项","copy":"复制","copied":"已复制","groups":{"prompt":"提示词","memory":"记忆文件","tools":"工具","skills":"Skills 与 Agents","messages":"消息","tool_io":"工具调用","reasoning":"推理","other":"其他"},"categories":{"system":"System prompt","instructions":"附加指令","memory":"记忆文件","tools":"工具定义","mcp":"MCP 工具","skills":"Skills","agents":"自定义 Agents","environment":"环境信息","messages":"对话消息","tool_io":"工具调用与结果","reasoning":"推理内容","summary":"压缩摘要","other":"其他"},"notes":{"system_prompt_hidden":"System prompt 由引擎内部拼接,不对外提供原文,这里只列出各段名称和 token 数。","tool_schemas_hidden":"内置工具只提供名称和 token 数,不提供 schema 原文。","skills_listing_only":"Skills 在上下文里只占名称和描述;完整内容要等调用时才加载。","snapshot_from_last_turn":"分类数据是上一轮结束时记录的,不是实时数据。","no_snapshot_yet":"这个会话还没有记录过分类快照,下一轮对话结束后会有精确的分类数据;当前显示的是从记录中估算的结果。","reasoning_encrypted":"部分推理或压缩内容是加密的,看不到原文,也无法估算大小。","after_compaction":"会话已压缩过,这里只包含最近一次压缩之后的内容。","estimated_breakdown":"各分类的 token 数是估算值,顶部的总数以引擎上报为准。","usage_unknown":"引擎没有上报这个会话的上下文大小。"}}}');U.isInitialized||U.init({resources:{en:{translation:V},zh:{translation:W}},lng:"en",fallbackLng:"en",interpolation:{escapeValue:!1}});let X=U},33873:a=>{a.exports=require("path")},34631:a=>{a.exports=require("tls")},38616:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{DELETE:()=>e.SJ,GET:()=>e.fG,PATCH:()=>e.D9,POST:()=>e.LO,dynamic:()=>e.OR,runtime:()=>e.fA});var e=c(6727),f=a([e]);e=(f.then?(await f)():f)[0],d()}catch(a){d(a)}})},41204:a=>{a.exports=require("string_decoder")},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},48161:a=>{a.exports=require("node:os")},51181:a=>{a.exports=require("web-push")},51455:a=>{a.exports=require("node:fs/promises")},52690:(a,b,c)=>{c.r(b),c.d(b,{handler:()=>z,patchFetch:()=>y,routeModule:()=>u,serverHooks:()=>x,workAsyncStorage:()=>v,workUnitAsyncStorage:()=>w});var d=c(19225),e=c(84006),f=c(8317),g=c(99373),h=c(34775),i=c(24235),j=c(261),k=c(54365),l=c(90771),m=c(73461),n=c(67798),o=c(92280),p=c(62018),q=c(45696),r=c(47929),s=c(86439),t=c(37527);let u=new d.AppRouteRouteModule({definition:{kind:e.RouteKind.APP_ROUTE,page:"/api/scheduled-tasks/route",pathname:"/api/scheduled-tasks",filename:"route",bundlePath:"app/api/scheduled-tasks/route"},distDir:".next-prod",relativeProjectDir:"",resolvedPagePath:"/home/runner/work/cockpit/cockpit/src/app/api/scheduled-tasks/route.ts",nextConfigOutput:"",userland:()=>c(38616),...{}}),{workAsyncStorage:v,workUnitAsyncStorage:w,serverHooks:x}=u;function y(){return(0,f.patchFetch)({workAsyncStorage:v,workUnitAsyncStorage:w})}async function z(a,b,c){c.requestMeta&&(0,g.setRequestMeta)(a,c.requestMeta),u.isDev&&(0,g.addRequestMeta)(a,"devRequestTimingInternalsEnd",process.hrtime.bigint());let d="/api/scheduled-tasks/route";"/index"===d&&(d="/");let f=await u.prepare(a,b,{srcPage:d,multiZoneDraftMode:!1});if(!f)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:v,deploymentId:w,params:x,nextConfig:y,parsedUrl:z,isDraftMode:A,prerenderManifest:B,routerServerContext:C,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,resolvedPathname:F,clientReferenceManifest:G,serverActionsManifest:H}=f,I=(0,j.normalizeAppPath)(d),J=!!(B.dynamicRoutes[I]||B.routes[F]),K=async()=>((null==C?void 0:C.render404)?await C.render404(a,b,z,!1):b.end("This page could not be found"),null);if(J&&!A){let a=!!B.routes[F],b=B.dynamicRoutes[I];if(b&&!1===b.fallback&&!a){if(y.adapterPath)return await K();throw new s.NoFallbackError}}let L=null;!J||u.isDev||A||(L="/index"===(L=F)?"/":L);let M=!0===u.isDev||!J,N=J&&!M;H&&G&&(0,i.setManifestsSingleton)({page:d,clientReferenceManifest:G,serverActionsManifest:H});let O=a.method||"GET",P=(0,h.getTracer)(),Q=P.getActiveScopeSpan(),R=!!(null==C?void 0:C.isWrappedByNextServer),S=!!(0,g.getRequestMeta)(a,"minimalMode"),T=(0,g.getRequestMeta)(a,"incrementalCache")||await u.getIncrementalCache(a,y,B,S);null==T||T.resetRequestCache(),globalThis.__incrementalCache=T;let U={params:x,previewProps:B.preview,renderOpts:{experimental:{authInterrupts:!!y.experimental.authInterrupts,useCacheTimeout:y.experimental.useCacheTimeout},cacheComponents:!!y.cacheComponents,validationLevel:y.experimental.instantInsights.validationLevel,supportsDynamicResponse:M,incrementalCache:T,hmrRefreshHash:(0,g.getRequestMeta)(a,"hmrRefreshHash"),cacheLifeProfiles:y.cacheLife,staticPageGenerationTimeout:y.staticPageGenerationTimeout,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d,e)=>u.onRequestError(a,b,d,e,C)},sharedContext:{buildId:v,deploymentId:w}},V=new k.NodeNextRequest(a),W=new k.NodeNextResponse(b),X=l.NextRequestAdapter.fromNodeNextRequest(V,(0,l.signalFromNodeResponse)(b)),Y=async({previousCacheEntry:e})=>{try{if(!S&&D&&E&&!e)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let d=await u.handle(X,U);a.fetchMetrics=U.renderOpts.fetchMetrics;let f=U.renderOpts.pendingWaitUntil;f&&c.waitUntil&&(c.waitUntil(f),f=void 0);let g=U.renderOpts.collectedTags;if(!J)return await (0,o.I)(V,W,d,f),null;{let a=await d.blob(),b=(0,p.toNodeOutgoingHttpHeaders)(d.headers);g&&(b[r.NEXT_CACHE_TAGS_HEADER]=g),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==U.renderOpts.collectedRevalidate&&!(U.renderOpts.collectedRevalidate>=r.INFINITE_CACHE)&&U.renderOpts.collectedRevalidate,e=void 0===U.renderOpts.collectedExpire||U.renderOpts.collectedExpire>=r.INFINITE_CACHE?!1!==c&&c>0?y.expireTime:void 0:U.renderOpts.collectedExpire;return{value:{kind:t.CachedRouteKind.APP_ROUTE,status:d.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:e}}}}catch(b){throw(null==e?void 0:e.isStale)&&await u.onRequestError(a,b,{routerKind:"App Router",routePath:d,routeType:"route",revalidateReason:(0,n.getRevalidateReason)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),b}},Z=async(d,f)=>{try{var g,i;let d=await u.handleResponse({req:a,nextConfig:y,cacheKey:L,routeKind:e.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:B,isRoutePPREnabled:!1,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,responseGenerator:Y,waitUntil:c.waitUntil,isMinimalMode:S});if(!J)return;if((null==d||null==(g=d.value)?void 0:g.kind)!==t.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==d||null==(i=d.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});S||b.setHeader("x-nextjs-cache",D?"REVALIDATED":d.isMiss?"MISS":d.isStale?"STALE":"HIT"),A&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let f=(0,p.fromNodeOutgoingHttpHeaders)(d.value.headers);S&&J||f.delete(r.NEXT_CACHE_TAGS_HEADER),!d.cacheControl||b.getHeader("Cache-Control")||f.get("Cache-Control")||f.set("Cache-Control",(0,q.getCacheControlHeader)(d.cacheControl)),await (0,o.I)(V,W,new Response(d.value.body,{headers:f,status:d.value.status||200}));return}catch(b){if(b instanceof s.NoFallbackError||await u.onRequestError(a,b,{routerKind:"App Router",routePath:I,routeType:"route",revalidateReason:(0,n.getRevalidateReason)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),J)throw b;await (0,o.I)(V,W,new Response(null,{status:500}));return}finally{(()=>{if(!d)return;let a=b.statusCode;d.setAttributes({"http.status_code":a,"next.rsc":!1}),a&&a>=500&&(d.setStatus({code:h.SpanStatusCode.ERROR}),d.setAttribute("error.type",a.toString()));let c=P.getRootSpanAttributes();if(!c)return;if(c.get("next.span_type")!==m.BaseServerSpan.handleRequest)return console.warn(`Unexpected root span type '${c.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=c.get("next.route")||I,g=`${O} ${e}`;d.setAttributes({"next.route":e,"http.route":e,"next.span_name":g}),d.updateName(g),f&&f!==d&&(f.setAttribute("http.route",e),f.updateName(g))})()}};if(R&&Q)await Z(Q,void 0);else{let b=P.getActiveScopeSpan();await P.withPropagatedContext(a.headers,()=>P.trace(m.BaseServerSpan.handleRequest,{spanName:`${O} ${d}`,kind:h.SpanKind.SERVER,attributes:{"http.method":O,"http.target":a.url}},a=>Z(a,b)),void 0,!R)}}},53053:a=>{a.exports=require("node:diagnostics_channel")},55511:a=>{a.exports=require("crypto")},56825:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.d(b,{$_:()=>v,So:()=>t,_u:()=>K,lo:()=>C});var e=c(2685),f=c(86137),g=c(29021),h=c(9225),i=c(7939),j=c(79830),k=c(62445),l=c(82940),m=c(33286),n=c(81869),o=c(89705),p=c(32358),q=c(770),r=c(94506),s=a([n,m,r]);function t(a){if(!a.taskFile)return a.message;let b=p.A.t("scheduledTasks.taskFilePromptHeader",{lng:a.language||"en"});return`${b}
2
- - ${a.taskFile}`}function u(a,b,c){let d=[];for(let e of a.split(","))if("*"===e)for(let a=b;a<=c;a++)d.push(a);else if(e.includes("/")){let[a,f]=e.split("/"),g=parseInt(f,10),h="*"===a?b:parseInt(a,10);for(let a=h;a<=c;a+=g)d.push(a)}else if(e.includes("-")){let[a,b]=e.split("-").map(Number);for(let c=a;c<=b;c++)d.push(c)}else d.push(parseInt(e,10));return d}function v(a,b=new Date){let c=a.trim().split(/\s+/);if(5!==c.length)return b.getTime()+6e4;let d=u(c[0],0,59),e=u(c[1],0,23),f=u(c[2],1,31),g=u(c[3],1,12),h=u(c[4],0,6),i=new Date(b);i.setSeconds(0,0),i.setMinutes(i.getMinutes()+1);for(let a=0;a<527040;a++){let a=i.getMinutes(),b=i.getHours(),c=i.getDate(),j=i.getMonth()+1,k=i.getDay();if(d.includes(a)&&e.includes(b)&&f.includes(c)&&g.includes(j)&&h.includes(k))return i.getTime();i.setMinutes(i.getMinutes()+1)}return b.getTime()+864e5}async function w(a,b){let c=(0,l.j$)(b);return!!c&&(c===a.sessionId||(console.warn(`[ScheduledTask] task ${a.id}: rebound session ${a.sessionId} → ${c}`),a.sessionId=c,await K.persistSessionRebind(a.id,c),!0))}async function x(a,b){if(!(0,h.C)(b)&&"claude"!==b&&"codex"!==b)return!1;let c=await (0,i.JE)((0,i.Mx)(a.cwd),{});return c.noHistories?.[a.sessionId]===!0}async function y(a,b){return(0,h.C)(a)?(await o.pR5((0,f.p5)(b.cwd,b.sessionId)))?.path??null:"grok"===a?(0,e.VI)(b.cwd,b.sessionId):"codex"===a?(await (0,k.Zh)(b.sessionId))?.path??null:(0,i.Kk)(b.cwd,b.sessionId)}async function z(a){return r.s9.runPromise(o.JkU(function*(){let b=a.engine??"claude";if(!["claude","ollama","codex","kimi","deepseek","glm","grok"].includes(b))return yield*o.fJG(new q.Yv({provider:"claude",kind:"unsupported-engine",cause:Error(`scheduled tasks not supported for engine '${b}' (task ${a.id})`)}));if(a.taskFile&&!(0,g.existsSync)(a.taskFile))return yield*o.fJG(new q.Yv({provider:b,kind:"unknown",cause:Error(`task file not found: ${a.taskFile} (task ${a.id})`)}));let c=yield*o.ivC(()=>y(b,a)),d=!c||!(0,g.existsSync)(c);return d&&console.warn(`[ScheduledTask] resume session missing (${c??`no session for ${a.sessionId}`}) for task ${a.id}, engine ${b}; starting a fresh session`),yield*o.$mh({try:async()=>{let c=(0,n.E)(b);if(!c)throw Error(`no engine spec for ${b}`);let e=await x(a,b),f=await (0,m.T)(c,{prompt:t(a),...d?{}:{sessionId:a.sessionId},cwd:a.cwd,engine:b,...a.model&&{model:a.model},...e&&{noHistory:!0}});if(!f.ok)throw Error(`${b} dispatch rejected (${f.status}): ${f.error}`);let g=f.runKey,h=!d,i=Date.now()+36e5;for(;(0,l.yQ)(g)&&Date.now()<i;)h||(h=await w(a,g)),await new Promise(a=>setTimeout(a,500));if(h||await w(a,g),(0,l.yQ)(g))throw(0,l.Y6)(g),Error(`${b} run timed out after 60m (session ${a.sessionId})`);let j=(0,l.Si)(g);if(!j||"error"===j.status)throw Error(`${b} run failed (session ${a.sessionId})`);return!0},catch:a=>new q.Yv({provider:b,kind:"unknown",cause:a})})}).pipe(o.h9N(b=>o.JkU(function*(){return console.error(`[ScheduledTask] Failed to send message for task ${a.id}:`,b),yield*o.$mh(()=>(0,j.CS)(a.cwd,a.sessionId,"unread",void 0,void 0,a.engine)).pipe(o.NWQ(()=>o.rIH)),!1}))))}[n,m,r]=s.then?(await s)():s;let E=[{from:"pending",event:"due",to:"firing"},{from:"pending",event:"trigger",to:"firing"},{from:"interrupted",event:"due",to:"firing"},{from:"interrupted",event:"trigger",to:"firing"},{from:"paused",event:"trigger",to:"firing"},{from:"done",event:"trigger",to:"firing"},{from:"firing",event:"settle",to:"settled"},{from:"firing",event:"boot",to:"interrupted"}];function A(a,b){let c=a.firingSince?"firing":a.paused?"paused":a.completed?"done":"interrupted"===a.lastResult?"interrupted":"pending";return E.some(a=>a.from===c&&a.event===b)}let F=["firingSince"];function B(a){let b={...a};for(let a of F)delete b[a];return b}function C(a,b,c){if(a>c)return a;let d=6e4*b;return a+(Math.floor((c-a)/d)+1)*d}function D(a,b){return"interval"===a.type&&a.intervalMinutes?C(a.nextFireTime,a.intervalMinutes,b):"cron"===a.type&&a.cron?v(a.cron,new Date(b)):a.nextFireTime}let G=()=>({firingSince:void 0,lastResult:"interrupted",unread:!0});class H{constructor(a){this.file=a}read(){return(0,i.Ux)(this.file,()=>(0,i.PR)(this.file,[]))}update(a,b){return(0,i.Ux)(this.file,async()=>{let c=await (0,i.PR)(this.file,[]),d=c.findIndex(b=>b.id===a);if(-1===d)return null;let e=b(c[d]);return e?(c[d]={...c[d],...e},await (0,i.An)(this.file,c),c[d]):null})}updateAll(a){return(0,i.Ux)(this.file,async()=>{let b=await (0,i.PR)(this.file,[]),c=0;for(let d=0;d<b.length;d++){let e=a(b[d]);e&&(b[d]={...b[d],...e},c++)}return c&&await (0,i.An)(this.file,b),c})}add(a){return(0,i.N9)(this.file,[],b=>[...b,a])}remove(a){return(0,i.Ux)(this.file,async()=>{let b=await (0,i.PR)(this.file,[]),c=b.findIndex(b=>b.id===a);return -1!==c&&(b.splice(c,1),await (0,i.An)(this.file,b),!0)})}}class I{async ensureInit(){if(!this.initialized)return this.initPromise||(this.initPromise=this.init()),this.initPromise}async init(){let a;if(!this.initialized){this.initialized=!0;try{a=await this.store.read()}catch(a){this.loadFailed=!0,console.error(`[ScheduledTaskManager] ${i.iK} could not be read — NO scheduled task will fire until it is fixed. The file has been left untouched:`,a);return}for(let b of(console.log(`[ScheduledTaskManager] Loaded ${a.length} scheduled tasks`),a))A(b,"boot")&&(console.warn(`[ScheduledTask] task ${b.id} was cut off mid-run by the previous process; marking interrupted`),await this.store.update(b.id,G));for(let a of(await this.store.read()))await this.arm(a)}}isLoadFailed(){return this.loadFailed}setOnTaskFired(a){this.onTaskFired=a}async getTasks(){await this.ensureInit();let a=await this.store.read();return a.sort((a,b)=>(a.sortIndex??a.createdAt)-(b.sortIndex??b.createdAt)),a}async getUnreadCount(){return await this.ensureInit(),(await this.store.read()).filter(a=>a.unread).length}async addTask(a){await this.ensureInit();let b=B({...a});return await this.store.add(b),await this.arm(b),b}async updateTask(a,b){await this.ensureInit();let c=B(b),d=await this.store.update(a,()=>c);return d&&await this.arm(d),d}async deleteTask(a){await this.ensureInit();let b=await this.store.remove(a);return b&&this.clearTimer(a),b}async pauseTask(a){return this.updateTask(a,{paused:!0})}async resumeTask(a){await this.ensureInit();let b=Date.now(),c=await this.store.update(a,a=>({paused:!1,consecutiveFailures:0,nextFireTime:a.nextFireTime>b?a.nextFireTime:"once"===a.type?b+6e4:D(a,b)}));return c&&await this.arm(c),c}async triggerTask(a){return await this.ensureInit(),!!(await this.store.read()).some(b=>b.id===a)&&(this.runTask(a,"trigger").catch(b=>{console.error(`[ScheduledTask] Manual trigger failed for ${a}:`,b)}),!0)}async persistSessionRebind(a,b){let c=await this.store.update(a,()=>({sessionId:b}));c&&this.onTaskFired?.(c)}async markRead(a){return await this.ensureInit(),await this.store.update(a,()=>({unread:!1}))!==null}async markReadBySessionId(a,b={}){await this.ensureInit(),await this.store.updateAll(c=>!c.unread||b.cwd&&c.cwd!==b.cwd||b.engine&&(c.engine??"claude")!==b.engine||void 0!==b.readBefore&&(c.lastFiredAt??c.createdAt)>b.readBefore?null:c.sessionId===a||"codex"===c.engine&&(0,i.Eh)(c.sessionId)===(0,i.Eh)(a)?{unread:!1}:null)}async markAllRead(){await this.ensureInit(),await this.store.updateAll(a=>a.unread?{unread:!1}:null)}async reorderTasks(a){await this.ensureInit(),await this.store.updateAll(b=>{let c=a.indexOf(b.id);return -1===c||b.sortIndex===c?null:{sortIndex:c}})}async arm(a){if(this.clearTimer(a.id),a.paused||a.completed||a.firingSince)return;let b=Date.now(),c=a.nextFireTime;if(c<=b)if("once"!==a.type)c=D(a,b),await this.store.update(a.id,()=>({nextFireTime:c}));else if(b-c<=36e5)console.log(`[ScheduledTask] once task ${a.id} came due ${Math.round((b-c)/1e3)}s ago while down; firing now`);else{await this.store.update(a.id,()=>({completed:!0,unread:!0})),console.warn(`[ScheduledTask] once task ${a.id} missed its fire time by ${Math.round((b-c)/6e4)}min (grace 60min); not running`);return}let d=setTimeout(()=>{this.timers.delete(a.id),this.runTask(a.id,"due").catch(b=>{console.error(`[ScheduledTask] Scheduled run failed for ${a.id}:`,b)})},Math.max(0,c-b));this.timers.set(a.id,d)}clearTimer(a){let b=this.timers.get(a);b&&(clearTimeout(b),this.timers.delete(a))}async runTask(a,b){let c="rejected",d=await this.store.update(a,a=>{let d;return A(a,b)?"due"===b&&!function(a,b=new Date){if("interval"!==a.type||!a.activeFrom||!a.activeTo)return!0;let[c,d]=a.activeFrom.split(":").map(Number),[e,f]=a.activeTo.split(":").map(Number),g=60*b.getHours()+b.getMinutes(),h=60*c+d,i=60*e+f;return h<=i?g>=h&&g<=i:g>=h||g<=i}(a)?(c="outside-range",{nextFireTime:D(a,Date.now())}):(c="claimed",(d=Date.now(),a=>({firingSince:d,..."due"===b&&"once"===a.type?{completed:!0}:{}}))(a)):null});if("outside-range"===c&&d){console.log(`[ScheduledTask] Skipping task ${a}: outside active range ${d.activeFrom}-${d.activeTo}`),await this.arm(d);return}if("claimed"!==c||!d)return void console.warn(`[ScheduledTask] Not running ${a} (${b}): not runnable in its current state`);console.log(`[ScheduledTask] ${"due"===b?"Firing":"Manual trigger"} ${a}: "${d.message}"`);let e=!1;try{e=await z(d)}finally{let c=await this.store.update(a,a=>{let c,d;return A(a,"settle")?(c=e,d=Date.now(),a=>{let e=c?0:(a.consecutiveFailures??0)+1,f={firingSince:void 0,lastFiredAt:d,lastResult:c?"success":"error",consecutiveFailures:e,unread:!0};return"trigger"===b?f:"once"===a.type?{...f,completed:!0}:!c&&e>=3?{...f,paused:!0}:{...f,nextFireTime:D(a,d)}})(a):null});c&&(c.paused&&!d.paused&&"due"===b&&console.warn(`[ScheduledTask] auto-paused task ${a} after ${c.consecutiveFailures} consecutive failures`),await this.arm(c),this.onTaskFired?.(c))}}constructor(){this.store=new H(i.iK),this.timers=new Map,this.initialized=!1,this.initPromise=null,this.loadFailed=!1,this.onTaskFired=null}}let J=globalThis,K=J.__scheduledTaskManager??(J.__scheduledTaskManager=new I);d()}catch(a){d(a)}})},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},64939:a=>{a.exports=import("pg")},66136:a=>{a.exports=require("timers")},73024:a=>{a.exports=require("node:fs")},73136:a=>{a.exports=require("node:url")},74075:a=>{a.exports=require("zlib")},75342:a=>{a.exports=require("@vscode/ripgrep")},75430:a=>{a.exports=import("@earendil-works/pi-coding-agent")},76760:a=>{a.exports=require("node:path")},77598:a=>{a.exports=require("node:crypto")},79428:a=>{a.exports=require("buffer")},79646:a=>{a.exports=require("child_process")},79748:a=>{a.exports=require("fs/promises")},80481:a=>{a.exports=require("node:readline")},83997:a=>{a.exports=require("tty")},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},88503:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.d(b,{OT:()=>m,Uu:()=>k,ex:()=>p,sP:()=>l});var e=c(89705),f=c(770),g=c(56825),h=a([g]);g=(h.then?(await h)():h)[0];let i=e.$mh({try:()=>g._u.getTasks(),catch:a=>new f.uV({message:"scheduler.getTasks failed",cause:a})}),j=e.$mh({try:()=>g._u.getUnreadCount(),catch:a=>new f.uV({message:"scheduler.getUnreadCount failed",cause:a})}),k=e.JkU(function*(){let a=yield*i,b=yield*j;return{tasks:a.map(a=>({...a,resolvedPrompt:(0,g.So)(a)})),unreadCount:b}}).pipe(e.DM4(()=>({tasks:[],unreadCount:0}))),l=a=>e.$mh({try:()=>g._u.addTask(a),catch:a=>new f.uV({message:"scheduler.addTask failed",cause:a})}),m=a=>e.$mh({try:()=>g._u.deleteTask(a),catch:a=>new f.uV({message:"scheduler.deleteTask failed",cause:a})}).pipe(e.qIB(b=>b?e.rIH:e.fJG(new f.m_({resource:"task",id:a})))),n=e.$mh({try:()=>g._u.markAllRead(),catch:a=>new f.uV({message:"scheduler.markAllRead failed",cause:a})}),o=new Set(["pause","resume","trigger","markRead","update"]),p=a=>{let{action:b,fields:c}=a;if("string"!=typeof b||!b)return e.fJG(new f.yI({field:"action",reason:"missing"}));let d="";if(o.has(b)){if("string"!=typeof a.id||!a.id)return e.fJG(new f.yI({field:"id",reason:"missing"}));d=a.id}if("pause"===b){let a;return(a=d,e.$mh({try:()=>g._u.pauseTask(a),catch:a=>new f.uV({message:"scheduler.pauseTask failed",cause:a})}).pipe(e.qIB(b=>b?e.PyW(b):e.fJG(new f.m_({resource:"task",id:a}))))).pipe(e.TjK(a=>({task:a,simpleSuccess:!1})))}if("resume"===b){let a;return(a=d,e.$mh({try:()=>g._u.resumeTask(a),catch:a=>new f.uV({message:"scheduler.resumeTask failed",cause:a})}).pipe(e.qIB(b=>b?e.PyW(b):e.fJG(new f.m_({resource:"task",id:a}))))).pipe(e.TjK(a=>({task:a,simpleSuccess:!1})))}if("trigger"===b){let a;return(a=d,e.$mh({try:()=>g._u.triggerTask(a),catch:a=>new f.uV({message:"scheduler.triggerTask failed",cause:a})}).pipe(e.qIB(b=>b?e.rIH:e.fJG(new f.m_({resource:"task",id:a}))))).pipe(e.as({task:null,simpleSuccess:!0}))}if("markRead"===b){let a;return(a=d,e.$mh({try:()=>g._u.markRead(a),catch:a=>new f.uV({message:"scheduler.markRead failed",cause:a})}).pipe(e.qIB(b=>b?e.rIH:e.fJG(new f.m_({resource:"task",id:a}))))).pipe(e.as({task:null,simpleSuccess:!0}))}if("markReadBySessionId"===b)return"string"==typeof c?.sessionId&&c.sessionId?(void 0===c.cwd||"string"==typeof c.cwd)&&(void 0===c.engine||"string"==typeof c.engine)&&(void 0===c.readBefore||"number"==typeof c.readBefore&&Number.isFinite(c.readBefore))?((a,b={})=>e.$mh({try:()=>g._u.markReadBySessionId(a,b),catch:a=>new f.uV({message:"scheduler.markReadBySessionId failed",cause:a})}))(c.sessionId,{cwd:c.cwd,engine:c.engine,readBefore:c.readBefore}).pipe(e.as({task:null,simpleSuccess:!0})):e.fJG(new f.yI({field:"fields",reason:"invalid read boundary"})):e.fJG(new f.yI({field:"fields.sessionId",reason:"missing or not a string"}));if("markAllRead"===b)return n.pipe(e.as({task:null,simpleSuccess:!0}));if("reorder"===b){let a;return Array.isArray(c?.orderedIds)?(a=c.orderedIds,e.$mh({try:()=>g._u.reorderTasks([...a]),catch:a=>new f.uV({message:"scheduler.reorderTasks failed",cause:a})})).pipe(e.as({task:null,simpleSuccess:!0})):e.fJG(new f.yI({field:"fields.orderedIds",reason:"missing or not an array"}))}if("update"===b){let a;if(!c)return e.fJG(new f.yI({field:"fields",reason:"missing"}));let b=Date.now(),h={...c};if("taskFile"in c||"message"in c){let a="string"==typeof c.taskFile?c.taskFile.trim():"";h.taskFile=a||void 0,h.message=a?"":"string"==typeof c.message?c.message.trim():""}return("startAt"in c||"type"in c)&&(h.startAt="interval"===c.type&&"number"==typeof c.startAt&&c.startAt>0?c.startAt:void 0),"once"===c.type&&c.delayMinutes?(h.nextFireTime=b+6e4*c.delayMinutes,h.completed=!1):"interval"===c.type&&c.intervalMinutes?h.nextFireTime=(0,g.lo)(h.startAt??b,c.intervalMinutes,b):"cron"===c.type&&c.cron&&(h.nextFireTime=(0,g.$_)(c.cron)),h.paused=!1,(a=d,e.$mh({try:()=>g._u.updateTask(a,h),catch:a=>new f.uV({message:"scheduler.updateTask failed",cause:a})}).pipe(e.qIB(b=>b?e.PyW(b):e.fJG(new f.m_({resource:"task",id:a}))))).pipe(e.TjK(a=>({task:a,simpleSuccess:!1})))}return e.fJG(new f.yI({field:"action",reason:`unrecognised: ${b}`}))};d()}catch(a){d(a)}})},91645:a=>{a.exports=require("net")},94735:a=>{a.exports=require("events")}};var b=require("../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4741,9705,2679,7347,6495,9830,2493],()=>b(b.s=52690));module.exports=c})();
1
+ "use strict";(()=>{var a={};a.id=8834,a.ids=[8834],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},1932:a=>{a.exports=require("url")},4573:a=>{a.exports=require("node:buffer")},4984:a=>{a.exports=require("readline")},6727:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.d(b,{D9:()=>r,LO:()=>q,OR:()=>m,SJ:()=>s,fA:()=>l,fG:()=>p});var e=c(29021),f=c(89705),g=c(56825),h=c(72891),i=c(770),j=c(88503),k=a([h,j,g]);[h,j,g]=k.then?(await k)():k;let l="nodejs",m="force-dynamic",n=["claude","ollama","codex","kimi","deepseek","glm"],o=new Set(["ollama","deepseek","kimi","glm"]),p=(0,h.RL)(a=>f.JkU(function*(){if("1"===new URL(a.url).searchParams.get("readBoundary"))return Response.json({readBefore:Date.now()},{headers:{"Cache-Control":"no-store"}});let b=yield*j.Uu;return(0,h.ok)(b)})),q=(0,h.RL)(a=>f.JkU(function*(){let b,{cwd:c,tabId:d,sessionId:k,engine:l,model:m,language:p,message:q,taskFile:r,type:s,delayMinutes:t,intervalMinutes:u,activeFrom:v,activeTo:w,startAt:x,cron:y}=yield*(0,h.k9)(a);if(!c||!d||!k||!s)return yield*f.fJG(new i.yI({field:"cwd|tabId|sessionId|type",reason:"missing"}));let z=yield*f.JkU(function*(){let a=q?.trim()??"",b=r?.trim()??"";return a||b?b?b.startsWith("/")?(0,e.existsSync)(b)?{message:"",taskFile:b}:yield*f.fJG(new i.yI({field:"taskFile",reason:"File does not exist or cannot be read"})):yield*f.fJG(new i.yI({field:"taskFile",reason:"must be absolute"})):{message:a}:yield*f.fJG(new i.yI({field:"message|taskFile",reason:"missing"}))});if(l&&!n.includes(l))return yield*f.fJG(new i.yI({field:"engine",reason:`unknown engine '${l}'`}));let A=Date.now(),B="interval"===s&&"number"==typeof x&&x>0?x:void 0;if("once"===s&&t)b=A+6e4*t;else if("interval"===s&&u)b=B?(0,g.lo)(B,u,A):A+6e4*u;else{if("cron"!==s||!y)return yield*f.fJG(new i.yI({field:"type|timeConfig",reason:"Invalid type or missing time config"}));b=(0,g.$_)(y)}let C={id:`task-${A}-${Math.random().toString(36).slice(2,8)}`,cwd:c,tabId:d,sessionId:k,engine:l,model:l&&o.has(l)?m:void 0,language:p,message:z.message,taskFile:z.taskFile,type:s,delayMinutes:"once"===s?t:void 0,intervalMinutes:"interval"===s?u:void 0,activeFrom:"interval"===s?v:void 0,activeTo:"interval"===s?w:void 0,startAt:B,cron:"cron"===s?y:void 0,nextFireTime:b,paused:!1,createdAt:A},D=yield*(0,j.sP)(C);return(0,h.ok)({task:D})})),r=(0,h.RL)(a=>f.JkU(function*(){let b=yield*(0,h.k9)(a),c=yield*(0,j.ex)(b);return c.simpleSuccess?(0,h.ok)({success:!0}):(0,h.ok)({task:c.task})})),s=(0,h.RL)(a=>f.JkU(function*(){let b=yield*(0,h.k9)(a);return b.id?(yield*(0,j.OT)(b.id),(0,h.ok)({success:!0})):yield*f.fJG(new i.yI({field:"id",reason:"missing"}))}));d()}catch(a){d(a)}})},8128:a=>{a.exports=require("next/dist/server/runtime-reacts.external.js")},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},12412:a=>{a.exports=require("assert")},14985:a=>{a.exports=require("dns")},19771:a=>{a.exports=require("process")},19879:a=>{a.exports=import("@anthropic-ai/claude-agent-sdk")},21820:a=>{a.exports=require("os")},27910:a=>{a.exports=require("stream")},28354:a=>{a.exports=require("util")},28802:a=>{a.exports=import("@earendil-works/pi-ai")},29021:a=>{a.exports=require("fs")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},30352:(a,b,c)=>{c.r(b),c.d(b,{handler:()=>z,patchFetch:()=>y,routeModule:()=>u,serverHooks:()=>x,workAsyncStorage:()=>v,workUnitAsyncStorage:()=>w});var d=c(19225),e=c(84006),f=c(8317),g=c(99373),h=c(34775),i=c(24235),j=c(261),k=c(54365),l=c(90771),m=c(73461),n=c(67798),o=c(92280),p=c(62018),q=c(45696),r=c(47929),s=c(86439),t=c(37527);let u=new d.AppRouteRouteModule({definition:{kind:e.RouteKind.APP_ROUTE,page:"/api/scheduled-tasks/route",pathname:"/api/scheduled-tasks",filename:"route",bundlePath:"app/api/scheduled-tasks/route"},distDir:".next-prod",relativeProjectDir:"",resolvedPagePath:"/home/runner/work/cockpit/cockpit/src/app/api/scheduled-tasks/route.ts",nextConfigOutput:"",userland:()=>c(38616),...{}}),{workAsyncStorage:v,workUnitAsyncStorage:w,serverHooks:x}=u;function y(){return(0,f.patchFetch)({workAsyncStorage:v,workUnitAsyncStorage:w})}async function z(a,b,c){c.requestMeta&&(0,g.setRequestMeta)(a,c.requestMeta),u.isDev&&(0,g.addRequestMeta)(a,"devRequestTimingInternalsEnd",process.hrtime.bigint());let d="/api/scheduled-tasks/route";"/index"===d&&(d="/");let f=await u.prepare(a,b,{srcPage:d,multiZoneDraftMode:!1});if(!f)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:v,deploymentId:w,params:x,nextConfig:y,parsedUrl:z,isDraftMode:A,prerenderManifest:B,routerServerContext:C,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,resolvedPathname:F,clientReferenceManifest:G,serverActionsManifest:H}=f,I=(0,j.normalizeAppPath)(d),J=!!(B.dynamicRoutes[I]||B.routes[F]),K=async()=>((null==C?void 0:C.render404)?await C.render404(a,b,z,!1):b.end("This page could not be found"),null);if(J&&!A){let a=!!B.routes[F],b=B.dynamicRoutes[I];if(b&&!1===b.fallback&&!a){if(y.adapterPath)return await K();throw new s.NoFallbackError}}let L=null;!J||u.isDev||A||(L="/index"===(L=F)?"/":L);let M=!0===u.isDev||!J,N=J&&!M;H&&G&&(0,i.setManifestsSingleton)({page:d,clientReferenceManifest:G,serverActionsManifest:H});let O=a.method||"GET",P=(0,h.getTracer)(),Q=P.getActiveScopeSpan(),R=!!(null==C?void 0:C.isWrappedByNextServer),S=!!(0,g.getRequestMeta)(a,"minimalMode"),T=(0,g.getRequestMeta)(a,"incrementalCache")||await u.getIncrementalCache(a,y,B,S);null==T||T.resetRequestCache(),globalThis.__incrementalCache=T;let U={params:x,previewProps:B.preview,renderOpts:{experimental:{authInterrupts:!!y.experimental.authInterrupts,useCacheTimeout:y.experimental.useCacheTimeout},cacheComponents:!!y.cacheComponents,validationLevel:y.experimental.instantInsights.validationLevel,supportsDynamicResponse:M,incrementalCache:T,hmrRefreshHash:(0,g.getRequestMeta)(a,"hmrRefreshHash"),cacheLifeProfiles:y.cacheLife,staticPageGenerationTimeout:y.staticPageGenerationTimeout,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d,e)=>u.onRequestError(a,b,d,e,C)},sharedContext:{buildId:v,deploymentId:w}},V=new k.NodeNextRequest(a),W=new k.NodeNextResponse(b),X=l.NextRequestAdapter.fromNodeNextRequest(V,(0,l.signalFromNodeResponse)(b)),Y=async({previousCacheEntry:e})=>{try{if(!S&&D&&E&&!e)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let d=await u.handle(X,U);a.fetchMetrics=U.renderOpts.fetchMetrics;let f=U.renderOpts.pendingWaitUntil;f&&c.waitUntil&&(c.waitUntil(f),f=void 0);let g=U.renderOpts.collectedTags;if(!J)return await (0,o.I)(V,W,d,f),null;{let a=await d.blob(),b=(0,p.toNodeOutgoingHttpHeaders)(d.headers);g&&(b[r.NEXT_CACHE_TAGS_HEADER]=g),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==U.renderOpts.collectedRevalidate&&!(U.renderOpts.collectedRevalidate>=r.INFINITE_CACHE)&&U.renderOpts.collectedRevalidate,e=void 0===U.renderOpts.collectedExpire||U.renderOpts.collectedExpire>=r.INFINITE_CACHE?!1!==c&&c>0?y.expireTime:void 0:U.renderOpts.collectedExpire;return{value:{kind:t.CachedRouteKind.APP_ROUTE,status:d.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:e}}}}catch(b){throw(null==e?void 0:e.isStale)&&await u.onRequestError(a,b,{routerKind:"App Router",routePath:d,routeType:"route",revalidateReason:(0,n.getRevalidateReason)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),b}},Z=async(d,f)=>{try{var g,i;let d=await u.handleResponse({req:a,nextConfig:y,cacheKey:L,routeKind:e.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:B,isRoutePPREnabled:!1,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,responseGenerator:Y,waitUntil:c.waitUntil,isMinimalMode:S});if(!J)return;if((null==d||null==(g=d.value)?void 0:g.kind)!==t.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==d||null==(i=d.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});S||b.setHeader("x-nextjs-cache",D?"REVALIDATED":d.isMiss?"MISS":d.isStale?"STALE":"HIT"),A&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let f=(0,p.fromNodeOutgoingHttpHeaders)(d.value.headers);S&&J||f.delete(r.NEXT_CACHE_TAGS_HEADER),!d.cacheControl||b.getHeader("Cache-Control")||f.get("Cache-Control")||f.set("Cache-Control",(0,q.getCacheControlHeader)(d.cacheControl)),await (0,o.I)(V,W,new Response(d.value.body,{headers:f,status:d.value.status||200}));return}catch(b){if(b instanceof s.NoFallbackError||await u.onRequestError(a,b,{routerKind:"App Router",routePath:I,routeType:"route",revalidateReason:(0,n.getRevalidateReason)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),J)throw b;await (0,o.I)(V,W,new Response(null,{status:500}));return}finally{(()=>{if(!d)return;let a=b.statusCode;d.setAttributes({"http.status_code":a,"next.rsc":!1}),a&&a>=500&&(d.setStatus({code:h.SpanStatusCode.ERROR}),d.setAttribute("error.type",a.toString()));let c=P.getRootSpanAttributes();if(!c)return;if(c.get("next.span_type")!==m.BaseServerSpan.handleRequest)return console.warn(`Unexpected root span type '${c.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=c.get("next.route")||I,g=`${O} ${e}`;d.setAttributes({"next.route":e,"http.route":e,"next.span_name":g}),d.updateName(g),f&&f!==d&&(f.setAttribute("http.route",e),f.updateName(g))})()}};if(R&&Q)await Z(Q,void 0);else{let b=P.getActiveScopeSpan();await P.withPropagatedContext(a.headers,()=>P.trace(m.BaseServerSpan.handleRequest,{spanName:`${O} ${d}`,kind:h.SpanKind.SERVER,attributes:{"http.method":O,"http.target":a.url}},a=>Z(a,b)),void 0,!R)}}},31421:a=>{a.exports=require("node:child_process")},32358:(a,b,c)=>{c.d(b,{A:()=>X});let d=a=>"string"==typeof a,e=()=>{let a,b,c=new Promise((c,d)=>{a=c,b=d});return c.resolve=a,c.reject=b,c},f=a=>null==a?"":""+a,g=/###/g,h=a=>a&&a.indexOf("###")>-1?a.replace(g,"."):a,i=a=>!a||d(a),j=(a,b,c)=>{let e=d(b)?b.split("."):b,f=0;for(;f<e.length-1;){if(i(a))return{};let b=h(e[f]);!a[b]&&c&&(a[b]=new c),a=Object.prototype.hasOwnProperty.call(a,b)?a[b]:{},++f}return i(a)?{}:{obj:a,k:h(e[f])}},k=(a,b,c)=>{let{obj:d,k:e}=j(a,b,Object);if(void 0!==d||1===b.length){d[e]=c;return}let f=b[b.length-1],g=b.slice(0,b.length-1),h=j(a,g,Object);for(;void 0===h.obj&&g.length;)f=`${g[g.length-1]}.${f}`,h=j(a,g=g.slice(0,g.length-1),Object),h?.obj&&void 0!==h.obj[`${h.k}.${f}`]&&(h.obj=void 0);h.obj[`${h.k}.${f}`]=c},l=(a,b)=>{let{obj:c,k:d}=j(a,b);if(c&&Object.prototype.hasOwnProperty.call(c,d))return c[d]},m=(a,b,c)=>{for(let e in b)"__proto__"!==e&&"constructor"!==e&&(e in a?d(a[e])||a[e]instanceof String||d(b[e])||b[e]instanceof String?c&&(a[e]=b[e]):m(a[e],b[e],c):a[e]=b[e]);return a};var n={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};let o=a=>d(a)?a.replace(/[&<>"'\/]/g,a=>n[a]):a;class p{constructor(a){this.capacity=a,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(a){let b=this.regExpMap.get(a);if(void 0!==b)return b;let c=new RegExp(a);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(a,c),this.regExpQueue.push(a),c}}let q=[" ",",","?","!",";"],r=new p(20),s=(a,b,c=".")=>{if(!a)return;if(a[b]){if(!Object.prototype.hasOwnProperty.call(a,b))return;return a[b]}let d=b.split(c),e=a;for(let a=0;a<d.length;){let b;if(!e||"object"!=typeof e)return;let f="";for(let g=a;g<d.length;++g)if(g!==a&&(f+=c),f+=d[g],void 0!==(b=e[f])){if(["string","number","boolean"].indexOf(typeof b)>-1&&g<d.length-1)continue;a+=g-a+1;break}e=b}return e},t=a=>a?.replace(/_/g,"-"),u={type:"logger",log(a){this.output("log",a)},warn(a){this.output("warn",a)},error(a){this.output("error",a)},output(a,b){console?.[a]?.apply?.(console,b)}};class v{constructor(a,b={}){this.init(a,b)}init(a,b={}){this.prefix=b.prefix||"i18next:",this.logger=a||u,this.options=b,this.debug=b.debug}log(...a){return this.forward(a,"log","",!0)}warn(...a){return this.forward(a,"warn","",!0)}error(...a){return this.forward(a,"error","")}deprecate(...a){return this.forward(a,"warn","WARNING DEPRECATED: ",!0)}forward(a,b,c,e){return e&&!this.debug?null:(d(a[0])&&(a[0]=`${c}${this.prefix} ${a[0]}`),this.logger[b](a))}create(a){return new v(this.logger,{...{prefix:`${this.prefix}:${a}:`},...this.options})}clone(a){return(a=a||this.options).prefix=a.prefix||this.prefix,new v(this.logger,a)}}var w=new v;class x{constructor(){this.observers={}}on(a,b){return a.split(" ").forEach(a=>{this.observers[a]||(this.observers[a]=new Map);let c=this.observers[a].get(b)||0;this.observers[a].set(b,c+1)}),this}off(a,b){if(this.observers[a]){if(!b)return void delete this.observers[a];this.observers[a].delete(b)}}emit(a,...b){this.observers[a]&&Array.from(this.observers[a].entries()).forEach(([a,c])=>{for(let d=0;d<c;d++)a(...b)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(([c,d])=>{for(let e=0;e<d;e++)c.apply(c,[a,...b])})}}class y extends x{constructor(a,b={ns:["translation"],defaultNS:"translation"}){super(),this.data=a||{},this.options=b,void 0===this.options.keySeparator&&(this.options.keySeparator="."),void 0===this.options.ignoreJSONStructure&&(this.options.ignoreJSONStructure=!0)}addNamespaces(a){0>this.options.ns.indexOf(a)&&this.options.ns.push(a)}removeNamespaces(a){let b=this.options.ns.indexOf(a);b>-1&&this.options.ns.splice(b,1)}getResource(a,b,c,e={}){let f,g=void 0!==e.keySeparator?e.keySeparator:this.options.keySeparator,h=void 0!==e.ignoreJSONStructure?e.ignoreJSONStructure:this.options.ignoreJSONStructure;a.indexOf(".")>-1?f=a.split("."):(f=[a,b],c&&(Array.isArray(c)?f.push(...c):d(c)&&g?f.push(...c.split(g)):f.push(c)));let i=l(this.data,f);return(!i&&!b&&!c&&a.indexOf(".")>-1&&(a=f[0],b=f[1],c=f.slice(2).join(".")),!i&&h&&d(c))?s(this.data?.[a]?.[b],c,g):i}addResource(a,b,c,d,e={silent:!1}){let f=void 0!==e.keySeparator?e.keySeparator:this.options.keySeparator,g=[a,b];c&&(g=g.concat(f?c.split(f):c)),a.indexOf(".")>-1&&(g=a.split("."),d=b,b=g[1]),this.addNamespaces(b),k(this.data,g,d),e.silent||this.emit("added",a,b,c,d)}addResources(a,b,c,e={silent:!1}){for(let e in c)(d(c[e])||Array.isArray(c[e]))&&this.addResource(a,b,e,c[e],{silent:!0});e.silent||this.emit("added",a,b,c)}addResourceBundle(a,b,c,d,e,f={silent:!1,skipCopy:!1}){let g=[a,b];a.indexOf(".")>-1&&(g=a.split("."),d=c,c=b,b=g[1]),this.addNamespaces(b);let h=l(this.data,g)||{};f.skipCopy||(c=JSON.parse(JSON.stringify(c))),d?m(h,c,e):h={...h,...c},k(this.data,g,h),f.silent||this.emit("added",a,b,c)}removeResourceBundle(a,b){this.hasResourceBundle(a,b)&&delete this.data[a][b],this.removeNamespaces(b),this.emit("removed",a,b)}hasResourceBundle(a,b){return void 0!==this.getResource(a,b)}getResourceBundle(a,b){return b||(b=this.options.defaultNS),this.getResource(a,b)}getDataByLanguage(a){return this.data[a]}hasLanguageSomeTranslations(a){let b=this.getDataByLanguage(a);return!!(b&&Object.keys(b)||[]).find(a=>b[a]&&Object.keys(b[a]).length>0)}toJSON(){return this.data}}var z={processors:{},addPostProcessor(a){this.processors[a.name]=a},handle(a,b,c,d,e){return a.forEach(a=>{b=this.processors[a]?.process(b,c,d,e)??b}),b}};let A=Symbol("i18next/PATH_KEY");function B(a,b){let c,d,e,{[A]:f}=a((d=[],(e=Object.create(null)).get=(a,b)=>(c?.revoke?.(),b===A)?d:(d.push(b),(c=Proxy.revocable(a,e)).proxy),Proxy.revocable(Object.create(null),e).proxy)),g=b?.keySeparator??".",h=b?.nsSeparator??":";if(f.length>1&&h){let a=b?.ns,c=Array.isArray(a)?a:null;if(c&&c.length>1&&c.slice(1).includes(f[0]))return`${f[0]}${h}${f.slice(1).join(g)}`}return f.join(g)}let C={},D=a=>!d(a)&&"boolean"!=typeof a&&"number"!=typeof a;class E extends x{constructor(a,b={}){super(),((a,b,c)=>{a.forEach(a=>{b[a]&&(c[a]=b[a])})})(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],a,this),this.options=b,void 0===this.options.keySeparator&&(this.options.keySeparator="."),this.logger=w.create("translator")}changeLanguage(a){a&&(this.language=a)}exists(a,b={interpolation:{}}){let c={...b};if(null==a)return!1;let d=this.resolve(a,c);if(d?.res===void 0)return!1;let e=D(d.res);return!1!==c.returnObjects||!e}extractFromKey(a,b){let c=void 0!==b.nsSeparator?b.nsSeparator:this.options.nsSeparator;void 0===c&&(c=":");let e=void 0!==b.keySeparator?b.keySeparator:this.options.keySeparator,f=b.ns||this.options.defaultNS||[],g=c&&a.indexOf(c)>-1,h=!this.options.userDefinedKeySeparator&&!b.keySeparator&&!this.options.userDefinedNsSeparator&&!b.nsSeparator&&!((a,b,c)=>{b=b||"",c=c||"";let d=q.filter(a=>0>b.indexOf(a)&&0>c.indexOf(a));if(0===d.length)return!0;let e=r.getRegExp(`(${d.map(a=>"?"===a?"\\?":a).join("|")})`),f=!e.test(a);if(!f){let b=a.indexOf(c);b>0&&!e.test(a.substring(0,b))&&(f=!0)}return f})(a,c,e);if(g&&!h){let b=a.match(this.interpolator.nestingRegexp);if(b&&b.length>0)return{key:a,namespaces:d(f)?[f]:f};let g=a.split(c);(c!==e||c===e&&this.options.ns.indexOf(g[0])>-1)&&(f=g.shift()),a=g.join(e)}return{key:a,namespaces:d(f)?[f]:f}}translate(a,b,c){let e="object"==typeof b?{...b}:b;if("object"!=typeof e&&this.options.overloadTranslationOptionHandler&&(e=this.options.overloadTranslationOptionHandler(arguments)),"object"==typeof e&&(e={...e}),e||(e={}),null==a)return"";"function"==typeof a&&(a=B(a,{...this.options,...e})),Array.isArray(a)||(a=[String(a)]),a=a.map(a=>"function"==typeof a?B(a,{...this.options,...e}):String(a));let f=void 0!==e.returnDetails?e.returnDetails:this.options.returnDetails,g=void 0!==e.keySeparator?e.keySeparator:this.options.keySeparator,{key:h,namespaces:i}=this.extractFromKey(a[a.length-1],e),j=i[i.length-1],k=void 0!==e.nsSeparator?e.nsSeparator:this.options.nsSeparator;void 0===k&&(k=":");let l=e.lng||this.language,m=e.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(l?.toLowerCase()==="cimode")return m?f?{res:`${j}${k}${h}`,usedKey:h,exactUsedKey:h,usedLng:l,usedNS:j,usedParams:this.getUsedParamsDetails(e)}:`${j}${k}${h}`:f?{res:h,usedKey:h,exactUsedKey:h,usedLng:l,usedNS:j,usedParams:this.getUsedParamsDetails(e)}:h;let n=this.resolve(a,e),o=n?.res,p=n?.usedKey||h,q=n?.exactUsedKey||h,r=void 0!==e.joinArrays?e.joinArrays:this.options.joinArrays,s=!this.i18nFormat||this.i18nFormat.handleAsObject,t=void 0!==e.count&&!d(e.count),u=E.hasDefaultValue(e),v=t?this.pluralResolver.getSuffix(l,e.count,e):"",w=e.ordinal&&t?this.pluralResolver.getSuffix(l,e.count,{ordinal:!1}):"",x=t&&!e.ordinal&&0===e.count,y=x&&e[`defaultValue${this.options.pluralSeparator}zero`]||e[`defaultValue${v}`]||e[`defaultValue${w}`]||e.defaultValue,z=o;s&&!o&&u&&(z=y);let A=D(z),C=Object.prototype.toString.apply(z);if(s&&z&&A&&0>["[object Number]","[object Function]","[object RegExp]"].indexOf(C)&&!(d(r)&&Array.isArray(z))){if(!e.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");let a=this.options.returnedObjectHandler?this.options.returnedObjectHandler(p,z,{...e,ns:i}):`key '${h} (${this.language})' returned an object instead of string.`;return f?(n.res=a,n.usedParams=this.getUsedParamsDetails(e),n):a}if(g){let a=Array.isArray(z),b=a?[]:{},c=a?q:p;for(let a in z)if(Object.prototype.hasOwnProperty.call(z,a)){let d=`${c}${g}${a}`;u&&!o?b[a]=this.translate(d,{...e,defaultValue:D(y)?y[a]:void 0,...{joinArrays:!1,ns:i}}):b[a]=this.translate(d,{...e,joinArrays:!1,ns:i}),b[a]===d&&(b[a]=z[a])}o=b}}else if(s&&d(r)&&Array.isArray(o))(o=o.join(r))&&(o=this.extendTranslation(o,a,e,c));else{let b=!1,d=!1;!this.isValidLookup(o)&&u&&(b=!0,o=y),this.isValidLookup(o)||(d=!0,o=h);let f=(e.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&d?void 0:o,i=u&&y!==o&&this.options.updateMissing;if(d||b||i){if(this.logger.log(i?"updateKey":"missingKey",l,j,h,i?y:o),g){let a=this.resolve(h,{...e,keySeparator:!1});a&&a.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let a=[],b=this.languageUtils.getFallbackCodes(this.options.fallbackLng,e.lng||this.language);if("fallback"===this.options.saveMissingTo&&b&&b[0])for(let c=0;c<b.length;c++)a.push(b[c]);else"all"===this.options.saveMissingTo?a=this.languageUtils.toResolveHierarchy(e.lng||this.language):a.push(e.lng||this.language);let c=(a,b,c)=>{let d=u&&c!==o?c:f;this.options.missingKeyHandler?this.options.missingKeyHandler(a,j,b,d,i,e):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(a,j,b,d,i,e),this.emit("missingKey",a,j,b,o)};this.options.saveMissing&&(this.options.saveMissingPlurals&&t?a.forEach(a=>{let b=this.pluralResolver.getSuffixes(a,e);x&&e[`defaultValue${this.options.pluralSeparator}zero`]&&0>b.indexOf(`${this.options.pluralSeparator}zero`)&&b.push(`${this.options.pluralSeparator}zero`),b.forEach(b=>{c([a],h+b,e[`defaultValue${b}`]||y)})}):c(a,h,y))}o=this.extendTranslation(o,a,e,n,c),d&&o===h&&this.options.appendNamespaceToMissingKey&&(o=`${j}${k}${h}`),(d||b)&&this.options.parseMissingKeyHandler&&(o=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${j}${k}${h}`:h,b?o:void 0,e))}return f?(n.res=o,n.usedParams=this.getUsedParamsDetails(e),n):o}extendTranslation(a,b,c,e,f){if(this.i18nFormat?.parse)a=this.i18nFormat.parse(a,{...this.options.interpolation.defaultVariables,...c},c.lng||this.language||e.usedLng,e.usedNS,e.usedKey,{resolved:e});else if(!c.skipInterpolation){let g;c.interpolation&&this.interpolator.init({...c,...{interpolation:{...this.options.interpolation,...c.interpolation}}});let h=d(a)&&(c?.interpolation?.skipOnVariables!==void 0?c.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);if(h){let b=a.match(this.interpolator.nestingRegexp);g=b&&b.length}let i=c.replace&&!d(c.replace)?c.replace:c;if(this.options.interpolation.defaultVariables&&(i={...this.options.interpolation.defaultVariables,...i}),a=this.interpolator.interpolate(a,i,c.lng||this.language||e.usedLng,c),h){let b=a.match(this.interpolator.nestingRegexp);g<(b&&b.length)&&(c.nest=!1)}!c.lng&&e&&e.res&&(c.lng=this.language||e.usedLng),!1!==c.nest&&(a=this.interpolator.nest(a,(...a)=>f?.[0]!==a[0]||c.context?this.translate(...a,b):(this.logger.warn(`It seems you are nesting recursively key: ${a[0]} in key: ${b[0]}`),null),c)),c.interpolation&&this.interpolator.reset()}let g=c.postProcess||this.options.postProcess,h=d(g)?[g]:g;return null!=a&&h?.length&&!1!==c.applyPostProcessor&&(a=z.handle(h,a,b,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...e,usedParams:this.getUsedParamsDetails(c)},...c}:c,this)),a}resolve(a,b={}){let c,e,f,g,h;return d(a)&&(a=[a]),Array.isArray(a)&&(a=a.map(a=>"function"==typeof a?B(a,{...this.options,...b}):a)),a.forEach(a=>{if(this.isValidLookup(c))return;let i=this.extractFromKey(a,b),j=i.key;e=j;let k=i.namespaces;this.options.fallbackNS&&(k=k.concat(this.options.fallbackNS));let l=void 0!==b.count&&!d(b.count),m=l&&!b.ordinal&&0===b.count,n=void 0!==b.context&&(d(b.context)||"number"==typeof b.context)&&""!==b.context,o=b.lngs?b.lngs:this.languageUtils.toResolveHierarchy(b.lng||this.language,b.fallbackLng);k.forEach(a=>{this.isValidLookup(c)||(h=a,!C[`${o[0]}-${a}`]&&this.utils?.hasLoadedNamespace&&!this.utils?.hasLoadedNamespace(h)&&(C[`${o[0]}-${a}`]=!0,this.logger.warn(`key "${e}" for languages "${o.join(", ")}" won't get resolved as namespace "${h}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),o.forEach(d=>{let e;if(this.isValidLookup(c))return;g=d;let h=[j];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(h,j,d,a,b);else{let a;l&&(a=this.pluralResolver.getSuffix(d,b.count,b));let c=`${this.options.pluralSeparator}zero`,e=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(l&&(b.ordinal&&0===a.indexOf(e)&&h.push(j+a.replace(e,this.options.pluralSeparator)),h.push(j+a),m&&h.push(j+c)),n){let d=`${j}${this.options.contextSeparator||"_"}${b.context}`;h.push(d),l&&(b.ordinal&&0===a.indexOf(e)&&h.push(d+a.replace(e,this.options.pluralSeparator)),h.push(d+a),m&&h.push(d+c))}}for(;e=h.pop();)this.isValidLookup(c)||(f=e,c=this.getResource(d,a,e,b))}))})}),{res:c,usedKey:e,exactUsedKey:f,usedLng:g,usedNS:h}}isValidLookup(a){return void 0!==a&&!(!this.options.returnNull&&null===a)&&!(!this.options.returnEmptyString&&""===a)}getResource(a,b,c,d={}){return this.i18nFormat?.getResource?this.i18nFormat.getResource(a,b,c,d):this.resourceStore.getResource(a,b,c,d)}getUsedParamsDetails(a={}){let b=a.replace&&!d(a.replace),c=b?a.replace:a;if(b&&void 0!==a.count&&(c.count=a.count),this.options.interpolation.defaultVariables&&(c={...this.options.interpolation.defaultVariables,...c}),!b)for(let a of(c={...c},["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"]))delete c[a];return c}static hasDefaultValue(a){let b="defaultValue";for(let c in a)if(Object.prototype.hasOwnProperty.call(a,c)&&b===c.substring(0,b.length)&&void 0!==a[c])return!0;return!1}}class F{constructor(a){this.options=a,this.supportedLngs=this.options.supportedLngs||!1,this.logger=w.create("languageUtils")}getScriptPartFromCode(a){if(!(a=t(a))||0>a.indexOf("-"))return null;let b=a.split("-");return 2===b.length||(b.pop(),"x"===b[b.length-1].toLowerCase())?null:this.formatLanguageCode(b.join("-"))}getLanguagePartFromCode(a){if(!(a=t(a))||0>a.indexOf("-"))return a;let b=a.split("-");return this.formatLanguageCode(b[0])}formatLanguageCode(a){if(d(a)&&a.indexOf("-")>-1){let b;try{b=Intl.getCanonicalLocales(a)[0]}catch(a){}return(b&&this.options.lowerCaseLng&&(b=b.toLowerCase()),b)?b:this.options.lowerCaseLng?a.toLowerCase():a}return this.options.cleanCode||this.options.lowerCaseLng?a.toLowerCase():a}isSupportedCode(a){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(a=this.getLanguagePartFromCode(a)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(a)>-1}getBestMatchFromCodes(a){let b;return a?(a.forEach(a=>{if(b)return;let c=this.formatLanguageCode(a);(!this.options.supportedLngs||this.isSupportedCode(c))&&(b=c)}),!b&&this.options.supportedLngs&&a.forEach(a=>{if(b)return;let c=this.getScriptPartFromCode(a);if(this.isSupportedCode(c))return b=c;let d=this.getLanguagePartFromCode(a);if(this.isSupportedCode(d))return b=d;b=this.options.supportedLngs.find(a=>{if(a===d||!(0>a.indexOf("-")&&0>d.indexOf("-"))&&(a.indexOf("-")>0&&0>d.indexOf("-")&&a.substring(0,a.indexOf("-"))===d||0===a.indexOf(d)&&d.length>1))return a})}),b||(b=this.getFallbackCodes(this.options.fallbackLng)[0]),b):null}getFallbackCodes(a,b){if(!a)return[];if("function"==typeof a&&(a=a(b)),d(a)&&(a=[a]),Array.isArray(a))return a;if(!b)return a.default||[];let c=a[b];return c||(c=a[this.getScriptPartFromCode(b)]),c||(c=a[this.formatLanguageCode(b)]),c||(c=a[this.getLanguagePartFromCode(b)]),c||(c=a.default),c||[]}toResolveHierarchy(a,b){let c=this.getFallbackCodes((!1===b?[]:b)||this.options.fallbackLng||[],a),e=[],f=a=>{a&&(this.isSupportedCode(a)?e.push(a):this.logger.warn(`rejecting language code not found in supportedLngs: ${a}`))};return d(a)&&(a.indexOf("-")>-1||a.indexOf("_")>-1)?("languageOnly"!==this.options.load&&f(this.formatLanguageCode(a)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&f(this.getScriptPartFromCode(a)),"currentOnly"!==this.options.load&&f(this.getLanguagePartFromCode(a))):d(a)&&f(this.formatLanguageCode(a)),c.forEach(a=>{0>e.indexOf(a)&&f(this.formatLanguageCode(a))}),e}}let G={zero:0,one:1,two:2,few:3,many:4,other:5},H={select:a=>1===a?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class I{constructor(a,b={}){this.languageUtils=a,this.options=b,this.logger=w.create("pluralResolver"),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(a,b={}){let c,d=t("dev"===a?"en":a),e=b.ordinal?"ordinal":"cardinal",f=JSON.stringify({cleanedCode:d,type:e});if(f in this.pluralRulesCache)return this.pluralRulesCache[f];try{c=new Intl.PluralRules(d,{type:e})}catch(e){if("u"<typeof Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),H;if(!a.match(/-|_/))return H;let d=this.languageUtils.getLanguagePartFromCode(a);c=this.getRule(d,b)}return this.pluralRulesCache[f]=c,c}needsPlural(a,b={}){let c=this.getRule(a,b);return c||(c=this.getRule("dev",b)),c?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(a,b,c={}){return this.getSuffixes(a,c).map(a=>`${b}${a}`)}getSuffixes(a,b={}){let c=this.getRule(a,b);return(c||(c=this.getRule("dev",b)),c)?c.resolvedOptions().pluralCategories.sort((a,b)=>G[a]-G[b]).map(a=>`${this.options.prepend}${b.ordinal?`ordinal${this.options.prepend}`:""}${a}`):[]}getSuffix(a,b,c={}){let d=this.getRule(a,c);return d?`${this.options.prepend}${c.ordinal?`ordinal${this.options.prepend}`:""}${d.select(b)}`:(this.logger.warn(`no plural rule found for: ${a}`),this.getSuffix("dev",b,c))}}let J=(a,b,c,e=".",f=!0)=>{let g,h=void 0!==(g=l(a,c))?g:l(b,c);return!h&&f&&d(c)&&void 0===(h=s(a,c,e))&&(h=s(b,c,e)),h};class K{constructor(a={}){this.logger=w.create("interpolator"),this.options=a,this.format=a?.interpolation?.format||(a=>a),this.init(a)}init(a={}){a.interpolation||(a.interpolation={escapeValue:!0});let{escape:b,escapeValue:c,useRawValueToEscape:d,prefix:e,prefixEscaped:f,suffix:g,suffixEscaped:h,formatSeparator:i,unescapeSuffix:j,unescapePrefix:k,nestingPrefix:l,nestingPrefixEscaped:m,nestingSuffix:n,nestingSuffixEscaped:p,nestingOptionsSeparator:q,maxReplaces:r,alwaysFormat:s}=a.interpolation;this.escape=void 0!==b?b:o,this.escapeValue=void 0===c||c,this.useRawValueToEscape=void 0!==d&&d,this.prefix=e?e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"):f||"{{",this.suffix=g?g.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"):h||"}}",this.formatSeparator=i||",",this.unescapePrefix=j?"":k||"-",this.unescapeSuffix=this.unescapePrefix?"":j||"",this.nestingPrefix=l?l.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"):m||"$t(".replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),this.nestingSuffix=n?n.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"):p||")".replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),this.nestingOptionsSeparator=q||",",this.maxReplaces=r||1e3,this.alwaysFormat=void 0!==s&&s,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){let a=(a,b)=>a?.source===b?(a.lastIndex=0,a):RegExp(b,"g");this.regexp=a(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=a(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=a(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(a,b,c,e){let g,h,i,j=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},k=a=>{if(0>a.indexOf(this.formatSeparator)){let d=J(b,j,a,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(d,void 0,c,{...e,...b,interpolationkey:a}):d}let d=a.split(this.formatSeparator),f=d.shift().trim(),g=d.join(this.formatSeparator).trim();return this.format(J(b,j,f,this.options.keySeparator,this.options.ignoreJSONStructure),g,c,{...e,...b,interpolationkey:f})};this.resetRegExp();let l=e?.missingInterpolationHandler||this.options.missingInterpolationHandler,m=e?.interpolation?.skipOnVariables!==void 0?e.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:a=>a.replace(/\$/g,"$$$$")},{regex:this.regexp,safeValue:a=>this.escapeValue?this.escape(a).replace(/\$/g,"$$$$"):a.replace(/\$/g,"$$$$")}].forEach(b=>{for(i=0;g=b.regex.exec(a);){let c=g[1].trim();if(void 0===(h=k(c)))if("function"==typeof l){let b=l(a,g,e);h=d(b)?b:""}else if(e&&Object.prototype.hasOwnProperty.call(e,c))h="";else if(m){h=g[0];continue}else this.logger.warn(`missed to pass in variable ${c} for interpolating ${a}`),h="";else d(h)||this.useRawValueToEscape||(h=f(h));let j=b.safeValue(h);if(a=a.replace(g[0],j),m?(b.regex.lastIndex+=h.length,b.regex.lastIndex-=g[0].length):b.regex.lastIndex=0,++i>=this.maxReplaces)break}}),a}nest(a,b,c={}){let e,g,h,i=(a,b)=>{let c=this.nestingOptionsSeparator;if(0>a.indexOf(c))return a;let d=a.split(RegExp(`${c.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}[ ]*{`)),e=`{${d[1]}`;a=d[0];let f=(e=this.interpolate(e,h)).match(/'/g),g=e.match(/"/g);((f?.length??0)%2!=0||g)&&(g?.length??0)%2==0||(e=e.replace(/'/g,'"'));try{h=JSON.parse(e),b&&(h={...b,...h})}catch(b){return this.logger.warn(`failed parsing options string in nesting for key ${a}`,b),`${a}${c}${e}`}return h.defaultValue&&h.defaultValue.indexOf(this.prefix)>-1&&delete h.defaultValue,a};for(;e=this.nestingRegexp.exec(a);){let j=[];(h=(h={...c}).replace&&!d(h.replace)?h.replace:h).applyPostProcessor=!1,delete h.defaultValue;let k=/{.*}/.test(e[1])?e[1].lastIndexOf("}")+1:e[1].indexOf(this.formatSeparator);if(-1!==k&&(j=e[1].slice(k).split(this.formatSeparator).map(a=>a.trim()).filter(Boolean),e[1]=e[1].slice(0,k)),(g=b(i.call(this,e[1].trim(),h),h))&&e[0]===a&&!d(g))return g;d(g)||(g=f(g)),g||(this.logger.warn(`missed to resolve ${e[1]} for nesting ${a}`),g=""),j.length&&(g=j.reduce((a,b)=>this.format(a,b,c.lng,{...c,interpolationkey:e[1].trim()}),g.trim())),a=a.replace(e[0],g),this.regexp.lastIndex=0}return a}}let L=a=>{let b={};return(c,d,e)=>{let f=e;e&&e.interpolationkey&&e.formatParams&&e.formatParams[e.interpolationkey]&&e[e.interpolationkey]&&(f={...f,[e.interpolationkey]:void 0});let g=d+JSON.stringify(f),h=b[g];return h||(h=a(t(d),e),b[g]=h),h(c)}},M=a=>(b,c,d)=>a(t(c),d)(b);class N{constructor(a={}){this.logger=w.create("formatter"),this.options=a,this.init(a)}init(a,b={interpolation:{}}){this.formatSeparator=b.interpolation.formatSeparator||",";let c=b.cacheInBuiltFormats?L:M;this.formats={number:c((a,b)=>{let c=new Intl.NumberFormat(a,{...b});return a=>c.format(a)}),currency:c((a,b)=>{let c=new Intl.NumberFormat(a,{...b,style:"currency"});return a=>c.format(a)}),datetime:c((a,b)=>{let c=new Intl.DateTimeFormat(a,{...b});return a=>c.format(a)}),relativetime:c((a,b)=>{let c=new Intl.RelativeTimeFormat(a,{...b});return a=>c.format(a,b.range||"day")}),list:c((a,b)=>{let c=new Intl.ListFormat(a,{...b});return a=>c.format(a)})}}add(a,b){this.formats[a.toLowerCase().trim()]=b}addCached(a,b){this.formats[a.toLowerCase().trim()]=L(b)}format(a,b,c,d={}){let e=b.split(this.formatSeparator);if(e.length>1&&e[0].indexOf("(")>1&&0>e[0].indexOf(")")&&e.find(a=>a.indexOf(")")>-1)){let a=e.findIndex(a=>a.indexOf(")")>-1);e[0]=[e[0],...e.splice(1,a)].join(this.formatSeparator)}return e.reduce((a,b)=>{let{formatName:e,formatOptions:f}=(a=>{let b=a.toLowerCase().trim(),c={};if(a.indexOf("(")>-1){let d=a.split("(");b=d[0].toLowerCase().trim();let e=d[1].substring(0,d[1].length-1);"currency"===b&&0>e.indexOf(":")?c.currency||(c.currency=e.trim()):"relativetime"===b&&0>e.indexOf(":")?c.range||(c.range=e.trim()):e.split(";").forEach(a=>{if(a){let[b,...d]=a.split(":"),e=d.join(":").trim().replace(/^'+|'+$/g,""),f=b.trim();c[f]||(c[f]=e),"false"===e&&(c[f]=!1),"true"===e&&(c[f]=!0),isNaN(e)||(c[f]=parseInt(e,10))}})}return{formatName:b,formatOptions:c}})(b);if(this.formats[e]){let b=a;try{let g=d?.formatParams?.[d.interpolationkey]||{},h=g.locale||g.lng||d.locale||d.lng||c;b=this.formats[e](a,h,{...f,...d,...g})}catch(a){this.logger.warn(a)}return b}return this.logger.warn(`there was no format function for ${e}`),a},a)}}class O extends x{constructor(a,b,c,d={}){super(),this.backend=a,this.store=b,this.services=c,this.languageUtils=c.languageUtils,this.options=d,this.logger=w.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=d.maxParallelReads||10,this.readingCalls=0,this.maxRetries=d.maxRetries>=0?d.maxRetries:5,this.retryTimeout=d.retryTimeout>=1?d.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(c,d.backend,d)}queueLoad(a,b,c,d){let e={},f={},g={},h={};return a.forEach(a=>{let d=!0;b.forEach(b=>{let g=`${a}|${b}`;!c.reload&&this.store.hasResourceBundle(a,b)?this.state[g]=2:this.state[g]<0||(1===this.state[g]?void 0===f[g]&&(f[g]=!0):(this.state[g]=1,d=!1,void 0===f[g]&&(f[g]=!0),void 0===e[g]&&(e[g]=!0),void 0===h[b]&&(h[b]=!0)))}),d||(g[a]=!0)}),(Object.keys(e).length||Object.keys(f).length)&&this.queue.push({pending:f,pendingCount:Object.keys(f).length,loaded:{},errors:[],callback:d}),{toLoad:Object.keys(e),pending:Object.keys(f),toLoadLanguages:Object.keys(g),toLoadNamespaces:Object.keys(h)}}loaded(a,b,c){let d=a.split("|"),e=d[0],f=d[1];b&&this.emit("failedLoading",e,f,b),!b&&c&&this.store.addResourceBundle(e,f,c,void 0,void 0,{skipCopy:!0}),this.state[a]=b?-1:2,b&&c&&(this.state[a]=0);let g={};this.queue.forEach(c=>{((a,b,c)=>{let{obj:d,k:e}=j(a,b,Object);d[e]=d[e]||[],d[e].push(c)})(c.loaded,[e],f),void 0!==c.pending[a]&&(delete c.pending[a],c.pendingCount--),b&&c.errors.push(b),0!==c.pendingCount||c.done||(Object.keys(c.loaded).forEach(a=>{g[a]||(g[a]={});let b=c.loaded[a];b.length&&b.forEach(b=>{void 0===g[a][b]&&(g[a][b]=!0)})}),c.done=!0,c.errors.length?c.callback(c.errors):c.callback())}),this.emit("loaded",g),this.queue=this.queue.filter(a=>!a.done)}read(a,b,c,d=0,e=this.retryTimeout,f){if(!a.length)return f(null,{});if(this.readingCalls>=this.maxParallelReads)return void this.waitingReads.push({lng:a,ns:b,fcName:c,tried:d,wait:e,callback:f});this.readingCalls++;let g=(g,h)=>{if(this.readingCalls--,this.waitingReads.length>0){let a=this.waitingReads.shift();this.read(a.lng,a.ns,a.fcName,a.tried,a.wait,a.callback)}g&&h&&d<this.maxRetries?setTimeout(()=>{this.read.call(this,a,b,c,d+1,2*e,f)},e):f(g,h)},h=this.backend[c].bind(this.backend);if(2===h.length){try{let c=h(a,b);c&&"function"==typeof c.then?c.then(a=>g(null,a)).catch(g):g(null,c)}catch(a){g(a)}return}return h(a,b,g)}prepareLoading(a,b,c={},e){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),e&&e();d(a)&&(a=this.languageUtils.toResolveHierarchy(a)),d(b)&&(b=[b]);let f=this.queueLoad(a,b,c,e);if(!f.toLoad.length)return f.pending.length||e(),null;f.toLoad.forEach(a=>{this.loadOne(a)})}load(a,b,c){this.prepareLoading(a,b,{},c)}reload(a,b,c){this.prepareLoading(a,b,{reload:!0},c)}loadOne(a,b=""){let c=a.split("|"),d=c[0],e=c[1];this.read(d,e,"read",void 0,void 0,(c,f)=>{c&&this.logger.warn(`${b}loading namespace ${e} for language ${d} failed`,c),!c&&f&&this.logger.log(`${b}loaded namespace ${e} for language ${d}`,f),this.loaded(a,c,f)})}saveMissing(a,b,c,d,e,f={},g=()=>{}){if(this.services?.utils?.hasLoadedNamespace&&!this.services?.utils?.hasLoadedNamespace(b))return void this.logger.warn(`did not save key "${c}" as the namespace "${b}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");if(null!=c&&""!==c){if(this.backend?.create){let h={...f,isUpdate:e},i=this.backend.create.bind(this.backend);if(i.length<6)try{let e;(e=5===i.length?i(a,b,c,d,h):i(a,b,c,d))&&"function"==typeof e.then?e.then(a=>g(null,a)).catch(g):g(null,e)}catch(a){g(a)}else i(a,b,c,d,g,h)}a&&a[0]&&this.store.addResource(a[0],b,c,d)}}}let P=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:a=>{let b={};if("object"==typeof a[1]&&(b=a[1]),d(a[1])&&(b.defaultValue=a[1]),d(a[2])&&(b.tDescription=a[2]),"object"==typeof a[2]||"object"==typeof a[3]){let c=a[3]||a[2];Object.keys(c).forEach(a=>{b[a]=c[a]})}return b},interpolation:{escapeValue:!0,format:a=>a,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),Q=a=>(d(a.ns)&&(a.ns=[a.ns]),d(a.fallbackLng)&&(a.fallbackLng=[a.fallbackLng]),d(a.fallbackNS)&&(a.fallbackNS=[a.fallbackNS]),a.supportedLngs?.indexOf?.("cimode")<0&&(a.supportedLngs=a.supportedLngs.concat(["cimode"])),"boolean"==typeof a.initImmediate&&(a.initAsync=a.initImmediate),a),R=()=>{},S="__i18next_supportNoticeShown";class T extends x{constructor(a={},b){if(super(),this.options=Q(a),this.services={},this.logger=w,this.modules={external:[]},(a=>{Object.getOwnPropertyNames(Object.getPrototypeOf(a)).forEach(b=>{"function"==typeof a[b]&&(a[b]=a[b].bind(a))})})(this),b&&!this.isInitialized&&!a.isClone){if(!this.options.initAsync)return this.init(a,b),this;setTimeout(()=>{this.init(a,b)},0)}}init(a={},b){this.isInitializing=!0,"function"==typeof a&&(b=a,a={}),null==a.defaultNS&&a.ns&&(d(a.ns)?a.defaultNS=a.ns:0>a.ns.indexOf("translation")&&(a.defaultNS=a.ns[0]));let c=P();this.options={...c,...this.options,...Q(a)},this.options.interpolation={...c.interpolation,...this.options.interpolation},void 0!==a.keySeparator&&(this.options.userDefinedKeySeparator=a.keySeparator),void 0!==a.nsSeparator&&(this.options.userDefinedNsSeparator=a.nsSeparator),"function"!=typeof this.options.overloadTranslationOptionHandler&&(this.options.overloadTranslationOptionHandler=c.overloadTranslationOptionHandler),!1!==this.options.showSupportNotice&&!(this?.modules?.backend?.name?.indexOf("Locize")>0||this?.modules?.backend?.constructor?.name?.indexOf("Locize")>0||this?.options?.backend?.backends&&this.options.backend.backends.some(a=>a?.name?.indexOf("Locize")>0||a?.constructor?.name?.indexOf("Locize")>0)||this?.options?.backend?.projectId||this?.options?.backend?.backendOptions&&this.options.backend.backendOptions.some(a=>a?.projectId))&&1&&!("u">typeof globalThis&&globalThis[S]||"u">typeof process&&process.env&&process.env.I18NEXT_NO_SUPPORT_NOTICE||"u">typeof process&&process.env&&1)&&("u">typeof console&&void 0!==console.info&&console.info("\uD83C\uDF10 i18next is made possible by our own product, Locize — consider powering your project with managed localization (AI, CDN, integrations): https://locize.com \uD83D\uDC99"),"u">typeof globalThis&&(globalThis[S]=!0));let f=a=>a?"function"==typeof a?new a:a:null;if(!this.options.isClone){let a;this.modules.logger?w.init(f(this.modules.logger),this.options):w.init(null,this.options),a=this.modules.formatter?this.modules.formatter:N;let b=new F(this.options);this.store=new y(this.options.resources,this.options);let d=this.services;d.logger=w,d.resourceStore=this.store,d.languageUtils=b,d.pluralResolver=new I(b,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),this.options.interpolation.format&&this.options.interpolation.format!==c.interpolation.format&&this.logger.deprecate("init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting"),a&&(!this.options.interpolation.format||this.options.interpolation.format===c.interpolation.format)&&(d.formatter=f(a),d.formatter.init&&d.formatter.init(d,this.options),this.options.interpolation.format=d.formatter.format.bind(d.formatter)),d.interpolator=new K(this.options),d.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},d.backendConnector=new O(f(this.modules.backend),d.resourceStore,d,this.options),d.backendConnector.on("*",(a,...b)=>{this.emit(a,...b)}),this.modules.languageDetector&&(d.languageDetector=f(this.modules.languageDetector),d.languageDetector.init&&d.languageDetector.init(d,this.options.detection,this.options)),this.modules.i18nFormat&&(d.i18nFormat=f(this.modules.i18nFormat),d.i18nFormat.init&&d.i18nFormat.init(this)),this.translator=new E(this.services,this.options),this.translator.on("*",(a,...b)=>{this.emit(a,...b)}),this.modules.external.forEach(a=>{a.init&&a.init(this)})}if(this.format=this.options.interpolation.format,b||(b=R),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){let a=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);a.length>0&&"dev"!==a[0]&&(this.options.lng=a[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(a=>{this[a]=(...b)=>this.store[a](...b)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(a=>{this[a]=(...b)=>(this.store[a](...b),this)});let g=e(),h=()=>{let a=(a,c)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),g.resolve(c),b(a,c)};if(this.languages&&!this.isInitialized)return a(null,this.t.bind(this));this.changeLanguage(this.options.lng,a)};return this.options.resources||!this.options.initAsync?h():setTimeout(h,0),g}loadResources(a,b=R){let c=b,e=d(a)?a:this.language;if("function"==typeof a&&(c=a),!this.options.resources||this.options.partialBundledLanguages){if(e?.toLowerCase()==="cimode"&&(!this.options.preload||0===this.options.preload.length))return c();let a=[],b=b=>{b&&"cimode"!==b&&this.services.languageUtils.toResolveHierarchy(b).forEach(b=>{"cimode"!==b&&0>a.indexOf(b)&&a.push(b)})};e?b(e):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(a=>b(a)),this.options.preload?.forEach?.(a=>b(a)),this.services.backendConnector.load(a,this.options.ns,a=>{a||this.resolvedLanguage||!this.language||this.setResolvedLanguage(this.language),c(a)})}else c(null)}reloadResources(a,b,c){let d=e();return"function"==typeof a&&(c=a,a=void 0),"function"==typeof b&&(c=b,b=void 0),a||(a=this.languages),b||(b=this.options.ns),c||(c=R),this.services.backendConnector.reload(a,b,a=>{d.resolve(),c(a)}),d}use(a){if(!a)throw Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!a.type)throw Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===a.type&&(this.modules.backend=a),("logger"===a.type||a.log&&a.warn&&a.error)&&(this.modules.logger=a),"languageDetector"===a.type&&(this.modules.languageDetector=a),"i18nFormat"===a.type&&(this.modules.i18nFormat=a),"postProcessor"===a.type&&z.addPostProcessor(a),"formatter"===a.type&&(this.modules.formatter=a),"3rdParty"===a.type&&this.modules.external.push(a),this}setResolvedLanguage(a){if(a&&this.languages&&!(["cimode","dev"].indexOf(a)>-1)){for(let a=0;a<this.languages.length;a++){let b=this.languages[a];if(!(["cimode","dev"].indexOf(b)>-1)&&this.store.hasLanguageSomeTranslations(b)){this.resolvedLanguage=b;break}}!this.resolvedLanguage&&0>this.languages.indexOf(a)&&this.store.hasLanguageSomeTranslations(a)&&(this.resolvedLanguage=a,this.languages.unshift(a))}}changeLanguage(a,b){this.isLanguageChangingTo=a;let c=e();this.emit("languageChanging",a);let f=a=>{this.language=a,this.languages=this.services.languageUtils.toResolveHierarchy(a),this.resolvedLanguage=void 0,this.setResolvedLanguage(a)},g=(d,e)=>{e?this.isLanguageChangingTo===a&&(f(e),this.translator.changeLanguage(e),this.isLanguageChangingTo=void 0,this.emit("languageChanged",e),this.logger.log("languageChanged",e)):this.isLanguageChangingTo=void 0,c.resolve((...a)=>this.t(...a)),b&&b(d,(...a)=>this.t(...a))},h=b=>{a||b||!this.services.languageDetector||(b=[]);let c=d(b)?b:b&&b[0],e=this.store.hasLanguageSomeTranslations(c)?c:this.services.languageUtils.getBestMatchFromCodes(d(b)?[b]:b);e&&(this.language||f(e),this.translator.language||this.translator.changeLanguage(e),this.services.languageDetector?.cacheUserLanguage?.(e)),this.loadResources(e,a=>{g(a,e)})};return a||!this.services.languageDetector||this.services.languageDetector.async?!a&&this.services.languageDetector&&this.services.languageDetector.async?0===this.services.languageDetector.detect.length?this.services.languageDetector.detect().then(h):this.services.languageDetector.detect(h):h(a):h(this.services.languageDetector.detect()),c}getFixedT(a,b,c){let e=(a,b,...d)=>{let f,g;(f="object"!=typeof b?this.options.overloadTranslationOptionHandler([a,b].concat(d)):{...b}).lng=f.lng||e.lng,f.lngs=f.lngs||e.lngs,f.ns=f.ns||e.ns,""!==f.keyPrefix&&(f.keyPrefix=f.keyPrefix||c||e.keyPrefix);let h={...this.options,...f};"function"==typeof f.keyPrefix&&(f.keyPrefix=B(f.keyPrefix,h));let i=this.options.keySeparator||".";return f.keyPrefix&&Array.isArray(a)?g=a.map(a=>("function"==typeof a&&(a=B(a,h)),`${f.keyPrefix}${i}${a}`)):("function"==typeof a&&(a=B(a,h)),g=f.keyPrefix?`${f.keyPrefix}${i}${a}`:a),this.t(g,f)};return d(a)?e.lng=a:e.lngs=a,e.ns=b,e.keyPrefix=c,e}t(...a){return this.translator?.translate(...a)}exists(...a){return this.translator?.exists(...a)}setDefaultNamespace(a){this.options.defaultNS=a}hasLoadedNamespace(a,b={}){if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;let c=b.lng||this.resolvedLanguage||this.languages[0],d=!!this.options&&this.options.fallbackLng,e=this.languages[this.languages.length-1];if("cimode"===c.toLowerCase())return!0;let f=(a,b)=>{let c=this.services.backendConnector.state[`${a}|${b}`];return -1===c||0===c||2===c};if(b.precheck){let a=b.precheck(this,f);if(void 0!==a)return a}return!!(this.hasResourceBundle(c,a)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||f(c,a)&&(!d||f(e,a)))}loadNamespaces(a,b){let c=e();return this.options.ns?(d(a)&&(a=[a]),a.forEach(a=>{0>this.options.ns.indexOf(a)&&this.options.ns.push(a)}),this.loadResources(a=>{c.resolve(),b&&b(a)}),c):(b&&b(),Promise.resolve())}loadLanguages(a,b){let c=e();d(a)&&(a=[a]);let f=this.options.preload||[],g=a.filter(a=>0>f.indexOf(a)&&this.services.languageUtils.isSupportedCode(a));return g.length?(this.options.preload=f.concat(g),this.loadResources(a=>{c.resolve(),b&&b(a)}),c):(b&&b(),Promise.resolve())}dir(a){if(a||(a=this.resolvedLanguage||(this.languages?.length>0?this.languages[0]:this.language)),!a)return"rtl";try{let b=new Intl.Locale(a);if(b&&b.getTextInfo){let a=b.getTextInfo();if(a&&a.direction)return a.direction}}catch(a){}let b=this.services?.languageUtils||new F(P());return a.toLowerCase().indexOf("-latn")>1?"ltr":["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].indexOf(b.getLanguagePartFromCode(a))>-1||a.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(a={},b){let c=new T(a,b);return c.createInstance=T.createInstance,c}cloneInstance(a={},b=R){let c=a.forkResourceStore;c&&delete a.forkResourceStore;let d={...this.options,...a,isClone:!0},e=new T(d);if((void 0!==a.debug||void 0!==a.prefix)&&(e.logger=e.logger.clone(a)),["store","services","language"].forEach(a=>{e[a]=this[a]}),e.services={...this.services},e.services.utils={hasLoadedNamespace:e.hasLoadedNamespace.bind(e)},c&&(e.store=new y(Object.keys(this.store.data).reduce((a,b)=>(a[b]={...this.store.data[b]},a[b]=Object.keys(a[b]).reduce((c,d)=>(c[d]={...a[b][d]},c),a[b]),a),{}),d),e.services.resourceStore=e.store),a.interpolation){let b={...P().interpolation,...this.options.interpolation,...a.interpolation},c={...d,interpolation:b};e.services.interpolator=new K(c)}return e.translator=new E(e.services,d),e.translator.on("*",(a,...b)=>{e.emit(a,...b)}),e.init(d,b),e.translator.options=d,e.translator.backendConnector.services.utils={hasLoadedNamespace:e.hasLoadedNamespace.bind(e)},e}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}let U=T.createInstance();U.createInstance,U.dir,U.init,U.loadResources,U.reloadResources,U.use,U.changeLanguage,U.getFixedT,U.t,U.exists,U.setDefaultNamespace,U.hasLoadedNamespace,U.loadNamespaces,U.loadLanguages;let V=JSON.parse('{"common":{"openAsProject":"Open as project","save":"Save","cancel":"Cancel","delete":"Delete","close":"Close","minimize":"Minimize","copy":"Copy","edit":"Edit","file":"File","codeMap":"Code Map","diff":"Diff","confirm":"Confirm","loading":"Loading...","search":"Search","refresh":"Refresh","retry":"Retry","submit":"Submit","copied":"Copied","saved":"Saved","failed":"Failed","noMatch":"No matches","noData":"No data","done":"Done","justNow":"just now","minutesAgo":"{{count}}m ago","hoursAgo":"{{count}}h ago","daysAgo":"{{count}}d ago","monthsAgo":"{{count}}mo ago","yearsAgo":"{{count}}y ago","saveFailed":"Save failed","copyFailed":"Copy failed","deleteFailed":"Delete failed","operationFailed":"Operation failed","copiedPath":"Path copied","copyPath":"Copy path","openInConsole":"Open in Console bubble","copyAbsPath":"Copy absolute path","loadMore":"Load more","noResult":"No results","selected":"Selected","selectAll":"Select all","hint":"Notice","confirmBtn":"OK","cancelBtn":"Cancel","preview":"Preview","readable":"Readable","previous":"Previous","next":"Next","all":"All","input":"Input","result":"Result","line":"Line","lines":"lines","running":"Running","connecting":"Connecting","connected":"Connected","connectionFailed":"Connection failed","builtin":"Built-in","global":"Global","project":"Project","current":"Current","code":"Code"},"htmlApps":{"tabFiles":"Files","tabRun":"Run","mine":"Mine","selectHint":"Select an app on the left to see its files and source; it only runs when you click Run (apps get full shell access).","openFull":"Open full screen (minimisable to the sidebar)","title":"HTML Apps","addTooltip":"Add to HTML panel","added":"Added to HTML panel","alreadyAdded":"Already added","addFailed":"Failed to add","add":"Add","adding":"Adding...","addHtmlApp":"Add HTML app","searchPlaceholder":"Search HTML apps...","pathLabel":"Absolute path to the .html file","invalid":"Invalid","builtin":"Built-in","noDescription":"No description","emptyNoApps":"No custom HTML apps yet.","emptyCreatePrefix":"Use","emptyCreateSuffix":"in chat to create a new app.","addExisting":"add an existing HTML file","viewDocs":"view docs","emptyNoMatch":"No HTML apps match your search."},"skills":{"addTooltip":"Add to Skills panel","added":"Added to Skills panel","alreadyAdded":"Already added","addFailed":"Failed to add","title":"Skills","searchPlaceholder":"Search skills...","clearSearch":"Clear","addSkill":"Add Skill","emptyNoSkills":"No skills yet.","emptyIntroPrefix":"Use","emptyIntroSuffix":"in chat to distil a reusable workflow into a SKILL.md file.","emptyNoMatch":"No skills match your search.","viewDocs":"view docs","pathLabel":"Absolute path to SKILL.md","pathPlaceholder":"/Users/you/.../skills/foo/SKILL.md","add":"Add","adding":"Adding...","invalid":"Invalid","builtinGroup":"Builtin","builtinReadOnly":"Builtin \xb7 read-only","selectHint":"Select a skill on the left to view its SKILL.md","fileTooLarge":"File is over 1 MB — not previewed","fileNotPreviewable":"This file cannot be previewed (binary)","copyPath":"Copy path","noDescription":"No description","previewTitle":"Skill Preview","source":"Source","cannotRead":"File cannot be read."},"toast":{"savedSuccess":"Saved","saveFailed":"Save failed","copiedName":"Copied: {{name}}","copyFailed":"Copy failed","deleteFailed":"Delete failed","operationFailed":"Operation failed","staged":"Staged","stageFailed":"Stage failed","unstaged":"Unstaged","unstageFailed":"Unstage failed","stagedNFiles":"Staged {{count}} files","unstagedNFiles":"Unstaged {{count}} files","discardFailed":"Discard failed","discardedNFiles":"Discarded changes in {{count}} files","deletedFile":"File deleted","discardedChanges":"Changes discarded","pastedFile":"Pasted: {{name}}","pasteFailed":"Paste failed","noFileToPaste":"No file to paste","createdFile":"Created: {{name}}","createFailed":"Create failed","movedToTrash":"Moved to trash: {{name}}","copiedPageUrl":"Page URL copied","copiedDirPath":"Directory path copied","switchedToBranch":"Switched to {{branch}}","switchBranchFailed":"Branch switch failed","loadBranchFailed":"Failed to load branches","copiedCommand":"Copied: {{command}}","copiedMessage":"Message copied","sentToPeer":"Sent to the other pane","sendToPeerFailed":"Failed to send to the other pane","forkFailed":"Failed to fork session","excerptFailed":"Failed to excerpt this turn","turnDeleted":"Turn deleted","deleteTurnFailed":"Failed to delete this turn","copiedUrl":"URL copied","copiedOutput":"Output copied","copiedCmd":"Command copied","copiedComment":"Comment copied","copiedAllComments":"All comments copied","copiedFileContent":"File content copied","copiedQA":"Copied {{count}} Q&A","copiedAllQA":"All Q&A copied","sentQA":"Sent to AI","readFileFailed":"Failed to read file","fileOutsideProject":"File preview is unavailable here","reviewCreated":"Review created, link copied","reviewUpdated":"Review updated, link copied","reviewCreateFailed":"Failed to create review","sharingClosed":"Sharing disabled","sharingCloseFailed":"Failed to disable sharing","linkCopied":"Link copied","addCommentFailed":"Failed to add comment","deleteCommentFailed":"Failed to delete comment","editCommentFailed":"Failed to edit comment","addReplyFailed":"Failed to add reply","deleteReplyFailed":"Failed to delete reply","editReplyFailed":"Failed to edit reply","disconnected":"Disconnected: {{id}}","pluginReloading":"Reloading extension...","worktreeCreateSuccess":"Worktree created: {{name}}","worktreeCreateFailed":"Failed to create worktree","worktreeLoadFailed":"Failed to load worktree list","worktreeDeleted":"Worktree deleted","worktreeDeleteFailed":"Failed to delete worktree","worktreeLocked":"Locked","worktreeUnlocked":"Unlocked"},"workspace":{"selectProject":"Select a project to start","searchProjectPath":"Search project path...","loadingProjects":"Loading projects...","projectNotFound":"No projects found","sessions":"{{count}} sessions","loadingSessions":"Loading sessions...","noSessions":"No sessions","loadingText":"Loading...","openProject":"Open Project","expandSidebar":"Expand sidebar","collapseSidebar":"Collapse sidebar","notes":"Notes","skills":"Skills","apps":"Apps","settings":"Settings","help":"Help","updateAvailable":"v{{version}} available","copyUpgradeCommand":"Copy cockpit update","updateNow":"Update now","updating":"Updating…","updateComplete":"Update complete","updateFailed":"Update failed","updateCardPreparing":"Preparing update…","updateCardInstalling":"Downloading and installing","updateCardRepairing":"Repairing native dependency","updateCardUpToDate":"Already on the latest version, v{{version}}","updateCardCopyFix":"Copy fix command","updateCardFixCopied":"Fix command copied","updateCardRollingBack":"Install failed, rolling back","updateCardRestarting":"Restarting Cockpit…","updateCardDone":"Updated to v{{version}}","updateCardElapsed":"{{seconds}}s elapsed","updateCardBaseline":"last time ~{{seconds}}s","updateCardNoLiveStatus":"Live status unavailable; the update is still running","updateCardRolledBack":"Rolled back to the previous version; Cockpit is usable.","updateCardManualHint":"You can retry from a terminal:","updateCardLogHint":"Log: {{path}}","updateRestartNote":"Cockpit will restart in the background.","viewChangelog":"View changelog","serverRestarted":"Cockpit was updated in the background.","serverReloadAfterRestart":"Cockpit restarted. Reload this page.","reloadNow":"Reload","upgradeCommandCopied":"Copied `cockpit update`","projectNotes":"Project Notes","closeProject":"Close project","unsentDraft":"Unsent draft","bots":"Bots"},"mobile":{"useDesktop":"Desktop","messagePlaceholder":"Message…","send":"Send","stop":"Stop","enableNotifications":"Enable notifications","disableNotifications":"Disable notifications","notifyError":"Could not enable notifications","useMobile":"Mobile","newChat":"New chat","voiceInput":"Voice input","voiceStop":"Stop voice input","voiceListening":"Listening…","voiceDenied":"Microphone access was denied — allow it in the browser settings","voiceFailed":"Voice input failed: {{reason}}","voiceUnsupported":"Voice input is not available in this browser — use the microphone on your keyboard","quickInstructionsHint":"Tap to fill the input"},"sessions":{"recentSessions":"Recent Sessions","favorites":"Favorite Sessions","titleSingleLine":"The title must be a single line, with no line breaks or \\\\n","titleNoAt":"The title must not contain @","titleNotMentionable":"This title cannot be used with @: {{reason}}. Rename it first","mentionable":"Can be @-mentioned","mentionableHint":"Adds this session to the Bots list; any session can then hand it a task with \\"@title task\\"","suggestTitle":"Suggest a title with AI","titleSuggestFailed":"Could not suggest a title: {{reason}}","noFavorites":"No favorite sessions yet. Click the star in the tab bar to add.","addFavorite":"Add to favorites","removeFavorite":"Remove from favorites","selectFavoriteHint":"Select a favorite on the left to preview its messages","noSessionMessages":"No messages in this session, or its transcript is gone","selectSessionHint":"Select a session on the left to preview its messages","dateToday":"Today","dateYesterday":"Yesterday","dateLast7Days":"Last 7 days","dateEarlier":"Earlier","runningCount":"{{count}} running","unreadCount":"{{count}} unread","noSessions":"No sessions yet","running":"Running","done":"Done","dragToReorder":"Drag to reorder within this project","restoreTitle":"Restore default title","titleEmpty":"Title cannot be empty.","titleLoadFailed":"Could not load the title. Close and try again.","titleSaveFailed":"Could not save the title. Please try again.","editTitle":"Edit title","projectSessions":"Project Sessions","browseAllSessions":"Browse all sessions","sessionList":"Session List","search":"Search","searchSessions":"Search sessions...","searchRecentSessions":"Search recent sessions","loadSessionsFailed":"Failed to load sessions","loadingSessions":"Loading sessions...","noMatchingSessions":"No matching sessions","noSessionsYet":"No sessions yet","projectList":"Project List","openFolder":"Open Folder","loadingHistory":"Loading history...","sessionsTab":"Sessions","pullRequestsTab":"PRs","searchPullRequests":"Search number / URL / title","allRepos":"All repos","allEngines":"All engines","noPullRequests":"No recent session has opened a PR yet","noPullRequestsHint":"PRs appear here once a session runs gh pr create","noMatchingPullRequests":"No matching PRs","selectPullRequestHint":"Select a PR on the left to view its session","pullRequestSessions":"{{count}} sessions","openPullRequest":"Open PR","copyResumeCommand":"Copy resume","resumeCommandCopied":"Copied: {{command}}","copyFailed":"Copy failed"},"scheduledTasks":{"title":"Scheduled Tasks","aboutToTrigger":"About to trigger","secondsLater":"in {{count}}s","minutesLater":"in {{count}}m","hoursMinutesLater":"in {{h}}h {{m}}m","hoursLater":"in {{h}}h","onceType":"Once (in {{duration}})","everyDuration":"Every {{duration}}","completed":"Completed","paused":"Paused","activeCount":"{{running}} active","pausedCount":"{{paused}} paused","noScheduledTasks":"No scheduled tasks. Click the clock button in the chat input to create one.","lastResult":"Last","runNow":"Run now","deleteFailed":"Failed to delete the task","resume":"Resume","pause":"Pause","completedCount":"Completed ({{count}})","pendingCount":"{{count}} to review","openSession":"Open session","selectTaskHint":"Select a task on the left to preview its session messages","noTaskMessages":"No messages in this task\'s session yet","success":"Success","failure":"Failed","inFlight":"Running now","interrupted":"Interrupted","createTask":"Create Scheduled Task","editTask":"Edit Scheduled Task","sendMessage":"Message","messagePlaceholder":"Enter message to send...","taskFile":"Task File","taskFilePlaceholder":"/Users/you/project/tasks/daily-report.md","taskFileHint":"Absolute path. On each fire the agent reads this file first and acts on what it describes — edits take effect on the next run.","taskFilePromptHeader":"Read this task file first, then act accordingly:","type":"Type","once":"Once","interval":"Interval","quickSelect":"Quick Select","customCron":"Custom Cron Expression","customDuration":"Custom duration","cronPlaceholder":"e.g. 0 9 * * 1-5 (weekdays at 9am)","cronFormat":"Format: min hour day month weekday (e.g. 0 9 * * 1-5)","amountPlaceholder":"Amount","limitTimeRange":"Limit execution time range","startAt":"Start at (optional)","startAtHint":"Empty = start now. When set, runs stay on start + N \xd7 interval and never drift with run time","clear":"Clear","fromTime":"from {{time}}","to":"to","saveBtn":"Save ({{modKey}}↩)","createBtn":"Create ({{modKey}}↩)","5minLater":"In 5 minutes","15minLater":"In 15 minutes","30minLater":"In 30 minutes","1hourLater":"In 1 hour","3hoursLater":"In 3 hours","6hoursLater":"In 6 hours","1dayLater":"In 1 day","3daysLater":"In 3 days","every15min":"Every 15 min","every30min":"Every 30 min","every1hour":"Every 1 hour","every2hours":"Every 2 hours","every6hours":"Every 6 hours","every12hours":"Every 12 hours","everyDay":"Every day","daily9am":"Daily 09:00","daily6pm":"Daily 18:00","weeklyMon9am":"Mon 09:00","monthly1st9am":"1st of month 09:00","unit":{"minute":"min","hour":"hours","day":"days"},"duration":{"minute_one":"{{count}} min","minute_other":"{{count}} min","hour_one":"{{count}} hour","hour_other":"{{count}} hours","day_one":"{{count}} day","day_other":"{{count}} days"}},"runningTerminals":{"title":"Terminals","status":"{{count}} terminal(s) \xb7 {{projects}} project(s)","keys":"↑↓ select \xb7 Enter / double-click open \xb7 Del stop \xb7 Esc close","empty":"No terminals running","currentProject":"current project","stop":"Stop","confirmStop":"Stop this process?","stopping":"Stopping…","stopFailed":"Failed to stop the terminal","openTerminal":"Open terminal","typeHint":"Click the terminal to type","modePty":"PTY \xb7 interactive terminal","modePipe":"Pipe \xb7 output only","ended":"Ended","selectHint":"Select a terminal on the left to preview its output","notFound":"Couldn\'t find this terminal\'s bubble"},"cron":{"everyNMinutes":"Every {{n}} minutes","everyNHours":"Every {{n}} hours","everyMinute":"Every minute","everyHourAtMin":"Every hour at minute {{m}}","hourlyEveryMin":"{{h}}:xx every minute","daily":"Daily at {{time}}","weekdays":"Weekdays","weekends":"Weekends","dowSun":"Sun","dowMon":"Mon","dowTue":"Tue","dowWed":"Wed","dowThu":"Thu","dowFri":"Fri","dowSat":"Sat","monthPrefix":"","dayOfMonth":"","dayRange":"{{a}}th to {{b}}th","weekdayPrefix":"","weekdayRange":"{{a}} to {{b}}"},"blockViewer":{"empty":{"body":"Select a file in the left tree to see its code map.","hint":"or press ⌘K to search."},"fileMode":{"loading":"Loading…","notFound":"This file is not indexed (unsupported language or beyond the file cap)."},"buildProgress":{"listing":"Listing files…","contexts":"Reading project config…","parsing":"Parsing files","resolving":"Resolving imports…","edges":"Building call graph…","done":"Finishing up…"},"search":{"tooltip":"Search (⌘K)","hint":"Start typing to search","noResults":"No matches","files":"Files","symbols":"Symbols"},"viewerToggle":{"toBlock":"Show code map","toCode":"Back to code view"},"tabs":{"toc":"Functions","history":"Trail"},"toc":{"title":"this file","empty":"No functions detected.","notIndexed":"File not in project graph (unsupported language / not in git tracked set / file cap reached)."},"history":{"title":"recent","empty":"Click an input or output pin to begin tracing.","clear":"Clear history"},"refresh":"Rebuild project graph","relationsStale":"Project relations need a refresh","retry":"Retry"},"blockDiffViewer":{"loading":"Building code map…","unsupported":"Code map diff is not available for this file type.","unsupportedHint":"Switch back to the regular diff view to read it.","error":"Code map diff failed: {{message}}","noBlockChanges":"No code-map changes (formatting / whitespace only).","noBefore":"(new)","noAfter":"(removed)","kind":{"added":"added","deleted":"deleted","modified":"modified"}},"fileBrowser":{"directoryTree":"Tree","searchTab":"Search","recentTab":"Recent","changesTab":"Status","historyTab":"History","searchFiles":"Search files...","clear":"Clear","exactMatchOn":"Exact match (on)","exactMatchOff":"Exact match (off)","refreshTree":"Refresh directory tree","collapseAll":"Collapse all directories","searchFileContent":"Search file contents...","caseSensitive":"Case sensitive","wholeWord":"Whole word","regex":"Regex","fileTypes":"File types (ts,tsx)","compareMode":"Compare","compareModeOff":"Close branch comparison","compareModeOn":"Compare with selected branch","compareScopeHead":"HEAD","compareScopeWorktree":"Worktree","compareScopeHeadHint":"Compare committed work only","compareScopeWorktreeHint":"Include uncommitted changes (staged / unstaged / untracked)","createFile":"New File","createFileIn":"New File (in {{path}}/)","fileName":"File name...","noRecentFiles":"No recent files","stagingArea":"Staged ({{count}})","changesSummary_one":"{{count}} change","changesSummary_other":"{{count}} changes","noChanges":"No changes in working tree","refreshChanges":"Refresh changes","unstageAll":"Unstage all","noStagedFiles":"No staged files","unstageNFiles":"Unstage {{count}} files","unstageFile":"Unstage","workspace":"Workspace ({{count}})","discardAll":"Discard all","stageAll":"Stage all","noUnstagedChanges":"No unstaged changes","discardNFiles":"Discard changes in {{count}} files","stageNFiles":"Stage {{count}} files","discardChanges":"Discard changes","stageFile":"Stage file","loadingDiff":"Loading diff...","noDiffFiles":"No diff files","nFilesChangedPlain":"{{count}} files changed","nFilesChanged":"{{count}} files changed (vs {{branch}})","nFilesChangedWorktree":"{{count}} files changed (vs {{branch}}, incl. uncommitted)","noDiffFilesHeadHint":"Nothing committed on this branch yet — switch to Worktree to see uncommitted changes","loadingCommits":"Loading commits...","noCommits":"No commits","allLoaded":"All {{count}} records loaded","locateInTree":"Locate in directory tree","unsaved":"Unsaved","saveBeforeSwitch":"Current file has unsaved changes. Save before switching?","saveAndSwitch":"Save and switch","closeEdit":"Close edit (ESC)","closeBtn":"Close","copyFileContent":"Copy file content","toggleJsonReadable":"Toggle JSON readable mode","previewMarkdown":"Preview Markdown","exitPreview":"Exit Preview","collapseAllJson":"Fold","expandAllJson":"Full","viewBlame":"View line-by-line change history","viewDiff":"View changes against HEAD","exitDiff":"Exit Diff","diffLoadFailed":"Failed to load diff","editFile":"Edit file","backToPreview":"Back to preview","cannotPreview":"Cannot preview this file","selectFileToPreview":"Select a file to preview","staged":"Staged","unstaged":"Unstaged","selectFileToViewDiff":"Select a file to view diff","loadingDiffContent":"Loading diff...","clickCompareToLoad":"Click \\"Compare\\" to load branch diff","selectCommitToView":"Select a commit to view details","confirmDelete":"Confirm Delete","confirmDeleteMessage":"Move <file>{{name}}</file> to trash?","nFilesNMatches":"{{files}} files, {{matches}} matches","resultsTruncated":"Results truncated","noContentSearchResults":"No results","enterKeywordToSearch":"Enter keyword to search file contents","searchMinChars":"Search requires at least 2 characters"},"csv":{"table":"Table","raw":"Raw","empty":"Empty table","summary":"{{rows}} rows \xb7 {{cols}} columns","summaryFiltered":"{{rows}} / {{total}} rows matched \xb7 {{cols}} columns","loadMore":"Load more ({{shown}} / {{total}} shown)","filterPlaceholder":"Filter rows…","filterColumn":"Filter column","clearFilter":"Clear filter","allColumns":"All columns","noMatch":"No matching rows","sortHint":"Click to sort (asc / desc / off)"},"codeViewer":{"fileModifiedExternally":"File was modified externally. Saving will overwrite external changes.","useDiskVersion":"Use disk version","forceOverwrite":"Force overwrite","searchPlaceholder":"Search...","caseSensitive":"Case sensitive","wholeWordMatch":"Whole word match","unsavedConfirm":"You have unsaved changes. Close anyway?","discardChanges":"Discard changes","continueEditing":"Continue editing","unsavedExitConfirm":"You have unsaved changes. Exit edit mode?","clickToViewDetails":"Click to view details","clickToViewCommit":"Click to view commit details","nComments":"{{count}} comments","searchChat":"Search chat...","prevShiftEnter":"Previous (Shift+Enter)","nextEnter":"Next (Enter)","closeEsc":"Close (Esc)"},"chat":{"commandRefs_one":"{{count}} reference attached","commandRefs_other":"{{count}} references attached","commandRef_read":"read","commandRef_handoff":"hand on","commandRef_handoffMixed":"hand on","commandRef_targets":"target","commandRef_inline":"inlined","originSent":"@-mention from {{project}}","originDelegated":"Delegated from {{project}}","originUnknown":"another session","decisionContextAttached":"{{count}} related decisions attached","codexInput":{"queued":"Additional message waiting to send","accepted":"Codex accepted the additional message","failed":"Additional message delivery failed or is unconfirmed — open for details","images":"Images: {{count}}"},"recoveryCopy":"Failed run recovery copy","recoveryCopyHint":"Temporary copy of observed content. It may repeat saved history and is not sent to the model. Kept while this conversation remains open.","recoveryCopiesLabel":"Failed run recovery copies","recoveryAttachment":"Recovery attachment","startConversation":"Start a conversation","loadMoreHistory":"Load more...","scrollUpForMore":"↑ Scroll up to load more history","jumpToStart":"Jump to start","jumpToLatest":"Jump to latest","jumpToPrevUserMessage":"Previous user message","jumpToNextUserMessage":"Next user message","recentUserMessages":"Recent user messages","moreUserMessages":"More","userMessage":"User message","recentUserMessageNumber":"Recent user message {{index}} of {{total}}","imageMessage":"Image message","copyMessage":"Copy message","copyImage":"Copy image","copiedImage":"Image copied","forkSession":"Fork session from here","excerptTurn":"Excerpt this turn to a new session","newSession":"New session","continueFromHere":"Continue from here","continueFromHereDesc":"Keep all context through this turn","onlyThisTurn":"Only this turn","onlyThisTurnDesc":"Keep only this question and answer","onlyThisTaskDesc":"Keep this entire task, including all {{count}} inputs and replies","deleteTurn":"Delete turn","deletingTurn":"Deleting…","deleteTurnConfirm":"Delete this question, answer, and its tool records? This cannot be undone.","deleteTaskConfirm":"This task contains {{count}} user inputs, including additional steering. Delete the entire task with all its inputs, replies, and tool records? This cannot be undone.","deleteTurnConfirmAction":"Delete turn","deleteTurnWhileRunning":"A turn cannot be deleted while the session is running","sendToPeerPane":"Send this message to the other pane","imageN":"Image {{index}}","imagePreview":"Image preview","imageLoadFailed":"Could not load this image","toolCalls":"{{count}} tool calls","collapse":"▲ Collapse","expand":"▼ Expand","showMore":"Show more","showLess":"Show less","subagent":"Subagent","piChildStatus":{"interrupted":"Interrupted snapshot","truncated":"Truncated","running":"Running","done":"Done","failed":"Failed","cancelled":"Cancelled"},"subagentEmpty":"No subagent transcript found","subagentViewTitle":"View subagent transcript","workflowRun":"Run details","workflowViewTitle":"View workflow run details","workflowEmpty":"No workflow run journal found","workflowAgents":"agents","workflowViewAgent":"View","workflowUngrouped":"Ungrouped","viewQuestions":"View questions","viewAllFileChanges":"View all file changes","requestFailed":"Request failed","cannotReadStream":"Cannot read response stream","errorRetry":"An error occurred, please retry","codexResumeFailed":"Previous session is in use by another Codex client — started a new session; history was not carried over","codexResumeFailedPrevious":"Previous session","codexResumeFailedNew":"New session","codexContextCompacting":"Codex is compacting the context…","placeholder":"Type a message, / for skills, @ for bots","placeholderDisabled":"Generating... you can keep typing (ESC to cancel; if stuck, cancel and resend \'continue\')","placeholderRunning":"Generating... Enter sends now: it joins the current reply at its next step (ESC to stop)","imageSizeLimit":"Image size exceeds limit (max 5MB), current: {{size}}MB","viewGitChanges":"View Git changes","viewAllComments":"View all comments","userMessages":"User messages","projectNotes":"Project Notes","scheduledTasks":"Scheduled Tasks","quickInstructions":"Quick Instructions","globalInstructions":"Global Instructions","projectInstructions":"Project Instructions","noQuickInstructions":"No quick instructions yet","addQuickInstruction":"Add quick instruction","quickInstructionPlaceholder":"One-line instruction — Enter to save, Esc to cancel","insertQuickInstruction":"Insert into input (without sending)","addInstructionGroup":"New group","instructionGroupNamePlaceholder":"Group name — Enter to save, Esc to cancel","instructionGroupLabel":"Group","instructionGroupNone":"No group","deleteInstructionGroupConfirm":"Deleting \\"{{name}}\\" also deletes the {{count}} instruction(s) inside it. Continue?","editGlobalInstructions":"Edit global instructions","editProjectInstructions":"Edit project instructions","quickInstructionsMarkdownHint":"One top-level entry per line. Add lines beginning with “- ” after a group name for its instructions. Write \\\\n for a line break inside one instruction.","quickInstructionsMarkdownPlaceholder":"Continue\\nDraw with text\\n- Draw a login flow\\n- Draw a system architecture","quickInstructionsMarkdownError":"Invalid format on line {{line}}.","savingQuickInstructions":"Saving...","saveQuickInstructionsFailed":"Could not save. Your edits are still here; please try again.","context":"Context","output":"Output","copiedCommandTooltip":"Copied!","copyCommandTooltip":"Copy command: {{command}}","executedCommand":"Executed `{{command}}`{{exitInfo}}, output:\\n```\\n{{output}}\\n```","executedCommandFailed":"Failed to execute `{{command}}`: {{error}}","executionMode":"Execution Mode","checkBalance":"Check balance","balanceFailed":"Query failed — check the API key","balanceNeedsKey":"Set a DeepSeek API key first","balanceUnavailable":"Account is not available for requests","balanceEmpty":"No balance returned","openUsagePage":"Open DeepSeek usage console","checkQuota":"Check quota","quotaFailed":"Quota unavailable — check the API key","quotaNeedsKey":"Set an API key first","quotaEmpty":"No quota returned","quotaResetAt":"Resets {{time}}","openProviderConsole":"Open the provider console","planMode":"Plan mode","planModeDesc":"read-only, plans first without edits","planModeOn":"Plan mode on — read-only; send a task to get a plan","planModeOff":"Plan mode off","planModeHint":"Plan mode: read-only exploration that produces a plan without editing. Uncheck and resend to implement.","noHistory":"No history context","noHistoryDesc":"each prompt is independent","noHistoryHint":"No history context: each message is sent to the model on its own, with no prior conversation. The transcript above still records everything.","planTitle":"Plan (awaiting your review)","approvePlan":"Approve & run","planApproveHint":"No approval dialog here — click to exit plan mode and execute","approvePlanPrompt":"Approved — proceed with the plan above.","maximizePane":"Maximize this pane","restorePane":"Restore both panes","closePane":"Close this pane","singlePane":"Single pane","splitPane":"Split into two panes"},"console":{"enterCommandOrUrl":"Enter a command or URL to start","emptyIntro":"Type any of the following in the input bar to create a bubble:","bubbleCommand":"Command","bubbleInteractive":"Interactive","bubbleBrowser":"Browser","bubbleBrowserNoteIframe":"Some sites block iframe embedding — install Cockpit Bridge under Settings → Browser Extension before opening.","bubbleBrowserNoteCookie":"If a logged-in site first shows as signed out, refresh a few times to restore it.","bubbleDatabase":"Database","bubbleFilePreview":"File preview","loadingMore":"Loading...","loadMoreHistory":"Load more history","quickCommands":"Quick Commands","singleColumn":"Single column","dualColumn":"Dual column","envVars":"Environment Variables","launchShell":"Launch interactive shell","htmlApps":"HTML apps","inputPlaceholder":"Enter command or URL and press Enter... (↑↓ history, Tab complete)","scopeProject":"Project","scopeGlobal":"Global","tabSwitchEscClose":"Tab to switch \xb7 Esc to close","copyOutput":"Copy output","copyCommand":"Copy command","rerun":"Re-run","deleteRecord":"Delete record","searchPlaceholder":"Search...","searchMode":"Search","filterMode":"Filter","prevShiftEnter":"Previous (Shift+Enter)","nextEnter":"Next (Enter)","loadingTerminal":"Loading terminal...","clickToInput":"Click terminal area to type","stdinPlaceholder":"stdin input...","runningText":"Running...","exitCode":"Exit code: {{code}}","totalLines":"{{count}} lines total","globalCommands":"Global Commands","projectCommands":"Project Commands","noCustomCommands":"No custom commands yet","editGlobalCommands":"Edit global commands","editProjectCommands":"Edit project commands","quickCommandsTextHint":"One per line as \\"name: command\\". Names may only contain letters, digits, - and _; everything after the first colon is the command.","quickCommandsTextPlaceholder":"pg: psql -h localhost -U postgres\\ngitpull: git pull --rebase","quickCommandsTextError":"Line {{line}} is invalid; expected \\"name: command\\".","savingQuickCommands":"Saving...","saveQuickCommandsFailed":"Save failed. Your edits are kept; please retry.","restoreTooltip":"Restore ({{modKey}}M / ESC)","screenshotting":"Screenshotting...","outputFileDeleted":"[Output file deleted]"},"browser":{"blankPage":"Blank page","copyUrl":"Copy URL","openInNewWindow":"Open in new window","exitMaximize":"Exit maximize ({{modKey}}M)","maximize":"Maximize ({{modKey}}M)","pageLoadFailed":"Page load failed","openInTabFallback":"OpenCockpit Bridge is not connected — opened a plain new tab instead","movedToChrome":"Web pages now open in Chrome tabs, not in the console.","openInChrome":"Open in Chrome","openedInChrome":"Opened in Chrome — {{command}}","clickToWake":"Click to wake","sleeping":"Sleeping","loadingPage":"Loading...","loadFailed":"Load failed"},"database":{"connectionFailed":"Connection failed","connected":"Connected","connecting":"Connecting...","refreshTableList":"Refresh table list","filterTable":"T Tables","filterView":"V Views","noTables":"No tables","tabStructure":"Structure","tabData":"Data","tabSql":"SQL","filterActive":"Filter: {{count}} cols","clearAllFilters":"Clear all filters","deleteNRows":"Delete {{count}} rows","confirmDeleteRows":"Confirm delete?","copyCsvSelected":"Copy selected rows as CSV","copyCsvAll":"Export all as CSV","copyJsonSelected":"Copy selected rows as JSON","copyJsonAll":"Export all as JSON","copyCSV":"Copy CSV","CSV":"CSV","copyJSON":"Copy JSON","JSON":"JSON","selectTable":"Select a table","selectTableToView":"Select a table to view structure","selectTableForData":"Select a table to view data","columns":"Columns","colName":"Name","colType":"Type","colNullable":"Nullable","colDefault":"Default","primaryKey":"Primary Key","foreignKeys":"Foreign Keys","indexes":"Indexes","enable":"Enable","commaValues":"Comma-separated values","likePattern":"%pattern%","valuePlaceholder":"Value","apply":"Apply","clearFilter":"Clear","addRow":"+ Add Row","totalRows":"{{count}} rows","rowsAffected":"{{command}} — {{count}} rows affected ({{duration}}ms)","queryRows":"{{count}} rows ({{duration}}ms)","resultTruncated":"[Results truncated to 1000 rows]","sqlPlaceholder":"Enter SQL... ({{modKey}}Enter to execute)","executing":"Executing...","execute":"▶ Execute","deleteRowsFailed":"{{count}} rows failed to delete","inputParams":"Input Parameters","resultLabel":"Result"},"mysql":{"connectionFailed":"Connection failed","connected":"Connected","connecting":"Connecting...","refreshTableList":"Refresh table list","filterTable":"T Tables","filterView":"V Views","noTables":"No tables","tabStructure":"Structure","tabData":"Data","tabSql":"SQL","filterActive":"Filter: {{count}} cols","clearAllFilters":"Clear all filters","deleteNRows":"Delete {{count}} rows","confirmDeleteRows":"Confirm delete?","copyCsvSelected":"Copy selected rows as CSV","copyCsvAll":"Export all as CSV","copyJsonSelected":"Copy selected rows as JSON","copyJsonAll":"Export all as JSON","copyCSV":"Copy CSV","CSV":"CSV","copyJSON":"Copy JSON","JSON":"JSON","selectTable":"Select a table","selectTableToView":"Select a table to view structure","selectTableForData":"Select a table to view data","columns":"Columns","colName":"Name","colType":"Type","colNullable":"Nullable","colDefault":"Default","primaryKey":"Primary Key","foreignKeys":"Foreign Keys","indexes":"Indexes","enable":"Enable","commaValues":"Comma-separated values","likePattern":"%pattern%","valuePlaceholder":"Value","apply":"Apply","clearFilter":"Clear","addRow":"+ Add Row","totalRows":"{{count}} rows","rowsAffected":"{{command}} — {{count}} rows affected ({{duration}}ms)","queryRows":"{{count}} rows ({{duration}}ms)","resultTruncated":"[Results truncated to 1000 rows]","sqlPlaceholder":"Enter SQL... ({{modKey}}Enter to execute)","executing":"Executing...","execute":"▶ Execute","deleteRowsFailed":"{{count}} rows failed to delete"},"redis":{"neverExpires":"Never expires","expired":"Expired","loadFailed":"Load failed","deleteFailed":"Delete failed","saveFailed":"Save failed","scanPlaceholder":"SCAN pattern...","scanSearch":"Search (SCAN)","noKeys":"No keys","loadMore":"Load more...","tabData":"Data","tabInfo":"Info","tabCli":"CLI","selectKey":"Select a key","keyNotExist":"Key does not exist","unsupportedType":"Unsupported type: {{type}}","nItems":"{{total}} items","showingN":"showing {{count}}","nMembers":"{{total}} members","nEntries":"{{total}} entries","cliHint":"Enter Redis commands, e.g. PING, GET key, KEYS *","cliPlaceholder":"Enter command..."},"git":{"switchBranch":"Switch branch","searchBranch":"Search branches...","noBranches":"No branches available","noMatchingBranches":"No matching branches","localBranches":"Local Branches","remoteBranches":"Remote Branches","branchNotFound":"Branch not found","selectBranch":"Select branch...","currentBranch":"Current","notGitRepo":"Current directory is not a Git repository","cannotGetBranches":"Cannot get branch info","getBranchesFailed":"Failed to get branch info","discardAllConfirm":"Discard changes in {{count}} workspace files? This cannot be undone.","worktree":{"title":"Git Worktree","count":"{{count}} worktrees","selectBranch":"Select branch","addWorktree":"+ Add Worktree","confirmDelete":"Confirm Delete","confirmDeleteMsg":"Delete this worktree?","path":"Path:","branch":"Branch:","locked":"Locked","unlock":"Unlock","lock":"Lock","searchBranch":"Search branches...","noBranches":"No available branches"}},"comments":{"addComment":"Add Comment","lineRange":"Line {{start}}-{{end}}","inputPlaceholder":"Enter comment...","newComment":"New comment {{range}}","commentPlaceholder":"Enter comment... ({{modKey}}Enter to submit, Esc to cancel)","nComments":"{{count}} comments","allComments":"All Comments","copyAllComments":"Copy all comments","noComments":"No comments yet","clearAll":"Clear all","totalComments":"{{count}} comments total","aiReply":"AI Reply","noContent":"(no content)","linesCount":"({{count}} lines)","codeRef":"Here are my annotated comments and references:","note":"Note: {{content}}","submitting":"Submitting...","enterSubmit":"Enter to submit \xb7 Shift+Enter for new line","submitComment":"Submit Comment","askAI":"Ask AI","inputQuestion":"Enter your question...","aiGenerating":"Generating, please wait...","enterSend":"Enter to send \xb7 Shift+Enter for new line","sendToAI":"Send to AI","aiResponding":"AI is responding..."},"fileContextMenu":{"createFile":"New File","copyFile":"Copy File","copyFolder":"Copy Folder","pasteHere":"Paste Here","deleteFile":"Delete File","deleteFolder":"Delete Folder","copyRelativePath":"Copy Relative Path","copyAbsolutePath":"Copy Absolute Path","copyRelativeDirPath":"Copy Relative Dir Path","copyAbsoluteDirPath":"Copy Absolute Dir Path","copyFileName":"Copy File Name","copyFolderName":"Copy Folder Name"},"settings":{"title":"Settings","theme":"Theme","themeLight":"Light","themeDark":"Dark","themeSystem":"System","browserExtension":"Browser Extension","extensionInstalled":"OpenCockpit Bridge connected","extensionNotInstalled":"OpenCockpit Bridge not connected","extensionDescription":"Lets `cockpit browser` drive your Chrome tabs and Console browser bubbles. Every tab gets an id (in the extension\'s popup and icon tooltip); Cockpit asks before acting on a tab you haven\'t allowed — permission is per tab.","installSteps":"Installation steps:","step1":"1. Open Chrome and navigate to","step2":"2. Enable \\"Developer mode\\" in the top-right corner","step3":"3. Click \\"Load unpacked\\"","step4mac":"4. Press <kbd>Cmd+Shift+G</kbd> → paste the path below → Enter","copyExtensionPath":"Copy extension directory path","reloadExtension":"Reload extension","about":"About","language":"Language","languageAuto":"System","switchDark":"Switch to dark","switchLight":"Switch to light","agentsBundled":"bundled","codexSection":"Codex","codexSuggestions":"Suggest next prompt","codexSuggestionsDescription":"After each reply, ask Codex to predict your next message and show it in the input box (Tab to accept). Costs one small extra request per turn."},"editor":{"placeholder":"Write something... Type / for commands","noteTitle":"{{name}} - Notes","noteUntitled":"Notes","globalNote":"Global note","emptyNote":"Empty note","searchNotes":"Search notes...","saving":"Saving...","conflictReloaded":"This note was changed elsewhere. Loaded the latest version; your recent unsaved edits were discarded.","linkPlaceholder":"Enter URL...","confirmLink":"Confirm","removeLink":"Remove link","heading1":"Heading 1","heading2":"Heading 2","heading3":"Heading 3","bold":"Bold","italic":"Italic","strikethrough":"Strikethrough","inlineCode":"Inline code","link":"Link","bulletList":"Bullet list","orderedList":"Ordered list","taskList":"Task list","blockquote":"Blockquote","codeBlock":"Code block","table":"Table","horizontalRule":"Horizontal rule","insertRowAbove":"Insert row above","insertRowBelow":"Insert row below","insertColumnLeft":"Insert column left","insertColumnRight":"Insert column right","deleteRow":"Delete row","deleteColumn":"Delete column","deleteTable":"Delete table","deleteCodeBlock":"Delete code block","toc":"TOC","expandToc":"Expand TOC","collapseToc":"Collapse TOC"},"slashCommands":{"heading1":"Heading 1","heading1Desc":"Large heading","heading2":"Heading 2","heading2Desc":"Medium heading","heading3":"Heading 3","heading3Desc":"Small heading","bulletList":"Bullet List","bulletListDesc":"Bulleted list","orderedList":"Ordered List","orderedListDesc":"Numbered list","taskList":"Task List","taskListDesc":"Checkable task list","blockquote":"Blockquote","blockquoteDesc":"Quote block","codeBlock":"Code Block","codeBlockDesc":"Code snippet","table":"Table","tableDesc":"Insert 3\xd73 table","horizontalRule":"Divider","horizontalRuleDesc":"Horizontal divider","link":"Link","linkDesc":"Insert hyperlink"},"commands":{"plan":"Enable plan mode \xb7 /plan <task> to plan it \xb7 /plan off to disable"},"markdown":{"copied":"✓ Copied","copy":"Copy"},"imagePreview":{"previewImage":"Preview image","deleteImage":"Delete image","copyImage":"Copy image","copiedImage":"Image copied"},"tokenStats":{"title":"Claude Code Token Stats","activeHours":"Active Hours Distribution","hourSessions":"{{h}}:00 — {{count}} sessions","messages":"Messages","toolCalls":"Tool Calls","activityTrend":"Activity Trend","byModel":"By Model","tokenUsage":"Token Usage","equivalentCost":"Equivalent Cost","modelCostDetail":"Model Cost Details","model":"Model","share":"Share","total":"Total","totalSessions":"Total Sessions","totalMessages":"Total Messages","equivalentApiCost":"Equivalent API Cost","longestSession":"Longest Session","firstUse":"First Use","notFound":"~/.claude/stats-cache.json not found","day":"Day","week":"Week","month":"Month"},"toolCall":{"inputParams":"Input Parameters","resultLabel":"Result","inputParamsTitle":"View input parameters","resultTitle":"View result","input":"Input","result":"Result","details":"Details","detailsTitle":"View input and result","foldedLines":"... ({{count}} lines)"},"fileEditor":{"unsavedConfirm":"You have unsaved changes. Close anyway?","discardChanges":"Discard changes","continueEditing":"Continue editing","externallyModified":"File was modified externally. Saving will overwrite external changes.","useDiskVersion":"Use disk version","forceOverwrite":"Force overwrite"},"quickFileOpen":{"placeholder":"Type file name to open...","noMatch":"No matching files","recent":"Recent","selectHint":"Select","openHint":"Open","closeHint":"Close"},"envManager":{"title":"Environment Variables","tabScope":"Current Tab Only","globalScope":"Global Environment Variables","varNamePlaceholder":"Variable name (e.g. NODE_ENV)","varValuePlaceholder":"Value (e.g. production)","valuePlaceholder":"Value","noVars":"No environment variables yet. Add one to get started."},"aliasManager":{"title":"Command Aliases","description":"Set shortcut aliases for common commands (global)","aliasPlaceholder":"Alias (e.g. ll)","commandPlaceholder":"Full command (e.g. ls -la)","fullCommandPlaceholder":"Full command","usage":"Usage tip:","usageDesc":"Type an alias to execute the corresponding full command","noAliases":"No command aliases yet. Add one to get started."},"diffViewer":{"fileChanges":"File Changes ({{count}})","expandFull":"Expand to full width","exitFull":"Back to column","openFull":"Open full","openFullOn":"On: diffs open full width (click to open in column)","openFullOff":"Off: diffs open in column (click to open full width)","toggleFileTree":"Toggle file tree","selectFileToView":"Select a file to view changes","sideBySide":"Side by side","unified":"Unified","viewSplit":"Split","viewUnified":"Unified","previewFile":"Preview file","copiedAll":"Full text copied","compact":"Compact","full":"Full","gap":{"hidden":"{{count}} lines hidden","more":"\xb7\xb7\xb7 more +{{count}} \xb7\xb7\xb7","expandUp":"Expand {{count}} lines up","expandDown":"Expand {{count}} lines down","expandAll":"Click to expand {{count}} lines"},"loadingSnapshots":"Loading snapshots…","loadingFile":"Loading file diff…","fileLoadFailed":"Could not load the file diff","noChanges":"No file changes detected in this turn","notViewable":"Binary or oversized file — diff not viewable","externalChange":"Concurrent change from another session/process","reconstructed":"reconstructed","reconstructedHint":"Rebuilt from tool-call parameters — not a disk snapshot","truncated":"Too many files — list truncated","aggregate":"Aggregate","openAggregate":"Open aggregate","openAggregateOn":"On: diffs open on the aggregate (click to open per call)","openAggregateOff":"Off: diffs open per call (click to open on the aggregate)","aggregateOn":"View the net change across all calls","aggregateOff":"Back to per-call view","fileChangesAggregate":"File Changes ({{count}}) \xb7 Aggregate","aggregateSummary":"{{count}} files changed (across {{calls}} calls)","aggregateLoading":"Aggregating changes…","aggregateEmpty":"No net change after aggregation","aggregateUnavailable":"No snapshots — cannot aggregate","aggregateFailed":"Aggregation failed","aggregateBaselineSkipped":"Skipped {{count}} call(s) up to the last baseline change","aggregateBaselineIncluded":"Including {{count}} call(s) up to the last baseline change","callsBaselineHidden":"Hid {{count}} baseline-change call(s)","callsBaselineShown":"Showing {{count}} baseline-change call(s)","aggregateSkippedHint":"Calls that ran git rebase / pull / checkout and similar count as baseline changes (switching or pulling code rather than writing it); the aggregate starts after the last one. Click to toggle.","imageBefore":"Before","imageAfter":"After","imageAdded":"Added","imageDeleted":"Deleted","imageLoadFailed":"Failed to load image","imageUnavailable":"Image not present in either revision"},"commitDetail":{"title":"Commit Details","hash":"Hash:","author":"Author:","date":"Date:","files":"Files:","nChanges":"{{count}} changes","loadingFiles":"Loading files...","noFileChanges":"No file changes","loadingDiff":"Loading diff...","selectFileToView":"Select a file to view diff"},"askQuestion":{"title":"Questions","nQuestions":"{{count}} questions","checkedN":"{{count}} checked","copyChecked":"Copy {{count}} checked Q&A","copyAll":"Copy all Q&A","sendChecked":"Send {{count}} checked Q&A to AI","sendAll":"Send all Q&A to AI","sendNoChat":"No active chat session","checkToCopy":"Check to copy","custom":"Custom","customPlaceholder":"Enter custom answer...","notSelected":"(not selected)"},"tabBar":{"closeTab":"Close session","closeAll":"Close all sessions","newTab":"New session"},"tabManagerTopBar":{"copyPageUrl":"Copy page URL","copyDirPath":"Copy directory path","refreshProject":"Refresh project","openInVSCode":"Open in VS Code","openInCursor":"Open in Cursor","aliasesGlobal":"Command Aliases (Global)","tokenStats":"Token Stats","openSurething":"Open Surething","openOnPhone":"Open on phone","phoneQrHint":"Scan with your phone to open Cockpit","phoneQrSessionHint":"Scan with your phone to open this session","phoneQrTokenWarning":"This code contains your access token. Don\'t share it.","phoneQrFailed":"Could not generate the QR code"},"hoverTooltip":{"findReferences":"Find References","search":"Search"},"todoViewer":{"title":"Task List","progress":"{{completed}} / {{total}} done"},"userMessages":{"title":"User Messages","noMessages":"No user messages","searchPlaceholder":"Search user messages…","noResults":"No matching messages","loadFailed":"Failed to load","count":"{{shown}} / {{total}}","jumping":"Loading the turns around this message…"},"shortIdBadge":{"clickToDisconnect":"Click to disconnect","clickToRegister":"Click to register and copy CLI command","setTitle":"Name this bubble (so /cc can find it later)","setTitlePlaceholder":"set title","editTitle":"Edit title","titleSet":"Title: {{title}}","dialogTitle":"Name this bubble","dialogPlaceholder":"e.g. alloydb proxy, staging admin"},"api":{"pathForbidden":"Operation not allowed on this path","deleteForbidden":"Delete not allowed on this path","notAFolder":"Target is not a folder","imageTooLarge":"Image too large to preview","cannotPreviewBinary":"Cannot preview binary file","fileTooLarge":"File too large to preview (over 10MB)","fileModifiedExternally":"File was modified externally"},"folderPicker":{"title":"Open Folder","placeholder":"Type or paste a path, e.g. ~/Work/my-app","open":"Open","showHidden":"Show hidden","hint":"↑↓ select \xb7 Tab/Enter go in \xb7 ⌘/Ctrl+Enter open","empty":"No subfolders","noMatch":"No matching folders","notFound":"Folder not found","notDirectory":"Not a folder","denied":"Permission denied. On macOS, grant access in System Settings › Privacy & Security."},"confirm":{"title":"Notice","ok":"OK","cancel":"Cancel"},"floatingToolbar":{"addComment":"Add Comment","sendToAI":"Send to AI","search":"Search"},"quickReply":{"optionA":"A","optionB":"B","optionC":"C","optionD":"D","allRecommended":"Rest recommended","thisOne":"This one","notThis":"Not this","why":"Why?","elaborate":"Say more","example":"Give an example","start":"Do it","continue":"Continue","ok":"OK","done":"Done","edit":"Edit quick replies","editTitle":"Edit quick replies","editHint":"One line per row; separate phrases with commas. Each phrase is sent to the chat exactly as written.","editPlaceholder":"This one, Not this\\nWhy?, Say more","restoreDefault":"Restore defaults","save":"Save","cancel":"Cancel","customizedFor":"Customizing the {{lang}} phrases — the other language is unaffected.","langEn":"English","langZh":"Chinese","saveFailed":"Failed to save quick replies"},"searchResults":{"title":"Search Results","nMatches":"({{count}} matches)","searching":"Searching...","noResults":"No matches","scopeSelected":"Selected","scopeAll":"All"},"references":{"title":"References","searching":"Searching...","notFound":"No references found"},"gitFileTree":{"noFiles":"No files"},"deps":{"action":"Dependencies","none":"none","symbolMessage":"Analyse the dependencies of {{name}} ({{path}}:{{lines}}).\\n\\nCallers: {{callers}}\\nCalls: {{callees}}\\nExternal: {{externals}}\\n\\nExplain which modules it is coupled to, and which of those dependencies could be narrowed."},"explain":{"action":"Explain","fileMessage":"Explain {{path}}","symbolMessage":"Explain {{name}} ({{path}}:{{lines}})","selectionMessage":"Explain","commitFileMessage":"Explain what git commit {{hash}} changed in {{path}}","compareFileMessage":"Explain the git changes to {{path}} in {{base}}...HEAD","compareFileWorktreeMessage":"Explain the changes to {{path}} relative to {{base}}, including uncommitted work","stagedFileMessage":"Explain the git staged changes to {{path}}","unstagedFileMessage":"Explain the git working tree changes to {{path}}"},"bots":{"sessionBadge":"Session","sessionGroup":"Session Bots","sessionGroupHint":"Sessions ticked \\"Can be @-mentioned\\" in their title dialog; @-mentioning one sends the task into that session","sessionGone":"The session no longer exists","sessionNameInvalid":"Its title cannot be a name (multi-line or contains @); rename it to @-mention it","sessionUsage":"Write \\"@{{name}} <task>\\" in any session to send the task into this one","removeSession":"Remove from Bots","title":"Bots","search":"Search bots","addExisting":"Add bot","addTooltip":"Add as Bot","emptyNoMatch":"No bots match your search.","emptyNoBots":"No bots of your own yet.","emptyCreatePrefix":"Use","emptyCreateSuffix":"in chat to create one.","emptyAddExisting":"add an existing Bot directory","invalid":"Invalid","builtin":"Built-in","mine":"Mine","tabFiles":"Files","tabSessions":"Sessions","noSessions":"No recent sessions for this Bot","sessionsScope":"Every session run in its folder, plus sessions it recently dispatched elsewhere","selectHint":"Select a Bot on the left to see its files and sessions","remove":"Remove registration","open":"Open as project","pathPlaceholder":"Absolute path to a Bot directory or its BOT.md","addHint":"The directory must contain a BOT.md. Its files are not changed.","added":"Bot added","alreadyAdded":"Already added","removed":"Bot removed; its files were kept.","loadFailed":"Failed to load bots","saveFailed":"Failed to add bot","removeFailed":"Failed to remove bot"},"contextInspector":{"title":"Session context","open":"View context contents","used":"Used","window":"Window","free":"Free","unknownWindow":"Window size unknown","capturedAt":"Recorded {{time}}","refresh":"Refresh","loadFailed":"Failed to read context","noSession":"The session has not started yet; there is no context","empty":"No context items to show","selectItem":"Select an item on the left to see its content","noContent":"The engine does not expose the text of this item, only its name and token count","truncated":"Content is long; showing the first {{count}} characters","estimated":"≈ marks character-based estimates","items":"{{count}} items","copy":"Copy","copied":"Copied","groups":{"prompt":"Prompt","memory":"Memory files","tools":"Tools","skills":"Skills & agents","messages":"Messages","tool_io":"Tool calls","reasoning":"Reasoning","other":"Other"},"categories":{"system":"System prompt","instructions":"Extra instructions","memory":"Memory files","tools":"Tool definitions","mcp":"MCP tools","skills":"Skills","agents":"Custom agents","environment":"Environment","messages":"Messages","tool_io":"Tool calls & results","reasoning":"Reasoning","summary":"Compaction summary","other":"Other"},"notes":{"system_prompt_hidden":"The engine assembles its system prompt internally and does not expose the text; only section names and token counts are listed.","tool_schemas_hidden":"Built-in tools expose names and token counts only, not their schemas.","skills_listing_only":"Skills occupy only their name and description in context; the full body loads when a skill is used.","snapshot_from_last_turn":"The breakdown was recorded at the end of the last turn, not live.","no_snapshot_yet":"No breakdown has been recorded for this session yet; exact numbers appear after the next turn. Showing estimates from the transcript.","reasoning_encrypted":"Some reasoning or compaction content is encrypted: its text cannot be shown and its size cannot be estimated.","after_compaction":"The session has been compacted; only content after the latest compaction is included.","estimated_breakdown":"Per-category token counts are estimates; the total at the top is the engine\'s own number.","usage_unknown":"The engine reported no context size for this session."}}}'),W=JSON.parse('{"common":{"openAsProject":"作为项目打开","save":"保存","cancel":"取消","delete":"删除","close":"关闭","minimize":"最小化","copy":"复制","edit":"编辑","file":"文件","codeMap":"代码地图","diff":"Diff","confirm":"确认","loading":"加载中...","search":"搜索","refresh":"刷新","retry":"重试","submit":"提交","copied":"已复制","saved":"已保存","failed":"失败","noMatch":"无匹配","noData":"无数据","done":"完成","justNow":"刚刚","minutesAgo":"{{count}}分钟前","hoursAgo":"{{count}}小时前","daysAgo":"{{count}}天前","monthsAgo":"{{count}}个月前","yearsAgo":"{{count}}年前","saveFailed":"保存失败","copyFailed":"复制失败","deleteFailed":"删除失败","operationFailed":"操作失败","copiedPath":"已复制路径","copyPath":"复制路径","openInConsole":"在 Console 气泡打开","copyAbsPath":"复制绝对路径","loadMore":"加载更多","noResult":"无匹配结果","selected":"已选择","selectAll":"全选","hint":"提示","confirmBtn":"确定","cancelBtn":"取消","preview":"预览","readable":"可读","previous":"上一个","next":"下一个","all":"全部","input":"输入","result":"结果","line":"行","lines":"行","running":"运行中","connecting":"连接中","connected":"已连接","connectionFailed":"连接失败","builtin":"内置","global":"全局","project":"项目","current":"当前","code":"代码"},"htmlApps":{"tabFiles":"文件","tabRun":"运行","mine":"我的","selectHint":"选择左侧应用,查看它的文件和源码;点「运行」才会运行它(应用拥有完整的命令行权限)。","openFull":"全屏打开(可最小化到侧边栏)","title":"HTML 应用","addTooltip":"添加到 HTML 面板","added":"已添加到 HTML 面板","alreadyAdded":"已添加过","addFailed":"添加失败","add":"添加","adding":"添加中...","addHtmlApp":"添加 HTML 应用","searchPlaceholder":"搜索 HTML 应用...","pathLabel":".html 文件的绝对路径","invalid":"无效","builtin":"内置","noDescription":"无描述","emptyNoApps":"还没有自定义 HTML 应用。","emptyCreatePrefix":"在聊天里使用","emptyCreateSuffix":"创建新应用。","addExisting":"添加已有 HTML 文件","viewDocs":"查看文档","emptyNoMatch":"没有匹配的 HTML 应用。"},"skills":{"addTooltip":"添加到 Skills 面板","added":"已添加到 Skills 面板","alreadyAdded":"已添加过","addFailed":"添加失败","title":"Skills","searchPlaceholder":"搜索 skills...","clearSearch":"清除","addSkill":"添加 Skill","emptyNoSkills":"还没有 skill。","emptyIntroPrefix":"在聊天里使用","emptyIntroSuffix":"把可复用经验整理成 SKILL.md。","emptyNoMatch":"没有匹配的 skill。","viewDocs":"查看文档","pathLabel":"SKILL.md 的绝对路径","pathPlaceholder":"/Users/you/.../skills/foo/SKILL.md","add":"添加","adding":"添加中...","invalid":"无效","builtinGroup":"内置","builtinReadOnly":"内置技能,只读","selectHint":"选择左侧技能,查看它的 SKILL.md","fileTooLarge":"文件超过 1 MB,不预览","fileNotPreviewable":"该文件无法预览(二进制)","copyPath":"复制路径","noDescription":"无描述","previewTitle":"Skill 预览","source":"源码","cannotRead":"无法读取文件。"},"toast":{"savedSuccess":"已保存","saveFailed":"保存失败","copiedName":"已复制: {{name}}","copyFailed":"复制失败","deleteFailed":"删除失败","operationFailed":"操作失败","staged":"已暂存","stageFailed":"暂存失败","unstaged":"已取消暂存","unstageFailed":"取消暂存失败","stagedNFiles":"已暂存 {{count}} 个文件","unstagedNFiles":"已取消暂存 {{count}} 个文件","discardFailed":"放弃变更失败","discardedNFiles":"已放弃 {{count}} 个文件的变更","deletedFile":"已删除文件","discardedChanges":"已放弃变更","pastedFile":"已粘贴: {{name}}","pasteFailed":"粘贴失败","noFileToPaste":"没有可粘贴的文件","createdFile":"已创建文件: {{name}}","createFailed":"创建失败","movedToTrash":"已移动到回收站: {{name}}","copiedPageUrl":"已复制页面地址","copiedDirPath":"已复制目录路径","switchedToBranch":"已切换到 {{branch}}","switchBranchFailed":"切换分支失败","loadBranchFailed":"加载分支列表失败","copiedCommand":"已复制: {{command}}","copiedMessage":"已复制消息","sentToPeer":"已发送到另一栏","sendToPeerFailed":"发送到另一栏失败","forkFailed":"分叉会话失败","excerptFailed":"摘录本轮失败","turnDeleted":"已删除本轮","deleteTurnFailed":"删除本轮失败","copiedUrl":"已复制网址","copiedOutput":"已复制输出","copiedCmd":"已复制命令","copiedComment":"已复制评论","copiedAllComments":"已复制全部评论","copiedFileContent":"已复制文件内容","copiedQA":"已复制 {{count}} 个问答","copiedAllQA":"已复制所有问答","sentQA":"已发送给 AI","readFileFailed":"读取文件失败","fileOutsideProject":"此处无法打开文件预览","reviewCreated":"评审已创建,链接已复制","reviewUpdated":"评审已更新,链接已复制","reviewCreateFailed":"创建评审失败","sharingClosed":"已关闭分享","sharingCloseFailed":"关闭分享失败","linkCopied":"链接已复制","addCommentFailed":"添加评论失败","deleteCommentFailed":"删除评论失败","editCommentFailed":"编辑评论失败","addReplyFailed":"添加回复失败","deleteReplyFailed":"删除回复失败","editReplyFailed":"编辑回复失败","disconnected":"已断开: {{id}}","pluginReloading":"插件重载中...","worktreeCreateSuccess":"Worktree 创建成功: {{name}}","worktreeCreateFailed":"创建 worktree 失败","worktreeLoadFailed":"加载 worktree 列表失败","worktreeDeleted":"Worktree 已删除","worktreeDeleteFailed":"删除 worktree 失败","worktreeLocked":"已锁定","worktreeUnlocked":"已解锁"},"workspace":{"selectProject":"选择一个项目开始","searchProjectPath":"搜索项目路径...","loadingProjects":"加载项目中...","projectNotFound":"未找到项目","sessions":"{{count}} 会话","loadingSessions":"加载会话...","noSessions":"无会话记录","loadingText":"加载中...","openProject":"打开项目","expandSidebar":"展开侧边栏","collapseSidebar":"折叠侧边栏","notes":"笔记","skills":"技能","apps":"应用","settings":"设置","help":"帮助","updateAvailable":"新版本 v{{version}} 可用","copyUpgradeCommand":"复制 cockpit update","updateNow":"立即更新","updating":"正在更新…","updateComplete":"更新完成","updateFailed":"更新失败","updateCardPreparing":"正在准备更新…","updateCardInstalling":"正在下载并安装","updateCardRepairing":"正在修复原生依赖","updateCardUpToDate":"已是最新版本 v{{version}}","updateCardCopyFix":"复制修复命令","updateCardFixCopied":"已复制修复命令","updateCardRollingBack":"安装失败,正在回滚","updateCardRestarting":"正在重启 Cockpit…","updateCardDone":"已更新到 v{{version}}","updateCardElapsed":"已用 {{seconds}} 秒","updateCardBaseline":"上次约 {{seconds}} 秒","updateCardNoLiveStatus":"暂时读不到实时状态,更新仍在进行","updateCardRolledBack":"已回滚到原版本,Cockpit 可正常使用。","updateCardManualHint":"可在终端手动重试:","updateCardLogHint":"日志:{{path}}","updateRestartNote":"Cockpit 将在后台重启。","viewChangelog":"查看变更日志","serverRestarted":"Cockpit 已在后台更新。","serverReloadAfterRestart":"Cockpit 已重启,请重新加载页面。","reloadNow":"刷新","upgradeCommandCopied":"已复制 `cockpit update`","projectNotes":"项目笔记","closeProject":"关闭项目","unsentDraft":"有未发送的输入","bots":"机器人"},"mobile":{"useDesktop":"桌面版","messagePlaceholder":"发消息…","send":"发送","stop":"停止","enableNotifications":"开启通知","disableNotifications":"关闭通知","notifyError":"无法开启通知","useMobile":"手机版","newChat":"新会话","voiceInput":"语音输入","voiceStop":"停止语音输入","voiceListening":"正在听…","voiceDenied":"麦克风权限被拒绝,请在浏览器设置里允许","voiceFailed":"语音输入失败:{{reason}}","voiceUnsupported":"此浏览器无法语音识别,请用键盘上的麦克风听写","quickInstructionsHint":"点一下填入输入框"},"sessions":{"recentSessions":"最近会话","favorites":"收藏会话","titleSingleLine":"标题只能有一行,不能包含换行或 \\\\n","titleNoAt":"标题不能包含 @","titleNotMentionable":"当前标题不能用来 @:{{reason}}。请改个名字","mentionable":"可被 @ 调用","mentionableHint":"勾选后加入 Bots 列表,可在任意会话里用「@标题 任务」把任务派给它","suggestTitle":"让 AI 起个标题","titleSuggestFailed":"生成标题失败:{{reason}}","noFavorites":"暂无收藏会话,在 Tab 栏点击星标可添加","addFavorite":"收藏此会话","removeFavorite":"取消收藏","selectFavoriteHint":"选择左侧收藏,查看它的会话消息","noSessionMessages":"该会话暂无消息,或记录已不存在","selectSessionHint":"选择左侧会话,查看它的消息","dateToday":"今天","dateYesterday":"昨天","dateLast7Days":"最近 7 天","dateEarlier":"更早","runningCount":"{{count}} 运行中","unreadCount":"{{count}} 未读","noSessions":"暂无会话记录","running":"运行中","done":"完成","dragToReorder":"拖动以调整本项目内的顺序","restoreTitle":"恢复默认标题","titleEmpty":"标题不能为空。","titleLoadFailed":"无法读取标题,请关闭后重试。","titleSaveFailed":"保存标题失败,请重试。","editTitle":"编辑标题","projectSessions":"项目会话","browseAllSessions":"浏览所有会话","sessionList":"会话列表","search":"搜索","searchSessions":"搜索会话...","searchRecentSessions":"搜索最近会话","loadSessionsFailed":"加载会话失败","loadingSessions":"加载会话中...","noMatchingSessions":"未找到匹配的会话","noSessionsYet":"暂无会话","projectList":"项目列表","openFolder":"打开文件夹","loadingHistory":"加载历史消息...","sessionsTab":"会话","pullRequestsTab":"PR","searchPullRequests":"搜索 编号 / 链接 / 标题","allRepos":"全部仓库","allEngines":"全部引擎","noPullRequests":"最近会话里还没有开过 PR","noPullRequestsHint":"会话里运行 gh pr create 后,会自动出现在这里","noMatchingPullRequests":"未找到匹配的 PR","selectPullRequestHint":"选择左侧 PR,查看它的会话","pullRequestSessions":"共 {{count}} 个会话","openPullRequest":"打开 PR","copyResumeCommand":"复制 resume","resumeCommandCopied":"已复制:{{command}}","copyFailed":"复制失败"},"scheduledTasks":{"title":"定时任务","aboutToTrigger":"即将触发","secondsLater":"{{count}}秒后","minutesLater":"{{count}}分钟后","hoursMinutesLater":"{{h}}小时{{m}}分后","hoursLater":"{{h}}小时后","onceType":"一次性({{duration}}后)","everyDuration":"每{{duration}}","completed":"已完成","paused":"已暂停","activeCount":"{{running}} 个活跃","pausedCount":"{{paused}} 个暂停","noScheduledTasks":"暂无定时任务,在聊天输入栏点击时钟按钮创建","lastResult":"上次","runNow":"立即运行","deleteFailed":"删除任务失败","resume":"恢复","pause":"暂停","completedCount":"已完成 ({{count}})","pendingCount":"{{count}} 个待查看","openSession":"打开会话","selectTaskHint":"选择左侧任务,查看它的会话消息","noTaskMessages":"该任务的会话暂无消息","success":"成功","failure":"失败","inFlight":"正在运行","interrupted":"已中断","createTask":"创建定时任务","editTask":"编辑定时任务","sendMessage":"发送消息","messagePlaceholder":"输入要发送的消息...","taskFile":"任务文件","taskFilePlaceholder":"/Users/you/project/tasks/daily-report.md","taskFileHint":"填写绝对路径。触发时会让 agent 先读取该文件,再按其中描述执行——文件内容改动下次触发即生效。","taskFilePromptHeader":"请先读取以下任务文件,再据此执行:","type":"类型","once":"一次性","interval":"周期","quickSelect":"快捷选择","customCron":"自定义 Cron 表达式","customDuration":"自定义时长","cronPlaceholder":"例: 0 9 * * 1-5 (工作日9点)","cronFormat":"格式:分 时 日 月 星期(如 0 9 * * 1-5)","amountPlaceholder":"数值","limitTimeRange":"限制执行时段","startAt":"起始时间(可选)","startAtHint":"留空则从现在开始;设置后固定在「起始时间 + N \xd7 间隔」执行,不随运行时长漂移","clear":"清除","fromTime":"自 {{time}} 起","to":"至","saveBtn":"保存 ({{modKey}}↩)","createBtn":"创建 ({{modKey}}↩)","5minLater":"5 分钟后","15minLater":"15 分钟后","30minLater":"30 分钟后","1hourLater":"1 小时后","3hoursLater":"3 小时后","6hoursLater":"6 小时后","1dayLater":"1 天后","3daysLater":"3 天后","every15min":"每 15 分钟","every30min":"每 30 分钟","every1hour":"每 1 小时","every2hours":"每 2 小时","every6hours":"每 6 小时","every12hours":"每 12 小时","everyDay":"每 1 天","daily9am":"每天 09:00","daily6pm":"每天 18:00","weeklyMon9am":"每周一 09:00","monthly1st9am":"每月 1 号 09:00","unit":{"minute":"分钟","hour":"小时","day":"天"},"duration":{"minute":"{{count}}分钟","hour":"{{count}}小时","day":"{{count}}天"}},"runningTerminals":{"title":"终端","status":"{{count}} 个终端 \xb7 {{projects}} 个项目","keys":"↑↓ 选择 \xb7 Enter / 双击 打开 \xb7 Del 停止 \xb7 Esc 关闭","empty":"没有正在运行的终端","currentProject":"当前项目","stop":"停止","confirmStop":"停止这个进程?","stopping":"停止中…","stopFailed":"停止终端失败","openTerminal":"打开终端","typeHint":"点击终端即可输入","modePty":"PTY \xb7 交互式终端","modePipe":"管道 \xb7 仅输出","ended":"已结束","selectHint":"选择左侧终端,查看它的输出","notFound":"没找到这个终端的气泡"},"cron":{"everyNMinutes":"每 {{n}} 分钟","everyNHours":"每 {{n}} 小时整点","everyMinute":"每分钟","everyHourAtMin":"每小时第 {{m}} 分","hourlyEveryMin":"{{h}} 点每分钟","daily":"每天 {{time}}","weekdays":"工作日","weekends":"周末","dowSun":"日","dowMon":"一","dowTue":"二","dowWed":"三","dowThu":"四","dowFri":"五","dowSat":"六","monthPrefix":"月","dayOfMonth":"号","dayRange":"{{a}}号到{{b}}号","weekdayPrefix":"周","weekdayRange":"周{{a}}到周{{b}}"},"blockViewer":{"empty":{"body":"在左侧文件树选择一个文件,查看它的代码地图。","hint":"或按 ⌘K 搜索。"},"fileMode":{"loading":"加载中…","notFound":"该文件未索引(不支持的语言或超出文件上限)。"},"buildProgress":{"listing":"正在扫描文件…","contexts":"正在读取项目配置…","parsing":"正在解析文件","resolving":"正在解析引用关系…","edges":"正在构建调用图…","done":"即将完成…"},"search":{"tooltip":"搜索 (⌘K)","hint":"开始输入以搜索","noResults":"未找到匹配","files":"文件","symbols":"符号"},"viewerToggle":{"toBlock":"显示代码地图","toCode":"返回代码视图"},"tabs":{"toc":"函数列表","history":"跳转记录"},"toc":{"title":"本文件","empty":"未检测到函数。","notIndexed":"该文件未被项目图收录(扩展未支持 / 不在 git 跟踪集 / 超出文件上限)。"},"history":{"title":"最近","empty":"点击左右两侧的 pin 开始追踪调用链。","clear":"清空历史"},"refresh":"重新构建项目图","relationsStale":"项目关联关系需要刷新","retry":"重试"},"blockDiffViewer":{"loading":"正在生成代码地图…","unsupported":"该文件类型暂不支持代码地图 diff","unsupportedHint":"切回常规 diff 视图查看。","error":"代码地图 diff 失败:{{message}}","noBlockChanges":"代码地图无变化(仅格式或空白)。","noBefore":"(新增)","noAfter":"(已删除)","kind":{"added":"新增","deleted":"删除","modified":"修改"}},"fileBrowser":{"directoryTree":"目录树","searchTab":"搜索","recentTab":"最近","changesTab":"变更","historyTab":"历史","searchFiles":"搜索文件...","clear":"清除","exactMatchOn":"全词匹配(已开启)","exactMatchOff":"全词匹配(已关闭)","refreshTree":"刷新目录树","collapseAll":"折叠所有目录","searchFileContent":"搜索文件内容...","caseSensitive":"区分大小写","wholeWord":"完整词","regex":"正则","fileTypes":"文件类型 (ts,tsx)","compareMode":"对比","compareModeOff":"关闭分支对比","compareModeOn":"与选定分支对比","compareScopeHead":"HEAD","compareScopeWorktree":"工作区","compareScopeHeadHint":"仅对比已提交的改动","compareScopeWorktreeHint":"对比包含未提交的改动(已暂存 / 未暂存 / 未跟踪)","createFile":"新建文件","createFileIn":"新建文件 (在 {{path}}/)","fileName":"文件名...","noRecentFiles":"暂无最近浏览的文件","stagingArea":"暂存区 ({{count}})","changesSummary_one":"{{count}} 个变更","changesSummary_other":"{{count}} 个变更","noChanges":"工作区无变更","refreshChanges":"刷新变更列表","unstageAll":"全部取消","noStagedFiles":"无暂存的文件","unstageNFiles":"取消暂存 {{count}} 个文件","unstageFile":"取消暂存","workspace":"工作区 ({{count}})","discardAll":"放弃所有","stageAll":"全部暂存","noUnstagedChanges":"无未暂存的变更","discardNFiles":"放弃 {{count}} 个文件的变更","stageNFiles":"暂存 {{count}} 个文件","discardChanges":"放弃变更","stageFile":"暂存文件","loadingDiff":"加载对比文件中...","noDiffFiles":"无差异文件","nFilesChangedPlain":"{{count}} 个文件变更","nFilesChanged":"{{count}} 个文件变更(vs {{branch}})","nFilesChangedWorktree":"{{count}} 个文件变更(vs {{branch}},含未提交)","noDiffFilesHeadHint":"本分支尚无已提交的改动,切到「工作区」可看到未提交的部分","loadingCommits":"加载提交记录中...","noCommits":"无提交记录","allLoaded":"已加载全部 {{count}} 条记录","locateInTree":"在目录树中定位","unsaved":"未保存","saveBeforeSwitch":"当前文件有未保存的修改,是否保存后切换?","saveAndSwitch":"保存并切换","closeEdit":"关闭编辑 (ESC)","closeBtn":"关闭","copyFileContent":"复制文件内容","toggleJsonReadable":"切换 JSON 可读模式","previewMarkdown":"预览 Markdown 渲染效果","exitPreview":"退出预览","collapseAllJson":"折叠","expandAllJson":"展开","viewBlame":"查看每行代码的修改记录","viewDiff":"查看相对 HEAD 的改动","exitDiff":"退出 Diff","diffLoadFailed":"加载差异失败","editFile":"编辑文件","backToPreview":"返回预览","cannotPreview":"无法预览此文件","selectFileToPreview":"选择文件以预览","staged":"已暂存","unstaged":"未暂存","selectFileToViewDiff":"选择文件查看差异","loadingDiffContent":"加载差异中...","clickCompareToLoad":"点击「对比」加载分支差异","selectCommitToView":"选择提交查看详情","confirmDelete":"确认删除","confirmDeleteMessage":"确定要将 <file>{{name}}</file> 移动到回收站吗?","nFilesNMatches":"{{files}} 个文件,{{matches}} 处匹配","resultsTruncated":"结果已截断","noContentSearchResults":"无匹配结果","enterKeywordToSearch":"输入关键词搜索文件内容","searchMinChars":"搜索内容至少需要 2 个字符"},"csv":{"table":"表格","raw":"原始内容","empty":"空表格","summary":"{{rows}} 行 \xb7 {{cols}} 列","summaryFiltered":"匹配 {{rows}} / {{total}} 行 \xb7 {{cols}} 列","loadMore":"加载更多(已显示 {{shown}} / {{total}})","filterPlaceholder":"筛选内容…","filterColumn":"筛选列","clearFilter":"清除筛选","allColumns":"全部列","noMatch":"没有匹配的行","sortHint":"点击排序(升序 / 降序 / 取消)"},"codeViewer":{"fileModifiedExternally":"文件已被外部修改,保存将覆盖外部更改","useDiskVersion":"使用磁盘版本","forceOverwrite":"强制覆盖","searchPlaceholder":"搜索...","caseSensitive":"区分大小写","wholeWordMatch":"全字匹配","unsavedConfirm":"有未保存的修改,确定关闭?","discardChanges":"放弃修改","continueEditing":"继续编辑","unsavedExitConfirm":"有未保存的修改,确定退出编辑模式?","clickToViewDetails":"点击查看详情","clickToViewCommit":"点击查看 commit 详情","nComments":"{{count}} 条评论","searchChat":"搜索聊天内容...","prevShiftEnter":"上一个 (Shift+Enter)","nextEnter":"下一个 (Enter)","closeEsc":"关闭 (Esc)"},"chat":{"commandRefs":"附带 {{count}} 个引用","commandRef_read":"读取","commandRef_handoff":"转交","commandRef_handoffMixed":"转交","commandRef_targets":"目标","commandRef_inline":"内嵌","originSent":"来自 {{project}} 的 @ 消息","originDelegated":"由 {{project}} 委派","originUnknown":"另一个会话","decisionContextAttached":"附带了 {{count}} 条相关决策","codexInput":{"queued":"追加消息等待发送","accepted":"Codex 已接受追加消息","failed":"追加消息发送失败或未确认,请打开详情查看","images":"图片:{{count}} 张"},"recoveryCopy":"失败运行的恢复副本","recoveryCopyHint":"这是运行期间观察到的内容的临时副本,可能与已保存的历史重复,不会发送给模型。仅在本对话保持打开期间保留。","recoveryCopiesLabel":"失败运行的恢复副本","recoveryAttachment":"恢复副本附件","startConversation":"开始对话吧","loadMoreHistory":"加载更多...","scrollUpForMore":"↑ 向上滚动加载更多历史","jumpToStart":"跳转到开始","jumpToLatest":"跳转到最新","jumpToPrevUserMessage":"上一条用户消息","jumpToNextUserMessage":"下一条用户消息","recentUserMessages":"最近的用户消息","moreUserMessages":"更多","userMessage":"用户消息","recentUserMessageNumber":"最近用户消息 {{index}}/{{total}}","imageMessage":"图片消息","copyMessage":"复制消息","copyImage":"复制图片","copiedImage":"已复制图片","forkSession":"从此处分叉会话","excerptTurn":"摘录本轮到新会话","newSession":"新建会话","continueFromHere":"延续到此处","continueFromHereDesc":"保留截至本轮的全部上下文","onlyThisTurn":"仅提取本轮","onlyThisTurnDesc":"只带这一轮问答","onlyThisTaskDesc":"保留整个任务,包含全部 {{count}} 条输入及回答","deleteTurn":"删除本轮","deletingTurn":"正在删除…","deleteTurnConfirm":"确定删除这一轮的问题、回答及工具记录吗?此操作无法撤销。","deleteTaskConfirm":"本任务包含 {{count}} 条用户输入(含追加输入)。确定删除整个任务的全部输入、回答及工具记录吗?此操作无法撤销。","deleteTurnConfirmAction":"删除本轮","deleteTurnWhileRunning":"会话运行期间不能删除","sendToPeerPane":"发送本条消息到另一栏","imageN":"图片 {{index}}","imagePreview":"图片预览","imageLoadFailed":"无法加载此图片","toolCalls":"{{count}} 个工具调用","collapse":"▲ 收起","expand":"▼ 展开","showMore":"显示更多","showLess":"收起","subagent":"子代理","piChildStatus":{"interrupted":"中断快照","truncated":"已截断","running":"运行中","done":"已完成","failed":"失败","cancelled":"已取消"},"subagentEmpty":"未找到子代理消息记录","subagentViewTitle":"查看子代理执行过程","workflowRun":"运行详情","workflowViewTitle":"查看工作流运行详情","workflowEmpty":"未找到工作流运行记录","workflowAgents":"个代理","workflowViewAgent":"查看","workflowUngrouped":"未分组","viewQuestions":"查看提问","viewAllFileChanges":"查看所有文件变更","requestFailed":"请求失败","cannotReadStream":"无法读取响应流","errorRetry":"发生错误,请重试","codexResumeFailed":"原会话被其他 Codex 客户端占用,已新建会话,历史未继承","codexResumeFailedPrevious":"原会话","codexResumeFailedNew":"新会话","codexContextCompacting":"Codex 正在压缩上下文…","placeholder":"输入消息,/ 调用 skill,@ 调用机器人","placeholderDisabled":"生成中... 可继续输入 (ESC 取消;卡住太久可取消后重发「继续」)","placeholderRunning":"生成中... 回车即发送,会在当前回复的下一步插入(ESC 停止)","imageSizeLimit":"图片大小超过限制(最大 5MB),当前大小: {{size}}MB","viewGitChanges":"查看 Git 变更","viewAllComments":"查看所有评论","userMessages":"用户消息列表","projectNotes":"项目笔记","scheduledTasks":"定时任务","quickInstructions":"快捷指令","globalInstructions":"全局指令","projectInstructions":"项目指令","noQuickInstructions":"暂无快捷指令","addQuickInstruction":"新增快捷指令","quickInstructionPlaceholder":"输入一句话指令,Enter 保存,Esc 取消","insertQuickInstruction":"填入输入框(不发送)","addInstructionGroup":"新增分组","instructionGroupNamePlaceholder":"输入分组名,Enter 保存,Esc 取消","instructionGroupLabel":"所属分组","instructionGroupNone":"不分组","deleteInstructionGroupConfirm":"删除分组「{{name}}」会同时删除组内 {{count}} 条指令,确定继续?","editGlobalInstructions":"编辑全局指令","editProjectInstructions":"编辑项目指令","quickInstructionsMarkdownHint":"一级内容每行一条;分组名称后的「- 」开头行是该分组的子命令;单条指令内的换行用 \\\\n 表示。","quickInstructionsMarkdownPlaceholder":"按推荐实施\\n用文本画图\\n- 画一个登录流程\\n- 画一个系统架构","quickInstructionsMarkdownError":"第 {{line}} 行格式不正确。","savingQuickInstructions":"保存中...","saveQuickInstructionsFailed":"保存失败,修改仍然保留,请重试。","context":"上下文","output":"输出","copiedCommandTooltip":"已复制!","copyCommandTooltip":"复制命令: {{command}}","executedCommand":"执行了 `{{command}}`{{exitInfo}},输出:\\n```\\n{{output}}\\n```","executedCommandFailed":"执行 `{{command}}` 失败:{{error}}","executionMode":"执行模式","checkBalance":"查询余额","balanceFailed":"查询失败,请检查 API Key","balanceNeedsKey":"请先配置 DeepSeek API Key","balanceUnavailable":"账户当前不可用","balanceEmpty":"接口未返回余额","openUsagePage":"打开 DeepSeek 用量控制台","checkQuota":"查询额度","quotaFailed":"额度查询失败,请检查 API Key","quotaNeedsKey":"请先设置 API Key","quotaEmpty":"未返回额度信息","quotaResetAt":"{{time}} 重置","openProviderConsole":"打开服务商控制台","planMode":"计划模式","planModeDesc":"只读,先出计划不改代码","planModeOn":"已开启计划模式——只读;发一个任务即可拿到计划","planModeOff":"已关闭计划模式","planModeHint":"计划模式:只读探索、产出计划但不改文件。取消勾选后重发才会实现。","noHistory":"不带历史上下文","noHistoryDesc":"每次提问均独立","noHistoryHint":"不带历史上下文:每条消息单独发给模型,不带之前的对话。上方的会话记录照常保留。","planTitle":"计划(待你确认)","approvePlan":"批准并执行","planApproveHint":"本环境无审批弹窗,点此退出计划模式并执行","approvePlanPrompt":"已批准,按上述计划开始执行。","maximizePane":"放大本栏","restorePane":"还原双栏","closePane":"关闭本栏","singlePane":"切回单栏","splitPane":"并排双栏"},"console":{"enterCommandOrUrl":"输入命令或网址开始使用","emptyIntro":"在下方输入框输入以下内容,即可创建对应气泡:","bubbleCommand":"命令","bubbleInteractive":"交互终端","bubbleBrowser":"浏览器","bubbleBrowserNoteIframe":"部分网站会拦截 iframe 嵌入,请在「设置 → 浏览器插件」安装 Cockpit Bridge 后再打开。","bubbleBrowserNoteCookie":"已登录的网站若首次显示未登录,多刷新几次即可恢复。","bubbleDatabase":"数据库","bubbleFilePreview":"文件预览","loadingMore":"加载中...","loadMoreHistory":"加载更多历史","quickCommands":"快捷命令","singleColumn":"单列布局","dualColumn":"双列布局","envVars":"环境变量","launchShell":"启动交互终端","htmlApps":"HTML 应用","inputPlaceholder":"输入命令或网址并按 Enter... (↑↓ 历史, Tab 补全)","scopeProject":"项目","scopeGlobal":"全局","tabSwitchEscClose":"Tab 切换 \xb7 Esc 关闭","copyOutput":"复制输出","copyCommand":"复制命令","rerun":"重新运行","deleteRecord":"删除记录","searchPlaceholder":"搜索...","searchMode":"搜索","filterMode":"过滤","prevShiftEnter":"上一个 (Shift+Enter)","nextEnter":"下一个 (Enter)","loadingTerminal":"加载终端...","clickToInput":"点击终端区域输入","stdinPlaceholder":"stdin 输入...","runningText":"运行中...","exitCode":"退出代码: {{code}}","totalLines":"共 {{count}} 行","globalCommands":"全局命令","projectCommands":"项目命令","noCustomCommands":"暂无自定义命令","editGlobalCommands":"编辑全局命令","editProjectCommands":"编辑项目命令","quickCommandsTextHint":"每行一条,格式为「名称: 命令」;名称只能包含字母、数字、- 和 _,第一个冒号之后都是命令。","quickCommandsTextPlaceholder":"pg: psql -h localhost -U postgres\\ngitpull: git pull --rebase","quickCommandsTextError":"第 {{line}} 行格式不正确,应为「名称: 命令」。","savingQuickCommands":"保存中...","saveQuickCommandsFailed":"保存失败,修改仍然保留,请重试。","restoreTooltip":"还原 ({{modKey}}M / ESC)","screenshotting":"截图中...","outputFileDeleted":"[输出文件已删除]"},"browser":{"blankPage":"空白页","copyUrl":"复制网址","openInNewWindow":"在新窗口打开","exitMaximize":"退出最大化 ({{modKey}}M)","maximize":"最大化 ({{modKey}}M)","pageLoadFailed":"页面加载失败","openInTabFallback":"OpenCockpit Bridge 未连接,已改用普通新标签页打开","movedToChrome":"网页现在在 Chrome 标签页中打开,不再放在 Console 里。","openInChrome":"在 Chrome 中打开","openedInChrome":"已在 Chrome 中打开 —— {{command}}","clickToWake":"点击唤醒","sleeping":"已休眠","loadingPage":"加载中...","loadFailed":"加载失败"},"database":{"connectionFailed":"连接失败","connected":"已连接","connecting":"连接中...","refreshTableList":"刷新表列表","filterTable":"T 表","filterView":"V 视图","noTables":"无表","tabStructure":"结构","tabData":"数据","tabSql":"SQL","filterActive":"筛选: {{count}}列","clearAllFilters":"清除所有筛选","deleteNRows":"删除 {{count}} 行","confirmDeleteRows":"确认删除?","copyCsvSelected":"复制选中行为 CSV","copyCsvAll":"导出全表 CSV","copyJsonSelected":"复制选中行为 JSON","copyJsonAll":"导出全表 JSON","copyCSV":"复制 CSV","CSV":"CSV","copyJSON":"复制 JSON","JSON":"JSON","selectTable":"选择左侧表格","selectTableToView":"选择表以查看结构","selectTableForData":"选择表以查看数据","columns":"列","colName":"名称","colType":"类型","colNullable":"可空","colDefault":"默认值","primaryKey":"主键","foreignKeys":"外键","indexes":"索引","enable":"启用","commaValues":"逗号分隔多值","likePattern":"%pattern%","valuePlaceholder":"值","apply":"应用","clearFilter":"清除","addRow":"+ 新增行","totalRows":"{{count}} 行","rowsAffected":"{{command}} — {{count}} 行受影响 ({{duration}}ms)","queryRows":"{{count}} 行 ({{duration}}ms)","resultTruncated":"[结果已截断至1000行]","sqlPlaceholder":"输入 SQL... ({{modKey}}Enter 执行)","executing":"执行中...","execute":"▶ 执行","deleteRowsFailed":"{{count}} 行删除失败","inputParams":"输入参数","resultLabel":"结果"},"mysql":{"connectionFailed":"连接失败","connected":"已连接","connecting":"连接中...","refreshTableList":"刷新表列表","filterTable":"T 表","filterView":"V 视图","noTables":"无表","tabStructure":"结构","tabData":"数据","tabSql":"SQL","filterActive":"筛选: {{count}}列","clearAllFilters":"清除所有筛选","deleteNRows":"删除 {{count}} 行","confirmDeleteRows":"确认删除?","copyCsvSelected":"复制选中行为 CSV","copyCsvAll":"导出全表 CSV","copyJsonSelected":"复制选中行为 JSON","copyJsonAll":"导出全表 JSON","copyCSV":"复制 CSV","CSV":"CSV","copyJSON":"复制 JSON","JSON":"JSON","selectTable":"选择左侧表格","selectTableToView":"选择表以查看结构","selectTableForData":"选择表以查看数据","columns":"列","colName":"名称","colType":"类型","colNullable":"可空","colDefault":"默认值","primaryKey":"主键","foreignKeys":"外键","indexes":"索引","enable":"启用","commaValues":"逗号分隔多值","likePattern":"%pattern%","valuePlaceholder":"值","apply":"应用","clearFilter":"清除","addRow":"+ 新增行","totalRows":"{{count}} 行","rowsAffected":"{{command}} — {{count}} 行受影响 ({{duration}}ms)","queryRows":"{{count}} 行 ({{duration}}ms)","resultTruncated":"[结果已截断至1000行]","sqlPlaceholder":"输入 SQL... ({{modKey}}Enter 执行)","executing":"执行中...","execute":"▶ 执行","deleteRowsFailed":"{{count}} 行删除失败"},"redis":{"neverExpires":"永不过期","expired":"已过期","loadFailed":"加载失败","deleteFailed":"删除失败","saveFailed":"保存失败","scanPlaceholder":"SCAN 模式...","scanSearch":"搜索 (SCAN)","noKeys":"无 key","loadMore":"加载更多...","tabData":"数据","tabInfo":"信息","tabCli":"CLI","selectKey":"选择左侧 Key","keyNotExist":"Key 不存在","unsupportedType":"不支持的类型: {{type}}","nItems":"{{total}} items","showingN":"显示 {{count}}","nMembers":"{{total}} members","nEntries":"{{total}} entries","cliHint":"输入 Redis 命令,如 PING, GET key, KEYS *","cliPlaceholder":"输入命令..."},"git":{"switchBranch":"切换分支","searchBranch":"搜索分支...","noBranches":"无可切换分支","noMatchingBranches":"无匹配分支","localBranches":"本地分支","remoteBranches":"远程分支","branchNotFound":"未找到分支","selectBranch":"选择分支...","currentBranch":"当前","notGitRepo":"当前目录不是 Git 仓库","cannotGetBranches":"无法获取分支信息","getBranchesFailed":"获取分支信息失败","discardAllConfirm":"确定要放弃工作区的 {{count}} 个文件的变更吗?此操作不可恢复。","worktree":{"title":"Git Worktree","count":"{{count}} 个 worktree","selectBranch":"选择分支","addWorktree":"+ 添加 Worktree","confirmDelete":"确认删除","confirmDeleteMsg":"确定要删除 worktree 吗?","path":"路径:","branch":"分支:","locked":"已锁定","unlock":"解锁","lock":"锁定","searchBranch":"搜索分支...","noBranches":"无可用分支"}},"comments":{"addComment":"添加评论","lineRange":"行 {{start}}-{{end}}","inputPlaceholder":"输入评论...","newComment":"新评论 {{range}}","commentPlaceholder":"输入评论... ({{modKey}}Enter 提交, Esc 取消)","nComments":"{{count}} 条评论","allComments":"所有评论","copyAllComments":"复制全部评论","noComments":"暂无评论","clearAll":"清空所有","totalComments":"共 {{count}} 条评论","aiReply":"AI 回复","noContent":"(无内容)","linesCount":"({{count}} 行)","codeRef":"以下是我标注的评论和引用:","note":"备注: {{content}}","submitting":"提交中...","enterSubmit":"Enter 提交 \xb7 Shift+Enter 换行","submitComment":"提交评论","askAI":"提问 AI","inputQuestion":"输入你的问题...","aiGenerating":"正在生成中,请稍候...","enterSend":"Enter 发送 \xb7 Shift+Enter 换行","sendToAI":"发送 AI","aiResponding":"AI 正在响应中..."},"fileContextMenu":{"createFile":"新建文件","copyFile":"复制文件","copyFolder":"复制文件夹","pasteHere":"粘贴到此处","deleteFile":"删除文件","deleteFolder":"删除文件夹","copyRelativePath":"复制相对路径","copyAbsolutePath":"复制绝对路径","copyRelativeDirPath":"复制相对文件夹路径","copyAbsoluteDirPath":"复制绝对文件夹路径","copyFileName":"复制文件名","copyFolderName":"复制文件夹名"},"settings":{"title":"设置","theme":"主题","themeLight":"浅色","themeDark":"深色","themeSystem":"跟随系统","browserExtension":"浏览器插件","extensionInstalled":"OpenCockpit Bridge 已连接","extensionNotInstalled":"OpenCockpit Bridge 未连接","extensionDescription":"让 `cockpit browser` 能操作你的 Chrome 标签页和 Console 里的浏览器气泡。每个标签页都有 id(在插件小面板和图标的悬停提示里);Cockpit 操作一个你还没允许的标签页前会先问你,按标签页逐个授权。","installSteps":"安装步骤:","step1":"1. 打开 Chrome 地址栏输入","step2":"2. 开启右上角「开发者模式」","step3":"3. 点击「加载已解压的扩展程序」","step4mac":"4. 按 <kbd>Cmd+Shift+G</kbd> → 粘贴下方路径 → 回车","copyExtensionPath":"复制插件目录路径","reloadExtension":"重载插件","about":"关于","language":"语言","languageAuto":"跟随系统","switchDark":"切换暗色","switchLight":"切换亮色","agentsBundled":"内置","codexSection":"Codex","codexSuggestions":"预测下一句","codexSuggestionsDescription":"每轮回复后让 Codex 猜你下一句要说什么,显示在输入框里(按 Tab 采用)。每轮会多一次小请求。"},"editor":{"placeholder":"写点什么... 输入 / 打开快捷命令","noteTitle":"{{name}} - 笔记","noteUntitled":"笔记","globalNote":"全局笔记","emptyNote":"空笔记","searchNotes":"搜索笔记...","saving":"保存中...","conflictReloaded":"笔记已被其他地方修改,已加载最新版本,刚才未保存的编辑已丢弃","linkPlaceholder":"输入链接地址...","confirmLink":"确认","removeLink":"移除链接","heading1":"标题 1","heading2":"标题 2","heading3":"标题 3","bold":"粗体","italic":"斜体","strikethrough":"删除线","inlineCode":"行内代码","link":"链接","bulletList":"无序列表","orderedList":"有序列表","taskList":"待办列表","blockquote":"引用","codeBlock":"代码块","table":"表格","horizontalRule":"分割线","insertRowAbove":"在上方插入行","insertRowBelow":"在下方插入行","insertColumnLeft":"在左侧插入列","insertColumnRight":"在右侧插入列","deleteRow":"删除当前行","deleteColumn":"删除当前列","deleteTable":"删除表格","deleteCodeBlock":"删除代码块","toc":"目录","expandToc":"展开目录","collapseToc":"收起目录"},"slashCommands":{"heading1":"标题 1","heading1Desc":"大标题","heading2":"标题 2","heading2Desc":"中标题","heading3":"标题 3","heading3Desc":"小标题","bulletList":"无序列表","bulletListDesc":"项目符号列表","orderedList":"有序列表","orderedListDesc":"编号列表","taskList":"待办列表","taskListDesc":"可勾选的任务列表","blockquote":"引用","blockquoteDesc":"引用块","codeBlock":"代码块","codeBlockDesc":"代码片段","table":"表格","tableDesc":"插入 3\xd73 表格","horizontalRule":"分割线","horizontalRuleDesc":"水平分割线","link":"链接","linkDesc":"插入超链接"},"commands":{"plan":"开启计划模式 \xb7 /plan <任务> 直接规划该任务 \xb7 /plan off 关闭"},"markdown":{"copied":"✓ 已复制","copy":"复制"},"imagePreview":{"previewImage":"预览图片","deleteImage":"删除图片","copyImage":"复制图片","copiedImage":"已复制图片"},"tokenStats":{"title":"Claude Code Token 统计","activeHours":"活跃时段分布","hourSessions":"{{h}}:00 — {{count}} 次会话","messages":"消息","toolCalls":"工具调用","activityTrend":"活动趋势","byModel":"按模型","tokenUsage":"Token 用量","equivalentCost":"等效费用","modelCostDetail":"模型费用明细","model":"模型","share":"占比","total":"合计","totalSessions":"总会话","totalMessages":"总消息","equivalentApiCost":"等效 API 费用","longestSession":"最长会话","firstUse":"首次使用","notFound":"未找到 ~/.claude/stats-cache.json","day":"日","week":"周","month":"月"},"toolCall":{"inputParams":"输入参数","resultLabel":"结果","inputParamsTitle":"查看输入参数","resultTitle":"查看结果","input":"输入","result":"结果","details":"详细","detailsTitle":"查看输入与结果","foldedLines":"... ({{count}} 行)"},"fileEditor":{"unsavedConfirm":"有未保存的修改,确定关闭?","discardChanges":"放弃修改","continueEditing":"继续编辑","externallyModified":"文件已被外部修改,保存将覆盖外部更改","useDiskVersion":"使用磁盘版本","forceOverwrite":"强制覆盖"},"quickFileOpen":{"placeholder":"输入文件名快速打开...","noMatch":"没有匹配的文件","recent":"最近","selectHint":"选择","openHint":"打开","closeHint":"关闭"},"envManager":{"title":"环境变量管理","tabScope":"当前 Tab 专用","globalScope":"全局环境变量","varNamePlaceholder":"变量名(如 NODE_ENV)","varValuePlaceholder":"值(如 production)","valuePlaceholder":"值","noVars":"还没有环境变量,添加一个试试"},"aliasManager":{"title":"命令别名管理","description":"为常用命令设置快捷别名(全局生效)","aliasPlaceholder":"别名(如 ll)","commandPlaceholder":"完整命令(如 ls -la)","fullCommandPlaceholder":"完整命令","usage":"使用提示:","usageDesc":"输入别名即可执行对应的完整命令","noAliases":"还没有命令别名,添加一个试试"},"diffViewer":{"fileChanges":"文件变更 ({{count}})","expandFull":"扩展到全屏","exitFull":"回到分栏","openFull":"默认全屏","openFullOn":"已开启:文件变更默认全屏打开(点击改为默认半屏)","openFullOff":"已关闭:文件变更默认半屏打开(点击改为默认全屏)","toggleFileTree":"切换文件目录","selectFileToView":"选择左侧文件查看变更","sideBySide":"并列对比","unified":"统一对比","viewSplit":"双栏","viewUnified":"单栏","previewFile":"预览文件","copiedAll":"已复制全文","compact":"精简","full":"全文","gap":{"hidden":"已隐藏 {{count}} 行","more":"\xb7\xb7\xb7 更多 +{{count}} \xb7\xb7\xb7","expandUp":"向上展开 {{count}} 行","expandDown":"向下展开 {{count}} 行","expandAll":"点击展开 {{count}} 行"},"loadingSnapshots":"正在加载快照…","loadingFile":"正在加载文件差异…","fileLoadFailed":"无法加载文件差异","noChanges":"本轮未检测到文件变更","notViewable":"二进制或超大文件,无法展示 diff","externalChange":"同期其他会话/外部进程的变更","reconstructed":"参数重建","reconstructedHint":"由工具调用参数重建,非磁盘快照","truncated":"文件过多,仅显示部分","aggregate":"汇总","openAggregate":"默认汇总","openAggregateOn":"已开启:文件变更默认打开汇总(点击改为默认逐次调用)","openAggregateOff":"已关闭:文件变更默认逐次调用(点击改为默认汇总)","aggregateOn":"查看全部调用的累计变更","aggregateOff":"返回逐次调用","fileChangesAggregate":"文件变更 ({{count}}) \xb7 汇总","aggregateSummary":"{{count}} 个文件变更({{calls}} 次调用累计)","aggregateLoading":"正在汇总变更…","aggregateEmpty":"累计后无净变更","aggregateUnavailable":"无快照,无法汇总","aggregateFailed":"汇总失败","aggregateBaselineSkipped":"已跳过基线变化及之前的 {{count}} 次调用","aggregateBaselineIncluded":"已计入基线变化及之前的 {{count}} 次调用","callsBaselineHidden":"已隐藏 {{count}} 次基线变化调用","callsBaselineShown":"已显示 {{count}} 次基线变化调用","aggregateSkippedHint":"执行了 git rebase / pull / checkout 等切换基线命令的调用视为基线变化(换分支、拉代码,而非编写代码);汇总从最后一次基线变化之后开始。点击切换是否计入","imageBefore":"变更前","imageAfter":"变更后","imageAdded":"新增","imageDeleted":"已删除","imageLoadFailed":"图片加载失败","imageUnavailable":"该版本无此图片"},"commitDetail":{"title":"提交详情","hash":"哈希:","author":"作者:","date":"日期:","files":"文件:","nChanges":"{{count}} 个变更","loadingFiles":"加载文件中...","noFileChanges":"无文件变更","loadingDiff":"加载差异中...","selectFileToView":"选择文件查看差异"},"askQuestion":{"title":"提问","nQuestions":"{{count}} 个问题","checkedN":"已勾选 {{count}}","copyChecked":"复制勾选的 {{count}} 个问答","copyAll":"复制所有问答","sendChecked":"发送勾选的 {{count}} 个问答给 AI","sendAll":"发送所有问答给 AI","sendNoChat":"没有可用的聊天会话","checkToCopy":"勾选以复制","custom":"自定义","customPlaceholder":"输入自定义回答...","notSelected":"(未选择)"},"tabBar":{"closeTab":"关闭会话","closeAll":"关闭所有会话","newTab":"新会话"},"tabManagerTopBar":{"copyPageUrl":"复制页面地址","copyDirPath":"复制目录路径","refreshProject":"刷新当前项目","openInVSCode":"在 VS Code 中打开","openInCursor":"在 Cursor 中打开","aliasesGlobal":"命令别名(全局)","tokenStats":"Token 统计","openSurething":"打开 Surething","openOnPhone":"在手机上打开","phoneQrHint":"用手机扫码打开 Cockpit","phoneQrSessionHint":"用手机扫码打开当前会话","phoneQrTokenWarning":"二维码包含访问令牌,请勿外传","phoneQrFailed":"二维码生成失败"},"hoverTooltip":{"findReferences":"查找引用","search":"搜索"},"todoViewer":{"title":"任务列表","progress":"{{completed}} / {{total}} 完成"},"userMessages":{"title":"用户消息列表","noMessages":"暂无用户消息","searchPlaceholder":"搜索用户消息…","noResults":"没有匹配的消息","loadFailed":"加载失败","count":"{{shown}} / {{total}} 条","jumping":"正在加载该消息所在的对话…"},"shortIdBadge":{"clickToDisconnect":"点击断开连接","clickToRegister":"点击注册并复制 CLI 命令","setTitle":"给这个气泡命名(便于 /cc 通过 connection list 找到它)","setTitlePlaceholder":"设置标题","editTitle":"编辑标题","titleSet":"标题:{{title}}","dialogTitle":"给气泡命名","dialogPlaceholder":"例如:alloydb 代理、预发管理后台"},"api":{"pathForbidden":"不允许操作此路径","deleteForbidden":"不允许删除此路径","notAFolder":"目标不是文件夹","imageTooLarge":"图片文件过大,无法预览","cannotPreviewBinary":"无法预览二进制文件","fileTooLarge":"文件过大,无法预览(超过 10MB)","fileModifiedExternally":"文件已被外部修改"},"folderPicker":{"title":"打开文件夹","placeholder":"输入或粘贴路径,如 ~/Work/my-app","open":"打开","showHidden":"显示隐藏目录","hint":"↑↓ 选择 \xb7 Tab/回车 进入 \xb7 ⌘/Ctrl+回车 打开","empty":"没有子文件夹","noMatch":"没有匹配的文件夹","notFound":"文件夹不存在","notDirectory":"不是文件夹","denied":"没有访问权限。macOS 上请在 系统设置 › 隐私与安全性 中授权。"},"confirm":{"title":"提示","ok":"确定","cancel":"取消"},"floatingToolbar":{"addComment":"添加评论","sendToAI":"发送 AI","search":"搜索"},"quickReply":{"optionA":"A","optionB":"B","optionC":"C","optionD":"D","allRecommended":"其他按推荐","thisOne":"就这个","notThis":"不要这样","why":"为什么","elaborate":"展开说","example":"举个例子","start":"开始做","continue":"继续","ok":"OK","done":"做完了","edit":"编辑快捷短语","editTitle":"编辑快捷短语","editHint":"一行对应面板的一行,行内用逗号分隔。每个短语会原样发送到对话。","editPlaceholder":"就这个,不要这样\\n为什么,展开说","restoreDefault":"恢复默认","save":"保存","cancel":"取消","customizedFor":"当前编辑的是{{lang}}短语,另一种语言不受影响。","langEn":"英文","langZh":"中文","saveFailed":"保存快捷短语失败"},"searchResults":{"title":"搜索结果","nMatches":"({{count}} 处匹配)","searching":"搜索中...","noResults":"无匹配结果","scopeSelected":"选中","scopeAll":"全部"},"references":{"title":"引用","searching":"搜索中...","notFound":"未找到引用"},"gitFileTree":{"noFiles":"无文件"},"deps":{"action":"依赖关系","none":"无","symbolMessage":"分析 {{name}} ({{path}}:{{lines}}) 的依赖关系。\\n\\n调用者:{{callers}}\\n调用了:{{callees}}\\n外部依赖:{{externals}}\\n\\n请说明它耦合在哪些模块上,以及哪些依赖是可以收敛掉的。"},"explain":{"action":"解释一下","fileMessage":"解释一下 {{path}}","symbolMessage":"解释一下 {{name}} ({{path}}:{{lines}})","selectionMessage":"解释一下","commitFileMessage":"解释一下 git commit {{hash}} 对 {{path}} 的改动","compareFileMessage":"解释一下 git {{base}}...HEAD 中 {{path}} 的改动","compareFileWorktreeMessage":"解释一下 {{path}} 相对 {{base}} 的改动(含未提交的部分)","stagedFileMessage":"解释一下 git 暂存区中 {{path}} 的改动","unstagedFileMessage":"解释一下 git 工作区中 {{path}} 的改动"},"bots":{"sessionBadge":"会话","sessionGroup":"会话 Bot","sessionGroupHint":"在会话的改名框里勾选「可被 @ 调用」的会话;@ 它会把任务发进这个会话","sessionGone":"会话已不存在","sessionNameInvalid":"标题不能用作名字(多行或含 @),改个名字才能 @","sessionUsage":"在任意会话里写「@{{name}} 任务」把任务发进这个会话","removeSession":"移出 Bots","title":"机器人","search":"搜索机器人","addExisting":"添加机器人","addTooltip":"添加为机器人","emptyNoMatch":"没有匹配的机器人。","emptyNoBots":"还没有你自己的机器人。","emptyCreatePrefix":"在聊天里使用","emptyCreateSuffix":"创建一个。","emptyAddExisting":"添加已有的机器人目录","invalid":"无效","builtin":"内置","mine":"我的","tabFiles":"文件","tabSessions":"会话","noSessions":"最近没有这个机器人的会话","sessionsScope":"在它目录里运行的全部会话,以及它最近派发出去的会话","selectHint":"选择左侧机器人,查看它的文件和会话","remove":"移除注册","open":"作为项目打开","pathPlaceholder":"机器人目录或其 BOT.md 的绝对路径","addHint":"目录中必须包含 BOT.md,不会改动其中的文件。","added":"机器人已添加","alreadyAdded":"已添加过","removed":"已移除机器人注册,目录文件仍保留。","loadFailed":"加载机器人失败","saveFailed":"添加机器人失败","removeFailed":"移除机器人失败"},"contextInspector":{"title":"会话上下文","open":"查看上下文内容","used":"已用","window":"窗口","free":"剩余","unknownWindow":"窗口大小未知","capturedAt":"统计于 {{time}}","refresh":"刷新","loadFailed":"读取上下文失败","noSession":"会话还没有开始,暂无上下文","empty":"没有可展示的上下文条目","selectItem":"点左侧条目查看具体内容","noContent":"该引擎没有暴露这一项的原文,只有名称和 token 数","truncated":"内容过长,只显示前 {{count}} 个字符","estimated":"≈ 为按字符估算","items":"{{count}} 项","copy":"复制","copied":"已复制","groups":{"prompt":"提示词","memory":"记忆文件","tools":"工具","skills":"Skills 与 Agents","messages":"消息","tool_io":"工具调用","reasoning":"推理","other":"其他"},"categories":{"system":"System prompt","instructions":"附加指令","memory":"记忆文件","tools":"工具定义","mcp":"MCP 工具","skills":"Skills","agents":"自定义 Agents","environment":"环境信息","messages":"对话消息","tool_io":"工具调用与结果","reasoning":"推理内容","summary":"压缩摘要","other":"其他"},"notes":{"system_prompt_hidden":"System prompt 由引擎内部拼接,不对外提供原文,这里只列出各段名称和 token 数。","tool_schemas_hidden":"内置工具只提供名称和 token 数,不提供 schema 原文。","skills_listing_only":"Skills 在上下文里只占名称和描述;完整内容要等调用时才加载。","snapshot_from_last_turn":"分类数据是上一轮结束时记录的,不是实时数据。","no_snapshot_yet":"这个会话还没有记录过分类快照,下一轮对话结束后会有精确的分类数据;当前显示的是从记录中估算的结果。","reasoning_encrypted":"部分推理或压缩内容是加密的,看不到原文,也无法估算大小。","after_compaction":"会话已压缩过,这里只包含最近一次压缩之后的内容。","estimated_breakdown":"各分类的 token 数是估算值,顶部的总数以引擎上报为准。","usage_unknown":"引擎没有上报这个会话的上下文大小。"}}}');U.isInitialized||U.init({resources:{en:{translation:V},zh:{translation:W}},lng:"en",fallbackLng:"en",interpolation:{escapeValue:!1}});let X=U},33873:a=>{a.exports=require("path")},34631:a=>{a.exports=require("tls")},38616:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{DELETE:()=>e.SJ,GET:()=>e.fG,PATCH:()=>e.D9,POST:()=>e.LO,dynamic:()=>e.OR,runtime:()=>e.fA});var e=c(6727),f=a([e]);e=(f.then?(await f)():f)[0],d()}catch(a){d(a)}})},41204:a=>{a.exports=require("string_decoder")},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},48161:a=>{a.exports=require("node:os")},51181:a=>{a.exports=require("web-push")},51455:a=>{a.exports=require("node:fs/promises")},53053:a=>{a.exports=require("node:diagnostics_channel")},55511:a=>{a.exports=require("crypto")},56825:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.d(b,{$_:()=>v,So:()=>t,_u:()=>K,lo:()=>C});var e=c(2685),f=c(86137),g=c(29021),h=c(9225),i=c(7939),j=c(79830),k=c(62445),l=c(82940),m=c(33286),n=c(81869),o=c(89705),p=c(32358),q=c(770),r=c(94506),s=a([n,m,r]);function t(a){if(!a.taskFile)return a.message;let b=p.A.t("scheduledTasks.taskFilePromptHeader",{lng:a.language||"en"});return`${b}
2
+ - ${a.taskFile}`}function u(a,b,c){let d=[];for(let e of a.split(","))if("*"===e)for(let a=b;a<=c;a++)d.push(a);else if(e.includes("/")){let[a,f]=e.split("/"),g=parseInt(f,10),h="*"===a?b:parseInt(a,10);for(let a=h;a<=c;a+=g)d.push(a)}else if(e.includes("-")){let[a,b]=e.split("-").map(Number);for(let c=a;c<=b;c++)d.push(c)}else d.push(parseInt(e,10));return d}function v(a,b=new Date){let c=a.trim().split(/\s+/);if(5!==c.length)return b.getTime()+6e4;let d=u(c[0],0,59),e=u(c[1],0,23),f=u(c[2],1,31),g=u(c[3],1,12),h=u(c[4],0,6),i=new Date(b);i.setSeconds(0,0),i.setMinutes(i.getMinutes()+1);for(let a=0;a<527040;a++){let a=i.getMinutes(),b=i.getHours(),c=i.getDate(),j=i.getMonth()+1,k=i.getDay();if(d.includes(a)&&e.includes(b)&&f.includes(c)&&g.includes(j)&&h.includes(k))return i.getTime();i.setMinutes(i.getMinutes()+1)}return b.getTime()+864e5}async function w(a,b){let c=(0,l.j$)(b);return!!c&&(c===a.sessionId||(console.warn(`[ScheduledTask] task ${a.id}: rebound session ${a.sessionId} → ${c}`),a.sessionId=c,await K.persistSessionRebind(a.id,c),!0))}async function x(a,b){if(!(0,h.C)(b)&&"claude"!==b&&"codex"!==b)return!1;let c=await (0,i.JE)((0,i.Mx)(a.cwd),{});return c.noHistories?.[a.sessionId]===!0}async function y(a,b){return(0,h.C)(a)?(await o.pR5((0,f.p5)(b.cwd,b.sessionId)))?.path??null:"grok"===a?(0,e.VI)(b.cwd,b.sessionId):"codex"===a?(await (0,k.Zh)(b.sessionId))?.path??null:(0,i.Kk)(b.cwd,b.sessionId)}async function z(a){return r.s9.runPromise(o.JkU(function*(){let b=a.engine??"claude";if(!["claude","ollama","codex","kimi","deepseek","glm","grok"].includes(b))return yield*o.fJG(new q.Yv({provider:"claude",kind:"unsupported-engine",cause:Error(`scheduled tasks not supported for engine '${b}' (task ${a.id})`)}));if(a.taskFile&&!(0,g.existsSync)(a.taskFile))return yield*o.fJG(new q.Yv({provider:b,kind:"unknown",cause:Error(`task file not found: ${a.taskFile} (task ${a.id})`)}));let c=yield*o.ivC(()=>y(b,a)),d=!c||!(0,g.existsSync)(c);return d&&console.warn(`[ScheduledTask] resume session missing (${c??`no session for ${a.sessionId}`}) for task ${a.id}, engine ${b}; starting a fresh session`),yield*o.$mh({try:async()=>{let c=(0,n.E)(b);if(!c)throw Error(`no engine spec for ${b}`);let e=await x(a,b),f=await (0,m.T)(c,{prompt:t(a),...d?{}:{sessionId:a.sessionId},cwd:a.cwd,engine:b,...a.model&&{model:a.model},...e&&{noHistory:!0}});if(!f.ok)throw Error(`${b} dispatch rejected (${f.status}): ${f.error}`);let g=f.runKey,h=!d,i=Date.now()+36e5;for(;(0,l.yQ)(g)&&Date.now()<i;)h||(h=await w(a,g)),await new Promise(a=>setTimeout(a,500));if(h||await w(a,g),(0,l.yQ)(g))throw(0,l.Y6)(g),Error(`${b} run timed out after 60m (session ${a.sessionId})`);let j=(0,l.Si)(g);if(!j||"error"===j.status)throw Error(`${b} run failed (session ${a.sessionId})`);return!0},catch:a=>new q.Yv({provider:b,kind:"unknown",cause:a})})}).pipe(o.h9N(b=>o.JkU(function*(){return console.error(`[ScheduledTask] Failed to send message for task ${a.id}:`,b),yield*o.$mh(()=>(0,j.CS)(a.cwd,a.sessionId,"unread",void 0,void 0,a.engine)).pipe(o.NWQ(()=>o.rIH)),!1}))))}[n,m,r]=s.then?(await s)():s;let E=[{from:"pending",event:"due",to:"firing"},{from:"pending",event:"trigger",to:"firing"},{from:"interrupted",event:"due",to:"firing"},{from:"interrupted",event:"trigger",to:"firing"},{from:"paused",event:"trigger",to:"firing"},{from:"done",event:"trigger",to:"firing"},{from:"firing",event:"settle",to:"settled"},{from:"firing",event:"boot",to:"interrupted"}];function A(a,b){let c=a.firingSince?"firing":a.paused?"paused":a.completed?"done":"interrupted"===a.lastResult?"interrupted":"pending";return E.some(a=>a.from===c&&a.event===b)}let F=["firingSince"];function B(a){let b={...a};for(let a of F)delete b[a];return b}function C(a,b,c){if(a>c)return a;let d=6e4*b;return a+(Math.floor((c-a)/d)+1)*d}function D(a,b){return"interval"===a.type&&a.intervalMinutes?C(a.nextFireTime,a.intervalMinutes,b):"cron"===a.type&&a.cron?v(a.cron,new Date(b)):a.nextFireTime}let G=()=>({firingSince:void 0,lastResult:"interrupted",unread:!0});class H{constructor(a){this.file=a}read(){return(0,i.Ux)(this.file,()=>(0,i.PR)(this.file,[]))}update(a,b){return(0,i.Ux)(this.file,async()=>{let c=await (0,i.PR)(this.file,[]),d=c.findIndex(b=>b.id===a);if(-1===d)return null;let e=b(c[d]);return e?(c[d]={...c[d],...e},await (0,i.An)(this.file,c),c[d]):null})}updateAll(a){return(0,i.Ux)(this.file,async()=>{let b=await (0,i.PR)(this.file,[]),c=0;for(let d=0;d<b.length;d++){let e=a(b[d]);e&&(b[d]={...b[d],...e},c++)}return c&&await (0,i.An)(this.file,b),c})}add(a){return(0,i.N9)(this.file,[],b=>[...b,a])}remove(a){return(0,i.Ux)(this.file,async()=>{let b=await (0,i.PR)(this.file,[]),c=b.findIndex(b=>b.id===a);return -1!==c&&(b.splice(c,1),await (0,i.An)(this.file,b),!0)})}}class I{async ensureInit(){if(!this.initialized)return this.initPromise||(this.initPromise=this.init()),this.initPromise}async init(){let a;if(!this.initialized){this.initialized=!0;try{a=await this.store.read()}catch(a){this.loadFailed=!0,console.error(`[ScheduledTaskManager] ${i.iK} could not be read — NO scheduled task will fire until it is fixed. The file has been left untouched:`,a);return}for(let b of(console.log(`[ScheduledTaskManager] Loaded ${a.length} scheduled tasks`),a))A(b,"boot")&&(console.warn(`[ScheduledTask] task ${b.id} was cut off mid-run by the previous process; marking interrupted`),await this.store.update(b.id,G));for(let a of(await this.store.read()))await this.arm(a)}}isLoadFailed(){return this.loadFailed}setOnTaskFired(a){this.onTaskFired=a}async getTasks(){await this.ensureInit();let a=await this.store.read();return a.sort((a,b)=>(a.sortIndex??a.createdAt)-(b.sortIndex??b.createdAt)),a}async getUnreadCount(){return await this.ensureInit(),(await this.store.read()).filter(a=>a.unread).length}async addTask(a){await this.ensureInit();let b=B({...a});return await this.store.add(b),await this.arm(b),b}async updateTask(a,b){await this.ensureInit();let c=B(b),d=await this.store.update(a,()=>c);return d&&await this.arm(d),d}async deleteTask(a){await this.ensureInit();let b=await this.store.remove(a);return b&&this.clearTimer(a),b}async pauseTask(a){return this.updateTask(a,{paused:!0})}async resumeTask(a){await this.ensureInit();let b=Date.now(),c=await this.store.update(a,a=>({paused:!1,consecutiveFailures:0,nextFireTime:a.nextFireTime>b?a.nextFireTime:"once"===a.type?b+6e4:D(a,b)}));return c&&await this.arm(c),c}async triggerTask(a){return await this.ensureInit(),!!(await this.store.read()).some(b=>b.id===a)&&(this.runTask(a,"trigger").catch(b=>{console.error(`[ScheduledTask] Manual trigger failed for ${a}:`,b)}),!0)}async persistSessionRebind(a,b){let c=await this.store.update(a,()=>({sessionId:b}));c&&this.onTaskFired?.(c)}async markRead(a){return await this.ensureInit(),await this.store.update(a,()=>({unread:!1}))!==null}async markReadBySessionId(a,b={}){await this.ensureInit(),await this.store.updateAll(c=>!c.unread||b.cwd&&c.cwd!==b.cwd||b.engine&&(c.engine??"claude")!==b.engine||void 0!==b.readBefore&&(c.lastFiredAt??c.createdAt)>b.readBefore?null:c.sessionId===a||"codex"===c.engine&&(0,i.Eh)(c.sessionId)===(0,i.Eh)(a)?{unread:!1}:null)}async markAllRead(){await this.ensureInit(),await this.store.updateAll(a=>a.unread?{unread:!1}:null)}async reorderTasks(a){await this.ensureInit(),await this.store.updateAll(b=>{let c=a.indexOf(b.id);return -1===c||b.sortIndex===c?null:{sortIndex:c}})}async arm(a){if(this.clearTimer(a.id),a.paused||a.completed||a.firingSince)return;let b=Date.now(),c=a.nextFireTime;if(c<=b)if("once"!==a.type)c=D(a,b),await this.store.update(a.id,()=>({nextFireTime:c}));else if(b-c<=36e5)console.log(`[ScheduledTask] once task ${a.id} came due ${Math.round((b-c)/1e3)}s ago while down; firing now`);else{await this.store.update(a.id,()=>({completed:!0,unread:!0})),console.warn(`[ScheduledTask] once task ${a.id} missed its fire time by ${Math.round((b-c)/6e4)}min (grace 60min); not running`);return}let d=setTimeout(()=>{this.timers.delete(a.id),this.runTask(a.id,"due").catch(b=>{console.error(`[ScheduledTask] Scheduled run failed for ${a.id}:`,b)})},Math.max(0,c-b));this.timers.set(a.id,d)}clearTimer(a){let b=this.timers.get(a);b&&(clearTimeout(b),this.timers.delete(a))}async runTask(a,b){let c="rejected",d=await this.store.update(a,a=>{let d;return A(a,b)?"due"===b&&!function(a,b=new Date){if("interval"!==a.type||!a.activeFrom||!a.activeTo)return!0;let[c,d]=a.activeFrom.split(":").map(Number),[e,f]=a.activeTo.split(":").map(Number),g=60*b.getHours()+b.getMinutes(),h=60*c+d,i=60*e+f;return h<=i?g>=h&&g<=i:g>=h||g<=i}(a)?(c="outside-range",{nextFireTime:D(a,Date.now())}):(c="claimed",(d=Date.now(),a=>({firingSince:d,..."due"===b&&"once"===a.type?{completed:!0}:{}}))(a)):null});if("outside-range"===c&&d){console.log(`[ScheduledTask] Skipping task ${a}: outside active range ${d.activeFrom}-${d.activeTo}`),await this.arm(d);return}if("claimed"!==c||!d)return void console.warn(`[ScheduledTask] Not running ${a} (${b}): not runnable in its current state`);console.log(`[ScheduledTask] ${"due"===b?"Firing":"Manual trigger"} ${a}: "${d.message}"`);let e=!1;try{e=await z(d)}finally{let c=await this.store.update(a,a=>{let c,d;return A(a,"settle")?(c=e,d=Date.now(),a=>{let e=c?0:(a.consecutiveFailures??0)+1,f={firingSince:void 0,lastFiredAt:d,lastResult:c?"success":"error",consecutiveFailures:e,unread:!0};return"trigger"===b?f:"once"===a.type?{...f,completed:!0}:!c&&e>=3?{...f,paused:!0}:{...f,nextFireTime:D(a,d)}})(a):null});c&&(c.paused&&!d.paused&&"due"===b&&console.warn(`[ScheduledTask] auto-paused task ${a} after ${c.consecutiveFailures} consecutive failures`),await this.arm(c),this.onTaskFired?.(c))}}constructor(){this.store=new H(i.iK),this.timers=new Map,this.initialized=!1,this.initPromise=null,this.loadFailed=!1,this.onTaskFired=null}}let J=globalThis,K=J.__scheduledTaskManager??(J.__scheduledTaskManager=new I);d()}catch(a){d(a)}})},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},64939:a=>{a.exports=import("pg")},66136:a=>{a.exports=require("timers")},73024:a=>{a.exports=require("node:fs")},73136:a=>{a.exports=require("node:url")},74075:a=>{a.exports=require("zlib")},75342:a=>{a.exports=require("@vscode/ripgrep")},75430:a=>{a.exports=import("@earendil-works/pi-coding-agent")},76760:a=>{a.exports=require("node:path")},77598:a=>{a.exports=require("node:crypto")},79428:a=>{a.exports=require("buffer")},79646:a=>{a.exports=require("child_process")},79748:a=>{a.exports=require("fs/promises")},80481:a=>{a.exports=require("node:readline")},83997:a=>{a.exports=require("tty")},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},88503:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.d(b,{OT:()=>m,Uu:()=>k,ex:()=>p,sP:()=>l});var e=c(89705),f=c(770),g=c(56825),h=a([g]);g=(h.then?(await h)():h)[0];let i=e.$mh({try:()=>g._u.getTasks(),catch:a=>new f.uV({message:"scheduler.getTasks failed",cause:a})}),j=e.$mh({try:()=>g._u.getUnreadCount(),catch:a=>new f.uV({message:"scheduler.getUnreadCount failed",cause:a})}),k=e.JkU(function*(){let a=yield*i,b=yield*j;return{tasks:a.map(a=>({...a,resolvedPrompt:(0,g.So)(a)})),unreadCount:b}}).pipe(e.DM4(()=>({tasks:[],unreadCount:0}))),l=a=>e.$mh({try:()=>g._u.addTask(a),catch:a=>new f.uV({message:"scheduler.addTask failed",cause:a})}),m=a=>e.$mh({try:()=>g._u.deleteTask(a),catch:a=>new f.uV({message:"scheduler.deleteTask failed",cause:a})}).pipe(e.qIB(b=>b?e.rIH:e.fJG(new f.m_({resource:"task",id:a})))),n=e.$mh({try:()=>g._u.markAllRead(),catch:a=>new f.uV({message:"scheduler.markAllRead failed",cause:a})}),o=new Set(["pause","resume","trigger","markRead","update"]),p=a=>{let{action:b,fields:c}=a;if("string"!=typeof b||!b)return e.fJG(new f.yI({field:"action",reason:"missing"}));let d="";if(o.has(b)){if("string"!=typeof a.id||!a.id)return e.fJG(new f.yI({field:"id",reason:"missing"}));d=a.id}if("pause"===b){let a;return(a=d,e.$mh({try:()=>g._u.pauseTask(a),catch:a=>new f.uV({message:"scheduler.pauseTask failed",cause:a})}).pipe(e.qIB(b=>b?e.PyW(b):e.fJG(new f.m_({resource:"task",id:a}))))).pipe(e.TjK(a=>({task:a,simpleSuccess:!1})))}if("resume"===b){let a;return(a=d,e.$mh({try:()=>g._u.resumeTask(a),catch:a=>new f.uV({message:"scheduler.resumeTask failed",cause:a})}).pipe(e.qIB(b=>b?e.PyW(b):e.fJG(new f.m_({resource:"task",id:a}))))).pipe(e.TjK(a=>({task:a,simpleSuccess:!1})))}if("trigger"===b){let a;return(a=d,e.$mh({try:()=>g._u.triggerTask(a),catch:a=>new f.uV({message:"scheduler.triggerTask failed",cause:a})}).pipe(e.qIB(b=>b?e.rIH:e.fJG(new f.m_({resource:"task",id:a}))))).pipe(e.as({task:null,simpleSuccess:!0}))}if("markRead"===b){let a;return(a=d,e.$mh({try:()=>g._u.markRead(a),catch:a=>new f.uV({message:"scheduler.markRead failed",cause:a})}).pipe(e.qIB(b=>b?e.rIH:e.fJG(new f.m_({resource:"task",id:a}))))).pipe(e.as({task:null,simpleSuccess:!0}))}if("markReadBySessionId"===b)return"string"==typeof c?.sessionId&&c.sessionId?(void 0===c.cwd||"string"==typeof c.cwd)&&(void 0===c.engine||"string"==typeof c.engine)&&(void 0===c.readBefore||"number"==typeof c.readBefore&&Number.isFinite(c.readBefore))?((a,b={})=>e.$mh({try:()=>g._u.markReadBySessionId(a,b),catch:a=>new f.uV({message:"scheduler.markReadBySessionId failed",cause:a})}))(c.sessionId,{cwd:c.cwd,engine:c.engine,readBefore:c.readBefore}).pipe(e.as({task:null,simpleSuccess:!0})):e.fJG(new f.yI({field:"fields",reason:"invalid read boundary"})):e.fJG(new f.yI({field:"fields.sessionId",reason:"missing or not a string"}));if("markAllRead"===b)return n.pipe(e.as({task:null,simpleSuccess:!0}));if("reorder"===b){let a;return Array.isArray(c?.orderedIds)?(a=c.orderedIds,e.$mh({try:()=>g._u.reorderTasks([...a]),catch:a=>new f.uV({message:"scheduler.reorderTasks failed",cause:a})})).pipe(e.as({task:null,simpleSuccess:!0})):e.fJG(new f.yI({field:"fields.orderedIds",reason:"missing or not an array"}))}if("update"===b){let a;if(!c)return e.fJG(new f.yI({field:"fields",reason:"missing"}));let b=Date.now(),h={...c};if("taskFile"in c||"message"in c){let a="string"==typeof c.taskFile?c.taskFile.trim():"";h.taskFile=a||void 0,h.message=a?"":"string"==typeof c.message?c.message.trim():""}return("startAt"in c||"type"in c)&&(h.startAt="interval"===c.type&&"number"==typeof c.startAt&&c.startAt>0?c.startAt:void 0),"once"===c.type&&c.delayMinutes?(h.nextFireTime=b+6e4*c.delayMinutes,h.completed=!1):"interval"===c.type&&c.intervalMinutes?h.nextFireTime=(0,g.lo)(h.startAt??b,c.intervalMinutes,b):"cron"===c.type&&c.cron&&(h.nextFireTime=(0,g.$_)(c.cron)),h.paused=!1,(a=d,e.$mh({try:()=>g._u.updateTask(a,h),catch:a=>new f.uV({message:"scheduler.updateTask failed",cause:a})}).pipe(e.qIB(b=>b?e.PyW(b):e.fJG(new f.m_({resource:"task",id:a}))))).pipe(e.TjK(a=>({task:a,simpleSuccess:!1})))}return e.fJG(new f.yI({field:"action",reason:`unrecognised: ${b}`}))};d()}catch(a){d(a)}})},91645:a=>{a.exports=require("net")},94735:a=>{a.exports=require("events")}};var b=require("../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4741,9705,2679,7347,6495,9830,2493],()=>b(b.s=30352));module.exports=c})();