@agent-spaces/server 0.3.61 → 0.3.63

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 (327) hide show
  1. package/dist/adapters/agent-runtime-types.js +12 -0
  2. package/dist/adapters/claude-code-runtime/index.js +22 -0
  3. package/dist/adapters/claude-code-runtime/sdk-config.js +34 -10
  4. package/dist/adapters/codex-runtime.js +2 -2
  5. package/dist/adapters/git.js +29 -13
  6. package/dist/adapters/langchain-runtime.js +2 -2
  7. package/dist/adapters/open-agent-sdk-runtime.js +2 -2
  8. package/dist/agents/agent-message-parts.js +27 -3
  9. package/dist/agents/commit-agent.js +1 -0
  10. package/dist/agents/issue-agent-progress.js +4 -2
  11. package/dist/agents/issue-agent-runner.js +5 -5
  12. package/dist/agents/issue-task-controller.js +95 -14
  13. package/dist/app.js +74 -5
  14. package/dist/package.json +1 -1
  15. package/dist/routes/agent-sse.js +4 -2
  16. package/dist/routes/channel.js +21 -4
  17. package/dist/routes/file.js +87 -1
  18. package/dist/routes/hooks.js +88 -0
  19. package/dist/routes/issue.js +59 -1
  20. package/dist/routes/output-style.js +48 -0
  21. package/dist/routes/prompt-template.js +2 -2
  22. package/dist/routes/skill.js +97 -3
  23. package/dist/routes/task.js +13 -1
  24. package/dist/services/agent.js +45 -16
  25. package/dist/services/hook-engine.js +118 -0
  26. package/dist/services/issue.js +6 -0
  27. package/dist/services/notification-hub/bot-agent.js +1 -0
  28. package/dist/services/output-style.js +134 -0
  29. package/dist/services/persistent-agent-context.js +37 -4
  30. package/dist/services/prompt-template.js +2 -2
  31. package/dist/services/skill.js +275 -40
  32. package/dist/storage/hook-store.js +55 -0
  33. package/dist/web/404.html +1 -1
  34. package/dist/web/__next.__PAGE__.txt +4 -4
  35. package/dist/web/__next._full.txt +25 -23
  36. package/dist/web/__next._head.txt +4 -4
  37. package/dist/web/__next._index.txt +13 -13
  38. package/dist/web/__next._tree.txt +2 -2
  39. package/dist/web/_next/static/chunks/0-1bfvfwifh-m.js +1 -0
  40. package/dist/web/_next/static/chunks/0-f~0xmwl__u5.js +1 -0
  41. package/dist/web/_next/static/chunks/0.n~yfwf4~6w-.js +1 -0
  42. package/dist/web/_next/static/chunks/002_j970b9gdx.js +1 -0
  43. package/dist/web/_next/static/chunks/014x2qbuiszni.js +3 -0
  44. package/dist/web/_next/static/chunks/01iqv28_snwus.js +1 -0
  45. package/dist/web/_next/static/chunks/02c22g~xd-y30.js +19 -0
  46. package/dist/web/_next/static/chunks/02mf61htij8g0.js +31 -0
  47. package/dist/web/_next/static/chunks/03scq1-0ykve3.js +1 -0
  48. package/dist/web/_next/static/chunks/046me66nilkff.js +1 -0
  49. package/dist/web/_next/static/chunks/04v-pqqs-2lvp.css +1 -0
  50. package/dist/web/_next/static/chunks/05f8cnmzqd5wb.js +1 -0
  51. package/dist/web/_next/static/chunks/{0zd1o3u04~qvo.js → 05psi2gtx~bev.js} +7 -7
  52. package/dist/web/_next/static/chunks/{12odetnu-lyrr.js → 06whz1~s_7pva.js} +12 -12
  53. package/dist/web/_next/static/chunks/06w~.izyfylap.js +1 -0
  54. package/dist/web/_next/static/chunks/08kfx8on9oty~.js +1 -0
  55. package/dist/web/_next/static/chunks/09t62a89~jesc.js +3 -0
  56. package/dist/web/_next/static/chunks/09y_3krccdd~u.js +1 -0
  57. package/dist/web/_next/static/chunks/{0njy89g5coeyi.js → 0_8dm7bxp18xo.js} +6 -6
  58. package/dist/web/_next/static/chunks/0_e~hmntdfop9.js +1 -0
  59. package/dist/web/_next/static/chunks/0_udc.6.tueey.js +1 -0
  60. package/dist/web/_next/static/chunks/0_vi1a~g4wx46.js +3 -0
  61. package/dist/web/_next/static/chunks/{05iy4.c-1cfhd.js → 0aa6bcdmtpekn.js} +1 -1
  62. package/dist/web/_next/static/chunks/{0tvd~rxgf0oh_.js → 0bbmx45w_h5np.js} +1 -1
  63. package/dist/web/_next/static/chunks/0cke33d38fnby.js +90 -0
  64. package/dist/web/_next/static/chunks/{0w1iudd1d46sw.js → 0ctg5qmw7uu.1.js} +2 -2
  65. package/dist/web/_next/static/chunks/0cyq~8xb~r5fc.js +1 -0
  66. package/dist/web/_next/static/chunks/0ewceguykiut5.js +1 -0
  67. package/dist/web/_next/static/chunks/0fxa1edqr7dve.js +1 -0
  68. package/dist/web/_next/static/chunks/{0202ia13sijwb.js → 0h18ej5yf974e.js} +1 -1
  69. package/dist/web/_next/static/chunks/0hra80eyuu37u.js +1 -0
  70. package/dist/web/_next/static/chunks/0i39jifmxla7q.js +1 -0
  71. package/dist/web/_next/static/chunks/0ie7y4k2ncvnn.js +1 -0
  72. package/dist/web/_next/static/chunks/0igc~uli58ncw.js +2 -0
  73. package/dist/web/_next/static/chunks/0kof5qdg8c2-k.js +71 -0
  74. package/dist/web/_next/static/chunks/{08o-zmr-40r5g.js → 0m11vvph7q94-.js} +1 -1
  75. package/dist/web/_next/static/chunks/0msb2mi3hiu5_.js +67 -0
  76. package/dist/web/_next/static/chunks/0np.d~hc1-pmh.js +4 -0
  77. package/dist/web/_next/static/chunks/{0qpq0~_58fe9a.js → 0oaq67r7ix.vg.js} +1 -1
  78. package/dist/web/_next/static/chunks/0ogpc3f3keopc.js +3 -0
  79. package/dist/web/_next/static/chunks/{0d_dp_4ofz0l3.css → 0ojcao3hdm36s.css} +0 -1
  80. package/dist/web/_next/static/chunks/0p1n8bvfnpl41.js +1 -0
  81. package/dist/web/_next/static/chunks/{0gig.k.rq8d0x.js → 0ppr271hz0xoq.js} +1 -1
  82. package/dist/web/_next/static/chunks/0s_dva~eh2yhi.js +3 -0
  83. package/dist/web/_next/static/chunks/0typj55ox8d5i.js +1 -0
  84. package/dist/web/_next/static/chunks/0w2p4ldi2aymp.js +1 -0
  85. package/dist/web/_next/static/chunks/{0..g0jl-8qup7.js → 0xoo17yef_b8g.js} +1 -1
  86. package/dist/web/_next/static/chunks/0xt-8wk21gs7g.js +1 -0
  87. package/dist/web/_next/static/chunks/0y09i51u6ixq5.js +1 -0
  88. package/dist/web/_next/static/chunks/0za1r07-6az6w.js +1 -0
  89. package/dist/web/_next/static/chunks/0zc0xgp5ourcn.js +1 -0
  90. package/dist/web/_next/static/chunks/0zmhdridea1s5.js +90 -0
  91. package/dist/web/_next/static/chunks/0~u.5r3-t7179.js +1 -0
  92. package/dist/web/_next/static/chunks/10.alq.6stmld.js +1 -0
  93. package/dist/web/_next/static/chunks/11-czmcci_55y.js +1 -0
  94. package/dist/web/_next/static/chunks/11b3zgk1etlkw.js +7 -0
  95. package/dist/web/_next/static/chunks/11k-.49r~1mfm.js +1 -0
  96. package/dist/web/_next/static/chunks/11qp8r5dotf7d.js +1 -0
  97. package/dist/web/_next/static/chunks/128ugqd34tr_-.js +1 -0
  98. package/dist/web/_next/static/chunks/12mxlicp247c8.js +1 -0
  99. package/dist/web/_next/static/chunks/135w27dd8c19s.js +5 -0
  100. package/dist/web/_next/static/chunks/13~y-b.b9rrw4.js +1 -0
  101. package/dist/web/_next/static/chunks/{0jokpgh485~28.js → 14hqmid8q4apf.js} +11 -11
  102. package/dist/web/_next/static/chunks/16sg-lflc8csx.js +1 -0
  103. package/dist/web/_next/static/chunks/176dc-dtokxxi.js +16 -0
  104. package/dist/web/_next/static/chunks/17g-0pqre.anw.js +1 -0
  105. package/dist/web/_next/static/chunks/17oc2l.ekcs8b.css +1 -0
  106. package/dist/web/_next/static/chunks/{turbopack-0lrdxynxb9-1t.js → turbopack-0ndm2zc_pdptk.js} +1 -1
  107. package/dist/web/_not-found/__next._full.txt +29 -30
  108. package/dist/web/_not-found/__next._head.txt +4 -4
  109. package/dist/web/_not-found/__next._index.txt +13 -13
  110. package/dist/web/_not-found/__next._not-found.__PAGE__.txt +2 -2
  111. package/dist/web/_not-found/__next._not-found.txt +3 -3
  112. package/dist/web/_not-found/__next._tree.txt +2 -2
  113. package/dist/web/_not-found.html +1 -1
  114. package/dist/web/_not-found.txt +29 -30
  115. package/dist/web/icons/file_type_audio.svg +3 -1
  116. package/dist/web/icons/file_type_video.svg +10 -1
  117. package/dist/web/index.html +1 -1
  118. package/dist/web/index.txt +25 -23
  119. package/dist/web/login/__next._full.txt +30 -28
  120. package/dist/web/login/__next._head.txt +4 -4
  121. package/dist/web/login/__next._index.txt +13 -13
  122. package/dist/web/login/__next._tree.txt +2 -2
  123. package/dist/web/login/__next.login.__PAGE__.txt +4 -4
  124. package/dist/web/login/__next.login.txt +3 -3
  125. package/dist/web/login.html +1 -1
  126. package/dist/web/login.txt +30 -28
  127. package/dist/web/settings/__next._full.txt +32 -31
  128. package/dist/web/settings/__next._head.txt +4 -4
  129. package/dist/web/settings/__next._index.txt +13 -13
  130. package/dist/web/settings/__next._tree.txt +2 -2
  131. package/dist/web/settings/__next.settings.__PAGE__.txt +4 -4
  132. package/dist/web/settings/__next.settings.txt +5 -5
  133. package/dist/web/settings/agents/__next._full.txt +35 -34
  134. package/dist/web/settings/agents/__next._head.txt +4 -4
  135. package/dist/web/settings/agents/__next._index.txt +13 -13
  136. package/dist/web/settings/agents/__next._tree.txt +2 -2
  137. package/dist/web/settings/agents/__next.settings.agents.__PAGE__.txt +4 -4
  138. package/dist/web/settings/agents/__next.settings.agents.txt +3 -3
  139. package/dist/web/settings/agents/__next.settings.txt +5 -5
  140. package/dist/web/settings/agents.html +1 -1
  141. package/dist/web/settings/agents.txt +35 -34
  142. package/dist/web/settings/mcps/__next._full.txt +35 -34
  143. package/dist/web/settings/mcps/__next._head.txt +4 -4
  144. package/dist/web/settings/mcps/__next._index.txt +13 -13
  145. package/dist/web/settings/mcps/__next._tree.txt +2 -2
  146. package/dist/web/settings/mcps/__next.settings.mcps.__PAGE__.txt +4 -4
  147. package/dist/web/settings/mcps/__next.settings.mcps.txt +3 -3
  148. package/dist/web/settings/mcps/__next.settings.txt +5 -5
  149. package/dist/web/settings/mcps.html +1 -1
  150. package/dist/web/settings/mcps.txt +35 -34
  151. package/dist/web/settings/models/__next._full.txt +35 -34
  152. package/dist/web/settings/models/__next._head.txt +4 -4
  153. package/dist/web/settings/models/__next._index.txt +13 -13
  154. package/dist/web/settings/models/__next._tree.txt +2 -2
  155. package/dist/web/settings/models/__next.settings.models.__PAGE__.txt +4 -4
  156. package/dist/web/settings/models/__next.settings.models.txt +3 -3
  157. package/dist/web/settings/models/__next.settings.txt +5 -5
  158. package/dist/web/settings/models.html +1 -1
  159. package/dist/web/settings/models.txt +35 -34
  160. package/dist/web/settings/output-styles/__next._full.txt +43 -0
  161. package/dist/web/settings/output-styles/__next._head.txt +6 -0
  162. package/dist/web/settings/output-styles/__next._index.txt +15 -0
  163. package/dist/web/settings/output-styles/__next._tree.txt +8 -0
  164. package/dist/web/settings/output-styles/__next.settings.output-styles.__PAGE__.txt +9 -0
  165. package/dist/web/settings/output-styles/__next.settings.output-styles.txt +5 -0
  166. package/dist/web/settings/output-styles/__next.settings.txt +7 -0
  167. package/dist/web/settings/output-styles.html +1 -0
  168. package/dist/web/settings/output-styles.txt +43 -0
  169. package/dist/web/settings/prompts/__next._full.txt +35 -34
  170. package/dist/web/settings/prompts/__next._head.txt +4 -4
  171. package/dist/web/settings/prompts/__next._index.txt +13 -13
  172. package/dist/web/settings/prompts/__next._tree.txt +2 -2
  173. package/dist/web/settings/prompts/__next.settings.prompts.__PAGE__.txt +4 -4
  174. package/dist/web/settings/prompts/__next.settings.prompts.txt +3 -3
  175. package/dist/web/settings/prompts/__next.settings.txt +5 -5
  176. package/dist/web/settings/prompts.html +1 -1
  177. package/dist/web/settings/prompts.txt +35 -34
  178. package/dist/web/settings/providers/__next._full.txt +35 -34
  179. package/dist/web/settings/providers/__next._head.txt +4 -4
  180. package/dist/web/settings/providers/__next._index.txt +13 -13
  181. package/dist/web/settings/providers/__next._tree.txt +2 -2
  182. package/dist/web/settings/providers/__next.settings.providers.__PAGE__.txt +4 -4
  183. package/dist/web/settings/providers/__next.settings.providers.txt +3 -3
  184. package/dist/web/settings/providers/__next.settings.txt +5 -5
  185. package/dist/web/settings/providers.html +1 -1
  186. package/dist/web/settings/providers.txt +35 -34
  187. package/dist/web/settings/skills/__next._full.txt +35 -34
  188. package/dist/web/settings/skills/__next._head.txt +4 -4
  189. package/dist/web/settings/skills/__next._index.txt +13 -13
  190. package/dist/web/settings/skills/__next._tree.txt +2 -2
  191. package/dist/web/settings/skills/__next.settings.skills.__PAGE__.txt +4 -4
  192. package/dist/web/settings/skills/__next.settings.skills.txt +3 -3
  193. package/dist/web/settings/skills/__next.settings.txt +5 -5
  194. package/dist/web/settings/skills.html +1 -1
  195. package/dist/web/settings/skills.txt +35 -34
  196. package/dist/web/settings.html +1 -1
  197. package/dist/web/settings.txt +32 -31
  198. package/dist/web/workflows/__next._full.txt +32 -30
  199. package/dist/web/workflows/__next._head.txt +4 -4
  200. package/dist/web/workflows/__next._index.txt +13 -13
  201. package/dist/web/workflows/__next._tree.txt +2 -2
  202. package/dist/web/workflows/__next.workflows.__PAGE__.txt +4 -4
  203. package/dist/web/workflows/__next.workflows.txt +3 -3
  204. package/dist/web/workflows.html +1 -1
  205. package/dist/web/workflows.txt +32 -30
  206. package/dist/web/workspace/_/__next._full.txt +30 -70
  207. package/dist/web/workspace/_/__next._head.txt +4 -4
  208. package/dist/web/workspace/_/__next._index.txt +13 -13
  209. package/dist/web/workspace/_/__next._tree.txt +2 -17
  210. package/dist/web/workspace/_/__next.workspace.$d$id.__PAGE__.txt +3 -18
  211. package/dist/web/workspace/_/__next.workspace.$d$id.txt +3 -3
  212. package/dist/web/workspace/_/__next.workspace.txt +3 -3
  213. package/dist/web/workspace/_.html +1 -1
  214. package/dist/web/workspace/_.txt +30 -70
  215. package/dist/web/workspaces/__next._full.txt +31 -29
  216. package/dist/web/workspaces/__next._head.txt +4 -4
  217. package/dist/web/workspaces/__next._index.txt +13 -13
  218. package/dist/web/workspaces/__next._tree.txt +2 -2
  219. package/dist/web/workspaces/__next.workspaces.__PAGE__.txt +4 -4
  220. package/dist/web/workspaces/__next.workspaces.txt +3 -3
  221. package/dist/web/workspaces.html +1 -1
  222. package/dist/web/workspaces.txt +31 -29
  223. package/dist/ws/agent-runner.js +55 -33
  224. package/dist/ws/message-parts.js +61 -2
  225. package/package.json +1 -1
  226. package/public/output-styles/carmack-mode.md +381 -0
  227. package/public/output-styles/codex-rigor-mode.md +114 -0
  228. package/public/output-styles/dhh-mode.md +265 -0
  229. package/public/output-styles/evan-you-mode.md +539 -0
  230. package/public/output-styles/index.json +37 -0
  231. package/public/output-styles/jobs-mode.md +369 -0
  232. package/public/output-styles/linus-mode.md +135 -0
  233. package/public/output-styles/uncle-bob-mode.md +221 -0
  234. package/public/prompt/andrej-karpathy-skills.md +65 -0
  235. package/public/prompt/claude-token-efficient-coding.md +35 -0
  236. package/public/prompt/index.json +12 -0
  237. package/public/skills/index.json +92 -0
  238. package/public/skills/planning-with-files/planning-with-files-zh/SKILL.md +243 -0
  239. package/public/skills/planning-with-files/planning-with-files-zh/scripts/check-complete.ps1 +44 -0
  240. package/public/skills/planning-with-files/planning-with-files-zh/scripts/check-complete.sh +46 -0
  241. package/public/skills/planning-with-files/planning-with-files-zh/scripts/init-session.ps1 +124 -0
  242. package/public/skills/planning-with-files/planning-with-files-zh/scripts/init-session.sh +124 -0
  243. package/public/skills/planning-with-files/planning-with-files-zh/scripts/session-catchup.py +438 -0
  244. package/public/skills/planning-with-files/planning-with-files-zh/templates/findings.md +29 -0
  245. package/public/skills/planning-with-files/planning-with-files-zh/templates/progress.md +40 -0
  246. package/public/skills/planning-with-files/planning-with-files-zh/templates/task_plan.md +58 -0
  247. package/public/skills/superpowers/brainstorming/SKILL.md +164 -0
  248. package/public/skills/superpowers/brainstorming/scripts/frame-template.html +214 -0
  249. package/public/skills/superpowers/brainstorming/scripts/helper.js +88 -0
  250. package/public/skills/superpowers/brainstorming/scripts/server.cjs +354 -0
  251. package/public/skills/superpowers/brainstorming/scripts/start-server.sh +148 -0
  252. package/public/skills/superpowers/brainstorming/scripts/stop-server.sh +56 -0
  253. package/public/skills/superpowers/brainstorming/spec-document-reviewer-prompt.md +49 -0
  254. package/public/skills/superpowers/brainstorming/visual-companion.md +287 -0
  255. package/public/skills/superpowers/dispatching-parallel-agents/SKILL.md +182 -0
  256. package/public/skills/superpowers/executing-plans/SKILL.md +70 -0
  257. package/public/skills/superpowers/finishing-a-development-branch/SKILL.md +251 -0
  258. package/public/skills/superpowers/receiving-code-review/SKILL.md +213 -0
  259. package/public/skills/superpowers/requesting-code-review/SKILL.md +103 -0
  260. package/public/skills/superpowers/requesting-code-review/code-reviewer.md +168 -0
  261. package/public/skills/superpowers/subagent-driven-development/SKILL.md +279 -0
  262. package/public/skills/superpowers/subagent-driven-development/code-quality-reviewer-prompt.md +25 -0
  263. package/public/skills/superpowers/subagent-driven-development/implementer-prompt.md +113 -0
  264. package/public/skills/superpowers/subagent-driven-development/spec-reviewer-prompt.md +61 -0
  265. package/public/skills/superpowers/systematic-debugging/CREATION-LOG.md +119 -0
  266. package/public/skills/superpowers/systematic-debugging/SKILL.md +296 -0
  267. package/public/skills/superpowers/systematic-debugging/condition-based-waiting-example.ts +158 -0
  268. package/public/skills/superpowers/systematic-debugging/condition-based-waiting.md +115 -0
  269. package/public/skills/superpowers/systematic-debugging/defense-in-depth.md +122 -0
  270. package/public/skills/superpowers/systematic-debugging/find-polluter.sh +63 -0
  271. package/public/skills/superpowers/systematic-debugging/root-cause-tracing.md +169 -0
  272. package/public/skills/superpowers/systematic-debugging/test-academic.md +14 -0
  273. package/public/skills/superpowers/systematic-debugging/test-pressure-1.md +58 -0
  274. package/public/skills/superpowers/systematic-debugging/test-pressure-2.md +68 -0
  275. package/public/skills/superpowers/systematic-debugging/test-pressure-3.md +69 -0
  276. package/public/skills/superpowers/test-driven-development/SKILL.md +371 -0
  277. package/public/skills/superpowers/test-driven-development/testing-anti-patterns.md +299 -0
  278. package/public/skills/superpowers/using-git-worktrees/SKILL.md +215 -0
  279. package/public/skills/superpowers/using-superpowers/SKILL.md +117 -0
  280. package/public/skills/superpowers/using-superpowers/references/codex-tools.md +59 -0
  281. package/public/skills/superpowers/using-superpowers/references/copilot-tools.md +42 -0
  282. package/public/skills/superpowers/using-superpowers/references/gemini-tools.md +51 -0
  283. package/public/skills/superpowers/verification-before-completion/SKILL.md +139 -0
  284. package/public/skills/superpowers/writing-plans/SKILL.md +152 -0
  285. package/public/skills/superpowers/writing-plans/plan-document-reviewer-prompt.md +49 -0
  286. package/public/skills/superpowers/writing-skills/SKILL.md +655 -0
  287. package/public/skills/superpowers/writing-skills/anthropic-best-practices.md +1150 -0
  288. package/public/skills/superpowers/writing-skills/examples/CLAUDE_MD_TESTING.md +189 -0
  289. package/public/skills/superpowers/writing-skills/graphviz-conventions.dot +172 -0
  290. package/public/skills/superpowers/writing-skills/persuasion-principles.md +187 -0
  291. package/public/skills/superpowers/writing-skills/render-graphs.js +168 -0
  292. package/public/skills/superpowers/writing-skills/testing-skills-with-subagents.md +384 -0
  293. package/dist/web/_next/static/chunks/0-1pn22sg~67u.js +0 -2
  294. package/dist/web/_next/static/chunks/01gi~q0c6ez6..js +0 -1
  295. package/dist/web/_next/static/chunks/03me5_ir..2ix.js +0 -1
  296. package/dist/web/_next/static/chunks/05eu2fdixf7c9.js +0 -1
  297. package/dist/web/_next/static/chunks/0_-c.y2qq4ax4.js +0 -270
  298. package/dist/web/_next/static/chunks/0_g3irbniww6d.js +0 -3
  299. package/dist/web/_next/static/chunks/0cs830n97dgjy.js +0 -1
  300. package/dist/web/_next/static/chunks/0g-0n6glz_z6w.js +0 -1
  301. package/dist/web/_next/static/chunks/0gyede80jpy3n.js +0 -4
  302. package/dist/web/_next/static/chunks/0hrbuvzuxrjfl.js +0 -1
  303. package/dist/web/_next/static/chunks/0ju52ko_nh7gi.js +0 -1
  304. package/dist/web/_next/static/chunks/0mny8i81aenx3.js +0 -1
  305. package/dist/web/_next/static/chunks/0nsu~f3voe~0i.js +0 -5
  306. package/dist/web/_next/static/chunks/0sz8_nijfiz0p.js +0 -1
  307. package/dist/web/_next/static/chunks/0u7_qd9hzqwac.js +0 -1
  308. package/dist/web/_next/static/chunks/0w3o.7vi.dlm6.js +0 -1
  309. package/dist/web/_next/static/chunks/0wv0h27jafag4.js +0 -1
  310. package/dist/web/_next/static/chunks/0wwvc4zc2q6bn.js +0 -1
  311. package/dist/web/_next/static/chunks/0x4b-a2ixww6m.js +0 -1
  312. package/dist/web/_next/static/chunks/0xwqf.llmm_u2.js +0 -31
  313. package/dist/web/_next/static/chunks/0~w6ugk9s5p-h.css +0 -1
  314. package/dist/web/_next/static/chunks/125nunjfj2fj0.js +0 -1
  315. package/dist/web/_next/static/chunks/1285yqy_oirb-.js +0 -1
  316. package/dist/web/_next/static/chunks/13ess~4pdmxma.js +0 -1
  317. package/dist/web/_next/static/chunks/14n8i2xz4_y-e.js +0 -1
  318. package/public/avatars/1777813826407-bea0ja-minimax.svg +0 -1
  319. package/public/avatars/1777813967088-3xlvd0-minimax.svg +0 -1
  320. package/public/avatars/1777814041714-yp0qeq-minimax.svg +0 -1
  321. package/public/avatars/1777904986095-rg26je-icon.png +0 -0
  322. package/public/avatars/1778953228323-5je54x-user.jpg +0 -0
  323. package/public/avatars/1778954057880-g01q6y-user.jpg +0 -0
  324. /package/dist/web/_next/static/{HUlYEknPhyW7dRmJ5mFdG → OoXAsPtrUWjC1l898FSvI}/_buildManifest.js +0 -0
  325. /package/dist/web/_next/static/{HUlYEknPhyW7dRmJ5mFdG → OoXAsPtrUWjC1l898FSvI}/_clientMiddlewareManifest.js +0 -0
  326. /package/dist/web/_next/static/{HUlYEknPhyW7dRmJ5mFdG → OoXAsPtrUWjC1l898FSvI}/_ssgManifest.js +0 -0
  327. /package/public/avatars/{1777815865622-08wp9m-user.jpg → user.jpg} +0 -0
