commandmate 0.49.3 → 0.50.0

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 (877) hide show
  1. package/.next/BUILD_ID +1 -1
  2. package/.next/app-build-manifest.json +454 -408
  3. package/.next/app-path-routes-manifest.json +19 -13
  4. package/.next/build-manifest.json +5 -5
  5. package/.next/prerender-manifest.json +9 -9
  6. package/.next/react-loadable-manifest.json +1 -1
  7. package/.next/required-server-files.json +1 -1
  8. package/.next/routes-manifest.json +32 -0
  9. package/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  10. package/.next/server/app/api/agents/update/route_client-reference-manifest.js +1 -1
  11. package/.next/server/app/api/agents/versions/route_client-reference-manifest.js +1 -1
  12. package/.next/server/app/api/app/release-notes/route_client-reference-manifest.js +1 -1
  13. package/.next/server/app/api/app/update/route_client-reference-manifest.js +1 -1
  14. package/.next/server/app/api/app/update-check/route_client-reference-manifest.js +1 -1
  15. package/.next/server/app/api/auth/login/route_client-reference-manifest.js +1 -1
  16. package/.next/server/app/api/auth/logout/route_client-reference-manifest.js +1 -1
  17. package/.next/server/app/api/auth/status/route_client-reference-manifest.js +1 -1
  18. package/.next/server/app/api/capabilities/route.js +1 -1
  19. package/.next/server/app/api/capabilities/route_client-reference-manifest.js +1 -1
  20. package/.next/server/app/api/daily-summary/route.js +1 -1
  21. package/.next/server/app/api/daily-summary/route.js.nft.json +1 -1
  22. package/.next/server/app/api/daily-summary/route_client-reference-manifest.js +1 -1
  23. package/.next/server/app/api/daily-summary/status/route.js +1 -1
  24. package/.next/server/app/api/daily-summary/status/route.js.nft.json +1 -1
  25. package/.next/server/app/api/daily-summary/status/route_client-reference-manifest.js +1 -1
  26. package/.next/server/app/api/external-apps/[id]/health/route_client-reference-manifest.js +1 -1
  27. package/.next/server/app/api/external-apps/[id]/route_client-reference-manifest.js +1 -1
  28. package/.next/server/app/api/external-apps/route_client-reference-manifest.js +1 -1
  29. package/.next/server/app/api/fs/browse/route_client-reference-manifest.js +1 -1
  30. package/.next/server/app/api/fs/recent-paths/route_client-reference-manifest.js +1 -1
  31. package/.next/server/app/api/hooks/agent-event/route.js +1 -103
  32. package/.next/server/app/api/hooks/agent-event/route.js.nft.json +1 -1
  33. package/.next/server/app/api/hooks/agent-event/route_client-reference-manifest.js +1 -1
  34. package/.next/server/app/api/hooks/claude-done/route.js +2 -2
  35. package/.next/server/app/api/hooks/claude-done/route.js.nft.json +1 -1
  36. package/.next/server/app/api/hooks/claude-done/route_client-reference-manifest.js +1 -1
  37. package/.next/server/app/api/hooks/permission-request/route.js +1 -1
  38. package/.next/server/app/api/hooks/permission-request/route.js.nft.json +1 -1
  39. package/.next/server/app/api/hooks/permission-request/route_client-reference-manifest.js +1 -1
  40. package/.next/server/app/api/metrics/vibe/route_client-reference-manifest.js +1 -1
  41. package/.next/server/app/api/ollama/models/route_client-reference-manifest.js +1 -1
  42. package/.next/server/app/api/push/escalation/route.js +1 -1
  43. package/.next/server/app/api/push/escalation/route.js.nft.json +1 -1
  44. package/.next/server/app/api/push/escalation/route_client-reference-manifest.js +1 -1
  45. package/.next/server/app/api/push/subscriptions/route.js +1 -1
  46. package/.next/server/app/api/push/subscriptions/route_client-reference-manifest.js +1 -1
  47. package/.next/server/app/api/push/vapid/route.js +1 -1
  48. package/.next/server/app/api/push/vapid/route.js.nft.json +1 -1
  49. package/.next/server/app/api/push/vapid/route_client-reference-manifest.js +1 -1
  50. package/.next/server/app/api/relays/[relayId]/cancel/route.js +1 -1
  51. package/.next/server/app/api/relays/[relayId]/cancel/route.js.nft.json +1 -1
  52. package/.next/server/app/api/relays/[relayId]/cancel/route_client-reference-manifest.js +1 -1
  53. package/.next/server/app/api/relays/[relayId]/resolve/route.js +1 -1
  54. package/.next/server/app/api/relays/[relayId]/resolve/route.js.nft.json +1 -1
  55. package/.next/server/app/api/relays/[relayId]/resolve/route_client-reference-manifest.js +1 -1
  56. package/.next/server/app/api/relays/[relayId]/route.js +1 -1
  57. package/.next/server/app/api/relays/[relayId]/route_client-reference-manifest.js +1 -1
  58. package/.next/server/app/api/relays/route.js +1 -1
  59. package/.next/server/app/api/relays/route.js.nft.json +1 -1
  60. package/.next/server/app/api/relays/route_client-reference-manifest.js +1 -1
  61. package/.next/server/app/api/remote/pair/route.js +2 -2
  62. package/.next/server/app/api/remote/pair/route_client-reference-manifest.js +1 -1
  63. package/.next/server/app/api/repositories/[id]/role-defaults/route.js +1 -0
  64. package/.next/server/app/api/repositories/[id]/role-defaults/route.js.nft.json +1 -0
  65. package/.next/server/app/api/repositories/[id]/role-defaults/route_client-reference-manifest.js +1 -0
  66. package/.next/server/app/api/repositories/[id]/route_client-reference-manifest.js +1 -1
  67. package/.next/server/app/api/repositories/clone/[jobId]/route.js +1 -1
  68. package/.next/server/app/api/repositories/clone/[jobId]/route.js.nft.json +1 -1
  69. package/.next/server/app/api/repositories/clone/[jobId]/route_client-reference-manifest.js +1 -1
  70. package/.next/server/app/api/repositories/clone/route.js +1 -1
  71. package/.next/server/app/api/repositories/clone/route.js.nft.json +1 -1
  72. package/.next/server/app/api/repositories/clone/route_client-reference-manifest.js +1 -1
  73. package/.next/server/app/api/repositories/excluded/route_client-reference-manifest.js +1 -1
  74. package/.next/server/app/api/repositories/restore/route.js +1 -1
  75. package/.next/server/app/api/repositories/restore/route.js.nft.json +1 -1
  76. package/.next/server/app/api/repositories/restore/route_client-reference-manifest.js +1 -1
  77. package/.next/server/app/api/repositories/route.js +1 -1
  78. package/.next/server/app/api/repositories/route.js.nft.json +1 -1
  79. package/.next/server/app/api/repositories/route_client-reference-manifest.js +1 -1
  80. package/.next/server/app/api/repositories/scan/route.js +1 -1
  81. package/.next/server/app/api/repositories/scan/route.js.nft.json +1 -1
  82. package/.next/server/app/api/repositories/scan/route_client-reference-manifest.js +1 -1
  83. package/.next/server/app/api/repositories/sync/route.js +1 -1
  84. package/.next/server/app/api/repositories/sync/route.js.nft.json +1 -1
  85. package/.next/server/app/api/repositories/sync/route_client-reference-manifest.js +1 -1
  86. package/.next/server/app/api/repositories/validate-path/route.js +1 -1
  87. package/.next/server/app/api/repositories/validate-path/route_client-reference-manifest.js +1 -1
  88. package/.next/server/app/api/roles/[id]/route.js +1 -0
  89. package/.next/server/app/api/roles/[id]/route.js.nft.json +1 -0
  90. package/.next/server/app/api/roles/[id]/route_client-reference-manifest.js +1 -0
  91. package/.next/server/app/api/roles/route.js +1 -0
  92. package/.next/server/app/api/roles/route.js.nft.json +1 -0
  93. package/.next/server/app/api/roles/route_client-reference-manifest.js +1 -0
  94. package/.next/server/app/api/settings/agent-role-defaults/route.js +1 -0
  95. package/.next/server/app/api/settings/agent-role-defaults/route.js.nft.json +1 -0
  96. package/.next/server/app/api/settings/agent-role-defaults/route_client-reference-manifest.js +1 -0
  97. package/.next/server/app/api/settings/default-agents/route.js +1 -1
  98. package/.next/server/app/api/settings/default-agents/route.js.nft.json +1 -1
  99. package/.next/server/app/api/settings/default-agents/route_client-reference-manifest.js +1 -1
  100. package/.next/server/app/api/settings/default-surface-mode/route_client-reference-manifest.js +1 -1
  101. package/.next/server/app/api/sidebar/group-order/route_client-reference-manifest.js +1 -1
  102. package/.next/server/app/api/skills/[id]/route_client-reference-manifest.js +1 -1
  103. package/.next/server/app/api/skills/installations/route_client-reference-manifest.js +1 -1
  104. package/.next/server/app/api/skills/operations/route_client-reference-manifest.js +1 -1
  105. package/.next/server/app/api/skills/reindex/route_client-reference-manifest.js +1 -1
  106. package/.next/server/app/api/skills/route_client-reference-manifest.js +1 -1
  107. package/.next/server/app/api/slash-commands/route.js +1 -1
  108. package/.next/server/app/api/slash-commands/route_client-reference-manifest.js +1 -1
  109. package/.next/server/app/api/tasks/[taskId]/cancel/route_client-reference-manifest.js +1 -1
  110. package/.next/server/app/api/tasks/[taskId]/route.js +1 -1
  111. package/.next/server/app/api/tasks/[taskId]/route_client-reference-manifest.js +1 -1
  112. package/.next/server/app/api/templates/[id]/route_client-reference-manifest.js +1 -1
  113. package/.next/server/app/api/templates/route_client-reference-manifest.js +1 -1
  114. package/.next/server/app/api/verification/runs/[runId]/route.js +1 -1
  115. package/.next/server/app/api/verification/runs/[runId]/route_client-reference-manifest.js +1 -1
  116. package/.next/server/app/api/verification/runs/route.js +1 -1
  117. package/.next/server/app/api/verification/runs/route_client-reference-manifest.js +1 -1
  118. package/.next/server/app/api/worktrees/[id]/auto-yes/route.js +1 -1
  119. package/.next/server/app/api/worktrees/[id]/auto-yes/route.js.nft.json +1 -1
  120. package/.next/server/app/api/worktrees/[id]/auto-yes/route_client-reference-manifest.js +1 -1
  121. package/.next/server/app/api/worktrees/[id]/capture/route.js +1 -1
  122. package/.next/server/app/api/worktrees/[id]/capture/route.js.nft.json +1 -1
  123. package/.next/server/app/api/worktrees/[id]/capture/route_client-reference-manifest.js +1 -1
  124. package/.next/server/app/api/worktrees/[id]/clear-composer/route.js +1 -1
  125. package/.next/server/app/api/worktrees/[id]/clear-composer/route.js.nft.json +1 -1
  126. package/.next/server/app/api/worktrees/[id]/clear-composer/route_client-reference-manifest.js +1 -1
  127. package/.next/server/app/api/worktrees/[id]/cli-reference/route.js +1 -1
  128. package/.next/server/app/api/worktrees/[id]/cli-reference/route_client-reference-manifest.js +1 -1
  129. package/.next/server/app/api/worktrees/[id]/cli-tool/route.js +1 -1
  130. package/.next/server/app/api/worktrees/[id]/cli-tool/route_client-reference-manifest.js +1 -1
  131. package/.next/server/app/api/worktrees/[id]/cmate/schedules/route.js +3 -3
  132. package/.next/server/app/api/worktrees/[id]/cmate/schedules/route.js.nft.json +1 -1
  133. package/.next/server/app/api/worktrees/[id]/cmate/schedules/route_client-reference-manifest.js +1 -1
  134. package/.next/server/app/api/worktrees/[id]/current-output/route.js +1 -1
  135. package/.next/server/app/api/worktrees/[id]/current-output/route.js.nft.json +1 -1
  136. package/.next/server/app/api/worktrees/[id]/current-output/route_client-reference-manifest.js +1 -1
  137. package/.next/server/app/api/worktrees/[id]/direct-input/route.js +1 -1
  138. package/.next/server/app/api/worktrees/[id]/direct-input/route.js.nft.json +1 -1
  139. package/.next/server/app/api/worktrees/[id]/direct-input/route_client-reference-manifest.js +1 -1
  140. package/.next/server/app/api/worktrees/[id]/env/route.js +1 -1
  141. package/.next/server/app/api/worktrees/[id]/env/route_client-reference-manifest.js +1 -1
  142. package/.next/server/app/api/worktrees/[id]/execution-logs/[logId]/route.js +1 -1
  143. package/.next/server/app/api/worktrees/[id]/execution-logs/[logId]/route_client-reference-manifest.js +1 -1
  144. package/.next/server/app/api/worktrees/[id]/execution-logs/route.js +2 -2
  145. package/.next/server/app/api/worktrees/[id]/execution-logs/route.js.nft.json +1 -1
  146. package/.next/server/app/api/worktrees/[id]/execution-logs/route_client-reference-manifest.js +1 -1
  147. package/.next/server/app/api/worktrees/[id]/files/[...path]/route_client-reference-manifest.js +1 -1
  148. package/.next/server/app/api/worktrees/[id]/git/branch/create/route.js +1 -1
  149. package/.next/server/app/api/worktrees/[id]/git/branch/create/route_client-reference-manifest.js +1 -1
  150. package/.next/server/app/api/worktrees/[id]/git/branch/delete/route.js +1 -1
  151. package/.next/server/app/api/worktrees/[id]/git/branch/delete/route_client-reference-manifest.js +1 -1
  152. package/.next/server/app/api/worktrees/[id]/git/branches/route.js +1 -1
  153. package/.next/server/app/api/worktrees/[id]/git/branches/route_client-reference-manifest.js +1 -1
  154. package/.next/server/app/api/worktrees/[id]/git/checkout/route.js +1 -1
  155. package/.next/server/app/api/worktrees/[id]/git/checkout/route_client-reference-manifest.js +1 -1
  156. package/.next/server/app/api/worktrees/[id]/git/commit/route.js +1 -1
  157. package/.next/server/app/api/worktrees/[id]/git/commit/route_client-reference-manifest.js +1 -1
  158. package/.next/server/app/api/worktrees/[id]/git/diff/route.js +1 -1
  159. package/.next/server/app/api/worktrees/[id]/git/diff/route_client-reference-manifest.js +1 -1
  160. package/.next/server/app/api/worktrees/[id]/git/fetch/route.js +1 -1
  161. package/.next/server/app/api/worktrees/[id]/git/fetch/route_client-reference-manifest.js +1 -1
  162. package/.next/server/app/api/worktrees/[id]/git/log/route.js +1 -1
  163. package/.next/server/app/api/worktrees/[id]/git/log/route_client-reference-manifest.js +1 -1
  164. package/.next/server/app/api/worktrees/[id]/git/pull/route.js +1 -1
  165. package/.next/server/app/api/worktrees/[id]/git/pull/route_client-reference-manifest.js +1 -1
  166. package/.next/server/app/api/worktrees/[id]/git/push/route.js +1 -1
  167. package/.next/server/app/api/worktrees/[id]/git/push/route_client-reference-manifest.js +1 -1
  168. package/.next/server/app/api/worktrees/[id]/git/reset/route.js +1 -1
  169. package/.next/server/app/api/worktrees/[id]/git/reset/route_client-reference-manifest.js +1 -1
  170. package/.next/server/app/api/worktrees/[id]/git/revert/route.js +1 -1
  171. package/.next/server/app/api/worktrees/[id]/git/revert/route_client-reference-manifest.js +1 -1
  172. package/.next/server/app/api/worktrees/[id]/git/show/[commitHash]/route.js +1 -1
  173. package/.next/server/app/api/worktrees/[id]/git/show/[commitHash]/route_client-reference-manifest.js +1 -1
  174. package/.next/server/app/api/worktrees/[id]/git/stage/route.js +1 -1
  175. package/.next/server/app/api/worktrees/[id]/git/stage/route_client-reference-manifest.js +1 -1
  176. package/.next/server/app/api/worktrees/[id]/git/staged/route.js +1 -1
  177. package/.next/server/app/api/worktrees/[id]/git/staged/route_client-reference-manifest.js +1 -1
  178. package/.next/server/app/api/worktrees/[id]/git/stash/[index]/route.js +1 -1
  179. package/.next/server/app/api/worktrees/[id]/git/stash/[index]/route_client-reference-manifest.js +1 -1
  180. package/.next/server/app/api/worktrees/[id]/git/stash/apply/route.js +1 -1
  181. package/.next/server/app/api/worktrees/[id]/git/stash/apply/route_client-reference-manifest.js +1 -1
  182. package/.next/server/app/api/worktrees/[id]/git/stash/pop/route.js +1 -1
  183. package/.next/server/app/api/worktrees/[id]/git/stash/pop/route_client-reference-manifest.js +1 -1
  184. package/.next/server/app/api/worktrees/[id]/git/stash/push/route.js +1 -1
  185. package/.next/server/app/api/worktrees/[id]/git/stash/push/route_client-reference-manifest.js +1 -1
  186. package/.next/server/app/api/worktrees/[id]/git/stash/route.js +1 -1
  187. package/.next/server/app/api/worktrees/[id]/git/stash/route_client-reference-manifest.js +1 -1
  188. package/.next/server/app/api/worktrees/[id]/git/status/route.js +1 -1
  189. package/.next/server/app/api/worktrees/[id]/git/status/route_client-reference-manifest.js +1 -1
  190. package/.next/server/app/api/worktrees/[id]/git/unstage/route.js +1 -1
  191. package/.next/server/app/api/worktrees/[id]/git/unstage/route_client-reference-manifest.js +1 -1
  192. package/.next/server/app/api/worktrees/[id]/git/working-diff/route.js +1 -1
  193. package/.next/server/app/api/worktrees/[id]/git/working-diff/route_client-reference-manifest.js +1 -1
  194. package/.next/server/app/api/worktrees/[id]/instances/notes/route.js +1 -1
  195. package/.next/server/app/api/worktrees/[id]/instances/notes/route_client-reference-manifest.js +1 -1
  196. package/.next/server/app/api/worktrees/[id]/instances/opencode/route.js +1 -1
  197. package/.next/server/app/api/worktrees/[id]/instances/opencode/route.js.nft.json +1 -1
  198. package/.next/server/app/api/worktrees/[id]/instances/opencode/route_client-reference-manifest.js +1 -1
  199. package/.next/server/app/api/worktrees/[id]/instances/roles/route.js +1 -0
  200. package/.next/server/app/api/worktrees/[id]/instances/roles/route.js.nft.json +1 -0
  201. package/.next/server/app/api/worktrees/[id]/instances/roles/route_client-reference-manifest.js +1 -0
  202. package/.next/server/app/api/worktrees/[id]/instances/roles/settle/route.js +1 -0
  203. package/.next/server/app/api/worktrees/[id]/instances/roles/settle/route.js.nft.json +1 -0
  204. package/.next/server/app/api/worktrees/[id]/instances/roles/settle/route_client-reference-manifest.js +1 -0
  205. package/.next/server/app/api/worktrees/[id]/interrupt/route.js +1 -1
  206. package/.next/server/app/api/worktrees/[id]/interrupt/route.js.nft.json +1 -1
  207. package/.next/server/app/api/worktrees/[id]/interrupt/route_client-reference-manifest.js +1 -1
  208. package/.next/server/app/api/worktrees/[id]/kill-session/route.js +2 -2
  209. package/.next/server/app/api/worktrees/[id]/kill-session/route.js.nft.json +1 -1
  210. package/.next/server/app/api/worktrees/[id]/kill-session/route_client-reference-manifest.js +1 -1
  211. package/.next/server/app/api/worktrees/[id]/logs/[filename]/route_client-reference-manifest.js +1 -1
  212. package/.next/server/app/api/worktrees/[id]/logs/route_client-reference-manifest.js +1 -1
  213. package/.next/server/app/api/worktrees/[id]/marp-render/route.js +1 -1
  214. package/.next/server/app/api/worktrees/[id]/marp-render/route_client-reference-manifest.js +1 -1
  215. package/.next/server/app/api/worktrees/[id]/memos/[memoId]/route.js +1 -1
  216. package/.next/server/app/api/worktrees/[id]/memos/[memoId]/route_client-reference-manifest.js +1 -1
  217. package/.next/server/app/api/worktrees/[id]/memos/route.js +1 -1
  218. package/.next/server/app/api/worktrees/[id]/memos/route_client-reference-manifest.js +1 -1
  219. package/.next/server/app/api/worktrees/[id]/messages/route.js +1 -1
  220. package/.next/server/app/api/worktrees/[id]/messages/route_client-reference-manifest.js +1 -1
  221. package/.next/server/app/api/worktrees/[id]/opencode/diff/route_client-reference-manifest.js +1 -1
  222. package/.next/server/app/api/worktrees/[id]/opencode/session/route.js +1 -1
  223. package/.next/server/app/api/worktrees/[id]/opencode/session/route.js.nft.json +1 -1
  224. package/.next/server/app/api/worktrees/[id]/opencode/session/route_client-reference-manifest.js +1 -1
  225. package/.next/server/app/api/worktrees/[id]/opencode/share/route.js +1 -1
  226. package/.next/server/app/api/worktrees/[id]/opencode/share/route.js.nft.json +1 -1
  227. package/.next/server/app/api/worktrees/[id]/opencode/share/route_client-reference-manifest.js +1 -1
  228. package/.next/server/app/api/worktrees/[id]/prompt-response/route.js +1 -1
  229. package/.next/server/app/api/worktrees/[id]/prompt-response/route.js.nft.json +1 -1
  230. package/.next/server/app/api/worktrees/[id]/prompt-response/route_client-reference-manifest.js +1 -1
  231. package/.next/server/app/api/worktrees/[id]/prompt-response/strict/route.js +1 -1
  232. package/.next/server/app/api/worktrees/[id]/prompt-response/strict/route.js.nft.json +1 -1
  233. package/.next/server/app/api/worktrees/[id]/prompt-response/strict/route_client-reference-manifest.js +1 -1
  234. package/.next/server/app/api/worktrees/[id]/resolve-target/route.js +1 -1
  235. package/.next/server/app/api/worktrees/[id]/resolve-target/route_client-reference-manifest.js +1 -1
  236. package/.next/server/app/api/worktrees/[id]/respond/route.js +1 -1
  237. package/.next/server/app/api/worktrees/[id]/respond/route.js.nft.json +1 -1
  238. package/.next/server/app/api/worktrees/[id]/respond/route_client-reference-manifest.js +1 -1
  239. package/.next/server/app/api/worktrees/[id]/route.js +1 -1
  240. package/.next/server/app/api/worktrees/[id]/route.js.nft.json +1 -1
  241. package/.next/server/app/api/worktrees/[id]/route_client-reference-manifest.js +1 -1
  242. package/.next/server/app/api/worktrees/[id]/schedules/[scheduleId]/route.js +2 -2
  243. package/.next/server/app/api/worktrees/[id]/schedules/[scheduleId]/route.js.nft.json +1 -1
  244. package/.next/server/app/api/worktrees/[id]/schedules/[scheduleId]/route_client-reference-manifest.js +1 -1
  245. package/.next/server/app/api/worktrees/[id]/schedules/active/route.js +2 -2
  246. package/.next/server/app/api/worktrees/[id]/schedules/active/route.js.nft.json +1 -1
  247. package/.next/server/app/api/worktrees/[id]/schedules/active/route_client-reference-manifest.js +1 -1
  248. package/.next/server/app/api/worktrees/[id]/schedules/route.js +2 -2
  249. package/.next/server/app/api/worktrees/[id]/schedules/route.js.nft.json +1 -1
  250. package/.next/server/app/api/worktrees/[id]/schedules/route_client-reference-manifest.js +1 -1
  251. package/.next/server/app/api/worktrees/[id]/search/route_client-reference-manifest.js +1 -1
  252. package/.next/server/app/api/worktrees/[id]/send/route.js +1 -1
  253. package/.next/server/app/api/worktrees/[id]/send/route.js.nft.json +1 -1
  254. package/.next/server/app/api/worktrees/[id]/send/route_client-reference-manifest.js +1 -1
  255. package/.next/server/app/api/worktrees/[id]/skills/[skillId]/git-workflow/route.js +3 -104
  256. package/.next/server/app/api/worktrees/[id]/skills/[skillId]/git-workflow/route.js.nft.json +1 -1
  257. package/.next/server/app/api/worktrees/[id]/skills/[skillId]/git-workflow/route_client-reference-manifest.js +1 -1
  258. package/.next/server/app/api/worktrees/[id]/skills/[skillId]/install/route.js +1 -1
  259. package/.next/server/app/api/worktrees/[id]/skills/[skillId]/install/route.js.nft.json +1 -1
  260. package/.next/server/app/api/worktrees/[id]/skills/[skillId]/install/route_client-reference-manifest.js +1 -1
  261. package/.next/server/app/api/worktrees/[id]/skills/[skillId]/plan/route.js +1 -1
  262. package/.next/server/app/api/worktrees/[id]/skills/[skillId]/plan/route.js.nft.json +1 -1
  263. package/.next/server/app/api/worktrees/[id]/skills/[skillId]/plan/route_client-reference-manifest.js +1 -1
  264. package/.next/server/app/api/worktrees/[id]/skills/[skillId]/uninstall/route.js +1 -1
  265. package/.next/server/app/api/worktrees/[id]/skills/[skillId]/uninstall/route.js.nft.json +1 -1
  266. package/.next/server/app/api/worktrees/[id]/skills/[skillId]/uninstall/route_client-reference-manifest.js +1 -1
  267. package/.next/server/app/api/worktrees/[id]/skills/[skillId]/uninstall-plan/route.js +1 -1
  268. package/.next/server/app/api/worktrees/[id]/skills/[skillId]/uninstall-plan/route.js.nft.json +1 -1
  269. package/.next/server/app/api/worktrees/[id]/skills/[skillId]/uninstall-plan/route_client-reference-manifest.js +1 -1
  270. package/.next/server/app/api/worktrees/[id]/skills/[skillId]/update/route.js +1 -1
  271. package/.next/server/app/api/worktrees/[id]/skills/[skillId]/update/route.js.nft.json +1 -1
  272. package/.next/server/app/api/worktrees/[id]/skills/[skillId]/update/route_client-reference-manifest.js +1 -1
  273. package/.next/server/app/api/worktrees/[id]/skills/[skillId]/update-plan/route.js +1 -1
  274. package/.next/server/app/api/worktrees/[id]/skills/[skillId]/update-plan/route.js.nft.json +1 -1
  275. package/.next/server/app/api/worktrees/[id]/skills/[skillId]/update-plan/route_client-reference-manifest.js +1 -1
  276. package/.next/server/app/api/worktrees/[id]/skills/route.js +1 -1
  277. package/.next/server/app/api/worktrees/[id]/skills/route_client-reference-manifest.js +1 -1
  278. package/.next/server/app/api/worktrees/[id]/slash-commands/route.js +1 -1
  279. package/.next/server/app/api/worktrees/[id]/slash-commands/route.js.nft.json +1 -1
  280. package/.next/server/app/api/worktrees/[id]/slash-commands/route_client-reference-manifest.js +1 -1
  281. package/.next/server/app/api/worktrees/[id]/special-keys/route.js +1 -1
  282. package/.next/server/app/api/worktrees/[id]/special-keys/route.js.nft.json +1 -1
  283. package/.next/server/app/api/worktrees/[id]/special-keys/route_client-reference-manifest.js +1 -1
  284. package/.next/server/app/api/worktrees/[id]/tasks/route.js +2 -2
  285. package/.next/server/app/api/worktrees/[id]/tasks/route.js.nft.json +1 -1
  286. package/.next/server/app/api/worktrees/[id]/tasks/route_client-reference-manifest.js +1 -1
  287. package/.next/server/app/api/worktrees/[id]/terminal/route.js +1 -103
  288. package/.next/server/app/api/worktrees/[id]/terminal/route.js.nft.json +1 -1
  289. package/.next/server/app/api/worktrees/[id]/terminal/route_client-reference-manifest.js +1 -1
  290. package/.next/server/app/api/worktrees/[id]/timers/history/route.js +1 -1
  291. package/.next/server/app/api/worktrees/[id]/timers/history/route_client-reference-manifest.js +1 -1
  292. package/.next/server/app/api/worktrees/[id]/timers/route.js +1 -1
  293. package/.next/server/app/api/worktrees/[id]/timers/route.js.nft.json +1 -1
  294. package/.next/server/app/api/worktrees/[id]/timers/route_client-reference-manifest.js +1 -1
  295. package/.next/server/app/api/worktrees/[id]/todos/[todoId]/route_client-reference-manifest.js +1 -1
  296. package/.next/server/app/api/worktrees/[id]/todos/route_client-reference-manifest.js +1 -1
  297. package/.next/server/app/api/worktrees/[id]/tree/[...path]/route_client-reference-manifest.js +1 -1
  298. package/.next/server/app/api/worktrees/[id]/tree/route_client-reference-manifest.js +1 -1
  299. package/.next/server/app/api/worktrees/[id]/upload/[...path]/route_client-reference-manifest.js +1 -1
  300. package/.next/server/app/api/worktrees/[id]/verify/config/route.js +1 -1
  301. package/.next/server/app/api/worktrees/[id]/verify/config/route_client-reference-manifest.js +1 -1
  302. package/.next/server/app/api/worktrees/[id]/verify/route.js +1 -1
  303. package/.next/server/app/api/worktrees/[id]/verify/route.js.nft.json +1 -1
  304. package/.next/server/app/api/worktrees/[id]/verify/route_client-reference-manifest.js +1 -1
  305. package/.next/server/app/api/worktrees/[id]/verify/runs/[runId]/cancel/route.js +1 -1
  306. package/.next/server/app/api/worktrees/[id]/verify/runs/[runId]/cancel/route.js.nft.json +1 -1
  307. package/.next/server/app/api/worktrees/[id]/verify/runs/[runId]/cancel/route_client-reference-manifest.js +1 -1
  308. package/.next/server/app/api/worktrees/[id]/verify/runs/[runId]/route.js +1 -1
  309. package/.next/server/app/api/worktrees/[id]/verify/runs/[runId]/route_client-reference-manifest.js +1 -1
  310. package/.next/server/app/api/worktrees/[id]/verify/runs/route.js +1 -1
  311. package/.next/server/app/api/worktrees/[id]/verify/runs/route_client-reference-manifest.js +1 -1
  312. package/.next/server/app/api/worktrees/[id]/viewed/route.js +1 -1
  313. package/.next/server/app/api/worktrees/[id]/viewed/route_client-reference-manifest.js +1 -1
  314. package/.next/server/app/api/worktrees/apply-default-agents/route_client-reference-manifest.js +1 -1
  315. package/.next/server/app/api/worktrees/route.js +1 -1
  316. package/.next/server/app/api/worktrees/route.js.nft.json +1 -1
  317. package/.next/server/app/api/worktrees/route_client-reference-manifest.js +1 -1
  318. package/.next/server/app/login/page_client-reference-manifest.js +1 -1
  319. package/.next/server/app/manifest.webmanifest/route_client-reference-manifest.js +1 -1
  320. package/.next/server/app/more/page.js +1 -1
  321. package/.next/server/app/more/page_client-reference-manifest.js +1 -1
  322. package/.next/server/app/offline/page_client-reference-manifest.js +1 -1
  323. package/.next/server/app/page_client-reference-manifest.js +1 -1
  324. package/.next/server/app/proxy/[...path]/route_client-reference-manifest.js +1 -1
  325. package/.next/server/app/repositories/page.js +2 -2
  326. package/.next/server/app/repositories/page_client-reference-manifest.js +1 -1
  327. package/.next/server/app/review/page.js +1 -1
  328. package/.next/server/app/review/page_client-reference-manifest.js +1 -1
  329. package/.next/server/app/sessions/page.js +1 -1
  330. package/.next/server/app/sessions/page_client-reference-manifest.js +1 -1
  331. package/.next/server/app/skills/[skillId]/page_client-reference-manifest.js +1 -1
  332. package/.next/server/app/skills/installed/page_client-reference-manifest.js +1 -1
  333. package/.next/server/app/skills/page_client-reference-manifest.js +1 -1
  334. package/.next/server/app/worktrees/[id]/files/[...path]/page_client-reference-manifest.js +1 -1
  335. package/.next/server/app/worktrees/[id]/page.js +11 -11
  336. package/.next/server/app/worktrees/[id]/page_client-reference-manifest.js +1 -1
  337. package/.next/server/app/worktrees/[id]/terminal/page_client-reference-manifest.js +1 -1
  338. package/.next/server/app-paths-manifest.json +19 -13
  339. package/.next/server/chunks/1184.js +5 -0
  340. package/.next/server/chunks/1501.js +5 -5
  341. package/.next/server/chunks/1656.js +2 -2
  342. package/.next/server/chunks/1957.js +2 -2
  343. package/.next/server/chunks/1990.js +103 -0
  344. package/.next/server/chunks/2119.js +1 -1
  345. package/.next/server/chunks/2404.js +1 -1
  346. package/.next/server/chunks/2445.js +1 -1
  347. package/.next/server/chunks/2819.js +1 -0
  348. package/.next/server/chunks/2897.js +1 -1
  349. package/.next/server/chunks/3042.js +2 -0
  350. package/.next/server/chunks/3241.js +1 -1
  351. package/.next/server/chunks/3294.js +3 -0
  352. package/.next/server/chunks/3417.js +1 -1
  353. package/.next/server/chunks/3480.js +1 -1
  354. package/.next/server/chunks/3505.js +2 -6
  355. package/.next/server/chunks/3543.js +1 -1
  356. package/.next/server/chunks/3801.js +2 -2
  357. package/.next/server/chunks/3945.js +1 -1
  358. package/.next/server/chunks/4207.js +1 -1
  359. package/.next/server/chunks/454.js +1 -0
  360. package/.next/server/chunks/4645.js +1 -0
  361. package/.next/server/chunks/4911.js +1 -1
  362. package/.next/server/chunks/5350.js +6 -2
  363. package/.next/server/chunks/5354.js +1 -1
  364. package/.next/server/chunks/5571.js +1 -1
  365. package/.next/server/chunks/6009.js +12 -0
  366. package/.next/server/chunks/6130.js +1 -1
  367. package/.next/server/chunks/6285.js +1 -1
  368. package/.next/server/chunks/6401.js +1 -1
  369. package/.next/server/chunks/6486.js +2 -2
  370. package/.next/server/chunks/6569.js +1 -0
  371. package/.next/server/chunks/6781.js +1 -1
  372. package/.next/server/chunks/6793.js +4 -4
  373. package/.next/server/chunks/696.js +3 -0
  374. package/.next/server/chunks/7023.js +3 -3
  375. package/.next/server/chunks/{9702.js → 7083.js} +1 -1
  376. package/.next/server/chunks/741.js +1 -0
  377. package/.next/server/chunks/7662.js +1 -0
  378. package/.next/server/chunks/7905.js +1 -1
  379. package/.next/server/chunks/8143.js +33 -0
  380. package/.next/server/chunks/8581.js +6 -6
  381. package/.next/server/chunks/8728.js +2 -2
  382. package/.next/server/chunks/8782.js +1 -1
  383. package/.next/server/chunks/8807.js +97 -10
  384. package/.next/server/chunks/8918.js +3 -105
  385. package/.next/server/chunks/8955.js +1 -0
  386. package/.next/server/chunks/923.js +1 -0
  387. package/.next/server/chunks/9390.js +2 -2
  388. package/.next/server/chunks/9627.js +5 -5
  389. package/.next/server/chunks/973.js +1 -0
  390. package/.next/server/chunks/9731.js +3 -3
  391. package/.next/server/middleware-build-manifest.js +1 -1
  392. package/.next/server/middleware-manifest.json +5 -5
  393. package/.next/server/middleware-react-loadable-manifest.js +1 -1
  394. package/.next/server/pages/500.html +1 -1
  395. package/.next/server/server-reference-manifest.json +1 -1
  396. package/.next/static/chunks/2314-2c9d587a27e8f731.js +1 -0
  397. package/.next/static/chunks/2407-ee881c99e218975b.js +1 -0
  398. package/.next/static/chunks/3931-24d7e245a93feb25.js +1 -0
  399. package/.next/static/chunks/4548-9afa02fd18afa6c7.js +1 -0
  400. package/.next/static/chunks/{5794-7975b8e51e731b19.js → 5794-38b3b504b3d97e04.js} +1 -1
  401. package/.next/static/chunks/{6966-d8dc6032410ffaba.js → 6966-dbfa4a43397f8c6d.js} +1 -1
  402. package/.next/static/chunks/7090-28e83f5a0efdb3b4.js +1 -0
  403. package/.next/static/chunks/7229.016d007c467a3600.js +1 -0
  404. package/.next/static/chunks/{8407-35bbfc84793d7004.js → 8407-dd6a8062fc449899.js} +1 -1
  405. package/.next/static/chunks/app/api/agents/update/route-476063c3571b81dd.js +1 -0
  406. package/.next/static/chunks/app/api/agents/versions/route-476063c3571b81dd.js +1 -0
  407. package/.next/static/chunks/app/api/app/release-notes/route-476063c3571b81dd.js +1 -0
  408. package/.next/static/chunks/app/api/app/update/route-476063c3571b81dd.js +1 -0
  409. package/.next/static/chunks/app/api/app/update-check/route-476063c3571b81dd.js +1 -0
  410. package/.next/static/chunks/app/api/auth/login/route-476063c3571b81dd.js +1 -0
  411. package/.next/static/chunks/app/api/auth/logout/route-476063c3571b81dd.js +1 -0
  412. package/.next/static/chunks/app/api/auth/status/route-476063c3571b81dd.js +1 -0
  413. package/.next/static/chunks/app/api/capabilities/route-476063c3571b81dd.js +1 -0
  414. package/.next/static/chunks/app/api/daily-summary/route-476063c3571b81dd.js +1 -0
  415. package/.next/static/chunks/app/api/daily-summary/status/route-476063c3571b81dd.js +1 -0
  416. package/.next/static/chunks/app/api/external-apps/[id]/health/route-476063c3571b81dd.js +1 -0
  417. package/.next/static/chunks/app/api/external-apps/[id]/route-476063c3571b81dd.js +1 -0
  418. package/.next/static/chunks/app/api/external-apps/route-476063c3571b81dd.js +1 -0
  419. package/.next/static/chunks/app/api/fs/browse/route-476063c3571b81dd.js +1 -0
  420. package/.next/static/chunks/app/api/fs/recent-paths/route-476063c3571b81dd.js +1 -0
  421. package/.next/static/chunks/app/api/hooks/agent-event/route-476063c3571b81dd.js +1 -0
  422. package/.next/static/chunks/app/api/hooks/claude-done/route-476063c3571b81dd.js +1 -0
  423. package/.next/static/chunks/app/api/hooks/permission-request/route-476063c3571b81dd.js +1 -0
  424. package/.next/static/chunks/app/api/metrics/vibe/route-476063c3571b81dd.js +1 -0
  425. package/.next/static/chunks/app/api/ollama/models/route-476063c3571b81dd.js +1 -0
  426. package/.next/static/chunks/app/api/push/escalation/route-476063c3571b81dd.js +1 -0
  427. package/.next/static/chunks/app/api/push/subscriptions/route-476063c3571b81dd.js +1 -0
  428. package/.next/static/chunks/app/api/push/vapid/route-476063c3571b81dd.js +1 -0
  429. package/.next/static/chunks/app/api/relays/[relayId]/cancel/route-476063c3571b81dd.js +1 -0
  430. package/.next/static/chunks/app/api/relays/[relayId]/resolve/route-476063c3571b81dd.js +1 -0
  431. package/.next/static/chunks/app/api/relays/[relayId]/route-476063c3571b81dd.js +1 -0
  432. package/.next/static/chunks/app/api/relays/route-476063c3571b81dd.js +1 -0
  433. package/.next/static/chunks/app/api/remote/pair/route-476063c3571b81dd.js +1 -0
  434. package/.next/static/chunks/app/api/repositories/[id]/role-defaults/route-476063c3571b81dd.js +1 -0
  435. package/.next/static/chunks/app/api/repositories/[id]/route-476063c3571b81dd.js +1 -0
  436. package/.next/static/chunks/app/api/repositories/clone/[jobId]/route-476063c3571b81dd.js +1 -0
  437. package/.next/static/chunks/app/api/repositories/clone/route-476063c3571b81dd.js +1 -0
  438. package/.next/static/chunks/app/api/repositories/excluded/route-476063c3571b81dd.js +1 -0
  439. package/.next/static/chunks/app/api/repositories/restore/route-476063c3571b81dd.js +1 -0
  440. package/.next/static/chunks/app/api/repositories/route-476063c3571b81dd.js +1 -0
  441. package/.next/static/chunks/app/api/repositories/scan/route-476063c3571b81dd.js +1 -0
  442. package/.next/static/chunks/app/api/repositories/sync/route-476063c3571b81dd.js +1 -0
  443. package/.next/static/chunks/app/api/repositories/validate-path/route-476063c3571b81dd.js +1 -0
  444. package/.next/static/chunks/app/api/roles/[id]/route-476063c3571b81dd.js +1 -0
  445. package/.next/static/chunks/app/api/roles/route-476063c3571b81dd.js +1 -0
  446. package/.next/static/chunks/app/api/settings/agent-role-defaults/route-476063c3571b81dd.js +1 -0
  447. package/.next/static/chunks/app/api/settings/default-agents/route-476063c3571b81dd.js +1 -0
  448. package/.next/static/chunks/app/api/settings/default-surface-mode/route-476063c3571b81dd.js +1 -0
  449. package/.next/static/chunks/app/api/sidebar/group-order/route-476063c3571b81dd.js +1 -0
  450. package/.next/static/chunks/app/api/skills/[id]/route-476063c3571b81dd.js +1 -0
  451. package/.next/static/chunks/app/api/skills/installations/route-476063c3571b81dd.js +1 -0
  452. package/.next/static/chunks/app/api/skills/operations/route-476063c3571b81dd.js +1 -0
  453. package/.next/static/chunks/app/api/skills/reindex/route-476063c3571b81dd.js +1 -0
  454. package/.next/static/chunks/app/api/skills/route-476063c3571b81dd.js +1 -0
  455. package/.next/static/chunks/app/api/slash-commands/route-476063c3571b81dd.js +1 -0
  456. package/.next/static/chunks/app/api/tasks/[taskId]/cancel/route-476063c3571b81dd.js +1 -0
  457. package/.next/static/chunks/app/api/tasks/[taskId]/route-476063c3571b81dd.js +1 -0
  458. package/.next/static/chunks/app/api/templates/[id]/route-476063c3571b81dd.js +1 -0
  459. package/.next/static/chunks/app/api/templates/route-476063c3571b81dd.js +1 -0
  460. package/.next/static/chunks/app/api/verification/runs/[runId]/route-476063c3571b81dd.js +1 -0
  461. package/.next/static/chunks/app/api/verification/runs/route-476063c3571b81dd.js +1 -0
  462. package/.next/static/chunks/app/api/worktrees/[id]/auto-yes/route-476063c3571b81dd.js +1 -0
  463. package/.next/static/chunks/app/api/worktrees/[id]/capture/route-476063c3571b81dd.js +1 -0
  464. package/.next/static/chunks/app/api/worktrees/[id]/clear-composer/route-476063c3571b81dd.js +1 -0
  465. package/.next/static/chunks/app/api/worktrees/[id]/cli-reference/route-476063c3571b81dd.js +1 -0
  466. package/.next/static/chunks/app/api/worktrees/[id]/cli-tool/route-476063c3571b81dd.js +1 -0
  467. package/.next/static/chunks/app/api/worktrees/[id]/cmate/schedules/route-476063c3571b81dd.js +1 -0
  468. package/.next/static/chunks/app/api/worktrees/[id]/current-output/route-476063c3571b81dd.js +1 -0
  469. package/.next/static/chunks/app/api/worktrees/[id]/direct-input/route-476063c3571b81dd.js +1 -0
  470. package/.next/static/chunks/app/api/worktrees/[id]/env/route-476063c3571b81dd.js +1 -0
  471. package/.next/static/chunks/app/api/worktrees/[id]/execution-logs/[logId]/route-476063c3571b81dd.js +1 -0
  472. package/.next/static/chunks/app/api/worktrees/[id]/execution-logs/route-476063c3571b81dd.js +1 -0
  473. package/.next/static/chunks/app/api/worktrees/[id]/files/[...path]/route-476063c3571b81dd.js +1 -0
  474. package/.next/static/chunks/app/api/worktrees/[id]/git/branch/create/route-476063c3571b81dd.js +1 -0
  475. package/.next/static/chunks/app/api/worktrees/[id]/git/branch/delete/route-476063c3571b81dd.js +1 -0
  476. package/.next/static/chunks/app/api/worktrees/[id]/git/branches/route-476063c3571b81dd.js +1 -0
  477. package/.next/static/chunks/app/api/worktrees/[id]/git/checkout/route-476063c3571b81dd.js +1 -0
  478. package/.next/static/chunks/app/api/worktrees/[id]/git/commit/route-476063c3571b81dd.js +1 -0
  479. package/.next/static/chunks/app/api/worktrees/[id]/git/diff/route-476063c3571b81dd.js +1 -0
  480. package/.next/static/chunks/app/api/worktrees/[id]/git/fetch/route-476063c3571b81dd.js +1 -0
  481. package/.next/static/chunks/app/api/worktrees/[id]/git/log/route-476063c3571b81dd.js +1 -0
  482. package/.next/static/chunks/app/api/worktrees/[id]/git/pull/route-476063c3571b81dd.js +1 -0
  483. package/.next/static/chunks/app/api/worktrees/[id]/git/push/route-476063c3571b81dd.js +1 -0
  484. package/.next/static/chunks/app/api/worktrees/[id]/git/reset/route-476063c3571b81dd.js +1 -0
  485. package/.next/static/chunks/app/api/worktrees/[id]/git/revert/route-476063c3571b81dd.js +1 -0
  486. package/.next/static/chunks/app/api/worktrees/[id]/git/show/[commitHash]/route-476063c3571b81dd.js +1 -0
  487. package/.next/static/chunks/app/api/worktrees/[id]/git/stage/route-476063c3571b81dd.js +1 -0
  488. package/.next/static/chunks/app/api/worktrees/[id]/git/staged/route-476063c3571b81dd.js +1 -0
  489. package/.next/static/chunks/app/api/worktrees/[id]/git/stash/[index]/route-476063c3571b81dd.js +1 -0
  490. package/.next/static/chunks/app/api/worktrees/[id]/git/stash/apply/route-476063c3571b81dd.js +1 -0
  491. package/.next/static/chunks/app/api/worktrees/[id]/git/stash/pop/route-476063c3571b81dd.js +1 -0
  492. package/.next/static/chunks/app/api/worktrees/[id]/git/stash/push/route-476063c3571b81dd.js +1 -0
  493. package/.next/static/chunks/app/api/worktrees/[id]/git/stash/route-476063c3571b81dd.js +1 -0
  494. package/.next/static/chunks/app/api/worktrees/[id]/git/status/route-476063c3571b81dd.js +1 -0
  495. package/.next/static/chunks/app/api/worktrees/[id]/git/unstage/route-476063c3571b81dd.js +1 -0
  496. package/.next/static/chunks/app/api/worktrees/[id]/git/working-diff/route-476063c3571b81dd.js +1 -0
  497. package/.next/static/chunks/app/api/worktrees/[id]/instances/notes/route-476063c3571b81dd.js +1 -0
  498. package/.next/static/chunks/app/api/worktrees/[id]/instances/opencode/route-476063c3571b81dd.js +1 -0
  499. package/.next/static/chunks/app/api/worktrees/[id]/instances/roles/route-476063c3571b81dd.js +1 -0
  500. package/.next/static/chunks/app/api/worktrees/[id]/instances/roles/settle/route-476063c3571b81dd.js +1 -0
  501. package/.next/static/chunks/app/api/worktrees/[id]/interrupt/route-476063c3571b81dd.js +1 -0
  502. package/.next/static/chunks/app/api/worktrees/[id]/kill-session/route-476063c3571b81dd.js +1 -0
  503. package/.next/static/chunks/app/api/worktrees/[id]/logs/[filename]/route-476063c3571b81dd.js +1 -0
  504. package/.next/static/chunks/app/api/worktrees/[id]/logs/route-476063c3571b81dd.js +1 -0
  505. package/.next/static/chunks/app/api/worktrees/[id]/marp-render/route-476063c3571b81dd.js +1 -0
  506. package/.next/static/chunks/app/api/worktrees/[id]/memos/[memoId]/route-476063c3571b81dd.js +1 -0
  507. package/.next/static/chunks/app/api/worktrees/[id]/memos/route-476063c3571b81dd.js +1 -0
  508. package/.next/static/chunks/app/api/worktrees/[id]/messages/route-476063c3571b81dd.js +1 -0
  509. package/.next/static/chunks/app/api/worktrees/[id]/opencode/diff/route-476063c3571b81dd.js +1 -0
  510. package/.next/static/chunks/app/api/worktrees/[id]/opencode/session/route-476063c3571b81dd.js +1 -0
  511. package/.next/static/chunks/app/api/worktrees/[id]/opencode/share/route-476063c3571b81dd.js +1 -0
  512. package/.next/static/chunks/app/api/worktrees/[id]/prompt-response/route-476063c3571b81dd.js +1 -0
  513. package/.next/static/chunks/app/api/worktrees/[id]/prompt-response/strict/route-476063c3571b81dd.js +1 -0
  514. package/.next/static/chunks/app/api/worktrees/[id]/resolve-target/route-476063c3571b81dd.js +1 -0
  515. package/.next/static/chunks/app/api/worktrees/[id]/respond/route-476063c3571b81dd.js +1 -0
  516. package/.next/static/chunks/app/api/worktrees/[id]/route-476063c3571b81dd.js +1 -0
  517. package/.next/static/chunks/app/api/worktrees/[id]/schedules/[scheduleId]/route-476063c3571b81dd.js +1 -0
  518. package/.next/static/chunks/app/api/worktrees/[id]/schedules/active/route-476063c3571b81dd.js +1 -0
  519. package/.next/static/chunks/app/api/worktrees/[id]/schedules/route-476063c3571b81dd.js +1 -0
  520. package/.next/static/chunks/app/api/worktrees/[id]/search/route-476063c3571b81dd.js +1 -0
  521. package/.next/static/chunks/app/api/worktrees/[id]/send/route-476063c3571b81dd.js +1 -0
  522. package/.next/static/chunks/app/api/worktrees/[id]/skills/[skillId]/git-workflow/route-476063c3571b81dd.js +1 -0
  523. package/.next/static/chunks/app/api/worktrees/[id]/skills/[skillId]/install/route-476063c3571b81dd.js +1 -0
  524. package/.next/static/chunks/app/api/worktrees/[id]/skills/[skillId]/plan/route-476063c3571b81dd.js +1 -0
  525. package/.next/static/chunks/app/api/worktrees/[id]/skills/[skillId]/uninstall/route-476063c3571b81dd.js +1 -0
  526. package/.next/static/chunks/app/api/worktrees/[id]/skills/[skillId]/uninstall-plan/route-476063c3571b81dd.js +1 -0
  527. package/.next/static/chunks/app/api/worktrees/[id]/skills/[skillId]/update/route-476063c3571b81dd.js +1 -0
  528. package/.next/static/chunks/app/api/worktrees/[id]/skills/[skillId]/update-plan/route-476063c3571b81dd.js +1 -0
  529. package/.next/static/chunks/app/api/worktrees/[id]/skills/route-476063c3571b81dd.js +1 -0
  530. package/.next/static/chunks/app/api/worktrees/[id]/slash-commands/route-476063c3571b81dd.js +1 -0
  531. package/.next/static/chunks/app/api/worktrees/[id]/special-keys/route-476063c3571b81dd.js +1 -0
  532. package/.next/static/chunks/app/api/worktrees/[id]/tasks/route-476063c3571b81dd.js +1 -0
  533. package/.next/static/chunks/app/api/worktrees/[id]/terminal/route-476063c3571b81dd.js +1 -0
  534. package/.next/static/chunks/app/api/worktrees/[id]/timers/history/route-476063c3571b81dd.js +1 -0
  535. package/.next/static/chunks/app/api/worktrees/[id]/timers/route-476063c3571b81dd.js +1 -0
  536. package/.next/static/chunks/app/api/worktrees/[id]/todos/[todoId]/route-476063c3571b81dd.js +1 -0
  537. package/.next/static/chunks/app/api/worktrees/[id]/todos/route-476063c3571b81dd.js +1 -0
  538. package/.next/static/chunks/app/api/worktrees/[id]/tree/[...path]/route-476063c3571b81dd.js +1 -0
  539. package/.next/static/chunks/app/api/worktrees/[id]/tree/route-476063c3571b81dd.js +1 -0
  540. package/.next/static/chunks/app/api/worktrees/[id]/upload/[...path]/route-476063c3571b81dd.js +1 -0
  541. package/.next/static/chunks/app/api/worktrees/[id]/verify/config/route-476063c3571b81dd.js +1 -0
  542. package/.next/static/chunks/app/api/worktrees/[id]/verify/route-476063c3571b81dd.js +1 -0
  543. package/.next/static/chunks/app/api/worktrees/[id]/verify/runs/[runId]/cancel/route-476063c3571b81dd.js +1 -0
  544. package/.next/static/chunks/app/api/worktrees/[id]/verify/runs/[runId]/route-476063c3571b81dd.js +1 -0
  545. package/.next/static/chunks/app/api/worktrees/[id]/verify/runs/route-476063c3571b81dd.js +1 -0
  546. package/.next/static/chunks/app/api/worktrees/[id]/viewed/route-476063c3571b81dd.js +1 -0
  547. package/.next/static/chunks/app/api/worktrees/apply-default-agents/route-476063c3571b81dd.js +1 -0
  548. package/.next/static/chunks/app/api/worktrees/route-476063c3571b81dd.js +1 -0
  549. package/.next/static/chunks/app/layout-7bf800fcc5e025b1.js +1 -0
  550. package/.next/static/chunks/app/manifest.webmanifest/route-476063c3571b81dd.js +1 -0
  551. package/.next/static/chunks/app/more/{page-ff5af5ca48774c89.js → page-e8f5780f6e4fb657.js} +1 -1
  552. package/.next/static/chunks/app/{page-b4863bfe0452e09d.js → page-869f353a4ac4e15b.js} +1 -1
  553. package/.next/static/chunks/app/proxy/[...path]/route-476063c3571b81dd.js +1 -0
  554. package/.next/static/chunks/app/repositories/page-bedb505687010f18.js +1 -0
  555. package/.next/static/chunks/app/review/page-87c4a9b0de50fa80.js +1 -0
  556. package/.next/static/chunks/app/sessions/{page-c6eb7c02db2f4c80.js → page-82ca46793789fce4.js} +1 -1
  557. package/.next/static/chunks/app/worktrees/[id]/layout-476063c3571b81dd.js +1 -0
  558. package/.next/static/chunks/app/worktrees/[id]/page-570eb79fbbd1a934.js +1 -0
  559. package/.next/static/chunks/{webpack-838df0273b03af19.js → webpack-16b1a3143fa42ca0.js} +1 -1
  560. package/.next/static/css/d4f2c9522cf1b449.css +1 -0
  561. package/.next/static/z4d8-5MaLkoD-4EhueZwk/_buildManifest.js +1 -0
  562. package/.next/trace +14 -13
  563. package/.next/types/app/api/repositories/[id]/role-defaults/route.ts +347 -0
  564. package/.next/types/app/api/roles/[id]/route.ts +347 -0
  565. package/.next/types/app/api/roles/route.ts +347 -0
  566. package/.next/types/app/api/settings/agent-role-defaults/route.ts +347 -0
  567. package/.next/types/app/api/worktrees/[id]/instances/roles/route.ts +347 -0
  568. package/.next/types/app/api/worktrees/[id]/instances/roles/settle/route.ts +347 -0
  569. package/.next/types/routes.d.ts +7 -1
  570. package/.next/types/validator.ts +54 -0
  571. package/dist/cli/commands/instances.d.ts +1 -0
  572. package/dist/cli/commands/instances.d.ts.map +1 -1
  573. package/dist/cli/commands/instances.js +290 -33
  574. package/dist/cli/commands/message-dispatch.d.ts +25 -3
  575. package/dist/cli/commands/message-dispatch.d.ts.map +1 -1
  576. package/dist/cli/commands/message-dispatch.js +26 -6
  577. package/dist/cli/commands/relays.d.ts +5 -0
  578. package/dist/cli/commands/relays.d.ts.map +1 -1
  579. package/dist/cli/commands/relays.js +37 -1
  580. package/dist/cli/commands/roles.d.ts +11 -0
  581. package/dist/cli/commands/roles.d.ts.map +1 -0
  582. package/dist/cli/commands/roles.js +392 -0
  583. package/dist/cli/commands/send.d.ts.map +1 -1
  584. package/dist/cli/commands/send.js +526 -38
  585. package/dist/cli/docs/agent-operations.d.ts +1 -1
  586. package/dist/cli/docs/agent-operations.d.ts.map +1 -1
  587. package/dist/cli/docs/agent-operations.js +91 -3
  588. package/dist/cli/index.d.ts +4 -0
  589. package/dist/cli/index.d.ts.map +1 -1
  590. package/dist/cli/index.js +6 -0
  591. package/dist/cli/types/api-responses.d.ts +54 -0
  592. package/dist/cli/types/api-responses.d.ts.map +1 -1
  593. package/dist/cli/types/index.d.ts +38 -0
  594. package/dist/cli/types/index.d.ts.map +1 -1
  595. package/dist/cli/types/index.js +15 -1
  596. package/dist/cli/utils/agent-instances.d.ts +29 -1
  597. package/dist/cli/utils/agent-instances.d.ts.map +1 -1
  598. package/dist/cli/utils/agent-instances.js +67 -7
  599. package/dist/cli/utils/agent-roles.d.ts +75 -0
  600. package/dist/cli/utils/agent-roles.d.ts.map +1 -0
  601. package/dist/cli/utils/agent-roles.js +238 -0
  602. package/dist/cli/utils/api-client-errors.d.ts +23 -1
  603. package/dist/cli/utils/api-client-errors.d.ts.map +1 -1
  604. package/dist/cli/utils/api-client-errors.js +14 -2
  605. package/dist/cli/utils/api-client.d.ts +8 -0
  606. package/dist/cli/utils/api-client.d.ts.map +1 -1
  607. package/dist/cli/utils/api-client.js +13 -1
  608. package/dist/cli/utils/role-failure.d.ts +31 -0
  609. package/dist/cli/utils/role-failure.d.ts.map +1 -0
  610. package/dist/cli/utils/role-failure.js +90 -0
  611. package/dist/cli/utils/role-input.d.ts +16 -0
  612. package/dist/cli/utils/role-input.d.ts.map +1 -0
  613. package/dist/cli/utils/role-input.js +78 -0
  614. package/dist/cli/utils/security-logger.d.ts +17 -0
  615. package/dist/cli/utils/security-logger.d.ts.map +1 -1
  616. package/dist/cli/utils/security-logger.js +44 -5
  617. package/dist/lib/detection/tools/verified-against.d.ts +16 -0
  618. package/dist/lib/detection/tools/verified-against.d.ts.map +1 -1
  619. package/dist/lib/detection/tools/verified-against.js +16 -0
  620. package/dist/lib/session/send-attempt-types.d.ts +4 -0
  621. package/dist/lib/session/send-attempt-types.d.ts.map +1 -1
  622. package/dist/lib/verification/verify-config.d.ts +22 -0
  623. package/dist/lib/verification/verify-config.d.ts.map +1 -1
  624. package/dist/lib/verification/verify-config.js +32 -2
  625. package/dist/server/locales/en/worktree.json +25 -6
  626. package/dist/server/locales/ja/worktree.json +25 -6
  627. package/dist/server/src/config/safe-directory.js +30 -0
  628. package/dist/server/src/lib/agent-roles/adapters.js +174 -0
  629. package/dist/server/src/lib/agent-roles/artifacts.js +638 -0
  630. package/dist/server/src/lib/agent-roles/composition.js +222 -0
  631. package/dist/server/src/lib/agent-roles/fingerprint.js +21 -0
  632. package/dist/server/src/lib/agent-roles/jsonc.js +85 -0
  633. package/dist/server/src/lib/agent-roles/launch-errors.js +58 -0
  634. package/dist/server/src/lib/agent-roles/pane-env.js +63 -0
  635. package/dist/server/src/lib/agent-roles/resolve.js +375 -0
  636. package/dist/server/src/lib/agent-roles/toml-basic.js +140 -0
  637. package/dist/server/src/lib/agent-roles/unicode.js +16 -0
  638. package/dist/server/src/lib/agent-roles/validation.js +61 -0
  639. package/dist/server/src/lib/cli-tools/antigravity.js +39 -6
  640. package/dist/server/src/lib/cli-tools/base.js +63 -5
  641. package/dist/server/src/lib/cli-tools/claude-auto-default-nudge.js +141 -0
  642. package/dist/server/src/lib/cli-tools/claude.js +7 -1
  643. package/dist/server/src/lib/cli-tools/codex.js +134 -21
  644. package/dist/server/src/lib/cli-tools/command-code.js +24 -1
  645. package/dist/server/src/lib/cli-tools/copilot.js +36 -7
  646. package/dist/server/src/lib/cli-tools/gemini.js +37 -3
  647. package/dist/server/src/lib/cli-tools/launch-answer-skips.js +76 -0
  648. package/dist/server/src/lib/cli-tools/opencode-v2.js +10 -0
  649. package/dist/server/src/lib/cli-tools/opencode.js +58 -7
  650. package/dist/server/src/lib/cli-tools/submit-composer-read.js +24 -4
  651. package/dist/server/src/lib/cli-tools/vibe-local.js +25 -1
  652. package/dist/server/src/lib/db/agent-instances-db.js +53 -0
  653. package/dist/server/src/lib/db/agent-roles-db.js +409 -0
  654. package/dist/server/src/lib/db/agent-session-cost-sampler.js +3 -2
  655. package/dist/server/src/lib/db/db-instance.js +7 -37
  656. package/dist/server/src/lib/db/migrations/index.js +4 -0
  657. package/dist/server/src/lib/db/migrations/runner.js +1 -1
  658. package/dist/server/src/lib/db/migrations/v64-agent-roles.js +123 -0
  659. package/dist/server/src/lib/db/migrations/v65-agent-instance-creation-keys.js +42 -0
  660. package/dist/server/src/lib/db/relay-db.js +35 -0
  661. package/dist/server/src/lib/detection/cli-patterns.js +13 -3
  662. package/dist/server/src/lib/detection/model-info-extractor.js +1 -1
  663. package/dist/server/src/lib/detection/tools/claude/patterns.js +76 -0
  664. package/dist/server/src/lib/detection/tools/codex/cli-patterns.js +5 -0
  665. package/dist/server/src/lib/detection/tools/codex/detect.js +5 -1
  666. package/dist/server/src/lib/detection/tools/codex/patterns.js +52 -2
  667. package/dist/server/src/lib/detection/tools/codex/prompt.js +23 -3
  668. package/dist/server/src/lib/detection/tools/opencode/detect.js +30 -15
  669. package/dist/server/src/lib/detection/tools/opencode/patterns.js +268 -7
  670. package/dist/server/src/lib/detection/tools/opencode/readiness.js +16 -7
  671. package/dist/server/src/lib/detection/tools/opencode-v2/detect.js +51 -15
  672. package/dist/server/src/lib/detection/tools/opencode-v2/patterns.js +195 -11
  673. package/dist/server/src/lib/detection/tools/run-detection.js +5 -2
  674. package/dist/server/src/lib/detection/tools/verified-against.js +16 -0
  675. package/dist/server/src/lib/detection/tools/vibe-local/readiness.js +22 -0
  676. package/dist/server/src/lib/git/git-common-dir.js +192 -0
  677. package/dist/server/src/lib/hooks/hook-settings-generator.js +8 -2
  678. package/dist/server/src/lib/hooks/sources/copilot/hook-settings.js +31 -1
  679. package/dist/server/src/lib/hooks/sources/launch-command.js +31 -8
  680. package/dist/server/src/lib/hooks/sources/opencode/client.js +20 -0
  681. package/dist/server/src/lib/hooks/sources/opencode-v2/client.js +24 -0
  682. package/dist/server/src/lib/hooks/sources/opencode-v2/history.js +208 -35
  683. package/dist/server/src/lib/hooks/sources/opencode-v2/secrets.js +7 -1
  684. package/dist/server/src/lib/hooks/sources/opencode-v2/subscription.js +117 -2
  685. package/dist/server/src/lib/job-executor.js +18 -1
  686. package/dist/server/src/lib/polling/response-checker-extraction-steps.js +58 -4
  687. package/dist/server/src/lib/polling/response-checker.js +32 -7
  688. package/dist/server/src/lib/relay/relay-delivery-block.js +150 -0
  689. package/dist/server/src/lib/relay/relay-delivery.js +59 -2
  690. package/dist/server/src/lib/response-cleaner.js +13 -3
  691. package/dist/server/src/lib/response-extractor.js +38 -3
  692. package/dist/server/src/lib/session/agent-session-lifecycle.js +9 -1
  693. package/dist/server/src/lib/session/claude-executor.js +13 -1
  694. package/dist/server/src/lib/session/claude-session.js +109 -13
  695. package/dist/server/src/lib/session/instance-input-lock.js +93 -4
  696. package/dist/server/src/lib/session/role-launch.js +722 -0
  697. package/dist/server/src/lib/session/send-attempt-state.js +7 -0
  698. package/dist/server/src/lib/session/send-user-message.js +6 -0
  699. package/dist/server/src/lib/session/session-generation-archive.js +7 -8
  700. package/dist/server/src/lib/session/session-launch-flight.js +33 -1
  701. package/dist/server/src/lib/session/worktree-session-reconcile.js +5 -0
  702. package/dist/server/src/lib/test-run-detection.js +53 -0
  703. package/dist/server/src/lib/tmux/read-mode.js +4 -0
  704. package/dist/server/src/lib/tmux/session-hook-scripts.js +36 -4
  705. package/dist/server/src/lib/tui-accumulator.js +14 -5
  706. package/dist/server/src/lib/verification/env-clean-gate.js +117 -12
  707. package/dist/server/src/lib/verification/gate-runner.js +9 -8
  708. package/dist/server/src/lib/verification/verify-config.js +32 -2
  709. package/dist/server/src/types/agent-roles.js +56 -0
  710. package/dist/types/agent-roles.d.ts +351 -0
  711. package/dist/types/agent-roles.d.ts.map +1 -0
  712. package/dist/types/agent-roles.js +56 -0
  713. package/docs/en/user-guide/webapp-guide.md +16 -0
  714. package/package.json +2 -1
  715. package/release-notes/0.50.0.json +113 -0
  716. package/.next/server/chunks/1308.js +0 -1
  717. package/.next/server/chunks/4490.js +0 -1
  718. package/.next/server/chunks/4936.js +0 -1
  719. package/.next/server/chunks/610.js +0 -1
  720. package/.next/server/chunks/6119.js +0 -1
  721. package/.next/server/chunks/7491.js +0 -3
  722. package/.next/server/chunks/7926.js +0 -1
  723. package/.next/server/chunks/9360.js +0 -2
  724. package/.next/server/chunks/9584.js +0 -1
  725. package/.next/static/LNfVZiq6FZwKsV7L9Mi6M/_buildManifest.js +0 -1
  726. package/.next/static/chunks/2407-87ec01332344ec2b.js +0 -1
  727. package/.next/static/chunks/344-e1cefd00787060e4.js +0 -1
  728. package/.next/static/chunks/3931-3ef48b8d97357282.js +0 -1
  729. package/.next/static/chunks/7229.7f0f5a7032b612b4.js +0 -1
  730. package/.next/static/chunks/8165-263172c17ae8e8c3.js +0 -1
  731. package/.next/static/chunks/app/api/agents/update/route-96fc12d400b49b13.js +0 -1
  732. package/.next/static/chunks/app/api/agents/versions/route-96fc12d400b49b13.js +0 -1
  733. package/.next/static/chunks/app/api/app/release-notes/route-96fc12d400b49b13.js +0 -1
  734. package/.next/static/chunks/app/api/app/update/route-96fc12d400b49b13.js +0 -1
  735. package/.next/static/chunks/app/api/app/update-check/route-96fc12d400b49b13.js +0 -1
  736. package/.next/static/chunks/app/api/auth/login/route-96fc12d400b49b13.js +0 -1
  737. package/.next/static/chunks/app/api/auth/logout/route-96fc12d400b49b13.js +0 -1
  738. package/.next/static/chunks/app/api/auth/status/route-96fc12d400b49b13.js +0 -1
  739. package/.next/static/chunks/app/api/capabilities/route-96fc12d400b49b13.js +0 -1
  740. package/.next/static/chunks/app/api/daily-summary/route-96fc12d400b49b13.js +0 -1
  741. package/.next/static/chunks/app/api/daily-summary/status/route-96fc12d400b49b13.js +0 -1
  742. package/.next/static/chunks/app/api/external-apps/[id]/health/route-96fc12d400b49b13.js +0 -1
  743. package/.next/static/chunks/app/api/external-apps/[id]/route-96fc12d400b49b13.js +0 -1
  744. package/.next/static/chunks/app/api/external-apps/route-96fc12d400b49b13.js +0 -1
  745. package/.next/static/chunks/app/api/fs/browse/route-96fc12d400b49b13.js +0 -1
  746. package/.next/static/chunks/app/api/fs/recent-paths/route-96fc12d400b49b13.js +0 -1
  747. package/.next/static/chunks/app/api/hooks/agent-event/route-96fc12d400b49b13.js +0 -1
  748. package/.next/static/chunks/app/api/hooks/claude-done/route-96fc12d400b49b13.js +0 -1
  749. package/.next/static/chunks/app/api/hooks/permission-request/route-96fc12d400b49b13.js +0 -1
  750. package/.next/static/chunks/app/api/metrics/vibe/route-96fc12d400b49b13.js +0 -1
  751. package/.next/static/chunks/app/api/ollama/models/route-96fc12d400b49b13.js +0 -1
  752. package/.next/static/chunks/app/api/push/escalation/route-96fc12d400b49b13.js +0 -1
  753. package/.next/static/chunks/app/api/push/subscriptions/route-96fc12d400b49b13.js +0 -1
  754. package/.next/static/chunks/app/api/push/vapid/route-96fc12d400b49b13.js +0 -1
  755. package/.next/static/chunks/app/api/relays/[relayId]/cancel/route-96fc12d400b49b13.js +0 -1
  756. package/.next/static/chunks/app/api/relays/[relayId]/resolve/route-96fc12d400b49b13.js +0 -1
  757. package/.next/static/chunks/app/api/relays/[relayId]/route-96fc12d400b49b13.js +0 -1
  758. package/.next/static/chunks/app/api/relays/route-96fc12d400b49b13.js +0 -1
  759. package/.next/static/chunks/app/api/remote/pair/route-96fc12d400b49b13.js +0 -1
  760. package/.next/static/chunks/app/api/repositories/[id]/route-96fc12d400b49b13.js +0 -1
  761. package/.next/static/chunks/app/api/repositories/clone/[jobId]/route-96fc12d400b49b13.js +0 -1
  762. package/.next/static/chunks/app/api/repositories/clone/route-96fc12d400b49b13.js +0 -1
  763. package/.next/static/chunks/app/api/repositories/excluded/route-96fc12d400b49b13.js +0 -1
  764. package/.next/static/chunks/app/api/repositories/restore/route-96fc12d400b49b13.js +0 -1
  765. package/.next/static/chunks/app/api/repositories/route-96fc12d400b49b13.js +0 -1
  766. package/.next/static/chunks/app/api/repositories/scan/route-96fc12d400b49b13.js +0 -1
  767. package/.next/static/chunks/app/api/repositories/sync/route-96fc12d400b49b13.js +0 -1
  768. package/.next/static/chunks/app/api/repositories/validate-path/route-96fc12d400b49b13.js +0 -1
  769. package/.next/static/chunks/app/api/settings/default-agents/route-96fc12d400b49b13.js +0 -1
  770. package/.next/static/chunks/app/api/settings/default-surface-mode/route-96fc12d400b49b13.js +0 -1
  771. package/.next/static/chunks/app/api/sidebar/group-order/route-96fc12d400b49b13.js +0 -1
  772. package/.next/static/chunks/app/api/skills/[id]/route-96fc12d400b49b13.js +0 -1
  773. package/.next/static/chunks/app/api/skills/installations/route-96fc12d400b49b13.js +0 -1
  774. package/.next/static/chunks/app/api/skills/operations/route-96fc12d400b49b13.js +0 -1
  775. package/.next/static/chunks/app/api/skills/reindex/route-96fc12d400b49b13.js +0 -1
  776. package/.next/static/chunks/app/api/skills/route-96fc12d400b49b13.js +0 -1
  777. package/.next/static/chunks/app/api/slash-commands/route-96fc12d400b49b13.js +0 -1
  778. package/.next/static/chunks/app/api/tasks/[taskId]/cancel/route-96fc12d400b49b13.js +0 -1
  779. package/.next/static/chunks/app/api/tasks/[taskId]/route-96fc12d400b49b13.js +0 -1
  780. package/.next/static/chunks/app/api/templates/[id]/route-96fc12d400b49b13.js +0 -1
  781. package/.next/static/chunks/app/api/templates/route-96fc12d400b49b13.js +0 -1
  782. package/.next/static/chunks/app/api/verification/runs/[runId]/route-96fc12d400b49b13.js +0 -1
  783. package/.next/static/chunks/app/api/verification/runs/route-96fc12d400b49b13.js +0 -1
  784. package/.next/static/chunks/app/api/worktrees/[id]/auto-yes/route-96fc12d400b49b13.js +0 -1
  785. package/.next/static/chunks/app/api/worktrees/[id]/capture/route-96fc12d400b49b13.js +0 -1
  786. package/.next/static/chunks/app/api/worktrees/[id]/clear-composer/route-96fc12d400b49b13.js +0 -1
  787. package/.next/static/chunks/app/api/worktrees/[id]/cli-reference/route-96fc12d400b49b13.js +0 -1
  788. package/.next/static/chunks/app/api/worktrees/[id]/cli-tool/route-96fc12d400b49b13.js +0 -1
  789. package/.next/static/chunks/app/api/worktrees/[id]/cmate/schedules/route-96fc12d400b49b13.js +0 -1
  790. package/.next/static/chunks/app/api/worktrees/[id]/current-output/route-96fc12d400b49b13.js +0 -1
  791. package/.next/static/chunks/app/api/worktrees/[id]/direct-input/route-96fc12d400b49b13.js +0 -1
  792. package/.next/static/chunks/app/api/worktrees/[id]/env/route-96fc12d400b49b13.js +0 -1
  793. package/.next/static/chunks/app/api/worktrees/[id]/execution-logs/[logId]/route-96fc12d400b49b13.js +0 -1
  794. package/.next/static/chunks/app/api/worktrees/[id]/execution-logs/route-96fc12d400b49b13.js +0 -1
  795. package/.next/static/chunks/app/api/worktrees/[id]/files/[...path]/route-96fc12d400b49b13.js +0 -1
  796. package/.next/static/chunks/app/api/worktrees/[id]/git/branch/create/route-96fc12d400b49b13.js +0 -1
  797. package/.next/static/chunks/app/api/worktrees/[id]/git/branch/delete/route-96fc12d400b49b13.js +0 -1
  798. package/.next/static/chunks/app/api/worktrees/[id]/git/branches/route-96fc12d400b49b13.js +0 -1
  799. package/.next/static/chunks/app/api/worktrees/[id]/git/checkout/route-96fc12d400b49b13.js +0 -1
  800. package/.next/static/chunks/app/api/worktrees/[id]/git/commit/route-96fc12d400b49b13.js +0 -1
  801. package/.next/static/chunks/app/api/worktrees/[id]/git/diff/route-96fc12d400b49b13.js +0 -1
  802. package/.next/static/chunks/app/api/worktrees/[id]/git/fetch/route-96fc12d400b49b13.js +0 -1
  803. package/.next/static/chunks/app/api/worktrees/[id]/git/log/route-96fc12d400b49b13.js +0 -1
  804. package/.next/static/chunks/app/api/worktrees/[id]/git/pull/route-96fc12d400b49b13.js +0 -1
  805. package/.next/static/chunks/app/api/worktrees/[id]/git/push/route-96fc12d400b49b13.js +0 -1
  806. package/.next/static/chunks/app/api/worktrees/[id]/git/reset/route-96fc12d400b49b13.js +0 -1
  807. package/.next/static/chunks/app/api/worktrees/[id]/git/revert/route-96fc12d400b49b13.js +0 -1
  808. package/.next/static/chunks/app/api/worktrees/[id]/git/show/[commitHash]/route-96fc12d400b49b13.js +0 -1
  809. package/.next/static/chunks/app/api/worktrees/[id]/git/stage/route-96fc12d400b49b13.js +0 -1
  810. package/.next/static/chunks/app/api/worktrees/[id]/git/staged/route-96fc12d400b49b13.js +0 -1
  811. package/.next/static/chunks/app/api/worktrees/[id]/git/stash/[index]/route-96fc12d400b49b13.js +0 -1
  812. package/.next/static/chunks/app/api/worktrees/[id]/git/stash/apply/route-96fc12d400b49b13.js +0 -1
  813. package/.next/static/chunks/app/api/worktrees/[id]/git/stash/pop/route-96fc12d400b49b13.js +0 -1
  814. package/.next/static/chunks/app/api/worktrees/[id]/git/stash/push/route-96fc12d400b49b13.js +0 -1
  815. package/.next/static/chunks/app/api/worktrees/[id]/git/stash/route-96fc12d400b49b13.js +0 -1
  816. package/.next/static/chunks/app/api/worktrees/[id]/git/status/route-96fc12d400b49b13.js +0 -1
  817. package/.next/static/chunks/app/api/worktrees/[id]/git/unstage/route-96fc12d400b49b13.js +0 -1
  818. package/.next/static/chunks/app/api/worktrees/[id]/git/working-diff/route-96fc12d400b49b13.js +0 -1
  819. package/.next/static/chunks/app/api/worktrees/[id]/instances/notes/route-96fc12d400b49b13.js +0 -1
  820. package/.next/static/chunks/app/api/worktrees/[id]/instances/opencode/route-96fc12d400b49b13.js +0 -1
  821. package/.next/static/chunks/app/api/worktrees/[id]/interrupt/route-96fc12d400b49b13.js +0 -1
  822. package/.next/static/chunks/app/api/worktrees/[id]/kill-session/route-96fc12d400b49b13.js +0 -1
  823. package/.next/static/chunks/app/api/worktrees/[id]/logs/[filename]/route-96fc12d400b49b13.js +0 -1
  824. package/.next/static/chunks/app/api/worktrees/[id]/logs/route-96fc12d400b49b13.js +0 -1
  825. package/.next/static/chunks/app/api/worktrees/[id]/marp-render/route-96fc12d400b49b13.js +0 -1
  826. package/.next/static/chunks/app/api/worktrees/[id]/memos/[memoId]/route-96fc12d400b49b13.js +0 -1
  827. package/.next/static/chunks/app/api/worktrees/[id]/memos/route-96fc12d400b49b13.js +0 -1
  828. package/.next/static/chunks/app/api/worktrees/[id]/messages/route-96fc12d400b49b13.js +0 -1
  829. package/.next/static/chunks/app/api/worktrees/[id]/opencode/diff/route-96fc12d400b49b13.js +0 -1
  830. package/.next/static/chunks/app/api/worktrees/[id]/opencode/session/route-96fc12d400b49b13.js +0 -1
  831. package/.next/static/chunks/app/api/worktrees/[id]/opencode/share/route-96fc12d400b49b13.js +0 -1
  832. package/.next/static/chunks/app/api/worktrees/[id]/prompt-response/route-96fc12d400b49b13.js +0 -1
  833. package/.next/static/chunks/app/api/worktrees/[id]/prompt-response/strict/route-96fc12d400b49b13.js +0 -1
  834. package/.next/static/chunks/app/api/worktrees/[id]/resolve-target/route-96fc12d400b49b13.js +0 -1
  835. package/.next/static/chunks/app/api/worktrees/[id]/respond/route-96fc12d400b49b13.js +0 -1
  836. package/.next/static/chunks/app/api/worktrees/[id]/route-96fc12d400b49b13.js +0 -1
  837. package/.next/static/chunks/app/api/worktrees/[id]/schedules/[scheduleId]/route-96fc12d400b49b13.js +0 -1
  838. package/.next/static/chunks/app/api/worktrees/[id]/schedules/active/route-96fc12d400b49b13.js +0 -1
  839. package/.next/static/chunks/app/api/worktrees/[id]/schedules/route-96fc12d400b49b13.js +0 -1
  840. package/.next/static/chunks/app/api/worktrees/[id]/search/route-96fc12d400b49b13.js +0 -1
  841. package/.next/static/chunks/app/api/worktrees/[id]/send/route-96fc12d400b49b13.js +0 -1
  842. package/.next/static/chunks/app/api/worktrees/[id]/skills/[skillId]/git-workflow/route-96fc12d400b49b13.js +0 -1
  843. package/.next/static/chunks/app/api/worktrees/[id]/skills/[skillId]/install/route-96fc12d400b49b13.js +0 -1
  844. package/.next/static/chunks/app/api/worktrees/[id]/skills/[skillId]/plan/route-96fc12d400b49b13.js +0 -1
  845. package/.next/static/chunks/app/api/worktrees/[id]/skills/[skillId]/uninstall/route-96fc12d400b49b13.js +0 -1
  846. package/.next/static/chunks/app/api/worktrees/[id]/skills/[skillId]/uninstall-plan/route-96fc12d400b49b13.js +0 -1
  847. package/.next/static/chunks/app/api/worktrees/[id]/skills/[skillId]/update/route-96fc12d400b49b13.js +0 -1
  848. package/.next/static/chunks/app/api/worktrees/[id]/skills/[skillId]/update-plan/route-96fc12d400b49b13.js +0 -1
  849. package/.next/static/chunks/app/api/worktrees/[id]/skills/route-96fc12d400b49b13.js +0 -1
  850. package/.next/static/chunks/app/api/worktrees/[id]/slash-commands/route-96fc12d400b49b13.js +0 -1
  851. package/.next/static/chunks/app/api/worktrees/[id]/special-keys/route-96fc12d400b49b13.js +0 -1
  852. package/.next/static/chunks/app/api/worktrees/[id]/tasks/route-96fc12d400b49b13.js +0 -1
  853. package/.next/static/chunks/app/api/worktrees/[id]/terminal/route-96fc12d400b49b13.js +0 -1
  854. package/.next/static/chunks/app/api/worktrees/[id]/timers/history/route-96fc12d400b49b13.js +0 -1
  855. package/.next/static/chunks/app/api/worktrees/[id]/timers/route-96fc12d400b49b13.js +0 -1
  856. package/.next/static/chunks/app/api/worktrees/[id]/todos/[todoId]/route-96fc12d400b49b13.js +0 -1
  857. package/.next/static/chunks/app/api/worktrees/[id]/todos/route-96fc12d400b49b13.js +0 -1
  858. package/.next/static/chunks/app/api/worktrees/[id]/tree/[...path]/route-96fc12d400b49b13.js +0 -1
  859. package/.next/static/chunks/app/api/worktrees/[id]/tree/route-96fc12d400b49b13.js +0 -1
  860. package/.next/static/chunks/app/api/worktrees/[id]/upload/[...path]/route-96fc12d400b49b13.js +0 -1
  861. package/.next/static/chunks/app/api/worktrees/[id]/verify/config/route-96fc12d400b49b13.js +0 -1
  862. package/.next/static/chunks/app/api/worktrees/[id]/verify/route-96fc12d400b49b13.js +0 -1
  863. package/.next/static/chunks/app/api/worktrees/[id]/verify/runs/[runId]/cancel/route-96fc12d400b49b13.js +0 -1
  864. package/.next/static/chunks/app/api/worktrees/[id]/verify/runs/[runId]/route-96fc12d400b49b13.js +0 -1
  865. package/.next/static/chunks/app/api/worktrees/[id]/verify/runs/route-96fc12d400b49b13.js +0 -1
  866. package/.next/static/chunks/app/api/worktrees/[id]/viewed/route-96fc12d400b49b13.js +0 -1
  867. package/.next/static/chunks/app/api/worktrees/apply-default-agents/route-96fc12d400b49b13.js +0 -1
  868. package/.next/static/chunks/app/api/worktrees/route-96fc12d400b49b13.js +0 -1
  869. package/.next/static/chunks/app/layout-b9d8aef70e4f17b2.js +0 -1
  870. package/.next/static/chunks/app/manifest.webmanifest/route-96fc12d400b49b13.js +0 -1
  871. package/.next/static/chunks/app/proxy/[...path]/route-96fc12d400b49b13.js +0 -1
  872. package/.next/static/chunks/app/repositories/page-71f5a5ac29b0370d.js +0 -1
  873. package/.next/static/chunks/app/review/page-ff3efb96fdf9bb4b.js +0 -1
  874. package/.next/static/chunks/app/worktrees/[id]/layout-96fc12d400b49b13.js +0 -1
  875. package/.next/static/chunks/app/worktrees/[id]/page-f6a151304860b549.js +0 -1
  876. package/.next/static/css/c1e307d05daf93b6.css +0 -1
  877. /package/.next/static/{LNfVZiq6FZwKsV7L9Mi6M → z4d8-5MaLkoD-4EhueZwk}/_ssgManifest.js +0 -0
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7090],{17683:(e,t,a)=>{a.d(t,{$2:()=>o,B1:()=>h,CO:()=>m,If:()=>u,NP:()=>d,TR:()=>f,wp:()=>l});var n=a(75676);let s="commandmate.worktree.surfaceMode-",r="commandmate.settings.defaultSurfaceMode",l="/api/settings/default-surface-mode",i="view";function o(e,t){return"".concat(s).concat(e,"-split-").concat(t)}function d(e){return"".concat(s).concat(e,"-mobile")}function c(e){try{let t=window.localStorage.getItem(e);return(0,n.jg)(t)?t:null}catch(e){return null}}function u(e,t){try{window.localStorage.setItem(e,t)}catch(e){}}function m(){try{let{location:e,history:t}=window,a=new URLSearchParams(e.search);if(!a.has(i))return;a.delete(i);let n=a.toString(),s="".concat(e.pathname).concat(n?"?".concat(n):"").concat(e.hash);t.replaceState(t.state,"",s)}catch(e){}}function f(e,t){var a;let s=void 0===t?function(){try{var e=window.location.search;if(!e)return null;try{let t=new URLSearchParams(e).get(i);return(0,n.jg)(t)?t:null}catch(e){return null}}catch(e){return null}}():t;return s?(u(e,s),s):(v||(v=!0,y()),null!=(a=c(e))?a:p())}let x=n.wf,g=new Set;function p(){var e;return null!=(e=c(r))?e:x}function h(e){if(!(0,n.jg)(e))return!1;let t=p()!==e;if(x=e,u(r,e),t)for(let e of g)e();return t}let b=null,j=!1,v=!1;async function y(){return j?p():b||("function"!=typeof fetch?p():b=(async()=>{try{let e=await fetch(l);if(e.ok){let t=await e.json();h(null==t?void 0:t.defaultSurfaceMode),j=!0}}catch(e){}finally{b=null}return p()})())}},24373:(e,t,a)=>{a.d(t,{Lv:()=>l,Rc:()=>r});var n=a(12115),s=a(66966);function r(e){return e.filter(e=>!0===e.isWaitingForResponse)}function l(){let e=(0,s.rC)(),t=null==e?void 0:e.worktrees;return(0,n.useMemo)(()=>{let e=t?r(t):[];return{count:e.length,worktrees:e}},[t])}a(44308)},40823:(e,t,a)=>{a.d(t,{NS:()=>i,V0:()=>o});var n=a(95155),s=a(12115);let r=()=>{},l=(0,s.createContext)({isOpen:!1,open:r,close:r});function i(e){let{children:t}=e,[a,r]=(0,s.useState)(!1),i=(0,s.useCallback)(()=>r(!0),[]),o=(0,s.useCallback)(()=>r(!1),[]),d=(0,s.useMemo)(()=>({isOpen:a,open:i,close:o}),[a,i,o]);return(0,n.jsx)(l.Provider,{value:d,children:t})}function o(){return(0,s.useContext)(l)}},44308:(e,t,a)=>{a.d(t,{$h:()=>u,DR:()=>s,IH:()=>d,Iu:()=>n,Nb:()=>m,SD:()=>r,_d:()=>o,bm:()=>f,ks:()=>i,t7:()=>c,z7:()=>l});let n=7e3,s=["in_review","approval","stalled"],r="in_review",l="filter",i="/review?".concat(l,"=approval");function o(e){return e&&s.includes(e)?e:null}let d=["claude","codex","copilot","antigravity","opencode"],c=1e3,u=5,m=100,f=1e3},72604:(e,t,a)=>{a.d(t,{dS:()=>c,rM:()=>u});var n=a(12115),s=a(20063),r=a(18955),l=a(94442),i=a(66966),o=a(60199),d=a(81978);function c(e,t,a){return"".concat(e,"|").concat(null!=t?t:"-","|").concat(null!=a?a:"no-since")}function u(){let e=(0,r.c)("notifications"),{showToast:t}=(0,l.dj)(),{addListener:a}=(0,o.xM)(),{enabled:u}=(0,d.qG)(),m=(0,s.usePathname)(),f=(0,s.useRouter)(),x=(0,i.rC)(),g=(0,n.useRef)({enabled:u,pathname:m,worktrees:null==x?void 0:x.worktrees,showToast:t,t:e,router:f});g.current={enabled:u,pathname:m,worktrees:null==x?void 0:x.worktrees,showToast:t,t:e,router:f};let p=(0,n.useRef)(new Set);return(0,n.useEffect)(()=>a(e=>{var t,a,n,s,r;if("session_status_changed"!==e.type)return;let l=e.worktreeId;if("string"!=typeof l||0===l.length)return;let i=e.isWaitingForResponse;if("boolean"!=typeof i)return;let o=null!=(n=e.instance)?n:null,d=null!=(s=e.waitingSince)?s:null;if(!i){let e="".concat(l,"|").concat(null!=o?o:"-","|");for(let t of p.current)t.startsWith(e)&&p.current.delete(t);return}let u=g.current;if(!u.enabled||function(e){if(!e)return null;let t=/^\/worktrees\/([^/]+)/.exec(e);if(!t)return null;try{return decodeURIComponent(t[1])}catch(e){return t[1]}}(u.pathname)===l)return;let m=c(l,o,d);if(p.current.has(m))return;p.current.size>=500&&p.current.clear(),p.current.add(m);let f=null!=(r=null==(a=u.worktrees)||null==(t=a.find(e=>e.id===l))?void 0:t.name)?r:l;u.showToast(u.t("inApp.waitingToast",{name:f}),"warning",8e3,{onClick:()=>u.router.push("/worktrees/".concat(encodeURIComponent(l)))})}),[a]),null}},75676:(e,t,a)=>{a.d(t,{jg:()=>r,kQ:()=>l,mR:()=>d,mS:()=>o,wf:()=>n});let n="terminal",s=new Set(["terminal","chat"]);function r(e){return"string"==typeof e&&s.has(e)}let l={data:null,messageId:null,visible:!1,answering:!1},i={mode:"split",mobileActivePane:"terminal",leftPaneTab:"history",splitRatio:.5,leftPaneCollapsed:!1,activityBar:{active:"files"},historyPane:{visible:!0,width:25,collapsed:!1}},o={type:null,message:null,retryable:!1,retryCount:0};function d(){return{phase:"idle",prompt:{...l},layout:{...i},error:{...o},messages:[],wsConnected:!1}}},77090:(e,t,a)=>{a.d(t,{uN:()=>C,gZ:()=>ex,O3:()=>ed});var n=a(95155),s=a(12115),r=a(18955),l=a(5917),i=a(20562),o=a(8803),d=a(65229),c=a(6191),u=a(48407),m=a(54014),f=a(55449);function x(e){return!!e&&"object"==typeof e&&Array.isArray(e.defaultSelectedAgents)&&e.defaultSelectedAgents.length>0&&Array.isArray(e.available)&&e.available.length>0&&"number"==typeof e.minAgents&&"number"==typeof e.maxAgents}function g(){var e;let t=(0,r.c)("common"),[a,g]=(0,s.useState)(null),[p,h]=(0,s.useState)([]),[b,j]=(0,s.useState)(!0),[v,y]=(0,s.useState)("idle"),[N,w]=(0,s.useState)(null),k=(0,s.useCallback)(async()=>{try{let e=await fetch("".concat(f.zk,"?include=installed"));if(!e.ok)throw Error(String(e.status));let t=await e.json();if(!x(t))throw Error("unexpected body");g(t),h(t.defaultSelectedAgents),(0,f.IK)(t.defaultSelectedAgents)}catch(e){w(t("settings.defaultAgents.loadError"))}finally{j(!1)}},[t]);(0,s.useEffect)(()=>{k()},[k]);let C=(0,s.useCallback)(e=>{h(e),y("idle"),w(null)},[]),S=(0,s.useCallback)((e,t)=>{let a=e+t;if(a<0||a>=p.length)return;let n=[...p];[n[e],n[a]]=[n[a],n[e]],C(n)},[p,C]),A=(0,s.useCallback)(async e=>{y("saving"),w(null);try{let n=await fetch(f.zk,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({agents:e})}),s=await n.json().catch(()=>null);if(!n.ok||!x(s)){var a;y("error"),w(null!=(a=null==s?void 0:s.error)?a:t("settings.defaultAgents.saveError"));return}g(e=>({...s,installed:null==e?void 0:e.installed})),h(s.defaultSelectedAgents),(0,f.IK)(s.defaultSelectedAgents),y("saved")}catch(e){y("error"),w(t("settings.defaultAgents.saveError"))}},[t]);if(b)return(0,n.jsx)(u.Zp,{children:(0,n.jsxs)("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[(0,n.jsx)(u.y$,{size:"sm"}),t("loadingPage")]})});if(!a)return(0,n.jsx)(u.Zp,{children:(0,n.jsx)("div",{className:"text-sm text-danger-foreground","data-testid":"default-agents-load-error",children:null!=N?N:t("settings.defaultAgents.loadError")})});let E=null!=(e=a.installed)?e:[],T=a.available.filter(e=>!p.includes(e)),R=p.length<a.minAgents,P=p.length>a.maxAgents,I=!R&&!P&&"saving"!==v,M=e=>E.includes(e)?(0,n.jsxs)("span",{className:"inline-flex items-center gap-1 rounded bg-success-subtle px-1.5 py-0.5 text-xs text-success-foreground","data-testid":"default-agents-installed-".concat(e),children:[(0,n.jsx)(l.A,{className:"h-3 w-3","aria-hidden":"true"}),t("settings.defaultAgents.installed")]}):(0,n.jsx)("span",{className:"text-xs text-muted-foreground",children:t("settings.defaultAgents.notInstalled")});return(0,n.jsx)(u.Zp,{children:(0,n.jsxs)("div",{className:"space-y-4","data-testid":"default-agents-settings",children:[(0,n.jsxs)("div",{children:[(0,n.jsx)("div",{className:"text-sm font-medium text-foreground",children:t("settings.defaultAgents.title")}),(0,n.jsx)("p",{className:"mt-1 text-xs text-muted-foreground",children:t("settings.defaultAgents.description")}),(0,n.jsx)("p",{className:"mt-1 text-xs text-muted-foreground",children:t("settings.defaultAgents.appliesToNew")}),E.includes("opencode")&&E.includes("opencode-v2")&&(0,n.jsx)("p",{className:"mt-1 text-xs text-warning-foreground","data-testid":"default-agents-opencode-shared-data",children:t("settings.defaultAgents.opencodeSharedData")})]}),(0,n.jsx)("ul",{className:"space-y-2","data-testid":"default-agents-selected",children:p.map((e,s)=>(0,n.jsxs)("li",{className:"flex items-center gap-2 rounded-md border border-border bg-surface px-3 py-2","data-testid":"default-agents-row-".concat(e),children:[(0,n.jsx)("span",{className:"w-6 text-xs text-muted-foreground",children:s+1}),(0,n.jsx)("span",{className:"text-sm text-foreground",children:(0,m.oo)(e)}),0===s&&(0,n.jsx)("span",{className:"rounded bg-info-subtle px-1.5 py-0.5 text-xs text-info-foreground","data-testid":"default-agents-primary-badge",children:t("settings.defaultAgents.primary")}),(0,n.jsx)("span",{className:"ml-auto",children:M(e)}),(0,n.jsx)("button",{type:"button",className:"rounded p-1 text-muted-foreground hover:bg-muted disabled:opacity-40",onClick:()=>S(s,-1),disabled:0===s,"aria-label":t("settings.defaultAgents.moveUp"),"data-testid":"default-agents-up-".concat(e),children:(0,n.jsx)(i.A,{className:"h-4 w-4","aria-hidden":"true"})}),(0,n.jsx)("button",{type:"button",className:"rounded p-1 text-muted-foreground hover:bg-muted disabled:opacity-40",onClick:()=>S(s,1),disabled:s===p.length-1,"aria-label":t("settings.defaultAgents.moveDown"),"data-testid":"default-agents-down-".concat(e),children:(0,n.jsx)(o.A,{className:"h-4 w-4","aria-hidden":"true"})}),(0,n.jsx)("button",{type:"button",className:"rounded p-1 text-muted-foreground hover:bg-muted disabled:opacity-40",onClick:()=>C(p.filter(t=>t!==e)),disabled:p.length<=a.minAgents,"aria-label":t("settings.defaultAgents.remove"),"data-testid":"default-agents-remove-".concat(e),children:(0,n.jsx)(d.A,{className:"h-4 w-4","aria-hidden":"true"})})]},e))}),T.length>0&&(0,n.jsxs)("div",{children:[(0,n.jsx)("div",{className:"mb-2 text-xs text-muted-foreground",children:t("settings.defaultAgents.addLabel")}),(0,n.jsx)("ul",{className:"space-y-2","data-testid":"default-agents-available",children:T.map(e=>(0,n.jsxs)("li",{className:"flex items-center gap-2 rounded-md border border-border px-3 py-2",children:[(0,n.jsx)("span",{className:"text-sm text-foreground",children:(0,m.oo)(e)}),(0,n.jsx)("span",{className:"ml-auto",children:M(e)}),(0,n.jsx)("button",{type:"button",className:"rounded p-1 text-muted-foreground hover:bg-muted disabled:opacity-40",onClick:()=>C([...p,e]),disabled:p.length>=a.maxAgents,"aria-label":t("settings.defaultAgents.add"),"data-testid":"default-agents-add-".concat(e),children:(0,n.jsx)(c.A,{className:"h-4 w-4","aria-hidden":"true"})})]},e))})]}),(R||P)&&(0,n.jsx)("div",{className:"text-xs text-danger-foreground","data-testid":"default-agents-range-error",children:t("settings.defaultAgents.range",{min:a.minAgents,max:a.maxAgents})}),N&&(0,n.jsx)("div",{className:"text-xs text-danger-foreground","data-testid":"default-agents-error",children:N}),(0,n.jsxs)("div",{className:"flex items-center gap-2",children:[(0,n.jsx)(u.$n,{size:"sm",onClick:()=>void A(p),disabled:!I,"data-testid":"default-agents-save",children:"saving"===v?t("settings.defaultAgents.saving"):t("settings.defaultAgents.save")}),(0,n.jsx)(u.$n,{size:"sm",variant:"ghost",onClick:()=>void A(null),disabled:!a.configured||"saving"===v,"data-testid":"default-agents-reset",children:t("settings.defaultAgents.reset")}),(0,n.jsx)("span",{className:"text-xs text-muted-foreground","data-testid":"default-agents-state",children:"saved"===v?t("settings.defaultAgents.saved"):a.configured?t("settings.defaultAgents.configured"):t("settings.defaultAgents.usingBuiltIn")})]}),a.configured&&(0,n.jsx)("div",{className:"text-xs text-muted-foreground","data-testid":"default-agents-builtin",children:t("settings.defaultAgents.builtIn",{agents:a.constantDefault.map(m.oo).join(", ")})})]})})}var p=a(17683),h=a(75676);function b(e){return!!e&&"object"==typeof e&&(0,h.jg)(e.defaultSurfaceMode)&&(0,h.jg)(e.constantDefault)&&Array.isArray(e.available)&&e.available.length>0&&e.available.every(h.jg)}function j(){var e;let t=(0,r.c)("common"),[a,l]=(0,s.useState)(null),[i,o]=(0,s.useState)(!0),[d,c]=(0,s.useState)("idle"),[m,f]=(0,s.useState)(null),x=(0,s.useCallback)(async()=>{try{let e=await fetch(p.wp);if(!e.ok)throw Error(String(e.status));let t=await e.json();if(!b(t))throw Error("unexpected body");l(t),(0,p.B1)(t.defaultSurfaceMode)}catch(e){f({kind:"load"})}finally{o(!1)}},[]);(0,s.useEffect)(()=>{x()},[x]);let g=(0,s.useCallback)(async e=>{c("saving"),f(null),l(t=>t?{...t,defaultSurfaceMode:e}:t);try{let t=await fetch(p.wp,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({mode:e})}),a=await t.json().catch(()=>null);if(!t.ok||!b(a)){c("error"),f({kind:"save",detail:null==a?void 0:a.error}),x();return}l(a),(0,p.B1)(a.defaultSurfaceMode),c("saved")}catch(e){c("error"),f({kind:"save"}),x()}},[x]),h=m?null!=(e=m.detail)?e:t("load"===m.kind?"settings.defaultSurfaceMode.loadError":"settings.defaultSurfaceMode.saveError"):null;return i?(0,n.jsx)(u.Zp,{children:(0,n.jsxs)("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[(0,n.jsx)(u.y$,{size:"sm"}),t("loadingPage")]})}):a?(0,n.jsx)(u.Zp,{children:(0,n.jsxs)("div",{className:"space-y-4","data-testid":"default-surface-mode-settings",children:[(0,n.jsxs)("div",{children:[(0,n.jsx)("div",{className:"text-sm font-medium text-foreground",children:t("settings.defaultSurfaceMode.title")}),(0,n.jsx)("p",{className:"mt-1 text-xs text-muted-foreground",children:t("settings.defaultSurfaceMode.description")}),(0,n.jsx)("p",{className:"mt-1 text-xs text-muted-foreground",children:t("settings.defaultSurfaceMode.appliesToNew")})]}),(0,n.jsx)("div",{role:"radiogroup","aria-label":t("settings.defaultSurfaceMode.title"),className:"space-y-2","data-selected":a.defaultSurfaceMode,children:a.available.map(e=>(0,n.jsxs)("label",{className:"flex cursor-pointer items-start gap-2 rounded-md border border-border bg-surface px-3 py-2","data-testid":"default-surface-mode-option-".concat(e),children:[(0,n.jsx)("input",{type:"radio",name:"default-surface-mode",value:e,className:"mt-0.5",checked:a.defaultSurfaceMode===e,disabled:"saving"===d,onChange:()=>void g(e),"data-testid":"default-surface-mode-radio-".concat(e)}),(0,n.jsxs)("span",{children:[(0,n.jsx)("span",{className:"block text-sm text-foreground",children:t("settings.defaultSurfaceMode.mode.".concat(e))}),(0,n.jsx)("span",{className:"block text-xs text-muted-foreground",children:t("settings.defaultSurfaceMode.hint.".concat(e))})]})]},e))}),h&&(0,n.jsx)("div",{className:"text-xs text-danger-foreground","data-testid":"default-surface-mode-error",children:h}),(0,n.jsx)("div",{className:"text-xs text-muted-foreground","data-testid":"default-surface-mode-state",children:"saving"===d?t("settings.defaultSurfaceMode.saving"):"saved"===d?t("settings.defaultSurfaceMode.saved"):a.configured?t("settings.defaultSurfaceMode.configured"):t("settings.defaultSurfaceMode.usingBuiltIn")})]})}):(0,n.jsx)(u.Zp,{children:(0,n.jsx)("div",{className:"text-sm text-danger-foreground","data-testid":"default-surface-mode-load-error",children:null!=h?h:t("settings.defaultSurfaceMode.loadError")})})}var v=a(68695),y=a(52056),N=a(48314);function w(e){let t=e.trim();if(!t)return null;try{let e=JSON.parse(t);if(!e||"object"!=typeof e)return null;let a=e.type;if("plan"!==a&&"output"!==a&&"done"!==a)return null;return e}catch(e){return null}}var k=a(73372);function C(e){var t,a,l;let{worktreeId:i,instances:o,variant:d="card"}=e,c=(0,r.c)("common"),{versions:f,isLoading:x,loadError:g,run:p,isUpdating:h,update:b}=function(){let e=!(arguments.length>0)||void 0===arguments[0]||arguments[0],[t,a]=(0,s.useState)(null),[n,r]=(0,s.useState)(!1),[l,i]=(0,s.useState)(e),[o,d]=(0,s.useState)(null),[c,u]=(0,s.useState)(!1),m=(0,s.useRef)(!0);(0,s.useEffect)(()=>(m.current=!0,()=>{m.current=!1}),[]);let f=(0,s.useCallback)(async function(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(e){i(!0);try{let e=await fetch("/api/agents/versions".concat(t?"?refresh=1":""));if(!e.ok)throw Error(String(e.status));let n=await e.json();if(!(n&&"object"==typeof n&&Array.isArray(n.tools)&&Array.isArray(n.updatable)))throw Error("unexpected body");if(!m.current)return;a(n.tools),r(!1)}catch(e){if(!m.current)return;r(!0)}finally{m.current&&i(!1)}}},[e]);(0,s.useEffect)(()=>{f(!1)},[f]);let x=(0,s.useCallback)(async e=>{if(c)return;u(!0),d({tool:e,command:null,output:"",ok:null,previousVersion:null,installed:null,error:null});let t=e=>{m.current&&d(t=>t?{...t,ok:!1,error:e}:t)};try{var a,n;let s=await fetch("/api/agents/update",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({tool:e})});if(!s.ok||!s.body){let e=await s.json().catch(()=>null);t(null!=(a=null==e?void 0:e.error)?a:"Request failed (".concat(s.status,")"));return}let r=s.body.getReader(),l=new TextDecoder,i="",o=e=>{m.current&&d(t=>{var a;return t?"plan"===e.type?{...t,command:e.command}:"output"===e.type?{...t,output:t.output+e.text}:{...t,ok:e.ok,previousVersion:e.previousVersion,installed:e.installed,error:null!=(a=e.error)?a:null}:t})};for(;;){let{done:e,value:t}=await r.read();if(e)break;let a=(i+=l.decode(t,{stream:!0})).split("\n");for(let e of(i=null!=(n=a.pop())?n:"",a)){let t=w(e);t&&o(t)}}let c=w(i);c&&o(c)}catch(e){t(e instanceof Error?e.message:String(e))}finally{m.current&&u(!1),await f(!0)}},[c,f]);return{versions:t,isLoading:l,loadError:n,run:o,isUpdating:c,reload:f,update:x}}(!0),[j,C]=(0,s.useState)(0),S=function(e,t,a){let[n,r]=(0,s.useState)({});return(0,s.useEffect)(()=>{if(!e||!t||0===t.length)return void r({});let a=!1;return(async()=>{try{let t=await fetch("/api/worktrees/".concat(e));if(!t.ok)return;let n=await t.json();if(a)return;let s=n.sessionStatusByInstance,l={};for(let[e,t]of Object.entries(null!=s?s:{}))(null==t?void 0:t.isRunning)&&(l[e]=!0);r(l)}catch(e){}})(),()=>{a=!0}},[e,t,a]),n}(i,o,j),[A,E]=(0,s.useState)({}),[T,R]=(0,s.useState)({}),[P,I]=(0,s.useState)(null),[M,O]=(0,s.useState)(null);(0,s.useEffect)(()=>{O(e=>null===e||S[e]?e:null)},[S]);let U=(0,s.useRef)(null);(0,s.useEffect)(()=>{U.current&&(U.current.scrollTop=U.current.scrollHeight)},[null==p?void 0:p.output]);let L=(null==p?void 0:p.ok)===!0;(0,s.useEffect)(()=>{L&&(C(e=>e+1),E({}))},[L]);let D=(0,s.useRef)(i);D.current=i,(0,s.useEffect)(()=>{E({}),R({}),I(null),O(null)},[i]);let z=(0,s.useCallback)(e=>(null!=o?o:[]).filter(t=>t.cliTool===e&&S[t.id]),[o,S]),Z=(0,s.useCallback)(async e=>{if(!i)return;I(null),O(null),R(t=>({...t,[e.id]:!0}));let t=new AbortController,a=setTimeout(()=>t.abort(),15e3),n="ended";try{let a=new URLSearchParams({cliTool:e.cliTool,instance:e.id}),s=await fetch("/api/worktrees/".concat(i,"/kill-session?").concat(a.toString()),{method:"POST",signal:t.signal});s.ok||404===s.status||(n=s.status<500?"refused":"errored")}catch(e){n="silent"}finally{clearTimeout(a)}if(D.current===i){if("errored"===n||"silent"===n){let t=await (0,k.IR)(i);if(D.current!==i)return;null===t?I(c("agentUpdates.restartUnknown")):!0===t[e.id]?"errored"===n?I(c("agentUpdates.restartError")):O(e.id):n="ended",C(e=>e+1)}else"refused"===n&&I(c("agentUpdates.restartError"));"ended"===n&&(E(t=>({...t,[e.id]:!0})),C(e=>e+1)),R(t=>({...t,[e.id]:!1}))}},[i,c]),$=x&&!f?(0,n.jsxs)("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[(0,n.jsx)(u.y$,{size:"sm"}),c("loadingPage")]}):g&&!f?(0,n.jsx)("div",{className:"text-sm text-danger-foreground","data-testid":"agent-updates-load-error",children:c("agentUpdates.loadError")}):(0,n.jsxs)("div",{className:"space-y-3","data-testid":"agent-updates",children:[(0,n.jsxs)("div",{children:[(0,n.jsx)("div",{className:"text-sm font-medium text-foreground",children:c("agentUpdates.title")}),(0,n.jsx)("p",{className:"mt-1 text-xs text-muted-foreground",children:c("agentUpdates.description")})]}),(0,n.jsx)("ul",{className:"space-y-2","data-testid":"agent-updates-rows",children:(null!=f?f:[]).map(e=>{var t,a;let s=z(e.tool),r=(null!=o?o:[]).filter(t=>t.cliTool===e.tool&&(S[t.id]||A[t.id])),l=e.updatable&&null!==e.installed;return(0,n.jsxs)("li",{className:"rounded-md border border-border bg-surface px-3 py-2","data-testid":"agent-updates-row-".concat(e.tool),children:[(0,n.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,n.jsx)("span",{className:"text-sm text-foreground",children:(a=e.tool,(0,m.oo)(a)||a)}),(0,n.jsx)("span",{className:"text-xs text-muted-foreground","data-testid":"agent-updates-installed-".concat(e.tool),children:e.installed?c("agentUpdates.installed",{version:e.installed}):c("agentUpdates.notInstalled")}),e.updateAvailable&&(0,n.jsx)("span",{className:"rounded bg-info-subtle px-1.5 py-0.5 text-xs text-info-foreground","data-testid":"agent-updates-available-".concat(e.tool),children:c("agentUpdates.available",{version:null!=(t=e.latestVersion)?t:""})}),e.dismissedInCodex&&(0,n.jsx)("span",{className:"text-xs text-muted-foreground","data-testid":"agent-updates-dismissed-".concat(e.tool),children:c("agentUpdates.dismissed")}),l&&(0,n.jsxs)(u.$n,{size:"sm",className:"ml-auto",disabled:h,onClick:()=>void b(e.tool),"data-testid":"agent-updates-update-".concat(e.tool),children:[(0,n.jsx)(v.A,{className:"h-4 w-4","aria-hidden":"true"}),h&&(null==p?void 0:p.tool)===e.tool?c("agentUpdates.updating"):c("agentUpdates.update")]})]}),l&&s.length>0&&(0,n.jsxs)("div",{className:"mt-2 flex items-start gap-1 text-xs text-warning-foreground","data-testid":"agent-updates-restart-warning-".concat(e.tool),children:[(0,n.jsx)(y.A,{className:"mt-0.5 h-3 w-3 shrink-0","aria-hidden":"true"}),(0,n.jsx)("span",{children:c("agentUpdates.restartWarning",{sessions:s.map(e=>e.alias).join(", ")})})]}),l&&0===s.length&&void 0===i&&(0,n.jsx)("p",{className:"mt-2 text-xs text-muted-foreground","data-testid":"agent-updates-restart-notice-".concat(e.tool),children:c("agentUpdates.restartNotice")}),L&&(null==p?void 0:p.tool)===e.tool&&r.map(e=>(0,n.jsxs)("div",{className:"mt-2 flex items-center gap-2",children:[S[e.id]&&(0,n.jsxs)(u.$n,{size:"sm",variant:"ghost",disabled:A[e.id]||T[e.id],onClick:()=>void Z(e),"data-testid":"agent-updates-restart-".concat(e.id),children:[(0,n.jsx)(N.A,{className:"h-4 w-4","aria-hidden":"true"}),c("agentUpdates.restart",{alias:e.alias})]}),A[e.id]&&(0,n.jsxs)("span",{className:"text-xs text-muted-foreground","data-testid":"agent-updates-restarted-".concat(e.id),children:[(0,n.jsx)("span",{className:"font-medium text-foreground",children:e.alias})," ",(0,n.jsx)("span",{children:c("agentUpdates.restarted")})]})]},e.id))]},e.tool)})}),p&&(0,n.jsxs)("div",{className:"space-y-2","data-testid":"agent-updates-run",children:[p.command&&(0,n.jsx)("div",{className:"text-xs text-muted-foreground","data-testid":"agent-updates-command",children:c("agentUpdates.running",{command:p.command})}),p.output&&(0,n.jsx)("pre",{ref:U,"data-testid":"agent-updates-output",className:"max-h-48 overflow-auto whitespace-pre-wrap rounded-md bg-terminal-surface p-2 text-xs text-terminal-foreground",children:p.output}),!0===p.ok&&(0,n.jsx)("div",{className:"text-xs text-success-foreground","data-testid":"agent-updates-success",children:c("agentUpdates.succeeded",{from:null!=(t=p.previousVersion)?t:"?",to:null!=(a=p.installed)?a:"?"})}),!1===p.ok&&(0,n.jsx)("div",{className:"text-xs text-danger-foreground","data-testid":"agent-updates-failure",children:c("agentUpdates.failed",{error:null!=(l=p.error)?l:""})})]}),null!==M&&(0,n.jsx)("div",{className:"text-xs text-warning-foreground",role:"status","data-testid":"agent-updates-restart-progress",children:c("agentUpdates.restartInProgress")}),P&&(0,n.jsx)("div",{className:"text-xs text-danger-foreground","data-testid":"agent-updates-restart-error",children:P})]});return"plain"===d?$:(0,n.jsx)(u.Zp,{children:$})}var S=a(52619),A=a.n(S),E=a(83285);function T(e){var t;let{appId:a,pollInterval:l=3e4,showResponseTime:i=!1,compact:o=!1}=e,d=(0,r.c)("externalApps"),[c,u]=(0,s.useState)(null),[m,f]=(0,s.useState)(!0),x=(0,s.useCallback)(async e=>{let t;try{let e=await fetch("/api/external-apps/".concat(a,"/health"));t=e.ok?await e.json():{id:a,healthy:!1,lastChecked:Date.now(),error:"Failed to check health"}}catch(e){t={id:a,healthy:!1,lastChecked:Date.now(),error:"Network error"}}e()&&(u(t),f(!1))},[a]);if((0,E.v)(x,l),m)return(0,n.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,n.jsx)("span",{className:"inline-block h-2.5 w-2.5 rounded-full bg-muted-foreground animate-pulse"}),!o&&(0,n.jsx)("span",{className:"text-xs text-muted-foreground",children:d("status.checking")})]});let g=null!=(t=null==c?void 0:c.healthy)&&t,p=g?"bg-success":"bg-muted-foreground",h=d(g?"status.running":"status.stopped");return o?(0,n.jsx)("span",{className:"inline-block h-2.5 w-2.5 rounded-full ".concat(p),title:h}):(0,n.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,n.jsx)("span",{className:"inline-block h-2.5 w-2.5 rounded-full ".concat(p)}),(0,n.jsx)("span",{className:"text-xs ".concat(g?"text-success-foreground":"text-muted-foreground"),children:h}),i&&(null==c?void 0:c.responseTime)!==void 0&&(0,n.jsxs)("span",{className:"text-xs text-muted-foreground",children:["(",c.responseTime,"ms)"]})]})}function R(e){var t;let{app:a,onEdit:l,onDelete:i}=e,o=(0,r.c)("externalApps"),d=(0,r.c)("common"),[c,m]=(0,s.useState)(!1),[f,x]=(0,s.useState)(!1),g=async()=>{x(!0);try{await i(a.id)}finally{x(!1),m(!1)}},p="/proxy/".concat(a.pathPrefix,"/");return(0,n.jsxs)(u.Zp,{padding:"md",className:"relative",children:[(0,n.jsxs)("div",{className:"flex items-start justify-between mb-3",children:[(0,n.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,n.jsx)("h4",{className:"text-base font-semibold text-foreground truncate",children:a.displayName}),(0,n.jsx)("p",{className:"text-xs text-muted-foreground mt-0.5 font-mono truncate",children:a.name})]}),(0,n.jsx)(u.Ex,{variant:{sveltekit:"warning",streamlit:"error",nextjs:"info",other:"gray"}[a.appType]||"gray",children:{sveltekit:"SvelteKit",streamlit:"Streamlit",nextjs:"Next.js",other:"Other"}[t=a.appType]||t})]}),(0,n.jsxs)("div",{className:"space-y-2 mb-4",children:[(0,n.jsxs)("div",{className:"flex items-center justify-between",children:[(0,n.jsx)("span",{className:"text-sm text-muted-foreground",children:o("card.status")}),(0,n.jsx)(T,{appId:a.id,pollInterval:3e4})]}),(0,n.jsxs)("div",{className:"flex items-center justify-between",children:[(0,n.jsx)("span",{className:"text-sm text-muted-foreground",children:o("card.port")}),(0,n.jsxs)("span",{className:"text-sm font-mono text-foreground",children:[":",a.targetPort]})]}),(0,n.jsxs)("div",{className:"flex items-center justify-between",children:[(0,n.jsx)("span",{className:"text-sm text-muted-foreground",children:o("card.path")}),(0,n.jsxs)("span",{className:"text-sm font-mono text-foreground truncate max-w-[150px]",children:["/proxy/",a.pathPrefix,"/"]})]}),a.websocketEnabled&&(0,n.jsxs)("div",{className:"flex items-center justify-between",children:[(0,n.jsx)("span",{className:"text-sm text-muted-foreground",children:o("card.websocket")}),(0,n.jsx)(u.Ex,{variant:"info",children:o("card.enabled")})]}),!a.enabled&&(0,n.jsx)("div",{className:"mt-2 py-1 px-2 bg-warning-subtle border border-warning-border rounded text-xs text-warning-foreground",children:o("card.disabledNotice")})]}),c?(0,n.jsxs)("div",{className:"space-y-2",children:[(0,n.jsx)("p",{className:"text-sm text-muted-foreground",children:o("card.deleteConfirm",{name:a.displayName})}),(0,n.jsxs)("div",{className:"flex gap-2",children:[(0,n.jsx)(u.$n,{variant:"danger",size:"sm",onClick:g,disabled:f,loading:f,children:o("card.delete")}),(0,n.jsx)(u.$n,{variant:"ghost",size:"sm",onClick:()=>m(!1),disabled:f,children:d("cancel")})]})]}):(0,n.jsxs)("div",{className:"flex gap-2 flex-wrap",children:[(0,n.jsx)(u.$n,{variant:"primary",size:"sm",onClick:()=>window.open(p,"_blank"),disabled:!a.enabled,children:o("card.open")}),(0,n.jsx)(u.$n,{variant:"secondary",size:"sm",onClick:()=>l(a),children:o("card.settings")}),(0,n.jsx)(u.$n,{variant:"ghost",size:"sm",onClick:()=>m(!0),className:"text-danger-foreground hover:bg-danger-subtle",children:o("card.delete")})]})]})}var P=a(87531);let I={MIN:1024,MAX:65535},M=/^[a-zA-Z0-9-]+$/,O={sveltekit:"SvelteKit",streamlit:"Streamlit",nextjs:"Next.js",other:"Other"},U=["sveltekit","streamlit","nextjs","other"].map(e=>({value:e,label:O[e]}));function L(e){let{isOpen:t,onClose:a,editApp:l,onSave:i}=e,o=(0,r.c)("externalApps"),d=(0,r.c)("common"),c=!!l,[m,f]=(0,s.useState)(""),[x,g]=(0,s.useState)(""),[p,h]=(0,s.useState)(""),[b,j]=(0,s.useState)(""),[v,y]=(0,s.useState)(""),[N,w]=(0,s.useState)(!1),[k,C]=(0,s.useState)(""),[S,A]=(0,s.useState)(!0),[E,T]=(0,s.useState)({}),[R,O]=(0,s.useState)(!1),[L,D]=(0,s.useState)(null);(0,s.useEffect)(()=>{t&&(l?(f(l.displayName),g(l.name),h(l.pathPrefix),j(l.targetPort),y(l.appType),w(l.websocketEnabled),C(l.description||""),A(l.enabled)):(f(""),g(""),h(""),j(""),y(""),w(!1),C(""),A(!0)),T({}),D(null))},[t,l]);let z=async e=>{e.preventDefault(),D(null);let t=function(e,t){var a,n,s,r;let l={};return((null==(a=e.displayName)?void 0:a.trim())||(l.displayName="Display name is required"),!t&&((null==(n=e.name)?void 0:n.trim())?M.test(e.name)||(l.name="Only alphanumeric characters and hyphens are allowed"):l.name="Identifier name is required",(null==(s=e.pathPrefix)?void 0:s.trim())?M.test(e.pathPrefix)||(l.pathPrefix="Only alphanumeric characters and hyphens are allowed"):l.pathPrefix="Path prefix is required"),e.targetPort)?"number"!=typeof e.targetPort||Number.isInteger(r=e.targetPort)&&r>=I.MIN&&r<=I.MAX||(l.targetPort="Port must be between ".concat(I.MIN," and ").concat(I.MAX)):l.targetPort="Port number is required",t||e.appType||(l.appType="App type is required"),l}({displayName:m,name:x,pathPrefix:p,targetPort:b,appType:v},c);if(Object.keys(t).length>0)return void T(t);T({}),O(!0);try{if(c&&l){let e=await fetch("/api/external-apps/".concat(l.id),{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({displayName:m,description:k||void 0,targetPort:b||void 0,websocketEnabled:N,enabled:S})});if(!e.ok){let t=await e.json();throw Error(t.error||o("form.updateFailed"))}}else{let e=await fetch("/api/external-apps",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({displayName:m,name:x,pathPrefix:p,targetPort:b,appType:v,websocketEnabled:N,description:k||void 0})});if(!e.ok){let t=await e.json();throw Error(t.error||o("form.createFailed"))}}i(),a()}catch(e){D(e instanceof Error?e.message:o("form.genericError"))}finally{O(!1)}};return(0,n.jsx)(u.Jh,{isOpen:t,onClose:a,title:c?o("form.editTitle"):o("form.addTitle"),size:"md",children:(0,n.jsxs)("form",{onSubmit:z,className:"space-y-4",children:[(0,n.jsx)("div",{className:"rounded-md bg-warning-subtle p-3 mb-4 border border-warning-border",children:(0,n.jsx)("p",{className:"text-sm text-warning-foreground",children:o("form.securityWarning")})}),(0,n.jsxs)("div",{children:[(0,n.jsxs)("label",{htmlFor:"displayName",className:"block text-sm font-medium text-foreground mb-1",children:[o("form.displayName")," ",(0,n.jsx)("span",{className:"text-danger",children:"*"})]}),(0,n.jsx)(u.pd,{id:"displayName",type:"text",value:m,onChange:e=>f(e.target.value),className:E.displayName?"border-danger":"",placeholder:o("form.displayNamePlaceholder"),disabled:R}),E.displayName&&(0,n.jsx)("p",{className:"mt-1 text-xs text-danger",children:E.displayName})]}),!c&&(0,n.jsxs)("div",{children:[(0,n.jsxs)("label",{htmlFor:"name",className:"block text-sm font-medium text-foreground mb-1",children:[o("form.identifierName")," ",(0,n.jsx)("span",{className:"text-danger",children:"*"})]}),(0,n.jsx)(u.pd,{id:"name",type:"text",value:x,onChange:e=>g(e.target.value),className:"font-mono ".concat(E.name?"border-danger":""),placeholder:o("form.identifierNamePlaceholder"),disabled:R}),(0,n.jsx)("p",{className:"mt-1 text-xs text-muted-foreground",children:o("form.identifierNameHelp")}),E.name&&(0,n.jsx)("p",{className:"mt-1 text-xs text-danger",children:E.name})]}),!c&&(0,n.jsxs)("div",{children:[(0,n.jsxs)("label",{htmlFor:"pathPrefix",className:"block text-sm font-medium text-foreground mb-1",children:[o("form.pathPrefix")," ",(0,n.jsx)("span",{className:"text-danger",children:"*"})]}),(0,n.jsxs)("div",{className:"flex items-center",children:[(0,n.jsx)("span",{className:"text-sm text-muted-foreground mr-1",children:"/proxy/"}),(0,n.jsx)(u.pd,{id:"pathPrefix",type:"text",value:p,onChange:e=>h(e.target.value),className:"w-auto flex-1 font-mono ".concat(E.pathPrefix?"border-danger":""),placeholder:o("form.pathPrefixPlaceholder"),disabled:R}),(0,n.jsx)("span",{className:"text-sm text-muted-foreground ml-1",children:"/"})]}),(0,n.jsx)("p",{className:"mt-1 text-xs text-muted-foreground",children:o("form.pathPrefixHelp")}),E.pathPrefix&&(0,n.jsx)("p",{className:"mt-1 text-xs text-danger",children:E.pathPrefix})]}),(0,n.jsxs)("div",{children:[(0,n.jsxs)("label",{htmlFor:"targetPort",className:"block text-sm font-medium text-foreground mb-1",children:[o("form.portNumber")," ",(0,n.jsx)("span",{className:"text-danger",children:"*"})]}),(0,n.jsx)(u.pd,{id:"targetPort",type:"number",value:b,onChange:e=>j(e.target.value?parseInt(e.target.value,10):""),className:"font-mono ".concat(E.targetPort?"border-danger":""),placeholder:o("form.portNumberPlaceholder"),min:I.MIN,max:I.MAX,disabled:R}),(0,n.jsx)("p",{className:"mt-1 text-xs text-muted-foreground",children:o("form.portNumberHelp",{min:I.MIN,max:I.MAX})}),E.targetPort&&(0,n.jsx)("p",{className:"mt-1 text-xs text-danger",children:E.targetPort})]}),!c&&(0,n.jsxs)("div",{children:[(0,n.jsxs)("label",{htmlFor:"appType",className:"block text-sm font-medium text-foreground mb-1",children:[o("form.appType")," ",(0,n.jsx)("span",{className:"text-danger",children:"*"})]}),(0,n.jsxs)("select",{id:"appType",value:v,onChange:e=>y(e.target.value),className:(0,P.cn)((0,u.j1)(),E.appType&&"border-danger"),disabled:R,children:[(0,n.jsx)("option",{value:"",children:o("form.appTypePlaceholder")}),U.map(e=>(0,n.jsx)("option",{value:e.value,children:e.label},e.value))]}),E.appType&&(0,n.jsx)("p",{className:"mt-1 text-xs text-danger",children:E.appType})]}),(0,n.jsxs)("div",{children:[(0,n.jsx)("label",{htmlFor:"description",className:"block text-sm font-medium text-foreground mb-1",children:o("form.description")}),(0,n.jsx)(u.k_,{id:"description",value:k,onChange:e=>C(e.target.value),placeholder:o("form.descriptionPlaceholder"),rows:2,disabled:R})]}),(0,n.jsxs)("div",{className:"flex items-center gap-2",children:[(0,n.jsx)(u.dO,{id:"websocketEnabled",checked:N,onCheckedChange:w,disabled:R}),(0,n.jsx)("label",{htmlFor:"websocketEnabled",className:"text-sm text-foreground",children:o("form.websocketLabel")})]}),c&&(0,n.jsxs)("div",{className:"flex items-center gap-2",children:[(0,n.jsx)(u.dO,{id:"enabled",checked:S,onCheckedChange:A,disabled:R}),(0,n.jsx)("label",{htmlFor:"enabled",className:"text-sm text-foreground",children:o("form.enabledLabel")})]}),L&&(0,n.jsx)("div",{className:"p-3 bg-danger-subtle border border-danger-border rounded text-sm text-danger-foreground",children:L}),(0,n.jsxs)("div",{className:"flex justify-end gap-2 pt-4 border-t border-border",children:[(0,n.jsx)(u.$n,{type:"button",variant:"ghost",onClick:a,disabled:R,children:d("cancel")}),(0,n.jsx)(u.$n,{type:"submit",variant:"primary",loading:R,children:c?o("form.save"):o("form.add")})]})]})})}function D(){let e=(0,r.c)("externalApps"),t=(0,r.c)("common"),[a,l]=(0,s.useState)([]),[i,o]=(0,s.useState)(!0),[d,c]=(0,s.useState)(null),[m,f]=(0,s.useState)(!1),[x,g]=(0,s.useState)(null),p=(0,s.useCallback)(async e=>{let t=null,a=null;try{let e=await fetch("/api/external-apps");if(!e.ok)throw Error("Failed to fetch external apps");t=(await e.json()).apps||[]}catch(e){a=e instanceof Error?e.message:"An error occurred"}e()&&(t&&l(t),c(a),o(!1))},[]),h=(0,E.v)(p,6e4),b=(0,s.useCallback)(e=>{g(e),f(!0)},[]),j=(0,s.useCallback)(()=>{g(null),f(!0)},[]),v=(0,s.useCallback)(async e=>{try{let t=await fetch("/api/external-apps/".concat(e),{method:"DELETE"});if(!t.ok){let e=await t.json();throw Error(e.error||"Failed to delete app")}h()}catch(e){console.error("Failed to delete app:",e)}},[h]),y=(0,s.useCallback)(()=>{h()},[h]),N=(0,s.useCallback)(()=>{f(!1),g(null)},[]);return(0,n.jsxs)("div",{className:"space-y-4",children:[(0,n.jsx)("div",{className:"flex items-center justify-end",children:(0,n.jsx)(u.$n,{variant:"primary",size:"sm",onClick:j,children:e("manager.addApp")})}),i?(0,n.jsx)(u.Zp,{padding:"lg",children:(0,n.jsxs)("div",{className:"flex items-center justify-center py-8",children:[(0,n.jsx)(u.y$,{size:"xl",variant:"accent"}),(0,n.jsx)("span",{className:"ml-3 text-muted-foreground",children:e("manager.loading")})]})}):d?(0,n.jsx)(u.Zp,{padding:"lg",children:(0,n.jsxs)("div",{className:"text-center py-8",children:[(0,n.jsx)("p",{className:"text-danger-foreground mb-4",children:e("manager.loadError")}),(0,n.jsx)(u.$n,{variant:"secondary",size:"sm",onClick:h,children:t("retry")})]})}):0===a.length?(0,n.jsx)(u.Zp,{padding:"lg",children:(0,n.jsxs)("div",{className:"text-center py-8",children:[(0,n.jsx)("p",{className:"text-muted-foreground mb-4",children:e("manager.empty")}),(0,n.jsx)("p",{className:"text-sm text-muted-foreground mb-4",children:e("manager.emptyHelp")}),(0,n.jsx)(u.$n,{variant:"primary",size:"sm",onClick:j,children:e("manager.addFirst")})]})}):(0,n.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-4",children:a.map(e=>(0,n.jsx)(R,{app:e,onEdit:b,onDelete:v},e.id))}),(0,n.jsx)(L,{isOpen:m,onClose:N,editApp:x,onSave:y})]})}var z=a(85998),Z=a(94442),$=a(81978);function F(){return"undefined"!=typeof navigator&&"serviceWorker"in navigator&&"PushManager"in window&&"Notification"in window}let B={enabled:!0,thresholdMinutes:10},q=[5,10,30,60];function H(){let e=(0,r.c)("notifications"),{showToast:t}=(0,Z.dj)(),[a,l]=(0,s.useState)(!0),[i,o]=(0,s.useState)(!1),[d,c]=(0,s.useState)(!0),[m,f]=(0,s.useState)(!1),[x,g]=(0,s.useState)(null),[p,h]=(0,s.useState)(null),[b,j]=(0,s.useState)(!1),[v,y]=(0,s.useState)(null),[N,w]=(0,s.useState)({prompt:!0,completion:!1}),[k,C]=(0,s.useState)(!1),[S,A]=(0,s.useState)(null),[E,T]=(0,s.useState)(null),R=null!==v&&!1!==E;(0,s.useEffect)(()=>{let e=!1;return(async()=>{let t=function(){var e,t;let a=F(),n="undefined"!=typeof navigator&&(!!/iPad|iPhone|iPod/.test(navigator.userAgent)||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1)&&!(null!=(e=(t=window).matchMedia)&&e.call(t,"(display-mode: standalone)").matches||!0===navigator.standalone);return{supported:a&&!n,iosNeedsInstall:n}}();e||(c(F()),f(t.iosNeedsInstall),"undefined"!=typeof Notification&&"denied"===Notification.permission&&j(!0));try{let t=await fetch("/api/push/vapid"),a=await t.json();e||(g(a.configured),h(a.publicKey))}catch(t){e||g(!1)}if(F())try{let t=await navigator.serviceWorker.getRegistration(),n=t?await t.pushManager.getSubscription():null;if(n&&!e){y(n.endpoint);let t=await fetch("/api/push/subscriptions?endpoint=".concat(encodeURIComponent(n.endpoint))),s=await t.json();if(!e){var a;T(!0===s.subscribed),A(null!=(a=s.delivery)?a:null)}s.subscribed&&s.subscription&&!e&&(w(s.subscription.preferences),C(!0===s.subscription.defaultsNoticePending))}}catch(e){}e||l(!1)})(),()=>{e=!0}},[]);let P=(0,s.useCallback)(async()=>{if(p){o(!0);try{var a,n;let s=await Notification.requestPermission();if("granted"!==s){j("denied"===s),t(e("toast.error"),"error");return}if(!await navigator.serviceWorker.getRegistration())return void t(e("toast.error"),"error");let r=await navigator.serviceWorker.ready,l=await r.pushManager.subscribe({userVisibleOnly:!0,applicationServerKey:function(e){let t="=".repeat((4-e.length%4)%4),a=atob((e+t).replace(/-/g,"+").replace(/_/g,"/")),n=new Uint8Array(new ArrayBuffer(a.length));for(let e=0;e<a.length;e++)n[e]=a.charCodeAt(e);return n}(p)}),i=await fetch("/api/push/subscriptions",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({subscription:l.toJSON(),deviceLabel:navigator.userAgent.slice(0,120)})});if(!i.ok)throw Error("subscribe request failed");let o=await i.json();y(l.endpoint),T(!0),A(null),(null==(a=o.subscription)?void 0:a.preferences)&&w(o.subscription.preferences),C((null==(n=o.subscription)?void 0:n.defaultsNoticePending)===!0),j(!1),t(e("toast.enabled"),"success")}catch(a){t(e("toast.error"),"error")}finally{o(!1)}}},[p,t,e]),I=(0,s.useCallback)(async()=>{o(!0);try{var a;let n=await navigator.serviceWorker.getRegistration(),s=n?await n.pushManager.getSubscription():null,r=null!=(a=null==s?void 0:s.endpoint)?a:v;s&&await s.unsubscribe(),r&&await fetch("/api/push/subscriptions",{method:"DELETE",headers:{"Content-Type":"application/json"},body:JSON.stringify({endpoint:r})}),y(null),T(null),A(null),t(e("toast.disabled"),"info")}catch(a){t(e("toast.error"),"error")}finally{o(!1)}},[v,t,e]),M=(0,s.useCallback)(async(a,n)=>{if(!v)return;let s={...N,[a]:n};w(s);try{if(!(await fetch("/api/push/subscriptions",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({endpoint:v,preferences:s})})).ok)throw Error("update failed");t(e("toast.updated"),"success")}catch(a){w(N),t(e("toast.error"),"error")}},[v,N,t,e]),O=(0,s.useCallback)(async a=>{if(!v)return;let n=a?{...N,completion:!1}:N;C(!1),a&&w(n),o(!0);try{if(!(await fetch("/api/push/subscriptions",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({endpoint:v,...a?{preferences:n}:{},acknowledgeDefaultsNotice:!0})})).ok)throw Error("acknowledge failed");t(e(a?"defaultsNotice.adopted":"defaultsNotice.kept"),"success")}catch(a){w(N),C(!0),t(e("toast.error"),"error")}finally{o(!1)}},[v,N,t,e]);return(0,n.jsxs)("div",{className:"space-y-4",children:[(0,n.jsx)(u.Zp,{children:(0,n.jsx)(_,{})}),(0,n.jsx)(u.Zp,{children:a?(0,n.jsx)("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:(0,n.jsx)(u.y$,{size:"sm"})}):d?m?(0,n.jsx)("p",{className:"text-sm text-muted-foreground","data-testid":"notifications-ios-guidance",children:e("ios.guidance")}):!1===x?(0,n.jsx)("p",{className:"text-sm text-muted-foreground",children:e("notConfigured")}):(0,n.jsxs)("div",{className:"space-y-4",children:[(0,n.jsx)("p",{className:"text-sm text-muted-foreground",children:e("description")}),b&&(0,n.jsx)("p",{className:"text-sm text-danger-foreground","data-testid":"notifications-permission-denied",children:e("permission.denied")}),(()=>{if(null===S)return null;let t="removed"===S.state,a=S.statusCode,s=t?null===a?e("delivery.removedUnknownStatus"):e("delivery.removed",{status:String(a)}):null===a?e("delivery.failingUnknownStatus",{count:S.failureCount}):e("delivery.failing",{count:S.failureCount,status:String(a)});return(0,n.jsxs)("div",{className:t?"space-y-2 rounded-lg border border-danger-border bg-danger-subtle p-3":"space-y-2 rounded-lg border border-warning-border bg-warning-subtle p-3","data-testid":"notifications-delivery-health","data-delivery-state":S.state,children:[(0,n.jsx)("p",{className:t?"text-sm font-semibold text-danger-foreground":"text-sm font-semibold text-warning-foreground",children:e(t?"delivery.headingRemoved":"delivery.headingFailing")}),(0,n.jsx)("p",{className:"text-xs text-foreground",children:s}),403===a&&(0,n.jsx)("p",{className:"text-xs text-muted-foreground","data-testid":"notifications-delivery-apns-hint",children:e("delivery.apnsHint")}),(0,n.jsx)("p",{className:"text-xs text-muted-foreground",children:e("delivery.since",{timestamp:new Date(S.firstFailureAt).toLocaleString()})})]})})(),R?(0,n.jsxs)("div",{className:"space-y-4",children:[(0,n.jsx)("p",{className:"text-sm font-medium text-foreground",children:e("enabledOnThisDevice")}),k&&(0,n.jsxs)("div",{className:"space-y-3 rounded-lg border border-info-border bg-info-subtle p-3","data-testid":"notifications-defaults-notice",children:[(0,n.jsx)("p",{className:"text-sm font-semibold text-info-foreground",children:e("defaultsNotice.heading")}),(0,n.jsx)("p",{className:"text-xs text-foreground",children:e("defaultsNotice.completionChanged")}),(0,n.jsx)("p",{className:"text-xs text-foreground",children:e("defaultsNotice.failuresAdded")}),(0,n.jsxs)("div",{className:"flex flex-wrap gap-2",children:[(0,n.jsx)(u.$n,{variant:"primary",onClick:()=>O(!0),disabled:i,"data-testid":"notifications-defaults-notice-adopt",children:e("defaultsNotice.adopt")}),(0,n.jsx)(u.$n,{variant:"secondary",onClick:()=>O(!1),disabled:i,"data-testid":"notifications-defaults-notice-keep",children:e("defaultsNotice.keep")})]})]}),(0,n.jsxs)("div",{className:"space-y-3",children:[(0,n.jsx)("div",{className:"text-xs font-medium uppercase tracking-wide text-muted-foreground",children:e("types.heading")}),(0,n.jsxs)("label",{className:"flex items-center justify-between gap-4",children:[(0,n.jsxs)("span",{children:[(0,n.jsx)("span",{className:"block text-sm font-medium text-foreground",children:e("types.promptWaiting")}),(0,n.jsx)("span",{className:"block text-xs text-muted-foreground",children:e("types.promptWaitingDesc")})]}),(0,n.jsx)(u.dO,{checked:N.prompt,onCheckedChange:e=>M("prompt",e),disabled:i,"aria-label":e("types.promptWaiting"),"data-testid":"notifications-toggle-prompt"})]}),(0,n.jsxs)("label",{className:"flex items-center justify-between gap-4",children:[(0,n.jsxs)("span",{children:[(0,n.jsx)("span",{className:"block text-sm font-medium text-foreground",children:e("types.completion")}),(0,n.jsx)("span",{className:"block text-xs text-muted-foreground",children:e("types.completionDesc")})]}),(0,n.jsx)(u.dO,{checked:N.completion,onCheckedChange:e=>M("completion",e),disabled:i,"aria-label":e("types.completion"),"data-testid":"notifications-toggle-completion"})]})]}),(0,n.jsx)(u.$n,{variant:"secondary",onClick:I,disabled:i,"data-testid":"notifications-unsubscribe",children:e("unsubscribe")})]}):(0,n.jsxs)(u.$n,{variant:"primary",onClick:P,disabled:i||b||!p,"data-testid":"notifications-enable",children:[(0,n.jsx)(z.A,{className:"h-4 w-4"}),i?e("enabling"):e("enable")]})]}):(0,n.jsx)("p",{className:"text-sm text-muted-foreground",children:e("unsupported")})}),(0,n.jsx)(u.Zp,{children:(0,n.jsx)(W,{})})]})}function W(){let e=(0,r.c)("notifications"),{showToast:t}=(0,Z.dj)(),[a,l]=(0,s.useState)(!0),[i,o]=(0,s.useState)(!1),[d,c]=(0,s.useState)(B),[m,f]=(0,s.useState)([...q]);(0,s.useEffect)(()=>{let e=!1;return(async()=>{try{let t=await fetch("/api/push/escalation"),a=await t.json();!e&&(a.settings&&c(a.settings),Array.isArray(a.choices)&&a.choices.length>0&&f(a.choices))}catch(e){}finally{e||l(!1)}})(),()=>{e=!0}},[]);let x=(0,s.useCallback)(async a=>{c(a),o(!0);try{if(!(await fetch("/api/push/escalation",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({settings:a})})).ok)throw Error("update failed");t(e("toast.updated"),"success")}catch(a){c(d),t(e("toast.error"),"error")}finally{o(!1)}},[d,t,e]);return(0,n.jsxs)("div",{className:"space-y-3",children:[(0,n.jsx)("div",{className:"text-xs font-medium uppercase tracking-wide text-muted-foreground",children:e("escalation.heading")}),(0,n.jsxs)("label",{className:"flex items-center justify-between gap-4",children:[(0,n.jsxs)("span",{children:[(0,n.jsx)("span",{className:"block text-sm font-medium text-foreground",children:e("escalation.toggle")}),(0,n.jsx)("span",{className:"block text-xs text-muted-foreground",children:e("escalation.toggleDesc")})]}),(0,n.jsx)(u.dO,{checked:d.enabled,onCheckedChange:e=>x({...d,enabled:e}),disabled:a||i,"aria-label":e("escalation.toggle"),"data-testid":"notifications-toggle-escalation"})]}),(0,n.jsxs)("label",{className:"flex items-center justify-between gap-4",children:[(0,n.jsx)("span",{className:"text-sm text-foreground",children:e("escalation.threshold")}),(0,n.jsx)("select",{className:"rounded-md border border-border bg-background px-2 py-1 text-sm text-foreground",value:String(d.thresholdMinutes),disabled:a||i||!d.enabled,"aria-label":e("escalation.threshold"),"data-testid":"notifications-escalation-threshold",onChange:e=>x({...d,thresholdMinutes:Number(e.target.value)}),children:m.map(t=>(0,n.jsx)("option",{value:String(t),children:e("escalation.minutes",{count:t})},t))})]})]})}function _(){let e=(0,r.c)("notifications"),{enabled:t,setEnabled:a}=(0,$.qG)(),{enabled:s,setEnabled:l}=(0,$.Ql)();return(0,n.jsxs)("div",{className:"space-y-3",children:[(0,n.jsx)("div",{className:"text-xs font-medium uppercase tracking-wide text-muted-foreground",children:e("inApp.heading")}),(0,n.jsxs)("label",{className:"flex items-center justify-between gap-4",children:[(0,n.jsxs)("span",{children:[(0,n.jsx)("span",{className:"block text-sm font-medium text-foreground",children:e("inApp.waitingToggle")}),(0,n.jsx)("span",{className:"block text-xs text-muted-foreground",children:e("inApp.waitingToggleDesc")})]}),(0,n.jsx)(u.dO,{checked:t,onCheckedChange:a,"aria-label":e("inApp.waitingToggle"),"data-testid":"notifications-toggle-inapp-waiting"})]}),(0,n.jsxs)("label",{className:"flex items-center justify-between gap-4",children:[(0,n.jsxs)("span",{children:[(0,n.jsx)("span",{className:"block text-sm font-medium text-foreground",children:e("inApp.soundToggle")}),(0,n.jsx)("span",{className:"block text-xs text-muted-foreground",children:e("inApp.soundToggleDesc")})]}),(0,n.jsx)(u.dO,{checked:s,onCheckedChange:l,"aria-label":e("inApp.soundToggle"),"data-testid":"notifications-toggle-inapp-sound"})]})]})}a(72604),a(95275),a(79832);var J=a(77671),V=a(92314),K=a(4023);let X="min-h-9 rounded-md border border-border bg-surface px-3 py-1.5 text-sm text-foreground hover:bg-muted disabled:opacity-40 disabled:cursor-not-allowed",G="min-h-9 rounded-md border border-accent-200 dark:border-accent-700 bg-accent-50 dark:bg-accent-900/30 px-3 py-1.5 text-sm font-medium text-accent-700 dark:text-accent-300 hover:bg-accent-100 dark:hover:bg-accent-900/50 disabled:opacity-40 disabled:cursor-not-allowed",Q="min-h-9 rounded-md border border-danger-border bg-danger-subtle px-3 py-1.5 text-sm text-danger-foreground disabled:opacity-40 disabled:cursor-not-allowed",Y="w-full text-sm border border-input rounded-md px-2 py-2 bg-surface text-foreground focus:outline-none focus:ring-2 focus:ring-ring disabled:opacity-50";function ee(e){let{initialName:t,initialBody:a,saving:l,error:i,testIdPrefix:o,submitLabel:d,onSubmit:c,onCancel:u}=e,m=(0,r.c)("common"),[f,x]=(0,s.useState)(t),[g,p]=(0,s.useState)(a),h=(0,s.useMemo)(()=>new TextEncoder().encode(g).length,[g]),b=h>K.pd;return(0,n.jsxs)("form",{className:"space-y-2","data-testid":"".concat(o,"-form"),onSubmit:e=>{e.preventDefault(),b||c(f,g)},children:[(0,n.jsxs)("label",{className:"block space-y-1",children:[(0,n.jsx)("span",{className:"text-xs font-medium text-muted-foreground",children:m("agentRoles.manage.name")}),(0,n.jsx)("input",{type:"text","data-testid":"".concat(o,"-name"),value:f,maxLength:K.vz,disabled:l,required:!0,onChange:e=>x(e.target.value),className:Y})]}),(0,n.jsxs)("label",{className:"block space-y-1",children:[(0,n.jsx)("span",{className:"text-xs font-medium text-muted-foreground",children:m("agentRoles.manage.body")}),(0,n.jsx)("textarea",{"data-testid":"".concat(o,"-body"),value:g,rows:8,disabled:l,required:!0,placeholder:m("agentRoles.manage.bodyPlaceholder"),onChange:e=>p(e.target.value),className:"".concat(Y," resize-y")})]}),(0,n.jsx)("p",{"data-testid":"".concat(o,"-bytes"),className:"text-xs ".concat(b?"text-danger-foreground":"text-muted-foreground"),children:m("agentRoles.manage.bytes",{bytes:h,max:K.pd})}),i&&(0,n.jsx)("p",{role:"alert","data-testid":"".concat(o,"-error"),className:"text-xs text-danger-foreground",children:i}),(0,n.jsxs)("div",{className:"flex flex-wrap gap-2",children:[(0,n.jsx)("button",{type:"submit","data-testid":"".concat(o,"-submit"),disabled:l||b,className:G,children:d}),u&&(0,n.jsx)("button",{type:"button",disabled:l,onClick:u,className:X,children:m("agentRoles.manage.cancel")})]})]})}function et(e){let{references:t}=e,a=(0,r.c)("common");return(0,n.jsxs)("ul",{className:"list-disc space-y-0.5 pl-4 text-xs text-foreground","data-testid":"agent-role-references",children:[t.instances.map(e=>(0,n.jsx)("li",{className:"break-all",children:a("agentRoles.manage.referenceInstance",{worktree:e.worktreeId,instance:e.instanceId})},"i-".concat(e.worktreeId,"-").concat(e.instanceId))),t.repositories.map(e=>(0,n.jsx)("li",{className:"break-all",children:a("agentRoles.manage.referenceRepository",{path:e.repositoryPath,tool:(0,m.oo)(e.cliToolId)||e.cliToolId})},"r-".concat(e.repositoryId,"-").concat(e.cliToolId))),t.system.map(e=>(0,n.jsx)("li",{children:a("agentRoles.manage.referenceSystem",{tool:(0,m.oo)(e.cliToolId)||e.cliToolId})},"s-".concat(e.cliToolId)))]})}function ea(){let e=(0,r.c)("common"),[t,a]=(0,s.useState)(null),[l,i]=(0,s.useState)([]),[o,d]=(0,s.useState)(!1),[c,f]=(0,s.useState)(!1),[x,g]=(0,s.useState)(!1),[p,h]=(0,s.useState)(null),[b,j]=(0,s.useState)(0),[v,y]=(0,s.useState)(null),[N,w]=(0,s.useState)(null),[C,S]=(0,s.useState)({}),[A,E]=(0,s.useState)(null),[T,R]=(0,s.useState)(null),P=(0,s.useRef)(0),I=(0,s.useCallback)(async()=>{P.current+=1;let e=P.current,[t,n]=await Promise.all([k.Zj.list(),k.Zj.systemDefaults()]);e===P.current&&(t.ok&&a(t.data.roles),n.ok&&i(n.data.defaults),d(!t.ok||!n.ok))},[]);(0,s.useEffect)(()=>{I()},[I]);let M=(0,s.useCallback)(async()=>{await I(),(0,V.P3)()},[I]),O=(0,s.useCallback)(t=>"name_conflict"===t.error?e("agentRoles.manage.nameConflict"):"version_conflict"===t.error||"name_changed"===t.error?e("agentRoles.manage.versionConflict"):"invalid_request"===t.error&&t.message?t.message:e("agentRoles.manage.saveError"),[e]),U=(0,s.useCallback)(async(t,a)=>{f(!0),h(null),E(null);let n=await k.Zj.create({name:t,body:a});n.ok?(g(!1),j(e=>e+1),await M()):(h((0,k.B1)(n)?e("agentRoles.saveUnknown"):O(n)),(0,k.B1)(n)&&await M()),f(!1)},[M,O,e]),L=(0,s.useCallback)(async t=>{f(!0),w(null),E(null);let a=await k.Zj.get(t);if(a.ok){let{role:e}=a.data;y({id:t,name:e.name,body:e.body,version:e.bodyVersion})}else E(e("agentRoles.loadError"));f(!1)},[e]),D=(0,s.useCallback)(async(t,a)=>{let n;if(!v)return;let s=t!==v.name,r=a!==v.body;if(!s&&!r)return void y(null);if(f(!0),w(null),s){let a=await k.Zj.get(v.id);if(!a.ok){w(O(a)),f(!1);return}if(a.data.role.name!==v.name&&a.data.role.name!==t){w(e("agentRoles.manage.versionConflict")),f(!1);return}n=a.data.role.name}let l=r?{body:a,expectedBodyVersion:v.version}:{},i=void 0===n?await k.Zj.update(v.id,l):await (0,J.Ck)(v.id,{name:t,...l},n);if(i.ok){y(null);let{affected:t}=i.data;E(e("agentRoles.manage.edited",{count:t.instances.length+t.repositories.length+t.system.length})),await M()}else w((0,k.B1)(i)?e("agentRoles.saveUnknown"):O(i)),(0,k.B1)(i)&&await M();f(!1)},[M,v,O,e]),z=(0,s.useCallback)(async(t,a)=>{f(!0),E(null);let n=await k.Zj.remove(t,{force:a});if(n.ok)S(e=>{let a={...e};return delete a[t],a}),E(e("agentRoles.manage.deleted",{name:n.data.deleted.name})),await M();else{let e=(0,k.pF)(n);S(a=>({...a,[t]:e?{step:"in-use",references:e}:{step:(0,k.B1)(n)?"unknown":"failed"}})),(0,k.B1)(n)&&await M()}f(!1)},[M,e]),Z=(0,s.useCallback)(async(e,t)=>{f(!0),R(null);let a=await k.Zj.setSystemDefault(e,""===t?null:t);a.ok?(i(a.data.defaults),(0,V.P3)()):(0,k.B1)(a)?(R("unknown"),await M()):R("failed"),f(!1)},[M]);return(0,n.jsx)(u.Zp,{children:(0,n.jsxs)("div",{className:"space-y-4","data-testid":"agent-roles-settings",children:[(0,n.jsxs)("div",{className:"space-y-1",children:[(0,n.jsx)("h3",{className:"text-sm font-medium text-foreground",children:e("agentRoles.title")}),(0,n.jsx)("p",{className:"text-xs text-muted-foreground",children:e("agentRoles.description")}),(0,n.jsx)("p",{className:"text-xs text-muted-foreground","data-testid":"agent-roles-persona-note",children:e("agentRoles.personaNote")})]}),o&&(0,n.jsx)("p",{role:"alert","data-testid":"agent-roles-load-error",className:"text-xs text-danger-foreground",children:e("agentRoles.loadError")}),A&&(0,n.jsx)("p",{role:"status","data-testid":"agent-roles-notice",className:"text-xs text-muted-foreground",children:A}),null!==t&&0===t.length&&(0,n.jsx)("p",{"data-testid":"agent-roles-empty",className:"text-xs text-muted-foreground",children:e("agentRoles.manage.empty")}),(0,n.jsx)("ul",{className:"space-y-2",children:(null!=t?t:[]).map(t=>{let a=C[t.id];return(0,n.jsxs)("li",{"data-testid":"agent-role-row-".concat(t.id),className:"rounded-lg border border-border p-2 space-y-2",children:[(null==v?void 0:v.id)===t.id?(0,n.jsx)(ee,{initialName:v.name,initialBody:v.body,saving:c,error:N,testIdPrefix:"agent-role-edit",submitLabel:e("agentRoles.manage.save"),onSubmit:(e,t)=>void D(e,t),onCancel:()=>y(null)}):(0,n.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,n.jsx)("span",{className:"min-w-0 flex-1 truncate text-sm font-medium text-foreground",title:t.name,children:t.name}),(0,n.jsx)("button",{type:"button","data-testid":"agent-role-edit-".concat(t.id),disabled:c,onClick:()=>void L(t.id),className:X,children:e("agentRoles.manage.edit")}),(0,n.jsx)("button",{type:"button","data-testid":"agent-role-delete-".concat(t.id),disabled:c,onClick:()=>S(e=>({...e,[t.id]:{step:"asking"}})),className:X,children:e("agentRoles.manage.delete")})]}),a&&(0,n.jsxs)("div",{className:"space-y-2","data-testid":"agent-role-delete-panel-".concat(t.id),children:["asking"===a.step&&(0,n.jsx)("p",{className:"text-xs text-foreground",children:e("agentRoles.manage.deleteAsk",{name:t.name})}),"in-use"===a.step&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("p",{className:"text-xs text-warning",children:e("agentRoles.manage.inUse")}),(0,n.jsx)(et,{references:a.references})]}),"unknown"===a.step&&(0,n.jsx)("p",{role:"alert",className:"text-xs text-warning",children:e("agentRoles.saveUnknown")}),"failed"===a.step&&(0,n.jsx)("p",{role:"alert",className:"text-xs text-danger-foreground",children:e("agentRoles.manage.deleteError")}),(0,n.jsxs)("div",{className:"flex flex-wrap gap-2",children:["in-use"===a.step?(0,n.jsx)("button",{type:"button","data-testid":"agent-role-force-delete-".concat(t.id),disabled:c,onClick:()=>void z(t.id,!0),className:Q,children:e("agentRoles.manage.forceDelete")}):(0,n.jsx)("button",{type:"button","data-testid":"agent-role-delete-confirm-".concat(t.id),disabled:c,onClick:()=>void z(t.id,!1),className:Q,children:e("agentRoles.manage.delete")}),(0,n.jsx)("button",{type:"button",disabled:c,onClick:()=>S(e=>{let a={...e};return delete a[t.id],a}),className:X,children:e("agentRoles.manage.cancel")})]})]})]},t.id)})}),x?(0,n.jsx)(ee,{initialName:"",initialBody:"",saving:c,error:p,testIdPrefix:"agent-role-create",submitLabel:e("agentRoles.manage.create"),onSubmit:(e,t)=>void U(e,t),onCancel:()=>{g(!1),h(null)}},b):(0,n.jsx)("button",{type:"button","data-testid":"agent-role-new",disabled:c,onClick:()=>g(!0),className:G,children:e("agentRoles.manage.new")}),l.length>0&&(0,n.jsxs)("div",{className:"space-y-2 border-t border-border pt-3",children:[(0,n.jsx)("h4",{className:"text-xs font-medium text-foreground",children:e("agentRoles.system.title")}),(0,n.jsx)("p",{className:"text-xs text-muted-foreground",children:e("agentRoles.system.description")}),(0,n.jsx)("ul",{className:"grid grid-cols-1 gap-2 md:grid-cols-2",children:l.map(a=>(0,n.jsxs)("li",{className:"min-w-0 space-y-1",children:[(0,n.jsxs)("label",{className:"block space-y-1",children:[(0,n.jsx)("span",{className:"text-xs text-foreground",children:(0,m.oo)(a.cliToolId)}),(0,n.jsxs)("select",{"data-testid":"agent-role-system-default-".concat(a.cliToolId),value:"role"===a.stored.state?a.stored.roleId:"",disabled:c,onChange:e=>void Z(a.cliToolId,e.target.value),className:Y,children:[(0,n.jsx)("option",{value:"",children:e("agentRoles.choice.unset")}),(null!=t?t:[]).map(e=>(0,n.jsx)("option",{value:e.id,children:e.name},e.id))]})]}),!a.adapterEnabled&&(0,n.jsx)("p",{className:"text-xs text-warning",children:e("agentRoles.adapterDisabledNote")})]},a.cliToolId))}),T&&(0,n.jsx)("p",{role:"alert","data-testid":"agent-roles-default-error",className:"text-xs text-danger-foreground",children:e("unknown"===T?"agentRoles.saveUnknown":"agentRoles.manage.saveError")})]})]})})}function en(e){let{heading:t,children:a}=e;return(0,n.jsxs)("div",{className:"mb-8",children:[(0,n.jsx)("h2",{className:"text-lg font-semibold mb-4 text-foreground",children:t}),a]})}function es(e){let{onNavigate:t}=e,a=(0,r.c)("common"),s=(0,r.c)("skills");return(0,n.jsx)(en,{heading:a("settings.sections.quickLinks"),children:(0,n.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3",children:[(0,n.jsx)(A(),{href:"/repositories",className:"block","data-testid":"more-link-repositories",onClick:t,children:(0,n.jsxs)(u.Zp,{hover:!0,className:"transition-colors hover:border-accent-300 dark:hover:border-accent-700",children:[(0,n.jsx)("div",{className:"text-sm font-medium text-foreground",children:a("nav.repositories")}),(0,n.jsx)("div",{className:"text-xs text-muted-foreground",children:a("repositories.pageDescription")})]})}),(0,n.jsx)(A(),{href:"/skills",className:"block","data-testid":"more-link-skills",onClick:t,children:(0,n.jsxs)(u.Zp,{hover:!0,className:"transition-colors hover:border-accent-300 dark:hover:border-accent-700",children:[(0,n.jsx)("div",{className:"text-sm font-medium text-foreground",children:a("nav.skills")}),(0,n.jsx)("div",{className:"text-xs text-muted-foreground",children:s("page.description")})]})}),(0,n.jsx)(A(),{href:"/skills/installed",className:"block","data-testid":"more-link-skills-installed",onClick:t,children:(0,n.jsxs)(u.Zp,{hover:!0,className:"transition-colors hover:border-accent-300 dark:hover:border-accent-700",children:[(0,n.jsx)("div",{className:"text-sm font-medium text-foreground",children:s("dashboard.title")}),(0,n.jsx)("div",{className:"text-xs text-muted-foreground",children:s("dashboard.description")})]})})]})})}function er(){let e=(0,r.c)("common");return(0,n.jsx)(en,{heading:e("settings.sections.general"),children:(0,n.jsxs)("div",{className:"space-y-4",children:[(0,n.jsx)(g,{}),(0,n.jsx)(j,{}),(0,n.jsx)(ea,{}),(0,n.jsx)(C,{})]})})}function el(){let e=(0,r.c)("common");return(0,n.jsx)(en,{heading:e("settings.sections.notifications"),children:(0,n.jsx)(H,{})})}function ei(){let e=(0,r.c)("common");return(0,n.jsx)(en,{heading:e("settings.sections.externalApps"),children:(0,n.jsx)(D,{})})}function eo(){let e=(0,r.c)("common");return(0,n.jsx)(en,{heading:e("settings.sections.about"),children:(0,n.jsx)(u.Zp,{children:(0,n.jsx)("div",{className:"text-sm text-muted-foreground",children:"CommandMate - A local control plane for agent CLIs."})})})}function ed(){return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(es,{}),(0,n.jsx)(er,{}),(0,n.jsx)(el,{}),(0,n.jsx)(ei,{}),(0,n.jsx)(eo,{})]})}var ec=a(94465),eu=a(23838),em=a(40823);let ef=[{id:"general",labelKey:"settings.sections.general"},{id:"notifications",labelKey:"settings.sections.notifications"},{id:"externalApps",labelKey:"settings.sections.externalApps"},{id:"about",labelKey:"settings.sections.about"}];function ex(){let e=(0,r.c)("common"),{isOpen:t,close:a}=(0,em.V0)();return(0,n.jsx)(ec.a,{isOpen:t,onClose:a,title:e("settings.title"),size:"lg",children:(0,n.jsxs)(eu.tU,{defaultValue:"general",orientation:"vertical",variant:"pill",className:"flex gap-6 min-h-[60vh]","data-testid":"settings-dialog",children:[(0,n.jsx)(eu.j7,{"aria-label":e("settings.categoriesLabel"),className:"sticky top-0 w-40 shrink-0 flex-col items-stretch self-start",children:ef.map(t=>(0,n.jsx)(eu.Xi,{value:t.id,"data-testid":"settings-dialog-tab-".concat(t.id),className:"justify-start",children:e(t.labelKey)},t.id))}),(0,n.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,n.jsx)(eu.av,{value:"general",className:"mt-0",children:(0,n.jsx)(er,{})}),(0,n.jsx)(eu.av,{value:"notifications",className:"mt-0",children:(0,n.jsx)(el,{})}),(0,n.jsx)(eu.av,{value:"externalApps",className:"mt-0",children:(0,n.jsx)(ei,{})}),(0,n.jsxs)(eu.av,{value:"about",className:"mt-0",children:[(0,n.jsx)(es,{onNavigate:a}),(0,n.jsx)(eo,{})]})]})]})})}},77671:(e,t,a)=>{a.d(t,{Ck:()=>l,Hb:()=>r,IW:()=>i,c3:()=>o});var n=a(73372),s=a(4023);function r(e,t,a){return(0,n.jD)("/api/worktrees/".concat(e,"/instances/roles"),"POST",t,{[s.ME]:a})}function l(e,t,a){return(0,n.JJ)(()=>(0,n.jD)("/api/roles/".concat(encodeURIComponent(e)),"PUT",t,{[s.c$]:encodeURIComponent(a)}))}function i(){return Array.from(globalThis.crypto.getRandomValues(new Uint8Array(16)),e=>e.toString(16).padStart(2,"0")).join("")}async function o(e,t){let a=new AbortController,s=setTimeout(()=>a.abort(),n.cj);try{let n=await fetch("/api/worktrees/".concat(e,"/instances/roles/settle"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({idempotencyKey:t}),signal:a.signal});if(!n.ok)return null;let s=await n.json();return(null==s?void 0:s.outcome)==="committed"||(null==s?void 0:s.outcome)==="cancelled"?s:null}catch(e){return null}finally{clearTimeout(s)}}},79832:(e,t,a)=>{a.d(t,{o:()=>o});var n=a(12115),s=a(24373);let r=/^\(\d+\+?\)(?:\s+|$)/;function l(e){return e.replace(r,"").trim()}function i(e){return Array.from(e.querySelectorAll('link[rel~="icon"]'))}function o(){return!function(){let{count:e}=(0,s.Lv)(),t=(0,n.useRef)([]),a=(0,n.useRef)(null);(0,n.useEffect)(()=>{if("undefined"==typeof document)return;let t=()=>{let t=function(e,t){let a=l(e);if(!Number.isFinite(t)||t<=0)return a;let n="(".concat(Math.floor(t),")");return a?"".concat(n," ").concat(a):n}(document.title,e);t!==document.title&&(document.title=t)};t();let a=null;return"undefined"!=typeof MutationObserver&&document.head&&(a=new MutationObserver(t)).observe(document.head,{childList:!0,subtree:!0,characterData:!0}),()=>{null==a||a.disconnect();let e=l(document.title);e!==document.title&&(document.title=e)}},[e]),(0,n.useEffect)(()=>{if("undefined"==typeof document||e<=0)return;let n=t.current,s=()=>{let t=a.current,s=function(e){var t,a;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!Number.isFinite(e)||e<=0)return null;let s=null!=(t=n.document)?t:"undefined"!=typeof document?document:null;if(!s)return null;let r=null!=(a=n.size)?a:64;try{let t=s.createElement("canvas");t.width=r,t.height=r;let a=t.getContext("2d");if(!a)return null;a.clearRect(0,0,r,r),n.base?a.drawImage(n.base,0,0,r,r):(a.fillStyle="#111827",a.fillRect(0,0,r,r));let l=Math.floor(e)>9,i=.34*r,o=r-i-.03*r;a.beginPath(),a.arc(o,o,i,0,2*Math.PI),a.fillStyle=l?"#ef4444":"#f59e0b",a.fill(),a.lineWidth=.05*r,a.strokeStyle="rgba(0, 0, 0, 0.55)",a.stroke();let d=function(e){if(!Number.isFinite(e)||e<=0)return"";let t=Math.floor(e);return t>9?"".concat(9,"+"):String(t)}(e);return a.fillStyle=l?"#ffffff":"#1c1300",a.font="bold ".concat(Math.round(r*(d.length>1?.38:.48)),"px sans-serif"),a.textAlign="center",a.textBaseline="middle",a.fillText(d,o,o+.02*r),t.toDataURL("image/png")}catch(e){return null}}(e,{base:t&&t.complete&&t.naturalWidth>0?t:null,document});s&&function(e,t,a){let n=i(e);if(0===n.length){let t=e.createElement("link");t.setAttribute("rel","icon"),t.setAttribute("type","image/png"),e.head.appendChild(t),a.push({link:t,originalHref:null,created:!0}),n=[t]}for(let e of n)a.some(t=>t.link===e)||a.push({link:e,originalHref:e.getAttribute("href"),created:!1}),e.setAttribute("href",t)}(document,s,n)};s();let r=a.current;if(!r&&"undefined"!=typeof Image){let e=function(e,t){var a;for(let e of t)if(!e.created&&e.originalHref)return e.originalHref;let n=i(e).find(e=>e.getAttribute("href"));return null!=(a=null==n?void 0:n.getAttribute("href"))?a:null}(document,n);e&&(a.current=r=new Image,r.src=e)}let l=null;return r&&!(r.complete&&r.naturalWidth>0)?(l=()=>s(),r.addEventListener("load",l)):r&&s(),()=>{r&&l&&r.removeEventListener("load",l);for(let e of n){if(e.created){e.link.remove();continue}null===e.originalHref?e.link.removeAttribute("href"):e.link.setAttribute("href",e.originalHref)}n.length=0}},[e]),(0,n.useEffect)(()=>{!function(e,t){let a="undefined"!=typeof navigator?navigator:null;if(!a)return;let n=e=>{e&&"function"==typeof e.catch&&e.catch(()=>{})};try{if(Number.isFinite(e)&&e>0){if("function"!=typeof a.setAppBadge)return!1;return n(a.setAppBadge(Math.floor(e))),!0}if("function"!=typeof a.clearAppBadge)return!1;n(a.clearAppBadge())}catch(e){return!1}}(e)},[e])}(),null}},81978:(e,t,a)=>{a.d(t,{Ql:()=>o,qG:()=>l});var n=a(12115);let s="mcbd-inapp-waiting-toast",r="mcbd:inapp-notification-prefs-changed";function l(){let[e,t]=(0,n.useState)(!0);return(0,n.useEffect)(()=>{let e=()=>t(function(){try{let e=window.localStorage.getItem(s);if(null===e)return!0;return"false"!==e}catch(e){return!0}}());return e(),window.addEventListener(r,e),window.addEventListener("storage",e),()=>{window.removeEventListener(r,e),window.removeEventListener("storage",e)}},[]),{enabled:e,setEnabled:(0,n.useCallback)(e=>{t(e);try{window.localStorage.setItem(s,e?"true":"false")}catch(e){}window.dispatchEvent(new CustomEvent(r))},[])}}let i="mcbd-inapp-waiting-sound";function o(){let[e,t]=(0,n.useState)(!1);return(0,n.useEffect)(()=>{let e=()=>t(function(){try{let e=window.localStorage.getItem(i);if(null===e)return!1;return"true"===e}catch(e){return!1}}());return e(),window.addEventListener(r,e),window.addEventListener("storage",e),()=>{window.removeEventListener(r,e),window.removeEventListener("storage",e)}},[]),{enabled:e,setEnabled:(0,n.useCallback)(e=>{t(e);try{window.localStorage.setItem(i,e?"true":"false")}catch(e){}window.dispatchEvent(new CustomEvent(r))},[])}}},83285:(e,t,a)=>{a.d(t,{v:()=>s});var n=a(12115);function s(e,t){let a=(0,n.useRef)(e);a.current=e;let s=(0,n.useRef)(0),r=(0,n.useRef)(0),l=(0,n.useRef)(0),i=(0,n.useCallback)(()=>{let e=s.current,t=++r.current;a.current(()=>e===s.current&&!(t<=l.current)&&(l.current=t,!0))},[]),o=(0,n.useCallback)(()=>{"hidden"!==document.visibilityState&&i()},[i]);return(0,n.useEffect)(()=>{let e=()=>{"visible"===document.visibilityState&&i()};o();let a=setInterval(o,t);return document.addEventListener("visibilitychange",e),()=>{s.current+=1,clearInterval(a),document.removeEventListener("visibilitychange",e)}},[e,t,i,o]),o}},94442:(e,t,a)=>{a.d(t,{dj:()=>y,tE:()=>v});var n=a(95155),s=a(12115),r=a(47650),l=a(18955),i=a(42529),o=a(78874),d=a(52056),c=a(23327),u=a(65229),m=a(59854),f=a(9900),x=a(9286);function g(e){let{type:t,iconColor:a}=e,s="h-5 w-5 ".concat(a);switch(t){case"success":return(0,n.jsx)(i.A,{className:s,"data-testid":"toast-icon-success"});case"error":return(0,n.jsx)(o.A,{className:s,"data-testid":"toast-icon-error"});case"warning":return(0,n.jsx)(d.A,{className:s,"data-testid":"toast-icon-warning"});default:return(0,n.jsx)(c.A,{className:s,"data-testid":"toast-icon-info"})}}function p(e){let{id:t,message:a,type:r,onClose:i,duration:o=3e3,onClick:d}=e,c=(0,l.c)("common"),m=(0,s.useRef)(null),p=function(e){switch(e){case"success":return{bgColor:"bg-success-subtle",borderColor:"border-success-border",textColor:"text-success-foreground",iconColor:"text-success-foreground"};case"error":return{bgColor:"bg-danger-subtle",borderColor:"border-danger-border",textColor:"text-danger-foreground",iconColor:"text-danger-foreground"};case"warning":return{bgColor:"bg-warning-subtle",borderColor:"border-warning-border",textColor:"text-warning-foreground",iconColor:"text-warning-foreground"};default:return{bgColor:"bg-info-subtle",borderColor:"border-info-border",textColor:"text-info-foreground",iconColor:"text-info-foreground"}}}(r),[h,b]=(0,s.useState)(!0),{shouldRender:j,isExiting:v}=(0,x.O)(h,f.Ys),y=(0,s.useRef)(i);y.current=i,(0,s.useEffect)(()=>{j||y.current(t)},[j,t]),(0,s.useEffect)(()=>(o>0&&(m.current=setTimeout(()=>{b(!1)},o)),()=>{m.current&&clearTimeout(m.current)}),[o]);let N=(0,s.useCallback)(()=>{m.current&&clearTimeout(m.current),b(!1)},[]);return(0,n.jsxs)("div",{"data-testid":"toast-".concat(t),role:"alert",className:"\n ".concat(p.bgColor,"\n ").concat(p.borderColor,"\n ").concat(p.textColor,"\n border rounded-lg shadow-lg p-4 min-w-[300px] max-w-[400px]\n flex items-start gap-3\n ").concat(v?"animate-out fade-out-0 slide-out-to-right-full duration-200 fill-mode-forwards pointer-events-none":"animate-slide-in","\n "),children:[(0,n.jsx)(g,{type:r,iconColor:p.iconColor}),d?(0,n.jsx)("button",{type:"button","data-testid":"toast-action-button",onClick:()=>{d(),N()},className:"flex-1 text-left text-sm font-medium underline-offset-2 hover:underline focus:outline-none focus-visible:ring-2 focus-visible:ring-ring rounded-sm",children:a}):(0,n.jsx)("p",{className:"flex-1 text-sm font-medium",children:a}),(0,n.jsx)("button",{"data-testid":"toast-close-button",onClick:N,"aria-label":c("closeNotification"),className:"\n ".concat(p.textColor,"\n hover:opacity-70\n focus:outline-none focus:ring-2 focus:ring-offset-2\n transition-opacity\n "),children:(0,n.jsx)(u.A,{className:"h-4 w-4"})})]})}function h(e){let{toasts:t,onClose:a}=e,[l,i]=(0,s.useState)(!1);(0,s.useEffect)(()=>{i(!0)},[]);let o=(0,n.jsx)("div",{"data-testid":"toast-container","aria-live":"polite",className:"fixed bottom-4 right-4 flex flex-col gap-2",style:{zIndex:m.M.TOAST},children:t.map(e=>(0,n.jsx)(p,{id:e.id,message:e.message,type:e.type,onClose:a,duration:e.duration,onClick:e.onClick},e.id))});return l?(0,r.createPortal)(o,document.body):null}function b(){let[e,t]=(0,s.useState)([]),a=(0,s.useRef)(0),n=(0,s.useCallback)(function(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"info",s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:3e3,r=arguments.length>3?arguments[3]:void 0,l="toast-".concat(++a.current,"-").concat(Date.now()),i={id:l,message:e,type:n,duration:s,...(null==r?void 0:r.onClick)?{onClick:r.onClick}:{}};return t(e=>[...e,i]),l},[]),r=(0,s.useCallback)(e=>{t(t=>t.filter(t=>t.id!==e))},[]),l=(0,s.useCallback)(()=>{t([])},[]);return(0,s.useMemo)(()=>({toasts:e,showToast:n,removeToast:r,clearToasts:l}),[e,n,r,l])}let j=(0,s.createContext)(null);function v(e){let{children:t}=e,a=b();return(0,n.jsxs)(j.Provider,{value:a,children:[t,(0,n.jsx)(h,{toasts:a.toasts,onClose:a.removeToast})]})}function y(){let e=(0,s.useContext)(j),t=b();return null!=e?e:t}},95275:(e,t,a)=>{a.d(t,{H:()=>m});var n=a(12115),s=a(60199),r=a(81978),l=a(72604);let i=[{frequency:880,offset:0,duration:.12},{frequency:1318.5,offset:.13,duration:.18}],o=null;function d(){if(o)return o;let e=function(){var e,t;let a=window;return null!=(t=null!=(e=a.AudioContext)?e:a.webkitAudioContext)?t:null}();if(!e)return null;try{o=new e}catch(e){return null}return o}function c(e){e&&"function"==typeof e.catch&&e.catch(()=>{})}let u=["pointerdown","touchstart","keydown"];function m(){let{addListener:e}=(0,s.xM)(),{enabled:t}=(0,r.Ql)(),a=(0,n.useRef)({enabled:t});a.current={enabled:t};let o=(0,n.useRef)(new Set);return(0,n.useEffect)(()=>{let e=()=>(function(){let e=d();if(e)try{var t;"suspended"===e.state&&c(null==(t=e.resume)?void 0:t.call(e))}catch(e){}})();for(let t of u)window.addEventListener(t,e,{once:!0,passive:!0});return()=>{for(let t of u)window.removeEventListener(t,e)}},[]),(0,n.useEffect)(()=>e(e=>{var t,n;if("session_status_changed"!==e.type)return;let s=e.worktreeId;if("string"!=typeof s||0===s.length)return;let r=e.isWaitingForResponse;if("boolean"!=typeof r)return;let u=null!=(t=e.instance)?t:null,m=null!=(n=e.waitingSince)?n:null;if(!r){let e="".concat(s,"|").concat(null!=u?u:"-","|");for(let t of o.current)t.startsWith(e)&&o.current.delete(t);return}if(!a.current.enabled)return;let f=(0,l.dS)(s,u,m);o.current.has(f)||(o.current.size>=500&&o.current.clear(),o.current.add(f),function(){let e=d();if(e)try{var t,a;"suspended"===e.state&&c(null==(t=e.resume)?void 0:t.call(e));let n=null!=(a=e.currentTime)?a:0;for(let t of i){let a=e.createOscillator(),s=e.createGain();a.type="sine",a.frequency.value=t.frequency;let r=n+t.offset,l=r+t.duration;s.gain.setValueAtTime(0,r),s.gain.linearRampToValueAtTime(.12,r+.015),s.gain.linearRampToValueAtTime(1e-4,l),a.connect(s),s.connect(e.destination),a.start(r),a.stop(l+.02)}}catch(e){return!1}}())}),[e]),null}}}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7229],{24332:()=>{},27229:(e,t,r)=>{"use strict";r.r(t),r.d(t,{TerminalComponent:()=>d});var n=r(95155),i=r(12115),s=r(54511),l=r(54299),o=r(31055);r(24332);var a=r(28205);function d(e){let{worktreeId:t,cliToolId:r,className:d="",controlModeEnabled:c,fontSize:u=14}=e,p=(0,i.useRef)(null),g=(0,i.useRef)(null),m=(0,i.useRef)(null),b=(0,i.useRef)(null),h=(0,i.useRef)(u);h.current=u;let[f,x]=(0,i.useState)(null),[v,y]=(0,i.useState)(null),[w,_]=(0,i.useState)("disconnected"),[S,k]=(0,i.useState)(0);(0,i.useEffect)(()=>{if(!p.current)return;let e=new s.Terminal({theme:{background:"#0f121a",foreground:"#e5e7eb",cursor:"#e5e7eb",selectionBackground:"rgba(6, 182, 212, 0.3)",black:"#0f121a",red:"#f48771",green:"#89d185",yellow:"#f4bf75",blue:"#61afef",magenta:"#c678dd",cyan:"#56b6c2",white:"#d4d4d4",brightBlack:"#5a5a5a",brightRed:"#f07178",brightGreen:"#c3e88d",brightYellow:"#f78c6c",brightBlue:"#82aaff",brightMagenta:"#c792ea",brightCyan:"#89ddff",brightWhite:"#ffffff"},fontFamily:'var(--font-geist-mono), Menlo, Monaco, "Courier New", monospace',fontSize:h.current,cursorBlink:!0,convertEol:!0}),n=new l.FitAddon;e.loadAddon(n),e.loadAddon(new o.WebLinksAddon),m.current=e,b.current=n,e.open(p.current),n.fit();let i=null,d=!1,u=!1,f=()=>{"visible"===document.visibilityState&&u&&!d&&null===g.current&&(u=!1,k(e=>e+1))},v=()=>{n.fit(),(null==i?void 0:i.readyState)===WebSocket.OPEN&&i.send(JSON.stringify({type:"terminal_resize",cols:e.cols,rows:e.rows}))};if(window.addEventListener("resize",v),x(e),!(null!=c?c:(0,a.eM)()))return _("disabled"),e.write("\x1b[33m⚠ Tmux control mode is disabled; live terminal streaming is unavailable.\x1b[0m\r\n"),()=>{window.removeEventListener("resize",v),g.current&&(clearTimeout(g.current),g.current=null),e.dispose(),m.current=null,b.current=null};let w="https:"===window.location.protocol?"wss:":"ws:";return _("connecting"),(i=new WebSocket("".concat(w,"//").concat(window.location.host))).onopen=()=>{i.send(JSON.stringify({type:"terminal_subscribe",worktreeId:t,cliToolId:r}))},i.onmessage=t=>{try{let r=JSON.parse(t.data);"terminal_output"===r.type&&r.data?e.write(r.data):"terminal_status"===r.type?(_(r.connected?"connected":"disconnected"),r.connected?(e.write("\x1b[32m✓ Connected to terminal\x1b[0m\r\n"),i.send(JSON.stringify({type:"terminal_resize",cols:e.cols,rows:e.rows}))):e.write("\x1b[33m⚠ Terminal disconnected\x1b[0m\r\n")):"terminal_error"===r.type&&(_("error"),e.write("\x1b[31m✗ ".concat(r.error||"Terminal error","\x1b[0m\r\n")))}catch(r){e.write(t.data)}},i.onerror=t=>{console.error("WebSocket error:",t),_("error"),e.write("\x1b[31m✗ Connection error\x1b[0m\r\n")},i.onclose=()=>{if(_("disconnected"),e.write("\x1b[33m⚠ Disconnected from terminal\x1b[0m\r\n"),!d){if("hidden"===document.visibilityState){u=!0;return}null===g.current&&(g.current=setTimeout(()=>{g.current=null,k(e=>e+1)},1e3))}},document.addEventListener("visibilitychange",f),y(i),e.onData(e=>{i.readyState===WebSocket.OPEN&&i.send(JSON.stringify({type:"terminal_input",data:e}))}),()=>{d=!0,document.removeEventListener("visibilitychange",f),window.removeEventListener("resize",v),g.current&&(clearTimeout(g.current),g.current=null),(null==i?void 0:i.readyState)===WebSocket.OPEN&&i.send(JSON.stringify({type:"terminal_unsubscribe"})),null==i||i.close(),e.dispose(),m.current=null,b.current=null}},[t,r,c,S]),(0,i.useEffect)(()=>{var e;let t=m.current;t&&(t.options&&(t.options.fontSize=u),null==(e=b.current)||e.fit(),v&&v.readyState===WebSocket.OPEN&&v.send(JSON.stringify({type:"terminal_resize",cols:t.cols,rows:t.rows})))},[u,v]);let N={disabled:{dot:"bg-amber-500",label:"Snapshot Fallback",detail:"Control mode is disabled for this client."},connecting:{dot:"bg-warning",label:"Connecting",detail:S>0?"Reconnecting to terminal stream.":"Waiting for terminal stream subscription."},connected:{dot:"bg-green-500",label:"Live",detail:"Interactive tmux control mode is active."},disconnected:{dot:"bg-red-500",label:"Disconnected",detail:"Terminal stream is not connected."},error:{dot:"bg-red-500",label:"Error",detail:"Terminal stream encountered an error."}}[w],C=e=>{v&&v.readyState===WebSocket.OPEN&&v.send(JSON.stringify({type:"terminal_input",data:e+"\n"}))};return(0,n.jsxs)("div",{className:"flex flex-col h-full ".concat(d),children:[(0,n.jsxs)("div",{className:"flex items-center justify-between px-4 py-2 bg-gray-800 text-white",children:[(0,n.jsxs)("div",{className:"flex items-center gap-2",children:[(0,n.jsx)("span",{className:"w-3 h-3 rounded-full ".concat(N.dot)}),(0,n.jsxs)("span",{className:"text-sm font-mono",children:[r," - ",t]}),(0,n.jsx)("span",{className:"rounded border border-gray-600 px-2 py-0.5 text-[11px] uppercase tracking-wide text-gray-300",children:N.label})]}),(0,n.jsxs)("div",{className:"flex items-center gap-2",children:[(0,n.jsx)("button",{onClick:()=>{f&&f.clear()},className:"px-2 py-1 text-xs bg-gray-700 hover:bg-gray-600 rounded",children:"Clear"}),(0,n.jsx)("button",{onClick:()=>C("clear"),disabled:"connected"!==w,className:"px-2 py-1 text-xs bg-gray-700 hover:bg-gray-600 rounded disabled:cursor-not-allowed disabled:opacity-50",children:"Clear Screen"})]})]}),(0,n.jsx)("div",{ref:p,className:"flex-1 bg-gray-900 p-2"}),(0,n.jsx)("div",{className:"border-t border-gray-700 bg-gray-900 px-4 py-2 text-xs text-gray-400",children:N.detail}),(0,n.jsx)("div",{className:"px-4 py-2 bg-gray-800 border-t border-gray-700",children:(0,n.jsxs)("div",{className:"flex gap-2",children:[(0,n.jsx)("button",{onClick:()=>C("ls -la"),disabled:"connected"!==w,className:"px-3 py-1 text-xs bg-accent-600 hover:bg-accent-700 text-white rounded disabled:cursor-not-allowed disabled:opacity-50",children:"ls -la"}),(0,n.jsx)("button",{onClick:()=>C("git status"),disabled:"connected"!==w,className:"px-3 py-1 text-xs bg-green-600 hover:bg-green-700 text-white rounded disabled:cursor-not-allowed disabled:opacity-50",children:"git status"}),(0,n.jsx)("button",{onClick:()=>C("pwd"),disabled:"connected"!==w,className:"px-3 py-1 text-xs bg-purple-600 hover:bg-purple-700 text-white rounded disabled:cursor-not-allowed disabled:opacity-50",children:"pwd"})]})})]})}},31055:e=>{self,e.exports=(()=>{"use strict";var e={6:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LinkComputer=t.WebLinkProvider=void 0,t.WebLinkProvider=class{constructor(e,t,r,n={}){this._terminal=e,this._regex=t,this._handler=r,this._options=n}provideLinks(e,t){let n=r.computeLink(e,this._regex,this._terminal,this._handler);t(this._addCallbacks(n))}_addCallbacks(e){return e.map(e=>(e.leave=this._options.leave,e.hover=(t,r)=>{if(this._options.hover){let{range:n}=e;this._options.hover(t,r,n)}},e))}};class r{static computeLink(e,t,n,i){let s,l=RegExp(t.source,(t.flags||"")+"g"),[o,a]=r._getWindowedLineStrings(e-1,n),d=o.join(""),c=[];for(;s=l.exec(d);){let e=s[0];try{let t=new URL(e),r=decodeURI(t.toString());if(e!==r&&e+"/"!==r)continue}catch(e){continue}let[t,l]=r._mapStrIdx(n,a,0,s.index),[o,d]=r._mapStrIdx(n,t,l,e.length);if(-1===t||-1===l||-1===o||-1===d)continue;let u={start:{x:l+1,y:t+1},end:{x:d,y:o+1}};c.push({range:u,text:e,activate:i})}return c}static _getWindowedLineStrings(e,t){let r,n=e,i=e,s=0,l="",o=[];if(r=t.buffer.active.getLine(e)){let e=r.translateToString(!0);if(r.isWrapped&&" "!==e[0]){for(s=0;(r=t.buffer.active.getLine(--n))&&s<2048&&(s+=(l=r.translateToString(!0)).length,o.push(l),r.isWrapped&&-1===l.indexOf(" ")););o.reverse()}for(o.push(e),s=0;(r=t.buffer.active.getLine(++i))&&r.isWrapped&&s<2048&&(s+=(l=r.translateToString(!0)).length,o.push(l),-1===l.indexOf(" ")););}return[o,n]}static _mapStrIdx(e,t,r,n){let i=e.buffer.active,s=i.getNullCell(),l=r;for(;n;){let e=i.getLine(t);if(!e)return[-1,-1];for(let r=l;r<e.length;++r){e.getCell(r,s);let l=s.getChars();if(s.getWidth()&&(n-=l.length||1,r===e.length-1&&""===l)){let e=i.getLine(t+1);e&&e.isWrapped&&(e.getCell(0,s),2===s.getWidth()&&(n+=1))}if(n<0)return[t,r]}t++,l=0}return[t,l]}}t.LinkComputer=r}},t={},r={};return(()=>{Object.defineProperty(r,"__esModule",{value:!0}),r.WebLinksAddon=void 0;let n=function r(n){var i=t[n];if(void 0!==i)return i.exports;var s=t[n]={exports:{}};return e[n](s,s.exports,r),s.exports}(6),i=/https?:[/]{2}[^\s"'!*(){}|\\\^<>`]*[^\s"':,.!?{}|\\\^~\[\]`()<>]/;function s(e,t){let r=window.open();if(r){try{r.opener=null}catch(e){}r.location.href=t}else console.warn("Opening link blocked as opener could not be cleared")}r.WebLinksAddon=class{constructor(e=s,t={}){this._handler=e,this._options=t}activate(e){this._terminal=e;let t=this._options,r=t.urlRegex||i;this._linkProvider=this._terminal.registerLinkProvider(new n.WebLinkProvider(this._terminal,r,this._handler,t))}dispose(){var e;null==(e=this._linkProvider)||e.dispose()}}})(),r})()},54299:e=>{self,e.exports=(()=>{"use strict";var e={};return Object.defineProperty(e,"__esModule",{value:!0}),e.FitAddon=void 0,e.FitAddon=class{activate(e){this._terminal=e}dispose(){}fit(){let e=this.proposeDimensions();if(!e||!this._terminal||isNaN(e.cols)||isNaN(e.rows))return;let t=this._terminal._core;this._terminal.rows===e.rows&&this._terminal.cols===e.cols||(t._renderService.clear(),this._terminal.resize(e.cols,e.rows))}proposeDimensions(){if(!this._terminal||!this._terminal.element||!this._terminal.element.parentElement)return;let e=this._terminal._core,t=e._renderService.dimensions;if(0===t.css.cell.width||0===t.css.cell.height)return;let r=0===this._terminal.options.scrollback?0:e.viewport.scrollBarWidth,n=window.getComputedStyle(this._terminal.element.parentElement),i=parseInt(n.getPropertyValue("height")),s=Math.max(0,parseInt(n.getPropertyValue("width"))),l=window.getComputedStyle(this._terminal.element),o=i-(parseInt(l.getPropertyValue("padding-top"))+parseInt(l.getPropertyValue("padding-bottom")));return{cols:Math.max(2,Math.floor((s-(parseInt(l.getPropertyValue("padding-right"))+parseInt(l.getPropertyValue("padding-left")))-r)/t.css.cell.width)),rows:Math.max(1,Math.floor(o/t.css.cell.height))}}},e})()}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8407],{3005:(e,t,a)=>{a.d(t,{y:()=>i});var r=a(95155);a(12115);var n=a(87531);let s={xs:"h-3 w-3",sm:"h-4 w-4",md:"h-5 w-5",lg:"h-6 w-6",xl:"h-8 w-8"},o={current:"",accent:"text-accent-600 dark:text-accent-400",muted:"text-muted-foreground"};function i(e){let{size:t="md",variant:a="current",className:i,...l}=e;return(0,r.jsxs)("svg",{className:(0,n.cn)("animate-spin",s[t],o[a],i),xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true",...l,children:[(0,r.jsx)("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),(0,r.jsx)("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]})}},5590:(e,t,a)=>{a.d(t,{j:()=>i,p:()=>l});var r=a(95155),n=a(12115),s=a(83101),o=a(87531);let i=(0,s.F)("flex w-full rounded-md border border-input bg-surface dark:bg-surface-2 text-surface-foreground shadow-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:border-ring disabled:cursor-not-allowed disabled:opacity-50",{variants:{inputSize:{sm:"h-8 px-2.5 py-1 text-sm",md:"px-3 py-2 text-sm",lg:"px-4 py-2.5 text-base"}},defaultVariants:{inputSize:"md"}}),l=n.forwardRef((e,t)=>{let{className:a,inputSize:n,type:s="text",...l}=e;return(0,r.jsx)("input",{ref:t,type:s,className:(0,o.cn)(i({inputSize:n}),a),...l})});l.displayName="Input"},9286:(e,t,a)=>{a.d(t,{O:()=>n});var r=a(12115);function n(e,t){let[a,n]=(0,r.useState)(e?"open":"closed");return e&&"open"!==a?n("open"):e||"open"!==a||n("exiting"),(0,r.useEffect)(()=>{if(e||"exiting"!==a)return;let r=setTimeout(()=>{n("closed")},t);return()=>clearTimeout(r)},[e,a,t]),{shouldRender:e||"closed"!==a,isExiting:!e&&"exiting"===a}}},9900:(e,t,a)=>{a.d(t,{$B:()=>l,LK:()=>o,Ys:()=>i,pX:()=>r,s7:()=>n,tX:()=>s});let r=2e3,n=1500,s=150,o=100,i=200,l=100},17848:(e,t,a)=>{a.d(t,{n:()=>n});var r=a(95155);function n(e){let{className:t="w-3.5 h-3.5",color:a}=e;return(0,r.jsx)("svg",{className:"".concat(t," flex-shrink-0"),viewBox:"0 0 24 24",fill:null!=a?a:"none",stroke:a?"none":"currentColor",strokeWidth:2*!a,"aria-hidden":"true",children:(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3 7v10a2 2 0 002 2h14a2 2 0 002-2V9a2 2 0 00-2-2h-6l-2-2H5a2 2 0 00-2 2z"})})}},23838:(e,t,a)=>{a.d(t,{Xi:()=>c,av:()=>u,j7:()=>d,tU:()=>l});var r=a(95155),n=a(12115),s=a(25667),o=a(87531);let i=n.createContext("underline"),l=n.forwardRef((e,t)=>{let{variant:a="underline",...n}=e;return(0,r.jsx)(i.Provider,{value:a,children:(0,r.jsx)(s.bL,{ref:t,...n})})});l.displayName="Tabs";let d=n.forwardRef((e,t)=>{let{className:a,...l}=e,d=n.useContext(i);return(0,r.jsx)(s.B8,{ref:t,className:(0,o.cn)("inline-flex items-center","pill"===d?"gap-1 rounded-lg bg-muted p-1":"gap-4 border-b border-border",a),...l})});d.displayName="TabsList";let c=n.forwardRef((e,t)=>{let{className:a,...l}=e,d=n.useContext(i);return(0,r.jsx)(s.l9,{ref:t,className:(0,o.cn)("inline-flex items-center justify-center whitespace-nowrap text-sm font-medium transition-colors","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring","disabled:pointer-events-none disabled:opacity-50","pill"===d?"rounded-md px-3 py-1.5 text-muted-foreground data-[state=active]:bg-surface data-[state=active]:text-surface-foreground data-[state=active]:shadow-sm":"-mb-px border-b-2 border-transparent px-1 py-2 text-muted-foreground hover:text-foreground data-[state=active]:border-accent-500 data-[state=active]:text-accent-600",a),...l})});c.displayName="TabsTrigger";let u=n.forwardRef((e,t)=>{let{className:a,...n}=e;return(0,r.jsx)(s.UC,{ref:t,className:(0,o.cn)("mt-2 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",a),...n})});u.displayName="TabsContent"},25840:(e,t,a)=>{a.d(t,{T:()=>o});var r=a(95155),n=a(12115),s=a(87531);let o=n.forwardRef((e,t)=>{let{className:a,...n}=e;return(0,r.jsx)("textarea",{ref:t,className:(0,s.cn)("flex min-h-[80px] w-full rounded-md border border-input bg-surface dark:bg-surface-2 px-3 py-2 text-sm text-surface-foreground shadow-sm","placeholder:text-muted-foreground","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:border-ring","disabled:cursor-not-allowed disabled:opacity-50",a),...n})});o.displayName="Textarea"},26232:(e,t,a)=>{a.d(t,{Hr:()=>b,Ht:()=>x,SQ:()=>f,_2:()=>m,lp:()=>g,mB:()=>p,rI:()=>c,ty:()=>u});var r=a(95155),n=a(12115),s=a(47971),o=a(5917),i=a(99051),l=a(59854),d=a(87531);let c=s.bL,u=s.l9;s.YJ;let f=n.forwardRef((e,t)=>{let{className:a,sideOffset:n=4,...o}=e;return(0,r.jsx)(s.ZL,{children:(0,r.jsx)(s.UC,{ref:t,sideOffset:n,style:{zIndex:l.M.POPOVER},className:(0,d.cn)("min-w-[8rem] overflow-hidden rounded-md border border-border bg-surface p-1 text-surface-foreground shadow-lg","data-[state=open]:animate-in data-[state=closed]:animate-out","data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0","data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95","data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2","data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",a),...o})})});f.displayName="DropdownMenuContent";let m=n.forwardRef((e,t)=>{let{className:a,inset:n,...o}=e;return(0,r.jsx)(s.q7,{ref:t,className:(0,d.cn)("relative flex cursor-pointer select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none","focus:bg-muted focus:text-surface-foreground","data-[disabled]:pointer-events-none data-[disabled]:opacity-50",n&&"pl-8",a),...o})});m.displayName="DropdownMenuItem",n.forwardRef((e,t)=>{let{className:a,children:n,checked:i,...l}=e;return(0,r.jsxs)(s.H_,{ref:t,checked:i,className:(0,d.cn)("relative flex cursor-pointer select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none","focus:bg-muted focus:text-surface-foreground","data-[disabled]:pointer-events-none data-[disabled]:opacity-50",a),...l,children:[(0,r.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,r.jsx)(s.VF,{children:(0,r.jsx)(o.A,{size:16,"aria-hidden":"true"})})}),n]})}).displayName="DropdownMenuCheckboxItem";let x=n.forwardRef((e,t)=>{let{className:a,children:n,...o}=e;return(0,r.jsxs)(s.hN,{ref:t,className:(0,d.cn)("relative flex cursor-pointer select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none","focus:bg-muted focus:text-surface-foreground","data-[disabled]:pointer-events-none data-[disabled]:opacity-50",a),...o,children:[(0,r.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,r.jsx)(s.VF,{children:(0,r.jsx)(i.A,{size:8,className:"fill-current","aria-hidden":"true"})})}),n]})});x.displayName="DropdownMenuRadioItem";let b=s.z6,g=n.forwardRef((e,t)=>{let{className:a,inset:n,...o}=e;return(0,r.jsx)(s.JU,{ref:t,className:(0,d.cn)("px-2 py-1.5 text-xs font-semibold text-muted-foreground",n&&"pl-8",a),...o})});g.displayName="DropdownMenuLabel";let p=n.forwardRef((e,t)=>{let{className:a,...n}=e;return(0,r.jsx)(s.wv,{ref:t,className:(0,d.cn)("-mx-1 my-1 h-px bg-border",a),...n})});p.displayName="DropdownMenuSeparator"},31166:(e,t,a)=>{a.d(t,{$:()=>l});var r=a(95155);a(12115);var n=a(83101),s=a(87531),o=a(3005);let i=(0,n.F)("inline-flex items-center justify-center px-4 py-2 rounded-md font-medium transition-all duration-200 touch-manipulation focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 ring-offset-background",{variants:{variant:{primary:"bg-accent-600 dark:bg-accent-500 text-white hover:bg-accent-700 dark:hover:bg-accent-600",secondary:"bg-muted text-foreground hover:bg-muted/80",danger:"bg-danger text-white hover:bg-danger/90",ghost:"bg-transparent text-foreground hover:bg-muted"},size:{sm:"px-3 py-1.5 text-sm",md:"",lg:"px-6 py-3 text-lg"},fullWidth:{true:"w-full",false:""}},defaultVariants:{variant:"primary",size:"md",fullWidth:!1}});function l(e){let{variant:t="primary",size:a="md",fullWidth:n=!1,loading:l=!1,disabled:d,className:c="",children:u,...f}=e,m=d||l,x=(0,s.cn)(i({variant:t,size:a,fullWidth:n}),!m&&"motion-safe:hover:-translate-y-0.5 motion-safe:active:translate-y-0",m&&"opacity-50 cursor-not-allowed",c);return(0,r.jsxs)("button",{className:x,disabled:m,...f,children:[l&&(0,r.jsx)(o.y,{size:"sm",className:"-ml-1 mr-2"}),u]})}},32209:(e,t,a)=>{a.d(t,{S:()=>d});var r=a(95155),n=a(12115),s=a(38162),o=a(7125),i=a(5917),l=a(87531);let d=n.forwardRef((e,t)=>{let{className:a,...n}=e;return(0,r.jsx)(s.bL,{ref:t,className:(0,l.cn)("peer inline-flex h-4 w-4 shrink-0 cursor-pointer items-center justify-center rounded-sm border border-input bg-surface text-surface-foreground shadow-sm transition-colors","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2","disabled:cursor-not-allowed disabled:opacity-50","data-[state=checked]:border-accent-600 data-[state=checked]:bg-accent-600 data-[state=checked]:text-white","data-[state=indeterminate]:border-accent-600 data-[state=indeterminate]:bg-accent-600 data-[state=indeterminate]:text-white",a),...n,children:(0,r.jsx)(s.C1,{className:"flex items-center justify-center text-current",children:"indeterminate"===n.checked?(0,r.jsx)(o.A,{className:"h-3 w-3",strokeWidth:3,"aria-hidden":"true"}):(0,r.jsx)(i.A,{className:"h-3 w-3",strokeWidth:3,"aria-hidden":"true"})})})});d.displayName="Checkbox"},36402:(e,t,a)=>{a.d(t,{SC:()=>f,TM:()=>l,aF:()=>c});var r=a(95155),n=a(12115),s=a(18955),o=a(94465),i=a(31166);function l(e){let{isOpen:t,title:a,description:n,confirmLabel:l,cancelLabel:d,variant:c="default",onConfirm:u,onCancel:f}=e,m=(0,s.c)("common"),x="danger"===c;return(0,r.jsx)(o.a,{isOpen:t,onClose:f,title:null!=a?a:m("confirmDialog.title"),size:"sm",showCloseButton:!1,children:(0,r.jsxs)("div",{className:"space-y-4","data-testid":"confirm-dialog",children:[(0,r.jsx)("p",{className:"text-sm text-foreground whitespace-pre-line",children:n}),(0,r.jsxs)("div",{className:"flex justify-end gap-3",children:[(0,r.jsx)(i.$,{type:"button",variant:"secondary",size:"sm",autoFocus:x,onClick:f,"data-testid":"confirm-dialog-cancel",children:null!=d?d:m("cancel")}),(0,r.jsx)(i.$,{type:"button",variant:x?"danger":"primary",size:"sm",autoFocus:!x,onClick:u,"data-testid":"confirm-dialog-confirm",children:null!=l?l:m("confirmDialog.confirm")})]})]})})}let d=(0,n.createContext)(null);function c(e){var t,a;let{children:s}=e,[o,i]=(0,n.useState)(null),c=(0,n.useRef)(null),u=(0,n.useRef)(null);(0,n.useEffect)(()=>{o&&(u.current=o.options)},[o]);let f=null!=(t=null==o?void 0:o.options)?t:u.current,m=(0,n.useCallback)(e=>new Promise(t=>{c.current=document.activeElement instanceof HTMLElement?document.activeElement:null,i(a=>(null==a||a.resolve(!1),{options:e,resolve:t}))}),[]),x=(0,n.useCallback)(e=>{var t;i(t=>(null==t||t.resolve(e),null)),null==(t=c.current)||t.focus(),c.current=null},[]);return(0,r.jsxs)(d.Provider,{value:m,children:[s,(0,r.jsx)(l,{isOpen:null!==o,title:null==f?void 0:f.title,description:null!=(a=null==f?void 0:f.description)?a:"",confirmLabel:null==f?void 0:f.confirmLabel,cancelLabel:null==f?void 0:f.cancelLabel,variant:null==f?void 0:f.variant,onConfirm:()=>x(!0),onCancel:()=>x(!1)})]})}let u=async()=>!1;function f(){var e;return null!=(e=(0,n.useContext)(d))?e:u}},40051:(e,t,a)=>{a.d(t,{E:()=>s});var r=a(95155);a(12115);var n=a(87531);function s(e){let{className:t,...a}=e;return(0,r.jsx)("div",{className:(0,n.cn)("animate-pulse rounded-md bg-muted",t),"aria-hidden":"true",...a})}},47972:(e,t,a)=>{a.d(t,{Wu:()=>c,ZB:()=>d,Zp:()=>i,aR:()=>l});var r=a(95155);a(12115);var n=a(83101),s=a(87531);let o=(0,n.F)("bg-surface text-surface-foreground rounded-lg border border-border shadow-sm",{variants:{variant:{default:"",elevated:"bg-gradient-to-b from-surface to-surface-2 shadow-md",interactive:"cursor-pointer transition-all duration-200 hover:border-accent-500 hover:shadow-md motion-safe:hover:-translate-y-0.5 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:border-accent-500 focus-visible:shadow-md motion-safe:focus-visible:-translate-y-0.5"},hover:{true:"transition-shadow duration-200 hover:shadow-md",false:""},interactive:{true:"cursor-pointer transition-all duration-200 hover:shadow-lg active:shadow-md motion-safe:hover:-translate-y-0.5 motion-safe:active:translate-y-0",false:""},padding:{none:"",sm:"p-3",md:"p-4",lg:"p-6"}},defaultVariants:{variant:"default",hover:!1,interactive:!1,padding:"md"}});function i(e){let{variant:t="default",hover:a=!1,interactive:n=!1,padding:i="md",className:l="",children:d,...c}=e;return(0,r.jsx)("div",{className:(0,s.cn)(o({variant:t,hover:a,interactive:n,padding:i}),l),...c,children:d})}function l(e){let{className:t="",children:a,...n}=e;return(0,r.jsx)("div",{className:(0,s.cn)("mb-3",t),...n,children:a})}function d(e){let{className:t="",children:a,...n}=e;return(0,r.jsx)("h3",{className:(0,s.cn)("text-lg font-semibold text-surface-foreground",t),...n,children:a})}function c(e){let{className:t="",children:a,...n}=e;return(0,r.jsx)("div",{className:(0,s.cn)(t),...n,children:a})}},48407:(e,t,a)=>{a.d(t,{Ex:()=>s.E,$n:()=>r.$,Zp:()=>n.Zp,Wu:()=>n.Wu,aR:()=>n.aR,ZB:()=>n.ZB,Sc:()=>b.S,TM:()=>d.TM,nF:()=>o.n,pd:()=>c.p,Jh:()=>l.a,z6:()=>y,CU:()=>j,l6:()=>L,gC:()=>T,eb:()=>O,bq:()=>S,yv:()=>M,EA:()=>f.E,y$:()=>m.y,md:()=>i.m,dO:()=>x.d,tU:()=>N.tU,av:()=>N.av,j7:()=>N.j7,Xi:()=>N.Xi,k_:()=>u.T,j1:()=>c.j,SC:()=>d.SC});var r=a(31166),n=a(47972),s=a(52799),o=a(17848),i=a(48481),l=a(94465),d=a(36402),c=a(5590),u=a(25840),f=a(40051),m=a(3005),x=a(91758),b=a(32209),g=a(95155),p=a(12115),h=a(24058),v=a(99051),w=a(87531);let y=p.forwardRef((e,t)=>{let{className:a,...r}=e;return(0,g.jsx)(h.bL,{ref:t,className:(0,w.cn)("grid gap-2",a),...r})});y.displayName="RadioGroup";let j=p.forwardRef((e,t)=>{let{className:a,...r}=e;return(0,g.jsx)(h.q7,{ref:t,className:(0,w.cn)("aspect-square h-4 w-4 shrink-0 cursor-pointer rounded-full border border-input bg-surface text-accent-600 shadow-sm","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2","disabled:cursor-not-allowed disabled:opacity-50","data-[state=checked]:border-accent-600",a),...r,children:(0,g.jsx)(h.C1,{className:"flex items-center justify-center",children:(0,g.jsx)(v.A,{className:"h-2 w-2 fill-accent-600 text-accent-600","aria-hidden":"true"})})})});j.displayName="RadioGroupItem";var N=a(23838),k=a(55644),C=a(24033),E=a(12108),R=a(5917),z=a(59854);let L=k.bL;k.YJ;let M=k.WT,S=p.forwardRef((e,t)=>{let{className:a,children:r,...n}=e;return(0,g.jsxs)(k.l9,{ref:t,className:(0,w.cn)("flex h-9 w-full items-center justify-between gap-2 rounded-md border border-input bg-surface dark:bg-surface-2 px-3 py-2 text-sm text-surface-foreground shadow-sm","placeholder:text-muted-foreground","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:border-ring","disabled:cursor-not-allowed disabled:opacity-50","[&>span]:line-clamp-1",a),...n,children:[r,(0,g.jsx)(k.In,{asChild:!0,children:(0,g.jsx)(C.A,{size:16,className:"opacity-60","aria-hidden":"true"})})]})});S.displayName="SelectTrigger";let T=p.forwardRef((e,t)=>{let{className:a,children:r,position:n="popper",...s}=e;return(0,g.jsx)(k.ZL,{children:(0,g.jsxs)(k.UC,{ref:t,position:n,style:{zIndex:z.M.POPOVER},className:(0,w.cn)("relative max-h-[--radix-select-content-available-height] min-w-[8rem] overflow-hidden rounded-md border border-border bg-surface text-surface-foreground shadow-lg","data-[state=open]:animate-in data-[state=closed]:animate-out","data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0","data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95","data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2","data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2","popper"===n&&"data-[side=bottom]:translate-y-1 data-[side=top]:-translate-y-1",a),...s,children:[(0,g.jsx)(k.PP,{className:"flex h-6 items-center justify-center",children:(0,g.jsx)(E.A,{size:16,"aria-hidden":"true"})}),(0,g.jsx)(k.LM,{className:(0,w.cn)("p-1","popper"===n&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:r}),(0,g.jsx)(k.wn,{className:"flex h-6 items-center justify-center",children:(0,g.jsx)(C.A,{size:16,"aria-hidden":"true"})})]})})});T.displayName="SelectContent",p.forwardRef((e,t)=>{let{className:a,...r}=e;return(0,g.jsx)(k.JU,{ref:t,className:(0,w.cn)("px-2 py-1.5 text-xs font-semibold text-muted-foreground",a),...r})}).displayName="SelectLabel";let O=p.forwardRef((e,t)=>{let{className:a,children:r,...n}=e;return(0,g.jsxs)(k.q7,{ref:t,className:(0,w.cn)("relative flex w-full cursor-pointer select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none","focus:bg-muted focus:text-surface-foreground","data-[disabled]:pointer-events-none data-[disabled]:opacity-50",a),...n,children:[(0,g.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,g.jsx)(k.VF,{children:(0,g.jsx)(R.A,{size:16,"aria-hidden":"true"})})}),(0,g.jsx)(k.p4,{children:r})]})});O.displayName="SelectItem",p.forwardRef((e,t)=>{let{className:a,...r}=e;return(0,g.jsx)(k.wv,{ref:t,className:(0,w.cn)("-mx-1 my-1 h-px bg-border",a),...r})}).displayName="SelectSeparator";var A=a(47520);A.Kq,A.bL,A.l9,p.forwardRef((e,t)=>{let{className:a,sideOffset:r=4,children:n,...s}=e;return(0,g.jsx)(A.ZL,{children:(0,g.jsxs)(A.UC,{ref:t,sideOffset:r,style:{zIndex:z.M.POPOVER},className:(0,w.cn)("overflow-hidden rounded-md bg-foreground px-2.5 py-1.5 text-xs text-background shadow-md","animate-in fade-in-0 zoom-in-95","data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95","data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2","data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",a),...s,children:[n,(0,g.jsx)(A.i3,{className:"fill-foreground"})]})})}).displayName="TooltipContent",a(26232),a(79651)},48481:(e,t,a)=>{a.d(t,{m:()=>u});var r=a(95155);a(12115);var n=a(18955),s=a(87531);let o={idle:{colorClass:"bg-muted-foreground",labelKey:"status.idle"},ready:{colorClass:"bg-success",labelKey:"status.ready"},running:{colorClass:"bg-success text-success ring-2 ring-success/40",animationClass:"animate-status-glow",labelKey:"status.running"},generating:{colorClass:"bg-success text-success ring-2 ring-success/40",animationClass:"animate-status-glow",labelKey:"status.generating"},waiting:{colorClass:"bg-warning text-warning ring-4 ring-warning/50",animationClass:"animate-status-attention",labelKey:"status.waiting"},error:{colorClass:"bg-danger",labelKey:"status.error"}},i={colorClass:"bg-warning text-warning ring-2 ring-warning/40",animationClass:"animate-status-glow",labelKey:"status.waiting"},l=new Set(["menu","unclassified"]),d={colorClass:"bg-muted-foreground",labelKey:"status.unknown"},c={sm:"w-2 h-2",md:"w-2.5 h-2.5",lg:"w-3 h-3"};function u(e){let{status:t,size:a="md",label:u,waitingKind:f,className:m,...x}=e,b=(0,n.c)("common"),g=function(e,t){var a;let r=null!=(a=o[e])?a:d;return"waiting"!==e?r:t&&l.has(t)?i:r}(t,f),p=null!=u?u:b(g.labelKey);return(0,r.jsx)("span",{className:(0,s.cn)("inline-block flex-shrink-0 rounded-full",c[a],g.colorClass,g.animationClass,m),title:p,"aria-label":p,...x})}},52799:(e,t,a)=>{a.d(t,{E:()=>l});var r=a(95155);a(12115);var n=a(83101),s=a(87531);let o=(0,n.F)("inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium",{variants:{variant:{success:"bg-success-subtle text-success-foreground",warning:"bg-warning-subtle text-warning-foreground",error:"bg-danger-subtle text-danger-foreground",info:"bg-accent-100 dark:bg-accent-900 text-accent-800 dark:text-accent-300",gray:"bg-muted text-muted-foreground"}},defaultVariants:{variant:"gray"}}),i={success:"bg-success",warning:"bg-warning",error:"bg-danger",info:"bg-info",gray:"bg-muted-foreground"};function l(e){let{variant:t="gray",dot:a=!1,className:n="",children:l,...d}=e;return(0,r.jsxs)("span",{className:(0,s.cn)(o({variant:t}),n),...d,children:[a&&(0,r.jsx)("span",{className:(0,s.cn)("mr-1.5 inline-block h-2 w-2 rounded-full",i[t]),"aria-hidden":"true"}),l]})}},59854:(e,t,a)=>{a.d(t,{M:()=>r});let r={DROPDOWN:10,SIDEBAR:30,MODAL:50,MAXIMIZED_EDITOR:55,TOAST:60,POPOVER:65,CONTEXT_MENU:70}},77873:(e,t,a)=>{function r(e){return"Escape"===e.key&&!e.defaultPrevented}a.d(t,{DO:()=>d,SG:()=>u,V$:()=>r,Y9:()=>c,cE:()=>o,en:()=>i,sr:()=>s});let n=new WeakSet;function s(e){n.add(e)}function o(e){return r(e)&&!n.has(e)}let i="data-viewport-layer";function l(e){let t=Number.parseInt(getComputedStyle(e).zIndex,10);return Number.isNaN(t)?null:t}function d(e){let t=l(e);return null!==t&&Array.from(document.querySelectorAll("[".concat(i,"]"))).some(a=>{if(a.contains(e)||e.contains(a))return!1;let r=l(a);return null!==r&&(r>t||r===t&&(e.compareDocumentPosition(a)&Node.DOCUMENT_POSITION_FOLLOWING)!=0)})}function c(e){let t=e.closest("[".concat(i,"]"));return!!t&&(!!d(t)||Array.from(t.querySelectorAll("[".concat(i,"]"))).some(t=>!t.contains(e)))}function u(e){if(e.closest("[".concat(i,"]")))return c(e);let t=e;for(;t.parentElement&&t.parentElement!==document.body;)t=t.parentElement;return null!==l(t)?d(t):null!==document.querySelector("[".concat(i,"]"))}},79651:(e,t,a)=>{a.d(t,{u:()=>s});var r=a(95155);a(12115);var n=a(87531);function s(e){let{className:t,children:a,...s}=e;return(0,r.jsx)("kbd",{className:(0,n.cn)("inline-flex h-5 min-w-[1.25rem] items-center justify-center rounded-sm border border-border bg-surface px-1","font-mono text-[10px] font-medium leading-none text-muted-foreground",t),...s,children:a})}},87531:(e,t,a)=>{a.d(t,{cn:()=>s});var r=a(2821),n=a(75889);function s(){for(var e=arguments.length,t=Array(e),a=0;a<e;a++)t[a]=arguments[a];return(0,n.QP)((0,r.$)(t))}},91758:(e,t,a)=>{a.d(t,{d:()=>i});var r=a(95155),n=a(12115),s=a(27599),o=a(87531);let i=n.forwardRef((e,t)=>{let{className:a,...n}=e;return(0,r.jsx)(s.bL,{ref:t,className:(0,o.cn)("peer inline-flex h-5 w-9 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent shadow-sm transition-colors","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2","disabled:cursor-not-allowed disabled:opacity-50","data-[state=checked]:bg-accent-600 data-[state=unchecked]:bg-muted",a),...n,children:(0,r.jsx)(s.zi,{className:(0,o.cn)("pointer-events-none block h-4 w-4 rounded-full bg-surface shadow-lg ring-0 transition-transform","data-[state=checked]:translate-x-4 data-[state=unchecked]:translate-x-0")})})});i.displayName="Switch"},92539:(e,t,a)=>{a.d(t,{r:()=>n});var r=a(12115);function n(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{active:t=!0,initialFocus:a=!0,restoreFocus:n=!0}=e,s=(0,r.useRef)(null);return(0,r.useEffect)(()=>{if(!t)return;let e=s.current;if(!e)return;let r=document.activeElement instanceof HTMLElement?document.activeElement:null,o=null!==r&&e.contains(r);a&&!o&&(e.hasAttribute("tabindex")||e.setAttribute("tabindex","-1"),e.focus());let i=t=>{if("Tab"!==t.key)return;let a=Array.from(e.querySelectorAll('a[href],area[href],button:not([disabled]),input:not([disabled]),select:not([disabled]),textarea:not([disabled]),iframe,audio[controls],video[controls],[contenteditable]:not([contenteditable="false"]),[tabindex]:not([tabindex="-1"])')).filter(e=>!e.hasAttribute("hidden")&&"true"!==e.getAttribute("aria-hidden"));if(0===a.length){t.preventDefault(),e.focus();return}let r=a[0],n=a[a.length-1],s=document.activeElement instanceof HTMLElement?document.activeElement:null,o=s===e;if(!s||!e.contains(s)){t.preventDefault(),(t.shiftKey?n:r).focus();return}t.shiftKey?(s===r||o)&&(t.preventDefault(),n.focus()):(s===n||o)&&(t.preventDefault(),r.focus())};return document.addEventListener("keydown",i),()=>{document.removeEventListener("keydown",i),n&&!o&&r&&document.contains(r)&&r.focus()}},[t,a,n]),s}},94465:(e,t,a)=>{a.d(t,{a:()=>b});var r=a(95155),n=a(12115),s=a(47650),o=a(18955),i=a(83101),l=a(59854),d=a(9900),c=a(9286),u=a(92539),f=a(87531),m=a(77873);let x=(0,i.F)("",{variants:{size:{sm:"max-w-[calc(100vw-2rem)] sm:max-w-md",md:"max-w-[calc(100vw-2rem)] sm:max-w-2xl",lg:"max-w-[calc(100vw-2rem)] sm:max-w-4xl",xl:"max-w-[calc(100vw-2rem)] sm:max-w-6xl",full:"max-w-[calc(100vw-2rem)] sm:max-w-[95vw]"}},defaultVariants:{size:"lg"}});function b(e){let{isOpen:t,onClose:a,title:i,children:b,size:g="lg",showCloseButton:p=!0,disableClose:h=!1}=e,v=(0,o.c)("common"),w=(0,n.useId)(),y=(0,u.r)({active:t}),{shouldRender:j,isExiting:N}=(0,c.O)(t,d.Ys),k=N?"closed":"open",C=(0,n.useRef)(!1),E=(0,n.useRef)(!1);return((0,n.useEffect)(()=>{if(h)return;let e=e=>{(0,m.cE)(e)&&t&&a()};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[t,a,h]),(0,n.useEffect)(()=>(t?document.body.style.overflow="hidden":document.body.style.overflow="unset",()=>{document.body.style.overflow="unset"}),[t]),j)?(0,s.createPortal)((0,r.jsxs)("div",{className:"fixed inset-0 overflow-y-auto",style:{zIndex:l.M.MODAL},children:[(0,r.jsx)("div",{"data-state":k,"aria-hidden":"true",className:"fixed inset-0 bg-black/50 transition-opacity data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:duration-200 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:duration-200 data-[state=closed]:fill-mode-forwards"}),(0,r.jsx)("div",{"data-testid":"modal-backdrop-surface",className:"relative flex min-h-full items-center justify-center p-2 sm:p-4",onMouseDown:e=>{C.current=e.target===e.currentTarget},onMouseUp:e=>{E.current=e.target===e.currentTarget},onClick:e=>{let t=C.current,r=E.current;C.current=!1,E.current=!1,t&&r&&!h&&!N&&e.target===e.currentTarget&&a()},children:(0,r.jsxs)("div",{ref:y,"data-state":k,"data-testid":"modal-panel",role:"dialog","aria-modal":"true","aria-labelledby":i?w:void 0,tabIndex:-1,className:(0,f.cn)("relative w-full",x({size:g}),"max-h-[calc(100vh-1rem)] sm:max-h-[calc(100vh-2rem)] flex flex-col bg-surface rounded-lg shadow-xl transform transition-all","data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 data-[state=open]:duration-200","data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=closed]:duration-200 data-[state=closed]:fill-mode-forwards"),children:[(i||p)&&(0,r.jsxs)("div",{className:"flex items-center justify-between px-4 sm:px-6 py-3 sm:py-4 border-b border-border flex-shrink-0",children:[(0,r.jsx)("h3",{id:w,className:"text-base sm:text-lg font-semibold text-foreground truncate pr-2",children:i}),p&&(0,r.jsx)("button",{onClick:a,"aria-label":v("close"),className:"text-muted-foreground hover:text-foreground transition-colors flex-shrink-0 touch-manipulation",children:(0,r.jsx)("svg",{className:"w-5 h-5 sm:w-6 sm:h-6",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]}),(0,r.jsx)("div",{className:"px-4 sm:px-6 py-3 sm:py-4 overflow-y-auto flex-1 min-h-0",children:b})]})})]}),document.body):null}}}]);
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8407],{3005:(e,t,a)=>{a.d(t,{y:()=>i});var r=a(95155);a(12115);var n=a(87531);let s={xs:"h-3 w-3",sm:"h-4 w-4",md:"h-5 w-5",lg:"h-6 w-6",xl:"h-8 w-8"},o={current:"",accent:"text-accent-600 dark:text-accent-400",muted:"text-muted-foreground"};function i(e){let{size:t="md",variant:a="current",className:i,...l}=e;return(0,r.jsxs)("svg",{className:(0,n.cn)("animate-spin",s[t],o[a],i),xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true",...l,children:[(0,r.jsx)("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),(0,r.jsx)("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]})}},5590:(e,t,a)=>{a.d(t,{j:()=>i,p:()=>l});var r=a(95155),n=a(12115),s=a(83101),o=a(87531);let i=(0,s.F)("flex w-full rounded-md border border-input bg-surface dark:bg-surface-2 text-surface-foreground shadow-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:border-ring disabled:cursor-not-allowed disabled:opacity-50",{variants:{inputSize:{sm:"h-8 px-2.5 py-1 text-sm",md:"px-3 py-2 text-sm",lg:"px-4 py-2.5 text-base"}},defaultVariants:{inputSize:"md"}}),l=n.forwardRef((e,t)=>{let{className:a,inputSize:n,type:s="text",...l}=e;return(0,r.jsx)("input",{ref:t,type:s,className:(0,o.cn)(i({inputSize:n}),a),...l})});l.displayName="Input"},9286:(e,t,a)=>{a.d(t,{O:()=>n});var r=a(12115);function n(e,t){let[a,n]=(0,r.useState)(e?"open":"closed");return e&&"open"!==a?n("open"):e||"open"!==a||n("exiting"),(0,r.useEffect)(()=>{if(e||"exiting"!==a)return;let r=setTimeout(()=>{n("closed")},t);return()=>clearTimeout(r)},[e,a,t]),{shouldRender:e||"closed"!==a,isExiting:!e&&"exiting"===a}}},9900:(e,t,a)=>{a.d(t,{$B:()=>l,LK:()=>o,Ys:()=>i,pX:()=>r,s7:()=>n,tX:()=>s});let r=2e3,n=1500,s=150,o=100,i=200,l=100},17848:(e,t,a)=>{a.d(t,{n:()=>n});var r=a(95155);function n(e){let{className:t="w-3.5 h-3.5",color:a}=e;return(0,r.jsx)("svg",{className:"".concat(t," flex-shrink-0"),viewBox:"0 0 24 24",fill:null!=a?a:"none",stroke:a?"none":"currentColor",strokeWidth:2*!a,"aria-hidden":"true",children:(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3 7v10a2 2 0 002 2h14a2 2 0 002-2V9a2 2 0 00-2-2h-6l-2-2H5a2 2 0 00-2 2z"})})}},23838:(e,t,a)=>{a.d(t,{Xi:()=>c,av:()=>u,j7:()=>d,tU:()=>l});var r=a(95155),n=a(12115),s=a(25667),o=a(87531);let i=n.createContext("underline"),l=n.forwardRef((e,t)=>{let{variant:a="underline",...n}=e;return(0,r.jsx)(i.Provider,{value:a,children:(0,r.jsx)(s.bL,{ref:t,...n})})});l.displayName="Tabs";let d=n.forwardRef((e,t)=>{let{className:a,...l}=e,d=n.useContext(i);return(0,r.jsx)(s.B8,{ref:t,className:(0,o.cn)("inline-flex items-center","pill"===d?"gap-1 rounded-lg bg-muted p-1":"gap-4 border-b border-border",a),...l})});d.displayName="TabsList";let c=n.forwardRef((e,t)=>{let{className:a,...l}=e,d=n.useContext(i);return(0,r.jsx)(s.l9,{ref:t,className:(0,o.cn)("inline-flex items-center justify-center whitespace-nowrap text-sm font-medium transition-colors","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring","disabled:pointer-events-none disabled:opacity-50","pill"===d?"rounded-md px-3 py-1.5 text-muted-foreground data-[state=active]:bg-surface data-[state=active]:text-surface-foreground data-[state=active]:shadow-sm":"-mb-px border-b-2 border-transparent px-1 py-2 text-muted-foreground hover:text-foreground data-[state=active]:border-accent-500 data-[state=active]:text-accent-600",a),...l})});c.displayName="TabsTrigger";let u=n.forwardRef((e,t)=>{let{className:a,...n}=e;return(0,r.jsx)(s.UC,{ref:t,className:(0,o.cn)("mt-2 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",a),...n})});u.displayName="TabsContent"},25840:(e,t,a)=>{a.d(t,{T:()=>o});var r=a(95155),n=a(12115),s=a(87531);let o=n.forwardRef((e,t)=>{let{className:a,...n}=e;return(0,r.jsx)("textarea",{ref:t,className:(0,s.cn)("flex min-h-[80px] w-full rounded-md border border-input bg-surface dark:bg-surface-2 px-3 py-2 text-sm text-surface-foreground shadow-sm","placeholder:text-muted-foreground","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:border-ring","disabled:cursor-not-allowed disabled:opacity-50",a),...n})});o.displayName="Textarea"},26232:(e,t,a)=>{a.d(t,{Hr:()=>b,Ht:()=>x,SQ:()=>f,_2:()=>m,lp:()=>g,mB:()=>p,rI:()=>c,ty:()=>u});var r=a(95155),n=a(12115),s=a(47971),o=a(5917),i=a(99051),l=a(59854),d=a(87531);let c=s.bL,u=s.l9;s.YJ;let f=n.forwardRef((e,t)=>{let{className:a,sideOffset:n=4,...o}=e;return(0,r.jsx)(s.ZL,{children:(0,r.jsx)(s.UC,{ref:t,sideOffset:n,style:{zIndex:l.M.POPOVER},className:(0,d.cn)("min-w-[8rem] overflow-hidden rounded-md border border-border bg-surface p-1 text-surface-foreground shadow-lg","data-[state=open]:animate-in data-[state=closed]:animate-out","data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0","data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95","data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2","data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",a),...o})})});f.displayName="DropdownMenuContent";let m=n.forwardRef((e,t)=>{let{className:a,inset:n,...o}=e;return(0,r.jsx)(s.q7,{ref:t,className:(0,d.cn)("relative flex cursor-pointer select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none","focus:bg-muted focus:text-surface-foreground","data-[disabled]:pointer-events-none data-[disabled]:opacity-50",n&&"pl-8",a),...o})});m.displayName="DropdownMenuItem",n.forwardRef((e,t)=>{let{className:a,children:n,checked:i,...l}=e;return(0,r.jsxs)(s.H_,{ref:t,checked:i,className:(0,d.cn)("relative flex cursor-pointer select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none","focus:bg-muted focus:text-surface-foreground","data-[disabled]:pointer-events-none data-[disabled]:opacity-50",a),...l,children:[(0,r.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,r.jsx)(s.VF,{children:(0,r.jsx)(o.A,{size:16,"aria-hidden":"true"})})}),n]})}).displayName="DropdownMenuCheckboxItem";let x=n.forwardRef((e,t)=>{let{className:a,children:n,...o}=e;return(0,r.jsxs)(s.hN,{ref:t,className:(0,d.cn)("relative flex cursor-pointer select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none","focus:bg-muted focus:text-surface-foreground","data-[disabled]:pointer-events-none data-[disabled]:opacity-50",a),...o,children:[(0,r.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,r.jsx)(s.VF,{children:(0,r.jsx)(i.A,{size:8,className:"fill-current","aria-hidden":"true"})})}),n]})});x.displayName="DropdownMenuRadioItem";let b=s.z6,g=n.forwardRef((e,t)=>{let{className:a,inset:n,...o}=e;return(0,r.jsx)(s.JU,{ref:t,className:(0,d.cn)("px-2 py-1.5 text-xs font-semibold text-muted-foreground",n&&"pl-8",a),...o})});g.displayName="DropdownMenuLabel";let p=n.forwardRef((e,t)=>{let{className:a,...n}=e;return(0,r.jsx)(s.wv,{ref:t,className:(0,d.cn)("-mx-1 my-1 h-px bg-border",a),...n})});p.displayName="DropdownMenuSeparator"},31166:(e,t,a)=>{a.d(t,{$:()=>l});var r=a(95155);a(12115);var n=a(83101),s=a(87531),o=a(3005);let i=(0,n.F)("inline-flex items-center justify-center px-4 py-2 rounded-md font-medium transition-all duration-200 touch-manipulation focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 ring-offset-background",{variants:{variant:{primary:"bg-accent-600 dark:bg-accent-500 text-white hover:bg-accent-700 dark:hover:bg-accent-600",secondary:"bg-muted text-foreground hover:bg-muted/80",danger:"bg-danger text-white hover:bg-danger/90",ghost:"bg-transparent text-foreground hover:bg-muted"},size:{sm:"px-3 py-1.5 text-sm",md:"",lg:"px-6 py-3 text-lg"},fullWidth:{true:"w-full",false:""}},defaultVariants:{variant:"primary",size:"md",fullWidth:!1}});function l(e){let{variant:t="primary",size:a="md",fullWidth:n=!1,loading:l=!1,disabled:d,className:c="",children:u,...f}=e,m=d||l,x=(0,s.cn)(i({variant:t,size:a,fullWidth:n}),!m&&"motion-safe:hover:-translate-y-0.5 motion-safe:active:translate-y-0",m&&"opacity-50 cursor-not-allowed",c);return(0,r.jsxs)("button",{className:x,disabled:m,...f,children:[l&&(0,r.jsx)(o.y,{size:"sm",className:"-ml-1 mr-2"}),u]})}},32209:(e,t,a)=>{a.d(t,{S:()=>d});var r=a(95155),n=a(12115),s=a(38162),o=a(7125),i=a(5917),l=a(87531);let d=n.forwardRef((e,t)=>{let{className:a,...n}=e;return(0,r.jsx)(s.bL,{ref:t,className:(0,l.cn)("peer inline-flex h-4 w-4 shrink-0 cursor-pointer items-center justify-center rounded-sm border border-input bg-surface text-surface-foreground shadow-sm transition-colors","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2","disabled:cursor-not-allowed disabled:opacity-50","data-[state=checked]:border-accent-600 data-[state=checked]:bg-accent-600 data-[state=checked]:text-white","data-[state=indeterminate]:border-accent-600 data-[state=indeterminate]:bg-accent-600 data-[state=indeterminate]:text-white",a),...n,children:(0,r.jsx)(s.C1,{className:"flex items-center justify-center text-current",children:"indeterminate"===n.checked?(0,r.jsx)(o.A,{className:"h-3 w-3",strokeWidth:3,"aria-hidden":"true"}):(0,r.jsx)(i.A,{className:"h-3 w-3",strokeWidth:3,"aria-hidden":"true"})})})});d.displayName="Checkbox"},36402:(e,t,a)=>{a.d(t,{SC:()=>f,TM:()=>l,aF:()=>c});var r=a(95155),n=a(12115),s=a(18955),o=a(94465),i=a(31166);function l(e){let{isOpen:t,title:a,description:n,confirmLabel:l,cancelLabel:d,variant:c="default",onConfirm:u,onCancel:f}=e,m=(0,s.c)("common"),x="danger"===c;return(0,r.jsx)(o.a,{isOpen:t,onClose:f,title:null!=a?a:m("confirmDialog.title"),size:"sm",showCloseButton:!1,children:(0,r.jsxs)("div",{className:"space-y-4","data-testid":"confirm-dialog",children:[(0,r.jsx)("p",{className:"text-sm text-foreground whitespace-pre-line",children:n}),(0,r.jsxs)("div",{className:"flex justify-end gap-3",children:[(0,r.jsx)(i.$,{type:"button",variant:"secondary",size:"sm",autoFocus:x,onClick:f,"data-testid":"confirm-dialog-cancel",children:null!=d?d:m("cancel")}),(0,r.jsx)(i.$,{type:"button",variant:x?"danger":"primary",size:"sm",autoFocus:!x,onClick:u,"data-testid":"confirm-dialog-confirm",children:null!=l?l:m("confirmDialog.confirm")})]})]})})}let d=(0,n.createContext)(null);function c(e){var t,a;let{children:s}=e,[o,i]=(0,n.useState)(null),c=(0,n.useRef)(null),u=(0,n.useRef)(null);(0,n.useEffect)(()=>{o&&(u.current=o.options)},[o]);let f=null!=(t=null==o?void 0:o.options)?t:u.current,m=(0,n.useCallback)(e=>new Promise(t=>{c.current=document.activeElement instanceof HTMLElement?document.activeElement:null,i(a=>(null==a||a.resolve(!1),{options:e,resolve:t}))}),[]),x=(0,n.useCallback)(e=>{var t;i(t=>(null==t||t.resolve(e),null)),null==(t=c.current)||t.focus(),c.current=null},[]);return(0,r.jsxs)(d.Provider,{value:m,children:[s,(0,r.jsx)(l,{isOpen:null!==o,title:null==f?void 0:f.title,description:null!=(a=null==f?void 0:f.description)?a:"",confirmLabel:null==f?void 0:f.confirmLabel,cancelLabel:null==f?void 0:f.cancelLabel,variant:null==f?void 0:f.variant,onConfirm:()=>x(!0),onCancel:()=>x(!1)})]})}let u=async()=>!1;function f(){var e;return null!=(e=(0,n.useContext)(d))?e:u}},40051:(e,t,a)=>{a.d(t,{E:()=>s});var r=a(95155);a(12115);var n=a(87531);function s(e){let{className:t,...a}=e;return(0,r.jsx)("div",{className:(0,n.cn)("animate-pulse rounded-md bg-muted",t),"aria-hidden":"true",...a})}},47972:(e,t,a)=>{a.d(t,{Wu:()=>c,ZB:()=>d,Zp:()=>i,aR:()=>l});var r=a(95155);a(12115);var n=a(83101),s=a(87531);let o=(0,n.F)("bg-surface text-surface-foreground rounded-lg border border-border shadow-sm",{variants:{variant:{default:"",elevated:"bg-gradient-to-b from-surface to-surface-2 shadow-md",interactive:"cursor-pointer transition-all duration-200 hover:border-accent-500 hover:shadow-md motion-safe:hover:-translate-y-0.5 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:border-accent-500 focus-visible:shadow-md motion-safe:focus-visible:-translate-y-0.5"},hover:{true:"transition-shadow duration-200 hover:shadow-md",false:""},interactive:{true:"cursor-pointer transition-all duration-200 hover:shadow-lg active:shadow-md motion-safe:hover:-translate-y-0.5 motion-safe:active:translate-y-0",false:""},padding:{none:"",sm:"p-3",md:"p-4",lg:"p-6"}},defaultVariants:{variant:"default",hover:!1,interactive:!1,padding:"md"}});function i(e){let{variant:t="default",hover:a=!1,interactive:n=!1,padding:i="md",className:l="",children:d,...c}=e;return(0,r.jsx)("div",{className:(0,s.cn)(o({variant:t,hover:a,interactive:n,padding:i}),l),...c,children:d})}function l(e){let{className:t="",children:a,...n}=e;return(0,r.jsx)("div",{className:(0,s.cn)("mb-3",t),...n,children:a})}function d(e){let{className:t="",children:a,...n}=e;return(0,r.jsx)("h3",{className:(0,s.cn)("text-lg font-semibold text-surface-foreground",t),...n,children:a})}function c(e){let{className:t="",children:a,...n}=e;return(0,r.jsx)("div",{className:(0,s.cn)(t),...n,children:a})}},48407:(e,t,a)=>{a.d(t,{Ex:()=>s.E,$n:()=>r.$,Zp:()=>n.Zp,Wu:()=>n.Wu,aR:()=>n.aR,ZB:()=>n.ZB,Sc:()=>b.S,TM:()=>d.TM,nF:()=>o.n,pd:()=>c.p,Jh:()=>l.a,z6:()=>y,CU:()=>j,l6:()=>L,gC:()=>T,eb:()=>A,bq:()=>S,yv:()=>M,EA:()=>f.E,y$:()=>m.y,md:()=>i.m,dO:()=>x.d,tU:()=>N.tU,av:()=>N.av,j7:()=>N.j7,Xi:()=>N.Xi,k_:()=>u.T,j1:()=>c.j,SC:()=>d.SC});var r=a(31166),n=a(47972),s=a(52799),o=a(17848),i=a(48481),l=a(94465),d=a(36402),c=a(5590),u=a(25840),f=a(40051),m=a(3005),x=a(91758),b=a(32209),g=a(95155),p=a(12115),h=a(24058),v=a(99051),w=a(87531);let y=p.forwardRef((e,t)=>{let{className:a,...r}=e;return(0,g.jsx)(h.bL,{ref:t,className:(0,w.cn)("grid gap-2",a),...r})});y.displayName="RadioGroup";let j=p.forwardRef((e,t)=>{let{className:a,...r}=e;return(0,g.jsx)(h.q7,{ref:t,className:(0,w.cn)("aspect-square h-4 w-4 shrink-0 cursor-pointer rounded-full border border-input bg-surface text-accent-600 shadow-sm","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2","disabled:cursor-not-allowed disabled:opacity-50","data-[state=checked]:border-accent-600",a),...r,children:(0,g.jsx)(h.C1,{className:"flex items-center justify-center",children:(0,g.jsx)(v.A,{className:"h-2 w-2 fill-accent-600 text-accent-600","aria-hidden":"true"})})})});j.displayName="RadioGroupItem";var N=a(23838),k=a(55644),C=a(24033),E=a(12108),R=a(5917),z=a(59854);let L=k.bL;k.YJ;let M=k.WT,S=p.forwardRef((e,t)=>{let{className:a,children:r,...n}=e;return(0,g.jsxs)(k.l9,{ref:t,className:(0,w.cn)("flex h-9 w-full items-center justify-between gap-2 rounded-md border border-input bg-surface dark:bg-surface-2 px-3 py-2 text-sm text-surface-foreground shadow-sm","placeholder:text-muted-foreground","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:border-ring","disabled:cursor-not-allowed disabled:opacity-50","[&>span]:line-clamp-1",a),...n,children:[r,(0,g.jsx)(k.In,{asChild:!0,children:(0,g.jsx)(C.A,{size:16,className:"opacity-60","aria-hidden":"true"})})]})});S.displayName="SelectTrigger";let T=p.forwardRef((e,t)=>{let{className:a,children:r,position:n="popper",...s}=e;return(0,g.jsx)(k.ZL,{children:(0,g.jsxs)(k.UC,{ref:t,position:n,style:{zIndex:z.M.POPOVER},className:(0,w.cn)("relative max-h-[--radix-select-content-available-height] min-w-[8rem] overflow-hidden rounded-md border border-border bg-surface text-surface-foreground shadow-lg","data-[state=open]:animate-in data-[state=closed]:animate-out","data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0","data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95","data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2","data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2","popper"===n&&"data-[side=bottom]:translate-y-1 data-[side=top]:-translate-y-1",a),...s,children:[(0,g.jsx)(k.PP,{className:"flex h-6 items-center justify-center",children:(0,g.jsx)(E.A,{size:16,"aria-hidden":"true"})}),(0,g.jsx)(k.LM,{className:(0,w.cn)("p-1","popper"===n&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:r}),(0,g.jsx)(k.wn,{className:"flex h-6 items-center justify-center",children:(0,g.jsx)(C.A,{size:16,"aria-hidden":"true"})})]})})});T.displayName="SelectContent",p.forwardRef((e,t)=>{let{className:a,...r}=e;return(0,g.jsx)(k.JU,{ref:t,className:(0,w.cn)("px-2 py-1.5 text-xs font-semibold text-muted-foreground",a),...r})}).displayName="SelectLabel";let A=p.forwardRef((e,t)=>{let{className:a,children:r,...n}=e;return(0,g.jsxs)(k.q7,{ref:t,className:(0,w.cn)("relative flex w-full cursor-pointer select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none","focus:bg-muted focus:text-surface-foreground","data-[disabled]:pointer-events-none data-[disabled]:opacity-50",a),...n,children:[(0,g.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,g.jsx)(k.VF,{children:(0,g.jsx)(R.A,{size:16,"aria-hidden":"true"})})}),(0,g.jsx)(k.p4,{children:r})]})});A.displayName="SelectItem",p.forwardRef((e,t)=>{let{className:a,...r}=e;return(0,g.jsx)(k.wv,{ref:t,className:(0,w.cn)("-mx-1 my-1 h-px bg-border",a),...r})}).displayName="SelectSeparator";var O=a(47520);O.Kq,O.bL,O.l9,p.forwardRef((e,t)=>{let{className:a,sideOffset:r=4,children:n,...s}=e;return(0,g.jsx)(O.ZL,{children:(0,g.jsxs)(O.UC,{ref:t,sideOffset:r,style:{zIndex:z.M.POPOVER},className:(0,w.cn)("overflow-hidden rounded-md bg-foreground px-2.5 py-1.5 text-xs text-background shadow-md","animate-in fade-in-0 zoom-in-95","data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95","data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2","data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",a),...s,children:[n,(0,g.jsx)(O.i3,{className:"fill-foreground"})]})})}).displayName="TooltipContent",a(26232),a(79651)},48481:(e,t,a)=>{a.d(t,{m:()=>u});var r=a(95155);a(12115);var n=a(18955),s=a(87531);let o={idle:{colorClass:"bg-muted-foreground",labelKey:"status.idle"},ready:{colorClass:"bg-success",labelKey:"status.ready"},running:{colorClass:"bg-success text-success ring-2 ring-success/40",animationClass:"animate-status-glow",labelKey:"status.running"},generating:{colorClass:"bg-success text-success ring-2 ring-success/40",animationClass:"animate-status-glow",labelKey:"status.generating"},waiting:{colorClass:"bg-warning text-warning ring-4 ring-warning/50",animationClass:"animate-status-attention",labelKey:"status.waiting"},error:{colorClass:"bg-danger",labelKey:"status.error"}},i={colorClass:"bg-warning text-warning ring-2 ring-warning/40",animationClass:"animate-status-glow",labelKey:"status.waiting"},l=new Set(["menu","unclassified"]),d={colorClass:"bg-muted-foreground",labelKey:"status.unknown"},c={sm:"w-2 h-2",md:"w-2.5 h-2.5",lg:"w-3 h-3"};function u(e){let{status:t,size:a="md",label:u,waitingKind:f,className:m,...x}=e,b=(0,n.c)("common"),g=function(e,t){var a;let r=null!=(a=o[e])?a:d;return"waiting"!==e?r:t&&l.has(t)?i:r}(t,f),p=null!=u?u:b(g.labelKey);return(0,r.jsx)("span",{className:(0,s.cn)("inline-block flex-shrink-0 rounded-full",c[a],g.colorClass,g.animationClass,m),title:p,"aria-label":p,...x})}},52799:(e,t,a)=>{a.d(t,{E:()=>l});var r=a(95155);a(12115);var n=a(83101),s=a(87531);let o=(0,n.F)("inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium",{variants:{variant:{success:"bg-success-subtle text-success-foreground",warning:"bg-warning-subtle text-warning-foreground",error:"bg-danger-subtle text-danger-foreground",info:"bg-accent-100 dark:bg-accent-900 text-accent-800 dark:text-accent-300",gray:"bg-muted text-muted-foreground"}},defaultVariants:{variant:"gray"}}),i={success:"bg-success",warning:"bg-warning",error:"bg-danger",info:"bg-info",gray:"bg-muted-foreground"};function l(e){let{variant:t="gray",dot:a=!1,className:n="",children:l,...d}=e;return(0,r.jsxs)("span",{className:(0,s.cn)(o({variant:t}),n),...d,children:[a&&(0,r.jsx)("span",{className:(0,s.cn)("mr-1.5 inline-block h-2 w-2 rounded-full",i[t]),"aria-hidden":"true"}),l]})}},59854:(e,t,a)=>{a.d(t,{A:()=>n,M:()=>r});let r={DROPDOWN:10,SIDEBAR:30,MODAL:50,MAXIMIZED_EDITOR:55,TOAST:60,POPOVER:65,CONTEXT_MENU:70},n=45},77873:(e,t,a)=>{function r(e){return"Escape"===e.key&&!e.defaultPrevented}a.d(t,{DO:()=>d,SG:()=>u,V$:()=>r,Y9:()=>c,cE:()=>o,en:()=>i,sr:()=>s});let n=new WeakSet;function s(e){n.add(e)}function o(e){return r(e)&&!n.has(e)}let i="data-viewport-layer";function l(e){let t=Number.parseInt(getComputedStyle(e).zIndex,10);return Number.isNaN(t)?null:t}function d(e){let t=l(e);return null!==t&&Array.from(document.querySelectorAll("[".concat(i,"]"))).some(a=>{if(a.contains(e)||e.contains(a))return!1;let r=l(a);return null!==r&&(r>t||r===t&&(e.compareDocumentPosition(a)&Node.DOCUMENT_POSITION_FOLLOWING)!=0)})}function c(e){let t=e.closest("[".concat(i,"]"));return!!t&&(!!d(t)||Array.from(t.querySelectorAll("[".concat(i,"]"))).some(t=>!t.contains(e)))}function u(e){if(e.closest("[".concat(i,"]")))return c(e);let t=e;for(;t.parentElement&&t.parentElement!==document.body;)t=t.parentElement;return null!==l(t)?d(t):null!==document.querySelector("[".concat(i,"]"))}},79651:(e,t,a)=>{a.d(t,{u:()=>s});var r=a(95155);a(12115);var n=a(87531);function s(e){let{className:t,children:a,...s}=e;return(0,r.jsx)("kbd",{className:(0,n.cn)("inline-flex h-5 min-w-[1.25rem] items-center justify-center rounded-sm border border-border bg-surface px-1","font-mono text-[10px] font-medium leading-none text-muted-foreground",t),...s,children:a})}},87531:(e,t,a)=>{a.d(t,{cn:()=>s});var r=a(2821),n=a(75889);function s(){for(var e=arguments.length,t=Array(e),a=0;a<e;a++)t[a]=arguments[a];return(0,n.QP)((0,r.$)(t))}},91758:(e,t,a)=>{a.d(t,{d:()=>i});var r=a(95155),n=a(12115),s=a(27599),o=a(87531);let i=n.forwardRef((e,t)=>{let{className:a,...n}=e;return(0,r.jsx)(s.bL,{ref:t,className:(0,o.cn)("peer inline-flex h-5 w-9 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent shadow-sm transition-colors","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2","disabled:cursor-not-allowed disabled:opacity-50","data-[state=checked]:bg-accent-600 data-[state=unchecked]:bg-muted",a),...n,children:(0,r.jsx)(s.zi,{className:(0,o.cn)("pointer-events-none block h-4 w-4 rounded-full bg-surface shadow-lg ring-0 transition-transform","data-[state=checked]:translate-x-4 data-[state=unchecked]:translate-x-0")})})});i.displayName="Switch"},92539:(e,t,a)=>{a.d(t,{r:()=>n});var r=a(12115);function n(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{active:t=!0,initialFocus:a=!0,restoreFocus:n=!0}=e,s=(0,r.useRef)(null);return(0,r.useEffect)(()=>{if(!t)return;let e=s.current;if(!e)return;let r=document.activeElement instanceof HTMLElement?document.activeElement:null,o=null!==r&&e.contains(r);a&&!o&&(e.hasAttribute("tabindex")||e.setAttribute("tabindex","-1"),e.focus());let i=t=>{if("Tab"!==t.key)return;let a=Array.from(e.querySelectorAll('a[href],area[href],button:not([disabled]),input:not([disabled]),select:not([disabled]),textarea:not([disabled]),iframe,audio[controls],video[controls],[contenteditable]:not([contenteditable="false"]),[tabindex]:not([tabindex="-1"])')).filter(e=>!e.hasAttribute("hidden")&&"true"!==e.getAttribute("aria-hidden"));if(0===a.length){t.preventDefault(),e.focus();return}let r=a[0],n=a[a.length-1],s=document.activeElement instanceof HTMLElement?document.activeElement:null,o=s===e;if(!s||!e.contains(s)){t.preventDefault(),(t.shiftKey?n:r).focus();return}t.shiftKey?(s===r||o)&&(t.preventDefault(),n.focus()):(s===n||o)&&(t.preventDefault(),r.focus())};return document.addEventListener("keydown",i),()=>{document.removeEventListener("keydown",i),n&&!o&&r&&document.contains(r)&&r.focus()}},[t,a,n]),s}},94465:(e,t,a)=>{a.d(t,{a:()=>b});var r=a(95155),n=a(12115),s=a(47650),o=a(18955),i=a(83101),l=a(59854),d=a(9900),c=a(9286),u=a(92539),f=a(87531),m=a(77873);let x=(0,i.F)("",{variants:{size:{sm:"max-w-[calc(100vw-2rem)] sm:max-w-md",md:"max-w-[calc(100vw-2rem)] sm:max-w-2xl",lg:"max-w-[calc(100vw-2rem)] sm:max-w-4xl",xl:"max-w-[calc(100vw-2rem)] sm:max-w-6xl",full:"max-w-[calc(100vw-2rem)] sm:max-w-[95vw]"}},defaultVariants:{size:"lg"}});function b(e){let{isOpen:t,onClose:a,title:i,children:b,size:g="lg",showCloseButton:p=!0,disableClose:h=!1}=e,v=(0,o.c)("common"),w=(0,n.useId)(),y=(0,u.r)({active:t}),{shouldRender:j,isExiting:N}=(0,c.O)(t,d.Ys),k=N?"closed":"open",C=(0,n.useRef)(!1),E=(0,n.useRef)(!1);return((0,n.useEffect)(()=>{if(h)return;let e=e=>{(0,m.cE)(e)&&t&&a()};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[t,a,h]),(0,n.useEffect)(()=>(t?document.body.style.overflow="hidden":document.body.style.overflow="unset",()=>{document.body.style.overflow="unset"}),[t]),j)?(0,s.createPortal)((0,r.jsxs)("div",{className:"fixed inset-0 overflow-y-auto",style:{zIndex:l.M.MODAL},children:[(0,r.jsx)("div",{"data-state":k,"aria-hidden":"true",className:"fixed inset-0 bg-black/50 transition-opacity data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:duration-200 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:duration-200 data-[state=closed]:fill-mode-forwards"}),(0,r.jsx)("div",{"data-testid":"modal-backdrop-surface",className:"relative flex min-h-full items-center justify-center p-2 sm:p-4",onMouseDown:e=>{C.current=e.target===e.currentTarget},onMouseUp:e=>{E.current=e.target===e.currentTarget},onClick:e=>{let t=C.current,r=E.current;C.current=!1,E.current=!1,t&&r&&!h&&!N&&e.target===e.currentTarget&&a()},children:(0,r.jsxs)("div",{ref:y,"data-state":k,"data-testid":"modal-panel",role:"dialog","aria-modal":"true","aria-labelledby":i?w:void 0,tabIndex:-1,className:(0,f.cn)("relative w-full",x({size:g}),"max-h-[calc(100vh-1rem)] sm:max-h-[calc(100vh-2rem)] flex flex-col bg-surface rounded-lg shadow-xl transform transition-all","data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 data-[state=open]:duration-200","data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=closed]:duration-200 data-[state=closed]:fill-mode-forwards"),children:[(i||p)&&(0,r.jsxs)("div",{className:"flex items-center justify-between px-4 sm:px-6 py-3 sm:py-4 border-b border-border flex-shrink-0",children:[(0,r.jsx)("h3",{id:w,className:"text-base sm:text-lg font-semibold text-foreground truncate pr-2",children:i}),p&&(0,r.jsx)("button",{onClick:a,"aria-label":v("close"),className:"text-muted-foreground hover:text-foreground transition-colors flex-shrink-0 touch-manipulation",children:(0,r.jsx)("svg",{className:"w-5 h-5 sm:w-6 sm:h-6",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]}),(0,r.jsx)("div",{className:"px-4 sm:px-6 py-3 sm:py-4 overflow-y-auto flex-1 min-h-0",children:b})]})})]}),document.body):null}}}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[11,66,74,263,341,532,543,640,836,865,890,960,1099,1123,1158,1164,1274,1295,1310,1317,1327,1337,1360,1363,1377,1421,1437,1523,1645,1652,1745,1796,1972,2017,2046,2117,2118,2132,2207,2260,2344,2360,2464,2548,2609,2786,2852,2893,3002,3151,3175,3350,3657,3685,3792,3797,3821,3845,3965,3969,3990,4016,4035,4042,4199,4225,4240,4275,4468,4476,4594,4597,4614,4748,4767,4779,4907,4961,4985,5004,5145,5286,5332,5522,5580,5657,5683,5832,6067,6140,6194,6215,6248,6393,6451,6564,6635,6680,6734,6824,6839,6901,7e3,7003,7033,7115,7238,7473,7509,7560,7670,7758,7760,7895,7921,7939,8043,8110,8238,8418,8457,8460,8464,8472,8489,8509,8544,8658,8710,8861,8914,8979,9015,9059,9114,9162,9245,9281,9282,9325,9416,9549,9602,9792,9932,9946,9968],{84441:()=>{}},_=>{_.O(0,[8441,1255,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[11,66,74,263,341,532,543,640,836,865,890,960,1099,1123,1158,1164,1274,1295,1310,1317,1327,1337,1360,1363,1377,1421,1437,1523,1645,1652,1745,1796,1972,2017,2046,2117,2118,2132,2207,2260,2344,2360,2464,2548,2609,2786,2852,2893,3002,3151,3175,3350,3657,3685,3792,3797,3821,3845,3965,3969,3990,4016,4035,4042,4199,4225,4240,4275,4468,4476,4594,4597,4614,4748,4767,4779,4907,4961,4985,5004,5145,5286,5332,5522,5580,5657,5683,5832,6067,6140,6194,6215,6248,6393,6451,6564,6635,6680,6734,6824,6839,6901,7e3,7003,7033,7115,7238,7473,7509,7560,7670,7758,7760,7895,7921,7939,8043,8110,8238,8418,8457,8460,8464,8472,8489,8509,8544,8658,8710,8861,8914,8979,9015,9059,9114,9162,9245,9281,9282,9325,9416,9549,9602,9792,9932,9946,9968],{84441:()=>{}},_=>{_.O(0,[8441,1255,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[11,66,74,263,341,532,543,640,836,865,890,960,1099,1123,1158,1164,1274,1295,1310,1317,1327,1337,1360,1363,1377,1421,1437,1523,1645,1652,1745,1796,1972,2017,2046,2117,2118,2132,2207,2260,2344,2360,2464,2548,2609,2786,2852,2893,3002,3151,3175,3350,3657,3685,3792,3797,3821,3845,3965,3969,3990,4016,4035,4042,4199,4225,4240,4275,4468,4476,4594,4597,4614,4748,4767,4779,4907,4961,4985,5004,5145,5286,5332,5522,5580,5657,5683,5832,6067,6140,6194,6215,6248,6393,6451,6564,6635,6680,6734,6824,6839,6901,7e3,7003,7033,7115,7238,7473,7509,7560,7670,7758,7760,7895,7921,7939,8043,8110,8238,8418,8457,8460,8464,8472,8489,8509,8544,8658,8710,8861,8914,8979,9015,9059,9114,9162,9245,9281,9282,9325,9416,9549,9602,9792,9932,9946,9968],{84441:()=>{}},_=>{_.O(0,[8441,1255,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[11,66,74,263,341,532,543,640,836,865,890,960,1099,1123,1158,1164,1274,1295,1310,1317,1327,1337,1360,1363,1377,1421,1437,1523,1645,1652,1745,1796,1972,2017,2046,2117,2118,2132,2207,2260,2344,2360,2464,2548,2609,2786,2852,2893,3002,3151,3175,3350,3657,3685,3792,3797,3821,3845,3965,3969,3990,4016,4035,4042,4199,4225,4240,4275,4468,4476,4594,4597,4614,4748,4767,4779,4907,4961,4985,5004,5145,5286,5332,5522,5580,5657,5683,5832,6067,6140,6194,6215,6248,6393,6451,6564,6635,6680,6734,6824,6839,6901,7e3,7003,7033,7115,7238,7473,7509,7560,7670,7758,7760,7895,7921,7939,8043,8110,8238,8418,8457,8460,8464,8472,8489,8509,8544,8658,8710,8861,8914,8979,9015,9059,9114,9162,9245,9281,9282,9325,9416,9549,9602,9792,9932,9946,9968],{84441:()=>{}},_=>{_.O(0,[8441,1255,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[11,66,74,263,341,532,543,640,836,865,890,960,1099,1123,1158,1164,1274,1295,1310,1317,1327,1337,1360,1363,1377,1421,1437,1523,1645,1652,1745,1796,1972,2017,2046,2117,2118,2132,2207,2260,2344,2360,2464,2548,2609,2786,2852,2893,3002,3151,3175,3350,3657,3685,3792,3797,3821,3845,3965,3969,3990,4016,4035,4042,4199,4225,4240,4275,4468,4476,4594,4597,4614,4748,4767,4779,4907,4961,4985,5004,5145,5286,5332,5522,5580,5657,5683,5832,6067,6140,6194,6215,6248,6393,6451,6564,6635,6680,6734,6824,6839,6901,7e3,7003,7033,7115,7238,7473,7509,7560,7670,7758,7760,7895,7921,7939,8043,8110,8238,8418,8457,8460,8464,8472,8489,8509,8544,8658,8710,8861,8914,8979,9015,9059,9114,9162,9245,9281,9282,9325,9416,9549,9602,9792,9932,9946,9968],{84441:()=>{}},_=>{_.O(0,[8441,1255,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[11,66,74,263,341,532,543,640,836,865,890,960,1099,1123,1158,1164,1274,1295,1310,1317,1327,1337,1360,1363,1377,1421,1437,1523,1645,1652,1745,1796,1972,2017,2046,2117,2118,2132,2207,2260,2344,2360,2464,2548,2609,2786,2852,2893,3002,3151,3175,3350,3657,3685,3792,3797,3821,3845,3965,3969,3990,4016,4035,4042,4199,4225,4240,4275,4468,4476,4594,4597,4614,4748,4767,4779,4907,4961,4985,5004,5145,5286,5332,5522,5580,5657,5683,5832,6067,6140,6194,6215,6248,6393,6451,6564,6635,6680,6734,6824,6839,6901,7e3,7003,7033,7115,7238,7473,7509,7560,7670,7758,7760,7895,7921,7939,8043,8110,8238,8418,8457,8460,8464,8472,8489,8509,8544,8658,8710,8861,8914,8979,9015,9059,9114,9162,9245,9281,9282,9325,9416,9549,9602,9792,9932,9946,9968],{84441:()=>{}},_=>{_.O(0,[8441,1255,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[11,66,74,263,341,532,543,640,836,865,890,960,1099,1123,1158,1164,1274,1295,1310,1317,1327,1337,1360,1363,1377,1421,1437,1523,1645,1652,1745,1796,1972,2017,2046,2117,2118,2132,2207,2260,2344,2360,2464,2548,2609,2786,2852,2893,3002,3151,3175,3350,3657,3685,3792,3797,3821,3845,3965,3969,3990,4016,4035,4042,4199,4225,4240,4275,4468,4476,4594,4597,4614,4748,4767,4779,4907,4961,4985,5004,5145,5286,5332,5522,5580,5657,5683,5832,6067,6140,6194,6215,6248,6393,6451,6564,6635,6680,6734,6824,6839,6901,7e3,7003,7033,7115,7238,7473,7509,7560,7670,7758,7760,7895,7921,7939,8043,8110,8238,8418,8457,8460,8464,8472,8489,8509,8544,8658,8710,8861,8914,8979,9015,9059,9114,9162,9245,9281,9282,9325,9416,9549,9602,9792,9932,9946,9968],{84441:()=>{}},_=>{_.O(0,[8441,1255,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[11,66,74,263,341,532,543,640,836,865,890,960,1099,1123,1158,1164,1274,1295,1310,1317,1327,1337,1360,1363,1377,1421,1437,1523,1645,1652,1745,1796,1972,2017,2046,2117,2118,2132,2207,2260,2344,2360,2464,2548,2609,2786,2852,2893,3002,3151,3175,3350,3657,3685,3792,3797,3821,3845,3965,3969,3990,4016,4035,4042,4199,4225,4240,4275,4468,4476,4594,4597,4614,4748,4767,4779,4907,4961,4985,5004,5145,5286,5332,5522,5580,5657,5683,5832,6067,6140,6194,6215,6248,6393,6451,6564,6635,6680,6734,6824,6839,6901,7e3,7003,7033,7115,7238,7473,7509,7560,7670,7758,7760,7895,7921,7939,8043,8110,8238,8418,8457,8460,8464,8472,8489,8509,8544,8658,8710,8861,8914,8979,9015,9059,9114,9162,9245,9281,9282,9325,9416,9549,9602,9792,9932,9946,9968],{84441:()=>{}},_=>{_.O(0,[8441,1255,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[11,66,74,263,341,532,543,640,836,865,890,960,1099,1123,1158,1164,1274,1295,1310,1317,1327,1337,1360,1363,1377,1421,1437,1523,1645,1652,1745,1796,1972,2017,2046,2117,2118,2132,2207,2260,2344,2360,2464,2548,2609,2786,2852,2893,3002,3151,3175,3350,3657,3685,3792,3797,3821,3845,3965,3969,3990,4016,4035,4042,4199,4225,4240,4275,4468,4476,4594,4597,4614,4748,4767,4779,4907,4961,4985,5004,5145,5286,5332,5522,5580,5657,5683,5832,6067,6140,6194,6215,6248,6393,6451,6564,6635,6680,6734,6824,6839,6901,7e3,7003,7033,7115,7238,7473,7509,7560,7670,7758,7760,7895,7921,7939,8043,8110,8238,8418,8457,8460,8464,8472,8489,8509,8544,8658,8710,8861,8914,8979,9015,9059,9114,9162,9245,9281,9282,9325,9416,9549,9602,9792,9932,9946,9968],{84441:()=>{}},_=>{_.O(0,[8441,1255,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[11,66,74,263,341,532,543,640,836,865,890,960,1099,1123,1158,1164,1274,1295,1310,1317,1327,1337,1360,1363,1377,1421,1437,1523,1645,1652,1745,1796,1972,2017,2046,2117,2118,2132,2207,2260,2344,2360,2464,2548,2609,2786,2852,2893,3002,3151,3175,3350,3657,3685,3792,3797,3821,3845,3965,3969,3990,4016,4035,4042,4199,4225,4240,4275,4468,4476,4594,4597,4614,4748,4767,4779,4907,4961,4985,5004,5145,5286,5332,5522,5580,5657,5683,5832,6067,6140,6194,6215,6248,6393,6451,6564,6635,6680,6734,6824,6839,6901,7e3,7003,7033,7115,7238,7473,7509,7560,7670,7758,7760,7895,7921,7939,8043,8110,8238,8418,8457,8460,8464,8472,8489,8509,8544,8658,8710,8861,8914,8979,9015,9059,9114,9162,9245,9281,9282,9325,9416,9549,9602,9792,9932,9946,9968],{84441:()=>{}},_=>{_.O(0,[8441,1255,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[11,66,74,263,341,532,543,640,836,865,890,960,1099,1123,1158,1164,1274,1295,1310,1317,1327,1337,1360,1363,1377,1421,1437,1523,1645,1652,1745,1796,1972,2017,2046,2117,2118,2132,2207,2260,2344,2360,2464,2548,2609,2786,2852,2893,3002,3151,3175,3350,3657,3685,3792,3797,3821,3845,3965,3969,3990,4016,4035,4042,4199,4225,4240,4275,4468,4476,4594,4597,4614,4748,4767,4779,4907,4961,4985,5004,5145,5286,5332,5522,5580,5657,5683,5832,6067,6140,6194,6215,6248,6393,6451,6564,6635,6680,6734,6824,6839,6901,7e3,7003,7033,7115,7238,7473,7509,7560,7670,7758,7760,7895,7921,7939,8043,8110,8238,8418,8457,8460,8464,8472,8489,8509,8544,8658,8710,8861,8914,8979,9015,9059,9114,9162,9245,9281,9282,9325,9416,9549,9602,9792,9932,9946,9968],{84441:()=>{}},_=>{_.O(0,[8441,1255,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[11,66,74,263,341,532,543,640,836,865,890,960,1099,1123,1158,1164,1274,1295,1310,1317,1327,1337,1360,1363,1377,1421,1437,1523,1645,1652,1745,1796,1972,2017,2046,2117,2118,2132,2207,2260,2344,2360,2464,2548,2609,2786,2852,2893,3002,3151,3175,3350,3657,3685,3792,3797,3821,3845,3965,3969,3990,4016,4035,4042,4199,4225,4240,4275,4468,4476,4594,4597,4614,4748,4767,4779,4907,4961,4985,5004,5145,5286,5332,5522,5580,5657,5683,5832,6067,6140,6194,6215,6248,6393,6451,6564,6635,6680,6734,6824,6839,6901,7e3,7003,7033,7115,7238,7473,7509,7560,7670,7758,7760,7895,7921,7939,8043,8110,8238,8418,8457,8460,8464,8472,8489,8509,8544,8658,8710,8861,8914,8979,9015,9059,9114,9162,9245,9281,9282,9325,9416,9549,9602,9792,9932,9946,9968],{84441:()=>{}},_=>{_.O(0,[8441,1255,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[11,66,74,263,341,532,543,640,836,865,890,960,1099,1123,1158,1164,1274,1295,1310,1317,1327,1337,1360,1363,1377,1421,1437,1523,1645,1652,1745,1796,1972,2017,2046,2117,2118,2132,2207,2260,2344,2360,2464,2548,2609,2786,2852,2893,3002,3151,3175,3350,3657,3685,3792,3797,3821,3845,3965,3969,3990,4016,4035,4042,4199,4225,4240,4275,4468,4476,4594,4597,4614,4748,4767,4779,4907,4961,4985,5004,5145,5286,5332,5522,5580,5657,5683,5832,6067,6140,6194,6215,6248,6393,6451,6564,6635,6680,6734,6824,6839,6901,7e3,7003,7033,7115,7238,7473,7509,7560,7670,7758,7760,7895,7921,7939,8043,8110,8238,8418,8457,8460,8464,8472,8489,8509,8544,8658,8710,8861,8914,8979,9015,9059,9114,9162,9245,9281,9282,9325,9416,9549,9602,9792,9932,9946,9968],{84441:()=>{}},_=>{_.O(0,[8441,1255,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[11,66,74,263,341,532,543,640,836,865,890,960,1099,1123,1158,1164,1274,1295,1310,1317,1327,1337,1360,1363,1377,1421,1437,1523,1645,1652,1745,1796,1972,2017,2046,2117,2118,2132,2207,2260,2344,2360,2464,2548,2609,2786,2852,2893,3002,3151,3175,3350,3657,3685,3792,3797,3821,3845,3965,3969,3990,4016,4035,4042,4199,4225,4240,4275,4468,4476,4594,4597,4614,4748,4767,4779,4907,4961,4985,5004,5145,5286,5332,5522,5580,5657,5683,5832,6067,6140,6194,6215,6248,6393,6451,6564,6635,6680,6734,6824,6839,6901,7e3,7003,7033,7115,7238,7473,7509,7560,7670,7758,7760,7895,7921,7939,8043,8110,8238,8418,8457,8460,8464,8472,8489,8509,8544,8658,8710,8861,8914,8979,9015,9059,9114,9162,9245,9281,9282,9325,9416,9549,9602,9792,9932,9946,9968],{84441:()=>{}},_=>{_.O(0,[8441,1255,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[11,66,74,263,341,532,543,640,836,865,890,960,1099,1123,1158,1164,1274,1295,1310,1317,1327,1337,1360,1363,1377,1421,1437,1523,1645,1652,1745,1796,1972,2017,2046,2117,2118,2132,2207,2260,2344,2360,2464,2548,2609,2786,2852,2893,3002,3151,3175,3350,3657,3685,3792,3797,3821,3845,3965,3969,3990,4016,4035,4042,4199,4225,4240,4275,4468,4476,4594,4597,4614,4748,4767,4779,4907,4961,4985,5004,5145,5286,5332,5522,5580,5657,5683,5832,6067,6140,6194,6215,6248,6393,6451,6564,6635,6680,6734,6824,6839,6901,7e3,7003,7033,7115,7238,7473,7509,7560,7670,7758,7760,7895,7921,7939,8043,8110,8238,8418,8457,8460,8464,8472,8489,8509,8544,8658,8710,8861,8914,8979,9015,9059,9114,9162,9245,9281,9282,9325,9416,9549,9602,9792,9932,9946,9968],{84441:()=>{}},_=>{_.O(0,[8441,1255,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[11,66,74,263,341,532,543,640,836,865,890,960,1099,1123,1158,1164,1274,1295,1310,1317,1327,1337,1360,1363,1377,1421,1437,1523,1645,1652,1745,1796,1972,2017,2046,2117,2118,2132,2207,2260,2344,2360,2464,2548,2609,2786,2852,2893,3002,3151,3175,3350,3657,3685,3792,3797,3821,3845,3965,3969,3990,4016,4035,4042,4199,4225,4240,4275,4468,4476,4594,4597,4614,4748,4767,4779,4907,4961,4985,5004,5145,5286,5332,5522,5580,5657,5683,5832,6067,6140,6194,6215,6248,6393,6451,6564,6635,6680,6734,6824,6839,6901,7e3,7003,7033,7115,7238,7473,7509,7560,7670,7758,7760,7895,7921,7939,8043,8110,8238,8418,8457,8460,8464,8472,8489,8509,8544,8658,8710,8861,8914,8979,9015,9059,9114,9162,9245,9281,9282,9325,9416,9549,9602,9792,9932,9946,9968],{84441:()=>{}},_=>{_.O(0,[8441,1255,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[11,66,74,263,341,532,543,640,836,865,890,960,1099,1123,1158,1164,1274,1295,1310,1317,1327,1337,1360,1363,1377,1421,1437,1523,1645,1652,1745,1796,1972,2017,2046,2117,2118,2132,2207,2260,2344,2360,2464,2548,2609,2786,2852,2893,3002,3151,3175,3350,3657,3685,3792,3797,3821,3845,3965,3969,3990,4016,4035,4042,4199,4225,4240,4275,4468,4476,4594,4597,4614,4748,4767,4779,4907,4961,4985,5004,5145,5286,5332,5522,5580,5657,5683,5832,6067,6140,6194,6215,6248,6393,6451,6564,6635,6680,6734,6824,6839,6901,7e3,7003,7033,7115,7238,7473,7509,7560,7670,7758,7760,7895,7921,7939,8043,8110,8238,8418,8457,8460,8464,8472,8489,8509,8544,8658,8710,8861,8914,8979,9015,9059,9114,9162,9245,9281,9282,9325,9416,9549,9602,9792,9932,9946,9968],{84441:()=>{}},_=>{_.O(0,[8441,1255,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[11,66,74,263,341,532,543,640,836,865,890,960,1099,1123,1158,1164,1274,1295,1310,1317,1327,1337,1360,1363,1377,1421,1437,1523,1645,1652,1745,1796,1972,2017,2046,2117,2118,2132,2207,2260,2344,2360,2464,2548,2609,2786,2852,2893,3002,3151,3175,3350,3657,3685,3792,3797,3821,3845,3965,3969,3990,4016,4035,4042,4199,4225,4240,4275,4468,4476,4594,4597,4614,4748,4767,4779,4907,4961,4985,5004,5145,5286,5332,5522,5580,5657,5683,5832,6067,6140,6194,6215,6248,6393,6451,6564,6635,6680,6734,6824,6839,6901,7e3,7003,7033,7115,7238,7473,7509,7560,7670,7758,7760,7895,7921,7939,8043,8110,8238,8418,8457,8460,8464,8472,8489,8509,8544,8658,8710,8861,8914,8979,9015,9059,9114,9162,9245,9281,9282,9325,9416,9549,9602,9792,9932,9946,9968],{84441:()=>{}},_=>{_.O(0,[8441,1255,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[11,66,74,263,341,532,543,640,836,865,890,960,1099,1123,1158,1164,1274,1295,1310,1317,1327,1337,1360,1363,1377,1421,1437,1523,1645,1652,1745,1796,1972,2017,2046,2117,2118,2132,2207,2260,2344,2360,2464,2548,2609,2786,2852,2893,3002,3151,3175,3350,3657,3685,3792,3797,3821,3845,3965,3969,3990,4016,4035,4042,4199,4225,4240,4275,4468,4476,4594,4597,4614,4748,4767,4779,4907,4961,4985,5004,5145,5286,5332,5522,5580,5657,5683,5832,6067,6140,6194,6215,6248,6393,6451,6564,6635,6680,6734,6824,6839,6901,7e3,7003,7033,7115,7238,7473,7509,7560,7670,7758,7760,7895,7921,7939,8043,8110,8238,8418,8457,8460,8464,8472,8489,8509,8544,8658,8710,8861,8914,8979,9015,9059,9114,9162,9245,9281,9282,9325,9416,9549,9602,9792,9932,9946,9968],{84441:()=>{}},_=>{_.O(0,[8441,1255,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[11,66,74,263,341,532,543,640,836,865,890,960,1099,1123,1158,1164,1274,1295,1310,1317,1327,1337,1360,1363,1377,1421,1437,1523,1645,1652,1745,1796,1972,2017,2046,2117,2118,2132,2207,2260,2344,2360,2464,2548,2609,2786,2852,2893,3002,3151,3175,3350,3657,3685,3792,3797,3821,3845,3965,3969,3990,4016,4035,4042,4199,4225,4240,4275,4468,4476,4594,4597,4614,4748,4767,4779,4907,4961,4985,5004,5145,5286,5332,5522,5580,5657,5683,5832,6067,6140,6194,6215,6248,6393,6451,6564,6635,6680,6734,6824,6839,6901,7e3,7003,7033,7115,7238,7473,7509,7560,7670,7758,7760,7895,7921,7939,8043,8110,8238,8418,8457,8460,8464,8472,8489,8509,8544,8658,8710,8861,8914,8979,9015,9059,9114,9162,9245,9281,9282,9325,9416,9549,9602,9792,9932,9946,9968],{84441:()=>{}},_=>{_.O(0,[8441,1255,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[11,66,74,263,341,532,543,640,836,865,890,960,1099,1123,1158,1164,1274,1295,1310,1317,1327,1337,1360,1363,1377,1421,1437,1523,1645,1652,1745,1796,1972,2017,2046,2117,2118,2132,2207,2260,2344,2360,2464,2548,2609,2786,2852,2893,3002,3151,3175,3350,3657,3685,3792,3797,3821,3845,3965,3969,3990,4016,4035,4042,4199,4225,4240,4275,4468,4476,4594,4597,4614,4748,4767,4779,4907,4961,4985,5004,5145,5286,5332,5522,5580,5657,5683,5832,6067,6140,6194,6215,6248,6393,6451,6564,6635,6680,6734,6824,6839,6901,7e3,7003,7033,7115,7238,7473,7509,7560,7670,7758,7760,7895,7921,7939,8043,8110,8238,8418,8457,8460,8464,8472,8489,8509,8544,8658,8710,8861,8914,8979,9015,9059,9114,9162,9245,9281,9282,9325,9416,9549,9602,9792,9932,9946,9968],{84441:()=>{}},_=>{_.O(0,[8441,1255,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[11,66,74,263,341,532,543,640,836,865,890,960,1099,1123,1158,1164,1274,1295,1310,1317,1327,1337,1360,1363,1377,1421,1437,1523,1645,1652,1745,1796,1972,2017,2046,2117,2118,2132,2207,2260,2344,2360,2464,2548,2609,2786,2852,2893,3002,3151,3175,3350,3657,3685,3792,3797,3821,3845,3965,3969,3990,4016,4035,4042,4199,4225,4240,4275,4468,4476,4594,4597,4614,4748,4767,4779,4907,4961,4985,5004,5145,5286,5332,5522,5580,5657,5683,5832,6067,6140,6194,6215,6248,6393,6451,6564,6635,6680,6734,6824,6839,6901,7e3,7003,7033,7115,7238,7473,7509,7560,7670,7758,7760,7895,7921,7939,8043,8110,8238,8418,8457,8460,8464,8472,8489,8509,8544,8658,8710,8861,8914,8979,9015,9059,9114,9162,9245,9281,9282,9325,9416,9549,9602,9792,9932,9946,9968],{84441:()=>{}},_=>{_.O(0,[8441,1255,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[11,66,74,263,341,532,543,640,836,865,890,960,1099,1123,1158,1164,1274,1295,1310,1317,1327,1337,1360,1363,1377,1421,1437,1523,1645,1652,1745,1796,1972,2017,2046,2117,2118,2132,2207,2260,2344,2360,2464,2548,2609,2786,2852,2893,3002,3151,3175,3350,3657,3685,3792,3797,3821,3845,3965,3969,3990,4016,4035,4042,4199,4225,4240,4275,4468,4476,4594,4597,4614,4748,4767,4779,4907,4961,4985,5004,5145,5286,5332,5522,5580,5657,5683,5832,6067,6140,6194,6215,6248,6393,6451,6564,6635,6680,6734,6824,6839,6901,7e3,7003,7033,7115,7238,7473,7509,7560,7670,7758,7760,7895,7921,7939,8043,8110,8238,8418,8457,8460,8464,8472,8489,8509,8544,8658,8710,8861,8914,8979,9015,9059,9114,9162,9245,9281,9282,9325,9416,9549,9602,9792,9932,9946,9968],{84441:()=>{}},_=>{_.O(0,[8441,1255,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[11,66,74,263,341,532,543,640,836,865,890,960,1099,1123,1158,1164,1274,1295,1310,1317,1327,1337,1360,1363,1377,1421,1437,1523,1645,1652,1745,1796,1972,2017,2046,2117,2118,2132,2207,2260,2344,2360,2464,2548,2609,2786,2852,2893,3002,3151,3175,3350,3657,3685,3792,3797,3821,3845,3965,3969,3990,4016,4035,4042,4199,4225,4240,4275,4468,4476,4594,4597,4614,4748,4767,4779,4907,4961,4985,5004,5145,5286,5332,5522,5580,5657,5683,5832,6067,6140,6194,6215,6248,6393,6451,6564,6635,6680,6734,6824,6839,6901,7e3,7003,7033,7115,7238,7473,7509,7560,7670,7758,7760,7895,7921,7939,8043,8110,8238,8418,8457,8460,8464,8472,8489,8509,8544,8658,8710,8861,8914,8979,9015,9059,9114,9162,9245,9281,9282,9325,9416,9549,9602,9792,9932,9946,9968],{84441:()=>{}},_=>{_.O(0,[8441,1255,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[11,66,74,263,341,532,543,640,836,865,890,960,1099,1123,1158,1164,1274,1295,1310,1317,1327,1337,1360,1363,1377,1421,1437,1523,1645,1652,1745,1796,1972,2017,2046,2117,2118,2132,2207,2260,2344,2360,2464,2548,2609,2786,2852,2893,3002,3151,3175,3350,3657,3685,3792,3797,3821,3845,3965,3969,3990,4016,4035,4042,4199,4225,4240,4275,4468,4476,4594,4597,4614,4748,4767,4779,4907,4961,4985,5004,5145,5286,5332,5522,5580,5657,5683,5832,6067,6140,6194,6215,6248,6393,6451,6564,6635,6680,6734,6824,6839,6901,7e3,7003,7033,7115,7238,7473,7509,7560,7670,7758,7760,7895,7921,7939,8043,8110,8238,8418,8457,8460,8464,8472,8489,8509,8544,8658,8710,8861,8914,8979,9015,9059,9114,9162,9245,9281,9282,9325,9416,9549,9602,9792,9932,9946,9968],{84441:()=>{}},_=>{_.O(0,[8441,1255,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[11,66,74,263,341,532,543,640,836,865,890,960,1099,1123,1158,1164,1274,1295,1310,1317,1327,1337,1360,1363,1377,1421,1437,1523,1645,1652,1745,1796,1972,2017,2046,2117,2118,2132,2207,2260,2344,2360,2464,2548,2609,2786,2852,2893,3002,3151,3175,3350,3657,3685,3792,3797,3821,3845,3965,3969,3990,4016,4035,4042,4199,4225,4240,4275,4468,4476,4594,4597,4614,4748,4767,4779,4907,4961,4985,5004,5145,5286,5332,5522,5580,5657,5683,5832,6067,6140,6194,6215,6248,6393,6451,6564,6635,6680,6734,6824,6839,6901,7e3,7003,7033,7115,7238,7473,7509,7560,7670,7758,7760,7895,7921,7939,8043,8110,8238,8418,8457,8460,8464,8472,8489,8509,8544,8658,8710,8861,8914,8979,9015,9059,9114,9162,9245,9281,9282,9325,9416,9549,9602,9792,9932,9946,9968],{84441:()=>{}},_=>{_.O(0,[8441,1255,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[11,66,74,263,341,532,543,640,836,865,890,960,1099,1123,1158,1164,1274,1295,1310,1317,1327,1337,1360,1363,1377,1421,1437,1523,1645,1652,1745,1796,1972,2017,2046,2117,2118,2132,2207,2260,2344,2360,2464,2548,2609,2786,2852,2893,3002,3151,3175,3350,3657,3685,3792,3797,3821,3845,3965,3969,3990,4016,4035,4042,4199,4225,4240,4275,4468,4476,4594,4597,4614,4748,4767,4779,4907,4961,4985,5004,5145,5286,5332,5522,5580,5657,5683,5832,6067,6140,6194,6215,6248,6393,6451,6564,6635,6680,6734,6824,6839,6901,7e3,7003,7033,7115,7238,7473,7509,7560,7670,7758,7760,7895,7921,7939,8043,8110,8238,8418,8457,8460,8464,8472,8489,8509,8544,8658,8710,8861,8914,8979,9015,9059,9114,9162,9245,9281,9282,9325,9416,9549,9602,9792,9932,9946,9968],{84441:()=>{}},_=>{_.O(0,[8441,1255,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[11,66,74,263,341,532,543,640,836,865,890,960,1099,1123,1158,1164,1274,1295,1310,1317,1327,1337,1360,1363,1377,1421,1437,1523,1645,1652,1745,1796,1972,2017,2046,2117,2118,2132,2207,2260,2344,2360,2464,2548,2609,2786,2852,2893,3002,3151,3175,3350,3657,3685,3792,3797,3821,3845,3965,3969,3990,4016,4035,4042,4199,4225,4240,4275,4468,4476,4594,4597,4614,4748,4767,4779,4907,4961,4985,5004,5145,5286,5332,5522,5580,5657,5683,5832,6067,6140,6194,6215,6248,6393,6451,6564,6635,6680,6734,6824,6839,6901,7e3,7003,7033,7115,7238,7473,7509,7560,7670,7758,7760,7895,7921,7939,8043,8110,8238,8418,8457,8460,8464,8472,8489,8509,8544,8658,8710,8861,8914,8979,9015,9059,9114,9162,9245,9281,9282,9325,9416,9549,9602,9792,9932,9946,9968],{84441:()=>{}},_=>{_.O(0,[8441,1255,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[11,66,74,263,341,532,543,640,836,865,890,960,1099,1123,1158,1164,1274,1295,1310,1317,1327,1337,1360,1363,1377,1421,1437,1523,1645,1652,1745,1796,1972,2017,2046,2117,2118,2132,2207,2260,2344,2360,2464,2548,2609,2786,2852,2893,3002,3151,3175,3350,3657,3685,3792,3797,3821,3845,3965,3969,3990,4016,4035,4042,4199,4225,4240,4275,4468,4476,4594,4597,4614,4748,4767,4779,4907,4961,4985,5004,5145,5286,5332,5522,5580,5657,5683,5832,6067,6140,6194,6215,6248,6393,6451,6564,6635,6680,6734,6824,6839,6901,7e3,7003,7033,7115,7238,7473,7509,7560,7670,7758,7760,7895,7921,7939,8043,8110,8238,8418,8457,8460,8464,8472,8489,8509,8544,8658,8710,8861,8914,8979,9015,9059,9114,9162,9245,9281,9282,9325,9416,9549,9602,9792,9932,9946,9968],{84441:()=>{}},_=>{_.O(0,[8441,1255,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[11,66,74,263,341,532,543,640,836,865,890,960,1099,1123,1158,1164,1274,1295,1310,1317,1327,1337,1360,1363,1377,1421,1437,1523,1645,1652,1745,1796,1972,2017,2046,2117,2118,2132,2207,2260,2344,2360,2464,2548,2609,2786,2852,2893,3002,3151,3175,3350,3657,3685,3792,3797,3821,3845,3965,3969,3990,4016,4035,4042,4199,4225,4240,4275,4468,4476,4594,4597,4614,4748,4767,4779,4907,4961,4985,5004,5145,5286,5332,5522,5580,5657,5683,5832,6067,6140,6194,6215,6248,6393,6451,6564,6635,6680,6734,6824,6839,6901,7e3,7003,7033,7115,7238,7473,7509,7560,7670,7758,7760,7895,7921,7939,8043,8110,8238,8418,8457,8460,8464,8472,8489,8509,8544,8658,8710,8861,8914,8979,9015,9059,9114,9162,9245,9281,9282,9325,9416,9549,9602,9792,9932,9946,9968],{84441:()=>{}},_=>{_.O(0,[8441,1255,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[11,66,74,263,341,532,543,640,836,865,890,960,1099,1123,1158,1164,1274,1295,1310,1317,1327,1337,1360,1363,1377,1421,1437,1523,1645,1652,1745,1796,1972,2017,2046,2117,2118,2132,2207,2260,2344,2360,2464,2548,2609,2786,2852,2893,3002,3151,3175,3350,3657,3685,3792,3797,3821,3845,3965,3969,3990,4016,4035,4042,4199,4225,4240,4275,4468,4476,4594,4597,4614,4748,4767,4779,4907,4961,4985,5004,5145,5286,5332,5522,5580,5657,5683,5832,6067,6140,6194,6215,6248,6393,6451,6564,6635,6680,6734,6824,6839,6901,7e3,7003,7033,7115,7238,7473,7509,7560,7670,7758,7760,7895,7921,7939,8043,8110,8238,8418,8457,8460,8464,8472,8489,8509,8544,8658,8710,8861,8914,8979,9015,9059,9114,9162,9245,9281,9282,9325,9416,9549,9602,9792,9932,9946,9968],{84441:()=>{}},_=>{_.O(0,[8441,1255,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[11,66,74,263,341,532,543,640,836,865,890,960,1099,1123,1158,1164,1274,1295,1310,1317,1327,1337,1360,1363,1377,1421,1437,1523,1645,1652,1745,1796,1972,2017,2046,2117,2118,2132,2207,2260,2344,2360,2464,2548,2609,2786,2852,2893,3002,3151,3175,3350,3657,3685,3792,3797,3821,3845,3965,3969,3990,4016,4035,4042,4199,4225,4240,4275,4468,4476,4594,4597,4614,4748,4767,4779,4907,4961,4985,5004,5145,5286,5332,5522,5580,5657,5683,5832,6067,6140,6194,6215,6248,6393,6451,6564,6635,6680,6734,6824,6839,6901,7e3,7003,7033,7115,7238,7473,7509,7560,7670,7758,7760,7895,7921,7939,8043,8110,8238,8418,8457,8460,8464,8472,8489,8509,8544,8658,8710,8861,8914,8979,9015,9059,9114,9162,9245,9281,9282,9325,9416,9549,9602,9792,9932,9946,9968],{84441:()=>{}},_=>{_.O(0,[8441,1255,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[11,66,74,263,341,532,543,640,836,865,890,960,1099,1123,1158,1164,1274,1295,1310,1317,1327,1337,1360,1363,1377,1421,1437,1523,1645,1652,1745,1796,1972,2017,2046,2117,2118,2132,2207,2260,2344,2360,2464,2548,2609,2786,2852,2893,3002,3151,3175,3350,3657,3685,3792,3797,3821,3845,3965,3969,3990,4016,4035,4042,4199,4225,4240,4275,4468,4476,4594,4597,4614,4748,4767,4779,4907,4961,4985,5004,5145,5286,5332,5522,5580,5657,5683,5832,6067,6140,6194,6215,6248,6393,6451,6564,6635,6680,6734,6824,6839,6901,7e3,7003,7033,7115,7238,7473,7509,7560,7670,7758,7760,7895,7921,7939,8043,8110,8238,8418,8457,8460,8464,8472,8489,8509,8544,8658,8710,8861,8914,8979,9015,9059,9114,9162,9245,9281,9282,9325,9416,9549,9602,9792,9932,9946,9968],{84441:()=>{}},_=>{_.O(0,[8441,1255,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[11,66,74,263,341,532,543,640,836,865,890,960,1099,1123,1158,1164,1274,1295,1310,1317,1327,1337,1360,1363,1377,1421,1437,1523,1645,1652,1745,1796,1972,2017,2046,2117,2118,2132,2207,2260,2344,2360,2464,2548,2609,2786,2852,2893,3002,3151,3175,3350,3657,3685,3792,3797,3821,3845,3965,3969,3990,4016,4035,4042,4199,4225,4240,4275,4468,4476,4594,4597,4614,4748,4767,4779,4907,4961,4985,5004,5145,5286,5332,5522,5580,5657,5683,5832,6067,6140,6194,6215,6248,6393,6451,6564,6635,6680,6734,6824,6839,6901,7e3,7003,7033,7115,7238,7473,7509,7560,7670,7758,7760,7895,7921,7939,8043,8110,8238,8418,8457,8460,8464,8472,8489,8509,8544,8658,8710,8861,8914,8979,9015,9059,9114,9162,9245,9281,9282,9325,9416,9549,9602,9792,9932,9946,9968],{84441:()=>{}},_=>{_.O(0,[8441,1255,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[11,66,74,263,341,532,543,640,836,865,890,960,1099,1123,1158,1164,1274,1295,1310,1317,1327,1337,1360,1363,1377,1421,1437,1523,1645,1652,1745,1796,1972,2017,2046,2117,2118,2132,2207,2260,2344,2360,2464,2548,2609,2786,2852,2893,3002,3151,3175,3350,3657,3685,3792,3797,3821,3845,3965,3969,3990,4016,4035,4042,4199,4225,4240,4275,4468,4476,4594,4597,4614,4748,4767,4779,4907,4961,4985,5004,5145,5286,5332,5522,5580,5657,5683,5832,6067,6140,6194,6215,6248,6393,6451,6564,6635,6680,6734,6824,6839,6901,7e3,7003,7033,7115,7238,7473,7509,7560,7670,7758,7760,7895,7921,7939,8043,8110,8238,8418,8457,8460,8464,8472,8489,8509,8544,8658,8710,8861,8914,8979,9015,9059,9114,9162,9245,9281,9282,9325,9416,9549,9602,9792,9932,9946,9968],{84441:()=>{}},_=>{_.O(0,[8441,1255,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[11,66,74,263,341,532,543,640,836,865,890,960,1099,1123,1158,1164,1274,1295,1310,1317,1327,1337,1360,1363,1377,1421,1437,1523,1645,1652,1745,1796,1972,2017,2046,2117,2118,2132,2207,2260,2344,2360,2464,2548,2609,2786,2852,2893,3002,3151,3175,3350,3657,3685,3792,3797,3821,3845,3965,3969,3990,4016,4035,4042,4199,4225,4240,4275,4468,4476,4594,4597,4614,4748,4767,4779,4907,4961,4985,5004,5145,5286,5332,5522,5580,5657,5683,5832,6067,6140,6194,6215,6248,6393,6451,6564,6635,6680,6734,6824,6839,6901,7e3,7003,7033,7115,7238,7473,7509,7560,7670,7758,7760,7895,7921,7939,8043,8110,8238,8418,8457,8460,8464,8472,8489,8509,8544,8658,8710,8861,8914,8979,9015,9059,9114,9162,9245,9281,9282,9325,9416,9549,9602,9792,9932,9946,9968],{84441:()=>{}},_=>{_.O(0,[8441,1255,7358],()=>_(_.s=84441)),_N_E=_.O()}]);