@agent-spaces/server 0.3.64 → 0.3.67
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.js +4 -0
- package/dist/adapters/claude-code-runtime/index.js +68 -2
- package/dist/adapters/claude-code-runtime/message-format.js +26 -0
- package/dist/adapters/claude-code-runtime/sdk-config.js +12 -0
- package/dist/adapters/codex-function-tool-bridge.js +144 -0
- package/dist/adapters/codex-runtime.js +23 -4
- package/dist/adapters/git.js +25 -7
- package/dist/adapters/hermes-runtime.js +210 -0
- package/dist/agents/agent-message-parts.js +1 -1
- package/dist/agents/commit-agent.js +4 -2
- package/dist/agents/issue-task-controller.js +75 -4
- package/dist/agents/pull-request-agent.js +115 -0
- package/dist/agents/scheduler-agent.js +1 -1
- package/dist/app.js +12 -70
- package/dist/middleware/auth.js +1 -1
- package/dist/package.json +2 -1
- package/dist/routes/agent-sse.js +2 -0
- package/dist/routes/agent.js +3 -0
- package/dist/routes/database.js +1 -0
- package/dist/routes/git.js +197 -317
- package/dist/routes/issue.js +1 -1
- package/dist/routes/notification.js +10 -0
- package/dist/routes/robot-account.js +68 -0
- package/dist/routes/version.js +94 -0
- package/dist/routes/worktree.js +93 -0
- package/dist/services/agent.js +37 -3
- package/dist/services/builtin-tools/kanban-tools.js +4 -0
- package/dist/services/git-operation-log.js +40 -0
- package/dist/services/global-wechat-qr.js +72 -0
- package/dist/services/hook-engine.js +175 -17
- package/dist/services/notification-center.js +9 -0
- package/dist/services/notification-hub/bot-agent.js +3 -1
- package/dist/services/notification-hub/service.js +12 -2
- package/dist/services/robot-account.js +34 -0
- package/dist/services/version.js +59 -0
- package/dist/services/workflow-command-runner.js +23 -0
- package/dist/services/workflow.js +25 -8
- package/dist/services/workspace.js +25 -1
- package/dist/services/worktree.js +207 -0
- package/dist/storage/robot-account-store.js +39 -0
- package/dist/storage/worktree-store.js +33 -0
- package/dist/web/404.html +1 -1
- package/dist/web/__next.__PAGE__.txt +4 -4
- package/dist/web/__next._full.txt +23 -25
- 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/{0n6_4so_afuwk.js → 0-92u-tiuy40a.js} +4 -4
- package/dist/web/_next/static/chunks/{0vbqaynjq8ga..js → 0-yizd8osmas2.js} +1 -1
- package/dist/web/_next/static/chunks/0.ln~3mnv8.69.js +1 -0
- package/dist/web/_next/static/chunks/{0iuf30t0rjsjv.js → 01y3e9pemva7b.js} +10 -10
- package/dist/web/_next/static/chunks/02802taez976w.js +67 -0
- package/dist/web/_next/static/chunks/02l~tmzrgny.~.js +1 -0
- package/dist/web/_next/static/chunks/033.awk90g6eh.js +1 -0
- package/dist/web/_next/static/chunks/03f1bwuynjdmk.js +1 -0
- package/dist/web/_next/static/chunks/04cb4kc9r2pd1.js +1 -0
- package/dist/web/_next/static/chunks/04de6ha5_e3pp.js +1 -0
- package/dist/web/_next/static/chunks/06.kdsa9rr2h1.js +1 -0
- package/dist/web/_next/static/chunks/09he0p79ov1rn.js +1 -0
- package/dist/web/_next/static/chunks/09vpocs4zuc8h.js +1 -0
- package/dist/web/_next/static/chunks/0_o2exgr0e_nh.js +1 -0
- package/dist/web/_next/static/chunks/{0xbaakj0dfc0..js → 0_y9nskc-xt2k.js} +1 -1
- package/dist/web/_next/static/chunks/0clnj-1fi6u8j.js +3 -0
- package/dist/web/_next/static/chunks/0gv40by0zzxs_.js +1 -0
- package/dist/web/_next/static/chunks/0iusr8y88.kjg.js +1 -0
- package/dist/web/_next/static/chunks/{04a4vsq2wknm4.js → 0j-8418fxvkd1.js} +1 -1
- package/dist/web/_next/static/chunks/0j-l7l_k9jt45.js +1 -0
- package/dist/web/_next/static/chunks/0j.wxxyoclma5.js +1 -0
- package/dist/web/_next/static/chunks/0jq.16sozqik..js +3 -0
- package/dist/web/_next/static/chunks/0jw8xdk_fpnp0.css +1 -0
- package/dist/web/_next/static/chunks/0l1lkd-wcotma.js +1 -0
- package/dist/web/_next/static/chunks/0ncxf_zr4n839.js +1 -0
- package/dist/web/_next/static/chunks/0ndo7um~v7vco.js +1 -0
- package/dist/web/_next/static/chunks/0ngk.~kan8wq_.js +1 -0
- package/dist/web/_next/static/chunks/0p3h-h3zj5ujg.js +30 -0
- package/dist/web/_next/static/chunks/0pm-un~-sy3rl.js +1 -0
- package/dist/web/_next/static/chunks/0rt9bofnn6qvn.js +1 -0
- package/dist/web/_next/static/chunks/0t64.9jd00hio.js +3 -0
- package/dist/web/_next/static/chunks/0taui9--5n6-5.js +1 -0
- package/dist/web/_next/static/chunks/0ty39169lh~z3.js +1 -0
- package/dist/web/_next/static/chunks/0uxzi~9b~k4mn.js +31 -0
- package/dist/web/_next/static/chunks/0v8nof~waedlu.js +1 -0
- package/dist/web/_next/static/chunks/{0ctg5qmw7uu.1.js → 0vcfoagnpf.aw.js} +3 -3
- package/dist/web/_next/static/chunks/{08ckpwmmwlors.js → 0wwwq.gyyz0vg.js} +3 -3
- package/dist/web/_next/static/chunks/0x5lak8yz7pm7.js +1 -0
- package/dist/web/_next/static/chunks/0xon_.4-o0_zq.js +7 -0
- package/dist/web/_next/static/chunks/0zjnrbt7inime.js +1 -0
- package/dist/web/_next/static/chunks/0zncg76rgtbm-.js +1 -0
- package/dist/web/_next/static/chunks/0zwebpitvpuv1.js +1 -0
- package/dist/web/_next/static/chunks/0~02o4g-o6n~m.js +1 -0
- package/dist/web/_next/static/chunks/{10l-9myrdo3x9.js → 0~fjezp.k4qk3.js} +1 -1
- package/dist/web/_next/static/chunks/0~sh93re1-_rp.js +1 -0
- package/dist/web/_next/static/chunks/10_niiq0k6o-p.js +5 -0
- package/dist/web/_next/static/chunks/12tjr0_2ccrtq.js +2 -0
- package/dist/web/_next/static/chunks/12x5.go_x9mfk.js +1 -0
- package/dist/web/_next/static/chunks/{1442stwa0gbxe.js → 12~5dk9i9d16t.js} +2 -2
- package/dist/web/_next/static/chunks/13iye4rv5p31b.js +1 -0
- package/dist/web/_next/static/chunks/{01~quun6sefgl.js → 13~y-b.b9rrw4.js} +1 -1
- package/dist/web/_next/static/chunks/151wzhb5q0lo5.js +1 -0
- package/dist/web/_next/static/chunks/18c7g84y01mj0.js +1 -0
- package/dist/web/_next/static/chunks/{turbopack-0ndm2zc_pdptk.js → turbopack-11qjwlynmfc-n.js} +1 -1
- package/dist/web/_not-found/__next._full.txt +30 -29
- 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 +30 -29
- package/dist/web/index.html +1 -1
- package/dist/web/index.txt +23 -25
- package/dist/web/login/__next._full.txt +28 -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 +28 -28
- package/dist/web/settings/__next._full.txt +33 -32
- 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 +24 -24
- 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 +24 -24
- package/dist/web/settings/mcps/__next._full.txt +24 -24
- 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 +24 -24
- package/dist/web/settings/models/__next._full.txt +24 -24
- 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 +24 -24
- package/dist/web/settings/output-styles/__next._full.txt +24 -24
- package/dist/web/settings/output-styles/__next._head.txt +4 -4
- package/dist/web/settings/output-styles/__next._index.txt +13 -13
- package/dist/web/settings/output-styles/__next._tree.txt +2 -2
- package/dist/web/settings/output-styles/__next.settings.output-styles.__PAGE__.txt +4 -4
- package/dist/web/settings/output-styles/__next.settings.output-styles.txt +3 -3
- package/dist/web/settings/output-styles/__next.settings.txt +5 -5
- package/dist/web/settings/output-styles.html +1 -1
- package/dist/web/settings/output-styles.txt +24 -24
- package/dist/web/settings/prompts/__next._full.txt +24 -24
- 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 +24 -24
- package/dist/web/settings/providers/__next._full.txt +24 -24
- 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 +24 -24
- package/dist/web/settings/skills/__next._full.txt +24 -24
- 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 +24 -24
- package/dist/web/settings/tools/__next._full.txt +24 -24
- package/dist/web/settings/tools/__next._head.txt +4 -4
- package/dist/web/settings/tools/__next._index.txt +13 -13
- package/dist/web/settings/tools/__next._tree.txt +2 -2
- package/dist/web/settings/tools/__next.settings.tools.__PAGE__.txt +4 -4
- package/dist/web/settings/tools/__next.settings.tools.txt +3 -3
- package/dist/web/settings/tools/__next.settings.txt +5 -5
- package/dist/web/settings/tools.html +1 -1
- package/dist/web/settings/tools.txt +24 -24
- package/dist/web/settings.html +1 -1
- package/dist/web/settings.txt +33 -32
- package/dist/web/workflows/__next._full.txt +31 -33
- 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 +31 -33
- package/dist/web/workspace/_/__next._full.txt +28 -29
- 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 -2
- package/dist/web/workspace/_/__next.workspace.$d$id.__PAGE__.txt +3 -3
- 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 +28 -29
- package/dist/web/workspaces/__next._full.txt +29 -31
- 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 +29 -31
- package/dist/ws/agent-prompt.js +32 -3
- package/dist/ws/agent-runner.js +83 -6
- package/package.json +11 -11
- package/dist/web/_next/static/chunks/0-9194nbxy_6d.js +0 -1
- package/dist/web/_next/static/chunks/0.n~yfwf4~6w-.js +0 -1
- package/dist/web/_next/static/chunks/02mf61htij8g0.js +0 -31
- package/dist/web/_next/static/chunks/04dg4l4hv11q2.js +0 -3
- package/dist/web/_next/static/chunks/04fxddw-y20~-.js +0 -7
- package/dist/web/_next/static/chunks/04w7~5ooz_pwm.js +0 -1
- package/dist/web/_next/static/chunks/05oc21sj24wtq.js +0 -1
- package/dist/web/_next/static/chunks/08kfx8on9oty~.js +0 -1
- package/dist/web/_next/static/chunks/08k~meqbd8d6v.js +0 -1
- package/dist/web/_next/static/chunks/099h96wjsdb25.js +0 -2
- package/dist/web/_next/static/chunks/09h23logvq65m.js +0 -1
- package/dist/web/_next/static/chunks/0a5y-vhf4i5id.js +0 -3
- package/dist/web/_next/static/chunks/0ake2f3x2uan4.js +0 -24
- package/dist/web/_next/static/chunks/0ck8dw_9-1cdx.js +0 -1
- package/dist/web/_next/static/chunks/0ewceguykiut5.js +0 -1
- package/dist/web/_next/static/chunks/0f7cb9li~3jra.js +0 -67
- package/dist/web/_next/static/chunks/0ghs9on7wodrm.js +0 -1
- package/dist/web/_next/static/chunks/0ghx3j_.-gdyd.js +0 -1
- package/dist/web/_next/static/chunks/0h9cu-k6z5o08.js +0 -1
- package/dist/web/_next/static/chunks/0jb4~3qqkw2ps.js +0 -1
- package/dist/web/_next/static/chunks/0nb8.iteznuvx.js +0 -1
- package/dist/web/_next/static/chunks/0os58q93stt7j.js +0 -3
- package/dist/web/_next/static/chunks/0s9lmk8iauou3.js +0 -1
- package/dist/web/_next/static/chunks/0sp_zbx~w0am7.js +0 -1
- package/dist/web/_next/static/chunks/0tel~zsv4z8l_.js +0 -1
- package/dist/web/_next/static/chunks/0twamv4wr_dbv.js +0 -1
- package/dist/web/_next/static/chunks/0uhol5wafdbl~.js +0 -1
- package/dist/web/_next/static/chunks/0v3a_x4vt42kx.js +0 -5
- package/dist/web/_next/static/chunks/0v7q4mys.mnm..css +0 -1
- package/dist/web/_next/static/chunks/0xt-8wk21gs7g.js +0 -1
- package/dist/web/_next/static/chunks/0z~vqzbm_q371.js +0 -1
- package/dist/web/_next/static/chunks/0~3xm80~j9ddg.js +0 -1
- package/dist/web/_next/static/chunks/14s37n6h0_q3x.js +0 -16
- package/dist/web/_next/static/chunks/161ik5kfyuwtd.js +0 -1
- package/dist/web/_next/static/chunks/17k~zbv0_4rep.js +0 -1
- package/public/output-styles/carmack-mode.md +0 -381
- package/public/output-styles/codex-rigor-mode.md +0 -114
- package/public/output-styles/dhh-mode.md +0 -265
- package/public/output-styles/evan-you-mode.md +0 -539
- package/public/output-styles/index.json +0 -37
- package/public/output-styles/jobs-mode.md +0 -369
- package/public/output-styles/linus-mode.md +0 -135
- package/public/output-styles/uncle-bob-mode.md +0 -221
- package/public/prompt/andrej-karpathy-skills.md +0 -65
- package/public/prompt/claude-token-efficient-coding.md +0 -35
- package/public/prompt/index.json +0 -12
- package/public/skills/index.json +0 -92
- package/public/skills/planning-with-files/planning-with-files-zh/SKILL.md +0 -243
- package/public/skills/planning-with-files/planning-with-files-zh/scripts/check-complete.ps1 +0 -44
- package/public/skills/planning-with-files/planning-with-files-zh/scripts/check-complete.sh +0 -46
- package/public/skills/planning-with-files/planning-with-files-zh/scripts/init-session.ps1 +0 -124
- package/public/skills/planning-with-files/planning-with-files-zh/scripts/init-session.sh +0 -124
- package/public/skills/planning-with-files/planning-with-files-zh/scripts/session-catchup.py +0 -438
- package/public/skills/planning-with-files/planning-with-files-zh/templates/findings.md +0 -29
- package/public/skills/planning-with-files/planning-with-files-zh/templates/progress.md +0 -40
- package/public/skills/planning-with-files/planning-with-files-zh/templates/task_plan.md +0 -58
- package/public/skills/superpowers/brainstorming/SKILL.md +0 -164
- package/public/skills/superpowers/brainstorming/scripts/frame-template.html +0 -214
- package/public/skills/superpowers/brainstorming/scripts/helper.js +0 -88
- package/public/skills/superpowers/brainstorming/scripts/server.cjs +0 -354
- package/public/skills/superpowers/brainstorming/scripts/start-server.sh +0 -148
- package/public/skills/superpowers/brainstorming/scripts/stop-server.sh +0 -56
- package/public/skills/superpowers/brainstorming/spec-document-reviewer-prompt.md +0 -49
- package/public/skills/superpowers/brainstorming/visual-companion.md +0 -287
- package/public/skills/superpowers/dispatching-parallel-agents/SKILL.md +0 -182
- package/public/skills/superpowers/executing-plans/SKILL.md +0 -70
- package/public/skills/superpowers/finishing-a-development-branch/SKILL.md +0 -251
- package/public/skills/superpowers/receiving-code-review/SKILL.md +0 -213
- package/public/skills/superpowers/requesting-code-review/SKILL.md +0 -103
- package/public/skills/superpowers/requesting-code-review/code-reviewer.md +0 -168
- package/public/skills/superpowers/subagent-driven-development/SKILL.md +0 -279
- package/public/skills/superpowers/subagent-driven-development/code-quality-reviewer-prompt.md +0 -25
- package/public/skills/superpowers/subagent-driven-development/implementer-prompt.md +0 -113
- package/public/skills/superpowers/subagent-driven-development/spec-reviewer-prompt.md +0 -61
- package/public/skills/superpowers/systematic-debugging/CREATION-LOG.md +0 -119
- package/public/skills/superpowers/systematic-debugging/SKILL.md +0 -296
- package/public/skills/superpowers/systematic-debugging/condition-based-waiting-example.ts +0 -158
- package/public/skills/superpowers/systematic-debugging/condition-based-waiting.md +0 -115
- package/public/skills/superpowers/systematic-debugging/defense-in-depth.md +0 -122
- package/public/skills/superpowers/systematic-debugging/find-polluter.sh +0 -63
- package/public/skills/superpowers/systematic-debugging/root-cause-tracing.md +0 -169
- package/public/skills/superpowers/systematic-debugging/test-academic.md +0 -14
- package/public/skills/superpowers/systematic-debugging/test-pressure-1.md +0 -58
- package/public/skills/superpowers/systematic-debugging/test-pressure-2.md +0 -68
- package/public/skills/superpowers/systematic-debugging/test-pressure-3.md +0 -69
- package/public/skills/superpowers/test-driven-development/SKILL.md +0 -371
- package/public/skills/superpowers/test-driven-development/testing-anti-patterns.md +0 -299
- package/public/skills/superpowers/using-git-worktrees/SKILL.md +0 -215
- package/public/skills/superpowers/using-superpowers/SKILL.md +0 -117
- package/public/skills/superpowers/using-superpowers/references/codex-tools.md +0 -59
- package/public/skills/superpowers/using-superpowers/references/copilot-tools.md +0 -42
- package/public/skills/superpowers/using-superpowers/references/gemini-tools.md +0 -51
- package/public/skills/superpowers/verification-before-completion/SKILL.md +0 -139
- package/public/skills/superpowers/writing-plans/SKILL.md +0 -152
- package/public/skills/superpowers/writing-plans/plan-document-reviewer-prompt.md +0 -49
- package/public/skills/superpowers/writing-skills/SKILL.md +0 -655
- package/public/skills/superpowers/writing-skills/anthropic-best-practices.md +0 -1150
- package/public/skills/superpowers/writing-skills/examples/CLAUDE_MD_TESTING.md +0 -189
- package/public/skills/superpowers/writing-skills/graphviz-conventions.dot +0 -172
- package/public/skills/superpowers/writing-skills/persuasion-principles.md +0 -187
- package/public/skills/superpowers/writing-skills/render-graphs.js +0 -168
- package/public/skills/superpowers/writing-skills/testing-skills-with-subagents.md +0 -384
- /package/dist/web/_next/static/{e8w3vd9Eov_LDYWj_0zsE → rGXyAK8rgod1NjF3bLZAY}/_buildManifest.js +0 -0
- /package/dist/web/_next/static/{e8w3vd9Eov_LDYWj_0zsE → rGXyAK8rgod1NjF3bLZAY}/_clientMiddlewareManifest.js +0 -0
- /package/dist/web/_next/static/{e8w3vd9Eov_LDYWj_0zsE → rGXyAK8rgod1NjF3bLZAY}/_ssgManifest.js +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,444204,e=>{"use strict";let t=(0,e.i(433721).default)("clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]]);e.s(["Clock",0,t],444204)},600304,759309,e=>{"use strict";let t=(0,e.i(433721).default)("send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]);e.s(["default",0,t],759309),e.s(["Send",0,t],600304)},595390,e=>{"use strict";var t=e.i(344180),s=e.i(764556),l=e.i(681622),r=e.i(611176),a=e.i(972846);let i=e=>!["scheduler","task_creator","bot"].includes(e.description||"")&&"agent-generator"!==e.id;e.s(["MemberPicker",0,function({candidates:e,selected:n,onToggle:o,searchPlaceholder:d,emptyText:c,label:u,filter:f}){let[m,p]=(0,s.useState)(""),x=e.filter(f??i).sort((e,t)=>(e.sortIndex??0)-(t.sortIndex??0)).filter(e=>`${e.label} ${e.description||""}`.toLowerCase().includes(m.toLowerCase()));return(0,t.jsxs)("div",{className:"space-y-2",children:[u&&(0,t.jsx)("label",{className:"text-sm font-medium",children:u}),(0,t.jsx)(l.Input,{value:m,onChange:e=>p(e.target.value),placeholder:d}),(0,t.jsxs)("div",{className:"max-h-40 overflow-y-auto space-y-0.5",children:[0===x.length&&(0,t.jsx)("p",{className:"text-sm text-muted-foreground py-2 text-center",children:c||"No items found"}),x.map(e=>(0,t.jsxs)("button",{type:"button",onClick:()=>o(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)(r.AgentIcon,{agentId:"user"!==e.id?e.id:void 0,name:e.label,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.label}),e.description&&(0,t.jsx)("span",{className:"block truncate text-xs text-muted-foreground",children:e.description})]}),(0,t.jsx)("div",{className:`flex items-center justify-center size-4 rounded border shrink-0 ${n.includes(e.id)?"bg-primary border-primary text-primary-foreground":"border-input"}`})]},e.id))]}),n.length>0&&(0,t.jsx)("div",{className:"flex flex-wrap gap-1.5",children:n.map(s=>{let l=e.find(e=>e.id===s),i=l?.label||s;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:["user"===s?(0,t.jsx)("span",{className:"truncate",children:i}):(0,t.jsxs)("span",{className:"inline-flex items-center gap-1 min-w-0",children:[(0,t.jsx)(r.AgentIcon,{agentId:s,name:i,className:"size-3.5 rounded-full shrink-0"}),(0,t.jsx)("span",{className:"truncate",children:i})]}),(0,t.jsx)("button",{type:"button",onClick:()=>o(s),className:"hover:text-destructive shrink-0 cursor-pointer",children:(0,t.jsx)(a.X,{className:"size-3"})})]},s)})})]})}])},272736,e=>{"use strict";function t(e){return e.name?.trim()||e.role}e.s(["getAgentDisplayName",0,t,"getMemberDisplayName",0,function(e,s){if("user"===s)return"user";let l=e.find(e=>e.id===s);return l?t(l):s},"normalizeChannelMembersToAgentIds",0,function(e,t){let s=new Set(e.map(e=>e.id)),l=[],r=new Set;for(let e of t)s.has(e)&&(r.has(e)||(r.add(e),l.push(e)));return l}])},302773,e=>{"use strict";let t=(0,e.i(816709).create)((e,t)=>({workflows:[],currentWorkflow:null,isLoading:!1,loadWorkflows:async()=>{e({isLoading:!0});try{let t=await fetch("/api/workflows"),s=await t.json();e({workflows:s,isLoading:!1})}catch{e({isLoading:!1})}},createWorkflow:async t=>{let s=await fetch("/api/workflows",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}),l=await s.json();return e(e=>({workflows:[...e.workflows,l]})),l},updateWorkflow:async(e,s)=>{let l=await fetch(`/api/workflows/${e}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(s)}),r=await l.json();t().upsertWorkflow(r)},deleteWorkflow:async e=>{await fetch(`/api/workflows/${e}`,{method:"DELETE"}),t().removeWorkflow(e)},duplicateWorkflow:async t=>{let s=await fetch(`/api/workflows/${t}/duplicate`,{method:"POST"}),l=await s.json();e(e=>({workflows:[...e.workflows,l]}))},setCurrentWorkflow:t=>e({currentWorkflow:t}),upsertWorkflow:t=>{e(e=>{let s=e.workflows.findIndex(e=>e.id===t.id);if(-1!==s){let l=[...e.workflows];return l[s]=t,{workflows:l}}return{workflows:[...e.workflows,t]}})},removeWorkflow:t=>{e(e=>({workflows:e.workflows.filter(e=>e.id!==t),currentWorkflow:e.currentWorkflow?.id===t?null:e.currentWorkflow}))}}));e.s(["useWorkflowStore",0,t])},889445,e=>{"use strict";let t=(0,e.i(433721).default)("play",[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]]);e.s(["Play",0,t],889445)},358989,e=>{"use strict";var t=e.i(344180),s=e.i(764556),l=e.i(244073),r=e.i(209988),a=e.i(260218),i=e.i(681622),n=e.i(788010),o=e.i(595390),d=e.i(272736),c=e.i(302773);let u=["draft","planned","in_progress","review_pending","changes_requested","approved","completed","archived"];e.s(["EditIssueDialog",0,function({issue:e,open:f,onOpenChange:m,agents:p=[],onSave:x}){let[h,w]=(0,s.useState)(e.title),[g,k]=(0,s.useState)(e.description),[y,b]=(0,s.useState)(e.status),[j,v]=(0,s.useState)(e.members||[]),[N,C]=(0,s.useState)(!1),[_,S]=(0,s.useState)(e.workflowId??""),{workflows:T,loadWorkflows:W}=(0,c.useWorkflowStore)(),I=(0,l.useTranslations)("issue"),D=(0,l.useTranslations)("common");(0,s.useEffect)(()=>{f&&(w(e.title),k(e.description),b(e.status),v(e.members?.length?[...e.members]:[]),S(e.workflowId??""))},[f,e]),(0,s.useEffect)(()=>{f&&W()},[f,W]);let P=async()=>{if(h.trim()){C(!0);try{await x({title:h.trim(),description:g.trim(),status:y,members:j,workflowId:"__none__"===_?null:_||null}),m(!1)}finally{C(!1)}}},A=(0,s.useMemo)(()=>p.filter(e=>!1!==e.enabled).map((e,t)=>({id:e.id,label:(0,d.getMemberDisplayName)(p,e.id),description:e.role,sortIndex:t})),[p]);return(0,t.jsx)(r.Dialog,{open:f,onOpenChange:m,children:(0,t.jsxs)(r.DialogContent,{className:"sm:max-w-md max-h-[85vh] p-0 gap-0 flex flex-col overflow-hidden",children:[(0,t.jsxs)(r.DialogHeader,{className:"px-4 py-4 shrink-0",children:[(0,t.jsx)(r.DialogTitle,{children:I("edit.title")}),(0,t.jsx)(r.DialogDescription,{children:I("edit.description")})]}),(0,t.jsx)("div",{className:"flex-1 min-h-0 overflow-y-auto px-4 pb-4",children:(0,t.jsxs)("div",{className:"space-y-3",children:[(0,t.jsx)(i.Input,{placeholder:I("edit.titlePlaceholder"),value:h,onChange:e=>w(e.target.value),onKeyDown:e=>"Enter"===e.key&&e.preventDefault()}),(0,t.jsx)(n.Textarea,{placeholder:I("edit.descriptionPlaceholder"),value:g,onChange:e=>k(e.target.value),rows:3}),(0,t.jsxs)("div",{className:"space-y-1.5",children:[(0,t.jsx)("label",{className:"text-sm font-medium text-foreground",children:I("edit.statusLabel")}),(0,t.jsx)("select",{value:y,onChange:e=>b(e.target.value),className:"flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-xs transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",children:u.map(e=>(0,t.jsx)("option",{value:e,children:I(`status.${e}`)},e))})]}),(0,t.jsxs)("div",{className:"space-y-1.5",children:[(0,t.jsx)("label",{className:"text-sm font-medium text-foreground",children:"Workflow Template"}),(0,t.jsxs)("select",{value:_||"__none__",onChange:e=>(e=>{if(S(e),!e)return;let t=T.find(t=>t.id===e);if(!t)return;let s=t.nodes.filter(e=>"agent"===e.type).map(e=>e.data.agentConfigId);v(e=>Array.from(new Set([...e,...s])))})("__none__"===e.target.value?"":e.target.value),className:"flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-xs transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",children:[(0,t.jsx)("option",{value:"__none__",children:"None (use default pipeline)"}),T.map(e=>(0,t.jsxs)("option",{value:e.id,children:[e.name," (",e.nodes.length," agents)"]},e.id))]})]}),(0,t.jsx)(o.MemberPicker,{candidates:A,selected:j,onToggle:e=>{v(t=>t.includes(e)?t.filter(t=>t!==e):[...t,e])},label:I("edit.membersLabel"),searchPlaceholder:I("edit.searchAgent"),emptyText:I("edit.noAgents")}),(0,t.jsxs)("div",{className:"flex justify-end gap-2 pt-2",children:[(0,t.jsx)(a.Button,{variant:"outline",onClick:()=>m(!1),children:D("cancel")}),(0,t.jsx)(a.Button,{onClick:P,disabled:!h.trim()||N,children:D(N?"saving":"save")})]})]})})]})})}])}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,867295,e=>{"use strict";let t=(0,e.i(433721).default)("eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);e.s(["default",0,t])},332277,e=>{"use strict";var t=e.i(867295);e.s(["Eye",()=>t.default])},302773,e=>{"use strict";let t=(0,e.i(816709).create)((e,t)=>({workflows:[],currentWorkflow:null,isLoading:!1,loadWorkflows:async()=>{e({isLoading:!0});try{let t=await fetch("/api/workflows"),r=await t.json();e({workflows:r,isLoading:!1})}catch{e({isLoading:!1})}},createWorkflow:async t=>{let r=await fetch("/api/workflows",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}),a=await r.json();return e(e=>({workflows:[...e.workflows,a]})),a},updateWorkflow:async(e,r)=>{let a=await fetch(`/api/workflows/${e}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(r)}),n=await a.json();t().upsertWorkflow(n)},deleteWorkflow:async e=>{await fetch(`/api/workflows/${e}`,{method:"DELETE"}),t().removeWorkflow(e)},duplicateWorkflow:async t=>{let r=await fetch(`/api/workflows/${t}/duplicate`,{method:"POST"}),a=await r.json();e(e=>({workflows:[...e.workflows,a]}))},setCurrentWorkflow:t=>e({currentWorkflow:t}),upsertWorkflow:t=>{e(e=>{let r=e.workflows.findIndex(e=>e.id===t.id);if(-1!==r){let a=[...e.workflows];return a[r]=t,{workflows:a}}return{workflows:[...e.workflows,t]}})},removeWorkflow:t=>{e(e=>({workflows:e.workflows.filter(e=>e.id!==t),currentWorkflow:e.currentWorkflow?.id===t?null:e.currentWorkflow}))}}));e.s(["useWorkflowStore",0,t])},842541,e=>{"use strict";e.s(["default",0,function(e,t){return e*=1,t*=1,function(r){return e*(1-r)+t*r}}])},161610,321137,e=>{"use strict";function t(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function r(e,t){var r=Object.create(e.prototype);for(var a in t)r[a]=t[a];return r}function a(){}var n="\\s*([+-]?\\d+)\\s*",i="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",o="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",f=/^#([0-9a-f]{3,8})$/,s=RegExp(`^rgb\\(${n},${n},${n}\\)$`),l=RegExp(`^rgb\\(${o},${o},${o}\\)$`),u=RegExp(`^rgba\\(${n},${n},${n},${i}\\)$`),c=RegExp(`^rgba\\(${o},${o},${o},${i}\\)$`),d=RegExp(`^hsl\\(${i},${o},${o}\\)$`),h=RegExp(`^hsla\\(${i},${o},${o},${i}\\)$`),g={aliceblue:0xf0f8ff,antiquewhite:0xfaebd7,aqua:65535,aquamarine:8388564,azure:0xf0ffff,beige:0xf5f5dc,bisque:0xffe4c4,black:0,blanchedalmond:0xffebcd,blue:255,blueviolet:9055202,brown:0xa52a2a,burlywood:0xdeb887,cadetblue:6266528,chartreuse:8388352,chocolate:0xd2691e,coral:0xff7f50,cornflowerblue:6591981,cornsilk:0xfff8dc,crimson:0xdc143c,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:0xb8860b,darkgray:0xa9a9a9,darkgreen:25600,darkgrey:0xa9a9a9,darkkhaki:0xbdb76b,darkmagenta:9109643,darkolivegreen:5597999,darkorange:0xff8c00,darkorchid:0x9932cc,darkred:9109504,darksalmon:0xe9967a,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:0xff1493,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:0xb22222,floralwhite:0xfffaf0,forestgreen:2263842,fuchsia:0xff00ff,gainsboro:0xdcdcdc,ghostwhite:0xf8f8ff,gold:0xffd700,goldenrod:0xdaa520,gray:8421504,green:32768,greenyellow:0xadff2f,grey:8421504,honeydew:0xf0fff0,hotpink:0xff69b4,indianred:0xcd5c5c,indigo:4915330,ivory:0xfffff0,khaki:0xf0e68c,lavender:0xe6e6fa,lavenderblush:0xfff0f5,lawngreen:8190976,lemonchiffon:0xfffacd,lightblue:0xadd8e6,lightcoral:0xf08080,lightcyan:0xe0ffff,lightgoldenrodyellow:0xfafad2,lightgray:0xd3d3d3,lightgreen:9498256,lightgrey:0xd3d3d3,lightpink:0xffb6c1,lightsalmon:0xffa07a,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:0xb0c4de,lightyellow:0xffffe0,lime:65280,limegreen:3329330,linen:0xfaf0e6,magenta:0xff00ff,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:0xba55d3,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:0xc71585,midnightblue:1644912,mintcream:0xf5fffa,mistyrose:0xffe4e1,moccasin:0xffe4b5,navajowhite:0xffdead,navy:128,oldlace:0xfdf5e6,olive:8421376,olivedrab:7048739,orange:0xffa500,orangered:0xff4500,orchid:0xda70d6,palegoldenrod:0xeee8aa,palegreen:0x98fb98,paleturquoise:0xafeeee,palevioletred:0xdb7093,papayawhip:0xffefd5,peachpuff:0xffdab9,peru:0xcd853f,pink:0xffc0cb,plum:0xdda0dd,powderblue:0xb0e0e6,purple:8388736,rebeccapurple:6697881,red:0xff0000,rosybrown:0xbc8f8f,royalblue:4286945,saddlebrown:9127187,salmon:0xfa8072,sandybrown:0xf4a460,seagreen:3050327,seashell:0xfff5ee,sienna:0xa0522d,silver:0xc0c0c0,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:0xfffafa,springgreen:65407,steelblue:4620980,tan:0xd2b48c,teal:32896,thistle:0xd8bfd8,tomato:0xff6347,turquoise:4251856,violet:0xee82ee,wheat:0xf5deb3,white:0xffffff,whitesmoke:0xf5f5f5,yellow:0xffff00,yellowgreen:0x9acd32};function x(){return this.rgb().formatHex()}function p(){return this.rgb().formatRgb()}function b(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=f.exec(e))?(r=t[1].length,t=parseInt(t[1],16),6===r?w(t):3===r?new k(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===r?m(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===r?m(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=s.exec(e))?new k(t[1],t[2],t[3],1):(t=l.exec(e))?new k(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=u.exec(e))?m(t[1],t[2],t[3],t[4]):(t=c.exec(e))?m(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=d.exec(e))?W(t[1],t[2]/100,t[3]/100,1):(t=h.exec(e))?W(t[1],t[2]/100,t[3]/100,t[4]):g.hasOwnProperty(e)?w(g[e]):"transparent"===e?new k(NaN,NaN,NaN,0):null}function w(e){return new k(e>>16&255,e>>8&255,255&e,1)}function m(e,t,r,a){return a<=0&&(e=t=r=NaN),new k(e,t,r,a)}function y(e,t,r,n){var i;return 1==arguments.length?((i=e)instanceof a||(i=b(i)),i)?new k((i=i.rgb()).r,i.g,i.b,i.opacity):new k:new k(e,t,r,null==n?1:n)}function k(e,t,r,a){this.r=+e,this.g=+t,this.b=+r,this.opacity=+a}function v(){return`#${j(this.r)}${j(this.g)}${j(this.b)}`}function $(){let e=N(this.opacity);return`${1===e?"rgb(":"rgba("}${M(this.r)}, ${M(this.g)}, ${M(this.b)}${1===e?")":`, ${e})`}`}function N(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function M(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function j(e){return((e=M(e))<16?"0":"")+e.toString(16)}function W(e,t,r,a){return a<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new E(e,t,r,a)}function A(e){if(e instanceof E)return new E(e.h,e.s,e.l,e.opacity);if(e instanceof a||(e=b(e)),!e)return new E;if(e instanceof E)return e;var t=(e=e.rgb()).r/255,r=e.g/255,n=e.b/255,i=Math.min(t,r,n),o=Math.max(t,r,n),f=NaN,s=o-i,l=(o+i)/2;return s?(f=t===o?(r-n)/s+(r<n)*6:r===o?(n-t)/s+2:(t-r)/s+4,s/=l<.5?o+i:2-o-i,f*=60):s=l>0&&l<1?0:f,new E(f,s,l,e.opacity)}function E(e,t,r,a){this.h=+e,this.s=+t,this.l=+r,this.opacity=+a}function C(e){return(e=(e||0)%360)<0?e+360:e}function R(e){return Math.max(0,Math.min(1,e||0))}function T(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}t(a,b,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:x,formatHex:x,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return A(this).formatHsl()},formatRgb:p,toString:p}),t(k,y,r(a,{brighter(e){return e=null==e?1.4285714285714286:Math.pow(1.4285714285714286,e),new k(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new k(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new k(M(this.r),M(this.g),M(this.b),N(this.opacity))},displayable(){return -.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:v,formatHex:v,formatHex8:function(){return`#${j(this.r)}${j(this.g)}${j(this.b)}${j((isNaN(this.opacity)?1:this.opacity)*255)}`},formatRgb:$,toString:$})),t(E,function(e,t,r,a){return 1==arguments.length?A(e):new E(e,t,r,null==a?1:a)},r(a,{brighter(e){return e=null==e?1.4285714285714286:Math.pow(1.4285714285714286,e),new E(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new E(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,a=r+(r<.5?r:1-r)*t,n=2*r-a;return new k(T(e>=240?e-240:e+120,n,a),T(e,n,a),T(e<120?e+240:e-120,n,a),this.opacity)},clamp(){return new E(C(this.h),R(this.s),R(this.l),N(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let e=N(this.opacity);return`${1===e?"hsl(":"hsla("}${C(this.h)}, ${100*R(this.s)}%, ${100*R(this.l)}%${1===e?")":`, ${e})`}`}})),e.s(["default",0,b,"rgb",0,y],321137),e.s(["color",0,b],161610)},77075,e=>{"use strict";var t=e.i(842541);e.s(["interpolateNumber",()=>t.default])},145665,181503,e=>{"use strict";var t=e.i(321137);function r(e,t,r,a,n){var i=e*e,o=i*e;return((1-3*e+3*i-o)*t+(4-6*i+3*o)*r+(1+3*e+3*i-3*o)*a+o*n)/6}let a=e=>()=>e;function n(e,t){var r=t-e;return r?function(t){return e+t*r}:a(isNaN(e)?t:e)}e.s(["default",0,a],181503);let i=function e(r){var i,o=1==(i=+r)?n:function(e,t){var r,n,o;return t-e?(r=e,n=t,r=Math.pow(r,o=i),n=Math.pow(n,o)-r,o=1/o,function(e){return Math.pow(r+e*n,o)}):a(isNaN(e)?t:e)};function f(e,r){var a=o((e=(0,t.rgb)(e)).r,(r=(0,t.rgb)(r)).r),i=o(e.g,r.g),f=o(e.b,r.b),s=n(e.opacity,r.opacity);return function(t){return e.r=a(t),e.g=i(t),e.b=f(t),e.opacity=s(t),e+""}}return f.gamma=e,f}(1);function o(e){return function(r){var a,n,i=r.length,o=Array(i),f=Array(i),s=Array(i);for(a=0;a<i;++a)n=(0,t.rgb)(r[a]),o[a]=n.r||0,f[a]=n.g||0,s[a]=n.b||0;return o=e(o),f=e(f),s=e(s),n.opacity=1,function(e){return n.r=o(e),n.g=f(e),n.b=s(e),n+""}}}o(function(e){var t=e.length-1;return function(a){var n=a<=0?a=0:a>=1?(a=1,t-1):Math.floor(a*t),i=e[n],o=e[n+1],f=n>0?e[n-1]:2*i-o,s=n<t-1?e[n+2]:2*o-i;return r((a-n/t)*t,f,i,o,s)}}),o(function(e){var t=e.length;return function(a){var n=Math.floor(((a%=1)<0?++a:a)*t),i=e[(n+t-1)%t],o=e[n%t],f=e[(n+1)%t],s=e[(n+2)%t];return r((a-n/t)*t,i,o,f,s)}}),e.s(["default",0,i],145665)},647483,e=>{"use strict";var t=e.i(842541),r=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,a=RegExp(r.source,"g");e.s(["default",0,function(e,n){var i,o,f,s,l,u=r.lastIndex=a.lastIndex=0,c=-1,d=[],h=[];for(e+="",n+="";(f=r.exec(e))&&(s=a.exec(n));)(l=s.index)>u&&(l=n.slice(u,l),d[c]?d[c]+=l:d[++c]=l),(f=f[0])===(s=s[0])?d[c]?d[c]+=s:d[++c]=s:(d[++c]=null,h.push({i:c,x:(0,t.default)(f,s)})),u=a.lastIndex;return u<n.length&&(l=n.slice(u),d[c]?d[c]+=l:d[++c]=l),d.length<2?h[0]?(i=h[0].x,function(e){return i(e)+""}):(o=n,function(){return o}):(n=h.length,function(e){for(var t,r=0;r<n;++r)d[(t=h[r]).i]=t.x(e);return d.join("")})}])},819505,238816,97376,e=>{"use strict";e.s(["genericArray",()=>r],819505);var t=e.i(213570);function r(e,r){var a,n=r?r.length:0,i=e?Math.min(n,e.length):0,o=Array(i),f=Array(n);for(a=0;a<i;++a)o[a]=(0,t.default)(e[a],r[a]);for(;a<n;++a)f[a]=r[a];return function(e){for(a=0;a<i;++a)f[a]=o[a](e);return f}}e.s(["default",0,function(e,t){t||(t=[]);var r,a=e?Math.min(t.length,e.length):0,n=t.slice();return function(i){for(r=0;r<a;++r)n[r]=e[r]*(1-i)+t[r]*i;return n}},"isNumberArray",0,function(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}],238816),e.s(["default",0,function(e,t){var r=new Date;return e*=1,t*=1,function(a){return r.setTime(e*(1-a)+t*a),r}}],97376)},905660,e=>{"use strict";e.s(["default",()=>r]);var t=e.i(213570);function r(e,r){var a,n={},i={};for(a in(null===e||"object"!=typeof e)&&(e={}),(null===r||"object"!=typeof r)&&(r={}),r)a in e?n[a]=(0,t.default)(e[a],r[a]):i[a]=r[a];return function(e){for(a in n)i[a]=n[a](e);return i}}},678152,213570,e=>{"use strict";e.s(["default",()=>u],213570);var t=e.i(161610),r=e.i(145665),a=e.i(819505),n=e.i(97376),i=e.i(842541),o=e.i(905660),f=e.i(647483),s=e.i(181503),l=e.i(238816);function u(e,u){var c,d=typeof u;return null==u||"boolean"===d?(0,s.default)(u):("number"===d?i.default:"string"===d?(c=(0,t.color)(u))?(u=c,r.default):f.default:u instanceof t.color?r.default:u instanceof Date?n.default:(0,l.isNumberArray)(u)?l.default:Array.isArray(u)?a.genericArray:"function"!=typeof u.valueOf&&"function"!=typeof u.toString||isNaN(u)?o.default:i.default)(e,u)}e.s(["interpolate",0,u],678152)},212603,e=>{"use strict";var t=e.i(344180),r=e.i(465458);e.s(["Card",0,function({className:e,size:a="default",...n}){return(0,t.jsx)("div",{"data-slot":"card","data-size":a,className:(0,r.cn)("group/card flex flex-col gap-4 overflow-hidden rounded-xl bg-card py-4 text-sm text-card-foreground ring-1 ring-foreground/10 has-data-[slot=card-footer]:pb-0 has-[>img:first-child]:pt-0 data-[size=sm]:gap-3 data-[size=sm]:py-3 data-[size=sm]:has-data-[slot=card-footer]:pb-0 *:[img:first-child]:rounded-t-xl *:[img:last-child]:rounded-b-xl",e),...n})},"CardContent",0,function({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"card-content",className:(0,r.cn)("px-4 group-data-[size=sm]/card:px-3",e),...a})},"CardDescription",0,function({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"card-description",className:(0,r.cn)("text-sm text-muted-foreground",e),...a})},"CardHeader",0,function({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"card-header",className:(0,r.cn)("group/card-header @container/card-header grid auto-rows-min items-start gap-1 rounded-t-xl px-4 group-data-[size=sm]/card:px-3 has-data-[slot=card-action]:grid-cols-[1fr_auto] has-data-[slot=card-description]:grid-rows-[auto_auto] [.border-b]:pb-4 group-data-[size=sm]/card:[.border-b]:pb-3",e),...a})},"CardTitle",0,function({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"card-title",className:(0,r.cn)("font-heading text-base leading-snug font-medium group-data-[size=sm]/card:text-sm",e),...a})}])}]);
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,302773,e=>{"use strict";let t=(0,e.i(816709).create)((e,t)=>({workflows:[],currentWorkflow:null,isLoading:!1,loadWorkflows:async()=>{e({isLoading:!0});try{let t=await fetch("/api/workflows"),r=await t.json();e({workflows:r,isLoading:!1})}catch{e({isLoading:!1})}},createWorkflow:async t=>{let r=await fetch("/api/workflows",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}),a=await r.json();return e(e=>({workflows:[...e.workflows,a]})),a},updateWorkflow:async(e,r)=>{let a=await fetch(`/api/workflows/${e}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(r)}),n=await a.json();t().upsertWorkflow(n)},deleteWorkflow:async e=>{await fetch(`/api/workflows/${e}`,{method:"DELETE"}),t().removeWorkflow(e)},duplicateWorkflow:async t=>{let r=await fetch(`/api/workflows/${t}/duplicate`,{method:"POST"}),a=await r.json();e(e=>({workflows:[...e.workflows,a]}))},setCurrentWorkflow:t=>e({currentWorkflow:t}),upsertWorkflow:t=>{e(e=>{let r=e.workflows.findIndex(e=>e.id===t.id);if(-1!==r){let a=[...e.workflows];return a[r]=t,{workflows:a}}return{workflows:[...e.workflows,t]}})},removeWorkflow:t=>{e(e=>({workflows:e.workflows.filter(e=>e.id!==t),currentWorkflow:e.currentWorkflow?.id===t?null:e.currentWorkflow}))}}));e.s(["useWorkflowStore",0,t])},867295,e=>{"use strict";let t=(0,e.i(433721).default)("eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);e.s(["default",0,t])},332277,e=>{"use strict";var t=e.i(867295);e.s(["Eye",()=>t.default])},842541,e=>{"use strict";e.s(["default",0,function(e,t){return e*=1,t*=1,function(r){return e*(1-r)+t*r}}])},161610,321137,e=>{"use strict";function t(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function r(e,t){var r=Object.create(e.prototype);for(var a in t)r[a]=t[a];return r}function a(){}var n="\\s*([+-]?\\d+)\\s*",i="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",o="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",f=/^#([0-9a-f]{3,8})$/,s=RegExp(`^rgb\\(${n},${n},${n}\\)$`),l=RegExp(`^rgb\\(${o},${o},${o}\\)$`),u=RegExp(`^rgba\\(${n},${n},${n},${i}\\)$`),c=RegExp(`^rgba\\(${o},${o},${o},${i}\\)$`),d=RegExp(`^hsl\\(${i},${o},${o}\\)$`),h=RegExp(`^hsla\\(${i},${o},${o},${i}\\)$`),g={aliceblue:0xf0f8ff,antiquewhite:0xfaebd7,aqua:65535,aquamarine:8388564,azure:0xf0ffff,beige:0xf5f5dc,bisque:0xffe4c4,black:0,blanchedalmond:0xffebcd,blue:255,blueviolet:9055202,brown:0xa52a2a,burlywood:0xdeb887,cadetblue:6266528,chartreuse:8388352,chocolate:0xd2691e,coral:0xff7f50,cornflowerblue:6591981,cornsilk:0xfff8dc,crimson:0xdc143c,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:0xb8860b,darkgray:0xa9a9a9,darkgreen:25600,darkgrey:0xa9a9a9,darkkhaki:0xbdb76b,darkmagenta:9109643,darkolivegreen:5597999,darkorange:0xff8c00,darkorchid:0x9932cc,darkred:9109504,darksalmon:0xe9967a,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:0xff1493,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:0xb22222,floralwhite:0xfffaf0,forestgreen:2263842,fuchsia:0xff00ff,gainsboro:0xdcdcdc,ghostwhite:0xf8f8ff,gold:0xffd700,goldenrod:0xdaa520,gray:8421504,green:32768,greenyellow:0xadff2f,grey:8421504,honeydew:0xf0fff0,hotpink:0xff69b4,indianred:0xcd5c5c,indigo:4915330,ivory:0xfffff0,khaki:0xf0e68c,lavender:0xe6e6fa,lavenderblush:0xfff0f5,lawngreen:8190976,lemonchiffon:0xfffacd,lightblue:0xadd8e6,lightcoral:0xf08080,lightcyan:0xe0ffff,lightgoldenrodyellow:0xfafad2,lightgray:0xd3d3d3,lightgreen:9498256,lightgrey:0xd3d3d3,lightpink:0xffb6c1,lightsalmon:0xffa07a,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:0xb0c4de,lightyellow:0xffffe0,lime:65280,limegreen:3329330,linen:0xfaf0e6,magenta:0xff00ff,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:0xba55d3,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:0xc71585,midnightblue:1644912,mintcream:0xf5fffa,mistyrose:0xffe4e1,moccasin:0xffe4b5,navajowhite:0xffdead,navy:128,oldlace:0xfdf5e6,olive:8421376,olivedrab:7048739,orange:0xffa500,orangered:0xff4500,orchid:0xda70d6,palegoldenrod:0xeee8aa,palegreen:0x98fb98,paleturquoise:0xafeeee,palevioletred:0xdb7093,papayawhip:0xffefd5,peachpuff:0xffdab9,peru:0xcd853f,pink:0xffc0cb,plum:0xdda0dd,powderblue:0xb0e0e6,purple:8388736,rebeccapurple:6697881,red:0xff0000,rosybrown:0xbc8f8f,royalblue:4286945,saddlebrown:9127187,salmon:0xfa8072,sandybrown:0xf4a460,seagreen:3050327,seashell:0xfff5ee,sienna:0xa0522d,silver:0xc0c0c0,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:0xfffafa,springgreen:65407,steelblue:4620980,tan:0xd2b48c,teal:32896,thistle:0xd8bfd8,tomato:0xff6347,turquoise:4251856,violet:0xee82ee,wheat:0xf5deb3,white:0xffffff,whitesmoke:0xf5f5f5,yellow:0xffff00,yellowgreen:0x9acd32};function x(){return this.rgb().formatHex()}function p(){return this.rgb().formatRgb()}function b(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=f.exec(e))?(r=t[1].length,t=parseInt(t[1],16),6===r?w(t):3===r?new k(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===r?m(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===r?m(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=s.exec(e))?new k(t[1],t[2],t[3],1):(t=l.exec(e))?new k(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=u.exec(e))?m(t[1],t[2],t[3],t[4]):(t=c.exec(e))?m(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=d.exec(e))?W(t[1],t[2]/100,t[3]/100,1):(t=h.exec(e))?W(t[1],t[2]/100,t[3]/100,t[4]):g.hasOwnProperty(e)?w(g[e]):"transparent"===e?new k(NaN,NaN,NaN,0):null}function w(e){return new k(e>>16&255,e>>8&255,255&e,1)}function m(e,t,r,a){return a<=0&&(e=t=r=NaN),new k(e,t,r,a)}function y(e,t,r,n){var i;return 1==arguments.length?((i=e)instanceof a||(i=b(i)),i)?new k((i=i.rgb()).r,i.g,i.b,i.opacity):new k:new k(e,t,r,null==n?1:n)}function k(e,t,r,a){this.r=+e,this.g=+t,this.b=+r,this.opacity=+a}function v(){return`#${j(this.r)}${j(this.g)}${j(this.b)}`}function $(){let e=N(this.opacity);return`${1===e?"rgb(":"rgba("}${M(this.r)}, ${M(this.g)}, ${M(this.b)}${1===e?")":`, ${e})`}`}function N(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function M(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function j(e){return((e=M(e))<16?"0":"")+e.toString(16)}function W(e,t,r,a){return a<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new E(e,t,r,a)}function A(e){if(e instanceof E)return new E(e.h,e.s,e.l,e.opacity);if(e instanceof a||(e=b(e)),!e)return new E;if(e instanceof E)return e;var t=(e=e.rgb()).r/255,r=e.g/255,n=e.b/255,i=Math.min(t,r,n),o=Math.max(t,r,n),f=NaN,s=o-i,l=(o+i)/2;return s?(f=t===o?(r-n)/s+(r<n)*6:r===o?(n-t)/s+2:(t-r)/s+4,s/=l<.5?o+i:2-o-i,f*=60):s=l>0&&l<1?0:f,new E(f,s,l,e.opacity)}function E(e,t,r,a){this.h=+e,this.s=+t,this.l=+r,this.opacity=+a}function C(e){return(e=(e||0)%360)<0?e+360:e}function R(e){return Math.max(0,Math.min(1,e||0))}function T(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}t(a,b,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:x,formatHex:x,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return A(this).formatHsl()},formatRgb:p,toString:p}),t(k,y,r(a,{brighter(e){return e=null==e?1.4285714285714286:Math.pow(1.4285714285714286,e),new k(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new k(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new k(M(this.r),M(this.g),M(this.b),N(this.opacity))},displayable(){return -.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:v,formatHex:v,formatHex8:function(){return`#${j(this.r)}${j(this.g)}${j(this.b)}${j((isNaN(this.opacity)?1:this.opacity)*255)}`},formatRgb:$,toString:$})),t(E,function(e,t,r,a){return 1==arguments.length?A(e):new E(e,t,r,null==a?1:a)},r(a,{brighter(e){return e=null==e?1.4285714285714286:Math.pow(1.4285714285714286,e),new E(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new E(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,a=r+(r<.5?r:1-r)*t,n=2*r-a;return new k(T(e>=240?e-240:e+120,n,a),T(e,n,a),T(e<120?e+240:e-120,n,a),this.opacity)},clamp(){return new E(C(this.h),R(this.s),R(this.l),N(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let e=N(this.opacity);return`${1===e?"hsl(":"hsla("}${C(this.h)}, ${100*R(this.s)}%, ${100*R(this.l)}%${1===e?")":`, ${e})`}`}})),e.s(["default",0,b,"rgb",0,y],321137),e.s(["color",0,b],161610)},77075,e=>{"use strict";var t=e.i(842541);e.s(["interpolateNumber",()=>t.default])},145665,181503,e=>{"use strict";var t=e.i(321137);function r(e,t,r,a,n){var i=e*e,o=i*e;return((1-3*e+3*i-o)*t+(4-6*i+3*o)*r+(1+3*e+3*i-3*o)*a+o*n)/6}let a=e=>()=>e;function n(e,t){var r=t-e;return r?function(t){return e+t*r}:a(isNaN(e)?t:e)}e.s(["default",0,a],181503);let i=function e(r){var i,o=1==(i=+r)?n:function(e,t){var r,n,o;return t-e?(r=e,n=t,r=Math.pow(r,o=i),n=Math.pow(n,o)-r,o=1/o,function(e){return Math.pow(r+e*n,o)}):a(isNaN(e)?t:e)};function f(e,r){var a=o((e=(0,t.rgb)(e)).r,(r=(0,t.rgb)(r)).r),i=o(e.g,r.g),f=o(e.b,r.b),s=n(e.opacity,r.opacity);return function(t){return e.r=a(t),e.g=i(t),e.b=f(t),e.opacity=s(t),e+""}}return f.gamma=e,f}(1);function o(e){return function(r){var a,n,i=r.length,o=Array(i),f=Array(i),s=Array(i);for(a=0;a<i;++a)n=(0,t.rgb)(r[a]),o[a]=n.r||0,f[a]=n.g||0,s[a]=n.b||0;return o=e(o),f=e(f),s=e(s),n.opacity=1,function(e){return n.r=o(e),n.g=f(e),n.b=s(e),n+""}}}o(function(e){var t=e.length-1;return function(a){var n=a<=0?a=0:a>=1?(a=1,t-1):Math.floor(a*t),i=e[n],o=e[n+1],f=n>0?e[n-1]:2*i-o,s=n<t-1?e[n+2]:2*o-i;return r((a-n/t)*t,f,i,o,s)}}),o(function(e){var t=e.length;return function(a){var n=Math.floor(((a%=1)<0?++a:a)*t),i=e[(n+t-1)%t],o=e[n%t],f=e[(n+1)%t],s=e[(n+2)%t];return r((a-n/t)*t,i,o,f,s)}}),e.s(["default",0,i],145665)},647483,e=>{"use strict";var t=e.i(842541),r=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,a=RegExp(r.source,"g");e.s(["default",0,function(e,n){var i,o,f,s,l,u=r.lastIndex=a.lastIndex=0,c=-1,d=[],h=[];for(e+="",n+="";(f=r.exec(e))&&(s=a.exec(n));)(l=s.index)>u&&(l=n.slice(u,l),d[c]?d[c]+=l:d[++c]=l),(f=f[0])===(s=s[0])?d[c]?d[c]+=s:d[++c]=s:(d[++c]=null,h.push({i:c,x:(0,t.default)(f,s)})),u=a.lastIndex;return u<n.length&&(l=n.slice(u),d[c]?d[c]+=l:d[++c]=l),d.length<2?h[0]?(i=h[0].x,function(e){return i(e)+""}):(o=n,function(){return o}):(n=h.length,function(e){for(var t,r=0;r<n;++r)d[(t=h[r]).i]=t.x(e);return d.join("")})}])},819505,238816,97376,e=>{"use strict";e.s(["genericArray",()=>r],819505);var t=e.i(213570);function r(e,r){var a,n=r?r.length:0,i=e?Math.min(n,e.length):0,o=Array(i),f=Array(n);for(a=0;a<i;++a)o[a]=(0,t.default)(e[a],r[a]);for(;a<n;++a)f[a]=r[a];return function(e){for(a=0;a<i;++a)f[a]=o[a](e);return f}}e.s(["default",0,function(e,t){t||(t=[]);var r,a=e?Math.min(t.length,e.length):0,n=t.slice();return function(i){for(r=0;r<a;++r)n[r]=e[r]*(1-i)+t[r]*i;return n}},"isNumberArray",0,function(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}],238816),e.s(["default",0,function(e,t){var r=new Date;return e*=1,t*=1,function(a){return r.setTime(e*(1-a)+t*a),r}}],97376)},905660,e=>{"use strict";e.s(["default",()=>r]);var t=e.i(213570);function r(e,r){var a,n={},i={};for(a in(null===e||"object"!=typeof e)&&(e={}),(null===r||"object"!=typeof r)&&(r={}),r)a in e?n[a]=(0,t.default)(e[a],r[a]):i[a]=r[a];return function(e){for(a in n)i[a]=n[a](e);return i}}},678152,213570,e=>{"use strict";e.s(["default",()=>u],213570);var t=e.i(161610),r=e.i(145665),a=e.i(819505),n=e.i(97376),i=e.i(842541),o=e.i(905660),f=e.i(647483),s=e.i(181503),l=e.i(238816);function u(e,u){var c,d=typeof u;return null==u||"boolean"===d?(0,s.default)(u):("number"===d?i.default:"string"===d?(c=(0,t.color)(u))?(u=c,r.default):f.default:u instanceof t.color?r.default:u instanceof Date?n.default:(0,l.isNumberArray)(u)?l.default:Array.isArray(u)?a.genericArray:"function"!=typeof u.valueOf&&"function"!=typeof u.toString||isNaN(u)?o.default:i.default)(e,u)}e.s(["interpolate",0,u],678152)},212603,e=>{"use strict";var t=e.i(344180),r=e.i(465458);e.s(["Card",0,function({className:e,size:a="default",...n}){return(0,t.jsx)("div",{"data-slot":"card","data-size":a,className:(0,r.cn)("group/card flex flex-col gap-4 overflow-hidden rounded-xl bg-card py-4 text-sm text-card-foreground ring-1 ring-foreground/10 has-data-[slot=card-footer]:pb-0 has-[>img:first-child]:pt-0 data-[size=sm]:gap-3 data-[size=sm]:py-3 data-[size=sm]:has-data-[slot=card-footer]:pb-0 *:[img:first-child]:rounded-t-xl *:[img:last-child]:rounded-b-xl",e),...n})},"CardContent",0,function({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"card-content",className:(0,r.cn)("px-4 group-data-[size=sm]/card:px-3",e),...a})},"CardDescription",0,function({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"card-description",className:(0,r.cn)("text-sm text-muted-foreground",e),...a})},"CardHeader",0,function({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"card-header",className:(0,r.cn)("group/card-header @container/card-header grid auto-rows-min items-start gap-1 rounded-t-xl px-4 group-data-[size=sm]/card:px-3 has-data-[slot=card-action]:grid-cols-[1fr_auto] has-data-[slot=card-description]:grid-rows-[auto_auto] [.border-b]:pb-4 group-data-[size=sm]/card:[.border-b]:pb-3",e),...a})},"CardTitle",0,function({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"card-title",className:(0,r.cn)("font-heading text-base leading-snug font-medium group-data-[size=sm]/card:text-sm",e),...a})}])}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,770138,e=>{"use strict";var t,r=e.i(344180),a=e.i(764556),s=e.i(720247),o=e.i(775712),n=e.i(953700),l=e.i(267624),i=e.i(887354),d=e.i(579820),c=e.i(511588),u=e.i(244073),x=e.i(816709),m=e.i(437122),p=e.i(157408);let g=(0,x.create)((e,t)=>({board:null,loading:!1,wsAttached:!1,load:async t=>{e({loading:!0});try{let r=await (0,m.fetchWithAuth)(`/api/workspaces/${t}/kanban`);if(r.ok){let t=await r.json();e({board:t,loading:!1})}}catch{}e({loading:!1})},save:async e=>{let{board:r}=t();if(r)try{await (0,m.fetchWithAuth)(`/api/workspaces/${e}/kanban`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({columns:r.columns,tasks:r.tasks,layoutMode:r.layoutMode,title:r.title})})}catch{}},setBoard:t=>e({board:t}),updateLayoutMode:(r,a)=>{let{board:s}=t();s&&(e({board:{...s,layoutMode:a}}),t().save(r))},updateColumns:(r,a)=>{let{board:s}=t();s&&(e({board:{...s,columns:a}}),t().save(r))},updateTasks:(r,a)=>{let{board:s}=t();s&&(e({board:{...s,tasks:a}}),t().save(r))},attachWS:r=>{if(t().wsAttached)return;let a=(0,p.getWS)(r);a.on("kanban.updated",t=>{e({board:t})}),a.on("kanban.deleted",()=>{e({board:null})}),e({wsAttached:!0})}}));var b=e.i(650654),h=e.i(249673),f=e.i(67013),v=e.i(433721);let j=(0,v.default)("calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]]);var k=e.i(106530);let y=(0,v.default)("grip-vertical",[["circle",{cx:"9",cy:"12",r:"1",key:"1vctgf"}],["circle",{cx:"9",cy:"5",r:"1",key:"hp0tcf"}],["circle",{cx:"9",cy:"19",r:"1",key:"fkjjf6"}],["circle",{cx:"15",cy:"12",r:"1",key:"1tmaij"}],["circle",{cx:"15",cy:"5",r:"1",key:"19l28e"}],["circle",{cx:"15",cy:"19",r:"1",key:"f4zoj3"}]]);var w=e.i(244996),N=e.i(511800);let C={low:{text:"text-emerald-700 bg-emerald-50 border border-emerald-100",dot:"bg-emerald-500"},medium:{text:"text-amber-700 bg-amber-50 border border-amber-100",dot:"bg-amber-500"},high:{text:"text-rose-700 bg-rose-50 border border-rose-100",dot:"bg-rose-500"}};function S({task:e,onClick:t,isOverlay:a=!1}){let{attributes:s,listeners:n,setNodeRef:l,transform:i,transition:d,isDragging:c}=(0,o.useSortable)({id:e.id,disabled:a}),x=(0,u.useTranslations)("kanban"),m=a?{transform:"rotate(2.5deg) scale(1.04)",cursor:"grabbing"}:{transform:f.CSS.Transform.toString(i),transition:d,opacity:c?.35:1,cursor:c?"grabbing":"pointer"},p=C[e.priority]||C.medium,g={low:x("low"),medium:x("medium"),high:x("high")},b=e=>{try{return new Date(e).toLocaleDateString(void 0,{month:"short",day:"numeric"})}catch{return e}};return(0,r.jsxs)("div",{ref:l,style:m,onClick:()=>{c||t()},className:`group relative flex flex-col p-4 bg-white dark:bg-neutral-800 rounded-xl border border-stone-200 dark:border-neutral-700 hover:border-stone-400 dark:hover:border-neutral-500 hover:shadow-md transition-all duration-200 ${a?"shadow-2xl border-2 scale-105 rotate-2 z-20":"shadow-xs"}`,...!a?s:{},children:[(0,r.jsxs)("div",{className:"flex items-center justify-between gap-2 mb-2.5",children:[(0,r.jsxs)("span",{className:`flex items-center gap-1 px-2.5 py-0.5 rounded-md text-[10px] font-bold tracking-wider uppercase ${p.text}`,children:[(0,r.jsx)("span",{className:`h-1.5 w-1.5 rounded-full ${p.dot}`}),g[e.priority]]}),!a&&(0,r.jsx)("div",{...n,className:"p-1 text-stone-300 group-hover:text-stone-500 rounded-md hover:bg-stone-50 dark:hover:bg-neutral-700 transition cursor-grab active:cursor-grabbing",onClick:e=>e.stopPropagation(),children:(0,r.jsx)(y,{className:"h-4 w-4"})})]}),(0,r.jsx)("h4",{className:"text-sm font-semibold text-stone-800 dark:text-neutral-100 line-clamp-2 leading-snug mb-1.5",children:e.title}),e.description?(0,r.jsx)("p",{className:"text-xs text-stone-500 dark:text-neutral-400 line-clamp-2 leading-relaxed mb-3",children:e.description}):null,(0,r.jsx)("div",{className:"border-t border-stone-100 dark:border-neutral-700 my-2"}),(0,r.jsxs)("div",{className:"flex items-center justify-between text-[11px] text-stone-400 dark:text-neutral-500 font-medium",children:[(0,r.jsxs)("div",{className:"flex items-center gap-1",children:[e.description?(0,r.jsx)(k.AlignLeft,{className:"h-3.5 w-3.3 text-stone-300"}):null,"done"===e.columnId?(0,r.jsxs)("span",{className:"flex items-center gap-0.5 text-emerald-600 font-bold",children:[(0,r.jsx)(w.CheckCircle2,{className:"h-3.5 w-3.5 text-emerald-500"}),x("done")]}):null,"archive"===e.columnId?(0,r.jsxs)("span",{className:"flex items-center gap-0.5 text-stone-500 font-bold",children:[(0,r.jsx)(N.AlertCircle,{className:"h-3.5 w-3.5 text-stone-400"}),x("archived")]}):null]}),e.dueDate?(0,r.jsxs)("span",{className:`flex items-center gap-1 px-1.5 py-0.5 rounded-md ${new Date(e.dueDate)<new Date&&"done"!==e.columnId&&"archive"!==e.columnId?"text-rose-600 bg-rose-50 font-bold border border-rose-100":"text-stone-500"}`,children:[(0,r.jsx)(j,{className:"h-3 w-3"}),b(e.dueDate)]}):(0,r.jsx)("span",{className:"text-[10px] text-stone-300",children:b(new Date(e.createdAt).toISOString())})]})]})}let D=[{name:"slate",headerBg:"border-t-stone-500 bg-stone-50 dark:bg-neutral-800 text-stone-700 dark:text-neutral-200"},{name:"sky",headerBg:"border-t-sky-500 bg-sky-50/40 dark:bg-sky-950/30 text-sky-700 dark:text-sky-300"},{name:"emerald",headerBg:"border-t-emerald-500 bg-emerald-50/40 dark:bg-emerald-950/30 text-emerald-700 dark:text-emerald-300"},{name:"amber",headerBg:"border-t-amber-500 bg-amber-50/40 dark:bg-amber-950/30 text-amber-700 dark:text-amber-300"},{name:"rose",headerBg:"border-t-rose-500 bg-rose-50/40 dark:bg-rose-950/30 text-rose-700 dark:text-rose-300"},{name:"purple",headerBg:"border-t-purple-500 bg-purple-50/40 dark:bg-purple-950/30 text-purple-700 dark:text-purple-300"}],z={slate:"bg-stone-400",sky:"bg-sky-400",emerald:"bg-emerald-400",amber:"bg-amber-400",rose:"bg-rose-400",purple:"bg-purple-400"};function T({column:e,tasks:t,layoutMode:l,onCardClick:i,onAddTask:d}){let{setNodeRef:c,isOver:x}=(0,s.useDroppable)({id:e.id}),[m,p]=(0,a.useState)(!1),g=D.find(t=>t.name===e.color)||D[0],f=t.map(e=>e.id),v=(0,u.useTranslations)("kanban");return(0,r.jsxs)("div",{ref:c,className:`flex flex-col rounded-2xl border transition-all duration-200 dark:border-neutral-700 ${x?"bg-stone-100/60 dark:bg-neutral-700/40 scale-[1.01] shadow-xs":"bg-stone-50/25 dark:bg-neutral-800/50 border-stone-200 dark:border-neutral-700"} ${"horizontal"===l?"w-full md:w-[310px] lg:w-[330px] shrink-0 h-full max-h-[75vh] md:max-h-[80vh]":"w-full"}`,children:[(0,r.jsxs)("div",{className:`px-4 py-3.5 border-t-2 rounded-t-2xl border-b border-stone-200/80 dark:border-neutral-700 flex items-center justify-between ${g.headerBg}`,children:[(0,r.jsxs)("div",{className:"flex items-center gap-2.5 flex-1 min-w-0",children:[(0,r.jsx)("span",{className:`block h-3 w-3 rounded-full ${z[e.color]||"bg-stone-400"}`}),(0,r.jsx)("h3",{className:"text-sm font-bold truncate",children:e.title}),(0,r.jsx)("span",{className:"bg-stone-200/70 dark:bg-neutral-600 text-stone-700 dark:text-neutral-300 text-[10px] font-bold px-2 py-0.5 rounded-full min-w-[18px] text-center",children:t.length})]}),"vertical"===l&&(0,r.jsx)("button",{onClick:()=>p(!m),className:"p-1 text-stone-400 hover:text-stone-700 dark:hover:text-neutral-200 hover:bg-stone-100 dark:hover:bg-neutral-700 rounded-md transition cursor-pointer",children:m?(0,r.jsx)(b.ChevronDown,{className:"h-4 w-4"}):(0,r.jsx)(h.ChevronUp,{className:"h-4 w-4"})})]}),(!m||"horizontal"===l)&&(0,r.jsxs)("div",{className:`p-3.5 flex-1 flex flex-col gap-3 min-h-[140px] select-none ${"horizontal"===l?"overflow-y-auto":""}`,children:[(0,r.jsx)(o.SortableContext,{items:f,strategy:o.verticalListSortingStrategy,children:t.length>0?(0,r.jsx)("div",{className:`grid gap-3 ${"vertical"===l?"grid-cols-1 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4":"grid-cols-1"}`,children:t.map(e=>(0,r.jsx)(S,{task:e,onClick:()=>i(e)},e.id))}):(0,r.jsxs)("div",{className:"flex-1 flex flex-col items-center justify-center py-6 px-4 border border-dashed border-stone-200 dark:border-neutral-600 rounded-xl text-stone-400",children:[(0,r.jsx)("p",{className:"text-xs font-medium",children:v("emptySection")}),(0,r.jsx)("p",{className:"text-[10px] mt-1",children:v("dropHint")})]})}),(0,r.jsxs)("button",{onClick:()=>d(e.id),className:"w-full flex items-center justify-center gap-1.5 py-2 px-3 mt-1 text-xs font-semibold text-stone-500 dark:text-neutral-400 hover:text-stone-900 dark:hover:text-neutral-100 bg-white dark:bg-neutral-800 border border-stone-200 dark:border-neutral-600 hover:border-stone-400 dark:hover:border-neutral-500 rounded-xl transition cursor-pointer",children:[(0,r.jsx)(n.Plus,{className:"h-4 w-4"}),v("addTask")]})]})]})}var L=e.i(989484),B=e.i(137340),I=e.i(444204),$=e.i(681622),A=e.i(788010),P=e.i(817854),E=e.i(260218),M=e.i(188815),O=e.i(209988);e.i(8890);var R=e.i(29905),F=e.i(535270),H=e.i(139236),G=e.i(969490),K=e.i(267805);let U=a.createContext(void 0);var V=e.i(931709),W=e.i(122702),_=e.i(602453),q=e.i(742665);let J=a.forwardRef(function(e,t){let{className:s,defaultPressed:o=!1,disabled:n=!1,form:l,onPressedChange:i,pressed:d,render:c,type:u,value:x,nativeButton:m=!0,style:p,...g}=e,b=(0,H.useBaseUiId)(x||void 0),h=function(e=!0){let t=a.useContext(U);if(void 0===t&&!e)throw Error((0,K.default)(7));return t}(),f=h?.value??[],v=h?void 0:o,j=(n||h?.disabled)??!1,[k,y]=(0,F.useControlled)({controlled:h?void 0!==b&&f.indexOf(b)>-1:d,default:v,name:"Toggle",state:"pressed"}),w=(0,R.useStableCallback)((e,t)=>{b&&h?.setGroupValue?.(b,e,t),i?.(e,t)}),{getButtonProps:N,buttonRef:C}=(0,V.useButton)({disabled:j,native:m}),S={disabled:j,pressed:k},D=[C,t],z=[{"aria-pressed":k,onClick(e){let t=!k,r=(0,_.createChangeEventDetails)(q.REASONS.none,e.nativeEvent);w(t,r),r.isCanceled||y(t)}},g,N],T=(0,G.useRenderElement)("button",e,{enabled:!h,state:S,ref:D,props:z});return h?(0,r.jsx)(W.CompositeItem,{tag:"button",render:c,className:s,style:p,state:S,refs:D,props:z}):T});var Q=e.i(972308),X=e.i(971109);let Y=((t={}).disabled="data-disabled",t.orientation="data-orientation",t.multiple="data-multiple",t),Z={multiple:e=>e?{[Y.multiple]:""}:null},ee=a.forwardRef(function(e,t){let{defaultValue:s,disabled:o=!1,loopFocus:n=!0,onValueChange:l,orientation:i="horizontal",multiple:d=!1,value:c,className:u,render:x,style:m,...p}=e,g=(0,X.useToolbarRootContext)(!0),b=a.useMemo(()=>{if(void 0===c)return s??[]},[c,s]),h=a.useMemo(()=>void 0!==c||void 0!==s,[c,s]),f=(g?.disabled??!1)||o,[v,j]=(0,F.useControlled)({controlled:c,default:b,name:"ToggleGroup",state:"value"}),k=(0,R.useStableCallback)((e,t,r)=>{let a;if(d?(a=v.slice(),t?a.push(e):a.splice(v.indexOf(e),1)):a=t?[e]:[],Array.isArray(a)){if(l?.(a,r),r.isCanceled)return;j(a)}}),y={disabled:f,multiple:d,orientation:i},w=a.useMemo(()=>({disabled:f,orientation:i,setGroupValue:k,value:v,isValueInitialized:h}),[f,i,k,v,h]),N={role:"group"},C=(0,G.useRenderElement)("div",e,{enabled:!!g,state:y,ref:t,props:[N,p],stateAttributesMapping:Z});return(0,r.jsx)(U.Provider,{value:w,children:g?C:(0,r.jsx)(Q.CompositeRoot,{render:x,className:u,style:m,state:y,refs:[t],props:[N,p],stateAttributesMapping:Z,loopFocus:n,enableHomeAndEndKeys:!0,orientation:i})})});var et=e.i(465458);let er=(0,e.i(294237).cva)("group/toggle inline-flex items-center justify-center gap-1 rounded-lg text-sm font-medium whitespace-nowrap transition-all outline-none hover:bg-muted hover:text-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 aria-pressed:bg-muted data-[state=on]:bg-muted dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",{variants:{variant:{default:"bg-transparent",outline:"border border-input bg-transparent hover:bg-muted"},size:{default:"h-8 min-w-8 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",sm:"h-7 min-w-7 rounded-[min(var(--radius-md),12px)] px-2.5 text-[0.8rem] has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3.5",lg:"h-9 min-w-9 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2"}},defaultVariants:{variant:"default",size:"default"}}),ea=a.createContext({size:"default",variant:"default",spacing:2,orientation:"horizontal"});function es({className:e,variant:t,size:a,spacing:s=2,orientation:o="horizontal",children:n,...l}){return(0,r.jsx)(ee,{"data-slot":"toggle-group","data-variant":t,"data-size":a,"data-spacing":s,"data-orientation":o,style:{"--gap":s},className:(0,et.cn)("group/toggle-group flex w-fit flex-row items-center gap-[--spacing(var(--gap))] rounded-lg data-[size=sm]:rounded-[min(var(--radius-md),10px)] data-vertical:flex-col data-vertical:items-stretch",e),...l,children:(0,r.jsx)(ea.Provider,{value:{variant:t,size:a,spacing:s,orientation:o},children:n})})}function eo({className:e,children:t,variant:s="default",size:o="default",...n}){let l=a.useContext(ea);return(0,r.jsx)(J,{"data-slot":"toggle-group-item","data-variant":l.variant||s,"data-size":l.size||o,"data-spacing":l.spacing,className:(0,et.cn)("shrink-0 group-data-[spacing=0]/toggle-group:rounded-none group-data-[spacing=0]/toggle-group:px-2 focus:z-10 focus-visible:z-10 group-data-[spacing=0]/toggle-group:has-data-[icon=inline-end]:pr-1.5 group-data-[spacing=0]/toggle-group:has-data-[icon=inline-start]:pl-1.5 group-data-horizontal/toggle-group:data-[spacing=0]:first:rounded-l-lg group-data-vertical/toggle-group:data-[spacing=0]:first:rounded-t-lg group-data-horizontal/toggle-group:data-[spacing=0]:last:rounded-r-lg group-data-vertical/toggle-group:data-[spacing=0]:last:rounded-b-lg group-data-horizontal/toggle-group:data-[spacing=0]:data-[variant=outline]:border-l-0 group-data-vertical/toggle-group:data-[spacing=0]:data-[variant=outline]:border-t-0 group-data-horizontal/toggle-group:data-[spacing=0]:data-[variant=outline]:first:border-l group-data-vertical/toggle-group:data-[spacing=0]:data-[variant=outline]:first:border-t",er({variant:l.variant||s,size:l.size||o}),e),...n,children:t})}let en={low:{bg:"bg-emerald-50 text-emerald-700 border-emerald-200 hover:bg-emerald-100",activeBg:"!bg-emerald-600 !text-white !border-emerald-600",dot:"bg-emerald-500"},medium:{bg:"bg-amber-50 text-amber-700 border-amber-200 hover:bg-amber-100",activeBg:"!bg-amber-500 !text-white !border-amber-500",dot:"bg-amber-500"},high:{bg:"bg-rose-50 text-rose-700 border-rose-200 hover:bg-rose-100",activeBg:"!bg-rose-600 !text-white !border-rose-600",dot:"bg-rose-500"}};function el({task:e,columns:t,isOpen:s,onClose:o,onSave:n,onDelete:i}){let[d,c]=(0,a.useState)(""),[x,m]=(0,a.useState)(""),[p,g]=(0,a.useState)("medium"),[b,h]=(0,a.useState)(""),[f,v]=(0,a.useState)(""),[k,y]=(0,a.useState)(!1),w=(0,u.useTranslations)("kanban"),C=(0,u.useTranslations)("common");if((0,a.useEffect)(()=>{e&&(c(e.title),m(e.description),g(e.priority),h(e.columnId),v(e.dueDate||""),y(!1))},[e,s]),!s||!e)return null;let S=t=>{t.preventDefault(),d.trim()&&(n({...e,title:d.trim(),description:x.trim(),priority:p,columnId:b,dueDate:f||void 0}),o())},D={low:w("low"),medium:w("medium"),high:w("high")};return(0,r.jsx)(O.Dialog,{open:s,onOpenChange:e=>{e||o()},children:(0,r.jsxs)(O.DialogContent,{className:"sm:max-w-lg p-0 gap-0 overflow-hidden",children:[(0,r.jsx)(O.DialogHeader,{className:"px-6 py-4 border-b",children:(0,r.jsxs)(O.DialogTitle,{className:"text-xs font-semibold text-muted-foreground uppercase tracking-wider flex items-center gap-1.5",children:[(0,r.jsx)(L.FileText,{className:"h-3.5 w-3.5"}),w("taskDetails")]})}),(0,r.jsxs)("form",{onSubmit:S,className:"px-6 py-5 space-y-5",children:[(0,r.jsxs)("div",{className:"space-y-1.5",children:[(0,r.jsxs)(P.Label,{className:"text-xs font-semibold text-muted-foreground uppercase tracking-wider",children:[(0,r.jsx)(L.FileText,{className:"h-3.5 w-3.5"}),w("title")]}),(0,r.jsx)($.Input,{type:"text",required:!0,placeholder:w("titlePlaceholder"),value:d,onChange:e=>c(e.target.value),className:"h-9 text-sm font-medium"})]}),(0,r.jsxs)("div",{className:"space-y-1.5",children:[(0,r.jsxs)(P.Label,{className:"text-xs font-semibold text-muted-foreground uppercase tracking-wider",children:[(0,r.jsx)(N.AlertCircle,{className:"h-3.5 w-3.5"}),w("descriptionLabel")]}),(0,r.jsx)(A.Textarea,{rows:4,placeholder:w("descriptionPlaceholder"),value:x,onChange:e=>m(e.target.value)})]}),(0,r.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[(0,r.jsxs)("div",{className:"space-y-1.5",children:[(0,r.jsxs)(P.Label,{className:"text-xs font-semibold text-muted-foreground uppercase tracking-wider",children:[(0,r.jsx)(l.LayoutGrid,{className:"h-3.5 w-3.5"}),w("sectionLabel")]}),(0,r.jsx)(M.SearchSelect,{value:b,onChange:h,options:t.map(e=>({value:e.id,label:e.title})),placeholder:w("selectSection"),allowCustom:!1})]}),(0,r.jsxs)("div",{className:"space-y-1.5",children:[(0,r.jsxs)(P.Label,{className:"text-xs font-semibold text-muted-foreground uppercase tracking-wider",children:[(0,r.jsx)(j,{className:"h-3.5 w-3.5"}),w("dueDate")]}),(0,r.jsx)($.Input,{type:"date",value:f,onChange:e=>v(e.target.value),className:"h-8"})]})]}),(0,r.jsxs)("div",{className:"space-y-2",children:[(0,r.jsxs)(P.Label,{className:"text-xs font-semibold text-muted-foreground uppercase tracking-wider",children:[(0,r.jsx)(I.Clock,{className:"h-3.5 w-3.5"}),w("priority")]}),(0,r.jsx)(es,{variant:"outline",value:[p],onValueChange:e=>{e.length&&g(e[e.length-1])},className:"grid grid-cols-3 w-full",children:["low","medium","high"].map(e=>{let t=en[e],a=p===e;return(0,r.jsxs)(eo,{value:e,"aria-label":`Priority ${e}`,className:`flex items-center justify-center gap-1.5 text-xs font-semibold ${a?t.activeBg+" !border":t.bg}`,children:[(0,r.jsx)("span",{className:`h-1.5 w-1.5 rounded-full ${a?"bg-white":t.dot}`}),D[e]]},e)})})]})]}),(0,r.jsxs)(O.DialogFooter,{className:"!-mx-0 !-mb-0 px-6 py-4 border-t flex-row justify-between sm:justify-between",children:[k?(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[(0,r.jsx)("span",{className:"text-xs font-semibold text-rose-600 animate-pulse",children:w("deleteConfirm")}),(0,r.jsx)(E.Button,{size:"xs",variant:"destructive",onClick:()=>{i(e.id),o()},children:w("yes")}),(0,r.jsx)(E.Button,{size:"xs",variant:"outline",onClick:()=>y(!1),children:C("cancel")})]}):(0,r.jsxs)(E.Button,{size:"sm",variant:"destructive",onClick:()=>y(!0),children:[(0,r.jsx)(B.Trash2,{className:"h-4 w-4"}),C("delete")]}),(0,r.jsxs)("div",{className:"flex items-center gap-2.5",children:[(0,r.jsx)(E.Button,{size:"sm",variant:"outline",onClick:o,children:C("cancel")}),(0,r.jsx)(E.Button,{size:"sm",onClick:S,disabled:!d.trim(),children:C("save")})]})]})]})})}let ei=(0,v.default)("panels-top-left",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M9 21V9",key:"1oto5p"}]]);var ed=e.i(415360);let ec={sky:"bg-sky-400",amber:"bg-amber-400",emerald:"bg-emerald-400",rose:"bg-rose-400",purple:"bg-purple-400",slate:"bg-stone-400"};function eu({isOpen:e,onClose:t,onCreate:s,onEdit:o,editingColumn:n}){let[l,i]=(0,a.useState)(""),[d,c]=(0,a.useState)("sky"),x=(0,u.useTranslations)("kanban"),m=(0,u.useTranslations)("common");if((0,a.useEffect)(()=>{e&&(n?(i(n.title),c(n.color)):(i(""),c("sky")))},[e,n]),!e)return null;let p=e=>{e.preventDefault(),l.trim()&&(n&&o?o(n.id,l.trim(),d):s(l.trim(),d),t())};return(0,r.jsx)(O.Dialog,{open:e,onOpenChange:e=>{e||t()},children:(0,r.jsxs)(O.DialogContent,{className:"sm:max-w-md p-0 gap-0 overflow-hidden",children:[(0,r.jsx)(O.DialogHeader,{className:"px-6 py-4 border-b",children:(0,r.jsx)(O.DialogTitle,{className:"text-xs font-semibold text-muted-foreground uppercase tracking-wider",children:x(n?"editSection":"newSection")})}),(0,r.jsxs)("form",{onSubmit:p,className:"px-6 py-5 space-y-5",children:[(0,r.jsxs)("div",{className:"space-y-1.5",children:[(0,r.jsxs)(P.Label,{className:"text-xs font-semibold text-muted-foreground uppercase tracking-wider",children:[(0,r.jsx)(ei,{className:"h-3.5 w-3.5"}),x("sectionName")]}),(0,r.jsx)($.Input,{type:"text",required:!0,autoFocus:!0,placeholder:x("sectionNamePlaceholder"),value:l,onChange:e=>i(e.target.value),maxLength:25,className:"h-9 text-sm font-medium"})]}),(0,r.jsxs)("div",{className:"space-y-2.5",children:[(0,r.jsxs)(P.Label,{className:"text-xs font-semibold text-muted-foreground uppercase tracking-wider",children:[(0,r.jsx)(ed.Sparkles,{className:"h-3.5 w-3.5"}),x("theme")]}),(0,r.jsx)("div",{className:"flex items-center gap-3 py-1",children:["sky","amber","emerald","rose","purple","slate"].map(e=>(0,r.jsx)("button",{type:"button",onClick:()=>c(e),className:`h-7 w-7 rounded-full ${ec[e]} hover:scale-115 active:scale-95 transition-all duration-150 cursor-pointer ${d===e?"ring-2 ring-stone-800 dark:ring-neutral-100 ring-offset-2":"opacity-85 hover:opacity-100"}`},e))})]})]}),(0,r.jsxs)(O.DialogFooter,{className:"!-mx-0 !-mb-0 px-6 py-4 border-t flex-row justify-end sm:justify-end",children:[(0,r.jsx)(E.Button,{size:"sm",variant:"outline",onClick:t,children:m("cancel")}),(0,r.jsx)(E.Button,{size:"sm",onClick:p,disabled:!l.trim(),children:m(n?"save":"create")})]})]})})}var ex=e.i(810051);let em={slate:"bg-stone-400",sky:"bg-sky-400",emerald:"bg-emerald-400",amber:"bg-amber-400",rose:"bg-rose-400",purple:"bg-purple-400"};function ep({column:e,onEdit:t,onDelete:s}){let{attributes:n,listeners:l,setNodeRef:i,transform:d,transition:c}=(0,o.useSortable)({id:e.id}),x={transform:f.CSS.Transform.toString(d),transition:c},[m,p]=(0,a.useState)(!1),g=(0,u.useTranslations)("kanban");return(0,r.jsxs)("div",{ref:i,style:x,className:"flex items-center gap-2 px-3 py-2 bg-white dark:bg-neutral-800 border border-stone-200 dark:border-neutral-700 rounded-lg",children:[(0,r.jsx)("button",{...n,...l,className:"cursor-grab active:cursor-grabbing text-stone-400 hover:text-stone-600 dark:hover:text-neutral-300 p-0.5",children:(0,r.jsx)(y,{className:"h-4 w-4"})}),(0,r.jsx)("span",{className:`h-3 w-3 rounded-full shrink-0 ${em[e.color]||"bg-stone-400"}`}),(0,r.jsx)("span",{className:"flex-1 text-sm font-medium truncate",children:e.title}),(0,r.jsx)("button",{onClick:()=>t(e),className:"p-1 text-stone-400 hover:text-stone-700 dark:hover:text-neutral-200 hover:bg-stone-100 dark:hover:bg-neutral-700 rounded-md transition cursor-pointer",children:(0,r.jsx)(ex.Edit2,{className:"h-3.5 w-3.5"})}),m?(0,r.jsxs)("div",{className:"flex items-center gap-1",children:[(0,r.jsx)("button",{onClick:()=>{s(e.id),p(!1)},className:"px-1.5 py-0.5 bg-rose-600 hover:bg-rose-700 text-white font-bold text-[9px] rounded transition cursor-pointer",children:g("confirm")}),(0,r.jsx)("button",{onClick:()=>p(!1),className:"px-1 py-0.5 bg-white dark:bg-neutral-600 border border-stone-200 dark:border-neutral-500 text-stone-600 dark:text-neutral-300 text-[9px] rounded transition cursor-pointer",children:g("no")})]}):(0,r.jsx)("button",{onClick:()=>p(!0),className:"p-1 text-stone-400 hover:text-rose-600 hover:bg-rose-50 dark:hover:bg-rose-950/30 rounded-md transition cursor-pointer",children:(0,r.jsx)(B.Trash2,{className:"h-3.5 w-3.5"})})]})}function eg({isOpen:e,onClose:t,columns:a,onReorder:l,onEdit:i,onDelete:d,onAdd:c}){let x=(0,u.useTranslations)("kanban"),m=(0,s.useSensors)((0,s.useSensor)(s.PointerSensor,{activationConstraint:{distance:8}}));return(0,r.jsx)(O.Dialog,{open:e,onOpenChange:e=>{e||t()},children:(0,r.jsxs)(O.DialogContent,{className:"sm:max-w-md p-0 gap-0 overflow-hidden",children:[(0,r.jsx)(O.DialogHeader,{className:"px-6 py-4 border-b",children:(0,r.jsx)(O.DialogTitle,{className:"text-xs font-semibold text-muted-foreground uppercase tracking-wider",children:x("manageSections")})}),(0,r.jsx)("div",{className:"px-4 py-4 max-h-[400px] overflow-y-auto",children:a.length>0?(0,r.jsx)(s.DndContext,{sensors:m,collisionDetection:s.closestCenter,onDragEnd:e=>{let{active:t,over:r}=e;if(!r||t.id===r.id)return;let s=a.findIndex(e=>e.id===t.id),n=a.findIndex(e=>e.id===r.id);-1!==s&&-1!==n&&l((0,o.arrayMove)(a,s,n))},children:(0,r.jsx)(o.SortableContext,{items:a.map(e=>e.id),strategy:o.verticalListSortingStrategy,children:(0,r.jsx)("div",{className:"flex flex-col gap-2",children:a.map(e=>(0,r.jsx)(ep,{column:e,onEdit:i,onDelete:d},e.id))})})}):(0,r.jsx)("p",{className:"text-sm text-stone-400 text-center py-8",children:x("noSections")})}),(0,r.jsx)("div",{className:"px-4 py-3 border-t",children:(0,r.jsxs)(E.Button,{size:"sm",variant:"outline",onClick:c,className:"w-full",children:[(0,r.jsx)(n.Plus,{className:"h-3.5 w-3.5 mr-1.5"}),x("addSection")]})})]})})}e.s(["default",0,function({workspaceId:e}){let{board:t,load:x,updateLayoutMode:m,updateColumns:p,updateTasks:b,setBoard:h,attachWS:f}=g(),[v,j]=(0,a.useState)(""),[k,y]=(0,a.useState)("all"),[w,N]=(0,a.useState)(null),[C,D]=(0,a.useState)(!1),[z,L]=(0,a.useState)(null),[B,I]=(0,a.useState)(!1),[$,A]=(0,a.useState)(null),[P,E]=(0,a.useState)(!1),M=(0,u.useTranslations)("kanban"),O=(0,u.useTranslations)("common");(0,a.useEffect)(()=>{x(e),f(e)},[e,x,f]);let R=t?.columns??[],F=t?.tasks??[],H=t?.layoutMode??"horizontal",G=(0,s.useSensors)((0,s.useSensor)(s.PointerSensor,{activationConstraint:{distance:8}}),(0,s.useSensor)(s.TouchSensor,{activationConstraint:{delay:250,tolerance:6}}),(0,s.useSensor)(s.KeyboardSensor,{coordinateGetter:o.sortableKeyboardCoordinates})),K=F.filter(e=>{let t=e.title.toLowerCase().includes(v.toLowerCase())||e.description.toLowerCase().includes(v.toLowerCase()),r="all"===k||e.priority===k;return t&&r}),U=(0,a.useCallback)(({active:e})=>{let t=F.find(t=>t.id===e.id);t&&L(t)},[F]),V=(0,a.useCallback)(({active:t,over:r})=>{if(!r)return;let a=t.id.toString(),s=r.id.toString();if(a===s||R.some(e=>e.id===a))return;let o=F.find(e=>e.id===a);if(!o)return;let n=R.some(e=>e.id===s)?s:F.find(e=>e.id===s)?.columnId;n&&o.columnId!==n&&b(e,F.map(e=>e.id===a?{...e,columnId:n}:e))},[R,F,e,b]),W=(0,a.useCallback)(({active:t,over:r})=>{if(L(null),!r)return;let a=t.id.toString(),s=r.id.toString();if(R.some(e=>e.id===a)||!F.find(e=>e.id===a))return;let n=R.some(e=>e.id===s)?s:F.find(e=>e.id===s)?.columnId;if(!n)return;let l=F.findIndex(e=>e.id===a),i=F.findIndex(e=>e.id===s),d=F.map(e=>e.id===a?{...e,columnId:n}:e);-1!==i?b(e,(0,o.arrayMove)(d,l,i)):b(e,d)},[R,F,e,b]),_=e=>{N({id:`task-${Date.now()}`,title:M("newTask"),description:"",priority:"medium",columnId:e,order:F.filter(t=>t.columnId===e).length,createdAt:Date.now()}),D(!0)};if(!t)return(0,r.jsx)("div",{className:"flex h-full items-center justify-center text-sm text-muted-foreground",children:O("loading")});let q={all:M("priorityAll"),high:M("priorityHigh"),medium:M("priorityMedium"),low:M("priorityLow")};return(0,r.jsxs)("div",{className:"flex flex-col h-full",children:[(0,r.jsxs)("div",{className:"border-b border-stone-200 dark:border-neutral-700 px-4 py-2.5 flex flex-wrap items-center gap-2",children:[(0,r.jsxs)("div",{className:"relative flex-1 min-w-[150px] max-w-xs",children:[(0,r.jsx)(i.Search,{className:"absolute left-2.5 top-1/2 -translate-y-1/2 h-3.5 w-3.5 text-stone-400"}),(0,r.jsx)("input",{type:"text",placeholder:M("searchPlaceholder"),value:v,onChange:e=>j(e.target.value),className:"w-full pl-8 pr-3 py-1.5 bg-stone-50 dark:bg-neutral-800 border border-stone-200 dark:border-neutral-600 rounded-lg text-xs font-medium focus:outline-none focus:ring-2 focus:ring-stone-500/10 transition"})]}),(0,r.jsx)("div",{className:"flex items-center gap-1 ml-auto",children:["all","high","medium","low"].map(e=>(0,r.jsx)("button",{onClick:()=>y(e),className:`px-2.5 py-1 text-[10px] rounded-full border transition font-medium cursor-pointer ${k===e?"bg-primary text-primary-foreground border-primary":"bg-white dark:bg-neutral-800 dark:border-neutral-600 dark:text-neutral-300 hover:bg-stone-50 text-stone-600 border-stone-200"}`,children:q[e]},e))}),(0,r.jsxs)("button",{onClick:()=>_(R[0]?.id||""),disabled:0===R.length,className:"flex items-center gap-1.5 px-3 py-1.5 bg-primary text-primary-foreground rounded-lg text-xs font-semibold shadow-xs transition cursor-pointer disabled:opacity-50",children:[(0,r.jsx)(n.Plus,{className:"h-3.5 w-3.5"}),M("newCard")]}),(0,r.jsxs)("button",{onClick:()=>E(!0),className:"flex items-center gap-1.5 px-3 py-1.5 bg-white dark:bg-neutral-800 border border-stone-200 dark:border-neutral-600 rounded-lg text-xs font-semibold text-stone-600 dark:text-neutral-300 shadow-xs transition cursor-pointer",children:[(0,r.jsx)(d.Layers,{className:"h-3.5 w-3.5"}),M("section")]}),(0,r.jsxs)("button",{onClick:()=>m(e,"horizontal"===H?"vertical":"horizontal"),className:"flex items-center gap-1.5 px-3 py-1.5 bg-white dark:bg-neutral-800 border border-stone-200 dark:border-neutral-600 rounded-lg text-xs font-semibold text-stone-600 dark:text-neutral-300 shadow-xs transition cursor-pointer",children:[(0,r.jsx)(l.LayoutGrid,{className:"h-3.5 w-3.5"}),"horizontal"===H?M("vertical"):M("horizontal")]})]}),(0,r.jsx)("div",{className:"flex-1 overflow-hidden p-4",children:0===R.length?(0,r.jsxs)("div",{className:"flex-1 flex flex-col items-center justify-center py-16 border border-dashed border-stone-200 dark:border-neutral-600 rounded-3xl",children:[(0,r.jsx)(d.Layers,{className:"h-10 w-10 text-stone-300 mb-3"}),(0,r.jsx)("p",{className:"text-sm font-bold text-stone-500 dark:text-neutral-400",children:M("noSections")}),(0,r.jsxs)("div",{className:"flex gap-2 mt-4",children:[(0,r.jsxs)("button",{onClick:()=>{let t=Date.now();p(e,[...R,...[{title:"Draft",color:"slate"},{title:"Todo",color:"sky"},{title:"In Progress",color:"amber"},{title:"Done",color:"emerald"},{title:"Bug",color:"rose"}].map((e,r)=>({id:`col-${t+r}`,title:e.title,color:e.color,order:r}))])},className:"px-4 py-2 bg-white dark:bg-neutral-800 border border-stone-200 dark:border-neutral-600 text-stone-600 dark:text-neutral-300 rounded-xl text-xs font-bold cursor-pointer hover:bg-stone-50 dark:hover:bg-neutral-700 transition",children:[(0,r.jsx)(c.WandSparkles,{className:"h-3.5 w-3.5 inline mr-1 -mt-0.5"}),M("useTemplate")]}),(0,r.jsx)("button",{onClick:()=>I(!0),className:"px-4 py-2 bg-primary text-primary-foreground rounded-xl text-xs font-bold cursor-pointer",children:M("addSection")})]})]}):(0,r.jsxs)(s.DndContext,{sensors:G,onDragStart:U,onDragOver:V,onDragEnd:W,children:[(0,r.jsxs)("div",{className:`flex-1 h-full ${"horizontal"===H?"flex flex-row overflow-x-auto items-start gap-4 pb-4":"flex flex-col gap-4 overflow-y-auto"}`,children:[(0,r.jsx)(o.SortableContext,{items:R.map(e=>e.id),strategy:"horizontal"===H?o.horizontalListSortingStrategy:o.verticalListSortingStrategy,children:R.map(e=>(0,r.jsx)(T,{column:e,tasks:K.filter(t=>t.columnId===e.id),layoutMode:H,onCardClick:e=>{N(e),D(!0)},onAddTask:_},e.id))}),"horizontal"===H&&(0,r.jsxs)("button",{onClick:()=>I(!0),className:"w-[280px] shrink-0 h-[120px] rounded-2xl border-2 border-dashed border-stone-200 dark:border-neutral-600 hover:border-stone-400 dark:hover:border-neutral-400 text-stone-400 hover:text-stone-800 dark:hover:text-neutral-200 flex flex-col items-center justify-center gap-1.5 transition cursor-pointer",children:[(0,r.jsx)(n.Plus,{className:"h-5 w-5"}),(0,r.jsx)("span",{className:"text-xs font-bold",children:M("newSection")})]})]}),(0,r.jsx)(s.DragOverlay,{dropAnimation:{sideEffects:(0,s.defaultDropAnimationSideEffects)({styles:{active:{opacity:"0.4"}}})},children:z?(0,r.jsx)(S,{task:z,onClick:()=>{},isOverlay:!0}):null})]})}),(0,r.jsx)(el,{task:w,columns:R,isOpen:C,onClose:()=>{D(!1),N(null)},onSave:t=>{b(e,F.some(e=>e.id===t.id)?F.map(e=>e.id===t.id?t:e):[...F,t])},onDelete:t=>{b(e,F.filter(e=>e.id!==t))}}),(0,r.jsx)(eu,{isOpen:B,onClose:()=>{I(!1),A(null)},onCreate:(t,r)=>{let a={id:`col-${Date.now()}`,title:t,color:r,order:R.length};p(e,[...R,a])},onEdit:(t,r,a)=>{p(e,R.map(e=>e.id===t?{...e,title:r,color:a}:e))},editingColumn:$}),(0,r.jsx)(eg,{isOpen:P,onClose:()=>E(!1),columns:R,onReorder:t=>p(e,t.map((e,t)=>({...e,order:t}))),onEdit:e=>{E(!1),A(e),I(!0)},onDelete:t=>{p(e,R.filter(e=>e.id!==t)),b(e,F.filter(e=>e.columnId!==t))},onAdd:()=>{E(!1),I(!0)}})]})}],770138)},683223,e=>{e.n(e.i(770138))}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,625873,e=>{"use strict";var t=e.i(344180),s=e.i(764556),a=e.i(244073),n=e.i(209988),i=e.i(260218),l=e.i(191118),r=e.i(513501),o=e.i(989484),c=e.i(193251),d=e.i(973370),m=e.i(887354),p=e.i(681622),h=e.i(916950),u=e.i(917955),x=e.i(611176),f=e.i(255742),g=e.i(973767),j=e.i(129981),v=e.i(977694),y=e.i(137340),N=e.i(401058),k=e.i(451534);let w=(0,e.i(433721).default)("file-archive",[["path",{d:"M13.659 22H18a2 2 0 0 0 2-2V8a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 14 2H6a2 2 0 0 0-2 2v11.5",key:"4pqfef"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M8 12v-1",key:"1ej8lb"}],["path",{d:"M8 18v-2",key:"qcmpov"}],["path",{d:"M8 7V6",key:"1nbb54"}],["circle",{cx:"8",cy:"20",r:"2",key:"ckkr5m"}]]);var b=e.i(327962),C=e.i(62669),S=e.i(465458),z=e.i(256186),T=e.i(650654),D=e.i(992764);function I({items:e,onItemsChange:n,onConfirm:r,onCancel:o,defaultGroup:c}){let d=(0,a.useTranslations)("skills"),[m,h]=(0,s.useState)(""),[u,x]=(0,s.useState)(new Set),f=(t,s)=>{n(e.map(e=>e.id===t?{...e,...s}:e))},g=e.filter(e=>e.selected).length;return(0,t.jsxs)("div",{className:"flex flex-col flex-1 min-h-0 pt-2",children:[(0,t.jsxs)("div",{className:"flex items-center gap-3 mb-2",children:[(0,t.jsx)("span",{className:"text-sm font-medium",children:d("importPreviewTitle")}),(0,t.jsx)("div",{className:"flex-1"}),(0,t.jsxs)("div",{className:"flex gap-1",children:[(0,t.jsx)(i.Button,{variant:"ghost",size:"sm",onClick:()=>{n(e.map(e=>({...e,selected:!0})))},children:d("importPreviewSelectAll")}),(0,t.jsx)(i.Button,{variant:"ghost",size:"sm",onClick:()=>{n(e.map(e=>({...e,selected:!1})))},children:d("importPreviewDeselectAll")})]}),(0,t.jsx)(p.Input,{value:m,onChange:e=>h(e.target.value),placeholder:c||d("importPreviewGroupPlaceholder"),className:"h-7 text-sm w-32"})]}),0===e.length?(0,t.jsx)("div",{className:"flex items-center justify-center py-8 text-muted-foreground text-sm",children:d("importPreviewEmpty")}):(0,t.jsx)(l.ScrollArea,{className:"flex-1 min-h-0",children:(0,t.jsx)("div",{className:"space-y-2 pr-2",children:e.map(s=>{let a=u.has(s.id);return(0,t.jsxs)("div",{className:"rounded-lg border border-border bg-background p-3",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("input",{type:"checkbox",checked:s.selected,onChange:()=>{var t;f(t=s.id,{selected:!e.find(e=>e.id===t).selected})},className:"mt-0.5 size-3.5 accent-primary shrink-0"}),(0,t.jsx)(p.Input,{value:s.name,onChange:e=>f(s.id,{name:e.target.value}),placeholder:d("importPreviewNamePlaceholder"),className:"h-7 text-sm flex-1"}),(0,t.jsx)(p.Input,{value:s.group,onChange:e=>f(s.id,{group:e.target.value}),placeholder:d("importPreviewGroupPlaceholder"),className:"h-7 text-sm w-32"}),(0,t.jsx)("button",{type:"button",onClick:()=>{var e;return e=s.id,void x(t=>{let s=new Set(t);return s.has(e)?s.delete(e):s.add(e),s})},className:"p-1 rounded hover:bg-accent shrink-0 cursor-pointer",children:a?(0,t.jsx)(T.ChevronDown,{className:"size-3.5 text-muted-foreground"}):(0,t.jsx)(D.ChevronRight,{className:"size-3.5 text-muted-foreground"})})]}),(0,t.jsx)(z.Collapsible,{open:a,children:(0,t.jsx)(z.CollapsibleContent,{children:(0,t.jsxs)("pre",{className:"mt-2 p-2 bg-muted rounded text-xs overflow-auto max-h-48 whitespace-pre-wrap",children:[s.content.slice(0,2e3),s.content.length>2e3?"\n...":""]})})})]},s.id)})})}),(0,t.jsxs)("div",{className:"flex items-center justify-end gap-2 pt-2 mt-2 border-t",children:[(0,t.jsx)(i.Button,{variant:"outline",size:"sm",onClick:o,children:d("importPreviewCancel")}),(0,t.jsx)(i.Button,{size:"sm",onClick:()=>{let t=e.filter(e=>e.selected).map(e=>({...e,group:e.group||m}));0!==t.length&&r(t)},disabled:0===g,children:d("importPreviewConfirm",{selected:g,total:e.length})})]})]})}function A({skills:r,agents:c,loading:h,onToggleFavorite:z,onDelete:T,onEdit:D,onBind:F,onImportBatch:P,onImportFromGit:$,onBindAll:B}){let L=(0,a.useTranslations)("skills"),M=(0,a.useTranslations)("common"),[O,U]=(0,s.useState)(""),[R,_]=(0,s.useState)("all"),[E,G]=(0,s.useState)(""),[J,H]=(0,s.useState)(""),K=(0,s.useRef)(null),W=(0,s.useRef)(null),q=(0,s.useRef)(null),[V,Z]=(0,s.useState)([]),[Q,X]=(0,s.useState)(!1),[Y,ee]=(0,s.useState)(""),[et,es]=(0,s.useState)(""),[ea,en]=(0,s.useState)(!1),[ei,el]=(0,s.useState)(!1),er=Array.from(new Set(r.map(e=>e.group).filter(Boolean))),eo=r.filter(e=>{if(O){let t=O.toLowerCase();if(!e.name.toLowerCase().includes(t)&&!e.content.toLowerCase().includes(t))return!1}if("favorites"===R&&!e.favorited||"agent"===R&&E&&!e.boundAgents.some(e=>e.id===E))return!1;if(J){if("__none__"===J){if(e.group)return!1}else if(e.group!==J)return!1}return!0}),ec=async e=>{let t=e.target.files;if(!t||0===t.length)return;let s=[];for(let e of Array.from(t)){let t=await e.text(),a=e.name.replace(/\.md$/i,"");s.push({id:`md-${a}-${Math.random().toString(36).slice(2,8)}`,name:a,group:"",content:t,selected:!0,sourceName:e.name})}Z(s),ee(""),X(!0),e.target.value=""},ed=async e=>{let t=e.target.files;if(!t||0===t.length)return;let s=new Map;for(let e of Array.from(t)){let t=e.webkitRelativePath.split("/")[0];s.has(t)||s.set(t,[]),s.get(t).push(e)}let a=[];for(let[e,t]of s){let s=t.find(e=>"SKILL.md"===e.name);if(s||(s=t.find(e=>e.name.endsWith(".md"))),!s)continue;let n=await s.text();a.push({id:`folder-${e}-${Math.random().toString(36).slice(2,8)}`,name:e,group:"",content:n,selected:!0,sourceName:e})}Z(a),ee(""),X(!0),e.target.value=""},em=async t=>{let s=t.target.files?.[0];if(s){try{let t=(await e.A(980476)).default,a=await t.loadAsync(s),n=s.name.replace(/\.zip$/i,""),i=new Map;a.forEach((e,t)=>{if(t.dir)return;let s=e.split("/").pop()||"",a=e.substring(0,e.lastIndexOf("/"));if(!a){if(s.endsWith(".md")&&"SKILL.md"!==s){let t=s.replace(/\.md$/i,"");i.has(t)||i.set(t,[]),i.get(t).push({file:s,path:e})}return}let n=a.split("/")[0];i.has(n)||i.set(n,[]),i.get(n).push({file:s,path:e})});let l=[];for(let[e,t]of i){let s=t.find(e=>"SKILL.md"===e.file);if(s||(s=t.find(e=>e.file.endsWith(".md"))),!s)continue;let n=await a.file(s.path).async("string");l.push({id:`zip-${e}-${Math.random().toString(36).slice(2,8)}`,name:e,group:"",content:n,selected:!0,sourceName:e})}Z(l),ee(n),X(!0)}catch(e){console.error("Failed to extract ZIP:",e)}t.target.value=""}},ep=async()=>{let e=et.trim();if(!e)return;en(!0);let t=await $(e);if(en(!1),t&&t.length>0){let s=e.split("/").pop()?.replace(/\.git$/i,"")||"";Z(t),ee(s),X(!0),el(!1)}es("")};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("input",{ref:K,type:"file",accept:".md",multiple:!0,className:"hidden",onChange:ec}),(0,t.jsx)("input",{ref:W,type:"file",className:"hidden",onChange:ed,webkitdirectory:"",directory:""}),(0,t.jsx)("input",{ref:q,type:"file",accept:".zip",className:"hidden",onChange:em}),(0,t.jsx)("div",{className:"flex items-center gap-2 ml-auto shrink-0 pt-2",children:(0,t.jsxs)(u.DropdownMenu,{children:[(0,t.jsx)(u.DropdownMenuTrigger,{render:(0,t.jsxs)(i.Button,{variant:"outline",size:"sm",children:[(0,t.jsx)(j.Upload,{className:"size-3.5 mr-1"}),L("import")]})}),(0,t.jsxs)(u.DropdownMenuContent,{align:"end",children:[(0,t.jsxs)(u.DropdownMenuItem,{onClick:()=>K.current?.click(),children:[(0,t.jsx)(o.FileText,{className:"size-3.5 mr-1.5"}),L("importFromMd")]}),(0,t.jsxs)(u.DropdownMenuItem,{onClick:()=>W.current?.click(),children:[(0,t.jsx)(k.FolderOpen,{className:"size-3.5 mr-1.5"}),L("importFromFolder")]}),(0,t.jsxs)(u.DropdownMenuItem,{onClick:()=>q.current?.click(),children:[(0,t.jsx)(w,{className:"size-3.5 mr-1.5"}),L("importFromZip")]}),(0,t.jsxs)(u.DropdownMenuItem,{onClick:()=>el(!0),disabled:ea,children:[(0,t.jsx)(b.GitBranch,{className:"size-3.5 mr-1.5"}),L("importFromGit")]})]})]})}),Q?(0,t.jsx)(I,{items:V,onItemsChange:Z,onConfirm:e=>{P(e),X(!1),Z([])},onCancel:()=>{X(!1),Z([])},defaultGroup:Y}):(0,t.jsxs)("div",{className:"flex flex-1 min-h-0 gap-4 pt-2",children:[(0,t.jsx)(l.ScrollArea,{className:"hidden md:block w-44 shrink-0",children:(0,t.jsxs)("div",{className:"flex flex-col gap-3 pr-2",children:[(0,t.jsxs)("div",{className:"space-y-1",children:[(0,t.jsxs)(i.Button,{variant:"all"!==R||J?"ghost":"secondary",size:"sm",className:"w-full justify-start",onClick:()=>{_("all"),G(""),H("")},children:[(0,t.jsx)(o.FileText,{className:"size-3.5 mr-1.5"}),L("filterAll")]}),(0,t.jsxs)(i.Button,{variant:"favorites"===R?"secondary":"ghost",size:"sm",className:"w-full justify-start",onClick:()=>{_("favorites"),G(""),H("")},children:[(0,t.jsx)(f.Star,{className:"size-3.5 mr-1.5"}),L("filterFavorites")]})]}),c.length>0&&(0,t.jsxs)("div",{className:"space-y-1",children:[(0,t.jsx)("p",{className:"text-xs font-medium text-muted-foreground px-2",children:L("filterByAgent")}),c.map(e=>(0,t.jsxs)(i.Button,{variant:"agent"===R&&E===e.id?"secondary":"ghost",size:"sm",className:"w-full justify-start",onClick:()=>{_("agent"),G(e.id),H("")},children:[(0,t.jsx)(x.AgentIcon,{agentId:e.id,name:e.name,avatarUrl:e.avatarUrl,className:"size-4 mr-1.5 rounded-full"}),(0,t.jsx)("span",{className:"truncate",children:e.name})]},e.id))]}),er.length>0&&(0,t.jsxs)("div",{className:"space-y-1",children:[(0,t.jsx)("p",{className:"text-xs font-medium text-muted-foreground px-2",children:L("filterGroups")}),er.map(e=>(0,t.jsxs)(i.Button,{variant:J===e?"secondary":"ghost",size:"sm",className:"w-full justify-start",onClick:()=>{H(J===e?"":e),_("all"),G("")},children:[(0,t.jsx)(d.Folder,{className:"size-3.5 mr-1.5"}),(0,t.jsx)("span",{className:"truncate",children:e})]},e)),r.some(e=>!e.group)&&(0,t.jsxs)(i.Button,{variant:"__none__"===J?"secondary":"ghost",size:"sm",className:"w-full justify-start",onClick:()=>{H("__none__"===J?"":"__none__"),_("all"),G("")},children:[(0,t.jsx)(o.FileText,{className:"size-3.5 mr-1.5"}),L("filterNoGroup")]})]})]})}),(0,t.jsxs)("div",{className:"flex-1 min-w-0 flex flex-col gap-3 min-h-0",children:[(0,t.jsxs)("div",{className:"flex md:hidden flex-col gap-2",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)(p.Input,{value:O,onChange:e=>U(e.target.value),placeholder:L("search"),className:"pl-8"})]}),(0,t.jsx)("div",{className:"flex items-center gap-2",children:(0,t.jsxs)("div",{className:"flex rounded-lg border border-input p-0.5",children:[(0,t.jsx)("button",{type:"button",className:(0,S.cn)("px-2.5 py-1 rounded-md text-xs font-medium transition-colors","all"!==R||J?"text-muted-foreground hover:text-foreground":"bg-muted"),onClick:()=>{_("all"),G(""),H("")},children:L("filterAll")}),(0,t.jsxs)("button",{type:"button",className:(0,S.cn)("px-2.5 py-1 rounded-md text-xs font-medium transition-colors","favorites"===R?"bg-muted":"text-muted-foreground hover:text-foreground"),onClick:()=>{_("favorites"),G(""),H("")},children:[(0,t.jsx)(f.Star,{className:"size-3 inline-block mr-0.5 -mt-px"}),L("filterFavorites")]})]})})]}),(0,t.jsxs)("div",{className:"hidden md:block 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)(p.Input,{value:O,onChange:e=>U(e.target.value),placeholder:L("search"),className:"pl-8"})]}),(0,t.jsx)(l.ScrollArea,{className:"flex-1 min-h-0",children:h?(0,t.jsx)("div",{className:"flex items-center justify-center py-12 text-muted-foreground text-sm",children:M("loading")}):0===eo.length?(0,t.jsx)("div",{className:"flex items-center justify-center py-12 text-muted-foreground text-sm",children:L("empty")}):(0,t.jsx)("div",{className:"grid grid-cols-1 gap-3 pr-2",children:eo.map(e=>(0,t.jsxs)("div",{className:"rounded-xl border border-border bg-background p-4 hover:bg-accent/30 transition-colors cursor-pointer",onClick:()=>D(e),children:[(0,t.jsxs)("div",{className:"flex items-start justify-between gap-3",children:[(0,t.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,t.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,t.jsx)("span",{className:"font-medium text-sm",children:e.name}),e.group&&(0,t.jsx)("span",{className:"text-[10px] px-1.5 py-0.5 rounded-full bg-primary/10 text-primary font-medium",children:e.group}),(0,t.jsx)("button",{type:"button",className:"flex items-center justify-center size-5 rounded hover:bg-accent cursor-pointer",onClick:t=>{t.stopPropagation(),z(e)},children:e.favorited?(0,t.jsx)(f.Star,{className:"size-3.5 text-yellow-500 fill-yellow-500"}):(0,t.jsx)(g.StarOff,{className:"size-3.5 text-muted-foreground"})})]}),(0,t.jsx)("p",{className:"text-xs text-muted-foreground mt-1 line-clamp-2",children:e.description||e.content.slice(0,120).replace(/^#\s+/,"")})]}),(0,t.jsxs)("div",{className:"flex items-center gap-1 shrink-0",onClick:e=>e.stopPropagation(),children:[(0,t.jsxs)(i.Button,{variant:"outline",size:"sm",onClick:()=>F(e),children:[(0,t.jsx)(v.Rocket,{className:"size-3.5 mr-1"}),L("apply")]}),(0,t.jsxs)(u.DropdownMenu,{children:[(0,t.jsx)(u.DropdownMenuTrigger,{render:(0,t.jsx)(i.Button,{variant:"ghost",size:"icon",className:"size-7"}),children:(0,t.jsx)(N.MoreVertical,{className:"size-3.5"})}),(0,t.jsxs)(u.DropdownMenuContent,{align:"end",children:[(0,t.jsxs)(u.DropdownMenuItem,{onClick:()=>fetch(`/api/skills/${encodeURIComponent(e.name)}/reveal`,{method:"POST"}),children:[(0,t.jsx)(k.FolderOpen,{className:"size-3.5 mr-1.5"}),L("revealFolder")]}),(0,t.jsxs)(u.DropdownMenuItem,{className:"text-destructive focus:text-destructive",onClick:()=>T(e),children:[(0,t.jsx)(y.Trash2,{className:"size-3.5 mr-1.5"}),L("delete")]})]})]})]})]}),e.boundAgents.length>0&&(0,t.jsxs)("div",{className:"flex items-center gap-1.5 mt-2.5 pt-2.5 border-t border-border/50",children:[e.boundAgents.map(e=>(0,t.jsx)(x.AgentIcon,{agentId:e.id,name:e.name,avatarUrl:e.avatarUrl,className:"size-5 rounded-full"},e.id)),(0,t.jsx)("span",{className:"text-xs text-muted-foreground ml-1",children:e.boundAgents.length})]})]},e.name))})}),(0,t.jsx)("div",{className:"hidden md:flex items-center justify-end gap-3 pt-2 border-t shrink-0",children:(0,t.jsxs)(i.Button,{variant:"outline",size:"sm",onClick:B,disabled:0===eo.length,children:[(0,t.jsx)(v.Rocket,{className:"size-3.5 mr-1"}),L("applyAllToAgent")]})})]})]}),(0,t.jsx)(n.Dialog,{open:ei,onOpenChange:el,children:(0,t.jsxs)(n.DialogContent,{className:"sm:max-w-md",children:[(0,t.jsxs)(n.DialogHeader,{children:[(0,t.jsx)(n.DialogTitle,{children:L("importFromGit")}),(0,t.jsx)(n.DialogDescription,{children:L("importFromGitDesc")})]}),(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(p.Input,{value:et,onChange:e=>es(e.target.value),placeholder:"https://github.com/user/skills-repo.git",onKeyDown:e=>{"Enter"===e.key&&ep()},disabled:ea,autoFocus:!0}),(0,t.jsx)(i.Button,{onClick:ep,disabled:ea||!et.trim(),children:ea?(0,t.jsx)(C.Loader2,{className:"size-4 animate-spin"}):L("import")})]})]})})]})}var F=e.i(887836),P=e.i(984178),$=e.i(383171),B=e.i(415955),L=e.i(932031),M=e.i(111343),O=e.i(564822);e.i(462506);let U=(0,F.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..."})});function R({node:e,depth:s,selectedPath:a,onSelect:n,expandedPaths:i,toggleExpand:l}){let r=i.has(e.path),o=a===e.path;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:(0,S.cn)("flex items-center gap-1 rounded px-2 py-1 cursor-pointer hover:bg-muted/50 text-sm",o&&"bg-muted"),style:{paddingLeft:`${12*s+8}px`},onClick:()=>{e.isDirectory?l(e.path):n(e)},children:[e.isDirectory&&(0,t.jsx)(L.ChevronRightIcon,{className:(0,S.cn)("size-3.5 shrink-0 text-muted-foreground transition-transform",r&&"rotate-90")}),!e.isDirectory&&(0,t.jsx)("span",{className:"size-3.5 shrink-0"}),e.isDirectory?r?(0,t.jsx)(B.FolderOpenIcon,{className:"size-4 text-blue-500 shrink-0"}):(0,t.jsx)($.FolderIcon,{className:"size-4 text-blue-500 shrink-0"}):(0,t.jsx)(P.FileIcon,{className:"size-4 text-muted-foreground shrink-0"}),(0,t.jsx)("span",{className:"truncate",children:e.name})]}),e.isDirectory&&r&&e.children.map(e=>(0,t.jsx)(R,{node:e,depth:s+1,selectedPath:a,onSelect:n,expandedPaths:i,toggleExpand:l},e.path))]})}function _({skill:e,content:l,onContentChange:r,onClose:o,onSave:c}){let d=(0,a.useTranslations)("skills"),m=(0,a.useTranslations)("common"),p=(0,O.useIsMobile)(),[h,u]=(0,s.useState)([]),[x,f]=(0,s.useState)(null),[g,j]=(0,s.useState)({}),[v,y]=(0,s.useState)(new Set),[N,k]=(0,s.useState)(!1),[w,b]=(0,s.useState)(new Set),z=(0,s.useRef)(new Set);(0,s.useEffect)(()=>{if(!e)return;f(null),j({}),b(new Set),y(new Set),u([]),z.current=new Set,k(!0);let t=e.name;fetch(`/api/skills/${encodeURIComponent(t)}/files`).then(e=>e.ok?e.json():[]).then(e=>{u(e),y(new Set(e.filter(e=>e.isDirectory&&!e.path.includes("/")).map(e=>e.path)));let s=e.find(e=>"SKILL.md"===e.path&&!e.isDirectory)||e.find(e=>!e.isDirectory);if(!s)return void k(!1);f(s.path);let a=s.path.split("/").map(encodeURIComponent).join("/");fetch(`/api/skills/${encodeURIComponent(t)}/files/${a}`).then(e=>e.ok?e.json():null).then(e=>{e&&(j({[s.path]:e.content}),z.current.add(s.path))}).catch(()=>{}).finally(()=>k(!1))}).catch(()=>{u([]),k(!1)})},[e]);let T=(0,s.useCallback)((e,t)=>{if(z.current.has(t))return;z.current.add(t),k(!0);let s=t.split("/").map(encodeURIComponent).join("/");fetch(`/api/skills/${encodeURIComponent(e)}/files/${s}`).then(e=>e.ok?e.json():null).then(e=>{e&&j(s=>({...s,[t]:e.content}))}).catch(()=>{}).finally(()=>k(!1))},[]),D=(0,s.useMemo)(()=>(function(e){let t=[],s=new Map;for(let a of e){let e=a.path.split("/"),n=t;for(let t=0;t<e.length;t++){let i=e.slice(0,t+1).join("/"),l=t<e.length-1||a.isDirectory,r=n.find(s=>s.name===e[t]);if(r)n=r.children;else{let a={name:e[t],path:i,isDirectory:l,children:[]};n.push(a),l&&s.set(i,a),n=a.children}}}return t})(h),[h]),I=t=>{!t.isDirectory&&(f(t.path),e&&T(e.name,t.path))},A=e=>{y(t=>{let s=new Set(t);return s.has(e)?s.delete(e):s.add(e),s})},F=x?g[x]??"":"",P=x?({md:"markdown",markdown:"markdown",json:"json",js:"javascript",ts:"typescript",tsx:"typescript",jsx:"javascript",py:"python",sh:"shell",bash:"shell",yaml:"yaml",yml:"yaml",xml:"xml",html:"html",css:"css",sql:"sql"})[x.split(".").pop()?.toLowerCase()||""]||"plaintext":"markdown",$=e=>{if(!x)return;let t=e||"";j(e=>({...e,[x]:t})),b(e=>new Set(e).add(x)),r(t)},B=async()=>{if(!e||!x)return;let t=g[x];if(void 0===t)return;let s=x.split("/").map(encodeURIComponent).join("/");(await fetch(`/api/skills/${encodeURIComponent(e.name)}/files/${s}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({content:t})})).ok&&(b(e=>{let t=new Set(e);return t.delete(x),t}),c())},L=(0,s.useMemo)(()=>h.filter(e=>!e.isDirectory),[h]);return(0,t.jsx)(n.Dialog,{open:!!e,onOpenChange:e=>{e||o()},children:(0,t.jsxs)(n.DialogContent,{className:"!w-[85vw] !max-w-[85vw] !h-[85vh] flex flex-col",children:[(0,t.jsx)(n.DialogHeader,{children:(0,t.jsxs)("div",{className:"flex items-center justify-between pr-8",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)(n.DialogTitle,{children:d("editTitle",{name:e?.name||""})}),(0,t.jsx)(n.DialogDescription,{children:d("editDescription")})]}),(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[w.size>0&&(0,t.jsxs)("span",{className:"text-xs text-muted-foreground",children:[w.size," unsaved"]}),(0,t.jsxs)(i.Button,{size:"sm",onClick:B,disabled:!x||!w.has(x??""),children:[(0,t.jsx)(M.Save,{className:"size-3.5 mr-1"}),m("save")]})]})]})}),p?(0,t.jsxs)("div",{className:"flex-1 min-h-0 flex flex-col pt-2",children:[(0,t.jsx)("div",{className:"flex overflow-x-auto border-b gap-0.5 px-1 shrink-0",children:L.map(e=>(0,t.jsx)("button",{className:(0,S.cn)("shrink-0 px-3 py-1.5 text-xs rounded-t transition-colors whitespace-nowrap",x===e.path?"bg-muted font-medium":"text-muted-foreground hover:text-foreground",w.has(e.path)&&'after:content-[""] after:inline-block after:size-1.5 after:bg-orange-500 after:rounded-full after:ml-1'),onClick:()=>I({name:e.name,path:e.path,isDirectory:!1,children:[]}),children:e.name},e.path))}),(0,t.jsx)("div",{className:"flex-1 min-h-0",children:N?(0,t.jsx)("div",{className:"flex items-center justify-center h-full",children:(0,t.jsx)(C.Loader2,{className:"size-5 animate-spin text-muted-foreground"})}):(0,t.jsx)(U,{height:"100%",language:P,value:F,onChange:$,theme:"vs-dark",options:{fontSize:13,minimap:{enabled:!1},scrollBeyondLastLine:!1,padding:{top:8},renderLineHighlight:"gutter",wordWrap:"on"}})})]}):(0,t.jsxs)("div",{className:"flex-1 min-h-0 flex gap-0 pt-2 border rounded-md overflow-hidden",children:[(0,t.jsxs)("div",{className:"w-48 shrink-0 border-r bg-muted/20 overflow-y-auto py-1",children:[D.map(e=>(0,t.jsx)(R,{node:e,depth:0,selectedPath:x??"",onSelect:I,expandedPaths:v,toggleExpand:A},e.path)),0===h.length&&(0,t.jsx)("div",{className:"px-3 py-2 text-xs text-muted-foreground",children:"No files"})]}),(0,t.jsx)("div",{className:"flex-1 min-h-0",children:N?(0,t.jsx)("div",{className:"flex items-center justify-center h-full",children:(0,t.jsx)(C.Loader2,{className:"size-5 animate-spin text-muted-foreground"})}):(0,t.jsx)(U,{height:"100%",language:P,value:F,onChange:$,theme:"vs-dark",options:{fontSize:13,minimap:{enabled:!1},scrollBeyondLastLine:!1,padding:{top:8},renderLineHighlight:"gutter",wordWrap:"on"}})})]})]})})}var E=e.i(239340);function G({skill:e,titleOverride:s,descriptionOverride:n,agents:i,selected:l,onToggle:r,onClose:o,onConfirm:c}){let d=(0,a.useTranslations)("skills"),m=(0,a.useTranslations)("common");return(0,t.jsx)(E.AgentPickerDialog,{open:!!e,onClose:o,onConfirm:c,title:s||d("bindTitle",{name:e?.name||""}),description:n||d("bindDescription"),agents:i,selected:l,onToggle:r,cancelText:m("cancel"),confirmText:m("confirm")})}e.s(["SkillsDialog",0,function({open:e,onOpenChange:u,standalone:x}){let f=(0,a.useTranslations)("skills"),g=(0,a.useTranslations)("common"),[j,v]=(0,s.useState)("local"),{skills:y,setSkills:N,agents:k,loading:w,fetchSkills:b,storeSkills:C,storeLoading:S,importingPaths:z,importFromStore:T}=function(e,t){let[a,n]=(0,s.useState)([]),[i,l]=(0,s.useState)([]),[r,o]=(0,s.useState)(!1),[c,d]=(0,s.useState)([]),[m,p]=(0,s.useState)(!1),[u,x]=(0,s.useState)(new Set),f=(0,s.useCallback)(async()=>{o(!0);try{let e=await fetch("/api/skills");e.ok&&n(await e.json())}catch{}o(!1)},[]),g=(0,s.useCallback)(async()=>{try{let e=await fetch("/api/agents/presets");if(e.ok){let t=await e.json();l(t.map(e=>({id:e.id,name:e.name,avatarUrl:e.avatarUrl,description:e.description})))}}catch{}},[]),j=(0,s.useCallback)(async()=>{p(!0);try{let e=await (0,h.fetchStoreIndex)("skills/index.json");d(e)}catch{}p(!1)},[]);(0,s.useEffect)(()=>{(e||t)&&(f(),g(),j())},[e,t,f,g,j]);let v=new Set(a.map(e=>e.name)),y=async e=>{if(v.has(e.id)||u.has(e.path))return!1;x(t=>new Set(t).add(e.path));try{if((await fetch("/api/skills/import-store",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({path:e.path,group:e.group})})).ok)return await f(),!0}catch{}return x(t=>{let s=new Set(t);return s.delete(e.path),s}),!1};return{skills:a,setSkills:n,agents:i,loading:r,fetchSkills:f,storeSkills:c,storeLoading:m,importingPaths:u,importFromStore:y}}(e,x),D={toggleFavorite:async e=>{try{let t=await fetch(`/api/skills/${encodeURIComponent(e.name)}/favorite`,{method:"POST"});if(t.ok){let{favorited:s}=await t.json();N(t=>t.map(t=>t.name===e.name?{...t,favorited:s}:t))}}catch{}},deleteSkill:async e=>{try{(await fetch(`/api/skills/${encodeURIComponent(e.name)}`,{method:"DELETE"})).ok&&N(t=>t.filter(t=>t.name!==e.name))}catch{}},saveEdit:async(e,t)=>{try{if((await fetch(`/api/skills/${encodeURIComponent(e)}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({content:t})})).ok)return N(s=>s.map(s=>s.name===e?{...s,content:t}:s)),!0}catch{}return!1},importBatch:async e=>{let t=e.map(e=>({name:e.name,content:e.content,group:e.group}));try{(await fetch("/api/skills/import-batch",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({items:t})})).ok&&b()}catch{}},importFromGit:async e=>{try{let t=await fetch("/api/skills/import-git",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({url:e})});if(!t.ok)return null;return(await t.json()).map(e=>({id:`git-${e.name}-${Math.random().toString(36).slice(2,8)}`,name:e.name,group:"",content:e.content,selected:!0,sourceName:e.name}))}catch{}return null},bindConfirm:async(e,t,s)=>{for(let a of s){let s=e.boundAgents.some(e=>e.id===a.id),n=t.includes(a.id);if(s&&!n){let t=await fetch(`/api/agents/presets/${a.id}`);if(!t.ok)continue;let s=await t.json(),n=(s.skills||[]).filter(t=>t.replace(/\.md$/i,"")!==e.name);await fetch(`/api/agents/presets/${a.id}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({...s,skills:n})})}else if(!s&&n){let t=await fetch(`/api/agents/presets/${a.id}`);if(!t.ok)continue;let s=await t.json();if(!(s.skills||[]).map(e=>e.replace(/\.md$/i,"")).includes(e.name)){let t=[...s.skills||[],e.name];await fetch(`/api/agents/presets/${a.id}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({...s,skills:t})})}}}b()},applyAllToAgent:async(e,t)=>{try{let s=await fetch(`/api/agents/presets/${e}`);if(!s.ok)return;let a=await s.json(),n=new Set((a.skills||[]).map(e=>e.replace(/\.md$/i,""))),i=[...a.skills||[]];for(let e of t)n.has(e)||i.push(e);await fetch(`/api/agents/presets/${e}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({...a,skills:i})}),b()}catch{}},syncCheck:async()=>{let e=await fetch("/api/skills/sync-check");return e.ok?e.json():[]},syncConfirm:async e=>{let t=await fetch("/api/skills/sync",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({items:e.map(e=>({agentId:e.agentId,skillName:e.skillName}))})});return t.ok&&b(),t.ok}},[I,F]=(0,s.useState)(null),[P,$]=(0,s.useState)(""),[B,L]=(0,s.useState)(null),[M,O]=(0,s.useState)([]),[U,R]=(0,s.useState)(""),[E,J]=(0,s.useState)(""),H="__bind_all__",K=B?.name===H,W=async()=>{!I||await D.saveEdit(I.name,P)&&F(null)},q=async()=>{if(B){if(K){let e=y.map(e=>e.name);for(let t of M)await D.applyAllToAgent(t,e)}else await D.bindConfirm(B,M,k);L(null)}},V=(x||e)&&!B&&!I,Z=Array.from(new Set(C.map(e=>e.group).filter(Boolean))),Q=new Set(y.map(e=>e.name)),X=C.filter(e=>{if(U&&e.group!==U)return!1;if(E){let t=E.toLowerCase();if(!e.name.toLowerCase().includes(t)&&!e.id.toLowerCase().includes(t)&&!e.group.toLowerCase().includes(t))return!1}return!0}),Y=async e=>{await T(e)},ee=(0,t.jsx)("div",{className:"flex items-center gap-1 border-b border-border px-1",children:[["local",o.FileText,f("tabLocal")],["store",r.Store,f("tabStore")]].map(([e,s,a])=>(0,t.jsxs)("button",{onClick:()=>v(e),className:`flex items-center gap-1.5 px-3 py-2 text-sm font-medium border-b-2 transition-colors ${j===e?"border-primary text-foreground":"border-transparent text-muted-foreground hover:text-foreground"}`,children:[(0,t.jsx)(s,{className:"size-3.5"}),a]},e))}),et=(0,t.jsxs)("div",{className:"flex flex-1 min-h-0 gap-4 pt-2",children:[Z.length>0&&(0,t.jsx)(l.ScrollArea,{className:"hidden md:block w-44 shrink-0",children:(0,t.jsxs)("div",{className:"flex flex-col gap-1 pr-2",children:[(0,t.jsxs)(i.Button,{variant:U?"ghost":"secondary",size:"sm",className:"w-full justify-start",onClick:()=>R(""),children:[(0,t.jsx)(o.FileText,{className:"size-3.5 mr-1.5"}),f("filterAll")]}),Z.map(e=>(0,t.jsxs)(i.Button,{variant:U===e?"secondary":"ghost",size:"sm",className:"w-full justify-start",onClick:()=>R(U===e?"":e),children:[(0,t.jsx)(d.Folder,{className:"size-3.5 mr-1.5"}),(0,t.jsx)("span",{className:"truncate",children:e})]},e))]})}),(0,t.jsxs)("div",{className:"flex-1 min-w-0 flex flex-col min-h-0",children:[(0,t.jsxs)("div",{className:"relative mb-3",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)(p.Input,{value:E,onChange:e=>J(e.target.value),placeholder:f("search"),className:"pl-8"})]}),(0,t.jsx)(l.ScrollArea,{className:"flex-1",children:S?(0,t.jsx)("div",{className:"flex items-center justify-center py-12 text-muted-foreground text-sm",children:g("loading")}):0===X.length?(0,t.jsx)("div",{className:"flex items-center justify-center py-12 text-muted-foreground text-sm",children:f("storeEmpty")}):(0,t.jsx)("div",{className:"grid grid-cols-1 gap-3 pr-2",children:X.map(e=>{let s=Q.has(e.id),a=z.has(e.path);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 items-start justify-between gap-3",children:[(0,t.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,t.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,t.jsx)(r.Store,{className:"size-3.5 text-muted-foreground shrink-0"}),(0,t.jsx)("span",{className:"font-medium text-sm",children:e.name}),(0,t.jsx)("span",{className:"text-[10px] px-1.5 py-0.5 rounded-full bg-primary/10 text-primary font-medium",children:e.group})]}),(0,t.jsx)("p",{className:"text-xs text-muted-foreground mt-1",children:e.id})]}),(0,t.jsx)(i.Button,{variant:s?"ghost":"outline",size:"sm",className:"shrink-0",disabled:s||a,onClick:()=>Y(e),children:s?f("imported"):a?f("importing"):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(c.Download,{className:"size-3.5 mr-1"}),f("importTo")]})})]})},e.path)})})})]})]}),es=(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.DialogHeader,{children:(0,t.jsxs)("div",{className:"hidden md:block",children:[x?(0,t.jsx)("h2",{className:"text-base font-semibold",children:f("title")}):(0,t.jsx)(n.DialogTitle,{children:f("title")}),x?(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:f("description")}):(0,t.jsx)(n.DialogDescription,{children:f("description")})]})}),ee,(0,t.jsx)("div",{className:"flex flex-1 min-h-0 flex-col",children:"local"===j?(0,t.jsx)(A,{skills:y,agents:k,loading:w,onToggleFavorite:D.toggleFavorite,onDelete:D.deleteSkill,onEdit:e=>{F(e),$(e.content)},onBind:e=>{L(e),O(e.boundAgents.map(e=>e.id))},onImportBatch:D.importBatch,onImportFromGit:D.importFromGit,onBindAll:()=>{L({name:H,description:"",filename:"",content:"",favorited:!1,group:"",boundAgents:[]}),O([])}}):et})]});return(0,t.jsxs)(t.Fragment,{children:[x&&V&&(0,t.jsx)("div",{className:"h-full flex flex-col",children:es}),!x&&(0,t.jsx)(n.Dialog,{open:V,onOpenChange:u,children:(0,t.jsx)(n.DialogContent,{className:"!w-[80vw] !max-w-[80vw] !h-[80vh] flex flex-col overflow-hidden",children:es})}),(0,t.jsx)(_,{skill:I,content:P,onContentChange:$,onClose:()=>F(null),onSave:W}),(0,t.jsx)(G,{skill:B,titleOverride:K?f("applyAllToAgent"):void 0,descriptionOverride:K?f("applyAllToAgentDescription"):void 0,agents:k,selected:M,onToggle:e=>O(t=>t.includes(e)?t.filter(t=>t!==e):[...t,e]),onClose:()=>L(null),onConfirm:q})]})}],625873)}]);
|
package/dist/web/_next/static/chunks/{turbopack-0ndm2zc_pdptk.js → turbopack-11qjwlynmfc-n.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,{otherChunks:["static/chunks/02mf61htij8g0.js","static/chunks/031c~uxc3ie87.js","static/chunks/0h18ej5yf974e.js","static/chunks/0h256h-tu4e0r.js","static/chunks/0np.d~hc1-pmh.js"],runtimeModuleIds:[933412]}]),(()=>{let e;if(!Array.isArray(globalThis.TURBOPACK))return;let t="/_next/",r=function(){if(null!=self.TURBOPACK_ASSET_SUFFIX)return self.TURBOPACK_ASSET_SUFFIX;let e=document?.currentScript?.getAttribute?.("src")??"",t=e.indexOf("?");return t>=0?e.slice(t):""}(),n=["NEXT_DEPLOYMENT_ID","NEXT_CLIENT_ASSET_SUFFIX"];var o,i=((o=i||{})[o.Runtime=0]="Runtime",o[o.Parent=1]="Parent",o[o.Update=2]="Update",o);let l=new WeakMap;function s(e,t){this.m=e,this.e=t}let u=s.prototype,a=Object.prototype.hasOwnProperty,c="u">typeof Symbol&&Symbol.toStringTag;function f(e,t,r){a.call(e,t)||Object.defineProperty(e,t,r)}function p(e,t){let r=e[t];return r||(r=h(t),e[t]=r),r}function h(e){return{exports:{},error:void 0,id:e,namespaceObject:void 0}}function d(e,t){f(e,"__esModule",{value:!0}),c&&f(e,c,{value:"Module"});let r=0;for(;r<t.length;){let n=t[r++],o=t[r++];if("number"==typeof o)if(0===o)f(e,n,{value:t[r++],enumerable:!0,writable:!1});else throw Error(`unexpected tag: ${o}`);else"function"==typeof t[r]?f(e,n,{get:o,set:t[r++],enumerable:!0}):f(e,n,{get:o,enumerable:!0})}Object.seal(e)}function m(e,t){(null!=t?p(this.c,t):this.m).exports=e}u.s=function(e,t){let r,n;null!=t?n=(r=p(this.c,t)).exports:(r=this.m,n=this.e),r.namespaceObject=n,d(n,e)},u.j=function(e,t){var r,n;let o,i,s;null!=t?i=(o=p(this.c,t)).exports:(o=this.m,i=this.e);let u=(r=o,n=i,(s=l.get(r))||(l.set(r,s=[]),r.exports=r.namespaceObject=new Proxy(n,{get(e,t){if(a.call(e,t)||"default"===t||"__esModule"===t)return Reflect.get(e,t);for(let e of s){let r=Reflect.get(e,t);if(void 0!==r)return r}},ownKeys(e){let t=Reflect.ownKeys(e);for(let e of s)for(let r of Reflect.ownKeys(e))"default"===r||t.includes(r)||t.push(r);return t}})),s);"object"==typeof e&&null!==e&&u.push(e)},u.v=m,u.n=function(e,t){let r;(r=null!=t?p(this.c,t):this.m).exports=r.namespaceObject=e};let b=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,y=[null,b({}),b([]),b(b)];function g(e,t,r){let n=[],o=-1;for(let t=e;("object"==typeof t||"function"==typeof t)&&!y.includes(t);t=b(t))for(let r of Object.getOwnPropertyNames(t))n.push(r,function(e,t){return()=>e[t]}(e,r)),-1===o&&"default"===r&&(o=n.length-1);return r&&o>=0||(o>=0?n.splice(o,1,0,e):n.push("default",0,e)),d(t,n),t}function O(e){let t=B(e,this.m);if(t.namespaceObject)return t.namespaceObject;let r=t.exports;return t.namespaceObject=g(r,"function"==typeof r?function(...e){return r.apply(this,e)}:Object.create(null),r&&r.__esModule)}function w(e){let t=e.indexOf("#");-1!==t&&(e=e.substring(0,t));let r=e.indexOf("?");return -1!==r&&(e=e.substring(0,r)),e}function j(){let e,t;return{promise:new Promise((r,n)=>{t=n,e=r}),resolve:e,reject:t}}u.i=O,u.A=function(e){return this.r(e)(O.bind(this))},u.t="function"==typeof require?require:function(){throw Error("Unexpected use of runtime require")},u.r=function(e){return B(e,this.m).exports},u.f=function(e){function t(t){if(t=w(t),a.call(e,t))return e[t].module();let r=Error(`Cannot find module '${t}'`);throw r.code="MODULE_NOT_FOUND",r}return t.keys=()=>Object.keys(e),t.resolve=t=>{if(t=w(t),a.call(e,t))return e[t].id();let r=Error(`Cannot find module '${t}'`);throw r.code="MODULE_NOT_FOUND",r},t.import=async e=>await t(e),t};let k=Symbol("turbopack queues"),U=Symbol("turbopack exports"),C=Symbol("turbopack error");function P(e){e&&1!==e.status&&(e.status=1,e.forEach(e=>e.queueCount--),e.forEach(e=>e.queueCount--?e.queueCount++:e()))}u.a=function(e,t){let r=this.m,n=t?Object.assign([],{status:-1}):void 0,o=new Set,{resolve:i,reject:l,promise:s}=j(),u=Object.assign(s,{[U]:r.exports,[k]:e=>{n&&e(n),o.forEach(e),u.catch(()=>{})}}),a={get:()=>u,set(e){e!==u&&(u[U]=e)}};Object.defineProperty(r,"exports",a),Object.defineProperty(r,"namespaceObject",a),e(function(e){let t=e.map(e=>{if(null!==e&&"object"==typeof e){if(k in e)return e;if(null!=e&&"object"==typeof e&&"then"in e&&"function"==typeof e.then){let t=Object.assign([],{status:0}),r={[U]:{},[k]:e=>e(t)};return e.then(e=>{r[U]=e,P(t)},e=>{r[C]=e,P(t)}),r}}return{[U]:e,[k]:()=>{}}}),r=()=>t.map(e=>{if(e[C])throw e[C];return e[U]}),{promise:i,resolve:l}=j(),s=Object.assign(()=>l(r),{queueCount:0});function u(e){e!==n&&!o.has(e)&&(o.add(e),e&&0===e.status&&(s.queueCount++,e.push(s)))}return t.map(e=>e[k](u)),s.queueCount?i:r()},function(e){e?l(u[C]=e):i(u[U]),P(n)}),n&&-1===n.status&&(n.status=0)};let v=function(e){let t=new URL(e,"x:/"),r={};for(let e in t)r[e]=t[e];for(let t in r.href=e,r.pathname=e.replace(/[?#].*/,""),r.origin=r.protocol="",r.toString=r.toJSON=(...t)=>e,r)Object.defineProperty(this,t,{enumerable:!0,configurable:!0,value:r[t]})};function R(e,t){throw Error(`Invariant: ${t(e)}`)}v.prototype=URL.prototype,u.U=v,u.z=function(e){throw Error("dynamic usage of require is not supported")},u.g=globalThis;let S=s.prototype,$=new Map;u.M=$;let E=new Map,_=new Map;async function T(e,t,r){let n;if("string"==typeof r)return M(e,t,N(r));let o=r.included||[],i=o.map(e=>!!$.has(e)||E.get(e));if(i.length>0&&i.every(e=>e))return void await Promise.all(i);let l=r.moduleChunks||[],s=l.map(e=>_.get(e)).filter(e=>e);if(s.length>0){if(s.length===l.length)return void await Promise.all(s);let r=new Set;for(let e of l)_.has(e)||r.add(e);for(let n of r){let r=M(e,t,N(n));_.set(n,r),s.push(r)}n=Promise.all(s)}else{for(let o of(n=M(e,t,N(r.path)),l))_.has(o)||_.set(o,n)}for(let e of o)E.has(e)||E.set(e,n);await n}S.l=function(e){return T(i.Parent,this.m.id,e)};let A=Promise.resolve(void 0),x=new WeakMap;function M(t,r,n){let o=e.loadChunkCached(t,n),l=x.get(o);if(void 0===l){let e=x.set.bind(x,o,A);l=o.then(e).catch(e=>{let o;switch(t){case i.Runtime:o=`as a runtime dependency of chunk ${r}`;break;case i.Parent:o=`from module ${r}`;break;case i.Update:o="from an HMR update";break;default:R(t,e=>`Unknown source type: ${e}`)}let l=Error(`Failed to load chunk ${n} ${o}${e?`: ${e}`:""}`,e?{cause:e}:void 0);throw l.name="ChunkLoadError",l}),x.set(o,l)}return l}function N(e){return`${t}${e.split("/").map(e=>encodeURIComponent(e)).join("/")}${r}`}S.L=function(e){return M(i.Parent,this.m.id,e)},S.R=function(e){let t=this.r(e);return t?.default??t},S.P=function(e){return`/ROOT/${e??""}`},S.q=function(e,t){m.call(this,`${e}${r}`,t)},S.b=function(e,t,o,i){let l="SharedWorker"===e.name,s=[o.map(e=>N(e)).reverse(),r];for(let e of n)s.push(globalThis[e]);let u=new URL(N(t),location.origin),a=JSON.stringify(s);return l?u.searchParams.set("params",a):u.hash="#params="+encodeURIComponent(a),new e(u,i?{...i,type:void 0}:void 0)};let K=/\.js(?:\?[^#]*)?(?:#.*)?$/,q=/\.css(?:\?[^#]*)?(?:#.*)?$/;function L(e){return q.test(e)}u.w=function(t,r,n){return e.loadWebAssembly(i.Parent,this.m.id,t,r,n)},u.u=function(t,r){return e.loadWebAssemblyModule(i.Parent,this.m.id,t,r)};let I={};u.c=I;let B=(e,t)=>{let r=I[e];if(r){if(r.error)throw r.error;return r}return W(e,i.Parent,t.id)};function W(e,t,r){let n=$.get(e);if("function"!=typeof n)throw Error(function(e,t,r){let n;switch(t){case 0:n=`as a runtime entry of chunk ${r}`;break;case 1:n=`because it was required from module ${r}`;break;case 2:n="because of an HMR update";break;default:R(t,e=>`Unknown source type: ${e}`)}return`Module ${e} was instantiated ${n}, but the module factory is not available.`}(e,t,r));let o=h(e),i=o.exports;I[e]=o;let l=new s(o,i);try{n(l,o,i)}catch(e){throw o.error=e,e}return o.namespaceObject&&o.exports!==o.namespaceObject&&g(o.exports,o.namespaceObject),o}function F(t){let r,n=function(e){if("string"==typeof e)return e;if(e)return{src:e.getAttribute("src")};if("u">typeof TURBOPACK_NEXT_CHUNK_URLS)return{src:TURBOPACK_NEXT_CHUNK_URLS.pop()};throw Error("chunk path empty but not in a worker")}(t[0]);return 2===t.length?r=t[1]:(r=void 0,!function(e,t){let r=1;for(;r<e.length;){let n,o=r+1;for(;o<e.length&&"function"!=typeof e[o];)o++;if(o===e.length)throw Error("malformed chunk format, expected a factory function");let i=e[o];for(let i=r;i<o;i++){let r=e[i],o=t.get(r);if(o){n=o;break}}let l=n??i,s=!1;for(let n=r;n<o;n++){let r=e[n];t.has(r)||(s||(l===i&&Object.defineProperty(i,"name",{value:"module evaluation"}),s=!0),t.set(r,l))}r=o+1}}(t,$)),e.registerChunk(n,r)}let X=new Map;function D(e){let t=X.get(e);if(!t){let r,n;t={resolved:!1,loadingStarted:!1,promise:new Promise((e,t)=>{r=e,n=t}),resolve:()=>{t.resolved=!0,r()},reject:n},X.set(e,t)}return t}e={async registerChunk(e,r){let n=function(e){if("string"==typeof e)return e;let r=decodeURIComponent(e.src.replace(/[?#].*$/,""));return r.startsWith(t)?r.slice(t.length):r}(e);if(D("string"==typeof e?N(e):e.src).resolve(),null!=r){for(let e of r.otherChunks)D(N("string"==typeof e?e:e.path));if(await Promise.all(r.otherChunks.map(e=>T(i.Runtime,n,e))),r.runtimeModuleIds.length>0)for(let e of r.runtimeModuleIds)!function(e,t){let r=I[t];if(r){if(r.error)throw r.error;return}W(t,i.Runtime,e)}(n,e)}},loadChunkCached:(e,t)=>(function(e,t){let r=D(t);if(r.loadingStarted)return r.promise;if(e===i.Runtime)return r.loadingStarted=!0,L(t)&&r.resolve(),r.promise;if("function"==typeof importScripts)if(L(t));else if(K.test(t))self.TURBOPACK_NEXT_CHUNK_URLS.push(t),importScripts(t);else throw Error(`can't infer type of chunk from URL ${t} in worker`);else{let e=decodeURI(t);if(L(t))if(document.querySelectorAll(`link[rel=stylesheet][href="${t}"],link[rel=stylesheet][href^="${t}?"],link[rel=stylesheet][href="${e}"],link[rel=stylesheet][href^="${e}?"]`).length>0)r.resolve();else{let e=document.createElement("link");e.rel="stylesheet",e.href=t,e.onerror=()=>{r.reject()},e.onload=()=>{r.resolve()},document.head.appendChild(e)}else if(K.test(t)){let n=document.querySelectorAll(`script[src="${t}"],script[src^="${t}?"],script[src="${e}"],script[src^="${e}?"]`);if(n.length>0)for(let e of Array.from(n))e.addEventListener("error",()=>{r.reject()});else{let e=document.createElement("script");e.src=t,e.onerror=()=>{r.reject()},document.head.appendChild(e)}}else throw Error(`can't infer type of chunk from URL ${t}`)}return r.loadingStarted=!0,r.promise})(e,t),async loadWebAssembly(e,t,r,n,o){let i=fetch(N(r)),{instance:l}=await WebAssembly.instantiateStreaming(i,o);return l.exports},async loadWebAssemblyModule(e,t,r,n){let o=fetch(N(r));return await WebAssembly.compileStreaming(o)}};let H=globalThis.TURBOPACK;globalThis.TURBOPACK={push:F},H.forEach(F)})();
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,{otherChunks:["static/chunks/0uxzi~9b~k4mn.js","static/chunks/031c~uxc3ie87.js","static/chunks/0h18ej5yf974e.js","static/chunks/0h256h-tu4e0r.js","static/chunks/0np.d~hc1-pmh.js"],runtimeModuleIds:[933412]}]),(()=>{let e;if(!Array.isArray(globalThis.TURBOPACK))return;let t="/_next/",r=function(){if(null!=self.TURBOPACK_ASSET_SUFFIX)return self.TURBOPACK_ASSET_SUFFIX;let e=document?.currentScript?.getAttribute?.("src")??"",t=e.indexOf("?");return t>=0?e.slice(t):""}(),n=["NEXT_DEPLOYMENT_ID","NEXT_CLIENT_ASSET_SUFFIX"];var o,i=((o=i||{})[o.Runtime=0]="Runtime",o[o.Parent=1]="Parent",o[o.Update=2]="Update",o);let l=new WeakMap;function s(e,t){this.m=e,this.e=t}let u=s.prototype,a=Object.prototype.hasOwnProperty,c="u">typeof Symbol&&Symbol.toStringTag;function f(e,t,r){a.call(e,t)||Object.defineProperty(e,t,r)}function p(e,t){let r=e[t];return r||(r=h(t),e[t]=r),r}function h(e){return{exports:{},error:void 0,id:e,namespaceObject:void 0}}function d(e,t){f(e,"__esModule",{value:!0}),c&&f(e,c,{value:"Module"});let r=0;for(;r<t.length;){let n=t[r++],o=t[r++];if("number"==typeof o)if(0===o)f(e,n,{value:t[r++],enumerable:!0,writable:!1});else throw Error(`unexpected tag: ${o}`);else"function"==typeof t[r]?f(e,n,{get:o,set:t[r++],enumerable:!0}):f(e,n,{get:o,enumerable:!0})}Object.seal(e)}function m(e,t){(null!=t?p(this.c,t):this.m).exports=e}u.s=function(e,t){let r,n;null!=t?n=(r=p(this.c,t)).exports:(r=this.m,n=this.e),r.namespaceObject=n,d(n,e)},u.j=function(e,t){var r,n;let o,i,s;null!=t?i=(o=p(this.c,t)).exports:(o=this.m,i=this.e);let u=(r=o,n=i,(s=l.get(r))||(l.set(r,s=[]),r.exports=r.namespaceObject=new Proxy(n,{get(e,t){if(a.call(e,t)||"default"===t||"__esModule"===t)return Reflect.get(e,t);for(let e of s){let r=Reflect.get(e,t);if(void 0!==r)return r}},ownKeys(e){let t=Reflect.ownKeys(e);for(let e of s)for(let r of Reflect.ownKeys(e))"default"===r||t.includes(r)||t.push(r);return t}})),s);"object"==typeof e&&null!==e&&u.push(e)},u.v=m,u.n=function(e,t){let r;(r=null!=t?p(this.c,t):this.m).exports=r.namespaceObject=e};let b=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,y=[null,b({}),b([]),b(b)];function g(e,t,r){let n=[],o=-1;for(let t=e;("object"==typeof t||"function"==typeof t)&&!y.includes(t);t=b(t))for(let r of Object.getOwnPropertyNames(t))n.push(r,function(e,t){return()=>e[t]}(e,r)),-1===o&&"default"===r&&(o=n.length-1);return r&&o>=0||(o>=0?n.splice(o,1,0,e):n.push("default",0,e)),d(t,n),t}function O(e){let t=B(e,this.m);if(t.namespaceObject)return t.namespaceObject;let r=t.exports;return t.namespaceObject=g(r,"function"==typeof r?function(...e){return r.apply(this,e)}:Object.create(null),r&&r.__esModule)}function w(e){let t=e.indexOf("#");-1!==t&&(e=e.substring(0,t));let r=e.indexOf("?");return -1!==r&&(e=e.substring(0,r)),e}function j(){let e,t;return{promise:new Promise((r,n)=>{t=n,e=r}),resolve:e,reject:t}}u.i=O,u.A=function(e){return this.r(e)(O.bind(this))},u.t="function"==typeof require?require:function(){throw Error("Unexpected use of runtime require")},u.r=function(e){return B(e,this.m).exports},u.f=function(e){function t(t){if(t=w(t),a.call(e,t))return e[t].module();let r=Error(`Cannot find module '${t}'`);throw r.code="MODULE_NOT_FOUND",r}return t.keys=()=>Object.keys(e),t.resolve=t=>{if(t=w(t),a.call(e,t))return e[t].id();let r=Error(`Cannot find module '${t}'`);throw r.code="MODULE_NOT_FOUND",r},t.import=async e=>await t(e),t};let k=Symbol("turbopack queues"),U=Symbol("turbopack exports"),C=Symbol("turbopack error");function P(e){e&&1!==e.status&&(e.status=1,e.forEach(e=>e.queueCount--),e.forEach(e=>e.queueCount--?e.queueCount++:e()))}u.a=function(e,t){let r=this.m,n=t?Object.assign([],{status:-1}):void 0,o=new Set,{resolve:i,reject:l,promise:s}=j(),u=Object.assign(s,{[U]:r.exports,[k]:e=>{n&&e(n),o.forEach(e),u.catch(()=>{})}}),a={get:()=>u,set(e){e!==u&&(u[U]=e)}};Object.defineProperty(r,"exports",a),Object.defineProperty(r,"namespaceObject",a),e(function(e){let t=e.map(e=>{if(null!==e&&"object"==typeof e){if(k in e)return e;if(null!=e&&"object"==typeof e&&"then"in e&&"function"==typeof e.then){let t=Object.assign([],{status:0}),r={[U]:{},[k]:e=>e(t)};return e.then(e=>{r[U]=e,P(t)},e=>{r[C]=e,P(t)}),r}}return{[U]:e,[k]:()=>{}}}),r=()=>t.map(e=>{if(e[C])throw e[C];return e[U]}),{promise:i,resolve:l}=j(),s=Object.assign(()=>l(r),{queueCount:0});function u(e){e!==n&&!o.has(e)&&(o.add(e),e&&0===e.status&&(s.queueCount++,e.push(s)))}return t.map(e=>e[k](u)),s.queueCount?i:r()},function(e){e?l(u[C]=e):i(u[U]),P(n)}),n&&-1===n.status&&(n.status=0)};let v=function(e){let t=new URL(e,"x:/"),r={};for(let e in t)r[e]=t[e];for(let t in r.href=e,r.pathname=e.replace(/[?#].*/,""),r.origin=r.protocol="",r.toString=r.toJSON=(...t)=>e,r)Object.defineProperty(this,t,{enumerable:!0,configurable:!0,value:r[t]})};function R(e,t){throw Error(`Invariant: ${t(e)}`)}v.prototype=URL.prototype,u.U=v,u.z=function(e){throw Error("dynamic usage of require is not supported")},u.g=globalThis;let S=s.prototype,$=new Map;u.M=$;let E=new Map,_=new Map;async function T(e,t,r){let n;if("string"==typeof r)return M(e,t,N(r));let o=r.included||[],i=o.map(e=>!!$.has(e)||E.get(e));if(i.length>0&&i.every(e=>e))return void await Promise.all(i);let l=r.moduleChunks||[],s=l.map(e=>_.get(e)).filter(e=>e);if(s.length>0){if(s.length===l.length)return void await Promise.all(s);let r=new Set;for(let e of l)_.has(e)||r.add(e);for(let n of r){let r=M(e,t,N(n));_.set(n,r),s.push(r)}n=Promise.all(s)}else{for(let o of(n=M(e,t,N(r.path)),l))_.has(o)||_.set(o,n)}for(let e of o)E.has(e)||E.set(e,n);await n}S.l=function(e){return T(i.Parent,this.m.id,e)};let A=Promise.resolve(void 0),x=new WeakMap;function M(t,r,n){let o=e.loadChunkCached(t,n),l=x.get(o);if(void 0===l){let e=x.set.bind(x,o,A);l=o.then(e).catch(e=>{let o;switch(t){case i.Runtime:o=`as a runtime dependency of chunk ${r}`;break;case i.Parent:o=`from module ${r}`;break;case i.Update:o="from an HMR update";break;default:R(t,e=>`Unknown source type: ${e}`)}let l=Error(`Failed to load chunk ${n} ${o}${e?`: ${e}`:""}`,e?{cause:e}:void 0);throw l.name="ChunkLoadError",l}),x.set(o,l)}return l}function N(e){return`${t}${e.split("/").map(e=>encodeURIComponent(e)).join("/")}${r}`}S.L=function(e){return M(i.Parent,this.m.id,e)},S.R=function(e){let t=this.r(e);return t?.default??t},S.P=function(e){return`/ROOT/${e??""}`},S.q=function(e,t){m.call(this,`${e}${r}`,t)},S.b=function(e,t,o,i){let l="SharedWorker"===e.name,s=[o.map(e=>N(e)).reverse(),r];for(let e of n)s.push(globalThis[e]);let u=new URL(N(t),location.origin),a=JSON.stringify(s);return l?u.searchParams.set("params",a):u.hash="#params="+encodeURIComponent(a),new e(u,i?{...i,type:void 0}:void 0)};let K=/\.js(?:\?[^#]*)?(?:#.*)?$/,q=/\.css(?:\?[^#]*)?(?:#.*)?$/;function L(e){return q.test(e)}u.w=function(t,r,n){return e.loadWebAssembly(i.Parent,this.m.id,t,r,n)},u.u=function(t,r){return e.loadWebAssemblyModule(i.Parent,this.m.id,t,r)};let I={};u.c=I;let B=(e,t)=>{let r=I[e];if(r){if(r.error)throw r.error;return r}return W(e,i.Parent,t.id)};function W(e,t,r){let n=$.get(e);if("function"!=typeof n)throw Error(function(e,t,r){let n;switch(t){case 0:n=`as a runtime entry of chunk ${r}`;break;case 1:n=`because it was required from module ${r}`;break;case 2:n="because of an HMR update";break;default:R(t,e=>`Unknown source type: ${e}`)}return`Module ${e} was instantiated ${n}, but the module factory is not available.`}(e,t,r));let o=h(e),i=o.exports;I[e]=o;let l=new s(o,i);try{n(l,o,i)}catch(e){throw o.error=e,e}return o.namespaceObject&&o.exports!==o.namespaceObject&&g(o.exports,o.namespaceObject),o}function F(t){let r,n=function(e){if("string"==typeof e)return e;if(e)return{src:e.getAttribute("src")};if("u">typeof TURBOPACK_NEXT_CHUNK_URLS)return{src:TURBOPACK_NEXT_CHUNK_URLS.pop()};throw Error("chunk path empty but not in a worker")}(t[0]);return 2===t.length?r=t[1]:(r=void 0,!function(e,t){let r=1;for(;r<e.length;){let n,o=r+1;for(;o<e.length&&"function"!=typeof e[o];)o++;if(o===e.length)throw Error("malformed chunk format, expected a factory function");let i=e[o];for(let i=r;i<o;i++){let r=e[i],o=t.get(r);if(o){n=o;break}}let l=n??i,s=!1;for(let n=r;n<o;n++){let r=e[n];t.has(r)||(s||(l===i&&Object.defineProperty(i,"name",{value:"module evaluation"}),s=!0),t.set(r,l))}r=o+1}}(t,$)),e.registerChunk(n,r)}let X=new Map;function D(e){let t=X.get(e);if(!t){let r,n;t={resolved:!1,loadingStarted:!1,promise:new Promise((e,t)=>{r=e,n=t}),resolve:()=>{t.resolved=!0,r()},reject:n},X.set(e,t)}return t}e={async registerChunk(e,r){let n=function(e){if("string"==typeof e)return e;let r=decodeURIComponent(e.src.replace(/[?#].*$/,""));return r.startsWith(t)?r.slice(t.length):r}(e);if(D("string"==typeof e?N(e):e.src).resolve(),null!=r){for(let e of r.otherChunks)D(N("string"==typeof e?e:e.path));if(await Promise.all(r.otherChunks.map(e=>T(i.Runtime,n,e))),r.runtimeModuleIds.length>0)for(let e of r.runtimeModuleIds)!function(e,t){let r=I[t];if(r){if(r.error)throw r.error;return}W(t,i.Runtime,e)}(n,e)}},loadChunkCached:(e,t)=>(function(e,t){let r=D(t);if(r.loadingStarted)return r.promise;if(e===i.Runtime)return r.loadingStarted=!0,L(t)&&r.resolve(),r.promise;if("function"==typeof importScripts)if(L(t));else if(K.test(t))self.TURBOPACK_NEXT_CHUNK_URLS.push(t),importScripts(t);else throw Error(`can't infer type of chunk from URL ${t} in worker`);else{let e=decodeURI(t);if(L(t))if(document.querySelectorAll(`link[rel=stylesheet][href="${t}"],link[rel=stylesheet][href^="${t}?"],link[rel=stylesheet][href="${e}"],link[rel=stylesheet][href^="${e}?"]`).length>0)r.resolve();else{let e=document.createElement("link");e.rel="stylesheet",e.href=t,e.onerror=()=>{r.reject()},e.onload=()=>{r.resolve()},document.head.appendChild(e)}else if(K.test(t)){let n=document.querySelectorAll(`script[src="${t}"],script[src^="${t}?"],script[src="${e}"],script[src^="${e}?"]`);if(n.length>0)for(let e of Array.from(n))e.addEventListener("error",()=>{r.reject()});else{let e=document.createElement("script");e.src=t,e.onerror=()=>{r.reject()},document.head.appendChild(e)}}else throw Error(`can't infer type of chunk from URL ${t}`)}return r.loadingStarted=!0,r.promise})(e,t),async loadWebAssembly(e,t,r,n,o){let i=fetch(N(r)),{instance:l}=await WebAssembly.instantiateStreaming(i,o);return l.exports},async loadWebAssemblyModule(e,t,r,n){let o=fetch(N(r));return await WebAssembly.compileStreaming(o)}};let H=globalThis.TURBOPACK;globalThis.TURBOPACK={push:F},H.forEach(F)})();
|
|
@@ -1,31 +1,32 @@
|
|
|
1
1
|
1:"$Sreact.fragment"
|
|
2
|
-
2:I[701341,["/_next/static/chunks/
|
|
3
|
-
3:I[950396,["/_next/static/chunks/
|
|
4
|
-
4:I[556106,["/_next/static/chunks/
|
|
5
|
-
5:I[694819,["/_next/static/chunks/
|
|
6
|
-
6:I[177053,["/_next/static/chunks/
|
|
7
|
-
7:I[994876,["/_next/static/chunks/
|
|
8
|
-
8:I[242864,["/_next/static/chunks/
|
|
9
|
-
9:I[46907,["/_next/static/chunks/
|
|
10
|
-
a:I[698679,["/_next/static/chunks/
|
|
11
|
-
b:I[360112,["/_next/static/chunks/
|
|
12
|
-
c:I[984642,["/_next/static/chunks/
|
|
13
|
-
|
|
2
|
+
2:I[701341,["/_next/static/chunks/0zjnrbt7inime.js","/_next/static/chunks/0~u.5r3-t7179.js","/_next/static/chunks/0ppr271hz0xoq.js","/_next/static/chunks/0v6hte2z-32ca.js","/_next/static/chunks/11k-.49r~1mfm.js","/_next/static/chunks/0_vi1a~g4wx46.js","/_next/static/chunks/18c7g84y01mj0.js","/_next/static/chunks/0ngk.~kan8wq_.js","/_next/static/chunks/002_j970b9gdx.js","/_next/static/chunks/09he0p79ov1rn.js","/_next/static/chunks/10_niiq0k6o-p.js","/_next/static/chunks/0j.wxxyoclma5.js","/_next/static/chunks/04cb4kc9r2pd1.js","/_next/static/chunks/0fttswpzu69qx.js","/_next/static/chunks/12tjr0_2ccrtq.js","/_next/static/chunks/06.kdsa9rr2h1.js","/_next/static/chunks/1250wo~-5dgyx.js","/_next/static/chunks/0x5lak8yz7pm7.js"],"ZoomWrapper"]
|
|
3
|
+
3:I[950396,["/_next/static/chunks/0zjnrbt7inime.js","/_next/static/chunks/0~u.5r3-t7179.js","/_next/static/chunks/0ppr271hz0xoq.js","/_next/static/chunks/0v6hte2z-32ca.js","/_next/static/chunks/11k-.49r~1mfm.js","/_next/static/chunks/0_vi1a~g4wx46.js","/_next/static/chunks/18c7g84y01mj0.js","/_next/static/chunks/0ngk.~kan8wq_.js","/_next/static/chunks/002_j970b9gdx.js","/_next/static/chunks/09he0p79ov1rn.js","/_next/static/chunks/10_niiq0k6o-p.js","/_next/static/chunks/0j.wxxyoclma5.js","/_next/static/chunks/04cb4kc9r2pd1.js","/_next/static/chunks/0fttswpzu69qx.js","/_next/static/chunks/12tjr0_2ccrtq.js","/_next/static/chunks/06.kdsa9rr2h1.js","/_next/static/chunks/1250wo~-5dgyx.js","/_next/static/chunks/0x5lak8yz7pm7.js"],"ThemeProvider"]
|
|
4
|
+
4:I[556106,["/_next/static/chunks/0zjnrbt7inime.js","/_next/static/chunks/0~u.5r3-t7179.js","/_next/static/chunks/0ppr271hz0xoq.js","/_next/static/chunks/0v6hte2z-32ca.js","/_next/static/chunks/11k-.49r~1mfm.js","/_next/static/chunks/0_vi1a~g4wx46.js","/_next/static/chunks/18c7g84y01mj0.js","/_next/static/chunks/0ngk.~kan8wq_.js","/_next/static/chunks/002_j970b9gdx.js","/_next/static/chunks/09he0p79ov1rn.js","/_next/static/chunks/10_niiq0k6o-p.js","/_next/static/chunks/0j.wxxyoclma5.js","/_next/static/chunks/04cb4kc9r2pd1.js","/_next/static/chunks/0fttswpzu69qx.js","/_next/static/chunks/12tjr0_2ccrtq.js","/_next/static/chunks/06.kdsa9rr2h1.js","/_next/static/chunks/1250wo~-5dgyx.js","/_next/static/chunks/0x5lak8yz7pm7.js"],"LocaleProvider"]
|
|
5
|
+
5:I[694819,["/_next/static/chunks/0zjnrbt7inime.js","/_next/static/chunks/0~u.5r3-t7179.js","/_next/static/chunks/0ppr271hz0xoq.js","/_next/static/chunks/0v6hte2z-32ca.js","/_next/static/chunks/11k-.49r~1mfm.js","/_next/static/chunks/0_vi1a~g4wx46.js","/_next/static/chunks/18c7g84y01mj0.js","/_next/static/chunks/0ngk.~kan8wq_.js","/_next/static/chunks/002_j970b9gdx.js","/_next/static/chunks/09he0p79ov1rn.js","/_next/static/chunks/10_niiq0k6o-p.js","/_next/static/chunks/0j.wxxyoclma5.js","/_next/static/chunks/04cb4kc9r2pd1.js","/_next/static/chunks/0fttswpzu69qx.js","/_next/static/chunks/12tjr0_2ccrtq.js","/_next/static/chunks/06.kdsa9rr2h1.js","/_next/static/chunks/1250wo~-5dgyx.js","/_next/static/chunks/0x5lak8yz7pm7.js"],"ViewportInsets"]
|
|
6
|
+
6:I[177053,["/_next/static/chunks/0zjnrbt7inime.js","/_next/static/chunks/0~u.5r3-t7179.js","/_next/static/chunks/0ppr271hz0xoq.js","/_next/static/chunks/0v6hte2z-32ca.js","/_next/static/chunks/11k-.49r~1mfm.js","/_next/static/chunks/0_vi1a~g4wx46.js","/_next/static/chunks/18c7g84y01mj0.js","/_next/static/chunks/0ngk.~kan8wq_.js","/_next/static/chunks/002_j970b9gdx.js","/_next/static/chunks/09he0p79ov1rn.js","/_next/static/chunks/10_niiq0k6o-p.js","/_next/static/chunks/0j.wxxyoclma5.js","/_next/static/chunks/04cb4kc9r2pd1.js","/_next/static/chunks/0fttswpzu69qx.js","/_next/static/chunks/12tjr0_2ccrtq.js","/_next/static/chunks/06.kdsa9rr2h1.js","/_next/static/chunks/1250wo~-5dgyx.js","/_next/static/chunks/0x5lak8yz7pm7.js"],"AuthGuard"]
|
|
7
|
+
7:I[994876,["/_next/static/chunks/0zjnrbt7inime.js","/_next/static/chunks/0~u.5r3-t7179.js","/_next/static/chunks/0ppr271hz0xoq.js","/_next/static/chunks/0v6hte2z-32ca.js","/_next/static/chunks/11k-.49r~1mfm.js","/_next/static/chunks/0_vi1a~g4wx46.js","/_next/static/chunks/18c7g84y01mj0.js","/_next/static/chunks/0ngk.~kan8wq_.js","/_next/static/chunks/002_j970b9gdx.js","/_next/static/chunks/09he0p79ov1rn.js","/_next/static/chunks/10_niiq0k6o-p.js","/_next/static/chunks/0j.wxxyoclma5.js","/_next/static/chunks/04cb4kc9r2pd1.js","/_next/static/chunks/0fttswpzu69qx.js","/_next/static/chunks/12tjr0_2ccrtq.js","/_next/static/chunks/06.kdsa9rr2h1.js","/_next/static/chunks/1250wo~-5dgyx.js","/_next/static/chunks/0x5lak8yz7pm7.js"],"AppShell"]
|
|
8
|
+
8:I[242864,["/_next/static/chunks/0zjnrbt7inime.js","/_next/static/chunks/0~u.5r3-t7179.js","/_next/static/chunks/0ppr271hz0xoq.js","/_next/static/chunks/0v6hte2z-32ca.js","/_next/static/chunks/11k-.49r~1mfm.js","/_next/static/chunks/0_vi1a~g4wx46.js","/_next/static/chunks/18c7g84y01mj0.js","/_next/static/chunks/0ngk.~kan8wq_.js","/_next/static/chunks/002_j970b9gdx.js","/_next/static/chunks/09he0p79ov1rn.js","/_next/static/chunks/10_niiq0k6o-p.js","/_next/static/chunks/0j.wxxyoclma5.js","/_next/static/chunks/04cb4kc9r2pd1.js","/_next/static/chunks/0fttswpzu69qx.js","/_next/static/chunks/12tjr0_2ccrtq.js","/_next/static/chunks/06.kdsa9rr2h1.js","/_next/static/chunks/1250wo~-5dgyx.js","/_next/static/chunks/0x5lak8yz7pm7.js"],"default"]
|
|
9
|
+
9:I[46907,["/_next/static/chunks/0zjnrbt7inime.js","/_next/static/chunks/0~u.5r3-t7179.js","/_next/static/chunks/0ppr271hz0xoq.js","/_next/static/chunks/0v6hte2z-32ca.js","/_next/static/chunks/11k-.49r~1mfm.js","/_next/static/chunks/0_vi1a~g4wx46.js","/_next/static/chunks/18c7g84y01mj0.js","/_next/static/chunks/0ngk.~kan8wq_.js","/_next/static/chunks/002_j970b9gdx.js","/_next/static/chunks/09he0p79ov1rn.js","/_next/static/chunks/10_niiq0k6o-p.js","/_next/static/chunks/0j.wxxyoclma5.js","/_next/static/chunks/04cb4kc9r2pd1.js","/_next/static/chunks/0fttswpzu69qx.js","/_next/static/chunks/12tjr0_2ccrtq.js","/_next/static/chunks/06.kdsa9rr2h1.js","/_next/static/chunks/1250wo~-5dgyx.js","/_next/static/chunks/0x5lak8yz7pm7.js"],"default"]
|
|
10
|
+
a:I[698679,["/_next/static/chunks/0zjnrbt7inime.js","/_next/static/chunks/0~u.5r3-t7179.js","/_next/static/chunks/0ppr271hz0xoq.js","/_next/static/chunks/0v6hte2z-32ca.js","/_next/static/chunks/11k-.49r~1mfm.js","/_next/static/chunks/0_vi1a~g4wx46.js","/_next/static/chunks/18c7g84y01mj0.js","/_next/static/chunks/0ngk.~kan8wq_.js","/_next/static/chunks/002_j970b9gdx.js","/_next/static/chunks/09he0p79ov1rn.js","/_next/static/chunks/10_niiq0k6o-p.js","/_next/static/chunks/0j.wxxyoclma5.js","/_next/static/chunks/04cb4kc9r2pd1.js","/_next/static/chunks/0fttswpzu69qx.js","/_next/static/chunks/12tjr0_2ccrtq.js","/_next/static/chunks/06.kdsa9rr2h1.js","/_next/static/chunks/1250wo~-5dgyx.js","/_next/static/chunks/0x5lak8yz7pm7.js"],"CommandPalette"]
|
|
11
|
+
b:I[360112,["/_next/static/chunks/0zjnrbt7inime.js","/_next/static/chunks/0~u.5r3-t7179.js","/_next/static/chunks/0ppr271hz0xoq.js","/_next/static/chunks/0v6hte2z-32ca.js","/_next/static/chunks/11k-.49r~1mfm.js","/_next/static/chunks/0_vi1a~g4wx46.js","/_next/static/chunks/18c7g84y01mj0.js","/_next/static/chunks/0ngk.~kan8wq_.js","/_next/static/chunks/002_j970b9gdx.js","/_next/static/chunks/09he0p79ov1rn.js","/_next/static/chunks/10_niiq0k6o-p.js","/_next/static/chunks/0j.wxxyoclma5.js","/_next/static/chunks/04cb4kc9r2pd1.js","/_next/static/chunks/0fttswpzu69qx.js","/_next/static/chunks/12tjr0_2ccrtq.js","/_next/static/chunks/06.kdsa9rr2h1.js","/_next/static/chunks/1250wo~-5dgyx.js","/_next/static/chunks/0x5lak8yz7pm7.js"],"Toaster"]
|
|
12
|
+
c:I[984642,["/_next/static/chunks/0zjnrbt7inime.js","/_next/static/chunks/0~u.5r3-t7179.js","/_next/static/chunks/0ppr271hz0xoq.js","/_next/static/chunks/0v6hte2z-32ca.js","/_next/static/chunks/11k-.49r~1mfm.js","/_next/static/chunks/0_vi1a~g4wx46.js","/_next/static/chunks/18c7g84y01mj0.js","/_next/static/chunks/0ngk.~kan8wq_.js","/_next/static/chunks/002_j970b9gdx.js","/_next/static/chunks/09he0p79ov1rn.js","/_next/static/chunks/10_niiq0k6o-p.js","/_next/static/chunks/0j.wxxyoclma5.js","/_next/static/chunks/04cb4kc9r2pd1.js","/_next/static/chunks/0fttswpzu69qx.js","/_next/static/chunks/12tjr0_2ccrtq.js","/_next/static/chunks/06.kdsa9rr2h1.js","/_next/static/chunks/1250wo~-5dgyx.js","/_next/static/chunks/0x5lak8yz7pm7.js"],"ConsolePanel"]
|
|
13
|
+
12:I[785502,["/_next/static/chunks/0zjnrbt7inime.js","/_next/static/chunks/0~u.5r3-t7179.js","/_next/static/chunks/0ppr271hz0xoq.js","/_next/static/chunks/0v6hte2z-32ca.js","/_next/static/chunks/11k-.49r~1mfm.js","/_next/static/chunks/0_vi1a~g4wx46.js","/_next/static/chunks/18c7g84y01mj0.js","/_next/static/chunks/0ngk.~kan8wq_.js","/_next/static/chunks/002_j970b9gdx.js","/_next/static/chunks/09he0p79ov1rn.js","/_next/static/chunks/10_niiq0k6o-p.js","/_next/static/chunks/0j.wxxyoclma5.js","/_next/static/chunks/04cb4kc9r2pd1.js","/_next/static/chunks/0fttswpzu69qx.js","/_next/static/chunks/12tjr0_2ccrtq.js","/_next/static/chunks/06.kdsa9rr2h1.js","/_next/static/chunks/1250wo~-5dgyx.js","/_next/static/chunks/0x5lak8yz7pm7.js"],"default",1]
|
|
14
14
|
:HL["/_next/static/chunks/062f9zqctzg.b.css","style"]
|
|
15
|
-
:HL["/_next/static/chunks/
|
|
16
|
-
0:{"P":null,"c":["","_not-found"],"q":"","i":false,"f":[[["",{"children":["/_not-found",{"children":["__PAGE__",{}]}]},"$undefined","$undefined",16],[["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/chunks/062f9zqctzg.b.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","link","1",{"rel":"stylesheet","href":"/_next/static/chunks/
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
d:["$","
|
|
22
|
-
e:["$","
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
10:
|
|
26
|
-
|
|
27
|
-
13:["$","link","
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
15
|
+
:HL["/_next/static/chunks/0jw8xdk_fpnp0.css","style"]
|
|
16
|
+
0:{"P":null,"c":["","_not-found"],"q":"","i":false,"f":[[["",{"children":["/_not-found",{"children":["__PAGE__",{}]}]},"$undefined","$undefined",16],[["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/chunks/062f9zqctzg.b.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","link","1",{"rel":"stylesheet","href":"/_next/static/chunks/0jw8xdk_fpnp0.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","script","script-0",{"src":"/_next/static/chunks/0zjnrbt7inime.js","async":true,"nonce":"$undefined"}],["$","script","script-1",{"src":"/_next/static/chunks/0~u.5r3-t7179.js","async":true,"nonce":"$undefined"}],["$","script","script-2",{"src":"/_next/static/chunks/0ppr271hz0xoq.js","async":true,"nonce":"$undefined"}],["$","script","script-3",{"src":"/_next/static/chunks/0v6hte2z-32ca.js","async":true,"nonce":"$undefined"}],["$","script","script-4",{"src":"/_next/static/chunks/11k-.49r~1mfm.js","async":true,"nonce":"$undefined"}],["$","script","script-5",{"src":"/_next/static/chunks/0_vi1a~g4wx46.js","async":true,"nonce":"$undefined"}],["$","script","script-6",{"src":"/_next/static/chunks/18c7g84y01mj0.js","async":true,"nonce":"$undefined"}],["$","script","script-7",{"src":"/_next/static/chunks/0ngk.~kan8wq_.js","async":true,"nonce":"$undefined"}],["$","script","script-8",{"src":"/_next/static/chunks/002_j970b9gdx.js","async":true,"nonce":"$undefined"}],["$","script","script-9",{"src":"/_next/static/chunks/09he0p79ov1rn.js","async":true,"nonce":"$undefined"}],["$","script","script-10",{"src":"/_next/static/chunks/10_niiq0k6o-p.js","async":true,"nonce":"$undefined"}],["$","script","script-11",{"src":"/_next/static/chunks/0j.wxxyoclma5.js","async":true,"nonce":"$undefined"}],["$","script","script-12",{"src":"/_next/static/chunks/04cb4kc9r2pd1.js","async":true,"nonce":"$undefined"}],["$","script","script-13",{"src":"/_next/static/chunks/0fttswpzu69qx.js","async":true,"nonce":"$undefined"}],["$","script","script-14",{"src":"/_next/static/chunks/12tjr0_2ccrtq.js","async":true,"nonce":"$undefined"}],["$","script","script-15",{"src":"/_next/static/chunks/06.kdsa9rr2h1.js","async":true,"nonce":"$undefined"}],["$","script","script-16",{"src":"/_next/static/chunks/1250wo~-5dgyx.js","async":true,"nonce":"$undefined"}],["$","script","script-17",{"src":"/_next/static/chunks/0x5lak8yz7pm7.js","async":true,"nonce":"$undefined"}]],["$","html",null,{"lang":"","className":"h-[var(--app-content-height)] overflow-hidden antialiased","suppressHydrationWarning":true,"children":["$","body",null,{"className":"h-[var(--app-content-height)] overflow-hidden font-sans","children":["$","$L2",null,{"children":["$","$L3",null,{"attribute":"class","defaultTheme":"system","enableSystem":true,"disableTransitionOnChange":true,"children":["$","$L4",null,{"children":[["$","$L5",null,{}],["$","$L6",null,{"children":[["$","$L7",null,{"children":["$","$L8",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L9",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]}],["$","$La",null,{}],["$","$Lb",null,{"richColors":true,"position":"bottom-right"}]]}],["$","$Lc",null,{}]]}]}]}]}]}]]}],{"children":[["$","$1","c",{"children":[null,["$","$L8",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L9",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":[["$","$1","c",{"children":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":"$0:f:0:1:0:props:children:1:props:children:props:children:props:children:props:children:props:children:1:props:children:0:props:children:props:notFound:0:1:props:style","children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],"$Ld","$Le"]}]}]],null,"$Lf"]}],{},null,false,null]},null,false,"$@10"]},null,false,null],"$L11",false]],"m":"$undefined","G":["$12",["$L13","$L14"]],"S":true,"h":null,"s":"$undefined","l":"$undefined","p":"$undefined","d":"$undefined","b":"rGXyAK8rgod1NjF3bLZAY"}
|
|
17
|
+
15:I[990774,["/_next/static/chunks/0zjnrbt7inime.js","/_next/static/chunks/0~u.5r3-t7179.js","/_next/static/chunks/0ppr271hz0xoq.js","/_next/static/chunks/0v6hte2z-32ca.js","/_next/static/chunks/11k-.49r~1mfm.js","/_next/static/chunks/0_vi1a~g4wx46.js","/_next/static/chunks/18c7g84y01mj0.js","/_next/static/chunks/0ngk.~kan8wq_.js","/_next/static/chunks/002_j970b9gdx.js","/_next/static/chunks/09he0p79ov1rn.js","/_next/static/chunks/10_niiq0k6o-p.js","/_next/static/chunks/0j.wxxyoclma5.js","/_next/static/chunks/04cb4kc9r2pd1.js","/_next/static/chunks/0fttswpzu69qx.js","/_next/static/chunks/12tjr0_2ccrtq.js","/_next/static/chunks/06.kdsa9rr2h1.js","/_next/static/chunks/1250wo~-5dgyx.js","/_next/static/chunks/0x5lak8yz7pm7.js"],"OutletBoundary"]
|
|
18
|
+
16:"$Sreact.suspense"
|
|
19
|
+
19:I[990774,["/_next/static/chunks/0zjnrbt7inime.js","/_next/static/chunks/0~u.5r3-t7179.js","/_next/static/chunks/0ppr271hz0xoq.js","/_next/static/chunks/0v6hte2z-32ca.js","/_next/static/chunks/11k-.49r~1mfm.js","/_next/static/chunks/0_vi1a~g4wx46.js","/_next/static/chunks/18c7g84y01mj0.js","/_next/static/chunks/0ngk.~kan8wq_.js","/_next/static/chunks/002_j970b9gdx.js","/_next/static/chunks/09he0p79ov1rn.js","/_next/static/chunks/10_niiq0k6o-p.js","/_next/static/chunks/0j.wxxyoclma5.js","/_next/static/chunks/04cb4kc9r2pd1.js","/_next/static/chunks/0fttswpzu69qx.js","/_next/static/chunks/12tjr0_2ccrtq.js","/_next/static/chunks/06.kdsa9rr2h1.js","/_next/static/chunks/1250wo~-5dgyx.js","/_next/static/chunks/0x5lak8yz7pm7.js"],"ViewportBoundary"]
|
|
20
|
+
1b:I[990774,["/_next/static/chunks/0zjnrbt7inime.js","/_next/static/chunks/0~u.5r3-t7179.js","/_next/static/chunks/0ppr271hz0xoq.js","/_next/static/chunks/0v6hte2z-32ca.js","/_next/static/chunks/11k-.49r~1mfm.js","/_next/static/chunks/0_vi1a~g4wx46.js","/_next/static/chunks/18c7g84y01mj0.js","/_next/static/chunks/0ngk.~kan8wq_.js","/_next/static/chunks/002_j970b9gdx.js","/_next/static/chunks/09he0p79ov1rn.js","/_next/static/chunks/10_niiq0k6o-p.js","/_next/static/chunks/0j.wxxyoclma5.js","/_next/static/chunks/04cb4kc9r2pd1.js","/_next/static/chunks/0fttswpzu69qx.js","/_next/static/chunks/12tjr0_2ccrtq.js","/_next/static/chunks/06.kdsa9rr2h1.js","/_next/static/chunks/1250wo~-5dgyx.js","/_next/static/chunks/0x5lak8yz7pm7.js"],"MetadataBoundary"]
|
|
21
|
+
d:["$","h1",null,{"className":"next-error-h1","style":"$0:f:0:1:0:props:children:1:props:children:props:children:props:children:props:children:props:children:1:props:children:0:props:children:props:notFound:0:1:props:children:props:children:1:props:style","children":404}]
|
|
22
|
+
e:["$","div",null,{"style":"$0:f:0:1:0:props:children:1:props:children:props:children:props:children:props:children:props:children:1:props:children:0:props:children:props:notFound:0:1:props:children:props:children:2:props:style","children":["$","h2",null,{"style":"$0:f:0:1:0:props:children:1:props:children:props:children:props:children:props:children:props:children:1:props:children:0:props:children:props:notFound:0:1:props:children:props:children:2:props:children:props:style","children":"This page could not be found."}]}]
|
|
23
|
+
f:["$","$L15",null,{"children":["$","$16",null,{"name":"Next.MetadataOutlet","children":"$@17"}]}]
|
|
24
|
+
18:[]
|
|
25
|
+
10:"$W18"
|
|
26
|
+
11:["$","$1","h",{"children":[["$","meta",null,{"name":"robots","content":"noindex"}],["$","$L19",null,{"children":"$L1a"}],["$","div",null,{"hidden":true,"children":["$","$L1b",null,{"children":["$","$16",null,{"name":"Next.Metadata","children":"$L1c"}]}]}],null]}]
|
|
27
|
+
13:["$","link","0",{"rel":"stylesheet","href":"/_next/static/chunks/062f9zqctzg.b.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]
|
|
28
|
+
14:["$","link","1",{"rel":"stylesheet","href":"/_next/static/chunks/0jw8xdk_fpnp0.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]
|
|
29
|
+
1a:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no, viewport-fit=cover"}]]
|
|
30
|
+
1d:I[946513,["/_next/static/chunks/0zjnrbt7inime.js","/_next/static/chunks/0~u.5r3-t7179.js","/_next/static/chunks/0ppr271hz0xoq.js","/_next/static/chunks/0v6hte2z-32ca.js","/_next/static/chunks/11k-.49r~1mfm.js","/_next/static/chunks/0_vi1a~g4wx46.js","/_next/static/chunks/18c7g84y01mj0.js","/_next/static/chunks/0ngk.~kan8wq_.js","/_next/static/chunks/002_j970b9gdx.js","/_next/static/chunks/09he0p79ov1rn.js","/_next/static/chunks/10_niiq0k6o-p.js","/_next/static/chunks/0j.wxxyoclma5.js","/_next/static/chunks/04cb4kc9r2pd1.js","/_next/static/chunks/0fttswpzu69qx.js","/_next/static/chunks/12tjr0_2ccrtq.js","/_next/static/chunks/06.kdsa9rr2h1.js","/_next/static/chunks/1250wo~-5dgyx.js","/_next/static/chunks/0x5lak8yz7pm7.js"],"IconMark"]
|
|
31
|
+
17:null
|
|
32
|
+
1c:[["$","title","0",{"children":"Agent Spaces"}],["$","meta","1",{"name":"description","content":"Multi-agent collaborative coding workspace"}],["$","link","2",{"rel":"icon","href":"/favicon.ico?favicon.0~ekuj.zhggpa.ico","sizes":"32x32","type":"image/x-icon"}],["$","link","3",{"rel":"icon","href":"/favicon.ico"}],["$","link","4",{"rel":"apple-touch-icon","href":"/apple-touch-icon.png"}],["$","$L1d","5",{}]]
|