@@ -0,0 +1 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,983725,e=>{e.q("/_next/static/media/onig.0dk~55st~1x8..wasm")},635473,e=>{"use strict";e.i(487106);var t,i,r,o=e.i(112231),n=e.i(526097),a=e.i(281482),s=e.i(325438),l=e.i(454514),d=e.i(144881),c=e.i(619122),g=e.i(611130),h=e.i(702320);e.i(71224);var u=e.i(354244),m=e.i(693162),p=e.i(535567),_=e.i(561295),f=e.i(772649),k=e.i(58762),T=e.i(20088),y=e.i(650289),S=e.i(731931),v=e.i(304484),b=e.i(488259),w=e.i(853457),C=e.i(975445),z=e.i(34487),L=e.i(927842),I=e.i(536766),M=e.i(772383),x=e.i(781808),E=g,P=e.i(85280);class D extends E.Disposable{get onDidEncounterLanguage(){return this._onDidEncounterLanguage.event}constructor(e,t,i,r,o,n,a){super(),this._grammar=e,this._initialState=t,this._containsEmbeddedLanguages=i,this._createBackgroundTokenizer=r,this._backgroundTokenizerShouldOnlyVerifyTokens=o,this._reportTokenizationTime=n,this._reportSlowTokenization=a,this._seenLanguages=[],this._onDidEncounterLanguage=this._register(new x.Emitter)}get backgroundTokenizerShouldOnlyVerifyTokens(){return this._backgroundTokenizerShouldOnlyVerifyTokens()}getInitialState(){return this._initialState}tokenize(e,t,i){throw Error("Not supported!")}createBackgroundTokenizer(e,t){if(this._createBackgroundTokenizer)return this._createBackgroundTokenizer(e,t)}tokenizeEncoded(e,t,i){let r,o=1e4*Math.random()<1,n=this._reportSlowTokenization||o,a=n?new P.StopWatch(!0):void 0,s=this._grammar.tokenizeLine2(e,i,500);if(n){let t=a.elapsed();(o||t>32)&&this._reportTokenizationTime(t,e.length,o)}if(s.stoppedEarly)return console.warn(`Time limit reached when tokenizing line: ${e.substring(0,100)}`),new f.EncodedTokenizationResult(s.tokens,s.fonts,i);if(this._containsEmbeddedLanguages){let e=this._seenLanguages,t=s.tokens;for(let i=0,r=t.length>>>1;i<r;i++){let r=t[(i<<1)+1],o=_.TokenMetadata.getLanguageId(r);e[o]||(e[o]=!0,this._onDidEncounterLanguage.fire(o))}}return r=i.equals(s.ruleStack)?i:s.ruleStack,new f.EncodedTokenizationResult(s.tokens,s.fonts,r)}}var N=e.i(305638),A=g,O=e.i(465376);class R extends A.Disposable{get backgroundTokenizerShouldOnlyVerifyTokens(){return this._actual.backgroundTokenizerShouldOnlyVerifyTokens}constructor(e,t,i,r){super(),this._encodedLanguageId=e,this._actual=t,this._maxTokenizationLineLength=r,this._register((0,O.keepObserved)(this._maxTokenizationLineLength)),this._register(i)}getInitialState(){return this._actual.getInitialState()}tokenize(e,t,i){throw Error("Not supported!")}tokenizeEncoded(e,t,i){return e.length>=this._maxTokenizationLineLength.get()?(0,N.nullTokenizeEncoded)(this._encodedLanguageId,i):this._actual.tokenizeEncoded(e,t,i)}createBackgroundTokenizer(e,t){return this._actual.createBackgroundTokenizer?this._actual.createBackgroundTokenizer(e,t):void 0}}var F=e.i(802136);class j{static{this.CHANNEL_NAME="textMateWorkerHost"}static getChannel(e){return e.getChannel(j.CHANNEL_NAME)}static setChannel(e,t){e.setChannel(j.CHANNEL_NAME,t)}}var W=g,B=e.i(194558),$=e.i(166969),G=e.i(589325),V=e.i(425728),H=e.i(893249),q=e.i(531452);class U{static fromMany(e){return new J(e.map(e=>new U(e)))}constructor(e){this.transformation=e,this.idx=0,this.offset=0}transform(e){let t=this.transformation.replacements.at(this.idx);for(;t&&t.replaceRange.endExclusive<=e;)this.offset+=t.getLengthDelta(),this.idx++,t=this.transformation.replacements.at(this.idx);if(!t||!(t.replaceRange.start<=e))return e+this.offset}}class J{constructor(e){this.transformers=e}transform(e){for(let t of this.transformers){let i=t.transform(e);if(void 0===i)return;e=i}return e}}var K=e.i(619456),Q=e.i(443665),X=e.i(103346),Y=e.i(705679),Z=e.i(896344);class ee extends W.Disposable{static{this._id=0}constructor(e,t,i,r,o,n){super(),this._model=e,this._worker=t,this._languageIdCodec=i,this._backgroundTokenizationStore=r,this._configurationService=o,this._maxTokenizationLineLength=n,this.controllerId=ee._id++,this._pendingChanges=[],this._states=new G.TokenizationStateStore,this._loggingEnabled=(0,q.observableConfigValue)("editor.experimental.asyncTokenizationLogging",!1,this._configurationService),this._register((0,O.keepObserved)(this._loggingEnabled)),this._register(this._model.onDidChangeContent(e=>{this._shouldLog&&console.log("model change",{fileName:this._model.uri.fsPath.split("\\").pop(),changes:et(e.changes)}),this._worker.$acceptModelChanged(this.controllerId,e),this._pendingChanges.push(e)})),this._register(this._model.onDidChangeLanguage(e=>{let t=this._model.getLanguageId(),i=this._languageIdCodec.encodeLanguageId(t);this._worker.$acceptModelLanguageChanged(this.controllerId,t,i)}));const a=this._model.getLanguageId(),s=this._languageIdCodec.encodeLanguageId(a);this._worker.$acceptNewModel({uri:this._model.uri,versionId:this._model.getVersionId(),lines:this._model.getLinesContent(),EOL:this._model.getEOL(),languageId:a,encodedLanguageId:s,maxTokenizationLineLength:this._maxTokenizationLineLength.get(),controllerId:this.controllerId}),this._register((0,Z.autorun)(e=>{let t=this._maxTokenizationLineLength.read(e);this._worker.$acceptMaxTokenizationLineLength(this.controllerId,t)}))}dispose(){super.dispose(),this._worker.$acceptRemovedModel(this.controllerId)}requestTokens(e,t){this._worker.$retokenize(this.controllerId,e,t)}async setTokensAndStates(t,i,r,o,n){if(this.controllerId!==t)return;let a=H.ContiguousMultilineTokensBuilder.deserialize(new Uint8Array(r)),s=Y.AnnotationsUpdate.deserialize(o,(0,V.deserializeFontTokenOptions)());for(this._shouldLog&&console.log("received background tokenization result",{fileName:this._model.uri.fsPath.split("\\").pop(),updatedTokenLines:a.map(e=>e.getLineRange()).join(" & "),updatedStateLines:n.map(e=>new B.LineRange(e.startLineNumber,e.startLineNumber+e.stateDeltas.length).toString()).join(" & ")}),this._shouldLog&&console.log("Applying changes to local states",this._pendingChanges.filter(e=>e.versionId<=i).map(e=>e.changes).map(e=>et(e)).join(" then "));this._pendingChanges.length>0&&this._pendingChanges[0].versionId<=i;){let e=this._pendingChanges.shift();this._states.acceptChanges(e.changes)}if(this._pendingChanges.length>0){this._shouldLog&&console.log("Considering non-processed changes",this._pendingChanges.map(e=>e.changes).map(e=>et(e)).join(" then "));let e=U.fromMany(this._pendingChanges.map(e=>(0,K.linesLengthEditFromModelContentChange)(e.changes))),t=new H.ContiguousMultilineTokensBuilder;for(let i of a)for(let r=i.startLineNumber;r<=i.endLineNumber;r++)void 0!==e.transform(r-1)&&t.add(r,i.getLineTokens(r));for(let e of(a=t.finalize(),this._pendingChanges))for(let t of e.changes)for(let e=0;e<a.length;e++)a[e].applyEdit(t.range,t.text);s.rebase(this._stringEditFromChanges(this._model,this._pendingChanges))}let l=U.fromMany(this._pendingChanges.map(e=>(0,K.linesLengthEditFromModelContentChange)(e.changes)));if(!this._applyStateStackDiffFn||!this._initialState){let{applyStateStackDiff:t,INITIAL:i}=await e.A(895001).then(function(e){return e.main});this._applyStateStackDiffFn=t,this._initialState=i}for(let e of n){let t=e.startLineNumber<=1?this._initialState:this._states.getEndState(e.startLineNumber-1);for(let i=0;i<e.stateDeltas.length;i++){let r,o=e.stateDeltas[i];o?(r=this._applyStateStackDiffFn(t,o),this._states.setEndState(e.startLineNumber+i,r)):r=this._states.getEndState(e.startLineNumber+i);let n=l.transform(e.startLineNumber+i-1);void 0!==n&&this._backgroundTokenizationStore.setEndState(n+1,r),e.startLineNumber+i>=this._model.getLineCount()-1&&this._backgroundTokenizationStore.backgroundTokenizationFinished(),t=r}}this._backgroundTokenizationStore.setTokens(a),this._backgroundTokenizationStore.setFontInfo(s)}_stringEditFromChanges(e,t){let i=[];for(let r of t)for(let t of r.changes){let r=$.Range.lift(t.range),o=t.text,n=e.getOffsetAt(r.getStartPosition()),a=e.getOffsetAt(r.getEndPosition());i.push(Q.StringEdit.replace(new X.OffsetRange(n,a),o))}return Q.StringEdit.compose(i)}get _shouldLog(){return this._loggingEnabled.get()}}function et(e){return e.map(e=>$.Range.lift(e.range).toString()+" => "+e.text).join(" & ")}var ei=e.i(454683),er=e.i(557941);let eo=class{static{t=this}static{this._reportedMismatchingTokens=!1}constructor(e,t,i,r,o,n,a,s){this._reportTokenizationTime=e,this._shouldTokenizeAsync=t,this._extensionResourceLoaderService=i,this._configurationService=r,this._languageService=o,this._notificationService=n,this._telemetryService=a,this._webWorkerService=s,this._workerProxyPromise=null,this._worker=null,this._workerProxy=null,this._workerTokenizerControllers=new Map,this._currentTheme=null,this._currentTokenColorMap=null,this._grammarDefinitions=[]}dispose(){this._disposeWorker()}createBackgroundTokenizer(e,i,r){if(!this._shouldTokenizeAsync()||e.isTooLargeForSyncing())return;let o=new g.DisposableStore,n=this._getWorkerProxy().then(t=>{if(o.isDisposed||!t)return;let n={controller:void 0,worker:this._worker};return o.add(function(e,t){let i=new g.DisposableStore,r=i.add(new g.DisposableStore);function o(){e.isAttachedToEditor()?r.add(t()):r.clear()}return o(),i.add(e.onDidChangeAttached(()=>{o()})),i}(e,()=>{let o=new ee(e,t,this._languageService.languageIdCodec,i,this._configurationService,r);return n.controller=o,this._workerTokenizerControllers.set(o.controllerId,o),(0,g.toDisposable)(()=>{n.controller=void 0,this._workerTokenizerControllers.delete(o.controllerId),o.dispose()})})),n});return{dispose(){o.dispose()},requestTokens:async(e,t)=>{let i=await n;i?.controller&&i.worker===this._worker&&i.controller.requestTokens(e,t)},reportMismatchingTokens:e=>{t._reportedMismatchingTokens||(t._reportedMismatchingTokens=!0,this._notificationService.error({message:"Async Tokenization Token Mismatch in line "+e,name:"Async Tokenization Token Mismatch"}),this._telemetryService.publicLog2("asyncTokenizationMismatchingTokens",{}))}}}setGrammarDefinitions(e){this._grammarDefinitions=e,this._disposeWorker()}acceptTheme(e,t){this._currentTheme=e,this._currentTokenColorMap=t,this._currentTheme&&this._currentTokenColorMap&&this._workerProxy&&this._workerProxy.$acceptTheme(this._currentTheme,this._currentTokenColorMap)}_getWorkerProxy(){return this._workerProxyPromise||(this._workerProxyPromise=this._createWorkerProxy()),this._workerProxyPromise}async _createWorkerProxy(){let t={grammarDefinitions:this._grammarDefinitions,onigurumaWASMUri:new e.U(e.r(983725)).href},i=this._worker=this._webWorkerService.createWorkerClient(new ei.WebWorkerDescriptor({esmModuleLocation:h.FileAccess.asBrowserUri("vs/workbench/services/textMate/browser/backgroundTokenization/worker/textMateTokenizationWorker.workerMain.js"),label:"TextMateWorker"}));return(j.setChannel(i,{$readFile:async e=>{let t=F.URI.revive(e);return this._extensionResourceLoaderService.readExtensionResource(t)},$setTokensAndStates:async(e,t,i,r,o)=>{let n=this._workerTokenizerControllers.get(e);n&&n.setTokensAndStates(e,t,i,r,o)},$reportTokenizationTime:(e,t,i,r,o)=>{this._reportTokenizationTime(e,t,i,r,o)}}),await i.proxy.$init(t),this._worker!==i)?null:(this._workerProxy=i.proxy,this._currentTheme&&this._currentTokenColorMap&&this._workerProxy.$acceptTheme(this._currentTheme,this._currentTokenColorMap),i.proxy)}_disposeWorker(){for(let e of this._workerTokenizerControllers.values())e.dispose();this._workerTokenizerControllers.clear(),this._worker&&(this._worker.dispose(),this._worker=null),this._workerProxy=null,this._workerProxyPromise=null}};eo=t=(0,a.__decorate)([(0,a.__param)(2,v.IExtensionResourceLoaderService),(0,a.__param)(3,S.IConfigurationService),(0,a.__param)(4,k.ILanguageService),(0,a.__param)(5,C.INotificationService),(0,a.__param)(6,I.ITelemetryService),(0,a.__param)(7,er.IWebWorkerService)],eo);var en=g;class ea{constructor(){this._scopeNameToLanguageRegistration=Object.create(null)}reset(){this._scopeNameToLanguageRegistration=Object.create(null)}register(e){this._scopeNameToLanguageRegistration[e.scopeName]=e}getGrammarDefinition(e){return this._scopeNameToLanguageRegistration[e]||null}}let es="No TM Grammar registered for this language.";class el extends en.Disposable{constructor(e,t,i,r){for(const o of(super(),this._host=e,this._initialState=i.INITIAL,this._scopeRegistry=new ea,this._injections={},this._injectedEmbeddedLanguages={},this._languageToScope=new Map,this._grammarRegistry=this._register(new i.Registry({onigLib:r,loadGrammar:async e=>{let t=this._scopeRegistry.getGrammarDefinition(e);if(!t)return this._host.logTrace(`No grammar found for scope ${e}`),null;let r=t.location;try{let e=await this._host.readFile(r);return i.parseRawGrammar(e,r.path)}catch(t){return this._host.logError(`Unable to load and parse grammar for scope ${e} from ${r}`,t),null}},getInjections:e=>{let t=e.split("."),i=[];for(let e=1;e<=t.length;e++){let r=t.slice(0,e).join(".");i=[...i,...this._injections[r]||[]]}return i}})),t)){if(this._scopeRegistry.register(o),o.injectTo){for(const e of o.injectTo){let t=this._injections[e];t||(this._injections[e]=t=[]),t.push(o.scopeName)}if(o.embeddedLanguages)for(const e of o.injectTo){let t=this._injectedEmbeddedLanguages[e];t||(this._injectedEmbeddedLanguages[e]=t=[]),t.push(o.embeddedLanguages)}}o.language&&this._languageToScope.set(o.language,o.scopeName)}}has(e){return this._languageToScope.has(e)}setTheme(e,t){this._grammarRegistry.setTheme(e,t)}getColorMap(){return this._grammarRegistry.getColorMap()}async createGrammar(e,t){let i,r=this._languageToScope.get(e);if("string"!=typeof r)throw Error(es);let o=this._scopeRegistry.getGrammarDefinition(r);if(!o)throw Error(es);let n=o.embeddedLanguages;if(this._injectedEmbeddedLanguages[r])for(let e of this._injectedEmbeddedLanguages[r])for(let t of Object.keys(e))n[t]=e[t];let a=Object.keys(n).length>0;try{i=await this._grammarRegistry.loadGrammarWithConfiguration(r,t,{embeddedLanguages:n,tokenTypes:o.tokenTypes,balancedBracketSelectors:o.balancedBracketSelectors,unbalancedBracketSelectors:o.unbalancedBracketSelectors})}catch(e){if(e.message&&e.message.startsWith("No grammar provided for"))throw Error(es);throw e}return{languageId:e,grammar:i,initialState:this._initialState,containsEmbeddedLanguages:a,sourceExtensionId:o.sourceExtensionId}}}var ed=e.i(425024),ec=e.i(695519);let eg=ed.ExtensionsRegistry.registerExtensionPoint({extensionPoint:"grammars",deps:[ec.languagesExtPoint],jsonSchema:{description:(0,y.localize)(14288,"Contributes textmate tokenizers."),type:"array",defaultSnippets:[{body:[{language:"${1:id}",scopeName:"source.${2:id}",path:"./syntaxes/${3:id}.tmLanguage."}]}],items:{type:"object",defaultSnippets:[{body:{language:"${1:id}",scopeName:"source.${2:id}",path:"./syntaxes/${3:id}.tmLanguage."}}],properties:{language:{description:(0,y.localize)(14289,"Language identifier for which this syntax is contributed to."),type:"string"},scopeName:{description:(0,y.localize)(14290,"Textmate scope name used by the tmLanguage file."),type:"string"},path:{description:(0,y.localize)(14291,"Path of the tmLanguage file. The path is relative to the extension folder and typically starts with './syntaxes/'."),type:"string"},embeddedLanguages:{description:(0,y.localize)(14292,"A map of scope name to language id if this grammar contains embedded languages."),type:"object"},tokenTypes:{description:(0,y.localize)(14293,"A map of scope name to token types."),type:"object",additionalProperties:{enum:["string","comment","other"]}},injectTo:{description:(0,y.localize)(14294,"List of language scope names to which this grammar is injected to."),type:"array",items:{type:"string"}},balancedBracketScopes:{description:(0,y.localize)(14295,"Defines which scope names contain balanced brackets."),type:"array",items:{type:"string"},default:["*"]},unbalancedBracketScopes:{description:(0,y.localize)(14296,"Defines which scope names do not contain balanced brackets."),type:"array",items:{type:"string"},default:[]}},required:["scopeName","path"]}}});var eh=e.i(905192),eu=e.i(229081);let em=class extends g.Disposable{static{i=this}static{this.reportTokenizationTimeCounter={sync:0,async:0}}constructor(e,t,i,r,o,n,a,l,d,c){super(),this._languageService=e,this._themeService=t,this._extensionResourceLoaderService=i,this._notificationService=r,this._logService=o,this._configurationService=n,this._progressService=a,this._environmentService=l,this._instantiationService=d,this._telemetryService=c,this._createdModes=[],this._encounteredLanguages=[],this._debugMode=!1,this._debugModePrintFunc=()=>{},this._grammarDefinitions=null,this._grammarFactory=null,this._tokenizersRegistrations=this._register(new g.DisposableStore),this._currentTheme=null,this._currentTokenColorMap=null,this._currentTokenFontMap=null,this._threadedBackgroundTokenizerFactory=this._instantiationService.createInstance(eo,(e,t,i,r,o)=>this._reportTokenizationTime(e,t,i,r,!0,o),()=>this.getAsyncTokenizationEnabled()),this._vscodeOniguruma=null,this._styleElement=(0,s.createStyleSheet)(),this._styleElement.className="vscode-tokens-styles",eg.setHandler(e=>this._handleGrammarsExtPoint(e)),this._updateTheme(this._themeService.getColorTheme(),!0),this._register(this._themeService.onDidColorThemeChange(()=>{this._updateTheme(this._themeService.getColorTheme(),!1)})),this._register(this._languageService.onDidRequestRichLanguageFeatures(e=>{this._createdModes.push(e)}))}getAsyncTokenizationEnabled(){return!!this._configurationService.getValue("editor.experimental.asyncTokenization")}getAsyncTokenizationVerification(){return!!this._configurationService.getValue("editor.experimental.asyncTokenizationVerification")}_handleGrammarsExtPoint(e){for(let t of(this._grammarDefinitions=null,this._grammarFactory&&(this._grammarFactory.dispose(),this._grammarFactory=null),this._tokenizersRegistrations.clear(),this._grammarDefinitions=[],e))for(let e of t.value){let i=this._validateGrammarDefinition(t,e);if(i&&(this._grammarDefinitions.push(i),i.language)){let e=new f.LazyTokenizationSupport(()=>this._createTokenizationSupport(i.language));this._tokenizersRegistrations.add(e),this._tokenizersRegistrations.add(f.TokenizationRegistry.registerFactory(i.language,e))}}for(let e of(this._threadedBackgroundTokenizerFactory.setGrammarDefinitions(this._grammarDefinitions),this._createdModes))f.TokenizationRegistry.getOrCreate(e)}_validateGrammarDefinition(e,t){if(!function(e,t,i,r){if(t.language&&("string"!=typeof t.language||!r.isRegisteredLanguageId(t.language)))return i.error((0,y.localize)(14281,"Unknown language in `contributes.{0}.language`. Provided value: {1}",eg.name,String(t.language))),!1;if(!t.scopeName||"string"!=typeof t.scopeName)return i.error((0,y.localize)(14282,"Expected string in `contributes.{0}.scopeName`. Provided value: {1}",eg.name,String(t.scopeName))),!1;if(!t.path||"string"!=typeof t.path)return i.error((0,y.localize)(14283,"Expected string in `contributes.{0}.path`. Provided value: {1}",eg.name,String(t.path))),!1;if(t.injectTo&&(!Array.isArray(t.injectTo)||t.injectTo.some(e=>"string"!=typeof e)))return i.error((0,y.localize)(14284,"Invalid value in `contributes.{0}.injectTo`. Must be an array of language scope names. Provided value: {1}",eg.name,JSON.stringify(t.injectTo))),!1;if(t.embeddedLanguages&&!(0,p.isObject)(t.embeddedLanguages))return i.error((0,y.localize)(14285,"Invalid value in `contributes.{0}.embeddedLanguages`. Must be an object map from scope name to language. Provided value: {1}",eg.name,JSON.stringify(t.embeddedLanguages))),!1;if(t.tokenTypes&&!(0,p.isObject)(t.tokenTypes))return i.error((0,y.localize)(14286,"Invalid value in `contributes.{0}.tokenTypes`. Must be an object map from scope name to token type. Provided value: {1}",eg.name,JSON.stringify(t.tokenTypes))),!1;let o=(0,m.joinPath)(e,t.path);return(0,m.isEqualOrParent)(o,e)||i.warn((0,y.localize)(14287,"Expected `contributes.{0}.path` ({1}) to be included inside extension's folder ({2}). This might make the extension non-portable.",eg.name,o.path,e.path)),!0}(e.description.extensionLocation,t,e.collector,this._languageService))return null;let i=(0,m.joinPath)(e.description.extensionLocation,t.path),r=Object.create(null);if(t.embeddedLanguages){let e=Object.keys(t.embeddedLanguages);for(let i=0,o=e.length;i<o;i++){let o=e[i],n=t.embeddedLanguages[o];"string"==typeof n&&this._languageService.isRegisteredLanguageId(n)&&(r[o]=this._languageService.languageIdCodec.encodeLanguageId(n))}}let o=Object.create(null);if(t.tokenTypes)for(let e of Object.keys(t.tokenTypes))switch(t.tokenTypes[e]){case"string":o[e]=_.StandardTokenType.String;break;case"other":o[e]=_.StandardTokenType.Other;break;case"comment":o[e]=_.StandardTokenType.Comment}function n(e,t){return Array.isArray(e)&&e.every(e=>"string"==typeof e)?e:t}return{location:i,language:t.language&&this._languageService.isRegisteredLanguageId(t.language)?t.language:void 0,scopeName:t.scopeName,embeddedLanguages:r,tokenTypes:o,injectTo:t.injectTo,balancedBracketSelectors:n(t.balancedBracketScopes,["*"]),unbalancedBracketSelectors:n(t.unbalancedBracketScopes,[]),sourceExtensionId:e.description.id}}startDebugMode(e,t){this._debugMode?this._notificationService.error((0,y.localize)(14277,"Already Logging.")):(this._debugModePrintFunc=e,this._debugMode=!0,this._debugMode&&this._progressService.withProgress({location:z.ProgressLocation.Notification,buttons:[(0,y.localize)(14278,"Stop")]},e=>(e.report({message:(0,y.localize)(14279,"Preparing to log TM Grammar parsing. Press Stop when finished.")}),this._getVSCodeOniguruma().then(t=>(t.setDefaultDebugCall(!0),e.report({message:(0,y.localize)(14280,"Now logging TM Grammar parsing. Press Stop when finished.")}),new Promise((e,t)=>{})))),e=>{this._getVSCodeOniguruma().then(e=>{this._debugModePrintFunc=()=>{},this._debugMode=!1,e.setDefaultDebugCall(!1),t()})}))}_canCreateGrammarFactory(){return!!this._grammarDefinitions}async _getOrCreateGrammarFactory(){if(this._grammarFactory)return this._grammarFactory;let[t,i]=await Promise.all([e.A(895001).then(function(e){return e.main}),this._getVSCodeOniguruma()]),r=Promise.resolve({createOnigScanner:e=>i.createOnigScanner(e),createOnigString:e=>i.createOnigString(e)});return this._grammarFactory||(this._grammarFactory=new el({logTrace:e=>this._logService.trace(e),logError:(e,t)=>this._logService.error(e,t),readFile:e=>this._extensionResourceLoaderService.readExtensionResource(e)},this._grammarDefinitions||[],t,r),this._updateTheme(this._themeService.getColorTheme(),!0)),this._grammarFactory}async _createTokenizationSupport(e){if(!this._languageService.isRegisteredLanguageId(e)||!this._canCreateGrammarFactory())return null;try{var t,i,r;let o=await this._getOrCreateGrammarFactory();if(!o.has(e))return null;let n=this._languageService.languageIdCodec.encodeLanguageId(e),a=await o.createGrammar(e,n);if(!a.grammar)return null;let s=(t="editor.maxTokenizationLineLength",i=e,r=this._configurationService,(0,eu.observableFromEvent)(e=>r.onDidChangeConfiguration(r=>{r.affectsConfiguration(t,{overrideIdentifier:i})&&e(r)}),()=>r.getValue(t,{overrideIdentifier:i})??-1)),l=new g.DisposableStore,d=l.add(new D(a.grammar,a.initialState,a.containsEmbeddedLanguages,(e,t)=>this._threadedBackgroundTokenizerFactory.createBackgroundTokenizer(e,t,s),()=>this.getAsyncTokenizationVerification(),(t,i,r)=>{this._reportTokenizationTime(t,e,a.sourceExtensionId,i,!1,r)},!0));return l.add(d.onDidEncounterLanguage(e=>{if(!this._encounteredLanguages[e]){let t=this._languageService.languageIdCodec.decodeLanguageId(e);this._encounteredLanguages[e]=!0,this._languageService.requestBasicLanguageFeatures(t)}})),new R(n,d,l,s)}catch(e){if(e.message&&e.message===es)return null;return(0,c.onUnexpectedError)(e),null}}_updateTheme(e,t){if(!t&&this._currentTheme&&this._currentTokenColorMap&&function(e,t){if(!t||!e||t.length!==e.length)return!1;for(let i=t.length-1;i>=0;i--){let r=t[i],o=e[i];if(r.scope!==o.scope)return!1;let n=r.settings,a=o.settings;if(n&&a){if(n.fontStyle!==a.fontStyle||n.foreground!==a.foreground||n.background!==a.background)return!1}else if(!n||!a)return!1}return!0}(this._currentTheme.settings,e.tokenColors)&&(0,l.equals)(this._currentTokenColorMap,e.tokenColorMap)&&this._currentTokenFontMap&&(0,l.equals)(this._currentTokenFontMap,e.tokenFontMap))return;this._currentTheme={name:e.label,settings:e.tokenColors},this._currentTokenColorMap=e.tokenColorMap,this._currentTokenFontMap=e.tokenFontMap,this._grammarFactory?.setTheme(this._currentTheme,this._currentTokenColorMap);let i=function(e){let t=[null];for(let i=1,r=e.length;i<r;i++)t[i]=d.Color.fromHex(e[i]);return t}(this._currentTokenColorMap),r=(0,T.generateTokensCSSForColorMap)(i),o=(0,T.generateTokensCSSForFontMap)(this._currentTokenFontMap);this._styleElement.textContent=r+o,f.TokenizationRegistry.setColorMap(i),this._currentTheme&&this._currentTokenColorMap&&this._threadedBackgroundTokenizerFactory.acceptTheme(this._currentTheme,this._currentTokenColorMap)}async createTokenizer(e){if(!this._languageService.isRegisteredLanguageId(e))return null;let t=await this._getOrCreateGrammarFactory();if(!t.has(e))return null;let i=this._languageService.languageIdCodec.encodeLanguageId(e),{grammar:r}=await t.createGrammar(e,i);return r}_getVSCodeOniguruma(){return this._vscodeOniguruma||(this._vscodeOniguruma=(async()=>{let[t,i]=await Promise.all([e.A(667804).then(function(e){return e.main}),this._loadVSCodeOnigurumaWASM()]);return await t.loadWASM({data:i,print:e=>{this._debugModePrintFunc(e)}}),t})()),this._vscodeOniguruma}async _loadVSCodeOnigurumaWASM(){if(!u.isWeb)return await fetch(h.FileAccess.asBrowserUri(`${h.nodeModulesPath}/vscode-oniguruma/release/onig.wasm`).toString(!0));{let t=await fetch(new e.U(e.r(983725)).href);return await t.arrayBuffer()}}_reportTokenizationTime(e,t,r,o,n,a){let s=n?"async":"sync";i.reportTokenizationTimeCounter[s]>50||(0===i.reportTokenizationTimeCounter[s]&&setTimeout(()=>{i.reportTokenizationTimeCounter[s]=0},36e5),i.reportTokenizationTimeCounter[s]++,this._telemetryService.publicLog2("editor.tokenizedLine",{timeMs:e,languageId:t,lineLength:o,fromWorker:n,sourceExtensionId:r,isRandomSample:a,tokenizationSetting:this.getAsyncTokenizationEnabled()?this.getAsyncTokenizationVerification()?2:1:0}))}};em=i=(0,a.__decorate)([(0,a.__param)(0,k.ILanguageService),(0,a.__param)(1,eh.IWorkbenchThemeService),(0,a.__param)(2,v.IExtensionResourceLoaderService),(0,a.__param)(3,C.INotificationService),(0,a.__param)(4,w.ILogService),(0,a.__param)(5,S.IConfigurationService),(0,a.__param)(6,L.IProgressService),(0,a.__param)(7,M.IWorkbenchEnvironmentService),(0,a.__param)(8,b.IInstantiationService),(0,a.__param)(9,I.ITelemetryService)],em);var ep=e.i(68629),e_=e.i(844141),ef=e.i(697786);let ek=(0,e_.getTokenClassificationRegistry)(),eT=ed.ExtensionsRegistry.registerExtensionPoint({extensionPoint:"semanticTokenTypes",jsonSchema:{description:(0,y.localize)(14487,"Contributes semantic token types."),type:"array",items:{type:"object",properties:{id:{type:"string",description:(0,y.localize)(14488,"The identifier of the semantic token type"),pattern:e_.typeAndModifierIdPattern,patternErrorMessage:(0,y.localize)(14489,"Identifiers should be in the form letterOrDigit[_-letterOrDigit]*")},superType:{type:"string",description:(0,y.localize)(14490,"The super type of the semantic token type"),pattern:e_.typeAndModifierIdPattern,patternErrorMessage:(0,y.localize)(14491,"Super types should be in the form letterOrDigit[_-letterOrDigit]*")},description:{type:"string",description:(0,y.localize)(14492,"The description of the semantic token type")}}}}}),ey=ed.ExtensionsRegistry.registerExtensionPoint({extensionPoint:"semanticTokenModifiers",jsonSchema:{description:(0,y.localize)(14493,"Contributes semantic token modifiers."),type:"array",items:{type:"object",properties:{id:{type:"string",description:(0,y.localize)(14494,"The identifier of the semantic token modifier"),pattern:e_.typeAndModifierIdPattern,patternErrorMessage:(0,y.localize)(14495,"Identifiers should be in the form letterOrDigit[_-letterOrDigit]*")},description:{type:"string",description:(0,y.localize)(14496,"The description of the semantic token modifier")}}}}}),eS=ed.ExtensionsRegistry.registerExtensionPoint({extensionPoint:"semanticTokenScopes",jsonSchema:{description:(0,y.localize)(14497,"Contributes semantic token scope maps."),type:"array",items:{type:"object",properties:{language:{description:(0,y.localize)(14498,"Lists the languge for which the defaults are."),type:"string"},scopes:{description:(0,y.localize)(14499,"Maps a semantic token (described by semantic token selector) to one or more textMate scopes used to represent that token."),type:"object",additionalProperties:{type:"array",items:{type:"string"}}}}}}});class ev{constructor(){function e(e,t,i){if("string"!=typeof e.id||0===e.id.length)return i.error((0,y.localize)(14500,"'configuration.{0}.id' must be defined and can not be empty",t)),!1;if(!e.id.match(e_.typeAndModifierIdPattern))return i.error((0,y.localize)(14501,"'configuration.{0}.id' must follow the pattern letterOrDigit[-_letterOrDigit]*",t)),!1;let r=e.superType;return r&&!r.match(e_.typeAndModifierIdPattern)?(i.error((0,y.localize)(14502,"'configuration.{0}.superType' must follow the pattern letterOrDigit[-_letterOrDigit]*",t)),!1):"string"==typeof e.description&&0!==e.id.length||(i.error((0,y.localize)(14503,"'configuration.{0}.description' must be defined and can not be empty",t)),!1)}eT.setHandler((t,i)=>{for(let t of i.added){let i=t.value,r=t.collector;if(!i||!Array.isArray(i))return void r.error((0,y.localize)(14504,"'configuration.semanticTokenType' must be an array"));for(let t of i)e(t,"semanticTokenType",r)&&ek.registerTokenType(t.id,t.description,t.superType)}for(let e of i.removed)for(let t of e.value)ek.deregisterTokenType(t.id)}),ey.setHandler((t,i)=>{for(let t of i.added){let i=t.value,r=t.collector;if(!i||!Array.isArray(i))return void r.error((0,y.localize)(14505,"'configuration.semanticTokenModifier' must be an array"));for(let t of i)e(t,"semanticTokenModifier",r)&&ek.registerTokenModifier(t.id,t.description)}for(let e of i.removed)for(let t of e.value)ek.deregisterTokenModifier(t.id)}),eS.setHandler((e,t)=>{for(let e of t.added){let t=e.value,i=e.collector;if(!t||!Array.isArray(t))return void i.error((0,y.localize)(14506,"'configuration.semanticTokenScopes' must be an array"));for(let e of t){if(e.language&&"string"!=typeof e.language){i.error((0,y.localize)(14507,"'configuration.semanticTokenScopes.language' must be a string"));continue}if(!e.scopes||"object"!=typeof e.scopes){i.error((0,y.localize)(14508,"'configuration.semanticTokenScopes.scopes' must be defined as an object"));continue}for(let t in e.scopes){let r=e.scopes[t];if(!Array.isArray(r)||r.some(e=>"string"!=typeof e)){i.error((0,y.localize)(14509,"'configuration.semanticTokenScopes.scopes' values must be an array of strings"));continue}try{let i=ek.parseTokenSelector(t,e.language);ek.registerTokenStyleDefault(i,{scopesToProbe:r.map(e=>e.split(" "))})}catch(e){i.error((0,y.localize)(14510,"configuration.semanticTokenScopes.scopes': Problems parsing selector {0}.",t))}}}}for(let e of t.removed)for(let t of e.value)for(let e in t.scopes){let i=t.scopes[e];try{let r=ek.parseTokenSelector(e,t.language);ek.registerTokenStyleDefault(r,{scopesToProbe:i.map(e=>e.split(" "))})}catch(e){}}})}}let eb=class{static{this.ID="workbench.contrib.tokenClassificationExtensionPoint"}constructor(e){this.instantiationService=e,this.instantiationService.createInstance(ev)}};eb=(0,a.__decorate)([(0,a.__param)(0,b.IInstantiationService)],eb),(0,ef.registerWorkbenchContribution2)(eb.ID,eb,ef.WorkbenchPhase.BlockStartup);var ew=e.i(654295),eC=e.i(850887),ez=e.i(601293),eL=e.i(83823),eI=g,eM=e.i(163731),ex=e.i(478697);class eE{constructor(e,t){this.rawSelector=e,this.settings=t;const i=this.rawSelector.split(/ /);this.scope=i[i.length-1],this.parentScopes=i.slice(0,i.length-1)}matches(e,t){return eE._matches(this.scope,this.parentScopes,e,t)}static _cmp(e,t){if(null===e&&null===t)return 0;if(null===e)return -1;if(null===t)return 1;if(e.scope.length!==t.scope.length)return e.scope.length-t.scope.length;let i=e.parentScopes.length,r=t.parentScopes.length;if(i!==r)return i-r;for(let r=0;r<i;r++){let i=e.parentScopes[r].length,o=t.parentScopes[r].length;if(i!==o)return i-o}return 0}isMoreSpecific(e){return eE._cmp(this,e)>0}static _matchesOne(e,t){let i=e+".";return e===t||t.substring(0,i.length)===i}static _matches(e,t,i,r){if(!this._matchesOne(e,i))return!1;let o=t.length-1,n=r.length-1;for(;o>=0&&n>=0;)this._matchesOne(t[o],r[n])&&o--,n--;return -1===o}}var eP=e.i(704994),eD=e.i(88124),eN=e.i(407791),eA=e.i(70594);(0,ew.registerCss)(void 0);let eO=eC.$,eR=class extends eI.Disposable{static{r=this}static{this.ID="editor.contrib.inspectEditorTokens"}static get(e){return e.getContribution(r.ID)}constructor(e,t,i,r,o,n,a){super(),this._editor=e,this._textMateService=t,this._themeService=r,this._languageService=i,this._notificationService=o,this._configurationService=n,this._languageFeaturesService=a,this._widget=null,this._register(this._editor.onDidChangeModel(e=>this.stop())),this._register(this._editor.onDidChangeModelLanguage(e=>this.stop())),this._register(this._editor.onKeyUp(e=>e.keyCode===eL.KeyCode.Escape&&this.stop()))}dispose(){this.stop(),super.dispose()}launch(){this._widget||!this._editor.hasModel()||this._editor.getModel().uri.scheme!==h.Schemas.vscodeNotebookCell&&(this._widget=new eW(this._editor,this._textMateService,this._languageService,this._themeService,this._notificationService,this._configurationService,this._languageFeaturesService))}stop(){this._widget&&(this._widget.dispose(),this._widget=null)}toggle(){this._widget?this.stop():this.launch()}};eR=r=(0,a.__decorate)([(0,a.__param)(1,o.ITextMateTokenizationService),(0,a.__param)(2,k.ILanguageService),(0,a.__param)(3,eh.IWorkbenchThemeService),(0,a.__param)(4,C.INotificationService),(0,a.__param)(5,S.IConfigurationService),(0,a.__param)(6,eN.ILanguageFeaturesService)],eR);class eF extends ex.EditorAction{constructor(){super({id:"editor.action.inspectTMScopes",label:(0,y.localize2)(6175,"Developer: Inspect Editor Tokens and Scopes"),precondition:void 0})}run(e,t){let i=eR.get(t);i?.toggle()}}function ej(e){e.length>40&&(e=e.substr(0,20)+"…"+e.substr(e.length-20));let t="";for(let i=0,r=e.length;i<r;i++){let r=e.charCodeAt(i);switch(r){case ez.CharCode.Tab:t+="→";break;case ez.CharCode.Space:t+="·";break;default:t+=String.fromCharCode(r)}}return t}class eW extends eI.Disposable{static{this._ID="editor.contrib.inspectEditorTokensWidget"}constructor(e,t,i,r,o,n,a){super(),this.allowEditorOverflow=!0,this._isDisposed=!1,this._editor=e,this._languageService=i,this._themeService=r,this._textMateService=t,this._notificationService=o,this._configurationService=n,this._languageFeaturesService=a,this._model=this._editor.getModel(),this._domNode=(0,eC.createElement)("div"),this._domNode.className="token-inspect-widget",this._currentRequestCancellationTokenSource=new eP.CancellationTokenSource,this._beginCompute(this._editor.getPosition()),this._register(this._editor.onDidChangeCursorPosition(e=>this._beginCompute(this._editor.getPosition()))),this._register(r.onDidColorThemeChange(e=>this._beginCompute(this._editor.getPosition()))),this._register(n.onDidChangeConfiguration(e=>e.affectsConfiguration("editor.semanticHighlighting.enabled")&&this._beginCompute(this._editor.getPosition()))),this._editor.addContentWidget(this)}dispose(){this._isDisposed=!0,this._editor.removeContentWidget(this),this._currentRequestCancellationTokenSource.cancel(),super.dispose()}getId(){return eW._ID}_beginCompute(e){let t=this._textMateService.createTokenizer(this._model.getLanguageId()),i=this._computeSemanticTokens(e),r=this._model.tokenization.tokens.get(),o=r instanceof eA.TreeSitterSyntaxTokenBackend?r:void 0;(0,eC.clearNode)(this._domNode),this._domNode.appendChild((0,eC.createTextNode)((0,y.localize)(6176,"Loading..."))),Promise.all([t,i]).then(([t,i])=>{if(this._isDisposed)return;let r=o?.tree.get();this._compute(t,i,r,e),this._domNode.style.maxWidth=`${Math.max(.66*this._editor.getLayoutInfo().width,500)}px`,this._editor.layoutContentWidget(this)},e=>{this._notificationService.warn(e),setTimeout(()=>{eR.get(this._editor)?.stop()})})}_isSemanticColoringEnabled(){let e=this._configurationService.getValue(eD.SEMANTIC_HIGHLIGHTING_SETTING_ID,{overrideIdentifier:this._model.getLanguageId(),resource:this._model.uri})?.enabled;return"boolean"==typeof e?e:this._themeService.getColorTheme().semanticHighlighting}_compute(e,t,i,r){let o=e&&this._getTokensAtPosition(e,r),n=t&&this._getSemanticTokenAtPosition(t,r),a=i&&this._getTreeSitterTokenAtPosition(i,r);if(!o&&!n&&!a)return void(0,eC.reset)(this._domNode,"No grammar or semantic tokens available.");let s=o?.metadata,l=n?.metadata,d=n&&ej(this._model.getValueInRange(n.range)),c=o&&ej(this._model.getLineContent(r.lineNumber).substring(o.token.startIndex,o.token.endIndex)),g=n&&this._model.getValueLengthInRange(n.range),h=o&&o.token.endIndex-o.token.startIndex,u=d||c||"",m=g||h||0;if((0,eC.reset)(this._domNode,eO("h2.tiw-token",void 0,u,eO("span.tiw-token-length",void 0,`${m} ${1===m?"char":"chars"}`))),(0,eC.append)(this._domNode,eO("hr.tiw-metadata-separator",{style:"clear:both"})),(0,eC.append)(this._domNode,eO("table.tiw-metadata-table",void 0,eO("tbody",void 0,eO("tr",void 0,eO("td.tiw-metadata-key",void 0,"language"),eO("td.tiw-metadata-value",void 0,s?.languageId||"")),eO("tr",void 0,eO("td.tiw-metadata-key",void 0,"standard token type"),eO("td.tiw-metadata-value",void 0,this._tokenTypeToString(s?.tokenType||_.StandardTokenType.Other))),...this._formatMetadata(l,s)))),n){(0,eC.append)(this._domNode,eO("hr.tiw-metadata-separator"));let e=(0,eC.append)(this._domNode,eO("table.tiw-metadata-table",void 0)),t=(0,eC.append)(e,eO("tbody",void 0,eO("tr",void 0,eO("td.tiw-metadata-key",void 0,"semantic token type"),eO("td.tiw-metadata-value",void 0,n.type))));if(n.modifiers.length&&(0,eC.append)(t,eO("tr",void 0,eO("td.tiw-metadata-key",void 0,"modifiers"),eO("td.tiw-metadata-value",void 0,n.modifiers.join(" ")))),n.metadata){let e={},i=[];for(let t of["foreground","bold","italic","underline","strikethrough"])if(void 0!==n.metadata[t]){let r=n.definitions[t],o=this._renderTokenStyleDefinition(r,t),a=o.map(e=>(0,eC.isHTMLElement)(e)?e.outerHTML:e).join(),s=e[a];s||(e[a]=s=[],i.push([o,a])),s.push(t)}for(let[r,o]of i)(0,eC.append)(t,eO("tr",void 0,eO("td.tiw-metadata-key",void 0,e[o].join(", ")),eO("td.tiw-metadata-value",void 0,...r)))}}if(o){let e=this._themeService.getColorTheme();(0,eC.append)(this._domNode,eO("hr.tiw-metadata-separator"));let t=(0,eC.append)(this._domNode,eO("table.tiw-metadata-table")),i=(0,eC.append)(t,eO("tbody"));c&&c!==u&&(0,eC.append)(i,eO("tr",void 0,eO("td.tiw-metadata-key",void 0,"textmate token"),eO("td.tiw-metadata-value",void 0,`${c} (${c.length})`)));let r=[];for(let e=o.token.scopes.length-1;e>=0;e--)r.push(o.token.scopes[e]),e>0&&r.push(eO("br"));(0,eC.append)(i,eO("tr",void 0,eO("td.tiw-metadata-key",void 0,"textmate scopes"),eO("td.tiw-metadata-value.tiw-metadata-scopes",void 0,...r)));let a=function(e,t,i=!0){for(let r=t.length-1;r>=0;r--){let o=t.slice(0,r),n=function(e,t,i,r){let o=null;for(let n=e.tokenColors.length-1;n>=0;n--){let a,s=e.tokenColors[n];if(!r||s.settings.foreground){if("string"==typeof s.scope)a=s.scope.split(/,/).map(e=>e.trim());else{if(!Array.isArray(s.scope))continue;a=s.scope}for(let e=0,r=a.length;e<r;e++){let r=new eE(a[e],s.settings);r.matches(t,i)&&r.isMoreSpecific(o)&&(o=r)}}}return o}(e,t[r],o,i);if(n)return n}return null}(e,o.token.scopes,!1),s=n?.metadata?.foreground;if(a){if(s!==o.metadata.foreground){let e=eO("code.tiw-theme-selector",void 0,a.rawSelector,eO("br"),JSON.stringify(a.settings,null," "));s&&(e=eO("s",void 0,e)),(0,eC.append)(i,eO("tr",void 0,eO("td.tiw-metadata-key",void 0,"foreground"),eO("td.tiw-metadata-value",void 0,e)))}}else s||(0,eC.append)(i,eO("tr",void 0,eO("td.tiw-metadata-key",void 0,"foreground"),eO("td.tiw-metadata-value",void 0,"No theme selector")))}if(a){let e=a[a.length-1];(0,eC.append)(this._domNode,eO("hr.tiw-metadata-separator"));let t=(0,eC.append)(this._domNode,eO("table.tiw-metadata-table")),i=(0,eC.append)(t,eO("tbody"));(0,eC.append)(i,eO("tr",void 0,eO("td.tiw-metadata-key",void 0,`tree-sitter token ${e.id}`),eO("td.tiw-metadata-value",void 0,`${e.text}`)));let o=[],n=a.length-1,s=a[n];for(;s.parent||n>0;)o.push(s.type),(s=s.parent??a[--n])&&o.push(eO("br"));(0,eC.append)(i,eO("tr",void 0,eO("td.tiw-metadata-key",void 0,"tree-sitter tree"),eO("td.tiw-metadata-value.tiw-metadata-scopes",void 0,...o)));let l=this._model.tokenization.tokens.get().tokenizationImpl.get(),d=l?.captureAtPosition(r.lineNumber,r.column);d&&d.length>0&&(0,eC.append)(i,eO("tr",void 0,eO("td.tiw-metadata-key",void 0,"foreground"),eO("td.tiw-metadata-value",void 0,d.map(e=>e.name).join(" "))))}}_formatMetadata(e,t){let i=[];function r(r){let o=e?.[r]||t?.[r];if(void 0!==o){let t=e?.[r]?"tiw-metadata-semantic":"";i.push(eO("tr",void 0,eO("td.tiw-metadata-key",void 0,r),eO(`td.tiw-metadata-value.${t}`,void 0,o)))}return o}let o=r("foreground"),n=r("background");if(o&&n){let e=d.Color.fromHex(n),t=d.Color.fromHex(o);e.isOpaque()?i.push(eO("tr",void 0,eO("td.tiw-metadata-key",void 0,"contrast ratio"),eO("td.tiw-metadata-value",void 0,e.getContrastRatio(t.makeOpaque(e)).toFixed(2)))):i.push(eO("tr",void 0,eO("td.tiw-metadata-key",void 0,"Contrast ratio cannot be precise for background colors that use transparency"),eO("td.tiw-metadata-value")))}let a=[];function s(i){let r;e&&e[i]?r=eO("span.tiw-metadata-semantic",void 0,i):t&&t[i]&&(r=i),r&&(a.length&&a.push(" "),a.push(r))}return s("bold"),s("italic"),s("underline"),s("strikethrough"),a.length&&i.push(eO("tr",void 0,eO("td.tiw-metadata-key",void 0,"font style"),eO("td.tiw-metadata-value",void 0,...a))),i}_decodeMetadata(e){let t=this._themeService.getColorTheme().tokenColorMap,i=_.TokenMetadata.getLanguageId(e),r=_.TokenMetadata.getTokenType(e),o=_.TokenMetadata.getFontStyle(e),n=_.TokenMetadata.getForeground(e),a=_.TokenMetadata.getBackground(e);return{languageId:this._languageService.languageIdCodec.decodeLanguageId(i),tokenType:r,bold:!!(o&_.FontStyle.Bold)||void 0,italic:!!(o&_.FontStyle.Italic)||void 0,underline:!!(o&_.FontStyle.Underline)||void 0,strikethrough:!!(o&_.FontStyle.Strikethrough)||void 0,foreground:t[n],background:t[a]}}_tokenTypeToString(e){switch(e){case _.StandardTokenType.Other:return"Other";case _.StandardTokenType.Comment:return"Comment";case _.StandardTokenType.String:return"String";case _.StandardTokenType.RegEx:return"RegEx";default:return"??"}}_getTokensAtPosition(e,t){let i=t.lineNumber,r=this._getStateBeforeLine(e,i),o=e.tokenizeLine(this._model.getLineContent(i),r),n=e.tokenizeLine2(this._model.getLineContent(i),r),a=0;for(let e=o.tokens.length-1;e>=0;e--){let i=o.tokens[e];if(t.column-1>=i.startIndex){a=e;break}}let s=0;for(let e=n.tokens.length>>>1;e>=0;e--)if(t.column-1>=n.tokens[e<<1]){s=e;break}return{token:o.tokens[a],metadata:this._decodeMetadata(n.tokens[(s<<1)+1])}}_getStateBeforeLine(e,t){let i=null;for(let r=1;r<t;r++)i=e.tokenizeLine(this._model.getLineContent(r),i).ruleStack;return i}isSemanticTokens(e){return e&&e.data}async _computeSemanticTokens(e){if(!this._isSemanticColoringEnabled())return null;let t=this._languageFeaturesService.documentSemanticTokensProvider.ordered(this._model);if(t.length){let e=t[0],i=await Promise.resolve(e.provideDocumentSemanticTokens(this._model,null,this._currentRequestCancellationTokenSource.token));if(this.isSemanticTokens(i))return{tokens:i,legend:e.getLegend()}}let i=this._languageFeaturesService.documentRangeSemanticTokensProvider.ordered(this._model);if(i.length){let t=i[0],r=e.lineNumber,o=new $.Range(r,1,r,this._model.getLineMaxColumn(r)),n=await Promise.resolve(t.provideDocumentRangeSemanticTokens(this._model,o,this._currentRequestCancellationTokenSource.token));if(this.isSemanticTokens(n))return{tokens:n,legend:t.getLegend()}}return null}_getSemanticTokenAtPosition(e,t){let i=e.tokens.data,r=this._model.getLanguageId(),o=0,n=0,a=t.lineNumber-1,s=t.column-1;for(let t=0;t<i.length;t+=5){let l=i[t],d=i[t+1],c=i[t+2],g=i[t+3],h=i[t+4],u=o+l,m=0===l?n+d:d;if(a===u&&m<=s&&s<m+c){let t,i=e.legend.tokenTypes[g]||"not in legend (ignored)",o=[],n=h;for(let t=0;n>0&&t<e.legend.tokenModifiers.length;t++)1&n&&o.push(e.legend.tokenModifiers[t]),n>>=1;n>0&&o.push("not in legend (ignored)");let a=new $.Range(u+1,m+1,u+1,m+1+c),s={},l=this._themeService.getColorTheme().tokenColorMap,d=this._themeService.getColorTheme().getTokenStyleMetadata(i,o,r,!0,s);return d&&(t={languageId:void 0,tokenType:_.StandardTokenType.Other,bold:d?.bold,italic:d?.italic,underline:d?.underline,strikethrough:d?.strikethrough,foreground:l[d?.foreground||_.ColorId.None],background:void 0}),{type:i,modifiers:o,range:a,metadata:t,definitions:s}}o=u,n=m}return null}_walkTreeforPosition(e,t){let i=this._model.getOffsetAt(t);e.gotoFirstChild();let r=!1,o=null;do e.currentNode.startIndex<=i&&i<e.currentNode.endIndex?(r=!0,o=e.currentNode):r=!1;while(r?e.gotoFirstChild():e.gotoNextSibling())return o}_getTreeSitterTokenAtPosition(e,t){let i=[],r=e?.tree.get();for(;r;){let o=r.walk(),n=this._walkTreeforPosition(o,t);o.delete(),n?(i.push(n),e=e?.getInjectionTrees(n.startIndex,e.languageId),r=e?.tree.get()):r=void 0}return i.length>0?i:null}_renderTokenStyleDefinition(e,t){let i=[];if(void 0===e)return i;let r=this._themeService.getColorTheme();if(Array.isArray(e)){let o={};r.resolveScopes(e,o);let n=o[t];if(n&&o.scope){let e=eO("ul.tiw-metadata-values");for(let t of Array.isArray(n.scope)?n.scope:[String(n.scope)])e.appendChild(eO("li.tiw-metadata-value.tiw-metadata-scopes",void 0,t));i.push(o.scope.join(" "),e,eO("code.tiw-theme-selector",void 0,JSON.stringify(n.settings,null," ")))}return i}if(e_.SemanticTokenRule.is(e)){let o=r.getTokenStylingRuleScope(e);return"setting"===o?i.push(`User settings: ${e.selector.id} - ${this._renderStyleProperty(e.style,t)}`):"theme"===o&&i.push(`Color theme: ${e.selector.id} - ${this._renderStyleProperty(e.style,t)}`),i}{let o=r.resolveTokenStyleValue(e);return i.push(`Default: ${o?this._renderStyleProperty(o,t):""}`),i}}_renderStyleProperty(e,t){return"foreground"===t?e.foreground?d.Color.Format.CSS.formatHexA(e.foreground,!0):"":void 0!==e[t]?String(e[t]):""}getDomNode(){return this._domNode}getPosition(){return{position:this._editor.getPosition(),preference:[eM.ContentWidgetPositionPreference.BELOW,eM.ContentWidgetPositionPreference.ABOVE]}}}(0,ex.registerEditorContribution)(eR.ID,eR,ex.EditorContributionInstantiation.Lazy),(0,ex.registerEditorAction)(eF),e.i(157255);var eB=e.i(318581),e$=e.i(170774);let eG=class{static{this.ID="workbench.contrib.textMateTokenizationInstantiator"}constructor(e){}};function eV(){return{...(0,ep.default)(),[o.ITextMateTokenizationService.toString()]:new n.SyncDescriptor(em,[],!1)}}eG=(0,a.__decorate)([(0,a.__param)(0,o.ITextMateTokenizationService)],eG),(0,ef.registerWorkbenchContribution2)(eG.ID,eG,ef.WorkbenchPhase.BlockRestore),eB.CommandsRegistry.registerCommand("_workbench.colorizeTextMateTokens",async(e,t)=>{let i=e.get(e$.ITextFileService),r=t?(await i.files.resolve(t)).textEditorModel:void 0;if(!r)throw Error(`Cannot resolve text model for resource ${t}`);let o=await f.TokenizationRegistry.getOrCreate(r.getLanguageId());if(!o)throw Error(`Cannot resolve tokenizer for language ${r.getLanguageId()}`);let n=new P.StopWatch,a=o.getInitialState();for(let e=1;e<=r.getLineCount();e++)a=o.tokenizeEncoded(r.getLineContent(e),!0,a).endState;return n.stop(),{tokenizeTime:n.elapsed()}}),e.s(["default",0,eV],451992),e.i(451992),e.s(["default",0,eV],635473)}]);
@@ -0,0 +1,16 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,236634,725487,668316,964873,9174,223328,865332,834691,315806,e=>{"use strict";e.s([],236634),e.i(8890);var t,a,s,i=e.i(764556),n=e.i(535270),r=e.i(277642),o=e.i(29905),l=e.i(969490),c=e.i(756432),d=e.i(267805);let u=i.createContext(void 0);function p(){let e=i.useContext(u);if(void 0===e)throw Error((0,d.default)(64));return e}e.s(["TabsRootContext",0,u,"useTabsRootContext",0,p],725487);let f=((t={}).activationDirection="data-activation-direction",t.orientation="data-orientation",t),h={tabActivationDirection:e=>({[f.activationDirection]:e})};e.s(["tabsStateAttributesMapping",0,h],668316);var m=e.i(344180);let x=i.forwardRef(function(e,t){let{className:a,defaultValue:s=0,onValueChange:d,orientation:p="horizontal",render:f,value:x,style:v,...b}=e,j=Object.hasOwn(e,"defaultValue"),y=i.useRef([]),[w,k]=i.useState(()=>new Map),[N,S]=(0,n.useControlled)({controlled:x,default:s,name:"Tabs",state:"value"}),C=void 0!==x,[T,R]=i.useState(()=>new Map),I=i.useCallback(e=>{if(void 0===e)return null;for(let[t,a]of T.entries())if(null!=a&&e===(a.value??a.index))return t;return null},[T]),[E,A]=i.useState(()=>({previousValue:N,tabActivationDirection:"none"})),{previousValue:O,tabActivationDirection:L}=E,M=L,P=!1;O!==N&&(M=g(O,N,p,T),P=null!=O&&null!=N&&null==I(N));let D=P?O:N,_=O!==D||L!==M;(0,r.useIsoLayoutEffect)(()=>{_&&A({previousValue:D,tabActivationDirection:M})},[D,_,M]);let z=(0,o.useStableCallback)((e,t)=>{t.activationDirection=g(N,e,p,T),d?.(e,t),t.isCanceled||S(e)}),W=(0,o.useStableCallback)((e,t)=>{k(a=>{if(a.get(e)===t)return a;let s=new Map(a);return s.set(e,t),s})}),F=(0,o.useStableCallback)((e,t)=>{k(a=>{if(!a.has(e)||a.get(e)!==t)return a;let s=new Map(a);return s.delete(e),s})}),B=i.useCallback(e=>w.get(e),[w]),H=i.useCallback(e=>{for(let t of T.values())if(e===t?.value)return t?.id},[T]),$=i.useMemo(()=>({getTabElementBySelectedValue:I,getTabIdByPanelValue:H,getTabPanelIdByValue:B,onValueChange:z,orientation:p,registerMountedTabPanel:W,setTabMap:R,unregisterMountedTabPanel:F,tabActivationDirection:M,value:N}),[I,H,B,z,p,W,R,F,M,N]),K=i.useMemo(()=>{for(let e of T.values())if(null!=e&&e.value===N)return e},[T,N]),q=i.useMemo(()=>{for(let e of T.values())if(null!=e&&!e.disabled)return e.value},[T]);(0,r.useIsoLayoutEffect)(()=>{if(C||0===T.size)return;let e=K?.disabled,t=null==K&&null!==N;if(j&&e&&N===s||!e&&!t)return;let a=q??null;N!==a&&(S(a),A(e=>"none"===e.tabActivationDirection?e:{...e,tabActivationDirection:"none"}))},[s,q,j,C,K,S,T,N]);let U={orientation:p,tabActivationDirection:M},Y=(0,l.useRenderElement)("div",e,{state:U,ref:t,props:b,stateAttributesMapping:h});return(0,m.jsx)(u.Provider,{value:$,children:(0,m.jsx)(c.CompositeList,{elementsRef:y,children:Y})})});function g(e,t,a,s){if(null==e||null==t)return"none";let i=null,n=null;for(let[a,r]of s.entries()){if(null==r)continue;let s=r.value??r.index;if(e===s&&(i=a),t===s&&(n=a),null!=i&&null!=n)break}if(null==i||null==n)return i!==n&&("number"==typeof e||"string"==typeof e)&&typeof e==typeof t?"horizontal"===a?t>e?"right":"left":t>e?"down":"up":"none";let r=i.getBoundingClientRect(),o=n.getBoundingClientRect();if("horizontal"===a){if(o.left<r.left)return"left";if(o.left>r.left)return"right"}else{if(o.top<r.top)return"up";if(o.top>r.top)return"down"}return"none"}e.s(["TabsRoot",0,x],964873);var v=e.i(526850),b=e.i(139236),j=e.i(931709);let y="data-composite-item-active";e.s(["ACTIVE_COMPOSITE_ITEM",0,y],9174);var w=e.i(530909);let k=i.createContext(void 0);function N(){let e=i.useContext(k);if(void 0===e)throw Error((0,d.default)(65));return e}e.s(["TabsListContext",0,k,"useTabsListContext",0,N],223328);var S=e.i(602453),C=e.i(742665),T=e.i(410421);let R=i.forwardRef(function(e,t){let{className:a,disabled:s=!1,render:n,value:o,id:c,nativeButton:d=!0,style:u,...f}=e,{value:h,getTabPanelIdByValue:m,orientation:x}=p(),{activateOnFocus:g,highlightedTabIndex:k,onTabActivation:R,registerTabResizeObserverElement:I,setHighlightedTabIndex:E,tabsListElement:A}=N(),O=(0,b.useBaseUiId)(c),L=i.useMemo(()=>({disabled:s,id:O,value:o}),[s,O,o]),{compositeProps:M,compositeRef:P,index:D}=(0,w.useCompositeItem)({metadata:L}),_=o===h,z=i.useRef(!1),W=i.useRef(null);i.useEffect(()=>{let e=W.current;if(e)return I(e)},[I]),(0,r.useIsoLayoutEffect)(()=>{if(z.current){z.current=!1;return}if(_&&D>-1&&k!==D){if(null!=A){let e=(0,T.activeElement)((0,v.ownerDocument)(A));if(e&&(0,T.contains)(A,e))return}s||E(D)}},[_,D,k,E,s,A]);let{getButtonProps:F,buttonRef:B}=(0,j.useButton)({disabled:s,native:d,focusableWhenDisabled:!0}),H=m(o),$=i.useRef(!1),K=i.useRef(!1);return(0,l.useRenderElement)("button",e,{state:{disabled:s,active:_,orientation:x},ref:[t,B,P,W],props:[M,{role:"tab","aria-controls":H,"aria-selected":_,id:O,onClick:function(e){_||s||R(o,(0,S.createChangeEventDetails)(C.REASONS.none,e.nativeEvent,void 0,{activationDirection:"none"}))},onFocus:function(e){_||(D>-1&&!s&&E(D),!s&&g&&(!$.current||$.current&&K.current)&&R(o,(0,S.createChangeEventDetails)(C.REASONS.none,e.nativeEvent,void 0,{activationDirection:"none"})))},onPointerDown:function(e){_||s||($.current=!0,e.button&&0!==e.button||(K.current=!0,(0,v.ownerDocument)(e.currentTarget).addEventListener("pointerup",function(){$.current=!1,K.current=!1},{once:!0})))},[y]:_?"":void 0,onKeyDownCapture(){z.current=!0}},f,F]})});e.s(["TabsTab",0,R],865332);var I=e.i(730774),E=e.i(517432);let A=((a={}).activeTabLeft="--active-tab-left",a.activeTabRight="--active-tab-right",a.activeTabTop="--active-tab-top",a.activeTabBottom="--active-tab-bottom",a.activeTabWidth="--active-tab-width",a.activeTabHeight="--active-tab-height",a);var O=e.i(394394);let L={...h,activeTabPosition:()=>null,activeTabSize:()=>null},M=i.forwardRef(function(e,t){let{className:a,render:s,renderBeforeHydration:n=!1,style:r,...o}=e,{nonce:c}=(0,O.useCSPContext)(),{getTabElementBySelectedValue:d,orientation:u,tabActivationDirection:f,value:h}=p(),{tabsListElement:x,registerIndicatorUpdateListener:g}=N(),v=(0,E.useIsHydrating)(),b=function(){let[,e]=i.useState({});return i.useCallback(()=>{e({})},[])}();i.useEffect(()=>g(b),[g,b]);let j=0,y=0,w=0,k=0,S=0,C=0,T=!1;if(null!=h&&null!=x){let e=d(h);if(T=!0,null!=e){let{width:t,height:a}=(0,I.getCssDimensions)(e),{width:s,height:i}=(0,I.getCssDimensions)(x),n=e.getBoundingClientRect(),r=x.getBoundingClientRect(),o=s>0?r.width/s:1,l=i>0?r.height/i:1;if(Math.abs(o)>Number.EPSILON&&Math.abs(l)>Number.EPSILON){let e=n.left-r.left,t=n.top-r.top;j=e/o+x.scrollLeft-x.clientLeft,w=t/l+x.scrollTop-x.clientTop}else j=e.offsetLeft,w=e.offsetTop;S=t,C=a,y=x.scrollWidth-j-S,k=x.scrollHeight-w-C}}let R=i.useMemo(()=>T?{left:j,right:y,top:w,bottom:k}:null,[j,y,w,k,T]),M=i.useMemo(()=>T?{width:S,height:C}:null,[S,C,T]),P=i.useMemo(()=>{if(T)return{[A.activeTabLeft]:`${j}px`,[A.activeTabRight]:`${y}px`,[A.activeTabTop]:`${w}px`,[A.activeTabBottom]:`${k}px`,[A.activeTabWidth]:`${S}px`,[A.activeTabHeight]:`${C}px`}},[j,y,w,k,S,C,T]),D=T&&S>0&&C>0,_=(0,l.useRenderElement)("span",e,{state:{orientation:u,activeTabPosition:R,activeTabSize:M,tabActivationDirection:f},ref:t,props:[{role:"presentation",style:P,hidden:!D},o,{suppressHydrationWarning:!0}],stateAttributesMapping:L});return null==h?null:(0,m.jsxs)(i.Fragment,{children:[_,v&&n&&(0,m.jsx)("script",{nonce:c,dangerouslySetInnerHTML:{__html:'!function(){const t=document.currentScript.previousElementSibling;if(!t)return;const e=t.closest(\'[role="tablist"]\');if(!e)return;const i=e.querySelector("[data-active]");if(!i)return;if(0===i.offsetWidth||0===e.offsetWidth)return;let o=0,n=0,h=0,l=0,r=0,f=0;function s(t){const e=getComputedStyle(t);let i=parseFloat(e.width)||0,o=parseFloat(e.height)||0;return(Math.round(i)!==t.offsetWidth||Math.round(o)!==t.offsetHeight)&&(i=t.offsetWidth,o=t.offsetHeight),{width:i,height:o}}if(null!=i&&null!=e){const{width:t,height:c}=s(i),{width:u,height:d}=s(e),a=i.getBoundingClientRect(),g=e.getBoundingClientRect(),p=u>0?g.width/u:1,b=d>0?g.height/d:1;if(Math.abs(p)>Number.EPSILON&&Math.abs(b)>Number.EPSILON){const t=a.left-g.left,i=a.top-g.top;o=t/p+e.scrollLeft-e.clientLeft,h=i/b+e.scrollTop-e.clientTop}else o=i.offsetLeft,h=i.offsetTop;r=t,f=c,n=e.scrollWidth-o-r,l=e.scrollHeight-h-f}function c(e,i){t.style.setProperty(`--active-tab-${e}`,`${i}px`)}c("left",o),c("right",n),c("top",h),c("bottom",l),c("width",r),c("height",f),r>0&&f>0&&t.removeAttribute("hidden")}();'},suppressHydrationWarning:!0})]})});e.s(["TabsIndicator",0,M],834691);var P=e.i(677822),D=e.i(282458),_=e.i(273598),z=e.i(254891),W=e.i(296615);let F=((s={}).index="data-index",s.activationDirection="data-activation-direction",s.orientation="data-orientation",s.hidden="data-hidden",s[s.startingStyle=D.TransitionStatusDataAttributes.startingStyle]="startingStyle",s[s.endingStyle=D.TransitionStatusDataAttributes.endingStyle]="endingStyle",s),B={...h,...D.transitionStatusMapping},H=i.forwardRef(function(e,t){let{className:a,value:s,render:n,keepMounted:o=!1,style:c,...d}=e,{value:u,getTabIdByPanelValue:f,orientation:h,tabActivationDirection:m,registerMountedTabPanel:x,unregisterMountedTabPanel:g}=p(),v=(0,b.useBaseUiId)(),j=i.useMemo(()=>({id:v,value:s}),[v,s]),{ref:y,index:w}=(0,W.useCompositeListItem)({metadata:j}),k=s===u,{mounted:N,transitionStatus:S,setMounted:C}=(0,z.useTransitionStatus)(k),T=!N,R=f(s),I=i.useRef(null),E=(0,l.useRenderElement)("div",e,{state:{hidden:T,orientation:h,tabActivationDirection:m,transitionStatus:S},ref:[t,y,I],props:[{"aria-labelledby":R,hidden:T,id:v,role:"tabpanel",tabIndex:k?0:-1,inert:(0,P.inertValue)(!k),[F.index]:w},d],stateAttributesMapping:B});return((0,_.useOpenChangeComplete)({open:k,ref:I,onComplete(){k||C(!1)}}),(0,r.useIsoLayoutEffect)(()=>{if((!T||o)&&null!=v)return x(s,v),()=>{g(s,v)}},[T,o,s,v,x,g]),o||N)?E:null});e.s(["TabsPanel",0,H],315806)},568769,e=>{"use strict";e.s(["isElementDisabled",0,function(e){return null==e||e.hasAttribute("disabled")||"true"===e.getAttribute("aria-disabled")}])},812057,e=>{"use strict";var t=e.i(344180);e.i(236634);var a=e.i(964873),s=e.i(865332),i=e.i(834691),n=e.i(315806);e.i(8890);var r=e.i(764556),o=e.i(29905),l=e.i(863728),c=e.i(756432),d=e.i(568769),u=e.i(204133),p=e.i(100229),f=e.i(877580),h=e.i(9174),m=e.i(410421);let x=[];var g=e.i(352360),v=e.i(969490),b=e.i(189131);function j(e){let{render:a,className:s,style:i,refs:n=l.EMPTY_ARRAY,props:j=l.EMPTY_ARRAY,state:y=l.EMPTY_OBJECT,stateAttributesMapping:w,highlightedIndex:k,onHighlightedIndexChange:N,orientation:S,dense:C,itemSizes:T,loopFocus:R,onLoop:I,cols:E,enableHomeAndEndKeys:A,onMapChange:O,stopEventPropagation:L=!0,rootRef:M,disabledIndices:P,modifierKeys:D,highlightItemOnHover:_=!1,tag:z="div",...W}=e,{props:F,highlightedIndex:B,onHighlightedIndexChange:H,elementsRef:$,onMapChange:K,relayKeyboardEvent:q}=function(e){let{itemSizes:t,cols:a=1,loopFocus:s=!0,onLoop:i,dense:n=!1,orientation:l="both",direction:c,highlightedIndex:g,onHighlightedIndexChange:v,rootRef:b,enableHomeAndEndKeys:j=!1,stopEventPropagation:y=!1,disabledIndices:w,modifierKeys:k=x}=e,[N,S]=r.useState(0),C=a>1,T=r.useRef(null),R=(0,u.useMergedRefs)(T,b),I=r.useRef([]),E=r.useRef(!1),A=g??N,O=(0,o.useStableCallback)((e,t=!1)=>{if((v??S)(e),t){let t=I.current[e];(0,p.scrollIntoViewIfNeeded)(T.current,t,c,l)}}),L=(0,o.useStableCallback)(e=>{if(0===e.size||E.current)return;E.current=!0;let t=Array.from(e.keys()),a=t.find(e=>e?.hasAttribute(h.ACTIVE_COMPOSITE_ITEM))??null,s=a?t.indexOf(a):-1;-1!==s&&O(s),(0,p.scrollIntoViewIfNeeded)(T.current,a,c,l)}),M=(0,o.useStableCallback)((e,t,a)=>i?i?.(e,t,a,I):a),P=r.useMemo(()=>({"aria-orientation":"both"===l?void 0:l,ref:R,onFocus(e){let t=T.current,a=(0,m.getTarget)(e.nativeEvent);t&&null!=a&&(0,p.isNativeInput)(a)&&a.setSelectionRange(0,a.value.length??0)},onKeyDown(e){let r=j?p.ALL_KEYS:p.ARROW_KEYS;if(!r.has(e.key)||function(e,t){for(let a of p.MODIFIER_KEYS.values())if(!t.includes(a)&&e.getModifierState(a))return!0;return!1}(e,k)||!T.current)return;let o="rtl"===c,u=o?p.ARROW_LEFT:p.ARROW_RIGHT,h={horizontal:u,vertical:p.ARROW_DOWN,both:u}[l],x=o?p.ARROW_RIGHT:p.ARROW_LEFT,g={horizontal:x,vertical:p.ARROW_UP,both:x}[l],v=(0,m.getTarget)(e.nativeEvent);if(null!=v&&(0,p.isNativeInput)(v)&&!(0,d.isElementDisabled)(v)){let t=v.selectionStart,a=v.selectionEnd,s=v.value??"";if(null==t||e.shiftKey||t!==a||e.key!==g&&t<s.length||e.key!==h&&t>0)return}let b=A,N=(0,f.getMinListIndex)(I,w),S=(0,f.getMaxListIndex)(I,w);if(C){let i=t||Array.from({length:I.current.length},()=>({width:1,height:1})),r=(0,f.createGridCellMap)(i,a,n),c=r.findIndex(e=>null!=e&&!(0,f.isListIndexDisabled)(I.current,e,w)),d=r.reduce((e,t,a)=>null==t||(0,f.isListIndexDisabled)(I.current,t,w)?e:a,-1);b=r[(0,f.getGridNavigatedIndex)(r.map(e=>null!=e?I.current[e]:null),{event:e,orientation:l,loopFocus:s,onLoop:M,cols:a,disabledIndices:(0,f.getGridCellIndices)([...w||I.current.map((e,t)=>(0,f.isListIndexDisabled)(I.current,t)?t:void 0),void 0],r),minIndex:c,maxIndex:d,prevIndex:(0,f.getGridCellIndexOfCorner)(A>S?N:A,i,r,a,e.key===p.ARROW_DOWN?"bl":e.key===p.ARROW_RIGHT?"tr":"tl"),rtl:o})]}let R={horizontal:[u],vertical:[p.ARROW_DOWN],both:[u,p.ARROW_DOWN]}[l],E={horizontal:[x],vertical:[p.ARROW_UP],both:[x,p.ARROW_UP]}[l],L=C?r:({horizontal:j?p.HORIZONTAL_KEYS_WITH_EXTRA_KEYS:p.HORIZONTAL_KEYS,vertical:j?p.VERTICAL_KEYS_WITH_EXTRA_KEYS:p.VERTICAL_KEYS,both:r})[l];j&&(e.key===p.HOME?b=N:e.key===p.END&&(b=S)),b===A&&(R.includes(e.key)||E.includes(e.key))&&(s&&b===S&&R.includes(e.key)?(b=N,i&&(b=i(e,A,b,I))):s&&b===N&&E.includes(e.key)?(b=S,i&&(b=i(e,A,b,I))):b=(0,f.findNonDisabledListIndex)(I.current,{startingIndex:b,decrement:E.includes(e.key),disabledIndices:w})),b===A||(0,f.isIndexOutOfListBounds)(I.current,b)||(y&&e.stopPropagation(),L.has(e.key)&&e.preventDefault(),O(b,!0),queueMicrotask(()=>{I.current[b]?.focus()}))}}),[a,n,c,w,I,j,A,C,t,s,i,M,R,k,O,l,y]);return r.useMemo(()=>({props:P,highlightedIndex:A,onHighlightedIndexChange:O,elementsRef:I,disabledIndices:w,onMapChange:L,relayKeyboardEvent:P.onKeyDown}),[P,A,O,I,w,L])}({itemSizes:T,cols:E,loopFocus:R,onLoop:I,dense:C,orientation:S,highlightedIndex:k,onHighlightedIndexChange:N,rootRef:M,stopEventPropagation:L,enableHomeAndEndKeys:A,direction:(0,b.useDirection)(),disabledIndices:P,modifierKeys:D}),U=(0,v.useRenderElement)(z,e,{state:y,ref:n,props:[F,...j,W],stateAttributesMapping:w}),Y=r.useMemo(()=>({highlightedIndex:B,onHighlightedIndexChange:H,highlightItemOnHover:_,relayKeyboardEvent:q}),[B,H,_,q]);return(0,t.jsx)(g.CompositeRootContext.Provider,{value:Y,children:(0,t.jsx)(c.CompositeList,{elementsRef:$,onMapChange:e=>{O?.(e),K(e)},children:U})})}var y=e.i(668316),w=e.i(725487),k=e.i(223328);let N=r.forwardRef(function(e,a){let{activateOnFocus:s=!1,className:i,loopFocus:n=!0,render:c,style:d,...u}=e,{onValueChange:p,orientation:f,value:h,setTabMap:m,tabActivationDirection:x}=(0,w.useTabsRootContext)(),[g,v]=r.useState(0),[b,N]=r.useState(null),S=r.useRef(new Set),C=r.useRef(new Set),T=r.useRef(null),R=(0,o.useStableCallback)(()=>{S.current.forEach(e=>{e()})});r.useEffect(()=>{if("u"<typeof ResizeObserver)return;let e=new ResizeObserver(()=>{S.current.size&&R()});return T.current=e,b&&e.observe(b),C.current.forEach(t=>{e.observe(t)}),()=>{e.disconnect(),T.current=null}},[b,R]);let I=(0,o.useStableCallback)(e=>(S.current.add(e),()=>{S.current.delete(e)})),E=(0,o.useStableCallback)(e=>(C.current.add(e),T.current?.observe(e),()=>{C.current.delete(e),T.current?.unobserve(e)})),A=(0,o.useStableCallback)((e,t)=>{e!==h&&p(e,t)}),O=r.useMemo(()=>({activateOnFocus:s,highlightedTabIndex:g,registerIndicatorUpdateListener:I,registerTabResizeObserverElement:E,onTabActivation:A,setHighlightedTabIndex:v,tabsListElement:b}),[s,g,I,E,A,v,b]);return(0,t.jsx)(k.TabsListContext.Provider,{value:O,children:(0,t.jsx)(j,{render:c,className:i,style:d,state:{orientation:f,tabActivationDirection:x},refs:[a,N],props:[{"aria-orientation":"vertical"===f?"vertical":void 0,role:"tablist"},u],stateAttributesMapping:y.tabsStateAttributesMapping,highlightedIndex:g,enableHomeAndEndKeys:!0,loopFocus:n,orientation:f,onHighlightedIndexChange:v,onMapChange:m,disabledIndices:l.EMPTY_ARRAY})})});e.s(["Indicator",()=>i.TabsIndicator,"List",0,N,"Panel",()=>n.TabsPanel,"Root",()=>a.TabsRoot,"Tab",()=>s.TabsTab],227146);var S=e.i(227146),S=S,C=e.i(294237),T=e.i(465458);let R=(0,C.cva)("group/tabs-list inline-flex w-fit items-center justify-center rounded-lg p-[3px] text-muted-foreground group-data-horizontal/tabs:h-8 group-data-vertical/tabs:h-fit group-data-vertical/tabs:flex-col data-[variant=line]:rounded-none",{variants:{variant:{default:"bg-muted",line:"gap-1 bg-transparent"}},defaultVariants:{variant:"default"}});e.s(["Tabs",0,function({className:e,orientation:a="horizontal",...s}){return(0,t.jsx)(S.Root,{"data-slot":"tabs","data-orientation":a,className:(0,T.cn)("group/tabs flex gap-2 data-horizontal:flex-col",e),...s})},"TabsContent",0,function({className:e,...a}){return(0,t.jsx)(S.Panel,{"data-slot":"tabs-content",className:(0,T.cn)("flex-1 text-sm outline-none",e),...a})},"TabsList",0,function({className:e,variant:a="default",...s}){return(0,t.jsx)(S.List,{"data-slot":"tabs-list","data-variant":a,className:(0,T.cn)(R({variant:a}),e),...s})},"TabsTrigger",0,function({className:e,...a}){return(0,t.jsx)(S.Tab,{"data-slot":"tabs-trigger",className:(0,T.cn)("relative inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-1.5 py-0.5 text-sm font-medium whitespace-nowrap text-foreground/60 transition-all group-data-vertical/tabs:w-full group-data-vertical/tabs:justify-start hover:text-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-1 focus-visible:outline-ring disabled:pointer-events-none disabled:opacity-50 has-data-[icon=inline-end]:pr-1 has-data-[icon=inline-start]:pl-1 aria-disabled:pointer-events-none aria-disabled:opacity-50 dark:text-muted-foreground dark:hover:text-foreground group-data-[variant=default]/tabs-list:data-active:shadow-sm group-data-[variant=line]/tabs-list:data-active:shadow-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4","group-data-[variant=line]/tabs-list:bg-transparent group-data-[variant=line]/tabs-list:data-active:bg-transparent dark:group-data-[variant=line]/tabs-list:data-active:border-transparent dark:group-data-[variant=line]/tabs-list:data-active:bg-transparent","data-active:bg-background data-active:text-foreground dark:data-active:border-input dark:data-active:bg-input/30 dark:data-active:text-foreground","after:absolute after:bg-foreground after:opacity-0 after:transition-opacity group-data-horizontal/tabs:after:inset-x-0 group-data-horizontal/tabs:after:bottom-[-5px] group-data-horizontal/tabs:after:h-0.5 group-data-vertical/tabs:after:inset-y-0 group-data-vertical/tabs:after:-right-1 group-data-vertical/tabs:after:w-0.5 group-data-[variant=line]/tabs-list:data-active:after:opacity-100",e),...a})}],812057)},600304,759309,e=>{"use strict";let t=(0,e.i(433721).default)("send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]);e.s(["default",0,t],759309),e.s(["Send",0,t],600304)},583705,e=>{"use strict";let t=(0,e.i(433721).default)("info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);e.s(["Info",0,t],583705)},244996,444741,294543,e=>{"use strict";var t=e.i(433721);let a=(0,t.default)("circle-check",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);e.s(["default",0,a],444741),e.s(["CheckCircle2",0,a],244996);let s=(0,t.default)("circle-question-mark",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);e.s(["default",0,s],294543)},896841,e=>{"use strict";var t=e.i(344180),a=e.i(764556),s=e.i(244073),i=e.i(191118),n=e.i(31807),r=e.i(327964),o=e.i(355819),l=e.i(361031),c=e.i(588591),d=e.i(62669),u=e.i(515104),p=e.i(226624),f=e.i(817854),h=e.i(451534),m=e.i(227634),x=e.i(191441);function g({icon:e,label:a,value:s}){return(0,t.jsxs)("div",{className:"flex items-center gap-2 text-sm",children:[(0,t.jsx)("span",{className:"text-muted-foreground",children:e}),(0,t.jsx)("span",{className:"text-muted-foreground shrink-0",children:a}),(0,t.jsx)("span",{className:"truncate text-foreground ml-auto",title:s,children:s})]})}function v({workspace:e,channelCount:i,issueCount:n}){let r=(0,s.useTranslations)("projectSettings"),[o,l]=(0,a.useState)(!1!==e.autoProcessIssues),[c,u]=(0,a.useState)(!1!==e.hooksEnabled),[b,j]=(0,a.useState)(!1),y=async t=>{if(!b){j(!0);try{let a=await fetch(`/api/workspaces/${e.id}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({autoProcessIssues:t})}),s=await a.json();l(!1!==s.autoProcessIssues)}finally{j(!1)}}},w=async t=>{if(!b){j(!0);try{let a=await fetch(`/api/workspaces/${e.id}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({hooksEnabled:t})}),s=await a.json();u(!1!==s.hooksEnabled)}finally{j(!1)}}};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"space-y-3",children:[(0,t.jsx)("h4",{className:"text-xs font-medium text-muted-foreground uppercase tracking-wider",children:r("info.title")}),(0,t.jsx)(g,{icon:(0,t.jsx)(h.FolderOpen,{size:14}),label:r("info.path"),value:e.boundDirs[0]??"-"}),(0,t.jsx)(g,{icon:(0,t.jsx)(m.Hash,{size:14}),label:r("info.channels"),value:String(i)}),(0,t.jsx)(g,{icon:(0,t.jsx)(x.ListChecks,{size:14}),label:r("info.issues"),value:String(n)})]}),(0,t.jsxs)("div",{className:"space-y-3",children:[(0,t.jsx)("h4",{className:"text-xs font-medium text-muted-foreground uppercase tracking-wider",children:r("automation.title")}),(0,t.jsxs)("div",{className:"flex items-center justify-between rounded-md border px-3 py-2.5",children:[(0,t.jsxs)("div",{className:"space-y-0.5 pr-4",children:[(0,t.jsx)(f.Label,{htmlFor:"auto-process",className:"text-sm font-medium",children:r("automation.autoProcess")}),(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:r("automation.autoProcessDescription")})]}),(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[b&&(0,t.jsx)(d.Loader2,{className:"h-3 w-3 animate-spin text-muted-foreground"}),(0,t.jsx)(p.Switch,{id:"auto-process",checked:o,onCheckedChange:y,disabled:b})]})]})]}),(0,t.jsxs)("div",{className:"space-y-3",children:[(0,t.jsx)("h4",{className:"text-xs font-medium text-muted-foreground uppercase tracking-wider",children:"Hooks"}),(0,t.jsxs)("div",{className:"flex items-center justify-between rounded-md border px-3 py-2.5",children:[(0,t.jsxs)("div",{className:"space-y-0.5 pr-4",children:[(0,t.jsx)(f.Label,{htmlFor:"hooks-enabled",className:"text-sm font-medium",children:"Enable Hooks"}),(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:"Enable per-tool-call hooks for this workspace"})]}),(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[b&&(0,t.jsx)(d.Loader2,{className:"h-3 w-3 animate-spin text-muted-foreground"}),(0,t.jsx)(p.Switch,{id:"hooks-enabled",checked:c,onCheckedChange:w,disabled:b})]})]})]})]})}var b=e.i(260218),j=e.i(681622),y=e.i(812057),w=e.i(209988),k=e.i(36539),k=k,N=e.i(325443),S=e.i(244996),C=e.i(294543),C=C,T=e.i(92457);let R=(0,e.i(433721).default)("qr-code",[["rect",{width:"5",height:"5",x:"3",y:"3",rx:"1",key:"1tu5fj"}],["rect",{width:"5",height:"5",x:"16",y:"3",rx:"1",key:"1v8r4q"}],["rect",{width:"5",height:"5",x:"3",y:"16",rx:"1",key:"1x03jg"}],["path",{d:"M21 16h-3a2 2 0 0 0-2 2v3",key:"177gqh"}],["path",{d:"M21 21v.01",key:"ents32"}],["path",{d:"M12 7v3a2 2 0 0 1-2 2H7",key:"8crl2c"}],["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M12 3h.01",key:"n36tog"}],["path",{d:"M12 16v.01",key:"133mhm"}],["path",{d:"M16 12h1",key:"1slzba"}],["path",{d:"M21 12v.01",key:"1lwtk9"}],["path",{d:"M12 21v-1",key:"1880an"}]]);var I=e.i(601039),E=e.i(600304),A=e.i(360112);let O=[{value:"issue_started",labelKey:"events.issueStarted"},{value:"issue_completed",labelKey:"events.issueCompleted"},{value:"issue_task_completed",labelKey:"events.taskCompleted"},{value:"channel_agent_completed",labelKey:"events.channelAgentCompleted"}];function L(){return{enabled:!1,provider:"lark",events:["issue_started","issue_completed","issue_task_completed"],lark:{},wechat:{}}}let M=`{
2
+ "scopes": {
3
+ "tenant": [
4
+ "contact:contact.base:readonly",
5
+ "im:chat:readonly",
6
+ "im:chat.members:read",
7
+ "im:message",
8
+ "im:message.group_at_msg:readonly",
9
+ "im:message.group_msg",
10
+ "im:message.p2p_msg:readonly",
11
+ "im:message:send_as_bot",
12
+ "im:resource"
13
+ ],
14
+ "user": []
15
+ }
16
+ }`;function P(){let[e,s]=(0,a.useState)(!1);return(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsxs)(b.Button,{type:"button",size:"sm",variant:"outline",onClick:()=>{navigator.clipboard.writeText(M).then(()=>{s(!0),setTimeout(()=>s(!1),2e3)})},children:[e?(0,t.jsx)(S.CheckCircle2,{className:"mr-1.5 h-3.5 w-3.5 text-emerald-600"}):null,e?"已复制":"复制批量权限配置"]}),(0,t.jsxs)("details",{className:"group",children:[(0,t.jsx)("summary",{className:"cursor-pointer text-xs text-muted-foreground hover:text-foreground",children:"展开查看权限详情"}),(0,t.jsx)("pre",{className:"mt-1.5 overflow-x-auto rounded-md bg-muted p-2 text-xs",children:M})]})]})}function D({workspaceId:e,workspace:i,notificationDraft:n,setNotificationDraft:r,setWorkspace:o,botAgents:c,agentDialogOpen:h,setAgentDialogOpen:m}){var x;let g=(0,s.useTranslations)("projectSettings"),v=(0,s.useTranslations)("common"),[M,_]=(0,a.useState)(!1),[z,W]=(0,a.useState)(!1),[F,B]=(0,a.useState)(!1),[H,$]=(0,a.useState)(!1),[K,q]=(0,a.useState)({status:"idle"}),U=(0,a.useRef)(!1),[Y,G]=(0,a.useState)("default"),[V,J]=(0,a.useState)(!1),[Q,X]=(0,a.useState)(!1),Z=!!(n.wechat?.token&&n.wechat?.accountId),ee=(0,l.useWorkspaceStore)(e=>e.upsertWorkspace);(0,a.useEffect)(()=>{if(!n.enabled||"wechat"!==n.provider||!["wait","scaned"].includes(K.status))return;let t=window.setInterval(()=>{U.current||(U.current=!0,fetch(`/api/workspaces/${e}/notifications/wechat/qr?poll=1`,{method:"POST"}).then(async e=>{let t=await e.json().catch(()=>null);if(!e.ok)throw Error(t?.error||"Failed to poll WeChat QR status");q({status:t.status??"wait",qrcodeImgContent:t.qrcodeImgContent??K.qrcodeImgContent,accountId:t.accountId,baseUrl:t.baseUrl}),t.workspace&&(o(t.workspace),r(t.workspace.notificationSettings??L()),A.toast.success(g("wechat.connectedToast")))}).catch(e=>{A.toast.error(g("wechat.pollFailed"),{description:e instanceof Error?e.message:void 0})}).finally(()=>{U.current=!1}))},2e3);return()=>window.clearInterval(t)},[n.enabled,n.provider,r,o,g,K.qrcodeImgContent,K.status,e]),(0,a.useEffect)(()=>{J((0,u.isNativeAndroidEnvironment)()),(0,u.getNotificationPermission)().then(G)},[]);let et=async t=>{if(!i||M)return null;_(!0);try{let a=await fetch(`/api/workspaces/${e}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({notificationSettings:t})});if(!a.ok){let e=await a.json().catch(()=>null);throw Error(e?.error||"Failed to save notification settings")}let s=await a.json();return o(s),ee(s),r(s.notificationSettings??L()),s}catch(e){return A.toast.error(g("notifications.saveFailed"),{description:e instanceof Error?e.message:void 0}),null}finally{_(!1)}},ea=e=>{let t={...n,...e,lark:{...n.lark,...e.lark},wechat:{...n.wechat,...e.wechat},native:{...n.native,...e.native}};r(t),et(t)},es=async()=>{if(!z){W(!0);try{if(!await et(n))throw Error("Failed to save notification settings");let t=await fetch(`/api/workspaces/${e}/notifications/start`,{method:"POST"});if(!t.ok){let e=await t.json().catch(()=>null);throw Error(e?.error||"Failed to start notification service")}let a=await t.json();a.workspace?(o(a.workspace),r(a.workspace.notificationSettings??L())):r({...n,serviceRunning:!0}),A.toast.success(g("notifications.startSuccess"))}catch(e){A.toast.error(g("notifications.startFailed"),{description:e instanceof Error?e.message:void 0})}finally{W(!1)}}},ei=async()=>{if(!z){W(!0);try{let t=await fetch(`/api/workspaces/${e}/notifications/stop`,{method:"POST"});if(!t.ok){let e=await t.json().catch(()=>null);throw Error(e?.error||"Failed to stop notification service")}let a=await t.json();a.workspace?(o(a.workspace),r(a.workspace.notificationSettings??L())):r({...n,serviceRunning:!1}),A.toast.success(g("notifications.stopSuccess"))}catch(e){A.toast.error(g("notifications.stopFailed"),{description:e instanceof Error?e.message:void 0})}finally{W(!1)}}},en=async()=>{if(!F){B(!0);try{let t=await fetch(`/api/workspaces/${e}/notifications/test`,{method:"POST"}),a=await t.json().catch(()=>null);if(!t.ok)throw Error(a?.reason||a?.error||"Failed to send test notification");A.toast.success(g("notifications.testSuccess"))}catch(e){A.toast.error(g("notifications.testFailed"),{description:e instanceof Error?e.message:void 0})}finally{B(!1)}}},er=async()=>{if(!H){$(!0);try{if(!await et({...n,provider:"wechat"}))throw Error("Failed to save notification settings");let t=await fetch(`/api/workspaces/${e}/notifications/wechat/qr${Z?"?refresh=1":""}`,{method:"POST"}),a=await t.json().catch(()=>null);if(!t.ok)throw Error(a?.error||"Failed to get WeChat QR code");q({status:a.status??"wait",qrcodeImgContent:a.qrcodeImgContent,accountId:a.accountId,baseUrl:a.baseUrl}),a.workspace&&(o(a.workspace),r(a.workspace.notificationSettings??L()))}catch(e){A.toast.error(g("wechat.getQrFailed"),{description:e instanceof Error?e.message:void 0})}finally{$(!1)}}};return(0,t.jsxs)("div",{className:"space-y-3",children:[(0,t.jsx)("h4",{className:"text-xs font-medium text-muted-foreground uppercase tracking-wider",children:g("notifications.title")}),(0,t.jsxs)("div",{className:"space-y-4 rounded-md border px-3 py-3",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsxs)("div",{className:"space-y-0.5 pr-4",children:[(0,t.jsx)(f.Label,{htmlFor:"message-notifications",className:"text-sm font-medium",children:g("notifications.messageNotifications")}),(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:g("notifications.messageNotificationsDescription")})]}),(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[M&&(0,t.jsx)(d.Loader2,{className:"h-3 w-3 animate-spin text-muted-foreground"}),(0,t.jsx)(p.Switch,{id:"message-notifications",checked:n.enabled,onCheckedChange:e=>ea({enabled:e}),disabled:M})]})]}),n.enabled&&(0,t.jsxs)("div",{className:"space-y-4",children:[(0,t.jsxs)(y.Tabs,{value:n.provider,onValueChange:e=>ea({provider:e}),className:"flex flex-col",children:[(0,t.jsxs)(y.TabsList,{className:"grid w-full grid-cols-3",children:[(0,t.jsx)(y.TabsTrigger,{value:"lark",children:g("notifications.lark")}),(0,t.jsx)(y.TabsTrigger,{value:"wechat",children:g("notifications.wechat")}),(0,t.jsx)(y.TabsTrigger,{value:"native",children:g("notifications.native")})]}),(0,t.jsxs)(y.TabsContent,{value:"lark",className:"space-y-3 pt-2",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsx)("span",{className:"text-xs text-muted-foreground",children:"飞书 Bot 配置"}),(0,t.jsxs)(b.Button,{type:"button",variant:"ghost",size:"sm",className:"h-6 gap-1 px-2 text-xs text-muted-foreground hover:text-foreground",onClick:()=>X(!0),children:[(0,t.jsx)(C.default,{className:"h-3.5 w-3.5"}),"部署教程"]})]}),(0,t.jsxs)("div",{className:"grid gap-2",children:[(0,t.jsx)(f.Label,{htmlFor:"lark-app-id",className:"text-xs text-muted-foreground",children:g("notifications.appId")}),(0,t.jsx)(j.Input,{id:"lark-app-id",value:n.lark?.appId??"",onChange:e=>r({...n,lark:{...n.lark,appId:e.target.value}}),placeholder:"cli_xxx",disabled:z})]}),(0,t.jsxs)("div",{className:"grid gap-2",children:[(0,t.jsx)(f.Label,{htmlFor:"lark-app-secret",className:"text-xs text-muted-foreground",children:g("notifications.appSecret")}),(0,t.jsx)(j.Input,{id:"lark-app-secret",type:"password",value:n.lark?.appSecret??"",onChange:e=>r({...n,lark:{...n.lark,appSecret:e.target.value}}),placeholder:"app secret",disabled:z})]}),(0,t.jsxs)("div",{className:"flex flex-wrap gap-2",children:[(0,t.jsxs)(b.Button,{type:"button",size:"sm",variant:n.serviceRunning?"outline":"default",onClick:n.serviceRunning?ei:es,disabled:z||M||!n.lark?.appId||!n.lark?.appSecret,children:[z?(0,t.jsx)(d.Loader2,{className:"mr-2 h-3.5 w-3.5 animate-spin"}):(0,t.jsx)(E.Send,{className:"mr-2 h-3.5 w-3.5"}),n.serviceRunning?g("notifications.stopService"):g("notifications.startService")]}),(0,t.jsxs)(b.Button,{type:"button",size:"sm",variant:"outline",onClick:en,disabled:F||M||!n.serviceRunning,children:[F&&(0,t.jsx)(d.Loader2,{className:"mr-2 h-3.5 w-3.5 animate-spin"}),g("notifications.testSend")]})]})]}),(0,t.jsxs)(y.TabsContent,{value:"wechat",className:"space-y-3 pt-2",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between gap-3 rounded-md border px-3 py-2.5",children:[(0,t.jsxs)("div",{className:"min-w-0",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 text-sm font-medium",children:[Z?(0,t.jsx)(S.CheckCircle2,{className:"h-4 w-4 text-emerald-600"}):(0,t.jsx)(R,{className:"h-4 w-4"}),g("wechat.robot")]}),(0,t.jsx)("p",{className:"mt-1 truncate text-xs text-muted-foreground",children:Z?g("wechat.connected",{accountId:n.wechat?.accountId??""}):"scaned"===K.status?g("wechat.scanned"):"expired"===K.status?g("wechat.expired"):g("wechat.scanQr")})]}),(0,t.jsxs)(b.Button,{type:"button",size:"sm",variant:"outline",onClick:er,disabled:H||M||z,children:[H?(0,t.jsx)(d.Loader2,{className:"mr-2 h-3.5 w-3.5 animate-spin"}):(0,t.jsx)(I.RefreshCw,{className:"mr-2 h-3.5 w-3.5"}),Z?g("wechat.refreshLogin"):g("wechat.getQr")]})]}),K.qrcodeImgContent&&!Z&&(0,t.jsxs)("div",{className:"flex items-center gap-3 rounded-md border border-dashed px-3 py-3",children:[(0,t.jsx)("img",{src:(x=K.qrcodeImgContent,`https://api.qrserver.com/v1/create-qr-code/?size=180x180&margin=8&data=${encodeURIComponent(x)}`),alt:"WeChat robot login QR code",className:"h-36 w-36 shrink-0 rounded border bg-white p-2"}),(0,t.jsxs)("div",{className:"min-w-0 space-y-1 text-xs text-muted-foreground",children:[(0,t.jsx)("p",{children:g("wechat.status",{status:"scaned"===K.status?"scanned":K.status})}),(0,t.jsx)("p",{className:"break-all",children:g("wechat.loginUrl",{url:K.qrcodeImgContent})})]})]}),(0,t.jsxs)("div",{className:"flex flex-wrap gap-2",children:[(0,t.jsxs)(b.Button,{type:"button",size:"sm",variant:n.serviceRunning?"outline":"default",onClick:n.serviceRunning?ei:es,disabled:z||M||!Z,children:[z?(0,t.jsx)(d.Loader2,{className:"mr-2 h-3.5 w-3.5 animate-spin"}):(0,t.jsx)(E.Send,{className:"mr-2 h-3.5 w-3.5"}),n.serviceRunning?g("notifications.stopService"):g("notifications.startService")]}),(0,t.jsxs)(b.Button,{type:"button",size:"sm",variant:"outline",onClick:en,disabled:F||M||!n.serviceRunning,children:[F&&(0,t.jsx)(d.Loader2,{className:"mr-2 h-3.5 w-3.5 animate-spin"}),g("notifications.testSend")]})]})]}),(0,t.jsxs)(y.TabsContent,{value:"native",className:"space-y-3 pt-2",children:[(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:g("notifications.nativeDescription")}),(0,t.jsxs)("div",{className:"flex items-center justify-between gap-3 rounded-md border px-3 py-2.5",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 text-sm",children:[(0,t.jsx)(T.Monitor,{className:"h-4 w-4 text-muted-foreground"}),(0,t.jsxs)("span",{className:"font-medium",children:["granted"===Y&&(0,t.jsxs)("span",{className:"flex items-center gap-1.5",children:[(0,t.jsx)(S.CheckCircle2,{className:"h-4 w-4 text-emerald-600"}),g("notifications.nativePermissionGranted")]}),"denied"===Y&&g("notifications.nativePermissionDenied"),"default"===Y&&g("notifications.nativePermissionDefault"),"unsupported"===Y&&g("notifications.nativePermissionUnsupported")]})]}),"unsupported"!==Y&&"granted"!==Y&&(0,t.jsx)(b.Button,{type:"button",size:"sm",variant:"outline",onClick:async()=>{let e=await (0,u.requestNotificationPermission)();G(e),"granted"===e?(ea({native:{permissionGranted:!0}}),A.toast.success(g("notifications.nativePermissionGrantedToast"))):"denied"===e&&A.toast.error(g("notifications.nativePermissionDeniedToast"))},disabled:"denied"===Y,children:g("notifications.nativeRequestPermission")})]}),V&&(0,t.jsxs)("div",{className:"flex items-center justify-between gap-3 rounded-md border px-3 py-2.5",children:[(0,t.jsxs)("div",{className:"space-y-0.5 pr-4",children:[(0,t.jsx)(f.Label,{htmlFor:"android-ongoing-task-notification",className:"text-sm font-medium",children:g("notifications.androidOngoingTaskNotification")}),(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:g("notifications.androidOngoingTaskNotificationDescription")})]}),(0,t.jsx)(p.Switch,{id:"android-ongoing-task-notification",checked:n.native?.androidOngoingTaskNotification??!1,onCheckedChange:e=>ea({native:{permissionGranted:n.native?.permissionGranted,androidOngoingTaskNotification:e}}),disabled:M||"granted"!==Y})]}),(0,t.jsx)("div",{className:"flex flex-wrap gap-2",children:(0,t.jsx)(b.Button,{type:"button",size:"sm",variant:"outline",onClick:async()=>{try{await (0,u.sendNativeNotification)("Agent Spaces",g("notifications.nativeTestSuccess")),A.toast.success(g("notifications.nativeTestSent"),{duration:5e3})}catch(e){A.toast.error(`${g("notifications.nativeTestFailed")}: ${e instanceof Error?e.message:e}`,{duration:5e3})}},disabled:"granted"!==Y,children:g("notifications.testSend")})})]})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 text-xs font-medium text-muted-foreground",children:[(0,t.jsx)(N.Bot,{className:"h-3.5 w-3.5"}),g("botAgent.title")]}),(0,t.jsxs)("div",{className:"flex gap-2",children:[(0,t.jsxs)("select",{value:n.botAgentId??"",onChange:e=>{ea({botAgentId:e.target.value||void 0})},disabled:M,className:"h-8 min-w-0 flex-1 rounded-lg border border-input bg-transparent px-2.5 text-sm outline-none focus-visible:border-ring dark:bg-input/30",children:[(0,t.jsx)("option",{value:"",children:g("botAgent.selectAgent")}),c.map(e=>(0,t.jsx)("option",{value:e.id,children:e.name},e.id))]}),(0,t.jsx)(b.Button,{type:"button",size:"sm",variant:"outline",onClick:()=>m(!0),children:v("manage")})]})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 text-xs font-medium text-muted-foreground",children:[(0,t.jsx)(k.default,{className:"h-3.5 w-3.5"}),g("events.title")]}),(0,t.jsx)("div",{className:"grid gap-2",children:O.map(e=>(0,t.jsxs)("label",{className:"flex items-center gap-2 rounded-md border px-3 py-2 text-sm",children:[(0,t.jsx)("input",{type:"checkbox",className:"h-4 w-4 accent-primary",checked:n.events.includes(e.value),onChange:t=>{var a,s;let i;return a=e.value,s=t.target.checked,i=new Set(n.events),void(s?i.add(a):i.delete(a),ea({events:Array.from(i)}))},disabled:M}),(0,t.jsx)("span",{children:g(e.labelKey)})]},e.value))})]})]})]}),(0,t.jsx)(w.Dialog,{open:Q,onOpenChange:X,children:(0,t.jsxs)(w.DialogContent,{className:"sm:max-w-lg",children:[(0,t.jsxs)(w.DialogHeader,{children:[(0,t.jsx)(w.DialogTitle,{children:"创建飞书 Bot"}),(0,t.jsx)(w.DialogDescription,{children:"首次使用?按以下步骤在飞书开放平台创建机器人应用"})]}),(0,t.jsxs)("div",{className:"space-y-4 text-sm",children:[(0,t.jsxs)("div",{className:"space-y-1.5",children:[(0,t.jsx)("p",{className:"font-medium",children:"1. 创建自建应用"}),(0,t.jsxs)("p",{className:"text-muted-foreground",children:["前往"," ",(0,t.jsx)("a",{href:"https://open.feishu.cn/app",target:"_blank",rel:"noreferrer",className:"underline underline-offset-3 hover:text-foreground",children:"飞书开放平台"})," ","(海外版:"," ",(0,t.jsx)("a",{href:"https://open.larksuite.com/app",target:"_blank",rel:"noreferrer",className:"underline underline-offset-3 hover:text-foreground",children:"Lark 开放平台"}),"),点击「创建自建应用」并填写名称描述。"]})]}),(0,t.jsxs)("div",{className:"space-y-1.5",children:[(0,t.jsx)("p",{className:"font-medium",children:"2. 获取凭证"}),(0,t.jsx)("p",{className:"text-muted-foreground",children:"进入详情页,在「凭证与基础信息」中找到 App ID 和 App Secret,复制到上方的配置表单。"})]}),(0,t.jsxs)("div",{className:"space-y-1.5",children:[(0,t.jsx)("p",{className:"font-medium",children:"3. 启用机器人能力"}),(0,t.jsx)("p",{className:"text-muted-foreground",children:"进入「添加应用能力」页面,启用「机器人」能力。这样应用才能接收和发送飞书消息。"})]}),(0,t.jsxs)("div",{className:"space-y-1.5",children:[(0,t.jsx)("p",{className:"font-medium",children:"4. 配置权限"}),(0,t.jsx)("p",{className:"text-muted-foreground",children:"进入「权限管理」页面,点击下方按钮复制权限配置 JSON,然后在飞书开放平台通过「批量开通」粘贴即可一键添加所有权限:"}),(0,t.jsx)(P,{})]}),(0,t.jsxs)("div",{className:"space-y-1.5",children:[(0,t.jsx)("p",{className:"font-medium",children:"5. 配置事件订阅(关键步骤)"}),(0,t.jsx)("p",{className:"text-muted-foreground",children:"进入「事件与回调」页面:"}),(0,t.jsxs)("ul",{className:"list-disc space-y-1 pl-4 text-muted-foreground",children:[(0,t.jsx)("li",{children:"事件订阅方式选择「使用长连接接收事件」(而非 Webhook,无需公网 IP)"}),(0,t.jsxs)("li",{children:["添加事件 ",(0,t.jsx)("code",{className:"rounded bg-muted px-1 py-0.5 text-xs",children:"im.message.receive_v1"}),"(接收消息)"]})]})]}),(0,t.jsxs)("div",{className:"space-y-1.5",children:[(0,t.jsx)("p",{className:"font-medium",children:"6. 发布应用"}),(0,t.jsx)("p",{className:"text-muted-foreground",children:"进入「版本管理与发布」→ 创建版本 → 提交审核。需要企业管理员在管理后台审核通过后,机器人才能正常使用。"}),(0,t.jsx)("p",{className:"text-muted-foreground",children:"版本审核通过并发布后,在飞书中搜索机器人名称添加到聊天,即可通过飞书向 Proma Agent 发送指令。"})]})]})]})})]})}var _=e.i(788010),z=e.i(583705),W=e.i(638322);function F({workspaceId:e,initialPrompt:i}){let n=(0,s.useTranslations)("projectSettings"),[r,o]=(0,a.useState)(i),[l,c]=(0,a.useState)(i),[u,p]=(0,a.useState)(!1),h=r!==l,m=async()=>{if(!u){p(!0);try{let t=await fetch(`/api/workspaces/${e}/prompt`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({prompt:r})});if(!t.ok){let e=await t.json().catch(()=>null);throw Error(e?.error||"Failed to save workspace prompt")}let a=await t.json();o(a.prompt),c(a.prompt),A.toast.success(n("prompt.saveSuccess"))}catch(e){A.toast.error(n("prompt.saveFailed"),{description:e instanceof Error?e.message:void 0})}finally{p(!1)}}};return(0,t.jsxs)("div",{className:"space-y-3",children:[(0,t.jsx)("h4",{className:"text-xs font-medium text-muted-foreground uppercase tracking-wider",children:n("prompt.title")}),(0,t.jsxs)("div",{className:"space-y-3 rounded-md border px-3 py-3",children:[(0,t.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,t.jsx)(f.Label,{htmlFor:"workspace-prompt",className:"text-sm font-medium",children:n("prompt.workspacePrompt")}),(0,t.jsx)(W.TooltipProvider,{delay:200,children:(0,t.jsxs)(W.Tooltip,{children:[(0,t.jsx)(W.TooltipTrigger,{className:"inline-flex",children:(0,t.jsx)(z.Info,{className:"h-3.5 w-3.5 text-muted-foreground cursor-help"})}),(0,t.jsx)(W.TooltipContent,{side:"top",className:"max-w-xs",children:(0,t.jsx)("p",{children:n("prompt.description")})})]})})]}),(0,t.jsx)(_.Textarea,{id:"workspace-prompt",value:r,onChange:e=>o(e.target.value),className:"min-h-36 resize-y text-sm"}),(0,t.jsx)("div",{className:"flex justify-end",children:(0,t.jsxs)(b.Button,{type:"button",size:"sm",onClick:m,disabled:u||!h,children:[u&&(0,t.jsx)(d.Loader2,{className:"mr-2 h-3.5 w-3.5 animate-spin"}),n("prompt.savePrompt")]})})]})]})}e.s(["ProjectSettingsPanel",0,function({workspaceId:e}){let p=(0,s.useTranslations)("projectSettings"),[f,h]=(0,a.useState)(null),[m,x]=(0,a.useState)(""),[g,b]=(0,a.useState)(!0),[j,y]=(0,a.useState)(!1),[w,k]=(0,a.useState)(L()),N=(0,n.useChannelStore)(e=>e.channels),S=(0,r.useIssueStore)(e=>e.issues),C=(0,o.useAgentStore)(e=>e.agents).filter(e=>"bot"===e.role&&!1!==e.enabled),T=(0,l.useWorkspaceStore)(e=>e.upsertWorkspace);return((0,a.useEffect)(()=>{Promise.all([fetch(`/api/workspaces/${e}`).then(e=>e.json()),fetch(`/api/workspaces/${e}/prompt`).then(e=>e.json())]).then(([t,a])=>{h(t),T(t),x(a.prompt??"");let s=t.notificationSettings??L();k(s),b(!1),(0,u.getNotificationPermission)().then(t=>{if("granted"===t&&"native"===s.provider&&!s.native?.permissionGranted){let t={...s,native:{...s.native,permissionGranted:!0}};k(t),fetch(`/api/workspaces/${e}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({notificationSettings:t})}).then(e=>e.json()).then(e=>{h(e),T(e)})}})}).catch(()=>b(!1))},[e,T]),g)?(0,t.jsxs)("div",{className:"flex items-center justify-center h-full text-muted-foreground text-sm",children:[(0,t.jsx)(d.Loader2,{className:"h-4 w-4 animate-spin mr-2"}),p("loading")]}):f?(0,t.jsxs)(i.ScrollArea,{className:"h-full",children:[(0,t.jsx)("div",{className:"flex items-center px-2 py-1.5 border-b text-xs font-medium text-muted-foreground",children:(0,t.jsx)("span",{children:p("title")})}),(0,t.jsxs)("div",{className:"p-4 space-y-6",children:[(0,t.jsx)(v,{workspace:f,channelCount:N.length,issueCount:S.length}),(0,t.jsx)(D,{workspaceId:e,workspace:f,notificationDraft:w,setNotificationDraft:k,setWorkspace:h,botAgents:C,agentDialogOpen:j,setAgentDialogOpen:y}),(0,t.jsx)(F,{workspaceId:e,initialPrompt:m})]}),(0,t.jsx)(c.AgentDialog,{open:j,onOpenChange:y,roleFilter:"bot"})]}):(0,t.jsx)("div",{className:"flex items-center justify-center h-full text-muted-foreground text-sm",children:p("workspaceNotFound")})}],896841)},985646,e=>{e.n(e.i(896841))}]);
@@ -0,0 +1 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,386041,e=>{"use strict";let t=(0,e.i(433721).default)("code-xml",[["path",{d:"m18 16 4-4-4-4",key:"1inbqp"}],["path",{d:"m6 8-4 4 4 4",key:"15zrgr"}],["path",{d:"m14.5 4-5 16",key:"e7oirm"}]]);e.s(["Code2",0,t],386041)},194228,e=>{"use strict";let t=(0,e.i(433721).default)("git-commit-horizontal",[["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}],["line",{x1:"3",x2:"9",y1:"12",y2:"12",key:"1dyftd"}],["line",{x1:"15",x2:"21",y1:"12",y2:"12",key:"oup4p8"}]]);e.s(["GitCommitHorizontal",0,t],194228)},363156,e=>{"use strict";var t=e.i(816709);let i=/not a git repository/i;function r(e){return e instanceof Error&&i.test(e.message)}let s=(0,t.create)(e=>({status:null,diffs:[],selectedFile:null,log:[],branches:[],loading:!1,error:null,notGitRepo:!1,loadStatus:async t=>{try{let i=await fetch(`/api/workspaces/${t}/git/status`);if(!i.ok)throw Error(await i.text());let r=await i.json();e({status:r,notGitRepo:!1})}catch(t){e({error:t instanceof Error?t.message:String(t),notGitRepo:r(t)})}},loadDiffs:async(t,i)=>{e({loading:!0});try{let r=i?`/api/workspaces/${t}/git/diff?path=${encodeURIComponent(i)}`:`/api/workspaces/${t}/git/diff`,s=await fetch(r);if(!s.ok)throw Error(await s.text());let a=await s.json();e({diffs:a,loading:!1,notGitRepo:!1})}catch(t){e({error:t instanceof Error?t.message:String(t),loading:!1,notGitRepo:r(t)})}},loadLog:async t=>{try{let i=await fetch(`/api/workspaces/${t}/git/log`);if(!i.ok)throw Error(await i.text());let r=await i.json();e({log:r,notGitRepo:!1})}catch(t){e({error:t instanceof Error?t.message:String(t),notGitRepo:r(t)})}},loadBranches:async t=>{try{let i=await fetch(`/api/workspaces/${t}/git/branches`);if(!i.ok)throw Error(await i.text());let r=await i.json();e({branches:r,notGitRepo:!1})}catch(t){e({error:t instanceof Error?t.message:String(t),notGitRepo:r(t)})}},initRepo:async t=>{try{let i=await fetch(`/api/workspaces/${t}/git/init`,{method:"POST"});if(!i.ok)throw Error(await i.text());e({error:null,notGitRepo:!1})}catch(t){e({error:t instanceof Error?t.message:String(t)})}},commit:async(t,i)=>{try{let e=await fetch(`/api/workspaces/${t}/git/commit`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({message:i})});if(!e.ok)throw Error(await e.text())}catch(t){e({error:t instanceof Error?t.message:String(t)})}},discard:async(t,i)=>{try{let e=await fetch(`/api/workspaces/${t}/git/discard`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({path:i})});if(!e.ok)throw Error(await e.text())}catch(t){e({error:t instanceof Error?t.message:String(t)})}},discardAll:async t=>{try{let e=await fetch(`/api/workspaces/${t}/git/discard-all`,{method:"POST"});if(!e.ok)throw Error(await e.text())}catch(t){e({error:t instanceof Error?t.message:String(t)})}},checkout:async(t,i)=>{try{let e=await fetch(`/api/workspaces/${t}/git/checkout`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({branch:i})});if(!e.ok)throw Error(await e.text())}catch(t){e({error:t instanceof Error?t.message:String(t)})}},push:async e=>{let t=await fetch(`/api/workspaces/${e}/git/push`,{method:"POST"});if(!t.ok)throw Error((await t.json().catch(()=>({error:"Push failed"}))).error)},pull:async e=>{let t=await fetch(`/api/workspaces/${e}/git/pull`,{method:"POST"});if(!t.ok)throw Error((await t.json().catch(()=>({error:"Pull failed"}))).error)},getRemotes:async e=>{let t=await fetch(`/api/workspaces/${e}/git/remotes`);if(!t.ok)throw Error(await t.text());return t.json()},addRemote:async(e,t,i)=>{let r=await fetch(`/api/workspaces/${e}/git/remotes`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:t,url:i})});if(!r.ok)throw Error((await r.json().catch(()=>({error:"Failed to add remote"}))).error)},selectFile:t=>e({selectedFile:t}),checkoutDetached:async(e,t)=>{let i=await fetch(`/api/workspaces/${e}/git/checkout-detached`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({commitHash:t})});if(!i.ok)throw Error((await i.json().catch(()=>({}))).error)},cherryPick:async(e,t)=>{let i=await fetch(`/api/workspaces/${e}/git/cherry-pick`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({commitHash:t})});if(!i.ok)throw Error((await i.json().catch(()=>({}))).error)},createBranch:async(e,t,i)=>{let r=await fetch(`/api/workspaces/${e}/git/create-branch`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:t,startPoint:i})});if(!r.ok)throw Error((await r.json().catch(()=>({}))).error)},deleteBranch:async(e,t,i)=>{let r=await fetch(`/api/workspaces/${e}/git/delete-branch`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:t,force:i})});if(!r.ok)throw Error((await r.json().catch(()=>({}))).error)},createTag:async(e,t,i)=>{let r=await fetch(`/api/workspaces/${e}/git/create-tag`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:t,commitHash:i})});if(!r.ok)throw Error((await r.json().catch(()=>({}))).error)},getCommitDiff:async(e,t)=>{let i=await fetch(`/api/workspaces/${e}/git/commit-diff?hash=${encodeURIComponent(t)}`);if(!i.ok)throw Error((await i.json().catch(()=>({}))).error);return i.json()},getRemoteUrl:async e=>{let t=await fetch(`/api/workspaces/${e}/git/remote-url`);if(!t.ok)throw Error((await t.json().catch(()=>({}))).error);return(await t.json()).url},getMergeBase:async e=>{let t=await fetch(`/api/workspaces/${e}/git/merge-base`);if(!t.ok)throw Error((await t.json().catch(()=>({}))).error);return(await t.json()).hash}}));e.s(["useGitStore",0,s])},253307,e=>{"use strict";let t=(0,e.i(433721).default)("file-diff",[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M9 10h6",key:"9gxzsh"}],["path",{d:"M12 13V7",key:"h0r20n"}],["path",{d:"M9 17h6",key:"r8uit2"}]]);e.s(["FileDiff",0,t],253307)},524360,e=>{"use strict";var t=e.i(816709),i=e.i(360112);let r=new Map,s=(0,t.create)((e,t)=>({sessions:[],activeId:null,ws:null,workspaceId:null,_initialized:!1,_restored:!1,init:(s,a)=>{let o=t();if(o._initialized&&o.ws===s)return;let n=o.workspaceId!==s.workspaceId;n&&r.clear(),e({ws:s,workspaceId:s.workspaceId,sessions:n?[]:o.sessions,activeId:n?null:o.activeId,_initialized:!0,_restored:!1}),s.on("terminal.created",t=>{let{sessionId:i,cwd:r,shell:s}=t;e(e=>e.sessions.some(e=>e.id===i)?e:{sessions:[...e.sessions,{id:i,cwd:r,shell:s}],activeId:i})}),s.on("terminal.error",e=>{let{error:t}=e;i.toast.error(t)}),s.on("terminal.closed",t=>{let{sessionId:i}=t;e(e=>{let t=e.sessions.filter(e=>e.id!==i),r=e.activeId===i?t[0]?.id??null:e.activeId;return{sessions:t,activeId:r}})}),s.on("terminal.sessions",t=>{let{sessions:i}=t;e(e=>{let t=new Map(e.sessions.map(e=>[e.id,e])),s=i.map(e=>{let i=t.get(e.sessionId);return e.buffer&&r.set(e.sessionId,e.buffer),{...i,id:e.sessionId,cwd:e.cwd,shell:e.shell??i?.shell}}),a=!!e.activeId&&s.some(t=>t.id===e.activeId);for(let e of i)e.buffer||r.delete(e.sessionId);return{sessions:s,activeId:a?e.activeId:s[0]?.id??null,_restored:!0}}),a?.()})},createSession:(e,i)=>{let{ws:r}=t();r?.send("terminal.create",{sessionId:crypto.randomUUID?.()??crypto.getRandomValues(new Uint8Array(16)).reduce((e,t)=>e+t.toString(16).padStart(2,"0"),""),shell:e,cwd:i})},setActive:t=>e({activeId:t}),setSessionName:(t,i)=>e(e=>({sessions:e.sessions.map(e=>e.id===t?{...e,name:i}:e)})),removeSession:i=>{let{ws:r,sessions:s,activeId:a}=t();r?.send("terminal.close",{sessionId:i});let o=s.filter(e=>e.id!==i),n=a===i?o[0]?.id??null:a;e({sessions:o,activeId:n})},sendInput:(e,i)=>{t().ws?.send("terminal.input",{sessionId:e,data:i})},resize:(e,i,r)=>{t().ws?.send("terminal.resize",{sessionId:e,cols:i,rows:r})}}));e.s(["consumeSessionBuffer",0,function(e){let t=r.get(e);return r.delete(e),t},"useTerminalStore",0,s])},191441,e=>{"use strict";let t=(0,e.i(433721).default)("list-checks",[["path",{d:"M13 5h8",key:"a7qcls"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 19h8",key:"c3s6r1"}],["path",{d:"m3 17 2 2 4-4",key:"1jhpwq"}],["path",{d:"m3 7 2 2 4-4",key:"1obspn"}]]);e.s(["ListChecks",0,t],191441)},404175,e=>{"use strict";var t=e.i(344180),i=e.i(227634),r=e.i(191441),s=e.i(451534),a=e.i(386041),o=e.i(426022),n=e.i(989484);let l=(0,e.i(433721).default)("square-terminal",[["path",{d:"m7 11 2-2-2-2",key:"1lz0vl"}],["path",{d:"M11 13h4",key:"1p7l4v"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}]]);var c=e.i(253307),d=e.i(194228),h=e.i(210),p=e.i(255742);let u=[{id:"channel-list",icon:i.Hash,group:"channel"},{id:"chat",icon:o.MessageSquare,group:"channel"},{id:"issue-list",icon:r.ListChecks,group:"issue"},{id:"issue-detail",icon:c.FileDiff,group:"issue"},{id:"workfolder",icon:s.FolderOpen,group:"workfolder"},{id:"code-editor",icon:a.Code2,group:"workfolder"},{id:"terminal",icon:l,group:"tools"},{id:"git-commits",icon:d.GitCommitHorizontal,group:"git"},{id:"project-settings",icon:h.Settings2,group:"settings"},{id:"code-favorites",icon:p.Star,group:"workfolder"}],f={"channel-list":(0,t.jsx)(i.Hash,{size:16}),"issue-list":(0,t.jsx)(r.ListChecks,{size:16}),workfolder:(0,t.jsx)(s.FolderOpen,{size:16}),"code-editor":(0,t.jsx)(a.Code2,{size:16}),chat:(0,t.jsx)(o.MessageSquare,{size:16}),"issue-detail":(0,t.jsx)(n.FileText,{size:16}),terminal:(0,t.jsx)(l,{size:16}),"git-commits":(0,t.jsx)(d.GitCommitHorizontal,{size:16}),"project-settings":(0,t.jsx)(h.Settings2,{size:16}),"code-favorites":(0,t.jsx)(p.Star,{size:16}),...{}};function g(e,i,r,s,a){if("git-commits"===e&&i&&!i.clean){let e=i.insertions>0||i.deletions>0,r=(0,t.jsx)("span",{className:"ml-1 text-[10px] font-medium leading-none flex items-center gap-0.5",children:e?(0,t.jsxs)(t.Fragment,{children:[i.insertions>0&&(0,t.jsxs)("span",{className:"text-green-600",children:["+",i.insertions]}),i.deletions>0&&(0,t.jsxs)("span",{className:"text-red-500",children:["-",i.deletions]})]}):(0,t.jsx)("span",{className:"text-orange-500",children:i.files.length})}),s=i.files.length;return{trailing:r,badge:s>0?(0,t.jsx)("span",{className:"absolute -top-1 -right-1.5 min-w-[14px] h-[14px] rounded-full bg-blue-500 text-white text-[9px] font-medium leading-none flex items-center justify-center px-0.5",children:s}):null}}if("terminal"===e&&r.length>0)return{trailing:null,badge:(0,t.jsx)("span",{className:"absolute -top-1 -right-1.5 min-w-[14px] h-[14px] rounded-full bg-green-500 text-white text-[9px] font-medium leading-none flex items-center justify-center px-0.5",children:r.length})};let o=(0,t.jsxs)("span",{className:"absolute -top-1 -right-1 flex h-2 w-2",children:[(0,t.jsx)("span",{className:"animate-ping absolute inline-flex h-full w-full rounded-full bg-blue-400 opacity-75"}),(0,t.jsx)("span",{className:"relative inline-flex rounded-full h-2 w-2 bg-blue-500"})]});return"channel-list"===e&&Object.values(s).some(e=>e.some(e=>"streaming"===e.status||"pending"===e.status))||"issue-detail"===e&&a.some(e=>"pending"===e.status||"running"===e.status||"retrying"===e.status||"waiting_review"===e.status)?{trailing:null,badge:o}:{trailing:null,badge:null}}e.s(["RIGHT_TO_LEFT_TAB_MAP",0,{"code-editor":"workfolder",chat:"channel-list","issue-detail":"issue-list"},"TAB_ITEMS",0,u,"getTabBadge",0,g,"renderTabIcon",0,function(e,i,r,s,a,o){let n=f[e];if(!n)return null;let{trailing:l,badge:c}=g(e,r,s,a,o);return(0,t.jsxs)("span",{title:i,className:"flex items-center justify-center",children:[(0,t.jsxs)("span",{className:"relative",children:[n,c]}),l]})}],404175)},217061,e=>{"use strict";var t=e.i(344180),i=e.i(250226),r=e.i(363156),s=e.i(524360),a=e.i(31807),o=e.i(873111),n=e.i(465458),l=e.i(404175);e.s(["MobileTabBar",0,function(){let{activePanel:e,setActivePanel:c}=(0,i.useMobilePanelStore)(),d=(0,r.useGitStore)(e=>e.status),h=(0,s.useTerminalStore)(e=>e.sessions),p=(0,a.useChannelStore)(e=>e.messages),u=(0,o.useTaskStore)(e=>e.tasks);return(0,t.jsx)("div",{className:"relative shrink-0 bg-background",children:(0,t.jsx)("div",{className:"flex items-center h-10 border-b px-1 gap-2 shrink-0 overflow-x-auto overflow-y-visible md:hidden",children:l.TAB_ITEMS.map((i,r)=>{let s=i.icon,a=r>0?l.TAB_ITEMS[r-1].group:null,o=null!==a&&a!==i.group,{trailing:f,badge:g}=(0,l.getTabBadge)(i.id,d,h,p,u);return(0,t.jsxs)("div",{className:"flex items-center shrink-0 overflow-visible",children:[o&&(0,t.jsx)("div",{className:"w-px h-4 bg-border mx-0.5"}),(0,t.jsxs)("button",{onClick:()=>{var e;c(e=i.id),l.RIGHT_TO_LEFT_TAB_MAP[e]},className:(0,n.cn)("relative flex items-center justify-center h-8 min-w-8 px-1 rounded-md transition-colors",e===i.id?"bg-accent text-accent-foreground":"text-muted-foreground hover:bg-accent/50"),children:[(0,t.jsxs)("span",{className:"relative",children:[(0,t.jsx)(s,{size:16}),g]}),f]})]},i.id)})})})}])},404069,e=>{e.n(e.i(217061))}]);
@@ -0,0 +1 @@
1
+ .xterm{cursor:text;-webkit-user-select:none;user-select:none;position:relative}.xterm.focus,.xterm:focus{outline:none}.xterm .xterm-helpers{z-index:5;position:absolute;top:0}.xterm .xterm-helper-textarea{opacity:0;z-index:-5;white-space:nowrap;resize:none;border:0;width:0;height:0;margin:0;padding:0;position:absolute;top:0;left:-9999em;overflow:hidden}.xterm .composition-view{color:#fff;white-space:nowrap;z-index:1;background:#000;display:none;position:absolute}.xterm .composition-view.active{display:block}.xterm .xterm-viewport{cursor:default;background-color:#000;position:absolute;inset:0;overflow-y:scroll}.xterm .xterm-screen{position:relative}.xterm .xterm-screen canvas{position:absolute;top:0;left:0}.xterm-char-measure-element{visibility:hidden;line-height:normal;display:inline-block;position:absolute;top:0;left:-9999em}.xterm.enable-mouse-events{cursor:default}.xterm.xterm-cursor-pointer,.xterm .xterm-cursor-pointer{cursor:pointer}.xterm.column-select.focus{cursor:crosshair}.xterm .xterm-accessibility:not(.debug),.xterm .xterm-message{z-index:10;color:#0000;pointer-events:none;position:absolute;inset:0}.xterm .xterm-accessibility-tree:not(.debug) ::selection{color:#0000}.xterm .xterm-accessibility-tree{-webkit-user-select:text;user-select:text;white-space:pre;font-family:monospace}.xterm .xterm-accessibility-tree>div{transform-origin:0;width:fit-content}.xterm .live-region{width:1px;height:1px;position:absolute;left:-9999px;overflow:hidden}.xterm-dim{opacity:1!important}.xterm-underline-1{text-decoration:underline}.xterm-underline-2{-webkit-text-decoration:underline double;text-decoration:underline double}.xterm-underline-3{-webkit-text-decoration:underline wavy;text-decoration:underline wavy}.xterm-underline-4{-webkit-text-decoration:underline dotted;text-decoration:underline dotted}.xterm-underline-5{-webkit-text-decoration:underline dashed;text-decoration:underline dashed}.xterm-overline{text-decoration:overline}.xterm-overline.xterm-underline-1{text-decoration:underline overline}.xterm-overline.xterm-underline-2{-webkit-text-decoration:overline double underline;text-decoration:overline double underline}.xterm-overline.xterm-underline-3{-webkit-text-decoration:overline wavy underline;text-decoration:overline wavy underline}.xterm-overline.xterm-underline-4{-webkit-text-decoration:overline dotted underline;text-decoration:overline dotted underline}.xterm-overline.xterm-underline-5{-webkit-text-decoration:overline dashed underline;text-decoration:overline dashed underline}.xterm-strikethrough{text-decoration:line-through}.xterm-screen .xterm-decoration-container .xterm-decoration{z-index:6;position:absolute}.xterm-screen .xterm-decoration-container .xterm-decoration.xterm-decoration-top-layer{z-index:7}.xterm-decoration-overview-ruler{z-index:8;pointer-events:none;position:absolute;top:0;right:0}.xterm-decoration-top{z-index:2;position:relative}.xterm .xterm-scrollable-element>.scrollbar{cursor:default}.xterm .xterm-scrollable-element>.scrollbar>.scra{cursor:pointer;font-size:11px!important}.xterm .xterm-scrollable-element>.visible{opacity:1;z-index:11;background:0 0;transition:opacity .1s linear}.xterm .xterm-scrollable-element>.invisible{opacity:0;pointer-events:none}.xterm .xterm-scrollable-element>.invisible.fade{transition:opacity .8s linear}.xterm .xterm-scrollable-element>.shadow{display:none;position:absolute}.xterm .xterm-scrollable-element>.shadow.top{width:100%;height:3px;box-shadow:var(--vscode-scrollbar-shadow,#000) 0 6px 6px -6px inset;display:block;top:0;left:3px}.xterm .xterm-scrollable-element>.shadow.left{width:3px;height:100%;box-shadow:var(--vscode-scrollbar-shadow,#000) 6px 0 6px -6px inset;display:block;top:3px;left:0}.xterm .xterm-scrollable-element>.shadow.top-left-corner{width:3px;height:3px;display:block;top:0;left:0}.xterm .xterm-scrollable-element>.shadow.top.left{box-shadow:var(--vscode-scrollbar-shadow,#000) 6px 0 6px -6px inset}
@@ -1 +1 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,{otherChunks:["static/chunks/0xwqf.llmm_u2.js","static/chunks/031c~uxc3ie87.js","static/chunks/0h256h-tu4e0r.js","static/chunks/0202ia13sijwb.js","static/chunks/0gyede80jpy3n.js"],runtimeModuleIds:[933412]}]),(()=>{let e;if(!Array.isArray(globalThis.TURBOPACK))return;let t="/_next/",r=function(){if(null!=self.TURBOPACK_ASSET_SUFFIX)return self.TURBOPACK_ASSET_SUFFIX;let e=document?.currentScript?.getAttribute?.("src")??"",t=e.indexOf("?");return t>=0?e.slice(t):""}(),n=["NEXT_DEPLOYMENT_ID","NEXT_CLIENT_ASSET_SUFFIX"];var o,i=((o=i||{})[o.Runtime=0]="Runtime",o[o.Parent=1]="Parent",o[o.Update=2]="Update",o);let l=new WeakMap;function s(e,t){this.m=e,this.e=t}let u=s.prototype,a=Object.prototype.hasOwnProperty,c="u">typeof Symbol&&Symbol.toStringTag;function f(e,t,r){a.call(e,t)||Object.defineProperty(e,t,r)}function p(e,t){let r=e[t];return r||(r=h(t),e[t]=r),r}function h(e){return{exports:{},error:void 0,id:e,namespaceObject:void 0}}function d(e,t){f(e,"__esModule",{value:!0}),c&&f(e,c,{value:"Module"});let r=0;for(;r<t.length;){let n=t[r++],o=t[r++];if("number"==typeof o)if(0===o)f(e,n,{value:t[r++],enumerable:!0,writable:!1});else throw Error(`unexpected tag: ${o}`);else"function"==typeof t[r]?f(e,n,{get:o,set:t[r++],enumerable:!0}):f(e,n,{get:o,enumerable:!0})}Object.seal(e)}function m(e,t){(null!=t?p(this.c,t):this.m).exports=e}u.s=function(e,t){let r,n;null!=t?n=(r=p(this.c,t)).exports:(r=this.m,n=this.e),r.namespaceObject=n,d(n,e)},u.j=function(e,t){var r,n;let o,i,s;null!=t?i=(o=p(this.c,t)).exports:(o=this.m,i=this.e);let u=(r=o,n=i,(s=l.get(r))||(l.set(r,s=[]),r.exports=r.namespaceObject=new Proxy(n,{get(e,t){if(a.call(e,t)||"default"===t||"__esModule"===t)return Reflect.get(e,t);for(let e of s){let r=Reflect.get(e,t);if(void 0!==r)return r}},ownKeys(e){let t=Reflect.ownKeys(e);for(let e of s)for(let r of Reflect.ownKeys(e))"default"===r||t.includes(r)||t.push(r);return t}})),s);"object"==typeof e&&null!==e&&u.push(e)},u.v=m,u.n=function(e,t){let r;(r=null!=t?p(this.c,t):this.m).exports=r.namespaceObject=e};let b=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,y=[null,b({}),b([]),b(b)];function g(e,t,r){let n=[],o=-1;for(let t=e;("object"==typeof t||"function"==typeof t)&&!y.includes(t);t=b(t))for(let r of Object.getOwnPropertyNames(t))n.push(r,function(e,t){return()=>e[t]}(e,r)),-1===o&&"default"===r&&(o=n.length-1);return r&&o>=0||(o>=0?n.splice(o,1,0,e):n.push("default",0,e)),d(t,n),t}function w(e){let t=B(e,this.m);if(t.namespaceObject)return t.namespaceObject;let r=t.exports;return t.namespaceObject=g(r,"function"==typeof r?function(...e){return r.apply(this,e)}:Object.create(null),r&&r.__esModule)}function O(e){let t=e.indexOf("#");-1!==t&&(e=e.substring(0,t));let r=e.indexOf("?");return -1!==r&&(e=e.substring(0,r)),e}function j(){let e,t;return{promise:new Promise((r,n)=>{t=n,e=r}),resolve:e,reject:t}}u.i=w,u.A=function(e){return this.r(e)(w.bind(this))},u.t="function"==typeof require?require:function(){throw Error("Unexpected use of runtime require")},u.r=function(e){return B(e,this.m).exports},u.f=function(e){function t(t){if(t=O(t),a.call(e,t))return e[t].module();let r=Error(`Cannot find module '${t}'`);throw r.code="MODULE_NOT_FOUND",r}return t.keys=()=>Object.keys(e),t.resolve=t=>{if(t=O(t),a.call(e,t))return e[t].id();let r=Error(`Cannot find module '${t}'`);throw r.code="MODULE_NOT_FOUND",r},t.import=async e=>await t(e),t};let k=Symbol("turbopack queues"),U=Symbol("turbopack exports"),C=Symbol("turbopack error");function P(e){e&&1!==e.status&&(e.status=1,e.forEach(e=>e.queueCount--),e.forEach(e=>e.queueCount--?e.queueCount++:e()))}u.a=function(e,t){let r=this.m,n=t?Object.assign([],{status:-1}):void 0,o=new Set,{resolve:i,reject:l,promise:s}=j(),u=Object.assign(s,{[U]:r.exports,[k]:e=>{n&&e(n),o.forEach(e),u.catch(()=>{})}}),a={get:()=>u,set(e){e!==u&&(u[U]=e)}};Object.defineProperty(r,"exports",a),Object.defineProperty(r,"namespaceObject",a),e(function(e){let t=e.map(e=>{if(null!==e&&"object"==typeof e){if(k in e)return e;if(null!=e&&"object"==typeof e&&"then"in e&&"function"==typeof e.then){let t=Object.assign([],{status:0}),r={[U]:{},[k]:e=>e(t)};return e.then(e=>{r[U]=e,P(t)},e=>{r[C]=e,P(t)}),r}}return{[U]:e,[k]:()=>{}}}),r=()=>t.map(e=>{if(e[C])throw e[C];return e[U]}),{promise:i,resolve:l}=j(),s=Object.assign(()=>l(r),{queueCount:0});function u(e){e!==n&&!o.has(e)&&(o.add(e),e&&0===e.status&&(s.queueCount++,e.push(s)))}return t.map(e=>e[k](u)),s.queueCount?i:r()},function(e){e?l(u[C]=e):i(u[U]),P(n)}),n&&-1===n.status&&(n.status=0)};let v=function(e){let t=new URL(e,"x:/"),r={};for(let e in t)r[e]=t[e];for(let t in r.href=e,r.pathname=e.replace(/[?#].*/,""),r.origin=r.protocol="",r.toString=r.toJSON=(...t)=>e,r)Object.defineProperty(this,t,{enumerable:!0,configurable:!0,value:r[t]})};function R(e,t){throw Error(`Invariant: ${t(e)}`)}v.prototype=URL.prototype,u.U=v,u.z=function(e){throw Error("dynamic usage of require is not supported")},u.g=globalThis;let S=s.prototype,$=new Map;u.M=$;let _=new Map,E=new Map;async function T(e,t,r){let n;if("string"==typeof r)return M(e,t,N(r));let o=r.included||[],i=o.map(e=>!!$.has(e)||_.get(e));if(i.length>0&&i.every(e=>e))return void await Promise.all(i);let l=r.moduleChunks||[],s=l.map(e=>E.get(e)).filter(e=>e);if(s.length>0){if(s.length===l.length)return void await Promise.all(s);let r=new Set;for(let e of l)E.has(e)||r.add(e);for(let n of r){let r=M(e,t,N(n));E.set(n,r),s.push(r)}n=Promise.all(s)}else{for(let o of(n=M(e,t,N(r.path)),l))E.has(o)||E.set(o,n)}for(let e of o)_.has(e)||_.set(e,n);await n}S.l=function(e){return T(i.Parent,this.m.id,e)};let A=Promise.resolve(void 0),x=new WeakMap;function M(t,r,n){let o=e.loadChunkCached(t,n),l=x.get(o);if(void 0===l){let e=x.set.bind(x,o,A);l=o.then(e).catch(e=>{let o;switch(t){case i.Runtime:o=`as a runtime dependency of chunk ${r}`;break;case i.Parent:o=`from module ${r}`;break;case i.Update:o="from an HMR update";break;default:R(t,e=>`Unknown source type: ${e}`)}let l=Error(`Failed to load chunk ${n} ${o}${e?`: ${e}`:""}`,e?{cause:e}:void 0);throw l.name="ChunkLoadError",l}),x.set(o,l)}return l}function N(e){return`${t}${e.split("/").map(e=>encodeURIComponent(e)).join("/")}${r}`}S.L=function(e){return M(i.Parent,this.m.id,e)},S.R=function(e){let t=this.r(e);return t?.default??t},S.P=function(e){return`/ROOT/${e??""}`},S.q=function(e,t){m.call(this,`${e}${r}`,t)},S.b=function(e,t,o,i){let l="SharedWorker"===e.name,s=[o.map(e=>N(e)).reverse(),r];for(let e of n)s.push(globalThis[e]);let u=new URL(N(t),location.origin),a=JSON.stringify(s);return l?u.searchParams.set("params",a):u.hash="#params="+encodeURIComponent(a),new e(u,i?{...i,type:void 0}:void 0)};let q=/\.js(?:\?[^#]*)?(?:#.*)?$/,K=/\.css(?:\?[^#]*)?(?:#.*)?$/;function L(e){return K.test(e)}u.w=function(t,r,n){return e.loadWebAssembly(i.Parent,this.m.id,t,r,n)},u.u=function(t,r){return e.loadWebAssemblyModule(i.Parent,this.m.id,t,r)};let I={};u.c=I;let B=(e,t)=>{let r=I[e];if(r){if(r.error)throw r.error;return r}return W(e,i.Parent,t.id)};function W(e,t,r){let n=$.get(e);if("function"!=typeof n)throw Error(function(e,t,r){let n;switch(t){case 0:n=`as a runtime entry of chunk ${r}`;break;case 1:n=`because it was required from module ${r}`;break;case 2:n="because of an HMR update";break;default:R(t,e=>`Unknown source type: ${e}`)}return`Module ${e} was instantiated ${n}, but the module factory is not available.`}(e,t,r));let o=h(e),i=o.exports;I[e]=o;let l=new s(o,i);try{n(l,o,i)}catch(e){throw o.error=e,e}return o.namespaceObject&&o.exports!==o.namespaceObject&&g(o.exports,o.namespaceObject),o}function F(t){let r,n=function(e){if("string"==typeof e)return e;if(e)return{src:e.getAttribute("src")};if("u">typeof TURBOPACK_NEXT_CHUNK_URLS)return{src:TURBOPACK_NEXT_CHUNK_URLS.pop()};throw Error("chunk path empty but not in a worker")}(t[0]);return 2===t.length?r=t[1]:(r=void 0,!function(e,t){let r=1;for(;r<e.length;){let n,o=r+1;for(;o<e.length&&"function"!=typeof e[o];)o++;if(o===e.length)throw Error("malformed chunk format, expected a factory function");let i=e[o];for(let i=r;i<o;i++){let r=e[i],o=t.get(r);if(o){n=o;break}}let l=n??i,s=!1;for(let n=r;n<o;n++){let r=e[n];t.has(r)||(s||(l===i&&Object.defineProperty(i,"name",{value:"module evaluation"}),s=!0),t.set(r,l))}r=o+1}}(t,$)),e.registerChunk(n,r)}let X=new Map;function D(e){let t=X.get(e);if(!t){let r,n;t={resolved:!1,loadingStarted:!1,promise:new Promise((e,t)=>{r=e,n=t}),resolve:()=>{t.resolved=!0,r()},reject:n},X.set(e,t)}return t}e={async registerChunk(e,r){let n=function(e){if("string"==typeof e)return e;let r=decodeURIComponent(e.src.replace(/[?#].*$/,""));return r.startsWith(t)?r.slice(t.length):r}(e);if(D("string"==typeof e?N(e):e.src).resolve(),null!=r){for(let e of r.otherChunks)D(N("string"==typeof e?e:e.path));if(await Promise.all(r.otherChunks.map(e=>T(i.Runtime,n,e))),r.runtimeModuleIds.length>0)for(let e of r.runtimeModuleIds)!function(e,t){let r=I[t];if(r){if(r.error)throw r.error;return}W(t,i.Runtime,e)}(n,e)}},loadChunkCached:(e,t)=>(function(e,t){let r=D(t);if(r.loadingStarted)return r.promise;if(e===i.Runtime)return r.loadingStarted=!0,L(t)&&r.resolve(),r.promise;if("function"==typeof importScripts)if(L(t));else if(q.test(t))self.TURBOPACK_NEXT_CHUNK_URLS.push(t),importScripts(t);else throw Error(`can't infer type of chunk from URL ${t} in worker`);else{let e=decodeURI(t);if(L(t))if(document.querySelectorAll(`link[rel=stylesheet][href="${t}"],link[rel=stylesheet][href^="${t}?"],link[rel=stylesheet][href="${e}"],link[rel=stylesheet][href^="${e}?"]`).length>0)r.resolve();else{let e=document.createElement("link");e.rel="stylesheet",e.href=t,e.onerror=()=>{r.reject()},e.onload=()=>{r.resolve()},document.head.appendChild(e)}else if(q.test(t)){let n=document.querySelectorAll(`script[src="${t}"],script[src^="${t}?"],script[src="${e}"],script[src^="${e}?"]`);if(n.length>0)for(let e of Array.from(n))e.addEventListener("error",()=>{r.reject()});else{let e=document.createElement("script");e.src=t,e.onerror=()=>{r.reject()},document.head.appendChild(e)}}else throw Error(`can't infer type of chunk from URL ${t}`)}return r.loadingStarted=!0,r.promise})(e,t),async loadWebAssembly(e,t,r,n,o){let i=fetch(N(r)),{instance:l}=await WebAssembly.instantiateStreaming(i,o);return l.exports},async loadWebAssemblyModule(e,t,r,n){let o=fetch(N(r));return await WebAssembly.compileStreaming(o)}};let H=globalThis.TURBOPACK;globalThis.TURBOPACK={push:F},H.forEach(F)})();
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,{otherChunks:["static/chunks/02mf61htij8g0.js","static/chunks/031c~uxc3ie87.js","static/chunks/0h18ej5yf974e.js","static/chunks/0h256h-tu4e0r.js","static/chunks/0np.d~hc1-pmh.js"],runtimeModuleIds:[933412]}]),(()=>{let e;if(!Array.isArray(globalThis.TURBOPACK))return;let t="/_next/",r=function(){if(null!=self.TURBOPACK_ASSET_SUFFIX)return self.TURBOPACK_ASSET_SUFFIX;let e=document?.currentScript?.getAttribute?.("src")??"",t=e.indexOf("?");return t>=0?e.slice(t):""}(),n=["NEXT_DEPLOYMENT_ID","NEXT_CLIENT_ASSET_SUFFIX"];var o,i=((o=i||{})[o.Runtime=0]="Runtime",o[o.Parent=1]="Parent",o[o.Update=2]="Update",o);let l=new WeakMap;function s(e,t){this.m=e,this.e=t}let u=s.prototype,a=Object.prototype.hasOwnProperty,c="u">typeof Symbol&&Symbol.toStringTag;function f(e,t,r){a.call(e,t)||Object.defineProperty(e,t,r)}function p(e,t){let r=e[t];return r||(r=h(t),e[t]=r),r}function h(e){return{exports:{},error:void 0,id:e,namespaceObject:void 0}}function d(e,t){f(e,"__esModule",{value:!0}),c&&f(e,c,{value:"Module"});let r=0;for(;r<t.length;){let n=t[r++],o=t[r++];if("number"==typeof o)if(0===o)f(e,n,{value:t[r++],enumerable:!0,writable:!1});else throw Error(`unexpected tag: ${o}`);else"function"==typeof t[r]?f(e,n,{get:o,set:t[r++],enumerable:!0}):f(e,n,{get:o,enumerable:!0})}Object.seal(e)}function m(e,t){(null!=t?p(this.c,t):this.m).exports=e}u.s=function(e,t){let r,n;null!=t?n=(r=p(this.c,t)).exports:(r=this.m,n=this.e),r.namespaceObject=n,d(n,e)},u.j=function(e,t){var r,n;let o,i,s;null!=t?i=(o=p(this.c,t)).exports:(o=this.m,i=this.e);let u=(r=o,n=i,(s=l.get(r))||(l.set(r,s=[]),r.exports=r.namespaceObject=new Proxy(n,{get(e,t){if(a.call(e,t)||"default"===t||"__esModule"===t)return Reflect.get(e,t);for(let e of s){let r=Reflect.get(e,t);if(void 0!==r)return r}},ownKeys(e){let t=Reflect.ownKeys(e);for(let e of s)for(let r of Reflect.ownKeys(e))"default"===r||t.includes(r)||t.push(r);return t}})),s);"object"==typeof e&&null!==e&&u.push(e)},u.v=m,u.n=function(e,t){let r;(r=null!=t?p(this.c,t):this.m).exports=r.namespaceObject=e};let b=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,y=[null,b({}),b([]),b(b)];function g(e,t,r){let n=[],o=-1;for(let t=e;("object"==typeof t||"function"==typeof t)&&!y.includes(t);t=b(t))for(let r of Object.getOwnPropertyNames(t))n.push(r,function(e,t){return()=>e[t]}(e,r)),-1===o&&"default"===r&&(o=n.length-1);return r&&o>=0||(o>=0?n.splice(o,1,0,e):n.push("default",0,e)),d(t,n),t}function O(e){let t=B(e,this.m);if(t.namespaceObject)return t.namespaceObject;let r=t.exports;return t.namespaceObject=g(r,"function"==typeof r?function(...e){return r.apply(this,e)}:Object.create(null),r&&r.__esModule)}function w(e){let t=e.indexOf("#");-1!==t&&(e=e.substring(0,t));let r=e.indexOf("?");return -1!==r&&(e=e.substring(0,r)),e}function j(){let e,t;return{promise:new Promise((r,n)=>{t=n,e=r}),resolve:e,reject:t}}u.i=O,u.A=function(e){return this.r(e)(O.bind(this))},u.t="function"==typeof require?require:function(){throw Error("Unexpected use of runtime require")},u.r=function(e){return B(e,this.m).exports},u.f=function(e){function t(t){if(t=w(t),a.call(e,t))return e[t].module();let r=Error(`Cannot find module '${t}'`);throw r.code="MODULE_NOT_FOUND",r}return t.keys=()=>Object.keys(e),t.resolve=t=>{if(t=w(t),a.call(e,t))return e[t].id();let r=Error(`Cannot find module '${t}'`);throw r.code="MODULE_NOT_FOUND",r},t.import=async e=>await t(e),t};let k=Symbol("turbopack queues"),U=Symbol("turbopack exports"),C=Symbol("turbopack error");function P(e){e&&1!==e.status&&(e.status=1,e.forEach(e=>e.queueCount--),e.forEach(e=>e.queueCount--?e.queueCount++:e()))}u.a=function(e,t){let r=this.m,n=t?Object.assign([],{status:-1}):void 0,o=new Set,{resolve:i,reject:l,promise:s}=j(),u=Object.assign(s,{[U]:r.exports,[k]:e=>{n&&e(n),o.forEach(e),u.catch(()=>{})}}),a={get:()=>u,set(e){e!==u&&(u[U]=e)}};Object.defineProperty(r,"exports",a),Object.defineProperty(r,"namespaceObject",a),e(function(e){let t=e.map(e=>{if(null!==e&&"object"==typeof e){if(k in e)return e;if(null!=e&&"object"==typeof e&&"then"in e&&"function"==typeof e.then){let t=Object.assign([],{status:0}),r={[U]:{},[k]:e=>e(t)};return e.then(e=>{r[U]=e,P(t)},e=>{r[C]=e,P(t)}),r}}return{[U]:e,[k]:()=>{}}}),r=()=>t.map(e=>{if(e[C])throw e[C];return e[U]}),{promise:i,resolve:l}=j(),s=Object.assign(()=>l(r),{queueCount:0});function u(e){e!==n&&!o.has(e)&&(o.add(e),e&&0===e.status&&(s.queueCount++,e.push(s)))}return t.map(e=>e[k](u)),s.queueCount?i:r()},function(e){e?l(u[C]=e):i(u[U]),P(n)}),n&&-1===n.status&&(n.status=0)};let v=function(e){let t=new URL(e,"x:/"),r={};for(let e in t)r[e]=t[e];for(let t in r.href=e,r.pathname=e.replace(/[?#].*/,""),r.origin=r.protocol="",r.toString=r.toJSON=(...t)=>e,r)Object.defineProperty(this,t,{enumerable:!0,configurable:!0,value:r[t]})};function R(e,t){throw Error(`Invariant: ${t(e)}`)}v.prototype=URL.prototype,u.U=v,u.z=function(e){throw Error("dynamic usage of require is not supported")},u.g=globalThis;let S=s.prototype,$=new Map;u.M=$;let E=new Map,_=new Map;async function T(e,t,r){let n;if("string"==typeof r)return M(e,t,N(r));let o=r.included||[],i=o.map(e=>!!$.has(e)||E.get(e));if(i.length>0&&i.every(e=>e))return void await Promise.all(i);let l=r.moduleChunks||[],s=l.map(e=>_.get(e)).filter(e=>e);if(s.length>0){if(s.length===l.length)return void await Promise.all(s);let r=new Set;for(let e of l)_.has(e)||r.add(e);for(let n of r){let r=M(e,t,N(n));_.set(n,r),s.push(r)}n=Promise.all(s)}else{for(let o of(n=M(e,t,N(r.path)),l))_.has(o)||_.set(o,n)}for(let e of o)E.has(e)||E.set(e,n);await n}S.l=function(e){return T(i.Parent,this.m.id,e)};let A=Promise.resolve(void 0),x=new WeakMap;function M(t,r,n){let o=e.loadChunkCached(t,n),l=x.get(o);if(void 0===l){let e=x.set.bind(x,o,A);l=o.then(e).catch(e=>{let o;switch(t){case i.Runtime:o=`as a runtime dependency of chunk ${r}`;break;case i.Parent:o=`from module ${r}`;break;case i.Update:o="from an HMR update";break;default:R(t,e=>`Unknown source type: ${e}`)}let l=Error(`Failed to load chunk ${n} ${o}${e?`: ${e}`:""}`,e?{cause:e}:void 0);throw l.name="ChunkLoadError",l}),x.set(o,l)}return l}function N(e){return`${t}${e.split("/").map(e=>encodeURIComponent(e)).join("/")}${r}`}S.L=function(e){return M(i.Parent,this.m.id,e)},S.R=function(e){let t=this.r(e);return t?.default??t},S.P=function(e){return`/ROOT/${e??""}`},S.q=function(e,t){m.call(this,`${e}${r}`,t)},S.b=function(e,t,o,i){let l="SharedWorker"===e.name,s=[o.map(e=>N(e)).reverse(),r];for(let e of n)s.push(globalThis[e]);let u=new URL(N(t),location.origin),a=JSON.stringify(s);return l?u.searchParams.set("params",a):u.hash="#params="+encodeURIComponent(a),new e(u,i?{...i,type:void 0}:void 0)};let K=/\.js(?:\?[^#]*)?(?:#.*)?$/,q=/\.css(?:\?[^#]*)?(?:#.*)?$/;function L(e){return q.test(e)}u.w=function(t,r,n){return e.loadWebAssembly(i.Parent,this.m.id,t,r,n)},u.u=function(t,r){return e.loadWebAssemblyModule(i.Parent,this.m.id,t,r)};let I={};u.c=I;let B=(e,t)=>{let r=I[e];if(r){if(r.error)throw r.error;return r}return W(e,i.Parent,t.id)};function W(e,t,r){let n=$.get(e);if("function"!=typeof n)throw Error(function(e,t,r){let n;switch(t){case 0:n=`as a runtime entry of chunk ${r}`;break;case 1:n=`because it was required from module ${r}`;break;case 2:n="because of an HMR update";break;default:R(t,e=>`Unknown source type: ${e}`)}return`Module ${e} was instantiated ${n}, but the module factory is not available.`}(e,t,r));let o=h(e),i=o.exports;I[e]=o;let l=new s(o,i);try{n(l,o,i)}catch(e){throw o.error=e,e}return o.namespaceObject&&o.exports!==o.namespaceObject&&g(o.exports,o.namespaceObject),o}function F(t){let r,n=function(e){if("string"==typeof e)return e;if(e)return{src:e.getAttribute("src")};if("u">typeof TURBOPACK_NEXT_CHUNK_URLS)return{src:TURBOPACK_NEXT_CHUNK_URLS.pop()};throw Error("chunk path empty but not in a worker")}(t[0]);return 2===t.length?r=t[1]:(r=void 0,!function(e,t){let r=1;for(;r<e.length;){let n,o=r+1;for(;o<e.length&&"function"!=typeof e[o];)o++;if(o===e.length)throw Error("malformed chunk format, expected a factory function");let i=e[o];for(let i=r;i<o;i++){let r=e[i],o=t.get(r);if(o){n=o;break}}let l=n??i,s=!1;for(let n=r;n<o;n++){let r=e[n];t.has(r)||(s||(l===i&&Object.defineProperty(i,"name",{value:"module evaluation"}),s=!0),t.set(r,l))}r=o+1}}(t,$)),e.registerChunk(n,r)}let X=new Map;function D(e){let t=X.get(e);if(!t){let r,n;t={resolved:!1,loadingStarted:!1,promise:new Promise((e,t)=>{r=e,n=t}),resolve:()=>{t.resolved=!0,r()},reject:n},X.set(e,t)}return t}e={async registerChunk(e,r){let n=function(e){if("string"==typeof e)return e;let r=decodeURIComponent(e.src.replace(/[?#].*$/,""));return r.startsWith(t)?r.slice(t.length):r}(e);if(D("string"==typeof e?N(e):e.src).resolve(),null!=r){for(let e of r.otherChunks)D(N("string"==typeof e?e:e.path));if(await Promise.all(r.otherChunks.map(e=>T(i.Runtime,n,e))),r.runtimeModuleIds.length>0)for(let e of r.runtimeModuleIds)!function(e,t){let r=I[t];if(r){if(r.error)throw r.error;return}W(t,i.Runtime,e)}(n,e)}},loadChunkCached:(e,t)=>(function(e,t){let r=D(t);if(r.loadingStarted)return r.promise;if(e===i.Runtime)return r.loadingStarted=!0,L(t)&&r.resolve(),r.promise;if("function"==typeof importScripts)if(L(t));else if(K.test(t))self.TURBOPACK_NEXT_CHUNK_URLS.push(t),importScripts(t);else throw Error(`can't infer type of chunk from URL ${t} in worker`);else{let e=decodeURI(t);if(L(t))if(document.querySelectorAll(`link[rel=stylesheet][href="${t}"],link[rel=stylesheet][href^="${t}?"],link[rel=stylesheet][href="${e}"],link[rel=stylesheet][href^="${e}?"]`).length>0)r.resolve();else{let e=document.createElement("link");e.rel="stylesheet",e.href=t,e.onerror=()=>{r.reject()},e.onload=()=>{r.resolve()},document.head.appendChild(e)}else if(K.test(t)){let n=document.querySelectorAll(`script[src="${t}"],script[src^="${t}?"],script[src="${e}"],script[src^="${e}?"]`);if(n.length>0)for(let e of Array.from(n))e.addEventListener("error",()=>{r.reject()});else{let e=document.createElement("script");e.src=t,e.onerror=()=>{r.reject()},document.head.appendChild(e)}}else throw Error(`can't infer type of chunk from URL ${t}`)}return r.loadingStarted=!0,r.promise})(e,t),async loadWebAssembly(e,t,r,n,o){let i=fetch(N(r)),{instance:l}=await WebAssembly.instantiateStreaming(i,o);return l.exports},async loadWebAssemblyModule(e,t,r,n){let o=fetch(N(r));return await WebAssembly.compileStreaming(o)}};let H=globalThis.TURBOPACK;globalThis.TURBOPACK={push:F},H.forEach(F)})();
@@ -1,32 +1,31 @@
1
1
  1:"$Sreact.fragment"
2
- 2:I[701341,["/_next/static/chunks/0x4b-a2ixww6m.js","/_next/static/chunks/0-1pn22sg~67u.js","/_next/static/chunks/0gig.k.rq8d0x.js","/_next/static/chunks/0w3o.7vi.dlm6.js","/_next/static/chunks/0mny8i81aenx3.js","/_next/static/chunks/002-dxhags4dj.js","/_next/static/chunks/1285yqy_oirb-.js","/_next/static/chunks/125nunjfj2fj0.js","/_next/static/chunks/0nsu~f3voe~0i.js","/_next/static/chunks/05eu2fdixf7c9.js","/_next/static/chunks/0cs830n97dgjy.js","/_next/static/chunks/0_g3irbniww6d.js","/_next/static/chunks/1250wo~-5dgyx.js","/_next/static/chunks/0sz8_nijfiz0p.js","/_next/static/chunks/03me5_ir..2ix.js"],"ZoomWrapper"]
3
- 3:I[950396,["/_next/static/chunks/0x4b-a2ixww6m.js","/_next/static/chunks/0-1pn22sg~67u.js","/_next/static/chunks/0gig.k.rq8d0x.js","/_next/static/chunks/0w3o.7vi.dlm6.js","/_next/static/chunks/0mny8i81aenx3.js","/_next/static/chunks/002-dxhags4dj.js","/_next/static/chunks/1285yqy_oirb-.js","/_next/static/chunks/125nunjfj2fj0.js","/_next/static/chunks/0nsu~f3voe~0i.js","/_next/static/chunks/05eu2fdixf7c9.js","/_next/static/chunks/0cs830n97dgjy.js","/_next/static/chunks/0_g3irbniww6d.js","/_next/static/chunks/1250wo~-5dgyx.js","/_next/static/chunks/0sz8_nijfiz0p.js","/_next/static/chunks/03me5_ir..2ix.js"],"ThemeProvider"]
4
- 4:I[556106,["/_next/static/chunks/0x4b-a2ixww6m.js","/_next/static/chunks/0-1pn22sg~67u.js","/_next/static/chunks/0gig.k.rq8d0x.js","/_next/static/chunks/0w3o.7vi.dlm6.js","/_next/static/chunks/0mny8i81aenx3.js","/_next/static/chunks/002-dxhags4dj.js","/_next/static/chunks/1285yqy_oirb-.js","/_next/static/chunks/125nunjfj2fj0.js","/_next/static/chunks/0nsu~f3voe~0i.js","/_next/static/chunks/05eu2fdixf7c9.js","/_next/static/chunks/0cs830n97dgjy.js","/_next/static/chunks/0_g3irbniww6d.js","/_next/static/chunks/1250wo~-5dgyx.js","/_next/static/chunks/0sz8_nijfiz0p.js","/_next/static/chunks/03me5_ir..2ix.js"],"LocaleProvider"]
5
- 5:I[694819,["/_next/static/chunks/0x4b-a2ixww6m.js","/_next/static/chunks/0-1pn22sg~67u.js","/_next/static/chunks/0gig.k.rq8d0x.js","/_next/static/chunks/0w3o.7vi.dlm6.js","/_next/static/chunks/0mny8i81aenx3.js","/_next/static/chunks/002-dxhags4dj.js","/_next/static/chunks/1285yqy_oirb-.js","/_next/static/chunks/125nunjfj2fj0.js","/_next/static/chunks/0nsu~f3voe~0i.js","/_next/static/chunks/05eu2fdixf7c9.js","/_next/static/chunks/0cs830n97dgjy.js","/_next/static/chunks/0_g3irbniww6d.js","/_next/static/chunks/1250wo~-5dgyx.js","/_next/static/chunks/0sz8_nijfiz0p.js","/_next/static/chunks/03me5_ir..2ix.js"],"ViewportInsets"]
6
- 6:I[177053,["/_next/static/chunks/0x4b-a2ixww6m.js","/_next/static/chunks/0-1pn22sg~67u.js","/_next/static/chunks/0gig.k.rq8d0x.js","/_next/static/chunks/0w3o.7vi.dlm6.js","/_next/static/chunks/0mny8i81aenx3.js","/_next/static/chunks/002-dxhags4dj.js","/_next/static/chunks/1285yqy_oirb-.js","/_next/static/chunks/125nunjfj2fj0.js","/_next/static/chunks/0nsu~f3voe~0i.js","/_next/static/chunks/05eu2fdixf7c9.js","/_next/static/chunks/0cs830n97dgjy.js","/_next/static/chunks/0_g3irbniww6d.js","/_next/static/chunks/1250wo~-5dgyx.js","/_next/static/chunks/0sz8_nijfiz0p.js","/_next/static/chunks/03me5_ir..2ix.js"],"AuthGuard"]
7
- 7:I[994876,["/_next/static/chunks/0x4b-a2ixww6m.js","/_next/static/chunks/0-1pn22sg~67u.js","/_next/static/chunks/0gig.k.rq8d0x.js","/_next/static/chunks/0w3o.7vi.dlm6.js","/_next/static/chunks/0mny8i81aenx3.js","/_next/static/chunks/002-dxhags4dj.js","/_next/static/chunks/1285yqy_oirb-.js","/_next/static/chunks/125nunjfj2fj0.js","/_next/static/chunks/0nsu~f3voe~0i.js","/_next/static/chunks/05eu2fdixf7c9.js","/_next/static/chunks/0cs830n97dgjy.js","/_next/static/chunks/0_g3irbniww6d.js","/_next/static/chunks/1250wo~-5dgyx.js","/_next/static/chunks/0sz8_nijfiz0p.js","/_next/static/chunks/03me5_ir..2ix.js"],"AppShell"]
8
- 8:I[242864,["/_next/static/chunks/0x4b-a2ixww6m.js","/_next/static/chunks/0-1pn22sg~67u.js","/_next/static/chunks/0gig.k.rq8d0x.js","/_next/static/chunks/0w3o.7vi.dlm6.js","/_next/static/chunks/0mny8i81aenx3.js","/_next/static/chunks/002-dxhags4dj.js","/_next/static/chunks/1285yqy_oirb-.js","/_next/static/chunks/125nunjfj2fj0.js","/_next/static/chunks/0nsu~f3voe~0i.js","/_next/static/chunks/05eu2fdixf7c9.js","/_next/static/chunks/0cs830n97dgjy.js","/_next/static/chunks/0_g3irbniww6d.js","/_next/static/chunks/1250wo~-5dgyx.js","/_next/static/chunks/0sz8_nijfiz0p.js","/_next/static/chunks/03me5_ir..2ix.js"],"default"]
9
- 9:I[46907,["/_next/static/chunks/0x4b-a2ixww6m.js","/_next/static/chunks/0-1pn22sg~67u.js","/_next/static/chunks/0gig.k.rq8d0x.js","/_next/static/chunks/0w3o.7vi.dlm6.js","/_next/static/chunks/0mny8i81aenx3.js","/_next/static/chunks/002-dxhags4dj.js","/_next/static/chunks/1285yqy_oirb-.js","/_next/static/chunks/125nunjfj2fj0.js","/_next/static/chunks/0nsu~f3voe~0i.js","/_next/static/chunks/05eu2fdixf7c9.js","/_next/static/chunks/0cs830n97dgjy.js","/_next/static/chunks/0_g3irbniww6d.js","/_next/static/chunks/1250wo~-5dgyx.js","/_next/static/chunks/0sz8_nijfiz0p.js","/_next/static/chunks/03me5_ir..2ix.js"],"default"]
10
- a:I[698679,["/_next/static/chunks/0x4b-a2ixww6m.js","/_next/static/chunks/0-1pn22sg~67u.js","/_next/static/chunks/0gig.k.rq8d0x.js","/_next/static/chunks/0w3o.7vi.dlm6.js","/_next/static/chunks/0mny8i81aenx3.js","/_next/static/chunks/002-dxhags4dj.js","/_next/static/chunks/1285yqy_oirb-.js","/_next/static/chunks/125nunjfj2fj0.js","/_next/static/chunks/0nsu~f3voe~0i.js","/_next/static/chunks/05eu2fdixf7c9.js","/_next/static/chunks/0cs830n97dgjy.js","/_next/static/chunks/0_g3irbniww6d.js","/_next/static/chunks/1250wo~-5dgyx.js","/_next/static/chunks/0sz8_nijfiz0p.js","/_next/static/chunks/03me5_ir..2ix.js"],"CommandPalette"]
11
- b:I[360112,["/_next/static/chunks/0x4b-a2ixww6m.js","/_next/static/chunks/0-1pn22sg~67u.js","/_next/static/chunks/0gig.k.rq8d0x.js","/_next/static/chunks/0w3o.7vi.dlm6.js","/_next/static/chunks/0mny8i81aenx3.js","/_next/static/chunks/002-dxhags4dj.js","/_next/static/chunks/1285yqy_oirb-.js","/_next/static/chunks/125nunjfj2fj0.js","/_next/static/chunks/0nsu~f3voe~0i.js","/_next/static/chunks/05eu2fdixf7c9.js","/_next/static/chunks/0cs830n97dgjy.js","/_next/static/chunks/0_g3irbniww6d.js","/_next/static/chunks/1250wo~-5dgyx.js","/_next/static/chunks/0sz8_nijfiz0p.js","/_next/static/chunks/03me5_ir..2ix.js"],"Toaster"]
12
- c:I[984642,["/_next/static/chunks/0x4b-a2ixww6m.js","/_next/static/chunks/0-1pn22sg~67u.js","/_next/static/chunks/0gig.k.rq8d0x.js","/_next/static/chunks/0w3o.7vi.dlm6.js","/_next/static/chunks/0mny8i81aenx3.js","/_next/static/chunks/002-dxhags4dj.js","/_next/static/chunks/1285yqy_oirb-.js","/_next/static/chunks/125nunjfj2fj0.js","/_next/static/chunks/0nsu~f3voe~0i.js","/_next/static/chunks/05eu2fdixf7c9.js","/_next/static/chunks/0cs830n97dgjy.js","/_next/static/chunks/0_g3irbniww6d.js","/_next/static/chunks/1250wo~-5dgyx.js","/_next/static/chunks/0sz8_nijfiz0p.js","/_next/static/chunks/03me5_ir..2ix.js"],"ConsolePanel"]
13
- 12:I[785502,["/_next/static/chunks/0x4b-a2ixww6m.js","/_next/static/chunks/0-1pn22sg~67u.js","/_next/static/chunks/0gig.k.rq8d0x.js","/_next/static/chunks/0w3o.7vi.dlm6.js","/_next/static/chunks/0mny8i81aenx3.js","/_next/static/chunks/002-dxhags4dj.js","/_next/static/chunks/1285yqy_oirb-.js","/_next/static/chunks/125nunjfj2fj0.js","/_next/static/chunks/0nsu~f3voe~0i.js","/_next/static/chunks/05eu2fdixf7c9.js","/_next/static/chunks/0cs830n97dgjy.js","/_next/static/chunks/0_g3irbniww6d.js","/_next/static/chunks/1250wo~-5dgyx.js","/_next/static/chunks/0sz8_nijfiz0p.js","/_next/static/chunks/03me5_ir..2ix.js"],"default",1]
2
+ 2:I[701341,["/_next/static/chunks/0ppr271hz0xoq.js","/_next/static/chunks/0ie7y4k2ncvnn.js","/_next/static/chunks/0~u.5r3-t7179.js","/_next/static/chunks/002-dxhags4dj.js","/_next/static/chunks/0fxa1edqr7dve.js","/_next/static/chunks/0hra80eyuu37u.js","/_next/static/chunks/0_vi1a~g4wx46.js","/_next/static/chunks/0w2p4ldi2aymp.js","/_next/static/chunks/0.n~yfwf4~6w-.js","/_next/static/chunks/002_j970b9gdx.js","/_next/static/chunks/11k-.49r~1mfm.js","/_next/static/chunks/0-1bfvfwifh-m.js","/_next/static/chunks/09y_3krccdd~u.js","/_next/static/chunks/1250wo~-5dgyx.js","/_next/static/chunks/0igc~uli58ncw.js","/_next/static/chunks/135w27dd8c19s.js","/_next/static/chunks/046me66nilkff.js","/_next/static/chunks/06w~.izyfylap.js"],"ZoomWrapper"]
3
+ 3:I[950396,["/_next/static/chunks/0ppr271hz0xoq.js","/_next/static/chunks/0ie7y4k2ncvnn.js","/_next/static/chunks/0~u.5r3-t7179.js","/_next/static/chunks/002-dxhags4dj.js","/_next/static/chunks/0fxa1edqr7dve.js","/_next/static/chunks/0hra80eyuu37u.js","/_next/static/chunks/0_vi1a~g4wx46.js","/_next/static/chunks/0w2p4ldi2aymp.js","/_next/static/chunks/0.n~yfwf4~6w-.js","/_next/static/chunks/002_j970b9gdx.js","/_next/static/chunks/11k-.49r~1mfm.js","/_next/static/chunks/0-1bfvfwifh-m.js","/_next/static/chunks/09y_3krccdd~u.js","/_next/static/chunks/1250wo~-5dgyx.js","/_next/static/chunks/0igc~uli58ncw.js","/_next/static/chunks/135w27dd8c19s.js","/_next/static/chunks/046me66nilkff.js","/_next/static/chunks/06w~.izyfylap.js"],"ThemeProvider"]
4
+ 4:I[556106,["/_next/static/chunks/0ppr271hz0xoq.js","/_next/static/chunks/0ie7y4k2ncvnn.js","/_next/static/chunks/0~u.5r3-t7179.js","/_next/static/chunks/002-dxhags4dj.js","/_next/static/chunks/0fxa1edqr7dve.js","/_next/static/chunks/0hra80eyuu37u.js","/_next/static/chunks/0_vi1a~g4wx46.js","/_next/static/chunks/0w2p4ldi2aymp.js","/_next/static/chunks/0.n~yfwf4~6w-.js","/_next/static/chunks/002_j970b9gdx.js","/_next/static/chunks/11k-.49r~1mfm.js","/_next/static/chunks/0-1bfvfwifh-m.js","/_next/static/chunks/09y_3krccdd~u.js","/_next/static/chunks/1250wo~-5dgyx.js","/_next/static/chunks/0igc~uli58ncw.js","/_next/static/chunks/135w27dd8c19s.js","/_next/static/chunks/046me66nilkff.js","/_next/static/chunks/06w~.izyfylap.js"],"LocaleProvider"]
5
+ 5:I[694819,["/_next/static/chunks/0ppr271hz0xoq.js","/_next/static/chunks/0ie7y4k2ncvnn.js","/_next/static/chunks/0~u.5r3-t7179.js","/_next/static/chunks/002-dxhags4dj.js","/_next/static/chunks/0fxa1edqr7dve.js","/_next/static/chunks/0hra80eyuu37u.js","/_next/static/chunks/0_vi1a~g4wx46.js","/_next/static/chunks/0w2p4ldi2aymp.js","/_next/static/chunks/0.n~yfwf4~6w-.js","/_next/static/chunks/002_j970b9gdx.js","/_next/static/chunks/11k-.49r~1mfm.js","/_next/static/chunks/0-1bfvfwifh-m.js","/_next/static/chunks/09y_3krccdd~u.js","/_next/static/chunks/1250wo~-5dgyx.js","/_next/static/chunks/0igc~uli58ncw.js","/_next/static/chunks/135w27dd8c19s.js","/_next/static/chunks/046me66nilkff.js","/_next/static/chunks/06w~.izyfylap.js"],"ViewportInsets"]
6
+ 6:I[177053,["/_next/static/chunks/0ppr271hz0xoq.js","/_next/static/chunks/0ie7y4k2ncvnn.js","/_next/static/chunks/0~u.5r3-t7179.js","/_next/static/chunks/002-dxhags4dj.js","/_next/static/chunks/0fxa1edqr7dve.js","/_next/static/chunks/0hra80eyuu37u.js","/_next/static/chunks/0_vi1a~g4wx46.js","/_next/static/chunks/0w2p4ldi2aymp.js","/_next/static/chunks/0.n~yfwf4~6w-.js","/_next/static/chunks/002_j970b9gdx.js","/_next/static/chunks/11k-.49r~1mfm.js","/_next/static/chunks/0-1bfvfwifh-m.js","/_next/static/chunks/09y_3krccdd~u.js","/_next/static/chunks/1250wo~-5dgyx.js","/_next/static/chunks/0igc~uli58ncw.js","/_next/static/chunks/135w27dd8c19s.js","/_next/static/chunks/046me66nilkff.js","/_next/static/chunks/06w~.izyfylap.js"],"AuthGuard"]
7
+ 7:I[994876,["/_next/static/chunks/0ppr271hz0xoq.js","/_next/static/chunks/0ie7y4k2ncvnn.js","/_next/static/chunks/0~u.5r3-t7179.js","/_next/static/chunks/002-dxhags4dj.js","/_next/static/chunks/0fxa1edqr7dve.js","/_next/static/chunks/0hra80eyuu37u.js","/_next/static/chunks/0_vi1a~g4wx46.js","/_next/static/chunks/0w2p4ldi2aymp.js","/_next/static/chunks/0.n~yfwf4~6w-.js","/_next/static/chunks/002_j970b9gdx.js","/_next/static/chunks/11k-.49r~1mfm.js","/_next/static/chunks/0-1bfvfwifh-m.js","/_next/static/chunks/09y_3krccdd~u.js","/_next/static/chunks/1250wo~-5dgyx.js","/_next/static/chunks/0igc~uli58ncw.js","/_next/static/chunks/135w27dd8c19s.js","/_next/static/chunks/046me66nilkff.js","/_next/static/chunks/06w~.izyfylap.js"],"AppShell"]
8
+ 8:I[242864,["/_next/static/chunks/0ppr271hz0xoq.js","/_next/static/chunks/0ie7y4k2ncvnn.js","/_next/static/chunks/0~u.5r3-t7179.js","/_next/static/chunks/002-dxhags4dj.js","/_next/static/chunks/0fxa1edqr7dve.js","/_next/static/chunks/0hra80eyuu37u.js","/_next/static/chunks/0_vi1a~g4wx46.js","/_next/static/chunks/0w2p4ldi2aymp.js","/_next/static/chunks/0.n~yfwf4~6w-.js","/_next/static/chunks/002_j970b9gdx.js","/_next/static/chunks/11k-.49r~1mfm.js","/_next/static/chunks/0-1bfvfwifh-m.js","/_next/static/chunks/09y_3krccdd~u.js","/_next/static/chunks/1250wo~-5dgyx.js","/_next/static/chunks/0igc~uli58ncw.js","/_next/static/chunks/135w27dd8c19s.js","/_next/static/chunks/046me66nilkff.js","/_next/static/chunks/06w~.izyfylap.js"],"default"]
9
+ 9:I[46907,["/_next/static/chunks/0ppr271hz0xoq.js","/_next/static/chunks/0ie7y4k2ncvnn.js","/_next/static/chunks/0~u.5r3-t7179.js","/_next/static/chunks/002-dxhags4dj.js","/_next/static/chunks/0fxa1edqr7dve.js","/_next/static/chunks/0hra80eyuu37u.js","/_next/static/chunks/0_vi1a~g4wx46.js","/_next/static/chunks/0w2p4ldi2aymp.js","/_next/static/chunks/0.n~yfwf4~6w-.js","/_next/static/chunks/002_j970b9gdx.js","/_next/static/chunks/11k-.49r~1mfm.js","/_next/static/chunks/0-1bfvfwifh-m.js","/_next/static/chunks/09y_3krccdd~u.js","/_next/static/chunks/1250wo~-5dgyx.js","/_next/static/chunks/0igc~uli58ncw.js","/_next/static/chunks/135w27dd8c19s.js","/_next/static/chunks/046me66nilkff.js","/_next/static/chunks/06w~.izyfylap.js"],"default"]
10
+ a:I[698679,["/_next/static/chunks/0ppr271hz0xoq.js","/_next/static/chunks/0ie7y4k2ncvnn.js","/_next/static/chunks/0~u.5r3-t7179.js","/_next/static/chunks/002-dxhags4dj.js","/_next/static/chunks/0fxa1edqr7dve.js","/_next/static/chunks/0hra80eyuu37u.js","/_next/static/chunks/0_vi1a~g4wx46.js","/_next/static/chunks/0w2p4ldi2aymp.js","/_next/static/chunks/0.n~yfwf4~6w-.js","/_next/static/chunks/002_j970b9gdx.js","/_next/static/chunks/11k-.49r~1mfm.js","/_next/static/chunks/0-1bfvfwifh-m.js","/_next/static/chunks/09y_3krccdd~u.js","/_next/static/chunks/1250wo~-5dgyx.js","/_next/static/chunks/0igc~uli58ncw.js","/_next/static/chunks/135w27dd8c19s.js","/_next/static/chunks/046me66nilkff.js","/_next/static/chunks/06w~.izyfylap.js"],"CommandPalette"]
11
+ b:I[360112,["/_next/static/chunks/0ppr271hz0xoq.js","/_next/static/chunks/0ie7y4k2ncvnn.js","/_next/static/chunks/0~u.5r3-t7179.js","/_next/static/chunks/002-dxhags4dj.js","/_next/static/chunks/0fxa1edqr7dve.js","/_next/static/chunks/0hra80eyuu37u.js","/_next/static/chunks/0_vi1a~g4wx46.js","/_next/static/chunks/0w2p4ldi2aymp.js","/_next/static/chunks/0.n~yfwf4~6w-.js","/_next/static/chunks/002_j970b9gdx.js","/_next/static/chunks/11k-.49r~1mfm.js","/_next/static/chunks/0-1bfvfwifh-m.js","/_next/static/chunks/09y_3krccdd~u.js","/_next/static/chunks/1250wo~-5dgyx.js","/_next/static/chunks/0igc~uli58ncw.js","/_next/static/chunks/135w27dd8c19s.js","/_next/static/chunks/046me66nilkff.js","/_next/static/chunks/06w~.izyfylap.js"],"Toaster"]
12
+ c:I[984642,["/_next/static/chunks/0ppr271hz0xoq.js","/_next/static/chunks/0ie7y4k2ncvnn.js","/_next/static/chunks/0~u.5r3-t7179.js","/_next/static/chunks/002-dxhags4dj.js","/_next/static/chunks/0fxa1edqr7dve.js","/_next/static/chunks/0hra80eyuu37u.js","/_next/static/chunks/0_vi1a~g4wx46.js","/_next/static/chunks/0w2p4ldi2aymp.js","/_next/static/chunks/0.n~yfwf4~6w-.js","/_next/static/chunks/002_j970b9gdx.js","/_next/static/chunks/11k-.49r~1mfm.js","/_next/static/chunks/0-1bfvfwifh-m.js","/_next/static/chunks/09y_3krccdd~u.js","/_next/static/chunks/1250wo~-5dgyx.js","/_next/static/chunks/0igc~uli58ncw.js","/_next/static/chunks/135w27dd8c19s.js","/_next/static/chunks/046me66nilkff.js","/_next/static/chunks/06w~.izyfylap.js"],"ConsolePanel"]
13
+ 11:I[785502,["/_next/static/chunks/0ppr271hz0xoq.js","/_next/static/chunks/0ie7y4k2ncvnn.js","/_next/static/chunks/0~u.5r3-t7179.js","/_next/static/chunks/002-dxhags4dj.js","/_next/static/chunks/0fxa1edqr7dve.js","/_next/static/chunks/0hra80eyuu37u.js","/_next/static/chunks/0_vi1a~g4wx46.js","/_next/static/chunks/0w2p4ldi2aymp.js","/_next/static/chunks/0.n~yfwf4~6w-.js","/_next/static/chunks/002_j970b9gdx.js","/_next/static/chunks/11k-.49r~1mfm.js","/_next/static/chunks/0-1bfvfwifh-m.js","/_next/static/chunks/09y_3krccdd~u.js","/_next/static/chunks/1250wo~-5dgyx.js","/_next/static/chunks/0igc~uli58ncw.js","/_next/static/chunks/135w27dd8c19s.js","/_next/static/chunks/046me66nilkff.js","/_next/static/chunks/06w~.izyfylap.js"],"default",1]
14
14
  :HL["/_next/static/chunks/0-oog4zg4_m~m.css","style"]
15
- :HL["/_next/static/chunks/0~w6ugk9s5p-h.css","style"]
16
- 0:{"P":null,"c":["","_not-found"],"q":"","i":false,"f":[[["",{"children":["/_not-found",{"children":["__PAGE__",{}]}]},"$undefined","$undefined",16],[["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/chunks/0-oog4zg4_m~m.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","link","1",{"rel":"stylesheet","href":"/_next/static/chunks/0~w6ugk9s5p-h.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","script","script-0",{"src":"/_next/static/chunks/0x4b-a2ixww6m.js","async":true,"nonce":"$undefined"}],["$","script","script-1",{"src":"/_next/static/chunks/0-1pn22sg~67u.js","async":true,"nonce":"$undefined"}],["$","script","script-2",{"src":"/_next/static/chunks/0gig.k.rq8d0x.js","async":true,"nonce":"$undefined"}],["$","script","script-3",{"src":"/_next/static/chunks/0w3o.7vi.dlm6.js","async":true,"nonce":"$undefined"}],["$","script","script-4",{"src":"/_next/static/chunks/0mny8i81aenx3.js","async":true,"nonce":"$undefined"}],["$","script","script-5",{"src":"/_next/static/chunks/002-dxhags4dj.js","async":true,"nonce":"$undefined"}],["$","script","script-6",{"src":"/_next/static/chunks/1285yqy_oirb-.js","async":true,"nonce":"$undefined"}],["$","script","script-7",{"src":"/_next/static/chunks/125nunjfj2fj0.js","async":true,"nonce":"$undefined"}],["$","script","script-8",{"src":"/_next/static/chunks/0nsu~f3voe~0i.js","async":true,"nonce":"$undefined"}],["$","script","script-9",{"src":"/_next/static/chunks/05eu2fdixf7c9.js","async":true,"nonce":"$undefined"}],["$","script","script-10",{"src":"/_next/static/chunks/0cs830n97dgjy.js","async":true,"nonce":"$undefined"}],["$","script","script-11",{"src":"/_next/static/chunks/0_g3irbniww6d.js","async":true,"nonce":"$undefined"}],["$","script","script-12",{"src":"/_next/static/chunks/1250wo~-5dgyx.js","async":true,"nonce":"$undefined"}],["$","script","script-13",{"src":"/_next/static/chunks/0sz8_nijfiz0p.js","async":true,"nonce":"$undefined"}],["$","script","script-14",{"src":"/_next/static/chunks/03me5_ir..2ix.js","async":true,"nonce":"$undefined"}]],["$","html",null,{"lang":"","className":"dm_sans_81a33cc5-module___RQdfW__variable outfit_8334a424-module__TwcMYa__variable poppins_37c4598a-module__JRG3Wq__variable h-[var(--app-content-height)] overflow-hidden antialiased","suppressHydrationWarning":true,"children":["$","body",null,{"className":"h-[var(--app-content-height)] overflow-hidden font-sans","children":["$","$L2",null,{"children":["$","$L3",null,{"attribute":"class","defaultTheme":"system","enableSystem":true,"disableTransitionOnChange":true,"children":["$","$L4",null,{"children":[["$","$L5",null,{}],["$","$L6",null,{"children":[["$","$L7",null,{"children":["$","$L8",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L9",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]}],["$","$La",null,{}],["$","$Lb",null,{"richColors":true,"position":"bottom-right"}]]}],["$","$Lc",null,{}]]}]}]}]}]}]]}],{"children":[["$","$1","c",{"children":[null,["$","$L8",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L9",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":[["$","$1","c",{"children":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":"$0:f:0:1:0:props:children:1:props:children:props:children:props:children:props:children:props:children:1:props:children:0:props:children:props:notFound:0:1:props:style","children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],"$Ld","$Le"]}]}]],null,"$Lf"]}],{},null,false,null]},null,false,"$@10"]},null,false,null],"$L11",false]],"m":"$undefined","G":["$12",["$L13","$L14"]],"S":true,"h":null,"s":"$undefined","l":"$undefined","p":"$undefined","d":"$undefined","b":"HUlYEknPhyW7dRmJ5mFdG"}
17
- 15:I[990774,["/_next/static/chunks/0x4b-a2ixww6m.js","/_next/static/chunks/0-1pn22sg~67u.js","/_next/static/chunks/0gig.k.rq8d0x.js","/_next/static/chunks/0w3o.7vi.dlm6.js","/_next/static/chunks/0mny8i81aenx3.js","/_next/static/chunks/002-dxhags4dj.js","/_next/static/chunks/1285yqy_oirb-.js","/_next/static/chunks/125nunjfj2fj0.js","/_next/static/chunks/0nsu~f3voe~0i.js","/_next/static/chunks/05eu2fdixf7c9.js","/_next/static/chunks/0cs830n97dgjy.js","/_next/static/chunks/0_g3irbniww6d.js","/_next/static/chunks/1250wo~-5dgyx.js","/_next/static/chunks/0sz8_nijfiz0p.js","/_next/static/chunks/03me5_ir..2ix.js"],"OutletBoundary"]
18
- 16:"$Sreact.suspense"
19
- 19:I[990774,["/_next/static/chunks/0x4b-a2ixww6m.js","/_next/static/chunks/0-1pn22sg~67u.js","/_next/static/chunks/0gig.k.rq8d0x.js","/_next/static/chunks/0w3o.7vi.dlm6.js","/_next/static/chunks/0mny8i81aenx3.js","/_next/static/chunks/002-dxhags4dj.js","/_next/static/chunks/1285yqy_oirb-.js","/_next/static/chunks/125nunjfj2fj0.js","/_next/static/chunks/0nsu~f3voe~0i.js","/_next/static/chunks/05eu2fdixf7c9.js","/_next/static/chunks/0cs830n97dgjy.js","/_next/static/chunks/0_g3irbniww6d.js","/_next/static/chunks/1250wo~-5dgyx.js","/_next/static/chunks/0sz8_nijfiz0p.js","/_next/static/chunks/03me5_ir..2ix.js"],"ViewportBoundary"]
20
- 1b:I[990774,["/_next/static/chunks/0x4b-a2ixww6m.js","/_next/static/chunks/0-1pn22sg~67u.js","/_next/static/chunks/0gig.k.rq8d0x.js","/_next/static/chunks/0w3o.7vi.dlm6.js","/_next/static/chunks/0mny8i81aenx3.js","/_next/static/chunks/002-dxhags4dj.js","/_next/static/chunks/1285yqy_oirb-.js","/_next/static/chunks/125nunjfj2fj0.js","/_next/static/chunks/0nsu~f3voe~0i.js","/_next/static/chunks/05eu2fdixf7c9.js","/_next/static/chunks/0cs830n97dgjy.js","/_next/static/chunks/0_g3irbniww6d.js","/_next/static/chunks/1250wo~-5dgyx.js","/_next/static/chunks/0sz8_nijfiz0p.js","/_next/static/chunks/03me5_ir..2ix.js"],"MetadataBoundary"]
21
- d:["$","h1",null,{"className":"next-error-h1","style":"$0:f:0:1:0:props:children:1:props:children:props:children:props:children:props:children:props:children:1:props:children:0:props:children:props:notFound:0:1:props:children:props:children:1:props:style","children":404}]
22
- e:["$","div",null,{"style":"$0:f:0:1:0:props:children:1:props:children:props:children:props:children:props:children:props:children:1:props:children:0:props:children:props:notFound:0:1:props:children:props:children:2:props:style","children":["$","h2",null,{"style":"$0:f:0:1:0:props:children:1:props:children:props:children:props:children:props:children:props:children:1:props:children:0:props:children:props:notFound:0:1:props:children:props:children:2:props:children:props:style","children":"This page could not be found."}]}]
23
- f:["$","$L15",null,{"children":["$","$16",null,{"name":"Next.MetadataOutlet","children":"$@17"}]}]
24
- 18:[]
25
- 10:"$W18"
26
- 11:["$","$1","h",{"children":[["$","meta",null,{"name":"robots","content":"noindex"}],["$","$L19",null,{"children":"$L1a"}],["$","div",null,{"hidden":true,"children":["$","$L1b",null,{"children":["$","$16",null,{"name":"Next.Metadata","children":"$L1c"}]}]}],["$","meta",null,{"name":"next-size-adjust","content":""}]]}]
27
- 13:["$","link","0",{"rel":"stylesheet","href":"/_next/static/chunks/0-oog4zg4_m~m.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]
28
- 14:["$","link","1",{"rel":"stylesheet","href":"/_next/static/chunks/0~w6ugk9s5p-h.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]
29
- 1a:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no, viewport-fit=cover"}]]
30
- 1d:I[946513,["/_next/static/chunks/0x4b-a2ixww6m.js","/_next/static/chunks/0-1pn22sg~67u.js","/_next/static/chunks/0gig.k.rq8d0x.js","/_next/static/chunks/0w3o.7vi.dlm6.js","/_next/static/chunks/0mny8i81aenx3.js","/_next/static/chunks/002-dxhags4dj.js","/_next/static/chunks/1285yqy_oirb-.js","/_next/static/chunks/125nunjfj2fj0.js","/_next/static/chunks/0nsu~f3voe~0i.js","/_next/static/chunks/05eu2fdixf7c9.js","/_next/static/chunks/0cs830n97dgjy.js","/_next/static/chunks/0_g3irbniww6d.js","/_next/static/chunks/1250wo~-5dgyx.js","/_next/static/chunks/0sz8_nijfiz0p.js","/_next/static/chunks/03me5_ir..2ix.js"],"IconMark"]
31
- 17:null
32
- 1c:[["$","title","0",{"children":"Agent Spaces"}],["$","meta","1",{"name":"description","content":"Multi-agent collaborative coding workspace"}],["$","link","2",{"rel":"icon","href":"/favicon.ico?favicon.0~ekuj.zhggpa.ico","sizes":"32x32","type":"image/x-icon"}],["$","link","3",{"rel":"icon","href":"/favicon.ico"}],["$","link","4",{"rel":"apple-touch-icon","href":"/apple-touch-icon.png"}],["$","$L1d","5",{}]]
15
+ :HL["/_next/static/chunks/04v-pqqs-2lvp.css","style"]
16
+ 0:{"P":null,"c":["","_not-found"],"q":"","i":false,"f":[[["",{"children":["/_not-found",{"children":["__PAGE__",{}]}]},"$undefined","$undefined",16],[["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/chunks/0-oog4zg4_m~m.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","link","1",{"rel":"stylesheet","href":"/_next/static/chunks/04v-pqqs-2lvp.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","script","script-0",{"src":"/_next/static/chunks/0ppr271hz0xoq.js","async":true,"nonce":"$undefined"}],["$","script","script-1",{"src":"/_next/static/chunks/0ie7y4k2ncvnn.js","async":true,"nonce":"$undefined"}],["$","script","script-2",{"src":"/_next/static/chunks/0~u.5r3-t7179.js","async":true,"nonce":"$undefined"}],["$","script","script-3",{"src":"/_next/static/chunks/002-dxhags4dj.js","async":true,"nonce":"$undefined"}],["$","script","script-4",{"src":"/_next/static/chunks/0fxa1edqr7dve.js","async":true,"nonce":"$undefined"}],["$","script","script-5",{"src":"/_next/static/chunks/0hra80eyuu37u.js","async":true,"nonce":"$undefined"}],["$","script","script-6",{"src":"/_next/static/chunks/0_vi1a~g4wx46.js","async":true,"nonce":"$undefined"}],["$","script","script-7",{"src":"/_next/static/chunks/0w2p4ldi2aymp.js","async":true,"nonce":"$undefined"}],["$","script","script-8",{"src":"/_next/static/chunks/0.n~yfwf4~6w-.js","async":true,"nonce":"$undefined"}],["$","script","script-9",{"src":"/_next/static/chunks/002_j970b9gdx.js","async":true,"nonce":"$undefined"}],["$","script","script-10",{"src":"/_next/static/chunks/11k-.49r~1mfm.js","async":true,"nonce":"$undefined"}],["$","script","script-11",{"src":"/_next/static/chunks/0-1bfvfwifh-m.js","async":true,"nonce":"$undefined"}],["$","script","script-12",{"src":"/_next/static/chunks/09y_3krccdd~u.js","async":true,"nonce":"$undefined"}],["$","script","script-13",{"src":"/_next/static/chunks/1250wo~-5dgyx.js","async":true,"nonce":"$undefined"}],["$","script","script-14",{"src":"/_next/static/chunks/0igc~uli58ncw.js","async":true,"nonce":"$undefined"}],["$","script","script-15",{"src":"/_next/static/chunks/135w27dd8c19s.js","async":true,"nonce":"$undefined"}],["$","script","script-16",{"src":"/_next/static/chunks/046me66nilkff.js","async":true,"nonce":"$undefined"}],["$","script","script-17",{"src":"/_next/static/chunks/06w~.izyfylap.js","async":true,"nonce":"$undefined"}]],["$","html",null,{"lang":"","className":"dm_sans_81a33cc5-module___RQdfW__variable outfit_8334a424-module__TwcMYa__variable poppins_37c4598a-module__JRG3Wq__variable h-[var(--app-content-height)] overflow-hidden antialiased","suppressHydrationWarning":true,"children":["$","body",null,{"className":"h-[var(--app-content-height)] overflow-hidden font-sans","children":["$","$L2",null,{"children":["$","$L3",null,{"attribute":"class","defaultTheme":"system","enableSystem":true,"disableTransitionOnChange":true,"children":["$","$L4",null,{"children":[["$","$L5",null,{}],["$","$L6",null,{"children":[["$","$L7",null,{"children":["$","$L8",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L9",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]}],["$","$La",null,{}],["$","$Lb",null,{"richColors":true,"position":"bottom-right"}]]}],["$","$Lc",null,{}]]}]}]}]}]}]]}],{"children":[["$","$1","c",{"children":[null,["$","$L8",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L9",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":[["$","$1","c",{"children":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":"$0:f:0:1:0:props:children:1:props:children:props:children:props:children:props:children:props:children:1:props:children:0:props:children:props:notFound:0:1:props:style","children":"$Ld"}]],null,"$Le"]}],{},null,false,null]},null,false,"$@f"]},null,false,null],"$L10",false]],"m":"$undefined","G":["$11",["$L12","$L13"]],"S":true,"h":null,"s":"$undefined","l":"$undefined","p":"$undefined","d":"$undefined","b":"OoXAsPtrUWjC1l898FSvI"}
17
+ 14:I[990774,["/_next/static/chunks/0ppr271hz0xoq.js","/_next/static/chunks/0ie7y4k2ncvnn.js","/_next/static/chunks/0~u.5r3-t7179.js","/_next/static/chunks/002-dxhags4dj.js","/_next/static/chunks/0fxa1edqr7dve.js","/_next/static/chunks/0hra80eyuu37u.js","/_next/static/chunks/0_vi1a~g4wx46.js","/_next/static/chunks/0w2p4ldi2aymp.js","/_next/static/chunks/0.n~yfwf4~6w-.js","/_next/static/chunks/002_j970b9gdx.js","/_next/static/chunks/11k-.49r~1mfm.js","/_next/static/chunks/0-1bfvfwifh-m.js","/_next/static/chunks/09y_3krccdd~u.js","/_next/static/chunks/1250wo~-5dgyx.js","/_next/static/chunks/0igc~uli58ncw.js","/_next/static/chunks/135w27dd8c19s.js","/_next/static/chunks/046me66nilkff.js","/_next/static/chunks/06w~.izyfylap.js"],"OutletBoundary"]
18
+ 15:"$Sreact.suspense"
19
+ 18:I[990774,["/_next/static/chunks/0ppr271hz0xoq.js","/_next/static/chunks/0ie7y4k2ncvnn.js","/_next/static/chunks/0~u.5r3-t7179.js","/_next/static/chunks/002-dxhags4dj.js","/_next/static/chunks/0fxa1edqr7dve.js","/_next/static/chunks/0hra80eyuu37u.js","/_next/static/chunks/0_vi1a~g4wx46.js","/_next/static/chunks/0w2p4ldi2aymp.js","/_next/static/chunks/0.n~yfwf4~6w-.js","/_next/static/chunks/002_j970b9gdx.js","/_next/static/chunks/11k-.49r~1mfm.js","/_next/static/chunks/0-1bfvfwifh-m.js","/_next/static/chunks/09y_3krccdd~u.js","/_next/static/chunks/1250wo~-5dgyx.js","/_next/static/chunks/0igc~uli58ncw.js","/_next/static/chunks/135w27dd8c19s.js","/_next/static/chunks/046me66nilkff.js","/_next/static/chunks/06w~.izyfylap.js"],"ViewportBoundary"]
20
+ 1a:I[990774,["/_next/static/chunks/0ppr271hz0xoq.js","/_next/static/chunks/0ie7y4k2ncvnn.js","/_next/static/chunks/0~u.5r3-t7179.js","/_next/static/chunks/002-dxhags4dj.js","/_next/static/chunks/0fxa1edqr7dve.js","/_next/static/chunks/0hra80eyuu37u.js","/_next/static/chunks/0_vi1a~g4wx46.js","/_next/static/chunks/0w2p4ldi2aymp.js","/_next/static/chunks/0.n~yfwf4~6w-.js","/_next/static/chunks/002_j970b9gdx.js","/_next/static/chunks/11k-.49r~1mfm.js","/_next/static/chunks/0-1bfvfwifh-m.js","/_next/static/chunks/09y_3krccdd~u.js","/_next/static/chunks/1250wo~-5dgyx.js","/_next/static/chunks/0igc~uli58ncw.js","/_next/static/chunks/135w27dd8c19s.js","/_next/static/chunks/046me66nilkff.js","/_next/static/chunks/06w~.izyfylap.js"],"MetadataBoundary"]
21
+ d:["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":"$0:f:0:1:0:props:children:1:props:children:props:children:props:children:props:children:props:children:1:props:children:0:props:children:props:notFound:0:1:props:children:props:children:1:props:style","children":404}],["$","div",null,{"style":"$0:f:0:1:0:props:children:1:props:children:props:children:props:children:props:children:props:children:1:props:children:0:props:children:props:notFound:0:1:props:children:props:children:2:props:style","children":["$","h2",null,{"style":"$0:f:0:1:0:props:children:1:props:children:props:children:props:children:props:children:props:children:1:props:children:0:props:children:props:notFound:0:1:props:children:props:children:2:props:children:props:style","children":"This page could not be found."}]}]]}]
22
+ e:["$","$L14",null,{"children":["$","$15",null,{"name":"Next.MetadataOutlet","children":"$@16"}]}]
23
+ 17:[]
24
+ f:"$W17"
25
+ 10:["$","$1","h",{"children":[["$","meta",null,{"name":"robots","content":"noindex"}],["$","$L18",null,{"children":"$L19"}],["$","div",null,{"hidden":true,"children":["$","$L1a",null,{"children":["$","$15",null,{"name":"Next.Metadata","children":"$L1b"}]}]}],["$","meta",null,{"name":"next-size-adjust","content":""}]]}]
26
+ 12:["$","link","0",{"rel":"stylesheet","href":"/_next/static/chunks/0-oog4zg4_m~m.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]
27
+ 13:["$","link","1",{"rel":"stylesheet","href":"/_next/static/chunks/04v-pqqs-2lvp.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]
28
+ 19:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no, viewport-fit=cover"}]]
29
+ 1c:I[946513,["/_next/static/chunks/0ppr271hz0xoq.js","/_next/static/chunks/0ie7y4k2ncvnn.js","/_next/static/chunks/0~u.5r3-t7179.js","/_next/static/chunks/002-dxhags4dj.js","/_next/static/chunks/0fxa1edqr7dve.js","/_next/static/chunks/0hra80eyuu37u.js","/_next/static/chunks/0_vi1a~g4wx46.js","/_next/static/chunks/0w2p4ldi2aymp.js","/_next/static/chunks/0.n~yfwf4~6w-.js","/_next/static/chunks/002_j970b9gdx.js","/_next/static/chunks/11k-.49r~1mfm.js","/_next/static/chunks/0-1bfvfwifh-m.js","/_next/static/chunks/09y_3krccdd~u.js","/_next/static/chunks/1250wo~-5dgyx.js","/_next/static/chunks/0igc~uli58ncw.js","/_next/static/chunks/135w27dd8c19s.js","/_next/static/chunks/046me66nilkff.js","/_next/static/chunks/06w~.izyfylap.js"],"IconMark"]
30
+ 16:null
31
+ 1b:[["$","title","0",{"children":"Agent Spaces"}],["$","meta","1",{"name":"description","content":"Multi-agent collaborative coding workspace"}],["$","link","2",{"rel":"icon","href":"/favicon.ico?favicon.0~ekuj.zhggpa.ico","sizes":"32x32","type":"image/x-icon"}],["$","link","3",{"rel":"icon","href":"/favicon.ico"}],["$","link","4",{"rel":"apple-touch-icon","href":"/apple-touch-icon.png"}],["$","$L1c","5",{}]]