@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.
- package/dist/adapters/agent-runtime-types.js +12 -0
- package/dist/adapters/claude-code-runtime/index.js +22 -0
- package/dist/adapters/claude-code-runtime/sdk-config.js +34 -10
- package/dist/adapters/codex-runtime.js +2 -2
- package/dist/adapters/git.js +29 -13
- package/dist/adapters/langchain-runtime.js +2 -2
- package/dist/adapters/open-agent-sdk-runtime.js +2 -2
- package/dist/agents/agent-message-parts.js +27 -3
- package/dist/agents/commit-agent.js +1 -0
- package/dist/agents/issue-agent-progress.js +4 -2
- package/dist/agents/issue-agent-runner.js +5 -5
- package/dist/agents/issue-task-controller.js +95 -14
- package/dist/app.js +74 -5
- package/dist/package.json +1 -1
- package/dist/routes/agent-sse.js +4 -2
- package/dist/routes/channel.js +21 -4
- package/dist/routes/file.js +87 -1
- package/dist/routes/hooks.js +88 -0
- package/dist/routes/issue.js +59 -1
- package/dist/routes/output-style.js +48 -0
- package/dist/routes/prompt-template.js +2 -2
- package/dist/routes/skill.js +97 -3
- package/dist/routes/task.js +13 -1
- package/dist/services/agent.js +45 -16
- package/dist/services/hook-engine.js +118 -0
- package/dist/services/issue.js +6 -0
- package/dist/services/notification-hub/bot-agent.js +1 -0
- package/dist/services/output-style.js +134 -0
- package/dist/services/persistent-agent-context.js +37 -4
- package/dist/services/prompt-template.js +2 -2
- package/dist/services/skill.js +275 -40
- package/dist/storage/hook-store.js +55 -0
- package/dist/web/404.html +1 -1
- package/dist/web/__next.__PAGE__.txt +4 -4
- package/dist/web/__next._full.txt +25 -23
- package/dist/web/__next._head.txt +4 -4
- package/dist/web/__next._index.txt +13 -13
- package/dist/web/__next._tree.txt +2 -2
- package/dist/web/_next/static/chunks/0-1bfvfwifh-m.js +1 -0
- package/dist/web/_next/static/chunks/0-f~0xmwl__u5.js +1 -0
- package/dist/web/_next/static/chunks/0.n~yfwf4~6w-.js +1 -0
- package/dist/web/_next/static/chunks/002_j970b9gdx.js +1 -0
- package/dist/web/_next/static/chunks/014x2qbuiszni.js +3 -0
- package/dist/web/_next/static/chunks/01iqv28_snwus.js +1 -0
- package/dist/web/_next/static/chunks/02c22g~xd-y30.js +19 -0
- package/dist/web/_next/static/chunks/02mf61htij8g0.js +31 -0
- package/dist/web/_next/static/chunks/03scq1-0ykve3.js +1 -0
- package/dist/web/_next/static/chunks/046me66nilkff.js +1 -0
- package/dist/web/_next/static/chunks/04v-pqqs-2lvp.css +1 -0
- package/dist/web/_next/static/chunks/05f8cnmzqd5wb.js +1 -0
- package/dist/web/_next/static/chunks/{0zd1o3u04~qvo.js → 05psi2gtx~bev.js} +7 -7
- package/dist/web/_next/static/chunks/{12odetnu-lyrr.js → 06whz1~s_7pva.js} +12 -12
- package/dist/web/_next/static/chunks/06w~.izyfylap.js +1 -0
- package/dist/web/_next/static/chunks/08kfx8on9oty~.js +1 -0
- package/dist/web/_next/static/chunks/09t62a89~jesc.js +3 -0
- package/dist/web/_next/static/chunks/09y_3krccdd~u.js +1 -0
- package/dist/web/_next/static/chunks/{0njy89g5coeyi.js → 0_8dm7bxp18xo.js} +6 -6
- package/dist/web/_next/static/chunks/0_e~hmntdfop9.js +1 -0
- package/dist/web/_next/static/chunks/0_udc.6.tueey.js +1 -0
- package/dist/web/_next/static/chunks/0_vi1a~g4wx46.js +3 -0
- package/dist/web/_next/static/chunks/{05iy4.c-1cfhd.js → 0aa6bcdmtpekn.js} +1 -1
- package/dist/web/_next/static/chunks/{0tvd~rxgf0oh_.js → 0bbmx45w_h5np.js} +1 -1
- package/dist/web/_next/static/chunks/0cke33d38fnby.js +90 -0
- package/dist/web/_next/static/chunks/{0w1iudd1d46sw.js → 0ctg5qmw7uu.1.js} +2 -2
- package/dist/web/_next/static/chunks/0cyq~8xb~r5fc.js +1 -0
- package/dist/web/_next/static/chunks/0ewceguykiut5.js +1 -0
- package/dist/web/_next/static/chunks/0fxa1edqr7dve.js +1 -0
- package/dist/web/_next/static/chunks/{0202ia13sijwb.js → 0h18ej5yf974e.js} +1 -1
- package/dist/web/_next/static/chunks/0hra80eyuu37u.js +1 -0
- package/dist/web/_next/static/chunks/0i39jifmxla7q.js +1 -0
- package/dist/web/_next/static/chunks/0ie7y4k2ncvnn.js +1 -0
- package/dist/web/_next/static/chunks/0igc~uli58ncw.js +2 -0
- package/dist/web/_next/static/chunks/0kof5qdg8c2-k.js +71 -0
- package/dist/web/_next/static/chunks/{08o-zmr-40r5g.js → 0m11vvph7q94-.js} +1 -1
- package/dist/web/_next/static/chunks/0msb2mi3hiu5_.js +67 -0
- package/dist/web/_next/static/chunks/0np.d~hc1-pmh.js +4 -0
- package/dist/web/_next/static/chunks/{0qpq0~_58fe9a.js → 0oaq67r7ix.vg.js} +1 -1
- package/dist/web/_next/static/chunks/0ogpc3f3keopc.js +3 -0
- package/dist/web/_next/static/chunks/{0d_dp_4ofz0l3.css → 0ojcao3hdm36s.css} +0 -1
- package/dist/web/_next/static/chunks/0p1n8bvfnpl41.js +1 -0
- package/dist/web/_next/static/chunks/{0gig.k.rq8d0x.js → 0ppr271hz0xoq.js} +1 -1
- package/dist/web/_next/static/chunks/0s_dva~eh2yhi.js +3 -0
- package/dist/web/_next/static/chunks/0typj55ox8d5i.js +1 -0
- package/dist/web/_next/static/chunks/0w2p4ldi2aymp.js +1 -0
- package/dist/web/_next/static/chunks/{0..g0jl-8qup7.js → 0xoo17yef_b8g.js} +1 -1
- package/dist/web/_next/static/chunks/0xt-8wk21gs7g.js +1 -0
- package/dist/web/_next/static/chunks/0y09i51u6ixq5.js +1 -0
- package/dist/web/_next/static/chunks/0za1r07-6az6w.js +1 -0
- package/dist/web/_next/static/chunks/0zc0xgp5ourcn.js +1 -0
- package/dist/web/_next/static/chunks/0zmhdridea1s5.js +90 -0
- package/dist/web/_next/static/chunks/0~u.5r3-t7179.js +1 -0
- package/dist/web/_next/static/chunks/10.alq.6stmld.js +1 -0
- package/dist/web/_next/static/chunks/11-czmcci_55y.js +1 -0
- package/dist/web/_next/static/chunks/11b3zgk1etlkw.js +7 -0
- package/dist/web/_next/static/chunks/11k-.49r~1mfm.js +1 -0
- package/dist/web/_next/static/chunks/11qp8r5dotf7d.js +1 -0
- package/dist/web/_next/static/chunks/128ugqd34tr_-.js +1 -0
- package/dist/web/_next/static/chunks/12mxlicp247c8.js +1 -0
- package/dist/web/_next/static/chunks/135w27dd8c19s.js +5 -0
- package/dist/web/_next/static/chunks/13~y-b.b9rrw4.js +1 -0
- package/dist/web/_next/static/chunks/{0jokpgh485~28.js → 14hqmid8q4apf.js} +11 -11
- package/dist/web/_next/static/chunks/16sg-lflc8csx.js +1 -0
- package/dist/web/_next/static/chunks/176dc-dtokxxi.js +16 -0
- package/dist/web/_next/static/chunks/17g-0pqre.anw.js +1 -0
- package/dist/web/_next/static/chunks/17oc2l.ekcs8b.css +1 -0
- package/dist/web/_next/static/chunks/{turbopack-0lrdxynxb9-1t.js → turbopack-0ndm2zc_pdptk.js} +1 -1
- package/dist/web/_not-found/__next._full.txt +29 -30
- package/dist/web/_not-found/__next._head.txt +4 -4
- package/dist/web/_not-found/__next._index.txt +13 -13
- package/dist/web/_not-found/__next._not-found.__PAGE__.txt +2 -2
- package/dist/web/_not-found/__next._not-found.txt +3 -3
- package/dist/web/_not-found/__next._tree.txt +2 -2
- package/dist/web/_not-found.html +1 -1
- package/dist/web/_not-found.txt +29 -30
- package/dist/web/icons/file_type_audio.svg +3 -1
- package/dist/web/icons/file_type_video.svg +10 -1
- package/dist/web/index.html +1 -1
- package/dist/web/index.txt +25 -23
- package/dist/web/login/__next._full.txt +30 -28
- package/dist/web/login/__next._head.txt +4 -4
- package/dist/web/login/__next._index.txt +13 -13
- package/dist/web/login/__next._tree.txt +2 -2
- package/dist/web/login/__next.login.__PAGE__.txt +4 -4
- package/dist/web/login/__next.login.txt +3 -3
- package/dist/web/login.html +1 -1
- package/dist/web/login.txt +30 -28
- package/dist/web/settings/__next._full.txt +32 -31
- package/dist/web/settings/__next._head.txt +4 -4
- package/dist/web/settings/__next._index.txt +13 -13
- package/dist/web/settings/__next._tree.txt +2 -2
- package/dist/web/settings/__next.settings.__PAGE__.txt +4 -4
- package/dist/web/settings/__next.settings.txt +5 -5
- package/dist/web/settings/agents/__next._full.txt +35 -34
- package/dist/web/settings/agents/__next._head.txt +4 -4
- package/dist/web/settings/agents/__next._index.txt +13 -13
- package/dist/web/settings/agents/__next._tree.txt +2 -2
- package/dist/web/settings/agents/__next.settings.agents.__PAGE__.txt +4 -4
- package/dist/web/settings/agents/__next.settings.agents.txt +3 -3
- package/dist/web/settings/agents/__next.settings.txt +5 -5
- package/dist/web/settings/agents.html +1 -1
- package/dist/web/settings/agents.txt +35 -34
- package/dist/web/settings/mcps/__next._full.txt +35 -34
- package/dist/web/settings/mcps/__next._head.txt +4 -4
- package/dist/web/settings/mcps/__next._index.txt +13 -13
- package/dist/web/settings/mcps/__next._tree.txt +2 -2
- package/dist/web/settings/mcps/__next.settings.mcps.__PAGE__.txt +4 -4
- package/dist/web/settings/mcps/__next.settings.mcps.txt +3 -3
- package/dist/web/settings/mcps/__next.settings.txt +5 -5
- package/dist/web/settings/mcps.html +1 -1
- package/dist/web/settings/mcps.txt +35 -34
- package/dist/web/settings/models/__next._full.txt +35 -34
- package/dist/web/settings/models/__next._head.txt +4 -4
- package/dist/web/settings/models/__next._index.txt +13 -13
- package/dist/web/settings/models/__next._tree.txt +2 -2
- package/dist/web/settings/models/__next.settings.models.__PAGE__.txt +4 -4
- package/dist/web/settings/models/__next.settings.models.txt +3 -3
- package/dist/web/settings/models/__next.settings.txt +5 -5
- package/dist/web/settings/models.html +1 -1
- package/dist/web/settings/models.txt +35 -34
- package/dist/web/settings/output-styles/__next._full.txt +43 -0
- package/dist/web/settings/output-styles/__next._head.txt +6 -0
- package/dist/web/settings/output-styles/__next._index.txt +15 -0
- package/dist/web/settings/output-styles/__next._tree.txt +8 -0
- package/dist/web/settings/output-styles/__next.settings.output-styles.__PAGE__.txt +9 -0
- package/dist/web/settings/output-styles/__next.settings.output-styles.txt +5 -0
- package/dist/web/settings/output-styles/__next.settings.txt +7 -0
- package/dist/web/settings/output-styles.html +1 -0
- package/dist/web/settings/output-styles.txt +43 -0
- package/dist/web/settings/prompts/__next._full.txt +35 -34
- package/dist/web/settings/prompts/__next._head.txt +4 -4
- package/dist/web/settings/prompts/__next._index.txt +13 -13
- package/dist/web/settings/prompts/__next._tree.txt +2 -2
- package/dist/web/settings/prompts/__next.settings.prompts.__PAGE__.txt +4 -4
- package/dist/web/settings/prompts/__next.settings.prompts.txt +3 -3
- package/dist/web/settings/prompts/__next.settings.txt +5 -5
- package/dist/web/settings/prompts.html +1 -1
- package/dist/web/settings/prompts.txt +35 -34
- package/dist/web/settings/providers/__next._full.txt +35 -34
- package/dist/web/settings/providers/__next._head.txt +4 -4
- package/dist/web/settings/providers/__next._index.txt +13 -13
- package/dist/web/settings/providers/__next._tree.txt +2 -2
- package/dist/web/settings/providers/__next.settings.providers.__PAGE__.txt +4 -4
- package/dist/web/settings/providers/__next.settings.providers.txt +3 -3
- package/dist/web/settings/providers/__next.settings.txt +5 -5
- package/dist/web/settings/providers.html +1 -1
- package/dist/web/settings/providers.txt +35 -34
- package/dist/web/settings/skills/__next._full.txt +35 -34
- package/dist/web/settings/skills/__next._head.txt +4 -4
- package/dist/web/settings/skills/__next._index.txt +13 -13
- package/dist/web/settings/skills/__next._tree.txt +2 -2
- package/dist/web/settings/skills/__next.settings.skills.__PAGE__.txt +4 -4
- package/dist/web/settings/skills/__next.settings.skills.txt +3 -3
- package/dist/web/settings/skills/__next.settings.txt +5 -5
- package/dist/web/settings/skills.html +1 -1
- package/dist/web/settings/skills.txt +35 -34
- package/dist/web/settings.html +1 -1
- package/dist/web/settings.txt +32 -31
- package/dist/web/workflows/__next._full.txt +32 -30
- package/dist/web/workflows/__next._head.txt +4 -4
- package/dist/web/workflows/__next._index.txt +13 -13
- package/dist/web/workflows/__next._tree.txt +2 -2
- package/dist/web/workflows/__next.workflows.__PAGE__.txt +4 -4
- package/dist/web/workflows/__next.workflows.txt +3 -3
- package/dist/web/workflows.html +1 -1
- package/dist/web/workflows.txt +32 -30
- package/dist/web/workspace/_/__next._full.txt +30 -70
- package/dist/web/workspace/_/__next._head.txt +4 -4
- package/dist/web/workspace/_/__next._index.txt +13 -13
- package/dist/web/workspace/_/__next._tree.txt +2 -17
- package/dist/web/workspace/_/__next.workspace.$d$id.__PAGE__.txt +3 -18
- package/dist/web/workspace/_/__next.workspace.$d$id.txt +3 -3
- package/dist/web/workspace/_/__next.workspace.txt +3 -3
- package/dist/web/workspace/_.html +1 -1
- package/dist/web/workspace/_.txt +30 -70
- package/dist/web/workspaces/__next._full.txt +31 -29
- package/dist/web/workspaces/__next._head.txt +4 -4
- package/dist/web/workspaces/__next._index.txt +13 -13
- package/dist/web/workspaces/__next._tree.txt +2 -2
- package/dist/web/workspaces/__next.workspaces.__PAGE__.txt +4 -4
- package/dist/web/workspaces/__next.workspaces.txt +3 -3
- package/dist/web/workspaces.html +1 -1
- package/dist/web/workspaces.txt +31 -29
- package/dist/ws/agent-runner.js +55 -33
- package/dist/ws/message-parts.js +61 -2
- package/package.json +1 -1
- package/public/output-styles/carmack-mode.md +381 -0
- package/public/output-styles/codex-rigor-mode.md +114 -0
- package/public/output-styles/dhh-mode.md +265 -0
- package/public/output-styles/evan-you-mode.md +539 -0
- package/public/output-styles/index.json +37 -0
- package/public/output-styles/jobs-mode.md +369 -0
- package/public/output-styles/linus-mode.md +135 -0
- package/public/output-styles/uncle-bob-mode.md +221 -0
- package/public/prompt/andrej-karpathy-skills.md +65 -0
- package/public/prompt/claude-token-efficient-coding.md +35 -0
- package/public/prompt/index.json +12 -0
- package/public/skills/index.json +92 -0
- package/public/skills/planning-with-files/planning-with-files-zh/SKILL.md +243 -0
- package/public/skills/planning-with-files/planning-with-files-zh/scripts/check-complete.ps1 +44 -0
- package/public/skills/planning-with-files/planning-with-files-zh/scripts/check-complete.sh +46 -0
- package/public/skills/planning-with-files/planning-with-files-zh/scripts/init-session.ps1 +124 -0
- package/public/skills/planning-with-files/planning-with-files-zh/scripts/init-session.sh +124 -0
- package/public/skills/planning-with-files/planning-with-files-zh/scripts/session-catchup.py +438 -0
- package/public/skills/planning-with-files/planning-with-files-zh/templates/findings.md +29 -0
- package/public/skills/planning-with-files/planning-with-files-zh/templates/progress.md +40 -0
- package/public/skills/planning-with-files/planning-with-files-zh/templates/task_plan.md +58 -0
- package/public/skills/superpowers/brainstorming/SKILL.md +164 -0
- package/public/skills/superpowers/brainstorming/scripts/frame-template.html +214 -0
- package/public/skills/superpowers/brainstorming/scripts/helper.js +88 -0
- package/public/skills/superpowers/brainstorming/scripts/server.cjs +354 -0
- package/public/skills/superpowers/brainstorming/scripts/start-server.sh +148 -0
- package/public/skills/superpowers/brainstorming/scripts/stop-server.sh +56 -0
- package/public/skills/superpowers/brainstorming/spec-document-reviewer-prompt.md +49 -0
- package/public/skills/superpowers/brainstorming/visual-companion.md +287 -0
- package/public/skills/superpowers/dispatching-parallel-agents/SKILL.md +182 -0
- package/public/skills/superpowers/executing-plans/SKILL.md +70 -0
- package/public/skills/superpowers/finishing-a-development-branch/SKILL.md +251 -0
- package/public/skills/superpowers/receiving-code-review/SKILL.md +213 -0
- package/public/skills/superpowers/requesting-code-review/SKILL.md +103 -0
- package/public/skills/superpowers/requesting-code-review/code-reviewer.md +168 -0
- package/public/skills/superpowers/subagent-driven-development/SKILL.md +279 -0
- package/public/skills/superpowers/subagent-driven-development/code-quality-reviewer-prompt.md +25 -0
- package/public/skills/superpowers/subagent-driven-development/implementer-prompt.md +113 -0
- package/public/skills/superpowers/subagent-driven-development/spec-reviewer-prompt.md +61 -0
- package/public/skills/superpowers/systematic-debugging/CREATION-LOG.md +119 -0
- package/public/skills/superpowers/systematic-debugging/SKILL.md +296 -0
- package/public/skills/superpowers/systematic-debugging/condition-based-waiting-example.ts +158 -0
- package/public/skills/superpowers/systematic-debugging/condition-based-waiting.md +115 -0
- package/public/skills/superpowers/systematic-debugging/defense-in-depth.md +122 -0
- package/public/skills/superpowers/systematic-debugging/find-polluter.sh +63 -0
- package/public/skills/superpowers/systematic-debugging/root-cause-tracing.md +169 -0
- package/public/skills/superpowers/systematic-debugging/test-academic.md +14 -0
- package/public/skills/superpowers/systematic-debugging/test-pressure-1.md +58 -0
- package/public/skills/superpowers/systematic-debugging/test-pressure-2.md +68 -0
- package/public/skills/superpowers/systematic-debugging/test-pressure-3.md +69 -0
- package/public/skills/superpowers/test-driven-development/SKILL.md +371 -0
- package/public/skills/superpowers/test-driven-development/testing-anti-patterns.md +299 -0
- package/public/skills/superpowers/using-git-worktrees/SKILL.md +215 -0
- package/public/skills/superpowers/using-superpowers/SKILL.md +117 -0
- package/public/skills/superpowers/using-superpowers/references/codex-tools.md +59 -0
- package/public/skills/superpowers/using-superpowers/references/copilot-tools.md +42 -0
- package/public/skills/superpowers/using-superpowers/references/gemini-tools.md +51 -0
- package/public/skills/superpowers/verification-before-completion/SKILL.md +139 -0
- package/public/skills/superpowers/writing-plans/SKILL.md +152 -0
- package/public/skills/superpowers/writing-plans/plan-document-reviewer-prompt.md +49 -0
- package/public/skills/superpowers/writing-skills/SKILL.md +655 -0
- package/public/skills/superpowers/writing-skills/anthropic-best-practices.md +1150 -0
- package/public/skills/superpowers/writing-skills/examples/CLAUDE_MD_TESTING.md +189 -0
- package/public/skills/superpowers/writing-skills/graphviz-conventions.dot +172 -0
- package/public/skills/superpowers/writing-skills/persuasion-principles.md +187 -0
- package/public/skills/superpowers/writing-skills/render-graphs.js +168 -0
- package/public/skills/superpowers/writing-skills/testing-skills-with-subagents.md +384 -0
- package/dist/web/_next/static/chunks/0-1pn22sg~67u.js +0 -2
- package/dist/web/_next/static/chunks/01gi~q0c6ez6..js +0 -1
- package/dist/web/_next/static/chunks/03me5_ir..2ix.js +0 -1
- package/dist/web/_next/static/chunks/05eu2fdixf7c9.js +0 -1
- package/dist/web/_next/static/chunks/0_-c.y2qq4ax4.js +0 -270
- package/dist/web/_next/static/chunks/0_g3irbniww6d.js +0 -3
- package/dist/web/_next/static/chunks/0cs830n97dgjy.js +0 -1
- package/dist/web/_next/static/chunks/0g-0n6glz_z6w.js +0 -1
- package/dist/web/_next/static/chunks/0gyede80jpy3n.js +0 -4
- package/dist/web/_next/static/chunks/0hrbuvzuxrjfl.js +0 -1
- package/dist/web/_next/static/chunks/0ju52ko_nh7gi.js +0 -1
- package/dist/web/_next/static/chunks/0mny8i81aenx3.js +0 -1
- package/dist/web/_next/static/chunks/0nsu~f3voe~0i.js +0 -5
- package/dist/web/_next/static/chunks/0sz8_nijfiz0p.js +0 -1
- package/dist/web/_next/static/chunks/0u7_qd9hzqwac.js +0 -1
- package/dist/web/_next/static/chunks/0w3o.7vi.dlm6.js +0 -1
- package/dist/web/_next/static/chunks/0wv0h27jafag4.js +0 -1
- package/dist/web/_next/static/chunks/0wwvc4zc2q6bn.js +0 -1
- package/dist/web/_next/static/chunks/0x4b-a2ixww6m.js +0 -1
- package/dist/web/_next/static/chunks/0xwqf.llmm_u2.js +0 -31
- package/dist/web/_next/static/chunks/0~w6ugk9s5p-h.css +0 -1
- package/dist/web/_next/static/chunks/125nunjfj2fj0.js +0 -1
- package/dist/web/_next/static/chunks/1285yqy_oirb-.js +0 -1
- package/dist/web/_next/static/chunks/13ess~4pdmxma.js +0 -1
- package/dist/web/_next/static/chunks/14n8i2xz4_y-e.js +0 -1
- package/public/avatars/1777813826407-bea0ja-minimax.svg +0 -1
- package/public/avatars/1777813967088-3xlvd0-minimax.svg +0 -1
- package/public/avatars/1777814041714-yp0qeq-minimax.svg +0 -1
- package/public/avatars/1777904986095-rg26je-icon.png +0 -0
- package/public/avatars/1778953228323-5je54x-user.jpg +0 -0
- package/public/avatars/1778954057880-g01q6y-user.jpg +0 -0
- /package/dist/web/_next/static/{HUlYEknPhyW7dRmJ5mFdG → OoXAsPtrUWjC1l898FSvI}/_buildManifest.js +0 -0
- /package/dist/web/_next/static/{HUlYEknPhyW7dRmJ5mFdG → OoXAsPtrUWjC1l898FSvI}/_clientMiddlewareManifest.js +0 -0
- /package/dist/web/_next/static/{HUlYEknPhyW7dRmJ5mFdG → OoXAsPtrUWjC1l898FSvI}/_ssgManifest.js +0 -0
- /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,905724,e=>{"use strict";let t=(0,e.i(433721).default)("file-text",[["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:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);e.s(["default",0,t])},989484,e=>{"use strict";var t=e.i(905724);e.s(["FileText",()=>t.default])},799543,(e,t,s)=>{t.exports=e.r(233331)},767467,e=>{"use strict";let t=(0,e.i(433721).default)("arrow-left",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);e.s(["ArrowLeft",0,t],767467)},977694,e=>{"use strict";let t=(0,e.i(433721).default)("rocket",[["path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5",key:"qeys4"}],["path",{d:"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09",key:"u4xsad"}],["path",{d:"M9 12a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.4 22.4 0 0 1-4 2z",key:"676m9"}],["path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 .05 5 .05",key:"92ym6u"}]]);e.s(["Rocket",0,t],977694)},401058,e=>{"use strict";let t=(0,e.i(433721).default)("ellipsis-vertical",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"12",cy:"5",r:"1",key:"gxeob9"}],["circle",{cx:"12",cy:"19",r:"1",key:"lyex9k"}]]);e.s(["MoreVertical",0,t],401058)},239340,e=>{"use strict";var t=e.i(344180),s=e.i(209988),n=e.i(260218),i=e.i(611176),a=e.i(972846),r=e.i(465458);e.s(["AgentPickerDialog",0,function({open:e,onClose:o,onConfirm:l,title:c,description:d,agents:u,selected:p,onToggle:m,cancelText:f,confirmText:x,loading:g}){return(0,t.jsx)(s.Dialog,{open:e,onOpenChange:e=>{e||o()},children:(0,t.jsxs)(s.DialogContent,{className:"sm:max-w-sm flex flex-col gap-0 overflow-hidden p-0",children:[(0,t.jsxs)(s.DialogHeader,{className:"shrink-0 px-6 py-4",children:[(0,t.jsx)(s.DialogTitle,{children:c}),d&&(0,t.jsx)(s.DialogDescription,{children:d})]}),(0,t.jsxs)("div",{className:"min-h-0 flex-1 pb-2 overflow-y-auto px-6 space-y-3",children:[(0,t.jsx)("div",{className:"space-y-0.5",children:u.map(e=>(0,t.jsxs)("button",{type:"button",onClick:()=>m(e.id),className:"flex items-center gap-2 w-full px-2 py-1.5 rounded-md hover:bg-muted text-left text-sm transition-colors",children:[(0,t.jsx)(i.AgentIcon,{agentId:e.id,name:e.name,avatarUrl:e.avatarUrl,className:"size-5 rounded-full"}),(0,t.jsxs)("span",{className:"min-w-0 flex-1",children:[(0,t.jsx)("span",{className:"block truncate",children:e.name}),e.description&&(0,t.jsx)("span",{className:"block truncate text-xs text-muted-foreground",children:e.description})]}),(0,t.jsx)("div",{className:(0,r.cn)("flex items-center justify-center size-4 rounded border shrink-0",p.includes(e.id)?"bg-primary border-primary text-primary-foreground":"border-input")})]},e.id))}),p.length>0&&(0,t.jsx)("div",{className:"flex flex-wrap gap-1.5",children:p.map(e=>{let s=u.find(t=>t.id===e);return(0,t.jsxs)("span",{className:"inline-flex items-center gap-1 rounded-md bg-muted px-2 py-0.5 text-xs max-w-[160px] min-w-0",children:[(0,t.jsx)(i.AgentIcon,{agentId:e,name:s?.name,avatarUrl:s?.avatarUrl,className:"size-3.5 rounded-full shrink-0"}),(0,t.jsx)("span",{className:"truncate",children:s?.name||e}),(0,t.jsx)("button",{type:"button",onClick:()=>m(e),className:"hover:text-destructive shrink-0",children:(0,t.jsx)(a.X,{className:"size-3"})})]},e)})})]}),(0,t.jsxs)("div",{className:"shrink-0 flex justify-end gap-2 border-t px-6 py-4",children:[(0,t.jsx)(n.Button,{variant:"outline",onClick:o,children:f||"Cancel"}),(0,t.jsx)(n.Button,{onClick:l,disabled:g||0===p.length,children:x||"Confirm"})]})]})})}])},144988,e=>{"use strict";let t=(0,e.i(433721).default)("file",[["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:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}]]);e.s(["default",0,t])},193251,e=>{"use strict";let t=(0,e.i(433721).default)("download",[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]]);e.s(["Download",0,t],193251)},984178,e=>{"use strict";var t=e.i(144988);e.s(["FileIcon",()=>t.default])},513501,e=>{"use strict";let t=(0,e.i(433721).default)("store",[["path",{d:"M15 21v-5a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v5",key:"slp6dd"}],["path",{d:"M17.774 10.31a1.12 1.12 0 0 0-1.549 0 2.5 2.5 0 0 1-3.451 0 1.12 1.12 0 0 0-1.548 0 2.5 2.5 0 0 1-3.452 0 1.12 1.12 0 0 0-1.549 0 2.5 2.5 0 0 1-3.77-3.248l2.889-4.184A2 2 0 0 1 7 2h10a2 2 0 0 1 1.653.873l2.895 4.192a2.5 2.5 0 0 1-3.774 3.244",key:"o0xfot"}],["path",{d:"M4 10.95V19a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8.05",key:"wn3emo"}]]);e.s(["Store",0,t],513501)},996652,e=>{"use strict";var t,s=e.i(344180);e.s([],739605),e.i(739605);var n=e.i(764556),i=e.i(166392),a=e.i(538501),r=e.i(427396),o=e.i(974578),l=e.i(389124),c=e.i(107164);e.i(8890);var d=e.i(267805);let u=n.createContext(void 0);function p(e){let t=n.useContext(u);if(void 0===t&&!e)throw Error((0,d.default)(47));return t}var m=e.i(106206),f=e.i(493696),x=e.i(332976),g=e.i(232449),h=e.i(549154),v=e.i(130522),j=e.i(742665),S=e.i(695011),y=e.i(561213),b=e.i(576487);let C={...S.popupStoreSelectors,disabled:(0,x.createSelector)(e=>e.disabled),instantType:(0,x.createSelector)(e=>e.instantType),openMethod:(0,x.createSelector)(e=>e.openMethod),openChangeReason:(0,x.createSelector)(e=>e.openChangeReason),modal:(0,x.createSelector)(e=>e.modal),focusManagerModal:(0,x.createSelector)(e=>e.focusManagerModal),stickIfOpen:(0,x.createSelector)(e=>e.stickIfOpen),titleElementId:(0,x.createSelector)(e=>e.titleElementId),descriptionElementId:(0,x.createSelector)(e=>e.descriptionElementId),openOnHover:(0,x.createSelector)(e=>e.openOnHover),closeDelay:(0,x.createSelector)(e=>e.closeDelay),hasViewport:(0,x.createSelector)(e=>e.hasViewport)};class N extends f.ReactStore{constructor(e){const t={...(0,S.createInitialPopupStoreState)(),disabled:!1,modal:!1,focusManagerModal:!1,instantType:void 0,openMethod:null,openChangeReason:null,titleElementId:void 0,descriptionElementId:void 0,stickIfOpen:!0,nested:!1,openOnHover:!1,closeDelay:0,hasViewport:!1,...e};t.open&&e?.mounted===void 0&&(t.mounted=!0),super(t,{popupRef:n.createRef(),backdropRef:n.createRef(),internalBackdropRef:n.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerFocusTargetRef:n.createRef(),beforeContentFocusGuardRef:n.createRef(),stickIfOpenTimeout:new g.Timeout,triggerElements:new y.PopupTriggerMap},C)}setOpen=(e,t)=>{let s=t.reason===j.REASONS.triggerHover,n=t.reason===j.REASONS.triggerPress&&0===t.event.detail,i=!e&&(t.reason===j.REASONS.escapeKey||null==t.reason);if(t.preventUnmountOnClose=()=>{this.set("preventUnmountingOnClose",!0)},this.context.onOpenChange?.(e,t),t.isCanceled)return;this.state.floatingRootContext.dispatchOpenChange(e,t);let a=()=>{let s={open:e,openChangeReason:t.reason},n=t.trigger?.id??null;(n||e)&&(s.activeTriggerId=n,s.activeTriggerElement=t.trigger??null),this.update(s)};s?(this.set("stickIfOpen",!0),this.context.stickIfOpenTimeout.start(b.PATIENT_CLICK_THRESHOLD,()=>{this.set("stickIfOpen",!1)}),m.flushSync(a)):a(),n||i?this.set("instantType",n?"click":"dismiss"):t.reason===j.REASONS.focusOut?this.set("instantType","focus"):this.set("instantType",void 0)};static useStore(e,t){let s=(0,h.useRefWithInit)(()=>new N(t)).current,n=e??s;return(0,v.useOnMount)(s.disposeEffect),n}disposeEffect=()=>this.context.stickIfOpenTimeout.disposeEffect()}var w=e.i(602453),k=e.i(279501),R=e.i(564846);function T({props:e}){let{children:t,open:d,defaultOpen:p=!1,onOpenChange:m,onOpenChangeComplete:f,modal:x=!1,handle:g,triggerId:h,defaultTriggerId:v=null}=e,S=N.useStore(g?.store,{modal:x,open:p,openProp:d,activeTriggerId:v,triggerIdProp:h});(0,i.useOnFirstRender)(()=>{void 0===d&&!1===S.state.open&&!0===p&&S.update({open:!0,activeTriggerId:v})}),S.useControlledProp("openProp",d),S.useControlledProp("triggerIdProp",h);let y=S.useState("open"),b=S.useState("payload");S.useContextCallback("onOpenChange",m),S.useContextCallback("onOpenChangeComplete",f);let{openMethod:C,triggerProps:O}=(0,R.useOpenInteractionType)(y);(0,k.useImplicitActiveTrigger)(S);let{forceUnmount:E}=(0,k.useOpenStateTransitions)(y,S,()=>{S.update({stickIfOpen:!0,openChangeReason:null})});n.useEffect(()=>{y||S.context.stickIfOpenTimeout.clear()},[S,y]);let I=n.useCallback(()=>{S.setOpen(!1,(0,w.createChangeEventDetails)(j.REASONS.imperativeAction))},[S]);n.useImperativeHandle(e.actionsRef,()=>({unmount:E,close:I}),[E,I]);let M=(0,c.useSyncedFloatingRootContext)({popupStore:S,onOpenChange:S.setOpen}),P=(0,a.useDismiss)(M,{outsidePressEvent:{mouse:"trap-focus"===x?"sloppy":"intentional",touch:"sloppy"}}),D=(0,o.useRole)(M),{getReferenceProps:F,getFloatingProps:A,getTriggerProps:z}=(0,r.useInteractions)([P,D]),H=n.useMemo(()=>F(O),[F,O]),L=n.useMemo(()=>z(O),[z,O]),B=n.useMemo(()=>A(),[A]);S.useSyncedValues({modal:x,openMethod:C,activeTriggerProps:H,inactiveTriggerProps:L,popupProps:B,floatingRootContext:M,nested:null!=(0,l.useFloatingParentNodeId)()});let U=n.useMemo(()=>({store:S}),[S]);return(0,s.jsx)(u.Provider,{value:U,children:"function"==typeof t?t({payload:b}):t})}var O=e.i(931709),E=e.i(817955),I=e.i(969490),M=e.i(499198),P=e.i(934940),D=e.i(480283),F=e.i(139236),A=e.i(601957),z=e.i(660079);let H=n.forwardRef(function(e,t){let{render:i,className:a,disabled:o=!1,nativeButton:l=!0,handle:c,payload:u,openOnHover:m=!1,delay:f=300,closeDelay:x=0,id:g,style:h,...v}=e,S=p(!0),y=c?.store??S?.store;if(!y)throw Error((0,d.default)(74));let C=(0,F.useBaseUiId)(g),N=y.useState("isTriggerActive",C),w=y.useState("floatingRootContext"),R=y.useState("isOpenedByTrigger",C),T=n.useRef(null),{registerTrigger:H,isMountedByThisTrigger:L}=(0,k.useTriggerDataForwarding)(C,T,y,{payload:u,disabled:o,openOnHover:m,closeDelay:x}),B=y.useState("openChangeReason"),U=y.useState("stickIfOpen"),V=y.useState("openMethod"),$=y.useState("focusManagerModal"),G=(0,D.useHoverReferenceInteraction)(w,{enabled:null!=w&&m&&("touch"!==V||B!==j.REASONS.triggerPress),mouseOnly:!0,move:!1,handleClose:(0,M.safePolygon)(),restMs:f,delay:{close:x},triggerElementRef:T,isActiveTrigger:N,isClosing:()=>"ending"===y.select("transitionStatus")}),K=(0,P.useClick)(w,{enabled:null!=w,stickIfOpen:U}),_=(0,r.useInteractions)([K]),W=y.useState("triggerProps",L),{getButtonProps:J,buttonRef:q}=(0,O.useButton)({disabled:o,native:l}),X=n.useMemo(()=>({open:e=>e&&B===j.REASONS.triggerPress?E.pressableTriggerOpenStateMapping.open(e):E.triggerOpenStateMapping.open(e)}),[B]),Y=(0,I.useRenderElement)("button",e,{state:{disabled:o,open:R},ref:[q,t,H,T],props:[_.getReferenceProps(),G,W,{[b.CLICK_TRIGGER_IDENTIFIER]:"",id:C},v,J],stateAttributesMapping:X}),{preFocusGuardRef:Q,handlePreFocusGuardFocus:Z,handleFocusTargetFocus:ee}=(0,z.useTriggerFocusGuards)(y,T);return N&&!$?(0,s.jsxs)(n.Fragment,{children:[(0,s.jsx)(A.FocusGuard,{ref:Q,onFocus:Z}),(0,s.jsx)(n.Fragment,{children:Y},C),(0,s.jsx)(A.FocusGuard,{ref:y.context.triggerFocusTargetRef,onFocus:ee})]}):(0,s.jsx)(n.Fragment,{children:Y},C)});var L=e.i(128108);let B=n.createContext(void 0),U=n.forwardRef(function(e,t){let{keepMounted:n=!1,...i}=e,{store:a}=p();return a.useState("mounted")||n?(0,s.jsx)(B.Provider,{value:n,children:(0,s.jsx)(L.FloatingPortal,{ref:t,...i})}):null});var V=e.i(677822),$=e.i(277642);let G=n.createContext(void 0);function K(){let e=n.useContext(G);if(!e)throw Error((0,d.default)(46));return e}var _=e.i(576557),W=e.i(251817),J=e.i(427708),q=e.i(909852),X=e.i(263635),Y=e.i(900587);let Q=n.forwardRef(function(e,t){let{render:i,className:a,anchor:r,positionMethod:o="absolute",side:c="bottom",align:u="center",sideOffset:m=0,alignOffset:f=0,collisionBoundary:x="clipping-ancestors",collisionPadding:g=5,arrowPadding:h=5,sticky:v=!1,disableAnchorTracking:S=!1,collisionAvoidance:y=b.POPUP_COLLISION_AVOIDANCE,style:C,...N}=e,{store:w}=p(),k=function(){let e=n.useContext(B);if(void 0===e)throw Error((0,d.default)(45));return e}(),R=(0,l.useFloatingNodeId)(),T=w.useState("floatingRootContext"),O=w.useState("mounted"),E=w.useState("open"),I=w.useState("openChangeReason"),M=w.useState("activeTriggerElement"),P=w.useState("modal"),D=w.useState("openMethod"),F=w.useState("positionerElement"),A=w.useState("instantType"),z=w.useState("transitionStatus"),H=w.useState("hasViewport"),L=n.useRef(null),U=(0,J.useAnimationsFinished)(F,!1,!1),K=(0,_.useAnchorPositioning)({anchor:r,floatingRootContext:T,positionMethod:o,mounted:O,side:c,sideOffset:m,align:u,alignOffset:f,arrowPadding:h,collisionBoundary:x,collisionPadding:g,sticky:v,disableAnchorTracking:S,keepMounted:k,nodeId:R,collisionAvoidance:y,adaptiveOrigin:H?q.adaptiveOrigin:void 0}),Q=T.useState("domReferenceElement");(0,$.useIsoLayoutEffect)(()=>{let e=L.current;if(Q&&(L.current=Q),e&&Q&&Q!==e){w.set("instantType",void 0);let e=new AbortController;return U(()=>{w.set("instantType","trigger-change")},e.signal),()=>{e.abort()}}},[Q,U,w]);let Z={open:E,side:K.side,align:K.align,anchorHidden:K.anchorHidden,instant:A};(0,Y.useAnchoredPopupScrollLock)(E&&!0===P&&I!==j.REASONS.triggerHover,"touch"===D,F,M);let ee=n.useCallback(e=>{w.set("positionerElement",e)},[w]),et=(0,X.usePositioner)(e,Z,{styles:K.positionerStyles,transitionStatus:z,props:N,refs:[t,ee],hidden:!O,inert:!E});return(0,s.jsxs)(G.Provider,{value:K,children:[O&&!0===P&&I!==j.REASONS.triggerHover&&(0,s.jsx)(W.InternalBackdrop,{ref:w.context.internalBackdropRef,inert:(0,V.inertValue)(!E),cutout:M}),(0,s.jsx)(l.FloatingNode,{id:R,children:et})]})});var Z=e.i(92615),ee=e.i(583289),et=e.i(795914),es=e.i(282458),en=e.i(273598),ei=e.i(100229),ea=e.i(971109),er=e.i(328657),eo=e.i(29905);let el=n.createContext(void 0);function ec(e){let{value:t,children:n}=e;return(0,s.jsx)(el.Provider,{value:t,children:n})}let ed={...E.popupStateMapping,...es.transitionStatusMapping},eu=n.forwardRef(function(e,t){let{className:i,render:a,initialFocus:r,finalFocus:o,style:l,...c}=e,{store:d}=p(),u=K(),m=null!=(0,ea.useToolbarRootContext)(!0),{context:f,hasClosePart:x}=function(){let[e,t]=n.useState(0),s=(0,eo.useStableCallback)(()=>(t(e=>e+1),()=>{t(e=>Math.max(0,e-1))}));return{context:n.useMemo(()=>({register:s}),[s]),hasClosePart:e>0}}(),g=d.useState("open"),h=d.useState("openMethod"),v=d.useState("instantType"),S=d.useState("transitionStatus"),y=d.useState("popupProps"),b=d.useState("titleElementId"),C=d.useState("descriptionElementId"),N=d.useState("modal"),w=d.useState("mounted"),k=d.useState("openChangeReason"),R=d.useState("activeTriggerElement"),T=d.useState("floatingRootContext");(0,en.useOpenChangeComplete)({open:g,ref:d.context.popupRef,onComplete(){g&&d.context.onOpenChangeComplete?.(!0)}});let O=d.useState("disabled"),E=d.useState("openOnHover"),M=d.useState("closeDelay");(0,et.useHoverFloatingInteraction)(T,{enabled:E&&!O,closeDelay:M});let P=void 0===r?function(e){return"touch"!==e||d.context.popupRef.current}:r,D={open:g,side:u.side,align:u.align,instant:v,transitionStatus:S},F=!1!==N&&x;d.useSyncedValue("focusManagerModal",F);let A=n.useCallback(e=>{d.set("popupElement",e)},[d]),z=(0,I.useRenderElement)("div",e,{state:D,ref:[t,d.context.popupRef,A],props:[y,{"aria-labelledby":b,"aria-describedby":C,onKeyDown(e){m&&ei.COMPOSITE_KEYS.has(e.key)&&e.stopPropagation()}},(0,er.getDisabledMountTransitionStyles)(S),c],stateAttributesMapping:ed});return(0,s.jsx)(ee.FloatingFocusManager,{context:T,openInteractionType:h,modal:F,disabled:!w||k===j.REASONS.triggerHover,initialFocus:P,returnFocus:o,restoreFocus:"popup",previousFocusableElement:(0,Z.isHTMLElement)(R)?R:void 0,nextFocusableElement:d.context.triggerFocusTargetRef,beforeContentFocusGuardRef:d.context.beforeContentFocusGuardRef,children:(0,s.jsx)(ec,{value:f,children:z})})}),ep=n.forwardRef(function(e,t){let{className:s,render:n,style:i,...a}=e,{store:r}=p(),o=r.useState("open"),{arrowRef:l,side:c,align:d,arrowUncentered:u,arrowStyles:m}=K();return(0,I.useRenderElement)("div",e,{state:{open:o,side:c,align:d,uncentered:u},ref:[t,l],props:[{style:m,"aria-hidden":!0},a],stateAttributesMapping:E.popupStateMapping})}),em={...E.popupStateMapping,...es.transitionStatusMapping},ef=n.forwardRef(function(e,t){let{className:s,render:n,style:i,...a}=e,{store:r}=p(),o=r.useState("open"),l=r.useState("mounted"),c=r.useState("transitionStatus"),d=r.useState("openChangeReason");return(0,I.useRenderElement)("div",e,{state:{open:o,transitionStatus:c},ref:[r.context.backdropRef,t],props:[{role:"presentation",hidden:!l,style:{pointerEvents:d===j.REASONS.triggerHover?"none":void 0,userSelect:"none",WebkitUserSelect:"none"}},a],stateAttributesMapping:em})}),ex=n.forwardRef(function(e,t){let{render:s,className:n,style:i,...a}=e,{store:r}=p(),o=(0,F.useBaseUiId)(a.id);return(0,$.useIsoLayoutEffect)(()=>(r.set("titleElementId",o),()=>{r.set("titleElementId",void 0)}),[r,o]),(0,I.useRenderElement)("h2",e,{ref:t,props:[{id:o},a]})}),eg=n.forwardRef(function(e,t){let{render:s,className:n,style:i,...a}=e,{store:r}=p(),o=(0,F.useBaseUiId)(a.id);return(0,$.useIsoLayoutEffect)(()=>(r.set("descriptionElementId",o),()=>{r.set("descriptionElementId",void 0)}),[r,o]),(0,I.useRenderElement)("p",e,{ref:t,props:[{id:o},a]})}),eh=n.forwardRef(function(e,t){let s,{render:i,className:a,disabled:r=!1,nativeButton:o=!0,style:l,...c}=e,{buttonRef:d,getButtonProps:u}=(0,O.useButton)({disabled:r,focusableWhenDisabled:!1,native:o}),{store:m}=p();return s=n.useContext(el),(0,$.useIsoLayoutEffect)(()=>s?.register(),[s]),(0,I.useRenderElement)("button",e,{ref:[t,d],props:[{onClick(e){m.setOpen(!1,(0,w.createChangeEventDetails)(j.REASONS.closePress,e.nativeEvent,e.currentTarget))}},c,u]})}),ev=((t={}).popupWidth="--popup-width",t.popupHeight="--popup-height",t);var ej=e.i(3310);let eS={activationDirection:e=>e?{"data-activation-direction":e}:null},ey=n.forwardRef(function(e,t){let{render:s,className:n,style:i,children:a,...r}=e,{store:o}=p(),{side:l}=K(),c=o.useState("instantType"),{children:d,state:u}=(0,ej.usePopupViewport)({store:o,side:l,cssVars:ev,children:a}),m={activationDirection:u.activationDirection,transitioning:u.transitioning,instant:c};return(0,I.useRenderElement)("div",e,{state:m,ref:t,props:[r,{children:d}],stateAttributesMapping:eS})});class eb{constructor(){this.store=new N}open(e){let t=e?this.store.context.triggerElements.getById(e)??void 0:void 0;if(e&&!t)throw Error((0,d.default)(80,e));this.store.setOpen(!0,(0,w.createChangeEventDetails)(j.REASONS.imperativeAction,void 0,t))}close(){this.store.setOpen(!1,(0,w.createChangeEventDetails)(j.REASONS.imperativeAction,void 0,void 0))}get isOpen(){return this.store.state.open}}e.s(["Arrow",0,ep,"Backdrop",0,ef,"Close",0,eh,"Description",0,eg,"Handle",0,eb,"Popup",0,eu,"Portal",0,U,"Positioner",0,Q,"Root",0,function(e){return p(!0)?(0,s.jsx)(T,{props:e}):(0,s.jsx)(l.FloatingTree,{children:(0,s.jsx)(T,{props:e})})},"Title",0,ex,"Trigger",0,H,"Viewport",0,ey,"createHandle",0,function(){return new eb}],631858);var eC=e.i(631858),eC=eC,eN=e.i(465458);e.s(["Popover",0,function({...e}){return(0,s.jsx)(eC.Root,{"data-slot":"popover",...e})},"PopoverContent",0,function({className:e,align:t="center",alignOffset:n=0,side:i="bottom",sideOffset:a=4,...r}){return(0,s.jsx)(eC.Portal,{children:(0,s.jsx)(eC.Positioner,{align:t,alignOffset:n,side:i,sideOffset:a,className:"isolate z-50",children:(0,s.jsx)(eC.Popup,{"data-slot":"popover-content",className:(0,eN.cn)("z-50 flex w-72 origin-(--transform-origin) flex-col gap-2.5 rounded-lg bg-popover p-2.5 text-sm text-popover-foreground shadow-md ring-1 ring-foreground/10 outline-hidden duration-100 data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",e),...r})})})},"PopoverTrigger",0,function({...e}){return(0,s.jsx)(eC.Trigger,{"data-slot":"popover-trigger",...e})}],996652)},750012,e=>{"use strict";let t=(0,e.i(433721).default)("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]);e.s(["default",0,t])},887354,e=>{"use strict";var t=e.i(750012);e.s(["Search",()=>t.default])},460578,e=>{"use strict";var t=e.i(344180),s=e.i(764556),n=e.i(898822),i=e.i(129981),a=e.i(972846),r=e.i(984178),o=e.i(465458);let l=0;e.s(["FileUpload",0,function({value:e=[],onChange:c,accept:d,maxFiles:u=0,maxSize:p,disabled:m=!1,className:f,placeholder:x}){let[g,h]=(0,s.useState)(null),v=(0,s.useCallback)((t,s)=>{if(h(null),s.length>0){let e=s[0].errors[0]?.message;e&&h(e)}if(0===t.length)return;let n=t.map(e=>{let t={id:`upload-${++l}`,file:e};return e.type.startsWith("image/")&&(t.preview=URL.createObjectURL(e)),t}),i=u>0?[...e,...n].slice(0,u):[...e,...n];c?.(i)},[e,c,u]),j=(0,s.useCallback)(t=>{let s=e.find(e=>e.id===t);s?.preview&&URL.revokeObjectURL(s.preview),c?.(e.filter(e=>e.id!==t))},[e,c]),{getRootProps:S,getInputProps:y,isDragActive:b}=(0,n.useDropzone)({onDrop:v,accept:d,maxFiles:u||void 0,maxSize:p,disabled:m,noClick:!1});return(0,t.jsxs)("div",{className:(0,o.cn)("space-y-3",f),children:[(0,t.jsxs)("div",{...S(),className:(0,o.cn)("relative flex flex-col items-center justify-center gap-2 rounded-xl border-2 border-dashed px-6 py-8 transition-colors cursor-pointer",b?"border-primary bg-primary/5":"border-border hover:border-primary/50 hover:bg-accent/50",m&&"pointer-events-none opacity-50"),children:[(0,t.jsx)("input",{...y()}),(0,t.jsx)(i.Upload,{className:"size-8 text-muted-foreground"}),(0,t.jsxs)("div",{className:"text-center",children:[(0,t.jsx)("p",{className:"text-sm font-medium",children:x??(b?"松开即可上传":"拖拽文件到此处,或点击选择")}),!b&&(0,t.jsxs)("p",{className:"mt-1 text-xs text-muted-foreground",children:["支持多文件",p?`,单文件最大 ${(p/1024/1024).toFixed(0)}MB`:""]})]})]}),g&&(0,t.jsx)("p",{className:"text-xs text-destructive",children:g}),e.length>0&&(0,t.jsx)("div",{className:"flex flex-col gap-2",children:e.map(e=>{var s;return(0,t.jsxs)("div",{className:"flex items-center gap-3 rounded-lg border border-border bg-background px-3 py-2 overflow-hidden",children:[e.preview?(0,t.jsx)("img",{src:e.preview,alt:"",className:"size-10 rounded-md object-cover"}):(0,t.jsx)("div",{className:"flex size-10 items-center justify-center rounded-md bg-muted",children:(0,t.jsx)(r.FileIcon,{className:"size-5 text-muted-foreground"})}),(0,t.jsxs)("div",{className:"w-0 flex-1",children:[(0,t.jsx)("p",{className:"truncate text-sm",children:e.file.name}),(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:(s=e.file.size)<1024?`${s} B`:s<1048576?`${(s/1024).toFixed(1)} KB`:`${(s/1024/1024).toFixed(1)} MB`})]}),(0,t.jsx)("button",{type:"button",onClick:t=>{t.stopPropagation(),j(e.id)},className:"flex size-7 items-center justify-center rounded-md hover:bg-accent transition-colors",children:(0,t.jsx)(a.X,{className:"size-4 text-muted-foreground"})})]},e.id)})})]})}])},756638,e=>{"use strict";var t=e.i(344180),s=e.i(764556),n=e.i(244073),i=e.i(887836),a=e.i(209988),r=e.i(260218),o=e.i(681622),l=e.i(191118),c=e.i(239340),d=e.i(460578),u=e.i(996652),p=e.i(917955),m=e.i(887354),f=e.i(401058),x=e.i(137340),g=e.i(977694),h=e.i(111343),v=e.i(953700),j=e.i(426022),S=e.i(129981),y=e.i(193251),b=e.i(513501),C=e.i(989484);let N=(0,i.default)(()=>e.A(863812).then(e=>e.default),{loadableGenerated:{modules:[158480]},ssr:!1,loading:()=>(0,t.jsx)("div",{className:"flex items-center justify-center h-full text-muted-foreground text-sm",children:"Loading editor..."})});e.s(["PromptsDialog",0,function({open:e,onOpenChange:i,standalone:w}){let k=(0,n.useTranslations)("prompts"),R=(0,n.useTranslations)("common"),[T,O]=(0,s.useState)("local"),[E,I]=(0,s.useState)([]),[M,P]=(0,s.useState)([]),[D,F]=(0,s.useState)(!1),[A,z]=(0,s.useState)(""),[H,L]=(0,s.useState)([]),[B,U]=(0,s.useState)(!1),[V,$]=(0,s.useState)(new Set),[G,K]=(0,s.useState)(!1),[_,W]=(0,s.useState)([]),[J,q]=(0,s.useState)(null),[X,Y]=(0,s.useState)([]),[Q,Z]=(0,s.useState)(!1),[ee,et]=(0,s.useState)(null),[es,en]=(0,s.useState)(!1),[ei,ea]=(0,s.useState)(""),[er,eo]=(0,s.useState)(""),[el,ec]=(0,s.useState)(!1),ed=(0,s.useCallback)(async()=>{F(!0);try{let e=await fetch("/api/prompt-templates");e.ok&&I(await e.json())}catch{}F(!1)},[]),eu=(0,s.useCallback)(async()=>{try{let e=await fetch("/api/prompt-templates/agents");e.ok&&P(await e.json())}catch{}},[]),ep=(0,s.useCallback)(async()=>{U(!0);try{let e=await fetch("/public/prompt/index.json");e.ok&&L(await e.json())}catch{}U(!1)},[]);(0,s.useEffect)(()=>{(e||w)&&(ed(),eu(),ep())},[e,w,ed,eu,ep]);let em=new Set(E.filter(e=>e.storeId).map(e=>e.storeId)),ef=async()=>{if(0!==_.length){if(1===_.length){let e=await _[0].file.text(),t=_[0].file.name.replace(/\.(md|txt|markdown)$/i,"");W([]),K(!1),et(null),en(!0),ea(t),eo(e);return}for(let e of _){let t=await e.file.text(),s=e.file.name.replace(/\.(md|txt|markdown)$/i,"");await fetch("/api/prompt-templates",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:s,content:t})})}W([]),K(!1),ed()}},ex=async e=>{if(!(em.has(e.id)||V.has(e.id))){$(t=>new Set(t).add(e.id));try{let t=await fetch(`/public/prompt/${e.filename}`);if(!t.ok)return;let s=await t.text(),n=await fetch("/api/prompt-templates",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:e.name,content:s,storeId:e.id})});if(n.ok){let e=await n.json();I(t=>[...t,e])}}catch{}$(t=>{let s=new Set(t);return s.delete(e.id),s})}},eg=()=>{et(null),en(!1),ea(""),eo("")},eh=async()=>{if(ei.trim()&&er.trim()){ec(!0);try{if(ee){let e=await fetch(`/api/prompt-templates/${ee.id}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:ei,content:er})});if(e.ok){let t=await e.json();I(e=>e.map(e=>e.id===t.id?t:e)),eg()}}else{let e=await fetch("/api/prompt-templates",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:ei,content:er})});if(e.ok){let t=await e.json();I(e=>[...e,t]),eg()}}}catch{}ec(!1)}},ev=async e=>{try{(await fetch(`/api/prompt-templates/${e.id}`,{method:"DELETE"})).ok&&I(t=>t.filter(t=>t.id!==e.id))}catch{}},ej=async()=>{if(J&&0!==X.length){Z(!0);try{await fetch(`/api/prompt-templates/${J.id}/apply`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({agentIds:X})}),q(null)}catch{}Z(!1)}},eS=E.filter(e=>{if(!A)return!0;let t=A.toLowerCase();return e.name.toLowerCase().includes(t)||e.content.toLowerCase().includes(t)}),ey=H.filter(e=>{if(!A)return!0;let t=A.toLowerCase();return e.name.toLowerCase().includes(t)||e.id.toLowerCase().includes(t)}),eb=(w||e)&&!J&&!ee&&!es,eC=M.map(e=>({id:e.id,name:e.name,avatarUrl:e.avatarUrl,description:e.description})),eN=(0,t.jsx)("div",{className:"flex items-center gap-1 border-b border-border px-1",children:[["local",C.FileText,k("tabLocal")],["store",b.Store,k("tabStore")]].map(([e,s,n])=>(0,t.jsxs)("button",{onClick:()=>O(e),className:`flex items-center gap-1.5 px-3 py-2 text-sm font-medium border-b-2 transition-colors ${T===e?"border-primary text-foreground":"border-transparent text-muted-foreground hover:text-foreground"}`,children:[(0,t.jsx)(s,{className:"size-3.5"}),n]},e))}),ew=(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 ml-auto shrink-0 pt-2",children:[(0,t.jsxs)(u.Popover,{open:G,onOpenChange:K,children:[(0,t.jsx)(u.PopoverTrigger,{render:(0,t.jsxs)(r.Button,{variant:"outline",size:"sm",children:[(0,t.jsx)(S.Upload,{className:"size-3.5 mr-1"}),k("import")]})}),(0,t.jsx)(u.PopoverContent,{className:"w-80",align:"end",children:(0,t.jsxs)("div",{className:"space-y-3",children:[(0,t.jsx)("p",{className:"text-sm font-medium",children:k("importTitle")}),(0,t.jsx)(d.FileUpload,{value:_,onChange:W,accept:{"text/markdown":[".md",".txt"],"":[".md",".txt"]},placeholder:k("importPlaceholder"),maxFiles:10}),(0,t.jsx)(r.Button,{size:"sm",onClick:ef,disabled:0===_.length,className:"w-full",children:k("importConfirm")})]})})]}),(0,t.jsxs)(r.Button,{variant:"outline",size:"sm",onClick:()=>{et(null),en(!0),ea(""),eo("")},children:[(0,t.jsx)(v.Plus,{className:"size-3.5 mr-1"}),k("create")]})]}),(0,t.jsx)(l.ScrollArea,{className:"flex-1",children:D?(0,t.jsx)("div",{className:"flex items-center justify-center py-12 text-muted-foreground text-sm",children:R("loading")}):0===eS.length?(0,t.jsx)("div",{className:"flex items-center justify-center py-12 text-muted-foreground text-sm",children:k("empty")}):(0,t.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-3 pr-2",children:eS.map(e=>(0,t.jsx)("div",{className:"rounded-xl border border-border bg-background p-4 hover:bg-accent/30 transition-colors cursor-pointer",onClick:()=>{et(e),en(!1),ea(e.name),eo(e.content)},children:(0,t.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,t.jsxs)("div",{className:"flex items-start justify-between gap-2",children:[(0,t.jsxs)("div",{className:"flex items-center gap-1.5 min-w-0",children:[(0,t.jsx)(j.MessageSquare,{className:"size-3.5 text-muted-foreground shrink-0"}),(0,t.jsx)("span",{className:"font-medium text-sm truncate",children:e.name})]}),(0,t.jsxs)("div",{className:"flex items-center gap-0.5 shrink-0",onClick:e=>e.stopPropagation(),children:[(0,t.jsxs)(r.Button,{variant:"outline",size:"sm",className:"h-6 px-1.5 text-xs",onClick:()=>{q(e),Y([])},children:[(0,t.jsx)(g.Rocket,{className:"size-3 mr-0.5"}),k("apply")]}),(0,t.jsxs)(p.DropdownMenu,{children:[(0,t.jsx)(p.DropdownMenuTrigger,{render:(0,t.jsx)(r.Button,{variant:"ghost",size:"icon",className:"size-6"}),children:(0,t.jsx)(f.MoreVertical,{className:"size-3"})}),(0,t.jsx)(p.DropdownMenuContent,{align:"end",children:(0,t.jsxs)(p.DropdownMenuItem,{className:"text-destructive focus:text-destructive",onClick:()=>ev(e),children:[(0,t.jsx)(x.Trash2,{className:"size-3 mr-1.5"}),k("delete")]})})]})]})]}),(0,t.jsx)("p",{className:"text-xs text-muted-foreground line-clamp-3",children:e.content.slice(0,200).replace(/^#\s+/,"")})]})},e.id))})})]}),ek=(0,t.jsx)(l.ScrollArea,{className:"flex-1",children:B?(0,t.jsx)("div",{className:"flex items-center justify-center py-12 text-muted-foreground text-sm",children:R("loading")}):0===ey.length?(0,t.jsx)("div",{className:"flex items-center justify-center py-12 text-muted-foreground text-sm",children:k("storeEmpty")}):(0,t.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-3 pr-2",children:ey.map(e=>{let s=em.has(e.id),n=V.has(e.id);return(0,t.jsx)("div",{className:"rounded-xl border border-border bg-background p-4 hover:bg-accent/30 transition-colors",children:(0,t.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,t.jsxs)("div",{className:"flex items-start justify-between gap-2",children:[(0,t.jsxs)("div",{className:"flex items-center gap-1.5 min-w-0",children:[(0,t.jsx)(b.Store,{className:"size-3.5 text-muted-foreground shrink-0"}),(0,t.jsx)("span",{className:"font-medium text-sm truncate",children:e.name})]}),(0,t.jsx)(r.Button,{variant:s?"ghost":"outline",size:"sm",className:"h-6 px-1.5 text-xs shrink-0",disabled:s||n,onClick:()=>ex(e),children:s?(0,t.jsx)(t.Fragment,{children:k("imported")}):n?(0,t.jsx)(t.Fragment,{children:k("importing")}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(y.Download,{className:"size-3 mr-0.5"}),k("importTo")]})})]}),(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:e.id})]})},e.id)})})}),eR=(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(a.DialogHeader,{children:(0,t.jsx)("div",{className:"flex items-center justify-between pr-8",children:(0,t.jsxs)("div",{className:"hidden md:block",children:[w?(0,t.jsx)("h2",{className:"text-base font-semibold",children:k("title")}):(0,t.jsx)(a.DialogTitle,{children:k("title")}),w?(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:k("description")}):(0,t.jsx)(a.DialogDescription,{children:k("description")})]})})}),eN,(0,t.jsx)("div",{className:"flex flex-1 min-h-0 gap-4 pt-2",children:(0,t.jsxs)("div",{className:"flex-1 min-w-0 flex flex-col gap-3",children:[(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)(m.Search,{className:"size-3.5 absolute left-2.5 top-1/2 -translate-y-1/2 text-muted-foreground"}),(0,t.jsx)(o.Input,{value:A,onChange:e=>z(e.target.value),placeholder:k("search"),className:"pl-8"})]}),"local"===T?ew:ek]})})]});return(0,t.jsxs)(t.Fragment,{children:[w&&eb&&(0,t.jsx)("div",{className:"h-full flex flex-col",children:eR}),!w&&(0,t.jsx)(a.Dialog,{open:eb,onOpenChange:i,children:(0,t.jsx)(a.DialogContent,{className:"!w-[80vw] !max-w-[80vw] !h-[80vh] flex flex-col",children:eR})}),(0,t.jsx)(a.Dialog,{open:!!ee||es,onOpenChange:e=>{e||eg()},children:(0,t.jsxs)(a.DialogContent,{className:"!w-[80vw] !max-w-[80vw] !h-[80vh] flex flex-col",children:[(0,t.jsx)(a.DialogHeader,{children:(0,t.jsxs)("div",{className:"flex items-center justify-between pr-8",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)(a.DialogTitle,{children:ee?k("editTitle",{name:ee.name}):k("createTitle")}),(0,t.jsx)(a.DialogDescription,{children:k("editDescription")})]}),(0,t.jsxs)(r.Button,{size:"sm",onClick:eh,disabled:el||!ei.trim()||!er.trim(),children:[(0,t.jsx)(h.Save,{className:"size-3.5 mr-1"}),R("save")]})]})}),(0,t.jsx)("div",{className:"space-y-3 pb-2",children:(0,t.jsx)(o.Input,{value:ei,onChange:e=>ea(e.target.value),placeholder:k("namePlaceholder")})}),(0,t.jsx)("div",{className:"flex-1 min-h-0",children:(0,t.jsx)(N,{height:"100%",language:"markdown",value:er,onChange:e=>eo(e||""),theme:"vs-dark",options:{fontSize:13,minimap:{enabled:!1},scrollBeyondLastLine:!1,padding:{top:8},renderLineHighlight:"gutter",wordWrap:"on"}})})]})}),(0,t.jsx)(c.AgentPickerDialog,{open:!!J,onClose:()=>q(null),onConfirm:ej,title:k("applyTitle",{name:J?.name||""}),description:k("applyDescription"),agents:eC,selected:X,onToggle:e=>Y(t=>t.includes(e)?t.filter(t=>t!==e):[...t,e]),cancelText:R("cancel"),confirmText:k("applyConfirm",{count:X.length}),loading:Q})]})}])}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,425024,e=>{"use strict";var t=e.i(650289),i=e.i(619122),n=e.i(770326),o=e.i(331139),r=e.i(4160),s=e.i(621826),a=e.i(608326),l=e.i(920374),c=e.i(951971);let d=s.Registry.as(r.Extensions.JSONContribution);class p{static _toSet(e){let t=new a.ExtensionIdentifierSet;for(let i=0,n=e.length;i<n;i++)t.add(e[i].description.identifier);return t}static compute(e,t){if(!e||!e.length)return new p(t,[]);if(!t||!t.length)return new p([],e);let i=this._toSet(e),n=this._toSet(t);return new p(t.filter(e=>!i.has(e.description.identifier)),e.filter(e=>!n.has(e.description.identifier)))}constructor(e,t){this.added=e,this.removed=t}}class u{constructor(e,t,i){this.name=e,this.defaultExtensionKind=t,this.canHandleResolver=i,this._handler=null,this._users=null,this._delta=null}setHandler(e){if(null!==this._handler)throw Error("Handler already set!");return this._handler=e,this._handle(),{dispose:()=>{this._handler=null}}}acceptUsers(e){this._delta=p.compute(this._users,e),this._users=e,this._handle()}_handle(){if(null!==this._handler&&null!==this._users&&null!==this._delta)try{this._handler(this._users,this._delta)}catch(e){(0,i.onUnexpectedError)(e)}}}let h={type:"string",enum:["ui","workspace"],enumDescriptions:[(0,t.localize)(14009,"UI extension kind. In a remote window, such extensions are enabled only when available on the local machine."),(0,t.localize)(14010,"Workspace extension kind. In a remote window, such extensions are enabled only when available on the remote.")]},g="vscode://schemas/vscode-extensions",f={properties:{engines:{type:"object",description:(0,t.localize)(14011,"Engine compatibility."),properties:{vscode:{type:"string",description:(0,t.localize)(14012,"For VS Code extensions, specifies the VS Code version that the extension is compatible with. Cannot be *. For example: ^0.10.5 indicates compatibility with a minimum VS Code version of 0.10.5."),default:"^1.22.0"}}},publisher:{description:(0,t.localize)(14013,"The publisher of the VS Code extension."),type:"string"},displayName:{description:(0,t.localize)(14014,"The display name for the extension used in the VS Code gallery."),type:"string"},categories:{description:(0,t.localize)(14015,"The categories used by the VS Code gallery to categorize the extension."),type:"array",uniqueItems:!0,items:{oneOf:[{type:"string",enum:a.EXTENSION_CATEGORIES},{type:"string",const:"Languages",deprecationMessage:(0,t.localize)(14016,"Use 'Programming Languages' instead")}]}},galleryBanner:{type:"object",description:(0,t.localize)(14017,"Banner used in the VS Code marketplace."),properties:{color:{description:(0,t.localize)(14018,"The banner color on the VS Code marketplace page header."),type:"string"},theme:{description:(0,t.localize)(14019,"The color theme for the font used in the banner."),type:"string",enum:["dark","light"]}}},contributes:{description:(0,t.localize)(14020,"All contributions of the VS Code extension represented by this package."),type:"object",properties:{},default:{}},preview:{type:"boolean",description:(0,t.localize)(14021,"Sets the extension to be flagged as a Preview in the Marketplace.")},enableProposedApi:{type:"boolean",deprecationMessage:(0,t.localize)(14022,"Use `enabledApiProposals` instead.")},enabledApiProposals:{markdownDescription:(0,t.localize)(14023,"Enable API proposals to try them out. Only valid **during development**. Extensions **cannot be published** with this property. For more details visit: https://code.visualstudio.com/api/advanced-topics/using-proposed-api"),type:"array",uniqueItems:!0,items:{type:"string",enum:Object.keys(c.allApiProposals).map(e=>e),markdownEnumDescriptions:Object.values(c.allApiProposals).map(e=>e.proposal)}},api:{markdownDescription:(0,t.localize)(14024,"Describe the API provided by this extension. For more details visit: https://code.visualstudio.com/api/advanced-topics/remote-extensions#handling-dependencies-with-remote-extensions"),type:"string",enum:["none"],enumDescriptions:[(0,t.localize)(14025,"Give up entirely the ability to export any APIs. This allows other extensions that depend on this extension to run in a separate extension host process or in a remote machine.")]},activationEvents:{description:(0,t.localize)(14026,"Activation events for the VS Code extension."),type:"array",items:{type:"string",defaultSnippets:[{label:"onWebviewPanel",description:(0,t.localize)(14027,"An activation event emmited when a webview is loaded of a certain viewType"),body:"onWebviewPanel:viewType"},{label:"onLanguage",description:(0,t.localize)(14028,"An activation event emitted whenever a file that resolves to the specified language gets opened."),body:"onLanguage:${1:languageId}"},{label:"onCommand",description:(0,t.localize)(14029,"An activation event emitted whenever the specified command gets invoked."),body:"onCommand:${2:commandId}"},{label:"onDebug",description:(0,t.localize)(14030,"An activation event emitted whenever a user is about to start debugging or about to setup debug configurations."),body:"onDebug"},{label:"onDebugInitialConfigurations",description:(0,t.localize)(14031,'An activation event emitted whenever a "launch.json" needs to be created (and all provideDebugConfigurations methods need to be called).'),body:"onDebugInitialConfigurations"},{label:"onDebugDynamicConfigurations",description:(0,t.localize)(14032,'An activation event emitted whenever a list of all debug configurations needs to be created (and all provideDebugConfigurations methods for the "dynamic" scope need to be called).'),body:"onDebugDynamicConfigurations"},{label:"onDebugResolve",description:(0,t.localize)(14033,"An activation event emitted whenever a debug session with the specific type is about to be launched (and a corresponding resolveDebugConfiguration method needs to be called)."),body:"onDebugResolve:${6:type}"},{label:"onDebugAdapterProtocolTracker",description:(0,t.localize)(14034,"An activation event emitted whenever a debug session with the specific type is about to be launched and a debug protocol tracker might be needed."),body:"onDebugAdapterProtocolTracker:${6:type}"},{label:"workspaceContains",description:(0,t.localize)(14035,"An activation event emitted whenever a folder is opened that contains at least a file matching the specified glob pattern."),body:"workspaceContains:${4:filePattern}"},{label:"onStartupFinished",description:(0,t.localize)(14036,"An activation event emitted after the start-up finished (after all `*` activated extensions have finished activating)."),body:"onStartupFinished"},{label:"onTaskType",description:(0,t.localize)(14037,"An activation event emitted whenever tasks of a certain type need to be listed or resolved."),body:"onTaskType:${1:taskType}"},{label:"onFileSystem",description:(0,t.localize)(14038,"An activation event emitted whenever a file or folder is accessed with the given scheme."),body:"onFileSystem:${1:scheme}"},{label:"onEditSession",description:(0,t.localize)(14039,"An activation event emitted whenever an edit session is accessed with the given scheme."),body:"onEditSession:${1:scheme}"},{label:"onSearch",description:(0,t.localize)(14040,"An activation event emitted whenever a search is started in the folder with the given scheme."),body:"onSearch:${7:scheme}"},{label:"onView",body:"onView:${5:viewId}",description:(0,t.localize)(14041,"An activation event emitted whenever the specified view is expanded.")},{label:"onUri",body:"onUri",description:(0,t.localize)(14042,"An activation event emitted whenever a system-wide Uri directed towards this extension is open.")},{label:"onOpenExternalUri",body:"onOpenExternalUri",description:(0,t.localize)(14043,"An activation event emitted whenever a external uri (such as an http or https link) is being opened.")},{label:"onCustomEditor",body:"onCustomEditor:${9:viewType}",description:(0,t.localize)(14044,"An activation event emitted whenever the specified custom editor becomes visible.")},{label:"onNotebook",body:"onNotebook:${1:type}",description:(0,t.localize)(14045,"An activation event emitted whenever the specified notebook document is opened.")},{label:"onAuthenticationRequest",body:"onAuthenticationRequest:${11:authenticationProviderId}",description:(0,t.localize)(14046,"An activation event emitted whenever sessions are requested from the specified authentication provider.")},{label:"onRenderer",description:(0,t.localize)(14047,"An activation event emitted whenever a notebook output renderer is used."),body:"onRenderer:${11:rendererId}"},{label:"onTerminalProfile",body:"onTerminalProfile:${1:terminalId}",description:(0,t.localize)(14048,"An activation event emitted when a specific terminal profile is launched.")},{label:"onTerminalQuickFixRequest",body:"onTerminalQuickFixRequest:${1:quickFixId}",description:(0,t.localize)(14049,"An activation event emitted when a command matches the selector associated with this ID")},{label:"onWalkthrough",body:"onWalkthrough:${1:walkthroughID}",description:(0,t.localize)(14050,"An activation event emitted when a specified walkthrough is opened.")},{label:"onIssueReporterOpened",body:"onIssueReporterOpened",description:(0,t.localize)(14051,"An activation event emitted when the issue reporter is opened.")},{label:"onChatParticipant",body:"onChatParticipant:${1:participantId}",description:(0,t.localize)(14052,"An activation event emitted when the specified chat participant is invoked.")},{label:"onLanguageModelChatProvider",body:"onLanguageModelChatProvider:${1:vendor}",description:(0,t.localize)(14053,"An activation event emitted when a chat model provider for the given vendor is requested.")},{label:"onLanguageModelTool",body:"onLanguageModelTool:${1:toolId}",description:(0,t.localize)(14054,"An activation event emitted when the specified language model tool is invoked.")},{label:"onTerminal",body:"onTerminal:{1:shellType}",description:(0,t.localize)(14055,"An activation event emitted when a terminal of the given shell type is opened.")},{label:"onTerminalShellIntegration",body:"onTerminalShellIntegration:${1:shellType}",description:(0,t.localize)(14056,"An activation event emitted when terminal shell integration is activated for the given shell type.")},{label:"onMcpCollection",description:(0,t.localize)(14057,"An activation event emitted whenver a tool from the MCP server is requested."),body:"onMcpCollection:${2:collectionId}"},{label:"*",description:(0,t.localize)(14058,"An activation event emitted on VS Code startup. To ensure a great end user experience, please use this activation event in your extension only when no other activation events combination works in your use-case."),body:"*"}]}},badges:{type:"array",description:(0,t.localize)(14059,"Array of badges to display in the sidebar of the Marketplace's extension page."),items:{type:"object",required:["url","href","description"],properties:{url:{type:"string",description:(0,t.localize)(14060,"Badge image URL.")},href:{type:"string",description:(0,t.localize)(14061,"Badge link.")},description:{type:"string",description:(0,t.localize)(14062,"Badge description.")}}}},markdown:{type:"string",description:(0,t.localize)(14063,"Controls the Markdown rendering engine used in the Marketplace. Either github (default) or standard."),enum:["github","standard"],default:"github"},qna:{default:"marketplace",description:(0,t.localize)(14064,"Controls the Q&A link in the Marketplace. Set to marketplace to enable the default Marketplace Q & A site. Set to a string to provide the URL of a custom Q & A site. Set to false to disable Q & A altogether."),anyOf:[{type:["string","boolean"],enum:["marketplace",!1]},{type:"string"}]},extensionDependencies:{description:(0,t.localize)(14065,"Dependencies to other extensions. The identifier of an extension is always ${publisher}.${name}. For example: vscode.csharp."),type:"array",uniqueItems:!0,items:{type:"string",pattern:o.EXTENSION_IDENTIFIER_PATTERN}},extensionPack:{description:(0,t.localize)(14066,"A set of extensions that can be installed together. The identifier of an extension is always ${publisher}.${name}. For example: vscode.csharp."),type:"array",uniqueItems:!0,items:{type:"string",pattern:o.EXTENSION_IDENTIFIER_PATTERN}},extensionKind:{description:(0,t.localize)(14067,"Define the kind of an extension. `ui` extensions are installed and run on the local machine while `workspace` extensions run on the remote."),type:"array",items:h,default:["workspace"],defaultSnippets:[{body:["ui"],description:(0,t.localize)(14068,"Define an extension which can run only on the local machine when connected to remote window.")},{body:["workspace"],description:(0,t.localize)(14069,"Define an extension which can run only on the remote machine when connected remote window.")},{body:["ui","workspace"],description:(0,t.localize)(14070,"Define an extension which can run on either side, with a preference towards running on the local machine.")},{body:["workspace","ui"],description:(0,t.localize)(14071,"Define an extension which can run on either side, with a preference towards running on the remote machine.")},{body:[],description:(0,t.localize)(14072,"Define an extension which cannot run in a remote context, neither on the local, nor on the remote machine.")}]},capabilities:{description:(0,t.localize)(14073,"Declare the set of supported capabilities by the extension."),type:"object",properties:{virtualWorkspaces:{description:(0,t.localize)(14074,"Declares whether the extension should be enabled in virtual workspaces. A virtual workspace is a workspace which is not backed by any on-disk resources. When false, this extension will be automatically disabled in virtual workspaces. Default is true."),type:["boolean","object"],defaultSnippets:[{label:"limited",body:{supported:"${1:limited}",description:"${2}"}},{label:"false",body:{supported:!1,description:"${2}"}}],default:(!0).valueOf,properties:{supported:{markdownDescription:(0,t.localize)(14075,"Declares the level of support for virtual workspaces by the extension."),type:["string","boolean"],enum:["limited",!0,!1],enumDescriptions:[(0,t.localize)(14076,"The extension will be enabled in virtual workspaces with some functionality disabled."),(0,t.localize)(14077,"The extension will be enabled in virtual workspaces with all functionality enabled."),(0,t.localize)(14078,"The extension will not be enabled in virtual workspaces.")]},description:{type:"string",markdownDescription:(0,t.localize)(14079,"A description of how virtual workspaces affects the extensions behavior and why it is needed. This only applies when `supported` is not `true`.")}}},untrustedWorkspaces:{description:(0,t.localize)(14080,"Declares how the extension should be handled in untrusted workspaces."),type:"object",required:["supported"],defaultSnippets:[{body:{supported:"${1:limited}",description:"${2}"}}],properties:{supported:{markdownDescription:(0,t.localize)(14081,"Declares the level of support for untrusted workspaces by the extension."),type:["string","boolean"],enum:["limited",!0,!1],enumDescriptions:[(0,t.localize)(14082,"The extension will be enabled in untrusted workspaces with some functionality disabled."),(0,t.localize)(14083,"The extension will be enabled in untrusted workspaces with all functionality enabled."),(0,t.localize)(14084,"The extension will not be enabled in untrusted workspaces.")]},restrictedConfigurations:{description:(0,t.localize)(14085,"A list of configuration keys contributed by the extension that should not use workspace values in untrusted workspaces."),type:"array",items:{type:"string"}},description:{type:"string",markdownDescription:(0,t.localize)(14086,"A description of how workspace trust affects the extensions behavior and why it is needed. This only applies when `supported` is not `true`.")}}}}},sponsor:{description:(0,t.localize)(14087,"Specify the location from where users can sponsor your extension."),type:"object",defaultSnippets:[{body:{url:"${1:https:}"}}],properties:{url:{description:(0,t.localize)(14088,"URL from where users can sponsor your extension. It must be a valid URL with a HTTP or HTTPS protocol. Example value: https://github.com/sponsors/nvaccess"),type:"string"}}},scripts:{type:"object",properties:{"vscode:prepublish":{description:(0,t.localize)(14089,"Script executed before the package is published as a VS Code extension."),type:"string"},"vscode:uninstall":{description:(0,t.localize)(14090,"Uninstall hook for VS Code extension. Script that gets executed when the extension is completely uninstalled from VS Code which is when VS Code is restarted (shutdown and start) after the extension is uninstalled. Only Node scripts are supported."),type:"string"}}},icon:{type:"string",description:(0,t.localize)(14091,"The path to a 128x128 pixel icon.")},l10n:{type:"string",description:(0,t.localize)(14092,"The relative path to a folder containing localization (bundle.l10n.*.json) files. Must be specified if you are using the vscode.l10n API.")},pricing:{type:"string",markdownDescription:(0,t.localize)(14093,"The pricing information for the extension. Can be Free (default) or Trial. For more details visit: https://code.visualstudio.com/api/working-with-extensions/publishing-extension#extension-pricing-label"),enum:["Free","Trial"],default:"Free"}}},m="ExtensionsRegistry";s.Registry.add(m,new class{constructor(){this._extensionPoints=new Map}registerExtensionPoint(e){if(this._extensionPoints.has(e.extensionPoint))throw Error("Duplicate extension point: "+e.extensionPoint);let t=new u(e.extensionPoint,e.defaultExtensionKind,e.canHandleResolver);return this._extensionPoints.set(e.extensionPoint,t),e.activationEventsGenerator&&l.ImplicitActivationEvents.register(e.extensionPoint,e.activationEventsGenerator),f.properties.contributes.properties[e.extensionPoint]=e.jsonSchema,d.registerSchema(g,f),t}getExtensionPoints(){return Array.from(this._extensionPoints.values())}});let y=s.Registry.as(m);d.registerSchema(g,f),d.registerSchema("vscode://schemas/vscode-product",{properties:{extensionEnabledApiProposals:{description:(0,t.localize)(14094,"API proposals that the respective extensions can freely use."),type:"object",properties:{},additionalProperties:{anyOf:[{type:"array",uniqueItems:!0,items:{type:"string",enum:Object.keys(c.allApiProposals),markdownEnumDescriptions:Object.values(c.allApiProposals).map(e=>e.proposal)}}]}}}}),e.s(["ExtensionMessageCollector",0,class{constructor(e,t,i){this._messageHandler=e,this._extension=t,this._extensionPointId=i}_msg(e,t){this._messageHandler({type:e,message:t,extensionId:this._extension.identifier,extensionPointId:this._extensionPointId})}error(e){this._msg(n.default.Error,e)}warn(e){this._msg(n.default.Warning,e)}info(e){this._msg(n.default.Info,e)}},"ExtensionsRegistry",0,y],425024)},888961,e=>{"use strict";var t,i=e.i(621826);(t||(t={})).ExtensionFeaturesRegistry="workbench.registry.extensionFeatures",i.Registry.add(t.ExtensionFeaturesRegistry,new class{constructor(){this.extensionFeatures=new Map}registerExtensionFeature(e){if(this.extensionFeatures.has(e.id))throw Error(`Extension feature with id '${e.id}' already exists`);return this.extensionFeatures.set(e.id,e),{dispose:()=>this.extensionFeatures.delete(e.id)}}getExtensionFeature(e){return this.extensionFeatures.get(e)}getExtensionFeatures(){return Array.from(this.extensionFeatures.values())}}),e.s(["Extensions",0,t])},695519,e=>{"use strict";var t=e.i(281482),i=e.i(650289),n=e.i(642897),o=e.i(693162);e.i(488259);var r=e.i(243431),s=e.i(731931),a=e.i(253642),l=e.i(652731),c=e.i(981399),d=e.i(425024);e.i(157255);var p=e.i(853457),u=e.i(611130),h=e.i(888961),g=e.i(621826),f=e.i(526097),m=e.i(454514),y=e.i(399119),v=e.i(535567);let b=d.ExtensionsRegistry.registerExtensionPoint({extensionPoint:"languages",jsonSchema:{description:(0,i.localize)(14155,"Contributes language declarations."),type:"array",items:{type:"object",defaultSnippets:[{body:{id:"${1:languageId}",aliases:["${2:label}"],extensions:["${3:extension}"],configuration:"./language-configuration.json"}}],properties:{id:{description:(0,i.localize)(14156,"ID of the language."),type:"string"},aliases:{description:(0,i.localize)(14157,"Name aliases for the language."),type:"array",items:{type:"string"}},extensions:{description:(0,i.localize)(14158,"File extensions associated to the language."),default:[".foo"],type:"array",items:{type:"string"}},filenames:{description:(0,i.localize)(14159,"File names associated to the language."),type:"array",items:{type:"string"}},filenamePatterns:{description:(0,i.localize)(14160,"File name glob patterns associated to the language."),type:"array",items:{type:"string"}},mimetypes:{description:(0,i.localize)(14161,"Mime types associated to the language."),type:"array",items:{type:"string"}},firstLine:{description:(0,i.localize)(14162,"A regular expression matching the first line of a file of the language."),type:"string"},configuration:{description:(0,i.localize)(14163,"A relative path to a file containing configuration options for the language."),type:"string",default:"./language-configuration.json"},icon:{type:"object",description:(0,i.localize)(14164,"A icon to use as file icon, if no icon theme provides one for the language."),properties:{light:{description:(0,i.localize)(14165,"Icon path when a light theme is used"),type:"string"},dark:{description:(0,i.localize)(14166,"Icon path when a dark theme is used"),type:"string"}}}}}},activationEventsGenerator:function*(e){for(let t of e)t.id&&t.configuration&&(yield`onLanguage:${t.id}`)}});class E extends u.Disposable{constructor(){super(...arguments),this.type="table"}shouldRender(e){return!!e.contributes?.languages}render(e){let t=e.contributes,n=t?.languages||[],o=[];for(let e of n)C(e)&&o.push({id:e.id,name:(e.aliases||[])[0]||e.id,extensions:e.extensions||[],hasGrammar:!1,hasSnippets:!1});let r=(0,m.index)(o,e=>e.id);return((t?.grammars||[]).forEach(e=>{if(!(0,v.isString)(e.language))return;let t=r[e.language];t?t.hasGrammar=!0:(r[(t={id:e.language,name:e.language,extensions:[],hasGrammar:!0,hasSnippets:!1}).id]=t,o.push(t))}),(t?.snippets||[]).forEach(e=>{if(!(0,v.isString)(e.language))return;let t=r[e.language];t?t.hasSnippets=!0:(r[(t={id:e.language,name:e.language,extensions:[],hasGrammar:!1,hasSnippets:!0}).id]=t,o.push(t))}),o.length)?{data:{headers:[(0,i.localize)(14167,"ID"),(0,i.localize)(14168,"Name"),(0,i.localize)(14169,"File Extensions"),(0,i.localize)(14170,"Grammar"),(0,i.localize)(14171,"Snippets")],rows:o.sort((e,t)=>e.id.localeCompare(t.id)).map(e=>[e.id,e.name,new y.MarkdownString().appendMarkdown(`${e.extensions.map(e=>`\`${e}\``).join(" ")}`),e.hasGrammar?"✔︎":"—",e.hasSnippets?"✔︎":"—"])},dispose:()=>{}}:{data:{headers:[],rows:[]},dispose:()=>{}}}}g.Registry.as(h.Extensions.ExtensionFeaturesRegistry).registerExtensionFeature({id:"languages",label:(0,i.localize)(14172,"Programming Languages"),access:{canToggle:!1},renderer:new f.SyncDescriptor(E)});let x=class extends r.LanguageService{constructor(e,t,n,r){super(n.verbose||n.isExtensionDevelopment||!n.isBuilt),this.logService=r,this._configurationService=t,this._extensionService=e,b.setHandler(e=>{let t=[];for(let n=0,r=e.length;n<r;n++){let r=e[n];if(!Array.isArray(r.value)){r.collector.error((0,i.localize)(14173,"Invalid `contributes.{0}`. Expected an array.",b.name));continue}for(let e=0,i=r.value.length;e<i;e++){let i=r.value[e];if(C(i,r.collector)){let e;i.configuration&&(e=(0,o.joinPath)(r.description.extensionLocation,i.configuration)),t.push({id:i.id,extensions:i.extensions,filenames:i.filenames,filenamePatterns:i.filenamePatterns,firstLine:i.firstLine,aliases:i.aliases,mimetypes:i.mimetypes,configuration:e,icon:i.icon&&{light:(0,o.joinPath)(r.description.extensionLocation,i.icon.light),dark:(0,o.joinPath)(r.description.extensionLocation,i.icon.dark)}})}}}this._registry.setDynamicLanguages(t)}),this.updateMime(),this._register(this._configurationService.onDidChangeConfiguration(e=>{e.affectsConfiguration(l.FILES_ASSOCIATIONS_CONFIG)&&this.updateMime()})),this._extensionService.whenInstalledExtensionsRegistered().then(()=>{this.updateMime()}),this._register(this.onDidRequestRichLanguageFeatures(e=>{this._extensionService.activateByEvent(`onLanguage:${e}`),this._extensionService.activateByEvent("onLanguage")}))}updateMime(){let e=this._configurationService.getValue();(0,n.clearConfiguredLanguageAssociations)(),e.files?.associations&&Object.keys(e.files.associations).forEach(t=>{let i=e.files.associations[t];if("string"!=typeof i)return void this.logService.warn(`Ignoring configured 'files.associations' for '${t}' because its type is not a string but '${typeof i}'`);let o=this.getMimeType(i)||`text/x-${i}`;(0,n.registerConfiguredLanguageAssociation)({id:i,mime:o,filepattern:t})}),this._onDidChange.fire()}};function w(e){return void 0===e||!!Array.isArray(e)&&e.every(e=>"string"==typeof e)}function C(e,t){return e?"string"!=typeof e.id?(t?.error((0,i.localize)(14175,"property `{0}` is mandatory and must be of type `string`","id")),!1):w(e.extensions)?w(e.filenames)?void 0!==e.firstLine&&"string"!=typeof e.firstLine?(t?.error((0,i.localize)(14178,"property `{0}` can be omitted and must be of type `string`","firstLine")),!1):void 0!==e.configuration&&"string"!=typeof e.configuration?(t?.error((0,i.localize)(14179,"property `{0}` can be omitted and must be of type `string`","configuration")),!1):w(e.aliases)?w(e.mimetypes)?void 0===e.icon||"object"==typeof e.icon&&"string"==typeof e.icon.light&&"string"==typeof e.icon.dark||(t?.error((0,i.localize)(14182,"property `{0}` can be omitted and must be of type `object` with properties `{1}` and `{2}` of type `string`","icon","light","dark")),!1):(t?.error((0,i.localize)(14181,"property `{0}` can be omitted and must be of type `string[]`","mimetypes")),!1):(t?.error((0,i.localize)(14180,"property `{0}` can be omitted and must be of type `string[]`","aliases")),!1):(t?.error((0,i.localize)(14177,"property `{0}` can be omitted and must be of type `string[]`","filenames")),!1):(t?.error((0,i.localize)(14176,"property `{0}` can be omitted and must be of type `string[]`","extensions")),!1):(t?.error((0,i.localize)(14174,"Empty value for `contributes.{0}`",b.name)),!1)}x=(0,t.__decorate)([(0,t.__param)(0,c.IExtensionService),(0,t.__param)(1,s.IConfigurationService),(0,t.__param)(2,a.IEnvironmentService),(0,t.__param)(3,p.ILogService)],x),e.s(["WorkbenchLanguageService",0,x,"languagesExtPoint",0,b])},163731,e=>{"use strict";var t,i,n,o,r,s,a,l,c=e.i(600345);function d(e){return!!e&&"function"==typeof e.getEditorType&&e.getEditorType()===c.EditorType.ICodeEditor}function p(e){return!!e&&"function"==typeof e.getEditorType&&e.getEditorType()===c.EditorType.IDiffEditor}function u(e){return!!e&&"object"==typeof e&&"function"==typeof e.onDidChangeActiveEditor}(t=r||(r={}))[t.EXACT=0]="EXACT",t[t.ABOVE=1]="ABOVE",t[t.BELOW=2]="BELOW",(i=s||(s={}))[i.TOP_RIGHT_CORNER=0]="TOP_RIGHT_CORNER",i[i.BOTTOM_RIGHT_CORNER=1]="BOTTOM_RIGHT_CORNER",i[i.TOP_CENTER=2]="TOP_CENTER",(n=a||(a={}))[n.UNKNOWN=0]="UNKNOWN",n[n.TEXTAREA=1]="TEXTAREA",n[n.GUTTER_GLYPH_MARGIN=2]="GUTTER_GLYPH_MARGIN",n[n.GUTTER_LINE_NUMBERS=3]="GUTTER_LINE_NUMBERS",n[n.GUTTER_LINE_DECORATIONS=4]="GUTTER_LINE_DECORATIONS",n[n.GUTTER_VIEW_ZONE=5]="GUTTER_VIEW_ZONE",n[n.CONTENT_TEXT=6]="CONTENT_TEXT",n[n.CONTENT_EMPTY=7]="CONTENT_EMPTY",n[n.CONTENT_VIEW_ZONE=8]="CONTENT_VIEW_ZONE",n[n.CONTENT_WIDGET=9]="CONTENT_WIDGET",n[n.OVERVIEW_RULER=10]="OVERVIEW_RULER",n[n.SCROLLBAR=11]="SCROLLBAR",n[n.OVERLAY_WIDGET=12]="OVERLAY_WIDGET",n[n.OUTSIDE_EDITOR=13]="OUTSIDE_EDITOR",(o=l||(l={}))[o.Idle=0]="Idle",o[o.ComputingDiff=1]="ComputingDiff",o[o.DiffComputed=2]="DiffComputed",e.s(["ContentWidgetPositionPreference",0,r,"MouseTargetType",0,a,"OverlayWidgetPositionPreference",0,s,"getCodeEditor",0,function(e){return d(e)?e:p(e)?e.getModifiedEditor():u(e)&&d(e.activeCodeEditor)?e.activeCodeEditor:null},"getIEditor",0,function(e){return d(e)||p(e)?e:null},"isCodeEditor",0,d,"isCompositeEditor",0,u,"isDiffEditor",0,p])},407791,e=>{"use strict";let t=(0,e.i(488259).createDecorator)("ILanguageFeaturesService");e.s(["ILanguageFeaturesService",0,t])},531452,e=>{"use strict";var t=e.i(611130);e.i(71224);var i=e.i(229081),n=e.i(4680),o=e.i(314122);e.s(["bindContextKey",0,function(e,i,r,s=n.DebugLocation.ofCaller()){let a=e.bindTo(i),l=new t.DisposableStore;return(0,o.derivedOpts)({debugName:()=>`Set Context Key "${e.key}"`},e=>{let t=r(e);return a.set(t),t},s).recomputeInitiallyAndOnChange(l),l},"observableConfigValue",0,function(e,t,o,r=n.DebugLocation.ofCaller()){return(0,i.observableFromEventOpts)({debugName:()=>`Configuration Key "${e}"`},t=>o.onDidChangeConfiguration(i=>{i.affectsConfiguration(e)&&t(i)}),()=>o.getValue(e)??t,r)}])},454683,e=>{"use strict";e.s(["WebWorkerDescriptor",0,class{constructor(e){this.esmModuleLocation=e.esmModuleLocation,this.esmModuleLocationBundler=e.esmModuleLocationBundler,this.label=e.label}}])},112231,e=>{"use strict";let t=(0,e.i(488259).createDecorator)("textMateTokenizationFeature");e.s(["ITextMateTokenizationService",0,t])},88124,e=>{"use strict";let t="editor.semanticHighlighting";e.s(["SEMANTIC_HIGHLIGHTING_SETTING_ID",0,t,"isSemanticColoringEnabled",0,function(e,i,n){let o=n.getValue(t,{overrideIdentifier:e.getLanguageId(),resource:e.uri})?.enabled;return"boolean"==typeof o?o:i.getColorTheme().semanticHighlighting}])},561460,e=>{"use strict";var t=e.i(650289),i=e.i(292608);e.s(["getParseErrorMessage",0,function(e){switch(e){case i.ParseErrorCode.InvalidSymbol:return(0,t.localize)(111,"Invalid symbol");case i.ParseErrorCode.InvalidNumberFormat:return(0,t.localize)(112,"Invalid number format");case i.ParseErrorCode.PropertyNameExpected:return(0,t.localize)(113,"Property name expected");case i.ParseErrorCode.ValueExpected:return(0,t.localize)(114,"Value expected");case i.ParseErrorCode.ColonExpected:return(0,t.localize)(115,"Colon expected");case i.ParseErrorCode.CommaExpected:return(0,t.localize)(116,"Comma expected");case i.ParseErrorCode.CloseBraceExpected:return(0,t.localize)(117,"Closing brace expected");case i.ParseErrorCode.CloseBracketExpected:return(0,t.localize)(118,"Closing bracket expected");case i.ParseErrorCode.EndOfFileExpected:return(0,t.localize)(119,"End of file expected");default:return""}}])},455162,e=>{"use strict";var t=e.i(488259);let i=(0,t.createDecorator)("extensionGalleryService"),n=(0,t.createDecorator)("extensionManagementService"),o=(0,t.createDecorator)("IGlobalExtensionEnablementService"),r=(0,t.createDecorator)("IExtensionTipsService"),s=(0,t.createDecorator)("IAllowedExtensionsService");e.s(["IAllowedExtensionsService",0,s,"IExtensionGalleryService",0,i,"IExtensionManagementService",0,n,"IExtensionTipsService",0,r,"IGlobalExtensionEnablementService",0,o])},542034,e=>{"use strict";let t=(0,e.i(488259).createDecorator)("extensionsWorkbenchService");e.s(["IExtensionsWorkbenchService",0,t])},322544,e=>{"use strict";let t=(0,e.i(488259).createDecorator)("IUserDataInitializationService");e.s(["IUserDataInitializationService",0,t])},262072,e=>{"use strict";var t=e.i(650289);let i=Object.freeze({View:(0,t.localize2)(1740,"View"),Help:(0,t.localize2)(1741,"Help"),Test:(0,t.localize2)(1742,"Test"),File:(0,t.localize2)(1743,"File"),Preferences:(0,t.localize2)(1744,"Preferences"),Developer:(0,t.localize2)(1745,"Developer")});e.s(["Categories",0,i])},176876,e=>{"use strict";var t=e.i(253642);let i=(0,e.i(488259).refineServiceDecorator)(t.IEnvironmentService);e.s(["IBrowserWorkbenchEnvironmentService",0,i])},633450,e=>{"use strict";var t=e.i(702320),i=e.i(693162),n=e.i(802136),o=e.i(429200),r=e.i(652731),s=e.i(536367);let a=/(?:\/|^)(?:([^\/]+)\/)?([^\/]+)$/;function l(e){return e.replace(/[\s]/g,"/")}e.s(["fileIconSelectorEscape",0,l,"getIconClasses",0,function(e,c,d,p,u){if(s.ThemeIcon.isThemeIcon(u))return[`codicon-${u.id}`,"predefined-file-icon"];if(n.URI.isUri(u))return[];let h=p===r.FileKind.ROOT_FOLDER?["rootfolder-icon"]:p===r.FileKind.FOLDER?["folder-icon"]:["file-icon"];if(d){let n;if(d.scheme===t.Schemas.data)n=i.DataUri.parseMetaData(d).get(i.DataUri.META_DATA_LABEL);else{let e=d.path.match(a);e?(n=l(e[2].toLowerCase()),e[1]&&h.push(`${l(e[1].toLowerCase())}-name-dir-icon`)):n=l(d.authority.toLowerCase())}if(p===r.FileKind.ROOT_FOLDER)h.push(`${n}-root-name-folder-icon`);else if(p===r.FileKind.FOLDER)h.push(`${n}-name-folder-icon`);else{if(n){if(h.push(`${n}-name-file-icon`),h.push("name-file-icon"),n.length<=255){let e=n.split(".");for(let t=1;t<e.length;t++)h.push(`${e.slice(t).join(".")}-ext-file-icon`)}h.push("ext-file-icon")}let r=function(e,n,r){if(!r)return null;let s=null;if(r.scheme===t.Schemas.data){let e=i.DataUri.parseMetaData(r).get(i.DataUri.META_DATA_MIME);e&&(s=n.getLanguageIdByMimeType(e))}else{let t=e.getModel(r);t&&(s=t.getLanguageId())}return s&&s!==o.PLAINTEXT_LANGUAGE_ID?s:n.guessLanguageIdByFilepathOrFirstLine(r)}(e,c,d);r&&h.push(`${l(r)}-lang-file-icon`)}}return h},"getIconClassesForLanguageId",0,function(e){return["file-icon",`${l(e)}-lang-file-icon`]}])},905192,e=>{"use strict";var t=e.i(488259),i=e.i(970672);let n=(0,t.refineServiceDecorator)(i.IThemeService);e.s(["IWorkbenchThemeService",0,n])},509046,e=>{"use strict";let t=(0,e.i(488259).createDecorator)("preferencesService");e.s(["IPreferencesService",0,t])},317317,e=>{"use strict";let t=(0,e.i(488259).createDecorator)("hostColorSchemeService");e.s(["IHostColorSchemeService",0,t])},184687,e=>{e.q("/_next/static/media/webWorkerExtensionHostIframe.0x2r1o97s.m0m.html")},991307,425761,e=>{"use strict";let t=(0,e.i(488259).createDecorator)("IUserDataProfilesService");async function i(e){await new Promise(t=>setTimeout(t,e))}e.s(["IUserDataProfilesService",0,t],991307),e.s(["memoizedConstructor",0,function(e){var t;let i;return new Proxy(e,{construct:(t=(t,i)=>Reflect.construct(e,i),i=null,(...e)=>(null==i&&(i=t(...e)),i))})},"throttle",0,function(e,t,n){let o=Promise.resolve(),r=null;return async s=>{null==r?(r=s,o=o.then(async()=>await i(n)).then(async()=>{let t=r;r=null,await e(t)})):r=t(r,s),await o}},"unsupported",0,function(){throw Error("unsupported")}],425761)},13853,e=>{"use strict";var t,i,n=e.i(601293),o=e.i(561295);function r(e,t,i){e.has(t)?e.get(t).push(i):e.set(t,[i])}(t=i||(i={}))[t.None=0]="None",t[t.Indent=1]="Indent",t[t.IndentOutdent=2]="IndentOutdent",t[t.Outdent=3]="Outdent",e.s(["AutoClosingPairs",0,class{constructor(e){for(const t of(this.autoClosingPairsOpenByStart=new Map,this.autoClosingPairsOpenByEnd=new Map,this.autoClosingPairsCloseByStart=new Map,this.autoClosingPairsCloseByEnd=new Map,this.autoClosingPairsCloseSingleChar=new Map,e))r(this.autoClosingPairsOpenByStart,t.open.charAt(0),t),r(this.autoClosingPairsOpenByEnd,t.open.charAt(t.open.length-1),t),r(this.autoClosingPairsCloseByStart,t.close.charAt(0),t),r(this.autoClosingPairsCloseByEnd,t.close.charAt(t.close.length-1),t),1===t.close.length&&1===t.open.length&&r(this.autoClosingPairsCloseSingleChar,t.close,t)}},"IndentAction",0,i,"StandardAutoClosingPairConditional",0,class{constructor(e){if(this._neutralCharacter=null,this._neutralCharacterSearched=!1,this.open=e.open,this.close=e.close,this._inString=!0,this._inComment=!0,this._inRegEx=!0,Array.isArray(e.notIn))for(let t=0,i=e.notIn.length;t<i;t++)switch(e.notIn[t]){case"string":this._inString=!1;break;case"comment":this._inComment=!1;break;case"regex":this._inRegEx=!1}}isOK(e){switch(e){case o.StandardTokenType.Other:return!0;case o.StandardTokenType.Comment:return this._inComment;case o.StandardTokenType.String:return this._inString;case o.StandardTokenType.RegEx:return this._inRegEx}}shouldAutoClose(e,t){if(0===e.getTokenCount())return!0;let i=e.findTokenIndexAtOffset(t-2),n=e.getStandardTokenType(i);return this.isOK(n)}_findNeutralCharacterInRange(e,t){for(let i=e;i<=t;i++){let e=String.fromCharCode(i);if(!this.open.includes(e)&&!this.close.includes(e))return e}return null}findNeutralCharacter(){return!this._neutralCharacterSearched&&(this._neutralCharacterSearched=!0,this._neutralCharacter||(this._neutralCharacter=this._findNeutralCharacterInRange(n.CharCode.Digit0,n.CharCode.Digit9)),this._neutralCharacter||(this._neutralCharacter=this._findNeutralCharacterInRange(n.CharCode.a,n.CharCode.z)),this._neutralCharacter||(this._neutralCharacter=this._findNeutralCharacterInRange(n.CharCode.A,n.CharCode.Z))),this._neutralCharacter}}])},715658,689318,508898,e=>{"use strict";var t=e.i(781808),i=e.i(611130),n=e.i(98342),o=e.i(786091),r=e.i(771275);function s(e,t,i,n,a,l){if(Array.isArray(e)){let o=0;for(let r of e){let e=s(r,t,i,n,a,l);if(10===e)return e;e>o&&(o=e)}return o}if("string"==typeof e)return n?"*"===e?5:10*(e===i):0;if(!e)return 0;{let{language:s,pattern:c,scheme:d,hasAccessToAllModels:p,notebookType:u}=e;if(!n&&!p)return 0;u&&a&&(t=a);let h=0;if(d)if(d===t.scheme)h=10;else{if("*"!==d)return 0;h=5}if(s)if(s===i)h=10;else{if("*"!==s)return 0;h=Math.max(h,5)}if(u)if(u===l)h=10;else{if("*"!==u||void 0===l)return 0;h=Math.max(h,5)}if(c){let e;if(!((e="string"==typeof c?c:{...c,base:(0,r.normalize)(c.base)})===t.fsPath||(0,o.match)(e,t.fsPath)))return 0;h=10}return h}}e.s(["score",0,s,"targetsNotebooks",0,function e(t){return"string"!=typeof t&&(Array.isArray(t)?t.some(e):!!t.notebookType)}],689318);class a{constructor(e,t,i,n,o){this.uri=e,this.languageId=t,this.notebookUri=i,this.notebookType=n,this.recursive=o}equals(e){return this.notebookType===e.notebookType&&this.languageId===e.languageId&&this.uri.toString()===e.uri.toString()&&this.notebookUri?.toString()===e.notebookUri?.toString()&&this.recursive===e.recursive}}class l{get onDidChange(){return this._onDidChange.event}constructor(e){this._notebookInfoResolver=e,this._clock=0,this._entries=[],this._onDidChange=new t.Emitter}register(e,t){let n={selector:e,provider:t,_score:-1,_time:this._clock++};return this._entries.push(n),this._lastCandidate=void 0,this._onDidChange.fire(this._entries.length),(0,i.toDisposable)(()=>{if(n){let e=this._entries.indexOf(n);e>=0&&(this._entries.splice(e,1),this._lastCandidate=void 0,this._onDidChange.fire(this._entries.length),n=void 0)}})}has(e){return this.all(e).length>0}all(e){if(!e)return[];this._updateScores(e,!1);let t=[];for(let e of this._entries)e._score>0&&t.push(e.provider);return t}allNoModel(){return this._entries.map(e=>e.provider)}ordered(e,t=!1){let i=[];return this._orderedForEach(e,t,e=>i.push(e.provider)),i}orderedGroups(e){let t,i,n=[];return this._orderedForEach(e,!1,e=>{t&&i===e._score?t.push(e.provider):(i=e._score,t=[e.provider],n.push(t))}),n}_orderedForEach(e,t,i){for(let n of(this._updateScores(e,t),this._entries))n._score>0&&i(n)}_updateScores(e,t){let i=this._notebookInfoResolver?.(e.uri),o=i?new a(e.uri,e.getLanguageId(),i.uri,i.type,t):new a(e.uri,e.getLanguageId(),void 0,void 0,t);if(!this._lastCandidate?.equals(o)){for(let i of(this._lastCandidate=o,this._entries))if(i._score=s(i.selector,o.uri,o.languageId,(0,n.shouldSynchronizeModel)(e),o.notebookUri,o.notebookType),function e(t){return"string"!=typeof t&&(Array.isArray(t)?t.every(e):!!t.exclusive)}(i.selector)&&i._score>0)if(t)i._score=0;else{for(let e of this._entries)e._score=0;i._score=1e3;break}this._entries.sort(l._compareByScoreAndTime)}}static _compareByScoreAndTime(e,t){return e._score<t._score?1:e._score>t._score?-1:c(e.selector)&&!c(t.selector)?1:!c(e.selector)&&c(t.selector)?-1:e._time<t._time?1:e._time>t._time?-1:0}}function c(e){return"string"!=typeof e&&(Array.isArray(e)?e.some(c):!!e.isBuiltin)}e.s(["LanguageFeatureRegistry",0,l],715658);let d=(0,e.i(488259).createDecorator)("ILanguageStatusService");e.s(["ILanguageStatusService",0,d],508898)}]);
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,425024,e=>{"use strict";var t=e.i(650289),i=e.i(619122),n=e.i(770326),o=e.i(331139),r=e.i(4160),s=e.i(621826),a=e.i(608326),l=e.i(920374),c=e.i(951971);let d=s.Registry.as(r.Extensions.JSONContribution);class p{static _toSet(e){let t=new a.ExtensionIdentifierSet;for(let i=0,n=e.length;i<n;i++)t.add(e[i].description.identifier);return t}static compute(e,t){if(!e||!e.length)return new p(t,[]);if(!t||!t.length)return new p([],e);let i=this._toSet(e),n=this._toSet(t);return new p(t.filter(e=>!i.has(e.description.identifier)),e.filter(e=>!n.has(e.description.identifier)))}constructor(e,t){this.added=e,this.removed=t}}class u{constructor(e,t,i){this.name=e,this.defaultExtensionKind=t,this.canHandleResolver=i,this._handler=null,this._users=null,this._delta=null}setHandler(e){if(null!==this._handler)throw Error("Handler already set!");return this._handler=e,this._handle(),{dispose:()=>{this._handler=null}}}acceptUsers(e){this._delta=p.compute(this._users,e),this._users=e,this._handle()}_handle(){if(null!==this._handler&&null!==this._users&&null!==this._delta)try{this._handler(this._users,this._delta)}catch(e){(0,i.onUnexpectedError)(e)}}}let h={type:"string",enum:["ui","workspace"],enumDescriptions:[(0,t.localize)(14009,"UI extension kind. In a remote window, such extensions are enabled only when available on the local machine."),(0,t.localize)(14010,"Workspace extension kind. In a remote window, such extensions are enabled only when available on the remote.")]},g="vscode://schemas/vscode-extensions",f={properties:{engines:{type:"object",description:(0,t.localize)(14011,"Engine compatibility."),properties:{vscode:{type:"string",description:(0,t.localize)(14012,"For VS Code extensions, specifies the VS Code version that the extension is compatible with. Cannot be *. For example: ^0.10.5 indicates compatibility with a minimum VS Code version of 0.10.5."),default:"^1.22.0"}}},publisher:{description:(0,t.localize)(14013,"The publisher of the VS Code extension."),type:"string"},displayName:{description:(0,t.localize)(14014,"The display name for the extension used in the VS Code gallery."),type:"string"},categories:{description:(0,t.localize)(14015,"The categories used by the VS Code gallery to categorize the extension."),type:"array",uniqueItems:!0,items:{oneOf:[{type:"string",enum:a.EXTENSION_CATEGORIES},{type:"string",const:"Languages",deprecationMessage:(0,t.localize)(14016,"Use 'Programming Languages' instead")}]}},galleryBanner:{type:"object",description:(0,t.localize)(14017,"Banner used in the VS Code marketplace."),properties:{color:{description:(0,t.localize)(14018,"The banner color on the VS Code marketplace page header."),type:"string"},theme:{description:(0,t.localize)(14019,"The color theme for the font used in the banner."),type:"string",enum:["dark","light"]}}},contributes:{description:(0,t.localize)(14020,"All contributions of the VS Code extension represented by this package."),type:"object",properties:{},default:{}},preview:{type:"boolean",description:(0,t.localize)(14021,"Sets the extension to be flagged as a Preview in the Marketplace.")},enableProposedApi:{type:"boolean",deprecationMessage:(0,t.localize)(14022,"Use `enabledApiProposals` instead.")},enabledApiProposals:{markdownDescription:(0,t.localize)(14023,"Enable API proposals to try them out. Only valid **during development**. Extensions **cannot be published** with this property. For more details visit: https://code.visualstudio.com/api/advanced-topics/using-proposed-api"),type:"array",uniqueItems:!0,items:{type:"string",enum:Object.keys(c.allApiProposals).map(e=>e),markdownEnumDescriptions:Object.values(c.allApiProposals).map(e=>e.proposal)}},api:{markdownDescription:(0,t.localize)(14024,"Describe the API provided by this extension. For more details visit: https://code.visualstudio.com/api/advanced-topics/remote-extensions#handling-dependencies-with-remote-extensions"),type:"string",enum:["none"],enumDescriptions:[(0,t.localize)(14025,"Give up entirely the ability to export any APIs. This allows other extensions that depend on this extension to run in a separate extension host process or in a remote machine.")]},activationEvents:{description:(0,t.localize)(14026,"Activation events for the VS Code extension."),type:"array",items:{type:"string",defaultSnippets:[{label:"onWebviewPanel",description:(0,t.localize)(14027,"An activation event emmited when a webview is loaded of a certain viewType"),body:"onWebviewPanel:viewType"},{label:"onLanguage",description:(0,t.localize)(14028,"An activation event emitted whenever a file that resolves to the specified language gets opened."),body:"onLanguage:${1:languageId}"},{label:"onCommand",description:(0,t.localize)(14029,"An activation event emitted whenever the specified command gets invoked."),body:"onCommand:${2:commandId}"},{label:"onDebug",description:(0,t.localize)(14030,"An activation event emitted whenever a user is about to start debugging or about to setup debug configurations."),body:"onDebug"},{label:"onDebugInitialConfigurations",description:(0,t.localize)(14031,'An activation event emitted whenever a "launch.json" needs to be created (and all provideDebugConfigurations methods need to be called).'),body:"onDebugInitialConfigurations"},{label:"onDebugDynamicConfigurations",description:(0,t.localize)(14032,'An activation event emitted whenever a list of all debug configurations needs to be created (and all provideDebugConfigurations methods for the "dynamic" scope need to be called).'),body:"onDebugDynamicConfigurations"},{label:"onDebugResolve",description:(0,t.localize)(14033,"An activation event emitted whenever a debug session with the specific type is about to be launched (and a corresponding resolveDebugConfiguration method needs to be called)."),body:"onDebugResolve:${6:type}"},{label:"onDebugAdapterProtocolTracker",description:(0,t.localize)(14034,"An activation event emitted whenever a debug session with the specific type is about to be launched and a debug protocol tracker might be needed."),body:"onDebugAdapterProtocolTracker:${6:type}"},{label:"workspaceContains",description:(0,t.localize)(14035,"An activation event emitted whenever a folder is opened that contains at least a file matching the specified glob pattern."),body:"workspaceContains:${4:filePattern}"},{label:"onStartupFinished",description:(0,t.localize)(14036,"An activation event emitted after the start-up finished (after all `*` activated extensions have finished activating)."),body:"onStartupFinished"},{label:"onTaskType",description:(0,t.localize)(14037,"An activation event emitted whenever tasks of a certain type need to be listed or resolved."),body:"onTaskType:${1:taskType}"},{label:"onFileSystem",description:(0,t.localize)(14038,"An activation event emitted whenever a file or folder is accessed with the given scheme."),body:"onFileSystem:${1:scheme}"},{label:"onEditSession",description:(0,t.localize)(14039,"An activation event emitted whenever an edit session is accessed with the given scheme."),body:"onEditSession:${1:scheme}"},{label:"onSearch",description:(0,t.localize)(14040,"An activation event emitted whenever a search is started in the folder with the given scheme."),body:"onSearch:${7:scheme}"},{label:"onView",body:"onView:${5:viewId}",description:(0,t.localize)(14041,"An activation event emitted whenever the specified view is expanded.")},{label:"onUri",body:"onUri",description:(0,t.localize)(14042,"An activation event emitted whenever a system-wide Uri directed towards this extension is open.")},{label:"onOpenExternalUri",body:"onOpenExternalUri",description:(0,t.localize)(14043,"An activation event emitted whenever a external uri (such as an http or https link) is being opened.")},{label:"onCustomEditor",body:"onCustomEditor:${9:viewType}",description:(0,t.localize)(14044,"An activation event emitted whenever the specified custom editor becomes visible.")},{label:"onNotebook",body:"onNotebook:${1:type}",description:(0,t.localize)(14045,"An activation event emitted whenever the specified notebook document is opened.")},{label:"onAuthenticationRequest",body:"onAuthenticationRequest:${11:authenticationProviderId}",description:(0,t.localize)(14046,"An activation event emitted whenever sessions are requested from the specified authentication provider.")},{label:"onRenderer",description:(0,t.localize)(14047,"An activation event emitted whenever a notebook output renderer is used."),body:"onRenderer:${11:rendererId}"},{label:"onTerminalProfile",body:"onTerminalProfile:${1:terminalId}",description:(0,t.localize)(14048,"An activation event emitted when a specific terminal profile is launched.")},{label:"onTerminalQuickFixRequest",body:"onTerminalQuickFixRequest:${1:quickFixId}",description:(0,t.localize)(14049,"An activation event emitted when a command matches the selector associated with this ID")},{label:"onWalkthrough",body:"onWalkthrough:${1:walkthroughID}",description:(0,t.localize)(14050,"An activation event emitted when a specified walkthrough is opened.")},{label:"onIssueReporterOpened",body:"onIssueReporterOpened",description:(0,t.localize)(14051,"An activation event emitted when the issue reporter is opened.")},{label:"onChatParticipant",body:"onChatParticipant:${1:participantId}",description:(0,t.localize)(14052,"An activation event emitted when the specified chat participant is invoked.")},{label:"onLanguageModelChatProvider",body:"onLanguageModelChatProvider:${1:vendor}",description:(0,t.localize)(14053,"An activation event emitted when a chat model provider for the given vendor is requested.")},{label:"onLanguageModelTool",body:"onLanguageModelTool:${1:toolId}",description:(0,t.localize)(14054,"An activation event emitted when the specified language model tool is invoked.")},{label:"onTerminal",body:"onTerminal:{1:shellType}",description:(0,t.localize)(14055,"An activation event emitted when a terminal of the given shell type is opened.")},{label:"onTerminalShellIntegration",body:"onTerminalShellIntegration:${1:shellType}",description:(0,t.localize)(14056,"An activation event emitted when terminal shell integration is activated for the given shell type.")},{label:"onMcpCollection",description:(0,t.localize)(14057,"An activation event emitted whenver a tool from the MCP server is requested."),body:"onMcpCollection:${2:collectionId}"},{label:"*",description:(0,t.localize)(14058,"An activation event emitted on VS Code startup. To ensure a great end user experience, please use this activation event in your extension only when no other activation events combination works in your use-case."),body:"*"}]}},badges:{type:"array",description:(0,t.localize)(14059,"Array of badges to display in the sidebar of the Marketplace's extension page."),items:{type:"object",required:["url","href","description"],properties:{url:{type:"string",description:(0,t.localize)(14060,"Badge image URL.")},href:{type:"string",description:(0,t.localize)(14061,"Badge link.")},description:{type:"string",description:(0,t.localize)(14062,"Badge description.")}}}},markdown:{type:"string",description:(0,t.localize)(14063,"Controls the Markdown rendering engine used in the Marketplace. Either github (default) or standard."),enum:["github","standard"],default:"github"},qna:{default:"marketplace",description:(0,t.localize)(14064,"Controls the Q&A link in the Marketplace. Set to marketplace to enable the default Marketplace Q & A site. Set to a string to provide the URL of a custom Q & A site. Set to false to disable Q & A altogether."),anyOf:[{type:["string","boolean"],enum:["marketplace",!1]},{type:"string"}]},extensionDependencies:{description:(0,t.localize)(14065,"Dependencies to other extensions. The identifier of an extension is always ${publisher}.${name}. For example: vscode.csharp."),type:"array",uniqueItems:!0,items:{type:"string",pattern:o.EXTENSION_IDENTIFIER_PATTERN}},extensionPack:{description:(0,t.localize)(14066,"A set of extensions that can be installed together. The identifier of an extension is always ${publisher}.${name}. For example: vscode.csharp."),type:"array",uniqueItems:!0,items:{type:"string",pattern:o.EXTENSION_IDENTIFIER_PATTERN}},extensionKind:{description:(0,t.localize)(14067,"Define the kind of an extension. `ui` extensions are installed and run on the local machine while `workspace` extensions run on the remote."),type:"array",items:h,default:["workspace"],defaultSnippets:[{body:["ui"],description:(0,t.localize)(14068,"Define an extension which can run only on the local machine when connected to remote window.")},{body:["workspace"],description:(0,t.localize)(14069,"Define an extension which can run only on the remote machine when connected remote window.")},{body:["ui","workspace"],description:(0,t.localize)(14070,"Define an extension which can run on either side, with a preference towards running on the local machine.")},{body:["workspace","ui"],description:(0,t.localize)(14071,"Define an extension which can run on either side, with a preference towards running on the remote machine.")},{body:[],description:(0,t.localize)(14072,"Define an extension which cannot run in a remote context, neither on the local, nor on the remote machine.")}]},capabilities:{description:(0,t.localize)(14073,"Declare the set of supported capabilities by the extension."),type:"object",properties:{virtualWorkspaces:{description:(0,t.localize)(14074,"Declares whether the extension should be enabled in virtual workspaces. A virtual workspace is a workspace which is not backed by any on-disk resources. When false, this extension will be automatically disabled in virtual workspaces. Default is true."),type:["boolean","object"],defaultSnippets:[{label:"limited",body:{supported:"${1:limited}",description:"${2}"}},{label:"false",body:{supported:!1,description:"${2}"}}],default:(!0).valueOf,properties:{supported:{markdownDescription:(0,t.localize)(14075,"Declares the level of support for virtual workspaces by the extension."),type:["string","boolean"],enum:["limited",!0,!1],enumDescriptions:[(0,t.localize)(14076,"The extension will be enabled in virtual workspaces with some functionality disabled."),(0,t.localize)(14077,"The extension will be enabled in virtual workspaces with all functionality enabled."),(0,t.localize)(14078,"The extension will not be enabled in virtual workspaces.")]},description:{type:"string",markdownDescription:(0,t.localize)(14079,"A description of how virtual workspaces affects the extensions behavior and why it is needed. This only applies when `supported` is not `true`.")}}},untrustedWorkspaces:{description:(0,t.localize)(14080,"Declares how the extension should be handled in untrusted workspaces."),type:"object",required:["supported"],defaultSnippets:[{body:{supported:"${1:limited}",description:"${2}"}}],properties:{supported:{markdownDescription:(0,t.localize)(14081,"Declares the level of support for untrusted workspaces by the extension."),type:["string","boolean"],enum:["limited",!0,!1],enumDescriptions:[(0,t.localize)(14082,"The extension will be enabled in untrusted workspaces with some functionality disabled."),(0,t.localize)(14083,"The extension will be enabled in untrusted workspaces with all functionality enabled."),(0,t.localize)(14084,"The extension will not be enabled in untrusted workspaces.")]},restrictedConfigurations:{description:(0,t.localize)(14085,"A list of configuration keys contributed by the extension that should not use workspace values in untrusted workspaces."),type:"array",items:{type:"string"}},description:{type:"string",markdownDescription:(0,t.localize)(14086,"A description of how workspace trust affects the extensions behavior and why it is needed. This only applies when `supported` is not `true`.")}}}}},sponsor:{description:(0,t.localize)(14087,"Specify the location from where users can sponsor your extension."),type:"object",defaultSnippets:[{body:{url:"${1:https:}"}}],properties:{url:{description:(0,t.localize)(14088,"URL from where users can sponsor your extension. It must be a valid URL with a HTTP or HTTPS protocol. Example value: https://github.com/sponsors/nvaccess"),type:"string"}}},scripts:{type:"object",properties:{"vscode:prepublish":{description:(0,t.localize)(14089,"Script executed before the package is published as a VS Code extension."),type:"string"},"vscode:uninstall":{description:(0,t.localize)(14090,"Uninstall hook for VS Code extension. Script that gets executed when the extension is completely uninstalled from VS Code which is when VS Code is restarted (shutdown and start) after the extension is uninstalled. Only Node scripts are supported."),type:"string"}}},icon:{type:"string",description:(0,t.localize)(14091,"The path to a 128x128 pixel icon.")},l10n:{type:"string",description:(0,t.localize)(14092,"The relative path to a folder containing localization (bundle.l10n.*.json) files. Must be specified if you are using the vscode.l10n API.")},pricing:{type:"string",markdownDescription:(0,t.localize)(14093,"The pricing information for the extension. Can be Free (default) or Trial. For more details visit: https://code.visualstudio.com/api/working-with-extensions/publishing-extension#extension-pricing-label"),enum:["Free","Trial"],default:"Free"}}},m="ExtensionsRegistry";s.Registry.add(m,new class{constructor(){this._extensionPoints=new Map}registerExtensionPoint(e){if(this._extensionPoints.has(e.extensionPoint))throw Error("Duplicate extension point: "+e.extensionPoint);let t=new u(e.extensionPoint,e.defaultExtensionKind,e.canHandleResolver);return this._extensionPoints.set(e.extensionPoint,t),e.activationEventsGenerator&&l.ImplicitActivationEvents.register(e.extensionPoint,e.activationEventsGenerator),f.properties.contributes.properties[e.extensionPoint]=e.jsonSchema,d.registerSchema(g,f),t}getExtensionPoints(){return Array.from(this._extensionPoints.values())}});let y=s.Registry.as(m);d.registerSchema(g,f),d.registerSchema("vscode://schemas/vscode-product",{properties:{extensionEnabledApiProposals:{description:(0,t.localize)(14094,"API proposals that the respective extensions can freely use."),type:"object",properties:{},additionalProperties:{anyOf:[{type:"array",uniqueItems:!0,items:{type:"string",enum:Object.keys(c.allApiProposals),markdownEnumDescriptions:Object.values(c.allApiProposals).map(e=>e.proposal)}}]}}}}),e.s(["ExtensionMessageCollector",0,class{constructor(e,t,i){this._messageHandler=e,this._extension=t,this._extensionPointId=i}_msg(e,t){this._messageHandler({type:e,message:t,extensionId:this._extension.identifier,extensionPointId:this._extensionPointId})}error(e){this._msg(n.default.Error,e)}warn(e){this._msg(n.default.Warning,e)}info(e){this._msg(n.default.Info,e)}},"ExtensionsRegistry",0,y],425024)},888961,e=>{"use strict";var t,i=e.i(621826);(t||(t={})).ExtensionFeaturesRegistry="workbench.registry.extensionFeatures",i.Registry.add(t.ExtensionFeaturesRegistry,new class{constructor(){this.extensionFeatures=new Map}registerExtensionFeature(e){if(this.extensionFeatures.has(e.id))throw Error(`Extension feature with id '${e.id}' already exists`);return this.extensionFeatures.set(e.id,e),{dispose:()=>this.extensionFeatures.delete(e.id)}}getExtensionFeature(e){return this.extensionFeatures.get(e)}getExtensionFeatures(){return Array.from(this.extensionFeatures.values())}}),e.s(["Extensions",0,t])},695519,e=>{"use strict";var t=e.i(281482),i=e.i(650289),n=e.i(642897),o=e.i(693162);e.i(488259);var r=e.i(243431),s=e.i(731931),a=e.i(253642),l=e.i(652731),c=e.i(981399),d=e.i(425024);e.i(157255);var p=e.i(853457),u=e.i(611130),h=e.i(888961),g=e.i(621826),f=e.i(526097),m=e.i(454514),y=e.i(399119),v=e.i(535567);let b=d.ExtensionsRegistry.registerExtensionPoint({extensionPoint:"languages",jsonSchema:{description:(0,i.localize)(14155,"Contributes language declarations."),type:"array",items:{type:"object",defaultSnippets:[{body:{id:"${1:languageId}",aliases:["${2:label}"],extensions:["${3:extension}"],configuration:"./language-configuration.json"}}],properties:{id:{description:(0,i.localize)(14156,"ID of the language."),type:"string"},aliases:{description:(0,i.localize)(14157,"Name aliases for the language."),type:"array",items:{type:"string"}},extensions:{description:(0,i.localize)(14158,"File extensions associated to the language."),default:[".foo"],type:"array",items:{type:"string"}},filenames:{description:(0,i.localize)(14159,"File names associated to the language."),type:"array",items:{type:"string"}},filenamePatterns:{description:(0,i.localize)(14160,"File name glob patterns associated to the language."),type:"array",items:{type:"string"}},mimetypes:{description:(0,i.localize)(14161,"Mime types associated to the language."),type:"array",items:{type:"string"}},firstLine:{description:(0,i.localize)(14162,"A regular expression matching the first line of a file of the language."),type:"string"},configuration:{description:(0,i.localize)(14163,"A relative path to a file containing configuration options for the language."),type:"string",default:"./language-configuration.json"},icon:{type:"object",description:(0,i.localize)(14164,"A icon to use as file icon, if no icon theme provides one for the language."),properties:{light:{description:(0,i.localize)(14165,"Icon path when a light theme is used"),type:"string"},dark:{description:(0,i.localize)(14166,"Icon path when a dark theme is used"),type:"string"}}}}}},activationEventsGenerator:function*(e){for(let t of e)t.id&&t.configuration&&(yield`onLanguage:${t.id}`)}});class E extends u.Disposable{constructor(){super(...arguments),this.type="table"}shouldRender(e){return!!e.contributes?.languages}render(e){let t=e.contributes,n=t?.languages||[],o=[];for(let e of n)C(e)&&o.push({id:e.id,name:(e.aliases||[])[0]||e.id,extensions:e.extensions||[],hasGrammar:!1,hasSnippets:!1});let r=(0,m.index)(o,e=>e.id);return((t?.grammars||[]).forEach(e=>{if(!(0,v.isString)(e.language))return;let t=r[e.language];t?t.hasGrammar=!0:(r[(t={id:e.language,name:e.language,extensions:[],hasGrammar:!0,hasSnippets:!1}).id]=t,o.push(t))}),(t?.snippets||[]).forEach(e=>{if(!(0,v.isString)(e.language))return;let t=r[e.language];t?t.hasSnippets=!0:(r[(t={id:e.language,name:e.language,extensions:[],hasGrammar:!1,hasSnippets:!0}).id]=t,o.push(t))}),o.length)?{data:{headers:[(0,i.localize)(14167,"ID"),(0,i.localize)(14168,"Name"),(0,i.localize)(14169,"File Extensions"),(0,i.localize)(14170,"Grammar"),(0,i.localize)(14171,"Snippets")],rows:o.sort((e,t)=>e.id.localeCompare(t.id)).map(e=>[e.id,e.name,new y.MarkdownString().appendMarkdown(`${e.extensions.map(e=>`\`${e}\``).join(" ")}`),e.hasGrammar?"✔︎":"—",e.hasSnippets?"✔︎":"—"])},dispose:()=>{}}:{data:{headers:[],rows:[]},dispose:()=>{}}}}g.Registry.as(h.Extensions.ExtensionFeaturesRegistry).registerExtensionFeature({id:"languages",label:(0,i.localize)(14172,"Programming Languages"),access:{canToggle:!1},renderer:new f.SyncDescriptor(E)});let x=class extends r.LanguageService{constructor(e,t,n,r){super(n.verbose||n.isExtensionDevelopment||!n.isBuilt),this.logService=r,this._configurationService=t,this._extensionService=e,b.setHandler(e=>{let t=[];for(let n=0,r=e.length;n<r;n++){let r=e[n];if(!Array.isArray(r.value)){r.collector.error((0,i.localize)(14173,"Invalid `contributes.{0}`. Expected an array.",b.name));continue}for(let e=0,i=r.value.length;e<i;e++){let i=r.value[e];if(C(i,r.collector)){let e;i.configuration&&(e=(0,o.joinPath)(r.description.extensionLocation,i.configuration)),t.push({id:i.id,extensions:i.extensions,filenames:i.filenames,filenamePatterns:i.filenamePatterns,firstLine:i.firstLine,aliases:i.aliases,mimetypes:i.mimetypes,configuration:e,icon:i.icon&&{light:(0,o.joinPath)(r.description.extensionLocation,i.icon.light),dark:(0,o.joinPath)(r.description.extensionLocation,i.icon.dark)}})}}}this._registry.setDynamicLanguages(t)}),this.updateMime(),this._register(this._configurationService.onDidChangeConfiguration(e=>{e.affectsConfiguration(l.FILES_ASSOCIATIONS_CONFIG)&&this.updateMime()})),this._extensionService.whenInstalledExtensionsRegistered().then(()=>{this.updateMime()}),this._register(this.onDidRequestRichLanguageFeatures(e=>{this._extensionService.activateByEvent(`onLanguage:${e}`),this._extensionService.activateByEvent("onLanguage")}))}updateMime(){let e=this._configurationService.getValue();(0,n.clearConfiguredLanguageAssociations)(),e.files?.associations&&Object.keys(e.files.associations).forEach(t=>{let i=e.files.associations[t];if("string"!=typeof i)return void this.logService.warn(`Ignoring configured 'files.associations' for '${t}' because its type is not a string but '${typeof i}'`);let o=this.getMimeType(i)||`text/x-${i}`;(0,n.registerConfiguredLanguageAssociation)({id:i,mime:o,filepattern:t})}),this._onDidChange.fire()}};function w(e){return void 0===e||!!Array.isArray(e)&&e.every(e=>"string"==typeof e)}function C(e,t){return e?"string"!=typeof e.id?(t?.error((0,i.localize)(14175,"property `{0}` is mandatory and must be of type `string`","id")),!1):w(e.extensions)?w(e.filenames)?void 0!==e.firstLine&&"string"!=typeof e.firstLine?(t?.error((0,i.localize)(14178,"property `{0}` can be omitted and must be of type `string`","firstLine")),!1):void 0!==e.configuration&&"string"!=typeof e.configuration?(t?.error((0,i.localize)(14179,"property `{0}` can be omitted and must be of type `string`","configuration")),!1):w(e.aliases)?w(e.mimetypes)?void 0===e.icon||"object"==typeof e.icon&&"string"==typeof e.icon.light&&"string"==typeof e.icon.dark||(t?.error((0,i.localize)(14182,"property `{0}` can be omitted and must be of type `object` with properties `{1}` and `{2}` of type `string`","icon","light","dark")),!1):(t?.error((0,i.localize)(14181,"property `{0}` can be omitted and must be of type `string[]`","mimetypes")),!1):(t?.error((0,i.localize)(14180,"property `{0}` can be omitted and must be of type `string[]`","aliases")),!1):(t?.error((0,i.localize)(14177,"property `{0}` can be omitted and must be of type `string[]`","filenames")),!1):(t?.error((0,i.localize)(14176,"property `{0}` can be omitted and must be of type `string[]`","extensions")),!1):(t?.error((0,i.localize)(14174,"Empty value for `contributes.{0}`",b.name)),!1)}x=(0,t.__decorate)([(0,t.__param)(0,c.IExtensionService),(0,t.__param)(1,s.IConfigurationService),(0,t.__param)(2,a.IEnvironmentService),(0,t.__param)(3,p.ILogService)],x),e.s(["WorkbenchLanguageService",0,x,"languagesExtPoint",0,b])},163731,e=>{"use strict";var t,i,n,o,r,s,a,l,c=e.i(600345);function d(e){return!!e&&"function"==typeof e.getEditorType&&e.getEditorType()===c.EditorType.ICodeEditor}function p(e){return!!e&&"function"==typeof e.getEditorType&&e.getEditorType()===c.EditorType.IDiffEditor}function u(e){return!!e&&"object"==typeof e&&"function"==typeof e.onDidChangeActiveEditor}(t=r||(r={}))[t.EXACT=0]="EXACT",t[t.ABOVE=1]="ABOVE",t[t.BELOW=2]="BELOW",(i=s||(s={}))[i.TOP_RIGHT_CORNER=0]="TOP_RIGHT_CORNER",i[i.BOTTOM_RIGHT_CORNER=1]="BOTTOM_RIGHT_CORNER",i[i.TOP_CENTER=2]="TOP_CENTER",(n=a||(a={}))[n.UNKNOWN=0]="UNKNOWN",n[n.TEXTAREA=1]="TEXTAREA",n[n.GUTTER_GLYPH_MARGIN=2]="GUTTER_GLYPH_MARGIN",n[n.GUTTER_LINE_NUMBERS=3]="GUTTER_LINE_NUMBERS",n[n.GUTTER_LINE_DECORATIONS=4]="GUTTER_LINE_DECORATIONS",n[n.GUTTER_VIEW_ZONE=5]="GUTTER_VIEW_ZONE",n[n.CONTENT_TEXT=6]="CONTENT_TEXT",n[n.CONTENT_EMPTY=7]="CONTENT_EMPTY",n[n.CONTENT_VIEW_ZONE=8]="CONTENT_VIEW_ZONE",n[n.CONTENT_WIDGET=9]="CONTENT_WIDGET",n[n.OVERVIEW_RULER=10]="OVERVIEW_RULER",n[n.SCROLLBAR=11]="SCROLLBAR",n[n.OVERLAY_WIDGET=12]="OVERLAY_WIDGET",n[n.OUTSIDE_EDITOR=13]="OUTSIDE_EDITOR",(o=l||(l={}))[o.Idle=0]="Idle",o[o.ComputingDiff=1]="ComputingDiff",o[o.DiffComputed=2]="DiffComputed",e.s(["ContentWidgetPositionPreference",0,r,"MouseTargetType",0,a,"OverlayWidgetPositionPreference",0,s,"getCodeEditor",0,function(e){return d(e)?e:p(e)?e.getModifiedEditor():u(e)&&d(e.activeCodeEditor)?e.activeCodeEditor:null},"getIEditor",0,function(e){return d(e)||p(e)?e:null},"isCodeEditor",0,d,"isCompositeEditor",0,u,"isDiffEditor",0,p])},407791,e=>{"use strict";let t=(0,e.i(488259).createDecorator)("ILanguageFeaturesService");e.s(["ILanguageFeaturesService",0,t])},531452,e=>{"use strict";var t=e.i(611130);e.i(71224);var i=e.i(229081),n=e.i(4680),o=e.i(314122);e.s(["bindContextKey",0,function(e,i,r,s=n.DebugLocation.ofCaller()){let a=e.bindTo(i),l=new t.DisposableStore;return(0,o.derivedOpts)({debugName:()=>`Set Context Key "${e.key}"`},e=>{let t=r(e);return a.set(t),t},s).recomputeInitiallyAndOnChange(l),l},"observableConfigValue",0,function(e,t,o,r=n.DebugLocation.ofCaller()){return(0,i.observableFromEventOpts)({debugName:()=>`Configuration Key "${e}"`},t=>o.onDidChangeConfiguration(i=>{i.affectsConfiguration(e)&&t(i)}),()=>o.getValue(e)??t,r)}])},454683,e=>{"use strict";e.s(["WebWorkerDescriptor",0,class{constructor(e){this.esmModuleLocation=e.esmModuleLocation,this.esmModuleLocationBundler=e.esmModuleLocationBundler,this.label=e.label}}])},112231,e=>{"use strict";let t=(0,e.i(488259).createDecorator)("textMateTokenizationFeature");e.s(["ITextMateTokenizationService",0,t])},88124,e=>{"use strict";let t="editor.semanticHighlighting";e.s(["SEMANTIC_HIGHLIGHTING_SETTING_ID",0,t,"isSemanticColoringEnabled",0,function(e,i,n){let o=n.getValue(t,{overrideIdentifier:e.getLanguageId(),resource:e.uri})?.enabled;return"boolean"==typeof o?o:i.getColorTheme().semanticHighlighting}])},561460,e=>{"use strict";var t=e.i(650289),i=e.i(292608);e.s(["getParseErrorMessage",0,function(e){switch(e){case i.ParseErrorCode.InvalidSymbol:return(0,t.localize)(111,"Invalid symbol");case i.ParseErrorCode.InvalidNumberFormat:return(0,t.localize)(112,"Invalid number format");case i.ParseErrorCode.PropertyNameExpected:return(0,t.localize)(113,"Property name expected");case i.ParseErrorCode.ValueExpected:return(0,t.localize)(114,"Value expected");case i.ParseErrorCode.ColonExpected:return(0,t.localize)(115,"Colon expected");case i.ParseErrorCode.CommaExpected:return(0,t.localize)(116,"Comma expected");case i.ParseErrorCode.CloseBraceExpected:return(0,t.localize)(117,"Closing brace expected");case i.ParseErrorCode.CloseBracketExpected:return(0,t.localize)(118,"Closing bracket expected");case i.ParseErrorCode.EndOfFileExpected:return(0,t.localize)(119,"End of file expected");default:return""}}])},455162,e=>{"use strict";var t=e.i(488259);let i=(0,t.createDecorator)("extensionGalleryService"),n=(0,t.createDecorator)("extensionManagementService"),o=(0,t.createDecorator)("IGlobalExtensionEnablementService"),r=(0,t.createDecorator)("IExtensionTipsService"),s=(0,t.createDecorator)("IAllowedExtensionsService");e.s(["IAllowedExtensionsService",0,s,"IExtensionGalleryService",0,i,"IExtensionManagementService",0,n,"IExtensionTipsService",0,r,"IGlobalExtensionEnablementService",0,o])},542034,e=>{"use strict";let t=(0,e.i(488259).createDecorator)("extensionsWorkbenchService");e.s(["IExtensionsWorkbenchService",0,t])},322544,e=>{"use strict";let t=(0,e.i(488259).createDecorator)("IUserDataInitializationService");e.s(["IUserDataInitializationService",0,t])},262072,e=>{"use strict";var t=e.i(650289);let i=Object.freeze({View:(0,t.localize2)(1740,"View"),Help:(0,t.localize2)(1741,"Help"),Test:(0,t.localize2)(1742,"Test"),File:(0,t.localize2)(1743,"File"),Preferences:(0,t.localize2)(1744,"Preferences"),Developer:(0,t.localize2)(1745,"Developer")});e.s(["Categories",0,i])},176876,e=>{"use strict";var t=e.i(253642);let i=(0,e.i(488259).refineServiceDecorator)(t.IEnvironmentService);e.s(["IBrowserWorkbenchEnvironmentService",0,i])},633450,e=>{"use strict";var t=e.i(702320),i=e.i(693162),n=e.i(802136),o=e.i(429200),r=e.i(652731),s=e.i(536367);let a=/(?:\/|^)(?:([^\/]+)\/)?([^\/]+)$/;function l(e){return e.replace(/[\s]/g,"/")}e.s(["fileIconSelectorEscape",0,l,"getIconClasses",0,function(e,c,d,p,u){if(s.ThemeIcon.isThemeIcon(u))return[`codicon-${u.id}`,"predefined-file-icon"];if(n.URI.isUri(u))return[];let h=p===r.FileKind.ROOT_FOLDER?["rootfolder-icon"]:p===r.FileKind.FOLDER?["folder-icon"]:["file-icon"];if(d){let n;if(d.scheme===t.Schemas.data)n=i.DataUri.parseMetaData(d).get(i.DataUri.META_DATA_LABEL);else{let e=d.path.match(a);e?(n=l(e[2].toLowerCase()),e[1]&&h.push(`${l(e[1].toLowerCase())}-name-dir-icon`)):n=l(d.authority.toLowerCase())}if(p===r.FileKind.ROOT_FOLDER)h.push(`${n}-root-name-folder-icon`);else if(p===r.FileKind.FOLDER)h.push(`${n}-name-folder-icon`);else{if(n){if(h.push(`${n}-name-file-icon`),h.push("name-file-icon"),n.length<=255){let e=n.split(".");for(let t=1;t<e.length;t++)h.push(`${e.slice(t).join(".")}-ext-file-icon`)}h.push("ext-file-icon")}let r=function(e,n,r){if(!r)return null;let s=null;if(r.scheme===t.Schemas.data){let e=i.DataUri.parseMetaData(r).get(i.DataUri.META_DATA_MIME);e&&(s=n.getLanguageIdByMimeType(e))}else{let t=e.getModel(r);t&&(s=t.getLanguageId())}return s&&s!==o.PLAINTEXT_LANGUAGE_ID?s:n.guessLanguageIdByFilepathOrFirstLine(r)}(e,c,d);r&&h.push(`${l(r)}-lang-file-icon`)}}return h},"getIconClassesForLanguageId",0,function(e){return["file-icon",`${l(e)}-lang-file-icon`]}])},905192,e=>{"use strict";var t=e.i(488259),i=e.i(970672);let n=(0,t.refineServiceDecorator)(i.IThemeService);e.s(["IWorkbenchThemeService",0,n])},509046,e=>{"use strict";let t=(0,e.i(488259).createDecorator)("preferencesService");e.s(["IPreferencesService",0,t])},317317,e=>{"use strict";let t=(0,e.i(488259).createDecorator)("hostColorSchemeService");e.s(["IHostColorSchemeService",0,t])},991307,425761,e=>{"use strict";let t=(0,e.i(488259).createDecorator)("IUserDataProfilesService");async function i(e){await new Promise(t=>setTimeout(t,e))}e.s(["IUserDataProfilesService",0,t],991307),e.s(["memoizedConstructor",0,function(e){var t;let i;return new Proxy(e,{construct:(t=(t,i)=>Reflect.construct(e,i),i=null,(...e)=>(null==i&&(i=t(...e)),i))})},"throttle",0,function(e,t,n){let o=Promise.resolve(),r=null;return async s=>{null==r?(r=s,o=o.then(async()=>await i(n)).then(async()=>{let t=r;r=null,await e(t)})):r=t(r,s),await o}},"unsupported",0,function(){throw Error("unsupported")}],425761)},13853,e=>{"use strict";var t,i,n=e.i(601293),o=e.i(561295);function r(e,t,i){e.has(t)?e.get(t).push(i):e.set(t,[i])}(t=i||(i={}))[t.None=0]="None",t[t.Indent=1]="Indent",t[t.IndentOutdent=2]="IndentOutdent",t[t.Outdent=3]="Outdent",e.s(["AutoClosingPairs",0,class{constructor(e){for(const t of(this.autoClosingPairsOpenByStart=new Map,this.autoClosingPairsOpenByEnd=new Map,this.autoClosingPairsCloseByStart=new Map,this.autoClosingPairsCloseByEnd=new Map,this.autoClosingPairsCloseSingleChar=new Map,e))r(this.autoClosingPairsOpenByStart,t.open.charAt(0),t),r(this.autoClosingPairsOpenByEnd,t.open.charAt(t.open.length-1),t),r(this.autoClosingPairsCloseByStart,t.close.charAt(0),t),r(this.autoClosingPairsCloseByEnd,t.close.charAt(t.close.length-1),t),1===t.close.length&&1===t.open.length&&r(this.autoClosingPairsCloseSingleChar,t.close,t)}},"IndentAction",0,i,"StandardAutoClosingPairConditional",0,class{constructor(e){if(this._neutralCharacter=null,this._neutralCharacterSearched=!1,this.open=e.open,this.close=e.close,this._inString=!0,this._inComment=!0,this._inRegEx=!0,Array.isArray(e.notIn))for(let t=0,i=e.notIn.length;t<i;t++)switch(e.notIn[t]){case"string":this._inString=!1;break;case"comment":this._inComment=!1;break;case"regex":this._inRegEx=!1}}isOK(e){switch(e){case o.StandardTokenType.Other:return!0;case o.StandardTokenType.Comment:return this._inComment;case o.StandardTokenType.String:return this._inString;case o.StandardTokenType.RegEx:return this._inRegEx}}shouldAutoClose(e,t){if(0===e.getTokenCount())return!0;let i=e.findTokenIndexAtOffset(t-2),n=e.getStandardTokenType(i);return this.isOK(n)}_findNeutralCharacterInRange(e,t){for(let i=e;i<=t;i++){let e=String.fromCharCode(i);if(!this.open.includes(e)&&!this.close.includes(e))return e}return null}findNeutralCharacter(){return!this._neutralCharacterSearched&&(this._neutralCharacterSearched=!0,this._neutralCharacter||(this._neutralCharacter=this._findNeutralCharacterInRange(n.CharCode.Digit0,n.CharCode.Digit9)),this._neutralCharacter||(this._neutralCharacter=this._findNeutralCharacterInRange(n.CharCode.a,n.CharCode.z)),this._neutralCharacter||(this._neutralCharacter=this._findNeutralCharacterInRange(n.CharCode.A,n.CharCode.Z))),this._neutralCharacter}}])},715658,689318,508898,e=>{"use strict";var t=e.i(781808),i=e.i(611130),n=e.i(98342),o=e.i(786091),r=e.i(771275);function s(e,t,i,n,a,l){if(Array.isArray(e)){let o=0;for(let r of e){let e=s(r,t,i,n,a,l);if(10===e)return e;e>o&&(o=e)}return o}if("string"==typeof e)return n?"*"===e?5:10*(e===i):0;if(!e)return 0;{let{language:s,pattern:c,scheme:d,hasAccessToAllModels:p,notebookType:u}=e;if(!n&&!p)return 0;u&&a&&(t=a);let h=0;if(d)if(d===t.scheme)h=10;else{if("*"!==d)return 0;h=5}if(s)if(s===i)h=10;else{if("*"!==s)return 0;h=Math.max(h,5)}if(u)if(u===l)h=10;else{if("*"!==u||void 0===l)return 0;h=Math.max(h,5)}if(c){let e;if(!((e="string"==typeof c?c:{...c,base:(0,r.normalize)(c.base)})===t.fsPath||(0,o.match)(e,t.fsPath)))return 0;h=10}return h}}e.s(["score",0,s,"targetsNotebooks",0,function e(t){return"string"!=typeof t&&(Array.isArray(t)?t.some(e):!!t.notebookType)}],689318);class a{constructor(e,t,i,n,o){this.uri=e,this.languageId=t,this.notebookUri=i,this.notebookType=n,this.recursive=o}equals(e){return this.notebookType===e.notebookType&&this.languageId===e.languageId&&this.uri.toString()===e.uri.toString()&&this.notebookUri?.toString()===e.notebookUri?.toString()&&this.recursive===e.recursive}}class l{get onDidChange(){return this._onDidChange.event}constructor(e){this._notebookInfoResolver=e,this._clock=0,this._entries=[],this._onDidChange=new t.Emitter}register(e,t){let n={selector:e,provider:t,_score:-1,_time:this._clock++};return this._entries.push(n),this._lastCandidate=void 0,this._onDidChange.fire(this._entries.length),(0,i.toDisposable)(()=>{if(n){let e=this._entries.indexOf(n);e>=0&&(this._entries.splice(e,1),this._lastCandidate=void 0,this._onDidChange.fire(this._entries.length),n=void 0)}})}has(e){return this.all(e).length>0}all(e){if(!e)return[];this._updateScores(e,!1);let t=[];for(let e of this._entries)e._score>0&&t.push(e.provider);return t}allNoModel(){return this._entries.map(e=>e.provider)}ordered(e,t=!1){let i=[];return this._orderedForEach(e,t,e=>i.push(e.provider)),i}orderedGroups(e){let t,i,n=[];return this._orderedForEach(e,!1,e=>{t&&i===e._score?t.push(e.provider):(i=e._score,t=[e.provider],n.push(t))}),n}_orderedForEach(e,t,i){for(let n of(this._updateScores(e,t),this._entries))n._score>0&&i(n)}_updateScores(e,t){let i=this._notebookInfoResolver?.(e.uri),o=i?new a(e.uri,e.getLanguageId(),i.uri,i.type,t):new a(e.uri,e.getLanguageId(),void 0,void 0,t);if(!this._lastCandidate?.equals(o)){for(let i of(this._lastCandidate=o,this._entries))if(i._score=s(i.selector,o.uri,o.languageId,(0,n.shouldSynchronizeModel)(e),o.notebookUri,o.notebookType),function e(t){return"string"!=typeof t&&(Array.isArray(t)?t.every(e):!!t.exclusive)}(i.selector)&&i._score>0)if(t)i._score=0;else{for(let e of this._entries)e._score=0;i._score=1e3;break}this._entries.sort(l._compareByScoreAndTime)}}static _compareByScoreAndTime(e,t){return e._score<t._score?1:e._score>t._score?-1:c(e.selector)&&!c(t.selector)?1:!c(e.selector)&&c(t.selector)?-1:e._time<t._time?1:e._time>t._time?-1:0}}function c(e){return"string"!=typeof e&&(Array.isArray(e)?e.some(c):!!e.isBuiltin)}e.s(["LanguageFeatureRegistry",0,l],715658);let d=(0,e.i(488259).createDecorator)("ILanguageStatusService");e.s(["ILanguageStatusService",0,d],508898)}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,60293,e=>{"use strict";var t=e.i(816709),a=e.i(437122);let i=(0,t.create)((e,t)=>({favorites:[],loadedWorkspaceId:null,pendingFavorite:null,load:async i=>{let{loadedWorkspaceId:s}=t();if(s!==i)try{let t=await (0,a.fetchWithAuth)(`/api/workspaces/${i}/code-favorites`);if(t.ok){let a=await t.json();e({favorites:a,loadedWorkspaceId:i})}else e({favorites:[],loadedWorkspaceId:i})}catch{e({favorites:[],loadedWorkspaceId:i})}},addFavorite:async i=>{let{loadedWorkspaceId:s}=t();if(s)try{let t=await (0,a.fetchWithAuth)(`/api/workspaces/${s}/code-favorites`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(i)});if(t.ok){let a=await t.json();e(e=>({favorites:[a,...e.favorites]}))}}catch{}},removeFavorite:async i=>{let{loadedWorkspaceId:s}=t();if(s)try{(await (0,a.fetchWithAuth)(`/api/workspaces/${s}/code-favorites/${encodeURIComponent(i)}`,{method:"DELETE"})).ok&&e(e=>({favorites:e.favorites.filter(e=>e.id!==i)}))}catch{}},clearFavorites:async t=>{try{(await (0,a.fetchWithAuth)(`/api/workspaces/${t}/code-favorites`,{method:"DELETE"})).ok&&e({favorites:[],loadedWorkspaceId:t})}catch{}},setPendingFavorite:t=>e({pendingFavorite:t})}));e.s(["useCodeFavoritesStore",0,i])},822619,e=>{"use strict";var t=e.i(344180),a=e.i(764556),i=e.i(60293),s=e.i(691223),o=e.i(381253),r=e.i(137340);let n=(0,e.i(433721).default)("map-pin",[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]]);var c=e.i(159619),l=e.i(260218),d=e.i(191118),p=e.i(360112);function h({favorite:e,workspaceId:i,onJump:s,onRemove:d}){let u=(0,a.useCallback)(t=>{t.stopPropagation();let a=`${e.path}:${e.line}:${e.endLine}`;navigator.clipboard.writeText(a).then(()=>{p.toast.success(`已复制: ${a}`)})},[e]);return(0,t.jsxs)("div",{className:"group border rounded-lg p-3 hover:bg-accent/50 cursor-pointer transition-colors",onClick:()=>{s(i,e.path,e.line,e.column,e.endLine,e.endColumn)},children:[(0,t.jsxs)("div",{className:"flex items-start justify-between gap-2",children:[(0,t.jsxs)("div",{className:"flex items-center gap-1.5 min-w-0",children:[(0,t.jsx)(o.FileCode,{size:14,className:"shrink-0 text-muted-foreground"}),(0,t.jsx)("span",{className:"text-sm font-medium truncate",children:e.label||e.path})]}),(0,t.jsxs)("div",{className:"flex items-center gap-0.5 shrink-0",children:[(0,t.jsxs)("span",{className:"flex items-center gap-0.5 text-[10px] text-muted-foreground mr-0.5",children:[(0,t.jsx)(n,{size:10}),e.endLine>e.line?`${e.line}-${e.endLine}`:e.line]}),(0,t.jsx)(l.Button,{variant:"ghost",size:"icon",className:"h-5 w-5 opacity-0 group-hover:opacity-100 transition-opacity",onClick:u,title:"复制代码位置",children:(0,t.jsx)(c.Copy,{size:12})}),(0,t.jsx)(l.Button,{variant:"ghost",size:"icon",className:"h-5 w-5 opacity-0 group-hover:opacity-100 transition-opacity",onClick:t=>{t.stopPropagation(),d(e.id)},children:(0,t.jsx)(r.Trash2,{size:12})})]})]}),(0,t.jsx)("div",{className:"text-xs text-muted-foreground truncate mt-1",children:e.path}),e.snippet&&(0,t.jsx)("pre",{className:"text-[11px] text-muted-foreground bg-muted/50 rounded px-2 py-1 mt-1.5 max-h-16 overflow-auto whitespace-pre break-all font-mono",children:e.snippet})]})}e.s(["CodeFavoritesPanel",0,function({workspaceId:e}){let{favorites:r,load:n,removeFavorite:c}=(0,i.useCodeFavoritesStore)(),l=(0,s.useEditorStore)(e=>e.jumpToPosition);return((0,a.useEffect)(()=>{n(e)},[e,n]),0===r.length)?(0,t.jsxs)("div",{className:"flex flex-col items-center justify-center h-full text-muted-foreground text-sm gap-2",children:[(0,t.jsx)(o.FileCode,{size:32,className:"opacity-30"}),(0,t.jsx)("span",{children:"暂无代码收藏"}),(0,t.jsx)("span",{className:"text-xs",children:"在编辑器中右键 → 添加到代码收藏"})]}):(0,t.jsx)(d.ScrollArea,{className:"h-full",children:(0,t.jsx)("div",{className:"grid gap-2 p-2",style:{gridTemplateColumns:"repeat(auto-fill, minmax(250px, 1fr))"},children:r.map(a=>(0,t.jsx)(h,{favorite:a,workspaceId:e,onJump:l,onRemove:c},a.id))})})}],822619)},306649,e=>{e.n(e.i(822619))}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,191871,e=>{"use strict";var t=e.i(344180),s=e.i(887836),l=e.i(764556),a=e.i(799543),o=e.i(361031),r=e.i(233297);let n=(0,s.default)(()=>e.A(638150).then(e=>e.MobileTabBar),{loadableGenerated:{modules:[404069]},ssr:!1,loading:()=>null}),c=(0,s.default)(()=>e.A(255299).then(e=>e.WorkspaceShell),{loadableGenerated:{modules:[817465]},ssr:!1,loading:()=>(0,t.jsx)("div",{className:"h-full flex items-center justify-center text-muted-foreground",children:"Loading..."})});e.s(["WorkspaceClient",0,function(){let e=function(){let e=(0,a.useSearchParams)().get("workspaceId")||"",[t,s]=(0,l.useState)("");return(0,l.useEffect)(()=>{let e=window.location.pathname.match(/\/workspace\/([^/]+)/);s(e?.[1]||"")},[]),(0,l.useMemo)(()=>e||t,[t,e])}(),s=(0,a.useRouter)(),[i,u]=(0,l.useState)(null),[d,h]=(0,l.useState)(null),f=(0,o.useWorkspaceStore)(e=>e.upsertWorkspace);return((0,l.useEffect)(()=>{e&&fetch(`/api/workspaces/${e}`).then(e=>{if(!e.ok)throw Error("Not found");return e.json()}).then(t=>{u(t),f(t),localStorage.setItem("lastWorkspaceId",e)}).catch(e=>h(e.message))},[e,f]),d)?(0,t.jsxs)("div",{className:"h-full flex flex-col items-center justify-center gap-4",children:[(0,t.jsx)("p",{className:"text-destructive",children:d}),(0,t.jsx)("button",{type:"button",onClick:()=>(0,r.tauriNavigate)(s,"/"),className:"text-sm underline",children:"Back to home"})]}):i?(0,t.jsxs)("div",{className:"h-full min-h-0 flex flex-col overflow-hidden",children:[(0,t.jsx)(n,{}),(0,t.jsx)("div",{className:"min-h-0 flex-1 overflow-hidden",children:(0,t.jsx)(c,{workspaceId:i.id,boundDirs:i.boundDirs})})]}):(0,t.jsx)("div",{className:"h-full flex items-center justify-center text-muted-foreground",children:"Loading..."})}])},638150,e=>{e.v(t=>Promise.all(["static/chunks/17g-0pqre.anw.js"].map(t=>e.l(t))).then(()=>t(404069)))},255299,e=>{e.v(t=>Promise.all(["static/chunks/0typj55ox8d5i.js","static/chunks/0ogpc3f3keopc.js"].map(t=>e.l(t))).then(()=>t(817465)))}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,576061,s=>{s.v(t=>Promise.all(["static/chunks/04fk~8rnrvs44.js"].map(t=>s.l(t))).then(()=>t(836670)))},510304,s=>{s.v(t=>Promise.all(["static/chunks/0j00r2f_n-.lx.js"].map(t=>s.l(t))).then(()=>t(193971)))},833255,s=>{s.v(t=>Promise.all(["static/chunks/07xvadmf~8bow.js","static/chunks/0a1rewz7xr-xi.js"].map(t=>s.l(t))).then(()=>t(140976)))}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,940361,e=>{"use strict";var t=e.i(344180);e.s([],2365),e.i(2365);var n=e.i(764556),r=e.i(394822),o=e.i(174465),i=e.i(648224),a=e.i(35359);e.i(8890);var s=e.i(422561),u=e.i(526850),l=e.i(232449),c=e.i(410421),d=e.i(150129),f=e.i(969490),m=e.i(602453),g=e.i(817955),x=e.i(742665),h=e.i(87709);let p=n.forwardRef(function(e,t){let{render:r,className:i,style:p,...v}=e,{setAnchor:b,actionsRef:M,internalBackdropRef:R,backdropRef:j,positionerRef:w,allowMouseUpTriggerRef:y,initialCursorPointRef:C,rootId:S}=(0,o.useContextMenuRootContext)(!1),{store:k}=(0,a.useMenuRootContext)(!1),I=k.useState("open"),T=k.useState("disabled"),N=n.useRef(null),L=n.useRef(null),P=(0,l.useTimeout)(),A=(0,l.useTimeout)(),E=n.useRef(!1);function O(e,t,n){let r=n.type.startsWith("touch");C.current={x:e,y:t},b({getBoundingClientRect:()=>DOMRect.fromRect({width:10*!!r,height:10*!!r,x:e,y:t})}),E.current=!1,M.current?.setOpen(!0,(0,m.createChangeEventDetails)(x.REASONS.triggerPress,n)),A.start(500,()=>{E.current=!0})}function z(){P.clear(),L.current=null}return n.useEffect(()=>{let e=(0,u.ownerDocument)(N.current);return(0,s.addEventListener)(e,"contextmenu",function(e){if(T)return;let t=(0,c.getTarget)(e);((0,c.contains)(N.current,t)||(0,c.contains)(R.current,t)||(0,c.contains)(j.current,t))&&e.preventDefault()})},[j,T,R]),(0,f.useRenderElement)("div",e,{state:{open:I},ref:[N,t],props:[{onContextMenu:function(e){if(T)return;y.current=!0,(0,d.stopEvent)(e),O(e.clientX,e.clientY,e.nativeEvent);let t=(0,u.ownerDocument)(N.current);(0,s.addEventListener)(t,"mouseup",e=>{if(y.current=!1,!E.current)return;A.clear(),E.current=!1;let t=(0,c.getTarget)(e);(0,c.contains)(w.current,t)||S&&t&&(0,h.findRootOwnerId)(t)===S||M.current?.setOpen(!1,(0,m.createChangeEventDetails)(x.REASONS.cancelOpen,e))},{once:!0})},onTouchStart:function(e){if(!T&&(y.current=!1,1===e.touches.length)){e.stopPropagation();let t=e.touches[0];L.current={x:t.clientX,y:t.clientY},P.start(500,()=>{L.current&&O(L.current.x,L.current.y,e.nativeEvent)})}},onTouchMove:function(e){if(P.isStarted()&&L.current&&1===e.touches.length){let t=e.touches[0],n=Math.abs(t.clientX-L.current.x),r=Math.abs(t.clientY-L.current.y);(n>10||r>10)&&P.clear()}},onTouchEnd:z,onTouchCancel:z,style:{WebkitTouchCallout:"none"}},v],stateAttributesMapping:g.pressableTriggerOpenStateMapping})});var v=e.i(487455),b=e.i(293209),M=e.i(503662),R=e.i(33427),j=e.i(324573),w=e.i(582883),y=e.i(277658),C=e.i(349204),S=e.i(28051),k=e.i(597375),I=e.i(81752),T=e.i(59354),N=e.i(300637),L=e.i(281478),P=e.i(65255),A=e.i(327794),E=e.i(362962);e.s(["Arrow",()=>j.MenuArrow,"Backdrop",()=>v.MenuBackdrop,"CheckboxItem",()=>S.MenuCheckboxItem,"CheckboxItemIndicator",()=>k.MenuCheckboxItemIndicator,"Group",()=>w.MenuGroup,"GroupLabel",()=>y.MenuGroupLabel,"Item",()=>C.MenuItem,"LinkItem",()=>I.MenuLinkItem,"Popup",()=>R.MenuPopup,"Portal",()=>b.MenuPortal,"Positioner",()=>M.MenuPositioner,"RadioGroup",()=>T.MenuRadioGroup,"RadioItem",()=>N.MenuRadioItem,"RadioItemIndicator",()=>L.MenuRadioItemIndicator,"Root",0,function(e){let[s,u]=n.useState({getBoundingClientRect:()=>DOMRect.fromRect({width:0,height:0,x:0,y:0})}),l=n.useRef(null),c=n.useRef(null),d=n.useRef(null),f=n.useRef(null),m=n.useRef(!0),g=n.useRef(null),x=(0,r.useId)(),h=n.useMemo(()=>({anchor:s,setAnchor:u,actionsRef:d,backdropRef:l,internalBackdropRef:c,positionerRef:f,allowMouseUpTriggerRef:m,initialCursorPointRef:g,rootId:x}),[s,x]);return(0,t.jsx)(o.ContextMenuRootContext.Provider,{value:h,children:(0,t.jsx)(a.MenuRootContext.Provider,{value:void 0,children:(0,t.jsx)(i.Menu.Root,{...e})})})},"Separator",()=>E.Separator,"SubmenuRoot",()=>P.MenuSubmenuRoot,"SubmenuTrigger",()=>A.MenuSubmenuTrigger,"Trigger",0,p],912001);var O=e.i(912001),O=O,z=e.i(465458),D=e.i(932031);function B({className:e,align:n="start",alignOffset:r=4,side:o="right",sideOffset:i=0,...a}){return(0,t.jsx)(O.Portal,{children:(0,t.jsx)(O.Positioner,{className:"isolate z-50 outline-none",align:n,alignOffset:r,side:o,sideOffset:i,children:(0,t.jsx)(O.Popup,{"data-slot":"context-menu-content",className:(0,z.cn)("z-50 max-h-(--available-height) min-w-36 origin-(--transform-origin) overflow-x-hidden overflow-y-auto rounded-lg bg-popover p-1 text-popover-foreground shadow-md ring-1 ring-foreground/10 duration-100 outline-none data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",e),...a})})})}e.i(299648),e.s(["ContextMenu",0,function({...e}){return(0,t.jsx)(O.Root,{"data-slot":"context-menu",...e})},"ContextMenuContent",0,B,"ContextMenuItem",0,function({className:e,inset:n,variant:r="default",...o}){return(0,t.jsx)(O.Item,{"data-slot":"context-menu-item","data-inset":n,"data-variant":r,className:(0,z.cn)("group/context-menu-item relative flex cursor-default items-center gap-1.5 rounded-md px-1.5 py-1 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground data-inset:pl-7 data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 data-[variant=destructive]:focus:text-destructive dark:data-[variant=destructive]:focus:bg-destructive/20 data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 focus:*:[svg]:text-accent-foreground data-[variant=destructive]:*:[svg]:text-destructive",e),...o})},"ContextMenuSeparator",0,function({className:e,...n}){return(0,t.jsx)(O.Separator,{"data-slot":"context-menu-separator",className:(0,z.cn)("-mx-1 my-1 h-px bg-border",e),...n})},"ContextMenuSub",0,function({...e}){return(0,t.jsx)(O.SubmenuRoot,{"data-slot":"context-menu-sub",...e})},"ContextMenuSubContent",0,function({...e}){return(0,t.jsx)(B,{"data-slot":"context-menu-sub-content",className:"shadow-lg",side:"right",...e})},"ContextMenuSubTrigger",0,function({className:e,inset:n,children:r,...o}){return(0,t.jsxs)(O.SubmenuTrigger,{"data-slot":"context-menu-sub-trigger","data-inset":n,className:(0,z.cn)("flex cursor-default items-center gap-1.5 rounded-md px-1.5 py-1 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground data-inset:pl-7 data-open:bg-accent data-open:text-accent-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...o,children:[r,(0,t.jsx)(D.ChevronRightIcon,{className:"ml-auto"})]})},"ContextMenuTrigger",0,function({className:e,...n}){return(0,t.jsx)(O.Trigger,{"data-slot":"context-menu-trigger",className:(0,z.cn)("select-none",e),...n})}],940361)},212965,e=>{"use strict";let t=(0,e.i(433721).default)("arrow-down",[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]]);e.s(["ArrowDown",0,t],212965)},613812,e=>{"use strict";var t=e.i(344180);e.i(462506);var n=e.i(304271),r=e.i(764556),o=e.i(950396),i=e.i(564822),a=e.i(465458);let s=(0,e.i(433721).default)("funnel",[["path",{d:"M10 20a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341L21.74 4.67A1 1 0 0 0 21 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14z",key:"sc7q7i"}]]);e.s(["DiffViewer",0,function({oldContent:e,newContent:u,path:l,isBinary:c,compactDiff:d=!0}){let f,m=(f=l.split(".").pop()?.toLowerCase())?({ts:"typescript",tsx:"typescript",js:"javascript",jsx:"javascript",json:"json",md:"markdown",css:"css",html:"html",py:"python",rs:"rust",go:"go",yaml:"yaml",yml:"yaml"})[f]:void 0,g=(0,r.useRef)(null),{resolvedTheme:x}=(0,o.useTheme)(),h=(0,i.useIsMobile)(),[p,v]=(0,r.useState)(d),b=(0,r.useCallback)(e=>{g.current=e},[]);(0,r.useEffect)(()=>()=>{let e=g.current;e&&(e.setModel(null),g.current=null)},[]);let M=(0,r.useMemo)(()=>p?function(e,t){let n=e.split("\n"),r=t.split("\n"),o=n.length,i=r.length;if(e===t||o*i>4e6)return null;let a=Array.from({length:o+1},()=>Array(i+1).fill(0));for(let e=o-1;e>=0;e--)for(let t=i-1;t>=0;t--)n[e]===r[t]?a[e][t]=a[e+1][t+1]+1:a[e][t]=Math.max(a[e+1][t],a[e][t+1]);let s=new Set,u=new Set,l=0,c=0;for(;l<o&&c<i;)n[l]===r[c]?(s.add(l),u.add(c),l++,c++):a[l+1][c]>=a[l][c+1]?l++:c++;let d=new Set,f=new Set;for(let e=0;e<o;e++)if(!s.has(e))for(let t=Math.max(0,e-10);t<=Math.min(o-1,e+10);t++)d.add(t);for(let e=0;e<i;e++)if(!u.has(e))for(let t=Math.max(0,e-10);t<=Math.min(i-1,e+10);t++)f.add(t);function m(e){let t=Array.from(e).sort((e,t)=>e-t);if(0===t.length)return[];let n=[[t[0],t[0]]];for(let e=1;e<t.length;e++){let r=n[n.length-1];t[e]<=r[1]+1?r[1]=t[e]:n.push([t[e],t[e]])}return n}let g=m(d),x=m(f);if(0===g.length&&0===x.length)return null;let h="···";function p(e,t){let n=[];for(let r=0;r<t.length;r++){let[o,i]=t[r];(r>0||o>0)&&n.push(h);for(let t=o;t<=i;t++)n.push(e[t])}return t.length>0&&t[t.length-1][1]<e.length-1&&n.push(h),n}return{oldLines:p(n,g),newLines:p(r,x)}}(e,u):null,[p,e,u]),R=M?M.oldLines.join("\n"):e,j=M?M.newLines.join("\n"):u;return(0,t.jsxs)("div",{className:"h-full w-full flex flex-col",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between px-2 py-1 border-b bg-muted/30",children:[(0,t.jsx)("span",{className:"text-xs text-muted-foreground font-mono truncate",children:l}),(0,t.jsxs)("button",{onClick:()=>v(e=>!e),className:(0,a.cn)("flex items-center gap-1 text-xs px-1.5 py-0.5 rounded transition-colors",p?"text-blue-600 dark:text-blue-400 bg-blue-500/10":"text-muted-foreground hover:text-foreground"),title:p?"显示全部代码":"只看修改部分",children:[(0,t.jsx)(s,{className:"h-3 w-3"}),p?"紧凑":"全部"]})]}),(0,t.jsx)("div",{className:"flex-1",children:c?(0,t.jsxs)("div",{className:"flex items-center justify-center h-full text-muted-foreground text-sm gap-2",children:[(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,t.jsx)("path",{d:"M14.5 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7.5L14.5 2z"}),(0,t.jsx)("polyline",{points:"14 2 14 8 20 8"})]}),"二进制文件,不支持预览"]}):(0,t.jsx)(n.DiffEditor,{original:R,modified:j,language:m,theme:"dark"===x?"vs-dark":"vs",onMount:b,options:{readOnly:!0,renderSideBySide:!h,minimap:{enabled:!1},scrollBeyondLastLine:!1,fontSize:13,lineNumbers:"on"}})})]})}],613812)}]);
|