farming-code 2.2.29 → 2.2.32

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 (385) hide show
  1. package/README.md +25 -66
  2. package/README.zh_cn.md +15 -66
  3. package/THIRD_PARTY_NOTICES.md +7 -0
  4. package/backend/acp/{client-services.js → client-services.cjs} +132 -134
  5. package/backend/acp/packaged-claude-acp.cjs +37 -0
  6. package/backend/acp/packaged-codex-acp.cjs +37 -0
  7. package/backend/acp/patch-decisions.cjs +182 -0
  8. package/backend/acp/permission-security.cjs +131 -0
  9. package/backend/{acp-checkpoint-store.js → acp-checkpoint-store.cjs} +90 -59
  10. package/backend/{acp-runtime.js → acp-runtime.cjs} +1219 -1125
  11. package/backend/acp-session-state.cjs +622 -0
  12. package/backend/acp-transcript.cjs +525 -0
  13. package/backend/agent-env.cjs +257 -0
  14. package/backend/agent-extension-discovery.cjs +452 -0
  15. package/backend/agent-extension-inventory.cjs +116 -0
  16. package/backend/agent-json-stream.cjs +283 -0
  17. package/backend/agent-lifecycle-journal.cjs +185 -0
  18. package/backend/{agent-manager.js → agent-manager.cjs} +3116 -4275
  19. package/backend/agent-order-transaction.cjs +85 -0
  20. package/backend/agent-order.cjs +159 -0
  21. package/backend/agent-provider-session.cjs +98 -0
  22. package/backend/agent-runtime-binding.cjs +179 -0
  23. package/backend/agent-session-history.cjs +1022 -0
  24. package/backend/agent-session-inventory.cjs +291 -0
  25. package/backend/async-cache.cjs +104 -0
  26. package/backend/atomic-json-store.cjs +67 -0
  27. package/backend/auth.cjs +261 -0
  28. package/backend/authoritative-inventory-cache.cjs +383 -0
  29. package/backend/business-health.cjs +68 -0
  30. package/backend/chat-runtime.cjs +50 -0
  31. package/backend/claude-settings.cjs +132 -0
  32. package/backend/cli-agents.cjs +435 -0
  33. package/backend/codex-context-window.cjs +196 -0
  34. package/backend/codex-models.cjs +228 -0
  35. package/backend/codex-session-archive.cjs +82 -0
  36. package/backend/codex-session-history.cjs +590 -0
  37. package/backend/{codex-terminal-profile.js → codex-terminal-profile.cjs} +149 -155
  38. package/backend/codex-transcript-sanitizer.cjs +130 -0
  39. package/backend/codex-transcript.cjs +2107 -0
  40. package/backend/command-runner-child.cjs +105 -0
  41. package/backend/config-manager.cjs +1263 -0
  42. package/backend/control-api.cjs +439 -0
  43. package/backend/data/LICENSE.cua +21 -0
  44. package/backend/executable-discovery.cjs +204 -0
  45. package/backend/farming-agent-bootstrap.cjs +81 -0
  46. package/backend/farming-agent-bootstrap.zh_cn.md +6 -2
  47. package/backend/{farming-app-cli.js → farming-app-cli.cjs} +441 -493
  48. package/backend/farming-cli.cjs +414 -0
  49. package/backend/farming-net-pass.cjs +319 -0
  50. package/backend/farming-net-registry.cjs +123 -0
  51. package/backend/farming-net-server.cjs +309 -0
  52. package/backend/farming-session-store.cjs +651 -0
  53. package/backend/git-worktree-info.cjs +181 -0
  54. package/backend/haiku-token.cjs +828 -0
  55. package/backend/index-html.cjs +96 -0
  56. package/backend/input-parts.cjs +68 -0
  57. package/backend/input-routing.cjs +40 -0
  58. package/backend/{local-session-engine.js → local-session-engine.cjs} +276 -282
  59. package/backend/main-agent-skills.cjs +309 -0
  60. package/backend/main-page-session.cjs +132 -0
  61. package/backend/native-pty-controller-generation.cjs +139 -0
  62. package/backend/{native-pty-host-client.js → native-pty-host-client.cjs} +338 -346
  63. package/backend/native-pty-host-identity.cjs +125 -0
  64. package/backend/native-pty-host-path.cjs +68 -0
  65. package/backend/{native-pty-host.js → native-pty-host.cjs} +480 -569
  66. package/backend/native-session-engine.cjs +296 -0
  67. package/backend/network.cjs +57 -0
  68. package/backend/npm-update-helper.cjs +399 -0
  69. package/backend/packaged-node-pty.cjs +120 -0
  70. package/backend/preview-session-manager.cjs +89 -0
  71. package/backend/provider-adapters.cjs +492 -0
  72. package/backend/provider-home-configuration.cjs +211 -0
  73. package/backend/provider-session-id.cjs +79 -0
  74. package/backend/provider-session-service.cjs +333 -0
  75. package/backend/qr-share-tickets.cjs +119 -0
  76. package/backend/resource-broadcast-protocol.cjs +50 -0
  77. package/backend/review-diff-router.cjs +202 -0
  78. package/backend/review-diff-service.cjs +1267 -0
  79. package/backend/review-session-router.cjs +93 -0
  80. package/backend/review-session-service.cjs +470 -0
  81. package/backend/review-session-store.cjs +161 -0
  82. package/backend/review-state-router.cjs +132 -0
  83. package/backend/review-state-store.cjs +299 -0
  84. package/backend/run-history-store.cjs +97 -0
  85. package/backend/runtime-dependency-manager.cjs +893 -0
  86. package/backend/runtime-executable-invocation.cjs +37 -0
  87. package/backend/runtime-observation.cjs +96 -0
  88. package/backend/server-process-identity.cjs +70 -0
  89. package/backend/server.cjs +3356 -0
  90. package/backend/session-engine-bridge.cjs +144 -0
  91. package/backend/session-engine-router.cjs +105 -0
  92. package/backend/session-engine.cjs +64 -0
  93. package/backend/session-stream-protocol.cjs +181 -0
  94. package/backend/shell-busy-integration.cjs +442 -0
  95. package/backend/slash-command-discovery.cjs +423 -0
  96. package/backend/storage-layout.cjs +263 -0
  97. package/backend/system-monitor.cjs +96 -0
  98. package/backend/terminal-attach-checkpoint.cjs +73 -0
  99. package/backend/terminal-exit-quiescence.cjs +57 -0
  100. package/backend/{terminal-reducer-flow-control.js → terminal-reducer-flow-control.cjs} +45 -22
  101. package/backend/terminal-runtime-cleanup.cjs +99 -0
  102. package/backend/{terminal-screen-state.js → terminal-screen-state.cjs} +100 -108
  103. package/backend/{terminal-screen-worker-pool.js → terminal-screen-worker-pool.cjs} +89 -79
  104. package/backend/{terminal-screen-worker-thread.js → terminal-screen-worker-thread.cjs} +64 -65
  105. package/backend/terminal-screen-worker.cjs +352 -0
  106. package/backend/terminal-state-serialization.cjs +147 -0
  107. package/backend/{terminal-status.js → terminal-status.cjs} +137 -187
  108. package/backend/theme-manager.cjs +185 -0
  109. package/backend/update-service.cjs +675 -0
  110. package/backend/usage-forecast.cjs +95 -0
  111. package/backend/{usage-history-client.js → usage-history-client.cjs} +144 -94
  112. package/backend/usage-history-smoke.cjs +85 -0
  113. package/backend/usage-history-worker.cjs +60 -0
  114. package/backend/{usage-monitor.js → usage-monitor.cjs} +363 -390
  115. package/backend/workspace-directory.cjs +239 -0
  116. package/backend/workspace-discovery.cjs +271 -0
  117. package/backend/{workspace-file-router.js → workspace-file-router.cjs} +213 -282
  118. package/backend/{workspace-file-service.js → workspace-file-service.cjs} +1139 -1318
  119. package/backend/workspace-root-registry.cjs +192 -0
  120. package/bin/farming +1 -1
  121. package/config/farming.deploy.env.example +1 -1
  122. package/config/farming.install.env.example +1 -1
  123. package/dist/acp/codex-acp-1.1.4.mjs +405 -8
  124. package/dist/assets/App-BCkdpWB6.css +1 -0
  125. package/dist/assets/App-CRjKpaGp.js +697 -0
  126. package/dist/assets/CodeSelect-Ci8sKZPU.js +1 -0
  127. package/dist/assets/CodeSelect-T2eNzrOc.css +1 -0
  128. package/dist/assets/{FileEditorMarkdownPreview-Cs9cLv8a.js → FileEditorMarkdownPreview-V06QHlAg.js} +55 -55
  129. package/dist/assets/FileEditorPane-BX-Wjg9U.js +2 -0
  130. package/dist/assets/IconGlyphs-YhV7tqd4.js +1 -0
  131. package/dist/assets/ProjectFilesSection-BDT2_r0o.js +12 -0
  132. package/dist/assets/ReviewPage-BqAs5sG1.js +3 -0
  133. package/dist/assets/code-dark-B7eM_9G9.css +1 -0
  134. package/dist/assets/{cssMode-Bdg5RpcJ.js → cssMode-ADdAlxTO.js} +1 -1
  135. package/dist/assets/{editor.api2-D74ufkbr.js → editor.api2-BFLAr0YF.js} +162 -162
  136. package/dist/assets/file-icons-BpeqWkIB.js +1 -0
  137. package/dist/assets/{freemarker2-DfMDJfnE.js → freemarker2-C90q5jrp.js} +1 -1
  138. package/dist/assets/{handlebars-BEdPtzMT.js → handlebars-BwUQcEDq.js} +1 -1
  139. package/dist/assets/{html-B1fPb1QD.js → html-1s3uPKfh.js} +1 -1
  140. package/dist/assets/{htmlMode-CY2ZjHxH.js → htmlMode-xtKD99de.js} +1 -1
  141. package/dist/assets/{index-CQNaZc3l.js → index-C8MchCem.js} +3 -3
  142. package/dist/assets/{javascript-BV2OsWA0.js → javascript-Ph7ijyny.js} +1 -1
  143. package/dist/assets/{jsonMode-zd07aeuX.js → jsonMode-D-jGAnFH.js} +1 -1
  144. package/dist/assets/linkComputer-CbGyI_qx.js +1 -0
  145. package/dist/assets/{liquid-BParI24X.js → liquid-0IamE_cI.js} +1 -1
  146. package/dist/assets/{lspLanguageFeatures-BzredkoV.js → lspLanguageFeatures-BxnQunWF.js} +1 -1
  147. package/dist/assets/main-CLKXa6hf.css +1 -0
  148. package/dist/assets/{mdx-vGzUJN98.js → mdx-DdNmfivn.js} +1 -1
  149. package/dist/assets/{monaco.contribution-BmaeBQEc.js → monaco.contribution-B43jsUs1.js} +2 -2
  150. package/dist/assets/{python-CUwdLgsI.js → python-IAt4X5TS.js} +1 -1
  151. package/dist/assets/{razor-BScebUxU.js → razor-DRkFYW0S.js} +1 -1
  152. package/dist/assets/review-C8-oPKXk.css +1 -0
  153. package/dist/assets/{tsMode-DzUAibXK.js → tsMode-_d_4U2gf.js} +1 -1
  154. package/dist/assets/{typescript-D9EOeM7N.js → typescript-C7zcMq9l.js} +1 -1
  155. package/dist/assets/{workers-DAiomYZM.js → workers-D0nOyJzf.js} +1 -1
  156. package/dist/assets/workspace-editor-model-DND_Y-Bj.js +1 -0
  157. package/dist/assets/workspace-editor-monaco-BPWhgcIB.js +4 -0
  158. package/dist/assets/workspace-editor-monaco-N641qPjX.js +1 -0
  159. package/dist/assets/workspace-view-state-k1bTlJ_Z.js +13 -0
  160. package/dist/assets/{xml-wWl1dhkQ.js → xml-BR-HvxT8.js} +1 -1
  161. package/dist/assets/{yaml-Dc2WDaOZ.js → yaml-YtFQwh4q.js} +1 -1
  162. package/dist/index.html +2 -1
  163. package/extensions/browser/backend/agent-browser-runtime.cjs +1040 -0
  164. package/extensions/browser/backend/agent-capability.cjs +85 -0
  165. package/extensions/browser/backend/browser-mcp-server.cjs +655 -0
  166. package/extensions/browser/backend/browser-resource-manager.cjs +1486 -0
  167. package/extensions/browser/backend/browser-resource-store.cjs +228 -0
  168. package/extensions/browser/backend/browser-router.cjs +203 -0
  169. package/extensions/browser/backend/executable-discovery.cjs +248 -0
  170. package/extensions/browser/backend/farming-browser-client.cjs +116 -0
  171. package/extensions/browser/backend/index.cjs +32 -0
  172. package/extensions/browser/backend/managed-chromium-installer.cjs +833 -0
  173. package/extensions/browser/bin/farming-browser +16 -7
  174. package/extensions/computer/backend/agent-capability.cjs +72 -0
  175. package/extensions/computer/backend/computer-constants.cjs +59 -0
  176. package/extensions/computer/backend/computer-mcp-server.cjs +182 -0
  177. package/extensions/computer/backend/computer-resource-manager.cjs +1219 -0
  178. package/extensions/computer/backend/computer-resource-store.cjs +190 -0
  179. package/extensions/computer/backend/computer-router.cjs +257 -0
  180. package/extensions/computer/backend/cua-tools.json +3067 -0
  181. package/extensions/computer/backend/farming-computer-client.cjs +84 -0
  182. package/extensions/computer/backend/index.cjs +35 -0
  183. package/extensions/computer/backend/isolated-browser-provider.cjs +157 -0
  184. package/extensions/computer/bin/farming-computer +131 -0
  185. package/frontend/farming-net/app.js +255 -262
  186. package/frontend/ghostty-loader.js +24 -20
  187. package/frontend/reading-anchor.js +210 -193
  188. package/frontend/runtime-paths.js +24 -26
  189. package/frontend/session-bridge.js +90 -111
  190. package/frontend/session-modal-bridge.js +184 -302
  191. package/frontend/skin-bridge.js +20 -23
  192. package/frontend/skins/crt/app.js +7686 -7901
  193. package/frontend/skins/crt/effects.js +7 -6
  194. package/frontend/skins/crt/index.html +6 -6
  195. package/frontend/skins/crt/styles/markdown.css +4 -4
  196. package/frontend/terminal-bridge.js +174 -181
  197. package/frontend/terminal-replay.js +320 -345
  198. package/frontend/theme-loader.js +55 -71
  199. package/index.html +1 -0
  200. package/package.json +64 -37
  201. package/shared/backend-connection-status.js +38 -69
  202. package/shared/browser-protocol.js +235 -110
  203. package/shared/websocket-liveness.js +40 -0
  204. package/backend/acp/packaged-claude-acp.js +0 -13
  205. package/backend/acp/packaged-codex-acp.js +0 -13
  206. package/backend/acp/patch-decisions.js +0 -153
  207. package/backend/acp/permission-security.js +0 -108
  208. package/backend/acp-session-state.js +0 -644
  209. package/backend/acp-transcript.js +0 -512
  210. package/backend/agent-env.js +0 -250
  211. package/backend/agent-json-stream.js +0 -268
  212. package/backend/agent-lifecycle-journal.js +0 -133
  213. package/backend/agent-memory-report.js +0 -583
  214. package/backend/agent-order.js +0 -166
  215. package/backend/agent-provider-session.js +0 -76
  216. package/backend/agent-runtime-binding.js +0 -174
  217. package/backend/agent-session-history.js +0 -953
  218. package/backend/async-cache.js +0 -94
  219. package/backend/atomic-json-store.js +0 -37
  220. package/backend/auth.js +0 -251
  221. package/backend/bundle-update-helper.js +0 -113
  222. package/backend/chat-runtime.js +0 -28
  223. package/backend/claude-settings.js +0 -121
  224. package/backend/cli-agents.js +0 -486
  225. package/backend/codex-context-window.js +0 -189
  226. package/backend/codex-models.js +0 -226
  227. package/backend/codex-rollout-follower.js +0 -326
  228. package/backend/codex-session-archive.js +0 -65
  229. package/backend/codex-session-history.js +0 -647
  230. package/backend/codex-transcript-sanitizer.js +0 -115
  231. package/backend/codex-transcript.js +0 -2564
  232. package/backend/command-runner-child.js +0 -67
  233. package/backend/config-manager.js +0 -1133
  234. package/backend/control-api.js +0 -455
  235. package/backend/executable-discovery.js +0 -216
  236. package/backend/farming-agent-bootstrap.js +0 -49
  237. package/backend/farming-cli.js +0 -457
  238. package/backend/farming-net-pass.js +0 -285
  239. package/backend/farming-net-registry.js +0 -112
  240. package/backend/farming-net-server.js +0 -298
  241. package/backend/farming-session-store.js +0 -677
  242. package/backend/git-worktree-info.js +0 -181
  243. package/backend/haiku-token.js +0 -772
  244. package/backend/index-html.js +0 -62
  245. package/backend/input-parts.js +0 -54
  246. package/backend/input-routing.js +0 -24
  247. package/backend/json-cli-runtime.js +0 -275
  248. package/backend/main-agent-skills.js +0 -305
  249. package/backend/main-page-session.js +0 -122
  250. package/backend/native-pty-controller-generation.js +0 -106
  251. package/backend/native-pty-host-identity.js +0 -86
  252. package/backend/native-pty-host-path.js +0 -42
  253. package/backend/native-session-engine.js +0 -268
  254. package/backend/network.js +0 -23
  255. package/backend/npm-update-helper.js +0 -374
  256. package/backend/packaged-node-pty.js +0 -99
  257. package/backend/preview-session-manager.js +0 -68
  258. package/backend/provider-adapters.js +0 -399
  259. package/backend/provider-session-id.js +0 -47
  260. package/backend/provider-session-service.js +0 -345
  261. package/backend/qr-share-tickets.js +0 -100
  262. package/backend/review-diff-router.js +0 -180
  263. package/backend/review-diff-service.js +0 -1270
  264. package/backend/review-session-router.js +0 -74
  265. package/backend/review-session-service.js +0 -446
  266. package/backend/review-session-store.js +0 -151
  267. package/backend/review-state-router.js +0 -116
  268. package/backend/review-state-store.js +0 -286
  269. package/backend/run-history-store.js +0 -67
  270. package/backend/runtime-dependency-manager.js +0 -759
  271. package/backend/runtime-executable-invocation.js +0 -20
  272. package/backend/runtime-observation.js +0 -81
  273. package/backend/server-process-identity.js +0 -47
  274. package/backend/server.js +0 -3267
  275. package/backend/session-engine-bridge.js +0 -129
  276. package/backend/session-engine-router.js +0 -66
  277. package/backend/session-engine.js +0 -39
  278. package/backend/session-stream-protocol.js +0 -185
  279. package/backend/shell-busy-integration.js +0 -472
  280. package/backend/slash-command-discovery.js +0 -433
  281. package/backend/storage-layout.js +0 -190
  282. package/backend/system-monitor.js +0 -77
  283. package/backend/terminal-attach-checkpoint.js +0 -74
  284. package/backend/terminal-exit-quiescence.js +0 -39
  285. package/backend/terminal-runtime-cleanup.js +0 -80
  286. package/backend/terminal-screen-worker.js +0 -337
  287. package/backend/terminal-state-serialization.js +0 -127
  288. package/backend/theme-manager.js +0 -163
  289. package/backend/update-service.js +0 -1545
  290. package/backend/usage-forecast.js +0 -86
  291. package/backend/usage-history-scanner.ts +0 -2718
  292. package/backend/usage-history-smoke.js +0 -64
  293. package/backend/usage-history-worker.js +0 -34
  294. package/backend/workspace-directory.js +0 -232
  295. package/backend/workspace-discovery.js +0 -311
  296. package/backend/workspace-root-registry.js +0 -166
  297. package/dist/assets/App-BKNUILuL.css +0 -1
  298. package/dist/assets/App-Ex2oVVXO.js +0 -693
  299. package/dist/assets/FileEditorPane-CNtuGjQ3.js +0 -2
  300. package/dist/assets/IconGlyphs-BClgag6E.js +0 -1
  301. package/dist/assets/ProjectFilesSection-Cf2BEcAN.js +0 -12
  302. package/dist/assets/ReviewPage-BRuxFaH5.js +0 -3
  303. package/dist/assets/code-dark-BEZTQwYZ.css +0 -1
  304. package/dist/assets/file-icons-BOlcJ0ZF.js +0 -1
  305. package/dist/assets/main-DK9Sy7-c.css +0 -1
  306. package/dist/assets/review-BcnwQtJv.css +0 -1
  307. package/dist/assets/workspace-editor-model-CSGCl21x.js +0 -1
  308. package/dist/assets/workspace-editor-monaco-CJNwbpCy.js +0 -4
  309. package/dist/assets/workspace-editor-monaco-CO9w8YV0.js +0 -1
  310. package/dist/assets/workspace-view-state-BjKPYp0E.js +0 -7
  311. package/extensions/browser/backend/agent-browser-runtime.js +0 -1041
  312. package/extensions/browser/backend/agent-capability.js +0 -55
  313. package/extensions/browser/backend/browser-mcp-server.js +0 -621
  314. package/extensions/browser/backend/browser-resource-manager.js +0 -1309
  315. package/extensions/browser/backend/browser-resource-store.js +0 -190
  316. package/extensions/browser/backend/browser-router.js +0 -133
  317. package/extensions/browser/backend/executable-discovery.js +0 -224
  318. package/extensions/browser/backend/farming-browser-client.js +0 -83
  319. package/extensions/browser/backend/index.js +0 -7
  320. package/extensions/browser/frontend/BrowserSidebarPortals.tsx +0 -360
  321. package/extensions/browser/frontend/BrowserViewer.tsx +0 -500
  322. package/extensions/browser/frontend/browser-resource-state.ts +0 -60
  323. package/extensions/browser/frontend/browser.css +0 -567
  324. package/extensions/browser/frontend/types.ts +0 -31
  325. package/extensions/browser/frontend/useBrowserResources.ts +0 -158
  326. package/frontend/vendor/ghostty-web/index.d.ts +0 -1842
  327. package/shared/backend-connection-status.d.ts +0 -37
  328. package/shared/browser-protocol.d.ts +0 -5
  329. /package/dist/assets/{api-w2x5QfxB.js → api-ByCV9MEr.js} +0 -0
  330. /package/dist/assets/{core-vPkV8P_m.js → core-Czwdx12k.js} +0 -0
  331. /package/dist/assets/{fsharp-DNZNZyEE.js → fsharp-BjPpkoJe.js} +0 -0
  332. /package/dist/assets/{go-_kPJjNc_.js → go-BkIDmSUP.js} +0 -0
  333. /package/dist/assets/{graphql-4HCNVt5g.js → graphql-CCJTpqi1.js} +0 -0
  334. /package/dist/assets/{hcl-C87ymY0o.js → hcl-s4z8lUFg.js} +0 -0
  335. /package/dist/assets/{ini-BYrrGNTc.js → ini-CyUW1I7Z.js} +0 -0
  336. /package/dist/assets/{java-B211rJbk.js → java-CFCcGRiM.js} +0 -0
  337. /package/dist/assets/{julia-DVPsRtBm.js → julia-DQyH_EYb.js} +0 -0
  338. /package/dist/assets/{kotlin-BYyNerjp.js → kotlin-B8hA5O51.js} +0 -0
  339. /package/dist/assets/{less-EC9UblGE.js → less-DaVdaas0.js} +0 -0
  340. /package/dist/assets/{lexon-B1yuUdqW.js → lexon-DLBhPd3y.js} +0 -0
  341. /package/dist/assets/{lua-Bo6GFzxT.js → lua-gB1c_cif.js} +0 -0
  342. /package/dist/assets/{m3-C-Y9cBVI.js → m3-C2T3z3gB.js} +0 -0
  343. /package/dist/assets/{markdown-BHu-wLbe.js → markdown-CKq-Euj1.js} +0 -0
  344. /package/dist/assets/{mips-Dkds26rX.js → mips-Bcs5qIDX.js} +0 -0
  345. /package/dist/assets/{msdax-PU4g-8_g.js → msdax-CBP48FHF.js} +0 -0
  346. /package/dist/assets/{mysql-fPpuGpS7.js → mysql-c7tiPcFj.js} +0 -0
  347. /package/dist/assets/{objective-c-Wy1e5JUf.js → objective-c-D4BZkeEV.js} +0 -0
  348. /package/dist/assets/{pascal-BIXwvrqU.js → pascal-CJDZg0MN.js} +0 -0
  349. /package/dist/assets/{pascaligo-DwR0AtL_.js → pascaligo-Bygi8Ynl.js} +0 -0
  350. /package/dist/assets/{perl-CGHAl8my.js → perl-aS8bkf7E.js} +0 -0
  351. /package/dist/assets/{pgsql-B91M73E2.js → pgsql-CzNAYFYl.js} +0 -0
  352. /package/dist/assets/{php-C70ttrCx.js → php-DOtoEFTT.js} +0 -0
  353. /package/dist/assets/{pla-BNrXaRh0.js → pla-DugRnao1.js} +0 -0
  354. /package/dist/assets/{postiats-Dv2IAZR9.js → postiats-DsXwusKh.js} +0 -0
  355. /package/dist/assets/{powerquery-CkY5Wq7J.js → powerquery-DL3o72oD.js} +0 -0
  356. /package/dist/assets/{powershell-uGIYLU3C.js → powershell-C1qHekys.js} +0 -0
  357. /package/dist/assets/{protobuf-CavfmJu-.js → protobuf-DHgsc-cH.js} +0 -0
  358. /package/dist/assets/{pug-Drqnyitx.js → pug-FZXlE_Iu.js} +0 -0
  359. /package/dist/assets/{qrcode-7uGsTEmi.js → qrcode-DJDTdjL7.js} +0 -0
  360. /package/dist/assets/{qsharp-C7yF-Dti.js → qsharp-bLyhI3DT.js} +0 -0
  361. /package/dist/assets/{r-HXLGP0_-.js → r-DjFGXbAa.js} +0 -0
  362. /package/dist/assets/{redis-C4y6mf2p.js → redis-DSoZ_V6u.js} +0 -0
  363. /package/dist/assets/{redshift-DdQrFPrv.js → redshift-CzkdCsrg.js} +0 -0
  364. /package/dist/assets/{restructuredtext-CBrf2PNj.js → restructuredtext-B_XPrGCQ.js} +0 -0
  365. /package/dist/assets/{ruby-CVtMoX2B.js → ruby-Cry2RneJ.js} +0 -0
  366. /package/dist/assets/{rust-Ckq4sbMP.js → rust-CWzdbFq1.js} +0 -0
  367. /package/dist/assets/{sb-er66OpE3.js → sb-DmofU59h.js} +0 -0
  368. /package/dist/assets/{scala-BdWZz-hH.js → scala-BUC2l-vN.js} +0 -0
  369. /package/dist/assets/{scheme-kTV_s2kP.js → scheme-CNIB_72f.js} +0 -0
  370. /package/dist/assets/{scss-Bymy2VJQ.js → scss-DcL4-NbX.js} +0 -0
  371. /package/dist/assets/{shell-bwEP1LQ1.js → shell-CgAGvSSA.js} +0 -0
  372. /package/dist/assets/{solidity-DCddeBgL.js → solidity-DSkt6O_P.js} +0 -0
  373. /package/dist/assets/{sophia-BMN3AQig.js → sophia--5ytcjDN.js} +0 -0
  374. /package/dist/assets/{sparql-CSXOLjzi.js → sparql-C1Srr7cD.js} +0 -0
  375. /package/dist/assets/{sql-COg8ewmK.js → sql-2k_O5fj7.js} +0 -0
  376. /package/dist/assets/{st-CIaZtBS_.js → st-DCCCPqfz.js} +0 -0
  377. /package/dist/assets/{swift-DXiOhUHu.js → swift-Dd8mAfOt.js} +0 -0
  378. /package/dist/assets/{systemverilog-BTDE6Dr2.js → systemverilog-B0-aZYXu.js} +0 -0
  379. /package/dist/assets/{tcl-B0zy9NvV.js → tcl-CZAZwPVX.js} +0 -0
  380. /package/dist/assets/{twig-D594l4Z1.js → twig-D-Ag0tdS.js} +0 -0
  381. /package/dist/assets/{typespec-XKVjaPqo.js → typespec-B7kTFp0Z.js} +0 -0
  382. /package/dist/assets/{useWorkspaceMenuKeyboard-Bpy_s69Z.js → useWorkspaceMenuKeyboard-uYZpDxhU.js} +0 -0
  383. /package/dist/assets/{vb-B2wYoKRV.js → vb-20w1JPum.js} +0 -0
  384. /package/dist/assets/{wgsl-D0Yf2LbK.js → wgsl-CLJfqFt0.js} +0 -0
  385. /package/dist/assets/{workspace-working-copy-C3FSR3N6.js → workspace-working-copy-Cfz07cOd.js} +0 -0
@@ -0,0 +1,2 @@
1
+ import{r as e}from"./chunk-DECur_0Z.js";import{i as t,t as n}from"./jsx-runtime-BthL93pI.js";import{c as r,s as i}from"./editor.api2-BFLAr0YF.js";import{r as a}from"./monaco.contribution-B43jsUs1.js";import{C as o,E as s,I as c,N as l,O as u,S as d,a as f,b as p,bt as m,c as h,d as g,f as _,g as v,j as y,k as b,l as x,n as S,r as C,s as w,v as T}from"./file-icons-BpeqWkIB.js";import{O as E,f as D,l as O,u as k}from"./IconGlyphs-YhV7tqd4.js";import{a as A,m as ee,o as j,t as M}from"./FileEditorMarkdownPreview-V06QHlAg.js";import{i as N,l as P,n as F,p as I,r as L,t as R,u as z}from"./workspace-working-copy-Cfz07cOd.js";import{A as B,D as V,M as te,N as ne,O as re,P as ie,T as H,_ as ae,a as oe,b as se,d as ce,f as le,g as ue,h as de,j as fe,k as pe,m as U,n as me,o as he,p as ge,r as _e,s as ve,t as ye,v as be,w as xe,x as Se,y as Ce}from"./workspace-editor-model-DND_Y-Bj.js";import{t as W}from"./useWorkspaceMenuKeyboard-uYZpDxhU.js";import{_ as we,c as G,d as K,f as Te,h as q,i as Ee,l as De,m as J,n as Oe,o as ke,p as Ae,r as je,t as Y,u as Me,v as Ne}from"./workspace-editor-monaco-BPWhgcIB.js";var X=e(t()),Z=n();function Pe({previewOpen:e}){return e?(0,Z.jsx)(`svg`,{className:`code-file-editor-action-svg`,width:`16`,height:`16`,viewBox:`0 0 16 16`,fill:`currentColor`,"aria-hidden":`true`,focusable:`false`,children:(0,Z.jsx)(`path`,{d:`M9 3.5V11.5C9 11.776 8.776 12 8.5 12C8.224 12 8 11.776 8 11.5V4.831L5.376 7.83C5.187 8.048 4.814 8.048 4.624 7.83L2 4.831V11.5C2 11.776 1.776 12 1.5 12C1.224 12 1 11.776 1 11.5V3.5C1 3.292 1.129 3.105 1.324 3.032C1.521 2.96 1.74 3.014 1.876 3.171L5 6.741L8.124 3.171C8.261 3.014 8.478 2.959 8.676 3.032C8.871 3.105 9 3.292 9 3.5ZM14.854 9.146C14.659 8.951 14.342 8.951 14.147 9.146L13.001 10.292V3.5C13.001 3.224 12.777 3 12.501 3C12.225 3 12.001 3.224 12.001 3.5V10.293L10.855 9.147C10.66 8.952 10.343 8.952 10.148 9.147C9.953 9.342 9.953 9.659 10.148 9.854L12.148 11.854C12.246 11.952 12.757 11.952 12.855 11.854L14.855 9.854C15.05 9.659 15.05 9.342 14.855 9.147L14.854 9.146Z`})}):(0,Z.jsx)(`svg`,{className:`code-file-editor-action-svg`,width:`16`,height:`16`,viewBox:`0 0 16 16`,fill:`currentColor`,"aria-hidden":`true`,focusable:`false`,children:(0,Z.jsx)(`path`,{d:`M12.5 1H3.5C2.122 1 1 2.122 1 3.5V12.5C1 13.878 2.122 15 3.5 15H12.5C13.878 15 15 13.878 15 12.5V3.5C15 2.122 13.878 1 12.5 1ZM14 12.5C14 13.327 13.327 14 12.5 14H3.5C2.673 14 2 13.327 2 12.5V3.5C2 2.673 2.673 2 3.5 2H12.5C13.327 2 14 2.673 14 3.5V12.5ZM12 3H4C3.448 3 3 3.448 3 4V6C3 6.552 3.448 7 4 7H12C12.552 7 13 6.552 13 6V4C13 3.448 12.552 3 12 3ZM12 6H4V4H12V6ZM12 8H9C8.448 8 8 8.448 8 9V12C8 12.552 8.448 13 9 13H12C12.552 13 13 12.552 13 12V9C13 8.448 12.552 8 12 8ZM12 12H9V9H12V12ZM7 8.5C7 8.776 6.776 9 6.5 9H3.5C3.224 9 3 8.776 3 8.5C3 8.224 3.224 8 3.5 8H6.5C6.776 8 7 8.224 7 8.5ZM7 10.5C7 10.776 6.776 11 6.5 11H3.5C3.224 11 3 10.776 3 10.5C3 10.224 3.224 10 3.5 10H6.5C6.776 10 7 10.224 7 10.5ZM7 12.5C7 12.776 6.776 13 6.5 13H3.5C3.224 13 3 12.776 3 12.5C3 12.224 3.224 12 3.5 12H6.5C6.776 12 7 12.224 7 12.5Z`})})}function Q(){return(0,Z.jsx)(`svg`,{className:`code-file-editor-action-svg`,width:`16`,height:`16`,viewBox:`0 0 16 16`,xmlns:`http://www.w3.org/2000/svg`,fill:`currentColor`,"aria-hidden":`true`,focusable:`false`,children:(0,Z.jsx)(`path`,{d:`M5.5 2H2.5C1.673 2 1 2.673 1 3.5V12.5C1 13.327 1.673 14 2.5 14H5.5C6.327 14 7 13.327 7 12.5V3.5C7 2.673 6.327 2 5.5 2ZM2.5 3H5.5C5.775 3 6 3.224 6 3.5V5H2V3.5C2 3.224 2.225 3 2.5 3ZM5.5 13H2.5C2.225 13 2 12.776 2 12.5V6H6V12.5C6 12.776 5.775 13 5.5 13ZM13.5 2H10.5C9.673 2 9 2.673 9 3.5V12.5C9 13.327 9.673 14 10.5 14H13.5C14.327 14 15 13.327 15 12.5V3.5C15 2.673 14.327 2 13.5 2ZM10.5 3H13.5C13.775 3 14 3.224 14 3.5V8H10V3.5C10 3.224 10.225 3 10.5 3ZM13.5 13H10.5C10.225 13 10 12.776 10 12.5V10H14V12.5C14 12.776 13.775 13 13.5 13Z`})})}function Fe(){return(0,Z.jsx)(`svg`,{className:`code-file-editor-action-svg`,width:`16`,height:`16`,viewBox:`0 0 16 16`,fill:`currentColor`,"aria-hidden":`true`,focusable:`false`,children:(0,Z.jsx)(`path`,{d:`M2.5 2C1.673 2 1 2.673 1 3.5V12.5C1 13.327 1.673 14 2.5 14H13.5C14.327 14 15 13.327 15 12.5V3.5C15 2.673 14.327 2 13.5 2H2.5ZM2 3.5C2 3.224 2.225 3 2.5 3H7.5V13H2.5C2.225 13 2 12.776 2 12.5V3.5ZM8.5 13V3H13.5C13.775 3 14 3.224 14 3.5V12.5C14 12.776 13.775 13 13.5 13H8.5ZM3.5 5H6V6H3.5V5ZM3.5 7H6V8H3.5V7ZM10 5H12.5V6H10V5ZM10 7H12.5V8H10V7ZM10 9H12.5V10H10V9Z`})})}function Ie(){return(0,Z.jsxs)(`svg`,{className:`code-file-editor-action-svg`,width:`16`,height:`16`,viewBox:`0 0 16 16`,xmlns:`http://www.w3.org/2000/svg`,fill:`currentColor`,"aria-hidden":`true`,focusable:`false`,children:[(0,Z.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M5 6.5V3.75C5 2.765 4.121 2.25 3.251 2.25C2.363 2.25 1.99 2.553 1.897 2.646C1.702 2.841 1.688 3.17 1.883 3.365C2.077 3.561 2.38 3.573 2.576 3.378C2.588 3.37 2.773 3.25 3.25 3.25C3.28 3.25 4 3.256 4 3.75V4.056C3.796 4.023 3.552 4 3.25 4C1.937 4 1.25 4.754 1.25 5.5C1.25 6.246 1.937 7 3.25 7C3.622 7 3.911 6.937 4.145 6.851C4.236 6.943 4.361 7 4.5 7C4.776 7 5 6.776 5 6.5ZM3.251 5C3.623 5 3.857 5.038 4.001 5.074V5.811C3.908 5.885 3.698 6 3.251 6C2.602 6 2.251 5.742 2.251 5.5C2.251 5.258 2.602 5 3.251 5Z`}),(0,Z.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M8.001 7C9.104 7 10.001 5.991 10.001 4.75C10.001 3.509 9.104 2.5 8.001 2.5C7.635 2.5 7.296 2.619 7.001 2.813V1.5C7.001 1.224 6.777 1 6.501 1C6.225 1 6.001 1.224 6.001 1.5V6.5C6.001 6.776 6.225 7 6.501 7C6.718 7 6.898 6.86 6.967 6.666C7.27 6.873 7.621 7 8.001 7ZM8.001 3.5C8.553 3.5 9.001 4.061 9.001 4.75C9.001 5.439 8.553 6 8.001 6C7.449 6 7.001 5.439 7.001 4.75C7.001 4.061 7.449 3.5 8.001 3.5Z`}),(0,Z.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M4.539 13.653C4.31 13.857 3.699 13.976 3.33 13.514C3.117 13.248 3 12.888 3 12.5C3 12.112 3.118 11.752 3.33 11.486C3.701 11.022 4.311 11.141 4.54 11.347C4.744 11.533 5.06 11.515 5.246 11.311C5.431 11.106 5.415 10.79 5.209 10.605C4.422 9.895 3.233 10.009 2.549 10.861C2.195 11.305 2 11.886 2 12.5C2 13.114 2.195 13.696 2.549 14.139C2.93 14.613 3.445 14.875 4 14.875C4.441 14.875 4.859 14.709 5.208 14.395C5.413 14.21 5.43 13.894 5.245 13.689C5.059 13.484 4.743 13.466 4.539 13.653Z`}),(0,Z.jsx)(`path`,{d:`M12.5 4H11.5C11.224 4 11 4.224 11 4.5C11 4.776 11.224 5 11.5 5H12.5C12.775 5 13 5.224 13 5.5V11.499C13 11.775 12.775 11.999 12.5 11.999H8.707L9.853 10.853C10.048 10.658 10.048 10.341 9.853 10.146C9.658 9.951 9.341 9.951 9.146 10.146L7.146 12.146C7.049 12.244 7 12.372 7 12.5C7 12.628 7.048 12.756 7.146 12.854L9.146 14.854C9.341 15.049 9.658 15.049 9.853 14.854C10.048 14.659 10.048 14.342 9.853 14.147L8.707 13.001H12.5C13.327 13.001 14 12.328 14 11.501V5.5C14 4.673 13.327 4 12.5 4Z`})]})}function Le(e,t,n){return e.showMarkdownPreview?n?t.showMarkdownSource:t.openMarkdownPreview:n?t.showFileSource:t.openFilePreview}function Re({actions:e,copy:t,diffOpen:n,markdownSplitOpen:r,openFile:i,sourcePreviewOpen:a,wordWrapEnabled:o,statusText:s,onReload:c,onSave:l,onToggleMarkdownSplit:u,onToggleSourcePreview:d,onToggleWordWrap:f,onToggleDiff:p}){let m=e.showMarkdownPreview||e.showSourcePreview,h=Le(e,t,a),g=r?t.closeMarkdownSplitPreview:t.openMarkdownSplitPreview;return(0,Z.jsxs)(`div`,{className:`code-file-editor-actions`,children:[e.showStatus&&s&&(0,Z.jsx)(`span`,{className:`code-file-editor-status ${i.externalChanged?`warning`:``}`,children:s}),e.showSave&&(0,Z.jsx)(`button`,{type:`button`,className:`code-file-editor-action save`,onClick:()=>l(!1),disabled:i.saving,"aria-label":t.saveFile,title:t.saveFile}),e.showDiff&&(0,Z.jsx)(`button`,{type:`button`,className:`code-file-editor-action diff ${n?`active`:``}`,onClick:p,disabled:i.saving,"aria-label":n?t.closeDiff:t.openFileDiff,title:n?t.closeDiff:t.openFileDiff,children:(0,Z.jsx)(Q,{})}),m&&(0,Z.jsx)(`button`,{type:`button`,className:`code-file-editor-action source-preview`,onClick:d,disabled:i.saving,"aria-label":h,title:h,children:(0,Z.jsx)(Pe,{previewOpen:a})}),e.showMarkdownPreview&&(0,Z.jsx)(`button`,{type:`button`,className:`code-file-editor-action markdown-split ${r?`active`:``}`,onClick:u,disabled:i.saving,"aria-label":g,title:g,children:(0,Z.jsx)(Fe,{})}),e.showWordWrap&&(0,Z.jsx)(`button`,{type:`button`,className:`code-file-editor-action word-wrap ${o?`active`:``}`,onClick:f,disabled:i.saving,"aria-pressed":o,"aria-label":o?t.disableWordWrap:t.enableWordWrap,title:o?t.disableWordWrap:t.enableWordWrap,children:(0,Z.jsx)(Ie,{})}),e.showReload&&(0,Z.jsx)(`button`,{type:`button`,className:`code-file-editor-action reload`,onClick:c,disabled:i.saving,"aria-label":t.reloadFile,title:t.reloadFile}),e.showOverwrite&&(0,Z.jsx)(`button`,{type:`button`,className:`code-file-editor-action overwrite`,onClick:()=>l(!0),disabled:i.saving,"aria-label":t.overwriteChangedFile,title:t.overwriteChangedFile,children:(0,Z.jsx)(E,{className:`code-file-editor-action-svg`})})]})}function ze({openFile:e,copy:t,onRevealInExplorer:n}){let r=(0,X.useMemo)(()=>V(e.file.path),[e.file.path]),i=ie(e.workspaceRoot),a=e.workspaceRoot?`${e.workspaceRoot.replace(/[\\/]+$/,``)}/${e.file.path}`:e.file.path;return r.length===0?(0,Z.jsx)(`span`,{"aria-hidden":`true`}):(0,Z.jsxs)(`nav`,{className:`code-file-editor-breadcrumbs`,title:a,"aria-label":t.filePath,children:[i&&(0,Z.jsxs)(`button`,{type:`button`,className:`code-file-editor-breadcrumb root`,onClick:()=>n(e.agentId,``,`directory`),"aria-label":t.revealInExplorer(i),children:[(0,Z.jsx)(`span`,{className:`code-file-editor-breadcrumb-name`,children:i}),(0,Z.jsx)(`span`,{className:`code-file-editor-breadcrumb-separator`,"aria-hidden":`true`})]}),r.map((r,i,a)=>{let o=i===a.length-1,s=re(a,i);return(0,Z.jsxs)(`button`,{type:`button`,className:`code-file-editor-breadcrumb ${o?`current`:``}`,onClick:()=>n(e.agentId,s,o?`file`:`directory`),"aria-label":t.revealInExplorer(s),children:[o&&(0,Z.jsx)(`img`,{className:`code-file-editor-breadcrumb-file-icon`,src:S(e.file.path),alt:``,"aria-hidden":`true`}),(0,Z.jsx)(`span`,{className:`code-file-editor-breadcrumb-name`,children:r}),!o&&(0,Z.jsx)(`span`,{className:`code-file-editor-breadcrumb-separator`,"aria-hidden":`true`})]},`${i}-${r}`)})]})}function Be(e){let t=e.currentTarget.getBoundingClientRect();return e.clientX<t.left+t.width/2?`before`:`after`}function Ve({openFile:e,openFiles:t,copy:n,onBackToAgent:r,onSelectOpenFile:i,canNavigateBack:a,canNavigateForward:o,onNavigateHistory:s,onSetTabRef:c,onOpenTabContextMenu:l,onTabAuxClick:u,onTabKeyDown:d,onCloseTab:f,onReorderOpenFile:p,actions:m}){let[h,g]=(0,X.useState)(null),_=(0,X.useRef)(null),v=()=>{g(null),window.setTimeout(()=>{_.current=null},0)};return(0,Z.jsxs)(`div`,{className:`code-file-editor-tab-strip`,children:[(0,Z.jsxs)(`div`,{className:`code-file-editor-navigation`,children:[e.sourceAgentId&&(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(`button`,{type:`button`,className:`code-file-editor-action code-file-editor-agent-return`,onClick:()=>r(e.sourceAgentId),"aria-label":n.backToAgent,title:n.backToAgent,"data-testid":`code-file-editor-back`,children:(0,Z.jsx)(D,{className:`code-file-editor-action-svg`})}),(0,Z.jsx)(`span`,{className:`code-file-editor-navigation-divider`,"aria-hidden":`true`})]}),(0,Z.jsx)(`button`,{type:`button`,className:`code-file-editor-action code-file-editor-history-back`,onClick:()=>{s(-1)},disabled:!a,"aria-label":n.goBack,title:n.goBack,"data-testid":`code-file-editor-history-back`,children:(0,Z.jsx)(O,{className:`code-file-editor-action-svg`})}),(0,Z.jsx)(`button`,{type:`button`,className:`code-file-editor-action code-file-editor-history-forward`,onClick:()=>{s(1)},disabled:!o,"aria-label":n.goForward,title:n.goForward,"data-testid":`code-file-editor-history-forward`,children:(0,Z.jsx)(k,{className:`code-file-editor-action-svg`})})]}),(0,Z.jsx)(`div`,{className:`code-file-editor-tabs`,role:`tablist`,children:t.map((t,r)=>{let a=H(t),o=a===H(e),s=I(t),m=z(t);return(0,Z.jsxs)(`div`,{id:fe(t),ref:e=>c(a,e),className:`code-file-editor-tab ${o?`active`:``} ${s}`.trim(),draggable:!0,"data-dragging":h?.sourceKey===a?`true`:void 0,"data-drop-position":h?.targetKey===a?h.position:void 0,title:t.file.path,role:`tab`,"aria-selected":o,"aria-controls":`code-file-editor-panel`,"aria-label":te(t),tabIndex:o?0:-1,onDragStart:e=>{if(e.target instanceof Element&&e.target.closest(`button`)){e.preventDefault();return}e.dataTransfer.effectAllowed=`move`,e.dataTransfer.setData(`text/plain`,a),_.current=a,g({sourceKey:a,targetKey:``,position:`before`})},onDragOver:e=>{if(!h||h.sourceKey===a)return;e.preventDefault(),e.dataTransfer.dropEffect=`move`;let t=Be(e);h.targetKey===a&&h.position===t||g(e=>e?{...e,targetKey:a,position:t}:null)},onDrop:e=>{e.preventDefault(),e.stopPropagation(),h&&h.sourceKey!==a&&p(h.sourceKey,a,Be(e)),v()},onDragEnd:v,onClick:e=>{if(_.current===a){e.preventDefault(),e.stopPropagation();return}i(t.agentId,t.file.path)},onContextMenu:e=>l(e,r),onAuxClick:e=>u(e,r),onKeyDown:e=>d(e,r),children:[(0,Z.jsx)(`img`,{className:`code-file-type-icon file`,src:S(t.file.path),alt:``,"aria-hidden":`true`}),(0,Z.jsx)(`span`,{className:`code-file-editor-tab-name`,children:U(t.file.path)}),(0,Z.jsxs)(`span`,{className:`code-file-editor-tab-tail`,children:[m&&(0,Z.jsx)(`span`,{className:`code-file-editor-dirty`,title:m===`external`?n.changedOnDisk:n.unsavedChanges}),(0,Z.jsx)(`button`,{type:`button`,tabIndex:-1,className:`code-file-editor-close`,onClick:e=>{e.stopPropagation(),f(r)},"aria-label":n.closeFile(t.file.path)})]})]},a)})}),m]})}function He({openFile:e,openFiles:t,editorMode:n,copy:r,statusText:i,onBackToAgent:a,onSelectOpenFile:o,canNavigateBack:s,canNavigateForward:c,onNavigateHistory:l,onSetTabRef:u,onOpenTabContextMenu:d,onTabAuxClick:f,onTabKeyDown:p,onCloseTab:m,onReorderOpenFile:h,onRevealInExplorer:g,onSave:_,onReload:v,onToggleSourcePreview:y,onToggleMarkdownSplit:b,onToggleWordWrap:x,onToggleDiff:S,canPreviewMarkdown:C,canPreviewSource:w,diffOpen:T,previewVisible:E,markdownSplitOpen:D,sourcePreviewOpen:O,wordWrapEnabled:k}){let A=!!e.file.path&&!E;return(0,Z.jsxs)(`header`,{className:`code-file-editor-header`,children:[(0,Z.jsx)(Ve,{openFile:e,openFiles:t,copy:r,onBackToAgent:a,onSelectOpenFile:o,canNavigateBack:s,canNavigateForward:c,onNavigateHistory:l,onSetTabRef:u,onOpenTabContextMenu:d,onTabAuxClick:f,onTabKeyDown:p,onCloseTab:m,onReorderOpenFile:h,actions:(0,Z.jsx)(Re,{actions:ge(e,n,{canPreviewMarkdown:C,canPreviewSource:w,statusText:i,showBreadcrumbs:A}),copy:r,diffOpen:T,openFile:e,markdownSplitOpen:D,sourcePreviewOpen:O,wordWrapEnabled:k,statusText:i,onReload:v,onSave:_,onToggleMarkdownSplit:b,onToggleSourcePreview:y,onToggleWordWrap:x,onToggleDiff:S})}),A&&(0,Z.jsx)(`div`,{className:`code-file-editor-bar`,children:(0,Z.jsx)(ze,{openFile:e,copy:r,onRevealInExplorer:g})})]})}function Ue({blame:e,loading:t,error:n,copy:r}){return!t&&!n&&(!e||e.isGitRepo&&e.lines.length>0)?null:(0,Z.jsx)(`div`,{className:`code-file-blame-toast ${n?`error`:``}`,"data-testid":`code-file-blame-state`,children:t?r.loadingBlame:n||(e&&!e.isGitRepo?r.notGitRepository:r.noCommittedLines)})}function We({x:e,y:t,copy:n,blameOpen:r,readOnly:i,showBlameContextAction:a,showLineChangesContextActions:o,onClose:s,onRunAction:c}){let l=(0,X.useRef)(null),u=W({menuOpen:!0,menuRef:l,onClose:s});return(0,Z.jsxs)(`div`,{ref:l,className:`code-editor-context-menu`,"data-testid":`code-editor-context-menu`,role:`menu`,style:{left:e,top:t},onKeyDown:u,onMouseDown:e=>e.stopPropagation(),children:[a&&(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(`button`,{type:`button`,role:`menuitem`,onClick:()=>c(`toggle-blame`),children:r?n.hideBlame:n.annotateWithBlame}),(0,Z.jsx)(`div`,{className:`code-editor-context-separator`,role:`separator`})]}),o&&(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(`button`,{type:`button`,role:`menuitem`,onClick:()=>c(`line-changes-previous`),children:n.openLineChangesWithPreviousRevision}),(0,Z.jsx)(`button`,{type:`button`,role:`menuitem`,onClick:()=>c(`line-changes-working`),children:n.openLineChangesWithWorkingFile}),(0,Z.jsx)(`div`,{className:`code-editor-context-separator`,role:`separator`})]}),(0,Z.jsx)(`button`,{type:`button`,role:`menuitem`,onClick:()=>c(`cut`),disabled:i,children:n.cut}),(0,Z.jsx)(`button`,{type:`button`,role:`menuitem`,onClick:()=>c(`copy`),children:n.copy}),(0,Z.jsx)(`button`,{type:`button`,role:`menuitem`,onClick:()=>c(`paste`),disabled:i,children:n.paste}),(0,Z.jsx)(`button`,{type:`button`,role:`menuitem`,onClick:()=>c(`select-all`),children:n.selectAll})]})}function Ge({label:e,saving:t,copy:n,onConfirmSave:r,onDiscard:i,onCancel:a}){return(0,Z.jsx)(`div`,{className:`code-file-save-confirm-backdrop`,"data-testid":`code-file-save-confirm`,role:`presentation`,onMouseDown:e=>e.stopPropagation(),children:(0,Z.jsxs)(`div`,{className:`code-file-save-confirm-dialog`,role:`dialog`,"aria-modal":`true`,"aria-labelledby":`code-file-save-confirm-title`,"aria-describedby":`code-file-save-confirm-description`,onKeyDown:e=>{e.key===`Escape`&&!t&&(e.preventDefault(),a())},children:[(0,Z.jsx)(`div`,{className:`code-file-save-confirm-brand`,"aria-hidden":`true`,children:`F`}),(0,Z.jsx)(`h2`,{id:`code-file-save-confirm-title`,children:n.saveBeforeCloseTitle(e)}),(0,Z.jsx)(`p`,{id:`code-file-save-confirm-description`,children:n.saveBeforeCloseDescription}),(0,Z.jsxs)(`div`,{className:`code-file-save-confirm-actions`,children:[(0,Z.jsx)(`button`,{type:`button`,className:`primary`,onClick:r,disabled:t,children:t?n.savingFile:n.save}),(0,Z.jsx)(`button`,{type:`button`,onClick:i,disabled:t,children:n.dontSave}),(0,Z.jsx)(`button`,{type:`button`,onClick:a,disabled:t,children:n.cancel})]})]})})}function Ke({menu:e,openFiles:t,copy:n,onRunAction:r}){return(0,Z.jsxs)(`div`,{className:`code-context-menu code-file-tab-context-menu`,"data-testid":`code-file-tab-context-menu`,role:`menu`,style:{left:e.x,top:e.y},children:[(0,Z.jsx)(`button`,{type:`button`,role:`menuitem`,onClick:()=>r(`close`),children:n.close}),(0,Z.jsx)(`button`,{type:`button`,role:`menuitem`,onClick:()=>r(`close-others`),disabled:t.length<=1,children:n.closeOthers}),(0,Z.jsx)(`button`,{type:`button`,role:`menuitem`,onClick:()=>r(`close-right`),disabled:e.index>=t.length-1,children:n.closeToRight}),(0,Z.jsx)(`button`,{type:`button`,role:`menuitem`,onClick:()=>r(`close-saved`),disabled:!R(t),children:n.closeSaved}),(0,Z.jsx)(`div`,{className:`code-context-menu-separator`,role:`separator`}),(0,Z.jsx)(`button`,{type:`button`,role:`menuitem`,onClick:()=>r(`close-all`),children:n.closeAll})]})}function qe({blame:e,blameError:t,blameLoading:n,blameOpen:r,copy:i,editorContextMenu:a,readOnly:o,openFiles:s,pendingCloseOpen:c,pendingCloseLabel:l,pendingCloseSaving:u,showBlameContextAction:d,showLineChangesContextActions:f,tabContextMenu:p,onCancelPendingClose:m,onCloseEditorContextMenu:h,onConfirmSaveAndClose:g,onDiscardAndClose:_,onRunEditorContextAction:v,onRunTabContextAction:y}){return(0,Z.jsxs)(Z.Fragment,{children:[a&&(0,Z.jsx)(We,{x:a.x,y:a.y,copy:i,blameOpen:r,readOnly:o,showBlameContextAction:d,showLineChangesContextActions:f,onClose:h,onRunAction:e=>void v(e)}),p&&(0,Z.jsx)(Ke,{menu:p,openFiles:s,copy:i,onRunAction:y}),c&&(0,Z.jsx)(Ge,{label:l,saving:u,copy:i,onConfirmSave:()=>void g(),onDiscard:_,onCancel:m}),r&&(0,Z.jsx)(Ue,{blame:e,loading:n,error:t,copy:i})]})}function Je({filePath:e,line:t,authorProfileUrl:n,copy:r,onClose:i}){return(0,Z.jsxs)(`section`,{className:`code-file-blame-detail`,"data-testid":`code-file-blame-detail`,"aria-label":r.gitBlameDetails,children:[(0,Z.jsxs)(`div`,{className:`code-file-blame-detail-main`,children:[(0,Z.jsxs)(`div`,{className:`code-file-blame-detail-title`,children:[(0,Z.jsx)(`strong`,{children:t.summary||t.shortCommit}),(0,Z.jsx)(`code`,{title:t.commit,children:t.shortCommit})]}),(0,Z.jsx)(`div`,{className:`code-file-blame-detail-subtitle`,children:e})]}),(0,Z.jsxs)(`div`,{className:`code-file-blame-detail-rows`,children:[(0,Z.jsxs)(`div`,{className:`code-file-blame-detail-row`,children:[(0,Z.jsx)(`span`,{children:r.author}),n?(0,Z.jsx)(`a`,{href:n,target:`_blank`,rel:`noreferrer`,children:t.author}):(0,Z.jsx)(`strong`,{children:t.author||r.unknown})]}),(0,Z.jsxs)(`div`,{className:`code-file-blame-detail-row`,children:[(0,Z.jsx)(`span`,{children:r.commit}),(0,Z.jsx)(`strong`,{title:t.commit,children:t.shortCommit})]}),(0,Z.jsxs)(`div`,{className:`code-file-blame-detail-row`,children:[(0,Z.jsx)(`span`,{children:r.date}),(0,Z.jsx)(`strong`,{children:me(t.authorTime)||r.uncommitted})]}),(0,Z.jsxs)(`div`,{className:`code-file-blame-detail-row`,children:[(0,Z.jsx)(`span`,{children:r.line}),(0,Z.jsx)(`strong`,{children:t.lineNumber})]})]}),(0,Z.jsx)(`button`,{type:`button`,className:`code-file-blame-detail-close`,onClick:i,"aria-label":r.closeBlameDetails})]})}function Ye(e,t){if(e.loading)return t.loadingDiff;if(e.error)return e.error;let n=e.diff;return n?n.isGitRepo?n.binary?t.binaryDiffUnavailable:n.truncated?t.diffTooLarge:n.patch.trim()?typeof n.originalContent!=`string`||typeof n.modifiedContent!=`string`?t.diffUnavailable:``:t.noFileDiff:t.notGitRepository:``}function Xe(e){let t=e.diff;return!!(t&&t.isGitRepo&&!t.binary&&!t.truncated&&t.patch.trim()&&typeof t.originalContent==`string`&&typeof t.modifiedContent==`string`)}function Ze(e,t){let n=P(e.file.path,e.workspaceRoot);return i.from({scheme:`farming-diff`,path:n.startsWith(`/`)?n:`/${n}`,query:t})}function Qe(e,t,n,i){let a=Ze(e,t);return r.getModel(a)?.dispose(),r.createModel(n,i,a)}function $e({openFile:e,diffState:t,copy:n,onClose:i}){let a=(0,X.useRef)(null),o=(0,X.useRef)(null),s=(0,X.useRef)(null),c=(0,X.useRef)(null),l=(0,X.useRef)(null),u=Xe(t),d=(0,X.useMemo)(()=>Ye(t,n),[n,t]);return(0,X.useEffect)(()=>{o.current?.focus({preventScroll:!0})},[]),(0,X.useEffect)(()=>{if(!u)return;let e=a.current;if(!e)return;je(),Y();let t=r.createDiffEditor(e,{theme:we(),automaticLayout:!1,renderSideBySide:!m(),originalEditable:!1,readOnly:!0,minimap:{enabled:!1},scrollBeyondLastLine:!1,...Ae(),fixedOverflowWidgets:!0,renderOverviewRuler:!0,enableSplitViewResizing:!m(),ignoreTrimWhitespace:!1,glyphMargin:!0,lineNumbersMinChars:4,unicodeHighlight:{ambiguousCharacters:!1,invisibleCharacters:!0,nonBasicASCII:!1}});s.current=t;let n=new ResizeObserver(()=>t.layout());n.observe(e);let i=new MutationObserver(e=>{e.some(e=>e.attributeName===`data-appearance`)&&Y(t),e.some(e=>e.attributeName===`data-code-content-font-size`)&&Me(t)});i.observe(document.body,{attributes:!0,attributeFilter:[`data-appearance`,`data-code-content-font-size`]});let o=window.requestAnimationFrame(()=>t.layout());return()=>{window.cancelAnimationFrame(o),n.disconnect(),i.disconnect(),Oe(t),t.dispose(),c.current?.dispose(),l.current?.dispose(),c.current=null,l.current=null,s.current=null}},[u]),(0,X.useEffect)(()=>{if(!u||!t.diff)return;let n=s.current;if(!n)return;c.current?.dispose(),l.current?.dispose();let r=J(e.file.path,t.diff.modifiedContent),i=Qe(e,`original`,t.diff.originalContent??``,r),a=Qe(e,`modified`,t.diff.modifiedContent??``,r);c.current=i,l.current=a,n.setModel({original:i,modified:a});let o=window.requestAnimationFrame(()=>n.layout());return()=>window.cancelAnimationFrame(o)},[t.diff,e,u]),(0,Z.jsxs)(`section`,{ref:o,className:`code-file-diff-view`,"data-testid":`code-file-diff-view`,"aria-label":n.fileDiff,tabIndex:-1,onKeyDownCapture:e=>{e.key===`Escape`&&(e.preventDefault(),e.stopPropagation(),i())},children:[(0,Z.jsxs)(`header`,{className:`code-file-diff-header`,children:[(0,Z.jsxs)(`div`,{className:`code-file-diff-title`,children:[(0,Z.jsx)(`strong`,{children:n.fileDiff}),(0,Z.jsx)(`span`,{children:e.file.path})]}),(0,Z.jsx)(`button`,{type:`button`,className:`code-file-diff-close`,"aria-label":n.closeDiff,onClick:i})]}),d&&(0,Z.jsx)(`div`,{className:`code-file-diff-state ${t.error?`error`:``}`,children:d}),(0,Z.jsx)(`div`,{ref:a,className:`code-file-diff-monaco ${u?``:`hidden`}`,"data-testid":`code-file-diff-monaco`})]})}function et({left:e,width:t,rows:n,copy:r,onShowDetail:i}){return n.length===0?null:(0,Z.jsx)(`div`,{className:`code-file-inline-blame-layer`,"aria-label":r.gitBlameAnnotations,children:n.map(({line:n,top:a})=>(0,Z.jsx)(`button`,{type:`button`,className:`code-file-inline-blame ${n.uncommitted?`uncommitted`:``}`,style:{left:e,top:a,width:t},title:`${n.shortCommit} ${n.author||r.unknown} ${n.summary}`,onClick:e=>{e.preventDefault(),e.stopPropagation(),i(n)},children:le(n)},`${n.lineNumber}-${n.commit}-${n.author}`))})}function tt(e,t){return e===`previous`?t.openLineChangesWithPreviousRevision:t.openLineChangesWithWorkingFile}function nt({mode:e,lineNumber:t,loading:n,error:r,changes:i,copy:a,onClose:o}){let s=i?.commit?`${i.commit.shortHash} ${i.commit.summary||``}`.trim():``,c=n?a.loadingLineChanges:r||(i&&!i.available?a.noLineChanges:``),l=i?.patch?i.patch.split(`
2
+ `):[];return(0,Z.jsxs)(`div`,{className:`code-file-line-changes-panel`,"data-testid":`code-file-line-changes-panel`,children:[(0,Z.jsxs)(`div`,{className:`code-file-line-changes-main`,children:[(0,Z.jsxs)(`div`,{className:`code-file-line-changes-title`,children:[(0,Z.jsx)(`strong`,{children:tt(e,a)}),(0,Z.jsxs)(`code`,{children:[a.line,` `,t]})]}),s&&(0,Z.jsx)(`div`,{className:`code-file-line-changes-subtitle`,children:s}),c&&(0,Z.jsx)(`div`,{className:`code-file-line-changes-state ${r?`error`:``}`,children:c}),!n&&!r&&i?.available&&(0,Z.jsx)(`pre`,{className:`code-file-line-changes-patch`,"aria-label":a.lineChanges,children:l.map((e,t)=>(0,Z.jsx)(`span`,{className:`code-file-line-changes-line ${Se(e)}`,children:e||` `},`${t}-${e}`))})]}),(0,Z.jsx)(`button`,{type:`button`,className:`code-file-line-changes-close`,"aria-label":a.closeLineChanges,onClick:o})]})}function rt(e){return e.replace(/&/g,`&amp;`).replace(/"/g,`&quot;`).replace(/</g,`&lt;`).replace(/>/g,`&gt;`)}function it(e,t){return e.replace(/(\b(?:href|src|poster)\s*=\s*["'])\/(?!\/)/gi,`$1${t}`).replace(/(url\(\s*["']?)\/(?!\/)/gi,`$1${t}`)}function at(e,t=Date.now()){return Math.max(1e3,e-t-6e4)}function ot(e,t,n){let r=rt(t),i=rt(n),a=[`<meta http-equiv="Content-Security-Policy" content="${[`default-src 'none'`,`script-src 'none'`,`style-src ${r} ${i} 'unsafe-inline'`,`img-src ${r} ${i} data:`,`font-src ${r} ${i} data:`,`media-src ${r} ${i} data:`,`connect-src 'none'`,`frame-src 'none'`,`object-src 'none'`,`form-action 'none'`].join(`; `)}">`,`<base href="${r}">`].join(``),o=it(String(e||``),i);return/<head\b[^>]*>/i.test(o)?o.replace(/<head\b[^>]*>/i,e=>`${e}${a}`):/<html\b[^>]*>/i.test(o)?o.replace(/<html\b[^>]*>/i,e=>`${e}<head>${a}</head>`):`<head>${a}</head>${o}`}function st({activeTabDomId:e,copy:t,openFile:n}){let[r,i]=(0,X.useState)(``),[a,o]=(0,X.useState)(0),[s,c]=(0,X.useState)(``),[l,u]=(0,X.useState)(n.draft);(0,X.useEffect)(()=>{let e=window.setTimeout(()=>u(n.draft),200);return()=>window.clearTimeout(e)},[n.draft]),(0,X.useEffect)(()=>{let e=!1,t=``,r=0;return i(``),c(``),f(n.agentId,n.file.path,{exactExternal:n.exactExternal}).then(n=>{if(e){w(n.id);return}t=n.id,i(n.id),r=window.setTimeout(()=>o(e=>e+1),at(n.expiresAt))}).catch(t=>{e||c(t instanceof Error?t.message:String(t||`HTML preview failed`))}),()=>{e=!0,window.clearTimeout(r),t&&w(t)}},[n.agentId,n.exactExternal,n.file.path,a]);let p=(0,X.useMemo)(()=>r?ot(l,new URL(d(r,`base`),window.location.href).toString(),new URL(d(r,`root`),window.location.href).toString()):``,[r,l]);return(0,Z.jsx)(`section`,{className:`code-file-preview-panel html`,"data-testid":`code-file-html-preview-panel`,role:`tabpanel`,"aria-labelledby":e,tabIndex:-1,children:s?(0,Z.jsx)(`div`,{className:`code-file-diff-state error`,children:s}):r?(0,Z.jsx)(`iframe`,{className:`code-file-html-preview`,"data-testid":`code-file-html-preview`,sandbox:``,referrerPolicy:`no-referrer`,srcDoc:p,title:t.previewFor(n.file.path)}):(0,Z.jsx)(`div`,{className:`code-file-diff-state`,children:t.loading})})}function ct({openFile:e,activeTabDomId:t,copy:n,sourcePreviewOpen:r}){let i=e.file.preview??null,a=r&&ve(e.file.path)?{kind:`image`,mediaType:`image/svg+xml`}:null,o=i?.kind===`image`?i:a,s=i?.kind===`pdf`?i:null,c=i?.kind===`binary`?i:null;return r&&oe(e.file.path)?(0,Z.jsx)(st,{activeTabDomId:t,copy:n,openFile:e}):o?(0,Z.jsx)(`section`,{className:`code-file-preview-panel`,"data-testid":`code-file-preview-panel`,role:`tabpanel`,"aria-labelledby":t,tabIndex:-1,children:(0,Z.jsx)(`div`,{className:`code-file-image-preview-frame`,children:(0,Z.jsx)(`img`,{className:`code-file-image-preview`,"data-testid":`code-file-image-preview`,src:T(e.agentId,e.file.path,e.file.sha1,{exactExternal:e.exactExternal}),alt:U(e.file.path),draggable:!1})})}):s?(0,Z.jsx)(`section`,{className:`code-file-preview-panel`,"data-testid":`code-file-preview-panel`,role:`tabpanel`,"aria-labelledby":t,tabIndex:-1,children:(0,Z.jsx)(`iframe`,{className:`code-file-pdf-preview`,"data-testid":`code-file-pdf-preview`,src:T(e.agentId,e.file.path,e.file.sha1,{exactExternal:e.exactExternal}),title:n.previewFor(e.file.path)})}):c?(0,Z.jsx)(`section`,{className:`code-file-preview-panel metadata`,"data-testid":`code-file-preview-panel`,role:`tabpanel`,"aria-labelledby":t,"aria-label":n.previewFor(e.file.path),tabIndex:-1,children:(0,Z.jsx)(`img`,{className:`code-file-metadata-preview-icon`,"data-testid":`code-file-metadata-preview-icon`,src:S(e.file.path),alt:``,"aria-hidden":`true`,draggable:!1})}):null}function lt(e){return[e.agentId,e.workspaceRoot,e.file.path,e.file.sha1||``,String(e.revision)].join(`\0`)}function ut({activeTabDomId:e,copy:t,onRetry:n}){return(0,Z.jsx)(`section`,{className:`code-file-preview-panel`,"data-testid":`code-file-preview-render-error`,role:`tabpanel`,"aria-labelledby":e,tabIndex:-1,children:(0,Z.jsxs)(`div`,{className:`code-file-diff-state error`,role:`alert`,children:[(0,Z.jsx)(`span`,{children:t.filesRefreshFailed}),(0,Z.jsx)(`button`,{type:`button`,className:`code-file-editor-action reload`,"aria-label":t.retry,title:t.retry,onClick:n})]})})}function dt({activeTabDomId:e,blame:t,blameAuthorProfileUrl:n,blameDetailLine:r,blameOpen:i,blameOverlay:a,copy:o,cursorPosition:s,diffState:c,editorMode:l,editorHostRef:u,lineChanges:d,markdownSplitOpen:f,markdownPreviewOpen:p,sourcePreviewOpen:m,openFile:h,onClearBlameDetail:g,onCloseLineChanges:_,onCloseDiff:v,onOpenFilePath:y,onShowBlameDetail:b}){let x=B({diffOnly:l.diffOnly,diffOpen:c.open,markdownSplitOpen:f,markdownPreviewOpen:p,sourcePreviewOpen:m,visualPreview:l.visualPreview}),S=(0,X.useRef)(null),C=x.showEditorOverlays||x.showMarkdownPreview,w=`${h.agentId}:${h.file.path}`,T=lt(h);return(0,Z.jsxs)(Z.Fragment,{children:[x.showDiffView&&(0,Z.jsx)($e,{openFile:h,diffState:c,copy:o,onClose:v}),(0,Z.jsxs)(`div`,{className:`code-file-editor-source-region ${x.showMarkdownSplit?`markdown-split`:``} ${x.showMonaco||x.showMarkdownSplit?``:`hidden`}`.trim(),"data-testid":x.showMarkdownSplit?`code-file-markdown-split`:void 0,children:[(0,Z.jsx)(`div`,{id:`code-file-editor-panel`,ref:u,className:`code-file-monaco`,"data-testid":`code-file-monaco`,role:`tabpanel`,"aria-labelledby":e,tabIndex:-1}),x.showMarkdownSplit&&(0,Z.jsx)(A,{label:`file Markdown split preview`,resetKey:T,fallback:(t,n)=>(0,Z.jsx)(ut,{activeTabDomId:e,copy:o,onRetry:n}),children:(0,Z.jsx)(j,{surface:`file-preview`,identity:`${w}:markdown`,children:(0,Z.jsx)(M,{ref:S,activeTabDomId:e,openFile:h,onOpenFilePath:y,copy:o})})})]}),x.showDiffOnlyPreview&&(0,Z.jsx)(`section`,{className:`code-file-preview-panel metadata`,"data-testid":`code-file-preview-panel`,role:`tabpanel`,"aria-labelledby":e,tabIndex:-1,children:(0,Z.jsx)(`div`,{className:`code-file-diff-state`,children:o.deletedFileDiffOnly})}),x.showMarkdownPreview&&(0,Z.jsx)(A,{label:`file Markdown preview`,resetKey:T,fallback:(t,n)=>(0,Z.jsx)(ut,{activeTabDomId:e,copy:o,onRetry:n}),children:(0,Z.jsx)(j,{surface:`file-preview`,identity:`${w}:markdown`,children:(0,Z.jsx)(M,{activeTabDomId:e,openFile:h,onOpenFilePath:y,copy:o})})}),x.showEditorOverlays&&i&&t?.isGitRepo&&(0,Z.jsx)(et,{left:a.left,width:a.width,rows:a.rows,copy:o,onShowDetail:b}),(x.showSourcePreview||l.visualPreview)&&(0,Z.jsx)(A,{label:`file visual preview`,resetKey:`${T}\u0000${x.showSourcePreview?`open`:`closed`}`,fallback:(t,n)=>(0,Z.jsx)(ut,{activeTabDomId:e,copy:o,onRetry:n}),children:(0,Z.jsx)(j,{surface:`file-preview`,identity:`${w}:visual`,children:(0,Z.jsx)(ct,{openFile:h,activeTabDomId:e,copy:o,sourcePreviewOpen:x.showSourcePreview})})}),x.showEditorOverlays&&i&&r&&(0,Z.jsx)(Je,{filePath:h.file.path,line:r,authorProfileUrl:n,copy:o,onClose:g}),x.showEditorOverlays&&d&&(0,Z.jsx)(nt,{mode:d.mode,lineNumber:d.lineNumber,loading:d.loading,error:d.error,changes:d.changes,copy:o,onClose:_}),C&&(0,Z.jsx)(`div`,{className:`code-file-editor-statusbar`,"data-testid":`code-file-editor-statusbar`,children:(0,Z.jsx)(`span`,{className:`code-file-editor-cursor-position`,children:o.cursorPosition(s.lineNumber,s.column)})})]})}function ft(e){return e instanceof C&&_e(e.status)}function pt({openFile:e,disabled:t,onRevealLine:n}){let r=(0,X.useRef)(0),i=(0,X.useRef)(0),a=(0,X.useRef)(H(e)),o=(0,X.useRef)(t),[s,c]=(0,X.useState)(!1),[l,u]=(0,X.useState)(!1),[d,f]=(0,X.useState)(null),[p,m]=(0,X.useState)(null),[g,_]=(0,X.useState)(`unknown`),[v,y]=(0,X.useState)(null);a.current=H(e),o.current=t;let b=(0,X.useMemo)(()=>{let e=d?.lines??[];return{compact:ye(e,!0),regular:ye(e,!1)}},[d]),S=(0,X.useCallback)(()=>{y(null)},[]),C=(0,X.useCallback)(async()=>{if(t)return _(`unavailable`),null;let n=H(e),i=r.current+1;r.current=i,u(!0),m(null);try{let t=await h(e.agentId,e.file.path);return r.current!==i||a.current!==n||o.current?null:(f(t),_(t.isGitRepo&&t.lines.length>0?`available`:`unavailable`),t)}catch(e){return r.current!==i||a.current!==n||o.current?null:(f(null),m(e instanceof Error?e.message:`Failed to load blame`),_(ft(e)?`unavailable`:`unknown`),null)}finally{r.current===i&&a.current===n&&!o.current&&u(!1)}},[t,e.agentId,e.file.path,e.file.sha1,e.workspaceRoot]),w=(0,X.useCallback)(async()=>{if(t)return _(`unavailable`),`unavailable`;let n=H(e),r=i.current+1;i.current=r;try{let t=await x(e.agentId,e.file.path);if(i.current!==r||a.current!==n)return null;let o=t.available?`available`:`unavailable`;return _(o),o}catch{return i.current!==r||a.current!==n?null:(_(`unavailable`),`unavailable`)}},[t,e]),T=(0,X.useCallback)(async()=>{if(t)return;if(s){c(!1),y(null);return}let n=H(e),r=g===`unknown`?await w():g;r!==null&&r!==`unavailable`&&a.current===n&&!o.current&&c(!0)},[g,s,w,t,e]),E=(0,X.useCallback)(e=>{n(e.lineNumber,{focusEditor:!1}),y({line:e})},[n]);return(0,X.useEffect)(()=>{f(null),u(!1),m(null),_(t?`unavailable`:`unknown`)},[t,e.agentId,e.file]),(0,X.useEffect)(()=>{t&&(c(!1),f(null),m(null),_(`unavailable`))},[t,e.agentId,e.file.path]),(0,X.useEffect)(()=>{if(!s)return;let e=!1;return C().then(t=>{e||(!t?.isGitRepo||t.lines.length===0)&&(c(!1),y(null))}),()=>{e=!0}},[s,C]),(0,X.useEffect)(()=>{y(null)},[s,e.agentId,e.file.path]),{blameOpen:s,blameLoading:l,blame:d,blameError:p,blameCapability:g,blameDetail:v,blameLabelWidths:b,checkBlameCapability:w,toggleBlame:T,showBlameDetail:E,clearBlameDetail:S}}function mt({blame:e,blameLabelWidths:t,blameOpen:n,editorHostRef:i,editorRef:a,disabled:o}){let[s,c]=(0,X.useState)({left:0,width:112,rows:[]}),l=(0,X.useCallback)(()=>{let s=a.current,l=i.current;if(!s||!l||!n||!e?.isGitRepo||o){c({left:0,width:112,rows:[]}),s?.updateOptions({lineDecorationsWidth:10});return}let u=l.clientWidth<=520?t.compact:t.regular;s.updateOptions({lineDecorationsWidth:u+12});let d=s.getLayoutInfo(),f=l.offsetTop,p=s.getScrollTop(),m=s.getOption(r.EditorOption.lineHeight),h=l.offsetLeft+Math.max(0,d.contentLeft-u-8),g=ne({visibleRanges:s.getVisibleRanges(),scrollTop:p,hostHeight:l.clientHeight,lineHeight:m});c({left:h,width:u,rows:de(e.lines,{...g,hostTop:f,scrollTop:p,hostHeight:l.clientHeight,lineHeight:m,getTopForLineNumber:e=>s.getTopForLineNumber(e)})})},[e,t,n,o,i,a]);return(0,X.useEffect)(()=>{let e=a.current;if(!e)return;l();let t=e.onDidScrollChange(l),n=e.onDidLayoutChange(l),r=window.requestAnimationFrame(l);return()=>{t.dispose(),n.dispose(),window.cancelAnimationFrame(r)}},[a,l]),{blameOverlay:s}}function ht({blameCapability:e,blameOpen:t,canShowBlame:n,canShowLineChanges:i,editorRef:a,readOnly:o,onCheckBlameCapability:s,onClearBlameDetail:c,onCloseTabContextMenu:l,onOpenLineChanges:u,onToggleBlame:d}){let[f,p]=(0,X.useState)(null),m=(0,X.useCallback)(()=>{p(null)},[]),h=(0,X.useCallback)(e=>{let i=e.target.type,o=new Set([r.MouseTargetType.GUTTER_GLYPH_MARGIN,r.MouseTargetType.GUTTER_LINE_NUMBERS,r.MouseTargetType.GUTTER_LINE_DECORATIONS,r.MouseTargetType.GUTTER_VIEW_ZONE]),u=e.target.position?.lineNumber??a.current?.getPosition()?.lineNumber??1,d=o.has(i)?`gutter`:`editor`;e.event.preventDefault(),e.event.stopPropagation(),c(),l();let f={x:Math.max(8,Math.min(e.event.posx,window.innerWidth-220)),y:Math.max(8,Math.min(e.event.posy,window.innerHeight-230)),kind:d,lineNumber:u};if(d===`gutter`&&n&&!t){s().then(e=>{e!==null&&p(f)});return}p(f)},[t,n,a,s,c,l]),g=(0,X.useCallback)(async e=>{let t=a.current,r=f;if(m(),!t)return;let s=t.getModel(),c=t.getSelection();if(e===`toggle-blame`){if(!n)return;await d();return}if(e===`line-changes-previous`||e===`line-changes-working`){if(!i)return;let n=r?.lineNumber??t.getPosition()?.lineNumber??1;await u(e===`line-changes-previous`?`previous`:`working`,n);return}if(e===`select-all`&&s){t.setSelection(s.getFullModelRange()),t.focus();return}if(!(!s||!c)){if(e===`copy`||e===`cut`){let n=s.getValueInRange(c);n&&await navigator.clipboard?.writeText(n).catch(()=>{}),e===`cut`&&n&&!o&&t.executeEdits(`farming-context-menu`,[{range:c,text:``,forceMoveMarkers:!0}]),t.focus();return}if(e===`paste`&&!o){let e=await navigator.clipboard?.readText().catch(()=>``)??``;e&&t.executeEdits(`farming-context-menu`,[{range:c,text:e,forceMoveMarkers:!0}]),t.focus()}}},[n,i,m,f,a,u,d,o]),_=!!(f&&f.kind===`gutter`&&n&&(t||e===`available`)),v=!!(f&&f.kind===`gutter`&&i);return(0,X.useEffect)(()=>{let e=e=>{let t=e.target;t instanceof Element&&t.closest(`.code-editor-context-menu, .code-file-tab-context-menu, .code-file-blame-detail, .code-file-inline-blame, .code-file-line-changes-panel`)||(p(null),l())},t=e=>{e.key===`Escape`&&(p(null),l())};return document.addEventListener(`mousedown`,e,!0),document.addEventListener(`keydown`,t,!0),()=>{document.removeEventListener(`mousedown`,e,!0),document.removeEventListener(`keydown`,t,!0)}},[l]),{editorContextMenu:f,closeEditorContextMenu:m,openEditorContextMenu:h,runEditorContextAction:g,showBlameContextAction:_,showLineChangesContextActions:v}}function gt({openFile:e,diffDisabled:t,onClearBlameDetail:n}){let r=(0,X.useRef)(0),i=(0,X.useRef)(void 0),a=(0,X.useRef)(H(e)),[o,s]=(0,X.useState)({open:!1,loading:!1,error:null,diff:null});a.current=H(e);let c=(0,X.useCallback)(()=>{r.current+=1,s({open:!1,loading:!1,error:null,diff:null})},[]),l=(0,X.useCallback)(async()=>{if(t)return;let i=r.current+1,o=H(e);r.current=i,n(),s({open:!0,loading:!0,error:null,diff:null});try{let t=await g(e.agentId,e.file.path);if(r.current!==i||a.current!==o)return;s({open:!0,loading:!1,error:null,diff:t})}catch(e){if(r.current!==i||a.current!==o)return;s({open:!0,loading:!1,error:e instanceof Error?e.message:`Failed to load diff`,diff:null})}},[t,n,e]),u=(0,X.useCallback)(()=>{if(o.open){c();return}l()},[c,o.open,l]);return(0,X.useEffect)(()=>{r.current+=1,s({open:!1,loading:!1,error:null,diff:null})},[t,e.agentId,e.file]),(0,X.useEffect)(()=>{!e.diffRequestId||t||i.current===e.diffRequestId||(i.current=e.diffRequestId,l())},[t,l,e.diffRequestId]),{diffState:o,closeDiff:c,toggleDiff:u}}function _t({openFile:e,disabled:t,onClearBlameDetail:n,onRevealLine:r}){let i=(0,X.useRef)(0),a=(0,X.useRef)(H(e)),[o,s]=(0,X.useState)(null);a.current=H(e);let c=(0,X.useCallback)(()=>{s(null)},[]),l=(0,X.useCallback)(async(o,c)=>{if(t)return;let l=i.current+1,u=H(e);i.current=l,n(),s(se(o,c)),r(c,{focusEditor:!1});try{let t=await v(e.agentId,e.file.path,c,o);if(i.current!==l||a.current!==u)return;s(Ce(o,c,t))}catch(e){if(i.current!==l||a.current!==u)return;s(be(o,c,e))}},[t,n,r,e]);return(0,X.useEffect)(()=>{i.current+=1,s(null)},[t,e.agentId,e.file]),{lineChanges:o,openLineChanges:l,closeLineChanges:c}}function vt({editorRef:e,onFocusEditor:t}){(0,X.useEffect)(()=>{if(!window.__FARMING_E2E__)return;let n={focus(){return t(),!!e.current},revealLine(t){let n=e.current,r=n?.getModel();if(!n||!r)return!1;let i=Math.min(Math.max(1,t),r.getLineCount());return n.setPosition({lineNumber:i,column:1}),n.revealLineInCenter(i),n.focus(),!0},insertText(t){let n=e.current,r=n?.getSelection();return!n||!r?!1:(n.pushUndoStop(),n.executeEdits(`farming-e2e`,[{range:r,text:t,forceMoveMarkers:!0}]),n.pushUndoStop(),n.focus(),!0)},undo(){let t=e.current;return t?(t.focus(),t.trigger(`farming-e2e`,`undo`,null),!0):!1},getValue(){return e.current?.getValue()??``},getScrollTop(){return e.current?.getScrollTop()??0},getMarkers(){let t=e.current?.getModel();return t?r.getModelMarkers({resource:t.uri}).map(e=>({code:String(e.code??``),message:e.message,severity:e.severity})):[]},getTypeScriptDiagnosticsOptions(){return a.getDiagnosticsOptions()}};return window.__farmingFileEditorTest=n,()=>{window.__farmingFileEditorTest===n&&delete window.__farmingFileEditorTest}},[e,t])}function yt({openFile:e,openFiles:t,readOnly:n,wordWrapEnabled:i,editorLabel:a,onChangeDraft:c,onFocusFilesSearch:l,onRecordNavigationCursor:d,onSaveShortcut:f,onOpenContextMenuRef:p}){let m=(0,X.useRef)(null),h=(0,X.useRef)(null),g=(0,X.useRef)(new Map),_=(0,X.useRef)(null),v=(0,X.useRef)(new Map),y=(0,X.useRef)(null),x=(0,X.useRef)(null),S=(0,X.useRef)(null),C=(0,X.useRef)(null),w=(0,X.useRef)(null),T=(0,X.useRef)(c),E=(0,X.useRef)(l),D=(0,X.useRef)(d),O=(0,X.useRef)(f),k=(0,X.useRef)(e.agentId),A=(0,X.useRef)(e.file.path),ee=(0,X.useRef)(e.workspaceRoot),j=(0,X.useRef)(i),M=(0,X.useRef)(a),N=(0,X.useRef)(null),P=(0,X.useRef)(0),F=(0,X.useRef)(0),[I,L]=(0,X.useState)({lineNumber:1,column:1});T.current=c,E.current=l,D.current=d,O.current=f,k.current=e.agentId,A.current=e.file.path,ee.current=e.workspaceRoot,j.current=i,M.current=a;let R=(0,X.useCallback)(e=>{let t=e?.getPosition();t&&L(e=>e.lineNumber===t.lineNumber&&e.column===t.column?e:{lineNumber:t.lineNumber,column:t.column})},[]),z=(0,X.useCallback)(()=>{let e=()=>{let e=h.current;e&&e.focus()};e(),window.requestAnimationFrame(e)},[]),B=(0,X.useCallback)((e,t={})=>{let n=h.current;n&&(n.setPosition({lineNumber:e,column:1}),n.revealLineInCenter(e),t.focusEditor!==!1&&n.focus())},[]),V=(0,X.useCallback)(e=>{if(!e)return;let t=e.getVisibleRanges()[0]?.startLineNumber;if(!t||t<1)return;let n=e.getPosition(),r=ee.current||`agent:${k.current}`,i=A.current;b({version:1,surface:`file`,resource:{kind:`file`,workspace:r,path:i},locator:{kind:`file-line`,id:i},position:{unit:`line-column`,value:t,...n?.column?{column:n.column}:{}}})},[]);return vt({editorRef:h,onFocusEditor:z}),(0,X.useEffect)(()=>{let t=m.current;if(!t)return;je(),Y();let n=r.create(t,Te({value:e.draft,language:J(e.file.path,e.draft),ariaLabel:M.current,wordWrapEnabled:j.current}));Y(n);let i=()=>K(n,j.current),a=Ne(),o=()=>i();typeof a.addEventListener==`function`?a.addEventListener(`change`,o):a.addListener(o),i(),h.current=n,y.current=n.onDidChangeModelContent(()=>{P.current>0||T.current(n.getValue())}),x.current=n.onDidChangeCursorPosition(e=>{if(R(n),V(n),F.current>0||e.reason!==r.CursorChangeReason.Explicit||e.source===`api`)return;let t=n.getSelection();D.current?.({agentId:k.current,filePath:A.current,lineNumber:e.position.lineNumber,column:e.position.column,endColumn:t?.endColumn})}),S.current=n.onDidScrollChange(()=>{V(n)}),De(n,{getAgentId:()=>k.current,onFocusFilesSearch:e=>E.current(e),onSaveShortcut:()=>O.current()}),C.current=n.onContextMenu(e=>p.current(e));let s=e=>{let t=ke(n,e);t&&p.current(t)};t.addEventListener(`contextmenu`,s,!0),w.current=new ResizeObserver(()=>n.layout()),w.current.observe(t);let c=new MutationObserver(e=>{e.some(e=>e.attributeName===`data-appearance`)&&Y(n),e.some(e=>e.attributeName===`data-code-content-font-size`)&&Me(n)});return c.observe(document.body,{attributes:!0,attributeFilter:[`data-appearance`,`data-code-content-font-size`]}),()=>{let e=_.current;e&&g.current.set(e,n.saveViewState()),V(n),w.current?.disconnect(),w.current=null,c.disconnect(),C.current?.dispose(),C.current=null,t.removeEventListener(`contextmenu`,s,!0),typeof a.removeEventListener==`function`?a.removeEventListener(`change`,o):a.removeListener(o),x.current?.dispose(),x.current=null,S.current?.dispose(),S.current=null,y.current?.dispose(),y.current=null,Oe(n),n.dispose(),Ee(),g.current.clear(),h.current=null,_.current=null}},[p,V,R]),(0,X.useEffect)(()=>{let t=h.current;if(!t)return;let n=H(e),r=xe(e),i=_.current;i&&i!==n&&g.current.set(i,t.saveViewState());let a=q(e);t.getModel()!==a&&t.setModel(a);let c=v.current.get(n);if((i!==n||c!==r)&&a.getValue()!==e.draft){P.current+=1;try{a.setValue(e.draft)}finally{--P.current}}if(v.current.set(n,r),i!==n){let r=g.current.get(n);if(r)t.restoreViewState(r);else{let n=u(e.workspaceRoot||`agent:${e.agentId}`,e.file.path),r=s(n);r?.surface===`file`&&r.resource.kind===`file`&&r.position.value<=a.getLineCount()?t.revealLineInCenter(r.position.value):r&&o(n)}_.current=n}R(t)},[e,R]),(0,X.useEffect)(()=>{G([...t,e],g.current)},[e,t]),(0,X.useEffect)(()=>{let t=h.current,n=e.cursor;if(!t||!n||N.current===n.requestId)return;let r=t.getModel(),i=ue(n,{lineCount:r?.getLineCount()??1,getLineMaxColumn:e=>r?.getLineMaxColumn(e)??1});F.current+=1;try{t.setSelection(i),t.revealLineInCenter(i.startLineNumber),t.focus()}finally{window.setTimeout(()=>{F.current=Math.max(0,F.current-1)},120)}N.current=n.requestId,L({lineNumber:i.startLineNumber,column:i.startColumn})},[e.cursor,e.file.path]),(0,X.useEffect)(()=>{let e=h.current;e&&e.updateOptions({readOnly:n,domReadOnly:n})},[n]),(0,X.useEffect)(()=>{let e=h.current;e&&K(e,i)},[i]),{editorHostRef:m,editorRef:h,cursorPosition:I,focusEditor:z,revealLine:B}}function bt({openFile:e,openFiles:t,onCloseEditorTab:n,onFocusEditorTab:r,onFocusFilesSearch:i,onSaveFile:a}){let o=(0,X.useCallback)(e=>{i(e),window.requestAnimationFrame(()=>i(e)),window.setTimeout(()=>i(e),120)},[i]);return(0,X.useCallback)(i=>{if(i.altKey||!(i.ctrlKey||i.metaKey))return;if(i.key.toLowerCase()===`p`){i.preventDefault(),i.stopPropagation(),o(e.agentId);return}if(i.key.toLowerCase()===`s`){i.preventDefault(),i.stopPropagation(),a(!1);return}let s=t.findIndex(t=>H(t)===H(e));if(s!==-1){if(i.key===`PageUp`){i.preventDefault(),i.stopPropagation(),r((s-1+t.length)%t.length);return}if(i.key===`PageDown`){i.preventDefault(),i.stopPropagation(),r((s+1)%t.length);return}i.key.toLowerCase()===`w`&&(i.preventDefault(),i.stopPropagation(),n(s))}},[n,r,a,e,t,o])}function $(e){return H(e)}function xt(e){return e.filter((e,t,n)=>n.findIndex(t=>$(t)===$(e))===t)}function St(e,t,n){let r=e[n];if(!r||$(r)!==$(t))return t;let i=e.filter(e=>$(e)!==$(r));return i[Math.max(0,n-1)]??i[n]??null}function Ct(e,t,n){let r=new Set(n.map($)),i=e.filter(e=>!r.has($(e)));return i.find(e=>$(e)===$(t))??i[0]??null}function wt(e,t){let n=xt(e),r=n.filter(N);return{closeFiles:n,dirtyFiles:r,pendingClose:r.length>0?{files:r,closeFiles:n,nextFocusFile:t}:null,nextFocusFile:t}}function Tt(e){return e.nextFocusFile&&e.closeFiles.some(t=>$(t)===$(e.nextFocusFile))?null:e.nextFocusFile}function Et(e,t,n){if(e===`close`){let e=t[n];return e?[e]:[]}return e===`close-others`?t.filter((e,t)=>t!==n):e===`close-right`?t.slice(n+1):e===`close-saved`?t.filter(F):[...t]}function Dt({openFile:e,openFiles:t,filesLabel:n,onSelectOpenFile:r,onCloseOpenFile:i,onCloseOpenFiles:a,onDismissEditorContextMenu:o,onSaveOpenFile:s}){let c=(0,X.useRef)(new Map),l=(0,X.useRef)(null),[u,d]=(0,X.useState)(null),[f,p]=(0,X.useState)(null),[m,h]=(0,X.useState)(!1),g=(0,X.useCallback)(()=>{d(null)},[]),_=(0,X.useCallback)((e,t)=>{t?c.current.set(e,t):c.current.delete(e)},[]),v=(0,X.useCallback)(e=>{let n=t[e];n&&(l.current=H(n),r(n.agentId,n.file.path))},[r,t]),y=(0,X.useCallback)((e,t)=>{if(e.length===0)return;let n=e.map(e=>({agentId:e.agentId,filePath:e.file.path,workspaceRoot:e.workspaceRoot}));if(l.current=t?H(t):null,n.length===1){let e=n[0];e&&i(e.agentId,e.filePath,e.workspaceRoot);return}a(n)},[i,a]),b=(0,X.useCallback)((e,t)=>{let n=wt(e,t),r=n.closeFiles;if(r.length!==0){if(n.pendingClose){p(n.pendingClose),h(!1);return}y(r,n.nextFocusFile)}},[y]),x=(0,X.useCallback)(n=>{let r=t[n];r&&b([r],St(t,e,n))},[e,t,b]),S=(0,X.useCallback)(n=>{b(n,Ct(t,e,n))},[e,t,b]),C=(0,X.useCallback)((e,n)=>{e.preventDefault(),e.stopPropagation();let i=t[n];i&&r(i.agentId,i.file.path),o(),d({x:Math.max(8,Math.min(e.clientX,window.innerWidth-230)),y:Math.max(8,Math.min(e.clientY,window.innerHeight-190)),index:n})},[o,r,t]),w=(0,X.useCallback)(e=>{if(!u)return;let n=u.index;if(d(null),e===`close`){x(n);return}S(Et(e,t,n))},[x,S,t,u]),T=(0,X.useCallback)((e,n)=>{if(!(e.altKey||e.ctrlKey||e.metaKey)){if(e.key===`ArrowLeft`){e.preventDefault(),v((n-1+t.length)%t.length);return}if(e.key===`ArrowRight`){e.preventDefault(),v((n+1)%t.length);return}if(e.key===`Home`){e.preventDefault(),v(0);return}if(e.key===`End`){e.preventDefault(),v(t.length-1);return}if(e.key===`Enter`||e.key===` `){e.preventDefault(),v(n);return}(e.key===`Delete`||e.key===`Backspace`)&&(e.preventDefault(),x(n))}},[x,v,t.length]),E=(0,X.useCallback)((e,t)=>{e.button===1&&(e.preventDefault(),e.stopPropagation(),x(t))},[x]),D=(0,X.useCallback)(async()=>{if(!f||m)return;h(!0);for(let e of f.files)if(!await s(e,!1)){h(!1);return}let e=Tt(f),t=f.closeFiles;p(null),h(!1),y(t,e)},[y,s,f,m]),O=(0,X.useCallback)(()=>{if(!f)return;let e=Tt(f),t=f.closeFiles;p(null),h(!1),y(t,e)},[y,f]),k=(0,X.useCallback)(()=>{p(null),h(!1)},[]),A=(0,X.useMemo)(()=>f?f.files.length===1?U(f.files[0]?.file.path??``):`${f.files.length} ${n}`:``,[n,f]);return(0,X.useEffect)(()=>{let t=H(e),n=c.current.get(t);n?.scrollIntoView({block:`nearest`,inline:`nearest`}),l.current===t&&(n?.focus(),l.current=null)},[e,t.length]),{tabContextMenu:u,pendingClose:f,pendingCloseSaving:m,pendingCloseLabel:A,closeTabContextMenu:g,setTabRef:_,focusEditorTab:v,closeEditorTab:x,openEditorTabContextMenu:C,runTabContextAction:w,handleEditorTabKeyDown:T,handleEditorTabAuxClick:E,confirmSaveAndClose:D,discardAndClose:O,cancelPendingClose:k}}var Ot=1;function kt(){let e=Ot;return Ot+=1,e}function At({openFile:e,readOnly:t,onUpdateOpenFile:n}){let r=(0,X.useCallback)(async(e,t=!1)=>{if(L(e))return!0;let r={agentId:e.agentId,filePath:e.file.path,workspaceRoot:e.workspaceRoot},i=kt(),a=n(r,e=>e.saving||!t&&!e.dirty?e:y(e,i));if(!a)return!1;if(a.saveRequestId!==i)return!a.dirty&&!a.saving;let o={...r,saveRequestId:i};try{let e=await p(a.agentId,a.file.path,a.draft,a.file.sha1,t),r=n(o,t=>l(t,i,e));return!!(r&&!r.dirty)}catch(e){let t=e instanceof C&&e.status===409;if(!(e instanceof C)||e.status>=500)try{let e=await _(a.agentId,a.file.path);if(e.content===a.draft){let t=n(o,t=>l(t,i,e));return!!(t&&!t.dirty)}}catch{}return n(o,n=>c(n,i,e instanceof Error?e.message:`Failed to save file`,t)),!1}},[n]);return{saveOpenWorkspaceFile:r,saveFile:(0,X.useCallback)(async(n=!1)=>{t||await r(e,n)},[e,t,r]),reloadFile:(0,X.useCallback)(async()=>{let t={agentId:e.agentId,filePath:e.file.path,workspaceRoot:e.workspaceRoot},r=kt(),i=n(t,e=>e.saving?e:y(e,r));if(!i||i.saveRequestId!==r)return;let a={...t,saveRequestId:r};try{let e=await _(i.agentId,i.file.path,{exactExternal:i.exactExternal});n(a,t=>l(t,r,e))}catch(e){n(a,t=>c(t,r,e instanceof Error?e.message:`Failed to reload file`,!1))}},[n,e])}}var jt=``,Mt=`farming.code.fileEditor.wordWrap`;function Nt(){if(typeof window>`u`)return!1;try{return window.localStorage.getItem(Mt)===`1`}catch{return!1}}function Pt(e){if(!(typeof window>`u`))try{window.localStorage.setItem(Mt,e?`1`:`0`)}catch{}}function Ft({openFile:e,openFiles:t,onChangeDraft:n,onUpdateOpenFile:r,onSelectOpenFile:i,onOpenFilePath:a,canNavigateBack:o,canNavigateForward:s,onNavigateHistory:c,onCloseOpenFile:l,onCloseOpenFiles:u,onReorderOpenFile:d,onRevealInExplorer:f,onFocusFilesSearch:p,onRecordNavigationCursor:m,onBackToAgent:h,copy:g}){let _=(0,X.useRef)(()=>{}),v=(0,X.useRef)(()=>{}),y=fe(e),b=ae(e),[x,S]=(0,X.useState)({}),[C,w]=(0,X.useState)({}),[T,E]=(0,X.useState)(Nt),D=H(e),O=!b.preview&&!b.diffOnly&&he(e.file.path),k=!b.preview&&!b.diffOnly&&(ve(e.file.path)||oe(e.file.path)),A=x[D],j=O||k?A!==!1:!1,M=O&&j,N=M&&C[D]===!0,P=M&&!N,F=k&&j,I=!b.canEditText||ee(e.agentId)||e.file.readOnly===!0,L=b.canShowBlame&&e.file.external!==!0,R=b.canShowLineChanges&&e.file.external!==!0,{saveOpenWorkspaceFile:z,saveFile:B,reloadFile:V}=At({openFile:e,readOnly:I,onUpdateOpenFile:r}),{tabContextMenu:te,pendingClose:ne,pendingCloseSaving:re,pendingCloseLabel:ie,closeTabContextMenu:se,setTabRef:le,focusEditorTab:ue,closeEditorTab:de,openEditorTabContextMenu:U,runTabContextAction:me,handleEditorTabKeyDown:ge,handleEditorTabAuxClick:_e,confirmSaveAndClose:ye,discardAndClose:be,cancelPendingClose:xe}=Dt({openFile:e,openFiles:t,filesLabel:g.files,onSelectOpenFile:i,onCloseOpenFile:l,onCloseOpenFiles:u,onDismissEditorContextMenu:()=>v.current(),onSaveOpenFile:z}),Se=bt({openFile:e,openFiles:t,onCloseEditorTab:de,onFocusEditorTab:ue,onFocusFilesSearch:p,onSaveFile:B}),{editorHostRef:Ce,editorRef:W,cursorPosition:we,revealLine:G}=yt({openFile:e,openFiles:t,readOnly:I,wordWrapEnabled:T,editorLabel:g.editorFor(e.file.path),onChangeDraft:n,onFocusFilesSearch:p,onRecordNavigationCursor:m,onSaveShortcut:()=>{B(!1)},onOpenContextMenuRef:_}),{blameOpen:K,blameLoading:Te,blame:q,blameError:Ee,blameCapability:De,blameDetail:J,blameLabelWidths:Oe,checkBlameCapability:ke,toggleBlame:Ae,showBlameDetail:je,clearBlameDetail:Y}=pt({openFile:e,disabled:!L,onRevealLine:G}),{lineChanges:Me,openLineChanges:Ne,closeLineChanges:Pe}=_t({openFile:e,disabled:!R,onClearBlameDetail:Y,onRevealLine:G}),{diffState:Q,closeDiff:Fe,toggleDiff:Ie}=gt({openFile:e,diffDisabled:!b.canShowDiff,onClearBlameDetail:Y}),Le=P&&!Q.open,Re=!Q.open&&(F||b.visualPreview),{blameOverlay:ze}=mt({blame:q,blameLabelWidths:Oe,blameOpen:K,editorHostRef:Ce,editorRef:W,disabled:!L}),{editorContextMenu:Be,closeEditorContextMenu:Ve,openEditorContextMenu:Ue,runEditorContextAction:We,showBlameContextAction:Ge,showLineChangesContextActions:Ke}=ht({blameCapability:De,blameOpen:K,canShowBlame:L,canShowLineChanges:R,editorRef:W,readOnly:I,onCheckBlameCapability:ke,onClearBlameDetail:Y,onCloseTabContextMenu:se,onOpenLineChanges:Ne,onToggleBlame:Ae});_.current=Ue,v.current=Ve;let Je=pe(e)===`changedOnDisk`?g.changedOnDisk:null,Ye=J?ce(J.line.author,jt):``;return(0,X.useEffect)(()=>{if(!(typeof document>`u`))return document.body.classList.toggle(`code-mobile-markdown-reading`,M),()=>{document.body.classList.remove(`code-mobile-markdown-reading`)}},[M]),(0,X.useEffect)(()=>{let e=W.current;if(!e)return;let t=window.requestAnimationFrame(()=>e.layout());return()=>window.cancelAnimationFrame(t)},[W,N,P,j]),(0,Z.jsxs)(`section`,{className:`code-file-editor ${M?`markdown-reading`:``}`.trim(),"data-testid":`code-file-editor`,onKeyDownCapture:Se,children:[(0,Z.jsx)(He,{openFile:e,openFiles:t,editorMode:b,copy:g,statusText:Je,onBackToAgent:h,onSelectOpenFile:i,canNavigateBack:o,canNavigateForward:s,onNavigateHistory:c,onSetTabRef:le,onOpenTabContextMenu:U,onTabAuxClick:_e,onTabKeyDown:ge,onCloseTab:de,onReorderOpenFile:d,onRevealInExplorer:f,onSave:B,onReload:V,onToggleSourcePreview:()=>{if(!O&&!k)return;let e=!j;S(t=>({...t,[D]:e})),O&&!e&&w(e=>({...e,[D]:!1}))},onToggleMarkdownSplit:()=>{O&&(S(e=>({...e,[D]:!0})),w(e=>({...e,[D]:!N})))},onToggleWordWrap:()=>{E(e=>{let t=!e;return Pt(t),t})},onToggleDiff:Ie,canPreviewMarkdown:O,canPreviewSource:k,diffOpen:Q.open,previewVisible:Le||Re,markdownSplitOpen:N,sourcePreviewOpen:j,wordWrapEnabled:T}),e.error&&(0,Z.jsx)(`div`,{className:`code-file-editor-alert`,"data-testid":`code-file-editor-alert`,children:e.error}),(0,Z.jsx)(dt,{activeTabDomId:y,blame:q,blameAuthorProfileUrl:Ye,blameDetailLine:J?.line??null,blameOpen:K,blameOverlay:ze,copy:g,cursorPosition:we,diffState:Q,editorMode:b,editorHostRef:Ce,lineChanges:Me,markdownSplitOpen:N,markdownPreviewOpen:P,sourcePreviewOpen:F,openFile:e,onClearBlameDetail:Y,onCloseDiff:Fe,onCloseLineChanges:Pe,onOpenFilePath:a,onShowBlameDetail:je}),(0,Z.jsx)(qe,{blame:q,blameError:Ee,blameLoading:Te,blameOpen:K,copy:g,editorContextMenu:Be,readOnly:I,openFiles:t,pendingCloseOpen:!!ne,pendingCloseLabel:ie,pendingCloseSaving:re,showBlameContextAction:Ge,showLineChangesContextActions:Ke,tabContextMenu:te,onCancelPendingClose:xe,onCloseEditorContextMenu:Ve,onConfirmSaveAndClose:ye,onDiscardAndClose:be,onRunEditorContextAction:We,onRunTabContextAction:me})]})}export{Ft as FileEditorPane};
@@ -0,0 +1 @@
1
+ import{t as e}from"./jsx-runtime-BthL93pI.js";var t=e();function n(e){return(0,t.jsx)(`svg`,{width:`16`,height:`16`,viewBox:`0 0 16 16`,fill:`currentColor`,"aria-hidden":`true`,focusable:`false`,...e,children:(0,t.jsx)(`path`,{d:`M3.14598 5.85423L7.64598 10.3542C7.84098 10.5492 8.15798 10.5492 8.35298 10.3542L12.853 5.85423C13.048 5.65923 13.048 5.34223 12.853 5.14723C12.658 4.95223 12.341 4.95223 12.146 5.14723L7.99998 9.29323L3.85398 5.14723C3.65898 4.95223 3.34198 4.95223 3.14698 5.14723C2.95198 5.34223 2.95098 5.65923 3.14598 5.85423Z`})})}function r(e){return(0,t.jsx)(`svg`,{width:`16`,height:`16`,viewBox:`0 0 16 16`,fill:`currentColor`,"aria-hidden":`true`,focusable:`false`,...e,children:(0,t.jsx)(`path`,{d:`M3.14603 9.85423C3.34103 10.0492 3.65803 10.0492 3.85303 9.85423L7.99903 5.70823L12.145 9.85423C12.34 10.0492 12.657 10.0492 12.852 9.85423C13.047 9.65923 13.047 9.34223 12.852 9.14723L8.35203 4.64723C8.15703 4.45223 7.84003 4.45223 7.64503 4.64723L3.14503 9.14723C2.95003 9.34223 2.95103 9.65923 3.14603 9.85423Z`})})}function i(e){return(0,t.jsx)(`svg`,{width:`16`,height:`16`,viewBox:`0 0 16 16`,fill:`currentColor`,"aria-hidden":`true`,focusable:`false`,...e,children:(0,t.jsx)(`path`,{d:`M9.14601 3.14623L4.64601 7.64623C4.45101 7.84123 4.45101 8.15823 4.64601 8.35323L9.14601 12.8532C9.34101 13.0482 9.65801 13.0482 9.85301 12.8532C10.048 12.6582 10.048 12.3412 9.85301 12.1462L5.70701 8.00023L9.85301 3.85423C10.048 3.65923 10.048 3.34223 9.85301 3.14723C9.65801 2.95223 9.34101 2.95223 9.14601 3.14723V3.14623Z`})})}function a(e){return(0,t.jsx)(`svg`,{width:`16`,height:`16`,viewBox:`0 0 16 16`,fill:`currentColor`,"aria-hidden":`true`,focusable:`false`,...e,children:(0,t.jsx)(`path`,{d:`M6.14601 3.14579C5.95101 3.34079 5.95101 3.65779 6.14601 3.85279L10.292 7.99879L6.14601 12.1448C5.95101 12.3398 5.95101 12.6568 6.14601 12.8518C6.34101 13.0468 6.65801 13.0468 6.85301 12.8518L11.353 8.35179C11.548 8.15679 11.548 7.83979 11.353 7.64478L6.85301 3.14479C6.65801 2.94979 6.34101 2.95079 6.14601 3.14579Z`})})}function o(e){return(0,t.jsx)(`svg`,{width:`16`,height:`16`,viewBox:`0 0 16 16`,fill:`currentColor`,"aria-hidden":`true`,focusable:`false`,...e,children:(0,t.jsx)(`path`,{d:`M2.98444 8.62471L2.98346 8.62815C2.91251 8.8948 2.63879 9.05404 2.37202 8.9833C1.94098 8.86907 2.01687 8.37186 2.01687 8.37186L2.03453 8.31047C2.03453 8.31047 2.06063 8.22636 2.08166 8.1653C2.12369 8.04329 2.18795 7.87274 2.27931 7.66977C2.46154 7.26493 2.75443 6.72477 3.19877 6.18295C4.09629 5.08851 5.60509 4 8.00017 4C10.3952 4 11.904 5.08851 12.8016 6.18295C13.2459 6.72477 13.5388 7.26493 13.721 7.66977C13.8124 7.87274 13.8766 8.04329 13.9187 8.1653C13.9397 8.22636 13.9552 8.27541 13.9658 8.31047C13.9711 8.328 13.9752 8.34204 13.9781 8.35236L13.9816 8.365L13.9827 8.36916L13.9832 8.37069L13.9835 8.37186C14.0542 8.63878 13.8952 8.91253 13.6283 8.9833C13.3618 9.05397 13.0885 8.89556 13.0172 8.62937L13.0169 8.62815L13.0159 8.62471L13.0085 8.5997C13.0014 8.57616 12.9898 8.53927 12.9732 8.49095C12.9399 8.39422 12.8866 8.25227 12.8091 8.08023C12.6538 7.73508 12.4041 7.27523 12.0283 6.81706C11.2857 5.9115 10.0445 5 8.00017 5C5.95584 5 4.71464 5.9115 3.97201 6.81706C3.59627 7.27523 3.34655 7.73508 3.19119 8.08023C3.11375 8.25227 3.06047 8.39422 3.02715 8.49095C3.01051 8.53927 2.9989 8.57616 2.99179 8.5997L2.98444 8.62471ZM8.00024 7C6.61953 7 5.50024 8.11929 5.50024 9.5C5.50024 10.8807 6.61953 12 8.00024 12C9.38096 12 10.5002 10.8807 10.5002 9.5C10.5002 8.11929 9.38096 7 8.00024 7ZM6.50024 9.5C6.50024 8.67157 7.17182 8 8.00024 8C8.82867 8 9.50024 8.67157 9.50024 9.5C9.50024 10.3284 8.82867 11 8.00024 11C7.17182 11 6.50024 10.3284 6.50024 9.5Z`})})}function s(e){return(0,t.jsx)(`svg`,{width:`16`,height:`16`,viewBox:`0 0 16 16`,fill:`currentColor`,"aria-hidden":`true`,focusable:`false`,...e,children:(0,t.jsx)(`path`,{d:`M10.1196 10.8267L14.1464 14.8536C14.3417 15.0488 14.6583 15.0488 14.8536 14.8536C15.0488 14.6583 15.0488 14.3417 14.8536 14.1464L1.85355 1.14645C1.65829 0.951184 1.34171 0.951184 1.14645 1.14645C0.951184 1.34171 0.951184 1.65829 1.14645 1.85355L4.37624 5.08334C3.90117 5.4183 3.5126 5.80026 3.19877 6.18295C2.75443 6.72477 2.46154 7.26493 2.27931 7.66977C2.18795 7.87274 2.12369 8.04329 2.08166 8.1653C2.06063 8.22636 2.03453 8.31047 2.03453 8.31047L2.01687 8.37186C2.01687 8.37186 1.94098 8.86907 2.37202 8.9833C2.63879 9.05404 2.91251 8.8948 2.98346 8.62815L2.98444 8.62471L2.99179 8.5997C2.9989 8.57616 3.01051 8.53927 3.02715 8.49095C3.06047 8.39421 3.11375 8.25227 3.19119 8.08023C3.34655 7.73507 3.59627 7.27523 3.97201 6.81706C4.26363 6.46146 4.63213 6.10494 5.09595 5.80306L6.67356 7.38067C5.9688 7.82277 5.50024 8.60667 5.50024 9.5C5.50024 10.8807 6.61953 12 8.00024 12C8.89358 12 9.67747 11.5314 10.1196 10.8267ZM9.3807 10.0878C9.15205 10.6241 8.62005 11 8.00024 11C7.17182 11 6.50024 10.3284 6.50024 9.5C6.50024 8.88019 6.87616 8.34819 7.41244 8.11955L9.3807 10.0878ZM6.31962 4.19853L7.174 5.05291C7.43366 5.01852 7.70875 5 8.00017 5C10.0445 5 11.2857 5.9115 12.0283 6.81706C12.4041 7.27523 12.6538 7.73507 12.8091 8.08023C12.8866 8.25227 12.9399 8.39421 12.9732 8.49095C12.9898 8.53927 13.0014 8.57616 13.0085 8.5997L13.0159 8.62471L13.0169 8.62815L13.0172 8.62937C13.0885 8.89555 13.3618 9.05397 13.6283 8.9833C13.8952 8.91253 14.0542 8.63878 13.9835 8.37186L13.9832 8.37069L13.9827 8.36916L13.9816 8.365L13.9781 8.35236C13.9752 8.34204 13.9711 8.328 13.9658 8.31047C13.9552 8.27541 13.9397 8.22636 13.9187 8.1653C13.8766 8.04329 13.8124 7.87274 13.721 7.66977C13.5388 7.26493 13.2459 6.72477 12.8016 6.18295C11.904 5.0885 10.3952 4 8.00017 4C7.38264 4 6.82403 4.07236 6.31962 4.19853Z`})})}function c(e){return(0,t.jsx)(`svg`,{width:`16`,height:`16`,viewBox:`0 0 16 16`,fill:`currentColor`,"aria-hidden":`true`,focusable:`false`,...e,children:(0,t.jsx)(`path`,{d:`M13.5 8.00023H3.70701L7.85301 3.85423C8.04801 3.65923 8.04801 3.34223 7.85301 3.14723C7.65801 2.95223 7.34101 2.95223 7.14601 3.14723L2.14601 8.14723C1.95101 8.34223 1.95101 8.65923 2.14601 8.85423L7.14601 13.8542C7.24401 13.9522 7.37201 14.0002 7.50001 14.0002C7.62801 14.0002 7.75601 13.9512 7.85401 13.8542C8.04901 13.6592 8.04901 13.3422 7.85401 13.1472L3.70801 9.00123H13.501C13.777 9.00123 14.001 8.77723 14.001 8.50123C14.001 8.22523 13.777 8.00123 13.501 8.00123L13.5 8.00023Z`})})}function l(e){return(0,t.jsx)(`svg`,{width:`16`,height:`16`,viewBox:`0 0 16 16`,fill:`currentColor`,"aria-hidden":`true`,focusable:`false`,...e,children:(0,t.jsx)(`path`,{d:`M13 13.5C13 13.776 12.776 14 12.5 14C9.46198 14 6.99998 11.538 6.99998 8.50001V3.70701L4.35398 6.35301C4.15898 6.54801 3.84198 6.54801 3.64698 6.35301C3.45198 6.15801 3.45198 5.84101 3.64698 5.64601L7.14698 2.14601C7.34198 1.95101 7.65898 1.95101 7.85398 2.14601L11.354 5.64601C11.549 5.84101 11.549 6.15801 11.354 6.35301C11.159 6.54801 10.842 6.54801 10.647 6.35301L8.00098 3.70701V8.50001C8.00098 10.985 10.016 13 12.501 13C12.777 13 13.001 13.224 13.001 13.5H13Z`})})}function u(e){return(0,t.jsx)(`svg`,{width:`16`,height:`16`,viewBox:`0 0 16 16`,fill:`currentColor`,"aria-hidden":`true`,focusable:`false`,...e,children:(0,t.jsx)(`path`,{d:`M13.854 8.14576L8.854 3.14576C8.659 2.95076 8.342 2.95076 8.147 3.14576C7.952 3.34076 7.952 3.65776 8.147 3.85276L12.293 7.99876H2.5C2.224 7.99876 2 8.22276 2 8.49876C2 8.77476 2.224 8.99876 2.5 8.99876H12.293L8.147 13.1448C7.952 13.3398 7.952 13.6568 8.147 13.8518C8.245 13.9498 8.373 13.9978 8.501 13.9978C8.629 13.9978 8.757 13.9488 8.855 13.8518L13.855 8.85176C14.05 8.65676 14.05 8.33976 13.855 8.14476L13.854 8.14576Z`})})}function d(e){return(0,t.jsx)(`svg`,{width:`16`,height:`16`,viewBox:`0 0 16 16`,fill:`currentColor`,"aria-hidden":`true`,focusable:`false`,...e,children:(0,t.jsx)(`path`,{d:`M13.854 8.146C13.659 7.951 13.342 7.951 13.147 8.146L9.00096 12.292V2.5C9.00096 2.224 8.77696 2 8.50096 2C8.22496 2 8.00096 2.224 8.00096 2.5V12.293L3.85496 8.147C3.65996 7.952 3.34296 7.952 3.14796 8.147C2.95296 8.342 2.95296 8.659 3.14796 8.854L8.14796 13.854C8.24596 13.952 8.37396 14 8.50196 14C8.62996 14 8.75796 13.951 8.85596 13.854L13.856 8.854C14.051 8.659 14.051 8.342 13.856 8.147L13.854 8.146Z`})})}function f(e){return(0,t.jsx)(`svg`,{width:`16`,height:`16`,viewBox:`0 0 16 16`,fill:`currentColor`,"aria-hidden":`true`,focusable:`false`,...e,children:(0,t.jsx)(`path`,{d:`M13.854 7.14576L8.85401 2.14576C8.65901 1.95076 8.34201 1.95076 8.14701 2.14576L3.14601 7.14576C2.95101 7.34076 2.95101 7.65776 3.14601 7.85276C3.34101 8.04776 3.65801 8.04776 3.85301 7.85276L7.99901 3.70676V13.4998C7.99901 13.7758 8.22301 13.9998 8.49901 13.9998C8.77501 13.9998 8.99901 13.7758 8.99901 13.4998V3.70676L13.145 7.85276C13.243 7.95076 13.371 7.99876 13.499 7.99876C13.627 7.99876 13.755 7.94976 13.853 7.85276C14.048 7.65776 14.048 7.34076 13.853 7.14576H13.854Z`})})}function p(e){return(0,t.jsx)(`svg`,{width:`16`,height:`16`,viewBox:`0 0 16 16`,fill:`currentColor`,"aria-hidden":`true`,focusable:`false`,...e,children:(0,t.jsx)(`path`,{d:`M8.70701 8.00001L12.353 4.35401C12.548 4.15901 12.548 3.84201 12.353 3.64701C12.158 3.45201 11.841 3.45201 11.646 3.64701L8.00001 7.29301L4.35401 3.64701C4.15901 3.45201 3.84201 3.45201 3.64701 3.64701C3.45201 3.84201 3.45201 4.15901 3.64701 4.35401L7.29301 8.00001L3.64701 11.646C3.45201 11.841 3.45201 12.158 3.64701 12.353C3.74501 12.451 3.87301 12.499 4.00101 12.499C4.12901 12.499 4.25701 12.45 4.35501 12.353L8.00101 8.70701L11.647 12.353C11.745 12.451 11.873 12.499 12.001 12.499C12.129 12.499 12.257 12.45 12.355 12.353C12.55 12.158 12.55 11.841 12.355 11.646L8.70901 8.00001H8.70701Z`})})}function m(e){return(0,t.jsx)(`svg`,{width:`16`,height:`16`,viewBox:`0 0 16 16`,fill:`currentColor`,"aria-hidden":`true`,focusable:`false`,...e,children:(0,t.jsx)(`path`,{d:`M10.0195 10.7266C9.06578 11.5217 7.83875 12 6.5 12C3.46243 12 1 9.53757 1 6.5C1 3.46243 3.46243 1 6.5 1C9.53757 1 12 3.46243 12 6.5C12 7.83875 11.5217 9.06578 10.7266 10.0195L13.8535 13.1464C14.0488 13.3417 14.0488 13.6583 13.8535 13.8536C13.6583 14.0488 13.3417 14.0488 13.1464 13.8536L10.0195 10.7266ZM11 6.5C11 4.01472 8.98528 2 6.5 2C4.01472 2 2 4.01472 2 6.5C2 8.98528 4.01472 11 6.5 11C8.98528 11 11 8.98528 11 6.5Z`})})}function h(e){return(0,t.jsx)(`svg`,{width:`16`,height:`16`,viewBox:`0 0 16 16`,fill:`currentColor`,"aria-hidden":`true`,focusable:`false`,...e,children:(0,t.jsx)(`path`,{d:`M13.6572 3.13573C13.8583 2.9465 14.175 2.95614 14.3643 3.15722C14.5535 3.35831 14.5438 3.675 14.3428 3.86425L5.84277 11.8642C5.64597 12.0494 5.33756 12.0446 5.14648 11.8535L1.64648 8.35351C1.45121 8.15824 1.45121 7.84174 1.64648 7.64647C1.84174 7.45121 2.15825 7.45121 2.35351 7.64647L5.50976 10.8027L13.6572 3.13573Z`})})}function g(e){return(0,t.jsx)(`svg`,{width:`16`,height:`16`,viewBox:`0 0 16 16`,fill:`currentColor`,"aria-hidden":`true`,focusable:`false`,...e,children:(0,t.jsx)(`path`,{d:`M8 1.5C8 1.22386 7.77614 1 7.5 1C7.22386 1 7 1.22386 7 1.5V7H1.5C1.22386 7 1 7.22386 1 7.5C1 7.77614 1.22386 8 1.5 8H7V13.5C7 13.7761 7.22386 14 7.5 14C7.77614 14 8 13.7761 8 13.5V8H13.5C13.7761 8 14 7.77614 14 7.5C14 7.22386 13.7761 7 13.5 7H8V1.5Z`})})}function _(e){return(0,t.jsx)(`svg`,{width:`16`,height:`16`,viewBox:`0 0 16 16`,fill:`currentColor`,"aria-hidden":`true`,focusable:`false`,...e,children:(0,t.jsx)(`path`,{d:`M4 1C2.34315 1 1 2.34315 1 4V12C1 13.6569 2.34315 15 4 15H12C13.6569 15 15 13.6569 15 12V4C15 2.34315 13.6569 1 12 1H4ZM2 4C2 2.89543 2.89543 2 4 2H12C13.1046 2 14 2.89543 14 4H2ZM2 5H14V12C14 13.1046 13.1046 14 12 14H4C2.89543 14 2 13.1046 2 12V5Z`})})}function v(e){return(0,t.jsx)(`svg`,{width:`16`,height:`16`,viewBox:`0 0 16 16`,fill:`currentColor`,"aria-hidden":`true`,focusable:`false`,...e,children:(0,t.jsx)(`path`,{d:`M3 1C1.895 1 1 1.895 1 3V10C1 11.105 1.895 12 3 12H5V14H3.5C3.224 14 3 14.224 3 14.5C3 14.776 3.224 15 3.5 15H12.5C12.776 15 13 14.776 13 14.5C13 14.224 12.776 14 12.5 14H11V12H13C14.105 12 15 11.105 15 10V3C15 1.895 14.105 1 13 1H3ZM10 12V14H6V12H10ZM2 3C2 2.448 2.448 2 3 2H13C13.552 2 14 2.448 14 3V10C14 10.552 13.552 11 13 11H3C2.448 11 2 10.552 2 10V3Z`})})}function y(e){return(0,t.jsx)(`svg`,{width:`16`,height:`16`,viewBox:`0 0 16 16`,fill:`currentColor`,"aria-hidden":`true`,focusable:`false`,...e,children:(0,t.jsx)(`path`,{d:`M4.00165 2.99863C4.00165 2.17447 4.94264 1.70412 5.60184 2.19877L13.5993 8.19993C14.3679 8.77665 13.96 9.99978 12.9991 9.99978H9.05388C8.74293 9.99978 8.44968 10.1444 8.26043 10.3911L5.7951 13.6051C5.21352 14.3633 4.00165 13.952 4.00165 12.9964V2.99863ZM12.9991 8.99978L5.00165 2.99863V12.9964L7.46698 9.78251C7.84548 9.28907 8.43199 8.99978 9.05388 8.99978L12.9991 8.99978Z`})})}function b(e){return(0,t.jsx)(`svg`,{width:`16`,height:`16`,viewBox:`0 0 16 16`,fill:`currentColor`,"aria-hidden":`true`,focusable:`false`,...e,children:(0,t.jsx)(`path`,{d:`M5 3.35c0-.78.86-1.26 1.53-.85l7 4.15a1 1 0 0 1 0 1.7l-7 4.15A1 1 0 0 1 5 11.65v-8.3Z`})})}function x(e){return(0,t.jsx)(`svg`,{width:`16`,height:`16`,viewBox:`0 0 16 16`,fill:`currentColor`,"aria-hidden":`true`,focusable:`false`,...e,children:(0,t.jsx)(`path`,{d:`M1.5 3h4.293l1.5 1.5H14.5l.5.5v7.5l-.5.5h-13l-.5-.5v-9l.5-.5Zm.5 1v8h12V5.5H6.879L5.379 4H2Z`})})}function S(e){return(0,t.jsxs)(`svg`,{width:`16`,height:`16`,viewBox:`0 0 24 24`,"aria-hidden":`true`,focusable:`false`,...e,children:[(0,t.jsx)(`path`,{d:`M18 11V6a2 2 0 0 0-2-2a2 2 0 0 0-2 2`}),(0,t.jsx)(`path`,{d:`M14 10V4a2 2 0 0 0-2-2a2 2 0 0 0-2 2v2`}),(0,t.jsx)(`path`,{d:`M10 10.5V6a2 2 0 0 0-2-2a2 2 0 0 0-2 2v8`}),(0,t.jsx)(`path`,{d:`M18 8a2 2 0 1 1 4 0v6a8 8 0 0 1-8 8h-2c-2.8 0-4.5-.86-5.99-2.34l-3.6-3.6a2 2 0 0 1 2.83-2.82L7 15`})]})}function C(e){return(0,t.jsx)(`svg`,{width:`16`,height:`16`,viewBox:`0 0 16 16`,"aria-hidden":`true`,focusable:`false`,...e,children:(0,t.jsx)(`path`,{d:`M8.85 1.35a.55.55 0 0 1 .55.68L8.28 6.1h3.07a.55.55 0 0 1 .42.9l-5.5 6.6a.55.55 0 0 1-.96-.48l1.12-4.2H3.65a.55.55 0 0 1-.44-.88l5.2-6.48a.55.55 0 0 1 .44-.21Z`})})}function w(e){return(0,t.jsx)(`svg`,{width:`16`,height:`16`,viewBox:`0 0 16 16`,fill:`currentColor`,"aria-hidden":`true`,focusable:`false`,...e,children:(0,t.jsx)(`path`,{d:`M5.5 1C4.673 1 4 1.673 4 2.5V4H2.5C1.673 4 1 4.673 1 5.5V13.5C1 14.327 1.673 15 2.5 15H10.5C11.327 15 12 14.327 12 13.5V12H13.5C14.327 12 15 11.327 15 10.5V2.5C15 1.673 14.327 1 13.5 1H5.5ZM5 2.5C5 2.224 5.224 2 5.5 2H13.5C13.776 2 14 2.224 14 2.5V10.5C14 10.776 13.776 11 13.5 11H12V5.5C12 4.673 11.327 4 10.5 4H5V2.5ZM2.5 5H10.5C10.776 5 11 5.224 11 5.5V13.5C11 13.776 10.776 14 10.5 14H2.5C2.224 14 2 13.776 2 13.5V5.5C2 5.224 2.224 5 2.5 5Z`})})}function T(e){return(0,t.jsx)(`svg`,{width:`16`,height:`16`,viewBox:`0 0 24 24`,fill:`currentColor`,"aria-hidden":`true`,focusable:`false`,...e,children:(0,t.jsx)(`path`,{d:`M18.75 1.5H5.25C3.1815 1.5 1.5 3.183 1.5 5.25V18.75C1.5 20.8185 3.1815 22.5 5.25 22.5H18.75C20.8185 22.5 22.5 20.8185 22.5 18.75V5.25C22.5 3.183 20.8185 1.5 18.75 1.5ZM21 18.75C21 19.9905 19.9905 21 18.75 21H5.25C4.0095 21 3 19.9905 3 18.75V5.25C3 4.0095 4.0095 3 5.25 3H18.75C19.9905 3 21 4.0095 21 5.25V18.75ZM10.281 13.281L5.781 17.781C5.634 17.928 5.442 18 5.25 18C5.058 18 4.866 17.9265 4.719 17.781C4.4265 17.4885 4.4265 17.013 4.719 16.7205L8.688 12.7515L4.719 8.7825C4.4265 8.49 4.4265 8.0145 4.719 7.722C5.0115 7.4295 5.487 7.4295 5.7795 7.722L10.2795 12.222C10.572 12.5145 10.572 12.99 10.2795 13.2825L10.281 13.281ZM19.5 17.25C19.5 17.664 19.164 18 18.75 18H11.25C10.836 18 10.5 17.664 10.5 17.25C10.5 16.836 10.836 16.5 11.25 16.5H18.75C19.164 16.5 19.5 16.836 19.5 17.25Z`})})}function E(e){return(0,t.jsx)(`svg`,{width:`16`,height:`16`,viewBox:`0 0 16 16`,fill:`currentColor`,"aria-hidden":`true`,focusable:`false`,...e,children:(0,t.jsx)(`path`,{d:`M14.56 7.44049C14.28 7.16049 13.9 7.00049 13.5 7.00049H13V4.00049C13 2.90049 12.1 2.00049 11 2.00049H3C1.9 2.00049 1 2.90049 1 4.00049V9.00049C1 10.1005 1.9 11.0005 3 11.0005V12.0005C3 12.8205 3.93 13.2905 4.59 12.8105L7 11.0505V11.5005C7 11.9005 7.16 12.2805 7.44 12.5605C7.72 12.8405 8.1 13.0005 8.5 13.0005H10.29L12.15 14.8505C12.19 14.9005 12.25 14.9405 12.31 14.9605C12.37 14.9905 12.43 15.0005 12.5 15.0005C12.57 15.0005 12.63 14.9905 12.69 14.9605C12.78 14.9205 12.86 14.8605 12.92 14.7805C12.97 14.7005 13 14.6005 13 14.5005V13.0005H13.5C13.9 13.0005 14.28 12.8405 14.56 12.5605C14.84 12.2805 15 11.9005 15 11.5005V8.50049C15 8.10049 14.84 7.72049 14.56 7.44049ZM6.75 10.0005L4 12.0005V10.0005H3C2.45 10.0005 2 9.55049 2 9.00049V4.00049C2 3.45049 2.45 3.00049 3 3.00049H11C11.55 3.00049 12 3.45049 12 4.00049V7.00049H8.5C8.1 7.00049 7.72 7.16049 7.44 7.44049C7.16 7.72049 7 8.10049 7 8.50049V10.0005H6.75ZM14 11.5005C14 11.6305 13.95 11.7605 13.85 11.8505C13.76 11.9505 13.63 12.0005 13.5 12.0005H12.5C12.37 12.0005 12.24 12.0505 12.15 12.1505C12.05 12.2405 12 12.3705 12 12.5005V13.2905L10.85 12.1505C10.81 12.1005 10.75 12.0605 10.69 12.0405C10.63 12.0105 10.57 12.0005 10.5 12.0005H8.5C8.37 12.0005 8.24 11.9505 8.15 11.8505C8.05 11.7605 8 11.6305 8 11.5005V8.50049C8 8.37049 8.05 8.24049 8.15 8.15049C8.24 8.05049 8.37 8.00049 8.5 8.00049H13.5C13.63 8.00049 13.76 8.05049 13.85 8.15049C13.95 8.24049 14 8.37049 14 8.50049V11.5005Z`})})}function D(e){return(0,t.jsxs)(`svg`,{width:`16`,height:`16`,viewBox:`0 0 16 16`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.25`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,focusable:`false`,...e,children:[(0,t.jsx)(`circle`,{cx:`4.25`,cy:`4.25`,r:`1.75`}),(0,t.jsx)(`circle`,{cx:`11.75`,cy:`4.25`,r:`1.75`}),(0,t.jsx)(`circle`,{cx:`8`,cy:`11.75`,r:`1.75`}),(0,t.jsx)(`path`,{d:`M5.75 5.15 7.2 7.85M10.25 5.15 8.8 7.85M6 11.75H4.75A2.75 2.75 0 0 1 2 9V7.75M10 11.75h1.25A2.75 2.75 0 0 0 14 9V7.75`})]})}function O(e){return(0,t.jsx)(`svg`,{width:`16`,height:`16`,viewBox:`0 0 16 16`,fill:`currentColor`,"aria-hidden":`true`,focusable:`false`,...e,children:(0,t.jsx)(`path`,{d:`M12 9H4C3.173 9 2.5 9.673 2.5 10.5V11C2.5 11.123 2.562 14 8 14C13.438 14 13.5 11.123 13.5 11V10.5C13.5 9.673 12.827 9 12 9ZM12.5 10.991C12.497 11.073 12.372 13 8 13C3.628 13 3.503 11.073 3.5 11V10.5C3.5 10.224 3.724 10 4 10H12C12.276 10 12.5 10.224 12.5 10.5V10.991ZM5.5 8H10.5C11.327 8 12 7.327 12 6.5V3.5C12 2.673 11.327 2 10.5 2H8.5V1.5C8.5 1.224 8.276 1 8 1C7.724 1 7.5 1.224 7.5 1.5V2H5.5C4.673 2 4 2.673 4 3.5V6.5C4 7.327 4.673 8 5.5 8ZM5 3.5C5 3.224 5.224 3 5.5 3H10.5C10.776 3 11 3.224 11 3.5V6.5C11 6.776 10.776 7 10.5 7H5.5C5.224 7 5 6.776 5 6.5V3.5ZM5.75 5C5.75 4.586 6.086 4.25 6.5 4.25C6.914 4.25 7.25 4.586 7.25 5C7.25 5.414 6.914 5.75 6.5 5.75C6.086 5.75 5.75 5.414 5.75 5ZM8.75 5C8.75 4.586 9.086 4.25 9.5 4.25C9.914 4.25 10.25 4.586 10.25 5C10.25 5.414 9.914 5.75 9.5 5.75C9.086 5.75 8.75 5.414 8.75 5Z`})})}function k(e){return(0,t.jsxs)(`svg`,{width:`16`,height:`16`,viewBox:`0 0 16 16`,fill:`currentColor`,"aria-hidden":`true`,focusable:`false`,...e,children:[(0,t.jsx)(`path`,{d:`M6.08984 8.50061C6.4025 8.81148 6.78639 9.04156 7.20801 9.17053C7.62964 9.29946 8.07671 9.32365 8.50977 9.24084V9.25061C9.02899 9.14327 9.50544 8.88575 9.87988 8.51038L10.5801 9.22034C9.8929 9.90037 8.96676 10.2847 8 10.2906C7.51236 10.287 7.03011 10.1884 6.58008 10.0006C6.13513 9.81845 5.73025 9.54991 5.38965 9.21057L6.08984 8.50061Z`}),(0,t.jsx)(`path`,{d:`M6.49023 7.50061H5.49023V6.50061H6.49023V7.50061Z`}),(0,t.jsx)(`path`,{d:`M10.4902 6.50061V7.50061H9.49023V6.50061H10.4902Z`}),(0,t.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M8 1.00061C8.26522 1.00061 8.5195 1.10604 8.70703 1.29358C8.89457 1.48112 9 1.73539 9 2.00061C8.99178 2.17194 8.9397 2.33865 8.84863 2.48401C8.75764 2.62915 8.63082 2.7486 8.48047 2.83069V4.00061H12.4805L12.9805 4.50061V6.53088H13.5L14 7.03088V8.00061L13.5 8.50061H12.9805V11.5006L12.4805 12.0006H9.36035L6.86035 14.7604L6 14.401V12.0006H3.5L3 11.361V8.50061H2.5L2 8.00061V7.03088L2.5 6.53088H3V4.36096L3.53027 4.00061H7.53027V2.86096C7.37357 2.77758 7.24158 2.65367 7.14844 2.50256C7.05529 2.35142 7.00405 2.1781 7 2.00061C7 1.73539 7.10543 1.48112 7.29297 1.29358C7.4805 1.10604 7.73478 1.00061 8 1.00061ZM4 10.861L6.5 11.0006H7V13.191L8.7998 11.151L9.15039 11.0006H12V5.00061H4V10.861Z`})]})}function A(e){return(0,t.jsx)(`svg`,{width:`16`,height:`16`,viewBox:`0 0 16 16`,fill:`currentColor`,"aria-hidden":`true`,focusable:`false`,...e,children:(0,t.jsx)(`path`,{d:`M14.5 8.5C14.633 8.5 14.76 8.447 14.854 8.354C14.948 8.26 15 8.133 15 8C15 7.867 14.947 7.74 14.854 7.646C14.76 7.552 14.633 7.5 14.5 7.5H13V6H14.5C14.633 6 14.76 5.947 14.854 5.854C14.948 5.76 15 5.633 15 5.5C15 5.367 14.947 5.24 14.854 5.146C14.76 5.052 14.633 5 14.5 5H13C13 4.47 12.789 3.961 12.414 3.586C12.039 3.211 11.53 3 11 3V1.5C11 1.367 10.947 1.24 10.854 1.146C10.76 1.052 10.633 1 10.5 1C10.367 1 10.24 1.053 10.146 1.146C10.052 1.24 10 1.367 10 1.5V3H8.5V1.5C8.5 1.367 8.447 1.24 8.354 1.146C8.26 1.052 8.133 1 8 1C7.867 1 7.74 1.053 7.646 1.146C7.552 1.24 7.5 1.367 7.5 1.5V3H6V1.5C6 1.367 5.947 1.24 5.854 1.146C5.76 1.052 5.633 1 5.5 1C5.367 1 5.24 1.053 5.146 1.146C5.052 1.24 5 1.367 5 1.5V3C4.47 3 3.961 3.211 3.586 3.586C3.211 3.961 3 4.47 3 5H1.5C1.367 5 1.24 5.053 1.146 5.146C1.052 5.24 1 5.367 1 5.5C1 5.633 1.053 5.76 1.146 5.854C1.24 5.948 1.367 6 1.5 6H3V7.5H1.5C1.367 7.5 1.24 7.553 1.146 7.646C1.052 7.74 1 7.867 1 8C1 8.133 1.053 8.26 1.146 8.354C1.24 8.448 1.367 8.5 1.5 8.5H3V10H1.5C1.367 10 1.24 10.053 1.146 10.146C1.052 10.24 1 10.367 1 10.5C1 10.633 1.053 10.76 1.146 10.854C1.24 10.948 1.367 11 1.5 11H3C3 11.53 3.211 12.039 3.586 12.414C3.961 12.789 4.47 13 5 13V14.5C5 14.633 5.053 14.76 5.146 14.854C5.24 14.948 5.367 15 5.5 15C5.633 15 5.76 14.947 5.854 14.854C5.948 14.76 6 14.633 6 14.5V13H7.5V14.5C7.5 14.633 7.553 14.76 7.646 14.854C7.74 14.948 7.867 15 8 15C8.133 15 8.26 14.947 8.354 14.854C8.448 14.76 8.5 14.633 8.5 14.5V13H10V14.5C10 14.633 10.053 14.76 10.146 14.854C10.24 14.948 10.367 15 10.5 15C10.633 15 10.76 14.947 10.854 14.854C10.948 14.76 11 14.633 11 14.5V13C11.53 13 12.039 12.789 12.414 12.414C12.789 12.039 13 11.53 13 11H14.5C14.633 11 14.76 10.947 14.854 10.854C14.948 10.76 15 10.633 15 10.5C15 10.367 14.947 10.24 14.854 10.146C14.76 10.052 14.633 10 14.5 10H13V8.5H14.5ZM12 11C12 11.265 11.895 11.52 11.707 11.707C11.519 11.894 11.265 12 11 12H5C4.735 12 4.48 11.895 4.293 11.707C4.105 11.519 4 11.265 4 11V5C4 4.735 4.105 4.48 4.293 4.293C4.481 4.105 4.735 4 5 4H11C11.265 4 11.52 4.105 11.707 4.293C11.895 4.481 12 4.735 12 5V11ZM8 10.5C6.621 10.5 5.5 9.379 5.5 8C5.5 6.621 6.621 5.5 8 5.5C9.379 5.5 10.5 6.621 10.5 8C10.5 9.379 9.379 10.5 8 10.5ZM8 6.5C7.173 6.5 6.5 7.173 6.5 8C6.5 8.827 7.173 9.5 8 9.5C8.827 9.5 9.5 8.827 9.5 8C9.5 7.173 8.827 6.5 8 6.5Z`})})}function j(e){return(0,t.jsx)(`svg`,{width:`16`,height:`16`,viewBox:`0 -960 960 960`,fill:`currentColor`,"aria-hidden":`true`,focusable:`false`,...e,children:(0,t.jsx)(`path`,{d:`M160-360q-50 0-85-35t-35-85q0-50 35-85t85-35v-80q0-33 23.5-56.5T240-760h120q0-50 35-85t85-35q50 0 85 35t35 85h120q33 0 56.5 23.5T800-680v80q50 0 85 35t35 85q0 50-35 85t-85 35v160q0 33-23.5 56.5T720-120H240q-33 0-56.5-23.5T160-200v-160Zm242.5-97.5Q420-475 420-500t-17.5-42.5Q385-560 360-560t-42.5 17.5Q300-525 300-500t17.5 42.5Q335-440 360-440t42.5-17.5Zm240 0Q660-475 660-500t-17.5-42.5Q625-560 600-560t-42.5 17.5Q540-525 540-500t17.5 42.5Q575-440 600-440t42.5-17.5ZM320-280h320v-80H320v80Zm-80 80h480v-480H240v480Zm240-240Z`})})}function M(e){return(0,t.jsx)(`svg`,{width:`16`,height:`16`,viewBox:`0 -960 960 960`,fill:`currentColor`,"aria-hidden":`true`,focusable:`false`,...e,children:(0,t.jsx)(`path`,{d:`M259-80q-75 0-127-53T80-261q0-75 52-127t127-52q22 0 42.5 5t38.5 14q14-29 15-60t-11-60q-19 10-40 15t-44 5q-75 0-127.5-52.5T80-701q0-75 52.5-127T260-880q75 0 127.5 52T440-701q0 23-5.5 44T419-617q29 12 60 11.5t60-14.5q-9-18-14-38.5t-5-42.5q0-75 52-127t127-52q75 0 128 52t53 127q0 75-53 128t-128 53q-24 0-45.5-6T612-543q-13 30-12 61.5t15 62.5q19-10 40-15.5t44-5.5q75 0 128 52t53 127q0 75-53 128T699-80q-75 0-127-53t-52-128q0-23 5.5-44t15.5-40q-31-14-62.5-15.5T417-349q11 20 17 42t6 46q0 75-53 128T259-80Zm440-520q42 0 71.5-29.5T800-701q0-42-29.5-70.5T699-800q-42 0-70.5 28.5T600-701q0 8 1.5 16.5T605-668l60-60q12-12 28-12t28 12q12 12 12 28t-12 28l-62 63q9 5 19 7t21 2Zm-439-1q10 0 19-2t17-5l-64-64q-12-12-12-28t12-28q12-12 28-12t28 12l65 64q3-8 5-17.5t2-19.5q0-42-29-71t-71-29q-42 0-71 29t-29 71q0 42 29 71t71 29Zm439 441q42 0 71.5-29.5T800-261q0-42-29.5-70.5T699-360q-10 0-19 1.5t-17 4.5l66 66q12 12 12 28t-12 28q-13 12-29 12t-28-12l-65-65q-3 8-5 17t-2 19q0 42 28.5 71.5T699-160Zm-440 0q42 0 71.5-29.5T360-261q0-11-2-21.5t-7-19.5l-70 70q-12 12-28.5 12T224-232q-12-12-12-28t12-28l67-67q-8-2-16-3.5t-16-1.5q-42 0-70.5 28.5T160-261q0 42 28.5 71.5T259-160Zm221-280q17 0 28.5-11.5T520-480q0-17-11.5-28.5T480-520q-17 0-28.5 11.5T440-480q0 17 11.5 28.5T480-440Z`})})}function N(e){return(0,t.jsx)(`svg`,{width:`16`,height:`16`,viewBox:`0 -960 960 960`,fill:`currentColor`,"aria-hidden":`true`,focusable:`false`,...e,children:(0,t.jsx)(`path`,{d:`M159-120v-120h124L181-574q-27-15-44.5-44T119-680q0-50 35-85t85-35q39 0 69.5 22.5T351-720h128v-40q0-17 11.5-28.5T519-800q9 0 17.5 4t14.5 12l68-64q9-9 21.5-11.5T665-856l156 72q12 6 16.5 17.5T837-744q-6 12-17.5 15.5T797-730l-144-66-94 88v56l94 86 144-66q11-5 23-1t17 15q6 12 1 23t-17 17l-156 74q-12 6-24.5 3.5T619-512l-68-64q-6 6-14.5 11t-17.5 5q-17 0-28.5-11.5T479-600v-40H351q-3 8-6.5 15t-9.5 15l200 370h144v120H159Zm108.5-531.5Q279-663 279-680t-11.5-28.5Q256-720 239-720t-28.5 11.5Q199-697 199-680t11.5 28.5Q222-640 239-640t28.5-11.5ZM365-240h78L271-560h-4l98 320Zm78 0Z`})})}function P(e){return(0,t.jsxs)(`svg`,{width:`16`,height:`16`,viewBox:`0 0 16 16`,"aria-hidden":`true`,focusable:`false`,...e,children:[(0,t.jsx)(`circle`,{cx:`8`,cy:`8`,r:`6`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.25`}),(0,t.jsx)(`path`,{d:`M8 2a6 6 0 0 0 0 12Z`,fill:`currentColor`,opacity:`0.38`}),(0,t.jsx)(`path`,{d:`M8 2v12`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.25`})]})}function F(e){return(0,t.jsx)(`svg`,{width:`16`,height:`16`,viewBox:`0 0 16 16`,fill:`currentColor`,"aria-hidden":`true`,focusable:`false`,...e,children:(0,t.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M6.92 1.25h2.16l.32 1.66c.43.14.84.31 1.2.52l1.4-.95 1.53 1.53-.95 1.4c.21.37.39.77.52 1.2l1.65.31v2.16l-1.65.32c-.13.43-.31.84-.52 1.2l.95 1.4L12 13.53l-1.4-.95c-.36.21-.77.39-1.2.52l-.32 1.65H6.92L6.6 13.1a5.3 5.3 0 0 1-1.2-.52l-1.4.95L2.47 12l.95-1.4a5.3 5.3 0 0 1-.52-1.2l-1.65-.32V6.92L2.9 6.6c.13-.43.31-.83.52-1.2l-.95-1.4L4 2.47l1.4.95c.36-.21.77-.38 1.2-.52l.32-1.65Zm.83 1-.27 1.4-.3.08c-.55.14-1.06.36-1.5.65l-.27.18-1.18-.8-.47.47.8 1.18-.18.27c-.29.44-.51.95-.65 1.5l-.08.3-1.4.27v.66l1.4.27.08.3c.14.55.36 1.06.65 1.5l.18.27-.8 1.18.47.47 1.18-.8.27.18c.44.29.95.51 1.5.65l.3.08.27 1.4h.66l.27-1.4.3-.08c.55-.14 1.06-.36 1.5-.65l.27-.18 1.18.8.47-.47-.8-1.18.18-.27c.29-.44.51-.95.65-1.5l.08-.3 1.4-.27v-.66l-1.4-.27-.08-.3a4.3 4.3 0 0 0-.65-1.5l-.18-.27.8-1.18-.47-.47-1.18.8-.27-.18a4.3 4.3 0 0 0-1.5-.65l-.3-.08-.27-1.4h-.66ZM8 5.25a2.75 2.75 0 1 0 0 5.5 2.75 2.75 0 0 0 0-5.5ZM6.25 8a1.75 1.75 0 1 1 3.5 0 1.75 1.75 0 0 1-3.5 0Z`})})}function I(e){return(0,t.jsx)(`svg`,{width:`16`,height:`16`,viewBox:`0 0 16 16`,xmlns:`http://www.w3.org/2000/svg`,fill:`currentColor`,"aria-hidden":`true`,focusable:`false`,...e,children:(0,t.jsx)(`path`,{d:`M15 4.95703C15 4.58711 14.8563 4.24054 14.5949 3.97992L12.0096 1.39234C11.4879 0.86922 10.5788 0.86922 10.0571 1.39234L8 3.45119V3.32321C8 2.55068 7.37187 1.922 6.6 1.922H2.4C1.62813 1.922 1 2.55068 1 3.32321V13.5988C1 14.3713 1.62813 15 2.4 15H12.6667C13.4385 15 14.0667 14.3713 14.0667 13.5988V9.39514C14.0667 8.62261 13.4385 7.99393 12.6667 7.99393H12.5379L14.5949 5.93508C14.8553 5.67445 15 5.32602 15 4.95703ZM2.4 2.85521H6.6C6.85667 2.85521 7.06667 3.06446 7.06667 3.32228V7.99299H1.93333V3.32228C1.93333 3.06446 2.14333 2.85521 2.4 2.85521ZM1.93333 13.5979V8.92714H7.06667V14.0649H2.4C2.14333 14.0649 1.93333 13.8547 1.93333 13.5979ZM13.1333 9.39421V13.5979C13.1333 13.8547 12.9233 14.0649 12.6667 14.0649H8V8.92714H12.6667C12.9233 8.92714 13.1333 9.13638 13.1333 9.39421ZM8 7.99299V6.46287L9.5288 7.99299H8ZM13.9351 5.2737L11.3488 7.86221C11.1789 8.03223 10.8859 8.03223 10.716 7.86221L8.12973 5.2737C8.0448 5.18963 7.99813 5.07753 7.99813 4.95796C7.99813 4.83839 8.0448 4.7263 8.12973 4.64129L10.716 2.05278C10.8009 1.96777 10.9129 1.92106 11.0324 1.92106C11.1519 1.92106 11.2639 1.96777 11.3488 2.05278L13.9351 4.64129C14.02 4.72536 14.0667 4.83746 14.0667 4.95703C14.0667 5.0766 14.02 5.1887 13.9351 5.2737Z`})})}function L(e){return(0,t.jsx)(`svg`,{width:`16`,height:`16`,viewBox:`0 0 16 16`,fill:`currentColor`,"aria-hidden":`true`,focusable:`false`,...e,children:(0,t.jsx)(`path`,{d:`M11.95 1.35a1.9 1.9 0 0 1 2.7 2.7L6.1 12.6 2 14l1.4-4.1 8.55-8.55Zm.7.7L4.28 10.42l-.63 1.85 1.85-.63 8.37-8.37a.9.9 0 0 0-1.22-1.22Z`})})}function R(e){return(0,t.jsx)(`svg`,{width:`16`,height:`16`,viewBox:`0 0 16 16`,fill:`currentColor`,"aria-hidden":`true`,focusable:`false`,...e,children:(0,t.jsx)(`path`,{d:`M14.452 1.548C14.087 1.183 13.608 1 13.13 1C12.652 1 12.173 1.183 11.808 1.548L6.979 6.377C6.697 6.659 6.498 7.011 6.401 7.398L6.027 8.896C5.883 9.473 6.329 10.002 6.886 10.002C6.958 10.002 7.031 9.993 7.106 9.975L8.604 9.601C8.99 9.504 9.343 9.305 9.625 9.023L14.454 4.194C15.184 3.464 15.184 2.28 14.454 1.549L14.452 1.548ZM13.745 3.485L8.916 8.314C8.763 8.467 8.57 8.576 8.36 8.629L7.04 8.962L7.371 7.64C7.424 7.43 7.532 7.237 7.686 7.084L12.516 2.255C12.68 2.091 12.899 2 13.131 2C13.363 2 13.582 2.091 13.746 2.255C14.085 2.594 14.085 3.146 13.746 3.486L13.745 3.485ZM13 7.768L14 6.768V11.5C14 12.878 12.879 14 11.5 14H4.5C3.121 14 2 12.878 2 11.5V4.5C2 3.122 3.121 2 4.5 2H9.236L8.236 3H4.5C3.673 3 3 3.673 3 4.5V11.5C3 12.327 3.673 13 4.5 13H11.5C12.327 13 13 12.327 13 11.5V7.768Z`})})}function z(e){return(0,t.jsx)(`svg`,{width:`16`,height:`16`,viewBox:`0 0 16 16`,fill:`currentColor`,"aria-hidden":`true`,focusable:`false`,...e,children:(0,t.jsx)(`path`,{d:`M7.99909 3C10.7605 3 12.9991 5.23858 12.9991 8C12.9991 10.7614 10.7605 13 7.99909 13C5.39117 13 3.2491 11.003 3.0195 8.45512C2.99471 8.1801 2.75167 7.97723 2.47664 8.00202C2.20161 8.0268 1.99875 8.26985 2.02353 8.54488C2.29916 11.6035 4.86898 14 7.99909 14C11.3128 14 13.9991 11.3137 13.9991 8C13.9991 4.68629 11.3128 2 7.99909 2C6.20656 2 4.59815 2.78613 3.49909 4.03138V2.5C3.49909 2.22386 3.27524 2 2.99909 2C2.72295 2 2.49909 2.22386 2.49909 2.5V5.5C2.49909 5.77614 2.72295 6 2.99909 6H3.08812C3.09498 6.00014 3.10184 6.00014 3.10868 6H5.99909C6.27524 6 6.49909 5.77614 6.49909 5.5C6.49909 5.22386 6.27524 5 5.99909 5H3.99863C4.91128 3.78495 6.36382 3 7.99909 3ZM7.99909 5.5C7.99909 5.22386 7.77524 5 7.49909 5C7.22295 5 6.99909 5.22386 6.99909 5.5V8.5C6.99909 8.77614 7.22295 9 7.49909 9H9.49909C9.77524 9 9.99909 8.77614 9.99909 8.5C9.99909 8.22386 9.77524 8 9.49909 8H7.99909V5.5Z`})})}function B(e){return(0,t.jsx)(`svg`,{width:`16`,height:`16`,viewBox:`0 0 16 16`,fill:`currentColor`,"aria-hidden":`true`,focusable:`false`,...e,children:(0,t.jsx)(`path`,{d:`M3.75 3C3.33579 3 3 3.33579 3 3.75V5.5C3 5.77614 2.77614 6 2.5 6C2.22386 6 2 5.77614 2 5.5V3.75C2 2.7835 2.7835 2 3.75 2H5.5C5.77614 2 6 2.22386 6 2.5C6 2.77614 5.77614 3 5.5 3H3.75ZM10 2.5C10 2.22386 10.2239 2 10.5 2H12.25C13.2165 2 14 2.7835 14 3.75V5.5C14 5.77614 13.7761 6 13.5 6C13.2239 6 13 5.77614 13 5.5V3.75C13 3.33579 12.6642 3 12.25 3H10.5C10.2239 3 10 2.77614 10 2.5ZM2.5 10C2.77614 10 3 10.2239 3 10.5V12.25C3 12.6642 3.33579 13 3.75 13H5.5C5.77614 13 6 13.2239 6 13.5C6 13.7761 5.77614 14 5.5 14H3.75C2.7835 14 2 13.2165 2 12.25V10.5C2 10.2239 2.22386 10 2.5 10ZM13.5 10C13.7761 10 14 10.2239 14 10.5V12.25C14 13.2165 13.2165 14 12.25 14H10.5C10.2239 14 10 13.7761 10 13.5C10 13.2239 10.2239 13 10.5 13H12.25C12.6642 13 13 12.6642 13 12.25V10.5C13 10.2239 13.2239 10 13.5 10Z`})})}function V(e){return(0,t.jsx)(`svg`,{width:`24`,height:`25`,viewBox:`0 0 24 25`,fill:`currentColor`,"aria-hidden":`true`,focusable:`false`,...e,children:(0,t.jsx)(`path`,{d:`M9.75 2.06775C10.164 2.06775 10.5 2.40375 10.5 2.81775C10.5 3.23175 10.164 3.56775 9.75 3.56775H4.5C2.843 3.56775 1.5 4.91075 1.5 6.56775V18.5677C1.5 20.2247 2.843 21.5677 4.5 21.5677H16.5C18.157 21.5677 19.5 20.2247 19.5 18.5677V16.3177C19.5 15.9037 19.836 15.5677 20.25 15.5677C20.664 15.5677 21 15.9037 21 16.3177V18.5677C21 21.0527 18.985 23.0677 16.5 23.0677H4.5C2.015 23.0677 0 21.0527 0 18.5677V6.56775C0 4.08275 2.015 2.06775 4.5 2.06775H9.75ZM15.75 0.567749C15.932 0.567749 16.112 0.633749 16.252 0.759749L23.752 7.50975C23.91 7.65175 23.999 7.85575 24 8.06775C24 8.28075 23.91 8.48375 23.752 8.62575L16.252 15.3757C16.112 15.5017 15.932 15.5677 15.75 15.5677C15.255 15.5677 14.999 15.1467 14.999 14.8177V11.5777C10.215 12.0157 6.971 16.3267 6.157 17.7167L5.92 18.1537C5.791 18.4117 5.528 18.5677 5.249 18.5677C4.802 18.5677 4.499 18.1987 4.499 17.8177C4.499 4.10175 14.721 4.35075 14.999 4.33675V1.31775L15.006 1.20775C15.033 1.02575 15.224 0.567749 15.749 0.567749H15.75ZM16.5 5.06775C16.5 5.48175 16.164 5.81775 15.75 5.81775C11.869 5.81775 9.485 7.38575 8.035 9.60275C7.007 11.1757 6.425 13.1117 6.166 15.1277C6.815 14.3477 7.604 13.5467 8.513 12.8187C10.415 11.2947 12.901 10.0397 15.751 10.0397C16.165 10.0397 16.501 10.3757 16.501 10.7897V13.1307L22.127 8.06675L16.501 3.00175V5.06675L16.5 5.06775Z`})})}function H(e){return(0,t.jsx)(`svg`,{width:`16`,height:`16`,viewBox:`0 0 24 24`,fill:`currentColor`,"aria-hidden":`true`,focusable:`false`,...e,children:(0,t.jsx)(`path`,{d:`M3 5v14h8V5H3Zm6 12H5V7h4v10Zm4 2h8V5h-8v14Zm2-12h4v10h-4V7Z`})})}function U(e){return(0,t.jsx)(`svg`,{width:`16`,height:`16`,viewBox:`0 0 24 24`,fill:`currentColor`,"aria-hidden":`true`,focusable:`false`,...e,children:(0,t.jsx)(`path`,{d:`M5 3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2H5Zm0 2h14v14H5V5Zm2 3v2h10V8H7Zm0 4v2h10v-2H7Zm0 4v2h10v-2H7Z`})})}function W(e){return(0,t.jsxs)(`svg`,{width:`16`,height:`16`,viewBox:`0 0 16 16`,fill:`currentColor`,"aria-hidden":`true`,focusable:`false`,...e,children:[(0,t.jsx)(`path`,{d:`M1.5 1H6v1H2v12h12v-4h1v4.5l-.5.5h-13l-.5-.5v-13l.5-.5z`}),(0,t.jsx)(`path`,{d:`M15 1.5V8h-1V2.707L7.243 9.465l-.707-.708L13.293 2H8V1h6.5l.5.5z`})]})}function G(e){return(0,t.jsx)(`svg`,{width:`16`,height:`16`,viewBox:`0 0 16 16`,fill:`currentColor`,"aria-hidden":`true`,focusable:`false`,...e,children:(0,t.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M6.306 2.146l-4.02 4.02v.708l4.02 4.02.708-.707L3.807 6.98H5.69c2.813 0 4.605.605 5.705 1.729 1.102 1.125 1.615 2.877 1.615 5.421v.35h1v-.35c0-2.646-.527-4.72-1.9-6.121C10.735 6.605 8.617 5.98 5.69 5.98H3.887l3.127-3.126-.708-.708z`})})}function K(e){return(0,t.jsxs)(`svg`,{width:`16`,height:`16`,viewBox:`0 0 16 16`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.25`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,focusable:`false`,...e,children:[(0,t.jsx)(`circle`,{cx:`4`,cy:`3`,r:`1.5`}),(0,t.jsx)(`circle`,{cx:`11.5`,cy:`4.5`,r:`1.5`}),(0,t.jsx)(`circle`,{cx:`11.5`,cy:`11.5`,r:`1.5`}),(0,t.jsx)(`path`,{d:`M4 4.5v3A4 4 0 0 0 8 11.5h2M5.5 4.5H10`})]})}function q(e){return(0,t.jsx)(`svg`,{width:`16`,height:`16`,viewBox:`0 0 16 16`,fill:`currentColor`,"aria-hidden":`true`,focusable:`false`,...e,children:(0,t.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M3.5 4l.5-.5h8l.5.5v8l-.5.5H4l-.5-.5V4zm1 .5v7h7v-7h-7z`})})}function J(e){return(0,t.jsxs)(`svg`,{width:`16`,height:`16`,viewBox:`0 0 16 16`,fill:`currentColor`,"aria-hidden":`true`,focusable:`false`,...e,children:[(0,t.jsx)(`path`,{d:`M8.85352 11.7021H7.85449L7.03809 9.54297H3.77246L3.00439 11.7021H2L4.9541 4H5.88867L8.85352 11.7021ZM6.74268 8.73193L5.53418 5.4502C5.49479 5.34277 5.4554 5.1709 5.41602 4.93457H5.39453C5.35872 5.15299 5.31755 5.32487 5.271 5.4502L4.07324 8.73193H6.74268Z`}),(0,t.jsx)(`path`,{d:`M13.756 11.7021H12.8752V10.8428H12.8537C12.4706 11.5016 11.9066 11.8311 11.1618 11.8311C10.6139 11.8311 10.1843 11.686 9.87273 11.396C9.56479 11.106 9.41082 10.721 9.41082 10.2412C9.41082 9.21354 10.016 8.61556 11.2262 8.44727L12.8752 8.21631C12.8752 7.28174 12.4974 6.81445 11.7419 6.81445C11.0794 6.81445 10.4815 7.04004 9.94793 7.49121V6.58887C10.4886 6.24512 11.1117 6.07324 11.8171 6.07324C13.1097 6.07324 13.756 6.75716 13.756 8.125V11.7021ZM12.8752 8.91992L11.5485 9.10254C11.1403 9.15983 10.8324 9.26188 10.6247 9.40869C10.417 9.55192 10.3132 9.80794 10.3132 10.1768C10.3132 10.4453 10.4081 10.6655 10.5978 10.8374C10.7912 11.0057 11.0472 11.0898 11.3659 11.0898C11.8027 11.0898 12.1626 10.9377 12.4455 10.6333C12.7319 10.3254 12.8752 9.93685 12.8752 9.46777V8.91992Z`})]})}function Y(e){return(0,t.jsxs)(`svg`,{width:`16`,height:`16`,viewBox:`0 0 16 16`,fill:`currentColor`,"aria-hidden":`true`,focusable:`false`,...e,children:[(0,t.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M0 11H1V13H15V11H16V14H15H1H0V11Z`}),(0,t.jsx)(`path`,{d:`M6.84048 11H5.95963V10.1406H5.93814C5.555 10.7995 4.99104 11.1289 4.24625 11.1289C3.69839 11.1289 3.26871 10.9839 2.95718 10.6938C2.64924 10.4038 2.49527 10.0189 2.49527 9.53906C2.49527 8.51139 3.10041 7.91341 4.3107 7.74512L5.95963 7.51416C5.95963 6.57959 5.58186 6.1123 4.82632 6.1123C4.16389 6.1123 3.56591 6.33789 3.03238 6.78906V5.88672C3.57307 5.54297 4.19612 5.37109 4.90152 5.37109C6.19416 5.37109 6.84048 6.05501 6.84048 7.42285V11ZM5.95963 8.21777L4.63297 8.40039C4.22476 8.45768 3.91682 8.55973 3.70914 8.70654C3.50145 8.84977 3.39761 9.10579 3.39761 9.47461C3.39761 9.74316 3.4925 9.96338 3.68228 10.1353C3.87564 10.3035 4.13166 10.3877 4.45035 10.3877C4.8872 10.3877 5.24706 10.2355 5.52994 9.93115C5.8164 9.62321 5.95963 9.2347 5.95963 8.76562V8.21777Z`}),(0,t.jsx)(`path`,{d:`M9.3475 10.2051H9.32601V11H8.44515V2.85742H9.32601V6.4668H9.3475C9.78076 5.73633 10.4146 5.37109 11.2489 5.37109C11.9543 5.37109 12.5057 5.61816 12.9032 6.1123C13.3042 6.60286 13.5047 7.26172 13.5047 8.08887C13.5047 9.00911 13.2809 9.74674 12.8333 10.3018C12.3857 10.8532 11.7734 11.1289 10.9964 11.1289C10.2695 11.1289 9.71989 10.821 9.3475 10.2051ZM9.32601 7.98682V8.75488C9.32601 9.20964 9.47282 9.59635 9.76644 9.91504C10.0636 10.2301 10.4396 10.3877 10.8944 10.3877C11.4279 10.3877 11.8451 10.1836 12.1458 9.77539C12.4502 9.36719 12.6024 8.79964 12.6024 8.07275C12.6024 7.46045 12.4609 6.98063 12.1781 6.6333C11.8952 6.28597 11.512 6.1123 11.0286 6.1123C10.5166 6.1123 10.1048 6.29134 9.7933 6.64941C9.48177 7.00391 9.32601 7.44971 9.32601 7.98682Z`})]})}function X(e){return(0,t.jsx)(`svg`,{width:`16`,height:`16`,viewBox:`0 0 16 16`,fill:`currentColor`,"aria-hidden":`true`,focusable:`false`,...e,children:(0,t.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M10.012 2h.976v3.113l2.56-1.557.486.885L11.47 6l2.564 1.559-.485.885-2.561-1.557V10h-.976V6.887l-2.56 1.557-.486-.885L9.53 6 6.966 4.441l.485-.885 2.561 1.557V2zM2 10h4v4H2v-4z`})})}function Z(e){return(0,t.jsx)(`svg`,{width:`16`,height:`16`,viewBox:`0 0 16 16`,fill:`currentColor`,"aria-hidden":`true`,focusable:`false`,...e,children:(0,t.jsx)(`path`,{d:`M8 1C4.14 1 1 4.14 1 8C1 11.86 4.14 15 8 15C11.86 15 15 11.86 15 8C15 4.14 11.86 1 8 1ZM8 14C4.691 14 2 11.309 2 8C2 4.691 4.691 2 8 2C11.309 2 14 4.691 14 8C14 11.309 11.309 14 8 14ZM10.854 5.854L8.708 8L10.854 10.146C11.049 10.341 11.049 10.658 10.854 10.853C10.756 10.951 10.628 10.999 10.5 10.999C10.372 10.999 10.244 10.95 10.146 10.853L8 8.707L5.854 10.853C5.756 10.951 5.628 10.999 5.5 10.999C5.372 10.999 5.244 10.95 5.146 10.853C4.951 10.658 4.951 10.341 5.146 10.146L7.292 8L5.146 5.854C4.951 5.659 4.951 5.342 5.146 5.147C5.341 4.952 5.658 4.952 5.853 5.147L7.999 7.293L10.145 5.147C10.34 4.952 10.657 4.952 10.852 5.147C11.047 5.342 11.047 5.659 10.852 5.854H10.854Z`})})}export{B as A,X as B,y as C,U as D,H as E,R as F,C as G,m as H,L as I,o as J,q as K,b as L,K as M,S as N,Z as O,z as P,g as R,P as S,v as T,F as U,G as V,V as W,Y as X,s as Y,n as _,N as a,r as b,d as c,f as d,l as f,h as g,E as h,D as i,x as j,W as k,c as l,J as m,A as n,j as o,_ as p,T as q,M as r,k as s,O as t,u,i as v,w,p as x,a as y,I as z};